From 8e8460b49bf51930942e9dd82373011f01a183c8 Mon Sep 17 00:00:00 2001 From: Canh Doan Date: Tue, 13 Aug 2024 10:35:35 -0400 Subject: [PATCH] Create deploy artifacts --- docs/assets/index-BhsILASx.css | 1 + docs/assets/index-DHM_l7Qd.js | 105 ------------------- docs/assets/index-DZ7ou1HX.css | 1 - docs/assets/index-zOp7NMbv.js | 179 +++++++++++++++++++++++++++++++++ docs/index.html | 4 +- 5 files changed, 182 insertions(+), 108 deletions(-) create mode 100644 docs/assets/index-BhsILASx.css delete mode 100644 docs/assets/index-DHM_l7Qd.js delete mode 100644 docs/assets/index-DZ7ou1HX.css create mode 100644 docs/assets/index-zOp7NMbv.js diff --git a/docs/assets/index-BhsILASx.css b/docs/assets/index-BhsILASx.css new file mode 100644 index 0000000..b346243 --- /dev/null +++ b/docs/assets/index-BhsILASx.css @@ -0,0 +1 @@ +@charset "UTF-8";.rg-celleditor-input,.rg-celleditor .rg-input{width:100%;height:100%;border:0;padding:0;margin:0;background:transparent;font-size:1em;outline:none}.rg-celleditor{box-sizing:border-box;z-index:5;background-color:#fff;box-shadow:1px 1px 6px #0000000f;display:flex;border-style:solid;border-color:#3579f8;border-width:2px;padding:0 4px}.rg-number-celleditor input{text-align:right}.reactgrid-content .rg-pane .rg-cell.rg-number-cell,.reactgrid-content .rg-pane .rg-cell .rg-time-cell,.reactgrid-content .rg-pane .rg-cell .rg-date-cell{justify-content:flex-end}.reactgrid-content .rg-pane .rg-cell.rg-email-cell.rg-invalid{color:red}.reactgrid-content .rg-pane .rg-cell.rg-text-cell.placeholder{color:#999;font-size:.8em}.reactgrid-content .rg-pane .rg-cell.rg-checkbox-cell{align-items:center;justify-content:center;padding:0;margin:0;background:transparent;pointer-events:auto}.reactgrid-content .rg-pane .rg-cell.rg-checkbox-cell input{width:20px;height:20px}.reactgrid-content .rg-pane .rg-cell.rg-chevron-cell .chevron{pointer-events:auto;display:flex;justify-content:center;align-items:center;font-weight:700;margin-right:.1em;cursor:pointer;transition:.2s all ease-in-out;height:1em;width:1em}.reactgrid-content .rg-pane .rg-cell.rg-chevron-cell .no-child{width:.5em}.reactgrid-content .rg-pane .rg-cell.rg-chevron-cell.expanded .chevron{transform:rotate(90deg)}.reactgrid-content .rg-pane .rg-cell.rg-chevron-cell.collapsed .chevron{transform:rotate(0)}.reactgrid-content .rg-pane .rg-cell.rg-checkbox-cell{justify-content:center}.reactgrid-content .rg-pane .rg-cell.rg-checkbox-cell label{position:relative;height:18px;width:18px;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;margin:0}.reactgrid-content .rg-pane .rg-cell.rg-checkbox-cell label input{position:absolute;opacity:0;cursor:pointer;margin:0;height:18px;width:18px}.reactgrid-content .rg-pane .rg-cell.rg-checkbox-cell span{position:absolute;top:0;left:0;height:18px;width:18px;background-color:#eee}.reactgrid-content .rg-pane .rg-cell.rg-checkbox-cell label:hover input~span{background-color:#ccc}.reactgrid-content .rg-pane .rg-cell.rg-checkbox-cell label input:checked~span{background-color:#3579f8}.reactgrid-content .rg-pane .rg-cell.rg-checkbox-cell span:after{content:"";position:absolute;display:none}.reactgrid-content .rg-pane .rg-cell.rg-checkbox-cell label input:checked~span:after{display:block}.reactgrid-content .rg-pane .rg-cell.rg-checkbox-cell label span:after{left:7px;top:2px;width:4px;height:12px;border:solid #ffffff;border-width:0 3px 3px 0;-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.reactgrid-content .rg-pane .rg-cell.rg-dropdown-cell{padding:0;overflow:visible}.reactgrid-content .rg-pane .rg-cell.rg-dropdown-cell .rg-dropdown-menu{top:100%;background-color:#fff;border-radius:4px;box-shadow:0 0 7px #00000080;margin-bottom:8px;margin-top:2px;position:absolute;width:100%;z-index:1;box-sizing:border-box}.reactgrid-content .rg-pane .rg-cell.rg-dropdown-cell .rg-dropdown-option{padding:.3em .5em;min-height:1.5em;display:flex;align-items:center}.reactgrid-content .rg-pane .rg-cell.rg-dropdown-cell .rg-dropdown-option.selected:before{content:"✓";padding-right:.2em}.reactgrid-content .rg-pane .rg-cell.rg-dropdown-cell .rg-dropdown-option.focused{color:#000;background-color:#e2ebfe}.rg-copy-container[contenteditable]{-webkit-user-select:text;user-select:text}.reactgrid-content{user-select:none;-moz-user-select:none;-webkit-user-select:none;display:flex;flex-wrap:wrap;justify-content:flex-start;align-items:flex-start;color:#000}.reactgrid-content .rg-pane.rg-pane-top,.reactgrid-content .rg-pane.rg-pane-bottom,.reactgrid-content .rg-pane.rg-pane-left,.reactgrid-content .rg-pane.rg-pane-right{position:sticky;position:-webkit-sticky;background-color:#fff}.reactgrid-content .rg-pane.rg-pane-top{top:0}.reactgrid-content .rg-pane.rg-pane-bottom{bottom:0}.reactgrid-content .rg-pane.rg-pane-left{left:0}.reactgrid-content .rg-pane.rg-pane-right{right:0}.reactgrid-content .rg-pane .rg-cell{font-size:1em;box-sizing:border-box;white-space:nowrap;position:absolute;display:flex;flex-direction:row;align-items:center;overflow:hidden;padding:0 4px;outline:none;touch-action:auto;border-color:#e8e8e8;color:#000}.reactgrid-content .rg-pane .rg-cell .rg-touch-resize-handle{position:absolute;top:0;right:0;width:11px;height:100%;pointer-events:auto}.reactgrid-content .rg-pane .rg-cell .rg-touch-resize-handle .rg-resize-handle{position:absolute;right:0;width:6px;height:100%}.reactgrid-content .rg-pane .rg-cell .rg-touch-resize-handle .rg-resize-handle:hover{cursor:col-resize;background-color:#3579f8}.reactgrid-content .rg-pane .rg-cell .rg-groupId{font-size:.8em;position:absolute;right:4px;top:4px}.reactgrid-content .rg-pane .rg-cell-focus,.reactgrid-content .rg-pane .rg-cell-highlight{position:absolute;pointer-events:none;box-sizing:border-box;border-style:solid;border-width:2px;border-color:#3579f8}.reactgrid-content .rg-pane .rg-touch-fill-handle{position:absolute;width:40px;height:40px;background-color:#ffffff03;touch-action:none;pointer-events:auto}.reactgrid-content .rg-pane .rg-touch-fill-handle .rg-fill-handle{position:absolute;cursor:crosshair;top:50%;left:50%;transform:translate(calc(-50% - .5px),calc(-50% - .5px));width:6.5px;height:6.5px;background-color:#3579f8;border-width:1px;border-style:solid;border-color:#fff;background-clip:content-box}.reactgrid-content .rg-pane .rg-partial-area{position:absolute;pointer-events:none;box-sizing:border-box}.reactgrid-content .rg-pane .rg-partial-area.rg-partial-area-part{border-width:1px;border-style:dashed;border-color:#000}.reactgrid-content .rg-pane .rg-partial-area.rg-partial-area-selected-range{border-width:1px;border-style:solid;border-color:#3579f8;background-color:#3579f859}.reactgrid-content .rg-pane-shadow{position:sticky}.reactgrid-content .rg-pane-shadow.shadow-top{pointer-events:none;top:0;box-shadow:2px 2px 3px 1px #0000000f}.reactgrid-content .rg-pane-shadow.shadow-left{pointer-events:none;left:0;box-shadow:5px 0 3px -2px #0000000f}.reactgrid-content .rg-pane-shadow.shadow-bottom{pointer-events:none;bottom:0;box-shadow:2px -1px 3px 1px #0000000f}.reactgrid-content .rg-pane-shadow.shadow-right{pointer-events:none;right:0;box-shadow:-5px 0 3px -2px #0000000f}.reactgrid-content .rg-pane-shadow.shadow-top-left-corner{box-shadow:2px 3px 3px 1px #0000000f}.reactgrid-content .rg-pane-shadow.shadow-top-right-corner{box-shadow:-2px 2px 3px 1px #0000000f}.reactgrid-content .rg-pane-shadow.shadow-bottom-left-corner{box-shadow:2px -2px 3px 1px #0000000f}.reactgrid-content .rg-pane-shadow.shadow-bottom-right-corner{box-shadow:-2px -2px 3px 1px #0000000f}.reactgrid-content .rg-context-menu{position:fixed;z-index:1000;background-color:#fff;font-size:1em;box-shadow:0 0 8px 2px #0000000f}.reactgrid-content .rg-context-menu .rg-context-menu-option{padding:8px 20px 8px 15px;cursor:pointer}.reactgrid-content .rg-context-menu .rg-context-menu-option:hover{background-color:#f2f2f2}.reactgrid-content .rg-shadow{position:absolute;background-color:#000;opacity:.1;z-index:4}.reactgrid-content .rg-column-resize-hint{background-color:#74b9ff;position:absolute;padding:5px;border-radius:0 5px 5px 0}.reactgrid-content .rg-line{position:absolute;background-color:#74b9ff;z-index:4}.reactgrid-content .rg-line-horizontal{left:0;height:2px}.reactgrid-content .rg-line-vertical{top:0;width:2px}.reactgrid-content .rg-hidden-element{border:0;padding:0;margin:0;position:fixed;width:1px;height:1px;opacity:0;top:50%;left:50%} diff --git a/docs/assets/index-DHM_l7Qd.js b/docs/assets/index-DHM_l7Qd.js deleted file mode 100644 index d6defe8..0000000 --- a/docs/assets/index-DHM_l7Qd.js +++ /dev/null @@ -1,105 +0,0 @@ -var yL=Object.defineProperty;var bL=(e,t,n)=>t in e?yL(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var k1=(e,t,n)=>bL(e,typeof t!="symbol"?t+"":t,n);function wL(e,t){for(var n=0;nr[i]})}}}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 i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const l of i)if(l.type==="childList")for(const u of l.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&r(u)}).observe(document,{childList:!0,subtree:!0});function n(i){const l={};return i.integrity&&(l.integrity=i.integrity),i.referrerPolicy&&(l.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?l.credentials="include":i.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function r(i){if(i.ep)return;i.ep=!0;const l=n(i);fetch(i.href,l)}})();var oa=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Vx(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Zi(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var Hx={exports:{}},pd={},zx={exports:{}},Ee={};/** - * @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 fu=Symbol.for("react.element"),xL=Symbol.for("react.portal"),CL=Symbol.for("react.fragment"),IL=Symbol.for("react.strict_mode"),SL=Symbol.for("react.profiler"),RL=Symbol.for("react.provider"),EL=Symbol.for("react.context"),AL=Symbol.for("react.forward_ref"),kL=Symbol.for("react.suspense"),ML=Symbol.for("react.memo"),PL=Symbol.for("react.lazy"),M1=Symbol.iterator;function TL(e){return e===null||typeof e!="object"?null:(e=M1&&e[M1]||e["@@iterator"],typeof e=="function"?e:null)}var $x={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Xx=Object.assign,Zx={};function Ol(e,t,n){this.props=e,this.context=t,this.refs=Zx,this.updater=n||$x}Ol.prototype.isReactComponent={};Ol.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")};Ol.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Ux(){}Ux.prototype=Ol.prototype;function nm(e,t,n){this.props=e,this.context=t,this.refs=Zx,this.updater=n||$x}var rm=nm.prototype=new Ux;rm.constructor=nm;Xx(rm,Ol.prototype);rm.isPureReactComponent=!0;var P1=Array.isArray,Yx=Object.prototype.hasOwnProperty,im={current:null},jx={key:!0,ref:!0,__self:!0,__source:!0};function Jx(e,t,n){var r,i={},l=null,u=null;if(t!=null)for(r in t.ref!==void 0&&(u=t.ref),t.key!==void 0&&(l=""+t.key),t)Yx.call(t,r)&&!jx.hasOwnProperty(r)&&(i[r]=t[r]);var d=arguments.length-2;if(d===1)i.children=n;else if(1>>1,se=U[Y];if(0>>1;Yi(Le,ne))cei(Me,Le)?(U[Y]=Me,U[ce]=ne,Y=ce):(U[Y]=Le,U[ke]=ne,Y=ke);else if(cei(Me,ne))U[Y]=Me,U[ce]=ne,Y=ce;else break e}}return ee}function i(U,ee){var ne=U.sortIndex-ee.sortIndex;return ne!==0?ne:U.id-ee.id}if(typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var u=Date,d=u.now();e.unstable_now=function(){return u.now()-d}}var s=[],c=[],p=1,h=null,y=3,m=!1,b=!1,w=!1,I=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,x=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function S(U){for(var ee=n(c);ee!==null;){if(ee.callback===null)r(c);else if(ee.startTime<=U)r(c),ee.sortIndex=ee.expirationTime,t(s,ee);else break;ee=n(c)}}function P(U){if(w=!1,S(U),!b)if(n(s)!==null)b=!0,G(O);else{var ee=n(c);ee!==null&&re(P,ee.startTime-U)}}function O(U,ee){b=!1,w&&(w=!1,v(_),_=-1),m=!0;var ne=y;try{for(S(ee),h=n(s);h!==null&&(!(h.expirationTime>ee)||U&&!J());){var Y=h.callback;if(typeof Y=="function"){h.callback=null,y=h.priorityLevel;var se=Y(h.expirationTime<=ee);ee=e.unstable_now(),typeof se=="function"?h.callback=se:h===n(s)&&r(s),S(ee)}else r(s);h=n(s)}if(h!==null)var Ie=!0;else{var ke=n(c);ke!==null&&re(P,ke.startTime-ee),Ie=!1}return Ie}finally{h=null,y=ne,m=!1}}var M=!1,T=null,_=-1,z=5,H=-1;function J(){return!(e.unstable_now()-HU||125Y?(U.sortIndex=ne,t(c,U),n(s)===null&&U===n(c)&&(w?(v(_),_=-1):w=!0,re(P,ne-Y))):(U.sortIndex=se,t(s,U),b||m||(b=!0,G(O))),U},e.unstable_shouldYield=J,e.unstable_wrapCallback=function(U){var ee=y;return function(){var ne=y;y=ee;try{return U.apply(this,arguments)}finally{y=ne}}}})(tC);eC.exports=tC;var HL=eC.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 zL=E,_n=HL;function K(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Hg=Object.prototype.hasOwnProperty,$L=/^[: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]*$/,L1={},_1={};function XL(e){return Hg.call(_1,e)?!0:Hg.call(L1,e)?!1:$L.test(e)?_1[e]=!0:(L1[e]=!0,!1)}function ZL(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function UL(e,t,n,r){if(t===null||typeof t>"u"||ZL(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function ln(e,t,n,r,i,l,u){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=l,this.removeEmptyString=u}var Vt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Vt[e]=new ln(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Vt[t]=new ln(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Vt[e]=new ln(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Vt[e]=new ln(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){Vt[e]=new ln(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Vt[e]=new ln(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Vt[e]=new ln(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Vt[e]=new ln(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Vt[e]=new ln(e,5,!1,e.toLowerCase(),null,!1,!1)});var lm=/[\-:]([a-z])/g;function am(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(lm,am);Vt[t]=new ln(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(lm,am);Vt[t]=new ln(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(lm,am);Vt[t]=new ln(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Vt[e]=new ln(e,1,!1,e.toLowerCase(),null,!1,!1)});Vt.xlinkHref=new ln("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Vt[e]=new ln(e,1,!1,e.toLowerCase(),null,!0,!0)});function um(e,t,n,r){var i=Vt.hasOwnProperty(t)?Vt[t]:null;(i!==null?i.type!==0:r||!(2d||i[u]!==l[d]){var s=` -`+i[u].replace(" at new "," at ");return e.displayName&&s.includes("")&&(s=s.replace("",e.displayName)),s}while(1<=u&&0<=d);break}}}finally{$p=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?xa(e):""}function YL(e){switch(e.tag){case 5:return xa(e.type);case 16:return xa("Lazy");case 13:return xa("Suspense");case 19:return xa("SuspenseList");case 0:case 2:case 15:return e=Xp(e.type,!1),e;case 11:return e=Xp(e.type.render,!1),e;case 1:return e=Xp(e.type,!0),e;default:return""}}function Zg(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 el:return"Fragment";case qo:return"Portal";case zg:return"Profiler";case sm:return"StrictMode";case $g:return"Suspense";case Xg:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case iC:return(e.displayName||"Context")+".Consumer";case rC:return(e._context.displayName||"Context")+".Provider";case cm:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case dm:return t=e.displayName||null,t!==null?t:Zg(e.type)||"Memo";case Ei:t=e._payload,e=e._init;try{return Zg(e(t))}catch{}}return null}function jL(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 Zg(t);case 8:return t===sm?"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 Vi(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function lC(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function JL(e){var t=lC(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,l=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(u){r=""+u,l.call(this,u)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(u){r=""+u},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function vs(e){e._valueTracker||(e._valueTracker=JL(e))}function aC(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=lC(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function vc(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 Ug(e,t){var n=t.checked;return lt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function F1(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Vi(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function uC(e,t){t=t.checked,t!=null&&um(e,"checked",t,!1)}function Yg(e,t){uC(e,t);var n=Vi(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?jg(e,t.type,n):t.hasOwnProperty("defaultValue")&&jg(e,t.type,Vi(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function B1(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function jg(e,t,n){(t!=="number"||vc(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Ca=Array.isArray;function dl(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=ys.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Wa(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Aa={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},KL=["Webkit","ms","Moz","O"];Object.keys(Aa).forEach(function(e){KL.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Aa[t]=Aa[e]})});function fC(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Aa.hasOwnProperty(e)&&Aa[e]?(""+t).trim():t+"px"}function pC(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=fC(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var QL=lt({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 Qg(e,t){if(t){if(QL[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(K(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(K(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(K(61))}if(t.style!=null&&typeof t.style!="object")throw Error(K(62))}}function qg(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 eh=null;function fm(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var th=null,fl=null,pl=null;function W1(e){if(e=hu(e)){if(typeof th!="function")throw Error(K(280));var t=e.stateNode;t&&(t=yd(t),th(e.stateNode,e.type,t))}}function gC(e){fl?pl?pl.push(e):pl=[e]:fl=e}function hC(){if(fl){var e=fl,t=pl;if(pl=fl=null,W1(e),t)for(e=0;e>>=0,e===0?32:31-(s_(e)/c_|0)|0}var bs=64,ws=4194304;function Ia(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 xc(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,l=e.pingedLanes,u=n&268435455;if(u!==0){var d=u&~i;d!==0?r=Ia(d):(l&=u,l!==0&&(r=Ia(l)))}else u=n&~i,u!==0?r=Ia(u):l!==0&&(r=Ia(l));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,l=t&-t,i>=l||i===16&&(l&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function pu(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-vr(t),e[t]=n}function g_(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Ma),j1=" ",J1=!1;function NC(e,t){switch(e){case"keyup":return H_.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function FC(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var tl=!1;function $_(e,t){switch(e){case"compositionend":return FC(t);case"keypress":return t.which!==32?null:(J1=!0,j1);case"textInput":return e=t.data,e===j1&&J1?null:e;default:return null}}function X_(e,t){if(tl)return e==="compositionend"||!wm&&NC(e,t)?(e=LC(),Js=vm=Ti=null,tl=!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:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=eb(n)}}function WC(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?WC(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function VC(){for(var e=window,t=vc();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=vc(e.document)}return t}function xm(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 eN(e){var t=VC(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&WC(n.ownerDocument.documentElement,n)){if(r!==null&&xm(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,l=Math.min(r.start,i);r=r.end===void 0?l:Math.min(r.end,i),!e.extend&&l>r&&(i=r,r=l,l=i),i=tb(n,l);var u=tb(n,r);i&&u&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==u.node||e.focusOffset!==u.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),l>r?(e.addRange(t),e.extend(u.node,u.offset)):(t.setEnd(u.node,u.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,nl=null,ah=null,Ta=null,uh=!1;function nb(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;uh||nl==null||nl!==vc(r)||(r=nl,"selectionStart"in r&&xm(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Ta&&Za(Ta,r)||(Ta=r,r=Sc(ah,"onSelect"),0ol||(e.current=gh[ol],gh[ol]=null,ol--)}function Ue(e,t){ol++,gh[ol]=e.current,e.current=t}var Hi={},Kt=Yi(Hi),gn=Yi(!1),yo=Hi;function Cl(e,t){var n=e.type.contextTypes;if(!n)return Hi;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},l;for(l in n)i[l]=t[l];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function hn(e){return e=e.childContextTypes,e!=null}function Ec(){Ke(gn),Ke(Kt)}function sb(e,t,n){if(Kt.current!==Hi)throw Error(K(168));Ue(Kt,t),Ue(gn,n)}function JC(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(K(108,jL(e)||"Unknown",i));return lt({},n,r)}function Ac(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Hi,yo=Kt.current,Ue(Kt,e),Ue(gn,gn.current),!0}function cb(e,t,n){var r=e.stateNode;if(!r)throw Error(K(169));n?(e=JC(e,t,yo),r.__reactInternalMemoizedMergedChildContext=e,Ke(gn),Ke(Kt),Ue(Kt,e)):Ke(gn),Ue(gn,n)}var qr=null,bd=!1,og=!1;function KC(e){qr===null?qr=[e]:qr.push(e)}function fN(e){bd=!0,KC(e)}function ji(){if(!og&&qr!==null){og=!0;var e=0,t=Ve;try{var n=qr;for(Ve=1;e>=u,i-=u,ti=1<<32-vr(t)+i|n<_?(z=T,T=null):z=T.sibling;var H=y(v,T,S[_],P);if(H===null){T===null&&(T=z);break}e&&T&&H.alternate===null&&t(v,T),x=l(H,x,_),M===null?O=H:M.sibling=H,M=H,T=z}if(_===S.length)return n(v,T),nt&&uo(v,_),O;if(T===null){for(;__?(z=T,T=null):z=T.sibling;var J=y(v,T,H.value,P);if(J===null){T===null&&(T=z);break}e&&T&&J.alternate===null&&t(v,T),x=l(J,x,_),M===null?O=J:M.sibling=J,M=J,T=z}if(H.done)return n(v,T),nt&&uo(v,_),O;if(T===null){for(;!H.done;_++,H=S.next())H=h(v,H.value,P),H!==null&&(x=l(H,x,_),M===null?O=H:M.sibling=H,M=H);return nt&&uo(v,_),O}for(T=r(v,T);!H.done;_++,H=S.next())H=m(T,v,_,H.value,P),H!==null&&(e&&H.alternate!==null&&T.delete(H.key===null?_:H.key),x=l(H,x,_),M===null?O=H:M.sibling=H,M=H);return e&&T.forEach(function(Q){return t(v,Q)}),nt&&uo(v,_),O}function I(v,x,S,P){if(typeof S=="object"&&S!==null&&S.type===el&&S.key===null&&(S=S.props.children),typeof S=="object"&&S!==null){switch(S.$$typeof){case ms:e:{for(var O=S.key,M=x;M!==null;){if(M.key===O){if(O=S.type,O===el){if(M.tag===7){n(v,M.sibling),x=i(M,S.props.children),x.return=v,v=x;break e}}else if(M.elementType===O||typeof O=="object"&&O!==null&&O.$$typeof===Ei&&pb(O)===M.type){n(v,M.sibling),x=i(M,S.props),x.ref=da(v,M,S),x.return=v,v=x;break e}n(v,M);break}else t(v,M);M=M.sibling}S.type===el?(x=ho(S.props.children,v.mode,P,S.key),x.return=v,v=x):(P=ic(S.type,S.key,S.props,null,v.mode,P),P.ref=da(v,x,S),P.return=v,v=P)}return u(v);case qo:e:{for(M=S.key;x!==null;){if(x.key===M)if(x.tag===4&&x.stateNode.containerInfo===S.containerInfo&&x.stateNode.implementation===S.implementation){n(v,x.sibling),x=i(x,S.children||[]),x.return=v,v=x;break e}else{n(v,x);break}else t(v,x);x=x.sibling}x=pg(S,v.mode,P),x.return=v,v=x}return u(v);case Ei:return M=S._init,I(v,x,M(S._payload),P)}if(Ca(S))return b(v,x,S,P);if(la(S))return w(v,x,S,P);As(v,S)}return typeof S=="string"&&S!==""||typeof S=="number"?(S=""+S,x!==null&&x.tag===6?(n(v,x.sibling),x=i(x,S),x.return=v,v=x):(n(v,x),x=fg(S,v.mode,P),x.return=v,v=x),u(v)):n(v,x)}return I}var Sl=tI(!0),nI=tI(!1),Pc=Yi(null),Tc=null,ul=null,Rm=null;function Em(){Rm=ul=Tc=null}function Am(e){var t=Pc.current;Ke(Pc),e._currentValue=t}function vh(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function hl(e,t){Tc=e,Rm=ul=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(pn=!0),e.firstContext=null)}function er(e){var t=e._currentValue;if(Rm!==e)if(e={context:e,memoizedValue:t,next:null},ul===null){if(Tc===null)throw Error(K(308));ul=e,Tc.dependencies={lanes:0,firstContext:e}}else ul=ul.next=e;return t}var fo=null;function km(e){fo===null?fo=[e]:fo.push(e)}function rI(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,km(t)):(n.next=i.next,i.next=n),t.interleaved=n,ui(e,r)}function ui(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Ai=!1;function Mm(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function iI(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function ri(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Bi(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Oe&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,ui(e,n)}return i=r.interleaved,i===null?(t.next=t,km(r)):(t.next=i.next,i.next=t),r.interleaved=t,ui(e,n)}function Qs(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,gm(e,n)}}function gb(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,l=null;if(n=n.firstBaseUpdate,n!==null){do{var u={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};l===null?i=l=u:l=l.next=u,n=n.next}while(n!==null);l===null?i=l=t:l=l.next=t}else i=l=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:l,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Oc(e,t,n,r){var i=e.updateQueue;Ai=!1;var l=i.firstBaseUpdate,u=i.lastBaseUpdate,d=i.shared.pending;if(d!==null){i.shared.pending=null;var s=d,c=s.next;s.next=null,u===null?l=c:u.next=c,u=s;var p=e.alternate;p!==null&&(p=p.updateQueue,d=p.lastBaseUpdate,d!==u&&(d===null?p.firstBaseUpdate=c:d.next=c,p.lastBaseUpdate=s))}if(l!==null){var h=i.baseState;u=0,p=c=s=null,d=l;do{var y=d.lane,m=d.eventTime;if((r&y)===y){p!==null&&(p=p.next={eventTime:m,lane:0,tag:d.tag,payload:d.payload,callback:d.callback,next:null});e:{var b=e,w=d;switch(y=t,m=n,w.tag){case 1:if(b=w.payload,typeof b=="function"){h=b.call(m,h,y);break e}h=b;break e;case 3:b.flags=b.flags&-65537|128;case 0:if(b=w.payload,y=typeof b=="function"?b.call(m,h,y):b,y==null)break e;h=lt({},h,y);break e;case 2:Ai=!0}}d.callback!==null&&d.lane!==0&&(e.flags|=64,y=i.effects,y===null?i.effects=[d]:y.push(d))}else m={eventTime:m,lane:y,tag:d.tag,payload:d.payload,callback:d.callback,next:null},p===null?(c=p=m,s=h):p=p.next=m,u|=y;if(d=d.next,d===null){if(d=i.shared.pending,d===null)break;y=d,d=y.next,y.next=null,i.lastBaseUpdate=y,i.shared.pending=null}}while(!0);if(p===null&&(s=h),i.baseState=s,i.firstBaseUpdate=c,i.lastBaseUpdate=p,t=i.shared.interleaved,t!==null){i=t;do u|=i.lane,i=i.next;while(i!==t)}else l===null&&(i.shared.lanes=0);xo|=u,e.lanes=u,e.memoizedState=h}}function hb(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=ag.transition;ag.transition={};try{e(!1),t()}finally{Ve=n,ag.transition=r}}function xI(){return tr().memoizedState}function mN(e,t,n){var r=Gi(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},CI(e))II(t,n);else if(n=rI(e,t,n,r),n!==null){var i=rn();yr(n,e,r,i),SI(n,t,r)}}function vN(e,t,n){var r=Gi(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(CI(e))II(t,i);else{var l=e.alternate;if(e.lanes===0&&(l===null||l.lanes===0)&&(l=t.lastRenderedReducer,l!==null))try{var u=t.lastRenderedState,d=l(u,n);if(i.hasEagerState=!0,i.eagerState=d,br(d,u)){var s=t.interleaved;s===null?(i.next=i,km(t)):(i.next=s.next,s.next=i),t.interleaved=i;return}}catch{}finally{}n=rI(e,t,i,r),n!==null&&(i=rn(),yr(n,e,r,i),SI(n,t,r))}}function CI(e){var t=e.alternate;return e===ot||t!==null&&t===ot}function II(e,t){Oa=_c=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function SI(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,gm(e,n)}}var Nc={readContext:er,useCallback:Xt,useContext:Xt,useEffect:Xt,useImperativeHandle:Xt,useInsertionEffect:Xt,useLayoutEffect:Xt,useMemo:Xt,useReducer:Xt,useRef:Xt,useState:Xt,useDebugValue:Xt,useDeferredValue:Xt,useTransition:Xt,useMutableSource:Xt,useSyncExternalStore:Xt,useId:Xt,unstable_isNewReconciler:!1},yN={readContext:er,useCallback:function(e,t){return kr().memoizedState=[e,t===void 0?null:t],e},useContext:er,useEffect:vb,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,ec(4194308,4,mI.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ec(4194308,4,e,t)},useInsertionEffect:function(e,t){return ec(4,2,e,t)},useMemo:function(e,t){var n=kr();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=kr();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=mN.bind(null,ot,e),[r.memoizedState,e]},useRef:function(e){var t=kr();return e={current:e},t.memoizedState=e},useState:mb,useDebugValue:Bm,useDeferredValue:function(e){return kr().memoizedState=e},useTransition:function(){var e=mb(!1),t=e[0];return e=hN.bind(null,e[1]),kr().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ot,i=kr();if(nt){if(n===void 0)throw Error(K(407));n=n()}else{if(n=t(),Ot===null)throw Error(K(349));wo&30||uI(r,t,n)}i.memoizedState=n;var l={value:n,getSnapshot:t};return i.queue=l,vb(cI.bind(null,r,l,e),[e]),r.flags|=2048,eu(9,sI.bind(null,r,l,n,t),void 0,null),n},useId:function(){var e=kr(),t=Ot.identifierPrefix;if(nt){var n=ni,r=ti;n=(r&~(1<<32-vr(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Qa++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=u.createElement(n,{is:r.is}):(e=u.createElement(n),n==="select"&&(u=e,r.multiple?u.multiple=!0:r.size&&(u.size=r.size))):e=u.createElementNS(e,n),e[Lr]=t,e[ja]=r,_I(e,t,!1,!1),t.stateNode=e;e:{switch(u=qg(n,r),n){case"dialog":je("cancel",e),je("close",e),i=r;break;case"iframe":case"object":case"embed":je("load",e),i=r;break;case"video":case"audio":for(i=0;iAl&&(t.flags|=128,r=!0,fa(l,!1),t.lanes=4194304)}else{if(!r)if(e=Lc(u),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),fa(l,!0),l.tail===null&&l.tailMode==="hidden"&&!u.alternate&&!nt)return Zt(t),null}else 2*ht()-l.renderingStartTime>Al&&n!==1073741824&&(t.flags|=128,r=!0,fa(l,!1),t.lanes=4194304);l.isBackwards?(u.sibling=t.child,t.child=u):(n=l.last,n!==null?n.sibling=u:t.child=u,l.last=u)}return l.tail!==null?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=ht(),t.sibling=null,n=it.current,Ue(it,r?n&1|2:n&1),t):(Zt(t),null);case 22:case 23:return zm(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?En&1073741824&&(Zt(t),t.subtreeFlags&6&&(t.flags|=8192)):Zt(t),null;case 24:return null;case 25:return null}throw Error(K(156,t.tag))}function EN(e,t){switch(Im(t),t.tag){case 1:return hn(t.type)&&Ec(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Rl(),Ke(gn),Ke(Kt),Om(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Tm(t),null;case 13:if(Ke(it),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(K(340));Il()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ke(it),null;case 4:return Rl(),null;case 10:return Am(t.type._context),null;case 22:case 23:return zm(),null;case 24:return null;default:return null}}var Ms=!1,jt=!1,AN=typeof WeakSet=="function"?WeakSet:Set,le=null;function sl(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){dt(e,t,r)}else n.current=null}function Eh(e,t,n){try{n()}catch(r){dt(e,t,r)}}var kb=!1;function kN(e,t){if(sh=Cc,e=VC(),xm(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,l=r.focusNode;r=r.focusOffset;try{n.nodeType,l.nodeType}catch{n=null;break e}var u=0,d=-1,s=-1,c=0,p=0,h=e,y=null;t:for(;;){for(var m;h!==n||i!==0&&h.nodeType!==3||(d=u+i),h!==l||r!==0&&h.nodeType!==3||(s=u+r),h.nodeType===3&&(u+=h.nodeValue.length),(m=h.firstChild)!==null;)y=h,h=m;for(;;){if(h===e)break t;if(y===n&&++c===i&&(d=u),y===l&&++p===r&&(s=u),(m=h.nextSibling)!==null)break;h=y,y=h.parentNode}h=m}n=d===-1||s===-1?null:{start:d,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(ch={focusedElem:e,selectionRange:n},Cc=!1,le=t;le!==null;)if(t=le,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,le=e;else for(;le!==null;){t=le;try{var b=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(b!==null){var w=b.memoizedProps,I=b.memoizedState,v=t.stateNode,x=v.getSnapshotBeforeUpdate(t.elementType===t.type?w:pr(t.type,w),I);v.__reactInternalSnapshotBeforeUpdate=x}break;case 3:var S=t.stateNode.containerInfo;S.nodeType===1?S.textContent="":S.nodeType===9&&S.documentElement&&S.removeChild(S.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(K(163))}}catch(P){dt(t,t.return,P)}if(e=t.sibling,e!==null){e.return=t.return,le=e;break}le=t.return}return b=kb,kb=!1,b}function La(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var l=i.destroy;i.destroy=void 0,l!==void 0&&Eh(t,n,l)}i=i.next}while(i!==r)}}function Cd(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Ah(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function BI(e){var t=e.alternate;t!==null&&(e.alternate=null,BI(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Lr],delete t[ja],delete t[ph],delete t[cN],delete t[dN])),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 DI(e){return e.tag===5||e.tag===3||e.tag===4}function Mb(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||DI(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 kh(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Rc));else if(r!==4&&(e=e.child,e!==null))for(kh(e,t,n),e=e.sibling;e!==null;)kh(e,t,n),e=e.sibling}function Mh(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Mh(e,t,n),e=e.sibling;e!==null;)Mh(e,t,n),e=e.sibling}var Bt=null,gr=!1;function Ri(e,t,n){for(n=n.child;n!==null;)GI(e,t,n),n=n.sibling}function GI(e,t,n){if(_r&&typeof _r.onCommitFiberUnmount=="function")try{_r.onCommitFiberUnmount(gd,n)}catch{}switch(n.tag){case 5:jt||sl(n,t);case 6:var r=Bt,i=gr;Bt=null,Ri(e,t,n),Bt=r,gr=i,Bt!==null&&(gr?(e=Bt,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Bt.removeChild(n.stateNode));break;case 18:Bt!==null&&(gr?(e=Bt,n=n.stateNode,e.nodeType===8?ig(e.parentNode,n):e.nodeType===1&&ig(e,n),$a(e)):ig(Bt,n.stateNode));break;case 4:r=Bt,i=gr,Bt=n.stateNode.containerInfo,gr=!0,Ri(e,t,n),Bt=r,gr=i;break;case 0:case 11:case 14:case 15:if(!jt&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var l=i,u=l.destroy;l=l.tag,u!==void 0&&(l&2||l&4)&&Eh(n,t,u),i=i.next}while(i!==r)}Ri(e,t,n);break;case 1:if(!jt&&(sl(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(d){dt(n,t,d)}Ri(e,t,n);break;case 21:Ri(e,t,n);break;case 22:n.mode&1?(jt=(r=jt)||n.memoizedState!==null,Ri(e,t,n),jt=r):Ri(e,t,n);break;default:Ri(e,t,n)}}function Pb(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new AN),t.forEach(function(r){var i=BN.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function fr(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=u),r&=~l}if(r=i,r=ht()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*PN(r/1960))-r,10e?16:e,Oi===null)var r=!1;else{if(e=Oi,Oi=null,Dc=0,Oe&6)throw Error(K(331));var i=Oe;for(Oe|=4,le=e.current;le!==null;){var l=le,u=l.child;if(le.flags&16){var d=l.deletions;if(d!==null){for(var s=0;sht()-Vm?go(e,0):Wm|=n),mn(e,t)}function UI(e,t){t===0&&(e.mode&1?(t=ws,ws<<=1,!(ws&130023424)&&(ws=4194304)):t=1);var n=rn();e=ui(e,t),e!==null&&(pu(e,t,n),mn(e,n))}function FN(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),UI(e,n)}function BN(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(K(314))}r!==null&&r.delete(t),UI(e,n)}var YI;YI=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||gn.current)pn=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return pn=!1,SN(e,t,n);pn=!!(e.flags&131072)}else pn=!1,nt&&t.flags&1048576&&QC(t,Mc,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;tc(e,t),e=t.pendingProps;var i=Cl(t,Kt.current);hl(t,n),i=_m(null,t,r,e,i,n);var l=Nm();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,hn(r)?(l=!0,Ac(t)):l=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Mm(t),i.updater=xd,t.stateNode=i,i._reactInternals=t,bh(t,r,e,n),t=Ch(null,t,r,!0,l,n)):(t.tag=0,nt&&l&&Cm(t),nn(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(tc(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=GN(r),e=pr(r,e),i){case 0:t=xh(null,t,r,e,n);break e;case 1:t=Rb(null,t,r,e,n);break e;case 11:t=Ib(null,t,r,e,n);break e;case 14:t=Sb(null,t,r,pr(r.type,e),n);break e}throw Error(K(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:pr(r,i),xh(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:pr(r,i),Rb(e,t,r,i,n);case 3:e:{if(TI(t),e===null)throw Error(K(387));r=t.pendingProps,l=t.memoizedState,i=l.element,iI(e,t),Oc(t,r,null,n);var u=t.memoizedState;if(r=u.element,l.isDehydrated)if(l={element:r,isDehydrated:!1,cache:u.cache,pendingSuspenseBoundaries:u.pendingSuspenseBoundaries,transitions:u.transitions},t.updateQueue.baseState=l,t.memoizedState=l,t.flags&256){i=El(Error(K(423)),t),t=Eb(e,t,r,n,i);break e}else if(r!==i){i=El(Error(K(424)),t),t=Eb(e,t,r,n,i);break e}else for(Mn=Fi(t.stateNode.containerInfo.firstChild),Tn=t,nt=!0,mr=null,n=nI(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Il(),r===i){t=si(e,t,n);break e}nn(e,t,r,n)}t=t.child}return t;case 5:return oI(t),e===null&&mh(t),r=t.type,i=t.pendingProps,l=e!==null?e.memoizedProps:null,u=i.children,dh(r,i)?u=null:l!==null&&dh(r,l)&&(t.flags|=32),PI(e,t),nn(e,t,u,n),t.child;case 6:return e===null&&mh(t),null;case 13:return OI(e,t,n);case 4:return Pm(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Sl(t,null,r,n):nn(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:pr(r,i),Ib(e,t,r,i,n);case 7:return nn(e,t,t.pendingProps,n),t.child;case 8:return nn(e,t,t.pendingProps.children,n),t.child;case 12:return nn(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,l=t.memoizedProps,u=i.value,Ue(Pc,r._currentValue),r._currentValue=u,l!==null)if(br(l.value,u)){if(l.children===i.children&&!gn.current){t=si(e,t,n);break e}}else for(l=t.child,l!==null&&(l.return=t);l!==null;){var d=l.dependencies;if(d!==null){u=l.child;for(var s=d.firstContext;s!==null;){if(s.context===r){if(l.tag===1){s=ri(-1,n&-n),s.tag=2;var c=l.updateQueue;if(c!==null){c=c.shared;var p=c.pending;p===null?s.next=s:(s.next=p.next,p.next=s),c.pending=s}}l.lanes|=n,s=l.alternate,s!==null&&(s.lanes|=n),vh(l.return,n,t),d.lanes|=n;break}s=s.next}}else if(l.tag===10)u=l.type===t.type?null:l.child;else if(l.tag===18){if(u=l.return,u===null)throw Error(K(341));u.lanes|=n,d=u.alternate,d!==null&&(d.lanes|=n),vh(u,n,t),u=l.sibling}else u=l.child;if(u!==null)u.return=l;else for(u=l;u!==null;){if(u===t){u=null;break}if(l=u.sibling,l!==null){l.return=u.return,u=l;break}u=u.return}l=u}nn(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,hl(t,n),i=er(i),r=r(i),t.flags|=1,nn(e,t,r,n),t.child;case 14:return r=t.type,i=pr(r,t.pendingProps),i=pr(r.type,i),Sb(e,t,r,i,n);case 15:return kI(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:pr(r,i),tc(e,t),t.tag=1,hn(r)?(e=!0,Ac(t)):e=!1,hl(t,n),RI(t,r,i),bh(t,r,i,n),Ch(null,t,r,!0,e,n);case 19:return LI(e,t,n);case 22:return MI(e,t,n)}throw Error(K(156,t.tag))};function jI(e,t){return CC(e,t)}function DN(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Qn(e,t,n,r){return new DN(e,t,n,r)}function Xm(e){return e=e.prototype,!(!e||!e.isReactComponent)}function GN(e){if(typeof e=="function")return Xm(e)?1:0;if(e!=null){if(e=e.$$typeof,e===cm)return 11;if(e===dm)return 14}return 2}function Wi(e,t){var n=e.alternate;return n===null?(n=Qn(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function ic(e,t,n,r,i,l){var u=2;if(r=e,typeof e=="function")Xm(e)&&(u=1);else if(typeof e=="string")u=5;else e:switch(e){case el:return ho(n.children,i,l,t);case sm:u=8,i|=8;break;case zg:return e=Qn(12,n,t,i|2),e.elementType=zg,e.lanes=l,e;case $g:return e=Qn(13,n,t,i),e.elementType=$g,e.lanes=l,e;case Xg:return e=Qn(19,n,t,i),e.elementType=Xg,e.lanes=l,e;case oC:return Sd(n,i,l,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case rC:u=10;break e;case iC:u=9;break e;case cm:u=11;break e;case dm:u=14;break e;case Ei:u=16,r=null;break e}throw Error(K(130,e==null?e:typeof e,""))}return t=Qn(u,n,t,i),t.elementType=e,t.type=r,t.lanes=l,t}function ho(e,t,n,r){return e=Qn(7,e,r,t),e.lanes=n,e}function Sd(e,t,n,r){return e=Qn(22,e,r,t),e.elementType=oC,e.lanes=n,e.stateNode={isHidden:!1},e}function fg(e,t,n){return e=Qn(6,e,null,t),e.lanes=n,e}function pg(e,t,n){return t=Qn(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function WN(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Up(0),this.expirationTimes=Up(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Up(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Zm(e,t,n,r,i,l,u,d,s){return e=new WN(e,t,n,d,s),t===1?(t=1,l===!0&&(t|=8)):t=0,l=Qn(3,null,null,t),e.current=l,l.stateNode=e,l.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Mm(l),e}function VN(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(qI)}catch(e){console.error(e)}}qI(),qx.exports=Nn;var Jm=qx.exports,Db=Jm;Vg.createRoot=Db.createRoot,Vg.hydrateRoot=Db.hydrateRoot;function q(){return q=Object.assign?Object.assign.bind():function(e){for(var t=1;t{if(r.toString().match(/^(components|slots)$/))n[r]=q({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const i=e[r]||{},l=t[r];n[r]={},!l||!Object.keys(l)?n[r]=i:!i||!Object.keys(i)?n[r]=l:(n[r]=q({},l),Object.keys(i).forEach(u=>{n[r][u]=eS(i[u],l[u])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function ZN(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:eS(t.components[n].defaultProps,r)}function wr(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Pi(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function tS(e){if(!Pi(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=tS(e[n])}),t}function Fr(e,t,n={clone:!0}){const r=n.clone?q({},e):e;return Pi(e)&&Pi(t)&&Object.keys(t).forEach(i=>{Pi(t[i])&&Object.prototype.hasOwnProperty.call(e,i)&&Pi(e[i])?r[i]=Fr(e[i],t[i],n):n.clone?r[i]=Pi(t[i])?tS(t[i]):t[i]:r[i]=t[i]}),r}const UN=Object.freeze(Object.defineProperty({__proto__:null,default:Fr,isPlainObject:Pi},Symbol.toStringTag,{value:"Module"})),YN=["values","unit","step"],jN=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>q({},n,{[r.key]:r.val}),{})};function nS(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,i=wr(e,YN),l=jN(t),u=Object.keys(l);function d(y){return`@media (min-width:${typeof t[y]=="number"?t[y]:y}${n})`}function s(y){return`@media (max-width:${(typeof t[y]=="number"?t[y]:y)-r/100}${n})`}function c(y,m){const b=u.indexOf(m);return`@media (min-width:${typeof t[y]=="number"?t[y]:y}${n}) and (max-width:${(b!==-1&&typeof t[u[b]]=="number"?t[u[b]]:m)-r/100}${n})`}function p(y){return u.indexOf(y)+1`@media (min-width:${Km[e]}px)`};function nr(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const l=r.breakpoints||Gb;return t.reduce((u,d,s)=>(u[l.up(l.keys[s])]=n(t[s]),u),{})}if(typeof t=="object"){const l=r.breakpoints||Gb;return Object.keys(t).reduce((u,d)=>{if(Object.keys(l.values||Km).indexOf(d)!==-1){const s=l.up(d);u[s]=n(t[d],d)}else{const s=d;u[s]=t[s]}return u},{})}return n(t)}function KN(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,i)=>{const l=e.up(i);return r[l]={},r},{}))||{}}function QN(e,t){return e.reduce((n,r)=>{const i=n[r];return(!i||Object.keys(i).length===0)&&delete n[r],n},t)}function qN(e,t){if(typeof e!="object")return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((i,l)=>{l{e[i]!=null&&(n[i]=!0)}),n}function Md({values:e,breakpoints:t,base:n}){const r=n||qN(e,t),i=Object.keys(r);if(i.length===0)return e;let l;return i.reduce((u,d,s)=>(Array.isArray(e)?(u[d]=e[s]!=null?e[s]:e[l],l=s):typeof e=="object"?(u[d]=e[d]!=null?e[d]:e[l],l=d):u[d]=e,u),{})}function nu(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;ni&&i[l]?i[l]:null,e);if(r!=null)return r}return t.split(".").reduce((r,i)=>r&&r[i]!=null?r[i]:null,e)}function Vc(e,t,n,r=n){let i;return typeof e=="function"?i=e(n):Array.isArray(e)?i=e[n]||r:i=Pd(e,n)||r,t&&(i=t(i,r,e)),i}function mt(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:i}=e,l=u=>{if(u[t]==null)return null;const d=u[t],s=u.theme,c=Pd(s,r)||{};return nr(u,d,h=>{let y=Vc(c,i,h);return h===y&&typeof h=="string"&&(y=Vc(c,i,`${t}${h==="default"?"":Qm(h)}`,h)),n===!1?y:{[n]:y}})};return l.propTypes={},l.filterProps=[t],l}function n4(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const r4={m:"margin",p:"padding"},i4={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Wb={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},o4=n4(e=>{if(e.length>2)if(Wb[e])e=Wb[e];else return[e];const[t,n]=e.split(""),r=r4[t],i=i4[n]||"";return Array.isArray(i)?i.map(l=>r+l):[r+i]}),qm=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],ev=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...qm,...ev];function vu(e,t,n,r){var i;const l=(i=Pd(e,t,!1))!=null?i:n;return typeof l=="number"?u=>typeof u=="string"?u:l*u:Array.isArray(l)?u=>typeof u=="string"?u:l[u]:typeof l=="function"?l:()=>{}}function rS(e){return vu(e,"spacing",8)}function yu(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),r=e(n);return t>=0?r:typeof r=="number"?-r:`-${r}`}function l4(e,t){return n=>e.reduce((r,i)=>(r[i]=yu(t,n),r),{})}function a4(e,t,n,r){if(t.indexOf(n)===-1)return null;const i=o4(n),l=l4(i,r),u=e[n];return nr(e,u,l)}function iS(e,t){const n=rS(e.theme);return Object.keys(e).map(r=>a4(e,t,r,n)).reduce(Fa,{})}function ut(e){return iS(e,qm)}ut.propTypes={};ut.filterProps=qm;function st(e){return iS(e,ev)}st.propTypes={};st.filterProps=ev;function u4(e=8){if(e.mui)return e;const t=rS({spacing:e}),n=(...r)=>(r.length===0?[1]:r).map(l=>{const u=t(l);return typeof u=="number"?`${u}px`:u}).join(" ");return n.mui=!0,n}function Td(...e){const t=e.reduce((r,i)=>(i.filterProps.forEach(l=>{r[l]=i}),r),{}),n=r=>Object.keys(r).reduce((i,l)=>t[l]?Fa(i,t[l](r)):i,{});return n.propTypes={},n.filterProps=e.reduce((r,i)=>r.concat(i.filterProps),[]),n}function Kn(e){return typeof e!="number"?e:`${e}px solid`}function or(e,t){return mt({prop:e,themeKey:"borders",transform:t})}const s4=or("border",Kn),c4=or("borderTop",Kn),d4=or("borderRight",Kn),f4=or("borderBottom",Kn),p4=or("borderLeft",Kn),g4=or("borderColor"),h4=or("borderTopColor"),m4=or("borderRightColor"),v4=or("borderBottomColor"),y4=or("borderLeftColor"),b4=or("outline",Kn),w4=or("outlineColor"),Od=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=vu(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:yu(t,r)});return nr(e,e.borderRadius,n)}return null};Od.propTypes={};Od.filterProps=["borderRadius"];Td(s4,c4,d4,f4,p4,g4,h4,m4,v4,y4,Od,b4,w4);const Ld=e=>{if(e.gap!==void 0&&e.gap!==null){const t=vu(e.theme,"spacing",8),n=r=>({gap:yu(t,r)});return nr(e,e.gap,n)}return null};Ld.propTypes={};Ld.filterProps=["gap"];const _d=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=vu(e.theme,"spacing",8),n=r=>({columnGap:yu(t,r)});return nr(e,e.columnGap,n)}return null};_d.propTypes={};_d.filterProps=["columnGap"];const Nd=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=vu(e.theme,"spacing",8),n=r=>({rowGap:yu(t,r)});return nr(e,e.rowGap,n)}return null};Nd.propTypes={};Nd.filterProps=["rowGap"];const x4=mt({prop:"gridColumn"}),C4=mt({prop:"gridRow"}),I4=mt({prop:"gridAutoFlow"}),S4=mt({prop:"gridAutoColumns"}),R4=mt({prop:"gridAutoRows"}),E4=mt({prop:"gridTemplateColumns"}),A4=mt({prop:"gridTemplateRows"}),k4=mt({prop:"gridTemplateAreas"}),M4=mt({prop:"gridArea"});Td(Ld,_d,Nd,x4,C4,I4,S4,R4,E4,A4,k4,M4);function vl(e,t){return t==="grey"?t:e}const P4=mt({prop:"color",themeKey:"palette",transform:vl}),T4=mt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:vl}),O4=mt({prop:"backgroundColor",themeKey:"palette",transform:vl});Td(P4,T4,O4);function An(e){return e<=1&&e!==0?`${e*100}%`:e}const L4=mt({prop:"width",transform:An}),tv=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,i;const l=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||Km[n];return l?((i=e.theme)==null||(i=i.breakpoints)==null?void 0:i.unit)!=="px"?{maxWidth:`${l}${e.theme.breakpoints.unit}`}:{maxWidth:l}:{maxWidth:An(n)}};return nr(e,e.maxWidth,t)}return null};tv.filterProps=["maxWidth"];const _4=mt({prop:"minWidth",transform:An}),N4=mt({prop:"height",transform:An}),F4=mt({prop:"maxHeight",transform:An}),B4=mt({prop:"minHeight",transform:An});mt({prop:"size",cssProperty:"width",transform:An});mt({prop:"size",cssProperty:"height",transform:An});const D4=mt({prop:"boxSizing"});Td(L4,tv,_4,N4,F4,B4,D4);const bu={border:{themeKey:"borders",transform:Kn},borderTop:{themeKey:"borders",transform:Kn},borderRight:{themeKey:"borders",transform:Kn},borderBottom:{themeKey:"borders",transform:Kn},borderLeft:{themeKey:"borders",transform:Kn},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Kn},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Od},color:{themeKey:"palette",transform:vl},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:vl},backgroundColor:{themeKey:"palette",transform:vl},p:{style:st},pt:{style:st},pr:{style:st},pb:{style:st},pl:{style:st},px:{style:st},py:{style:st},padding:{style:st},paddingTop:{style:st},paddingRight:{style:st},paddingBottom:{style:st},paddingLeft:{style:st},paddingX:{style:st},paddingY:{style:st},paddingInline:{style:st},paddingInlineStart:{style:st},paddingInlineEnd:{style:st},paddingBlock:{style:st},paddingBlockStart:{style:st},paddingBlockEnd:{style:st},m:{style:ut},mt:{style:ut},mr:{style:ut},mb:{style:ut},ml:{style:ut},mx:{style:ut},my:{style:ut},margin:{style:ut},marginTop:{style:ut},marginRight:{style:ut},marginBottom:{style:ut},marginLeft:{style:ut},marginX:{style:ut},marginY:{style:ut},marginInline:{style:ut},marginInlineStart:{style:ut},marginInlineEnd:{style:ut},marginBlock:{style:ut},marginBlockStart:{style:ut},marginBlockEnd:{style:ut},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:Ld},rowGap:{style:Nd},columnGap:{style:_d},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:An},maxWidth:{style:tv},minWidth:{transform:An},height:{transform:An},maxHeight:{transform:An},minHeight:{transform:An},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function G4(...e){const t=e.reduce((r,i)=>r.concat(Object.keys(i)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function W4(e,t){return typeof e=="function"?e(t):e}function oS(){function e(n,r,i,l){const u={[n]:r,theme:i},d=l[n];if(!d)return{[n]:r};const{cssProperty:s=n,themeKey:c,transform:p,style:h}=d;if(r==null)return null;if(c==="typography"&&r==="inherit")return{[n]:r};const y=Pd(i,c)||{};return h?h(u):nr(u,r,b=>{let w=Vc(y,p,b);return b===w&&typeof b=="string"&&(w=Vc(y,p,`${n}${b==="default"?"":Qm(b)}`,b)),s===!1?w:{[s]:w}})}function t(n){var r;const{sx:i,theme:l={}}=n||{};if(!i)return null;const u=(r=l.unstable_sxConfig)!=null?r:bu;function d(s){let c=s;if(typeof s=="function")c=s(l);else if(typeof s!="object")return s;if(!c)return null;const p=KN(l.breakpoints),h=Object.keys(p);let y=p;return Object.keys(c).forEach(m=>{const b=W4(c[m],l);if(b!=null)if(typeof b=="object")if(u[m])y=Fa(y,e(m,b,l,u));else{const w=nr({theme:l},b,I=>({[m]:I}));G4(w,b)?y[m]=t({sx:b,theme:l}):y=Fa(y,w)}else y=Fa(y,e(m,b,l,u))}),QN(h,y)}return Array.isArray(i)?i.map(d):d(i)}return t}const wu=oS();wu.filterProps=["sx"];function lS(e,t){const n=this;return n.vars&&typeof n.getColorSchemeSelector=="function"?{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:n.palette.mode===e?t:{}}const V4=["breakpoints","palette","spacing","shape"];function nv(e={},...t){const{breakpoints:n={},palette:r={},spacing:i,shape:l={}}=e,u=wr(e,V4),d=nS(n),s=u4(i);let c=Fr({breakpoints:d,direction:"ltr",components:{},palette:q({mode:"light"},r),spacing:s,shape:q({},JN,l)},u);return c.applyStyles=lS,c=t.reduce((p,h)=>Fr(p,h),c),c.unstable_sxConfig=q({},bu,u==null?void 0:u.unstable_sxConfig),c.unstable_sx=function(h){return wu({sx:h,theme:this})},c}const H4=Object.freeze(Object.defineProperty({__proto__:null,default:nv,private_createBreakpoints:nS,unstable_applyStyles:lS},Symbol.toStringTag,{value:"Module"}));function aS(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var z4=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,$4=aS(function(e){return z4.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function X4(e){if(e.sheet)return e.sheet;for(var t=0;t0?Gt(Nl,--yn):0,kl--,bt===10&&(kl=1,Bd--),bt}function On(){return bt=yn2||iu(bt)>3?"":" "}function i5(e,t){for(;--t&&On()&&!(bt<48||bt>102||bt>57&&bt<65||bt>70&&bt<97););return xu(e,oc()+(t<6&&Br()==32&&On()==32))}function Nh(e){for(;On();)switch(bt){case e:return yn;case 34:case 39:e!==34&&e!==39&&Nh(bt);break;case 40:e===41&&Nh(e);break;case 92:On();break}return yn}function o5(e,t){for(;On()&&e+bt!==57;)if(e+bt===84&&Br()===47)break;return"/*"+xu(t,yn-1)+"*"+Fd(e===47?e:On())}function l5(e){for(;!iu(Br());)On();return xu(e,yn)}function a5(e){return pS(ac("",null,null,null,[""],e=fS(e),0,[0],e))}function ac(e,t,n,r,i,l,u,d,s){for(var c=0,p=0,h=u,y=0,m=0,b=0,w=1,I=1,v=1,x=0,S="",P=i,O=l,M=r,T=S;I;)switch(b=x,x=On()){case 40:if(b!=108&&Gt(T,h-1)==58){_h(T+=Be(lc(x),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:T+=lc(x);break;case 9:case 10:case 13:case 32:T+=r5(b);break;case 92:T+=i5(oc()-1,7);continue;case 47:switch(Br()){case 42:case 47:Os(u5(o5(On(),oc()),t,n),s);break;default:T+="/"}break;case 123*w:d[c++]=Mr(T)*v;case 125*w:case 59:case 0:switch(x){case 0:case 125:I=0;case 59+p:v==-1&&(T=Be(T,/\f/g,"")),m>0&&Mr(T)-h&&Os(m>32?Hb(T+";",r,n,h-1):Hb(Be(T," ","")+";",r,n,h-2),s);break;case 59:T+=";";default:if(Os(M=Vb(T,t,n,c,p,i,d,S,P=[],O=[],h),l),x===123)if(p===0)ac(T,t,M,M,P,l,h,d,O);else switch(y===99&&Gt(T,3)===110?100:y){case 100:case 108:case 109:case 115:ac(e,M,M,r&&Os(Vb(e,M,M,0,0,i,d,S,i,P=[],h),O),i,O,h,d,r?P:O);break;default:ac(T,M,M,M,[""],O,0,d,O)}}c=p=m=0,w=v=1,S=T="",h=u;break;case 58:h=1+Mr(T),m=b;default:if(w<1){if(x==123)--w;else if(x==125&&w++==0&&n5()==125)continue}switch(T+=Fd(x),x*w){case 38:v=p>0?1:(T+="\f",-1);break;case 44:d[c++]=(Mr(T)-1)*v,v=1;break;case 64:Br()===45&&(T+=lc(On())),y=Br(),p=h=Mr(S=T+=l5(oc())),x++;break;case 45:b===45&&Mr(T)==2&&(w=0)}}return l}function Vb(e,t,n,r,i,l,u,d,s,c,p){for(var h=i-1,y=i===0?l:[""],m=ov(y),b=0,w=0,I=0;b0?y[v]+" "+x:Be(x,/&\f/g,y[v])))&&(s[I++]=S);return Dd(e,t,n,i===0?rv:d,s,c,p)}function u5(e,t,n){return Dd(e,t,n,uS,Fd(t5()),ru(e,2,-2),0)}function Hb(e,t,n,r){return Dd(e,t,n,iv,ru(e,0,r),ru(e,r+1,-1),r)}function yl(e,t){for(var n="",r=ov(e),i=0;i6)switch(Gt(e,t+1)){case 109:if(Gt(e,t+4)!==45)break;case 102:return Be(e,/(.+:)(.+)-([^]+)/,"$1"+Ne+"$2-$3$1"+Hc+(Gt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~_h(e,"stretch")?gS(Be(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Gt(e,t+1)!==115)break;case 6444:switch(Gt(e,Mr(e)-3-(~_h(e,"!important")&&10))){case 107:return Be(e,":",":"+Ne)+e;case 101:return Be(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ne+(Gt(e,14)===45?"inline-":"")+"box$3$1"+Ne+"$2$3$1"+Ut+"$2box$3")+e}break;case 5936:switch(Gt(e,t+11)){case 114:return Ne+e+Ut+Be(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ne+e+Ut+Be(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ne+e+Ut+Be(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Ne+e+Ut+e+e}return e}var v5=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case iv:t.return=gS(t.value,t.length);break;case sS:return yl([ga(t,{value:Be(t.value,"@","@"+Ne)})],i);case rv:if(t.length)return e5(t.props,function(l){switch(q4(l,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return yl([ga(t,{props:[Be(l,/:(read-\w+)/,":"+Hc+"$1")]})],i);case"::placeholder":return yl([ga(t,{props:[Be(l,/:(plac\w+)/,":"+Ne+"input-$1")]}),ga(t,{props:[Be(l,/:(plac\w+)/,":"+Hc+"$1")]}),ga(t,{props:[Be(l,/:(plac\w+)/,Ut+"input-$1")]})],i)}return""})}},y5=[v5],hS=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(w){var I=w.getAttribute("data-emotion");I.indexOf(" ")!==-1&&(document.head.appendChild(w),w.setAttribute("data-s",""))})}var i=t.stylisPlugins||y5,l={},u,d=[];u=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(w){for(var I=w.getAttribute("data-emotion").split(" "),v=1;v=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&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 M5={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},P5=/[A-Z]|^ms/g,T5=/_EMO_([^_]+?)_([^]*?)_EMO_/g,xS=function(t){return t.charCodeAt(1)===45},$b=function(t){return t!=null&&typeof t!="boolean"},gg=aS(function(e){return xS(e)?e:e.replace(P5,"-$&").toLowerCase()}),Xb=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(T5,function(r,i,l){return Pr={name:i,styles:l,next:Pr},i})}return M5[t]!==1&&!xS(t)&&typeof n=="number"&&n!==0?n+"px":n};function ou(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return Pr={name:n.name,styles:n.styles,next:Pr},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)Pr={name:r.name,styles:r.styles,next:Pr},r=r.next;var i=n.styles+";";return i}return O5(e,t,n)}case"function":{if(e!==void 0){var l=Pr,u=n(e);return Pr=l,ou(e,t,u)}break}}if(t==null)return n;var d=t[n];return d!==void 0?d:n}function O5(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i96?W5:V5},Jb=function(t,n,r){var i;if(n){var l=n.shouldForwardProp;i=t.__emotion_forwardProp&&l?function(u){return t.__emotion_forwardProp(u)&&l(u)}:l}return typeof i!="function"&&r&&(i=t.__emotion_forwardProp),i},H5=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return sv(n,r,i),IS(function(){return cv(n,r,i)}),null},z5=function e(t,n){var r=t.__emotion_real===t,i=r&&t.__emotion_base||t,l,u;n!==void 0&&(l=n.label,u=n.target);var d=Jb(t,n,r),s=d||jb(i),c=!s("as");return function(){var p=arguments,h=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(l!==void 0&&h.push("label:"+l+";"),p[0]==null||p[0].raw===void 0)h.push.apply(h,p);else{h.push(p[0][0]);for(var y=p.length,m=1;mt(Z5(i)?n:i):t;return Te.jsx(G5,{styles:r})}function AS(e,t){return Bh(e,t)}const Y5=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},j5=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:U5,StyledEngineProvider:X5,ThemeContext:Cu,css:Jd,default:AS,internal_processStyles:Y5,keyframes:ES},Symbol.toStringTag,{value:"Module"}));function J5(e){return Object.keys(e).length===0}function K5(e=null){const t=E.useContext(Cu);return!t||J5(t)?e:t}const Q5=nv();function pv(e=Q5){return K5(e)}function q5({props:e,name:t,defaultTheme:n,themeId:r}){let i=pv(n);return r&&(i=i[r]||i),ZN({theme:i,name:t,props:e})}const e3=["sx"],t3=e=>{var t,n;const r={systemProps:{},otherProps:{}},i=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:bu;return Object.keys(e).forEach(l=>{i[l]?r.systemProps[l]=e[l]:r.otherProps[l]=e[l]}),r};function gv(e){const{sx:t}=e,n=wr(e,e3),{systemProps:r,otherProps:i}=t3(n);let l;return Array.isArray(t)?l=[r,...t]:typeof t=="function"?l=(...u)=>{const d=t(...u);return Pi(d)?q({},r,d):r}:l=q({},r,t),q({},i,{sx:l})}const n3=Object.freeze(Object.defineProperty({__proto__:null,default:wu,extendSxProp:gv,unstable_createStyleFunctionSx:oS,unstable_defaultSxConfig:bu},Symbol.toStringTag,{value:"Module"})),Kb=e=>e,r3=()=>{let e=Kb;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Kb}}},kS=r3(),i3={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function hv(e,t,n="Mui"){const r=i3[t];return r?`${n}-${r}`:`${kS.generate(e)}-${t}`}function o3(e,t){return q({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var vt={},MS={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(MS);var PS=MS.exports;const l3=Zi(e4);function a3(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}const u3=Object.freeze(Object.defineProperty({__proto__:null,default:a3},Symbol.toStringTag,{value:"Module"})),s3=Zi(u3);var TS=PS;Object.defineProperty(vt,"__esModule",{value:!0});var Qb=vt.alpha=NS;vt.blend=C3;vt.colorChannel=void 0;var c3=vt.darken=vv;vt.decomposeColor=rr;vt.emphasize=FS;var d3=vt.getContrastRatio=v3;vt.getLuminance=zc;vt.hexToRgb=OS;vt.hslToRgb=_S;var f3=vt.lighten=yv;vt.private_safeAlpha=y3;vt.private_safeColorChannel=void 0;vt.private_safeDarken=b3;vt.private_safeEmphasize=x3;vt.private_safeLighten=w3;vt.recomposeColor=Fl;vt.rgbToHex=m3;var qb=TS(l3),p3=TS(s3);function mv(e,t=0,n=1){return(0,p3.default)(e,t,n)}function OS(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,i)=>i<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function g3(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function rr(e){if(e.type)return e;if(e.charAt(0)==="#")return rr(OS(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error((0,qb.default)(9,e));let r=e.substring(t+1,e.length-1),i;if(n==="color"){if(r=r.split(" "),i=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(i)===-1)throw new Error((0,qb.default)(10,i))}else r=r.split(",");return r=r.map(l=>parseFloat(l)),{type:n,values:r,colorSpace:i}}const LS=e=>{const t=rr(e);return t.values.slice(0,3).map((n,r)=>t.type.indexOf("hsl")!==-1&&r!==0?`${n}%`:n).join(" ")};vt.colorChannel=LS;const h3=(e,t)=>{try{return LS(e)}catch{return e}};vt.private_safeColorChannel=h3;function Fl(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((i,l)=>l<3?parseInt(i,10):i):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function m3(e){if(e.indexOf("#")===0)return e;const{values:t}=rr(e);return`#${t.map((n,r)=>g3(r===3?Math.round(255*n):n)).join("")}`}function _S(e){e=rr(e);const{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,l=r*Math.min(i,1-i),u=(c,p=(c+n/30)%12)=>i-l*Math.max(Math.min(p-3,9-p,1),-1);let d="rgb";const s=[Math.round(u(0)*255),Math.round(u(8)*255),Math.round(u(4)*255)];return e.type==="hsla"&&(d+="a",s.push(t[3])),Fl({type:d,values:s})}function zc(e){e=rr(e);let t=e.type==="hsl"||e.type==="hsla"?rr(_S(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function v3(e,t){const n=zc(e),r=zc(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function NS(e,t){return e=rr(e),t=mv(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Fl(e)}function y3(e,t,n){try{return NS(e,t)}catch{return e}}function vv(e,t){if(e=rr(e),t=mv(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 n=0;n<3;n+=1)e.values[n]*=1-t;return Fl(e)}function b3(e,t,n){try{return vv(e,t)}catch{return e}}function yv(e,t){if(e=rr(e),t=mv(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return Fl(e)}function w3(e,t,n){try{return yv(e,t)}catch{return e}}function FS(e,t=.15){return zc(e)>.5?vv(e,t):yv(e,t)}function x3(e,t,n){try{return FS(e,t)}catch{return e}}function C3(e,t,n,r=1){const i=(s,c)=>Math.round((s**(1/r)*(1-n)+c**(1/r)*n)**r),l=rr(e),u=rr(t),d=[i(l.values[0],u.values[0]),i(l.values[1],u.values[1]),i(l.values[2],u.values[2])];return Fl({type:"rgb",values:d})}const lu={black:"#000",white:"#fff"},I3={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"},$o={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"},Xo={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"},ha={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"},Zo={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"},Uo={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"},Yo={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"},S3=["mode","contrastThreshold","tonalOffset"],ew={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:lu.white,default:lu.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}},mg={text:{primary:lu.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:lu.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 tw(e,t,n,r){const i=r.light||r,l=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=f3(e.main,i):t==="dark"&&(e.dark=c3(e.main,l)))}function R3(e="light"){return e==="dark"?{main:Zo[200],light:Zo[50],dark:Zo[400]}:{main:Zo[700],light:Zo[400],dark:Zo[800]}}function E3(e="light"){return e==="dark"?{main:$o[200],light:$o[50],dark:$o[400]}:{main:$o[500],light:$o[300],dark:$o[700]}}function A3(e="light"){return e==="dark"?{main:Xo[500],light:Xo[300],dark:Xo[700]}:{main:Xo[700],light:Xo[400],dark:Xo[800]}}function k3(e="light"){return e==="dark"?{main:Uo[400],light:Uo[300],dark:Uo[700]}:{main:Uo[700],light:Uo[500],dark:Uo[900]}}function M3(e="light"){return e==="dark"?{main:Yo[400],light:Yo[300],dark:Yo[700]}:{main:Yo[800],light:Yo[500],dark:Yo[900]}}function P3(e="light"){return e==="dark"?{main:ha[400],light:ha[300],dark:ha[700]}:{main:"#ed6c02",light:ha[500],dark:ha[900]}}function T3(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,i=wr(e,S3),l=e.primary||R3(t),u=e.secondary||E3(t),d=e.error||A3(t),s=e.info||k3(t),c=e.success||M3(t),p=e.warning||P3(t);function h(w){return d3(w,mg.text.primary)>=n?mg.text.primary:ew.text.primary}const y=({color:w,name:I,mainShade:v=500,lightShade:x=300,darkShade:S=700})=>{if(w=q({},w),!w.main&&w[v]&&(w.main=w[v]),!w.hasOwnProperty("main"))throw new Error(nu(11,I?` (${I})`:"",v));if(typeof w.main!="string")throw new Error(nu(12,I?` (${I})`:"",JSON.stringify(w.main)));return tw(w,"light",x,r),tw(w,"dark",S,r),w.contrastText||(w.contrastText=h(w.main)),w},m={dark:mg,light:ew};return Fr(q({common:q({},lu),mode:t,primary:y({color:l,name:"primary"}),secondary:y({color:u,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:y({color:d,name:"error"}),warning:y({color:p,name:"warning"}),info:y({color:s,name:"info"}),success:y({color:c,name:"success"}),grey:I3,contrastThreshold:n,getContrastText:h,augmentColor:y,tonalOffset:r},m[t]),i)}const O3=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function L3(e){return Math.round(e*1e5)/1e5}const nw={textTransform:"uppercase"},rw='"Roboto", "Helvetica", "Arial", sans-serif';function _3(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=rw,fontSize:i=14,fontWeightLight:l=300,fontWeightRegular:u=400,fontWeightMedium:d=500,fontWeightBold:s=700,htmlFontSize:c=16,allVariants:p,pxToRem:h}=n,y=wr(n,O3),m=i/14,b=h||(v=>`${v/c*m}rem`),w=(v,x,S,P,O)=>q({fontFamily:r,fontWeight:v,fontSize:b(x),lineHeight:S},r===rw?{letterSpacing:`${L3(P/x)}em`}:{},O,p),I={h1:w(l,96,1.167,-1.5),h2:w(l,60,1.2,-.5),h3:w(u,48,1.167,0),h4:w(u,34,1.235,.25),h5:w(u,24,1.334,0),h6:w(d,20,1.6,.15),subtitle1:w(u,16,1.75,.15),subtitle2:w(d,14,1.57,.1),body1:w(u,16,1.5,.15),body2:w(u,14,1.43,.15),button:w(d,14,1.75,.4,nw),caption:w(u,12,1.66,.4),overline:w(u,12,2.66,1,nw),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Fr(q({htmlFontSize:c,pxToRem:b,fontFamily:r,fontSize:i,fontWeightLight:l,fontWeightRegular:u,fontWeightMedium:d,fontWeightBold:s},I),y,{clone:!1})}const N3=.2,F3=.14,B3=.12;function et(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${N3})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${F3})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${B3})`].join(",")}const D3=["none",et(0,2,1,-1,0,1,1,0,0,1,3,0),et(0,3,1,-2,0,2,2,0,0,1,5,0),et(0,3,3,-2,0,3,4,0,0,1,8,0),et(0,2,4,-1,0,4,5,0,0,1,10,0),et(0,3,5,-1,0,5,8,0,0,1,14,0),et(0,3,5,-1,0,6,10,0,0,1,18,0),et(0,4,5,-2,0,7,10,1,0,2,16,1),et(0,5,5,-3,0,8,10,1,0,3,14,2),et(0,5,6,-3,0,9,12,1,0,3,16,2),et(0,6,6,-3,0,10,14,1,0,4,18,3),et(0,6,7,-4,0,11,15,1,0,4,20,3),et(0,7,8,-4,0,12,17,2,0,5,22,4),et(0,7,8,-4,0,13,19,2,0,5,24,4),et(0,7,9,-4,0,14,21,2,0,5,26,4),et(0,8,9,-5,0,15,22,2,0,6,28,5),et(0,8,10,-5,0,16,24,2,0,6,30,5),et(0,8,11,-5,0,17,26,2,0,6,32,5),et(0,9,11,-5,0,18,28,2,0,7,34,6),et(0,9,12,-6,0,19,29,2,0,7,36,6),et(0,10,13,-6,0,20,31,3,0,8,38,7),et(0,10,13,-6,0,21,33,3,0,8,40,7),et(0,10,14,-6,0,22,35,3,0,8,42,7),et(0,11,14,-7,0,23,36,3,0,9,44,8),et(0,11,15,-7,0,24,38,3,0,9,46,8)],G3=["duration","easing","delay"],W3={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)"},V3={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function iw(e){return`${Math.round(e)}ms`}function H3(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function z3(e){const t=q({},W3,e.easing),n=q({},V3,e.duration);return q({getAutoHeightDuration:H3,create:(i=["all"],l={})=>{const{duration:u=n.standard,easing:d=t.easeInOut,delay:s=0}=l;return wr(l,G3),(Array.isArray(i)?i:[i]).map(c=>`${c} ${typeof u=="string"?u:iw(u)} ${d} ${typeof s=="string"?s:iw(s)}`).join(",")}},e,{easing:t,duration:n})}const $3={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},X3=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function BS(e={},...t){const{mixins:n={},palette:r={},transitions:i={},typography:l={}}=e,u=wr(e,X3);if(e.vars)throw new Error(nu(18));const d=T3(r),s=nv(e);let c=Fr(s,{mixins:o3(s.breakpoints,n),palette:d,shadows:D3.slice(),typography:_3(d,l),transitions:z3(i),zIndex:q({},$3)});return c=Fr(c,u),c=t.reduce((p,h)=>Fr(p,h),c),c.unstable_sxConfig=q({},bu,u==null?void 0:u.unstable_sxConfig),c.unstable_sx=function(h){return wu({sx:h,theme:this})},c}const bv=BS(),Kd="$$material";function DS({props:e,name:t}){return q5({props:e,name:t,defaultTheme:bv,themeId:Kd})}function GS(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;td!=="theme"&&d!=="sx"&&d!=="as"})(wu);return E.forwardRef(function(s,c){const p=pv(n),h=gv(s),{className:y,component:m="div"}=h,b=wr(h,Z3);return Te.jsx(l,q({as:m,ref:c,className:wv(y,i?i(r):r),theme:t&&p[t]||p},b))})}function xv(e,t,n="Mui"){const r={};return t.forEach(i=>{r[i]=hv(e,i,n)}),r}var WS={exports:{}},ze={};/** - * @license React - * react-is.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var Cv=Symbol.for("react.element"),Iv=Symbol.for("react.portal"),Qd=Symbol.for("react.fragment"),qd=Symbol.for("react.strict_mode"),ef=Symbol.for("react.profiler"),tf=Symbol.for("react.provider"),nf=Symbol.for("react.context"),Y3=Symbol.for("react.server_context"),rf=Symbol.for("react.forward_ref"),of=Symbol.for("react.suspense"),lf=Symbol.for("react.suspense_list"),af=Symbol.for("react.memo"),uf=Symbol.for("react.lazy"),j3=Symbol.for("react.offscreen"),VS;VS=Symbol.for("react.module.reference");function lr(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Cv:switch(e=e.type,e){case Qd:case ef:case qd:case of:case lf:return e;default:switch(e=e&&e.$$typeof,e){case Y3:case nf:case rf:case uf:case af:case tf:return e;default:return t}}case Iv:return t}}}ze.ContextConsumer=nf;ze.ContextProvider=tf;ze.Element=Cv;ze.ForwardRef=rf;ze.Fragment=Qd;ze.Lazy=uf;ze.Memo=af;ze.Portal=Iv;ze.Profiler=ef;ze.StrictMode=qd;ze.Suspense=of;ze.SuspenseList=lf;ze.isAsyncMode=function(){return!1};ze.isConcurrentMode=function(){return!1};ze.isContextConsumer=function(e){return lr(e)===nf};ze.isContextProvider=function(e){return lr(e)===tf};ze.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Cv};ze.isForwardRef=function(e){return lr(e)===rf};ze.isFragment=function(e){return lr(e)===Qd};ze.isLazy=function(e){return lr(e)===uf};ze.isMemo=function(e){return lr(e)===af};ze.isPortal=function(e){return lr(e)===Iv};ze.isProfiler=function(e){return lr(e)===ef};ze.isStrictMode=function(e){return lr(e)===qd};ze.isSuspense=function(e){return lr(e)===of};ze.isSuspenseList=function(e){return lr(e)===lf};ze.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Qd||e===ef||e===qd||e===of||e===lf||e===j3||typeof e=="object"&&e!==null&&(e.$$typeof===uf||e.$$typeof===af||e.$$typeof===tf||e.$$typeof===nf||e.$$typeof===rf||e.$$typeof===VS||e.getModuleId!==void 0)};ze.typeOf=lr;WS.exports=ze;var ow=WS.exports;const J3=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function HS(e){const t=`${e}`.match(J3);return t&&t[1]||""}function zS(e,t=""){return e.displayName||e.name||HS(e)||t}function lw(e,t,n){const r=zS(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function K3(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return zS(e,"Component");if(typeof e=="object")switch(e.$$typeof){case ow.ForwardRef:return lw(e,e.render,"ForwardRef");case ow.Memo:return lw(e,e.type,"memo");default:return}}}const Q3=Object.freeze(Object.defineProperty({__proto__:null,default:K3,getFunctionName:HS},Symbol.toStringTag,{value:"Module"}));function $S(e,t,n=void 0){const r={};return Object.keys(e).forEach(i=>{r[i]=e[i].reduce((l,u)=>{if(u){const d=t(u);d!==""&&l.push(d),n&&n[u]&&l.push(n[u])}return l},[]).join(" ")}),r}function Io(e){"@babel/helpers - typeof";return Io=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},Io(e)}function q3(e,t){if(Io(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Io(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function XS(e){var t=q3(e,"string");return Io(t)=="symbol"?t:t+""}function e9(){const e=pv(bv);return e[Kd]||e}var Iu={},vg={exports:{}},aw;function t9(){return aw||(aw=1,function(e){function t(n,r){if(n==null)return{};var i={};for(var l in n)if({}.hasOwnProperty.call(n,l)){if(r.indexOf(l)>=0)continue;i[l]=n[l]}return i}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(vg)),vg.exports}const n9=Zi(j5),r9=Zi(UN),i9=Zi(t4),o9=Zi(Q3),l9=Zi(H4),a9=Zi(n3);var Bl=PS;Object.defineProperty(Iu,"__esModule",{value:!0});var u9=Iu.default=x9;Iu.shouldForwardProp=uc;Iu.systemDefaultTheme=void 0;var Yn=Bl(RS()),Gh=Bl(t9()),uw=h9(n9),s9=r9;Bl(i9);Bl(o9);var c9=Bl(l9),d9=Bl(a9);const f9=["ownerState"],p9=["variants"],g9=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function ZS(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(ZS=function(r){return r?n:t})(e)}function h9(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=ZS(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if(l!=="default"&&Object.prototype.hasOwnProperty.call(e,l)){var u=i?Object.getOwnPropertyDescriptor(e,l):null;u&&(u.get||u.set)?Object.defineProperty(r,l,u):r[l]=e[l]}return r.default=e,n&&n.set(e,r),r}function m9(e){return Object.keys(e).length===0}function v9(e){return typeof e=="string"&&e.charCodeAt(0)>96}function uc(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const y9=Iu.systemDefaultTheme=(0,c9.default)(),b9=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Ls({defaultTheme:e,theme:t,themeId:n}){return m9(t)?e:t[n]||t}function w9(e){return e?(t,n)=>n[e]:null}function sc(e,t){let{ownerState:n}=t,r=(0,Gh.default)(t,f9);const i=typeof e=="function"?e((0,Yn.default)({ownerState:n},r)):e;if(Array.isArray(i))return i.flatMap(l=>sc(l,(0,Yn.default)({ownerState:n},r)));if(i&&typeof i=="object"&&Array.isArray(i.variants)){const{variants:l=[]}=i;let d=(0,Gh.default)(i,p9);return l.forEach(s=>{let c=!0;typeof s.props=="function"?c=s.props((0,Yn.default)({ownerState:n},r,n)):Object.keys(s.props).forEach(p=>{(n==null?void 0:n[p])!==s.props[p]&&r[p]!==s.props[p]&&(c=!1)}),c&&(Array.isArray(d)||(d=[d]),d.push(typeof s.style=="function"?s.style((0,Yn.default)({ownerState:n},r,n)):s.style))}),d}return i}function x9(e={}){const{themeId:t,defaultTheme:n=y9,rootShouldForwardProp:r=uc,slotShouldForwardProp:i=uc}=e,l=u=>(0,d9.default)((0,Yn.default)({},u,{theme:Ls((0,Yn.default)({},u,{defaultTheme:n,themeId:t}))}));return l.__mui_systemSx=!0,(u,d={})=>{(0,uw.internal_processStyles)(u,O=>O.filter(M=>!(M!=null&&M.__mui_systemSx)));const{name:s,slot:c,skipVariantsResolver:p,skipSx:h,overridesResolver:y=w9(b9(c))}=d,m=(0,Gh.default)(d,g9),b=p!==void 0?p:c&&c!=="Root"&&c!=="root"||!1,w=h||!1;let I,v=uc;c==="Root"||c==="root"?v=r:c?v=i:v9(u)&&(v=void 0);const x=(0,uw.default)(u,(0,Yn.default)({shouldForwardProp:v,label:I},m)),S=O=>typeof O=="function"&&O.__emotion_real!==O||(0,s9.isPlainObject)(O)?M=>sc(O,(0,Yn.default)({},M,{theme:Ls({theme:M.theme,defaultTheme:n,themeId:t})})):O,P=(O,...M)=>{let T=S(O);const _=M?M.map(S):[];s&&y&&_.push(J=>{const Q=Ls((0,Yn.default)({},J,{defaultTheme:n,themeId:t}));if(!Q.components||!Q.components[s]||!Q.components[s].styleOverrides)return null;const ae=Q.components[s].styleOverrides,ie={};return Object.entries(ae).forEach(([F,G])=>{ie[F]=sc(G,(0,Yn.default)({},J,{theme:Q}))}),y(J,ie)}),s&&!b&&_.push(J=>{var Q;const ae=Ls((0,Yn.default)({},J,{defaultTheme:n,themeId:t})),ie=ae==null||(Q=ae.components)==null||(Q=Q[s])==null?void 0:Q.variants;return sc({variants:ie},(0,Yn.default)({},J,{theme:ae}))}),w||_.push(l);const z=_.length-M.length;if(Array.isArray(O)&&z>0){const J=new Array(z).fill("");T=[...O,...J],T.raw=[...O.raw,...J]}const H=x(T,..._);return u.muiName&&(H.muiName=u.muiName),H};return x.withConfig&&(P.withConfig=x.withConfig),P}}function C9(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const I9=e=>C9(e)&&e!=="classes",Sv=u9({themeId:Kd,defaultTheme:bv,rootShouldForwardProp:I9}),sw=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},S9=xv("MuiBox",["root"]),R9=BS(),E9=U3({themeId:Kd,defaultTheme:R9,defaultClassName:S9.root,generateClassName:kS.generate});function Wh(e,t){return Wh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Wh(e,t)}function A9(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function k9(e){return hv("MuiPaper",e)}xv("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const M9=["className","component","elevation","square","variant"],P9=e=>{const{square:t,elevation:n,variant:r,classes:i}=e,l={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return $S(l,k9,i)},T9=Sv("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(({theme:e,ownerState:t})=>{var n;return q({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&q({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${Qb("#fff",sw(t.elevation))}, ${Qb("#fff",sw(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),O9=E.forwardRef(function(t,n){const r=DS({props:t,name:"MuiPaper"}),{className:i,component:l="div",elevation:u=1,square:d=!1,variant:s="elevation"}=r,c=wr(r,M9),p=q({},r,{component:l,elevation:u,square:d,variant:s}),h=P9(p);return Te.jsx(T9,q({as:l,ownerState:p,className:wv(h.root,i),ref:n},c))}),L9=Math.min,_9=Math.max,$c=Math.round,_s=Math.floor,Xc=e=>({x:e,y:e});function N9(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function US(e){return jS(e)?(e.nodeName||"").toLowerCase():"#document"}function ci(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function YS(e){var t;return(t=(jS(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function jS(e){return e instanceof Node||e instanceof ci(e).Node}function F9(e){return e instanceof Element||e instanceof ci(e).Element}function Rv(e){return e instanceof HTMLElement||e instanceof ci(e).HTMLElement}function cw(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ci(e).ShadowRoot}function JS(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=Ev(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function B9(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function D9(e){return["html","body","#document"].includes(US(e))}function Ev(e){return ci(e).getComputedStyle(e)}function G9(e){if(US(e)==="html")return e;const t=e.assignedSlot||e.parentNode||cw(e)&&e.host||YS(e);return cw(t)?t.host:t}function KS(e){const t=G9(e);return D9(t)?e.ownerDocument?e.ownerDocument.body:e.body:Rv(t)&&JS(t)?t:KS(t)}function Zc(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=KS(e),l=i===((r=e.ownerDocument)==null?void 0:r.body),u=ci(i);return l?t.concat(u,u.visualViewport||[],JS(i)?i:[],u.frameElement&&n?Zc(u.frameElement):[]):t.concat(i,Zc(i,[],n))}function W9(e){const t=Ev(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=Rv(e),l=i?e.offsetWidth:n,u=i?e.offsetHeight:r,d=$c(n)!==l||$c(r)!==u;return d&&(n=l,r=u),{width:n,height:r,$:d}}function Av(e){return F9(e)?e:e.contextElement}function dw(e){const t=Av(e);if(!Rv(t))return Xc(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:l}=W9(t);let u=(l?$c(n.width):n.width)/r,d=(l?$c(n.height):n.height)/i;return(!u||!Number.isFinite(u))&&(u=1),(!d||!Number.isFinite(d))&&(d=1),{x:u,y:d}}const V9=Xc(0);function H9(e){const t=ci(e);return!B9()||!t.visualViewport?V9:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function z9(e,t,n){return!1}function fw(e,t,n,r){t===void 0&&(t=!1);const i=e.getBoundingClientRect(),l=Av(e);let u=Xc(1);t&&(u=dw(e));const d=z9()?H9(l):Xc(0);let s=(i.left+d.x)/u.x,c=(i.top+d.y)/u.y,p=i.width/u.x,h=i.height/u.y;if(l){const y=ci(l),m=r;let b=y,w=b.frameElement;for(;w&&r&&m!==b;){const I=dw(w),v=w.getBoundingClientRect(),x=Ev(w),S=v.left+(w.clientLeft+parseFloat(x.paddingLeft))*I.x,P=v.top+(w.clientTop+parseFloat(x.paddingTop))*I.y;s*=I.x,c*=I.y,p*=I.x,h*=I.y,s+=S,c+=P,b=ci(w),w=b.frameElement}}return N9({width:p,height:h,x:s,y:c})}function $9(e,t){let n=null,r;const i=YS(e);function l(){var d;clearTimeout(r),(d=n)==null||d.disconnect(),n=null}function u(d,s){d===void 0&&(d=!1),s===void 0&&(s=1),l();const{left:c,top:p,width:h,height:y}=e.getBoundingClientRect();if(d||t(),!h||!y)return;const m=_s(p),b=_s(i.clientWidth-(c+h)),w=_s(i.clientHeight-(p+y)),I=_s(c),x={rootMargin:-m+"px "+-b+"px "+-w+"px "+-I+"px",threshold:_9(0,L9(1,s))||1};let S=!0;function P(O){const M=O[0].intersectionRatio;if(M!==s){if(!S)return u();M?u(!1,M):r=setTimeout(()=>{u(!1,1e-7)},1e3)}S=!1}try{n=new IntersectionObserver(P,{...x,root:i.ownerDocument})}catch{n=new IntersectionObserver(P,x)}n.observe(e)}return u(!0),l}function X9(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:l=!0,elementResize:u=typeof ResizeObserver=="function",layoutShift:d=typeof IntersectionObserver=="function",animationFrame:s=!1}=r,c=Av(e),p=i||l?[...c?Zc(c):[],...Zc(t)]:[];p.forEach(v=>{i&&v.addEventListener("scroll",n,{passive:!0}),l&&v.addEventListener("resize",n)});const h=c&&d?$9(c,n):null;let y=-1,m=null;u&&(m=new ResizeObserver(v=>{let[x]=v;x&&x.target===c&&m&&(m.unobserve(t),cancelAnimationFrame(y),y=requestAnimationFrame(()=>{var S;(S=m)==null||S.observe(t)})),n()}),c&&!s&&m.observe(c),m.observe(t));let b,w=s?fw(e):null;s&&I();function I(){const v=fw(e);w&&(v.x!==w.x||v.y!==w.y||v.width!==w.width||v.height!==w.height)&&n(),w=v,b=requestAnimationFrame(I)}return n(),()=>{var v;p.forEach(x=>{i&&x.removeEventListener("scroll",n),l&&x.removeEventListener("resize",n)}),h==null||h(),(v=m)==null||v.disconnect(),m=null,s&&cancelAnimationFrame(b)}}const pw=E.createContext();function Z9(e){return hv("MuiGrid",e)}const U9=[0,1,2,3,4,5,6,7,8,9,10],Y9=["column-reverse","column","row-reverse","row"],j9=["nowrap","wrap-reverse","wrap"],ma=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],au=xv("MuiGrid",["root","container","item","zeroMinWidth",...U9.map(e=>`spacing-xs-${e}`),...Y9.map(e=>`direction-xs-${e}`),...j9.map(e=>`wrap-xs-${e}`),...ma.map(e=>`grid-xs-${e}`),...ma.map(e=>`grid-sm-${e}`),...ma.map(e=>`grid-md-${e}`),...ma.map(e=>`grid-lg-${e}`),...ma.map(e=>`grid-xl-${e}`)]),J9=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function bl(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function K9({theme:e,ownerState:t}){let n;return e.breakpoints.keys.reduce((r,i)=>{let l={};if(t[i]&&(n=t[i]),!n)return r;if(n===!0)l={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(n==="auto")l={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const u=Md({values:t.columns,breakpoints:e.breakpoints.values}),d=typeof u=="object"?u[i]:u;if(d==null)return r;const s=`${Math.round(n/d*1e8)/1e6}%`;let c={};if(t.container&&t.item&&t.columnSpacing!==0){const p=e.spacing(t.columnSpacing);if(p!=="0px"){const h=`calc(${s} + ${bl(p)})`;c={flexBasis:h,maxWidth:h}}}l=q({flexBasis:s,flexGrow:0,maxWidth:s},c)}return e.breakpoints.values[i]===0?Object.assign(r,l):r[e.breakpoints.up(i)]=l,r},{})}function Q9({theme:e,ownerState:t}){const n=Md({values:t.direction,breakpoints:e.breakpoints.values});return nr({theme:e},n,r=>{const i={flexDirection:r};return r.indexOf("column")===0&&(i[`& > .${au.item}`]={maxWidth:"none"}),i})}function QS({breakpoints:e,values:t}){let n="";Object.keys(t).forEach(i=>{n===""&&t[i]!==0&&(n=i)});const r=Object.keys(e).sort((i,l)=>e[i]-e[l]);return r.slice(0,r.indexOf(n))}function q9({theme:e,ownerState:t}){const{container:n,rowSpacing:r}=t;let i={};if(n&&r!==0){const l=Md({values:r,breakpoints:e.breakpoints.values});let u;typeof l=="object"&&(u=QS({breakpoints:e.breakpoints.values,values:l})),i=nr({theme:e},l,(d,s)=>{var c;const p=e.spacing(d);return p!=="0px"?{marginTop:`-${bl(p)}`,[`& > .${au.item}`]:{paddingTop:bl(p)}}:(c=u)!=null&&c.includes(s)?{}:{marginTop:0,[`& > .${au.item}`]:{paddingTop:0}}})}return i}function eF({theme:e,ownerState:t}){const{container:n,columnSpacing:r}=t;let i={};if(n&&r!==0){const l=Md({values:r,breakpoints:e.breakpoints.values});let u;typeof l=="object"&&(u=QS({breakpoints:e.breakpoints.values,values:l})),i=nr({theme:e},l,(d,s)=>{var c;const p=e.spacing(d);return p!=="0px"?{width:`calc(100% + ${bl(p)})`,marginLeft:`-${bl(p)}`,[`& > .${au.item}`]:{paddingLeft:bl(p)}}:(c=u)!=null&&c.includes(s)?{}:{width:"100%",marginLeft:0,[`& > .${au.item}`]:{paddingLeft:0}}})}return i}function tF(e,t,n={}){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[n[`spacing-xs-${String(e)}`]];const r=[];return t.forEach(i=>{const l=e[i];Number(l)>0&&r.push(n[`spacing-${i}-${String(l)}`])}),r}const nF=Sv("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{container:r,direction:i,item:l,spacing:u,wrap:d,zeroMinWidth:s,breakpoints:c}=n;let p=[];r&&(p=tF(u,c,t));const h=[];return c.forEach(y=>{const m=n[y];m&&h.push(t[`grid-${y}-${String(m)}`])}),[t.root,r&&t.container,l&&t.item,s&&t.zeroMinWidth,...p,i!=="row"&&t[`direction-xs-${String(i)}`],d!=="wrap"&&t[`wrap-xs-${String(d)}`],...h]}})(({ownerState:e})=>q({boxSizing:"border-box"},e.container&&{display:"flex",flexWrap:"wrap",width:"100%"},e.item&&{margin:0},e.zeroMinWidth&&{minWidth:0},e.wrap!=="wrap"&&{flexWrap:e.wrap}),Q9,q9,eF,K9);function rF(e,t){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[`spacing-xs-${String(e)}`];const n=[];return t.forEach(r=>{const i=e[r];if(Number(i)>0){const l=`spacing-${r}-${String(i)}`;n.push(l)}}),n}const iF=e=>{const{classes:t,container:n,direction:r,item:i,spacing:l,wrap:u,zeroMinWidth:d,breakpoints:s}=e;let c=[];n&&(c=rF(l,s));const p=[];s.forEach(y=>{const m=e[y];m&&p.push(`grid-${y}-${String(m)}`)});const h={root:["root",n&&"container",i&&"item",d&&"zeroMinWidth",...c,r!=="row"&&`direction-xs-${String(r)}`,u!=="wrap"&&`wrap-xs-${String(u)}`,...p]};return $S(h,Z9,t)},gw=E.forwardRef(function(t,n){const r=DS({props:t,name:"MuiGrid"}),{breakpoints:i}=e9(),l=gv(r),{className:u,columns:d,columnSpacing:s,component:c="div",container:p=!1,direction:h="row",item:y=!1,rowSpacing:m,spacing:b=0,wrap:w="wrap",zeroMinWidth:I=!1}=l,v=wr(l,J9),x=m||b,S=s||b,P=E.useContext(pw),O=p?d||12:P,M={},T=q({},v);i.keys.forEach(H=>{v[H]!=null&&(M[H]=v[H],delete T[H])});const _=q({},l,{columns:O,container:p,direction:h,item:y,rowSpacing:x,columnSpacing:S,wrap:w,zeroMinWidth:I,spacing:b},M,{breakpoints:i.keys}),z=iF(_);return Te.jsx(pw.Provider,{value:O,children:Te.jsx(nF,q({ownerState:_,className:wv(z.root,u),as:c,ref:n},T))})});var hr=function(){function e(t,n){this.rows=t,this.columns=n,this.first={row:this.rows[0],column:this.columns[0]},this.last={row:this.rows[this.rows.length-1],column:this.columns[this.columns.length-1]},this.height=this.rows.reduce(function(r,i){return r+i.height},0),this.width=this.columns.reduce(function(r,i){return r+i.width},0)}return e.prototype.contains=function(t){var n,r,i,l,u,d,s,c;return((n=t.column)===null||n===void 0?void 0:n.idx)>=((r=this.first.column)===null||r===void 0?void 0:r.idx)&&((i=t.column)===null||i===void 0?void 0:i.idx)<=((l=this.last.column)===null||l===void 0?void 0:l.idx)&&((u=t.row)===null||u===void 0?void 0:u.idx)>=((d=this.first.row)===null||d===void 0?void 0:d.idx)&&((s=t.row)===null||s===void 0?void 0:s.idx)<=((c=this.last.row)===null||c===void 0?void 0:c.idx)},e.prototype.slice=function(t,n){var r=n==="rows"&&t?t.first.row:this.first.row,i=n==="columns"&&t?t.first.column:this.first.column,l=n==="rows"&&t?t.last.row:this.last.row,u=n==="columns"&&t?t.last.column:this.last.column;return new e(this.rows.slice(r.idx-this.first.row.idx,l.idx-this.first.row.idx+1),this.columns.slice(i.idx-this.first.column.idx,u.idx-this.first.column.idx+1))},e}(),kn=function(){function e(t){this.ranges=t,this.width=0,this.height=0,this.rowIndexLookup={},this.columnIndexLookup={},this.spanCellLookup={},this.rangesToRender={}}return e.prototype.getRange=function(t,n){var r=this.columns.slice(Math.min(t.column.idx,n.column.idx),Math.max(t.column.idx,n.column.idx)+1),i=this.rows.slice(Math.min(t.row.idx,n.row.idx),Math.max(t.row.idx,n.row.idx)+1);return new hr(i,r)},e.prototype.getLocation=function(t,n){return{row:this.rows[t],column:this.columns[n]}},e.prototype.getLocationById=function(t,n){try{var r=this.rows[this.rowIndexLookup[t]],i=this.columns[this.columnIndexLookup[n]];return this.validateLocation({row:r,column:i})}catch{throw new RangeError("column: '".concat(n,"', row: '").concat(t,"'"))}},e.prototype.validateLocation=function(t){var n,r,i=(n=this.columnIndexLookup[t.column.columnId])!==null&&n!==void 0?n:Math.min(t.column.idx,this.last.column.idx),l=(r=this.rowIndexLookup[t.row.rowId])!==null&&r!==void 0?r:Math.min(t.row.idx,this.last.row.idx);return this.getLocation(l,i)},e.prototype.validateRange=function(t){return this.getRange(this.validateLocation(t.first),this.validateLocation(t.last))},e.prototype.getCell=function(t){return this.rows[t.row.idx].cells[t.column.idx]},e.DEFAULT_ROW_HEIGHT=25,e.DEFAULT_COLUMN_WIDTH=150,e.MIN_COLUMN_WIDTH=40,e}();function Uc(e,t){return"".concat(e,", ").concat(t)}function Pn(e,t){return e.column.columnId===(t==null?void 0:t.column.columnId)&&e.row.rowId===(t==null?void 0:t.row.rowId)}var oF=function(){function e(t){this.updateState=t,this.eventTimestamps=[0,0],this.eventLocations=[void 0,void 0],this.currentIndex=0}return e.prototype.handlePointerDownInternal=function(t,n,r){this.pointerDownLocation=n;var i=this.eventLocations[this.currentIndex];this.currentIndex=1-this.currentIndex,this.eventTimestamps[this.currentIndex]=new Date().valueOf(),this.eventLocations[this.currentIndex]=n;var l=n.row.idx===0||n.column.idx===0;return(t.pointerType==="mouse"||l||Pn(n,i))&&(r=r.currentBehavior.handlePointerDown(t,n,r)),r},e.prototype.shouldHandleDoubleClick=function(t,n,r){return n-r<500&&Pn(t,this.eventLocations[0])&&Pn(t,this.eventLocations[1])},e.prototype.shouldHandleCellSelectionOnMobile=function(t,n,r){return t.pointerType!=="mouse"&&Pn(n,this.pointerDownLocation)&&t.pointerType!==void 0&&r-this.eventTimestamps[this.currentIndex]<500&&n.row.idx>0&&n.column.idx>0},e}();function lF(e){return!(e.button!==0&&e.button!==void 0||e.target.className==="reactgrid-content"&&e.pointerType!==void 0)}function aF(e,t){if(!t.reactGridElement)return!1;var n=t.reactGridElement.getBoundingClientRect().left;return!(e.clientX-n>t.cellMatrix.width)}var Vh=function(e,t){return Vh=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},Vh(e,t)};function xr(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Vh(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var k=function(){return k=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])||p[0]!==6&&p[0]!==2)){u=0;continue}if(p[0]===3&&(!i||p[1]>i[0]&&p[1]2&&/MacIntel/.test(window.navigator.platform)}function ff(e){return e?{width:e instanceof HTMLElement?e.clientWidth:Yc()?window.innerWidth:document.documentElement.clientWidth,height:e instanceof HTMLElement?e.clientHeight:Yc()?window.innerHeight:document.documentElement.clientHeight}:{width:0,height:0}}function kt(e){var t=Qe(e.scrollableElement),n=t.scrollLeft,r=t.scrollTop;if(!e.reactGridElement)throw new Error('"state.reactGridElement" field should be initiated before calling "getBoundingClientRect()"');var i=e.reactGridElement.getBoundingClientRect(),l=i.left+n,u=i.top+r;if(e.scrollableElement!==void 0&&e.scrollableElement!==Ml()){var d=e.scrollableElement.getBoundingClientRect();l-=d.left,u-=d.top}return{left:l,top:u}}function pi(e){var t=Qe(e.scrollableElement),n=t.scrollLeft,r=t.scrollTop,i=ff(e.scrollableElement),l=i.width,u=i.height,d=kt(e),s=d.left,c=d.top,p=r+u,h=c+e.cellMatrix.height,y=cp?p:h,b=n+l,w=s+e.cellMatrix.width,I=sb?b:w;return{width:Math.max(v-I,0),height:Math.max(m-y,0),visibleOffsetRight:b-v,visibleOffsetBottom:p-m}}(function(e){e[e.POINTER=1]="POINTER",e[e.BACKSPACE=8]="BACKSPACE",e[e.TAB=9]="TAB",e[e.ENTER=13]="ENTER",e[e.SHIFT=16]="SHIFT",e[e.CTRL=17]="CTRL",e[e.ALT=18]="ALT",e[e.PAUSE=19]="PAUSE",e[e.CAPS_LOCK=20]="CAPS_LOCK",e[e.ESCAPE=27]="ESCAPE",e[e.SPACE=32]="SPACE",e[e.PAGE_UP=33]="PAGE_UP",e[e.PAGE_DOWN=34]="PAGE_DOWN",e[e.END=35]="END",e[e.HOME=36]="HOME",e[e.LEFT_ARROW=37]="LEFT_ARROW",e[e.UP_ARROW=38]="UP_ARROW",e[e.RIGHT_ARROW=39]="RIGHT_ARROW",e[e.DOWN_ARROW=40]="DOWN_ARROW",e[e.INSERT=45]="INSERT",e[e.DELETE=46]="DELETE",e[e.KEY_0=48]="KEY_0",e[e.KEY_1=49]="KEY_1",e[e.KEY_2=50]="KEY_2",e[e.KEY_3=51]="KEY_3",e[e.KEY_4=52]="KEY_4",e[e.KEY_5=53]="KEY_5",e[e.KEY_6=54]="KEY_6",e[e.KEY_7=55]="KEY_7",e[e.KEY_8=56]="KEY_8",e[e.KEY_9=57]="KEY_9",e[e.KEY_A=65]="KEY_A",e[e.KEY_B=66]="KEY_B",e[e.KEY_C=67]="KEY_C",e[e.KEY_D=68]="KEY_D",e[e.KEY_E=69]="KEY_E",e[e.KEY_F=70]="KEY_F",e[e.KEY_G=71]="KEY_G",e[e.KEY_H=72]="KEY_H",e[e.KEY_I=73]="KEY_I",e[e.KEY_J=74]="KEY_J",e[e.KEY_K=75]="KEY_K",e[e.KEY_L=76]="KEY_L",e[e.KEY_M=77]="KEY_M",e[e.KEY_N=78]="KEY_N",e[e.KEY_O=79]="KEY_O",e[e.KEY_P=80]="KEY_P",e[e.KEY_Q=81]="KEY_Q",e[e.KEY_R=82]="KEY_R",e[e.KEY_S=83]="KEY_S",e[e.KEY_T=84]="KEY_T",e[e.KEY_U=85]="KEY_U",e[e.KEY_V=86]="KEY_V",e[e.KEY_W=87]="KEY_W",e[e.KEY_X=88]="KEY_X",e[e.KEY_Y=89]="KEY_Y",e[e.KEY_Z=90]="KEY_Z",e[e.LEFT_META=91]="LEFT_META",e[e.RIGHT_META=92]="RIGHT_META",e[e.SELECT=93]="SELECT",e[e.NUMPAD_0=96]="NUMPAD_0",e[e.NUMPAD_1=97]="NUMPAD_1",e[e.NUMPAD_2=98]="NUMPAD_2",e[e.NUMPAD_3=99]="NUMPAD_3",e[e.NUMPAD_4=100]="NUMPAD_4",e[e.NUMPAD_5=101]="NUMPAD_5",e[e.NUMPAD_6=102]="NUMPAD_6",e[e.NUMPAD_7=103]="NUMPAD_7",e[e.NUMPAD_8=104]="NUMPAD_8",e[e.NUMPAD_9=105]="NUMPAD_9",e[e.MULTIPLY=106]="MULTIPLY",e[e.ADD=107]="ADD",e[e.SUBTRACT=109]="SUBTRACT",e[e.DECIMAL=110]="DECIMAL",e[e.DIVIDE=111]="DIVIDE",e[e.F1=112]="F1",e[e.F2=113]="F2",e[e.F3=114]="F3",e[e.F4=115]="F4",e[e.F5=116]="F5",e[e.F6=117]="F6",e[e.F7=118]="F7",e[e.F8=119]="F8",e[e.F9=120]="F9",e[e.F10=121]="F10",e[e.F11=122]="F11",e[e.F12=123]="F12",e[e.NUM_LOCK=144]="NUM_LOCK",e[e.SCROLL_LOCK=145]="SCROLL_LOCK",e[e.FIREFOX_DASH=173]="FIREFOX_DASH",e[e.SEMICOLON=186]="SEMICOLON",e[e.EQUALS=187]="EQUALS",e[e.COMMA=188]="COMMA",e[e.DASH=189]="DASH",e[e.PERIOD=190]="PERIOD",e[e.FORWARD_SLASH=191]="FORWARD_SLASH",e[e.GRAVE_ACCENT=192]="GRAVE_ACCENT",e[e.OPEN_BRACKET=219]="OPEN_BRACKET",e[e.BACK_SLASH=220]="BACK_SLASH",e[e.CLOSE_BRACKET=221]="CLOSE_BRACKET",e[e.SINGLE_QUOTE=222]="SINGLE_QUOTE"})($||($={}));var Ht=function(e,t){return e>t?e-t:0};function Qo(e,t,n,r){if(!e.reactGridElement)throw new Error('"state.reactGridElement" field should be initiated before calling the "getBoundingClientRect()"');var i=e.reactGridElement.getBoundingClientRect(),l=t-i.left,u=n-i.top,d=function(y,m,b){return cF(y,m,b)||function(w,I,v){var x=w.cellMatrix,S=Qe(w.scrollableElement).scrollTop,P=kt(w).top,O=ff(w.scrollableElement).height,M=Ht(S,P),T=Math.max(x.height-O+P,0),_=pi(w).height+M-x.ranges.stickyBottomRange.height;if(x.ranges.stickyBottomRange.rows.length>0&&I>=_&&!(v&&S+1I-_})||x.last.row;return{cellY:I-_-z.top,row:z}}}(y,m,b)||function(w,I){if(w.cellMatrix.scrollableRange.rows.length<1){var v=I>=w.cellMatrix.height?w.cellMatrix.last:w.cellMatrix.first;return{cellY:v.row.height,row:v.row}}return fF(w,I)}(y,m)}(e,u,r==="vertical"||r==="both"),s=d.cellY,c=d.row,p=function(y,m,b){return dF(y,m,b)||sF(y,m,b)||function(w,I){if(w.cellMatrix.scrollableRange.columns.length<1){var v=I>=w.cellMatrix.width?w.cellMatrix.last:w.cellMatrix.first;return{cellX:v.column.width,column:v.column}}return pF(w,I)}(y,m)}(e,l,r==="horizontal"||r==="both"),h=p.cellX;return{row:c,column:p.column,viewportX:l,viewportY:u,cellX:h,cellY:s}}function sF(e,t,n){var r=e.cellMatrix,i=Qe(e.scrollableElement).scrollLeft,l=kt(e).left,u=ff(e.scrollableElement).width,d=Ht(i,l),s=Math.max(r.width-u+l,0),c=pi(e).width+d-r.ranges.stickyRightRange.width;if(r.ranges.stickyRightRange.columns.length>0&&t>=c&&!(n&&i+1t-c})||r.last.column;return{cellX:t-c-p.left,column:p}}}function cF(e,t,n){var r=e.cellMatrix,i=Qe(e.scrollableElement).scrollTop,l=kt(e).top,u=Ht(i,l);if(r.ranges.stickyTopRange.rows.find(function(s){return s.bottom>t-u})&&tl)){var d=r.ranges.stickyTopRange.rows.find(function(s){return s.bottom>t-u})||r.ranges.stickyTopRange.first.row;return{cellY:t-d.top,row:d}}}function dF(e,t,n){var r=e.cellMatrix,i=Qe(e.scrollableElement).scrollLeft,l=kt(e).left,u=Ht(i,l);if(r.ranges.stickyLeftRange.columns.find(function(s){return s.right>t-u})&&tl)){var d=r.ranges.stickyLeftRange.columns.find(function(s){return s.right>t-u})||r.ranges.stickyLeftRange.first.column;return{cellX:t-d.left,column:d}}}function fF(e,t){var n=e.cellMatrix,r=t-n.ranges.stickyTopRange.height,i=n.scrollableRange.rows.find(function(l){return l.bottom>=r})||n.scrollableRange.last.row;return{cellY:r-i.top,row:i}}function pF(e,t){var n=e.cellMatrix,r=t-n.ranges.stickyLeftRange.width,i=n.scrollableRange.columns.find(function(l){return l.right>=r})||n.scrollableRange.last.column;return{cellX:r-i.left,column:i}}function Dl(e,t){e.preventDefault();var n=e.clientX,r=e.clientY,i=t.contextMenuPosition;i.top=r,i.left=n;var l=Qo(t,n,r);return t.selectedRanges.find(function(u){return u.contains(l)})||(t=vn(t,l)),k(k({},t),{contextMenuPosition:i})}var qS=function(e){function t(){return e!==null&&e.apply(this,arguments)||this}return xr(t,e),t.prototype.handlePointerDown=function(n,r,i){if(n.target.className==="reactgrid-content")return i;if(i.enableRangeSelection&&n.shiftKey&&i.focusedLocation){var l=i.cellMatrix.getRange(i.focusedLocation,r);return Jt(n)&&i.selectionMode==="range"?hw(i,l):yg(i,l,!1)}if(i.enableRangeSelection&&Jt(n)){var u=i.selectedRanges.findIndex(function(c){return c.contains(r)}),d=i.selectedRanges[u],s=Cr(i,r).cellTemplate;d?(i=vn(i,r,!1),i=k(k({},i),{activeSelectedRangeIdx:u})):s.isFocusable||(l=i.cellMatrix.getRange(r,r),i=vn(i=yg(i,l,!0),r,!1))}else i=vn(i,r);return i},t.prototype.handlePointerEnter=function(n,r,i){if(!i.enableRangeSelection||!i.focusedLocation||n.target.className==="reactgrid-content")return i;var l=i.cellMatrix.getRange(i.focusedLocation,r);return i.selectionMode==="range"&&aF(n,i)?hw(i,l):yg(i,l,!1)},t.prototype.handlePointerUp=function(n,r,i){var l,u;if(!((l=i.props)===null||l===void 0)&&l.onSelectionChanging&&!i.props.onSelectionChanging(i.selectedRanges)){var d=Tt([],i.selectedRanges).filter(function(s,c){return c!==i.activeSelectedRangeIdx});return k(k({},i),{selectedRanges:d,activeSelectedRangeIdx:d.length-1})}return!((u=i.props)===null||u===void 0)&&u.onSelectionChanged&&i.props.onSelectionChanged(i.selectedRanges),i},t.prototype.handleContextMenu=function(n,r){return Dl(n,r)},t}(Ji),gF=function(e){var t=e.left,n=e.linePosition,r=e.offset;return E.createElement(E.Fragment,null,n!==-1&&E.createElement("div",{className:"rg-column-resize-hint",style:{left:n-r}},E.createElement("span",{style:{whiteSpace:"nowrap"}},"Width: ",Math.floor(n-t-r),"px")))},Pv=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.autoScrollDirection="horizontal",n}return xr(t,e),t.prototype.handlePointerDown=function(n,r,i){var l=this;return this.initialLocation=r,this.resizedColumn=r.column,this.isInScrollableRange=i.cellMatrix.scrollableRange.columns.some(function(u){return u.idx===l.resizedColumn.idx}),i},t.prototype.handlePointerMove=function(n,r,i){var l,u,d,s,c=r.viewportX;if(!(r.column.idx===this.resizedColumn.idx&&r.cellX>((u=(l=i.props)===null||l===void 0?void 0:l.minColumnWidth)!==null&&u!==void 0?u:kn.MIN_COLUMN_WIDTH)||r.column.idx>this.resizedColumn.idx)){var p=this.getLinePositionOffset(i);c=((s=(d=i.props)===null||d===void 0?void 0:d.minColumnWidth)!==null&&s!==void 0?s:kn.MIN_COLUMN_WIDTH)+this.resizedColumn.left+p}return k(k({},i),{linePosition:c,lineOrientation:"vertical"})},t.prototype.handlePointerUp=function(n,r,i){var l,u,d,s,c,p=this.resizedColumn.width+r.viewportX-this.initialLocation.viewportX;if(!((l=i.props)===null||l===void 0)&&l.onColumnResized){var h=p>=((d=(u=i.props)===null||u===void 0?void 0:u.minColumnWidth)!==null&&d!==void 0?d:kn.MIN_COLUMN_WIDTH)?p:(c=(s=i.props)===null||s===void 0?void 0:s.minColumnWidth)!==null&&c!==void 0?c:kn.MIN_COLUMN_WIDTH;i.props.onColumnResized(this.resizedColumn.columnId,h,i.selectedIds)}var y=i.focusedLocation;if(y!==void 0&&this.resizedColumn.columnId===y.column.idx){var m=k(k({},y.column),{width:p});y=k(k({},y),{column:m})}return k(k({},i),{linePosition:-1,focusedLocation:y})},t.prototype.renderPanePart=function(n,r){var i=this.getLinePositionOffset(n);return r.contains(this.initialLocation)&&Et.createElement(gF,{left:this.resizedColumn.left,linePosition:n.linePosition,offset:i})},t.prototype.getLinePositionOffset=function(n){var r=this,i=Qe(n.scrollableElement).scrollLeft,l=kt(n).left,u=Ht(i,l),d=pi(n).width+u-n.cellMatrix.ranges.stickyRightRange.width;return n.cellMatrix.scrollableRange.columns.some(function(s){return s.idx===r.resizedColumn.idx})?n.cellMatrix.ranges.stickyLeftRange.width:n.cellMatrix.ranges.stickyRightRange.columns.some(function(s){return s.idx===r.resizedColumn.idx})?d:i},t}(Ji),eR=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.autoScrollDirection="horizontal",n}return xr(t,e),t.prototype.handlePointerDown=function(n,r,i){this.initialColumnIdx=r.column.idx,this.lastPossibleDropLocation=r,this.selectedIdxs=i.selectedIndexes.sort();var l=this.selectedIdxs.map(function(c){return i.cellMatrix.columns[c]}),u=this.selectedIdxs.filter(function(c){return cl?l:i},t.prototype.handlePointerEnter=function(n,r,i){var l,u=this.getLastPossibleDropLocation(r,i),d=Qe(i.scrollableElement).scrollLeft;if(!u)return i;var s=u.column.idx>this.initialColumnIdx,c=Math.min(u.viewportX-u.cellX+(s?u.column.width:0),(((l=i.visibleRange)===null||l===void 0?void 0:l.width)||0)+i.cellMatrix.ranges.stickyLeftRange.width+i.cellMatrix.ranges.stickyRightRange.width+d);return this.lastPossibleDropLocation=u,k(k({},i),{linePosition:c})},t.prototype.getLastPossibleDropLocation=function(n,r){var i,l=n.column.idx<=this.initialColumnIdx?"before":"after",u=this.selectedIdxs.map(function(d){return r.cellMatrix.columns[d].columnId});return!(!((i=r.props)===null||i===void 0)&&i.canReorderColumns)||r.props.canReorderColumns(n.column.columnId,u,l)?n:this.lastPossibleDropLocation},t.prototype.handlePointerUp=function(n,r,i){var l,u;if(r.column.idx!==this.initialColumnIdx&&this.lastPossibleDropLocation&&(!((l=i.props)===null||l===void 0)&&l.onColumnsReordered)){var d=this.lastPossibleDropLocation.column.idx<=this.initialColumnIdx,s=this.selectedIdxs.map(function(c){return i.cellMatrix.columns[c].columnId});(u=i.props)===null||u===void 0||u.onColumnsReordered(this.lastPossibleDropLocation.column.columnId,s,d?"before":"after")}return k(k({},i),{linePosition:-1,shadowPosition:-1,shadowCursor:"default"})},t.prototype.handleContextMenu=function(n,r){return Dl(n,r)},t}(Ji);function Tv(e,t,n){var r=e.scrollableElement;r.scrollTop!==void 0?r.scrollTop=t:r.scrollTo({top:t}),r.scrollLeft!==void 0?r.scrollLeft=n:r.scrollTo({left:n})}function Ov(e,t){return pi(e).height-t}function hF(e,t,n,r){return n+e.row.bottom-t-r}function mF(e,t,n){return t-n+e.row.top-1}function vF(e,t,n){var r=Qe(e.scrollableElement).scrollTop,i=kt(e).top,l=Ht(r,i);return n0&&r.idx<=n.last.row.idx}function bF(e,t){return pi(e).width-t}function wF(e,t,n,r){return n+e.column.right-t-r}function xF(e,t,n){return t-n+e.column.left-1}function CF(e,t,n){var r=Qe(e.scrollableElement).scrollLeft,i=kt(e).left,l=Ht(r,i);return n0&&r.idx<=n.last.column.idx}function RF(e,t,n){var r=n.focusedLocation;if(r){var i=!(Pn(r,t.focusedLocation)||n.currentBehavior instanceof Pv),l=n.currentlyEditedCell!==void 0&&n.currentlyEditedCell!==t.currentlyEditedCell;if(i||l){var u=_v(n,r),d=u.left;Tv(n,u.top,d)}}}function _v(e,t,n){return n===void 0&&(n="both"),{top:EF(e,t,n==="horizontal"),left:AF(e,t,n==="vertical")}}function EF(e,t,n){var r=e.cellMatrix.ranges,i=r.stickyTopRange,l=r.stickyBottomRange,u=Qe(e.scrollableElement).scrollTop,d=Ov(e,i.height+l.height),s=kt(e).top,c=Ht(u,s),p=t.row;if(n||!p)return u;var h=tR(e,t)?1:0;return Lv(e,t)||function(y,m){var b=y.cellMatrix.ranges.stickyBottomRange,w=m.row;return b.rows.length>0&&w.idx>=b.first.row.idx}(e,t)?u:vF(e,t,d+h)?hF(t,d-1-h,u,c):yF(e,t)?mF(t,u,c):u}function AF(e,t,n){var r=e.cellMatrix.ranges,i=r.stickyLeftRange,l=r.stickyRightRange,u=Qe(e.scrollableElement).scrollLeft,d=bF(e,i.width+l.width),s=kt(e).left,c=Ht(u,s),p=t.column;if(n||!p)return u;var h=tR(e,t)?1:0;return SF(e,t)||function(y,m){var b=y.cellMatrix.ranges.stickyRightRange,w=m.column;return b.columns.length>0&&w.idx>=b.first.column.idx}(e,t)?u:CF(e,t,d+h)?wF(t,d-1-h,u,c):IF(e,t)?xF(t,u,c):u}function tR(e,t){return e.cellMatrix.scrollableRange.contains(t)&&e.scrollableElement===Ml()}var kF=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.handlePointerDown=function(r,i){var l;n.isInLeftSticky=!1,n.isInRightSticky=!1,n.isInTopSticky=!1,n.isInBottomSticky=!1;var u=function(s,c){if(!c.reactGridElement)throw new Error('"state.reactGridElement" field should be initiated before calling the "getBoundingClientRect()"');var p=c.reactGridElement.getBoundingClientRect(),h=p.left,y=p.right,m=s.clientX-h,b=c.cellMatrix.ranges.stickyRightRange.width;return!(m>=c.cellMatrix.width-b)||s.clientX>=y-b}(r,i);if(!((l=i.props)===null||l===void 0)&&l.onContextMenu&&u&&window.addEventListener("contextmenu",n.handleContextMenu),!u)return k(k({},i),{contextMenuPosition:{top:-1,left:-1}});if(!lF(r))return i;window.addEventListener("pointermove",n.handlePointerMove),window.addEventListener("pointerup",n.handlePointerUp);var d=Qo(i,r.clientX,r.clientY);return n.handlePointerDownInternal(r,d,i)},n.handleHideContextMenu=function(r){window.removeEventListener("pointerdown",n.handleHideContextMenu),n.updateState(function(i){return r instanceof MouseEvent&&n.isContainElement(r,i)?i:k(k({},i),{contextMenuPosition:{top:-1,left:-1}})})},n.isContainElement=function(r,i){var l;return(l=i.reactGridElement)===null||l===void 0?void 0:l.contains(r.target)},n.handleContextMenu=function(r){window.removeEventListener("pointerup",n.handlePointerUp),window.removeEventListener("pointermove",n.handlePointerMove),window.removeEventListener("contextmenu",n.handleContextMenu),window.addEventListener("pointerdown",n.handleHideContextMenu),n.updateState(function(i){var l;if(n.isContainElement(r,i)){var u=Qo(i,r.clientX,r.clientY);(l=(i=(i=i.currentBehavior.handlePointerUp(r,u,i)).currentBehavior.handleContextMenu(r,i)).hiddenFocusElement)===null||l===void 0||l.focus()}return i})},n.handlePointerMove=function(r){n.updateState(function(i){var l,u=i.currentBehavior.autoScrollDirection,d=Qo(i,r.clientX,r.clientY,void 0),s=Qo(i,r.clientX,r.clientY,u);if(d.column.idxs.column.idx&&!n.isFromRightToLeftScroll&&!n.isInRightSticky?(n.isFromRightToLeftScroll=!1,s=d):d.row.idxs.row.idx&&!n.isFromBottomToTopScroll&&!n.isInBottomSticky?(n.isFromBottomToTopScroll=!1,s=d):(n.isInLeftSticky=!0,n.isInRightSticky=!0,n.isInTopSticky=!0,n.isInBottomSticky=!0),r.target.className!=="reactgrid-content"&&!(i.currentBehavior instanceof Pv)&&((l=i.props)===null||l===void 0?void 0:l.enableRangeSelection)||i.currentBehavior instanceof eR){var c=_v(i,s),p=c.left;Tv(i,c.top,p)}i=i.currentBehavior.handlePointerMove(r,s,i);var h=n.eventLocations[n.currentIndex];return n.eventLocations[n.currentIndex]=s,Pn(s,h)||(i=i.currentBehavior.handlePointerEnter(r,s,i)),i})},n.handlePointerUp=function(r){r.button!==0&&r.button!==void 0||(window.removeEventListener("pointerup",n.handlePointerUp),window.removeEventListener("pointermove",n.handlePointerMove),window.removeEventListener("contextmenu",n.handleContextMenu),n.updateState(function(i){var l,u=Qo(i,r.clientX,r.clientY),d=new Date().valueOf(),s=n.eventTimestamps[1-n.currentIndex];return i=i.currentBehavior.handlePointerUp(r,u,i),n.shouldHandleCellSelectionOnMobile(r,u,d)&&(i=i.currentBehavior.handlePointerDown(r,u,i)),i=k(k({},i),{currentBehavior:new Yv}),n.shouldHandleDoubleClick(u,d,s)&&(i=i.currentBehavior.handleDoubleClick(r,u,i)),(l=i.hiddenFocusElement)===null||l===void 0||l.focus(),i}))},n}return xr(t,e),t}(oF),jc=400,Jc=300,Kc=1;function cc(e){if(e.disableVirtualScrolling){var t=e.cellMatrix.scrollableRange,n=t.rows,r=t.columns,i=new hr(n,r);return k(k({},e),{visibleRange:i})}var l=Qe(e.scrollableElement),u=l.scrollTop,d=l.scrollLeft,s=MF(e,[-e.cellMatrix.ranges.stickyTopRange.height],[-e.cellMatrix.ranges.stickyLeftRange.width]),c=s.width,p=s.height,h=PF(e,c),y=TF(e,p),m=new hr(y,h);return k(k({},e),{leftScrollBoudary:m.columns.length>0?d-Jc:0,rightScrollBoudary:m.last.column===void 0?0:Jc+d,topScrollBoudary:m.columns.length>0?u-jc:0,bottomScrollBoudary:m.last.row===void 0?0:jc+u,visibleRange:m})}function MF(e,t,n){var r=pi(e),i=r.height,l=r.width,u=function(d,s){return d+s};return{height:Math.max(t.reduce(u,i),0),width:Math.max(n.reduce(u,l),0)}}function PF(e,t){var n=e.cellMatrix.scrollableRange.columns,r=kt(e).left,i=Qe(e.scrollableElement).scrollLeft,l=Math.max(qc(n,i-r-Jc)-Kc-1,0),u=qc(n,t+Ht(i,r)+Jc,l);return n.slice(l,u+Kc)}function TF(e,t){var n=e.cellMatrix.scrollableRange.rows,r=kt(e).top,i=Qe(e.scrollableElement).scrollTop,l=Math.max(Qc(n,i-r-jc)-Kc-1,0),u=Qc(n,t+Ht(i,r)+jc,l);return n.slice(l,u+Kc)}function Qc(e,t,n,r){n===void 0&&(n=0),r===void 0&&(r=e.length-1);var i=n+r>>1;return i<0?0:n>=r?i:t>1;return i<0?0:n>=r?i:t0&&(b=e.columns.slice(-s).reduce(function(S,P){return S+(P.width||kn.DEFAULT_COLUMN_WIDTH)},0));var w=m+b>r*h/100;u=w?0:u,s=w?0:s}if(e.stickyTopRows||e.stickyBottomRows){var I=e.rows.slice(0,d).reduce(function(S,P){return S+(P.height||kn.DEFAULT_ROW_HEIGHT)},0),v=0;c>0&&(v=e.rows.slice(-c).reduce(function(S,P){return S+(P.height||kn.DEFAULT_ROW_HEIGHT)},0));var x=I+v>l*y/100;d=x?0:d,c=x?0:c}}return k(k({},t),{leftStickyColumns:u,topStickyRows:d,rightStickyColumns:s,bottomStickyRows:c})}var OF=function(e,t){var n=this;this.updateState=e,this.pointerEventsController=t,this.pointerDownHandler=function(r){return n.updateState(function(i){return n.pointerEventsController.handlePointerDown(r,i)})},this.keyDownHandler=function(r){return n.updateState(function(i){return i.currentBehavior.handleKeyDown(r,i)})},this.keyUpHandler=function(r){return n.updateState(function(i){return i.currentBehavior.handleKeyUp(r,i)})},this.compositionEndHandler=function(r){return n.updateState(function(i){return i.currentBehavior.handleCompositionEnd(r,i)})},this.copyHandler=function(r){return n.updateState(function(i){return i.currentBehavior.handleCopy(r,i)})},this.pasteHandler=function(r){return n.updateState(function(i){return i.currentBehavior.handlePaste(r,i)})},this.cutHandler=function(r){return n.updateState(function(i){return i.currentBehavior.handleCut(r,i)})},this.blurHandler=function(r){return n.updateState(function(i){var l,u,d;return!((u=(l=r.target)===null||l===void 0?void 0:l.id)===null||u===void 0)&&u.startsWith("react-select-")&&((d=i.hiddenFocusElement)===null||d===void 0||d.focus({preventScroll:!0})),i})},this.windowResizeHandler=function(){return n.updateState(cc)},this.reactgridRefHandler=function(r){return n.assignElementsRefs(r,cc)},this.hiddenElementRefHandler=function(r){return n.updateState(function(i){var l;return!((l=i.props)===null||l===void 0)&&l.initialFocusLocation&&r&&r.focus({preventScroll:!0}),i.hiddenFocusElement=r,i})},this.pasteCaptureHandler=function(r){var i,l=r.clipboardData.getData("text/html"),u=new DOMParser().parseFromString(l,"text/html");l&&((i=u.body.firstElementChild)===null||i===void 0?void 0:i.getAttribute("data-reactgrid"))==="reactgrid-content"&&(r.bubbles=!1)},this.scrollHandlerInternal=function(r){try{return n.updateOnScrollChange(r)}catch(i){console.error(i)}},this.scrollHandler=function(){return n.scrollHandlerInternal(cc)},this.assignElementsRefs=function(r,i){r&&n.updateState(function(l){var u=uF(r);return l.props&&(l=nR(l.props,l)),i(k(k({},l),{reactGridElement:r,scrollableElement:u}))})},this.updateOnScrollChange=function(r){n.updateState(function(i){if(i.disableVirtualScrolling)return i;var l=200,u=Qe(i.scrollableElement),d=u.scrollTop,s=u.scrollLeft,c=pi(i),p=c.width,h=c.height;return p>0&&h>0&&(d>=i.bottomScrollBoudary-l||d<=i.topScrollBoudary+l||s>=i.rightScrollBoudary-l||s<=i.leftScrollBoudary+l)?r(i):i})}},rR=function(){function e(){this.reset()}return e.prototype.reset=function(){return this.cellMatrix=new kn({}),this},e.prototype.setProps=function(t){return this.cellMatrix.props=t,this},e.prototype.fillRowsAndCols=function(t){var n=this;t===void 0&&(t={leftStickyColumns:0,topStickyRows:0,rightStickyColumns:0,bottomStickyRows:0});var r=t.leftStickyColumns,i=t.topStickyRows,l=t.rightStickyColumns,u=t.bottomStickyRows;if(!Array.isArray(this.cellMatrix.props.rows))throw new TypeError('Feeded ReactGrids "rows" property is not an array!');if(!Array.isArray(this.cellMatrix.props.columns))throw new TypeError('Feeded ReactGrids "columns" property is not an array!');return this.cellMatrix.rows=this.cellMatrix.props.rows.reduce(function(d,s,c){var p=n.getTop(c,i,u,d),h=s.height||kn.DEFAULT_ROW_HEIGHT;return d.push(k(k({},s),{top:p,height:h,idx:c,bottom:p+h})),n.cellMatrix.height+=h,n.cellMatrix.rowIndexLookup[s.rowId]=c,d},[]),this.cellMatrix.columns=this.cellMatrix.props.columns.reduce(function(d,s,c){var p,h,y,m,b=n.getLeft(c,r,l,d),w=s.width?s.width<((h=(p=n.cellMatrix.props)===null||p===void 0?void 0:p.minColumnWidth)!==null&&h!==void 0?h:kn.MIN_COLUMN_WIDTH)?(m=(y=n.cellMatrix.props)===null||y===void 0?void 0:y.minColumnWidth)!==null&&m!==void 0?m:kn.MIN_COLUMN_WIDTH:s.width:kn.DEFAULT_COLUMN_WIDTH;return d.push(k(k({},s),{idx:c,left:b,width:w,right:b+w})),n.cellMatrix.width+=w,n.cellMatrix.columnIndexLookup[s.columnId]=c,d},[]),this},e.prototype.setRangesToRenderLookup=function(){var t=this,n=[];this.cellMatrix.rows.forEach(function(i,l){i.cells.forEach(function(u,d){var s="rowspan"in u&&u.rowspan||0,c="colspan"in u&&u.colspan||0,p=s?t.cellMatrix.rows.slice(l,l+s):[t.cellMatrix.rows[l]],h=c?t.cellMatrix.columns.slice(d,d+c):[t.cellMatrix.columns[d]],y=new hr(p,h);n=Tt(Tt([],n,!0),t.getRangesToRender(y)),t.cellMatrix.spanCellLookup[Uc(d,l)]={range:y}})});var r=n.map(function(i){return Uc(i.first.column.idx,i.first.row.idx)});return Object.keys(this.cellMatrix.spanCellLookup).forEach(function(i){r.includes(i)||(t.cellMatrix.rangesToRender[i]=t.cellMatrix.spanCellLookup[i])}),this},e.prototype.getRangesToRender=function(t){var n=t.rows.flatMap(function(r){return t.columns.map(function(i){return new hr([r],[i])})});return n.shift(),n},e.prototype.fillSticky=function(t){t===void 0&&(t={leftStickyColumns:0,topStickyRows:0,rightStickyColumns:0,bottomStickyRows:0});var n=t.leftStickyColumns,r=t.topStickyRows,i=t.rightStickyColumns,l=t.bottomStickyRows;return this.cellMatrix.ranges.stickyLeftRange=new hr(this.cellMatrix.rows,this.cellMatrix.columns.slice(0,n||0)),this.cellMatrix.ranges.stickyTopRange=new hr(this.cellMatrix.rows.slice(0,r||0),this.cellMatrix.columns),this.cellMatrix.ranges.stickyRightRange=new hr(this.cellMatrix.rows,this.cellMatrix.columns.slice(this.getStickyRightFirstIdx(n,i),this.cellMatrix.columns.length)),this.cellMatrix.ranges.stickyBottomRange=new hr(this.cellMatrix.rows.slice(this.getStickyBottomFirstIdx(r,l),this.cellMatrix.rows.length),this.cellMatrix.columns),this},e.prototype.fillScrollableRange=function(t){t===void 0&&(t={leftStickyColumns:0,topStickyRows:0,rightStickyColumns:0,bottomStickyRows:0});var n=t.leftStickyColumns,r=t.topStickyRows,i=t.rightStickyColumns,l=t.bottomStickyRows;return this.cellMatrix.scrollableRange=this.getScrollableRange(n,r,i,l),this},e.prototype.setEdgeLocations=function(){return this.cellMatrix.first=this.cellMatrix.getLocation(0,0),this.cellMatrix.last=this.cellMatrix.getLocation(this.cellMatrix.rows.length-1,this.cellMatrix.columns.length-1),this},e.prototype.getTop=function(t,n,r,i){return t===0||t===n||t===this.getStickyBottomFirstIdx(n||0,r||0)?0:i[t-1].top+i[t-1].height},e.prototype.getLeft=function(t,n,r,i){return t===0||t===n||t===this.getStickyRightFirstIdx(n||0,r||0)?0:i[t-1].left+i[t-1].width},e.prototype.getScrollableRange=function(t,n,r,i){return new hr(this.cellMatrix.rows.slice(n||0,this.getStickyBottomFirstIdx(n,i)),this.cellMatrix.columns.slice(t||0,this.getStickyRightFirstIdx(t,r)))},e.prototype.getStickyBottomFirstIdx=function(t,n){var r=n||0,i=t||0,l=this.cellMatrix.props.rows.length;return l-(r+i>l?0:r)},e.prototype.getStickyRightFirstIdx=function(t,n){var r=n||0,i=t||0,l=this.cellMatrix.props.columns.length;return l-(r+i>l?0:r)},e.prototype.getCellMatrix=function(){var t=this.cellMatrix;return this.reset(),t},e}(),Je=function(e,t,n){var r=e[t];if(r==null)throw new Error("Cell is missing property '".concat(String(t),"'"));if(typeof r!==n)throw new Error("Property '".concat(String(t),"' expected to be of type '").concat(n,"' but is '").concat(typeof r,"'"));return r},LF=function(){function e(){}return e.prototype.getCompatibleCell=function(t){var n=Je(t,"checked","boolean"),r=n?t.checkedText?t.checkedText:"1":t.uncheckedText?t.uncheckedText:"";return k(k({},t),{checked:!!n,value:n?1:NaN,text:r})},e.prototype.handleKeyDown=function(t,n,r,i,l){return i||n!==$.SPACE&&n!==$.ENTER?{cell:t,enableEditMode:!1}:{cell:this.getCompatibleCell(this.toggleCheckboxCell(t)),enableEditMode:!1}},e.prototype.toggleCheckboxCell=function(t){return this.getCompatibleCell(k(k({},t),{checked:!t.checked}))},e.prototype.update=function(t,n){var r=n.type==="checkbox"?n.checked:!!n.value;return this.getCompatibleCell(k(k({},t),{checked:r}))},e.prototype.getClassName=function(t){return t.className?t.className:""},e.prototype.render=function(t,n,r){var i=this;return E.createElement("label",null,E.createElement("input",{className:"rg-input",type:"checkbox",checked:t.checked,onChange:function(l){return r(i.toggleCheckboxCell(t),!0)}}),E.createElement("span",null))},e}(),Gr=function(e){return e>=$.KEY_0&&e<=$.KEY_Z||Nv(e)||e>=$.MULTIPLY&&e<=$.DIVIDE||e>=$.SEMICOLON&&e<=$.SINGLE_QUOTE||e===$.SPACE},iR=function(e){return e.match(/^[a-zA-Z0-9]$/)!==null},zi=function(e){return e>=$.KEY_0&&e<=$.KEY_9||Nv(e)},Nv=function(e){return e>=$.NUMPAD_0&&e<=$.NUMPAD_9},_F=function(e){return e>=$.COMMA&&e<=$.PERIOD||e===$.DECIMAL||e===$.SUBTRACT||e===$.FIREFOX_DASH},dc=function(e){return e.match(/[\d.,+-]/)!==null},ir=function(e){return e===$.LEFT_ARROW||e===$.RIGHT_ARROW||e===$.UP_ARROW||e===$.DOWN_ARROW||e===$.END||e===$.HOME||e===$.BACKSPACE||e===$.DELETE},bg=function(e,t){t!==""&&(t=oR());var n="".concat(t&&"".concat(t," ")).concat(e);return Date.parse(n)},Ba=function(e){return e.toString().padStart(2,"0")},oR=function(){return Yc()||Mv()?"1970/01/01":"1970-01-01"},Wr=function(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=navigator.language||"en-US";return t||n?e.toLocaleUpperCase(r):e.toLocaleLowerCase(r)},NF=function(){function e(){this.wasEscKeyPressed=!1}return e.prototype.getCompatibleCell=function(t){var n=t.date?Je(t,"date","object"):new Date(NaN),r=t.format||new Intl.DateTimeFormat(window.navigator.language),i=n.getTime(),l=Number.isNaN(i)?"":r.format(n);return k(k({},t),{date:n,value:i,text:l})},e.prototype.handleKeyDown=function(t,n,r,i,l,u,d){return!r&&iR(Wr(u))?{cell:this.getCompatibleCell(k({},t)),enableEditMode:!0}:{cell:t,enableEditMode:n===$.POINTER||n===$.ENTER}},e.prototype.update=function(t,n){return this.getCompatibleCell(k(k({},t),{date:new Date(n.value)}))},e.prototype.getClassName=function(t,n){return t.className?t.className:""},e.prototype.render=function(t,n,r){var i=this;if(!n)return t.text;if(!t.date)return'"cell.date" is not initialized with a date value';var l=Ba(t.date.getFullYear()),u=Ba(t.date.getMonth()+1),d=Ba(t.date.getDate());return E.createElement("input",{className:"rg-input",ref:function(s){s&&s.focus()},type:"date",defaultValue:"".concat(l,"-").concat(u,"-").concat(d),onChange:function(s){if(s.currentTarget.value){var c=s.currentTarget.value.split("-").map(function(m){return parseInt(m)}),p=c[0],h=c[1],y=c[2];r(i.getCompatibleCell(k(k({},t),{date:new Date(p,h-1,y)})),!1)}},onBlur:function(s){if(s.currentTarget.value){var c=s.currentTarget.value.split("-").map(function(m){return parseInt(m)}),p=c[0],h=c[1],y=c[2];r(i.getCompatibleCell(k(k({},t),{date:new Date(p,h-1,y)})),!i.wasEscKeyPressed),i.wasEscKeyPressed=!1}},onKeyDown:function(s){(zi(s.keyCode)||ir(s.keyCode)||s.keyCode===$.COMMA||s.keyCode===$.PERIOD||(s.ctrlKey||s.metaKey)&&s.keyCode===$.KEY_A)&&s.stopPropagation(),zi(s.keyCode)||ir(s.keyCode)||s.keyCode===$.COMMA||s.keyCode===$.PERIOD||s.preventDefault(),s.keyCode===$.ESCAPE&&(i.wasEscKeyPressed=!0)},onCopy:function(s){return s.stopPropagation()},onCut:function(s){return s.stopPropagation()},onPaste:function(s){return s.stopPropagation()},onPointerDown:function(s){return s.stopPropagation()}})},e}(),FF=function(){function e(){this.wasEscKeyPressed=!1}return e.prototype.getCompatibleCell=function(t){var n=Je(t,"text","string"),r=parseFloat(n);return k(k({},t),{text:n,value:r})},e.prototype.handleKeyDown=function(t,n,r,i,l,u,d){var s=Wr(u,i,d);return r||l||!Gr(n)||i&&n===$.SPACE?{cell:t,enableEditMode:n===$.POINTER||n===$.ENTER}:{cell:k(k({},t),{text:s}),enableEditMode:!0}},e.prototype.handleCompositionEnd=function(t,n){return{cell:k(k({},t),{text:n}),enableEditMode:!0}},e.prototype.update=function(t,n){return this.getCompatibleCell(k(k({},t),{text:n.text}))},e.prototype.getClassName=function(t,n){return!t.validator||t.validator(t.text)?"valid":"rg-invalid"},e.prototype.render=function(t,n,r){var i=this;if(!n){var l=!(!t.validator||t.validator(t.text))&&t.errorMessage?t.errorMessage:t.text;return t.renderer?t.renderer(l):l}return E.createElement("input",{className:"rg-input",ref:function(u){u&&u.focus()},onChange:function(u){return r(i.getCompatibleCell(k(k({},t),{text:u.currentTarget.value})),!1)},onBlur:function(u){r(i.getCompatibleCell(k(k({},t),{text:u.currentTarget.value})),!i.wasEscKeyPressed),i.wasEscKeyPressed=!1},onKeyDown:function(u){(Gr(u.keyCode)||ir(u.keyCode))&&u.stopPropagation(),u.keyCode===$.ESCAPE&&(i.wasEscKeyPressed=!0)},defaultValue:t.text,onCopy:function(u){return u.stopPropagation()},onCut:function(u){return u.stopPropagation()},onPaste:function(u){return u.stopPropagation()},onPointerDown:function(u){return u.stopPropagation()}})},e}(),BF=function(){function e(){this.wasEscKeyPressed=!1}return e.prototype.getCompatibleCell=function(t){var n=Je(t,"text","string"),r=!1;try{r=Je(t,"isExpanded","boolean")}catch{r=!0}var i=-1;try{i=Je(t,"indent","number")}catch{i=0}var l=!1;try{l=Je(t,"hasChildren","boolean")}catch{l=!1}var u=parseFloat(n);return k(k({},t),{text:n,value:u,isExpanded:r,indent:i,hasChildren:l})},e.prototype.update=function(t,n){return this.getCompatibleCell(k(k({},t),{isExpanded:n.isExpanded,text:n.text}))},e.prototype.handleKeyDown=function(t,n,r,i,l,u,d){var s=n===$.POINTER||n===$.ENTER,c=k({},t),p=Wr(u,i,d);return n!==$.SPACE||c.isExpanded===void 0||i?r||l||!Gr(n)||i&&n===$.SPACE||(c.text=p,s=!0):c.isExpanded=!c.isExpanded,{cell:c,enableEditMode:s}},e.prototype.handleCompositionEnd=function(t,n){return{cell:k(k({},t),{text:n}),enableEditMode:!0}},e.prototype.getClassName=function(t,n){var r,i=t.hasChildren?t.isExpanded?"expanded":"collapsed":"",l=(r=t.className)!==null&&r!==void 0?r:"";return"".concat(i," ").concat(l)},e.prototype.getStyle=function(t,n){var r,i=(r=t.indent)!==null&&r!==void 0?r:0;return{paddingLeft:"calc(".concat(1.4*i,"em + 2px)")}},e.prototype.render=function(t,n,r){var i=this;return n?E.createElement("input",{className:"rg-input",ref:function(l){l&&(l.focus(),l.setSelectionRange(l.value.length,l.value.length))},defaultValue:t.text,onChange:function(l){return r(i.getCompatibleCell(k(k({},t),{text:l.currentTarget.value})),!1)},onBlur:function(l){r(i.getCompatibleCell(k(k({},t),{text:l.currentTarget.value})),!i.wasEscKeyPressed),i.wasEscKeyPressed=!1},onCopy:function(l){return l.stopPropagation()},onCut:function(l){return l.stopPropagation()},onPaste:function(l){return l.stopPropagation()},onPointerDown:function(l){return l.stopPropagation()},onKeyDown:function(l){(Gr(l.keyCode)||ir(l.keyCode))&&l.stopPropagation(),l.keyCode===$.ESCAPE&&(i.wasEscKeyPressed=!0)}}):E.createElement(E.Fragment,null,t.hasChildren?E.createElement("div",{className:"chevron",onPointerDown:function(l){l.stopPropagation(),r(i.getCompatibleCell(k(k({},t),{isExpanded:!t.isExpanded})),!0)}},E.createElement("span",{className:"icon"},"❯")):E.createElement("div",{className:"no-child"}),t.text)},e}(),DF=function(){function e(){this.isFocusable=function(t){return!1},this.getStyle=function(t){return{background:"rgba(128, 128, 128, 0.1)"}}}return e.prototype.getCompatibleCell=function(t){var n=Je(t,"text","string"),r=parseFloat(n);return k(k({},t),{text:n,value:r})},e.prototype.render=function(t,n,r){return t.text},e.prototype.getClassName=function(t,n){return t.className?t.className:""},e}(),GF=function(){return navigator.language||"en-US"};function Pl(e,t){if(t===void 0&&(t=GF()),!e.trim())return NaN;var n=function(u){var d=Intl.NumberFormat(u).format(123456.789);return{thousandsSeparator:d.split("123")[1][0],decimalSeparator:d.split("123")[1][4]}}(t),r=n.thousandsSeparator,i=n.decimalSeparator,l=e.replace(/\u00A0/g," ").replace(new RegExp("[".concat(r,"\\s]"),"g"),"").replace(new RegExp("\\".concat(i),"g"),".").replace(/^(?!-)\D+|\D+$/g,"");return l===null||l.trim().length===0?NaN:Number(l)}var WF=function(){function e(){this.wasEscKeyPressed=!1,this.getTextFromCharCode=function(t){switch(t.charCodeAt(0)){case $.DASH:case $.FIREFOX_DASH:case $.SUBTRACT:return"-";case $.COMMA:return",";case $.PERIOD:case $.DECIMAL:return".";default:return t}}}return e.prototype.getCompatibleCell=function(t){var n;try{n=Je(t,"value","number")}catch{n=NaN}var r=t.format||new Intl.NumberFormat(window.navigator.language),i=t.nanToZero&&Number.isNaN(n)?0:n,l=Number.isNaN(i)||t.hideZero&&i===0?"":r.format(i);return k(k({},t),{value:i,text:l})},e.prototype.handleKeyDown=function(t,n,r,i,l,u,d){Nv(n)&&(n-=48);var s=Wr(u);if(!r&&dc(s)){var c=Number(s);return Number.isNaN(c)&&dc(s)?{cell:k(k({},this.getCompatibleCell(k(k({},t),{value:c}))),{text:s}),enableEditMode:!0}:{cell:this.getCompatibleCell(k(k({},t),{value:c})),enableEditMode:!0}}return{cell:t,enableEditMode:n===$.POINTER||n===$.ENTER}},e.prototype.update=function(t,n){return this.getCompatibleCell(k(k({},t),{value:n.value}))},e.prototype.getClassName=function(t,n){var r,i,l=(i=(r=t.validator)===null||r===void 0?void 0:r.call(t,t.value))===null||i===void 0||i,u=t.className||"";return"".concat(l?"":"rg-invalid"," ").concat(u)},e.prototype.render=function(t,n,r){var i,l,u=this;if(!n)return!((l=(i=t.validator)===null||i===void 0?void 0:i.call(t,t.value))===null||l===void 0||l)&&t.errorMessage?t.errorMessage:t.text;var d=t.format?t.format.resolvedOptions().locale:window.navigator.languages[0],s=new Intl.NumberFormat(d,{useGrouping:!1,maximumFractionDigits:20});return E.createElement("input",{className:"rg-input",inputMode:"decimal",ref:function(c){c&&(c.focus(),c.setSelectionRange(c.value.length,c.value.length))},defaultValue:Number.isNaN(t.value)?this.getTextFromCharCode(t.text):s.format(t.value),onChange:function(c){return r(u.getCompatibleCell(k(k({},t),{value:Pl(c.currentTarget.value)})),!1)},onBlur:function(c){r(u.getCompatibleCell(k(k({},t),{value:Pl(c.currentTarget.value)})),!u.wasEscKeyPressed),u.wasEscKeyPressed=!1},onKeyDown:function(c){(zi(c.keyCode)||ir(c.keyCode)||_F(c.keyCode)||(c.ctrlKey||c.metaKey)&&c.keyCode===$.KEY_A)&&c.stopPropagation(),zi(c.keyCode)||ir(c.keyCode)||dc(Wr(c.key))||c.preventDefault(),c.keyCode===$.ESCAPE&&(u.wasEscKeyPressed=!0)},onCopy:function(c){return c.stopPropagation()},onCut:function(c){return c.stopPropagation()},onPaste:function(c){return c.stopPropagation()},onPointerDown:function(c){return c.stopPropagation()}})},e}(),VF=function(){function e(){this.wasEscKeyPressed=!1}return e.prototype.getCompatibleCell=function(t){var n,r=Je(t,"text","string");try{n=Je(t,"placeholder","string")}catch{n=""}var i=parseFloat(r);return k(k({},t),{text:r,value:i,placeholder:n})},e.prototype.update=function(t,n){return this.getCompatibleCell(k(k({},t),{text:n.text,placeholder:n.placeholder}))},e.prototype.handleKeyDown=function(t,n,r,i,l,u,d){var s=Wr(u,i,d);return r||l||!Gr(n)||i&&n===$.SPACE?{cell:t,enableEditMode:n===$.POINTER||n===$.ENTER}:{cell:this.getCompatibleCell(k(k({},t),{text:s})),enableEditMode:!0}},e.prototype.handleCompositionEnd=function(t,n){return{cell:k(k({},t),{text:n}),enableEditMode:!0}},e.prototype.getClassName=function(t,n){var r=!t.validator||t.validator(t.text),i=t.className?t.className:"";return"".concat(r?"valid":"rg-invalid"," ").concat(t.placeholder&&t.text===""?"placeholder":""," ").concat(i)},e.prototype.render=function(t,n,r){var i=this;if(!n){var l=!t.validator||t.validator(t.text),u=t.text||t.placeholder||"",d=!l&&t.errorMessage?t.errorMessage:u;return t.renderer?t.renderer(d):d}return E.createElement("input",{className:"rg-input",ref:function(s){s&&(s.focus(),s.setSelectionRange(s.value.length,s.value.length))},defaultValue:t.text,onChange:function(s){return r(i.getCompatibleCell(k(k({},t),{text:s.currentTarget.value})),!1)},onBlur:function(s){r(i.getCompatibleCell(k(k({},t),{text:s.currentTarget.value})),!i.wasEscKeyPressed),i.wasEscKeyPressed=!1},onCopy:function(s){return s.stopPropagation()},onCut:function(s){return s.stopPropagation()},onPaste:function(s){return s.stopPropagation()},onPointerDown:function(s){return s.stopPropagation()},placeholder:t.placeholder,onKeyDown:function(s){(Gr(s.keyCode)||ir(s.keyCode))&&s.stopPropagation(),s.keyCode===$.ESCAPE&&(i.wasEscKeyPressed=!0)}})},e}(),HF=function(){function e(){this.wasEscKeyPressed=!1}return e.prototype.getCompatibleCell=function(t){var n=t.time?Je(t,"time","object"):new Date(NaN),r=t.format||new Intl.DateTimeFormat(window.navigator.language),i=n.getTime()%e.dayInMillis,l=Number.isNaN(i)?"":r.format(n);return k(k({},t),{time:n,value:i,text:l})},e.prototype.handleKeyDown=function(t,n,r,i,l,u){return!r&&dc(Wr(u))?{cell:this.getCompatibleCell(k({},t)),enableEditMode:!0}:{cell:t,enableEditMode:n===$.POINTER||n===$.ENTER}},e.prototype.update=function(t,n){var r=bg(n.text);return n.text===""||Number.isNaN(r)?this.getCompatibleCell(k(k({},t),{time:new Date(n.value)})):this.getCompatibleCell(k(k({},t),{time:new Date(r)}))},e.prototype.getClassName=function(t,n){return t.className?t.className:""},e.prototype.render=function(t,n,r){var i=this;if(!n)return t.text;if(!t.time)return'"cell.time" is not initialized with a time value';var l=Ba(t.time.getHours()),u=Ba(t.time.getMinutes());return E.createElement("input",{className:"rg-input",ref:function(d){d&&d.focus()},type:"time",defaultValue:"".concat(l,":").concat(u),onChange:function(d){var s=bg(d.currentTarget.value);Number.isNaN(s)||r(i.getCompatibleCell(k(k({},t),{time:new Date(s)})),!1)},onBlur:function(d){var s=bg(d.currentTarget.value);Number.isNaN(s)||(r(i.getCompatibleCell(k(k({},t),{time:new Date(s)})),!i.wasEscKeyPressed),i.wasEscKeyPressed=!1)},onKeyDown:function(d){(zi(d.keyCode)||ir(d.keyCode)||d.keyCode===$.COMMA||d.keyCode===$.PERIOD||(d.ctrlKey||d.metaKey)&&d.keyCode===$.KEY_A)&&d.stopPropagation(),zi(d.keyCode)||ir(d.keyCode)||d.keyCode===$.COMMA||d.keyCode===$.PERIOD||d.preventDefault(),d.keyCode===$.ESCAPE&&(i.wasEscKeyPressed=!0)},onCopy:function(d){return d.stopPropagation()},onCut:function(d){return d.stopPropagation()},onPaste:function(d){return d.stopPropagation()},onPointerDown:function(d){return d.stopPropagation()}})},e.dayInMillis=864e5,e.defaultDate=oR(),e}();function mo(e){return mo=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},mo(e)}function lR(e){var t=function(n,r){if(mo(n)!="object"||!n)return n;var i=n[Symbol.toPrimitive];if(i!==void 0){var l=i.call(n,r||"default");if(mo(l)!="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(n)}(e,"string");return mo(t)=="symbol"?t:t+""}function Ra(e,t,n){return(t=lR(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function pe(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)continue;s[c]=u[c]}return s}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var zF=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function ye(){return ye=Object.assign?Object.assign.bind():function(e){for(var t=1;t0?Dt(Gl,--bn):0,Tl--,wt===10&&(Tl=1,gf--),wt}function Ln(){return wt=bn2||su(wt)>3?"":" "}function JF(e,t){for(;--t&&Ln()&&!(wt<48||wt>102||wt>57&&wt<65||wt>70&&wt<97););return Su(e,fc()+(t<6&&Dr()==32&&Ln()==32))}function Xh(e){for(;Ln();)switch(wt){case e:return bn;case 34:case 39:e!==34&&e!==39&&Xh(wt);break;case 40:e===41&&Xh(e);break;case 92:Ln()}return bn}function KF(e,t){for(;Ln()&&e+wt!==57&&(e+wt!==84||Dr()!==47););return"/*"+Su(t,bn-1)+"*"+pf(e===47?e:Ln())}function QF(e){for(;!su(Dr());)Ln();return Su(e,bn)}function Cw(e){return pR(gc("",null,null,null,[""],e=fR(e),0,[0],e))}function gc(e,t,n,r,i,l,u,d,s){for(var c=0,p=0,h=u,y=0,m=0,b=0,w=1,I=1,v=1,x=0,S="",P=i,O=l,M=r,T=S;I;)switch(b=x,x=Ln()){case 40:if(b!=108&&Dt(T,h-1)==58){$h(T+=De(pc(x),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:T+=pc(x);break;case 9:case 10:case 13:case 32:T+=jF(b);break;case 92:T+=JF(fc()-1,7);continue;case 47:switch(Dr()){case 42:case 47:Ns(qF(KF(Ln(),fc()),t,n),s);break;default:T+="/"}break;case 123*w:d[c++]=Tr(T)*v;case 125*w:case 59:case 0:switch(x){case 0:case 125:I=0;case 59+p:v==-1&&(T=De(T,/\f/g,"")),m>0&&Tr(T)-h&&Ns(m>32?Sw(T+";",r,n,h-1):Sw(De(T," ","")+";",r,n,h-2),s);break;case 59:T+=";";default:if(Ns(M=Iw(T,t,n,c,p,i,d,S,P=[],O=[],h),l),x===123)if(p===0)gc(T,t,M,M,P,l,h,d,O);else switch(y===99&&Dt(T,3)===110?100:y){case 100:case 108:case 109:case 115:gc(e,M,M,r&&Ns(Iw(e,M,M,0,0,i,d,S,i,P=[],h),O),i,O,h,d,r?P:O);break;default:gc(T,M,M,M,[""],O,0,d,O)}}c=p=m=0,w=v=1,S=T="",h=u;break;case 58:h=1+Tr(T),m=b;default:if(w<1){if(x==123)--w;else if(x==125&&w++==0&&YF()==125)continue}switch(T+=pf(x),x*w){case 38:v=p>0?1:(T+="\f",-1);break;case 44:d[c++]=(Tr(T)-1)*v,v=1;break;case 64:Dr()===45&&(T+=pc(Ln())),y=Dr(),p=h=Tr(S=T+=QF(fc())),x++;break;case 45:b===45&&Tr(T)==2&&(w=0)}}return l}function Iw(e,t,n,r,i,l,u,d,s,c,p){for(var h=i-1,y=i===0?l:[""],m=Wv(y),b=0,w=0,I=0;b0?y[v]+" "+x:De(x,/&\f/g,y[v])))&&(s[I++]=S);return hf(e,t,n,i===0?Dv:d,s,c,p)}function qF(e,t,n){return hf(e,t,n,Bv,pf(wt),uu(e,2,-2),0)}function Sw(e,t,n,r){return hf(e,t,n,Gv,uu(e,0,r),uu(e,r+1,-1),r)}function vo(e,t){for(var n="",r=Wv(e),i=0;i-1},kw=function(e){return e.type.charCodeAt(1)===105&&e.type.charCodeAt(0)===64},Mw=function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},oB=function(e,t,n){kw(e)&&(e.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),Mw(e)):function(r,i){for(var l=r-1;l>=0;l--)if(!kw(i[l]))return!0;return!1}(t,n)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),Mw(e)))};function hR(e,t){switch(function(n,r){return 45^Dt(n,0)?(((r<<2^Dt(n,0))<<2^Dt(n,1))<<2^Dt(n,2))<<2^Dt(n,3):0}(e,t)){case 5103:return Fe+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Fe+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Fe+e+xw+e+Yt+e+e;case 6828:case 4268:return Fe+e+Yt+e+e;case 6165:return Fe+e+Yt+"flex-"+e+e;case 5187:return Fe+e+De(e,/(\w+).+(:[^]+)/,Fe+"box-$1$2"+Yt+"flex-$1$2")+e;case 5443:return Fe+e+Yt+"flex-item-"+De(e,/flex-|-self/,"")+e;case 4675:return Fe+e+Yt+"flex-line-pack"+De(e,/align-content|flex-|-self/,"")+e;case 5548:return Fe+e+Yt+De(e,"shrink","negative")+e;case 5292:return Fe+e+Yt+De(e,"basis","preferred-size")+e;case 6060:return Fe+"box-"+De(e,"-grow","")+Fe+e+Yt+De(e,"grow","positive")+e;case 4554:return Fe+De(e,/([^-])(transform)/g,"$1"+Fe+"$2")+e;case 6187:return De(De(De(e,/(zoom-|grab)/,Fe+"$1"),/(image-set)/,Fe+"$1"),e,"")+e;case 5495:case 3959:return De(e,/(image-set\([^]*)/,Fe+"$1$`$1");case 4968:return De(De(e,/(.+:)(flex-)?(.*)/,Fe+"box-pack:$3"+Yt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Fe+e+e;case 4095:case 3583:case 4068:case 2532:return De(e,/(.+)-inline(.+)/,Fe+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Tr(e)-1-t>6)switch(Dt(e,t+1)){case 109:if(Dt(e,t+4)!==45)break;case 102:return De(e,/(.+:)(.+)-([^]+)/,"$1"+Fe+"$2-$3$1"+xw+(Dt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~$h(e,"stretch")?hR(De(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Dt(e,t+1)!==115)break;case 6444:switch(Dt(e,Tr(e)-3-(~$h(e,"!important")&&10))){case 107:return De(e,":",":"+Fe)+e;case 101:return De(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Fe+(Dt(e,14)===45?"inline-":"")+"box$3$1"+Fe+"$2$3$1"+Yt+"$2box$3")+e}break;case 5936:switch(Dt(e,t+11)){case 114:return Fe+e+Yt+De(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Fe+e+Yt+De(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Fe+e+Yt+De(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Fe+e+Yt+e+e}return e}var Pw,Fs,hc=typeof document<"u",lB=hc?void 0:(Pw=function(){return gR(function(){var e={};return function(t){return e[t]}})},Fs=new WeakMap,function(e){if(Fs.has(e))return Fs.get(e);var t=Pw(e);return Fs.set(e,t),t}),aB=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Gv:e.return=hR(e.value,e.length);break;case sR:return vo([va(e,{value:De(e.value,"@","@"+Fe)})],r);case Dv:if(e.length)return function(i,l){return i.map(l).join("")}(e.props,function(i){switch(function(l,u){return(l=u.exec(l))?l[0]:l}(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return vo([va(e,{props:[De(i,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return vo([va(e,{props:[De(i,/:(plac\w+)/,":"+Fe+"input-$1")]}),va(e,{props:[De(i,/:(plac\w+)/,":-moz-$1")]}),va(e,{props:[De(i,/:(plac\w+)/,Yt+"input-$1")]})],r)}return""})}}],mR=function(e){var t=e.key;if(!t)throw new Error(`You have to configure \`key\` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache. -If multiple caches share the same key they might "fight" for each other's style elements.`);if(hc&&t==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(v){v.getAttribute("data-emotion").indexOf(" ")!==-1&&(document.head.appendChild(v),v.setAttribute("data-s",""))})}var r=e.stylisPlugins||aB;if(/[^a-z-]/.test(t))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+t+'" was passed');var i,l,u={},d=[];hc&&(i=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(v){for(var x=v.getAttribute("data-emotion").split(" "),S=1;S=0;T--){var _=M[T];if(_.line css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");break;case"string":var d=[],s=n.replace(bR,function(p,h,y){var m="animation"+d.length;return d.push("const "+m+" = keyframes`"+y.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+m+"}"});d.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(d,["`"+s+"`"]).join(` -`)+` - -You should wrap it with \`css\` like this: - -css\``+s+"`")}if(t==null)return n;var c=t[n];return c!==void 0?c:n}var wR,Or,Bw=/label:\s*([^\s;\n{]+)\s*(;|$)/g;wR=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g;var cu=function(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,i="";Or=void 0;var l,u=e[0];u==null||u.raw===void 0?(r=!1,i+=Da(n,t,u)):(u[0]===void 0&&console.error(Lw),i+=u[0]);for(var d=1;d=4;++b,w-=4)y=1540483477*(65535&(y=255&h.charCodeAt(b)|(255&h.charCodeAt(++b))<<8|(255&h.charCodeAt(++b))<<16|(255&h.charCodeAt(++b))<<24))+(59797*(y>>>16)<<16),m=1540483477*(65535&(y^=y>>>24))+(59797*(y>>>16)<<16)^1540483477*(65535&m)+(59797*(m>>>16)<<16);switch(w){case 3:m^=(255&h.charCodeAt(b+2))<<16;case 2:m^=(255&h.charCodeAt(b+1))<<8;case 1:m=1540483477*(65535&(m^=255&h.charCodeAt(b)))+(59797*(m>>>16)<<16)}return(((m=1540483477*(65535&(m^=m>>>13))+(59797*(m>>>16)<<16))^m>>>15)>>>0).toString(36)}(i)+c;return{name:p,styles:i,map:l,next:Or,toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}}},vB=typeof document<"u",yB=function(e){return e()},xR=!!E.useInsertionEffect&&E.useInsertionEffect,CR=vB&&xR||yB,Dw=xR||E.useLayoutEffect,wl=typeof document<"u",$v={}.hasOwnProperty,du=E.createContext(typeof HTMLElement<"u"?mR({key:"css"}):null);du.displayName="EmotionCacheContext",du.Provider;var mf=function(e){return E.forwardRef(function(t,n){var r=E.useContext(du);return e(t,r,n)})};wl||(mf=function(e){return function(t){var n=E.useContext(du);return n===null?(n=mR({key:"css"}),E.createElement(du.Provider,{value:n},e(t,n))):e(t,n)}});var vf=E.createContext({});vf.displayName="EmotionThemeContext";var bB=function(e){var t=e.split(".");return t[t.length-1]},wB=function(e){var t=/^\s+at\s+([A-Za-z0-9$.]+)\s/.exec(e);return t||(t=/^([A-Za-z0-9$.]+)@/.exec(e))?bB(t[1]):void 0},xB=new Set(["renderWithHooks","processChild","finishClassComponent","renderToString"]),CB=function(e){return e.replace(/\$/g,"-")},Uh="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Yh="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",IB=function(e,t){if(typeof t.css=="string"&&t.css.indexOf(":")!==-1)throw new Error("Strings are not allowed as css prop values, please wrap it in a css template literal from '@emotion/react' like this: css`"+t.css+"`");var n={};for(var r in t)$v.call(t,r)&&(n[r]=t[r]);if(n[Uh]=e,t.css&&(typeof t.css!="object"||typeof t.css.name!="string"||t.css.name.indexOf("-")===-1)){var i=function(l){if(l)for(var u=l.split(` -`),d=0;d component."),u="",l)l[d]&&d&&(u&&(u+=" "),u+=d);break;default:u=l}u&&(i&&(i+=" "),i+=u)}}return i},kB=function(e){var t,n=e.cache,r=e.serializedArr,i=CR(function(){for(var l="",u=0;u({x:e,y:e});function LB(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function zw(e){return RR(e)?(e.nodeName||"").toLowerCase():"#document"}function $i(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function SR(e){var t;return(t=(RR(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function RR(e){return e instanceof Node||e instanceof $i(e).Node}function _B(e){return e instanceof Element||e instanceof $i(e).Element}function Jh(e){return e instanceof HTMLElement||e instanceof $i(e).HTMLElement}function $w(e){return typeof ShadowRoot<"u"&&(e instanceof ShadowRoot||e instanceof $i(e).ShadowRoot)}function ER(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=Zv(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function Zv(e){return $i(e).getComputedStyle(e)}function AR(e){const t=function(n){if(zw(n)==="html")return n;const r=n.assignedSlot||n.parentNode||$w(n)&&n.host||SR(n);return $w(r)?r.host:r}(e);return function(n){return["html","body","#document"].includes(zw(n))}(t)?e.ownerDocument?e.ownerDocument.body:e.body:Jh(t)&&ER(t)?t:AR(t)}function nd(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=AR(e),l=i===((r=e.ownerDocument)==null?void 0:r.body),u=$i(i);return l?t.concat(u,u.visualViewport||[],ER(i)?i:[],u.frameElement&&n?nd(u.frameElement):[]):t.concat(i,nd(i,[],n))}function Uv(e){return _B(e)?e:e.contextElement}function Xw(e){const t=Uv(e);if(!Jh(t))return jh(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:l}=function(s){const c=Zv(s);let p=parseFloat(c.width)||0,h=parseFloat(c.height)||0;const y=Jh(s),m=y?s.offsetWidth:p,b=y?s.offsetHeight:h,w=Bs(p)!==m||Bs(h)!==b;return w&&(p=m,h=b),{width:p,height:h,$:w}}(t);let u=(l?Bs(n.width):n.width)/r,d=(l?Bs(n.height):n.height)/i;return u&&Number.isFinite(u)||(u=1),d&&Number.isFinite(d)||(d=1),{x:u,y:d}}function Zw(e,t,n,r){t===void 0&&(t=!1);const i=e.getBoundingClientRect(),l=Uv(e);let u=jh(1);t&&(u=Xw(e));const d=jh(0);let s=(i.left+d.x)/u.x,c=(i.top+d.y)/u.y,p=i.width/u.x,h=i.height/u.y;if(l){const y=$i(l),m=r;let b=y,w=b.frameElement;for(;w&&r&&m!==b;){const I=Xw(w),v=w.getBoundingClientRect(),x=Zv(w),S=v.left+(w.clientLeft+parseFloat(x.paddingLeft))*I.x,P=v.top+(w.clientTop+parseFloat(x.paddingTop))*I.y;s*=I.x,c*=I.y,p*=I.x,h*=I.y,s+=S,c+=P,b=$i(w),w=b.frameElement}}return LB({width:p,height:h,x:s,y:c})}function NB(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:l=!0,elementResize:u=typeof ResizeObserver=="function",layoutShift:d=typeof IntersectionObserver=="function",animationFrame:s=!1}=r,c=Uv(e),p=i||l?[...c?nd(c):[],...nd(t)]:[];p.forEach(I=>{i&&I.addEventListener("scroll",n,{passive:!0}),l&&I.addEventListener("resize",n)});const h=c&&d?function(I,v){let x,S=null;const P=SR(I);function O(){var M;clearTimeout(x),(M=S)==null||M.disconnect(),S=null}return function M(T,_){T===void 0&&(T=!1),_===void 0&&(_=1),O();const{left:z,top:H,width:J,height:Q}=I.getBoundingClientRect();if(T||v(),!J||!Q)return;const ae={rootMargin:-Ds(H)+"px "+-Ds(P.clientWidth-(z+J))+"px "+-Ds(P.clientHeight-(H+Q))+"px "+-Ds(z)+"px",threshold:OB(0,TB(1,_))||1};let ie=!0;function F(G){const re=G[0].intersectionRatio;if(re!==_){if(!ie)return M();re?M(!1,re):x=setTimeout(()=>{M(!1,1e-7)},1e3)}ie=!1}try{S=new IntersectionObserver(F,{...ae,root:P.ownerDocument})}catch{S=new IntersectionObserver(F,ae)}S.observe(I)}(!0),O}(c,n):null;let y,m=-1,b=null;u&&(b=new ResizeObserver(I=>{let[v]=I;v&&v.target===c&&b&&(b.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var x;(x=b)==null||x.observe(t)})),n()}),c&&!s&&b.observe(c),b.observe(t));let w=s?Zw(e):null;return s&&function I(){const v=Zw(e);!w||v.x===w.x&&v.y===w.y&&v.width===w.width&&v.height===w.height||n(),w=v,y=requestAnimationFrame(I)}(),n(),()=>{var I;p.forEach(v=>{i&&v.removeEventListener("scroll",n),l&&v.removeEventListener("resize",n)}),h==null||h(),(I=b)==null||I.disconnect(),b=null,s&&cancelAnimationFrame(y)}}var Kh=typeof document<"u"?E.useLayoutEffect:E.useEffect,FB=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],rd=function(){};function BB(e,t){return t?t[0]==="-"?e+t:e+"__"+t:e}function DB(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i-1}function kR(e){return yf(e)?window.pageYOffset:e.scrollTop}function id(e,t){yf(e)?window.scrollTo(0,t):e.scrollTop=t}function Gs(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:rd,i=kR(e),l=t-i,u=0;(function d(){var s,c=l*((s=(s=u+=10)/n-1)*s*s+1)+i;id(e,c),un.bottom?id(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+i,e.scrollHeight)):r.top-i=b)return{placement:"bottom",maxHeight:t};if(_>=b&&!u)return l&&Gs(s,z,J),{placement:"bottom",maxHeight:t};if(!u&&_>=r||u&&M>=r)return l&&Gs(s,z,J),{placement:"bottom",maxHeight:u?M-S:_-S};if(i==="auto"||u){var Q=t,ae=u?O:T;return ae>=r&&(Q=Math.min(ae-S-d,t)),{placement:"top",maxHeight:Q}}if(i==="bottom")return l&&id(s,z),{placement:"bottom",maxHeight:t};break;case"top":if(O>=b)return{placement:"top",maxHeight:t};if(T>=b&&!u)return l&&Gs(s,H,J),{placement:"top",maxHeight:t};if(!u&&T>=r||u&&O>=r){var ie=t;return(!u&&T>=r||u&&O>=r)&&(ie=u?O-P:T-P),l&&Gs(s,H,J),{placement:"top",maxHeight:ie}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(i,'".'))}return c}var Kw,PR=function(e){return e==="auto"?"bottom":e},TR=E.createContext(null),XB=function(e){var t=e.children,n=e.minMenuHeight,r=e.maxMenuHeight,i=e.menuPlacement,l=e.menuPosition,u=e.menuShouldScrollIntoView,d=e.theme,s=(E.useContext(TR)||{}).setPortalPlacement,c=E.useRef(null),p=ii(E.useState(r),2),h=p[0],y=p[1],m=ii(E.useState(null),2),b=m[0],w=m[1],I=d.spacing.controlHeight;return Kh(function(){var v=c.current;if(v){var x=l==="fixed",S=$B({maxHeight:r,menuEl:v,minHeight:n,placement:i,shouldScroll:u&&!x,isFixedPosition:x,controlHeight:I});y(S.maxHeight),w(S.placement),s==null||s(S.placement)}},[r,i,l,u,n,s,I]),t({ref:c,placerProps:pe(pe({},e),{},{placement:b||PR(i),maxHeight:h})})},ZB=function(e){var t=e.children,n=e.innerRef,r=e.innerProps;return de("div",ye({},ct(e,"menu",{menu:!0}),{ref:n},r),t)},OR=function(e,t){var n=e.theme,r=n.spacing.baseUnit,i=n.colors;return pe({textAlign:"center"},t?{}:{color:i.neutral40,padding:"".concat(2*r,"px ").concat(3*r,"px")})},UB=OR,YB=OR,jB=["size"],JB=["innerProps","isRtl","size"],xg,Cg,KB={name:"tj5bde-Svg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;label:Svg;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgUmVhY3ROb2RlIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsganN4LCBrZXlmcmFtZXMgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmltcG9ydCB7XG4gIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lLFxuICBDU1NPYmplY3RXaXRoTGFiZWwsXG4gIEdyb3VwQmFzZSxcbn0gZnJvbSAnLi4vdHlwZXMnO1xuaW1wb3J0IHsgZ2V0U3R5bGVQcm9wcyB9IGZyb20gJy4uL3V0aWxzJztcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBEcm9wZG93biAmIENsZWFyIEljb25zXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgU3ZnID0gKHtcbiAgc2l6ZSxcbiAgLi4ucHJvcHNcbn06IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3ZnJ10gJiB7IHNpemU6IG51bWJlciB9KSA9PiAoXG4gIDxzdmdcbiAgICBoZWlnaHQ9e3NpemV9XG4gICAgd2lkdGg9e3NpemV9XG4gICAgdmlld0JveD1cIjAgMCAyMCAyMFwiXG4gICAgYXJpYS1oaWRkZW49XCJ0cnVlXCJcbiAgICBmb2N1c2FibGU9XCJmYWxzZVwiXG4gICAgY3NzPXt7XG4gICAgICBkaXNwbGF5OiAnaW5saW5lLWJsb2NrJyxcbiAgICAgIGZpbGw6ICdjdXJyZW50Q29sb3InLFxuICAgICAgbGluZUhlaWdodDogMSxcbiAgICAgIHN0cm9rZTogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBzdHJva2VXaWR0aDogMCxcbiAgICB9fVxuICAgIHsuLi5wcm9wc31cbiAgLz5cbik7XG5cbmV4cG9ydCB0eXBlIENyb3NzSWNvblByb3BzID0gSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZT86IG51bWJlciB9O1xuZXhwb3J0IGNvbnN0IENyb3NzSWNvbiA9IChwcm9wczogQ3Jvc3NJY29uUHJvcHMpID0+IChcbiAgPFN2ZyBzaXplPXsyMH0gey4uLnByb3BzfT5cbiAgICA8cGF0aCBkPVwiTTE0LjM0OCAxNC44NDljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDBsLTIuNjUxLTMuMDMwLTIuNjUxIDMuMDI5Yy0wLjQ2OSAwLjQ2OS0xLjIyOSAwLjQ2OS0xLjY5NyAwLTAuNDY5LTAuNDY5LTAuNDY5LTEuMjI5IDAtMS42OTdsMi43NTgtMy4xNS0yLjc1OS0zLjE1MmMtMC40NjktMC40NjktMC40NjktMS4yMjggMC0xLjY5N3MxLjIyOC0wLjQ2OSAxLjY5NyAwbDIuNjUyIDMuMDMxIDIuNjUxLTMuMDMxYzAuNDY5LTAuNDY5IDEuMjI4LTAuNDY5IDEuNjk3IDBzMC40NjkgMS4yMjkgMCAxLjY5N2wtMi43NTggMy4xNTIgMi43NTggMy4xNWMwLjQ2OSAwLjQ2OSAwLjQ2OSAxLjIyOSAwIDEuNjk4elwiIC8+XG4gIDwvU3ZnPlxuKTtcbmV4cG9ydCB0eXBlIERvd25DaGV2cm9uUHJvcHMgPSBKU1guSW50cmluc2ljRWxlbWVudHNbJ3N2ZyddICYgeyBzaXplPzogbnVtYmVyIH07XG5leHBvcnQgY29uc3QgRG93bkNoZXZyb24gPSAocHJvcHM6IERvd25DaGV2cm9uUHJvcHMpID0+IChcbiAgPFN2ZyBzaXplPXsyMH0gey4uLnByb3BzfT5cbiAgICA8cGF0aCBkPVwiTTQuNTE2IDcuNTQ4YzAuNDM2LTAuNDQ2IDEuMDQzLTAuNDgxIDEuNTc2IDBsMy45MDggMy43NDcgMy45MDgtMy43NDdjMC41MzMtMC40ODEgMS4xNDEtMC40NDYgMS41NzQgMCAwLjQzNiAwLjQ0NSAwLjQwOCAxLjE5NyAwIDEuNjE1LTAuNDA2IDAuNDE4LTQuNjk1IDQuNTAyLTQuNjk1IDQuNTAyLTAuMjE3IDAuMjIzLTAuNTAyIDAuMzM1LTAuNzg3IDAuMzM1cy0wLjU3LTAuMTEyLTAuNzg5LTAuMzM1YzAgMC00LjI4Ny00LjA4NC00LjY5NS00LjUwMnMtMC40MzYtMS4xNyAwLTEuNjE1elwiIC8+XG4gIDwvU3ZnPlxuKTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBEcm9wZG93biAmIENsZWFyIEJ1dHRvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5leHBvcnQgaW50ZXJmYWNlIERyb3Bkb3duSW5kaWNhdG9yUHJvcHM8XG4gIE9wdGlvbiA9IHVua25vd24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuID0gYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPiA9IEdyb3VwQmFzZTxPcHRpb24+XG4+IGV4dGVuZHMgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWU8T3B0aW9uLCBJc011bHRpLCBHcm91cD4ge1xuICAvKiogVGhlIGNoaWxkcmVuIHRvIGJlIHJlbmRlcmVkIGluc2lkZSB0aGUgaW5kaWNhdG9yLiAqL1xuICBjaGlsZHJlbj86IFJlYWN0Tm9kZTtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpc0Rpc2FibGVkOiBib29sZWFuO1xufVxuXG5jb25zdCBiYXNlQ1NTID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICB7XG4gICAgaXNGb2N1c2VkLFxuICAgIHRoZW1lOiB7XG4gICAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgICBjb2xvcnMsXG4gICAgfSxcbiAgfTpcbiAgICB8IERyb3Bkb3duSW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbiAgICB8IENsZWFySW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdpbmRpY2F0b3JDb250YWluZXInLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHRyYW5zaXRpb246ICdjb2xvciAxNTBtcycsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBwYWRkaW5nOiBiYXNlVW5pdCAqIDIsXG4gICAgICAgICc6aG92ZXInOiB7XG4gICAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsODAgOiBjb2xvcnMubmV1dHJhbDQwLFxuICAgICAgICB9LFxuICAgICAgfSksXG59KTtcblxuZXhwb3J0IGNvbnN0IGRyb3Bkb3duSW5kaWNhdG9yQ1NTID0gYmFzZUNTUztcbmV4cG9ydCBjb25zdCBEcm9wZG93bkluZGljYXRvciA9IDxcbiAgT3B0aW9uLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPlxuPihcbiAgcHJvcHM6IERyb3Bkb3duSW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbikgPT4ge1xuICBjb25zdCB7IGNoaWxkcmVuLCBpbm5lclByb3BzIH0gPSBwcm9wcztcbiAgcmV0dXJuIChcbiAgICA8ZGl2XG4gICAgICB7Li4uZ2V0U3R5bGVQcm9wcyhwcm9wcywgJ2Ryb3Bkb3duSW5kaWNhdG9yJywge1xuICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICdkcm9wZG93bi1pbmRpY2F0b3InOiB0cnVlLFxuICAgICAgfSl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICB7Y2hpbGRyZW4gfHwgPERvd25DaGV2cm9uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuZXhwb3J0IGludGVyZmFjZSBDbGVhckluZGljYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgLyoqIFRoZSBjaGlsZHJlbiB0byBiZSByZW5kZXJlZCBpbnNpZGUgdGhlIGluZGljYXRvci4gKi9cbiAgY2hpbGRyZW4/OiBSZWFjdE5vZGU7XG4gIC8qKiBQcm9wcyB0aGF0IHdpbGwgYmUgcGFzc2VkIG9uIHRvIHRoZSBjaGlsZHJlbi4gKi9cbiAgaW5uZXJQcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydkaXYnXTtcbiAgLyoqIFRoZSBmb2N1c2VkIHN0YXRlIG9mIHRoZSBzZWxlY3QuICovXG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbn1cblxuZXhwb3J0IGNvbnN0IGNsZWFySW5kaWNhdG9yQ1NTID0gYmFzZUNTUztcbmV4cG9ydCBjb25zdCBDbGVhckluZGljYXRvciA9IDxcbiAgT3B0aW9uLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPlxuPihcbiAgcHJvcHM6IENsZWFySW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbikgPT4ge1xuICBjb25zdCB7IGNoaWxkcmVuLCBpbm5lclByb3BzIH0gPSBwcm9wcztcbiAgcmV0dXJuIChcbiAgICA8ZGl2XG4gICAgICB7Li4uZ2V0U3R5bGVQcm9wcyhwcm9wcywgJ2NsZWFySW5kaWNhdG9yJywge1xuICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICdjbGVhci1pbmRpY2F0b3InOiB0cnVlLFxuICAgICAgfSl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICB7Y2hpbGRyZW4gfHwgPENyb3NzSWNvbiAvPn1cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG5cbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuLy8gU2VwYXJhdG9yXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuZXhwb3J0IGludGVyZmFjZSBJbmRpY2F0b3JTZXBhcmF0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIGlzRGlzYWJsZWQ6IGJvb2xlYW47XG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbiAgaW5uZXJQcm9wcz86IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3BhbiddO1xufVxuXG5leHBvcnQgY29uc3QgaW5kaWNhdG9yU2VwYXJhdG9yQ1NTID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICB7XG4gICAgaXNEaXNhYmxlZCxcbiAgICB0aGVtZToge1xuICAgICAgc3BhY2luZzogeyBiYXNlVW5pdCB9LFxuICAgICAgY29sb3JzLFxuICAgIH0sXG4gIH06IEluZGljYXRvclNlcGFyYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+LFxuICB1bnN0eWxlZDogYm9vbGVhblxuKTogQ1NTT2JqZWN0V2l0aExhYmVsID0+ICh7XG4gIGxhYmVsOiAnaW5kaWNhdG9yU2VwYXJhdG9yJyxcbiAgYWxpZ25TZWxmOiAnc3RyZXRjaCcsXG4gIHdpZHRoOiAxLFxuICAuLi4odW5zdHlsZWRcbiAgICA/IHt9XG4gICAgOiB7XG4gICAgICAgIGJhY2tncm91bmRDb2xvcjogaXNEaXNhYmxlZCA/IGNvbG9ycy5uZXV0cmFsMTAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBtYXJnaW5Cb3R0b206IGJhc2VVbml0ICogMixcbiAgICAgICAgbWFyZ2luVG9wOiBiYXNlVW5pdCAqIDIsXG4gICAgICB9KSxcbn0pO1xuXG5leHBvcnQgY29uc3QgSW5kaWNhdG9yU2VwYXJhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogSW5kaWNhdG9yU2VwYXJhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbikgPT4ge1xuICBjb25zdCB7IGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxzcGFuXG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnaW5kaWNhdG9yU2VwYXJhdG9yJywge1xuICAgICAgICAnaW5kaWNhdG9yLXNlcGFyYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAvPlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBMb2FkaW5nXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgbG9hZGluZ0RvdEFuaW1hdGlvbnMgPSBrZXlmcmFtZXNgXG4gIDAlLCA4MCUsIDEwMCUgeyBvcGFjaXR5OiAwOyB9XG4gIDQwJSB7IG9wYWNpdHk6IDE7IH1cbmA7XG5cbmV4cG9ydCBjb25zdCBsb2FkaW5nSW5kaWNhdG9yQ1NTID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICB7XG4gICAgaXNGb2N1c2VkLFxuICAgIHNpemUsXG4gICAgdGhlbWU6IHtcbiAgICAgIGNvbG9ycyxcbiAgICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICB9LFxuICB9OiBMb2FkaW5nSW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdsb2FkaW5nSW5kaWNhdG9yJyxcbiAgZGlzcGxheTogJ2ZsZXgnLFxuICB0cmFuc2l0aW9uOiAnY29sb3IgMTUwbXMnLFxuICBhbGlnblNlbGY6ICdjZW50ZXInLFxuICBmb250U2l6ZTogc2l6ZSxcbiAgbGluZUhlaWdodDogMSxcbiAgbWFyZ2luUmlnaHQ6IHNpemUsXG4gIHRleHRBbGlnbjogJ2NlbnRlcicsXG4gIHZlcnRpY2FsQWxpZ246ICdtaWRkbGUnLFxuICAuLi4odW5zdHlsZWRcbiAgICA/IHt9XG4gICAgOiB7XG4gICAgICAgIGNvbG9yOiBpc0ZvY3VzZWQgPyBjb2xvcnMubmV1dHJhbDYwIDogY29sb3JzLm5ldXRyYWwyMCxcbiAgICAgICAgcGFkZGluZzogYmFzZVVuaXQgKiAyLFxuICAgICAgfSksXG59KTtcblxuaW50ZXJmYWNlIExvYWRpbmdEb3RQcm9wcyB7XG4gIGRlbGF5OiBudW1iZXI7XG4gIG9mZnNldDogYm9vbGVhbjtcbn1cbmNvbnN0IExvYWRpbmdEb3QgPSAoeyBkZWxheSwgb2Zmc2V0IH06IExvYWRpbmdEb3RQcm9wcykgPT4gKFxuICA8c3BhblxuICAgIGNzcz17e1xuICAgICAgYW5pbWF0aW9uOiBgJHtsb2FkaW5nRG90QW5pbWF0aW9uc30gMXMgZWFzZS1pbi1vdXQgJHtkZWxheX1tcyBpbmZpbml0ZTtgLFxuICAgICAgYmFja2dyb3VuZENvbG9yOiAnY3VycmVudENvbG9yJyxcbiAgICAgIGJvcmRlclJhZGl1czogJzFlbScsXG4gICAgICBkaXNwbGF5OiAnaW5saW5lLWJsb2NrJyxcbiAgICAgIG1hcmdpbkxlZnQ6IG9mZnNldCA/ICcxZW0nIDogdW5kZWZpbmVkLFxuICAgICAgaGVpZ2h0OiAnMWVtJyxcbiAgICAgIHZlcnRpY2FsQWxpZ246ICd0b3AnLFxuICAgICAgd2lkdGg6ICcxZW0nLFxuICAgIH19XG4gIC8+XG4pO1xuXG5leHBvcnQgaW50ZXJmYWNlIExvYWRpbmdJbmRpY2F0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIC8qKiBQcm9wcyB0aGF0IHdpbGwgYmUgcGFzc2VkIG9uIHRvIHRoZSBjaGlsZHJlbi4gKi9cbiAgaW5uZXJQcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydkaXYnXTtcbiAgLyoqIFRoZSBmb2N1c2VkIHN0YXRlIG9mIHRoZSBzZWxlY3QuICovXG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbiAgaXNEaXNhYmxlZDogYm9vbGVhbjtcbiAgLyoqIFNldCBzaXplIG9mIHRoZSBjb250YWluZXIuICovXG4gIHNpemU6IG51bWJlcjtcbn1cbmV4cG9ydCBjb25zdCBMb2FkaW5nSW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KHtcbiAgaW5uZXJQcm9wcyxcbiAgaXNSdGwsXG4gIHNpemUgPSA0LFxuICAuLi5yZXN0UHJvcHNcbn06IExvYWRpbmdJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPikgPT4ge1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKFxuICAgICAgICB7IC4uLnJlc3RQcm9wcywgaW5uZXJQcm9wcywgaXNSdGwsIHNpemUgfSxcbiAgICAgICAgJ2xvYWRpbmdJbmRpY2F0b3InLFxuICAgICAgICB7XG4gICAgICAgICAgaW5kaWNhdG9yOiB0cnVlLFxuICAgICAgICAgICdsb2FkaW5nLWluZGljYXRvcic6IHRydWUsXG4gICAgICAgIH1cbiAgICAgICl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MH0gb2Zmc2V0PXtpc1J0bH0gLz5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXsxNjB9IG9mZnNldCAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezMyMH0gb2Zmc2V0PXshaXNSdGx9IC8+XG4gICAgPC9kaXY+XG4gICk7XG59O1xuIl19 */",toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}},LR=function(e){var t=e.size,n=ei(e,jB);return de("svg",ye({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:KB},n))},Ig=function(e){return de(LR,ye({size:20},e),de("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},Qw=function(e){return de(LR,ye({size:20},e),de("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},_R=function(e,t){var n=e.isFocused,r=e.theme,i=r.spacing.baseUnit,l=r.colors;return pe({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?l.neutral60:l.neutral20,padding:2*i,":hover":{color:n?l.neutral80:l.neutral40}})},QB=_R,qB=_R,eD=function(){var e=Xv.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}(Kw||(xg=[` - 0%, 80%, 100% { opacity: 0; } - 40% { opacity: 1; } -`],Cg||(Cg=xg.slice(0)),Kw=Object.freeze(Object.defineProperties(xg,{raw:{value:Object.freeze(Cg)}})))),Sg=function(e){var t=e.delay,n=e.offset;return de("span",{css:Xv({animation:"".concat(eD," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},";label:LoadingDot;","/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW1RSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgUmVhY3ROb2RlIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsganN4LCBrZXlmcmFtZXMgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmltcG9ydCB7XG4gIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lLFxuICBDU1NPYmplY3RXaXRoTGFiZWwsXG4gIEdyb3VwQmFzZSxcbn0gZnJvbSAnLi4vdHlwZXMnO1xuaW1wb3J0IHsgZ2V0U3R5bGVQcm9wcyB9IGZyb20gJy4uL3V0aWxzJztcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBEcm9wZG93biAmIENsZWFyIEljb25zXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgU3ZnID0gKHtcbiAgc2l6ZSxcbiAgLi4ucHJvcHNcbn06IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3ZnJ10gJiB7IHNpemU6IG51bWJlciB9KSA9PiAoXG4gIDxzdmdcbiAgICBoZWlnaHQ9e3NpemV9XG4gICAgd2lkdGg9e3NpemV9XG4gICAgdmlld0JveD1cIjAgMCAyMCAyMFwiXG4gICAgYXJpYS1oaWRkZW49XCJ0cnVlXCJcbiAgICBmb2N1c2FibGU9XCJmYWxzZVwiXG4gICAgY3NzPXt7XG4gICAgICBkaXNwbGF5OiAnaW5saW5lLWJsb2NrJyxcbiAgICAgIGZpbGw6ICdjdXJyZW50Q29sb3InLFxuICAgICAgbGluZUhlaWdodDogMSxcbiAgICAgIHN0cm9rZTogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBzdHJva2VXaWR0aDogMCxcbiAgICB9fVxuICAgIHsuLi5wcm9wc31cbiAgLz5cbik7XG5cbmV4cG9ydCB0eXBlIENyb3NzSWNvblByb3BzID0gSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZT86IG51bWJlciB9O1xuZXhwb3J0IGNvbnN0IENyb3NzSWNvbiA9IChwcm9wczogQ3Jvc3NJY29uUHJvcHMpID0+IChcbiAgPFN2ZyBzaXplPXsyMH0gey4uLnByb3BzfT5cbiAgICA8cGF0aCBkPVwiTTE0LjM0OCAxNC44NDljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDBsLTIuNjUxLTMuMDMwLTIuNjUxIDMuMDI5Yy0wLjQ2OSAwLjQ2OS0xLjIyOSAwLjQ2OS0xLjY5NyAwLTAuNDY5LTAuNDY5LTAuNDY5LTEuMjI5IDAtMS42OTdsMi43NTgtMy4xNS0yLjc1OS0zLjE1MmMtMC40NjktMC40NjktMC40NjktMS4yMjggMC0xLjY5N3MxLjIyOC0wLjQ2OSAxLjY5NyAwbDIuNjUyIDMuMDMxIDIuNjUxLTMuMDMxYzAuNDY5LTAuNDY5IDEuMjI4LTAuNDY5IDEuNjk3IDBzMC40NjkgMS4yMjkgMCAxLjY5N2wtMi43NTggMy4xNTIgMi43NTggMy4xNWMwLjQ2OSAwLjQ2OSAwLjQ2OSAxLjIyOSAwIDEuNjk4elwiIC8+XG4gIDwvU3ZnPlxuKTtcbmV4cG9ydCB0eXBlIERvd25DaGV2cm9uUHJvcHMgPSBKU1guSW50cmluc2ljRWxlbWVudHNbJ3N2ZyddICYgeyBzaXplPzogbnVtYmVyIH07XG5leHBvcnQgY29uc3QgRG93bkNoZXZyb24gPSAocHJvcHM6IERvd25DaGV2cm9uUHJvcHMpID0+IChcbiAgPFN2ZyBzaXplPXsyMH0gey4uLnByb3BzfT5cbiAgICA8cGF0aCBkPVwiTTQuNTE2IDcuNTQ4YzAuNDM2LTAuNDQ2IDEuMDQzLTAuNDgxIDEuNTc2IDBsMy45MDggMy43NDcgMy45MDgtMy43NDdjMC41MzMtMC40ODEgMS4xNDEtMC40NDYgMS41NzQgMCAwLjQzNiAwLjQ0NSAwLjQwOCAxLjE5NyAwIDEuNjE1LTAuNDA2IDAuNDE4LTQuNjk1IDQuNTAyLTQuNjk1IDQuNTAyLTAuMjE3IDAuMjIzLTAuNTAyIDAuMzM1LTAuNzg3IDAuMzM1cy0wLjU3LTAuMTEyLTAuNzg5LTAuMzM1YzAgMC00LjI4Ny00LjA4NC00LjY5NS00LjUwMnMtMC40MzYtMS4xNyAwLTEuNjE1elwiIC8+XG4gIDwvU3ZnPlxuKTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBEcm9wZG93biAmIENsZWFyIEJ1dHRvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5leHBvcnQgaW50ZXJmYWNlIERyb3Bkb3duSW5kaWNhdG9yUHJvcHM8XG4gIE9wdGlvbiA9IHVua25vd24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuID0gYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPiA9IEdyb3VwQmFzZTxPcHRpb24+XG4+IGV4dGVuZHMgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWU8T3B0aW9uLCBJc011bHRpLCBHcm91cD4ge1xuICAvKiogVGhlIGNoaWxkcmVuIHRvIGJlIHJlbmRlcmVkIGluc2lkZSB0aGUgaW5kaWNhdG9yLiAqL1xuICBjaGlsZHJlbj86IFJlYWN0Tm9kZTtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpc0Rpc2FibGVkOiBib29sZWFuO1xufVxuXG5jb25zdCBiYXNlQ1NTID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICB7XG4gICAgaXNGb2N1c2VkLFxuICAgIHRoZW1lOiB7XG4gICAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgICBjb2xvcnMsXG4gICAgfSxcbiAgfTpcbiAgICB8IERyb3Bkb3duSW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbiAgICB8IENsZWFySW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdpbmRpY2F0b3JDb250YWluZXInLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHRyYW5zaXRpb246ICdjb2xvciAxNTBtcycsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBwYWRkaW5nOiBiYXNlVW5pdCAqIDIsXG4gICAgICAgICc6aG92ZXInOiB7XG4gICAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsODAgOiBjb2xvcnMubmV1dHJhbDQwLFxuICAgICAgICB9LFxuICAgICAgfSksXG59KTtcblxuZXhwb3J0IGNvbnN0IGRyb3Bkb3duSW5kaWNhdG9yQ1NTID0gYmFzZUNTUztcbmV4cG9ydCBjb25zdCBEcm9wZG93bkluZGljYXRvciA9IDxcbiAgT3B0aW9uLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPlxuPihcbiAgcHJvcHM6IERyb3Bkb3duSW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbikgPT4ge1xuICBjb25zdCB7IGNoaWxkcmVuLCBpbm5lclByb3BzIH0gPSBwcm9wcztcbiAgcmV0dXJuIChcbiAgICA8ZGl2XG4gICAgICB7Li4uZ2V0U3R5bGVQcm9wcyhwcm9wcywgJ2Ryb3Bkb3duSW5kaWNhdG9yJywge1xuICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICdkcm9wZG93bi1pbmRpY2F0b3InOiB0cnVlLFxuICAgICAgfSl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICB7Y2hpbGRyZW4gfHwgPERvd25DaGV2cm9uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuZXhwb3J0IGludGVyZmFjZSBDbGVhckluZGljYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgLyoqIFRoZSBjaGlsZHJlbiB0byBiZSByZW5kZXJlZCBpbnNpZGUgdGhlIGluZGljYXRvci4gKi9cbiAgY2hpbGRyZW4/OiBSZWFjdE5vZGU7XG4gIC8qKiBQcm9wcyB0aGF0IHdpbGwgYmUgcGFzc2VkIG9uIHRvIHRoZSBjaGlsZHJlbi4gKi9cbiAgaW5uZXJQcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydkaXYnXTtcbiAgLyoqIFRoZSBmb2N1c2VkIHN0YXRlIG9mIHRoZSBzZWxlY3QuICovXG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbn1cblxuZXhwb3J0IGNvbnN0IGNsZWFySW5kaWNhdG9yQ1NTID0gYmFzZUNTUztcbmV4cG9ydCBjb25zdCBDbGVhckluZGljYXRvciA9IDxcbiAgT3B0aW9uLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPlxuPihcbiAgcHJvcHM6IENsZWFySW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbikgPT4ge1xuICBjb25zdCB7IGNoaWxkcmVuLCBpbm5lclByb3BzIH0gPSBwcm9wcztcbiAgcmV0dXJuIChcbiAgICA8ZGl2XG4gICAgICB7Li4uZ2V0U3R5bGVQcm9wcyhwcm9wcywgJ2NsZWFySW5kaWNhdG9yJywge1xuICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICdjbGVhci1pbmRpY2F0b3InOiB0cnVlLFxuICAgICAgfSl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICB7Y2hpbGRyZW4gfHwgPENyb3NzSWNvbiAvPn1cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG5cbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuLy8gU2VwYXJhdG9yXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuZXhwb3J0IGludGVyZmFjZSBJbmRpY2F0b3JTZXBhcmF0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIGlzRGlzYWJsZWQ6IGJvb2xlYW47XG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbiAgaW5uZXJQcm9wcz86IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3BhbiddO1xufVxuXG5leHBvcnQgY29uc3QgaW5kaWNhdG9yU2VwYXJhdG9yQ1NTID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICB7XG4gICAgaXNEaXNhYmxlZCxcbiAgICB0aGVtZToge1xuICAgICAgc3BhY2luZzogeyBiYXNlVW5pdCB9LFxuICAgICAgY29sb3JzLFxuICAgIH0sXG4gIH06IEluZGljYXRvclNlcGFyYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+LFxuICB1bnN0eWxlZDogYm9vbGVhblxuKTogQ1NTT2JqZWN0V2l0aExhYmVsID0+ICh7XG4gIGxhYmVsOiAnaW5kaWNhdG9yU2VwYXJhdG9yJyxcbiAgYWxpZ25TZWxmOiAnc3RyZXRjaCcsXG4gIHdpZHRoOiAxLFxuICAuLi4odW5zdHlsZWRcbiAgICA/IHt9XG4gICAgOiB7XG4gICAgICAgIGJhY2tncm91bmRDb2xvcjogaXNEaXNhYmxlZCA/IGNvbG9ycy5uZXV0cmFsMTAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBtYXJnaW5Cb3R0b206IGJhc2VVbml0ICogMixcbiAgICAgICAgbWFyZ2luVG9wOiBiYXNlVW5pdCAqIDIsXG4gICAgICB9KSxcbn0pO1xuXG5leHBvcnQgY29uc3QgSW5kaWNhdG9yU2VwYXJhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogSW5kaWNhdG9yU2VwYXJhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbikgPT4ge1xuICBjb25zdCB7IGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxzcGFuXG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnaW5kaWNhdG9yU2VwYXJhdG9yJywge1xuICAgICAgICAnaW5kaWNhdG9yLXNlcGFyYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAvPlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBMb2FkaW5nXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgbG9hZGluZ0RvdEFuaW1hdGlvbnMgPSBrZXlmcmFtZXNgXG4gIDAlLCA4MCUsIDEwMCUgeyBvcGFjaXR5OiAwOyB9XG4gIDQwJSB7IG9wYWNpdHk6IDE7IH1cbmA7XG5cbmV4cG9ydCBjb25zdCBsb2FkaW5nSW5kaWNhdG9yQ1NTID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICB7XG4gICAgaXNGb2N1c2VkLFxuICAgIHNpemUsXG4gICAgdGhlbWU6IHtcbiAgICAgIGNvbG9ycyxcbiAgICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICB9LFxuICB9OiBMb2FkaW5nSW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdsb2FkaW5nSW5kaWNhdG9yJyxcbiAgZGlzcGxheTogJ2ZsZXgnLFxuICB0cmFuc2l0aW9uOiAnY29sb3IgMTUwbXMnLFxuICBhbGlnblNlbGY6ICdjZW50ZXInLFxuICBmb250U2l6ZTogc2l6ZSxcbiAgbGluZUhlaWdodDogMSxcbiAgbWFyZ2luUmlnaHQ6IHNpemUsXG4gIHRleHRBbGlnbjogJ2NlbnRlcicsXG4gIHZlcnRpY2FsQWxpZ246ICdtaWRkbGUnLFxuICAuLi4odW5zdHlsZWRcbiAgICA/IHt9XG4gICAgOiB7XG4gICAgICAgIGNvbG9yOiBpc0ZvY3VzZWQgPyBjb2xvcnMubmV1dHJhbDYwIDogY29sb3JzLm5ldXRyYWwyMCxcbiAgICAgICAgcGFkZGluZzogYmFzZVVuaXQgKiAyLFxuICAgICAgfSksXG59KTtcblxuaW50ZXJmYWNlIExvYWRpbmdEb3RQcm9wcyB7XG4gIGRlbGF5OiBudW1iZXI7XG4gIG9mZnNldDogYm9vbGVhbjtcbn1cbmNvbnN0IExvYWRpbmdEb3QgPSAoeyBkZWxheSwgb2Zmc2V0IH06IExvYWRpbmdEb3RQcm9wcykgPT4gKFxuICA8c3BhblxuICAgIGNzcz17e1xuICAgICAgYW5pbWF0aW9uOiBgJHtsb2FkaW5nRG90QW5pbWF0aW9uc30gMXMgZWFzZS1pbi1vdXQgJHtkZWxheX1tcyBpbmZpbml0ZTtgLFxuICAgICAgYmFja2dyb3VuZENvbG9yOiAnY3VycmVudENvbG9yJyxcbiAgICAgIGJvcmRlclJhZGl1czogJzFlbScsXG4gICAgICBkaXNwbGF5OiAnaW5saW5lLWJsb2NrJyxcbiAgICAgIG1hcmdpbkxlZnQ6IG9mZnNldCA/ICcxZW0nIDogdW5kZWZpbmVkLFxuICAgICAgaGVpZ2h0OiAnMWVtJyxcbiAgICAgIHZlcnRpY2FsQWxpZ246ICd0b3AnLFxuICAgICAgd2lkdGg6ICcxZW0nLFxuICAgIH19XG4gIC8+XG4pO1xuXG5leHBvcnQgaW50ZXJmYWNlIExvYWRpbmdJbmRpY2F0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIC8qKiBQcm9wcyB0aGF0IHdpbGwgYmUgcGFzc2VkIG9uIHRvIHRoZSBjaGlsZHJlbi4gKi9cbiAgaW5uZXJQcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydkaXYnXTtcbiAgLyoqIFRoZSBmb2N1c2VkIHN0YXRlIG9mIHRoZSBzZWxlY3QuICovXG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbiAgaXNEaXNhYmxlZDogYm9vbGVhbjtcbiAgLyoqIFNldCBzaXplIG9mIHRoZSBjb250YWluZXIuICovXG4gIHNpemU6IG51bWJlcjtcbn1cbmV4cG9ydCBjb25zdCBMb2FkaW5nSW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KHtcbiAgaW5uZXJQcm9wcyxcbiAgaXNSdGwsXG4gIHNpemUgPSA0LFxuICAuLi5yZXN0UHJvcHNcbn06IExvYWRpbmdJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPikgPT4ge1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKFxuICAgICAgICB7IC4uLnJlc3RQcm9wcywgaW5uZXJQcm9wcywgaXNSdGwsIHNpemUgfSxcbiAgICAgICAgJ2xvYWRpbmdJbmRpY2F0b3InLFxuICAgICAgICB7XG4gICAgICAgICAgaW5kaWNhdG9yOiB0cnVlLFxuICAgICAgICAgICdsb2FkaW5nLWluZGljYXRvcic6IHRydWUsXG4gICAgICAgIH1cbiAgICAgICl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MH0gb2Zmc2V0PXtpc1J0bH0gLz5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXsxNjB9IG9mZnNldCAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezMyMH0gb2Zmc2V0PXshaXNSdGx9IC8+XG4gICAgPC9kaXY+XG4gICk7XG59O1xuIl19 */")})},tD=function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,i=e.innerRef,l=e.innerProps,u=e.menuIsOpen;return de("div",ye({ref:i},ct(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":r,"control--menu-is-open":u}),l,{"aria-disabled":n||void 0}),t)},nD=["data"],rD=function(e){var t=e.children,n=e.cx,r=e.getStyles,i=e.getClassNames,l=e.Heading,u=e.headingProps,d=e.innerProps,s=e.label,c=e.theme,p=e.selectProps;return de("div",ye({},ct(e,"group",{group:!0}),d),de(l,ye({},u,{selectProps:p,theme:c,getStyles:r,getClassNames:i,cx:n}),s),de("div",null,t))},iD=["innerRef","isDisabled","isHidden","inputClassName"],NR={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},oD={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":pe({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},NR)},lD=function(e){return pe({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},NR)},qw=function(e){var t=e.children,n=e.innerProps;return de("div",n,t)},aD=function(e){var t=e.children,n=e.components,r=e.data,i=e.innerProps,l=e.isDisabled,u=e.removeProps,d=e.selectProps,s=n.Container,c=n.Label,p=n.Remove;return de(s,{data:r,innerProps:pe(pe({},ct(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":l})),i),selectProps:d},de(c,{data:r,innerProps:pe({},ct(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:d},t),de(p,{data:r,innerProps:pe(pe({},ct(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},u),selectProps:d}))},uD={ClearIndicator:function(e){var t=e.children,n=e.innerProps;return de("div",ye({},ct(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||de(Ig,null))},Control:tD,DropdownIndicator:function(e){var t=e.children,n=e.innerProps;return de("div",ye({},ct(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||de(Qw,null))},DownChevron:Qw,CrossIcon:Ig,Group:rD,GroupHeading:function(e){var t=Yw(e);t.data;var n=ei(t,nD);return de("div",ye({},ct(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var t=e.children,n=e.innerProps;return de("div",ye({},ct(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function(e){var t=e.innerProps;return de("span",ye({},t,ct(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:function(e){var t=e.cx,n=e.value,r=Yw(e),i=r.innerRef,l=r.isDisabled,u=r.isHidden,d=r.inputClassName,s=ei(r,iD);return de("div",ye({},ct(e,"input",{"input-container":!0}),{"data-value":n||""}),de("input",ye({className:t({input:!0},d),ref:i,style:lD(u),disabled:l},s)))},LoadingIndicator:function(e){var t=e.innerProps,n=e.isRtl,r=e.size,i=r===void 0?4:r,l=ei(e,JB);return de("div",ye({},ct(pe(pe({},l),{},{innerProps:t,isRtl:n,size:i}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),de(Sg,{delay:0,offset:n}),de(Sg,{delay:160,offset:!0}),de(Sg,{delay:320,offset:!n}))},Menu:ZB,MenuList:function(e){var t=e.children,n=e.innerProps,r=e.innerRef,i=e.isMulti;return de("div",ye({},ct(e,"menuList",{"menu-list":!0,"menu-list--is-multi":i}),{ref:r},n),t)},MenuPortal:function(e){var t=e.appendTo,n=e.children,r=e.controlElement,i=e.innerProps,l=e.menuPlacement,u=e.menuPosition,d=E.useRef(null),s=E.useRef(null),c=ii(E.useState(PR(l)),2),p=c[0],h=c[1],y=E.useMemo(function(){return{setPortalPlacement:h}},[]),m=ii(E.useState(null),2),b=m[0],w=m[1],I=E.useCallback(function(){if(r){var P=function(T){var _=T.getBoundingClientRect();return{bottom:_.bottom,height:_.height,left:_.left,right:_.right,top:_.top,width:_.width}}(r),O=u==="fixed"?0:window.pageYOffset,M=P[p]+O;M===(b==null?void 0:b.offset)&&P.left===(b==null?void 0:b.rect.left)&&P.width===(b==null?void 0:b.rect.width)||w({offset:M,rect:P})}},[r,u,p,b==null?void 0:b.offset,b==null?void 0:b.rect.left,b==null?void 0:b.rect.width]);Kh(function(){I()},[I]);var v=E.useCallback(function(){typeof s.current=="function"&&(s.current(),s.current=null),r&&d.current&&(s.current=NB(r,d.current,I,{elementResize:"ResizeObserver"in window}))},[r,I]);Kh(function(){v()},[v]);var x=E.useCallback(function(P){d.current=P,v()},[v]);if(!t&&u!=="fixed"||!b)return null;var S=de("div",ye({ref:x},ct(pe(pe({},e),{},{offset:b.offset,position:u,rect:b.rect}),"menuPortal",{"menu-portal":!0}),i),n);return de(TR.Provider,{value:y},t?Jm.createPortal(S,t):S)},LoadingMessage:function(e){var t=e.children,n=t===void 0?"Loading...":t,r=e.innerProps,i=ei(e,zB);return de("div",ye({},ct(pe(pe({},i),{},{children:n,innerProps:r}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),r),n)},NoOptionsMessage:function(e){var t=e.children,n=t===void 0?"No options":t,r=e.innerProps,i=ei(e,HB);return de("div",ye({},ct(pe(pe({},i),{},{children:n,innerProps:r}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),r),n)},MultiValue:aD,MultiValueContainer:qw,MultiValueLabel:qw,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return de("div",ye({role:"button"},n),t||de(Ig,{size:14}))},Option:function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,i=e.isSelected,l=e.innerRef,u=e.innerProps;return de("div",ye({},ct(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":r,"option--is-selected":i}),{ref:l,"aria-disabled":n},u),t)},Placeholder:function(e){var t=e.children,n=e.innerProps;return de("div",ye({},ct(e,"placeholder",{placeholder:!0}),n),t)},SelectContainer:function(e){var t=e.children,n=e.innerProps,r=e.isDisabled,i=e.isRtl;return de("div",ye({},ct(e,"container",{"--is-disabled":r,"--is-rtl":i}),n),t)},SingleValue:function(e){var t=e.children,n=e.isDisabled,r=e.innerProps;return de("div",ye({},ct(e,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),r),t)},ValueContainer:function(e){var t=e.children,n=e.innerProps,r=e.isMulti,i=e.hasValue;return de("div",ye({},ct(e,"valueContainer",{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":i}),n),t)}},ex=Number.isNaN||function(e){return typeof e=="number"&&e!=e};function sD(e,t){if(e.length!==t.length)return!1;for(var n=0;n1?"s":""," ").concat(i.join(","),", selected.");case"select-option":return"option ".concat(r,l?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,r=e.options,i=e.label,l=i===void 0?"":i,u=e.selectValue,d=e.isDisabled,s=e.isSelected,c=e.isAppleDevice,p=function(m,b){return m&&m.length?"".concat(m.indexOf(b)+1," of ").concat(m.length):""};if(t==="value"&&u)return"value ".concat(l," focused, ").concat(p(u,n),".");if(t==="menu"&&c){var h=d?" disabled":"",y="".concat(s?" selected":"").concat(h);return"".concat(l).concat(y,", ").concat(p(r,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},fD=function(e){var t=e.ariaSelection,n=e.focusedOption,r=e.focusedValue,i=e.focusableOptions,l=e.isFocused,u=e.selectValue,d=e.selectProps,s=e.id,c=e.isAppleDevice,p=d.ariaLiveMessages,h=d.getOptionLabel,y=d.inputValue,m=d.isMulti,b=d.isOptionDisabled,w=d.isSearchable,I=d.menuIsOpen,v=d.options,x=d.screenReaderStatus,S=d.tabSelectsValue,P=d.isLoading,O=d["aria-label"],M=d["aria-live"],T=E.useMemo(function(){return pe(pe({},dD),p||{})},[p]),_=E.useMemo(function(){var ie,F="";if(t&&T.onChange){var G=t.option,re=t.options,U=t.removedValue,ee=t.removedValues,ne=t.value,Y=U||G||(ie=ne,Array.isArray(ie)?null:ie),se=Y?h(Y):"",Ie=re||ee||void 0,ke=Ie?Ie.map(h):[],Le=pe({isDisabled:Y&&b(Y,u),label:se,labels:ke},t);F=T.onChange(Le)}return F},[t,T,b,u,h]),z=E.useMemo(function(){var ie="",F=n||r,G=!!(n&&u&&u.includes(n));if(F&&T.onFocus){var re={focused:F,label:h(F),isDisabled:b(F,u),isSelected:G,options:i,context:F===n?"menu":"value",selectValue:u,isAppleDevice:c};ie=T.onFocus(re)}return ie},[n,r,h,b,T,i,u,c]),H=E.useMemo(function(){var ie="";if(I&&v.length&&!P&&T.onFilter){var F=x({count:i.length});ie=T.onFilter({inputValue:y,resultsMessage:F})}return ie},[i,y,I,T,v,x,P]),J=(t==null?void 0:t.action)==="initial-input-focus",Q=E.useMemo(function(){var ie="";if(T.guidance){var F=r?"value":I?"menu":"input";ie=T.guidance({"aria-label":O,context:F,isDisabled:n&&b(n,u),isMulti:m,isSearchable:w,tabSelectsValue:S,isInitialFocus:J})}return ie},[O,n,r,m,b,w,I,T,u,S,J]),ae=de(E.Fragment,null,de("span",{id:"aria-selection"},_),de("span",{id:"aria-focused"},z),de("span",{id:"aria-results"},H),de("span",{id:"aria-guidance"},Q));return de(E.Fragment,null,de(tx,{id:s},J&&ae),de(tx,{"aria-live":M,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},l&&!J&&ae))},Rg=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],pD=new RegExp("["+Rg.map(function(e){return e.letters}).join("")+"]","g"),FR={},Eg=0;Eg1?i-1:0),u=1;u"u"||!window.document||!window.document.createElement),ya=0,jo={capture:!1,passive:!1},bD=function(e){var t=e.target;return t.ownerDocument.activeElement&&t.ownerDocument.activeElement.blur()},wD={name:"bp8cua-ScrollManager",styles:"position:fixed;left:0;bottom:0;right:0;top:0;label:ScrollManager;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNjcm9sbE1hbmFnZXIudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW9EVSIsImZpbGUiOiJTY3JvbGxNYW5hZ2VyLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgRnJhZ21lbnQsIFJlYWN0RWxlbWVudCwgUmVmQ2FsbGJhY2ssIE1vdXNlRXZlbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgdXNlU2Nyb2xsQ2FwdHVyZSBmcm9tICcuL3VzZVNjcm9sbENhcHR1cmUnO1xuaW1wb3J0IHVzZVNjcm9sbExvY2sgZnJvbSAnLi91c2VTY3JvbGxMb2NrJztcblxuaW50ZXJmYWNlIFByb3BzIHtcbiAgcmVhZG9ubHkgY2hpbGRyZW46IChyZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PikgPT4gUmVhY3RFbGVtZW50O1xuICByZWFkb25seSBsb2NrRW5hYmxlZDogYm9vbGVhbjtcbiAgcmVhZG9ubHkgY2FwdHVyZUVuYWJsZWQ6IGJvb2xlYW47XG4gIHJlYWRvbmx5IG9uQm90dG9tQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9ubHkgb25Cb3R0b21MZWF2ZT86IChldmVudDogV2hlZWxFdmVudCB8IFRvdWNoRXZlbnQpID0+IHZvaWQ7XG4gIHJlYWRvbmx5IG9uVG9wQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9ubHkgb25Ub3BMZWF2ZT86IChldmVudDogV2hlZWxFdmVudCB8IFRvdWNoRXZlbnQpID0+IHZvaWQ7XG59XG5cbmNvbnN0IGJsdXJTZWxlY3RJbnB1dCA9IChldmVudDogTW91c2VFdmVudDxIVE1MRGl2RWxlbWVudD4pID0+IHtcbiAgY29uc3QgZWxlbWVudCA9IGV2ZW50LnRhcmdldCBhcyBIVE1MRGl2RWxlbWVudDtcbiAgcmV0dXJuIChcbiAgICBlbGVtZW50Lm93bmVyRG9jdW1lbnQuYWN0aXZlRWxlbWVudCAmJlxuICAgIChlbGVtZW50Lm93bmVyRG9jdW1lbnQuYWN0aXZlRWxlbWVudCBhcyBIVE1MRWxlbWVudCkuYmx1cigpXG4gICk7XG59O1xuXG5leHBvcnQgZGVmYXVsdCBmdW5jdGlvbiBTY3JvbGxNYW5hZ2VyKHtcbiAgY2hpbGRyZW4sXG4gIGxvY2tFbmFibGVkLFxuICBjYXB0dXJlRW5hYmxlZCA9IHRydWUsXG4gIG9uQm90dG9tQXJyaXZlLFxuICBvbkJvdHRvbUxlYXZlLFxuICBvblRvcEFycml2ZSxcbiAgb25Ub3BMZWF2ZSxcbn06IFByb3BzKSB7XG4gIGNvbnN0IHNldFNjcm9sbENhcHR1cmVUYXJnZXQgPSB1c2VTY3JvbGxDYXB0dXJlKHtcbiAgICBpc0VuYWJsZWQ6IGNhcHR1cmVFbmFibGVkLFxuICAgIG9uQm90dG9tQXJyaXZlLFxuICAgIG9uQm90dG9tTGVhdmUsXG4gICAgb25Ub3BBcnJpdmUsXG4gICAgb25Ub3BMZWF2ZSxcbiAgfSk7XG4gIGNvbnN0IHNldFNjcm9sbExvY2tUYXJnZXQgPSB1c2VTY3JvbGxMb2NrKHsgaXNFbmFibGVkOiBsb2NrRW5hYmxlZCB9KTtcblxuICBjb25zdCB0YXJnZXRSZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PiA9IChlbGVtZW50KSA9PiB7XG4gICAgc2V0U2Nyb2xsQ2FwdHVyZVRhcmdldChlbGVtZW50KTtcbiAgICBzZXRTY3JvbGxMb2NrVGFyZ2V0KGVsZW1lbnQpO1xuICB9O1xuXG4gIHJldHVybiAoXG4gICAgPEZyYWdtZW50PlxuICAgICAge2xvY2tFbmFibGVkICYmIChcbiAgICAgICAgPGRpdlxuICAgICAgICAgIG9uQ2xpY2s9e2JsdXJTZWxlY3RJbnB1dH1cbiAgICAgICAgICBjc3M9e3sgcG9zaXRpb246ICdmaXhlZCcsIGxlZnQ6IDAsIGJvdHRvbTogMCwgcmlnaHQ6IDAsIHRvcDogMCB9fVxuICAgICAgICAvPlxuICAgICAgKX1cbiAgICAgIHtjaGlsZHJlbih0YXJnZXRSZWYpfVxuICAgIDwvRnJhZ21lbnQ+XG4gICk7XG59XG4iXX0= */",toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}};function xD(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,i=function(u){var d=u.isEnabled,s=u.onBottomArrive,c=u.onBottomLeave,p=u.onTopArrive,h=u.onTopLeave,y=E.useRef(!1),m=E.useRef(!1),b=E.useRef(0),w=E.useRef(null),I=E.useCallback(function(M,T){if(w.current!==null){var _=w.current,z=_.scrollTop,H=_.scrollHeight,J=_.clientHeight,Q=w.current,ae=T>0,ie=H-J-z,F=!1;ie>T&&y.current&&(c&&c(M),y.current=!1),ae&&m.current&&(h&&h(M),m.current=!1),ae&&T>ie?(s&&!y.current&&s(M),Q.scrollTop=H,F=!0,y.current=!0):!ae&&-T>z&&(p&&!m.current&&p(M),Q.scrollTop=0,F=!0,m.current=!0),F&&yD(M)}},[s,c,p,h]),v=E.useCallback(function(M){I(M,M.deltaY)},[I]),x=E.useCallback(function(M){b.current=M.changedTouches[0].clientY},[]),S=E.useCallback(function(M){var T=b.current-M.changedTouches[0].clientY;I(M,T)},[I]),P=E.useCallback(function(M){if(M){var T=!!WB&&{passive:!1};M.addEventListener("wheel",v,T),M.addEventListener("touchstart",x,T),M.addEventListener("touchmove",S,T)}},[S,x,v]),O=E.useCallback(function(M){M&&(M.removeEventListener("wheel",v,!1),M.removeEventListener("touchstart",x,!1),M.removeEventListener("touchmove",S,!1))},[S,x,v]);return E.useEffect(function(){if(d){var M=w.current;return P(M),function(){O(M)}}},[d,P,O]),function(M){w.current=M}}({isEnabled:r===void 0||r,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),l=function(u){var d=u.isEnabled,s=u.accountForScrollbars,c=s===void 0||s,p=E.useRef({}),h=E.useRef(null),y=E.useCallback(function(b){if(sx){var w=document.body,I=w&&w.style;if(c&&rx.forEach(function(P){var O=I&&I[P];p.current[P]=O}),c&&ya<1){var v=parseInt(p.current.paddingRight,10)||0,x=document.body?document.body.clientWidth:0,S=window.innerWidth-x+v||0;Object.keys(ix).forEach(function(P){var O=ix[P];I&&(I[P]=O)}),I&&(I.paddingRight="".concat(S,"px"))}w&&ux()&&(w.addEventListener("touchmove",ox,jo),b&&(b.addEventListener("touchstart",ax,jo),b.addEventListener("touchmove",lx,jo))),ya+=1}},[c]),m=E.useCallback(function(b){if(sx){var w=document.body,I=w&&w.style;ya=Math.max(ya-1,0),c&&ya<1&&rx.forEach(function(v){var x=p.current[v];I&&(I[v]=x)}),w&&ux()&&(w.removeEventListener("touchmove",ox,jo),b&&(b.removeEventListener("touchstart",ax,jo),b.removeEventListener("touchmove",lx,jo)))}},[c]);return E.useEffect(function(){if(d){var b=h.current;return y(b),function(){m(b)}}},[d,y,m]),function(b){h.current=b}}({isEnabled:n});return de(E.Fragment,null,n&&de("div",{onClick:bD,css:wD}),t(function(u){i(u),l(u)}))}var CD={name:"5kkxb2-requiredInput-RequiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%;label:RequiredInput;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlJlcXVpcmVkSW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWNJIiwiZmlsZSI6IlJlcXVpcmVkSW5wdXQudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiLyoqIEBqc3gganN4ICovXG5pbXBvcnQgeyBGb2N1c0V2ZW50SGFuZGxlciwgRnVuY3Rpb25Db21wb25lbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmNvbnN0IFJlcXVpcmVkSW5wdXQ6IEZ1bmN0aW9uQ29tcG9uZW50PHtcbiAgcmVhZG9ubHkgbmFtZT86IHN0cmluZztcbiAgcmVhZG9ubHkgb25Gb2N1czogRm9jdXNFdmVudEhhbmRsZXI8SFRNTElucHV0RWxlbWVudD47XG59PiA9ICh7IG5hbWUsIG9uRm9jdXMgfSkgPT4gKFxuICA8aW5wdXRcbiAgICByZXF1aXJlZFxuICAgIG5hbWU9e25hbWV9XG4gICAgdGFiSW5kZXg9ey0xfVxuICAgIGFyaWEtaGlkZGVuPVwidHJ1ZVwiXG4gICAgb25Gb2N1cz17b25Gb2N1c31cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAncmVxdWlyZWRJbnB1dCcsXG4gICAgICBvcGFjaXR5OiAwLFxuICAgICAgcG9pbnRlckV2ZW50czogJ25vbmUnLFxuICAgICAgcG9zaXRpb246ICdhYnNvbHV0ZScsXG4gICAgICBib3R0b206IDAsXG4gICAgICBsZWZ0OiAwLFxuICAgICAgcmlnaHQ6IDAsXG4gICAgICB3aWR0aDogJzEwMCUnLFxuICAgIH19XG4gICAgLy8gUHJldmVudCBgU3dpdGNoaW5nIGZyb20gdW5jb250cm9sbGVkIHRvIGNvbnRyb2xsZWRgIGVycm9yXG4gICAgdmFsdWU9XCJcIlxuICAgIG9uQ2hhbmdlPXsoKSA9PiB7fX1cbiAgLz5cbik7XG5cbmV4cG9ydCBkZWZhdWx0IFJlcXVpcmVkSW5wdXQ7XG4iXX0= */",toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}},ID=function(e){var t=e.name,n=e.onFocus;return de("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:CD,value:"",onChange:function(){}})};function Qh(e){var t;return typeof window<"u"&&window.navigator!=null&&e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform)}function DR(){return Qh(/^Mac/i)}function SD(){return Qh(/^iPhone/i)||Qh(/^iPad/i)||DR()&&navigator.maxTouchPoints>1}var RD,ED={clearIndicator:qB,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},control:function(e,t){var n=e.isDisabled,r=e.isFocused,i=e.theme,l=i.colors,u=i.borderRadius;return pe({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:i.spacing.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:n?l.neutral5:l.neutral0,borderColor:n?l.neutral10:r?l.primary:l.neutral20,borderRadius:u,borderStyle:"solid",borderWidth:1,boxShadow:r?"0 0 0 1px ".concat(l.primary):void 0,"&:hover":{borderColor:r?l.primary:l.neutral30}})},dropdownIndicator:QB,group:function(e,t){var n=e.theme.spacing;return t?{}:{paddingBottom:2*n.baseUnit,paddingTop:2*n.baseUnit}},groupHeading:function(e,t){var n=e.theme,r=n.colors,i=n.spacing;return pe({label:"group",cursor:"default",display:"block"},t?{}:{color:r.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*i.baseUnit,paddingRight:3*i.baseUnit,textTransform:"uppercase"})},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e,t){var n=e.isDisabled,r=e.theme,i=r.spacing.baseUnit,l=r.colors;return pe({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:n?l.neutral10:l.neutral20,marginBottom:2*i,marginTop:2*i})},input:function(e,t){var n=e.isDisabled,r=e.value,i=e.theme,l=i.spacing,u=i.colors;return pe(pe({visibility:n?"hidden":"visible",transform:r?"translateZ(0)":""},oD),t?{}:{margin:l.baseUnit/2,paddingBottom:l.baseUnit/2,paddingTop:l.baseUnit/2,color:u.neutral80})},loadingIndicator:function(e,t){var n=e.isFocused,r=e.size,i=e.theme,l=i.colors,u=i.spacing.baseUnit;return pe({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:r,lineHeight:1,marginRight:r,textAlign:"center",verticalAlign:"middle"},t?{}:{color:n?l.neutral60:l.neutral20,padding:2*u})},loadingMessage:YB,menu:function(e,t){var n,r=e.placement,i=e.theme,l=i.borderRadius,u=i.spacing,d=i.colors;return pe((Ra(n={label:"menu"},function(s){return s?{bottom:"top",top:"bottom"}[s]:"bottom"}(r),"100%"),Ra(n,"position","absolute"),Ra(n,"width","100%"),Ra(n,"zIndex",1),n),t?{}:{backgroundColor:d.neutral0,borderRadius:l,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:u.menuGutter,marginTop:u.menuGutter})},menuList:function(e,t){var n=e.maxHeight,r=e.theme.spacing.baseUnit;return pe({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:r,paddingTop:r})},menuPortal:function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},multiValue:function(e,t){var n=e.theme,r=n.spacing,i=n.borderRadius,l=n.colors;return pe({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:l.neutral10,borderRadius:i/2,margin:r.baseUnit/2})},multiValueLabel:function(e,t){var n=e.theme,r=n.borderRadius,i=n.colors,l=e.cropWithEllipsis;return pe({overflow:"hidden",textOverflow:l||l===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:r/2,color:i.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},multiValueRemove:function(e,t){var n=e.theme,r=n.spacing,i=n.borderRadius,l=n.colors,u=e.isFocused;return pe({alignItems:"center",display:"flex"},t?{}:{borderRadius:i/2,backgroundColor:u?l.dangerLight:void 0,paddingLeft:r.baseUnit,paddingRight:r.baseUnit,":hover":{backgroundColor:l.dangerLight,color:l.danger}})},noOptionsMessage:UB,option:function(e,t){var n=e.isDisabled,r=e.isFocused,i=e.isSelected,l=e.theme,u=l.spacing,d=l.colors;return pe({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:i?d.primary:r?d.primary25:"transparent",color:n?d.neutral20:i?d.neutral0:"inherit",padding:"".concat(2*u.baseUnit,"px ").concat(3*u.baseUnit,"px"),":active":{backgroundColor:n?void 0:i?d.primary:d.primary50}})},placeholder:function(e,t){var n=e.theme,r=n.spacing,i=n.colors;return pe({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:i.neutral50,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},singleValue:function(e,t){var n=e.isDisabled,r=e.theme,i=r.spacing,l=r.colors;return pe({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:n?l.neutral40:l.neutral80,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},valueContainer:function(e,t){var n=e.theme.spacing,r=e.isMulti,i=e.hasValue,l=e.selectProps.controlShouldRenderValue;return pe({alignItems:"center",display:r&&i&&l?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(2*n.baseUnit,"px")})}},Mg={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},AD={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:Jw(),captureMenuScroll:!Jw(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=pe({ignoreCase:!0,ignoreAccents:!0,stringify:hD,trim:!0,matchFrom:"any"},RD),r=n.ignoreCase,i=n.ignoreAccents,l=n.stringify,u=n.trim,d=n.matchFrom,s=u?nx(t):t,c=u?nx(l(e)):l(e);return r&&(s=s.toLowerCase(),c=c.toLowerCase()),i&&(s=gD(s),c=BR(c)),d==="start"?c.substr(0,s.length)===s:c.indexOf(s)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(t!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function cx(e,t,n,r){return{type:"option",data:t,isDisabled:WR(e,t,n),isSelected:VR(e,t,n),label:GR(e,t),value:od(e,t),index:r}}function Hs(e,t){return e.options.map(function(n,r){if("options"in n){var i=n.options.map(function(u,d){return cx(e,u,t,d)}).filter(function(u){return px(e,u)});return i.length>0?{type:"group",data:n,options:i,index:r}:void 0}var l=cx(e,n,t,r);return px(e,l)?l:void 0}).filter(VB)}function dx(e){return e.reduce(function(t,n){return n.type==="group"?t.push.apply(t,Fv(n.options.map(function(r){return r.data}))):t.push(n.data),t},[])}function fx(e,t){return e.reduce(function(n,r){return r.type==="group"?n.push.apply(n,Fv(r.options.map(function(i){return{data:i.data,id:"".concat(t,"-").concat(r.index,"-").concat(i.index)}}))):n.push({data:r.data,id:"".concat(t,"-").concat(r.index)}),n},[])}function px(e,t){var n=e.inputValue,r=n===void 0?"":n,i=t.data,l=t.isSelected,u=t.label,d=t.value;return(!zR(e)||!l)&&HR(e,{label:u,value:d,data:i},r)}var Pg=function(e,t){var n;return((n=e.find(function(r){return r.data===t}))===null||n===void 0?void 0:n.id)||null},GR=function(e,t){return e.getOptionLabel(t)},od=function(e,t){return e.getOptionValue(t)};function WR(e,t,n){return typeof e.isOptionDisabled=="function"&&e.isOptionDisabled(t,n)}function VR(e,t,n){if(n.indexOf(t)>-1)return!0;if(typeof e.isOptionSelected=="function")return e.isOptionSelected(t,n);var r=od(e,t);return n.some(function(i){return od(e,i)===r})}function HR(e,t,n){return!e.filterOption||e.filterOption(t,n)}var zR=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return t===void 0?n:t},kD=1,$R=function(e){(function(s,c){if(typeof c!="function"&&c!==null)throw new TypeError("Super expression must either be null or a function");s.prototype=Object.create(c&&c.prototype,{constructor:{value:s,writable:!0,configurable:!0}}),Object.defineProperty(s,"prototype",{writable:!1}),c&&zh(s,c)})(d,E.Component);var t,n,r,i,l,u=(t=d,n=uR(),function(){var s,c=ed(t);if(n){var p=ed(this).constructor;s=Reflect.construct(c,arguments,p)}else s=c.apply(this,arguments);return $F(this,s)});function d(s){var c;if(function(m,b){if(!(m instanceof b))throw new TypeError("Cannot call a class as a function")}(this,d),(c=u.call(this,s)).state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},c.blockOptionHover=!1,c.isComposing=!1,c.commonProps=void 0,c.initialTouchX=0,c.initialTouchY=0,c.openAfterFocus=!1,c.scrollToFocusedOptionOnUpdate=!1,c.userIsDragging=void 0,c.isAppleDevice=DR()||SD(),c.controlRef=null,c.getControlRef=function(m){c.controlRef=m},c.focusedOptionRef=null,c.getFocusedOptionRef=function(m){c.focusedOptionRef=m},c.menuListRef=null,c.getMenuListRef=function(m){c.menuListRef=m},c.inputRef=null,c.getInputRef=function(m){c.inputRef=m},c.focus=c.focusInput,c.blur=c.blurInput,c.onChange=function(m,b){var w=c.props,I=w.onChange,v=w.name;b.name=v,c.ariaOnChange(m,b),I(m,b)},c.setValue=function(m,b,w){var I=c.props,v=I.closeMenuOnSelect,x=I.isMulti,S=I.inputValue;c.onInputChange("",{action:"set-value",prevInputValue:S}),v&&(c.setState({inputIsHiddenAfterUpdate:!x}),c.onMenuClose()),c.setState({clearFocusValueOnUpdate:!0}),c.onChange(m,{action:b,option:w})},c.selectOption=function(m){var b=c.props,w=b.blurInputOnSelect,I=b.isMulti,v=b.name,x=c.state.selectValue,S=I&&c.isOptionSelected(m,x),P=c.isOptionDisabled(m,x);if(S){var O=c.getOptionValue(m);c.setValue(x.filter(function(M){return c.getOptionValue(M)!==O}),"deselect-option",m)}else{if(P)return void c.ariaOnChange(m,{action:"select-option",option:m,name:v});I?c.setValue([].concat(Fv(x),[m]),"select-option",m):c.setValue(m,"select-option")}w&&c.blurInput()},c.removeValue=function(m){var b=c.props.isMulti,w=c.state.selectValue,I=c.getOptionValue(m),v=w.filter(function(S){return c.getOptionValue(S)!==I}),x=Vs(b,v,v[0]||null);c.onChange(x,{action:"remove-value",removedValue:m}),c.focusInput()},c.clearValue=function(){var m=c.state.selectValue;c.onChange(Vs(c.props.isMulti,[],null),{action:"clear",removedValues:m})},c.popValue=function(){var m=c.props.isMulti,b=c.state.selectValue,w=b[b.length-1],I=b.slice(0,b.length-1),v=Vs(m,I,I[0]||null);c.onChange(v,{action:"pop-value",removedValue:w})},c.getFocusedOptionId=function(m){return Pg(c.state.focusableOptionsWithIds,m)},c.getFocusableOptionsWithIds=function(){return fx(Hs(c.props,c.state.selectValue),c.getElementId("option"))},c.getValue=function(){return c.state.selectValue},c.cx=function(){for(var m=arguments.length,b=new Array(m),w=0;w5||v>5}},c.onTouchEnd=function(m){c.userIsDragging||(c.controlRef&&!c.controlRef.contains(m.target)&&c.menuListRef&&!c.menuListRef.contains(m.target)&&c.blurInput(),c.initialTouchX=0,c.initialTouchY=0)},c.onControlTouchEnd=function(m){c.userIsDragging||c.onControlMouseDown(m)},c.onClearIndicatorTouchEnd=function(m){c.userIsDragging||c.onClearIndicatorMouseDown(m)},c.onDropdownIndicatorTouchEnd=function(m){c.userIsDragging||c.onDropdownIndicatorMouseDown(m)},c.handleInputChange=function(m){var b=c.props.inputValue,w=m.currentTarget.value;c.setState({inputIsHiddenAfterUpdate:!1}),c.onInputChange(w,{action:"input-change",prevInputValue:b}),c.props.menuIsOpen||c.onMenuOpen()},c.onInputFocus=function(m){c.props.onFocus&&c.props.onFocus(m),c.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(c.openAfterFocus||c.props.openMenuOnFocus)&&c.openMenu("first"),c.openAfterFocus=!1},c.onInputBlur=function(m){var b=c.props.inputValue;c.menuListRef&&c.menuListRef.contains(document.activeElement)?c.inputRef.focus():(c.props.onBlur&&c.props.onBlur(m),c.onInputChange("",{action:"input-blur",prevInputValue:b}),c.onMenuClose(),c.setState({focusedValue:null,isFocused:!1}))},c.onOptionHover=function(m){if(!c.blockOptionHover&&c.state.focusedOption!==m){var b=c.getFocusableOptions().indexOf(m);c.setState({focusedOption:m,focusedOptionId:b>-1?c.getFocusedOptionId(m):null})}},c.shouldHideSelectedOptions=function(){return zR(c.props)},c.onValueInputFocus=function(m){m.preventDefault(),m.stopPropagation(),c.focus()},c.onKeyDown=function(m){var b=c.props,w=b.isMulti,I=b.backspaceRemovesValue,v=b.escapeClearsValue,x=b.inputValue,S=b.isClearable,P=b.isDisabled,O=b.menuIsOpen,M=b.onKeyDown,T=b.tabSelectsValue,_=b.openMenuOnFocus,z=c.state,H=z.focusedOption,J=z.focusedValue,Q=z.selectValue;if(!(P||typeof M=="function"&&(M(m),m.defaultPrevented))){switch(c.blockOptionHover=!0,m.key){case"ArrowLeft":if(!w||x)return;c.focusValue("previous");break;case"ArrowRight":if(!w||x)return;c.focusValue("next");break;case"Delete":case"Backspace":if(x)return;if(J)c.removeValue(J);else{if(!I)return;w?c.popValue():S&&c.clearValue()}break;case"Tab":if(c.isComposing||m.shiftKey||!O||!T||!H||_&&c.isOptionSelected(H,Q))return;c.selectOption(H);break;case"Enter":if(m.keyCode===229)break;if(O){if(!H||c.isComposing)return;c.selectOption(H);break}return;case"Escape":O?(c.setState({inputIsHiddenAfterUpdate:!1}),c.onInputChange("",{action:"menu-close",prevInputValue:x}),c.onMenuClose()):S&&v&&c.clearValue();break;case" ":if(x)return;if(!O){c.openMenu("first");break}if(!H)return;c.selectOption(H);break;case"ArrowUp":O?c.focusOption("up"):c.openMenu("last");break;case"ArrowDown":O?c.focusOption("down"):c.openMenu("first");break;case"PageUp":if(!O)return;c.focusOption("pageup");break;case"PageDown":if(!O)return;c.focusOption("pagedown");break;case"Home":if(!O)return;c.focusOption("first");break;case"End":if(!O)return;c.focusOption("last");break;default:return}m.preventDefault()}},c.state.instancePrefix="react-select-"+(c.props.instanceId||++kD),c.state.selectValue=Uw(s.value),s.menuIsOpen&&c.state.selectValue.length){var p=c.getFocusableOptionsWithIds(),h=c.buildFocusableOptions(),y=h.indexOf(c.state.selectValue[0]);c.state.focusableOptionsWithIds=p,c.state.focusedOption=h[y],c.state.focusedOptionId=Pg(p,h[y])}return c}return r=d,i=[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&jw(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(s){var c=this.props,p=c.isDisabled,h=c.menuIsOpen,y=this.state.isFocused;(y&&!p&&s.isDisabled||y&&h&&!s.menuIsOpen)&&this.focusInput(),y&&p&&!s.isDisabled?this.setState({isFocused:!1},this.onMenuClose):y||p||!s.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(jw(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(s,c){this.props.onInputChange(s,c)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(s){var c=this,p=this.state,h=p.selectValue,y=p.isFocused,m=this.buildFocusableOptions(),b=s==="first"?0:m.length-1;if(!this.props.isMulti){var w=m.indexOf(h[0]);w>-1&&(b=w)}this.scrollToFocusedOptionOnUpdate=!(y&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:m[b],focusedOptionId:this.getFocusedOptionId(m[b])},function(){return c.onMenuOpen()})}},{key:"focusValue",value:function(s){var c=this.state,p=c.selectValue,h=c.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var y=p.indexOf(h);h||(y=-1);var m=p.length-1,b=-1;if(p.length){switch(s){case"previous":b=y===0?0:y===-1?m:y-1;break;case"next":y>-1&&y0&&arguments[0]!==void 0?arguments[0]:"first",c=this.props.pageSize,p=this.state.focusedOption,h=this.getFocusableOptions();if(h.length){var y=0,m=h.indexOf(p);p||(m=-1),s==="up"?y=m>0?m-1:h.length-1:s==="down"?y=(m+1)%h.length:s==="pageup"?(y=m-c)<0&&(y=0):s==="pagedown"?(y=m+c)>h.length-1&&(y=h.length-1):s==="last"&&(y=h.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:h[y],focusedValue:null,focusedOptionId:this.getFocusedOptionId(h[y])})}}},{key:"getTheme",value:function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(Mg):pe(pe({},Mg),this.props.theme):Mg}},{key:"getCommonProps",value:function(){var s=this.clearValue,c=this.cx,p=this.getStyles,h=this.getClassNames,y=this.getValue,m=this.selectOption,b=this.setValue,w=this.props,I=w.isMulti,v=w.isRtl,x=w.options;return{clearValue:s,cx:c,getStyles:p,getClassNames:h,getValue:y,hasValue:this.hasValue(),isMulti:I,isRtl:v,options:x,selectOption:m,selectProps:w,setValue:b,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var s=this.props,c=s.isClearable,p=s.isMulti;return c===void 0?p:c}},{key:"isOptionDisabled",value:function(s,c){return WR(this.props,s,c)}},{key:"isOptionSelected",value:function(s,c){return VR(this.props,s,c)}},{key:"filterOption",value:function(s,c){return HR(this.props,s,c)}},{key:"formatOptionLabel",value:function(s,c){if(typeof this.props.formatOptionLabel=="function"){var p=this.props.inputValue,h=this.state.selectValue;return this.props.formatOptionLabel(s,{context:c,inputValue:p,selectValue:h})}return this.getOptionLabel(s)}},{key:"formatGroupLabel",value:function(s){return this.props.formatGroupLabel(s)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var s=this.props,c=s.isDisabled,p=s.isSearchable,h=s.inputId,y=s.inputValue,m=s.tabIndex,b=s.form,w=s.menuIsOpen,I=s.required,v=this.getComponents().Input,x=this.state,S=x.inputIsHidden,P=x.ariaSelection,O=this.commonProps,M=h||this.getElementId("input"),T=pe(pe(pe({"aria-autocomplete":"list","aria-expanded":w,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":I,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},w&&{"aria-controls":this.getElementId("listbox")}),!p&&{"aria-readonly":!0}),this.hasValue()?(P==null?void 0:P.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return p?E.createElement(v,ye({},O,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:M,innerRef:this.getInputRef,isDisabled:c,isHidden:S,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:m,form:b,type:"text",value:y},T)):E.createElement(vD,ye({id:M,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:rd,onFocus:this.onInputFocus,disabled:c,tabIndex:m,inputMode:"none",form:b,value:""},T))}},{key:"renderPlaceholderOrValue",value:function(){var s=this,c=this.getComponents(),p=c.MultiValue,h=c.MultiValueContainer,y=c.MultiValueLabel,m=c.MultiValueRemove,b=c.SingleValue,w=c.Placeholder,I=this.commonProps,v=this.props,x=v.controlShouldRenderValue,S=v.isDisabled,P=v.isMulti,O=v.inputValue,M=v.placeholder,T=this.state,_=T.selectValue,z=T.focusedValue,H=T.isFocused;if(!this.hasValue()||!x)return O?null:E.createElement(w,ye({},I,{key:"placeholder",isDisabled:S,isFocused:H,innerProps:{id:this.getElementId("placeholder")}}),M);if(P)return _.map(function(Q,ae){var ie=Q===z,F="".concat(s.getOptionLabel(Q),"-").concat(s.getOptionValue(Q));return E.createElement(p,ye({},I,{components:{Container:h,Label:y,Remove:m},isFocused:ie,isDisabled:S,key:F,index:ae,removeProps:{onClick:function(){return s.removeValue(Q)},onTouchEnd:function(){return s.removeValue(Q)},onMouseDown:function(G){G.preventDefault()}},data:Q}),s.formatOptionLabel(Q,"value"))});if(O)return null;var J=_[0];return E.createElement(b,ye({},I,{data:J,isDisabled:S}),this.formatOptionLabel(J,"value"))}},{key:"renderClearIndicator",value:function(){var s=this.getComponents().ClearIndicator,c=this.commonProps,p=this.props,h=p.isDisabled,y=p.isLoading,m=this.state.isFocused;if(!this.isClearable()||!s||h||!this.hasValue()||y)return null;var b={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return E.createElement(s,ye({},c,{innerProps:b,isFocused:m}))}},{key:"renderLoadingIndicator",value:function(){var s=this.getComponents().LoadingIndicator,c=this.commonProps,p=this.props,h=p.isDisabled,y=p.isLoading,m=this.state.isFocused;return s&&y?E.createElement(s,ye({},c,{innerProps:{"aria-hidden":"true"},isDisabled:h,isFocused:m})):null}},{key:"renderIndicatorSeparator",value:function(){var s=this.getComponents(),c=s.DropdownIndicator,p=s.IndicatorSeparator;if(!c||!p)return null;var h=this.commonProps,y=this.props.isDisabled,m=this.state.isFocused;return E.createElement(p,ye({},h,{isDisabled:y,isFocused:m}))}},{key:"renderDropdownIndicator",value:function(){var s=this.getComponents().DropdownIndicator;if(!s)return null;var c=this.commonProps,p=this.props.isDisabled,h=this.state.isFocused,y={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return E.createElement(s,ye({},c,{innerProps:y,isDisabled:p,isFocused:h}))}},{key:"renderMenu",value:function(){var s=this,c=this.getComponents(),p=c.Group,h=c.GroupHeading,y=c.Menu,m=c.MenuList,b=c.MenuPortal,w=c.LoadingMessage,I=c.NoOptionsMessage,v=c.Option,x=this.commonProps,S=this.state.focusedOption,P=this.props,O=P.captureMenuScroll,M=P.inputValue,T=P.isLoading,_=P.loadingMessage,z=P.minMenuHeight,H=P.maxMenuHeight,J=P.menuIsOpen,Q=P.menuPlacement,ae=P.menuPosition,ie=P.menuPortalTarget,F=P.menuShouldBlockScroll,G=P.menuShouldScrollIntoView,re=P.noOptionsMessage,U=P.onMenuScrollToTop,ee=P.onMenuScrollToBottom;if(!J)return null;var ne,Y=function(ce,Me){var $e=ce.type,yt=ce.data,Dn=ce.isDisabled,an=ce.isSelected,Qt=ce.label,Ao=ce.value,_t=S===yt,Ir=Dn?void 0:function(){return s.onOptionHover(yt)},wf=Dn?void 0:function(){return s.selectOption(yt)},Gn="".concat(s.getElementId("option"),"-").concat(Me),Ru={id:Gn,onClick:wf,onMouseMove:Ir,onMouseOver:Ir,tabIndex:-1,role:"option","aria-selected":s.isAppleDevice?void 0:an};return E.createElement(v,ye({},x,{innerProps:Ru,data:yt,isDisabled:Dn,isSelected:an,key:Gn,label:Qt,type:$e,value:Ao,isFocused:_t,innerRef:_t?s.getFocusedOptionRef:void 0}),s.formatOptionLabel(ce.data,"menu"))};if(this.hasOptions())ne=this.getCategorizedOptions().map(function(ce){if(ce.type==="group"){var Me=ce.data,$e=ce.options,yt=ce.index,Dn="".concat(s.getElementId("group"),"-").concat(yt),an="".concat(Dn,"-heading");return E.createElement(p,ye({},x,{key:Dn,data:Me,options:$e,Heading:h,headingProps:{id:an,data:ce.data},label:s.formatGroupLabel(ce.data)}),ce.options.map(function(Qt){return Y(Qt,"".concat(yt,"-").concat(Qt.index))}))}if(ce.type==="option")return Y(ce,"".concat(ce.index))});else if(T){var se=_({inputValue:M});if(se===null)return null;ne=E.createElement(w,x,se)}else{var Ie=re({inputValue:M});if(Ie===null)return null;ne=E.createElement(I,x,Ie)}var ke={minMenuHeight:z,maxMenuHeight:H,menuPlacement:Q,menuPosition:ae,menuShouldScrollIntoView:G},Le=E.createElement(XB,ye({},x,ke),function(ce){var Me=ce.ref,$e=ce.placerProps,yt=$e.placement,Dn=$e.maxHeight;return E.createElement(y,ye({},x,ke,{innerRef:Me,innerProps:{onMouseDown:s.onMenuMouseDown,onMouseMove:s.onMenuMouseMove},isLoading:T,placement:yt}),E.createElement(xD,{captureEnabled:O,onTopArrive:U,onBottomArrive:ee,lockEnabled:F},function(an){return E.createElement(m,ye({},x,{innerRef:function(Qt){s.getMenuListRef(Qt),an(Qt)},innerProps:{role:"listbox","aria-multiselectable":x.isMulti,id:s.getElementId("listbox")},isLoading:T,maxHeight:Dn,focusedOption:S}),ne)}))});return ie||ae==="fixed"?E.createElement(b,ye({},x,{appendTo:ie,controlElement:this.controlRef,menuPlacement:Q,menuPosition:ae}),Le):Le}},{key:"renderFormField",value:function(){var s=this,c=this.props,p=c.delimiter,h=c.isDisabled,y=c.isMulti,m=c.name,b=c.required,w=this.state.selectValue;if(b&&!this.hasValue()&&!h)return E.createElement(ID,{name:m,onFocus:this.onValueInputFocus});if(m&&!h){if(y){if(p){var I=w.map(function(S){return s.getOptionValue(S)}).join(p);return E.createElement("input",{name:m,type:"hidden",value:I})}var v=w.length>0?w.map(function(S,P){return E.createElement("input",{key:"i-".concat(P),name:m,type:"hidden",value:s.getOptionValue(S)})}):E.createElement("input",{name:m,type:"hidden",value:""});return E.createElement("div",null,v)}var x=w[0]?this.getOptionValue(w[0]):"";return E.createElement("input",{name:m,type:"hidden",value:x})}}},{key:"renderLiveRegion",value:function(){var s=this.commonProps,c=this.state,p=c.ariaSelection,h=c.focusedOption,y=c.focusedValue,m=c.isFocused,b=c.selectValue,w=this.getFocusableOptions();return E.createElement(fD,ye({},s,{id:this.getElementId("live-region"),ariaSelection:p,focusedOption:h,focusedValue:y,isFocused:m,selectValue:b,focusableOptions:w,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var s=this.getComponents(),c=s.Control,p=s.IndicatorsContainer,h=s.SelectContainer,y=s.ValueContainer,m=this.props,b=m.className,w=m.id,I=m.isDisabled,v=m.menuIsOpen,x=this.state.isFocused,S=this.commonProps=this.getCommonProps();return E.createElement(h,ye({},S,{className:b,innerProps:{id:w,onKeyDown:this.onKeyDown},isDisabled:I,isFocused:x}),this.renderLiveRegion(),E.createElement(c,ye({},S,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:I,isFocused:x,menuIsOpen:v}),E.createElement(y,ye({},S,{isDisabled:I}),this.renderPlaceholderOrValue(),this.renderInput()),E.createElement(p,ye({},S,{isDisabled:I}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],l=[{key:"getDerivedStateFromProps",value:function(s,c){var p=c.prevProps,h=c.clearFocusValueOnUpdate,y=c.inputIsHiddenAfterUpdate,m=c.ariaSelection,b=c.isFocused,w=c.prevWasFocused,I=c.instancePrefix,v=s.options,x=s.value,S=s.menuIsOpen,P=s.inputValue,O=s.isMulti,M=Uw(x),T={};if(p&&(x!==p.value||v!==p.options||S!==p.menuIsOpen||P!==p.inputValue)){var _=S?function(F,G){return dx(Hs(F,G))}(s,M):[],z=S?fx(Hs(s,M),"".concat(I,"-option")):[],H=h?function(F,G){var re=F.focusedValue,U=F.selectValue.indexOf(re);if(U>-1){if(G.indexOf(re)>-1)return re;if(U-1?re:G[0]}(c,_);T={selectValue:M,focusedOption:J,focusedOptionId:Pg(z,J),focusableOptionsWithIds:z,focusedValue:H,clearFocusValueOnUpdate:!1}}var Q=y!=null&&s!==p?{inputIsHidden:y,inputIsHiddenAfterUpdate:void 0}:{},ae=m,ie=b&&w;return b&&!ie&&(ae={value:Vs(O,M,M[0]||null),options:M,action:"initial-input-focus"},ie=!w),(m==null?void 0:m.action)==="initial-input-focus"&&(ae=null),pe(pe(pe({},T),Q),{},{prevProps:s,ariaSelection:ae,prevWasFocused:ie})}}],i&&ww(r.prototype,i),l&&ww(r,l),Object.defineProperty(r,"prototype",{writable:!1}),d}();$R.defaultProps=AD;var MD=E.forwardRef(function(e,t){var n=function(r){var i=r.defaultInputValue,l=i===void 0?"":i,u=r.defaultMenuIsOpen,d=u!==void 0&&u,s=r.defaultValue,c=s===void 0?null:s,p=r.inputValue,h=r.menuIsOpen,y=r.onChange,m=r.onInputChange,b=r.onMenuClose,w=r.onMenuOpen,I=r.value,v=ei(r,zF),x=ii(E.useState(p!==void 0?p:l),2),S=x[0],P=x[1],O=ii(E.useState(h!==void 0?h:d),2),M=O[0],T=O[1],_=ii(E.useState(I!==void 0?I:c),2),z=_[0],H=_[1],J=E.useCallback(function(U,ee){typeof y=="function"&&y(U,ee),H(U)},[y]),Q=E.useCallback(function(U,ee){var ne;typeof m=="function"&&(ne=m(U,ee)),P(ne!==void 0?ne:U)},[m]),ae=E.useCallback(function(){typeof w=="function"&&w(),T(!0)},[w]),ie=E.useCallback(function(){typeof b=="function"&&b(),T(!1)},[b]),F=p!==void 0?p:S,G=h!==void 0?h:M,re=I!==void 0?I:z;return pe(pe({},v),{},{inputValue:F,menuIsOpen:G,onChange:J,onInputChange:Q,onMenuClose:ie,onMenuOpen:ae,value:re})}(e);return E.createElement($R,ye({ref:t},n))}),PD=MD,TD=function(){function e(){}return e.prototype.getCompatibleCell=function(t){var n;try{n=Je(t,"selectedValue","string")}catch{n=void 0}var r,i,l=Je(t,"values","object"),u=n?parseFloat(n):NaN,d=!0;try{d=Je(t,"isDisabled","boolean")}catch{d=!1}try{r=Je(t,"inputValue","string")}catch{r=void 0}try{i=Je(t,"isOpen","boolean")}catch{i=!1}var s=n||"";return k(k({},t),{selectedValue:n,text:s,value:u,values:l,isDisabled:d,isOpen:i,inputValue:r})},e.prototype.update=function(t,n){var r=t.values.some(function(i){return i.value===n.text})?n.text:void 0;return this.getCompatibleCell(k(k({},t),{selectedValue:r,isOpen:n.isOpen,inputValue:n.inputValue}))},e.prototype.getClassName=function(t,n){var r=t.isOpen?"open":"closed";return"".concat(t.className?t.className:"").concat(r)},e.prototype.handleKeyDown=function(t,n,r,i,l,u,d){if((n===$.SPACE||n===$.ENTER)&&!i)return{cell:this.getCompatibleCell(k(k({},t),{isOpen:!t.isOpen})),enableEditMode:!1};var s=Wr(u,i,d);return r||l||!Gr(n)||i&&n===$.SPACE?{cell:t,enableEditMode:!1}:{cell:this.getCompatibleCell(k(k({},t),{inputValue:s,isOpen:!t.isOpen})),enableEditMode:!1}},e.prototype.handleCompositionEnd=function(t,n){return{cell:k(k({},t),{inputValue:n,isOpen:!t.isOpen}),enableEditMode:!1}},e.prototype.render=function(t,n,r){var i=this;return E.createElement(OD,{onCellChanged:function(l){return r(i.getCompatibleCell(l),!0)},cell:t})},e}(),OD=function(e){var t=e.onCellChanged,n=e.cell,r=E.useRef(null),i=E.useState(n.inputValue),l=i[0],u=i[1],d=E.useMemo(function(){return n.values.find(function(s){return s.value===n.text})},[n.text,n.values]);return E.useEffect(function(){n.isOpen&&r.current&&(r.current.focus(),u(n.inputValue))},[n.isOpen,n.inputValue]),E.createElement("div",{style:{width:"100%"},onPointerDown:function(s){return t(k(k({},n),{isOpen:!0}))}},E.createElement(PD,k({},n.inputValue&&{inputValue:l,defaultInputValue:l,onInputChange:function(s){return u(s)}},{isSearchable:!0,ref:r},n.isOpen!==void 0&&{menuIsOpen:n.isOpen},{onMenuClose:function(){return t(k(k({},n),{isOpen:!n.isOpen,inputValue:void 0}))},onMenuOpen:function(){return t(k(k({},n),{isOpen:!0}))},onChange:function(s){return t(k(k({},n),{selectedValue:s.value,isOpen:!1,inputValue:void 0}))},blurInputOnSelect:!0,defaultValue:d,value:d,isDisabled:n.isDisabled,options:n.values,onKeyDown:function(s){if(s.stopPropagation(),s.key==="Escape")return r.current.blur(),t(k(k({},n),{isOpen:!1,inputValue:void 0}))},components:{Option:LD,Menu:_D},styles:{container:function(s){var c;return k(k(k({},s),{width:"100%",height:"100%"}),(c=n.styles)===null||c===void 0?void 0:c.container)},control:function(s){var c;return k(k(k({},s),{border:"none",borderColor:"transparent",minHeight:"25px",background:"transparent",boxShadow:"none"}),(c=n.styles)===null||c===void 0?void 0:c.control)},indicatorsContainer:function(s){var c;return k(k(k({},s),{paddingTop:"0px"}),(c=n.styles)===null||c===void 0?void 0:c.indicatorsContainer)},dropdownIndicator:function(s){var c;return k(k(k({},s),{padding:"0px 4px"}),(c=n.styles)===null||c===void 0?void 0:c.dropdownIndicator)},singleValue:function(s){var c;return k(k(k({},s),{color:"inherit"}),(c=n.styles)===null||c===void 0?void 0:c.singleValue)},indicatorSeparator:function(s){var c;return k(k(k({},s),{marginTop:"4px",marginBottom:"4px"}),(c=n.styles)===null||c===void 0?void 0:c.indicatorSeparator)},input:function(s){var c;return k(k(k({},s),{padding:0}),(c=n.styles)===null||c===void 0?void 0:c.input)},valueContainer:function(s){var c;return k(k(k({},s),{padding:"0 8px"}),(c=n.styles)===null||c===void 0?void 0:c.valueContainer)}}})))},LD=function(e){var t=e.innerProps,n=e.label,r=e.isSelected,i=e.isFocused,l=e.isDisabled;return E.createElement("div",k({},t,{onPointerDown:function(u){return u.stopPropagation()},className:"rg-dropdown-option".concat(r?" selected":"").concat(i?" focused":"").concat(l?" disabled":"")}),n)},_D=function(e){var t=e.innerProps,n=e.children;return E.createElement("div",k({},t,{className:"rg-dropdown-menu",onPointerDown:function(r){return r.stopPropagation()}}),n)},XR={text:new VF,number:new WF,header:new DF,checkbox:new LF,date:new NF,email:new FF,time:new HF,chevron:new BF,dropdown:new TD},ND=function(e){var t=[],n=0;return e.forEach(function(r,i){if(e[i-1]){var l=e[i-1];r.idx-l.idx==1?t[n]?t[n].push(r):t.push([l,r]):(t.push([r]),n+=1)}else t.push([r])}),t},FD=function(e){var t=[],n=0;return e.forEach(function(r,i){if(e[i-1]){var l=e[i-1];r.idx-l.idx==1?t[n]?t[n].push(r):t.push([l,r]):(t.push([r]),n+=1)}else t.push([r])}),t};function BD(e,t){var n=VD(e);zD(e,t)&&(t=n(t)(KD)),t=n(t)($D),t=n(t)(YD),t=n(t)(jD);var r=HD(e,t);return t=n(t)(nR),t=n(t)(JD),r&&(t=n(t)(XD)),t=n(t)(DD),t=n(t)(ZD),r&&(t=n(t)(UD)),t=n(t)(QD),WD(e,t)&&(t=n(t)(qD)),t=n(t)(GD)}function DD(e,t){return t=t.selectionMode==="row"&&t.selectedIds.length>0?function(n){var r=n.cellMatrix.first.column,i=n.cellMatrix.last.column,l=n.cellMatrix.rows.filter(function(s){return n.selectedIds.includes(s.rowId)}).sort(function(s,c){return s.idx-c.idx}),u=ND(l).map(function(s){return n.cellMatrix.getRange(tt(s[0],r),tt(s[s.length-1],i))}),d=n.selectedRanges.length-1;return n.focusedLocation&&u.forEach(function(s,c){s.rows.forEach(function(p){var h;((h=n.focusedLocation)===null||h===void 0?void 0:h.row.rowId)===p.rowId&&(d=c)})}),k(k({},n),{selectionMode:"row",activeSelectedRangeIdx:d,selectedRanges:Tt([],u),selectedIndexes:l.map(function(s){return s.idx}),selectedIds:l.map(function(s){return s.rowId})})}(t):t.selectionMode==="column"&&t.selectedIds.length>0?function(n){var r=n.cellMatrix.first.row,i=n.cellMatrix.last.row,l=n.cellMatrix.columns.filter(function(s){return n.selectedIds.includes(s.columnId)}).sort(function(s,c){return s.idx-c.idx}),u=FD(l).map(function(s){return n.cellMatrix.getRange(tt(r,s[0]),tt(i,s[s.length-1]))}),d=n.selectedRanges.length-1;return n.focusedLocation&&u.forEach(function(s,c){s.columns.forEach(function(p){var h;((h=n.focusedLocation)===null||h===void 0?void 0:h.column.columnId)===p.columnId&&(d=c)})}),k(k({},n),{selectionMode:"column",activeSelectedRangeIdx:d,selectedRanges:Tt([],u),selectedIndexes:l.map(function(s){return s.idx}),selectedIds:l.map(function(s){return s.columnId})})}(t):k(k({},t),{selectedRanges:Tt([],t.selectedRanges).map(function(n){return t.cellMatrix.validateRange(n)})})}function GD(e,t){return k(k({},t),{enableFillHandle:!!e.enableFillHandle,enableRangeSelection:!!e.enableRangeSelection,enableColumnSelection:!!e.enableColumnSelection,enableRowSelection:!!e.enableRowSelection})}var WD=function(e,t){var n,r,i,l;return((n=e.focusLocation)===null||n===void 0?void 0:n.columnId)!==((r=t.focusedLocation)===null||r===void 0?void 0:r.column.columnId)||((i=e.focusLocation)===null||i===void 0?void 0:i.rowId)!==((l=t.focusedLocation)===null||l===void 0?void 0:l.row.rowId)||e.stickyRightColumns!==void 0&&e.stickyRightColumns!==t.rightStickyColumns||e.stickyBottomRows!==void 0&&e.stickyBottomRows!==t.bottomStickyRows},VD=function(e){return function(t){return function(n){return n(e,t)}}},HD=function(e,t){return!t.cellMatrix||e!==t.cellMatrix.props||e.stickyLeftColumns!==void 0&&e.stickyLeftColumns!==t.leftStickyColumns||e.stickyTopRows!==void 0&&e.stickyTopRows!==t.topStickyRows||e.stickyBottomRows!==void 0&&e.stickyBottomRows!==t.bottomStickyRows||e.stickyRightColumns!==void 0&&e.stickyRightColumns!==t.rightStickyColumns},zD=function(e,t){var n;return e.highlights!==((n=t.props)===null||n===void 0?void 0:n.highlights)};function $D(e,t){return t.props!==e&&(t=k(k({},t),{props:e})),t}function XD(e,t){var n=new rR;return k(k({},t),{cellMatrix:n.setProps(e).fillRowsAndCols({leftStickyColumns:t.leftStickyColumns||0,topStickyRows:t.topStickyRows||0,rightStickyColumns:t.rightStickyColumns||0,bottomStickyRows:t.bottomStickyRows||0}).setRangesToRenderLookup().fillSticky({leftStickyColumns:t.leftStickyColumns||0,topStickyRows:t.topStickyRows||0,rightStickyColumns:t.rightStickyColumns||0,bottomStickyRows:t.bottomStickyRows||0}).fillScrollableRange({leftStickyColumns:t.leftStickyColumns||0,topStickyRows:t.topStickyRows||0,rightStickyColumns:t.rightStickyColumns||0,bottomStickyRows:t.bottomStickyRows||0}).setEdgeLocations().getCellMatrix()})}function ZD(e,t){return t.cellMatrix.columns.length>0&&t.focusedLocation&&!t.currentlyEditedCell&&(t=k(k({},t),{focusedLocation:t.cellMatrix.validateLocation(t.focusedLocation)})),t}function UD(e,t){return t.visibleRange&&(t=cc(t)),t}function YD(e,t){return k(k({},t),{cellTemplates:k(k({},XR),e.customCellTemplates)})}function jD(e,t){return k(k({},t),{enableGroupIdRender:!!e.enableGroupIdRender})}function JD(e,t){return k(k({},t),{disableVirtualScrolling:!!e.disableVirtualScrolling})}function KD(e,t){var n,r,i=(n=e.highlights)===null||n===void 0?void 0:n.filter(function(l){return t.cellMatrix.rowIndexLookup[l.rowId]!==void 0&&t.cellMatrix.columnIndexLookup[l.columnId]!==void 0});return(i==null?void 0:i.length)!==((r=e.highlights)===null||r===void 0?void 0:r.length)&&console.error('Data inconsistency in ReactGrid "highlights" prop'),k(k({},t),{highlightLocations:i||[]})}function QD(e,t){var n=e.initialFocusLocation,r=!!t.focusedLocation;if(n&&!t.focusedLocation)if(ZR(t,n))console.error('Data inconsistency in ReactGrid "initialFocusLocation" prop');else{var i=t.cellMatrix.getLocationById(n.rowId,n.columnId);t=vn(t,i)}var l=t.focusedLocation;return!r&&l&&(t=df(t,l)),t}function qD(e,t){var n=e.focusLocation,r=!!t.focusedLocation;if(n)if(ZR(t,n))console.error('Data inconsistency in ReactGrid "focusLocation" prop');else{var i=t.cellMatrix.getLocationById(n.rowId,n.columnId);t=vn(t,i)}var l=t.focusedLocation;return!r&&l&&e.focusLocation&&t.selectedRanges.length<=1&&(t=df(t,l)),t}function ZR(e,t){return!(e.cellMatrix.columnIndexLookup[t.columnId]!==void 0&&e.cellMatrix.rowIndexLookup[t.rowId]!==void 0)}function eG(e){return e.cellMatrix.ranges.stickyTopRange.height>0}function tG(e){return e.cellMatrix.ranges.stickyLeftRange.width>0}function nG(e){return!!(e.visibleRange&&e.visibleRange.width>0)}function rG(e){return!!(e.cellMatrix.scrollableRange.height>0&&e.cellMatrix.scrollableRange.first.column&&e.cellMatrix.scrollableRange.first.row&&e.cellMatrix.scrollableRange.last.row&&e.visibleRange&&e.visibleRange.height>0)}function iG(e){return e.cellMatrix.ranges.stickyBottomRange.height>0&&e.cellMatrix.rows.length>0}function oG(e){return e.cellMatrix.ranges.stickyRightRange.width>0}var UR=E.createContext({}),gx=function(e){var t=e.children,n=e.state;return Et.createElement(UR.Provider,{value:n},t)},Ki=function(){return Et.useContext(UR)},lG=function(e){var t,n,r,i,l,u,d,s,c,p,h,y,m,b,w=e.cellRenderer,I=Ki(),v=I.cellMatrix,x=eG(I),S=rG(I),P=tG(I),O=nG(I),M=iG(I),T=oG(I);if(!(x||S||P||O))return null;var _=void 0,z=I.visibleRange;S&&(_=v.scrollableRange.slice(z,"rows"));var H=v.ranges.stickyTopRange.height?-v.ranges.stickyBottomRange.height:0,J=v.ranges.stickyLeftRange.width?-v.ranges.stickyRightRange.width:0,Q=v.ranges.stickyRightRange.width?-v.ranges.stickyLeftRange.width:0,ae=v.ranges.stickyBottomRange.height?-v.ranges.stickyTopRange.height:0,ie=v.scrollableRange.rows.length!==0?v.ranges.stickyTopRange.height:0,F=v.scrollableRange.columns.length!==0?v.ranges.stickyLeftRange.width:0,G=v.scrollableRange.rows.length!==0?v.ranges.stickyBottomRange.height:0,re=v.scrollableRange.columns.length!==0?v.ranges.stickyRightRange.width:0;return E.createElement(E.Fragment,null,E.createElement(Jr,{renderChildren:S&&O,className:"rg-pane-center-middle",style:{position:"relative",width:"calc(100% - ".concat(v.ranges.stickyLeftRange.width+v.ranges.stickyRightRange.width,"px)"),height:v.scrollableRange.height,marginLeft:J,marginRight:Q,marginTop:H,marginBottom:ae,order:4}},E.createElement(Kr,{state:I,range:Lg(_)(z),borders:{bottom:!M,right:!T,left:!P,top:!x},cellRenderer:w})),E.createElement(zs,{renderCondition:P,className:"shadow-left",zIndex:2,style:{width:v.ranges.stickyLeftRange.width,height:v.height,marginTop:-v.height,order:9}}),E.createElement(zs,{renderCondition:T,className:"shadow-right",zIndex:2,style:{width:v.ranges.stickyRightRange.width,height:v.height,marginLeft:-v.ranges.stickyRightRange.width,marginTop:x||M?-v.height:0,order:x||M?12:8}}),E.createElement(zs,{renderCondition:x,className:"shadow-top",zIndex:1,style:{width:!((t=I.props)===null||t===void 0)&&t.enableFullWidthHeader?"calc(100%)":v.width,height:v.ranges.stickyTopRange.height,marginTop:-v.height,order:10}}),E.createElement(zs,{renderCondition:M,className:"shadow-bottom",zIndex:1,style:{width:!((n=I.props)===null||n===void 0)&&n.enableFullWidthHeader?"calc(100%)":v.width,height:v.ranges.stickyBottomRange.height,marginTop:-v.ranges.stickyBottomRange.height,order:11}}),E.createElement(Jr,{renderChildren:O&&M,className:"rg-pane-bottom",style:{width:"calc(100% - ".concat(v.ranges.stickyLeftRange.width+v.ranges.stickyRightRange.width,"px)"),height:v.ranges.stickyBottomRange.height,marginLeft:J,marginRight:Q,marginTop:ie,order:7}},E.createElement(Kr,{state:I,range:Lg(v.ranges.stickyBottomRange)(z),borders:{top:!0,bottom:!0,right:!T,left:!P},cellRenderer:w})),E.createElement(Jr,{renderChildren:S&&T||!_,className:"rg-pane-right",style:{height:v.scrollableRange.height,width:v.width-v.ranges.stickyLeftRange.width-v.scrollableRange.width,marginTop:H,marginBottom:ae,marginLeft:F,order:5}},E.createElement(Kr,{state:I,range:Jo(v.ranges.stickyRightRange)(_||v.ranges.stickyLeftRange),borders:{left:!0,top:!x,bottom:!M},cellRenderer:w})),E.createElement(Jr,{renderChildren:x&&O,className:"rg-pane-top",style:{width:"calc(100% - ".concat(v.ranges.stickyLeftRange.width+v.ranges.stickyRightRange.width,"px)"),height:v.ranges.stickyTopRange.height,marginBottom:G,marginLeft:J,marginRight:Q,order:1,zIndex:((i=(r=I.props)===null||r===void 0?void 0:r.zIndexBase)!==null&&i!==void 0?i:0)+1}},E.createElement(Kr,{state:I,range:Lg(v.ranges.stickyTopRange)(z),borders:{top:!0,right:!T,left:!P},cellRenderer:w})),E.createElement(Jr,{renderChildren:S&&P||!_,className:"rg-pane-left",style:{height:v.scrollableRange.height,width:v.width-v.scrollableRange.width-v.ranges.stickyRightRange.width,marginRight:re,marginBottom:ae,marginTop:H,order:3,zIndex:((u=(l=I.props)===null||l===void 0?void 0:l.zIndexBase)!==null&&u!==void 0?u:0)+1}},E.createElement(Kr,{state:I,range:Jo(v.ranges.stickyLeftRange)(_||v.ranges.stickyLeftRange),borders:{bottom:!M,top:!x,left:!0},cellRenderer:w})),E.createElement(Jr,{renderChildren:M&&T,className:"rg-pane-bottom rg-pane-right rg-pane-shadow shadow-bottom-right-corner",style:{height:v.ranges.stickyBottomRange.height,width:v.width-v.ranges.stickyLeftRange.width-v.scrollableRange.width,marginTop:ie,marginLeft:F,order:8,zIndex:((s=(d=I.props)===null||d===void 0?void 0:d.zIndexBase)!==null&&s!==void 0?s:0)+1}},E.createElement(Kr,{state:I,range:Jo(v.ranges.stickyRightRange)(v.ranges.stickyBottomRange),borders:{top:!0,left:!0,right:!0,bottom:!0},cellRenderer:w})),E.createElement(Jr,{renderChildren:M&&P,className:"rg-pane-bottom rg-pane-left rg-pane-shadow shadow-bottom-left-corner",style:{height:v.ranges.stickyBottomRange.height,width:v.width-v.ranges.stickyRightRange.width-v.scrollableRange.width,marginRight:re,marginTop:ie,order:6,zIndex:((p=(c=I.props)===null||c===void 0?void 0:c.zIndexBase)!==null&&p!==void 0?p:0)+2}},E.createElement(Kr,{state:I,range:Jo(v.ranges.stickyLeftRange)(v.ranges.stickyBottomRange),borders:{top:!0,left:!0,right:!0,bottom:!0},cellRenderer:w})),E.createElement(Jr,{renderChildren:x&&T,className:"rg-pane-top rg-pane-right rg-pane-shadow shadow-top-right-corner",style:{height:v.ranges.stickyTopRange.height,width:v.width-v.scrollableRange.width-v.ranges.stickyLeftRange.width,marginLeft:F,marginBottom:G,order:2,zIndex:((y=(h=I.props)===null||h===void 0?void 0:h.zIndexBase)!==null&&y!==void 0?y:0)+2}},E.createElement(Kr,{state:I,range:Jo(v.ranges.stickyRightRange)(v.ranges.stickyTopRange),borders:{top:!0,left:!0,right:!0,bottom:!0},cellRenderer:w})),E.createElement(Jr,{renderChildren:x&&P,className:"rg-pane-top rg-pane-left rg-pane-shadow shadow-top-left-corner",style:{height:v.ranges.stickyTopRange.height,width:v.width-v.scrollableRange.width-v.ranges.stickyRightRange.width,marginRight:re,marginBottom:G,order:0,zIndex:((b=(m=I.props)===null||m===void 0?void 0:m.zIndexBase)!==null&&b!==void 0?b:0)+3}},E.createElement(Kr,{state:I,range:Jo(v.ranges.stickyLeftRange)(v.ranges.stickyTopRange),borders:{top:!0,left:!0,right:!0,bottom:!0},cellRenderer:w})))},aG=function(){var e=Ki(),t=e.linePosition,n=e.lineOrientation,r=e.cellMatrix,i=n==="vertical",l=Object.assign({},i?{left:t,height:r.height}:{top:t,width:r.width});return t===-1?null:E.createElement("div",{className:"rg-line ".concat(i?"rg-line-vertical":"rg-line-horizontal"),style:l})},uG=function(){var e=Ki(),t=e.lineOrientation,n=e.shadowSize,r=e.shadowPosition,i=e.shadowCursor,l=e.cellMatrix,u=t==="vertical";return r===-1?null:Et.createElement("div",{className:"rg-shadow",style:{cursor:i,top:u?0:r,left:u?r:0,width:u?n:l.width,height:u?l.height:n}})};function Xi(e){return e.selectedRanges[e.activeSelectedRangeIdx]}var YR={type:"",text:"",value:NaN};function jR(e,t,n){n===void 0&&(n=!1);var r=sG(t),i=r.div,l=r.table,u=function(d,s,c,p,h){var y="",m="";return c.rows.forEach(function(b){var w=p.insertRow();c.columns.forEach(function(I){var v=w.insertCell(),x=Cr(d,{row:b,column:I}).cell,S=x.text||" ";v.textContent=S,y=m===""?x.text:y+(m===b.rowId?" ":` -`)+S,m=b.rowId,v.setAttribute("data-reactgrid",JSON.stringify(x)),v.style.color="initial",v.style.border="initial",v.style.fontSize="initial",v.style.backgroundColor="initial",dG(d,{row:b,column:I},h)})}),y}(e,0,t,l,n);return cG(i,l),{div:i,text:u}}function sG(e){var t=document.createElement("div"),n=document.createElement("table");return n.setAttribute("empty-cells","show"),n.setAttribute("data-reactgrid","reactgrid-content"),{div:t,table:n,location:{row:e.first.row,column:e.first.column}}}function cG(e,t){e.setAttribute("contenteditable","true"),e.style.position="fixed",e.style.top="50%",e.style.left="50%",e.appendChild(t)}function dG(e,t,n){n&&(e=di(e,t,YR))}function ld(e,t,n){return Cr(e,t).cell.groupId===n.groupId?di(e,t,n):(console.warn("New cells data can't be appended into location: ('".concat(t.column.columnId,"', '").concat(t.row.rowId,"'). Cell's 'groupId' field doesn't match!")),e)}function JR(e,t){var n,r,i=Xi(e);if(t.length!==1||t[0].length!==1){var l,u=e.cellMatrix;if(t.forEach(function(s,c){return s.forEach(function(p,h){var y=i.first.row.idx+c,m=i.first.column.idx+h;y<=u.last.row.idx&&m<=u.last.column.idx&&(l=u.getLocation(y,m),e=ld(e,l,p))})}),!l)return e;var d=u.getRange(i.first,l);return!((n=e==null?void 0:e.props)===null||n===void 0)&&n.onSelectionChanging&&!e.props.onSelectionChanging([d])?e:(!((r=e==null?void 0:e.props)===null||r===void 0)&&r.onSelectionChanged&&e.props.onSelectionChanged([d]),k(k({},e),{selectedRanges:[u.getRange(i.first,l)],activeSelectedRangeIdx:0}))}return i.rows.forEach(function(s){return i.columns.forEach(function(c){e=ld(e,tt(s,c),t[0][0])})}),e}function hx(e){return e.selectedRanges.map(function(t){return t.rows.flatMap(function(n){return t.columns.map(function(r){return{columnId:r.columnId,rowId:n.rowId}})})})}function KR(){return sf(this,void 0,void 0,function(){return cf(this,function(e){switch(e.label){case 0:return[4,navigator.clipboard.readText().catch(function(){throw new Error("Failed to read textual data from clipboard!")})];case 1:return[2,e.sent().split(` -`).map(function(t){return t.split(" ").map(function(n){return{type:"text",text:n,value:Pl(n)}})})]}})})}function fG(e){return sf(this,void 0,void 0,function(){var t;return cf(this,function(n){switch(n.label){case 0:return[4,e.getType("text/html").catch(function(){throw new Error("Failed to get HTML Blob data from clipboard!")})];case 1:return[4,n.sent().text().catch(function(){throw new Error("Failed to parse HTML Blob to text!")})];case 2:t=n.sent();try{return[2,new DOMParser().parseFromString(t,"text/html")]}catch{throw new Error("Failed to parse HTML string to DOM!")}return[2]}})})}function pG(e){var t,n;return sf(this,void 0,void 0,function(){var r,i,l,u,d,s,c,p;return cf(this,function(h){switch(h.label){case 0:return r=[],!((t=e.firstElementChild)===null||t===void 0)&&t.firstElementChild?[3,2]:[4,KR()];case 1:return[2,h.sent()];case 2:for(i=e.firstElementChild.firstElementChild.children,l=0;l=0&&(w=I),E.createElement("div",{ref:e,className:"rg-context-menu",style:{visibility:u===-1&&l===-1?"hidden":"visible",top:n.top+"px",left:n.left+"px"}},w.map(function(v,x){var S=v.handler,P=v.id,O=v.label;return E.createElement("div",{key:x,className:"rg-context-menu-option",onPointerDown:function(M){return M.stopPropagation()},onClick:function(){S(i==="row"?r:[],i==="column"?r:[],i,hx(t)),t.update(function(M){return k(k(k({},M),{contextMenuPosition:{top:-1,left:-1}}),(P==="copy"||P==="cut")&&{copyRange:Xi(M)})})}},O)}))};function mx(e,t){t===void 0&&(t=!1),function(n,r){var i;r===void 0&&(r=!1);var l=Xi(n);if(l){var u=jR(n,l,r).div;document.body.appendChild(u),u.focus(),document.execCommand("selectAll",!1,void 0),document.execCommand("copy"),document.body.removeChild(u),(i=n.hiddenFocusElement)===null||i===void 0||i.focus()}}(e,t)}var mG=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.updateState=function(r){return n.setState(r)},n.stateUpdater=function(r){return dW(r(n.state),n.state,n.props,n.updateState)},n.pointerEventsController=new kF(n.stateUpdater),n.eventHandlers=new OF(n.stateUpdater,n.pointerEventsController),n.cellMatrixBuilder=new rR,n.state=k(k({update:n.stateUpdater},FG),{currentBehavior:new Yv,cellMatrix:n.cellMatrixBuilder.setProps(n.props).fillRowsAndCols().setRangesToRenderLookup().fillSticky().fillScrollableRange().setEdgeLocations().getCellMatrix()}),n.clearSelections=function(){n.setState(function(r){return r.selectedIds.length===0&&r.selectedIndexes.length===0&&r.selectedRanges.length===0?null:{selectedIds:[],selectedIndexes:[],selectedRanges:[]}})},n}return xr(t,e),t.getDerivedStateFromProps=function(n,r){try{return BD(n,r)}catch(i){return console.error(i),null}},t.prototype.componentDidUpdate=function(n,r){var i;!r.reactGridElement&&this.state.reactGridElement&&((i=this.state.scrollableElement)===null||i===void 0||i.addEventListener("scroll",this.eventHandlers.scrollHandler)),RF(0,r,this.state)},t.prototype.componentDidMount=function(){window.addEventListener("resize",this.eventHandlers.windowResizeHandler)},t.prototype.componentWillUnmount=function(){var n;window.removeEventListener("resize",this.eventHandlers.windowResizeHandler),(n=this.state.scrollableElement)===null||n===void 0||n.removeEventListener("scroll",this.eventHandlers.scrollHandler),this.setState({contextMenuPosition:{top:-1,left:-1}})},t.prototype.render=function(){var n=this.state,r=this.eventHandlers;return n.legacyBrowserMode?E.createElement(gx,{state:n},E.createElement(JG,{eventHandlers:r})):E.createElement(gx,{state:n},E.createElement(YG,{eventHandlers:r},E.createElement(lG,{cellRenderer:qG}),E.createElement(aG,null),E.createElement(uG,null),E.createElement(hG,null),n.currentlyEditedCell&&E.createElement(WG,null)))},t}(E.Component),Eo=xG(vn),vG=IG(Eo),yG=CG(Eo),vx=SG(Eo),Tg=RG(Eo),yx=EG(Eo),bx=AG(Eo),QR=kG(Eo),bG=QR(function(e,t){var n,r=rE(e,e.cellMatrix.ranges.stickyTopRange.height+e.cellMatrix.ranges.stickyBottomRange.height),i=e.cellMatrix.ranges.stickyTopRange.rows.length>0,l=i&&Lv(e,t),u=e.cellMatrix.scrollableRange.rows.length>0,d=u&&t.row.idx>e.cellMatrix.scrollableRange.first.row.idx&&t.row.idx<=e.cellMatrix.scrollableRange.last.row.idx,s=u&&t.row.idx===e.cellMatrix.scrollableRange.first.row.idx,c=e.cellMatrix.ranges.stickyBottomRange.rows.length>0,p=c&&t.row.idx>=e.cellMatrix.ranges.stickyBottomRange.first.row.idx,h=c&&(t==null?void 0:t.row.idx)===((n=e.cellMatrix.ranges)===null||n===void 0?void 0:n.stickyBottomRange.first.row.idx),y=e.cellMatrix.scrollableRange.rows.filter(function(I){return I.top+I.height0,i=r&&Lv(e,t),l=r&&t.row.idx===((n=e.cellMatrix.ranges)===null||n===void 0?void 0:n.stickyTopRange.last.row.idx),u=e.cellMatrix.scrollableRange.rows.length>0,d=u&&t.row.idx>=e.cellMatrix.scrollableRange.first.row.idx&&t.row.idx0,p=c&&t.row.idx>=e.cellMatrix.ranges.stickyBottomRange.first.row.idx,h=rE(e,e.cellMatrix.ranges.stickyTopRange.height+e.cellMatrix.ranges.stickyBottomRange.height),y=e.cellMatrix.scrollableRange.rows.filter(function(I){return I.top+I.height=e.cellMatrix.first.column.idx;--n){var r=Qi(e,t.row.idx,n);if(r)return r}}function RG(e){return function(t,n){var r=eE(t,t.focusedLocation);return r?e(r.column.idx,r.row.idx,t,n):t}}function eE(e,t){if(t)for(var n=t.column.idx+1;n<=e.cellMatrix.last.column.idx;++n){var r=Qi(e,t.row.idx,n);if(r)return r}}function EG(e){return function(t){var n=tE(t,t.focusedLocation);return n?e(n.column.idx,n.row.idx,t):t}}function tE(e,t){if(t)for(var n=t.row.idx-1;n>=e.cellMatrix.first.row.idx;--n){var r=Qi(e,n,t.column.idx);if(r)return r}}function AG(e){return function(t,n){var r=nE(t,t.focusedLocation);return r?e(r.column.idx,r.row.idx,t,n):t}}function nE(e,t){if(t)for(var n=t.row.idx+1;n<=e.cellMatrix.last.row.idx;++n){var r=Qi(e,n,t.column.idx);if(r)return r}}function kG(e){return function(t){return function(n){var r=n.focusedLocation;if(!r)return n;var i=t(n,r);return e(r.column.idx,i,n)}}}function rE(e,t){return Ov(e,t)}function MG(e,t){var n=function(r,i){var l,u,d,s,c,p,h,y,m,b,w,I,v,x,S,P,O,M,T=r.focusedLocation;if(!T)return r;var _=(l=Xi(r))!==null&&l!==void 0?l:r.cellMatrix.getRange(T,T);if(i.ctrlKey&&kv()&&i.keyCode===$.SPACE)return St(r,_.first.column.idx,_.last.column.idx,0,r.cellMatrix.last.row.idx);var z=r.selectedRanges.length===1&&Pn(_.first,_.last),H=cW(r,i);if(H!==r){if(!z&&i.keyCode===$.ENTER){var J=i.shiftKey?"up":!((u=r.props)===null||u===void 0)&&u.moveRightOnEnter?"right":"down";return(d=r.hiddenFocusElement)===null||d===void 0||d.focus(),ba(r,J,_,T)}return H}if(i.altKey)return r;if(Jt(i)&&i.shiftKey)switch(i.keyCode){case $.HOME:return St(r,_.first.column.idx,_.last.column.idx,0,_.last.row.idx);case $.END:return St(r,_.first.column.idx,_.last.column.idx,_.first.row.idx,r.cellMatrix.last.row.idx)}else if(Jt(i)){var Q=r.cellMatrix;switch(i.keyCode){case $.KEY_A:if(r.selectedRanges.length===1&&Pn(r.selectedRanges[0].first,Q.first)&&Pn(r.selectedRanges[0].last,Q.last))return df(r,T);var ae=Q.getRange(Q.first,Q.last);return!((s=r.props)===null||s===void 0)&&s.onSelectionChanging&&!r.props.onSelectionChanging([ae])?r:k(k({},r),{selectedRanges:[ae],selectionMode:"range",activeSelectedRangeIdx:0});case $.HOME:return vn(r,r.cellMatrix.first);case $.END:return vn(r,r.cellMatrix.last);case $.SPACE:return St(r,_.first.column.idx,_.last.column.idx,0,r.cellMatrix.last.row.idx)}}else if(i.shiftKey)switch(i.keyCode){case $.UP_ARROW:return function(F,G,re){return G.first.row.idx>=0?G.last.row.idx>re.row.idx?St(F,G.first.column.idx,G.last.column.idx,G.first.row.idx,G.last.row.idx>0?G.last.row.idx-1:0,"vertical"):St(F,G.last.column.idx,G.first.column.idx,G.last.row.idx,G.first.row.idx>0?G.first.row.idx-1:0,"vertical"):F}(r,_,T);case $.DOWN_ARROW:return function(F,G,re){return G.last.row.idx<=F.cellMatrix.last.row.idx?G.first.row.idx=F.cellMatrix.last.row.idx?F.cellMatrix.last.row.idx:G.first.row.idx+1,"vertical"):St(F,G.first.column.idx,G.last.column.idx,G.first.row.idx,G.last.row.idx>=F.cellMatrix.last.row.idx?F.cellMatrix.last.row.idx:G.last.row.idx+1,"vertical"):F}(r,_,T);case $.LEFT_ARROW:return function(F,G,re){return G.first.column.idx>=0?G.last.column.idx>re.column.idx?St(F,G.first.column.idx,G.last.column.idx>0?G.last.column.idx-1:0,G.first.row.idx,G.last.row.idx,"horizontal"):St(F,G.last.column.idx,G.first.column.idx>0?G.first.column.idx-1:0,G.last.row.idx,G.first.row.idx,"horizontal"):F}(r,_,T);case $.RIGHT_ARROW:return function(F,G,re){return G.last.column.idx<=F.cellMatrix.last.column.idx?G.first.column.idx=F.cellMatrix.last.column.idx?F.cellMatrix.last.column.idx:G.first.column.idx+1,G.last.row.idx,G.first.row.idx,"horizontal"):St(F,G.first.column.idx,G.last.column.idx>=F.cellMatrix.last.column.idx?F.cellMatrix.last.column.idx:G.last.column.idx+1,G.first.row.idx,G.last.row.idx,"horizontal"):F}(r,_,T);case $.TAB:return i.preventDefault(),z?vx(r):ba(r,"left",_,T);case $.ENTER:return(c=r.hiddenFocusElement)===null||c===void 0||c.focus(),z?yx(r):ba(r,"up",_,T);case $.SPACE:return St(r,0,r.cellMatrix.last.column.idx,_.first.row.idx,_.last.row.idx);case $.HOME:return St(r,0,_.last.column.idx,_.first.row.idx,_.last.row.idx);case $.END:return St(r,_.first.column.idx,r.cellMatrix.last.column.idx,_.first.row.idx,_.last.row.idx);case $.PAGE_UP:return function(F,G,re){var U=wx(F),ee=F.cellMatrix.ranges.stickyBottomRange.rows.length>0&&G.first.row.idx>F.cellMatrix.ranges.stickyBottomRange.first.row.idx,ne=F.cellMatrix.ranges.stickyBottomRange.rows.length>0&&G.last.row.idx===F.cellMatrix.ranges.stickyBottomRange.last.row.idx,Y=F.cellMatrix.ranges.stickyBottomRange.rows.length>0&&G.last.row.idx===F.cellMatrix.ranges.stickyBottomRange.first.row.idx,se=F.cellMatrix.ranges.stickyBottomRange.rows.length>0&&G.first.row.idx===F.cellMatrix.ranges.stickyBottomRange.first.row.idx,Ie=F.cellMatrix.ranges.stickyTopRange.rows.length>0&&G.last.row.idx===F.cellMatrix.ranges.stickyTopRange.last.row.idx,ke=F.cellMatrix.scrollableRange.rows.length>0&&F.cellMatrix.ranges.stickyTopRange.rows.length>0&&G.first.row.idx===F.cellMatrix.scrollableRange.first.row.idx,Le=F.cellMatrix.scrollableRange.rows.length>0&&F.cellMatrix.ranges.stickyTopRange.rows.length>0&&G.last.row.idx===F.cellMatrix.scrollableRange.first.row.idx,ce=F.cellMatrix.ranges.stickyTopRange.rows.length>0&&G.first.row.idx<=F.cellMatrix.ranges.stickyTopRange.last.row.idx,Me=F.cellMatrix.scrollableRange.rows.filter(function($e){return $e.top+$e.height=0?G.last.row.idx>re.row.idx?St(F,G.first.column.idx,G.last.column.idx,G.first.row.idx,ne?F.cellMatrix.ranges.stickyBottomRange.first.row.idx:Y?F.cellMatrix.scrollableRange.rows.length>0?F.cellMatrix.scrollableRange.last.row.idx:F.cellMatrix.ranges.stickyTopRange.first.row.idx:Le?F.cellMatrix.ranges.stickyTopRange.last.row.idx:Ie?F.cellMatrix.ranges.stickyTopRange.first.row.idx:G.last.row.idx-Me.length>F.cellMatrix.scrollableRange.first.row.idx?G.last.row.idx-Me.length:F.cellMatrix.scrollableRange.first.row.idx,"vertical"):St(F,G.last.column.idx,G.first.column.idx,G.last.row.idx,ee?F.cellMatrix.ranges.stickyBottomRange.first.row.idx:se?F.cellMatrix.scrollableRange.rows.length>0?F.cellMatrix.scrollableRange.last.row.idx:F.cellMatrix.ranges.stickyTopRange.rows.length>0?F.cellMatrix.ranges.stickyTopRange.first.row.idx:F.cellMatrix.ranges.stickyBottomRange.first.row.idx:ke?F.cellMatrix.ranges.stickyTopRange.last.row.idx:ce?F.cellMatrix.ranges.stickyTopRange.first.row.idx:ee?F.cellMatrix.ranges.stickyBottomRange.first.row.idx:G.first.row.idx-Me.length>F.cellMatrix.scrollableRange.first.row.idx?G.first.row.idx-Me.length:F.cellMatrix.scrollableRange.first.row.idx,"vertical"):F}(r,_,T);case $.PAGE_DOWN:return function(F,G,re){var U=wx(F),ee=F.cellMatrix.ranges.stickyTopRange.rows.length>0&&G.last.row.idx0&&G.first.row.idx0&&G.last.row.idx===F.cellMatrix.ranges.stickyTopRange.last.row.idx,se=F.cellMatrix.ranges.stickyTopRange.rows.length>0&&G.first.row.idx===F.cellMatrix.ranges.stickyTopRange.last.row.idx,Ie=F.cellMatrix.scrollableRange.rows.length>0&&F.cellMatrix.ranges.stickyBottomRange.rows.length>0&&G.last.row.idx===F.cellMatrix.scrollableRange.last.row.idx,ke=F.cellMatrix.scrollableRange.rows.length>0&&F.cellMatrix.ranges.stickyBottomRange.rows.length>0&&G.first.row.idx===F.cellMatrix.scrollableRange.last.row.idx,Le=F.cellMatrix.ranges.stickyBottomRange.rows.length>0&&G.last.row.idx>=F.cellMatrix.ranges.stickyBottomRange.first.row.idx,ce=F.cellMatrix.ranges.stickyBottomRange.rows.length>0&&G.first.row.idx>=F.cellMatrix.ranges.stickyBottomRange.first.row.idx,Me=F.cellMatrix.scrollableRange.rows.filter(function($e){return $e.top+$e.height0?F.cellMatrix.scrollableRange.first.row.idx:F.cellMatrix.ranges.stickyBottomRange.first.row.idx:ke?F.cellMatrix.ranges.stickyBottomRange.first.row.idx:ce?F.cellMatrix.ranges.stickyBottomRange.last.row.idx:G.first.row.idx+Me.length>=F.cellMatrix.scrollableRange.last.row.idx?F.cellMatrix.scrollableRange.last.row.idx:G.first.row.idx+Me.length,"vertical"):St(F,G.first.column.idx,G.last.column.idx,G.first.row.idx,Le?F.cellMatrix.ranges.stickyBottomRange.last.row.idx:Y?F.cellMatrix.scrollableRange.rows.length>0?F.cellMatrix.scrollableRange.first.row.idx:F.cellMatrix.ranges.stickyBottomRange.rows.length>0?F.cellMatrix.ranges.stickyBottomRange.first.row.idx:F.cellMatrix.ranges.stickyTopRange.last.row.idx:Ie?F.cellMatrix.ranges.stickyBottomRange.first.row.idx:ee?F.cellMatrix.ranges.stickyTopRange.last.row.idx:G.last.row.idx+Me.length>=F.cellMatrix.scrollableRange.last.row.idx?F.cellMatrix.scrollableRange.last.row.idx:G.last.row.idx+Me.length,"vertical"):F}(r,_,T)}else switch(i.keyCode){case $.DELETE:case $.BACKSPACE:return(p=r.hiddenFocusElement)===null||p===void 0||p.focus(),function(F){return F.selectedRanges.forEach(function(G){return G.rows.forEach(function(re){return G.columns.forEach(function(U){return F=di(F,{row:re,column:U},YR)})})}),F}(r);case $.UP_ARROW:return(h=r.hiddenFocusElement)===null||h===void 0||h.focus(),yx(r);case $.DOWN_ARROW:return(y=r.hiddenFocusElement)===null||y===void 0||y.focus(),bx(r);case $.LEFT_ARROW:return(m=r.hiddenFocusElement)===null||m===void 0||m.focus(),vx(r);case $.RIGHT_ARROW:return(b=r.hiddenFocusElement)===null||b===void 0||b.focus(),Tg(r);case $.TAB:return(w=r.hiddenFocusElement)===null||w===void 0||w.focus(),i.preventDefault(),z?Tg(r):ba(r,"right",_,T);case $.HOME:return(I=r.hiddenFocusElement)===null||I===void 0||I.focus(),vG(r);case $.END:return(v=r.hiddenFocusElement)===null||v===void 0||v.focus(),yG(r);case $.PAGE_UP:return(x=r.hiddenFocusElement)===null||x===void 0||x.focus(),bG(r);case $.PAGE_DOWN:return(S=r.hiddenFocusElement)===null||S===void 0||S.focus(),wG(r);case $.ENTER:var ie=!((P=r.props)===null||P===void 0)&&P.moveRightOnEnter?k(k({},Tg(r,i.keyCode)),{currentlyEditedCell:void 0}):k(k({},bx(r,i.keyCode)),{currentlyEditedCell:void 0});return(O=r.hiddenFocusElement)===null||O===void 0||O.focus(),z?ie:ba(r,"right",_,T);case $.ESCAPE:return i.preventDefault(),(M=r.hiddenFocusElement)===null||M===void 0||M.focus(),r.currentlyEditedCell?k(k({},r),{currentlyEditedCell:void 0}):r}return r}(e,t);return n!==e&&(t.stopPropagation(),t.preventDefault()),n}function ba(e,t,n,r){var i=e.activeSelectedRangeIdx,l=n?n.columns.length:0,u=n?n.rows.length:0,d=t==="up"||t==="left"?-1:1,s=t==="up"||t==="down"?r.row.idx-n.first.row.idx+(r.column.idx-n.first.column.idx)*u:(r.row.idx-n.first.row.idx)*l+(r.column.idx-n.first.column.idx),c=(s+d)%(n.rows.length*n.columns.length),p=c<0&&s===0||u===1&&l===1&&d===-1,h=c===0&&s===n.rows.length*n.columns.length-1&&(u>=3&&l>=1||u>=1&&l>=3)||c===0&&s===n.rows.length*n.columns.length-1&&(u===2&&l>=1||u>=1&&l===2)&&d===1||c<0&&s===0||u===1&&l===1&&d===1;if(p){var y=i===0?e.selectedRanges.length-1:(i-1)%e.selectedRanges.length,m=e.selectedRanges[y];return e=vn(e,tt(m.last.row,m.last.column),!1),k(k({},e),{activeSelectedRangeIdx:y})}if(h)return y=(i+1)%e.selectedRanges.length,m=e.selectedRanges[y],e=vn(e,tt(m.first.row,m.first.column),!1),k(k({},e),{activeSelectedRangeIdx:y});var b=t==="up"||t==="down"?Math.floor(c/u):c%l,w=t==="up"||t==="down"?c%u:Math.floor(c/l),I=n.first.column.idx+b,v=n.first.row.idx+w;return e=vn(e,e.cellMatrix.getLocation(v,I),!n||!(n.columns.length>1||n.rows.length>1))}function wx(e){var t=e.cellMatrix.ranges,n=t.stickyBottomRange,r=t.stickyTopRange;return Ov(e,n.height+r.height)}function St(e,t,n,r,i,l){var u,d,s;if(!e.enableRangeSelection)return e;var c=e.cellMatrix.getLocation(r,t),p=e.cellMatrix.getLocation(i,n),h=e.selectedRanges.slice();if(h[e.activeSelectedRangeIdx]=e.cellMatrix.getRange(c,p),l){var y=e.focusedLocation;if(!y)return e;var m=0,b=0;switch(l){case"horizontal":m=y.row.idx,b=y.column.idx!==t?t:n;break;case"vertical":m=y.row.idx!==r?r:i,b=y.column.idx}var w=_v(e,e.cellMatrix.getLocation(m,b),l),I=w.left;Tv(e,w.top,I)}return!((u=e.props)===null||u===void 0)&&u.onSelectionChanging&&!e.props.onSelectionChanging(h)?e:((s=(d=e.props)===null||d===void 0?void 0:d.onSelectionChanged)===null||s===void 0||s.call(d,h),k(k({},e),{selectedRanges:h}))}var PG=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.autoScrollDirection="horizontal",n}return xr(t,e),t.prototype.handlePointerDown=function(n,r,i){return this.initialColumn=r.column,i=Jt(n)&&i.selectionMode==="column"&&i.selectedIds.some(function(l){return l===r.column.columnId})?function(l,u){var d=l.selectedIndexes.filter(function(c){return c!==u.idx}),s=l.selectedIds.filter(function(c){return c!==u.columnId});return k(k({},l),{selectionMode:"column",selectedIndexes:d,selectedIds:s})}(i,r.column):n.shiftKey&&i.focusedLocation?mw(i,i.focusedLocation.column,r.column,Jt(n)):function(l,u,d){return k(k({},l),{selectionMode:"column",selectedIndexes:(d&&l.selectionMode==="column"?l.selectedIndexes:[]).concat(u.idx),selectedIds:(d&&l.selectionMode==="column"?l.selectedIds:[]).concat(u.columnId)})}(i=vn(i,r,!1),r.column,Jt(n))},t.prototype.handlePointerEnter=function(n,r,i){return mw(i,this.initialColumn,r.column,Jt(n))},t.prototype.handlePointerUp=function(n,r,i){var l,u;if(!((l=i.props)===null||l===void 0)&&l.onSelectionChanging&&!i.props.onSelectionChanging(i.selectedRanges)){var d=Tt([],i.selectedRanges).filter(function(s,c){return c!==i.activeSelectedRangeIdx});return k(k({},i),{selectedRanges:d,activeSelectedRangeIdx:d.length-1})}return!((u=i.props)===null||u===void 0)&&u.onSelectionChanged&&i.props.onSelectionChanged(i.selectedRanges),i},t.prototype.handleContextMenu=function(n,r){return Dl(n,r)},t}(Ji),TG=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.autoScrollDirection="vertical",n}return xr(t,e),t.prototype.handlePointerDown=function(n,r,i){return this.initialRow=r.row,i=Jt(n)&&i.selectionMode==="row"&&i.selectedIds.some(function(l){return l===r.row.rowId})?function(l,u){var d=l.selectedIndexes.filter(function(c){return c!==u.idx}),s=l.selectedIds.filter(function(c){return c!==u.rowId});return k(k({},l),{selectionMode:"row",selectedIndexes:d,selectedIds:s})}(i,r.row):n.shiftKey&&i.focusedLocation?vw(i,i.focusedLocation.row,r.row,Jt(n)):function(l,u,d){return k(k({},l),{selectionMode:"row",selectedIndexes:(d&&l.selectionMode==="row"?l.selectedIndexes:[]).concat(u.idx),selectedIds:(d&&l.selectionMode==="row"?l.selectedIds:[]).concat(u.rowId)})}(i=vn(i,r,!1),r.row,Jt(n))},t.prototype.handlePointerEnter=function(n,r,i){return vw(i,this.initialRow,r.row,Jt(n))},t.prototype.handlePointerUp=function(n,r,i){var l,u;if(!((l=i.props)===null||l===void 0)&&l.onSelectionChanging&&!i.props.onSelectionChanging(i.selectedRanges)){var d=Tt([],i.selectedRanges).filter(function(s,c){return c!==i.activeSelectedRangeIdx});return k(k({},i),{selectedRanges:d,activeSelectedRangeIdx:d.length-1})}return!((u=i.props)===null||u===void 0)&&u.onSelectionChanged&&i.props.onSelectionChanged(i.selectedRanges),i},t.prototype.handleContextMenu=function(n,r){return Dl(n,r)},t}(Ji),iE=function(e){var t=e.range,n=e.pane,r=e.style,i=e.className,l=t.first.row.idx<=n.first.row.idx?n.first.row.top:t.first.row.top,u=t.first.column.idx<=n.first.column.idx?n.first.column.left:t.first.column.left,d=(t.last.column.idx>n.last.column.idx?n.last.column.right:t.last.column.right)-u,s=(t.last.row.idx>n.last.row.idx?n.last.row.bottom:t.last.row.bottom)-l,c=t.first.row.idx>=n.first.row.idx,p=t.last.row.idx<=n.last.row.idx,h=t.last.column.idx<=n.last.column.idx,y=t.first.column.idx>=n.first.column.idx;return E.createElement("div",{className:"rg-partial-area ".concat(i),key:t.first.column.idx+n.last.column.idx,style:k(k({},r),{top:l-(l===0?0:1),left:u-(u===0?0:1),width:d+(u===0?0:1),height:s+(l===0?0:1),borderTop:c?r.borderTop:"unset",borderBottom:p?r.borderBottom:"unset",borderRight:h?r.borderRight:"unset",borderLeft:y?r.borderLeft:"unset"})})};function oE(e,t){return t.first.column.idx<=e.last.column.idx&&t.first.row.idx<=e.last.row.idx&&t.last.column.idx>=e.first.column.idx&&t.last.row.idx>=e.first.row.idx}var lE=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.fillDirection="",n}return xr(t,e),t.prototype.handlePointerEnter=function(n,r,i){var l=Xi(i);return this.fillDirection=this.getFillDirection(l,r),this.fillRange=this.getFillRange(i.cellMatrix,l,r,this.fillDirection),k({},i)},t.prototype.handlePointerUp=function(n,r,i){var l,u,d,s,c,p,h,y,m=this,b=Xi(i),w=i.cellMatrix;if(!b||this.fillRange===void 0)return i;var I=kv()?n.altKey:n.ctrlKey;this.fillRange=i.cellMatrix.validateRange(this.fillRange);var v=function(M){return Cr(i,M)},x=function(M,T){var _=M.map(function(J){return J.value}),z=m.findRegressionFunction(_,Array.from({length:_.length},function(J,Q){return Q+1})),H=isNaN(z.a)&&isNaN(z.b);return T.map(function(J,Q){var ae=m.calculateXForRegressionFunction(Q+_.length+1,z.a,z.b),ie=M[Q%M.length];return k(k(k({},J),J.type==="checkbox"&&{checked:"checked"in ie?ie.checked:!!ie.value}),{text:H||I?ie.text:ae.toString(),groupId:ie.groupId,value:H||I?ie.value:ae})})},S=function(M,T,_){return T.columns.forEach(function(z){var H=T.rows.map(function(Q){return v(tt(Q,z)).cell});if(H=_==="up"?H.reverse():H,m.fillRange){var J=m.fillRange.rows.map(function(Q){return v(tt(Q,z)).cell});J=x(H,J),J=_==="up"?J.reverse():J,M=m.fillColumn(M,z,J)}}),M},P=function(M,T,_){return T.rows.forEach(function(z){var H=T.columns.map(function(Q){return v(tt(z,Q)).cell});if(H=_==="left"?H.reverse():H,m.fillRange){var J=m.fillRange.columns.map(function(Q){return v(tt(z,Q)).cell});J=x(H,J),J=_==="left"?J.reverse():J,M=m.fillRow(M,z,J)}}),M};switch(this.fillDirection){case"right":var O=w.getRange(b.first,tt(b.last.row,r.column));if(!((l=(i=P(i,b,"right"))==null?void 0:i.props)===null||l===void 0)&&l.onSelectionChanging&&!i.props.onSelectionChanging([O]))return i;!((u=(i=k(k({},i),{selectedRanges:[O],selectedIds:Tt(Tt([],b.columns.map(function(M){return M.columnId}),!0),this.fillRange.columns.map(function(M){return M.columnId}))})).props)===null||u===void 0)&&u.onSelectionChanged&&i.props.onSelectionChanged(i.selectedRanges);break;case"left":if(O=w.getRange(b.last,tt(b.first.row,r.column)),!((d=(i=P(i,b,"left"))==null?void 0:i.props)===null||d===void 0)&&d.onSelectionChanging&&!i.props.onSelectionChanging([O]))return i;!((s=(i=k(k({},i),{selectedRanges:[O],selectedIds:Tt(Tt([],b.columns.map(function(M){return M.columnId}),!0),this.fillRange.columns.map(function(M){return M.columnId}))})).props)===null||s===void 0)&&s.onSelectionChanged&&i.props.onSelectionChanged(i.selectedRanges);break;case"up":if(O=w.getRange(b.last,{row:r.row,column:b.first.column}),!((c=(i=S(i,b,"up"))==null?void 0:i.props)===null||c===void 0)&&c.onSelectionChanging&&!i.props.onSelectionChanging([O]))return i;!((p=(i=k(k({},i),{selectedRanges:[O],selectedIds:Tt(Tt([],b.rows.map(function(M){return M.rowId}),!0),this.fillRange.rows.map(function(M){return M.rowId}))})).props)===null||p===void 0)&&p.onSelectionChanged&&i.props.onSelectionChanged(i.selectedRanges);break;case"down":if(O=w.getRange(b.first,tt(r.row,b.last.column)),!((h=(i=S(i,b,"down"))==null?void 0:i.props)===null||h===void 0)&&h.onSelectionChanging&&!i.props.onSelectionChanging([O]))return i;!((y=(i=k(k({},i),{selectedRanges:[O],selectedIds:Tt(Tt([],b.rows.map(function(M){return M.rowId}),!0),this.fillRange.rows.map(function(M){return M.rowId}))})).props)===null||y===void 0)&&y.onSelectionChanged&&i.props.onSelectionChanged(i.selectedRanges)}return i},t.prototype.calculateXForRegressionFunction=function(n,r,i){return Math.round((n-r)/i*1e5)/1e5},t.prototype.findRegressionFunction=function(n,r){var i=this.sumArray(n),l=this.sumArray(r),u=this.sumArray(this.multipleArrays(n,r)),d=this.sumArray(this.powerArray(n,2)),s=n.length,c=Math.fround(s*u-i*l)/Math.fround(s*d-Math.pow(i,2));return{a:l/s-c*(i/s),b:c}},t.prototype.sumArray=function(n){return n.reduce(function(r,i){return r+i})},t.prototype.multipleArrays=function(n,r){for(var i=[],l=n.length<=r.length?n.length:r.length,u=0;un.last.row.idx?r.row.idx-n.last.row.idx:0}),i.push({direction:"left",value:r.column.idxn.last.column.idx?r.column.idx-n.last.column.idx:0}),i.reduce(function(l,u){return l.value>=u.value?l:u}).direction},t.prototype.getFillRange=function(n,r,i,l){switch(l){case"right":return n.getRange(n.getLocation(r.first.row.idx,n.last.column.idxr.first.column.idx-1?n.first.column.idx:r.first.column.idx-1));case"up":return n.getRange(tt(i.row,r.first.column),n.getLocation(n.first.row.idx>r.first.row.idx-1?n.first.row.idx:r.first.row.idx-1,r.last.column.idx));case"down":return n.getRange(n.getLocation(n.last.row.idxthis.initialRowIdx;c=Math.min(this.lastPossibleDropLocation.viewportY-this.lastPossibleDropLocation.cellY+(y?this.lastPossibleDropLocation.row.height:0),(((l=i.visibleRange)===null||l===void 0?void 0:l.height)||0)+i.cellMatrix.ranges.stickyTopRange.height+i.cellMatrix.ranges.stickyBottomRange.height+p),!((u=i.props)===null||u===void 0)&&u.canReorderRows?i.props.canReorderRows&&i.props.canReorderRows(this.lastPossibleDropLocation.row.rowId,this.selectedIds,this.position)?y?h>r.row.top+i.cellMatrix.ranges.stickyTopRange.height&&hr.row.top+i.cellMatrix.ranges.stickyTopRange.height+r.row.height/2&&hl?l:i},t.prototype.getLastPossibleDropLocation=function(n,r){var i;return!(!((i=n.props)===null||i===void 0)&&i.canReorderRows)||n.props.canReorderRows(r.row.rowId,this.selectedIds,this.position)?r:this.lastPossibleDropLocation},t.prototype.handlePointerUp=function(n,r,i){var l,u;return r.row.idx!==this.initialRowIdx&&this.lastPossibleDropLocation&&(!((l=i.props)===null||l===void 0)&&l.onRowsReordered)&&((u=i.props)===null||u===void 0||u.onRowsReordered(this.lastPossibleDropLocation.row.rowId,this.selectedIds,this.position)),k(k({},i),{linePosition:-1,shadowPosition:-1,shadowCursor:"default"})},t.prototype.handleContextMenu=function(n,r){return Dl(n,r)},t}(Ji);function LG(){return typeof window<"u"&&window.navigator.userAgent.indexOf("Safari")!==-1&&navigator.userAgent.indexOf("Chrome")===-1}function xx(e,t,n){n===void 0&&(n=!1);var r=Xi(t);return r?(_G(e,t,jR(t,r,n).div),k(k({},t),{copyRange:r})):t}function _G(e,t,n){var r;LG()?e.clipboardData.setData("text/html",n.innerHTML):(document.body.appendChild(n),n.focus(),document.execCommand("selectAll",!1),document.execCommand("copy"),document.body.removeChild(n)),(r=t.hiddenFocusElement)===null||r===void 0||r.focus({preventScroll:!0}),e.preventDefault()}function NG(e,t){var n,r;if(!Xi(t))return t;var i=[],l=e.clipboardData.getData("text/html"),u=new DOMParser().parseFromString(l,"text/html");if(((n=u.body.firstElementChild)===null||n===void 0?void 0:n.getAttribute("data-reactgrid"))==="reactgrid-content"&&(!((r=u.body.firstElementChild)===null||r===void 0)&&r.firstElementChild))for(var d=u.body.firstElementChild.firstElementChild.children,s=0;sr.column.width-(((u=(l=i.reactGridElement)===null||l===void 0?void 0:l.querySelector(".rg-resize-handle"))===null||u===void 0?void 0:u.clientWidth)||0)-Qe(i.scrollableElement).scrollLeft?new Pv:i.enableColumnSelection&&r.row.idx===0&&i.selectedIds.includes(r.column.columnId)&&!Jt(n)&&i.selectionMode==="column"&&r.column.reorderable?new eR:i.enableColumnSelection&&r.row.idx===0&&d.className!=="rg-fill-handle"&&d.className!=="rg-touch-fill-handle"?new PG:i.enableRowSelection&&r.column.idx===0&&i.selectedIds.includes(r.row.rowId)&&!Jt(n)&&i.selectionMode==="row"&&r.row.reorderable?new OG:i.enableRowSelection&&r.column.idx===0&&d.className!=="rg-fill-handle"&&d.className!=="rg-touch-fill-handle"?new TG:(n.pointerType==="mouse"&&d.className==="rg-fill-handle"||n.pointerType==="touch"&&(d.className==="rg-touch-fill-handle"||d.className==="rg-fill-handle"))&&i.enableFillHandle?new lE:new qS},t.prototype.handleContextMenu=function(n,r){return Dl(n,r)},t.prototype.handleDoubleClick=function(n,r,i){return aW(n,r,i)},t.prototype.handleKeyDown=function(n,r){return MG(r,n)},t.prototype.handleKeyUp=function(n,r){return uW(n,r)},t.prototype.handleCompositionEnd=function(n,r){return sW(n,r)},t.prototype.handleCopy=function(n,r){return xx(n,r)},t.prototype.handlePaste=function(n,r){return NG(n,r)},t.prototype.handleCut=function(n,r){return xx(n,r,!0)},t}(Ji),FG={legacyBrowserMode:typeof window<"u"&&window.navigator.userAgent.indexOf("Trident")>0||typeof window<"u"&&window.navigator.userAgent.indexOf("Edge/")>0,focusedLocation:void 0,currentBehavior:new Yv,cellTemplates:XR,hiddenFocusElement:void 0,reactGridElement:void 0,scrollableElement:void 0,queuedCellChanges:[],currentlyEditedCell:void 0,highlightLocations:[],visibleRange:void 0,topScrollBoudary:-1,bottomScrollBoudary:-1,leftScrollBoudary:-1,rightScrollBoudary:-1,enableGroupIdRender:!1,leftStickyColumns:void 0,topStickyRows:void 0,enableFillHandle:!1,enableRangeSelection:!0,enableColumnSelection:!1,enableRowSelection:!1,contextMenuPosition:{top:-1,left:-1},lineOrientation:"horizontal",linePosition:-1,shadowSize:0,shadowPosition:-1,shadowCursor:"default",selectionMode:"range",selectedRanges:[],selectedIndexes:[],selectedIds:[],activeSelectedRangeIdx:0,copyRange:void 0,rightStickyColumns:void 0,bottomStickyRows:void 0,disableVirtualScrolling:!1},BG=function(e,t){var n=t.cellMatrix,r=function(i,l,u){if(i.ranges.stickyRightRange.first.column&&l.column.idx>=i.ranges.stickyRightRange.first.column.idx){var d=Qe(u.scrollableElement).scrollLeft,s=kt(u).left,c=Ht(d,s);return pi(u).width+c-i.ranges.stickyRightRange.width}}(n,e,t)||HG(n,e)||$G(n,e,t);return r||0},DG=function(e,t){var n=t.cellMatrix,r=function(i,l,u){if(i.ranges.stickyBottomRange.first.row&&l.row.idx>=i.ranges.stickyBottomRange.first.row.idx){var d=Qe(u.scrollableElement).scrollTop,s=kt(u).top,c=Ht(d,s);return pi(u).height+c-i.ranges.stickyBottomRange.height}}(n,e,t)||zG(n,e)||XG(n,e,t);return r||0},GG=function(e){var t=e.state,n=e.location,r=Qe(t.scrollableElement),i=r.scrollTop,l=r.scrollLeft,u=kt(t),d=u.top,s=u.left,c=0,p=0;if(t.scrollableElement!==Ml()){var h=t.scrollableElement.getBoundingClientRect();c=h.left,p=h.top}return{state:t,location:n,left:n.column.left+BG(n,t)+c+s-l,top:n.row.top+DG(n,t)+p+d-i}},WG=function(){var e=Ki(),t=e.currentlyEditedCell,n=e.focusedLocation,r=E.useRef(0),i=E.useReducer(GG,{state:e,location:n}),l=i[0],u=i[1];if(E.useEffect(function(){r.current+=1,u()},[]),!t||!n||r.current===0)return null;var d=e.cellTemplates[t.type];return E.createElement(VG,{cellType:t.type,style:{top:l.top&&l.top-1,left:l.left&&l.left-1,height:n.row.height+1,width:n.column.width+1,position:"fixed"}},d.render(t,!0,function(s,c){e.currentlyEditedCell=c?void 0:s,c&&e.update(function(p){return di(p,n,s)})}))},VG=function(e){var t=e.style,n=e.cellType,r=e.children;return E.createElement("div",{className:"rg-celleditor rg-".concat(n,"-celleditor"),style:t},r)};function HG(e,t){var n;if(t.column.idx>(e.ranges.stickyLeftRange.last.column?e.ranges.stickyLeftRange.last.column.idx:e.first.column.idx)||t.column.idx===e.last.column.idx&&t.column.idx!==((n=e.ranges.stickyLeftRange.last.column)===null||n===void 0?void 0:n.idx))return e.ranges.stickyLeftRange.width}function zG(e,t){var n;if(t.row.idx>(e.ranges.stickyTopRange.last.row?e.ranges.stickyTopRange.last.row.idx:e.first.row.idx)||t.row.idx===e.last.row.idx&&t.row.idx!==((n=e.ranges.stickyTopRange.last.row)===null||n===void 0?void 0:n.idx))return e.ranges.stickyTopRange.height}function $G(e,t,n){if(e.ranges.stickyLeftRange.first.column&&t.column.idx>=e.ranges.stickyLeftRange.first.column.idx&&t.column.idx<=e.ranges.stickyLeftRange.last.column.idx){var r=Qe(n.scrollableElement).scrollLeft,i=kt(n).left;return Ht(r,i)}}function XG(e,t,n){if(e.ranges.stickyTopRange.first.row&&t.row.idx>=e.ranges.stickyTopRange.first.row.idx&&t.row.idx<=e.ranges.stickyTopRange.last.row.idx){var r=Qe(n.scrollableElement).scrollTop,i=kt(n).top;return Ht(r,i)}}var ZG=function(e){var t=e.hiddenElementRefHandler,n=Ki().hiddenFocusElement;return E.createElement("input",{className:"rg-hidden-element",ref:t,inputMode:"none",onBlur:function(r){r.relatedTarget||n==null||n.focus({preventScroll:!0})}})},UG=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.state={hasError:!1},n}return xr(t,e),t.getDerivedStateFromError=function(n){return{hasError:!0,error:n}},t.prototype.componentDidCatch=function(n,r){this.setState({errorInfo:r})},t.prototype.render=function(){var n=this.state,r=n.hasError,i=n.errorInfo,l=n.error;return r?Et.createElement(Et.Fragment,null,Et.createElement("h1",null,l==null?void 0:l.message)," ",Et.createElement("br",null),Et.createElement("br",null),Et.createElement("details",null,l==null?void 0:l.stack,i==null?void 0:i.componentStack)):this.props.children},t}(E.Component);function jv(){return typeof window<"u"&&navigator.userAgent.includes("Firefox")}var YG=function(e){var t=e.eventHandlers,n=e.children,r=Ki(),i=r.cellMatrix,l=r.props,u={width:l!=null&&l.enableFullWidthHeader?"100%":i.width,height:i.height};return E.createElement(UG,null,E.createElement("div",{className:"reactgrid",style:k({position:"relative",paddingRight:jv()?"10px":""},u),ref:t.reactgridRefHandler},E.createElement("div",{className:"reactgrid-content",onKeyDown:t.keyDownHandler,onKeyUp:t.keyUpHandler,onCompositionEnd:t.compositionEndHandler,onPointerDown:t.pointerDownHandler,onPasteCapture:t.pasteCaptureHandler,onPaste:t.pasteHandler,onCopy:t.copyHandler,onCut:t.cutHandler,onBlur:t.blurHandler,style:u},n,E.createElement(ZG,{hiddenElementRefHandler:t.hiddenElementRefHandler}))))},jG={legacyBrowserHeader:"Please update to a modern browser.",legacyBrowserText:"Your current browser cannot run our content, please make sure you browser is fully updated or try adifferent browser. We highly recommend using the most recent release of Google Chrome, Microsoft Edge, Firefox, Safari, and Opera browser",copyLabel:"Copy",cutLabel:"Cut",pasteLabel:"Paste",appleMobileDeviceContextMenuPasteAlert:"Use ⌘ + c for copy, ⌘ + x for cut and ⌘ + v for paste.",otherBrowsersContextMenuPasteAlert:" Use ctrl + c for copy, ctrl + x for cut and ctrl + v for paste.",actionNotSupported:"This action is not supported in this browser."};function ad(e){var t;return k(k({},jG),(t=e.props)===null||t===void 0?void 0:t.labels)}var JG=function(){var e=Ki();return E.createElement(E.Fragment,null,E.createElement("h3",null,ad(e).legacyBrowserHeader),E.createElement("p",null,ad(e).legacyBrowserText))},KG=function(e){e.border;var t=function(n,r){var i={};for(var l in n)Object.prototype.hasOwnProperty.call(n,l)&&r.indexOf(l)<0&&(i[l]=n[l]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function"){var u=0;for(l=Object.getOwnPropertySymbols(n);u0&&(n.onCellsChanged&&n.onCellsChanged(Tt([],i)),i.forEach(function(){return e.queuedCellChanges.pop()})),e!==t&&r(e)}var ud={exports:{}};/** - * @license - * Lodash - * Copyright OpenJS Foundation and other contributors - * Released under MIT license - * Based on Underscore.js 1.8.3 - * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */ud.exports;(function(e,t){(function(){var n,r="4.17.21",i=200,l="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",u="Expected a function",d="Invalid `variable` option passed into `_.template`",s="__lodash_hash_undefined__",c=500,p="__lodash_placeholder__",h=1,y=2,m=4,b=1,w=2,I=1,v=2,x=4,S=8,P=16,O=32,M=64,T=128,_=256,z=512,H=30,J="...",Q=800,ae=16,ie=1,F=2,G=3,re=1/0,U=9007199254740991,ee=17976931348623157e292,ne=NaN,Y=4294967295,se=Y-1,Ie=Y>>>1,ke=[["ary",T],["bind",I],["bindKey",v],["curry",S],["curryRight",P],["flip",z],["partial",O],["partialRight",M],["rearg",_]],Le="[object Arguments]",ce="[object Array]",Me="[object AsyncFunction]",$e="[object Boolean]",yt="[object Date]",Dn="[object DOMException]",an="[object Error]",Qt="[object Function]",Ao="[object GeneratorFunction]",_t="[object Map]",Ir="[object Number]",wf="[object Null]",Gn="[object Object]",Ru="[object Promise]",FE="[object Proxy]",Wl="[object RegExp]",ar="[object Set]",Vl="[object String]",Eu="[object Symbol]",BE="[object Undefined]",Hl="[object WeakMap]",DE="[object WeakSet]",zl="[object ArrayBuffer]",ko="[object DataView]",xf="[object Float32Array]",Cf="[object Float64Array]",If="[object Int8Array]",Sf="[object Int16Array]",Rf="[object Int32Array]",Ef="[object Uint8Array]",Af="[object Uint8ClampedArray]",kf="[object Uint16Array]",Mf="[object Uint32Array]",GE=/\b__p \+= '';/g,WE=/\b(__p \+=) '' \+/g,VE=/(__e\(.*?\)|\b__t\)) \+\n'';/g,qv=/&(?:amp|lt|gt|quot|#39);/g,e0=/[&<>"']/g,HE=RegExp(qv.source),zE=RegExp(e0.source),$E=/<%-([\s\S]+?)%>/g,XE=/<%([\s\S]+?)%>/g,t0=/<%=([\s\S]+?)%>/g,ZE=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,UE=/^\w*$/,YE=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Pf=/[\\^$.*+?()[\]{}|]/g,jE=RegExp(Pf.source),Tf=/^\s+/,JE=/\s/,KE=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,QE=/\{\n\/\* \[wrapped with (.+)\] \*/,qE=/,? & /,e2=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,t2=/[()=,{}\[\]\/\s]/,n2=/\\(\\)?/g,r2=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,n0=/\w*$/,i2=/^[-+]0x[0-9a-f]+$/i,o2=/^0b[01]+$/i,l2=/^\[object .+?Constructor\]$/,a2=/^0o[0-7]+$/i,u2=/^(?:0|[1-9]\d*)$/,s2=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Au=/($^)/,c2=/['\n\r\u2028\u2029\\]/g,ku="\\ud800-\\udfff",d2="\\u0300-\\u036f",f2="\\ufe20-\\ufe2f",p2="\\u20d0-\\u20ff",r0=d2+f2+p2,i0="\\u2700-\\u27bf",o0="a-z\\xdf-\\xf6\\xf8-\\xff",g2="\\xac\\xb1\\xd7\\xf7",h2="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",m2="\\u2000-\\u206f",v2=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",l0="A-Z\\xc0-\\xd6\\xd8-\\xde",a0="\\ufe0e\\ufe0f",u0=g2+h2+m2+v2,Of="['’]",y2="["+ku+"]",s0="["+u0+"]",Mu="["+r0+"]",c0="\\d+",b2="["+i0+"]",d0="["+o0+"]",f0="[^"+ku+u0+c0+i0+o0+l0+"]",Lf="\\ud83c[\\udffb-\\udfff]",w2="(?:"+Mu+"|"+Lf+")",p0="[^"+ku+"]",_f="(?:\\ud83c[\\udde6-\\uddff]){2}",Nf="[\\ud800-\\udbff][\\udc00-\\udfff]",Mo="["+l0+"]",g0="\\u200d",h0="(?:"+d0+"|"+f0+")",x2="(?:"+Mo+"|"+f0+")",m0="(?:"+Of+"(?:d|ll|m|re|s|t|ve))?",v0="(?:"+Of+"(?:D|LL|M|RE|S|T|VE))?",y0=w2+"?",b0="["+a0+"]?",C2="(?:"+g0+"(?:"+[p0,_f,Nf].join("|")+")"+b0+y0+")*",I2="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",S2="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",w0=b0+y0+C2,R2="(?:"+[b2,_f,Nf].join("|")+")"+w0,E2="(?:"+[p0+Mu+"?",Mu,_f,Nf,y2].join("|")+")",A2=RegExp(Of,"g"),k2=RegExp(Mu,"g"),Ff=RegExp(Lf+"(?="+Lf+")|"+E2+w0,"g"),M2=RegExp([Mo+"?"+d0+"+"+m0+"(?="+[s0,Mo,"$"].join("|")+")",x2+"+"+v0+"(?="+[s0,Mo+h0,"$"].join("|")+")",Mo+"?"+h0+"+"+m0,Mo+"+"+v0,S2,I2,c0,R2].join("|"),"g"),P2=RegExp("["+g0+ku+r0+a0+"]"),T2=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,O2=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],L2=-1,Ye={};Ye[xf]=Ye[Cf]=Ye[If]=Ye[Sf]=Ye[Rf]=Ye[Ef]=Ye[Af]=Ye[kf]=Ye[Mf]=!0,Ye[Le]=Ye[ce]=Ye[zl]=Ye[$e]=Ye[ko]=Ye[yt]=Ye[an]=Ye[Qt]=Ye[_t]=Ye[Ir]=Ye[Gn]=Ye[Wl]=Ye[ar]=Ye[Vl]=Ye[Hl]=!1;var Ze={};Ze[Le]=Ze[ce]=Ze[zl]=Ze[ko]=Ze[$e]=Ze[yt]=Ze[xf]=Ze[Cf]=Ze[If]=Ze[Sf]=Ze[Rf]=Ze[_t]=Ze[Ir]=Ze[Gn]=Ze[Wl]=Ze[ar]=Ze[Vl]=Ze[Eu]=Ze[Ef]=Ze[Af]=Ze[kf]=Ze[Mf]=!0,Ze[an]=Ze[Qt]=Ze[Hl]=!1;var _2={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},N2={"&":"&","<":"<",">":">",'"':""","'":"'"},F2={"&":"&","<":"<",">":">",""":'"',"'":"'"},B2={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},D2=parseFloat,G2=parseInt,x0=typeof oa=="object"&&oa&&oa.Object===Object&&oa,W2=typeof self=="object"&&self&&self.Object===Object&&self,Nt=x0||W2||Function("return this")(),Bf=t&&!t.nodeType&&t,qi=Bf&&!0&&e&&!e.nodeType&&e,C0=qi&&qi.exports===Bf,Df=C0&&x0.process,Wn=function(){try{var B=qi&&qi.require&&qi.require("util").types;return B||Df&&Df.binding&&Df.binding("util")}catch{}}(),I0=Wn&&Wn.isArrayBuffer,S0=Wn&&Wn.isDate,R0=Wn&&Wn.isMap,E0=Wn&&Wn.isRegExp,A0=Wn&&Wn.isSet,k0=Wn&&Wn.isTypedArray;function wn(B,V,W){switch(W.length){case 0:return B.call(V);case 1:return B.call(V,W[0]);case 2:return B.call(V,W[0],W[1]);case 3:return B.call(V,W[0],W[1],W[2])}return B.apply(V,W)}function V2(B,V,W,oe){for(var be=-1,_e=B==null?0:B.length;++be<_e;){var Ct=B[be];V(oe,Ct,W(Ct),B)}return oe}function Vn(B,V){for(var W=-1,oe=B==null?0:B.length;++W-1}function Gf(B,V,W){for(var oe=-1,be=B==null?0:B.length;++oe-1;);return W}function F0(B,V){for(var W=B.length;W--&&Po(V,B[W],0)>-1;);return W}function J2(B,V){for(var W=B.length,oe=0;W--;)B[W]===V&&++oe;return oe}var K2=zf(_2),Q2=zf(N2);function q2(B){return"\\"+B2[B]}function eA(B,V){return B==null?n:B[V]}function To(B){return P2.test(B)}function tA(B){return T2.test(B)}function nA(B){for(var V,W=[];!(V=B.next()).done;)W.push(V.value);return W}function Uf(B){var V=-1,W=Array(B.size);return B.forEach(function(oe,be){W[++V]=[be,oe]}),W}function B0(B,V){return function(W){return B(V(W))}}function yi(B,V){for(var W=-1,oe=B.length,be=0,_e=[];++W-1}function zA(o,a){var f=this.__data__,g=Uu(f,o);return g<0?(++this.size,f.push([o,a])):f[g][1]=a,this}Vr.prototype.clear=GA,Vr.prototype.delete=WA,Vr.prototype.get=VA,Vr.prototype.has=HA,Vr.prototype.set=zA;function Hr(o){var a=-1,f=o==null?0:o.length;for(this.clear();++a=a?o:a)),o}function $n(o,a,f,g,C,A){var L,N=a&h,D=a&y,X=a&m;if(f&&(L=C?f(o,g,C,A):f(o)),L!==n)return L;if(!rt(o))return o;var Z=we(o);if(Z){if(L=Uk(o),!N)return un(o,L)}else{var j=$t(o),te=j==Qt||j==Ao;if(Si(o))return by(o,N);if(j==Gn||j==Le||te&&!C){if(L=D||te?{}:Dy(o),!N)return D?Fk(o,ok(L,o)):Nk(o,j0(L,o))}else{if(!Ze[j])return C?o:{};L=Yk(o,j,N)}}A||(A=new sr);var ue=A.get(o);if(ue)return ue;A.set(o,L),p1(o)?o.forEach(function(ve){L.add($n(ve,a,f,ve,o,A))}):d1(o)&&o.forEach(function(ve,Re){L.set(Re,$n(ve,a,f,Re,o,A))});var me=X?D?bp:yp:D?cn:Mt,Ce=Z?n:me(o);return Vn(Ce||o,function(ve,Re){Ce&&(Re=ve,ve=o[Re]),Jl(L,Re,$n(ve,a,f,Re,o,A))}),L}function lk(o){var a=Mt(o);return function(f){return J0(f,o,a)}}function J0(o,a,f){var g=f.length;if(o==null)return!g;for(o=Xe(o);g--;){var C=f[g],A=a[C],L=o[C];if(L===n&&!(C in o)||!A(L))return!1}return!0}function K0(o,a,f){if(typeof o!="function")throw new Hn(u);return ra(function(){o.apply(n,f)},a)}function Kl(o,a,f,g){var C=-1,A=Pu,L=!0,N=o.length,D=[],X=a.length;if(!N)return D;f&&(a=qe(a,xn(f))),g?(A=Gf,L=!1):a.length>=i&&(A=$l,L=!1,a=new no(a));e:for(;++CC?0:C+f),g=g===n||g>C?C:xe(g),g<0&&(g+=C),g=f>g?0:h1(g);f0&&f(N)?a>1?Ft(N,a-1,f,g,C):mi(C,N):g||(C[C.length]=N)}return C}var ep=Ry(),ey=Ry(!0);function Sr(o,a){return o&&ep(o,a,Mt)}function tp(o,a){return o&&ey(o,a,Mt)}function ju(o,a){return hi(a,function(f){return Ur(o[f])})}function io(o,a){a=Ci(a,o);for(var f=0,g=a.length;o!=null&&fa}function sk(o,a){return o!=null&&We.call(o,a)}function ck(o,a){return o!=null&&a in Xe(o)}function dk(o,a,f){return o>=zt(a,f)&&o=120&&Z.length>=120)?new no(L&&Z):n}Z=o[0];var j=-1,te=N[0];e:for(;++j-1;)N!==o&&Wu.call(N,D,1),Wu.call(o,D,1);return o}function dy(o,a){for(var f=o?a.length:0,g=f-1;f--;){var C=a[f];if(f==g||C!==A){var A=C;Zr(C)?Wu.call(o,C,1):dp(o,C)}}return o}function up(o,a){return o+zu(X0()*(a-o+1))}function Sk(o,a,f,g){for(var C=-1,A=It(Hu((a-o)/(f||1)),0),L=W(A);A--;)L[g?A:++C]=o,o+=f;return L}function sp(o,a){var f="";if(!o||a<1||a>U)return f;do a%2&&(f+=o),a=zu(a/2),a&&(o+=o);while(a);return f}function Se(o,a){return Ep(Vy(o,a,dn),o+"")}function Rk(o){return Y0(Ho(o))}function Ek(o,a){var f=Ho(o);return ls(f,ro(a,0,f.length))}function ea(o,a,f,g){if(!rt(o))return o;a=Ci(a,o);for(var C=-1,A=a.length,L=A-1,N=o;N!=null&&++CC?0:C+a),f=f>C?C:f,f<0&&(f+=C),C=a>f?0:f-a>>>0,a>>>=0;for(var A=W(C);++g>>1,L=o[A];L!==null&&!In(L)&&(f?L<=a:L=i){var X=a?null:Wk(o);if(X)return Ou(X);L=!1,C=$l,D=new no}else D=a?[]:N;e:for(;++g=g?o:Xn(o,a,f)}var yy=vA||function(o){return Nt.clearTimeout(o)};function by(o,a){if(a)return o.slice();var f=o.length,g=W0?W0(f):new o.constructor(f);return o.copy(g),g}function hp(o){var a=new o.constructor(o.byteLength);return new Du(a).set(new Du(o)),a}function Tk(o,a){var f=a?hp(o.buffer):o.buffer;return new o.constructor(f,o.byteOffset,o.byteLength)}function Ok(o){var a=new o.constructor(o.source,n0.exec(o));return a.lastIndex=o.lastIndex,a}function Lk(o){return jl?Xe(jl.call(o)):{}}function wy(o,a){var f=a?hp(o.buffer):o.buffer;return new o.constructor(f,o.byteOffset,o.length)}function xy(o,a){if(o!==a){var f=o!==n,g=o===null,C=o===o,A=In(o),L=a!==n,N=a===null,D=a===a,X=In(a);if(!N&&!X&&!A&&o>a||A&&L&&D&&!N&&!X||g&&L&&D||!f&&D||!C)return 1;if(!g&&!A&&!X&&o=N)return D;var X=f[g];return D*(X=="desc"?-1:1)}}return o.index-a.index}function Cy(o,a,f,g){for(var C=-1,A=o.length,L=f.length,N=-1,D=a.length,X=It(A-L,0),Z=W(D+X),j=!g;++N1?f[C-1]:n,L=C>2?f[2]:n;for(A=o.length>3&&typeof A=="function"?(C--,A):n,L&&en(f[0],f[1],L)&&(A=C<3?n:A,C=1),a=Xe(a);++g-1?C[A?a[L]:L]:n}}function ky(o){return Xr(function(a){var f=a.length,g=f,C=zn.prototype.thru;for(o&&a.reverse();g--;){var A=a[g];if(typeof A!="function")throw new Hn(u);if(C&&!L&&is(A)=="wrapper")var L=new zn([],!0)}for(g=L?g:f;++g1&&Pe.reverse(),Z&&DN))return!1;var X=A.get(o),Z=A.get(a);if(X&&Z)return X==a&&Z==o;var j=-1,te=!0,ue=f&w?new no:n;for(A.set(o,a),A.set(a,o);++j1?"& ":"")+a[g],a=a.join(f>2?", ":" "),o.replace(KE,`{ -/* [wrapped with `+a+`] */ -`)}function Jk(o){return we(o)||ao(o)||!!(z0&&o&&o[z0])}function Zr(o,a){var f=typeof o;return a=a??U,!!a&&(f=="number"||f!="symbol"&&u2.test(o))&&o>-1&&o%1==0&&o0){if(++a>=Q)return arguments[0]}else a=0;return o.apply(n,arguments)}}function ls(o,a){var f=-1,g=o.length,C=g-1;for(a=a===n?g:a;++f1?o[a-1]:n;return f=typeof f=="function"?(o.pop(),f):n,qy(o,f)});function e1(o){var a=R(o);return a.__chain__=!0,a}function aP(o,a){return a(o),o}function as(o,a){return a(o)}var uP=Xr(function(o){var a=o.length,f=a?o[0]:0,g=this.__wrapped__,C=function(A){return qf(A,o)};return a>1||this.__actions__.length||!(g instanceof Ae)||!Zr(f)?this.thru(C):(g=g.slice(f,+f+(a?1:0)),g.__actions__.push({func:as,args:[C],thisArg:n}),new zn(g,this.__chain__).thru(function(A){return a&&!A.length&&A.push(n),A}))});function sP(){return e1(this)}function cP(){return new zn(this.value(),this.__chain__)}function dP(){this.__values__===n&&(this.__values__=g1(this.value()));var o=this.__index__>=this.__values__.length,a=o?n:this.__values__[this.__index__++];return{done:o,value:a}}function fP(){return this}function pP(o){for(var a,f=this;f instanceof Zu;){var g=Uy(f);g.__index__=0,g.__values__=n,a?C.__wrapped__=g:a=g;var C=g;f=f.__wrapped__}return C.__wrapped__=o,a}function gP(){var o=this.__wrapped__;if(o instanceof Ae){var a=o;return this.__actions__.length&&(a=new Ae(this)),a=a.reverse(),a.__actions__.push({func:as,args:[Ap],thisArg:n}),new zn(a,this.__chain__)}return this.thru(Ap)}function hP(){return my(this.__wrapped__,this.__actions__)}var mP=qu(function(o,a,f){We.call(o,f)?++o[f]:zr(o,f,1)});function vP(o,a,f){var g=we(o)?M0:ak;return f&&en(o,a,f)&&(a=n),g(o,he(a,3))}function yP(o,a){var f=we(o)?hi:q0;return f(o,he(a,3))}var bP=Ay(Yy),wP=Ay(jy);function xP(o,a){return Ft(us(o,a),1)}function CP(o,a){return Ft(us(o,a),re)}function IP(o,a,f){return f=f===n?1:xe(f),Ft(us(o,a),f)}function t1(o,a){var f=we(o)?Vn:wi;return f(o,he(a,3))}function n1(o,a){var f=we(o)?H2:Q0;return f(o,he(a,3))}var SP=qu(function(o,a,f){We.call(o,f)?o[f].push(a):zr(o,f,[a])});function RP(o,a,f,g){o=sn(o)?o:Ho(o),f=f&&!g?xe(f):0;var C=o.length;return f<0&&(f=It(C+f,0)),ps(o)?f<=C&&o.indexOf(a,f)>-1:!!C&&Po(o,a,f)>-1}var EP=Se(function(o,a,f){var g=-1,C=typeof a=="function",A=sn(o)?W(o.length):[];return wi(o,function(L){A[++g]=C?wn(a,L,f):Ql(L,a,f)}),A}),AP=qu(function(o,a,f){zr(o,f,a)});function us(o,a){var f=we(o)?qe:oy;return f(o,he(a,3))}function kP(o,a,f,g){return o==null?[]:(we(a)||(a=a==null?[]:[a]),f=g?n:f,we(f)||(f=f==null?[]:[f]),sy(o,a,f))}var MP=qu(function(o,a,f){o[f?0:1].push(a)},function(){return[[],[]]});function PP(o,a,f){var g=we(o)?Wf:L0,C=arguments.length<3;return g(o,he(a,4),f,C,wi)}function TP(o,a,f){var g=we(o)?z2:L0,C=arguments.length<3;return g(o,he(a,4),f,C,Q0)}function OP(o,a){var f=we(o)?hi:q0;return f(o,ds(he(a,3)))}function LP(o){var a=we(o)?Y0:Rk;return a(o)}function _P(o,a,f){(f?en(o,a,f):a===n)?a=1:a=xe(a);var g=we(o)?nk:Ek;return g(o,a)}function NP(o){var a=we(o)?rk:kk;return a(o)}function FP(o){if(o==null)return 0;if(sn(o))return ps(o)?Oo(o):o.length;var a=$t(o);return a==_t||a==ar?o.size:op(o).length}function BP(o,a,f){var g=we(o)?Vf:Mk;return f&&en(o,a,f)&&(a=n),g(o,he(a,3))}var DP=Se(function(o,a){if(o==null)return[];var f=a.length;return f>1&&en(o,a[0],a[1])?a=[]:f>2&&en(a[0],a[1],a[2])&&(a=[a[0]]),sy(o,Ft(a,1),[])}),ss=yA||function(){return Nt.Date.now()};function GP(o,a){if(typeof a!="function")throw new Hn(u);return o=xe(o),function(){if(--o<1)return a.apply(this,arguments)}}function r1(o,a,f){return a=f?n:a,a=o&&a==null?o.length:a,$r(o,T,n,n,n,n,a)}function i1(o,a){var f;if(typeof a!="function")throw new Hn(u);return o=xe(o),function(){return--o>0&&(f=a.apply(this,arguments)),o<=1&&(a=n),f}}var Mp=Se(function(o,a,f){var g=I;if(f.length){var C=yi(f,Wo(Mp));g|=O}return $r(o,g,a,f,C)}),o1=Se(function(o,a,f){var g=I|v;if(f.length){var C=yi(f,Wo(o1));g|=O}return $r(a,g,o,f,C)});function l1(o,a,f){a=f?n:a;var g=$r(o,S,n,n,n,n,n,a);return g.placeholder=l1.placeholder,g}function a1(o,a,f){a=f?n:a;var g=$r(o,P,n,n,n,n,n,a);return g.placeholder=a1.placeholder,g}function u1(o,a,f){var g,C,A,L,N,D,X=0,Z=!1,j=!1,te=!0;if(typeof o!="function")throw new Hn(u);a=Un(a)||0,rt(f)&&(Z=!!f.leading,j="maxWait"in f,A=j?It(Un(f.maxWait)||0,a):A,te="trailing"in f?!!f.trailing:te);function ue(gt){var dr=g,jr=C;return g=C=n,X=gt,L=o.apply(jr,dr),L}function me(gt){return X=gt,N=ra(Re,a),Z?ue(gt):L}function Ce(gt){var dr=gt-D,jr=gt-X,A1=a-dr;return j?zt(A1,A-jr):A1}function ve(gt){var dr=gt-D,jr=gt-X;return D===n||dr>=a||dr<0||j&&jr>=A}function Re(){var gt=ss();if(ve(gt))return Pe(gt);N=ra(Re,Ce(gt))}function Pe(gt){return N=n,te&&g?ue(gt):(g=C=n,L)}function Sn(){N!==n&&yy(N),X=0,g=D=C=N=n}function tn(){return N===n?L:Pe(ss())}function Rn(){var gt=ss(),dr=ve(gt);if(g=arguments,C=this,D=gt,dr){if(N===n)return me(D);if(j)return yy(N),N=ra(Re,a),ue(D)}return N===n&&(N=ra(Re,a)),L}return Rn.cancel=Sn,Rn.flush=tn,Rn}var WP=Se(function(o,a){return K0(o,1,a)}),VP=Se(function(o,a,f){return K0(o,Un(a)||0,f)});function HP(o){return $r(o,z)}function cs(o,a){if(typeof o!="function"||a!=null&&typeof a!="function")throw new Hn(u);var f=function(){var g=arguments,C=a?a.apply(this,g):g[0],A=f.cache;if(A.has(C))return A.get(C);var L=o.apply(this,g);return f.cache=A.set(C,L)||A,L};return f.cache=new(cs.Cache||Hr),f}cs.Cache=Hr;function ds(o){if(typeof o!="function")throw new Hn(u);return function(){var a=arguments;switch(a.length){case 0:return!o.call(this);case 1:return!o.call(this,a[0]);case 2:return!o.call(this,a[0],a[1]);case 3:return!o.call(this,a[0],a[1],a[2])}return!o.apply(this,a)}}function zP(o){return i1(2,o)}var $P=Pk(function(o,a){a=a.length==1&&we(a[0])?qe(a[0],xn(he())):qe(Ft(a,1),xn(he()));var f=a.length;return Se(function(g){for(var C=-1,A=zt(g.length,f);++C=a}),ao=ny(function(){return arguments}())?ny:function(o){return at(o)&&We.call(o,"callee")&&!H0.call(o,"callee")},we=W.isArray,oT=I0?xn(I0):pk;function sn(o){return o!=null&&fs(o.length)&&!Ur(o)}function pt(o){return at(o)&&sn(o)}function lT(o){return o===!0||o===!1||at(o)&&qt(o)==$e}var Si=wA||Vp,aT=S0?xn(S0):gk;function uT(o){return at(o)&&o.nodeType===1&&!ia(o)}function sT(o){if(o==null)return!0;if(sn(o)&&(we(o)||typeof o=="string"||typeof o.splice=="function"||Si(o)||Vo(o)||ao(o)))return!o.length;var a=$t(o);if(a==_t||a==ar)return!o.size;if(na(o))return!op(o).length;for(var f in o)if(We.call(o,f))return!1;return!0}function cT(o,a){return ql(o,a)}function dT(o,a,f){f=typeof f=="function"?f:n;var g=f?f(o,a):n;return g===n?ql(o,a,n,f):!!g}function Tp(o){if(!at(o))return!1;var a=qt(o);return a==an||a==Dn||typeof o.message=="string"&&typeof o.name=="string"&&!ia(o)}function fT(o){return typeof o=="number"&&$0(o)}function Ur(o){if(!rt(o))return!1;var a=qt(o);return a==Qt||a==Ao||a==Me||a==FE}function c1(o){return typeof o=="number"&&o==xe(o)}function fs(o){return typeof o=="number"&&o>-1&&o%1==0&&o<=U}function rt(o){var a=typeof o;return o!=null&&(a=="object"||a=="function")}function at(o){return o!=null&&typeof o=="object"}var d1=R0?xn(R0):mk;function pT(o,a){return o===a||ip(o,a,xp(a))}function gT(o,a,f){return f=typeof f=="function"?f:n,ip(o,a,xp(a),f)}function hT(o){return f1(o)&&o!=+o}function mT(o){if(qk(o))throw new be(l);return ry(o)}function vT(o){return o===null}function yT(o){return o==null}function f1(o){return typeof o=="number"||at(o)&&qt(o)==Ir}function ia(o){if(!at(o)||qt(o)!=Gn)return!1;var a=Gu(o);if(a===null)return!0;var f=We.call(a,"constructor")&&a.constructor;return typeof f=="function"&&f instanceof f&&Nu.call(f)==gA}var Op=E0?xn(E0):vk;function bT(o){return c1(o)&&o>=-U&&o<=U}var p1=A0?xn(A0):yk;function ps(o){return typeof o=="string"||!we(o)&&at(o)&&qt(o)==Vl}function In(o){return typeof o=="symbol"||at(o)&&qt(o)==Eu}var Vo=k0?xn(k0):bk;function wT(o){return o===n}function xT(o){return at(o)&&$t(o)==Hl}function CT(o){return at(o)&&qt(o)==DE}var IT=rs(lp),ST=rs(function(o,a){return o<=a});function g1(o){if(!o)return[];if(sn(o))return ps(o)?ur(o):un(o);if(Xl&&o[Xl])return nA(o[Xl]());var a=$t(o),f=a==_t?Uf:a==ar?Ou:Ho;return f(o)}function Yr(o){if(!o)return o===0?o:0;if(o=Un(o),o===re||o===-re){var a=o<0?-1:1;return a*ee}return o===o?o:0}function xe(o){var a=Yr(o),f=a%1;return a===a?f?a-f:a:0}function h1(o){return o?ro(xe(o),0,Y):0}function Un(o){if(typeof o=="number")return o;if(In(o))return ne;if(rt(o)){var a=typeof o.valueOf=="function"?o.valueOf():o;o=rt(a)?a+"":a}if(typeof o!="string")return o===0?o:+o;o=_0(o);var f=o2.test(o);return f||a2.test(o)?G2(o.slice(2),f?2:8):i2.test(o)?ne:+o}function m1(o){return Rr(o,cn(o))}function RT(o){return o?ro(xe(o),-U,U):o===0?o:0}function Ge(o){return o==null?"":Cn(o)}var ET=Do(function(o,a){if(na(a)||sn(a)){Rr(a,Mt(a),o);return}for(var f in a)We.call(a,f)&&Jl(o,f,a[f])}),v1=Do(function(o,a){Rr(a,cn(a),o)}),gs=Do(function(o,a,f,g){Rr(a,cn(a),o,g)}),AT=Do(function(o,a,f,g){Rr(a,Mt(a),o,g)}),kT=Xr(qf);function MT(o,a){var f=Bo(o);return a==null?f:j0(f,a)}var PT=Se(function(o,a){o=Xe(o);var f=-1,g=a.length,C=g>2?a[2]:n;for(C&&en(a[0],a[1],C)&&(g=1);++f1),A}),Rr(o,bp(o),f),g&&(f=$n(f,h|y|m,Vk));for(var C=a.length;C--;)dp(f,a[C]);return f});function YT(o,a){return b1(o,ds(he(a)))}var jT=Xr(function(o,a){return o==null?{}:Ck(o,a)});function b1(o,a){if(o==null)return{};var f=qe(bp(o),function(g){return[g]});return a=he(a),cy(o,f,function(g,C){return a(g,C[0])})}function JT(o,a,f){a=Ci(a,o);var g=-1,C=a.length;for(C||(C=1,o=n);++ga){var g=o;o=a,a=g}if(f||o%1||a%1){var C=X0();return zt(o+C*(a-o+D2("1e-"+((C+"").length-1))),a)}return up(o,a)}var aO=Go(function(o,a,f){return a=a.toLowerCase(),o+(f?C1(a):a)});function C1(o){return Np(Ge(o).toLowerCase())}function I1(o){return o=Ge(o),o&&o.replace(s2,K2).replace(k2,"")}function uO(o,a,f){o=Ge(o),a=Cn(a);var g=o.length;f=f===n?g:ro(xe(f),0,g);var C=f;return f-=a.length,f>=0&&o.slice(f,C)==a}function sO(o){return o=Ge(o),o&&zE.test(o)?o.replace(e0,Q2):o}function cO(o){return o=Ge(o),o&&jE.test(o)?o.replace(Pf,"\\$&"):o}var dO=Go(function(o,a,f){return o+(f?"-":"")+a.toLowerCase()}),fO=Go(function(o,a,f){return o+(f?" ":"")+a.toLowerCase()}),pO=Ey("toLowerCase");function gO(o,a,f){o=Ge(o),a=xe(a);var g=a?Oo(o):0;if(!a||g>=a)return o;var C=(a-g)/2;return ns(zu(C),f)+o+ns(Hu(C),f)}function hO(o,a,f){o=Ge(o),a=xe(a);var g=a?Oo(o):0;return a&&g>>0,f?(o=Ge(o),o&&(typeof a=="string"||a!=null&&!Op(a))&&(a=Cn(a),!a&&To(o))?Ii(ur(o),0,f):o.split(a,f)):[]}var CO=Go(function(o,a,f){return o+(f?" ":"")+Np(a)});function IO(o,a,f){return o=Ge(o),f=f==null?0:ro(xe(f),0,o.length),a=Cn(a),o.slice(f,f+a.length)==a}function SO(o,a,f){var g=R.templateSettings;f&&en(o,a,f)&&(a=n),o=Ge(o),a=gs({},a,g,Ly);var C=gs({},a.imports,g.imports,Ly),A=Mt(C),L=Zf(C,A),N,D,X=0,Z=a.interpolate||Au,j="__p += '",te=Yf((a.escape||Au).source+"|"+Z.source+"|"+(Z===t0?r2:Au).source+"|"+(a.evaluate||Au).source+"|$","g"),ue="//# sourceURL="+(We.call(a,"sourceURL")?(a.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++L2+"]")+` -`;o.replace(te,function(ve,Re,Pe,Sn,tn,Rn){return Pe||(Pe=Sn),j+=o.slice(X,Rn).replace(c2,q2),Re&&(N=!0,j+=`' + -__e(`+Re+`) + -'`),tn&&(D=!0,j+=`'; -`+tn+`; -__p += '`),Pe&&(j+=`' + -((__t = (`+Pe+`)) == null ? '' : __t) + -'`),X=Rn+ve.length,ve}),j+=`'; -`;var me=We.call(a,"variable")&&a.variable;if(!me)j=`with (obj) { -`+j+` -} -`;else if(t2.test(me))throw new be(d);j=(D?j.replace(GE,""):j).replace(WE,"$1").replace(VE,"$1;"),j="function("+(me||"obj")+`) { -`+(me?"":`obj || (obj = {}); -`)+"var __t, __p = ''"+(N?", __e = _.escape":"")+(D?`, __j = Array.prototype.join; -function print() { __p += __j.call(arguments, '') } -`:`; -`)+j+`return __p -}`;var Ce=R1(function(){return _e(A,ue+"return "+j).apply(n,L)});if(Ce.source=j,Tp(Ce))throw Ce;return Ce}function RO(o){return Ge(o).toLowerCase()}function EO(o){return Ge(o).toUpperCase()}function AO(o,a,f){if(o=Ge(o),o&&(f||a===n))return _0(o);if(!o||!(a=Cn(a)))return o;var g=ur(o),C=ur(a),A=N0(g,C),L=F0(g,C)+1;return Ii(g,A,L).join("")}function kO(o,a,f){if(o=Ge(o),o&&(f||a===n))return o.slice(0,D0(o)+1);if(!o||!(a=Cn(a)))return o;var g=ur(o),C=F0(g,ur(a))+1;return Ii(g,0,C).join("")}function MO(o,a,f){if(o=Ge(o),o&&(f||a===n))return o.replace(Tf,"");if(!o||!(a=Cn(a)))return o;var g=ur(o),C=N0(g,ur(a));return Ii(g,C).join("")}function PO(o,a){var f=H,g=J;if(rt(a)){var C="separator"in a?a.separator:C;f="length"in a?xe(a.length):f,g="omission"in a?Cn(a.omission):g}o=Ge(o);var A=o.length;if(To(o)){var L=ur(o);A=L.length}if(f>=A)return o;var N=f-Oo(g);if(N<1)return g;var D=L?Ii(L,0,N).join(""):o.slice(0,N);if(C===n)return D+g;if(L&&(N+=D.length-N),Op(C)){if(o.slice(N).search(C)){var X,Z=D;for(C.global||(C=Yf(C.source,Ge(n0.exec(C))+"g")),C.lastIndex=0;X=C.exec(Z);)var j=X.index;D=D.slice(0,j===n?N:j)}}else if(o.indexOf(Cn(C),N)!=N){var te=D.lastIndexOf(C);te>-1&&(D=D.slice(0,te))}return D+g}function TO(o){return o=Ge(o),o&&HE.test(o)?o.replace(qv,lA):o}var OO=Go(function(o,a,f){return o+(f?" ":"")+a.toUpperCase()}),Np=Ey("toUpperCase");function S1(o,a,f){return o=Ge(o),a=f?n:a,a===n?tA(o)?sA(o):Z2(o):o.match(a)||[]}var R1=Se(function(o,a){try{return wn(o,n,a)}catch(f){return Tp(f)?f:new be(f)}}),LO=Xr(function(o,a){return Vn(a,function(f){f=Er(f),zr(o,f,Mp(o[f],o))}),o});function _O(o){var a=o==null?0:o.length,f=he();return o=a?qe(o,function(g){if(typeof g[1]!="function")throw new Hn(u);return[f(g[0]),g[1]]}):[],Se(function(g){for(var C=-1;++CU)return[];var f=Y,g=zt(o,Y);a=he(a),o-=Y;for(var C=Xf(g,a);++f0||a<0)?new Ae(f):(o<0?f=f.takeRight(-o):o&&(f=f.drop(o)),a!==n&&(a=xe(a),f=a<0?f.dropRight(-a):f.take(a-o)),f)},Ae.prototype.takeRightWhile=function(o){return this.reverse().takeWhile(o).reverse()},Ae.prototype.toArray=function(){return this.take(Y)},Sr(Ae.prototype,function(o,a){var f=/^(?:filter|find|map|reject)|While$/.test(a),g=/^(?:head|last)$/.test(a),C=R[g?"take"+(a=="last"?"Right":""):a],A=g||/^find/.test(a);C&&(R.prototype[a]=function(){var L=this.__wrapped__,N=g?[1]:arguments,D=L instanceof Ae,X=N[0],Z=D||we(L),j=function(Re){var Pe=C.apply(R,mi([Re],N));return g&&te?Pe[0]:Pe};Z&&f&&typeof X=="function"&&X.length!=1&&(D=Z=!1);var te=this.__chain__,ue=!!this.__actions__.length,me=A&&!te,Ce=D&&!ue;if(!A&&Z){L=Ce?L:new Ae(this);var ve=o.apply(L,N);return ve.__actions__.push({func:as,args:[j],thisArg:n}),new zn(ve,te)}return me&&Ce?o.apply(this,N):(ve=this.thru(j),me?g?ve.value()[0]:ve.value():ve)})}),Vn(["pop","push","shift","sort","splice","unshift"],function(o){var a=Lu[o],f=/^(?:push|sort|unshift)$/.test(o)?"tap":"thru",g=/^(?:pop|shift)$/.test(o);R.prototype[o]=function(){var C=arguments;if(g&&!this.__chain__){var A=this.value();return a.apply(we(A)?A:[],C)}return this[f](function(L){return a.apply(we(L)?L:[],C)})}}),Sr(Ae.prototype,function(o,a){var f=R[a];if(f){var g=f.name+"";We.call(Fo,g)||(Fo[g]=[]),Fo[g].push({name:a,func:f})}}),Fo[es(n,v).name]=[{name:"wrapper",func:n}],Ae.prototype.clone=TA,Ae.prototype.reverse=OA,Ae.prototype.value=LA,R.prototype.at=uP,R.prototype.chain=sP,R.prototype.commit=cP,R.prototype.next=dP,R.prototype.plant=pP,R.prototype.reverse=gP,R.prototype.toJSON=R.prototype.valueOf=R.prototype.value=hP,R.prototype.first=R.prototype.head,Xl&&(R.prototype[Xl]=fP),R},Lo=cA();qi?((qi.exports=Lo)._=Lo,Bf._=Lo):Nt._=Lo}).call(oa)})(ud,ud.exports);var fW=ud.exports;const pW=Vx(fW),_g=e=>e.toString().padStart(2,"0");class gW{constructor(){k1(this,"wasEscKeyPressed",!1)}getCompatibleCell(t){const n=t.date?Je(t,"date","object"):new Date(NaN),r=t.format||new Intl.DateTimeFormat(window.navigator.language),i=n.getTime(),l=Number.isNaN(i)?"":r.format(n);return{...t,date:n,value:i,text:l}}handleKeyDown(t,n,r,i,l,u,d){return!r&&iR(Wr(u))?{cell:this.getCompatibleCell({...t}),enableEditMode:!0}:{cell:t,enableEditMode:n===$.POINTER||n===$.ENTER}}update(t,n){return this.getCompatibleCell({...t,date:new Date(n.text),text:n.text})}getClassName(t,n){return t.className?t.className:""}render(t,n,r){if(!n)return t.text;if(!t.date)return'"cell.date" is not initialized with a date value';const i=_g(t.date.getFullYear()),l=_g(t.date.getMonth()+1),u=_g(t.date.getDate());return Te.jsx("input",{className:"rg-input",ref:d=>{d&&d.focus()},type:"date",defaultValue:`${i}-${l}-${u}`,onChange:d=>{if(d.currentTarget.value){const[s,c,p]=d.currentTarget.value.split("-").map(h=>parseInt(h,10));r(this.getCompatibleCell({...t,date:new Date(s,c-1,p)}),!1)}else pW.set(t,"date",new Date(NaN)),r(this.getCompatibleCell(t),!0)},onBlur:d=>{if(d.currentTarget.value){const[s,c,p]=d.currentTarget.value.split("-").map(h=>parseInt(h,10));r(this.getCompatibleCell({...t,date:new Date(s,c-1,p)}),!this.wasEscKeyPressed),this.wasEscKeyPressed=!1}},onKeyDown:d=>{(zi(d.keyCode)||ir(d.keyCode)||d.keyCode===$.COMMA||d.keyCode===$.PERIOD||(d.ctrlKey||d.metaKey)&&d.keyCode===$.KEY_A)&&d.stopPropagation(),!zi(d.keyCode)&&!ir(d.keyCode)&&d.keyCode!==$.COMMA&&d.keyCode!==$.PERIOD&&d.preventDefault(),d.keyCode===$.ESCAPE&&(this.wasEscKeyPressed=!0)},onCopy:d=>d.stopPropagation(),onCut:d=>d.stopPropagation(),onPaste:d=>d.stopPropagation(),onPointerDown:d=>d.stopPropagation()})}}function Ea(e,t,n){return(t=XS(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Cx(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ge(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n=0||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var yW=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function bW(e){var t=e.defaultInputValue,n=t===void 0?"":t,r=e.defaultMenuIsOpen,i=r===void 0?!1:r,l=e.defaultValue,u=l===void 0?null:l,d=e.inputValue,s=e.menuIsOpen,c=e.onChange,p=e.onInputChange,h=e.onMenuClose,y=e.onMenuOpen,m=e.value,b=gi(e,yW),w=E.useState(d!==void 0?d:n),I=oi(w,2),v=I[0],x=I[1],S=E.useState(s!==void 0?s:i),P=oi(S,2),O=P[0],M=P[1],T=E.useState(m!==void 0?m:u),_=oi(T,2),z=_[0],H=_[1],J=E.useCallback(function(U,ee){typeof c=="function"&&c(U,ee),H(U)},[c]),Q=E.useCallback(function(U,ee){var ne;typeof p=="function"&&(ne=p(U,ee)),x(ne!==void 0?ne:U)},[p]),ae=E.useCallback(function(){typeof y=="function"&&y(),M(!0)},[y]),ie=E.useCallback(function(){typeof h=="function"&&h(),M(!1)},[h]),F=d!==void 0?d:v,G=s!==void 0?s:O,re=m!==void 0?m:z;return ge(ge({},b),{},{inputValue:F,menuIsOpen:G,onChange:J,onInputChange:Q,onMenuClose:ie,onMenuOpen:ae,value:re})}function wW(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ix(e,t){for(var n=0;n2?n-2:0),i=2;i-1}function OW(e){return bf(e)?window.innerHeight:e.clientHeight}function hE(e){return bf(e)?window.pageYOffset:e.scrollTop}function dd(e,t){if(bf(e)){window.scrollTo(0,t);return}e.scrollTop=t}function LW(e){var t=getComputedStyle(e),n=t.position==="absolute",r=/(auto|scroll)/;if(t.position==="fixed")return document.documentElement;for(var i=e;i=i.parentElement;)if(t=getComputedStyle(i),!(n&&t.position==="static")&&r.test(t.overflow+t.overflowY+t.overflowX))return i;return document.documentElement}function _W(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}function $s(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:cd,i=hE(e),l=t-i,u=10,d=0;function s(){d+=u;var c=_W(d,i,l,n);dd(e,c),dn.bottom?dd(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+i,e.scrollHeight)):r.top-i1?n-1:0),i=1;i=b)return{placement:"bottom",maxHeight:t};if(z>=b&&!u)return l&&$s(s,H,Q),{placement:"bottom",maxHeight:t};if(!u&&z>=r||u&&T>=r){l&&$s(s,H,Q);var ae=u?T-P:z-P;return{placement:"bottom",maxHeight:ae}}if(i==="auto"||u){var ie=t,F=u?M:_;return F>=r&&(ie=Math.min(F-P-d,t)),{placement:"top",maxHeight:ie}}if(i==="bottom")return l&&dd(s,H),{placement:"bottom",maxHeight:t};break;case"top":if(M>=b)return{placement:"top",maxHeight:t};if(_>=b&&!u)return l&&$s(s,J,Q),{placement:"top",maxHeight:t};if(!u&&_>=r||u&&M>=r){var G=t;return(!u&&_>=r||u&&M>=r)&&(G=u?M-O:_-O),l&&$s(s,J,Q),{placement:"top",maxHeight:G}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(i,'".'))}return c}function XW(e){var t={bottom:"top",top:"bottom"};return e?t[e]:"bottom"}var vE=function(t){return t==="auto"?"bottom":t},ZW=function(t,n){var r,i=t.placement,l=t.theme,u=l.borderRadius,d=l.spacing,s=l.colors;return ge((r={label:"menu"},Ea(r,XW(i),"100%"),Ea(r,"position","absolute"),Ea(r,"width","100%"),Ea(r,"zIndex",1),r),n?{}:{backgroundColor:s.neutral0,borderRadius:u,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:d.menuGutter,marginTop:d.menuGutter})},yE=E.createContext(null),UW=function(t){var n=t.children,r=t.minMenuHeight,i=t.maxMenuHeight,l=t.menuPlacement,u=t.menuPosition,d=t.menuShouldScrollIntoView,s=t.theme,c=E.useContext(yE)||{},p=c.setPortalPlacement,h=E.useRef(null),y=E.useState(i),m=oi(y,2),b=m[0],w=m[1],I=E.useState(null),v=oi(I,2),x=v[0],S=v[1],P=s.spacing.controlHeight;return em(function(){var O=h.current;if(O){var M=u==="fixed",T=d&&!M,_=$W({maxHeight:i,menuEl:O,minHeight:r,placement:l,shouldScroll:T,isFixedPosition:M,controlHeight:P});w(_.maxHeight),S(_.placement),p==null||p(_.placement)}},[i,l,u,d,r,p,P]),n({ref:h,placerProps:ge(ge({},t),{},{placement:x||vE(l),maxHeight:b})})},YW=function(t){var n=t.children,r=t.innerRef,i=t.innerProps;return fe("div",q({},ft(t,"menu",{menu:!0}),{ref:r},i),n)},jW=YW,JW=function(t,n){var r=t.maxHeight,i=t.theme.spacing.baseUnit;return ge({maxHeight:r,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},n?{}:{paddingBottom:i,paddingTop:i})},KW=function(t){var n=t.children,r=t.innerProps,i=t.innerRef,l=t.isMulti;return fe("div",q({},ft(t,"menuList",{"menu-list":!0,"menu-list--is-multi":l}),{ref:i},r),n)},bE=function(t,n){var r=t.theme,i=r.spacing.baseUnit,l=r.colors;return ge({textAlign:"center"},n?{}:{color:l.neutral40,padding:"".concat(i*2,"px ").concat(i*3,"px")})},QW=bE,qW=bE,eV=function(t){var n=t.children,r=n===void 0?"No options":n,i=t.innerProps,l=gi(t,HW);return fe("div",q({},ft(ge(ge({},l),{},{children:r,innerProps:i}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),i),r)},tV=function(t){var n=t.children,r=n===void 0?"Loading...":n,i=t.innerProps,l=gi(t,zW);return fe("div",q({},ft(ge(ge({},l),{},{children:r,innerProps:i}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),i),r)},nV=function(t){var n=t.rect,r=t.offset,i=t.position;return{left:n.left,position:i,top:r,width:n.width,zIndex:1}},rV=function(t){var n=t.appendTo,r=t.children,i=t.controlElement,l=t.innerProps,u=t.menuPlacement,d=t.menuPosition,s=E.useRef(null),c=E.useRef(null),p=E.useState(vE(u)),h=oi(p,2),y=h[0],m=h[1],b=E.useMemo(function(){return{setPortalPlacement:m}},[]),w=E.useState(null),I=oi(w,2),v=I[0],x=I[1],S=E.useCallback(function(){if(i){var T=NW(i),_=d==="fixed"?0:window.pageYOffset,z=T[y]+_;(z!==(v==null?void 0:v.offset)||T.left!==(v==null?void 0:v.rect.left)||T.width!==(v==null?void 0:v.rect.width))&&x({offset:z,rect:T})}},[i,d,y,v==null?void 0:v.offset,v==null?void 0:v.rect.left,v==null?void 0:v.rect.width]);em(function(){S()},[S]);var P=E.useCallback(function(){typeof c.current=="function"&&(c.current(),c.current=null),i&&s.current&&(c.current=X9(i,s.current,S,{elementResize:"ResizeObserver"in window}))},[i,S]);em(function(){P()},[P]);var O=E.useCallback(function(T){s.current=T,P()},[P]);if(!n&&d!=="fixed"||!v)return null;var M=fe("div",q({ref:O},ft(ge(ge({},t),{},{offset:v.offset,position:d,rect:v.rect}),"menuPortal",{"menu-portal":!0}),l),r);return fe(yE.Provider,{value:b},n?Jm.createPortal(M,n):M)},iV=function(t){var n=t.isDisabled,r=t.isRtl;return{label:"container",direction:r?"rtl":void 0,pointerEvents:n?"none":void 0,position:"relative"}},oV=function(t){var n=t.children,r=t.innerProps,i=t.isDisabled,l=t.isRtl;return fe("div",q({},ft(t,"container",{"--is-disabled":i,"--is-rtl":l}),r),n)},lV=function(t,n){var r=t.theme.spacing,i=t.isMulti,l=t.hasValue,u=t.selectProps.controlShouldRenderValue;return ge({alignItems:"center",display:i&&l&&u?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},n?{}:{padding:"".concat(r.baseUnit/2,"px ").concat(r.baseUnit*2,"px")})},aV=function(t){var n=t.children,r=t.innerProps,i=t.isMulti,l=t.hasValue;return fe("div",q({},ft(t,"valueContainer",{"value-container":!0,"value-container--is-multi":i,"value-container--has-value":l}),r),n)},uV=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},sV=function(t){var n=t.children,r=t.innerProps;return fe("div",q({},ft(t,"indicatorsContainer",{indicators:!0}),r),n)},Ax,cV=["size"],dV=["innerProps","isRtl","size"],fV={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},wE=function(t){var n=t.size,r=gi(t,cV);return fe("svg",q({height:n,width:n,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:fV},r))},Kv=function(t){return fe(wE,q({size:20},t),fe("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},xE=function(t){return fe(wE,q({size:20},t),fe("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},CE=function(t,n){var r=t.isFocused,i=t.theme,l=i.spacing.baseUnit,u=i.colors;return ge({label:"indicatorContainer",display:"flex",transition:"color 150ms"},n?{}:{color:r?u.neutral60:u.neutral20,padding:l*2,":hover":{color:r?u.neutral80:u.neutral40}})},pV=CE,gV=function(t){var n=t.children,r=t.innerProps;return fe("div",q({},ft(t,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),r),n||fe(xE,null))},hV=CE,mV=function(t){var n=t.children,r=t.innerProps;return fe("div",q({},ft(t,"clearIndicator",{indicator:!0,"clear-indicator":!0}),r),n||fe(Kv,null))},vV=function(t,n){var r=t.isDisabled,i=t.theme,l=i.spacing.baseUnit,u=i.colors;return ge({label:"indicatorSeparator",alignSelf:"stretch",width:1},n?{}:{backgroundColor:r?u.neutral10:u.neutral20,marginBottom:l*2,marginTop:l*2})},yV=function(t){var n=t.innerProps;return fe("span",q({},n,ft(t,"indicatorSeparator",{"indicator-separator":!0})))},bV=ES(Ax||(Ax=kW([` - 0%, 80%, 100% { opacity: 0; } - 40% { opacity: 1; } -`]))),wV=function(t,n){var r=t.isFocused,i=t.size,l=t.theme,u=l.colors,d=l.spacing.baseUnit;return ge({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:i,lineHeight:1,marginRight:i,textAlign:"center",verticalAlign:"middle"},n?{}:{color:r?u.neutral60:u.neutral20,padding:d*2})},Ng=function(t){var n=t.delay,r=t.offset;return fe("span",{css:Jd({animation:"".concat(bV," 1s ease-in-out ").concat(n,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:r?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},xV=function(t){var n=t.innerProps,r=t.isRtl,i=t.size,l=i===void 0?4:i,u=gi(t,dV);return fe("div",q({},ft(ge(ge({},u),{},{innerProps:n,isRtl:r,size:l}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),n),fe(Ng,{delay:0,offset:r}),fe(Ng,{delay:160,offset:!0}),fe(Ng,{delay:320,offset:!r}))},CV=function(t,n){var r=t.isDisabled,i=t.isFocused,l=t.theme,u=l.colors,d=l.borderRadius,s=l.spacing;return ge({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:s.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},n?{}:{backgroundColor:r?u.neutral5:u.neutral0,borderColor:r?u.neutral10:i?u.primary:u.neutral20,borderRadius:d,borderStyle:"solid",borderWidth:1,boxShadow:i?"0 0 0 1px ".concat(u.primary):void 0,"&:hover":{borderColor:i?u.primary:u.neutral30}})},IV=function(t){var n=t.children,r=t.isDisabled,i=t.isFocused,l=t.innerRef,u=t.innerProps,d=t.menuIsOpen;return fe("div",q({ref:l},ft(t,"control",{control:!0,"control--is-disabled":r,"control--is-focused":i,"control--menu-is-open":d}),u,{"aria-disabled":r||void 0}),n)},SV=IV,RV=["data"],EV=function(t,n){var r=t.theme.spacing;return n?{}:{paddingBottom:r.baseUnit*2,paddingTop:r.baseUnit*2}},AV=function(t){var n=t.children,r=t.cx,i=t.getStyles,l=t.getClassNames,u=t.Heading,d=t.headingProps,s=t.innerProps,c=t.label,p=t.theme,h=t.selectProps;return fe("div",q({},ft(t,"group",{group:!0}),s),fe(u,q({},d,{selectProps:h,theme:p,getStyles:i,getClassNames:l,cx:r}),c),fe("div",null,n))},kV=function(t,n){var r=t.theme,i=r.colors,l=r.spacing;return ge({label:"group",cursor:"default",display:"block"},n?{}:{color:i.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:l.baseUnit*3,paddingRight:l.baseUnit*3,textTransform:"uppercase"})},MV=function(t){var n=gE(t);n.data;var r=gi(n,RV);return fe("div",q({},ft(t,"groupHeading",{"group-heading":!0}),r))},PV=AV,TV=["innerRef","isDisabled","isHidden","inputClassName"],OV=function(t,n){var r=t.isDisabled,i=t.value,l=t.theme,u=l.spacing,d=l.colors;return ge(ge({visibility:r?"hidden":"visible",transform:i?"translateZ(0)":""},LV),n?{}:{margin:u.baseUnit/2,paddingBottom:u.baseUnit/2,paddingTop:u.baseUnit/2,color:d.neutral80})},IE={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},LV={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":ge({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},IE)},_V=function(t){return ge({label:"input",color:"inherit",background:0,opacity:t?0:1,width:"100%"},IE)},NV=function(t){var n=t.cx,r=t.value,i=gE(t),l=i.innerRef,u=i.isDisabled,d=i.isHidden,s=i.inputClassName,c=gi(i,TV);return fe("div",q({},ft(t,"input",{"input-container":!0}),{"data-value":r||""}),fe("input",q({className:n({input:!0},s),ref:l,style:_V(d),disabled:u},c)))},FV=NV,BV=function(t,n){var r=t.theme,i=r.spacing,l=r.borderRadius,u=r.colors;return ge({label:"multiValue",display:"flex",minWidth:0},n?{}:{backgroundColor:u.neutral10,borderRadius:l/2,margin:i.baseUnit/2})},DV=function(t,n){var r=t.theme,i=r.borderRadius,l=r.colors,u=t.cropWithEllipsis;return ge({overflow:"hidden",textOverflow:u||u===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},n?{}:{borderRadius:i/2,color:l.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},GV=function(t,n){var r=t.theme,i=r.spacing,l=r.borderRadius,u=r.colors,d=t.isFocused;return ge({alignItems:"center",display:"flex"},n?{}:{borderRadius:l/2,backgroundColor:d?u.dangerLight:void 0,paddingLeft:i.baseUnit,paddingRight:i.baseUnit,":hover":{backgroundColor:u.dangerLight,color:u.danger}})},SE=function(t){var n=t.children,r=t.innerProps;return fe("div",r,n)},WV=SE,VV=SE;function HV(e){var t=e.children,n=e.innerProps;return fe("div",q({role:"button"},n),t||fe(Kv,{size:14}))}var zV=function(t){var n=t.children,r=t.components,i=t.data,l=t.innerProps,u=t.isDisabled,d=t.removeProps,s=t.selectProps,c=r.Container,p=r.Label,h=r.Remove;return fe(c,{data:i,innerProps:ge(ge({},ft(t,"multiValue",{"multi-value":!0,"multi-value--is-disabled":u})),l),selectProps:s},fe(p,{data:i,innerProps:ge({},ft(t,"multiValueLabel",{"multi-value__label":!0})),selectProps:s},n),fe(h,{data:i,innerProps:ge(ge({},ft(t,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(n||"option")},d),selectProps:s}))},$V=zV,XV=function(t,n){var r=t.isDisabled,i=t.isFocused,l=t.isSelected,u=t.theme,d=u.spacing,s=u.colors;return ge({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},n?{}:{backgroundColor:l?s.primary:i?s.primary25:"transparent",color:r?s.neutral20:l?s.neutral0:"inherit",padding:"".concat(d.baseUnit*2,"px ").concat(d.baseUnit*3,"px"),":active":{backgroundColor:r?void 0:l?s.primary:s.primary50}})},ZV=function(t){var n=t.children,r=t.isDisabled,i=t.isFocused,l=t.isSelected,u=t.innerRef,d=t.innerProps;return fe("div",q({},ft(t,"option",{option:!0,"option--is-disabled":r,"option--is-focused":i,"option--is-selected":l}),{ref:u,"aria-disabled":r},d),n)},UV=ZV,YV=function(t,n){var r=t.theme,i=r.spacing,l=r.colors;return ge({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},n?{}:{color:l.neutral50,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},jV=function(t){var n=t.children,r=t.innerProps;return fe("div",q({},ft(t,"placeholder",{placeholder:!0}),r),n)},JV=jV,KV=function(t,n){var r=t.isDisabled,i=t.theme,l=i.spacing,u=i.colors;return ge({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},n?{}:{color:r?u.neutral40:u.neutral80,marginLeft:l.baseUnit/2,marginRight:l.baseUnit/2})},QV=function(t){var n=t.children,r=t.isDisabled,i=t.innerProps;return fe("div",q({},ft(t,"singleValue",{"single-value":!0,"single-value--is-disabled":r}),i),n)},qV=QV,eH={ClearIndicator:mV,Control:SV,DropdownIndicator:gV,DownChevron:xE,CrossIcon:Kv,Group:PV,GroupHeading:MV,IndicatorsContainer:sV,IndicatorSeparator:yV,Input:FV,LoadingIndicator:xV,Menu:jW,MenuList:KW,MenuPortal:rV,LoadingMessage:tV,NoOptionsMessage:eV,MultiValue:$V,MultiValueContainer:WV,MultiValueLabel:VV,MultiValueRemove:HV,Option:UV,Placeholder:JV,SelectContainer:oV,SingleValue:qV,ValueContainer:aV},tH=function(t){return ge(ge({},eH),t.components)},kx=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function nH(e,t){return!!(e===t||kx(e)&&kx(t))}function rH(e,t){if(e.length!==t.length)return!1;for(var n=0;n1?"s":""," ").concat(l.join(","),", selected.");case"select-option":return u?"option ".concat(i," is disabled. Select another option."):"option ".concat(i,", selected.");default:return""}},onFocus:function(t){var n=t.context,r=t.focused,i=t.options,l=t.label,u=l===void 0?"":l,d=t.selectValue,s=t.isDisabled,c=t.isSelected,p=t.isAppleDevice,h=function(w,I){return w&&w.length?"".concat(w.indexOf(I)+1," of ").concat(w.length):""};if(n==="value"&&d)return"value ".concat(u," focused, ").concat(h(d,r),".");if(n==="menu"&&p){var y=s?" disabled":"",m="".concat(c?" selected":"").concat(y);return"".concat(u).concat(m,", ").concat(h(i,r),".")}return""},onFilter:function(t){var n=t.inputValue,r=t.resultsMessage;return"".concat(r).concat(n?" for search term "+n:"",".")}},uH=function(t){var n=t.ariaSelection,r=t.focusedOption,i=t.focusedValue,l=t.focusableOptions,u=t.isFocused,d=t.selectValue,s=t.selectProps,c=t.id,p=t.isAppleDevice,h=s.ariaLiveMessages,y=s.getOptionLabel,m=s.inputValue,b=s.isMulti,w=s.isOptionDisabled,I=s.isSearchable,v=s.menuIsOpen,x=s.options,S=s.screenReaderStatus,P=s.tabSelectsValue,O=s.isLoading,M=s["aria-label"],T=s["aria-live"],_=E.useMemo(function(){return ge(ge({},aH),h||{})},[h]),z=E.useMemo(function(){var F="";if(n&&_.onChange){var G=n.option,re=n.options,U=n.removedValue,ee=n.removedValues,ne=n.value,Y=function($e){return Array.isArray($e)?null:$e},se=U||G||Y(ne),Ie=se?y(se):"",ke=re||ee||void 0,Le=ke?ke.map(y):[],ce=ge({isDisabled:se&&w(se,d),label:Ie,labels:Le},n);F=_.onChange(ce)}return F},[n,_,w,d,y]),H=E.useMemo(function(){var F="",G=r||i,re=!!(r&&d&&d.includes(r));if(G&&_.onFocus){var U={focused:G,label:y(G),isDisabled:w(G,d),isSelected:re,options:l,context:G===r?"menu":"value",selectValue:d,isAppleDevice:p};F=_.onFocus(U)}return F},[r,i,y,w,_,l,d,p]),J=E.useMemo(function(){var F="";if(v&&x.length&&!O&&_.onFilter){var G=S({count:l.length});F=_.onFilter({inputValue:m,resultsMessage:G})}return F},[l,m,v,_,x,S,O]),Q=(n==null?void 0:n.action)==="initial-input-focus",ae=E.useMemo(function(){var F="";if(_.guidance){var G=i?"value":v?"menu":"input";F=_.guidance({"aria-label":M,context:G,isDisabled:r&&w(r,d),isMulti:b,isSearchable:I,tabSelectsValue:P,isInitialFocus:Q})}return F},[M,r,i,b,w,I,v,_,d,P,Q]),ie=fe(E.Fragment,null,fe("span",{id:"aria-selection"},z),fe("span",{id:"aria-focused"},H),fe("span",{id:"aria-results"},J),fe("span",{id:"aria-guidance"},ae));return fe(E.Fragment,null,fe(Mx,{id:c},Q&&ie),fe(Mx,{"aria-live":T,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},u&&!Q&&ie))},sH=uH,tm=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],cH=new RegExp("["+tm.map(function(e){return e.letters}).join("")+"]","g"),RE={};for(var Fg=0;Fg-1}},gH=["innerRef"];function hH(e){var t=e.innerRef,n=gi(e,gH),r=VW(n,"onExited","in","enter","exit","appear");return fe("input",q({ref:t},r,{css:Jd({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var mH=function(t){t.cancelable&&t.preventDefault(),t.stopPropagation()};function vH(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,i=e.onTopArrive,l=e.onTopLeave,u=E.useRef(!1),d=E.useRef(!1),s=E.useRef(0),c=E.useRef(null),p=E.useCallback(function(I,v){if(c.current!==null){var x=c.current,S=x.scrollTop,P=x.scrollHeight,O=x.clientHeight,M=c.current,T=v>0,_=P-O-S,z=!1;_>v&&u.current&&(r&&r(I),u.current=!1),T&&d.current&&(l&&l(I),d.current=!1),T&&v>_?(n&&!u.current&&n(I),M.scrollTop=P,z=!0,u.current=!0):!T&&-v>S&&(i&&!d.current&&i(I),M.scrollTop=0,z=!0,d.current=!0),z&&mH(I)}},[n,r,i,l]),h=E.useCallback(function(I){p(I,I.deltaY)},[p]),y=E.useCallback(function(I){s.current=I.changedTouches[0].clientY},[]),m=E.useCallback(function(I){var v=s.current-I.changedTouches[0].clientY;p(I,v)},[p]),b=E.useCallback(function(I){if(I){var v=DW?{passive:!1}:!1;I.addEventListener("wheel",h,v),I.addEventListener("touchstart",y,v),I.addEventListener("touchmove",m,v)}},[m,y,h]),w=E.useCallback(function(I){I&&(I.removeEventListener("wheel",h,!1),I.removeEventListener("touchstart",y,!1),I.removeEventListener("touchmove",m,!1))},[m,y,h]);return E.useEffect(function(){if(t){var I=c.current;return b(I),function(){w(I)}}},[t,b,w]),function(I){c.current=I}}var Tx=["boxSizing","height","overflow","paddingRight","position"],Ox={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function Lx(e){e.preventDefault()}function _x(e){e.stopPropagation()}function Nx(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;e===0?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function Fx(){return"ontouchstart"in window||navigator.maxTouchPoints}var Bx=!!(typeof window<"u"&&window.document&&window.document.createElement),wa=0,Ko={capture:!1,passive:!1};function yH(e){var t=e.isEnabled,n=e.accountForScrollbars,r=n===void 0?!0:n,i=E.useRef({}),l=E.useRef(null),u=E.useCallback(function(s){if(Bx){var c=document.body,p=c&&c.style;if(r&&Tx.forEach(function(b){var w=p&&p[b];i.current[b]=w}),r&&wa<1){var h=parseInt(i.current.paddingRight,10)||0,y=document.body?document.body.clientWidth:0,m=window.innerWidth-y+h||0;Object.keys(Ox).forEach(function(b){var w=Ox[b];p&&(p[b]=w)}),p&&(p.paddingRight="".concat(m,"px"))}c&&Fx()&&(c.addEventListener("touchmove",Lx,Ko),s&&(s.addEventListener("touchstart",Nx,Ko),s.addEventListener("touchmove",_x,Ko))),wa+=1}},[r]),d=E.useCallback(function(s){if(Bx){var c=document.body,p=c&&c.style;wa=Math.max(wa-1,0),r&&wa<1&&Tx.forEach(function(h){var y=i.current[h];p&&(p[h]=y)}),c&&Fx()&&(c.removeEventListener("touchmove",Lx,Ko),s&&(s.removeEventListener("touchstart",Nx,Ko),s.removeEventListener("touchmove",_x,Ko)))}},[r]);return E.useEffect(function(){if(t){var s=l.current;return u(s),function(){d(s)}}},[t,u,d]),function(s){l.current=s}}var bH=function(t){var n=t.target;return n.ownerDocument.activeElement&&n.ownerDocument.activeElement.blur()},wH={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function xH(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,i=r===void 0?!0:r,l=e.onBottomArrive,u=e.onBottomLeave,d=e.onTopArrive,s=e.onTopLeave,c=vH({isEnabled:i,onBottomArrive:l,onBottomLeave:u,onTopArrive:d,onTopLeave:s}),p=yH({isEnabled:n}),h=function(m){c(m),p(m)};return fe(E.Fragment,null,n&&fe("div",{onClick:bH,css:wH}),t(h))}var CH={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},IH=function(t){var n=t.name,r=t.onFocus;return fe("input",{required:!0,name:n,tabIndex:-1,"aria-hidden":"true",onFocus:r,css:CH,value:"",onChange:function(){}})},SH=IH;function Qv(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function RH(){return Qv(/^iPhone/i)}function AE(){return Qv(/^Mac/i)}function EH(){return Qv(/^iPad/i)||AE()&&navigator.maxTouchPoints>1}function AH(){return RH()||EH()}function kH(){return AE()||AH()}var MH=function(t){return t.label},PH=function(t){return t.label},TH=function(t){return t.value},OH=function(t){return!!t.isDisabled},LH={clearIndicator:hV,container:iV,control:CV,dropdownIndicator:pV,group:EV,groupHeading:kV,indicatorsContainer:uV,indicatorSeparator:vV,input:OV,loadingIndicator:wV,loadingMessage:qW,menu:ZW,menuList:JW,menuPortal:nV,multiValue:BV,multiValueLabel:DV,multiValueRemove:GV,noOptionsMessage:QW,option:XV,placeholder:YV,singleValue:KV,valueContainer:lV},_H={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},NH=4,kE=4,FH=38,BH=kE*2,DH={baseUnit:kE,controlHeight:FH,menuGutter:BH},Gg={borderRadius:NH,colors:_H,spacing:DH},GH={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:Ex(),captureMenuScroll:!Ex(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:pH(),formatGroupLabel:MH,getOptionLabel:PH,getOptionValue:TH,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:OH,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!FW(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(t){var n=t.count;return"".concat(n," result").concat(n!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function Dx(e,t,n,r){var i=TE(e,t,n),l=OE(e,t,n),u=PE(e,t),d=fd(e,t);return{type:"option",data:t,isDisabled:i,isSelected:l,label:u,value:d,index:r}}function mc(e,t){return e.options.map(function(n,r){if("options"in n){var i=n.options.map(function(u,d){return Dx(e,u,t,d)}).filter(function(u){return Wx(e,u)});return i.length>0?{type:"group",data:n,options:i,index:r}:void 0}var l=Dx(e,n,t,r);return Wx(e,l)?l:void 0}).filter(GW)}function ME(e){return e.reduce(function(t,n){return n.type==="group"?t.push.apply(t,Jv(n.options.map(function(r){return r.data}))):t.push(n.data),t},[])}function Gx(e,t){return e.reduce(function(n,r){return r.type==="group"?n.push.apply(n,Jv(r.options.map(function(i){return{data:i.data,id:"".concat(t,"-").concat(r.index,"-").concat(i.index)}}))):n.push({data:r.data,id:"".concat(t,"-").concat(r.index)}),n},[])}function WH(e,t){return ME(mc(e,t))}function Wx(e,t){var n=e.inputValue,r=n===void 0?"":n,i=t.data,l=t.isSelected,u=t.label,d=t.value;return(!_E(e)||!l)&&LE(e,{label:u,value:d,data:i},r)}function VH(e,t){var n=e.focusedValue,r=e.selectValue,i=r.indexOf(n);if(i>-1){var l=t.indexOf(n);if(l>-1)return n;if(i-1?n:t[0]}var Wg=function(t,n){var r,i=(r=t.find(function(l){return l.data===n}))===null||r===void 0?void 0:r.id;return i||null},PE=function(t,n){return t.getOptionLabel(n)},fd=function(t,n){return t.getOptionValue(n)};function TE(e,t,n){return typeof e.isOptionDisabled=="function"?e.isOptionDisabled(t,n):!1}function OE(e,t,n){if(n.indexOf(t)>-1)return!0;if(typeof e.isOptionSelected=="function")return e.isOptionSelected(t,n);var r=fd(e,t);return n.some(function(i){return fd(e,i)===r})}function LE(e,t,n){return e.filterOption?e.filterOption(t,n):!0}var _E=function(t){var n=t.hideSelectedOptions,r=t.isMulti;return n===void 0?r:n},zH=1,NE=function(e){CW(n,e);var t=SW(n);function n(r){var i;if(wW(this,n),i=t.call(this,r),i.state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},i.blockOptionHover=!1,i.isComposing=!1,i.commonProps=void 0,i.initialTouchX=0,i.initialTouchY=0,i.openAfterFocus=!1,i.scrollToFocusedOptionOnUpdate=!1,i.userIsDragging=void 0,i.isAppleDevice=kH(),i.controlRef=null,i.getControlRef=function(s){i.controlRef=s},i.focusedOptionRef=null,i.getFocusedOptionRef=function(s){i.focusedOptionRef=s},i.menuListRef=null,i.getMenuListRef=function(s){i.menuListRef=s},i.inputRef=null,i.getInputRef=function(s){i.inputRef=s},i.focus=i.focusInput,i.blur=i.blurInput,i.onChange=function(s,c){var p=i.props,h=p.onChange,y=p.name;c.name=y,i.ariaOnChange(s,c),h(s,c)},i.setValue=function(s,c,p){var h=i.props,y=h.closeMenuOnSelect,m=h.isMulti,b=h.inputValue;i.onInputChange("",{action:"set-value",prevInputValue:b}),y&&(i.setState({inputIsHiddenAfterUpdate:!m}),i.onMenuClose()),i.setState({clearFocusValueOnUpdate:!0}),i.onChange(s,{action:c,option:p})},i.selectOption=function(s){var c=i.props,p=c.blurInputOnSelect,h=c.isMulti,y=c.name,m=i.state.selectValue,b=h&&i.isOptionSelected(s,m),w=i.isOptionDisabled(s,m);if(b){var I=i.getOptionValue(s);i.setValue(m.filter(function(v){return i.getOptionValue(v)!==I}),"deselect-option",s)}else if(!w)h?i.setValue([].concat(Jv(m),[s]),"select-option",s):i.setValue(s,"select-option");else{i.ariaOnChange(s,{action:"select-option",option:s,name:y});return}p&&i.blurInput()},i.removeValue=function(s){var c=i.props.isMulti,p=i.state.selectValue,h=i.getOptionValue(s),y=p.filter(function(b){return i.getOptionValue(b)!==h}),m=Zs(c,y,y[0]||null);i.onChange(m,{action:"remove-value",removedValue:s}),i.focusInput()},i.clearValue=function(){var s=i.state.selectValue;i.onChange(Zs(i.props.isMulti,[],null),{action:"clear",removedValues:s})},i.popValue=function(){var s=i.props.isMulti,c=i.state.selectValue,p=c[c.length-1],h=c.slice(0,c.length-1),y=Zs(s,h,h[0]||null);i.onChange(y,{action:"pop-value",removedValue:p})},i.getFocusedOptionId=function(s){return Wg(i.state.focusableOptionsWithIds,s)},i.getFocusableOptionsWithIds=function(){return Gx(mc(i.props,i.state.selectValue),i.getElementId("option"))},i.getValue=function(){return i.state.selectValue},i.cx=function(){for(var s=arguments.length,c=new Array(s),p=0;pm||y>m}},i.onTouchEnd=function(s){i.userIsDragging||(i.controlRef&&!i.controlRef.contains(s.target)&&i.menuListRef&&!i.menuListRef.contains(s.target)&&i.blurInput(),i.initialTouchX=0,i.initialTouchY=0)},i.onControlTouchEnd=function(s){i.userIsDragging||i.onControlMouseDown(s)},i.onClearIndicatorTouchEnd=function(s){i.userIsDragging||i.onClearIndicatorMouseDown(s)},i.onDropdownIndicatorTouchEnd=function(s){i.userIsDragging||i.onDropdownIndicatorMouseDown(s)},i.handleInputChange=function(s){var c=i.props.inputValue,p=s.currentTarget.value;i.setState({inputIsHiddenAfterUpdate:!1}),i.onInputChange(p,{action:"input-change",prevInputValue:c}),i.props.menuIsOpen||i.onMenuOpen()},i.onInputFocus=function(s){i.props.onFocus&&i.props.onFocus(s),i.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(i.openAfterFocus||i.props.openMenuOnFocus)&&i.openMenu("first"),i.openAfterFocus=!1},i.onInputBlur=function(s){var c=i.props.inputValue;if(i.menuListRef&&i.menuListRef.contains(document.activeElement)){i.inputRef.focus();return}i.props.onBlur&&i.props.onBlur(s),i.onInputChange("",{action:"input-blur",prevInputValue:c}),i.onMenuClose(),i.setState({focusedValue:null,isFocused:!1})},i.onOptionHover=function(s){if(!(i.blockOptionHover||i.state.focusedOption===s)){var c=i.getFocusableOptions(),p=c.indexOf(s);i.setState({focusedOption:s,focusedOptionId:p>-1?i.getFocusedOptionId(s):null})}},i.shouldHideSelectedOptions=function(){return _E(i.props)},i.onValueInputFocus=function(s){s.preventDefault(),s.stopPropagation(),i.focus()},i.onKeyDown=function(s){var c=i.props,p=c.isMulti,h=c.backspaceRemovesValue,y=c.escapeClearsValue,m=c.inputValue,b=c.isClearable,w=c.isDisabled,I=c.menuIsOpen,v=c.onKeyDown,x=c.tabSelectsValue,S=c.openMenuOnFocus,P=i.state,O=P.focusedOption,M=P.focusedValue,T=P.selectValue;if(!w&&!(typeof v=="function"&&(v(s),s.defaultPrevented))){switch(i.blockOptionHover=!0,s.key){case"ArrowLeft":if(!p||m)return;i.focusValue("previous");break;case"ArrowRight":if(!p||m)return;i.focusValue("next");break;case"Delete":case"Backspace":if(m)return;if(M)i.removeValue(M);else{if(!h)return;p?i.popValue():b&&i.clearValue()}break;case"Tab":if(i.isComposing||s.shiftKey||!I||!x||!O||S&&i.isOptionSelected(O,T))return;i.selectOption(O);break;case"Enter":if(s.keyCode===229)break;if(I){if(!O||i.isComposing)return;i.selectOption(O);break}return;case"Escape":I?(i.setState({inputIsHiddenAfterUpdate:!1}),i.onInputChange("",{action:"menu-close",prevInputValue:m}),i.onMenuClose()):b&&y&&i.clearValue();break;case" ":if(m)return;if(!I){i.openMenu("first");break}if(!O)return;i.selectOption(O);break;case"ArrowUp":I?i.focusOption("up"):i.openMenu("last");break;case"ArrowDown":I?i.focusOption("down"):i.openMenu("first");break;case"PageUp":if(!I)return;i.focusOption("pageup");break;case"PageDown":if(!I)return;i.focusOption("pagedown");break;case"Home":if(!I)return;i.focusOption("first");break;case"End":if(!I)return;i.focusOption("last");break;default:return}s.preventDefault()}},i.state.instancePrefix="react-select-"+(i.props.instanceId||++zH),i.state.selectValue=Sx(r.value),r.menuIsOpen&&i.state.selectValue.length){var l=i.getFocusableOptionsWithIds(),u=i.buildFocusableOptions(),d=u.indexOf(i.state.selectValue[0]);i.state.focusableOptionsWithIds=l,i.state.focusedOption=u[d],i.state.focusedOptionId=Wg(l,u[d])}return i}return xW(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&Rx(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(i){var l=this.props,u=l.isDisabled,d=l.menuIsOpen,s=this.state.isFocused;(s&&!u&&i.isDisabled||s&&d&&!i.menuIsOpen)&&this.focusInput(),s&&u&&!i.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!s&&!u&&i.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(Rx(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(i,l){this.props.onInputChange(i,l)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(i){var l=this,u=this.state,d=u.selectValue,s=u.isFocused,c=this.buildFocusableOptions(),p=i==="first"?0:c.length-1;if(!this.props.isMulti){var h=c.indexOf(d[0]);h>-1&&(p=h)}this.scrollToFocusedOptionOnUpdate=!(s&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:c[p],focusedOptionId:this.getFocusedOptionId(c[p])},function(){return l.onMenuOpen()})}},{key:"focusValue",value:function(i){var l=this.state,u=l.selectValue,d=l.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var s=u.indexOf(d);d||(s=-1);var c=u.length-1,p=-1;if(u.length){switch(i){case"previous":s===0?p=0:s===-1?p=c:p=s-1;break;case"next":s>-1&&s0&&arguments[0]!==void 0?arguments[0]:"first",l=this.props.pageSize,u=this.state.focusedOption,d=this.getFocusableOptions();if(d.length){var s=0,c=d.indexOf(u);u||(c=-1),i==="up"?s=c>0?c-1:d.length-1:i==="down"?s=(c+1)%d.length:i==="pageup"?(s=c-l,s<0&&(s=0)):i==="pagedown"?(s=c+l,s>d.length-1&&(s=d.length-1)):i==="last"&&(s=d.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:d[s],focusedValue:null,focusedOptionId:this.getFocusedOptionId(d[s])})}}},{key:"getTheme",value:function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(Gg):ge(ge({},Gg),this.props.theme):Gg}},{key:"getCommonProps",value:function(){var i=this.clearValue,l=this.cx,u=this.getStyles,d=this.getClassNames,s=this.getValue,c=this.selectOption,p=this.setValue,h=this.props,y=h.isMulti,m=h.isRtl,b=h.options,w=this.hasValue();return{clearValue:i,cx:l,getStyles:u,getClassNames:d,getValue:s,hasValue:w,isMulti:y,isRtl:m,options:b,selectOption:c,selectProps:h,setValue:p,theme:this.getTheme()}}},{key:"hasValue",value:function(){var i=this.state.selectValue;return i.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var i=this.props,l=i.isClearable,u=i.isMulti;return l===void 0?u:l}},{key:"isOptionDisabled",value:function(i,l){return TE(this.props,i,l)}},{key:"isOptionSelected",value:function(i,l){return OE(this.props,i,l)}},{key:"filterOption",value:function(i,l){return LE(this.props,i,l)}},{key:"formatOptionLabel",value:function(i,l){if(typeof this.props.formatOptionLabel=="function"){var u=this.props.inputValue,d=this.state.selectValue;return this.props.formatOptionLabel(i,{context:l,inputValue:u,selectValue:d})}else return this.getOptionLabel(i)}},{key:"formatGroupLabel",value:function(i){return this.props.formatGroupLabel(i)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var i=this.props,l=i.isDisabled,u=i.isSearchable,d=i.inputId,s=i.inputValue,c=i.tabIndex,p=i.form,h=i.menuIsOpen,y=i.required,m=this.getComponents(),b=m.Input,w=this.state,I=w.inputIsHidden,v=w.ariaSelection,x=this.commonProps,S=d||this.getElementId("input"),P=ge(ge(ge({"aria-autocomplete":"list","aria-expanded":h,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":y,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},h&&{"aria-controls":this.getElementId("listbox")}),!u&&{"aria-readonly":!0}),this.hasValue()?(v==null?void 0:v.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return u?E.createElement(b,q({},x,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:S,innerRef:this.getInputRef,isDisabled:l,isHidden:I,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:c,form:p,type:"text",value:s},P)):E.createElement(hH,q({id:S,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:cd,onFocus:this.onInputFocus,disabled:l,tabIndex:c,inputMode:"none",form:p,value:""},P))}},{key:"renderPlaceholderOrValue",value:function(){var i=this,l=this.getComponents(),u=l.MultiValue,d=l.MultiValueContainer,s=l.MultiValueLabel,c=l.MultiValueRemove,p=l.SingleValue,h=l.Placeholder,y=this.commonProps,m=this.props,b=m.controlShouldRenderValue,w=m.isDisabled,I=m.isMulti,v=m.inputValue,x=m.placeholder,S=this.state,P=S.selectValue,O=S.focusedValue,M=S.isFocused;if(!this.hasValue()||!b)return v?null:E.createElement(h,q({},y,{key:"placeholder",isDisabled:w,isFocused:M,innerProps:{id:this.getElementId("placeholder")}}),x);if(I)return P.map(function(_,z){var H=_===O,J="".concat(i.getOptionLabel(_),"-").concat(i.getOptionValue(_));return E.createElement(u,q({},y,{components:{Container:d,Label:s,Remove:c},isFocused:H,isDisabled:w,key:J,index:z,removeProps:{onClick:function(){return i.removeValue(_)},onTouchEnd:function(){return i.removeValue(_)},onMouseDown:function(ae){ae.preventDefault()}},data:_}),i.formatOptionLabel(_,"value"))});if(v)return null;var T=P[0];return E.createElement(p,q({},y,{data:T,isDisabled:w}),this.formatOptionLabel(T,"value"))}},{key:"renderClearIndicator",value:function(){var i=this.getComponents(),l=i.ClearIndicator,u=this.commonProps,d=this.props,s=d.isDisabled,c=d.isLoading,p=this.state.isFocused;if(!this.isClearable()||!l||s||!this.hasValue()||c)return null;var h={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return E.createElement(l,q({},u,{innerProps:h,isFocused:p}))}},{key:"renderLoadingIndicator",value:function(){var i=this.getComponents(),l=i.LoadingIndicator,u=this.commonProps,d=this.props,s=d.isDisabled,c=d.isLoading,p=this.state.isFocused;if(!l||!c)return null;var h={"aria-hidden":"true"};return E.createElement(l,q({},u,{innerProps:h,isDisabled:s,isFocused:p}))}},{key:"renderIndicatorSeparator",value:function(){var i=this.getComponents(),l=i.DropdownIndicator,u=i.IndicatorSeparator;if(!l||!u)return null;var d=this.commonProps,s=this.props.isDisabled,c=this.state.isFocused;return E.createElement(u,q({},d,{isDisabled:s,isFocused:c}))}},{key:"renderDropdownIndicator",value:function(){var i=this.getComponents(),l=i.DropdownIndicator;if(!l)return null;var u=this.commonProps,d=this.props.isDisabled,s=this.state.isFocused,c={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return E.createElement(l,q({},u,{innerProps:c,isDisabled:d,isFocused:s}))}},{key:"renderMenu",value:function(){var i=this,l=this.getComponents(),u=l.Group,d=l.GroupHeading,s=l.Menu,c=l.MenuList,p=l.MenuPortal,h=l.LoadingMessage,y=l.NoOptionsMessage,m=l.Option,b=this.commonProps,w=this.state.focusedOption,I=this.props,v=I.captureMenuScroll,x=I.inputValue,S=I.isLoading,P=I.loadingMessage,O=I.minMenuHeight,M=I.maxMenuHeight,T=I.menuIsOpen,_=I.menuPlacement,z=I.menuPosition,H=I.menuPortalTarget,J=I.menuShouldBlockScroll,Q=I.menuShouldScrollIntoView,ae=I.noOptionsMessage,ie=I.onMenuScrollToTop,F=I.onMenuScrollToBottom;if(!T)return null;var G=function(Ie,ke){var Le=Ie.type,ce=Ie.data,Me=Ie.isDisabled,$e=Ie.isSelected,yt=Ie.label,Dn=Ie.value,an=w===ce,Qt=Me?void 0:function(){return i.onOptionHover(ce)},Ao=Me?void 0:function(){return i.selectOption(ce)},_t="".concat(i.getElementId("option"),"-").concat(ke),Ir={id:_t,onClick:Ao,onMouseMove:Qt,onMouseOver:Qt,tabIndex:-1,role:"option","aria-selected":i.isAppleDevice?void 0:$e};return E.createElement(m,q({},b,{innerProps:Ir,data:ce,isDisabled:Me,isSelected:$e,key:_t,label:yt,type:Le,value:Dn,isFocused:an,innerRef:an?i.getFocusedOptionRef:void 0}),i.formatOptionLabel(Ie.data,"menu"))},re;if(this.hasOptions())re=this.getCategorizedOptions().map(function(se){if(se.type==="group"){var Ie=se.data,ke=se.options,Le=se.index,ce="".concat(i.getElementId("group"),"-").concat(Le),Me="".concat(ce,"-heading");return E.createElement(u,q({},b,{key:ce,data:Ie,options:ke,Heading:d,headingProps:{id:Me,data:se.data},label:i.formatGroupLabel(se.data)}),se.options.map(function($e){return G($e,"".concat(Le,"-").concat($e.index))}))}else if(se.type==="option")return G(se,"".concat(se.index))});else if(S){var U=P({inputValue:x});if(U===null)return null;re=E.createElement(h,b,U)}else{var ee=ae({inputValue:x});if(ee===null)return null;re=E.createElement(y,b,ee)}var ne={minMenuHeight:O,maxMenuHeight:M,menuPlacement:_,menuPosition:z,menuShouldScrollIntoView:Q},Y=E.createElement(UW,q({},b,ne),function(se){var Ie=se.ref,ke=se.placerProps,Le=ke.placement,ce=ke.maxHeight;return E.createElement(s,q({},b,ne,{innerRef:Ie,innerProps:{onMouseDown:i.onMenuMouseDown,onMouseMove:i.onMenuMouseMove},isLoading:S,placement:Le}),E.createElement(xH,{captureEnabled:v,onTopArrive:ie,onBottomArrive:F,lockEnabled:J},function(Me){return E.createElement(c,q({},b,{innerRef:function(yt){i.getMenuListRef(yt),Me(yt)},innerProps:{role:"listbox","aria-multiselectable":b.isMulti,id:i.getElementId("listbox")},isLoading:S,maxHeight:ce,focusedOption:w}),re)}))});return H||z==="fixed"?E.createElement(p,q({},b,{appendTo:H,controlElement:this.controlRef,menuPlacement:_,menuPosition:z}),Y):Y}},{key:"renderFormField",value:function(){var i=this,l=this.props,u=l.delimiter,d=l.isDisabled,s=l.isMulti,c=l.name,p=l.required,h=this.state.selectValue;if(p&&!this.hasValue()&&!d)return E.createElement(SH,{name:c,onFocus:this.onValueInputFocus});if(!(!c||d))if(s)if(u){var y=h.map(function(w){return i.getOptionValue(w)}).join(u);return E.createElement("input",{name:c,type:"hidden",value:y})}else{var m=h.length>0?h.map(function(w,I){return E.createElement("input",{key:"i-".concat(I),name:c,type:"hidden",value:i.getOptionValue(w)})}):E.createElement("input",{name:c,type:"hidden",value:""});return E.createElement("div",null,m)}else{var b=h[0]?this.getOptionValue(h[0]):"";return E.createElement("input",{name:c,type:"hidden",value:b})}}},{key:"renderLiveRegion",value:function(){var i=this.commonProps,l=this.state,u=l.ariaSelection,d=l.focusedOption,s=l.focusedValue,c=l.isFocused,p=l.selectValue,h=this.getFocusableOptions();return E.createElement(sH,q({},i,{id:this.getElementId("live-region"),ariaSelection:u,focusedOption:d,focusedValue:s,isFocused:c,selectValue:p,focusableOptions:h,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var i=this.getComponents(),l=i.Control,u=i.IndicatorsContainer,d=i.SelectContainer,s=i.ValueContainer,c=this.props,p=c.className,h=c.id,y=c.isDisabled,m=c.menuIsOpen,b=this.state.isFocused,w=this.commonProps=this.getCommonProps();return E.createElement(d,q({},w,{className:p,innerProps:{id:h,onKeyDown:this.onKeyDown},isDisabled:y,isFocused:b}),this.renderLiveRegion(),E.createElement(l,q({},w,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:y,isFocused:b,menuIsOpen:m}),E.createElement(s,q({},w,{isDisabled:y}),this.renderPlaceholderOrValue(),this.renderInput()),E.createElement(u,q({},w,{isDisabled:y}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(i,l){var u=l.prevProps,d=l.clearFocusValueOnUpdate,s=l.inputIsHiddenAfterUpdate,c=l.ariaSelection,p=l.isFocused,h=l.prevWasFocused,y=l.instancePrefix,m=i.options,b=i.value,w=i.menuIsOpen,I=i.inputValue,v=i.isMulti,x=Sx(b),S={};if(u&&(b!==u.value||m!==u.options||w!==u.menuIsOpen||I!==u.inputValue)){var P=w?WH(i,x):[],O=w?Gx(mc(i,x),"".concat(y,"-option")):[],M=d?VH(l,x):null,T=HH(l,P),_=Wg(O,T);S={selectValue:x,focusedOption:T,focusedOptionId:_,focusableOptionsWithIds:O,focusedValue:M,clearFocusValueOnUpdate:!1}}var z=s!=null&&i!==u?{inputIsHidden:s,inputIsHiddenAfterUpdate:void 0}:{},H=c,J=p&&h;return p&&!J&&(H={value:Zs(v,x,x[0]||null),options:x,action:"initial-input-focus"},J=!h),(c==null?void 0:c.action)==="initial-input-focus"&&(H=null),ge(ge(ge({},S),z),{},{prevProps:i,ariaSelection:H,prevWasFocused:J})}}]),n}(E.Component);NE.defaultProps=GH;var $H=E.forwardRef(function(e,t){var n=bW(e);return E.createElement(NE,q({ref:t},n))}),XH=$H;class ZH{getCompatibleCell(t){let n;try{n=Je(t,"selectedValue","string")}catch{n=void 0}const r=Je(t,"values","object"),i=n?parseFloat(n):NaN;let l=!0;try{l=Je(t,"isDisabled","boolean")}catch{l=!1}let u;try{u=Je(t,"inputValue","string")}catch{u=void 0}let d;try{d=Je(t,"isOpen","boolean")}catch{d=!1}return{...t,selectedValue:n,text:n||"",value:i,values:r,isDisabled:l,isOpen:d,inputValue:u}}update(t,n){console.log("cell",t),console.log("cellToMerge",n);const r=t.values.some(i=>i.value===n.text)?n.text:void 0;return this.getCompatibleCell({...t,selectedValue:r,isOpen:n.isOpen,inputValue:n.inputValue})}getClassName(t,n){const r=t.isOpen?"open":"closed";return`${t.className?t.className:""}${r}`}handleKeyDown(t,n,r,i,l,u,d){if((n===$.SPACE||n===$.ENTER)&&!i)return{cell:this.getCompatibleCell({...t,isOpen:!t.isOpen}),enableEditMode:!1};const s=Wr(u,i,d);return!r&&!l&&Gr(n)&&!(i&&n===$.SPACE)?{cell:this.getCompatibleCell({...t,inputValue:s,isOpen:!t.isOpen}),enableEditMode:!1}:{cell:t,enableEditMode:!1}}handleCompositionEnd(t,n){return{cell:{...t,inputValue:n,isOpen:!t.isOpen},enableEditMode:!1}}render(t,n,r){return Te.jsx(UH,{onCellChanged:i=>r(this.getCompatibleCell(i),!0),cell:t})}}const UH=({onCellChanged:e,cell:t})=>{const n=Et.useRef(null),[r,i]=Et.useState(t.inputValue),l=Et.useMemo(()=>t.values.find(u=>u.value===t.text),[t.text,t.values]);return Et.useEffect(()=>{t.isOpen&&n.current&&(n.current.focus(),i(t.inputValue))},[t.isOpen,t.inputValue]),Te.jsx("div",{style:{width:"100%"},onPointerDown:u=>e({...t,isOpen:!0}),children:Te.jsx(XH,{...t.inputValue&&{inputValue:r,defaultInputValue:r,onInputChange:u=>i(u)},isSearchable:!0,ref:n,...t.isOpen!==void 0&&{menuIsOpen:t.isOpen},onMenuClose:()=>e({...t,isOpen:!t.isOpen,inputValue:void 0}),onMenuOpen:()=>e({...t,isOpen:!0}),onChange:u=>e({...t,selectedValue:u.value,isOpen:!1,inputValue:void 0}),blurInputOnSelect:!0,defaultValue:l,value:l,isDisabled:t.isDisabled,options:t.values,onKeyDown:u=>{if(u.stopPropagation(),u.key==="Escape")return n.current.blur(),e({...t,isOpen:!1,inputValue:void 0})},components:{Option:YH,Menu:jH},styles:{container:u=>{var d;return{...u,width:"100%",height:"100%",...(d=t.styles)==null?void 0:d.container}},control:u=>{var d;return{...u,border:"none",borderColor:"transparent",minHeight:"25px",background:"transparent",boxShadow:"none",...(d=t.styles)==null?void 0:d.control}},indicatorsContainer:u=>{var d;return{...u,paddingTop:"0px",...(d=t.styles)==null?void 0:d.indicatorsContainer}},dropdownIndicator:u=>{var d;return{...u,padding:"0px 4px",...(d=t.styles)==null?void 0:d.dropdownIndicator}},singleValue:u=>{var d;return{...u,color:"inherit",...(d=t.styles)==null?void 0:d.singleValue}},indicatorSeparator:u=>{var d;return{...u,marginTop:"4px",marginBottom:"4px",...(d=t.styles)==null?void 0:d.indicatorSeparator}},input:u=>{var d;return{...u,padding:0,...(d=t.styles)==null?void 0:d.input}},valueContainer:u=>{var d;return{...u,padding:"0 8px",...(d=t.styles)==null?void 0:d.valueContainer}}}})})},YH=({innerProps:e,label:t,isSelected:n,isFocused:r,isDisabled:i})=>Te.jsx("div",{...e,onPointerDown:l=>l.stopPropagation(),className:`rg-dropdown-option${n?" selected":""}${r?" focused":""}${i?" disabled":""}`,children:t}),jH=({innerProps:e,children:t})=>Te.jsx("div",{...e,className:"rg-dropdown-menu",onPointerDown:n=>n.stopPropagation(),children:t});class JH{getCompatibleCell(t){const n=Je(t,"text","string"),r=Je(t,"options","object"),i=parseFloat(n);return{...t,text:n,value:i,options:r}}render(t,n,r){return n?Te.jsx("select",{ref:i=>{i&&i.focus()},defaultValue:t.text,onChange:i=>r(this.getCompatibleCell({...t,text:i.currentTarget.options[i.currentTarget.selectedIndex].value}),!1),onCopy:i=>i.stopPropagation(),onCut:i=>i.stopPropagation(),onPaste:i=>i.stopPropagation(),onPointerDown:i=>i.stopPropagation(),onKeyDown:i=>{(Gr(i.keyCode)||ir(i.keyCode))&&i.stopPropagation()},children:t.options.map((i,l)=>Te.jsx("option",{value:i.value,children:i.label},l))}):Te.jsx(Te.Fragment,{children:Te.jsx("span",{className:"py-1 px-3 ",children:t.text})})}handleKeyDown(t,n,r,i,l){return!r&&!l&&Gr(n)?{cell:t,enableEditMode:!0}:{cell:t,enableEditMode:n===$.POINTER||n===$.ENTER}}update(t,n){return this.getCompatibleCell({...t,text:n.text})}}const KH={date:new gW,dropdown:new ZH,select:new JH},QH=[{label:"",value:""},{label:"HR",value:"hr"},{label:"Sales",value:"sales"},{label:"Marketing",value:"marketing"},{label:"Finance",value:"finance"},{label:"IT",value:"it"}],qH=()=>[{id:11,fName:"Thomas",lName:"Brown",dept:"hr",hiredAt:new Date("01/01/2020")},{id:12,fName:"Susie",lName:"Lane",dept:"sales",hiredAt:new Date("10-15-2020")},{id:"",fName:"",lName:"",dept:"",hiredAt:""}],ez=()=>[{columnId:"id",width:100},{columnId:"fName",width:150},{columnId:"lName",width:150},{columnId:"dept",width:150},{columnId:"hiredAt",width:150}],tz={rowId:"header",cells:[{type:"header",text:"Emp. ID"},{type:"header",text:"First Name"},{type:"header",text:"Last Name"},{type:"header",text:"Department"},{type:"header",text:"Hired Date"}]},nz=e=>[tz,...e.map((t,n)=>({rowId:n,cells:[{type:"number",value:t.id},{type:"text",text:t.fName},{type:"text",text:t.lName},{type:"dropdown",values:QH,isOpen:t.isOpen,selectedValue:t.dept},{type:"date",date:t.hiredAt}]}))],rz=(e,t)=>(console.log("changes",e),e.forEach(n=>{const{rowId:r,columnId:i,previousCell:l,newCell:u}=n;u.type==="number"&&(t[r][i]=u.value),u.type==="text"&&(t[r][i]=u.text),u.type==="date"&&(t[r][i]=new Date(u.value)),n.type==="dropdown"&&n.columnId==="dept"&&(t[r].isOpen=u.isOpen,u.selectedValue!==l.selectedValue&&(t[r].dept=u.selectedValue))}),[...t]),iz=()=>{const[e,t]=E.useState(qH()),[n]=E.useState(ez()),r=nz(e),i=u=>{t(d=>rz(u,d))},l=(u,d,s,c)=>(s==="row"&&(c=[...c,{id:"removePerson",label:"Remove person",handler:()=>{t(p=>[...p.filter((h,y)=>!u.includes(y))])}}]),c);return Te.jsxs(Te.Fragment,{children:[Te.jsx("h3",{children:"Table with Custom Cells"}),Te.jsx(mG,{columns:n,rows:r,customCellTemplates:KH,onCellsChanged:i,onContextMenu:l,enableColumnSelection:!0,enableRowSelection:!0,enableRangeSelection:!0,enableFillHandle:!0})]})};Sv(O9)(({theme:e})=>({backgroundColor:e.palette.mode==="dark"?"#1A2027":"#fff",...e.typography.body2,padding:e.spacing(1),textAlign:"center",color:e.palette.text.secondary}));const oz=()=>Te.jsx(Te.Fragment,{children:Te.jsxs(E9,{sx:{margin:2,width:"500px"},children:[Te.jsx("h1",{children:"React Grid"}),Te.jsx(gw,{container:!0,spacing:2,children:Te.jsx(gw,{item:!0,xs:12,children:Te.jsx(iz,{})})})]})}),lz=()=>Te.jsx(Te.Fragment,{children:Te.jsx(oz,{})});Vg.createRoot(document.getElementById("root")).render(Te.jsx(Et.StrictMode,{children:Te.jsx(lz,{})})); diff --git a/docs/assets/index-DZ7ou1HX.css b/docs/assets/index-DZ7ou1HX.css deleted file mode 100644 index 7b7d97a..0000000 --- a/docs/assets/index-DZ7ou1HX.css +++ /dev/null @@ -1 +0,0 @@ -@charset "UTF-8";.rg-celleditor-input,.rg-celleditor .rg-input{width:100%;height:100%;border:0;padding:0;margin:0;background:transparent;font-size:1em;outline:none}.rg-celleditor{box-sizing:border-box;z-index:5;background-color:#fff;box-shadow:1px 1px 6px #0000000f;display:flex;border-style:solid;border-color:#3579f8;border-width:2px;padding:0 4px}.rg-number-celleditor input{text-align:right}.reactgrid-content .rg-pane .rg-cell.rg-number-cell,.reactgrid-content .rg-pane .rg-cell .rg-time-cell,.reactgrid-content .rg-pane .rg-cell .rg-date-cell{justify-content:flex-end}.reactgrid-content .rg-pane .rg-cell.rg-email-cell.rg-invalid{color:red}.reactgrid-content .rg-pane .rg-cell.rg-text-cell.placeholder{color:#999;font-size:.8em}.reactgrid-content .rg-pane .rg-cell.rg-checkbox-cell{align-items:center;justify-content:center;padding:0;margin:0;background:transparent;pointer-events:auto}.reactgrid-content .rg-pane .rg-cell.rg-checkbox-cell input{width:20px;height:20px}.reactgrid-content .rg-pane .rg-cell.rg-chevron-cell .chevron{pointer-events:auto;display:flex;justify-content:center;align-items:center;font-weight:700;margin-right:.1em;cursor:pointer;transition:.2s all ease-in-out;height:1em;width:1em}.reactgrid-content .rg-pane .rg-cell.rg-chevron-cell .no-child{width:.5em}.reactgrid-content .rg-pane .rg-cell.rg-chevron-cell.expanded .chevron{transform:rotate(90deg)}.reactgrid-content .rg-pane .rg-cell.rg-chevron-cell.collapsed .chevron{transform:rotate(0)}.reactgrid-content .rg-pane .rg-cell.rg-checkbox-cell{justify-content:center}.reactgrid-content .rg-pane .rg-cell.rg-checkbox-cell label{position:relative;height:18px;width:18px;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;margin:0}.reactgrid-content .rg-pane .rg-cell.rg-checkbox-cell label input{position:absolute;opacity:0;cursor:pointer;margin:0;height:18px;width:18px}.reactgrid-content .rg-pane .rg-cell.rg-checkbox-cell span{position:absolute;top:0;left:0;height:18px;width:18px;background-color:#eee}.reactgrid-content .rg-pane .rg-cell.rg-checkbox-cell label:hover input~span{background-color:#ccc}.reactgrid-content .rg-pane .rg-cell.rg-checkbox-cell label input:checked~span{background-color:#3579f8}.reactgrid-content .rg-pane .rg-cell.rg-checkbox-cell span:after{content:"";position:absolute;display:none}.reactgrid-content .rg-pane .rg-cell.rg-checkbox-cell label input:checked~span:after{display:block}.reactgrid-content .rg-pane .rg-cell.rg-checkbox-cell label span:after{left:7px;top:2px;width:4px;height:12px;border:solid #ffffff;border-width:0 3px 3px 0;-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.reactgrid-content .rg-pane .rg-cell.rg-dropdown-cell{padding:0;overflow:visible}.reactgrid-content .rg-pane .rg-cell.rg-dropdown-cell .rg-dropdown-menu{top:100%;background-color:#fff;border-radius:4px;box-shadow:0 0 7px #00000080;margin-bottom:8px;margin-top:2px;position:absolute;width:100%;z-index:1;box-sizing:border-box}.reactgrid-content .rg-pane .rg-cell.rg-dropdown-cell .rg-dropdown-option{padding:.3em .5em;min-height:1.5em;display:flex;align-items:center}.reactgrid-content .rg-pane .rg-cell.rg-dropdown-cell .rg-dropdown-option.selected:before{content:"✓";padding-right:.2em}.reactgrid-content .rg-pane .rg-cell.rg-dropdown-cell .rg-dropdown-option.focused{color:#000;background-color:#e2ebfe}[contenteditable]{-webkit-user-select:text;user-select:text}.reactgrid-content{user-select:none;-moz-user-select:none;-webkit-user-select:none;display:flex;flex-wrap:wrap;justify-content:flex-start;align-items:flex-start;color:#000}.reactgrid-content .rg-pane.rg-pane-top,.reactgrid-content .rg-pane.rg-pane-bottom,.reactgrid-content .rg-pane.rg-pane-left,.reactgrid-content .rg-pane.rg-pane-right{position:sticky;position:-webkit-sticky;background-color:#fff}.reactgrid-content .rg-pane.rg-pane-top{top:0}.reactgrid-content .rg-pane.rg-pane-bottom{bottom:0}.reactgrid-content .rg-pane.rg-pane-left{left:0}.reactgrid-content .rg-pane.rg-pane-right{right:0}.reactgrid-content .rg-pane .rg-cell{font-size:1em;box-sizing:border-box;white-space:nowrap;position:absolute;display:flex;flex-direction:row;align-items:center;overflow:hidden;padding:0 4px;outline:none;touch-action:auto;border-color:#e8e8e8;color:#000}.reactgrid-content .rg-pane .rg-cell .rg-touch-resize-handle{position:absolute;top:0;right:0;width:11px;height:100%;pointer-events:auto}.reactgrid-content .rg-pane .rg-cell .rg-touch-resize-handle .rg-resize-handle{position:absolute;right:0;width:6px;height:100%}.reactgrid-content .rg-pane .rg-cell .rg-touch-resize-handle .rg-resize-handle:hover{cursor:col-resize;background-color:#3579f8}.reactgrid-content .rg-pane .rg-cell .rg-groupId{font-size:.8em;position:absolute;right:4px;top:4px}.reactgrid-content .rg-pane .rg-cell-focus,.reactgrid-content .rg-pane .rg-cell-highlight{position:absolute;pointer-events:none;box-sizing:border-box;border-style:solid;border-width:2px;border-color:#3579f8}.reactgrid-content .rg-pane .rg-touch-fill-handle{position:absolute;width:40px;height:40px;background-color:#ffffff03;touch-action:none;pointer-events:auto}.reactgrid-content .rg-pane .rg-touch-fill-handle .rg-fill-handle{position:absolute;cursor:crosshair;top:50%;left:50%;transform:translate(calc(-50% - .5px),calc(-50% - .5px));width:6.5px;height:6.5px;background-color:#3579f8;border-width:1px;border-style:solid;border-color:#fff;background-clip:content-box}.reactgrid-content .rg-pane .rg-partial-area{position:absolute;pointer-events:none;box-sizing:border-box}.reactgrid-content .rg-pane .rg-partial-area.rg-partial-area-part{border-width:1px;border-style:dashed;border-color:#000}.reactgrid-content .rg-pane .rg-partial-area.rg-partial-area-selected-range{border-width:1px;border-style:solid;border-color:#3579f8;background-color:#3579f859}.reactgrid-content .rg-pane-shadow{position:sticky}.reactgrid-content .rg-pane-shadow.shadow-top{pointer-events:none;top:0;box-shadow:2px 2px 3px 1px #0000000f}.reactgrid-content .rg-pane-shadow.shadow-left{pointer-events:none;left:0;box-shadow:5px 0 3px -2px #0000000f}.reactgrid-content .rg-pane-shadow.shadow-bottom{pointer-events:none;bottom:0;box-shadow:2px -1px 3px 1px #0000000f}.reactgrid-content .rg-pane-shadow.shadow-right{pointer-events:none;right:0;box-shadow:-5px 0 3px -2px #0000000f}.reactgrid-content .rg-pane-shadow.shadow-top-left-corner{box-shadow:2px 3px 3px 1px #0000000f}.reactgrid-content .rg-pane-shadow.shadow-top-right-corner{box-shadow:-2px 2px 3px 1px #0000000f}.reactgrid-content .rg-pane-shadow.shadow-bottom-left-corner{box-shadow:2px -2px 3px 1px #0000000f}.reactgrid-content .rg-pane-shadow.shadow-bottom-right-corner{box-shadow:-2px -2px 3px 1px #0000000f}.reactgrid-content .rg-context-menu{position:fixed;z-index:1000;background-color:#fff;font-size:1em;box-shadow:0 0 8px 2px #0000000f}.reactgrid-content .rg-context-menu .rg-context-menu-option{padding:8px 20px 8px 15px;cursor:pointer}.reactgrid-content .rg-context-menu .rg-context-menu-option:hover{background-color:#f2f2f2}.reactgrid-content .rg-shadow{position:absolute;background-color:#000;opacity:.1;z-index:4}.reactgrid-content .rg-column-resize-hint{background-color:#74b9ff;position:absolute;padding:5px;border-radius:0 5px 5px 0}.reactgrid-content .rg-line{position:absolute;background-color:#74b9ff;z-index:4}.reactgrid-content .rg-line-horizontal{left:0;height:2px}.reactgrid-content .rg-line-vertical{top:0;width:2px}.reactgrid-content .rg-hidden-element{border:0;padding:0;margin:0;position:fixed;width:1px;height:1px;opacity:0;top:50%;left:50%} diff --git a/docs/assets/index-zOp7NMbv.js b/docs/assets/index-zOp7NMbv.js new file mode 100644 index 0000000..691bfab --- /dev/null +++ b/docs/assets/index-zOp7NMbv.js @@ -0,0 +1,179 @@ +var yB=Object.defineProperty;var bB=(e,t,n)=>t in e?yB(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var vC=(e,t,n)=>bB(e,typeof t!="symbol"?t+"":t,n);function xB(e,t){for(var n=0;nr[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"]'))r(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"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(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 r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();var pu=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function pg(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Wi(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var CE={exports:{}},gg={},IE={exports:{}},dt={};/** + * @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 $c=Symbol.for("react.element"),wB=Symbol.for("react.portal"),CB=Symbol.for("react.fragment"),IB=Symbol.for("react.strict_mode"),SB=Symbol.for("react.profiler"),RB=Symbol.for("react.provider"),EB=Symbol.for("react.context"),PB=Symbol.for("react.forward_ref"),kB=Symbol.for("react.suspense"),AB=Symbol.for("react.memo"),MB=Symbol.for("react.lazy"),yC=Symbol.iterator;function OB(e){return e===null||typeof e!="object"?null:(e=yC&&e[yC]||e["@@iterator"],typeof e=="function"?e:null)}var SE={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},RE=Object.assign,EE={};function Fs(e,t,n){this.props=e,this.context=t,this.refs=EE,this.updater=n||SE}Fs.prototype.isReactComponent={};Fs.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")};Fs.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function PE(){}PE.prototype=Fs.prototype;function Ey(e,t,n){this.props=e,this.context=t,this.refs=EE,this.updater=n||SE}var Py=Ey.prototype=new PE;Py.constructor=Ey;RE(Py,Fs.prototype);Py.isPureReactComponent=!0;var bC=Array.isArray,kE=Object.prototype.hasOwnProperty,ky={current:null},AE={key:!0,ref:!0,__self:!0,__source:!0};function ME(e,t,n){var r,o={},i=null,a=null;if(t!=null)for(r in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(i=""+t.key),t)kE.call(t,r)&&!AE.hasOwnProperty(r)&&(o[r]=t[r]);var c=arguments.length-2;if(c===1)o.children=n;else if(1>>1,he=z[te];if(0>>1;teo(ye,ae))geo(Oe,ye)?(z[te]=Oe,z[ge]=ae,te=ge):(z[te]=ye,z[pe]=ae,te=pe);else if(geo(Oe,ae))z[te]=Oe,z[ge]=ae,te=ge;else break e}}return q}function o(z,q){var ae=z.sortIndex-q.sortIndex;return ae!==0?ae:z.id-q.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,c=a.now();e.unstable_now=function(){return a.now()-c}}var s=[],d=[],f=1,g=null,v=3,h=!1,y=!1,b=!1,S=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,x=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function I(z){for(var q=n(d);q!==null;){if(q.callback===null)r(d);else if(q.startTime<=z)r(d),q.sortIndex=q.expirationTime,t(s,q);else break;q=n(d)}}function R(z){if(b=!1,I(z),!y)if(n(s)!==null)y=!0,F(E);else{var q=n(d);q!==null&&J(R,q.startTime-z)}}function E(z,q){y=!1,b&&(b=!1,m(O),O=-1),h=!0;var ae=v;try{for(I(q),g=n(s);g!==null&&(!(g.expirationTime>q)||z&&!j());){var te=g.callback;if(typeof te=="function"){g.callback=null,v=g.priorityLevel;var he=te(g.expirationTime<=q);q=e.unstable_now(),typeof he=="function"?g.callback=he:g===n(s)&&r(s),I(q)}else r(s);g=n(s)}if(g!==null)var Se=!0;else{var pe=n(d);pe!==null&&J(R,pe.startTime-q),Se=!1}return Se}finally{g=null,v=ae,h=!1}}var P=!1,A=null,O=-1,W=5,$=-1;function j(){return!(e.unstable_now()-$z||125te?(z.sortIndex=ae,t(d,z),n(s)===null&&z===n(d)&&(b?(m(O),O=-1):b=!0,J(R,ae-te))):(z.sortIndex=he,t(s,z),y||h||(y=!0,F(E))),z},e.unstable_shouldYield=j,e.unstable_wrapCallback=function(z){var q=v;return function(){var ae=v;v=q;try{return z.apply(this,arguments)}finally{v=ae}}}})(NE);_E.exports=NE;var GB=_E.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 zB=C,Hr=GB;function me(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),o0=Object.prototype.hasOwnProperty,HB=/^[: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]*$/,wC={},CC={};function jB(e){return o0.call(CC,e)?!0:o0.call(wC,e)?!1:HB.test(e)?CC[e]=!0:(wC[e]=!0,!1)}function XB(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function UB(e,t,n,r){if(t===null||typeof t>"u"||XB(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function lr(e,t,n,r,o,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var Vn={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Vn[e]=new lr(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Vn[t]=new lr(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Vn[e]=new lr(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Vn[e]=new lr(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){Vn[e]=new lr(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Vn[e]=new lr(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Vn[e]=new lr(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Vn[e]=new lr(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Vn[e]=new lr(e,5,!1,e.toLowerCase(),null,!1,!1)});var My=/[\-:]([a-z])/g;function Oy(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(My,Oy);Vn[t]=new lr(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(My,Oy);Vn[t]=new lr(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(My,Oy);Vn[t]=new lr(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Vn[e]=new lr(e,1,!1,e.toLowerCase(),null,!1,!1)});Vn.xlinkHref=new lr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Vn[e]=new lr(e,1,!1,e.toLowerCase(),null,!0,!0)});function Ty(e,t,n,r){var o=Vn.hasOwnProperty(t)?Vn[t]:null;(o!==null?o.type!==0:r||!(2c||o[a]!==i[c]){var s=` +`+o[a].replace(" at new "," at ");return e.displayName&&s.includes("")&&(s=s.replace("",e.displayName)),s}while(1<=a&&0<=c);break}}}finally{jm=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Nu(e):""}function ZB(e){switch(e.tag){case 5:return Nu(e.type);case 16:return Nu("Lazy");case 13:return Nu("Suspense");case 19:return Nu("SuspenseList");case 0:case 2:case 15:return e=Xm(e.type,!1),e;case 11:return e=Xm(e.type.render,!1),e;case 1:return e=Xm(e.type,!0),e;default:return""}}function s0(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 Qa:return"Fragment";case Ja:return"Portal";case i0:return"Profiler";case Ly:return"StrictMode";case l0:return"Suspense";case a0:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case BE:return(e.displayName||"Context")+".Consumer";case DE:return(e._context.displayName||"Context")+".Provider";case _y:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Ny:return t=e.displayName||null,t!==null?t:s0(e.type)||"Memo";case rl:t=e._payload,e=e._init;try{return s0(e(t))}catch{}}return null}function YB(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 s0(t);case 8:return t===Ly?"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 xl(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function VE(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function KB(e){var t=VE(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(a){r=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Xd(e){e._valueTracker||(e._valueTracker=KB(e))}function WE(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=VE(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function ip(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 u0(e,t){var n=t.checked;return Qt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function SC(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=xl(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function GE(e,t){t=t.checked,t!=null&&Ty(e,"checked",t,!1)}function c0(e,t){GE(e,t);var n=xl(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?d0(e,t.type,n):t.hasOwnProperty("defaultValue")&&d0(e,t.type,xl(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function RC(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function d0(e,t,n){(t!=="number"||ip(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Fu=Array.isArray;function cs(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Ud.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function uc(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Gu={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},JB=["Webkit","ms","Moz","O"];Object.keys(Gu).forEach(function(e){JB.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Gu[t]=Gu[e]})});function XE(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Gu.hasOwnProperty(e)&&Gu[e]?(""+t).trim():t+"px"}function UE(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=XE(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var QB=Qt({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 g0(e,t){if(t){if(QB[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(me(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(me(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(me(61))}if(t.style!=null&&typeof t.style!="object")throw Error(me(62))}}function h0(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 m0=null;function Fy(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var v0=null,ds=null,fs=null;function kC(e){if(e=Gc(e)){if(typeof v0!="function")throw Error(me(280));var t=e.stateNode;t&&(t=bg(t),v0(e.stateNode,e.type,t))}}function ZE(e){ds?fs?fs.push(e):fs=[e]:ds=e}function YE(){if(ds){var e=ds,t=fs;if(fs=ds=null,kC(e),t)for(e=0;e>>=0,e===0?32:31-(u4(e)/c4|0)|0}var Zd=64,Yd=4194304;function Du(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 up(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=n&268435455;if(a!==0){var c=a&~o;c!==0?r=Du(c):(i&=a,i!==0&&(r=Du(i)))}else a=n&~o,a!==0?r=Du(a):i!==0&&(r=Du(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Vc(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-_o(t),e[t]=n}function g4(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Hu),DC=" ",BC=!1;function hP(e,t){switch(e){case"keyup":return G4.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function mP(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var qa=!1;function H4(e,t){switch(e){case"compositionend":return mP(t);case"keypress":return t.which!==32?null:(BC=!0,DC);case"textInput":return e=t.data,e===DC&&BC?null:e;default:return null}}function j4(e,t){if(qa)return e==="compositionend"||!Hy&&hP(e,t)?(e=pP(),Lf=Wy=sl=null,qa=!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:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=GC(n)}}function xP(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?xP(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function wP(){for(var e=window,t=ip();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ip(e.document)}return t}function jy(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 e$(e){var t=wP(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&xP(n.ownerDocument.documentElement,n)){if(r!==null&&jy(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=zC(n,i);var a=zC(n,r);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>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,es=null,I0=null,Xu=null,S0=!1;function HC(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;S0||es==null||es!==ip(r)||(r=es,"selectionStart"in r&&jy(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Xu&&hc(Xu,r)||(Xu=r,r=fp(I0,"onSelect"),0rs||(e.current=M0[rs],M0[rs]=null,rs--)}function Bt(e,t){rs++,M0[rs]=e.current,e.current=t}var wl={},Jn=Pl(wl),mr=Pl(!1),oa=wl;function Cs(e,t){var n=e.type.contextTypes;if(!n)return wl;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function vr(e){return e=e.childContextTypes,e!=null}function gp(){zt(mr),zt(Jn)}function JC(e,t,n){if(Jn.current!==wl)throw Error(me(168));Bt(Jn,t),Bt(mr,n)}function MP(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(me(108,YB(e)||"Unknown",o));return Qt({},n,r)}function hp(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||wl,oa=Jn.current,Bt(Jn,e),Bt(mr,mr.current),!0}function QC(e,t,n){var r=e.stateNode;if(!r)throw Error(me(169));n?(e=MP(e,t,oa),r.__reactInternalMemoizedMergedChildContext=e,zt(mr),zt(Jn),Bt(Jn,e)):zt(mr),Bt(mr,n)}var Ei=null,xg=!1,lv=!1;function OP(e){Ei===null?Ei=[e]:Ei.push(e)}function f$(e){xg=!0,OP(e)}function kl(){if(!lv&&Ei!==null){lv=!0;var e=0,t=Ot;try{var n=Ei;for(Ot=1;e>=a,o-=a,Ai=1<<32-_o(t)+o|n<O?(W=A,A=null):W=A.sibling;var $=v(m,A,I[O],R);if($===null){A===null&&(A=W);break}e&&A&&$.alternate===null&&t(m,A),x=i($,x,O),P===null?E=$:P.sibling=$,P=$,A=W}if(O===I.length)return n(m,A),Zt&&zl(m,O),E;if(A===null){for(;OO?(W=A,A=null):W=A.sibling;var j=v(m,A,$.value,R);if(j===null){A===null&&(A=W);break}e&&A&&j.alternate===null&&t(m,A),x=i(j,x,O),P===null?E=j:P.sibling=j,P=j,A=W}if($.done)return n(m,A),Zt&&zl(m,O),E;if(A===null){for(;!$.done;O++,$=I.next())$=g(m,$.value,R),$!==null&&(x=i($,x,O),P===null?E=$:P.sibling=$,P=$);return Zt&&zl(m,O),E}for(A=r(m,A);!$.done;O++,$=I.next())$=h(A,m,O,$.value,R),$!==null&&(e&&$.alternate!==null&&A.delete($.key===null?O:$.key),x=i($,x,O),P===null?E=$:P.sibling=$,P=$);return e&&A.forEach(function(V){return t(m,V)}),Zt&&zl(m,O),E}function S(m,x,I,R){if(typeof I=="object"&&I!==null&&I.type===Qa&&I.key===null&&(I=I.props.children),typeof I=="object"&&I!==null){switch(I.$$typeof){case jd:e:{for(var E=I.key,P=x;P!==null;){if(P.key===E){if(E=I.type,E===Qa){if(P.tag===7){n(m,P.sibling),x=o(P,I.props.children),x.return=m,m=x;break e}}else if(P.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===rl&&tI(E)===P.type){n(m,P.sibling),x=o(P,I.props),x.ref=bu(m,P,I),x.return=m,m=x;break e}n(m,P);break}else t(m,P);P=P.sibling}I.type===Qa?(x=ql(I.props.children,m.mode,R,I.key),x.return=m,m=x):(R=Wf(I.type,I.key,I.props,null,m.mode,R),R.ref=bu(m,x,I),R.return=m,m=R)}return a(m);case Ja:e:{for(P=I.key;x!==null;){if(x.key===P)if(x.tag===4&&x.stateNode.containerInfo===I.containerInfo&&x.stateNode.implementation===I.implementation){n(m,x.sibling),x=o(x,I.children||[]),x.return=m,m=x;break e}else{n(m,x);break}else t(m,x);x=x.sibling}x=gv(I,m.mode,R),x.return=m,m=x}return a(m);case rl:return P=I._init,S(m,x,P(I._payload),R)}if(Fu(I))return y(m,x,I,R);if(gu(I))return b(m,x,I,R);nf(m,I)}return typeof I=="string"&&I!==""||typeof I=="number"?(I=""+I,x!==null&&x.tag===6?(n(m,x.sibling),x=o(x,I),x.return=m,m=x):(n(m,x),x=pv(I,m.mode,R),x.return=m,m=x),a(m)):n(m,x)}return S}var Ss=NP(!0),FP=NP(!1),yp=Pl(null),bp=null,ls=null,Yy=null;function Ky(){Yy=ls=bp=null}function Jy(e){var t=yp.current;zt(yp),e._currentValue=t}function L0(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function gs(e,t){bp=e,Yy=ls=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(hr=!0),e.firstContext=null)}function po(e){var t=e._currentValue;if(Yy!==e)if(e={context:e,memoizedValue:t,next:null},ls===null){if(bp===null)throw Error(me(308));ls=e,bp.dependencies={lanes:0,firstContext:e}}else ls=ls.next=e;return t}var Zl=null;function Qy(e){Zl===null?Zl=[e]:Zl.push(e)}function DP(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,Qy(t)):(n.next=o.next,o.next=n),t.interleaved=n,Fi(e,r)}function Fi(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var ol=!1;function qy(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function BP(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Oi(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function ml(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,vt&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Fi(e,n)}return o=r.interleaved,o===null?(t.next=t,Qy(r)):(t.next=o.next,o.next=t),r.interleaved=t,Fi(e,n)}function Nf(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,By(e,n)}}function nI(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=a:i=i.next=a,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function xp(e,t,n,r){var o=e.updateQueue;ol=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,c=o.shared.pending;if(c!==null){o.shared.pending=null;var s=c,d=s.next;s.next=null,a===null?i=d:a.next=d,a=s;var f=e.alternate;f!==null&&(f=f.updateQueue,c=f.lastBaseUpdate,c!==a&&(c===null?f.firstBaseUpdate=d:c.next=d,f.lastBaseUpdate=s))}if(i!==null){var g=o.baseState;a=0,f=d=s=null,c=i;do{var v=c.lane,h=c.eventTime;if((r&v)===v){f!==null&&(f=f.next={eventTime:h,lane:0,tag:c.tag,payload:c.payload,callback:c.callback,next:null});e:{var y=e,b=c;switch(v=t,h=n,b.tag){case 1:if(y=b.payload,typeof y=="function"){g=y.call(h,g,v);break e}g=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=b.payload,v=typeof y=="function"?y.call(h,g,v):y,v==null)break e;g=Qt({},g,v);break e;case 2:ol=!0}}c.callback!==null&&c.lane!==0&&(e.flags|=64,v=o.effects,v===null?o.effects=[c]:v.push(c))}else h={eventTime:h,lane:v,tag:c.tag,payload:c.payload,callback:c.callback,next:null},f===null?(d=f=h,s=g):f=f.next=h,a|=v;if(c=c.next,c===null){if(c=o.shared.pending,c===null)break;v=c,c=v.next,v.next=null,o.lastBaseUpdate=v,o.shared.pending=null}}while(!0);if(f===null&&(s=g),o.baseState=s,o.firstBaseUpdate=d,o.lastBaseUpdate=f,t=o.shared.interleaved,t!==null){o=t;do a|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);aa|=a,e.lanes=a,e.memoizedState=g}}function rI(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=sv.transition;sv.transition={};try{e(!1),t()}finally{Ot=n,sv.transition=r}}function tk(){return go().memoizedState}function m$(e,t,n){var r=yl(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},nk(e))rk(t,n);else if(n=DP(e,t,n,r),n!==null){var o=rr();No(n,e,r,o),ok(n,t,r)}}function v$(e,t,n){var r=yl(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(nk(e))rk(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,c=i(a,n);if(o.hasEagerState=!0,o.eagerState=c,Fo(c,a)){var s=t.interleaved;s===null?(o.next=o,Qy(t)):(o.next=s.next,s.next=o),t.interleaved=o;return}}catch{}finally{}n=DP(e,t,o,r),n!==null&&(o=rr(),No(n,e,r,o),ok(n,t,r))}}function nk(e){var t=e.alternate;return e===Jt||t!==null&&t===Jt}function rk(e,t){Uu=Cp=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ok(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,By(e,n)}}var Ip={readContext:po,useCallback:Hn,useContext:Hn,useEffect:Hn,useImperativeHandle:Hn,useInsertionEffect:Hn,useLayoutEffect:Hn,useMemo:Hn,useReducer:Hn,useRef:Hn,useState:Hn,useDebugValue:Hn,useDeferredValue:Hn,useTransition:Hn,useMutableSource:Hn,useSyncExternalStore:Hn,useId:Hn,unstable_isNewReconciler:!1},y$={readContext:po,useCallback:function(e,t){return Ho().memoizedState=[e,t===void 0?null:t],e},useContext:po,useEffect:iI,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Df(4194308,4,KP.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Df(4194308,4,e,t)},useInsertionEffect:function(e,t){return Df(4,2,e,t)},useMemo:function(e,t){var n=Ho();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ho();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=m$.bind(null,Jt,e),[r.memoizedState,e]},useRef:function(e){var t=Ho();return e={current:e},t.memoizedState=e},useState:oI,useDebugValue:ab,useDeferredValue:function(e){return Ho().memoizedState=e},useTransition:function(){var e=oI(!1),t=e[0];return e=h$.bind(null,e[1]),Ho().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Jt,o=Ho();if(Zt){if(n===void 0)throw Error(me(407));n=n()}else{if(n=t(),On===null)throw Error(me(349));la&30||GP(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,iI(HP.bind(null,r,i,e),[e]),r.flags|=2048,Ic(9,zP.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Ho(),t=On.identifierPrefix;if(Zt){var n=Mi,r=Ai;n=(r&~(1<<32-_o(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=wc++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[Ko]=t,e[yc]=r,gk(e,t,!1,!1),t.stateNode=e;e:{switch(a=h0(n,r),n){case"dialog":Vt("cancel",e),Vt("close",e),o=r;break;case"iframe":case"object":case"embed":Vt("load",e),o=r;break;case"video":case"audio":for(o=0;oPs&&(t.flags|=128,r=!0,xu(i,!1),t.lanes=4194304)}else{if(!r)if(e=wp(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),xu(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!Zt)return jn(t),null}else 2*cn()-i.renderingStartTime>Ps&&n!==1073741824&&(t.flags|=128,r=!0,xu(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(n=i.last,n!==null?n.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=cn(),t.sibling=null,n=Kt.current,Bt(Kt,r?n&1|2:n&1),t):(jn(t),null);case 22:case 23:return pb(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?_r&1073741824&&(jn(t),t.subtreeFlags&6&&(t.flags|=8192)):jn(t),null;case 24:return null;case 25:return null}throw Error(me(156,t.tag))}function E$(e,t){switch(Uy(t),t.tag){case 1:return vr(t.type)&&gp(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Rs(),zt(mr),zt(Jn),nb(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return tb(t),null;case 13:if(zt(Kt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(me(340));Is()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return zt(Kt),null;case 4:return Rs(),null;case 10:return Jy(t.type._context),null;case 22:case 23:return pb(),null;case 24:return null;default:return null}}var of=!1,Zn=!1,P$=typeof WeakSet=="function"?WeakSet:Set,Ae=null;function as(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){on(e,t,r)}else n.current=null}function G0(e,t,n){try{n()}catch(r){on(e,t,r)}}var mI=!1;function k$(e,t){if(R0=cp,e=wP(),jy(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var a=0,c=-1,s=-1,d=0,f=0,g=e,v=null;t:for(;;){for(var h;g!==n||o!==0&&g.nodeType!==3||(c=a+o),g!==i||r!==0&&g.nodeType!==3||(s=a+r),g.nodeType===3&&(a+=g.nodeValue.length),(h=g.firstChild)!==null;)v=g,g=h;for(;;){if(g===e)break t;if(v===n&&++d===o&&(c=a),v===i&&++f===r&&(s=a),(h=g.nextSibling)!==null)break;g=v,v=g.parentNode}g=h}n=c===-1||s===-1?null:{start:c,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(E0={focusedElem:e,selectionRange:n},cp=!1,Ae=t;Ae!==null;)if(t=Ae,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Ae=e;else for(;Ae!==null;){t=Ae;try{var y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var b=y.memoizedProps,S=y.memoizedState,m=t.stateNode,x=m.getSnapshotBeforeUpdate(t.elementType===t.type?b:ko(t.type,b),S);m.__reactInternalSnapshotBeforeUpdate=x}break;case 3:var I=t.stateNode.containerInfo;I.nodeType===1?I.textContent="":I.nodeType===9&&I.documentElement&&I.removeChild(I.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(me(163))}}catch(R){on(t,t.return,R)}if(e=t.sibling,e!==null){e.return=t.return,Ae=e;break}Ae=t.return}return y=mI,mI=!1,y}function Zu(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&G0(t,n,i)}o=o.next}while(o!==r)}}function Ig(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function z0(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function vk(e){var t=e.alternate;t!==null&&(e.alternate=null,vk(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ko],delete t[yc],delete t[A0],delete t[c$],delete t[d$])),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 yk(e){return e.tag===5||e.tag===3||e.tag===4}function vI(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||yk(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 H0(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=pp));else if(r!==4&&(e=e.child,e!==null))for(H0(e,t,n),e=e.sibling;e!==null;)H0(e,t,n),e=e.sibling}function j0(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(j0(e,t,n),e=e.sibling;e!==null;)j0(e,t,n),e=e.sibling}var Fn=null,Ao=!1;function nl(e,t,n){for(n=n.child;n!==null;)bk(e,t,n),n=n.sibling}function bk(e,t,n){if(qo&&typeof qo.onCommitFiberUnmount=="function")try{qo.onCommitFiberUnmount(hg,n)}catch{}switch(n.tag){case 5:Zn||as(n,t);case 6:var r=Fn,o=Ao;Fn=null,nl(e,t,n),Fn=r,Ao=o,Fn!==null&&(Ao?(e=Fn,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Fn.removeChild(n.stateNode));break;case 18:Fn!==null&&(Ao?(e=Fn,n=n.stateNode,e.nodeType===8?iv(e.parentNode,n):e.nodeType===1&&iv(e,n),pc(e)):iv(Fn,n.stateNode));break;case 4:r=Fn,o=Ao,Fn=n.stateNode.containerInfo,Ao=!0,nl(e,t,n),Fn=r,Ao=o;break;case 0:case 11:case 14:case 15:if(!Zn&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,a!==void 0&&(i&2||i&4)&&G0(n,t,a),o=o.next}while(o!==r)}nl(e,t,n);break;case 1:if(!Zn&&(as(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(c){on(n,t,c)}nl(e,t,n);break;case 21:nl(e,t,n);break;case 22:n.mode&1?(Zn=(r=Zn)||n.memoizedState!==null,nl(e,t,n),Zn=r):nl(e,t,n);break;default:nl(e,t,n)}}function yI(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new P$),t.forEach(function(r){var o=D$.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Po(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=a),r&=~i}if(r=o,r=cn()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*M$(r/1960))-r,10e?16:e,ul===null)var r=!1;else{if(e=ul,ul=null,Ep=0,vt&6)throw Error(me(331));var o=vt;for(vt|=4,Ae=e.current;Ae!==null;){var i=Ae,a=i.child;if(Ae.flags&16){var c=i.deletions;if(c!==null){for(var s=0;scn()-db?Ql(e,0):cb|=n),yr(e,t)}function Pk(e,t){t===0&&(e.mode&1?(t=Yd,Yd<<=1,!(Yd&130023424)&&(Yd=4194304)):t=1);var n=rr();e=Fi(e,t),e!==null&&(Vc(e,t,n),yr(e,n))}function F$(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Pk(e,n)}function D$(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(me(314))}r!==null&&r.delete(t),Pk(e,n)}var kk;kk=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||mr.current)hr=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return hr=!1,S$(e,t,n);hr=!!(e.flags&131072)}else hr=!1,Zt&&t.flags&1048576&&TP(t,vp,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Bf(e,t),e=t.pendingProps;var o=Cs(t,Jn.current);gs(t,n),o=ob(null,t,r,e,o,n);var i=ib();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,vr(r)?(i=!0,hp(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,qy(t),o.updater=Cg,t.stateNode=o,o._reactInternals=t,N0(t,r,e,n),t=B0(null,t,r,!0,i,n)):(t.tag=0,Zt&&i&&Xy(t),tr(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Bf(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=$$(r),e=ko(r,e),o){case 0:t=D0(null,t,r,e,n);break e;case 1:t=pI(null,t,r,e,n);break e;case 11:t=dI(null,t,r,e,n);break e;case 14:t=fI(null,t,r,ko(r.type,e),n);break e}throw Error(me(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ko(r,o),D0(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ko(r,o),pI(e,t,r,o,n);case 3:e:{if(dk(t),e===null)throw Error(me(387));r=t.pendingProps,i=t.memoizedState,o=i.element,BP(e,t),xp(t,r,null,n);var a=t.memoizedState;if(r=a.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Es(Error(me(423)),t),t=gI(e,t,r,n,o);break e}else if(r!==o){o=Es(Error(me(424)),t),t=gI(e,t,r,n,o);break e}else for($r=hl(t.stateNode.containerInfo.firstChild),Wr=t,Zt=!0,Oo=null,n=FP(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Is(),r===o){t=Di(e,t,n);break e}tr(e,t,r,n)}t=t.child}return t;case 5:return $P(t),e===null&&T0(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,a=o.children,P0(r,o)?a=null:i!==null&&P0(r,i)&&(t.flags|=32),ck(e,t),tr(e,t,a,n),t.child;case 6:return e===null&&T0(t),null;case 13:return fk(e,t,n);case 4:return eb(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ss(t,null,r,n):tr(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ko(r,o),dI(e,t,r,o,n);case 7:return tr(e,t,t.pendingProps,n),t.child;case 8:return tr(e,t,t.pendingProps.children,n),t.child;case 12:return tr(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,a=o.value,Bt(yp,r._currentValue),r._currentValue=a,i!==null)if(Fo(i.value,a)){if(i.children===o.children&&!mr.current){t=Di(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var c=i.dependencies;if(c!==null){a=i.child;for(var s=c.firstContext;s!==null;){if(s.context===r){if(i.tag===1){s=Oi(-1,n&-n),s.tag=2;var d=i.updateQueue;if(d!==null){d=d.shared;var f=d.pending;f===null?s.next=s:(s.next=f.next,f.next=s),d.pending=s}}i.lanes|=n,s=i.alternate,s!==null&&(s.lanes|=n),L0(i.return,n,t),c.lanes|=n;break}s=s.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(me(341));a.lanes|=n,c=a.alternate,c!==null&&(c.lanes|=n),L0(a,n,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}tr(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,gs(t,n),o=po(o),r=r(o),t.flags|=1,tr(e,t,r,n),t.child;case 14:return r=t.type,o=ko(r,t.pendingProps),o=ko(r.type,o),fI(e,t,r,o,n);case 15:return sk(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ko(r,o),Bf(e,t),t.tag=1,vr(r)?(e=!0,hp(t)):e=!1,gs(t,n),ik(t,r,o),N0(t,r,o,n),B0(null,t,r,!0,e,n);case 19:return pk(e,t,n);case 22:return uk(e,t,n)}throw Error(me(156,t.tag))};function Ak(e,t){return nP(e,t)}function B$(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function uo(e,t,n,r){return new B$(e,t,n,r)}function hb(e){return e=e.prototype,!(!e||!e.isReactComponent)}function $$(e){if(typeof e=="function")return hb(e)?1:0;if(e!=null){if(e=e.$$typeof,e===_y)return 11;if(e===Ny)return 14}return 2}function bl(e,t){var n=e.alternate;return n===null?(n=uo(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Wf(e,t,n,r,o,i){var a=2;if(r=e,typeof e=="function")hb(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Qa:return ql(n.children,o,i,t);case Ly:a=8,o|=8;break;case i0:return e=uo(12,n,t,o|2),e.elementType=i0,e.lanes=i,e;case l0:return e=uo(13,n,t,o),e.elementType=l0,e.lanes=i,e;case a0:return e=uo(19,n,t,o),e.elementType=a0,e.lanes=i,e;case $E:return Rg(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case DE:a=10;break e;case BE:a=9;break e;case _y:a=11;break e;case Ny:a=14;break e;case rl:a=16,r=null;break e}throw Error(me(130,e==null?e:typeof e,""))}return t=uo(a,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function ql(e,t,n,r){return e=uo(7,e,r,t),e.lanes=n,e}function Rg(e,t,n,r){return e=uo(22,e,r,t),e.elementType=$E,e.lanes=n,e.stateNode={isHidden:!1},e}function pv(e,t,n){return e=uo(6,e,null,t),e.lanes=n,e}function gv(e,t,n){return t=uo(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function V$(e,t,n,r,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=Zm(0),this.expirationTimes=Zm(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Zm(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function mb(e,t,n,r,o,i,a,c,s){return e=new V$(e,t,n,c,s),t===1?(t=1,i===!0&&(t|=8)):t=0,i=uo(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},qy(i),e}function W$(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Lk)}catch(e){console.error(e)}}Lk(),LE.exports=Xr;var Hc=LE.exports;const sf=pg(Hc);var EI=Hc;r0.createRoot=EI.createRoot,r0.hydrateRoot=EI.hydrateRoot;function ua(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n0?Bn($s,--Cr):0,ks--,pn===10&&(ks=1,Tg--),pn}function Gr(){return pn=Cr2||Ec(pn)>3?"":" "}function u5(e,t){for(;--t&&Gr()&&!(pn<48||pn>102||pn>57&&pn<65||pn>70&&pn<97););return jc(e,Gf()+(t<6&&ti()==32&&Gr()==32))}function J0(e){for(;Gr();)switch(pn){case e:return Cr;case 34:case 39:e!==34&&e!==39&&J0(pn);break;case 40:e===41&&J0(e);break;case 92:Gr();break}return Cr}function c5(e,t){for(;Gr()&&e+pn!==57;)if(e+pn===84&&ti()===47)break;return"/*"+jc(t,Cr-1)+"*"+Og(e===47?e:Gr())}function d5(e){for(;!Ec(ti());)Gr();return jc(e,Cr)}function f5(e){return Vk(Hf("",null,null,null,[""],e=$k(e),0,[0],e))}function Hf(e,t,n,r,o,i,a,c,s){for(var d=0,f=0,g=a,v=0,h=0,y=0,b=1,S=1,m=1,x=0,I="",R=o,E=i,P=r,A=I;S;)switch(y=x,x=Gr()){case 40:if(y!=108&&Bn(A,g-1)==58){K0(A+=Et(zf(x),"&","&\f"),"&\f")!=-1&&(m=-1);break}case 34:case 39:case 91:A+=zf(x);break;case 9:case 10:case 13:case 32:A+=s5(y);break;case 92:A+=u5(Gf()-1,7);continue;case 47:switch(ti()){case 42:case 47:uf(p5(c5(Gr(),Gf()),t,n),s);break;default:A+="/"}break;case 123*b:c[d++]=Xo(A)*m;case 125*b:case 59:case 0:switch(x){case 0:case 125:S=0;case 59+f:m==-1&&(A=Et(A,/\f/g,"")),h>0&&Xo(A)-g&&uf(h>32?kI(A+";",r,n,g-1):kI(Et(A," ","")+";",r,n,g-2),s);break;case 59:A+=";";default:if(uf(P=PI(A,t,n,d,f,o,c,I,R=[],E=[],g),i),x===123)if(f===0)Hf(A,t,P,P,R,i,g,c,E);else switch(v===99&&Bn(A,3)===110?100:v){case 100:case 108:case 109:case 115:Hf(e,P,P,r&&uf(PI(e,P,P,0,0,o,c,I,o,R=[],g),E),o,E,g,c,r?R:E);break;default:Hf(A,P,P,P,[""],E,0,c,E)}}d=f=h=0,b=m=1,I=A="",g=a;break;case 58:g=1+Xo(A),h=y;default:if(b<1){if(x==123)--b;else if(x==125&&b++==0&&a5()==125)continue}switch(A+=Og(x),x*b){case 38:m=f>0?1:(A+="\f",-1);break;case 44:c[d++]=(Xo(A)-1)*m,m=1;break;case 64:ti()===45&&(A+=zf(Gr())),v=ti(),f=g=Xo(I=A+=d5(Gf())),x++;break;case 45:y===45&&Xo(A)==2&&(b=0)}}return i}function PI(e,t,n,r,o,i,a,c,s,d,f){for(var g=o-1,v=o===0?i:[""],h=Cb(v),y=0,b=0,S=0;y0?v[m]+" "+x:Et(x,/&\f/g,v[m])))&&(s[S++]=I);return Lg(e,t,n,o===0?xb:c,s,d,f)}function p5(e,t,n){return Lg(e,t,n,Nk,Og(l5()),Rc(e,2,-2),0)}function kI(e,t,n,r){return Lg(e,t,n,wb,Rc(e,0,r),Rc(e,r+1,-1),r)}function ms(e,t){for(var n="",r=Cb(e),o=0;o6)switch(Bn(e,t+1)){case 109:if(Bn(e,t+4)!==45)break;case 102:return Et(e,/(.+:)(.+)-([^]+)/,"$1"+St+"$2-$3$1"+Ap+(Bn(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~K0(e,"stretch")?Wk(Et(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Bn(e,t+1)!==115)break;case 6444:switch(Bn(e,Xo(e)-3-(~K0(e,"!important")&&10))){case 107:return Et(e,":",":"+St)+e;case 101:return Et(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+St+(Bn(e,14)===45?"inline-":"")+"box$3$1"+St+"$2$3$1"+Xn+"$2box$3")+e}break;case 5936:switch(Bn(e,t+11)){case 114:return St+e+Xn+Et(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return St+e+Xn+Et(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return St+e+Xn+Et(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return St+e+Xn+e+e}return e}var C5=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case wb:t.return=Wk(t.value,t.length);break;case Fk:return ms([Cu(t,{value:Et(t.value,"@","@"+St)})],o);case xb:if(t.length)return i5(t.props,function(i){switch(o5(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ms([Cu(t,{props:[Et(i,/:(read-\w+)/,":"+Ap+"$1")]})],o);case"::placeholder":return ms([Cu(t,{props:[Et(i,/:(plac\w+)/,":"+St+"input-$1")]}),Cu(t,{props:[Et(i,/:(plac\w+)/,":"+Ap+"$1")]}),Cu(t,{props:[Et(i,/:(plac\w+)/,Xn+"input-$1")]})],o)}return""})}},I5=[C5],Gk=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(b){var S=b.getAttribute("data-emotion");S.indexOf(" ")!==-1&&(document.head.appendChild(b),b.setAttribute("data-s",""))})}var o=t.stylisPlugins||I5,i={},a,c=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(b){for(var S=b.getAttribute("data-emotion").split(" "),m=1;m=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&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 _5={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},N5=!1,F5=/[A-Z]|^ms/g,D5=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Zk=function(t){return t.charCodeAt(1)===45},MI=function(t){return t!=null&&typeof t!="boolean"},hv=_k(function(e){return Zk(e)?e:e.replace(F5,"-$&").toLowerCase()}),OI=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(D5,function(r,o,i){return Uo={name:o,styles:i,next:Uo},o})}return _5[t]!==1&&!Zk(t)&&typeof n=="number"&&n!==0?n+"px":n},B5="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Pc(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var o=n;if(o.anim===1)return Uo={name:o.name,styles:o.styles,next:Uo},o.name;var i=n;if(i.styles!==void 0){var a=i.next;if(a!==void 0)for(;a!==void 0;)Uo={name:a.name,styles:a.styles,next:Uo},a=a.next;var c=i.styles+";";return c}return $5(e,t,n)}case"function":{if(e!==void 0){var s=Uo,d=n(e);return Uo=s,Pc(e,t,d)}break}}var f=n;if(t==null)return f;var g=t[f];return g!==void 0?g:f}function $5(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o96?Z5:Y5},FI=function(t,n,r){var o;if(n){var i=n.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(a){return t.__emotion_forwardProp(a)&&i(a)}:i}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},K5=!1,J5=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return Eb(n,r,o),Kk(function(){return Pb(n,r,o)}),null},Q5=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,i,a;n!==void 0&&(i=n.label,a=n.target);var c=FI(t,n,r),s=c||NI(o),d=!s("as");return function(){var f=arguments,g=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&g.push("label:"+i+";"),f[0]==null||f[0].raw===void 0)g.push.apply(g,f);else{g.push(f[0][0]);for(var v=f.length,h=1;ht(l3(o)?n:o):t;return H.jsx(U5,{styles:r})}function Mb(e,t){return q0(e,t)}const r2=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},a3=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:n2,StyledEngineProvider:i3,ThemeContext:Xc,css:jg,default:Mb,internal_processStyles:r2,keyframes:Uc},Symbol.toStringTag,{value:"Module"}));function Pi(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function o2(e){if(!Pi(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=o2(e[n])}),t}function or(e,t,n={clone:!0}){const r=n.clone?L({},e):e;return Pi(e)&&Pi(t)&&Object.keys(t).forEach(o=>{Pi(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Pi(e[o])?r[o]=or(e[o],t[o],n):n.clone?r[o]=Pi(t[o])?o2(t[o]):t[o]:r[o]=t[o]}),r}const s3=Object.freeze(Object.defineProperty({__proto__:null,default:or,isPlainObject:Pi},Symbol.toStringTag,{value:"Module"})),u3=["values","unit","step"],c3=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>L({},n,{[r.key]:r.val}),{})};function i2(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=Me(e,u3),i=c3(t),a=Object.keys(i);function c(v){return`@media (min-width:${typeof t[v]=="number"?t[v]:v}${n})`}function s(v){return`@media (max-width:${(typeof t[v]=="number"?t[v]:v)-r/100}${n})`}function d(v,h){const y=a.indexOf(h);return`@media (min-width:${typeof t[v]=="number"?t[v]:v}${n}) and (max-width:${(y!==-1&&typeof t[a[y]]=="number"?t[a[y]]:h)-r/100}${n})`}function f(v){return a.indexOf(v)+1`@media (min-width:${Ob[e]}px)`};function Ir(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||DI;return t.reduce((a,c,s)=>(a[i.up(i.keys[s])]=n(t[s]),a),{})}if(typeof t=="object"){const i=r.breakpoints||DI;return Object.keys(t).reduce((a,c)=>{if(Object.keys(i.values||Ob).indexOf(c)!==-1){const s=i.up(c);a[s]=n(t[c],c)}else{const s=c;a[s]=t[s]}return a},{})}return n(t)}function l2(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,o)=>{const i=e.up(o);return r[i]={},r},{}))||{}}function a2(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function f3(e,...t){const n=l2(e),r=[n,...t].reduce((o,i)=>or(o,i),{});return a2(Object.keys(n),r)}function p3(e,t){if(typeof e!="object")return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((o,i)=>{i{e[o]!=null&&(n[o]=!0)}),n}function ea({values:e,breakpoints:t,base:n}){const r=n||p3(e,t),o=Object.keys(r);if(o.length===0)return e;let i;return o.reduce((a,c,s)=>(Array.isArray(e)?(a[c]=e[s]!=null?e[s]:e[i],i=s):typeof e=="object"?(a[c]=e[c]!=null?e[c]:e[i],i=c):a[c]=e,a),{})}function Ee(e){if(typeof e!="string")throw new Error(ua(7));return e.charAt(0).toUpperCase()+e.slice(1)}const g3=Object.freeze(Object.defineProperty({__proto__:null,default:Ee},Symbol.toStringTag,{value:"Module"}));function Xg(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function Mp(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=Xg(e,n)||r,t&&(o=t(o,r,e)),o}function dn(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=a=>{if(a[t]==null)return null;const c=a[t],s=a.theme,d=Xg(s,r)||{};return Ir(a,c,g=>{let v=Mp(d,o,g);return g===v&&typeof g=="string"&&(v=Mp(d,o,`${t}${g==="default"?"":Ee(g)}`,g)),n===!1?v:{[n]:v}})};return i.propTypes={},i.filterProps=[t],i}function h3(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const m3={m:"margin",p:"padding"},v3={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},BI={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},y3=h3(e=>{if(e.length>2)if(BI[e])e=BI[e];else return[e];const[t,n]=e.split(""),r=m3[t],o=v3[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),Tb=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Lb=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Tb,...Lb];function Zc(e,t,n,r){var o;const i=(o=Xg(e,t,!1))!=null?o:n;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 _b(e){return Zc(e,"spacing",8)}function ca(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),r=e(n);return t>=0?r:typeof r=="number"?-r:`-${r}`}function b3(e,t){return n=>e.reduce((r,o)=>(r[o]=ca(t,n),r),{})}function x3(e,t,n,r){if(t.indexOf(n)===-1)return null;const o=y3(n),i=b3(o,r),a=e[n];return Ir(e,a,i)}function s2(e,t){const n=_b(e.theme);return Object.keys(e).map(r=>x3(e,t,r,n)).reduce(Ju,{})}function tn(e){return s2(e,Tb)}tn.propTypes={};tn.filterProps=Tb;function nn(e){return s2(e,Lb)}nn.propTypes={};nn.filterProps=Lb;function w3(e=8){if(e.mui)return e;const t=_b({spacing:e}),n=(...r)=>(r.length===0?[1]:r).map(i=>{const a=t(i);return typeof a=="number"?`${a}px`:a}).join(" ");return n.mui=!0,n}function Ug(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(i=>{r[i]=o}),r),{}),n=r=>Object.keys(r).reduce((o,i)=>t[i]?Ju(o,t[i](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function so(e){return typeof e!="number"?e:`${e}px solid`}function bo(e,t){return dn({prop:e,themeKey:"borders",transform:t})}const C3=bo("border",so),I3=bo("borderTop",so),S3=bo("borderRight",so),R3=bo("borderBottom",so),E3=bo("borderLeft",so),P3=bo("borderColor"),k3=bo("borderTopColor"),A3=bo("borderRightColor"),M3=bo("borderBottomColor"),O3=bo("borderLeftColor"),T3=bo("outline",so),L3=bo("outlineColor"),Zg=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Zc(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:ca(t,r)});return Ir(e,e.borderRadius,n)}return null};Zg.propTypes={};Zg.filterProps=["borderRadius"];Ug(C3,I3,S3,R3,E3,P3,k3,A3,M3,O3,Zg,T3,L3);const Yg=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Zc(e.theme,"spacing",8),n=r=>({gap:ca(t,r)});return Ir(e,e.gap,n)}return null};Yg.propTypes={};Yg.filterProps=["gap"];const Kg=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Zc(e.theme,"spacing",8),n=r=>({columnGap:ca(t,r)});return Ir(e,e.columnGap,n)}return null};Kg.propTypes={};Kg.filterProps=["columnGap"];const Jg=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Zc(e.theme,"spacing",8),n=r=>({rowGap:ca(t,r)});return Ir(e,e.rowGap,n)}return null};Jg.propTypes={};Jg.filterProps=["rowGap"];const _3=dn({prop:"gridColumn"}),N3=dn({prop:"gridRow"}),F3=dn({prop:"gridAutoFlow"}),D3=dn({prop:"gridAutoColumns"}),B3=dn({prop:"gridAutoRows"}),$3=dn({prop:"gridTemplateColumns"}),V3=dn({prop:"gridTemplateRows"}),W3=dn({prop:"gridTemplateAreas"}),G3=dn({prop:"gridArea"});Ug(Yg,Kg,Jg,_3,N3,F3,D3,B3,$3,V3,W3,G3);function vs(e,t){return t==="grey"?t:e}const z3=dn({prop:"color",themeKey:"palette",transform:vs}),H3=dn({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:vs}),j3=dn({prop:"backgroundColor",themeKey:"palette",transform:vs});Ug(z3,H3,j3);function Dr(e){return e<=1&&e!==0?`${e*100}%`:e}const X3=dn({prop:"width",transform:Dr}),Nb=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,o;const i=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||Ob[n];return i?((o=e.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:Dr(n)}};return Ir(e,e.maxWidth,t)}return null};Nb.filterProps=["maxWidth"];const U3=dn({prop:"minWidth",transform:Dr}),Z3=dn({prop:"height",transform:Dr}),Y3=dn({prop:"maxHeight",transform:Dr}),K3=dn({prop:"minHeight",transform:Dr});dn({prop:"size",cssProperty:"width",transform:Dr});dn({prop:"size",cssProperty:"height",transform:Dr});const J3=dn({prop:"boxSizing"});Ug(X3,Nb,U3,Z3,Y3,K3,J3);const Yc={border:{themeKey:"borders",transform:so},borderTop:{themeKey:"borders",transform:so},borderRight:{themeKey:"borders",transform:so},borderBottom:{themeKey:"borders",transform:so},borderLeft:{themeKey:"borders",transform:so},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:so},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Zg},color:{themeKey:"palette",transform:vs},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:vs},backgroundColor:{themeKey:"palette",transform:vs},p:{style:nn},pt:{style:nn},pr:{style:nn},pb:{style:nn},pl:{style:nn},px:{style:nn},py:{style:nn},padding:{style:nn},paddingTop:{style:nn},paddingRight:{style:nn},paddingBottom:{style:nn},paddingLeft:{style:nn},paddingX:{style:nn},paddingY:{style:nn},paddingInline:{style:nn},paddingInlineStart:{style:nn},paddingInlineEnd:{style:nn},paddingBlock:{style:nn},paddingBlockStart:{style:nn},paddingBlockEnd:{style:nn},m:{style:tn},mt:{style:tn},mr:{style:tn},mb:{style:tn},ml:{style:tn},mx:{style:tn},my:{style:tn},margin:{style:tn},marginTop:{style:tn},marginRight:{style:tn},marginBottom:{style:tn},marginLeft:{style:tn},marginX:{style:tn},marginY:{style:tn},marginInline:{style:tn},marginInlineStart:{style:tn},marginInlineEnd:{style:tn},marginBlock:{style:tn},marginBlockStart:{style:tn},marginBlockEnd:{style:tn},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:Yg},rowGap:{style:Jg},columnGap:{style:Kg},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Dr},maxWidth:{style:Nb},minWidth:{transform:Dr},height:{transform:Dr},maxHeight:{transform:Dr},minHeight:{transform:Dr},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Q3(...e){const t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function q3(e,t){return typeof e=="function"?e(t):e}function u2(){function e(n,r,o,i){const a={[n]:r,theme:o},c=i[n];if(!c)return{[n]:r};const{cssProperty:s=n,themeKey:d,transform:f,style:g}=c;if(r==null)return null;if(d==="typography"&&r==="inherit")return{[n]:r};const v=Xg(o,d)||{};return g?g(a):Ir(a,r,y=>{let b=Mp(v,f,y);return y===b&&typeof y=="string"&&(b=Mp(v,f,`${n}${y==="default"?"":Ee(y)}`,y)),s===!1?b:{[s]:b}})}function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const a=(r=i.unstable_sxConfig)!=null?r:Yc;function c(s){let d=s;if(typeof s=="function")d=s(i);else if(typeof s!="object")return s;if(!d)return null;const f=l2(i.breakpoints),g=Object.keys(f);let v=f;return Object.keys(d).forEach(h=>{const y=q3(d[h],i);if(y!=null)if(typeof y=="object")if(a[h])v=Ju(v,e(h,y,i,a));else{const b=Ir({theme:i},y,S=>({[h]:S}));Q3(b,y)?v[h]=t({sx:y,theme:i}):v=Ju(v,b)}else v=Ju(v,e(h,y,i,a))}),a2(g,v)}return Array.isArray(o)?o.map(c):c(o)}return t}const Vs=u2();Vs.filterProps=["sx"];function c2(e,t){const n=this;return n.vars&&typeof n.getColorSchemeSelector=="function"?{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:n.palette.mode===e?t:{}}const eV=["breakpoints","palette","spacing","shape"];function Kc(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=Me(e,eV),c=i2(n),s=w3(o);let d=or({breakpoints:c,direction:"ltr",components:{},palette:L({mode:"light"},r),spacing:s,shape:L({},d3,i)},a);return d.applyStyles=c2,d=t.reduce((f,g)=>or(f,g),d),d.unstable_sxConfig=L({},Yc,a==null?void 0:a.unstable_sxConfig),d.unstable_sx=function(g){return Vs({sx:g,theme:this})},d}const tV=Object.freeze(Object.defineProperty({__proto__:null,default:Kc,private_createBreakpoints:i2,unstable_applyStyles:c2},Symbol.toStringTag,{value:"Module"}));function nV(e){return Object.keys(e).length===0}function rV(e=null){const t=C.useContext(Xc);return!t||nV(t)?e:t}const oV=Kc();function Qg(e=oV){return rV(e)}function iV({styles:e,themeId:t,defaultTheme:n={}}){const r=Qg(n),o=typeof e=="function"?e(t&&r[t]||r):e;return H.jsx(n2,{styles:o})}const lV=["sx"],aV=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:Yc;return Object.keys(e).forEach(i=>{o[i]?r.systemProps[i]=e[i]:r.otherProps[i]=e[i]}),r};function qg(e){const{sx:t}=e,n=Me(e,lV),{systemProps:r,otherProps:o}=aV(n);let i;return Array.isArray(t)?i=[r,...t]:typeof t=="function"?i=(...a)=>{const c=t(...a);return Pi(c)?L({},r,c):r}:i=L({},r,t),L({},o,{sx:i})}const sV=Object.freeze(Object.defineProperty({__proto__:null,default:Vs,extendSxProp:qg,unstable_createStyleFunctionSx:u2,unstable_defaultSxConfig:Yc},Symbol.toStringTag,{value:"Module"})),$I=e=>e,uV=()=>{let e=$I;return{configure(t){e=t},generate(t){return e(t)},reset(){e=$I}}},Fb=uV();function d2(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;tc!=="theme"&&c!=="sx"&&c!=="as"})(Vs);return C.forwardRef(function(s,d){const f=Qg(n),g=qg(s),{className:v,component:h="div"}=g,y=Me(g,cV);return H.jsx(i,L({as:h,ref:d,className:Be(v,o?o(r):r),theme:t&&f[t]||f},y))})}const fV={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function mt(e,t,n="Mui"){const r=fV[t];return r?`${n}-${r}`:`${Fb.generate(e)}-${t}`}function ft(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=mt(e,o,n)}),r}var f2={exports:{}},Lt={};/** + * @license React + * react-is.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Db=Symbol.for("react.element"),Bb=Symbol.for("react.portal"),eh=Symbol.for("react.fragment"),th=Symbol.for("react.strict_mode"),nh=Symbol.for("react.profiler"),rh=Symbol.for("react.provider"),oh=Symbol.for("react.context"),pV=Symbol.for("react.server_context"),ih=Symbol.for("react.forward_ref"),lh=Symbol.for("react.suspense"),ah=Symbol.for("react.suspense_list"),sh=Symbol.for("react.memo"),uh=Symbol.for("react.lazy"),gV=Symbol.for("react.offscreen"),p2;p2=Symbol.for("react.module.reference");function xo(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Db:switch(e=e.type,e){case eh:case nh:case th:case lh:case ah:return e;default:switch(e=e&&e.$$typeof,e){case pV:case oh:case ih:case uh:case sh:case rh:return e;default:return t}}case Bb:return t}}}Lt.ContextConsumer=oh;Lt.ContextProvider=rh;Lt.Element=Db;Lt.ForwardRef=ih;Lt.Fragment=eh;Lt.Lazy=uh;Lt.Memo=sh;Lt.Portal=Bb;Lt.Profiler=nh;Lt.StrictMode=th;Lt.Suspense=lh;Lt.SuspenseList=ah;Lt.isAsyncMode=function(){return!1};Lt.isConcurrentMode=function(){return!1};Lt.isContextConsumer=function(e){return xo(e)===oh};Lt.isContextProvider=function(e){return xo(e)===rh};Lt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Db};Lt.isForwardRef=function(e){return xo(e)===ih};Lt.isFragment=function(e){return xo(e)===eh};Lt.isLazy=function(e){return xo(e)===uh};Lt.isMemo=function(e){return xo(e)===sh};Lt.isPortal=function(e){return xo(e)===Bb};Lt.isProfiler=function(e){return xo(e)===nh};Lt.isStrictMode=function(e){return xo(e)===th};Lt.isSuspense=function(e){return xo(e)===lh};Lt.isSuspenseList=function(e){return xo(e)===ah};Lt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===eh||e===nh||e===th||e===lh||e===ah||e===gV||typeof e=="object"&&e!==null&&(e.$$typeof===uh||e.$$typeof===sh||e.$$typeof===rh||e.$$typeof===oh||e.$$typeof===ih||e.$$typeof===p2||e.getModuleId!==void 0)};Lt.typeOf=xo;f2.exports=Lt;var VI=f2.exports;const hV=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function g2(e){const t=`${e}`.match(hV);return t&&t[1]||""}function h2(e,t=""){return e.displayName||e.name||g2(e)||t}function WI(e,t,n){const r=h2(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function mV(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return h2(e,"Component");if(typeof e=="object")switch(e.$$typeof){case VI.ForwardRef:return WI(e,e.render,"ForwardRef");case VI.Memo:return WI(e,e.type,"memo");default:return}}}const vV=Object.freeze(Object.defineProperty({__proto__:null,default:mV,getFunctionName:g2},Symbol.toStringTag,{value:"Module"})),yV=["ownerState"],bV=["variants"],xV=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function wV(e){return Object.keys(e).length===0}function CV(e){return typeof e=="string"&&e.charCodeAt(0)>96}function yv(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const IV=Kc(),SV=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function cf({defaultTheme:e,theme:t,themeId:n}){return wV(t)?e:t[n]||t}function RV(e){return e?(t,n)=>n[e]:null}function jf(e,t){let{ownerState:n}=t,r=Me(t,yV);const o=typeof e=="function"?e(L({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap(i=>jf(i,L({ownerState:n},r)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:i=[]}=o;let c=Me(o,bV);return i.forEach(s=>{let d=!0;typeof s.props=="function"?d=s.props(L({ownerState:n},r,n)):Object.keys(s.props).forEach(f=>{(n==null?void 0:n[f])!==s.props[f]&&r[f]!==s.props[f]&&(d=!1)}),d&&(Array.isArray(c)||(c=[c]),c.push(typeof s.style=="function"?s.style(L({ownerState:n},r,n)):s.style))}),c}return o}function EV(e={}){const{themeId:t,defaultTheme:n=IV,rootShouldForwardProp:r=yv,slotShouldForwardProp:o=yv}=e,i=a=>Vs(L({},a,{theme:cf(L({},a,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(a,c={})=>{r2(a,E=>E.filter(P=>!(P!=null&&P.__mui_systemSx)));const{name:s,slot:d,skipVariantsResolver:f,skipSx:g,overridesResolver:v=RV(SV(d))}=c,h=Me(c,xV),y=f!==void 0?f:d&&d!=="Root"&&d!=="root"||!1,b=g||!1;let S,m=yv;d==="Root"||d==="root"?m=r:d?m=o:CV(a)&&(m=void 0);const x=Mb(a,L({shouldForwardProp:m,label:S},h)),I=E=>typeof E=="function"&&E.__emotion_real!==E||Pi(E)?P=>jf(E,L({},P,{theme:cf({theme:P.theme,defaultTheme:n,themeId:t})})):E,R=(E,...P)=>{let A=I(E);const O=P?P.map(I):[];s&&v&&O.push(j=>{const V=cf(L({},j,{defaultTheme:n,themeId:t}));if(!V.components||!V.components[s]||!V.components[s].styleOverrides)return null;const U=V.components[s].styleOverrides,Z={};return Object.entries(U).forEach(([_,F])=>{Z[_]=jf(F,L({},j,{theme:V}))}),v(j,Z)}),s&&!y&&O.push(j=>{var V;const U=cf(L({},j,{defaultTheme:n,themeId:t})),Z=U==null||(V=U.components)==null||(V=V[s])==null?void 0:V.variants;return jf({variants:Z},L({},j,{theme:U}))}),b||O.push(i);const W=O.length-P.length;if(Array.isArray(E)&&W>0){const j=new Array(W).fill("");A=[...E,...j],A.raw=[...E.raw,...j]}const $=x(A,...O);return a.muiName&&($.muiName=a.muiName),$};return x.withConfig&&(R.withConfig=x.withConfig),R}}const PV=EV();function kc(e,t){const n=L({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=L({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},i=t[r];n[r]={},!i||!Object.keys(i)?n[r]=o:!o||!Object.keys(o)?n[r]=i:(n[r]=L({},i),Object.keys(o).forEach(a=>{n[r][a]=kc(o[a],i[a])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function kV(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:kc(t.components[n].defaultProps,r)}function AV({props:e,name:t,defaultTheme:n,themeId:r}){let o=Qg(n);return r&&(o=o[r]||o),kV({theme:o,name:t,props:e})}const Do=typeof window<"u"?C.useLayoutEffect:C.useEffect;function MV(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}const OV=Object.freeze(Object.defineProperty({__proto__:null,default:MV},Symbol.toStringTag,{value:"Module"}));function ty(...e){return e.reduce((t,n)=>n==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function $b(e,t=166){let n;function r(...o){const i=()=>{e.apply(this,o)};clearTimeout(n),n=setTimeout(i,t)}return r.clear=()=>{clearTimeout(n)},r}function TV(e,t){return()=>null}function Xf(e,t){var n,r;return C.isValidElement(e)&&t.indexOf((n=e.type.muiName)!=null?n:(r=e.type)==null||(r=r._payload)==null||(r=r.value)==null?void 0:r.muiName)!==-1}function Kn(e){return e&&e.ownerDocument||document}function Cl(e){return Kn(e).defaultView||window}function LV(e,t){return()=>null}function Ac(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let GI=0;function _V(e){const[t,n]=C.useState(e),r=e||t;return C.useEffect(()=>{t==null&&(GI+=1,n(`mui-${GI}`))},[t]),r}const zI=n0.useId;function ch(e){if(zI!==void 0){const t=zI();return e??t}return _V(e)}function NV(e,t,n,r,o){return null}function ys({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=C.useRef(e!==void 0),[i,a]=C.useState(t),c=o?e:i,s=C.useCallback(d=>{o||a(d)},[]);return[c,s]}function Lo(e){const t=C.useRef(e);return Do(()=>{t.current=e}),C.useRef((...n)=>(0,t.current)(...n)).current}function mn(...e){return C.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{Ac(n,t)})},e)}const HI={};function FV(e,t){const n=C.useRef(HI);return n.current===HI&&(n.current=e(t)),n}const DV=[];function BV(e){C.useEffect(e,DV)}class dh{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new dh}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function m2(){const e=FV(dh.create).current;return BV(e.disposeEffect),e}let fh=!0,ny=!1;const $V=new dh,VV={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 WV(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&VV[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function GV(e){e.metaKey||e.altKey||e.ctrlKey||(fh=!0)}function bv(){fh=!1}function zV(){this.visibilityState==="hidden"&&ny&&(fh=!0)}function HV(e){e.addEventListener("keydown",GV,!0),e.addEventListener("mousedown",bv,!0),e.addEventListener("pointerdown",bv,!0),e.addEventListener("touchstart",bv,!0),e.addEventListener("visibilitychange",zV,!0)}function jV(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return fh||WV(t)}function v2(){const e=C.useCallback(o=>{o!=null&&HV(o.ownerDocument)},[]),t=C.useRef(!1);function n(){return t.current?(ny=!0,$V.start(100,()=>{ny=!1}),t.current=!1,!0):!1}function r(o){return jV(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function y2(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}const XV=e=>{const t=C.useRef({});return C.useEffect(()=>{t.current=e}),t.current};function yt(e,t,n=void 0){const r={};return Object.keys(e).forEach(o=>{r[o]=e[o].reduce((i,a)=>{if(a){const c=t(a);c!==""&&i.push(c),n&&n[a]&&i.push(n[a])}return i},[]).join(" ")}),r}function Op(e){return typeof e=="string"}function UV(e,t,n){return e===void 0||Op(e)?t:L({},t,{ownerState:L({},t.ownerState,n)})}function b2(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function jI(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function ZV(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const h=Be(n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),y=L({},n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),b=L({},n,o,r);return h.length>0&&(b.className=h),Object.keys(y).length>0&&(b.style=y),{props:b,internalRef:void 0}}const a=b2(L({},o,r)),c=jI(r),s=jI(o),d=t(a),f=Be(d==null?void 0:d.className,n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),g=L({},d==null?void 0:d.style,n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),v=L({},d,n,s,c);return f.length>0&&(v.className=f),Object.keys(g).length>0&&(v.style=g),{props:v,internalRef:d.ref}}function YV(e,t,n){return typeof e=="function"?e(t,n):e}const KV=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function da(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=Me(e,KV),c=i?{}:YV(r,o),{props:s,internalRef:d}=ZV(L({},a,{externalSlotProps:c})),f=mn(d,c==null?void 0:c.ref,(t=e.additionalProps)==null?void 0:t.ref);return UV(n,L({},s,{ref:f}),o)}const JV=C.createContext(),QV=()=>{const e=C.useContext(JV);return e??!1},qV=C.createContext(void 0);function e9(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?kc(o.defaultProps,r):!o.styleOverrides&&!o.variants?kc(o,r):r}function t9({props:e,name:t}){const n=C.useContext(qV);return e9({props:e,name:t,theme:{components:n}})}function fa(e){"@babel/helpers - typeof";return fa=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},fa(e)}function n9(e,t){if(fa(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(fa(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function x2(e){var t=n9(e,"string");return fa(t)=="symbol"?t:t+""}const r9=["component","direction","spacing","divider","children","className","useFlexGap"],o9=Kc(),i9=PV("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function l9(e){return AV({props:e,name:"MuiStack",defaultTheme:o9})}function a9(e,t){const n=C.Children.toArray(e).filter(Boolean);return n.reduce((r,o,i)=>(r.push(o),i({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],u9=({ownerState:e,theme:t})=>{let n=L({display:"flex",flexDirection:"column"},Ir({theme:t},ea({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r})));if(e.spacing){const r=_b(t),o=Object.keys(t.breakpoints.values).reduce((s,d)=>((typeof e.spacing=="object"&&e.spacing[d]!=null||typeof e.direction=="object"&&e.direction[d]!=null)&&(s[d]=!0),s),{}),i=ea({values:e.direction,base:o}),a=ea({values:e.spacing,base:o});typeof i=="object"&&Object.keys(i).forEach((s,d,f)=>{if(!i[s]){const v=d>0?i[f[d-1]]:"column";i[s]=v}}),n=or(n,Ir({theme:t},a,(s,d)=>e.useFlexGap?{gap:ca(r,s)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${s9(d?i[d]:e.direction)}`]:ca(r,s)}}))}return n=f3(t.breakpoints,n),n};function c9(e={}){const{createStyledComponent:t=i9,useThemeProps:n=l9,componentName:r="MuiStack"}=e,o=()=>yt({root:["root"]},s=>mt(r,s),{}),i=t(u9);return C.forwardRef(function(s,d){const f=n(s),g=qg(f),{component:v="div",direction:h="column",spacing:y=0,divider:b,children:S,className:m,useFlexGap:x=!1}=g,I=Me(g,r9),R={direction:h,spacing:y,useFlexGap:x},E=o();return H.jsx(i,L({as:v,ownerState:R,ref:d,className:Be(E.root,m)},I,{children:b?a9(S,b):S}))})}function d9(e,t){return L({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var fn={},w2={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(w2);var Vb=w2.exports;const f9=Wi(X$),p9=Wi(OV);var C2=Vb;Object.defineProperty(fn,"__esModule",{value:!0});var Wt=fn.alpha=E2;fn.blend=E9;fn.colorChannel=void 0;var g9=fn.darken=Gb;fn.decomposeColor=ho;fn.emphasize=P2;var h9=fn.getContrastRatio=w9;fn.getLuminance=Tp;fn.hexToRgb=I2;fn.hslToRgb=R2;var m9=fn.lighten=zb;fn.private_safeAlpha=C9;fn.private_safeColorChannel=void 0;fn.private_safeDarken=I9;fn.private_safeEmphasize=R9;fn.private_safeLighten=S9;fn.recomposeColor=Ws;fn.rgbToHex=x9;var XI=C2(f9),v9=C2(p9);function Wb(e,t=0,n=1){return(0,v9.default)(e,t,n)}function I2(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function y9(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function ho(e){if(e.type)return e;if(e.charAt(0)==="#")return ho(I2(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error((0,XI.default)(9,e));let r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o)===-1)throw new Error((0,XI.default)(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}const S2=e=>{const t=ho(e);return t.values.slice(0,3).map((n,r)=>t.type.indexOf("hsl")!==-1&&r!==0?`${n}%`:n).join(" ")};fn.colorChannel=S2;const b9=(e,t)=>{try{return S2(e)}catch{return e}};fn.private_safeColorChannel=b9;function Ws(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((o,i)=>i<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function x9(e){if(e.indexOf("#")===0)return e;const{values:t}=ho(e);return`#${t.map((n,r)=>y9(r===3?Math.round(255*n):n)).join("")}`}function R2(e){e=ho(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=(d,f=(d+n/30)%12)=>o-i*Math.max(Math.min(f-3,9-f,1),-1);let c="rgb";const s=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(c+="a",s.push(t[3])),Ws({type:c,values:s})}function Tp(e){e=ho(e);let t=e.type==="hsl"||e.type==="hsla"?ho(R2(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function w9(e,t){const n=Tp(e),r=Tp(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function E2(e,t){return e=ho(e),t=Wb(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Ws(e)}function C9(e,t,n){try{return E2(e,t)}catch{return e}}function Gb(e,t){if(e=ho(e),t=Wb(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 n=0;n<3;n+=1)e.values[n]*=1-t;return Ws(e)}function I9(e,t,n){try{return Gb(e,t)}catch{return e}}function zb(e,t){if(e=ho(e),t=Wb(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return Ws(e)}function S9(e,t,n){try{return zb(e,t)}catch{return e}}function P2(e,t=.15){return Tp(e)>.5?Gb(e,t):zb(e,t)}function R9(e,t,n){try{return P2(e,t)}catch{return e}}function E9(e,t,n,r=1){const o=(s,d)=>Math.round((s**(1/r)*(1-n)+d**(1/r)*n)**r),i=ho(e),a=ho(t),c=[o(i.values[0],a.values[0]),o(i.values[1],a.values[1]),o(i.values[2],a.values[2])];return Ws({type:"rgb",values:c})}const Mc={black:"#000",white:"#fff"},P9={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"},Ba={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"},$a={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"},Iu={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"},Va={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"},Wa={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"},Ga={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"},k9=["mode","contrastThreshold","tonalOffset"],UI={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:Mc.white,default:Mc.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}},xv={text:{primary:Mc.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:Mc.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 ZI(e,t,n,r){const o=r.light||r,i=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=m9(e.main,o):t==="dark"&&(e.dark=g9(e.main,i)))}function A9(e="light"){return e==="dark"?{main:Va[200],light:Va[50],dark:Va[400]}:{main:Va[700],light:Va[400],dark:Va[800]}}function M9(e="light"){return e==="dark"?{main:Ba[200],light:Ba[50],dark:Ba[400]}:{main:Ba[500],light:Ba[300],dark:Ba[700]}}function O9(e="light"){return e==="dark"?{main:$a[500],light:$a[300],dark:$a[700]}:{main:$a[700],light:$a[400],dark:$a[800]}}function T9(e="light"){return e==="dark"?{main:Wa[400],light:Wa[300],dark:Wa[700]}:{main:Wa[700],light:Wa[500],dark:Wa[900]}}function L9(e="light"){return e==="dark"?{main:Ga[400],light:Ga[300],dark:Ga[700]}:{main:Ga[800],light:Ga[500],dark:Ga[900]}}function _9(e="light"){return e==="dark"?{main:Iu[400],light:Iu[300],dark:Iu[700]}:{main:"#ed6c02",light:Iu[500],dark:Iu[900]}}function N9(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=Me(e,k9),i=e.primary||A9(t),a=e.secondary||M9(t),c=e.error||O9(t),s=e.info||T9(t),d=e.success||L9(t),f=e.warning||_9(t);function g(b){return h9(b,xv.text.primary)>=n?xv.text.primary:UI.text.primary}const v=({color:b,name:S,mainShade:m=500,lightShade:x=300,darkShade:I=700})=>{if(b=L({},b),!b.main&&b[m]&&(b.main=b[m]),!b.hasOwnProperty("main"))throw new Error(ua(11,S?` (${S})`:"",m));if(typeof b.main!="string")throw new Error(ua(12,S?` (${S})`:"",JSON.stringify(b.main)));return ZI(b,"light",x,r),ZI(b,"dark",I,r),b.contrastText||(b.contrastText=g(b.main)),b},h={dark:xv,light:UI};return or(L({common:L({},Mc),mode:t,primary:v({color:i,name:"primary"}),secondary:v({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:v({color:c,name:"error"}),warning:v({color:f,name:"warning"}),info:v({color:s,name:"info"}),success:v({color:d,name:"success"}),grey:P9,contrastThreshold:n,getContrastText:g,augmentColor:v,tonalOffset:r},h[t]),o)}const F9=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function D9(e){return Math.round(e*1e5)/1e5}const YI={textTransform:"uppercase"},KI='"Roboto", "Helvetica", "Arial", sans-serif';function B9(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=KI,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:c=500,fontWeightBold:s=700,htmlFontSize:d=16,allVariants:f,pxToRem:g}=n,v=Me(n,F9),h=o/14,y=g||(m=>`${m/d*h}rem`),b=(m,x,I,R,E)=>L({fontFamily:r,fontWeight:m,fontSize:y(x),lineHeight:I},r===KI?{letterSpacing:`${D9(R/x)}em`}:{},E,f),S={h1:b(i,96,1.167,-1.5),h2:b(i,60,1.2,-.5),h3:b(a,48,1.167,0),h4:b(a,34,1.235,.25),h5:b(a,24,1.334,0),h6:b(c,20,1.6,.15),subtitle1:b(a,16,1.75,.15),subtitle2:b(c,14,1.57,.1),body1:b(a,16,1.5,.15),body2:b(a,14,1.43,.15),button:b(c,14,1.75,.4,YI),caption:b(a,12,1.66,.4),overline:b(a,12,2.66,1,YI),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return or(L({htmlFontSize:d,pxToRem:y,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:c,fontWeightBold:s},S),v,{clone:!1})}const $9=.2,V9=.14,W9=.12;function Xt(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${$9})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${V9})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${W9})`].join(",")}const G9=["none",Xt(0,2,1,-1,0,1,1,0,0,1,3,0),Xt(0,3,1,-2,0,2,2,0,0,1,5,0),Xt(0,3,3,-2,0,3,4,0,0,1,8,0),Xt(0,2,4,-1,0,4,5,0,0,1,10,0),Xt(0,3,5,-1,0,5,8,0,0,1,14,0),Xt(0,3,5,-1,0,6,10,0,0,1,18,0),Xt(0,4,5,-2,0,7,10,1,0,2,16,1),Xt(0,5,5,-3,0,8,10,1,0,3,14,2),Xt(0,5,6,-3,0,9,12,1,0,3,16,2),Xt(0,6,6,-3,0,10,14,1,0,4,18,3),Xt(0,6,7,-4,0,11,15,1,0,4,20,3),Xt(0,7,8,-4,0,12,17,2,0,5,22,4),Xt(0,7,8,-4,0,13,19,2,0,5,24,4),Xt(0,7,9,-4,0,14,21,2,0,5,26,4),Xt(0,8,9,-5,0,15,22,2,0,6,28,5),Xt(0,8,10,-5,0,16,24,2,0,6,30,5),Xt(0,8,11,-5,0,17,26,2,0,6,32,5),Xt(0,9,11,-5,0,18,28,2,0,7,34,6),Xt(0,9,12,-6,0,19,29,2,0,7,36,6),Xt(0,10,13,-6,0,20,31,3,0,8,38,7),Xt(0,10,13,-6,0,21,33,3,0,8,40,7),Xt(0,10,14,-6,0,22,35,3,0,8,42,7),Xt(0,11,14,-7,0,23,36,3,0,9,44,8),Xt(0,11,15,-7,0,24,38,3,0,9,46,8)],z9=["duration","easing","delay"],H9={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)"},j9={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function JI(e){return`${Math.round(e)}ms`}function X9(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function U9(e){const t=L({},H9,e.easing),n=L({},j9,e.duration);return L({getAutoHeightDuration:X9,create:(o=["all"],i={})=>{const{duration:a=n.standard,easing:c=t.easeInOut,delay:s=0}=i;return Me(i,z9),(Array.isArray(o)?o:[o]).map(d=>`${d} ${typeof a=="string"?a:JI(a)} ${c} ${typeof s=="string"?s:JI(s)}`).join(",")}},e,{easing:t,duration:n})}const Z9={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Y9=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function k2(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=Me(e,Y9);if(e.vars)throw new Error(ua(18));const c=N9(r),s=Kc(e);let d=or(s,{mixins:d9(s.breakpoints,n),palette:c,shadows:G9.slice(),typography:B9(c,i),transitions:U9(o),zIndex:L({},Z9)});return d=or(d,a),d=t.reduce((f,g)=>or(f,g),d),d.unstable_sxConfig=L({},Yc,a==null?void 0:a.unstable_sxConfig),d.unstable_sx=function(g){return Vs({sx:g,theme:this})},d}const Hb=k2();function jb(){const e=Qg(Hb);return e[Mg]||e}var Jc={},wv={exports:{}},QI;function K9(){return QI||(QI=1,function(e){function t(n,r){if(n==null)return{};var o={};for(var i in n)if({}.hasOwnProperty.call(n,i)){if(r.includes(i))continue;o[i]=n[i]}return o}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(wv)),wv.exports}const A2=Wi(a3),J9=Wi(s3),Q9=Wi(g3),q9=Wi(vV),eW=Wi(tV),tW=Wi(sV);var Gs=Vb;Object.defineProperty(Jc,"__esModule",{value:!0});var nW=Jc.default=hW;Jc.shouldForwardProp=Uf;Jc.systemDefaultTheme=void 0;var oo=Gs(Qk()),ry=Gs(K9()),qI=uW(A2),rW=J9;Gs(Q9);Gs(q9);var oW=Gs(eW),iW=Gs(tW);const lW=["ownerState"],aW=["variants"],sW=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function M2(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(M2=function(r){return r?n:t})(e)}function uW(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=M2(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}function cW(e){return Object.keys(e).length===0}function dW(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Uf(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const fW=Jc.systemDefaultTheme=(0,oW.default)(),pW=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function df({defaultTheme:e,theme:t,themeId:n}){return cW(t)?e:t[n]||t}function gW(e){return e?(t,n)=>n[e]:null}function Zf(e,t){let{ownerState:n}=t,r=(0,ry.default)(t,lW);const o=typeof e=="function"?e((0,oo.default)({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap(i=>Zf(i,(0,oo.default)({ownerState:n},r)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:i=[]}=o;let c=(0,ry.default)(o,aW);return i.forEach(s=>{let d=!0;typeof s.props=="function"?d=s.props((0,oo.default)({ownerState:n},r,n)):Object.keys(s.props).forEach(f=>{(n==null?void 0:n[f])!==s.props[f]&&r[f]!==s.props[f]&&(d=!1)}),d&&(Array.isArray(c)||(c=[c]),c.push(typeof s.style=="function"?s.style((0,oo.default)({ownerState:n},r,n)):s.style))}),c}return o}function hW(e={}){const{themeId:t,defaultTheme:n=fW,rootShouldForwardProp:r=Uf,slotShouldForwardProp:o=Uf}=e,i=a=>(0,iW.default)((0,oo.default)({},a,{theme:df((0,oo.default)({},a,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(a,c={})=>{(0,qI.internal_processStyles)(a,E=>E.filter(P=>!(P!=null&&P.__mui_systemSx)));const{name:s,slot:d,skipVariantsResolver:f,skipSx:g,overridesResolver:v=gW(pW(d))}=c,h=(0,ry.default)(c,sW),y=f!==void 0?f:d&&d!=="Root"&&d!=="root"||!1,b=g||!1;let S,m=Uf;d==="Root"||d==="root"?m=r:d?m=o:dW(a)&&(m=void 0);const x=(0,qI.default)(a,(0,oo.default)({shouldForwardProp:m,label:S},h)),I=E=>typeof E=="function"&&E.__emotion_real!==E||(0,rW.isPlainObject)(E)?P=>Zf(E,(0,oo.default)({},P,{theme:df({theme:P.theme,defaultTheme:n,themeId:t})})):E,R=(E,...P)=>{let A=I(E);const O=P?P.map(I):[];s&&v&&O.push(j=>{const V=df((0,oo.default)({},j,{defaultTheme:n,themeId:t}));if(!V.components||!V.components[s]||!V.components[s].styleOverrides)return null;const U=V.components[s].styleOverrides,Z={};return Object.entries(U).forEach(([_,F])=>{Z[_]=Zf(F,(0,oo.default)({},j,{theme:V}))}),v(j,Z)}),s&&!y&&O.push(j=>{var V;const U=df((0,oo.default)({},j,{defaultTheme:n,themeId:t})),Z=U==null||(V=U.components)==null||(V=V[s])==null?void 0:V.variants;return Zf({variants:Z},(0,oo.default)({},j,{theme:U}))}),b||O.push(i);const W=O.length-P.length;if(Array.isArray(E)&&W>0){const j=new Array(W).fill("");A=[...E,...j],A.raw=[...E.raw,...j]}const $=x(A,...O);return a.muiName&&($.muiName=a.muiName),$};return x.withConfig&&(R.withConfig=x.withConfig),R}}function O2(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const wo=e=>O2(e)&&e!=="classes",Re=nW({themeId:Mg,defaultTheme:Hb,rootShouldForwardProp:wo}),eS=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function bt(e){return t9(e)}function mW(e){return mt("MuiSvgIcon",e)}ft("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const vW=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],yW=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${Ee(t)}`,`fontSize${Ee(n)}`]};return yt(o,mW,r)},bW=Re("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${Ee(n.color)}`],t[`fontSize${Ee(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,o,i,a,c,s,d,f,g,v,h,y;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(n=e.transitions)==null||(r=n.create)==null?void 0:r.call(n,"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:((c=e.typography)==null||(s=c.pxToRem)==null?void 0:s.call(c,24))||"1.5rem",large:((d=e.typography)==null||(f=d.pxToRem)==null?void 0:f.call(d,35))||"2.1875rem"}[t.fontSize],color:(g=(v=(e.vars||e).palette)==null||(v=v[t.color])==null?void 0:v.main)!=null?g:{action:(h=(e.vars||e).palette)==null||(h=h.action)==null?void 0:h.active,disabled:(y=(e.vars||e).palette)==null||(y=y.action)==null?void 0:y.disabled,inherit:void 0}[t.color]}}),Lp=C.forwardRef(function(t,n){const r=bt({props:t,name:"MuiSvgIcon"}),{children:o,className:i,color:a="inherit",component:c="svg",fontSize:s="medium",htmlColor:d,inheritViewBox:f=!1,titleAccess:g,viewBox:v="0 0 24 24"}=r,h=Me(r,vW),y=C.isValidElement(o)&&o.type==="svg",b=L({},r,{color:a,component:c,fontSize:s,instanceFontSize:t.fontSize,inheritViewBox:f,viewBox:v,hasSvgAsChild:y}),S={};f||(S.viewBox=v);const m=yW(b);return H.jsxs(bW,L({as:c,className:Be(m.root,i),focusable:"false",color:d,"aria-hidden":g?void 0:!0,role:g?"img":void 0,ref:n},S,h,y&&o.props,{ownerState:b,children:[y?o.props.children:o,g?H.jsx("title",{children:g}):null]}))});Lp.muiName="SvgIcon";function zs(e,t){function n(r,o){return H.jsx(Lp,L({"data-testid":`${t}Icon`,ref:o},r,{children:e}))}return n.muiName=Lp.muiName,C.memo(C.forwardRef(n))}const xW={configure:e=>{Fb.configure(e)}},wW=Object.freeze(Object.defineProperty({__proto__:null,capitalize:Ee,createChainedFunction:ty,createSvgIcon:zs,debounce:$b,deprecatedPropType:TV,isMuiElement:Xf,ownerDocument:Kn,ownerWindow:Cl,requirePropFactory:LV,setRef:Ac,unstable_ClassNameGenerator:xW,unstable_useEnhancedEffect:Do,unstable_useId:ch,unsupportedProp:NV,useControlled:ys,useEventCallback:Lo,useForkRef:mn,useIsFocusVisible:v2},Symbol.toStringTag,{value:"Module"}));function _p(e,t){return _p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},_p(e,t)}function T2(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,_p(e,t)}const tS={disabled:!1},Np=He.createContext(null);var CW=function(t){return t.scrollTop},$u="unmounted",jl="exited",Xl="entering",Ya="entered",oy="exiting",ai=function(e){T2(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var a=o,c=a&&!a.isMounting?r.enter:r.appear,s;return i.appearStatus=null,r.in?c?(s=jl,i.appearStatus=Xl):s=Ya:r.unmountOnExit||r.mountOnEnter?s=$u:s=jl,i.state={status:s},i.nextCallback=null,i}t.getDerivedStateFromProps=function(o,i){var a=o.in;return a&&i.status===$u?{status:jl}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var i=null;if(o!==this.props){var a=this.state.status;this.props.in?a!==Xl&&a!==Ya&&(i=Xl):(a===Xl||a===Ya)&&(i=oy)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,i,a,c;return i=a=c=o,o!=null&&typeof o!="number"&&(i=o.exit,a=o.enter,c=o.appear!==void 0?o.appear:a),{exit:i,enter:a,appear:c}},n.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null)if(this.cancelNextCallback(),i===Xl){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:sf.findDOMNode(this);a&&CW(a)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===jl&&this.setState({status:$u})},n.performEnter=function(o){var i=this,a=this.props.enter,c=this.context?this.context.isMounting:o,s=this.props.nodeRef?[c]:[sf.findDOMNode(this),c],d=s[0],f=s[1],g=this.getTimeouts(),v=c?g.appear:g.enter;if(!o&&!a||tS.disabled){this.safeSetState({status:Ya},function(){i.props.onEntered(d)});return}this.props.onEnter(d,f),this.safeSetState({status:Xl},function(){i.props.onEntering(d,f),i.onTransitionEnd(v,function(){i.safeSetState({status:Ya},function(){i.props.onEntered(d,f)})})})},n.performExit=function(){var o=this,i=this.props.exit,a=this.getTimeouts(),c=this.props.nodeRef?void 0:sf.findDOMNode(this);if(!i||tS.disabled){this.safeSetState({status:jl},function(){o.props.onExited(c)});return}this.props.onExit(c),this.safeSetState({status:oy},function(){o.props.onExiting(c),o.onTransitionEnd(a.exit,function(){o.safeSetState({status:jl},function(){o.props.onExited(c)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},n.setNextCallback=function(o){var i=this,a=!0;return this.nextCallback=function(c){a&&(a=!1,i.nextCallback=null,o(c))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(o,i){this.setNextCallback(i);var a=this.props.nodeRef?this.props.nodeRef.current:sf.findDOMNode(this),c=o==null&&!this.props.addEndListener;if(!a||c){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var s=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],d=s[0],f=s[1];this.props.addEndListener(d,f)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===$u)return null;var i=this.props,a=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var c=Me(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return He.createElement(Np.Provider,{value:null},typeof a=="function"?a(o,c):He.cloneElement(He.Children.only(a),c))},t}(He.Component);ai.contextType=Np;ai.propTypes={};function za(){}ai.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:za,onEntering:za,onEntered:za,onExit:za,onExiting:za,onExited:za};ai.UNMOUNTED=$u;ai.EXITED=jl;ai.ENTERING=Xl;ai.ENTERED=Ya;ai.EXITING=oy;function L2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Xb(e,t){var n=function(i){return t&&C.isValidElement(i)?t(i):i},r=Object.create(null);return e&&C.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function IW(e,t){e=e||{},t=t||{};function n(f){return f in t?t[f]:e[f]}var r=Object.create(null),o=[];for(var i in e)i in t?o.length&&(r[i]=o,o=[]):o.push(i);var a,c={};for(var s in t){if(r[s])for(a=0;ae.scrollTop;function Fp(e,t){var n,r;const{timeout:o,easing:i,style:a={}}=e;return{duration:(n=a.transitionDuration)!=null?n:typeof o=="number"?o:o[t.mode]||0,easing:(r=a.transitionTimingFunction)!=null?r:typeof i=="object"?i[t.mode]:i,delay:a.transitionDelay}}function kW(e){return mt("MuiPaper",e)}ft("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const AW=["className","component","elevation","square","variant"],MW=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,i={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return yt(i,kW,o)},OW=Re("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(({theme:e,ownerState:t})=>{var n;return L({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&L({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${Wt("#fff",eS(t.elevation))}, ${Wt("#fff",eS(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),ph=C.forwardRef(function(t,n){const r=bt({props:t,name:"MuiPaper"}),{className:o,component:i="div",elevation:a=1,square:c=!1,variant:s="elevation"}=r,d=Me(r,AW),f=L({},r,{component:i,elevation:a,square:c,variant:s}),g=MW(f);return H.jsx(OW,L({as:i,ownerState:f,className:Be(g.root,o),ref:n},d))});function TW(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:a,in:c,onExited:s,timeout:d}=e,[f,g]=C.useState(!1),v=Be(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),h={width:a,height:a,top:-(a/2)+i,left:-(a/2)+o},y=Be(n.child,f&&n.childLeaving,r&&n.childPulsate);return!c&&!f&&g(!0),C.useEffect(()=>{if(!c&&s!=null){const b=setTimeout(s,d);return()=>{clearTimeout(b)}}},[s,c,d]),H.jsx("span",{className:v,style:h,children:H.jsx("span",{className:y})})}const io=ft("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),LW=["center","classes","className"];let gh=e=>e,nS,rS,oS,iS;const iy=550,_W=80,NW=Uc(nS||(nS=gh` + 0% { + transform: scale(0); + opacity: 0.1; + } + + 100% { + transform: scale(1); + opacity: 0.3; + } +`)),FW=Uc(rS||(rS=gh` + 0% { + opacity: 1; + } + + 100% { + opacity: 0; + } +`)),DW=Uc(oS||(oS=gh` + 0% { + transform: scale(1); + } + + 50% { + transform: scale(0.92); + } + + 100% { + transform: scale(1); + } +`)),BW=Re("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),$W=Re(TW,{name:"MuiTouchRipple",slot:"Ripple"})(iS||(iS=gh` + opacity: 0; + position: absolute; + + &.${0} { + opacity: 0.3; + transform: scale(1); + animation-name: ${0}; + animation-duration: ${0}ms; + animation-timing-function: ${0}; + } + + &.${0} { + animation-duration: ${0}ms; + } + + & .${0} { + opacity: 1; + display: block; + width: 100%; + height: 100%; + border-radius: 50%; + background-color: currentColor; + } + + & .${0} { + opacity: 0; + animation-name: ${0}; + animation-duration: ${0}ms; + animation-timing-function: ${0}; + } + + & .${0} { + position: absolute; + /* @noflip */ + left: 0px; + top: 0; + animation-name: ${0}; + animation-duration: 2500ms; + animation-timing-function: ${0}; + animation-iteration-count: infinite; + animation-delay: 200ms; + } +`),io.rippleVisible,NW,iy,({theme:e})=>e.transitions.easing.easeInOut,io.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,io.child,io.childLeaving,FW,iy,({theme:e})=>e.transitions.easing.easeInOut,io.childPulsate,DW,({theme:e})=>e.transitions.easing.easeInOut),VW=C.forwardRef(function(t,n){const r=bt({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:a}=r,c=Me(r,LW),[s,d]=C.useState([]),f=C.useRef(0),g=C.useRef(null);C.useEffect(()=>{g.current&&(g.current(),g.current=null)},[s]);const v=C.useRef(!1),h=m2(),y=C.useRef(null),b=C.useRef(null),S=C.useCallback(R=>{const{pulsate:E,rippleX:P,rippleY:A,rippleSize:O,cb:W}=R;d($=>[...$,H.jsx($W,{classes:{ripple:Be(i.ripple,io.ripple),rippleVisible:Be(i.rippleVisible,io.rippleVisible),ripplePulsate:Be(i.ripplePulsate,io.ripplePulsate),child:Be(i.child,io.child),childLeaving:Be(i.childLeaving,io.childLeaving),childPulsate:Be(i.childPulsate,io.childPulsate)},timeout:iy,pulsate:E,rippleX:P,rippleY:A,rippleSize:O},f.current)]),f.current+=1,g.current=W},[i]),m=C.useCallback((R={},E={},P=()=>{})=>{const{pulsate:A=!1,center:O=o||E.pulsate,fakeElement:W=!1}=E;if((R==null?void 0:R.type)==="mousedown"&&v.current){v.current=!1;return}(R==null?void 0:R.type)==="touchstart"&&(v.current=!0);const $=W?null:b.current,j=$?$.getBoundingClientRect():{width:0,height:0,left:0,top:0};let V,U,Z;if(O||R===void 0||R.clientX===0&&R.clientY===0||!R.clientX&&!R.touches)V=Math.round(j.width/2),U=Math.round(j.height/2);else{const{clientX:_,clientY:F}=R.touches&&R.touches.length>0?R.touches[0]:R;V=Math.round(_-j.left),U=Math.round(F-j.top)}if(O)Z=Math.sqrt((2*j.width**2+j.height**2)/3),Z%2===0&&(Z+=1);else{const _=Math.max(Math.abs(($?$.clientWidth:0)-V),V)*2+2,F=Math.max(Math.abs(($?$.clientHeight:0)-U),U)*2+2;Z=Math.sqrt(_**2+F**2)}R!=null&&R.touches?y.current===null&&(y.current=()=>{S({pulsate:A,rippleX:V,rippleY:U,rippleSize:Z,cb:P})},h.start(_W,()=>{y.current&&(y.current(),y.current=null)})):S({pulsate:A,rippleX:V,rippleY:U,rippleSize:Z,cb:P})},[o,S,h]),x=C.useCallback(()=>{m({},{pulsate:!0})},[m]),I=C.useCallback((R,E)=>{if(h.clear(),(R==null?void 0:R.type)==="touchend"&&y.current){y.current(),y.current=null,h.start(0,()=>{I(R,E)});return}y.current=null,d(P=>P.length>0?P.slice(1):P),g.current=E},[h]);return C.useImperativeHandle(n,()=>({pulsate:x,start:m,stop:I}),[x,m,I]),H.jsx(BW,L({className:Be(io.root,i.root,a),ref:b},c,{children:H.jsx(Ub,{component:null,exit:!0,children:s})}))});function WW(e){return mt("MuiButtonBase",e)}const GW=ft("MuiButtonBase",["root","disabled","focusVisible"]),zW=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],HW=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,a=yt({root:["root",t&&"disabled",n&&"focusVisible"]},WW,o);return n&&r&&(a.root+=` ${r}`),a},jW=Re("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${GW.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Oc=C.forwardRef(function(t,n){const r=bt({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:a,className:c,component:s="button",disabled:d=!1,disableRipple:f=!1,disableTouchRipple:g=!1,focusRipple:v=!1,LinkComponent:h="a",onBlur:y,onClick:b,onContextMenu:S,onDragLeave:m,onFocus:x,onFocusVisible:I,onKeyDown:R,onKeyUp:E,onMouseDown:P,onMouseLeave:A,onMouseUp:O,onTouchEnd:W,onTouchMove:$,onTouchStart:j,tabIndex:V=0,TouchRippleProps:U,touchRippleRef:Z,type:_}=r,F=Me(r,zW),J=C.useRef(null),z=C.useRef(null),q=mn(z,Z),{isFocusVisibleRef:ae,onFocus:te,onBlur:he,ref:Se}=v2(),[pe,ye]=C.useState(!1);d&&pe&&ye(!1),C.useImperativeHandle(o,()=>({focusVisible:()=>{ye(!0),J.current.focus()}}),[]);const[ge,Oe]=C.useState(!1);C.useEffect(()=>{Oe(!0)},[]);const Ce=ge&&!f&&!d;C.useEffect(()=>{pe&&v&&!f&&ge&&z.current.pulsate()},[f,v,pe,ge]);function Te(xe,At,vn=g){return Lo(En=>(At&&At(En),!vn&&z.current&&z.current[xe](En),!0))}const st=Te("start",P),$e=Te("stop",S),Fe=Te("stop",m),We=Te("stop",O),Ve=Te("stop",xe=>{pe&&xe.preventDefault(),A&&A(xe)}),Ge=Te("start",j),Le=Te("stop",W),xt=Te("stop",$),D=Te("stop",xe=>{he(xe),ae.current===!1&&ye(!1),y&&y(xe)},!1),K=Lo(xe=>{J.current||(J.current=xe.currentTarget),te(xe),ae.current===!0&&(ye(!0),I&&I(xe)),x&&x(xe)}),Q=()=>{const xe=J.current;return s&&s!=="button"&&!(xe.tagName==="A"&&xe.href)},se=C.useRef(!1),fe=Lo(xe=>{v&&!se.current&&pe&&z.current&&xe.key===" "&&(se.current=!0,z.current.stop(xe,()=>{z.current.start(xe)})),xe.target===xe.currentTarget&&Q()&&xe.key===" "&&xe.preventDefault(),R&&R(xe),xe.target===xe.currentTarget&&Q()&&xe.key==="Enter"&&!d&&(xe.preventDefault(),b&&b(xe))}),le=Lo(xe=>{v&&xe.key===" "&&z.current&&pe&&!xe.defaultPrevented&&(se.current=!1,z.current.stop(xe,()=>{z.current.pulsate(xe)})),E&&E(xe),b&&xe.target===xe.currentTarget&&Q()&&xe.key===" "&&!xe.defaultPrevented&&b(xe)});let ve=s;ve==="button"&&(F.href||F.to)&&(ve=h);const ze={};ve==="button"?(ze.type=_===void 0?"button":_,ze.disabled=d):(!F.href&&!F.to&&(ze.role="button"),d&&(ze["aria-disabled"]=d));const lt=mn(n,Se,J),ut=L({},r,{centerRipple:i,component:s,disabled:d,disableRipple:f,disableTouchRipple:g,focusRipple:v,tabIndex:V,focusVisible:pe}),De=HW(ut);return H.jsxs(jW,L({as:ve,className:Be(De.root,c),ownerState:ut,onBlur:D,onClick:b,onContextMenu:$e,onFocus:K,onKeyDown:fe,onKeyUp:le,onMouseDown:st,onMouseLeave:Ve,onMouseUp:We,onDragLeave:Fe,onTouchEnd:Le,onTouchMove:xt,onTouchStart:Ge,ref:lt,tabIndex:d?-1:V,type:_},ze,F,{children:[a,Ce?H.jsx(VW,L({ref:q,center:i},U)):null]}))});function XW(e){return mt("MuiIconButton",e)}const UW=ft("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),ZW=["edge","children","className","color","disabled","disableFocusRipple","size"],YW=e=>{const{classes:t,disabled:n,color:r,edge:o,size:i}=e,a={root:["root",n&&"disabled",r!=="default"&&`color${Ee(r)}`,o&&`edge${Ee(o)}`,`size${Ee(i)}`]};return yt(a,XW,t)},KW=Re(Oc,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${Ee(n.color)}`],n.edge&&t[`edge${Ee(n.edge)}`],t[`size${Ee(n.size)}`]]}})(({theme:e,ownerState:t})=>L({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Wt(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var n;const r=(n=(e.vars||e).palette)==null?void 0:n[t.color];return L({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&L({color:r==null?void 0:r.main},!t.disableRipple&&{"&:hover":L({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Wt(r.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${UW.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),N2=C.forwardRef(function(t,n){const r=bt({props:t,name:"MuiIconButton"}),{edge:o=!1,children:i,className:a,color:c="default",disabled:s=!1,disableFocusRipple:d=!1,size:f="medium"}=r,g=Me(r,ZW),v=L({},r,{edge:o,color:c,disabled:s,disableFocusRipple:d,size:f}),h=YW(v);return H.jsx(KW,L({className:Be(h.root,a),centerRipple:!0,focusRipple:!d,disabled:s,ref:n},g,{ownerState:v,children:i}))}),JW=zs(H.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");function lS(e){return typeof e.normalize<"u"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function QW(e={}){const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:r,matchFrom:o="any",stringify:i,trim:a=!1}=e;return(c,{inputValue:s,getOptionLabel:d})=>{let f=a?s.trim():s;n&&(f=f.toLowerCase()),t&&(f=lS(f));const g=f?c.filter(v=>{let h=(i||d)(v);return n&&(h=h.toLowerCase()),t&&(h=lS(h)),o==="start"?h.indexOf(f)===0:h.indexOf(f)>-1}):c;return typeof r=="number"?g.slice(0,r):g}}function ff(e,t){for(let n=0;n{var t;return e.current!==null&&((t=e.current.parentElement)==null?void 0:t.contains(document.activeElement))};function tG(e){const{unstable_isActiveElementInListbox:t=eG,unstable_classNamePrefix:n="Mui",autoComplete:r=!1,autoHighlight:o=!1,autoSelect:i=!1,blurOnSelect:a=!1,clearOnBlur:c=!e.freeSolo,clearOnEscape:s=!1,componentName:d="useAutocomplete",defaultValue:f=e.multiple?[]:null,disableClearable:g=!1,disableCloseOnSelect:v=!1,disabled:h,disabledItemsFocusable:y=!1,disableListWrap:b=!1,filterOptions:S=qW,filterSelectedOptions:m=!1,freeSolo:x=!1,getOptionDisabled:I,getOptionKey:R,getOptionLabel:E=oe=>{var ne;return(ne=oe.label)!=null?ne:oe},groupBy:P,handleHomeEndKeys:A=!e.freeSolo,id:O,includeInputInList:W=!1,inputValue:$,isOptionEqualToValue:j=(oe,ne)=>oe===ne,multiple:V=!1,onChange:U,onClose:Z,onHighlightChange:_,onInputChange:F,onOpen:J,open:z,openOnFocus:q=!1,options:ae,readOnly:te=!1,selectOnFocus:he=!e.freeSolo,value:Se}=e,pe=ch(O);let ye=E;ye=oe=>{const ne=E(oe);return typeof ne!="string"?String(ne):ne};const ge=C.useRef(!1),Oe=C.useRef(!0),Ce=C.useRef(null),Te=C.useRef(null),[st,$e]=C.useState(null),[Fe,We]=C.useState(-1),Ve=o?0:-1,Ge=C.useRef(Ve),[Le,xt]=ys({controlled:Se,default:f,name:d}),[D,K]=ys({controlled:$,default:"",name:d,state:"inputValue"}),[Q,se]=C.useState(!1),fe=C.useCallback((oe,ne)=>{if(!(V?Le.length!(m&&(V?Le:[Le]).some(ne=>ne!==null&&j(oe,ne)))),{inputValue:ut&&ze?"":D,getOptionLabel:ye}):[],At=XV({filteredOptions:xe,value:Le,inputValue:D});C.useEffect(()=>{const oe=Le!==At.value;Q&&!oe||x&&!oe||fe(null,Le)},[Le,fe,Q,At.value,x]);const vn=le&&xe.length>0&&!te,En=Lo(oe=>{oe===-1?Ce.current.focus():st.querySelector(`[data-tag-index="${oe}"]`).focus()});C.useEffect(()=>{V&&Fe>Le.length-1&&(We(-1),En(-1))},[Le,V,Fe,En]);function _e(oe,ne){if(!Te.current||oe<0||oe>=xe.length)return-1;let Pe=oe;for(;;){const be=Te.current.querySelector(`[data-option-index="${Pe}"]`),qe=y?!1:!be||be.disabled||be.getAttribute("aria-disabled")==="true";if(be&&be.hasAttribute("tabindex")&&!qe)return Pe;if(ne==="next"?Pe=(Pe+1)%xe.length:Pe=(Pe-1+xe.length)%xe.length,Pe===oe)return-1}}const nt=Lo(({event:oe,index:ne,reason:Pe="auto"})=>{if(Ge.current=ne,ne===-1?Ce.current.removeAttribute("aria-activedescendant"):Ce.current.setAttribute("aria-activedescendant",`${pe}-option-${ne}`),_&&_(oe,ne===-1?null:xe[ne],Pe),!Te.current)return;const be=Te.current.querySelector(`[role="option"].${n}-focused`);be&&(be.classList.remove(`${n}-focused`),be.classList.remove(`${n}-focusVisible`));let qe=Te.current;if(Te.current.getAttribute("role")!=="listbox"&&(qe=Te.current.parentElement.querySelector('[role="listbox"]')),!qe)return;if(ne===-1){qe.scrollTop=0;return}const Ct=Te.current.querySelector(`[data-option-index="${ne}"]`);if(Ct&&(Ct.classList.add(`${n}-focused`),Pe==="keyboard"&&Ct.classList.add(`${n}-focusVisible`),qe.scrollHeight>qe.clientHeight&&Pe!=="mouse"&&Pe!=="touch")){const _t=Ct,sr=qe.clientHeight+qe.scrollTop,di=_t.offsetTop+_t.offsetHeight;di>sr?qe.scrollTop=di-qe.clientHeight:_t.offsetTop-_t.offsetHeight*(P?1.3:0){if(!De)return;const Ct=_e((()=>{const _t=xe.length-1;if(ne==="reset")return Ve;if(ne==="start")return 0;if(ne==="end")return _t;const sr=Ge.current+ne;return sr<0?sr===-1&&W?-1:b&&Ge.current!==-1||Math.abs(ne)>1?0:_t:sr>_t?sr===_t+1&&W?-1:b||Math.abs(ne)>1?_t:0:sr})(),Pe);if(nt({index:Ct,reason:be,event:oe}),r&&ne!=="reset")if(Ct===-1)Ce.current.value=D;else{const _t=ye(xe[Ct]);Ce.current.value=_t,_t.toLowerCase().indexOf(D.toLowerCase())===0&&D.length>0&&Ce.current.setSelectionRange(D.length,_t.length)}}),Ln=()=>{const oe=(ne,Pe)=>{const be=ne?ye(ne):"",qe=Pe?ye(Pe):"";return be===qe};if(Ge.current!==-1&&At.filteredOptions&&At.filteredOptions.length!==xe.length&&At.inputValue===D&&(V?Le.length===At.value.length&&At.value.every((ne,Pe)=>ye(Le[Pe])===ye(ne)):oe(At.value,Le))){const ne=At.filteredOptions[Ge.current];if(ne)return ff(xe,Pe=>ye(Pe)===ye(ne))}return-1},Yr=C.useCallback(()=>{if(!De)return;const oe=Ln();if(oe!==-1){Ge.current=oe;return}const ne=V?Le[0]:Le;if(xe.length===0||ne==null){pt({diff:"reset"});return}if(Te.current){if(ne!=null){const Pe=xe[Ge.current];if(V&&Pe&&ff(Le,qe=>j(Pe,qe))!==-1)return;const be=ff(xe,qe=>j(qe,ne));be===-1?pt({diff:"reset"}):nt({index:be});return}if(Ge.current>=xe.length-1){nt({index:xe.length-1});return}nt({index:Ge.current})}},[xe.length,V?!1:Le,m,pt,nt,De,D,V]),Zs=Lo(oe=>{Ac(Te,oe),oe&&Yr()});C.useEffect(()=>{Yr()},[Yr]);const ar=oe=>{le||(ve(!0),lt(!0),J&&J(oe))},Co=(oe,ne)=>{le&&(ve(!1),Z&&Z(oe,ne))},Rr=(oe,ne,Pe,be)=>{if(V){if(Le.length===ne.length&&Le.every((qe,Ct)=>qe===ne[Ct]))return}else if(Le===ne)return;U&&U(oe,ne,Pe,be),xt(ne)},si=C.useRef(!1),ui=(oe,ne,Pe="selectOption",be="options")=>{let qe=Pe,Ct=ne;if(V){Ct=Array.isArray(Le)?Le.slice():[];const _t=ff(Ct,sr=>j(ne,sr));_t===-1?Ct.push(ne):be!=="freeSolo"&&(Ct.splice(_t,1),qe="removeOption")}fe(oe,Ct),Rr(oe,Ct,qe,{option:ne}),!v&&(!oe||!oe.ctrlKey&&!oe.metaKey)&&Co(oe,qe),(a===!0||a==="touch"&&si.current||a==="mouse"&&!si.current)&&Ce.current.blur()};function va(oe,ne){if(oe===-1)return-1;let Pe=oe;for(;;){if(ne==="next"&&Pe===Le.length||ne==="previous"&&Pe===-1)return-1;const be=st.querySelector(`[data-tag-index="${Pe}"]`);if(!be||!be.hasAttribute("tabindex")||be.disabled||be.getAttribute("aria-disabled")==="true")Pe+=ne==="next"?1:-1;else return Pe}}const ya=(oe,ne)=>{if(!V)return;D===""&&Co(oe,"toggleInput");let Pe=Fe;Fe===-1?D===""&&ne==="previous"&&(Pe=Le.length-1):(Pe+=ne==="next"?1:-1,Pe<0&&(Pe=0),Pe===Le.length&&(Pe=-1)),Pe=va(Pe,ne),We(Pe),En(Pe)},ba=oe=>{ge.current=!0,K(""),F&&F(oe,"","clear"),Rr(oe,V?[]:null,"clear")},xa=oe=>ne=>{if(oe.onKeyDown&&oe.onKeyDown(ne),!ne.defaultMuiPrevented&&(Fe!==-1&&["ArrowLeft","ArrowRight"].indexOf(ne.key)===-1&&(We(-1),En(-1)),ne.which!==229))switch(ne.key){case"Home":De&&A&&(ne.preventDefault(),pt({diff:"start",direction:"next",reason:"keyboard",event:ne}));break;case"End":De&&A&&(ne.preventDefault(),pt({diff:"end",direction:"previous",reason:"keyboard",event:ne}));break;case"PageUp":ne.preventDefault(),pt({diff:-aS,direction:"previous",reason:"keyboard",event:ne}),ar(ne);break;case"PageDown":ne.preventDefault(),pt({diff:aS,direction:"next",reason:"keyboard",event:ne}),ar(ne);break;case"ArrowDown":ne.preventDefault(),pt({diff:1,direction:"next",reason:"keyboard",event:ne}),ar(ne);break;case"ArrowUp":ne.preventDefault(),pt({diff:-1,direction:"previous",reason:"keyboard",event:ne}),ar(ne);break;case"ArrowLeft":ya(ne,"previous");break;case"ArrowRight":ya(ne,"next");break;case"Enter":if(Ge.current!==-1&&De){const Pe=xe[Ge.current],be=I?I(Pe):!1;if(ne.preventDefault(),be)return;ui(ne,Pe,"selectOption"),r&&Ce.current.setSelectionRange(Ce.current.value.length,Ce.current.value.length)}else x&&D!==""&&ut===!1&&(V&&ne.preventDefault(),ui(ne,D,"createOption","freeSolo"));break;case"Escape":De?(ne.preventDefault(),ne.stopPropagation(),Co(ne,"escape")):s&&(D!==""||V&&Le.length>0)&&(ne.preventDefault(),ne.stopPropagation(),ba(ne));break;case"Backspace":if(V&&!te&&D===""&&Le.length>0){const Pe=Fe===-1?Le.length-1:Fe,be=Le.slice();be.splice(Pe,1),Rr(ne,be,"removeOption",{option:Le[Pe]})}break;case"Delete":if(V&&!te&&D===""&&Le.length>0&&Fe!==-1){const Pe=Fe,be=Le.slice();be.splice(Pe,1),Rr(ne,be,"removeOption",{option:Le[Pe]})}break}},nd=oe=>{se(!0),q&&!ge.current&&ar(oe)},ji=oe=>{if(t(Te)){Ce.current.focus();return}se(!1),Oe.current=!0,ge.current=!1,i&&Ge.current!==-1&&De?ui(oe,xe[Ge.current],"blur"):i&&x&&D!==""?ui(oe,D,"blur","freeSolo"):c&&fe(oe,Le),Co(oe,"blur")},Pn=oe=>{const ne=oe.target.value;D!==ne&&(K(ne),lt(!1),F&&F(oe,ne,"input")),ne===""?!g&&!V&&Rr(oe,null,"clear"):ar(oe)},qt=oe=>{const ne=Number(oe.currentTarget.getAttribute("data-option-index"));Ge.current!==ne&&nt({event:oe,index:ne,reason:"mouse"})},Er=oe=>{nt({event:oe,index:Number(oe.currentTarget.getAttribute("data-option-index")),reason:"touch"}),si.current=!0},wa=oe=>{const ne=Number(oe.currentTarget.getAttribute("data-option-index"));ui(oe,xe[ne],"selectOption"),si.current=!1},Ys=oe=>ne=>{const Pe=Le.slice();Pe.splice(oe,1),Rr(ne,Pe,"removeOption",{option:Le[oe]})},Ks=oe=>{le?Co(oe,"toggleInput"):ar(oe)},Js=oe=>{oe.currentTarget.contains(oe.target)&&oe.target.getAttribute("id")!==pe&&oe.preventDefault()},Ca=oe=>{oe.currentTarget.contains(oe.target)&&(Ce.current.focus(),he&&Oe.current&&Ce.current.selectionEnd-Ce.current.selectionStart===0&&Ce.current.select(),Oe.current=!1)},Ll=oe=>{!h&&(D===""||!le)&&Ks(oe)};let ci=x&&D.length>0;ci=ci||(V?Le.length>0:Le!==null);let Xi=xe;return P&&(Xi=xe.reduce((oe,ne,Pe)=>{const be=P(ne);return oe.length>0&&oe[oe.length-1].group===be?oe[oe.length-1].options.push(ne):oe.push({key:Pe,index:Pe,group:be,options:[ne]}),oe},[])),h&&Q&&ji(),{getRootProps:(oe={})=>L({"aria-owns":vn?`${pe}-listbox`:null},oe,{onKeyDown:xa(oe),onMouseDown:Js,onClick:Ca}),getInputLabelProps:()=>({id:`${pe}-label`,htmlFor:pe}),getInputProps:()=>({id:pe,value:D,onBlur:ji,onFocus:nd,onChange:Pn,onMouseDown:Ll,"aria-activedescendant":De?"":null,"aria-autocomplete":r?"both":"list","aria-controls":vn?`${pe}-listbox`:void 0,"aria-expanded":vn,autoComplete:"off",ref:Ce,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:h}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:ba}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:Ks}),getTagProps:({index:oe})=>L({key:oe,"data-tag-index":oe,tabIndex:-1},!te&&{onDelete:Ys(oe)}),getListboxProps:()=>({role:"listbox",id:`${pe}-listbox`,"aria-labelledby":`${pe}-label`,ref:Zs,onMouseDown:oe=>{oe.preventDefault()}}),getOptionProps:({index:oe,option:ne})=>{var Pe;const be=(V?Le:[Le]).some(Ct=>Ct!=null&&j(ne,Ct)),qe=I?I(ne):!1;return{key:(Pe=R==null?void 0:R(ne))!=null?Pe:ye(ne),tabIndex:-1,role:"option",id:`${pe}-option-${oe}`,onMouseMove:qt,onClick:wa,onTouchStart:Er,"data-option-index":oe,"aria-disabled":qe,"aria-selected":be}},id:pe,inputValue:D,value:Le,dirty:ci,expanded:De&&st,popupOpen:De,focused:Q||Fe!==-1,anchorEl:st,setAnchorEl:$e,focusedTag:Fe,groupedOptions:Xi}}var Zb={};Object.defineProperty(Zb,"__esModule",{value:!0});var F2=Zb.default=void 0,nG=oG(C),rG=A2;function D2(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(D2=function(r){return r?n:t})(e)}function oG(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=D2(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}function iG(e){return Object.keys(e).length===0}function lG(e=null){const t=nG.useContext(rG.ThemeContext);return!t||iG(t)?e:t}F2=Zb.default=lG;var br="top",mo="bottom",vo="right",xr="left",Yb="auto",Qc=[br,mo,vo,xr],As="start",Tc="end",aG="clippingParents",B2="viewport",Su="popper",sG="reference",sS=Qc.reduce(function(e,t){return e.concat([t+"-"+As,t+"-"+Tc])},[]),$2=[].concat(Qc,[Yb]).reduce(function(e,t){return e.concat([t,t+"-"+As,t+"-"+Tc])},[]),uG="beforeRead",cG="read",dG="afterRead",fG="beforeMain",pG="main",gG="afterMain",hG="beforeWrite",mG="write",vG="afterWrite",yG=[uG,cG,dG,fG,pG,gG,hG,mG,vG];function oi(e){return e?(e.nodeName||"").toLowerCase():null}function jr(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function pa(e){var t=jr(e).Element;return e instanceof t||e instanceof Element}function fo(e){var t=jr(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Kb(e){if(typeof ShadowRoot>"u")return!1;var t=jr(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function bG(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},i=t.elements[n];!fo(i)||!oi(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(a){var c=o[a];c===!1?i.removeAttribute(a):i.setAttribute(a,c===!0?"":c)}))})}function xG(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],i=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),c=a.reduce(function(s,d){return s[d]="",s},{});!fo(o)||!oi(o)||(Object.assign(o.style,c),Object.keys(i).forEach(function(s){o.removeAttribute(s)}))})}}const wG={name:"applyStyles",enabled:!0,phase:"write",fn:bG,effect:xG,requires:["computeStyles"]};function ni(e){return e.split("-")[0]}var ta=Math.max,Dp=Math.min,Ms=Math.round;function ly(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function V2(){return!/^((?!chrome|android).)*safari/i.test(ly())}function Os(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&fo(e)&&(o=e.offsetWidth>0&&Ms(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Ms(r.height)/e.offsetHeight||1);var a=pa(e)?jr(e):window,c=a.visualViewport,s=!V2()&&n,d=(r.left+(s&&c?c.offsetLeft:0))/o,f=(r.top+(s&&c?c.offsetTop:0))/i,g=r.width/o,v=r.height/i;return{width:g,height:v,top:f,right:d+g,bottom:f+v,left:d,x:d,y:f}}function Jb(e){var t=Os(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function W2(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Kb(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Bi(e){return jr(e).getComputedStyle(e)}function CG(e){return["table","td","th"].indexOf(oi(e))>=0}function Al(e){return((pa(e)?e.ownerDocument:e.document)||window.document).documentElement}function hh(e){return oi(e)==="html"?e:e.assignedSlot||e.parentNode||(Kb(e)?e.host:null)||Al(e)}function uS(e){return!fo(e)||Bi(e).position==="fixed"?null:e.offsetParent}function IG(e){var t=/firefox/i.test(ly()),n=/Trident/i.test(ly());if(n&&fo(e)){var r=Bi(e);if(r.position==="fixed")return null}var o=hh(e);for(Kb(o)&&(o=o.host);fo(o)&&["html","body"].indexOf(oi(o))<0;){var i=Bi(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 qc(e){for(var t=jr(e),n=uS(e);n&&CG(n)&&Bi(n).position==="static";)n=uS(n);return n&&(oi(n)==="html"||oi(n)==="body"&&Bi(n).position==="static")?t:n||IG(e)||t}function Qb(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Qu(e,t,n){return ta(e,Dp(t,n))}function SG(e,t,n){var r=Qu(e,t,n);return r>n?n:r}function G2(){return{top:0,right:0,bottom:0,left:0}}function z2(e){return Object.assign({},G2(),e)}function H2(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var RG=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,z2(typeof t!="number"?t:H2(t,Qc))};function EG(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,c=ni(n.placement),s=Qb(c),d=[xr,vo].indexOf(c)>=0,f=d?"height":"width";if(!(!i||!a)){var g=RG(o.padding,n),v=Jb(i),h=s==="y"?br:xr,y=s==="y"?mo:vo,b=n.rects.reference[f]+n.rects.reference[s]-a[s]-n.rects.popper[f],S=a[s]-n.rects.reference[s],m=qc(i),x=m?s==="y"?m.clientHeight||0:m.clientWidth||0:0,I=b/2-S/2,R=g[h],E=x-v[f]-g[y],P=x/2-v[f]/2+I,A=Qu(R,P,E),O=s;n.modifiersData[r]=(t={},t[O]=A,t.centerOffset=A-P,t)}}function PG(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||W2(t.elements.popper,o)&&(t.elements.arrow=o))}const kG={name:"arrow",enabled:!0,phase:"main",fn:EG,effect:PG,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ts(e){return e.split("-")[1]}var AG={top:"auto",right:"auto",bottom:"auto",left:"auto"};function MG(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:Ms(n*o)/o||0,y:Ms(r*o)/o||0}}function cS(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,c=e.position,s=e.gpuAcceleration,d=e.adaptive,f=e.roundOffsets,g=e.isFixed,v=a.x,h=v===void 0?0:v,y=a.y,b=y===void 0?0:y,S=typeof f=="function"?f({x:h,y:b}):{x:h,y:b};h=S.x,b=S.y;var m=a.hasOwnProperty("x"),x=a.hasOwnProperty("y"),I=xr,R=br,E=window;if(d){var P=qc(n),A="clientHeight",O="clientWidth";if(P===jr(n)&&(P=Al(n),Bi(P).position!=="static"&&c==="absolute"&&(A="scrollHeight",O="scrollWidth")),P=P,o===br||(o===xr||o===vo)&&i===Tc){R=mo;var W=g&&P===E&&E.visualViewport?E.visualViewport.height:P[A];b-=W-r.height,b*=s?1:-1}if(o===xr||(o===br||o===mo)&&i===Tc){I=vo;var $=g&&P===E&&E.visualViewport?E.visualViewport.width:P[O];h-=$-r.width,h*=s?1:-1}}var j=Object.assign({position:c},d&&AG),V=f===!0?MG({x:h,y:b},jr(n)):{x:h,y:b};if(h=V.x,b=V.y,s){var U;return Object.assign({},j,(U={},U[R]=x?"0":"",U[I]=m?"0":"",U.transform=(E.devicePixelRatio||1)<=1?"translate("+h+"px, "+b+"px)":"translate3d("+h+"px, "+b+"px, 0)",U))}return Object.assign({},j,(t={},t[R]=x?b+"px":"",t[I]=m?h+"px":"",t.transform="",t))}function OG(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,a=i===void 0?!0:i,c=n.roundOffsets,s=c===void 0?!0:c,d={placement:ni(t.placement),variation:Ts(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,cS(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:s})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,cS(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const TG={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:OG,data:{}};var pf={passive:!0};function LG(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=o===void 0?!0:o,a=r.resize,c=a===void 0?!0:a,s=jr(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&d.forEach(function(f){f.addEventListener("scroll",n.update,pf)}),c&&s.addEventListener("resize",n.update,pf),function(){i&&d.forEach(function(f){f.removeEventListener("scroll",n.update,pf)}),c&&s.removeEventListener("resize",n.update,pf)}}const _G={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:LG,data:{}};var NG={left:"right",right:"left",bottom:"top",top:"bottom"};function Yf(e){return e.replace(/left|right|bottom|top/g,function(t){return NG[t]})}var FG={start:"end",end:"start"};function dS(e){return e.replace(/start|end/g,function(t){return FG[t]})}function qb(e){var t=jr(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function e1(e){return Os(Al(e)).left+qb(e).scrollLeft}function DG(e,t){var n=jr(e),r=Al(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,c=0,s=0;if(o){i=o.width,a=o.height;var d=V2();(d||!d&&t==="fixed")&&(c=o.offsetLeft,s=o.offsetTop)}return{width:i,height:a,x:c+e1(e),y:s}}function BG(e){var t,n=Al(e),r=qb(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=ta(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=ta(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),c=-r.scrollLeft+e1(e),s=-r.scrollTop;return Bi(o||n).direction==="rtl"&&(c+=ta(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:c,y:s}}function t1(e){var t=Bi(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function j2(e){return["html","body","#document"].indexOf(oi(e))>=0?e.ownerDocument.body:fo(e)&&t1(e)?e:j2(hh(e))}function qu(e,t){var n;t===void 0&&(t=[]);var r=j2(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=jr(r),a=o?[i].concat(i.visualViewport||[],t1(r)?r:[]):r,c=t.concat(a);return o?c:c.concat(qu(hh(a)))}function ay(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function $G(e,t){var n=Os(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function fS(e,t,n){return t===B2?ay(DG(e,n)):pa(t)?$G(t,n):ay(BG(Al(e)))}function VG(e){var t=qu(hh(e)),n=["absolute","fixed"].indexOf(Bi(e).position)>=0,r=n&&fo(e)?qc(e):e;return pa(r)?t.filter(function(o){return pa(o)&&W2(o,r)&&oi(o)!=="body"}):[]}function WG(e,t,n,r){var o=t==="clippingParents"?VG(e):[].concat(t),i=[].concat(o,[n]),a=i[0],c=i.reduce(function(s,d){var f=fS(e,d,r);return s.top=ta(f.top,s.top),s.right=Dp(f.right,s.right),s.bottom=Dp(f.bottom,s.bottom),s.left=ta(f.left,s.left),s},fS(e,a,r));return c.width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c}function X2(e){var t=e.reference,n=e.element,r=e.placement,o=r?ni(r):null,i=r?Ts(r):null,a=t.x+t.width/2-n.width/2,c=t.y+t.height/2-n.height/2,s;switch(o){case br:s={x:a,y:t.y-n.height};break;case mo:s={x:a,y:t.y+t.height};break;case vo:s={x:t.x+t.width,y:c};break;case xr:s={x:t.x-n.width,y:c};break;default:s={x:t.x,y:t.y}}var d=o?Qb(o):null;if(d!=null){var f=d==="y"?"height":"width";switch(i){case As:s[d]=s[d]-(t[f]/2-n[f]/2);break;case Tc:s[d]=s[d]+(t[f]/2-n[f]/2);break}}return s}function Lc(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,i=n.strategy,a=i===void 0?e.strategy:i,c=n.boundary,s=c===void 0?aG:c,d=n.rootBoundary,f=d===void 0?B2:d,g=n.elementContext,v=g===void 0?Su:g,h=n.altBoundary,y=h===void 0?!1:h,b=n.padding,S=b===void 0?0:b,m=z2(typeof S!="number"?S:H2(S,Qc)),x=v===Su?sG:Su,I=e.rects.popper,R=e.elements[y?x:v],E=WG(pa(R)?R:R.contextElement||Al(e.elements.popper),s,f,a),P=Os(e.elements.reference),A=X2({reference:P,element:I,strategy:"absolute",placement:o}),O=ay(Object.assign({},I,A)),W=v===Su?O:P,$={top:E.top-W.top+m.top,bottom:W.bottom-E.bottom+m.bottom,left:E.left-W.left+m.left,right:W.right-E.right+m.right},j=e.modifiersData.offset;if(v===Su&&j){var V=j[o];Object.keys($).forEach(function(U){var Z=[vo,mo].indexOf(U)>=0?1:-1,_=[br,mo].indexOf(U)>=0?"y":"x";$[U]+=V[_]*Z})}return $}function GG(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,c=n.flipVariations,s=n.allowedAutoPlacements,d=s===void 0?$2:s,f=Ts(r),g=f?c?sS:sS.filter(function(y){return Ts(y)===f}):Qc,v=g.filter(function(y){return d.indexOf(y)>=0});v.length===0&&(v=g);var h=v.reduce(function(y,b){return y[b]=Lc(e,{placement:b,boundary:o,rootBoundary:i,padding:a})[ni(b)],y},{});return Object.keys(h).sort(function(y,b){return h[y]-h[b]})}function zG(e){if(ni(e)===Yb)return[];var t=Yf(e);return[dS(e),t,dS(t)]}function HG(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,c=a===void 0?!0:a,s=n.fallbackPlacements,d=n.padding,f=n.boundary,g=n.rootBoundary,v=n.altBoundary,h=n.flipVariations,y=h===void 0?!0:h,b=n.allowedAutoPlacements,S=t.options.placement,m=ni(S),x=m===S,I=s||(x||!y?[Yf(S)]:zG(S)),R=[S].concat(I).reduce(function(pe,ye){return pe.concat(ni(ye)===Yb?GG(t,{placement:ye,boundary:f,rootBoundary:g,padding:d,flipVariations:y,allowedAutoPlacements:b}):ye)},[]),E=t.rects.reference,P=t.rects.popper,A=new Map,O=!0,W=R[0],$=0;$=0,_=Z?"width":"height",F=Lc(t,{placement:j,boundary:f,rootBoundary:g,altBoundary:v,padding:d}),J=Z?U?vo:xr:U?mo:br;E[_]>P[_]&&(J=Yf(J));var z=Yf(J),q=[];if(i&&q.push(F[V]<=0),c&&q.push(F[J]<=0,F[z]<=0),q.every(function(pe){return pe})){W=j,O=!1;break}A.set(j,q)}if(O)for(var ae=y?3:1,te=function(ye){var ge=R.find(function(Oe){var Ce=A.get(Oe);if(Ce)return Ce.slice(0,ye).every(function(Te){return Te})});if(ge)return W=ge,"break"},he=ae;he>0;he--){var Se=te(he);if(Se==="break")break}t.placement!==W&&(t.modifiersData[r]._skip=!0,t.placement=W,t.reset=!0)}}const jG={name:"flip",enabled:!0,phase:"main",fn:HG,requiresIfExists:["offset"],data:{_skip:!1}};function pS(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function gS(e){return[br,vo,mo,xr].some(function(t){return e[t]>=0})}function XG(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=Lc(t,{elementContext:"reference"}),c=Lc(t,{altBoundary:!0}),s=pS(a,r),d=pS(c,o,i),f=gS(s),g=gS(d);t.modifiersData[n]={referenceClippingOffsets:s,popperEscapeOffsets:d,isReferenceHidden:f,hasPopperEscaped:g},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":g})}const UG={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:XG};function ZG(e,t,n){var r=ni(e),o=[xr,br].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=i[0],c=i[1];return a=a||0,c=(c||0)*o,[xr,vo].indexOf(r)>=0?{x:c,y:a}:{x:a,y:c}}function YG(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,a=$2.reduce(function(f,g){return f[g]=ZG(g,t.rects,i),f},{}),c=a[t.placement],s=c.x,d=c.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=d),t.modifiersData[r]=a}const KG={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:YG};function JG(e){var t=e.state,n=e.name;t.modifiersData[n]=X2({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const QG={name:"popperOffsets",enabled:!0,phase:"read",fn:JG,data:{}};function qG(e){return e==="x"?"y":"x"}function ez(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,c=a===void 0?!1:a,s=n.boundary,d=n.rootBoundary,f=n.altBoundary,g=n.padding,v=n.tether,h=v===void 0?!0:v,y=n.tetherOffset,b=y===void 0?0:y,S=Lc(t,{boundary:s,rootBoundary:d,padding:g,altBoundary:f}),m=ni(t.placement),x=Ts(t.placement),I=!x,R=Qb(m),E=qG(R),P=t.modifiersData.popperOffsets,A=t.rects.reference,O=t.rects.popper,W=typeof b=="function"?b(Object.assign({},t.rects,{placement:t.placement})):b,$=typeof W=="number"?{mainAxis:W,altAxis:W}:Object.assign({mainAxis:0,altAxis:0},W),j=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,V={x:0,y:0};if(P){if(i){var U,Z=R==="y"?br:xr,_=R==="y"?mo:vo,F=R==="y"?"height":"width",J=P[R],z=J+S[Z],q=J-S[_],ae=h?-O[F]/2:0,te=x===As?A[F]:O[F],he=x===As?-O[F]:-A[F],Se=t.elements.arrow,pe=h&&Se?Jb(Se):{width:0,height:0},ye=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:G2(),ge=ye[Z],Oe=ye[_],Ce=Qu(0,A[F],pe[F]),Te=I?A[F]/2-ae-Ce-ge-$.mainAxis:te-Ce-ge-$.mainAxis,st=I?-A[F]/2+ae+Ce+Oe+$.mainAxis:he+Ce+Oe+$.mainAxis,$e=t.elements.arrow&&qc(t.elements.arrow),Fe=$e?R==="y"?$e.clientTop||0:$e.clientLeft||0:0,We=(U=j==null?void 0:j[R])!=null?U:0,Ve=J+Te-We-Fe,Ge=J+st-We,Le=Qu(h?Dp(z,Ve):z,J,h?ta(q,Ge):q);P[R]=Le,V[R]=Le-J}if(c){var xt,D=R==="x"?br:xr,K=R==="x"?mo:vo,Q=P[E],se=E==="y"?"height":"width",fe=Q+S[D],le=Q-S[K],ve=[br,xr].indexOf(m)!==-1,ze=(xt=j==null?void 0:j[E])!=null?xt:0,lt=ve?fe:Q-A[se]-O[se]-ze+$.altAxis,ut=ve?Q+A[se]+O[se]-ze-$.altAxis:le,De=h&&ve?SG(lt,Q,ut):Qu(h?lt:fe,Q,h?ut:le);P[E]=De,V[E]=De-Q}t.modifiersData[r]=V}}const tz={name:"preventOverflow",enabled:!0,phase:"main",fn:ez,requiresIfExists:["offset"]};function nz(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function rz(e){return e===jr(e)||!fo(e)?qb(e):nz(e)}function oz(e){var t=e.getBoundingClientRect(),n=Ms(t.width)/e.offsetWidth||1,r=Ms(t.height)/e.offsetHeight||1;return n!==1||r!==1}function iz(e,t,n){n===void 0&&(n=!1);var r=fo(t),o=fo(t)&&oz(t),i=Al(t),a=Os(e,o,n),c={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(r||!r&&!n)&&((oi(t)!=="body"||t1(i))&&(c=rz(t)),fo(t)?(s=Os(t,!0),s.x+=t.clientLeft,s.y+=t.clientTop):i&&(s.x=e1(i))),{x:a.left+c.scrollLeft-s.x,y:a.top+c.scrollTop-s.y,width:a.width,height:a.height}}function lz(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function o(i){n.add(i.name);var a=[].concat(i.requires||[],i.requiresIfExists||[]);a.forEach(function(c){if(!n.has(c)){var s=t.get(c);s&&o(s)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),r}function az(e){var t=lz(e);return yG.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function sz(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function uz(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var hS={placement:"bottom",modifiers:[],strategy:"absolute"};function mS(){for(var e=arguments.length,t=new Array(e),n=0;n{i||c(pz(o)||document.body)},[o,i]),Do(()=>{if(a&&!i)return Ac(n,a),()=>{Ac(n,null)}},[n,a,i]),i){if(C.isValidElement(r)){const d={ref:s};return C.cloneElement(r,d)}return H.jsx(C.Fragment,{children:r})}return H.jsx(C.Fragment,{children:a&&Hc.createPortal(r,a)})});function gz(e){return mt("MuiPopper",e)}ft("MuiPopper",["root"]);const hz=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],mz=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function vz(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function sy(e){return typeof e=="function"?e():e}function yz(e){return e.nodeType!==void 0}const bz=e=>{const{classes:t}=e;return yt({root:["root"]},gz,t)},xz={},wz=C.forwardRef(function(t,n){var r;const{anchorEl:o,children:i,direction:a,disablePortal:c,modifiers:s,open:d,placement:f,popperOptions:g,popperRef:v,slotProps:h={},slots:y={},TransitionProps:b}=t,S=Me(t,hz),m=C.useRef(null),x=mn(m,n),I=C.useRef(null),R=mn(I,v),E=C.useRef(R);Do(()=>{E.current=R},[R]),C.useImperativeHandle(v,()=>I.current,[]);const P=vz(f,a),[A,O]=C.useState(P),[W,$]=C.useState(sy(o));C.useEffect(()=>{I.current&&I.current.forceUpdate()}),C.useEffect(()=>{o&&$(sy(o))},[o]),Do(()=>{if(!W||!d)return;const _=z=>{O(z.placement)};let F=[{name:"preventOverflow",options:{altBoundary:c}},{name:"flip",options:{altBoundary:c}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:z})=>{_(z)}}];s!=null&&(F=F.concat(s)),g&&g.modifiers!=null&&(F=F.concat(g.modifiers));const J=fz(W,m.current,L({placement:P},g,{modifiers:F}));return E.current(J),()=>{J.destroy(),E.current(null)}},[W,c,s,d,g,P]);const j={placement:A};b!==null&&(j.TransitionProps=b);const V=bz(t),U=(r=y.root)!=null?r:"div",Z=da({elementType:U,externalSlotProps:h.root,externalForwardedProps:S,additionalProps:{role:"tooltip",ref:x},ownerState:t,className:V.root});return H.jsx(U,L({},Z,{children:typeof i=="function"?i(j):i}))}),Cz=C.forwardRef(function(t,n){const{anchorEl:r,children:o,container:i,direction:a="ltr",disablePortal:c=!1,keepMounted:s=!1,modifiers:d,open:f,placement:g="bottom",popperOptions:v=xz,popperRef:h,style:y,transition:b=!1,slotProps:S={},slots:m={}}=t,x=Me(t,mz),[I,R]=C.useState(!0),E=()=>{R(!1)},P=()=>{R(!0)};if(!s&&!f&&(!b||I))return null;let A;if(i)A=i;else if(r){const $=sy(r);A=$&&yz($)?Kn($).body:Kn(null).body}const O=!f&&s&&(!b||I)?"none":void 0,W=b?{in:f,onEnter:E,onExited:P}:void 0;return H.jsx(U2,{disablePortal:c,container:A,children:H.jsx(wz,L({anchorEl:r,direction:a,disablePortal:c,modifiers:d,ref:n,open:b?!I:f,placement:g,popperOptions:v,popperRef:h,slotProps:S,slots:m},x,{style:L({position:"fixed",top:0,left:0,display:O},y),TransitionProps:W,children:o}))})}),Iz=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],Sz=Re(Cz,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Z2=C.forwardRef(function(t,n){var r;const o=F2(),i=bt({props:t,name:"MuiPopper"}),{anchorEl:a,component:c,components:s,componentsProps:d,container:f,disablePortal:g,keepMounted:v,modifiers:h,open:y,placement:b,popperOptions:S,popperRef:m,transition:x,slots:I,slotProps:R}=i,E=Me(i,Iz),P=(r=I==null?void 0:I.root)!=null?r:s==null?void 0:s.Root,A=L({anchorEl:a,container:f,disablePortal:g,keepMounted:v,modifiers:h,open:y,placement:b,popperOptions:S,popperRef:m,transition:x},E);return H.jsx(Sz,L({as:c,direction:o==null?void 0:o.direction,slots:{root:P},slotProps:R??d},A,{ref:n}))});function Rz(e){return mt("MuiListSubheader",e)}ft("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const Ez=["className","color","component","disableGutters","disableSticky","inset"],Pz=e=>{const{classes:t,color:n,disableGutters:r,inset:o,disableSticky:i}=e,a={root:["root",n!=="default"&&`color${Ee(n)}`,!r&&"gutters",o&&"inset",!i&&"sticky"]};return yt(a,Rz,t)},kz=Re("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${Ee(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(({theme:e,ownerState:t})=>L({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},t.color==="primary"&&{color:(e.vars||e).palette.primary.main},t.color==="inherit"&&{color:"inherit"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.inset&&{paddingLeft:72},!t.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper})),Y2=C.forwardRef(function(t,n){const r=bt({props:t,name:"MuiListSubheader"}),{className:o,color:i="default",component:a="li",disableGutters:c=!1,disableSticky:s=!1,inset:d=!1}=r,f=Me(r,Ez),g=L({},r,{color:i,component:a,disableGutters:c,disableSticky:s,inset:d}),v=Pz(g);return H.jsx(kz,L({as:a,className:Be(v.root,o),ref:n,ownerState:g},f))});Y2.muiSkipListHighlight=!0;const Az=zs(H.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function Mz(e){return mt("MuiChip",e)}const wt=ft("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),Oz=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],Tz=e=>{const{classes:t,disabled:n,size:r,color:o,iconColor:i,onDelete:a,clickable:c,variant:s}=e,d={root:["root",s,n&&"disabled",`size${Ee(r)}`,`color${Ee(o)}`,c&&"clickable",c&&`clickableColor${Ee(o)}`,a&&"deletable",a&&`deletableColor${Ee(o)}`,`${s}${Ee(o)}`],label:["label",`label${Ee(r)}`],avatar:["avatar",`avatar${Ee(r)}`,`avatarColor${Ee(o)}`],icon:["icon",`icon${Ee(r)}`,`iconColor${Ee(i)}`],deleteIcon:["deleteIcon",`deleteIcon${Ee(r)}`,`deleteIconColor${Ee(o)}`,`deleteIcon${Ee(s)}Color${Ee(o)}`]};return yt(d,Mz,t)},Lz=Re("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:o,clickable:i,onDelete:a,size:c,variant:s}=n;return[{[`& .${wt.avatar}`]:t.avatar},{[`& .${wt.avatar}`]:t[`avatar${Ee(c)}`]},{[`& .${wt.avatar}`]:t[`avatarColor${Ee(r)}`]},{[`& .${wt.icon}`]:t.icon},{[`& .${wt.icon}`]:t[`icon${Ee(c)}`]},{[`& .${wt.icon}`]:t[`iconColor${Ee(o)}`]},{[`& .${wt.deleteIcon}`]:t.deleteIcon},{[`& .${wt.deleteIcon}`]:t[`deleteIcon${Ee(c)}`]},{[`& .${wt.deleteIcon}`]:t[`deleteIconColor${Ee(r)}`]},{[`& .${wt.deleteIcon}`]:t[`deleteIcon${Ee(s)}Color${Ee(r)}`]},t.root,t[`size${Ee(c)}`],t[`color${Ee(r)}`],i&&t.clickable,i&&r!=="default"&&t[`clickableColor${Ee(r)})`],a&&t.deletable,a&&r!=="default"&&t[`deletableColor${Ee(r)}`],t[s],t[`${s}${Ee(r)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return L({maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${wt.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${wt.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:n,fontSize:e.typography.pxToRem(12)},[`& .${wt.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${wt.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${wt.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${wt.icon}`]:L({marginLeft:5,marginRight:-6},t.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&L({color:e.vars?e.vars.palette.Chip.defaultIconColor:n},t.color!=="default"&&{color:"inherit"})),[`& .${wt.deleteIcon}`]:L({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:Wt(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:Wt(e.palette.text.primary,.4)}},t.size==="small"&&{fontSize:16,marginRight:4,marginLeft:-4},t.color!=="default"&&{color:e.vars?`rgba(${e.vars.palette[t.color].contrastTextChannel} / 0.7)`:Wt(e.palette[t.color].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].contrastText}})},t.size==="small"&&{height:24},t.color!=="default"&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.onDelete&&{[`&.${wt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Wt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&t.color!=="default"&&{[`&.${wt.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})},({theme:e,ownerState:t})=>L({},t.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Wt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${wt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Wt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}},t.clickable&&t.color!=="default"&&{[`&:hover, &.${wt.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}}),({theme:e,ownerState:t})=>L({},t.variant==="outlined"&&{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${wt.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${wt.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${wt.avatar}`]:{marginLeft:4},[`& .${wt.avatarSmall}`]:{marginLeft:2},[`& .${wt.icon}`]:{marginLeft:4},[`& .${wt.iconSmall}`]:{marginLeft:2},[`& .${wt.deleteIcon}`]:{marginRight:5},[`& .${wt.deleteIconSmall}`]:{marginRight:3}},t.variant==="outlined"&&t.color!=="default"&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:Wt(e.palette[t.color].main,.7)}`,[`&.${wt.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Wt(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${wt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:Wt(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${wt.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:Wt(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}})),_z=Re("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${Ee(r)}`]]}})(({ownerState:e})=>L({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},e.variant==="outlined"&&{paddingLeft:11,paddingRight:11},e.size==="small"&&{paddingLeft:8,paddingRight:8},e.size==="small"&&e.variant==="outlined"&&{paddingLeft:7,paddingRight:7}));function vS(e){return e.key==="Backspace"||e.key==="Delete"}const Nz=C.forwardRef(function(t,n){const r=bt({props:t,name:"MuiChip"}),{avatar:o,className:i,clickable:a,color:c="default",component:s,deleteIcon:d,disabled:f=!1,icon:g,label:v,onClick:h,onDelete:y,onKeyDown:b,onKeyUp:S,size:m="medium",variant:x="filled",tabIndex:I,skipFocusWhenDisabled:R=!1}=r,E=Me(r,Oz),P=C.useRef(null),A=mn(P,n),O=q=>{q.stopPropagation(),y&&y(q)},W=q=>{q.currentTarget===q.target&&vS(q)&&q.preventDefault(),b&&b(q)},$=q=>{q.currentTarget===q.target&&(y&&vS(q)?y(q):q.key==="Escape"&&P.current&&P.current.blur()),S&&S(q)},j=a!==!1&&h?!0:a,V=j||y?Oc:s||"div",U=L({},r,{component:V,disabled:f,size:m,color:c,iconColor:C.isValidElement(g)&&g.props.color||c,onDelete:!!y,clickable:j,variant:x}),Z=Tz(U),_=V===Oc?L({component:s||"div",focusVisibleClassName:Z.focusVisible},y&&{disableRipple:!0}):{};let F=null;y&&(F=d&&C.isValidElement(d)?C.cloneElement(d,{className:Be(d.props.className,Z.deleteIcon),onClick:O}):H.jsx(Az,{className:Be(Z.deleteIcon),onClick:O}));let J=null;o&&C.isValidElement(o)&&(J=C.cloneElement(o,{className:Be(Z.avatar,o.props.className)}));let z=null;return g&&C.isValidElement(g)&&(z=C.cloneElement(g,{className:Be(Z.icon,g.props.className)})),H.jsxs(Lz,L({as:V,className:Be(Z.root,i),disabled:j&&f?!0:void 0,onClick:h,onKeyDown:W,onKeyUp:$,ref:A,tabIndex:R&&f?-1:I,ownerState:U},_,E,{children:[J||z,H.jsx(_z,{className:Be(Z.label),ownerState:U,children:v}),F]}))}),Fz=["onChange","maxRows","minRows","style","value"];function gf(e){return parseInt(e,10)||0}const Dz={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function Bz(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflowing}const $z=C.forwardRef(function(t,n){const{onChange:r,maxRows:o,minRows:i=1,style:a,value:c}=t,s=Me(t,Fz),{current:d}=C.useRef(c!=null),f=C.useRef(null),g=mn(n,f),v=C.useRef(null),h=C.useRef(null),y=C.useCallback(()=>{const m=f.current,I=Cl(m).getComputedStyle(m);if(I.width==="0px")return{outerHeightStyle:0,overflowing:!1};const R=h.current;R.style.width=I.width,R.value=m.value||t.placeholder||"x",R.value.slice(-1)===` +`&&(R.value+=" ");const E=I.boxSizing,P=gf(I.paddingBottom)+gf(I.paddingTop),A=gf(I.borderBottomWidth)+gf(I.borderTopWidth),O=R.scrollHeight;R.value="x";const W=R.scrollHeight;let $=O;i&&($=Math.max(Number(i)*W,$)),o&&($=Math.min(Number(o)*W,$)),$=Math.max($,W);const j=$+(E==="border-box"?P+A:0),V=Math.abs($-O)<=1;return{outerHeightStyle:j,overflowing:V}},[o,i,t.placeholder]),b=C.useCallback(()=>{const m=y();if(Bz(m))return;const x=m.outerHeightStyle,I=f.current;v.current!==x&&(v.current=x,I.style.height=`${x}px`),I.style.overflow=m.overflowing?"hidden":""},[y]);Do(()=>{const m=()=>{b()};let x;const I=$b(m),R=f.current,E=Cl(R);E.addEventListener("resize",I);let P;return typeof ResizeObserver<"u"&&(P=new ResizeObserver(m),P.observe(R)),()=>{I.clear(),cancelAnimationFrame(x),E.removeEventListener("resize",I),P&&P.disconnect()}},[y,b]),Do(()=>{b()});const S=m=>{d||b(),r&&r(m)};return H.jsxs(C.Fragment,{children:[H.jsx("textarea",L({value:c,onChange:S,ref:g,rows:i,style:a},s)),H.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:h,tabIndex:-1,style:L({},Dz.shadow,a,{paddingTop:0,paddingBottom:0})})]})});function Hs({props:e,states:t,muiFormControl:n}){return t.reduce((r,o)=>(r[o]=e[o],n&&typeof e[o]>"u"&&(r[o]=n[o]),r),{})}const n1=C.createContext(void 0);function js(){return C.useContext(n1)}function Vz(e){return H.jsx(iV,L({},e,{defaultTheme:Hb,themeId:Mg}))}function yS(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Bp(e,t=!1){return e&&(yS(e.value)&&e.value!==""||t&&yS(e.defaultValue)&&e.defaultValue!=="")}function Wz(e){return e.startAdornment}function Gz(e){return mt("MuiInputBase",e)}const Nr=ft("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),zz=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],mh=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${Ee(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},vh=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},Hz=e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:a,formControl:c,fullWidth:s,hiddenLabel:d,multiline:f,readOnly:g,size:v,startAdornment:h,type:y}=e,b={root:["root",`color${Ee(n)}`,r&&"disabled",o&&"error",s&&"fullWidth",a&&"focused",c&&"formControl",v&&v!=="medium"&&`size${Ee(v)}`,f&&"multiline",h&&"adornedStart",i&&"adornedEnd",d&&"hiddenLabel",g&&"readOnly"],input:["input",r&&"disabled",y==="search"&&"inputTypeSearch",f&&"inputMultiline",v==="small"&&"inputSizeSmall",d&&"inputHiddenLabel",h&&"inputAdornedStart",i&&"inputAdornedEnd",g&&"readOnly"]};return yt(b,Gz,t)},yh=Re("div",{name:"MuiInputBase",slot:"Root",overridesResolver:mh})(({theme:e,ownerState:t})=>L({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Nr.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&L({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),bh=Re("input",{name:"MuiInputBase",slot:"Input",overridesResolver:vh})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light",r=L({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return L({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Nr.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus:-ms-input-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${Nr.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},t.size==="small"&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},t.type==="search"&&{MozAppearance:"textfield"})}),jz=H.jsx(Vz,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Xz=C.forwardRef(function(t,n){var r;const o=bt({props:t,name:"MuiInputBase"}),{"aria-describedby":i,autoComplete:a,autoFocus:c,className:s,components:d={},componentsProps:f={},defaultValue:g,disabled:v,disableInjectingGlobalStyles:h,endAdornment:y,fullWidth:b=!1,id:S,inputComponent:m="input",inputProps:x={},inputRef:I,maxRows:R,minRows:E,multiline:P=!1,name:A,onBlur:O,onChange:W,onClick:$,onFocus:j,onKeyDown:V,onKeyUp:U,placeholder:Z,readOnly:_,renderSuffix:F,rows:J,slotProps:z={},slots:q={},startAdornment:ae,type:te="text",value:he}=o,Se=Me(o,zz),pe=x.value!=null?x.value:he,{current:ye}=C.useRef(pe!=null),ge=C.useRef(),Oe=C.useCallback(De=>{},[]),Ce=mn(ge,I,x.ref,Oe),[Te,st]=C.useState(!1),$e=js(),Fe=Hs({props:o,muiFormControl:$e,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Fe.focused=$e?$e.focused:Te,C.useEffect(()=>{!$e&&v&&Te&&(st(!1),O&&O())},[$e,v,Te,O]);const We=$e&&$e.onFilled,Ve=$e&&$e.onEmpty,Ge=C.useCallback(De=>{Bp(De)?We&&We():Ve&&Ve()},[We,Ve]);Do(()=>{ye&&Ge({value:pe})},[pe,Ge,ye]);const Le=De=>{if(Fe.disabled){De.stopPropagation();return}j&&j(De),x.onFocus&&x.onFocus(De),$e&&$e.onFocus?$e.onFocus(De):st(!0)},xt=De=>{O&&O(De),x.onBlur&&x.onBlur(De),$e&&$e.onBlur?$e.onBlur(De):st(!1)},D=(De,...xe)=>{if(!ye){const At=De.target||ge.current;if(At==null)throw new Error(ua(1));Ge({value:At.value})}x.onChange&&x.onChange(De,...xe),W&&W(De,...xe)};C.useEffect(()=>{Ge(ge.current)},[]);const K=De=>{ge.current&&De.currentTarget===De.target&&ge.current.focus(),$&&$(De)};let Q=m,se=x;P&&Q==="input"&&(J?se=L({type:void 0,minRows:J,maxRows:J},se):se=L({type:void 0,maxRows:R,minRows:E},se),Q=$z);const fe=De=>{Ge(De.animationName==="mui-auto-fill-cancel"?ge.current:{value:"x"})};C.useEffect(()=>{$e&&$e.setAdornedStart(!!ae)},[$e,ae]);const le=L({},o,{color:Fe.color||"primary",disabled:Fe.disabled,endAdornment:y,error:Fe.error,focused:Fe.focused,formControl:$e,fullWidth:b,hiddenLabel:Fe.hiddenLabel,multiline:P,size:Fe.size,startAdornment:ae,type:te}),ve=Hz(le),ze=q.root||d.Root||yh,lt=z.root||f.root||{},ut=q.input||d.Input||bh;return se=L({},se,(r=z.input)!=null?r:f.input),H.jsxs(C.Fragment,{children:[!h&&jz,H.jsxs(ze,L({},lt,!Op(ze)&&{ownerState:L({},le,lt.ownerState)},{ref:n,onClick:K},Se,{className:Be(ve.root,lt.className,s,_&&"MuiInputBase-readOnly"),children:[ae,H.jsx(n1.Provider,{value:null,children:H.jsx(ut,L({ownerState:le,"aria-invalid":Fe.error,"aria-describedby":i,autoComplete:a,autoFocus:c,defaultValue:g,disabled:Fe.disabled,id:S,onAnimationStart:fe,name:A,placeholder:Z,readOnly:_,required:Fe.required,rows:J,value:pe,onKeyDown:V,onKeyUp:U,type:te},se,!Op(ut)&&{as:Q,ownerState:L({},le,se.ownerState)},{ref:Ce,className:Be(ve.input,se.className,_&&"MuiInputBase-readOnly"),onBlur:xt,onChange:D,onFocus:Le}))}),y,F?F(L({},Fe,{startAdornment:ae})):null]}))]})}),r1=Xz;function Uz(e){return mt("MuiInput",e)}const al=L({},Nr,ft("MuiInput",["root","underline","input"]));function Zz(e){return mt("MuiOutlinedInput",e)}const jo=L({},Nr,ft("MuiOutlinedInput",["root","notchedOutline","input"]));function Yz(e){return mt("MuiFilledInput",e)}const Fr=L({},Nr,ft("MuiFilledInput",["root","underline","input"])),K2=zs(H.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function Kz(e){return mt("MuiAutocomplete",e)}const it=ft("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]);var bS,xS;const Jz=["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","className","clearIcon","clearOnBlur","clearOnEscape","clearText","closeText","componentsProps","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionKey","getOptionLabel","isOptionEqualToValue","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","readOnly","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","slotProps","value"],Qz=["ref"],qz=["key"],eH=["key"],tH=e=>{const{classes:t,disablePortal:n,expanded:r,focused:o,fullWidth:i,hasClearIcon:a,hasPopupIcon:c,inputFocused:s,popupOpen:d,size:f}=e,g={root:["root",r&&"expanded",o&&"focused",i&&"fullWidth",a&&"hasClearIcon",c&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",s&&"inputFocused"],tag:["tag",`tagSize${Ee(f)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",d&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return yt(g,Kz,t)},nH=Re("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{fullWidth:r,hasClearIcon:o,hasPopupIcon:i,inputFocused:a,size:c}=n;return[{[`& .${it.tag}`]:t.tag},{[`& .${it.tag}`]:t[`tagSize${Ee(c)}`]},{[`& .${it.inputRoot}`]:t.inputRoot},{[`& .${it.input}`]:t.input},{[`& .${it.input}`]:a&&t.inputFocused},t.root,r&&t.fullWidth,i&&t.hasPopupIcon,o&&t.hasClearIcon]}})({[`&.${it.focused} .${it.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${it.clearIndicator}`]:{visibility:"visible"}},[`& .${it.tag}`]:{margin:3,maxWidth:"calc(100% - 6px)"},[`& .${it.inputRoot}`]:{[`.${it.hasPopupIcon}&, .${it.hasClearIcon}&`]:{paddingRight:30},[`.${it.hasPopupIcon}.${it.hasClearIcon}&`]:{paddingRight:56},[`& .${it.input}`]:{width:0,minWidth:30}},[`& .${al.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${al.root}.${Nr.sizeSmall}`]:{[`& .${al.input}`]:{padding:"2px 4px 3px 0"}},[`& .${jo.root}`]:{padding:9,[`.${it.hasPopupIcon}&, .${it.hasClearIcon}&`]:{paddingRight:39},[`.${it.hasPopupIcon}.${it.hasClearIcon}&`]:{paddingRight:65},[`& .${it.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${it.endAdornment}`]:{right:9}},[`& .${jo.root}.${Nr.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${it.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${Fr.root}`]:{paddingTop:19,paddingLeft:8,[`.${it.hasPopupIcon}&, .${it.hasClearIcon}&`]:{paddingRight:39},[`.${it.hasPopupIcon}.${it.hasClearIcon}&`]:{paddingRight:65},[`& .${Fr.input}`]:{padding:"7px 4px"},[`& .${it.endAdornment}`]:{right:9}},[`& .${Fr.root}.${Nr.sizeSmall}`]:{paddingBottom:1,[`& .${Fr.input}`]:{padding:"2.5px 4px"}},[`& .${Nr.hiddenLabel}`]:{paddingTop:8},[`& .${Fr.root}.${Nr.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${it.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${Fr.root}.${Nr.hiddenLabel}.${Nr.sizeSmall}`]:{[`& .${it.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${it.input}`]:{flexGrow:1,textOverflow:"ellipsis",opacity:0},variants:[{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{[`& .${it.tag}`]:{margin:2,maxWidth:"calc(100% - 4px)"}}},{props:{inputFocused:!0},style:{[`& .${it.input}`]:{opacity:1}}},{props:{multiple:!0},style:{[`& .${it.inputRoot}`]:{flexWrap:"wrap"}}}]}),rH=Re("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"50%",transform:"translate(0, -50%)"}),oH=Re(N2,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),iH=Re(N2,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:e},t)=>L({},t.popupIndicator,e.popupOpen&&t.popupIndicatorOpen)})({padding:2,marginRight:-2,variants:[{props:{popupOpen:!0},style:{transform:"rotate(180deg)"}}]}),lH=Re(Z2,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${it.option}`]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})(({theme:e})=>({zIndex:(e.vars||e).zIndex.modal,variants:[{props:{disablePortal:!0},style:{position:"absolute"}}]})),aH=Re(ph,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({theme:e})=>L({},e.typography.body1,{overflow:"auto"})),sH=Re("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),uH=Re("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),cH=Re("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${it.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${it.focused}`]:{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${it.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Wt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${it.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Wt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${it.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Wt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}})),dH=Re(Y2,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8})),fH=Re("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${it.option}`]:{paddingLeft:24}}),pH=C.forwardRef(function(t,n){var r,o,i,a;const c=bt({props:t,name:"MuiAutocomplete"}),{autoComplete:s=!1,autoHighlight:d=!1,autoSelect:f=!1,blurOnSelect:g=!1,ChipProps:v,className:h,clearIcon:y=bS||(bS=H.jsx(JW,{fontSize:"small"})),clearOnBlur:b=!c.freeSolo,clearOnEscape:S=!1,clearText:m="Clear",closeText:x="Close",componentsProps:I={},defaultValue:R=c.multiple?[]:null,disableClearable:E=!1,disableCloseOnSelect:P=!1,disabled:A=!1,disabledItemsFocusable:O=!1,disableListWrap:W=!1,disablePortal:$=!1,filterSelectedOptions:j=!1,forcePopupIcon:V="auto",freeSolo:U=!1,fullWidth:Z=!1,getLimitTagsText:_=be=>`+${be}`,getOptionLabel:F,groupBy:J,handleHomeEndKeys:z=!c.freeSolo,includeInputInList:q=!1,limitTags:ae=-1,ListboxComponent:te="ul",ListboxProps:he,loading:Se=!1,loadingText:pe="Loading…",multiple:ye=!1,noOptionsText:ge="No options",openOnFocus:Oe=!1,openText:Ce="Open",PaperComponent:Te=ph,PopperComponent:st=Z2,popupIcon:$e=xS||(xS=H.jsx(K2,{})),readOnly:Fe=!1,renderGroup:We,renderInput:Ve,renderOption:Ge,renderTags:Le,selectOnFocus:xt=!c.freeSolo,size:D="medium",slotProps:K={}}=c,Q=Me(c,Jz),{getRootProps:se,getInputProps:fe,getInputLabelProps:le,getPopupIndicatorProps:ve,getClearProps:ze,getTagProps:lt,getListboxProps:ut,getOptionProps:De,value:xe,dirty:At,expanded:vn,id:En,popupOpen:_e,focused:nt,focusedTag:pt,anchorEl:Ln,setAnchorEl:Yr,inputValue:Zs,groupedOptions:ar}=tG(L({},c,{componentName:"Autocomplete"})),Co=!E&&!A&&At&&!Fe,Rr=(!U||V===!0)&&V!==!1,{onMouseDown:si}=fe(),{ref:ui}=he??{},va=ut(),{ref:ya}=va,ba=Me(va,Qz),xa=mn(ya,ui),ji=F||(be=>{var qe;return(qe=be.label)!=null?qe:be}),Pn=L({},c,{disablePortal:$,expanded:vn,focused:nt,fullWidth:Z,getOptionLabel:ji,hasClearIcon:Co,hasPopupIcon:Rr,inputFocused:pt===-1,popupOpen:_e,size:D}),qt=tH(Pn);let Er;if(ye&&xe.length>0){const be=qe=>L({className:qt.tag,disabled:A},lt(qe));Le?Er=Le(xe,be,Pn):Er=xe.map((qe,Ct)=>{const _t=be({index:Ct}),{key:sr}=_t,di=Me(_t,qz);return H.jsx(Nz,L({label:ji(qe),size:D},di,v),sr)})}if(ae>-1&&Array.isArray(Er)){const be=Er.length-ae;!nt&&be>0&&(Er=Er.splice(0,ae),Er.push(H.jsx("span",{className:qt.tag,children:_(be)},Er.length)))}const Ys=We||(be=>H.jsxs("li",{children:[H.jsx(dH,{className:qt.groupLabel,ownerState:Pn,component:"div",children:be.group}),H.jsx(fH,{className:qt.groupUl,ownerState:Pn,children:be.children})]},be.key)),Js=Ge||((be,qe)=>{const{key:Ct}=be,_t=Me(be,eH);return H.jsx("li",L({},_t,{children:ji(qe)}),Ct)}),Ca=(be,qe)=>{const Ct=De({option:be,index:qe});return Js(L({},Ct,{className:qt.option}),be,{selected:Ct["aria-selected"],index:qe,inputValue:Zs},Pn)},Ll=(r=K.clearIndicator)!=null?r:I.clearIndicator,ci=(o=K.paper)!=null?o:I.paper,Xi=(i=K.popper)!=null?i:I.popper,oe=(a=K.popupIndicator)!=null?a:I.popupIndicator,ne=be=>H.jsx(lH,L({as:st,disablePortal:$,style:{width:Ln?Ln.clientWidth:null},ownerState:Pn,role:"presentation",anchorEl:Ln,open:_e},Xi,{className:Be(qt.popper,Xi==null?void 0:Xi.className),children:H.jsx(aH,L({ownerState:Pn,as:Te},ci,{className:Be(qt.paper,ci==null?void 0:ci.className),children:be}))}));let Pe=null;return ar.length>0?Pe=ne(H.jsx(cH,L({as:te,className:qt.listbox,ownerState:Pn},ba,he,{ref:xa,children:ar.map((be,qe)=>J?Ys({key:be.key,group:be.group,children:be.options.map((Ct,_t)=>Ca(Ct,be.index+_t))}):Ca(be,qe))}))):Se&&ar.length===0?Pe=ne(H.jsx(sH,{className:qt.loading,ownerState:Pn,children:pe})):ar.length===0&&!U&&!Se&&(Pe=ne(H.jsx(uH,{className:qt.noOptions,ownerState:Pn,role:"presentation",onMouseDown:be=>{be.preventDefault()},children:ge}))),H.jsxs(C.Fragment,{children:[H.jsx(nH,L({ref:n,className:Be(qt.root,h),ownerState:Pn},se(Q),{children:Ve({id:En,disabled:A,fullWidth:!0,size:D==="small"?"small":void 0,InputLabelProps:le(),InputProps:L({ref:Yr,className:qt.inputRoot,startAdornment:Er,onClick:be=>{be.target===be.currentTarget&&si(be)}},(Co||Rr)&&{endAdornment:H.jsxs(rH,{className:qt.endAdornment,ownerState:Pn,children:[Co?H.jsx(oH,L({},ze(),{"aria-label":m,title:m,ownerState:Pn},Ll,{className:Be(qt.clearIndicator,Ll==null?void 0:Ll.className),children:y})):null,Rr?H.jsx(iH,L({},ve(),{disabled:A,"aria-label":_e?x:Ce,title:_e?x:Ce,ownerState:Pn},oe,{className:Be(qt.popupIndicator,oe==null?void 0:oe.className),children:$e})):null]})}),inputProps:L({className:qt.input,disabled:A,readOnly:Fe},fe())})})),Ln?Pe:null]})}),gH=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],hH={entering:{opacity:1},entered:{opacity:1}},mH=C.forwardRef(function(t,n){const r=jb(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:c,easing:s,in:d,onEnter:f,onEntered:g,onEntering:v,onExit:h,onExited:y,onExiting:b,style:S,timeout:m=o,TransitionComponent:x=ai}=t,I=Me(t,gH),R=C.useRef(null),E=mn(R,c.ref,n),P=Z=>_=>{if(Z){const F=R.current;_===void 0?Z(F):Z(F,_)}},A=P(v),O=P((Z,_)=>{_2(Z);const F=Fp({style:S,timeout:m,easing:s},{mode:"enter"});Z.style.webkitTransition=r.transitions.create("opacity",F),Z.style.transition=r.transitions.create("opacity",F),f&&f(Z,_)}),W=P(g),$=P(b),j=P(Z=>{const _=Fp({style:S,timeout:m,easing:s},{mode:"exit"});Z.style.webkitTransition=r.transitions.create("opacity",_),Z.style.transition=r.transitions.create("opacity",_),h&&h(Z)}),V=P(y),U=Z=>{i&&i(R.current,Z)};return H.jsx(x,L({appear:a,in:d,nodeRef:R,onEnter:O,onEntered:W,onEntering:A,onExit:j,onExited:V,onExiting:$,addEndListener:U,timeout:m},I,{children:(Z,_)=>C.cloneElement(c,L({style:L({opacity:0,visibility:Z==="exited"&&!d?"hidden":void 0},hH[Z],S,c.props.style),ref:E},_))}))});function vH(e){return mt("MuiBackdrop",e)}ft("MuiBackdrop",["root","invisible"]);const yH=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],bH=e=>{const{classes:t,invisible:n}=e;return yt({root:["root",n&&"invisible"]},vH,t)},xH=Re("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>L({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),wH=C.forwardRef(function(t,n){var r,o,i;const a=bt({props:t,name:"MuiBackdrop"}),{children:c,className:s,component:d="div",components:f={},componentsProps:g={},invisible:v=!1,open:h,slotProps:y={},slots:b={},TransitionComponent:S=mH,transitionDuration:m}=a,x=Me(a,yH),I=L({},a,{component:d,invisible:v}),R=bH(I),E=(r=y.root)!=null?r:g.root;return H.jsx(S,L({in:h,timeout:m},x,{children:H.jsx(xH,L({"aria-hidden":!0},E,{as:(o=(i=b.root)!=null?i:f.Root)!=null?o:d,className:Be(R.root,s,E==null?void 0:E.className),ownerState:L({},I,E==null?void 0:E.ownerState),classes:R,ref:n,children:c}))}))}),CH=ft("MuiBox",["root"]),IH=k2(),ec=dV({themeId:Mg,defaultTheme:IH,defaultClassName:CH.root,generateClassName:Fb.generate});function SH(e){return mt("MuiButton",e)}const hf=ft("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),RH=C.createContext({}),EH=C.createContext(void 0),PH=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],kH=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=e,c={root:["root",i,`${i}${Ee(t)}`,`size${Ee(o)}`,`${i}Size${Ee(o)}`,`color${Ee(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${Ee(o)}`],endIcon:["icon","endIcon",`iconSize${Ee(o)}`]},s=yt(c,SH,a);return L({},a,s)},J2=e=>L({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),AH=Re(Oc,{shouldForwardProp:e=>wo(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Ee(n.color)}`],t[`size${Ee(n.size)}`],t[`${n.variant}Size${Ee(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var n,r;const o=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],i=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return L({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":L({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Wt(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Wt(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Wt(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:i,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":L({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${hf.focusVisible}`]:L({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${hf.disabled}`]:L({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${Wt(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(n=(r=e.palette).getContrastText)==null?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${hf.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${hf.disabled}`]:{boxShadow:"none"}}),MH=Re("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${Ee(n.size)}`]]}})(({ownerState:e})=>L({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},J2(e))),OH=Re("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${Ee(n.size)}`]]}})(({ownerState:e})=>L({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},J2(e))),TH=C.forwardRef(function(t,n){const r=C.useContext(RH),o=C.useContext(EH),i=kc(r,t),a=bt({props:i,name:"MuiButton"}),{children:c,color:s="primary",component:d="button",className:f,disabled:g=!1,disableElevation:v=!1,disableFocusRipple:h=!1,endIcon:y,focusVisibleClassName:b,fullWidth:S=!1,size:m="medium",startIcon:x,type:I,variant:R="text"}=a,E=Me(a,PH),P=L({},a,{color:s,component:d,disabled:g,disableElevation:v,disableFocusRipple:h,fullWidth:S,size:m,type:I,variant:R}),A=kH(P),O=x&&H.jsx(MH,{className:A.startIcon,ownerState:P,children:x}),W=y&&H.jsx(OH,{className:A.endIcon,ownerState:P,children:y}),$=o||"";return H.jsxs(AH,L({ownerState:P,className:Be(r.className,A.root,f,$),component:d,disabled:g,focusRipple:!h,focusVisibleClassName:Be(A.focusVisible,b),ref:n,type:I},E,{classes:A,children:[O,c,W]}))});function LH(e){const t=Kn(e);return t.body===e?Cl(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function tc(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function wS(e){return parseInt(Cl(e).getComputedStyle(e).paddingRight,10)||0}function _H(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function CS(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,a=>{const c=i.indexOf(a)===-1,s=!_H(a);c&&s&&tc(a,o)})}function Cv(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function NH(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(LH(r)){const a=y2(Kn(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${wS(r)+a}px`;const c=Kn(r).querySelectorAll(".mui-fixed");[].forEach.call(c,s=>{n.push({value:s.style.paddingRight,property:"padding-right",el:s}),s.style.paddingRight=`${wS(s)+a}px`})}let i;if(r.parentNode instanceof DocumentFragment)i=Kn(r).body;else{const a=r.parentElement,c=Cl(r);i=(a==null?void 0:a.nodeName)==="HTML"&&c.getComputedStyle(a).overflowY==="scroll"?a:r}n.push({value:i.style.overflow,property:"overflow",el:i},{value:i.style.overflowX,property:"overflow-x",el:i},{value:i.style.overflowY,property:"overflow-y",el:i}),i.style.overflow="hidden"}return()=>{n.forEach(({value:i,el:a,property:c})=>{i?a.style.setProperty(c,i):a.style.removeProperty(c)})}}function FH(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class DH{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&tc(t.modalRef,!1);const o=FH(n);CS(n,t.mount,t.modalRef,o,!0);const i=Cv(this.containers,a=>a.container===n);return i!==-1?(this.containers[i].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:o}),r)}mount(t,n){const r=Cv(this.containers,i=>i.modals.indexOf(t)!==-1),o=this.containers[r];o.restore||(o.restore=NH(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=Cv(this.containers,a=>a.modals.indexOf(t)!==-1),i=this.containers[o];if(i.modals.splice(i.modals.indexOf(t),1),this.modals.splice(r,1),i.modals.length===0)i.restore&&i.restore(),t.modalRef&&tc(t.modalRef,n),CS(i.container,t.mount,t.modalRef,i.hiddenSiblings,!1),this.containers.splice(o,1);else{const a=i.modals[i.modals.length-1];a.modalRef&&tc(a.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const BH=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function $H(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function VH(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function WH(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||VH(e))}function GH(e){const t=[],n=[];return Array.from(e.querySelectorAll(BH)).forEach((r,o)=>{const i=$H(r);i===-1||!WH(r)||(i===0?t.push(r):n.push({documentOrder:o,tabIndex:i,node:r}))}),n.sort((r,o)=>r.tabIndex===o.tabIndex?r.documentOrder-o.documentOrder:r.tabIndex-o.tabIndex).map(r=>r.node).concat(t)}function zH(){return!0}function HH(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=GH,isEnabled:a=zH,open:c}=e,s=C.useRef(!1),d=C.useRef(null),f=C.useRef(null),g=C.useRef(null),v=C.useRef(null),h=C.useRef(!1),y=C.useRef(null),b=mn(t.ref,y),S=C.useRef(null);C.useEffect(()=>{!c||!y.current||(h.current=!n)},[n,c]),C.useEffect(()=>{if(!c||!y.current)return;const I=Kn(y.current);return y.current.contains(I.activeElement)||(y.current.hasAttribute("tabIndex")||y.current.setAttribute("tabIndex","-1"),h.current&&y.current.focus()),()=>{o||(g.current&&g.current.focus&&(s.current=!0,g.current.focus()),g.current=null)}},[c]),C.useEffect(()=>{if(!c||!y.current)return;const I=Kn(y.current),R=A=>{S.current=A,!(r||!a()||A.key!=="Tab")&&I.activeElement===y.current&&A.shiftKey&&(s.current=!0,f.current&&f.current.focus())},E=()=>{const A=y.current;if(A===null)return;if(!I.hasFocus()||!a()||s.current){s.current=!1;return}if(A.contains(I.activeElement)||r&&I.activeElement!==d.current&&I.activeElement!==f.current)return;if(I.activeElement!==v.current)v.current=null;else if(v.current!==null)return;if(!h.current)return;let O=[];if((I.activeElement===d.current||I.activeElement===f.current)&&(O=i(y.current)),O.length>0){var W,$;const j=!!((W=S.current)!=null&&W.shiftKey&&(($=S.current)==null?void 0:$.key)==="Tab"),V=O[0],U=O[O.length-1];typeof V!="string"&&typeof U!="string"&&(j?U.focus():V.focus())}else A.focus()};I.addEventListener("focusin",E),I.addEventListener("keydown",R,!0);const P=setInterval(()=>{I.activeElement&&I.activeElement.tagName==="BODY"&&E()},50);return()=>{clearInterval(P),I.removeEventListener("focusin",E),I.removeEventListener("keydown",R,!0)}},[n,r,o,a,c,i]);const m=I=>{g.current===null&&(g.current=I.relatedTarget),h.current=!0,v.current=I.target;const R=t.props.onFocus;R&&R(I)},x=I=>{g.current===null&&(g.current=I.relatedTarget),h.current=!0};return H.jsxs(C.Fragment,{children:[H.jsx("div",{tabIndex:c?0:-1,onFocus:x,ref:d,"data-testid":"sentinelStart"}),C.cloneElement(t,{ref:b,onFocus:m}),H.jsx("div",{tabIndex:c?0:-1,onFocus:x,ref:f,"data-testid":"sentinelEnd"})]})}function jH(e){return typeof e=="function"?e():e}function XH(e){return e?e.props.hasOwnProperty("in"):!1}const UH=new DH;function ZH(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=UH,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:c,children:s,onClose:d,open:f,rootRef:g}=e,v=C.useRef({}),h=C.useRef(null),y=C.useRef(null),b=mn(y,g),[S,m]=C.useState(!f),x=XH(s);let I=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(I=!1);const R=()=>Kn(h.current),E=()=>(v.current.modalRef=y.current,v.current.mount=h.current,v.current),P=()=>{o.mount(E(),{disableScrollLock:r}),y.current&&(y.current.scrollTop=0)},A=Lo(()=>{const F=jH(t)||R().body;o.add(E(),F),y.current&&P()}),O=C.useCallback(()=>o.isTopModal(E()),[o]),W=Lo(F=>{h.current=F,F&&(f&&O()?P():y.current&&tc(y.current,I))}),$=C.useCallback(()=>{o.remove(E(),I)},[I,o]);C.useEffect(()=>()=>{$()},[$]),C.useEffect(()=>{f?A():(!x||!i)&&$()},[f,$,x,i,A]);const j=F=>J=>{var z;(z=F.onKeyDown)==null||z.call(F,J),!(J.key!=="Escape"||J.which===229||!O())&&(n||(J.stopPropagation(),d&&d(J,"escapeKeyDown")))},V=F=>J=>{var z;(z=F.onClick)==null||z.call(F,J),J.target===J.currentTarget&&d&&d(J,"backdropClick")};return{getRootProps:(F={})=>{const J=b2(e);delete J.onTransitionEnter,delete J.onTransitionExited;const z=L({},J,F);return L({role:"presentation"},z,{onKeyDown:j(z),ref:b})},getBackdropProps:(F={})=>{const J=F;return L({"aria-hidden":!0},J,{onClick:V(J),open:f})},getTransitionProps:()=>{const F=()=>{m(!1),a&&a()},J=()=>{m(!0),c&&c(),i&&$()};return{onEnter:ty(F,s==null?void 0:s.props.onEnter),onExited:ty(J,s==null?void 0:s.props.onExited)}},rootRef:b,portalRef:W,isTopModal:O,exited:S,hasTransition:x}}function YH(e){return mt("MuiModal",e)}ft("MuiModal",["root","hidden","backdrop"]);const KH=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],JH=e=>{const{open:t,exited:n,classes:r}=e;return yt({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},YH,r)},QH=Re("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(({theme:e,ownerState:t})=>L({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),qH=Re(wH,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),ej=C.forwardRef(function(t,n){var r,o,i,a,c,s;const d=bt({name:"MuiModal",props:t}),{BackdropComponent:f=qH,BackdropProps:g,className:v,closeAfterTransition:h=!1,children:y,container:b,component:S,components:m={},componentsProps:x={},disableAutoFocus:I=!1,disableEnforceFocus:R=!1,disableEscapeKeyDown:E=!1,disablePortal:P=!1,disableRestoreFocus:A=!1,disableScrollLock:O=!1,hideBackdrop:W=!1,keepMounted:$=!1,onBackdropClick:j,open:V,slotProps:U,slots:Z}=d,_=Me(d,KH),F=L({},d,{closeAfterTransition:h,disableAutoFocus:I,disableEnforceFocus:R,disableEscapeKeyDown:E,disablePortal:P,disableRestoreFocus:A,disableScrollLock:O,hideBackdrop:W,keepMounted:$}),{getRootProps:J,getBackdropProps:z,getTransitionProps:q,portalRef:ae,isTopModal:te,exited:he,hasTransition:Se}=ZH(L({},F,{rootRef:n})),pe=L({},F,{exited:he}),ye=JH(pe),ge={};if(y.props.tabIndex===void 0&&(ge.tabIndex="-1"),Se){const{onEnter:We,onExited:Ve}=q();ge.onEnter=We,ge.onExited=Ve}const Oe=(r=(o=Z==null?void 0:Z.root)!=null?o:m.Root)!=null?r:QH,Ce=(i=(a=Z==null?void 0:Z.backdrop)!=null?a:m.Backdrop)!=null?i:f,Te=(c=U==null?void 0:U.root)!=null?c:x.root,st=(s=U==null?void 0:U.backdrop)!=null?s:x.backdrop,$e=da({elementType:Oe,externalSlotProps:Te,externalForwardedProps:_,getSlotProps:J,additionalProps:{ref:n,as:S},ownerState:pe,className:Be(v,Te==null?void 0:Te.className,ye==null?void 0:ye.root,!pe.open&&pe.exited&&(ye==null?void 0:ye.hidden))}),Fe=da({elementType:Ce,externalSlotProps:st,additionalProps:g,getSlotProps:We=>z(L({},We,{onClick:Ve=>{j&&j(Ve),We!=null&&We.onClick&&We.onClick(Ve)}})),className:Be(st==null?void 0:st.className,g==null?void 0:g.className,ye==null?void 0:ye.backdrop),ownerState:pe});return!$&&!V&&(!Se||he)?null:H.jsx(U2,{ref:ae,container:b,disablePortal:P,children:H.jsxs(Oe,L({},$e,{children:[!W&&f?H.jsx(Ce,L({},Fe)):null,H.jsx(HH,{disableEnforceFocus:R,disableAutoFocus:I,disableRestoreFocus:A,isEnabled:te,open:V,children:C.cloneElement(y,ge)})]}))})}),IS=ft("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),tj=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],nj=e=>{const{classes:t,disableUnderline:n}=e,o=yt({root:["root",!n&&"underline"],input:["input"]},Yz,t);return L({},t,o)},rj=Re(yh,{shouldForwardProp:e=>wo(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...mh(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var n;const r=e.palette.mode==="light",o=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",c=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return L({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:a,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i}},[`&.${Fr.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${Fr.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:c}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(n=(e.vars||e).palette[t.color||"primary"])==null?void 0:n.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Fr.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Fr.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:o}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Fr.disabled}, .${Fr.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Fr.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&L({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9}))}),oj=Re(bh,{name:"MuiFilledInput",slot:"Input",overridesResolver:vh})(({theme:e,ownerState:t})=>L({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})),o1=C.forwardRef(function(t,n){var r,o,i,a;const c=bt({props:t,name:"MuiFilledInput"}),{components:s={},componentsProps:d,fullWidth:f=!1,inputComponent:g="input",multiline:v=!1,slotProps:h,slots:y={},type:b="text"}=c,S=Me(c,tj),m=L({},c,{fullWidth:f,inputComponent:g,multiline:v,type:b}),x=nj(c),I={root:{ownerState:m},input:{ownerState:m}},R=h??d?or(I,h??d):I,E=(r=(o=y.root)!=null?o:s.Root)!=null?r:rj,P=(i=(a=y.input)!=null?a:s.Input)!=null?i:oj;return H.jsx(r1,L({slots:{root:E,input:P},componentsProps:R,fullWidth:f,inputComponent:g,multiline:v,ref:n,type:b},S,{classes:x}))});o1.muiName="Input";function ij(e){return mt("MuiFormControl",e)}ft("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const lj=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],aj=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${Ee(n)}`,r&&"fullWidth"]};return yt(o,ij,t)},sj=Re("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>L({},t.root,t[`margin${Ee(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>L({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},e.margin==="normal"&&{marginTop:16,marginBottom:8},e.margin==="dense"&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),uj=C.forwardRef(function(t,n){const r=bt({props:t,name:"MuiFormControl"}),{children:o,className:i,color:a="primary",component:c="div",disabled:s=!1,error:d=!1,focused:f,fullWidth:g=!1,hiddenLabel:v=!1,margin:h="none",required:y=!1,size:b="medium",variant:S="outlined"}=r,m=Me(r,lj),x=L({},r,{color:a,component:c,disabled:s,error:d,fullWidth:g,hiddenLabel:v,margin:h,required:y,size:b,variant:S}),I=aj(x),[R,E]=C.useState(()=>{let U=!1;return o&&C.Children.forEach(o,Z=>{if(!Xf(Z,["Input","Select"]))return;const _=Xf(Z,["Select"])?Z.props.input:Z;_&&Wz(_.props)&&(U=!0)}),U}),[P,A]=C.useState(()=>{let U=!1;return o&&C.Children.forEach(o,Z=>{Xf(Z,["Input","Select"])&&(Bp(Z.props,!0)||Bp(Z.props.inputProps,!0))&&(U=!0)}),U}),[O,W]=C.useState(!1);s&&O&&W(!1);const $=f!==void 0&&!s?f:O;let j;const V=C.useMemo(()=>({adornedStart:R,setAdornedStart:E,color:a,disabled:s,error:d,filled:P,focused:$,fullWidth:g,hiddenLabel:v,size:b,onBlur:()=>{W(!1)},onEmpty:()=>{A(!1)},onFilled:()=>{A(!0)},onFocus:()=>{W(!0)},registerEffect:j,required:y,variant:S}),[R,a,s,d,P,$,g,v,j,y,b,S]);return H.jsx(n1.Provider,{value:V,children:H.jsx(sj,L({as:c,ownerState:x,className:Be(I.root,i),ref:n},m,{children:o}))})}),cj=c9({createStyledComponent:Re("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>bt({props:e,name:"MuiStack"})});function dj(e){return mt("MuiFormHelperText",e)}const SS=ft("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var RS;const fj=["children","className","component","disabled","error","filled","focused","margin","required","variant"],pj=e=>{const{classes:t,contained:n,size:r,disabled:o,error:i,filled:a,focused:c,required:s}=e,d={root:["root",o&&"disabled",i&&"error",r&&`size${Ee(r)}`,n&&"contained",c&&"focused",a&&"filled",s&&"required"]};return yt(d,dj,t)},gj=Re("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${Ee(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(({theme:e,ownerState:t})=>L({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${SS.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${SS.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),hj=C.forwardRef(function(t,n){const r=bt({props:t,name:"MuiFormHelperText"}),{children:o,className:i,component:a="p"}=r,c=Me(r,fj),s=js(),d=Hs({props:r,muiFormControl:s,states:["variant","size","disabled","error","filled","focused","required"]}),f=L({},r,{component:a,contained:d.variant==="filled"||d.variant==="outlined",variant:d.variant,size:d.size,disabled:d.disabled,error:d.error,filled:d.filled,focused:d.focused,required:d.required}),g=pj(f);return H.jsx(gj,L({as:a,ownerState:f,className:Be(g.root,i),ref:n},c,{children:o===" "?RS||(RS=H.jsx("span",{className:"notranslate",children:"​"})):o}))});function mj(e){return mt("MuiFormLabel",e)}const nc=ft("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),vj=["children","className","color","component","disabled","error","filled","focused","required"],yj=e=>{const{classes:t,color:n,focused:r,disabled:o,error:i,filled:a,required:c}=e,s={root:["root",`color${Ee(n)}`,o&&"disabled",i&&"error",a&&"filled",r&&"focused",c&&"required"],asterisk:["asterisk",i&&"error"]};return yt(s,mj,t)},bj=Re("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>L({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>L({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${nc.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${nc.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${nc.error}`]:{color:(e.vars||e).palette.error.main}})),xj=Re("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${nc.error}`]:{color:(e.vars||e).palette.error.main}})),wj=C.forwardRef(function(t,n){const r=bt({props:t,name:"MuiFormLabel"}),{children:o,className:i,component:a="label"}=r,c=Me(r,vj),s=js(),d=Hs({props:r,muiFormControl:s,states:["color","required","focused","disabled","error","filled"]}),f=L({},r,{color:d.color||"primary",component:a,disabled:d.disabled,error:d.error,filled:d.filled,focused:d.focused,required:d.required}),g=yj(f);return H.jsxs(bj,L({as:a,ownerState:f,className:Be(g.root,i),ref:n},c,{children:[o,d.required&&H.jsxs(xj,{ownerState:f,"aria-hidden":!0,className:g.asterisk,children:[" ","*"]})]}))}),ES=C.createContext();function Cj(e){return mt("MuiGrid",e)}const Ij=[0,1,2,3,4,5,6,7,8,9,10],Sj=["column-reverse","column","row-reverse","row"],Rj=["nowrap","wrap-reverse","wrap"],Ru=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],_c=ft("MuiGrid",["root","container","item","zeroMinWidth",...Ij.map(e=>`spacing-xs-${e}`),...Sj.map(e=>`direction-xs-${e}`),...Rj.map(e=>`wrap-xs-${e}`),...Ru.map(e=>`grid-xs-${e}`),...Ru.map(e=>`grid-sm-${e}`),...Ru.map(e=>`grid-md-${e}`),...Ru.map(e=>`grid-lg-${e}`),...Ru.map(e=>`grid-xl-${e}`)]),Ej=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function bs(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function Pj({theme:e,ownerState:t}){let n;return e.breakpoints.keys.reduce((r,o)=>{let i={};if(t[o]&&(n=t[o]),!n)return r;if(n===!0)i={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(n==="auto")i={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const a=ea({values:t.columns,breakpoints:e.breakpoints.values}),c=typeof a=="object"?a[o]:a;if(c==null)return r;const s=`${Math.round(n/c*1e8)/1e6}%`;let d={};if(t.container&&t.item&&t.columnSpacing!==0){const f=e.spacing(t.columnSpacing);if(f!=="0px"){const g=`calc(${s} + ${bs(f)})`;d={flexBasis:g,maxWidth:g}}}i=L({flexBasis:s,flexGrow:0,maxWidth:s},d)}return e.breakpoints.values[o]===0?Object.assign(r,i):r[e.breakpoints.up(o)]=i,r},{})}function kj({theme:e,ownerState:t}){const n=ea({values:t.direction,breakpoints:e.breakpoints.values});return Ir({theme:e},n,r=>{const o={flexDirection:r};return r.indexOf("column")===0&&(o[`& > .${_c.item}`]={maxWidth:"none"}),o})}function Q2({breakpoints:e,values:t}){let n="";Object.keys(t).forEach(o=>{n===""&&t[o]!==0&&(n=o)});const r=Object.keys(e).sort((o,i)=>e[o]-e[i]);return r.slice(0,r.indexOf(n))}function Aj({theme:e,ownerState:t}){const{container:n,rowSpacing:r}=t;let o={};if(n&&r!==0){const i=ea({values:r,breakpoints:e.breakpoints.values});let a;typeof i=="object"&&(a=Q2({breakpoints:e.breakpoints.values,values:i})),o=Ir({theme:e},i,(c,s)=>{var d;const f=e.spacing(c);return f!=="0px"?{marginTop:`-${bs(f)}`,[`& > .${_c.item}`]:{paddingTop:bs(f)}}:(d=a)!=null&&d.includes(s)?{}:{marginTop:0,[`& > .${_c.item}`]:{paddingTop:0}}})}return o}function Mj({theme:e,ownerState:t}){const{container:n,columnSpacing:r}=t;let o={};if(n&&r!==0){const i=ea({values:r,breakpoints:e.breakpoints.values});let a;typeof i=="object"&&(a=Q2({breakpoints:e.breakpoints.values,values:i})),o=Ir({theme:e},i,(c,s)=>{var d;const f=e.spacing(c);return f!=="0px"?{width:`calc(100% + ${bs(f)})`,marginLeft:`-${bs(f)}`,[`& > .${_c.item}`]:{paddingLeft:bs(f)}}:(d=a)!=null&&d.includes(s)?{}:{width:"100%",marginLeft:0,[`& > .${_c.item}`]:{paddingLeft:0}}})}return o}function Oj(e,t,n={}){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[n[`spacing-xs-${String(e)}`]];const r=[];return t.forEach(o=>{const i=e[o];Number(i)>0&&r.push(n[`spacing-${o}-${String(i)}`])}),r}const Tj=Re("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{container:r,direction:o,item:i,spacing:a,wrap:c,zeroMinWidth:s,breakpoints:d}=n;let f=[];r&&(f=Oj(a,d,t));const g=[];return d.forEach(v=>{const h=n[v];h&&g.push(t[`grid-${v}-${String(h)}`])}),[t.root,r&&t.container,i&&t.item,s&&t.zeroMinWidth,...f,o!=="row"&&t[`direction-xs-${String(o)}`],c!=="wrap"&&t[`wrap-xs-${String(c)}`],...g]}})(({ownerState:e})=>L({boxSizing:"border-box"},e.container&&{display:"flex",flexWrap:"wrap",width:"100%"},e.item&&{margin:0},e.zeroMinWidth&&{minWidth:0},e.wrap!=="wrap"&&{flexWrap:e.wrap}),kj,Aj,Mj,Pj);function Lj(e,t){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[`spacing-xs-${String(e)}`];const n=[];return t.forEach(r=>{const o=e[r];if(Number(o)>0){const i=`spacing-${r}-${String(o)}`;n.push(i)}}),n}const _j=e=>{const{classes:t,container:n,direction:r,item:o,spacing:i,wrap:a,zeroMinWidth:c,breakpoints:s}=e;let d=[];n&&(d=Lj(i,s));const f=[];s.forEach(v=>{const h=e[v];h&&f.push(`grid-${v}-${String(h)}`)});const g={root:["root",n&&"container",o&&"item",c&&"zeroMinWidth",...d,r!=="row"&&`direction-xs-${String(r)}`,a!=="wrap"&&`wrap-xs-${String(a)}`,...f]};return yt(g,Cj,t)},Eu=C.forwardRef(function(t,n){const r=bt({props:t,name:"MuiGrid"}),{breakpoints:o}=jb(),i=qg(r),{className:a,columns:c,columnSpacing:s,component:d="div",container:f=!1,direction:g="row",item:v=!1,rowSpacing:h,spacing:y=0,wrap:b="wrap",zeroMinWidth:S=!1}=i,m=Me(i,Ej),x=h||y,I=s||y,R=C.useContext(ES),E=f?c||12:R,P={},A=L({},m);o.keys.forEach($=>{m[$]!=null&&(P[$]=m[$],delete A[$])});const O=L({},i,{columns:E,container:f,direction:g,item:v,rowSpacing:x,columnSpacing:I,wrap:b,zeroMinWidth:S,spacing:y},P,{breakpoints:o.keys}),W=_j(O);return H.jsx(ES.Provider,{value:E,children:H.jsx(Tj,L({ownerState:O,className:Be(W.root,a),as:d,ref:n},A))})}),Nj=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function uy(e){return`scale(${e}, ${e**2})`}const Fj={entering:{opacity:1,transform:uy(1)},entered:{opacity:1,transform:"none"}},Iv=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),q2=C.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:i,easing:a,in:c,onEnter:s,onEntered:d,onEntering:f,onExit:g,onExited:v,onExiting:h,style:y,timeout:b="auto",TransitionComponent:S=ai}=t,m=Me(t,Nj),x=m2(),I=C.useRef(),R=jb(),E=C.useRef(null),P=mn(E,i.ref,n),A=_=>F=>{if(_){const J=E.current;F===void 0?_(J):_(J,F)}},O=A(f),W=A((_,F)=>{_2(_);const{duration:J,delay:z,easing:q}=Fp({style:y,timeout:b,easing:a},{mode:"enter"});let ae;b==="auto"?(ae=R.transitions.getAutoHeightDuration(_.clientHeight),I.current=ae):ae=J,_.style.transition=[R.transitions.create("opacity",{duration:ae,delay:z}),R.transitions.create("transform",{duration:Iv?ae:ae*.666,delay:z,easing:q})].join(","),s&&s(_,F)}),$=A(d),j=A(h),V=A(_=>{const{duration:F,delay:J,easing:z}=Fp({style:y,timeout:b,easing:a},{mode:"exit"});let q;b==="auto"?(q=R.transitions.getAutoHeightDuration(_.clientHeight),I.current=q):q=F,_.style.transition=[R.transitions.create("opacity",{duration:q,delay:J}),R.transitions.create("transform",{duration:Iv?q:q*.666,delay:Iv?J:J||q*.333,easing:z})].join(","),_.style.opacity=0,_.style.transform=uy(.75),g&&g(_)}),U=A(v),Z=_=>{b==="auto"&&x.start(I.current||0,_),r&&r(E.current,_)};return H.jsx(S,L({appear:o,in:c,nodeRef:E,onEnter:W,onEntered:$,onEntering:O,onExit:V,onExited:U,onExiting:j,addEndListener:Z,timeout:b==="auto"?null:b},m,{children:(_,F)=>C.cloneElement(i,L({style:L({opacity:0,transform:uy(.75),visibility:_==="exited"&&!c?"hidden":void 0},Fj[_],y,i.props.style),ref:P},F))}))});q2.muiSupportAuto=!0;const Dj=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],Bj=e=>{const{classes:t,disableUnderline:n}=e,o=yt({root:["root",!n&&"underline"],input:["input"]},Uz,t);return L({},t,o)},$j=Re(yh,{shouldForwardProp:e=>wo(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...mh(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),L({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${al.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${al.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${al.disabled}, .${al.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${al.disabled}:before`]:{borderBottomStyle:"dotted"}})}),Vj=Re(bh,{name:"MuiInput",slot:"Input",overridesResolver:vh})({}),i1=C.forwardRef(function(t,n){var r,o,i,a;const c=bt({props:t,name:"MuiInput"}),{disableUnderline:s,components:d={},componentsProps:f,fullWidth:g=!1,inputComponent:v="input",multiline:h=!1,slotProps:y,slots:b={},type:S="text"}=c,m=Me(c,Dj),x=Bj(c),R={root:{ownerState:{disableUnderline:s}}},E=y??f?or(y??f,R):R,P=(r=(o=b.root)!=null?o:d.Root)!=null?r:$j,A=(i=(a=b.input)!=null?a:d.Input)!=null?i:Vj;return H.jsx(r1,L({slots:{root:P,input:A},slotProps:E,fullWidth:g,inputComponent:v,multiline:h,ref:n,type:S},m,{classes:x}))});i1.muiName="Input";function Wj(e){return mt("MuiInputLabel",e)}ft("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const Gj=["disableAnimation","margin","shrink","variant","className"],zj=e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:i,variant:a,required:c}=e,s={root:["root",n&&"formControl",!i&&"animated",o&&"shrink",r&&r!=="normal"&&`size${Ee(r)}`,a],asterisk:[c&&"asterisk"]},d=yt(s,Wj,t);return L({},t,d)},Hj=Re(wj,{shouldForwardProp:e=>wo(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${nc.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(({theme:e,ownerState:t})=>L({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},t.size==="small"&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},t.variant==="filled"&&L({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&L({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},t.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),t.variant==="outlined"&&L({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),jj=C.forwardRef(function(t,n){const r=bt({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,shrink:i,className:a}=r,c=Me(r,Gj),s=js();let d=i;typeof d>"u"&&s&&(d=s.filled||s.focused||s.adornedStart);const f=Hs({props:r,muiFormControl:s,states:["size","variant","required","focused"]}),g=L({},r,{disableAnimation:o,formControl:s,shrink:d,size:f.size,variant:f.variant,required:f.required,focused:f.focused}),v=zj(g);return H.jsx(Hj,L({"data-shrink":d,ownerState:g,ref:n,className:Be(v.root,a)},c,{classes:v}))}),cy=C.createContext({});function Xj(e){return mt("MuiList",e)}ft("MuiList",["root","padding","dense","subheader"]);const Uj=["children","className","component","dense","disablePadding","subheader"],Zj=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return yt({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},Xj,t)},Yj=Re("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})(({ownerState:e})=>L({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),Kj=C.forwardRef(function(t,n){const r=bt({props:t,name:"MuiList"}),{children:o,className:i,component:a="ul",dense:c=!1,disablePadding:s=!1,subheader:d}=r,f=Me(r,Uj),g=C.useMemo(()=>({dense:c}),[c]),v=L({},r,{component:a,dense:c,disablePadding:s}),h=Zj(v);return H.jsx(cy.Provider,{value:g,children:H.jsxs(Yj,L({as:a,className:Be(h.root,i),ref:n,ownerState:v},f,{children:[d,o]}))})}),PS=ft("MuiListItemIcon",["root","alignItemsFlexStart"]),kS=ft("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),Jj=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Sv(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function AS(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function eA(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.indexOf(t.keys.join(""))===0}function Pu(e,t,n,r,o,i){let a=!1,c=o(e,t,t?n:!1);for(;c;){if(c===e.firstChild){if(a)return!1;a=!0}const s=r?!1:c.disabled||c.getAttribute("aria-disabled")==="true";if(!c.hasAttribute("tabindex")||!eA(c,i)||s)c=o(e,c,n);else return c.focus(),!0}return!1}const Qj=C.forwardRef(function(t,n){const{actions:r,autoFocus:o=!1,autoFocusItem:i=!1,children:a,className:c,disabledItemsFocusable:s=!1,disableListWrap:d=!1,onKeyDown:f,variant:g="selectedMenu"}=t,v=Me(t,Jj),h=C.useRef(null),y=C.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Do(()=>{o&&h.current.focus()},[o]),C.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(I,{direction:R})=>{const E=!h.current.style.width;if(I.clientHeight{const R=h.current,E=I.key,P=Kn(R).activeElement;if(E==="ArrowDown")I.preventDefault(),Pu(R,P,d,s,Sv);else if(E==="ArrowUp")I.preventDefault(),Pu(R,P,d,s,AS);else if(E==="Home")I.preventDefault(),Pu(R,null,d,s,Sv);else if(E==="End")I.preventDefault(),Pu(R,null,d,s,AS);else if(E.length===1){const A=y.current,O=E.toLowerCase(),W=performance.now();A.keys.length>0&&(W-A.lastTime>500?(A.keys=[],A.repeating=!0,A.previousKeyMatched=!0):A.repeating&&O!==A.keys[0]&&(A.repeating=!1)),A.lastTime=W,A.keys.push(O);const $=P&&!A.repeating&&eA(P,A);A.previousKeyMatched&&($||Pu(R,P,!1,s,Sv,A))?I.preventDefault():A.previousKeyMatched=!1}f&&f(I)},S=mn(h,n);let m=-1;C.Children.forEach(a,(I,R)=>{if(!C.isValidElement(I)){m===R&&(m+=1,m>=a.length&&(m=-1));return}I.props.disabled||(g==="selectedMenu"&&I.props.selected||m===-1)&&(m=R),m===R&&(I.props.disabled||I.props.muiSkipListHighlight||I.type.muiSkipListHighlight)&&(m+=1,m>=a.length&&(m=-1))});const x=C.Children.map(a,(I,R)=>{if(R===m){const E={};return i&&(E.autoFocus=!0),I.props.tabIndex===void 0&&g==="selectedMenu"&&(E.tabIndex=0),C.cloneElement(I,E)}return I});return H.jsx(Kj,L({role:"menu",ref:S,className:c,onKeyDown:b,tabIndex:o?0:-1},v,{children:x}))});function qj(e){return mt("MuiPopover",e)}ft("MuiPopover",["root","paper"]);const e6=["onEntering"],t6=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],n6=["slotProps"];function MS(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function OS(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function TS(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function Rv(e){return typeof e=="function"?e():e}const r6=e=>{const{classes:t}=e;return yt({root:["root"],paper:["paper"]},qj,t)},o6=Re(ej,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),tA=Re(ph,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),i6=C.forwardRef(function(t,n){var r,o,i;const a=bt({props:t,name:"MuiPopover"}),{action:c,anchorEl:s,anchorOrigin:d={vertical:"top",horizontal:"left"},anchorPosition:f,anchorReference:g="anchorEl",children:v,className:h,container:y,elevation:b=8,marginThreshold:S=16,open:m,PaperProps:x={},slots:I,slotProps:R,transformOrigin:E={vertical:"top",horizontal:"left"},TransitionComponent:P=q2,transitionDuration:A="auto",TransitionProps:{onEntering:O}={},disableScrollLock:W=!1}=a,$=Me(a.TransitionProps,e6),j=Me(a,t6),V=(r=R==null?void 0:R.paper)!=null?r:x,U=C.useRef(),Z=mn(U,V.ref),_=L({},a,{anchorOrigin:d,anchorReference:g,elevation:b,marginThreshold:S,externalPaperSlotProps:V,transformOrigin:E,TransitionComponent:P,transitionDuration:A,TransitionProps:$}),F=r6(_),J=C.useCallback(()=>{if(g==="anchorPosition")return f;const We=Rv(s),Ge=(We&&We.nodeType===1?We:Kn(U.current).body).getBoundingClientRect();return{top:Ge.top+MS(Ge,d.vertical),left:Ge.left+OS(Ge,d.horizontal)}},[s,d.horizontal,d.vertical,f,g]),z=C.useCallback(We=>({vertical:MS(We,E.vertical),horizontal:OS(We,E.horizontal)}),[E.horizontal,E.vertical]),q=C.useCallback(We=>{const Ve={width:We.offsetWidth,height:We.offsetHeight},Ge=z(Ve);if(g==="none")return{top:null,left:null,transformOrigin:TS(Ge)};const Le=J();let xt=Le.top-Ge.vertical,D=Le.left-Ge.horizontal;const K=xt+Ve.height,Q=D+Ve.width,se=Cl(Rv(s)),fe=se.innerHeight-S,le=se.innerWidth-S;if(S!==null&&xtfe){const ve=K-fe;xt-=ve,Ge.vertical+=ve}if(S!==null&&Dle){const ve=Q-le;D-=ve,Ge.horizontal+=ve}return{top:`${Math.round(xt)}px`,left:`${Math.round(D)}px`,transformOrigin:TS(Ge)}},[s,g,J,z,S]),[ae,te]=C.useState(m),he=C.useCallback(()=>{const We=U.current;if(!We)return;const Ve=q(We);Ve.top!==null&&(We.style.top=Ve.top),Ve.left!==null&&(We.style.left=Ve.left),We.style.transformOrigin=Ve.transformOrigin,te(!0)},[q]);C.useEffect(()=>(W&&window.addEventListener("scroll",he),()=>window.removeEventListener("scroll",he)),[s,W,he]);const Se=(We,Ve)=>{O&&O(We,Ve),he()},pe=()=>{te(!1)};C.useEffect(()=>{m&&he()}),C.useImperativeHandle(c,()=>m?{updatePosition:()=>{he()}}:null,[m,he]),C.useEffect(()=>{if(!m)return;const We=$b(()=>{he()}),Ve=Cl(s);return Ve.addEventListener("resize",We),()=>{We.clear(),Ve.removeEventListener("resize",We)}},[s,m,he]);let ye=A;A==="auto"&&!P.muiSupportAuto&&(ye=void 0);const ge=y||(s?Kn(Rv(s)).body:void 0),Oe=(o=I==null?void 0:I.root)!=null?o:o6,Ce=(i=I==null?void 0:I.paper)!=null?i:tA,Te=da({elementType:Ce,externalSlotProps:L({},V,{style:ae?V.style:L({},V.style,{opacity:0})}),additionalProps:{elevation:b,ref:Z},ownerState:_,className:Be(F.paper,V==null?void 0:V.className)}),st=da({elementType:Oe,externalSlotProps:(R==null?void 0:R.root)||{},externalForwardedProps:j,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:ge,open:m},ownerState:_,className:Be(F.root,h)}),{slotProps:$e}=st,Fe=Me(st,n6);return H.jsx(Oe,L({},Fe,!Op(Oe)&&{slotProps:$e,disableScrollLock:W},{children:H.jsx(P,L({appear:!0,in:m,onEntering:Se,onExited:pe,timeout:ye},$,{children:H.jsx(Ce,L({},Te,{children:v}))}))}))});function l6(e){return mt("MuiMenu",e)}ft("MuiMenu",["root","paper","list"]);const a6=["onEntering"],s6=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],u6={vertical:"top",horizontal:"right"},c6={vertical:"top",horizontal:"left"},d6=e=>{const{classes:t}=e;return yt({root:["root"],paper:["paper"],list:["list"]},l6,t)},f6=Re(i6,{shouldForwardProp:e=>wo(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),p6=Re(tA,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),g6=Re(Qj,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),h6=C.forwardRef(function(t,n){var r,o;const i=bt({props:t,name:"MuiMenu"}),{autoFocus:a=!0,children:c,className:s,disableAutoFocusItem:d=!1,MenuListProps:f={},onClose:g,open:v,PaperProps:h={},PopoverClasses:y,transitionDuration:b="auto",TransitionProps:{onEntering:S}={},variant:m="selectedMenu",slots:x={},slotProps:I={}}=i,R=Me(i.TransitionProps,a6),E=Me(i,s6),P=QV(),A=L({},i,{autoFocus:a,disableAutoFocusItem:d,MenuListProps:f,onEntering:S,PaperProps:h,transitionDuration:b,TransitionProps:R,variant:m}),O=d6(A),W=a&&!d&&v,$=C.useRef(null),j=(z,q)=>{$.current&&$.current.adjustStyleForScrollbar(z,{direction:P?"rtl":"ltr"}),S&&S(z,q)},V=z=>{z.key==="Tab"&&(z.preventDefault(),g&&g(z,"tabKeyDown"))};let U=-1;C.Children.map(c,(z,q)=>{C.isValidElement(z)&&(z.props.disabled||(m==="selectedMenu"&&z.props.selected||U===-1)&&(U=q))});const Z=(r=x.paper)!=null?r:p6,_=(o=I.paper)!=null?o:h,F=da({elementType:x.root,externalSlotProps:I.root,ownerState:A,className:[O.root,s]}),J=da({elementType:Z,externalSlotProps:_,ownerState:A,className:O.paper});return H.jsx(f6,L({onClose:g,anchorOrigin:{vertical:"bottom",horizontal:P?"right":"left"},transformOrigin:P?u6:c6,slots:{paper:Z,root:x.root},slotProps:{root:F,paper:J},open:v,ref:n,transitionDuration:b,TransitionProps:L({onEntering:j},R),ownerState:A},E,{classes:y,children:H.jsx(g6,L({onKeyDown:V,actions:$,autoFocus:a&&(U===-1||d),autoFocusItem:W,variant:m},f,{className:Be(O.list,f.className),children:c}))}))});function m6(e){return mt("MuiMenuItem",e)}const ku=ft("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),v6=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],y6=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},b6=e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=e,s=yt({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},m6,a);return L({},a,s)},x6=Re(Oc,{shouldForwardProp:e=>wo(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:y6})(({theme:e,ownerState:t})=>L({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${ku.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Wt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${ku.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Wt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${ku.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Wt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Wt(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${ku.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${ku.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${IS.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${IS.inset}`]:{marginLeft:52},[`& .${kS.root}`]:{marginTop:0,marginBottom:0},[`& .${kS.inset}`]:{paddingLeft:36},[`& .${PS.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&L({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${PS.root} svg`]:{fontSize:"1.25rem"}}))),Ev=C.forwardRef(function(t,n){const r=bt({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:i="li",dense:a=!1,divider:c=!1,disableGutters:s=!1,focusVisibleClassName:d,role:f="menuitem",tabIndex:g,className:v}=r,h=Me(r,v6),y=C.useContext(cy),b=C.useMemo(()=>({dense:a||y.dense||!1,disableGutters:s}),[y.dense,a,s]),S=C.useRef(null);Do(()=>{o&&S.current&&S.current.focus()},[o]);const m=L({},r,{dense:b.dense,divider:c,disableGutters:s}),x=b6(r),I=mn(S,n);let R;return r.disabled||(R=g!==void 0?g:-1),H.jsx(cy.Provider,{value:b,children:H.jsx(x6,L({ref:I,role:f,tabIndex:R,component:i,focusVisibleClassName:Be(x.focusVisible,d),className:Be(x.root,v)},h,{ownerState:m,classes:x}))})});function w6(e){return mt("MuiNativeSelect",e)}const l1=ft("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),C6=["className","disabled","error","IconComponent","inputRef","variant"],I6=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e,c={select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${Ee(n)}`,i&&"iconOpen",r&&"disabled"]};return yt(c,w6,t)},nA=({ownerState:e,theme:t})=>L({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":L({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:t.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${l1.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),S6=Re("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:wo,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${l1.multiple}`]:t.multiple}]}})(nA),rA=({ownerState:e,theme:t})=>L({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${l1.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),R6=Re("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Ee(n.variant)}`],n.open&&t.iconOpen]}})(rA),E6=C.forwardRef(function(t,n){const{className:r,disabled:o,error:i,IconComponent:a,inputRef:c,variant:s="standard"}=t,d=Me(t,C6),f=L({},t,{disabled:o,variant:s,error:i}),g=I6(f);return H.jsxs(C.Fragment,{children:[H.jsx(S6,L({ownerState:f,className:Be(g.select,r),disabled:o,ref:c||n},d)),t.multiple?null:H.jsx(R6,{as:a,ownerState:f,className:g.icon})]})});var LS;const P6=["children","classes","className","label","notched"],k6=Re("fieldset",{shouldForwardProp:wo})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),A6=Re("legend",{shouldForwardProp:wo})(({ownerState:e,theme:t})=>L({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&L({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function M6(e){const{className:t,label:n,notched:r}=e,o=Me(e,P6),i=n!=null&&n!=="",a=L({},e,{notched:r,withLabel:i});return H.jsx(k6,L({"aria-hidden":!0,className:t,ownerState:a},o,{children:H.jsx(A6,{ownerState:a,children:i?H.jsx("span",{children:n}):LS||(LS=H.jsx("span",{className:"notranslate",children:"​"}))})}))}const O6=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],T6=e=>{const{classes:t}=e,r=yt({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Zz,t);return L({},t,r)},L6=Re(yh,{shouldForwardProp:e=>wo(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:mh})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return L({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${jo.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${jo.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${jo.focused} .${jo.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${jo.error} .${jo.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${jo.disabled} .${jo.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&L({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),_6=Re(M6,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),N6=Re(bh,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:vh})(({theme:e,ownerState:t})=>L({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),a1=C.forwardRef(function(t,n){var r,o,i,a,c;const s=bt({props:t,name:"MuiOutlinedInput"}),{components:d={},fullWidth:f=!1,inputComponent:g="input",label:v,multiline:h=!1,notched:y,slots:b={},type:S="text"}=s,m=Me(s,O6),x=T6(s),I=js(),R=Hs({props:s,muiFormControl:I,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),E=L({},s,{color:R.color||"primary",disabled:R.disabled,error:R.error,focused:R.focused,formControl:I,fullWidth:f,hiddenLabel:R.hiddenLabel,multiline:h,size:R.size,type:S}),P=(r=(o=b.root)!=null?o:d.Root)!=null?r:L6,A=(i=(a=b.input)!=null?a:d.Input)!=null?i:N6;return H.jsx(r1,L({slots:{root:P,input:A},renderSuffix:O=>H.jsx(_6,{ownerState:E,className:x.notchedOutline,label:v!=null&&v!==""&&R.required?c||(c=H.jsxs(C.Fragment,{children:[v," ","*"]})):v,notched:typeof y<"u"?y:!!(O.startAdornment||O.filled||O.focused)}),fullWidth:f,inputComponent:g,multiline:h,ref:n,type:S},m,{classes:L({},x,{notchedOutline:null})}))});a1.muiName="Input";function F6(e){return mt("MuiSelect",e)}const Au=ft("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var _S;const D6=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],B6=Re("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${Au.select}`]:t.select},{[`&.${Au.select}`]:t[n.variant]},{[`&.${Au.error}`]:t.error},{[`&.${Au.multiple}`]:t.multiple}]}})(nA,{[`&.${Au.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),$6=Re("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Ee(n.variant)}`],n.open&&t.iconOpen]}})(rA),V6=Re("input",{shouldForwardProp:e=>O2(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function NS(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function W6(e){return e==null||typeof e=="string"&&!e.trim()}const G6=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e,c={select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${Ee(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return yt(c,F6,t)},z6=C.forwardRef(function(t,n){var r;const{"aria-describedby":o,"aria-label":i,autoFocus:a,autoWidth:c,children:s,className:d,defaultOpen:f,defaultValue:g,disabled:v,displayEmpty:h,error:y=!1,IconComponent:b,inputRef:S,labelId:m,MenuProps:x={},multiple:I,name:R,onBlur:E,onChange:P,onClose:A,onFocus:O,onOpen:W,open:$,readOnly:j,renderValue:V,SelectDisplayProps:U={},tabIndex:Z,value:_,variant:F="standard"}=t,J=Me(t,D6),[z,q]=ys({controlled:_,default:g,name:"Select"}),[ae,te]=ys({controlled:$,default:f,name:"Select"}),he=C.useRef(null),Se=C.useRef(null),[pe,ye]=C.useState(null),{current:ge}=C.useRef($!=null),[Oe,Ce]=C.useState(),Te=mn(n,S),st=C.useCallback(_e=>{Se.current=_e,_e&&ye(_e)},[]),$e=pe==null?void 0:pe.parentNode;C.useImperativeHandle(Te,()=>({focus:()=>{Se.current.focus()},node:he.current,value:z}),[z]),C.useEffect(()=>{f&&ae&&pe&&!ge&&(Ce(c?null:$e.clientWidth),Se.current.focus())},[pe,c]),C.useEffect(()=>{a&&Se.current.focus()},[a]),C.useEffect(()=>{if(!m)return;const _e=Kn(Se.current).getElementById(m);if(_e){const nt=()=>{getSelection().isCollapsed&&Se.current.focus()};return _e.addEventListener("click",nt),()=>{_e.removeEventListener("click",nt)}}},[m]);const Fe=(_e,nt)=>{_e?W&&W(nt):A&&A(nt),ge||(Ce(c?null:$e.clientWidth),te(_e))},We=_e=>{_e.button===0&&(_e.preventDefault(),Se.current.focus(),Fe(!0,_e))},Ve=_e=>{Fe(!1,_e)},Ge=C.Children.toArray(s),Le=_e=>{const nt=Ge.find(pt=>pt.props.value===_e.target.value);nt!==void 0&&(q(nt.props.value),P&&P(_e,nt))},xt=_e=>nt=>{let pt;if(nt.currentTarget.hasAttribute("tabindex")){if(I){pt=Array.isArray(z)?z.slice():[];const Ln=z.indexOf(_e.props.value);Ln===-1?pt.push(_e.props.value):pt.splice(Ln,1)}else pt=_e.props.value;if(_e.props.onClick&&_e.props.onClick(nt),z!==pt&&(q(pt),P)){const Ln=nt.nativeEvent||nt,Yr=new Ln.constructor(Ln.type,Ln);Object.defineProperty(Yr,"target",{writable:!0,value:{value:pt,name:R}}),P(Yr,_e)}I||Fe(!1,nt)}},D=_e=>{j||[" ","ArrowUp","ArrowDown","Enter"].indexOf(_e.key)!==-1&&(_e.preventDefault(),Fe(!0,_e))},K=pe!==null&&ae,Q=_e=>{!K&&E&&(Object.defineProperty(_e,"target",{writable:!0,value:{value:z,name:R}}),E(_e))};delete J["aria-invalid"];let se,fe;const le=[];let ve=!1;(Bp({value:z})||h)&&(V?se=V(z):ve=!0);const ze=Ge.map(_e=>{if(!C.isValidElement(_e))return null;let nt;if(I){if(!Array.isArray(z))throw new Error(ua(2));nt=z.some(pt=>NS(pt,_e.props.value)),nt&&ve&&le.push(_e.props.children)}else nt=NS(z,_e.props.value),nt&&ve&&(fe=_e.props.children);return C.cloneElement(_e,{"aria-selected":nt?"true":"false",onClick:xt(_e),onKeyUp:pt=>{pt.key===" "&&pt.preventDefault(),_e.props.onKeyUp&&_e.props.onKeyUp(pt)},role:"option",selected:nt,value:void 0,"data-value":_e.props.value})});ve&&(I?le.length===0?se=null:se=le.reduce((_e,nt,pt)=>(_e.push(nt),pt{const{classes:t}=e;return t},s1={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>wo(e)&&e!=="variant",slot:"Root"},U6=Re(i1,s1)(""),Z6=Re(a1,s1)(""),Y6=Re(o1,s1)(""),u1=C.forwardRef(function(t,n){const r=bt({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:i,classes:a={},className:c,defaultOpen:s=!1,displayEmpty:d=!1,IconComponent:f=K2,id:g,input:v,inputProps:h,label:y,labelId:b,MenuProps:S,multiple:m=!1,native:x=!1,onClose:I,onOpen:R,open:E,renderValue:P,SelectDisplayProps:A,variant:O="outlined"}=r,W=Me(r,H6),$=x?E6:z6,j=js(),V=Hs({props:r,muiFormControl:j,states:["variant","error"]}),U=V.variant||O,Z=L({},r,{variant:U,classes:a}),_=X6(Z),F=Me(_,j6),J=v||{standard:H.jsx(U6,{ownerState:Z}),outlined:H.jsx(Z6,{label:y,ownerState:Z}),filled:H.jsx(Y6,{ownerState:Z})}[U],z=mn(n,J.ref);return H.jsx(C.Fragment,{children:C.cloneElement(J,L({inputComponent:$,inputProps:L({children:i,error:V.error,IconComponent:f,variant:U,type:void 0,multiple:m},x?{id:g}:{autoWidth:o,defaultOpen:s,displayEmpty:d,labelId:b,MenuProps:S,onClose:I,onOpen:R,open:E,renderValue:P,SelectDisplayProps:L({id:g},A)},h,{classes:h?or(F,h.classes):F},v?v.props.inputProps:{})},(m&&x||d)&&U==="outlined"?{notched:!0}:{},{ref:z,className:Be(J.props.className,c,_.root)},!v&&{variant:U},W))})});u1.muiName="Select";const xh=C.createContext({}),c1=C.createContext({});function K6(e){return mt("MuiStep",e)}ft("MuiStep",["root","horizontal","vertical","alternativeLabel","completed"]);const J6=["active","children","className","component","completed","disabled","expanded","index","last"],Q6=e=>{const{classes:t,orientation:n,alternativeLabel:r,completed:o}=e;return yt({root:["root",n,r&&"alternativeLabel",o&&"completed"]},K6,t)},q6=Re("div",{name:"MuiStep",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.alternativeLabel&&t.alternativeLabel,n.completed&&t.completed]}})(({ownerState:e})=>L({},e.orientation==="horizontal"&&{paddingLeft:8,paddingRight:8},e.alternativeLabel&&{flex:1,position:"relative"})),Kf=C.forwardRef(function(t,n){const r=bt({props:t,name:"MuiStep"}),{active:o,children:i,className:a,component:c="div",completed:s,disabled:d,expanded:f=!1,index:g,last:v}=r,h=Me(r,J6),{activeStep:y,connector:b,alternativeLabel:S,orientation:m,nonLinear:x}=C.useContext(xh);let[I=!1,R=!1,E=!1]=[o,s,d];y===g?I=o!==void 0?o:!0:!x&&y>g?R=s!==void 0?s:!0:!x&&y({index:g,last:v,expanded:f,icon:g+1,active:I,completed:R,disabled:E}),[g,v,f,I,R,E]),A=L({},r,{active:I,orientation:m,alternativeLabel:S,completed:R,disabled:E,expanded:f,component:c}),O=Q6(A),W=H.jsxs(q6,L({as:c,className:Be(O.root,a),ref:n,ownerState:A},h,{children:[b&&S&&g!==0?b:null,i]}));return H.jsx(c1.Provider,{value:P,children:b&&!S&&g!==0?H.jsxs(C.Fragment,{children:[b,W]}):W})}),eX=zs(H.jsx("path",{d:"M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24zm-2 17l-5-5 1.4-1.4 3.6 3.6 7.6-7.6L19 8l-9 9z"}),"CheckCircle"),tX=zs(H.jsx("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}),"Warning");function nX(e){return mt("MuiStepIcon",e)}const Pv=ft("MuiStepIcon",["root","active","completed","error","text"]);var FS;const rX=["active","className","completed","error","icon"],oX=e=>{const{classes:t,active:n,completed:r,error:o}=e;return yt({root:["root",n&&"active",r&&"completed",o&&"error"],text:["text"]},nX,t)},kv=Re(Lp,{name:"MuiStepIcon",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"block",transition:e.transitions.create("color",{duration:e.transitions.duration.shortest}),color:(e.vars||e).palette.text.disabled,[`&.${Pv.completed}`]:{color:(e.vars||e).palette.primary.main},[`&.${Pv.active}`]:{color:(e.vars||e).palette.primary.main},[`&.${Pv.error}`]:{color:(e.vars||e).palette.error.main}})),iX=Re("text",{name:"MuiStepIcon",slot:"Text",overridesResolver:(e,t)=>t.text})(({theme:e})=>({fill:(e.vars||e).palette.primary.contrastText,fontSize:e.typography.caption.fontSize,fontFamily:e.typography.fontFamily})),lX=C.forwardRef(function(t,n){const r=bt({props:t,name:"MuiStepIcon"}),{active:o=!1,className:i,completed:a=!1,error:c=!1,icon:s}=r,d=Me(r,rX),f=L({},r,{active:o,completed:a,error:c}),g=oX(f);if(typeof s=="number"||typeof s=="string"){const v=Be(i,g.root);return c?H.jsx(kv,L({as:tX,className:v,ref:n,ownerState:f},d)):a?H.jsx(kv,L({as:eX,className:v,ref:n,ownerState:f},d)):H.jsxs(kv,L({className:v,ref:n,ownerState:f},d,{children:[FS||(FS=H.jsx("circle",{cx:"12",cy:"12",r:"12"})),H.jsx(iX,{className:g.text,x:"12",y:"12",textAnchor:"middle",dominantBaseline:"central",ownerState:f,children:s})]}))}return s});function aX(e){return mt("MuiStepLabel",e)}const cl=ft("MuiStepLabel",["root","horizontal","vertical","label","active","completed","error","disabled","iconContainer","alternativeLabel","labelContainer"]),sX=["children","className","componentsProps","error","icon","optional","slotProps","StepIconComponent","StepIconProps"],uX=e=>{const{classes:t,orientation:n,active:r,completed:o,error:i,disabled:a,alternativeLabel:c}=e;return yt({root:["root",n,i&&"error",a&&"disabled",c&&"alternativeLabel"],label:["label",r&&"active",o&&"completed",i&&"error",a&&"disabled",c&&"alternativeLabel"],iconContainer:["iconContainer",r&&"active",o&&"completed",i&&"error",a&&"disabled",c&&"alternativeLabel"],labelContainer:["labelContainer",c&&"alternativeLabel"]},aX,t)},cX=Re("span",{name:"MuiStepLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation]]}})(({ownerState:e})=>L({display:"flex",alignItems:"center",[`&.${cl.alternativeLabel}`]:{flexDirection:"column"},[`&.${cl.disabled}`]:{cursor:"default"}},e.orientation==="vertical"&&{textAlign:"left",padding:"8px 0"})),dX=Re("span",{name:"MuiStepLabel",slot:"Label",overridesResolver:(e,t)=>t.label})(({theme:e})=>L({},e.typography.body2,{display:"block",transition:e.transitions.create("color",{duration:e.transitions.duration.shortest}),[`&.${cl.active}`]:{color:(e.vars||e).palette.text.primary,fontWeight:500},[`&.${cl.completed}`]:{color:(e.vars||e).palette.text.primary,fontWeight:500},[`&.${cl.alternativeLabel}`]:{marginTop:16},[`&.${cl.error}`]:{color:(e.vars||e).palette.error.main}})),fX=Re("span",{name:"MuiStepLabel",slot:"IconContainer",overridesResolver:(e,t)=>t.iconContainer})(()=>({flexShrink:0,display:"flex",paddingRight:8,[`&.${cl.alternativeLabel}`]:{paddingRight:0}})),pX=Re("span",{name:"MuiStepLabel",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(({theme:e})=>({width:"100%",color:(e.vars||e).palette.text.secondary,[`&.${cl.alternativeLabel}`]:{textAlign:"center"}})),rc=C.forwardRef(function(t,n){var r;const o=bt({props:t,name:"MuiStepLabel"}),{children:i,className:a,componentsProps:c={},error:s=!1,icon:d,optional:f,slotProps:g={},StepIconComponent:v,StepIconProps:h}=o,y=Me(o,sX),{alternativeLabel:b,orientation:S}=C.useContext(xh),{active:m,disabled:x,completed:I,icon:R}=C.useContext(c1),E=d||R;let P=v;E&&!P&&(P=lX);const A=L({},o,{active:m,alternativeLabel:b,completed:I,disabled:x,error:s,orientation:S}),O=uX(A),W=(r=g.label)!=null?r:c.label;return H.jsxs(cX,L({className:Be(O.root,a),ref:n,ownerState:A},y,{children:[E||P?H.jsx(fX,{className:O.iconContainer,ownerState:A,children:H.jsx(P,L({completed:I,active:m,error:s,icon:E},h))}):null,H.jsxs(pX,{className:O.labelContainer,ownerState:A,children:[i?H.jsx(dX,L({ownerState:A},W,{className:Be(O.label,W==null?void 0:W.className),children:i})):null,f]})]}))});rc.muiName="StepLabel";function gX(e){return mt("MuiStepConnector",e)}const Ha=ft("MuiStepConnector",["root","horizontal","vertical","alternativeLabel","active","completed","disabled","line","lineHorizontal","lineVertical"]),hX=["className"],mX=e=>{const{classes:t,orientation:n,alternativeLabel:r,active:o,completed:i,disabled:a}=e,c={root:["root",n,r&&"alternativeLabel",o&&"active",i&&"completed",a&&"disabled"],line:["line",`line${Ee(n)}`]};return yt(c,gX,t)},vX=Re("div",{name:"MuiStepConnector",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.alternativeLabel&&t.alternativeLabel,n.completed&&t.completed]}})(({ownerState:e})=>L({flex:"1 1 auto"},e.orientation==="vertical"&&{marginLeft:12},e.alternativeLabel&&{position:"absolute",top:12,left:"calc(-50% + 20px)",right:"calc(50% + 20px)"})),yX=Re("span",{name:"MuiStepConnector",slot:"Line",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.line,t[`line${Ee(n.orientation)}`]]}})(({ownerState:e,theme:t})=>{const n=t.palette.mode==="light"?t.palette.grey[400]:t.palette.grey[600];return L({display:"block",borderColor:t.vars?t.vars.palette.StepConnector.border:n},e.orientation==="horizontal"&&{borderTopStyle:"solid",borderTopWidth:1},e.orientation==="vertical"&&{borderLeftStyle:"solid",borderLeftWidth:1,minHeight:24})}),oA=C.forwardRef(function(t,n){const r=bt({props:t,name:"MuiStepConnector"}),{className:o}=r,i=Me(r,hX),{alternativeLabel:a,orientation:c="horizontal"}=C.useContext(xh),{active:s,disabled:d,completed:f}=C.useContext(c1),g=L({},r,{alternativeLabel:a,orientation:c,active:s,completed:f,disabled:d}),v=mX(g);return H.jsx(vX,L({className:Be(v.root,o),ref:n,ownerState:g},i,{children:H.jsx(yX,{className:v.line,ownerState:g})}))});function bX(e){return mt("MuiStepper",e)}ft("MuiStepper",["root","horizontal","vertical","nonLinear","alternativeLabel"]);const xX=["activeStep","alternativeLabel","children","className","component","connector","nonLinear","orientation"],wX=e=>{const{orientation:t,nonLinear:n,alternativeLabel:r,classes:o}=e;return yt({root:["root",t,n&&"nonLinear",r&&"alternativeLabel"]},bX,o)},CX=Re("div",{name:"MuiStepper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.alternativeLabel&&t.alternativeLabel,n.nonLinear&&t.nonLinear]}})(({ownerState:e})=>L({display:"flex"},e.orientation==="horizontal"&&{flexDirection:"row",alignItems:"center"},e.orientation==="vertical"&&{flexDirection:"column"},e.alternativeLabel&&{alignItems:"flex-start"})),IX=H.jsx(oA,{}),iA=C.forwardRef(function(t,n){const r=bt({props:t,name:"MuiStepper"}),{activeStep:o=0,alternativeLabel:i=!1,children:a,className:c,component:s="div",connector:d=IX,nonLinear:f=!1,orientation:g="horizontal"}=r,v=Me(r,xX),h=L({},r,{nonLinear:f,alternativeLabel:i,orientation:g,component:s}),y=wX(h),b=C.Children.toArray(a).filter(Boolean),S=b.map((x,I)=>C.cloneElement(x,L({index:I,last:I+1===b.length},x.props))),m=C.useMemo(()=>({activeStep:o,alternativeLabel:i,connector:d,nonLinear:f,orientation:g}),[o,i,d,f,g]);return H.jsx(xh.Provider,{value:m,children:H.jsx(CX,L({as:s,ownerState:h,className:Be(y.root,c),ref:n},v,{children:S}))})});function SX(e){return mt("MuiTextField",e)}ft("MuiTextField",["root"]);const RX=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],EX={standard:i1,filled:o1,outlined:a1},PX=e=>{const{classes:t}=e;return yt({root:["root"]},SX,t)},kX=Re(uj,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),AX=C.forwardRef(function(t,n){const r=bt({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:i=!1,children:a,className:c,color:s="primary",defaultValue:d,disabled:f=!1,error:g=!1,FormHelperTextProps:v,fullWidth:h=!1,helperText:y,id:b,InputLabelProps:S,inputProps:m,InputProps:x,inputRef:I,label:R,maxRows:E,minRows:P,multiline:A=!1,name:O,onBlur:W,onChange:$,onFocus:j,placeholder:V,required:U=!1,rows:Z,select:_=!1,SelectProps:F,type:J,value:z,variant:q="outlined"}=r,ae=Me(r,RX),te=L({},r,{autoFocus:i,color:s,disabled:f,error:g,fullWidth:h,multiline:A,required:U,select:_,variant:q}),he=PX(te),Se={};q==="outlined"&&(S&&typeof S.shrink<"u"&&(Se.notched=S.shrink),Se.label=R),_&&((!F||!F.native)&&(Se.id=void 0),Se["aria-describedby"]=void 0);const pe=ch(b),ye=y&&pe?`${pe}-helper-text`:void 0,ge=R&&pe?`${pe}-label`:void 0,Oe=EX[q],Ce=H.jsx(Oe,L({"aria-describedby":ye,autoComplete:o,autoFocus:i,defaultValue:d,fullWidth:h,multiline:A,name:O,rows:Z,maxRows:E,minRows:P,type:J,value:z,id:pe,inputRef:I,onBlur:W,onChange:$,onFocus:j,placeholder:V,inputProps:m},Se,x));return H.jsxs(kX,L({className:Be(he.root,c),disabled:f,error:g,fullWidth:h,ref:n,required:U,color:s,variant:q,ownerState:te},ae,{children:[R!=null&&R!==""&&H.jsx(jj,L({htmlFor:pe,id:ge},S,{children:R})),_?H.jsx(u1,L({"aria-describedby":ye,id:pe,labelId:ge,value:z,input:Ce},F,{children:a})):Ce,y&&H.jsx(hj,L({id:ye},v,{children:y}))]}))});var Mo=function(){function e(t,n){this.rows=t,this.columns=n,this.first={row:this.rows[0],column:this.columns[0]},this.last={row:this.rows[this.rows.length-1],column:this.columns[this.columns.length-1]},this.height=this.rows.reduce(function(r,o){return r+o.height},0),this.width=this.columns.reduce(function(r,o){return r+o.width},0)}return e.prototype.contains=function(t){var n,r,o,i,a,c,s,d;return((n=t.column)===null||n===void 0?void 0:n.idx)>=((r=this.first.column)===null||r===void 0?void 0:r.idx)&&((o=t.column)===null||o===void 0?void 0:o.idx)<=((i=this.last.column)===null||i===void 0?void 0:i.idx)&&((a=t.row)===null||a===void 0?void 0:a.idx)>=((c=this.first.row)===null||c===void 0?void 0:c.idx)&&((s=t.row)===null||s===void 0?void 0:s.idx)<=((d=this.last.row)===null||d===void 0?void 0:d.idx)},e.prototype.slice=function(t,n){var r=n==="rows"&&t?t.first.row:this.first.row,o=n==="columns"&&t?t.first.column:this.first.column,i=n==="rows"&&t?t.last.row:this.last.row,a=n==="columns"&&t?t.last.column:this.last.column;return new e(this.rows.slice(r.idx-this.first.row.idx,i.idx-this.first.row.idx+1),this.columns.slice(o.idx-this.first.column.idx,a.idx-this.first.column.idx+1))},e}(),Br=function(){function e(t){this.ranges=t,this.width=0,this.height=0,this.rowIndexLookup={},this.columnIndexLookup={},this.spanCellLookup={},this.rangesToRender={}}return e.prototype.getRange=function(t,n){var r=this.columns.slice(Math.min(t.column.idx,n.column.idx),Math.max(t.column.idx,n.column.idx)+1),o=this.rows.slice(Math.min(t.row.idx,n.row.idx),Math.max(t.row.idx,n.row.idx)+1);return new Mo(o,r)},e.prototype.getLocation=function(t,n){return{row:this.rows[t],column:this.columns[n]}},e.prototype.getLocationById=function(t,n){try{var r=this.rows[this.rowIndexLookup[t]],o=this.columns[this.columnIndexLookup[n]];return this.validateLocation({row:r,column:o})}catch{throw new RangeError("column: '".concat(n,"', row: '").concat(t,"'"))}},e.prototype.validateLocation=function(t){var n,r,o=(n=this.columnIndexLookup[t.column.columnId])!==null&&n!==void 0?n:Math.min(t.column.idx,this.last.column.idx),i=(r=this.rowIndexLookup[t.row.rowId])!==null&&r!==void 0?r:Math.min(t.row.idx,this.last.row.idx);return this.getLocation(i,o)},e.prototype.validateRange=function(t){return this.getRange(this.validateLocation(t.first),this.validateLocation(t.last))},e.prototype.getCell=function(t){return this.rows[t.row.idx].cells[t.column.idx]},e.DEFAULT_ROW_HEIGHT=25,e.DEFAULT_COLUMN_WIDTH=150,e.MIN_COLUMN_WIDTH=40,e}();function $p(e,t){return"".concat(e,", ").concat(t)}function Vr(e,t){return e.column.columnId===(t==null?void 0:t.column.columnId)&&e.row.rowId===(t==null?void 0:t.row.rowId)}var MX=function(){function e(t){this.updateState=t,this.eventTimestamps=[0,0],this.eventLocations=[void 0,void 0],this.currentIndex=0}return e.prototype.handlePointerDownInternal=function(t,n,r){this.pointerDownLocation=n;var o=this.eventLocations[this.currentIndex];this.currentIndex=1-this.currentIndex,this.eventTimestamps[this.currentIndex]=new Date().valueOf(),this.eventLocations[this.currentIndex]=n;var i=n.row.idx===0||n.column.idx===0;return(t.pointerType==="mouse"||i||Vr(n,o))&&(r=r.currentBehavior.handlePointerDown(t,n,r)),r},e.prototype.shouldHandleDoubleClick=function(t,n,r){return n-r<500&&Vr(t,this.eventLocations[0])&&Vr(t,this.eventLocations[1])},e.prototype.shouldHandleCellSelectionOnMobile=function(t,n,r){return t.pointerType!=="mouse"&&Vr(n,this.pointerDownLocation)&&t.pointerType!==void 0&&r-this.eventTimestamps[this.currentIndex]<500&&n.row.idx>0&&n.column.idx>0},e}();function OX(e){return!(e.button!==0&&e.button!==void 0||e.target.className==="reactgrid-content"&&e.pointerType!==void 0)}function TX(e,t){if(!t.reactGridElement)return!1;var n=t.reactGridElement.getBoundingClientRect().left;return!(e.clientX-n>t.cellMatrix.width)}var dy=function(e,t){return dy=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},dy(e,t)};function Bo(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}dy(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var N=function(){return N=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&o[o.length-1])||f[0]!==6&&f[0]!==2)){a=0;continue}if(f[0]===3&&(!o||f[1]>o[0]&&f[1]2&&/MacIntel/.test(window.navigator.platform)}function Sh(e){return e?{width:e instanceof HTMLElement?e.clientWidth:Vp()?window.innerWidth:document.documentElement.clientWidth,height:e instanceof HTMLElement?e.clientHeight:Vp()?window.innerHeight:document.documentElement.clientHeight}:{width:0,height:0}}function Rn(e){var t=Ht(e.scrollableElement),n=t.scrollLeft,r=t.scrollTop;if(!e.reactGridElement)throw new Error('"state.reactGridElement" field should be initiated before calling "getBoundingClientRect()"');var o=e.reactGridElement.getBoundingClientRect(),i=o.left+n,a=o.top+r;if(e.scrollableElement!==void 0&&e.scrollableElement!==Ls()){var c=e.scrollableElement.getBoundingClientRect();i-=c.left,a-=c.top}return{left:i,top:a}}function zi(e){var t=Ht(e.scrollableElement),n=t.scrollLeft,r=t.scrollTop,o=Sh(e.scrollableElement),i=o.width,a=o.height,c=Rn(e),s=c.left,d=c.top,f=r+a,g=d+e.cellMatrix.height,v=df?f:g,y=n+i,b=s+e.cellMatrix.width,S=sy?y:b;return{width:Math.max(m-S,0),height:Math.max(h-v,0),visibleOffsetRight:y-m,visibleOffsetBottom:f-h}}(function(e){e[e.POINTER=1]="POINTER",e[e.BACKSPACE=8]="BACKSPACE",e[e.TAB=9]="TAB",e[e.ENTER=13]="ENTER",e[e.SHIFT=16]="SHIFT",e[e.CTRL=17]="CTRL",e[e.ALT=18]="ALT",e[e.PAUSE=19]="PAUSE",e[e.CAPS_LOCK=20]="CAPS_LOCK",e[e.ESCAPE=27]="ESCAPE",e[e.SPACE=32]="SPACE",e[e.PAGE_UP=33]="PAGE_UP",e[e.PAGE_DOWN=34]="PAGE_DOWN",e[e.END=35]="END",e[e.HOME=36]="HOME",e[e.LEFT_ARROW=37]="LEFT_ARROW",e[e.UP_ARROW=38]="UP_ARROW",e[e.RIGHT_ARROW=39]="RIGHT_ARROW",e[e.DOWN_ARROW=40]="DOWN_ARROW",e[e.INSERT=45]="INSERT",e[e.DELETE=46]="DELETE",e[e.KEY_0=48]="KEY_0",e[e.KEY_1=49]="KEY_1",e[e.KEY_2=50]="KEY_2",e[e.KEY_3=51]="KEY_3",e[e.KEY_4=52]="KEY_4",e[e.KEY_5=53]="KEY_5",e[e.KEY_6=54]="KEY_6",e[e.KEY_7=55]="KEY_7",e[e.KEY_8=56]="KEY_8",e[e.KEY_9=57]="KEY_9",e[e.KEY_A=65]="KEY_A",e[e.KEY_B=66]="KEY_B",e[e.KEY_C=67]="KEY_C",e[e.KEY_D=68]="KEY_D",e[e.KEY_E=69]="KEY_E",e[e.KEY_F=70]="KEY_F",e[e.KEY_G=71]="KEY_G",e[e.KEY_H=72]="KEY_H",e[e.KEY_I=73]="KEY_I",e[e.KEY_J=74]="KEY_J",e[e.KEY_K=75]="KEY_K",e[e.KEY_L=76]="KEY_L",e[e.KEY_M=77]="KEY_M",e[e.KEY_N=78]="KEY_N",e[e.KEY_O=79]="KEY_O",e[e.KEY_P=80]="KEY_P",e[e.KEY_Q=81]="KEY_Q",e[e.KEY_R=82]="KEY_R",e[e.KEY_S=83]="KEY_S",e[e.KEY_T=84]="KEY_T",e[e.KEY_U=85]="KEY_U",e[e.KEY_V=86]="KEY_V",e[e.KEY_W=87]="KEY_W",e[e.KEY_X=88]="KEY_X",e[e.KEY_Y=89]="KEY_Y",e[e.KEY_Z=90]="KEY_Z",e[e.LEFT_META=91]="LEFT_META",e[e.RIGHT_META=92]="RIGHT_META",e[e.SELECT=93]="SELECT",e[e.NUMPAD_0=96]="NUMPAD_0",e[e.NUMPAD_1=97]="NUMPAD_1",e[e.NUMPAD_2=98]="NUMPAD_2",e[e.NUMPAD_3=99]="NUMPAD_3",e[e.NUMPAD_4=100]="NUMPAD_4",e[e.NUMPAD_5=101]="NUMPAD_5",e[e.NUMPAD_6=102]="NUMPAD_6",e[e.NUMPAD_7=103]="NUMPAD_7",e[e.NUMPAD_8=104]="NUMPAD_8",e[e.NUMPAD_9=105]="NUMPAD_9",e[e.MULTIPLY=106]="MULTIPLY",e[e.ADD=107]="ADD",e[e.SUBTRACT=109]="SUBTRACT",e[e.DECIMAL=110]="DECIMAL",e[e.DIVIDE=111]="DIVIDE",e[e.F1=112]="F1",e[e.F2=113]="F2",e[e.F3=114]="F3",e[e.F4=115]="F4",e[e.F5=116]="F5",e[e.F6=117]="F6",e[e.F7=118]="F7",e[e.F8=119]="F8",e[e.F9=120]="F9",e[e.F10=121]="F10",e[e.F11=122]="F11",e[e.F12=123]="F12",e[e.NUM_LOCK=144]="NUM_LOCK",e[e.SCROLL_LOCK=145]="SCROLL_LOCK",e[e.FIREFOX_DASH=173]="FIREFOX_DASH",e[e.SEMICOLON=186]="SEMICOLON",e[e.EQUALS=187]="EQUALS",e[e.COMMA=188]="COMMA",e[e.DASH=189]="DASH",e[e.PERIOD=190]="PERIOD",e[e.FORWARD_SLASH=191]="FORWARD_SLASH",e[e.GRAVE_ACCENT=192]="GRAVE_ACCENT",e[e.OPEN_BRACKET=219]="OPEN_BRACKET",e[e.BACK_SLASH=220]="BACK_SLASH",e[e.CLOSE_BRACKET=221]="CLOSE_BRACKET",e[e.SINGLE_QUOTE=222]="SINGLE_QUOTE"})(ie||(ie={}));var Wn=function(e,t){return e>t?e-t:0};function Ka(e,t,n,r){if(!e.reactGridElement)throw new Error('"state.reactGridElement" field should be initiated before calling the "getBoundingClientRect()"');var o=e.reactGridElement.getBoundingClientRect(),i=t-o.left,a=n-o.top,c=function(v,h,y){return NX(v,h,y)||function(b,S,m){var x=b.cellMatrix,I=Ht(b.scrollableElement).scrollTop,R=Rn(b).top,E=Sh(b.scrollableElement).height,P=Wn(I,R),A=Math.max(x.height-E+R,0),O=zi(b).height+P-x.ranges.stickyBottomRange.height;if(x.ranges.stickyBottomRange.rows.length>0&&S>=O&&!(m&&I+1S-O})||x.last.row;return{cellY:S-O-W.top,row:W}}}(v,h,y)||function(b,S){if(b.cellMatrix.scrollableRange.rows.length<1){var m=S>=b.cellMatrix.height?b.cellMatrix.last:b.cellMatrix.first;return{cellY:m.row.height,row:m.row}}return DX(b,S)}(v,h)}(e,a,r==="vertical"||r==="both"),s=c.cellY,d=c.row,f=function(v,h,y){return FX(v,h,y)||_X(v,h,y)||function(b,S){if(b.cellMatrix.scrollableRange.columns.length<1){var m=S>=b.cellMatrix.width?b.cellMatrix.last:b.cellMatrix.first;return{cellX:m.column.width,column:m.column}}return BX(b,S)}(v,h)}(e,i,r==="horizontal"||r==="both"),g=f.cellX;return{row:d,column:f.column,viewportX:i,viewportY:a,cellX:g,cellY:s}}function _X(e,t,n){var r=e.cellMatrix,o=Ht(e.scrollableElement).scrollLeft,i=Rn(e).left,a=Sh(e.scrollableElement).width,c=Wn(o,i),s=Math.max(r.width-a+i,0),d=zi(e).width+c-r.ranges.stickyRightRange.width;if(r.ranges.stickyRightRange.columns.length>0&&t>=d&&!(n&&o+1t-d})||r.last.column;return{cellX:t-d-f.left,column:f}}}function NX(e,t,n){var r=e.cellMatrix,o=Ht(e.scrollableElement).scrollTop,i=Rn(e).top,a=Wn(o,i);if(r.ranges.stickyTopRange.rows.find(function(s){return s.bottom>t-a})&&ti)){var c=r.ranges.stickyTopRange.rows.find(function(s){return s.bottom>t-a})||r.ranges.stickyTopRange.first.row;return{cellY:t-c.top,row:c}}}function FX(e,t,n){var r=e.cellMatrix,o=Ht(e.scrollableElement).scrollLeft,i=Rn(e).left,a=Wn(o,i);if(r.ranges.stickyLeftRange.columns.find(function(s){return s.right>t-a})&&ti)){var c=r.ranges.stickyLeftRange.columns.find(function(s){return s.right>t-a})||r.ranges.stickyLeftRange.first.column;return{cellX:t-c.left,column:c}}}function DX(e,t){var n=e.cellMatrix,r=t-n.ranges.stickyTopRange.height,o=n.scrollableRange.rows.find(function(i){return i.bottom>=r})||n.scrollableRange.last.row;return{cellY:r-o.top,row:o}}function BX(e,t){var n=e.cellMatrix,r=t-n.ranges.stickyLeftRange.width,o=n.scrollableRange.columns.find(function(i){return i.right>=r})||n.scrollableRange.last.column;return{cellX:r-o.left,column:o}}function Xs(e,t){e.preventDefault();var n=e.clientX,r=e.clientY,o=t.contextMenuPosition;o.top=r,o.left=n;var i=Ka(t,n,r);return t.selectedRanges.find(function(a){return a.contains(i)})||(t=wr(t,i)),N(N({},t),{contextMenuPosition:o})}var lA=function(e){function t(){return e!==null&&e.apply(this,arguments)||this}return Bo(t,e),t.prototype.handlePointerDown=function(n,r,o){if(n.target.className==="reactgrid-content")return o;if(o.enableRangeSelection&&n.shiftKey&&o.focusedLocation){var i=o.cellMatrix.getRange(o.focusedLocation,r);return Yn(n)&&o.selectionMode==="range"?DS(o,i):Av(o,i,!1)}if(o.enableRangeSelection&&Yn(n)){var a=o.selectedRanges.findIndex(function(d){return d.contains(r)}),c=o.selectedRanges[a],s=$o(o,r).cellTemplate;c?(o=wr(o,r,!1),o=N(N({},o),{activeSelectedRangeIdx:a})):s.isFocusable||(i=o.cellMatrix.getRange(r,r),o=wr(o=Av(o,i,!0),r,!1))}else o=wr(o,r);return o},t.prototype.handlePointerEnter=function(n,r,o){if(!o.enableRangeSelection||!o.focusedLocation||n.target.className==="reactgrid-content")return o;var i=o.cellMatrix.getRange(o.focusedLocation,r);return o.selectionMode==="range"&&TX(n,o)?DS(o,i):Av(o,i,!1)},t.prototype.handlePointerUp=function(n,r,o){var i,a;if(!((i=o.props)===null||i===void 0)&&i.onSelectionChanging&&!o.props.onSelectionChanging(o.selectedRanges)){var c=Mn([],o.selectedRanges).filter(function(s,d){return d!==o.activeSelectedRangeIdx});return N(N({},o),{selectedRanges:c,activeSelectedRangeIdx:c.length-1})}return!((a=o.props)===null||a===void 0)&&a.onSelectionChanged&&o.props.onSelectionChanged(o.selectedRanges),o},t.prototype.handleContextMenu=function(n,r){return Xs(n,r)},t}(Ml),$X=function(e){var t=e.left,n=e.linePosition,r=e.offset;return C.createElement(C.Fragment,null,n!==-1&&C.createElement("div",{className:"rg-column-resize-hint",style:{left:n-r}},C.createElement("span",{style:{whiteSpace:"nowrap"}},"Width: ",Math.floor(n-t-r),"px")))},p1=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.autoScrollDirection="horizontal",n}return Bo(t,e),t.prototype.handlePointerDown=function(n,r,o){var i=this;return this.initialLocation=r,this.resizedColumn=r.column,this.isInScrollableRange=o.cellMatrix.scrollableRange.columns.some(function(a){return a.idx===i.resizedColumn.idx}),o},t.prototype.handlePointerMove=function(n,r,o){var i,a,c,s,d=r.viewportX;if(!(r.column.idx===this.resizedColumn.idx&&r.cellX>((a=(i=o.props)===null||i===void 0?void 0:i.minColumnWidth)!==null&&a!==void 0?a:Br.MIN_COLUMN_WIDTH)||r.column.idx>this.resizedColumn.idx)){var f=this.getLinePositionOffset(o);d=((s=(c=o.props)===null||c===void 0?void 0:c.minColumnWidth)!==null&&s!==void 0?s:Br.MIN_COLUMN_WIDTH)+this.resizedColumn.left+f}return N(N({},o),{linePosition:d,lineOrientation:"vertical"})},t.prototype.handlePointerUp=function(n,r,o){var i,a,c,s,d,f=this.resizedColumn.width+r.viewportX-this.initialLocation.viewportX;if(!((i=o.props)===null||i===void 0)&&i.onColumnResized){var g=f>=((c=(a=o.props)===null||a===void 0?void 0:a.minColumnWidth)!==null&&c!==void 0?c:Br.MIN_COLUMN_WIDTH)?f:(d=(s=o.props)===null||s===void 0?void 0:s.minColumnWidth)!==null&&d!==void 0?d:Br.MIN_COLUMN_WIDTH;o.props.onColumnResized(this.resizedColumn.columnId,g,o.selectedIds)}var v=o.focusedLocation;if(v!==void 0&&this.resizedColumn.columnId===v.column.idx){var h=N(N({},v.column),{width:f});v=N(N({},v),{column:h})}return N(N({},o),{linePosition:-1,focusedLocation:v})},t.prototype.renderPanePart=function(n,r){var o=this.getLinePositionOffset(n);return r.contains(this.initialLocation)&&He.createElement($X,{left:this.resizedColumn.left,linePosition:n.linePosition,offset:o})},t.prototype.getLinePositionOffset=function(n){var r=this,o=Ht(n.scrollableElement).scrollLeft,i=Rn(n).left,a=Wn(o,i),c=zi(n).width+a-n.cellMatrix.ranges.stickyRightRange.width;return n.cellMatrix.scrollableRange.columns.some(function(s){return s.idx===r.resizedColumn.idx})?n.cellMatrix.ranges.stickyLeftRange.width:n.cellMatrix.ranges.stickyRightRange.columns.some(function(s){return s.idx===r.resizedColumn.idx})?c:o},t}(Ml),aA=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.autoScrollDirection="horizontal",n}return Bo(t,e),t.prototype.handlePointerDown=function(n,r,o){this.initialColumnIdx=r.column.idx,this.lastPossibleDropLocation=r,this.selectedIdxs=o.selectedIndexes.sort();var i=this.selectedIdxs.map(function(d){return o.cellMatrix.columns[d]}),a=this.selectedIdxs.filter(function(d){return di?i:o},t.prototype.handlePointerEnter=function(n,r,o){var i,a=this.getLastPossibleDropLocation(r,o),c=Ht(o.scrollableElement).scrollLeft;if(!a)return o;var s=a.column.idx>this.initialColumnIdx,d=Math.min(a.viewportX-a.cellX+(s?a.column.width:0),(((i=o.visibleRange)===null||i===void 0?void 0:i.width)||0)+o.cellMatrix.ranges.stickyLeftRange.width+o.cellMatrix.ranges.stickyRightRange.width+c);return this.lastPossibleDropLocation=a,N(N({},o),{linePosition:d})},t.prototype.getLastPossibleDropLocation=function(n,r){var o,i=n.column.idx<=this.initialColumnIdx?"before":"after",a=this.selectedIdxs.map(function(c){return r.cellMatrix.columns[c].columnId});return!(!((o=r.props)===null||o===void 0)&&o.canReorderColumns)||r.props.canReorderColumns(n.column.columnId,a,i)?n:this.lastPossibleDropLocation},t.prototype.handlePointerUp=function(n,r,o){var i,a;if(r.column.idx!==this.initialColumnIdx&&this.lastPossibleDropLocation&&(!((i=o.props)===null||i===void 0)&&i.onColumnsReordered)){var c=this.lastPossibleDropLocation.column.idx<=this.initialColumnIdx,s=this.selectedIdxs.map(function(d){return o.cellMatrix.columns[d].columnId});(a=o.props)===null||a===void 0||a.onColumnsReordered(this.lastPossibleDropLocation.column.columnId,s,c?"before":"after")}return N(N({},o),{linePosition:-1,shadowPosition:-1,shadowCursor:"default"})},t.prototype.handleContextMenu=function(n,r){return Xs(n,r)},t}(Ml);function g1(e,t,n){var r=e.scrollableElement;r.scrollTop!==void 0?r.scrollTop=t:r.scrollTo({top:t}),r.scrollLeft!==void 0?r.scrollLeft=n:r.scrollTo({left:n})}function h1(e,t){return zi(e).height-t}function VX(e,t,n,r){return n+e.row.bottom-t-r}function WX(e,t,n){return t-n+e.row.top-1}function GX(e,t,n){var r=Ht(e.scrollableElement).scrollTop,o=Rn(e).top,i=Wn(r,o);return n0&&r.idx<=n.last.row.idx}function HX(e,t){return zi(e).width-t}function jX(e,t,n,r){return n+e.column.right-t-r}function XX(e,t,n){return t-n+e.column.left-1}function UX(e,t,n){var r=Ht(e.scrollableElement).scrollLeft,o=Rn(e).left,i=Wn(r,o);return n0&&r.idx<=n.last.column.idx}function KX(e,t,n){var r=n.focusedLocation;if(r){var o=!(Vr(r,t.focusedLocation)||n.currentBehavior instanceof p1),i=n.currentlyEditedCell!==void 0&&n.currentlyEditedCell!==t.currentlyEditedCell;if(o||i){var a=v1(n,r),c=a.left;g1(n,a.top,c)}}}function v1(e,t,n){return n===void 0&&(n="both"),{top:JX(e,t,n==="horizontal"),left:QX(e,t,n==="vertical")}}function JX(e,t,n){var r=e.cellMatrix.ranges,o=r.stickyTopRange,i=r.stickyBottomRange,a=Ht(e.scrollableElement).scrollTop,c=h1(e,o.height+i.height),s=Rn(e).top,d=Wn(a,s),f=t.row;if(n||!f)return a;var g=sA(e,t)?1:0;return m1(e,t)||function(v,h){var y=v.cellMatrix.ranges.stickyBottomRange,b=h.row;return y.rows.length>0&&b.idx>=y.first.row.idx}(e,t)?a:GX(e,t,c+g)?VX(t,c-1-g,a,d):zX(e,t)?WX(t,a,d):a}function QX(e,t,n){var r=e.cellMatrix.ranges,o=r.stickyLeftRange,i=r.stickyRightRange,a=Ht(e.scrollableElement).scrollLeft,c=HX(e,o.width+i.width),s=Rn(e).left,d=Wn(a,s),f=t.column;if(n||!f)return a;var g=sA(e,t)?1:0;return YX(e,t)||function(v,h){var y=v.cellMatrix.ranges.stickyRightRange,b=h.column;return y.columns.length>0&&b.idx>=y.first.column.idx}(e,t)?a:UX(e,t,c+g)?jX(t,c-1-g,a,d):ZX(e,t)?XX(t,a,d):a}function sA(e,t){return e.cellMatrix.scrollableRange.contains(t)&&e.scrollableElement===Ls()}var qX=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.handlePointerDown=function(r,o){var i;n.isInLeftSticky=!1,n.isInRightSticky=!1,n.isInTopSticky=!1,n.isInBottomSticky=!1;var a=function(s,d){if(!d.reactGridElement)throw new Error('"state.reactGridElement" field should be initiated before calling the "getBoundingClientRect()"');var f=d.reactGridElement.getBoundingClientRect(),g=f.left,v=f.right,h=s.clientX-g,y=d.cellMatrix.ranges.stickyRightRange.width;return!(h>=d.cellMatrix.width-y)||s.clientX>=v-y}(r,o);if(!((i=o.props)===null||i===void 0)&&i.onContextMenu&&a&&window.addEventListener("contextmenu",n.handleContextMenu,!0),!a)return N(N({},o),{contextMenuPosition:{top:-1,left:-1}});if(!OX(r))return o;window.addEventListener("pointermove",n.handlePointerMove),window.addEventListener("pointerup",n.handlePointerUp);var c=Ka(o,r.clientX,r.clientY);return n.handlePointerDownInternal(r,c,o)},n.handleHideContextMenu=function(r){window.removeEventListener("pointerdown",n.handleHideContextMenu),n.updateState(function(o){return r instanceof MouseEvent&&n.isContainElement(r,o)?o:N(N({},o),{contextMenuPosition:{top:-1,left:-1}})})},n.isContainElement=function(r,o){var i;return(i=o.reactGridElement)===null||i===void 0?void 0:i.contains(r.target)},n.handleContextMenu=function(r){window.removeEventListener("pointerup",n.handlePointerUp),window.removeEventListener("pointermove",n.handlePointerMove),window.removeEventListener("contextmenu",n.handleContextMenu,!0),window.addEventListener("pointerdown",n.handleHideContextMenu),n.updateState(function(o){var i;if(n.isContainElement(r,o)){var a=Ka(o,r.clientX,r.clientY);(i=(o=(o=o.currentBehavior.handlePointerUp(r,a,o)).currentBehavior.handleContextMenu(r,o)).hiddenFocusElement)===null||i===void 0||i.focus()}return o})},n.handlePointerMove=function(r){n.updateState(function(o){var i,a=o.currentBehavior.autoScrollDirection,c=Ka(o,r.clientX,r.clientY,void 0),s=Ka(o,r.clientX,r.clientY,a);if(c.column.idxs.column.idx&&!n.isFromRightToLeftScroll&&!n.isInRightSticky?(n.isFromRightToLeftScroll=!1,s=c):c.row.idxs.row.idx&&!n.isFromBottomToTopScroll&&!n.isInBottomSticky?(n.isFromBottomToTopScroll=!1,s=c):(n.isInLeftSticky=!0,n.isInRightSticky=!0,n.isInTopSticky=!0,n.isInBottomSticky=!0),r.target.className!=="reactgrid-content"&&!(o.currentBehavior instanceof p1)&&((i=o.props)===null||i===void 0?void 0:i.enableRangeSelection)||o.currentBehavior instanceof aA){var d=v1(o,s),f=d.left;g1(o,d.top,f)}o=o.currentBehavior.handlePointerMove(r,s,o);var g=n.eventLocations[n.currentIndex];return n.eventLocations[n.currentIndex]=s,Vr(s,g)||(o=o.currentBehavior.handlePointerEnter(r,s,o)),o})},n.handlePointerUp=function(r){r.button!==0&&r.button!==void 0||(window.removeEventListener("pointerup",n.handlePointerUp),window.removeEventListener("pointermove",n.handlePointerMove),window.removeEventListener("contextmenu",n.handleContextMenu,!0),n.updateState(function(o){var i,a=Ka(o,r.clientX,r.clientY),c=new Date().valueOf(),s=n.eventTimestamps[1-n.currentIndex];return o=o.currentBehavior.handlePointerUp(r,a,o),n.shouldHandleCellSelectionOnMobile(r,a,c)&&(o=o.currentBehavior.handlePointerDown(r,a,o)),o=N(N({},o),{currentBehavior:new O1}),n.shouldHandleDoubleClick(a,c,s)&&(o=o.currentBehavior.handleDoubleClick(r,a,o)),(i=o.hiddenFocusElement)===null||i===void 0||i.focus(),o}))},n}return Bo(t,e),t}(MX),Wp=400,Gp=300,zp=1;function Jf(e){if(e.disableVirtualScrolling){var t=e.cellMatrix.scrollableRange,n=t.rows,r=t.columns,o=new Mo(n,r);return N(N({},e),{visibleRange:o})}var i=Ht(e.scrollableElement),a=i.scrollTop,c=i.scrollLeft,s=eU(e,[-e.cellMatrix.ranges.stickyTopRange.height],[-e.cellMatrix.ranges.stickyLeftRange.width]),d=s.width,f=s.height,g=tU(e,d),v=nU(e,f),h=new Mo(v,g);return N(N({},e),{leftScrollBoudary:h.columns.length>0?c-Gp:0,rightScrollBoudary:h.last.column===void 0?0:Gp+c,topScrollBoudary:h.columns.length>0?a-Wp:0,bottomScrollBoudary:h.last.row===void 0?0:Wp+a,visibleRange:h})}function eU(e,t,n){var r=zi(e),o=r.height,i=r.width,a=function(c,s){return c+s};return{height:Math.max(t.reduce(a,o),0),width:Math.max(n.reduce(a,i),0)}}function tU(e,t){var n=e.cellMatrix.scrollableRange.columns,r=Rn(e).left,o=Ht(e.scrollableElement).scrollLeft,i=Math.max(jp(n,o-r-Gp)-zp-1,0),a=jp(n,t+Wn(o,r)+Gp,i);return n.slice(i,a+zp)}function nU(e,t){var n=e.cellMatrix.scrollableRange.rows,r=Rn(e).top,o=Ht(e.scrollableElement).scrollTop,i=Math.max(Hp(n,o-r-Wp)-zp-1,0),a=Hp(n,t+Wn(o,r)+Wp,i);return n.slice(i,a+zp)}function Hp(e,t,n,r){n===void 0&&(n=0),r===void 0&&(r=e.length-1);var o=n+r>>1;return o<0?0:n>=r?o:t>1;return o<0?0:n>=r?o:t0&&(y=e.columns.slice(-s).reduce(function(I,R){return I+(R.width||Br.DEFAULT_COLUMN_WIDTH)},0));var b=h+y>r*g/100;a=b?0:a,s=b?0:s}if(e.stickyTopRows||e.stickyBottomRows){var S=e.rows.slice(0,c).reduce(function(I,R){return I+(R.height||Br.DEFAULT_ROW_HEIGHT)},0),m=0;d>0&&(m=e.rows.slice(-d).reduce(function(I,R){return I+(R.height||Br.DEFAULT_ROW_HEIGHT)},0));var x=S+m>i*v/100;c=x?0:c,d=x?0:d}}return N(N({},t),{leftStickyColumns:a,topStickyRows:c,rightStickyColumns:s,bottomStickyRows:d})}var rU=function(e,t){var n=this;this.updateState=e,this.pointerEventsController=t,this.pointerDownHandler=function(r){return n.updateState(function(o){return n.pointerEventsController.handlePointerDown(r,o)})},this.keyDownHandler=function(r){return n.updateState(function(o){return o.currentBehavior.handleKeyDown(r,o)})},this.keyUpHandler=function(r){return n.updateState(function(o){return o.currentBehavior.handleKeyUp(r,o)})},this.compositionEndHandler=function(r){return n.updateState(function(o){return o.currentBehavior.handleCompositionEnd(r,o)})},this.copyHandler=function(r){return n.updateState(function(o){return o.currentBehavior.handleCopy(r,o)})},this.pasteHandler=function(r){return n.updateState(function(o){return o.currentBehavior.handlePaste(r,o)})},this.cutHandler=function(r){return n.updateState(function(o){return o.currentBehavior.handleCut(r,o)})},this.blurHandler=function(r){return n.updateState(function(o){var i,a,c;return!((a=(i=r.target)===null||i===void 0?void 0:i.id)===null||a===void 0)&&a.startsWith("react-select-")&&((c=o.hiddenFocusElement)===null||c===void 0||c.focus({preventScroll:!0})),o})},this.windowResizeHandler=function(){return n.updateState(Jf)},this.reactgridRefHandler=function(r){return n.assignElementsRefs(r,Jf)},this.hiddenElementRefHandler=function(r){return n.updateState(function(o){var i;return!((i=o.props)===null||i===void 0)&&i.initialFocusLocation&&r&&r.focus({preventScroll:!0}),o.hiddenFocusElement=r,o})},this.pasteCaptureHandler=function(r){var o,i=r.clipboardData.getData("text/html"),a=new DOMParser().parseFromString(i,"text/html");i&&((o=a.body.firstElementChild)===null||o===void 0?void 0:o.getAttribute("data-reactgrid"))==="reactgrid-content"&&(r.bubbles=!1)},this.scrollHandlerInternal=function(r){try{return n.updateOnScrollChange(r)}catch(o){console.error(o)}},this.scrollHandler=function(){return n.scrollHandlerInternal(Jf)},this.assignElementsRefs=function(r,o){r&&n.updateState(function(i){var a=LX(r);return i.props&&(i=uA(i.props,i)),o(N(N({},i),{reactGridElement:r,scrollableElement:a}))})},this.updateOnScrollChange=function(r){n.updateState(function(o){if(o.disableVirtualScrolling)return o;var i=200,a=Ht(o.scrollableElement),c=a.scrollTop,s=a.scrollLeft,d=zi(o),f=d.width,g=d.height;return f>0&&g>0&&(c>=o.bottomScrollBoudary-i||c<=o.topScrollBoudary+i||s>=o.rightScrollBoudary-i||s<=o.leftScrollBoudary+i)?r(o):o})}},cA=function(){function e(){this.reset()}return e.prototype.reset=function(){return this.cellMatrix=new Br({}),this},e.prototype.setProps=function(t){return this.cellMatrix.props=t,this},e.prototype.fillRowsAndCols=function(t){var n=this;t===void 0&&(t={leftStickyColumns:0,topStickyRows:0,rightStickyColumns:0,bottomStickyRows:0});var r=t.leftStickyColumns,o=t.topStickyRows,i=t.rightStickyColumns,a=t.bottomStickyRows;if(!Array.isArray(this.cellMatrix.props.rows))throw new TypeError('Feeded ReactGrids "rows" property is not an array!');if(!Array.isArray(this.cellMatrix.props.columns))throw new TypeError('Feeded ReactGrids "columns" property is not an array!');return this.cellMatrix.rows=this.cellMatrix.props.rows.reduce(function(c,s,d){var f=n.getTop(d,o,a,c),g=s.height||Br.DEFAULT_ROW_HEIGHT;return c.push(N(N({},s),{top:f,height:g,idx:d,bottom:f+g})),n.cellMatrix.height+=g,n.cellMatrix.rowIndexLookup[s.rowId]=d,c},[]),this.cellMatrix.columns=this.cellMatrix.props.columns.reduce(function(c,s,d){var f,g,v,h,y=n.getLeft(d,r,i,c),b=s.width?s.width<((g=(f=n.cellMatrix.props)===null||f===void 0?void 0:f.minColumnWidth)!==null&&g!==void 0?g:Br.MIN_COLUMN_WIDTH)?(h=(v=n.cellMatrix.props)===null||v===void 0?void 0:v.minColumnWidth)!==null&&h!==void 0?h:Br.MIN_COLUMN_WIDTH:s.width:Br.DEFAULT_COLUMN_WIDTH;return c.push(N(N({},s),{idx:d,left:y,width:b,right:y+b})),n.cellMatrix.width+=b,n.cellMatrix.columnIndexLookup[s.columnId]=d,c},[]),this},e.prototype.setRangesToRenderLookup=function(){var t=this,n=[];this.cellMatrix.rows.forEach(function(o,i){o.cells.forEach(function(a,c){var s="rowspan"in a&&a.rowspan||0,d="colspan"in a&&a.colspan||0,f=s?t.cellMatrix.rows.slice(i,i+s):[t.cellMatrix.rows[i]],g=d?t.cellMatrix.columns.slice(c,c+d):[t.cellMatrix.columns[c]],v=new Mo(f,g);n=Mn(Mn([],n,!0),t.getRangesToRender(v)),t.cellMatrix.spanCellLookup[$p(c,i)]={range:v}})});var r=n.map(function(o){return $p(o.first.column.idx,o.first.row.idx)});return Object.keys(this.cellMatrix.spanCellLookup).forEach(function(o){r.includes(o)||(t.cellMatrix.rangesToRender[o]=t.cellMatrix.spanCellLookup[o])}),this},e.prototype.getRangesToRender=function(t){var n=t.rows.flatMap(function(r){return t.columns.map(function(o){return new Mo([r],[o])})});return n.shift(),n},e.prototype.fillSticky=function(t){t===void 0&&(t={leftStickyColumns:0,topStickyRows:0,rightStickyColumns:0,bottomStickyRows:0});var n=t.leftStickyColumns,r=t.topStickyRows,o=t.rightStickyColumns,i=t.bottomStickyRows;return this.cellMatrix.ranges.stickyLeftRange=new Mo(this.cellMatrix.rows,this.cellMatrix.columns.slice(0,n||0)),this.cellMatrix.ranges.stickyTopRange=new Mo(this.cellMatrix.rows.slice(0,r||0),this.cellMatrix.columns),this.cellMatrix.ranges.stickyRightRange=new Mo(this.cellMatrix.rows,this.cellMatrix.columns.slice(this.getStickyRightFirstIdx(n,o),this.cellMatrix.columns.length)),this.cellMatrix.ranges.stickyBottomRange=new Mo(this.cellMatrix.rows.slice(this.getStickyBottomFirstIdx(r,i),this.cellMatrix.rows.length),this.cellMatrix.columns),this},e.prototype.fillScrollableRange=function(t){t===void 0&&(t={leftStickyColumns:0,topStickyRows:0,rightStickyColumns:0,bottomStickyRows:0});var n=t.leftStickyColumns,r=t.topStickyRows,o=t.rightStickyColumns,i=t.bottomStickyRows;return this.cellMatrix.scrollableRange=this.getScrollableRange(n,r,o,i),this},e.prototype.setEdgeLocations=function(){return this.cellMatrix.first=this.cellMatrix.getLocation(0,0),this.cellMatrix.last=this.cellMatrix.getLocation(this.cellMatrix.rows.length-1,this.cellMatrix.columns.length-1),this},e.prototype.getTop=function(t,n,r,o){return t===0||t===n||t===this.getStickyBottomFirstIdx(n||0,r||0)?0:o[t-1].top+o[t-1].height},e.prototype.getLeft=function(t,n,r,o){return t===0||t===n||t===this.getStickyRightFirstIdx(n||0,r||0)?0:o[t-1].left+o[t-1].width},e.prototype.getScrollableRange=function(t,n,r,o){return new Mo(this.cellMatrix.rows.slice(n||0,this.getStickyBottomFirstIdx(n,o)),this.cellMatrix.columns.slice(t||0,this.getStickyRightFirstIdx(t,r)))},e.prototype.getStickyBottomFirstIdx=function(t,n){var r=n||0,o=t||0,i=this.cellMatrix.props.rows.length;return i-(r+o>i?0:r)},e.prototype.getStickyRightFirstIdx=function(t,n){var r=n||0,o=t||0,i=this.cellMatrix.props.columns.length;return i-(r+o>i?0:r)},e.prototype.getCellMatrix=function(){var t=this.cellMatrix;return this.reset(),t},e}(),Gt=function(e,t,n){var r=e[t];if(r==null)throw new Error("Cell is missing property '".concat(String(t),"'"));if(typeof r!==n)throw new Error("Property '".concat(String(t),"' expected to be of type '").concat(n,"' but is '").concat(typeof r,"'"));return r},oU=function(){function e(){}return e.prototype.getCompatibleCell=function(t){var n=Gt(t,"checked","boolean"),r=n?t.checkedText?t.checkedText:"1":t.uncheckedText?t.uncheckedText:"";return N(N({},t),{checked:!!n,value:n?1:NaN,text:r})},e.prototype.handleKeyDown=function(t,n,r,o,i){return o||n!==ie.SPACE&&n!==ie.ENTER?{cell:t,enableEditMode:!1}:{cell:this.getCompatibleCell(this.toggleCheckboxCell(t)),enableEditMode:!1}},e.prototype.toggleCheckboxCell=function(t){return this.getCompatibleCell(N(N({},t),{checked:!t.checked}))},e.prototype.update=function(t,n){var r=n.type==="checkbox"?n.checked:!!n.value;return this.getCompatibleCell(N(N({},t),{checked:r}))},e.prototype.getClassName=function(t){return t.className?t.className:""},e.prototype.render=function(t,n,r){var o=this;return C.createElement("label",null,C.createElement("input",{className:"rg-input",type:"checkbox",checked:t.checked,onChange:function(i){return r(o.toggleCheckboxCell(t),!0)}}),C.createElement("span",null))},e}(),ii=function(e){return e>=ie.KEY_0&&e<=ie.KEY_Z||y1(e)||e>=ie.MULTIPLY&&e<=ie.DIVIDE||e>=ie.SEMICOLON&&e<=ie.SINGLE_QUOTE||e===ie.SPACE},dA=function(e){return e.match(/^[a-zA-Z0-9]$/)!==null},Il=function(e){return e>=ie.KEY_0&&e<=ie.KEY_9||y1(e)},y1=function(e){return e>=ie.NUMPAD_0&&e<=ie.NUMPAD_9},iU=function(e){return e>=ie.COMMA&&e<=ie.PERIOD||e===ie.DECIMAL||e===ie.SUBTRACT||e===ie.FIREFOX_DASH},Qf=function(e){return e.match(/[\d.,+-]/)!==null},yo=function(e){return e===ie.LEFT_ARROW||e===ie.RIGHT_ARROW||e===ie.UP_ARROW||e===ie.DOWN_ARROW||e===ie.END||e===ie.HOME||e===ie.BACKSPACE||e===ie.DELETE},Mv=function(e,t){t!==""&&(t=fA());var n="".concat(t&&"".concat(t," ")).concat(e);return Date.parse(n)},oc=function(e){return e.toString().padStart(2,"0")},fA=function(){return Vp()||f1()?"1970/01/01":"1970-01-01"},li=function(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=navigator.language||"en-US";return t||n?e.toLocaleUpperCase(r):e.toLocaleLowerCase(r)},lU=function(){function e(){this.wasEscKeyPressed=!1}return e.prototype.getCompatibleCell=function(t){var n=t.date?Gt(t,"date","object"):new Date(NaN),r=t.format||new Intl.DateTimeFormat(window.navigator.language),o=n.getTime(),i=Number.isNaN(o)?"":r.format(n);return N(N({},t),{date:n,value:o,text:i})},e.prototype.handleKeyDown=function(t,n,r,o,i,a,c){return!r&&dA(li(a))?{cell:this.getCompatibleCell(N({},t)),enableEditMode:!0}:{cell:t,enableEditMode:n===ie.POINTER||n===ie.ENTER}},e.prototype.update=function(t,n){return this.getCompatibleCell(N(N({},t),{date:new Date(n.value)}))},e.prototype.getClassName=function(t,n){return t.className?t.className:""},e.prototype.render=function(t,n,r){var o=this;if(!n)return t.text;if(!t.date)return'"cell.date" is not initialized with a date value';var i=oc(t.date.getFullYear()),a=oc(t.date.getMonth()+1),c=oc(t.date.getDate());return C.createElement("input",{className:"rg-input",ref:function(s){s&&s.focus()},type:"date",defaultValue:"".concat(i,"-").concat(a,"-").concat(c),onChange:function(s){if(s.currentTarget.value){var d=s.currentTarget.value.split("-").map(function(h){return parseInt(h)}),f=d[0],g=d[1],v=d[2];r(o.getCompatibleCell(N(N({},t),{date:new Date(f,g-1,v)})),!1)}},onBlur:function(s){if(s.currentTarget.value){var d=s.currentTarget.value.split("-").map(function(h){return parseInt(h)}),f=d[0],g=d[1],v=d[2];r(o.getCompatibleCell(N(N({},t),{date:new Date(f,g-1,v)})),!o.wasEscKeyPressed),o.wasEscKeyPressed=!1}},onKeyDown:function(s){(Il(s.keyCode)||yo(s.keyCode)||s.keyCode===ie.COMMA||s.keyCode===ie.PERIOD||(s.ctrlKey||s.metaKey)&&s.keyCode===ie.KEY_A)&&s.stopPropagation(),Il(s.keyCode)||yo(s.keyCode)||s.keyCode===ie.COMMA||s.keyCode===ie.PERIOD||s.preventDefault(),s.keyCode===ie.ESCAPE&&(o.wasEscKeyPressed=!0)},onCopy:function(s){return s.stopPropagation()},onCut:function(s){return s.stopPropagation()},onPaste:function(s){return s.stopPropagation()},onPointerDown:function(s){return s.stopPropagation()}})},e}(),aU=function(){function e(){this.wasEscKeyPressed=!1}return e.prototype.getCompatibleCell=function(t){var n=Gt(t,"text","string"),r=parseFloat(n);return N(N({},t),{text:n,value:r})},e.prototype.handleKeyDown=function(t,n,r,o,i,a,c){var s=li(a,o,c);return r||i||!ii(n)||o&&n===ie.SPACE?{cell:t,enableEditMode:n===ie.POINTER||n===ie.ENTER}:{cell:N(N({},t),{text:s}),enableEditMode:!0}},e.prototype.handleCompositionEnd=function(t,n){return{cell:N(N({},t),{text:n}),enableEditMode:!0}},e.prototype.update=function(t,n){return this.getCompatibleCell(N(N({},t),{text:n.text}))},e.prototype.getClassName=function(t,n){return!t.validator||t.validator(t.text)?"valid":"rg-invalid"},e.prototype.render=function(t,n,r){var o=this;if(!n){var i=!(!t.validator||t.validator(t.text))&&t.errorMessage?t.errorMessage:t.text;return t.renderer?t.renderer(i):i}return C.createElement("input",{className:"rg-input",ref:function(a){a&&a.focus()},onChange:function(a){return r(o.getCompatibleCell(N(N({},t),{text:a.currentTarget.value})),!1)},onBlur:function(a){r(o.getCompatibleCell(N(N({},t),{text:a.currentTarget.value})),!o.wasEscKeyPressed),o.wasEscKeyPressed=!1},onKeyDown:function(a){(ii(a.keyCode)||yo(a.keyCode))&&a.stopPropagation(),a.keyCode===ie.ESCAPE&&(o.wasEscKeyPressed=!0)},defaultValue:t.text,onCopy:function(a){return a.stopPropagation()},onCut:function(a){return a.stopPropagation()},onPaste:function(a){return a.stopPropagation()},onPointerDown:function(a){return a.stopPropagation()}})},e}(),sU=function(){function e(){this.wasEscKeyPressed=!1}return e.prototype.getCompatibleCell=function(t){var n=Gt(t,"text","string"),r=!1;try{r=Gt(t,"isExpanded","boolean")}catch{r=!0}var o=-1;try{o=Gt(t,"indent","number")}catch{o=0}var i=!1;try{i=Gt(t,"hasChildren","boolean")}catch{i=!1}var a=parseFloat(n);return N(N({},t),{text:n,value:a,isExpanded:r,indent:o,hasChildren:i})},e.prototype.update=function(t,n){return this.getCompatibleCell(N(N({},t),{isExpanded:n.isExpanded,text:n.text}))},e.prototype.handleKeyDown=function(t,n,r,o,i,a,c){var s=n===ie.POINTER||n===ie.ENTER,d=N({},t),f=li(a,o,c);return n!==ie.SPACE||d.isExpanded===void 0||o?r||i||!ii(n)||o&&n===ie.SPACE||(d.text=f,s=!0):d.isExpanded=!d.isExpanded,{cell:d,enableEditMode:s}},e.prototype.handleCompositionEnd=function(t,n){return{cell:N(N({},t),{text:n}),enableEditMode:!0}},e.prototype.getClassName=function(t,n){var r,o=t.hasChildren?t.isExpanded?"expanded":"collapsed":"",i=(r=t.className)!==null&&r!==void 0?r:"";return"".concat(o," ").concat(i)},e.prototype.getStyle=function(t,n){var r,o=(r=t.indent)!==null&&r!==void 0?r:0;return{paddingLeft:"calc(".concat(1.4*o,"em + 2px)")}},e.prototype.render=function(t,n,r){var o=this;return n?C.createElement("input",{className:"rg-input",ref:function(i){i&&(i.focus(),i.setSelectionRange(i.value.length,i.value.length))},defaultValue:t.text,onChange:function(i){return r(o.getCompatibleCell(N(N({},t),{text:i.currentTarget.value})),!1)},onBlur:function(i){r(o.getCompatibleCell(N(N({},t),{text:i.currentTarget.value})),!o.wasEscKeyPressed),o.wasEscKeyPressed=!1},onCopy:function(i){return i.stopPropagation()},onCut:function(i){return i.stopPropagation()},onPaste:function(i){return i.stopPropagation()},onPointerDown:function(i){return i.stopPropagation()},onKeyDown:function(i){(ii(i.keyCode)||yo(i.keyCode))&&i.stopPropagation(),i.keyCode===ie.ESCAPE&&(o.wasEscKeyPressed=!0)}}):C.createElement(C.Fragment,null,t.hasChildren?C.createElement("div",{className:"chevron",onPointerDown:function(i){i.stopPropagation(),r(o.getCompatibleCell(N(N({},t),{isExpanded:!t.isExpanded})),!0)}},C.createElement("span",{className:"icon"},"❯")):C.createElement("div",{className:"no-child"}),t.text)},e}(),uU=function(){function e(){this.isFocusable=function(t){return!1},this.getStyle=function(t){return{background:"rgba(128, 128, 128, 0.1)"}}}return e.prototype.getCompatibleCell=function(t){var n=Gt(t,"text","string"),r=parseFloat(n);return N(N({},t),{text:n,value:r})},e.prototype.render=function(t,n,r){return t.text},e.prototype.getClassName=function(t,n){return t.className?t.className:""},e}(),cU=function(){return navigator.language||"en-US"};function _s(e,t){if(t===void 0&&(t=cU()),!e.trim())return NaN;var n=function(a){var c=Intl.NumberFormat(a).format(123456.789);return{thousandsSeparator:c.split("123")[1][0],decimalSeparator:c.split("123")[1][4]}}(t),r=n.thousandsSeparator,o=n.decimalSeparator,i=e.replace(/\u00A0/g," ").replace(new RegExp("[".concat(r,"\\s]"),"g"),"").replace(new RegExp("\\".concat(o),"g"),".").replace(/^(?!-)\D+|\D+$/g,"");return i===null||i.trim().length===0?NaN:Number(i)}var dU=function(){function e(){this.wasEscKeyPressed=!1,this.getTextFromCharCode=function(t){switch(t.charCodeAt(0)){case ie.DASH:case ie.FIREFOX_DASH:case ie.SUBTRACT:return"-";case ie.COMMA:return",";case ie.PERIOD:case ie.DECIMAL:return".";default:return t}}}return e.prototype.getCompatibleCell=function(t){var n;try{n=Gt(t,"value","number")}catch{n=NaN}var r=t.format||new Intl.NumberFormat(window.navigator.language),o=t.nanToZero&&Number.isNaN(n)?0:n,i=Number.isNaN(o)||t.hideZero&&o===0?"":r.format(o);return N(N({},t),{value:o,text:i})},e.prototype.handleKeyDown=function(t,n,r,o,i,a,c){y1(n)&&(n-=48);var s=li(a);if(!r&&Qf(s)){var d=Number(s);return Number.isNaN(d)&&Qf(s)?{cell:N(N({},this.getCompatibleCell(N(N({},t),{value:d}))),{text:s}),enableEditMode:!0}:{cell:this.getCompatibleCell(N(N({},t),{value:d})),enableEditMode:!0}}return{cell:t,enableEditMode:n===ie.POINTER||n===ie.ENTER}},e.prototype.update=function(t,n){return this.getCompatibleCell(N(N({},t),{value:n.value}))},e.prototype.getClassName=function(t,n){var r,o,i=(o=(r=t.validator)===null||r===void 0?void 0:r.call(t,t.value))===null||o===void 0||o,a=t.className||"";return"".concat(i?"":"rg-invalid"," ").concat(a)},e.prototype.render=function(t,n,r){var o,i,a=this;if(!n)return!((i=(o=t.validator)===null||o===void 0?void 0:o.call(t,t.value))===null||i===void 0||i)&&t.errorMessage?t.errorMessage:t.text;var c=t.format?t.format.resolvedOptions().locale:window.navigator.languages[0],s=new Intl.NumberFormat(c,{useGrouping:!1,maximumFractionDigits:20});return C.createElement("input",{className:"rg-input",inputMode:"decimal",ref:function(d){d&&(d.focus(),d.setSelectionRange(d.value.length,d.value.length))},defaultValue:Number.isNaN(t.value)?this.getTextFromCharCode(t.text):s.format(t.value),onChange:function(d){return r(a.getCompatibleCell(N(N({},t),{value:_s(d.currentTarget.value)})),!1)},onBlur:function(d){r(a.getCompatibleCell(N(N({},t),{value:_s(d.currentTarget.value)})),!a.wasEscKeyPressed),a.wasEscKeyPressed=!1},onKeyDown:function(d){(Il(d.keyCode)||yo(d.keyCode)||iU(d.keyCode)||(d.ctrlKey||d.metaKey)&&d.keyCode===ie.KEY_A)&&d.stopPropagation(),Il(d.keyCode)||yo(d.keyCode)||Qf(li(d.key))||d.preventDefault(),d.keyCode===ie.ESCAPE&&(a.wasEscKeyPressed=!0)},onCopy:function(d){return d.stopPropagation()},onCut:function(d){return d.stopPropagation()},onPaste:function(d){return d.stopPropagation()},onPointerDown:function(d){return d.stopPropagation()}})},e}(),fU=function(){function e(){this.wasEscKeyPressed=!1}return e.prototype.getCompatibleCell=function(t){var n,r=Gt(t,"text","string");try{n=Gt(t,"placeholder","string")}catch{n=""}var o=parseFloat(r);return N(N({},t),{text:r,value:o,placeholder:n})},e.prototype.update=function(t,n){return this.getCompatibleCell(N(N({},t),{text:n.text,placeholder:n.placeholder}))},e.prototype.handleKeyDown=function(t,n,r,o,i,a,c){var s=li(a,o,c);return r||i||!ii(n)||o&&n===ie.SPACE?{cell:t,enableEditMode:n===ie.POINTER||n===ie.ENTER}:{cell:this.getCompatibleCell(N(N({},t),{text:s})),enableEditMode:!0}},e.prototype.handleCompositionEnd=function(t,n){return{cell:N(N({},t),{text:n}),enableEditMode:!0}},e.prototype.getClassName=function(t,n){var r=!t.validator||t.validator(t.text),o=t.className?t.className:"";return"".concat(r?"valid":"rg-invalid"," ").concat(t.placeholder&&t.text===""?"placeholder":""," ").concat(o)},e.prototype.render=function(t,n,r){var o=this;if(!n){var i=!t.validator||t.validator(t.text),a=t.text||t.placeholder||"",c=!i&&t.errorMessage?t.errorMessage:a;return t.renderer?t.renderer(c):c}return C.createElement("input",{className:"rg-input",ref:function(s){s&&(s.focus(),s.setSelectionRange(s.value.length,s.value.length))},defaultValue:t.text,onChange:function(s){return r(o.getCompatibleCell(N(N({},t),{text:s.currentTarget.value})),!1)},onBlur:function(s){r(o.getCompatibleCell(N(N({},t),{text:s.currentTarget.value})),!o.wasEscKeyPressed),o.wasEscKeyPressed=!1},onCopy:function(s){return s.stopPropagation()},onCut:function(s){return s.stopPropagation()},onPaste:function(s){return s.stopPropagation()},onPointerDown:function(s){return s.stopPropagation()},placeholder:t.placeholder,onKeyDown:function(s){(ii(s.keyCode)||yo(s.keyCode))&&s.stopPropagation(),s.keyCode===ie.ESCAPE&&(o.wasEscKeyPressed=!0)}})},e}(),pU=function(){function e(){this.wasEscKeyPressed=!1}return e.prototype.getCompatibleCell=function(t){var n=t.time?Gt(t,"time","object"):new Date(NaN),r=t.format||new Intl.DateTimeFormat(window.navigator.language),o=n.getTime()%e.dayInMillis,i=Number.isNaN(o)?"":r.format(n);return N(N({},t),{time:n,value:o,text:i})},e.prototype.handleKeyDown=function(t,n,r,o,i,a){return!r&&Qf(li(a))?{cell:this.getCompatibleCell(N({},t)),enableEditMode:!0}:{cell:t,enableEditMode:n===ie.POINTER||n===ie.ENTER}},e.prototype.update=function(t,n){var r=Mv(n.text);return n.text===""||Number.isNaN(r)?this.getCompatibleCell(N(N({},t),{time:new Date(n.value)})):this.getCompatibleCell(N(N({},t),{time:new Date(r)}))},e.prototype.getClassName=function(t,n){return t.className?t.className:""},e.prototype.render=function(t,n,r){var o=this;if(!n)return t.text;if(!t.time)return'"cell.time" is not initialized with a time value';var i=oc(t.time.getHours()),a=oc(t.time.getMinutes());return C.createElement("input",{className:"rg-input",ref:function(c){c&&c.focus()},type:"time",defaultValue:"".concat(i,":").concat(a),onChange:function(c){var s=Mv(c.currentTarget.value);Number.isNaN(s)||r(o.getCompatibleCell(N(N({},t),{time:new Date(s)})),!1)},onBlur:function(c){var s=Mv(c.currentTarget.value);Number.isNaN(s)||(r(o.getCompatibleCell(N(N({},t),{time:new Date(s)})),!o.wasEscKeyPressed),o.wasEscKeyPressed=!1)},onKeyDown:function(c){(Il(c.keyCode)||yo(c.keyCode)||c.keyCode===ie.COMMA||c.keyCode===ie.PERIOD||(c.ctrlKey||c.metaKey)&&c.keyCode===ie.KEY_A)&&c.stopPropagation(),Il(c.keyCode)||yo(c.keyCode)||c.keyCode===ie.COMMA||c.keyCode===ie.PERIOD||c.preventDefault(),c.keyCode===ie.ESCAPE&&(o.wasEscKeyPressed=!0)},onCopy:function(c){return c.stopPropagation()},onCut:function(c){return c.stopPropagation()},onPaste:function(c){return c.stopPropagation()},onPointerDown:function(c){return c.stopPropagation()}})},e.dayInMillis=864e5,e.defaultDate=fA(),e}();function na(e){return na=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},na(e)}function pA(e){var t=function(n,r){if(na(n)!="object"||!n)return n;var o=n[Symbol.toPrimitive];if(o!==void 0){var i=o.call(n,r||"default");if(na(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(n)}(e,"string");return na(t)=="symbol"?t:t+""}function Vu(e,t,n){return(t=pA(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function WS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Ue(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)continue;s[d]=a[d]}return s}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var gU=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function Qe(){return Qe=Object.assign?Object.assign.bind():function(e){for(var t=1;t0?Dn(Us,--Sr):0,Ns--,gn===10&&(Ns=1,Eh--),gn}function zr(){return gn=Sr2||Fc(gn)>3?"":" "}function wU(e,t){for(;--t&&zr()&&!(gn<48||gn>102||gn>57&&gn<65||gn>70&&gn<97););return ed(e,qf()+(t<6&&ri()==32&&zr()==32))}function hy(e){for(;zr();)switch(gn){case e:return Sr;case 34:case 39:e!==34&&e!==39&&hy(gn);break;case 40:e===41&&hy(e);break;case 92:zr()}return Sr}function CU(e,t){for(;zr()&&e+gn!==57&&(e+gn!==84||ri()!==47););return"/*"+ed(t,Sr-1)+"*"+Rh(e===47?e:zr())}function IU(e){for(;!Fc(ri());)zr();return ed(e,Sr)}function HS(e){return xA(tp("",null,null,null,[""],e=bA(e),0,[0],e))}function tp(e,t,n,r,o,i,a,c,s){for(var d=0,f=0,g=a,v=0,h=0,y=0,b=1,S=1,m=1,x=0,I="",R=o,E=i,P=r,A=I;S;)switch(y=x,x=zr()){case 40:if(y!=108&&Dn(A,g-1)==58){gy(A+=Pt(ep(x),"&","&\f"),"&\f")!=-1&&(m=-1);break}case 34:case 39:case 91:A+=ep(x);break;case 9:case 10:case 13:case 32:A+=xU(y);break;case 92:A+=wU(qf()-1,7);continue;case 47:switch(ri()){case 42:case 47:mf(SU(CU(zr(),qf()),t,n),s);break;default:A+="/"}break;case 123*b:c[d++]=Zo(A)*m;case 125*b:case 59:case 0:switch(x){case 0:case 125:S=0;case 59+f:m==-1&&(A=Pt(A,/\f/g,"")),h>0&&Zo(A)-g&&mf(h>32?XS(A+";",r,n,g-1):XS(Pt(A," ","")+";",r,n,g-2),s);break;case 59:A+=";";default:if(mf(P=jS(A,t,n,d,f,o,c,I,R=[],E=[],g),i),x===123)if(f===0)tp(A,t,P,P,R,i,g,c,E);else switch(v===99&&Dn(A,3)===110?100:v){case 100:case 108:case 109:case 115:tp(e,P,P,r&&mf(jS(e,P,P,0,0,o,c,I,o,R=[],g),E),o,E,g,c,r?R:E);break;default:tp(A,P,P,P,[""],E,0,c,E)}}d=f=h=0,b=m=1,I=A="",g=a;break;case 58:g=1+Zo(A),h=y;default:if(b<1){if(x==123)--b;else if(x==125&&b++==0&&bU()==125)continue}switch(A+=Rh(x),x*b){case 38:m=f>0?1:(A+="\f",-1);break;case 44:c[d++]=(Zo(A)-1)*m,m=1;break;case 64:ri()===45&&(A+=ep(zr())),v=ri(),f=g=Zo(I=A+=IU(qf())),x++;break;case 45:y===45&&Zo(A)==2&&(b=0)}}return i}function jS(e,t,n,r,o,i,a,c,s,d,f){for(var g=o-1,v=o===0?i:[""],h=I1(v),y=0,b=0,S=0;y0?v[m]+" "+x:Pt(x,/&\f/g,v[m])))&&(s[S++]=I);return Ph(e,t,n,o===0?w1:c,s,d,f)}function SU(e,t,n){return Ph(e,t,n,x1,Rh(gn),Nc(e,2,-2),0)}function XS(e,t,n,r){return Ph(e,t,n,C1,Nc(e,0,r),Nc(e,r+1,-1),r)}function ra(e,t){for(var n="",r=I1(e),o=0;o-1},KS=function(e){return e.type.charCodeAt(1)===105&&e.type.charCodeAt(0)===64},JS=function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},MU=function(e,t,n){KS(e)&&(e.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),JS(e)):function(r,o){for(var i=r-1;i>=0;i--)if(!KS(o[i]))return!0;return!1}(t,n)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),JS(e)))};function CA(e,t){switch(function(n,r){return 45^Dn(n,0)?(((r<<2^Dn(n,0))<<2^Dn(n,1))<<2^Dn(n,2))<<2^Dn(n,3):0}(e,t)){case 5103:return Rt+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Rt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Rt+e+zS+e+Un+e+e;case 6828:case 4268:return Rt+e+Un+e+e;case 6165:return Rt+e+Un+"flex-"+e+e;case 5187:return Rt+e+Pt(e,/(\w+).+(:[^]+)/,Rt+"box-$1$2"+Un+"flex-$1$2")+e;case 5443:return Rt+e+Un+"flex-item-"+Pt(e,/flex-|-self/,"")+e;case 4675:return Rt+e+Un+"flex-line-pack"+Pt(e,/align-content|flex-|-self/,"")+e;case 5548:return Rt+e+Un+Pt(e,"shrink","negative")+e;case 5292:return Rt+e+Un+Pt(e,"basis","preferred-size")+e;case 6060:return Rt+"box-"+Pt(e,"-grow","")+Rt+e+Un+Pt(e,"grow","positive")+e;case 4554:return Rt+Pt(e,/([^-])(transform)/g,"$1"+Rt+"$2")+e;case 6187:return Pt(Pt(Pt(e,/(zoom-|grab)/,Rt+"$1"),/(image-set)/,Rt+"$1"),e,"")+e;case 5495:case 3959:return Pt(e,/(image-set\([^]*)/,Rt+"$1$`$1");case 4968:return Pt(Pt(e,/(.+:)(flex-)?(.*)/,Rt+"box-pack:$3"+Un+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Rt+e+e;case 4095:case 3583:case 4068:case 2532:return Pt(e,/(.+)-inline(.+)/,Rt+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Zo(e)-1-t>6)switch(Dn(e,t+1)){case 109:if(Dn(e,t+4)!==45)break;case 102:return Pt(e,/(.+:)(.+)-([^]+)/,"$1"+Rt+"$2-$3$1"+zS+(Dn(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~gy(e,"stretch")?CA(Pt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Dn(e,t+1)!==115)break;case 6444:switch(Dn(e,Zo(e)-3-(~gy(e,"!important")&&10))){case 107:return Pt(e,":",":"+Rt)+e;case 101:return Pt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Rt+(Dn(e,14)===45?"inline-":"")+"box$3$1"+Rt+"$2$3$1"+Un+"$2box$3")+e}break;case 5936:switch(Dn(e,t+11)){case 114:return Rt+e+Un+Pt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Rt+e+Un+Pt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Rt+e+Un+Pt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Rt+e+Un+e+e}return e}var QS,vf,np=typeof document<"u",OU=np?void 0:(QS=function(){return wA(function(){var e={};return function(t){return e[t]}})},vf=new WeakMap,function(e){if(vf.has(e))return vf.get(e);var t=QS(e);return vf.set(e,t),t}),TU=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case C1:e.return=CA(e.value,e.length);break;case mA:return ra([Mu(e,{value:Pt(e.value,"@","@"+Rt)})],r);case w1:if(e.length)return function(o,i){return o.map(i).join("")}(e.props,function(o){switch(function(i,a){return(i=a.exec(i))?i[0]:i}(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ra([Mu(e,{props:[Pt(o,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return ra([Mu(e,{props:[Pt(o,/:(plac\w+)/,":"+Rt+"input-$1")]}),Mu(e,{props:[Pt(o,/:(plac\w+)/,":-moz-$1")]}),Mu(e,{props:[Pt(o,/:(plac\w+)/,Un+"input-$1")]})],r)}return""})}}],IA=function(e){var t=e.key;if(!t)throw new Error(`You have to configure \`key\` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache. +If multiple caches share the same key they might "fight" for each other's style elements.`);if(np&&t==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(m){m.getAttribute("data-emotion").indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var r=e.stylisPlugins||TU;if(/[^a-z-]/.test(t))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+t+'" was passed');var o,i,a={},c=[];np&&(o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(m){for(var x=m.getAttribute("data-emotion").split(" "),I=1;I=0;A--){var O=P[A];if(O.line css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");break;case"string":var c=[],s=n.replace(EA,function(f,g,v){var h="animation"+c.length;return c.push("const "+h+" = keyframes`"+v.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+h+"}"});c.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(c,["`"+s+"`"]).join(` +`)+` + +You should wrap it with \`css\` like this: + +css\``+s+"`")}if(t==null)return n;var d=t[n];return d!==void 0?d:n}var PA,Yo,iR=/label:\s*([^\s;\n{]+)\s*(;|$)/g;PA=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g;var Dc=function(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,o="";Yo=void 0;var i,a=e[0];a==null||a.raw===void 0?(r=!1,o+=ic(n,t,a)):(a[0]===void 0&&console.error(tR),o+=a[0]);for(var c=1;c=4;++y,b-=4)v=1540483477*(65535&(v=255&g.charCodeAt(y)|(255&g.charCodeAt(++y))<<8|(255&g.charCodeAt(++y))<<16|(255&g.charCodeAt(++y))<<24))+(59797*(v>>>16)<<16),h=1540483477*(65535&(v^=v>>>24))+(59797*(v>>>16)<<16)^1540483477*(65535&h)+(59797*(h>>>16)<<16);switch(b){case 3:h^=(255&g.charCodeAt(y+2))<<16;case 2:h^=(255&g.charCodeAt(y+1))<<8;case 1:h=1540483477*(65535&(h^=255&g.charCodeAt(y)))+(59797*(h>>>16)<<16)}return(((h=1540483477*(65535&(h^=h>>>13))+(59797*(h>>>16)<<16))^h>>>15)>>>0).toString(36)}(o)+d;return{name:f,styles:o,map:i,next:Yo,toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}}},GU=typeof document<"u",zU=function(e){return e()},kA=!!C.useInsertionEffect&&C.useInsertionEffect,AA=GU&&kA||zU,lR=kA||C.useLayoutEffect,xs=typeof document<"u",P1={}.hasOwnProperty,Bc=C.createContext(typeof HTMLElement<"u"?IA({key:"css"}):null);Bc.displayName="EmotionCacheContext",Bc.Provider;var kh=function(e){return C.forwardRef(function(t,n){var r=C.useContext(Bc);return e(t,r,n)})};xs||(kh=function(e){return function(t){var n=C.useContext(Bc);return n===null?(n=IA({key:"css"}),C.createElement(Bc.Provider,{value:n},e(t,n))):e(t,n)}});var Ah=C.createContext({});Ah.displayName="EmotionThemeContext";var HU=function(e){var t=e.split(".");return t[t.length-1]},jU=function(e){var t=/^\s+at\s+([A-Za-z0-9$.]+)\s/.exec(e);return t||(t=/^([A-Za-z0-9$.]+)@/.exec(e))?HU(t[1]):void 0},XU=new Set(["renderWithHooks","processChild","finishClassComponent","renderToString"]),UU=function(e){return e.replace(/\$/g,"-")},vy="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",yy="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",ZU=function(e,t){if(typeof t.css=="string"&&t.css.indexOf(":")!==-1)throw new Error("Strings are not allowed as css prop values, please wrap it in a css template literal from '@emotion/react' like this: css`"+t.css+"`");var n={};for(var r in t)P1.call(t,r)&&(n[r]=t[r]);if(n[vy]=e,t.css&&(typeof t.css!="object"||typeof t.css.name!="string"||t.css.name.indexOf("-")===-1)){var o=function(i){if(i)for(var a=i.split(` +`),c=0;c component."),a="",i)i[c]&&c&&(a&&(a+=" "),a+=c);break;default:a=i}a&&(o&&(o+=" "),o+=a)}}return o},qU=function(e){var t,n=e.cache,r=e.serializedArr,o=AA(function(){for(var i="",a=0;a({x:e,y:e});function oZ(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function dR(e){return TA(e)?(e.nodeName||"").toLowerCase():"#document"}function Sl(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function OA(e){var t;return(t=(TA(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function TA(e){return e instanceof Node||e instanceof Sl(e).Node}function iZ(e){return e instanceof Element||e instanceof Sl(e).Element}function xy(e){return e instanceof HTMLElement||e instanceof Sl(e).HTMLElement}function fR(e){return typeof ShadowRoot<"u"&&(e instanceof ShadowRoot||e instanceof Sl(e).ShadowRoot)}function LA(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=A1(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function A1(e){return Sl(e).getComputedStyle(e)}function _A(e){const t=function(n){if(dR(n)==="html")return n;const r=n.assignedSlot||n.parentNode||fR(n)&&n.host||OA(n);return fR(r)?r.host:r}(e);return function(n){return["html","body","#document"].includes(dR(n))}(t)?e.ownerDocument?e.ownerDocument.body:e.body:xy(t)&&LA(t)?t:_A(t)}function Zp(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=_A(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),a=Sl(o);return i?t.concat(a,a.visualViewport||[],LA(o)?o:[],a.frameElement&&n?Zp(a.frameElement):[]):t.concat(o,Zp(o,[],n))}function M1(e){return iZ(e)?e:e.contextElement}function pR(e){const t=M1(e);if(!xy(t))return by(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=function(s){const d=A1(s);let f=parseFloat(d.width)||0,g=parseFloat(d.height)||0;const v=xy(s),h=v?s.offsetWidth:f,y=v?s.offsetHeight:g,b=yf(f)!==h||yf(g)!==y;return b&&(f=h,g=y),{width:f,height:g,$:b}}(t);let a=(i?yf(n.width):n.width)/r,c=(i?yf(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),c&&Number.isFinite(c)||(c=1),{x:a,y:c}}function gR(e,t,n,r){t===void 0&&(t=!1);const o=e.getBoundingClientRect(),i=M1(e);let a=by(1);t&&(a=pR(e));const c=by(0);let s=(o.left+c.x)/a.x,d=(o.top+c.y)/a.y,f=o.width/a.x,g=o.height/a.y;if(i){const v=Sl(i),h=r;let y=v,b=y.frameElement;for(;b&&r&&h!==y;){const S=pR(b),m=b.getBoundingClientRect(),x=A1(b),I=m.left+(b.clientLeft+parseFloat(x.paddingLeft))*S.x,R=m.top+(b.clientTop+parseFloat(x.paddingTop))*S.y;s*=S.x,d*=S.y,f*=S.x,g*=S.y,s+=I,d+=R,y=Sl(b),b=y.frameElement}}return oZ({width:f,height:g,x:s,y:d})}function lZ(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:s=!1}=r,d=M1(e),f=o||i?[...d?Zp(d):[],...Zp(t)]:[];f.forEach(S=>{o&&S.addEventListener("scroll",n,{passive:!0}),i&&S.addEventListener("resize",n)});const g=d&&c?function(S,m){let x,I=null;const R=OA(S);function E(){var P;clearTimeout(x),(P=I)==null||P.disconnect(),I=null}return function P(A,O){A===void 0&&(A=!1),O===void 0&&(O=1),E();const{left:W,top:$,width:j,height:V}=S.getBoundingClientRect();if(A||m(),!j||!V)return;const U={rootMargin:-bf($)+"px "+-bf(R.clientWidth-(W+j))+"px "+-bf(R.clientHeight-($+V))+"px "+-bf(W)+"px",threshold:rZ(0,nZ(1,O))||1};let Z=!0;function _(F){const J=F[0].intersectionRatio;if(J!==O){if(!Z)return P();J?P(!1,J):x=setTimeout(()=>{P(!1,1e-7)},1e3)}Z=!1}try{I=new IntersectionObserver(_,{...U,root:R.ownerDocument})}catch{I=new IntersectionObserver(_,U)}I.observe(S)}(!0),E}(d,n):null;let v,h=-1,y=null;a&&(y=new ResizeObserver(S=>{let[m]=S;m&&m.target===d&&y&&(y.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var x;(x=y)==null||x.observe(t)})),n()}),d&&!s&&y.observe(d),y.observe(t));let b=s?gR(e):null;return s&&function S(){const m=gR(e);!b||m.x===b.x&&m.y===b.y&&m.width===b.width&&m.height===b.height||n(),b=m,v=requestAnimationFrame(S)}(),n(),()=>{var S;f.forEach(m=>{o&&m.removeEventListener("scroll",n),i&&m.removeEventListener("resize",n)}),g==null||g(),(S=y)==null||S.disconnect(),y=null,s&&cancelAnimationFrame(v)}}var wy=typeof document<"u"?C.useLayoutEffect:C.useEffect,aZ=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],Yp=function(){};function sZ(e,t){return t?t[0]==="-"?e+t:e+"__"+t:e}function uZ(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o-1}function NA(e){return Mh(e)?window.pageYOffset:e.scrollTop}function Kp(e,t){Mh(e)?window.scrollTo(0,t):e.scrollTop=t}function xf(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Yp,o=NA(e),i=t-o,a=0;(function c(){var s,d=i*((s=(s=a+=10)/n-1)*s*s+1)+o;Kp(e,d),an.bottom?Kp(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+o,e.scrollHeight)):r.top-o=y)return{placement:"bottom",maxHeight:t};if(O>=y&&!a)return i&&xf(s,W,j),{placement:"bottom",maxHeight:t};if(!a&&O>=r||a&&P>=r)return i&&xf(s,W,j),{placement:"bottom",maxHeight:a?P-I:O-I};if(o==="auto"||a){var V=t,U=a?E:A;return U>=r&&(V=Math.min(U-I-c,t)),{placement:"top",maxHeight:V}}if(o==="bottom")return i&&Kp(s,W),{placement:"bottom",maxHeight:t};break;case"top":if(E>=y)return{placement:"top",maxHeight:t};if(A>=y&&!a)return i&&xf(s,$,j),{placement:"top",maxHeight:t};if(!a&&A>=r||a&&E>=r){var Z=t;return(!a&&A>=r||a&&E>=r)&&(Z=a?E-R:A-R),i&&xf(s,$,j),{placement:"top",maxHeight:Z}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return d}var bR,DA=function(e){return e==="auto"?"bottom":e},BA=C.createContext(null),mZ=function(e){var t=e.children,n=e.minMenuHeight,r=e.maxMenuHeight,o=e.menuPlacement,i=e.menuPosition,a=e.menuShouldScrollIntoView,c=e.theme,s=(C.useContext(BA)||{}).setPortalPlacement,d=C.useRef(null),f=Ti(C.useState(r),2),g=f[0],v=f[1],h=Ti(C.useState(null),2),y=h[0],b=h[1],S=c.spacing.controlHeight;return wy(function(){var m=d.current;if(m){var x=i==="fixed",I=hZ({maxHeight:r,menuEl:m,minHeight:n,placement:o,shouldScroll:a&&!x,isFixedPosition:x,controlHeight:S});v(I.maxHeight),b(I.placement),s==null||s(I.placement)}},[r,o,i,a,n,s,S]),t({ref:d,placerProps:Ue(Ue({},e),{},{placement:y||DA(o),maxHeight:g})})},vZ=function(e){var t=e.children,n=e.innerRef,r=e.innerProps;return je("div",Qe({},rn(e,"menu",{menu:!0}),{ref:n},r),t)},$A=function(e,t){var n=e.theme,r=n.spacing.baseUnit,o=n.colors;return Ue({textAlign:"center"},t?{}:{color:o.neutral40,padding:"".concat(2*r,"px ").concat(3*r,"px")})},yZ=$A,bZ=$A,xZ=["size"],wZ=["innerProps","isRtl","size"],Tv,Lv,CZ={name:"tj5bde-Svg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;label:Svg;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgUmVhY3ROb2RlIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsganN4LCBrZXlmcmFtZXMgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmltcG9ydCB7XG4gIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lLFxuICBDU1NPYmplY3RXaXRoTGFiZWwsXG4gIEdyb3VwQmFzZSxcbn0gZnJvbSAnLi4vdHlwZXMnO1xuaW1wb3J0IHsgZ2V0U3R5bGVQcm9wcyB9IGZyb20gJy4uL3V0aWxzJztcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBEcm9wZG93biAmIENsZWFyIEljb25zXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgU3ZnID0gKHtcbiAgc2l6ZSxcbiAgLi4ucHJvcHNcbn06IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3ZnJ10gJiB7IHNpemU6IG51bWJlciB9KSA9PiAoXG4gIDxzdmdcbiAgICBoZWlnaHQ9e3NpemV9XG4gICAgd2lkdGg9e3NpemV9XG4gICAgdmlld0JveD1cIjAgMCAyMCAyMFwiXG4gICAgYXJpYS1oaWRkZW49XCJ0cnVlXCJcbiAgICBmb2N1c2FibGU9XCJmYWxzZVwiXG4gICAgY3NzPXt7XG4gICAgICBkaXNwbGF5OiAnaW5saW5lLWJsb2NrJyxcbiAgICAgIGZpbGw6ICdjdXJyZW50Q29sb3InLFxuICAgICAgbGluZUhlaWdodDogMSxcbiAgICAgIHN0cm9rZTogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBzdHJva2VXaWR0aDogMCxcbiAgICB9fVxuICAgIHsuLi5wcm9wc31cbiAgLz5cbik7XG5cbmV4cG9ydCB0eXBlIENyb3NzSWNvblByb3BzID0gSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZT86IG51bWJlciB9O1xuZXhwb3J0IGNvbnN0IENyb3NzSWNvbiA9IChwcm9wczogQ3Jvc3NJY29uUHJvcHMpID0+IChcbiAgPFN2ZyBzaXplPXsyMH0gey4uLnByb3BzfT5cbiAgICA8cGF0aCBkPVwiTTE0LjM0OCAxNC44NDljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDBsLTIuNjUxLTMuMDMwLTIuNjUxIDMuMDI5Yy0wLjQ2OSAwLjQ2OS0xLjIyOSAwLjQ2OS0xLjY5NyAwLTAuNDY5LTAuNDY5LTAuNDY5LTEuMjI5IDAtMS42OTdsMi43NTgtMy4xNS0yLjc1OS0zLjE1MmMtMC40NjktMC40NjktMC40NjktMS4yMjggMC0xLjY5N3MxLjIyOC0wLjQ2OSAxLjY5NyAwbDIuNjUyIDMuMDMxIDIuNjUxLTMuMDMxYzAuNDY5LTAuNDY5IDEuMjI4LTAuNDY5IDEuNjk3IDBzMC40NjkgMS4yMjkgMCAxLjY5N2wtMi43NTggMy4xNTIgMi43NTggMy4xNWMwLjQ2OSAwLjQ2OSAwLjQ2OSAxLjIyOSAwIDEuNjk4elwiIC8+XG4gIDwvU3ZnPlxuKTtcbmV4cG9ydCB0eXBlIERvd25DaGV2cm9uUHJvcHMgPSBKU1guSW50cmluc2ljRWxlbWVudHNbJ3N2ZyddICYgeyBzaXplPzogbnVtYmVyIH07XG5leHBvcnQgY29uc3QgRG93bkNoZXZyb24gPSAocHJvcHM6IERvd25DaGV2cm9uUHJvcHMpID0+IChcbiAgPFN2ZyBzaXplPXsyMH0gey4uLnByb3BzfT5cbiAgICA8cGF0aCBkPVwiTTQuNTE2IDcuNTQ4YzAuNDM2LTAuNDQ2IDEuMDQzLTAuNDgxIDEuNTc2IDBsMy45MDggMy43NDcgMy45MDgtMy43NDdjMC41MzMtMC40ODEgMS4xNDEtMC40NDYgMS41NzQgMCAwLjQzNiAwLjQ0NSAwLjQwOCAxLjE5NyAwIDEuNjE1LTAuNDA2IDAuNDE4LTQuNjk1IDQuNTAyLTQuNjk1IDQuNTAyLTAuMjE3IDAuMjIzLTAuNTAyIDAuMzM1LTAuNzg3IDAuMzM1cy0wLjU3LTAuMTEyLTAuNzg5LTAuMzM1YzAgMC00LjI4Ny00LjA4NC00LjY5NS00LjUwMnMtMC40MzYtMS4xNyAwLTEuNjE1elwiIC8+XG4gIDwvU3ZnPlxuKTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBEcm9wZG93biAmIENsZWFyIEJ1dHRvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5leHBvcnQgaW50ZXJmYWNlIERyb3Bkb3duSW5kaWNhdG9yUHJvcHM8XG4gIE9wdGlvbiA9IHVua25vd24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuID0gYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPiA9IEdyb3VwQmFzZTxPcHRpb24+XG4+IGV4dGVuZHMgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWU8T3B0aW9uLCBJc011bHRpLCBHcm91cD4ge1xuICAvKiogVGhlIGNoaWxkcmVuIHRvIGJlIHJlbmRlcmVkIGluc2lkZSB0aGUgaW5kaWNhdG9yLiAqL1xuICBjaGlsZHJlbj86IFJlYWN0Tm9kZTtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpc0Rpc2FibGVkOiBib29sZWFuO1xufVxuXG5jb25zdCBiYXNlQ1NTID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICB7XG4gICAgaXNGb2N1c2VkLFxuICAgIHRoZW1lOiB7XG4gICAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgICBjb2xvcnMsXG4gICAgfSxcbiAgfTpcbiAgICB8IERyb3Bkb3duSW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbiAgICB8IENsZWFySW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdpbmRpY2F0b3JDb250YWluZXInLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHRyYW5zaXRpb246ICdjb2xvciAxNTBtcycsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBwYWRkaW5nOiBiYXNlVW5pdCAqIDIsXG4gICAgICAgICc6aG92ZXInOiB7XG4gICAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsODAgOiBjb2xvcnMubmV1dHJhbDQwLFxuICAgICAgICB9LFxuICAgICAgfSksXG59KTtcblxuZXhwb3J0IGNvbnN0IGRyb3Bkb3duSW5kaWNhdG9yQ1NTID0gYmFzZUNTUztcbmV4cG9ydCBjb25zdCBEcm9wZG93bkluZGljYXRvciA9IDxcbiAgT3B0aW9uLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPlxuPihcbiAgcHJvcHM6IERyb3Bkb3duSW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbikgPT4ge1xuICBjb25zdCB7IGNoaWxkcmVuLCBpbm5lclByb3BzIH0gPSBwcm9wcztcbiAgcmV0dXJuIChcbiAgICA8ZGl2XG4gICAgICB7Li4uZ2V0U3R5bGVQcm9wcyhwcm9wcywgJ2Ryb3Bkb3duSW5kaWNhdG9yJywge1xuICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICdkcm9wZG93bi1pbmRpY2F0b3InOiB0cnVlLFxuICAgICAgfSl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICB7Y2hpbGRyZW4gfHwgPERvd25DaGV2cm9uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuZXhwb3J0IGludGVyZmFjZSBDbGVhckluZGljYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgLyoqIFRoZSBjaGlsZHJlbiB0byBiZSByZW5kZXJlZCBpbnNpZGUgdGhlIGluZGljYXRvci4gKi9cbiAgY2hpbGRyZW4/OiBSZWFjdE5vZGU7XG4gIC8qKiBQcm9wcyB0aGF0IHdpbGwgYmUgcGFzc2VkIG9uIHRvIHRoZSBjaGlsZHJlbi4gKi9cbiAgaW5uZXJQcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydkaXYnXTtcbiAgLyoqIFRoZSBmb2N1c2VkIHN0YXRlIG9mIHRoZSBzZWxlY3QuICovXG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbn1cblxuZXhwb3J0IGNvbnN0IGNsZWFySW5kaWNhdG9yQ1NTID0gYmFzZUNTUztcbmV4cG9ydCBjb25zdCBDbGVhckluZGljYXRvciA9IDxcbiAgT3B0aW9uLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPlxuPihcbiAgcHJvcHM6IENsZWFySW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbikgPT4ge1xuICBjb25zdCB7IGNoaWxkcmVuLCBpbm5lclByb3BzIH0gPSBwcm9wcztcbiAgcmV0dXJuIChcbiAgICA8ZGl2XG4gICAgICB7Li4uZ2V0U3R5bGVQcm9wcyhwcm9wcywgJ2NsZWFySW5kaWNhdG9yJywge1xuICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICdjbGVhci1pbmRpY2F0b3InOiB0cnVlLFxuICAgICAgfSl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICB7Y2hpbGRyZW4gfHwgPENyb3NzSWNvbiAvPn1cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG5cbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuLy8gU2VwYXJhdG9yXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuZXhwb3J0IGludGVyZmFjZSBJbmRpY2F0b3JTZXBhcmF0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIGlzRGlzYWJsZWQ6IGJvb2xlYW47XG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbiAgaW5uZXJQcm9wcz86IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3BhbiddO1xufVxuXG5leHBvcnQgY29uc3QgaW5kaWNhdG9yU2VwYXJhdG9yQ1NTID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICB7XG4gICAgaXNEaXNhYmxlZCxcbiAgICB0aGVtZToge1xuICAgICAgc3BhY2luZzogeyBiYXNlVW5pdCB9LFxuICAgICAgY29sb3JzLFxuICAgIH0sXG4gIH06IEluZGljYXRvclNlcGFyYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+LFxuICB1bnN0eWxlZDogYm9vbGVhblxuKTogQ1NTT2JqZWN0V2l0aExhYmVsID0+ICh7XG4gIGxhYmVsOiAnaW5kaWNhdG9yU2VwYXJhdG9yJyxcbiAgYWxpZ25TZWxmOiAnc3RyZXRjaCcsXG4gIHdpZHRoOiAxLFxuICAuLi4odW5zdHlsZWRcbiAgICA/IHt9XG4gICAgOiB7XG4gICAgICAgIGJhY2tncm91bmRDb2xvcjogaXNEaXNhYmxlZCA/IGNvbG9ycy5uZXV0cmFsMTAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBtYXJnaW5Cb3R0b206IGJhc2VVbml0ICogMixcbiAgICAgICAgbWFyZ2luVG9wOiBiYXNlVW5pdCAqIDIsXG4gICAgICB9KSxcbn0pO1xuXG5leHBvcnQgY29uc3QgSW5kaWNhdG9yU2VwYXJhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogSW5kaWNhdG9yU2VwYXJhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbikgPT4ge1xuICBjb25zdCB7IGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxzcGFuXG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnaW5kaWNhdG9yU2VwYXJhdG9yJywge1xuICAgICAgICAnaW5kaWNhdG9yLXNlcGFyYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAvPlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBMb2FkaW5nXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgbG9hZGluZ0RvdEFuaW1hdGlvbnMgPSBrZXlmcmFtZXNgXG4gIDAlLCA4MCUsIDEwMCUgeyBvcGFjaXR5OiAwOyB9XG4gIDQwJSB7IG9wYWNpdHk6IDE7IH1cbmA7XG5cbmV4cG9ydCBjb25zdCBsb2FkaW5nSW5kaWNhdG9yQ1NTID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICB7XG4gICAgaXNGb2N1c2VkLFxuICAgIHNpemUsXG4gICAgdGhlbWU6IHtcbiAgICAgIGNvbG9ycyxcbiAgICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICB9LFxuICB9OiBMb2FkaW5nSW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdsb2FkaW5nSW5kaWNhdG9yJyxcbiAgZGlzcGxheTogJ2ZsZXgnLFxuICB0cmFuc2l0aW9uOiAnY29sb3IgMTUwbXMnLFxuICBhbGlnblNlbGY6ICdjZW50ZXInLFxuICBmb250U2l6ZTogc2l6ZSxcbiAgbGluZUhlaWdodDogMSxcbiAgbWFyZ2luUmlnaHQ6IHNpemUsXG4gIHRleHRBbGlnbjogJ2NlbnRlcicsXG4gIHZlcnRpY2FsQWxpZ246ICdtaWRkbGUnLFxuICAuLi4odW5zdHlsZWRcbiAgICA/IHt9XG4gICAgOiB7XG4gICAgICAgIGNvbG9yOiBpc0ZvY3VzZWQgPyBjb2xvcnMubmV1dHJhbDYwIDogY29sb3JzLm5ldXRyYWwyMCxcbiAgICAgICAgcGFkZGluZzogYmFzZVVuaXQgKiAyLFxuICAgICAgfSksXG59KTtcblxuaW50ZXJmYWNlIExvYWRpbmdEb3RQcm9wcyB7XG4gIGRlbGF5OiBudW1iZXI7XG4gIG9mZnNldDogYm9vbGVhbjtcbn1cbmNvbnN0IExvYWRpbmdEb3QgPSAoeyBkZWxheSwgb2Zmc2V0IH06IExvYWRpbmdEb3RQcm9wcykgPT4gKFxuICA8c3BhblxuICAgIGNzcz17e1xuICAgICAgYW5pbWF0aW9uOiBgJHtsb2FkaW5nRG90QW5pbWF0aW9uc30gMXMgZWFzZS1pbi1vdXQgJHtkZWxheX1tcyBpbmZpbml0ZTtgLFxuICAgICAgYmFja2dyb3VuZENvbG9yOiAnY3VycmVudENvbG9yJyxcbiAgICAgIGJvcmRlclJhZGl1czogJzFlbScsXG4gICAgICBkaXNwbGF5OiAnaW5saW5lLWJsb2NrJyxcbiAgICAgIG1hcmdpbkxlZnQ6IG9mZnNldCA/ICcxZW0nIDogdW5kZWZpbmVkLFxuICAgICAgaGVpZ2h0OiAnMWVtJyxcbiAgICAgIHZlcnRpY2FsQWxpZ246ICd0b3AnLFxuICAgICAgd2lkdGg6ICcxZW0nLFxuICAgIH19XG4gIC8+XG4pO1xuXG5leHBvcnQgaW50ZXJmYWNlIExvYWRpbmdJbmRpY2F0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIC8qKiBQcm9wcyB0aGF0IHdpbGwgYmUgcGFzc2VkIG9uIHRvIHRoZSBjaGlsZHJlbi4gKi9cbiAgaW5uZXJQcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydkaXYnXTtcbiAgLyoqIFRoZSBmb2N1c2VkIHN0YXRlIG9mIHRoZSBzZWxlY3QuICovXG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbiAgaXNEaXNhYmxlZDogYm9vbGVhbjtcbiAgLyoqIFNldCBzaXplIG9mIHRoZSBjb250YWluZXIuICovXG4gIHNpemU6IG51bWJlcjtcbn1cbmV4cG9ydCBjb25zdCBMb2FkaW5nSW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KHtcbiAgaW5uZXJQcm9wcyxcbiAgaXNSdGwsXG4gIHNpemUgPSA0LFxuICAuLi5yZXN0UHJvcHNcbn06IExvYWRpbmdJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPikgPT4ge1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKFxuICAgICAgICB7IC4uLnJlc3RQcm9wcywgaW5uZXJQcm9wcywgaXNSdGwsIHNpemUgfSxcbiAgICAgICAgJ2xvYWRpbmdJbmRpY2F0b3InLFxuICAgICAgICB7XG4gICAgICAgICAgaW5kaWNhdG9yOiB0cnVlLFxuICAgICAgICAgICdsb2FkaW5nLWluZGljYXRvcic6IHRydWUsXG4gICAgICAgIH1cbiAgICAgICl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MH0gb2Zmc2V0PXtpc1J0bH0gLz5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXsxNjB9IG9mZnNldCAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezMyMH0gb2Zmc2V0PXshaXNSdGx9IC8+XG4gICAgPC9kaXY+XG4gICk7XG59O1xuIl19 */",toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}},VA=function(e){var t=e.size,n=ki(e,xZ);return je("svg",Qe({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:CZ},n))},_v=function(e){return je(VA,Qe({size:20},e),je("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},xR=function(e){return je(VA,Qe({size:20},e),je("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},WA=function(e,t){var n=e.isFocused,r=e.theme,o=r.spacing.baseUnit,i=r.colors;return Ue({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?i.neutral60:i.neutral20,padding:2*o,":hover":{color:n?i.neutral80:i.neutral40}})},IZ=WA,SZ=WA,RZ=function(){var e=k1.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}(bR||(Tv=[` + 0%, 80%, 100% { opacity: 0; } + 40% { opacity: 1; } +`],Lv||(Lv=Tv.slice(0)),bR=Object.freeze(Object.defineProperties(Tv,{raw:{value:Object.freeze(Lv)}})))),Nv=function(e){var t=e.delay,n=e.offset;return je("span",{css:k1({animation:"".concat(RZ," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},";label:LoadingDot;","/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW1RSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgUmVhY3ROb2RlIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsganN4LCBrZXlmcmFtZXMgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmltcG9ydCB7XG4gIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lLFxuICBDU1NPYmplY3RXaXRoTGFiZWwsXG4gIEdyb3VwQmFzZSxcbn0gZnJvbSAnLi4vdHlwZXMnO1xuaW1wb3J0IHsgZ2V0U3R5bGVQcm9wcyB9IGZyb20gJy4uL3V0aWxzJztcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBEcm9wZG93biAmIENsZWFyIEljb25zXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgU3ZnID0gKHtcbiAgc2l6ZSxcbiAgLi4ucHJvcHNcbn06IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3ZnJ10gJiB7IHNpemU6IG51bWJlciB9KSA9PiAoXG4gIDxzdmdcbiAgICBoZWlnaHQ9e3NpemV9XG4gICAgd2lkdGg9e3NpemV9XG4gICAgdmlld0JveD1cIjAgMCAyMCAyMFwiXG4gICAgYXJpYS1oaWRkZW49XCJ0cnVlXCJcbiAgICBmb2N1c2FibGU9XCJmYWxzZVwiXG4gICAgY3NzPXt7XG4gICAgICBkaXNwbGF5OiAnaW5saW5lLWJsb2NrJyxcbiAgICAgIGZpbGw6ICdjdXJyZW50Q29sb3InLFxuICAgICAgbGluZUhlaWdodDogMSxcbiAgICAgIHN0cm9rZTogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBzdHJva2VXaWR0aDogMCxcbiAgICB9fVxuICAgIHsuLi5wcm9wc31cbiAgLz5cbik7XG5cbmV4cG9ydCB0eXBlIENyb3NzSWNvblByb3BzID0gSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZT86IG51bWJlciB9O1xuZXhwb3J0IGNvbnN0IENyb3NzSWNvbiA9IChwcm9wczogQ3Jvc3NJY29uUHJvcHMpID0+IChcbiAgPFN2ZyBzaXplPXsyMH0gey4uLnByb3BzfT5cbiAgICA8cGF0aCBkPVwiTTE0LjM0OCAxNC44NDljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDBsLTIuNjUxLTMuMDMwLTIuNjUxIDMuMDI5Yy0wLjQ2OSAwLjQ2OS0xLjIyOSAwLjQ2OS0xLjY5NyAwLTAuNDY5LTAuNDY5LTAuNDY5LTEuMjI5IDAtMS42OTdsMi43NTgtMy4xNS0yLjc1OS0zLjE1MmMtMC40NjktMC40NjktMC40NjktMS4yMjggMC0xLjY5N3MxLjIyOC0wLjQ2OSAxLjY5NyAwbDIuNjUyIDMuMDMxIDIuNjUxLTMuMDMxYzAuNDY5LTAuNDY5IDEuMjI4LTAuNDY5IDEuNjk3IDBzMC40NjkgMS4yMjkgMCAxLjY5N2wtMi43NTggMy4xNTIgMi43NTggMy4xNWMwLjQ2OSAwLjQ2OSAwLjQ2OSAxLjIyOSAwIDEuNjk4elwiIC8+XG4gIDwvU3ZnPlxuKTtcbmV4cG9ydCB0eXBlIERvd25DaGV2cm9uUHJvcHMgPSBKU1guSW50cmluc2ljRWxlbWVudHNbJ3N2ZyddICYgeyBzaXplPzogbnVtYmVyIH07XG5leHBvcnQgY29uc3QgRG93bkNoZXZyb24gPSAocHJvcHM6IERvd25DaGV2cm9uUHJvcHMpID0+IChcbiAgPFN2ZyBzaXplPXsyMH0gey4uLnByb3BzfT5cbiAgICA8cGF0aCBkPVwiTTQuNTE2IDcuNTQ4YzAuNDM2LTAuNDQ2IDEuMDQzLTAuNDgxIDEuNTc2IDBsMy45MDggMy43NDcgMy45MDgtMy43NDdjMC41MzMtMC40ODEgMS4xNDEtMC40NDYgMS41NzQgMCAwLjQzNiAwLjQ0NSAwLjQwOCAxLjE5NyAwIDEuNjE1LTAuNDA2IDAuNDE4LTQuNjk1IDQuNTAyLTQuNjk1IDQuNTAyLTAuMjE3IDAuMjIzLTAuNTAyIDAuMzM1LTAuNzg3IDAuMzM1cy0wLjU3LTAuMTEyLTAuNzg5LTAuMzM1YzAgMC00LjI4Ny00LjA4NC00LjY5NS00LjUwMnMtMC40MzYtMS4xNyAwLTEuNjE1elwiIC8+XG4gIDwvU3ZnPlxuKTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBEcm9wZG93biAmIENsZWFyIEJ1dHRvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5leHBvcnQgaW50ZXJmYWNlIERyb3Bkb3duSW5kaWNhdG9yUHJvcHM8XG4gIE9wdGlvbiA9IHVua25vd24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuID0gYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPiA9IEdyb3VwQmFzZTxPcHRpb24+XG4+IGV4dGVuZHMgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWU8T3B0aW9uLCBJc011bHRpLCBHcm91cD4ge1xuICAvKiogVGhlIGNoaWxkcmVuIHRvIGJlIHJlbmRlcmVkIGluc2lkZSB0aGUgaW5kaWNhdG9yLiAqL1xuICBjaGlsZHJlbj86IFJlYWN0Tm9kZTtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpc0Rpc2FibGVkOiBib29sZWFuO1xufVxuXG5jb25zdCBiYXNlQ1NTID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICB7XG4gICAgaXNGb2N1c2VkLFxuICAgIHRoZW1lOiB7XG4gICAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgICBjb2xvcnMsXG4gICAgfSxcbiAgfTpcbiAgICB8IERyb3Bkb3duSW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbiAgICB8IENsZWFySW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdpbmRpY2F0b3JDb250YWluZXInLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHRyYW5zaXRpb246ICdjb2xvciAxNTBtcycsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBwYWRkaW5nOiBiYXNlVW5pdCAqIDIsXG4gICAgICAgICc6aG92ZXInOiB7XG4gICAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsODAgOiBjb2xvcnMubmV1dHJhbDQwLFxuICAgICAgICB9LFxuICAgICAgfSksXG59KTtcblxuZXhwb3J0IGNvbnN0IGRyb3Bkb3duSW5kaWNhdG9yQ1NTID0gYmFzZUNTUztcbmV4cG9ydCBjb25zdCBEcm9wZG93bkluZGljYXRvciA9IDxcbiAgT3B0aW9uLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPlxuPihcbiAgcHJvcHM6IERyb3Bkb3duSW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbikgPT4ge1xuICBjb25zdCB7IGNoaWxkcmVuLCBpbm5lclByb3BzIH0gPSBwcm9wcztcbiAgcmV0dXJuIChcbiAgICA8ZGl2XG4gICAgICB7Li4uZ2V0U3R5bGVQcm9wcyhwcm9wcywgJ2Ryb3Bkb3duSW5kaWNhdG9yJywge1xuICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICdkcm9wZG93bi1pbmRpY2F0b3InOiB0cnVlLFxuICAgICAgfSl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICB7Y2hpbGRyZW4gfHwgPERvd25DaGV2cm9uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuZXhwb3J0IGludGVyZmFjZSBDbGVhckluZGljYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgLyoqIFRoZSBjaGlsZHJlbiB0byBiZSByZW5kZXJlZCBpbnNpZGUgdGhlIGluZGljYXRvci4gKi9cbiAgY2hpbGRyZW4/OiBSZWFjdE5vZGU7XG4gIC8qKiBQcm9wcyB0aGF0IHdpbGwgYmUgcGFzc2VkIG9uIHRvIHRoZSBjaGlsZHJlbi4gKi9cbiAgaW5uZXJQcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydkaXYnXTtcbiAgLyoqIFRoZSBmb2N1c2VkIHN0YXRlIG9mIHRoZSBzZWxlY3QuICovXG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbn1cblxuZXhwb3J0IGNvbnN0IGNsZWFySW5kaWNhdG9yQ1NTID0gYmFzZUNTUztcbmV4cG9ydCBjb25zdCBDbGVhckluZGljYXRvciA9IDxcbiAgT3B0aW9uLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPlxuPihcbiAgcHJvcHM6IENsZWFySW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbikgPT4ge1xuICBjb25zdCB7IGNoaWxkcmVuLCBpbm5lclByb3BzIH0gPSBwcm9wcztcbiAgcmV0dXJuIChcbiAgICA8ZGl2XG4gICAgICB7Li4uZ2V0U3R5bGVQcm9wcyhwcm9wcywgJ2NsZWFySW5kaWNhdG9yJywge1xuICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICdjbGVhci1pbmRpY2F0b3InOiB0cnVlLFxuICAgICAgfSl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICB7Y2hpbGRyZW4gfHwgPENyb3NzSWNvbiAvPn1cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG5cbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuLy8gU2VwYXJhdG9yXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuZXhwb3J0IGludGVyZmFjZSBJbmRpY2F0b3JTZXBhcmF0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIGlzRGlzYWJsZWQ6IGJvb2xlYW47XG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbiAgaW5uZXJQcm9wcz86IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3BhbiddO1xufVxuXG5leHBvcnQgY29uc3QgaW5kaWNhdG9yU2VwYXJhdG9yQ1NTID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICB7XG4gICAgaXNEaXNhYmxlZCxcbiAgICB0aGVtZToge1xuICAgICAgc3BhY2luZzogeyBiYXNlVW5pdCB9LFxuICAgICAgY29sb3JzLFxuICAgIH0sXG4gIH06IEluZGljYXRvclNlcGFyYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+LFxuICB1bnN0eWxlZDogYm9vbGVhblxuKTogQ1NTT2JqZWN0V2l0aExhYmVsID0+ICh7XG4gIGxhYmVsOiAnaW5kaWNhdG9yU2VwYXJhdG9yJyxcbiAgYWxpZ25TZWxmOiAnc3RyZXRjaCcsXG4gIHdpZHRoOiAxLFxuICAuLi4odW5zdHlsZWRcbiAgICA/IHt9XG4gICAgOiB7XG4gICAgICAgIGJhY2tncm91bmRDb2xvcjogaXNEaXNhYmxlZCA/IGNvbG9ycy5uZXV0cmFsMTAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBtYXJnaW5Cb3R0b206IGJhc2VVbml0ICogMixcbiAgICAgICAgbWFyZ2luVG9wOiBiYXNlVW5pdCAqIDIsXG4gICAgICB9KSxcbn0pO1xuXG5leHBvcnQgY29uc3QgSW5kaWNhdG9yU2VwYXJhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogSW5kaWNhdG9yU2VwYXJhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbikgPT4ge1xuICBjb25zdCB7IGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxzcGFuXG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnaW5kaWNhdG9yU2VwYXJhdG9yJywge1xuICAgICAgICAnaW5kaWNhdG9yLXNlcGFyYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAvPlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBMb2FkaW5nXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgbG9hZGluZ0RvdEFuaW1hdGlvbnMgPSBrZXlmcmFtZXNgXG4gIDAlLCA4MCUsIDEwMCUgeyBvcGFjaXR5OiAwOyB9XG4gIDQwJSB7IG9wYWNpdHk6IDE7IH1cbmA7XG5cbmV4cG9ydCBjb25zdCBsb2FkaW5nSW5kaWNhdG9yQ1NTID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICB7XG4gICAgaXNGb2N1c2VkLFxuICAgIHNpemUsXG4gICAgdGhlbWU6IHtcbiAgICAgIGNvbG9ycyxcbiAgICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICB9LFxuICB9OiBMb2FkaW5nSW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdsb2FkaW5nSW5kaWNhdG9yJyxcbiAgZGlzcGxheTogJ2ZsZXgnLFxuICB0cmFuc2l0aW9uOiAnY29sb3IgMTUwbXMnLFxuICBhbGlnblNlbGY6ICdjZW50ZXInLFxuICBmb250U2l6ZTogc2l6ZSxcbiAgbGluZUhlaWdodDogMSxcbiAgbWFyZ2luUmlnaHQ6IHNpemUsXG4gIHRleHRBbGlnbjogJ2NlbnRlcicsXG4gIHZlcnRpY2FsQWxpZ246ICdtaWRkbGUnLFxuICAuLi4odW5zdHlsZWRcbiAgICA/IHt9XG4gICAgOiB7XG4gICAgICAgIGNvbG9yOiBpc0ZvY3VzZWQgPyBjb2xvcnMubmV1dHJhbDYwIDogY29sb3JzLm5ldXRyYWwyMCxcbiAgICAgICAgcGFkZGluZzogYmFzZVVuaXQgKiAyLFxuICAgICAgfSksXG59KTtcblxuaW50ZXJmYWNlIExvYWRpbmdEb3RQcm9wcyB7XG4gIGRlbGF5OiBudW1iZXI7XG4gIG9mZnNldDogYm9vbGVhbjtcbn1cbmNvbnN0IExvYWRpbmdEb3QgPSAoeyBkZWxheSwgb2Zmc2V0IH06IExvYWRpbmdEb3RQcm9wcykgPT4gKFxuICA8c3BhblxuICAgIGNzcz17e1xuICAgICAgYW5pbWF0aW9uOiBgJHtsb2FkaW5nRG90QW5pbWF0aW9uc30gMXMgZWFzZS1pbi1vdXQgJHtkZWxheX1tcyBpbmZpbml0ZTtgLFxuICAgICAgYmFja2dyb3VuZENvbG9yOiAnY3VycmVudENvbG9yJyxcbiAgICAgIGJvcmRlclJhZGl1czogJzFlbScsXG4gICAgICBkaXNwbGF5OiAnaW5saW5lLWJsb2NrJyxcbiAgICAgIG1hcmdpbkxlZnQ6IG9mZnNldCA/ICcxZW0nIDogdW5kZWZpbmVkLFxuICAgICAgaGVpZ2h0OiAnMWVtJyxcbiAgICAgIHZlcnRpY2FsQWxpZ246ICd0b3AnLFxuICAgICAgd2lkdGg6ICcxZW0nLFxuICAgIH19XG4gIC8+XG4pO1xuXG5leHBvcnQgaW50ZXJmYWNlIExvYWRpbmdJbmRpY2F0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIC8qKiBQcm9wcyB0aGF0IHdpbGwgYmUgcGFzc2VkIG9uIHRvIHRoZSBjaGlsZHJlbi4gKi9cbiAgaW5uZXJQcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydkaXYnXTtcbiAgLyoqIFRoZSBmb2N1c2VkIHN0YXRlIG9mIHRoZSBzZWxlY3QuICovXG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbiAgaXNEaXNhYmxlZDogYm9vbGVhbjtcbiAgLyoqIFNldCBzaXplIG9mIHRoZSBjb250YWluZXIuICovXG4gIHNpemU6IG51bWJlcjtcbn1cbmV4cG9ydCBjb25zdCBMb2FkaW5nSW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KHtcbiAgaW5uZXJQcm9wcyxcbiAgaXNSdGwsXG4gIHNpemUgPSA0LFxuICAuLi5yZXN0UHJvcHNcbn06IExvYWRpbmdJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPikgPT4ge1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKFxuICAgICAgICB7IC4uLnJlc3RQcm9wcywgaW5uZXJQcm9wcywgaXNSdGwsIHNpemUgfSxcbiAgICAgICAgJ2xvYWRpbmdJbmRpY2F0b3InLFxuICAgICAgICB7XG4gICAgICAgICAgaW5kaWNhdG9yOiB0cnVlLFxuICAgICAgICAgICdsb2FkaW5nLWluZGljYXRvcic6IHRydWUsXG4gICAgICAgIH1cbiAgICAgICl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MH0gb2Zmc2V0PXtpc1J0bH0gLz5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXsxNjB9IG9mZnNldCAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezMyMH0gb2Zmc2V0PXshaXNSdGx9IC8+XG4gICAgPC9kaXY+XG4gICk7XG59O1xuIl19 */")})},EZ=function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,o=e.innerRef,i=e.innerProps,a=e.menuIsOpen;return je("div",Qe({ref:o},rn(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":r,"control--menu-is-open":a}),i,{"aria-disabled":n||void 0}),t)},PZ=["data"],kZ=function(e){var t=e.children,n=e.cx,r=e.getStyles,o=e.getClassNames,i=e.Heading,a=e.headingProps,c=e.innerProps,s=e.label,d=e.theme,f=e.selectProps;return je("div",Qe({},rn(e,"group",{group:!0}),c),je(i,Qe({},a,{selectProps:f,theme:d,getStyles:r,getClassNames:o,cx:n}),s),je("div",null,t))},AZ=["innerRef","isDisabled","isHidden","inputClassName"],GA={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},MZ={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":Ue({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},GA)},OZ=function(e){return Ue({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},GA)},wR=function(e){var t=e.children,n=e.innerProps;return je("div",n,t)},TZ=function(e){var t=e.children,n=e.components,r=e.data,o=e.innerProps,i=e.isDisabled,a=e.removeProps,c=e.selectProps,s=n.Container,d=n.Label,f=n.Remove;return je(s,{data:r,innerProps:Ue(Ue({},rn(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":i})),o),selectProps:c},je(d,{data:r,innerProps:Ue({},rn(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:c},t),je(f,{data:r,innerProps:Ue(Ue({},rn(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},a),selectProps:c}))},LZ={ClearIndicator:function(e){var t=e.children,n=e.innerProps;return je("div",Qe({},rn(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||je(_v,null))},Control:EZ,DropdownIndicator:function(e){var t=e.children,n=e.innerProps;return je("div",Qe({},rn(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||je(xR,null))},DownChevron:xR,CrossIcon:_v,Group:kZ,GroupHeading:function(e){var t=mR(e);t.data;var n=ki(t,PZ);return je("div",Qe({},rn(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var t=e.children,n=e.innerProps;return je("div",Qe({},rn(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function(e){var t=e.innerProps;return je("span",Qe({},t,rn(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:function(e){var t=e.cx,n=e.value,r=mR(e),o=r.innerRef,i=r.isDisabled,a=r.isHidden,c=r.inputClassName,s=ki(r,AZ);return je("div",Qe({},rn(e,"input",{"input-container":!0}),{"data-value":n||""}),je("input",Qe({className:t({input:!0},c),ref:o,style:OZ(a),disabled:i},s)))},LoadingIndicator:function(e){var t=e.innerProps,n=e.isRtl,r=e.size,o=r===void 0?4:r,i=ki(e,wZ);return je("div",Qe({},rn(Ue(Ue({},i),{},{innerProps:t,isRtl:n,size:o}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),je(Nv,{delay:0,offset:n}),je(Nv,{delay:160,offset:!0}),je(Nv,{delay:320,offset:!n}))},Menu:vZ,MenuList:function(e){var t=e.children,n=e.innerProps,r=e.innerRef,o=e.isMulti;return je("div",Qe({},rn(e,"menuList",{"menu-list":!0,"menu-list--is-multi":o}),{ref:r},n),t)},MenuPortal:function(e){var t=e.appendTo,n=e.children,r=e.controlElement,o=e.innerProps,i=e.menuPlacement,a=e.menuPosition,c=C.useRef(null),s=C.useRef(null),d=Ti(C.useState(DA(i)),2),f=d[0],g=d[1],v=C.useMemo(function(){return{setPortalPlacement:g}},[]),h=Ti(C.useState(null),2),y=h[0],b=h[1],S=C.useCallback(function(){if(r){var R=function(A){var O=A.getBoundingClientRect();return{bottom:O.bottom,height:O.height,left:O.left,right:O.right,top:O.top,width:O.width}}(r),E=a==="fixed"?0:window.pageYOffset,P=R[f]+E;P===(y==null?void 0:y.offset)&&R.left===(y==null?void 0:y.rect.left)&&R.width===(y==null?void 0:y.rect.width)||b({offset:P,rect:R})}},[r,a,f,y==null?void 0:y.offset,y==null?void 0:y.rect.left,y==null?void 0:y.rect.width]);wy(function(){S()},[S]);var m=C.useCallback(function(){typeof s.current=="function"&&(s.current(),s.current=null),r&&c.current&&(s.current=lZ(r,c.current,S,{elementResize:"ResizeObserver"in window}))},[r,S]);wy(function(){m()},[m]);var x=C.useCallback(function(R){c.current=R,m()},[m]);if(!t&&a!=="fixed"||!y)return null;var I=je("div",Qe({ref:x},rn(Ue(Ue({},e),{},{offset:y.offset,position:a,rect:y.rect}),"menuPortal",{"menu-portal":!0}),o),n);return je(BA.Provider,{value:v},t?Hc.createPortal(I,t):I)},LoadingMessage:function(e){var t=e.children,n=t===void 0?"Loading...":t,r=e.innerProps,o=ki(e,gZ);return je("div",Qe({},rn(Ue(Ue({},o),{},{children:n,innerProps:r}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),r),n)},NoOptionsMessage:function(e){var t=e.children,n=t===void 0?"No options":t,r=e.innerProps,o=ki(e,pZ);return je("div",Qe({},rn(Ue(Ue({},o),{},{children:n,innerProps:r}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),r),n)},MultiValue:TZ,MultiValueContainer:wR,MultiValueLabel:wR,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return je("div",Qe({role:"button"},n),t||je(_v,{size:14}))},Option:function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,o=e.isSelected,i=e.innerRef,a=e.innerProps;return je("div",Qe({},rn(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":r,"option--is-selected":o}),{ref:i,"aria-disabled":n},a),t)},Placeholder:function(e){var t=e.children,n=e.innerProps;return je("div",Qe({},rn(e,"placeholder",{placeholder:!0}),n),t)},SelectContainer:function(e){var t=e.children,n=e.innerProps,r=e.isDisabled,o=e.isRtl;return je("div",Qe({},rn(e,"container",{"--is-disabled":r,"--is-rtl":o}),n),t)},SingleValue:function(e){var t=e.children,n=e.isDisabled,r=e.innerProps;return je("div",Qe({},rn(e,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),r),t)},ValueContainer:function(e){var t=e.children,n=e.innerProps,r=e.isMulti,o=e.hasValue;return je("div",Qe({},rn(e,"valueContainer",{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":o}),n),t)}},CR=Number.isNaN||function(e){return typeof e=="number"&&e!=e};function _Z(e,t){if(e.length!==t.length)return!1;for(var n=0;n1?"s":""," ").concat(o.join(","),", selected.");case"select-option":return"option ".concat(r,i?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,r=e.options,o=e.label,i=o===void 0?"":o,a=e.selectValue,c=e.isDisabled,s=e.isSelected,d=e.isAppleDevice,f=function(h,y){return h&&h.length?"".concat(h.indexOf(y)+1," of ").concat(h.length):""};if(t==="value"&&a)return"value ".concat(i," focused, ").concat(f(a,n),".");if(t==="menu"&&d){var g=c?" disabled":"",v="".concat(s?" selected":"").concat(g);return"".concat(i).concat(v,", ").concat(f(r,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},DZ=function(e){var t=e.ariaSelection,n=e.focusedOption,r=e.focusedValue,o=e.focusableOptions,i=e.isFocused,a=e.selectValue,c=e.selectProps,s=e.id,d=e.isAppleDevice,f=c.ariaLiveMessages,g=c.getOptionLabel,v=c.inputValue,h=c.isMulti,y=c.isOptionDisabled,b=c.isSearchable,S=c.menuIsOpen,m=c.options,x=c.screenReaderStatus,I=c.tabSelectsValue,R=c.isLoading,E=c["aria-label"],P=c["aria-live"],A=C.useMemo(function(){return Ue(Ue({},FZ),f||{})},[f]),O=C.useMemo(function(){var Z,_="";if(t&&A.onChange){var F=t.option,J=t.options,z=t.removedValue,q=t.removedValues,ae=t.value,te=z||F||(Z=ae,Array.isArray(Z)?null:Z),he=te?g(te):"",Se=J||q||void 0,pe=Se?Se.map(g):[],ye=Ue({isDisabled:te&&y(te,a),label:he,labels:pe},t);_=A.onChange(ye)}return _},[t,A,y,a,g]),W=C.useMemo(function(){var Z="",_=n||r,F=!!(n&&a&&a.includes(n));if(_&&A.onFocus){var J={focused:_,label:g(_),isDisabled:y(_,a),isSelected:F,options:o,context:_===n?"menu":"value",selectValue:a,isAppleDevice:d};Z=A.onFocus(J)}return Z},[n,r,g,y,A,o,a,d]),$=C.useMemo(function(){var Z="";if(S&&m.length&&!R&&A.onFilter){var _=x({count:o.length});Z=A.onFilter({inputValue:v,resultsMessage:_})}return Z},[o,v,S,A,m,x,R]),j=(t==null?void 0:t.action)==="initial-input-focus",V=C.useMemo(function(){var Z="";if(A.guidance){var _=r?"value":S?"menu":"input";Z=A.guidance({"aria-label":E,context:_,isDisabled:n&&y(n,a),isMulti:h,isSearchable:b,tabSelectsValue:I,isInitialFocus:j})}return Z},[E,n,r,h,y,b,S,A,a,I,j]),U=je(C.Fragment,null,je("span",{id:"aria-selection"},O),je("span",{id:"aria-focused"},W),je("span",{id:"aria-results"},$),je("span",{id:"aria-guidance"},V));return je(C.Fragment,null,je(IR,{id:s},j&&U),je(IR,{"aria-live":P,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},i&&!j&&U))},Fv=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],BZ=new RegExp("["+Fv.map(function(e){return e.letters}).join("")+"]","g"),zA={},Dv=0;Dv1?o-1:0),a=1;a"u"||!window.document||!window.document.createElement),Ou=0,ja={capture:!1,passive:!1},HZ=function(e){var t=e.target;return t.ownerDocument.activeElement&&t.ownerDocument.activeElement.blur()},jZ={name:"bp8cua-ScrollManager",styles:"position:fixed;left:0;bottom:0;right:0;top:0;label:ScrollManager;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNjcm9sbE1hbmFnZXIudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW9EVSIsImZpbGUiOiJTY3JvbGxNYW5hZ2VyLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgRnJhZ21lbnQsIFJlYWN0RWxlbWVudCwgUmVmQ2FsbGJhY2ssIE1vdXNlRXZlbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgdXNlU2Nyb2xsQ2FwdHVyZSBmcm9tICcuL3VzZVNjcm9sbENhcHR1cmUnO1xuaW1wb3J0IHVzZVNjcm9sbExvY2sgZnJvbSAnLi91c2VTY3JvbGxMb2NrJztcblxuaW50ZXJmYWNlIFByb3BzIHtcbiAgcmVhZG9ubHkgY2hpbGRyZW46IChyZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PikgPT4gUmVhY3RFbGVtZW50O1xuICByZWFkb25seSBsb2NrRW5hYmxlZDogYm9vbGVhbjtcbiAgcmVhZG9ubHkgY2FwdHVyZUVuYWJsZWQ6IGJvb2xlYW47XG4gIHJlYWRvbmx5IG9uQm90dG9tQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9ubHkgb25Cb3R0b21MZWF2ZT86IChldmVudDogV2hlZWxFdmVudCB8IFRvdWNoRXZlbnQpID0+IHZvaWQ7XG4gIHJlYWRvbmx5IG9uVG9wQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9ubHkgb25Ub3BMZWF2ZT86IChldmVudDogV2hlZWxFdmVudCB8IFRvdWNoRXZlbnQpID0+IHZvaWQ7XG59XG5cbmNvbnN0IGJsdXJTZWxlY3RJbnB1dCA9IChldmVudDogTW91c2VFdmVudDxIVE1MRGl2RWxlbWVudD4pID0+IHtcbiAgY29uc3QgZWxlbWVudCA9IGV2ZW50LnRhcmdldCBhcyBIVE1MRGl2RWxlbWVudDtcbiAgcmV0dXJuIChcbiAgICBlbGVtZW50Lm93bmVyRG9jdW1lbnQuYWN0aXZlRWxlbWVudCAmJlxuICAgIChlbGVtZW50Lm93bmVyRG9jdW1lbnQuYWN0aXZlRWxlbWVudCBhcyBIVE1MRWxlbWVudCkuYmx1cigpXG4gICk7XG59O1xuXG5leHBvcnQgZGVmYXVsdCBmdW5jdGlvbiBTY3JvbGxNYW5hZ2VyKHtcbiAgY2hpbGRyZW4sXG4gIGxvY2tFbmFibGVkLFxuICBjYXB0dXJlRW5hYmxlZCA9IHRydWUsXG4gIG9uQm90dG9tQXJyaXZlLFxuICBvbkJvdHRvbUxlYXZlLFxuICBvblRvcEFycml2ZSxcbiAgb25Ub3BMZWF2ZSxcbn06IFByb3BzKSB7XG4gIGNvbnN0IHNldFNjcm9sbENhcHR1cmVUYXJnZXQgPSB1c2VTY3JvbGxDYXB0dXJlKHtcbiAgICBpc0VuYWJsZWQ6IGNhcHR1cmVFbmFibGVkLFxuICAgIG9uQm90dG9tQXJyaXZlLFxuICAgIG9uQm90dG9tTGVhdmUsXG4gICAgb25Ub3BBcnJpdmUsXG4gICAgb25Ub3BMZWF2ZSxcbiAgfSk7XG4gIGNvbnN0IHNldFNjcm9sbExvY2tUYXJnZXQgPSB1c2VTY3JvbGxMb2NrKHsgaXNFbmFibGVkOiBsb2NrRW5hYmxlZCB9KTtcblxuICBjb25zdCB0YXJnZXRSZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PiA9IChlbGVtZW50KSA9PiB7XG4gICAgc2V0U2Nyb2xsQ2FwdHVyZVRhcmdldChlbGVtZW50KTtcbiAgICBzZXRTY3JvbGxMb2NrVGFyZ2V0KGVsZW1lbnQpO1xuICB9O1xuXG4gIHJldHVybiAoXG4gICAgPEZyYWdtZW50PlxuICAgICAge2xvY2tFbmFibGVkICYmIChcbiAgICAgICAgPGRpdlxuICAgICAgICAgIG9uQ2xpY2s9e2JsdXJTZWxlY3RJbnB1dH1cbiAgICAgICAgICBjc3M9e3sgcG9zaXRpb246ICdmaXhlZCcsIGxlZnQ6IDAsIGJvdHRvbTogMCwgcmlnaHQ6IDAsIHRvcDogMCB9fVxuICAgICAgICAvPlxuICAgICAgKX1cbiAgICAgIHtjaGlsZHJlbih0YXJnZXRSZWYpfVxuICAgIDwvRnJhZ21lbnQ+XG4gICk7XG59XG4iXX0= */",toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}};function XZ(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,o=function(a){var c=a.isEnabled,s=a.onBottomArrive,d=a.onBottomLeave,f=a.onTopArrive,g=a.onTopLeave,v=C.useRef(!1),h=C.useRef(!1),y=C.useRef(0),b=C.useRef(null),S=C.useCallback(function(P,A){if(b.current!==null){var O=b.current,W=O.scrollTop,$=O.scrollHeight,j=O.clientHeight,V=b.current,U=A>0,Z=$-j-W,_=!1;Z>A&&v.current&&(d&&d(P),v.current=!1),U&&h.current&&(g&&g(P),h.current=!1),U&&A>Z?(s&&!v.current&&s(P),V.scrollTop=$,_=!0,v.current=!0):!U&&-A>W&&(f&&!h.current&&f(P),V.scrollTop=0,_=!0,h.current=!0),_&&zZ(P)}},[s,d,f,g]),m=C.useCallback(function(P){S(P,P.deltaY)},[S]),x=C.useCallback(function(P){y.current=P.changedTouches[0].clientY},[]),I=C.useCallback(function(P){var A=y.current-P.changedTouches[0].clientY;S(P,A)},[S]),R=C.useCallback(function(P){if(P){var A=!!dZ&&{passive:!1};P.addEventListener("wheel",m,A),P.addEventListener("touchstart",x,A),P.addEventListener("touchmove",I,A)}},[I,x,m]),E=C.useCallback(function(P){P&&(P.removeEventListener("wheel",m,!1),P.removeEventListener("touchstart",x,!1),P.removeEventListener("touchmove",I,!1))},[I,x,m]);return C.useEffect(function(){if(c){var P=b.current;return R(P),function(){E(P)}}},[c,R,E]),function(P){b.current=P}}({isEnabled:r===void 0||r,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),i=function(a){var c=a.isEnabled,s=a.accountForScrollbars,d=s===void 0||s,f=C.useRef({}),g=C.useRef(null),v=C.useCallback(function(y){if(OR){var b=document.body,S=b&&b.style;if(d&&RR.forEach(function(R){var E=S&&S[R];f.current[R]=E}),d&&Ou<1){var m=parseInt(f.current.paddingRight,10)||0,x=document.body?document.body.clientWidth:0,I=window.innerWidth-x+m||0;Object.keys(ER).forEach(function(R){var E=ER[R];S&&(S[R]=E)}),S&&(S.paddingRight="".concat(I,"px"))}b&&MR()&&(b.addEventListener("touchmove",PR,ja),y&&(y.addEventListener("touchstart",AR,ja),y.addEventListener("touchmove",kR,ja))),Ou+=1}},[d]),h=C.useCallback(function(y){if(OR){var b=document.body,S=b&&b.style;Ou=Math.max(Ou-1,0),d&&Ou<1&&RR.forEach(function(m){var x=f.current[m];S&&(S[m]=x)}),b&&MR()&&(b.removeEventListener("touchmove",PR,ja),y&&(y.removeEventListener("touchstart",AR,ja),y.removeEventListener("touchmove",kR,ja)))}},[d]);return C.useEffect(function(){if(c){var y=g.current;return v(y),function(){h(y)}}},[c,v,h]),function(y){g.current=y}}({isEnabled:n});return je(C.Fragment,null,n&&je("div",{onClick:HZ,css:jZ}),t(function(a){o(a),i(a)}))}var UZ={name:"5kkxb2-requiredInput-RequiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%;label:RequiredInput;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlJlcXVpcmVkSW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWNJIiwiZmlsZSI6IlJlcXVpcmVkSW5wdXQudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiLyoqIEBqc3gganN4ICovXG5pbXBvcnQgeyBGb2N1c0V2ZW50SGFuZGxlciwgRnVuY3Rpb25Db21wb25lbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmNvbnN0IFJlcXVpcmVkSW5wdXQ6IEZ1bmN0aW9uQ29tcG9uZW50PHtcbiAgcmVhZG9ubHkgbmFtZT86IHN0cmluZztcbiAgcmVhZG9ubHkgb25Gb2N1czogRm9jdXNFdmVudEhhbmRsZXI8SFRNTElucHV0RWxlbWVudD47XG59PiA9ICh7IG5hbWUsIG9uRm9jdXMgfSkgPT4gKFxuICA8aW5wdXRcbiAgICByZXF1aXJlZFxuICAgIG5hbWU9e25hbWV9XG4gICAgdGFiSW5kZXg9ey0xfVxuICAgIGFyaWEtaGlkZGVuPVwidHJ1ZVwiXG4gICAgb25Gb2N1cz17b25Gb2N1c31cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAncmVxdWlyZWRJbnB1dCcsXG4gICAgICBvcGFjaXR5OiAwLFxuICAgICAgcG9pbnRlckV2ZW50czogJ25vbmUnLFxuICAgICAgcG9zaXRpb246ICdhYnNvbHV0ZScsXG4gICAgICBib3R0b206IDAsXG4gICAgICBsZWZ0OiAwLFxuICAgICAgcmlnaHQ6IDAsXG4gICAgICB3aWR0aDogJzEwMCUnLFxuICAgIH19XG4gICAgLy8gUHJldmVudCBgU3dpdGNoaW5nIGZyb20gdW5jb250cm9sbGVkIHRvIGNvbnRyb2xsZWRgIGVycm9yXG4gICAgdmFsdWU9XCJcIlxuICAgIG9uQ2hhbmdlPXsoKSA9PiB7fX1cbiAgLz5cbik7XG5cbmV4cG9ydCBkZWZhdWx0IFJlcXVpcmVkSW5wdXQ7XG4iXX0= */",toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}},ZZ=function(e){var t=e.name,n=e.onFocus;return je("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:UZ,value:"",onChange:function(){}})};function Cy(e){var t;return typeof window<"u"&&window.navigator!=null&&e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform)}function jA(){return Cy(/^Mac/i)}function YZ(){return Cy(/^iPhone/i)||Cy(/^iPad/i)||jA()&&navigator.maxTouchPoints>1}var KZ,JZ={clearIndicator:SZ,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},control:function(e,t){var n=e.isDisabled,r=e.isFocused,o=e.theme,i=o.colors,a=o.borderRadius;return Ue({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:o.spacing.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:n?i.neutral5:i.neutral0,borderColor:n?i.neutral10:r?i.primary:i.neutral20,borderRadius:a,borderStyle:"solid",borderWidth:1,boxShadow:r?"0 0 0 1px ".concat(i.primary):void 0,"&:hover":{borderColor:r?i.primary:i.neutral30}})},dropdownIndicator:IZ,group:function(e,t){var n=e.theme.spacing;return t?{}:{paddingBottom:2*n.baseUnit,paddingTop:2*n.baseUnit}},groupHeading:function(e,t){var n=e.theme,r=n.colors,o=n.spacing;return Ue({label:"group",cursor:"default",display:"block"},t?{}:{color:r.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*o.baseUnit,paddingRight:3*o.baseUnit,textTransform:"uppercase"})},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e,t){var n=e.isDisabled,r=e.theme,o=r.spacing.baseUnit,i=r.colors;return Ue({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:n?i.neutral10:i.neutral20,marginBottom:2*o,marginTop:2*o})},input:function(e,t){var n=e.isDisabled,r=e.value,o=e.theme,i=o.spacing,a=o.colors;return Ue(Ue({visibility:n?"hidden":"visible",transform:r?"translateZ(0)":""},MZ),t?{}:{margin:i.baseUnit/2,paddingBottom:i.baseUnit/2,paddingTop:i.baseUnit/2,color:a.neutral80})},loadingIndicator:function(e,t){var n=e.isFocused,r=e.size,o=e.theme,i=o.colors,a=o.spacing.baseUnit;return Ue({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:r,lineHeight:1,marginRight:r,textAlign:"center",verticalAlign:"middle"},t?{}:{color:n?i.neutral60:i.neutral20,padding:2*a})},loadingMessage:bZ,menu:function(e,t){var n,r=e.placement,o=e.theme,i=o.borderRadius,a=o.spacing,c=o.colors;return Ue((Vu(n={label:"menu"},function(s){return s?{bottom:"top",top:"bottom"}[s]:"bottom"}(r),"100%"),Vu(n,"position","absolute"),Vu(n,"width","100%"),Vu(n,"zIndex",1),n),t?{}:{backgroundColor:c.neutral0,borderRadius:i,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:a.menuGutter,marginTop:a.menuGutter})},menuList:function(e,t){var n=e.maxHeight,r=e.theme.spacing.baseUnit;return Ue({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:r,paddingTop:r})},menuPortal:function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},multiValue:function(e,t){var n=e.theme,r=n.spacing,o=n.borderRadius,i=n.colors;return Ue({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:i.neutral10,borderRadius:o/2,margin:r.baseUnit/2})},multiValueLabel:function(e,t){var n=e.theme,r=n.borderRadius,o=n.colors,i=e.cropWithEllipsis;return Ue({overflow:"hidden",textOverflow:i||i===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:r/2,color:o.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},multiValueRemove:function(e,t){var n=e.theme,r=n.spacing,o=n.borderRadius,i=n.colors,a=e.isFocused;return Ue({alignItems:"center",display:"flex"},t?{}:{borderRadius:o/2,backgroundColor:a?i.dangerLight:void 0,paddingLeft:r.baseUnit,paddingRight:r.baseUnit,":hover":{backgroundColor:i.dangerLight,color:i.danger}})},noOptionsMessage:yZ,option:function(e,t){var n=e.isDisabled,r=e.isFocused,o=e.isSelected,i=e.theme,a=i.spacing,c=i.colors;return Ue({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:o?c.primary:r?c.primary25:"transparent",color:n?c.neutral20:o?c.neutral0:"inherit",padding:"".concat(2*a.baseUnit,"px ").concat(3*a.baseUnit,"px"),":active":{backgroundColor:n?void 0:o?c.primary:c.primary50}})},placeholder:function(e,t){var n=e.theme,r=n.spacing,o=n.colors;return Ue({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:o.neutral50,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},singleValue:function(e,t){var n=e.isDisabled,r=e.theme,o=r.spacing,i=r.colors;return Ue({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:n?i.neutral40:i.neutral80,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},valueContainer:function(e,t){var n=e.theme.spacing,r=e.isMulti,o=e.hasValue,i=e.selectProps.controlShouldRenderValue;return Ue({alignItems:"center",display:r&&o&&i?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(2*n.baseUnit,"px")})}},Vv={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},QZ={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:yR(),captureMenuScroll:!yR(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=Ue({ignoreCase:!0,ignoreAccents:!0,stringify:VZ,trim:!0,matchFrom:"any"},KZ),r=n.ignoreCase,o=n.ignoreAccents,i=n.stringify,a=n.trim,c=n.matchFrom,s=a?SR(t):t,d=a?SR(i(e)):i(e);return r&&(s=s.toLowerCase(),d=d.toLowerCase()),o&&(s=$Z(s),d=HA(d)),c==="start"?d.substr(0,s.length)===s:d.indexOf(s)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(t!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function TR(e,t,n,r){return{type:"option",data:t,isDisabled:UA(e,t,n),isSelected:ZA(e,t,n),label:XA(e,t),value:Jp(e,t),index:r}}function If(e,t){return e.options.map(function(n,r){if("options"in n){var o=n.options.map(function(a,c){return TR(e,a,t,c)}).filter(function(a){return NR(e,a)});return o.length>0?{type:"group",data:n,options:o,index:r}:void 0}var i=TR(e,n,t,r);return NR(e,i)?i:void 0}).filter(fZ)}function LR(e){return e.reduce(function(t,n){return n.type==="group"?t.push.apply(t,b1(n.options.map(function(r){return r.data}))):t.push(n.data),t},[])}function _R(e,t){return e.reduce(function(n,r){return r.type==="group"?n.push.apply(n,b1(r.options.map(function(o){return{data:o.data,id:"".concat(t,"-").concat(r.index,"-").concat(o.index)}}))):n.push({data:r.data,id:"".concat(t,"-").concat(r.index)}),n},[])}function NR(e,t){var n=e.inputValue,r=n===void 0?"":n,o=t.data,i=t.isSelected,a=t.label,c=t.value;return(!KA(e)||!i)&&YA(e,{label:a,value:c,data:o},r)}var Wv=function(e,t){var n;return((n=e.find(function(r){return r.data===t}))===null||n===void 0?void 0:n.id)||null},XA=function(e,t){return e.getOptionLabel(t)},Jp=function(e,t){return e.getOptionValue(t)};function UA(e,t,n){return typeof e.isOptionDisabled=="function"&&e.isOptionDisabled(t,n)}function ZA(e,t,n){if(n.indexOf(t)>-1)return!0;if(typeof e.isOptionSelected=="function")return e.isOptionSelected(t,n);var r=Jp(e,t);return n.some(function(o){return Jp(e,o)===r})}function YA(e,t,n){return!e.filterOption||e.filterOption(t,n)}var KA=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return t===void 0?n:t},qZ=1,JA=function(e){(function(s,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function");s.prototype=Object.create(d&&d.prototype,{constructor:{value:s,writable:!0,configurable:!0}}),Object.defineProperty(s,"prototype",{writable:!1}),d&&py(s,d)})(c,C.Component);var t,n,r,o,i,a=(t=c,n=hA(),function(){var s,d=Xp(t);if(n){var f=Xp(this).constructor;s=Reflect.construct(d,arguments,f)}else s=d.apply(this,arguments);return hU(this,s)});function c(s){var d;if(function(h,y){if(!(h instanceof y))throw new TypeError("Cannot call a class as a function")}(this,c),(d=a.call(this,s)).state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},d.blockOptionHover=!1,d.isComposing=!1,d.commonProps=void 0,d.initialTouchX=0,d.initialTouchY=0,d.openAfterFocus=!1,d.scrollToFocusedOptionOnUpdate=!1,d.userIsDragging=void 0,d.isAppleDevice=jA()||YZ(),d.controlRef=null,d.getControlRef=function(h){d.controlRef=h},d.focusedOptionRef=null,d.getFocusedOptionRef=function(h){d.focusedOptionRef=h},d.menuListRef=null,d.getMenuListRef=function(h){d.menuListRef=h},d.inputRef=null,d.getInputRef=function(h){d.inputRef=h},d.focus=d.focusInput,d.blur=d.blurInput,d.onChange=function(h,y){var b=d.props,S=b.onChange,m=b.name;y.name=m,d.ariaOnChange(h,y),S(h,y)},d.setValue=function(h,y,b){var S=d.props,m=S.closeMenuOnSelect,x=S.isMulti,I=S.inputValue;d.onInputChange("",{action:"set-value",prevInputValue:I}),m&&(d.setState({inputIsHiddenAfterUpdate:!x}),d.onMenuClose()),d.setState({clearFocusValueOnUpdate:!0}),d.onChange(h,{action:y,option:b})},d.selectOption=function(h){var y=d.props,b=y.blurInputOnSelect,S=y.isMulti,m=y.name,x=d.state.selectValue,I=S&&d.isOptionSelected(h,x),R=d.isOptionDisabled(h,x);if(I){var E=d.getOptionValue(h);d.setValue(x.filter(function(P){return d.getOptionValue(P)!==E}),"deselect-option",h)}else{if(R)return void d.ariaOnChange(h,{action:"select-option",option:h,name:m});S?d.setValue([].concat(b1(x),[h]),"select-option",h):d.setValue(h,"select-option")}b&&d.blurInput()},d.removeValue=function(h){var y=d.props.isMulti,b=d.state.selectValue,S=d.getOptionValue(h),m=b.filter(function(I){return d.getOptionValue(I)!==S}),x=Cf(y,m,m[0]||null);d.onChange(x,{action:"remove-value",removedValue:h}),d.focusInput()},d.clearValue=function(){var h=d.state.selectValue;d.onChange(Cf(d.props.isMulti,[],null),{action:"clear",removedValues:h})},d.popValue=function(){var h=d.props.isMulti,y=d.state.selectValue,b=y[y.length-1],S=y.slice(0,y.length-1),m=Cf(h,S,S[0]||null);d.onChange(m,{action:"pop-value",removedValue:b})},d.getFocusedOptionId=function(h){return Wv(d.state.focusableOptionsWithIds,h)},d.getFocusableOptionsWithIds=function(){return _R(If(d.props,d.state.selectValue),d.getElementId("option"))},d.getValue=function(){return d.state.selectValue},d.cx=function(){for(var h=arguments.length,y=new Array(h),b=0;b5||m>5}},d.onTouchEnd=function(h){d.userIsDragging||(d.controlRef&&!d.controlRef.contains(h.target)&&d.menuListRef&&!d.menuListRef.contains(h.target)&&d.blurInput(),d.initialTouchX=0,d.initialTouchY=0)},d.onControlTouchEnd=function(h){d.userIsDragging||d.onControlMouseDown(h)},d.onClearIndicatorTouchEnd=function(h){d.userIsDragging||d.onClearIndicatorMouseDown(h)},d.onDropdownIndicatorTouchEnd=function(h){d.userIsDragging||d.onDropdownIndicatorMouseDown(h)},d.handleInputChange=function(h){var y=d.props.inputValue,b=h.currentTarget.value;d.setState({inputIsHiddenAfterUpdate:!1}),d.onInputChange(b,{action:"input-change",prevInputValue:y}),d.props.menuIsOpen||d.onMenuOpen()},d.onInputFocus=function(h){d.props.onFocus&&d.props.onFocus(h),d.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(d.openAfterFocus||d.props.openMenuOnFocus)&&d.openMenu("first"),d.openAfterFocus=!1},d.onInputBlur=function(h){var y=d.props.inputValue;d.menuListRef&&d.menuListRef.contains(document.activeElement)?d.inputRef.focus():(d.props.onBlur&&d.props.onBlur(h),d.onInputChange("",{action:"input-blur",prevInputValue:y}),d.onMenuClose(),d.setState({focusedValue:null,isFocused:!1}))},d.onOptionHover=function(h){if(!d.blockOptionHover&&d.state.focusedOption!==h){var y=d.getFocusableOptions().indexOf(h);d.setState({focusedOption:h,focusedOptionId:y>-1?d.getFocusedOptionId(h):null})}},d.shouldHideSelectedOptions=function(){return KA(d.props)},d.onValueInputFocus=function(h){h.preventDefault(),h.stopPropagation(),d.focus()},d.onKeyDown=function(h){var y=d.props,b=y.isMulti,S=y.backspaceRemovesValue,m=y.escapeClearsValue,x=y.inputValue,I=y.isClearable,R=y.isDisabled,E=y.menuIsOpen,P=y.onKeyDown,A=y.tabSelectsValue,O=y.openMenuOnFocus,W=d.state,$=W.focusedOption,j=W.focusedValue,V=W.selectValue;if(!(R||typeof P=="function"&&(P(h),h.defaultPrevented))){switch(d.blockOptionHover=!0,h.key){case"ArrowLeft":if(!b||x)return;d.focusValue("previous");break;case"ArrowRight":if(!b||x)return;d.focusValue("next");break;case"Delete":case"Backspace":if(x)return;if(j)d.removeValue(j);else{if(!S)return;b?d.popValue():I&&d.clearValue()}break;case"Tab":if(d.isComposing||h.shiftKey||!E||!A||!$||O&&d.isOptionSelected($,V))return;d.selectOption($);break;case"Enter":if(h.keyCode===229)break;if(E){if(!$||d.isComposing)return;d.selectOption($);break}return;case"Escape":E?(d.setState({inputIsHiddenAfterUpdate:!1}),d.onInputChange("",{action:"menu-close",prevInputValue:x}),d.onMenuClose()):I&&m&&d.clearValue();break;case" ":if(x)return;if(!E){d.openMenu("first");break}if(!$)return;d.selectOption($);break;case"ArrowUp":E?d.focusOption("up"):d.openMenu("last");break;case"ArrowDown":E?d.focusOption("down"):d.openMenu("first");break;case"PageUp":if(!E)return;d.focusOption("pageup");break;case"PageDown":if(!E)return;d.focusOption("pagedown");break;case"Home":if(!E)return;d.focusOption("first");break;case"End":if(!E)return;d.focusOption("last");break;default:return}h.preventDefault()}},d.state.instancePrefix="react-select-"+(d.props.instanceId||++qZ),d.state.selectValue=hR(s.value),s.menuIsOpen&&d.state.selectValue.length){var f=d.getFocusableOptionsWithIds(),g=d.buildFocusableOptions(),v=g.indexOf(d.state.selectValue[0]);d.state.focusableOptionsWithIds=f,d.state.focusedOption=g[v],d.state.focusedOptionId=Wv(f,g[v])}return d}return r=c,o=[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&vR(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(s){var d=this.props,f=d.isDisabled,g=d.menuIsOpen,v=this.state.isFocused;(v&&!f&&s.isDisabled||v&&g&&!s.menuIsOpen)&&this.focusInput(),v&&f&&!s.isDisabled?this.setState({isFocused:!1},this.onMenuClose):v||f||!s.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(vR(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(s,d){this.props.onInputChange(s,d)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(s){var d=this,f=this.state,g=f.selectValue,v=f.isFocused,h=this.buildFocusableOptions(),y=s==="first"?0:h.length-1;if(!this.props.isMulti){var b=h.indexOf(g[0]);b>-1&&(y=b)}this.scrollToFocusedOptionOnUpdate=!(v&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:h[y],focusedOptionId:this.getFocusedOptionId(h[y])},function(){return d.onMenuOpen()})}},{key:"focusValue",value:function(s){var d=this.state,f=d.selectValue,g=d.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var v=f.indexOf(g);g||(v=-1);var h=f.length-1,y=-1;if(f.length){switch(s){case"previous":y=v===0?0:v===-1?h:v-1;break;case"next":v>-1&&v0&&arguments[0]!==void 0?arguments[0]:"first",d=this.props.pageSize,f=this.state.focusedOption,g=this.getFocusableOptions();if(g.length){var v=0,h=g.indexOf(f);f||(h=-1),s==="up"?v=h>0?h-1:g.length-1:s==="down"?v=(h+1)%g.length:s==="pageup"?(v=h-d)<0&&(v=0):s==="pagedown"?(v=h+d)>g.length-1&&(v=g.length-1):s==="last"&&(v=g.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:g[v],focusedValue:null,focusedOptionId:this.getFocusedOptionId(g[v])})}}},{key:"getTheme",value:function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(Vv):Ue(Ue({},Vv),this.props.theme):Vv}},{key:"getCommonProps",value:function(){var s=this.clearValue,d=this.cx,f=this.getStyles,g=this.getClassNames,v=this.getValue,h=this.selectOption,y=this.setValue,b=this.props,S=b.isMulti,m=b.isRtl,x=b.options;return{clearValue:s,cx:d,getStyles:f,getClassNames:g,getValue:v,hasValue:this.hasValue(),isMulti:S,isRtl:m,options:x,selectOption:h,selectProps:b,setValue:y,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var s=this.props,d=s.isClearable,f=s.isMulti;return d===void 0?f:d}},{key:"isOptionDisabled",value:function(s,d){return UA(this.props,s,d)}},{key:"isOptionSelected",value:function(s,d){return ZA(this.props,s,d)}},{key:"filterOption",value:function(s,d){return YA(this.props,s,d)}},{key:"formatOptionLabel",value:function(s,d){if(typeof this.props.formatOptionLabel=="function"){var f=this.props.inputValue,g=this.state.selectValue;return this.props.formatOptionLabel(s,{context:d,inputValue:f,selectValue:g})}return this.getOptionLabel(s)}},{key:"formatGroupLabel",value:function(s){return this.props.formatGroupLabel(s)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var s=this.props,d=s.isDisabled,f=s.isSearchable,g=s.inputId,v=s.inputValue,h=s.tabIndex,y=s.form,b=s.menuIsOpen,S=s.required,m=this.getComponents().Input,x=this.state,I=x.inputIsHidden,R=x.ariaSelection,E=this.commonProps,P=g||this.getElementId("input"),A=Ue(Ue(Ue({"aria-autocomplete":"list","aria-expanded":b,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":S,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},b&&{"aria-controls":this.getElementId("listbox")}),!f&&{"aria-readonly":!0}),this.hasValue()?(R==null?void 0:R.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return f?C.createElement(m,Qe({},E,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:P,innerRef:this.getInputRef,isDisabled:d,isHidden:I,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:h,form:y,type:"text",value:v},A)):C.createElement(GZ,Qe({id:P,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Yp,onFocus:this.onInputFocus,disabled:d,tabIndex:h,inputMode:"none",form:y,value:""},A))}},{key:"renderPlaceholderOrValue",value:function(){var s=this,d=this.getComponents(),f=d.MultiValue,g=d.MultiValueContainer,v=d.MultiValueLabel,h=d.MultiValueRemove,y=d.SingleValue,b=d.Placeholder,S=this.commonProps,m=this.props,x=m.controlShouldRenderValue,I=m.isDisabled,R=m.isMulti,E=m.inputValue,P=m.placeholder,A=this.state,O=A.selectValue,W=A.focusedValue,$=A.isFocused;if(!this.hasValue()||!x)return E?null:C.createElement(b,Qe({},S,{key:"placeholder",isDisabled:I,isFocused:$,innerProps:{id:this.getElementId("placeholder")}}),P);if(R)return O.map(function(V,U){var Z=V===W,_="".concat(s.getOptionLabel(V),"-").concat(s.getOptionValue(V));return C.createElement(f,Qe({},S,{components:{Container:g,Label:v,Remove:h},isFocused:Z,isDisabled:I,key:_,index:U,removeProps:{onClick:function(){return s.removeValue(V)},onTouchEnd:function(){return s.removeValue(V)},onMouseDown:function(F){F.preventDefault()}},data:V}),s.formatOptionLabel(V,"value"))});if(E)return null;var j=O[0];return C.createElement(y,Qe({},S,{data:j,isDisabled:I}),this.formatOptionLabel(j,"value"))}},{key:"renderClearIndicator",value:function(){var s=this.getComponents().ClearIndicator,d=this.commonProps,f=this.props,g=f.isDisabled,v=f.isLoading,h=this.state.isFocused;if(!this.isClearable()||!s||g||!this.hasValue()||v)return null;var y={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return C.createElement(s,Qe({},d,{innerProps:y,isFocused:h}))}},{key:"renderLoadingIndicator",value:function(){var s=this.getComponents().LoadingIndicator,d=this.commonProps,f=this.props,g=f.isDisabled,v=f.isLoading,h=this.state.isFocused;return s&&v?C.createElement(s,Qe({},d,{innerProps:{"aria-hidden":"true"},isDisabled:g,isFocused:h})):null}},{key:"renderIndicatorSeparator",value:function(){var s=this.getComponents(),d=s.DropdownIndicator,f=s.IndicatorSeparator;if(!d||!f)return null;var g=this.commonProps,v=this.props.isDisabled,h=this.state.isFocused;return C.createElement(f,Qe({},g,{isDisabled:v,isFocused:h}))}},{key:"renderDropdownIndicator",value:function(){var s=this.getComponents().DropdownIndicator;if(!s)return null;var d=this.commonProps,f=this.props.isDisabled,g=this.state.isFocused,v={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return C.createElement(s,Qe({},d,{innerProps:v,isDisabled:f,isFocused:g}))}},{key:"renderMenu",value:function(){var s=this,d=this.getComponents(),f=d.Group,g=d.GroupHeading,v=d.Menu,h=d.MenuList,y=d.MenuPortal,b=d.LoadingMessage,S=d.NoOptionsMessage,m=d.Option,x=this.commonProps,I=this.state.focusedOption,R=this.props,E=R.captureMenuScroll,P=R.inputValue,A=R.isLoading,O=R.loadingMessage,W=R.minMenuHeight,$=R.maxMenuHeight,j=R.menuIsOpen,V=R.menuPlacement,U=R.menuPosition,Z=R.menuPortalTarget,_=R.menuShouldBlockScroll,F=R.menuShouldScrollIntoView,J=R.noOptionsMessage,z=R.onMenuScrollToTop,q=R.onMenuScrollToBottom;if(!j)return null;var ae,te=function(ge,Oe){var Ce=ge.type,Te=ge.data,st=ge.isDisabled,$e=ge.isSelected,Fe=ge.label,We=ge.value,Ve=I===Te,Ge=st?void 0:function(){return s.onOptionHover(Te)},Le=st?void 0:function(){return s.selectOption(Te)},xt="".concat(s.getElementId("option"),"-").concat(Oe),D={id:xt,onClick:Le,onMouseMove:Ge,onMouseOver:Ge,tabIndex:-1,role:"option","aria-selected":s.isAppleDevice?void 0:$e};return C.createElement(m,Qe({},x,{innerProps:D,data:Te,isDisabled:st,isSelected:$e,key:xt,label:Fe,type:Ce,value:We,isFocused:Ve,innerRef:Ve?s.getFocusedOptionRef:void 0}),s.formatOptionLabel(ge.data,"menu"))};if(this.hasOptions())ae=this.getCategorizedOptions().map(function(ge){if(ge.type==="group"){var Oe=ge.data,Ce=ge.options,Te=ge.index,st="".concat(s.getElementId("group"),"-").concat(Te),$e="".concat(st,"-heading");return C.createElement(f,Qe({},x,{key:st,data:Oe,options:Ce,Heading:g,headingProps:{id:$e,data:ge.data},label:s.formatGroupLabel(ge.data)}),ge.options.map(function(Fe){return te(Fe,"".concat(Te,"-").concat(Fe.index))}))}if(ge.type==="option")return te(ge,"".concat(ge.index))});else if(A){var he=O({inputValue:P});if(he===null)return null;ae=C.createElement(b,x,he)}else{var Se=J({inputValue:P});if(Se===null)return null;ae=C.createElement(S,x,Se)}var pe={minMenuHeight:W,maxMenuHeight:$,menuPlacement:V,menuPosition:U,menuShouldScrollIntoView:F},ye=C.createElement(mZ,Qe({},x,pe),function(ge){var Oe=ge.ref,Ce=ge.placerProps,Te=Ce.placement,st=Ce.maxHeight;return C.createElement(v,Qe({},x,pe,{innerRef:Oe,innerProps:{onMouseDown:s.onMenuMouseDown,onMouseMove:s.onMenuMouseMove},isLoading:A,placement:Te}),C.createElement(XZ,{captureEnabled:E,onTopArrive:z,onBottomArrive:q,lockEnabled:_},function($e){return C.createElement(h,Qe({},x,{innerRef:function(Fe){s.getMenuListRef(Fe),$e(Fe)},innerProps:{role:"listbox","aria-multiselectable":x.isMulti,id:s.getElementId("listbox")},isLoading:A,maxHeight:st,focusedOption:I}),ae)}))});return Z||U==="fixed"?C.createElement(y,Qe({},x,{appendTo:Z,controlElement:this.controlRef,menuPlacement:V,menuPosition:U}),ye):ye}},{key:"renderFormField",value:function(){var s=this,d=this.props,f=d.delimiter,g=d.isDisabled,v=d.isMulti,h=d.name,y=d.required,b=this.state.selectValue;if(y&&!this.hasValue()&&!g)return C.createElement(ZZ,{name:h,onFocus:this.onValueInputFocus});if(h&&!g){if(v){if(f){var S=b.map(function(I){return s.getOptionValue(I)}).join(f);return C.createElement("input",{name:h,type:"hidden",value:S})}var m=b.length>0?b.map(function(I,R){return C.createElement("input",{key:"i-".concat(R),name:h,type:"hidden",value:s.getOptionValue(I)})}):C.createElement("input",{name:h,type:"hidden",value:""});return C.createElement("div",null,m)}var x=b[0]?this.getOptionValue(b[0]):"";return C.createElement("input",{name:h,type:"hidden",value:x})}}},{key:"renderLiveRegion",value:function(){var s=this.commonProps,d=this.state,f=d.ariaSelection,g=d.focusedOption,v=d.focusedValue,h=d.isFocused,y=d.selectValue,b=this.getFocusableOptions();return C.createElement(DZ,Qe({},s,{id:this.getElementId("live-region"),ariaSelection:f,focusedOption:g,focusedValue:v,isFocused:h,selectValue:y,focusableOptions:b,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var s=this.getComponents(),d=s.Control,f=s.IndicatorsContainer,g=s.SelectContainer,v=s.ValueContainer,h=this.props,y=h.className,b=h.id,S=h.isDisabled,m=h.menuIsOpen,x=this.state.isFocused,I=this.commonProps=this.getCommonProps();return C.createElement(g,Qe({},I,{className:y,innerProps:{id:b,onKeyDown:this.onKeyDown},isDisabled:S,isFocused:x}),this.renderLiveRegion(),C.createElement(d,Qe({},I,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:S,isFocused:x,menuIsOpen:m}),C.createElement(v,Qe({},I,{isDisabled:S}),this.renderPlaceholderOrValue(),this.renderInput()),C.createElement(f,Qe({},I,{isDisabled:S}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],i=[{key:"getDerivedStateFromProps",value:function(s,d){var f=d.prevProps,g=d.clearFocusValueOnUpdate,v=d.inputIsHiddenAfterUpdate,h=d.ariaSelection,y=d.isFocused,b=d.prevWasFocused,S=d.instancePrefix,m=s.options,x=s.value,I=s.menuIsOpen,R=s.inputValue,E=s.isMulti,P=hR(x),A={};if(f&&(x!==f.value||m!==f.options||I!==f.menuIsOpen||R!==f.inputValue)){var O=I?function(_,F){return LR(If(_,F))}(s,P):[],W=I?_R(If(s,P),"".concat(S,"-option")):[],$=g?function(_,F){var J=_.focusedValue,z=_.selectValue.indexOf(J);if(z>-1){if(F.indexOf(J)>-1)return J;if(z-1?J:F[0]}(d,O);A={selectValue:P,focusedOption:j,focusedOptionId:Wv(W,j),focusableOptionsWithIds:W,focusedValue:$,clearFocusValueOnUpdate:!1}}var V=v!=null&&s!==f?{inputIsHidden:v,inputIsHiddenAfterUpdate:void 0}:{},U=h,Z=y&&b;return y&&!Z&&(U={value:Cf(E,P,P[0]||null),options:P,action:"initial-input-focus"},Z=!b),(h==null?void 0:h.action)==="initial-input-focus"&&(U=null),Ue(Ue(Ue({},A),V),{},{prevProps:s,ariaSelection:U,prevWasFocused:Z})}}],o&&GS(r.prototype,o),i&&GS(r,i),Object.defineProperty(r,"prototype",{writable:!1}),c}();JA.defaultProps=QZ;var e8=C.forwardRef(function(e,t){var n=function(r){var o=r.defaultInputValue,i=o===void 0?"":o,a=r.defaultMenuIsOpen,c=a!==void 0&&a,s=r.defaultValue,d=s===void 0?null:s,f=r.inputValue,g=r.menuIsOpen,v=r.onChange,h=r.onInputChange,y=r.onMenuClose,b=r.onMenuOpen,S=r.value,m=ki(r,gU),x=Ti(C.useState(f!==void 0?f:i),2),I=x[0],R=x[1],E=Ti(C.useState(g!==void 0?g:c),2),P=E[0],A=E[1],O=Ti(C.useState(S!==void 0?S:d),2),W=O[0],$=O[1],j=C.useCallback(function(z,q){typeof v=="function"&&v(z,q),$(z)},[v]),V=C.useCallback(function(z,q){var ae;typeof h=="function"&&(ae=h(z,q)),R(ae!==void 0?ae:z)},[h]),U=C.useCallback(function(){typeof b=="function"&&b(),A(!0)},[b]),Z=C.useCallback(function(){typeof y=="function"&&y(),A(!1)},[y]),_=f!==void 0?f:I,F=g!==void 0?g:P,J=S!==void 0?S:W;return Ue(Ue({},m),{},{inputValue:_,menuIsOpen:F,onChange:j,onInputChange:V,onMenuClose:Z,onMenuOpen:U,value:J})}(e);return C.createElement(JA,Qe({ref:t},n))}),t8=e8,n8=function(){function e(){}return e.prototype.getCompatibleCell=function(t){var n;try{n=Gt(t,"selectedValue","string")}catch{n=void 0}var r,o,i=Gt(t,"values","object"),a=n?parseFloat(n):NaN,c=!0;try{c=Gt(t,"isDisabled","boolean")}catch{c=!1}try{r=Gt(t,"inputValue","string")}catch{r=void 0}try{o=Gt(t,"isOpen","boolean")}catch{o=!1}var s=n||"";return N(N({},t),{selectedValue:n,text:s,value:a,values:i,isDisabled:c,isOpen:o,inputValue:r})},e.prototype.update=function(t,n){var r=t.values.some(function(o){return o.value===n.text})?n.text:void 0;return this.getCompatibleCell(N(N({},t),{selectedValue:r,isOpen:n.isOpen,inputValue:n.inputValue}))},e.prototype.getClassName=function(t,n){var r=t.isOpen?"open":"closed";return"".concat(t.className?t.className:"").concat(r)},e.prototype.handleKeyDown=function(t,n,r,o,i,a,c){if((n===ie.SPACE||n===ie.ENTER)&&!o)return{cell:this.getCompatibleCell(N(N({},t),{isOpen:!t.isOpen})),enableEditMode:!1};var s=li(a,o,c);return r||i||!ii(n)||o&&n===ie.SPACE?{cell:t,enableEditMode:!1}:{cell:this.getCompatibleCell(N(N({},t),{inputValue:s,isOpen:!t.isOpen})),enableEditMode:!1}},e.prototype.handleCompositionEnd=function(t,n){return{cell:N(N({},t),{inputValue:n,isOpen:!t.isOpen}),enableEditMode:!1}},e.prototype.render=function(t,n,r){var o=this;return C.createElement(r8,{onCellChanged:function(i){return r(o.getCompatibleCell(i),!0)},cell:t})},e}(),r8=function(e){var t=e.onCellChanged,n=e.cell,r=C.useRef(null),o=C.useState(n.inputValue),i=o[0],a=o[1],c=C.useMemo(function(){return n.values.find(function(s){return s.value===n.text})},[n.text,n.values]);return C.useEffect(function(){n.isOpen&&r.current&&(r.current.focus(),a(n.inputValue))},[n.isOpen,n.inputValue]),C.createElement("div",{style:{width:"100%"},onPointerDown:function(s){return t(N(N({},n),{isOpen:!0}))}},C.createElement(t8,N({},n.inputValue&&{inputValue:i,defaultInputValue:i,onInputChange:function(s){return a(s)}},{isSearchable:!0,ref:r},n.isOpen!==void 0&&{menuIsOpen:n.isOpen},{onMenuClose:function(){return t(N(N({},n),{isOpen:!n.isOpen,inputValue:void 0}))},onMenuOpen:function(){return t(N(N({},n),{isOpen:!0}))},onChange:function(s){return t(N(N({},n),{selectedValue:s.value,isOpen:!1,inputValue:void 0}))},blurInputOnSelect:!0,defaultValue:c,value:c,isDisabled:n.isDisabled,options:n.values,onKeyDown:function(s){if(s.stopPropagation(),s.key==="Escape")return r.current.blur(),t(N(N({},n),{isOpen:!1,inputValue:void 0}))},components:{Option:o8,Menu:i8},styles:{container:function(s){var d;return N(N(N({},s),{width:"100%",height:"100%"}),(d=n.styles)===null||d===void 0?void 0:d.container)},control:function(s){var d;return N(N(N({},s),{border:"none",borderColor:"transparent",minHeight:"25px",background:"transparent",boxShadow:"none"}),(d=n.styles)===null||d===void 0?void 0:d.control)},indicatorsContainer:function(s){var d;return N(N(N({},s),{paddingTop:"0px"}),(d=n.styles)===null||d===void 0?void 0:d.indicatorsContainer)},dropdownIndicator:function(s){var d;return N(N(N({},s),{padding:"0px 4px"}),(d=n.styles)===null||d===void 0?void 0:d.dropdownIndicator)},singleValue:function(s){var d;return N(N(N({},s),{color:"inherit"}),(d=n.styles)===null||d===void 0?void 0:d.singleValue)},indicatorSeparator:function(s){var d;return N(N(N({},s),{marginTop:"4px",marginBottom:"4px"}),(d=n.styles)===null||d===void 0?void 0:d.indicatorSeparator)},input:function(s){var d;return N(N(N({},s),{padding:0}),(d=n.styles)===null||d===void 0?void 0:d.input)},valueContainer:function(s){var d;return N(N(N({},s),{padding:"0 8px"}),(d=n.styles)===null||d===void 0?void 0:d.valueContainer)}}})))},o8=function(e){var t=e.innerProps,n=e.label,r=e.isSelected,o=e.isFocused,i=e.isDisabled;return C.createElement("div",N({},t,{onPointerDown:function(a){return a.stopPropagation()},className:"rg-dropdown-option".concat(r?" selected":"").concat(o?" focused":"").concat(i?" disabled":"")}),n)},i8=function(e){var t=e.innerProps,n=e.children;return C.createElement("div",N({},t,{className:"rg-dropdown-menu",onPointerDown:function(r){return r.stopPropagation()}}),n)},QA={text:new fU,number:new dU,header:new uU,checkbox:new oU,date:new lU,email:new aU,time:new pU,chevron:new sU,dropdown:new n8},l8=function(e){var t=[],n=0;return e.forEach(function(r,o){if(e[o-1]){var i=e[o-1];r.idx-i.idx==1?t[n]?t[n].push(r):t.push([i,r]):(t.push([r]),n+=1)}else t.push([r])}),t},a8=function(e){var t=[],n=0;return e.forEach(function(r,o){if(e[o-1]){var i=e[o-1];r.idx-i.idx==1?t[n]?t[n].push(r):t.push([i,r]):(t.push([r]),n+=1)}else t.push([r])}),t};function s8(e,t){var n=f8(e);g8(e,t)&&(t=n(t)(C8)),t=n(t)(h8),t=n(t)(b8),t=n(t)(x8);var r=p8(e,t);return t=n(t)(uA),t=n(t)(w8),r&&(t=n(t)(m8)),t=n(t)(u8),t=n(t)(v8),r&&(t=n(t)(y8)),t=n(t)(I8),d8(e,t)&&(t=n(t)(S8)),t=n(t)(c8)}function u8(e,t){return t=t.selectionMode==="row"&&t.selectedIds.length>0?function(n){var r=n.cellMatrix.first.column,o=n.cellMatrix.last.column,i=n.cellMatrix.rows.filter(function(s){return n.selectedIds.includes(s.rowId)}).sort(function(s,d){return s.idx-d.idx}),a=l8(i).map(function(s){return n.cellMatrix.getRange(Ut(s[0],r),Ut(s[s.length-1],o))}),c=n.selectedRanges.length-1;return n.focusedLocation&&a.forEach(function(s,d){s.rows.forEach(function(f){var g;((g=n.focusedLocation)===null||g===void 0?void 0:g.row.rowId)===f.rowId&&(c=d)})}),N(N({},n),{selectionMode:"row",activeSelectedRangeIdx:c,selectedRanges:Mn([],a),selectedIndexes:i.map(function(s){return s.idx}),selectedIds:i.map(function(s){return s.rowId})})}(t):t.selectionMode==="column"&&t.selectedIds.length>0?function(n){var r=n.cellMatrix.first.row,o=n.cellMatrix.last.row,i=n.cellMatrix.columns.filter(function(s){return n.selectedIds.includes(s.columnId)}).sort(function(s,d){return s.idx-d.idx}),a=a8(i).map(function(s){return n.cellMatrix.getRange(Ut(r,s[0]),Ut(o,s[s.length-1]))}),c=n.selectedRanges.length-1;return n.focusedLocation&&a.forEach(function(s,d){s.columns.forEach(function(f){var g;((g=n.focusedLocation)===null||g===void 0?void 0:g.column.columnId)===f.columnId&&(c=d)})}),N(N({},n),{selectionMode:"column",activeSelectedRangeIdx:c,selectedRanges:Mn([],a),selectedIndexes:i.map(function(s){return s.idx}),selectedIds:i.map(function(s){return s.columnId})})}(t):N(N({},t),{selectedRanges:Mn([],t.selectedRanges).map(function(n){return t.cellMatrix.validateRange(n)})})}function c8(e,t){return N(N({},t),{enableFillHandle:!!e.enableFillHandle,enableRangeSelection:!!e.enableRangeSelection,enableColumnSelection:!!e.enableColumnSelection,enableRowSelection:!!e.enableRowSelection})}var d8=function(e,t){var n,r,o,i;return((n=e.focusLocation)===null||n===void 0?void 0:n.columnId)!==((r=t.focusedLocation)===null||r===void 0?void 0:r.column.columnId)||((o=e.focusLocation)===null||o===void 0?void 0:o.rowId)!==((i=t.focusedLocation)===null||i===void 0?void 0:i.row.rowId)||e.stickyRightColumns!==void 0&&e.stickyRightColumns!==t.rightStickyColumns||e.stickyBottomRows!==void 0&&e.stickyBottomRows!==t.bottomStickyRows},f8=function(e){return function(t){return function(n){return n(e,t)}}},p8=function(e,t){return!t.cellMatrix||e!==t.cellMatrix.props||e.stickyLeftColumns!==void 0&&e.stickyLeftColumns!==t.leftStickyColumns||e.stickyTopRows!==void 0&&e.stickyTopRows!==t.topStickyRows||e.stickyBottomRows!==void 0&&e.stickyBottomRows!==t.bottomStickyRows||e.stickyRightColumns!==void 0&&e.stickyRightColumns!==t.rightStickyColumns},g8=function(e,t){var n;return e.highlights!==((n=t.props)===null||n===void 0?void 0:n.highlights)};function h8(e,t){return t.props!==e&&(t=N(N({},t),{props:e})),t}function m8(e,t){var n=new cA;return N(N({},t),{cellMatrix:n.setProps(e).fillRowsAndCols({leftStickyColumns:t.leftStickyColumns||0,topStickyRows:t.topStickyRows||0,rightStickyColumns:t.rightStickyColumns||0,bottomStickyRows:t.bottomStickyRows||0}).setRangesToRenderLookup().fillSticky({leftStickyColumns:t.leftStickyColumns||0,topStickyRows:t.topStickyRows||0,rightStickyColumns:t.rightStickyColumns||0,bottomStickyRows:t.bottomStickyRows||0}).fillScrollableRange({leftStickyColumns:t.leftStickyColumns||0,topStickyRows:t.topStickyRows||0,rightStickyColumns:t.rightStickyColumns||0,bottomStickyRows:t.bottomStickyRows||0}).setEdgeLocations().getCellMatrix()})}function v8(e,t){return t.cellMatrix.columns.length>0&&t.focusedLocation&&!t.currentlyEditedCell&&(t=N(N({},t),{focusedLocation:t.cellMatrix.validateLocation(t.focusedLocation)})),t}function y8(e,t){return t.visibleRange&&(t=Jf(t)),t}function b8(e,t){return N(N({},t),{cellTemplates:N(N({},QA),e.customCellTemplates)})}function x8(e,t){return N(N({},t),{enableGroupIdRender:!!e.enableGroupIdRender})}function w8(e,t){return N(N({},t),{disableVirtualScrolling:!!e.disableVirtualScrolling})}function C8(e,t){var n,r,o=(n=e.highlights)===null||n===void 0?void 0:n.filter(function(i){return t.cellMatrix.rowIndexLookup[i.rowId]!==void 0&&t.cellMatrix.columnIndexLookup[i.columnId]!==void 0});return(o==null?void 0:o.length)!==((r=e.highlights)===null||r===void 0?void 0:r.length)&&console.error('Data inconsistency in ReactGrid "highlights" prop'),N(N({},t),{highlightLocations:o||[]})}function I8(e,t){var n=e.initialFocusLocation,r=!!t.focusedLocation;if(n&&!t.focusedLocation)if(qA(t,n))console.error('Data inconsistency in ReactGrid "initialFocusLocation" prop');else{var o=t.cellMatrix.getLocationById(n.rowId,n.columnId);t=wr(t,o)}var i=t.focusedLocation;return!r&&i&&(t=Ih(t,i)),t}function S8(e,t){var n=e.focusLocation,r=!!t.focusedLocation;if(n)if(qA(t,n))console.error('Data inconsistency in ReactGrid "focusLocation" prop');else{var o=t.cellMatrix.getLocationById(n.rowId,n.columnId);t=wr(t,o)}var i=t.focusedLocation;return!r&&i&&e.focusLocation&&t.selectedRanges.length<=1&&(t=Ih(t,i)),t}function qA(e,t){return!(e.cellMatrix.columnIndexLookup[t.columnId]!==void 0&&e.cellMatrix.rowIndexLookup[t.rowId]!==void 0)}function R8(e){return e.cellMatrix.ranges.stickyTopRange.height>0}function E8(e){return e.cellMatrix.ranges.stickyLeftRange.width>0}function P8(e){return!!(e.visibleRange&&e.visibleRange.width>0)}function k8(e){return!!(e.cellMatrix.scrollableRange.height>0&&e.cellMatrix.scrollableRange.first.column&&e.cellMatrix.scrollableRange.first.row&&e.cellMatrix.scrollableRange.last.row&&e.visibleRange&&e.visibleRange.height>0)}function A8(e){return e.cellMatrix.ranges.stickyBottomRange.height>0&&e.cellMatrix.rows.length>0}function M8(e){return e.cellMatrix.ranges.stickyRightRange.width>0}var eM=C.createContext({}),FR=function(e){var t=e.children,n=e.state;return He.createElement(eM.Provider,{value:n},t)},Ol=function(){return He.useContext(eM)},O8=function(e){var t,n,r,o,i,a,c,s,d,f,g,v,h,y,b=e.cellRenderer,S=Ol(),m=S.cellMatrix,x=R8(S),I=k8(S),R=E8(S),E=P8(S),P=A8(S),A=M8(S);if(!(x||I||R||E))return null;var O=void 0,W=S.visibleRange;I&&(O=m.scrollableRange.slice(W,"rows"));var $=m.ranges.stickyTopRange.height?-m.ranges.stickyBottomRange.height:0,j=m.ranges.stickyLeftRange.width?-m.ranges.stickyRightRange.width:0,V=m.ranges.stickyRightRange.width?-m.ranges.stickyLeftRange.width:0,U=m.ranges.stickyBottomRange.height?-m.ranges.stickyTopRange.height:0,Z=m.scrollableRange.rows.length!==0?m.ranges.stickyTopRange.height:0,_=m.scrollableRange.columns.length!==0?m.ranges.stickyLeftRange.width:0,F=m.scrollableRange.rows.length!==0?m.ranges.stickyBottomRange.height:0,J=m.scrollableRange.columns.length!==0?m.ranges.stickyRightRange.width:0;return C.createElement(C.Fragment,null,C.createElement(Ci,{renderChildren:I&&E,className:"rg-pane-center-middle",style:{position:"relative",width:"calc(100% - ".concat(m.ranges.stickyLeftRange.width+m.ranges.stickyRightRange.width,"px)"),height:m.scrollableRange.height,marginLeft:j,marginRight:V,marginTop:$,marginBottom:U,order:4}},C.createElement(Ii,{state:S,range:Hv(O)(W),borders:{bottom:!P,right:!A,left:!R,top:!x},cellRenderer:b})),C.createElement(Sf,{renderCondition:R,className:"shadow-left",zIndex:2,style:{width:m.ranges.stickyLeftRange.width,height:m.height,marginTop:-m.height,order:9}}),C.createElement(Sf,{renderCondition:A,className:"shadow-right",zIndex:2,style:{width:m.ranges.stickyRightRange.width,height:m.height,marginLeft:-m.ranges.stickyRightRange.width,marginTop:x||P?-m.height:0,order:x||P?12:8}}),C.createElement(Sf,{renderCondition:x,className:"shadow-top",zIndex:1,style:{width:!((t=S.props)===null||t===void 0)&&t.enableFullWidthHeader?"calc(100%)":m.width,height:m.ranges.stickyTopRange.height,marginTop:-m.height,order:10}}),C.createElement(Sf,{renderCondition:P,className:"shadow-bottom",zIndex:1,style:{width:!((n=S.props)===null||n===void 0)&&n.enableFullWidthHeader?"calc(100%)":m.width,height:m.ranges.stickyBottomRange.height,marginTop:-m.ranges.stickyBottomRange.height,order:11}}),C.createElement(Ci,{renderChildren:E&&P,className:"rg-pane-bottom",style:{width:"calc(100% - ".concat(m.ranges.stickyLeftRange.width+m.ranges.stickyRightRange.width,"px)"),height:m.ranges.stickyBottomRange.height,marginLeft:j,marginRight:V,marginTop:Z,order:7}},C.createElement(Ii,{state:S,range:Hv(m.ranges.stickyBottomRange)(W),borders:{top:!0,bottom:!0,right:!A,left:!R},cellRenderer:b})),C.createElement(Ci,{renderChildren:I&&A||!O,className:"rg-pane-right",style:{height:m.scrollableRange.height,width:m.width-m.ranges.stickyLeftRange.width-m.scrollableRange.width,marginTop:$,marginBottom:U,marginLeft:_,order:5}},C.createElement(Ii,{state:S,range:Xa(m.ranges.stickyRightRange)(O||m.ranges.stickyLeftRange),borders:{left:!0,top:!x,bottom:!P},cellRenderer:b})),C.createElement(Ci,{renderChildren:x&&E,className:"rg-pane-top",style:{width:"calc(100% - ".concat(m.ranges.stickyLeftRange.width+m.ranges.stickyRightRange.width,"px)"),height:m.ranges.stickyTopRange.height,marginBottom:F,marginLeft:j,marginRight:V,order:1,zIndex:((o=(r=S.props)===null||r===void 0?void 0:r.zIndexBase)!==null&&o!==void 0?o:0)+1}},C.createElement(Ii,{state:S,range:Hv(m.ranges.stickyTopRange)(W),borders:{top:!0,right:!A,left:!R},cellRenderer:b})),C.createElement(Ci,{renderChildren:I&&R||!O,className:"rg-pane-left",style:{height:m.scrollableRange.height,width:m.width-m.scrollableRange.width-m.ranges.stickyRightRange.width,marginRight:J,marginBottom:U,marginTop:$,order:3,zIndex:((a=(i=S.props)===null||i===void 0?void 0:i.zIndexBase)!==null&&a!==void 0?a:0)+1}},C.createElement(Ii,{state:S,range:Xa(m.ranges.stickyLeftRange)(O||m.ranges.stickyLeftRange),borders:{bottom:!P,top:!x,left:!0},cellRenderer:b})),C.createElement(Ci,{renderChildren:P&&A,className:"rg-pane-bottom rg-pane-right rg-pane-shadow shadow-bottom-right-corner",style:{height:m.ranges.stickyBottomRange.height,width:m.width-m.ranges.stickyLeftRange.width-m.scrollableRange.width,marginTop:Z,marginLeft:_,order:8,zIndex:((s=(c=S.props)===null||c===void 0?void 0:c.zIndexBase)!==null&&s!==void 0?s:0)+1}},C.createElement(Ii,{state:S,range:Xa(m.ranges.stickyRightRange)(m.ranges.stickyBottomRange),borders:{top:!0,left:!0,right:!0,bottom:!0},cellRenderer:b})),C.createElement(Ci,{renderChildren:P&&R,className:"rg-pane-bottom rg-pane-left rg-pane-shadow shadow-bottom-left-corner",style:{height:m.ranges.stickyBottomRange.height,width:m.width-m.ranges.stickyRightRange.width-m.scrollableRange.width,marginRight:J,marginTop:Z,order:6,zIndex:((f=(d=S.props)===null||d===void 0?void 0:d.zIndexBase)!==null&&f!==void 0?f:0)+2}},C.createElement(Ii,{state:S,range:Xa(m.ranges.stickyLeftRange)(m.ranges.stickyBottomRange),borders:{top:!0,left:!0,right:!0,bottom:!0},cellRenderer:b})),C.createElement(Ci,{renderChildren:x&&A,className:"rg-pane-top rg-pane-right rg-pane-shadow shadow-top-right-corner",style:{height:m.ranges.stickyTopRange.height,width:m.width-m.scrollableRange.width-m.ranges.stickyLeftRange.width,marginLeft:_,marginBottom:F,order:2,zIndex:((v=(g=S.props)===null||g===void 0?void 0:g.zIndexBase)!==null&&v!==void 0?v:0)+2}},C.createElement(Ii,{state:S,range:Xa(m.ranges.stickyRightRange)(m.ranges.stickyTopRange),borders:{top:!0,left:!0,right:!0,bottom:!0},cellRenderer:b})),C.createElement(Ci,{renderChildren:x&&R,className:"rg-pane-top rg-pane-left rg-pane-shadow shadow-top-left-corner",style:{height:m.ranges.stickyTopRange.height,width:m.width-m.scrollableRange.width-m.ranges.stickyRightRange.width,marginRight:J,marginBottom:F,order:0,zIndex:((y=(h=S.props)===null||h===void 0?void 0:h.zIndexBase)!==null&&y!==void 0?y:0)+3}},C.createElement(Ii,{state:S,range:Xa(m.ranges.stickyLeftRange)(m.ranges.stickyTopRange),borders:{top:!0,left:!0,right:!0,bottom:!0},cellRenderer:b})))},T8=function(){var e=Ol(),t=e.linePosition,n=e.lineOrientation,r=e.cellMatrix,o=n==="vertical",i=Object.assign({},o?{left:t,height:r.height}:{top:t,width:r.width});return t===-1?null:C.createElement("div",{className:"rg-line ".concat(o?"rg-line-vertical":"rg-line-horizontal"),style:i})},L8=function(){var e=Ol(),t=e.lineOrientation,n=e.shadowSize,r=e.shadowPosition,o=e.shadowCursor,i=e.cellMatrix,a=t==="vertical";return r===-1?null:He.createElement("div",{className:"rg-shadow",style:{cursor:o,top:a?0:r,left:a?r:0,width:a?n:i.width,height:a?i.height:n}})};function Rl(e){return e.selectedRanges[e.activeSelectedRangeIdx]}var tM={type:"",text:"",value:NaN};function nM(e,t,n){n===void 0&&(n=!1);var r=_8(t),o=r.div,i=r.table,a=function(c,s,d,f,g){var v="",h="";return d.rows.forEach(function(y){var b=f.insertRow();d.columns.forEach(function(S){var m=b.insertCell(),x=$o(c,{row:y,column:S}).cell,I=x.text||" ";m.textContent=I,v=h===""?x.text:v+(h===y.rowId?" ":` +`)+I,h=y.rowId,m.setAttribute("data-reactgrid",JSON.stringify(x)),m.style.color="initial",m.style.border="initial",m.style.fontSize="initial",m.style.backgroundColor="initial",F8(c,{row:y,column:S},g)})}),v}(e,0,t,i,n);return N8(o,i),{div:o,text:a}}function _8(e){var t=document.createElement("div"),n=document.createElement("table");return n.setAttribute("empty-cells","show"),n.setAttribute("data-reactgrid","reactgrid-content"),{div:t,table:n,location:{row:e.first.row,column:e.first.column}}}function N8(e,t){e.classList.add("rg-copy-container"),e.setAttribute("contenteditable","true"),e.style.position="fixed",e.style.top="50%",e.style.left="50%",e.appendChild(t)}function F8(e,t,n){n&&(e=$i(e,t,tM))}function Qp(e,t,n){return $o(e,t).cell.groupId===n.groupId?$i(e,t,n):(console.warn("New cells data can't be appended into location: ('".concat(t.column.columnId,"', '").concat(t.row.rowId,"'). Cell's 'groupId' field doesn't match!")),e)}function rM(e,t){var n,r,o=Rl(e);if(t.length!==1||t[0].length!==1){var i,a=e.cellMatrix;if(t.forEach(function(s,d){return s.forEach(function(f,g){var v=o.first.row.idx+d,h=o.first.column.idx+g;v<=a.last.row.idx&&h<=a.last.column.idx&&(i=a.getLocation(v,h),e=Qp(e,i,f))})}),!i)return e;var c=a.getRange(o.first,i);return!((n=e==null?void 0:e.props)===null||n===void 0)&&n.onSelectionChanging&&!e.props.onSelectionChanging([c])?e:(!((r=e==null?void 0:e.props)===null||r===void 0)&&r.onSelectionChanged&&e.props.onSelectionChanged([c]),N(N({},e),{selectedRanges:[a.getRange(o.first,i)],activeSelectedRangeIdx:0}))}return o.rows.forEach(function(s){return o.columns.forEach(function(d){e=Qp(e,Ut(s,d),t[0][0])})}),e}function DR(e){return e.selectedRanges.map(function(t){return t.rows.flatMap(function(n){return t.columns.map(function(r){return{columnId:r.columnId,rowId:n.rowId}})})})}function oM(){return wh(this,void 0,void 0,function(){return Ch(this,function(e){switch(e.label){case 0:return[4,navigator.clipboard.readText().catch(function(){throw new Error("Failed to read textual data from clipboard!")})];case 1:return[2,e.sent().split(` +`).map(function(t){return t.split(" ").map(function(n){return{type:"text",text:n,value:_s(n)}})})]}})})}function D8(e){return wh(this,void 0,void 0,function(){var t;return Ch(this,function(n){switch(n.label){case 0:return[4,e.getType("text/html").catch(function(){throw new Error("Failed to get HTML Blob data from clipboard!")})];case 1:return[4,n.sent().text().catch(function(){throw new Error("Failed to parse HTML Blob to text!")})];case 2:t=n.sent();try{return[2,new DOMParser().parseFromString(t,"text/html")]}catch{throw new Error("Failed to parse HTML string to DOM!")}return[2]}})})}function B8(e){var t,n;return wh(this,void 0,void 0,function(){var r,o,i,a,c,s,d,f;return Ch(this,function(g){switch(g.label){case 0:return r=[],!((t=e.firstElementChild)===null||t===void 0)&&t.firstElementChild?[3,2]:[4,oM()];case 1:return[2,g.sent()];case 2:for(o=e.firstElementChild.firstElementChild.children,i=0;i=0&&(b=S),C.createElement("div",{ref:e,className:"rg-context-menu",style:{visibility:a===-1&&i===-1?"hidden":"visible",top:n.top+"px",left:n.left+"px"}},b.map(function(m,x){var I=m.handler,R=m.id,E=m.label;return C.createElement("div",{key:x,className:"rg-context-menu-option",onPointerDown:function(P){return P.stopPropagation()},onClick:function(){I(o==="row"?r:[],o==="column"?r:[],o,DR(t)),t.update(function(P){return N(N(N({},P),{contextMenuPosition:{top:-1,left:-1}}),(R==="copy"||R==="cut")&&{copyRange:Rl(P)})})}},E)}))};function BR(e,t){t===void 0&&(t=!1),function(n,r){var o;r===void 0&&(r=!1);var i=Rl(n);if(i){var a=nM(n,i,r).div;document.body.appendChild(a),a.focus(),document.execCommand("selectAll",!1,void 0),document.execCommand("copy"),document.body.removeChild(a),(o=n.hiddenFocusElement)===null||o===void 0||o.focus()}}(e,t)}var W8=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.updateState=function(r){return n.setState(r)},n.stateUpdater=function(r){return FY(r(n.state),n.state,n.props,n.updateState)},n.pointerEventsController=new qX(n.stateUpdater),n.eventHandlers=new rU(n.stateUpdater,n.pointerEventsController),n.cellMatrixBuilder=new cA,n.state=N(N({update:n.stateUpdater},aY),{currentBehavior:new O1,cellMatrix:n.cellMatrixBuilder.setProps(n.props).fillRowsAndCols().setRangesToRenderLookup().fillSticky().fillScrollableRange().setEdgeLocations().getCellMatrix()}),n.clearSelections=function(){n.setState(function(r){return r.selectedIds.length===0&&r.selectedIndexes.length===0&&r.selectedRanges.length===0?null:{selectedIds:[],selectedIndexes:[],selectedRanges:[]}})},n}return Bo(t,e),t.getDerivedStateFromProps=function(n,r){try{return s8(n,r)}catch(o){return console.error(o),null}},t.prototype.componentDidUpdate=function(n,r){var o;!r.reactGridElement&&this.state.reactGridElement&&((o=this.state.scrollableElement)===null||o===void 0||o.addEventListener("scroll",this.eventHandlers.scrollHandler)),KX(0,r,this.state)},t.prototype.componentDidMount=function(){window.addEventListener("resize",this.eventHandlers.windowResizeHandler)},t.prototype.componentWillUnmount=function(){var n;window.removeEventListener("resize",this.eventHandlers.windowResizeHandler),(n=this.state.scrollableElement)===null||n===void 0||n.removeEventListener("scroll",this.eventHandlers.scrollHandler),this.setState({contextMenuPosition:{top:-1,left:-1}})},t.prototype.render=function(){var n=this.state,r=this.eventHandlers;return n.legacyBrowserMode?C.createElement(FR,{state:n},C.createElement(wY,{eventHandlers:r})):C.createElement(FR,{state:n},C.createElement(bY,{eventHandlers:r},C.createElement(O8,{cellRenderer:SY}),C.createElement(T8,null),C.createElement(L8,null),C.createElement(V8,null),n.currentlyEditedCell&&C.createElement(dY,null)))},t}(C.Component),ma=X8(wr),G8=Z8(ma),z8=U8(ma),$R=Y8(ma),Gv=K8(ma),VR=J8(ma),WR=Q8(ma),iM=q8(ma),H8=iM(function(e,t){var n,r=cM(e,e.cellMatrix.ranges.stickyTopRange.height+e.cellMatrix.ranges.stickyBottomRange.height),o=e.cellMatrix.ranges.stickyTopRange.rows.length>0,i=o&&m1(e,t),a=e.cellMatrix.scrollableRange.rows.length>0,c=a&&t.row.idx>e.cellMatrix.scrollableRange.first.row.idx&&t.row.idx<=e.cellMatrix.scrollableRange.last.row.idx,s=a&&t.row.idx===e.cellMatrix.scrollableRange.first.row.idx,d=e.cellMatrix.ranges.stickyBottomRange.rows.length>0,f=d&&t.row.idx>=e.cellMatrix.ranges.stickyBottomRange.first.row.idx,g=d&&(t==null?void 0:t.row.idx)===((n=e.cellMatrix.ranges)===null||n===void 0?void 0:n.stickyBottomRange.first.row.idx),v=e.cellMatrix.scrollableRange.rows.filter(function(S){return S.top+S.height0,o=r&&m1(e,t),i=r&&t.row.idx===((n=e.cellMatrix.ranges)===null||n===void 0?void 0:n.stickyTopRange.last.row.idx),a=e.cellMatrix.scrollableRange.rows.length>0,c=a&&t.row.idx>=e.cellMatrix.scrollableRange.first.row.idx&&t.row.idx0,f=d&&t.row.idx>=e.cellMatrix.ranges.stickyBottomRange.first.row.idx,g=cM(e,e.cellMatrix.ranges.stickyTopRange.height+e.cellMatrix.ranges.stickyBottomRange.height),v=e.cellMatrix.scrollableRange.rows.filter(function(S){return S.top+S.height=e.cellMatrix.first.column.idx;--n){var r=Tl(e,t.row.idx,n);if(r)return r}}function K8(e){return function(t,n){var r=aM(t,t.focusedLocation);return r?e(r.column.idx,r.row.idx,t,n):t}}function aM(e,t){if(t)for(var n=t.column.idx+1;n<=e.cellMatrix.last.column.idx;++n){var r=Tl(e,t.row.idx,n);if(r)return r}}function J8(e){return function(t){var n=sM(t,t.focusedLocation);return n?e(n.column.idx,n.row.idx,t):t}}function sM(e,t){if(t)for(var n=t.row.idx-1;n>=e.cellMatrix.first.row.idx;--n){var r=Tl(e,n,t.column.idx);if(r)return r}}function Q8(e){return function(t,n){var r=uM(t,t.focusedLocation);return r?e(r.column.idx,r.row.idx,t,n):t}}function uM(e,t){if(t)for(var n=t.row.idx+1;n<=e.cellMatrix.last.row.idx;++n){var r=Tl(e,n,t.column.idx);if(r)return r}}function q8(e){return function(t){return function(n){var r=n.focusedLocation;if(!r)return n;var o=t(n,r);return e(r.column.idx,o,n)}}}function cM(e,t){return h1(e,t)}function eY(e,t){var n=function(r,o){var i,a,c,s,d,f,g,v,h,y,b,S,m,x,I,R,E,P,A=r.focusedLocation;if(!A)return r;var O=(i=Rl(r))!==null&&i!==void 0?i:r.cellMatrix.getRange(A,A);if(o.ctrlKey&&d1()&&o.keyCode===ie.SPACE)return xn(r,O.first.column.idx,O.last.column.idx,0,r.cellMatrix.last.row.idx);var W=r.selectedRanges.length===1&&Vr(O.first,O.last),$=NY(r,o);if($!==r){if(!W&&o.keyCode===ie.ENTER){var j=o.shiftKey?"up":!((a=r.props)===null||a===void 0)&&a.moveRightOnEnter?"right":"down";return(c=r.hiddenFocusElement)===null||c===void 0||c.focus(),Tu(r,j,O,A)}return $}if(o.altKey)return r;if(Yn(o)&&o.shiftKey)switch(o.keyCode){case ie.HOME:return xn(r,O.first.column.idx,O.last.column.idx,0,O.last.row.idx);case ie.END:return xn(r,O.first.column.idx,O.last.column.idx,O.first.row.idx,r.cellMatrix.last.row.idx)}else if(Yn(o)){var V=r.cellMatrix;switch(o.keyCode){case ie.KEY_A:if(r.selectedRanges.length===1&&Vr(r.selectedRanges[0].first,V.first)&&Vr(r.selectedRanges[0].last,V.last))return Ih(r,A);var U=V.getRange(V.first,V.last);return!((s=r.props)===null||s===void 0)&&s.onSelectionChanging&&!r.props.onSelectionChanging([U])?r:N(N({},r),{selectedRanges:[U],selectionMode:"range",activeSelectedRangeIdx:0});case ie.HOME:return wr(r,r.cellMatrix.first);case ie.END:return wr(r,r.cellMatrix.last);case ie.SPACE:return xn(r,O.first.column.idx,O.last.column.idx,0,r.cellMatrix.last.row.idx)}}else if(o.shiftKey)switch(o.keyCode){case ie.UP_ARROW:return function(_,F,J){return F.first.row.idx>=0?F.last.row.idx>J.row.idx?xn(_,F.first.column.idx,F.last.column.idx,F.first.row.idx,F.last.row.idx>0?F.last.row.idx-1:0,"vertical"):xn(_,F.last.column.idx,F.first.column.idx,F.last.row.idx,F.first.row.idx>0?F.first.row.idx-1:0,"vertical"):_}(r,O,A);case ie.DOWN_ARROW:return function(_,F,J){return F.last.row.idx<=_.cellMatrix.last.row.idx?F.first.row.idx=_.cellMatrix.last.row.idx?_.cellMatrix.last.row.idx:F.first.row.idx+1,"vertical"):xn(_,F.first.column.idx,F.last.column.idx,F.first.row.idx,F.last.row.idx>=_.cellMatrix.last.row.idx?_.cellMatrix.last.row.idx:F.last.row.idx+1,"vertical"):_}(r,O,A);case ie.LEFT_ARROW:return function(_,F,J){return F.first.column.idx>=0?F.last.column.idx>J.column.idx?xn(_,F.first.column.idx,F.last.column.idx>0?F.last.column.idx-1:0,F.first.row.idx,F.last.row.idx,"horizontal"):xn(_,F.last.column.idx,F.first.column.idx>0?F.first.column.idx-1:0,F.last.row.idx,F.first.row.idx,"horizontal"):_}(r,O,A);case ie.RIGHT_ARROW:return function(_,F,J){return F.last.column.idx<=_.cellMatrix.last.column.idx?F.first.column.idx=_.cellMatrix.last.column.idx?_.cellMatrix.last.column.idx:F.first.column.idx+1,F.last.row.idx,F.first.row.idx,"horizontal"):xn(_,F.first.column.idx,F.last.column.idx>=_.cellMatrix.last.column.idx?_.cellMatrix.last.column.idx:F.last.column.idx+1,F.first.row.idx,F.last.row.idx,"horizontal"):_}(r,O,A);case ie.TAB:return o.preventDefault(),W?$R(r):Tu(r,"left",O,A);case ie.ENTER:return(d=r.hiddenFocusElement)===null||d===void 0||d.focus(),W?VR(r):Tu(r,"up",O,A);case ie.SPACE:return xn(r,0,r.cellMatrix.last.column.idx,O.first.row.idx,O.last.row.idx);case ie.HOME:return xn(r,0,O.last.column.idx,O.first.row.idx,O.last.row.idx);case ie.END:return xn(r,O.first.column.idx,r.cellMatrix.last.column.idx,O.first.row.idx,O.last.row.idx);case ie.PAGE_UP:return function(_,F,J){var z=GR(_),q=_.cellMatrix.ranges.stickyBottomRange.rows.length>0&&F.first.row.idx>_.cellMatrix.ranges.stickyBottomRange.first.row.idx,ae=_.cellMatrix.ranges.stickyBottomRange.rows.length>0&&F.last.row.idx===_.cellMatrix.ranges.stickyBottomRange.last.row.idx,te=_.cellMatrix.ranges.stickyBottomRange.rows.length>0&&F.last.row.idx===_.cellMatrix.ranges.stickyBottomRange.first.row.idx,he=_.cellMatrix.ranges.stickyBottomRange.rows.length>0&&F.first.row.idx===_.cellMatrix.ranges.stickyBottomRange.first.row.idx,Se=_.cellMatrix.ranges.stickyTopRange.rows.length>0&&F.last.row.idx===_.cellMatrix.ranges.stickyTopRange.last.row.idx,pe=_.cellMatrix.scrollableRange.rows.length>0&&_.cellMatrix.ranges.stickyTopRange.rows.length>0&&F.first.row.idx===_.cellMatrix.scrollableRange.first.row.idx,ye=_.cellMatrix.scrollableRange.rows.length>0&&_.cellMatrix.ranges.stickyTopRange.rows.length>0&&F.last.row.idx===_.cellMatrix.scrollableRange.first.row.idx,ge=_.cellMatrix.ranges.stickyTopRange.rows.length>0&&F.first.row.idx<=_.cellMatrix.ranges.stickyTopRange.last.row.idx,Oe=_.cellMatrix.scrollableRange.rows.filter(function(Ce){return Ce.top+Ce.height=0?F.last.row.idx>J.row.idx?xn(_,F.first.column.idx,F.last.column.idx,F.first.row.idx,ae?_.cellMatrix.ranges.stickyBottomRange.first.row.idx:te?_.cellMatrix.scrollableRange.rows.length>0?_.cellMatrix.scrollableRange.last.row.idx:_.cellMatrix.ranges.stickyTopRange.first.row.idx:ye?_.cellMatrix.ranges.stickyTopRange.last.row.idx:Se?_.cellMatrix.ranges.stickyTopRange.first.row.idx:F.last.row.idx-Oe.length>_.cellMatrix.scrollableRange.first.row.idx?F.last.row.idx-Oe.length:_.cellMatrix.scrollableRange.first.row.idx,"vertical"):xn(_,F.last.column.idx,F.first.column.idx,F.last.row.idx,q?_.cellMatrix.ranges.stickyBottomRange.first.row.idx:he?_.cellMatrix.scrollableRange.rows.length>0?_.cellMatrix.scrollableRange.last.row.idx:_.cellMatrix.ranges.stickyTopRange.rows.length>0?_.cellMatrix.ranges.stickyTopRange.first.row.idx:_.cellMatrix.ranges.stickyBottomRange.first.row.idx:pe?_.cellMatrix.ranges.stickyTopRange.last.row.idx:ge?_.cellMatrix.ranges.stickyTopRange.first.row.idx:q?_.cellMatrix.ranges.stickyBottomRange.first.row.idx:F.first.row.idx-Oe.length>_.cellMatrix.scrollableRange.first.row.idx?F.first.row.idx-Oe.length:_.cellMatrix.scrollableRange.first.row.idx,"vertical"):_}(r,O,A);case ie.PAGE_DOWN:return function(_,F,J){var z=GR(_),q=_.cellMatrix.ranges.stickyTopRange.rows.length>0&&F.last.row.idx<_.cellMatrix.ranges.stickyTopRange.last.row.idx,ae=_.cellMatrix.ranges.stickyTopRange.rows.length>0&&F.first.row.idx<_.cellMatrix.ranges.stickyTopRange.last.row.idx,te=_.cellMatrix.ranges.stickyTopRange.rows.length>0&&F.last.row.idx===_.cellMatrix.ranges.stickyTopRange.last.row.idx,he=_.cellMatrix.ranges.stickyTopRange.rows.length>0&&F.first.row.idx===_.cellMatrix.ranges.stickyTopRange.last.row.idx,Se=_.cellMatrix.scrollableRange.rows.length>0&&_.cellMatrix.ranges.stickyBottomRange.rows.length>0&&F.last.row.idx===_.cellMatrix.scrollableRange.last.row.idx,pe=_.cellMatrix.scrollableRange.rows.length>0&&_.cellMatrix.ranges.stickyBottomRange.rows.length>0&&F.first.row.idx===_.cellMatrix.scrollableRange.last.row.idx,ye=_.cellMatrix.ranges.stickyBottomRange.rows.length>0&&F.last.row.idx>=_.cellMatrix.ranges.stickyBottomRange.first.row.idx,ge=_.cellMatrix.ranges.stickyBottomRange.rows.length>0&&F.first.row.idx>=_.cellMatrix.ranges.stickyBottomRange.first.row.idx,Oe=_.cellMatrix.scrollableRange.rows.filter(function(Ce){return Ce.top+Ce.height0?_.cellMatrix.scrollableRange.first.row.idx:_.cellMatrix.ranges.stickyBottomRange.first.row.idx:pe?_.cellMatrix.ranges.stickyBottomRange.first.row.idx:ge?_.cellMatrix.ranges.stickyBottomRange.last.row.idx:F.first.row.idx+Oe.length>=_.cellMatrix.scrollableRange.last.row.idx?_.cellMatrix.scrollableRange.last.row.idx:F.first.row.idx+Oe.length,"vertical"):xn(_,F.first.column.idx,F.last.column.idx,F.first.row.idx,ye?_.cellMatrix.ranges.stickyBottomRange.last.row.idx:te?_.cellMatrix.scrollableRange.rows.length>0?_.cellMatrix.scrollableRange.first.row.idx:_.cellMatrix.ranges.stickyBottomRange.rows.length>0?_.cellMatrix.ranges.stickyBottomRange.first.row.idx:_.cellMatrix.ranges.stickyTopRange.last.row.idx:Se?_.cellMatrix.ranges.stickyBottomRange.first.row.idx:q?_.cellMatrix.ranges.stickyTopRange.last.row.idx:F.last.row.idx+Oe.length>=_.cellMatrix.scrollableRange.last.row.idx?_.cellMatrix.scrollableRange.last.row.idx:F.last.row.idx+Oe.length,"vertical"):_}(r,O,A)}else switch(o.keyCode){case ie.DELETE:case ie.BACKSPACE:return(f=r.hiddenFocusElement)===null||f===void 0||f.focus(),function(_){return _.selectedRanges.forEach(function(F){return F.rows.forEach(function(J){return F.columns.forEach(function(z){return _=$i(_,{row:J,column:z},tM)})})}),_}(r);case ie.UP_ARROW:return(g=r.hiddenFocusElement)===null||g===void 0||g.focus(),VR(r);case ie.DOWN_ARROW:return(v=r.hiddenFocusElement)===null||v===void 0||v.focus(),WR(r);case ie.LEFT_ARROW:return(h=r.hiddenFocusElement)===null||h===void 0||h.focus(),$R(r);case ie.RIGHT_ARROW:return(y=r.hiddenFocusElement)===null||y===void 0||y.focus(),Gv(r);case ie.TAB:return(b=r.hiddenFocusElement)===null||b===void 0||b.focus(),o.preventDefault(),W?Gv(r):Tu(r,"right",O,A);case ie.HOME:return(S=r.hiddenFocusElement)===null||S===void 0||S.focus(),G8(r);case ie.END:return(m=r.hiddenFocusElement)===null||m===void 0||m.focus(),z8(r);case ie.PAGE_UP:return(x=r.hiddenFocusElement)===null||x===void 0||x.focus(),H8(r);case ie.PAGE_DOWN:return(I=r.hiddenFocusElement)===null||I===void 0||I.focus(),j8(r);case ie.ENTER:var Z=!((R=r.props)===null||R===void 0)&&R.moveRightOnEnter?N(N({},Gv(r,o.keyCode)),{currentlyEditedCell:void 0}):N(N({},WR(r,o.keyCode)),{currentlyEditedCell:void 0});return(E=r.hiddenFocusElement)===null||E===void 0||E.focus(),W?Z:Tu(r,"right",O,A);case ie.ESCAPE:return o.preventDefault(),(P=r.hiddenFocusElement)===null||P===void 0||P.focus(),r.currentlyEditedCell?N(N({},r),{currentlyEditedCell:void 0}):r}return r}(e,t);return n!==e&&(t.stopPropagation(),t.preventDefault()),n}function Tu(e,t,n,r){var o=e.activeSelectedRangeIdx,i=n?n.columns.length:0,a=n?n.rows.length:0,c=t==="up"||t==="left"?-1:1,s=t==="up"||t==="down"?r.row.idx-n.first.row.idx+(r.column.idx-n.first.column.idx)*a:(r.row.idx-n.first.row.idx)*i+(r.column.idx-n.first.column.idx),d=(s+c)%(n.rows.length*n.columns.length),f=d<0&&s===0||a===1&&i===1&&c===-1,g=d===0&&s===n.rows.length*n.columns.length-1&&(a>=3&&i>=1||a>=1&&i>=3)||d===0&&s===n.rows.length*n.columns.length-1&&(a===2&&i>=1||a>=1&&i===2)&&c===1||d<0&&s===0||a===1&&i===1&&c===1;if(f){var v=o===0?e.selectedRanges.length-1:(o-1)%e.selectedRanges.length,h=e.selectedRanges[v];return e=wr(e,Ut(h.last.row,h.last.column),!1),N(N({},e),{activeSelectedRangeIdx:v})}if(g)return v=(o+1)%e.selectedRanges.length,h=e.selectedRanges[v],e=wr(e,Ut(h.first.row,h.first.column),!1),N(N({},e),{activeSelectedRangeIdx:v});var y=t==="up"||t==="down"?Math.floor(d/a):d%i,b=t==="up"||t==="down"?d%a:Math.floor(d/i),S=n.first.column.idx+y,m=n.first.row.idx+b;return e=wr(e,e.cellMatrix.getLocation(m,S),!n||!(n.columns.length>1||n.rows.length>1))}function GR(e){var t=e.cellMatrix.ranges,n=t.stickyBottomRange,r=t.stickyTopRange;return h1(e,n.height+r.height)}function xn(e,t,n,r,o,i){var a,c,s;if(!e.enableRangeSelection)return e;var d=e.cellMatrix.getLocation(r,t),f=e.cellMatrix.getLocation(o,n),g=e.selectedRanges.slice();if(g[e.activeSelectedRangeIdx]=e.cellMatrix.getRange(d,f),i){var v=e.focusedLocation;if(!v)return e;var h=0,y=0;switch(i){case"horizontal":h=v.row.idx,y=v.column.idx!==t?t:n;break;case"vertical":h=v.row.idx!==r?r:o,y=v.column.idx}var b=v1(e,e.cellMatrix.getLocation(h,y),i),S=b.left;g1(e,b.top,S)}return!((a=e.props)===null||a===void 0)&&a.onSelectionChanging&&!e.props.onSelectionChanging(g)?e:((s=(c=e.props)===null||c===void 0?void 0:c.onSelectionChanged)===null||s===void 0||s.call(c,g),N(N({},e),{selectedRanges:g}))}var tY=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.autoScrollDirection="horizontal",n}return Bo(t,e),t.prototype.handlePointerDown=function(n,r,o){return this.initialColumn=r.column,o=Yn(n)&&o.selectionMode==="column"&&o.selectedIds.some(function(i){return i===r.column.columnId})?function(i,a){var c=i.selectedIndexes.filter(function(d){return d!==a.idx}),s=i.selectedIds.filter(function(d){return d!==a.columnId});return N(N({},i),{selectionMode:"column",selectedIndexes:c,selectedIds:s})}(o,r.column):n.shiftKey&&o.focusedLocation?BS(o,o.focusedLocation.column,r.column,Yn(n)):function(i,a,c){return N(N({},i),{selectionMode:"column",selectedIndexes:(c&&i.selectionMode==="column"?i.selectedIndexes:[]).concat(a.idx),selectedIds:(c&&i.selectionMode==="column"?i.selectedIds:[]).concat(a.columnId)})}(o=wr(o,r,!1),r.column,Yn(n))},t.prototype.handlePointerEnter=function(n,r,o){return BS(o,this.initialColumn,r.column,Yn(n))},t.prototype.handlePointerUp=function(n,r,o){var i,a;if(!((i=o.props)===null||i===void 0)&&i.onSelectionChanging&&!o.props.onSelectionChanging(o.selectedRanges)){var c=Mn([],o.selectedRanges).filter(function(s,d){return d!==o.activeSelectedRangeIdx});return N(N({},o),{selectedRanges:c,activeSelectedRangeIdx:c.length-1})}return!((a=o.props)===null||a===void 0)&&a.onSelectionChanged&&o.props.onSelectionChanged(o.selectedRanges),o},t.prototype.handleContextMenu=function(n,r){return Xs(n,r)},t}(Ml),nY=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.autoScrollDirection="vertical",n}return Bo(t,e),t.prototype.handlePointerDown=function(n,r,o){return this.initialRow=r.row,o=Yn(n)&&o.selectionMode==="row"&&o.selectedIds.some(function(i){return i===r.row.rowId})?function(i,a){var c=i.selectedIndexes.filter(function(d){return d!==a.idx}),s=i.selectedIds.filter(function(d){return d!==a.rowId});return N(N({},i),{selectionMode:"row",selectedIndexes:c,selectedIds:s})}(o,r.row):n.shiftKey&&o.focusedLocation?$S(o,o.focusedLocation.row,r.row,Yn(n)):function(i,a,c){return N(N({},i),{selectionMode:"row",selectedIndexes:(c&&i.selectionMode==="row"?i.selectedIndexes:[]).concat(a.idx),selectedIds:(c&&i.selectionMode==="row"?i.selectedIds:[]).concat(a.rowId)})}(o=wr(o,r,!1),r.row,Yn(n))},t.prototype.handlePointerEnter=function(n,r,o){return $S(o,this.initialRow,r.row,Yn(n))},t.prototype.handlePointerUp=function(n,r,o){var i,a;if(!((i=o.props)===null||i===void 0)&&i.onSelectionChanging&&!o.props.onSelectionChanging(o.selectedRanges)){var c=Mn([],o.selectedRanges).filter(function(s,d){return d!==o.activeSelectedRangeIdx});return N(N({},o),{selectedRanges:c,activeSelectedRangeIdx:c.length-1})}return!((a=o.props)===null||a===void 0)&&a.onSelectionChanged&&o.props.onSelectionChanged(o.selectedRanges),o},t.prototype.handleContextMenu=function(n,r){return Xs(n,r)},t}(Ml),dM=function(e){var t=e.range,n=e.pane,r=e.style,o=e.className,i=t.first.row.idx<=n.first.row.idx?n.first.row.top:t.first.row.top,a=t.first.column.idx<=n.first.column.idx?n.first.column.left:t.first.column.left,c=(t.last.column.idx>n.last.column.idx?n.last.column.right:t.last.column.right)-a,s=(t.last.row.idx>n.last.row.idx?n.last.row.bottom:t.last.row.bottom)-i,d=t.first.row.idx>=n.first.row.idx,f=t.last.row.idx<=n.last.row.idx,g=t.last.column.idx<=n.last.column.idx,v=t.first.column.idx>=n.first.column.idx;return C.createElement("div",{className:"rg-partial-area ".concat(o),key:t.first.column.idx+n.last.column.idx,style:N(N({},r),{top:i-(i===0?0:1),left:a-(a===0?0:1),width:c+(a===0?0:1),height:s+(i===0?0:1),borderTop:d?r.borderTop:"unset",borderBottom:f?r.borderBottom:"unset",borderRight:g?r.borderRight:"unset",borderLeft:v?r.borderLeft:"unset"})})};function fM(e,t){return t.first.column.idx<=e.last.column.idx&&t.first.row.idx<=e.last.row.idx&&t.last.column.idx>=e.first.column.idx&&t.last.row.idx>=e.first.row.idx}var pM=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.fillDirection="",n}return Bo(t,e),t.prototype.handlePointerEnter=function(n,r,o){var i=Rl(o);return this.fillDirection=this.getFillDirection(i,r),this.fillRange=this.getFillRange(o.cellMatrix,i,r,this.fillDirection),N({},o)},t.prototype.handlePointerUp=function(n,r,o){var i,a,c,s,d,f,g,v,h=this,y=Rl(o),b=o.cellMatrix;if(!y||this.fillRange===void 0)return o;var S=d1()?n.altKey:n.ctrlKey;this.fillRange=o.cellMatrix.validateRange(this.fillRange);var m=function(P){return $o(o,P)},x=function(P,A){var O=P.map(function(j){return j.value}),W=h.findRegressionFunction(O,Array.from({length:O.length},function(j,V){return V+1})),$=isNaN(W.a)&&isNaN(W.b);return A.map(function(j,V){var U=h.calculateXForRegressionFunction(V+O.length+1,W.a,W.b),Z=P[V%P.length];return N(N(N({},j),j.type==="checkbox"&&{checked:"checked"in Z?Z.checked:!!Z.value}),{text:$||S?Z.text:U.toString(),groupId:Z.groupId,value:$||S?Z.value:U})})},I=function(P,A,O){return A.columns.forEach(function(W){var $=A.rows.map(function(V){return m(Ut(V,W)).cell});if($=O==="up"?$.reverse():$,h.fillRange){var j=h.fillRange.rows.map(function(V){return m(Ut(V,W)).cell});j=x($,j),j=O==="up"?j.reverse():j,P=h.fillColumn(P,W,j)}}),P},R=function(P,A,O){return A.rows.forEach(function(W){var $=A.columns.map(function(V){return m(Ut(W,V)).cell});if($=O==="left"?$.reverse():$,h.fillRange){var j=h.fillRange.columns.map(function(V){return m(Ut(W,V)).cell});j=x($,j),j=O==="left"?j.reverse():j,P=h.fillRow(P,W,j)}}),P};switch(this.fillDirection){case"right":var E=b.getRange(y.first,Ut(y.last.row,r.column));if(!((i=(o=R(o,y,"right"))==null?void 0:o.props)===null||i===void 0)&&i.onSelectionChanging&&!o.props.onSelectionChanging([E]))return o;!((a=(o=N(N({},o),{selectedRanges:[E],selectedIds:Mn(Mn([],y.columns.map(function(P){return P.columnId}),!0),this.fillRange.columns.map(function(P){return P.columnId}))})).props)===null||a===void 0)&&a.onSelectionChanged&&o.props.onSelectionChanged(o.selectedRanges);break;case"left":if(E=b.getRange(y.last,Ut(y.first.row,r.column)),!((c=(o=R(o,y,"left"))==null?void 0:o.props)===null||c===void 0)&&c.onSelectionChanging&&!o.props.onSelectionChanging([E]))return o;!((s=(o=N(N({},o),{selectedRanges:[E],selectedIds:Mn(Mn([],y.columns.map(function(P){return P.columnId}),!0),this.fillRange.columns.map(function(P){return P.columnId}))})).props)===null||s===void 0)&&s.onSelectionChanged&&o.props.onSelectionChanged(o.selectedRanges);break;case"up":if(E=b.getRange(y.last,{row:r.row,column:y.first.column}),!((d=(o=I(o,y,"up"))==null?void 0:o.props)===null||d===void 0)&&d.onSelectionChanging&&!o.props.onSelectionChanging([E]))return o;!((f=(o=N(N({},o),{selectedRanges:[E],selectedIds:Mn(Mn([],y.rows.map(function(P){return P.rowId}),!0),this.fillRange.rows.map(function(P){return P.rowId}))})).props)===null||f===void 0)&&f.onSelectionChanged&&o.props.onSelectionChanged(o.selectedRanges);break;case"down":if(E=b.getRange(y.first,Ut(r.row,y.last.column)),!((g=(o=I(o,y,"down"))==null?void 0:o.props)===null||g===void 0)&&g.onSelectionChanging&&!o.props.onSelectionChanging([E]))return o;!((v=(o=N(N({},o),{selectedRanges:[E],selectedIds:Mn(Mn([],y.rows.map(function(P){return P.rowId}),!0),this.fillRange.rows.map(function(P){return P.rowId}))})).props)===null||v===void 0)&&v.onSelectionChanged&&o.props.onSelectionChanged(o.selectedRanges)}return o},t.prototype.calculateXForRegressionFunction=function(n,r,o){return Math.round((n-r)/o*1e5)/1e5},t.prototype.findRegressionFunction=function(n,r){var o=this.sumArray(n),i=this.sumArray(r),a=this.sumArray(this.multipleArrays(n,r)),c=this.sumArray(this.powerArray(n,2)),s=n.length,d=Math.fround(s*a-o*i)/Math.fround(s*c-Math.pow(o,2));return{a:i/s-d*(o/s),b:d}},t.prototype.sumArray=function(n){return n.reduce(function(r,o){return r+o})},t.prototype.multipleArrays=function(n,r){for(var o=[],i=n.length<=r.length?n.length:r.length,a=0;an.last.row.idx?r.row.idx-n.last.row.idx:0}),o.push({direction:"left",value:r.column.idxn.last.column.idx?r.column.idx-n.last.column.idx:0}),o.reduce(function(i,a){return i.value>=a.value?i:a}).direction},t.prototype.getFillRange=function(n,r,o,i){switch(i){case"right":return n.getRange(n.getLocation(r.first.row.idx,n.last.column.idxr.first.column.idx-1?n.first.column.idx:r.first.column.idx-1));case"up":return n.getRange(Ut(o.row,r.first.column),n.getLocation(n.first.row.idx>r.first.row.idx-1?n.first.row.idx:r.first.row.idx-1,r.last.column.idx));case"down":return n.getRange(n.getLocation(n.last.row.idxthis.initialRowIdx;d=Math.min(this.lastPossibleDropLocation.viewportY-this.lastPossibleDropLocation.cellY+(v?this.lastPossibleDropLocation.row.height:0),(((i=o.visibleRange)===null||i===void 0?void 0:i.height)||0)+o.cellMatrix.ranges.stickyTopRange.height+o.cellMatrix.ranges.stickyBottomRange.height+f),!((a=o.props)===null||a===void 0)&&a.canReorderRows?o.props.canReorderRows&&o.props.canReorderRows(this.lastPossibleDropLocation.row.rowId,this.selectedIds,this.position)?v?g>r.row.top+o.cellMatrix.ranges.stickyTopRange.height&&gr.row.top+o.cellMatrix.ranges.stickyTopRange.height+r.row.height/2&&gi?i:o},t.prototype.getLastPossibleDropLocation=function(n,r){var o;return!(!((o=n.props)===null||o===void 0)&&o.canReorderRows)||n.props.canReorderRows(r.row.rowId,this.selectedIds,this.position)?r:this.lastPossibleDropLocation},t.prototype.handlePointerUp=function(n,r,o){var i,a;return r.row.idx!==this.initialRowIdx&&this.lastPossibleDropLocation&&(!((i=o.props)===null||i===void 0)&&i.onRowsReordered)&&((a=o.props)===null||a===void 0||a.onRowsReordered(this.lastPossibleDropLocation.row.rowId,this.selectedIds,this.position)),N(N({},o),{linePosition:-1,shadowPosition:-1,shadowCursor:"default"})},t.prototype.handleContextMenu=function(n,r){return Xs(n,r)},t}(Ml);function oY(){return typeof window<"u"&&window.navigator.userAgent.indexOf("Safari")!==-1&&navigator.userAgent.indexOf("Chrome")===-1}function zR(e,t,n){n===void 0&&(n=!1);var r=Rl(t);return r?(iY(e,t,nM(t,r,n).div),N(N({},t),{copyRange:r})):t}function iY(e,t,n){var r;oY()?e.clipboardData.setData("text/html",n.innerHTML):(document.body.appendChild(n),n.focus(),document.execCommand("selectAll",!1),document.execCommand("copy"),document.body.removeChild(n)),(r=t.hiddenFocusElement)===null||r===void 0||r.focus({preventScroll:!0}),e.preventDefault()}function lY(e,t){var n,r;if(!Rl(t))return t;var o=[],i=e.clipboardData.getData("text/html"),a=new DOMParser().parseFromString(i,"text/html");if(((n=a.body.firstElementChild)===null||n===void 0?void 0:n.getAttribute("data-reactgrid"))==="reactgrid-content"&&(!((r=a.body.firstElementChild)===null||r===void 0)&&r.firstElementChild))for(var c=a.body.firstElementChild.firstElementChild.children,s=0;sr.column.width-(((a=(i=o.reactGridElement)===null||i===void 0?void 0:i.querySelector(".rg-resize-handle"))===null||a===void 0?void 0:a.clientWidth)||0)-Ht(o.scrollableElement).scrollLeft?new p1:o.enableColumnSelection&&r.row.idx===0&&o.selectedIds.includes(r.column.columnId)&&!Yn(n)&&o.selectionMode==="column"&&r.column.reorderable?new aA:o.enableColumnSelection&&r.row.idx===0&&c.className!=="rg-fill-handle"&&c.className!=="rg-touch-fill-handle"?new tY:o.enableRowSelection&&r.column.idx===0&&o.selectedIds.includes(r.row.rowId)&&!Yn(n)&&o.selectionMode==="row"&&r.row.reorderable?new rY:o.enableRowSelection&&r.column.idx===0&&c.className!=="rg-fill-handle"&&c.className!=="rg-touch-fill-handle"?new nY:(n.pointerType==="mouse"&&c.className==="rg-fill-handle"||n.pointerType==="touch"&&(c.className==="rg-touch-fill-handle"||c.className==="rg-fill-handle"))&&o.enableFillHandle?new pM:new lA},t.prototype.handleContextMenu=function(n,r){return Xs(n,r)},t.prototype.handleDoubleClick=function(n,r,o){return TY(n,r,o)},t.prototype.handleKeyDown=function(n,r){return eY(r,n)},t.prototype.handleKeyUp=function(n,r){return LY(n,r)},t.prototype.handleCompositionEnd=function(n,r){return _Y(n,r)},t.prototype.handleCopy=function(n,r){return zR(n,r)},t.prototype.handlePaste=function(n,r){return lY(n,r)},t.prototype.handleCut=function(n,r){return zR(n,r,!0)},t}(Ml),aY={legacyBrowserMode:typeof window<"u"&&window.navigator.userAgent.indexOf("Trident")>0||typeof window<"u"&&window.navigator.userAgent.indexOf("Edge/")>0,focusedLocation:void 0,currentBehavior:new O1,cellTemplates:QA,hiddenFocusElement:void 0,reactGridElement:void 0,scrollableElement:void 0,queuedCellChanges:[],currentlyEditedCell:void 0,highlightLocations:[],visibleRange:void 0,topScrollBoudary:-1,bottomScrollBoudary:-1,leftScrollBoudary:-1,rightScrollBoudary:-1,enableGroupIdRender:!1,leftStickyColumns:void 0,topStickyRows:void 0,enableFillHandle:!1,enableRangeSelection:!0,enableColumnSelection:!1,enableRowSelection:!1,contextMenuPosition:{top:-1,left:-1},lineOrientation:"horizontal",linePosition:-1,shadowSize:0,shadowPosition:-1,shadowCursor:"default",selectionMode:"range",selectedRanges:[],selectedIndexes:[],selectedIds:[],activeSelectedRangeIdx:0,copyRange:void 0,rightStickyColumns:void 0,bottomStickyRows:void 0,disableVirtualScrolling:!1},sY=function(e,t){var n=t.cellMatrix,r=function(o,i,a){if(o.ranges.stickyRightRange.first.column&&i.column.idx>=o.ranges.stickyRightRange.first.column.idx){var c=Ht(a.scrollableElement).scrollLeft,s=Rn(a).left,d=Wn(c,s);return zi(a).width+d-o.ranges.stickyRightRange.width}}(n,e,t)||pY(n,e)||hY(n,e,t);return r||0},uY=function(e,t){var n=t.cellMatrix,r=function(o,i,a){if(o.ranges.stickyBottomRange.first.row&&i.row.idx>=o.ranges.stickyBottomRange.first.row.idx){var c=Ht(a.scrollableElement).scrollTop,s=Rn(a).top,d=Wn(c,s);return zi(a).height+d-o.ranges.stickyBottomRange.height}}(n,e,t)||gY(n,e)||mY(n,e,t);return r||0},cY=function(e){var t=e.state,n=e.location,r=Ht(t.scrollableElement),o=r.scrollTop,i=r.scrollLeft,a=Rn(t),c=a.top,s=a.left,d=0,f=0;if(t.scrollableElement!==Ls()){var g=t.scrollableElement.getBoundingClientRect();d=g.left,f=g.top}return{state:t,location:n,left:n.column.left+sY(n,t)+d+s-i,top:n.row.top+uY(n,t)+f+c-o}},dY=function(){var e=Ol(),t=e.currentlyEditedCell,n=e.focusedLocation,r=C.useRef(0),o=C.useReducer(cY,{state:e,location:n}),i=o[0],a=o[1];if(C.useEffect(function(){r.current+=1,a()},[]),!t||!n||r.current===0)return null;var c=e.cellTemplates[t.type];return C.createElement(fY,{cellType:t.type,style:{top:i.top&&i.top-1,left:i.left&&i.left-1,height:n.row.height+1,width:n.column.width+1,position:"fixed"}},c.render(t,!0,function(s,d){e.currentlyEditedCell=d?void 0:s,d&&e.update(function(f){return $i(f,n,s)})}))},fY=function(e){var t=e.style,n=e.cellType,r=e.children;return C.createElement("div",{className:"rg-celleditor rg-".concat(n,"-celleditor"),style:t},r)};function pY(e,t){var n;if(t.column.idx>(e.ranges.stickyLeftRange.last.column?e.ranges.stickyLeftRange.last.column.idx:e.first.column.idx)||t.column.idx===e.last.column.idx&&t.column.idx!==((n=e.ranges.stickyLeftRange.last.column)===null||n===void 0?void 0:n.idx))return e.ranges.stickyLeftRange.width}function gY(e,t){var n;if(t.row.idx>(e.ranges.stickyTopRange.last.row?e.ranges.stickyTopRange.last.row.idx:e.first.row.idx)||t.row.idx===e.last.row.idx&&t.row.idx!==((n=e.ranges.stickyTopRange.last.row)===null||n===void 0?void 0:n.idx))return e.ranges.stickyTopRange.height}function hY(e,t,n){if(e.ranges.stickyLeftRange.first.column&&t.column.idx>=e.ranges.stickyLeftRange.first.column.idx&&t.column.idx<=e.ranges.stickyLeftRange.last.column.idx){var r=Ht(n.scrollableElement).scrollLeft,o=Rn(n).left;return Wn(r,o)}}function mY(e,t,n){if(e.ranges.stickyTopRange.first.row&&t.row.idx>=e.ranges.stickyTopRange.first.row.idx&&t.row.idx<=e.ranges.stickyTopRange.last.row.idx){var r=Ht(n.scrollableElement).scrollTop,o=Rn(n).top;return Wn(r,o)}}var vY=function(e){var t=e.hiddenElementRefHandler,n=Ol().hiddenFocusElement;return C.createElement("input",{className:"rg-hidden-element",ref:t,inputMode:"none",onBlur:function(r){r.relatedTarget||n==null||n.focus({preventScroll:!0})}})},yY=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.state={hasError:!1},n}return Bo(t,e),t.getDerivedStateFromError=function(n){return{hasError:!0,error:n}},t.prototype.componentDidCatch=function(n,r){this.setState({errorInfo:r})},t.prototype.render=function(){var n=this.state,r=n.hasError,o=n.errorInfo,i=n.error;return r?He.createElement(He.Fragment,null,He.createElement("h1",null,i==null?void 0:i.message)," ",He.createElement("br",null),He.createElement("br",null),He.createElement("details",null,i==null?void 0:i.stack,o==null?void 0:o.componentStack)):this.props.children},t}(C.Component);function T1(){return typeof window<"u"&&navigator.userAgent.includes("Firefox")}var bY=function(e){var t=e.eventHandlers,n=e.children,r=Ol(),o=r.cellMatrix,i=r.props,a={width:i!=null&&i.enableFullWidthHeader?"100%":o.width,height:o.height};return C.createElement(yY,null,C.createElement("div",{className:"reactgrid",style:N({position:"relative",paddingRight:T1()?"10px":""},a),ref:t.reactgridRefHandler},C.createElement("div",{className:"reactgrid-content",onKeyDown:t.keyDownHandler,onKeyUp:t.keyUpHandler,onCompositionEnd:t.compositionEndHandler,onPointerDown:t.pointerDownHandler,onPasteCapture:t.pasteCaptureHandler,onPaste:t.pasteHandler,onCopy:t.copyHandler,onCut:t.cutHandler,onBlur:t.blurHandler,style:a},n,C.createElement(vY,{hiddenElementRefHandler:t.hiddenElementRefHandler}))))},xY={legacyBrowserHeader:"Please update to a modern browser.",legacyBrowserText:"Your current browser cannot run our content, please make sure you browser is fully updated or try adifferent browser. We highly recommend using the most recent release of Google Chrome, Microsoft Edge, Firefox, Safari, and Opera browser",copyLabel:"Copy",cutLabel:"Cut",pasteLabel:"Paste",appleMobileDeviceContextMenuPasteAlert:"Use ⌘ + c for copy, ⌘ + x for cut and ⌘ + v for paste.",otherBrowsersContextMenuPasteAlert:" Use ctrl + c for copy, ctrl + x for cut and ctrl + v for paste.",actionNotSupported:"This action is not supported in this browser."};function qp(e){var t;return N(N({},xY),(t=e.props)===null||t===void 0?void 0:t.labels)}var wY=function(){var e=Ol();return C.createElement(C.Fragment,null,C.createElement("h3",null,qp(e).legacyBrowserHeader),C.createElement("p",null,qp(e).legacyBrowserText))},CY=function(e){e.border;var t=function(n,r){var o={};for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&r.indexOf(i)<0&&(o[i]=n[i]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function"){var a=0;for(i=Object.getOwnPropertySymbols(n);a0&&(n.onCellsChanged&&n.onCellsChanged(Mn([],o)),o.forEach(function(){return e.queuedCellChanges.pop()})),e!==t&&r(e)}var eg={exports:{}};/** + * @license + * Lodash + * Copyright OpenJS Foundation and other contributors + * Released under MIT license + * Based on Underscore.js 1.8.3 + * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors + */eg.exports;(function(e,t){(function(){var n,r="4.17.21",o=200,i="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",a="Expected a function",c="Invalid `variable` option passed into `_.template`",s="__lodash_hash_undefined__",d=500,f="__lodash_placeholder__",g=1,v=2,h=4,y=1,b=2,S=1,m=2,x=4,I=8,R=16,E=32,P=64,A=128,O=256,W=512,$=30,j="...",V=800,U=16,Z=1,_=2,F=3,J=1/0,z=9007199254740991,q=17976931348623157e292,ae=NaN,te=4294967295,he=te-1,Se=te>>>1,pe=[["ary",A],["bind",S],["bindKey",m],["curry",I],["curryRight",R],["flip",W],["partial",E],["partialRight",P],["rearg",O]],ye="[object Arguments]",ge="[object Array]",Oe="[object AsyncFunction]",Ce="[object Boolean]",Te="[object Date]",st="[object DOMException]",$e="[object Error]",Fe="[object Function]",We="[object GeneratorFunction]",Ve="[object Map]",Ge="[object Number]",Le="[object Null]",xt="[object Object]",D="[object Promise]",K="[object Proxy]",Q="[object RegExp]",se="[object Set]",fe="[object String]",le="[object Symbol]",ve="[object Undefined]",ze="[object WeakMap]",lt="[object WeakSet]",ut="[object ArrayBuffer]",De="[object DataView]",xe="[object Float32Array]",At="[object Float64Array]",vn="[object Int8Array]",En="[object Int16Array]",_e="[object Int32Array]",nt="[object Uint8Array]",pt="[object Uint8ClampedArray]",Ln="[object Uint16Array]",Yr="[object Uint32Array]",Zs=/\b__p \+= '';/g,ar=/\b(__p \+=) '' \+/g,Co=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Rr=/&(?:amp|lt|gt|quot|#39);/g,si=/[&<>"']/g,ui=RegExp(Rr.source),va=RegExp(si.source),ya=/<%-([\s\S]+?)%>/g,ba=/<%([\s\S]+?)%>/g,xa=/<%=([\s\S]+?)%>/g,nd=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ji=/^\w*$/,Pn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,qt=/[\\^$.*+?()[\]{}|]/g,Er=RegExp(qt.source),wa=/^\s+/,Ys=/\s/,Ks=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Js=/\{\n\/\* \[wrapped with (.+)\] \*/,Ca=/,? & /,Ll=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ci=/[()=,{}\[\]\/\s]/,Xi=/\\(\\)?/g,oe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ne=/\w*$/,Pe=/^[-+]0x[0-9a-f]+$/i,be=/^0b[01]+$/i,qe=/^\[object .+?Constructor\]$/,Ct=/^0o[0-7]+$/i,_t=/^(?:0|[1-9]\d*)$/,sr=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,di=/($^)/,cO=/['\n\r\u2028\u2029\\]/g,rd="\\ud800-\\udfff",dO="\\u0300-\\u036f",fO="\\ufe20-\\ufe2f",pO="\\u20d0-\\u20ff",X1=dO+fO+pO,U1="\\u2700-\\u27bf",Z1="a-z\\xdf-\\xf6\\xf8-\\xff",gO="\\xac\\xb1\\xd7\\xf7",hO="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",mO="\\u2000-\\u206f",vO=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Y1="A-Z\\xc0-\\xd6\\xd8-\\xde",K1="\\ufe0e\\ufe0f",J1=gO+hO+mO+vO,Lh="['’]",yO="["+rd+"]",Q1="["+J1+"]",od="["+X1+"]",q1="\\d+",bO="["+U1+"]",ex="["+Z1+"]",tx="[^"+rd+J1+q1+U1+Z1+Y1+"]",_h="\\ud83c[\\udffb-\\udfff]",xO="(?:"+od+"|"+_h+")",nx="[^"+rd+"]",Nh="(?:\\ud83c[\\udde6-\\uddff]){2}",Fh="[\\ud800-\\udbff][\\udc00-\\udfff]",Ia="["+Y1+"]",rx="\\u200d",ox="(?:"+ex+"|"+tx+")",wO="(?:"+Ia+"|"+tx+")",ix="(?:"+Lh+"(?:d|ll|m|re|s|t|ve))?",lx="(?:"+Lh+"(?:D|LL|M|RE|S|T|VE))?",ax=xO+"?",sx="["+K1+"]?",CO="(?:"+rx+"(?:"+[nx,Nh,Fh].join("|")+")"+sx+ax+")*",IO="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",SO="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",ux=sx+ax+CO,RO="(?:"+[bO,Nh,Fh].join("|")+")"+ux,EO="(?:"+[nx+od+"?",od,Nh,Fh,yO].join("|")+")",PO=RegExp(Lh,"g"),kO=RegExp(od,"g"),Dh=RegExp(_h+"(?="+_h+")|"+EO+ux,"g"),AO=RegExp([Ia+"?"+ex+"+"+ix+"(?="+[Q1,Ia,"$"].join("|")+")",wO+"+"+lx+"(?="+[Q1,Ia+ox,"$"].join("|")+")",Ia+"?"+ox+"+"+ix,Ia+"+"+lx,SO,IO,q1,RO].join("|"),"g"),MO=RegExp("["+rx+rd+X1+K1+"]"),OO=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,TO=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],LO=-1,$t={};$t[xe]=$t[At]=$t[vn]=$t[En]=$t[_e]=$t[nt]=$t[pt]=$t[Ln]=$t[Yr]=!0,$t[ye]=$t[ge]=$t[ut]=$t[Ce]=$t[De]=$t[Te]=$t[$e]=$t[Fe]=$t[Ve]=$t[Ge]=$t[xt]=$t[Q]=$t[se]=$t[fe]=$t[ze]=!1;var Dt={};Dt[ye]=Dt[ge]=Dt[ut]=Dt[De]=Dt[Ce]=Dt[Te]=Dt[xe]=Dt[At]=Dt[vn]=Dt[En]=Dt[_e]=Dt[Ve]=Dt[Ge]=Dt[xt]=Dt[Q]=Dt[se]=Dt[fe]=Dt[le]=Dt[nt]=Dt[pt]=Dt[Ln]=Dt[Yr]=!0,Dt[$e]=Dt[Fe]=Dt[ze]=!1;var _O={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},NO={"&":"&","<":"<",">":">",'"':""","'":"'"},FO={"&":"&","<":"<",">":">",""":'"',"'":"'"},DO={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},BO=parseFloat,$O=parseInt,cx=typeof pu=="object"&&pu&&pu.Object===Object&&pu,VO=typeof self=="object"&&self&&self.Object===Object&&self,_n=cx||VO||Function("return this")(),Bh=t&&!t.nodeType&&t,_l=Bh&&!0&&e&&!e.nodeType&&e,dx=_l&&_l.exports===Bh,$h=dx&&cx.process,Kr=function(){try{var X=_l&&_l.require&&_l.require("util").types;return X||$h&&$h.binding&&$h.binding("util")}catch{}}(),fx=Kr&&Kr.isArrayBuffer,px=Kr&&Kr.isDate,gx=Kr&&Kr.isMap,hx=Kr&&Kr.isRegExp,mx=Kr&&Kr.isSet,vx=Kr&&Kr.isTypedArray;function Pr(X,re,ee){switch(ee.length){case 0:return X.call(re);case 1:return X.call(re,ee[0]);case 2:return X.call(re,ee[0],ee[1]);case 3:return X.call(re,ee[0],ee[1],ee[2])}return X.apply(re,ee)}function WO(X,re,ee,ke){for(var et=-1,It=X==null?0:X.length;++et-1}function Vh(X,re,ee){for(var ke=-1,et=X==null?0:X.length;++ke-1;);return ee}function Rx(X,re){for(var ee=X.length;ee--&&Sa(re,X[ee],0)>-1;);return ee}function KO(X,re){for(var ee=X.length,ke=0;ee--;)X[ee]===re&&++ke;return ke}var JO=Hh(_O),QO=Hh(NO);function qO(X){return"\\"+DO[X]}function eT(X,re){return X==null?n:X[re]}function Ra(X){return MO.test(X)}function tT(X){return OO.test(X)}function nT(X){for(var re,ee=[];!(re=X.next()).done;)ee.push(re.value);return ee}function Zh(X){var re=-1,ee=Array(X.size);return X.forEach(function(ke,et){ee[++re]=[et,ke]}),ee}function Ex(X,re){return function(ee){return X(re(ee))}}function Yi(X,re){for(var ee=-1,ke=X.length,et=0,It=[];++ee-1}function zT(l,u){var p=this.__data__,w=Cd(p,l);return w<0?(++this.size,p.push([l,u])):p[w][1]=u,this}fi.prototype.clear=$T,fi.prototype.delete=VT,fi.prototype.get=WT,fi.prototype.has=GT,fi.prototype.set=zT;function pi(l){var u=-1,p=l==null?0:l.length;for(this.clear();++u=u?l:u)),l}function eo(l,u,p,w,k,T){var B,G=u&g,Y=u&v,ue=u&h;if(p&&(B=k?p(l,w,k,T):p(l)),B!==n)return B;if(!Yt(l))return l;var ce=tt(l);if(ce){if(B=UL(l),!G)return ur(l,B)}else{var de=zn(l),Ie=de==Fe||de==We;if(tl(l))return sw(l,G);if(de==xt||de==ye||Ie&&!k){if(B=Y||Ie?{}:Pw(l),!G)return Y?FL(l,iL(B,l)):NL(l,Bx(B,l))}else{if(!Dt[de])return k?l:{};B=ZL(l,de,G)}}T||(T=new So);var Ne=T.get(l);if(Ne)return Ne;T.set(l,B),nC(l)?l.forEach(function(Je){B.add(eo(Je,u,p,Je,l,T))}):eC(l)&&l.forEach(function(Je,ct){B.set(ct,eo(Je,u,p,ct,l,T))});var Ke=ue?Y?xm:bm:Y?dr:kn,ot=ce?n:Ke(l);return Jr(ot||l,function(Je,ct){ot&&(ct=Je,Je=l[ct]),ou(B,ct,eo(Je,u,p,ct,l,T))}),B}function lL(l){var u=kn(l);return function(p){return $x(p,l,u)}}function $x(l,u,p){var w=p.length;if(l==null)return!w;for(l=Nt(l);w--;){var k=p[w],T=u[k],B=l[k];if(B===n&&!(k in l)||!T(B))return!1}return!0}function Vx(l,u,p){if(typeof l!="function")throw new Qr(a);return du(function(){l.apply(n,p)},u)}function iu(l,u,p,w){var k=-1,T=id,B=!0,G=l.length,Y=[],ue=u.length;if(!G)return Y;p&&(u=jt(u,kr(p))),w?(T=Vh,B=!1):u.length>=o&&(T=Qs,B=!1,u=new Dl(u));e:for(;++kk?0:k+p),w=w===n||w>k?k:rt(w),w<0&&(w+=k),w=p>w?0:oC(w);p0&&p(G)?u>1?Nn(G,u-1,p,w,k):Zi(k,G):w||(k[k.length]=G)}return k}var tm=gw(),zx=gw(!0);function Vo(l,u){return l&&tm(l,u,kn)}function nm(l,u){return l&&zx(l,u,kn)}function Sd(l,u){return Ui(u,function(p){return bi(l[p])})}function $l(l,u){u=qi(u,l);for(var p=0,w=u.length;l!=null&&pu}function uL(l,u){return l!=null&&Mt.call(l,u)}function cL(l,u){return l!=null&&u in Nt(l)}function dL(l,u,p){return l>=Gn(u,p)&&l=120&&ce.length>=120)?new Dl(B&&ce):n}ce=l[0];var de=-1,Ie=G[0];e:for(;++de-1;)G!==l&&hd.call(G,Y,1),hd.call(l,Y,1);return l}function ew(l,u){for(var p=l?u.length:0,w=p-1;p--;){var k=u[p];if(p==w||k!==T){var T=k;yi(k)?hd.call(l,k,1):fm(l,k)}}return l}function um(l,u){return l+yd(_x()*(u-l+1))}function SL(l,u,p,w){for(var k=-1,T=bn(vd((u-l)/(p||1)),0),B=ee(T);T--;)B[w?T:++k]=l,l+=p;return B}function cm(l,u){var p="";if(!l||u<1||u>z)return p;do u%2&&(p+=l),u=yd(u/2),u&&(l+=l);while(u);return p}function at(l,u){return Pm(Mw(l,u,fr),l+"")}function RL(l){return Dx(Fa(l))}function EL(l,u){var p=Fa(l);return Nd(p,Bl(u,0,p.length))}function su(l,u,p,w){if(!Yt(l))return l;u=qi(u,l);for(var k=-1,T=u.length,B=T-1,G=l;G!=null&&++kk?0:k+u),p=p>k?k:p,p<0&&(p+=k),k=u>p?0:p-u>>>0,u>>>=0;for(var T=ee(k);++w>>1,B=l[T];B!==null&&!Mr(B)&&(p?B<=u:B=o){var ue=u?null:VL(l);if(ue)return ad(ue);B=!1,k=Qs,Y=new Dl}else Y=u?[]:G;e:for(;++w=w?l:to(l,u,p)}var aw=vT||function(l){return _n.clearTimeout(l)};function sw(l,u){if(u)return l.slice();var p=l.length,w=Ax?Ax(p):new l.constructor(p);return l.copy(w),w}function mm(l){var u=new l.constructor(l.byteLength);return new pd(u).set(new pd(l)),u}function OL(l,u){var p=u?mm(l.buffer):l.buffer;return new l.constructor(p,l.byteOffset,l.byteLength)}function TL(l){var u=new l.constructor(l.source,ne.exec(l));return u.lastIndex=l.lastIndex,u}function LL(l){return ru?Nt(ru.call(l)):{}}function uw(l,u){var p=u?mm(l.buffer):l.buffer;return new l.constructor(p,l.byteOffset,l.length)}function cw(l,u){if(l!==u){var p=l!==n,w=l===null,k=l===l,T=Mr(l),B=u!==n,G=u===null,Y=u===u,ue=Mr(u);if(!G&&!ue&&!T&&l>u||T&&B&&Y&&!G&&!ue||w&&B&&Y||!p&&Y||!k)return 1;if(!w&&!T&&!ue&&l=G)return Y;var ue=p[w];return Y*(ue=="desc"?-1:1)}}return l.index-u.index}function dw(l,u,p,w){for(var k=-1,T=l.length,B=p.length,G=-1,Y=u.length,ue=bn(T-B,0),ce=ee(Y+ue),de=!w;++G1?p[k-1]:n,B=k>2?p[2]:n;for(T=l.length>3&&typeof T=="function"?(k--,T):n,B&&qn(p[0],p[1],B)&&(T=k<3?n:T,k=1),u=Nt(u);++w-1?k[T?u[B]:B]:n}}function vw(l){return mi(function(u){var p=u.length,w=p,k=qr.prototype.thru;for(l&&u.reverse();w--;){var T=u[w];if(typeof T!="function")throw new Qr(a);if(k&&!B&&Ld(T)=="wrapper")var B=new qr([],!0)}for(w=B?w:p;++w1&&ht.reverse(),ce&&YG))return!1;var ue=T.get(l),ce=T.get(u);if(ue&&ce)return ue==u&&ce==l;var de=-1,Ie=!0,Ne=p&b?new Dl:n;for(T.set(l,u),T.set(u,l);++de1?"& ":"")+u[w],u=u.join(p>2?", ":" "),l.replace(Ks,`{ +/* [wrapped with `+u+`] */ +`)}function KL(l){return tt(l)||Gl(l)||!!(Tx&&l&&l[Tx])}function yi(l,u){var p=typeof l;return u=u??z,!!u&&(p=="number"||p!="symbol"&&_t.test(l))&&l>-1&&l%1==0&&l0){if(++u>=V)return arguments[0]}else u=0;return l.apply(n,arguments)}}function Nd(l,u){var p=-1,w=l.length,k=w-1;for(u=u===n?w:u;++p1?l[u-1]:n;return p=typeof p=="function"?(l.pop(),p):n,Gw(l,p)});function zw(l){var u=M(l);return u.__chain__=!0,u}function aN(l,u){return u(l),l}function Fd(l,u){return u(l)}var sN=mi(function(l){var u=l.length,p=u?l[0]:0,w=this.__wrapped__,k=function(T){return em(T,l)};return u>1||this.__actions__.length||!(w instanceof gt)||!yi(p)?this.thru(k):(w=w.slice(p,+p+(u?1:0)),w.__actions__.push({func:Fd,args:[k],thisArg:n}),new qr(w,this.__chain__).thru(function(T){return u&&!T.length&&T.push(n),T}))});function uN(){return zw(this)}function cN(){return new qr(this.value(),this.__chain__)}function dN(){this.__values__===n&&(this.__values__=rC(this.value()));var l=this.__index__>=this.__values__.length,u=l?n:this.__values__[this.__index__++];return{done:l,value:u}}function fN(){return this}function pN(l){for(var u,p=this;p instanceof wd;){var w=Fw(p);w.__index__=0,w.__values__=n,u?k.__wrapped__=w:u=w;var k=w;p=p.__wrapped__}return k.__wrapped__=l,u}function gN(){var l=this.__wrapped__;if(l instanceof gt){var u=l;return this.__actions__.length&&(u=new gt(this)),u=u.reverse(),u.__actions__.push({func:Fd,args:[km],thisArg:n}),new qr(u,this.__chain__)}return this.thru(km)}function hN(){return iw(this.__wrapped__,this.__actions__)}var mN=kd(function(l,u,p){Mt.call(l,p)?++l[p]:gi(l,p,1)});function vN(l,u,p){var w=tt(l)?yx:aL;return p&&qn(l,u,p)&&(u=n),w(l,Ye(u,3))}function yN(l,u){var p=tt(l)?Ui:Gx;return p(l,Ye(u,3))}var bN=mw(Dw),xN=mw(Bw);function wN(l,u){return Nn(Dd(l,u),1)}function CN(l,u){return Nn(Dd(l,u),J)}function IN(l,u,p){return p=p===n?1:rt(p),Nn(Dd(l,u),p)}function Hw(l,u){var p=tt(l)?Jr:Ji;return p(l,Ye(u,3))}function jw(l,u){var p=tt(l)?GO:Wx;return p(l,Ye(u,3))}var SN=kd(function(l,u,p){Mt.call(l,p)?l[p].push(u):gi(l,p,[u])});function RN(l,u,p,w){l=cr(l)?l:Fa(l),p=p&&!w?rt(p):0;var k=l.length;return p<0&&(p=bn(k+p,0)),Gd(l)?p<=k&&l.indexOf(u,p)>-1:!!k&&Sa(l,u,p)>-1}var EN=at(function(l,u,p){var w=-1,k=typeof u=="function",T=cr(l)?ee(l.length):[];return Ji(l,function(B){T[++w]=k?Pr(u,B,p):lu(B,u,p)}),T}),PN=kd(function(l,u,p){gi(l,p,u)});function Dd(l,u){var p=tt(l)?jt:Zx;return p(l,Ye(u,3))}function kN(l,u,p,w){return l==null?[]:(tt(u)||(u=u==null?[]:[u]),p=w?n:p,tt(p)||(p=p==null?[]:[p]),Qx(l,u,p))}var AN=kd(function(l,u,p){l[p?0:1].push(u)},function(){return[[],[]]});function MN(l,u,p){var w=tt(l)?Wh:Cx,k=arguments.length<3;return w(l,Ye(u,4),p,k,Ji)}function ON(l,u,p){var w=tt(l)?zO:Cx,k=arguments.length<3;return w(l,Ye(u,4),p,k,Wx)}function TN(l,u){var p=tt(l)?Ui:Gx;return p(l,Vd(Ye(u,3)))}function LN(l){var u=tt(l)?Dx:RL;return u(l)}function _N(l,u,p){(p?qn(l,u,p):u===n)?u=1:u=rt(u);var w=tt(l)?nL:EL;return w(l,u)}function NN(l){var u=tt(l)?rL:kL;return u(l)}function FN(l){if(l==null)return 0;if(cr(l))return Gd(l)?Ea(l):l.length;var u=zn(l);return u==Ve||u==se?l.size:lm(l).length}function DN(l,u,p){var w=tt(l)?Gh:AL;return p&&qn(l,u,p)&&(u=n),w(l,Ye(u,3))}var BN=at(function(l,u){if(l==null)return[];var p=u.length;return p>1&&qn(l,u[0],u[1])?u=[]:p>2&&qn(u[0],u[1],u[2])&&(u=[u[0]]),Qx(l,Nn(u,1),[])}),Bd=yT||function(){return _n.Date.now()};function $N(l,u){if(typeof u!="function")throw new Qr(a);return l=rt(l),function(){if(--l<1)return u.apply(this,arguments)}}function Xw(l,u,p){return u=p?n:u,u=l&&u==null?l.length:u,hi(l,A,n,n,n,n,u)}function Uw(l,u){var p;if(typeof u!="function")throw new Qr(a);return l=rt(l),function(){return--l>0&&(p=u.apply(this,arguments)),l<=1&&(u=n),p}}var Mm=at(function(l,u,p){var w=S;if(p.length){var k=Yi(p,_a(Mm));w|=E}return hi(l,w,u,p,k)}),Zw=at(function(l,u,p){var w=S|m;if(p.length){var k=Yi(p,_a(Zw));w|=E}return hi(u,w,l,p,k)});function Yw(l,u,p){u=p?n:u;var w=hi(l,I,n,n,n,n,n,u);return w.placeholder=Yw.placeholder,w}function Kw(l,u,p){u=p?n:u;var w=hi(l,R,n,n,n,n,n,u);return w.placeholder=Kw.placeholder,w}function Jw(l,u,p){var w,k,T,B,G,Y,ue=0,ce=!1,de=!1,Ie=!0;if(typeof l!="function")throw new Qr(a);u=ro(u)||0,Yt(p)&&(ce=!!p.leading,de="maxWait"in p,T=de?bn(ro(p.maxWait)||0,u):T,Ie="trailing"in p?!!p.trailing:Ie);function Ne(un){var Eo=w,wi=k;return w=k=n,ue=un,B=l.apply(wi,Eo),B}function Ke(un){return ue=un,G=du(ct,u),ce?Ne(un):B}function ot(un){var Eo=un-Y,wi=un-ue,mC=u-Eo;return de?Gn(mC,T-wi):mC}function Je(un){var Eo=un-Y,wi=un-ue;return Y===n||Eo>=u||Eo<0||de&&wi>=T}function ct(){var un=Bd();if(Je(un))return ht(un);G=du(ct,ot(un))}function ht(un){return G=n,Ie&&w?Ne(un):(w=k=n,B)}function Or(){G!==n&&aw(G),ue=0,w=Y=k=G=n}function er(){return G===n?B:ht(Bd())}function Tr(){var un=Bd(),Eo=Je(un);if(w=arguments,k=this,Y=un,Eo){if(G===n)return Ke(Y);if(de)return aw(G),G=du(ct,u),Ne(Y)}return G===n&&(G=du(ct,u)),B}return Tr.cancel=Or,Tr.flush=er,Tr}var VN=at(function(l,u){return Vx(l,1,u)}),WN=at(function(l,u,p){return Vx(l,ro(u)||0,p)});function GN(l){return hi(l,W)}function $d(l,u){if(typeof l!="function"||u!=null&&typeof u!="function")throw new Qr(a);var p=function(){var w=arguments,k=u?u.apply(this,w):w[0],T=p.cache;if(T.has(k))return T.get(k);var B=l.apply(this,w);return p.cache=T.set(k,B)||T,B};return p.cache=new($d.Cache||pi),p}$d.Cache=pi;function Vd(l){if(typeof l!="function")throw new Qr(a);return function(){var u=arguments;switch(u.length){case 0:return!l.call(this);case 1:return!l.call(this,u[0]);case 2:return!l.call(this,u[0],u[1]);case 3:return!l.call(this,u[0],u[1],u[2])}return!l.apply(this,u)}}function zN(l){return Uw(2,l)}var HN=ML(function(l,u){u=u.length==1&&tt(u[0])?jt(u[0],kr(Ye())):jt(Nn(u,1),kr(Ye()));var p=u.length;return at(function(w){for(var k=-1,T=Gn(w.length,p);++k=u}),Gl=jx(function(){return arguments}())?jx:function(l){return en(l)&&Mt.call(l,"callee")&&!Ox.call(l,"callee")},tt=ee.isArray,iF=fx?kr(fx):pL;function cr(l){return l!=null&&Wd(l.length)&&!bi(l)}function sn(l){return en(l)&&cr(l)}function lF(l){return l===!0||l===!1||en(l)&&Qn(l)==Ce}var tl=xT||Gm,aF=px?kr(px):gL;function sF(l){return en(l)&&l.nodeType===1&&!fu(l)}function uF(l){if(l==null)return!0;if(cr(l)&&(tt(l)||typeof l=="string"||typeof l.splice=="function"||tl(l)||Na(l)||Gl(l)))return!l.length;var u=zn(l);if(u==Ve||u==se)return!l.size;if(cu(l))return!lm(l).length;for(var p in l)if(Mt.call(l,p))return!1;return!0}function cF(l,u){return au(l,u)}function dF(l,u,p){p=typeof p=="function"?p:n;var w=p?p(l,u):n;return w===n?au(l,u,n,p):!!w}function Tm(l){if(!en(l))return!1;var u=Qn(l);return u==$e||u==st||typeof l.message=="string"&&typeof l.name=="string"&&!fu(l)}function fF(l){return typeof l=="number"&&Lx(l)}function bi(l){if(!Yt(l))return!1;var u=Qn(l);return u==Fe||u==We||u==Oe||u==K}function qw(l){return typeof l=="number"&&l==rt(l)}function Wd(l){return typeof l=="number"&&l>-1&&l%1==0&&l<=z}function Yt(l){var u=typeof l;return l!=null&&(u=="object"||u=="function")}function en(l){return l!=null&&typeof l=="object"}var eC=gx?kr(gx):mL;function pF(l,u){return l===u||im(l,u,Cm(u))}function gF(l,u,p){return p=typeof p=="function"?p:n,im(l,u,Cm(u),p)}function hF(l){return tC(l)&&l!=+l}function mF(l){if(qL(l))throw new et(i);return Xx(l)}function vF(l){return l===null}function yF(l){return l==null}function tC(l){return typeof l=="number"||en(l)&&Qn(l)==Ge}function fu(l){if(!en(l)||Qn(l)!=xt)return!1;var u=gd(l);if(u===null)return!0;var p=Mt.call(u,"constructor")&&u.constructor;return typeof p=="function"&&p instanceof p&&cd.call(p)==gT}var Lm=hx?kr(hx):vL;function bF(l){return qw(l)&&l>=-z&&l<=z}var nC=mx?kr(mx):yL;function Gd(l){return typeof l=="string"||!tt(l)&&en(l)&&Qn(l)==fe}function Mr(l){return typeof l=="symbol"||en(l)&&Qn(l)==le}var Na=vx?kr(vx):bL;function xF(l){return l===n}function wF(l){return en(l)&&zn(l)==ze}function CF(l){return en(l)&&Qn(l)==lt}var IF=Td(am),SF=Td(function(l,u){return l<=u});function rC(l){if(!l)return[];if(cr(l))return Gd(l)?Io(l):ur(l);if(qs&&l[qs])return nT(l[qs]());var u=zn(l),p=u==Ve?Zh:u==se?ad:Fa;return p(l)}function xi(l){if(!l)return l===0?l:0;if(l=ro(l),l===J||l===-J){var u=l<0?-1:1;return u*q}return l===l?l:0}function rt(l){var u=xi(l),p=u%1;return u===u?p?u-p:u:0}function oC(l){return l?Bl(rt(l),0,te):0}function ro(l){if(typeof l=="number")return l;if(Mr(l))return ae;if(Yt(l)){var u=typeof l.valueOf=="function"?l.valueOf():l;l=Yt(u)?u+"":u}if(typeof l!="string")return l===0?l:+l;l=Ix(l);var p=be.test(l);return p||Ct.test(l)?$O(l.slice(2),p?2:8):Pe.test(l)?ae:+l}function iC(l){return Wo(l,dr(l))}function RF(l){return l?Bl(rt(l),-z,z):l===0?l:0}function kt(l){return l==null?"":Ar(l)}var EF=Ta(function(l,u){if(cu(u)||cr(u)){Wo(u,kn(u),l);return}for(var p in u)Mt.call(u,p)&&ou(l,p,u[p])}),lC=Ta(function(l,u){Wo(u,dr(u),l)}),zd=Ta(function(l,u,p,w){Wo(u,dr(u),l,w)}),PF=Ta(function(l,u,p,w){Wo(u,kn(u),l,w)}),kF=mi(em);function AF(l,u){var p=Oa(l);return u==null?p:Bx(p,u)}var MF=at(function(l,u){l=Nt(l);var p=-1,w=u.length,k=w>2?u[2]:n;for(k&&qn(u[0],u[1],k)&&(w=1);++p1),T}),Wo(l,xm(l),p),w&&(p=eo(p,g|v|h,WL));for(var k=u.length;k--;)fm(p,u[k]);return p});function ZF(l,u){return sC(l,Vd(Ye(u)))}var YF=mi(function(l,u){return l==null?{}:CL(l,u)});function sC(l,u){if(l==null)return{};var p=jt(xm(l),function(w){return[w]});return u=Ye(u),qx(l,p,function(w,k){return u(w,k[0])})}function KF(l,u,p){u=qi(u,l);var w=-1,k=u.length;for(k||(k=1,l=n);++wu){var w=l;l=u,u=w}if(p||l%1||u%1){var k=_x();return Gn(l+k*(u-l+BO("1e-"+((k+"").length-1))),u)}return um(l,u)}var aD=La(function(l,u,p){return u=u.toLowerCase(),l+(p?dC(u):u)});function dC(l){return Fm(kt(l).toLowerCase())}function fC(l){return l=kt(l),l&&l.replace(sr,JO).replace(kO,"")}function sD(l,u,p){l=kt(l),u=Ar(u);var w=l.length;p=p===n?w:Bl(rt(p),0,w);var k=p;return p-=u.length,p>=0&&l.slice(p,k)==u}function uD(l){return l=kt(l),l&&va.test(l)?l.replace(si,QO):l}function cD(l){return l=kt(l),l&&Er.test(l)?l.replace(qt,"\\$&"):l}var dD=La(function(l,u,p){return l+(p?"-":"")+u.toLowerCase()}),fD=La(function(l,u,p){return l+(p?" ":"")+u.toLowerCase()}),pD=hw("toLowerCase");function gD(l,u,p){l=kt(l),u=rt(u);var w=u?Ea(l):0;if(!u||w>=u)return l;var k=(u-w)/2;return Od(yd(k),p)+l+Od(vd(k),p)}function hD(l,u,p){l=kt(l),u=rt(u);var w=u?Ea(l):0;return u&&w>>0,p?(l=kt(l),l&&(typeof u=="string"||u!=null&&!Lm(u))&&(u=Ar(u),!u&&Ra(l))?el(Io(l),0,p):l.split(u,p)):[]}var CD=La(function(l,u,p){return l+(p?" ":"")+Fm(u)});function ID(l,u,p){return l=kt(l),p=p==null?0:Bl(rt(p),0,l.length),u=Ar(u),l.slice(p,p+u.length)==u}function SD(l,u,p){var w=M.templateSettings;p&&qn(l,u,p)&&(u=n),l=kt(l),u=zd({},u,w,Cw);var k=zd({},u.imports,w.imports,Cw),T=kn(k),B=Uh(k,T),G,Y,ue=0,ce=u.interpolate||di,de="__p += '",Ie=Yh((u.escape||di).source+"|"+ce.source+"|"+(ce===xa?oe:di).source+"|"+(u.evaluate||di).source+"|$","g"),Ne="//# sourceURL="+(Mt.call(u,"sourceURL")?(u.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++LO+"]")+` +`;l.replace(Ie,function(Je,ct,ht,Or,er,Tr){return ht||(ht=Or),de+=l.slice(ue,Tr).replace(cO,qO),ct&&(G=!0,de+=`' + +__e(`+ct+`) + +'`),er&&(Y=!0,de+=`'; +`+er+`; +__p += '`),ht&&(de+=`' + +((__t = (`+ht+`)) == null ? '' : __t) + +'`),ue=Tr+Je.length,Je}),de+=`'; +`;var Ke=Mt.call(u,"variable")&&u.variable;if(!Ke)de=`with (obj) { +`+de+` +} +`;else if(ci.test(Ke))throw new et(c);de=(Y?de.replace(Zs,""):de).replace(ar,"$1").replace(Co,"$1;"),de="function("+(Ke||"obj")+`) { +`+(Ke?"":`obj || (obj = {}); +`)+"var __t, __p = ''"+(G?", __e = _.escape":"")+(Y?`, __j = Array.prototype.join; +function print() { __p += __j.call(arguments, '') } +`:`; +`)+de+`return __p +}`;var ot=gC(function(){return It(T,Ne+"return "+de).apply(n,B)});if(ot.source=de,Tm(ot))throw ot;return ot}function RD(l){return kt(l).toLowerCase()}function ED(l){return kt(l).toUpperCase()}function PD(l,u,p){if(l=kt(l),l&&(p||u===n))return Ix(l);if(!l||!(u=Ar(u)))return l;var w=Io(l),k=Io(u),T=Sx(w,k),B=Rx(w,k)+1;return el(w,T,B).join("")}function kD(l,u,p){if(l=kt(l),l&&(p||u===n))return l.slice(0,Px(l)+1);if(!l||!(u=Ar(u)))return l;var w=Io(l),k=Rx(w,Io(u))+1;return el(w,0,k).join("")}function AD(l,u,p){if(l=kt(l),l&&(p||u===n))return l.replace(wa,"");if(!l||!(u=Ar(u)))return l;var w=Io(l),k=Sx(w,Io(u));return el(w,k).join("")}function MD(l,u){var p=$,w=j;if(Yt(u)){var k="separator"in u?u.separator:k;p="length"in u?rt(u.length):p,w="omission"in u?Ar(u.omission):w}l=kt(l);var T=l.length;if(Ra(l)){var B=Io(l);T=B.length}if(p>=T)return l;var G=p-Ea(w);if(G<1)return w;var Y=B?el(B,0,G).join(""):l.slice(0,G);if(k===n)return Y+w;if(B&&(G+=Y.length-G),Lm(k)){if(l.slice(G).search(k)){var ue,ce=Y;for(k.global||(k=Yh(k.source,kt(ne.exec(k))+"g")),k.lastIndex=0;ue=k.exec(ce);)var de=ue.index;Y=Y.slice(0,de===n?G:de)}}else if(l.indexOf(Ar(k),G)!=G){var Ie=Y.lastIndexOf(k);Ie>-1&&(Y=Y.slice(0,Ie))}return Y+w}function OD(l){return l=kt(l),l&&ui.test(l)?l.replace(Rr,lT):l}var TD=La(function(l,u,p){return l+(p?" ":"")+u.toUpperCase()}),Fm=hw("toUpperCase");function pC(l,u,p){return l=kt(l),u=p?n:u,u===n?tT(l)?uT(l):XO(l):l.match(u)||[]}var gC=at(function(l,u){try{return Pr(l,n,u)}catch(p){return Tm(p)?p:new et(p)}}),LD=mi(function(l,u){return Jr(u,function(p){p=Go(p),gi(l,p,Mm(l[p],l))}),l});function _D(l){var u=l==null?0:l.length,p=Ye();return l=u?jt(l,function(w){if(typeof w[1]!="function")throw new Qr(a);return[p(w[0]),w[1]]}):[],at(function(w){for(var k=-1;++kz)return[];var p=te,w=Gn(l,te);u=Ye(u),l-=te;for(var k=Xh(w,u);++p0||u<0)?new gt(p):(l<0?p=p.takeRight(-l):l&&(p=p.drop(l)),u!==n&&(u=rt(u),p=u<0?p.dropRight(-u):p.take(u-l)),p)},gt.prototype.takeRightWhile=function(l){return this.reverse().takeWhile(l).reverse()},gt.prototype.toArray=function(){return this.take(te)},Vo(gt.prototype,function(l,u){var p=/^(?:filter|find|map|reject)|While$/.test(u),w=/^(?:head|last)$/.test(u),k=M[w?"take"+(u=="last"?"Right":""):u],T=w||/^find/.test(u);k&&(M.prototype[u]=function(){var B=this.__wrapped__,G=w?[1]:arguments,Y=B instanceof gt,ue=G[0],ce=Y||tt(B),de=function(ct){var ht=k.apply(M,Zi([ct],G));return w&&Ie?ht[0]:ht};ce&&p&&typeof ue=="function"&&ue.length!=1&&(Y=ce=!1);var Ie=this.__chain__,Ne=!!this.__actions__.length,Ke=T&&!Ie,ot=Y&&!Ne;if(!T&&ce){B=ot?B:new gt(this);var Je=l.apply(B,G);return Je.__actions__.push({func:Fd,args:[de],thisArg:n}),new qr(Je,Ie)}return Ke&&ot?l.apply(this,G):(Je=this.thru(de),Ke?w?Je.value()[0]:Je.value():Je)})}),Jr(["pop","push","shift","sort","splice","unshift"],function(l){var u=sd[l],p=/^(?:push|sort|unshift)$/.test(l)?"tap":"thru",w=/^(?:pop|shift)$/.test(l);M.prototype[l]=function(){var k=arguments;if(w&&!this.__chain__){var T=this.value();return u.apply(tt(T)?T:[],k)}return this[p](function(B){return u.apply(tt(B)?B:[],k)})}}),Vo(gt.prototype,function(l,u){var p=M[u];if(p){var w=p.name+"";Mt.call(Ma,w)||(Ma[w]=[]),Ma[w].push({name:u,func:p})}}),Ma[Ad(n,m).name]=[{name:"wrapper",func:n}],gt.prototype.clone=OT,gt.prototype.reverse=TT,gt.prototype.value=LT,M.prototype.at=sN,M.prototype.chain=uN,M.prototype.commit=cN,M.prototype.next=dN,M.prototype.plant=pN,M.prototype.reverse=gN,M.prototype.toJSON=M.prototype.valueOf=M.prototype.value=hN,M.prototype.first=M.prototype.head,qs&&(M.prototype[qs]=fN),M},Pa=cT();_l?((_l.exports=Pa)._=Pa,Bh._=Pa):_n._=Pa}).call(pu)})(eg,eg.exports);var DY=eg.exports;const BY=pg(DY),jv=e=>e.toString().padStart(2,"0");class $Y{constructor(){vC(this,"wasEscKeyPressed",!1)}getCompatibleCell(t){const n=t.date?Gt(t,"date","object"):new Date(NaN),r=t.format||new Intl.DateTimeFormat(window.navigator.language),o=n.getTime(),i=Number.isNaN(o)?"":r.format(n);return{...t,date:n,value:o,text:i}}handleKeyDown(t,n,r,o,i,a,c){return!r&&dA(li(a))?{cell:this.getCompatibleCell({...t}),enableEditMode:!0}:{cell:t,enableEditMode:n===ie.POINTER||n===ie.ENTER}}update(t,n){return this.getCompatibleCell({...t,date:new Date(n.text),text:n.text})}getClassName(t,n){return t.className?t.className:""}render(t,n,r){if(!n)return t.text;if(!t.date)return'"cell.date" is not initialized with a date value';const o=jv(t.date.getFullYear()),i=jv(t.date.getMonth()+1),a=jv(t.date.getDate());return H.jsx("input",{className:"rg-input",ref:c=>{c&&c.focus()},type:"date",defaultValue:`${o}-${i}-${a}`,onChange:c=>{if(c.currentTarget.value){const[s,d,f]=c.currentTarget.value.split("-").map(g=>parseInt(g,10));r(this.getCompatibleCell({...t,date:new Date(s,d-1,f)}),!1)}else BY.set(t,"date",new Date(NaN)),r(this.getCompatibleCell(t),!0)},onBlur:c=>{if(c.currentTarget.value){const[s,d,f]=c.currentTarget.value.split("-").map(g=>parseInt(g,10));r(this.getCompatibleCell({...t,date:new Date(s,d-1,f)}),!this.wasEscKeyPressed),this.wasEscKeyPressed=!1}},onKeyDown:c=>{(Il(c.keyCode)||yo(c.keyCode)||c.keyCode===ie.COMMA||c.keyCode===ie.PERIOD||(c.ctrlKey||c.metaKey)&&c.keyCode===ie.KEY_A)&&c.stopPropagation(),!Il(c.keyCode)&&!yo(c.keyCode)&&c.keyCode!==ie.COMMA&&c.keyCode!==ie.PERIOD&&c.preventDefault(),c.keyCode===ie.ESCAPE&&(this.wasEscKeyPressed=!0)},onCopy:c=>c.stopPropagation(),onCut:c=>c.stopPropagation(),onPaste:c=>c.stopPropagation(),onPointerDown:c=>c.stopPropagation()})}}function Wu(e,t,n){return(t=x2(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function HR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Ze(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n({x:e,y:e});function n7(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function wM(e){return IM(e)?(e.nodeName||"").toLowerCase():"#document"}function Vi(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function CM(e){var t;return(t=(IM(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function IM(e){return e instanceof Node||e instanceof Vi(e).Node}function r7(e){return e instanceof Element||e instanceof Vi(e).Element}function _1(e){return e instanceof HTMLElement||e instanceof Vi(e).HTMLElement}function XR(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Vi(e).ShadowRoot}function SM(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=N1(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function o7(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function i7(e){return["html","body","#document"].includes(wM(e))}function N1(e){return Vi(e).getComputedStyle(e)}function l7(e){if(wM(e)==="html")return e;const t=e.assignedSlot||e.parentNode||XR(e)&&e.host||CM(e);return XR(t)?t.host:t}function RM(e){const t=l7(e);return i7(t)?e.ownerDocument?e.ownerDocument.body:e.body:_1(t)&&SM(t)?t:RM(t)}function og(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=RM(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),a=Vi(o);return i?t.concat(a,a.visualViewport||[],SM(o)?o:[],a.frameElement&&n?og(a.frameElement):[]):t.concat(o,og(o,[],n))}function a7(e){const t=N1(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=_1(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,c=ng(n)!==i||ng(r)!==a;return c&&(n=i,r=a),{width:n,height:r,$:c}}function F1(e){return r7(e)?e:e.contextElement}function UR(e){const t=F1(e);if(!_1(t))return rg(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=a7(t);let a=(i?ng(n.width):n.width)/r,c=(i?ng(n.height):n.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!c||!Number.isFinite(c))&&(c=1),{x:a,y:c}}const s7=rg(0);function u7(e){const t=Vi(e);return!o7()||!t.visualViewport?s7:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function c7(e,t,n){return!1}function ZR(e,t,n,r){t===void 0&&(t=!1);const o=e.getBoundingClientRect(),i=F1(e);let a=rg(1);t&&(a=UR(e));const c=c7()?u7(i):rg(0);let s=(o.left+c.x)/a.x,d=(o.top+c.y)/a.y,f=o.width/a.x,g=o.height/a.y;if(i){const v=Vi(i),h=r;let y=v,b=y.frameElement;for(;b&&r&&h!==y;){const S=UR(b),m=b.getBoundingClientRect(),x=N1(b),I=m.left+(b.clientLeft+parseFloat(x.paddingLeft))*S.x,R=m.top+(b.clientTop+parseFloat(x.paddingTop))*S.y;s*=S.x,d*=S.y,f*=S.x,g*=S.y,s+=I,d+=R,y=Vi(b),b=y.frameElement}}return n7({width:f,height:g,x:s,y:d})}function d7(e,t){let n=null,r;const o=CM(e);function i(){var c;clearTimeout(r),(c=n)==null||c.disconnect(),n=null}function a(c,s){c===void 0&&(c=!1),s===void 0&&(s=1),i();const{left:d,top:f,width:g,height:v}=e.getBoundingClientRect();if(c||t(),!g||!v)return;const h=Rf(f),y=Rf(o.clientWidth-(d+g)),b=Rf(o.clientHeight-(f+v)),S=Rf(d),x={rootMargin:-h+"px "+-y+"px "+-b+"px "+-S+"px",threshold:t7(0,e7(1,s))||1};let I=!0;function R(E){const P=E[0].intersectionRatio;if(P!==s){if(!I)return a();P?a(!1,P):r=setTimeout(()=>{a(!1,1e-7)},1e3)}I=!1}try{n=new IntersectionObserver(R,{...x,root:o.ownerDocument})}catch{n=new IntersectionObserver(R,x)}n.observe(e)}return a(!0),i}function f7(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:s=!1}=r,d=F1(e),f=o||i?[...d?og(d):[],...og(t)]:[];f.forEach(m=>{o&&m.addEventListener("scroll",n,{passive:!0}),i&&m.addEventListener("resize",n)});const g=d&&c?d7(d,n):null;let v=-1,h=null;a&&(h=new ResizeObserver(m=>{let[x]=m;x&&x.target===d&&h&&(h.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var I;(I=h)==null||I.observe(t)})),n()}),d&&!s&&h.observe(d),h.observe(t));let y,b=s?ZR(e):null;s&&S();function S(){const m=ZR(e);b&&(m.x!==b.x||m.y!==b.y||m.width!==b.width||m.height!==b.height)&&n(),b=m,y=requestAnimationFrame(S)}return n(),()=>{var m;f.forEach(x=>{o&&x.removeEventListener("scroll",n),i&&x.removeEventListener("resize",n)}),g==null||g(),(m=h)==null||m.disconnect(),h=null,s&&cancelAnimationFrame(y)}}var Sy=C.useLayoutEffect,p7=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],ig=function(){};function g7(e,t){return t?t[0]==="-"?e+t:e+"__"+t:e}function h7(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o-1}function m7(e){return Oh(e)?window.innerHeight:e.clientHeight}function PM(e){return Oh(e)?window.pageYOffset:e.scrollTop}function lg(e,t){if(Oh(e)){window.scrollTo(0,t);return}e.scrollTop=t}function v7(e){var t=getComputedStyle(e),n=t.position==="absolute",r=/(auto|scroll)/;if(t.position==="fixed")return document.documentElement;for(var o=e;o=o.parentElement;)if(t=getComputedStyle(o),!(n&&t.position==="static")&&r.test(t.overflow+t.overflowY+t.overflowX))return o;return document.documentElement}function y7(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}function Ef(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:ig,o=PM(e),i=t-o,a=10,c=0;function s(){c+=a;var d=y7(c,o,i,n);lg(e,d),cn.bottom?lg(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+o,e.scrollHeight)):r.top-o1?n-1:0),o=1;o=y)return{placement:"bottom",maxHeight:t};if(W>=y&&!a)return i&&Ef(s,$,V),{placement:"bottom",maxHeight:t};if(!a&&W>=r||a&&A>=r){i&&Ef(s,$,V);var U=a?A-R:W-R;return{placement:"bottom",maxHeight:U}}if(o==="auto"||a){var Z=t,_=a?P:O;return _>=r&&(Z=Math.min(_-R-c,t)),{placement:"top",maxHeight:Z}}if(o==="bottom")return i&&lg(s,$),{placement:"bottom",maxHeight:t};break;case"top":if(P>=y)return{placement:"top",maxHeight:t};if(O>=y&&!a)return i&&Ef(s,j,V),{placement:"top",maxHeight:t};if(!a&&O>=r||a&&P>=r){var F=t;return(!a&&O>=r||a&&P>=r)&&(F=a?P-E:O-E),i&&Ef(s,j,V),{placement:"top",maxHeight:F}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return d}function A7(e){var t={bottom:"top",top:"bottom"};return e?t[e]:"bottom"}var AM=function(t){return t==="auto"?"bottom":t},M7=function(t,n){var r,o=t.placement,i=t.theme,a=i.borderRadius,c=i.spacing,s=i.colors;return Ze((r={label:"menu"},Wu(r,A7(o),"100%"),Wu(r,"position","absolute"),Wu(r,"width","100%"),Wu(r,"zIndex",1),r),n?{}:{backgroundColor:s.neutral0,borderRadius:a,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:c.menuGutter,marginTop:c.menuGutter})},MM=C.createContext(null),O7=function(t){var n=t.children,r=t.minMenuHeight,o=t.maxMenuHeight,i=t.menuPlacement,a=t.menuPosition,c=t.menuShouldScrollIntoView,s=t.theme,d=C.useContext(MM)||{},f=d.setPortalPlacement,g=C.useRef(null),v=C.useState(o),h=Li(v,2),y=h[0],b=h[1],S=C.useState(null),m=Li(S,2),x=m[0],I=m[1],R=s.spacing.controlHeight;return Sy(function(){var E=g.current;if(E){var P=a==="fixed",A=c&&!P,O=k7({maxHeight:o,menuEl:E,minHeight:r,placement:i,shouldScroll:A,isFixedPosition:P,controlHeight:R});b(O.maxHeight),I(O.placement),f==null||f(O.placement)}},[o,i,a,c,r,f,R]),n({ref:g,placerProps:Ze(Ze({},t),{},{placement:x||AM(i),maxHeight:y})})},T7=function(t){var n=t.children,r=t.innerRef,o=t.innerProps;return Xe("div",L({},an(t,"menu",{menu:!0}),{ref:r},o),n)},L7=T7,_7=function(t,n){var r=t.maxHeight,o=t.theme.spacing.baseUnit;return Ze({maxHeight:r,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},n?{}:{paddingBottom:o,paddingTop:o})},N7=function(t){var n=t.children,r=t.innerProps,o=t.innerRef,i=t.isMulti;return Xe("div",L({},an(t,"menuList",{"menu-list":!0,"menu-list--is-multi":i}),{ref:o},r),n)},OM=function(t,n){var r=t.theme,o=r.spacing.baseUnit,i=r.colors;return Ze({textAlign:"center"},n?{}:{color:i.neutral40,padding:"".concat(o*2,"px ").concat(o*3,"px")})},F7=OM,D7=OM,B7=function(t){var n=t.children,r=n===void 0?"No options":n,o=t.innerProps,i=Hi(t,E7);return Xe("div",L({},an(Ze(Ze({},i),{},{children:r,innerProps:o}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),o),r)},$7=function(t){var n=t.children,r=n===void 0?"Loading...":n,o=t.innerProps,i=Hi(t,P7);return Xe("div",L({},an(Ze(Ze({},i),{},{children:r,innerProps:o}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),o),r)},V7=function(t){var n=t.rect,r=t.offset,o=t.position;return{left:n.left,position:o,top:r,width:n.width,zIndex:1}},W7=function(t){var n=t.appendTo,r=t.children,o=t.controlElement,i=t.innerProps,a=t.menuPlacement,c=t.menuPosition,s=C.useRef(null),d=C.useRef(null),f=C.useState(AM(a)),g=Li(f,2),v=g[0],h=g[1],y=C.useMemo(function(){return{setPortalPlacement:h}},[]),b=C.useState(null),S=Li(b,2),m=S[0],x=S[1],I=C.useCallback(function(){if(o){var A=b7(o),O=c==="fixed"?0:window.pageYOffset,W=A[v]+O;(W!==(m==null?void 0:m.offset)||A.left!==(m==null?void 0:m.rect.left)||A.width!==(m==null?void 0:m.rect.width))&&x({offset:W,rect:A})}},[o,c,v,m==null?void 0:m.offset,m==null?void 0:m.rect.left,m==null?void 0:m.rect.width]);Sy(function(){I()},[I]);var R=C.useCallback(function(){typeof d.current=="function"&&(d.current(),d.current=null),o&&s.current&&(d.current=f7(o,s.current,I,{elementResize:"ResizeObserver"in window}))},[o,I]);Sy(function(){R()},[R]);var E=C.useCallback(function(A){s.current=A,R()},[R]);if(!n&&c!=="fixed"||!m)return null;var P=Xe("div",L({ref:E},an(Ze(Ze({},t),{},{offset:m.offset,position:c,rect:m.rect}),"menuPortal",{"menu-portal":!0}),i),r);return Xe(MM.Provider,{value:y},n?Hc.createPortal(P,n):P)},G7=function(t){var n=t.isDisabled,r=t.isRtl;return{label:"container",direction:r?"rtl":void 0,pointerEvents:n?"none":void 0,position:"relative"}},z7=function(t){var n=t.children,r=t.innerProps,o=t.isDisabled,i=t.isRtl;return Xe("div",L({},an(t,"container",{"--is-disabled":o,"--is-rtl":i}),r),n)},H7=function(t,n){var r=t.theme.spacing,o=t.isMulti,i=t.hasValue,a=t.selectProps.controlShouldRenderValue;return Ze({alignItems:"center",display:o&&i&&a?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},n?{}:{padding:"".concat(r.baseUnit/2,"px ").concat(r.baseUnit*2,"px")})},j7=function(t){var n=t.children,r=t.innerProps,o=t.isMulti,i=t.hasValue;return Xe("div",L({},an(t,"valueContainer",{"value-container":!0,"value-container--is-multi":o,"value-container--has-value":i}),r),n)},X7=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},U7=function(t){var n=t.children,r=t.innerProps;return Xe("div",L({},an(t,"indicatorsContainer",{indicators:!0}),r),n)},QR,Z7=["size"],Y7=["innerProps","isRtl","size"],K7={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},TM=function(t){var n=t.size,r=Hi(t,Z7);return Xe("svg",L({height:n,width:n,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:K7},r))},D1=function(t){return Xe(TM,L({size:20},t),Xe("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},LM=function(t){return Xe(TM,L({size:20},t),Xe("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},_M=function(t,n){var r=t.isFocused,o=t.theme,i=o.spacing.baseUnit,a=o.colors;return Ze({label:"indicatorContainer",display:"flex",transition:"color 150ms"},n?{}:{color:r?a.neutral60:a.neutral20,padding:i*2,":hover":{color:r?a.neutral80:a.neutral40}})},J7=_M,Q7=function(t){var n=t.children,r=t.innerProps;return Xe("div",L({},an(t,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),r),n||Xe(LM,null))},q7=_M,eK=function(t){var n=t.children,r=t.innerProps;return Xe("div",L({},an(t,"clearIndicator",{indicator:!0,"clear-indicator":!0}),r),n||Xe(D1,null))},tK=function(t,n){var r=t.isDisabled,o=t.theme,i=o.spacing.baseUnit,a=o.colors;return Ze({label:"indicatorSeparator",alignSelf:"stretch",width:1},n?{}:{backgroundColor:r?a.neutral10:a.neutral20,marginBottom:i*2,marginTop:i*2})},nK=function(t){var n=t.innerProps;return Xe("span",L({},n,an(t,"indicatorSeparator",{"indicator-separator":!0})))},rK=Uc(QR||(QR=qY([` + 0%, 80%, 100% { opacity: 0; } + 40% { opacity: 1; } +`]))),oK=function(t,n){var r=t.isFocused,o=t.size,i=t.theme,a=i.colors,c=i.spacing.baseUnit;return Ze({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:o,lineHeight:1,marginRight:o,textAlign:"center",verticalAlign:"middle"},n?{}:{color:r?a.neutral60:a.neutral20,padding:c*2})},Xv=function(t){var n=t.delay,r=t.offset;return Xe("span",{css:jg({animation:"".concat(rK," 1s ease-in-out ").concat(n,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:r?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},iK=function(t){var n=t.innerProps,r=t.isRtl,o=t.size,i=o===void 0?4:o,a=Hi(t,Y7);return Xe("div",L({},an(Ze(Ze({},a),{},{innerProps:n,isRtl:r,size:i}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),n),Xe(Xv,{delay:0,offset:r}),Xe(Xv,{delay:160,offset:!0}),Xe(Xv,{delay:320,offset:!r}))},lK=function(t,n){var r=t.isDisabled,o=t.isFocused,i=t.theme,a=i.colors,c=i.borderRadius,s=i.spacing;return Ze({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:s.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},n?{}:{backgroundColor:r?a.neutral5:a.neutral0,borderColor:r?a.neutral10:o?a.primary:a.neutral20,borderRadius:c,borderStyle:"solid",borderWidth:1,boxShadow:o?"0 0 0 1px ".concat(a.primary):void 0,"&:hover":{borderColor:o?a.primary:a.neutral30}})},aK=function(t){var n=t.children,r=t.isDisabled,o=t.isFocused,i=t.innerRef,a=t.innerProps,c=t.menuIsOpen;return Xe("div",L({ref:i},an(t,"control",{control:!0,"control--is-disabled":r,"control--is-focused":o,"control--menu-is-open":c}),a,{"aria-disabled":r||void 0}),n)},sK=aK,uK=["data"],cK=function(t,n){var r=t.theme.spacing;return n?{}:{paddingBottom:r.baseUnit*2,paddingTop:r.baseUnit*2}},dK=function(t){var n=t.children,r=t.cx,o=t.getStyles,i=t.getClassNames,a=t.Heading,c=t.headingProps,s=t.innerProps,d=t.label,f=t.theme,g=t.selectProps;return Xe("div",L({},an(t,"group",{group:!0}),s),Xe(a,L({},c,{selectProps:g,theme:f,getStyles:o,getClassNames:i,cx:r}),d),Xe("div",null,n))},fK=function(t,n){var r=t.theme,o=r.colors,i=r.spacing;return Ze({label:"group",cursor:"default",display:"block"},n?{}:{color:o.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:i.baseUnit*3,paddingRight:i.baseUnit*3,textTransform:"uppercase"})},pK=function(t){var n=EM(t);n.data;var r=Hi(n,uK);return Xe("div",L({},an(t,"groupHeading",{"group-heading":!0}),r))},gK=dK,hK=["innerRef","isDisabled","isHidden","inputClassName"],mK=function(t,n){var r=t.isDisabled,o=t.value,i=t.theme,a=i.spacing,c=i.colors;return Ze(Ze({visibility:r?"hidden":"visible",transform:o?"translateZ(0)":""},vK),n?{}:{margin:a.baseUnit/2,paddingBottom:a.baseUnit/2,paddingTop:a.baseUnit/2,color:c.neutral80})},NM={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},vK={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":Ze({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},NM)},yK=function(t){return Ze({label:"input",color:"inherit",background:0,opacity:t?0:1,width:"100%"},NM)},bK=function(t){var n=t.cx,r=t.value,o=EM(t),i=o.innerRef,a=o.isDisabled,c=o.isHidden,s=o.inputClassName,d=Hi(o,hK);return Xe("div",L({},an(t,"input",{"input-container":!0}),{"data-value":r||""}),Xe("input",L({className:n({input:!0},s),ref:i,style:yK(c),disabled:a},d)))},xK=bK,wK=function(t,n){var r=t.theme,o=r.spacing,i=r.borderRadius,a=r.colors;return Ze({label:"multiValue",display:"flex",minWidth:0},n?{}:{backgroundColor:a.neutral10,borderRadius:i/2,margin:o.baseUnit/2})},CK=function(t,n){var r=t.theme,o=r.borderRadius,i=r.colors,a=t.cropWithEllipsis;return Ze({overflow:"hidden",textOverflow:a||a===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},n?{}:{borderRadius:o/2,color:i.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},IK=function(t,n){var r=t.theme,o=r.spacing,i=r.borderRadius,a=r.colors,c=t.isFocused;return Ze({alignItems:"center",display:"flex"},n?{}:{borderRadius:i/2,backgroundColor:c?a.dangerLight:void 0,paddingLeft:o.baseUnit,paddingRight:o.baseUnit,":hover":{backgroundColor:a.dangerLight,color:a.danger}})},FM=function(t){var n=t.children,r=t.innerProps;return Xe("div",r,n)},SK=FM,RK=FM;function EK(e){var t=e.children,n=e.innerProps;return Xe("div",L({role:"button"},n),t||Xe(D1,{size:14}))}var PK=function(t){var n=t.children,r=t.components,o=t.data,i=t.innerProps,a=t.isDisabled,c=t.removeProps,s=t.selectProps,d=r.Container,f=r.Label,g=r.Remove;return Xe(d,{data:o,innerProps:Ze(Ze({},an(t,"multiValue",{"multi-value":!0,"multi-value--is-disabled":a})),i),selectProps:s},Xe(f,{data:o,innerProps:Ze({},an(t,"multiValueLabel",{"multi-value__label":!0})),selectProps:s},n),Xe(g,{data:o,innerProps:Ze(Ze({},an(t,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(n||"option")},c),selectProps:s}))},kK=PK,AK=function(t,n){var r=t.isDisabled,o=t.isFocused,i=t.isSelected,a=t.theme,c=a.spacing,s=a.colors;return Ze({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},n?{}:{backgroundColor:i?s.primary:o?s.primary25:"transparent",color:r?s.neutral20:i?s.neutral0:"inherit",padding:"".concat(c.baseUnit*2,"px ").concat(c.baseUnit*3,"px"),":active":{backgroundColor:r?void 0:i?s.primary:s.primary50}})},MK=function(t){var n=t.children,r=t.isDisabled,o=t.isFocused,i=t.isSelected,a=t.innerRef,c=t.innerProps;return Xe("div",L({},an(t,"option",{option:!0,"option--is-disabled":r,"option--is-focused":o,"option--is-selected":i}),{ref:a,"aria-disabled":r},c),n)},OK=MK,TK=function(t,n){var r=t.theme,o=r.spacing,i=r.colors;return Ze({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},n?{}:{color:i.neutral50,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},LK=function(t){var n=t.children,r=t.innerProps;return Xe("div",L({},an(t,"placeholder",{placeholder:!0}),r),n)},_K=LK,NK=function(t,n){var r=t.isDisabled,o=t.theme,i=o.spacing,a=o.colors;return Ze({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},n?{}:{color:r?a.neutral40:a.neutral80,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},FK=function(t){var n=t.children,r=t.isDisabled,o=t.innerProps;return Xe("div",L({},an(t,"singleValue",{"single-value":!0,"single-value--is-disabled":r}),o),n)},DK=FK,BK={ClearIndicator:eK,Control:sK,DropdownIndicator:Q7,DownChevron:LM,CrossIcon:D1,Group:gK,GroupHeading:pK,IndicatorsContainer:U7,IndicatorSeparator:nK,Input:xK,LoadingIndicator:iK,Menu:L7,MenuList:N7,MenuPortal:W7,LoadingMessage:$7,NoOptionsMessage:B7,MultiValue:kK,MultiValueContainer:SK,MultiValueLabel:RK,MultiValueRemove:EK,Option:OK,Placeholder:_K,SelectContainer:z7,SingleValue:DK,ValueContainer:j7},$K=function(t){return Ze(Ze({},BK),t.components)},qR=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function VK(e,t){return!!(e===t||qR(e)&&qR(t))}function WK(e,t){if(e.length!==t.length)return!1;for(var n=0;n1?"s":""," ").concat(i.join(","),", selected.");case"select-option":return a?"option ".concat(o," is disabled. Select another option."):"option ".concat(o,", selected.");default:return""}},onFocus:function(t){var n=t.context,r=t.focused,o=t.options,i=t.label,a=i===void 0?"":i,c=t.selectValue,s=t.isDisabled,d=t.isSelected,f=t.isAppleDevice,g=function(b,S){return b&&b.length?"".concat(b.indexOf(S)+1," of ").concat(b.length):""};if(n==="value"&&c)return"value ".concat(a," focused, ").concat(g(c,r),".");if(n==="menu"&&f){var v=s?" disabled":"",h="".concat(d?" selected":"").concat(v);return"".concat(a).concat(h,", ").concat(g(o,r),".")}return""},onFilter:function(t){var n=t.inputValue,r=t.resultsMessage;return"".concat(r).concat(n?" for search term "+n:"",".")}},XK=function(t){var n=t.ariaSelection,r=t.focusedOption,o=t.focusedValue,i=t.focusableOptions,a=t.isFocused,c=t.selectValue,s=t.selectProps,d=t.id,f=t.isAppleDevice,g=s.ariaLiveMessages,v=s.getOptionLabel,h=s.inputValue,y=s.isMulti,b=s.isOptionDisabled,S=s.isSearchable,m=s.menuIsOpen,x=s.options,I=s.screenReaderStatus,R=s.tabSelectsValue,E=s.isLoading,P=s["aria-label"],A=s["aria-live"],O=C.useMemo(function(){return Ze(Ze({},jK),g||{})},[g]),W=C.useMemo(function(){var _="";if(n&&O.onChange){var F=n.option,J=n.options,z=n.removedValue,q=n.removedValues,ae=n.value,te=function(Ce){return Array.isArray(Ce)?null:Ce},he=z||F||te(ae),Se=he?v(he):"",pe=J||q||void 0,ye=pe?pe.map(v):[],ge=Ze({isDisabled:he&&b(he,c),label:Se,labels:ye},n);_=O.onChange(ge)}return _},[n,O,b,c,v]),$=C.useMemo(function(){var _="",F=r||o,J=!!(r&&c&&c.includes(r));if(F&&O.onFocus){var z={focused:F,label:v(F),isDisabled:b(F,c),isSelected:J,options:i,context:F===r?"menu":"value",selectValue:c,isAppleDevice:f};_=O.onFocus(z)}return _},[r,o,v,b,O,i,c,f]),j=C.useMemo(function(){var _="";if(m&&x.length&&!E&&O.onFilter){var F=I({count:i.length});_=O.onFilter({inputValue:h,resultsMessage:F})}return _},[i,h,m,O,x,I,E]),V=(n==null?void 0:n.action)==="initial-input-focus",U=C.useMemo(function(){var _="";if(O.guidance){var F=o?"value":m?"menu":"input";_=O.guidance({"aria-label":P,context:F,isDisabled:r&&b(r,c),isMulti:y,isSearchable:S,tabSelectsValue:R,isInitialFocus:V})}return _},[P,r,o,y,b,S,m,O,c,R,V]),Z=Xe(C.Fragment,null,Xe("span",{id:"aria-selection"},W),Xe("span",{id:"aria-focused"},$),Xe("span",{id:"aria-results"},j),Xe("span",{id:"aria-guidance"},U));return Xe(C.Fragment,null,Xe(eE,{id:d},V&&Z),Xe(eE,{"aria-live":A,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},a&&!V&&Z))},UK=XK,Ry=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],ZK=new RegExp("["+Ry.map(function(e){return e.letters}).join("")+"]","g"),DM={};for(var Uv=0;Uv-1}},QK=["innerRef"];function qK(e){var t=e.innerRef,n=Hi(e,QK),r=R7(n,"onExited","in","enter","exit","appear");return Xe("input",L({ref:t},r,{css:jg({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var eJ=function(t){t.cancelable&&t.preventDefault(),t.stopPropagation()};function tJ(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,o=e.onTopArrive,i=e.onTopLeave,a=C.useRef(!1),c=C.useRef(!1),s=C.useRef(0),d=C.useRef(null),f=C.useCallback(function(S,m){if(d.current!==null){var x=d.current,I=x.scrollTop,R=x.scrollHeight,E=x.clientHeight,P=d.current,A=m>0,O=R-E-I,W=!1;O>m&&a.current&&(r&&r(S),a.current=!1),A&&c.current&&(i&&i(S),c.current=!1),A&&m>O?(n&&!a.current&&n(S),P.scrollTop=R,W=!0,a.current=!0):!A&&-m>I&&(o&&!c.current&&o(S),P.scrollTop=0,W=!0,c.current=!0),W&&eJ(S)}},[n,r,o,i]),g=C.useCallback(function(S){f(S,S.deltaY)},[f]),v=C.useCallback(function(S){s.current=S.changedTouches[0].clientY},[]),h=C.useCallback(function(S){var m=s.current-S.changedTouches[0].clientY;f(S,m)},[f]),y=C.useCallback(function(S){if(S){var m=C7?{passive:!1}:!1;S.addEventListener("wheel",g,m),S.addEventListener("touchstart",v,m),S.addEventListener("touchmove",h,m)}},[h,v,g]),b=C.useCallback(function(S){S&&(S.removeEventListener("wheel",g,!1),S.removeEventListener("touchstart",v,!1),S.removeEventListener("touchmove",h,!1))},[h,v,g]);return C.useEffect(function(){if(t){var S=d.current;return y(S),function(){b(S)}}},[t,y,b]),function(S){d.current=S}}var nE=["boxSizing","height","overflow","paddingRight","position"],rE={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function oE(e){e.preventDefault()}function iE(e){e.stopPropagation()}function lE(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;e===0?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function aE(){return"ontouchstart"in window||navigator.maxTouchPoints}var sE=!!(typeof window<"u"&&window.document&&window.document.createElement),Lu=0,Ua={capture:!1,passive:!1};function nJ(e){var t=e.isEnabled,n=e.accountForScrollbars,r=n===void 0?!0:n,o=C.useRef({}),i=C.useRef(null),a=C.useCallback(function(s){if(sE){var d=document.body,f=d&&d.style;if(r&&nE.forEach(function(y){var b=f&&f[y];o.current[y]=b}),r&&Lu<1){var g=parseInt(o.current.paddingRight,10)||0,v=document.body?document.body.clientWidth:0,h=window.innerWidth-v+g||0;Object.keys(rE).forEach(function(y){var b=rE[y];f&&(f[y]=b)}),f&&(f.paddingRight="".concat(h,"px"))}d&&aE()&&(d.addEventListener("touchmove",oE,Ua),s&&(s.addEventListener("touchstart",lE,Ua),s.addEventListener("touchmove",iE,Ua))),Lu+=1}},[r]),c=C.useCallback(function(s){if(sE){var d=document.body,f=d&&d.style;Lu=Math.max(Lu-1,0),r&&Lu<1&&nE.forEach(function(g){var v=o.current[g];f&&(f[g]=v)}),d&&aE()&&(d.removeEventListener("touchmove",oE,Ua),s&&(s.removeEventListener("touchstart",lE,Ua),s.removeEventListener("touchmove",iE,Ua)))}},[r]);return C.useEffect(function(){if(t){var s=i.current;return a(s),function(){c(s)}}},[t,a,c]),function(s){i.current=s}}var rJ=function(t){var n=t.target;return n.ownerDocument.activeElement&&n.ownerDocument.activeElement.blur()},oJ={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function iJ(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,o=r===void 0?!0:r,i=e.onBottomArrive,a=e.onBottomLeave,c=e.onTopArrive,s=e.onTopLeave,d=tJ({isEnabled:o,onBottomArrive:i,onBottomLeave:a,onTopArrive:c,onTopLeave:s}),f=nJ({isEnabled:n}),g=function(h){d(h),f(h)};return Xe(C.Fragment,null,n&&Xe("div",{onClick:rJ,css:oJ}),t(g))}var lJ={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},aJ=function(t){var n=t.name,r=t.onFocus;return Xe("input",{required:!0,name:n,tabIndex:-1,"aria-hidden":"true",onFocus:r,css:lJ,value:"",onChange:function(){}})},sJ=aJ;function B1(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function uJ(){return B1(/^iPhone/i)}function $M(){return B1(/^Mac/i)}function cJ(){return B1(/^iPad/i)||$M()&&navigator.maxTouchPoints>1}function dJ(){return uJ()||cJ()}function fJ(){return $M()||dJ()}var pJ=function(t){return t.label},gJ=function(t){return t.label},hJ=function(t){return t.value},mJ=function(t){return!!t.isDisabled},vJ={clearIndicator:q7,container:G7,control:lK,dropdownIndicator:J7,group:cK,groupHeading:fK,indicatorsContainer:X7,indicatorSeparator:tK,input:mK,loadingIndicator:oK,loadingMessage:D7,menu:M7,menuList:_7,menuPortal:V7,multiValue:wK,multiValueLabel:CK,multiValueRemove:IK,noOptionsMessage:F7,option:AK,placeholder:TK,singleValue:NK,valueContainer:H7},yJ={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},bJ=4,VM=4,xJ=38,wJ=VM*2,CJ={baseUnit:VM,controlHeight:xJ,menuGutter:wJ},Kv={borderRadius:bJ,colors:yJ,spacing:CJ},IJ={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:JR(),captureMenuScroll:!JR(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:JK(),formatGroupLabel:pJ,getOptionLabel:gJ,getOptionValue:hJ,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:mJ,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!x7(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(t){var n=t.count;return"".concat(n," result").concat(n!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function uE(e,t,n,r){var o=zM(e,t,n),i=HM(e,t,n),a=GM(e,t),c=ag(e,t);return{type:"option",data:t,isDisabled:o,isSelected:i,label:a,value:c,index:r}}function rp(e,t){return e.options.map(function(n,r){if("options"in n){var o=n.options.map(function(a,c){return uE(e,a,t,c)}).filter(function(a){return dE(e,a)});return o.length>0?{type:"group",data:n,options:o,index:r}:void 0}var i=uE(e,n,t,r);return dE(e,i)?i:void 0}).filter(I7)}function WM(e){return e.reduce(function(t,n){return n.type==="group"?t.push.apply(t,L1(n.options.map(function(r){return r.data}))):t.push(n.data),t},[])}function cE(e,t){return e.reduce(function(n,r){return r.type==="group"?n.push.apply(n,L1(r.options.map(function(o){return{data:o.data,id:"".concat(t,"-").concat(r.index,"-").concat(o.index)}}))):n.push({data:r.data,id:"".concat(t,"-").concat(r.index)}),n},[])}function SJ(e,t){return WM(rp(e,t))}function dE(e,t){var n=e.inputValue,r=n===void 0?"":n,o=t.data,i=t.isSelected,a=t.label,c=t.value;return(!XM(e)||!i)&&jM(e,{label:a,value:c,data:o},r)}function RJ(e,t){var n=e.focusedValue,r=e.selectValue,o=r.indexOf(n);if(o>-1){var i=t.indexOf(n);if(i>-1)return n;if(o-1?n:t[0]}var Jv=function(t,n){var r,o=(r=t.find(function(i){return i.data===n}))===null||r===void 0?void 0:r.id;return o||null},GM=function(t,n){return t.getOptionLabel(n)},ag=function(t,n){return t.getOptionValue(n)};function zM(e,t,n){return typeof e.isOptionDisabled=="function"?e.isOptionDisabled(t,n):!1}function HM(e,t,n){if(n.indexOf(t)>-1)return!0;if(typeof e.isOptionSelected=="function")return e.isOptionSelected(t,n);var r=ag(e,t);return n.some(function(o){return ag(e,o)===r})}function jM(e,t,n){return e.filterOption?e.filterOption(t,n):!0}var XM=function(t){var n=t.hideSelectedOptions,r=t.isMulti;return n===void 0?r:n},PJ=1,UM=function(e){UY(n,e);var t=YY(n);function n(r){var o;if(jY(this,n),o=t.call(this,r),o.state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},o.blockOptionHover=!1,o.isComposing=!1,o.commonProps=void 0,o.initialTouchX=0,o.initialTouchY=0,o.openAfterFocus=!1,o.scrollToFocusedOptionOnUpdate=!1,o.userIsDragging=void 0,o.isAppleDevice=fJ(),o.controlRef=null,o.getControlRef=function(s){o.controlRef=s},o.focusedOptionRef=null,o.getFocusedOptionRef=function(s){o.focusedOptionRef=s},o.menuListRef=null,o.getMenuListRef=function(s){o.menuListRef=s},o.inputRef=null,o.getInputRef=function(s){o.inputRef=s},o.focus=o.focusInput,o.blur=o.blurInput,o.onChange=function(s,d){var f=o.props,g=f.onChange,v=f.name;d.name=v,o.ariaOnChange(s,d),g(s,d)},o.setValue=function(s,d,f){var g=o.props,v=g.closeMenuOnSelect,h=g.isMulti,y=g.inputValue;o.onInputChange("",{action:"set-value",prevInputValue:y}),v&&(o.setState({inputIsHiddenAfterUpdate:!h}),o.onMenuClose()),o.setState({clearFocusValueOnUpdate:!0}),o.onChange(s,{action:d,option:f})},o.selectOption=function(s){var d=o.props,f=d.blurInputOnSelect,g=d.isMulti,v=d.name,h=o.state.selectValue,y=g&&o.isOptionSelected(s,h),b=o.isOptionDisabled(s,h);if(y){var S=o.getOptionValue(s);o.setValue(h.filter(function(m){return o.getOptionValue(m)!==S}),"deselect-option",s)}else if(!b)g?o.setValue([].concat(L1(h),[s]),"select-option",s):o.setValue(s,"select-option");else{o.ariaOnChange(s,{action:"select-option",option:s,name:v});return}f&&o.blurInput()},o.removeValue=function(s){var d=o.props.isMulti,f=o.state.selectValue,g=o.getOptionValue(s),v=f.filter(function(y){return o.getOptionValue(y)!==g}),h=kf(d,v,v[0]||null);o.onChange(h,{action:"remove-value",removedValue:s}),o.focusInput()},o.clearValue=function(){var s=o.state.selectValue;o.onChange(kf(o.props.isMulti,[],null),{action:"clear",removedValues:s})},o.popValue=function(){var s=o.props.isMulti,d=o.state.selectValue,f=d[d.length-1],g=d.slice(0,d.length-1),v=kf(s,g,g[0]||null);o.onChange(v,{action:"pop-value",removedValue:f})},o.getFocusedOptionId=function(s){return Jv(o.state.focusableOptionsWithIds,s)},o.getFocusableOptionsWithIds=function(){return cE(rp(o.props,o.state.selectValue),o.getElementId("option"))},o.getValue=function(){return o.state.selectValue},o.cx=function(){for(var s=arguments.length,d=new Array(s),f=0;fh||v>h}},o.onTouchEnd=function(s){o.userIsDragging||(o.controlRef&&!o.controlRef.contains(s.target)&&o.menuListRef&&!o.menuListRef.contains(s.target)&&o.blurInput(),o.initialTouchX=0,o.initialTouchY=0)},o.onControlTouchEnd=function(s){o.userIsDragging||o.onControlMouseDown(s)},o.onClearIndicatorTouchEnd=function(s){o.userIsDragging||o.onClearIndicatorMouseDown(s)},o.onDropdownIndicatorTouchEnd=function(s){o.userIsDragging||o.onDropdownIndicatorMouseDown(s)},o.handleInputChange=function(s){var d=o.props.inputValue,f=s.currentTarget.value;o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange(f,{action:"input-change",prevInputValue:d}),o.props.menuIsOpen||o.onMenuOpen()},o.onInputFocus=function(s){o.props.onFocus&&o.props.onFocus(s),o.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(o.openAfterFocus||o.props.openMenuOnFocus)&&o.openMenu("first"),o.openAfterFocus=!1},o.onInputBlur=function(s){var d=o.props.inputValue;if(o.menuListRef&&o.menuListRef.contains(document.activeElement)){o.inputRef.focus();return}o.props.onBlur&&o.props.onBlur(s),o.onInputChange("",{action:"input-blur",prevInputValue:d}),o.onMenuClose(),o.setState({focusedValue:null,isFocused:!1})},o.onOptionHover=function(s){if(!(o.blockOptionHover||o.state.focusedOption===s)){var d=o.getFocusableOptions(),f=d.indexOf(s);o.setState({focusedOption:s,focusedOptionId:f>-1?o.getFocusedOptionId(s):null})}},o.shouldHideSelectedOptions=function(){return XM(o.props)},o.onValueInputFocus=function(s){s.preventDefault(),s.stopPropagation(),o.focus()},o.onKeyDown=function(s){var d=o.props,f=d.isMulti,g=d.backspaceRemovesValue,v=d.escapeClearsValue,h=d.inputValue,y=d.isClearable,b=d.isDisabled,S=d.menuIsOpen,m=d.onKeyDown,x=d.tabSelectsValue,I=d.openMenuOnFocus,R=o.state,E=R.focusedOption,P=R.focusedValue,A=R.selectValue;if(!b&&!(typeof m=="function"&&(m(s),s.defaultPrevented))){switch(o.blockOptionHover=!0,s.key){case"ArrowLeft":if(!f||h)return;o.focusValue("previous");break;case"ArrowRight":if(!f||h)return;o.focusValue("next");break;case"Delete":case"Backspace":if(h)return;if(P)o.removeValue(P);else{if(!g)return;f?o.popValue():y&&o.clearValue()}break;case"Tab":if(o.isComposing||s.shiftKey||!S||!x||!E||I&&o.isOptionSelected(E,A))return;o.selectOption(E);break;case"Enter":if(s.keyCode===229)break;if(S){if(!E||o.isComposing)return;o.selectOption(E);break}return;case"Escape":S?(o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange("",{action:"menu-close",prevInputValue:h}),o.onMenuClose()):y&&v&&o.clearValue();break;case" ":if(h)return;if(!S){o.openMenu("first");break}if(!E)return;o.selectOption(E);break;case"ArrowUp":S?o.focusOption("up"):o.openMenu("last");break;case"ArrowDown":S?o.focusOption("down"):o.openMenu("first");break;case"PageUp":if(!S)return;o.focusOption("pageup");break;case"PageDown":if(!S)return;o.focusOption("pagedown");break;case"Home":if(!S)return;o.focusOption("first");break;case"End":if(!S)return;o.focusOption("last");break;default:return}s.preventDefault()}},o.state.instancePrefix="react-select-"+(o.props.instanceId||++PJ),o.state.selectValue=YR(r.value),r.menuIsOpen&&o.state.selectValue.length){var i=o.getFocusableOptionsWithIds(),a=o.buildFocusableOptions(),c=a.indexOf(o.state.selectValue[0]);o.state.focusableOptionsWithIds=i,o.state.focusedOption=a[c],o.state.focusedOptionId=Jv(i,a[c])}return o}return XY(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&KR(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(o){var i=this.props,a=i.isDisabled,c=i.menuIsOpen,s=this.state.isFocused;(s&&!a&&o.isDisabled||s&&c&&!o.menuIsOpen)&&this.focusInput(),s&&a&&!o.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!s&&!a&&o.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(KR(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(o,i){this.props.onInputChange(o,i)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(o){var i=this,a=this.state,c=a.selectValue,s=a.isFocused,d=this.buildFocusableOptions(),f=o==="first"?0:d.length-1;if(!this.props.isMulti){var g=d.indexOf(c[0]);g>-1&&(f=g)}this.scrollToFocusedOptionOnUpdate=!(s&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:d[f],focusedOptionId:this.getFocusedOptionId(d[f])},function(){return i.onMenuOpen()})}},{key:"focusValue",value:function(o){var i=this.state,a=i.selectValue,c=i.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var s=a.indexOf(c);c||(s=-1);var d=a.length-1,f=-1;if(a.length){switch(o){case"previous":s===0?f=0:s===-1?f=d:f=s-1;break;case"next":s>-1&&s0&&arguments[0]!==void 0?arguments[0]:"first",i=this.props.pageSize,a=this.state.focusedOption,c=this.getFocusableOptions();if(c.length){var s=0,d=c.indexOf(a);a||(d=-1),o==="up"?s=d>0?d-1:c.length-1:o==="down"?s=(d+1)%c.length:o==="pageup"?(s=d-i,s<0&&(s=0)):o==="pagedown"?(s=d+i,s>c.length-1&&(s=c.length-1)):o==="last"&&(s=c.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:c[s],focusedValue:null,focusedOptionId:this.getFocusedOptionId(c[s])})}}},{key:"getTheme",value:function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(Kv):Ze(Ze({},Kv),this.props.theme):Kv}},{key:"getCommonProps",value:function(){var o=this.clearValue,i=this.cx,a=this.getStyles,c=this.getClassNames,s=this.getValue,d=this.selectOption,f=this.setValue,g=this.props,v=g.isMulti,h=g.isRtl,y=g.options,b=this.hasValue();return{clearValue:o,cx:i,getStyles:a,getClassNames:c,getValue:s,hasValue:b,isMulti:v,isRtl:h,options:y,selectOption:d,selectProps:g,setValue:f,theme:this.getTheme()}}},{key:"hasValue",value:function(){var o=this.state.selectValue;return o.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var o=this.props,i=o.isClearable,a=o.isMulti;return i===void 0?a:i}},{key:"isOptionDisabled",value:function(o,i){return zM(this.props,o,i)}},{key:"isOptionSelected",value:function(o,i){return HM(this.props,o,i)}},{key:"filterOption",value:function(o,i){return jM(this.props,o,i)}},{key:"formatOptionLabel",value:function(o,i){if(typeof this.props.formatOptionLabel=="function"){var a=this.props.inputValue,c=this.state.selectValue;return this.props.formatOptionLabel(o,{context:i,inputValue:a,selectValue:c})}else return this.getOptionLabel(o)}},{key:"formatGroupLabel",value:function(o){return this.props.formatGroupLabel(o)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var o=this.props,i=o.isDisabled,a=o.isSearchable,c=o.inputId,s=o.inputValue,d=o.tabIndex,f=o.form,g=o.menuIsOpen,v=o.required,h=this.getComponents(),y=h.Input,b=this.state,S=b.inputIsHidden,m=b.ariaSelection,x=this.commonProps,I=c||this.getElementId("input"),R=Ze(Ze(Ze({"aria-autocomplete":"list","aria-expanded":g,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":v,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},g&&{"aria-controls":this.getElementId("listbox")}),!a&&{"aria-readonly":!0}),this.hasValue()?(m==null?void 0:m.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return a?C.createElement(y,L({},x,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:I,innerRef:this.getInputRef,isDisabled:i,isHidden:S,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:d,form:f,type:"text",value:s},R)):C.createElement(qK,L({id:I,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:ig,onFocus:this.onInputFocus,disabled:i,tabIndex:d,inputMode:"none",form:f,value:""},R))}},{key:"renderPlaceholderOrValue",value:function(){var o=this,i=this.getComponents(),a=i.MultiValue,c=i.MultiValueContainer,s=i.MultiValueLabel,d=i.MultiValueRemove,f=i.SingleValue,g=i.Placeholder,v=this.commonProps,h=this.props,y=h.controlShouldRenderValue,b=h.isDisabled,S=h.isMulti,m=h.inputValue,x=h.placeholder,I=this.state,R=I.selectValue,E=I.focusedValue,P=I.isFocused;if(!this.hasValue()||!y)return m?null:C.createElement(g,L({},v,{key:"placeholder",isDisabled:b,isFocused:P,innerProps:{id:this.getElementId("placeholder")}}),x);if(S)return R.map(function(O,W){var $=O===E,j="".concat(o.getOptionLabel(O),"-").concat(o.getOptionValue(O));return C.createElement(a,L({},v,{components:{Container:c,Label:s,Remove:d},isFocused:$,isDisabled:b,key:j,index:W,removeProps:{onClick:function(){return o.removeValue(O)},onTouchEnd:function(){return o.removeValue(O)},onMouseDown:function(U){U.preventDefault()}},data:O}),o.formatOptionLabel(O,"value"))});if(m)return null;var A=R[0];return C.createElement(f,L({},v,{data:A,isDisabled:b}),this.formatOptionLabel(A,"value"))}},{key:"renderClearIndicator",value:function(){var o=this.getComponents(),i=o.ClearIndicator,a=this.commonProps,c=this.props,s=c.isDisabled,d=c.isLoading,f=this.state.isFocused;if(!this.isClearable()||!i||s||!this.hasValue()||d)return null;var g={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return C.createElement(i,L({},a,{innerProps:g,isFocused:f}))}},{key:"renderLoadingIndicator",value:function(){var o=this.getComponents(),i=o.LoadingIndicator,a=this.commonProps,c=this.props,s=c.isDisabled,d=c.isLoading,f=this.state.isFocused;if(!i||!d)return null;var g={"aria-hidden":"true"};return C.createElement(i,L({},a,{innerProps:g,isDisabled:s,isFocused:f}))}},{key:"renderIndicatorSeparator",value:function(){var o=this.getComponents(),i=o.DropdownIndicator,a=o.IndicatorSeparator;if(!i||!a)return null;var c=this.commonProps,s=this.props.isDisabled,d=this.state.isFocused;return C.createElement(a,L({},c,{isDisabled:s,isFocused:d}))}},{key:"renderDropdownIndicator",value:function(){var o=this.getComponents(),i=o.DropdownIndicator;if(!i)return null;var a=this.commonProps,c=this.props.isDisabled,s=this.state.isFocused,d={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return C.createElement(i,L({},a,{innerProps:d,isDisabled:c,isFocused:s}))}},{key:"renderMenu",value:function(){var o=this,i=this.getComponents(),a=i.Group,c=i.GroupHeading,s=i.Menu,d=i.MenuList,f=i.MenuPortal,g=i.LoadingMessage,v=i.NoOptionsMessage,h=i.Option,y=this.commonProps,b=this.state.focusedOption,S=this.props,m=S.captureMenuScroll,x=S.inputValue,I=S.isLoading,R=S.loadingMessage,E=S.minMenuHeight,P=S.maxMenuHeight,A=S.menuIsOpen,O=S.menuPlacement,W=S.menuPosition,$=S.menuPortalTarget,j=S.menuShouldBlockScroll,V=S.menuShouldScrollIntoView,U=S.noOptionsMessage,Z=S.onMenuScrollToTop,_=S.onMenuScrollToBottom;if(!A)return null;var F=function(Se,pe){var ye=Se.type,ge=Se.data,Oe=Se.isDisabled,Ce=Se.isSelected,Te=Se.label,st=Se.value,$e=b===ge,Fe=Oe?void 0:function(){return o.onOptionHover(ge)},We=Oe?void 0:function(){return o.selectOption(ge)},Ve="".concat(o.getElementId("option"),"-").concat(pe),Ge={id:Ve,onClick:We,onMouseMove:Fe,onMouseOver:Fe,tabIndex:-1,role:"option","aria-selected":o.isAppleDevice?void 0:Ce};return C.createElement(h,L({},y,{innerProps:Ge,data:ge,isDisabled:Oe,isSelected:Ce,key:Ve,label:Te,type:ye,value:st,isFocused:$e,innerRef:$e?o.getFocusedOptionRef:void 0}),o.formatOptionLabel(Se.data,"menu"))},J;if(this.hasOptions())J=this.getCategorizedOptions().map(function(he){if(he.type==="group"){var Se=he.data,pe=he.options,ye=he.index,ge="".concat(o.getElementId("group"),"-").concat(ye),Oe="".concat(ge,"-heading");return C.createElement(a,L({},y,{key:ge,data:Se,options:pe,Heading:c,headingProps:{id:Oe,data:he.data},label:o.formatGroupLabel(he.data)}),he.options.map(function(Ce){return F(Ce,"".concat(ye,"-").concat(Ce.index))}))}else if(he.type==="option")return F(he,"".concat(he.index))});else if(I){var z=R({inputValue:x});if(z===null)return null;J=C.createElement(g,y,z)}else{var q=U({inputValue:x});if(q===null)return null;J=C.createElement(v,y,q)}var ae={minMenuHeight:E,maxMenuHeight:P,menuPlacement:O,menuPosition:W,menuShouldScrollIntoView:V},te=C.createElement(O7,L({},y,ae),function(he){var Se=he.ref,pe=he.placerProps,ye=pe.placement,ge=pe.maxHeight;return C.createElement(s,L({},y,ae,{innerRef:Se,innerProps:{onMouseDown:o.onMenuMouseDown,onMouseMove:o.onMenuMouseMove},isLoading:I,placement:ye}),C.createElement(iJ,{captureEnabled:m,onTopArrive:Z,onBottomArrive:_,lockEnabled:j},function(Oe){return C.createElement(d,L({},y,{innerRef:function(Te){o.getMenuListRef(Te),Oe(Te)},innerProps:{role:"listbox","aria-multiselectable":y.isMulti,id:o.getElementId("listbox")},isLoading:I,maxHeight:ge,focusedOption:b}),J)}))});return $||W==="fixed"?C.createElement(f,L({},y,{appendTo:$,controlElement:this.controlRef,menuPlacement:O,menuPosition:W}),te):te}},{key:"renderFormField",value:function(){var o=this,i=this.props,a=i.delimiter,c=i.isDisabled,s=i.isMulti,d=i.name,f=i.required,g=this.state.selectValue;if(f&&!this.hasValue()&&!c)return C.createElement(sJ,{name:d,onFocus:this.onValueInputFocus});if(!(!d||c))if(s)if(a){var v=g.map(function(b){return o.getOptionValue(b)}).join(a);return C.createElement("input",{name:d,type:"hidden",value:v})}else{var h=g.length>0?g.map(function(b,S){return C.createElement("input",{key:"i-".concat(S),name:d,type:"hidden",value:o.getOptionValue(b)})}):C.createElement("input",{name:d,type:"hidden",value:""});return C.createElement("div",null,h)}else{var y=g[0]?this.getOptionValue(g[0]):"";return C.createElement("input",{name:d,type:"hidden",value:y})}}},{key:"renderLiveRegion",value:function(){var o=this.commonProps,i=this.state,a=i.ariaSelection,c=i.focusedOption,s=i.focusedValue,d=i.isFocused,f=i.selectValue,g=this.getFocusableOptions();return C.createElement(UK,L({},o,{id:this.getElementId("live-region"),ariaSelection:a,focusedOption:c,focusedValue:s,isFocused:d,selectValue:f,focusableOptions:g,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var o=this.getComponents(),i=o.Control,a=o.IndicatorsContainer,c=o.SelectContainer,s=o.ValueContainer,d=this.props,f=d.className,g=d.id,v=d.isDisabled,h=d.menuIsOpen,y=this.state.isFocused,b=this.commonProps=this.getCommonProps();return C.createElement(c,L({},b,{className:f,innerProps:{id:g,onKeyDown:this.onKeyDown},isDisabled:v,isFocused:y}),this.renderLiveRegion(),C.createElement(i,L({},b,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:v,isFocused:y,menuIsOpen:h}),C.createElement(s,L({},b,{isDisabled:v}),this.renderPlaceholderOrValue(),this.renderInput()),C.createElement(a,L({},b,{isDisabled:v}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(o,i){var a=i.prevProps,c=i.clearFocusValueOnUpdate,s=i.inputIsHiddenAfterUpdate,d=i.ariaSelection,f=i.isFocused,g=i.prevWasFocused,v=i.instancePrefix,h=o.options,y=o.value,b=o.menuIsOpen,S=o.inputValue,m=o.isMulti,x=YR(y),I={};if(a&&(y!==a.value||h!==a.options||b!==a.menuIsOpen||S!==a.inputValue)){var R=b?SJ(o,x):[],E=b?cE(rp(o,x),"".concat(v,"-option")):[],P=c?RJ(i,x):null,A=EJ(i,R),O=Jv(E,A);I={selectValue:x,focusedOption:A,focusedOptionId:O,focusableOptionsWithIds:E,focusedValue:P,clearFocusValueOnUpdate:!1}}var W=s!=null&&o!==a?{inputIsHidden:s,inputIsHiddenAfterUpdate:void 0}:{},$=d,j=f&&g;return f&&!j&&($={value:kf(m,x,x[0]||null),options:x,action:"initial-input-focus"},j=!g),(d==null?void 0:d.action)==="initial-input-focus"&&($=null),Ze(Ze(Ze({},I),W),{},{prevProps:o,ariaSelection:$,prevWasFocused:j})}}]),n}(C.Component);UM.defaultProps=IJ;var kJ=C.forwardRef(function(e,t){var n=HY(e);return C.createElement(UM,L({ref:t},n))}),AJ=kJ;class MJ{getCompatibleCell(t){let n;try{n=Gt(t,"selectedValue","string")}catch{n=void 0}const r=Gt(t,"values","object"),o=n?parseFloat(n):NaN;let i=!0;try{i=Gt(t,"isDisabled","boolean")}catch{i=!1}let a;try{a=Gt(t,"inputValue","string")}catch{a=void 0}let c;try{c=Gt(t,"isOpen","boolean")}catch{c=!1}return{...t,selectedValue:n,text:n||"",value:o,values:r,isDisabled:i,isOpen:c,inputValue:a}}update(t,n){console.log("cell",t),console.log("cellToMerge",n);const r=t.values.some(o=>o.value===n.text)?n.text:void 0;return this.getCompatibleCell({...t,selectedValue:r,isOpen:n.isOpen,inputValue:n.inputValue})}getClassName(t,n){const r=t.isOpen?"open":"closed";return`${t.className?t.className:""}${r}`}handleKeyDown(t,n,r,o,i,a,c){if((n===ie.SPACE||n===ie.ENTER)&&!o)return{cell:this.getCompatibleCell({...t,isOpen:!t.isOpen}),enableEditMode:!1};const s=li(a,o,c);return!r&&!i&&ii(n)&&!(o&&n===ie.SPACE)?{cell:this.getCompatibleCell({...t,inputValue:s,isOpen:!t.isOpen}),enableEditMode:!1}:{cell:t,enableEditMode:!1}}handleCompositionEnd(t,n){return{cell:{...t,inputValue:n,isOpen:!t.isOpen},enableEditMode:!1}}render(t,n,r){return H.jsx(OJ,{onCellChanged:o=>r(this.getCompatibleCell(o),!0),cell:t})}}const OJ=({onCellChanged:e,cell:t})=>{const n=He.useRef(null),[r,o]=He.useState(t.inputValue),i=He.useMemo(()=>t.values.find(a=>a.value===t.text),[t.text,t.values]);return He.useEffect(()=>{t.isOpen&&n.current&&(n.current.focus(),o(t.inputValue))},[t.isOpen,t.inputValue]),H.jsx("div",{style:{width:"100%"},onPointerDown:a=>e({...t,isOpen:!0}),children:H.jsx(AJ,{...t.inputValue&&{inputValue:r,defaultInputValue:r,onInputChange:a=>o(a)},isSearchable:!0,ref:n,...t.isOpen!==void 0&&{menuIsOpen:t.isOpen},onMenuClose:()=>e({...t,isOpen:!t.isOpen,inputValue:void 0}),onMenuOpen:()=>e({...t,isOpen:!0}),onChange:a=>e({...t,selectedValue:a.value,isOpen:!1,inputValue:void 0}),blurInputOnSelect:!0,defaultValue:i,value:i,isDisabled:t.isDisabled,options:t.values,onKeyDown:a=>{if(a.stopPropagation(),a.key==="Escape")return n.current.blur(),e({...t,isOpen:!1,inputValue:void 0})},components:{Option:TJ,Menu:LJ},styles:{container:a=>{var c;return{...a,width:"100%",height:"100%",...(c=t.styles)==null?void 0:c.container}},control:a=>{var c;return{...a,border:"none",borderColor:"transparent",minHeight:"25px",background:"transparent",boxShadow:"none",...(c=t.styles)==null?void 0:c.control}},indicatorsContainer:a=>{var c;return{...a,paddingTop:"0px",...(c=t.styles)==null?void 0:c.indicatorsContainer}},dropdownIndicator:a=>{var c;return{...a,padding:"0px 4px",...(c=t.styles)==null?void 0:c.dropdownIndicator}},singleValue:a=>{var c;return{...a,color:"inherit",...(c=t.styles)==null?void 0:c.singleValue}},indicatorSeparator:a=>{var c;return{...a,marginTop:"4px",marginBottom:"4px",...(c=t.styles)==null?void 0:c.indicatorSeparator}},input:a=>{var c;return{...a,padding:0,...(c=t.styles)==null?void 0:c.input}},valueContainer:a=>{var c;return{...a,padding:"0 8px",...(c=t.styles)==null?void 0:c.valueContainer}}}})})},TJ=({innerProps:e,label:t,isSelected:n,isFocused:r,isDisabled:o})=>H.jsx("div",{...e,onPointerDown:i=>i.stopPropagation(),className:`rg-dropdown-option${n?" selected":""}${r?" focused":""}${o?" disabled":""}`,children:t}),LJ=({innerProps:e,children:t})=>H.jsx("div",{...e,className:"rg-dropdown-menu",onPointerDown:n=>n.stopPropagation(),children:t});class _J{getCompatibleCell(t){const n=Gt(t,"text","string"),r=Gt(t,"options","object"),o=parseFloat(n);return{...t,text:n,value:o,options:r}}render(t,n,r){return n?H.jsx("select",{ref:o=>{o&&o.focus()},defaultValue:t.text,onChange:o=>r(this.getCompatibleCell({...t,text:o.currentTarget.options[o.currentTarget.selectedIndex].value}),!1),onCopy:o=>o.stopPropagation(),onCut:o=>o.stopPropagation(),onPaste:o=>o.stopPropagation(),onPointerDown:o=>o.stopPropagation(),onKeyDown:o=>{(ii(o.keyCode)||yo(o.keyCode))&&o.stopPropagation()},children:t.options.map((o,i)=>H.jsx("option",{value:o.value,children:o.label},i))}):H.jsx(H.Fragment,{children:H.jsx("span",{className:"py-1 px-3 ",children:t.text})})}handleKeyDown(t,n,r,o,i){return!r&&!i&&ii(n)?{cell:t,enableEditMode:!0}:{cell:t,enableEditMode:n===ie.POINTER||n===ie.ENTER}}update(t,n){return this.getCompatibleCell({...t,text:n.text})}}const NJ={date:new $Y,dropdown:new MJ,select:new _J},FJ=[{label:"---",value:""},{label:"HR",value:"hr"},{label:"Sales",value:"sales"},{label:"Marketing",value:"marketing"},{label:"Finance",value:"finance"},{label:"IT",value:"it"}],DJ=()=>[{empId:11,empName:"Thomas",dept:"hr",hiredAt:new Date("01/01/2020")},{empId:12,empName:"Susie",dept:"sales",hiredAt:new Date("10-15-2020")},{empId:"",empName:"",dept:"",hiredAt:""}],BJ=()=>[{columnId:"empId",width:100},{columnId:"empName",width:150},{columnId:"dept",width:150},{columnId:"hiredAt",width:150}],$J={rowId:"header",cells:[{type:"header",text:"Emp. ID"},{type:"header",text:"Emp. Name"},{type:"header",text:"Department"},{type:"header",text:"Hired Date"}]},VJ=e=>[$J,...e.map((t,n)=>({rowId:n,cells:[{type:"number",value:t.empId},{type:"text",text:t.empName},{type:"dropdown",values:FJ,isOpen:t.isOpen,selectedValue:t.dept},{type:"date",date:t.hiredAt}]}))],WJ=(e,t)=>(console.log("changes",e),e.forEach(n=>{const{rowId:r,columnId:o,previousCell:i,newCell:a,type:c}=n;c==="number"&&(t[r][o]=a.value),c==="text"&&(t[r][o]=a.text),c==="date"&&(t[r][o]=new Date(a.value)),c==="dropdown"&&(t[r].isOpen=a.isOpen,a.selectedValue!==i.selectedValue&&(t[r][o]=a.selectedValue))}),[...t]),GJ=()=>{const[e,t]=C.useState(DJ()),[n]=C.useState(BJ()),r=VJ(e),o=a=>{t(c=>WJ(a,c))},i=(a,c,s,d)=>(s==="row"&&(d=[...d,{empId:"removePerson",label:"Remove person",handler:()=>{t(f=>[...f.filter((g,v)=>!a.includes(v))])}}]),d);return H.jsxs(H.Fragment,{children:[H.jsx("h3",{children:"Table with Custom Cells"}),H.jsx(W8,{columns:n,rows:r,customCellTemplates:NJ,onCellsChanged:o,onContextMenu:i,enableColumnSelection:!0,enableRowSelection:!0,enableRangeSelection:!0,enableFillHandle:!0})]})};var td=e=>e.type==="checkbox",us=e=>e instanceof Date,nr=e=>e==null;const ZM=e=>typeof e=="object";var Sn=e=>!nr(e)&&!Array.isArray(e)&&ZM(e)&&!us(e),YM=e=>Sn(e)&&e.target?td(e.target)?e.target.checked:e.target.value:e,zJ=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,KM=(e,t)=>e.has(zJ(t)),HJ=e=>{const t=e.constructor&&e.constructor.prototype;return Sn(t)&&t.hasOwnProperty("isPrototypeOf")},$1=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function pr(e){let t;const n=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!($1&&(e instanceof Blob||e instanceof FileList))&&(n||Sn(e)))if(t=n?[]:{},!n&&!HJ(e))t=e;else for(const r in e)e.hasOwnProperty(r)&&(t[r]=pr(e[r]));else return e;return t}var Th=e=>Array.isArray(e)?e.filter(Boolean):[],ln=e=>e===void 0,we=(e,t,n)=>{if(!t||!Sn(e))return n;const r=Th(t.split(/[,[\].]+?/)).reduce((o,i)=>nr(o)?o:o[i],e);return ln(r)||r===e?ln(e[t])?n:e[t]:r},Jo=e=>typeof e=="boolean",V1=e=>/^\w*$/.test(e),JM=e=>Th(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Ft=(e,t,n)=>{let r=-1;const o=V1(t)?[t]:JM(t),i=o.length,a=i-1;for(;++rHe.useContext(jJ);var QM=(e,t,n,r=!0)=>{const o={defaultValues:t._defaultValues};for(const i in e)Object.defineProperty(o,i,{get:()=>{const a=i;return t._proxyFormState[a]!==To.all&&(t._proxyFormState[a]=!r||To.all),n&&(n[a]=!0),e[a]}});return o},Lr=e=>Sn(e)&&!Object.keys(e).length,qM=(e,t,n,r)=>{n(e);const{name:o,...i}=e;return Lr(i)||Object.keys(i).length>=Object.keys(t).length||Object.keys(i).find(a=>t[a]===(!r||To.all))},lc=e=>Array.isArray(e)?e:[e],eO=(e,t,n)=>!e||!t||e===t||lc(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r)));function G1(e){const t=He.useRef(e);t.current=e,He.useEffect(()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}function XJ(e){const t=W1(),{control:n=t.control,disabled:r,name:o,exact:i}=e||{},[a,c]=He.useState(n._formState),s=He.useRef(!0),d=He.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),f=He.useRef(o);return f.current=o,G1({disabled:r,next:g=>s.current&&eO(f.current,g.name,i)&&qM(g,d.current,n._updateFormState)&&c({...n._formState,...g}),subject:n._subjects.state}),He.useEffect(()=>(s.current=!0,d.current.isValid&&n._updateValid(!0),()=>{s.current=!1}),[n]),QM(a,n,d.current,!1)}var Qo=e=>typeof e=="string",tO=(e,t,n,r,o)=>Qo(e)?(r&&t.watch.add(e),we(n,e,o)):Array.isArray(e)?e.map(i=>(r&&t.watch.add(i),we(n,i))):(r&&(t.watchAll=!0),n);function UJ(e){const t=W1(),{control:n=t.control,name:r,defaultValue:o,disabled:i,exact:a}=e||{},c=He.useRef(r);c.current=r,G1({disabled:i,subject:n._subjects.values,next:f=>{eO(c.current,f.name,a)&&d(pr(tO(c.current,n._names,f.values||n._formValues,!1,o)))}});const[s,d]=He.useState(n._getWatch(r,o));return He.useEffect(()=>n._removeUnmounted()),s}function ZJ(e){const t=W1(),{name:n,disabled:r,control:o=t.control,shouldUnregister:i}=e,a=KM(o._names.array,n),c=UJ({control:o,name:n,defaultValue:we(o._formValues,n,we(o._defaultValues,n,e.defaultValue)),exact:!0}),s=XJ({control:o,name:n}),d=He.useRef(o.register(n,{...e.rules,value:c,...Jo(e.disabled)?{disabled:e.disabled}:{}}));return He.useEffect(()=>{const f=o._options.shouldUnregister||i,g=(v,h)=>{const y=we(o._fields,v);y&&y._f&&(y._f.mount=h)};if(g(n,!0),f){const v=pr(we(o._options.defaultValues,n));Ft(o._defaultValues,n,v),ln(we(o._formValues,n))&&Ft(o._formValues,n,v)}return()=>{(a?f&&!o._state.action:f)?o.unregister(n):g(n,!1)}},[n,o,a,i]),He.useEffect(()=>{we(o._fields,n)&&o._updateDisabledField({disabled:r,fields:o._fields,name:n,value:we(o._fields,n)._f.value})},[r,n,o]),{field:{name:n,value:c,...Jo(r)||s.disabled?{disabled:s.disabled||r}:{},onChange:He.useCallback(f=>d.current.onChange({target:{value:YM(f),name:n},type:sg.CHANGE}),[n]),onBlur:He.useCallback(()=>d.current.onBlur({target:{value:we(o._formValues,n),name:n},type:sg.BLUR}),[n,o]),ref:f=>{const g=we(o._fields,n);g&&f&&(g._f.ref={focus:()=>f.focus(),select:()=>f.select(),setCustomValidity:v=>f.setCustomValidity(v),reportValidity:()=>f.reportValidity()})}},formState:s,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!we(s.errors,n)},isDirty:{enumerable:!0,get:()=>!!we(s.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!we(s.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!we(s.validatingFields,n)},error:{enumerable:!0,get:()=>we(s.errors,n)}})}}const fE=e=>e.render(ZJ(e));var YJ=(e,t,n,r,o)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:o||!0}}:{},pE=e=>({isOnSubmit:!e||e===To.onSubmit,isOnBlur:e===To.onBlur,isOnChange:e===To.onChange,isOnAll:e===To.all,isOnTouch:e===To.onTouched}),gE=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const ac=(e,t,n,r)=>{for(const o of n||Object.keys(e)){const i=we(e,o);if(i){const{_f:a,...c}=i;if(a){if(a.refs&&a.refs[0]&&t(a.refs[0],o)&&!r)break;if(a.ref&&t(a.ref,a.name)&&!r)break;ac(c,t)}else Sn(c)&&ac(c,t)}}};var KJ=(e,t,n)=>{const r=lc(we(e,n));return Ft(r,"root",t[n]),Ft(e,n,r),e},z1=e=>e.type==="file",dl=e=>typeof e=="function",ug=e=>{if(!$1)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},op=e=>Qo(e),H1=e=>e.type==="radio",cg=e=>e instanceof RegExp;const hE={value:!1,isValid:!1},mE={value:!0,isValid:!0};var nO=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!ln(e[0].attributes.value)?ln(e[0].value)||e[0].value===""?mE:{value:e[0].value,isValid:!0}:mE:hE}return hE};const vE={isValid:!1,value:null};var rO=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,vE):vE;function yE(e,t,n="validate"){if(op(e)||Array.isArray(e)&&e.every(op)||Jo(e)&&!e)return{type:n,message:op(e)?e:"",ref:t}}var Za=e=>Sn(e)&&!cg(e)?e:{value:e,message:""},bE=async(e,t,n,r,o)=>{const{ref:i,refs:a,required:c,maxLength:s,minLength:d,min:f,max:g,pattern:v,validate:h,name:y,valueAsNumber:b,mount:S,disabled:m}=e._f,x=we(t,y);if(!S||m)return{};const I=a?a[0]:i,R=V=>{r&&I.reportValidity&&(I.setCustomValidity(Jo(V)?"":V||""),I.reportValidity())},E={},P=H1(i),A=td(i),O=P||A,W=(b||z1(i))&&ln(i.value)&&ln(x)||ug(i)&&i.value===""||x===""||Array.isArray(x)&&!x.length,$=YJ.bind(null,y,n,E),j=(V,U,Z,_=Si.maxLength,F=Si.minLength)=>{const J=V?U:Z;E[y]={type:V?_:F,message:J,ref:i,...$(V?_:F,J)}};if(o?!Array.isArray(x)||!x.length:c&&(!O&&(W||nr(x))||Jo(x)&&!x||A&&!nO(a).isValid||P&&!rO(a).isValid)){const{value:V,message:U}=op(c)?{value:!!c,message:c}:Za(c);if(V&&(E[y]={type:Si.required,message:U,ref:I,...$(Si.required,U)},!n))return R(U),E}if(!W&&(!nr(f)||!nr(g))){let V,U;const Z=Za(g),_=Za(f);if(!nr(x)&&!isNaN(x)){const F=i.valueAsNumber||x&&+x;nr(Z.value)||(V=F>Z.value),nr(_.value)||(U=F<_.value)}else{const F=i.valueAsDate||new Date(x),J=ae=>new Date(new Date().toDateString()+" "+ae),z=i.type=="time",q=i.type=="week";Qo(Z.value)&&x&&(V=z?J(x)>J(Z.value):q?x>Z.value:F>new Date(Z.value)),Qo(_.value)&&x&&(U=z?J(x)+V.value,_=!nr(U.value)&&x.length<+U.value;if((Z||_)&&(j(Z,V.message,U.message),!n))return R(E[y].message),E}if(v&&!W&&Qo(x)){const{value:V,message:U}=Za(v);if(cg(V)&&!x.match(V)&&(E[y]={type:Si.pattern,message:U,ref:i,...$(Si.pattern,U)},!n))return R(U),E}if(h){if(dl(h)){const V=await h(x,t),U=yE(V,I);if(U&&(E[y]={...U,...$(Si.validate,U.message)},!n))return R(U.message),E}else if(Sn(h)){let V={};for(const U in h){if(!Lr(V)&&!n)break;const Z=yE(await h[U](x,t),I,U);Z&&(V={...Z,...$(U,Z.message)},R(Z.message),n&&(E[y]=V))}if(!Lr(V)&&(E[y]={ref:I,...V},!n))return E}}return R(!0),E};function JJ(e,t){const n=t.slice(0,-1).length;let r=0;for(;r{let e=[];return{get observers(){return e},next:o=>{for(const i of e)i.next&&i.next(o)},subscribe:o=>(e.push(o),{unsubscribe:()=>{e=e.filter(i=>i!==o)}}),unsubscribe:()=>{e=[]}}},dg=e=>nr(e)||!ZM(e);function Jl(e,t){if(dg(e)||dg(t))return e===t;if(us(e)&&us(t))return e.getTime()===t.getTime();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const o of n){const i=e[o];if(!r.includes(o))return!1;if(o!=="ref"){const a=t[o];if(us(i)&&us(a)||Sn(i)&&Sn(a)||Array.isArray(i)&&Array.isArray(a)?!Jl(i,a):i!==a)return!1}}return!0}var oO=e=>e.type==="select-multiple",qJ=e=>H1(e)||td(e),qv=e=>ug(e)&&e.isConnected,iO=e=>{for(const t in e)if(dl(e[t]))return!0;return!1};function fg(e,t={}){const n=Array.isArray(e);if(Sn(e)||n)for(const r in e)Array.isArray(e[r])||Sn(e[r])&&!iO(e[r])?(t[r]=Array.isArray(e[r])?[]:{},fg(e[r],t[r])):nr(e[r])||(t[r]=!0);return t}function lO(e,t,n){const r=Array.isArray(e);if(Sn(e)||r)for(const o in e)Array.isArray(e[o])||Sn(e[o])&&!iO(e[o])?ln(t)||dg(n[o])?n[o]=Array.isArray(e[o])?fg(e[o],[]):{...fg(e[o])}:lO(e[o],nr(t)?{}:t[o],n[o]):n[o]=!Jl(e[o],t[o]);return n}var Af=(e,t)=>lO(e,t,fg(t)),aO=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>ln(e)?e:t?e===""?NaN:e&&+e:n&&Qo(e)?new Date(e):r?r(e):e;function e0(e){const t=e.ref;if(!(e.refs?e.refs.every(n=>n.disabled):t.disabled))return z1(t)?t.files:H1(t)?rO(e.refs).value:oO(t)?[...t.selectedOptions].map(({value:n})=>n):td(t)?nO(e.refs).value:aO(ln(t.value)?e.ref.value:t.value,e)}var eQ=(e,t,n,r)=>{const o={};for(const i of e){const a=we(t,i);a&&Ft(o,i,a._f)}return{criteriaMode:n,names:[...e],fields:o,shouldUseNativeValidation:r}},_u=e=>ln(e)?e:cg(e)?e.source:Sn(e)?cg(e.value)?e.value.source:e.value:e,tQ=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function xE(e,t,n){const r=we(e,n);if(r||V1(n))return{error:r,name:n};const o=n.split(".");for(;o.length;){const i=o.join("."),a=we(t,i),c=we(e,i);if(a&&!Array.isArray(a)&&n!==i)return{name:n};if(c&&c.type)return{name:i,error:c};o.pop()}return{name:n}}var nQ=(e,t,n,r,o)=>o.isOnAll?!1:!n&&o.isOnTouch?!(t||e):(n?r.isOnBlur:o.isOnBlur)?!e:(n?r.isOnChange:o.isOnChange)?e:!0,rQ=(e,t)=>!Th(we(e,t)).length&&wn(e,t);const oQ={mode:To.onSubmit,reValidateMode:To.onChange,shouldFocusError:!0};function iQ(e={}){let t={...oQ,...e},n={submitCount:0,isDirty:!1,isLoading:dl(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},r={},o=Sn(t.defaultValues)||Sn(t.values)?pr(t.defaultValues||t.values)||{}:{},i=t.shouldUnregister?{}:pr(o),a={action:!1,mount:!1,watch:!1},c={mount:new Set,unMount:new Set,array:new Set,watch:new Set},s,d=0;const f={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},g={values:Qv(),array:Qv(),state:Qv()},v=pE(t.mode),h=pE(t.reValidateMode),y=t.criteriaMode===To.all,b=D=>K=>{clearTimeout(d),d=setTimeout(D,K)},S=async D=>{if(f.isValid||D){const K=t.resolver?Lr((await O()).errors):await $(r,!0);K!==n.isValid&&g.state.next({isValid:K})}},m=(D,K)=>{(f.isValidating||f.validatingFields)&&((D||Array.from(c.mount)).forEach(Q=>{Q&&(K?Ft(n.validatingFields,Q,K):wn(n.validatingFields,Q))}),g.state.next({validatingFields:n.validatingFields,isValidating:!Lr(n.validatingFields)}))},x=(D,K=[],Q,se,fe=!0,le=!0)=>{if(se&&Q){if(a.action=!0,le&&Array.isArray(we(r,D))){const ve=Q(we(r,D),se.argA,se.argB);fe&&Ft(r,D,ve)}if(le&&Array.isArray(we(n.errors,D))){const ve=Q(we(n.errors,D),se.argA,se.argB);fe&&Ft(n.errors,D,ve),rQ(n.errors,D)}if(f.touchedFields&&le&&Array.isArray(we(n.touchedFields,D))){const ve=Q(we(n.touchedFields,D),se.argA,se.argB);fe&&Ft(n.touchedFields,D,ve)}f.dirtyFields&&(n.dirtyFields=Af(o,i)),g.state.next({name:D,isDirty:V(D,K),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else Ft(i,D,K)},I=(D,K)=>{Ft(n.errors,D,K),g.state.next({errors:n.errors})},R=D=>{n.errors=D,g.state.next({errors:n.errors,isValid:!1})},E=(D,K,Q,se)=>{const fe=we(r,D);if(fe){const le=we(i,D,ln(Q)?we(o,D):Q);ln(le)||se&&se.defaultChecked||K?Ft(i,D,K?le:e0(fe._f)):_(D,le),a.mount&&S()}},P=(D,K,Q,se,fe)=>{let le=!1,ve=!1;const ze={name:D},lt=!!(we(r,D)&&we(r,D)._f&&we(r,D)._f.disabled);if(!Q||se){f.isDirty&&(ve=n.isDirty,n.isDirty=ze.isDirty=V(),le=ve!==ze.isDirty);const ut=lt||Jl(we(o,D),K);ve=!!(!lt&&we(n.dirtyFields,D)),ut||lt?wn(n.dirtyFields,D):Ft(n.dirtyFields,D,!0),ze.dirtyFields=n.dirtyFields,le=le||f.dirtyFields&&ve!==!ut}if(Q){const ut=we(n.touchedFields,D);ut||(Ft(n.touchedFields,D,Q),ze.touchedFields=n.touchedFields,le=le||f.touchedFields&&ut!==Q)}return le&&fe&&g.state.next(ze),le?ze:{}},A=(D,K,Q,se)=>{const fe=we(n.errors,D),le=f.isValid&&Jo(K)&&n.isValid!==K;if(e.delayError&&Q?(s=b(()=>I(D,Q)),s(e.delayError)):(clearTimeout(d),s=null,Q?Ft(n.errors,D,Q):wn(n.errors,D)),(Q?!Jl(fe,Q):fe)||!Lr(se)||le){const ve={...se,...le&&Jo(K)?{isValid:K}:{},errors:n.errors,name:D};n={...n,...ve},g.state.next(ve)}},O=async D=>{m(D,!0);const K=await t.resolver(i,t.context,eQ(D||c.mount,r,t.criteriaMode,t.shouldUseNativeValidation));return m(D),K},W=async D=>{const{errors:K}=await O(D);if(D)for(const Q of D){const se=we(K,Q);se?Ft(n.errors,Q,se):wn(n.errors,Q)}else n.errors=K;return K},$=async(D,K,Q={valid:!0})=>{for(const se in D){const fe=D[se];if(fe){const{_f:le,...ve}=fe;if(le){const ze=c.array.has(le.name);m([se],!0);const lt=await bE(fe,i,y,t.shouldUseNativeValidation&&!K,ze);if(m([se]),lt[le.name]&&(Q.valid=!1,K))break;!K&&(we(lt,le.name)?ze?KJ(n.errors,lt,le.name):Ft(n.errors,le.name,lt[le.name]):wn(n.errors,le.name))}ve&&await $(ve,K,Q)}}return Q.valid},j=()=>{for(const D of c.unMount){const K=we(r,D);K&&(K._f.refs?K._f.refs.every(Q=>!qv(Q)):!qv(K._f.ref))&&ge(D)}c.unMount=new Set},V=(D,K)=>(D&&K&&Ft(i,D,K),!Jl(te(),o)),U=(D,K,Q)=>tO(D,c,{...a.mount?i:ln(K)?o:Qo(D)?{[D]:K}:K},Q,K),Z=D=>Th(we(a.mount?i:o,D,e.shouldUnregister?we(o,D,[]):[])),_=(D,K,Q={})=>{const se=we(r,D);let fe=K;if(se){const le=se._f;le&&(!le.disabled&&Ft(i,D,aO(K,le)),fe=ug(le.ref)&&nr(K)?"":K,oO(le.ref)?[...le.ref.options].forEach(ve=>ve.selected=fe.includes(ve.value)):le.refs?td(le.ref)?le.refs.length>1?le.refs.forEach(ve=>(!ve.defaultChecked||!ve.disabled)&&(ve.checked=Array.isArray(fe)?!!fe.find(ze=>ze===ve.value):fe===ve.value)):le.refs[0]&&(le.refs[0].checked=!!fe):le.refs.forEach(ve=>ve.checked=ve.value===fe):z1(le.ref)?le.ref.value="":(le.ref.value=fe,le.ref.type||g.values.next({name:D,values:{...i}})))}(Q.shouldDirty||Q.shouldTouch)&&P(D,fe,Q.shouldTouch,Q.shouldDirty,!0),Q.shouldValidate&&ae(D)},F=(D,K,Q)=>{for(const se in K){const fe=K[se],le=`${D}.${se}`,ve=we(r,le);(c.array.has(D)||!dg(fe)||ve&&!ve._f)&&!us(fe)?F(le,fe,Q):_(le,fe,Q)}},J=(D,K,Q={})=>{const se=we(r,D),fe=c.array.has(D),le=pr(K);Ft(i,D,le),fe?(g.array.next({name:D,values:{...i}}),(f.isDirty||f.dirtyFields)&&Q.shouldDirty&&g.state.next({name:D,dirtyFields:Af(o,i),isDirty:V(D,le)})):se&&!se._f&&!nr(le)?F(D,le,Q):_(D,le,Q),gE(D,c)&&g.state.next({...n}),g.values.next({name:a.mount?D:void 0,values:{...i}})},z=async D=>{a.mount=!0;const K=D.target;let Q=K.name,se=!0;const fe=we(r,Q),le=()=>K.type?e0(fe._f):YM(D),ve=ze=>{se=Number.isNaN(ze)||ze===we(i,Q,ze)};if(fe){let ze,lt;const ut=le(),De=D.type===sg.BLUR||D.type===sg.FOCUS_OUT,xe=!tQ(fe._f)&&!t.resolver&&!we(n.errors,Q)&&!fe._f.deps||nQ(De,we(n.touchedFields,Q),n.isSubmitted,h,v),At=gE(Q,c,De);Ft(i,Q,ut),De?(fe._f.onBlur&&fe._f.onBlur(D),s&&s(0)):fe._f.onChange&&fe._f.onChange(D);const vn=P(Q,ut,De,!1),En=!Lr(vn)||At;if(!De&&g.values.next({name:Q,type:D.type,values:{...i}}),xe)return f.isValid&&S(),En&&g.state.next({name:Q,...At?{}:vn});if(!De&&At&&g.state.next({...n}),t.resolver){const{errors:_e}=await O([Q]);if(ve(ut),se){const nt=xE(n.errors,r,Q),pt=xE(_e,r,nt.name||Q);ze=pt.error,Q=pt.name,lt=Lr(_e)}}else m([Q],!0),ze=(await bE(fe,i,y,t.shouldUseNativeValidation))[Q],m([Q]),ve(ut),se&&(ze?lt=!1:f.isValid&&(lt=await $(r,!0)));se&&(fe._f.deps&&ae(fe._f.deps),A(Q,lt,ze,vn))}},q=(D,K)=>{if(we(n.errors,K)&&D.focus)return D.focus(),1},ae=async(D,K={})=>{let Q,se;const fe=lc(D);if(t.resolver){const le=await W(ln(D)?D:fe);Q=Lr(le),se=D?!fe.some(ve=>we(le,ve)):Q}else D?(se=(await Promise.all(fe.map(async le=>{const ve=we(r,le);return await $(ve&&ve._f?{[le]:ve}:ve)}))).every(Boolean),!(!se&&!n.isValid)&&S()):se=Q=await $(r);return g.state.next({...!Qo(D)||f.isValid&&Q!==n.isValid?{}:{name:D},...t.resolver||!D?{isValid:Q}:{},errors:n.errors}),K.shouldFocus&&!se&&ac(r,q,D?fe:c.mount),se},te=D=>{const K={...a.mount?i:o};return ln(D)?K:Qo(D)?we(K,D):D.map(Q=>we(K,Q))},he=(D,K)=>({invalid:!!we((K||n).errors,D),isDirty:!!we((K||n).dirtyFields,D),error:we((K||n).errors,D),isValidating:!!we(n.validatingFields,D),isTouched:!!we((K||n).touchedFields,D)}),Se=D=>{D&&lc(D).forEach(K=>wn(n.errors,K)),g.state.next({errors:D?n.errors:{}})},pe=(D,K,Q)=>{const se=(we(r,D,{_f:{}})._f||{}).ref,fe=we(n.errors,D)||{},{ref:le,message:ve,type:ze,...lt}=fe;Ft(n.errors,D,{...lt,...K,ref:se}),g.state.next({name:D,errors:n.errors,isValid:!1}),Q&&Q.shouldFocus&&se&&se.focus&&se.focus()},ye=(D,K)=>dl(D)?g.values.subscribe({next:Q=>D(U(void 0,K),Q)}):U(D,K,!0),ge=(D,K={})=>{for(const Q of D?lc(D):c.mount)c.mount.delete(Q),c.array.delete(Q),K.keepValue||(wn(r,Q),wn(i,Q)),!K.keepError&&wn(n.errors,Q),!K.keepDirty&&wn(n.dirtyFields,Q),!K.keepTouched&&wn(n.touchedFields,Q),!K.keepIsValidating&&wn(n.validatingFields,Q),!t.shouldUnregister&&!K.keepDefaultValue&&wn(o,Q);g.values.next({values:{...i}}),g.state.next({...n,...K.keepDirty?{isDirty:V()}:{}}),!K.keepIsValid&&S()},Oe=({disabled:D,name:K,field:Q,fields:se,value:fe})=>{if(Jo(D)&&a.mount||D){const le=D?void 0:ln(fe)?e0(Q?Q._f:we(se,K)._f):fe;Ft(i,K,le),P(K,le,!1,!1,!0)}},Ce=(D,K={})=>{let Q=we(r,D);const se=Jo(K.disabled);return Ft(r,D,{...Q||{},_f:{...Q&&Q._f?Q._f:{ref:{name:D}},name:D,mount:!0,...K}}),c.mount.add(D),Q?Oe({field:Q,disabled:K.disabled,name:D,value:K.value}):E(D,!0,K.value),{...se?{disabled:K.disabled}:{},...t.progressive?{required:!!K.required,min:_u(K.min),max:_u(K.max),minLength:_u(K.minLength),maxLength:_u(K.maxLength),pattern:_u(K.pattern)}:{},name:D,onChange:z,onBlur:z,ref:fe=>{if(fe){Ce(D,K),Q=we(r,D);const le=ln(fe.value)&&fe.querySelectorAll&&fe.querySelectorAll("input,select,textarea")[0]||fe,ve=qJ(le),ze=Q._f.refs||[];if(ve?ze.find(lt=>lt===le):le===Q._f.ref)return;Ft(r,D,{_f:{...Q._f,...ve?{refs:[...ze.filter(qv),le,...Array.isArray(we(o,D))?[{}]:[]],ref:{type:le.type,name:D}}:{ref:le}}}),E(D,!1,void 0,le)}else Q=we(r,D,{}),Q._f&&(Q._f.mount=!1),(t.shouldUnregister||K.shouldUnregister)&&!(KM(c.array,D)&&a.action)&&c.unMount.add(D)}}},Te=()=>t.shouldFocusError&&ac(r,q,c.mount),st=D=>{Jo(D)&&(g.state.next({disabled:D}),ac(r,(K,Q)=>{const se=we(r,Q);se&&(K.disabled=se._f.disabled||D,Array.isArray(se._f.refs)&&se._f.refs.forEach(fe=>{fe.disabled=se._f.disabled||D}))},0,!1))},$e=(D,K)=>async Q=>{let se;Q&&(Q.preventDefault&&Q.preventDefault(),Q.persist&&Q.persist());let fe=pr(i);if(g.state.next({isSubmitting:!0}),t.resolver){const{errors:le,values:ve}=await O();n.errors=le,fe=ve}else await $(r);if(wn(n.errors,"root"),Lr(n.errors)){g.state.next({errors:{}});try{await D(fe,Q)}catch(le){se=le}}else K&&await K({...n.errors},Q),Te(),setTimeout(Te);if(g.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Lr(n.errors)&&!se,submitCount:n.submitCount+1,errors:n.errors}),se)throw se},Fe=(D,K={})=>{we(r,D)&&(ln(K.defaultValue)?J(D,pr(we(o,D))):(J(D,K.defaultValue),Ft(o,D,pr(K.defaultValue))),K.keepTouched||wn(n.touchedFields,D),K.keepDirty||(wn(n.dirtyFields,D),n.isDirty=K.defaultValue?V(D,pr(we(o,D))):V()),K.keepError||(wn(n.errors,D),f.isValid&&S()),g.state.next({...n}))},We=(D,K={})=>{const Q=D?pr(D):o,se=pr(Q),fe=Lr(D),le=fe?o:se;if(K.keepDefaultValues||(o=Q),!K.keepValues){if(K.keepDirtyValues)for(const ve of c.mount)we(n.dirtyFields,ve)?Ft(le,ve,we(i,ve)):J(ve,we(le,ve));else{if($1&&ln(D))for(const ve of c.mount){const ze=we(r,ve);if(ze&&ze._f){const lt=Array.isArray(ze._f.refs)?ze._f.refs[0]:ze._f.ref;if(ug(lt)){const ut=lt.closest("form");if(ut){ut.reset();break}}}}r={}}i=e.shouldUnregister?K.keepDefaultValues?pr(o):{}:pr(le),g.array.next({values:{...le}}),g.values.next({values:{...le}})}c={mount:K.keepDirtyValues?c.mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},a.mount=!f.isValid||!!K.keepIsValid||!!K.keepDirtyValues,a.watch=!!e.shouldUnregister,g.state.next({submitCount:K.keepSubmitCount?n.submitCount:0,isDirty:fe?!1:K.keepDirty?n.isDirty:!!(K.keepDefaultValues&&!Jl(D,o)),isSubmitted:K.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:fe?{}:K.keepDirtyValues?K.keepDefaultValues&&i?Af(o,i):n.dirtyFields:K.keepDefaultValues&&D?Af(o,D):K.keepDirty?n.dirtyFields:{},touchedFields:K.keepTouched?n.touchedFields:{},errors:K.keepErrors?n.errors:{},isSubmitSuccessful:K.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1})},Ve=(D,K)=>We(dl(D)?D(i):D,K);return{control:{register:Ce,unregister:ge,getFieldState:he,handleSubmit:$e,setError:pe,_executeSchema:O,_getWatch:U,_getDirty:V,_updateValid:S,_removeUnmounted:j,_updateFieldArray:x,_updateDisabledField:Oe,_getFieldArray:Z,_reset:We,_resetDefaultValues:()=>dl(t.defaultValues)&&t.defaultValues().then(D=>{Ve(D,t.resetOptions),g.state.next({isLoading:!1})}),_updateFormState:D=>{n={...n,...D}},_disableForm:st,_subjects:g,_proxyFormState:f,_setErrors:R,get _fields(){return r},get _formValues(){return i},get _state(){return a},set _state(D){a=D},get _defaultValues(){return o},get _names(){return c},set _names(D){c=D},get _formState(){return n},set _formState(D){n=D},get _options(){return t},set _options(D){t={...t,...D}}},trigger:ae,register:Ce,handleSubmit:$e,watch:ye,setValue:J,getValues:te,reset:Ve,resetField:Fe,clearErrors:Se,unregister:ge,setError:pe,setFocus:(D,K={})=>{const Q=we(r,D),se=Q&&Q._f;if(se){const fe=se.refs?se.refs[0]:se.ref;fe.focus&&(fe.focus(),K.shouldSelect&&fe.select())}},getFieldState:he}}function lQ(e={}){const t=He.useRef(),n=He.useRef(),[r,o]=He.useState({isDirty:!1,isValidating:!1,isLoading:dl(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:dl(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...iQ(e),formState:r});const i=t.current.control;return i._options=e,G1({subject:i._subjects.state,next:a=>{qM(a,i._proxyFormState,i._updateFormState,!0)&&o({...i._formState})}}),He.useEffect(()=>i._disableForm(e.disabled),[i,e.disabled]),He.useEffect(()=>{if(i._proxyFormState.isDirty){const a=i._getDirty();a!==r.isDirty&&i._subjects.state.next({isDirty:a})}},[i,r.isDirty]),He.useEffect(()=>{e.values&&!Jl(e.values,n.current)?(i._reset(e.values,i._options.resetOptions),n.current=e.values,o(a=>({...a}))):i._resetDefaultValues()},[e.values,i]),He.useEffect(()=>{e.errors&&i._setErrors(e.errors)},[e.errors,i]),He.useEffect(()=>{i._state.mount||(i._updateValid(),i._state.mount=!0),i._state.watch&&(i._state.watch=!1,i._subjects.state.next({...i._formState})),i._removeUnmounted()}),He.useEffect(()=>{e.shouldUnregister&&i._subjects.values.next({values:i._getWatch()})},[e.shouldUnregister,i]),t.current.formState=QM(r,i),t.current}const aQ={category1:["Option 1-1","Option 1-2","Option 1-3"],category2:["Option 2-1","Option 2-2","Option 2-3"]},sQ=()=>{const{control:e,handleSubmit:t,watch:n}=lQ(),[r,o]=C.useState(0),i=s=>{console.log(s)},a=n("category"),c=a?aQ[a]||[]:[];return H.jsx("form",{onSubmit:t(i),children:H.jsxs(iA,{activeStep:r,orientation:"horizontal",nonLinear:!0,children:[H.jsxs(Kf,{completed:!1,children:[H.jsx(rc,{children:"Select a category"}),H.jsx(ec,{sx:{mt:1},children:H.jsx(fE,{name:"category",control:e,defaultValue:"",render:({field:s})=>H.jsxs(u1,{...s,displayEmpty:!0,sx:{width:250},children:[H.jsx(Ev,{value:"",disabled:!0,children:"Select a category"}),H.jsx(Ev,{value:"category1",children:"Category 1"}),H.jsx(Ev,{value:"category2",children:"Category 2"})]})})})]},"step1"),H.jsxs(Kf,{completed:!1,children:[H.jsx(rc,{children:"Choose an option"}),H.jsx(ec,{sx:{mt:1},children:H.jsx(fE,{name:"option",control:e,defaultValue:"",render:({field:s})=>H.jsx(pH,{...s,options:c,renderInput:d=>H.jsx(AX,{...d,label:"Choose an option",fullWidth:!0}),onChange:(d,f)=>s.onChange(f)})})})]},"step2"),H.jsxs(Kf,{completed:!1,children:[H.jsx(rc,{children:"Save your work"}),H.jsx(ec,{sx:{mt:1},children:H.jsx(TH,{type:"submit",variant:"contained",color:"primary",children:"Save"})})]},"step3")]})})};var j1={},t0={};const uQ=Wi(wW);var wE;function cQ(){return wE||(wE=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=uQ}(t0)),t0}var dQ=Vb;Object.defineProperty(j1,"__esModule",{value:!0});var sO=j1.default=void 0,fQ=dQ(cQ()),pQ=H;sO=j1.default=(0,fQ.default)((0,pQ.jsx)("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check");const gQ=Re(oA)(({theme:e})=>({[`&.${Ha.alternativeLabel}`]:{top:10,left:"calc(-50% + 16px)",right:"calc(50% + 16px)"},[`&.${Ha.active}`]:{[`& .${Ha.line}`]:{borderColor:"#784af4",borderRadius:5}},[`&.${Ha.completed}`]:{[`& .${Ha.line}`]:{borderColor:"#784af4"}},[`& .${Ha.line}`]:{borderColor:e.palette.mode==="dark"?e.palette.grey[800]:"#eaeaf0",borderTopWidth:2,borderRadius:1}})),hQ=Re("div")(({theme:e,ownerState:t})=>({color:e.palette.mode==="dark"?e.palette.grey[700]:"#eaeaf0",display:"flex",height:22,alignItems:"center",...t.active&&{color:"#784af4"},"& .QontoStepIcon-completedIcon":{color:"#784af4",zIndex:1,fontSize:40},"& .QontoStepIcon-circle":{width:16,height:16,borderRadius:"50%",backgroundColor:"currentColor"}}));function uO({active:e,completed:t,className:n}){return H.jsx(hQ,{ownerState:{active:e},className:n,children:t?H.jsx(sO,{className:"QontoStepIcon-completedIcon"}):H.jsx("div",{className:"QontoStepIcon-circle"})})}uO.propTypes={active:vv.bool,className:vv.string,completed:vv.bool};const mQ=["Select a campaign","Create a group","Create Ad"];function vQ(){return H.jsx(cj,{sx:{width:"75%"},spacing:4,children:H.jsx(iA,{activeStep:1,connector:H.jsx(gQ,{}),children:mQ.map(e=>H.jsx(Kf,{children:H.jsx(rc,{StepIconComponent:uO,children:e})},e))})})}Re(ph)(({theme:e})=>({backgroundColor:e.palette.mode==="dark"?"#1A2027":"#fff",...e.typography.body2,padding:e.spacing(1),textAlign:"center",color:e.palette.text.secondary}));const yQ=()=>H.jsxs(H.Fragment,{children:[H.jsx("h1",{children:"React & Material UI Examples"}),H.jsx(ec,{sx:{width:"50%",mx:8},border:0,children:H.jsxs(Eu,{container:!0,spacing:8,children:[H.jsx(Eu,{item:!0,xs:12,children:H.jsx(sQ,{})}),H.jsx(Eu,{item:!0,xs:12,children:H.jsx(vQ,{})})]})}),H.jsx(ec,{sx:{width:"600px",m:8},border:0,children:H.jsx(Eu,{container:!0,spacing:8,children:H.jsx(Eu,{item:!0,xs:12,children:H.jsx(GJ,{})})})})]}),bQ=()=>H.jsx(H.Fragment,{children:H.jsx(yQ,{})});r0.createRoot(document.getElementById("root")).render(H.jsx(He.StrictMode,{children:H.jsx(bQ,{})})); diff --git a/docs/index.html b/docs/index.html index 46341aa..5d27fd0 100644 --- a/docs/index.html +++ b/docs/index.html @@ -5,8 +5,8 @@ Vite + React - - + +