@nebula.js/sn-pie-chart 1.28.8 → 1.28.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api-specifications/plugins.json +1 -1
- package/api-specifications/properties.json +1 -1
- package/core/esm/index.js +3 -3
- package/dist/sn-pie-chart.js +3 -3
- package/dist/sn-pie-chart.systemjs.js +2 -2
- package/package.json +1 -1
- package/sn-pie-chart-ext/dist/sn-pie-chart.js +3 -3
- package/sn-pie-chart-ext/sn-pie-chart.qext +1 -1
package/dist/sn-pie-chart.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* @nebula.js/sn-pie-chart v1.28.
|
|
2
|
+
* @nebula.js/sn-pie-chart v1.28.9
|
|
3
3
|
* Copyright (c) 2025 QlikTech International AB
|
|
4
4
|
* Released under the MIT license.
|
|
5
5
|
*/
|
|
@@ -41,7 +41,7 @@ e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,i,o,a,s,l,c,u,d,f=e.le
|
|
|
41
41
|
*
|
|
42
42
|
* This source code is licensed under the MIT license found in the
|
|
43
43
|
* LICENSE file in the root directory of this source tree.
|
|
44
|
-
*/function JD(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var ZD=new Set,QD={};function eR(e,t){tR(e,t),tR(e+"Capture",t)}function tR(e,t){for(QD[e]=t,e=0;e<t.length;e++)ZD.add(t[e])}var nR=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),rR=Object.prototype.hasOwnProperty,iR=/^[: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]*$/,oR={},aR={};function sR(e,t,n,r,i,o,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var lR={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){lR[e]=new sR(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];lR[t]=new sR(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){lR[e]=new sR(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){lR[e]=new sR(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){lR[e]=new sR(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){lR[e]=new sR(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){lR[e]=new sR(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){lR[e]=new sR(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){lR[e]=new sR(e,5,!1,e.toLowerCase(),null,!1,!1)}));var cR=/[\-:]([a-z])/g;function uR(e){return e[1].toUpperCase()}function dR(e,t,n,r){var i=lR.hasOwnProperty(t)?lR[t]:null;(null!==i?0!==i.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,i,r)&&(n=null),r||null===i?function(e){return!!rR.call(aR,e)||!rR.call(oR,e)&&(iR.test(e)?aR[e]=!0:(oR[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(cR,uR);lR[t]=new sR(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(cR,uR);lR[t]=new sR(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(cR,uR);lR[t]=new sR(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){lR[e]=new sR(e,1,!1,e.toLowerCase(),null,!1,!1)})),lR.xlinkHref=new sR("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){lR[e]=new sR(e,1,!1,e.toLowerCase(),null,!0,!0)}));var fR=GD.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,hR=Symbol.for("react.element"),pR=Symbol.for("react.portal"),mR=Symbol.for("react.fragment"),gR=Symbol.for("react.strict_mode"),yR=Symbol.for("react.profiler"),vR=Symbol.for("react.provider"),bR=Symbol.for("react.context"),xR=Symbol.for("react.forward_ref"),wR=Symbol.for("react.suspense"),kR=Symbol.for("react.suspense_list"),SR=Symbol.for("react.memo"),CR=Symbol.for("react.lazy"),ER=Symbol.for("react.offscreen"),MR=Symbol.iterator;function _R(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=MR&&e[MR]||e["@@iterator"])?e:null}var qR,DR=Object.assign;function RR(e){if(void 0===qR)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);qR=t&&t[1]||""}return"\n"+qR+e}var TR=!1;function OR(e,t){if(!e||TR)return"";TR=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var i=t.stack.split("\n"),o=r.stack.split("\n"),a=i.length-1,s=o.length-1;1<=a&&0<=s&&i[a]!==o[s];)s--;for(;1<=a&&0<=s;a--,s--)if(i[a]!==o[s]){if(1!==a||1!==s)do{if(a--,0>--s||i[a]!==o[s]){var l="\n"+i[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=a&&0<=s);break}}}finally{TR=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?RR(e):""}function PR(e){switch(e.tag){case 5:return RR(e.type);case 16:return RR("Lazy");case 13:return RR("Suspense");case 19:return RR("SuspenseList");case 0:case 2:case 15:return e=OR(e.type,!1);case 11:return e=OR(e.type.render,!1);case 1:return e=OR(e.type,!0);default:return""}}function NR(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case mR:return"Fragment";case pR:return"Portal";case yR:return"Profiler";case gR:return"StrictMode";case wR:return"Suspense";case kR:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case bR:return(e.displayName||"Context")+".Consumer";case vR:return(e._context.displayName||"Context")+".Provider";case xR:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case SR:return null!==(t=e.displayName||null)?t:NR(e.type)||"Memo";case CR:t=e._payload,e=e._init;try{return NR(e(t))}catch(e){}}return null}function AR(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return NR(t);case 8:return t===gR?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function IR(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function LR(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function zR(e){e._valueTracker||(e._valueTracker=function(e){var t=LR(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function FR(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=LR(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function jR(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function $R(e,t){var n=t.checked;return DR({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function HR(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=IR(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function VR(e,t){null!=(t=t.checked)&&dR(e,"checked",t,!1)}function BR(e,t){VR(e,t);var n=IR(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?UR(e,t.type,n):t.hasOwnProperty("defaultValue")&&UR(e,t.type,IR(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function WR(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function UR(e,t,n){"number"===t&&jR(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var YR=Array.isArray;function KR(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+IR(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function GR(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(JD(91));return DR({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function XR(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(JD(92));if(YR(n)){if(1<n.length)throw Error(JD(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:IR(n)}}function JR(e,t){var n=IR(t.value),r=IR(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ZR(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function QR(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function eT(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?QR(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var tT,nT=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction((function(){return e(t,n)}))}:e}((function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((tT=tT||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=tT.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}));function rT(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var iT={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},oT=["Webkit","ms","Moz","O"];function aT(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||iT.hasOwnProperty(e)&&iT[e]?(""+t).trim():t+"px"}function sT(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=aT(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(iT).forEach((function(e){oT.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),iT[t]=iT[e]}))}));var lT=DR({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 cT(e,t){if(t){if(lT[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(JD(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(JD(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(JD(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(JD(62))}}function uT(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var dT=null;function fT(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var hT=null,pT=null,mT=null;function gT(e){if(e=cA(e)){if("function"!=typeof hT)throw Error(JD(280));var t=e.stateNode;t&&(t=dA(t),hT(e.stateNode,e.type,t))}}function yT(e){pT?mT?mT.push(e):mT=[e]:pT=e}function vT(){if(pT){var e=pT,t=mT;if(mT=pT=null,gT(e),t)for(e=0;e<t.length;e++)gT(t[e])}}function bT(e,t){return e(t)}function xT(){}var wT=!1;function kT(e,t,n){if(wT)return e(t,n);wT=!0;try{return bT(e,t,n)}finally{wT=!1,(null!==pT||null!==mT)&&(xT(),vT())}}function ST(e,t){var n=e.stateNode;if(null===n)return null;var r=dA(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(JD(231,t,typeof n));return n}var CT=!1;if(nR)try{var ET={};Object.defineProperty(ET,"passive",{get:function(){CT=!0}}),window.addEventListener("test",ET,ET),window.removeEventListener("test",ET,ET)}catch(Wh){CT=!1}function MT(e,t,n,r,i,o,a,s,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(e){this.onError(e)}}var _T=!1,qT=null,DT=!1,RT=null,TT={onError:function(e){_T=!0,qT=e}};function OT(e,t,n,r,i,o,a,s,l){_T=!1,qT=null,MT.apply(TT,arguments)}function PT(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function NT(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function AT(e){if(PT(e)!==e)throw Error(JD(188))}function IT(e){return e=function(e){var t=e.alternate;if(!t){if(null===(t=PT(e)))throw Error(JD(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var o=i.alternate;if(null===o){if(null!==(r=i.return)){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return AT(i),e;if(o===r)return AT(i),t;o=o.sibling}throw Error(JD(188))}if(n.return!==r.return)n=i,r=o;else{for(var a=!1,s=i.child;s;){if(s===n){a=!0,n=i,r=o;break}if(s===r){a=!0,r=i,n=o;break}s=s.sibling}if(!a){for(s=o.child;s;){if(s===n){a=!0,n=o,r=i;break}if(s===r){a=!0,r=o,n=i;break}s=s.sibling}if(!a)throw Error(JD(189))}}if(n.alternate!==r)throw Error(JD(190))}if(3!==n.tag)throw Error(JD(188));return n.stateNode.current===n?e:t}(e),null!==e?LT(e):null}function LT(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=LT(e);if(null!==t)return t;e=e.sibling}return null}var zT=XD.unstable_scheduleCallback,FT=XD.unstable_cancelCallback,jT=XD.unstable_shouldYield,$T=XD.unstable_requestPaint,HT=XD.unstable_now,VT=XD.unstable_getCurrentPriorityLevel,BT=XD.unstable_ImmediatePriority,WT=XD.unstable_UserBlockingPriority,UT=XD.unstable_NormalPriority,YT=XD.unstable_LowPriority,KT=XD.unstable_IdlePriority,GT=null,XT=null;var JT=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(ZT(e)/QT|0)|0},ZT=Math.log,QT=Math.LN2;var eO=64,tO=4194304;function nO(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function rO(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,a=268435455&n;if(0!==a){var s=a&~i;0!==s?r=nO(s):0!==(o&=a)&&(r=nO(o))}else 0!==(a=n&~i)?r=nO(a):0!==o&&(r=nO(o));if(0===r)return 0;if(0!==t&&t!==r&&!(t&i)&&((i=r&-r)>=(o=t&-t)||16===i&&4194240&o))return t;if(4&r&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)i=1<<(n=31-JT(t)),r|=e[n],t&=~i;return r}function iO(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function oO(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function aO(){var e=eO;return!(4194240&(eO<<=1))&&(eO=64),e}function sO(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function lO(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-JT(t)]=n}function cO(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-JT(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var uO=0;function dO(e){return 1<(e&=-e)?4<e?268435455&e?16:536870912:4:1}var fO,hO,pO,mO,gO,yO=!1,vO=[],bO=null,xO=null,wO=null,kO=new Map,SO=new Map,CO=[],EO="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function MO(e,t){switch(e){case"focusin":case"focusout":bO=null;break;case"dragenter":case"dragleave":xO=null;break;case"mouseover":case"mouseout":wO=null;break;case"pointerover":case"pointerout":kO.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":SO.delete(t.pointerId)}}function _O(e,t,n,r,i,o){return null===e||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},null!==t&&(null!==(t=cA(t))&&hO(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function qO(e){var t=lA(e.target);if(null!==t){var n=PT(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=NT(n)))return e.blockedOn=t,void gO(e.priority,(function(){pO(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function DO(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=jO(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=cA(n))&&hO(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);dT=r,n.target.dispatchEvent(r),dT=null,t.shift()}return!0}function RO(e,t,n){DO(e)&&n.delete(t)}function TO(){yO=!1,null!==bO&&DO(bO)&&(bO=null),null!==xO&&DO(xO)&&(xO=null),null!==wO&&DO(wO)&&(wO=null),kO.forEach(RO),SO.forEach(RO)}function OO(e,t){e.blockedOn===t&&(e.blockedOn=null,yO||(yO=!0,XD.unstable_scheduleCallback(XD.unstable_NormalPriority,TO)))}function PO(e){function t(t){return OO(t,e)}if(0<vO.length){OO(vO[0],e);for(var n=1;n<vO.length;n++){var r=vO[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==bO&&OO(bO,e),null!==xO&&OO(xO,e),null!==wO&&OO(wO,e),kO.forEach(t),SO.forEach(t),n=0;n<CO.length;n++)(r=CO[n]).blockedOn===e&&(r.blockedOn=null);for(;0<CO.length&&null===(n=CO[0]).blockedOn;)qO(n),null===n.blockedOn&&CO.shift()}var NO=fR.ReactCurrentBatchConfig,AO=!0;function IO(e,t,n,r){var i=uO,o=NO.transition;NO.transition=null;try{uO=1,zO(e,t,n,r)}finally{uO=i,NO.transition=o}}function LO(e,t,n,r){var i=uO,o=NO.transition;NO.transition=null;try{uO=4,zO(e,t,n,r)}finally{uO=i,NO.transition=o}}function zO(e,t,n,r){if(AO){var i=jO(e,t,n,r);if(null===i)NN(e,t,r,FO,n),MO(e,r);else if(function(e,t,n,r,i){switch(t){case"focusin":return bO=_O(bO,e,t,n,r,i),!0;case"dragenter":return xO=_O(xO,e,t,n,r,i),!0;case"mouseover":return wO=_O(wO,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return kO.set(o,_O(kO.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,SO.set(o,_O(SO.get(o)||null,e,t,n,r,i)),!0}return!1}(i,e,t,n,r))r.stopPropagation();else if(MO(e,r),4&t&&-1<EO.indexOf(e)){for(;null!==i;){var o=cA(i);if(null!==o&&fO(o),null===(o=jO(e,t,n,r))&&NN(e,t,r,FO,n),o===i)break;i=o}null!==i&&r.stopPropagation()}else NN(e,t,r,null,n)}}var FO=null;function jO(e,t,n,r){if(FO=null,null!==(e=lA(e=fT(r))))if(null===(t=PT(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=NT(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return FO=e,null}function $O(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(VT()){case BT:return 1;case WT:return 4;case UT:case YT:return 16;case KT:return 536870912;default:return 16}default:return 16}}var HO=null,VO=null,BO=null;function WO(){if(BO)return BO;var e,t,n=VO,r=n.length,i="value"in HO?HO.value:HO.textContent,o=i.length;for(e=0;e<r&&n[e]===i[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===i[o-t];t++);return BO=i.slice(e,1<t?1-t:void 0)}function UO(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function YO(){return!0}function KO(){return!1}function GO(e){function t(t,n,r,i,o){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(i):i[a]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?YO:KO,this.isPropagationStopped=KO,this}return DR(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=YO)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=YO)},persist:function(){},isPersistent:YO}),t}var XO,JO,ZO,QO={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},eP=GO(QO),tP=DR({},QO,{view:0,detail:0}),nP=GO(tP),rP=DR({},tP,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:mP,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ZO&&(ZO&&"mousemove"===e.type?(XO=e.screenX-ZO.screenX,JO=e.screenY-ZO.screenY):JO=XO=0,ZO=e),XO)},movementY:function(e){return"movementY"in e?e.movementY:JO}}),iP=GO(rP),oP=GO(DR({},rP,{dataTransfer:0})),aP=GO(DR({},tP,{relatedTarget:0})),sP=GO(DR({},QO,{animationName:0,elapsedTime:0,pseudoElement:0})),lP=DR({},QO,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),cP=GO(lP),uP=GO(DR({},QO,{data:0})),dP={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},fP={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},hP={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function pP(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=hP[e])&&!!t[e]}function mP(){return pP}var gP=DR({},tP,{key:function(e){if(e.key){var t=dP[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=UO(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?fP[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:mP,charCode:function(e){return"keypress"===e.type?UO(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?UO(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),yP=GO(gP),vP=GO(DR({},rP,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),bP=GO(DR({},tP,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:mP})),xP=GO(DR({},QO,{propertyName:0,elapsedTime:0,pseudoElement:0})),wP=DR({},rP,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),kP=GO(wP),SP=[9,13,27,32],CP=nR&&"CompositionEvent"in window,EP=null;nR&&"documentMode"in document&&(EP=document.documentMode);var MP=nR&&"TextEvent"in window&&!EP,_P=nR&&(!CP||EP&&8<EP&&11>=EP),qP=String.fromCharCode(32),DP=!1;function RP(e,t){switch(e){case"keyup":return-1!==SP.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function TP(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var OP=!1;var PP={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function NP(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!PP[e.type]:"textarea"===t}function AP(e,t,n,r){yT(r),0<(t=IN(t,"onChange")).length&&(n=new eP("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var IP=null,LP=null;function zP(e){qN(e,0)}function FP(e){if(FR(uA(e)))return e}function jP(e,t){if("change"===e)return t}var $P=!1;if(nR){var HP;if(nR){var VP="oninput"in document;if(!VP){var BP=document.createElement("div");BP.setAttribute("oninput","return;"),VP="function"==typeof BP.oninput}HP=VP}else HP=!1;$P=HP&&(!document.documentMode||9<document.documentMode)}function WP(){IP&&(IP.detachEvent("onpropertychange",UP),LP=IP=null)}function UP(e){if("value"===e.propertyName&&FP(LP)){var t=[];AP(t,LP,e,fT(e)),kT(zP,t)}}function YP(e,t,n){"focusin"===e?(WP(),LP=n,(IP=t).attachEvent("onpropertychange",UP)):"focusout"===e&&WP()}function KP(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return FP(LP)}function GP(e,t){if("click"===e)return FP(t)}function XP(e,t){if("input"===e||"change"===e)return FP(t)}var JP="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function ZP(e,t){if(JP(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!rR.call(t,i)||!JP(e[i],t[i]))return!1}return!0}function QP(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function eN(e,t){var n,r=QP(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=QP(r)}}function tN(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?tN(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function nN(){for(var e=window,t=jR();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=jR((e=t.contentWindow).document)}return t}function rN(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function iN(e){var t=nN(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&tN(n.ownerDocument.documentElement,n)){if(null!==r&&rN(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=void 0===r.end?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=eN(n,o);var a=eN(n,r);i&&a&&(1!==e.rangeCount||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var oN=nR&&"documentMode"in document&&11>=document.documentMode,aN=null,sN=null,lN=null,cN=!1;function uN(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;cN||null==aN||aN!==jR(r)||("selectionStart"in(r=aN)&&rN(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},lN&&ZP(lN,r)||(lN=r,0<(r=IN(sN,"onSelect")).length&&(t=new eP("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=aN)))}function dN(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var fN={animationend:dN("Animation","AnimationEnd"),animationiteration:dN("Animation","AnimationIteration"),animationstart:dN("Animation","AnimationStart"),transitionend:dN("Transition","TransitionEnd")},hN={},pN={};function mN(e){if(hN[e])return hN[e];if(!fN[e])return e;var t,n=fN[e];for(t in n)if(n.hasOwnProperty(t)&&t in pN)return hN[e]=n[t];return e}nR&&(pN=document.createElement("div").style,"AnimationEvent"in window||(delete fN.animationend.animation,delete fN.animationiteration.animation,delete fN.animationstart.animation),"TransitionEvent"in window||delete fN.transitionend.transition);var gN=mN("animationend"),yN=mN("animationiteration"),vN=mN("animationstart"),bN=mN("transitionend"),xN=new Map,wN="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function kN(e,t){xN.set(e,t),eR(t,[e])}for(var SN=0;SN<wN.length;SN++){var CN=wN[SN];kN(CN.toLowerCase(),"on"+(CN[0].toUpperCase()+CN.slice(1)))}kN(gN,"onAnimationEnd"),kN(yN,"onAnimationIteration"),kN(vN,"onAnimationStart"),kN("dblclick","onDoubleClick"),kN("focusin","onFocus"),kN("focusout","onBlur"),kN(bN,"onTransitionEnd"),tR("onMouseEnter",["mouseout","mouseover"]),tR("onMouseLeave",["mouseout","mouseover"]),tR("onPointerEnter",["pointerout","pointerover"]),tR("onPointerLeave",["pointerout","pointerover"]),eR("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),eR("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),eR("onBeforeInput",["compositionend","keypress","textInput","paste"]),eR("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),eR("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),eR("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var EN="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),MN=new Set("cancel close invalid load scroll toggle".split(" ").concat(EN));function _N(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,i,o,a,s,l){if(OT.apply(this,arguments),_T){if(!_T)throw Error(JD(198));var c=qT;_T=!1,qT=null,DT||(DT=!0,RT=c)}}(r,t,void 0,e),e.currentTarget=null}function qN(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,c=s.currentTarget;if(s=s.listener,l!==o&&i.isPropagationStopped())break e;_N(i,s,c),o=l}else for(a=0;a<r.length;a++){if(l=(s=r[a]).instance,c=s.currentTarget,s=s.listener,l!==o&&i.isPropagationStopped())break e;_N(i,s,c),o=l}}}if(DT)throw e=RT,DT=!1,RT=null,e}function DN(e,t){var n=t[oA];void 0===n&&(n=t[oA]=new Set);var r=e+"__bubble";n.has(r)||(PN(t,e,2,!1),n.add(r))}function RN(e,t,n){var r=0;t&&(r|=4),PN(n,e,r,t)}var TN="_reactListening"+Math.random().toString(36).slice(2);function ON(e){if(!e[TN]){e[TN]=!0,ZD.forEach((function(t){"selectionchange"!==t&&(MN.has(t)||RN(t,!1,e),RN(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[TN]||(t[TN]=!0,RN("selectionchange",!1,t))}}function PN(e,t,n,r){switch($O(t)){case 1:var i=IO;break;case 4:i=LO;break;default:i=zO}n=i.bind(null,t,n,e),i=void 0,!CT||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i=!0),r?void 0!==i?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):void 0!==i?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function NN(e,t,n,r,i){var o=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var s=r.stateNode.containerInfo;if(s===i||8===s.nodeType&&s.parentNode===i)break;if(4===a)for(a=r.return;null!==a;){var l=a.tag;if((3===l||4===l)&&((l=a.stateNode.containerInfo)===i||8===l.nodeType&&l.parentNode===i))return;a=a.return}for(;null!==s;){if(null===(a=lA(s)))return;if(5===(l=a.tag)||6===l){r=o=a;continue e}s=s.parentNode}}r=r.return}kT((function(){var r=o,i=fT(n),a=[];e:{var s=xN.get(e);if(void 0!==s){var l=eP,c=e;switch(e){case"keypress":if(0===UO(n))break e;case"keydown":case"keyup":l=yP;break;case"focusin":c="focus",l=aP;break;case"focusout":c="blur",l=aP;break;case"beforeblur":case"afterblur":l=aP;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=iP;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=oP;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=bP;break;case gN:case yN:case vN:l=sP;break;case bN:l=xP;break;case"scroll":l=nP;break;case"wheel":l=kP;break;case"copy":case"cut":case"paste":l=cP;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=vP}var u=!!(4&t),d=!u&&"scroll"===e,f=u?null!==s?s+"Capture":null:s;u=[];for(var h,p=r;null!==p;){var m=(h=p).stateNode;if(5===h.tag&&null!==m&&(h=m,null!==f&&(null!=(m=ST(p,f))&&u.push(AN(p,m,h)))),d)break;p=p.return}0<u.length&&(s=new l(s,c,null,n,i),a.push({event:s,listeners:u}))}}if(!(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===dT||!(c=n.relatedTarget||n.fromElement)||!lA(c)&&!c[iA])&&(l||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(c=(c=n.relatedTarget||n.toElement)?lA(c):null)&&(c!==(d=PT(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(l=null,c=r),l!==c)){if(u=iP,m="onMouseLeave",f="onMouseEnter",p="mouse","pointerout"!==e&&"pointerover"!==e||(u=vP,m="onPointerLeave",f="onPointerEnter",p="pointer"),d=null==l?s:uA(l),h=null==c?s:uA(c),(s=new u(m,p+"leave",l,n,i)).target=d,s.relatedTarget=h,m=null,lA(i)===r&&((u=new u(f,p+"enter",c,n,i)).target=h,u.relatedTarget=d,m=u),d=m,l&&c)e:{for(f=c,p=0,h=u=l;h;h=LN(h))p++;for(h=0,m=f;m;m=LN(m))h++;for(;0<p-h;)u=LN(u),p--;for(;0<h-p;)f=LN(f),h--;for(;p--;){if(u===f||null!==f&&u===f.alternate)break e;u=LN(u),f=LN(f)}u=null}else u=null;null!==l&&zN(a,s,l,u,!1),null!==c&&null!==d&&zN(a,d,c,u,!0)}if("select"===(l=(s=r?uA(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var g=jP;else if(NP(s))if($P)g=XP;else{g=KP;var y=YP}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(g=GP);switch(g&&(g=g(e,r))?AP(a,g,n,i):(y&&y(e,s,r),"focusout"===e&&(y=s._wrapperState)&&y.controlled&&"number"===s.type&&UR(s,"number",s.value)),y=r?uA(r):window,e){case"focusin":(NP(y)||"true"===y.contentEditable)&&(aN=y,sN=r,lN=null);break;case"focusout":lN=sN=aN=null;break;case"mousedown":cN=!0;break;case"contextmenu":case"mouseup":case"dragend":cN=!1,uN(a,n,i);break;case"selectionchange":if(oN)break;case"keydown":case"keyup":uN(a,n,i)}var v;if(CP)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else OP?RP(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(_P&&"ko"!==n.locale&&(OP||"onCompositionStart"!==b?"onCompositionEnd"===b&&OP&&(v=WO()):(VO="value"in(HO=i)?HO.value:HO.textContent,OP=!0)),0<(y=IN(r,b)).length&&(b=new uP(b,e,null,n,i),a.push({event:b,listeners:y}),v?b.data=v:null!==(v=TP(n))&&(b.data=v))),(v=MP?function(e,t){switch(e){case"compositionend":return TP(t);case"keypress":return 32!==t.which?null:(DP=!0,qP);case"textInput":return(e=t.data)===qP&&DP?null:e;default:return null}}(e,n):function(e,t){if(OP)return"compositionend"===e||!CP&&RP(e,t)?(e=WO(),BO=VO=HO=null,OP=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return _P&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=IN(r,"onBeforeInput")).length&&(i=new uP("onBeforeInput","beforeinput",null,n,i),a.push({event:i,listeners:r}),i.data=v))}qN(a,t)}))}function AN(e,t,n){return{instance:e,listener:t,currentTarget:n}}function IN(e,t){for(var n=t+"Capture",r=[];null!==e;){var i=e,o=i.stateNode;5===i.tag&&null!==o&&(i=o,null!=(o=ST(e,n))&&r.unshift(AN(e,o,i)),null!=(o=ST(e,t))&&r.push(AN(e,o,i))),e=e.return}return r}function LN(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function zN(e,t,n,r,i){for(var o=t._reactName,a=[];null!==n&&n!==r;){var s=n,l=s.alternate,c=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==c&&(s=c,i?null!=(l=ST(n,o))&&a.unshift(AN(n,l,s)):i||null!=(l=ST(n,o))&&a.push(AN(n,l,s))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var FN=/\r\n?/g,jN=/\u0000|\uFFFD/g;function $N(e){return("string"==typeof e?e:""+e).replace(FN,"\n").replace(jN,"")}function HN(e,t,n){if(t=$N(t),$N(e)!==t&&n)throw Error(JD(425))}function VN(){}var BN=null,WN=null;function UN(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var YN="function"==typeof setTimeout?setTimeout:void 0,KN="function"==typeof clearTimeout?clearTimeout:void 0,GN="function"==typeof Promise?Promise:void 0,XN="function"==typeof queueMicrotask?queueMicrotask:void 0!==GN?function(e){return GN.resolve(null).then(e).catch(JN)}:YN;function JN(e){setTimeout((function(){throw e}))}function ZN(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&8===i.nodeType)if("/$"===(n=i.data)){if(0===r)return e.removeChild(i),void PO(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=i}while(n);PO(t)}function QN(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function eA(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var tA=Math.random().toString(36).slice(2),nA="__reactFiber$"+tA,rA="__reactProps$"+tA,iA="__reactContainer$"+tA,oA="__reactEvents$"+tA,aA="__reactListeners$"+tA,sA="__reactHandles$"+tA;function lA(e){var t=e[nA];if(t)return t;for(var n=e.parentNode;n;){if(t=n[iA]||n[nA]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=eA(e);null!==e;){if(n=e[nA])return n;e=eA(e)}return t}n=(e=n).parentNode}return null}function cA(e){return!(e=e[nA]||e[iA])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function uA(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(JD(33))}function dA(e){return e[rA]||null}var fA=[],hA=-1;function pA(e){return{current:e}}function mA(e){0>hA||(e.current=fA[hA],fA[hA]=null,hA--)}function gA(e,t){hA++,fA[hA]=e.current,e.current=t}var yA={},vA=pA(yA),bA=pA(!1),xA=yA;function wA(e,t){var n=e.type.contextTypes;if(!n)return yA;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function kA(e){return null!=(e=e.childContextTypes)}function SA(){mA(bA),mA(vA)}function CA(e,t,n){if(vA.current!==yA)throw Error(JD(168));gA(vA,t),gA(bA,n)}function EA(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in t))throw Error(JD(108,AR(e)||"Unknown",i));return DR({},n,r)}function MA(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||yA,xA=vA.current,gA(vA,e),gA(bA,bA.current),!0}function _A(e,t,n){var r=e.stateNode;if(!r)throw Error(JD(169));n?(e=EA(e,t,xA),r.__reactInternalMemoizedMergedChildContext=e,mA(bA),mA(vA),gA(vA,e)):mA(bA),gA(bA,n)}var qA=null,DA=!1,RA=!1;function TA(e){null===qA?qA=[e]:qA.push(e)}function OA(){if(!RA&&null!==qA){RA=!0;var e=0,t=uO;try{var n=qA;for(uO=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}qA=null,DA=!1}catch(t){throw null!==qA&&(qA=qA.slice(e+1)),zT(BT,OA),t}finally{uO=t,RA=!1}}return null}var PA=[],NA=0,AA=null,IA=0,LA=[],zA=0,FA=null,jA=1,$A="";function HA(e,t){PA[NA++]=IA,PA[NA++]=AA,AA=e,IA=t}function VA(e,t,n){LA[zA++]=jA,LA[zA++]=$A,LA[zA++]=FA,FA=e;var r=jA;e=$A;var i=32-JT(r)-1;r&=~(1<<i),n+=1;var o=32-JT(t)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,jA=1<<32-JT(t)+i|n<<i|r,$A=o+e}else jA=1<<o|n<<i|r,$A=e}function BA(e){null!==e.return&&(HA(e,1),VA(e,1,0))}function WA(e){for(;e===AA;)AA=PA[--NA],PA[NA]=null,IA=PA[--NA],PA[NA]=null;for(;e===FA;)FA=LA[--zA],LA[zA]=null,$A=LA[--zA],LA[zA]=null,jA=LA[--zA],LA[zA]=null}var UA=null,YA=null,KA=!1,GA=null;function XA(e,t){var n=xj(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function JA(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,UA=e,YA=QN(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,UA=e,YA=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==FA?{id:jA,overflow:$A}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=xj(18,null,null,0)).stateNode=t,n.return=e,e.child=n,UA=e,YA=null,!0);default:return!1}}function ZA(e){return!(!(1&e.mode)||128&e.flags)}function QA(e){if(KA){var t=YA;if(t){var n=t;if(!JA(e,t)){if(ZA(e))throw Error(JD(418));t=QN(n.nextSibling);var r=UA;t&&JA(e,t)?XA(r,n):(e.flags=-4097&e.flags|2,KA=!1,UA=e)}}else{if(ZA(e))throw Error(JD(418));e.flags=-4097&e.flags|2,KA=!1,UA=e}}}function eI(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;UA=e}function tI(e){if(e!==UA)return!1;if(!KA)return eI(e),KA=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!UN(e.type,e.memoizedProps)),t&&(t=YA)){if(ZA(e))throw nI(),Error(JD(418));for(;t;)XA(e,t),t=QN(t.nextSibling)}if(eI(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(JD(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){YA=QN(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}YA=null}}else YA=UA?QN(e.stateNode.nextSibling):null;return!0}function nI(){for(var e=YA;e;)e=QN(e.nextSibling)}function rI(){YA=UA=null,KA=!1}function iI(e){null===GA?GA=[e]:GA.push(e)}var oI=fR.ReactCurrentBatchConfig;function aI(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(JD(309));var r=n.stateNode}if(!r)throw Error(JD(147,e));var i=r,o=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===o?t.ref:(t=function(e){var t=i.refs;null===e?delete t[o]:t[o]=e},t._stringRef=o,t)}if("string"!=typeof e)throw Error(JD(284));if(!n._owner)throw Error(JD(290,e))}return e}function sI(e,t){throw e=Object.prototype.toString.call(t),Error(JD(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function lI(e){return(0,e._init)(e._payload)}function cI(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=kj(e,t)).index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function a(t){return e&&null===t.alternate&&(t.flags|=2),t}function s(e,t,n,r){return null===t||6!==t.tag?((t=Mj(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function l(e,t,n,r){var o=n.type;return o===mR?u(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===o||"object"==typeof o&&null!==o&&o.$$typeof===CR&&lI(o)===t.type)?((r=i(t,n.props)).ref=aI(e,t,n),r.return=e,r):((r=Sj(n.type,n.key,n.props,null,e.mode,r)).ref=aI(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=_j(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function u(e,t,n,r,o){return null===t||7!==t.tag?((t=Cj(n,e.mode,r,o)).return=e,t):((t=i(t,n)).return=e,t)}function d(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Mj(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case hR:return(n=Sj(t.type,t.key,t.props,null,e.mode,n)).ref=aI(e,null,t),n.return=e,n;case pR:return(t=_j(t,e.mode,n)).return=e,t;case CR:return d(e,(0,t._init)(t._payload),n)}if(YR(t)||_R(t))return(t=Cj(t,e.mode,n,null)).return=e,t;sI(e,t)}return null}function f(e,t,n,r){var i=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==i?null:s(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case hR:return n.key===i?l(e,t,n,r):null;case pR:return n.key===i?c(e,t,n,r):null;case CR:return f(e,t,(i=n._init)(n._payload),r)}if(YR(n)||_R(n))return null!==i?null:u(e,t,n,r,null);sI(e,n)}return null}function h(e,t,n,r,i){if("string"==typeof r&&""!==r||"number"==typeof r)return s(t,e=e.get(n)||null,""+r,i);if("object"==typeof r&&null!==r){switch(r.$$typeof){case hR:return l(t,e=e.get(null===r.key?n:r.key)||null,r,i);case pR:return c(t,e=e.get(null===r.key?n:r.key)||null,r,i);case CR:return h(e,t,n,(0,r._init)(r._payload),i)}if(YR(r)||_R(r))return u(t,e=e.get(n)||null,r,i,null);sI(t,r)}return null}function p(i,a,s,l){for(var c=null,u=null,p=a,m=a=0,g=null;null!==p&&m<s.length;m++){p.index>m?(g=p,p=null):g=p.sibling;var y=f(i,p,s[m],l);if(null===y){null===p&&(p=g);break}e&&p&&null===y.alternate&&t(i,p),a=o(y,a,m),null===u?c=y:u.sibling=y,u=y,p=g}if(m===s.length)return n(i,p),KA&&HA(i,m),c;if(null===p){for(;m<s.length;m++)null!==(p=d(i,s[m],l))&&(a=o(p,a,m),null===u?c=p:u.sibling=p,u=p);return KA&&HA(i,m),c}for(p=r(i,p);m<s.length;m++)null!==(g=h(p,i,m,s[m],l))&&(e&&null!==g.alternate&&p.delete(null===g.key?m:g.key),a=o(g,a,m),null===u?c=g:u.sibling=g,u=g);return e&&p.forEach((function(e){return t(i,e)})),KA&&HA(i,m),c}function m(i,a,s,l){var c=_R(s);if("function"!=typeof c)throw Error(JD(150));if(null==(s=c.call(s)))throw Error(JD(151));for(var u=c=null,p=a,m=a=0,g=null,y=s.next();null!==p&&!y.done;m++,y=s.next()){p.index>m?(g=p,p=null):g=p.sibling;var v=f(i,p,y.value,l);if(null===v){null===p&&(p=g);break}e&&p&&null===v.alternate&&t(i,p),a=o(v,a,m),null===u?c=v:u.sibling=v,u=v,p=g}if(y.done)return n(i,p),KA&&HA(i,m),c;if(null===p){for(;!y.done;m++,y=s.next())null!==(y=d(i,y.value,l))&&(a=o(y,a,m),null===u?c=y:u.sibling=y,u=y);return KA&&HA(i,m),c}for(p=r(i,p);!y.done;m++,y=s.next())null!==(y=h(p,i,m,y.value,l))&&(e&&null!==y.alternate&&p.delete(null===y.key?m:y.key),a=o(y,a,m),null===u?c=y:u.sibling=y,u=y);return e&&p.forEach((function(e){return t(i,e)})),KA&&HA(i,m),c}return function e(r,o,s,l){if("object"==typeof s&&null!==s&&s.type===mR&&null===s.key&&(s=s.props.children),"object"==typeof s&&null!==s){switch(s.$$typeof){case hR:e:{for(var c=s.key,u=o;null!==u;){if(u.key===c){if((c=s.type)===mR){if(7===u.tag){n(r,u.sibling),(o=i(u,s.props.children)).return=r,r=o;break e}}else if(u.elementType===c||"object"==typeof c&&null!==c&&c.$$typeof===CR&&lI(c)===u.type){n(r,u.sibling),(o=i(u,s.props)).ref=aI(r,u,s),o.return=r,r=o;break e}n(r,u);break}t(r,u),u=u.sibling}s.type===mR?((o=Cj(s.props.children,r.mode,l,s.key)).return=r,r=o):((l=Sj(s.type,s.key,s.props,null,r.mode,l)).ref=aI(r,o,s),l.return=r,r=l)}return a(r);case pR:e:{for(u=s.key;null!==o;){if(o.key===u){if(4===o.tag&&o.stateNode.containerInfo===s.containerInfo&&o.stateNode.implementation===s.implementation){n(r,o.sibling),(o=i(o,s.children||[])).return=r,r=o;break e}n(r,o);break}t(r,o),o=o.sibling}(o=_j(s,r.mode,l)).return=r,r=o}return a(r);case CR:return e(r,o,(u=s._init)(s._payload),l)}if(YR(s))return p(r,o,s,l);if(_R(s))return m(r,o,s,l);sI(r,s)}return"string"==typeof s&&""!==s||"number"==typeof s?(s=""+s,null!==o&&6===o.tag?(n(r,o.sibling),(o=i(o,s)).return=r,r=o):(n(r,o),(o=Mj(s,r.mode,l)).return=r,r=o),a(r)):n(r,o)}}var uI=cI(!0),dI=cI(!1),fI=pA(null),hI=null,pI=null,mI=null;function gI(){mI=pI=hI=null}function yI(e){var t=fI.current;mA(fI),e._currentValue=t}function vI(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function bI(e,t){hI=e,mI=pI=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(!!(e.lanes&t)&&(lz=!0),e.firstContext=null)}function xI(e){var t=e._currentValue;if(mI!==e)if(e={context:e,memoizedValue:t,next:null},null===pI){if(null===hI)throw Error(JD(308));pI=e,hI.dependencies={lanes:0,firstContext:e}}else pI=pI.next=e;return t}var wI=null;function kI(e){null===wI?wI=[e]:wI.push(e)}function SI(e,t,n,r){var i=t.interleaved;return null===i?(n.next=n,kI(t)):(n.next=i.next,i.next=n),t.interleaved=n,CI(e,r)}function CI(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var EI=!1;function MI(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function _I(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 qI(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function DI(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&yF){var i=r.pending;return null===i?t.next=t:(t.next=i.next,i.next=t),r.pending=t,CI(e,n)}return null===(i=r.interleaved)?(t.next=t,kI(r)):(t.next=i.next,i.next=t),r.interleaved=t,CI(e,n)}function RI(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,cO(e,n)}}function TI(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var i=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===o?i=o=a:o=o.next=a,n=n.next}while(null!==n);null===o?i=o=t:o=o.next=t}else i=o=t;return n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function OI(e,t,n,r){var i=e.updateQueue;EI=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,s=i.shared.pending;if(null!==s){i.shared.pending=null;var l=s,c=l.next;l.next=null,null===a?o=c:a.next=c,a=l;var u=e.alternate;null!==u&&((s=(u=u.updateQueue).lastBaseUpdate)!==a&&(null===s?u.firstBaseUpdate=c:s.next=c,u.lastBaseUpdate=l))}if(null!==o){var d=i.baseState;for(a=0,u=c=l=null,s=o;;){var f=s.lane,h=s.eventTime;if((r&f)===f){null!==u&&(u=u.next={eventTime:h,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var p=e,m=s;switch(f=t,h=n,m.tag){case 1:if("function"==typeof(p=m.payload)){d=p.call(h,d,f);break e}d=p;break e;case 3:p.flags=-65537&p.flags|128;case 0:if(null==(f="function"==typeof(p=m.payload)?p.call(h,d,f):p))break e;d=DR({},d,f);break e;case 2:EI=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(f=i.effects)?i.effects=[s]:f.push(s))}else h={eventTime:h,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===u?(c=u=h,l=d):u=u.next=h,a|=f;if(null===(s=s.next)){if(null===(s=i.shared.pending))break;s=(f=s).next,f.next=null,i.lastBaseUpdate=f,i.shared.pending=null}}if(null===u&&(l=d),i.baseState=l,i.firstBaseUpdate=c,i.lastBaseUpdate=u,null!==(t=i.shared.interleaved)){i=t;do{a|=i.lane,i=i.next}while(i!==t)}else null===o&&(i.shared.lanes=0);EF|=a,e.lanes=a,e.memoizedState=d}}function PI(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(null!==i){if(r.callback=null,r=n,"function"!=typeof i)throw Error(JD(191,i));i.call(r)}}}var NI={},AI=pA(NI),II=pA(NI),LI=pA(NI);function zI(e){if(e===NI)throw Error(JD(174));return e}function FI(e,t){switch(gA(LI,t),gA(II,e),gA(AI,NI),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:eT(null,"");break;default:t=eT(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}mA(AI),gA(AI,t)}function jI(){mA(AI),mA(II),mA(LI)}function $I(e){zI(LI.current);var t=zI(AI.current),n=eT(t,e.type);t!==n&&(gA(II,e),gA(AI,n))}function HI(e){II.current===e&&(mA(AI),mA(II))}var VI=pA(0);function BI(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(128&t.flags)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var WI=[];function UI(){for(var e=0;e<WI.length;e++)WI[e]._workInProgressVersionPrimary=null;WI.length=0}var YI=fR.ReactCurrentDispatcher,KI=fR.ReactCurrentBatchConfig,GI=0,XI=null,JI=null,ZI=null,QI=!1,eL=!1,tL=0,nL=0;function rL(){throw Error(JD(321))}function iL(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!JP(e[n],t[n]))return!1;return!0}function oL(e,t,n,r,i,o){if(GI=o,XI=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,YI.current=null===e||null===e.memoizedState?HL:VL,e=n(r,i),eL){o=0;do{if(eL=!1,tL=0,25<=o)throw Error(JD(301));o+=1,ZI=JI=null,t.updateQueue=null,YI.current=BL,e=n(r,i)}while(eL)}if(YI.current=$L,t=null!==JI&&null!==JI.next,GI=0,ZI=JI=XI=null,QI=!1,t)throw Error(JD(300));return e}function aL(){var e=0!==tL;return tL=0,e}function sL(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ZI?XI.memoizedState=ZI=e:ZI=ZI.next=e,ZI}function lL(){if(null===JI){var e=XI.alternate;e=null!==e?e.memoizedState:null}else e=JI.next;var t=null===ZI?XI.memoizedState:ZI.next;if(null!==t)ZI=t,JI=e;else{if(null===e)throw Error(JD(310));e={memoizedState:(JI=e).memoizedState,baseState:JI.baseState,baseQueue:JI.baseQueue,queue:JI.queue,next:null},null===ZI?XI.memoizedState=ZI=e:ZI=ZI.next=e}return ZI}function cL(e,t){return"function"==typeof t?t(e):t}function uL(e){var t=lL(),n=t.queue;if(null===n)throw Error(JD(311));n.lastRenderedReducer=e;var r=JI,i=r.baseQueue,o=n.pending;if(null!==o){if(null!==i){var a=i.next;i.next=o.next,o.next=a}r.baseQueue=i=o,n.pending=null}if(null!==i){o=i.next,r=r.baseState;var s=a=null,l=null,c=o;do{var u=c.lane;if((GI&u)===u)null!==l&&(l=l.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var d={lane:u,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===l?(s=l=d,a=r):l=l.next=d,XI.lanes|=u,EF|=u}c=c.next}while(null!==c&&c!==o);null===l?a=r:l.next=s,JP(r,t.memoizedState)||(lz=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=l,n.lastRenderedState=r}if(null!==(e=n.interleaved)){i=e;do{o=i.lane,XI.lanes|=o,EF|=o,i=i.next}while(i!==e)}else null===i&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function dL(e){var t=lL(),n=t.queue;if(null===n)throw Error(JD(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(null!==i){n.pending=null;var a=i=i.next;do{o=e(o,a.action),a=a.next}while(a!==i);JP(o,t.memoizedState)||(lz=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function fL(){}function hL(e,t){var n=XI,r=lL(),i=t(),o=!JP(r.memoizedState,i);if(o&&(r.memoizedState=i,lz=!0),r=r.queue,EL(gL.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||null!==ZI&&1&ZI.memoizedState.tag){if(n.flags|=2048,xL(9,mL.bind(null,n,r,i,t),void 0,null),null===vF)throw Error(JD(349));30&GI||pL(n,t,i)}return i}function pL(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=XI.updateQueue)?(t={lastEffect:null,stores:null},XI.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function mL(e,t,n,r){t.value=n,t.getSnapshot=r,yL(t)&&vL(e)}function gL(e,t,n){return n((function(){yL(t)&&vL(e)}))}function yL(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!JP(e,n)}catch(e){return!0}}function vL(e){var t=CI(e,1);null!==t&&WF(t,e,1,-1)}function bL(e){var t=sL();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:cL,lastRenderedState:e},t.queue=e,e=e.dispatch=LL.bind(null,XI,e),[t.memoizedState,e]}function xL(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=XI.updateQueue)?(t={lastEffect:null,stores:null},XI.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function wL(){return lL().memoizedState}function kL(e,t,n,r){var i=sL();XI.flags|=e,i.memoizedState=xL(1|t,n,void 0,void 0===r?null:r)}function SL(e,t,n,r){var i=lL();r=void 0===r?null:r;var o=void 0;if(null!==JI){var a=JI.memoizedState;if(o=a.destroy,null!==r&&iL(r,a.deps))return void(i.memoizedState=xL(t,n,o,r))}XI.flags|=e,i.memoizedState=xL(1|t,n,o,r)}function CL(e,t){return kL(8390656,8,e,t)}function EL(e,t){return SL(2048,8,e,t)}function ML(e,t){return SL(4,2,e,t)}function _L(e,t){return SL(4,4,e,t)}function qL(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function DL(e,t,n){return n=null!=n?n.concat([e]):null,SL(4,4,qL.bind(null,t,e),n)}function RL(){}function TL(e,t){var n=lL();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&iL(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function OL(e,t){var n=lL();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&iL(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function PL(e,t,n){return 21&GI?(JP(n,t)||(n=aO(),XI.lanes|=n,EF|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,lz=!0),e.memoizedState=n)}function NL(e,t){var n=uO;uO=0!==n&&4>n?n:4,e(!0);var r=KI.transition;KI.transition={};try{e(!1),t()}finally{uO=n,KI.transition=r}}function AL(){return lL().memoizedState}function IL(e,t,n){var r=BF(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},zL(e))FL(t,n);else if(null!==(n=SI(e,t,n,r))){WF(n,e,r,VF()),jL(n,t,r)}}function LL(e,t,n){var r=BF(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(zL(e))FL(t,i);else{var o=e.alternate;if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=o(a,n);if(i.hasEagerState=!0,i.eagerState=s,JP(s,a)){var l=t.interleaved;return null===l?(i.next=i,kI(t)):(i.next=l.next,l.next=i),void(t.interleaved=i)}}catch(e){}null!==(n=SI(e,t,i,r))&&(WF(n,e,r,i=VF()),jL(n,t,r))}}function zL(e){var t=e.alternate;return e===XI||null!==t&&t===XI}function FL(e,t){eL=QI=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function jL(e,t,n){if(4194240&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,cO(e,n)}}var $L={readContext:xI,useCallback:rL,useContext:rL,useEffect:rL,useImperativeHandle:rL,useInsertionEffect:rL,useLayoutEffect:rL,useMemo:rL,useReducer:rL,useRef:rL,useState:rL,useDebugValue:rL,useDeferredValue:rL,useTransition:rL,useMutableSource:rL,useSyncExternalStore:rL,useId:rL,unstable_isNewReconciler:!1},HL={readContext:xI,useCallback:function(e,t){return sL().memoizedState=[e,void 0===t?null:t],e},useContext:xI,useEffect:CL,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,kL(4194308,4,qL.bind(null,t,e),n)},useLayoutEffect:function(e,t){return kL(4194308,4,e,t)},useInsertionEffect:function(e,t){return kL(4,2,e,t)},useMemo:function(e,t){var n=sL();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=sL();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=IL.bind(null,XI,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},sL().memoizedState=e},useState:bL,useDebugValue:RL,useDeferredValue:function(e){return sL().memoizedState=e},useTransition:function(){var e=bL(!1),t=e[0];return e=NL.bind(null,e[1]),sL().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=XI,i=sL();if(KA){if(void 0===n)throw Error(JD(407));n=n()}else{if(n=t(),null===vF)throw Error(JD(349));30&GI||pL(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,CL(gL.bind(null,r,o,e),[e]),r.flags|=2048,xL(9,mL.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=sL(),t=vF.identifierPrefix;if(KA){var n=$A;t=":"+t+"R"+(n=(jA&~(1<<32-JT(jA)-1)).toString(32)+n),0<(n=tL++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=nL++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},VL={readContext:xI,useCallback:TL,useContext:xI,useEffect:EL,useImperativeHandle:DL,useInsertionEffect:ML,useLayoutEffect:_L,useMemo:OL,useReducer:uL,useRef:wL,useState:function(){return uL(cL)},useDebugValue:RL,useDeferredValue:function(e){return PL(lL(),JI.memoizedState,e)},useTransition:function(){return[uL(cL)[0],lL().memoizedState]},useMutableSource:fL,useSyncExternalStore:hL,useId:AL,unstable_isNewReconciler:!1},BL={readContext:xI,useCallback:TL,useContext:xI,useEffect:EL,useImperativeHandle:DL,useInsertionEffect:ML,useLayoutEffect:_L,useMemo:OL,useReducer:dL,useRef:wL,useState:function(){return dL(cL)},useDebugValue:RL,useDeferredValue:function(e){var t=lL();return null===JI?t.memoizedState=e:PL(t,JI.memoizedState,e)},useTransition:function(){return[dL(cL)[0],lL().memoizedState]},useMutableSource:fL,useSyncExternalStore:hL,useId:AL,unstable_isNewReconciler:!1};function WL(e,t){if(e&&e.defaultProps){for(var n in t=DR({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function UL(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:DR({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var YL={isMounted:function(e){return!!(e=e._reactInternals)&&PT(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=VF(),i=BF(e),o=qI(r,i);o.payload=t,null!=n&&(o.callback=n),null!==(t=DI(e,o,i))&&(WF(t,e,i,r),RI(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=VF(),i=BF(e),o=qI(r,i);o.tag=1,o.payload=t,null!=n&&(o.callback=n),null!==(t=DI(e,o,i))&&(WF(t,e,i,r),RI(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=VF(),r=BF(e),i=qI(n,r);i.tag=2,null!=t&&(i.callback=t),null!==(t=DI(e,i,r))&&(WF(t,e,r,n),RI(t,e,r))}};function KL(e,t,n,r,i,o,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,a):!t.prototype||!t.prototype.isPureReactComponent||(!ZP(n,r)||!ZP(i,o))}function GL(e,t,n){var r=!1,i=yA,o=t.contextType;return"object"==typeof o&&null!==o?o=xI(o):(i=kA(t)?xA:vA.current,o=(r=null!=(r=t.contextTypes))?wA(e,i):yA),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=YL,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function XL(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&YL.enqueueReplaceState(t,t.state,null)}function JL(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},MI(e);var o=t.contextType;"object"==typeof o&&null!==o?i.context=xI(o):(o=kA(t)?xA:vA.current,i.context=wA(e,o)),i.state=e.memoizedState,"function"==typeof(o=t.getDerivedStateFromProps)&&(UL(e,t,o,n),i.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(t=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&YL.enqueueReplaceState(i,i.state,null),OI(e,n,i,r),i.state=e.memoizedState),"function"==typeof i.componentDidMount&&(e.flags|=4194308)}function ZL(e,t){try{var n="",r=t;do{n+=PR(r),r=r.return}while(r);var i=n}catch(e){i="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:i,digest:null}}function QL(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function ez(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var tz="function"==typeof WeakMap?WeakMap:Map;function nz(e,t,n){(n=qI(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){PF||(PF=!0,NF=r),ez(0,t)},n}function rz(e,t,n){(n=qI(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){ez(0,t)}}var o=e.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(n.callback=function(){ez(0,t),"function"!=typeof r&&(null===AF?AF=new Set([this]):AF.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function iz(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new tz;var i=new Set;r.set(t,i)}else void 0===(i=r.get(t))&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=pj.bind(null,e,t,n),t.then(e,e))}function oz(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function az(e,t,n,r,i){return 1&e.mode?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=qI(-1,1)).tag=2,DI(n,t,1))),n.lanes|=1),e)}var sz=fR.ReactCurrentOwner,lz=!1;function cz(e,t,n,r){t.child=null===e?dI(t,null,n,r):uI(t,e.child,n,r)}function uz(e,t,n,r,i){n=n.render;var o=t.ref;return bI(t,i),r=oL(e,t,n,r,o,i),n=aL(),null===e||lz?(KA&&n&&BA(t),t.flags|=1,cz(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Pz(e,t,i))}function dz(e,t,n,r,i){if(null===e){var o=n.type;return"function"!=typeof o||wj(o)||void 0!==o.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Sj(n.type,null,r,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,fz(e,t,o,r,i))}if(o=e.child,!(e.lanes&i)){var a=o.memoizedProps;if((n=null!==(n=n.compare)?n:ZP)(a,r)&&e.ref===t.ref)return Pz(e,t,i)}return t.flags|=1,(e=kj(o,r)).ref=t.ref,e.return=t,t.child=e}function fz(e,t,n,r,i){if(null!==e){var o=e.memoizedProps;if(ZP(o,r)&&e.ref===t.ref){if(lz=!1,t.pendingProps=r=o,!(e.lanes&i))return t.lanes=e.lanes,Pz(e,t,i);131072&e.flags&&(lz=!0)}}return mz(e,t,n,r,i)}function hz(e,t,n){var r=t.pendingProps,i=r.children,o=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(1&t.mode){if(!(1073741824&n))return e=null!==o?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,gA(kF,wF),wF|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==o?o.baseLanes:n,gA(kF,wF),wF|=r}else t.memoizedState={baseLanes:0,cachePool:null,transitions:null},gA(kF,wF),wF|=n;else null!==o?(r=o.baseLanes|n,t.memoizedState=null):r=n,gA(kF,wF),wF|=r;return cz(e,t,i,n),t.child}function pz(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function mz(e,t,n,r,i){var o=kA(n)?xA:vA.current;return o=wA(t,o),bI(t,i),n=oL(e,t,n,r,o,i),r=aL(),null===e||lz?(KA&&r&&BA(t),t.flags|=1,cz(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Pz(e,t,i))}function gz(e,t,n,r,i){if(kA(n)){var o=!0;MA(t)}else o=!1;if(bI(t,i),null===t.stateNode)Oz(e,t),GL(t,n,r),JL(t,n,r,i),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,c=n.contextType;"object"==typeof c&&null!==c?c=xI(c):c=wA(t,c=kA(n)?xA:vA.current);var u=n.getDerivedStateFromProps,d="function"==typeof u||"function"==typeof a.getSnapshotBeforeUpdate;d||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||l!==c)&&XL(t,a,r,c),EI=!1;var f=t.memoizedState;a.state=f,OI(t,r,a,i),l=t.memoizedState,s!==r||f!==l||bA.current||EI?("function"==typeof u&&(UL(t,n,u,r),l=t.memoizedState),(s=EI||KL(t,n,s,r,f,l,c))?(d||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4194308)):("function"==typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=c,r=s):("function"==typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,_I(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:WL(t.type,s),a.props=c,d=t.pendingProps,f=a.context,"object"==typeof(l=n.contextType)&&null!==l?l=xI(l):l=wA(t,l=kA(n)?xA:vA.current);var h=n.getDerivedStateFromProps;(u="function"==typeof h||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==d||f!==l)&&XL(t,a,r,l),EI=!1,f=t.memoizedState,a.state=f,OI(t,r,a,i);var p=t.memoizedState;s!==d||f!==p||bA.current||EI?("function"==typeof h&&(UL(t,n,h,r),p=t.memoizedState),(c=EI||KL(t,n,c,r,f,p,l)||!1)?(u||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,p,l),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,p,l)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=l,r=c):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return yz(e,t,n,r,o,i)}function yz(e,t,n,r,i,o){pz(e,t);var a=!!(128&t.flags);if(!r&&!a)return i&&_A(t,n,!1),Pz(e,t,o);r=t.stateNode,sz.current=t;var s=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=uI(t,e.child,null,o),t.child=uI(t,null,s,o)):cz(e,t,s,o),t.memoizedState=r.state,i&&_A(t,n,!0),t.child}function vz(e){var t=e.stateNode;t.pendingContext?CA(0,t.pendingContext,t.pendingContext!==t.context):t.context&&CA(0,t.context,!1),FI(e,t.containerInfo)}function bz(e,t,n,r,i){return rI(),iI(i),t.flags|=256,cz(e,t,n,r),t.child}var xz,wz,kz,Sz,Cz={dehydrated:null,treeContext:null,retryLane:0};function Ez(e){return{baseLanes:e,cachePool:null,transitions:null}}function Mz(e,t,n){var r,i=t.pendingProps,o=VI.current,a=!1,s=!!(128&t.flags);if((r=s)||(r=(null===e||null!==e.memoizedState)&&!!(2&o)),r?(a=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(o|=1),gA(VI,1&o),null===e)return QA(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(1&t.mode?"$!"===e.data?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(s=i.children,e=i.fallback,a?(i=t.mode,a=t.child,s={mode:"hidden",children:s},1&i||null===a?a=Ej(s,i,0,null):(a.childLanes=0,a.pendingProps=s),e=Cj(e,i,n,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=Ez(n),t.memoizedState=Cz,e):_z(t,s));if(null!==(o=e.memoizedState)&&null!==(r=o.dehydrated))return function(e,t,n,r,i,o,a){if(n)return 256&t.flags?(t.flags&=-257,qz(e,t,a,r=QL(Error(JD(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=Ej({mode:"visible",children:r.children},i,0,null),(o=Cj(o,i,a,null)).flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,1&t.mode&&uI(t,e.child,null,a),t.child.memoizedState=Ez(a),t.memoizedState=Cz,o);if(!(1&t.mode))return qz(e,t,a,null);if("$!"===i.data){if(r=i.nextSibling&&i.nextSibling.dataset)var s=r.dgst;return r=s,qz(e,t,a,r=QL(o=Error(JD(419)),r,void 0))}if(s=!!(a&e.childLanes),lz||s){if(null!==(r=vF)){switch(a&-a){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}0!==(i=i&(r.suspendedLanes|a)?0:i)&&i!==o.retryLane&&(o.retryLane=i,CI(e,i),WF(r,e,i,-1))}return ij(),qz(e,t,a,r=QL(Error(JD(421))))}return"$?"===i.data?(t.flags|=128,t.child=e.child,t=gj.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,YA=QN(i.nextSibling),UA=t,KA=!0,GA=null,null!==e&&(LA[zA++]=jA,LA[zA++]=$A,LA[zA++]=FA,jA=e.id,$A=e.overflow,FA=t),t=_z(t,r.children),t.flags|=4096,t)}(e,t,s,i,r,o,n);if(a){a=i.fallback,s=t.mode,r=(o=e.child).sibling;var l={mode:"hidden",children:i.children};return 1&s||t.child===o?(i=kj(o,l)).subtreeFlags=14680064&o.subtreeFlags:((i=t.child).childLanes=0,i.pendingProps=l,t.deletions=null),null!==r?a=kj(r,a):(a=Cj(a,s,n,null)).flags|=2,a.return=t,i.return=t,i.sibling=a,t.child=i,i=a,a=t.child,s=null===(s=e.child.memoizedState)?Ez(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},a.memoizedState=s,a.childLanes=e.childLanes&~n,t.memoizedState=Cz,i}return e=(a=e.child).sibling,i=kj(a,{mode:"visible",children:i.children}),!(1&t.mode)&&(i.lanes=n),i.return=t,i.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=i,t.memoizedState=null,i}function _z(e,t){return(t=Ej({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function qz(e,t,n,r){return null!==r&&iI(r),uI(t,e.child,null,n),(e=_z(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Dz(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),vI(e.return,t,n)}function Rz(e,t,n,r,i){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function Tz(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(cz(e,t,r.children,n),2&(r=VI.current))r=1&r|2,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Dz(e,n,t);else if(19===e.tag)Dz(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(gA(VI,r),1&t.mode)switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===BI(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Rz(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===BI(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Rz(t,!0,n,null,o);break;case"together":Rz(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function Oz(e,t){!(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Pz(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),EF|=t.lanes,!(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(JD(153));if(null!==t.child){for(n=kj(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=kj(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Nz(e,t){if(!KA)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Az(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=14680064&i.subtreeFlags,r|=14680064&i.flags,i.return=e,i=i.sibling;else for(i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Iz(e,t,n){var r=t.pendingProps;switch(WA(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Az(t),null;case 1:case 17:return kA(t.type)&&SA(),Az(t),null;case 3:return r=t.stateNode,jI(),mA(bA),mA(vA),UI(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(tI(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,null!==GA&&(GF(GA),GA=null))),wz(e,t),Az(t),null;case 5:HI(t);var i=zI(LI.current);if(n=t.type,null!==e&&null!=t.stateNode)kz(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(JD(166));return Az(t),null}if(e=zI(AI.current),tI(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[nA]=t,r[rA]=o,e=!!(1&t.mode),n){case"dialog":DN("cancel",r),DN("close",r);break;case"iframe":case"object":case"embed":DN("load",r);break;case"video":case"audio":for(i=0;i<EN.length;i++)DN(EN[i],r);break;case"source":DN("error",r);break;case"img":case"image":case"link":DN("error",r),DN("load",r);break;case"details":DN("toggle",r);break;case"input":HR(r,o),DN("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},DN("invalid",r);break;case"textarea":XR(r,o),DN("invalid",r)}for(var a in cT(n,o),i=null,o)if(o.hasOwnProperty(a)){var s=o[a];"children"===a?"string"==typeof s?r.textContent!==s&&(!0!==o.suppressHydrationWarning&&HN(r.textContent,s,e),i=["children",s]):"number"==typeof s&&r.textContent!==""+s&&(!0!==o.suppressHydrationWarning&&HN(r.textContent,s,e),i=["children",""+s]):QD.hasOwnProperty(a)&&null!=s&&"onScroll"===a&&DN("scroll",r)}switch(n){case"input":zR(r),WR(r,o,!0);break;case"textarea":zR(r),ZR(r);break;case"select":case"option":break;default:"function"==typeof o.onClick&&(r.onclick=VN)}r=i,t.updateQueue=r,null!==r&&(t.flags|=4)}else{a=9===i.nodeType?i:i.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=QR(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=a.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),"select"===n&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[nA]=t,e[rA]=r,xz(e,t,!1,!1),t.stateNode=e;e:{switch(a=uT(n,r),n){case"dialog":DN("cancel",e),DN("close",e),i=r;break;case"iframe":case"object":case"embed":DN("load",e),i=r;break;case"video":case"audio":for(i=0;i<EN.length;i++)DN(EN[i],e);i=r;break;case"source":DN("error",e),i=r;break;case"img":case"image":case"link":DN("error",e),DN("load",e),i=r;break;case"details":DN("toggle",e),i=r;break;case"input":HR(e,r),i=$R(e,r),DN("invalid",e);break;case"option":default:i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=DR({},r,{value:void 0}),DN("invalid",e);break;case"textarea":XR(e,r),i=GR(e,r),DN("invalid",e)}for(o in cT(n,i),s=i)if(s.hasOwnProperty(o)){var l=s[o];"style"===o?sT(e,l):"dangerouslySetInnerHTML"===o?null!=(l=l?l.__html:void 0)&&nT(e,l):"children"===o?"string"==typeof l?("textarea"!==n||""!==l)&&rT(e,l):"number"==typeof l&&rT(e,""+l):"suppressContentEditableWarning"!==o&&"suppressHydrationWarning"!==o&&"autoFocus"!==o&&(QD.hasOwnProperty(o)?null!=l&&"onScroll"===o&&DN("scroll",e):null!=l&&dR(e,o,l,a))}switch(n){case"input":zR(e),WR(e,r,!1);break;case"textarea":zR(e),ZR(e);break;case"option":null!=r.value&&e.setAttribute("value",""+IR(r.value));break;case"select":e.multiple=!!r.multiple,null!=(o=r.value)?KR(e,!!r.multiple,o,!1):null!=r.defaultValue&&KR(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof i.onClick&&(e.onclick=VN)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Az(t),null;case 6:if(e&&null!=t.stateNode)Sz(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(JD(166));if(n=zI(LI.current),zI(AI.current),tI(t)){if(r=t.stateNode,n=t.memoizedProps,r[nA]=t,(o=r.nodeValue!==n)&&null!==(e=UA))switch(e.tag){case 3:HN(r.nodeValue,n,!!(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&HN(r.nodeValue,n,!!(1&e.mode))}o&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[nA]=t,t.stateNode=r}return Az(t),null;case 13:if(mA(VI),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(KA&&null!==YA&&1&t.mode&&!(128&t.flags))nI(),rI(),t.flags|=98560,o=!1;else if(o=tI(t),null!==r&&null!==r.dehydrated){if(null===e){if(!o)throw Error(JD(318));if(!(o=null!==(o=t.memoizedState)?o.dehydrated:null))throw Error(JD(317));o[nA]=t}else rI(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Az(t),o=!1}else null!==GA&&(GF(GA),GA=null),o=!0;if(!o)return 65536&t.flags?t:null}return 128&t.flags?(t.lanes=n,t):((r=null!==r)!==(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,1&t.mode&&(null===e||1&VI.current?0===SF&&(SF=3):ij())),null!==t.updateQueue&&(t.flags|=4),Az(t),null);case 4:return jI(),wz(e,t),null===e&&ON(t.stateNode.containerInfo),Az(t),null;case 10:return yI(t.type._context),Az(t),null;case 19:if(mA(VI),null===(o=t.memoizedState))return Az(t),null;if(r=!!(128&t.flags),null===(a=o.rendering))if(r)Nz(o,!1);else{if(0!==SF||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(a=BI(e))){for(t.flags|=128,Nz(o,!1),null!==(r=a.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(o=n).flags&=14680066,null===(a=o.alternate)?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=a.childLanes,o.lanes=a.lanes,o.child=a.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=a.memoizedProps,o.memoizedState=a.memoizedState,o.updateQueue=a.updateQueue,o.type=a.type,e=a.dependencies,o.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return gA(VI,1&VI.current|2),t.child}e=e.sibling}null!==o.tail&&HT()>TF&&(t.flags|=128,r=!0,Nz(o,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=BI(a))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Nz(o,!0),null===o.tail&&"hidden"===o.tailMode&&!a.alternate&&!KA)return Az(t),null}else 2*HT()-o.renderingStartTime>TF&&1073741824!==n&&(t.flags|=128,r=!0,Nz(o,!1),t.lanes=4194304);o.isBackwards?(a.sibling=t.child,t.child=a):(null!==(n=o.last)?n.sibling=a:t.child=a,o.last=a)}return null!==o.tail?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=HT(),t.sibling=null,n=VI.current,gA(VI,r?1&n|2:1&n),t):(Az(t),null);case 22:case 23:return ej(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&1&t.mode?!!(1073741824&wF)&&(Az(t),6&t.subtreeFlags&&(t.flags|=8192)):Az(t),null;case 24:case 25:return null}throw Error(JD(156,t.tag))}function Lz(e,t){switch(WA(t),t.tag){case 1:return kA(t.type)&&SA(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return jI(),mA(bA),mA(vA),UI(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 5:return HI(t),null;case 13:if(mA(VI),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(JD(340));rI()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return mA(VI),null;case 4:return jI(),null;case 10:return yI(t.type._context),null;case 22:case 23:return ej(),null;default:return null}}xz=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},wz=function(){},kz=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,zI(AI.current);var o,a=null;switch(n){case"input":i=$R(e,i),r=$R(e,r),a=[];break;case"select":i=DR({},i,{value:void 0}),r=DR({},r,{value:void 0}),a=[];break;case"textarea":i=GR(e,i),r=GR(e,r),a=[];break;default:"function"!=typeof i.onClick&&"function"==typeof r.onClick&&(e.onclick=VN)}for(c in cT(n,r),n=null,i)if(!r.hasOwnProperty(c)&&i.hasOwnProperty(c)&&null!=i[c])if("style"===c){var s=i[c];for(o in s)s.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(QD.hasOwnProperty(c)?a||(a=[]):(a=a||[]).push(c,null));for(c in r){var l=r[c];if(s=null!=i?i[c]:void 0,r.hasOwnProperty(c)&&l!==s&&(null!=l||null!=s))if("style"===c)if(s){for(o in s)!s.hasOwnProperty(o)||l&&l.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in l)l.hasOwnProperty(o)&&s[o]!==l[o]&&(n||(n={}),n[o]=l[o])}else n||(a||(a=[]),a.push(c,n)),n=l;else"dangerouslySetInnerHTML"===c?(l=l?l.__html:void 0,s=s?s.__html:void 0,null!=l&&s!==l&&(a=a||[]).push(c,l)):"children"===c?"string"!=typeof l&&"number"!=typeof l||(a=a||[]).push(c,""+l):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(QD.hasOwnProperty(c)?(null!=l&&"onScroll"===c&&DN("scroll",e),a||s===l||(a=[])):(a=a||[]).push(c,l))}n&&(a=a||[]).push("style",n);var c=a;(t.updateQueue=c)&&(t.flags|=4)}},Sz=function(e,t,n,r){n!==r&&(t.flags|=4)};var zz=!1,Fz=!1,jz="function"==typeof WeakSet?WeakSet:Set,$z=null;function Hz(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){hj(e,t,n)}else n.current=null}function Vz(e,t,n){try{n()}catch(n){hj(e,t,n)}}var Bz=!1;function Wz(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,void 0!==o&&Vz(t,n,o)}i=i.next}while(i!==r)}}function Uz(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Yz(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function Kz(e){var t=e.alternate;null!==t&&(e.alternate=null,Kz(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[nA],delete t[rA],delete t[oA],delete t[aA],delete t[sA])),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 Gz(e){return 5===e.tag||3===e.tag||4===e.tag}function Xz(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||Gz(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function Jz(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=VN));else if(4!==r&&null!==(e=e.child))for(Jz(e,t,n),e=e.sibling;null!==e;)Jz(e,t,n),e=e.sibling}function Zz(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(Zz(e,t,n),e=e.sibling;null!==e;)Zz(e,t,n),e=e.sibling}var Qz=null,eF=!1;function tF(e,t,n){for(n=n.child;null!==n;)nF(e,t,n),n=n.sibling}function nF(e,t,n){if(XT&&"function"==typeof XT.onCommitFiberUnmount)try{XT.onCommitFiberUnmount(GT,n)}catch(e){}switch(n.tag){case 5:Fz||Hz(n,t);case 6:var r=Qz,i=eF;Qz=null,tF(e,t,n),eF=i,null!==(Qz=r)&&(eF?(e=Qz,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):Qz.removeChild(n.stateNode));break;case 18:null!==Qz&&(eF?(e=Qz,n=n.stateNode,8===e.nodeType?ZN(e.parentNode,n):1===e.nodeType&&ZN(e,n),PO(e)):ZN(Qz,n.stateNode));break;case 4:r=Qz,i=eF,Qz=n.stateNode.containerInfo,eF=!0,tF(e,t,n),Qz=r,eF=i;break;case 0:case 11:case 14:case 15:if(!Fz&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){i=r=r.next;do{var o=i,a=o.destroy;o=o.tag,void 0!==a&&(2&o||4&o)&&Vz(n,t,a),i=i.next}while(i!==r)}tF(e,t,n);break;case 1:if(!Fz&&(Hz(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){hj(n,t,e)}tF(e,t,n);break;case 21:tF(e,t,n);break;case 22:1&n.mode?(Fz=(r=Fz)||null!==n.memoizedState,tF(e,t,n),Fz=r):tF(e,t,n);break;default:tF(e,t,n)}}function rF(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new jz),t.forEach((function(t){var r=yj.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function iF(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var i=n[r];try{var o=e,a=t,s=a;e:for(;null!==s;){switch(s.tag){case 5:Qz=s.stateNode,eF=!1;break e;case 3:case 4:Qz=s.stateNode.containerInfo,eF=!0;break e}s=s.return}if(null===Qz)throw Error(JD(160));nF(o,a,i),Qz=null,eF=!1;var l=i.alternate;null!==l&&(l.return=null),i.return=null}catch(e){hj(i,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)oF(t,e),t=t.sibling}function oF(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(iF(t,e),aF(e),4&r){try{Wz(3,e,e.return),Uz(3,e)}catch(t){hj(e,e.return,t)}try{Wz(5,e,e.return)}catch(t){hj(e,e.return,t)}}break;case 1:iF(t,e),aF(e),512&r&&null!==n&&Hz(n,n.return);break;case 5:if(iF(t,e),aF(e),512&r&&null!==n&&Hz(n,n.return),32&e.flags){var i=e.stateNode;try{rT(i,"")}catch(t){hj(e,e.return,t)}}if(4&r&&null!=(i=e.stateNode)){var o=e.memoizedProps,a=null!==n?n.memoizedProps:o,s=e.type,l=e.updateQueue;if(e.updateQueue=null,null!==l)try{"input"===s&&"radio"===o.type&&null!=o.name&&VR(i,o),uT(s,a);var c=uT(s,o);for(a=0;a<l.length;a+=2){var u=l[a],d=l[a+1];"style"===u?sT(i,d):"dangerouslySetInnerHTML"===u?nT(i,d):"children"===u?rT(i,d):dR(i,u,d,c)}switch(s){case"input":BR(i,o);break;case"textarea":JR(i,o);break;case"select":var f=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var h=o.value;null!=h?KR(i,!!o.multiple,h,!1):f!==!!o.multiple&&(null!=o.defaultValue?KR(i,!!o.multiple,o.defaultValue,!0):KR(i,!!o.multiple,o.multiple?[]:"",!1))}i[rA]=o}catch(t){hj(e,e.return,t)}}break;case 6:if(iF(t,e),aF(e),4&r){if(null===e.stateNode)throw Error(JD(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(t){hj(e,e.return,t)}}break;case 3:if(iF(t,e),aF(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{PO(t.containerInfo)}catch(t){hj(e,e.return,t)}break;case 4:default:iF(t,e),aF(e);break;case 13:iF(t,e),aF(e),8192&(i=e.child).flags&&(o=null!==i.memoizedState,i.stateNode.isHidden=o,!o||null!==i.alternate&&null!==i.alternate.memoizedState||(RF=HT())),4&r&&rF(e);break;case 22:if(u=null!==n&&null!==n.memoizedState,1&e.mode?(Fz=(c=Fz)||u,iF(t,e),Fz=c):iF(t,e),aF(e),8192&r){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!u&&1&e.mode)for($z=e,u=e.child;null!==u;){for(d=$z=u;null!==$z;){switch(h=(f=$z).child,f.tag){case 0:case 11:case 14:case 15:Wz(4,f,f.return);break;case 1:Hz(f,f.return);var p=f.stateNode;if("function"==typeof p.componentWillUnmount){r=f,n=f.return;try{t=r,p.props=t.memoizedProps,p.state=t.memoizedState,p.componentWillUnmount()}catch(e){hj(r,n,e)}}break;case 5:Hz(f,f.return);break;case 22:if(null!==f.memoizedState){uF(d);continue}}null!==h?(h.return=f,$z=h):uF(d)}u=u.sibling}e:for(u=null,d=e;;){if(5===d.tag){if(null===u){u=d;try{i=d.stateNode,c?"function"==typeof(o=i.style).setProperty?o.setProperty("display","none","important"):o.display="none":(s=d.stateNode,a=null!=(l=d.memoizedProps.style)&&l.hasOwnProperty("display")?l.display:null,s.style.display=aT("display",a))}catch(t){hj(e,e.return,t)}}}else if(6===d.tag){if(null===u)try{d.stateNode.nodeValue=c?"":d.memoizedProps}catch(t){hj(e,e.return,t)}}else if((22!==d.tag&&23!==d.tag||null===d.memoizedState||d===e)&&null!==d.child){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;null===d.sibling;){if(null===d.return||d.return===e)break e;u===d&&(u=null),d=d.return}u===d&&(u=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:iF(t,e),aF(e),4&r&&rF(e);case 21:}}function aF(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(Gz(n)){var r=n;break e}n=n.return}throw Error(JD(160))}switch(r.tag){case 5:var i=r.stateNode;32&r.flags&&(rT(i,""),r.flags&=-33),Zz(e,Xz(e),i);break;case 3:case 4:var o=r.stateNode.containerInfo;Jz(e,Xz(e),o);break;default:throw Error(JD(161))}}catch(t){hj(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function sF(e,t,n){$z=e,lF(e)}function lF(e,t,n){for(var r=!!(1&e.mode);null!==$z;){var i=$z,o=i.child;if(22===i.tag&&r){var a=null!==i.memoizedState||zz;if(!a){var s=i.alternate,l=null!==s&&null!==s.memoizedState||Fz;s=zz;var c=Fz;if(zz=a,(Fz=l)&&!c)for($z=i;null!==$z;)l=(a=$z).child,22===a.tag&&null!==a.memoizedState?dF(i):null!==l?(l.return=a,$z=l):dF(i);for(;null!==o;)$z=o,lF(o),o=o.sibling;$z=i,zz=s,Fz=c}cF(e)}else 8772&i.subtreeFlags&&null!==o?(o.return=i,$z=o):cF(e)}}function cF(e){for(;null!==$z;){var t=$z;if(8772&t.flags){var n=t.alternate;try{if(8772&t.flags)switch(t.tag){case 0:case 11:case 15:Fz||Uz(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Fz)if(null===n)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:WL(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;null!==o&&PI(t,o,r);break;case 3:var a=t.updateQueue;if(null!==a){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}PI(t,a,n)}break;case 5:var s=t.stateNode;if(null===n&&4&t.flags){n=s;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var u=c.memoizedState;if(null!==u){var d=u.dehydrated;null!==d&&PO(d)}}}break;default:throw Error(JD(163))}Fz||512&t.flags&&Yz(t)}catch(e){hj(t,t.return,e)}}if(t===e){$z=null;break}if(null!==(n=t.sibling)){n.return=t.return,$z=n;break}$z=t.return}}function uF(e){for(;null!==$z;){var t=$z;if(t===e){$z=null;break}var n=t.sibling;if(null!==n){n.return=t.return,$z=n;break}$z=t.return}}function dF(e){for(;null!==$z;){var t=$z;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Uz(4,t)}catch(e){hj(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var i=t.return;try{r.componentDidMount()}catch(e){hj(t,i,e)}}var o=t.return;try{Yz(t)}catch(e){hj(t,o,e)}break;case 5:var a=t.return;try{Yz(t)}catch(e){hj(t,a,e)}}}catch(e){hj(t,t.return,e)}if(t===e){$z=null;break}var s=t.sibling;if(null!==s){s.return=t.return,$z=s;break}$z=t.return}}var fF,hF=Math.ceil,pF=fR.ReactCurrentDispatcher,mF=fR.ReactCurrentOwner,gF=fR.ReactCurrentBatchConfig,yF=0,vF=null,bF=null,xF=0,wF=0,kF=pA(0),SF=0,CF=null,EF=0,MF=0,_F=0,qF=null,DF=null,RF=0,TF=1/0,OF=null,PF=!1,NF=null,AF=null,IF=!1,LF=null,zF=0,FF=0,jF=null,$F=-1,HF=0;function VF(){return 6&yF?HT():-1!==$F?$F:$F=HT()}function BF(e){return 1&e.mode?2&yF&&0!==xF?xF&-xF:null!==oI.transition?(0===HF&&(HF=aO()),HF):0!==(e=uO)?e:e=void 0===(e=window.event)?16:$O(e.type):1}function WF(e,t,n,r){if(50<FF)throw FF=0,jF=null,Error(JD(185));lO(e,n,r),2&yF&&e===vF||(e===vF&&(!(2&yF)&&(MF|=n),4===SF&&XF(e,xF)),UF(e,r),1===n&&0===yF&&!(1&t.mode)&&(TF=HT()+500,DA&&OA()))}function UF(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var a=31-JT(o),s=1<<a,l=i[a];-1===l?s&n&&!(s&r)||(i[a]=iO(s,t)):l<=t&&(e.expiredLanes|=s),o&=~s}}(e,t);var r=rO(e,e===vF?xF:0);if(0===r)null!==n&&FT(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&FT(n),1===t)0===e.tag?function(e){DA=!0,TA(e)}(JF.bind(null,e)):TA(JF.bind(null,e)),XN((function(){!(6&yF)&&OA()})),n=null;else{switch(dO(r)){case 1:n=BT;break;case 4:n=WT;break;case 16:default:n=UT;break;case 536870912:n=KT}n=vj(n,YF.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function YF(e,t){if($F=-1,HF=0,6&yF)throw Error(JD(327));var n=e.callbackNode;if(dj()&&e.callbackNode!==n)return null;var r=rO(e,e===vF?xF:0);if(0===r)return null;if(30&r||r&e.expiredLanes||t)t=oj(e,r);else{t=r;var i=yF;yF|=2;var o=rj();for(vF===e&&xF===t||(OF=null,TF=HT()+500,tj(e,t));;)try{sj();break}catch(t){nj(e,t)}gI(),pF.current=o,yF=i,null!==bF?t=0:(vF=null,xF=0,t=SF)}if(0!==t){if(2===t&&(0!==(i=oO(e))&&(r=i,t=KF(e,i))),1===t)throw n=CF,tj(e,0),XF(e,r),UF(e,HT()),n;if(6===t)XF(e,r);else{if(i=e.current.alternate,!(30&r||function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!JP(o(),i))return!1}catch(e){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(i)||(t=oj(e,r),2===t&&(o=oO(e),0!==o&&(r=o,t=KF(e,o))),1!==t)))throw n=CF,tj(e,0),XF(e,r),UF(e,HT()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(JD(345));case 2:case 5:uj(e,DF,OF);break;case 3:if(XF(e,r),(130023424&r)===r&&10<(t=RF+500-HT())){if(0!==rO(e,0))break;if(((i=e.suspendedLanes)&r)!==r){VF(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=YN(uj.bind(null,e,DF,OF),t);break}uj(e,DF,OF);break;case 4:if(XF(e,r),(4194240&r)===r)break;for(t=e.eventTimes,i=-1;0<r;){var a=31-JT(r);o=1<<a,(a=t[a])>i&&(i=a),r&=~o}if(r=i,10<(r=(120>(r=HT()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*hF(r/1960))-r)){e.timeoutHandle=YN(uj.bind(null,e,DF,OF),r);break}uj(e,DF,OF);break;default:throw Error(JD(329))}}}return UF(e,HT()),e.callbackNode===n?YF.bind(null,e):null}function KF(e,t){var n=qF;return e.current.memoizedState.isDehydrated&&(tj(e,t).flags|=256),2!==(e=oj(e,t))&&(t=DF,DF=n,null!==t&&GF(t)),e}function GF(e){null===DF?DF=e:DF.push.apply(DF,e)}function XF(e,t){for(t&=~_F,t&=~MF,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-JT(t),r=1<<n;e[n]=-1,t&=~r}}function JF(e){if(6&yF)throw Error(JD(327));dj();var t=rO(e,0);if(!(1&t))return UF(e,HT()),null;var n=oj(e,t);if(0!==e.tag&&2===n){var r=oO(e);0!==r&&(t=r,n=KF(e,r))}if(1===n)throw n=CF,tj(e,0),XF(e,t),UF(e,HT()),n;if(6===n)throw Error(JD(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,uj(e,DF,OF),UF(e,HT()),null}function ZF(e,t){var n=yF;yF|=1;try{return e(t)}finally{0===(yF=n)&&(TF=HT()+500,DA&&OA())}}function QF(e){null!==LF&&0===LF.tag&&!(6&yF)&&dj();var t=yF;yF|=1;var n=gF.transition,r=uO;try{if(gF.transition=null,uO=1,e)return e()}finally{uO=r,gF.transition=n,!(6&(yF=t))&&OA()}}function ej(){wF=kF.current,mA(kF)}function tj(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,KN(n)),null!==bF)for(n=bF.return;null!==n;){var r=n;switch(WA(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&SA();break;case 3:jI(),mA(bA),mA(vA),UI();break;case 5:HI(r);break;case 4:jI();break;case 13:case 19:mA(VI);break;case 10:yI(r.type._context);break;case 22:case 23:ej()}n=n.return}if(vF=e,bF=e=kj(e.current,null),xF=wF=t,SF=0,CF=null,_F=MF=EF=0,DF=qF=null,null!==wI){for(t=0;t<wI.length;t++)if(null!==(r=(n=wI[t]).interleaved)){n.interleaved=null;var i=r.next,o=n.pending;if(null!==o){var a=o.next;o.next=i,r.next=a}n.pending=r}wI=null}return e}function nj(e,t){for(;;){var n=bF;try{if(gI(),YI.current=$L,QI){for(var r=XI.memoizedState;null!==r;){var i=r.queue;null!==i&&(i.pending=null),r=r.next}QI=!1}if(GI=0,ZI=JI=XI=null,eL=!1,tL=0,mF.current=null,null===n||null===n.return){SF=1,CF=t,bF=null;break}e:{var o=e,a=n.return,s=n,l=t;if(t=xF,s.flags|=32768,null!==l&&"object"==typeof l&&"function"==typeof l.then){var c=l,u=s,d=u.tag;if(!(1&u.mode||0!==d&&11!==d&&15!==d)){var f=u.alternate;f?(u.updateQueue=f.updateQueue,u.memoizedState=f.memoizedState,u.lanes=f.lanes):(u.updateQueue=null,u.memoizedState=null)}var h=oz(a);if(null!==h){h.flags&=-257,az(h,a,s,0,t),1&h.mode&&iz(o,c,t),l=c;var p=(t=h).updateQueue;if(null===p){var m=new Set;m.add(l),t.updateQueue=m}else p.add(l);break e}if(!(1&t)){iz(o,c,t),ij();break e}l=Error(JD(426))}else if(KA&&1&s.mode){var g=oz(a);if(null!==g){!(65536&g.flags)&&(g.flags|=256),az(g,a,s,0,t),iI(ZL(l,s));break e}}o=l=ZL(l,s),4!==SF&&(SF=2),null===qF?qF=[o]:qF.push(o),o=a;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t,TI(o,nz(0,l,t));break e;case 1:s=l;var y=o.type,v=o.stateNode;if(!(128&o.flags||"function"!=typeof y.getDerivedStateFromError&&(null===v||"function"!=typeof v.componentDidCatch||null!==AF&&AF.has(v)))){o.flags|=65536,t&=-t,o.lanes|=t,TI(o,rz(o,s,t));break e}}o=o.return}while(null!==o)}cj(n)}catch(e){t=e,bF===n&&null!==n&&(bF=n=n.return);continue}break}}function rj(){var e=pF.current;return pF.current=$L,null===e?$L:e}function ij(){0!==SF&&3!==SF&&2!==SF||(SF=4),null===vF||!(268435455&EF)&&!(268435455&MF)||XF(vF,xF)}function oj(e,t){var n=yF;yF|=2;var r=rj();for(vF===e&&xF===t||(OF=null,tj(e,t));;)try{aj();break}catch(t){nj(e,t)}if(gI(),yF=n,pF.current=r,null!==bF)throw Error(JD(261));return vF=null,xF=0,SF}function aj(){for(;null!==bF;)lj(bF)}function sj(){for(;null!==bF&&!jT();)lj(bF)}function lj(e){var t=fF(e.alternate,e,wF);e.memoizedProps=e.pendingProps,null===t?cj(e):bF=t,mF.current=null}function cj(e){var t=e;do{var n=t.alternate;if(e=t.return,32768&t.flags){if(null!==(n=Lz(n,t)))return n.flags&=32767,void(bF=n);if(null===e)return SF=6,void(bF=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}else if(null!==(n=Iz(n,t,wF)))return void(bF=n);if(null!==(t=t.sibling))return void(bF=t);bF=t=e}while(null!==t);0===SF&&(SF=5)}function uj(e,t,n){var r=uO,i=gF.transition;try{gF.transition=null,uO=1,function(e,t,n,r){do{dj()}while(null!==LF);if(6&yF)throw Error(JD(327));n=e.finishedWork;var i=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(JD(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-JT(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}(e,o),e===vF&&(bF=vF=null,xF=0),!(2064&n.subtreeFlags)&&!(2064&n.flags)||IF||(IF=!0,vj(UT,(function(){return dj(),null}))),o=!!(15990&n.flags),!!(15990&n.subtreeFlags)||o){o=gF.transition,gF.transition=null;var a=uO;uO=1;var s=yF;yF|=4,mF.current=null,function(e,t){if(BN=AO,rN(e=nN())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch(e){n=null;break e}var a=0,s=-1,l=-1,c=0,u=0,d=e,f=null;t:for(;;){for(var h;d!==n||0!==i&&3!==d.nodeType||(s=a+i),d!==o||0!==r&&3!==d.nodeType||(l=a+r),3===d.nodeType&&(a+=d.nodeValue.length),null!==(h=d.firstChild);)f=d,d=h;for(;;){if(d===e)break t;if(f===n&&++c===i&&(s=a),f===o&&++u===r&&(l=a),null!==(h=d.nextSibling))break;f=(d=f).parentNode}d=h}n=-1===s||-1===l?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(WN={focusedElem:e,selectionRange:n},AO=!1,$z=t;null!==$z;)if(e=(t=$z).child,1028&t.subtreeFlags&&null!==e)e.return=t,$z=e;else for(;null!==$z;){t=$z;try{var p=t.alternate;if(1024&t.flags)switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==p){var m=p.memoizedProps,g=p.memoizedState,y=t.stateNode,v=y.getSnapshotBeforeUpdate(t.elementType===t.type?m:WL(t.type,m),g);y.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var b=t.stateNode.containerInfo;1===b.nodeType?b.textContent="":9===b.nodeType&&b.documentElement&&b.removeChild(b.documentElement);break;default:throw Error(JD(163))}}catch(e){hj(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,$z=e;break}$z=t.return}p=Bz,Bz=!1}(e,n),oF(n,e),iN(WN),AO=!!BN,WN=BN=null,e.current=n,sF(n),$T(),yF=s,uO=a,gF.transition=o}else e.current=n;if(IF&&(IF=!1,LF=e,zF=i),o=e.pendingLanes,0===o&&(AF=null),function(e){if(XT&&"function"==typeof XT.onCommitFiberRoot)try{XT.onCommitFiberRoot(GT,e,void 0,!(128&~e.current.flags))}catch(e){}}(n.stateNode),UF(e,HT()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(PF)throw PF=!1,e=NF,NF=null,e;!!(1&zF)&&0!==e.tag&&dj(),o=e.pendingLanes,1&o?e===jF?FF++:(FF=0,jF=e):FF=0,OA()}(e,t,n,r)}finally{gF.transition=i,uO=r}return null}function dj(){if(null!==LF){var e=dO(zF),t=gF.transition,n=uO;try{if(gF.transition=null,uO=16>e?16:e,null===LF)var r=!1;else{if(e=LF,LF=null,zF=0,6&yF)throw Error(JD(331));var i=yF;for(yF|=4,$z=e.current;null!==$z;){var o=$z,a=o.child;if(16&$z.flags){var s=o.deletions;if(null!==s){for(var l=0;l<s.length;l++){var c=s[l];for($z=c;null!==$z;){var u=$z;switch(u.tag){case 0:case 11:case 15:Wz(8,u,o)}var d=u.child;if(null!==d)d.return=u,$z=d;else for(;null!==$z;){var f=(u=$z).sibling,h=u.return;if(Kz(u),u===c){$z=null;break}if(null!==f){f.return=h,$z=f;break}$z=h}}}var p=o.alternate;if(null!==p){var m=p.child;if(null!==m){p.child=null;do{var g=m.sibling;m.sibling=null,m=g}while(null!==m)}}$z=o}}if(2064&o.subtreeFlags&&null!==a)a.return=o,$z=a;else e:for(;null!==$z;){if(2048&(o=$z).flags)switch(o.tag){case 0:case 11:case 15:Wz(9,o,o.return)}var y=o.sibling;if(null!==y){y.return=o.return,$z=y;break e}$z=o.return}}var v=e.current;for($z=v;null!==$z;){var b=(a=$z).child;if(2064&a.subtreeFlags&&null!==b)b.return=a,$z=b;else e:for(a=v;null!==$z;){if(2048&(s=$z).flags)try{switch(s.tag){case 0:case 11:case 15:Uz(9,s)}}catch(e){hj(s,s.return,e)}if(s===a){$z=null;break e}var x=s.sibling;if(null!==x){x.return=s.return,$z=x;break e}$z=s.return}}if(yF=i,OA(),XT&&"function"==typeof XT.onPostCommitFiberRoot)try{XT.onPostCommitFiberRoot(GT,e)}catch(e){}r=!0}return r}finally{uO=n,gF.transition=t}}return!1}function fj(e,t,n){e=DI(e,t=nz(0,t=ZL(n,t),1),1),t=VF(),null!==e&&(lO(e,1,t),UF(e,t))}function hj(e,t,n){if(3===e.tag)fj(e,e,n);else for(;null!==t;){if(3===t.tag){fj(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===AF||!AF.has(r))){t=DI(t,e=rz(t,e=ZL(n,e),1),1),e=VF(),null!==t&&(lO(t,1,e),UF(t,e));break}}t=t.return}}function pj(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=VF(),e.pingedLanes|=e.suspendedLanes&n,vF===e&&(xF&n)===n&&(4===SF||3===SF&&(130023424&xF)===xF&&500>HT()-RF?tj(e,0):_F|=n),UF(e,t)}function mj(e,t){0===t&&(1&e.mode?(t=tO,!(130023424&(tO<<=1))&&(tO=4194304)):t=1);var n=VF();null!==(e=CI(e,t))&&(lO(e,t,n),UF(e,n))}function gj(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),mj(e,n)}function yj(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;null!==i&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(JD(314))}null!==r&&r.delete(t),mj(e,n)}function vj(e,t){return zT(e,t)}function bj(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 xj(e,t,n,r){return new bj(e,t,n,r)}function wj(e){return!(!(e=e.prototype)||!e.isReactComponent)}function kj(e,t){var n=e.alternate;return null===n?((n=xj(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Sj(e,t,n,r,i,o){var a=2;if(r=e,"function"==typeof e)wj(e)&&(a=1);else if("string"==typeof e)a=5;else e:switch(e){case mR:return Cj(n.children,i,o,t);case gR:a=8,i|=8;break;case yR:return(e=xj(12,n,t,2|i)).elementType=yR,e.lanes=o,e;case wR:return(e=xj(13,n,t,i)).elementType=wR,e.lanes=o,e;case kR:return(e=xj(19,n,t,i)).elementType=kR,e.lanes=o,e;case ER:return Ej(n,i,o,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case vR:a=10;break e;case bR:a=9;break e;case xR:a=11;break e;case SR:a=14;break e;case CR:a=16,r=null;break e}throw Error(JD(130,null==e?e:typeof e,""))}return(t=xj(a,n,t,i)).elementType=e,t.type=r,t.lanes=o,t}function Cj(e,t,n,r){return(e=xj(7,e,r,t)).lanes=n,e}function Ej(e,t,n,r){return(e=xj(22,e,r,t)).elementType=ER,e.lanes=n,e.stateNode={isHidden:!1},e}function Mj(e,t,n){return(e=xj(6,e,null,t)).lanes=n,e}function _j(e,t,n){return(t=xj(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function qj(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=sO(0),this.expirationTimes=sO(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=sO(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Dj(e,t,n,r,i,o,a,s,l){return e=new qj(e,t,n,s,l),1===t?(t=1,!0===o&&(t|=8)):t=0,o=xj(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},MI(o),e}function Rj(e){if(!e)return yA;e:{if(PT(e=e._reactInternals)!==e||1!==e.tag)throw Error(JD(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(kA(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(JD(171))}if(1===e.tag){var n=e.type;if(kA(n))return EA(e,n,t)}return t}function Tj(e,t,n,r,i,o,a,s,l){return(e=Dj(n,r,!0,e,0,o,0,s,l)).context=Rj(null),n=e.current,(o=qI(r=VF(),i=BF(n))).callback=null!=t?t:null,DI(n,o,i),e.current.lanes=i,lO(e,i,r),UF(e,r),e}function Oj(e,t,n,r){var i=t.current,o=VF(),a=BF(i);return n=Rj(n),null===t.context?t.context=n:t.pendingContext=n,(t=qI(o,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=DI(i,t,a))&&(WF(e,i,a,o),RI(e,i,a)),a}function Pj(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Nj(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Aj(e,t){Nj(e,t),(e=e.alternate)&&Nj(e,t)}fF=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||bA.current)lz=!0;else{if(!(e.lanes&n||128&t.flags))return lz=!1,function(e,t,n){switch(t.tag){case 3:vz(t),rI();break;case 5:$I(t);break;case 1:kA(t.type)&&MA(t);break;case 4:FI(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;gA(fI,r._currentValue),r._currentValue=i;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(gA(VI,1&VI.current),t.flags|=128,null):n&t.child.childLanes?Mz(e,t,n):(gA(VI,1&VI.current),null!==(e=Pz(e,t,n))?e.sibling:null);gA(VI,1&VI.current);break;case 19:if(r=!!(n&t.childLanes),128&e.flags){if(r)return Tz(e,t,n);t.flags|=128}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),gA(VI,VI.current),r)break;return null;case 22:case 23:return t.lanes=0,hz(e,t,n)}return Pz(e,t,n)}(e,t,n);lz=!!(131072&e.flags)}else lz=!1,KA&&1048576&t.flags&&VA(t,IA,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Oz(e,t),e=t.pendingProps;var i=wA(t,vA.current);bI(t,n),i=oL(null,t,r,e,i,n);var o=aL();return t.flags|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,kA(r)?(o=!0,MA(t)):o=!1,t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,MI(t),i.updater=YL,t.stateNode=i,i._reactInternals=t,JL(t,r,e,n),t=yz(null,t,r,!0,o,n)):(t.tag=0,KA&&o&&BA(t),cz(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Oz(e,t),e=t.pendingProps,r=(i=r._init)(r._payload),t.type=r,i=t.tag=function(e){if("function"==typeof e)return wj(e)?1:0;if(null!=e){if((e=e.$$typeof)===xR)return 11;if(e===SR)return 14}return 2}(r),e=WL(r,e),i){case 0:t=mz(null,t,r,e,n);break e;case 1:t=gz(null,t,r,e,n);break e;case 11:t=uz(null,t,r,e,n);break e;case 14:t=dz(null,t,r,WL(r.type,e),n);break e}throw Error(JD(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,mz(e,t,r,i=t.elementType===r?i:WL(r,i),n);case 1:return r=t.type,i=t.pendingProps,gz(e,t,r,i=t.elementType===r?i:WL(r,i),n);case 3:e:{if(vz(t),null===e)throw Error(JD(387));r=t.pendingProps,i=(o=t.memoizedState).element,_I(e,t),OI(t,r,null,n);var a=t.memoizedState;if(r=a.element,o.isDehydrated){if(o={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=o,t.memoizedState=o,256&t.flags){t=bz(e,t,r,n,i=ZL(Error(JD(423)),t));break e}if(r!==i){t=bz(e,t,r,n,i=ZL(Error(JD(424)),t));break e}for(YA=QN(t.stateNode.containerInfo.firstChild),UA=t,KA=!0,GA=null,n=dI(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(rI(),r===i){t=Pz(e,t,n);break e}cz(e,t,r,n)}t=t.child}return t;case 5:return $I(t),null===e&&QA(t),r=t.type,i=t.pendingProps,o=null!==e?e.memoizedProps:null,a=i.children,UN(r,i)?a=null:null!==o&&UN(r,o)&&(t.flags|=32),pz(e,t),cz(e,t,a,n),t.child;case 6:return null===e&&QA(t),null;case 13:return Mz(e,t,n);case 4:return FI(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=uI(t,null,r,n):cz(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,uz(e,t,r,i=t.elementType===r?i:WL(r,i),n);case 7:return cz(e,t,t.pendingProps,n),t.child;case 8:case 12:return cz(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,a=i.value,gA(fI,r._currentValue),r._currentValue=a,null!==o)if(JP(o.value,a)){if(o.children===i.children&&!bA.current){t=Pz(e,t,n);break e}}else for(null!==(o=t.child)&&(o.return=t);null!==o;){var s=o.dependencies;if(null!==s){a=o.child;for(var l=s.firstContext;null!==l;){if(l.context===r){if(1===o.tag){(l=qI(-1,n&-n)).tag=2;var c=o.updateQueue;if(null!==c){var u=(c=c.shared).pending;null===u?l.next=l:(l.next=u.next,u.next=l),c.pending=l}}o.lanes|=n,null!==(l=o.alternate)&&(l.lanes|=n),vI(o.return,n,t),s.lanes|=n;break}l=l.next}}else if(10===o.tag)a=o.type===t.type?null:o.child;else if(18===o.tag){if(null===(a=o.return))throw Error(JD(341));a.lanes|=n,null!==(s=a.alternate)&&(s.lanes|=n),vI(a,n,t),a=o.sibling}else a=o.child;if(null!==a)a.return=o;else for(a=o;null!==a;){if(a===t){a=null;break}if(null!==(o=a.sibling)){o.return=a.return,a=o;break}a=a.return}o=a}cz(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,bI(t,n),r=r(i=xI(i)),t.flags|=1,cz(e,t,r,n),t.child;case 14:return i=WL(r=t.type,t.pendingProps),dz(e,t,r,i=WL(r.type,i),n);case 15:return fz(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:WL(r,i),Oz(e,t),t.tag=1,kA(r)?(e=!0,MA(t)):e=!1,bI(t,n),GL(t,r,i),JL(t,r,i,n),yz(null,t,r,!0,e,n);case 19:return Tz(e,t,n);case 22:return hz(e,t,n)}throw Error(JD(156,t.tag))};var Ij="function"==typeof reportError?reportError:function(e){console.error(e)};function Lj(e){this._internalRoot=e}function zj(e){this._internalRoot=e}function Fj(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function jj(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function $j(){}function Hj(e,t,n,r,i){var o=n._reactRootContainer;if(o){var a=o;if("function"==typeof i){var s=i;i=function(){var e=Pj(a);s.call(e)}}Oj(t,a,e,i)}else a=function(e,t,n,r,i){if(i){if("function"==typeof r){var o=r;r=function(){var e=Pj(a);o.call(e)}}var a=Tj(t,r,e,0,null,!1,0,"",$j);return e._reactRootContainer=a,e[iA]=a.current,ON(8===e.nodeType?e.parentNode:e),QF(),a}for(;i=e.lastChild;)e.removeChild(i);if("function"==typeof r){var s=r;r=function(){var e=Pj(l);s.call(e)}}var l=Dj(e,0,!1,null,0,!1,0,"",$j);return e._reactRootContainer=l,e[iA]=l.current,ON(8===e.nodeType?e.parentNode:e),QF((function(){Oj(t,l,n,r)})),l}(n,t,e,i,r);return Pj(a)}zj.prototype.render=Lj.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(JD(409));Oj(e,t,null,null)},zj.prototype.unmount=Lj.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;QF((function(){Oj(null,e,null,null)})),t[iA]=null}},zj.prototype.unstable_scheduleHydration=function(e){if(e){var t=mO();e={blockedOn:null,target:e,priority:t};for(var n=0;n<CO.length&&0!==t&&t<CO[n].priority;n++);CO.splice(n,0,e),0===n&&qO(e)}},fO=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=nO(t.pendingLanes);0!==n&&(cO(t,1|n),UF(t,HT()),!(6&yF)&&(TF=HT()+500,OA()))}break;case 13:QF((function(){var t=CI(e,1);if(null!==t){var n=VF();WF(t,e,1,n)}})),Aj(e,1)}},hO=function(e){if(13===e.tag){var t=CI(e,134217728);if(null!==t)WF(t,e,134217728,VF());Aj(e,134217728)}},pO=function(e){if(13===e.tag){var t=BF(e),n=CI(e,t);if(null!==n)WF(n,e,t,VF());Aj(e,t)}},mO=function(){return uO},gO=function(e,t){var n=uO;try{return uO=e,t()}finally{uO=n}},hT=function(e,t,n){switch(t){case"input":if(BR(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=dA(r);if(!i)throw Error(JD(90));FR(r),BR(r,i)}}}break;case"textarea":JR(e,n);break;case"select":null!=(t=n.value)&&KR(e,!!n.multiple,t,!1)}},bT=ZF,xT=QF;var Vj={usingClientEntryPoint:!1,Events:[cA,uA,dA,yT,vT,ZF]},Bj={findFiberByHostInstance:lA,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Wj={bundleType:Bj.bundleType,version:Bj.version,rendererPackageName:Bj.rendererPackageName,rendererConfig:Bj.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:fR.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=IT(e))?null:e.stateNode},findFiberByHostInstance:Bj.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var Uj=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Uj.isDisabled&&Uj.supportsFiber)try{GT=Uj.inject(Wj),XT=Uj}catch(Wh){}}WD.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Vj,WD.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Fj(t))throw Error(JD(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:pR,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},WD.createRoot=function(e,t){if(!Fj(e))throw Error(JD(299));var n=!1,r="",i=Ij;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(i=t.onRecoverableError)),t=Dj(e,1,!1,null,0,n,0,r,i),e[iA]=t.current,ON(8===e.nodeType?e.parentNode:e),new Lj(t)},WD.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(JD(188));throw e=Object.keys(e).join(","),Error(JD(268,e))}return e=null===(e=IT(t))?null:e.stateNode},WD.flushSync=function(e){return QF(e)},WD.hydrate=function(e,t,n){if(!jj(t))throw Error(JD(200));return Hj(null,e,t,!0,n)},WD.hydrateRoot=function(e,t,n){if(!Fj(e))throw Error(JD(405));var r=null!=n&&n.hydratedSources||null,i=!1,o="",a=Ij;if(null!=n&&(!0===n.unstable_strictMode&&(i=!0),void 0!==n.identifierPrefix&&(o=n.identifierPrefix),void 0!==n.onRecoverableError&&(a=n.onRecoverableError)),t=Tj(t,null,e,1,null!=n?n:null,i,0,o,a),e[iA]=t.current,ON(e),r)for(e=0;e<r.length;e++)i=(i=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new zj(t)},WD.render=function(e,t,n){if(!jj(t))throw Error(JD(200));return Hj(null,e,t,!1,n)},WD.unmountComponentAtNode=function(e){if(!jj(e))throw Error(JD(40));return!!e._reactRootContainer&&(QF((function(){Hj(null,null,e,!1,(function(){e._reactRootContainer=null,e[iA]=null}))})),!0)},WD.unstable_batchedUpdates=ZF,WD.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!jj(n))throw Error(JD(200));if(null==e||void 0===e._reactInternals)throw Error(JD(38));return Hj(e,t,n,!1,r)},WD.version="18.3.1-next-f1338f8080-20240426",function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),BD.exports=WD;var Yj=BD.exports,Kj=r(Yj),Gj=!0,Xj=!1,Jj=null,Zj={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 Qj(e){e.metaKey||e.altKey||e.ctrlKey||(Gj=!0)}function e$(){Gj=!1}function t$(){"hidden"===this.visibilityState&&Xj&&(Gj=!0)}function n$(e){var t=e.target;try{return t.matches(":focus-visible")}catch(e){}return Gj||function(e){var t=e.type,n=e.tagName;return!("INPUT"!==n||!Zj[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function r$(){Xj=!0,window.clearTimeout(Jj),Jj=window.setTimeout((function(){Xj=!1}),100)}function i$(){var e=nC.useCallback((function(e){var t,n=Yj.findDOMNode(e);null!=n&&((t=n.ownerDocument).addEventListener("keydown",Qj,!0),t.addEventListener("mousedown",e$,!0),t.addEventListener("pointerdown",e$,!0),t.addEventListener("touchstart",e$,!0),t.addEventListener("visibilitychange",t$,!0))}),[]);return{isFocusVisible:n$,onBlurVisible:r$,ref:e}}var o$=!1,a$=rC.createContext(null),s$="unmounted",l$="exited",c$="entering",u$="entered",d$="exiting",f$=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var i,o=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?o?(i=l$,r.appearStatus=c$):i=u$:i=t.unmountOnExit||t.mountOnEnter?s$:l$,r.state={status:i},r.nextCallback=null,r}BE(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===s$?{status:l$}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==c$&&n!==u$&&(t=c$):n!==c$&&n!==u$||(t=d$)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===c$){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:Kj.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===l$&&this.setState({status:s$})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[Kj.findDOMNode(this),r],o=i[0],a=i[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||o$?this.safeSetState({status:u$},(function(){t.props.onEntered(o)})):(this.props.onEnter(o,a),this.safeSetState({status:c$},(function(){t.props.onEntering(o,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:u$},(function(){t.props.onEntered(o,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:Kj.findDOMNode(this);t&&!o$?(this.props.onExit(r),this.safeSetState({status:d$},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:l$},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:l$},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:Kj.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],o=i[0],a=i[1];this.props.addEndListener(o,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===s$)return null;var t=this.props,n=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var r=cE(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return rC.createElement(a$.Provider,{value:null},"function"==typeof n?n(e,r):rC.cloneElement(rC.Children.only(n),r))},t}(rC.Component);function h$(){}function p$(e,t){var n=Object.create(null);return e&&nC.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&nC.isValidElement(e)?t(e):e}(e)})),n}function m$(e,t,n){return null!=n[t]?n[t]:e.props[t]}function g$(e,t,n){var r=p$(e.children),i=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,i=Object.create(null),o=[];for(var a in e)a in t?o.length&&(i[a]=o,o=[]):o.push(a);var s={};for(var l in t){if(i[l])for(r=0;r<i[l].length;r++){var c=i[l][r];s[i[l][r]]=n(c)}s[l]=n(l)}for(r=0;r<o.length;r++)s[o[r]]=n(o[r]);return s}(t,r);return Object.keys(i).forEach((function(o){var a=i[o];if(nC.isValidElement(a)){var s=o in t,l=o in r,c=t[o],u=nC.isValidElement(c)&&!c.props.in;!l||s&&!u?l||!s||u?l&&s&&nC.isValidElement(c)&&(i[o]=nC.cloneElement(a,{onExited:n.bind(null,a),in:c.props.in,exit:m$(a,"exit",e),enter:m$(a,"enter",e)})):i[o]=nC.cloneElement(a,{in:!1}):i[o]=nC.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:m$(a,"exit",e),enter:m$(a,"enter",e)})}})),i}f$.contextType=a$,f$.propTypes={},f$.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:h$,onEntering:h$,onEntered:h$,onExit:h$,onExiting:h$,onExited:h$},f$.UNMOUNTED=s$,f$.EXITED=l$,f$.ENTERING=c$,f$.ENTERED=u$,f$.EXITING=d$;var y$=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},v$=function(e){function t(t,n){var r,i=(r=e.call(this,t,n)||this).handleExited.bind(WE(r));return r.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},r}BE(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,i=t.children,o=t.handleExited;return{children:t.firstRender?(n=e,r=o,p$(n.children,(function(e){return nC.cloneElement(e,{onExited:r.bind(null,e),in:!0,appear:m$(e,"appear",n),enter:m$(e,"enter",n),exit:m$(e,"exit",n)})}))):g$(e,i,o),firstRender:!1}},n.handleExited=function(e,t){var n=p$(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=JC({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=cE(e,["component","childFactory"]),i=this.state.contextValue,o=y$(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?rC.createElement(a$.Provider,{value:i},o):rC.createElement(a$.Provider,{value:i},rC.createElement(t,r,o))},t}(rC.Component);v$.propTypes={},v$.defaultProps={component:"div",childFactory:function(e){return e}};function b$(e,t){var n=e.timeout,r=e.style,i=void 0===r?{}:r;return{duration:i.transitionDuration||"number"==typeof n?n:n[t.mode]||0,delay:i.transitionDelay}}var x$=nC.forwardRef((function(e,t){var n=e.classes,r=e.className,i=e.component,o=void 0===i?"div":i,a=e.square,s=void 0!==a&&a,l=e.elevation,c=void 0===l?1:l,u=e.variant,d=void 0===u?"elevation":u,f=uE(e,["classes","className","component","square","elevation","variant"]);return nC.createElement(o,JC({className:LD(n.root,r,"outlined"===d?n.outlined:n["elevation".concat(c)],!s&&n.rounded),ref:t},f))})),w$=PD((function(e){var t={};return e.shadows.forEach((function(e,n){t["elevation".concat(n)]={boxShadow:e}})),JC({root:{backgroundColor:e.palette.background.paper,color:e.palette.text.primary,transition:e.transitions.create("box-shadow")},rounded:{borderRadius:e.shape.borderRadius},outlined:{border:"1px solid ".concat(e.palette.divider)}},t)}),{name:"MuiPaper"})(x$),k$="undefined"==typeof window?nC.useEffect:nC.useLayoutEffect;function S$(e){var t=e.classes,n=e.pulsate,r=void 0!==n&&n,i=e.rippleX,o=e.rippleY,a=e.rippleSize,s=e.in,l=e.onExited,c=void 0===l?function(){}:l,u=e.timeout,d=nC.useState(!1),f=d[0],h=d[1],p=LD(t.ripple,t.rippleVisible,r&&t.ripplePulsate),m={width:a,height:a,top:-a/2+o,left:-a/2+i},g=LD(t.child,f&&t.childLeaving,r&&t.childPulsate),y=HD(c);return k$((function(){if(!s){h(!0);var e=setTimeout(y,u);return function(){clearTimeout(e)}}}),[y,s,u]),nC.createElement("span",{className:p,style:m},nC.createElement("span",{className:g}))}var C$=nC.forwardRef((function(e,t){var n=e.center,r=void 0!==n&&n,i=e.classes,o=e.className,a=uE(e,["center","classes","className"]),s=nC.useState([]),l=s[0],c=s[1],u=nC.useRef(0),d=nC.useRef(null);nC.useEffect((function(){d.current&&(d.current(),d.current=null)}),[l]);var f=nC.useRef(!1),h=nC.useRef(null),p=nC.useRef(null),m=nC.useRef(null);nC.useEffect((function(){return function(){clearTimeout(h.current)}}),[]);var g=nC.useCallback((function(e){var t=e.pulsate,n=e.rippleX,r=e.rippleY,o=e.rippleSize,a=e.cb;c((function(e){return[].concat(_E(e),[nC.createElement(S$,{key:u.current,classes:i,timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:o})])})),u.current+=1,d.current=a}),[i]),y=nC.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,i=t.pulsate,o=void 0!==i&&i,a=t.center,s=void 0===a?r||t.pulsate:a,l=t.fakeElement,c=void 0!==l&&l;if("mousedown"===e.type&&f.current)f.current=!1;else{"touchstart"===e.type&&(f.current=!0);var u,d,y,v=c?null:m.current,b=v?v.getBoundingClientRect():{width:0,height:0,left:0,top:0};if(s||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(b.width/2),d=Math.round(b.height/2);else{var x=e.touches?e.touches[0]:e,w=x.clientX,k=x.clientY;u=Math.round(w-b.left),d=Math.round(k-b.top)}if(s)(y=Math.sqrt((2*Math.pow(b.width,2)+Math.pow(b.height,2))/3))%2==0&&(y+=1);else{var S=2*Math.max(Math.abs((v?v.clientWidth:0)-u),u)+2,C=2*Math.max(Math.abs((v?v.clientHeight:0)-d),d)+2;y=Math.sqrt(Math.pow(S,2)+Math.pow(C,2))}e.touches?null===p.current&&(p.current=function(){g({pulsate:o,rippleX:u,rippleY:d,rippleSize:y,cb:n})},h.current=setTimeout((function(){p.current&&(p.current(),p.current=null)}),80)):g({pulsate:o,rippleX:u,rippleY:d,rippleSize:y,cb:n})}}),[r,g]),v=nC.useCallback((function(){y({},{pulsate:!0})}),[y]),b=nC.useCallback((function(e,t){if(clearTimeout(h.current),"touchend"===e.type&&p.current)return e.persist(),p.current(),p.current=null,void(h.current=setTimeout((function(){b(e,t)})));p.current=null,c((function(e){return e.length>0?e.slice(1):e})),d.current=t}),[]);return nC.useImperativeHandle(t,(function(){return{pulsate:v,start:y,stop:b}}),[v,y,b]),nC.createElement("span",JC({className:LD(i.root,o),ref:m},a),nC.createElement(v$,{component:null,exit:!0},l))})),E$=PD((function(e){return{root:{overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"},ripple:{opacity:0,position:"absolute"},rippleVisible:{opacity:.3,transform:"scale(1)",animation:"$enter ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},ripplePulsate:{animationDuration:"".concat(e.transitions.duration.shorter,"ms")},child:{opacity:1,display:"block",width:"100%",height:"100%",borderRadius:"50%",backgroundColor:"currentColor"},childLeaving:{opacity:0,animation:"$exit ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},childPulsate:{position:"absolute",left:0,top:0,animation:"$pulsate 2500ms ".concat(e.transitions.easing.easeInOut," 200ms infinite")},"@keyframes enter":{"0%":{transform:"scale(0)",opacity:.1},"100%":{transform:"scale(1)",opacity:.3}},"@keyframes exit":{"0%":{opacity:1},"100%":{opacity:0}},"@keyframes pulsate":{"0%":{transform:"scale(1)"},"50%":{transform:"scale(0.92)"},"100%":{transform:"scale(1)"}}}}),{flip:!1,name:"MuiTouchRipple"})(nC.memo(C$)),M$=nC.forwardRef((function(e,t){var n=e.action,r=e.buttonRef,i=e.centerRipple,o=void 0!==i&&i,a=e.children,s=e.classes,l=e.className,c=e.component,u=void 0===c?"button":c,d=e.disabled,f=void 0!==d&&d,h=e.disableRipple,p=void 0!==h&&h,m=e.disableTouchRipple,g=void 0!==m&&m,y=e.focusRipple,v=void 0!==y&&y,b=e.focusVisibleClassName,x=e.onBlur,w=e.onClick,k=e.onFocus,S=e.onFocusVisible,C=e.onKeyDown,E=e.onKeyUp,M=e.onMouseDown,_=e.onMouseLeave,q=e.onMouseUp,D=e.onTouchEnd,R=e.onTouchMove,T=e.onTouchStart,O=e.onDragLeave,P=e.tabIndex,N=void 0===P?0:P,A=e.TouchRippleProps,I=e.type,L=void 0===I?"button":I,z=uE(e,["action","buttonRef","centerRipple","children","classes","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","onBlur","onClick","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","onDragLeave","tabIndex","TouchRippleProps","type"]),F=nC.useRef(null);var j=nC.useRef(null),$=nC.useState(!1),H=$[0],V=$[1];f&&H&&V(!1);var B=i$(),W=B.isFocusVisible,U=B.onBlurVisible,Y=B.ref;function K(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:g;return HD((function(r){return t&&t(r),!n&&j.current&&j.current[e](r),!0}))}nC.useImperativeHandle(n,(function(){return{focusVisible:function(){V(!0),F.current.focus()}}}),[]),nC.useEffect((function(){H&&v&&!p&&j.current.pulsate()}),[p,v,H]);var G=K("start",M),X=K("stop",O),J=K("stop",q),Z=K("stop",(function(e){H&&e.preventDefault(),_&&_(e)})),Q=K("start",T),ee=K("stop",D),te=K("stop",R),ne=K("stop",(function(e){H&&(U(e),V(!1)),x&&x(e)}),!1),re=HD((function(e){F.current||(F.current=e.currentTarget),W(e)&&(V(!0),S&&S(e)),k&&k(e)})),ie=function(){var e=Yj.findDOMNode(F.current);return u&&"button"!==u&&!("A"===e.tagName&&e.href)},oe=nC.useRef(!1),ae=HD((function(e){v&&!oe.current&&H&&j.current&&" "===e.key&&(oe.current=!0,e.persist(),j.current.stop(e,(function(){j.current.start(e)}))),e.target===e.currentTarget&&ie()&&" "===e.key&&e.preventDefault(),C&&C(e),e.target===e.currentTarget&&ie()&&"Enter"===e.key&&!f&&(e.preventDefault(),w&&w(e))})),se=HD((function(e){v&&" "===e.key&&j.current&&H&&!e.defaultPrevented&&(oe.current=!1,e.persist(),j.current.stop(e,(function(){j.current.pulsate(e)}))),E&&E(e),w&&e.target===e.currentTarget&&ie()&&" "===e.key&&!e.defaultPrevented&&w(e)})),le=u;"button"===le&&z.href&&(le="a");var ce={};"button"===le?(ce.type=L,ce.disabled=f):("a"===le&&z.href||(ce.role="button"),ce["aria-disabled"]=f);var ue=VD(r,t),de=VD(Y,F),fe=VD(ue,de),he=nC.useState(!1),pe=he[0],me=he[1];nC.useEffect((function(){me(!0)}),[]);var ge=pe&&!p&&!f;return nC.createElement(le,JC({className:LD(s.root,l,H&&[s.focusVisible,b],f&&s.disabled),onBlur:ne,onClick:w,onFocus:re,onKeyDown:ae,onKeyUp:se,onMouseDown:G,onMouseLeave:Z,onMouseUp:J,onDragLeave:X,onTouchEnd:ee,onTouchMove:te,onTouchStart:Q,ref:fe,tabIndex:f?-1:N},ce,z),a,ge?nC.createElement(E$,JC({ref:j,center:o},A)):null)})),_$=PD({root:{display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle","-moz-appearance":"none","-webkit-appearance":"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},"&$disabled":{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}},disabled:{},focusVisible:{}},{name:"MuiButtonBase"})(M$),q$={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p"},D$=nC.forwardRef((function(e,t){var n=e.align,r=void 0===n?"inherit":n,i=e.classes,o=e.className,a=e.color,s=void 0===a?"initial":a,l=e.component,c=e.display,u=void 0===c?"initial":c,d=e.gutterBottom,f=void 0!==d&&d,h=e.noWrap,p=void 0!==h&&h,m=e.paragraph,g=void 0!==m&&m,y=e.variant,v=void 0===y?"body1":y,b=e.variantMapping,x=void 0===b?q$:b,w=uE(e,["align","classes","className","color","component","display","gutterBottom","noWrap","paragraph","variant","variantMapping"]),k=l||(g?"p":x[v]||q$[v])||"span";return nC.createElement(k,JC({className:LD(i.root,o,"inherit"!==v&&i[v],"initial"!==s&&i["color".concat(ND(s))],p&&i.noWrap,f&&i.gutterBottom,g&&i.paragraph,"inherit"!==r&&i["align".concat(ND(r))],"initial"!==u&&i["display".concat(ND(u))]),ref:t},w))})),R$=PD((function(e){return{root:{margin:0},body2:e.typography.body2,body1:e.typography.body1,caption:e.typography.caption,button:e.typography.button,h1:e.typography.h1,h2:e.typography.h2,h3:e.typography.h3,h4:e.typography.h4,h5:e.typography.h5,h6:e.typography.h6,subtitle1:e.typography.subtitle1,subtitle2:e.typography.subtitle2,overline:e.typography.overline,srOnly:{position:"absolute",height:1,width:1,overflow:"hidden"},alignLeft:{textAlign:"left"},alignCenter:{textAlign:"center"},alignRight:{textAlign:"right"},alignJustify:{textAlign:"justify"},noWrap:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},gutterBottom:{marginBottom:"0.35em"},paragraph:{marginBottom:16},colorInherit:{color:"inherit"},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorTextPrimary:{color:e.palette.text.primary},colorTextSecondary:{color:e.palette.text.secondary},colorError:{color:e.palette.error.main},displayInline:{display:"inline"},displayBlock:{display:"block"}}}),{name:"MuiTypography"})(D$),T$=nC.forwardRef((function(e,t){var n=e.children,r=e.classes,i=e.className,o=e.color,a=void 0===o?"default":o,s=e.component,l=void 0===s?"button":s,c=e.disabled,u=void 0!==c&&c,d=e.disableElevation,f=void 0!==d&&d,h=e.disableFocusRipple,p=void 0!==h&&h,m=e.endIcon,g=e.focusVisibleClassName,y=e.fullWidth,v=void 0!==y&&y,b=e.size,x=void 0===b?"medium":b,w=e.startIcon,k=e.type,S=void 0===k?"button":k,C=e.variant,E=void 0===C?"text":C,M=uE(e,["children","classes","className","color","component","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"]),_=w&&nC.createElement("span",{className:LD(r.startIcon,r["iconSize".concat(ND(x))])},w),q=m&&nC.createElement("span",{className:LD(r.endIcon,r["iconSize".concat(ND(x))])},m);return nC.createElement(_$,JC({className:LD(r.root,r[E],i,"inherit"===a?r.colorInherit:"default"!==a&&r["".concat(E).concat(ND(a))],"medium"!==x&&[r["".concat(E,"Size").concat(ND(x))],r["size".concat(ND(x))]],f&&r.disableElevation,u&&r.disabled,v&&r.fullWidth),component:l,disabled:u,focusRipple:!p,focusVisibleClassName:LD(r.focusVisible,g),ref:t,type:S},M),nC.createElement("span",{className:r.label},_,n,q))})),O$=PD((function(e){return{root:JC({},e.typography.button,{boxSizing:"border-box",minWidth:64,padding:"6px 16px",borderRadius:e.shape.borderRadius,color:e.palette.text.primary,transition:e.transitions.create(["background-color","box-shadow","border"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none",backgroundColor:lE(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"},"&$disabled":{backgroundColor:"transparent"}},"&$disabled":{color:e.palette.action.disabled}}),label:{width:"100%",display:"inherit",alignItems:"inherit",justifyContent:"inherit"},text:{padding:"6px 8px"},textPrimary:{color:e.palette.primary.main,"&:hover":{backgroundColor:lE(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},textSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:lE(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlined:{padding:"5px 15px",border:"1px solid ".concat("light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),"&$disabled":{border:"1px solid ".concat(e.palette.action.disabledBackground)}},outlinedPrimary:{color:e.palette.primary.main,border:"1px solid ".concat(lE(e.palette.primary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.primary.main),backgroundColor:lE(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlinedSecondary:{color:e.palette.secondary.main,border:"1px solid ".concat(lE(e.palette.secondary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.secondary.main),backgroundColor:lE(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{border:"1px solid ".concat(e.palette.action.disabled)}},contained:{color:e.palette.getContrastText(e.palette.grey[300]),backgroundColor:e.palette.grey[300],boxShadow:e.shadows[2],"&:hover":{backgroundColor:e.palette.grey.A100,boxShadow:e.shadows[4],"@media (hover: none)":{boxShadow:e.shadows[2],backgroundColor:e.palette.grey[300]},"&$disabled":{backgroundColor:e.palette.action.disabledBackground}},"&$focusVisible":{boxShadow:e.shadows[6]},"&:active":{boxShadow:e.shadows[8]},"&$disabled":{color:e.palette.action.disabled,boxShadow:e.shadows[0],backgroundColor:e.palette.action.disabledBackground}},containedPrimary:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,"&:hover":{backgroundColor:e.palette.primary.dark,"@media (hover: none)":{backgroundColor:e.palette.primary.main}}},containedSecondary:{color:e.palette.secondary.contrastText,backgroundColor:e.palette.secondary.main,"&:hover":{backgroundColor:e.palette.secondary.dark,"@media (hover: none)":{backgroundColor:e.palette.secondary.main}}},disableElevation:{boxShadow:"none","&:hover":{boxShadow:"none"},"&$focusVisible":{boxShadow:"none"},"&:active":{boxShadow:"none"},"&$disabled":{boxShadow:"none"}},focusVisible:{},disabled:{},colorInherit:{color:"inherit",borderColor:"currentColor"},textSizeSmall:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},textSizeLarge:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},outlinedSizeSmall:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},outlinedSizeLarge:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},containedSizeSmall:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},containedSizeLarge:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},sizeSmall:{},sizeLarge:{},fullWidth:{width:"100%"},startIcon:{display:"inherit",marginRight:8,marginLeft:-4,"&$iconSizeSmall":{marginLeft:-2}},endIcon:{display:"inherit",marginRight:-4,marginLeft:8,"&$iconSizeSmall":{marginRight:-2}},iconSizeSmall:{"& > *:first-child":{fontSize:18}},iconSizeMedium:{"& > *:first-child":{fontSize:20}},iconSizeLarge:{"& > *:first-child":{fontSize:22}}}}),{name:"MuiButton"})(T$);var P$="undefined"!=typeof window?nC.useLayoutEffect:nC.useEffect,N$=nC.forwardRef((function(e,t){var n=e.children,r=e.container,i=e.disablePortal,o=void 0!==i&&i,a=e.onRendered,s=nC.useState(null),l=s[0],c=s[1],u=VD(nC.isValidElement(n)?n.ref:null,t);return P$((function(){o||c(function(e){return e="function"==typeof e?e():e,Yj.findDOMNode(e)}(r)||document.body)}),[r,o]),P$((function(){if(l&&!o)return jD(t,l),function(){jD(t,null)}}),[t,l,o]),P$((function(){a&&(l||o)&&a()}),[a,l,o]),o?nC.isValidElement(n)?nC.cloneElement(n,{ref:u}):n:l?Yj.createPortal(n,l):l}));function A$(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function I$(e){return parseInt(window.getComputedStyle(e)["padding-right"],10)||0}function L$(e,t,n){var r=arguments.length>4?arguments[4]:void 0,i=[t,n].concat(_E(arguments.length>3&&void 0!==arguments[3]?arguments[3]:[])),o=["TEMPLATE","SCRIPT","STYLE"];[].forEach.call(e.children,(function(e){1===e.nodeType&&-1===i.indexOf(e)&&-1===o.indexOf(e.tagName)&&A$(e,r)}))}function z$(e,t){var n=-1;return e.some((function(e,r){return!!t(e)&&(n=r,!0)})),n}function F$(e,t){var n,r=[],i=[],o=e.container;if(!t.disableScrollLock){if(function(e){var t=zD(e);return t.body===e?FD(t).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(o)){var a=function(){var e=document.createElement("div");e.style.width="99px",e.style.height="99px",e.style.position="absolute",e.style.top="-9999px",e.style.overflow="scroll",document.body.appendChild(e);var t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t}();r.push({value:o.style.paddingRight,key:"padding-right",el:o}),o.style["padding-right"]="".concat(I$(o)+a,"px"),n=zD(o).querySelectorAll(".mui-fixed"),[].forEach.call(n,(function(e){i.push(e.style.paddingRight),e.style.paddingRight="".concat(I$(e)+a,"px")}))}var s=o.parentElement,l="HTML"===s.nodeName&&"scroll"===window.getComputedStyle(s)["overflow-y"]?s:o;r.push({value:l.style.overflow,key:"overflow",el:l}),l.style.overflow="hidden"}return function(){n&&[].forEach.call(n,(function(e,t){i[t]?e.style.paddingRight=i[t]:e.style.removeProperty("padding-right")})),r.forEach((function(e){var t=e.value,n=e.el,r=e.key;t?n.style.setProperty(r,t):n.style.removeProperty(r)}))}}var j$=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.modals=[],this.containers=[]}return HE(e,[{key:"add",value:function(e,t){var n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&A$(e.modalRef,!1);var r=function(e){var t=[];return[].forEach.call(e.children,(function(e){e.getAttribute&&"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);L$(t,e.mountNode,e.modalRef,r,!0);var i=z$(this.containers,(function(e){return e.container===t}));return-1!==i?(this.containers[i].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblingNodes:r}),n)}},{key:"mount",value:function(e,t){var n=z$(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];r.restore||(r.restore=F$(r,t))}},{key:"remove",value:function(e){var t=this.modals.indexOf(e);if(-1===t)return t;var n=z$(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];if(r.modals.splice(r.modals.indexOf(e),1),this.modals.splice(t,1),0===r.modals.length)r.restore&&r.restore(),e.modalRef&&A$(e.modalRef,!0),L$(r.container,e.mountNode,e.modalRef,r.hiddenSiblingNodes,!1),this.containers.splice(n,1);else{var i=r.modals[r.modals.length-1];i.modalRef&&A$(i.modalRef,!1)}return t}},{key:"isTopModal",value:function(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}]),e}();function $$(e){var t=e.children,n=e.disableAutoFocus,r=void 0!==n&&n,i=e.disableEnforceFocus,o=void 0!==i&&i,a=e.disableRestoreFocus,s=void 0!==a&&a,l=e.getDoc,c=e.isEnabled,u=e.open,d=nC.useRef(),f=nC.useRef(null),h=nC.useRef(null),p=nC.useRef(),m=nC.useRef(null),g=nC.useCallback((function(e){m.current=Yj.findDOMNode(e)}),[]),y=VD(t.ref,g),v=nC.useRef();return nC.useEffect((function(){v.current=u}),[u]),!v.current&&u&&"undefined"!=typeof window&&(p.current=l().activeElement),nC.useEffect((function(){if(u){var e=zD(m.current);r||!m.current||m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex",-1),m.current.focus());var t=function(){null!==m.current&&(e.hasFocus()&&!o&&c()&&!d.current?m.current&&!m.current.contains(e.activeElement)&&m.current.focus():d.current=!1)},n=function(t){!o&&c()&&9===t.keyCode&&e.activeElement===m.current&&(d.current=!0,t.shiftKey?h.current.focus():f.current.focus())};e.addEventListener("focus",t,!0),e.addEventListener("keydown",n,!0);var i=setInterval((function(){t()}),50);return function(){clearInterval(i),e.removeEventListener("focus",t,!0),e.removeEventListener("keydown",n,!0),s||(p.current&&p.current.focus&&p.current.focus(),p.current=null)}}}),[r,o,s,c,u]),nC.createElement(nC.Fragment,null,nC.createElement("div",{tabIndex:0,ref:f,"data-test":"sentinelStart"}),nC.cloneElement(t,{ref:y}),nC.createElement("div",{tabIndex:0,ref:h,"data-test":"sentinelEnd"}))}var H$={root:{zIndex:-1,position:"fixed",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},invisible:{backgroundColor:"transparent"}},V$=nC.forwardRef((function(e,t){var n=e.invisible,r=void 0!==n&&n,i=e.open,o=uE(e,["invisible","open"]);return i?nC.createElement("div",JC({"aria-hidden":!0,ref:t},o,{style:JC({},H$.root,r?H$.invisible:{},o.style)})):null}));var B$=new j$,W$=nC.forwardRef((function(e,t){var n=Nq(),r=FE({name:"MuiModal",props:JC({},e),theme:n}),i=r.BackdropComponent,o=void 0===i?V$:i,a=r.BackdropProps,s=r.children,l=r.closeAfterTransition,c=void 0!==l&&l,u=r.container,d=r.disableAutoFocus,f=void 0!==d&&d,h=r.disableBackdropClick,p=void 0!==h&&h,m=r.disableEnforceFocus,g=void 0!==m&&m,y=r.disableEscapeKeyDown,v=void 0!==y&&y,b=r.disablePortal,x=void 0!==b&&b,w=r.disableRestoreFocus,k=void 0!==w&&w,S=r.disableScrollLock,C=void 0!==S&&S,E=r.hideBackdrop,M=void 0!==E&&E,_=r.keepMounted,q=void 0!==_&&_,D=r.manager,R=void 0===D?B$:D,T=r.onBackdropClick,O=r.onClose,P=r.onEscapeKeyDown,N=r.onRendered,A=r.open,I=uE(r,["BackdropComponent","BackdropProps","children","closeAfterTransition","container","disableAutoFocus","disableBackdropClick","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onEscapeKeyDown","onRendered","open"]),L=nC.useState(!0),z=L[0],F=L[1],j=nC.useRef({}),$=nC.useRef(null),H=nC.useRef(null),V=VD(H,t),B=function(e){return!!e.children&&e.children.props.hasOwnProperty("in")}(r),W=function(){return zD($.current)},U=function(){return j.current.modalRef=H.current,j.current.mountNode=$.current,j.current},Y=function(){R.mount(U(),{disableScrollLock:C}),H.current.scrollTop=0},K=HD((function(){var e=function(e){return e="function"==typeof e?e():e,Yj.findDOMNode(e)}(u)||W().body;R.add(U(),e),H.current&&Y()})),G=nC.useCallback((function(){return R.isTopModal(U())}),[R]),X=HD((function(e){$.current=e,e&&(N&&N(),A&&G()?Y():A$(H.current,!0))})),J=nC.useCallback((function(){R.remove(U())}),[R]);if(nC.useEffect((function(){return function(){J()}}),[J]),nC.useEffect((function(){A?K():B&&c||J()}),[A,J,B,c,K]),!q&&!A&&(!B||z))return null;var Z=function(e){return{root:{position:"fixed",zIndex:e.zIndex.modal,right:0,bottom:0,top:0,left:0},hidden:{visibility:"hidden"}}}(n||{zIndex:NE}),Q={};return void 0===s.props.tabIndex&&(Q.tabIndex=s.props.tabIndex||"-1"),B&&(Q.onEnter=AD((function(){F(!1)}),s.props.onEnter),Q.onExited=AD((function(){F(!0),c&&J()}),s.props.onExited)),nC.createElement(N$,{ref:X,container:u,disablePortal:x},nC.createElement("div",JC({ref:V,onKeyDown:function(e){"Escape"===e.key&&G()&&(P&&P(e),v||(e.stopPropagation(),O&&O(e,"escapeKeyDown")))},role:"presentation"},I,{style:JC({},Z.root,!A&&z?Z.hidden:{},I.style)}),M?null:nC.createElement(o,JC({open:A,onClick:function(e){e.target===e.currentTarget&&(T&&T(e),!p&&O&&O(e,"backdropClick"))}},a)),nC.createElement($$,{disableEnforceFocus:g,disableAutoFocus:f,disableRestoreFocus:k,getDoc:W,isEnabled:G,open:A},nC.cloneElement(s,Q))))})),U$=nC.forwardRef((function(e,t){var n=e.absolute,r=void 0!==n&&n,i=e.classes,o=e.className,a=e.component,s=void 0===a?"hr":a,l=e.flexItem,c=void 0!==l&&l,u=e.light,d=void 0!==u&&u,f=e.orientation,h=void 0===f?"horizontal":f,p=e.role,m=void 0===p?"hr"!==s?"separator":void 0:p,g=e.variant,y=void 0===g?"fullWidth":g,v=uE(e,["absolute","classes","className","component","flexItem","light","orientation","role","variant"]);return nC.createElement(s,JC({className:LD(i.root,o,"fullWidth"!==y&&i[y],r&&i.absolute,c&&i.flexItem,d&&i.light,"vertical"===h&&i.vertical),role:m,ref:t},v))})),Y$=PD((function(e){return{root:{height:1,margin:0,border:"none",flexShrink:0,backgroundColor:e.palette.divider},absolute:{position:"absolute",bottom:0,left:0,width:"100%"},inset:{marginLeft:72},light:{backgroundColor:lE(e.palette.divider,.08)},middle:{marginLeft:e.spacing(2),marginRight:e.spacing(2)},vertical:{height:"100%",width:1},flexItem:{alignSelf:"stretch",height:"auto"}}}),{name:"MuiDivider"})(U$);function K$(e){return"scale(".concat(e,", ").concat(Math.pow(e,2),")")}var G$={entering:{opacity:1,transform:K$(1)},entered:{opacity:1,transform:"none"}},X$=nC.forwardRef((function(e,t){var n=e.children,r=e.disableStrictModeCompat,i=void 0!==r&&r,o=e.in,a=e.onEnter,s=e.onEntered,l=e.onEntering,c=e.onExit,u=e.onExited,d=e.onExiting,f=e.style,h=e.timeout,p=void 0===h?"auto":h,m=e.TransitionComponent,g=void 0===m?f$:m,y=uE(e,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),v=nC.useRef(),b=nC.useRef(),x=Nq()||TD,w=x.unstable_strictMode&&!i,k=nC.useRef(null),S=VD(n.ref,t),C=VD(w?k:void 0,S),E=function(e){return function(t,n){if(e){var r=qE(w?[k.current,t]:[t,n],2),i=r[0],o=r[1];void 0===o?e(i):e(i,o)}}},M=E(l),_=E((function(e,t){!function(e){e.scrollTop}(e);var n,r=b$({style:f,timeout:p},{mode:"enter"}),i=r.duration,o=r.delay;"auto"===p?(n=x.transitions.getAutoHeightDuration(e.clientHeight),b.current=n):n=i,e.style.transition=[x.transitions.create("opacity",{duration:n,delay:o}),x.transitions.create("transform",{duration:.666*n,delay:o})].join(","),a&&a(e,t)})),q=E(s),D=E(d),R=E((function(e){var t,n=b$({style:f,timeout:p},{mode:"exit"}),r=n.duration,i=n.delay;"auto"===p?(t=x.transitions.getAutoHeightDuration(e.clientHeight),b.current=t):t=r,e.style.transition=[x.transitions.create("opacity",{duration:t,delay:i}),x.transitions.create("transform",{duration:.666*t,delay:i||.333*t})].join(","),e.style.opacity="0",e.style.transform=K$(.75),c&&c(e)})),T=E(u);return nC.useEffect((function(){return function(){clearTimeout(v.current)}}),[]),nC.createElement(g,JC({appear:!0,in:o,nodeRef:w?k:void 0,onEnter:_,onEntered:q,onEntering:M,onExit:R,onExited:T,onExiting:D,addEndListener:function(e,t){var n=w?e:t;"auto"===p&&(v.current=setTimeout(n,b.current||0))},timeout:"auto"===p?null:p},y),(function(e,t){return nC.cloneElement(n,JC({style:JC({opacity:0,transform:K$(.75),visibility:"exited"!==e||o?void 0:"hidden"},G$[e],f,n.props.style),ref:C},t))}))}));X$.muiSupportAuto=!0;var J$=nC.createContext({}),Z$=nC.forwardRef((function(e,t){var n=e.children,r=e.classes,i=e.className,o=e.component,a=void 0===o?"ul":o,s=e.dense,l=void 0!==s&&s,c=e.disablePadding,u=void 0!==c&&c,d=e.subheader,f=uE(e,["children","classes","className","component","dense","disablePadding","subheader"]),h=nC.useMemo((function(){return{dense:l}}),[l]);return nC.createElement(J$.Provider,{value:h},nC.createElement(a,JC({className:LD(r.root,i,l&&r.dense,!u&&r.padding,d&&r.subheader),ref:t},f),d,n))})),Q$=PD({root:{listStyle:"none",margin:0,padding:0,position:"relative"},padding:{paddingTop:8,paddingBottom:8},dense:{},subheader:{paddingTop:0}},{name:"MuiList"})(Z$),eH="undefined"==typeof window?nC.useEffect:nC.useLayoutEffect,tH=nC.forwardRef((function(e,t){var n=e.alignItems,r=void 0===n?"center":n,i=e.autoFocus,o=void 0!==i&&i,a=e.button,s=void 0!==a&&a,l=e.children,c=e.classes,u=e.className,d=e.component,f=e.ContainerComponent,h=void 0===f?"li":f,p=e.ContainerProps,m=(p=void 0===p?{}:p).className,g=uE(p,["className"]),y=e.dense,v=void 0!==y&&y,b=e.disabled,x=void 0!==b&&b,w=e.disableGutters,k=void 0!==w&&w,S=e.divider,C=void 0!==S&&S,E=e.focusVisibleClassName,M=e.selected,_=void 0!==M&&M,q=uE(e,["alignItems","autoFocus","button","children","classes","className","component","ContainerComponent","ContainerProps","dense","disabled","disableGutters","divider","focusVisibleClassName","selected"]),D=nC.useContext(J$),R={dense:v||D.dense||!1,alignItems:r},T=nC.useRef(null);eH((function(){o&&T.current&&T.current.focus()}),[o]);var O,P,N=nC.Children.toArray(l),A=N.length&&(O=N[N.length-1],P=["ListItemSecondaryAction"],nC.isValidElement(O)&&-1!==P.indexOf(O.type.muiName)),I=nC.useCallback((function(e){T.current=Yj.findDOMNode(e)}),[]),L=VD(I,t),z=JC({className:LD(c.root,u,R.dense&&c.dense,!k&&c.gutters,C&&c.divider,x&&c.disabled,s&&c.button,"center"!==r&&c.alignItemsFlexStart,A&&c.secondaryAction,_&&c.selected),disabled:x},q),F=d||"li";return s&&(z.component=d||"div",z.focusVisibleClassName=LD(c.focusVisible,E),F=_$),A?(F=z.component||d?F:"div","li"===h&&("li"===F?F="div":"li"===z.component&&(z.component="div")),nC.createElement(J$.Provider,{value:R},nC.createElement(h,JC({className:LD(c.container,m),ref:L},g),nC.createElement(F,z,N),N.pop()))):nC.createElement(J$.Provider,{value:R},nC.createElement(F,JC({ref:L},z),N))})),nH=PD((function(e){return{root:{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,"&$focusVisible":{backgroundColor:e.palette.action.selected},"&$selected, &$selected:hover":{backgroundColor:e.palette.action.selected},"&$disabled":{opacity:.5}},container:{position:"relative"},focusVisible:{},dense:{paddingTop:4,paddingBottom:4},alignItemsFlexStart:{alignItems:"flex-start"},disabled:{},divider:{borderBottom:"1px solid ".concat(e.palette.divider),backgroundClip:"padding-box"},gutters:{paddingLeft:16,paddingRight:16},button:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:e.palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}},secondaryAction:{paddingRight:48},selected:{}}}),{name:"MuiListItem"})(tH),rH=nC.forwardRef((function(e,t){var n=e.classes,r=e.className,i=uE(e,["classes","className"]),o=nC.useContext(J$);return nC.createElement("div",JC({className:LD(n.root,r,"flex-start"===o.alignItems&&n.alignItemsFlexStart),ref:t},i))})),iH=PD((function(e){return{root:{minWidth:56,color:e.palette.action.active,flexShrink:0,display:"inline-flex"},alignItemsFlexStart:{marginTop:8}}}),{name:"MuiListItemIcon"})(rH),oH=nC.forwardRef((function(e,t){var n=e.children,r=e.classes,i=e.className,o=e.disableTypography,a=void 0!==o&&o,s=e.inset,l=void 0!==s&&s,c=e.primary,u=e.primaryTypographyProps,d=e.secondary,f=e.secondaryTypographyProps,h=uE(e,["children","classes","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"]),p=nC.useContext(J$).dense,m=null!=c?c:n;null==m||m.type===R$||a||(m=nC.createElement(R$,JC({variant:p?"body2":"body1",className:r.primary,component:"span",display:"block"},u),m));var g=d;return null==g||g.type===R$||a||(g=nC.createElement(R$,JC({variant:"body2",className:r.secondary,color:"textSecondary",display:"block"},f),g)),nC.createElement("div",JC({className:LD(r.root,i,p&&r.dense,l&&r.inset,m&&g&&r.multiline),ref:t},h),m,g)})),aH=PD({root:{flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},multiline:{marginTop:6,marginBottom:6},dense:{},inset:{paddingLeft:56},primary:{},secondary:{}},{name:"MuiListItemText"})(oH);function sH(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function lH(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function cH(e){return[e.horizontal,e.vertical].map((function(e){return"number"==typeof e?"".concat(e,"px"):e})).join(" ")}function uH(e){return"function"==typeof e?e():e}var dH=nC.forwardRef((function(e,t){var n=e.action,r=e.anchorEl,i=e.anchorOrigin,o=void 0===i?{vertical:"top",horizontal:"left"}:i,a=e.anchorPosition,s=e.anchorReference,l=void 0===s?"anchorEl":s,c=e.children,u=e.classes,d=e.className,f=e.container,h=e.elevation,p=void 0===h?8:h,m=e.getContentAnchorEl,g=e.marginThreshold,y=void 0===g?16:g,v=e.onEnter,b=e.onEntered,x=e.onEntering,w=e.onExit,k=e.onExited,S=e.onExiting,C=e.open,E=e.PaperProps,M=void 0===E?{}:E,_=e.transformOrigin,q=void 0===_?{vertical:"top",horizontal:"left"}:_,D=e.TransitionComponent,R=void 0===D?X$:D,T=e.transitionDuration,O=void 0===T?"auto":T,P=e.TransitionProps,N=void 0===P?{}:P,A=uE(e,["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","classes","className","container","elevation","getContentAnchorEl","marginThreshold","onEnter","onEntered","onEntering","onExit","onExited","onExiting","open","PaperProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"]),I=nC.useRef(),L=nC.useCallback((function(e){if("anchorPosition"===l)return a;var t=uH(r),n=(t&&1===t.nodeType?t:zD(I.current).body).getBoundingClientRect(),i=0===e?o.vertical:"center";return{top:n.top+sH(n,i),left:n.left+lH(n,o.horizontal)}}),[r,o.horizontal,o.vertical,a,l]),z=nC.useCallback((function(e){var t=0;if(m&&"anchorEl"===l){var n=m(e);if(n&&e.contains(n)){var r=function(e,t){for(var n=t,r=0;n&&n!==e;)r+=(n=n.parentElement).scrollTop;return r}(e,n);t=n.offsetTop+n.clientHeight/2-r||0}}return t}),[o.vertical,l,m]),F=nC.useCallback((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return{vertical:sH(e,q.vertical)+t,horizontal:lH(e,q.horizontal)}}),[q.horizontal,q.vertical]),j=nC.useCallback((function(e){var t=z(e),n={width:e.offsetWidth,height:e.offsetHeight},i=F(n,t);if("none"===l)return{top:null,left:null,transformOrigin:cH(i)};var o=L(t),a=o.top-i.vertical,s=o.left-i.horizontal,c=a+n.height,u=s+n.width,d=FD(uH(r)),f=d.innerHeight-y,h=d.innerWidth-y;if(a<y){var p=a-y;a-=p,i.vertical+=p}else if(c>f){var m=c-f;a-=m,i.vertical+=m}if(s<y){var g=s-y;s-=g,i.horizontal+=g}else if(u>h){var v=u-h;s-=v,i.horizontal+=v}return{top:"".concat(Math.round(a),"px"),left:"".concat(Math.round(s),"px"),transformOrigin:cH(i)}}),[r,l,L,z,F,y]),$=nC.useCallback((function(){var e=I.current;if(e){var t=j(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin}}),[j]),H=nC.useCallback((function(e){I.current=Yj.findDOMNode(e)}),[]);nC.useEffect((function(){C&&$()})),nC.useImperativeHandle(n,(function(){return C?{updatePosition:function(){$()}}:null}),[C,$]),nC.useEffect((function(){if(C){var e=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:166;function r(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];var a=this;clearTimeout(t),t=setTimeout((function(){e.apply(a,i)}),n)}return r.clear=function(){clearTimeout(t)},r}((function(){$()}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}}),[C,$]);var V=O;"auto"!==O||R.muiSupportAuto||(V=void 0);var B=f||(r?zD(uH(r)).body:void 0);return nC.createElement(W$,JC({container:B,open:C,ref:t,BackdropProps:{invisible:!0},className:LD(u.root,d)},A),nC.createElement(R,JC({appear:!0,in:C,onEnter:v,onEntered:b,onExit:w,onExited:k,onExiting:S,timeout:V},N,{onEntering:AD((function(e,t){x&&x(e,t),$()}),N.onEntering)}),nC.createElement(w$,JC({elevation:p,ref:H},M,{className:LD(u.paper,M.className)}),c)))})),fH=PD({root:{},paper:{position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}},{name:"MuiPopover"})(dH);function hH(e){return"large"===e?"20px":"small"===e?"12px":"16px"}function pH({d:e,size:t,style:n={},viewBox:r="0 0 16 16"}){const i={fontSize:hH(t),display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",...n};return rC.createElement("i",{style:i},rC.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:r,fill:"currentColor"},rC.createElement("path",{d:e})))}const mH="alternative-menu-item",gH=e=>{const{nested:t,className:n,...r}=e,i=(({nested:e,dir:t})=>Vq((n=>({root:{textAlign:"ltr"===t?"start":"end","&:focus":{boxShadow:"inset 0 0 0 2px #177FE6 !important"},...e&&"ltr"===t&&{paddingLeft:n.spacing(4)},...e&&"rtl"===t&&{paddingRight:n.spacing(4)}}}))))(e)();return rC.createElement(nH,MC({className:`${i.root} ${n}`},r))},yH=e=>{if("Tab"===e.key){const t=document.querySelectorAll(`.${mH}`);let n;e.shiftKey?null!=t&&t.length&&t[0]===e.target&&(n=t[t.length-1]):null!=t&&t.length&&t[t.length-1]===e.target&&([n]=t),n&&setTimeout((()=>{n.focus()}),50)}};function vH({title:e,selected:t,onClick:n,nested:r,icon:i,bold:o,dir:a}){const s=Tg.detectTextDirection(e);return rC.createElement(gH,{nested:r,role:"menuitem",button:!0,onClick:n,className:mH,onKeyDown:yH,dir:a,autoFocus:t},rC.createElement(aH,{primary:e,primaryTypographyProps:{dir:s,...o&&{style:{fontWeight:600}}}}),rC.createElement(iH,{style:{minWidth:16}},rC.createElement(pH,{d:t?cC:""})),i&&rC.createElement(iH,{style:{minWidth:16}},rC.createElement(pH,{d:i.d})))}vH.propTypes={title:RC.string.isRequired,selected:RC.bool,onClick:RC.func.isRequired,nested:RC.bool,icon:RC.shape({d:RC.string.isRequired}),bold:RC.bool,dir:RC.string.isRequired},vH.defaultProps={selected:!1,nested:!1,icon:void 0,bold:!1},gH.propTypes={nested:RC.bool,className:RC.string},gH.defaultProps={nested:!1,className:mH};const bH={bottom:{anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},top:{anchorOrigin:{vertical:"top",horizontal:"center"},transformOrigin:{vertical:"bottom",horizontal:"center"}},left:{anchorOrigin:{vertical:"center",horizontal:"left"},transformOrigin:{vertical:"center",horizontal:"right"}},right:{anchorOrigin:{vertical:"center",horizontal:"right"},transformOrigin:{vertical:"center",horizontal:"left"}}};function xH({chartId:e,alignTo:t,currentId:n,dir:r,dock:i,list:o,onClose:a,show:s,instruction:l}){const c=o.map(((t,i)=>{var s;return rC.createElement(rC.Fragment,{key:t.id},rC.createElement(vH,{icon:t.icon,title:t.title,bold:t.groupItem,selected:t.selected,onClick:()=>{t.onSelect&&t.onSelect(n),a(`${e}-${t.id}`)},dir:r}),(null===(s=t.children)||void 0===s?void 0:s.length)>0&&rC.createElement(Q$,{dense:!0,dir:r,component:"div",disablePadding:!0},t.children.map((e=>rC.createElement(vH,{key:e.id,nested:!0,title:e.title,selected:e.selected,onClick:()=>{e.onSelect(),a(t.id)},dir:r})))),i<o.length-1&&rC.createElement(Y$,{key:`divider-${t.id}`}))}));return rC.createElement(fH,MC({anchorEl:t,open:s,onClose:a},bH[i],{PaperProps:{style:{minWidth:"250px",maxHeight:"300px"}}}),rC.createElement(Q$,{dense:!0,disablePadding:!0,dir:r,"aria-label":l,component:"nav"},c))}xH.propTypes={chartId:RC.string.isRequired,alignTo:RC.any,currentId:RC.string.isRequired,dir:RC.string.isRequired,dock:RC.string.isRequired,list:RC.array,onClose:RC.func.isRequired,show:RC.bool.isRequired,instruction:RC.string.isRequired},xH.defaultProps={list:[],alignTo:null};const wH="title-button",kH="active-title-button",SH=OD((({children:e,...t})=>rC.createElement(O$,MC({size:"small",disableRipple:!0,disableTouchRipple:!0},t),e)))((()=>({"&:focus":{boxShadow:"inset 0 0 0 2px #177FE6 !important"}}))),CH=OD(O$)((()=>({borderRadius:"4px",width:"24px",height:"24px",minWidth:"22px",padding:0})));class EH extends rC.Component{constructor(e){super(e),this.state={open:!1,inSelection:e.selections&&e.selections.isActive(),hasPopoverOptions:!1,disableCyclicButton:!1},this.openPopover=this.openPopover.bind(this),this.closePopover=this.closePopover.bind(this),this.alignToRef=rC.createRef()}componentDidMount(){const{popover:e,selections:t,supportConditional:n,showGroupDimOptions:r}=this.props;t&&(this.onSelectionsActivated=()=>this.setState({inSelection:!0}),this.onSelectionsDeactivated=()=>this.setState({inSelection:!1}),t.addListener("activated",this.onSelectionsActivated),t.addListener("deactivated",this.onSelectionsDeactivated),t.addListener("canceled",this.onSelectionsDeactivated)),e&&(n||r)&&e.getPopoverOptions().then((e=>{this.setState({hasPopoverOptions:0!==e.length})}))}componentDidUpdate(e,t){const{popover:n,supportConditional:r,showGroupDimOptions:i}=this.props;n&&(r||i)&&n.getPopoverOptions().then((e=>{t.hasPopoverOptions!==(0!==e.length)&&this.setState({hasPopoverOptions:0!==e.length})}))}componentWillUnmount(){const{selections:e}=this.props;e&&(e.removeListener("activated",this.onSelectionsActivated),e.removeListener("deactivated",this.onSelectionsDeactivated),e.removeListener("canceled",this.onSelectionsDeactivated))}openPopover(e){if(!(this.state.closeTime&&Date.now()-this.state.closeTime<20)){if(e.target){const t=e.target.closest(`.${wH}`);t&&(t.focus(),t.classList.add(kH))}this.props.popover.getPopoverOptions().then((e=>{this.setState({open:!0,list:e})}))}}closePopover(e){if(this.setState({open:!1,closeTime:Date.now()}),"string"==typeof e)setTimeout((()=>{const t=document.querySelector(`.${wH}[data-id="${e}"]`);t&&t.focus()}),1e3);else{const e=document.querySelector(`.${kH}`);e&&(e.classList.remove(kH),setTimeout((()=>{e.focus()}),50))}}render(){const{chartId:e,titleData:t,popover:n,translator:r,disabled:i,isDimension:o,padding:a,minWidth:s,hasAlternative:l,supportConditional:c,showGroupDimOptions:u}=this.props,d={flex:"1 1 auto",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",fontWeight:"normal",lineHeight:"normal",...this.props.style},f=t.breadcrumbs.length,h=i||Boolean(!t.drillUp)||this.state.inSelection,p=t.breadcrumbs.map(((e,n)=>rC.createElement(SH,{style:{display:"flex",alignItems:"center",color:h&&"rgba(89, 89, 89, 0.8)",pointerEvents:h?"none":"auto",paddingTop:0,paddingBottom:0,height:"100%"},key:n,onClick:()=>h?void 0:t.drillUp(f-n),title:e},rC.createElement("span",{style:d},e),rC.createElement(pH,MC({},dC,{size:"small",style:{margin:"0 8px"}}))))),m=c||u?this.state.hasPopoverOptions:l,g=n&&!this.state.open?this.openPopover:this.closePopover,y=!n||i||this.state.inSelection,v={display:"flex",alignItems:"center",width:"100%",color:y&&"rgba(89, 89, 89, 0.8)",height:"100%",border:!o&&y&&"none",...a?{padding:a}:{paddingTop:0,paddingBottom:0},...s&&{minWidth:s}};this.state.open&&(v.background="rgba(0,0,0,0.08)");const b=()=>{this.setState({disableCyclicButton:!0})},x=Tg.detectTextDirection(t.text),w=rC.createElement(SH,{"aria-label":r.get(`Accessibility.${n&&m?"Alternative":"Normal"}.Instructions`,[t.text]),style:v,onClick:y?void 0:g,title:t.text,tabIndex:y?-1:0,onFocus:y?void 0:e=>{e.currentTarget.style.boxShadow="0px 0px 0px 2px #177FE6 inset",e.currentTarget.style.borderRadius="2px"},onBlur:y?void 0:e=>{e.currentTarget.style.boxShadow="none",e.currentTarget.style.borderRadius="0px"},onMouseDown:e=>{e.preventDefault()},className:`${wH} ${t.id}`,"data-id":`${e}-${t.id}`},t.locked&&rC.createElement(pH,MC({},lC,{size:"small",title:r.get("Tooltip.selections.locked")})),rC.createElement("span",{style:d,dir:x},t.text),n&&m&&rC.createElement(pH,MC({},uC,{size:"small",style:{margin:"0 8px"}})));return rC.createElement(rC.Fragment,null,t.icon&&t.icon.onClick&&rC.createElement(CH,{variant:"outlined",disabled:this.state.disableCyclicButton||this.state.inSelection,onClick:i?void 0:()=>t.icon.onClick({onError:b})},rC.createElement(pH,MC({},t.icon.path,{size:"small",title:r.get(t.icon.tooltip)}))),t.icon&&!t.icon.onClick&&rC.createElement(pH,MC({},t.icon.path,{size:"small",title:r.get(t.icon.tooltip),style:{margin:"0 4px 0 0"}})),p,rC.createElement("div",{ref:this.alignToRef,style:{overflow:"hidden",pointerEvents:m?"auto":"none",height:"100%"}},w),n&&m&&rC.createElement(xH,{chartId:e,dock:n.dock,dir:n.dir,currentId:t.id,alignTo:this.alignToRef.current,show:this.state.open,list:this.state.list,onClose:this.closePopover,changeTo:this.changeTo,instruction:r.get("Accessibility.Popover.Instructions")}))}}function MH(e){return{top:"bottom",bottom:"top",left:"right",right:"left"}[e]}function _H(e){function t(e){return!e.isDimension&&Mg.getValue(e,"hyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures.length")>0}return{renderer:"react",disableTriggers:!0,preferredSize:function(){const{height:n}=e.measureText({text:"M",fontSize:this.style.fontSize,fontFamily:this.style.fontFamily});return this.settings.settings.isDimension||t(this.settings.settings)?Math.max(28,n):Math.max(20,n)},render(){const{settings:{app:e,disabled:n,explicitItemInfos:r,hyperCube:i,hyperCubeDef:o,isDimension:a,minWidth:s,model:l,onChangeToAlternative:c,padding:u,rtl:d,selections:f,skipAttributeExpressions:h,translator:p,supportConditional:m=!1},layout:{dock:g}}=this.settings,y="top"!==g&&"bottom"!==g||!d?"ltr":"rtl",v=function(e,t){const n={pointerEvents:"auto",display:"flex",justifyContent:"center",alignItems:"center",height:"100%"};return"left"===e?(n.width=`${t.height}px`,n.height=`${t.width}px`,n.transform=`rotate(-90deg) translate(-${t.height}px, 0)`,n.transformOrigin="top left"):"right"===e&&(n.width=`${t.height}px`,n.height=`${t.width}px`,n.transform=`rotate(90deg) translate(0, -${t.width}px)`,n.transformOrigin="top left"),n}(g,this.rect),b=o&&o.qLayoutExclude&&o.qLayoutExclude.qHyperCubeDef,x=b&&b[a?"qDimensions":"qMeasures"]||[],w=r||i[a?"qDimensionInfo":"qMeasureInfo"],k=a?kC:CC,S=a?SC:EC,C=Boolean(l&&l.colorSupport&&l.modifiers),E=C&&((M=this.settings.settings).isDimension&&Mg.getValue(M,"hyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions.length")>0||t(this.settings.settings));var M;const _=w.map(((t,r)=>{var i;const o="number"==typeof t.explicitColumn?t.explicitColumn:r,y=S(t,o,l,e),v=r===w.length-1,b=Boolean(e)&&a&&"N"!==t.qGrouping,M=C||b?k({column:o,activeInfo:t,altList:x,app:e,dir:d?"rtl":"ltr",dock:MH(g),model:l,onChange:c,skipAttributeExpressions:h,translator:p,allowChangeOfAlternatives:C}):void 0;return rC.createElement(rC.Fragment,{key:t.cId},rC.createElement(EH,{chartId:null!==(i=null==l?void 0:l.id)&&void 0!==i?i:"",showGroupDimOptions:b,popover:M,titleData:y,model:l,translator:p,selections:f,disabled:n(),style:this.style,isDimension:a,padding:u,minWidth:s,hasAlternative:E,supportConditional:m}),!v&&rC.createElement("span",{style:{lineHeight:"normal",...this.style}},", "))}));return rC.createElement("div",{style:v,dir:y},_)}}}EH.propTypes={chartId:RC.string.isRequired,disabled:RC.bool.isRequired,padding:RC.string,minWidth:RC.string,titleData:RC.shape({breadcrumbs:RC.arrayOf(RC.string).isRequired,icon:RC.shape({path:RC.shape({d:RC.string.isRequired}),tooltip:RC.string.isRequired,onClick:RC.func}),index:RC.number.isRequired,locked:RC.bool.isRequired,text:RC.string.isRequired,popoverText:RC.string.isRequired,drillUp:RC.func,id:RC.string.isRequired}).isRequired,popover:RC.shape({dir:RC.string.isRequired,dock:RC.string.isRequired,getPopoverOptions:RC.func.isRequired}),translator:RC.shape({get:RC.func.isRequired}).isRequired,selections:RC.shape({isActive:RC.func,addListener:RC.func,removeListener:RC.func}),style:RC.shape({fontSize:RC.string,color:RC.string,fontFamily:RC.string}).isRequired,isDimension:RC.bool.isRequired,hasAlternative:RC.bool.isRequired,supportConditional:RC.bool.isRequired,showGroupDimOptions:RC.bool.isRequired},EH.defaultProps={popover:null,selections:null,padding:"",minWidth:""};const qH=AE({palette:{text:{primary:"rgba(89, 89, 89, 0.8)",secondary:"rgba(0, 0, 0, 0.55)",disabled:"rgba(0, 0, 0, 0.3)"},action:{disabled:"rgba(0, 0, 0, 0.3)"}},typography:{fontFamily:'"Source Sans Pro", "Arial", "sans-serif"',button:{textTransform:"initial",fontWeight:400}},shape:{borderRadius:2},shadows:["none","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)"],props:{MuiButtonBase:{disableRipple:!0}}});const DH=zE({productionPrefix:"q2cb0",disableGlobal:!0,seed:""});function RH(){function e({x:e,y:t,width:n,height:r,scaleRatio:i,margin:o}={}){const a={x:0,y:0,width:0,height:0,scaleRatio:{x:1,y:1},margin:{left:0,top:0}};return a.x=Number.isNaN(e)?a.x:e,a.y=Number.isNaN(t)?a.y:t,a.width=Number.isNaN(n)?a.width:n,a.height=Number.isNaN(r)?a.height:r,void 0!==i&&(a.scaleRatio.x=Number.isNaN(i.x)?a.scaleRatio.x:i.x,a.scaleRatio.y=Number.isNaN(i.y)?a.scaleRatio.y:i.y),void 0!==o&&(a.margin.left=Number.isNaN(o.left)?0:o.left,a.margin.top=Number.isNaN(o.top)?0:o.top),a}return function(t={}){const{createElement:n=document.createElement.bind(document)}=t;let r,i=e();const o={element:()=>r,root:()=>r,appendTo:e=>(r||(r=n("div"),r.style.position="absolute",r.style["-webkit-font-smoothing"]="antialiased",r.style["-moz-osx-font-smoothing"]="antialiased",r.style.pointerEvents="none"),e.appendChild(r),r),render(e){if(!r)return!1;const t=i.scaleRatio.x,n=i.scaleRatio.y;return r.style.left=`${Math.round(i.margin.left+i.x*t)}px`,r.style.top=`${Math.round(i.margin.top+i.y*n)}px`,r.style.width=`${Math.round(i.width)}px`,r.style.height=`${Math.round(i.height)}px`,r.style.transform=`scale(${t}, ${n})`,r.style.transformOrigin="top left",Kj.render(function(e,t){return rC.createElement(Fq,{generateClassName:t},rC.createElement(RD,{theme:qH},e))}(e,DH),r),!0},itemsAt:()=>[],findShapes:()=>[],clear:()=>(r&&Kj.unmountComponentAtNode(r),o),destroy(){r&&r.parentElement&&(Kj.unmountComponentAtNode(r),r.parentElement.removeChild(r)),r=null},size:t=>(t&&(i=e(t)),i)};return o}}const TH={black:"#000",white:"#fff"},OH="#e57373",PH="#ef5350",NH="#f44336",AH="#d32f2f",IH="#c62828",LH="#f3e5f5",zH="#ce93d8",FH="#ba68c8",jH="#ab47bc",$H="#9c27b0",HH="#7b1fa2",VH="#e3f2fd",BH="#90caf9",WH="#42a5f5",UH="#1976d2",YH="#1565c0",KH="#4fc3f7",GH="#29b6f6",XH="#03a9f4",JH="#0288d1",ZH="#01579b",QH="#81c784",eV="#66bb6a",tV="#4caf50",nV="#388e3c",rV="#2e7d32",iV="#1b5e20",oV="#ffb74d",aV="#ffa726",sV="#ff9800",lV="#f57c00",cV="#e65100",uV={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"};function dV(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;e<arguments.length;e+=1)t+="&args[]="+encodeURIComponent(arguments[e]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}var fV=Object.freeze({__proto__:null,default:dV}),hV="$$material";var pV=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)})),this.tags=[],this.ctr=0},e}(),mV="-ms-",gV="-moz-",yV="-webkit-",vV="comm",bV="rule",xV="decl",wV="@keyframes",kV=Math.abs,SV=String.fromCharCode,CV=Object.assign;function EV(e){return e.trim()}function MV(e,t,n){return e.replace(t,n)}function _V(e,t){return e.indexOf(t)}function qV(e,t){return 0|e.charCodeAt(t)}function DV(e,t,n){return e.slice(t,n)}function RV(e){return e.length}function TV(e){return e.length}function OV(e,t){return t.push(e),e}var PV=1,NV=1,AV=0,IV=0,LV=0,zV="";function FV(e,t,n,r,i,o,a){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:PV,column:NV,length:a,return:""}}function jV(e,t){return CV(FV("",null,null,"",null,null,0),e,{length:-e.length},t)}function $V(){return LV=IV>0?qV(zV,--IV):0,NV--,10===LV&&(NV=1,PV--),LV}function HV(){return LV=IV<AV?qV(zV,IV++):0,NV++,10===LV&&(NV=1,PV++),LV}function VV(){return qV(zV,IV)}function BV(){return IV}function WV(e,t){return DV(zV,e,t)}function UV(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function YV(e){return PV=NV=1,AV=RV(zV=e),IV=0,[]}function KV(e){return zV="",e}function GV(e){return EV(WV(IV-1,ZV(91===e?e+2:40===e?e+1:e)))}function XV(e){for(;(LV=VV())&&LV<33;)HV();return UV(e)>2||UV(LV)>3?"":" "}function JV(e,t){for(;--t&&HV()&&!(LV<48||LV>102||LV>57&&LV<65||LV>70&&LV<97););return WV(e,BV()+(t<6&&32==VV()&&32==HV()))}function ZV(e){for(;HV();)switch(LV){case e:return IV;case 34:case 39:34!==e&&39!==e&&ZV(LV);break;case 40:41===e&&ZV(e);break;case 92:HV()}return IV}function QV(e,t){for(;HV()&&e+LV!==57&&(e+LV!==84||47!==VV()););return"/*"+WV(t,IV-1)+"*"+SV(47===e?e:HV())}function eB(e){for(;!UV(VV());)HV();return WV(e,IV)}function tB(e){return KV(nB("",null,null,null,[""],e=YV(e),0,[0],e))}function nB(e,t,n,r,i,o,a,s,l){for(var c=0,u=0,d=a,f=0,h=0,p=0,m=1,g=1,y=1,v=0,b="",x=i,w=o,k=r,S=b;g;)switch(p=v,v=HV()){case 40:if(108!=p&&58==qV(S,d-1)){-1!=_V(S+=MV(GV(v),"&","&\f"),"&\f")&&(y=-1);break}case 34:case 39:case 91:S+=GV(v);break;case 9:case 10:case 13:case 32:S+=XV(p);break;case 92:S+=JV(BV()-1,7);continue;case 47:switch(VV()){case 42:case 47:OV(iB(QV(HV(),BV()),t,n),l);break;default:S+="/"}break;case 123*m:s[c++]=RV(S)*y;case 125*m:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+u:-1==y&&(S=MV(S,/\f/g,"")),h>0&&RV(S)-d&&OV(h>32?oB(S+";",r,n,d-1):oB(MV(S," ","")+";",r,n,d-2),l);break;case 59:S+=";";default:if(OV(k=rB(S,t,n,c,u,i,s,b,x=[],w=[],d),o),123===v)if(0===u)nB(S,t,k,k,x,o,d,s,w);else switch(99===f&&110===qV(S,3)?100:f){case 100:case 108:case 109:case 115:nB(e,k,k,r&&OV(rB(e,k,k,0,0,i,s,b,i,x=[],d),w),i,w,d,s,r?x:w);break;default:nB(S,k,k,k,[""],w,0,s,w)}}c=u=h=0,m=y=1,b=S="",d=a;break;case 58:d=1+RV(S),h=p;default:if(m<1)if(123==v)--m;else if(125==v&&0==m++&&125==$V())continue;switch(S+=SV(v),v*m){case 38:y=u>0?1:(S+="\f",-1);break;case 44:s[c++]=(RV(S)-1)*y,y=1;break;case 64:45===VV()&&(S+=GV(HV())),f=VV(),u=d=RV(b=S+=eB(BV())),v++;break;case 45:45===p&&2==RV(S)&&(m=0)}}return o}function rB(e,t,n,r,i,o,a,s,l,c,u){for(var d=i-1,f=0===i?o:[""],h=TV(f),p=0,m=0,g=0;p<r;++p)for(var y=0,v=DV(e,d+1,d=kV(m=a[p])),b=e;y<h;++y)(b=EV(m>0?f[y]+" "+v:MV(v,/&\f/g,f[y])))&&(l[g++]=b);return FV(e,t,n,0===i?bV:s,l,c,u)}function iB(e,t,n){return FV(e,t,n,vV,SV(LV),DV(e,2,-2),0)}function oB(e,t,n,r){return FV(e,t,n,xV,DV(e,0,r),DV(e,r+1,-1),r)}function aB(e,t){for(var n="",r=TV(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function sB(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case xV:return e.return=e.return||e.value;case vV:return"";case wV:return e.return=e.value+"{"+aB(e.children,r)+"}";case bV:e.value=e.props.join(",")}return RV(n=aB(e.children,r))?e.return=e.value+"{"+n+"}":""}function lB(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var cB=function(e,t,n){for(var r=0,i=0;r=i,i=VV(),38===r&&12===i&&(t[n]=1),!UV(i);)HV();return WV(e,IV)},uB=function(e,t){return KV(function(e,t){var n=-1,r=44;do{switch(UV(r)){case 0:38===r&&12===VV()&&(t[n]=1),e[n]+=cB(IV-1,t,n);break;case 2:e[n]+=GV(r);break;case 4:if(44===r){e[++n]=58===VV()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=SV(r)}}while(r=HV());return e}(YV(e),t))},dB=new WeakMap,fB=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||dB.get(n))&&!r){dB.set(e,!0);for(var i=[],o=uB(t,i),a=n.props,s=0,l=0;s<o.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=i[s]?o[s].replace(/&\f/g,a[c]):a[c]+" "+o[s]}}},hB=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function pB(e,t){switch(function(e,t){return 45^qV(e,0)?(((t<<2^qV(e,0))<<2^qV(e,1))<<2^qV(e,2))<<2^qV(e,3):0}(e,t)){case 5103:return yV+"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 yV+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return yV+e+gV+e+mV+e+e;case 6828:case 4268:return yV+e+mV+e+e;case 6165:return yV+e+mV+"flex-"+e+e;case 5187:return yV+e+MV(e,/(\w+).+(:[^]+)/,yV+"box-$1$2"+mV+"flex-$1$2")+e;case 5443:return yV+e+mV+"flex-item-"+MV(e,/flex-|-self/,"")+e;case 4675:return yV+e+mV+"flex-line-pack"+MV(e,/align-content|flex-|-self/,"")+e;case 5548:return yV+e+mV+MV(e,"shrink","negative")+e;case 5292:return yV+e+mV+MV(e,"basis","preferred-size")+e;case 6060:return yV+"box-"+MV(e,"-grow","")+yV+e+mV+MV(e,"grow","positive")+e;case 4554:return yV+MV(e,/([^-])(transform)/g,"$1"+yV+"$2")+e;case 6187:return MV(MV(MV(e,/(zoom-|grab)/,yV+"$1"),/(image-set)/,yV+"$1"),e,"")+e;case 5495:case 3959:return MV(e,/(image-set\([^]*)/,yV+"$1$`$1");case 4968:return MV(MV(e,/(.+:)(flex-)?(.*)/,yV+"box-pack:$3"+mV+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+yV+e+e;case 4095:case 3583:case 4068:case 2532:return MV(e,/(.+)-inline(.+)/,yV+"$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(RV(e)-1-t>6)switch(qV(e,t+1)){case 109:if(45!==qV(e,t+4))break;case 102:return MV(e,/(.+:)(.+)-([^]+)/,"$1"+yV+"$2-$3$1"+gV+(108==qV(e,t+3)?"$3":"$2-$3"))+e;case 115:return~_V(e,"stretch")?pB(MV(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==qV(e,t+1))break;case 6444:switch(qV(e,RV(e)-3-(~_V(e,"!important")&&10))){case 107:return MV(e,":",":"+yV)+e;case 101:return MV(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+yV+(45===qV(e,14)?"inline-":"")+"box$3$1"+yV+"$2$3$1"+mV+"$2box$3")+e}break;case 5936:switch(qV(e,t+11)){case 114:return yV+e+mV+MV(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return yV+e+mV+MV(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return yV+e+mV+MV(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return yV+e+mV+e+e}return e}var mB=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case xV:e.return=pB(e.value,e.length);break;case wV:return aB([jV(e,{value:MV(e.value,"@","@"+yV)})],r);case bV:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return aB([jV(e,{props:[MV(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return aB([jV(e,{props:[MV(t,/:(plac\w+)/,":"+yV+"input-$1")]}),jV(e,{props:[MV(t,/:(plac\w+)/,":-moz-$1")]}),jV(e,{props:[MV(t,/:(plac\w+)/,mV+"input-$1")]})],r)}return""}))}}],gB=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r,i,o=e.stylisPlugins||mB,a={},s=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;s.push(e)}));var l,c,u=[sB,(c=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&c(e)})],d=function(e){var t=TV(e);return function(n,r,i,o){for(var a="",s=0;s<t;s++)a+=e[s](n,r,i,o)||"";return a}}([fB,hB].concat(o,u));i=function(e,t,n,r){l=n,function(e){aB(tB(e),d)}(e?e+"{"+t.styles+"}":t.styles),r&&(f.inserted[t.name]=!0)};var f={key:t,sheet:new pV({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:i};return f.sheet.hydrate(s),f};function yB(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")})),r}var vB=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},bB=function(e,t,n){vB(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var i=t;do{e.insert(t===i?"."+r:"",i,e.sheet,!0),i=i.next}while(void 0!==i)}};var xB={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,scale: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},wB=/[A-Z]|^ms/g,kB=/_EMO_([^_]+?)_([^]*?)_EMO_/g,SB=function(e){return 45===e.charCodeAt(1)},CB=function(e){return null!=e&&"boolean"!=typeof e},EB=lB((function(e){return SB(e)?e:e.replace(wB,"-$&").toLowerCase()})),MB=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(kB,(function(e,t,n){return qB={name:t,styles:n,next:qB},t}))}return 1===xB[e]||SB(e)||"number"!=typeof t||0===t?t:t+"px"};function _B(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var i=n;if(1===i.anim)return qB={name:i.name,styles:i.styles,next:qB},i.name;var o=n;if(void 0!==o.styles){var a=o.next;if(void 0!==a)for(;void 0!==a;)qB={name:a.name,styles:a.styles,next:qB},a=a.next;return o.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=_B(e,t,n[i])+";";else for(var o in n){var a=n[o];if("object"!=typeof a){var s=a;null!=t&&void 0!==t[s]?r+=o+"{"+t[s]+"}":CB(s)&&(r+=EB(o)+":"+MB(o,s)+";")}else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var l=_B(e,t,a);switch(o){case"animation":case"animationName":r+=EB(o)+":"+l+";";break;default:r+=o+"{"+l+"}"}}else for(var c=0;c<a.length;c++)CB(a[c])&&(r+=EB(o)+":"+MB(o,a[c])+";")}return r}(e,t,n);case"function":if(void 0!==e){var s=qB,l=n(e);return qB=s,_B(e,t,l)}}var c=n;if(null==t)return c;var u=t[c];return void 0!==u?u:c}var qB,DB=/label:\s*([^\s;{]+)\s*(;|$)/g;function RB(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,i="";qB=void 0;var o=e[0];null==o||void 0===o.raw?(r=!1,i+=_B(n,t,o)):i+=o[0];for(var a=1;a<e.length;a++){if(i+=_B(n,t,e[a]),r)i+=o[a]}DB.lastIndex=0;for(var s,l="";null!==(s=DB.exec(i));)l+="-"+s[1];var c=function(e){for(var t,n=0,r=0,i=e.length;i>=4;++r,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(i)+l;return{name:c,styles:i,next:qB}}var TB,OB,PB=!!iC.useInsertionEffect&&iC.useInsertionEffect,NB=PB||function(e){return e()},AB=PB||nC.useLayoutEffect,IB=nC.createContext("undefined"!=typeof HTMLElement?gB({key:"css"}):null),LB=IB.Provider,zB=function(e){return nC.forwardRef((function(t,n){var r=nC.useContext(IB);return e(t,r,n)}))},FB=nC.createContext({}),jB={}.hasOwnProperty,$B="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",HB=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return vB(t,n,r),NB((function(){return bB(t,n,r)})),null},VB=zB((function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var i=e[$B],o=[r],a="";"string"==typeof e.className?a=yB(t.registered,o,e.className):null!=e.className&&(a=e.className+" ");var s=RB(o,void 0,nC.useContext(FB));a+=t.key+"-"+s.name;var l={};for(var c in e)jB.call(e,c)&&"css"!==c&&c!==$B&&(l[c]=e[c]);return l.className=a,n&&(l.ref=n),nC.createElement(nC.Fragment,null,nC.createElement(HB,{cache:t,serialized:s,isStringTag:"string"==typeof i}),nC.createElement(i,l))})),BB=VB,WB=function(e,t){var n=arguments;if(null==t||!jB.call(t,"css"))return nC.createElement.apply(void 0,n);var r=n.length,i=new Array(r);i[0]=BB,i[1]=function(e,t){var n={};for(var r in t)jB.call(t,r)&&(n[r]=t[r]);return n[$B]=e,n}(e,t);for(var o=2;o<r;o++)i[o]=n[o];return nC.createElement.apply(null,i)};TB=WB||(WB={}),OB||(OB=TB.JSX||(TB.JSX={}));var UB=zB((function(e,t){var n=RB([e.styles],void 0,nC.useContext(FB)),r=nC.useRef();return AB((function(){var e=t.key+"-global",i=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),o=!1,a=document.querySelector('style[data-emotion="'+e+" "+n.name+'"]');return t.sheet.tags.length&&(i.before=t.sheet.tags[0]),null!==a&&(o=!0,a.setAttribute("data-emotion",e),i.hydrate([a])),r.current=[i,o],function(){i.flush()}}),[t]),AB((function(){var e=r.current,i=e[0];if(e[1])e[1]=!1;else{if(void 0!==n.next&&bB(t,n.next,!0),i.tags.length){var o=i.tags[i.tags.length-1].nextElementSibling;i.before=o,i.flush()}t.insert("",n,i,!1)}}),[t,n.name]),null}));function YB(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return RB(t)}function KB(){var e=YB.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_"}}}var GB=/^((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|fetchpriority|fetchPriority|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)-.*))$/,XB=lB((function(e){return GB.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),JB=function(e){return"theme"!==e},ZB=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?XB:JB},QB=function(e,t,n){var r;if(t){var i=t.shouldForwardProp;r=e.__emotion_forwardProp&&i?function(t){return e.__emotion_forwardProp(t)&&i(t)}:i}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},eW=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return vB(t,n,r),NB((function(){return bB(t,n,r)})),null},tW=function e(t,n){var r,i,o=t.__emotion_real===t,a=o&&t.__emotion_base||t;void 0!==n&&(r=n.label,i=n.target);var s=QB(t,n,o),l=s||ZB(a),c=!l("as");return function(){var u=arguments,d=o&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&d.push("label:"+r+";"),null==u[0]||void 0===u[0].raw)d.push.apply(d,u);else{var f=u[0];d.push(f[0]);for(var h=u.length,p=1;p<h;p++)d.push(u[p],f[p])}var m=zB((function(e,t,n){var r=c&&e.as||a,o="",u=[],f=e;if(null==e.theme){for(var h in f={},e)f[h]=e[h];f.theme=nC.useContext(FB)}"string"==typeof e.className?o=yB(t.registered,u,e.className):null!=e.className&&(o=e.className+" ");var p=RB(d.concat(u),t.registered,f);o+=t.key+"-"+p.name,void 0!==i&&(o+=" "+i);var m=c&&void 0===s?ZB(r):l,g={};for(var y in e)c&&"as"===y||m(y)&&(g[y]=e[y]);return g.className=o,n&&(g.ref=n),nC.createElement(nC.Fragment,null,nC.createElement(eW,{cache:t,serialized:p,isStringTag:"string"==typeof r}),nC.createElement(r,g))}));return m.displayName=void 0!==r?r:"Styled("+("string"==typeof a?a:a.displayName||a.name||"Component")+")",m.defaultProps=t.defaultProps,m.__emotion_real=m,m.__emotion_base=a,m.__emotion_styles=d,m.__emotion_forwardProp=s,Object.defineProperty(m,"toString",{value:function(){return"."+i}}),m.withComponent=function(t,r){return e(t,JC({},n,r,{shouldForwardProp:QB(m,r,!0)})).apply(void 0,d)},m}}.bind(null);["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){tW[e]=tW(e)}));var nW={exports:{}},rW={},iW=nC,oW=Symbol.for("react.element"),aW=Symbol.for("react.fragment"),sW=Object.prototype.hasOwnProperty,lW=iW.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,cW={key:!0,ref:!0,__self:!0,__source:!0};function uW(e,t,n){var r,i={},o=null,a=null;for(r in void 0!==n&&(o=""+n),void 0!==t.key&&(o=""+t.key),void 0!==t.ref&&(a=t.ref),t)sW.call(t,r)&&!cW.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:oW,type:e,key:o,ref:a,props:i,_owner:lW.current}}rW.Fragment=aW,rW.jsx=uW,rW.jsxs=uW,nW.exports=rW;var dW=nW.exports;let fW;"object"==typeof document&&(fW=gB({key:"css",prepend:!0}));var hW=Object.freeze({__proto__:null,GlobalStyles:function(e){const{styles:t,defaultTheme:n={}}=e,r="function"==typeof t?e=>{return t(null==(r=e)||0===Object.keys(r).length?n:e);var r}:t;return dW.jsx(UB,{styles:r})}
|
|
44
|
+
*/function JD(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var ZD=new Set,QD={};function eR(e,t){tR(e,t),tR(e+"Capture",t)}function tR(e,t){for(QD[e]=t,e=0;e<t.length;e++)ZD.add(t[e])}var nR=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),rR=Object.prototype.hasOwnProperty,iR=/^[: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]*$/,oR={},aR={};function sR(e,t,n,r,i,o,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var lR={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){lR[e]=new sR(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];lR[t]=new sR(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){lR[e]=new sR(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){lR[e]=new sR(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){lR[e]=new sR(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){lR[e]=new sR(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){lR[e]=new sR(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){lR[e]=new sR(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){lR[e]=new sR(e,5,!1,e.toLowerCase(),null,!1,!1)}));var cR=/[\-:]([a-z])/g;function uR(e){return e[1].toUpperCase()}function dR(e,t,n,r){var i=lR.hasOwnProperty(t)?lR[t]:null;(null!==i?0!==i.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,i,r)&&(n=null),r||null===i?function(e){return!!rR.call(aR,e)||!rR.call(oR,e)&&(iR.test(e)?aR[e]=!0:(oR[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(cR,uR);lR[t]=new sR(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(cR,uR);lR[t]=new sR(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(cR,uR);lR[t]=new sR(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){lR[e]=new sR(e,1,!1,e.toLowerCase(),null,!1,!1)})),lR.xlinkHref=new sR("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){lR[e]=new sR(e,1,!1,e.toLowerCase(),null,!0,!0)}));var fR=GD.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,hR=Symbol.for("react.element"),pR=Symbol.for("react.portal"),mR=Symbol.for("react.fragment"),gR=Symbol.for("react.strict_mode"),yR=Symbol.for("react.profiler"),vR=Symbol.for("react.provider"),bR=Symbol.for("react.context"),xR=Symbol.for("react.forward_ref"),wR=Symbol.for("react.suspense"),kR=Symbol.for("react.suspense_list"),SR=Symbol.for("react.memo"),CR=Symbol.for("react.lazy"),ER=Symbol.for("react.offscreen"),MR=Symbol.iterator;function _R(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=MR&&e[MR]||e["@@iterator"])?e:null}var qR,DR=Object.assign;function RR(e){if(void 0===qR)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);qR=t&&t[1]||""}return"\n"+qR+e}var TR=!1;function OR(e,t){if(!e||TR)return"";TR=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var i=t.stack.split("\n"),o=r.stack.split("\n"),a=i.length-1,s=o.length-1;1<=a&&0<=s&&i[a]!==o[s];)s--;for(;1<=a&&0<=s;a--,s--)if(i[a]!==o[s]){if(1!==a||1!==s)do{if(a--,0>--s||i[a]!==o[s]){var l="\n"+i[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=a&&0<=s);break}}}finally{TR=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?RR(e):""}function PR(e){switch(e.tag){case 5:return RR(e.type);case 16:return RR("Lazy");case 13:return RR("Suspense");case 19:return RR("SuspenseList");case 0:case 2:case 15:return e=OR(e.type,!1);case 11:return e=OR(e.type.render,!1);case 1:return e=OR(e.type,!0);default:return""}}function NR(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case mR:return"Fragment";case pR:return"Portal";case yR:return"Profiler";case gR:return"StrictMode";case wR:return"Suspense";case kR:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case bR:return(e.displayName||"Context")+".Consumer";case vR:return(e._context.displayName||"Context")+".Provider";case xR:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case SR:return null!==(t=e.displayName||null)?t:NR(e.type)||"Memo";case CR:t=e._payload,e=e._init;try{return NR(e(t))}catch(e){}}return null}function AR(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return NR(t);case 8:return t===gR?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function IR(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function LR(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function zR(e){e._valueTracker||(e._valueTracker=function(e){var t=LR(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function FR(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=LR(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function jR(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function $R(e,t){var n=t.checked;return DR({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function HR(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=IR(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function VR(e,t){null!=(t=t.checked)&&dR(e,"checked",t,!1)}function BR(e,t){VR(e,t);var n=IR(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?UR(e,t.type,n):t.hasOwnProperty("defaultValue")&&UR(e,t.type,IR(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function WR(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function UR(e,t,n){"number"===t&&jR(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var YR=Array.isArray;function KR(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+IR(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function GR(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(JD(91));return DR({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function XR(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(JD(92));if(YR(n)){if(1<n.length)throw Error(JD(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:IR(n)}}function JR(e,t){var n=IR(t.value),r=IR(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ZR(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function QR(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function eT(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?QR(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var tT,nT=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction((function(){return e(t,n)}))}:e}((function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((tT=tT||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=tT.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}));function rT(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var iT={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},oT=["Webkit","ms","Moz","O"];function aT(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||iT.hasOwnProperty(e)&&iT[e]?(""+t).trim():t+"px"}function sT(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=aT(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(iT).forEach((function(e){oT.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),iT[t]=iT[e]}))}));var lT=DR({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 cT(e,t){if(t){if(lT[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(JD(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(JD(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(JD(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(JD(62))}}function uT(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var dT=null;function fT(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var hT=null,pT=null,mT=null;function gT(e){if(e=cA(e)){if("function"!=typeof hT)throw Error(JD(280));var t=e.stateNode;t&&(t=dA(t),hT(e.stateNode,e.type,t))}}function yT(e){pT?mT?mT.push(e):mT=[e]:pT=e}function vT(){if(pT){var e=pT,t=mT;if(mT=pT=null,gT(e),t)for(e=0;e<t.length;e++)gT(t[e])}}function bT(e,t){return e(t)}function xT(){}var wT=!1;function kT(e,t,n){if(wT)return e(t,n);wT=!0;try{return bT(e,t,n)}finally{wT=!1,(null!==pT||null!==mT)&&(xT(),vT())}}function ST(e,t){var n=e.stateNode;if(null===n)return null;var r=dA(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(JD(231,t,typeof n));return n}var CT=!1;if(nR)try{var ET={};Object.defineProperty(ET,"passive",{get:function(){CT=!0}}),window.addEventListener("test",ET,ET),window.removeEventListener("test",ET,ET)}catch(Wh){CT=!1}function MT(e,t,n,r,i,o,a,s,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(e){this.onError(e)}}var _T=!1,qT=null,DT=!1,RT=null,TT={onError:function(e){_T=!0,qT=e}};function OT(e,t,n,r,i,o,a,s,l){_T=!1,qT=null,MT.apply(TT,arguments)}function PT(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function NT(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function AT(e){if(PT(e)!==e)throw Error(JD(188))}function IT(e){return e=function(e){var t=e.alternate;if(!t){if(null===(t=PT(e)))throw Error(JD(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var o=i.alternate;if(null===o){if(null!==(r=i.return)){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return AT(i),e;if(o===r)return AT(i),t;o=o.sibling}throw Error(JD(188))}if(n.return!==r.return)n=i,r=o;else{for(var a=!1,s=i.child;s;){if(s===n){a=!0,n=i,r=o;break}if(s===r){a=!0,r=i,n=o;break}s=s.sibling}if(!a){for(s=o.child;s;){if(s===n){a=!0,n=o,r=i;break}if(s===r){a=!0,r=o,n=i;break}s=s.sibling}if(!a)throw Error(JD(189))}}if(n.alternate!==r)throw Error(JD(190))}if(3!==n.tag)throw Error(JD(188));return n.stateNode.current===n?e:t}(e),null!==e?LT(e):null}function LT(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=LT(e);if(null!==t)return t;e=e.sibling}return null}var zT=XD.unstable_scheduleCallback,FT=XD.unstable_cancelCallback,jT=XD.unstable_shouldYield,$T=XD.unstable_requestPaint,HT=XD.unstable_now,VT=XD.unstable_getCurrentPriorityLevel,BT=XD.unstable_ImmediatePriority,WT=XD.unstable_UserBlockingPriority,UT=XD.unstable_NormalPriority,YT=XD.unstable_LowPriority,KT=XD.unstable_IdlePriority,GT=null,XT=null;var JT=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(ZT(e)/QT|0)|0},ZT=Math.log,QT=Math.LN2;var eO=64,tO=4194304;function nO(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function rO(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,a=268435455&n;if(0!==a){var s=a&~i;0!==s?r=nO(s):0!==(o&=a)&&(r=nO(o))}else 0!==(a=n&~i)?r=nO(a):0!==o&&(r=nO(o));if(0===r)return 0;if(0!==t&&t!==r&&!(t&i)&&((i=r&-r)>=(o=t&-t)||16===i&&4194240&o))return t;if(4&r&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)i=1<<(n=31-JT(t)),r|=e[n],t&=~i;return r}function iO(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function oO(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function aO(){var e=eO;return!(4194240&(eO<<=1))&&(eO=64),e}function sO(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function lO(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-JT(t)]=n}function cO(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-JT(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var uO=0;function dO(e){return 1<(e&=-e)?4<e?268435455&e?16:536870912:4:1}var fO,hO,pO,mO,gO,yO=!1,vO=[],bO=null,xO=null,wO=null,kO=new Map,SO=new Map,CO=[],EO="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function MO(e,t){switch(e){case"focusin":case"focusout":bO=null;break;case"dragenter":case"dragleave":xO=null;break;case"mouseover":case"mouseout":wO=null;break;case"pointerover":case"pointerout":kO.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":SO.delete(t.pointerId)}}function _O(e,t,n,r,i,o){return null===e||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},null!==t&&(null!==(t=cA(t))&&hO(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function qO(e){var t=lA(e.target);if(null!==t){var n=PT(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=NT(n)))return e.blockedOn=t,void gO(e.priority,(function(){pO(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function DO(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=jO(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=cA(n))&&hO(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);dT=r,n.target.dispatchEvent(r),dT=null,t.shift()}return!0}function RO(e,t,n){DO(e)&&n.delete(t)}function TO(){yO=!1,null!==bO&&DO(bO)&&(bO=null),null!==xO&&DO(xO)&&(xO=null),null!==wO&&DO(wO)&&(wO=null),kO.forEach(RO),SO.forEach(RO)}function OO(e,t){e.blockedOn===t&&(e.blockedOn=null,yO||(yO=!0,XD.unstable_scheduleCallback(XD.unstable_NormalPriority,TO)))}function PO(e){function t(t){return OO(t,e)}if(0<vO.length){OO(vO[0],e);for(var n=1;n<vO.length;n++){var r=vO[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==bO&&OO(bO,e),null!==xO&&OO(xO,e),null!==wO&&OO(wO,e),kO.forEach(t),SO.forEach(t),n=0;n<CO.length;n++)(r=CO[n]).blockedOn===e&&(r.blockedOn=null);for(;0<CO.length&&null===(n=CO[0]).blockedOn;)qO(n),null===n.blockedOn&&CO.shift()}var NO=fR.ReactCurrentBatchConfig,AO=!0;function IO(e,t,n,r){var i=uO,o=NO.transition;NO.transition=null;try{uO=1,zO(e,t,n,r)}finally{uO=i,NO.transition=o}}function LO(e,t,n,r){var i=uO,o=NO.transition;NO.transition=null;try{uO=4,zO(e,t,n,r)}finally{uO=i,NO.transition=o}}function zO(e,t,n,r){if(AO){var i=jO(e,t,n,r);if(null===i)NN(e,t,r,FO,n),MO(e,r);else if(function(e,t,n,r,i){switch(t){case"focusin":return bO=_O(bO,e,t,n,r,i),!0;case"dragenter":return xO=_O(xO,e,t,n,r,i),!0;case"mouseover":return wO=_O(wO,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return kO.set(o,_O(kO.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,SO.set(o,_O(SO.get(o)||null,e,t,n,r,i)),!0}return!1}(i,e,t,n,r))r.stopPropagation();else if(MO(e,r),4&t&&-1<EO.indexOf(e)){for(;null!==i;){var o=cA(i);if(null!==o&&fO(o),null===(o=jO(e,t,n,r))&&NN(e,t,r,FO,n),o===i)break;i=o}null!==i&&r.stopPropagation()}else NN(e,t,r,null,n)}}var FO=null;function jO(e,t,n,r){if(FO=null,null!==(e=lA(e=fT(r))))if(null===(t=PT(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=NT(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return FO=e,null}function $O(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(VT()){case BT:return 1;case WT:return 4;case UT:case YT:return 16;case KT:return 536870912;default:return 16}default:return 16}}var HO=null,VO=null,BO=null;function WO(){if(BO)return BO;var e,t,n=VO,r=n.length,i="value"in HO?HO.value:HO.textContent,o=i.length;for(e=0;e<r&&n[e]===i[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===i[o-t];t++);return BO=i.slice(e,1<t?1-t:void 0)}function UO(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function YO(){return!0}function KO(){return!1}function GO(e){function t(t,n,r,i,o){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(i):i[a]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?YO:KO,this.isPropagationStopped=KO,this}return DR(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=YO)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=YO)},persist:function(){},isPersistent:YO}),t}var XO,JO,ZO,QO={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},eP=GO(QO),tP=DR({},QO,{view:0,detail:0}),nP=GO(tP),rP=DR({},tP,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:mP,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ZO&&(ZO&&"mousemove"===e.type?(XO=e.screenX-ZO.screenX,JO=e.screenY-ZO.screenY):JO=XO=0,ZO=e),XO)},movementY:function(e){return"movementY"in e?e.movementY:JO}}),iP=GO(rP),oP=GO(DR({},rP,{dataTransfer:0})),aP=GO(DR({},tP,{relatedTarget:0})),sP=GO(DR({},QO,{animationName:0,elapsedTime:0,pseudoElement:0})),lP=DR({},QO,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),cP=GO(lP),uP=GO(DR({},QO,{data:0})),dP={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},fP={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},hP={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function pP(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=hP[e])&&!!t[e]}function mP(){return pP}var gP=DR({},tP,{key:function(e){if(e.key){var t=dP[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=UO(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?fP[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:mP,charCode:function(e){return"keypress"===e.type?UO(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?UO(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),yP=GO(gP),vP=GO(DR({},rP,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),bP=GO(DR({},tP,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:mP})),xP=GO(DR({},QO,{propertyName:0,elapsedTime:0,pseudoElement:0})),wP=DR({},rP,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),kP=GO(wP),SP=[9,13,27,32],CP=nR&&"CompositionEvent"in window,EP=null;nR&&"documentMode"in document&&(EP=document.documentMode);var MP=nR&&"TextEvent"in window&&!EP,_P=nR&&(!CP||EP&&8<EP&&11>=EP),qP=String.fromCharCode(32),DP=!1;function RP(e,t){switch(e){case"keyup":return-1!==SP.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function TP(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var OP=!1;var PP={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function NP(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!PP[e.type]:"textarea"===t}function AP(e,t,n,r){yT(r),0<(t=IN(t,"onChange")).length&&(n=new eP("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var IP=null,LP=null;function zP(e){qN(e,0)}function FP(e){if(FR(uA(e)))return e}function jP(e,t){if("change"===e)return t}var $P=!1;if(nR){var HP;if(nR){var VP="oninput"in document;if(!VP){var BP=document.createElement("div");BP.setAttribute("oninput","return;"),VP="function"==typeof BP.oninput}HP=VP}else HP=!1;$P=HP&&(!document.documentMode||9<document.documentMode)}function WP(){IP&&(IP.detachEvent("onpropertychange",UP),LP=IP=null)}function UP(e){if("value"===e.propertyName&&FP(LP)){var t=[];AP(t,LP,e,fT(e)),kT(zP,t)}}function YP(e,t,n){"focusin"===e?(WP(),LP=n,(IP=t).attachEvent("onpropertychange",UP)):"focusout"===e&&WP()}function KP(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return FP(LP)}function GP(e,t){if("click"===e)return FP(t)}function XP(e,t){if("input"===e||"change"===e)return FP(t)}var JP="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function ZP(e,t){if(JP(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!rR.call(t,i)||!JP(e[i],t[i]))return!1}return!0}function QP(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function eN(e,t){var n,r=QP(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=QP(r)}}function tN(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?tN(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function nN(){for(var e=window,t=jR();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=jR((e=t.contentWindow).document)}return t}function rN(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function iN(e){var t=nN(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&tN(n.ownerDocument.documentElement,n)){if(null!==r&&rN(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=void 0===r.end?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=eN(n,o);var a=eN(n,r);i&&a&&(1!==e.rangeCount||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var oN=nR&&"documentMode"in document&&11>=document.documentMode,aN=null,sN=null,lN=null,cN=!1;function uN(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;cN||null==aN||aN!==jR(r)||("selectionStart"in(r=aN)&&rN(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},lN&&ZP(lN,r)||(lN=r,0<(r=IN(sN,"onSelect")).length&&(t=new eP("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=aN)))}function dN(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var fN={animationend:dN("Animation","AnimationEnd"),animationiteration:dN("Animation","AnimationIteration"),animationstart:dN("Animation","AnimationStart"),transitionend:dN("Transition","TransitionEnd")},hN={},pN={};function mN(e){if(hN[e])return hN[e];if(!fN[e])return e;var t,n=fN[e];for(t in n)if(n.hasOwnProperty(t)&&t in pN)return hN[e]=n[t];return e}nR&&(pN=document.createElement("div").style,"AnimationEvent"in window||(delete fN.animationend.animation,delete fN.animationiteration.animation,delete fN.animationstart.animation),"TransitionEvent"in window||delete fN.transitionend.transition);var gN=mN("animationend"),yN=mN("animationiteration"),vN=mN("animationstart"),bN=mN("transitionend"),xN=new Map,wN="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function kN(e,t){xN.set(e,t),eR(t,[e])}for(var SN=0;SN<wN.length;SN++){var CN=wN[SN];kN(CN.toLowerCase(),"on"+(CN[0].toUpperCase()+CN.slice(1)))}kN(gN,"onAnimationEnd"),kN(yN,"onAnimationIteration"),kN(vN,"onAnimationStart"),kN("dblclick","onDoubleClick"),kN("focusin","onFocus"),kN("focusout","onBlur"),kN(bN,"onTransitionEnd"),tR("onMouseEnter",["mouseout","mouseover"]),tR("onMouseLeave",["mouseout","mouseover"]),tR("onPointerEnter",["pointerout","pointerover"]),tR("onPointerLeave",["pointerout","pointerover"]),eR("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),eR("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),eR("onBeforeInput",["compositionend","keypress","textInput","paste"]),eR("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),eR("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),eR("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var EN="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),MN=new Set("cancel close invalid load scroll toggle".split(" ").concat(EN));function _N(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,i,o,a,s,l){if(OT.apply(this,arguments),_T){if(!_T)throw Error(JD(198));var c=qT;_T=!1,qT=null,DT||(DT=!0,RT=c)}}(r,t,void 0,e),e.currentTarget=null}function qN(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,c=s.currentTarget;if(s=s.listener,l!==o&&i.isPropagationStopped())break e;_N(i,s,c),o=l}else for(a=0;a<r.length;a++){if(l=(s=r[a]).instance,c=s.currentTarget,s=s.listener,l!==o&&i.isPropagationStopped())break e;_N(i,s,c),o=l}}}if(DT)throw e=RT,DT=!1,RT=null,e}function DN(e,t){var n=t[oA];void 0===n&&(n=t[oA]=new Set);var r=e+"__bubble";n.has(r)||(PN(t,e,2,!1),n.add(r))}function RN(e,t,n){var r=0;t&&(r|=4),PN(n,e,r,t)}var TN="_reactListening"+Math.random().toString(36).slice(2);function ON(e){if(!e[TN]){e[TN]=!0,ZD.forEach((function(t){"selectionchange"!==t&&(MN.has(t)||RN(t,!1,e),RN(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[TN]||(t[TN]=!0,RN("selectionchange",!1,t))}}function PN(e,t,n,r){switch($O(t)){case 1:var i=IO;break;case 4:i=LO;break;default:i=zO}n=i.bind(null,t,n,e),i=void 0,!CT||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i=!0),r?void 0!==i?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):void 0!==i?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function NN(e,t,n,r,i){var o=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var s=r.stateNode.containerInfo;if(s===i||8===s.nodeType&&s.parentNode===i)break;if(4===a)for(a=r.return;null!==a;){var l=a.tag;if((3===l||4===l)&&((l=a.stateNode.containerInfo)===i||8===l.nodeType&&l.parentNode===i))return;a=a.return}for(;null!==s;){if(null===(a=lA(s)))return;if(5===(l=a.tag)||6===l){r=o=a;continue e}s=s.parentNode}}r=r.return}kT((function(){var r=o,i=fT(n),a=[];e:{var s=xN.get(e);if(void 0!==s){var l=eP,c=e;switch(e){case"keypress":if(0===UO(n))break e;case"keydown":case"keyup":l=yP;break;case"focusin":c="focus",l=aP;break;case"focusout":c="blur",l=aP;break;case"beforeblur":case"afterblur":l=aP;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=iP;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=oP;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=bP;break;case gN:case yN:case vN:l=sP;break;case bN:l=xP;break;case"scroll":l=nP;break;case"wheel":l=kP;break;case"copy":case"cut":case"paste":l=cP;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=vP}var u=!!(4&t),d=!u&&"scroll"===e,f=u?null!==s?s+"Capture":null:s;u=[];for(var h,p=r;null!==p;){var m=(h=p).stateNode;if(5===h.tag&&null!==m&&(h=m,null!==f&&(null!=(m=ST(p,f))&&u.push(AN(p,m,h)))),d)break;p=p.return}0<u.length&&(s=new l(s,c,null,n,i),a.push({event:s,listeners:u}))}}if(!(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===dT||!(c=n.relatedTarget||n.fromElement)||!lA(c)&&!c[iA])&&(l||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(c=(c=n.relatedTarget||n.toElement)?lA(c):null)&&(c!==(d=PT(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(l=null,c=r),l!==c)){if(u=iP,m="onMouseLeave",f="onMouseEnter",p="mouse","pointerout"!==e&&"pointerover"!==e||(u=vP,m="onPointerLeave",f="onPointerEnter",p="pointer"),d=null==l?s:uA(l),h=null==c?s:uA(c),(s=new u(m,p+"leave",l,n,i)).target=d,s.relatedTarget=h,m=null,lA(i)===r&&((u=new u(f,p+"enter",c,n,i)).target=h,u.relatedTarget=d,m=u),d=m,l&&c)e:{for(f=c,p=0,h=u=l;h;h=LN(h))p++;for(h=0,m=f;m;m=LN(m))h++;for(;0<p-h;)u=LN(u),p--;for(;0<h-p;)f=LN(f),h--;for(;p--;){if(u===f||null!==f&&u===f.alternate)break e;u=LN(u),f=LN(f)}u=null}else u=null;null!==l&&zN(a,s,l,u,!1),null!==c&&null!==d&&zN(a,d,c,u,!0)}if("select"===(l=(s=r?uA(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var g=jP;else if(NP(s))if($P)g=XP;else{g=KP;var y=YP}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(g=GP);switch(g&&(g=g(e,r))?AP(a,g,n,i):(y&&y(e,s,r),"focusout"===e&&(y=s._wrapperState)&&y.controlled&&"number"===s.type&&UR(s,"number",s.value)),y=r?uA(r):window,e){case"focusin":(NP(y)||"true"===y.contentEditable)&&(aN=y,sN=r,lN=null);break;case"focusout":lN=sN=aN=null;break;case"mousedown":cN=!0;break;case"contextmenu":case"mouseup":case"dragend":cN=!1,uN(a,n,i);break;case"selectionchange":if(oN)break;case"keydown":case"keyup":uN(a,n,i)}var v;if(CP)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else OP?RP(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(_P&&"ko"!==n.locale&&(OP||"onCompositionStart"!==b?"onCompositionEnd"===b&&OP&&(v=WO()):(VO="value"in(HO=i)?HO.value:HO.textContent,OP=!0)),0<(y=IN(r,b)).length&&(b=new uP(b,e,null,n,i),a.push({event:b,listeners:y}),v?b.data=v:null!==(v=TP(n))&&(b.data=v))),(v=MP?function(e,t){switch(e){case"compositionend":return TP(t);case"keypress":return 32!==t.which?null:(DP=!0,qP);case"textInput":return(e=t.data)===qP&&DP?null:e;default:return null}}(e,n):function(e,t){if(OP)return"compositionend"===e||!CP&&RP(e,t)?(e=WO(),BO=VO=HO=null,OP=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return _P&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=IN(r,"onBeforeInput")).length&&(i=new uP("onBeforeInput","beforeinput",null,n,i),a.push({event:i,listeners:r}),i.data=v))}qN(a,t)}))}function AN(e,t,n){return{instance:e,listener:t,currentTarget:n}}function IN(e,t){for(var n=t+"Capture",r=[];null!==e;){var i=e,o=i.stateNode;5===i.tag&&null!==o&&(i=o,null!=(o=ST(e,n))&&r.unshift(AN(e,o,i)),null!=(o=ST(e,t))&&r.push(AN(e,o,i))),e=e.return}return r}function LN(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function zN(e,t,n,r,i){for(var o=t._reactName,a=[];null!==n&&n!==r;){var s=n,l=s.alternate,c=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==c&&(s=c,i?null!=(l=ST(n,o))&&a.unshift(AN(n,l,s)):i||null!=(l=ST(n,o))&&a.push(AN(n,l,s))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var FN=/\r\n?/g,jN=/\u0000|\uFFFD/g;function $N(e){return("string"==typeof e?e:""+e).replace(FN,"\n").replace(jN,"")}function HN(e,t,n){if(t=$N(t),$N(e)!==t&&n)throw Error(JD(425))}function VN(){}var BN=null,WN=null;function UN(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var YN="function"==typeof setTimeout?setTimeout:void 0,KN="function"==typeof clearTimeout?clearTimeout:void 0,GN="function"==typeof Promise?Promise:void 0,XN="function"==typeof queueMicrotask?queueMicrotask:void 0!==GN?function(e){return GN.resolve(null).then(e).catch(JN)}:YN;function JN(e){setTimeout((function(){throw e}))}function ZN(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&8===i.nodeType)if("/$"===(n=i.data)){if(0===r)return e.removeChild(i),void PO(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=i}while(n);PO(t)}function QN(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function eA(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var tA=Math.random().toString(36).slice(2),nA="__reactFiber$"+tA,rA="__reactProps$"+tA,iA="__reactContainer$"+tA,oA="__reactEvents$"+tA,aA="__reactListeners$"+tA,sA="__reactHandles$"+tA;function lA(e){var t=e[nA];if(t)return t;for(var n=e.parentNode;n;){if(t=n[iA]||n[nA]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=eA(e);null!==e;){if(n=e[nA])return n;e=eA(e)}return t}n=(e=n).parentNode}return null}function cA(e){return!(e=e[nA]||e[iA])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function uA(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(JD(33))}function dA(e){return e[rA]||null}var fA=[],hA=-1;function pA(e){return{current:e}}function mA(e){0>hA||(e.current=fA[hA],fA[hA]=null,hA--)}function gA(e,t){hA++,fA[hA]=e.current,e.current=t}var yA={},vA=pA(yA),bA=pA(!1),xA=yA;function wA(e,t){var n=e.type.contextTypes;if(!n)return yA;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function kA(e){return null!=(e=e.childContextTypes)}function SA(){mA(bA),mA(vA)}function CA(e,t,n){if(vA.current!==yA)throw Error(JD(168));gA(vA,t),gA(bA,n)}function EA(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in t))throw Error(JD(108,AR(e)||"Unknown",i));return DR({},n,r)}function MA(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||yA,xA=vA.current,gA(vA,e),gA(bA,bA.current),!0}function _A(e,t,n){var r=e.stateNode;if(!r)throw Error(JD(169));n?(e=EA(e,t,xA),r.__reactInternalMemoizedMergedChildContext=e,mA(bA),mA(vA),gA(vA,e)):mA(bA),gA(bA,n)}var qA=null,DA=!1,RA=!1;function TA(e){null===qA?qA=[e]:qA.push(e)}function OA(){if(!RA&&null!==qA){RA=!0;var e=0,t=uO;try{var n=qA;for(uO=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}qA=null,DA=!1}catch(t){throw null!==qA&&(qA=qA.slice(e+1)),zT(BT,OA),t}finally{uO=t,RA=!1}}return null}var PA=[],NA=0,AA=null,IA=0,LA=[],zA=0,FA=null,jA=1,$A="";function HA(e,t){PA[NA++]=IA,PA[NA++]=AA,AA=e,IA=t}function VA(e,t,n){LA[zA++]=jA,LA[zA++]=$A,LA[zA++]=FA,FA=e;var r=jA;e=$A;var i=32-JT(r)-1;r&=~(1<<i),n+=1;var o=32-JT(t)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,jA=1<<32-JT(t)+i|n<<i|r,$A=o+e}else jA=1<<o|n<<i|r,$A=e}function BA(e){null!==e.return&&(HA(e,1),VA(e,1,0))}function WA(e){for(;e===AA;)AA=PA[--NA],PA[NA]=null,IA=PA[--NA],PA[NA]=null;for(;e===FA;)FA=LA[--zA],LA[zA]=null,$A=LA[--zA],LA[zA]=null,jA=LA[--zA],LA[zA]=null}var UA=null,YA=null,KA=!1,GA=null;function XA(e,t){var n=xj(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function JA(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,UA=e,YA=QN(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,UA=e,YA=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==FA?{id:jA,overflow:$A}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=xj(18,null,null,0)).stateNode=t,n.return=e,e.child=n,UA=e,YA=null,!0);default:return!1}}function ZA(e){return!(!(1&e.mode)||128&e.flags)}function QA(e){if(KA){var t=YA;if(t){var n=t;if(!JA(e,t)){if(ZA(e))throw Error(JD(418));t=QN(n.nextSibling);var r=UA;t&&JA(e,t)?XA(r,n):(e.flags=-4097&e.flags|2,KA=!1,UA=e)}}else{if(ZA(e))throw Error(JD(418));e.flags=-4097&e.flags|2,KA=!1,UA=e}}}function eI(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;UA=e}function tI(e){if(e!==UA)return!1;if(!KA)return eI(e),KA=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!UN(e.type,e.memoizedProps)),t&&(t=YA)){if(ZA(e))throw nI(),Error(JD(418));for(;t;)XA(e,t),t=QN(t.nextSibling)}if(eI(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(JD(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){YA=QN(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}YA=null}}else YA=UA?QN(e.stateNode.nextSibling):null;return!0}function nI(){for(var e=YA;e;)e=QN(e.nextSibling)}function rI(){YA=UA=null,KA=!1}function iI(e){null===GA?GA=[e]:GA.push(e)}var oI=fR.ReactCurrentBatchConfig;function aI(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(JD(309));var r=n.stateNode}if(!r)throw Error(JD(147,e));var i=r,o=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===o?t.ref:(t=function(e){var t=i.refs;null===e?delete t[o]:t[o]=e},t._stringRef=o,t)}if("string"!=typeof e)throw Error(JD(284));if(!n._owner)throw Error(JD(290,e))}return e}function sI(e,t){throw e=Object.prototype.toString.call(t),Error(JD(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function lI(e){return(0,e._init)(e._payload)}function cI(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=kj(e,t)).index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function a(t){return e&&null===t.alternate&&(t.flags|=2),t}function s(e,t,n,r){return null===t||6!==t.tag?((t=Mj(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function l(e,t,n,r){var o=n.type;return o===mR?u(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===o||"object"==typeof o&&null!==o&&o.$$typeof===CR&&lI(o)===t.type)?((r=i(t,n.props)).ref=aI(e,t,n),r.return=e,r):((r=Sj(n.type,n.key,n.props,null,e.mode,r)).ref=aI(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=_j(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function u(e,t,n,r,o){return null===t||7!==t.tag?((t=Cj(n,e.mode,r,o)).return=e,t):((t=i(t,n)).return=e,t)}function d(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Mj(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case hR:return(n=Sj(t.type,t.key,t.props,null,e.mode,n)).ref=aI(e,null,t),n.return=e,n;case pR:return(t=_j(t,e.mode,n)).return=e,t;case CR:return d(e,(0,t._init)(t._payload),n)}if(YR(t)||_R(t))return(t=Cj(t,e.mode,n,null)).return=e,t;sI(e,t)}return null}function f(e,t,n,r){var i=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==i?null:s(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case hR:return n.key===i?l(e,t,n,r):null;case pR:return n.key===i?c(e,t,n,r):null;case CR:return f(e,t,(i=n._init)(n._payload),r)}if(YR(n)||_R(n))return null!==i?null:u(e,t,n,r,null);sI(e,n)}return null}function h(e,t,n,r,i){if("string"==typeof r&&""!==r||"number"==typeof r)return s(t,e=e.get(n)||null,""+r,i);if("object"==typeof r&&null!==r){switch(r.$$typeof){case hR:return l(t,e=e.get(null===r.key?n:r.key)||null,r,i);case pR:return c(t,e=e.get(null===r.key?n:r.key)||null,r,i);case CR:return h(e,t,n,(0,r._init)(r._payload),i)}if(YR(r)||_R(r))return u(t,e=e.get(n)||null,r,i,null);sI(t,r)}return null}function p(i,a,s,l){for(var c=null,u=null,p=a,m=a=0,g=null;null!==p&&m<s.length;m++){p.index>m?(g=p,p=null):g=p.sibling;var y=f(i,p,s[m],l);if(null===y){null===p&&(p=g);break}e&&p&&null===y.alternate&&t(i,p),a=o(y,a,m),null===u?c=y:u.sibling=y,u=y,p=g}if(m===s.length)return n(i,p),KA&&HA(i,m),c;if(null===p){for(;m<s.length;m++)null!==(p=d(i,s[m],l))&&(a=o(p,a,m),null===u?c=p:u.sibling=p,u=p);return KA&&HA(i,m),c}for(p=r(i,p);m<s.length;m++)null!==(g=h(p,i,m,s[m],l))&&(e&&null!==g.alternate&&p.delete(null===g.key?m:g.key),a=o(g,a,m),null===u?c=g:u.sibling=g,u=g);return e&&p.forEach((function(e){return t(i,e)})),KA&&HA(i,m),c}function m(i,a,s,l){var c=_R(s);if("function"!=typeof c)throw Error(JD(150));if(null==(s=c.call(s)))throw Error(JD(151));for(var u=c=null,p=a,m=a=0,g=null,y=s.next();null!==p&&!y.done;m++,y=s.next()){p.index>m?(g=p,p=null):g=p.sibling;var v=f(i,p,y.value,l);if(null===v){null===p&&(p=g);break}e&&p&&null===v.alternate&&t(i,p),a=o(v,a,m),null===u?c=v:u.sibling=v,u=v,p=g}if(y.done)return n(i,p),KA&&HA(i,m),c;if(null===p){for(;!y.done;m++,y=s.next())null!==(y=d(i,y.value,l))&&(a=o(y,a,m),null===u?c=y:u.sibling=y,u=y);return KA&&HA(i,m),c}for(p=r(i,p);!y.done;m++,y=s.next())null!==(y=h(p,i,m,y.value,l))&&(e&&null!==y.alternate&&p.delete(null===y.key?m:y.key),a=o(y,a,m),null===u?c=y:u.sibling=y,u=y);return e&&p.forEach((function(e){return t(i,e)})),KA&&HA(i,m),c}return function e(r,o,s,l){if("object"==typeof s&&null!==s&&s.type===mR&&null===s.key&&(s=s.props.children),"object"==typeof s&&null!==s){switch(s.$$typeof){case hR:e:{for(var c=s.key,u=o;null!==u;){if(u.key===c){if((c=s.type)===mR){if(7===u.tag){n(r,u.sibling),(o=i(u,s.props.children)).return=r,r=o;break e}}else if(u.elementType===c||"object"==typeof c&&null!==c&&c.$$typeof===CR&&lI(c)===u.type){n(r,u.sibling),(o=i(u,s.props)).ref=aI(r,u,s),o.return=r,r=o;break e}n(r,u);break}t(r,u),u=u.sibling}s.type===mR?((o=Cj(s.props.children,r.mode,l,s.key)).return=r,r=o):((l=Sj(s.type,s.key,s.props,null,r.mode,l)).ref=aI(r,o,s),l.return=r,r=l)}return a(r);case pR:e:{for(u=s.key;null!==o;){if(o.key===u){if(4===o.tag&&o.stateNode.containerInfo===s.containerInfo&&o.stateNode.implementation===s.implementation){n(r,o.sibling),(o=i(o,s.children||[])).return=r,r=o;break e}n(r,o);break}t(r,o),o=o.sibling}(o=_j(s,r.mode,l)).return=r,r=o}return a(r);case CR:return e(r,o,(u=s._init)(s._payload),l)}if(YR(s))return p(r,o,s,l);if(_R(s))return m(r,o,s,l);sI(r,s)}return"string"==typeof s&&""!==s||"number"==typeof s?(s=""+s,null!==o&&6===o.tag?(n(r,o.sibling),(o=i(o,s)).return=r,r=o):(n(r,o),(o=Mj(s,r.mode,l)).return=r,r=o),a(r)):n(r,o)}}var uI=cI(!0),dI=cI(!1),fI=pA(null),hI=null,pI=null,mI=null;function gI(){mI=pI=hI=null}function yI(e){var t=fI.current;mA(fI),e._currentValue=t}function vI(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function bI(e,t){hI=e,mI=pI=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(!!(e.lanes&t)&&(lz=!0),e.firstContext=null)}function xI(e){var t=e._currentValue;if(mI!==e)if(e={context:e,memoizedValue:t,next:null},null===pI){if(null===hI)throw Error(JD(308));pI=e,hI.dependencies={lanes:0,firstContext:e}}else pI=pI.next=e;return t}var wI=null;function kI(e){null===wI?wI=[e]:wI.push(e)}function SI(e,t,n,r){var i=t.interleaved;return null===i?(n.next=n,kI(t)):(n.next=i.next,i.next=n),t.interleaved=n,CI(e,r)}function CI(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var EI=!1;function MI(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function _I(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 qI(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function DI(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&yF){var i=r.pending;return null===i?t.next=t:(t.next=i.next,i.next=t),r.pending=t,CI(e,n)}return null===(i=r.interleaved)?(t.next=t,kI(r)):(t.next=i.next,i.next=t),r.interleaved=t,CI(e,n)}function RI(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,cO(e,n)}}function TI(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var i=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===o?i=o=a:o=o.next=a,n=n.next}while(null!==n);null===o?i=o=t:o=o.next=t}else i=o=t;return n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function OI(e,t,n,r){var i=e.updateQueue;EI=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,s=i.shared.pending;if(null!==s){i.shared.pending=null;var l=s,c=l.next;l.next=null,null===a?o=c:a.next=c,a=l;var u=e.alternate;null!==u&&((s=(u=u.updateQueue).lastBaseUpdate)!==a&&(null===s?u.firstBaseUpdate=c:s.next=c,u.lastBaseUpdate=l))}if(null!==o){var d=i.baseState;for(a=0,u=c=l=null,s=o;;){var f=s.lane,h=s.eventTime;if((r&f)===f){null!==u&&(u=u.next={eventTime:h,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var p=e,m=s;switch(f=t,h=n,m.tag){case 1:if("function"==typeof(p=m.payload)){d=p.call(h,d,f);break e}d=p;break e;case 3:p.flags=-65537&p.flags|128;case 0:if(null==(f="function"==typeof(p=m.payload)?p.call(h,d,f):p))break e;d=DR({},d,f);break e;case 2:EI=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(f=i.effects)?i.effects=[s]:f.push(s))}else h={eventTime:h,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===u?(c=u=h,l=d):u=u.next=h,a|=f;if(null===(s=s.next)){if(null===(s=i.shared.pending))break;s=(f=s).next,f.next=null,i.lastBaseUpdate=f,i.shared.pending=null}}if(null===u&&(l=d),i.baseState=l,i.firstBaseUpdate=c,i.lastBaseUpdate=u,null!==(t=i.shared.interleaved)){i=t;do{a|=i.lane,i=i.next}while(i!==t)}else null===o&&(i.shared.lanes=0);EF|=a,e.lanes=a,e.memoizedState=d}}function PI(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(null!==i){if(r.callback=null,r=n,"function"!=typeof i)throw Error(JD(191,i));i.call(r)}}}var NI={},AI=pA(NI),II=pA(NI),LI=pA(NI);function zI(e){if(e===NI)throw Error(JD(174));return e}function FI(e,t){switch(gA(LI,t),gA(II,e),gA(AI,NI),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:eT(null,"");break;default:t=eT(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}mA(AI),gA(AI,t)}function jI(){mA(AI),mA(II),mA(LI)}function $I(e){zI(LI.current);var t=zI(AI.current),n=eT(t,e.type);t!==n&&(gA(II,e),gA(AI,n))}function HI(e){II.current===e&&(mA(AI),mA(II))}var VI=pA(0);function BI(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(128&t.flags)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var WI=[];function UI(){for(var e=0;e<WI.length;e++)WI[e]._workInProgressVersionPrimary=null;WI.length=0}var YI=fR.ReactCurrentDispatcher,KI=fR.ReactCurrentBatchConfig,GI=0,XI=null,JI=null,ZI=null,QI=!1,eL=!1,tL=0,nL=0;function rL(){throw Error(JD(321))}function iL(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!JP(e[n],t[n]))return!1;return!0}function oL(e,t,n,r,i,o){if(GI=o,XI=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,YI.current=null===e||null===e.memoizedState?HL:VL,e=n(r,i),eL){o=0;do{if(eL=!1,tL=0,25<=o)throw Error(JD(301));o+=1,ZI=JI=null,t.updateQueue=null,YI.current=BL,e=n(r,i)}while(eL)}if(YI.current=$L,t=null!==JI&&null!==JI.next,GI=0,ZI=JI=XI=null,QI=!1,t)throw Error(JD(300));return e}function aL(){var e=0!==tL;return tL=0,e}function sL(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ZI?XI.memoizedState=ZI=e:ZI=ZI.next=e,ZI}function lL(){if(null===JI){var e=XI.alternate;e=null!==e?e.memoizedState:null}else e=JI.next;var t=null===ZI?XI.memoizedState:ZI.next;if(null!==t)ZI=t,JI=e;else{if(null===e)throw Error(JD(310));e={memoizedState:(JI=e).memoizedState,baseState:JI.baseState,baseQueue:JI.baseQueue,queue:JI.queue,next:null},null===ZI?XI.memoizedState=ZI=e:ZI=ZI.next=e}return ZI}function cL(e,t){return"function"==typeof t?t(e):t}function uL(e){var t=lL(),n=t.queue;if(null===n)throw Error(JD(311));n.lastRenderedReducer=e;var r=JI,i=r.baseQueue,o=n.pending;if(null!==o){if(null!==i){var a=i.next;i.next=o.next,o.next=a}r.baseQueue=i=o,n.pending=null}if(null!==i){o=i.next,r=r.baseState;var s=a=null,l=null,c=o;do{var u=c.lane;if((GI&u)===u)null!==l&&(l=l.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var d={lane:u,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===l?(s=l=d,a=r):l=l.next=d,XI.lanes|=u,EF|=u}c=c.next}while(null!==c&&c!==o);null===l?a=r:l.next=s,JP(r,t.memoizedState)||(lz=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=l,n.lastRenderedState=r}if(null!==(e=n.interleaved)){i=e;do{o=i.lane,XI.lanes|=o,EF|=o,i=i.next}while(i!==e)}else null===i&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function dL(e){var t=lL(),n=t.queue;if(null===n)throw Error(JD(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(null!==i){n.pending=null;var a=i=i.next;do{o=e(o,a.action),a=a.next}while(a!==i);JP(o,t.memoizedState)||(lz=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function fL(){}function hL(e,t){var n=XI,r=lL(),i=t(),o=!JP(r.memoizedState,i);if(o&&(r.memoizedState=i,lz=!0),r=r.queue,EL(gL.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||null!==ZI&&1&ZI.memoizedState.tag){if(n.flags|=2048,xL(9,mL.bind(null,n,r,i,t),void 0,null),null===vF)throw Error(JD(349));30&GI||pL(n,t,i)}return i}function pL(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=XI.updateQueue)?(t={lastEffect:null,stores:null},XI.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function mL(e,t,n,r){t.value=n,t.getSnapshot=r,yL(t)&&vL(e)}function gL(e,t,n){return n((function(){yL(t)&&vL(e)}))}function yL(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!JP(e,n)}catch(e){return!0}}function vL(e){var t=CI(e,1);null!==t&&WF(t,e,1,-1)}function bL(e){var t=sL();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:cL,lastRenderedState:e},t.queue=e,e=e.dispatch=LL.bind(null,XI,e),[t.memoizedState,e]}function xL(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=XI.updateQueue)?(t={lastEffect:null,stores:null},XI.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function wL(){return lL().memoizedState}function kL(e,t,n,r){var i=sL();XI.flags|=e,i.memoizedState=xL(1|t,n,void 0,void 0===r?null:r)}function SL(e,t,n,r){var i=lL();r=void 0===r?null:r;var o=void 0;if(null!==JI){var a=JI.memoizedState;if(o=a.destroy,null!==r&&iL(r,a.deps))return void(i.memoizedState=xL(t,n,o,r))}XI.flags|=e,i.memoizedState=xL(1|t,n,o,r)}function CL(e,t){return kL(8390656,8,e,t)}function EL(e,t){return SL(2048,8,e,t)}function ML(e,t){return SL(4,2,e,t)}function _L(e,t){return SL(4,4,e,t)}function qL(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function DL(e,t,n){return n=null!=n?n.concat([e]):null,SL(4,4,qL.bind(null,t,e),n)}function RL(){}function TL(e,t){var n=lL();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&iL(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function OL(e,t){var n=lL();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&iL(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function PL(e,t,n){return 21&GI?(JP(n,t)||(n=aO(),XI.lanes|=n,EF|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,lz=!0),e.memoizedState=n)}function NL(e,t){var n=uO;uO=0!==n&&4>n?n:4,e(!0);var r=KI.transition;KI.transition={};try{e(!1),t()}finally{uO=n,KI.transition=r}}function AL(){return lL().memoizedState}function IL(e,t,n){var r=BF(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},zL(e))FL(t,n);else if(null!==(n=SI(e,t,n,r))){WF(n,e,r,VF()),jL(n,t,r)}}function LL(e,t,n){var r=BF(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(zL(e))FL(t,i);else{var o=e.alternate;if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=o(a,n);if(i.hasEagerState=!0,i.eagerState=s,JP(s,a)){var l=t.interleaved;return null===l?(i.next=i,kI(t)):(i.next=l.next,l.next=i),void(t.interleaved=i)}}catch(e){}null!==(n=SI(e,t,i,r))&&(WF(n,e,r,i=VF()),jL(n,t,r))}}function zL(e){var t=e.alternate;return e===XI||null!==t&&t===XI}function FL(e,t){eL=QI=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function jL(e,t,n){if(4194240&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,cO(e,n)}}var $L={readContext:xI,useCallback:rL,useContext:rL,useEffect:rL,useImperativeHandle:rL,useInsertionEffect:rL,useLayoutEffect:rL,useMemo:rL,useReducer:rL,useRef:rL,useState:rL,useDebugValue:rL,useDeferredValue:rL,useTransition:rL,useMutableSource:rL,useSyncExternalStore:rL,useId:rL,unstable_isNewReconciler:!1},HL={readContext:xI,useCallback:function(e,t){return sL().memoizedState=[e,void 0===t?null:t],e},useContext:xI,useEffect:CL,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,kL(4194308,4,qL.bind(null,t,e),n)},useLayoutEffect:function(e,t){return kL(4194308,4,e,t)},useInsertionEffect:function(e,t){return kL(4,2,e,t)},useMemo:function(e,t){var n=sL();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=sL();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=IL.bind(null,XI,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},sL().memoizedState=e},useState:bL,useDebugValue:RL,useDeferredValue:function(e){return sL().memoizedState=e},useTransition:function(){var e=bL(!1),t=e[0];return e=NL.bind(null,e[1]),sL().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=XI,i=sL();if(KA){if(void 0===n)throw Error(JD(407));n=n()}else{if(n=t(),null===vF)throw Error(JD(349));30&GI||pL(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,CL(gL.bind(null,r,o,e),[e]),r.flags|=2048,xL(9,mL.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=sL(),t=vF.identifierPrefix;if(KA){var n=$A;t=":"+t+"R"+(n=(jA&~(1<<32-JT(jA)-1)).toString(32)+n),0<(n=tL++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=nL++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},VL={readContext:xI,useCallback:TL,useContext:xI,useEffect:EL,useImperativeHandle:DL,useInsertionEffect:ML,useLayoutEffect:_L,useMemo:OL,useReducer:uL,useRef:wL,useState:function(){return uL(cL)},useDebugValue:RL,useDeferredValue:function(e){return PL(lL(),JI.memoizedState,e)},useTransition:function(){return[uL(cL)[0],lL().memoizedState]},useMutableSource:fL,useSyncExternalStore:hL,useId:AL,unstable_isNewReconciler:!1},BL={readContext:xI,useCallback:TL,useContext:xI,useEffect:EL,useImperativeHandle:DL,useInsertionEffect:ML,useLayoutEffect:_L,useMemo:OL,useReducer:dL,useRef:wL,useState:function(){return dL(cL)},useDebugValue:RL,useDeferredValue:function(e){var t=lL();return null===JI?t.memoizedState=e:PL(t,JI.memoizedState,e)},useTransition:function(){return[dL(cL)[0],lL().memoizedState]},useMutableSource:fL,useSyncExternalStore:hL,useId:AL,unstable_isNewReconciler:!1};function WL(e,t){if(e&&e.defaultProps){for(var n in t=DR({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function UL(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:DR({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var YL={isMounted:function(e){return!!(e=e._reactInternals)&&PT(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=VF(),i=BF(e),o=qI(r,i);o.payload=t,null!=n&&(o.callback=n),null!==(t=DI(e,o,i))&&(WF(t,e,i,r),RI(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=VF(),i=BF(e),o=qI(r,i);o.tag=1,o.payload=t,null!=n&&(o.callback=n),null!==(t=DI(e,o,i))&&(WF(t,e,i,r),RI(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=VF(),r=BF(e),i=qI(n,r);i.tag=2,null!=t&&(i.callback=t),null!==(t=DI(e,i,r))&&(WF(t,e,r,n),RI(t,e,r))}};function KL(e,t,n,r,i,o,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,a):!t.prototype||!t.prototype.isPureReactComponent||(!ZP(n,r)||!ZP(i,o))}function GL(e,t,n){var r=!1,i=yA,o=t.contextType;return"object"==typeof o&&null!==o?o=xI(o):(i=kA(t)?xA:vA.current,o=(r=null!=(r=t.contextTypes))?wA(e,i):yA),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=YL,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function XL(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&YL.enqueueReplaceState(t,t.state,null)}function JL(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},MI(e);var o=t.contextType;"object"==typeof o&&null!==o?i.context=xI(o):(o=kA(t)?xA:vA.current,i.context=wA(e,o)),i.state=e.memoizedState,"function"==typeof(o=t.getDerivedStateFromProps)&&(UL(e,t,o,n),i.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(t=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&YL.enqueueReplaceState(i,i.state,null),OI(e,n,i,r),i.state=e.memoizedState),"function"==typeof i.componentDidMount&&(e.flags|=4194308)}function ZL(e,t){try{var n="",r=t;do{n+=PR(r),r=r.return}while(r);var i=n}catch(e){i="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:i,digest:null}}function QL(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function ez(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var tz="function"==typeof WeakMap?WeakMap:Map;function nz(e,t,n){(n=qI(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){PF||(PF=!0,NF=r),ez(0,t)},n}function rz(e,t,n){(n=qI(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){ez(0,t)}}var o=e.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(n.callback=function(){ez(0,t),"function"!=typeof r&&(null===AF?AF=new Set([this]):AF.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function iz(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new tz;var i=new Set;r.set(t,i)}else void 0===(i=r.get(t))&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=pj.bind(null,e,t,n),t.then(e,e))}function oz(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function az(e,t,n,r,i){return 1&e.mode?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=qI(-1,1)).tag=2,DI(n,t,1))),n.lanes|=1),e)}var sz=fR.ReactCurrentOwner,lz=!1;function cz(e,t,n,r){t.child=null===e?dI(t,null,n,r):uI(t,e.child,n,r)}function uz(e,t,n,r,i){n=n.render;var o=t.ref;return bI(t,i),r=oL(e,t,n,r,o,i),n=aL(),null===e||lz?(KA&&n&&BA(t),t.flags|=1,cz(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Pz(e,t,i))}function dz(e,t,n,r,i){if(null===e){var o=n.type;return"function"!=typeof o||wj(o)||void 0!==o.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Sj(n.type,null,r,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,fz(e,t,o,r,i))}if(o=e.child,!(e.lanes&i)){var a=o.memoizedProps;if((n=null!==(n=n.compare)?n:ZP)(a,r)&&e.ref===t.ref)return Pz(e,t,i)}return t.flags|=1,(e=kj(o,r)).ref=t.ref,e.return=t,t.child=e}function fz(e,t,n,r,i){if(null!==e){var o=e.memoizedProps;if(ZP(o,r)&&e.ref===t.ref){if(lz=!1,t.pendingProps=r=o,!(e.lanes&i))return t.lanes=e.lanes,Pz(e,t,i);131072&e.flags&&(lz=!0)}}return mz(e,t,n,r,i)}function hz(e,t,n){var r=t.pendingProps,i=r.children,o=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(1&t.mode){if(!(1073741824&n))return e=null!==o?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,gA(kF,wF),wF|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==o?o.baseLanes:n,gA(kF,wF),wF|=r}else t.memoizedState={baseLanes:0,cachePool:null,transitions:null},gA(kF,wF),wF|=n;else null!==o?(r=o.baseLanes|n,t.memoizedState=null):r=n,gA(kF,wF),wF|=r;return cz(e,t,i,n),t.child}function pz(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function mz(e,t,n,r,i){var o=kA(n)?xA:vA.current;return o=wA(t,o),bI(t,i),n=oL(e,t,n,r,o,i),r=aL(),null===e||lz?(KA&&r&&BA(t),t.flags|=1,cz(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Pz(e,t,i))}function gz(e,t,n,r,i){if(kA(n)){var o=!0;MA(t)}else o=!1;if(bI(t,i),null===t.stateNode)Oz(e,t),GL(t,n,r),JL(t,n,r,i),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,c=n.contextType;"object"==typeof c&&null!==c?c=xI(c):c=wA(t,c=kA(n)?xA:vA.current);var u=n.getDerivedStateFromProps,d="function"==typeof u||"function"==typeof a.getSnapshotBeforeUpdate;d||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||l!==c)&&XL(t,a,r,c),EI=!1;var f=t.memoizedState;a.state=f,OI(t,r,a,i),l=t.memoizedState,s!==r||f!==l||bA.current||EI?("function"==typeof u&&(UL(t,n,u,r),l=t.memoizedState),(s=EI||KL(t,n,s,r,f,l,c))?(d||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4194308)):("function"==typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=c,r=s):("function"==typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,_I(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:WL(t.type,s),a.props=c,d=t.pendingProps,f=a.context,"object"==typeof(l=n.contextType)&&null!==l?l=xI(l):l=wA(t,l=kA(n)?xA:vA.current);var h=n.getDerivedStateFromProps;(u="function"==typeof h||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==d||f!==l)&&XL(t,a,r,l),EI=!1,f=t.memoizedState,a.state=f,OI(t,r,a,i);var p=t.memoizedState;s!==d||f!==p||bA.current||EI?("function"==typeof h&&(UL(t,n,h,r),p=t.memoizedState),(c=EI||KL(t,n,c,r,f,p,l)||!1)?(u||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,p,l),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,p,l)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=l,r=c):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return yz(e,t,n,r,o,i)}function yz(e,t,n,r,i,o){pz(e,t);var a=!!(128&t.flags);if(!r&&!a)return i&&_A(t,n,!1),Pz(e,t,o);r=t.stateNode,sz.current=t;var s=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=uI(t,e.child,null,o),t.child=uI(t,null,s,o)):cz(e,t,s,o),t.memoizedState=r.state,i&&_A(t,n,!0),t.child}function vz(e){var t=e.stateNode;t.pendingContext?CA(0,t.pendingContext,t.pendingContext!==t.context):t.context&&CA(0,t.context,!1),FI(e,t.containerInfo)}function bz(e,t,n,r,i){return rI(),iI(i),t.flags|=256,cz(e,t,n,r),t.child}var xz,wz,kz,Sz,Cz={dehydrated:null,treeContext:null,retryLane:0};function Ez(e){return{baseLanes:e,cachePool:null,transitions:null}}function Mz(e,t,n){var r,i=t.pendingProps,o=VI.current,a=!1,s=!!(128&t.flags);if((r=s)||(r=(null===e||null!==e.memoizedState)&&!!(2&o)),r?(a=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(o|=1),gA(VI,1&o),null===e)return QA(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(1&t.mode?"$!"===e.data?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(s=i.children,e=i.fallback,a?(i=t.mode,a=t.child,s={mode:"hidden",children:s},1&i||null===a?a=Ej(s,i,0,null):(a.childLanes=0,a.pendingProps=s),e=Cj(e,i,n,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=Ez(n),t.memoizedState=Cz,e):_z(t,s));if(null!==(o=e.memoizedState)&&null!==(r=o.dehydrated))return function(e,t,n,r,i,o,a){if(n)return 256&t.flags?(t.flags&=-257,qz(e,t,a,r=QL(Error(JD(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=Ej({mode:"visible",children:r.children},i,0,null),(o=Cj(o,i,a,null)).flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,1&t.mode&&uI(t,e.child,null,a),t.child.memoizedState=Ez(a),t.memoizedState=Cz,o);if(!(1&t.mode))return qz(e,t,a,null);if("$!"===i.data){if(r=i.nextSibling&&i.nextSibling.dataset)var s=r.dgst;return r=s,qz(e,t,a,r=QL(o=Error(JD(419)),r,void 0))}if(s=!!(a&e.childLanes),lz||s){if(null!==(r=vF)){switch(a&-a){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}0!==(i=i&(r.suspendedLanes|a)?0:i)&&i!==o.retryLane&&(o.retryLane=i,CI(e,i),WF(r,e,i,-1))}return ij(),qz(e,t,a,r=QL(Error(JD(421))))}return"$?"===i.data?(t.flags|=128,t.child=e.child,t=gj.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,YA=QN(i.nextSibling),UA=t,KA=!0,GA=null,null!==e&&(LA[zA++]=jA,LA[zA++]=$A,LA[zA++]=FA,jA=e.id,$A=e.overflow,FA=t),t=_z(t,r.children),t.flags|=4096,t)}(e,t,s,i,r,o,n);if(a){a=i.fallback,s=t.mode,r=(o=e.child).sibling;var l={mode:"hidden",children:i.children};return 1&s||t.child===o?(i=kj(o,l)).subtreeFlags=14680064&o.subtreeFlags:((i=t.child).childLanes=0,i.pendingProps=l,t.deletions=null),null!==r?a=kj(r,a):(a=Cj(a,s,n,null)).flags|=2,a.return=t,i.return=t,i.sibling=a,t.child=i,i=a,a=t.child,s=null===(s=e.child.memoizedState)?Ez(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},a.memoizedState=s,a.childLanes=e.childLanes&~n,t.memoizedState=Cz,i}return e=(a=e.child).sibling,i=kj(a,{mode:"visible",children:i.children}),!(1&t.mode)&&(i.lanes=n),i.return=t,i.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=i,t.memoizedState=null,i}function _z(e,t){return(t=Ej({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function qz(e,t,n,r){return null!==r&&iI(r),uI(t,e.child,null,n),(e=_z(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Dz(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),vI(e.return,t,n)}function Rz(e,t,n,r,i){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function Tz(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(cz(e,t,r.children,n),2&(r=VI.current))r=1&r|2,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Dz(e,n,t);else if(19===e.tag)Dz(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(gA(VI,r),1&t.mode)switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===BI(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Rz(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===BI(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Rz(t,!0,n,null,o);break;case"together":Rz(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function Oz(e,t){!(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Pz(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),EF|=t.lanes,!(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(JD(153));if(null!==t.child){for(n=kj(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=kj(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Nz(e,t){if(!KA)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Az(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=14680064&i.subtreeFlags,r|=14680064&i.flags,i.return=e,i=i.sibling;else for(i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Iz(e,t,n){var r=t.pendingProps;switch(WA(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Az(t),null;case 1:case 17:return kA(t.type)&&SA(),Az(t),null;case 3:return r=t.stateNode,jI(),mA(bA),mA(vA),UI(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(tI(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,null!==GA&&(GF(GA),GA=null))),wz(e,t),Az(t),null;case 5:HI(t);var i=zI(LI.current);if(n=t.type,null!==e&&null!=t.stateNode)kz(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(JD(166));return Az(t),null}if(e=zI(AI.current),tI(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[nA]=t,r[rA]=o,e=!!(1&t.mode),n){case"dialog":DN("cancel",r),DN("close",r);break;case"iframe":case"object":case"embed":DN("load",r);break;case"video":case"audio":for(i=0;i<EN.length;i++)DN(EN[i],r);break;case"source":DN("error",r);break;case"img":case"image":case"link":DN("error",r),DN("load",r);break;case"details":DN("toggle",r);break;case"input":HR(r,o),DN("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},DN("invalid",r);break;case"textarea":XR(r,o),DN("invalid",r)}for(var a in cT(n,o),i=null,o)if(o.hasOwnProperty(a)){var s=o[a];"children"===a?"string"==typeof s?r.textContent!==s&&(!0!==o.suppressHydrationWarning&&HN(r.textContent,s,e),i=["children",s]):"number"==typeof s&&r.textContent!==""+s&&(!0!==o.suppressHydrationWarning&&HN(r.textContent,s,e),i=["children",""+s]):QD.hasOwnProperty(a)&&null!=s&&"onScroll"===a&&DN("scroll",r)}switch(n){case"input":zR(r),WR(r,o,!0);break;case"textarea":zR(r),ZR(r);break;case"select":case"option":break;default:"function"==typeof o.onClick&&(r.onclick=VN)}r=i,t.updateQueue=r,null!==r&&(t.flags|=4)}else{a=9===i.nodeType?i:i.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=QR(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=a.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),"select"===n&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[nA]=t,e[rA]=r,xz(e,t,!1,!1),t.stateNode=e;e:{switch(a=uT(n,r),n){case"dialog":DN("cancel",e),DN("close",e),i=r;break;case"iframe":case"object":case"embed":DN("load",e),i=r;break;case"video":case"audio":for(i=0;i<EN.length;i++)DN(EN[i],e);i=r;break;case"source":DN("error",e),i=r;break;case"img":case"image":case"link":DN("error",e),DN("load",e),i=r;break;case"details":DN("toggle",e),i=r;break;case"input":HR(e,r),i=$R(e,r),DN("invalid",e);break;case"option":default:i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=DR({},r,{value:void 0}),DN("invalid",e);break;case"textarea":XR(e,r),i=GR(e,r),DN("invalid",e)}for(o in cT(n,i),s=i)if(s.hasOwnProperty(o)){var l=s[o];"style"===o?sT(e,l):"dangerouslySetInnerHTML"===o?null!=(l=l?l.__html:void 0)&&nT(e,l):"children"===o?"string"==typeof l?("textarea"!==n||""!==l)&&rT(e,l):"number"==typeof l&&rT(e,""+l):"suppressContentEditableWarning"!==o&&"suppressHydrationWarning"!==o&&"autoFocus"!==o&&(QD.hasOwnProperty(o)?null!=l&&"onScroll"===o&&DN("scroll",e):null!=l&&dR(e,o,l,a))}switch(n){case"input":zR(e),WR(e,r,!1);break;case"textarea":zR(e),ZR(e);break;case"option":null!=r.value&&e.setAttribute("value",""+IR(r.value));break;case"select":e.multiple=!!r.multiple,null!=(o=r.value)?KR(e,!!r.multiple,o,!1):null!=r.defaultValue&&KR(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof i.onClick&&(e.onclick=VN)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Az(t),null;case 6:if(e&&null!=t.stateNode)Sz(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(JD(166));if(n=zI(LI.current),zI(AI.current),tI(t)){if(r=t.stateNode,n=t.memoizedProps,r[nA]=t,(o=r.nodeValue!==n)&&null!==(e=UA))switch(e.tag){case 3:HN(r.nodeValue,n,!!(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&HN(r.nodeValue,n,!!(1&e.mode))}o&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[nA]=t,t.stateNode=r}return Az(t),null;case 13:if(mA(VI),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(KA&&null!==YA&&1&t.mode&&!(128&t.flags))nI(),rI(),t.flags|=98560,o=!1;else if(o=tI(t),null!==r&&null!==r.dehydrated){if(null===e){if(!o)throw Error(JD(318));if(!(o=null!==(o=t.memoizedState)?o.dehydrated:null))throw Error(JD(317));o[nA]=t}else rI(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Az(t),o=!1}else null!==GA&&(GF(GA),GA=null),o=!0;if(!o)return 65536&t.flags?t:null}return 128&t.flags?(t.lanes=n,t):((r=null!==r)!==(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,1&t.mode&&(null===e||1&VI.current?0===SF&&(SF=3):ij())),null!==t.updateQueue&&(t.flags|=4),Az(t),null);case 4:return jI(),wz(e,t),null===e&&ON(t.stateNode.containerInfo),Az(t),null;case 10:return yI(t.type._context),Az(t),null;case 19:if(mA(VI),null===(o=t.memoizedState))return Az(t),null;if(r=!!(128&t.flags),null===(a=o.rendering))if(r)Nz(o,!1);else{if(0!==SF||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(a=BI(e))){for(t.flags|=128,Nz(o,!1),null!==(r=a.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(o=n).flags&=14680066,null===(a=o.alternate)?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=a.childLanes,o.lanes=a.lanes,o.child=a.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=a.memoizedProps,o.memoizedState=a.memoizedState,o.updateQueue=a.updateQueue,o.type=a.type,e=a.dependencies,o.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return gA(VI,1&VI.current|2),t.child}e=e.sibling}null!==o.tail&&HT()>TF&&(t.flags|=128,r=!0,Nz(o,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=BI(a))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Nz(o,!0),null===o.tail&&"hidden"===o.tailMode&&!a.alternate&&!KA)return Az(t),null}else 2*HT()-o.renderingStartTime>TF&&1073741824!==n&&(t.flags|=128,r=!0,Nz(o,!1),t.lanes=4194304);o.isBackwards?(a.sibling=t.child,t.child=a):(null!==(n=o.last)?n.sibling=a:t.child=a,o.last=a)}return null!==o.tail?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=HT(),t.sibling=null,n=VI.current,gA(VI,r?1&n|2:1&n),t):(Az(t),null);case 22:case 23:return ej(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&1&t.mode?!!(1073741824&wF)&&(Az(t),6&t.subtreeFlags&&(t.flags|=8192)):Az(t),null;case 24:case 25:return null}throw Error(JD(156,t.tag))}function Lz(e,t){switch(WA(t),t.tag){case 1:return kA(t.type)&&SA(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return jI(),mA(bA),mA(vA),UI(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 5:return HI(t),null;case 13:if(mA(VI),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(JD(340));rI()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return mA(VI),null;case 4:return jI(),null;case 10:return yI(t.type._context),null;case 22:case 23:return ej(),null;default:return null}}xz=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},wz=function(){},kz=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,zI(AI.current);var o,a=null;switch(n){case"input":i=$R(e,i),r=$R(e,r),a=[];break;case"select":i=DR({},i,{value:void 0}),r=DR({},r,{value:void 0}),a=[];break;case"textarea":i=GR(e,i),r=GR(e,r),a=[];break;default:"function"!=typeof i.onClick&&"function"==typeof r.onClick&&(e.onclick=VN)}for(c in cT(n,r),n=null,i)if(!r.hasOwnProperty(c)&&i.hasOwnProperty(c)&&null!=i[c])if("style"===c){var s=i[c];for(o in s)s.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(QD.hasOwnProperty(c)?a||(a=[]):(a=a||[]).push(c,null));for(c in r){var l=r[c];if(s=null!=i?i[c]:void 0,r.hasOwnProperty(c)&&l!==s&&(null!=l||null!=s))if("style"===c)if(s){for(o in s)!s.hasOwnProperty(o)||l&&l.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in l)l.hasOwnProperty(o)&&s[o]!==l[o]&&(n||(n={}),n[o]=l[o])}else n||(a||(a=[]),a.push(c,n)),n=l;else"dangerouslySetInnerHTML"===c?(l=l?l.__html:void 0,s=s?s.__html:void 0,null!=l&&s!==l&&(a=a||[]).push(c,l)):"children"===c?"string"!=typeof l&&"number"!=typeof l||(a=a||[]).push(c,""+l):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(QD.hasOwnProperty(c)?(null!=l&&"onScroll"===c&&DN("scroll",e),a||s===l||(a=[])):(a=a||[]).push(c,l))}n&&(a=a||[]).push("style",n);var c=a;(t.updateQueue=c)&&(t.flags|=4)}},Sz=function(e,t,n,r){n!==r&&(t.flags|=4)};var zz=!1,Fz=!1,jz="function"==typeof WeakSet?WeakSet:Set,$z=null;function Hz(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){hj(e,t,n)}else n.current=null}function Vz(e,t,n){try{n()}catch(n){hj(e,t,n)}}var Bz=!1;function Wz(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,void 0!==o&&Vz(t,n,o)}i=i.next}while(i!==r)}}function Uz(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Yz(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function Kz(e){var t=e.alternate;null!==t&&(e.alternate=null,Kz(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[nA],delete t[rA],delete t[oA],delete t[aA],delete t[sA])),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 Gz(e){return 5===e.tag||3===e.tag||4===e.tag}function Xz(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||Gz(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function Jz(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=VN));else if(4!==r&&null!==(e=e.child))for(Jz(e,t,n),e=e.sibling;null!==e;)Jz(e,t,n),e=e.sibling}function Zz(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(Zz(e,t,n),e=e.sibling;null!==e;)Zz(e,t,n),e=e.sibling}var Qz=null,eF=!1;function tF(e,t,n){for(n=n.child;null!==n;)nF(e,t,n),n=n.sibling}function nF(e,t,n){if(XT&&"function"==typeof XT.onCommitFiberUnmount)try{XT.onCommitFiberUnmount(GT,n)}catch(e){}switch(n.tag){case 5:Fz||Hz(n,t);case 6:var r=Qz,i=eF;Qz=null,tF(e,t,n),eF=i,null!==(Qz=r)&&(eF?(e=Qz,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):Qz.removeChild(n.stateNode));break;case 18:null!==Qz&&(eF?(e=Qz,n=n.stateNode,8===e.nodeType?ZN(e.parentNode,n):1===e.nodeType&&ZN(e,n),PO(e)):ZN(Qz,n.stateNode));break;case 4:r=Qz,i=eF,Qz=n.stateNode.containerInfo,eF=!0,tF(e,t,n),Qz=r,eF=i;break;case 0:case 11:case 14:case 15:if(!Fz&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){i=r=r.next;do{var o=i,a=o.destroy;o=o.tag,void 0!==a&&(2&o||4&o)&&Vz(n,t,a),i=i.next}while(i!==r)}tF(e,t,n);break;case 1:if(!Fz&&(Hz(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){hj(n,t,e)}tF(e,t,n);break;case 21:tF(e,t,n);break;case 22:1&n.mode?(Fz=(r=Fz)||null!==n.memoizedState,tF(e,t,n),Fz=r):tF(e,t,n);break;default:tF(e,t,n)}}function rF(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new jz),t.forEach((function(t){var r=yj.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function iF(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var i=n[r];try{var o=e,a=t,s=a;e:for(;null!==s;){switch(s.tag){case 5:Qz=s.stateNode,eF=!1;break e;case 3:case 4:Qz=s.stateNode.containerInfo,eF=!0;break e}s=s.return}if(null===Qz)throw Error(JD(160));nF(o,a,i),Qz=null,eF=!1;var l=i.alternate;null!==l&&(l.return=null),i.return=null}catch(e){hj(i,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)oF(t,e),t=t.sibling}function oF(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(iF(t,e),aF(e),4&r){try{Wz(3,e,e.return),Uz(3,e)}catch(t){hj(e,e.return,t)}try{Wz(5,e,e.return)}catch(t){hj(e,e.return,t)}}break;case 1:iF(t,e),aF(e),512&r&&null!==n&&Hz(n,n.return);break;case 5:if(iF(t,e),aF(e),512&r&&null!==n&&Hz(n,n.return),32&e.flags){var i=e.stateNode;try{rT(i,"")}catch(t){hj(e,e.return,t)}}if(4&r&&null!=(i=e.stateNode)){var o=e.memoizedProps,a=null!==n?n.memoizedProps:o,s=e.type,l=e.updateQueue;if(e.updateQueue=null,null!==l)try{"input"===s&&"radio"===o.type&&null!=o.name&&VR(i,o),uT(s,a);var c=uT(s,o);for(a=0;a<l.length;a+=2){var u=l[a],d=l[a+1];"style"===u?sT(i,d):"dangerouslySetInnerHTML"===u?nT(i,d):"children"===u?rT(i,d):dR(i,u,d,c)}switch(s){case"input":BR(i,o);break;case"textarea":JR(i,o);break;case"select":var f=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var h=o.value;null!=h?KR(i,!!o.multiple,h,!1):f!==!!o.multiple&&(null!=o.defaultValue?KR(i,!!o.multiple,o.defaultValue,!0):KR(i,!!o.multiple,o.multiple?[]:"",!1))}i[rA]=o}catch(t){hj(e,e.return,t)}}break;case 6:if(iF(t,e),aF(e),4&r){if(null===e.stateNode)throw Error(JD(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(t){hj(e,e.return,t)}}break;case 3:if(iF(t,e),aF(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{PO(t.containerInfo)}catch(t){hj(e,e.return,t)}break;case 4:default:iF(t,e),aF(e);break;case 13:iF(t,e),aF(e),8192&(i=e.child).flags&&(o=null!==i.memoizedState,i.stateNode.isHidden=o,!o||null!==i.alternate&&null!==i.alternate.memoizedState||(RF=HT())),4&r&&rF(e);break;case 22:if(u=null!==n&&null!==n.memoizedState,1&e.mode?(Fz=(c=Fz)||u,iF(t,e),Fz=c):iF(t,e),aF(e),8192&r){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!u&&1&e.mode)for($z=e,u=e.child;null!==u;){for(d=$z=u;null!==$z;){switch(h=(f=$z).child,f.tag){case 0:case 11:case 14:case 15:Wz(4,f,f.return);break;case 1:Hz(f,f.return);var p=f.stateNode;if("function"==typeof p.componentWillUnmount){r=f,n=f.return;try{t=r,p.props=t.memoizedProps,p.state=t.memoizedState,p.componentWillUnmount()}catch(e){hj(r,n,e)}}break;case 5:Hz(f,f.return);break;case 22:if(null!==f.memoizedState){uF(d);continue}}null!==h?(h.return=f,$z=h):uF(d)}u=u.sibling}e:for(u=null,d=e;;){if(5===d.tag){if(null===u){u=d;try{i=d.stateNode,c?"function"==typeof(o=i.style).setProperty?o.setProperty("display","none","important"):o.display="none":(s=d.stateNode,a=null!=(l=d.memoizedProps.style)&&l.hasOwnProperty("display")?l.display:null,s.style.display=aT("display",a))}catch(t){hj(e,e.return,t)}}}else if(6===d.tag){if(null===u)try{d.stateNode.nodeValue=c?"":d.memoizedProps}catch(t){hj(e,e.return,t)}}else if((22!==d.tag&&23!==d.tag||null===d.memoizedState||d===e)&&null!==d.child){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;null===d.sibling;){if(null===d.return||d.return===e)break e;u===d&&(u=null),d=d.return}u===d&&(u=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:iF(t,e),aF(e),4&r&&rF(e);case 21:}}function aF(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(Gz(n)){var r=n;break e}n=n.return}throw Error(JD(160))}switch(r.tag){case 5:var i=r.stateNode;32&r.flags&&(rT(i,""),r.flags&=-33),Zz(e,Xz(e),i);break;case 3:case 4:var o=r.stateNode.containerInfo;Jz(e,Xz(e),o);break;default:throw Error(JD(161))}}catch(t){hj(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function sF(e,t,n){$z=e,lF(e)}function lF(e,t,n){for(var r=!!(1&e.mode);null!==$z;){var i=$z,o=i.child;if(22===i.tag&&r){var a=null!==i.memoizedState||zz;if(!a){var s=i.alternate,l=null!==s&&null!==s.memoizedState||Fz;s=zz;var c=Fz;if(zz=a,(Fz=l)&&!c)for($z=i;null!==$z;)l=(a=$z).child,22===a.tag&&null!==a.memoizedState?dF(i):null!==l?(l.return=a,$z=l):dF(i);for(;null!==o;)$z=o,lF(o),o=o.sibling;$z=i,zz=s,Fz=c}cF(e)}else 8772&i.subtreeFlags&&null!==o?(o.return=i,$z=o):cF(e)}}function cF(e){for(;null!==$z;){var t=$z;if(8772&t.flags){var n=t.alternate;try{if(8772&t.flags)switch(t.tag){case 0:case 11:case 15:Fz||Uz(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Fz)if(null===n)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:WL(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;null!==o&&PI(t,o,r);break;case 3:var a=t.updateQueue;if(null!==a){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}PI(t,a,n)}break;case 5:var s=t.stateNode;if(null===n&&4&t.flags){n=s;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var u=c.memoizedState;if(null!==u){var d=u.dehydrated;null!==d&&PO(d)}}}break;default:throw Error(JD(163))}Fz||512&t.flags&&Yz(t)}catch(e){hj(t,t.return,e)}}if(t===e){$z=null;break}if(null!==(n=t.sibling)){n.return=t.return,$z=n;break}$z=t.return}}function uF(e){for(;null!==$z;){var t=$z;if(t===e){$z=null;break}var n=t.sibling;if(null!==n){n.return=t.return,$z=n;break}$z=t.return}}function dF(e){for(;null!==$z;){var t=$z;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Uz(4,t)}catch(e){hj(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var i=t.return;try{r.componentDidMount()}catch(e){hj(t,i,e)}}var o=t.return;try{Yz(t)}catch(e){hj(t,o,e)}break;case 5:var a=t.return;try{Yz(t)}catch(e){hj(t,a,e)}}}catch(e){hj(t,t.return,e)}if(t===e){$z=null;break}var s=t.sibling;if(null!==s){s.return=t.return,$z=s;break}$z=t.return}}var fF,hF=Math.ceil,pF=fR.ReactCurrentDispatcher,mF=fR.ReactCurrentOwner,gF=fR.ReactCurrentBatchConfig,yF=0,vF=null,bF=null,xF=0,wF=0,kF=pA(0),SF=0,CF=null,EF=0,MF=0,_F=0,qF=null,DF=null,RF=0,TF=1/0,OF=null,PF=!1,NF=null,AF=null,IF=!1,LF=null,zF=0,FF=0,jF=null,$F=-1,HF=0;function VF(){return 6&yF?HT():-1!==$F?$F:$F=HT()}function BF(e){return 1&e.mode?2&yF&&0!==xF?xF&-xF:null!==oI.transition?(0===HF&&(HF=aO()),HF):0!==(e=uO)?e:e=void 0===(e=window.event)?16:$O(e.type):1}function WF(e,t,n,r){if(50<FF)throw FF=0,jF=null,Error(JD(185));lO(e,n,r),2&yF&&e===vF||(e===vF&&(!(2&yF)&&(MF|=n),4===SF&&XF(e,xF)),UF(e,r),1===n&&0===yF&&!(1&t.mode)&&(TF=HT()+500,DA&&OA()))}function UF(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var a=31-JT(o),s=1<<a,l=i[a];-1===l?s&n&&!(s&r)||(i[a]=iO(s,t)):l<=t&&(e.expiredLanes|=s),o&=~s}}(e,t);var r=rO(e,e===vF?xF:0);if(0===r)null!==n&&FT(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&FT(n),1===t)0===e.tag?function(e){DA=!0,TA(e)}(JF.bind(null,e)):TA(JF.bind(null,e)),XN((function(){!(6&yF)&&OA()})),n=null;else{switch(dO(r)){case 1:n=BT;break;case 4:n=WT;break;case 16:default:n=UT;break;case 536870912:n=KT}n=vj(n,YF.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function YF(e,t){if($F=-1,HF=0,6&yF)throw Error(JD(327));var n=e.callbackNode;if(dj()&&e.callbackNode!==n)return null;var r=rO(e,e===vF?xF:0);if(0===r)return null;if(30&r||r&e.expiredLanes||t)t=oj(e,r);else{t=r;var i=yF;yF|=2;var o=rj();for(vF===e&&xF===t||(OF=null,TF=HT()+500,tj(e,t));;)try{sj();break}catch(t){nj(e,t)}gI(),pF.current=o,yF=i,null!==bF?t=0:(vF=null,xF=0,t=SF)}if(0!==t){if(2===t&&(0!==(i=oO(e))&&(r=i,t=KF(e,i))),1===t)throw n=CF,tj(e,0),XF(e,r),UF(e,HT()),n;if(6===t)XF(e,r);else{if(i=e.current.alternate,!(30&r||function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!JP(o(),i))return!1}catch(e){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(i)||(t=oj(e,r),2===t&&(o=oO(e),0!==o&&(r=o,t=KF(e,o))),1!==t)))throw n=CF,tj(e,0),XF(e,r),UF(e,HT()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(JD(345));case 2:case 5:uj(e,DF,OF);break;case 3:if(XF(e,r),(130023424&r)===r&&10<(t=RF+500-HT())){if(0!==rO(e,0))break;if(((i=e.suspendedLanes)&r)!==r){VF(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=YN(uj.bind(null,e,DF,OF),t);break}uj(e,DF,OF);break;case 4:if(XF(e,r),(4194240&r)===r)break;for(t=e.eventTimes,i=-1;0<r;){var a=31-JT(r);o=1<<a,(a=t[a])>i&&(i=a),r&=~o}if(r=i,10<(r=(120>(r=HT()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*hF(r/1960))-r)){e.timeoutHandle=YN(uj.bind(null,e,DF,OF),r);break}uj(e,DF,OF);break;default:throw Error(JD(329))}}}return UF(e,HT()),e.callbackNode===n?YF.bind(null,e):null}function KF(e,t){var n=qF;return e.current.memoizedState.isDehydrated&&(tj(e,t).flags|=256),2!==(e=oj(e,t))&&(t=DF,DF=n,null!==t&&GF(t)),e}function GF(e){null===DF?DF=e:DF.push.apply(DF,e)}function XF(e,t){for(t&=~_F,t&=~MF,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-JT(t),r=1<<n;e[n]=-1,t&=~r}}function JF(e){if(6&yF)throw Error(JD(327));dj();var t=rO(e,0);if(!(1&t))return UF(e,HT()),null;var n=oj(e,t);if(0!==e.tag&&2===n){var r=oO(e);0!==r&&(t=r,n=KF(e,r))}if(1===n)throw n=CF,tj(e,0),XF(e,t),UF(e,HT()),n;if(6===n)throw Error(JD(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,uj(e,DF,OF),UF(e,HT()),null}function ZF(e,t){var n=yF;yF|=1;try{return e(t)}finally{0===(yF=n)&&(TF=HT()+500,DA&&OA())}}function QF(e){null!==LF&&0===LF.tag&&!(6&yF)&&dj();var t=yF;yF|=1;var n=gF.transition,r=uO;try{if(gF.transition=null,uO=1,e)return e()}finally{uO=r,gF.transition=n,!(6&(yF=t))&&OA()}}function ej(){wF=kF.current,mA(kF)}function tj(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,KN(n)),null!==bF)for(n=bF.return;null!==n;){var r=n;switch(WA(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&SA();break;case 3:jI(),mA(bA),mA(vA),UI();break;case 5:HI(r);break;case 4:jI();break;case 13:case 19:mA(VI);break;case 10:yI(r.type._context);break;case 22:case 23:ej()}n=n.return}if(vF=e,bF=e=kj(e.current,null),xF=wF=t,SF=0,CF=null,_F=MF=EF=0,DF=qF=null,null!==wI){for(t=0;t<wI.length;t++)if(null!==(r=(n=wI[t]).interleaved)){n.interleaved=null;var i=r.next,o=n.pending;if(null!==o){var a=o.next;o.next=i,r.next=a}n.pending=r}wI=null}return e}function nj(e,t){for(;;){var n=bF;try{if(gI(),YI.current=$L,QI){for(var r=XI.memoizedState;null!==r;){var i=r.queue;null!==i&&(i.pending=null),r=r.next}QI=!1}if(GI=0,ZI=JI=XI=null,eL=!1,tL=0,mF.current=null,null===n||null===n.return){SF=1,CF=t,bF=null;break}e:{var o=e,a=n.return,s=n,l=t;if(t=xF,s.flags|=32768,null!==l&&"object"==typeof l&&"function"==typeof l.then){var c=l,u=s,d=u.tag;if(!(1&u.mode||0!==d&&11!==d&&15!==d)){var f=u.alternate;f?(u.updateQueue=f.updateQueue,u.memoizedState=f.memoizedState,u.lanes=f.lanes):(u.updateQueue=null,u.memoizedState=null)}var h=oz(a);if(null!==h){h.flags&=-257,az(h,a,s,0,t),1&h.mode&&iz(o,c,t),l=c;var p=(t=h).updateQueue;if(null===p){var m=new Set;m.add(l),t.updateQueue=m}else p.add(l);break e}if(!(1&t)){iz(o,c,t),ij();break e}l=Error(JD(426))}else if(KA&&1&s.mode){var g=oz(a);if(null!==g){!(65536&g.flags)&&(g.flags|=256),az(g,a,s,0,t),iI(ZL(l,s));break e}}o=l=ZL(l,s),4!==SF&&(SF=2),null===qF?qF=[o]:qF.push(o),o=a;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t,TI(o,nz(0,l,t));break e;case 1:s=l;var y=o.type,v=o.stateNode;if(!(128&o.flags||"function"!=typeof y.getDerivedStateFromError&&(null===v||"function"!=typeof v.componentDidCatch||null!==AF&&AF.has(v)))){o.flags|=65536,t&=-t,o.lanes|=t,TI(o,rz(o,s,t));break e}}o=o.return}while(null!==o)}cj(n)}catch(e){t=e,bF===n&&null!==n&&(bF=n=n.return);continue}break}}function rj(){var e=pF.current;return pF.current=$L,null===e?$L:e}function ij(){0!==SF&&3!==SF&&2!==SF||(SF=4),null===vF||!(268435455&EF)&&!(268435455&MF)||XF(vF,xF)}function oj(e,t){var n=yF;yF|=2;var r=rj();for(vF===e&&xF===t||(OF=null,tj(e,t));;)try{aj();break}catch(t){nj(e,t)}if(gI(),yF=n,pF.current=r,null!==bF)throw Error(JD(261));return vF=null,xF=0,SF}function aj(){for(;null!==bF;)lj(bF)}function sj(){for(;null!==bF&&!jT();)lj(bF)}function lj(e){var t=fF(e.alternate,e,wF);e.memoizedProps=e.pendingProps,null===t?cj(e):bF=t,mF.current=null}function cj(e){var t=e;do{var n=t.alternate;if(e=t.return,32768&t.flags){if(null!==(n=Lz(n,t)))return n.flags&=32767,void(bF=n);if(null===e)return SF=6,void(bF=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}else if(null!==(n=Iz(n,t,wF)))return void(bF=n);if(null!==(t=t.sibling))return void(bF=t);bF=t=e}while(null!==t);0===SF&&(SF=5)}function uj(e,t,n){var r=uO,i=gF.transition;try{gF.transition=null,uO=1,function(e,t,n,r){do{dj()}while(null!==LF);if(6&yF)throw Error(JD(327));n=e.finishedWork;var i=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(JD(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-JT(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}(e,o),e===vF&&(bF=vF=null,xF=0),!(2064&n.subtreeFlags)&&!(2064&n.flags)||IF||(IF=!0,vj(UT,(function(){return dj(),null}))),o=!!(15990&n.flags),!!(15990&n.subtreeFlags)||o){o=gF.transition,gF.transition=null;var a=uO;uO=1;var s=yF;yF|=4,mF.current=null,function(e,t){if(BN=AO,rN(e=nN())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch(e){n=null;break e}var a=0,s=-1,l=-1,c=0,u=0,d=e,f=null;t:for(;;){for(var h;d!==n||0!==i&&3!==d.nodeType||(s=a+i),d!==o||0!==r&&3!==d.nodeType||(l=a+r),3===d.nodeType&&(a+=d.nodeValue.length),null!==(h=d.firstChild);)f=d,d=h;for(;;){if(d===e)break t;if(f===n&&++c===i&&(s=a),f===o&&++u===r&&(l=a),null!==(h=d.nextSibling))break;f=(d=f).parentNode}d=h}n=-1===s||-1===l?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(WN={focusedElem:e,selectionRange:n},AO=!1,$z=t;null!==$z;)if(e=(t=$z).child,1028&t.subtreeFlags&&null!==e)e.return=t,$z=e;else for(;null!==$z;){t=$z;try{var p=t.alternate;if(1024&t.flags)switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==p){var m=p.memoizedProps,g=p.memoizedState,y=t.stateNode,v=y.getSnapshotBeforeUpdate(t.elementType===t.type?m:WL(t.type,m),g);y.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var b=t.stateNode.containerInfo;1===b.nodeType?b.textContent="":9===b.nodeType&&b.documentElement&&b.removeChild(b.documentElement);break;default:throw Error(JD(163))}}catch(e){hj(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,$z=e;break}$z=t.return}p=Bz,Bz=!1}(e,n),oF(n,e),iN(WN),AO=!!BN,WN=BN=null,e.current=n,sF(n),$T(),yF=s,uO=a,gF.transition=o}else e.current=n;if(IF&&(IF=!1,LF=e,zF=i),o=e.pendingLanes,0===o&&(AF=null),function(e){if(XT&&"function"==typeof XT.onCommitFiberRoot)try{XT.onCommitFiberRoot(GT,e,void 0,!(128&~e.current.flags))}catch(e){}}(n.stateNode),UF(e,HT()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(PF)throw PF=!1,e=NF,NF=null,e;!!(1&zF)&&0!==e.tag&&dj(),o=e.pendingLanes,1&o?e===jF?FF++:(FF=0,jF=e):FF=0,OA()}(e,t,n,r)}finally{gF.transition=i,uO=r}return null}function dj(){if(null!==LF){var e=dO(zF),t=gF.transition,n=uO;try{if(gF.transition=null,uO=16>e?16:e,null===LF)var r=!1;else{if(e=LF,LF=null,zF=0,6&yF)throw Error(JD(331));var i=yF;for(yF|=4,$z=e.current;null!==$z;){var o=$z,a=o.child;if(16&$z.flags){var s=o.deletions;if(null!==s){for(var l=0;l<s.length;l++){var c=s[l];for($z=c;null!==$z;){var u=$z;switch(u.tag){case 0:case 11:case 15:Wz(8,u,o)}var d=u.child;if(null!==d)d.return=u,$z=d;else for(;null!==$z;){var f=(u=$z).sibling,h=u.return;if(Kz(u),u===c){$z=null;break}if(null!==f){f.return=h,$z=f;break}$z=h}}}var p=o.alternate;if(null!==p){var m=p.child;if(null!==m){p.child=null;do{var g=m.sibling;m.sibling=null,m=g}while(null!==m)}}$z=o}}if(2064&o.subtreeFlags&&null!==a)a.return=o,$z=a;else e:for(;null!==$z;){if(2048&(o=$z).flags)switch(o.tag){case 0:case 11:case 15:Wz(9,o,o.return)}var y=o.sibling;if(null!==y){y.return=o.return,$z=y;break e}$z=o.return}}var v=e.current;for($z=v;null!==$z;){var b=(a=$z).child;if(2064&a.subtreeFlags&&null!==b)b.return=a,$z=b;else e:for(a=v;null!==$z;){if(2048&(s=$z).flags)try{switch(s.tag){case 0:case 11:case 15:Uz(9,s)}}catch(e){hj(s,s.return,e)}if(s===a){$z=null;break e}var x=s.sibling;if(null!==x){x.return=s.return,$z=x;break e}$z=s.return}}if(yF=i,OA(),XT&&"function"==typeof XT.onPostCommitFiberRoot)try{XT.onPostCommitFiberRoot(GT,e)}catch(e){}r=!0}return r}finally{uO=n,gF.transition=t}}return!1}function fj(e,t,n){e=DI(e,t=nz(0,t=ZL(n,t),1),1),t=VF(),null!==e&&(lO(e,1,t),UF(e,t))}function hj(e,t,n){if(3===e.tag)fj(e,e,n);else for(;null!==t;){if(3===t.tag){fj(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===AF||!AF.has(r))){t=DI(t,e=rz(t,e=ZL(n,e),1),1),e=VF(),null!==t&&(lO(t,1,e),UF(t,e));break}}t=t.return}}function pj(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=VF(),e.pingedLanes|=e.suspendedLanes&n,vF===e&&(xF&n)===n&&(4===SF||3===SF&&(130023424&xF)===xF&&500>HT()-RF?tj(e,0):_F|=n),UF(e,t)}function mj(e,t){0===t&&(1&e.mode?(t=tO,!(130023424&(tO<<=1))&&(tO=4194304)):t=1);var n=VF();null!==(e=CI(e,t))&&(lO(e,t,n),UF(e,n))}function gj(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),mj(e,n)}function yj(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;null!==i&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(JD(314))}null!==r&&r.delete(t),mj(e,n)}function vj(e,t){return zT(e,t)}function bj(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 xj(e,t,n,r){return new bj(e,t,n,r)}function wj(e){return!(!(e=e.prototype)||!e.isReactComponent)}function kj(e,t){var n=e.alternate;return null===n?((n=xj(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Sj(e,t,n,r,i,o){var a=2;if(r=e,"function"==typeof e)wj(e)&&(a=1);else if("string"==typeof e)a=5;else e:switch(e){case mR:return Cj(n.children,i,o,t);case gR:a=8,i|=8;break;case yR:return(e=xj(12,n,t,2|i)).elementType=yR,e.lanes=o,e;case wR:return(e=xj(13,n,t,i)).elementType=wR,e.lanes=o,e;case kR:return(e=xj(19,n,t,i)).elementType=kR,e.lanes=o,e;case ER:return Ej(n,i,o,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case vR:a=10;break e;case bR:a=9;break e;case xR:a=11;break e;case SR:a=14;break e;case CR:a=16,r=null;break e}throw Error(JD(130,null==e?e:typeof e,""))}return(t=xj(a,n,t,i)).elementType=e,t.type=r,t.lanes=o,t}function Cj(e,t,n,r){return(e=xj(7,e,r,t)).lanes=n,e}function Ej(e,t,n,r){return(e=xj(22,e,r,t)).elementType=ER,e.lanes=n,e.stateNode={isHidden:!1},e}function Mj(e,t,n){return(e=xj(6,e,null,t)).lanes=n,e}function _j(e,t,n){return(t=xj(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function qj(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=sO(0),this.expirationTimes=sO(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=sO(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Dj(e,t,n,r,i,o,a,s,l){return e=new qj(e,t,n,s,l),1===t?(t=1,!0===o&&(t|=8)):t=0,o=xj(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},MI(o),e}function Rj(e){if(!e)return yA;e:{if(PT(e=e._reactInternals)!==e||1!==e.tag)throw Error(JD(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(kA(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(JD(171))}if(1===e.tag){var n=e.type;if(kA(n))return EA(e,n,t)}return t}function Tj(e,t,n,r,i,o,a,s,l){return(e=Dj(n,r,!0,e,0,o,0,s,l)).context=Rj(null),n=e.current,(o=qI(r=VF(),i=BF(n))).callback=null!=t?t:null,DI(n,o,i),e.current.lanes=i,lO(e,i,r),UF(e,r),e}function Oj(e,t,n,r){var i=t.current,o=VF(),a=BF(i);return n=Rj(n),null===t.context?t.context=n:t.pendingContext=n,(t=qI(o,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=DI(i,t,a))&&(WF(e,i,a,o),RI(e,i,a)),a}function Pj(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Nj(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Aj(e,t){Nj(e,t),(e=e.alternate)&&Nj(e,t)}fF=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||bA.current)lz=!0;else{if(!(e.lanes&n||128&t.flags))return lz=!1,function(e,t,n){switch(t.tag){case 3:vz(t),rI();break;case 5:$I(t);break;case 1:kA(t.type)&&MA(t);break;case 4:FI(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;gA(fI,r._currentValue),r._currentValue=i;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(gA(VI,1&VI.current),t.flags|=128,null):n&t.child.childLanes?Mz(e,t,n):(gA(VI,1&VI.current),null!==(e=Pz(e,t,n))?e.sibling:null);gA(VI,1&VI.current);break;case 19:if(r=!!(n&t.childLanes),128&e.flags){if(r)return Tz(e,t,n);t.flags|=128}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),gA(VI,VI.current),r)break;return null;case 22:case 23:return t.lanes=0,hz(e,t,n)}return Pz(e,t,n)}(e,t,n);lz=!!(131072&e.flags)}else lz=!1,KA&&1048576&t.flags&&VA(t,IA,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Oz(e,t),e=t.pendingProps;var i=wA(t,vA.current);bI(t,n),i=oL(null,t,r,e,i,n);var o=aL();return t.flags|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,kA(r)?(o=!0,MA(t)):o=!1,t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,MI(t),i.updater=YL,t.stateNode=i,i._reactInternals=t,JL(t,r,e,n),t=yz(null,t,r,!0,o,n)):(t.tag=0,KA&&o&&BA(t),cz(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Oz(e,t),e=t.pendingProps,r=(i=r._init)(r._payload),t.type=r,i=t.tag=function(e){if("function"==typeof e)return wj(e)?1:0;if(null!=e){if((e=e.$$typeof)===xR)return 11;if(e===SR)return 14}return 2}(r),e=WL(r,e),i){case 0:t=mz(null,t,r,e,n);break e;case 1:t=gz(null,t,r,e,n);break e;case 11:t=uz(null,t,r,e,n);break e;case 14:t=dz(null,t,r,WL(r.type,e),n);break e}throw Error(JD(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,mz(e,t,r,i=t.elementType===r?i:WL(r,i),n);case 1:return r=t.type,i=t.pendingProps,gz(e,t,r,i=t.elementType===r?i:WL(r,i),n);case 3:e:{if(vz(t),null===e)throw Error(JD(387));r=t.pendingProps,i=(o=t.memoizedState).element,_I(e,t),OI(t,r,null,n);var a=t.memoizedState;if(r=a.element,o.isDehydrated){if(o={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=o,t.memoizedState=o,256&t.flags){t=bz(e,t,r,n,i=ZL(Error(JD(423)),t));break e}if(r!==i){t=bz(e,t,r,n,i=ZL(Error(JD(424)),t));break e}for(YA=QN(t.stateNode.containerInfo.firstChild),UA=t,KA=!0,GA=null,n=dI(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(rI(),r===i){t=Pz(e,t,n);break e}cz(e,t,r,n)}t=t.child}return t;case 5:return $I(t),null===e&&QA(t),r=t.type,i=t.pendingProps,o=null!==e?e.memoizedProps:null,a=i.children,UN(r,i)?a=null:null!==o&&UN(r,o)&&(t.flags|=32),pz(e,t),cz(e,t,a,n),t.child;case 6:return null===e&&QA(t),null;case 13:return Mz(e,t,n);case 4:return FI(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=uI(t,null,r,n):cz(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,uz(e,t,r,i=t.elementType===r?i:WL(r,i),n);case 7:return cz(e,t,t.pendingProps,n),t.child;case 8:case 12:return cz(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,a=i.value,gA(fI,r._currentValue),r._currentValue=a,null!==o)if(JP(o.value,a)){if(o.children===i.children&&!bA.current){t=Pz(e,t,n);break e}}else for(null!==(o=t.child)&&(o.return=t);null!==o;){var s=o.dependencies;if(null!==s){a=o.child;for(var l=s.firstContext;null!==l;){if(l.context===r){if(1===o.tag){(l=qI(-1,n&-n)).tag=2;var c=o.updateQueue;if(null!==c){var u=(c=c.shared).pending;null===u?l.next=l:(l.next=u.next,u.next=l),c.pending=l}}o.lanes|=n,null!==(l=o.alternate)&&(l.lanes|=n),vI(o.return,n,t),s.lanes|=n;break}l=l.next}}else if(10===o.tag)a=o.type===t.type?null:o.child;else if(18===o.tag){if(null===(a=o.return))throw Error(JD(341));a.lanes|=n,null!==(s=a.alternate)&&(s.lanes|=n),vI(a,n,t),a=o.sibling}else a=o.child;if(null!==a)a.return=o;else for(a=o;null!==a;){if(a===t){a=null;break}if(null!==(o=a.sibling)){o.return=a.return,a=o;break}a=a.return}o=a}cz(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,bI(t,n),r=r(i=xI(i)),t.flags|=1,cz(e,t,r,n),t.child;case 14:return i=WL(r=t.type,t.pendingProps),dz(e,t,r,i=WL(r.type,i),n);case 15:return fz(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:WL(r,i),Oz(e,t),t.tag=1,kA(r)?(e=!0,MA(t)):e=!1,bI(t,n),GL(t,r,i),JL(t,r,i,n),yz(null,t,r,!0,e,n);case 19:return Tz(e,t,n);case 22:return hz(e,t,n)}throw Error(JD(156,t.tag))};var Ij="function"==typeof reportError?reportError:function(e){console.error(e)};function Lj(e){this._internalRoot=e}function zj(e){this._internalRoot=e}function Fj(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function jj(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function $j(){}function Hj(e,t,n,r,i){var o=n._reactRootContainer;if(o){var a=o;if("function"==typeof i){var s=i;i=function(){var e=Pj(a);s.call(e)}}Oj(t,a,e,i)}else a=function(e,t,n,r,i){if(i){if("function"==typeof r){var o=r;r=function(){var e=Pj(a);o.call(e)}}var a=Tj(t,r,e,0,null,!1,0,"",$j);return e._reactRootContainer=a,e[iA]=a.current,ON(8===e.nodeType?e.parentNode:e),QF(),a}for(;i=e.lastChild;)e.removeChild(i);if("function"==typeof r){var s=r;r=function(){var e=Pj(l);s.call(e)}}var l=Dj(e,0,!1,null,0,!1,0,"",$j);return e._reactRootContainer=l,e[iA]=l.current,ON(8===e.nodeType?e.parentNode:e),QF((function(){Oj(t,l,n,r)})),l}(n,t,e,i,r);return Pj(a)}zj.prototype.render=Lj.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(JD(409));Oj(e,t,null,null)},zj.prototype.unmount=Lj.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;QF((function(){Oj(null,e,null,null)})),t[iA]=null}},zj.prototype.unstable_scheduleHydration=function(e){if(e){var t=mO();e={blockedOn:null,target:e,priority:t};for(var n=0;n<CO.length&&0!==t&&t<CO[n].priority;n++);CO.splice(n,0,e),0===n&&qO(e)}},fO=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=nO(t.pendingLanes);0!==n&&(cO(t,1|n),UF(t,HT()),!(6&yF)&&(TF=HT()+500,OA()))}break;case 13:QF((function(){var t=CI(e,1);if(null!==t){var n=VF();WF(t,e,1,n)}})),Aj(e,1)}},hO=function(e){if(13===e.tag){var t=CI(e,134217728);if(null!==t)WF(t,e,134217728,VF());Aj(e,134217728)}},pO=function(e){if(13===e.tag){var t=BF(e),n=CI(e,t);if(null!==n)WF(n,e,t,VF());Aj(e,t)}},mO=function(){return uO},gO=function(e,t){var n=uO;try{return uO=e,t()}finally{uO=n}},hT=function(e,t,n){switch(t){case"input":if(BR(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=dA(r);if(!i)throw Error(JD(90));FR(r),BR(r,i)}}}break;case"textarea":JR(e,n);break;case"select":null!=(t=n.value)&&KR(e,!!n.multiple,t,!1)}},bT=ZF,xT=QF;var Vj={usingClientEntryPoint:!1,Events:[cA,uA,dA,yT,vT,ZF]},Bj={findFiberByHostInstance:lA,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Wj={bundleType:Bj.bundleType,version:Bj.version,rendererPackageName:Bj.rendererPackageName,rendererConfig:Bj.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:fR.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=IT(e))?null:e.stateNode},findFiberByHostInstance:Bj.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var Uj=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Uj.isDisabled&&Uj.supportsFiber)try{GT=Uj.inject(Wj),XT=Uj}catch(Wh){}}WD.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Vj,WD.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Fj(t))throw Error(JD(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:pR,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},WD.createRoot=function(e,t){if(!Fj(e))throw Error(JD(299));var n=!1,r="",i=Ij;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(i=t.onRecoverableError)),t=Dj(e,1,!1,null,0,n,0,r,i),e[iA]=t.current,ON(8===e.nodeType?e.parentNode:e),new Lj(t)},WD.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(JD(188));throw e=Object.keys(e).join(","),Error(JD(268,e))}return e=null===(e=IT(t))?null:e.stateNode},WD.flushSync=function(e){return QF(e)},WD.hydrate=function(e,t,n){if(!jj(t))throw Error(JD(200));return Hj(null,e,t,!0,n)},WD.hydrateRoot=function(e,t,n){if(!Fj(e))throw Error(JD(405));var r=null!=n&&n.hydratedSources||null,i=!1,o="",a=Ij;if(null!=n&&(!0===n.unstable_strictMode&&(i=!0),void 0!==n.identifierPrefix&&(o=n.identifierPrefix),void 0!==n.onRecoverableError&&(a=n.onRecoverableError)),t=Tj(t,null,e,1,null!=n?n:null,i,0,o,a),e[iA]=t.current,ON(e),r)for(e=0;e<r.length;e++)i=(i=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new zj(t)},WD.render=function(e,t,n){if(!jj(t))throw Error(JD(200));return Hj(null,e,t,!1,n)},WD.unmountComponentAtNode=function(e){if(!jj(e))throw Error(JD(40));return!!e._reactRootContainer&&(QF((function(){Hj(null,null,e,!1,(function(){e._reactRootContainer=null,e[iA]=null}))})),!0)},WD.unstable_batchedUpdates=ZF,WD.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!jj(n))throw Error(JD(200));if(null==e||void 0===e._reactInternals)throw Error(JD(38));return Hj(e,t,n,!1,r)},WD.version="18.3.1-next-f1338f8080-20240426",function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),BD.exports=WD;var Yj=BD.exports,Kj=r(Yj),Gj=!0,Xj=!1,Jj=null,Zj={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 Qj(e){e.metaKey||e.altKey||e.ctrlKey||(Gj=!0)}function e$(){Gj=!1}function t$(){"hidden"===this.visibilityState&&Xj&&(Gj=!0)}function n$(e){var t=e.target;try{return t.matches(":focus-visible")}catch(e){}return Gj||function(e){var t=e.type,n=e.tagName;return!("INPUT"!==n||!Zj[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function r$(){Xj=!0,window.clearTimeout(Jj),Jj=window.setTimeout((function(){Xj=!1}),100)}function i$(){var e=nC.useCallback((function(e){var t,n=Yj.findDOMNode(e);null!=n&&((t=n.ownerDocument).addEventListener("keydown",Qj,!0),t.addEventListener("mousedown",e$,!0),t.addEventListener("pointerdown",e$,!0),t.addEventListener("touchstart",e$,!0),t.addEventListener("visibilitychange",t$,!0))}),[]);return{isFocusVisible:n$,onBlurVisible:r$,ref:e}}var o$=!1,a$=rC.createContext(null),s$="unmounted",l$="exited",c$="entering",u$="entered",d$="exiting",f$=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var i,o=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?o?(i=l$,r.appearStatus=c$):i=u$:i=t.unmountOnExit||t.mountOnEnter?s$:l$,r.state={status:i},r.nextCallback=null,r}BE(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===s$?{status:l$}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==c$&&n!==u$&&(t=c$):n!==c$&&n!==u$||(t=d$)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===c$){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:Kj.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===l$&&this.setState({status:s$})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[Kj.findDOMNode(this),r],o=i[0],a=i[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||o$?this.safeSetState({status:u$},(function(){t.props.onEntered(o)})):(this.props.onEnter(o,a),this.safeSetState({status:c$},(function(){t.props.onEntering(o,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:u$},(function(){t.props.onEntered(o,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:Kj.findDOMNode(this);t&&!o$?(this.props.onExit(r),this.safeSetState({status:d$},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:l$},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:l$},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:Kj.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],o=i[0],a=i[1];this.props.addEndListener(o,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===s$)return null;var t=this.props,n=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var r=cE(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return rC.createElement(a$.Provider,{value:null},"function"==typeof n?n(e,r):rC.cloneElement(rC.Children.only(n),r))},t}(rC.Component);function h$(){}function p$(e,t){var n=Object.create(null);return e&&nC.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&nC.isValidElement(e)?t(e):e}(e)})),n}function m$(e,t,n){return null!=n[t]?n[t]:e.props[t]}function g$(e,t,n){var r=p$(e.children),i=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,i=Object.create(null),o=[];for(var a in e)a in t?o.length&&(i[a]=o,o=[]):o.push(a);var s={};for(var l in t){if(i[l])for(r=0;r<i[l].length;r++){var c=i[l][r];s[i[l][r]]=n(c)}s[l]=n(l)}for(r=0;r<o.length;r++)s[o[r]]=n(o[r]);return s}(t,r);return Object.keys(i).forEach((function(o){var a=i[o];if(nC.isValidElement(a)){var s=o in t,l=o in r,c=t[o],u=nC.isValidElement(c)&&!c.props.in;!l||s&&!u?l||!s||u?l&&s&&nC.isValidElement(c)&&(i[o]=nC.cloneElement(a,{onExited:n.bind(null,a),in:c.props.in,exit:m$(a,"exit",e),enter:m$(a,"enter",e)})):i[o]=nC.cloneElement(a,{in:!1}):i[o]=nC.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:m$(a,"exit",e),enter:m$(a,"enter",e)})}})),i}f$.contextType=a$,f$.propTypes={},f$.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:h$,onEntering:h$,onEntered:h$,onExit:h$,onExiting:h$,onExited:h$},f$.UNMOUNTED=s$,f$.EXITED=l$,f$.ENTERING=c$,f$.ENTERED=u$,f$.EXITING=d$;var y$=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},v$=function(e){function t(t,n){var r,i=(r=e.call(this,t,n)||this).handleExited.bind(WE(r));return r.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},r}BE(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,i=t.children,o=t.handleExited;return{children:t.firstRender?(n=e,r=o,p$(n.children,(function(e){return nC.cloneElement(e,{onExited:r.bind(null,e),in:!0,appear:m$(e,"appear",n),enter:m$(e,"enter",n),exit:m$(e,"exit",n)})}))):g$(e,i,o),firstRender:!1}},n.handleExited=function(e,t){var n=p$(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=JC({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=cE(e,["component","childFactory"]),i=this.state.contextValue,o=y$(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?rC.createElement(a$.Provider,{value:i},o):rC.createElement(a$.Provider,{value:i},rC.createElement(t,r,o))},t}(rC.Component);v$.propTypes={},v$.defaultProps={component:"div",childFactory:function(e){return e}};function b$(e,t){var n=e.timeout,r=e.style,i=void 0===r?{}:r;return{duration:i.transitionDuration||"number"==typeof n?n:n[t.mode]||0,delay:i.transitionDelay}}var x$=nC.forwardRef((function(e,t){var n=e.classes,r=e.className,i=e.component,o=void 0===i?"div":i,a=e.square,s=void 0!==a&&a,l=e.elevation,c=void 0===l?1:l,u=e.variant,d=void 0===u?"elevation":u,f=uE(e,["classes","className","component","square","elevation","variant"]);return nC.createElement(o,JC({className:LD(n.root,r,"outlined"===d?n.outlined:n["elevation".concat(c)],!s&&n.rounded),ref:t},f))})),w$=PD((function(e){var t={};return e.shadows.forEach((function(e,n){t["elevation".concat(n)]={boxShadow:e}})),JC({root:{backgroundColor:e.palette.background.paper,color:e.palette.text.primary,transition:e.transitions.create("box-shadow")},rounded:{borderRadius:e.shape.borderRadius},outlined:{border:"1px solid ".concat(e.palette.divider)}},t)}),{name:"MuiPaper"})(x$),k$="undefined"==typeof window?nC.useEffect:nC.useLayoutEffect;function S$(e){var t=e.classes,n=e.pulsate,r=void 0!==n&&n,i=e.rippleX,o=e.rippleY,a=e.rippleSize,s=e.in,l=e.onExited,c=void 0===l?function(){}:l,u=e.timeout,d=nC.useState(!1),f=d[0],h=d[1],p=LD(t.ripple,t.rippleVisible,r&&t.ripplePulsate),m={width:a,height:a,top:-a/2+o,left:-a/2+i},g=LD(t.child,f&&t.childLeaving,r&&t.childPulsate),y=HD(c);return k$((function(){if(!s){h(!0);var e=setTimeout(y,u);return function(){clearTimeout(e)}}}),[y,s,u]),nC.createElement("span",{className:p,style:m},nC.createElement("span",{className:g}))}var C$=nC.forwardRef((function(e,t){var n=e.center,r=void 0!==n&&n,i=e.classes,o=e.className,a=uE(e,["center","classes","className"]),s=nC.useState([]),l=s[0],c=s[1],u=nC.useRef(0),d=nC.useRef(null);nC.useEffect((function(){d.current&&(d.current(),d.current=null)}),[l]);var f=nC.useRef(!1),h=nC.useRef(null),p=nC.useRef(null),m=nC.useRef(null);nC.useEffect((function(){return function(){clearTimeout(h.current)}}),[]);var g=nC.useCallback((function(e){var t=e.pulsate,n=e.rippleX,r=e.rippleY,o=e.rippleSize,a=e.cb;c((function(e){return[].concat(_E(e),[nC.createElement(S$,{key:u.current,classes:i,timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:o})])})),u.current+=1,d.current=a}),[i]),y=nC.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,i=t.pulsate,o=void 0!==i&&i,a=t.center,s=void 0===a?r||t.pulsate:a,l=t.fakeElement,c=void 0!==l&&l;if("mousedown"===e.type&&f.current)f.current=!1;else{"touchstart"===e.type&&(f.current=!0);var u,d,y,v=c?null:m.current,b=v?v.getBoundingClientRect():{width:0,height:0,left:0,top:0};if(s||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(b.width/2),d=Math.round(b.height/2);else{var x=e.touches?e.touches[0]:e,w=x.clientX,k=x.clientY;u=Math.round(w-b.left),d=Math.round(k-b.top)}if(s)(y=Math.sqrt((2*Math.pow(b.width,2)+Math.pow(b.height,2))/3))%2==0&&(y+=1);else{var S=2*Math.max(Math.abs((v?v.clientWidth:0)-u),u)+2,C=2*Math.max(Math.abs((v?v.clientHeight:0)-d),d)+2;y=Math.sqrt(Math.pow(S,2)+Math.pow(C,2))}e.touches?null===p.current&&(p.current=function(){g({pulsate:o,rippleX:u,rippleY:d,rippleSize:y,cb:n})},h.current=setTimeout((function(){p.current&&(p.current(),p.current=null)}),80)):g({pulsate:o,rippleX:u,rippleY:d,rippleSize:y,cb:n})}}),[r,g]),v=nC.useCallback((function(){y({},{pulsate:!0})}),[y]),b=nC.useCallback((function(e,t){if(clearTimeout(h.current),"touchend"===e.type&&p.current)return e.persist(),p.current(),p.current=null,void(h.current=setTimeout((function(){b(e,t)})));p.current=null,c((function(e){return e.length>0?e.slice(1):e})),d.current=t}),[]);return nC.useImperativeHandle(t,(function(){return{pulsate:v,start:y,stop:b}}),[v,y,b]),nC.createElement("span",JC({className:LD(i.root,o),ref:m},a),nC.createElement(v$,{component:null,exit:!0},l))})),E$=PD((function(e){return{root:{overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"},ripple:{opacity:0,position:"absolute"},rippleVisible:{opacity:.3,transform:"scale(1)",animation:"$enter ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},ripplePulsate:{animationDuration:"".concat(e.transitions.duration.shorter,"ms")},child:{opacity:1,display:"block",width:"100%",height:"100%",borderRadius:"50%",backgroundColor:"currentColor"},childLeaving:{opacity:0,animation:"$exit ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},childPulsate:{position:"absolute",left:0,top:0,animation:"$pulsate 2500ms ".concat(e.transitions.easing.easeInOut," 200ms infinite")},"@keyframes enter":{"0%":{transform:"scale(0)",opacity:.1},"100%":{transform:"scale(1)",opacity:.3}},"@keyframes exit":{"0%":{opacity:1},"100%":{opacity:0}},"@keyframes pulsate":{"0%":{transform:"scale(1)"},"50%":{transform:"scale(0.92)"},"100%":{transform:"scale(1)"}}}}),{flip:!1,name:"MuiTouchRipple"})(nC.memo(C$)),M$=nC.forwardRef((function(e,t){var n=e.action,r=e.buttonRef,i=e.centerRipple,o=void 0!==i&&i,a=e.children,s=e.classes,l=e.className,c=e.component,u=void 0===c?"button":c,d=e.disabled,f=void 0!==d&&d,h=e.disableRipple,p=void 0!==h&&h,m=e.disableTouchRipple,g=void 0!==m&&m,y=e.focusRipple,v=void 0!==y&&y,b=e.focusVisibleClassName,x=e.onBlur,w=e.onClick,k=e.onFocus,S=e.onFocusVisible,C=e.onKeyDown,E=e.onKeyUp,M=e.onMouseDown,_=e.onMouseLeave,q=e.onMouseUp,D=e.onTouchEnd,R=e.onTouchMove,T=e.onTouchStart,O=e.onDragLeave,P=e.tabIndex,N=void 0===P?0:P,A=e.TouchRippleProps,I=e.type,L=void 0===I?"button":I,z=uE(e,["action","buttonRef","centerRipple","children","classes","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","onBlur","onClick","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","onDragLeave","tabIndex","TouchRippleProps","type"]),F=nC.useRef(null);var j=nC.useRef(null),$=nC.useState(!1),H=$[0],V=$[1];f&&H&&V(!1);var B=i$(),W=B.isFocusVisible,U=B.onBlurVisible,Y=B.ref;function K(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:g;return HD((function(r){return t&&t(r),!n&&j.current&&j.current[e](r),!0}))}nC.useImperativeHandle(n,(function(){return{focusVisible:function(){V(!0),F.current.focus()}}}),[]),nC.useEffect((function(){H&&v&&!p&&j.current.pulsate()}),[p,v,H]);var G=K("start",M),X=K("stop",O),J=K("stop",q),Z=K("stop",(function(e){H&&e.preventDefault(),_&&_(e)})),Q=K("start",T),ee=K("stop",D),te=K("stop",R),ne=K("stop",(function(e){H&&(U(e),V(!1)),x&&x(e)}),!1),re=HD((function(e){F.current||(F.current=e.currentTarget),W(e)&&(V(!0),S&&S(e)),k&&k(e)})),ie=function(){var e=Yj.findDOMNode(F.current);return u&&"button"!==u&&!("A"===e.tagName&&e.href)},oe=nC.useRef(!1),ae=HD((function(e){v&&!oe.current&&H&&j.current&&" "===e.key&&(oe.current=!0,e.persist(),j.current.stop(e,(function(){j.current.start(e)}))),e.target===e.currentTarget&&ie()&&" "===e.key&&e.preventDefault(),C&&C(e),e.target===e.currentTarget&&ie()&&"Enter"===e.key&&!f&&(e.preventDefault(),w&&w(e))})),se=HD((function(e){v&&" "===e.key&&j.current&&H&&!e.defaultPrevented&&(oe.current=!1,e.persist(),j.current.stop(e,(function(){j.current.pulsate(e)}))),E&&E(e),w&&e.target===e.currentTarget&&ie()&&" "===e.key&&!e.defaultPrevented&&w(e)})),le=u;"button"===le&&z.href&&(le="a");var ce={};"button"===le?(ce.type=L,ce.disabled=f):("a"===le&&z.href||(ce.role="button"),ce["aria-disabled"]=f);var ue=VD(r,t),de=VD(Y,F),fe=VD(ue,de),he=nC.useState(!1),pe=he[0],me=he[1];nC.useEffect((function(){me(!0)}),[]);var ge=pe&&!p&&!f;return nC.createElement(le,JC({className:LD(s.root,l,H&&[s.focusVisible,b],f&&s.disabled),onBlur:ne,onClick:w,onFocus:re,onKeyDown:ae,onKeyUp:se,onMouseDown:G,onMouseLeave:Z,onMouseUp:J,onDragLeave:X,onTouchEnd:ee,onTouchMove:te,onTouchStart:Q,ref:fe,tabIndex:f?-1:N},ce,z),a,ge?nC.createElement(E$,JC({ref:j,center:o},A)):null)})),_$=PD({root:{display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle","-moz-appearance":"none","-webkit-appearance":"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},"&$disabled":{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}},disabled:{},focusVisible:{}},{name:"MuiButtonBase"})(M$),q$={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p"},D$=nC.forwardRef((function(e,t){var n=e.align,r=void 0===n?"inherit":n,i=e.classes,o=e.className,a=e.color,s=void 0===a?"initial":a,l=e.component,c=e.display,u=void 0===c?"initial":c,d=e.gutterBottom,f=void 0!==d&&d,h=e.noWrap,p=void 0!==h&&h,m=e.paragraph,g=void 0!==m&&m,y=e.variant,v=void 0===y?"body1":y,b=e.variantMapping,x=void 0===b?q$:b,w=uE(e,["align","classes","className","color","component","display","gutterBottom","noWrap","paragraph","variant","variantMapping"]),k=l||(g?"p":x[v]||q$[v])||"span";return nC.createElement(k,JC({className:LD(i.root,o,"inherit"!==v&&i[v],"initial"!==s&&i["color".concat(ND(s))],p&&i.noWrap,f&&i.gutterBottom,g&&i.paragraph,"inherit"!==r&&i["align".concat(ND(r))],"initial"!==u&&i["display".concat(ND(u))]),ref:t},w))})),R$=PD((function(e){return{root:{margin:0},body2:e.typography.body2,body1:e.typography.body1,caption:e.typography.caption,button:e.typography.button,h1:e.typography.h1,h2:e.typography.h2,h3:e.typography.h3,h4:e.typography.h4,h5:e.typography.h5,h6:e.typography.h6,subtitle1:e.typography.subtitle1,subtitle2:e.typography.subtitle2,overline:e.typography.overline,srOnly:{position:"absolute",height:1,width:1,overflow:"hidden"},alignLeft:{textAlign:"left"},alignCenter:{textAlign:"center"},alignRight:{textAlign:"right"},alignJustify:{textAlign:"justify"},noWrap:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},gutterBottom:{marginBottom:"0.35em"},paragraph:{marginBottom:16},colorInherit:{color:"inherit"},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorTextPrimary:{color:e.palette.text.primary},colorTextSecondary:{color:e.palette.text.secondary},colorError:{color:e.palette.error.main},displayInline:{display:"inline"},displayBlock:{display:"block"}}}),{name:"MuiTypography"})(D$),T$=nC.forwardRef((function(e,t){var n=e.children,r=e.classes,i=e.className,o=e.color,a=void 0===o?"default":o,s=e.component,l=void 0===s?"button":s,c=e.disabled,u=void 0!==c&&c,d=e.disableElevation,f=void 0!==d&&d,h=e.disableFocusRipple,p=void 0!==h&&h,m=e.endIcon,g=e.focusVisibleClassName,y=e.fullWidth,v=void 0!==y&&y,b=e.size,x=void 0===b?"medium":b,w=e.startIcon,k=e.type,S=void 0===k?"button":k,C=e.variant,E=void 0===C?"text":C,M=uE(e,["children","classes","className","color","component","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"]),_=w&&nC.createElement("span",{className:LD(r.startIcon,r["iconSize".concat(ND(x))])},w),q=m&&nC.createElement("span",{className:LD(r.endIcon,r["iconSize".concat(ND(x))])},m);return nC.createElement(_$,JC({className:LD(r.root,r[E],i,"inherit"===a?r.colorInherit:"default"!==a&&r["".concat(E).concat(ND(a))],"medium"!==x&&[r["".concat(E,"Size").concat(ND(x))],r["size".concat(ND(x))]],f&&r.disableElevation,u&&r.disabled,v&&r.fullWidth),component:l,disabled:u,focusRipple:!p,focusVisibleClassName:LD(r.focusVisible,g),ref:t,type:S},M),nC.createElement("span",{className:r.label},_,n,q))})),O$=PD((function(e){return{root:JC({},e.typography.button,{boxSizing:"border-box",minWidth:64,padding:"6px 16px",borderRadius:e.shape.borderRadius,color:e.palette.text.primary,transition:e.transitions.create(["background-color","box-shadow","border"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none",backgroundColor:lE(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"},"&$disabled":{backgroundColor:"transparent"}},"&$disabled":{color:e.palette.action.disabled}}),label:{width:"100%",display:"inherit",alignItems:"inherit",justifyContent:"inherit"},text:{padding:"6px 8px"},textPrimary:{color:e.palette.primary.main,"&:hover":{backgroundColor:lE(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},textSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:lE(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlined:{padding:"5px 15px",border:"1px solid ".concat("light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),"&$disabled":{border:"1px solid ".concat(e.palette.action.disabledBackground)}},outlinedPrimary:{color:e.palette.primary.main,border:"1px solid ".concat(lE(e.palette.primary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.primary.main),backgroundColor:lE(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlinedSecondary:{color:e.palette.secondary.main,border:"1px solid ".concat(lE(e.palette.secondary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.secondary.main),backgroundColor:lE(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{border:"1px solid ".concat(e.palette.action.disabled)}},contained:{color:e.palette.getContrastText(e.palette.grey[300]),backgroundColor:e.palette.grey[300],boxShadow:e.shadows[2],"&:hover":{backgroundColor:e.palette.grey.A100,boxShadow:e.shadows[4],"@media (hover: none)":{boxShadow:e.shadows[2],backgroundColor:e.palette.grey[300]},"&$disabled":{backgroundColor:e.palette.action.disabledBackground}},"&$focusVisible":{boxShadow:e.shadows[6]},"&:active":{boxShadow:e.shadows[8]},"&$disabled":{color:e.palette.action.disabled,boxShadow:e.shadows[0],backgroundColor:e.palette.action.disabledBackground}},containedPrimary:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,"&:hover":{backgroundColor:e.palette.primary.dark,"@media (hover: none)":{backgroundColor:e.palette.primary.main}}},containedSecondary:{color:e.palette.secondary.contrastText,backgroundColor:e.palette.secondary.main,"&:hover":{backgroundColor:e.palette.secondary.dark,"@media (hover: none)":{backgroundColor:e.palette.secondary.main}}},disableElevation:{boxShadow:"none","&:hover":{boxShadow:"none"},"&$focusVisible":{boxShadow:"none"},"&:active":{boxShadow:"none"},"&$disabled":{boxShadow:"none"}},focusVisible:{},disabled:{},colorInherit:{color:"inherit",borderColor:"currentColor"},textSizeSmall:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},textSizeLarge:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},outlinedSizeSmall:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},outlinedSizeLarge:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},containedSizeSmall:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},containedSizeLarge:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},sizeSmall:{},sizeLarge:{},fullWidth:{width:"100%"},startIcon:{display:"inherit",marginRight:8,marginLeft:-4,"&$iconSizeSmall":{marginLeft:-2}},endIcon:{display:"inherit",marginRight:-4,marginLeft:8,"&$iconSizeSmall":{marginRight:-2}},iconSizeSmall:{"& > *:first-child":{fontSize:18}},iconSizeMedium:{"& > *:first-child":{fontSize:20}},iconSizeLarge:{"& > *:first-child":{fontSize:22}}}}),{name:"MuiButton"})(T$);var P$="undefined"!=typeof window?nC.useLayoutEffect:nC.useEffect,N$=nC.forwardRef((function(e,t){var n=e.children,r=e.container,i=e.disablePortal,o=void 0!==i&&i,a=e.onRendered,s=nC.useState(null),l=s[0],c=s[1],u=VD(nC.isValidElement(n)?n.ref:null,t);return P$((function(){o||c(function(e){return e="function"==typeof e?e():e,Yj.findDOMNode(e)}(r)||document.body)}),[r,o]),P$((function(){if(l&&!o)return jD(t,l),function(){jD(t,null)}}),[t,l,o]),P$((function(){a&&(l||o)&&a()}),[a,l,o]),o?nC.isValidElement(n)?nC.cloneElement(n,{ref:u}):n:l?Yj.createPortal(n,l):l}));function A$(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function I$(e){return parseInt(window.getComputedStyle(e)["padding-right"],10)||0}function L$(e,t,n){var r=arguments.length>4?arguments[4]:void 0,i=[t,n].concat(_E(arguments.length>3&&void 0!==arguments[3]?arguments[3]:[])),o=["TEMPLATE","SCRIPT","STYLE"];[].forEach.call(e.children,(function(e){1===e.nodeType&&-1===i.indexOf(e)&&-1===o.indexOf(e.tagName)&&A$(e,r)}))}function z$(e,t){var n=-1;return e.some((function(e,r){return!!t(e)&&(n=r,!0)})),n}function F$(e,t){var n,r=[],i=[],o=e.container;if(!t.disableScrollLock){if(function(e){var t=zD(e);return t.body===e?FD(t).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(o)){var a=function(){var e=document.createElement("div");e.style.width="99px",e.style.height="99px",e.style.position="absolute",e.style.top="-9999px",e.style.overflow="scroll",document.body.appendChild(e);var t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t}();r.push({value:o.style.paddingRight,key:"padding-right",el:o}),o.style["padding-right"]="".concat(I$(o)+a,"px"),n=zD(o).querySelectorAll(".mui-fixed"),[].forEach.call(n,(function(e){i.push(e.style.paddingRight),e.style.paddingRight="".concat(I$(e)+a,"px")}))}var s=o.parentElement,l="HTML"===s.nodeName&&"scroll"===window.getComputedStyle(s)["overflow-y"]?s:o;r.push({value:l.style.overflow,key:"overflow",el:l}),l.style.overflow="hidden"}return function(){n&&[].forEach.call(n,(function(e,t){i[t]?e.style.paddingRight=i[t]:e.style.removeProperty("padding-right")})),r.forEach((function(e){var t=e.value,n=e.el,r=e.key;t?n.style.setProperty(r,t):n.style.removeProperty(r)}))}}var j$=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.modals=[],this.containers=[]}return HE(e,[{key:"add",value:function(e,t){var n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&A$(e.modalRef,!1);var r=function(e){var t=[];return[].forEach.call(e.children,(function(e){e.getAttribute&&"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);L$(t,e.mountNode,e.modalRef,r,!0);var i=z$(this.containers,(function(e){return e.container===t}));return-1!==i?(this.containers[i].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblingNodes:r}),n)}},{key:"mount",value:function(e,t){var n=z$(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];r.restore||(r.restore=F$(r,t))}},{key:"remove",value:function(e){var t=this.modals.indexOf(e);if(-1===t)return t;var n=z$(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];if(r.modals.splice(r.modals.indexOf(e),1),this.modals.splice(t,1),0===r.modals.length)r.restore&&r.restore(),e.modalRef&&A$(e.modalRef,!0),L$(r.container,e.mountNode,e.modalRef,r.hiddenSiblingNodes,!1),this.containers.splice(n,1);else{var i=r.modals[r.modals.length-1];i.modalRef&&A$(i.modalRef,!1)}return t}},{key:"isTopModal",value:function(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}]),e}();function $$(e){var t=e.children,n=e.disableAutoFocus,r=void 0!==n&&n,i=e.disableEnforceFocus,o=void 0!==i&&i,a=e.disableRestoreFocus,s=void 0!==a&&a,l=e.getDoc,c=e.isEnabled,u=e.open,d=nC.useRef(),f=nC.useRef(null),h=nC.useRef(null),p=nC.useRef(),m=nC.useRef(null),g=nC.useCallback((function(e){m.current=Yj.findDOMNode(e)}),[]),y=VD(t.ref,g),v=nC.useRef();return nC.useEffect((function(){v.current=u}),[u]),!v.current&&u&&"undefined"!=typeof window&&(p.current=l().activeElement),nC.useEffect((function(){if(u){var e=zD(m.current);r||!m.current||m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex",-1),m.current.focus());var t=function(){null!==m.current&&(e.hasFocus()&&!o&&c()&&!d.current?m.current&&!m.current.contains(e.activeElement)&&m.current.focus():d.current=!1)},n=function(t){!o&&c()&&9===t.keyCode&&e.activeElement===m.current&&(d.current=!0,t.shiftKey?h.current.focus():f.current.focus())};e.addEventListener("focus",t,!0),e.addEventListener("keydown",n,!0);var i=setInterval((function(){t()}),50);return function(){clearInterval(i),e.removeEventListener("focus",t,!0),e.removeEventListener("keydown",n,!0),s||(p.current&&p.current.focus&&p.current.focus(),p.current=null)}}}),[r,o,s,c,u]),nC.createElement(nC.Fragment,null,nC.createElement("div",{tabIndex:0,ref:f,"data-test":"sentinelStart"}),nC.cloneElement(t,{ref:y}),nC.createElement("div",{tabIndex:0,ref:h,"data-test":"sentinelEnd"}))}var H$={root:{zIndex:-1,position:"fixed",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},invisible:{backgroundColor:"transparent"}},V$=nC.forwardRef((function(e,t){var n=e.invisible,r=void 0!==n&&n,i=e.open,o=uE(e,["invisible","open"]);return i?nC.createElement("div",JC({"aria-hidden":!0,ref:t},o,{style:JC({},H$.root,r?H$.invisible:{},o.style)})):null}));var B$=new j$,W$=nC.forwardRef((function(e,t){var n=Nq(),r=FE({name:"MuiModal",props:JC({},e),theme:n}),i=r.BackdropComponent,o=void 0===i?V$:i,a=r.BackdropProps,s=r.children,l=r.closeAfterTransition,c=void 0!==l&&l,u=r.container,d=r.disableAutoFocus,f=void 0!==d&&d,h=r.disableBackdropClick,p=void 0!==h&&h,m=r.disableEnforceFocus,g=void 0!==m&&m,y=r.disableEscapeKeyDown,v=void 0!==y&&y,b=r.disablePortal,x=void 0!==b&&b,w=r.disableRestoreFocus,k=void 0!==w&&w,S=r.disableScrollLock,C=void 0!==S&&S,E=r.hideBackdrop,M=void 0!==E&&E,_=r.keepMounted,q=void 0!==_&&_,D=r.manager,R=void 0===D?B$:D,T=r.onBackdropClick,O=r.onClose,P=r.onEscapeKeyDown,N=r.onRendered,A=r.open,I=uE(r,["BackdropComponent","BackdropProps","children","closeAfterTransition","container","disableAutoFocus","disableBackdropClick","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onEscapeKeyDown","onRendered","open"]),L=nC.useState(!0),z=L[0],F=L[1],j=nC.useRef({}),$=nC.useRef(null),H=nC.useRef(null),V=VD(H,t),B=function(e){return!!e.children&&e.children.props.hasOwnProperty("in")}(r),W=function(){return zD($.current)},U=function(){return j.current.modalRef=H.current,j.current.mountNode=$.current,j.current},Y=function(){R.mount(U(),{disableScrollLock:C}),H.current.scrollTop=0},K=HD((function(){var e=function(e){return e="function"==typeof e?e():e,Yj.findDOMNode(e)}(u)||W().body;R.add(U(),e),H.current&&Y()})),G=nC.useCallback((function(){return R.isTopModal(U())}),[R]),X=HD((function(e){$.current=e,e&&(N&&N(),A&&G()?Y():A$(H.current,!0))})),J=nC.useCallback((function(){R.remove(U())}),[R]);if(nC.useEffect((function(){return function(){J()}}),[J]),nC.useEffect((function(){A?K():B&&c||J()}),[A,J,B,c,K]),!q&&!A&&(!B||z))return null;var Z=function(e){return{root:{position:"fixed",zIndex:e.zIndex.modal,right:0,bottom:0,top:0,left:0},hidden:{visibility:"hidden"}}}(n||{zIndex:NE}),Q={};return void 0===s.props.tabIndex&&(Q.tabIndex=s.props.tabIndex||"-1"),B&&(Q.onEnter=AD((function(){F(!1)}),s.props.onEnter),Q.onExited=AD((function(){F(!0),c&&J()}),s.props.onExited)),nC.createElement(N$,{ref:X,container:u,disablePortal:x},nC.createElement("div",JC({ref:V,onKeyDown:function(e){"Escape"===e.key&&G()&&(P&&P(e),v||(e.stopPropagation(),O&&O(e,"escapeKeyDown")))},role:"presentation"},I,{style:JC({},Z.root,!A&&z?Z.hidden:{},I.style)}),M?null:nC.createElement(o,JC({open:A,onClick:function(e){e.target===e.currentTarget&&(T&&T(e),!p&&O&&O(e,"backdropClick"))}},a)),nC.createElement($$,{disableEnforceFocus:g,disableAutoFocus:f,disableRestoreFocus:k,getDoc:W,isEnabled:G,open:A},nC.cloneElement(s,Q))))})),U$=nC.forwardRef((function(e,t){var n=e.absolute,r=void 0!==n&&n,i=e.classes,o=e.className,a=e.component,s=void 0===a?"hr":a,l=e.flexItem,c=void 0!==l&&l,u=e.light,d=void 0!==u&&u,f=e.orientation,h=void 0===f?"horizontal":f,p=e.role,m=void 0===p?"hr"!==s?"separator":void 0:p,g=e.variant,y=void 0===g?"fullWidth":g,v=uE(e,["absolute","classes","className","component","flexItem","light","orientation","role","variant"]);return nC.createElement(s,JC({className:LD(i.root,o,"fullWidth"!==y&&i[y],r&&i.absolute,c&&i.flexItem,d&&i.light,"vertical"===h&&i.vertical),role:m,ref:t},v))})),Y$=PD((function(e){return{root:{height:1,margin:0,border:"none",flexShrink:0,backgroundColor:e.palette.divider},absolute:{position:"absolute",bottom:0,left:0,width:"100%"},inset:{marginLeft:72},light:{backgroundColor:lE(e.palette.divider,.08)},middle:{marginLeft:e.spacing(2),marginRight:e.spacing(2)},vertical:{height:"100%",width:1},flexItem:{alignSelf:"stretch",height:"auto"}}}),{name:"MuiDivider"})(U$);function K$(e){return"scale(".concat(e,", ").concat(Math.pow(e,2),")")}var G$={entering:{opacity:1,transform:K$(1)},entered:{opacity:1,transform:"none"}},X$=nC.forwardRef((function(e,t){var n=e.children,r=e.disableStrictModeCompat,i=void 0!==r&&r,o=e.in,a=e.onEnter,s=e.onEntered,l=e.onEntering,c=e.onExit,u=e.onExited,d=e.onExiting,f=e.style,h=e.timeout,p=void 0===h?"auto":h,m=e.TransitionComponent,g=void 0===m?f$:m,y=uE(e,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),v=nC.useRef(),b=nC.useRef(),x=Nq()||TD,w=x.unstable_strictMode&&!i,k=nC.useRef(null),S=VD(n.ref,t),C=VD(w?k:void 0,S),E=function(e){return function(t,n){if(e){var r=qE(w?[k.current,t]:[t,n],2),i=r[0],o=r[1];void 0===o?e(i):e(i,o)}}},M=E(l),_=E((function(e,t){!function(e){e.scrollTop}(e);var n,r=b$({style:f,timeout:p},{mode:"enter"}),i=r.duration,o=r.delay;"auto"===p?(n=x.transitions.getAutoHeightDuration(e.clientHeight),b.current=n):n=i,e.style.transition=[x.transitions.create("opacity",{duration:n,delay:o}),x.transitions.create("transform",{duration:.666*n,delay:o})].join(","),a&&a(e,t)})),q=E(s),D=E(d),R=E((function(e){var t,n=b$({style:f,timeout:p},{mode:"exit"}),r=n.duration,i=n.delay;"auto"===p?(t=x.transitions.getAutoHeightDuration(e.clientHeight),b.current=t):t=r,e.style.transition=[x.transitions.create("opacity",{duration:t,delay:i}),x.transitions.create("transform",{duration:.666*t,delay:i||.333*t})].join(","),e.style.opacity="0",e.style.transform=K$(.75),c&&c(e)})),T=E(u);return nC.useEffect((function(){return function(){clearTimeout(v.current)}}),[]),nC.createElement(g,JC({appear:!0,in:o,nodeRef:w?k:void 0,onEnter:_,onEntered:q,onEntering:M,onExit:R,onExited:T,onExiting:D,addEndListener:function(e,t){var n=w?e:t;"auto"===p&&(v.current=setTimeout(n,b.current||0))},timeout:"auto"===p?null:p},y),(function(e,t){return nC.cloneElement(n,JC({style:JC({opacity:0,transform:K$(.75),visibility:"exited"!==e||o?void 0:"hidden"},G$[e],f,n.props.style),ref:C},t))}))}));X$.muiSupportAuto=!0;var J$=nC.createContext({}),Z$=nC.forwardRef((function(e,t){var n=e.children,r=e.classes,i=e.className,o=e.component,a=void 0===o?"ul":o,s=e.dense,l=void 0!==s&&s,c=e.disablePadding,u=void 0!==c&&c,d=e.subheader,f=uE(e,["children","classes","className","component","dense","disablePadding","subheader"]),h=nC.useMemo((function(){return{dense:l}}),[l]);return nC.createElement(J$.Provider,{value:h},nC.createElement(a,JC({className:LD(r.root,i,l&&r.dense,!u&&r.padding,d&&r.subheader),ref:t},f),d,n))})),Q$=PD({root:{listStyle:"none",margin:0,padding:0,position:"relative"},padding:{paddingTop:8,paddingBottom:8},dense:{},subheader:{paddingTop:0}},{name:"MuiList"})(Z$),eH="undefined"==typeof window?nC.useEffect:nC.useLayoutEffect,tH=nC.forwardRef((function(e,t){var n=e.alignItems,r=void 0===n?"center":n,i=e.autoFocus,o=void 0!==i&&i,a=e.button,s=void 0!==a&&a,l=e.children,c=e.classes,u=e.className,d=e.component,f=e.ContainerComponent,h=void 0===f?"li":f,p=e.ContainerProps,m=(p=void 0===p?{}:p).className,g=uE(p,["className"]),y=e.dense,v=void 0!==y&&y,b=e.disabled,x=void 0!==b&&b,w=e.disableGutters,k=void 0!==w&&w,S=e.divider,C=void 0!==S&&S,E=e.focusVisibleClassName,M=e.selected,_=void 0!==M&&M,q=uE(e,["alignItems","autoFocus","button","children","classes","className","component","ContainerComponent","ContainerProps","dense","disabled","disableGutters","divider","focusVisibleClassName","selected"]),D=nC.useContext(J$),R={dense:v||D.dense||!1,alignItems:r},T=nC.useRef(null);eH((function(){o&&T.current&&T.current.focus()}),[o]);var O,P,N=nC.Children.toArray(l),A=N.length&&(O=N[N.length-1],P=["ListItemSecondaryAction"],nC.isValidElement(O)&&-1!==P.indexOf(O.type.muiName)),I=nC.useCallback((function(e){T.current=Yj.findDOMNode(e)}),[]),L=VD(I,t),z=JC({className:LD(c.root,u,R.dense&&c.dense,!k&&c.gutters,C&&c.divider,x&&c.disabled,s&&c.button,"center"!==r&&c.alignItemsFlexStart,A&&c.secondaryAction,_&&c.selected),disabled:x},q),F=d||"li";return s&&(z.component=d||"div",z.focusVisibleClassName=LD(c.focusVisible,E),F=_$),A?(F=z.component||d?F:"div","li"===h&&("li"===F?F="div":"li"===z.component&&(z.component="div")),nC.createElement(J$.Provider,{value:R},nC.createElement(h,JC({className:LD(c.container,m),ref:L},g),nC.createElement(F,z,N),N.pop()))):nC.createElement(J$.Provider,{value:R},nC.createElement(F,JC({ref:L},z),N))})),nH=PD((function(e){return{root:{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,"&$focusVisible":{backgroundColor:e.palette.action.selected},"&$selected, &$selected:hover":{backgroundColor:e.palette.action.selected},"&$disabled":{opacity:.5}},container:{position:"relative"},focusVisible:{},dense:{paddingTop:4,paddingBottom:4},alignItemsFlexStart:{alignItems:"flex-start"},disabled:{},divider:{borderBottom:"1px solid ".concat(e.palette.divider),backgroundClip:"padding-box"},gutters:{paddingLeft:16,paddingRight:16},button:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:e.palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}},secondaryAction:{paddingRight:48},selected:{}}}),{name:"MuiListItem"})(tH),rH=nC.forwardRef((function(e,t){var n=e.classes,r=e.className,i=uE(e,["classes","className"]),o=nC.useContext(J$);return nC.createElement("div",JC({className:LD(n.root,r,"flex-start"===o.alignItems&&n.alignItemsFlexStart),ref:t},i))})),iH=PD((function(e){return{root:{minWidth:56,color:e.palette.action.active,flexShrink:0,display:"inline-flex"},alignItemsFlexStart:{marginTop:8}}}),{name:"MuiListItemIcon"})(rH),oH=nC.forwardRef((function(e,t){var n=e.children,r=e.classes,i=e.className,o=e.disableTypography,a=void 0!==o&&o,s=e.inset,l=void 0!==s&&s,c=e.primary,u=e.primaryTypographyProps,d=e.secondary,f=e.secondaryTypographyProps,h=uE(e,["children","classes","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"]),p=nC.useContext(J$).dense,m=null!=c?c:n;null==m||m.type===R$||a||(m=nC.createElement(R$,JC({variant:p?"body2":"body1",className:r.primary,component:"span",display:"block"},u),m));var g=d;return null==g||g.type===R$||a||(g=nC.createElement(R$,JC({variant:"body2",className:r.secondary,color:"textSecondary",display:"block"},f),g)),nC.createElement("div",JC({className:LD(r.root,i,p&&r.dense,l&&r.inset,m&&g&&r.multiline),ref:t},h),m,g)})),aH=PD({root:{flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},multiline:{marginTop:6,marginBottom:6},dense:{},inset:{paddingLeft:56},primary:{},secondary:{}},{name:"MuiListItemText"})(oH);function sH(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function lH(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function cH(e){return[e.horizontal,e.vertical].map((function(e){return"number"==typeof e?"".concat(e,"px"):e})).join(" ")}function uH(e){return"function"==typeof e?e():e}var dH=nC.forwardRef((function(e,t){var n=e.action,r=e.anchorEl,i=e.anchorOrigin,o=void 0===i?{vertical:"top",horizontal:"left"}:i,a=e.anchorPosition,s=e.anchorReference,l=void 0===s?"anchorEl":s,c=e.children,u=e.classes,d=e.className,f=e.container,h=e.elevation,p=void 0===h?8:h,m=e.getContentAnchorEl,g=e.marginThreshold,y=void 0===g?16:g,v=e.onEnter,b=e.onEntered,x=e.onEntering,w=e.onExit,k=e.onExited,S=e.onExiting,C=e.open,E=e.PaperProps,M=void 0===E?{}:E,_=e.transformOrigin,q=void 0===_?{vertical:"top",horizontal:"left"}:_,D=e.TransitionComponent,R=void 0===D?X$:D,T=e.transitionDuration,O=void 0===T?"auto":T,P=e.TransitionProps,N=void 0===P?{}:P,A=uE(e,["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","classes","className","container","elevation","getContentAnchorEl","marginThreshold","onEnter","onEntered","onEntering","onExit","onExited","onExiting","open","PaperProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"]),I=nC.useRef(),L=nC.useCallback((function(e){if("anchorPosition"===l)return a;var t=uH(r),n=(t&&1===t.nodeType?t:zD(I.current).body).getBoundingClientRect(),i=0===e?o.vertical:"center";return{top:n.top+sH(n,i),left:n.left+lH(n,o.horizontal)}}),[r,o.horizontal,o.vertical,a,l]),z=nC.useCallback((function(e){var t=0;if(m&&"anchorEl"===l){var n=m(e);if(n&&e.contains(n)){var r=function(e,t){for(var n=t,r=0;n&&n!==e;)r+=(n=n.parentElement).scrollTop;return r}(e,n);t=n.offsetTop+n.clientHeight/2-r||0}}return t}),[o.vertical,l,m]),F=nC.useCallback((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return{vertical:sH(e,q.vertical)+t,horizontal:lH(e,q.horizontal)}}),[q.horizontal,q.vertical]),j=nC.useCallback((function(e){var t=z(e),n={width:e.offsetWidth,height:e.offsetHeight},i=F(n,t);if("none"===l)return{top:null,left:null,transformOrigin:cH(i)};var o=L(t),a=o.top-i.vertical,s=o.left-i.horizontal,c=a+n.height,u=s+n.width,d=FD(uH(r)),f=d.innerHeight-y,h=d.innerWidth-y;if(a<y){var p=a-y;a-=p,i.vertical+=p}else if(c>f){var m=c-f;a-=m,i.vertical+=m}if(s<y){var g=s-y;s-=g,i.horizontal+=g}else if(u>h){var v=u-h;s-=v,i.horizontal+=v}return{top:"".concat(Math.round(a),"px"),left:"".concat(Math.round(s),"px"),transformOrigin:cH(i)}}),[r,l,L,z,F,y]),$=nC.useCallback((function(){var e=I.current;if(e){var t=j(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin}}),[j]),H=nC.useCallback((function(e){I.current=Yj.findDOMNode(e)}),[]);nC.useEffect((function(){C&&$()})),nC.useImperativeHandle(n,(function(){return C?{updatePosition:function(){$()}}:null}),[C,$]),nC.useEffect((function(){if(C){var e=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:166;function r(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];var a=this;clearTimeout(t),t=setTimeout((function(){e.apply(a,i)}),n)}return r.clear=function(){clearTimeout(t)},r}((function(){$()}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}}),[C,$]);var V=O;"auto"!==O||R.muiSupportAuto||(V=void 0);var B=f||(r?zD(uH(r)).body:void 0);return nC.createElement(W$,JC({container:B,open:C,ref:t,BackdropProps:{invisible:!0},className:LD(u.root,d)},A),nC.createElement(R,JC({appear:!0,in:C,onEnter:v,onEntered:b,onExit:w,onExited:k,onExiting:S,timeout:V},N,{onEntering:AD((function(e,t){x&&x(e,t),$()}),N.onEntering)}),nC.createElement(w$,JC({elevation:p,ref:H},M,{className:LD(u.paper,M.className)}),c)))})),fH=PD({root:{},paper:{position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}},{name:"MuiPopover"})(dH);function hH(e){return"large"===e?"20px":"small"===e?"12px":"16px"}function pH({d:e,size:t,style:n={},viewBox:r="0 0 16 16"}){const i={fontSize:hH(t),display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",...n};return rC.createElement("i",{style:i},rC.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:r,fill:"currentColor"},rC.createElement("path",{d:e})))}const mH="alternative-menu-item",gH=e=>{const{nested:t,className:n,...r}=e,i=(({nested:e,dir:t})=>Vq((n=>({root:{textAlign:"ltr"===t?"start":"end","&:focus":{boxShadow:"inset 0 0 0 2px #177FE6 !important"},...e&&"ltr"===t&&{paddingLeft:n.spacing(4)},...e&&"rtl"===t&&{paddingRight:n.spacing(4)}}}))))(e)();return rC.createElement(nH,MC({className:`${i.root} ${n}`},r))},yH=e=>{if("Tab"===e.key){const t=document.querySelectorAll(`.${mH}`);let n;e.shiftKey?null!=t&&t.length&&t[0]===e.target&&(n=t[t.length-1]):null!=t&&t.length&&t[t.length-1]===e.target&&([n]=t),n&&setTimeout((()=>{n.focus()}),50)}};function vH({title:e,selected:t,onClick:n,nested:r,icon:i,bold:o,dir:a}){const s=Tg.detectTextDirection(e);return rC.createElement(gH,{nested:r,role:"menuitem",button:!0,onClick:n,className:mH,onKeyDown:yH,dir:a,autoFocus:t},rC.createElement(aH,{primary:e,primaryTypographyProps:{dir:s,...o&&{style:{fontWeight:600}}}}),rC.createElement(iH,{style:{minWidth:16}},rC.createElement(pH,{d:t?cC:""})),i&&rC.createElement(iH,{style:{minWidth:16}},rC.createElement(pH,{d:i.d})))}vH.propTypes={title:RC.string.isRequired,selected:RC.bool,onClick:RC.func.isRequired,nested:RC.bool,icon:RC.shape({d:RC.string.isRequired}),bold:RC.bool,dir:RC.string.isRequired},vH.defaultProps={selected:!1,nested:!1,icon:void 0,bold:!1},gH.propTypes={nested:RC.bool,className:RC.string},gH.defaultProps={nested:!1,className:mH};const bH={bottom:{anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},top:{anchorOrigin:{vertical:"top",horizontal:"center"},transformOrigin:{vertical:"bottom",horizontal:"center"}},left:{anchorOrigin:{vertical:"center",horizontal:"left"},transformOrigin:{vertical:"center",horizontal:"right"}},right:{anchorOrigin:{vertical:"center",horizontal:"right"},transformOrigin:{vertical:"center",horizontal:"left"}}};function xH({chartId:e,alignTo:t,currentId:n,dir:r,dock:i,list:o,onClose:a,show:s,instruction:l}){const c=o.map(((t,i)=>{var s;return rC.createElement(rC.Fragment,{key:t.id},rC.createElement(vH,{icon:t.icon,title:t.title,bold:t.groupItem,selected:t.selected,onClick:()=>{t.onSelect&&t.onSelect(n),a(`${e}-${t.id}`)},dir:r}),(null===(s=t.children)||void 0===s?void 0:s.length)>0&&rC.createElement(Q$,{dense:!0,dir:r,component:"div",disablePadding:!0},t.children.map((e=>rC.createElement(vH,{key:e.id,nested:!0,title:e.title,selected:e.selected,onClick:()=>{e.onSelect(),a(t.id)},dir:r})))),i<o.length-1&&rC.createElement(Y$,{key:`divider-${t.id}`}))}));return rC.createElement(fH,MC({anchorEl:t,open:s,onClose:a},bH[i],{PaperProps:{style:{minWidth:"250px",maxHeight:"300px"}}}),rC.createElement(Q$,{dense:!0,disablePadding:!0,dir:r,"aria-label":l,component:"nav"},c))}xH.propTypes={chartId:RC.string.isRequired,alignTo:RC.any,currentId:RC.string.isRequired,dir:RC.string.isRequired,dock:RC.string.isRequired,list:RC.array,onClose:RC.func.isRequired,show:RC.bool.isRequired,instruction:RC.string.isRequired},xH.defaultProps={list:[],alignTo:null};const wH="title-button",kH="active-title-button",SH=OD((({children:e,...t})=>rC.createElement(O$,MC({size:"small",disableRipple:!0,disableTouchRipple:!0},t),e)))((()=>({"&:focus":{boxShadow:"inset 0 0 0 2px #177FE6 !important"}}))),CH=OD(O$)((()=>({borderRadius:"4px",width:"24px",height:"24px",minWidth:"22px",padding:0})));class EH extends rC.Component{constructor(e){super(e),this.state={open:!1,inSelection:e.selections&&e.selections.isActive(),hasPopoverOptions:!1,disableCyclicButton:!1},this.openPopover=this.openPopover.bind(this),this.closePopover=this.closePopover.bind(this),this.alignToRef=rC.createRef()}componentDidMount(){const{popover:e,selections:t,supportConditional:n,showGroupDimOptions:r}=this.props;t&&(this.onSelectionsActivated=()=>this.setState({inSelection:!0}),this.onSelectionsDeactivated=()=>this.setState({inSelection:!1}),t.addListener("activated",this.onSelectionsActivated),t.addListener("deactivated",this.onSelectionsDeactivated),t.addListener("canceled",this.onSelectionsDeactivated)),e&&(n||r)&&e.getPopoverOptions().then((e=>{this.setState({hasPopoverOptions:0!==e.length})}))}componentDidUpdate(e,t){const{popover:n,supportConditional:r,showGroupDimOptions:i}=this.props;n&&(r||i)&&n.getPopoverOptions().then((e=>{t.hasPopoverOptions!==(0!==e.length)&&this.setState({hasPopoverOptions:0!==e.length})}))}componentWillUnmount(){const{selections:e}=this.props;e&&(e.removeListener("activated",this.onSelectionsActivated),e.removeListener("deactivated",this.onSelectionsDeactivated),e.removeListener("canceled",this.onSelectionsDeactivated))}openPopover(e){if(!(this.state.closeTime&&Date.now()-this.state.closeTime<20)){if(e.target){const t=e.target.closest(`.${wH}`);t&&(t.focus(),t.classList.add(kH))}this.props.popover.getPopoverOptions().then((e=>{this.setState({open:!0,list:e})}))}}closePopover(e){if(this.setState({open:!1,closeTime:Date.now()}),"string"==typeof e)setTimeout((()=>{const t=document.querySelector(`.${wH}[data-id="${e}"]`);t&&t.focus()}),1e3);else{const e=document.querySelector(`.${kH}`);e&&(e.classList.remove(kH),setTimeout((()=>{e.focus()}),50))}}render(){const{chartId:e,titleData:t,popover:n,translator:r,disabled:i,isDimension:o,padding:a,minWidth:s,hasAlternative:l,supportConditional:c,showGroupDimOptions:u}=this.props,d={flex:"1 1 auto",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",fontWeight:"normal",lineHeight:"normal",...this.props.style},f=t.breadcrumbs.length,h=i||Boolean(!t.drillUp)||this.state.inSelection,p=t.breadcrumbs.map(((e,n)=>rC.createElement(SH,{style:{display:"flex",alignItems:"center",color:h&&"rgba(89, 89, 89, 0.8)",pointerEvents:h?"none":"auto",paddingTop:0,paddingBottom:0,height:"100%"},key:n,onClick:()=>h?void 0:t.drillUp(f-n),title:e},rC.createElement("span",{style:d},e),rC.createElement(pH,MC({},dC,{size:"small",style:{margin:"0 8px"}}))))),m=c||u?this.state.hasPopoverOptions:l,g=n&&!this.state.open?this.openPopover:this.closePopover,y=!n||i||this.state.inSelection,v={display:"flex",alignItems:"center",width:"100%",color:y&&"rgba(89, 89, 89, 0.8)",height:"100%",border:!o&&y&&"none",...a?{padding:a}:{paddingTop:0,paddingBottom:0},...s&&{minWidth:s}};this.state.open&&(v.background="rgba(0,0,0,0.08)");const b=()=>{this.setState({disableCyclicButton:!0})},x=Tg.detectTextDirection(t.text),w=rC.createElement(SH,{"aria-label":r.get(`Accessibility.${n&&m?"Alternative":"Normal"}.Instructions`,[t.text]),style:v,onClick:y?void 0:g,title:t.text,tabIndex:y?-1:0,onFocus:y?void 0:e=>{e.currentTarget.style.boxShadow="0px 0px 0px 2px #177FE6 inset",e.currentTarget.style.borderRadius="2px"},onBlur:y?void 0:e=>{e.currentTarget.style.boxShadow="none",e.currentTarget.style.borderRadius="0px"},onMouseDown:e=>{e.preventDefault()},className:`${wH} ${t.id}`,"data-id":`${e}-${t.id}`},t.locked&&rC.createElement(pH,MC({},lC,{size:"small",title:r.get("Tooltip.selections.locked")})),rC.createElement("span",{style:d,dir:x},t.text),n&&m&&rC.createElement(pH,MC({},uC,{size:"small",style:{margin:"0 8px"}})));return rC.createElement(rC.Fragment,null,t.icon&&t.icon.onClick&&rC.createElement(CH,{variant:"outlined",disabled:this.state.disableCyclicButton||this.state.inSelection,onClick:i?void 0:()=>t.icon.onClick({onError:b})},rC.createElement(pH,MC({},t.icon.path,{size:"small",title:r.get(t.icon.tooltip)}))),t.icon&&!t.icon.onClick&&rC.createElement(pH,MC({},t.icon.path,{size:"small",title:r.get(t.icon.tooltip),style:{margin:"0 4px 0 0"}})),p,rC.createElement("div",{ref:this.alignToRef,style:{overflow:"hidden",pointerEvents:m?"auto":"none",height:"100%"}},w),n&&m&&rC.createElement(xH,{chartId:e,dock:n.dock,dir:n.dir,currentId:t.id,alignTo:this.alignToRef.current,show:this.state.open,list:this.state.list,onClose:this.closePopover,changeTo:this.changeTo,instruction:r.get("Accessibility.Popover.Instructions")}))}}function MH(e){return{top:"bottom",bottom:"top",left:"right",right:"left"}[e]}function _H(e){function t(e){return!e.isDimension&&Mg.getValue(e,"hyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures.length")>0}return{renderer:"react",disableTriggers:!0,preferredSize:function(){const{height:n}=e.measureText({text:"M",fontSize:this.style.fontSize,fontFamily:this.style.fontFamily});return this.settings.settings.isDimension||t(this.settings.settings)?Math.max(28,n):Math.max(20,n)},render(){const{settings:{app:e,disabled:n,explicitItemInfos:r,hyperCube:i,hyperCubeDef:o,isDimension:a,minWidth:s,model:l,onChangeToAlternative:c,padding:u,rtl:d,selections:f,skipAttributeExpressions:h,translator:p,supportConditional:m=!1},layout:{dock:g}}=this.settings,y="top"!==g&&"bottom"!==g||!d?"ltr":"rtl",v=function(e,t){const n={pointerEvents:"auto",display:"flex",justifyContent:"center",alignItems:"center",height:"100%"};return"left"===e?(n.width=`${t.height}px`,n.height=`${t.width}px`,n.transform=`rotate(-90deg) translate(-${t.height}px, 0)`,n.transformOrigin="top left"):"right"===e&&(n.width=`${t.height}px`,n.height=`${t.width}px`,n.transform=`rotate(90deg) translate(0, -${t.width}px)`,n.transformOrigin="top left"),n}(g,this.rect),b=o&&o.qLayoutExclude&&o.qLayoutExclude.qHyperCubeDef,x=b&&b[a?"qDimensions":"qMeasures"]||[],w=r||i[a?"qDimensionInfo":"qMeasureInfo"],k=a?kC:CC,S=a?SC:EC,C=Boolean(l&&l.colorSupport&&l.modifiers),E=C&&((M=this.settings.settings).isDimension&&Mg.getValue(M,"hyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions.length")>0||t(this.settings.settings));var M;const _=w.map(((t,r)=>{var i;const o="number"==typeof t.explicitColumn?t.explicitColumn:r,y=S(t,o,l,e),v=r===w.length-1,b=Boolean(e)&&a&&"N"!==t.qGrouping,M=C||b?k({column:o,activeInfo:t,altList:x,app:e,dir:d?"rtl":"ltr",dock:MH(g),model:l,onChange:c,skipAttributeExpressions:h,translator:p,allowChangeOfAlternatives:C}):void 0;return rC.createElement(rC.Fragment,{key:t.cId},rC.createElement(EH,{chartId:null!==(i=null==l?void 0:l.id)&&void 0!==i?i:"",showGroupDimOptions:b,popover:M,titleData:y,model:l,translator:p,selections:f,disabled:n(),style:this.style,isDimension:a,padding:u,minWidth:s,hasAlternative:E,supportConditional:m}),!v&&rC.createElement("span",{style:{lineHeight:"normal",...this.style}},", "))}));return rC.createElement("div",{style:v,dir:y},_)}}}EH.propTypes={chartId:RC.string.isRequired,disabled:RC.bool.isRequired,padding:RC.string,minWidth:RC.string,titleData:RC.shape({breadcrumbs:RC.arrayOf(RC.string).isRequired,icon:RC.shape({path:RC.shape({d:RC.string.isRequired}),tooltip:RC.string.isRequired,onClick:RC.func}),index:RC.number.isRequired,locked:RC.bool.isRequired,text:RC.string.isRequired,popoverText:RC.string.isRequired,drillUp:RC.func,id:RC.string.isRequired}).isRequired,popover:RC.shape({dir:RC.string.isRequired,dock:RC.string.isRequired,getPopoverOptions:RC.func.isRequired}),translator:RC.shape({get:RC.func.isRequired}).isRequired,selections:RC.shape({isActive:RC.func,addListener:RC.func,removeListener:RC.func}),style:RC.shape({fontSize:RC.string,color:RC.string,fontFamily:RC.string}).isRequired,isDimension:RC.bool.isRequired,hasAlternative:RC.bool.isRequired,supportConditional:RC.bool.isRequired,showGroupDimOptions:RC.bool.isRequired},EH.defaultProps={popover:null,selections:null,padding:"",minWidth:""};const qH=AE({palette:{text:{primary:"rgba(89, 89, 89, 0.8)",secondary:"rgba(0, 0, 0, 0.55)",disabled:"rgba(0, 0, 0, 0.3)"},action:{disabled:"rgba(0, 0, 0, 0.3)"}},typography:{fontFamily:'"Source Sans Pro", "Arial", "sans-serif"',button:{textTransform:"initial",fontWeight:400}},shape:{borderRadius:2},shadows:["none","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)"],props:{MuiButtonBase:{disableRipple:!0}}});const DH=zE({productionPrefix:"q8463",disableGlobal:!0,seed:""});function RH(){function e({x:e,y:t,width:n,height:r,scaleRatio:i,margin:o}={}){const a={x:0,y:0,width:0,height:0,scaleRatio:{x:1,y:1},margin:{left:0,top:0}};return a.x=Number.isNaN(e)?a.x:e,a.y=Number.isNaN(t)?a.y:t,a.width=Number.isNaN(n)?a.width:n,a.height=Number.isNaN(r)?a.height:r,void 0!==i&&(a.scaleRatio.x=Number.isNaN(i.x)?a.scaleRatio.x:i.x,a.scaleRatio.y=Number.isNaN(i.y)?a.scaleRatio.y:i.y),void 0!==o&&(a.margin.left=Number.isNaN(o.left)?0:o.left,a.margin.top=Number.isNaN(o.top)?0:o.top),a}return function(t={}){const{createElement:n=document.createElement.bind(document)}=t;let r,i=e();const o={element:()=>r,root:()=>r,appendTo:e=>(r||(r=n("div"),r.style.position="absolute",r.style["-webkit-font-smoothing"]="antialiased",r.style["-moz-osx-font-smoothing"]="antialiased",r.style.pointerEvents="none"),e.appendChild(r),r),render(e){if(!r)return!1;const t=i.scaleRatio.x,n=i.scaleRatio.y;return r.style.left=`${Math.round(i.margin.left+i.x*t)}px`,r.style.top=`${Math.round(i.margin.top+i.y*n)}px`,r.style.width=`${Math.round(i.width)}px`,r.style.height=`${Math.round(i.height)}px`,r.style.transform=`scale(${t}, ${n})`,r.style.transformOrigin="top left",Kj.render(function(e,t){return rC.createElement(Fq,{generateClassName:t},rC.createElement(RD,{theme:qH},e))}(e,DH),r),!0},itemsAt:()=>[],findShapes:()=>[],clear:()=>(r&&Kj.unmountComponentAtNode(r),o),destroy(){r&&r.parentElement&&(Kj.unmountComponentAtNode(r),r.parentElement.removeChild(r)),r=null},size:t=>(t&&(i=e(t)),i)};return o}}const TH={black:"#000",white:"#fff"},OH="#e57373",PH="#ef5350",NH="#f44336",AH="#d32f2f",IH="#c62828",LH="#f3e5f5",zH="#ce93d8",FH="#ba68c8",jH="#ab47bc",$H="#9c27b0",HH="#7b1fa2",VH="#e3f2fd",BH="#90caf9",WH="#42a5f5",UH="#1976d2",YH="#1565c0",KH="#4fc3f7",GH="#29b6f6",XH="#03a9f4",JH="#0288d1",ZH="#01579b",QH="#81c784",eV="#66bb6a",tV="#4caf50",nV="#388e3c",rV="#2e7d32",iV="#1b5e20",oV="#ffb74d",aV="#ffa726",sV="#ff9800",lV="#f57c00",cV="#e65100",uV={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"};function dV(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;e<arguments.length;e+=1)t+="&args[]="+encodeURIComponent(arguments[e]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}var fV=Object.freeze({__proto__:null,default:dV}),hV="$$material";var pV=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)})),this.tags=[],this.ctr=0},e}(),mV="-ms-",gV="-moz-",yV="-webkit-",vV="comm",bV="rule",xV="decl",wV="@keyframes",kV=Math.abs,SV=String.fromCharCode,CV=Object.assign;function EV(e){return e.trim()}function MV(e,t,n){return e.replace(t,n)}function _V(e,t){return e.indexOf(t)}function qV(e,t){return 0|e.charCodeAt(t)}function DV(e,t,n){return e.slice(t,n)}function RV(e){return e.length}function TV(e){return e.length}function OV(e,t){return t.push(e),e}var PV=1,NV=1,AV=0,IV=0,LV=0,zV="";function FV(e,t,n,r,i,o,a){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:PV,column:NV,length:a,return:""}}function jV(e,t){return CV(FV("",null,null,"",null,null,0),e,{length:-e.length},t)}function $V(){return LV=IV>0?qV(zV,--IV):0,NV--,10===LV&&(NV=1,PV--),LV}function HV(){return LV=IV<AV?qV(zV,IV++):0,NV++,10===LV&&(NV=1,PV++),LV}function VV(){return qV(zV,IV)}function BV(){return IV}function WV(e,t){return DV(zV,e,t)}function UV(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function YV(e){return PV=NV=1,AV=RV(zV=e),IV=0,[]}function KV(e){return zV="",e}function GV(e){return EV(WV(IV-1,ZV(91===e?e+2:40===e?e+1:e)))}function XV(e){for(;(LV=VV())&&LV<33;)HV();return UV(e)>2||UV(LV)>3?"":" "}function JV(e,t){for(;--t&&HV()&&!(LV<48||LV>102||LV>57&&LV<65||LV>70&&LV<97););return WV(e,BV()+(t<6&&32==VV()&&32==HV()))}function ZV(e){for(;HV();)switch(LV){case e:return IV;case 34:case 39:34!==e&&39!==e&&ZV(LV);break;case 40:41===e&&ZV(e);break;case 92:HV()}return IV}function QV(e,t){for(;HV()&&e+LV!==57&&(e+LV!==84||47!==VV()););return"/*"+WV(t,IV-1)+"*"+SV(47===e?e:HV())}function eB(e){for(;!UV(VV());)HV();return WV(e,IV)}function tB(e){return KV(nB("",null,null,null,[""],e=YV(e),0,[0],e))}function nB(e,t,n,r,i,o,a,s,l){for(var c=0,u=0,d=a,f=0,h=0,p=0,m=1,g=1,y=1,v=0,b="",x=i,w=o,k=r,S=b;g;)switch(p=v,v=HV()){case 40:if(108!=p&&58==qV(S,d-1)){-1!=_V(S+=MV(GV(v),"&","&\f"),"&\f")&&(y=-1);break}case 34:case 39:case 91:S+=GV(v);break;case 9:case 10:case 13:case 32:S+=XV(p);break;case 92:S+=JV(BV()-1,7);continue;case 47:switch(VV()){case 42:case 47:OV(iB(QV(HV(),BV()),t,n),l);break;default:S+="/"}break;case 123*m:s[c++]=RV(S)*y;case 125*m:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+u:-1==y&&(S=MV(S,/\f/g,"")),h>0&&RV(S)-d&&OV(h>32?oB(S+";",r,n,d-1):oB(MV(S," ","")+";",r,n,d-2),l);break;case 59:S+=";";default:if(OV(k=rB(S,t,n,c,u,i,s,b,x=[],w=[],d),o),123===v)if(0===u)nB(S,t,k,k,x,o,d,s,w);else switch(99===f&&110===qV(S,3)?100:f){case 100:case 108:case 109:case 115:nB(e,k,k,r&&OV(rB(e,k,k,0,0,i,s,b,i,x=[],d),w),i,w,d,s,r?x:w);break;default:nB(S,k,k,k,[""],w,0,s,w)}}c=u=h=0,m=y=1,b=S="",d=a;break;case 58:d=1+RV(S),h=p;default:if(m<1)if(123==v)--m;else if(125==v&&0==m++&&125==$V())continue;switch(S+=SV(v),v*m){case 38:y=u>0?1:(S+="\f",-1);break;case 44:s[c++]=(RV(S)-1)*y,y=1;break;case 64:45===VV()&&(S+=GV(HV())),f=VV(),u=d=RV(b=S+=eB(BV())),v++;break;case 45:45===p&&2==RV(S)&&(m=0)}}return o}function rB(e,t,n,r,i,o,a,s,l,c,u){for(var d=i-1,f=0===i?o:[""],h=TV(f),p=0,m=0,g=0;p<r;++p)for(var y=0,v=DV(e,d+1,d=kV(m=a[p])),b=e;y<h;++y)(b=EV(m>0?f[y]+" "+v:MV(v,/&\f/g,f[y])))&&(l[g++]=b);return FV(e,t,n,0===i?bV:s,l,c,u)}function iB(e,t,n){return FV(e,t,n,vV,SV(LV),DV(e,2,-2),0)}function oB(e,t,n,r){return FV(e,t,n,xV,DV(e,0,r),DV(e,r+1,-1),r)}function aB(e,t){for(var n="",r=TV(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function sB(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case xV:return e.return=e.return||e.value;case vV:return"";case wV:return e.return=e.value+"{"+aB(e.children,r)+"}";case bV:e.value=e.props.join(",")}return RV(n=aB(e.children,r))?e.return=e.value+"{"+n+"}":""}function lB(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var cB=function(e,t,n){for(var r=0,i=0;r=i,i=VV(),38===r&&12===i&&(t[n]=1),!UV(i);)HV();return WV(e,IV)},uB=function(e,t){return KV(function(e,t){var n=-1,r=44;do{switch(UV(r)){case 0:38===r&&12===VV()&&(t[n]=1),e[n]+=cB(IV-1,t,n);break;case 2:e[n]+=GV(r);break;case 4:if(44===r){e[++n]=58===VV()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=SV(r)}}while(r=HV());return e}(YV(e),t))},dB=new WeakMap,fB=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||dB.get(n))&&!r){dB.set(e,!0);for(var i=[],o=uB(t,i),a=n.props,s=0,l=0;s<o.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=i[s]?o[s].replace(/&\f/g,a[c]):a[c]+" "+o[s]}}},hB=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function pB(e,t){switch(function(e,t){return 45^qV(e,0)?(((t<<2^qV(e,0))<<2^qV(e,1))<<2^qV(e,2))<<2^qV(e,3):0}(e,t)){case 5103:return yV+"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 yV+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return yV+e+gV+e+mV+e+e;case 6828:case 4268:return yV+e+mV+e+e;case 6165:return yV+e+mV+"flex-"+e+e;case 5187:return yV+e+MV(e,/(\w+).+(:[^]+)/,yV+"box-$1$2"+mV+"flex-$1$2")+e;case 5443:return yV+e+mV+"flex-item-"+MV(e,/flex-|-self/,"")+e;case 4675:return yV+e+mV+"flex-line-pack"+MV(e,/align-content|flex-|-self/,"")+e;case 5548:return yV+e+mV+MV(e,"shrink","negative")+e;case 5292:return yV+e+mV+MV(e,"basis","preferred-size")+e;case 6060:return yV+"box-"+MV(e,"-grow","")+yV+e+mV+MV(e,"grow","positive")+e;case 4554:return yV+MV(e,/([^-])(transform)/g,"$1"+yV+"$2")+e;case 6187:return MV(MV(MV(e,/(zoom-|grab)/,yV+"$1"),/(image-set)/,yV+"$1"),e,"")+e;case 5495:case 3959:return MV(e,/(image-set\([^]*)/,yV+"$1$`$1");case 4968:return MV(MV(e,/(.+:)(flex-)?(.*)/,yV+"box-pack:$3"+mV+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+yV+e+e;case 4095:case 3583:case 4068:case 2532:return MV(e,/(.+)-inline(.+)/,yV+"$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(RV(e)-1-t>6)switch(qV(e,t+1)){case 109:if(45!==qV(e,t+4))break;case 102:return MV(e,/(.+:)(.+)-([^]+)/,"$1"+yV+"$2-$3$1"+gV+(108==qV(e,t+3)?"$3":"$2-$3"))+e;case 115:return~_V(e,"stretch")?pB(MV(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==qV(e,t+1))break;case 6444:switch(qV(e,RV(e)-3-(~_V(e,"!important")&&10))){case 107:return MV(e,":",":"+yV)+e;case 101:return MV(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+yV+(45===qV(e,14)?"inline-":"")+"box$3$1"+yV+"$2$3$1"+mV+"$2box$3")+e}break;case 5936:switch(qV(e,t+11)){case 114:return yV+e+mV+MV(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return yV+e+mV+MV(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return yV+e+mV+MV(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return yV+e+mV+e+e}return e}var mB=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case xV:e.return=pB(e.value,e.length);break;case wV:return aB([jV(e,{value:MV(e.value,"@","@"+yV)})],r);case bV:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return aB([jV(e,{props:[MV(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return aB([jV(e,{props:[MV(t,/:(plac\w+)/,":"+yV+"input-$1")]}),jV(e,{props:[MV(t,/:(plac\w+)/,":-moz-$1")]}),jV(e,{props:[MV(t,/:(plac\w+)/,mV+"input-$1")]})],r)}return""}))}}],gB=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r,i,o=e.stylisPlugins||mB,a={},s=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;s.push(e)}));var l,c,u=[sB,(c=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&c(e)})],d=function(e){var t=TV(e);return function(n,r,i,o){for(var a="",s=0;s<t;s++)a+=e[s](n,r,i,o)||"";return a}}([fB,hB].concat(o,u));i=function(e,t,n,r){l=n,function(e){aB(tB(e),d)}(e?e+"{"+t.styles+"}":t.styles),r&&(f.inserted[t.name]=!0)};var f={key:t,sheet:new pV({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:i};return f.sheet.hydrate(s),f};function yB(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")})),r}var vB=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},bB=function(e,t,n){vB(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var i=t;do{e.insert(t===i?"."+r:"",i,e.sheet,!0),i=i.next}while(void 0!==i)}};var xB={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,scale: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},wB=/[A-Z]|^ms/g,kB=/_EMO_([^_]+?)_([^]*?)_EMO_/g,SB=function(e){return 45===e.charCodeAt(1)},CB=function(e){return null!=e&&"boolean"!=typeof e},EB=lB((function(e){return SB(e)?e:e.replace(wB,"-$&").toLowerCase()})),MB=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(kB,(function(e,t,n){return qB={name:t,styles:n,next:qB},t}))}return 1===xB[e]||SB(e)||"number"!=typeof t||0===t?t:t+"px"};function _B(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var i=n;if(1===i.anim)return qB={name:i.name,styles:i.styles,next:qB},i.name;var o=n;if(void 0!==o.styles){var a=o.next;if(void 0!==a)for(;void 0!==a;)qB={name:a.name,styles:a.styles,next:qB},a=a.next;return o.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=_B(e,t,n[i])+";";else for(var o in n){var a=n[o];if("object"!=typeof a){var s=a;null!=t&&void 0!==t[s]?r+=o+"{"+t[s]+"}":CB(s)&&(r+=EB(o)+":"+MB(o,s)+";")}else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var l=_B(e,t,a);switch(o){case"animation":case"animationName":r+=EB(o)+":"+l+";";break;default:r+=o+"{"+l+"}"}}else for(var c=0;c<a.length;c++)CB(a[c])&&(r+=EB(o)+":"+MB(o,a[c])+";")}return r}(e,t,n);case"function":if(void 0!==e){var s=qB,l=n(e);return qB=s,_B(e,t,l)}}var c=n;if(null==t)return c;var u=t[c];return void 0!==u?u:c}var qB,DB=/label:\s*([^\s;{]+)\s*(;|$)/g;function RB(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,i="";qB=void 0;var o=e[0];null==o||void 0===o.raw?(r=!1,i+=_B(n,t,o)):i+=o[0];for(var a=1;a<e.length;a++){if(i+=_B(n,t,e[a]),r)i+=o[a]}DB.lastIndex=0;for(var s,l="";null!==(s=DB.exec(i));)l+="-"+s[1];var c=function(e){for(var t,n=0,r=0,i=e.length;i>=4;++r,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(i)+l;return{name:c,styles:i,next:qB}}var TB,OB,PB=!!iC.useInsertionEffect&&iC.useInsertionEffect,NB=PB||function(e){return e()},AB=PB||nC.useLayoutEffect,IB=nC.createContext("undefined"!=typeof HTMLElement?gB({key:"css"}):null),LB=IB.Provider,zB=function(e){return nC.forwardRef((function(t,n){var r=nC.useContext(IB);return e(t,r,n)}))},FB=nC.createContext({}),jB={}.hasOwnProperty,$B="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",HB=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return vB(t,n,r),NB((function(){return bB(t,n,r)})),null},VB=zB((function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var i=e[$B],o=[r],a="";"string"==typeof e.className?a=yB(t.registered,o,e.className):null!=e.className&&(a=e.className+" ");var s=RB(o,void 0,nC.useContext(FB));a+=t.key+"-"+s.name;var l={};for(var c in e)jB.call(e,c)&&"css"!==c&&c!==$B&&(l[c]=e[c]);return l.className=a,n&&(l.ref=n),nC.createElement(nC.Fragment,null,nC.createElement(HB,{cache:t,serialized:s,isStringTag:"string"==typeof i}),nC.createElement(i,l))})),BB=VB,WB=function(e,t){var n=arguments;if(null==t||!jB.call(t,"css"))return nC.createElement.apply(void 0,n);var r=n.length,i=new Array(r);i[0]=BB,i[1]=function(e,t){var n={};for(var r in t)jB.call(t,r)&&(n[r]=t[r]);return n[$B]=e,n}(e,t);for(var o=2;o<r;o++)i[o]=n[o];return nC.createElement.apply(null,i)};TB=WB||(WB={}),OB||(OB=TB.JSX||(TB.JSX={}));var UB=zB((function(e,t){var n=RB([e.styles],void 0,nC.useContext(FB)),r=nC.useRef();return AB((function(){var e=t.key+"-global",i=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),o=!1,a=document.querySelector('style[data-emotion="'+e+" "+n.name+'"]');return t.sheet.tags.length&&(i.before=t.sheet.tags[0]),null!==a&&(o=!0,a.setAttribute("data-emotion",e),i.hydrate([a])),r.current=[i,o],function(){i.flush()}}),[t]),AB((function(){var e=r.current,i=e[0];if(e[1])e[1]=!1;else{if(void 0!==n.next&&bB(t,n.next,!0),i.tags.length){var o=i.tags[i.tags.length-1].nextElementSibling;i.before=o,i.flush()}t.insert("",n,i,!1)}}),[t,n.name]),null}));function YB(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return RB(t)}function KB(){var e=YB.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_"}}}var GB=/^((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|fetchpriority|fetchPriority|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)-.*))$/,XB=lB((function(e){return GB.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),JB=function(e){return"theme"!==e},ZB=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?XB:JB},QB=function(e,t,n){var r;if(t){var i=t.shouldForwardProp;r=e.__emotion_forwardProp&&i?function(t){return e.__emotion_forwardProp(t)&&i(t)}:i}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},eW=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return vB(t,n,r),NB((function(){return bB(t,n,r)})),null},tW=function e(t,n){var r,i,o=t.__emotion_real===t,a=o&&t.__emotion_base||t;void 0!==n&&(r=n.label,i=n.target);var s=QB(t,n,o),l=s||ZB(a),c=!l("as");return function(){var u=arguments,d=o&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&d.push("label:"+r+";"),null==u[0]||void 0===u[0].raw)d.push.apply(d,u);else{var f=u[0];d.push(f[0]);for(var h=u.length,p=1;p<h;p++)d.push(u[p],f[p])}var m=zB((function(e,t,n){var r=c&&e.as||a,o="",u=[],f=e;if(null==e.theme){for(var h in f={},e)f[h]=e[h];f.theme=nC.useContext(FB)}"string"==typeof e.className?o=yB(t.registered,u,e.className):null!=e.className&&(o=e.className+" ");var p=RB(d.concat(u),t.registered,f);o+=t.key+"-"+p.name,void 0!==i&&(o+=" "+i);var m=c&&void 0===s?ZB(r):l,g={};for(var y in e)c&&"as"===y||m(y)&&(g[y]=e[y]);return g.className=o,n&&(g.ref=n),nC.createElement(nC.Fragment,null,nC.createElement(eW,{cache:t,serialized:p,isStringTag:"string"==typeof r}),nC.createElement(r,g))}));return m.displayName=void 0!==r?r:"Styled("+("string"==typeof a?a:a.displayName||a.name||"Component")+")",m.defaultProps=t.defaultProps,m.__emotion_real=m,m.__emotion_base=a,m.__emotion_styles=d,m.__emotion_forwardProp=s,Object.defineProperty(m,"toString",{value:function(){return"."+i}}),m.withComponent=function(t,r){return e(t,JC({},n,r,{shouldForwardProp:QB(m,r,!0)})).apply(void 0,d)},m}}.bind(null);["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){tW[e]=tW(e)}));var nW={exports:{}},rW={},iW=nC,oW=Symbol.for("react.element"),aW=Symbol.for("react.fragment"),sW=Object.prototype.hasOwnProperty,lW=iW.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,cW={key:!0,ref:!0,__self:!0,__source:!0};function uW(e,t,n){var r,i={},o=null,a=null;for(r in void 0!==n&&(o=""+n),void 0!==t.key&&(o=""+t.key),void 0!==t.ref&&(a=t.ref),t)sW.call(t,r)&&!cW.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:oW,type:e,key:o,ref:a,props:i,_owner:lW.current}}rW.Fragment=aW,rW.jsx=uW,rW.jsxs=uW,nW.exports=rW;var dW=nW.exports;let fW;"object"==typeof document&&(fW=gB({key:"css",prepend:!0}));var hW=Object.freeze({__proto__:null,GlobalStyles:function(e){const{styles:t,defaultTheme:n={}}=e,r="function"==typeof t?e=>{return t(null==(r=e)||0===Object.keys(r).length?n:e);var r}:t;return dW.jsx(UB,{styles:r})}
|
|
45
45
|
/**
|
|
46
46
|
* @mui/styled-engine v5.16.14
|
|
47
47
|
*
|
|
@@ -123,4 +123,4 @@ e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,i,o,a,s,l,c,u,d,f=e.le
|
|
|
123
123
|
}
|
|
124
124
|
`),DG.rippleVisible,IG,550,(({theme:e})=>e.transitions.easing.easeInOut),DG.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),DG.child,DG.childLeaving,LG,550,(({theme:e})=>e.transitions.easing.easeInOut),DG.childPulsate,zG,(({theme:e})=>e.transitions.easing.easeInOut)),$G=nC.forwardRef((function(e,t){const n=PK({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:i={},className:o}=n,a=cE(n,RG),[s,l]=nC.useState([]),c=nC.useRef(0),u=nC.useRef(null);nC.useEffect((()=>{u.current&&(u.current(),u.current=null)}),[s]);const d=nC.useRef(!1),f=vY(),h=nC.useRef(null),p=nC.useRef(null),m=nC.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:o,cb:a}=e;l((e=>[...e,dW.jsx(jG,{classes:{ripple:OU(i.ripple,DG.ripple),rippleVisible:OU(i.rippleVisible,DG.rippleVisible),ripplePulsate:OU(i.ripplePulsate,DG.ripplePulsate),child:OU(i.child,DG.child),childLeaving:OU(i.childLeaving,DG.childLeaving),childPulsate:OU(i.childPulsate,DG.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:o},c.current)])),c.current+=1,u.current=a}),[i]),g=nC.useCallback(((e={},t={},n=()=>{})=>{const{pulsate:i=!1,center:o=r||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&d.current)return void(d.current=!1);"touchstart"===(null==e?void 0:e.type)&&(d.current=!0);const s=a?null:p.current,l=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0};let c,u,g;if(o||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(l.width/2),u=Math.round(l.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;c=Math.round(t-l.left),u=Math.round(n-l.top)}if(o)g=Math.sqrt((2*l.width**2+l.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((s?s.clientWidth:0)-c),c)+2,t=2*Math.max(Math.abs((s?s.clientHeight:0)-u),u)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===h.current&&(h.current=()=>{m({pulsate:i,rippleX:c,rippleY:u,rippleSize:g,cb:n})},f.start(80,(()=>{h.current&&(h.current(),h.current=null)}))):m({pulsate:i,rippleX:c,rippleY:u,rippleSize:g,cb:n})}),[r,m,f]),y=nC.useCallback((()=>{g({},{pulsate:!0})}),[g]),v=nC.useCallback(((e,t)=>{if(f.clear(),"touchend"===(null==e?void 0:e.type)&&h.current)return h.current(),h.current=null,void f.start(0,(()=>{v(e,t)}));h.current=null,l((e=>e.length>0?e.slice(1):e)),u.current=t}),[f]);return nC.useImperativeHandle(t,(()=>({pulsate:y,start:g,stop:v})),[y,g,v]),dW.jsx(FG,JC({className:OU(DG.root,i.root,o),ref:p},a,{children:dW.jsx(v$,{component:null,exit:!0,children:s})}))}));function HG(e){return NU("MuiButtonBase",e)}const VG=AU("MuiButtonBase",["root","disabled","focusVisible"]),BG=["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"],WG=uG("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"},[`&.${VG.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),UG=nC.forwardRef((function(e,t){const n=PK({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:i=!1,children:o,className:a,component:s="button",disabled:l=!1,disableRipple:c=!1,disableTouchRipple:u=!1,focusRipple:d=!1,LinkComponent:f="a",onBlur:h,onClick:p,onContextMenu:m,onDragLeave:g,onFocus:y,onFocusVisible:v,onKeyDown:b,onKeyUp:x,onMouseDown:w,onMouseLeave:k,onMouseUp:S,onTouchEnd:C,onTouchMove:E,onTouchStart:M,tabIndex:_=0,TouchRippleProps:q,touchRippleRef:D,type:R}=n,T=cE(n,BG),O=nC.useRef(null),P=nC.useRef(null),N=pY(P,D),{isFocusVisibleRef:A,onFocus:I,onBlur:L,ref:z}=_Y(),[F,j]=nC.useState(!1);l&&F&&j(!1),nC.useImperativeHandle(r,(()=>({focusVisible:()=>{j(!0),O.current.focus()}})),[]);const[$,H]=nC.useState(!1);nC.useEffect((()=>{H(!0)}),[]);const V=$&&!c&&!l;function B(e,t,n=u){return hY((r=>{t&&t(r);return!n&&P.current&&P.current[e](r),!0}))}nC.useEffect((()=>{F&&d&&!c&&$&&P.current.pulsate()}),[c,d,F,$]);const W=B("start",w),U=B("stop",m),Y=B("stop",g),K=B("stop",S),G=B("stop",(e=>{F&&e.preventDefault(),k&&k(e)})),X=B("start",M),J=B("stop",C),Z=B("stop",E),Q=B("stop",(e=>{L(e),!1===A.current&&j(!1),h&&h(e)}),!1),ee=hY((e=>{O.current||(O.current=e.currentTarget),I(e),!0===A.current&&(j(!0),v&&v(e)),y&&y(e)})),te=()=>{const e=O.current;return s&&"button"!==s&&!("A"===e.tagName&&e.href)},ne=nC.useRef(!1),re=hY((e=>{d&&!ne.current&&F&&P.current&&" "===e.key&&(ne.current=!0,P.current.stop(e,(()=>{P.current.start(e)}))),e.target===e.currentTarget&&te()&&" "===e.key&&e.preventDefault(),b&&b(e),e.target===e.currentTarget&&te()&&"Enter"===e.key&&!l&&(e.preventDefault(),p&&p(e))})),ie=hY((e=>{d&&" "===e.key&&P.current&&F&&!e.defaultPrevented&&(ne.current=!1,P.current.stop(e,(()=>{P.current.pulsate(e)}))),x&&x(e),p&&e.target===e.currentTarget&&te()&&" "===e.key&&!e.defaultPrevented&&p(e)}));let oe=s;"button"===oe&&(T.href||T.to)&&(oe=f);const ae={};"button"===oe?(ae.type=void 0===R?"button":R,ae.disabled=l):(T.href||T.to||(ae.role="button"),l&&(ae["aria-disabled"]=l));const se=pY(t,z,O),le=JC({},n,{centerRipple:i,component:s,disabled:l,disableRipple:c,disableTouchRipple:u,focusRipple:d,tabIndex:_,focusVisible:F}),ce=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:i}=e,o=qY({root:["root",t&&"disabled",n&&"focusVisible"]},HG,i);return n&&r&&(o.root+=` ${r}`),o})(le);return dW.jsxs(WG,JC({as:oe,className:OU(ce.root,a),ownerState:le,onBlur:Q,onClick:p,onContextMenu:U,onFocus:ee,onKeyDown:re,onKeyUp:ie,onMouseDown:W,onMouseLeave:G,onMouseUp:K,onDragLeave:Y,onTouchEnd:J,onTouchMove:Z,onTouchStart:X,ref:se,tabIndex:l?-1:_,type:R},ae,T,{children:[o,V?dW.jsx($G,JC({ref:N,center:i},q)):null]}))}));function YG(e){return NU("MuiTypography",e)}AU("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const KG=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],GG=uG("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],"inherit"!==n.align&&t[`align${EW(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>JC({margin:0},"inherit"===t.variant&&{font:"inherit"},"inherit"!==t.variant&&e.typography[t.variant],"inherit"!==t.align&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16}))),XG={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},JG={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},ZG=nC.forwardRef((function(e,t){const n=PK({props:e,name:"MuiTypography"}),r=(e=>JG[e]||e)(n.color),i=_U(JC({},n,{color:r})),{align:o="inherit",className:a,component:s,gutterBottom:l=!1,noWrap:c=!1,paragraph:u=!1,variant:d="body1",variantMapping:f=XG}=i,h=cE(i,KG),p=JC({},i,{align:o,color:r,className:a,component:s,gutterBottom:l,noWrap:c,paragraph:u,variant:d,variantMapping:f}),m=s||(u?"p":f[d]||XG[d])||"span",g=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:i,variant:o,classes:a}=e;return qY({root:["root",o,"inherit"!==e.align&&`align${EW(t)}`,n&&"gutterBottom",r&&"noWrap",i&&"paragraph"]},YG,a)})(p);return dW.jsx(GG,JC({as:m,ref:t,ownerState:p,className:OU(g.root,a)},h))})),QG=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function eX(e){const t=[],n=[];return Array.from(e.querySelectorAll(QG)).forEach(((e,r)=>{const i=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==i&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}(e))}(e)&&(0===i?t.push(e):n.push({documentOrder:r,tabIndex:i,node:e}))})),n.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function tX(){return!0}function nX(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:o=eX,isEnabled:a=tX,open:s}=e,l=nC.useRef(!1),c=nC.useRef(null),u=nC.useRef(null),d=nC.useRef(null),f=nC.useRef(null),h=nC.useRef(!1),p=nC.useRef(null),m=pY(t.ref,p),g=nC.useRef(null);nC.useEffect((()=>{s&&p.current&&(h.current=!n)}),[n,s]),nC.useEffect((()=>{if(!s||!p.current)return;const e=uY(p.current);return p.current.contains(e.activeElement)||(p.current.hasAttribute("tabIndex")||p.current.setAttribute("tabIndex","-1"),h.current&&p.current.focus()),()=>{i||(d.current&&d.current.focus&&(l.current=!0,d.current.focus()),d.current=null)}}),[s]),nC.useEffect((()=>{if(!s||!p.current)return;const e=uY(p.current),t=t=>{g.current=t,!r&&a()&&"Tab"===t.key&&e.activeElement===p.current&&t.shiftKey&&(l.current=!0,u.current&&u.current.focus())},n=()=>{const t=p.current;if(null===t)return;if(!e.hasFocus()||!a()||l.current)return void(l.current=!1);if(t.contains(e.activeElement))return;if(r&&e.activeElement!==c.current&&e.activeElement!==u.current)return;if(e.activeElement!==f.current)f.current=null;else if(null!==f.current)return;if(!h.current)return;let n=[];if(e.activeElement!==c.current&&e.activeElement!==u.current||(n=o(p.current)),n.length>0){var i,s;const e=Boolean((null==(i=g.current)?void 0:i.shiftKey)&&"Tab"===(null==(s=g.current)?void 0:s.key)),t=n[0],r=n[n.length-1];"string"!=typeof t&&"string"!=typeof r&&(e?r.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const i=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()}),50);return()=>{clearInterval(i),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}}),[n,r,i,a,s,o]);const y=e=>{null===d.current&&(d.current=e.relatedTarget),h.current=!0};return dW.jsxs(nC.Fragment,{children:[dW.jsx("div",{tabIndex:s?0:-1,onFocus:y,ref:c,"data-testid":"sentinelStart"}),nC.cloneElement(t,{ref:m,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),h.current=!0,f.current=e.target;const n=t.props.onFocus;n&&n(e)}}),dW.jsx("div",{tabIndex:s?0:-1,onFocus:y,ref:u,"data-testid":"sentinelEnd"})]})}const rX=nC.forwardRef((function(e,t){const{children:n,container:r,disablePortal:i=!1}=e,[o,a]=nC.useState(null),s=pY(nC.isValidElement(n)?n.ref:null,t);if(sY((()=>{i||a(function(e){return"function"==typeof e?e():e}(r)||document.body)}),[r,i]),sY((()=>{if(o&&!i)return fY(t,o),()=>{fY(t,null)}}),[t,o,i]),i){if(nC.isValidElement(n)){const e={ref:s};return nC.cloneElement(n,e)}return dW.jsx(nC.Fragment,{children:n})}return dW.jsx(nC.Fragment,{children:o?Yj.createPortal(n,o):o})}));function iX(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function oX(e){return parseInt(dY(e).getComputedStyle(e).paddingRight,10)||0}function aX(e,t,n,r,i){const o=[t,n,...r];[].forEach.call(e.children,(e=>{const t=-1===o.indexOf(e),n=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&iX(e,i)}))}function sX(e,t){let n=-1;return e.some(((e,r)=>!!t(e)&&(n=r,!0))),n}function lX(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=uY(e);return t.body===e?dY(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=function(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}(uY(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${oX(r)+e}px`;const t=uY(r).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${oX(t)+e}px`}))}let e;if(r.parentNode instanceof DocumentFragment)e=uY(r).body;else{const t=r.parentElement,n=dY(r);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===n.getComputedStyle(t).overflowY?t:r}n.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{n.forEach((({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)}))}}const cX=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&iX(e.modalRef,!1);const r=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);aX(t,e.mount,e.modalRef,r,!0);const i=sX(this.containers,(e=>e.container===t));return-1!==i?(this.containers[i].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n)}mount(e,t){const n=sX(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[n];r.restore||(r.restore=lX(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=sX(this.containers,(t=>-1!==t.modals.indexOf(e))),i=this.containers[r];if(i.modals.splice(i.modals.indexOf(e),1),this.modals.splice(n,1),0===i.modals.length)i.restore&&i.restore(),e.modalRef&&iX(e.modalRef,t),aX(i.container,e.mount,e.modalRef,i.hiddenSiblings,!1),this.containers.splice(r,1);else{const e=i.modals[i.modals.length-1];e.modalRef&&iX(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function uX(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:i=cX,closeAfterTransition:o=!1,onTransitionEnter:a,onTransitionExited:s,children:l,onClose:c,open:u,rootRef:d}=e,f=nC.useRef({}),h=nC.useRef(null),p=nC.useRef(null),m=pY(p,d),[g,y]=nC.useState(!u),v=function(e){return!!e&&e.props.hasOwnProperty("in")}(l);let b=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(b=!1);const x=()=>(f.current.modalRef=p.current,f.current.mount=h.current,f.current),w=()=>{i.mount(x(),{disableScrollLock:r}),p.current&&(p.current.scrollTop=0)},k=hY((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||uY(h.current).body;i.add(x(),e),p.current&&w()})),S=nC.useCallback((()=>i.isTopModal(x())),[i]),C=hY((e=>{h.current=e,e&&(u&&S()?w():p.current&&iX(p.current,b))})),E=nC.useCallback((()=>{i.remove(x(),b)}),[b,i]);nC.useEffect((()=>()=>{E()}),[E]),nC.useEffect((()=>{u?k():v&&o||E()}),[u,E,v,o,k]);const M=e=>t=>{var r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&229!==t.which&&S()&&(n||(t.stopPropagation(),c&&c(t,"escapeKeyDown")))},_=e=>t=>{var n;null==(n=e.onClick)||n.call(e,t),t.target===t.currentTarget&&c&&c(t,"backdropClick")};return{getRootProps:(t={})=>{const n=EG(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r=JC({},n,t);return JC({role:"presentation"},r,{onKeyDown:M(r),ref:m})},getBackdropProps:(e={})=>JC({"aria-hidden":!0},e,{onClick:_(e),open:u}),getTransitionProps:()=>({onEnter:cY((()=>{y(!1),a&&a()}),null==l?void 0:l.props.onEnter),onExited:cY((()=>{y(!0),s&&s(),o&&E()}),null==l?void 0:l.props.onExited)}),rootRef:m,portalRef:C,isTopModal:S,exited:g,hasTransition:v}}const dX=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],fX={entering:{opacity:1},entered:{opacity:1}},hX=nC.forwardRef((function(e,t){const n=OK(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:i,appear:o=!0,children:a,easing:s,in:l,onEnter:c,onEntered:u,onEntering:d,onExit:f,onExited:h,onExiting:p,style:m,timeout:g=r,TransitionComponent:y=f$}=e,v=cE(e,dX),b=nC.useRef(null),x=pY(b,a.ref,t),w=e=>t=>{if(e){const n=b.current;void 0===t?e(n):e(n,t)}},k=w(d),S=w(((e,t)=>{vG(e);const r=bG({style:m,timeout:g,easing:s},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),c&&c(e,t)})),C=w(u),E=w(p),M=w((e=>{const t=bG({style:m,timeout:g,easing:s},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),f&&f(e)})),_=w(h);return dW.jsx(y,JC({appear:o,in:l,nodeRef:b,onEnter:S,onEntered:C,onEntering:k,onExit:M,onExited:_,onExiting:E,addEndListener:e=>{i&&i(b.current,e)},timeout:g},v,{children:(e,t)=>nC.cloneElement(a,JC({style:JC({opacity:0,visibility:"exited"!==e||l?void 0:"hidden"},fX[e],m,a.props.style),ref:x},t))}))}));function pX(e){return NU("MuiBackdrop",e)}AU("MuiBackdrop",["root","invisible"]);const mX=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],gX=uG("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((({ownerState:e})=>JC({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"}))),yX=nC.forwardRef((function(e,t){var n,r,i;const o=PK({props:e,name:"MuiBackdrop"}),{children:a,className:s,component:l="div",components:c={},componentsProps:u={},invisible:d=!1,open:f,slotProps:h={},slots:p={},TransitionComponent:m=hX,transitionDuration:g}=o,y=cE(o,mX),v=JC({},o,{component:l,invisible:d}),b=(e=>{const{classes:t,invisible:n}=e;return qY({root:["root",n&&"invisible"]},pX,t)})(v),x=null!=(n=h.root)?n:u.root;return dW.jsx(m,JC({in:f,timeout:g},y,{children:dW.jsx(gX,JC({"aria-hidden":!0},x,{as:null!=(r=null!=(i=p.root)?i:c.Root)?r:l,className:OU(b.root,s,null==x?void 0:x.className),ownerState:JC({},v,null==x?void 0:x.ownerState),classes:b,ref:t,children:a}))}))}));function vX(e){return NU("MuiButton",e)}const bX=AU("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"]),xX=nC.createContext({}),wX=nC.createContext(void 0),kX=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],SX=e=>JC({},"small"===e.size&&{"& > *:nth-of-type(1)":{fontSize:18}},"medium"===e.size&&{"& > *:nth-of-type(1)":{fontSize:20}},"large"===e.size&&{"& > *:nth-of-type(1)":{fontSize:22}}),CX=uG(UG,{shouldForwardProp:e=>cG(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${EW(n.color)}`],t[`size${EW(n.size)}`],t[`${n.variant}Size${EW(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})((({theme:e,ownerState:t})=>{var n,r;const i="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],o="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return JC({},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":JC({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:YY(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===t.variant&&"inherit"!==t.color&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:YY(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===t.variant&&"inherit"!==t.color&&{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})`:YY(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===t.variant&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:o,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},"contained"===t.variant&&"inherit"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":JC({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${bX.focusVisible}`]:JC({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${bX.disabled}`]:JC({color:(e.vars||e).palette.action.disabled},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"contained"===t.variant&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},"text"===t.variant&&{padding:"6px 8px"},"text"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main},"outlined"===t.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${YY(e.palette[t.color].main,.5)}`},"contained"===t.variant&&{color:e.vars?e.vars.palette.text.primary:null==(n=(r=e.palette).getContrastText)?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:i,boxShadow:(e.vars||e).shadows[2]},"contained"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},"inherit"===t.color&&{color:"inherit",borderColor:"currentColor"},"small"===t.size&&"text"===t.variant&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"text"===t.variant&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"outlined"===t.variant&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"outlined"===t.variant&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"contained"===t.variant&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"contained"===t.variant&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})}),(({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${bX.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${bX.disabled}`]:{boxShadow:"none"}})),EX=uG("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${EW(n.size)}`]]}})((({ownerState:e})=>JC({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},SX(e)))),MX=uG("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${EW(n.size)}`]]}})((({ownerState:e})=>JC({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},SX(e)))),_X=nC.forwardRef((function(e,t){const n=nC.useContext(xX),r=nC.useContext(wX),i=PK({props:oY(n,e),name:"MuiButton"}),{children:o,color:a="primary",component:s="button",className:l,disabled:c=!1,disableElevation:u=!1,disableFocusRipple:d=!1,endIcon:f,focusVisibleClassName:h,fullWidth:p=!1,size:m="medium",startIcon:g,type:y,variant:v="text"}=i,b=cE(i,kX),x=JC({},i,{color:a,component:s,disabled:c,disableElevation:u,disableFocusRipple:d,fullWidth:p,size:m,type:y,variant:v}),w=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:i,variant:o,classes:a}=e;return JC({},a,qY({root:["root",o,`${o}${EW(t)}`,`size${EW(i)}`,`${o}Size${EW(i)}`,`color${EW(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${EW(i)}`],endIcon:["icon","endIcon",`iconSize${EW(i)}`]},vX,a))})(x),k=g&&dW.jsx(EX,{className:w.startIcon,ownerState:x,children:g}),S=f&&dW.jsx(MX,{className:w.endIcon,ownerState:x,children:f}),C=r||"";return dW.jsxs(CX,JC({ownerState:x,className:OU(n.className,w.root,l,C),component:s,disabled:c,focusRipple:!d,focusVisibleClassName:OU(w.focusVisible,h),ref:t,type:y},b,{classes:w,children:[k,o,S]}))}));function qX(e){return NU("MuiModal",e)}AU("MuiModal",["root","hidden","backdrop"]);const DX=["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"],RX=uG("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})=>JC({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),TX=uG(yX,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),OX=nC.forwardRef((function(e,t){var n,r,i,o,a,s;const l=PK({name:"MuiModal",props:e}),{BackdropComponent:c=TX,BackdropProps:u,className:d,closeAfterTransition:f=!1,children:h,container:p,component:m,components:g={},componentsProps:y={},disableAutoFocus:v=!1,disableEnforceFocus:b=!1,disableEscapeKeyDown:x=!1,disablePortal:w=!1,disableRestoreFocus:k=!1,disableScrollLock:S=!1,hideBackdrop:C=!1,keepMounted:E=!1,onBackdropClick:M,open:_,slotProps:q,slots:D}=l,R=cE(l,DX),T=JC({},l,{closeAfterTransition:f,disableAutoFocus:v,disableEnforceFocus:b,disableEscapeKeyDown:x,disablePortal:w,disableRestoreFocus:k,disableScrollLock:S,hideBackdrop:C,keepMounted:E}),{getRootProps:O,getBackdropProps:P,getTransitionProps:N,portalRef:A,isTopModal:I,exited:L,hasTransition:z}=uX(JC({},T,{rootRef:t})),F=JC({},T,{exited:L}),j=(e=>{const{open:t,exited:n,classes:r}=e;return qY({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},qX,r)})(F),$={};if(void 0===h.props.tabIndex&&($.tabIndex="-1"),z){const{onEnter:e,onExited:t}=N();$.onEnter=e,$.onExited=t}const H=null!=(n=null!=(r=null==D?void 0:D.root)?r:g.Root)?n:RX,V=null!=(i=null!=(o=null==D?void 0:D.backdrop)?o:g.Backdrop)?i:c,B=null!=(a=null==q?void 0:q.root)?a:y.root,W=null!=(s=null==q?void 0:q.backdrop)?s:y.backdrop,U=qG({elementType:H,externalSlotProps:B,externalForwardedProps:R,getSlotProps:O,additionalProps:{ref:t,as:m},ownerState:F,className:OU(d,null==B?void 0:B.className,null==j?void 0:j.root,!F.open&&F.exited&&(null==j?void 0:j.hidden))}),Y=qG({elementType:V,externalSlotProps:W,additionalProps:u,getSlotProps:e=>P(JC({},e,{onClick:t=>{M&&M(t),null!=e&&e.onClick&&e.onClick(t)}})),className:OU(null==W?void 0:W.className,null==u?void 0:u.className,null==j?void 0:j.backdrop),ownerState:F});return E||_||z&&!L?dW.jsx(rX,{ref:A,container:p,disablePortal:w,children:dW.jsxs(H,JC({},U,{children:[!C&&c?dW.jsx(V,JC({},Y)):null,dW.jsx(nX,{disableEnforceFocus:b,disableAutoFocus:v,disableRestoreFocus:k,isEnabled:I,open:_,children:nC.cloneElement(h,$)})]}))}):null}));function PX(e){return NU("MuiDivider",e)}AU("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const NX=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],AX=uG("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,"vertical"===n.orientation&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&"vertical"===n.orientation&&t.withChildrenVertical,"right"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignRight,"left"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignLeft]}})((({theme:e,ownerState:t})=>JC({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:YY(e.palette.divider,.08)},"inset"===t.variant&&{marginLeft:72},"middle"===t.variant&&"horizontal"===t.orientation&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},"middle"===t.variant&&"vertical"===t.orientation&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},"vertical"===t.orientation&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"})),(({ownerState:e})=>JC({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>JC({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}})),(({theme:e,ownerState:t})=>JC({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}})),(({ownerState:e})=>JC({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),IX=uG("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>JC({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},"vertical"===t.orientation&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}))),LX=nC.forwardRef((function(e,t){const n=PK({props:e,name:"MuiDivider"}),{absolute:r=!1,children:i,className:o,component:a=(i?"div":"hr"),flexItem:s=!1,light:l=!1,orientation:c="horizontal",role:u=("hr"!==a?"separator":void 0),textAlign:d="center",variant:f="fullWidth"}=n,h=cE(n,NX),p=JC({},n,{absolute:r,component:a,flexItem:s,light:l,orientation:c,role:u,textAlign:d,variant:f}),m=(e=>{const{absolute:t,children:n,classes:r,flexItem:i,light:o,orientation:a,textAlign:s,variant:l}=e;return qY({root:["root",t&&"absolute",l,o&&"light","vertical"===a&&"vertical",i&&"flexItem",n&&"withChildren",n&&"vertical"===a&&"withChildrenVertical","right"===s&&"vertical"!==a&&"textAlignRight","left"===s&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]},PX,r)})(p);return dW.jsx(AX,JC({as:a,className:OU(m.root,o),role:u,ref:t,ownerState:p},h,{children:i?dW.jsx(IX,{className:m.wrapper,ownerState:p,children:i}):null}))}));LX.muiSkipListHighlight=!0;const zX=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function FX(e){return`scale(${e}, ${e**2})`}const jX={entering:{opacity:1,transform:FX(1)},entered:{opacity:1,transform:"none"}},$X="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),HX=nC.forwardRef((function(e,t){const{addEndListener:n,appear:r=!0,children:i,easing:o,in:a,onEnter:s,onEntered:l,onEntering:c,onExit:u,onExited:d,onExiting:f,style:h,timeout:p="auto",TransitionComponent:m=f$}=e,g=cE(e,zX),y=vY(),v=nC.useRef(),b=OK(),x=nC.useRef(null),w=pY(x,i.ref,t),k=e=>t=>{if(e){const n=x.current;void 0===t?e(n):e(n,t)}},S=k(c),C=k(((e,t)=>{vG(e);const{duration:n,delay:r,easing:i}=bG({style:h,timeout:p,easing:o},{mode:"enter"});let a;"auto"===p?(a=b.transitions.getAutoHeightDuration(e.clientHeight),v.current=a):a=n,e.style.transition=[b.transitions.create("opacity",{duration:a,delay:r}),b.transitions.create("transform",{duration:$X?a:.666*a,delay:r,easing:i})].join(","),s&&s(e,t)})),E=k(l),M=k(f),_=k((e=>{const{duration:t,delay:n,easing:r}=bG({style:h,timeout:p,easing:o},{mode:"exit"});let i;"auto"===p?(i=b.transitions.getAutoHeightDuration(e.clientHeight),v.current=i):i=t,e.style.transition=[b.transitions.create("opacity",{duration:i,delay:n}),b.transitions.create("transform",{duration:$X?i:.666*i,delay:$X?n:n||.333*i,easing:r})].join(","),e.style.opacity=0,e.style.transform=FX(.75),u&&u(e)})),q=k(d);return dW.jsx(m,JC({appear:r,in:a,nodeRef:x,onEnter:C,onEntered:E,onEntering:S,onExit:_,onExited:q,onExiting:M,addEndListener:e=>{"auto"===p&&y.start(v.current||0,e),n&&n(x.current,e)},timeout:"auto"===p?null:p},g,{children:(e,t)=>nC.cloneElement(i,JC({style:JC({opacity:0,transform:FX(.75),visibility:"exited"!==e||a?void 0:"hidden"},jX[e],h,i.props.style),ref:w},t))}))}));HX.muiSupportAuto=!0;const VX=nC.createContext({});function BX(e){return NU("MuiList",e)}AU("MuiList",["root","padding","dense","subheader"]);const WX=["children","className","component","dense","disablePadding","subheader"],UX=uG("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})=>JC({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0}))),YX=nC.forwardRef((function(e,t){const n=PK({props:e,name:"MuiList"}),{children:r,className:i,component:o="ul",dense:a=!1,disablePadding:s=!1,subheader:l}=n,c=cE(n,WX),u=nC.useMemo((()=>({dense:a})),[a]),d=JC({},n,{component:o,dense:a,disablePadding:s}),f=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:i}=e;return qY({root:["root",!n&&"padding",r&&"dense",i&&"subheader"]},BX,t)})(d);return dW.jsx(VX.Provider,{value:u,children:dW.jsxs(UX,JC({as:o,className:OU(f.root,i),ref:t,ownerState:d},c,{children:[l,r]}))})}));function KX(e){return NU("MuiListItemButton",e)}const GX=AU("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),XX=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],JX=uG(UG,{shouldForwardProp:e=>cG(e)||"classes"===e,name:"MuiListItemButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,"flex-start"===n.alignItems&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>JC({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${GX.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:YY(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${GX.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:YY(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${GX.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:YY(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})`:YY(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${GX.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${GX.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},"flex-start"===t.alignItems&&{alignItems:"flex-start"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.dense&&{paddingTop:4,paddingBottom:4}))),ZX=nC.forwardRef((function(e,t){const n=PK({props:e,name:"MuiListItemButton"}),{alignItems:r="center",autoFocus:i=!1,component:o="div",children:a,dense:s=!1,disableGutters:l=!1,divider:c=!1,focusVisibleClassName:u,selected:d=!1,className:f}=n,h=cE(n,XX),p=nC.useContext(VX),m=nC.useMemo((()=>({dense:s||p.dense||!1,alignItems:r,disableGutters:l})),[r,p.dense,s,l]),g=nC.useRef(null);sY((()=>{i&&g.current&&g.current.focus()}),[i]);const y=JC({},n,{alignItems:r,dense:m.dense,disableGutters:l,divider:c,selected:d}),v=(e=>{const{alignItems:t,classes:n,dense:r,disabled:i,disableGutters:o,divider:a,selected:s}=e;return JC({},n,qY({root:["root",r&&"dense",!o&&"gutters",a&&"divider",i&&"disabled","flex-start"===t&&"alignItemsFlexStart",s&&"selected"]},KX,n))})(y),b=pY(g,t);return dW.jsx(VX.Provider,{value:m,children:dW.jsx(JX,JC({ref:b,href:h.href||h.to,component:(h.href||h.to)&&"div"===o?"button":o,focusVisibleClassName:OU(v.focusVisible,u),ownerState:y,className:OU(v.root,f)},h,{classes:v,children:a}))})}));function QX(e){return NU("MuiListItemIcon",e)}AU("MuiListItemIcon",["root","alignItemsFlexStart"]);const eJ=["className"],tJ=uG("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"flex-start"===n.alignItems&&t.alignItemsFlexStart]}})((({theme:e,ownerState:t})=>JC({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8}))),nJ=nC.forwardRef((function(e,t){const n=PK({props:e,name:"MuiListItemIcon"}),{className:r}=n,i=cE(n,eJ),o=JC({},n,{alignItems:nC.useContext(VX).alignItems}),a=(e=>{const{alignItems:t,classes:n}=e;return qY({root:["root","flex-start"===t&&"alignItemsFlexStart"]},QX,n)})(o);return dW.jsx(tJ,JC({className:OU(a.root,r),ownerState:o,ref:t},i))}));function rJ(e){return NU("MuiListItemText",e)}const iJ=AU("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),oJ=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],aJ=uG("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${iJ.primary}`]:t.primary},{[`& .${iJ.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})((({ownerState:e})=>JC({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56}))),sJ=nC.forwardRef((function(e,t){const n=PK({props:e,name:"MuiListItemText"}),{children:r,className:i,disableTypography:o=!1,inset:a=!1,primary:s,primaryTypographyProps:l,secondary:c,secondaryTypographyProps:u}=n,d=cE(n,oJ),{dense:f}=nC.useContext(VX);let h=null!=s?s:r,p=c;const m=JC({},n,{disableTypography:o,inset:a,primary:!!h,secondary:!!p,dense:f}),g=(e=>{const{classes:t,inset:n,primary:r,secondary:i,dense:o}=e;return qY({root:["root",n&&"inset",o&&"dense",r&&i&&"multiline"],primary:["primary"],secondary:["secondary"]},rJ,t)})(m);return null==h||h.type===ZG||o||(h=dW.jsx(ZG,JC({variant:f?"body2":"body1",className:g.primary,component:null!=l&&l.variant?void 0:"span",display:"block"},l,{children:h}))),null==p||p.type===ZG||o||(p=dW.jsx(ZG,JC({variant:"body2",className:g.secondary,color:"text.secondary",display:"block"},u,{children:p}))),dW.jsxs(aJ,JC({className:OU(g.root,i),ownerState:m,ref:t},d,{children:[h,p]}))}));function lJ(e){return NU("MuiPopover",e)}AU("MuiPopover",["root","paper"]);const cJ=["onEntering"],uJ=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],dJ=["slotProps"];function fJ(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function hJ(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function pJ(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function mJ(e){return"function"==typeof e?e():e}const gJ=uG(OX,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),yJ=uG(SG,{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}),vJ=nC.forwardRef((function(e,t){var n,r,i;const o=PK({props:e,name:"MuiPopover"}),{action:a,anchorEl:s,anchorOrigin:l={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:u="anchorEl",children:d,className:f,container:h,elevation:p=8,marginThreshold:m=16,open:g,PaperProps:y={},slots:v,slotProps:b,transformOrigin:x={vertical:"top",horizontal:"left"},TransitionComponent:w=HX,transitionDuration:k="auto",TransitionProps:{onEntering:S}={},disableScrollLock:C=!1}=o,E=cE(o.TransitionProps,cJ),M=cE(o,uJ),_=null!=(n=null==b?void 0:b.paper)?n:y,q=nC.useRef(),D=pY(q,_.ref),R=JC({},o,{anchorOrigin:l,anchorReference:u,elevation:p,marginThreshold:m,externalPaperSlotProps:_,transformOrigin:x,TransitionComponent:w,transitionDuration:k,TransitionProps:E}),T=(e=>{const{classes:t}=e;return qY({root:["root"],paper:["paper"]},lJ,t)})(R),O=nC.useCallback((()=>{if("anchorPosition"===u)return c;const e=mJ(s),t=(e&&1===e.nodeType?e:uY(q.current).body).getBoundingClientRect();return{top:t.top+fJ(t,l.vertical),left:t.left+hJ(t,l.horizontal)}}),[s,l.horizontal,l.vertical,c,u]),P=nC.useCallback((e=>({vertical:fJ(e,x.vertical),horizontal:hJ(e,x.horizontal)})),[x.horizontal,x.vertical]),N=nC.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=P(t);if("none"===u)return{top:null,left:null,transformOrigin:pJ(n)};const r=O();let i=r.top-n.vertical,o=r.left-n.horizontal;const a=i+t.height,l=o+t.width,c=dY(mJ(s)),d=c.innerHeight-m,f=c.innerWidth-m;if(null!==m&&i<m){const e=i-m;i-=e,n.vertical+=e}else if(null!==m&&a>d){const e=a-d;i-=e,n.vertical+=e}if(null!==m&&o<m){const e=o-m;o-=e,n.horizontal+=e}else if(l>f){const e=l-f;o-=e,n.horizontal+=e}return{top:`${Math.round(i)}px`,left:`${Math.round(o)}px`,transformOrigin:pJ(n)}}),[s,u,O,P,m]),[A,I]=nC.useState(g),L=nC.useCallback((()=>{const e=q.current;if(!e)return;const t=N(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,I(!0)}),[N]);nC.useEffect((()=>(C&&window.addEventListener("scroll",L),()=>window.removeEventListener("scroll",L))),[s,C,L]);nC.useEffect((()=>{g&&L()})),nC.useImperativeHandle(a,(()=>g?{updatePosition:()=>{L()}}:null),[g,L]),nC.useEffect((()=>{if(!g)return;const e=function(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout((()=>{e.apply(this,r)}),t)}return r.clear=()=>{clearTimeout(n)},r}((()=>{L()})),t=dY(s);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[s,g,L]);let z=k;"auto"!==k||w.muiSupportAuto||(z=void 0);const F=h||(s?uY(mJ(s)).body:void 0),j=null!=(r=null==v?void 0:v.root)?r:gJ,$=null!=(i=null==v?void 0:v.paper)?i:yJ,H=qG({elementType:$,externalSlotProps:JC({},_,{style:A?_.style:JC({},_.style,{opacity:0})}),additionalProps:{elevation:p,ref:D},ownerState:R,className:OU(T.paper,null==_?void 0:_.className)}),V=qG({elementType:j,externalSlotProps:(null==b?void 0:b.root)||{},externalForwardedProps:M,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:F,open:g},ownerState:R,className:OU(T.root,f)}),{slotProps:B}=V,W=cE(V,dJ);return dW.jsx(j,JC({},W,!CG(j)&&{slotProps:B,disableScrollLock:C},{children:dW.jsx(w,JC({appear:!0,in:g,onEntering:(e,t)=>{S&&S(e,t),L()},onExited:()=>{I(!1)},timeout:z},E,{children:dW.jsx($,JC({},H,{children:d}))}))}))}));function bJ(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function xJ(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,i)}function wJ(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kJ(){return kJ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},kJ.apply(null,arguments)}function SJ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function CJ(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?SJ(Object(n),!0).forEach((function(t){wJ(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):SJ(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function EJ(){
|
|
125
125
|
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
|
|
126
|
-
var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function o(n,r,i,o){var l=r&&r.prototype instanceof s?r:s,c=Object.create(l.prototype);return MJ(c,"_invoke",function(n,r,i){var o,s,l,c=0,u=i||[],d=!1,f={p:0,n:0,v:e,a:h,f:h.bind(e,4),d:function(t,n){return o=t,s=0,l=e,f.n=n,a}};function h(n,r){for(s=n,l=r,t=0;!d&&c&&!i&&t<u.length;t++){var i,o=u[t],h=f.p,p=o[2];n>3?(i=p===r)&&(l=o[(s=o[4])?5:(s=3,3)],o[4]=o[5]=e):o[0]<=h&&((i=n<2&&h<o[1])?(s=0,f.v=r,f.n=o[1]):h<p&&(i=n<3||o[0]>r||r>p)&&(o[4]=n,o[5]=r,f.n=p,s=0))}if(i||n>1)return a;throw d=!0,r}return function(i,u,p){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&h(u,p),s=u,l=p;(t=s<2?e:l)||!d;){o||(s?s<3?(s>1&&(f.n=-1),h(s,l)):f.n=l:f.v=l);try{if(c=2,o){if(s||(i="next"),t=o[i]){if(!(t=t.call(o,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=o.return)&&t.call(o),s<2&&(l=TypeError("The iterator does not provide a '"+i+"' method"),s=1);o=e}else if((t=(d=f.n<0)?l:n.call(r,f))!==a)break}catch(t){o=e,s=1,l=t}finally{c=1}}return{value:t,done:d}}}(n,i,o),!0),c}var a={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(MJ(t={},r,(function(){return this})),t),d=c.prototype=s.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,MJ(e,i,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=c,MJ(d,"constructor",c),MJ(c,"constructor",l),l.displayName="GeneratorFunction",MJ(c,i,"GeneratorFunction"),MJ(d),MJ(d,i,"Generator"),MJ(d,r,(function(){return this})),MJ(d,"toString",(function(){return"[object Generator]"})),(EJ=function(){return{w:o,m:f}})()}function MJ(e,t,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}MJ=function(e,t,n,r){if(t)i?i(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n;else{function o(t,n){MJ(e,t,(function(e){return this._invoke(t,n,e)}))}o("next",0),o("throw",1),o("return",2)}},MJ(e,t,n,r)}function _J(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t);else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||RJ(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function qJ(e){return function(e){if(Array.isArray(e))return bJ(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||RJ(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function DJ(e){return DJ="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},DJ(e)}function RJ(e,t){if(e){if("string"==typeof e)return bJ(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?bJ(e,t):void 0}}var TJ=function(e){var t=e.className,n=e.title,r=e.path,i=e.fillRule;return rC.createElement(yG,{className:t,viewBox:"0 0 16 16",fontSize:"small",role:"img",style:{height:12,width:12}},rC.createElement("path",{d:r}),n?rC.createElement("title",null,n):void 0,i?rC.createElement("use",{fillRule:i}):void 0)},OJ={STYLE:{ELLIPSIS:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},FOCUS:{boxShadow:"inset 0 0 0 2px #177FE6"},ICONS:{COLOR:{PRIMARY:"rgba(89, 89, 89)",SECONDARY:"rgba(89, 89, 89, 0.8)",DISABLED:"rgba(89, 89, 89, 0.4)"}}}},PJ={L:new RegExp("[A-Za-zªµºÀ-ÖØ-öø-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͽΆΈ-ϵϷ-҂Ҋ-։ः-हऻऽ-ीॉ-ौॎ-ॐक़-ॡ।-ॿং-হঽ-ীে-ৌৎ-ৡ০-ৱ৴-৺ਃ-ਹਾ-ੀਖ਼-੯ੲ-ੴઃ-હઽ-ીૉ-ૌૐ-ૡ૦-૯ଂ-ହଽ-ାୀେ-ୌୗ-ୡ୦-୷ஃ-ிு-ௌௐ-௲ఁ-ఽు-ౄౘ-ౡ౦-౯౿-ಹಽ-ೋೕ-ೡ೦-ീെ-ൌൎ-ൡ൦-ෆා-ෑෘ-ะา-ำเ-ๆ๏-ະາ-ຳຽ-ໆ໐-༗༚-༴༶༸༾-ཬཿ྅ྈ-ྌ྾-࿅࿇-ာေးျ-ြဿ-ၗၚ-ၝၡ-ၰၵ-ႁႃ-ႄႇ-ႌႎ-ႜ႞-ፚ፠-ᎏᎠ-Ᏼᐁ-ᙿᚁ-ᚚᚠ-ᜑᜠ-ᜱ᜵-ᝑᝠ-ᝰក-ាើ-ៅះ-ៈ។-៚ៜ០-៩᠐-ᢨᢪ-ᤜᤣ-ᤦᤩ-ᤱᤳ-ᤸ᥆-᧚ᨀ-ᨖᨙ-ᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪭ᬄ-ᬳᬵᬻᬽ-ᭁᭃ-᭪᭴-᭼ᮂ-ᮡᮦ-ᮧ᮪-ᯥᯧᯪ-ᯬᯮ᯲-ᰫᰴ-ᰵ᰻-᱿᳓᳡ᳩ-ᳬᳮ-ᶿḀ-ᾼιῂ-ῌῐ-Ίῠ-Ῥῲ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎ-⅏Ⅰ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-ⳤⳫ-ⳮⴀ-⵰ⶀ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ㆺㇰ-㈜㈠-㉏㉠-㉻㉿-㊰㋀-㋋㋐-㍶㍻-㏝㏠-㏾㐀-䶵一-ꒌꓐ-ꘌꘐ-ꙮꚀ-ꛯ꛲-꛷Ꜣ-ꞇ꞉-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠤꠧ꠰-꠷ꡀ-ꡳꢀ-ꣃ꣎-꣙ꣲ-ꤥ꤮-ꥆꥒ-ꥼꦃ-ꦲꦴ-ꦵꦺ-ꦻꦽ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂ-ꯤꯦ-ꯧꯩ-꯬꯰-ﬗA-Za-zヲ-ᅵ]"),R:new RegExp("[־׀׃׆א-״߀-ߪߴ-ߵߺ-ࠕࠚࠤࠨ࠰-ࡘ࡞יִײַ-ﬨשׁ-ﭏ]"),AL:new RegExp("[؈؋؍؛-ي٭-ٯٱ-ەۥ-ۦۮ-ۯۺ-܍ܐܒ-ܯݍ-ޥޱﭐ-ﴽﵐ-﷼ﹰ-ﻼ]")},NJ=function(e){return PJ.R.test(e)||PJ.AL.test(e)};function AJ(e){for(var t,n,r=e?e.length:0,i=0;i<r;i++){if(n=t=e[i],PJ.L.test(n))return"ltr";if(NJ(t))return"rtl"}return"ltr"}var IJ,LJ,zJ=uG(_X,{shouldForwardProp:function(e){return"direction"!==e&&"padding"!==e&&"styling"!==e}})((function(e){var t=e.direction,n=e.padding,r=e.styling,i=r.fontSize,o=r.fontFamily,a=r.color;return{fontWeight:"normal",lineHeight:"normal",fontSize:"".concat(i," !important"),fontFamily:"".concat(o," !important"),color:"".concat(a," !important"),height:"100%",minWidth:"0px",maxWidth:"640px",padding:n,"&:disabled":{color:a,opacity:1},"& .MuiButton-startIcon":{margin:"ltr"===t?"0 2px":void 0},"& .MuiButton-endIcon":{margin:"rtl"===t?"0 2px":void 0}}})),FJ=uG((function(e){var t=e.className;return rC.createElement(TJ,{className:t,path:"M13,7 L8,7 L13,7 L13,4.98151367 C13,2.23029964 10.7614237,0 8,0 C5.23857625,0 3,2.23029964 3,4.98151367 L3,7 L3.75,7 L3,7 L4.5,7 L4.5,5.33193359 C4.5,3.21561511 5.54860291,1.5 8,1.5 C10.4513971,1.5 11.5,3.21561511 11.5,5.33193359 L11.5,7 L12.25,7 L3,7 C2.44771525,7 2,7.44771525 2,8 L2,15 C2,15.5522847 2.44771525,16 3,16 L13,16 C13.5522847,16 14,15.5522847 14,15 L14,8 C14,7.44771525 13.5522847,7 13,7 L3,7 L13,7 Z",fillRule:"evenodd"})}))((function(){return{color:OJ.STYLE.ICONS.COLOR.SECONDARY,marginTop:"1px"}})),jJ=uG((function(e){var t=e.className;return rC.createElement(TJ,{className:t,path:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5L8 9Z"})}))((function(){return{color:OJ.STYLE.ICONS.COLOR.SECONDARY,marginTop:"1px","&.disabled":{color:OJ.STYLE.ICONS.COLOR.DISABLED,opacity:.6}}})),$J=function(e){var t=e.isOpen,n=e.onClick,r=e.popoverId,i=e.source,o=i.styling,a=i.info.text,s=i.layout.direction,l=i.meta,c=l.allowed,u=l.hasAlternatives,d=l.hasCyclic,f=l.hasMultiple,h=l.index,p=l.isCyclic,m=l.isLocked,g=i.resources.translator,y=i.services.focus,v=i.settings.isDisabled,b=i.state.inSelections,x=!(!c.change||!u),w=!(!c.reload||!p),k=(x||w)&&!b&&!v(),S={pointerEvents:k?"auto":"none"},C=function(e){var t=e.allowed,n=e.canChange,r=e.canReload,i=e.direction,o=e.hasCyclic,a=e.isLocked,s={top:"8px",right:"6px",bottom:"8px",left:"6px"};if(!e.hasMultiple)return"".concat(s.top," ").concat(s.right," ").concat(s.bottom," ").concat(s.left);var l=o&&t.reload;return"ltr"===i&&(a?s.left="0px":r||!n&&l?s.left="4px":n||(s.left="2px"),n||r||(s.right="0px")),"rtl"===i&&(a?s.right="0px":r||!n&&l?s.right="4px":n||(s.right="2px"),n||r||(s.left="0px")),"".concat(s.top," ").concat(s.right," ").concat(s.bottom," ").concat(s.left)}({allowed:c,canChange:x,canReload:w,direction:s,hasCyclic:d,hasMultiple:f,isLocked:m}),E=wJ(wJ({},"rtl"===s?"endIcon":"startIcon",m&&rC.createElement(FJ,{height:12})),"rtl"===s?"startIcon":"endIcon",(x||w)&&rC.createElement(jJ,{className:"".concat(b||v()?"disabled":"")})),M=nC.useRef(),_=nC.useRef();nC.useEffect((function(){t||y.shouldFor(h)&&(M.current.focus(),_.current.focusVisible())}));var q=AJ(a),D="Accessibility.".concat(k?"Alternative":"Normal",".Instructions");return rC.createElement(zJ,kJ({action:_,"aria-describedby":r,"aria-label":g.get(D),color:"inherit",direction:s,disabled:!k||v()||b,onClick:function(e){k&&n(e)},padding:C,ref:M,style:S,styling:o.title,title:a},E),rC.createElement("span",{dir:q,style:OJ.STYLE.ELLIPSIS},a))},HJ=function(e){var t=e.className,n=e.title;return rC.createElement(TJ,{className:t,title:n,path:"M 6 2 h 10 V 1 H 6 Z m 5 5 h 5 V 6 h -5 Z m 5 5 h -5 v -1 h 5 Z M 5 10 h 1 v 2.663 a 3.5 3.5 0 1 0 -2.922 0.036 l -0.406 0.914 A 4.501 4.501 0 1 1 7.329 13 H 9 v 1 H 5 Z"})},VJ=uG(_X,{shouldForwardProp:function(e){return"direction"!==e&&"isFirst"!==e&&"isLast"!==e&&"styling"!==e}})((function(e){var t=e.direction,n=e.isFirst,r=e.isLast,i=e.styling.color;return{fontWeight:"normal",lineHeight:"normal",color:i,height:"24px",width:"24px",padding:0,marginLeft:"ltr"!==t||n?void 0:"4px",marginRight:"rtl"!==t||r?void 0:"4px","&:disabled":{color:i,opacity:1}}})),BJ=uG(HJ,{shouldForwardProp:function(e){return"direction"!==e&&"isFirst"!==e&&"isLast"!==e}})((function(e){var t=e.direction,n=e.isFirst,r=e.isLast;return{color:OJ.STYLE.ICONS.COLOR.PRIMARY,marginTop:"1px",marginLeft:"ltr"!==t||n?void 0:"4px",marginRight:"rtl"!==t||r?void 0:"4px"}})),WJ=uG((function(e){var t=e.className,n=e.title;return rC.createElement(TJ,{className:t,title:n,path:"M1 8a7 7 0 1 1 10 6.326V11h-1v5h5v-1h-3.124A8 8 0 1 0 8 16v-1a7 7 0 0 1-7-7Z"})}),{})((function(){return{color:OJ.STYLE.ICONS.COLOR.SECONDARY,"&.disabled":{color:OJ.STYLE.ICONS.COLOR.DISABLED}}})),UJ=function(e){var t=e.source;if(!t.meta.isCyclic)return null;var n=_J(nC.useState(!1),2),r=n[0],i=n[1],o=t.styling,a=t.action.stepCycle,s=t.info,l=s.position,c=s.tooltip,u=t.layout.direction,d=t.meta,f=d.allowed,h=d.isFirst,p=d.isLast,m=t.settings.isDisabled,g=t.state.inSelections;return nC.useEffect((function(){r&&i(!1)}),[l]),f.reload?rC.createElement(VJ,{direction:u,disabled:r||g||m(),isFirst:h,isLast:p,onClick:function(){return i(!0),void a()},styling:o.title,title:c,variant:"outlined"},rC.createElement(WJ,{className:"".concat(r||g||m()?"disabled":"")})):rC.createElement(BJ,{direction:u,isFirst:h,isLast:p,style:{flexShrink:0},title:c})},YJ=function(e){var t=e.className,n=e.title;return rC.createElement(TJ,{className:t,title:n,path:"M7 4h9v1H7V4ZM9 8h7v1H9V8ZM11 12h5v1h-5v-1ZM1 4v3.526a3.5 3.5 0 0 0 3.5 3.5h2.31L5.22 9.402l.715-.7L8.7 11.527 5.935 14.35l-.714-.7 1.59-1.624H4.5a4.5 4.5 0 0 1-4.5-4.5V4h1Z"})},KJ=uG(_X,{shouldForwardProp:function(e){return"styling"!==e}})((function(e){var t=e.styling,n=t.fontSize,r=t.fontFamily,i=t.color;return{fontWeight:"normal",lineHeight:"normal",fontSize:"".concat(n," !important"),fontFamily:"".concat(r," !important"),color:"".concat(i," !important"),padding:"0px 5px",height:"100%",minWidth:"45px","&:disabled":{color:i}}})),GJ={color:OJ.STYLE.ICONS.COLOR.SECONDARY,marginTop:"1px","&.disabled":{color:OJ.STYLE.ICONS.COLOR.DISABLED}},XJ=uG((function(e){var t=e.className;return rC.createElement(TJ,{className:t,path:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5 8.5 8z"})}))((function(){return GJ})),JJ=uG((function(e){var t=e.className;return rC.createElement(TJ,{className:t,path:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})}))((function(){return GJ})),ZJ=uG(YJ,{shouldForwardProp:function(e){return"direction"!==e&&"isFirst"!==e&&"isLast"!==e}})((function(e){var t=e.direction,n=e.isFirst,r=e.isLast;return{color:OJ.STYLE.ICONS.COLOR.PRIMARY,marginTop:"1px",marginLeft:"ltr"!==t||n?void 0:"4px",marginRight:"rtl"!==t||r?void 0:"4px"}})),QJ=function(e){var t=e.source;if(!t.meta.isDrillDown)return null;var n=t.styling,r=t.action.drillUp,i=t.info,o=i.breadcrumbs,a=i.tooltip,s=t.layout.direction,l=t.meta,c=l.isFirst,u=l.isLast,d=t.settings.isDisabled,f=t.state.inSelections,h=d()||f?"disabled":null,p=wJ({},"rtl"===s?"startIcon":"endIcon","rtl"===s?rC.createElement(JJ,{className:h}):rC.createElement(XJ,{className:h})),m=o.map((function(e,t){var i=AJ(e);return rC.createElement(KJ,kJ({disabled:d()||f,key:"breadcrumb-".concat(e),onClick:function(){return function(e){r({steps:o.length-e})}(t)},styling:n.title,title:e},p),rC.createElement("span",{dir:i,style:OJ.STYLE.ELLIPSIS},e))}));return rC.createElement(rC.Fragment,null,"rtl"===s?m.reverse():void 0,rC.createElement(ZJ,{direction:s,isFirst:c,isLast:u,style:{flexShrink:0},title:a}),"rtl"===s?void 0:m)},eZ=uG(ZX,{shouldForwardProp:function(e){return"nested"!==e&&"rtl"!==e}})((function(e){var t=e.nested,n=e.rtl;return{padding:"4px ".concat(t&&n?"32px":"16px"," 4px ").concat(t&&!n?"32px":"16px"),"&:focus":CJ({},OJ.STYLE.FOCUS)}})),tZ=uG(nJ)((function(){return{marginRight:0,justifyContent:"center"}})),nZ=uG((function(e){var t=e.className;return rC.createElement(TJ,{className:t,path:"m6 10 7-7 2 2-7 7-2 2-5-5 2-2 3 3Z"})}))((function(){return{color:OJ.STYLE.ICONS.COLOR.SECONDARY}})),rZ=uG(HJ)((function(){return{color:OJ.STYLE.ICONS.COLOR.SECONDARY}})),iZ=uG(YJ)((function(){return{color:OJ.STYLE.ICONS.COLOR.SECONDARY,fontWeight:600}})),oZ=function(e){var t=e.id,n=e.meta,r=e.nested,i=e.onClick,o=e.selected,a=e.source,s=e.text,l=a.styling,c=a.settings.isRTL,u=CJ({fontWeight:!n||n.isNormal?"normal":600,lineHeight:"normal",fontSize:l.popover.fontSize,fontFamily:l.popover.fontFamily,color:l.popover.color,textAlign:c?"end":"start"},OJ.STYLE.ELLIPSIS),d=AJ(s),f=rC.createElement(tZ,{sx:c?{paddingRight:"12px"}:{paddingLeft:"12px"}},function(e){var t=e.meta;return e.selected?rC.createElement(nZ,{height:12}):null!=t&&t.isCyclic?rC.createElement(rZ,{height:12}):null!=t&&t.isDrillDown?rC.createElement(iZ,{height:12}):void 0}({meta:n,selected:o}));return rC.createElement(rC.Fragment,{key:t},rC.createElement(eZ,{autoFocus:o,nested:r,onClick:function(e){return null==i?void 0:i(e)},rtl:c,title:s},c&&f,rC.createElement(sJ,{dir:d,primaryTypographyProps:{style:u}},s),!c&&f))},aZ=uG(LX)((function(){return{marginTop:"-1px"}})),sZ=function(e){var t=e.anchor,n=e.id,r=e.onClose,i=e.open,o=e.source,a=o.action,s=a.changeTo,l=a.drillUp,c=a.setActiveField,u=o.info,d=u.breadcrumbs,f=u.group,h=u.id,p=u.text,m=o.data.alternatives,g=o.meta,y=g.index,v=g.isCyclic,b=g.isDrillDown,x=o.resources.translator,w=o.services.focus,k={isChanging:!1},S=nC.useRef(),C=function(){var e,t=document.activeElement;null!=S&&null!==(e=S.current)&&void 0!==e&&e.contains(t)&&t.blur(),r()},E=v||b,M=rC.createElement(oZ,{id:h,key:h,meta:o.meta,onClick:C,selected:!E,source:o,text:E?f.name:p}),_=E&&f.items.map((function(e){return rC.createElement(oZ,{id:e.id,nested:!0,onClick:function(t){return function(e,t){k.isChanging||(k.isChanging=!0,"keydown"!==e.type&&"keyup"!==e.type||w.queueFor(y),v&&c({fieldIndex:t.index}),b&&l({steps:d.length-t.index}))}(t,e)},selected:e.current,source:o,text:e.text})})),q=m.map((function(e,t){return rC.createElement(rC.Fragment,{key:e.id},rC.createElement(oZ,{id:e.id,key:e.id,meta:e.meta,onClick:function(t){return n=t,r=e.id,void(k.isChanging||(k.isChanging=!0,"keydown"!==n.type&&"keyup"!==n.type||w.queueFor(y),s({id:r})));var n,r},source:o,text:e.text}),t<m.length-1&&rC.createElement(aZ,{key:"divider-".concat(e.id)}))}));return rC.createElement(vJ,{anchorEl:t,anchorOrigin:{vertical:"top",horizontal:"center"},disableRestoreFocus:!0,id:n,onClose:C,open:i,ref:S,slotProps:{paper:{style:{minWidth:"250px",maxWidth:"640px",maxHeight:"300px"}}},transformOrigin:{vertical:"bottom",horizontal:"center"}},rC.createElement(YX,{"aria-label":x.get("Accessibility.Popover.Instructions"),dense:!0},M,_,rC.createElement(aZ,{key:"divider-".concat(h)}),q))},lZ=function(e){var t=e.source,n=_J(nC.useState(null),2),r=n[0],i=n[1],o={id:r?"alternatives-popover":void 0,isOpen:Boolean(r)},a=t.layout.direction,s=t.meta.index,l=t.services.focus,c=function(){i(null)};nC.useEffect((function(){o.isOpen&&c()}),[t.info.key]);var u=rC.createElement(UJ,{source:t}),d=rC.createElement(QJ,{source:t});return rC.createElement(rC.Fragment,null,"rtl"===a?void 0:d,"rtl"===a?void 0:u,rC.createElement($J,{onClick:function(e){var t=e.currentTarget;t.classList.contains("qcm-focus-visible")&&l.queueFor(s),i(t)},isOpen:o.isOpen,popoverId:o.id,source:t}),rC.createElement(sZ,{anchor:r,id:o.id,onClose:c,open:o.isOpen,source:t}),"rtl"===a?d:void 0,"rtl"===a?u:void 0)};var cZ=function(){if(LJ)return IJ;LJ=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},o=function(n){if(!n||"[object Object]"!==t.call(n))return!1;var r,i=e.call(n,"constructor"),o=n.constructor&&n.constructor.prototype&&e.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!i&&!o)return!1;for(r in n);return void 0===r||e.call(n,r)},a=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(t,n){if("__proto__"===n){if(!e.call(t,n))return;if(r)return r(t,n).value}return t[n]};return IJ=function e(){var t,n,r,l,c,u,d=arguments[0],f=1,h=arguments.length,p=!1;for("boolean"==typeof d&&(p=d,d=arguments[1]||{},f=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});f<h;++f)if(null!=(t=arguments[f]))for(n in t)r=s(d,n),d!==(l=s(t,n))&&(p&&l&&(o(l)||(c=i(l)))?(c?(c=!1,u=r&&i(r)?r:[]):u=r&&o(r)?r:{},a(d,{name:n,newValue:e(p,u,l)})):void 0!==l&&a(d,{name:n,newValue:l}));return d},IJ}(),uZ=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(cZ);function dZ(e){var t=e.model,n=e.properties;return t.modifiers?t.modifiers.apply({model:t,properties:n}):Promise.resolve()}function fZ(e){return Array.isArray(e)}function hZ(e){return null!=e&&!Array.isArray(e)&&"object"===DJ(e)}function pZ(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function mZ(e){return void 0===e}function gZ(e,t){if(hZ(e)&&hZ(t)){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n=Object.keys(e),r=0,i=n.length;r<i;r+=1)if(!gZ(e[n[r]],t[n[r]]))return!1;return!0}if(fZ(e)&&fZ(t)){if(e.length!==t.length)return!1;for(var o=0,a=e.length;o<a;o+=1)if(!gZ(e[o],t[o]))return!1;return!0}return e===t}function yZ(e){var t=e.oldData,n=void 0===t?{}:t,r=e.newData,i=void 0===r?{}:r,o=e.basePath,a=void 0===o?"":o,s=[];return Object.keys(i).forEach((function(e){var t=function(e){return e?uZ(!0,{},{value:e}).value:e}(i[e]),r=n[e],o="".concat(a,"/").concat(e);gZ(t,r)||pZ(i,e)||(mZ(r)?s.push({op:"add",path:o,value:t}):hZ(t)&&hZ(r)?s.push.apply(s,qJ(yZ({oldData:r,newData:t,basePath:o}))):fZ(t)&&fZ(r)?s.push.apply(s,qJ(function(e){var t=e.newArray,n=e.basePath,r=[];return gZ(t,e.oldArray.slice())||(!mZ(t[0])&&mZ(t[0].qInfo)||0===t.length)&&r.push({op:"replace",path:n,value:t}),r}({oldArray:r,newArray:t,basePath:o}))):s.push({op:"replace",path:o,value:t}))})),Object.keys(n).forEach((function(e){mZ(i[e])&&!pZ(n,e)&&s.push({op:"remove",path:"".concat(a,"/").concat(e)})})),s}function vZ(e){var t=e.model,n=yZ({oldData:e.oldProperties,newData:e.newProperties});null!=t&&t.applyPatches&&null!=n&&n.length&&t.applyPatches(n.map((function(e){return{qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}})),!0)}function bZ(e){return xZ.apply(this,arguments)}function xZ(){return(xZ=function(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){xJ(o,r,i,a,s,"next",e)}function s(e){xJ(o,r,i,a,s,"throw",e)}a(void 0)}))}}(EJ().m((function e(t){var n,r,i,o,a,s,l,c,u,d,f,h;return EJ().w((function(e){for(;;)switch(e.n){case 0:if(n=t.from,r=t.to,i=t.model,o=t.container,a=t.skipAttributeExpressions,s=t.onChange,i){e.n=1;break}return e.a(2);case 1:return e.n=2,i.getEffectiveProperties();case 2:return l=e.v,c=l.qHyperCubeDef[o].findIndex((function(e){return e.qDef.cId===n})),u=l.qHyperCubeDef.qLayoutExclude.qHyperCubeDef[o].findIndex((function(e){return e.qDef.cId===r})),d=uZ(!0,{},l),f=d.qHyperCubeDef[o][c],(h=d.qHyperCubeDef.qLayoutExclude.qHyperCubeDef[o][u]).qAttributeDimensions=f.qAttributeDimensions,f.qAttributeDimensions=[],a||(h.qAttributeExpressions=f.qAttributeExpressions,f.qAttributeExpressions=[]),d.qHyperCubeDef[o][c]=h,d.qHyperCubeDef.qLayoutExclude.qHyperCubeDef[o][u]=f,s({fromItem:f,toItem:h,oldProperties:l,newProperties:d,model:i}),e.n=3,dZ({model:i,properties:d});case 3:i.colorSupport&&i.colorSupport.colorByUpdater(d,"qHyperCubeDef."),vZ({model:i,oldProperties:l,newProperties:d});case 4:return e.a(2)}}),e)})))).apply(this,arguments)}function wZ(e){var t=e.callbacks,n=e.data,r=e.resources,i=e.settings,o=t.onChange,a=n.infos,s=r.app,l=r.model,c=r.translator,u=i.skipAttributeExpressions;return a.map((function(e,t){var n=e.cId,r=e.qGrouping,i=e.qGroupFallbackTitles,a=e.qGroupPos,d=e.qFallbackTitle,f=e.qLocked,h=e.title,p="C"===r,m="H"===r,g="N"===r,y="number"==typeof e.explicitColumn?e.explicitColumn:t,v=function(t,n){p&&s&&s.getDimension&&s.getDimension(e.qLibraryId).then((function(e){null==e||e[t](n)})).catch((function(){}))};return{meta:{isCyclic:p,isDrillDown:m,isLocked:!!f,isNormal:g},info:{id:n,key:"".concat(n,"-").concat(a),text:g?d:i[a],position:a,breadcrumbs:i.slice(0,e.qGroupPos),group:{name:h,items:i.slice(0,m?e.qGroupPos+1:i.length).map((function(e,t){return{id:"".concat(n,"-item-").concat(t),text:e,current:a===t,index:t}}))},tooltip:g?void 0:c.get(p?"Tooltip.dimensions.cyclic":"Tooltip.dimensions.drilldown")},action:{changeTo:function(e){var t=e.id;return bZ({from:n,to:t,container:"qDimensions",model:l,skipAttributeExpressions:u,onChange:o})},drillUp:function(e){var t=e.steps;m&&l&&(null==l||l.drillUp("/qHyperCubeDef",y,t))},stepCycle:function(){return v("stepCycle",1)},setActiveField:function(e){var t=e.fieldIndex;return v("setActiveField",t)}}}}))}function kZ(e){var t=e.callbacks,n=e.data,r=e.resources,i=e.settings,o=t.onChange,a=n.infos,s=r.model,l=i.skipAttributeExpressions;return a.map((function(e){var t=e.cId,n=e.qFallbackTitle;return{meta:{isNormal:!0},info:{id:t,key:t,text:n},action:{changeTo:function(e){var n=e.id;return bZ({from:t,to:n,container:"qMeasures",model:s,skipAttributeExpressions:l,onChange:o})}}}}))}function SZ(e){var t=e.callbacks,n=e.data,r=e.dock,i=e.key,o=e.rect,a=e.resources,s=e.settings,l=e.state,c=e.styling,u=function(e){var t=e.dock,n=e.rect,r={pointerEvents:"auto",display:"flex",justifyContent:"center",alignItems:"center",height:"100%"};return"left"!==t&&"right"!==t||(r.width="".concat(n.height,"px"),r.height="".concat(n.width,"px"),r.transformOrigin="top left"),"left"===t&&(r.transform="rotate(-90deg) translate(-".concat(n.height,"px, 0)")),"right"===t&&(r.transform="rotate(90deg) translate(0, -".concat(n.width,"px)")),r}({dock:r,rect:o}),d=function(e){var t=e.callbacks,n=e.data,r=e.dock,i=e.key,o=e.resources,a=e.settings,s=e.state,l=e.styling,c=n.alternatives,u=n.infos,d=o.app,f=o.cache,h=o.model,p=a.isRTL,m=a.isSnapshot,g=a.type,y=function(e){var t=e.dock;return"top"!==t&&"bottom"!==t||!e.isRTL?"ltr":"rtl"}({dock:r,isRTL:p}),v=function(e){var t=e.cache,n="axis-title-auto-focus_"+e.key;return{queueFor:function(e){var r;return null==t||null===(r=t.set)||void 0===r?void 0:r.call(t,n,{focus:!0,index:e})},shouldFor:function(e){var r,i,o=null==t||null===(r=t.get)||void 0===r?void 0:r.call(t,n),a=!(null==o||!o.focus||(null==o?void 0:o.index)!==e);return a&&(null==t||null===(i=t.set)||void 0===i||i.call(t,n,{focus:!1})),a}}}({cache:f,key:i}),b=("dimension"===g?wZ:kZ)({callbacks:t,data:n,resources:o,settings:a});"rtl"===y&&b.reverse();var x={allowed:{change:!(null==h||!h.modifiers||null==h||!h.colorSupport||m),reload:!!d&&!m},hasAlternatives:!!c.length,hasCyclic:b.some((function(e){return e.meta.isCyclic})),hasMultiple:u.length>1};return b.map((function(e,t){return CJ(CJ({data:n,layout:{direction:y},resources:{translator:o.translator},services:{focus:v},settings:a,state:s,styling:l},e),{},{meta:CJ(CJ(CJ({},x),e.meta),{},{index:t,isFirst:0===t,isLast:t===b.length-1})})}))}({callbacks:t,data:n,dock:r,key:i,resources:a,settings:s,state:l,styling:c});return rC.createElement("div",{style:u},d.map((function(e){return rC.createElement(rC.Fragment,{key:e.info.id},rC.createElement(lZ,{source:e}),!e.meta.isLast&&rC.createElement("span",{dir:e.layout.direction,style:CJ(CJ({},c.title),{},{lineHeight:"normal"})},", "))})))}var CZ,EZ='"Source Sans Pro", "Arial", "sans-serif"',MZ="12px",_Z=function(e){var t=e.rect,n=e.state,r=e.settings,i=r.callbacks,o=r.data,a=r.key,s=r.layout,l=r.resources,c=r.settings,u=r.style;return SZ({callbacks:i,data:o,dock:s.dock,key:a,rect:t,resources:l,settings:c,state:n,styling:u})},qZ={renderer:"react",require:["renderer"],disableTriggers:!0,key:"axis-title",defaultSettings:{callbacks:{onChange:function(){}},data:{alternatives:[],infos:[]},resources:{app:void 0,cache:void 0,model:void 0,selections:void 0,translator:void 0},settings:{isDisabled:function(){return!1},isRTL:!1,isSnapshot:!1,skipAttributeExpressions:!1,type:"dimension"},style:{title:{color:"#333",fontFamily:EZ,fontSize:MZ},popover:{color:"#595959CC",fontFamily:EZ,fontSize:MZ}}},preferredSize:function(){var e=this.settings,t=e.data,n=e.settings,r=e.style,i=t.alternatives,o=n.type,a=r.title,s=a.fontSize,l=a.fontFamily,c=i.length||"measure"!==o?28:20,u=this.registries.renderer("svg")().measureText({text:"M",fontSize:s,fontFamily:l}).height;return Math.max(c,u)},created:function(){var e=this;this.state={inSelections:!1},this.listeners={onSelectionsActivated:function(){e.state.inSelections=!0,e.renderer.render(_Z(e))},onSelectionsDeactivated:function(){e.state.inSelections=!1}}},beforeMount:function(){var e=this.settings.resources.selections;e&&(e.addListener("activated",this.listeners.onSelectionsActivated),e.addListener("deactivated",this.listeners.onSelectionsDeactivated),e.addListener("canceled",this.listeners.onSelectionsDeactivated))},render:function(){return _Z(this)},beforeUnmount:function(){var e=this.settings.resources.selections;e&&(e.removeListener("activated",this.listeners.onSelectionsActivated),e.removeListener("deactivated",this.listeners.onSelectionsDeactivated),e.removeListener("canceled",this.listeners.onSelectionsDeactivated))}},DZ=function(e){var t=e.dock,n=e.settings.label,r="center"===t,i=r?{}:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"};return rC.createElement("span",{style:i,title:n},r?n:"* ".concat(n))},RZ={renderer:"react",disableTriggers:!0,key:"disclaimer",defaultSettings:{settings:{isRTL:!1,label:void 0},style:{fontFamily:'"Source Sans Pro", "Arial", "sans-serif"'}},preferredSize:function(){return 22},render:function(){var e=this.rect,t=this.settings,n=t.layout,r=t.settings,i=t.style;return function(e){var t=e.dock,n=e.rect,r=e.settings,i=e.styling,o=function(e){var t=e.dock;return"top"!==t&&"bottom"!==t||!e.isRTL?"ltr":"rtl"}({dock:t,isRTL:r.isRTL}),a=function(e){var t=e.dock,n=e.rect,r={pointerEvents:"auto",display:"flex",justifyContent:"center",alignItems:"center",color:"#7b7a78",fontStyle:"italic",fontSize:"13px",fontFamily:e.styling.fontFamily};return"left"===t&&(r.width="".concat(n.height,"px"),r.transform="rotate(-90deg) translate(-".concat(n.height,"px, 0)"),r.transformOrigin="top left"),"right"===t&&(r.width="".concat(n.height,"px"),r.transform="rotate(90deg) translate(0, -".concat(n.width,"px)"),r.transformOrigin="top left"),"center"===t&&(r.width="".concat(n.width,"px"),r.height="".concat(n.height,"px"),r.color="#595959",r.fontStyle="normal",r.fontSize="1.2em",r.textAlign="center"),"bottom"!==t&&"top"!==t||(r.justifyContent="flex-start",r.alignItems="flex-start"),r}({dock:t,rect:n,styling:i});return rC.createElement("div",{dir:o,style:a},rC.createElement(DZ,{dock:t,settings:r}))}({dock:n.dock,rect:e,settings:r,styling:i})}},TZ={},OZ=function(){if(CZ)return TZ;CZ=1;var e=Kj;return TZ.createRoot=e.createRoot,TZ.hydrateRoot=e.hydrateRoot,TZ}(),PZ=RK({spacing:8,shadows:["none","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)"],transitions:{easing:{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)"},duration:{standard:300,short:250,enteringScreen:225,shorter:200,leavingScreen:195,shortest:150,complex:375}},typography:{fontSize:14,fontWeightLight:300,fontWeightRegular:400,fontWeightMedium:600,fontWeightBold:700,htmlFontSize:14,fontFamily:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif",button:{fontWeight:600,fontSize:14,textTransform:"none"}},shape:{borderRadius:3},components:{MuiButtonBase:{defaultProps:{disableRipple:!0,disableTouchRipple:!0,focusVisibleClassName:"qcm-focus-visible"}},MuiButton:{defaultProps:{color:"inherit",disableRipple:!0,focusVisibleClassName:"qcm-focus-visible"},styleOverrides:{root:{height:"32px",lineHeight:"16px",minWidth:"24px",fontSize:141,borderRadius:3,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:"rgba(0, 0, 0, 0.1)"},"&.Mui-focusVisible":{boxShadow:"inset 0 0 0 2px ".concat("#177FE6")}},outlined:{border:"1px solid rgba(0, 0, 0, 0.15)"},sizeSmall:{fontSize:12,height:"24px","& > svg:only-child, & > i:only-child":{marginLeft:"-7px",marginRight:"-7px"}},sizeLarge:{fontSize:16,height:"40px",lineHeight:"20px","& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},textSizeSmall:{padding:"4px 11px"},textSizeLarge:{padding:"10px 19px"}},variants:[]},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiListItemButton:{styleOverrides:{root:{fontSize:14,height:"32px"}}},MuiListItemIcon:{styleOverrides:{root:{color:"#404040",minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:14,color:"#404040",lineHeight:"16px",fontWeight:600},secondary:{fontSize:12,color:"#737373",fontWeight:400,lineHeight:"16px"}}}}});function NZ(e){var t={x:0,y:0,width:0,height:0,scaleRatio:{x:1,y:1},margin:{left:0,top:0}},n=e||{},r=n.x,i=n.y,o=n.width,a=n.height,s=n.scaleRatio,l=n.margin;return t.x=Number.isNaN(r)||void 0===r?t.x:r,t.y=Number.isNaN(i)||void 0===i?t.y:i,t.width=Number.isNaN(o)||void 0===o?t.width:o,t.height=Number.isNaN(a)||void 0===a?t.height:a,void 0!==s&&(t.scaleRatio.x=Number.isNaN(s.x)?t.scaleRatio.x:s.x,t.scaleRatio.y=Number.isNaN(s.y)?t.scaleRatio.y:s.y),void 0!==l&&(t.margin.left=Number.isNaN(l.left)?0:l.left,t.margin.top=Number.isNaN(l.top)?0:l.top),t}function AZ(){var e={rendererBox:NZ(),container:void 0,root:void 0},t=function(){var t,n;null===(t=e.root)||void 0===t||t.unmount(),null===(n=e.container)||void 0===n||null===(n=n.parentElement)||void 0===n||n.removeChild(e.container),e.container=void 0};return{size:function(t){return t&&(e.rendererBox=NZ(t)),e.rendererBox},element:function(){return e.container},appendTo:function(t){return e.container||(e.container=document.createElement("div"),e.container.style.position="absolute",e.container.style["-webkit-font-smoothing"]="antialiased",e.container.style["-moz-osx-font-smoothing"]="antialiased",e.container.style.pointerEvents="none",e.root=OZ.createRoot(e.container)),t.appendChild(e.container),e.container},setKey:function(t){e.container&&e.container.setAttribute("data-key",t)},render:function(t){if(!e.container)return!1;var n=e.rendererBox,r=n.scaleRatio.x,i=n.scaleRatio.y;return e.container.style.left="".concat(Math.round(n.margin.left+n.x*r),"px"),e.container.style.top="".concat(Math.round(n.margin.top+n.y*i),"px"),e.container.style.width="".concat(Math.round(n.width),"px"),e.container.style.height="".concat(Math.round(n.height),"px"),e.container.style.transform="scale(".concat(r,", ").concat(i,")"),e.container.style.transformOrigin="top left",e.root.render(function(e){var t=e.nodes;return rC.createElement(rC.StrictMode,null,rC.createElement(fG,{theme:PZ},t))}({nodes:t})),!0},findShapes:function(){return[]},itemsAt:function(){return[]},clear:function(){t()},destroy:function(){t()}}}function IZ(e){return Ry(e).l<70}function LZ(e,t){const n=Ry(e).l/100,r=Ry(t).l/100;return n>r?(n+.05)/(r+.05):(r+.05)/(n+.05)}function zZ(e,t){return{x:t.x+e.r*Math.sin(e.a),y:t.y-e.r*Math.cos(e.a)}}var FZ={require:["chart","settings"],defaultSettings:{settings:{},style:{}},render(){return function({chart:e,settings:t}){const n=e.component(t.component);if(!n)return[];const r=e.findShapes(t.selector).filter((e=>e.key===t.component));if(r.length<2)return[];if(n.settings.settings.slice.cornerRadius>0||n.settings.settings.slice.strokeWidth>0)return[];const i=[];let o=r[r.length-1];for(let e=0;e<r.length;e+=1){const t=r[e],n=o.attrs.fill,a=t.attrs.fill;if(LZ(a,n)<=1.2){const{start:e,offset:n}=t.desc.slice;let{innerRadius:r,outerRadius:s}=t.desc.slice;if(r=Math.max(r,o.desc.slice.innerRadius),s=Math.min(s,o.desc.slice.outerRadius),s>r){const t=zZ({r:s,a:e},n),o=zZ({r:r,a:e},n);i.push({type:"line",x1:t.x,y1:t.y,x2:o.x,y2:o.y,strokeWidth:1,opacity:.4,stroke:IZ(a)?"#ccc":"#333"})}}o=t}return i}({chart:this.chart,rect:this.rect,style:this.style,settings:this.settings.settings})}};function jZ(e,t=!0){let n="";for(let t=0;t<e.length;t++){const r=e[t];n+=0===t?`M${r.x} ${r.y}`:`L${r.x} ${r.y}`,n+=" "}return t&&(n+="Z"),n}function $Z(e){const{size:t,angle:n}=e,r={x:e.x,y:e.y},i=t/2,o=e.x-i,a=e.y-i;let s=[{x:o,y:a+t},{x:o+i,y:a},{x:o+t,y:a+t},{x:o,y:a+t}];return s=s.map((e=>function(e,t,n={x:0,y:0}){const r=Math.cos(t),i=Math.sin(t),o=(s=n,{x:(a=e).x-s.x,y:a.y-s.y});var a,s;return function(e,t){return{x:e.x+t.x,y:e.y+t.y}}({x:r*o.x-i*o.y,y:i*o.x+r*o.y},n)}(e,n,r))),{type:"path",fill:e.fill,d:jZ(s)}}var HZ={require:["chart"],defaultSettings:{settings:{},style:{}},render(){return function({chart:e,settings:t}){if(!e.component(t.component))return[];const n=e.findShapes(t.selector).filter((e=>e.key===t.component));if(n.length<2)return[];const r=[];for(let e=0;e<n.length;e+=1){const a=n[e];if(a.data.radius.value<0){const{start:e,end:n,offset:s}=a.desc.slice,l=(e+n)/2,c=(i={r:t.offset,a:l},{x:(o=s).x+i.r*Math.sin(i.a),y:o.y-i.r*Math.cos(i.a)}),u=$Z({size:t.size,fill:t.fill,angle:l+Math.PI,...c});u.data={...a.data,_share:a.desc.share,_fillColor:a.attrs.fill},r.push(u)}}var i,o;return r}({chart:this.chart,rect:this.rect,style:this.style,settings:this.settings.settings})}};function VZ(){const e=vp();return e.use(ag),e.use(function(e){if("function"!=typeof e.interaction)return t=>{t.interaction("hammer",cg(e))};e.interaction("hammer",cg(Hammer))}(a)),e.use((function(e){e.renderer("react",RH()),e.component("data-title",_H(e.renderer("svg")()))})),e.renderer("react-qcm",AZ),e.component("axis-title",qZ),e.component("disclaimer",RZ),e.component("pie-dividers",FZ),e.component("negative-indicators",HZ),e}var BZ={};function WZ(){WZ.init.call(this)}BZ.isObject=function(e){return"object"==typeof e&&null!==e},BZ.isNumber=function(e){return"number"==typeof e},BZ.isUndefined=function(e){return void 0===e},BZ.isFunction=function(e){return"function"==typeof e};var UZ=WZ;WZ.EventEmitter=WZ,WZ.prototype._events=void 0,WZ.prototype._maxListeners=void 0,WZ.defaultMaxListeners=10,WZ.init=function(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0},WZ.prototype.setMaxListeners=function(e){if(!BZ.isNumber(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},WZ.prototype.emit=function(e){var t,n,r,i,o,a;if(this._events||(this._events={}),"error"===e&&!this._events.error)throw(t=arguments[1])instanceof Error?t:Error('Uncaught, unspecified "error" event.');if(n=this._events[e],BZ.isUndefined(n))return!1;if(BZ.isFunction(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:for(r=arguments.length,i=new Array(r-1),o=1;o<r;o++)i[o-1]=arguments[o];n.apply(this,i)}else if(BZ.isObject(n)){for(r=arguments.length,i=new Array(r-1),o=1;o<r;o++)i[o-1]=arguments[o];for(r=(a=n.slice()).length,o=0;o<r;o++)a[o].apply(this,i)}return!0},WZ.prototype.addListener=function(e,t){var n;if(!BZ.isFunction(t))throw TypeError("listener must be a function");(this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,BZ.isFunction(t.listener)?t.listener:t),this._events[e]?BZ.isObject(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,BZ.isObject(this._events[e])&&!this._events[e].warned)&&((n=BZ.isUndefined(this._maxListeners)?WZ.defaultMaxListeners:this._maxListeners)&&n>0&&this._events[e].length>n&&(this._events[e].warned=!0,BZ.isFunction(console.error)&&console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),BZ.isFunction(console.trace)&&console.trace()));return this},WZ.prototype.on=WZ.prototype.addListener,WZ.prototype.once=function(e,t){if(!BZ.isFunction(t))throw TypeError("listener must be a function");var n=!1;function r(){this.removeListener(e,r),n||(n=!0,t.apply(this,arguments))}return r.listener=t,this.on(e,r),this},WZ.prototype.removeListener=function(e,t){var n,r,i,o;if(!BZ.isFunction(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(i=(n=this._events[e]).length,r=-1,n===t||BZ.isFunction(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(BZ.isObject(n)){for(o=i;o-- >0;)if(n[o]===t||n[o].listener&&n[o].listener===t){r=o;break}if(r<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(r,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},WZ.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(n=this._events[e],BZ.isFunction(n))this.removeListener(e,n);else if(Array.isArray(n))for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},WZ.prototype.listeners=function(e){return this._events&&this._events[e]?BZ.isFunction(this._events[e])?[this._events[e]]:this._events[e].slice():[]},WZ.listenerCount=function(e,t){return e._events&&e._events[t]?BZ.isFunction(e._events[t])?1:e._events[t].length:0};var YZ=r(UZ);function KZ(){const e={};var t;return t=e,Object.keys(YZ.prototype).forEach((e=>{t[e]=YZ.prototype[e]})),YZ.init(t),e.lasso={active:()=>!1},e.select={on:e.on,removeListener:e.removeListener},e}function GZ({picasso:t}){var n;const r=e.useOptions(),i=e.useElement(),o=e.useSelections(),[a,s]=e.useState(),l=KZ(),c=e.useLayout(),u=e.useTranslator(),d=!(null===(n=c.qSelectionInfo)||void 0===n||!n.qInSelections),[f,h]=e.useState(!1);return l.lasso=function({layout:e,isInSelections:t,isLassoActionActive:n,setIsLassoActionActive:r,translator:i}){var o;return{active:n,label:i.get(n?"Tooltip.ToggleOffLassoSelection":"Tooltip.ToggleOnLassoSelection"),hidden:!t||!(null===(o=e.qHyperCube)||void 0===o||null===(o=o.qDimensionInfo)||void 0===o||null===(o=o[0])||void 0===o||!o.qIsOneAndOnlyOne),action(e){r("boolean"==typeof e?e:!n)},icon:{shapes:[{type:"path",attrs:{d:"M15.9488039,5.20769129 C16.0487326,6.70662306 15.3492311,8.30548361 14.050157,9.30477145 C12.651154,10.5039169 10.8524359,10.8037032 8.85386017,10.4039881 L7.3549284,10.0042729 L5.75606786,9.70448659 C5.75606786,9.90434416 5.65613907,10.0042729 5.4562815,10.2041305 C5.05656637,10.6038456 4.55692244,10.8037032 4.05727852,10.8037032 C3.75749217,10.8037032 3.45770582,10.7037744 3.15791946,10.6038456 C3.05799068,10.903632 3.15791946,11.2034184 3.45770582,11.7030623 C5.05656637,14.0014243 3.85742095,15.9000712 3.75749217,16 L2.2585604,15.3004985 C2.2585604,15.2005697 2.95806189,14.0014243 1.95877405,12.6024213 C1.6589877,12.0028486 1.15934378,11.0035608 1.55905891,10.0042729 C1.6589877,9.80441537 1.75891648,9.6045578 1.95877405,9.40470024 C1.6589877,8.90505631 1.55905891,8.30548361 1.85884527,7.7059109 C1.55905891,7.40612455 1.25927256,7.1063382 1.15934378,6.70662306 C0.859557424,5.90719279 0.959486209,4.5081898 1.6589877,3.30904439 C1.95877405,2.6095429 2.55834676,2.0099702 3.15791946,1.51032628 C3.95734974,0.91075357 4.95663758,0.610967217 6.15578299,0.311180864 C9.05371774,-0.388320626 11.9516525,0.111323295 13.9502282,1.61025506 C15.1493736,2.50961412 15.8488751,3.80868831 15.9488039,5.20769129 Z M13.0508691,8.10562604 C13.8502994,7.40612455 14.3499433,6.40683671 14.3499433,5.30762008 C14.2500145,4.20840345 13.550513,3.40897318 12.9509403,2.90932926 C12.1515101,2.40968533 11.252151,2.0099702 10.1529344,1.81011263 C8.95378895,1.61025506 7.75464354,1.71018384 6.45556935,1.91004141 C4.75678001,2.30975655 3.65756338,3.00925804 3.05799068,4.10847467 C2.55834676,5.00783373 2.65827554,5.90719279 2.75820433,6.20697914 C2.75820433,6.30690792 2.85813311,6.40683671 3.05799068,6.40683671 C3.15791946,6.40683671 3.25784825,6.40683671 3.35777703,6.40683671 C3.45770582,6.40683671 3.45770582,6.40683671 3.45770582,6.40683671 L3.5576346,6.40683671 L3.65756338,6.40683671 C4.65685123,6.40683671 5.4562815,6.90648063 5.85599664,7.80583969 L5.85599664,8.00569726 C6.35564056,8.10562604 7.05514205,8.30548361 7.75464354,8.50534118 L9.25357531,8.90505631 C10.0530056,9.0049851 10.7525071,9.0049851 11.4520086,8.80512753 C12.0515813,8.70519875 12.5512252,8.40541239 13.0508691,8.10562604 Z"}}]}}}({layout:c,isInSelections:d,isLassoActionActive:f,setIsLassoActionActive:h,translator:u}),e.useAction((()=>(a&&(a.interactions.lasso.active=()=>f),{...l.lasso})),[a,f,d,u.language()]),e.useEffect((()=>{i.style.overflow="hidden";const e=t({renderer:{prio:[r.renderer||"canvas"]}}),n=e.chart({element:i,data:[],settings:{}}),a=Rk({chart:n,actions:l,selections:o,config:{selectionActions:!1}});a.setLayout(c),a.setBrushAliases({colorField:"qDimensionInfo/0/qAttrDimInfo/0"});const u=function(e){var t=rv({},e),n={},r={},i=!1,o={get:function(e){return t[e]},set:function(e,o){var a=t[e];!i&&n[e]?t[e]=n[e](o,a):t[e]=o,!i&&r[e]&&r[e](t[e],a)},preventSet:function(e,t){i=!0,o.set(e,t),i=!1},intercept:function(e,t){n[e]=t},onChanged:function(e,t){r[e]=t}};return o}({legendScrollOffset:0,rotation:0});u.intercept("rotation",(e=>(u.get("rotation")+e)%(2*Math.PI))),u.onChanged("rotation",(()=>{n.update({partialData:!0})}));const d=Sx();return l.on("selections-start",(()=>{n.brush("selection").start()})),s({picasso:e,chart:n,selectionService:a,viewState:u,viewCache:d,interactions:l}),()=>{a.destroy(),n.destroy(),l.removeAllListeners(),delete l.select,u.intercept("rotation",void 0),u.onChanged("rotation",void 0)}}),[]),a}const XZ={CUSTOM:{EXPRESSION:"customTooltipExpression",TITLE:"customTooltipTitle",DESCRIPTION:"customTooltipDescription",QUARANTINE:"customTooltip",IMAGES:"customTooltipImages"},CHART:{CONTAINER_ID:"tooltipContainerId",STATE:"customTooltipSessionState",CHART_OBJECT_ID:"customTooltipSessionObjectId",CHART_PARENT_TYPE:"TooltipChartParent",CHART_CHILD_TYPE:"TooltipChart",STYLE:{small:"140px",medium:"200px",large:"340px"}}};function JZ(e){const t=e.split("/");return"qmem:"===t[0]&&""===t[1]}const ZZ={getImageSize(e,t){let n;function r(){n&&(clearTimeout(n),n=null)}function i(e){const t=e;t.onload=null,t.onerror=null,r()}const o={small:50,medium:200,large:340,original:340};return new Promise((a=>{const s=new Image;s.referrerPolicy="no-referrer",s.onload=()=>{let e;const{height:n,width:l}=s,c=o[t]*(n>l?1:n/l),u=o[t]*(l>n?1:l/n);!n||!l||0===n&&0===l?(e={height:20,width:20,imageError:!0},i(s)):"original"===t?(e={height:Math.min(c,n),width:Math.min(u,l)},r()):(e={height:c,width:u},r()),a(e)},s.onerror=()=>{i(s),a({height:20,width:20,imageError:!0})},s.src=e,n=setTimeout((()=>{i(s),a({height:20,width:20,imageError:!0})}),3e3)}))}};async function QZ(e,t,n){let r=e.ref.qStaticContentUrl.qUrl;const i=function(e){var t,n,r;let i,o,a,s,l,c;if(e&&(null!==(t=e.session)&&void 0!==t&&t.options||null!==(n=e.enigmaModel)&&void 0!==n&&null!==(n=n.session)&&void 0!==n&&n.sessionConfig||null!==(r=e.session)&&void 0!==r&&null!==(r=r.config)&&void 0!==r&&r.url)){var u;if(i=e.session.options||(null===(u=e.enigmaModel)||void 0===u?void 0:u.session.sessionConfig),!i){var d;i=null===(d=e.session)||void 0===d?void 0:d.config;const t=new URL(i.url);i.host=t.hostname,i.port=t.port,i.isSecure="wss:"===t.protocol}return c=void 0!==i.secure?i.secure:i.isSecure,o=c?"https://":"http://",a=i.host||"localhost",s=i.port?`:${i.port}`:"",l=i.prefix?i.prefix:"/","/"!==l[l.length-1]&&(l=`${l}/`),o+a+s+l}return""}(n);i&&(!function(e,t){const n=e.replace(t,"").replace(/^\.\.\//i,"/");n[0]}(r,i),r=r.replace(/"/g,'\\"'),r=r.replace(/'/g,"\\'"),r=function(e,t){return t+("/"===e[0]?e.substr(1):e)}(r,i));const{height:o,width:a,imageError:s}=await ZZ.getImageSize(r,t);return{src:r,size:t,height:o,width:a,imageError:s}}async function eQ(e,t,n,r){var i,o,a;const{app:s,flags:l}=t,c=null===(i=e.layout)||void 0===i||null===(i=i.tooltip)||void 0===i?void 0:i.imageComponents;if(!c)return[];const[u]=c,d=u.size||"small",f=u.type||"media";let h=-1;for(let e=0;e<n.length;e++)if(n[e].cId===u.cId){h=e;break}const p=(null===(o=r.data)||void 0===o||null===(o=o.customTooltipAttrExps)||void 0===o?void 0:o.value)||[];let m;if(-1!==h&&p[h]&&(m=p[h]),"media"===f&&null!==(a=u.ref)&&void 0!==a&&null!==(a=a.qStaticContentUrl)&&void 0!==a&&a.qUrl)return QZ(u,d,s);if("url"===f)return async function(e,t,n,r,i){let o,a=n.ref;if(i&&i.label&&(a=i.label),t.isEnabled("IMAGE_BUNDLE_LOAD")&&null!=e&&e.getImage&&JZ(a))try{const t=`data:image/png;base64, ${await e.getImage(a)}`,{height:n,width:i,imageError:s}=await ZZ.getImageSize(t,r);o={src:t,size:r,height:n,width:i,imageError:s}}catch(e){}else{const{height:e,width:t,imageError:n}=await ZZ.getImageSize(a,r);o={src:a,size:r,height:e,width:t,imageError:n}}return o}(s,l,u,d,m);if(l.isEnabled("IMAGE_BUNDLE_LOAD")&&"field"===f&&m&&m.label){return async function(e,t,n,r){let i;const o=r.label,a=`qmem://${t.qFallbackTitle}/${o}`;if(JZ(a))try{const t=await e.getImage(a);if(t){const e=`data:image/png;base64, ${t}`,{height:r,width:o,imageError:a}=await ZZ.getImageSize(e,n);i={src:e,size:n,height:r,width:o,imageError:a}}}catch(e){}return i}(s,n[h],d,m)}return[]}const tQ={async addImagesToTheNodes({customTooltipModel:e,nodes:t,attrExps:n,opts:r}){const i=t,o=[];for(let t=0;t<i.length;t++)o.push(eQ(e,r,n,i[t]));const a=await Promise.all(o);for(let e=0;e<i.length;e++)i[e].data.customTooltipImages=[a[e]];return i},checkIfPromisesExist({customTooltipModel:e}){var t;const n=null===(t=e.layout)||void 0===t||null===(t=t.tooltip)||void 0===t?void 0:t.imageComponents;return!!n&&n.length>0}},nQ={async handlePromises({customTooltipModel:e,nodes:t,attrExps:n,opts:r}){let i=t;return i=await tQ.addImagesToTheNodes({customTooltipModel:e,nodes:t,attrExps:n,opts:r}),i},checkIfPromisesExist:({customTooltipModel:e})=>tQ.checkIfPromisesExist({customTooltipModel:e})};const rQ=(e,t)=>{var n,r,i;const o=null==e||null===(n=e.qHyperCubeDef)||void 0===n?void 0:n.qDimensions,a=null==e||null===(r=e.qHyperCubeDef)||void 0===r?void 0:r.qMeasures,s=null==e||null===(i=e.qHyperCubeDef)||void 0===i?void 0:i.qInterColumnSortOrder,l=t;return{qInfo:{qType:XZ.CHART.CHART_PARENT_TYPE,qId:XZ.CHART.CHART_OBJECT_ID},qHyperCubeDef:{qDimensions:o,qMeasures:a,qInterColumnSortOrder:s,qInitialDataFetch:[{qWidth:0,qHeight:0}]},qStateName:l}},iQ=e=>{var t;const n=null===(t=e.tooltip)||void 0===t||null===(t=t.chart)||void 0===t||null===(t=t.object)||void 0===t?void 0:t.refId;return{qInfo:{qType:XZ.CHART.CHART_CHILD_TYPE},qExtendsId:n}};const oQ={createContainer:({ctx:e,layout:t})=>{var n;if(!((null===(n=t.qHyperCube)||void 0===n||null===(n=n.qDimensionInfo)||void 0===n?void 0:n.length)<=0))return function(e,t){var n,r;const i=null!==(n=null===(r=t.tooltip)||void 0===r||null===(r=r.chart)||void 0===r||null===(r=r.style)||void 0===r?void 0:r.size)&&void 0!==n?n:"medium",o=XZ.CHART.STYLE[i];return[{content:[e.h("div",{style:{display:"flex",width:o,height:o,backgroundColor:"#FFFFFF",borderRadius:"5px",padding:"2px",color:"#595959"},colspan:2,id:XZ.CHART.CONTAINER_ID})],colspan:2,style:{"text-align":e.rtl?"right":"left","max-width":o}},{}]}(e,t)},show:async({app:e,properties:t,selectedNodes:n,dimIndex:r,customTooltipModel:i,rtl:o})=>{var a;const s=i,l=null==t||null===(a=t.tooltip)||void 0===a||null===(a=a.chart)||void 0===a||null===(a=a.object)||void 0===a?void 0:a.refId;if(null!=s&&s.embed&&e.removeSessionAlternateState&&e.addSessionAlternateState&&l&&!(t.qHyperCubeDef.qDimensions.length<=0)){await oQ.hide({app:e,customTooltipModel:i});try{await async function({app:e,properties:t,customTooltipModel:n}){const r=n,i=XZ.CHART.STATE,o=t.qStateName;r.miniChartToken.alternateState||(r.miniChartToken.alternateState=i,await e.addSessionAlternateState(i,o),r.miniChartToken.alternateState=i)}({app:e,properties:t,customTooltipModel:i});const a=await async function({app:e,properties:t,customTooltipModel:n}){var r;const i=n;null!==(r=i.miniChartToken.sessionObj)&&void 0!==r&&r.id&&await e.destroySessionObject(i.miniChartToken.sessionObj.id);const o=XZ.CHART.STATE,a=rQ(t,o),s=await e.createSessionObject(a),l=iQ(t);if(s.id!==XZ.CHART.CHART_OBJECT_ID)return void e.destroySessionObject(s.id);i.miniChartToken.sessionObj=s;const c=await s.createChild(l);if(i.miniChartToken.sessionObj&&i.miniChartToken.sessionObj.id===s.id)return i.miniChartToken.model=c,c;e.destroySessionObject(s.id)}({app:e,properties:t,customTooltipModel:i});if(s.miniChartToken.alternateState&&s.miniChartToken.sessionObj&&a){var c,u,d,f;const e=n.length>0&&void 0!==(null===(c=n[0].data)||void 0===c?void 0:c.value)?[null===(u=n[0].data)||void 0===u?void 0:u.value]:[],a=void 0!==r?r:t.qHyperCubeDef.qDimensions.length-1;if(2===t.qHyperCubeDef.qDimensions.length&&void 0===r&&n.length>0){var h,p;const e=null!==(h=n[0].data.selectionOuterDimension)&&void 0!==h?h:n[0].data.selectionDimension;if(null!=e&&null!==(p=e.source)&&void 0!==p&&p.field){var m;const t=null==e||null===(m=e.source)||void 0===m?void 0:m.field.split("/"),n=t[t.length-1],r=void 0!==e.value?[e.value]:[];r.length>0&&void 0!==n&&s.miniChartToken.sessionObj.selectHyperCubeValues("/qHyperCubeDef",Number(n),r,!1)}}e.length>0&&s.miniChartToken.sessionObj.selectHyperCubeValues("/qHyperCubeDef",a,e,!1);const l=document.getElementById(XZ.CHART.CONTAINER_ID),g={direction:o?"rtl":"ltr",isReadonly:!0,isPopover:!0,navigation:!1,selections:!1};s.miniChartToken.vis=await i.embed.render({element:l,model:s.miniChartToken.model,options:g,id:null===(d=s.miniChartToken.model)||void 0===d?void 0:d.id,type:null===(f=s.miniChartToken.model)||void 0===f?void 0:f.genericType})}}catch(t){await oQ.hide({app:e,customTooltipModel:i})}}},hide:async({app:e,customTooltipModel:t})=>{const n=t;null!=n&&n.embed&&(oQ.destroyVisualization({customTooltipModel:t}),await e.destroySessionObject(XZ.CHART.CHART_OBJECT_ID),n.miniChartToken.sessionObj=void 0,await async function({app:e,customTooltipModel:t}){const n=t,r=XZ.CHART.STATE;n.miniChartToken.alternateState=void 0,await e.removeSessionAlternateState(r)}({app:e,customTooltipModel:t}))},destroyVisualization:({customTooltipModel:e})=>{var t;const n=e;"function"==typeof(null===(t=n.miniChartToken)||void 0===t||null===(t=t.vis)||void 0===t?void 0:t.destroy)&&(n.miniChartToken.vis.destroy(),n.miniChartToken.vis=void 0)}};function aQ(e){const t=e.qHyperCubeDef?e.qHyperCubeDef.qDimensions:e.qHyperCube.qDimensionInfo;if(t&&t.length>0)return t}function sQ(){const{EXPRESSION:e,TITLE:t,DESCRIPTION:n,IMAGES:r}=XZ.CUSTOM,i={};return i[e]=!0,i[t]=!0,i[n]=!0,i[r]=!0,i}function lQ(e){const t=sQ();return e.filter((e=>t[e.id]))}const cQ={getNodes(e,t){const n=function(e,t){let n=0,r=0;e.center?(n+=e.center.x,r+=e.center.y):(n+=e.clientX,r+=e.clientY);const i=t.element.getBoundingClientRect();return{cx:n-i.left,cy:r-i.top}}(e,t);return t.shapesAt({x:n.cx,y:n.cy})},getDataNodes(e,t){let n,r=[];const i={container:{bar:!0,"bullet-axis":!0},circle:{"point-component":!0}};return t.forEach((t=>{var o,a,s,l;const c=null!==(o=null===(a=t.data)||void 0===a?void 0:a.selectionDimension)&&void 0!==o?o:t.data;if(!c||null!==(s=t.data)&&void 0!==s&&s.customTooltipAttrExps||i[t.type]){if(null!==(l=t.data)&&void 0!==l&&l.customTooltipAttrExps&&!t.data.customTooltipImages){const e=t;e.data.customTooltipImages=[],r.push(e)}}else{n||(n=[],Object.keys(i).forEach((t=>{n=n.concat(e.findShapes(t).filter((e=>e.data&&e.data.customTooltipAttrExps&&!e.data.customTooltipImages&&i[t][e.key])))})));const t=n.filter((e=>{var t,n;const r=null!==(t=null!==(n=e.data.stack)&&void 0!==n?n:e.data.selectionOuterDimension)&&void 0!==t?t:e.data.selectionDimension;return r&&r.value===c.value&&r.label===c.label}));t.length>0&&(r=r.concat(t[0]))}})),r},displayTooltip(e,t,{nodes:n,opts:r={},customTooltipModel:i,extractedNodes:o=[],hide:a}){if(i&&!a){const{layout:a,chart:s}=i,{attrExps:l}=cQ.getAttrExprData(a);o.length||n.length?nQ.handlePromises({customTooltipModel:i,nodes:cQ.getDataNodes(s,o.length>0?o:n),attrExps:l,opts:r}).then((()=>{t.emit("show",e,n.length?{nodes:n}:void 0)})):t.emit("show",e,n.length?{nodes:n}:void 0)}else{var s;null!=i&&null!==(s=i.miniChartToken)&&void 0!==s&&s.alternateState&&oQ.hide({app:r.app,customTooltipModel:i}),t.emit("hide")}},checkIfPromisesExist:({customTooltipModel:e})=>nQ.checkIfPromisesExist({customTooltipModel:e}),getAttrExps(e,t){var n;const r=t,i=null!==(n=e.qHyperCubeDef)&&void 0!==n&&n.qDimensions?"qAttributeExpressions":"qAttrExprInfo";return r[i]||(r[i]=[]),r[i]},getAttrExprData(e){var t;let n=[],r="";const i=(null===(t=e.qHyperCube)||void 0===t?void 0:t.qDimensionInfo)||[];if(i.length>0){var o;const t=i.length-1;n=(null===(o=e.qHyperCube)||void 0===o||null===(o=o.qDimensionInfo)||void 0===o||null===(o=o[t])||void 0===o?void 0:o.qAttrExprInfo)||[],r=`qDimensionInfo/${t}/qAttrExprInfo`}return{attrExps:n,fieldPath:r}},quarantineCustomTooltipAttrs(e,t={}){var n;if(!(null===(n=e.qLayoutExclude)||void 0===n||null===(n=n.quarantine)||void 0===n?void 0:n[XZ.CUSTOM.QUARANTINE])){!function(e,t){const n=t;let r=n.qLayoutExclude;r||(n.qLayoutExclude={quarantine:{}},r=n.qLayoutExclude),r.quarantine||(r.quarantine={}),r.quarantine[XZ.CUSTOM.QUARANTINE]=[],e.forEach((e=>{r.quarantine[XZ.CUSTOM.QUARANTINE].push(e)})),n.qLayoutExclude=r}(lQ(t.qAttributeExpressions||[]),e)}},unquarantineCustomTooltipAttrs(e){var t;const n=e;(null===(t=e.qLayoutExclude)||void 0===t||null===(t=t.quarantine)||void 0===t?void 0:t[XZ.CUSTOM.QUARANTINE])&&delete n.qLayoutExclude.quarantine[XZ.CUSTOM.QUARANTINE]},setAttrsFromQuarantine(e,t){const n=aQ(e);if(!n)return;const r=void 0!==t?t:n.length-1;if(!n[r])return;const i=this.getAttrExps(e,n[r]);if(0===lQ(i).length){var o;const t=(null===(o=e.qLayoutExclude)||void 0===o||null===(o=o.quarantine)||void 0===o?void 0:o.customTooltip)||[],n=[...i,...t],a=e;a.qHyperCubeDef?a.qHyperCubeDef.qDimensions[r].qAttributeExpressions=n:a.qHyperCube.qDimensionInfo[r].qAttrExprInfo=n}},moveCustomTooltipAttrs(e,t={},n=void 0){let r=[];const i=aQ(e)||[];[...i,t].forEach((e=>{const t=lQ(e.qAttributeExpressions||[]);t.length>0&&(r=t)}));const o=sQ(),a=i.map((e=>{const t=e,n=e.qAttributeExpressions||[];return t.qAttributeExpressions=n.filter((e=>!o[e.id])),t})),s=void 0!==n?n:a.length-1;a.length>0&&(a[s].qAttributeExpressions=a[s].qAttributeExpressions.concat(r));const l=e;e.qHyperCubeDef?l.qHyperCubeDef.qDimensions=a:l.qHyperCube.qDimensionInfo=a},addCallbackCustomTooltip(e){e.qHyperCubeDef.qDimensions.length>1?this.moveCustomTooltipAttrs(e):(this.setAttrsFromQuarantine(e),this.unquarantineCustomTooltipAttrs(e))},moveCallbackCustomTooltip(e,t){1===e.qHyperCubeDef.qDimensions.length&&(this.setAttrsFromQuarantine(e),this.unquarantineCustomTooltipAttrs(e)),e.qHyperCubeDef.qDimensions.length>1&&this.moveCustomTooltipAttrs(e,t)},removeCallbackCustomTooltip(e,t){e.qHyperCubeDef.qDimensions.length>0?this.moveCustomTooltipAttrs(e,t):this.quarantineCustomTooltipAttrs(e,t)},replaceCallbackCustomTooltip(e,t){e.qHyperCubeDef.qDimensions.length>1?this.moveCustomTooltipAttrs(e,t):(this.quarantineCustomTooltipAttrs(e,t),this.setAttrsFromQuarantine(e),this.unquarantineCustomTooltipAttrs(e))},shouldIgnoreDefaultRows(e){var t;return(null===(t=e.tooltip)||void 0===t?void 0:t.hideBasic)||0},DEBOUNCE_THRESHOLD:50,getFooterRow:(e,t)=>[{content:e,style:{"font-style":"italic","font-size":"12px","line-height":"16px",color:"rgba(255, 255, 255, 0.6)","text-align":t?"right":"left",direction:Tg.detectTextDirection(e)},colspan:2},{}],getImageRow(e,t){const n=Tg.detectTextDirection(e.src),r=[],i={style:{display:"block","margin-left":"auto","margin-right":"auto",overflow:"hidden",width:e.width,height:e.height}};if("original"===e.size||e.imageError){r.push(t.h("span",{style:{display:"inline-block",height:"100%","vertical-align":"middle"}}));const n=e.imageError?`${e.src}?${Math.random()}`:e.src;r.push(t.h("img",{style:{"max-width":e.width,"max-height":e.height,"vertical-align":"middle"},src:n,referrerpolicy:"no-referrer"})),i.style["text-align"]="center",i.style["white-space"]="nowrap"}else i.style["background-size"]="contain",i.style["background-repeat"]="no-repeat",i.style["background-position"]="center",i.style["background-image"]=`url('${e.src}')`;return[{content:[t.h("div",i,r),""],style:{"text-align":t.rtl?"right":"left",direction:n,"max-width":e.width},colspan:2},{}]}};function uQ(e,t,n,r){var i;const o=(null===(i=t.qHyperCube)||void 0===i||null===(i=i[n])||void 0===i||null===(i=i[r])||void 0===i?void 0:i.qAttrExprInfo)||[],a=[],s=e.qSubNodes&&e.qSubNodes[r]?e.qSubNodes[r].qAttrExps:e.qAttrExps;return s?(o.forEach(((e,t)=>{const i=s.qValues&&s.qValues[t]?s.qValues[t]:void 0,o=void 0===i?"NaN":function(e,t){let n;switch(e.id){case XZ.CUSTOM.EXPRESSION:n="NaN"===t.qNum||e.isCustomFormatted?void 0===t.qText?"NaN":t.qText:t.qNum;break;case XZ.CUSTOM.TITLE:case XZ.CUSTOM.DESCRIPTION:case XZ.CUSTOM.IMAGES:n=void 0===t.qText?e.qFallbackTitle:t.qText;break;default:n="NaN"}return n}(e,i);a.push({source:{key:"qHyperCube",field:`${n}/${r}/qAttrExprInfo/${t}`},label:o,value:"value"})})),a):a}const dQ={getNode(e,{dimensionCount:t}){if(!t||t<1)return;const n=t-1,r="qDimensionInfo";return{field:`${r}/${n}`,value:t=>uQ(t,e,r,n)}}};const fQ={getCustomAttrExps(e,t,n){var r;const i={customTooltipAttrExpsArr:[],customTooltipInfoAttrExpsArr:[]},o=(null===(r=t.data)||void 0===r||null===(r=r.customTooltipAttrExps)||void 0===r?void 0:r.value)||[];if(Number.isNaN(o))return i;return function(e,t,n,r){const i={[XZ.CUSTOM.TITLE]:!0,[XZ.CUSTOM.DESCRIPTION]:!0},{attrExps:o,fieldPath:a}=cQ.getAttrExprData(e);return 0===t.length||0===o.length||""===a||o.forEach(((e,o)=>{const s=t[o];if(e.id===XZ.CUSTOM.EXPRESSION&&s){const t=e.qFallbackTitle,i="NaN"===s.value||e.isCustomFormatted?s.value:n("qHyperCube").field(`${a}/${o}`).formatter()(s.value);r.customTooltipAttrExpsArr.push({label:t,value:i})}else if(i[e.id]&&s){const t="-"!==s.value&&"NaN"!==s.value?s.value:s.label;t&&"undefined"!==t&&r.customTooltipInfoAttrExpsArr.push({...e.id===XZ.CUSTOM.TITLE&&{title:t},value:t,id:e.id})}})),r}(n,o.map((t=>Og.getMeasure(e,t))),e,i)}};function hQ({nodes:e,layout:t,dataset:n}){const r=function(e,t,n){const r=[];return e.forEach((e=>{r.push(fQ.getCustomAttrExps(n,e,t))})),r}(e,t,n);return r.reduce(((e,t)=>({customTooltipAttrExpsArr:e.customTooltipAttrExpsArr.concat(t.customTooltipAttrExpsArr),customTooltipInfoAttrExpsArr:e.customTooltipInfoAttrExpsArr.concat(t.customTooltipInfoAttrExpsArr)})),{customTooltipAttrExpsArr:[],customTooltipInfoAttrExpsArr:[]})}function pQ(e){const t=XZ.CUSTOM.EXPRESSION,{qNumFormat:n,qLabel:r,qLabelExpression:i,cId:o}=e.qDef;return e.qLibraryId?{qLibraryId:e.qLibraryId,id:t,qNumFormat:n,qLabel:r,qLabelExpression:i,cId:o}:{qExpression:e.qDef.qDef,id:t,qNumFormat:n,qLabel:r,qLabelExpression:i,cId:o}}function mQ(e){var t;const n=null===(t=e.qHyperCubeDef)||void 0===t?void 0:t.qDimensions;return n[n.length-1].qAttributeExpressions||[]}const gQ={migrateProperties(e){var t,n;const r=bg(!0,{},e),i=(null===(t=r.tooltip)||void 0===t||null===(t=t.data)||void 0===t||null===(t=t.qHyperCubeDef)||void 0===t?void 0:t.qMeasures)||[];let o=mQ(r);return o=function(e,t){return t.concat(e.map((e=>pQ(e))))}(i,o),function(e,t){var n;const r=null===(n=t.qHyperCubeDef)||void 0===n?void 0:n.qDimensions;r[r.length-1].qAttributeExpressions=e}(o,r),null===(n=r.tooltip)||void 0===n||delete n.data,r},getPatches(e){var t,n;const r=(null===(t=e.tooltip)||void 0===t||null===(t=t.data)||void 0===t||null===(t=t.qHyperCubeDef)||void 0===t?void 0:t.qMeasures)||[],i=(null===(n=e.qHyperCubeDef)||void 0===n?void 0:n.qDimensions.length)-1,o=function(e,t,n){let r=e.length;const i=[];return t.forEach((e=>{const t=pQ(e),o=JSON.stringify(t);i.push({qPath:`/qHyperCubeDef/qDimensions/${n}/qAttributeExpressions/${r}`,qOp:"add",qValue:o}),r++})),i.push({qPath:"/tooltip/data",qOp:"remove"}),i}(mQ(e),r,i);return o},checkForBackwardCompatibility:(e,t)=>(e.qMeasureInfo||[]).length>0&&t.length>0,updateProperties(e,t){const n=new Promise((n=>{var r,i,o;const a=(null===(r=t.qHyperCube)||void 0===r?void 0:r.qDimensionInfo)||[],s=(null===(i=t.tooltip)||void 0===i||null===(i=i.data)||void 0===i?void 0:i.qHyperCube)||{},l=null===(o=t.qMeta)||void 0===o||null===(o=o.privileges)||void 0===o?void 0:o.includes("update");e&&e.getEffectiveProperties&&this.checkForBackwardCompatibility(s,a)&&e.getEffectiveProperties().then((t=>{if(l){const r=this.migrateProperties(t);e.setProperties(r).then((()=>{e.app.clearUndoBuffer(),n(!0)}))}else{const r=this.getPatches(t);e.applyPatches(r,!0).then((()=>{e.app.clearUndoBuffer(),n(!0)}))}})),n(!1)}));return n}};var yQ={attrExpr:gQ};const{CUSTOM:vQ}=XZ;function bQ({flags:e,layout:t,app:n,model:r,picasso:i,chart:o,translator:a,localeInfo:s,embed:l,options:c}){const u={properties:void 0},d=function({layout:e,app:t,picasso:n,model:r,chart:i,translator:o,localeInfo:a,embed:s}){return{layout:e,app:t,picasso:n,model:r,chart:i,translator:o,localeInfo:a,useCustomTooltip:e.tooltip&&!e.tooltip.auto,utils:cQ,miniChartToken:{},embed:s}}({layout:t,app:n,model:r,picasso:i,chart:o,translator:a,localeInfo:s,embed:l}),f="rtl"===c.direction,h=()=>{var e;const n=!(null===(e=u.properties)||void 0===e||null===(e=e.qHyperCubeDef)||void 0===e||!e.qDimensions.some((e=>{var t;return null===(t=e.qCalcCondition)||void 0===t||null===(t=t.qCond)||void 0===t?void 0:t.qv})));return!(!t.tooltip||t.tooltip.auto||n)};return{setProperties:e=>{u.properties=e},isEnabled:()=>h(),hideBasic:()=>h()&&xx(t,"tooltip.hideBasic",!1),getAttributes:({dataset:e,nodes:n})=>{var r,i;const o=hQ({dataset:e,nodes:n,layout:t});return{title:null===(r=o.customTooltipInfoAttrExpsArr.find((e=>e.id===vQ.TITLE)))||void 0===r?void 0:r.title,description:null===(i=o.customTooltipInfoAttrExpsArr.find((e=>e.id===vQ.DESCRIPTION)))||void 0===i?void 0:i.value,measures:o.customTooltipAttrExpsArr}},hasImages:()=>cQ.checkIfPromisesExist({customTooltipModel:d}),createImageRow:({value:e,h:t})=>cQ.getImageRow(e,{h:t,rtl:f}),addImages:({nodes:r})=>{const i=cQ.getDataNodes(o,r),{attrExps:a}=cQ.getAttrExprData(t);return nQ.handlePromises({customTooltipModel:d,nodes:i,attrExps:a,opts:{flags:e,app:n}})},chart:{isEnabled:()=>{return!!(h()&&null!==(e=t.tooltip)&&void 0!==e&&null!==(e=e.chart)&&void 0!==e&&null!==(e=e.object)&&void 0!==e&&e.refId&&l&&"function"==typeof(null==r?void 0:r.getEffectiveProperties));var e},hasLimitation:()=>{var e;return!(null==n||null===(e=n.isInModalSelection)||void 0===e||!e.call(n))},createContainer:({h:e})=>oQ.createContainer({layout:t,ctx:{h:e,rtl:f}}),createLimitationRow:()=>cQ.getFooterRow(a.get("properties.tooltip.notselectedmessage"),f),show:({nodes:e,properties:t})=>oQ.show({app:n,properties:t,selectedNodes:e,customTooltipModel:d,rtl:f}),hasAlternateState:()=>{var e;return!(null===(e=d.miniChartToken)||void 0===e||!e.alternateState)},hide:()=>oQ.hide({app:n,customTooltipModel:d}),destroy:()=>oQ.destroyVisualization({customTooltipModel:d})}}}function xQ(e){return{layout:e,keys:{SCALE:{FILL:"fill"},COMPONENT:{DIMENSION_TITLE:"dimension-title",SLICES:"slices",PIE_LABELS:"pie-labels"}}}}function wQ({flags:t,picasso:n,instance:r}){const i=e.useModel(),o=e.useApp(),a=e.useTranslator(),s=e.useElement(),[l,c]=e.useState(),u=e.useStaleLayout(),d=e.usePlugins(),f=e.useConstraints(),h=e.useOptions(),p=e.useTheme(),{qLocaleInfo:m}=e.useAppLayout(),g=e.useEmbed();return e.useEffect((()=>{if(!r)return;s.style.overflow="hidden";const e=function(e){var t,n=e.app,r=e.translator,i={initialized:!1,dimensions:[],measures:[]};return{initialize:(t=ev(ov().m((function e(t){var o,a,s,l,c,u,d;return ov().w((function(e){for(;;)switch(e.n){case 0:if(o=t.properties,!i.initialized){e.n=1;break}return e.a(2);case 1:return s=[Nv(a={app:n,translator:r,properties:o}),Lv(a)],e.n=2,Promise.all(s);case 2:l=e.v,c=sv(l,2),u=c[0],d=c[1],i.dimensions=u,i.measures=d,i.initialized=!0;case 3:return e.a(2)}}),e)}))),function(e){return t.apply(this,arguments)}),getAlternatives:function(){return{dimensions:lv(i.dimensions),measures:lv(i.measures)}}}}({app:o,translator:a}),l=px({picasso:r.picasso,model:i,app:o,translator:a,config:{auto:!1,key:"fill"}}),y=function(e){var t=e.picassoInstance,n=e.plugins,r=e.pluginArgs,i=void 0===r?{}:r,o={initialized:!1,definitions:[]};return{initialize:function(){return ev(ov().m((function e(){var r,a,s,l;return ov().w((function(e){for(;;)switch(e.n){case 0:if(!o.initialized){e.n=1;break}return e.a(2);case 1:return a=Promise.all(n.filter((function(e){return"custom-component"===e.info.type})).map(function(){var e=ev(ov().m((function e(n){var r;return ov().w((function(e){for(;;)switch(e.n){case 0:if(n.info.componentName){e.n=1;break}throw new Error("plugin-service: Custom component is missing componentName");case 1:return e.n=2,n.fn(rv({},i));case 2:if("object"===cv(r=e.v)){e.n=3;break}throw new Error("plugin-service: Custom component needs to be an object");case 3:t.component(n.info.componentName,r);case 4:return e.a(2)}}),e)})));return function(t){return e.apply(this,arguments)}}())),s=Promise.all(n.filter((function(e){return"component-definition"===e.info.type})).map((function(e){return e.fn(rv({},i))}))),e.n=2,Promise.all([a,s]);case 2:l=e.v,o.initialized=!0,(r=o.definitions).push.apply(r,lv(l[1]));case 3:return e.a(2)}}),e)})))()},extendComponents:function(e){return o.initialized?(o.definitions.filter(Boolean).forEach((function(t){var n=sv(e.filter((function(e){return e.key&&e.key===t.key})),1)[0];if(n){var r=jv(!0,{},n.brush);jv(!0,n,t),t.brush&&(n.brush=function(e,t){return"object"===cv(e)&&Object.keys(e).length?(Array.isArray(t.consume)&&(e.consume=Ex({originalArray:e.consume,newArray:t.consume,matchKey:"context"})),Array.isArray(t.trigger)&&(e.trigger=Ex({originalArray:e.trigger,newArray:t.trigger,matchKey:"on"})),e):t}(r,t.brush))}else e.push(t)})),e):e}}}({picassoInstance:r.picasso,plugins:d,pluginArgs:xQ(u)}),v=bQ({flags:t,layout:u,app:o,model:i,picasso:n,chart:r.chart,translator:a,localeInfo:m,embed:g,options:h}),b=function(e){var t=e.theme,n=e.config,r=void 0===n?{}:n,i=r.id,o=r.resolve,a=void 0===o?[]:o,s=r.transform,l=void 0===s?[]:s,c=r.extend,u=void 0===c?[]:c,d={theme:t,matrix:Lk(a),styles:void 0};return d.styles=Fk({theme:t,id:i,transform:l,extend:u,matrix:d.matrix}),{getStyles:function(){return d.styles},getTheme:function(){return d.theme},setTheme:function(e){d.theme=e,d.styles=Fk({theme:e,id:i,transform:l,extend:u,matrix:d.matrix})}}}({theme:p,config:{id:"pieChart",resolve:[["object","label.name","color","#595959"],["object","label.name","fontFamily"],["object","label.name","fontSize","12px"]]}}),x=function({chart:e,translator:t,layout:n,constraints:r,options:i,themeService:o,colorService:a,custom:s}){const l=n.qHyperCube.qMeasureInfo.length>1,c="rtl"===i.direction,{fontFamily:u}=o.getStyles();return mS({chart:e,translator:t,config:{rtl:c,enable:()=>!r.passive,getColorSettings:()=>a.getSettings(),style:{fontFamily:u},main:{key:"tooltip",getGroupByValue:({data:e})=>e.value,collectibles:[{key:"slices",type:"slice",major:({data:e})=>e.value}],triggers:[{keys:["slices"],collect:{from:"single"},placement:"collectible"},{keys:["pie-labels","negative-indicators"],collect:{from:"dimension",by:({data:e})=>e.value},placement:"trigger"}],placement:({meta:e})=>({type:"slices"===e.triggerer?"slice":"bounds"}),section:({h:e,nodes:n,dataset:r,formatter:i,create:o,util:a})=>{const[c]=n,{title:u,description:d,measures:f}=s.isEnabled()?s.getAttributes({dataset:r,nodes:n}):{},h=[];u&&h.push(o.text({value:u,style:{bold:!0}})),d&&h.push(o.text({value:d}));const p=s.hideBasic();if(p&&!f.length&&(u||d)||h.push(o.text({value:c.data.label,style:{bold:!0}})),!p){h.push(o.color({nodes:n,property:"fill"}));const{num:e}=c.data;if(h.push(o.measure({label:a.dataset.title(e.source.key,e.source.field),value:e.label})),l){const{radius:e}=c.data;h.push(o.measure({label:a.dataset.title(e.source.key,e.source.field),value:e.label}))}h.push(o.measure({label:t?t.get("properties.dataPoints.labelmode.share"):"Share",value:i("share")(c.desc.share)}))}f&&h.push(...f.map((e=>o.measure({label:e.label,value:e.value,survive:{color:!0,duplicate:!0}})))),s.chart.isEnabled()&&(s.chart.hasLimitation()?(s.chart.destroy(),h.push(o.raw({value:s.chart.createLimitationRow()}))):h.push(o.raw({value:s.chart.createContainer({h:e})})));const{customTooltipImages:m}=c.data;return s.isEnabled()&&m&&h.push(...m.map((t=>o.raw({value:s.createImageRow({value:t,h:e})})))),h},layout:{grouping:!0},events:{tooltip:{beforeShow:({collectNodes:e})=>s.isEnabled()&&s.hasImages()?s.addImages({nodes:e()}):Promise.resolve(),afterShow:({expando:e,nodes:t})=>{s.chart.isEnabled()&&!s.chart.hasLimitation()&&s.chart.show({nodes:t,properties:e.get("properties")})}},interaction:{mouseleave:()=>{s.chart.isEnabled()&&s.chart.hasAlternateState()&&s.chart.hide()}}}},legend:{keys:{tooltip:"legend-color-cat",component:"legend-cat"}}}})}({chart:r.chart,translator:a,layout:u,constraints:f,options:h,themeService:b,colorService:l,custom:v}),w=function({layout:e,themeService:t,colorService:n,flags:r}){const i=t.getStyles(),o=t=>{var n;return r.isEnabled("CLIENT_IM_3050")?null===(n=e.components)||void 0===n?void 0:n.find((e=>e.key===t)):void 0},a=(e,t)=>{const r=n.getPaletteColor;var i;return null!=e&&e.color&&r&&null!==(i=r(e))&&void 0!==i?i:t};return{axis:{title:{getStyle:()=>{var e,t,n;const r=null===(e=o("axis"))||void 0===e||null===(e=e.axis)||void 0===e?void 0:e.title;return{fontFamily:null!==(t=null==r?void 0:r.fontFamily)&&void 0!==t?t:i.axis.title.fontFamily,fontSize:null!==(n=null==r?void 0:r.fontSize)&&void 0!==n?n:i.axis.title.fontSize,color:a(null==r?void 0:r.color,i.axis.title.color)}}}},label:{name:{getStyle:()=>{var e,t,n;const r=null===(e=o("label"))||void 0===e||null===(e=e.label)||void 0===e?void 0:e.name;return{fill:a(null==r?void 0:r.color,i.label.name.color),fontSize:null!==(t=null==r?void 0:r.fontSize)&&void 0!==t?t:i.label.name.fontSize,fontFamily:null!==(n=null==r?void 0:r.fontFamily)&&void 0!==n?n:i.label.name.fontFamily}}},value:{getStyle:()=>{var e,t,n;const r=null===(e=o("label"))||void 0===e||null===(e=e.label)||void 0===e?void 0:e.value;return{fill:a(null==r?void 0:r.color,i.label.value.color),fontSize:null!==(t=null==r?void 0:r.fontSize)&&void 0!==t?t:i.label.value.fontSize,fontFamily:null!==(n=null==r?void 0:r.fontFamily)&&void 0!==n?n:i.label.value.fontFamily}}}},legend:{title:{getStyle:()=>{var e,t,n;const r=null===(e=o("legend"))||void 0===e||null===(e=e.legend)||void 0===e?void 0:e.title;return{fontFamily:null!==(t=null==r?void 0:r.fontFamily)&&void 0!==t?t:i.legend.title.fontFamily,fontSize:null!==(n=null==r?void 0:r.fontSize)&&void 0!==n?n:i.legend.title.fontSize,color:a(null==r?void 0:r.color,i.legend.title.color)}}},label:{getStyle:()=>{var e,t,n;const r=null===(e=o("legend"))||void 0===e||null===(e=e.legend)||void 0===e?void 0:e.label;return{fontFamily:null!==(t=null==r?void 0:r.fontFamily)&&void 0!==t?t:i.legend.label.fontFamily,fontSize:null!==(n=null==r?void 0:r.fontSize)&&void 0!==n?n:i.legend.label.fontSize,color:a(null==r?void 0:r.color,i.legend.label.color)}}}}}}({layout:u,themeService:b,colorService:l,flags:t}),k=function({layout:e}){const t=({ds:e,encodings:t})=>{const n={field:"qDimensionInfo/0",props:{num:{field:t.slice.arc}}};return t.slice.outerRadius&&(n.props.radius={field:t.slice.outerRadius}),e.extract(n)},n=({rows:e,encodings:t})=>t.slice.outerRadius?e.filter((e=>"NaN"!==e.num.value&&"NaN"!==e.radius.value)):e.filter((e=>"NaN"!==e.num.value)),r=({rows:t,encodings:n})=>n.slice.outerRadius&&!e.donut.showAsDonut?t.filter((e=>e.num.value>0&&e.radius.value>0)):t.filter((e=>e.num.value>0));return bx({layout:e,config:{args:{},disclaimers:{NoDataExist:{condition:({ds:e,encodings:n})=>0===t({ds:e,encodings:n}).length},LimitedData:{condition:()=>{const t=Mg.getValue(e,"qHyperCube.qSize.qcy");return Mg.getValue(e,"qHyperCube.qDataPages.0.qArea.qHeight")<t}},OnlyNanData:{condition:({ds:e,encodings:r})=>{const i=t({ds:e,encodings:r});return 0===n({rows:i,encodings:r}).length}},OnlyNegativeOrZeroValues:{condition:({ds:e,encodings:i})=>{const o=t({ds:e,encodings:i}),a=n({rows:o,encodings:i});return 0===r({rows:a,encodings:i}).length}},NegativeOrZeroValues:{condition:({ds:e,encodings:i})=>{const o=t({ds:e,encodings:i}),a=n({rows:o,encodings:i}),s=a,l=r({rows:a,encodings:i});return s.length!==l.length}}}}})}({layout:u});c({alternativeService:e,colorService:l,disclaimerService:k,pluginService:y,themeService:b,tooltipService:x,styleService:w})}),[i,o,r,u,a.language(),f,h.direction,p.name()]),l}const kQ=e=>"[object Object]"===Object.prototype.toString.call(e),SQ=e=>Array.isArray(e);function CQ(e,t){if(e===t)return!0;if(SQ(e)){if(!SQ(t))return!1;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!CQ(e[n],t[n]))return!1;return!0}if(kQ(e)){if(!kQ(t))return!1;const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(let r=0;r<n.length;r++){if(!Object.hasOwn(t,n[r]))return!1;if(!CQ(e[n[r]],t[n[r]]))return!1}return!0}return e===t}function EQ({enable:t=!0}={}){const n=e.useModel(),r=()=>Date.now().toString()+Math.random(),[i,o]=e.useState(r()),a={properties:void 0};return e.useEffect((()=>{if(!n||!n.getEffectiveProperties||!t)return()=>{};const e=()=>{n.getEffectiveProperties().then((e=>{const t=bg(!0,{},e);if(!a.properties)return void(a.properties=t);const n=function(e,t){var n,r,i,o;const a={properties:!1,exclude:!1};if(e===t)return a;const s=bg(!0,{},e),l=bg(!0,{},t);return a.exclude=!CQ(null===(n=s.qHyperCubeDef)||void 0===n?void 0:n.qLayoutExclude,null===(r=l.qHyperCubeDef)||void 0===r?void 0:r.qLayoutExclude),null===(i=s.qHyperCubeDef)||void 0===i||delete i.qLayoutExclude,null===(o=l.qHyperCubeDef)||void 0===o||delete o.qLayoutExclude,a.properties=!CQ(s,l),a}(a.properties,t);a.properties=t,n.exclude&&!n.properties&&o(r())}))};return n.on("changed",e),e(),()=>{n.removeListener("changed",e)}}),[t]),i}function MQ({scaleKey:e,legend:t,onEdited:n}){const{layout:r}=t,{dock:i}=r||{};return{type:"brush-range",key:"legendRangeBrush",layout:{dock:"@legend-seq"},on:n?{bubbleEnd(){n()}}:{},settings:{brush:"selection",scale:`${e}Range`,direction:"left"===i||"right"===i?"vertical":"horizontal",bubbles:{align:"left"===i||"top"===i?"end":"start",placement:"outside"},target:{selector:'[id="legend-seq-target"]',fillSelector:'[id="legend-seq-ticks"]',fill:"rgba(82,204,82,0.2)"}}}}const _Q=.8,qQ=.55,DQ={CORNER_RADIUS:0,INNER_RADIUS:qQ,STROKE:{COLOR:"#FFFFFF",WIDTH:{NONE:0,SMALL:2,MEDIUM:4,LARGE:6}}},RQ=({layout:e},t,n)=>t.encodings.slice.outerRadius?{scale:"radius",fn:t=>{var r,i;let o=_Q,a=0;const s=null!==(r=null==n||null===(i=n.style)||void 0===i?void 0:i.innerRadius)&&void 0!==r?r:qQ;e.donut.showAsDonut&&(o=_Q-s,a=s);return t.scale(Math.max(0,t.datum.radius.value))*o+a}}:_Q,TQ=({layout:e},t,n)=>{var r,i;if(!e.donut.showAsDonut)return 0;const o=null!==(r=null==n||null===(i=n.style)||void 0===i?void 0:i.innerRadius)&&void 0!==r?r:qQ;return t.encodings.slice.outerRadius?{scale:"radius",fn:e=>{const t=_Q-o,n=o;return e.scale(Math.min(0,e.datum.radius.value))*t+n}}:o},OQ=({layout:e},t)=>{var n,r,i,o,a;const s=t.colorService.getDatumProps(),l=s[Object.keys(s)[0]],c=l&&l.field?l.field:void 0,u="qDimensionInfo/0"===c,d=c?t.ds.field(c).raw():null,f=d&&(d.label||d.title||d.qFallbackTitle)||"",h=t.encodings.slice.outerRadius,{formatter:p}=t.chart,m=Mg.getValue(e,"qHyperCube.qDimensionInfo",[]).length;function g(e,n){const r=t.ds.field(e).raw();return{field:e,label:!r.isCustomFormatted&&(r.qIsAutoFormat||"U"===r.qNumFormat.qType)?e=>p(n)(e.qNum):e=>e.qText}}const y=(e.components||[]).filter((e=>"slices"===e.key))[0];return{type:"pie",key:"slices",data:{extract:{field:"qDimensionInfo/0",props:{...s,num:g(t.encodings.slice.arc,"arc"),fillTooltip:c?{field:c,label:f,value:e=>u?e.qText||"-":void 0!==e.qNum&&"NaN"!==e.qNum?e.qText?e.qText:e.qNum:e.qText||"-"}:void 0,customTooltipAttrExps:0!==m?dQ.getNode(e,{dimensionCount:m}):void 0,radius:h?g(h,"outerRadius"):void 0}}},brush:{consume:[{context:"selection",data:["","fill"],style:{inactive:{opacity:.3},active:{stroke:"rgba(52, 52, 52, 0.7)",strokeWidth:2}}},{context:"highlight",data:[""],style:{inactive:{fill:"#BFDAD9"},active:{fill:"#68B2AF"}}}]},settings:{startAngle:()=>t.viewState.get("rotation"),endAngle:()=>t.viewState.get("rotation")+2*Math.PI,slice:{arc:{ref:"num"},innerRadius:TQ({layout:e},t,y),fill:t.colorService.getColor(),strokeWidth:null!=y&&null!==(n=y.style)&&void 0!==n&&n.strokeWidth?DQ.STROKE.WIDTH[y.style.strokeWidth.toUpperCase()]:DQ.STROKE.WIDTH.NONE,stroke:null!==(r=null==y||null===(i=y.style)||void 0===i||null===(i=i.strokeColor)||void 0===i?void 0:i.color)&&void 0!==r?r:DQ.STROKE.COLOR,outerRadius:RQ({layout:e},t,y),cornerRadius:null!==(o=null==y||null===(a=y.style)||void 0===a?void 0:a.cornerRadius)&&void 0!==o?o:0}},animations:{enabled:t.animations.enabled,isMainComponent:!0}}};function PQ({layout:e},t){var n,r;const i=(e.components||[]).filter((e=>"slices"===e.key))[0],o=null!==(n=null==i||null===(r=i.style)||void 0===r?void 0:r.innerRadius)&&void 0!==n?n:qQ,a=t.encodings.slice.outerRadius,s=t.themeService.getStyles();return!(!e.donut.showAsDonut||!a)&&{type:"pie",key:"zeroLine",data:{items:[1]},settings:{slice:{arc:1,fill:"transparent",innerRadius:0,strokeWidth:1,stroke:s.label.name.color,outerRadius:{scale:"radius",fn:e=>{const t=_Q-o,n=o;return e.scale(0)*t+n}}}},animations:{enabled:t.animations.enabled}}}function NQ(e){return{type:"pie-dividers",key:"pie-dividers",layout:{displayOrder:2},settings:{component:"slices",selector:"path"},brush:{consume:[{context:"selection",style:{inactive:{opacity:.2}}}]},animations:{enabled:e.animations.enabled,trackBy:()=>Math.random()}}}function AQ({layout:e},t){if(e.donut.showAsDonut||!t.encodings.slice.outerRadius)return!1;return{type:"negative-indicators",key:"negative-indicators",layout:{displayOrder:2},settings:{component:"slices",selector:"path",offset:5,size:4,fill:t.themeService.getStyles().label.name.color},brush:{consume:[{context:"selection",style:{inactive:{opacity:.2}}}]},animations:{enabled:t.animations.enabled}}}function IQ(e){const t=e.node.desc&&e.node.desc.share;return t?e.formatter("share")(t):""}function LQ(e){return e.node.data.num.label}function zQ(e){return e.node.data.radius.label}function FQ(e,t,n){if(e.dataPoint.auto)return n?LQ:IQ;if("share"===e.dataPoint.labelMode)return IQ;if("value"===e.dataPoint.labelMode){return t.encodings.slice.outerRadius&&"radius"===e.dataPoint.labelValueMode?zQ:LQ}return null}function jQ({data:e}){return e?e.label:""}function $Q(e){const t=parseInt(e,10);if(!isNaN(t))return t}function HQ(e){var t,n;const r=((e&&e.components?e.components:void 0)||[]).filter((e=>"slices"===e.key))[0];return(null!==(t=null==r||null===(n=r.style)||void 0===n?void 0:n.innerRadius)&&void 0!==t?t:qQ)>.3}function VQ({node:e,data:t}){return bg({_share:e.desc.share,_fillColor:e.attrs.fill},t)}function BQ(e,t,n){const r=t.styleService.label.name.getStyle(),i=[{padding:10,direction:t.encodings.slice.outerRadius?"rotate":"horizontal",placements:[{position:"outside",padding:t.encodings.slice.outerRadius?4:2,fill:r.fill}],fontSize:$Q(r.fontSize),fontFamily:r.fontFamily,label:jQ,linkData:({node:e,data:t})=>bg({_share:e.desc.share,_fillColor:e.attrs.fill,_showTooltip:!0},t)}];if(FQ(e,t,!1)){const r=function(e,t,n){return{label:FQ(e,t,!1),simplifiedPlacements:[{position:e.donut.showAsDonut&&HQ(e)?"inside":"into",onBackground:e.donut.showAsDonut&&HQ(e),padding:4}],theme:n.theme,themeId:"object.pieChart"}}(e,t,n),o=Ag(bg(t,r),n.theme);o.linkData=VQ,i.push(o)}return{key:"pie-labels",type:"labels",renderer:bS(t.flags),layout:{displayOrder:2,minimumLayoutMode:"XSMALL"},settings:{sources:[{component:"slices",selector:"path",strategy:{type:"slice",settings:{labels:i}}}]},brush:{consume:[{context:"selection",data:["","fill"],style:{inactive:{opacity:.3}}}]},animations:{enabled:t.animations.enabled,trackBy:()=>Math.random()}}}function WQ({layout:e,context:t},n){return!1!==e.dataPoint.show&&(1===n.dataRowCount?function(e,t,n){const r=FQ(e,t,!0),i=(e=>t=>e.getContrastingColorTo(t.node.attrs.fill))(n.theme),o=t.themeService.getStyles(),a=t.styleService.label.name.getStyle(),s=t.styleService.label.value.getStyle(),l=a.fill===o.label.name.color,c=s.fill===o.label.value.color;return{key:"pie-labels",type:"labels",renderer:bS(t.flags),layout:{displayOrder:2,minimumLayoutMode:"XSMALL"},settings:{sources:[{component:"slices",selector:"path",strategy:{type:"rows",settings:{align:.5,justify:.5,padding:10,labels:[{fontSize:$Q(a.fontSize),fontFamily:a.fontFamily,fill:l&&!e.donut.showAsDonut?i:a.fill,label:jQ,linkData:({data:e})=>e},{fontSize:$Q(s.fontSize),fontFamily:s.fontFamily,fill:c&&!e.donut.showAsDonut?i:s.fill,label:r,linkData:({data:e})=>e}]}}}]},animations:{enabled:t.animations.enabled,trackBy:()=>Math.random()}}}(e,n,t):BQ(e,n,t))}const UQ=(e,{requireFailure:t,recognizeWith:n}={})=>({type:"Pan",requireFailure:t,recognizeWith:n,options:{event:"legendRange",enable(t,n){if(this.started||!n)return!0;if(e.constraints.select||e.constraints.active)return!1;const r=this.chart.componentsFromPoint({x:n.center.x,y:n.center.y}).some((e=>"legend-seq"===e.type)),i=(r||function(e){const{target:t}=e.srcEvent;return!(!t||!(t.hasAttribute("data-other-value")&&t.hasAttribute("data-idx")||"INPUT"===t.nodeName))}(n))&&!e.isLocked([this.chart.component("slices")]);return i||this.chart.component("legendRangeBrush").emit("rangeClear"),i}},events:{legendRangestart(t){t.preventDefault(),e.interactions.emit("selections-start"),this.chart.component("legendRangeBrush").emit("rangeStart",t),this.started=!0},legendRangemove(e){e.preventDefault(),this.chart.component("legendRangeBrush").emit("rangeMove",e)},legendRangeend(t){t.preventDefault(),this.chart.component("legendRangeBrush").emit("rangeEnd",t),e.onSelect(),this.started=!1}}});function YQ(e,t){const n=t.element.getBoundingClientRect();let r,i;return e.center?(({x:r}=e.center),({y:i}=e.center)):(r=e.clientX,i=e.clientY),{x:r-n.left,y:i-n.top}}function KQ(e,t){const n=t.component("slices");if(!n)return!1;const{x:r,y:i}=YQ(e,t),o=n.rect.x+n.rect.margin.left+n.rect.width/2,a=n.rect.y+n.rect.margin.top+n.rect.height/2,s=Math.min(n.rect.width,n.rect.height)/2*_Q;return(o-r)**2+(a-i)**2<=s**2}const GQ=(e,t,{requireFailure:n,recognizeWith:r}={})=>({type:"Tap",requireFailure:n,recognizeWith:r,options:{event:"tap",interval:10,pointers:1,enable(t,n){return!n||!e.constraints.select&&!e.constraints.active&&(this.components=this.chart.componentsFromPoint({x:n.center.x,y:n.center.y}).filter((e=>"slices"===e.key||"legend-cat"===e.key||"pie-labels"===e.key)),this.components.length)}},events:{tap(n){n.preventDefault();const{target:r}=n.srcEvent;if(r&&("INPUT"===r.nodeName||r.hasAttribute("data-other-value")))return void this.chart.component("legendRangeBrush").emit("bubbleStart",n);if(r&&r.hasAttribute("data-action")&&r.hasAttribute("data-component-key"))return void this.chart.component(r.getAttribute("data-component-key")).emit(r.getAttribute("data-action"));if(r&&r.children&&r.children[0]&&"legend-cat"===r.children[0].getAttribute("data-component-key"))return;if(e.isLocked(this.components))return;e.interactions.emit("selections-start");let i=YQ(n,this.chart);this.components.some((e=>"legend-cat"===e.key))&&(i={cx:i.x,cy:i.y,r:5});const o=this.chart.shapesAt(i,{components:[{key:"slices",propagation:"stop"},{key:"legend-cat",propagation:"stop"},{key:"pie-labels",propagation:"stop"}],propagation:"stop"});o.length&&(this.chart.brushFromShapes(o,{components:[{key:o[0].key,action:n.srcEvent.ctrlKey||t?"set":"toggle",contexts:["selection"]}]}),e.onSelect())}}}),XQ=(e,{requireFailure:t,recognizeWith:n}={})=>({type:"Pan",requireFailure:t,recognizeWith:n,options:{event:"lasso",enable(t,n){if(this.isStarted||!n)return!0;if(e.constraints.active||e.constraints.select||!e.interactions.lasso.active())return!1;const r=this.chart.componentsFromPoint({x:n.center.x,y:n.center.y});return!e.isLocked(r)&&r.some((e=>"slices"===e.key))}},events:{lassostart(t){t.preventDefault(),e.constraints.select||e.constraints.active||this.isStarted||(e.interactions.emit("selections-start"),this.chart.component("lasso").emit("lassoStart",t),this.isStarted=!0)},lassomove(e){e.preventDefault(),this.chart.component("lasso").emit("lassoMove",e)},lassoend(t){t.preventDefault(),this.isStarted=!1,this.chart.component("lasso").emit("lassoEnd",t),e.onSelect()}}}),JQ=(e,{requireFailure:t,recognizeWith:n}={})=>({type:"Tap",requireFailure:t,recognizeWith:n,options:{event:"areatap",pointers:2,enable(t,n){if(this.started||!n)return!0;if(e.constraints.active||e.constraints.select)return!1;const r=this.chart.componentsFromPoint({x:n.center.x,y:n.center.y});return r.some((e=>"slices"===e.key))&&!e.isLocked(r)}},events:{areatap(t){const n=this.chart.component("area");n&&!this.started&&(e.interactions.emit("selections-start"),n.emit("areaStart",t.pointers[0]),n.emit("areaMove",t.pointers[1]),this.started=!0,setTimeout((()=>{n.emit("areaEnd"),e.onSelect(),this.started=!1}),100)),t.preventDefault()}}});function ZQ(e){return{type:"native",key:"theusual",events:{wheel(t){let n=!1;if(!e.constraints.active&&KQ(t,this.chart)){const r=Math.sign(-t.deltaY);e.viewState.set("rotation",r*(Math.PI/12)),n=!0}else if(!e.constraints.select&&!e.constraints.active){const e=this.chart.componentsFromPoint(t).filter((e=>"legend-cat"===e.key))[0];e&&(n=!0,function(e,t){const n=(Math.abs(e.deltaX)>Math.abs(e.deltaY)?e.deltaX:e.deltaY)>=0?"next":"prev";t.emit(n)}(t,e))}n&&t.preventDefault()}}}}const QQ=(e,{requireFailure:t,recognizeWith:n}={})=>({type:"Pan",requireFailure:t,recognizeWith:n,options:{event:"rotate",pointers:1,threshold:10,enable(t,n){return!(!this.started&&n)||!e.constraints.active&&!e.interactions.lasso.active()&&KQ(n,this.chart)}},events:{rotatestart(e){e.preventDefault();const t=this.chart.component("slices").rect,n=this.chart.element.getBoundingClientRect();this.pieCenter={x:n.left+t.x+t.width/2,y:n.top+t.y+t.height/2},this.prevAngle=Math.atan2(e.center.y-this.pieCenter.y,e.center.x-this.pieCenter.x),this.started=!0},rotatemove(t){t.preventDefault();const n=Math.atan2(t.center.y-this.pieCenter.y,t.center.x-this.pieCenter.x);e.viewState.set("rotation",n-this.prevAngle),this.prevAngle=n},rotateend(e){e.preventDefault(),this.started=!1},rotatecancel(e){e.preventDefault(),this.started=!1}}}),e0=(e,{requireFailure:t,recognizeWith:n}={})=>({type:"Pan",requireFailure:t,recognizeWith:n,options:{event:"legendPan",pointers:1,threshold:10,enable(t,n){return!(!this.isStarted&&n)||!e.constraints.active&&this.chart.componentsFromPoint({x:n.center.x,y:n.center.y}).some((e=>"legend-cat"===e.type))}},events:{legendPanstart(e){if(e.preventDefault(),!this.isStarted){this.components=this.chart.componentsFromPoint({x:e.center.x,y:e.center.y}),this.components.forEach((t=>{t.emit("panstart",e)})),this.isStarted=!0;const t=this.chart.component("tooltip");t&&t.show&&t.emit("hide")}},legendPanmove(e){this.components.forEach((t=>{t.emit("panmove",e)})),e.preventDefault()},legendPanend(e){e.preventDefault(),this.components.forEach((t=>{t.emit("panend",e)})),this.isStarted=!1}}}),t0=(e,t,n)=>({key:"hammered",type:"hammer",enable:!0,gestures:t?[QQ(e,{}),GQ(e,t,{}),...n]:[UQ(e,{}),JQ(e,{}),QQ(e,{}),XQ(e,{}),e0(e,{}),GQ(e,t,{}),...n]});function n0(e,t,n){const r=e.getIsSingleSelect(0),{constraints:i}=n;if(i.active&&i.passive)return[];const o=t.tooltipService.getInteractions();return[t0(t,r,o.gestures),ZQ(t),o.native]}function r0({settings:e},t){const n={share:{type:"d3-number",format:".1%"},arc:{data:{field:t.encodings.slice.arc}},fill:e.scales.fill&&e.scales.fill.data&&e.scales.fill.data.field?{data:{field:e.scales.fill.data.field}}:{}};return t.encodings.slice.outerRadius&&(n.outerRadius={data:{field:t.encodings.slice.outerRadius}}),n}function i0({layout:e},t,n){var r;if(null!=t&&null!==(r=t.flags)&&void 0!==r&&r.isEnabled("IM_5788_DATA_TITLE_REFACTOR"))return!1;if(!e.dimensionTitle)return!1;const i=t.properties,o=t.styleService.axis.title.getStyle();return{key:"dimension-title",type:"data-title",layout:{minimumLayoutMode:"SMALL",dock:"top"},settings:{hyperCube:e.qHyperCube,hyperCubeDef:i&&i.qHyperCubeDef,isDimension:!0,disabled:()=>n.constraints.active||!n.model,model:t.model,app:t.app,translator:t.translator,rtl:n.rtl,selections:t.selections,isEnabled:t.flags.isEnabled},style:{fontFamily:o.fontFamily,fontSize:o.fontSize,color:o.color}}}function o0({layout:e},t,n){var r;if(null==t||null===(r=t.flags)||void 0===r||!r.isEnabled("IM_5788_DATA_TITLE_REFACTOR"))return!1;if(!e.dimensionTitle)return!1;const i=t.alternativeService.getAlternatives(),o=t.styleService.axis.title.getStyle();return{key:"dimension-title",type:"axis-title",renderer:"react-qcm",layout:{dock:"top",minimumLayoutMode:"SMALL"},data:{infos:e.qHyperCube.qDimensionInfo,alternatives:i.dimensions},resources:{app:t.app,cache:t.viewCache,model:t.model,selections:t.selections,translator:t.translator},callbacks:{onChange:()=>{}},settings:{isDisabled:()=>n.constraints.active,isRTL:n.rtl,isSnapshot:!!e.snapshotData,skipAttributeExpressions:!1,type:"dimension"},style:{title:{color:o.color,fontFamily:o.fontFamily,fontSize:o.fontSize}}}}function a0({layout:e,context:t,selectionService:n},r={}){const i=function({layout:e}={},t={}){const n={};return bg(n,t.colorService.getScales()),t.encodings.slice.outerRadius&&bg(n,function({layout:e},t){const n={radius:{type:"linear",include:[0],data:{extract:{field:t.encodings.slice.outerRadius}}}};return e.donut.showAsDonut||(n.radius.min=0),n}({layout:e},t)),n}({layout:e},r),o={scales:i};let a=[];const s=function(e,t){const n=e.disclaimerService.getDisclaimer();if(!n)return!1;const{rtl:r}=t,{translator:i}=e,{fontFamily:o}=e.themeService.getStyles();return{key:"disclaimer",type:"disclaimer",layout:{dock:n.alignment},settings:{isRTL:r,label:i.get(`Object.Disclaimer.${n.key}`)},style:{fontFamily:o}}}(r,t);if(r.disclaimerService.getHasSuppressingDisclaimer())return{components:[s]};const l=t.constraints.select||t.constraints.active,c=r.colorService.getLegend({eventName:"legend",key:"legend",viewState:r.viewState,chart:r.chart,styleReference:"object.pieChart",styleOverrides:{title:r.styleService.legend.title.getStyle(),label:r.styleService.legend.label.getStyle()},rtl:t.rtl},{navigationDisabled:l});return i.fillRange&&c.components[0]&&("right"===c.components[0].layout.dock||"left"===c.components[0].layout.dock||t.rtl)&&(i.fillRange.invert=!0),a=[OQ({layout:e},r),PQ({layout:e},r),NQ(r),AQ({layout:e},r),i0({layout:e},r,t),o0({layout:e},r,t),...c.components,MQ({scaleKey:"fill",legend:c.components[0]||{},onEdited:r.onSelect}),{key:"lasso",type:"brush-lasso",layout:{displayOrder:99},settings:{brush:{components:[{key:"slices",contexts:["selection"]}]},lasso:{fill:"rgba(0, 0, 0, 0)",stroke:"black",strokeWidth:2,opacity:.7,strokeDasharray:[]},snapIndicator:{threshold:75,strokeDasharray:"5, 5",stroke:"black",strokeWidth:2,opacity:.7},startPoint:{r:10,stroke:"rgba(77, 192, 78, 1)",strokeWidth:0,opacity:1}}},{key:"area",type:"brush-area",settings:{brush:{components:[{key:"slices",contexts:["selection"],action:"add"}]}},style:{area:{fill:"transparent",strokeWidth:2,stroke:"black",strokeDasharray:"5 5",opacity:.7}}},WQ({layout:{components:e.components,dataPoint:bg({},e.dataPoint,{show:!(e.effectPath&&e.snapshotData&&!1===e.dataPoint.show)}),donut:e.donut},context:t},r),...r.tooltipService.getComponents(),s],a=a.filter((e=>!1!==e)),{interactions:n0(n,r,t),scales:i,components:r.pluginService.extendComponents(a),palettes:r.colorService.getPalettes(),formatters:r0({settings:o},r),strategy:Sg(0,r)}}function s0({instance:t,services:n,picasso:r,flags:i}){const o=e.useOptions(),a=e.useModel(),s=e.useApp(),l=e.useTranslator(),c=e.useTheme(),u=e.useStaleLayout(),d=e.useSelections(),f=e.useConstraints(),{qLocaleInfo:h}=e.useAppLayout(),p=EQ({enable:u&&!u.snapshotData}),[m]=e.usePromise((()=>{if(!n)return Promise.resolve();yQ.attrExpr.updateProperties(a,u);const e=({getUseBaseColors:e})=>({theme:c,legendProps:u.legend,layout:u,localeInfo:h,hc:u.qHyperCube,colorProps:{...u.color,useBaseColors:e(u)}});return Promise.resolve(a&&!u.snapshotData?a.getEffectiveProperties():{}).then((async t=>Promise.all([n.colorService.initialize({createConfig:e}),Promise.resolve(t),n.pluginService.initialize(),n.alternativeService.initialize({properties:t})])))}),[n,p]);e.useEffect((()=>{null!=t&&t.selectionService&&t.selectionService.setLayout(u)}),[u]),e.useEffect((()=>{if(!t||!m)return;const{chart:e,viewState:p,interactions:g,viewCache:y}=t,{alternativeService:v,colorService:b,disclaimerService:x,pluginService:w,themeService:k,tooltipService:S,styleService:C}=n,E=o.viewState||{};u.snapshotData||(p.preventSet("legendScrollOffset",E.legendScrollOffset||0),p.preventSet("rotation",E.rotation||0)),function(e,t){e&&e.snapshotData&&e.snapshotData.content&&e.snapshotData.content.chartData&&(t.preventSet("legendScrollOffset",e.snapshotData.content.chartData.legendScrollOffset),t.preventSet("rotation",e.snapshotData.content.chartData.rotation))}(u,p),S.expando.set("properties",m[1]);const M=r.data("q")({key:"qHyperCube",data:u.qHyperCube,config:{localeInfo:h}}),_=[{type:"q",key:"qHyperCube",data:u.qHyperCube,config:{localeInfo:h}},...b.getData()],q={slice:{arc:"qMeasureInfo/0"}};u.qHyperCube.qMeasureInfo.length>1&&(q.slice.outerRadius="qMeasureInfo/1"),x.initialize({args:{ds:M,encodings:q}});const D=function(e,t){if(t.slice.outerRadius)return e.extract({field:"qDimensionInfo/0",props:{num:{field:t.slice.arc},radius:{field:t.slice.outerRadius}}}).filter((e=>e.num.value>0&&"NaN"!==e.radius.value)).length;return e.extract({field:"qDimensionInfo/0",props:{num:{field:t.slice.arc}}}).filter((e=>e.num.value>0)).length}(r.data("q")({data:u.qHyperCube,config:{localeInfo:h}}),q),R=d?()=>{const t=e.brush("selection");ag.selections(t,{},u).forEach((e=>{d.select(e)}))}:()=>{},T=u.snapshotData&&!o.freeResize?{width:(u.snapshotData.content.size||u.snapshotData.object.size).w,height:(u.snapshotData.content.size||u.snapshotData.object.size).h}:void 0,O=e=>t.selectionService.getIsSelectionLocked(e),P=()=>a0({layout:u,context:{rtl:"rtl"===o.direction,theme:c,constraints:f,model:a},selectionService:t.selectionService},{picasso:r,ds:M,model:a,app:s,chart:e,onSelect:R,isLocked:O,interactions:g,constraints:f,translator:l,viewState:p,dataRowCount:D,encodings:q,alternativeService:v,colorService:b,disclaimerService:x,pluginService:w,themeService:k,styleService:C,tooltipService:S,debouncer:Cx,properties:m[1],selections:d,logicalSize:T,flags:i,viewCache:y,animations:{enabled:()=>function({viewState:e,options:t,viewCache:n,layout:r,chart:i}){return!1!==t.chartAnimations&&n.get("chartWidth")===i.element.clientWidth&&n.get("chartHeight")===i.element.clientHeight&&n.get("hasZeroLine")===!!i.component("zeroLine")&&0===e.get("rotation")&&!vS.propertiesHaveChanged({viewCache:n,layout:r})}({viewState:p,options:o,layout:u,viewCache:y,chart:e})}});t.generateSettings=P;const N=P();e.update({data:_,settings:N}),y.set("chartWidth",e.element.clientWidth),y.set("chartHeight",e.element.clientHeight),y.set("hasZeroLine",N.components.filter((e=>"zeroLine"===e.key)).length>0),vS.cacheProperties({viewCache:y,layout:u}),o.effect&&u.effectProperties?o.effect.update(u,e,{encodings:q}):u.effectPath||e.brush("highlight").end()}),[t,m,o.direction,o.effectProperties,f,c.name(),l.language()])}function l0({instance:t,services:n}){const r=e.useElement(),i=e.useStaleLayout();e.onTakeSnapshot((e=>{if(!(i.snapshotData&&i.snapshotData.content&&i.snapshotData.content.chartData)&&(function(e,t){const n=t.getBoundingClientRect();e.snapshotData=e.snapshotData||{},e.snapshotData.content=e.snapshotData.content||{},e.snapshotData.content.size=e.snapshotData.content.size||{w:n.width,h:n.height}}(e,r),t&&n))return function({layout:e,chart:t,viewState:n,colorService:r}){return e.snapshotData.content=e.snapshotData.content||{},e.snapshotData.content.chartData={legendScrollOffset:_g(t,"legend-cat"),rotation:n.get("rotation")},r.getSnapshotData().then((t=>{e.snapshotData.content.chartData={...e.snapshotData.content.chartData,...t}})).catch((()=>{}))}({layout:e,chart:t.chart,colorService:n.colorService,viewState:t.viewState})})),e.useImperativeHandle((()=>({getViewState:()=>({rotation:t.viewState.get("rotation"),legendScrollOffset:_g(t.chart,"legend-cat")})})),[t])}var c0={exports:{}};!function(e){self,e.exports=(()=>{var e={909:e=>{var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},a=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,i=t.call(e,"constructor"),o=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!i&&!o)return!1;for(r in e);return void 0===r||t.call(e,r)},s=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(i)return i(e,n).value}return e[n]};e.exports=function e(){var t,n,r,i,c,u,d=arguments[0],f=1,h=arguments.length,p=!1;for("boolean"==typeof d&&(p=d,d=arguments[1]||{},f=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});f<h;++f)if(null!=(t=arguments[f]))for(n in t)r=l(d,n),d!==(i=l(t,n))&&(p&&i&&(a(i)||(c=o(i)))?(c?(c=!1,u=r&&o(r)?r:[]):u=r&&a(r)?r:{},s(d,{name:n,newValue:e(p,u,i)})):void 0!==i&&s(d,{name:n,newValue:i}));return d}},8:(e,t)=>{(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},a=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,i=t.call(e,"constructor"),o=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!i&&!o)return!1;for(r in e);return void 0===r||t.call(e,r)},s=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(i)return i(e,n).value}return e[n]};e.exports=function e(){var t,n,r,i,c,u,d=arguments[0],f=1,h=arguments.length,p=!1;for("boolean"==typeof d&&(p=d,d=arguments[1]||{},f=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});f<h;++f)if(null!=(t=arguments[f]))for(n in t)r=l(d,n),d!==(i=l(t,n))&&(p&&i&&(a(i)||(c=o(i)))?(c?(c=!1,u=r&&o(r)?r:[]):u=r&&a(r)?r:{},s(d,{name:n,newValue:e(p,u,i)})):void 0!==i&&s(d,{name:n,newValue:i}));return d}}},n={};function r(t){var i=n[t];if(void 0!==i)return i.exports;var o=n[t]={exports:{}};return e[t](o,o.exports,r),o.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};(()=>{r.r(i),r.d(i,{default:()=>Te});var e=r(229),t=r.n(e);const n=function(e,t,n){if(!t)return!1;var r,i=t.split("."),o=i[i.length-1],a=e;for(r=0;r<i.length-1;++r)void 0===a[i[r]]&&(a[i[r]]=Number.isNaN(+i[r+1])?{}:[]),a=a[i[r]];if(void 0!==n){var s=a[o];return a[o]=n,{updated:n,previous:s}}return delete a[o],!1},o=function(e,t,n){var r,i=t.split("."),o=e;if(void 0===o)return n;for(r=0;r<i.length;++r){if(void 0===o[i[r]])return n;o=o[i[r]]}return o},a={EXPRESSIONS:{observed:"",trend:"STL_Trend",seasonal:"STL_Seasonal",residual:"STL_Residual"},OPTIONS:[{value:"observed",translation:"cao.trendDecomposition.parameters.decomposition.observed"},{value:"trend",translation:"cao.trendDecomposition.parameters.decomposition.trend"},{value:"seasonal",translation:"cao.trendDecomposition.parameters.decomposition.seasonal"},{value:"residual",translation:"cao.trendDecomposition.parameters.decomposition.residual"}]};var s="".concat(" ","(").concat(" "),l="".concat(" ",")").concat(" ");function c(e){return s+e+l}function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.qLibraryId){var n=function(e,t){if(!t)return null;var n,r;for(n=0;n<t.length;n++)if((r=t[n]).qInfo.qId===e)return r;return null}(e.qLibraryId,t.dimensionList);return n&&n.qData.info[0].qTags.indexOf("$numeric")>-1}var r=function(e,t){if(!t)return null;var n,r,i=function(e){var t=e.trim();"="===t.charAt(0)&&(t=(t=t.substring(1)).trim());var n=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(n)&&(t=(t=t.substring(1,n)).trim()),t}(e);for(n=0;n<t.length;n++){if((r=t[n]).qName===i)return r;if(r.qDerivedFieldData)for(var o=0;o<r.qDerivedFieldData.qDerivedFieldLists.length;++o)for(var a=r.qDerivedFieldData.qDerivedFieldLists[o],s=0;s<a.qFieldDefs.length;++s){var l=a.qFieldDefs[s];if(l.qName===i)return l}}return null}(e.qDef.qFieldDefs[0],t.fieldList);return r&&r.qTags.indexOf("$numeric")>-1}function d(e){return!(!e.fullAccumulation&&!e.fullRange)}function f(e,t){var n=e.crossAllDimensions;return 2===t&&n?"RowNo(Total)":"RowNo()"}function h(e){var t=function(e){return e?(e=function(e){return e.replace(/\/\*[^]*?\*\//g,"")}(e=function(e){return e.replace(/\/\/(.*)$/gm,"")}(e))).trim():""}(e),n=t.trim();return"="===n.substring(0,1)?n.substring(1).trim():n}function p(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function m(e,t){var n=e.crossAllDimensions;return 2===t&&n?"Above(Total ":"Above("}function g(e){return void 0===e?")":", 0, ".concat(e,")")}function y(e){return"Replace(Replace(".concat(e,",'''',''''''),'$','$''&''')")}function v(e,t){return e?"".concat(t,'={">=$(=Min(').concat(t,"))<=$(=Max(").concat(t,'))"}'):"".concat(t,'={"=Only({1}').concat(t,")>='$(=").concat(y("MinString(".concat(t,")")),")' and Only({1}").concat(t,")<='$(=").concat(y("MaxString(".concat(t,")")),")'\"}")}function b(e){var t=e.modifier,n=void 0===t?{}:t,r=e.dimensions,i=e.dimensionAndFieldList,o=e.funcComp,a=void 0===o?"Sum":o,s=e.valueComp,l=void 0===s?"0":s;if(!n.showExcludedValues)return"";if(r&&1===r.length){var c=v(u(r[0],i),p(0));return"".concat(a,"({1<").concat(c,">}").concat(l,")")}if(r&&2===r.length){var d=u(r[0],i),f=u(r[1],i),h=p(0),m=p(1),g=v(d,h),y=v(f,m);return"".concat(a,"({1<").concat(g,",").concat(y,">}").concat(l,")")}return"".concat(a,"({1}").concat(l,")")}function x(e){return"".concat(e,"(")}function w(e){var t=e.properties,n=e.layout;return o(t,"qHyperCubeDef.qDimensions",o(n,"qHyperCube.qDimensionInfo",[])).length}const k={isFullRange:d,getNumDimensions:w,getExpressionWithExcludedComp:function(e){var t=e.expression,n=e.modifier,r=e.dimensions,i=e.dimensionAndFieldList,o=e.treatMissingAsNull,a=c(h(t));if(!n.showExcludedValues)return a;var s=b({modifier:n,dimensions:r,dimensionAndFieldList:i}),l=o?"":", 0";if(r&&1===r.length){var u=p(0);return"If(Count(".concat(u,") > 0, ").concat(a," + ").concat(s).concat(l,")")}if(r&&2===r.length){var d=p(0),f=p(1);return"If(Count(".concat(d,") * Count(").concat(f,") > 0, ").concat(a," + ").concat(s).concat(l,")")}return a},getRowNoComp:f,getNumStepComp:function(e,t){if(!d(e)){var n=e.steps;return"number"!=typeof n||Number.isNaN(n)?6:n}return f(e,t)},getAboveCompPrefix:m,getAboveCompSuffix:g,getAboveComp:function(e,t,n,r){return m(e,t)+n+g(r)},getFunctionPrefix:x,getFunctionSuffix:function(){return")"},getRangeComp:function(e,t){return x(e)+t+")"},getAggrComp:function(e,t,n){return"Aggr(".concat(e,", ").concat(t,", ").concat(n,")")},getExcludedComp:b,needDimension:function(e){var t=e.modifier,n=e.properties,r=e.layout,i=function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(t);return 0===i&&2===w({properties:n,layout:r})},getDimComp:function(e,t){var n=function(e){return e[arguments.length>1&&void 0!==arguments[1]?arguments[1]:0].qDef.qSortCriterias[0]}(e,t),r=p(t);if(!n.qSortByExpression&&!n.qSortByNumeric&&!n.qSortByAscii)return r;var i=["Descending","Ascending"],o=n.qSortByNumeric?"(Numeric, ".concat(i[(n.qSortByNumeric+1)/2],")"):"",a=n.qSortByAscii?"(Text, ".concat(i[(n.qSortByAscii+1)/2],")"):"";return n.qSortByNumeric&&n.qSortByAscii?"(".concat(r,", ").concat(o,", ").concat(a,")"):n.qSortByNumeric?"(".concat(r,", ").concat(o,")"):n.qSortByAscii?"(".concat(r,", ").concat(a,")"):r},simplifyExpression:h,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var n=t.indexOf(s);if(-1!==n){var r=t.indexOf(l);if(-1!==r)return t.substring(n+s.length,r)}}},initModifier:function(e,t){Object.keys(t).forEach((function(n){void 0===e[n]&&(e[n]=t[n])}))},isNumeric:u,isApplicable:function(e){var t=e.properties,n=e.layout,r=e.minDimensions,i=void 0===r?1:r,o=e.maxDimensions,a=void 0===o?2:o;if(!t&&!n)return!0;var s=w({properties:t,layout:n});return s>=i&&s<=a},getExpressionWithMarkers:c,canExtract:function(e){var t=e.indexOf(s),n=e.indexOf(l);return t>-1&&n>-1&&t<n},getDimDefWithWrapper:p,getFieldWithWrapper:function(e){var t=e?e.replace(/]/g,"]]"):e;return"[".concat(t,"]")},generateTSDExpression:function(e,t,n){var r=t||e.outputExpression;if(e.base&&e.base.qDef&&(r=t!==e.base.qDef?t:e.base.qDef),"observed"!==e.decomposition){var i=n.qHyperCubeDef.qMeasures.find((function(t){return t.qDef.base&&t.qDef.base.qLibraryId&&e.base&&e.base.qLibraryId?t.qDef.base.qLibraryId===e.base.qLibraryId:null}));i&&t!==i.qDef.qLabel&&(r=i.qLibraryId||i.qDef.base.qLibraryId?"[".concat(i.qDef.qLabel,"]"):i.qDef.base.qDef);var o=function(e){var t=a.OPTIONS.find((function(t){return t.value===e.decomposition}));return t?a.EXPRESSIONS[t.value]:""}(e);r=r.startsWith("=")?r.substr(1):r,r="".concat(o,"(").concat(r,", ").concat(e.steps,")")}return r},getDecomposition:function(e){var t="observed";return Object.values(a.EXPRESSIONS).find((function(n){var r=e.qDef.base.qDef.toLowerCase()||e.qDef.qDef.toLowerCase();return a.EXPRESSIONS[n]&&r.includes(a.EXPRESSIONS[n].toLowerCase())&&(t=n),n})),t}};function S(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function C(e){return C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},C(e)}var E=t().bind(null,!0),M={},_=Array.isArray;function q(e){return null!=e&&!Array.isArray(e)&&"object"===C(e)}function D(e){return void 0===e}function R(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function T(e,t){var n,r=t.substring(1).split("/").slice(0,-1);return r.forEach((function(t,i){if(i!==r.length){n=+t;var o=Number.isNaN(n)?{}:[];e[n||t]=D(e[n||t])?o:e[t],e=e[n||t]}})),e}function O(e,t){var n=!0;if(q(e)&&q(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((function(r){O(e[r],t[r])||(n=!1)})),n);if(_(e)&&_(t)){if(e.length!==t.length)return!1;for(var r=0,i=e.length;r<i;r+=1)if(!O(e[r],t[r]))return!1;return!0}return e===t}M.generate=function(e,t,n){n=n||"";var r=[];return Object.keys(t).forEach((function(i){var o=function(e){return e?E({},{val:e}).val:e}(t[i]),a=e[i],s="".concat(n,"/").concat(i);O(o,a)||R(t,i)||(D(a)?r.push({op:"add",path:s,value:o}):q(o)&&q(a)?r=r.concat(M.generate(a,o,s)):_(o)&&_(a)?r=r.concat(function(e,t,n){var r=[],i=e.slice(),o=-1;function a(e,t,n){if(e[n]&&D(e[n].qInfo))return null;if(e[n]&&e[n].qInfo.qId===t)return n;for(var r=0,i=e.length;r<i;r+=1)if(e[r]&&e[r].qInfo.qId===t)return r;return-1}if(O(t,i))return r;if(!D(t[0])&&D(t[0].qInfo))return r.push({op:"replace",path:n,value:t}),r;for(var s=i.length-1;s>=0;s-=1)-1===(o=a(t,i[s].qInfo&&i[s].qInfo.qId,s))?(r.push({op:"remove",path:"".concat(n,"/").concat(s)}),i.splice(s,1)):r=r.concat(M.generate(i[s],t[o],"".concat(n,"/").concat(s)));for(var l=0,c=t.length;l<c;l+=1)-1===(o=a(i,t[l].qInfo&&t[l].qInfo.qId))?(r.push({op:"add",path:"".concat(n,"/").concat(l),value:t[l]}),i.splice(l,0,t[l])):o!==l&&(r.push({op:"move",path:"".concat(n,"/").concat(l),from:"".concat(n,"/").concat(o)}),i.splice(l,0,i.splice(o,1)[0]));return r}(a,o,s)):r.push({op:"replace",path:"".concat(n,"/").concat(i),value:o}))})),Object.keys(e).forEach((function(i){D(t[i])&&!R(e,i)&&r.push({op:"remove",path:"".concat(n,"/").concat(i)})})),r},M.apply=function(e,t){t.forEach((function(t){var n,r,i=T(e,t.path),o=t.path.split("/").splice(-1)[0],a=o&&Number.isNaN(+o)?i[o]:i[+o]||i,s=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(i=null,a=e),"add"===t.op||"replace"===t.op)if(_(i))"-"===o&&(o=i.length),i.splice(+o,"add"===t.op?0:1,t.value);else if(_(a)&&_(t.value)){var l,c=t.value.slice();a.length=0,(l=a).push.apply(l,function(e){if(Array.isArray(e))return S(e)}(r=c)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||function(e,t){if(e){if("string"==typeof e)return S(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?S(e,t):void 0}}(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}else if(q(a)&&q(t.value))n=a,Object.keys(n).forEach((function(e){Object.getOwnPropertyDescriptor(n,e).configurable&&!R(n,e)&&delete n[e]})),E(a,t.value);else{if(!i)throw new Error("Patchee is not an object we can patch");i[o]=t.value}else if("move"===t.op){var u=T(e,t.from);_(i)?i.splice(+o,0,u.splice(+s,1)[0]):(i[o]=u[s],delete u[s])}else"remove"===t.op&&(_(i)?i.splice(+o,1):delete i[o])}))},M.clone=function(e){return E({},e)},M.createPatch=function(e,t,n){var r={op:e.toLowerCase(),path:n};return"move"===r.op?r.from=t:void 0!==t&&(r.value=t),r},M.updateObject=function(e,t){Object.keys(e).length?M.apply(e,M.generate(e,t)):E(e,t)};const P=M,N=function(e,n,r){if(!e)return Promise.resolve();var i=P.generate(n,r);return t()(!0,n,r),i&&i.length?(i=i.map((function(e){return{qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}})),e.applyPatches(i,!0)):Promise.resolve()};var A="accumulation";function I(e,t){var n=o(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===A)return n[r]}function L(e,t){var n=function(e,t){var n=o(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===A)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var z={type:"accumulation",disabled:!1,accumulationDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullAccumulation:!1,steps:6,outputExpression:""};const F={translationKey:"properties.modifier.accumulation",needDimension:k.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return k.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,i=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!n)return t;var l=a;void 0===l&&(l=k.getNumDimensions({properties:r,layout:i}));var c=o(r,"qHyperCubeDef.qDimensions",[]),u=k.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:c,dimensionAndFieldList:s}),d=k.getNumStepComp(n,l),f=k.getAboveComp(n,l,u,d),h=k.getRangeComp("RangeSum",f);if(k.needDimension({modifier:n,properties:r,layout:i})){var p=k.getDimComp(c,1),m=k.getDimComp(c,0),g=k.getAggrComp(h,p,m);h=n.showExcludedValues?k.getExcludedComp({modifier:n,dimensions:c,dimensionAndFieldList:s,valueComp:g}):g}return h},extractInputExpression:k.extractInputExpression,initModifier:function(e){k.initModifier(e,z)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.accumulation.disclaimer",show:function(e,t){return!k.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(L(t,e),".accumulationDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.accumulation.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(L(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.accumulation.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(L(t,e),".fullAccumulation")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(L(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var n=I(t,e);if(n){var r=n.steps;n.steps="number"!=typeof r||Number.isNaN(r)?6:Math.abs(r)}},show:function(t){var n=I(t,e);return n&&!n.fullAccumulation}},showExcludedValues:{refFn:function(t){return"".concat(L(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return k.isApplicable({properties:t.properties})}}},show:function(t,n,r){var i=r.ext.support.modifiers;if(!Array.isArray(i)||-1===i.indexOf(A))return!1;var o=I(t,e);return o&&!o.disabled}};return n}};var j="movingAverage";function $(e,t){var n=o(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===j)return n[r]}function H(e,t){var n=function(e,t){var n=o(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===j)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var V={type:"movingAverage",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullRange:!1,steps:6,outputExpression:"",nullSuppression:!1};const B={translationKey:"properties.modifier.movingAverage",needDimension:k.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return k.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t,n=e.expression,r=e.modifier,i=e.properties,a=e.layout,s=e.numDimensions,l=e.dimensionAndFieldList;if(!r)return n;var c=s;void 0===c&&(c=k.getNumDimensions({properties:i,layout:a}));var u=o(i,"qHyperCubeDef.qDimensions",[]),d=r.showExcludedValues&&r.nullSuppression,f=k.getExpressionWithExcludedComp({expression:n,modifier:r,dimensions:u,dimensionAndFieldList:l,treatMissingAsNull:d}),h=k.getNumStepComp(r,c),p=k.getAboveComp(r,c,f,h);if(r.nullSuppression)t=k.getRangeComp("RangeAvg",p);else{var m=k.getRangeComp("RangeSum",p),g=function(e,t){var n=k.getRowNoComp(e,t);if(!k.isFullRange(e)){var r=e.steps,i="number"!=typeof r||Number.isNaN(r)?6:r;return"RangeMin(".concat(i,", ").concat(n,")")}return n}(r,c);t="".concat(m," / ").concat(g)}var y=t;if(k.needDimension({modifier:r,properties:i,layout:a})){var v=k.getDimComp(u,1),b=k.getDimComp(u,0),x=k.getAggrComp(y,v,b);y=r.showExcludedValues?k.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:l,funcComp:"Only",valueComp:x}):x}return y},extractInputExpression:k.extractInputExpression,initModifier:function(e){k.initModifier(e,V)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.movingAverage.disclaimer",show:function(e,t){return!k.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(H(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.movingAverage.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(H(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.movingAverage.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(H(t,e),".fullRange")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(H(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var n=$(t,e);if(n){var r=n.steps;n.steps="number"!=typeof r||Number.isNaN(r)?6:Math.abs(r)}},show:function(t){var n=$(t,e);return n&&!n.fullRange}},showExcludedValues:{refFn:function(t){return"".concat(H(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat(H(t,e),".nullSuppression")},type:"boolean",translation:t.showNull||"properties.dimensions.showNull",schemaIgnore:!0,defaultValue:!1,inverted:!0}},show:function(e,t){return k.isApplicable({properties:t.properties})}}},show:function(t,n,r){var i=r.ext.support.modifiers;if(!Array.isArray(i)||-1===i.indexOf(j))return!1;var o=$(t,e);return o&&!o.disabled}};return n}};var W="timeSeriesDecomposition";function U(e,t){var n=o(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===W)return n[r]}function Y(e,t){var n=function(e,t){var n=o(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===W)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var K={type:"timeSeriesDecomposition",disabled:!1,decomposition:"",steps:2,outputExpression:""};const G={translationKey:"properties.modifier.timeSeriesDecomposition",needDimension:k.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return k.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties;return n?k.generateTSDExpression(n,t,r):t},extractInputExpression:k.extractInputExpression,initModifier:function(e,t){k.initModifier(e,K),""===e.decomposition&&t&&(e.decomposition=k.getDecomposition(t))},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.timeSeriesDecomposition||"properties.modifier.timeSeriesDecomposition",show:function(e,t){return!k.isApplicable({properties:t.properties})}},settings:{type:"items",items:{decomposition:{refFn:function(t){return"".concat(Y(t,e),".decomposition")},type:"string",translation:t.modifierTrendDecompositionDecomposition||"properties.modifier.trendDecomposition.decomposition",component:"dropdown",schemaIgnore:!0,defaultValue:t.trendDecompositionParametersDecompositionObserved||"cao.trendDecomposition.parameters.decomposition.observed",options:a.OPTIONS},steps:{refFn:function(t){return"".concat(Y(t,e),".steps")},type:"integer",translation:t.modifierTimeSeriesDecompositionPeriods||"properties.modifier.timeSeriesDecomposition.periods",schemaIgnore:!0,defaultValue:2,change:function(t,n){var r=U(t,e);if(r){var i=r.steps;r.steps="number"!=typeof i||Number.isNaN(i)?2:Math.abs(i),n.properties.qHyperCubeDef.qMeasures=n.properties.qHyperCubeDef.qMeasures.map((function(e){return e.qDef.modifiers.map((function(e){return"timeSeriesDecomposition"===e.type?e.steps=i:e.steps=e.steps,e})),e}))}},show:function(t){var n=U(t,e);return n&&!n.fullRange}}},show:function(e,t){return k.isApplicable({properties:t.properties})}}},show:function(t,n,r){var i=r.ext.support.modifiers;if(!Array.isArray(i)||-1===i.indexOf(W))return!1;var o=U(t,e);return o&&!o.disabled}};return n}};var X="difference";function J(e,t){var n=o(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===X)return n[r]}function Z(e,t){var n=function(e,t){var n=o(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===X)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var Q={type:"difference",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,outputExpression:""};const ee={translationKey:"properties.modifier.difference",needDimension:k.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return k.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},extractInputExpression:k.extractInputExpression,generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,i=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!n)return t;var l=a;void 0===l&&(l=k.getNumDimensions({properties:r,layout:i}));var c=o(r,"qHyperCubeDef.qDimensions",[]),u=k.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:c,dimensionAndFieldList:s}),d=k.getAboveComp(n,l,u),f="".concat(u," - ").concat(d);if(k.needDimension({modifier:n,properties:r,layout:i})){var h=k.getDimComp(c,1),p=k.getDimComp(c,0),m=k.getAggrComp(f,h,p);f=n.showExcludedValues?k.getExcludedComp({modifier:n,dimensions:c,dimensionAndFieldList:s,funcComp:"Only",valueComp:m}):m}return f},initModifier:function(e){Object.keys(Q).forEach((function(t){void 0===e[t]&&(e[t]=Q[t])}))},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.difference.disclaimer",show:function(e,t){return!k.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(Z(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.difference.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(Z(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.difference.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},showExcludedValues:{refFn:function(t){return"".concat(Z(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return k.isApplicable({properties:t.properties})}}},show:function(t,n,r){var i=r.ext.support.modifiers;if(!Array.isArray(i)||-1===i.indexOf(X))return!1;var o=J(t,e);return o&&!o.disabled}};return n}};var te="normalization";function ne(e,t){var n=o(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===te)return n[r]}function re(e,t){var n=function(e,t){var n=o(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===te)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}function ie(e,t){for(var n=0;n<e.length;n++)if(e[n].value===t)return n;return-1}var oe={type:"normalization",disabled:!1,primaryDimension:0,outputExpression:"",dimensionalScope:2,selectionScope:2};function ae(e){return 2===e?"{1}":""}function se(e,t,n){return 1===e?"{$<".concat(k.getFieldWithWrapper(t),"={'").concat(n,"'}>}"):""}function le(e,t){return 0===e&&t>1||2===e?"Total":""}function ce(e,t,n){return 0===e&&t>1?"<".concat(k.getDimDefWithWrapper(n),">"):""}const ue={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,n=e.layout;return k.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},extractInputExpression:k.extractInputExpression,generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,i=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!n)return t;var l=a;void 0===l&&(l=k.getNumDimensions({properties:r,layout:i}));var c=o(r,"qHyperCubeDef.qDimensions",[]),u=k.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:c,dimensionAndFieldList:s}),d=n.selectionScope,f=n.dimensionalScope;return function(e,t,n,r,i,o,a){var s=ae(t),l=se(t,n,r),c=""===s&&""===l?"":s||l,u=le(i,o),d=ce(i,o,a),f=function(e){for(var t=[],n=0;n<e;n++)t[n]=k.getDimDefWithWrapper(n);return t.join(", ")}(o);return"".concat(e,"/ Sum(").concat(c," ").concat(u).concat(d," Aggr(").concat(c," ").concat(e,", ").concat(f,"))")}(u,d,n.field,n.value,f,l,n.primaryDimension)},initModifier:function(e){Object.keys(oe).forEach((function(t){void 0===e[t]&&(e[t]=oe[t])}))},updateModifier:function(e,t){1===(t.qDimensions?t.qDimensions.length:0)&&0===e.dimensionalScope&&(e.dimensionalScope=2)},enableTotalsFunction:function(){return!0},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.normalization.disclaimer",show:function(e,t){return!k.isApplicable({properties:t.properties})}},settings:{type:"items",items:{selectionScope:{refFn:function(t){return"".concat(re(t,e),".selectionScope")},type:"string",translation:t.modifierSelectionScope||"properties.modifier.selectionScope",title:{translation:t.modifierSelectionScopeTooltip||"properties.modifier.selectionScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,options:function(n){return function(e,t,n){var r=[{value:0,translation:t.selectionScopeCurrentSelection||"properties.modifier.selectionScope.currentSelection"},{value:1,translation:t.selectionScopeSpecificValue||"properties.modifier.selectionScope.selectAField"},{value:2,translation:t.selectionScopeTotal||"properties.modifier.selectionScope.total"}];return r=function(e,t){if(1===e){var n=ie(t,0);t.splice(n,1)}return t}(ne(e,n).dimensionalScope,r),r}(n,t,e)}},field:{refFn:function(t){return"".concat(re(t,e),".field")},type:"string",component:"expression-with-dropdown",translation:"Common.Field",defaultValue:"",dropdownOnly:!0,options:function(e,t,n){return n.app.getFieldList().then((function(e){return e.map((function(e){return{label:e.qName,value:e.qName}}))}))},show:function(t){return 1===ne(t,e).selectionScope}},value:{refFn:function(t){return"".concat(re(t,e),".value")},type:"string",ref:"value",component:"string",translation:"properties.value",expression:"optional",show:function(t){return 1===ne(t,e).selectionScope}},dimensionalScope:{refFn:function(t){return"".concat(re(t,e),".dimensionalScope")},type:"string",translation:t.modifierDimensionalScope||"properties.modifier.dimensionalScope",title:{translation:t.modifierDimensionalScopeTooltip||"properties.modifier.dimensionalScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,supportTooltip:!0,options:function(n,r){return function(e,t,n,r){var i=t.layout.qHyperCube.qDimensionInfo.length,o=[{value:0,translation:n.dimensionalScopeOneDimension||"properties.modifier.dimensionalScope.respectOneDimension",tooltipTranslation:n.dimensionalScopeOneDimensionTooltip||"properties.modifier.dimensionalScope.respectOneDimension.tooltip"},{value:1,translation:n.dimensionalScopeAllDimensions||"properties.modifier.dimensionalScope.".concat(2===i?"respectAllDimensions":"respectDimension"),tooltipTranslation:n.dimensionalScopeAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===i?"respectAllDimensions":"respectDimension",".tooltip")},{value:2,translation:n.dimensionalScopeDisregardAllDimensions||"properties.modifier.dimensionalScope.".concat(2===i?"disregardAllDimensions":"disregardDimension"),tooltipTranslation:n.dimensionalScopeDisregardAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===i?"disregardAllDimensions":"disregardDimension",".tooltip")}];return o=function(e,t){if(e<2){var n=ie(t,0);t.splice(n,1)}return t}(i,o),o=function(e,t){if(0===e){var n=ie(t,1);t.splice(n,1)}return t}(ne(e,r).selectionScope,o),o}(n,r,t,e)}},primaryDimension:{refFn:function(t){return"".concat(re(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.normalization.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(t,n){return 0===(ne(t,e).dimensionalScope||0)&&n.layout.qHyperCube.qDimensionInfo.length>1}}},show:function(e,t){return k.isApplicable({properties:t.properties})}}},show:function(t,n,r){var i=r.ext.support.modifiers;if(!Array.isArray(i)||-1===i.indexOf(te))return!1;var o=ne(t,e);return o&&!o.disabled}};return n},getDisregardSelectionComp:ae,getFieldSelectionComp:se,getTotalComp:le,getSelectedDimComp:ce};var de="qDef.base",fe="qDef.qDef",he="qDef.base.qDef",pe="qLibraryId",me="qDef.base.qLibraryId";const ge={getExpression:function(e){var t=o(e,he);return void 0!==t?t:o(e,fe)},getExpressionRef:function(e){return void 0!==o(e,he)?he:fe},getLibraryIdRef:function(e){return o(e,me)?me:pe},getLibraryId:function(e){return o(e,me)||o(e,pe)},getLabelRef:function(e){return o(e,de)?"qDef.base.qLabel":"qDef.qLabel"},getLabelExpressionRef:function(e){return o(e,de)?"qDef.base.qLabelExpression":"qDef.qLabelExpression"}};var ye="qDef.qDef",ve="qDef.base.qDef",be="qLibraryId",xe="qDef.base.qLibraryId",we="qDef.qLabel",ke="qDef.qLabelExpression",Se="qDef.base.qLabel",Ce="qDef.base.qLabelExpression",Ee="qDef.qAggrFunc",Me="qDef.base.qAggrFunc",_e={initBase:function(e,t){(t||_e.isValid(e))&&(n(e,ve,o(e,ye)),n(e,xe,o(e,be)),n(e,Se,o(e,we)),n(e,Ce,o(e,ke)))},restoreBase:function(e){_e.isValid(e)&&(n(e,ye,o(e,ve)),n(e,be,o(e,xe)),n(e,we,o(e,Se)),n(e,ke,o(e,Ce)),o(e,Ee)&&o(e,Me)&&n(e,Ee,o(e,Me)),delete e.qDef.base)},isValid:function(e){var t=o(e,ve),n=o(e,xe);return void 0!==t||void 0!==n}};const qe=_e;function De(e){return De="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},De(e)}var Re={accumulation:F,movingAverage:B,difference:ee,normalization:ue,timeSeriesDecomposition:G};const Te={modifiers:Re,apply:Pe,applyModifiers:Ne,cleanUpMeasure:Ae,destroy:function(e){e&&Oe[e.id]&&Oe[e.id].masterItemSubscriber&&(Oe[e.id].masterItemSubscriber&&Oe[e.id].masterItemSubscriber.unsubscribe(),delete Oe[e.id])},hasActiveModifiers:Ie,getActiveModifier:Le,initBase:qe.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some((function(e){return Re[e]}))},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,n=e.properties,r=e.layout;return Array.isArray(t)&&t.some((function(e){return Re[e]&&Re[e].isApplicable({properties:n,layout:r})}))},measureBase:ge,limitedSorting:function(e){var t=e.measures,n=e.properties,r=e.layout,i=!1,o=!1;return t.forEach((function(e){var t=je(e);Ye({modifiers:t,properties:n,layout:r})&&(i=!0,o=o||Ze({modifiers:t,properties:n,layout:r}))})),i&&!o},ifEnableTotalsFunction:ze};var Oe={};function Pe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.model,r=e.properties,i=e.isSnapshot,a=void 0!==i&&i,s=e.masterItem,l=!1;Oe[n.id]=Oe[n.id]||{isFirstTime:!0};var c=Oe[n.id].isFirstTime;if(Oe[n.id].isFirstTime=!1,r&&"object"===De(r))return Ne({model:n,properties:r});var u=n?n.layout:void 0,d=o(u,"qSelectionInfo.qInSelections");if(a||d)return Promise.resolve(l);var f=o(u,"qHyperCube.qMeasureInfo"),h=Oe[n.id].lastReloadTime;if(Oe[n.id].lastReloadTime=o(n,"app.layout.qLastReloadTime"),Ie({measures:f,layout:u})){var p=function(e){var t=e.measures,n=e.layout,r=e.lastReloadTime;return o(e.model,"app.layout.qLastReloadTime")!==r&&function(e){var t=e.measures,n=e.properties,r=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ue({measure:e,properties:n,layout:r})}))}({measures:t,layout:n})}({measures:f,layout:u,model:n,lastReloadTime:h});return p||function(e){var t=e.measures,n=e.layout,r=e.masterItem,i=e.isFirstTime;return!!Array.isArray(t)&&(i||r||t.some((function(e){return function(e){var t=e.measure,n=e.layout;return Ye({modifiers:je(t),layout:n})?!t.base:!!t.base}({measure:e,layout:n})})))}({measures:f,layout:u,masterItem:s,isFirstTime:c})?n.getEffectiveProperties().then((function(e){var r=t()(!0,{},e);He(r);var i=Qe(r);return Ke({model:n}).then((function(t){return Ge({libraryIds:i,model:n}).then((function(i){return p&&function(e){var t=e.properties;Fe(t).forEach((function(e){return function(e){var t=e.measure;if(Ue({measure:t,properties:e.properties})){var n=0,r=t.qDef.modifiers;Array.isArray(r)&&r.forEach((function(e){if("object"===De(e)&&!e.disabled){if(n++,"object"!==De(Re[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(n>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");var r=Re[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==r&&Be(t)&&k.simplifyExpression(t.qDef.base.qDef)!==k.simplifyExpression(r)&&(t.qDef.base.qDef=r)}}))}}({measure:e,properties:t})}))}({properties:r}),Ne({model:n,oldProperties:e,properties:r,runUpdateIfChange:!0,masterItem:s,libraryItemsProps:i,dimensionAndFieldList:t})}))}))})):Promise.resolve(l)}return function(e){return!!Array.isArray(e)&&e.some((function(e){return"object"===De(e.base)}))}(f)?n.getEffectiveProperties().then((function(e){return function(e){var n=e.model,r=e.properties,i=Qe(r);return et({model:n,libraryIds:i}).then((function(){var e=t()(!0,{},r);return Fe(r).forEach((function(e){return Ae(e)})),Je({oldProperties:e,newProperties:r,model:n})}))}({model:n,properties:e})})):Promise.resolve(l)}function Ne(e){var n=e.model,r=e.oldProperties,i=e.properties,a=e.measures,s=e.runUpdateIfChange,l=void 0!==s&&s,c=e.masterItem,u=e.libraryItemsProps,d=e.dimensionAndFieldList;void 0===r&&(r=l?t()(!0,{},i):i),He(i);var f=Qe(i);return et({model:n,libraryIds:f,masterItem:c}).then((function(){return function(e){var n=e.measures,r=e.properties,i=e.model,a=e.libraryItemsProps,s=e.dimensionAndFieldList;if(n||(n=Fe(r)),!n.length)return Promise.resolve();if(!Ie({measures:n,properties:r}))return n.forEach((function(e){return Ae(e)})),Promise.resolve();var l=a?void 0:Qe(r);return Ke({model:i,dimensionAndFieldList:s}).then((function(e){return Ge({libraryIds:l,model:i,libraryItemsProps:a}).then((function(i){n.forEach((function(n){Ye({modifiers:n.qDef.modifiers,properties:r})?(function(e){var n=e.measure,r=e.properties,i=e.libraryItemsProps,a=e.dimensionAndFieldList,s=0;qe.isValid(n)||qe.initBase(n,!0);var l=n.qDef,c=l.modifiers,u=l.base;Array.isArray(c)&&c.forEach((function(e){if("object"===De(e)&&!e.disabled){if(s++,"object"!==De(Re[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(s>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");Re[e.type].initModifier(e,n);var l=n.qLibraryId||u&&u.qLibraryId;l?function(e){var n=e.measure,r=e.modifier,i=e.properties,o=e.dimensionAndFieldList,a=e.libraryItemsProps[e.libraryId],s=a.qMeasure.qDef,l=""===s?s:Re[r.type].generateExpression({expression:s,modifier:r,properties:i,dimensionAndFieldList:o});r.outputExpression=l,n.qDef.qDef=r.outputExpression,(n.qDef.qLabel||a.qMeasure.qLabel)&&(n.qDef.qLabel=a.qMeasure.qLabel),(n.qDef.qLabelExpression||a.qMeasure.qLabelExpression)&&(n.qDef.qLabelExpression=a.qMeasure.qLabelExpression),n.qDef.quarantine&&n.qDef.quarantine.qNumFormat&&a.qMeasure.qNumFormat&&(n.qDef.qNumFormat=a.qMeasure.qNumFormat,n.qDef.isCustomFormatted=a.qMeasure.isCustomFormatted),delete n.qLibraryId,n.qDef.coloring=a.qMeasure.coloring,r.base=t()(!0,{},n.qDef.base)}({measure:n,modifier:e,libraryId:l,properties:r,libraryItemsProps:i,dimensionAndFieldList:a}):function(e){var n=e.measure,r=e.modifier,i=e.properties,o=e.dimensionAndFieldList;"function"==typeof Re[r.type].updateModifier&&Re[r.type].updateModifier(r,i.qHyperCubeDef);var a=ge.getExpression(n),s=""===a?a:Re[r.type].generateExpression({expression:a,modifier:r,properties:i,dimensionAndFieldList:o});r.outputExpression=s,n.qDef.qDef=r.outputExpression,n.qDef.base.qLabelExpression?n.qDef.qLabelExpression=n.qDef.base.qLabelExpression:n.qDef.qLabel=n.qDef.base.qLabel||a,r.base=t()(!0,{},n.qDef.base)}({measure:n,modifier:e,properties:r,dimensionAndFieldList:a}),function(e){var t=o(e,"qDef.qAggrFunc");"Expr"!==t||ze(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&ze(e)&&"Expr"===e.qDef.base.qAggrFunc&&(e.qDef.qAggrFunc="Expr",delete e.qDef.base.qAggrFunc):(e.qDef.qAggrFunc="None",e.qDef.base.qAggrFunc="Expr")}(n)}}))}({measure:n,properties:r,libraryItemsProps:i,dimensionAndFieldList:e}),Ve(n)):Ae(n)}))}))}))}({measures:a,properties:i,model:n,libraryItemsProps:u,dimensionAndFieldList:d}).then((function(){return l?Je({oldProperties:r,newProperties:i,model:n}):Promise.resolve(!1)}))}))}function Ae(e){!function(e){var t=je(e);return Array.isArray(t)&&t.some((function(e){return"object"===De(e)&&!e.disabled&&!Re[e.type]}))}(e)?qe.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,Ve(e)}function Ie(e){var t=e.measures,n=e.properties,r=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ye({modifiers:je(e),properties:n,layout:r})}))}function Le(e){var t=je(e);if(Array.isArray(t))for(var n=0;n<t.length;n++){var r=t[n];if(Re[r.type]&&!r.disabled)return r}}function ze(e){var t=Le(e);return!t||Re[t.type].enableTotalsFunction(e)}function Fe(e){return o(e,"qHyperCubeDef.qMeasures",[]).concat(o(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function je(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function $e(e){return o(e,"outputExpression.qValueExpression.qExpr")||o(e,"outputExpression")}function He(e){Fe(e).forEach((function(e){return function(e){var n=Le(e);n&&(void 0!==n.outputExpression&&$e(n)!==e.qDef.qDef?delete e.qDef.base:!qe.isValid(e)&&n.base&&(e.qDef.base=t()(!0,{},n.base)))}(e)}))}function Ve(e){var t=je(e);Array.isArray(t)&&t.forEach((function(t){"object"===De(t)&&(t.disabled||!Re[t.type]&&$e(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)}))}function Be(e){return e.base||e.qDef&&e.qDef.base}function We(e){var t=Be(e);return e.qLibraryId||t&&t.qLibraryId}function Ue(e){var t=e.measure,n=e.properties,r=e.layout;return!We(t)&&Ye({modifiers:je(t),properties:n,layout:r})}function Ye(e){var t=e.modifiers,n=e.properties,r=e.layout,i={};return Array.isArray(t)&&t.some((function(e){return!("object"!==De(e)||e.disabled||!Re[e.type])&&(void 0===i[e.type]&&(i[e.type]=Re[e.type].isApplicable({properties:n,layout:r})),i[e.type])}))}function Ke(e){var t=e.model,n=e.dimensionAndFieldList;if(n)return Promise.resolve(n);var r=[],i={},o=t.app.getDimensionList().then((function(e){i.dimensionList=e}));r.push(o);var a=t.app.getFieldList().then((function(e){i.fieldList=e}));return r.push(a),Promise.all(r).then((function(){return i}))}function Ge(e){var t=e.libraryIds,n=e.model,r=e.libraryItemsProps;if(r)return Promise.resolve(r);var i=t.measureLibraryIds,o=t.dimensionLibraryIds,a={},s=[];return i.forEach((function(e){var t=n.app.getMeasure(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));s.push(t)})),o.forEach((function(e){var t=n.app.getDimension(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));s.push(t)})),Promise.all(s).then((function(){return a}))}function Xe(e,t){if(""!==t||-1===["qFmt","qDec","qThou"].indexOf(e))return t}function Je(e){var t=e.oldProperties,n=e.newProperties,r=e.model,i=JSON.stringify(o(t,"qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(o(n,"qHyperCubeDef.qMeasures"),Xe)||JSON.stringify(o(t,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(o(n,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe);return i?function(e){var t=e.model,n=e.oldProperties,r=e.newProperties,i=t.layout;return i&&!i.qHasSoftPatches&&!i.qExtendsId&&o(i,"qMeta.privileges",[]).indexOf("update")>-1?t.setProperties(r):N(t,n,r)}({model:r,oldProperties:t,newProperties:n}).then((function(){return i})):Promise.resolve(i)}function Ze(e){var t=e.modifiers,n=e.properties,r=e.layout;return Array.isArray(t)&&t.some((function(e){return"object"===De(e)&&!e.disabled&&Re[e.type]&&Re[e.type].needDimension({modifier:e,properties:n,layout:r})}))}function Qe(e){var t=Fe(e),n=[],r=[],i=!1;return t.forEach((function(t){var r=je(t);if(Ye({modifiers:r,properties:e})){var o=We(t);o&&n.push(o),i=i||Ze({modifiers:r,properties:e})}})),o(e,"qHyperCubeDef.qDimensions",[]).forEach((function(e){var t=e.qLibraryId;t&&r.push(t)})),{measureLibraryIds:n,dimensionLibraryIds:r}}function et(e){var t=e.model,n=e.libraryIds;return!e.masterItem&&n&&(n.measureLibraryIds.length||n.dimensionLibraryIds.length)?(Oe[t.id].masterItemSubscriber=Oe[t.id].masterItemSubscriber||function(e){var t=e.model,n=e.callback,r={},i={},a={},s={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function l(e){var t={},n=o(e,"qInfo.qType");return n&&s[n]&&s[n].forEach((function(n){t[n]=o(e,n)})),JSON.stringify(t)}function c(e){var t=e.qInfo.qId;if(r[t]){var i=l(e);r[t].properties!==i&&(r[t].properties=i,"function"==typeof n&&r[t].enabled&&n(e)),r[t].enabled=!0}}function u(e,n){return t.app[n](e).then((function(t){r[e]={listener:t.layoutSubscribe(c),enabled:!1,properties:l(t.layout)}}))}return{subscribe:function(e){var n=e.measureLibraryIds,o=e.dimensionLibraryIds,s=[];return function(e){var t=e.dimensionLibraryIds;i={},e.measureLibraryIds.forEach((function(e){i[e]=!0})),a={},t.forEach((function(e){a[e]=!0}))}({measureLibraryIds:n,dimensionLibraryIds:o}),Object.keys(r).forEach((function(e){i[e]||a[e]||(r[e].listener.dispose(),delete r[e])})),t.app&&(Object.keys(i).forEach((function(e){i[e]&&!r[e]&&s.push(u(e,"getMeasure"))})),Object.keys(a).forEach((function(e){a[e]&&!r[e]&&s.push(u(e,"getDimension"))}))),Promise.all(s)},unsubscribe:function(){Object.keys(r).forEach((function(e){r[e].listener.dispose()})),r={}}}}({model:t,callback:function(e){return Pe({model:t,masterItem:e}).then((function(){return t.app.clearUndoBuffer()}))}}),Oe[t.id].masterItemSubscriber.subscribe(n)):Promise.resolve()}})(),t.default=i.default,Object.defineProperty(t,"__esModule",{value:!0})})()}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={exports:{}};return e[r](o,o.exports,n),o.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var r={};return(()=>{function e(t){var n,r=t;return r>9?(n=65+r-10)>90&&(n+=6):r="".concat(r).charCodeAt(0),[48,111,79,105,73,108].indexOf(n)>-1?e(r+1):String.fromCharCode(n)}function t(n){var r=e(n%62),i=Math.floor(n/62);return i>0?t(i)+r:r}function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}n.d(r,{default:()=>He});const o={getValue:function(e,t,n){if(null==e||null==t)return n;for(var r=t.split("."),i=e,o=0;o<r.length;++o){var a=r[o];if(""!==a){if(void 0===i[a]||null===i[a])return n;i=i[a]}}return i},setValue:function(e,t,n){if(null!=e&&null!=t){for(var r=t.split("."),i=r[r.length-1],o=e,a=0;a<r.length-1;++a){var s=r[a];void 0!==o[s]&&null!==o[s]||(o[s]=Number.isNaN(+r[a+1])?{}:[]),o=o[s]}void 0!==n?o[i]=n:delete o[i]}},isEmpty:function(e){return 0===Object.keys(e).length&&e.constructor===Object},isAtomicValue:function(e){return/boolean|number|string/.test(i(e))},generateId:function(){return t(Math.round(99e11*Math.random()+1e11)).replace(/\W/g,"")}};function a(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function l(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function u(e,t,n){if(e){for(var r=0;r<e.length;r++)if(e[r][t]===n)return r;return-1}return-1}const d={isOrderedSubset:function(e,t){if(!(e&&t&&e.length&&t.length))return!1;var n=e.indexOf(t[0]);if(-1!==n){for(var r=0;r<t.length;r++){var i=e.indexOf(t[r]);if(n>i)return!1;n=i}return!0}return!1},indexAdded:function(e,t){var n;for(n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)},indexRemoved:function(e,t){var n,r=0;for(n=0;n<e.length;++n)e[n]>t?--e[n]:e[n]===t&&(r=n);return e.splice(r,1),r},findItemByPropertyValue:function(e,t,n){if(e){for(var r=0;r<e.length;r++)if(e[r][t]===n)return e[r];return null}return null},findIndexByPropertyValue:u};var f=n(8),h=n.n(f);const p=function(e){var t,n=e.exportFormat,r=e.qHyperCubeDef,i=n.data[0];(t=i.dimensions).push.apply(t,a(r.qDimensions));var s,l=o.getValue(r,"qLayoutExclude.qHyperCubeDef.qDimensions");l&&(s=i.excludedDimensions).push.apply(s,a(l))},m=function(e){var t,n=e.exportFormat,r=e.qHyperCubeDef,i=n.data[0];(t=i.measures).push.apply(t,l(r.qMeasures));var a,s=o.getValue(r,"qLayoutExclude.qHyperCubeDef.qMeasures");s&&(a=i.excludedMeasures).push.apply(a,l(s))},g=function(e){var t=e.exportFormat,n=e.qHyperCubeDef,r=t.data[0];n.qInterColumnSortOrder||(n.qInterColumnSortOrder=[]),r.interColumnSortOrder=n.qInterColumnSortOrder.concat();var i=o.getValue(n,"qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder");i&&d.isOrderedSubset(i,r.interColumnSortOrder)&&(r.interColumnSortOrder=i.concat())},y=function(e){var t=e.exportFormat,n=e.properties;Object.keys(n).forEach((function(e){t.properties[e]=n[e]}))},v=function(e){var t=e.exportFormat,n=e.properties;n.qLayoutExclude||(n.qLayoutExclude={}),n.qLayoutExclude.disabled&&(Object.keys(n.qLayoutExclude.disabled).forEach((function(e){t.properties.hasOwnProperty(e)||(t.properties[e]=n.qLayoutExclude.disabled[e])})),delete n.qLayoutExclude.disabled),n.qLayoutExclude.changed&&(function(e){Object.keys(e.qLayoutExclude.changed).forEach((function(t){e.qLayoutExclude.changed[t].to===o.getValue(e,t)&&o.setValue(e,t,e.qLayoutExclude.changed[t].from)}))}(n),delete n.qLayoutExclude.changed),n.qLayoutExclude.quarantine&&!o.isEmpty(n.qLayoutExclude.quarantine)||delete n.qLayoutExclude},b=function(e){e.forEach((function(e){h().cleanUpMeasure(e),e.qDef.modifiers&&(e.store={modifiers:e.qDef.modifiers},delete e.qDef.modifiers)}))};function x(e,t,n){var r,i,a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],s=o.getValue(e,t);if(!o.isAtomicValue(s))try{if((i=(i=(r=JSON.stringify(s)).match(/:\{/g))?i.length:0)>2&&!a)return;s=JSON.parse(r)}catch(e){return}o.getValue(e,"qLayoutExclude.quarantine")||o.setValue(e,"qLayoutExclude.quarantine",{});var l=o.getValue(e,"qLayoutExclude.quarantine");l[n]||(l[n]={}),l[n][t]=s}var w=n(909),k=n.n(w);function S(e,t){var n=k()(!0,{},t,e);return o.getValue(n,"qOtherTotalSpec.qOtherCounted")||o.setValue(n,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),o.getValue(n,"qOtherTotalSpec.qOtherLimit")||o.setValue(n,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),n.hasOwnProperty("othersLabel")||(n.othersLabel="Others"),n}function C(e,t){return k()(!0,{},t,e)}function E(e,t,n){return"function"==typeof e?e(t):Number.isNaN(+e)?n:e}var M=Math.pow(2,53)-1;function _(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function q(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}const D=function(e,t,n){var r="masterobject"===o.getValue(t,"properties.qInfo.qType")?"masterobject":o.getValue(n,"qInfo.qType");o.setValue(e,"qInfo.qType",r),e.visualization=n.visualization},R=function(e,t,n){t.hasOwnProperty(e)&&(n[e]=t[e])},T=function(e,t,n,r){t.hasOwnProperty(e)?n[e]=t[e]:n[e]=r},O=function(){return{qDef:{autoSort:!0,cId:"",othersLabel:"Others"},qLibraryId:"",qNullSuppression:!1,qOtherLabel:"Others",qOtherTotalSpec:{qOtherLimitMode:"OTHER_GE_LIMIT",qOtherMode:"OTHER_OFF",qOtherSortMode:"OTHER_SORT_DESCENDING",qSuppressOther:!1}}},P=function(){return{qDef:{autoSort:!0,cId:"",numFormatFromTemplate:!0},qLibraryId:"",qTrendLines:[]}},N=function(e){var t,n=e.exportFormat,r=e.maxDimensions,i=e.minDimensions,o=e.newHyperCubeDef,a=e.defaultDimension,s=n.data[0];for(t=0;t<s.dimensions.length;++t){var l=S(s.dimensions[t],a);o.qDimensions.length<r?o.qDimensions.push(l):o.qLayoutExclude.qHyperCubeDef.qDimensions.push(l)}for(t=0;t<s.excludedDimensions.length;++t){var c=S(s.excludedDimensions[t],a);o.qDimensions.length<i?o.qDimensions.push(c):o.qLayoutExclude.qHyperCubeDef.qDimensions.push(c)}},A=function(e){var t,n=e.exportFormat,r=e.maxMeasures,i=e.minMeasures,o=e.newHyperCubeDef,a=e.defaultMeasure,s=n.data[0];for(t=0;t<s.measures.length;++t){var l=C(s.measures[t],a);o.qMeasures.length<r?o.qMeasures.push(l):o.qLayoutExclude.qHyperCubeDef.qMeasures.push(l)}for(t=0;t<s.excludedMeasures.length;++t){var c=C(s.excludedMeasures[t],a);o.qMeasures.length<i?o.qMeasures.push(c):o.qLayoutExclude.qHyperCubeDef.qMeasures.push(c)}},I=function(e){var t=e.exportFormat,n=e.dataDefinition,r=void 0===n?{}:n,i=t.data[0],o=r.dimensions||{max:0},a=r.measures||{max:0},s=E(a.max,i.dimensions.length,M),l=E(a.min,i.dimensions.length,0);return{maxDimensions:E(o.max,s,M),minDimensions:E(o.min,l,0),maxMeasures:s,minMeasures:l}},L=function(e){var t=e.exportFormat,n=e.newHyperCubeDef,r=t.data[0],i=n.qDimensions.length+n.qMeasures.length;n.qInterColumnSortOrder=r.interColumnSortOrder.concat();var o=n.qInterColumnSortOrder.length;if(o!==i)for(n.qLayoutExclude&&(n.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder=r.interColumnSortOrder.concat());o!==i;)o<i?(d.indexAdded(n.qInterColumnSortOrder,o),++o):(--o,d.indexRemoved(n.qInterColumnSortOrder,o))},z=function(e){var t=e.exportFormat,n=e.initialProperties,r=e.hypercubePath,i={qLayoutExclude:{disabled:{},quarantine:{}}};return Object.keys(t.properties).forEach((function(e){"qLayoutExclude"===e?t.properties[e].quarantine&&(i.qLayoutExclude.quarantine=k()(!0,{},t.properties[e].quarantine)):"qHyperCubeDef"===e&&r?o.setValue(i,"".concat(r,".qHyperCubeDef"),t.properties.qHyperCubeDef):n.hasOwnProperty(e)||-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)||function(e,t){return"components"===t&&Array.isArray(e[t])&&e[t].some((function(e){return"general"===e.key}))}(t.properties,e)?i[e]=t.properties[e]:i.qLayoutExclude.disabled[e]=t.properties[e]})),null===(i=k()(!0,{},n,i)).components&&(i.components=[]),i},F=function(e){var t=e.exportFormat,n=e.maxDimensions,r=e.minDimensions,i=e.maxMeasures,o=e.minMeasures,a=t.data[0];return a.dimensions.length>n&&n>0||a.measures.length>i&&i>0||a.excludedDimensions.length>0&&a.dimensions.length+a.excludedDimensions.length>r||a.excludedMeasures.length>0&&a.measures.length+a.excludedMeasures.length>o||!i&&a.measures.length>0||!n&&a.dimensions.length>0},j=function(e){var t=e.exportFormat,n=e.maxDimensions,r=e.minDimensions,i=e.maxMeasures,o=e.minMeasures,a=e.newHyperCubeDef,s=t.data[0];a.qLayoutExclude||(a.qLayoutExclude={}),a.qLayoutExclude.qHyperCubeDef||(a.qLayoutExclude.qHyperCubeDef={}),(s.dimensions.length>n&&n>0||s.excludedDimensions&&s.excludedDimensions.length&&s.dimensions.length+s.excludedDimensions.length>r)&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[])),(s.measures.length>i&&i>0||s.excludedMeasures&&s.excludedMeasures.length&&s.measures.length+s.excludedMeasures.length>o)&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!i&&s.measures.length&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!n&&s.dimensions.length&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[]))},$=function(e){var t,n=e.newProperties,r=e.dataDefinition,i=e.hypercubePath;if(r.dimensions&&"function"==typeof r.dimensions.added){var a=o.getValue(n,i||"").qHyperCubeDef,s=function(e){if(Array.isArray(e))return _(e)}(t=a.qDimensions)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return _(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qDimensions=[],s.forEach((function(e){a.qDimensions.push(e),r.dimensions.added(e,n)}))}},H=function(e){var t,n=e.newProperties,r=e.dataDefinition,i=e.hypercubePath;if(r.measures&&"function"==typeof r.measures.added){var a=o.getValue(n,i||"").qHyperCubeDef,s=function(e){if(Array.isArray(e))return q(e)}(t=a.qMeasures)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return q(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?q(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qMeasures=[],s.forEach((function(e){a.qMeasures.push(e),r.measures.added(e,n)}))}},V=function(e){var t=e.measures,n=e.modifierTypes;t&&n&&h().isSupportedModifiers(n)&&t.forEach((function(e){e.store&&e.store.modifiers&&(e.qDef.modifiers=e.store.modifiers),delete e.store}))};function B(e,t){var n=o.getValue(e,"qLayoutExclude.quarantine",{})[t];return!!n&&(Object.keys(n).forEach((function(t){o.setValue(e,t,n[t])})),delete e.qLayoutExclude.quarantine[t],!0)}const W={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,i=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t={data:[],properties:{}},n=0;n<e;++n)t.data.push({dimensions:[],measures:[],excludedDimensions:[],excludedMeasures:[],interColumnSortOrder:[]});return t}(),a=t.qProperty,s=o.getValue(a,n||""),l=s.qHyperCubeDef;return l.qInterColumnSortOrder||(l.qInterColumnSortOrder=[]),p({exportFormat:i,qHyperCubeDef:l}),m({exportFormat:i,qHyperCubeDef:l}),g({exportFormat:i,qHyperCubeDef:l}),delete l.qLayoutExclude,y({exportFormat:i,properties:a}),n&&(i.properties.qHyperCubeDef=l,delete s.qHyperCubeDef),v({exportFormat:i,properties:a}),r||b(i.properties.qHyperCubeDef.qMeasures),Array.isArray(i.properties.filters)&&(x(i.properties,"filters","storedFilters",!0),delete i.properties.filters),i.properties.qHyperCubeDef.qContextSetExpression&&(x(i.properties,"qHyperCubeDef.qContextSetExpression","storedFilters"),i.properties.qHyperCubeDef.qContextSetExpression=""),i.properties.qHyperCubeDef.qDynamicScript&&i.properties.qHyperCubeDef.qDynamicScript.length&&(x(i.properties,"qHyperCubeDef.qDynamicScript","dynamicScript"),i.properties.qHyperCubeDef.qDynamicScript=[]),i},importProperties:function(e){var t=e.exportFormat,n=e.initialProperties,r=void 0===n?{}:n,i=e.dataDefinition,a=void 0===i?{}:i,s=e.defaultPropertyValues,l=void 0===s?{}:s,c=e.hypercubePath,u=e.extension,d=e.supportedFilters,f=void 0===d||d,h=e.isHCModifierSupported,p=void 0===h||h,m={qChildren:[]},g=z({exportFormat:t,initialProperties:r,hypercubePath:c}),y=o.getValue(r,c||"").qHyperCubeDef,v=o.getValue(g,c||"").qHyperCubeDef,b=I({exportFormat:t,dataDefinition:a}),x=b.maxDimensions,w=b.minDimensions,k=b.maxMeasures,S=b.minMeasures,C=l.defaultDimension,E=void 0===C?O():C,M=l.defaultMeasure,_=void 0===M?P():M;v.qDimensions.length=0,v.qMeasures.length=0,F({exportFormat:t,maxDimensions:x,minDimensions:w,maxMeasures:k,minMeasures:S})&&j({exportFormat:t,maxDimensions:x,minDimensions:w,maxMeasures:k,minMeasures:S,newHyperCubeDef:v}),N({exportFormat:t,maxDimensions:x,minDimensions:w,newHyperCubeDef:v,defaultDimension:E}),A({exportFormat:t,maxMeasures:k,minMeasures:S,newHyperCubeDef:v,defaultMeasure:_}),$({newProperties:g,dataDefinition:a,hypercubePath:c}),H({newProperties:g,dataDefinition:a,hypercubePath:c}),L({exportFormat:t,newHyperCubeDef:v}),R("qMaxStackedCells",y,v),R("qNoOfLeftDims",y,v),T("qInitialDataFetch",y,v,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),T("qMode",y,v,"S"),T("qReductionMode",y,v,"N"),T("qSortbyYValue",y,v),T("qIndentMode",y,v),T("qShowTotalsAbove",y,v),D(g,t,r),m.qProperty=g;var q=o.getValue(u||{},"support.modifiers");return V({measures:v.qMeasures,modifierTypes:q}),f&&B(m.qProperty,"storedFilters"),"S"===v.qMode&&p&&B(m.qProperty,"dynamicScript"),m}};var U={cellBackgroundColor:!0,cellForegroundColor:!0,colorByAlternative:!0,colorByExpression:!0,tooltip:!0,urlLabel:!0,url:!0};function Y(e,t,n,r){t=t||[];var i=u(e,r,n),o=u(t,r,n);if(-1!==i&&-1===o){var a=e.splice(i,1);t.push(a[0])}return t}function K(e,t){return e.length!==t}const G={create:function(e,t){if(!e||!U[e])throw new Error("Attribute Expressions Util: ID required");var n={};return t&&Object.keys(t).forEach((function(e){n[e]=t[e]})),n.id=e,n.qAttribute=!0,n},moveByIdFromGroup:function(e,t,n,r,i){n=n||"qAttributeExpressions",i=i||"id";for(var o=0;o<e.length;o++){var a=e[o][n],s=t.length;if(Y(a,t,r,i),K(t,s))return t}return t},IDMAP:{CELL_BACKGROUND_COLOR:"cellBackgroundColor",CELL_FOREGROUND_COLOR:"cellForegroundColor",COLOR_BY_ALTERNATIVE:"colorByAlternative",COLOR_BY_EXPRESSION:"colorByExpression",TOOLTIP:"tooltip",CELL_LINK_LABEL:"urlLabel",CELL_LINK_URL:"url"}},X={getNumDimensions:function(e){return o.getValue(e,"qHyperCubeDef.qDimensions.length",0)},getNumMeasures:function(e){return o.getValue(e,"qHyperCubeDef.qMeasures.length",0)},wrapFieldName:function(e){return e.split(" ").length>1&&"="!==e[0]&&"["!==e[0]?"[".concat(e,"]"):e},getItemLabel:function(e){return e.label||e.name}},J={colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>0&&X.getNumMeasures(e)<=1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)>0},expression:function(e){return X.getNumMeasures(e)>=1}}},Z={colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumMeasures(e)>=1}}};var Q={scatterplot:Z,"sn-scatter-plot":Z,piechart:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumMeasures(e)>=1}}},linechart:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)<=1},expression:function(e){return X.getNumMeasures(e)>=1}}},map:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>=1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)>=1},expression:function(e){return X.getNumDimensions(e)>=1}}},distributionplot:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumDimensions(e)>=1}}}};function ee(e,t,n){if(Array.isArray(e[t])){var r=d.findIndexByPropertyValue(e[t],"id",n);r>=0&&e[t].splice(r,1)}else e[t]=[]}function te(e,t){var n=G.IDMAP.COLOR_BY_ALTERNATIVE;e.forEach((function(e){ee(e,"qAttributeDimensions",n),ee(e,"qAttributeExpressions",n)})),t.forEach((function(e){ee(e,"qAttributeDimensions",n),ee(e,"qAttributeExpressions",n)}))}function ne(e,t){if(t){var n="="===t.charAt(0);e.color.altLabel=n?{qStringExpression:{qExpr:t.substr(1)}}:t}}function re(e){var t=e.properties,n=e.isDimension,r=e.dimensions,i=e.excludedDimensions,a=e.measures,s=e.label;te(r,i);var l=r[r.length-1];if(l){var c=n?o.getValue(t,"color.byDimDef"):o.getValue(t,"color.byMeasureDef"),u=o.getValue(t,"color.formatting.qNumFormat"),f=o.getValue(t,"color.formatting.isCustomFormatted");if(c){var h=G.create(G.IDMAP.COLOR_BY_ALTERNATIVE);switch(c.type){case"expression":!function(e){var t=e.attributeExpression,n=e.label,r=e.item,i=e.isDimension,o=e.qNumFormat,a=e.isCustomFormatted;t.label=n||r.label,i?t.qDef=r.key:(t.qExpression=r.key,o&&(t.qNumFormat=o,t.isCustomFormatted=a)),t.matchMeasure=r.activeMeasureIndex,t.label&&"="===t.label.charAt(0)&&(t.labelExpRef="color.altLabel")}({attributeExpression:h,label:s,item:c,isDimension:n,qNumFormat:u,isCustomFormatted:f});break;case"libraryItem":!function(e){var t=e.attributeExpression,n=e.measures,r=e.item,i=e.qNumFormat,o=e.isCustomFormatted;e.isDimension||(t.matchMeasure=d.findIndexByPropertyValue(n,"qLibraryId",r.key),i&&(t.qNumFormat=i,t.isCustomFormatted=o)),void 0!==r.expression?t.qExpression=r.expression:t.qLibraryId=r.key,t.colorMapRef=r.key}({attributeExpression:h,measures:a,item:c,isDimension:n,qNumFormat:u,isCustomFormatted:f})}n?(h.qSortBy={qSortByAscii:1},l.qAttributeDimensions.push(h)):l.qAttributeExpressions.push(h)}}}function ie(e,t,n,r){var i,o,a,s={};switch(e){case"dimension":n.qLibraryId?(s.type="dimension",s.name=n.qLibraryId,s.id=n.qLibraryId):(s.type="field",t?(s.name=n.label||n.qDef,s.id=n.qDef):(s.name=n.qDef.qFieldDefs[0],s.label=(a=n.qDef).qLabelExpression?a.qLabelExpression:a.qFieldLabels&&a.qFieldLabels[0]?a.qFieldLabels[0]:a.qFieldDefs[0]));break;case"measure":i=function(e,t){return t?e.qLibraryId:h().measureBase.getLibraryId(e)}(n,t),i?(s.type="measure",s.name=i,s.id=i,o=function(e,t){return h().hasActiveModifiers({measures:[e]})&&t?e.qDef.qDef:void 0}(n,r),o&&(s.expression=o)):(s.type="expression",t?(s.name=n.label||n.qExpression,s.id=n.qExpression):(s.name=n.qDef.qDef,s.label=function(e){var t=e.qDef;return t.qLabelExpression?t.qLabelExpression:t.qLabel?t.qLabel:t.qDef}(n)));break;default:throw new Error('columnType should be "dimension" or "measure"')}return s}const oe={useMasterNumberFormat:function(e){e.quarantine={qNumFormat:e.qNumFormat||{},isCustomFormatted:e.isCustomFormatted||!1},e.qNumFormat=null,e.isCustomFormatted=void 0}};function ae(e,t,n,r){var i=t.type,o=e.color,a=o.mode,s=X.getItemLabel(t);switch(ne(e,s||""),i){case"field":a="byDimension",o.byDimDef={label:t.label||X.wrapFieldName(t.name),key:X.wrapFieldName(t.name),type:"expression",activeDimensionIndex:t.activeDimensionIndex};break;case"expression":a="byMeasure",o.byMeasureDef={label:s,key:t.name,type:"expression",activeMeasureIndex:t.activeMeasureIndex};break;case"dimension":a="byDimension",o.byDimDef={label:t.name,key:t.id,type:"libraryItem",activeDimensionIndex:t.activeDimensionIndex};break;case"measure":a="byMeasure",o.byMeasureDef={label:t.name,key:t.id,expression:t.expression,type:"libraryItem",activeMeasureIndex:t.activeMeasureIndex},o.formatting&&oe.useMasterNumberFormat(o.formatting)}o.auto=!1,o.mode=a}function se(e,t){var n=o.getValue(e,"".concat(t,"qDimensions"),[]),r=o.getValue(e,"".concat(t,"qMeasures"),[]),i=o.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=o.getValue(e,"color.byDimDef");if(a&&ne(e,a.label),function(e){return!!(e&&e.activeDimensionIndex>-1)}(a))!function(e,t){var n=o.getValue(e,"".concat(t,"qDimensions"),[]),r=o.getValue(e,"color.byDimDef");r.activeDimensionIndex=Math.min(r.activeDimensionIndex,n.length-1);var i=ie("dimension",!1,n[r.activeDimensionIndex]);i.activeDimensionIndex=r.activeDimensionIndex,ae(e,i)}(e,t);else if(function(e){return!e||!e.key}(a)&&function(e,t){var n=o.getValue(e,"".concat(t,"qDimensions"),[]),r=n[function(e,t,n){var r=o.getValue(t,"visualization"),i=n.split("."),a=Number(i[1]),s=o.getValue(t,"layers.".concat(a,".type"));return 2===e.length&&"map"===r&&"point"===s}(n,e,t)?0:n.length-1],i=G.IDMAP.COLOR_BY_ALTERNATIVE,a=d.findItemByPropertyValue(r.qAttributeDimensions,"id",i);return ae(e,ie("dimension",!!a,a||r)),!!a}(e,t))return;re({properties:e,isDimension:!0,dimensions:n,excludedDimensions:i,measures:r,label:o.getValue(e,"color.byDimDef.label")})}const le=function(e,t,n){o.setValue(e,t,n),o.isAtomicValue(n)&&function(e,t,n){var r=e.qLayoutExclude;r&&(r.changed||(r.changed={}),r.changed[t]={from:o.getValue(e,t),to:n})}(e,t,n)},ce=function(e,t){var n={primary:!0};if(e){var r=(Q[t]||J).colorModeOptions||J.colorModeOptions;n.byDimension=r.dimension(e),n.byMeasure=r.measure(e),n.byMultiple=r.multiColor(e),n.byExpression=r.expression(e)}return n},ue=function(e){var t=e.canColorBy,n=e.autoColor,r=e.colorMode,i=e.dimensions;return!(t[r]&&!n&&("byDimension"!==r&&"byMeasure"!==r||!i.length))},de=function(e,t){var n,r=o.getValue(e,"color.mode"),i=o.getValue(e,"color.auto"),a=o.getValue(e,"".concat(t,"qDimensions"),[]),s=o.getValue(e,"".concat(t,"qMeasures"),[]),l=o.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);i?te(a,l):!(n={auto:i,colorMode:r,dimensions:a}).auto&&"byDimension"===n.colorMode&&n.dimensions.length>0?se(e,t):function(e){var t=e.auto,n=e.colorMode,r=e.dimensions,i=e.measures,a=e.properties,s=o.getValue(a,"visualization");return!(t||"byMeasure"!==n||!r.length||"map"!==s&&!i.length)}({auto:i,colorMode:r,dimensions:a,measures:s,properties:e})?function(e,t){var n=o.getValue(e,"".concat(t,"qDimensions"),[]),r=o.getValue(e,"".concat(t,"qMeasures"),[]),i=o.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=o.getValue(e,"color.byMeasureDef");if(a&&ne(e,a.label),function(e){return!!(e&&e.activeMeasureIndex>-1)}(a))!function(e,t){var n=o.getValue(e,"".concat(t,"qMeasures"),[]),r=o.getValue(e,"color.byMeasureDef");if(r.activeMeasureIndex=Math.min(r.activeMeasureIndex,n.length-1),r.activeMeasureIndex>-1){var i=ie("measure",!1,n[r.activeMeasureIndex],!0);i.activeMeasureIndex=r.activeMeasureIndex,ae(e,i)}}(e,t);else if(function(e,t){return(!e||!e.key)&&t.length>0}(a,r)&&function(e,t){var n=o.getValue(e,"".concat(t,"qDimensions"),[]),r=o.getValue(e,"".concat(t,"qMeasures"),[]),i=n[n.length-1],a=G.IDMAP.COLOR_BY_ALTERNATIVE,s=d.findItemByPropertyValue(i.qAttributeExpressions,"id",a);return ae(e,ie("measure",!!s,s||r[0])),!!s}(e,t))return;re({properties:e,isDimension:!1,dimensions:n,excludedDimensions:i,measures:r,label:o.getValue(e,"color.byMeasureDef.label")})}(e,t):function(e,t){var n=o.getValue(e,"color.mode"),r=o.getValue(e,"".concat(t,"qDimensions"),[]),i=o.getValue(e,"".concat(t,"qMeasures"),[]),a=o.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);"byMultiple"===n&&i.length<2&&o.setValue(e,"color.mode","primary"),te(r,a)}(e,t)},fe=function(e){e.forEach((function(e){e.qOtherTotalSpec&&"qTotalMode"in e.qOtherTotalSpec&&delete e.qOtherTotalSpec.qTotalMode}))},he=function(e){var t=e.shouldUpdateColorBy,n=e.properties,r=o.getValue(n,"qHyperCubeDef.qMeasures",[]),i=o.getValue(n,"color.mode","");return!t&&"byExpression"===i&&r.length>0},pe=function(e){var t=o.getValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",[]),n=o.getValue(e,"color.colorExpression","");t.splice(0,0,{qExpression:n,id:"colorByExpression"}),o.setValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",t)},me=function(e){o.setValue(e,"color.mode","primary"),o.setValue(e,"color.auto",!0)},ge=function(e){var t=o.getValue(e,"qHyperCubeDef.qDimensions",[]),n=o.getValue(e,"color.persistent",!1);return t.length>1&&!n},ye={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,i=W.exportProperties({propertyTree:t,hypercubePath:n,viewDataMode:r}),o=i.data[0],a=o.dimensions.concat(o.excludedDimensions),s=o.measures.concat(o.excludedMeasures),l=G.IDMAP,c=l.COLOR_BY_ALTERNATIVE,u=l.COLOR_BY_EXPRESSION;return G.moveByIdFromGroup(a,[],"qAttributeDimensions",c),G.moveByIdFromGroup(a,[],"qAttributeExpressions",c),G.moveByIdFromGroup(s,[],"qAttributeExpressions",u),i},importProperties:function(e){var t=e.exportFormat,n=e.initialProperties,r=e.dataDefinition,i=e.defaultPropertyValues,a=e.hypercubePath,s=e.extension,l=e.supportedFilters,c=e.isHCModifierSupported,u=W.importProperties({exportFormat:t,initialProperties:n,dataDefinition:r,defaultPropertyValues:i,hypercubePath:a,extension:s,supportedFilters:l,isHCModifierSupported:c}),d=u.qProperty,f=o.getValue(d,"visualization"),h=o.getValue(d,"qHyperCubeDef.qDimensions",[]),p=o.getValue(d,"color.mode",""),m=o.getValue(d,"color.auto",""),g=ce(d,f),y=ue({canColorBy:g,autoColor:m,colorMode:p,dimensions:h});return g[p]?he({shouldUpdateColorBy:y,properties:d})&&pe(d):me(d),y&&de(d,"qHyperCubeDef."),ge(d)&&le(d,"color.persistent",!0),fe(h),u}};var ve=["bar","marker","line"];const be=function(e){var t=e.initialProperties,n=e.properties;t.measureAxis&&void 0===t.measureAxis.autoMinMax?B(n,"unsupportedAutoMinMax")||k()(n.measureAxis,t.measureAxis):B(n,"supportedAutoMinMax")||k()(n.measureAxis,t.measureAxis)},xe=function(e){var t,n=e.exportFormat,r=e.initialProperties,i=e.properties,o=e.measureType,a=i.qHyperCubeDef,s=i.measureAxis;if(function(e){var t=e.initialProperties;return!(!e.exportFormat.properties.measureAxes||t.measureAxes||!t.measureAxis||void 0===t.measureAxis.autoMinMax)}({exportFormat:n,initialProperties:r})){var l=function(e){var t=[];return e.qMeasures.length>0&&e.qMeasures.forEach((function(e){if(e.qDef.series){var n=e.qDef.series,r=n.type,i=n.axis;t[i]||(t[i]={axis:i,type:{line:0,marker:0,bar:0,total:0}}),ve.includes(r)&&t[i].type[r]++,t[i].type.total++}})),t}(a);l.length?(o&&(t=l.filter((function(e){return e.type[o]>0})).sort((function(e,t){return t.type[o]-e.type[o]}))),t&&t.length||(t=l.sort((function(e,t){return t.type.total-e.type.total}))),t&&t[0]&&k()(s,n.properties.measureAxes[t[0].axis])):k()(s,n.properties.measureAxes[0])}},we=function(e){if(e.qDimensions.length>1){var t=e.qInterColumnSortOrder.indexOf(0);if(0!==t){var n=e.qInterColumnSortOrder[0];e.qInterColumnSortOrder[0]=0,e.qInterColumnSortOrder[t]=n}}},ke={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,i=e.supportedAutoMinMax,o=void 0===i||i,a=ye.exportProperties({propertyTree:t,hypercubePath:n,viewDataMode:r}),s=a.properties;return o?(x(s,"measureAxis.min","supportedAutoMinMax"),x(s,"measureAxis.max","supportedAutoMinMax")):(x(s,"measureAxis.min","unsupportedAutoMinMax"),x(s,"measureAxis.max","unsupportedAutoMinMax")),a},importProperties:function(e){var t=e.exportFormat,n=e.initialProperties,r=e.dataDefinition,i=e.defaultPropertyValues,o=e.hypercubePath,a=e.measureType,s=e.extension,l=e.supportedFilters,c=e.isHCModifierSupported,u=ye.importProperties({exportFormat:t,initialProperties:n,dataDefinition:r,defaultPropertyValues:i,hypercubePath:o,extension:s,supportedFilters:l,isHCModifierSupported:c}),d=u.qProperty;return be({initialProperties:n,properties:d}),xe({exportFormat:t,initialProperties:n,properties:d,measureType:a}),we(d.qHyperCubeDef),d.qHyperCubeDef.qColumnOrder=[],d.qHyperCubeDef.columnOrder=[],u}};function Se(e,t,n){return"qLayoutExclude.quarantine.".concat(e,".").concat(t,".").concat(n)}function Ce(e){var t=e.properties,n=e.arrayPath,r=e.quarantineName,i=e.arrayName,a=e.itemPath;o.getValue(t,n,[]).forEach((function(e){return function(e){var t=e.properties,n=e.quarantineName,r=e.arrayName,i=e.item,a=e.itemPath,s=o.getValue(i,a);if(void 0!==s){var l=o.getValue(i,"qDef.cId");l||(l=o.generateId(),o.setValue(i,"qDef.cId",l));var c=Se(n,r,l);o.setValue(t,c,s),o.setValue(i,a,void 0)}}({properties:t,quarantineName:r,arrayName:i,item:e,itemPath:a})}))}function Ee(e){var t=e.properties,n=e.arrayPath,r=e.quarantineName,i=e.arrayName,a=e.itemPath;o.getValue(t,n,[]).forEach((function(e){return function(e){var t=e.properties,n=e.quarantineName,r=e.arrayName,i=e.item,a=e.itemPath,s=o.getValue(i,"qDef.cId");if(s){var l=Se(n,r,s),c=o.getValue(t,l);void 0!==c&&(o.setValue(i,a,c),o.setValue(t,l,void 0))}}({properties:t,quarantineName:r,arrayName:i,item:e,itemPath:a})}))}var Me="qHyperCubeDef.qMeasures",_e="conditionalColoring",qe="measures",De="qDef.conditionalColoring";const Re={quarantine:function(e){Ce({properties:e,arrayPath:Me,quarantineName:_e,arrayName:qe,itemPath:De})},unquarantine:function(e){Ee({properties:e,arrayPath:Me,itemPath:De,arrayName:qe,quarantineName:_e})}};var Te="qHyperCubeDef.qMeasures",Oe="measures",Pe="qHyperCubeDef.qDimensions",Ne="dimensions",Ae="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",Ie="alternativeMeasures",Le="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",ze="alternativeDimensions",Fe="qCalcCondition",je="conditionalShowHide";const $e={quarantine:function(e){Ce({properties:e,arrayPath:Te,quarantineName:je,arrayName:Oe,itemPath:Fe}),Ce({properties:e,arrayPath:Pe,quarantineName:je,arrayName:Ne,itemPath:Fe})},unquarantine:function(e){Ee({properties:e,arrayPath:Te,quarantineName:je,arrayName:Oe,itemPath:Fe}),Ee({properties:e,arrayPath:Pe,quarantineName:je,arrayName:Ne,itemPath:Fe})},quarantineAlternative:function(e){Ce({properties:e,arrayPath:Ae,quarantineName:je,arrayName:Ie,itemPath:Fe}),Ce({properties:e,arrayPath:Le,quarantineName:je,arrayName:ze,itemPath:Fe})},unquarantineAlternative:function(e){Ee({properties:e,arrayPath:Ae,quarantineName:je,arrayName:Ie,itemPath:Fe}),Ee({properties:e,arrayPath:Le,quarantineName:je,arrayName:ze,itemPath:Fe})}},He={hypercube:W,colorChart:ye,axisChart:ke,quarantineProperty:x,unquarantineProperty:B,quarantineArrayProp:Ce,unquarantineArrayProp:Ee,conditionalColoring:Re,conditionalShow:$e}})(),r.default})()}(c0);var u0=r(c0.exports);const d0={setValue(e,t,n){if(!t)return;const r=t.split(".");let i=e;const o=r[r.length-1];let a;for(a=0;a<r.length-1;++a)null==i[r[a]]&&(i[r[a]]=Number.isNaN(+r[a+1])?{}:[]),i=i[r[a]];void 0!==n?i[o]=n:delete i[o]},getValue(e,t,n){const r=t.split(".");let i,o=e;if(void 0===o)return n;for(i=0;i<r.length;++i){if(null==o[r[i]])return n;o=o[r[i]]}return o}},f0={getDimensions:e=>d0.getValue(e,"qHyperCubeDef.qDimensions",[]),getNumDimensions:e=>d0.getValue(e,"qHyperCubeDef.qDimensions.length",0),getMeasures:e=>d0.getValue(e,"qHyperCubeDef.qMeasures",[]),getNumMeasures:e=>d0.getValue(e,"qHyperCubeDef.qMeasures.length",0),getDimensionLayouts(e,t){const n=d0.getValue(e,t?`${t}.qHyperCube`:"qHyperCube",null);return n?n.qDimensionInfo:[]},getDimensionLayout(e,t,n){return this.getDimensionLayouts(t,n).filter((t=>e===t.cId))[0]},getMeasureLayouts(e,t){const n=d0.getValue(e,t?`${t}.qHyperCube`:"qHyperCube",null);return n?n.qMeasureInfo:[]},getMeasureLayout(e,t,n){return this.getMeasureLayouts(t,n).filter((t=>e===t.cId))[0]}};const h0={colorModeOptions:{primary:()=>!0,dimension:()=>!0,multiColor:()=>!1,measure:()=>!0,expression:e=>f0.getNumMeasures(e)>=1},showLegend:e=>{const t=d0.getValue(e,"color.auto"),n=d0.getValue(e,"color.expressionIsColor"),r=d0.getValue(e,"color.mode");return!(!t&&"primary"===r||!t&&"byExpression"===r&&(n||void 0===n))},persistentColorsShow:e=>!d0.getValue(e,"color.auto")&&"byDimension"===d0.getValue(e,"color.mode"),useDimValColShow:e=>(void 0===d0.getValue(e,"color.useDimColVal")&&d0.setValue(e,"color.useDimColVal",!1),!d0.getValue(e,"color.auto")&&"byDimension"===d0.getValue(e,"color.mode")&&"libraryItem"===d0.getValue(e,"color.byDimDef.type"))},p0=function(e){const{colorModeOptions:t,persistentColorsShow:n,useDimValColShow:r,showLegend:i}=h0;this.color={colorMode:{options(n){const r=[];return"explore"===e&&r.push({value:"auto",translation:"Common.Auto"}),r.push({value:"primary",translation:"properties.colorMode.primary"}),r.push({value:"byDimension",translation:"properties.colorMode.byDimension"}),r.push({value:"byMeasure",translation:"properties.colorMode.byMeasure"}),t.expression(n)&&"explore"!==e&&r.push({value:"byExpression",translation:"properties.colorMode.byExpression"}),r}},persistentColors:{show:e=>r(e)?n(e)&&!d0.getValue(e,"color.useDimColVal"):n(e)},useDimColVal:{show:r}},this.legend={show:i,showTitle:{show(e){const t=d0.getValue(e,"color.auto");return d0.getValue(e,"legend.show")&&i(e)&&(t||!function(e){return"byExpression"===d0.getValue(e,"color.mode")&&!0===d0.getValue(e,"color.expressionIsColor")}(e))}},dock:{show:e=>d0.getValue(e,"legend.show")&&i(e)}}};function m0(e){return new p0(e)}const g0={classification:{section:"styling",tags:["simple"],exclusive:!0},component:"items",show:!0,chartType:"piechart",translation:"LayerStyleEditor.component.styling",chartTitle:"Object.PieChart",subtitle:"LayerStyleEditor.component.styling",useGeneral:!0,items:{strokeSection:{translation:"properties.Outline",component:"items",items:{strokeItem:{component:"items",ref:"components",key:"slices",items:{strokeWrapper:{component:"inline-wrapper",items:{strokeWidth:{translation:"LayerStyleEditor.style.strokeWidth",ref:"style.strokeWidth",width:9,show:!0,component:"dropdown",type:"string",options:[{value:"none",translation:"Common.None"},{value:"small",translation:"Common.Small"},{value:"medium",translation:"Common.Medium"},{value:"large",translation:"Common.Large"}],defaultValue:"none",schemaIgnore:!0},strokeColor:{ref:"style.strokeColor",defaultValue:{color:"#FFFFFF"},schemaIgnore:!0,width:3,component:"color-picker"}}}}}}},cornerRadius:{component:"items",translation:"LayerStyleEditor.style.cornerRadius",items:{cornerRadiusItem:{component:"items",ref:"components",key:"slices",items:{cornerRadiusSlider:{ref:"style.cornerRadius",translation:"LayerStyleEditor.style.cornerRadius",component:"slider",min:0,max:40,step:.05,width:12,defaultValue:0,schemaIgnore:!0}}}}},innerRadius:{translation:"LayerStyleEditor.style.innerRadius",component:"items",show:e=>e.donut.showAsDonut,items:{innerRadiusItem:{component:"items",ref:"components",key:"slices",items:{innerRadiusSlider:{ref:"style.innerRadius",translation:"LayerStyleEditor.style.innerRadius",component:"slider",min:.05,max:.75,step:.01,width:12,defaultValue:.55,schemaIgnore:!0}}}}}}},y0=(e,t,n)=>{const r=`${e}.fontFamily`,i=`${e}.fontSize`;return{fontFamilyItem:{component:"dropdown",ref:r,options:()=>t.getOptions(r),defaultValue:()=>t.getDefaultValue(r)},fontWrapperItem:{component:"inline-wrapper",items:{fontSizeItem:{component:"dropdown",ref:i,options:()=>t.getOptions(i),defaultValue:()=>t.getDefaultValue(i)},fontColorItem:{component:"color-picker",width:!1,ref:`${e}.color`,defaultValue:()=>({color:n.getStyle("object.pieChart",e,"color")})}}}}},v0=(e,t,n,r)=>{const i=function(e){var t=e.theme,n=e.translator,r=e.config,i=void 0===r?{}:r,o=e.flags,a=function(e){var t=e.config,n=void 0===t?{}:t,r=n.id,i=n.paths;return{id:void 0===r?"object":"".concat("object",".").concat(r),paths:Array.isArray(i)?i:[]}}({config:i}),s=a.id,l=a.paths,c={};l.forEach((function(e){for(var r=e.split("."),i=c,a=0;a<r.length;a++){var l=r[a];a===r.length-1?i[l]=Rv({theme:t,translator:n,id:s,path:e,flags:o}):void 0===i[l]&&(i[l]={}),i=i[l]}}));var u=function(e){for(var t=e.split("."),n=c,r=0;r<t.length;r++){var i=t[r];if(void 0===n[i])throw new Error("font-resolver: Path '".concat(e,"' could not be resolved."));n=n[i]}return n};return c.getDefaultValue=function(e){return u(e).getDefaultValue()},c.getOptions=function(e){return u(e).getOptions()},c}({theme:r,translator:n,flags:t,config:{id:"pieChart",paths:["axis.title","label.name","label.value","legend.title","legend.label"]}});return{component:"styling-panel",chartTitle:"Object.PieChart",translation:"LayerStyleEditor.component.styling",subtitle:"LayerStyleEditor.component.styling",useGeneral:!0,useBackground:e,items:{strokeSection:{translation:"properties.Outline",component:"panel-section",items:{strokeItem:{component:"items",ref:"components",key:"slices",items:{strokeWrapper:{component:"inline-wrapper",items:{strokeWidth:{ref:"style.strokeWidth",width:9,show:!0,component:"dropdown",type:"string",options:[{value:"none",translation:"Common.None"},{value:"small",translation:"Common.Small"},{value:"medium",translation:"Common.Medium"},{value:"large",translation:"Common.Large"}],defaultValue:"none",schemaIgnore:!0},strokeColor:{ref:"style.strokeColor",defaultValue:{color:"#FFFFFF"},schemaIgnore:!0,width:3,component:"color-picker"}}}}}}},cornerRadius:{translation:"LayerStyleEditor.style.cornerRadius",component:"panel-section",items:{cornerRadiusItem:{component:"items",ref:"components",key:"slices",items:{cornerRadiusSlider:{ref:"style.cornerRadius",component:"slider",min:0,max:40,step:.05,width:12,defaultValue:0,schemaIgnore:!0}}}}},innerRadius:{translation:"LayerStyleEditor.style.innerRadius",component:"panel-section",show:e=>e.donut.showAsDonut,items:{innerRadiusItem:{component:"items",ref:"components",key:"slices",items:{innerRadiusSlider:{ref:"style.innerRadius",component:"slider",min:.05,max:.75,step:.01,width:12,defaultValue:.55,schemaIgnore:!0}}}}},axisTitleSection:null!=t&&t.isEnabled("CLIENT_IM_3050")?{translation:"properties.dataPoints.dimensionlabels",component:"panel-section",items:{axisTitleItems:{component:"items",ref:"components",key:"axis",items:y0("axis.title",i,r)}}}:void 0,labelNameSection:null!=t&&t.isEnabled("CLIENT_IM_3050")?{translation:"properties.dataPoints.dimensionValueLabel",component:"panel-section",items:{labelItems:{component:"items",ref:"components",key:"label",items:y0("label.name",i,r)}}}:void 0,labelValueSection:null!=t&&t.isEnabled("CLIENT_IM_3050")?{translation:"properties.value.label",component:"panel-section",items:{labelItems:{component:"items",ref:"components",key:"label",items:y0("label.value",i,r)}}}:void 0,legendTitleSection:null!=t&&t.isEnabled("CLIENT_IM_3051")?{translation:"properties.legend.title",component:"panel-section",items:{labelItems:{component:"items",ref:"components",key:"legend",items:y0("legend.title",i,r)}}}:void 0,legendLabelSection:null!=t&&t.isEnabled("CLIENT_IM_3051")?{translation:"properties.legend.label",component:"panel-section",items:{labelItems:{component:"items",ref:"components",key:"legend",items:y0("legend.label",i,r)}}}:void 0}}},b0=m0("hard");const x0=e=>{var t;null!==(t=e.color)&&void 0!==t&&t.auto||(kx(e,"color.mode","byDimension"),kx(e,"color.byDimDef.activeDimensionIndex",0),kx(e,"color.persistent",!1))},w0=e=>{var t;const n=[{value:"primary",translation:"properties.colorMode.primary"},{value:"byDimension",translation:"properties.colorMode.byDimension"}];switch(null===(t=e.color)||void 0===t?void 0:t.mode){case"byMultiple":n.push({value:"byMultiple",translation:"properties.colorMode.multicolored"});break;case"byMeasure":n.push({value:"byMeasure",translation:"properties.colorMode.byMeasure"});break;case"byExpression":n.push({value:"byExpression",translation:"properties.colorMode.byExpression"})}return n},k0=e=>{var t;const{flags:n,translator:r}=e||{},i=null==e||null===(t=e.sense)||void 0===t?void 0:t.theme,o=null==n?void 0:n.isEnabled("SENSECLIENT_IM_2429_PIECHART_BG"),a={items:{simpleItems:{items:{autoColor:{label:e=>{var t;return null!==(t=e.color)&&void 0!==t&&t.auto?r.get("Simple.Color.Auto",r.get("properties.colorMode.byDimension")):r.get("Common.Custom")},change:x0},colorMode:{options:w0}}}}},s={items:{labels:{items:{header:{show:e=>e.qHyperCubeDef.qDimensions.length&&e.qHyperCubeDef.qMeasures.length},pointLabels:{component:"checkbox",ref:"dataPoint.auto",type:"boolean",defaultValue:!0,translation:"Simple.Label.Value",show:e=>e.qHyperCubeDef.qDimensions.length&&e.qHyperCubeDef.qMeasures.length,change(e){e.dataPoint.auto||kx(e,"dataPoint.labelMode","none")}},dimensionTitle:{component:"checkbox",ref:"dimensionTitle",type:"string",translation:"Simple.Label.Dimension.Hide",defaultValue:"all",show:e=>e.qHyperCubeDef.qDimensions.length&&e.qHyperCubeDef.qMeasures.length,convertFunctions:{get:(e,t,n,r)=>!r.dimensionTitle,set(e,t,n,r,i){i.dimensionTitle=!e}}}}}}},l={uses:"settings",items:{simpleStyling:g0,simpleLabels:s,general:{items:{showDisclaimer:{translation:"properties.showDisclaimer",type:"boolean",ref:"showDisclaimer",component:"switch",defaultValue:!0,options:[{value:!0,translation:"Common.Show"},{value:!1,translation:"properties.hide"}]}}},presentation:{type:"items",translation:"properties.presentation",grouped:!0,items:{sliceStyling:v0(o,n,r,i),showAsDonut:{ref:"donut.showAsDonut",type:"boolean",component:"item-selection-list",defaultValue:!1,horizontal:!0,items:[{icon:"pie_chart_pie",component:"icon-item",labelPlacement:"bottom",translation:"properties.pie",value:!1},{icon:"pie_chart_donut",component:"icon-item",labelPlacement:"bottom",translation:"properties.donut",value:!0}]},labels:{type:"items",snapshot:{tid:"property-labels"},items:{dimensionTitle:{ref:"dimensionTitle",type:"boolean",component:"switch",translation:"properties.dataPoints.dimensionlabels",defaultValue:!0,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"properties.off"}]},valuesAuto:{ref:"dataPoint.auto",type:"boolean",translation:"properties.dataPoints.labelmode",component:"switch",defaultValue:!0,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}]},labelMode:{ref:"dataPoint.labelMode",type:"string",component:"dropdown",options:[{value:"none",translation:"Common.None"},{value:"share",translation:"properties.dataPoints.labelmode.share"},{value:"value",translation:"properties.dataPoints.labelmode.value"}],defaultValue:"share",show:e=>!e.dataPoint.auto},labelValueMode:{ref:"dataPoint.labelValueMode",type:"string",component:"dropdown",translation:"properties.dataPoints.labelvaluemode",options:[{value:"arc",translation:"Visualizations.Descriptions.Angle"},{value:"radius",translation:"Visualizations.Descriptions.Radius"}],defaultValue:"arc",show:e=>!e.dataPoint.auto&&function(e){return e.qHyperCubeDef&&e.qHyperCubeDef.qMeasures.length>1||e.qHyperCube&&e.qHyperCube.qMeasureInfo.length>1}(e)&&"value"===e.dataPoint.labelMode}}}}},colorsAndLegend:{uses:"colorsAndLegend",items:{colors:{items:{colorMode:{options:b0.color.colorMode.options},persistentColors:{show:b0.color.persistentColors.show}}},simpleColors:a,legend:{show:b0.legend.show,items:{show:{defaultValue:!1,snapshot:{tid:"property-legend"}},showTitle:{show:b0.legend.showTitle.show},dock:{show:b0.legend.dock.show}}}}},tooltip:{uses:"tooltip"}}};return l},S0={uses:"data",items:{dimensions:{uses:"dimensions"},measures:{uses:"measures",items:{numberFormatting:{items:{percentOfPieMessage:{component:"text",translation:"properties.numberFormatting.pieMessage",show:(e,t,{properties:n}={})=>n&&(n.dataPoint.auto||"share"!==n.dataPoint.labelMode)}}}}}}},C0={uses:"sorting",items:{interColumnSorting:{reset:e=>{const{qDimensions:t,qMeasures:n,qInterColumnSortOrder:r}=e.qHyperCubeDef;if(1===t.length&&n.length>=1){const t=r.length,n=[...Array(t).keys()];[n[0],n[1]]=[n[1],n[0]],e.qHyperCubeDef.qInterColumnSortOrder=n}}}}},E0={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{suppressZero:null,calcCond:{uses:"calcCond"}}}}};function M0(e){return{type:"items",component:"accordion",items:{data:S0,sorting:C0,addons:E0,settings:k0(e)}}}const _0=m0("explore"),q0=M0();var D0={type:"items",component:"accordion",items:{data:{uses:"data"},sort:{uses:"sort"},presentation:{uses:"presentation",items:{showAsDonut:q0.items.settings.items.presentation.items.showAsDonut,labelMode:{type:"items",items:{labelMode:{type:"string",component:"radio-list",translation:"properties.dataPoints.labelmode",diffs:["dataPoint.auto:false","dataPoint.labelMode"],options:q0.items.settings.items.presentation.items.labels.items.labelMode.options,setPropertyValue(e,t){e.dataPoint.auto=!1,e.dataPoint.labelMode=t},getValue:e=>e.dataPoint.auto?"":e.dataPoint.labelMode}}}}},color:{uses:"color",items:{mode:{options:_0.color.colorMode.options},dimension:{items:{persistentColors:{show:e=>!(e.color&&"byDimension"===e.color.mode&&e.color.useDimColVal&&_0.color.useDimColVal.show(e))}}}}}}};const R0="slices";function T0(e,t){const n=e&&e.desc&&void 0!==e.desc.share?e.desc.share:void 0;return t("share")(n)}function O0(e){return e.data.num.label}function P0(e){return e.data.radius.label}function N0(e,t,n,r){return function(e,t){if(e.dataPoint.auto)return 1===e.qHyperCube.qSize.qcy?O0:T0;if("share"===e.dataPoint.labelMode)return T0;if("value"===e.dataPoint.labelMode)return t.encodings.slice.outerRadius&&"radius"===e.dataPoint.labelValueMode?P0:O0;return O0}(n,r)(e,t)}function A0(e){let t;return t=e.data.label?function(e,t){let n=e;return n.length>t&&(n=`${n.substr(0,t-3)}...`),n}(e.data.label,20):"",t}class I0{constructor({element:e,properties:t,effectHelper:n,Flag:r}){this.element=e,this.Flag=r,n.initFade(this.element);const i=e.find(".effectLayer");i.length>0&&i.remove(),e.append('<div class="effectLayer"></div>'),this.effectLayer=e.find(".effectLayer"),this._effectProperties=t,this.selectedIndex=t.selectedIndex,this.hasPropertiesPanel=!1,this.effectApplied=!0,n.fadeIn(this.element)}updateOrigSettings(e){return{dataPoint:e.dataPoint,legend:e.legend,dimensionTitle:e.dimensionTitle}}updateFlags(e,t){const n=this.chart.getAffectedShapes("highlight"),r=this.effectLayer[0].getBoundingClientRect(),i=n.map((n=>{const{start:i,end:o,outerRadius:a,offset:s}=n.desc.slice,{scaleRatio:l}=this.chart.component(n.key).rect,c=n.element.getBoundingClientRect(),u=(i+o)/2,d=c.left-r.left+l.x*(s.x+a*Math.sin(u)),f=c.top-r.top+l.y*(s.y-a*Math.cos(u)),h=Math.cos(u)>0?"top":"bottom",p=Math.sin(u)>0?"right":"left";return{title:A0(n),label:N0(n,this.chart.formatter,e,t),orientation:`${h}${p}`,position:{x:d,y:f}}}));this.Flag.show(this.effectLayer,i)}init(e,t,n,r){return t.getProperties().then((e=>{if(!e.originalModelSettings){const t=bg(!0,{},e);e.originalModelSettings=this.updateOrigSettings(t)}e.effectProperties=r,e.effectPath=n,e.dataPoint.show=!1,e.legend.show=!1,e.dimensionTitle=!1,t.setProperties(e)}))}remove(e,t,n){return e.options=bg(e.options,{effect:null}),n?t.getProperties().then((e=>bg(e,{effectPath:null,effectProperties:null,dataPoint:bg(!0,{},e.originalModelSettings.dataPoint),legend:bg(!0,{},e.originalModelSettings.legend),dimensionTitle:e.originalModelSettings.dimensionTitle}))):Promise.resolve()}}class L0 extends I0{init(e,t,n,r){return e.options=bg(!0,e.options,{effect:this}),t.layout.effectProperties&&t.layout.effectPath===n&&t.layout.effectProperties.max===r.max?Promise.resolve():super.init(e,t,n,r)}update(e,t,n){this.chart=t,this.updateHighlight(e),this.updateFlags(e,n)}updateHighlight(e){const t=this.chart.component(R0).data.items,n=e.effectProperties.min,r=e.effectProperties.max,i=[];let o=[1/0,-1],a=[-1/0,-1];t.forEach(((e,t)=>{const i=e.num.value;n&&i<o[0]&&(o=[i,t]),r&&i>a[0]&&(a=[i,t])})),-1!==o[1]&&i.push(t[o[1]].value),-1!==a[1]&&i.push(t[a[1]].value),i.length&&this.chart.brush("highlight").setValues(i.map((e=>({key:"qHyperCube/qDimensionInfo/0",value:e}))))}}class z0 extends I0{constructor(e){super(e),this.hasPropertiesPanel=!0,this.propsTemplate=e.highlightValuePropsTemplate,this.effectHelper=e.effectHelper}onClick(e){if(!this.chart)return;const t=this.chart.shapesAt(function(e,t){const n=t.element.getBoundingClientRect();return{x:e.clientX-n.left,y:e.clientY-n.top}}(e,this.chart),{propagation:"stop"});if(1!==t.length)return;const n=t[0],r=this.chart.component(R0).data.items.map((e=>e.value)),i=r.indexOf(n.data.value);-1!==i&&(this.selectedIndex=i,this.effectHelper.updateSelectedPointIndex(this))}update(e,t,n){this.chart=t,this.updateHighlight(e),this.updateDataPoints(e,n),this.updateFlags(e,n)}updateHighlight(e){const t=this.chart.component(R0).data.items[e.effectProperties.selectedIndex];this.chart.brush("highlight").setValues([{key:"qHyperCube/qDimensionInfo/0",value:t.value}])}updateDataPoints(e,t){this.dataPoints=this.chart.findShapes("path").filter((e=>e.key===R0)).map(((n,r)=>{const i=N0(n,this.chart.formatter,e,t);return{text:`${A0(n)} (${i})`,value:r}}))}init(e,t,n,r){return e.options=bg(!0,e.options,{effect:this}),t.layout.effectProperties&&t.layout.effectPath===n&&t.layout.effectProperties.selectedIndex===r.selectedIndex?Promise.resolve():super.init(e,t,n,r)}}const F0="/effects/highlight-value",j0="/effects/maxmin";var $0={isCompatible:({effectPath:e})=>e===j0||e===F0,create:e=>e.effectPath===j0?new L0(e):e.effectPath===F0?new z0(e):null};function H0(e){const t={},{components:n,tooltip:r}=e,i=n?n.filter((e=>"slices"===e.key))[0]:void 0;if(i&&i.style&&Object.keys(i.style).forEach((e=>{t[`chart_style_${e}`]=i.style[e]})),r){var o;t.chart_tooltip_custom=!r.auto;const e=null===(o=r.chart)||void 0===o||null===(o=o.object)||void 0===o?void 0:o.refId;!r.auto&&e&&(t.chart_tooltip_custom_mini_chart=e)}return t}function V0(e){if(!e.qHyperCubeDef)return;const t=e.qHyperCubeDef.qDimensions,n=e.qHyperCubeDef.qMeasures;1===t.length&&1===n.length&&(n[0].qSortBy.qSortByNumeric=-1,e.qHyperCubeDef.qInterColumnSortOrder.splice(0,e.qHyperCubeDef.qInterColumnSortOrder.length,1,0))}function B0(e){e.qOtherTotalSpec.qOtherMode="OTHER_COUNTED",e.qOtherTotalSpec.qOtherCounted={qv:"10"}}function W0({translator:e}){return{dimensions:{min:1,max:1,description:()=>e.get("Visualizations.Descriptions.Slice"),add(e,t){B0(e),V0(t),cQ.addCallbackCustomTooltip(t)},move(e,t){B0(e),V0(t),cQ.moveCallbackCustomTooltip(t,e)},remove(e,t){cQ.removeCallbackCustomTooltip(t,e)},replace(e,t,n,r){B0(e),V0(r),cQ.replaceCallbackCustomTooltip(r,t)}},measures:{min:1,max:2,description:(t,n)=>e.get(0===n?"Visualizations.Descriptions.Angle":"Visualizations.Descriptions.Radius"),add(e,t){V0(t)},remove(e,t){!function(e){if(!e.qHyperCubeDef)return;const t=e.qHyperCubeDef.qMeasures,{mode:n}=e.color;"byExpression"===n&&0===t.length&&(e.color.mode="primary")}(t)}}}}const U0=e=>e.qMax<=0,Y0=e=>!(!(e&&e.qHyperCube.qSize.qcy>0)||e.qHyperCube.qMeasureInfo.every(U0));function K0(e){return{definition:M0(e),softDefinition:D0,support:{snapshot:Y0,export:Y0,exportData:!0,sharing:Y0,viewData:!0,effects:!0},effects:$0,extendMetrics:H0,importProperties:(t,n,r,i)=>{const o={layout:{templateId:n.templateId}};r.mapProperties(o);const a={defaultDimension:r.getDefaultDimensionProperties(),defaultMeasure:r.getDefaultMeasureProperties()},s=u0.colorChart.importProperties({exportFormat:t,initialProperties:n,dataDefinition:W0(e),defaultPropertyValues:a,hypercubePath:i});return s.qProperty.dataPoint&&!1===s.qProperty.dataPoint.show&&delete s.qProperty.dataPoint.show,s},exportProperties:(e,t,n)=>u0.colorChart.exportProperties({propertyTree:e,hypercubePath:t,viewDataMode:n})}}function G0(e){return{properties:{version:"1.28.8",color:{auto:!0,autoMinMax:!0,byDimDef:void 0,byMeasureDef:void 0,colorExpression:void 0,dimensionScheme:"12",expressionIsColor:!0,expressionLabel:"",formatting:{numFormatFromTemplate:!0,isCustomFormatted:void 0},measureMin:void 0,measureMax:void 0,measureScheme:"sg",mode:"primary",paletteColor:{index:6},persistent:!1,reverseScheme:!1,singleColor:void 0,useBaseColors:"off",useDimColVal:!0,useMeasureGradient:!0},components:[{key:"slices",style:{strokeWidth:"none",strokeColor:{index:-1,color:DQ.STROKE.COLOR},cornerRadius:DQ.CORNER_RADIUS,innerRadius:DQ.INNER_RADIUS}}],dataPoint:{auto:!0,labelMode:"share",labelValueMode:"arc"},dimensionTitle:!0,donut:{showAsDonut:!1},footnote:"",legend:{dock:"auto",show:!0,showTitle:!0},qHyperCubeDef:{qDimensions:[],qMeasures:[],qInitialDataFetch:[{qWidth:10,qHeight:500}],qSuppressMissing:!0,qSuppressZero:!1,qMode:"S"},showDetails:!0,showDisclaimer:!0,showTitles:!0,subtitle:"",title:"",tooltip:{auto:!0,hideBasic:!1,data:{qHyperCubeDef:void 0},chart:void 0,imageComponents:void 0}},data:{targets:[W0(e)]},importProperties:({exportFormat:t,initialProperties:n,hypercubePath:r})=>{const i=u0.colorChart.importProperties({exportFormat:t,initialProperties:n,dataDefinition:W0(e),hypercubePath:r});return i.qProperty.dataPoint&&!1===i.qProperty.dataPoint.show&&delete i.qProperty.dataPoint.show,i},exportProperties:({propertyTree:e,hypercubePath:t,viewDataMode:n})=>u0.colorChart.exportProperties({propertyTree:e,hypercubePath:t,viewDataMode:n})}}return t=>{const{flags:r}=t;!function(e){if(e&&e.get&&e.add){const t="Object.Disclaimer.LimitedData";if(e.get(t)!==t)return;Object.keys(n).forEach((t=>{e.add(n[t])}))}}(t.translator);const i=VZ();return{qae:G0(t),ext:K0(t),component(){const t=GZ({picasso:i}),n=wQ({flags:r,picasso:i,instance:t});s0({instance:t,services:n,picasso:i,flags:r}),function({instance:t}){const n=e.useStaleLayout(),r=e.useOptions(),i=e.useRect();e.useEffect((()=>{if(!t||!t.generateSettings)return;const{viewCache:e,chart:i,generateSettings:o}=t;i.update({settings:o()}),e.set("chartWidth",i.element.clientWidth),e.set("chartHeight",i.element.clientHeight),r.effect&&r.effect.update(n,i)}),[i.width,i.height])}({instance:t}),l0({instance:t,services:n})}}}}));
|
|
126
|
+
var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function o(n,r,i,o){var l=r&&r.prototype instanceof s?r:s,c=Object.create(l.prototype);return MJ(c,"_invoke",function(n,r,i){var o,s,l,c=0,u=i||[],d=!1,f={p:0,n:0,v:e,a:h,f:h.bind(e,4),d:function(t,n){return o=t,s=0,l=e,f.n=n,a}};function h(n,r){for(s=n,l=r,t=0;!d&&c&&!i&&t<u.length;t++){var i,o=u[t],h=f.p,p=o[2];n>3?(i=p===r)&&(l=o[(s=o[4])?5:(s=3,3)],o[4]=o[5]=e):o[0]<=h&&((i=n<2&&h<o[1])?(s=0,f.v=r,f.n=o[1]):h<p&&(i=n<3||o[0]>r||r>p)&&(o[4]=n,o[5]=r,f.n=p,s=0))}if(i||n>1)return a;throw d=!0,r}return function(i,u,p){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&h(u,p),s=u,l=p;(t=s<2?e:l)||!d;){o||(s?s<3?(s>1&&(f.n=-1),h(s,l)):f.n=l:f.v=l);try{if(c=2,o){if(s||(i="next"),t=o[i]){if(!(t=t.call(o,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=o.return)&&t.call(o),s<2&&(l=TypeError("The iterator does not provide a '"+i+"' method"),s=1);o=e}else if((t=(d=f.n<0)?l:n.call(r,f))!==a)break}catch(t){o=e,s=1,l=t}finally{c=1}}return{value:t,done:d}}}(n,i,o),!0),c}var a={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(MJ(t={},r,(function(){return this})),t),d=c.prototype=s.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,MJ(e,i,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=c,MJ(d,"constructor",c),MJ(c,"constructor",l),l.displayName="GeneratorFunction",MJ(c,i,"GeneratorFunction"),MJ(d),MJ(d,i,"Generator"),MJ(d,r,(function(){return this})),MJ(d,"toString",(function(){return"[object Generator]"})),(EJ=function(){return{w:o,m:f}})()}function MJ(e,t,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}MJ=function(e,t,n,r){if(t)i?i(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n;else{function o(t,n){MJ(e,t,(function(e){return this._invoke(t,n,e)}))}o("next",0),o("throw",1),o("return",2)}},MJ(e,t,n,r)}function _J(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t);else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||RJ(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function qJ(e){return function(e){if(Array.isArray(e))return bJ(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||RJ(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function DJ(e){return DJ="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},DJ(e)}function RJ(e,t){if(e){if("string"==typeof e)return bJ(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?bJ(e,t):void 0}}var TJ=function(e){var t=e.className,n=e.title,r=e.path,i=e.fillRule;return rC.createElement(yG,{className:t,viewBox:"0 0 16 16",fontSize:"small",role:"img",style:{height:12,width:12}},rC.createElement("path",{d:r}),n?rC.createElement("title",null,n):void 0,i?rC.createElement("use",{fillRule:i}):void 0)},OJ={STYLE:{ELLIPSIS:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},FOCUS:{boxShadow:"inset 0 0 0 2px #177FE6"},ICONS:{COLOR:{PRIMARY:"rgba(89, 89, 89)",SECONDARY:"rgba(89, 89, 89, 0.8)",DISABLED:"rgba(89, 89, 89, 0.4)"}}}},PJ={L:new RegExp("[A-Za-zªµºÀ-ÖØ-öø-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͽΆΈ-ϵϷ-҂Ҋ-։ः-हऻऽ-ीॉ-ौॎ-ॐक़-ॡ।-ॿং-হঽ-ীে-ৌৎ-ৡ০-ৱ৴-৺ਃ-ਹਾ-ੀਖ਼-੯ੲ-ੴઃ-હઽ-ીૉ-ૌૐ-ૡ૦-૯ଂ-ହଽ-ାୀେ-ୌୗ-ୡ୦-୷ஃ-ிு-ௌௐ-௲ఁ-ఽు-ౄౘ-ౡ౦-౯౿-ಹಽ-ೋೕ-ೡ೦-ീെ-ൌൎ-ൡ൦-ෆා-ෑෘ-ะา-ำเ-ๆ๏-ະາ-ຳຽ-ໆ໐-༗༚-༴༶༸༾-ཬཿ྅ྈ-ྌ྾-࿅࿇-ာေးျ-ြဿ-ၗၚ-ၝၡ-ၰၵ-ႁႃ-ႄႇ-ႌႎ-ႜ႞-ፚ፠-ᎏᎠ-Ᏼᐁ-ᙿᚁ-ᚚᚠ-ᜑᜠ-ᜱ᜵-ᝑᝠ-ᝰក-ាើ-ៅះ-ៈ។-៚ៜ០-៩᠐-ᢨᢪ-ᤜᤣ-ᤦᤩ-ᤱᤳ-ᤸ᥆-᧚ᨀ-ᨖᨙ-ᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪭ᬄ-ᬳᬵᬻᬽ-ᭁᭃ-᭪᭴-᭼ᮂ-ᮡᮦ-ᮧ᮪-ᯥᯧᯪ-ᯬᯮ᯲-ᰫᰴ-ᰵ᰻-᱿᳓᳡ᳩ-ᳬᳮ-ᶿḀ-ᾼιῂ-ῌῐ-Ίῠ-Ῥῲ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎ-⅏Ⅰ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-ⳤⳫ-ⳮⴀ-⵰ⶀ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ㆺㇰ-㈜㈠-㉏㉠-㉻㉿-㊰㋀-㋋㋐-㍶㍻-㏝㏠-㏾㐀-䶵一-ꒌꓐ-ꘌꘐ-ꙮꚀ-ꛯ꛲-꛷Ꜣ-ꞇ꞉-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠤꠧ꠰-꠷ꡀ-ꡳꢀ-ꣃ꣎-꣙ꣲ-ꤥ꤮-ꥆꥒ-ꥼꦃ-ꦲꦴ-ꦵꦺ-ꦻꦽ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂ-ꯤꯦ-ꯧꯩ-꯬꯰-ﬗA-Za-zヲ-ᅵ]"),R:new RegExp("[־׀׃׆א-״߀-ߪߴ-ߵߺ-ࠕࠚࠤࠨ࠰-ࡘ࡞יִײַ-ﬨשׁ-ﭏ]"),AL:new RegExp("[؈؋؍؛-ي٭-ٯٱ-ەۥ-ۦۮ-ۯۺ-܍ܐܒ-ܯݍ-ޥޱﭐ-ﴽﵐ-﷼ﹰ-ﻼ]")},NJ=function(e){return PJ.R.test(e)||PJ.AL.test(e)};function AJ(e){for(var t,n,r=e?e.length:0,i=0;i<r;i++){if(n=t=e[i],PJ.L.test(n))return"ltr";if(NJ(t))return"rtl"}return"ltr"}var IJ,LJ,zJ=uG(_X,{shouldForwardProp:function(e){return"direction"!==e&&"padding"!==e&&"styling"!==e}})((function(e){var t=e.direction,n=e.padding,r=e.styling,i=r.fontSize,o=r.fontFamily,a=r.color;return{fontWeight:"normal",lineHeight:"normal",fontSize:"".concat(i," !important"),fontFamily:"".concat(o," !important"),color:"".concat(a," !important"),height:"100%",minWidth:"0px",maxWidth:"640px",padding:n,"&:disabled":{color:a,opacity:1},"& .MuiButton-startIcon":{margin:"ltr"===t?"0 2px":void 0},"& .MuiButton-endIcon":{margin:"rtl"===t?"0 2px":void 0}}})),FJ=uG((function(e){var t=e.className;return rC.createElement(TJ,{className:t,path:"M13,7 L8,7 L13,7 L13,4.98151367 C13,2.23029964 10.7614237,0 8,0 C5.23857625,0 3,2.23029964 3,4.98151367 L3,7 L3.75,7 L3,7 L4.5,7 L4.5,5.33193359 C4.5,3.21561511 5.54860291,1.5 8,1.5 C10.4513971,1.5 11.5,3.21561511 11.5,5.33193359 L11.5,7 L12.25,7 L3,7 C2.44771525,7 2,7.44771525 2,8 L2,15 C2,15.5522847 2.44771525,16 3,16 L13,16 C13.5522847,16 14,15.5522847 14,15 L14,8 C14,7.44771525 13.5522847,7 13,7 L3,7 L13,7 Z",fillRule:"evenodd"})}))((function(){return{color:OJ.STYLE.ICONS.COLOR.SECONDARY,marginTop:"1px"}})),jJ=uG((function(e){var t=e.className;return rC.createElement(TJ,{className:t,path:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5L8 9Z"})}))((function(){return{color:OJ.STYLE.ICONS.COLOR.SECONDARY,marginTop:"1px","&.disabled":{color:OJ.STYLE.ICONS.COLOR.DISABLED,opacity:.6}}})),$J=function(e){var t=e.isOpen,n=e.onClick,r=e.popoverId,i=e.source,o=i.styling,a=i.info.text,s=i.layout.direction,l=i.meta,c=l.allowed,u=l.hasAlternatives,d=l.hasCyclic,f=l.hasMultiple,h=l.index,p=l.isCyclic,m=l.isLocked,g=i.resources.translator,y=i.services.focus,v=i.settings.isDisabled,b=i.state.inSelections,x=!(!c.change||!u),w=!(!c.reload||!p),k=(x||w)&&!b&&!v(),S={pointerEvents:k?"auto":"none"},C=function(e){var t=e.allowed,n=e.canChange,r=e.canReload,i=e.direction,o=e.hasCyclic,a=e.isLocked,s={top:"8px",right:"6px",bottom:"8px",left:"6px"};if(!e.hasMultiple)return"".concat(s.top," ").concat(s.right," ").concat(s.bottom," ").concat(s.left);var l=o&&t.reload;return"ltr"===i&&(a?s.left="0px":r||!n&&l?s.left="4px":n||(s.left="2px"),n||r||(s.right="0px")),"rtl"===i&&(a?s.right="0px":r||!n&&l?s.right="4px":n||(s.right="2px"),n||r||(s.left="0px")),"".concat(s.top," ").concat(s.right," ").concat(s.bottom," ").concat(s.left)}({allowed:c,canChange:x,canReload:w,direction:s,hasCyclic:d,hasMultiple:f,isLocked:m}),E=wJ(wJ({},"rtl"===s?"endIcon":"startIcon",m&&rC.createElement(FJ,{height:12})),"rtl"===s?"startIcon":"endIcon",(x||w)&&rC.createElement(jJ,{className:"".concat(b||v()?"disabled":"")})),M=nC.useRef(),_=nC.useRef();nC.useEffect((function(){t||y.shouldFor(h)&&(M.current.focus(),_.current.focusVisible())}));var q=AJ(a),D="Accessibility.".concat(k?"Alternative":"Normal",".Instructions");return rC.createElement(zJ,kJ({action:_,"aria-describedby":r,"aria-label":g.get(D),color:"inherit",direction:s,disabled:!k||v()||b,onClick:function(e){k&&n(e)},padding:C,ref:M,style:S,styling:o.title,title:a},E),rC.createElement("span",{dir:q,style:OJ.STYLE.ELLIPSIS},a))},HJ=function(e){var t=e.className,n=e.title;return rC.createElement(TJ,{className:t,title:n,path:"M 6 2 h 10 V 1 H 6 Z m 5 5 h 5 V 6 h -5 Z m 5 5 h -5 v -1 h 5 Z M 5 10 h 1 v 2.663 a 3.5 3.5 0 1 0 -2.922 0.036 l -0.406 0.914 A 4.501 4.501 0 1 1 7.329 13 H 9 v 1 H 5 Z"})},VJ=uG(_X,{shouldForwardProp:function(e){return"direction"!==e&&"isFirst"!==e&&"isLast"!==e&&"styling"!==e}})((function(e){var t=e.direction,n=e.isFirst,r=e.isLast,i=e.styling.color;return{fontWeight:"normal",lineHeight:"normal",color:i,height:"24px",width:"24px",padding:0,marginLeft:"ltr"!==t||n?void 0:"4px",marginRight:"rtl"!==t||r?void 0:"4px","&:disabled":{color:i,opacity:1}}})),BJ=uG(HJ,{shouldForwardProp:function(e){return"direction"!==e&&"isFirst"!==e&&"isLast"!==e}})((function(e){var t=e.direction,n=e.isFirst,r=e.isLast;return{color:OJ.STYLE.ICONS.COLOR.PRIMARY,marginTop:"1px",marginLeft:"ltr"!==t||n?void 0:"4px",marginRight:"rtl"!==t||r?void 0:"4px"}})),WJ=uG((function(e){var t=e.className,n=e.title;return rC.createElement(TJ,{className:t,title:n,path:"M1 8a7 7 0 1 1 10 6.326V11h-1v5h5v-1h-3.124A8 8 0 1 0 8 16v-1a7 7 0 0 1-7-7Z"})}),{})((function(){return{color:OJ.STYLE.ICONS.COLOR.SECONDARY,"&.disabled":{color:OJ.STYLE.ICONS.COLOR.DISABLED}}})),UJ=function(e){var t=e.source;if(!t.meta.isCyclic)return null;var n=_J(nC.useState(!1),2),r=n[0],i=n[1],o=t.styling,a=t.action.stepCycle,s=t.info,l=s.position,c=s.tooltip,u=t.layout.direction,d=t.meta,f=d.allowed,h=d.isFirst,p=d.isLast,m=t.settings.isDisabled,g=t.state.inSelections;return nC.useEffect((function(){r&&i(!1)}),[l]),f.reload?rC.createElement(VJ,{direction:u,disabled:r||g||m(),isFirst:h,isLast:p,onClick:function(){return i(!0),void a()},styling:o.title,title:c,variant:"outlined"},rC.createElement(WJ,{className:"".concat(r||g||m()?"disabled":"")})):rC.createElement(BJ,{direction:u,isFirst:h,isLast:p,style:{flexShrink:0},title:c})},YJ=function(e){var t=e.className,n=e.title;return rC.createElement(TJ,{className:t,title:n,path:"M7 4h9v1H7V4ZM9 8h7v1H9V8ZM11 12h5v1h-5v-1ZM1 4v3.526a3.5 3.5 0 0 0 3.5 3.5h2.31L5.22 9.402l.715-.7L8.7 11.527 5.935 14.35l-.714-.7 1.59-1.624H4.5a4.5 4.5 0 0 1-4.5-4.5V4h1Z"})},KJ=uG(_X,{shouldForwardProp:function(e){return"styling"!==e}})((function(e){var t=e.styling,n=t.fontSize,r=t.fontFamily,i=t.color;return{fontWeight:"normal",lineHeight:"normal",fontSize:"".concat(n," !important"),fontFamily:"".concat(r," !important"),color:"".concat(i," !important"),padding:"0px 5px",height:"100%",minWidth:"45px","&:disabled":{color:i}}})),GJ={color:OJ.STYLE.ICONS.COLOR.SECONDARY,marginTop:"1px","&.disabled":{color:OJ.STYLE.ICONS.COLOR.DISABLED}},XJ=uG((function(e){var t=e.className;return rC.createElement(TJ,{className:t,path:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5 8.5 8z"})}))((function(){return GJ})),JJ=uG((function(e){var t=e.className;return rC.createElement(TJ,{className:t,path:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})}))((function(){return GJ})),ZJ=uG(YJ,{shouldForwardProp:function(e){return"direction"!==e&&"isFirst"!==e&&"isLast"!==e}})((function(e){var t=e.direction,n=e.isFirst,r=e.isLast;return{color:OJ.STYLE.ICONS.COLOR.PRIMARY,marginTop:"1px",marginLeft:"ltr"!==t||n?void 0:"4px",marginRight:"rtl"!==t||r?void 0:"4px"}})),QJ=function(e){var t=e.source;if(!t.meta.isDrillDown)return null;var n=t.styling,r=t.action.drillUp,i=t.info,o=i.breadcrumbs,a=i.tooltip,s=t.layout.direction,l=t.meta,c=l.isFirst,u=l.isLast,d=t.settings.isDisabled,f=t.state.inSelections,h=d()||f?"disabled":null,p=wJ({},"rtl"===s?"startIcon":"endIcon","rtl"===s?rC.createElement(JJ,{className:h}):rC.createElement(XJ,{className:h})),m=o.map((function(e,t){var i=AJ(e);return rC.createElement(KJ,kJ({disabled:d()||f,key:"breadcrumb-".concat(e),onClick:function(){return function(e){r({steps:o.length-e})}(t)},styling:n.title,title:e},p),rC.createElement("span",{dir:i,style:OJ.STYLE.ELLIPSIS},e))}));return rC.createElement(rC.Fragment,null,"rtl"===s?m.reverse():void 0,rC.createElement(ZJ,{direction:s,isFirst:c,isLast:u,style:{flexShrink:0},title:a}),"rtl"===s?void 0:m)},eZ=uG(ZX,{shouldForwardProp:function(e){return"nested"!==e&&"rtl"!==e}})((function(e){var t=e.nested,n=e.rtl;return{padding:"4px ".concat(t&&n?"32px":"16px"," 4px ").concat(t&&!n?"32px":"16px"),"&:focus":CJ({},OJ.STYLE.FOCUS)}})),tZ=uG(nJ)((function(){return{marginRight:0,justifyContent:"center"}})),nZ=uG((function(e){var t=e.className;return rC.createElement(TJ,{className:t,path:"m6 10 7-7 2 2-7 7-2 2-5-5 2-2 3 3Z"})}))((function(){return{color:OJ.STYLE.ICONS.COLOR.SECONDARY}})),rZ=uG(HJ)((function(){return{color:OJ.STYLE.ICONS.COLOR.SECONDARY}})),iZ=uG(YJ)((function(){return{color:OJ.STYLE.ICONS.COLOR.SECONDARY,fontWeight:600}})),oZ=function(e){var t=e.id,n=e.meta,r=e.nested,i=e.onClick,o=e.selected,a=e.source,s=e.text,l=a.styling,c=a.settings.isRTL,u=CJ({fontWeight:!n||n.isNormal?"normal":600,lineHeight:"normal",fontSize:l.popover.fontSize,fontFamily:l.popover.fontFamily,color:l.popover.color,textAlign:c?"end":"start"},OJ.STYLE.ELLIPSIS),d=AJ(s),f=rC.createElement(tZ,{sx:c?{paddingRight:"12px"}:{paddingLeft:"12px"}},function(e){var t=e.meta;return e.selected?rC.createElement(nZ,{height:12}):null!=t&&t.isCyclic?rC.createElement(rZ,{height:12}):null!=t&&t.isDrillDown?rC.createElement(iZ,{height:12}):void 0}({meta:n,selected:o}));return rC.createElement(rC.Fragment,{key:t},rC.createElement(eZ,{autoFocus:o,nested:r,onClick:function(e){return null==i?void 0:i(e)},rtl:c,title:s},c&&f,rC.createElement(sJ,{dir:d,primaryTypographyProps:{style:u}},s),!c&&f))},aZ=uG(LX)((function(){return{marginTop:"-1px"}})),sZ=function(e){var t=e.anchor,n=e.id,r=e.onClose,i=e.open,o=e.source,a=o.action,s=a.changeTo,l=a.drillUp,c=a.setActiveField,u=o.info,d=u.breadcrumbs,f=u.group,h=u.id,p=u.text,m=o.data.alternatives,g=o.meta,y=g.index,v=g.isCyclic,b=g.isDrillDown,x=o.resources.translator,w=o.services.focus,k={isChanging:!1},S=nC.useRef(),C=function(){var e,t=document.activeElement;null!=S&&null!==(e=S.current)&&void 0!==e&&e.contains(t)&&t.blur(),r()},E=v||b,M=rC.createElement(oZ,{id:h,key:h,meta:o.meta,onClick:C,selected:!E,source:o,text:E?f.name:p}),_=E&&f.items.map((function(e){return rC.createElement(oZ,{id:e.id,nested:!0,onClick:function(t){return function(e,t){k.isChanging||(k.isChanging=!0,"keydown"!==e.type&&"keyup"!==e.type||w.queueFor(y),v&&c({fieldIndex:t.index}),b&&l({steps:d.length-t.index}))}(t,e)},selected:e.current,source:o,text:e.text})})),q=m.map((function(e,t){return rC.createElement(rC.Fragment,{key:e.id},rC.createElement(oZ,{id:e.id,key:e.id,meta:e.meta,onClick:function(t){return n=t,r=e.id,void(k.isChanging||(k.isChanging=!0,"keydown"!==n.type&&"keyup"!==n.type||w.queueFor(y),s({id:r})));var n,r},source:o,text:e.text}),t<m.length-1&&rC.createElement(aZ,{key:"divider-".concat(e.id)}))}));return rC.createElement(vJ,{anchorEl:t,anchorOrigin:{vertical:"top",horizontal:"center"},disableRestoreFocus:!0,id:n,onClose:C,open:i,ref:S,slotProps:{paper:{style:{minWidth:"250px",maxWidth:"640px",maxHeight:"300px"}}},transformOrigin:{vertical:"bottom",horizontal:"center"}},rC.createElement(YX,{"aria-label":x.get("Accessibility.Popover.Instructions"),dense:!0},M,_,rC.createElement(aZ,{key:"divider-".concat(h)}),q))},lZ=function(e){var t=e.source,n=_J(nC.useState(null),2),r=n[0],i=n[1],o={id:r?"alternatives-popover":void 0,isOpen:Boolean(r)},a=t.layout.direction,s=t.meta.index,l=t.services.focus,c=function(){i(null)};nC.useEffect((function(){o.isOpen&&c()}),[t.info.key]);var u=rC.createElement(UJ,{source:t}),d=rC.createElement(QJ,{source:t});return rC.createElement(rC.Fragment,null,"rtl"===a?void 0:d,"rtl"===a?void 0:u,rC.createElement($J,{onClick:function(e){var t=e.currentTarget;t.classList.contains("qcm-focus-visible")&&l.queueFor(s),i(t)},isOpen:o.isOpen,popoverId:o.id,source:t}),rC.createElement(sZ,{anchor:r,id:o.id,onClose:c,open:o.isOpen,source:t}),"rtl"===a?d:void 0,"rtl"===a?u:void 0)};var cZ=function(){if(LJ)return IJ;LJ=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},o=function(n){if(!n||"[object Object]"!==t.call(n))return!1;var r,i=e.call(n,"constructor"),o=n.constructor&&n.constructor.prototype&&e.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!i&&!o)return!1;for(r in n);return void 0===r||e.call(n,r)},a=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(t,n){if("__proto__"===n){if(!e.call(t,n))return;if(r)return r(t,n).value}return t[n]};return IJ=function e(){var t,n,r,l,c,u,d=arguments[0],f=1,h=arguments.length,p=!1;for("boolean"==typeof d&&(p=d,d=arguments[1]||{},f=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});f<h;++f)if(null!=(t=arguments[f]))for(n in t)r=s(d,n),d!==(l=s(t,n))&&(p&&l&&(o(l)||(c=i(l)))?(c?(c=!1,u=r&&i(r)?r:[]):u=r&&o(r)?r:{},a(d,{name:n,newValue:e(p,u,l)})):void 0!==l&&a(d,{name:n,newValue:l}));return d},IJ}(),uZ=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(cZ);function dZ(e){var t=e.model,n=e.properties;return t.modifiers?t.modifiers.apply({model:t,properties:n}):Promise.resolve()}function fZ(e){return Array.isArray(e)}function hZ(e){return null!=e&&!Array.isArray(e)&&"object"===DJ(e)}function pZ(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function mZ(e){return void 0===e}function gZ(e,t){if(hZ(e)&&hZ(t)){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n=Object.keys(e),r=0,i=n.length;r<i;r+=1)if(!gZ(e[n[r]],t[n[r]]))return!1;return!0}if(fZ(e)&&fZ(t)){if(e.length!==t.length)return!1;for(var o=0,a=e.length;o<a;o+=1)if(!gZ(e[o],t[o]))return!1;return!0}return e===t}function yZ(e){var t=e.oldData,n=void 0===t?{}:t,r=e.newData,i=void 0===r?{}:r,o=e.basePath,a=void 0===o?"":o,s=[];return Object.keys(i).forEach((function(e){var t=function(e){return e?uZ(!0,{},{value:e}).value:e}(i[e]),r=n[e],o="".concat(a,"/").concat(e);gZ(t,r)||pZ(i,e)||(mZ(r)?s.push({op:"add",path:o,value:t}):hZ(t)&&hZ(r)?s.push.apply(s,qJ(yZ({oldData:r,newData:t,basePath:o}))):fZ(t)&&fZ(r)?s.push.apply(s,qJ(function(e){var t=e.newArray,n=e.basePath,r=[];return gZ(t,e.oldArray.slice())||(!mZ(t[0])&&mZ(t[0].qInfo)||0===t.length)&&r.push({op:"replace",path:n,value:t}),r}({oldArray:r,newArray:t,basePath:o}))):s.push({op:"replace",path:o,value:t}))})),Object.keys(n).forEach((function(e){mZ(i[e])&&!pZ(n,e)&&s.push({op:"remove",path:"".concat(a,"/").concat(e)})})),s}function vZ(e){var t=e.model,n=yZ({oldData:e.oldProperties,newData:e.newProperties});null!=t&&t.applyPatches&&null!=n&&n.length&&t.applyPatches(n.map((function(e){return{qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}})),!0)}function bZ(e){return xZ.apply(this,arguments)}function xZ(){return(xZ=function(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){xJ(o,r,i,a,s,"next",e)}function s(e){xJ(o,r,i,a,s,"throw",e)}a(void 0)}))}}(EJ().m((function e(t){var n,r,i,o,a,s,l,c,u,d,f,h;return EJ().w((function(e){for(;;)switch(e.n){case 0:if(n=t.from,r=t.to,i=t.model,o=t.container,a=t.skipAttributeExpressions,s=t.onChange,i){e.n=1;break}return e.a(2);case 1:return e.n=2,i.getEffectiveProperties();case 2:return l=e.v,c=l.qHyperCubeDef[o].findIndex((function(e){return e.qDef.cId===n})),u=l.qHyperCubeDef.qLayoutExclude.qHyperCubeDef[o].findIndex((function(e){return e.qDef.cId===r})),d=uZ(!0,{},l),f=d.qHyperCubeDef[o][c],(h=d.qHyperCubeDef.qLayoutExclude.qHyperCubeDef[o][u]).qAttributeDimensions=f.qAttributeDimensions,f.qAttributeDimensions=[],a||(h.qAttributeExpressions=f.qAttributeExpressions,f.qAttributeExpressions=[]),d.qHyperCubeDef[o][c]=h,d.qHyperCubeDef.qLayoutExclude.qHyperCubeDef[o][u]=f,s({fromItem:f,toItem:h,oldProperties:l,newProperties:d,model:i}),e.n=3,dZ({model:i,properties:d});case 3:i.colorSupport&&i.colorSupport.colorByUpdater(d,"qHyperCubeDef."),vZ({model:i,oldProperties:l,newProperties:d});case 4:return e.a(2)}}),e)})))).apply(this,arguments)}function wZ(e){var t=e.callbacks,n=e.data,r=e.resources,i=e.settings,o=t.onChange,a=n.infos,s=r.app,l=r.model,c=r.translator,u=i.skipAttributeExpressions;return a.map((function(e,t){var n=e.cId,r=e.qGrouping,i=e.qGroupFallbackTitles,a=e.qGroupPos,d=e.qFallbackTitle,f=e.qLocked,h=e.title,p="C"===r,m="H"===r,g="N"===r,y="number"==typeof e.explicitColumn?e.explicitColumn:t,v=function(t,n){p&&s&&s.getDimension&&s.getDimension(e.qLibraryId).then((function(e){null==e||e[t](n)})).catch((function(){}))};return{meta:{isCyclic:p,isDrillDown:m,isLocked:!!f,isNormal:g},info:{id:n,key:"".concat(n,"-").concat(a),text:g?d:i[a],position:a,breadcrumbs:i.slice(0,e.qGroupPos),group:{name:h,items:i.slice(0,m?e.qGroupPos+1:i.length).map((function(e,t){return{id:"".concat(n,"-item-").concat(t),text:e,current:a===t,index:t}}))},tooltip:g?void 0:c.get(p?"Tooltip.dimensions.cyclic":"Tooltip.dimensions.drilldown")},action:{changeTo:function(e){var t=e.id;return bZ({from:n,to:t,container:"qDimensions",model:l,skipAttributeExpressions:u,onChange:o})},drillUp:function(e){var t=e.steps;m&&l&&(null==l||l.drillUp("/qHyperCubeDef",y,t))},stepCycle:function(){return v("stepCycle",1)},setActiveField:function(e){var t=e.fieldIndex;return v("setActiveField",t)}}}}))}function kZ(e){var t=e.callbacks,n=e.data,r=e.resources,i=e.settings,o=t.onChange,a=n.infos,s=r.model,l=i.skipAttributeExpressions;return a.map((function(e){var t=e.cId,n=e.qFallbackTitle;return{meta:{isNormal:!0},info:{id:t,key:t,text:n},action:{changeTo:function(e){var n=e.id;return bZ({from:t,to:n,container:"qMeasures",model:s,skipAttributeExpressions:l,onChange:o})}}}}))}function SZ(e){var t=e.callbacks,n=e.data,r=e.dock,i=e.key,o=e.rect,a=e.resources,s=e.settings,l=e.state,c=e.styling,u=function(e){var t=e.dock,n=e.rect,r={pointerEvents:"auto",display:"flex",justifyContent:"center",alignItems:"center",height:"100%"};return"left"!==t&&"right"!==t||(r.width="".concat(n.height,"px"),r.height="".concat(n.width,"px"),r.transformOrigin="top left"),"left"===t&&(r.transform="rotate(-90deg) translate(-".concat(n.height,"px, 0)")),"right"===t&&(r.transform="rotate(90deg) translate(0, -".concat(n.width,"px)")),r}({dock:r,rect:o}),d=function(e){var t=e.callbacks,n=e.data,r=e.dock,i=e.key,o=e.resources,a=e.settings,s=e.state,l=e.styling,c=n.alternatives,u=n.infos,d=o.app,f=o.cache,h=o.model,p=a.isRTL,m=a.isSnapshot,g=a.type,y=function(e){var t=e.dock;return"top"!==t&&"bottom"!==t||!e.isRTL?"ltr":"rtl"}({dock:r,isRTL:p}),v=function(e){var t=e.cache,n="axis-title-auto-focus_"+e.key;return{queueFor:function(e){var r;return null==t||null===(r=t.set)||void 0===r?void 0:r.call(t,n,{focus:!0,index:e})},shouldFor:function(e){var r,i,o=null==t||null===(r=t.get)||void 0===r?void 0:r.call(t,n),a=!(null==o||!o.focus||(null==o?void 0:o.index)!==e);return a&&(null==t||null===(i=t.set)||void 0===i||i.call(t,n,{focus:!1})),a}}}({cache:f,key:i}),b=("dimension"===g?wZ:kZ)({callbacks:t,data:n,resources:o,settings:a});"rtl"===y&&b.reverse();var x={allowed:{change:!(null==h||!h.modifiers||null==h||!h.colorSupport||m),reload:!!d&&!m},hasAlternatives:!!c.length,hasCyclic:b.some((function(e){return e.meta.isCyclic})),hasMultiple:u.length>1};return b.map((function(e,t){return CJ(CJ({data:n,layout:{direction:y},resources:{translator:o.translator},services:{focus:v},settings:a,state:s,styling:l},e),{},{meta:CJ(CJ(CJ({},x),e.meta),{},{index:t,isFirst:0===t,isLast:t===b.length-1})})}))}({callbacks:t,data:n,dock:r,key:i,resources:a,settings:s,state:l,styling:c});return rC.createElement("div",{style:u},d.map((function(e){return rC.createElement(rC.Fragment,{key:e.info.id},rC.createElement(lZ,{source:e}),!e.meta.isLast&&rC.createElement("span",{dir:e.layout.direction,style:CJ(CJ({},c.title),{},{lineHeight:"normal"})},", "))})))}var CZ,EZ='"Source Sans Pro", "Arial", "sans-serif"',MZ="12px",_Z=function(e){var t=e.rect,n=e.state,r=e.settings,i=r.callbacks,o=r.data,a=r.key,s=r.layout,l=r.resources,c=r.settings,u=r.style;return SZ({callbacks:i,data:o,dock:s.dock,key:a,rect:t,resources:l,settings:c,state:n,styling:u})},qZ={renderer:"react",require:["renderer"],disableTriggers:!0,key:"axis-title",defaultSettings:{callbacks:{onChange:function(){}},data:{alternatives:[],infos:[]},resources:{app:void 0,cache:void 0,model:void 0,selections:void 0,translator:void 0},settings:{isDisabled:function(){return!1},isRTL:!1,isSnapshot:!1,skipAttributeExpressions:!1,type:"dimension"},style:{title:{color:"#333",fontFamily:EZ,fontSize:MZ},popover:{color:"#595959CC",fontFamily:EZ,fontSize:MZ}}},preferredSize:function(){var e=this.settings,t=e.data,n=e.settings,r=e.style,i=t.alternatives,o=n.type,a=r.title,s=a.fontSize,l=a.fontFamily,c=i.length||"measure"!==o?28:20,u=this.registries.renderer("svg")().measureText({text:"M",fontSize:s,fontFamily:l}).height;return Math.max(c,u)},created:function(){var e=this;this.state={inSelections:!1},this.listeners={onSelectionsActivated:function(){e.state.inSelections=!0,e.renderer.render(_Z(e))},onSelectionsDeactivated:function(){e.state.inSelections=!1}}},beforeMount:function(){var e=this.settings.resources.selections;e&&(e.addListener("activated",this.listeners.onSelectionsActivated),e.addListener("deactivated",this.listeners.onSelectionsDeactivated),e.addListener("canceled",this.listeners.onSelectionsDeactivated))},render:function(){return _Z(this)},beforeUnmount:function(){var e=this.settings.resources.selections;e&&(e.removeListener("activated",this.listeners.onSelectionsActivated),e.removeListener("deactivated",this.listeners.onSelectionsDeactivated),e.removeListener("canceled",this.listeners.onSelectionsDeactivated))}},DZ=function(e){var t=e.dock,n=e.settings.label,r="center"===t,i=r?{}:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"};return rC.createElement("span",{style:i,title:n},r?n:"* ".concat(n))},RZ={renderer:"react",disableTriggers:!0,key:"disclaimer",defaultSettings:{settings:{isRTL:!1,label:void 0},style:{fontFamily:'"Source Sans Pro", "Arial", "sans-serif"'}},preferredSize:function(){return 22},render:function(){var e=this.rect,t=this.settings,n=t.layout,r=t.settings,i=t.style;return function(e){var t=e.dock,n=e.rect,r=e.settings,i=e.styling,o=function(e){var t=e.dock;return"top"!==t&&"bottom"!==t||!e.isRTL?"ltr":"rtl"}({dock:t,isRTL:r.isRTL}),a=function(e){var t=e.dock,n=e.rect,r={pointerEvents:"auto",display:"flex",justifyContent:"center",alignItems:"center",color:"#7b7a78",fontStyle:"italic",fontSize:"13px",fontFamily:e.styling.fontFamily};return"left"===t&&(r.width="".concat(n.height,"px"),r.transform="rotate(-90deg) translate(-".concat(n.height,"px, 0)"),r.transformOrigin="top left"),"right"===t&&(r.width="".concat(n.height,"px"),r.transform="rotate(90deg) translate(0, -".concat(n.width,"px)"),r.transformOrigin="top left"),"center"===t&&(r.width="".concat(n.width,"px"),r.height="".concat(n.height,"px"),r.color="#595959",r.fontStyle="normal",r.fontSize="1.2em",r.textAlign="center"),"bottom"!==t&&"top"!==t||(r.justifyContent="flex-start",r.alignItems="flex-start"),r}({dock:t,rect:n,styling:i});return rC.createElement("div",{dir:o,style:a},rC.createElement(DZ,{dock:t,settings:r}))}({dock:n.dock,rect:e,settings:r,styling:i})}},TZ={},OZ=function(){if(CZ)return TZ;CZ=1;var e=Kj;return TZ.createRoot=e.createRoot,TZ.hydrateRoot=e.hydrateRoot,TZ}(),PZ=RK({spacing:8,shadows:["none","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)"],transitions:{easing:{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)"},duration:{standard:300,short:250,enteringScreen:225,shorter:200,leavingScreen:195,shortest:150,complex:375}},typography:{fontSize:14,fontWeightLight:300,fontWeightRegular:400,fontWeightMedium:600,fontWeightBold:700,htmlFontSize:14,fontFamily:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif",button:{fontWeight:600,fontSize:14,textTransform:"none"}},shape:{borderRadius:3},components:{MuiButtonBase:{defaultProps:{disableRipple:!0,disableTouchRipple:!0,focusVisibleClassName:"qcm-focus-visible"}},MuiButton:{defaultProps:{color:"inherit",disableRipple:!0,focusVisibleClassName:"qcm-focus-visible"},styleOverrides:{root:{height:"32px",lineHeight:"16px",minWidth:"24px",fontSize:141,borderRadius:3,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:"rgba(0, 0, 0, 0.1)"},"&.Mui-focusVisible":{boxShadow:"inset 0 0 0 2px ".concat("#177FE6")}},outlined:{border:"1px solid rgba(0, 0, 0, 0.15)"},sizeSmall:{fontSize:12,height:"24px","& > svg:only-child, & > i:only-child":{marginLeft:"-7px",marginRight:"-7px"}},sizeLarge:{fontSize:16,height:"40px",lineHeight:"20px","& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},textSizeSmall:{padding:"4px 11px"},textSizeLarge:{padding:"10px 19px"}},variants:[]},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiListItemButton:{styleOverrides:{root:{fontSize:14,height:"32px"}}},MuiListItemIcon:{styleOverrides:{root:{color:"#404040",minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:14,color:"#404040",lineHeight:"16px",fontWeight:600},secondary:{fontSize:12,color:"#737373",fontWeight:400,lineHeight:"16px"}}}}});function NZ(e){var t={x:0,y:0,width:0,height:0,scaleRatio:{x:1,y:1},margin:{left:0,top:0}},n=e||{},r=n.x,i=n.y,o=n.width,a=n.height,s=n.scaleRatio,l=n.margin;return t.x=Number.isNaN(r)||void 0===r?t.x:r,t.y=Number.isNaN(i)||void 0===i?t.y:i,t.width=Number.isNaN(o)||void 0===o?t.width:o,t.height=Number.isNaN(a)||void 0===a?t.height:a,void 0!==s&&(t.scaleRatio.x=Number.isNaN(s.x)?t.scaleRatio.x:s.x,t.scaleRatio.y=Number.isNaN(s.y)?t.scaleRatio.y:s.y),void 0!==l&&(t.margin.left=Number.isNaN(l.left)?0:l.left,t.margin.top=Number.isNaN(l.top)?0:l.top),t}function AZ(){var e={rendererBox:NZ(),container:void 0,root:void 0},t=function(){var t,n;null===(t=e.root)||void 0===t||t.unmount(),null===(n=e.container)||void 0===n||null===(n=n.parentElement)||void 0===n||n.removeChild(e.container),e.container=void 0};return{size:function(t){return t&&(e.rendererBox=NZ(t)),e.rendererBox},element:function(){return e.container},appendTo:function(t){return e.container||(e.container=document.createElement("div"),e.container.style.position="absolute",e.container.style["-webkit-font-smoothing"]="antialiased",e.container.style["-moz-osx-font-smoothing"]="antialiased",e.container.style.pointerEvents="none",e.root=OZ.createRoot(e.container)),t.appendChild(e.container),e.container},setKey:function(t){e.container&&e.container.setAttribute("data-key",t)},render:function(t){if(!e.container)return!1;var n=e.rendererBox,r=n.scaleRatio.x,i=n.scaleRatio.y;return e.container.style.left="".concat(Math.round(n.margin.left+n.x*r),"px"),e.container.style.top="".concat(Math.round(n.margin.top+n.y*i),"px"),e.container.style.width="".concat(Math.round(n.width),"px"),e.container.style.height="".concat(Math.round(n.height),"px"),e.container.style.transform="scale(".concat(r,", ").concat(i,")"),e.container.style.transformOrigin="top left",e.root.render(function(e){var t=e.nodes;return rC.createElement(rC.StrictMode,null,rC.createElement(fG,{theme:PZ},t))}({nodes:t})),!0},findShapes:function(){return[]},itemsAt:function(){return[]},clear:function(){t()},destroy:function(){t()}}}function IZ(e){return Ry(e).l<70}function LZ(e,t){const n=Ry(e).l/100,r=Ry(t).l/100;return n>r?(n+.05)/(r+.05):(r+.05)/(n+.05)}function zZ(e,t){return{x:t.x+e.r*Math.sin(e.a),y:t.y-e.r*Math.cos(e.a)}}var FZ={require:["chart","settings"],defaultSettings:{settings:{},style:{}},render(){return function({chart:e,settings:t}){const n=e.component(t.component);if(!n)return[];const r=e.findShapes(t.selector).filter((e=>e.key===t.component));if(r.length<2)return[];if(n.settings.settings.slice.cornerRadius>0||n.settings.settings.slice.strokeWidth>0)return[];const i=[];let o=r[r.length-1];for(let e=0;e<r.length;e+=1){const t=r[e],n=o.attrs.fill,a=t.attrs.fill;if(LZ(a,n)<=1.2){const{start:e,offset:n}=t.desc.slice;let{innerRadius:r,outerRadius:s}=t.desc.slice;if(r=Math.max(r,o.desc.slice.innerRadius),s=Math.min(s,o.desc.slice.outerRadius),s>r){const t=zZ({r:s,a:e},n),o=zZ({r:r,a:e},n);i.push({type:"line",x1:t.x,y1:t.y,x2:o.x,y2:o.y,strokeWidth:1,opacity:.4,stroke:IZ(a)?"#ccc":"#333"})}}o=t}return i}({chart:this.chart,rect:this.rect,style:this.style,settings:this.settings.settings})}};function jZ(e,t=!0){let n="";for(let t=0;t<e.length;t++){const r=e[t];n+=0===t?`M${r.x} ${r.y}`:`L${r.x} ${r.y}`,n+=" "}return t&&(n+="Z"),n}function $Z(e){const{size:t,angle:n}=e,r={x:e.x,y:e.y},i=t/2,o=e.x-i,a=e.y-i;let s=[{x:o,y:a+t},{x:o+i,y:a},{x:o+t,y:a+t},{x:o,y:a+t}];return s=s.map((e=>function(e,t,n={x:0,y:0}){const r=Math.cos(t),i=Math.sin(t),o=(s=n,{x:(a=e).x-s.x,y:a.y-s.y});var a,s;return function(e,t){return{x:e.x+t.x,y:e.y+t.y}}({x:r*o.x-i*o.y,y:i*o.x+r*o.y},n)}(e,n,r))),{type:"path",fill:e.fill,d:jZ(s)}}var HZ={require:["chart"],defaultSettings:{settings:{},style:{}},render(){return function({chart:e,settings:t}){if(!e.component(t.component))return[];const n=e.findShapes(t.selector).filter((e=>e.key===t.component));if(n.length<2)return[];const r=[];for(let e=0;e<n.length;e+=1){const a=n[e];if(a.data.radius.value<0){const{start:e,end:n,offset:s}=a.desc.slice,l=(e+n)/2,c=(i={r:t.offset,a:l},{x:(o=s).x+i.r*Math.sin(i.a),y:o.y-i.r*Math.cos(i.a)}),u=$Z({size:t.size,fill:t.fill,angle:l+Math.PI,...c});u.data={...a.data,_share:a.desc.share,_fillColor:a.attrs.fill},r.push(u)}}var i,o;return r}({chart:this.chart,rect:this.rect,style:this.style,settings:this.settings.settings})}};function VZ(){const e=vp();return e.use(ag),e.use(function(e){if("function"!=typeof e.interaction)return t=>{t.interaction("hammer",cg(e))};e.interaction("hammer",cg(Hammer))}(a)),e.use((function(e){e.renderer("react",RH()),e.component("data-title",_H(e.renderer("svg")()))})),e.renderer("react-qcm",AZ),e.component("axis-title",qZ),e.component("disclaimer",RZ),e.component("pie-dividers",FZ),e.component("negative-indicators",HZ),e}var BZ={};function WZ(){WZ.init.call(this)}BZ.isObject=function(e){return"object"==typeof e&&null!==e},BZ.isNumber=function(e){return"number"==typeof e},BZ.isUndefined=function(e){return void 0===e},BZ.isFunction=function(e){return"function"==typeof e};var UZ=WZ;WZ.EventEmitter=WZ,WZ.prototype._events=void 0,WZ.prototype._maxListeners=void 0,WZ.defaultMaxListeners=10,WZ.init=function(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0},WZ.prototype.setMaxListeners=function(e){if(!BZ.isNumber(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},WZ.prototype.emit=function(e){var t,n,r,i,o,a;if(this._events||(this._events={}),"error"===e&&!this._events.error)throw(t=arguments[1])instanceof Error?t:Error('Uncaught, unspecified "error" event.');if(n=this._events[e],BZ.isUndefined(n))return!1;if(BZ.isFunction(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:for(r=arguments.length,i=new Array(r-1),o=1;o<r;o++)i[o-1]=arguments[o];n.apply(this,i)}else if(BZ.isObject(n)){for(r=arguments.length,i=new Array(r-1),o=1;o<r;o++)i[o-1]=arguments[o];for(r=(a=n.slice()).length,o=0;o<r;o++)a[o].apply(this,i)}return!0},WZ.prototype.addListener=function(e,t){var n;if(!BZ.isFunction(t))throw TypeError("listener must be a function");(this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,BZ.isFunction(t.listener)?t.listener:t),this._events[e]?BZ.isObject(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,BZ.isObject(this._events[e])&&!this._events[e].warned)&&((n=BZ.isUndefined(this._maxListeners)?WZ.defaultMaxListeners:this._maxListeners)&&n>0&&this._events[e].length>n&&(this._events[e].warned=!0,BZ.isFunction(console.error)&&console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),BZ.isFunction(console.trace)&&console.trace()));return this},WZ.prototype.on=WZ.prototype.addListener,WZ.prototype.once=function(e,t){if(!BZ.isFunction(t))throw TypeError("listener must be a function");var n=!1;function r(){this.removeListener(e,r),n||(n=!0,t.apply(this,arguments))}return r.listener=t,this.on(e,r),this},WZ.prototype.removeListener=function(e,t){var n,r,i,o;if(!BZ.isFunction(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(i=(n=this._events[e]).length,r=-1,n===t||BZ.isFunction(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(BZ.isObject(n)){for(o=i;o-- >0;)if(n[o]===t||n[o].listener&&n[o].listener===t){r=o;break}if(r<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(r,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},WZ.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(n=this._events[e],BZ.isFunction(n))this.removeListener(e,n);else if(Array.isArray(n))for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},WZ.prototype.listeners=function(e){return this._events&&this._events[e]?BZ.isFunction(this._events[e])?[this._events[e]]:this._events[e].slice():[]},WZ.listenerCount=function(e,t){return e._events&&e._events[t]?BZ.isFunction(e._events[t])?1:e._events[t].length:0};var YZ=r(UZ);function KZ(){const e={};var t;return t=e,Object.keys(YZ.prototype).forEach((e=>{t[e]=YZ.prototype[e]})),YZ.init(t),e.lasso={active:()=>!1},e.select={on:e.on,removeListener:e.removeListener},e}function GZ({picasso:t}){var n;const r=e.useOptions(),i=e.useElement(),o=e.useSelections(),[a,s]=e.useState(),l=KZ(),c=e.useLayout(),u=e.useTranslator(),d=!(null===(n=c.qSelectionInfo)||void 0===n||!n.qInSelections),[f,h]=e.useState(!1);return l.lasso=function({layout:e,isInSelections:t,isLassoActionActive:n,setIsLassoActionActive:r,translator:i}){var o;return{active:n,label:i.get(n?"Tooltip.ToggleOffLassoSelection":"Tooltip.ToggleOnLassoSelection"),hidden:!t||!(null===(o=e.qHyperCube)||void 0===o||null===(o=o.qDimensionInfo)||void 0===o||null===(o=o[0])||void 0===o||!o.qIsOneAndOnlyOne),action(e){r("boolean"==typeof e?e:!n)},icon:{shapes:[{type:"path",attrs:{d:"M15.9488039,5.20769129 C16.0487326,6.70662306 15.3492311,8.30548361 14.050157,9.30477145 C12.651154,10.5039169 10.8524359,10.8037032 8.85386017,10.4039881 L7.3549284,10.0042729 L5.75606786,9.70448659 C5.75606786,9.90434416 5.65613907,10.0042729 5.4562815,10.2041305 C5.05656637,10.6038456 4.55692244,10.8037032 4.05727852,10.8037032 C3.75749217,10.8037032 3.45770582,10.7037744 3.15791946,10.6038456 C3.05799068,10.903632 3.15791946,11.2034184 3.45770582,11.7030623 C5.05656637,14.0014243 3.85742095,15.9000712 3.75749217,16 L2.2585604,15.3004985 C2.2585604,15.2005697 2.95806189,14.0014243 1.95877405,12.6024213 C1.6589877,12.0028486 1.15934378,11.0035608 1.55905891,10.0042729 C1.6589877,9.80441537 1.75891648,9.6045578 1.95877405,9.40470024 C1.6589877,8.90505631 1.55905891,8.30548361 1.85884527,7.7059109 C1.55905891,7.40612455 1.25927256,7.1063382 1.15934378,6.70662306 C0.859557424,5.90719279 0.959486209,4.5081898 1.6589877,3.30904439 C1.95877405,2.6095429 2.55834676,2.0099702 3.15791946,1.51032628 C3.95734974,0.91075357 4.95663758,0.610967217 6.15578299,0.311180864 C9.05371774,-0.388320626 11.9516525,0.111323295 13.9502282,1.61025506 C15.1493736,2.50961412 15.8488751,3.80868831 15.9488039,5.20769129 Z M13.0508691,8.10562604 C13.8502994,7.40612455 14.3499433,6.40683671 14.3499433,5.30762008 C14.2500145,4.20840345 13.550513,3.40897318 12.9509403,2.90932926 C12.1515101,2.40968533 11.252151,2.0099702 10.1529344,1.81011263 C8.95378895,1.61025506 7.75464354,1.71018384 6.45556935,1.91004141 C4.75678001,2.30975655 3.65756338,3.00925804 3.05799068,4.10847467 C2.55834676,5.00783373 2.65827554,5.90719279 2.75820433,6.20697914 C2.75820433,6.30690792 2.85813311,6.40683671 3.05799068,6.40683671 C3.15791946,6.40683671 3.25784825,6.40683671 3.35777703,6.40683671 C3.45770582,6.40683671 3.45770582,6.40683671 3.45770582,6.40683671 L3.5576346,6.40683671 L3.65756338,6.40683671 C4.65685123,6.40683671 5.4562815,6.90648063 5.85599664,7.80583969 L5.85599664,8.00569726 C6.35564056,8.10562604 7.05514205,8.30548361 7.75464354,8.50534118 L9.25357531,8.90505631 C10.0530056,9.0049851 10.7525071,9.0049851 11.4520086,8.80512753 C12.0515813,8.70519875 12.5512252,8.40541239 13.0508691,8.10562604 Z"}}]}}}({layout:c,isInSelections:d,isLassoActionActive:f,setIsLassoActionActive:h,translator:u}),e.useAction((()=>(a&&(a.interactions.lasso.active=()=>f),{...l.lasso})),[a,f,d,u.language()]),e.useEffect((()=>{i.style.overflow="hidden";const e=t({renderer:{prio:[r.renderer||"canvas"]}}),n=e.chart({element:i,data:[],settings:{}}),a=Rk({chart:n,actions:l,selections:o,config:{selectionActions:!1}});a.setLayout(c),a.setBrushAliases({colorField:"qDimensionInfo/0/qAttrDimInfo/0"});const u=function(e){var t=rv({},e),n={},r={},i=!1,o={get:function(e){return t[e]},set:function(e,o){var a=t[e];!i&&n[e]?t[e]=n[e](o,a):t[e]=o,!i&&r[e]&&r[e](t[e],a)},preventSet:function(e,t){i=!0,o.set(e,t),i=!1},intercept:function(e,t){n[e]=t},onChanged:function(e,t){r[e]=t}};return o}({legendScrollOffset:0,rotation:0});u.intercept("rotation",(e=>(u.get("rotation")+e)%(2*Math.PI))),u.onChanged("rotation",(()=>{n.update({partialData:!0})}));const d=Sx();return l.on("selections-start",(()=>{n.brush("selection").start()})),s({picasso:e,chart:n,selectionService:a,viewState:u,viewCache:d,interactions:l}),()=>{a.destroy(),n.destroy(),l.removeAllListeners(),delete l.select,u.intercept("rotation",void 0),u.onChanged("rotation",void 0)}}),[]),a}const XZ={CUSTOM:{EXPRESSION:"customTooltipExpression",TITLE:"customTooltipTitle",DESCRIPTION:"customTooltipDescription",QUARANTINE:"customTooltip",IMAGES:"customTooltipImages"},CHART:{CONTAINER_ID:"tooltipContainerId",STATE:"customTooltipSessionState",CHART_OBJECT_ID:"customTooltipSessionObjectId",CHART_PARENT_TYPE:"TooltipChartParent",CHART_CHILD_TYPE:"TooltipChart",STYLE:{small:"140px",medium:"200px",large:"340px"}}};function JZ(e){const t=e.split("/");return"qmem:"===t[0]&&""===t[1]}const ZZ={getImageSize(e,t){let n;function r(){n&&(clearTimeout(n),n=null)}function i(e){const t=e;t.onload=null,t.onerror=null,r()}const o={small:50,medium:200,large:340,original:340};return new Promise((a=>{const s=new Image;s.referrerPolicy="no-referrer",s.onload=()=>{let e;const{height:n,width:l}=s,c=o[t]*(n>l?1:n/l),u=o[t]*(l>n?1:l/n);!n||!l||0===n&&0===l?(e={height:20,width:20,imageError:!0},i(s)):"original"===t?(e={height:Math.min(c,n),width:Math.min(u,l)},r()):(e={height:c,width:u},r()),a(e)},s.onerror=()=>{i(s),a({height:20,width:20,imageError:!0})},s.src=e,n=setTimeout((()=>{i(s),a({height:20,width:20,imageError:!0})}),3e3)}))}};async function QZ(e,t,n){let r=e.ref.qStaticContentUrl.qUrl;const i=function(e){var t,n,r;let i,o,a,s,l,c;if(e&&(null!==(t=e.session)&&void 0!==t&&t.options||null!==(n=e.enigmaModel)&&void 0!==n&&null!==(n=n.session)&&void 0!==n&&n.sessionConfig||null!==(r=e.session)&&void 0!==r&&null!==(r=r.config)&&void 0!==r&&r.url)){var u;if(i=e.session.options||(null===(u=e.enigmaModel)||void 0===u?void 0:u.session.sessionConfig),!i){var d;i=null===(d=e.session)||void 0===d?void 0:d.config;const t=new URL(i.url);i.host=t.hostname,i.port=t.port,i.isSecure="wss:"===t.protocol}return c=void 0!==i.secure?i.secure:i.isSecure,o=c?"https://":"http://",a=i.host||"localhost",s=i.port?`:${i.port}`:"",l=i.prefix?i.prefix:"/","/"!==l[l.length-1]&&(l=`${l}/`),o+a+s+l}return""}(n);i&&(!function(e,t){const n=e.replace(t,"").replace(/^\.\.\//i,"/");n[0]}(r,i),r=r.replace(/"/g,'\\"'),r=r.replace(/'/g,"\\'"),r=function(e,t){return t+("/"===e[0]?e.substr(1):e)}(r,i));const{height:o,width:a,imageError:s}=await ZZ.getImageSize(r,t);return{src:r,size:t,height:o,width:a,imageError:s}}async function eQ(e,t,n,r){var i,o,a;const{app:s,flags:l}=t,c=null===(i=e.layout)||void 0===i||null===(i=i.tooltip)||void 0===i?void 0:i.imageComponents;if(!c)return[];const[u]=c,d=u.size||"small",f=u.type||"media";let h=-1;for(let e=0;e<n.length;e++)if(n[e].cId===u.cId){h=e;break}const p=(null===(o=r.data)||void 0===o||null===(o=o.customTooltipAttrExps)||void 0===o?void 0:o.value)||[];let m;if(-1!==h&&p[h]&&(m=p[h]),"media"===f&&null!==(a=u.ref)&&void 0!==a&&null!==(a=a.qStaticContentUrl)&&void 0!==a&&a.qUrl)return QZ(u,d,s);if("url"===f)return async function(e,t,n,r,i){let o,a=n.ref;if(i&&i.label&&(a=i.label),t.isEnabled("IMAGE_BUNDLE_LOAD")&&null!=e&&e.getImage&&JZ(a))try{const t=`data:image/png;base64, ${await e.getImage(a)}`,{height:n,width:i,imageError:s}=await ZZ.getImageSize(t,r);o={src:t,size:r,height:n,width:i,imageError:s}}catch(e){}else{const{height:e,width:t,imageError:n}=await ZZ.getImageSize(a,r);o={src:a,size:r,height:e,width:t,imageError:n}}return o}(s,l,u,d,m);if(l.isEnabled("IMAGE_BUNDLE_LOAD")&&"field"===f&&m&&m.label){return async function(e,t,n,r){let i;const o=r.label,a=`qmem://${t.qFallbackTitle}/${o}`;if(JZ(a))try{const t=await e.getImage(a);if(t){const e=`data:image/png;base64, ${t}`,{height:r,width:o,imageError:a}=await ZZ.getImageSize(e,n);i={src:e,size:n,height:r,width:o,imageError:a}}}catch(e){}return i}(s,n[h],d,m)}return[]}const tQ={async addImagesToTheNodes({customTooltipModel:e,nodes:t,attrExps:n,opts:r}){const i=t,o=[];for(let t=0;t<i.length;t++)o.push(eQ(e,r,n,i[t]));const a=await Promise.all(o);for(let e=0;e<i.length;e++)i[e].data.customTooltipImages=[a[e]];return i},checkIfPromisesExist({customTooltipModel:e}){var t;const n=null===(t=e.layout)||void 0===t||null===(t=t.tooltip)||void 0===t?void 0:t.imageComponents;return!!n&&n.length>0}},nQ={async handlePromises({customTooltipModel:e,nodes:t,attrExps:n,opts:r}){let i=t;return i=await tQ.addImagesToTheNodes({customTooltipModel:e,nodes:t,attrExps:n,opts:r}),i},checkIfPromisesExist:({customTooltipModel:e})=>tQ.checkIfPromisesExist({customTooltipModel:e})};const rQ=(e,t)=>{var n,r,i;const o=null==e||null===(n=e.qHyperCubeDef)||void 0===n?void 0:n.qDimensions,a=null==e||null===(r=e.qHyperCubeDef)||void 0===r?void 0:r.qMeasures,s=null==e||null===(i=e.qHyperCubeDef)||void 0===i?void 0:i.qInterColumnSortOrder,l=t;return{qInfo:{qType:XZ.CHART.CHART_PARENT_TYPE,qId:XZ.CHART.CHART_OBJECT_ID},qHyperCubeDef:{qDimensions:o,qMeasures:a,qInterColumnSortOrder:s,qInitialDataFetch:[{qWidth:0,qHeight:0}]},qStateName:l}},iQ=e=>{var t;const n=null===(t=e.tooltip)||void 0===t||null===(t=t.chart)||void 0===t||null===(t=t.object)||void 0===t?void 0:t.refId;return{qInfo:{qType:XZ.CHART.CHART_CHILD_TYPE},qExtendsId:n}};const oQ={createContainer:({ctx:e,layout:t})=>{var n;if(!((null===(n=t.qHyperCube)||void 0===n||null===(n=n.qDimensionInfo)||void 0===n?void 0:n.length)<=0))return function(e,t){var n,r;const i=null!==(n=null===(r=t.tooltip)||void 0===r||null===(r=r.chart)||void 0===r||null===(r=r.style)||void 0===r?void 0:r.size)&&void 0!==n?n:"medium",o=XZ.CHART.STYLE[i];return[{content:[e.h("div",{style:{display:"flex",width:o,height:o,backgroundColor:"#FFFFFF",borderRadius:"5px",padding:"2px",color:"#595959"},colspan:2,id:XZ.CHART.CONTAINER_ID})],colspan:2,style:{"text-align":e.rtl?"right":"left","max-width":o}},{}]}(e,t)},show:async({app:e,properties:t,selectedNodes:n,dimIndex:r,customTooltipModel:i,rtl:o})=>{var a;const s=i,l=null==t||null===(a=t.tooltip)||void 0===a||null===(a=a.chart)||void 0===a||null===(a=a.object)||void 0===a?void 0:a.refId;if(null!=s&&s.embed&&e.removeSessionAlternateState&&e.addSessionAlternateState&&l&&!(t.qHyperCubeDef.qDimensions.length<=0)){await oQ.hide({app:e,customTooltipModel:i});try{await async function({app:e,properties:t,customTooltipModel:n}){const r=n,i=XZ.CHART.STATE,o=t.qStateName;r.miniChartToken.alternateState||(r.miniChartToken.alternateState=i,await e.addSessionAlternateState(i,o),r.miniChartToken.alternateState=i)}({app:e,properties:t,customTooltipModel:i});const a=await async function({app:e,properties:t,customTooltipModel:n}){var r;const i=n;null!==(r=i.miniChartToken.sessionObj)&&void 0!==r&&r.id&&await e.destroySessionObject(i.miniChartToken.sessionObj.id);const o=XZ.CHART.STATE,a=rQ(t,o),s=await e.createSessionObject(a),l=iQ(t);if(s.id!==XZ.CHART.CHART_OBJECT_ID)return void e.destroySessionObject(s.id);i.miniChartToken.sessionObj=s;const c=await s.createChild(l);if(i.miniChartToken.sessionObj&&i.miniChartToken.sessionObj.id===s.id)return i.miniChartToken.model=c,c;e.destroySessionObject(s.id)}({app:e,properties:t,customTooltipModel:i});if(s.miniChartToken.alternateState&&s.miniChartToken.sessionObj&&a){var c,u,d,f;const e=n.length>0&&void 0!==(null===(c=n[0].data)||void 0===c?void 0:c.value)?[null===(u=n[0].data)||void 0===u?void 0:u.value]:[],a=void 0!==r?r:t.qHyperCubeDef.qDimensions.length-1;if(2===t.qHyperCubeDef.qDimensions.length&&void 0===r&&n.length>0){var h,p;const e=null!==(h=n[0].data.selectionOuterDimension)&&void 0!==h?h:n[0].data.selectionDimension;if(null!=e&&null!==(p=e.source)&&void 0!==p&&p.field){var m;const t=null==e||null===(m=e.source)||void 0===m?void 0:m.field.split("/"),n=t[t.length-1],r=void 0!==e.value?[e.value]:[];r.length>0&&void 0!==n&&s.miniChartToken.sessionObj.selectHyperCubeValues("/qHyperCubeDef",Number(n),r,!1)}}e.length>0&&s.miniChartToken.sessionObj.selectHyperCubeValues("/qHyperCubeDef",a,e,!1);const l=document.getElementById(XZ.CHART.CONTAINER_ID),g={direction:o?"rtl":"ltr",isReadonly:!0,isPopover:!0,navigation:!1,selections:!1};s.miniChartToken.vis=await i.embed.render({element:l,model:s.miniChartToken.model,options:g,id:null===(d=s.miniChartToken.model)||void 0===d?void 0:d.id,type:null===(f=s.miniChartToken.model)||void 0===f?void 0:f.genericType})}}catch(t){await oQ.hide({app:e,customTooltipModel:i})}}},hide:async({app:e,customTooltipModel:t})=>{const n=t;null!=n&&n.embed&&(oQ.destroyVisualization({customTooltipModel:t}),await e.destroySessionObject(XZ.CHART.CHART_OBJECT_ID),n.miniChartToken.sessionObj=void 0,await async function({app:e,customTooltipModel:t}){const n=t,r=XZ.CHART.STATE;n.miniChartToken.alternateState=void 0,await e.removeSessionAlternateState(r)}({app:e,customTooltipModel:t}))},destroyVisualization:({customTooltipModel:e})=>{var t;const n=e;"function"==typeof(null===(t=n.miniChartToken)||void 0===t||null===(t=t.vis)||void 0===t?void 0:t.destroy)&&(n.miniChartToken.vis.destroy(),n.miniChartToken.vis=void 0)}};function aQ(e){const t=e.qHyperCubeDef?e.qHyperCubeDef.qDimensions:e.qHyperCube.qDimensionInfo;if(t&&t.length>0)return t}function sQ(){const{EXPRESSION:e,TITLE:t,DESCRIPTION:n,IMAGES:r}=XZ.CUSTOM,i={};return i[e]=!0,i[t]=!0,i[n]=!0,i[r]=!0,i}function lQ(e){const t=sQ();return e.filter((e=>t[e.id]))}const cQ={getNodes(e,t){const n=function(e,t){let n=0,r=0;e.center?(n+=e.center.x,r+=e.center.y):(n+=e.clientX,r+=e.clientY);const i=t.element.getBoundingClientRect();return{cx:n-i.left,cy:r-i.top}}(e,t);return t.shapesAt({x:n.cx,y:n.cy})},getDataNodes(e,t){let n,r=[];const i={container:{bar:!0,"bullet-axis":!0},circle:{"point-component":!0}};return t.forEach((t=>{var o,a,s,l;const c=null!==(o=null===(a=t.data)||void 0===a?void 0:a.selectionDimension)&&void 0!==o?o:t.data;if(!c||null!==(s=t.data)&&void 0!==s&&s.customTooltipAttrExps||i[t.type]){if(null!==(l=t.data)&&void 0!==l&&l.customTooltipAttrExps&&!t.data.customTooltipImages){const e=t;e.data.customTooltipImages=[],r.push(e)}}else{n||(n=[],Object.keys(i).forEach((t=>{n=n.concat(e.findShapes(t).filter((e=>e.data&&e.data.customTooltipAttrExps&&!e.data.customTooltipImages&&i[t][e.key])))})));const t=n.filter((e=>{var t,n;const r=null!==(t=null!==(n=e.data.stack)&&void 0!==n?n:e.data.selectionOuterDimension)&&void 0!==t?t:e.data.selectionDimension;return r&&r.value===c.value&&r.label===c.label}));t.length>0&&(r=r.concat(t[0]))}})),r},displayTooltip(e,t,{nodes:n,opts:r={},customTooltipModel:i,extractedNodes:o=[],hide:a}){if(i&&!a){const{layout:a,chart:s}=i,{attrExps:l}=cQ.getAttrExprData(a);o.length||n.length?nQ.handlePromises({customTooltipModel:i,nodes:cQ.getDataNodes(s,o.length>0?o:n),attrExps:l,opts:r}).then((()=>{t.emit("show",e,n.length?{nodes:n}:void 0)})):t.emit("show",e,n.length?{nodes:n}:void 0)}else{var s;null!=i&&null!==(s=i.miniChartToken)&&void 0!==s&&s.alternateState&&oQ.hide({app:r.app,customTooltipModel:i}),t.emit("hide")}},checkIfPromisesExist:({customTooltipModel:e})=>nQ.checkIfPromisesExist({customTooltipModel:e}),getAttrExps(e,t){var n;const r=t,i=null!==(n=e.qHyperCubeDef)&&void 0!==n&&n.qDimensions?"qAttributeExpressions":"qAttrExprInfo";return r[i]||(r[i]=[]),r[i]},getAttrExprData(e){var t;let n=[],r="";const i=(null===(t=e.qHyperCube)||void 0===t?void 0:t.qDimensionInfo)||[];if(i.length>0){var o;const t=i.length-1;n=(null===(o=e.qHyperCube)||void 0===o||null===(o=o.qDimensionInfo)||void 0===o||null===(o=o[t])||void 0===o?void 0:o.qAttrExprInfo)||[],r=`qDimensionInfo/${t}/qAttrExprInfo`}return{attrExps:n,fieldPath:r}},quarantineCustomTooltipAttrs(e,t={}){var n;if(!(null===(n=e.qLayoutExclude)||void 0===n||null===(n=n.quarantine)||void 0===n?void 0:n[XZ.CUSTOM.QUARANTINE])){!function(e,t){const n=t;let r=n.qLayoutExclude;r||(n.qLayoutExclude={quarantine:{}},r=n.qLayoutExclude),r.quarantine||(r.quarantine={}),r.quarantine[XZ.CUSTOM.QUARANTINE]=[],e.forEach((e=>{r.quarantine[XZ.CUSTOM.QUARANTINE].push(e)})),n.qLayoutExclude=r}(lQ(t.qAttributeExpressions||[]),e)}},unquarantineCustomTooltipAttrs(e){var t;const n=e;(null===(t=e.qLayoutExclude)||void 0===t||null===(t=t.quarantine)||void 0===t?void 0:t[XZ.CUSTOM.QUARANTINE])&&delete n.qLayoutExclude.quarantine[XZ.CUSTOM.QUARANTINE]},setAttrsFromQuarantine(e,t){const n=aQ(e);if(!n)return;const r=void 0!==t?t:n.length-1;if(!n[r])return;const i=this.getAttrExps(e,n[r]);if(0===lQ(i).length){var o;const t=(null===(o=e.qLayoutExclude)||void 0===o||null===(o=o.quarantine)||void 0===o?void 0:o.customTooltip)||[],n=[...i,...t],a=e;a.qHyperCubeDef?a.qHyperCubeDef.qDimensions[r].qAttributeExpressions=n:a.qHyperCube.qDimensionInfo[r].qAttrExprInfo=n}},moveCustomTooltipAttrs(e,t={},n=void 0){let r=[];const i=aQ(e)||[];[...i,t].forEach((e=>{const t=lQ(e.qAttributeExpressions||[]);t.length>0&&(r=t)}));const o=sQ(),a=i.map((e=>{const t=e,n=e.qAttributeExpressions||[];return t.qAttributeExpressions=n.filter((e=>!o[e.id])),t})),s=void 0!==n?n:a.length-1;a.length>0&&(a[s].qAttributeExpressions=a[s].qAttributeExpressions.concat(r));const l=e;e.qHyperCubeDef?l.qHyperCubeDef.qDimensions=a:l.qHyperCube.qDimensionInfo=a},addCallbackCustomTooltip(e){e.qHyperCubeDef.qDimensions.length>1?this.moveCustomTooltipAttrs(e):(this.setAttrsFromQuarantine(e),this.unquarantineCustomTooltipAttrs(e))},moveCallbackCustomTooltip(e,t){1===e.qHyperCubeDef.qDimensions.length&&(this.setAttrsFromQuarantine(e),this.unquarantineCustomTooltipAttrs(e)),e.qHyperCubeDef.qDimensions.length>1&&this.moveCustomTooltipAttrs(e,t)},removeCallbackCustomTooltip(e,t){e.qHyperCubeDef.qDimensions.length>0?this.moveCustomTooltipAttrs(e,t):this.quarantineCustomTooltipAttrs(e,t)},replaceCallbackCustomTooltip(e,t){e.qHyperCubeDef.qDimensions.length>1?this.moveCustomTooltipAttrs(e,t):(this.quarantineCustomTooltipAttrs(e,t),this.setAttrsFromQuarantine(e),this.unquarantineCustomTooltipAttrs(e))},shouldIgnoreDefaultRows(e){var t;return(null===(t=e.tooltip)||void 0===t?void 0:t.hideBasic)||0},DEBOUNCE_THRESHOLD:50,getFooterRow:(e,t)=>[{content:e,style:{"font-style":"italic","font-size":"12px","line-height":"16px",color:"rgba(255, 255, 255, 0.6)","text-align":t?"right":"left",direction:Tg.detectTextDirection(e)},colspan:2},{}],getImageRow(e,t){const n=Tg.detectTextDirection(e.src),r=[],i={style:{display:"block","margin-left":"auto","margin-right":"auto",overflow:"hidden",width:e.width,height:e.height}};if("original"===e.size||e.imageError){r.push(t.h("span",{style:{display:"inline-block",height:"100%","vertical-align":"middle"}}));const n=e.imageError?`${e.src}?${Math.random()}`:e.src;r.push(t.h("img",{style:{"max-width":e.width,"max-height":e.height,"vertical-align":"middle"},src:n,referrerpolicy:"no-referrer"})),i.style["text-align"]="center",i.style["white-space"]="nowrap"}else i.style["background-size"]="contain",i.style["background-repeat"]="no-repeat",i.style["background-position"]="center",i.style["background-image"]=`url('${e.src}')`;return[{content:[t.h("div",i,r),""],style:{"text-align":t.rtl?"right":"left",direction:n,"max-width":e.width},colspan:2},{}]}};function uQ(e,t,n,r){var i;const o=(null===(i=t.qHyperCube)||void 0===i||null===(i=i[n])||void 0===i||null===(i=i[r])||void 0===i?void 0:i.qAttrExprInfo)||[],a=[],s=e.qSubNodes&&e.qSubNodes[r]?e.qSubNodes[r].qAttrExps:e.qAttrExps;return s?(o.forEach(((e,t)=>{const i=s.qValues&&s.qValues[t]?s.qValues[t]:void 0,o=void 0===i?"NaN":function(e,t){let n;switch(e.id){case XZ.CUSTOM.EXPRESSION:n="NaN"===t.qNum||e.isCustomFormatted?void 0===t.qText?"NaN":t.qText:t.qNum;break;case XZ.CUSTOM.TITLE:case XZ.CUSTOM.DESCRIPTION:case XZ.CUSTOM.IMAGES:n=void 0===t.qText?e.qFallbackTitle:t.qText;break;default:n="NaN"}return n}(e,i);a.push({source:{key:"qHyperCube",field:`${n}/${r}/qAttrExprInfo/${t}`},label:o,value:"value"})})),a):a}const dQ={getNode(e,{dimensionCount:t}){if(!t||t<1)return;const n=t-1,r="qDimensionInfo";return{field:`${r}/${n}`,value:t=>uQ(t,e,r,n)}}};const fQ={getCustomAttrExps(e,t,n){var r;const i={customTooltipAttrExpsArr:[],customTooltipInfoAttrExpsArr:[]},o=(null===(r=t.data)||void 0===r||null===(r=r.customTooltipAttrExps)||void 0===r?void 0:r.value)||[];if(Number.isNaN(o))return i;return function(e,t,n,r){const i={[XZ.CUSTOM.TITLE]:!0,[XZ.CUSTOM.DESCRIPTION]:!0},{attrExps:o,fieldPath:a}=cQ.getAttrExprData(e);return 0===t.length||0===o.length||""===a||o.forEach(((e,o)=>{const s=t[o];if(e.id===XZ.CUSTOM.EXPRESSION&&s){const t=e.qFallbackTitle,i="NaN"===s.value||e.isCustomFormatted?s.value:n("qHyperCube").field(`${a}/${o}`).formatter()(s.value);r.customTooltipAttrExpsArr.push({label:t,value:i})}else if(i[e.id]&&s){const t="-"!==s.value&&"NaN"!==s.value?s.value:s.label;t&&"undefined"!==t&&r.customTooltipInfoAttrExpsArr.push({...e.id===XZ.CUSTOM.TITLE&&{title:t},value:t,id:e.id})}})),r}(n,o.map((t=>Og.getMeasure(e,t))),e,i)}};function hQ({nodes:e,layout:t,dataset:n}){const r=function(e,t,n){const r=[];return e.forEach((e=>{r.push(fQ.getCustomAttrExps(n,e,t))})),r}(e,t,n);return r.reduce(((e,t)=>({customTooltipAttrExpsArr:e.customTooltipAttrExpsArr.concat(t.customTooltipAttrExpsArr),customTooltipInfoAttrExpsArr:e.customTooltipInfoAttrExpsArr.concat(t.customTooltipInfoAttrExpsArr)})),{customTooltipAttrExpsArr:[],customTooltipInfoAttrExpsArr:[]})}function pQ(e){const t=XZ.CUSTOM.EXPRESSION,{qNumFormat:n,qLabel:r,qLabelExpression:i,cId:o}=e.qDef;return e.qLibraryId?{qLibraryId:e.qLibraryId,id:t,qNumFormat:n,qLabel:r,qLabelExpression:i,cId:o}:{qExpression:e.qDef.qDef,id:t,qNumFormat:n,qLabel:r,qLabelExpression:i,cId:o}}function mQ(e){var t;const n=null===(t=e.qHyperCubeDef)||void 0===t?void 0:t.qDimensions;return n[n.length-1].qAttributeExpressions||[]}const gQ={migrateProperties(e){var t,n;const r=bg(!0,{},e),i=(null===(t=r.tooltip)||void 0===t||null===(t=t.data)||void 0===t||null===(t=t.qHyperCubeDef)||void 0===t?void 0:t.qMeasures)||[];let o=mQ(r);return o=function(e,t){return t.concat(e.map((e=>pQ(e))))}(i,o),function(e,t){var n;const r=null===(n=t.qHyperCubeDef)||void 0===n?void 0:n.qDimensions;r[r.length-1].qAttributeExpressions=e}(o,r),null===(n=r.tooltip)||void 0===n||delete n.data,r},getPatches(e){var t,n;const r=(null===(t=e.tooltip)||void 0===t||null===(t=t.data)||void 0===t||null===(t=t.qHyperCubeDef)||void 0===t?void 0:t.qMeasures)||[],i=(null===(n=e.qHyperCubeDef)||void 0===n?void 0:n.qDimensions.length)-1,o=function(e,t,n){let r=e.length;const i=[];return t.forEach((e=>{const t=pQ(e),o=JSON.stringify(t);i.push({qPath:`/qHyperCubeDef/qDimensions/${n}/qAttributeExpressions/${r}`,qOp:"add",qValue:o}),r++})),i.push({qPath:"/tooltip/data",qOp:"remove"}),i}(mQ(e),r,i);return o},checkForBackwardCompatibility:(e,t)=>(e.qMeasureInfo||[]).length>0&&t.length>0,updateProperties(e,t){const n=new Promise((n=>{var r,i,o;const a=(null===(r=t.qHyperCube)||void 0===r?void 0:r.qDimensionInfo)||[],s=(null===(i=t.tooltip)||void 0===i||null===(i=i.data)||void 0===i?void 0:i.qHyperCube)||{},l=null===(o=t.qMeta)||void 0===o||null===(o=o.privileges)||void 0===o?void 0:o.includes("update");e&&e.getEffectiveProperties&&this.checkForBackwardCompatibility(s,a)&&e.getEffectiveProperties().then((t=>{if(l){const r=this.migrateProperties(t);e.setProperties(r).then((()=>{e.app.clearUndoBuffer(),n(!0)}))}else{const r=this.getPatches(t);e.applyPatches(r,!0).then((()=>{e.app.clearUndoBuffer(),n(!0)}))}})),n(!1)}));return n}};var yQ={attrExpr:gQ};const{CUSTOM:vQ}=XZ;function bQ({flags:e,layout:t,app:n,model:r,picasso:i,chart:o,translator:a,localeInfo:s,embed:l,options:c}){const u={properties:void 0},d=function({layout:e,app:t,picasso:n,model:r,chart:i,translator:o,localeInfo:a,embed:s}){return{layout:e,app:t,picasso:n,model:r,chart:i,translator:o,localeInfo:a,useCustomTooltip:e.tooltip&&!e.tooltip.auto,utils:cQ,miniChartToken:{},embed:s}}({layout:t,app:n,model:r,picasso:i,chart:o,translator:a,localeInfo:s,embed:l}),f="rtl"===c.direction,h=()=>{var e;const n=!(null===(e=u.properties)||void 0===e||null===(e=e.qHyperCubeDef)||void 0===e||!e.qDimensions.some((e=>{var t;return null===(t=e.qCalcCondition)||void 0===t||null===(t=t.qCond)||void 0===t?void 0:t.qv})));return!(!t.tooltip||t.tooltip.auto||n)};return{setProperties:e=>{u.properties=e},isEnabled:()=>h(),hideBasic:()=>h()&&xx(t,"tooltip.hideBasic",!1),getAttributes:({dataset:e,nodes:n})=>{var r,i;const o=hQ({dataset:e,nodes:n,layout:t});return{title:null===(r=o.customTooltipInfoAttrExpsArr.find((e=>e.id===vQ.TITLE)))||void 0===r?void 0:r.title,description:null===(i=o.customTooltipInfoAttrExpsArr.find((e=>e.id===vQ.DESCRIPTION)))||void 0===i?void 0:i.value,measures:o.customTooltipAttrExpsArr}},hasImages:()=>cQ.checkIfPromisesExist({customTooltipModel:d}),createImageRow:({value:e,h:t})=>cQ.getImageRow(e,{h:t,rtl:f}),addImages:({nodes:r})=>{const i=cQ.getDataNodes(o,r),{attrExps:a}=cQ.getAttrExprData(t);return nQ.handlePromises({customTooltipModel:d,nodes:i,attrExps:a,opts:{flags:e,app:n}})},chart:{isEnabled:()=>{return!!(h()&&null!==(e=t.tooltip)&&void 0!==e&&null!==(e=e.chart)&&void 0!==e&&null!==(e=e.object)&&void 0!==e&&e.refId&&l&&"function"==typeof(null==r?void 0:r.getEffectiveProperties));var e},hasLimitation:()=>{var e;return!(null==n||null===(e=n.isInModalSelection)||void 0===e||!e.call(n))},createContainer:({h:e})=>oQ.createContainer({layout:t,ctx:{h:e,rtl:f}}),createLimitationRow:()=>cQ.getFooterRow(a.get("properties.tooltip.notselectedmessage"),f),show:({nodes:e,properties:t})=>oQ.show({app:n,properties:t,selectedNodes:e,customTooltipModel:d,rtl:f}),hasAlternateState:()=>{var e;return!(null===(e=d.miniChartToken)||void 0===e||!e.alternateState)},hide:()=>oQ.hide({app:n,customTooltipModel:d}),destroy:()=>oQ.destroyVisualization({customTooltipModel:d})}}}function xQ(e){return{layout:e,keys:{SCALE:{FILL:"fill"},COMPONENT:{DIMENSION_TITLE:"dimension-title",SLICES:"slices",PIE_LABELS:"pie-labels"}}}}function wQ({flags:t,picasso:n,instance:r}){const i=e.useModel(),o=e.useApp(),a=e.useTranslator(),s=e.useElement(),[l,c]=e.useState(),u=e.useStaleLayout(),d=e.usePlugins(),f=e.useConstraints(),h=e.useOptions(),p=e.useTheme(),{qLocaleInfo:m}=e.useAppLayout(),g=e.useEmbed();return e.useEffect((()=>{if(!r)return;s.style.overflow="hidden";const e=function(e){var t,n=e.app,r=e.translator,i={initialized:!1,dimensions:[],measures:[]};return{initialize:(t=ev(ov().m((function e(t){var o,a,s,l,c,u,d;return ov().w((function(e){for(;;)switch(e.n){case 0:if(o=t.properties,!i.initialized){e.n=1;break}return e.a(2);case 1:return s=[Nv(a={app:n,translator:r,properties:o}),Lv(a)],e.n=2,Promise.all(s);case 2:l=e.v,c=sv(l,2),u=c[0],d=c[1],i.dimensions=u,i.measures=d,i.initialized=!0;case 3:return e.a(2)}}),e)}))),function(e){return t.apply(this,arguments)}),getAlternatives:function(){return{dimensions:lv(i.dimensions),measures:lv(i.measures)}}}}({app:o,translator:a}),l=px({picasso:r.picasso,model:i,app:o,translator:a,config:{auto:!1,key:"fill"}}),y=function(e){var t=e.picassoInstance,n=e.plugins,r=e.pluginArgs,i=void 0===r?{}:r,o={initialized:!1,definitions:[]};return{initialize:function(){return ev(ov().m((function e(){var r,a,s,l;return ov().w((function(e){for(;;)switch(e.n){case 0:if(!o.initialized){e.n=1;break}return e.a(2);case 1:return a=Promise.all(n.filter((function(e){return"custom-component"===e.info.type})).map(function(){var e=ev(ov().m((function e(n){var r;return ov().w((function(e){for(;;)switch(e.n){case 0:if(n.info.componentName){e.n=1;break}throw new Error("plugin-service: Custom component is missing componentName");case 1:return e.n=2,n.fn(rv({},i));case 2:if("object"===cv(r=e.v)){e.n=3;break}throw new Error("plugin-service: Custom component needs to be an object");case 3:t.component(n.info.componentName,r);case 4:return e.a(2)}}),e)})));return function(t){return e.apply(this,arguments)}}())),s=Promise.all(n.filter((function(e){return"component-definition"===e.info.type})).map((function(e){return e.fn(rv({},i))}))),e.n=2,Promise.all([a,s]);case 2:l=e.v,o.initialized=!0,(r=o.definitions).push.apply(r,lv(l[1]));case 3:return e.a(2)}}),e)})))()},extendComponents:function(e){return o.initialized?(o.definitions.filter(Boolean).forEach((function(t){var n=sv(e.filter((function(e){return e.key&&e.key===t.key})),1)[0];if(n){var r=jv(!0,{},n.brush);jv(!0,n,t),t.brush&&(n.brush=function(e,t){return"object"===cv(e)&&Object.keys(e).length?(Array.isArray(t.consume)&&(e.consume=Ex({originalArray:e.consume,newArray:t.consume,matchKey:"context"})),Array.isArray(t.trigger)&&(e.trigger=Ex({originalArray:e.trigger,newArray:t.trigger,matchKey:"on"})),e):t}(r,t.brush))}else e.push(t)})),e):e}}}({picassoInstance:r.picasso,plugins:d,pluginArgs:xQ(u)}),v=bQ({flags:t,layout:u,app:o,model:i,picasso:n,chart:r.chart,translator:a,localeInfo:m,embed:g,options:h}),b=function(e){var t=e.theme,n=e.config,r=void 0===n?{}:n,i=r.id,o=r.resolve,a=void 0===o?[]:o,s=r.transform,l=void 0===s?[]:s,c=r.extend,u=void 0===c?[]:c,d={theme:t,matrix:Lk(a),styles:void 0};return d.styles=Fk({theme:t,id:i,transform:l,extend:u,matrix:d.matrix}),{getStyles:function(){return d.styles},getTheme:function(){return d.theme},setTheme:function(e){d.theme=e,d.styles=Fk({theme:e,id:i,transform:l,extend:u,matrix:d.matrix})}}}({theme:p,config:{id:"pieChart",resolve:[["object","label.name","color","#595959"],["object","label.name","fontFamily"],["object","label.name","fontSize","12px"]]}}),x=function({chart:e,translator:t,layout:n,constraints:r,options:i,themeService:o,colorService:a,custom:s}){const l=n.qHyperCube.qMeasureInfo.length>1,c="rtl"===i.direction,{fontFamily:u}=o.getStyles();return mS({chart:e,translator:t,config:{rtl:c,enable:()=>!r.passive,getColorSettings:()=>a.getSettings(),style:{fontFamily:u},main:{key:"tooltip",getGroupByValue:({data:e})=>e.value,collectibles:[{key:"slices",type:"slice",major:({data:e})=>e.value}],triggers:[{keys:["slices"],collect:{from:"single"},placement:"collectible"},{keys:["pie-labels","negative-indicators"],collect:{from:"dimension",by:({data:e})=>e.value},placement:"trigger"}],placement:({meta:e})=>({type:"slices"===e.triggerer?"slice":"bounds"}),section:({h:e,nodes:n,dataset:r,formatter:i,create:o,util:a})=>{const[c]=n,{title:u,description:d,measures:f}=s.isEnabled()?s.getAttributes({dataset:r,nodes:n}):{},h=[];u&&h.push(o.text({value:u,style:{bold:!0}})),d&&h.push(o.text({value:d}));const p=s.hideBasic();if(p&&!f.length&&(u||d)||h.push(o.text({value:c.data.label,style:{bold:!0}})),!p){h.push(o.color({nodes:n,property:"fill"}));const{num:e}=c.data;if(h.push(o.measure({label:a.dataset.title(e.source.key,e.source.field),value:e.label})),l){const{radius:e}=c.data;h.push(o.measure({label:a.dataset.title(e.source.key,e.source.field),value:e.label}))}h.push(o.measure({label:t?t.get("properties.dataPoints.labelmode.share"):"Share",value:i("share")(c.desc.share)}))}f&&h.push(...f.map((e=>o.measure({label:e.label,value:e.value,survive:{color:!0,duplicate:!0}})))),s.chart.isEnabled()&&(s.chart.hasLimitation()?(s.chart.destroy(),h.push(o.raw({value:s.chart.createLimitationRow()}))):h.push(o.raw({value:s.chart.createContainer({h:e})})));const{customTooltipImages:m}=c.data;return s.isEnabled()&&m&&h.push(...m.map((t=>o.raw({value:s.createImageRow({value:t,h:e})})))),h},layout:{grouping:!0},events:{tooltip:{beforeShow:({collectNodes:e})=>s.isEnabled()&&s.hasImages()?s.addImages({nodes:e()}):Promise.resolve(),afterShow:({expando:e,nodes:t})=>{s.chart.isEnabled()&&!s.chart.hasLimitation()&&s.chart.show({nodes:t,properties:e.get("properties")})}},interaction:{mouseleave:()=>{s.chart.isEnabled()&&s.chart.hasAlternateState()&&s.chart.hide()}}}},legend:{keys:{tooltip:"legend-color-cat",component:"legend-cat"}}}})}({chart:r.chart,translator:a,layout:u,constraints:f,options:h,themeService:b,colorService:l,custom:v}),w=function({layout:e,themeService:t,colorService:n,flags:r}){const i=t.getStyles(),o=t=>{var n;return r.isEnabled("CLIENT_IM_3050")?null===(n=e.components)||void 0===n?void 0:n.find((e=>e.key===t)):void 0},a=(e,t)=>{const r=n.getPaletteColor;if(null!=e&&e.color&&r){const n=r(e);var i;return"none"===n&&e.index>0?null!==(i=null==e?void 0:e.color)&&void 0!==i?i:t:null!=n?n:t}return t};return{axis:{title:{getStyle:()=>{var e,t,n;const r=null===(e=o("axis"))||void 0===e||null===(e=e.axis)||void 0===e?void 0:e.title;return{fontFamily:null!==(t=null==r?void 0:r.fontFamily)&&void 0!==t?t:i.axis.title.fontFamily,fontSize:null!==(n=null==r?void 0:r.fontSize)&&void 0!==n?n:i.axis.title.fontSize,color:a(null==r?void 0:r.color,i.axis.title.color)}}}},label:{name:{getStyle:()=>{var e,t,n;const r=null===(e=o("label"))||void 0===e||null===(e=e.label)||void 0===e?void 0:e.name;return{fill:a(null==r?void 0:r.color,i.label.name.color),fontSize:null!==(t=null==r?void 0:r.fontSize)&&void 0!==t?t:i.label.name.fontSize,fontFamily:null!==(n=null==r?void 0:r.fontFamily)&&void 0!==n?n:i.label.name.fontFamily}}},value:{getStyle:()=>{var e,t,n;const r=null===(e=o("label"))||void 0===e||null===(e=e.label)||void 0===e?void 0:e.value;return{fill:a(null==r?void 0:r.color,i.label.value.color),fontSize:null!==(t=null==r?void 0:r.fontSize)&&void 0!==t?t:i.label.value.fontSize,fontFamily:null!==(n=null==r?void 0:r.fontFamily)&&void 0!==n?n:i.label.value.fontFamily}}}},legend:{title:{getStyle:()=>{var e,t,n;const r=null===(e=o("legend"))||void 0===e||null===(e=e.legend)||void 0===e?void 0:e.title;return{fontFamily:null!==(t=null==r?void 0:r.fontFamily)&&void 0!==t?t:i.legend.title.fontFamily,fontSize:null!==(n=null==r?void 0:r.fontSize)&&void 0!==n?n:i.legend.title.fontSize,color:a(null==r?void 0:r.color,i.legend.title.color)}}},label:{getStyle:()=>{var e,t,n;const r=null===(e=o("legend"))||void 0===e||null===(e=e.legend)||void 0===e?void 0:e.label;return{fontFamily:null!==(t=null==r?void 0:r.fontFamily)&&void 0!==t?t:i.legend.label.fontFamily,fontSize:null!==(n=null==r?void 0:r.fontSize)&&void 0!==n?n:i.legend.label.fontSize,color:a(null==r?void 0:r.color,i.legend.label.color)}}}}}}({layout:u,themeService:b,colorService:l,flags:t}),k=function({layout:e}){const t=({ds:e,encodings:t})=>{const n={field:"qDimensionInfo/0",props:{num:{field:t.slice.arc}}};return t.slice.outerRadius&&(n.props.radius={field:t.slice.outerRadius}),e.extract(n)},n=({rows:e,encodings:t})=>t.slice.outerRadius?e.filter((e=>"NaN"!==e.num.value&&"NaN"!==e.radius.value)):e.filter((e=>"NaN"!==e.num.value)),r=({rows:t,encodings:n})=>n.slice.outerRadius&&!e.donut.showAsDonut?t.filter((e=>e.num.value>0&&e.radius.value>0)):t.filter((e=>e.num.value>0));return bx({layout:e,config:{args:{},disclaimers:{NoDataExist:{condition:({ds:e,encodings:n})=>0===t({ds:e,encodings:n}).length},LimitedData:{condition:()=>{const t=Mg.getValue(e,"qHyperCube.qSize.qcy");return Mg.getValue(e,"qHyperCube.qDataPages.0.qArea.qHeight")<t}},OnlyNanData:{condition:({ds:e,encodings:r})=>{const i=t({ds:e,encodings:r});return 0===n({rows:i,encodings:r}).length}},OnlyNegativeOrZeroValues:{condition:({ds:e,encodings:i})=>{const o=t({ds:e,encodings:i}),a=n({rows:o,encodings:i});return 0===r({rows:a,encodings:i}).length}},NegativeOrZeroValues:{condition:({ds:e,encodings:i})=>{const o=t({ds:e,encodings:i}),a=n({rows:o,encodings:i}),s=a,l=r({rows:a,encodings:i});return s.length!==l.length}}}}})}({layout:u});c({alternativeService:e,colorService:l,disclaimerService:k,pluginService:y,themeService:b,tooltipService:x,styleService:w})}),[i,o,r,u,a.language(),f,h.direction,p.name()]),l}const kQ=e=>"[object Object]"===Object.prototype.toString.call(e),SQ=e=>Array.isArray(e);function CQ(e,t){if(e===t)return!0;if(SQ(e)){if(!SQ(t))return!1;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!CQ(e[n],t[n]))return!1;return!0}if(kQ(e)){if(!kQ(t))return!1;const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(let r=0;r<n.length;r++){if(!Object.hasOwn(t,n[r]))return!1;if(!CQ(e[n[r]],t[n[r]]))return!1}return!0}return e===t}function EQ({enable:t=!0}={}){const n=e.useModel(),r=()=>Date.now().toString()+Math.random(),[i,o]=e.useState(r()),a={properties:void 0};return e.useEffect((()=>{if(!n||!n.getEffectiveProperties||!t)return()=>{};const e=()=>{n.getEffectiveProperties().then((e=>{const t=bg(!0,{},e);if(!a.properties)return void(a.properties=t);const n=function(e,t){var n,r,i,o;const a={properties:!1,exclude:!1};if(e===t)return a;const s=bg(!0,{},e),l=bg(!0,{},t);return a.exclude=!CQ(null===(n=s.qHyperCubeDef)||void 0===n?void 0:n.qLayoutExclude,null===(r=l.qHyperCubeDef)||void 0===r?void 0:r.qLayoutExclude),null===(i=s.qHyperCubeDef)||void 0===i||delete i.qLayoutExclude,null===(o=l.qHyperCubeDef)||void 0===o||delete o.qLayoutExclude,a.properties=!CQ(s,l),a}(a.properties,t);a.properties=t,n.exclude&&!n.properties&&o(r())}))};return n.on("changed",e),e(),()=>{n.removeListener("changed",e)}}),[t]),i}function MQ({scaleKey:e,legend:t,onEdited:n}){const{layout:r}=t,{dock:i}=r||{};return{type:"brush-range",key:"legendRangeBrush",layout:{dock:"@legend-seq"},on:n?{bubbleEnd(){n()}}:{},settings:{brush:"selection",scale:`${e}Range`,direction:"left"===i||"right"===i?"vertical":"horizontal",bubbles:{align:"left"===i||"top"===i?"end":"start",placement:"outside"},target:{selector:'[id="legend-seq-target"]',fillSelector:'[id="legend-seq-ticks"]',fill:"rgba(82,204,82,0.2)"}}}}const _Q=.8,qQ=.55,DQ={CORNER_RADIUS:0,INNER_RADIUS:qQ,STROKE:{COLOR:"#FFFFFF",WIDTH:{NONE:0,SMALL:2,MEDIUM:4,LARGE:6}}},RQ=({layout:e},t,n)=>t.encodings.slice.outerRadius?{scale:"radius",fn:t=>{var r,i;let o=_Q,a=0;const s=null!==(r=null==n||null===(i=n.style)||void 0===i?void 0:i.innerRadius)&&void 0!==r?r:qQ;e.donut.showAsDonut&&(o=_Q-s,a=s);return t.scale(Math.max(0,t.datum.radius.value))*o+a}}:_Q,TQ=({layout:e},t,n)=>{var r,i;if(!e.donut.showAsDonut)return 0;const o=null!==(r=null==n||null===(i=n.style)||void 0===i?void 0:i.innerRadius)&&void 0!==r?r:qQ;return t.encodings.slice.outerRadius?{scale:"radius",fn:e=>{const t=_Q-o,n=o;return e.scale(Math.min(0,e.datum.radius.value))*t+n}}:o},OQ=({layout:e},t)=>{var n,r,i,o,a;const s=t.colorService.getDatumProps(),l=s[Object.keys(s)[0]],c=l&&l.field?l.field:void 0,u="qDimensionInfo/0"===c,d=c?t.ds.field(c).raw():null,f=d&&(d.label||d.title||d.qFallbackTitle)||"",h=t.encodings.slice.outerRadius,{formatter:p}=t.chart,m=Mg.getValue(e,"qHyperCube.qDimensionInfo",[]).length;function g(e,n){const r=t.ds.field(e).raw();return{field:e,label:!r.isCustomFormatted&&(r.qIsAutoFormat||"U"===r.qNumFormat.qType)?e=>p(n)(e.qNum):e=>e.qText}}const y=(e.components||[]).filter((e=>"slices"===e.key))[0];return{type:"pie",key:"slices",data:{extract:{field:"qDimensionInfo/0",props:{...s,num:g(t.encodings.slice.arc,"arc"),fillTooltip:c?{field:c,label:f,value:e=>u?e.qText||"-":void 0!==e.qNum&&"NaN"!==e.qNum?e.qText?e.qText:e.qNum:e.qText||"-"}:void 0,customTooltipAttrExps:0!==m?dQ.getNode(e,{dimensionCount:m}):void 0,radius:h?g(h,"outerRadius"):void 0}}},brush:{consume:[{context:"selection",data:["","fill"],style:{inactive:{opacity:.3},active:{stroke:"rgba(52, 52, 52, 0.7)",strokeWidth:2}}},{context:"highlight",data:[""],style:{inactive:{fill:"#BFDAD9"},active:{fill:"#68B2AF"}}}]},settings:{startAngle:()=>t.viewState.get("rotation"),endAngle:()=>t.viewState.get("rotation")+2*Math.PI,slice:{arc:{ref:"num"},innerRadius:TQ({layout:e},t,y),fill:t.colorService.getColor(),strokeWidth:null!=y&&null!==(n=y.style)&&void 0!==n&&n.strokeWidth?DQ.STROKE.WIDTH[y.style.strokeWidth.toUpperCase()]:DQ.STROKE.WIDTH.NONE,stroke:null!==(r=null==y||null===(i=y.style)||void 0===i||null===(i=i.strokeColor)||void 0===i?void 0:i.color)&&void 0!==r?r:DQ.STROKE.COLOR,outerRadius:RQ({layout:e},t,y),cornerRadius:null!==(o=null==y||null===(a=y.style)||void 0===a?void 0:a.cornerRadius)&&void 0!==o?o:0}},animations:{enabled:t.animations.enabled,isMainComponent:!0}}};function PQ({layout:e},t){var n,r;const i=(e.components||[]).filter((e=>"slices"===e.key))[0],o=null!==(n=null==i||null===(r=i.style)||void 0===r?void 0:r.innerRadius)&&void 0!==n?n:qQ,a=t.encodings.slice.outerRadius,s=t.themeService.getStyles();return!(!e.donut.showAsDonut||!a)&&{type:"pie",key:"zeroLine",data:{items:[1]},settings:{slice:{arc:1,fill:"transparent",innerRadius:0,strokeWidth:1,stroke:s.label.name.color,outerRadius:{scale:"radius",fn:e=>{const t=_Q-o,n=o;return e.scale(0)*t+n}}}},animations:{enabled:t.animations.enabled}}}function NQ(e){return{type:"pie-dividers",key:"pie-dividers",layout:{displayOrder:2},settings:{component:"slices",selector:"path"},brush:{consume:[{context:"selection",style:{inactive:{opacity:.2}}}]},animations:{enabled:e.animations.enabled,trackBy:()=>Math.random()}}}function AQ({layout:e},t){if(e.donut.showAsDonut||!t.encodings.slice.outerRadius)return!1;return{type:"negative-indicators",key:"negative-indicators",layout:{displayOrder:2},settings:{component:"slices",selector:"path",offset:5,size:4,fill:t.themeService.getStyles().label.name.color},brush:{consume:[{context:"selection",style:{inactive:{opacity:.2}}}]},animations:{enabled:t.animations.enabled}}}function IQ(e){const t=e.node.desc&&e.node.desc.share;return t?e.formatter("share")(t):""}function LQ(e){return e.node.data.num.label}function zQ(e){return e.node.data.radius.label}function FQ(e,t,n){if(e.dataPoint.auto)return n?LQ:IQ;if("share"===e.dataPoint.labelMode)return IQ;if("value"===e.dataPoint.labelMode){return t.encodings.slice.outerRadius&&"radius"===e.dataPoint.labelValueMode?zQ:LQ}return null}function jQ({data:e}){return e?e.label:""}function $Q(e){const t=parseInt(e,10);if(!isNaN(t))return t}function HQ(e){var t,n;const r=((e&&e.components?e.components:void 0)||[]).filter((e=>"slices"===e.key))[0];return(null!==(t=null==r||null===(n=r.style)||void 0===n?void 0:n.innerRadius)&&void 0!==t?t:qQ)>.3}function VQ({node:e,data:t}){return bg({_share:e.desc.share,_fillColor:e.attrs.fill},t)}function BQ(e,t,n){const r=t.styleService.label.name.getStyle(),i=[{padding:10,direction:t.encodings.slice.outerRadius?"rotate":"horizontal",placements:[{position:"outside",padding:t.encodings.slice.outerRadius?4:2,fill:r.fill}],fontSize:$Q(r.fontSize),fontFamily:r.fontFamily,label:jQ,linkData:({node:e,data:t})=>bg({_share:e.desc.share,_fillColor:e.attrs.fill,_showTooltip:!0},t)}];if(FQ(e,t,!1)){const r=function(e,t,n){return{label:FQ(e,t,!1),simplifiedPlacements:[{position:e.donut.showAsDonut&&HQ(e)?"inside":"into",onBackground:e.donut.showAsDonut&&HQ(e),padding:4}],theme:n.theme,themeId:"object.pieChart"}}(e,t,n),o=Ag(bg(t,r),n.theme);o.linkData=VQ,i.push(o)}return{key:"pie-labels",type:"labels",renderer:bS(t.flags),layout:{displayOrder:2,minimumLayoutMode:"XSMALL"},settings:{sources:[{component:"slices",selector:"path",strategy:{type:"slice",settings:{labels:i}}}]},brush:{consume:[{context:"selection",data:["","fill"],style:{inactive:{opacity:.3}}}]},animations:{enabled:t.animations.enabled,trackBy:()=>Math.random()}}}function WQ({layout:e,context:t},n){return!1!==e.dataPoint.show&&(1===n.dataRowCount?function(e,t,n){const r=FQ(e,t,!0),i=(e=>t=>e.getContrastingColorTo(t.node.attrs.fill))(n.theme),o=t.themeService.getStyles(),a=t.styleService.label.name.getStyle(),s=t.styleService.label.value.getStyle(),l=a.fill===o.label.name.color,c=s.fill===o.label.value.color;return{key:"pie-labels",type:"labels",renderer:bS(t.flags),layout:{displayOrder:2,minimumLayoutMode:"XSMALL"},settings:{sources:[{component:"slices",selector:"path",strategy:{type:"rows",settings:{align:.5,justify:.5,padding:10,labels:[{fontSize:$Q(a.fontSize),fontFamily:a.fontFamily,fill:l&&!e.donut.showAsDonut?i:a.fill,label:jQ,linkData:({data:e})=>e},{fontSize:$Q(s.fontSize),fontFamily:s.fontFamily,fill:c&&!e.donut.showAsDonut?i:s.fill,label:r,linkData:({data:e})=>e}]}}}]},animations:{enabled:t.animations.enabled,trackBy:()=>Math.random()}}}(e,n,t):BQ(e,n,t))}const UQ=(e,{requireFailure:t,recognizeWith:n}={})=>({type:"Pan",requireFailure:t,recognizeWith:n,options:{event:"legendRange",enable(t,n){if(this.started||!n)return!0;if(e.constraints.select||e.constraints.active)return!1;const r=this.chart.componentsFromPoint({x:n.center.x,y:n.center.y}).some((e=>"legend-seq"===e.type)),i=(r||function(e){const{target:t}=e.srcEvent;return!(!t||!(t.hasAttribute("data-other-value")&&t.hasAttribute("data-idx")||"INPUT"===t.nodeName))}(n))&&!e.isLocked([this.chart.component("slices")]);return i||this.chart.component("legendRangeBrush").emit("rangeClear"),i}},events:{legendRangestart(t){t.preventDefault(),e.interactions.emit("selections-start"),this.chart.component("legendRangeBrush").emit("rangeStart",t),this.started=!0},legendRangemove(e){e.preventDefault(),this.chart.component("legendRangeBrush").emit("rangeMove",e)},legendRangeend(t){t.preventDefault(),this.chart.component("legendRangeBrush").emit("rangeEnd",t),e.onSelect(),this.started=!1}}});function YQ(e,t){const n=t.element.getBoundingClientRect();let r,i;return e.center?(({x:r}=e.center),({y:i}=e.center)):(r=e.clientX,i=e.clientY),{x:r-n.left,y:i-n.top}}function KQ(e,t){const n=t.component("slices");if(!n)return!1;const{x:r,y:i}=YQ(e,t),o=n.rect.x+n.rect.margin.left+n.rect.width/2,a=n.rect.y+n.rect.margin.top+n.rect.height/2,s=Math.min(n.rect.width,n.rect.height)/2*_Q;return(o-r)**2+(a-i)**2<=s**2}const GQ=(e,t,{requireFailure:n,recognizeWith:r}={})=>({type:"Tap",requireFailure:n,recognizeWith:r,options:{event:"tap",interval:10,pointers:1,enable(t,n){return!n||!e.constraints.select&&!e.constraints.active&&(this.components=this.chart.componentsFromPoint({x:n.center.x,y:n.center.y}).filter((e=>"slices"===e.key||"legend-cat"===e.key||"pie-labels"===e.key)),this.components.length)}},events:{tap(n){n.preventDefault();const{target:r}=n.srcEvent;if(r&&("INPUT"===r.nodeName||r.hasAttribute("data-other-value")))return void this.chart.component("legendRangeBrush").emit("bubbleStart",n);if(r&&r.hasAttribute("data-action")&&r.hasAttribute("data-component-key"))return void this.chart.component(r.getAttribute("data-component-key")).emit(r.getAttribute("data-action"));if(r&&r.children&&r.children[0]&&"legend-cat"===r.children[0].getAttribute("data-component-key"))return;if(e.isLocked(this.components))return;e.interactions.emit("selections-start");let i=YQ(n,this.chart);this.components.some((e=>"legend-cat"===e.key))&&(i={cx:i.x,cy:i.y,r:5});const o=this.chart.shapesAt(i,{components:[{key:"slices",propagation:"stop"},{key:"legend-cat",propagation:"stop"},{key:"pie-labels",propagation:"stop"}],propagation:"stop"});o.length&&(this.chart.brushFromShapes(o,{components:[{key:o[0].key,action:n.srcEvent.ctrlKey||t?"set":"toggle",contexts:["selection"]}]}),e.onSelect())}}}),XQ=(e,{requireFailure:t,recognizeWith:n}={})=>({type:"Pan",requireFailure:t,recognizeWith:n,options:{event:"lasso",enable(t,n){if(this.isStarted||!n)return!0;if(e.constraints.active||e.constraints.select||!e.interactions.lasso.active())return!1;const r=this.chart.componentsFromPoint({x:n.center.x,y:n.center.y});return!e.isLocked(r)&&r.some((e=>"slices"===e.key))}},events:{lassostart(t){t.preventDefault(),e.constraints.select||e.constraints.active||this.isStarted||(e.interactions.emit("selections-start"),this.chart.component("lasso").emit("lassoStart",t),this.isStarted=!0)},lassomove(e){e.preventDefault(),this.chart.component("lasso").emit("lassoMove",e)},lassoend(t){t.preventDefault(),this.isStarted=!1,this.chart.component("lasso").emit("lassoEnd",t),e.onSelect()}}}),JQ=(e,{requireFailure:t,recognizeWith:n}={})=>({type:"Tap",requireFailure:t,recognizeWith:n,options:{event:"areatap",pointers:2,enable(t,n){if(this.started||!n)return!0;if(e.constraints.active||e.constraints.select)return!1;const r=this.chart.componentsFromPoint({x:n.center.x,y:n.center.y});return r.some((e=>"slices"===e.key))&&!e.isLocked(r)}},events:{areatap(t){const n=this.chart.component("area");n&&!this.started&&(e.interactions.emit("selections-start"),n.emit("areaStart",t.pointers[0]),n.emit("areaMove",t.pointers[1]),this.started=!0,setTimeout((()=>{n.emit("areaEnd"),e.onSelect(),this.started=!1}),100)),t.preventDefault()}}});function ZQ(e){return{type:"native",key:"theusual",events:{wheel(t){let n=!1;if(!e.constraints.active&&KQ(t,this.chart)){const r=Math.sign(-t.deltaY);e.viewState.set("rotation",r*(Math.PI/12)),n=!0}else if(!e.constraints.select&&!e.constraints.active){const e=this.chart.componentsFromPoint(t).filter((e=>"legend-cat"===e.key))[0];e&&(n=!0,function(e,t){const n=(Math.abs(e.deltaX)>Math.abs(e.deltaY)?e.deltaX:e.deltaY)>=0?"next":"prev";t.emit(n)}(t,e))}n&&t.preventDefault()}}}}const QQ=(e,{requireFailure:t,recognizeWith:n}={})=>({type:"Pan",requireFailure:t,recognizeWith:n,options:{event:"rotate",pointers:1,threshold:10,enable(t,n){return!(!this.started&&n)||!e.constraints.active&&!e.interactions.lasso.active()&&KQ(n,this.chart)}},events:{rotatestart(e){e.preventDefault();const t=this.chart.component("slices").rect,n=this.chart.element.getBoundingClientRect();this.pieCenter={x:n.left+t.x+t.width/2,y:n.top+t.y+t.height/2},this.prevAngle=Math.atan2(e.center.y-this.pieCenter.y,e.center.x-this.pieCenter.x),this.started=!0},rotatemove(t){t.preventDefault();const n=Math.atan2(t.center.y-this.pieCenter.y,t.center.x-this.pieCenter.x);e.viewState.set("rotation",n-this.prevAngle),this.prevAngle=n},rotateend(e){e.preventDefault(),this.started=!1},rotatecancel(e){e.preventDefault(),this.started=!1}}}),e0=(e,{requireFailure:t,recognizeWith:n}={})=>({type:"Pan",requireFailure:t,recognizeWith:n,options:{event:"legendPan",pointers:1,threshold:10,enable(t,n){return!(!this.isStarted&&n)||!e.constraints.active&&this.chart.componentsFromPoint({x:n.center.x,y:n.center.y}).some((e=>"legend-cat"===e.type))}},events:{legendPanstart(e){if(e.preventDefault(),!this.isStarted){this.components=this.chart.componentsFromPoint({x:e.center.x,y:e.center.y}),this.components.forEach((t=>{t.emit("panstart",e)})),this.isStarted=!0;const t=this.chart.component("tooltip");t&&t.show&&t.emit("hide")}},legendPanmove(e){this.components.forEach((t=>{t.emit("panmove",e)})),e.preventDefault()},legendPanend(e){e.preventDefault(),this.components.forEach((t=>{t.emit("panend",e)})),this.isStarted=!1}}}),t0=(e,t,n)=>({key:"hammered",type:"hammer",enable:!0,gestures:t?[QQ(e,{}),GQ(e,t,{}),...n]:[UQ(e,{}),JQ(e,{}),QQ(e,{}),XQ(e,{}),e0(e,{}),GQ(e,t,{}),...n]});function n0(e,t,n){const r=e.getIsSingleSelect(0),{constraints:i}=n;if(i.active&&i.passive)return[];const o=t.tooltipService.getInteractions();return[t0(t,r,o.gestures),ZQ(t),o.native]}function r0({settings:e},t){const n={share:{type:"d3-number",format:".1%"},arc:{data:{field:t.encodings.slice.arc}},fill:e.scales.fill&&e.scales.fill.data&&e.scales.fill.data.field?{data:{field:e.scales.fill.data.field}}:{}};return t.encodings.slice.outerRadius&&(n.outerRadius={data:{field:t.encodings.slice.outerRadius}}),n}function i0({layout:e},t,n){var r;if(null!=t&&null!==(r=t.flags)&&void 0!==r&&r.isEnabled("IM_5788_DATA_TITLE_REFACTOR"))return!1;if(!e.dimensionTitle)return!1;const i=t.properties,o=t.styleService.axis.title.getStyle();return{key:"dimension-title",type:"data-title",layout:{minimumLayoutMode:"SMALL",dock:"top"},settings:{hyperCube:e.qHyperCube,hyperCubeDef:i&&i.qHyperCubeDef,isDimension:!0,disabled:()=>n.constraints.active||!n.model,model:t.model,app:t.app,translator:t.translator,rtl:n.rtl,selections:t.selections,isEnabled:t.flags.isEnabled},style:{fontFamily:o.fontFamily,fontSize:o.fontSize,color:o.color}}}function o0({layout:e},t,n){var r;if(null==t||null===(r=t.flags)||void 0===r||!r.isEnabled("IM_5788_DATA_TITLE_REFACTOR"))return!1;if(!e.dimensionTitle)return!1;const i=t.alternativeService.getAlternatives(),o=t.styleService.axis.title.getStyle();return{key:"dimension-title",type:"axis-title",renderer:"react-qcm",layout:{dock:"top",minimumLayoutMode:"SMALL"},data:{infos:e.qHyperCube.qDimensionInfo,alternatives:i.dimensions},resources:{app:t.app,cache:t.viewCache,model:t.model,selections:t.selections,translator:t.translator},callbacks:{onChange:()=>{}},settings:{isDisabled:()=>n.constraints.active,isRTL:n.rtl,isSnapshot:!!e.snapshotData,skipAttributeExpressions:!1,type:"dimension"},style:{title:{color:o.color,fontFamily:o.fontFamily,fontSize:o.fontSize}}}}function a0({layout:e,context:t,selectionService:n},r={}){const i=function({layout:e}={},t={}){const n={};return bg(n,t.colorService.getScales()),t.encodings.slice.outerRadius&&bg(n,function({layout:e},t){const n={radius:{type:"linear",include:[0],data:{extract:{field:t.encodings.slice.outerRadius}}}};return e.donut.showAsDonut||(n.radius.min=0),n}({layout:e},t)),n}({layout:e},r),o={scales:i};let a=[];const s=function(e,t){const n=e.disclaimerService.getDisclaimer();if(!n)return!1;const{rtl:r}=t,{translator:i}=e,{fontFamily:o}=e.themeService.getStyles();return{key:"disclaimer",type:"disclaimer",layout:{dock:n.alignment},settings:{isRTL:r,label:i.get(`Object.Disclaimer.${n.key}`)},style:{fontFamily:o}}}(r,t);if(r.disclaimerService.getHasSuppressingDisclaimer())return{components:[s]};const l=t.constraints.select||t.constraints.active,c=r.colorService.getLegend({eventName:"legend",key:"legend",viewState:r.viewState,chart:r.chart,styleReference:"object.pieChart",styleOverrides:{title:r.styleService.legend.title.getStyle(),label:r.styleService.legend.label.getStyle()},rtl:t.rtl},{navigationDisabled:l});return i.fillRange&&c.components[0]&&("right"===c.components[0].layout.dock||"left"===c.components[0].layout.dock||t.rtl)&&(i.fillRange.invert=!0),a=[OQ({layout:e},r),PQ({layout:e},r),NQ(r),AQ({layout:e},r),i0({layout:e},r,t),o0({layout:e},r,t),...c.components,MQ({scaleKey:"fill",legend:c.components[0]||{},onEdited:r.onSelect}),{key:"lasso",type:"brush-lasso",layout:{displayOrder:99},settings:{brush:{components:[{key:"slices",contexts:["selection"]}]},lasso:{fill:"rgba(0, 0, 0, 0)",stroke:"black",strokeWidth:2,opacity:.7,strokeDasharray:[]},snapIndicator:{threshold:75,strokeDasharray:"5, 5",stroke:"black",strokeWidth:2,opacity:.7},startPoint:{r:10,stroke:"rgba(77, 192, 78, 1)",strokeWidth:0,opacity:1}}},{key:"area",type:"brush-area",settings:{brush:{components:[{key:"slices",contexts:["selection"],action:"add"}]}},style:{area:{fill:"transparent",strokeWidth:2,stroke:"black",strokeDasharray:"5 5",opacity:.7}}},WQ({layout:{components:e.components,dataPoint:bg({},e.dataPoint,{show:!(e.effectPath&&e.snapshotData&&!1===e.dataPoint.show)}),donut:e.donut},context:t},r),...r.tooltipService.getComponents(),s],a=a.filter((e=>!1!==e)),{interactions:n0(n,r,t),scales:i,components:r.pluginService.extendComponents(a),palettes:r.colorService.getPalettes(),formatters:r0({settings:o},r),strategy:Sg(0,r)}}function s0({instance:t,services:n,picasso:r,flags:i}){const o=e.useOptions(),a=e.useModel(),s=e.useApp(),l=e.useTranslator(),c=e.useTheme(),u=e.useStaleLayout(),d=e.useSelections(),f=e.useConstraints(),{qLocaleInfo:h}=e.useAppLayout(),p=EQ({enable:u&&!u.snapshotData}),[m]=e.usePromise((()=>{if(!n)return Promise.resolve();yQ.attrExpr.updateProperties(a,u);const e=({getUseBaseColors:e})=>({theme:c,legendProps:u.legend,layout:u,localeInfo:h,hc:u.qHyperCube,colorProps:{...u.color,useBaseColors:e(u)}});return Promise.resolve(a&&!u.snapshotData?a.getEffectiveProperties():{}).then((async t=>Promise.all([n.colorService.initialize({createConfig:e}),Promise.resolve(t),n.pluginService.initialize(),n.alternativeService.initialize({properties:t})])))}),[n,p]);e.useEffect((()=>{null!=t&&t.selectionService&&t.selectionService.setLayout(u)}),[u]),e.useEffect((()=>{if(!t||!m)return;const{chart:e,viewState:p,interactions:g,viewCache:y}=t,{alternativeService:v,colorService:b,disclaimerService:x,pluginService:w,themeService:k,tooltipService:S,styleService:C}=n,E=o.viewState||{};u.snapshotData||(p.preventSet("legendScrollOffset",E.legendScrollOffset||0),p.preventSet("rotation",E.rotation||0)),function(e,t){e&&e.snapshotData&&e.snapshotData.content&&e.snapshotData.content.chartData&&(t.preventSet("legendScrollOffset",e.snapshotData.content.chartData.legendScrollOffset),t.preventSet("rotation",e.snapshotData.content.chartData.rotation))}(u,p),S.expando.set("properties",m[1]);const M=r.data("q")({key:"qHyperCube",data:u.qHyperCube,config:{localeInfo:h}}),_=[{type:"q",key:"qHyperCube",data:u.qHyperCube,config:{localeInfo:h}},...b.getData()],q={slice:{arc:"qMeasureInfo/0"}};u.qHyperCube.qMeasureInfo.length>1&&(q.slice.outerRadius="qMeasureInfo/1"),x.initialize({args:{ds:M,encodings:q}});const D=function(e,t){if(t.slice.outerRadius)return e.extract({field:"qDimensionInfo/0",props:{num:{field:t.slice.arc},radius:{field:t.slice.outerRadius}}}).filter((e=>e.num.value>0&&"NaN"!==e.radius.value)).length;return e.extract({field:"qDimensionInfo/0",props:{num:{field:t.slice.arc}}}).filter((e=>e.num.value>0)).length}(r.data("q")({data:u.qHyperCube,config:{localeInfo:h}}),q),R=d?()=>{const t=e.brush("selection");ag.selections(t,{},u).forEach((e=>{d.select(e)}))}:()=>{},T=u.snapshotData&&!o.freeResize?{width:(u.snapshotData.content.size||u.snapshotData.object.size).w,height:(u.snapshotData.content.size||u.snapshotData.object.size).h}:void 0,O=e=>t.selectionService.getIsSelectionLocked(e),P=()=>a0({layout:u,context:{rtl:"rtl"===o.direction,theme:c,constraints:f,model:a},selectionService:t.selectionService},{picasso:r,ds:M,model:a,app:s,chart:e,onSelect:R,isLocked:O,interactions:g,constraints:f,translator:l,viewState:p,dataRowCount:D,encodings:q,alternativeService:v,colorService:b,disclaimerService:x,pluginService:w,themeService:k,styleService:C,tooltipService:S,debouncer:Cx,properties:m[1],selections:d,logicalSize:T,flags:i,viewCache:y,animations:{enabled:()=>function({viewState:e,options:t,viewCache:n,layout:r,chart:i}){return!1!==t.chartAnimations&&n.get("chartWidth")===i.element.clientWidth&&n.get("chartHeight")===i.element.clientHeight&&n.get("hasZeroLine")===!!i.component("zeroLine")&&0===e.get("rotation")&&!vS.propertiesHaveChanged({viewCache:n,layout:r})}({viewState:p,options:o,layout:u,viewCache:y,chart:e})}});t.generateSettings=P;const N=P();e.update({data:_,settings:N}),y.set("chartWidth",e.element.clientWidth),y.set("chartHeight",e.element.clientHeight),y.set("hasZeroLine",N.components.filter((e=>"zeroLine"===e.key)).length>0),vS.cacheProperties({viewCache:y,layout:u}),o.effect&&u.effectProperties?o.effect.update(u,e,{encodings:q}):u.effectPath||e.brush("highlight").end()}),[t,m,o.direction,o.effectProperties,f,c.name(),l.language()])}function l0({instance:t,services:n}){const r=e.useElement(),i=e.useStaleLayout();e.onTakeSnapshot((e=>{if(!(i.snapshotData&&i.snapshotData.content&&i.snapshotData.content.chartData)&&(function(e,t){const n=t.getBoundingClientRect();e.snapshotData=e.snapshotData||{},e.snapshotData.content=e.snapshotData.content||{},e.snapshotData.content.size=e.snapshotData.content.size||{w:n.width,h:n.height}}(e,r),t&&n))return function({layout:e,chart:t,viewState:n,colorService:r}){return e.snapshotData.content=e.snapshotData.content||{},e.snapshotData.content.chartData={legendScrollOffset:_g(t,"legend-cat"),rotation:n.get("rotation")},r.getSnapshotData().then((t=>{e.snapshotData.content.chartData={...e.snapshotData.content.chartData,...t}})).catch((()=>{}))}({layout:e,chart:t.chart,colorService:n.colorService,viewState:t.viewState})})),e.useImperativeHandle((()=>({getViewState:()=>({rotation:t.viewState.get("rotation"),legendScrollOffset:_g(t.chart,"legend-cat")})})),[t])}var c0={exports:{}};!function(e){self,e.exports=(()=>{var e={909:e=>{var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},a=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,i=t.call(e,"constructor"),o=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!i&&!o)return!1;for(r in e);return void 0===r||t.call(e,r)},s=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(i)return i(e,n).value}return e[n]};e.exports=function e(){var t,n,r,i,c,u,d=arguments[0],f=1,h=arguments.length,p=!1;for("boolean"==typeof d&&(p=d,d=arguments[1]||{},f=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});f<h;++f)if(null!=(t=arguments[f]))for(n in t)r=l(d,n),d!==(i=l(t,n))&&(p&&i&&(a(i)||(c=o(i)))?(c?(c=!1,u=r&&o(r)?r:[]):u=r&&a(r)?r:{},s(d,{name:n,newValue:e(p,u,i)})):void 0!==i&&s(d,{name:n,newValue:i}));return d}},8:(e,t)=>{(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},a=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,i=t.call(e,"constructor"),o=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!i&&!o)return!1;for(r in e);return void 0===r||t.call(e,r)},s=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(i)return i(e,n).value}return e[n]};e.exports=function e(){var t,n,r,i,c,u,d=arguments[0],f=1,h=arguments.length,p=!1;for("boolean"==typeof d&&(p=d,d=arguments[1]||{},f=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});f<h;++f)if(null!=(t=arguments[f]))for(n in t)r=l(d,n),d!==(i=l(t,n))&&(p&&i&&(a(i)||(c=o(i)))?(c?(c=!1,u=r&&o(r)?r:[]):u=r&&a(r)?r:{},s(d,{name:n,newValue:e(p,u,i)})):void 0!==i&&s(d,{name:n,newValue:i}));return d}}},n={};function r(t){var i=n[t];if(void 0!==i)return i.exports;var o=n[t]={exports:{}};return e[t](o,o.exports,r),o.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};(()=>{r.r(i),r.d(i,{default:()=>Te});var e=r(229),t=r.n(e);const n=function(e,t,n){if(!t)return!1;var r,i=t.split("."),o=i[i.length-1],a=e;for(r=0;r<i.length-1;++r)void 0===a[i[r]]&&(a[i[r]]=Number.isNaN(+i[r+1])?{}:[]),a=a[i[r]];if(void 0!==n){var s=a[o];return a[o]=n,{updated:n,previous:s}}return delete a[o],!1},o=function(e,t,n){var r,i=t.split("."),o=e;if(void 0===o)return n;for(r=0;r<i.length;++r){if(void 0===o[i[r]])return n;o=o[i[r]]}return o},a={EXPRESSIONS:{observed:"",trend:"STL_Trend",seasonal:"STL_Seasonal",residual:"STL_Residual"},OPTIONS:[{value:"observed",translation:"cao.trendDecomposition.parameters.decomposition.observed"},{value:"trend",translation:"cao.trendDecomposition.parameters.decomposition.trend"},{value:"seasonal",translation:"cao.trendDecomposition.parameters.decomposition.seasonal"},{value:"residual",translation:"cao.trendDecomposition.parameters.decomposition.residual"}]};var s="".concat(" ","(").concat(" "),l="".concat(" ",")").concat(" ");function c(e){return s+e+l}function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.qLibraryId){var n=function(e,t){if(!t)return null;var n,r;for(n=0;n<t.length;n++)if((r=t[n]).qInfo.qId===e)return r;return null}(e.qLibraryId,t.dimensionList);return n&&n.qData.info[0].qTags.indexOf("$numeric")>-1}var r=function(e,t){if(!t)return null;var n,r,i=function(e){var t=e.trim();"="===t.charAt(0)&&(t=(t=t.substring(1)).trim());var n=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(n)&&(t=(t=t.substring(1,n)).trim()),t}(e);for(n=0;n<t.length;n++){if((r=t[n]).qName===i)return r;if(r.qDerivedFieldData)for(var o=0;o<r.qDerivedFieldData.qDerivedFieldLists.length;++o)for(var a=r.qDerivedFieldData.qDerivedFieldLists[o],s=0;s<a.qFieldDefs.length;++s){var l=a.qFieldDefs[s];if(l.qName===i)return l}}return null}(e.qDef.qFieldDefs[0],t.fieldList);return r&&r.qTags.indexOf("$numeric")>-1}function d(e){return!(!e.fullAccumulation&&!e.fullRange)}function f(e,t){var n=e.crossAllDimensions;return 2===t&&n?"RowNo(Total)":"RowNo()"}function h(e){var t=function(e){return e?(e=function(e){return e.replace(/\/\*[^]*?\*\//g,"")}(e=function(e){return e.replace(/\/\/(.*)$/gm,"")}(e))).trim():""}(e),n=t.trim();return"="===n.substring(0,1)?n.substring(1).trim():n}function p(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function m(e,t){var n=e.crossAllDimensions;return 2===t&&n?"Above(Total ":"Above("}function g(e){return void 0===e?")":", 0, ".concat(e,")")}function y(e){return"Replace(Replace(".concat(e,",'''',''''''),'$','$''&''')")}function v(e,t){return e?"".concat(t,'={">=$(=Min(').concat(t,"))<=$(=Max(").concat(t,'))"}'):"".concat(t,'={"=Only({1}').concat(t,")>='$(=").concat(y("MinString(".concat(t,")")),")' and Only({1}").concat(t,")<='$(=").concat(y("MaxString(".concat(t,")")),")'\"}")}function b(e){var t=e.modifier,n=void 0===t?{}:t,r=e.dimensions,i=e.dimensionAndFieldList,o=e.funcComp,a=void 0===o?"Sum":o,s=e.valueComp,l=void 0===s?"0":s;if(!n.showExcludedValues)return"";if(r&&1===r.length){var c=v(u(r[0],i),p(0));return"".concat(a,"({1<").concat(c,">}").concat(l,")")}if(r&&2===r.length){var d=u(r[0],i),f=u(r[1],i),h=p(0),m=p(1),g=v(d,h),y=v(f,m);return"".concat(a,"({1<").concat(g,",").concat(y,">}").concat(l,")")}return"".concat(a,"({1}").concat(l,")")}function x(e){return"".concat(e,"(")}function w(e){var t=e.properties,n=e.layout;return o(t,"qHyperCubeDef.qDimensions",o(n,"qHyperCube.qDimensionInfo",[])).length}const k={isFullRange:d,getNumDimensions:w,getExpressionWithExcludedComp:function(e){var t=e.expression,n=e.modifier,r=e.dimensions,i=e.dimensionAndFieldList,o=e.treatMissingAsNull,a=c(h(t));if(!n.showExcludedValues)return a;var s=b({modifier:n,dimensions:r,dimensionAndFieldList:i}),l=o?"":", 0";if(r&&1===r.length){var u=p(0);return"If(Count(".concat(u,") > 0, ").concat(a," + ").concat(s).concat(l,")")}if(r&&2===r.length){var d=p(0),f=p(1);return"If(Count(".concat(d,") * Count(").concat(f,") > 0, ").concat(a," + ").concat(s).concat(l,")")}return a},getRowNoComp:f,getNumStepComp:function(e,t){if(!d(e)){var n=e.steps;return"number"!=typeof n||Number.isNaN(n)?6:n}return f(e,t)},getAboveCompPrefix:m,getAboveCompSuffix:g,getAboveComp:function(e,t,n,r){return m(e,t)+n+g(r)},getFunctionPrefix:x,getFunctionSuffix:function(){return")"},getRangeComp:function(e,t){return x(e)+t+")"},getAggrComp:function(e,t,n){return"Aggr(".concat(e,", ").concat(t,", ").concat(n,")")},getExcludedComp:b,needDimension:function(e){var t=e.modifier,n=e.properties,r=e.layout,i=function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(t);return 0===i&&2===w({properties:n,layout:r})},getDimComp:function(e,t){var n=function(e){return e[arguments.length>1&&void 0!==arguments[1]?arguments[1]:0].qDef.qSortCriterias[0]}(e,t),r=p(t);if(!n.qSortByExpression&&!n.qSortByNumeric&&!n.qSortByAscii)return r;var i=["Descending","Ascending"],o=n.qSortByNumeric?"(Numeric, ".concat(i[(n.qSortByNumeric+1)/2],")"):"",a=n.qSortByAscii?"(Text, ".concat(i[(n.qSortByAscii+1)/2],")"):"";return n.qSortByNumeric&&n.qSortByAscii?"(".concat(r,", ").concat(o,", ").concat(a,")"):n.qSortByNumeric?"(".concat(r,", ").concat(o,")"):n.qSortByAscii?"(".concat(r,", ").concat(a,")"):r},simplifyExpression:h,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var n=t.indexOf(s);if(-1!==n){var r=t.indexOf(l);if(-1!==r)return t.substring(n+s.length,r)}}},initModifier:function(e,t){Object.keys(t).forEach((function(n){void 0===e[n]&&(e[n]=t[n])}))},isNumeric:u,isApplicable:function(e){var t=e.properties,n=e.layout,r=e.minDimensions,i=void 0===r?1:r,o=e.maxDimensions,a=void 0===o?2:o;if(!t&&!n)return!0;var s=w({properties:t,layout:n});return s>=i&&s<=a},getExpressionWithMarkers:c,canExtract:function(e){var t=e.indexOf(s),n=e.indexOf(l);return t>-1&&n>-1&&t<n},getDimDefWithWrapper:p,getFieldWithWrapper:function(e){var t=e?e.replace(/]/g,"]]"):e;return"[".concat(t,"]")},generateTSDExpression:function(e,t,n){var r=t||e.outputExpression;if(e.base&&e.base.qDef&&(r=t!==e.base.qDef?t:e.base.qDef),"observed"!==e.decomposition){var i=n.qHyperCubeDef.qMeasures.find((function(t){return t.qDef.base&&t.qDef.base.qLibraryId&&e.base&&e.base.qLibraryId?t.qDef.base.qLibraryId===e.base.qLibraryId:null}));i&&t!==i.qDef.qLabel&&(r=i.qLibraryId||i.qDef.base.qLibraryId?"[".concat(i.qDef.qLabel,"]"):i.qDef.base.qDef);var o=function(e){var t=a.OPTIONS.find((function(t){return t.value===e.decomposition}));return t?a.EXPRESSIONS[t.value]:""}(e);r=r.startsWith("=")?r.substr(1):r,r="".concat(o,"(").concat(r,", ").concat(e.steps,")")}return r},getDecomposition:function(e){var t="observed";return Object.values(a.EXPRESSIONS).find((function(n){var r=e.qDef.base.qDef.toLowerCase()||e.qDef.qDef.toLowerCase();return a.EXPRESSIONS[n]&&r.includes(a.EXPRESSIONS[n].toLowerCase())&&(t=n),n})),t}};function S(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function C(e){return C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},C(e)}var E=t().bind(null,!0),M={},_=Array.isArray;function q(e){return null!=e&&!Array.isArray(e)&&"object"===C(e)}function D(e){return void 0===e}function R(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function T(e,t){var n,r=t.substring(1).split("/").slice(0,-1);return r.forEach((function(t,i){if(i!==r.length){n=+t;var o=Number.isNaN(n)?{}:[];e[n||t]=D(e[n||t])?o:e[t],e=e[n||t]}})),e}function O(e,t){var n=!0;if(q(e)&&q(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((function(r){O(e[r],t[r])||(n=!1)})),n);if(_(e)&&_(t)){if(e.length!==t.length)return!1;for(var r=0,i=e.length;r<i;r+=1)if(!O(e[r],t[r]))return!1;return!0}return e===t}M.generate=function(e,t,n){n=n||"";var r=[];return Object.keys(t).forEach((function(i){var o=function(e){return e?E({},{val:e}).val:e}(t[i]),a=e[i],s="".concat(n,"/").concat(i);O(o,a)||R(t,i)||(D(a)?r.push({op:"add",path:s,value:o}):q(o)&&q(a)?r=r.concat(M.generate(a,o,s)):_(o)&&_(a)?r=r.concat(function(e,t,n){var r=[],i=e.slice(),o=-1;function a(e,t,n){if(e[n]&&D(e[n].qInfo))return null;if(e[n]&&e[n].qInfo.qId===t)return n;for(var r=0,i=e.length;r<i;r+=1)if(e[r]&&e[r].qInfo.qId===t)return r;return-1}if(O(t,i))return r;if(!D(t[0])&&D(t[0].qInfo))return r.push({op:"replace",path:n,value:t}),r;for(var s=i.length-1;s>=0;s-=1)-1===(o=a(t,i[s].qInfo&&i[s].qInfo.qId,s))?(r.push({op:"remove",path:"".concat(n,"/").concat(s)}),i.splice(s,1)):r=r.concat(M.generate(i[s],t[o],"".concat(n,"/").concat(s)));for(var l=0,c=t.length;l<c;l+=1)-1===(o=a(i,t[l].qInfo&&t[l].qInfo.qId))?(r.push({op:"add",path:"".concat(n,"/").concat(l),value:t[l]}),i.splice(l,0,t[l])):o!==l&&(r.push({op:"move",path:"".concat(n,"/").concat(l),from:"".concat(n,"/").concat(o)}),i.splice(l,0,i.splice(o,1)[0]));return r}(a,o,s)):r.push({op:"replace",path:"".concat(n,"/").concat(i),value:o}))})),Object.keys(e).forEach((function(i){D(t[i])&&!R(e,i)&&r.push({op:"remove",path:"".concat(n,"/").concat(i)})})),r},M.apply=function(e,t){t.forEach((function(t){var n,r,i=T(e,t.path),o=t.path.split("/").splice(-1)[0],a=o&&Number.isNaN(+o)?i[o]:i[+o]||i,s=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(i=null,a=e),"add"===t.op||"replace"===t.op)if(_(i))"-"===o&&(o=i.length),i.splice(+o,"add"===t.op?0:1,t.value);else if(_(a)&&_(t.value)){var l,c=t.value.slice();a.length=0,(l=a).push.apply(l,function(e){if(Array.isArray(e))return S(e)}(r=c)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||function(e,t){if(e){if("string"==typeof e)return S(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?S(e,t):void 0}}(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}else if(q(a)&&q(t.value))n=a,Object.keys(n).forEach((function(e){Object.getOwnPropertyDescriptor(n,e).configurable&&!R(n,e)&&delete n[e]})),E(a,t.value);else{if(!i)throw new Error("Patchee is not an object we can patch");i[o]=t.value}else if("move"===t.op){var u=T(e,t.from);_(i)?i.splice(+o,0,u.splice(+s,1)[0]):(i[o]=u[s],delete u[s])}else"remove"===t.op&&(_(i)?i.splice(+o,1):delete i[o])}))},M.clone=function(e){return E({},e)},M.createPatch=function(e,t,n){var r={op:e.toLowerCase(),path:n};return"move"===r.op?r.from=t:void 0!==t&&(r.value=t),r},M.updateObject=function(e,t){Object.keys(e).length?M.apply(e,M.generate(e,t)):E(e,t)};const P=M,N=function(e,n,r){if(!e)return Promise.resolve();var i=P.generate(n,r);return t()(!0,n,r),i&&i.length?(i=i.map((function(e){return{qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}})),e.applyPatches(i,!0)):Promise.resolve()};var A="accumulation";function I(e,t){var n=o(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===A)return n[r]}function L(e,t){var n=function(e,t){var n=o(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===A)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var z={type:"accumulation",disabled:!1,accumulationDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullAccumulation:!1,steps:6,outputExpression:""};const F={translationKey:"properties.modifier.accumulation",needDimension:k.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return k.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,i=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!n)return t;var l=a;void 0===l&&(l=k.getNumDimensions({properties:r,layout:i}));var c=o(r,"qHyperCubeDef.qDimensions",[]),u=k.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:c,dimensionAndFieldList:s}),d=k.getNumStepComp(n,l),f=k.getAboveComp(n,l,u,d),h=k.getRangeComp("RangeSum",f);if(k.needDimension({modifier:n,properties:r,layout:i})){var p=k.getDimComp(c,1),m=k.getDimComp(c,0),g=k.getAggrComp(h,p,m);h=n.showExcludedValues?k.getExcludedComp({modifier:n,dimensions:c,dimensionAndFieldList:s,valueComp:g}):g}return h},extractInputExpression:k.extractInputExpression,initModifier:function(e){k.initModifier(e,z)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.accumulation.disclaimer",show:function(e,t){return!k.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(L(t,e),".accumulationDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.accumulation.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(L(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.accumulation.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(L(t,e),".fullAccumulation")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(L(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var n=I(t,e);if(n){var r=n.steps;n.steps="number"!=typeof r||Number.isNaN(r)?6:Math.abs(r)}},show:function(t){var n=I(t,e);return n&&!n.fullAccumulation}},showExcludedValues:{refFn:function(t){return"".concat(L(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return k.isApplicable({properties:t.properties})}}},show:function(t,n,r){var i=r.ext.support.modifiers;if(!Array.isArray(i)||-1===i.indexOf(A))return!1;var o=I(t,e);return o&&!o.disabled}};return n}};var j="movingAverage";function $(e,t){var n=o(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===j)return n[r]}function H(e,t){var n=function(e,t){var n=o(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===j)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var V={type:"movingAverage",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullRange:!1,steps:6,outputExpression:"",nullSuppression:!1};const B={translationKey:"properties.modifier.movingAverage",needDimension:k.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return k.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t,n=e.expression,r=e.modifier,i=e.properties,a=e.layout,s=e.numDimensions,l=e.dimensionAndFieldList;if(!r)return n;var c=s;void 0===c&&(c=k.getNumDimensions({properties:i,layout:a}));var u=o(i,"qHyperCubeDef.qDimensions",[]),d=r.showExcludedValues&&r.nullSuppression,f=k.getExpressionWithExcludedComp({expression:n,modifier:r,dimensions:u,dimensionAndFieldList:l,treatMissingAsNull:d}),h=k.getNumStepComp(r,c),p=k.getAboveComp(r,c,f,h);if(r.nullSuppression)t=k.getRangeComp("RangeAvg",p);else{var m=k.getRangeComp("RangeSum",p),g=function(e,t){var n=k.getRowNoComp(e,t);if(!k.isFullRange(e)){var r=e.steps,i="number"!=typeof r||Number.isNaN(r)?6:r;return"RangeMin(".concat(i,", ").concat(n,")")}return n}(r,c);t="".concat(m," / ").concat(g)}var y=t;if(k.needDimension({modifier:r,properties:i,layout:a})){var v=k.getDimComp(u,1),b=k.getDimComp(u,0),x=k.getAggrComp(y,v,b);y=r.showExcludedValues?k.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:l,funcComp:"Only",valueComp:x}):x}return y},extractInputExpression:k.extractInputExpression,initModifier:function(e){k.initModifier(e,V)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.movingAverage.disclaimer",show:function(e,t){return!k.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(H(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.movingAverage.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(H(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.movingAverage.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(H(t,e),".fullRange")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(H(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var n=$(t,e);if(n){var r=n.steps;n.steps="number"!=typeof r||Number.isNaN(r)?6:Math.abs(r)}},show:function(t){var n=$(t,e);return n&&!n.fullRange}},showExcludedValues:{refFn:function(t){return"".concat(H(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat(H(t,e),".nullSuppression")},type:"boolean",translation:t.showNull||"properties.dimensions.showNull",schemaIgnore:!0,defaultValue:!1,inverted:!0}},show:function(e,t){return k.isApplicable({properties:t.properties})}}},show:function(t,n,r){var i=r.ext.support.modifiers;if(!Array.isArray(i)||-1===i.indexOf(j))return!1;var o=$(t,e);return o&&!o.disabled}};return n}};var W="timeSeriesDecomposition";function U(e,t){var n=o(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===W)return n[r]}function Y(e,t){var n=function(e,t){var n=o(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===W)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var K={type:"timeSeriesDecomposition",disabled:!1,decomposition:"",steps:2,outputExpression:""};const G={translationKey:"properties.modifier.timeSeriesDecomposition",needDimension:k.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return k.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties;return n?k.generateTSDExpression(n,t,r):t},extractInputExpression:k.extractInputExpression,initModifier:function(e,t){k.initModifier(e,K),""===e.decomposition&&t&&(e.decomposition=k.getDecomposition(t))},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.timeSeriesDecomposition||"properties.modifier.timeSeriesDecomposition",show:function(e,t){return!k.isApplicable({properties:t.properties})}},settings:{type:"items",items:{decomposition:{refFn:function(t){return"".concat(Y(t,e),".decomposition")},type:"string",translation:t.modifierTrendDecompositionDecomposition||"properties.modifier.trendDecomposition.decomposition",component:"dropdown",schemaIgnore:!0,defaultValue:t.trendDecompositionParametersDecompositionObserved||"cao.trendDecomposition.parameters.decomposition.observed",options:a.OPTIONS},steps:{refFn:function(t){return"".concat(Y(t,e),".steps")},type:"integer",translation:t.modifierTimeSeriesDecompositionPeriods||"properties.modifier.timeSeriesDecomposition.periods",schemaIgnore:!0,defaultValue:2,change:function(t,n){var r=U(t,e);if(r){var i=r.steps;r.steps="number"!=typeof i||Number.isNaN(i)?2:Math.abs(i),n.properties.qHyperCubeDef.qMeasures=n.properties.qHyperCubeDef.qMeasures.map((function(e){return e.qDef.modifiers.map((function(e){return"timeSeriesDecomposition"===e.type?e.steps=i:e.steps=e.steps,e})),e}))}},show:function(t){var n=U(t,e);return n&&!n.fullRange}}},show:function(e,t){return k.isApplicable({properties:t.properties})}}},show:function(t,n,r){var i=r.ext.support.modifiers;if(!Array.isArray(i)||-1===i.indexOf(W))return!1;var o=U(t,e);return o&&!o.disabled}};return n}};var X="difference";function J(e,t){var n=o(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===X)return n[r]}function Z(e,t){var n=function(e,t){var n=o(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===X)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var Q={type:"difference",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,outputExpression:""};const ee={translationKey:"properties.modifier.difference",needDimension:k.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return k.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},extractInputExpression:k.extractInputExpression,generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,i=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!n)return t;var l=a;void 0===l&&(l=k.getNumDimensions({properties:r,layout:i}));var c=o(r,"qHyperCubeDef.qDimensions",[]),u=k.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:c,dimensionAndFieldList:s}),d=k.getAboveComp(n,l,u),f="".concat(u," - ").concat(d);if(k.needDimension({modifier:n,properties:r,layout:i})){var h=k.getDimComp(c,1),p=k.getDimComp(c,0),m=k.getAggrComp(f,h,p);f=n.showExcludedValues?k.getExcludedComp({modifier:n,dimensions:c,dimensionAndFieldList:s,funcComp:"Only",valueComp:m}):m}return f},initModifier:function(e){Object.keys(Q).forEach((function(t){void 0===e[t]&&(e[t]=Q[t])}))},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.difference.disclaimer",show:function(e,t){return!k.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(Z(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.difference.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(Z(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.difference.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},showExcludedValues:{refFn:function(t){return"".concat(Z(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return k.isApplicable({properties:t.properties})}}},show:function(t,n,r){var i=r.ext.support.modifiers;if(!Array.isArray(i)||-1===i.indexOf(X))return!1;var o=J(t,e);return o&&!o.disabled}};return n}};var te="normalization";function ne(e,t){var n=o(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===te)return n[r]}function re(e,t){var n=function(e,t){var n=o(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===te)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}function ie(e,t){for(var n=0;n<e.length;n++)if(e[n].value===t)return n;return-1}var oe={type:"normalization",disabled:!1,primaryDimension:0,outputExpression:"",dimensionalScope:2,selectionScope:2};function ae(e){return 2===e?"{1}":""}function se(e,t,n){return 1===e?"{$<".concat(k.getFieldWithWrapper(t),"={'").concat(n,"'}>}"):""}function le(e,t){return 0===e&&t>1||2===e?"Total":""}function ce(e,t,n){return 0===e&&t>1?"<".concat(k.getDimDefWithWrapper(n),">"):""}const ue={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,n=e.layout;return k.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},extractInputExpression:k.extractInputExpression,generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,i=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!n)return t;var l=a;void 0===l&&(l=k.getNumDimensions({properties:r,layout:i}));var c=o(r,"qHyperCubeDef.qDimensions",[]),u=k.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:c,dimensionAndFieldList:s}),d=n.selectionScope,f=n.dimensionalScope;return function(e,t,n,r,i,o,a){var s=ae(t),l=se(t,n,r),c=""===s&&""===l?"":s||l,u=le(i,o),d=ce(i,o,a),f=function(e){for(var t=[],n=0;n<e;n++)t[n]=k.getDimDefWithWrapper(n);return t.join(", ")}(o);return"".concat(e,"/ Sum(").concat(c," ").concat(u).concat(d," Aggr(").concat(c," ").concat(e,", ").concat(f,"))")}(u,d,n.field,n.value,f,l,n.primaryDimension)},initModifier:function(e){Object.keys(oe).forEach((function(t){void 0===e[t]&&(e[t]=oe[t])}))},updateModifier:function(e,t){1===(t.qDimensions?t.qDimensions.length:0)&&0===e.dimensionalScope&&(e.dimensionalScope=2)},enableTotalsFunction:function(){return!0},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.normalization.disclaimer",show:function(e,t){return!k.isApplicable({properties:t.properties})}},settings:{type:"items",items:{selectionScope:{refFn:function(t){return"".concat(re(t,e),".selectionScope")},type:"string",translation:t.modifierSelectionScope||"properties.modifier.selectionScope",title:{translation:t.modifierSelectionScopeTooltip||"properties.modifier.selectionScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,options:function(n){return function(e,t,n){var r=[{value:0,translation:t.selectionScopeCurrentSelection||"properties.modifier.selectionScope.currentSelection"},{value:1,translation:t.selectionScopeSpecificValue||"properties.modifier.selectionScope.selectAField"},{value:2,translation:t.selectionScopeTotal||"properties.modifier.selectionScope.total"}];return r=function(e,t){if(1===e){var n=ie(t,0);t.splice(n,1)}return t}(ne(e,n).dimensionalScope,r),r}(n,t,e)}},field:{refFn:function(t){return"".concat(re(t,e),".field")},type:"string",component:"expression-with-dropdown",translation:"Common.Field",defaultValue:"",dropdownOnly:!0,options:function(e,t,n){return n.app.getFieldList().then((function(e){return e.map((function(e){return{label:e.qName,value:e.qName}}))}))},show:function(t){return 1===ne(t,e).selectionScope}},value:{refFn:function(t){return"".concat(re(t,e),".value")},type:"string",ref:"value",component:"string",translation:"properties.value",expression:"optional",show:function(t){return 1===ne(t,e).selectionScope}},dimensionalScope:{refFn:function(t){return"".concat(re(t,e),".dimensionalScope")},type:"string",translation:t.modifierDimensionalScope||"properties.modifier.dimensionalScope",title:{translation:t.modifierDimensionalScopeTooltip||"properties.modifier.dimensionalScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,supportTooltip:!0,options:function(n,r){return function(e,t,n,r){var i=t.layout.qHyperCube.qDimensionInfo.length,o=[{value:0,translation:n.dimensionalScopeOneDimension||"properties.modifier.dimensionalScope.respectOneDimension",tooltipTranslation:n.dimensionalScopeOneDimensionTooltip||"properties.modifier.dimensionalScope.respectOneDimension.tooltip"},{value:1,translation:n.dimensionalScopeAllDimensions||"properties.modifier.dimensionalScope.".concat(2===i?"respectAllDimensions":"respectDimension"),tooltipTranslation:n.dimensionalScopeAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===i?"respectAllDimensions":"respectDimension",".tooltip")},{value:2,translation:n.dimensionalScopeDisregardAllDimensions||"properties.modifier.dimensionalScope.".concat(2===i?"disregardAllDimensions":"disregardDimension"),tooltipTranslation:n.dimensionalScopeDisregardAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===i?"disregardAllDimensions":"disregardDimension",".tooltip")}];return o=function(e,t){if(e<2){var n=ie(t,0);t.splice(n,1)}return t}(i,o),o=function(e,t){if(0===e){var n=ie(t,1);t.splice(n,1)}return t}(ne(e,r).selectionScope,o),o}(n,r,t,e)}},primaryDimension:{refFn:function(t){return"".concat(re(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.normalization.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(t,n){return 0===(ne(t,e).dimensionalScope||0)&&n.layout.qHyperCube.qDimensionInfo.length>1}}},show:function(e,t){return k.isApplicable({properties:t.properties})}}},show:function(t,n,r){var i=r.ext.support.modifiers;if(!Array.isArray(i)||-1===i.indexOf(te))return!1;var o=ne(t,e);return o&&!o.disabled}};return n},getDisregardSelectionComp:ae,getFieldSelectionComp:se,getTotalComp:le,getSelectedDimComp:ce};var de="qDef.base",fe="qDef.qDef",he="qDef.base.qDef",pe="qLibraryId",me="qDef.base.qLibraryId";const ge={getExpression:function(e){var t=o(e,he);return void 0!==t?t:o(e,fe)},getExpressionRef:function(e){return void 0!==o(e,he)?he:fe},getLibraryIdRef:function(e){return o(e,me)?me:pe},getLibraryId:function(e){return o(e,me)||o(e,pe)},getLabelRef:function(e){return o(e,de)?"qDef.base.qLabel":"qDef.qLabel"},getLabelExpressionRef:function(e){return o(e,de)?"qDef.base.qLabelExpression":"qDef.qLabelExpression"}};var ye="qDef.qDef",ve="qDef.base.qDef",be="qLibraryId",xe="qDef.base.qLibraryId",we="qDef.qLabel",ke="qDef.qLabelExpression",Se="qDef.base.qLabel",Ce="qDef.base.qLabelExpression",Ee="qDef.qAggrFunc",Me="qDef.base.qAggrFunc",_e={initBase:function(e,t){(t||_e.isValid(e))&&(n(e,ve,o(e,ye)),n(e,xe,o(e,be)),n(e,Se,o(e,we)),n(e,Ce,o(e,ke)))},restoreBase:function(e){_e.isValid(e)&&(n(e,ye,o(e,ve)),n(e,be,o(e,xe)),n(e,we,o(e,Se)),n(e,ke,o(e,Ce)),o(e,Ee)&&o(e,Me)&&n(e,Ee,o(e,Me)),delete e.qDef.base)},isValid:function(e){var t=o(e,ve),n=o(e,xe);return void 0!==t||void 0!==n}};const qe=_e;function De(e){return De="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},De(e)}var Re={accumulation:F,movingAverage:B,difference:ee,normalization:ue,timeSeriesDecomposition:G};const Te={modifiers:Re,apply:Pe,applyModifiers:Ne,cleanUpMeasure:Ae,destroy:function(e){e&&Oe[e.id]&&Oe[e.id].masterItemSubscriber&&(Oe[e.id].masterItemSubscriber&&Oe[e.id].masterItemSubscriber.unsubscribe(),delete Oe[e.id])},hasActiveModifiers:Ie,getActiveModifier:Le,initBase:qe.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some((function(e){return Re[e]}))},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,n=e.properties,r=e.layout;return Array.isArray(t)&&t.some((function(e){return Re[e]&&Re[e].isApplicable({properties:n,layout:r})}))},measureBase:ge,limitedSorting:function(e){var t=e.measures,n=e.properties,r=e.layout,i=!1,o=!1;return t.forEach((function(e){var t=je(e);Ye({modifiers:t,properties:n,layout:r})&&(i=!0,o=o||Ze({modifiers:t,properties:n,layout:r}))})),i&&!o},ifEnableTotalsFunction:ze};var Oe={};function Pe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.model,r=e.properties,i=e.isSnapshot,a=void 0!==i&&i,s=e.masterItem,l=!1;Oe[n.id]=Oe[n.id]||{isFirstTime:!0};var c=Oe[n.id].isFirstTime;if(Oe[n.id].isFirstTime=!1,r&&"object"===De(r))return Ne({model:n,properties:r});var u=n?n.layout:void 0,d=o(u,"qSelectionInfo.qInSelections");if(a||d)return Promise.resolve(l);var f=o(u,"qHyperCube.qMeasureInfo"),h=Oe[n.id].lastReloadTime;if(Oe[n.id].lastReloadTime=o(n,"app.layout.qLastReloadTime"),Ie({measures:f,layout:u})){var p=function(e){var t=e.measures,n=e.layout,r=e.lastReloadTime;return o(e.model,"app.layout.qLastReloadTime")!==r&&function(e){var t=e.measures,n=e.properties,r=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ue({measure:e,properties:n,layout:r})}))}({measures:t,layout:n})}({measures:f,layout:u,model:n,lastReloadTime:h});return p||function(e){var t=e.measures,n=e.layout,r=e.masterItem,i=e.isFirstTime;return!!Array.isArray(t)&&(i||r||t.some((function(e){return function(e){var t=e.measure,n=e.layout;return Ye({modifiers:je(t),layout:n})?!t.base:!!t.base}({measure:e,layout:n})})))}({measures:f,layout:u,masterItem:s,isFirstTime:c})?n.getEffectiveProperties().then((function(e){var r=t()(!0,{},e);He(r);var i=Qe(r);return Ke({model:n}).then((function(t){return Ge({libraryIds:i,model:n}).then((function(i){return p&&function(e){var t=e.properties;Fe(t).forEach((function(e){return function(e){var t=e.measure;if(Ue({measure:t,properties:e.properties})){var n=0,r=t.qDef.modifiers;Array.isArray(r)&&r.forEach((function(e){if("object"===De(e)&&!e.disabled){if(n++,"object"!==De(Re[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(n>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");var r=Re[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==r&&Be(t)&&k.simplifyExpression(t.qDef.base.qDef)!==k.simplifyExpression(r)&&(t.qDef.base.qDef=r)}}))}}({measure:e,properties:t})}))}({properties:r}),Ne({model:n,oldProperties:e,properties:r,runUpdateIfChange:!0,masterItem:s,libraryItemsProps:i,dimensionAndFieldList:t})}))}))})):Promise.resolve(l)}return function(e){return!!Array.isArray(e)&&e.some((function(e){return"object"===De(e.base)}))}(f)?n.getEffectiveProperties().then((function(e){return function(e){var n=e.model,r=e.properties,i=Qe(r);return et({model:n,libraryIds:i}).then((function(){var e=t()(!0,{},r);return Fe(r).forEach((function(e){return Ae(e)})),Je({oldProperties:e,newProperties:r,model:n})}))}({model:n,properties:e})})):Promise.resolve(l)}function Ne(e){var n=e.model,r=e.oldProperties,i=e.properties,a=e.measures,s=e.runUpdateIfChange,l=void 0!==s&&s,c=e.masterItem,u=e.libraryItemsProps,d=e.dimensionAndFieldList;void 0===r&&(r=l?t()(!0,{},i):i),He(i);var f=Qe(i);return et({model:n,libraryIds:f,masterItem:c}).then((function(){return function(e){var n=e.measures,r=e.properties,i=e.model,a=e.libraryItemsProps,s=e.dimensionAndFieldList;if(n||(n=Fe(r)),!n.length)return Promise.resolve();if(!Ie({measures:n,properties:r}))return n.forEach((function(e){return Ae(e)})),Promise.resolve();var l=a?void 0:Qe(r);return Ke({model:i,dimensionAndFieldList:s}).then((function(e){return Ge({libraryIds:l,model:i,libraryItemsProps:a}).then((function(i){n.forEach((function(n){Ye({modifiers:n.qDef.modifiers,properties:r})?(function(e){var n=e.measure,r=e.properties,i=e.libraryItemsProps,a=e.dimensionAndFieldList,s=0;qe.isValid(n)||qe.initBase(n,!0);var l=n.qDef,c=l.modifiers,u=l.base;Array.isArray(c)&&c.forEach((function(e){if("object"===De(e)&&!e.disabled){if(s++,"object"!==De(Re[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(s>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");Re[e.type].initModifier(e,n);var l=n.qLibraryId||u&&u.qLibraryId;l?function(e){var n=e.measure,r=e.modifier,i=e.properties,o=e.dimensionAndFieldList,a=e.libraryItemsProps[e.libraryId],s=a.qMeasure.qDef,l=""===s?s:Re[r.type].generateExpression({expression:s,modifier:r,properties:i,dimensionAndFieldList:o});r.outputExpression=l,n.qDef.qDef=r.outputExpression,(n.qDef.qLabel||a.qMeasure.qLabel)&&(n.qDef.qLabel=a.qMeasure.qLabel),(n.qDef.qLabelExpression||a.qMeasure.qLabelExpression)&&(n.qDef.qLabelExpression=a.qMeasure.qLabelExpression),n.qDef.quarantine&&n.qDef.quarantine.qNumFormat&&a.qMeasure.qNumFormat&&(n.qDef.qNumFormat=a.qMeasure.qNumFormat,n.qDef.isCustomFormatted=a.qMeasure.isCustomFormatted),delete n.qLibraryId,n.qDef.coloring=a.qMeasure.coloring,r.base=t()(!0,{},n.qDef.base)}({measure:n,modifier:e,libraryId:l,properties:r,libraryItemsProps:i,dimensionAndFieldList:a}):function(e){var n=e.measure,r=e.modifier,i=e.properties,o=e.dimensionAndFieldList;"function"==typeof Re[r.type].updateModifier&&Re[r.type].updateModifier(r,i.qHyperCubeDef);var a=ge.getExpression(n),s=""===a?a:Re[r.type].generateExpression({expression:a,modifier:r,properties:i,dimensionAndFieldList:o});r.outputExpression=s,n.qDef.qDef=r.outputExpression,n.qDef.base.qLabelExpression?n.qDef.qLabelExpression=n.qDef.base.qLabelExpression:n.qDef.qLabel=n.qDef.base.qLabel||a,r.base=t()(!0,{},n.qDef.base)}({measure:n,modifier:e,properties:r,dimensionAndFieldList:a}),function(e){var t=o(e,"qDef.qAggrFunc");"Expr"!==t||ze(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&ze(e)&&"Expr"===e.qDef.base.qAggrFunc&&(e.qDef.qAggrFunc="Expr",delete e.qDef.base.qAggrFunc):(e.qDef.qAggrFunc="None",e.qDef.base.qAggrFunc="Expr")}(n)}}))}({measure:n,properties:r,libraryItemsProps:i,dimensionAndFieldList:e}),Ve(n)):Ae(n)}))}))}))}({measures:a,properties:i,model:n,libraryItemsProps:u,dimensionAndFieldList:d}).then((function(){return l?Je({oldProperties:r,newProperties:i,model:n}):Promise.resolve(!1)}))}))}function Ae(e){!function(e){var t=je(e);return Array.isArray(t)&&t.some((function(e){return"object"===De(e)&&!e.disabled&&!Re[e.type]}))}(e)?qe.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,Ve(e)}function Ie(e){var t=e.measures,n=e.properties,r=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ye({modifiers:je(e),properties:n,layout:r})}))}function Le(e){var t=je(e);if(Array.isArray(t))for(var n=0;n<t.length;n++){var r=t[n];if(Re[r.type]&&!r.disabled)return r}}function ze(e){var t=Le(e);return!t||Re[t.type].enableTotalsFunction(e)}function Fe(e){return o(e,"qHyperCubeDef.qMeasures",[]).concat(o(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function je(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function $e(e){return o(e,"outputExpression.qValueExpression.qExpr")||o(e,"outputExpression")}function He(e){Fe(e).forEach((function(e){return function(e){var n=Le(e);n&&(void 0!==n.outputExpression&&$e(n)!==e.qDef.qDef?delete e.qDef.base:!qe.isValid(e)&&n.base&&(e.qDef.base=t()(!0,{},n.base)))}(e)}))}function Ve(e){var t=je(e);Array.isArray(t)&&t.forEach((function(t){"object"===De(t)&&(t.disabled||!Re[t.type]&&$e(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)}))}function Be(e){return e.base||e.qDef&&e.qDef.base}function We(e){var t=Be(e);return e.qLibraryId||t&&t.qLibraryId}function Ue(e){var t=e.measure,n=e.properties,r=e.layout;return!We(t)&&Ye({modifiers:je(t),properties:n,layout:r})}function Ye(e){var t=e.modifiers,n=e.properties,r=e.layout,i={};return Array.isArray(t)&&t.some((function(e){return!("object"!==De(e)||e.disabled||!Re[e.type])&&(void 0===i[e.type]&&(i[e.type]=Re[e.type].isApplicable({properties:n,layout:r})),i[e.type])}))}function Ke(e){var t=e.model,n=e.dimensionAndFieldList;if(n)return Promise.resolve(n);var r=[],i={},o=t.app.getDimensionList().then((function(e){i.dimensionList=e}));r.push(o);var a=t.app.getFieldList().then((function(e){i.fieldList=e}));return r.push(a),Promise.all(r).then((function(){return i}))}function Ge(e){var t=e.libraryIds,n=e.model,r=e.libraryItemsProps;if(r)return Promise.resolve(r);var i=t.measureLibraryIds,o=t.dimensionLibraryIds,a={},s=[];return i.forEach((function(e){var t=n.app.getMeasure(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));s.push(t)})),o.forEach((function(e){var t=n.app.getDimension(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));s.push(t)})),Promise.all(s).then((function(){return a}))}function Xe(e,t){if(""!==t||-1===["qFmt","qDec","qThou"].indexOf(e))return t}function Je(e){var t=e.oldProperties,n=e.newProperties,r=e.model,i=JSON.stringify(o(t,"qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(o(n,"qHyperCubeDef.qMeasures"),Xe)||JSON.stringify(o(t,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(o(n,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe);return i?function(e){var t=e.model,n=e.oldProperties,r=e.newProperties,i=t.layout;return i&&!i.qHasSoftPatches&&!i.qExtendsId&&o(i,"qMeta.privileges",[]).indexOf("update")>-1?t.setProperties(r):N(t,n,r)}({model:r,oldProperties:t,newProperties:n}).then((function(){return i})):Promise.resolve(i)}function Ze(e){var t=e.modifiers,n=e.properties,r=e.layout;return Array.isArray(t)&&t.some((function(e){return"object"===De(e)&&!e.disabled&&Re[e.type]&&Re[e.type].needDimension({modifier:e,properties:n,layout:r})}))}function Qe(e){var t=Fe(e),n=[],r=[],i=!1;return t.forEach((function(t){var r=je(t);if(Ye({modifiers:r,properties:e})){var o=We(t);o&&n.push(o),i=i||Ze({modifiers:r,properties:e})}})),o(e,"qHyperCubeDef.qDimensions",[]).forEach((function(e){var t=e.qLibraryId;t&&r.push(t)})),{measureLibraryIds:n,dimensionLibraryIds:r}}function et(e){var t=e.model,n=e.libraryIds;return!e.masterItem&&n&&(n.measureLibraryIds.length||n.dimensionLibraryIds.length)?(Oe[t.id].masterItemSubscriber=Oe[t.id].masterItemSubscriber||function(e){var t=e.model,n=e.callback,r={},i={},a={},s={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function l(e){var t={},n=o(e,"qInfo.qType");return n&&s[n]&&s[n].forEach((function(n){t[n]=o(e,n)})),JSON.stringify(t)}function c(e){var t=e.qInfo.qId;if(r[t]){var i=l(e);r[t].properties!==i&&(r[t].properties=i,"function"==typeof n&&r[t].enabled&&n(e)),r[t].enabled=!0}}function u(e,n){return t.app[n](e).then((function(t){r[e]={listener:t.layoutSubscribe(c),enabled:!1,properties:l(t.layout)}}))}return{subscribe:function(e){var n=e.measureLibraryIds,o=e.dimensionLibraryIds,s=[];return function(e){var t=e.dimensionLibraryIds;i={},e.measureLibraryIds.forEach((function(e){i[e]=!0})),a={},t.forEach((function(e){a[e]=!0}))}({measureLibraryIds:n,dimensionLibraryIds:o}),Object.keys(r).forEach((function(e){i[e]||a[e]||(r[e].listener.dispose(),delete r[e])})),t.app&&(Object.keys(i).forEach((function(e){i[e]&&!r[e]&&s.push(u(e,"getMeasure"))})),Object.keys(a).forEach((function(e){a[e]&&!r[e]&&s.push(u(e,"getDimension"))}))),Promise.all(s)},unsubscribe:function(){Object.keys(r).forEach((function(e){r[e].listener.dispose()})),r={}}}}({model:t,callback:function(e){return Pe({model:t,masterItem:e}).then((function(){return t.app.clearUndoBuffer()}))}}),Oe[t.id].masterItemSubscriber.subscribe(n)):Promise.resolve()}})(),t.default=i.default,Object.defineProperty(t,"__esModule",{value:!0})})()}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={exports:{}};return e[r](o,o.exports,n),o.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var r={};return(()=>{function e(t){var n,r=t;return r>9?(n=65+r-10)>90&&(n+=6):r="".concat(r).charCodeAt(0),[48,111,79,105,73,108].indexOf(n)>-1?e(r+1):String.fromCharCode(n)}function t(n){var r=e(n%62),i=Math.floor(n/62);return i>0?t(i)+r:r}function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}n.d(r,{default:()=>He});const o={getValue:function(e,t,n){if(null==e||null==t)return n;for(var r=t.split("."),i=e,o=0;o<r.length;++o){var a=r[o];if(""!==a){if(void 0===i[a]||null===i[a])return n;i=i[a]}}return i},setValue:function(e,t,n){if(null!=e&&null!=t){for(var r=t.split("."),i=r[r.length-1],o=e,a=0;a<r.length-1;++a){var s=r[a];void 0!==o[s]&&null!==o[s]||(o[s]=Number.isNaN(+r[a+1])?{}:[]),o=o[s]}void 0!==n?o[i]=n:delete o[i]}},isEmpty:function(e){return 0===Object.keys(e).length&&e.constructor===Object},isAtomicValue:function(e){return/boolean|number|string/.test(i(e))},generateId:function(){return t(Math.round(99e11*Math.random()+1e11)).replace(/\W/g,"")}};function a(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function l(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function u(e,t,n){if(e){for(var r=0;r<e.length;r++)if(e[r][t]===n)return r;return-1}return-1}const d={isOrderedSubset:function(e,t){if(!(e&&t&&e.length&&t.length))return!1;var n=e.indexOf(t[0]);if(-1!==n){for(var r=0;r<t.length;r++){var i=e.indexOf(t[r]);if(n>i)return!1;n=i}return!0}return!1},indexAdded:function(e,t){var n;for(n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)},indexRemoved:function(e,t){var n,r=0;for(n=0;n<e.length;++n)e[n]>t?--e[n]:e[n]===t&&(r=n);return e.splice(r,1),r},findItemByPropertyValue:function(e,t,n){if(e){for(var r=0;r<e.length;r++)if(e[r][t]===n)return e[r];return null}return null},findIndexByPropertyValue:u};var f=n(8),h=n.n(f);const p=function(e){var t,n=e.exportFormat,r=e.qHyperCubeDef,i=n.data[0];(t=i.dimensions).push.apply(t,a(r.qDimensions));var s,l=o.getValue(r,"qLayoutExclude.qHyperCubeDef.qDimensions");l&&(s=i.excludedDimensions).push.apply(s,a(l))},m=function(e){var t,n=e.exportFormat,r=e.qHyperCubeDef,i=n.data[0];(t=i.measures).push.apply(t,l(r.qMeasures));var a,s=o.getValue(r,"qLayoutExclude.qHyperCubeDef.qMeasures");s&&(a=i.excludedMeasures).push.apply(a,l(s))},g=function(e){var t=e.exportFormat,n=e.qHyperCubeDef,r=t.data[0];n.qInterColumnSortOrder||(n.qInterColumnSortOrder=[]),r.interColumnSortOrder=n.qInterColumnSortOrder.concat();var i=o.getValue(n,"qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder");i&&d.isOrderedSubset(i,r.interColumnSortOrder)&&(r.interColumnSortOrder=i.concat())},y=function(e){var t=e.exportFormat,n=e.properties;Object.keys(n).forEach((function(e){t.properties[e]=n[e]}))},v=function(e){var t=e.exportFormat,n=e.properties;n.qLayoutExclude||(n.qLayoutExclude={}),n.qLayoutExclude.disabled&&(Object.keys(n.qLayoutExclude.disabled).forEach((function(e){t.properties.hasOwnProperty(e)||(t.properties[e]=n.qLayoutExclude.disabled[e])})),delete n.qLayoutExclude.disabled),n.qLayoutExclude.changed&&(function(e){Object.keys(e.qLayoutExclude.changed).forEach((function(t){e.qLayoutExclude.changed[t].to===o.getValue(e,t)&&o.setValue(e,t,e.qLayoutExclude.changed[t].from)}))}(n),delete n.qLayoutExclude.changed),n.qLayoutExclude.quarantine&&!o.isEmpty(n.qLayoutExclude.quarantine)||delete n.qLayoutExclude},b=function(e){e.forEach((function(e){h().cleanUpMeasure(e),e.qDef.modifiers&&(e.store={modifiers:e.qDef.modifiers},delete e.qDef.modifiers)}))};function x(e,t,n){var r,i,a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],s=o.getValue(e,t);if(!o.isAtomicValue(s))try{if((i=(i=(r=JSON.stringify(s)).match(/:\{/g))?i.length:0)>2&&!a)return;s=JSON.parse(r)}catch(e){return}o.getValue(e,"qLayoutExclude.quarantine")||o.setValue(e,"qLayoutExclude.quarantine",{});var l=o.getValue(e,"qLayoutExclude.quarantine");l[n]||(l[n]={}),l[n][t]=s}var w=n(909),k=n.n(w);function S(e,t){var n=k()(!0,{},t,e);return o.getValue(n,"qOtherTotalSpec.qOtherCounted")||o.setValue(n,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),o.getValue(n,"qOtherTotalSpec.qOtherLimit")||o.setValue(n,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),n.hasOwnProperty("othersLabel")||(n.othersLabel="Others"),n}function C(e,t){return k()(!0,{},t,e)}function E(e,t,n){return"function"==typeof e?e(t):Number.isNaN(+e)?n:e}var M=Math.pow(2,53)-1;function _(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function q(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}const D=function(e,t,n){var r="masterobject"===o.getValue(t,"properties.qInfo.qType")?"masterobject":o.getValue(n,"qInfo.qType");o.setValue(e,"qInfo.qType",r),e.visualization=n.visualization},R=function(e,t,n){t.hasOwnProperty(e)&&(n[e]=t[e])},T=function(e,t,n,r){t.hasOwnProperty(e)?n[e]=t[e]:n[e]=r},O=function(){return{qDef:{autoSort:!0,cId:"",othersLabel:"Others"},qLibraryId:"",qNullSuppression:!1,qOtherLabel:"Others",qOtherTotalSpec:{qOtherLimitMode:"OTHER_GE_LIMIT",qOtherMode:"OTHER_OFF",qOtherSortMode:"OTHER_SORT_DESCENDING",qSuppressOther:!1}}},P=function(){return{qDef:{autoSort:!0,cId:"",numFormatFromTemplate:!0},qLibraryId:"",qTrendLines:[]}},N=function(e){var t,n=e.exportFormat,r=e.maxDimensions,i=e.minDimensions,o=e.newHyperCubeDef,a=e.defaultDimension,s=n.data[0];for(t=0;t<s.dimensions.length;++t){var l=S(s.dimensions[t],a);o.qDimensions.length<r?o.qDimensions.push(l):o.qLayoutExclude.qHyperCubeDef.qDimensions.push(l)}for(t=0;t<s.excludedDimensions.length;++t){var c=S(s.excludedDimensions[t],a);o.qDimensions.length<i?o.qDimensions.push(c):o.qLayoutExclude.qHyperCubeDef.qDimensions.push(c)}},A=function(e){var t,n=e.exportFormat,r=e.maxMeasures,i=e.minMeasures,o=e.newHyperCubeDef,a=e.defaultMeasure,s=n.data[0];for(t=0;t<s.measures.length;++t){var l=C(s.measures[t],a);o.qMeasures.length<r?o.qMeasures.push(l):o.qLayoutExclude.qHyperCubeDef.qMeasures.push(l)}for(t=0;t<s.excludedMeasures.length;++t){var c=C(s.excludedMeasures[t],a);o.qMeasures.length<i?o.qMeasures.push(c):o.qLayoutExclude.qHyperCubeDef.qMeasures.push(c)}},I=function(e){var t=e.exportFormat,n=e.dataDefinition,r=void 0===n?{}:n,i=t.data[0],o=r.dimensions||{max:0},a=r.measures||{max:0},s=E(a.max,i.dimensions.length,M),l=E(a.min,i.dimensions.length,0);return{maxDimensions:E(o.max,s,M),minDimensions:E(o.min,l,0),maxMeasures:s,minMeasures:l}},L=function(e){var t=e.exportFormat,n=e.newHyperCubeDef,r=t.data[0],i=n.qDimensions.length+n.qMeasures.length;n.qInterColumnSortOrder=r.interColumnSortOrder.concat();var o=n.qInterColumnSortOrder.length;if(o!==i)for(n.qLayoutExclude&&(n.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder=r.interColumnSortOrder.concat());o!==i;)o<i?(d.indexAdded(n.qInterColumnSortOrder,o),++o):(--o,d.indexRemoved(n.qInterColumnSortOrder,o))},z=function(e){var t=e.exportFormat,n=e.initialProperties,r=e.hypercubePath,i={qLayoutExclude:{disabled:{},quarantine:{}}};return Object.keys(t.properties).forEach((function(e){"qLayoutExclude"===e?t.properties[e].quarantine&&(i.qLayoutExclude.quarantine=k()(!0,{},t.properties[e].quarantine)):"qHyperCubeDef"===e&&r?o.setValue(i,"".concat(r,".qHyperCubeDef"),t.properties.qHyperCubeDef):n.hasOwnProperty(e)||-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)||function(e,t){return"components"===t&&Array.isArray(e[t])&&e[t].some((function(e){return"general"===e.key}))}(t.properties,e)?i[e]=t.properties[e]:i.qLayoutExclude.disabled[e]=t.properties[e]})),null===(i=k()(!0,{},n,i)).components&&(i.components=[]),i},F=function(e){var t=e.exportFormat,n=e.maxDimensions,r=e.minDimensions,i=e.maxMeasures,o=e.minMeasures,a=t.data[0];return a.dimensions.length>n&&n>0||a.measures.length>i&&i>0||a.excludedDimensions.length>0&&a.dimensions.length+a.excludedDimensions.length>r||a.excludedMeasures.length>0&&a.measures.length+a.excludedMeasures.length>o||!i&&a.measures.length>0||!n&&a.dimensions.length>0},j=function(e){var t=e.exportFormat,n=e.maxDimensions,r=e.minDimensions,i=e.maxMeasures,o=e.minMeasures,a=e.newHyperCubeDef,s=t.data[0];a.qLayoutExclude||(a.qLayoutExclude={}),a.qLayoutExclude.qHyperCubeDef||(a.qLayoutExclude.qHyperCubeDef={}),(s.dimensions.length>n&&n>0||s.excludedDimensions&&s.excludedDimensions.length&&s.dimensions.length+s.excludedDimensions.length>r)&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[])),(s.measures.length>i&&i>0||s.excludedMeasures&&s.excludedMeasures.length&&s.measures.length+s.excludedMeasures.length>o)&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!i&&s.measures.length&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!n&&s.dimensions.length&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[]))},$=function(e){var t,n=e.newProperties,r=e.dataDefinition,i=e.hypercubePath;if(r.dimensions&&"function"==typeof r.dimensions.added){var a=o.getValue(n,i||"").qHyperCubeDef,s=function(e){if(Array.isArray(e))return _(e)}(t=a.qDimensions)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return _(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qDimensions=[],s.forEach((function(e){a.qDimensions.push(e),r.dimensions.added(e,n)}))}},H=function(e){var t,n=e.newProperties,r=e.dataDefinition,i=e.hypercubePath;if(r.measures&&"function"==typeof r.measures.added){var a=o.getValue(n,i||"").qHyperCubeDef,s=function(e){if(Array.isArray(e))return q(e)}(t=a.qMeasures)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return q(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?q(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qMeasures=[],s.forEach((function(e){a.qMeasures.push(e),r.measures.added(e,n)}))}},V=function(e){var t=e.measures,n=e.modifierTypes;t&&n&&h().isSupportedModifiers(n)&&t.forEach((function(e){e.store&&e.store.modifiers&&(e.qDef.modifiers=e.store.modifiers),delete e.store}))};function B(e,t){var n=o.getValue(e,"qLayoutExclude.quarantine",{})[t];return!!n&&(Object.keys(n).forEach((function(t){o.setValue(e,t,n[t])})),delete e.qLayoutExclude.quarantine[t],!0)}const W={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,i=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t={data:[],properties:{}},n=0;n<e;++n)t.data.push({dimensions:[],measures:[],excludedDimensions:[],excludedMeasures:[],interColumnSortOrder:[]});return t}(),a=t.qProperty,s=o.getValue(a,n||""),l=s.qHyperCubeDef;return l.qInterColumnSortOrder||(l.qInterColumnSortOrder=[]),p({exportFormat:i,qHyperCubeDef:l}),m({exportFormat:i,qHyperCubeDef:l}),g({exportFormat:i,qHyperCubeDef:l}),delete l.qLayoutExclude,y({exportFormat:i,properties:a}),n&&(i.properties.qHyperCubeDef=l,delete s.qHyperCubeDef),v({exportFormat:i,properties:a}),r||b(i.properties.qHyperCubeDef.qMeasures),Array.isArray(i.properties.filters)&&(x(i.properties,"filters","storedFilters",!0),delete i.properties.filters),i.properties.qHyperCubeDef.qContextSetExpression&&(x(i.properties,"qHyperCubeDef.qContextSetExpression","storedFilters"),i.properties.qHyperCubeDef.qContextSetExpression=""),i.properties.qHyperCubeDef.qDynamicScript&&i.properties.qHyperCubeDef.qDynamicScript.length&&(x(i.properties,"qHyperCubeDef.qDynamicScript","dynamicScript"),i.properties.qHyperCubeDef.qDynamicScript=[]),i},importProperties:function(e){var t=e.exportFormat,n=e.initialProperties,r=void 0===n?{}:n,i=e.dataDefinition,a=void 0===i?{}:i,s=e.defaultPropertyValues,l=void 0===s?{}:s,c=e.hypercubePath,u=e.extension,d=e.supportedFilters,f=void 0===d||d,h=e.isHCModifierSupported,p=void 0===h||h,m={qChildren:[]},g=z({exportFormat:t,initialProperties:r,hypercubePath:c}),y=o.getValue(r,c||"").qHyperCubeDef,v=o.getValue(g,c||"").qHyperCubeDef,b=I({exportFormat:t,dataDefinition:a}),x=b.maxDimensions,w=b.minDimensions,k=b.maxMeasures,S=b.minMeasures,C=l.defaultDimension,E=void 0===C?O():C,M=l.defaultMeasure,_=void 0===M?P():M;v.qDimensions.length=0,v.qMeasures.length=0,F({exportFormat:t,maxDimensions:x,minDimensions:w,maxMeasures:k,minMeasures:S})&&j({exportFormat:t,maxDimensions:x,minDimensions:w,maxMeasures:k,minMeasures:S,newHyperCubeDef:v}),N({exportFormat:t,maxDimensions:x,minDimensions:w,newHyperCubeDef:v,defaultDimension:E}),A({exportFormat:t,maxMeasures:k,minMeasures:S,newHyperCubeDef:v,defaultMeasure:_}),$({newProperties:g,dataDefinition:a,hypercubePath:c}),H({newProperties:g,dataDefinition:a,hypercubePath:c}),L({exportFormat:t,newHyperCubeDef:v}),R("qMaxStackedCells",y,v),R("qNoOfLeftDims",y,v),T("qInitialDataFetch",y,v,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),T("qMode",y,v,"S"),T("qReductionMode",y,v,"N"),T("qSortbyYValue",y,v),T("qIndentMode",y,v),T("qShowTotalsAbove",y,v),D(g,t,r),m.qProperty=g;var q=o.getValue(u||{},"support.modifiers");return V({measures:v.qMeasures,modifierTypes:q}),f&&B(m.qProperty,"storedFilters"),"S"===v.qMode&&p&&B(m.qProperty,"dynamicScript"),m}};var U={cellBackgroundColor:!0,cellForegroundColor:!0,colorByAlternative:!0,colorByExpression:!0,tooltip:!0,urlLabel:!0,url:!0};function Y(e,t,n,r){t=t||[];var i=u(e,r,n),o=u(t,r,n);if(-1!==i&&-1===o){var a=e.splice(i,1);t.push(a[0])}return t}function K(e,t){return e.length!==t}const G={create:function(e,t){if(!e||!U[e])throw new Error("Attribute Expressions Util: ID required");var n={};return t&&Object.keys(t).forEach((function(e){n[e]=t[e]})),n.id=e,n.qAttribute=!0,n},moveByIdFromGroup:function(e,t,n,r,i){n=n||"qAttributeExpressions",i=i||"id";for(var o=0;o<e.length;o++){var a=e[o][n],s=t.length;if(Y(a,t,r,i),K(t,s))return t}return t},IDMAP:{CELL_BACKGROUND_COLOR:"cellBackgroundColor",CELL_FOREGROUND_COLOR:"cellForegroundColor",COLOR_BY_ALTERNATIVE:"colorByAlternative",COLOR_BY_EXPRESSION:"colorByExpression",TOOLTIP:"tooltip",CELL_LINK_LABEL:"urlLabel",CELL_LINK_URL:"url"}},X={getNumDimensions:function(e){return o.getValue(e,"qHyperCubeDef.qDimensions.length",0)},getNumMeasures:function(e){return o.getValue(e,"qHyperCubeDef.qMeasures.length",0)},wrapFieldName:function(e){return e.split(" ").length>1&&"="!==e[0]&&"["!==e[0]?"[".concat(e,"]"):e},getItemLabel:function(e){return e.label||e.name}},J={colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>0&&X.getNumMeasures(e)<=1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)>0},expression:function(e){return X.getNumMeasures(e)>=1}}},Z={colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumMeasures(e)>=1}}};var Q={scatterplot:Z,"sn-scatter-plot":Z,piechart:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumMeasures(e)>=1}}},linechart:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)<=1},expression:function(e){return X.getNumMeasures(e)>=1}}},map:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>=1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)>=1},expression:function(e){return X.getNumDimensions(e)>=1}}},distributionplot:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumDimensions(e)>=1}}}};function ee(e,t,n){if(Array.isArray(e[t])){var r=d.findIndexByPropertyValue(e[t],"id",n);r>=0&&e[t].splice(r,1)}else e[t]=[]}function te(e,t){var n=G.IDMAP.COLOR_BY_ALTERNATIVE;e.forEach((function(e){ee(e,"qAttributeDimensions",n),ee(e,"qAttributeExpressions",n)})),t.forEach((function(e){ee(e,"qAttributeDimensions",n),ee(e,"qAttributeExpressions",n)}))}function ne(e,t){if(t){var n="="===t.charAt(0);e.color.altLabel=n?{qStringExpression:{qExpr:t.substr(1)}}:t}}function re(e){var t=e.properties,n=e.isDimension,r=e.dimensions,i=e.excludedDimensions,a=e.measures,s=e.label;te(r,i);var l=r[r.length-1];if(l){var c=n?o.getValue(t,"color.byDimDef"):o.getValue(t,"color.byMeasureDef"),u=o.getValue(t,"color.formatting.qNumFormat"),f=o.getValue(t,"color.formatting.isCustomFormatted");if(c){var h=G.create(G.IDMAP.COLOR_BY_ALTERNATIVE);switch(c.type){case"expression":!function(e){var t=e.attributeExpression,n=e.label,r=e.item,i=e.isDimension,o=e.qNumFormat,a=e.isCustomFormatted;t.label=n||r.label,i?t.qDef=r.key:(t.qExpression=r.key,o&&(t.qNumFormat=o,t.isCustomFormatted=a)),t.matchMeasure=r.activeMeasureIndex,t.label&&"="===t.label.charAt(0)&&(t.labelExpRef="color.altLabel")}({attributeExpression:h,label:s,item:c,isDimension:n,qNumFormat:u,isCustomFormatted:f});break;case"libraryItem":!function(e){var t=e.attributeExpression,n=e.measures,r=e.item,i=e.qNumFormat,o=e.isCustomFormatted;e.isDimension||(t.matchMeasure=d.findIndexByPropertyValue(n,"qLibraryId",r.key),i&&(t.qNumFormat=i,t.isCustomFormatted=o)),void 0!==r.expression?t.qExpression=r.expression:t.qLibraryId=r.key,t.colorMapRef=r.key}({attributeExpression:h,measures:a,item:c,isDimension:n,qNumFormat:u,isCustomFormatted:f})}n?(h.qSortBy={qSortByAscii:1},l.qAttributeDimensions.push(h)):l.qAttributeExpressions.push(h)}}}function ie(e,t,n,r){var i,o,a,s={};switch(e){case"dimension":n.qLibraryId?(s.type="dimension",s.name=n.qLibraryId,s.id=n.qLibraryId):(s.type="field",t?(s.name=n.label||n.qDef,s.id=n.qDef):(s.name=n.qDef.qFieldDefs[0],s.label=(a=n.qDef).qLabelExpression?a.qLabelExpression:a.qFieldLabels&&a.qFieldLabels[0]?a.qFieldLabels[0]:a.qFieldDefs[0]));break;case"measure":i=function(e,t){return t?e.qLibraryId:h().measureBase.getLibraryId(e)}(n,t),i?(s.type="measure",s.name=i,s.id=i,o=function(e,t){return h().hasActiveModifiers({measures:[e]})&&t?e.qDef.qDef:void 0}(n,r),o&&(s.expression=o)):(s.type="expression",t?(s.name=n.label||n.qExpression,s.id=n.qExpression):(s.name=n.qDef.qDef,s.label=function(e){var t=e.qDef;return t.qLabelExpression?t.qLabelExpression:t.qLabel?t.qLabel:t.qDef}(n)));break;default:throw new Error('columnType should be "dimension" or "measure"')}return s}const oe={useMasterNumberFormat:function(e){e.quarantine={qNumFormat:e.qNumFormat||{},isCustomFormatted:e.isCustomFormatted||!1},e.qNumFormat=null,e.isCustomFormatted=void 0}};function ae(e,t,n,r){var i=t.type,o=e.color,a=o.mode,s=X.getItemLabel(t);switch(ne(e,s||""),i){case"field":a="byDimension",o.byDimDef={label:t.label||X.wrapFieldName(t.name),key:X.wrapFieldName(t.name),type:"expression",activeDimensionIndex:t.activeDimensionIndex};break;case"expression":a="byMeasure",o.byMeasureDef={label:s,key:t.name,type:"expression",activeMeasureIndex:t.activeMeasureIndex};break;case"dimension":a="byDimension",o.byDimDef={label:t.name,key:t.id,type:"libraryItem",activeDimensionIndex:t.activeDimensionIndex};break;case"measure":a="byMeasure",o.byMeasureDef={label:t.name,key:t.id,expression:t.expression,type:"libraryItem",activeMeasureIndex:t.activeMeasureIndex},o.formatting&&oe.useMasterNumberFormat(o.formatting)}o.auto=!1,o.mode=a}function se(e,t){var n=o.getValue(e,"".concat(t,"qDimensions"),[]),r=o.getValue(e,"".concat(t,"qMeasures"),[]),i=o.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=o.getValue(e,"color.byDimDef");if(a&&ne(e,a.label),function(e){return!!(e&&e.activeDimensionIndex>-1)}(a))!function(e,t){var n=o.getValue(e,"".concat(t,"qDimensions"),[]),r=o.getValue(e,"color.byDimDef");r.activeDimensionIndex=Math.min(r.activeDimensionIndex,n.length-1);var i=ie("dimension",!1,n[r.activeDimensionIndex]);i.activeDimensionIndex=r.activeDimensionIndex,ae(e,i)}(e,t);else if(function(e){return!e||!e.key}(a)&&function(e,t){var n=o.getValue(e,"".concat(t,"qDimensions"),[]),r=n[function(e,t,n){var r=o.getValue(t,"visualization"),i=n.split("."),a=Number(i[1]),s=o.getValue(t,"layers.".concat(a,".type"));return 2===e.length&&"map"===r&&"point"===s}(n,e,t)?0:n.length-1],i=G.IDMAP.COLOR_BY_ALTERNATIVE,a=d.findItemByPropertyValue(r.qAttributeDimensions,"id",i);return ae(e,ie("dimension",!!a,a||r)),!!a}(e,t))return;re({properties:e,isDimension:!0,dimensions:n,excludedDimensions:i,measures:r,label:o.getValue(e,"color.byDimDef.label")})}const le=function(e,t,n){o.setValue(e,t,n),o.isAtomicValue(n)&&function(e,t,n){var r=e.qLayoutExclude;r&&(r.changed||(r.changed={}),r.changed[t]={from:o.getValue(e,t),to:n})}(e,t,n)},ce=function(e,t){var n={primary:!0};if(e){var r=(Q[t]||J).colorModeOptions||J.colorModeOptions;n.byDimension=r.dimension(e),n.byMeasure=r.measure(e),n.byMultiple=r.multiColor(e),n.byExpression=r.expression(e)}return n},ue=function(e){var t=e.canColorBy,n=e.autoColor,r=e.colorMode,i=e.dimensions;return!(t[r]&&!n&&("byDimension"!==r&&"byMeasure"!==r||!i.length))},de=function(e,t){var n,r=o.getValue(e,"color.mode"),i=o.getValue(e,"color.auto"),a=o.getValue(e,"".concat(t,"qDimensions"),[]),s=o.getValue(e,"".concat(t,"qMeasures"),[]),l=o.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);i?te(a,l):!(n={auto:i,colorMode:r,dimensions:a}).auto&&"byDimension"===n.colorMode&&n.dimensions.length>0?se(e,t):function(e){var t=e.auto,n=e.colorMode,r=e.dimensions,i=e.measures,a=e.properties,s=o.getValue(a,"visualization");return!(t||"byMeasure"!==n||!r.length||"map"!==s&&!i.length)}({auto:i,colorMode:r,dimensions:a,measures:s,properties:e})?function(e,t){var n=o.getValue(e,"".concat(t,"qDimensions"),[]),r=o.getValue(e,"".concat(t,"qMeasures"),[]),i=o.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=o.getValue(e,"color.byMeasureDef");if(a&&ne(e,a.label),function(e){return!!(e&&e.activeMeasureIndex>-1)}(a))!function(e,t){var n=o.getValue(e,"".concat(t,"qMeasures"),[]),r=o.getValue(e,"color.byMeasureDef");if(r.activeMeasureIndex=Math.min(r.activeMeasureIndex,n.length-1),r.activeMeasureIndex>-1){var i=ie("measure",!1,n[r.activeMeasureIndex],!0);i.activeMeasureIndex=r.activeMeasureIndex,ae(e,i)}}(e,t);else if(function(e,t){return(!e||!e.key)&&t.length>0}(a,r)&&function(e,t){var n=o.getValue(e,"".concat(t,"qDimensions"),[]),r=o.getValue(e,"".concat(t,"qMeasures"),[]),i=n[n.length-1],a=G.IDMAP.COLOR_BY_ALTERNATIVE,s=d.findItemByPropertyValue(i.qAttributeExpressions,"id",a);return ae(e,ie("measure",!!s,s||r[0])),!!s}(e,t))return;re({properties:e,isDimension:!1,dimensions:n,excludedDimensions:i,measures:r,label:o.getValue(e,"color.byMeasureDef.label")})}(e,t):function(e,t){var n=o.getValue(e,"color.mode"),r=o.getValue(e,"".concat(t,"qDimensions"),[]),i=o.getValue(e,"".concat(t,"qMeasures"),[]),a=o.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);"byMultiple"===n&&i.length<2&&o.setValue(e,"color.mode","primary"),te(r,a)}(e,t)},fe=function(e){e.forEach((function(e){e.qOtherTotalSpec&&"qTotalMode"in e.qOtherTotalSpec&&delete e.qOtherTotalSpec.qTotalMode}))},he=function(e){var t=e.shouldUpdateColorBy,n=e.properties,r=o.getValue(n,"qHyperCubeDef.qMeasures",[]),i=o.getValue(n,"color.mode","");return!t&&"byExpression"===i&&r.length>0},pe=function(e){var t=o.getValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",[]),n=o.getValue(e,"color.colorExpression","");t.splice(0,0,{qExpression:n,id:"colorByExpression"}),o.setValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",t)},me=function(e){o.setValue(e,"color.mode","primary"),o.setValue(e,"color.auto",!0)},ge=function(e){var t=o.getValue(e,"qHyperCubeDef.qDimensions",[]),n=o.getValue(e,"color.persistent",!1);return t.length>1&&!n},ye={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,i=W.exportProperties({propertyTree:t,hypercubePath:n,viewDataMode:r}),o=i.data[0],a=o.dimensions.concat(o.excludedDimensions),s=o.measures.concat(o.excludedMeasures),l=G.IDMAP,c=l.COLOR_BY_ALTERNATIVE,u=l.COLOR_BY_EXPRESSION;return G.moveByIdFromGroup(a,[],"qAttributeDimensions",c),G.moveByIdFromGroup(a,[],"qAttributeExpressions",c),G.moveByIdFromGroup(s,[],"qAttributeExpressions",u),i},importProperties:function(e){var t=e.exportFormat,n=e.initialProperties,r=e.dataDefinition,i=e.defaultPropertyValues,a=e.hypercubePath,s=e.extension,l=e.supportedFilters,c=e.isHCModifierSupported,u=W.importProperties({exportFormat:t,initialProperties:n,dataDefinition:r,defaultPropertyValues:i,hypercubePath:a,extension:s,supportedFilters:l,isHCModifierSupported:c}),d=u.qProperty,f=o.getValue(d,"visualization"),h=o.getValue(d,"qHyperCubeDef.qDimensions",[]),p=o.getValue(d,"color.mode",""),m=o.getValue(d,"color.auto",""),g=ce(d,f),y=ue({canColorBy:g,autoColor:m,colorMode:p,dimensions:h});return g[p]?he({shouldUpdateColorBy:y,properties:d})&&pe(d):me(d),y&&de(d,"qHyperCubeDef."),ge(d)&&le(d,"color.persistent",!0),fe(h),u}};var ve=["bar","marker","line"];const be=function(e){var t=e.initialProperties,n=e.properties;t.measureAxis&&void 0===t.measureAxis.autoMinMax?B(n,"unsupportedAutoMinMax")||k()(n.measureAxis,t.measureAxis):B(n,"supportedAutoMinMax")||k()(n.measureAxis,t.measureAxis)},xe=function(e){var t,n=e.exportFormat,r=e.initialProperties,i=e.properties,o=e.measureType,a=i.qHyperCubeDef,s=i.measureAxis;if(function(e){var t=e.initialProperties;return!(!e.exportFormat.properties.measureAxes||t.measureAxes||!t.measureAxis||void 0===t.measureAxis.autoMinMax)}({exportFormat:n,initialProperties:r})){var l=function(e){var t=[];return e.qMeasures.length>0&&e.qMeasures.forEach((function(e){if(e.qDef.series){var n=e.qDef.series,r=n.type,i=n.axis;t[i]||(t[i]={axis:i,type:{line:0,marker:0,bar:0,total:0}}),ve.includes(r)&&t[i].type[r]++,t[i].type.total++}})),t}(a);l.length?(o&&(t=l.filter((function(e){return e.type[o]>0})).sort((function(e,t){return t.type[o]-e.type[o]}))),t&&t.length||(t=l.sort((function(e,t){return t.type.total-e.type.total}))),t&&t[0]&&k()(s,n.properties.measureAxes[t[0].axis])):k()(s,n.properties.measureAxes[0])}},we=function(e){if(e.qDimensions.length>1){var t=e.qInterColumnSortOrder.indexOf(0);if(0!==t){var n=e.qInterColumnSortOrder[0];e.qInterColumnSortOrder[0]=0,e.qInterColumnSortOrder[t]=n}}},ke={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,i=e.supportedAutoMinMax,o=void 0===i||i,a=ye.exportProperties({propertyTree:t,hypercubePath:n,viewDataMode:r}),s=a.properties;return o?(x(s,"measureAxis.min","supportedAutoMinMax"),x(s,"measureAxis.max","supportedAutoMinMax")):(x(s,"measureAxis.min","unsupportedAutoMinMax"),x(s,"measureAxis.max","unsupportedAutoMinMax")),a},importProperties:function(e){var t=e.exportFormat,n=e.initialProperties,r=e.dataDefinition,i=e.defaultPropertyValues,o=e.hypercubePath,a=e.measureType,s=e.extension,l=e.supportedFilters,c=e.isHCModifierSupported,u=ye.importProperties({exportFormat:t,initialProperties:n,dataDefinition:r,defaultPropertyValues:i,hypercubePath:o,extension:s,supportedFilters:l,isHCModifierSupported:c}),d=u.qProperty;return be({initialProperties:n,properties:d}),xe({exportFormat:t,initialProperties:n,properties:d,measureType:a}),we(d.qHyperCubeDef),d.qHyperCubeDef.qColumnOrder=[],d.qHyperCubeDef.columnOrder=[],u}};function Se(e,t,n){return"qLayoutExclude.quarantine.".concat(e,".").concat(t,".").concat(n)}function Ce(e){var t=e.properties,n=e.arrayPath,r=e.quarantineName,i=e.arrayName,a=e.itemPath;o.getValue(t,n,[]).forEach((function(e){return function(e){var t=e.properties,n=e.quarantineName,r=e.arrayName,i=e.item,a=e.itemPath,s=o.getValue(i,a);if(void 0!==s){var l=o.getValue(i,"qDef.cId");l||(l=o.generateId(),o.setValue(i,"qDef.cId",l));var c=Se(n,r,l);o.setValue(t,c,s),o.setValue(i,a,void 0)}}({properties:t,quarantineName:r,arrayName:i,item:e,itemPath:a})}))}function Ee(e){var t=e.properties,n=e.arrayPath,r=e.quarantineName,i=e.arrayName,a=e.itemPath;o.getValue(t,n,[]).forEach((function(e){return function(e){var t=e.properties,n=e.quarantineName,r=e.arrayName,i=e.item,a=e.itemPath,s=o.getValue(i,"qDef.cId");if(s){var l=Se(n,r,s),c=o.getValue(t,l);void 0!==c&&(o.setValue(i,a,c),o.setValue(t,l,void 0))}}({properties:t,quarantineName:r,arrayName:i,item:e,itemPath:a})}))}var Me="qHyperCubeDef.qMeasures",_e="conditionalColoring",qe="measures",De="qDef.conditionalColoring";const Re={quarantine:function(e){Ce({properties:e,arrayPath:Me,quarantineName:_e,arrayName:qe,itemPath:De})},unquarantine:function(e){Ee({properties:e,arrayPath:Me,itemPath:De,arrayName:qe,quarantineName:_e})}};var Te="qHyperCubeDef.qMeasures",Oe="measures",Pe="qHyperCubeDef.qDimensions",Ne="dimensions",Ae="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",Ie="alternativeMeasures",Le="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",ze="alternativeDimensions",Fe="qCalcCondition",je="conditionalShowHide";const $e={quarantine:function(e){Ce({properties:e,arrayPath:Te,quarantineName:je,arrayName:Oe,itemPath:Fe}),Ce({properties:e,arrayPath:Pe,quarantineName:je,arrayName:Ne,itemPath:Fe})},unquarantine:function(e){Ee({properties:e,arrayPath:Te,quarantineName:je,arrayName:Oe,itemPath:Fe}),Ee({properties:e,arrayPath:Pe,quarantineName:je,arrayName:Ne,itemPath:Fe})},quarantineAlternative:function(e){Ce({properties:e,arrayPath:Ae,quarantineName:je,arrayName:Ie,itemPath:Fe}),Ce({properties:e,arrayPath:Le,quarantineName:je,arrayName:ze,itemPath:Fe})},unquarantineAlternative:function(e){Ee({properties:e,arrayPath:Ae,quarantineName:je,arrayName:Ie,itemPath:Fe}),Ee({properties:e,arrayPath:Le,quarantineName:je,arrayName:ze,itemPath:Fe})}},He={hypercube:W,colorChart:ye,axisChart:ke,quarantineProperty:x,unquarantineProperty:B,quarantineArrayProp:Ce,unquarantineArrayProp:Ee,conditionalColoring:Re,conditionalShow:$e}})(),r.default})()}(c0);var u0=r(c0.exports);const d0={setValue(e,t,n){if(!t)return;const r=t.split(".");let i=e;const o=r[r.length-1];let a;for(a=0;a<r.length-1;++a)null==i[r[a]]&&(i[r[a]]=Number.isNaN(+r[a+1])?{}:[]),i=i[r[a]];void 0!==n?i[o]=n:delete i[o]},getValue(e,t,n){const r=t.split(".");let i,o=e;if(void 0===o)return n;for(i=0;i<r.length;++i){if(null==o[r[i]])return n;o=o[r[i]]}return o}},f0={getDimensions:e=>d0.getValue(e,"qHyperCubeDef.qDimensions",[]),getNumDimensions:e=>d0.getValue(e,"qHyperCubeDef.qDimensions.length",0),getMeasures:e=>d0.getValue(e,"qHyperCubeDef.qMeasures",[]),getNumMeasures:e=>d0.getValue(e,"qHyperCubeDef.qMeasures.length",0),getDimensionLayouts(e,t){const n=d0.getValue(e,t?`${t}.qHyperCube`:"qHyperCube",null);return n?n.qDimensionInfo:[]},getDimensionLayout(e,t,n){return this.getDimensionLayouts(t,n).filter((t=>e===t.cId))[0]},getMeasureLayouts(e,t){const n=d0.getValue(e,t?`${t}.qHyperCube`:"qHyperCube",null);return n?n.qMeasureInfo:[]},getMeasureLayout(e,t,n){return this.getMeasureLayouts(t,n).filter((t=>e===t.cId))[0]}};const h0={colorModeOptions:{primary:()=>!0,dimension:()=>!0,multiColor:()=>!1,measure:()=>!0,expression:e=>f0.getNumMeasures(e)>=1},showLegend:e=>{const t=d0.getValue(e,"color.auto"),n=d0.getValue(e,"color.expressionIsColor"),r=d0.getValue(e,"color.mode");return!(!t&&"primary"===r||!t&&"byExpression"===r&&(n||void 0===n))},persistentColorsShow:e=>!d0.getValue(e,"color.auto")&&"byDimension"===d0.getValue(e,"color.mode"),useDimValColShow:e=>(void 0===d0.getValue(e,"color.useDimColVal")&&d0.setValue(e,"color.useDimColVal",!1),!d0.getValue(e,"color.auto")&&"byDimension"===d0.getValue(e,"color.mode")&&"libraryItem"===d0.getValue(e,"color.byDimDef.type"))},p0=function(e){const{colorModeOptions:t,persistentColorsShow:n,useDimValColShow:r,showLegend:i}=h0;this.color={colorMode:{options(n){const r=[];return"explore"===e&&r.push({value:"auto",translation:"Common.Auto"}),r.push({value:"primary",translation:"properties.colorMode.primary"}),r.push({value:"byDimension",translation:"properties.colorMode.byDimension"}),r.push({value:"byMeasure",translation:"properties.colorMode.byMeasure"}),t.expression(n)&&"explore"!==e&&r.push({value:"byExpression",translation:"properties.colorMode.byExpression"}),r}},persistentColors:{show:e=>r(e)?n(e)&&!d0.getValue(e,"color.useDimColVal"):n(e)},useDimColVal:{show:r}},this.legend={show:i,showTitle:{show(e){const t=d0.getValue(e,"color.auto");return d0.getValue(e,"legend.show")&&i(e)&&(t||!function(e){return"byExpression"===d0.getValue(e,"color.mode")&&!0===d0.getValue(e,"color.expressionIsColor")}(e))}},dock:{show:e=>d0.getValue(e,"legend.show")&&i(e)}}};function m0(e){return new p0(e)}const g0={classification:{section:"styling",tags:["simple"],exclusive:!0},component:"items",show:!0,chartType:"piechart",translation:"LayerStyleEditor.component.styling",chartTitle:"Object.PieChart",subtitle:"LayerStyleEditor.component.styling",useGeneral:!0,items:{strokeSection:{translation:"properties.Outline",component:"items",items:{strokeItem:{component:"items",ref:"components",key:"slices",items:{strokeWrapper:{component:"inline-wrapper",items:{strokeWidth:{translation:"LayerStyleEditor.style.strokeWidth",ref:"style.strokeWidth",width:9,show:!0,component:"dropdown",type:"string",options:[{value:"none",translation:"Common.None"},{value:"small",translation:"Common.Small"},{value:"medium",translation:"Common.Medium"},{value:"large",translation:"Common.Large"}],defaultValue:"none",schemaIgnore:!0},strokeColor:{ref:"style.strokeColor",defaultValue:{color:"#FFFFFF"},schemaIgnore:!0,width:3,component:"color-picker"}}}}}}},cornerRadius:{component:"items",translation:"LayerStyleEditor.style.cornerRadius",items:{cornerRadiusItem:{component:"items",ref:"components",key:"slices",items:{cornerRadiusSlider:{ref:"style.cornerRadius",translation:"LayerStyleEditor.style.cornerRadius",component:"slider",min:0,max:40,step:.05,width:12,defaultValue:0,schemaIgnore:!0}}}}},innerRadius:{translation:"LayerStyleEditor.style.innerRadius",component:"items",show:e=>e.donut.showAsDonut,items:{innerRadiusItem:{component:"items",ref:"components",key:"slices",items:{innerRadiusSlider:{ref:"style.innerRadius",translation:"LayerStyleEditor.style.innerRadius",component:"slider",min:.05,max:.75,step:.01,width:12,defaultValue:.55,schemaIgnore:!0}}}}}}},y0=(e,t,n)=>{const r=`${e}.fontFamily`,i=`${e}.fontSize`;return{fontFamilyItem:{component:"dropdown",ref:r,options:()=>t.getOptions(r),defaultValue:()=>t.getDefaultValue(r)},fontWrapperItem:{component:"inline-wrapper",items:{fontSizeItem:{component:"dropdown",ref:i,options:()=>t.getOptions(i),defaultValue:()=>t.getDefaultValue(i)},fontColorItem:{component:"color-picker",width:!1,ref:`${e}.color`,defaultValue:()=>({color:n.getStyle("object.pieChart",e,"color")})}}}}},v0=(e,t,n,r)=>{const i=function(e){var t=e.theme,n=e.translator,r=e.config,i=void 0===r?{}:r,o=e.flags,a=function(e){var t=e.config,n=void 0===t?{}:t,r=n.id,i=n.paths;return{id:void 0===r?"object":"".concat("object",".").concat(r),paths:Array.isArray(i)?i:[]}}({config:i}),s=a.id,l=a.paths,c={};l.forEach((function(e){for(var r=e.split("."),i=c,a=0;a<r.length;a++){var l=r[a];a===r.length-1?i[l]=Rv({theme:t,translator:n,id:s,path:e,flags:o}):void 0===i[l]&&(i[l]={}),i=i[l]}}));var u=function(e){for(var t=e.split("."),n=c,r=0;r<t.length;r++){var i=t[r];if(void 0===n[i])throw new Error("font-resolver: Path '".concat(e,"' could not be resolved."));n=n[i]}return n};return c.getDefaultValue=function(e){return u(e).getDefaultValue()},c.getOptions=function(e){return u(e).getOptions()},c}({theme:r,translator:n,flags:t,config:{id:"pieChart",paths:["axis.title","label.name","label.value","legend.title","legend.label"]}});return{component:"styling-panel",chartTitle:"Object.PieChart",translation:"LayerStyleEditor.component.styling",subtitle:"LayerStyleEditor.component.styling",useGeneral:!0,useBackground:e,items:{strokeSection:{translation:"properties.Outline",component:"panel-section",items:{strokeItem:{component:"items",ref:"components",key:"slices",items:{strokeWrapper:{component:"inline-wrapper",items:{strokeWidth:{ref:"style.strokeWidth",width:9,show:!0,component:"dropdown",type:"string",options:[{value:"none",translation:"Common.None"},{value:"small",translation:"Common.Small"},{value:"medium",translation:"Common.Medium"},{value:"large",translation:"Common.Large"}],defaultValue:"none",schemaIgnore:!0},strokeColor:{ref:"style.strokeColor",defaultValue:{color:"#FFFFFF"},schemaIgnore:!0,width:3,component:"color-picker"}}}}}}},cornerRadius:{translation:"LayerStyleEditor.style.cornerRadius",component:"panel-section",items:{cornerRadiusItem:{component:"items",ref:"components",key:"slices",items:{cornerRadiusSlider:{ref:"style.cornerRadius",component:"slider",min:0,max:40,step:.05,width:12,defaultValue:0,schemaIgnore:!0}}}}},innerRadius:{translation:"LayerStyleEditor.style.innerRadius",component:"panel-section",show:e=>e.donut.showAsDonut,items:{innerRadiusItem:{component:"items",ref:"components",key:"slices",items:{innerRadiusSlider:{ref:"style.innerRadius",component:"slider",min:.05,max:.75,step:.01,width:12,defaultValue:.55,schemaIgnore:!0}}}}},axisTitleSection:null!=t&&t.isEnabled("CLIENT_IM_3050")?{translation:"properties.dataPoints.dimensionlabels",component:"panel-section",items:{axisTitleItems:{component:"items",ref:"components",key:"axis",items:y0("axis.title",i,r)}}}:void 0,labelNameSection:null!=t&&t.isEnabled("CLIENT_IM_3050")?{translation:"properties.dataPoints.dimensionValueLabel",component:"panel-section",items:{labelItems:{component:"items",ref:"components",key:"label",items:y0("label.name",i,r)}}}:void 0,labelValueSection:null!=t&&t.isEnabled("CLIENT_IM_3050")?{translation:"properties.value.label",component:"panel-section",items:{labelItems:{component:"items",ref:"components",key:"label",items:y0("label.value",i,r)}}}:void 0,legendTitleSection:null!=t&&t.isEnabled("CLIENT_IM_3051")?{translation:"properties.legend.title",component:"panel-section",items:{labelItems:{component:"items",ref:"components",key:"legend",items:y0("legend.title",i,r)}}}:void 0,legendLabelSection:null!=t&&t.isEnabled("CLIENT_IM_3051")?{translation:"properties.legend.label",component:"panel-section",items:{labelItems:{component:"items",ref:"components",key:"legend",items:y0("legend.label",i,r)}}}:void 0}}},b0=m0("hard");const x0=e=>{var t;null!==(t=e.color)&&void 0!==t&&t.auto||(kx(e,"color.mode","byDimension"),kx(e,"color.byDimDef.activeDimensionIndex",0),kx(e,"color.persistent",!1))},w0=e=>{var t;const n=[{value:"primary",translation:"properties.colorMode.primary"},{value:"byDimension",translation:"properties.colorMode.byDimension"}];switch(null===(t=e.color)||void 0===t?void 0:t.mode){case"byMultiple":n.push({value:"byMultiple",translation:"properties.colorMode.multicolored"});break;case"byMeasure":n.push({value:"byMeasure",translation:"properties.colorMode.byMeasure"});break;case"byExpression":n.push({value:"byExpression",translation:"properties.colorMode.byExpression"})}return n},k0=e=>{var t;const{flags:n,translator:r}=e||{},i=null==e||null===(t=e.sense)||void 0===t?void 0:t.theme,o=null==n?void 0:n.isEnabled("SENSECLIENT_IM_2429_PIECHART_BG"),a={items:{simpleItems:{items:{autoColor:{label:e=>{var t;return null!==(t=e.color)&&void 0!==t&&t.auto?r.get("Simple.Color.Auto",r.get("properties.colorMode.byDimension")):r.get("Common.Custom")},change:x0},colorMode:{options:w0}}}}},s={items:{labels:{items:{header:{show:e=>e.qHyperCubeDef.qDimensions.length&&e.qHyperCubeDef.qMeasures.length},pointLabels:{component:"checkbox",ref:"dataPoint.auto",type:"boolean",defaultValue:!0,translation:"Simple.Label.Value",show:e=>e.qHyperCubeDef.qDimensions.length&&e.qHyperCubeDef.qMeasures.length,change(e){e.dataPoint.auto||kx(e,"dataPoint.labelMode","none")}},dimensionTitle:{component:"checkbox",ref:"dimensionTitle",type:"string",translation:"Simple.Label.Dimension.Hide",defaultValue:"all",show:e=>e.qHyperCubeDef.qDimensions.length&&e.qHyperCubeDef.qMeasures.length,convertFunctions:{get:(e,t,n,r)=>!r.dimensionTitle,set(e,t,n,r,i){i.dimensionTitle=!e}}}}}}},l={uses:"settings",items:{simpleStyling:g0,simpleLabels:s,general:{items:{showDisclaimer:{translation:"properties.showDisclaimer",type:"boolean",ref:"showDisclaimer",component:"switch",defaultValue:!0,options:[{value:!0,translation:"Common.Show"},{value:!1,translation:"properties.hide"}]}}},presentation:{type:"items",translation:"properties.presentation",grouped:!0,items:{sliceStyling:v0(o,n,r,i),showAsDonut:{ref:"donut.showAsDonut",type:"boolean",component:"item-selection-list",defaultValue:!1,horizontal:!0,items:[{icon:"pie_chart_pie",component:"icon-item",labelPlacement:"bottom",translation:"properties.pie",value:!1},{icon:"pie_chart_donut",component:"icon-item",labelPlacement:"bottom",translation:"properties.donut",value:!0}]},labels:{type:"items",snapshot:{tid:"property-labels"},items:{dimensionTitle:{ref:"dimensionTitle",type:"boolean",component:"switch",translation:"properties.dataPoints.dimensionlabels",defaultValue:!0,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"properties.off"}]},valuesAuto:{ref:"dataPoint.auto",type:"boolean",translation:"properties.dataPoints.labelmode",component:"switch",defaultValue:!0,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}]},labelMode:{ref:"dataPoint.labelMode",type:"string",component:"dropdown",options:[{value:"none",translation:"Common.None"},{value:"share",translation:"properties.dataPoints.labelmode.share"},{value:"value",translation:"properties.dataPoints.labelmode.value"}],defaultValue:"share",show:e=>!e.dataPoint.auto},labelValueMode:{ref:"dataPoint.labelValueMode",type:"string",component:"dropdown",translation:"properties.dataPoints.labelvaluemode",options:[{value:"arc",translation:"Visualizations.Descriptions.Angle"},{value:"radius",translation:"Visualizations.Descriptions.Radius"}],defaultValue:"arc",show:e=>!e.dataPoint.auto&&function(e){return e.qHyperCubeDef&&e.qHyperCubeDef.qMeasures.length>1||e.qHyperCube&&e.qHyperCube.qMeasureInfo.length>1}(e)&&"value"===e.dataPoint.labelMode}}}}},colorsAndLegend:{uses:"colorsAndLegend",items:{colors:{items:{colorMode:{options:b0.color.colorMode.options},persistentColors:{show:b0.color.persistentColors.show}}},simpleColors:a,legend:{show:b0.legend.show,items:{show:{defaultValue:!1,snapshot:{tid:"property-legend"}},showTitle:{show:b0.legend.showTitle.show},dock:{show:b0.legend.dock.show}}}}},tooltip:{uses:"tooltip"}}};return l},S0={uses:"data",items:{dimensions:{uses:"dimensions"},measures:{uses:"measures",items:{numberFormatting:{items:{percentOfPieMessage:{component:"text",translation:"properties.numberFormatting.pieMessage",show:(e,t,{properties:n}={})=>n&&(n.dataPoint.auto||"share"!==n.dataPoint.labelMode)}}}}}}},C0={uses:"sorting",items:{interColumnSorting:{reset:e=>{const{qDimensions:t,qMeasures:n,qInterColumnSortOrder:r}=e.qHyperCubeDef;if(1===t.length&&n.length>=1){const t=r.length,n=[...Array(t).keys()];[n[0],n[1]]=[n[1],n[0]],e.qHyperCubeDef.qInterColumnSortOrder=n}}}}},E0={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{suppressZero:null,calcCond:{uses:"calcCond"}}}}};function M0(e){return{type:"items",component:"accordion",items:{data:S0,sorting:C0,addons:E0,settings:k0(e)}}}const _0=m0("explore"),q0=M0();var D0={type:"items",component:"accordion",items:{data:{uses:"data"},sort:{uses:"sort"},presentation:{uses:"presentation",items:{showAsDonut:q0.items.settings.items.presentation.items.showAsDonut,labelMode:{type:"items",items:{labelMode:{type:"string",component:"radio-list",translation:"properties.dataPoints.labelmode",diffs:["dataPoint.auto:false","dataPoint.labelMode"],options:q0.items.settings.items.presentation.items.labels.items.labelMode.options,setPropertyValue(e,t){e.dataPoint.auto=!1,e.dataPoint.labelMode=t},getValue:e=>e.dataPoint.auto?"":e.dataPoint.labelMode}}}}},color:{uses:"color",items:{mode:{options:_0.color.colorMode.options},dimension:{items:{persistentColors:{show:e=>!(e.color&&"byDimension"===e.color.mode&&e.color.useDimColVal&&_0.color.useDimColVal.show(e))}}}}}}};const R0="slices";function T0(e,t){const n=e&&e.desc&&void 0!==e.desc.share?e.desc.share:void 0;return t("share")(n)}function O0(e){return e.data.num.label}function P0(e){return e.data.radius.label}function N0(e,t,n,r){return function(e,t){if(e.dataPoint.auto)return 1===e.qHyperCube.qSize.qcy?O0:T0;if("share"===e.dataPoint.labelMode)return T0;if("value"===e.dataPoint.labelMode)return t.encodings.slice.outerRadius&&"radius"===e.dataPoint.labelValueMode?P0:O0;return O0}(n,r)(e,t)}function A0(e){let t;return t=e.data.label?function(e,t){let n=e;return n.length>t&&(n=`${n.substr(0,t-3)}...`),n}(e.data.label,20):"",t}class I0{constructor({element:e,properties:t,effectHelper:n,Flag:r}){this.element=e,this.Flag=r,n.initFade(this.element);const i=e.find(".effectLayer");i.length>0&&i.remove(),e.append('<div class="effectLayer"></div>'),this.effectLayer=e.find(".effectLayer"),this._effectProperties=t,this.selectedIndex=t.selectedIndex,this.hasPropertiesPanel=!1,this.effectApplied=!0,n.fadeIn(this.element)}updateOrigSettings(e){return{dataPoint:e.dataPoint,legend:e.legend,dimensionTitle:e.dimensionTitle}}updateFlags(e,t){const n=this.chart.getAffectedShapes("highlight"),r=this.effectLayer[0].getBoundingClientRect(),i=n.map((n=>{const{start:i,end:o,outerRadius:a,offset:s}=n.desc.slice,{scaleRatio:l}=this.chart.component(n.key).rect,c=n.element.getBoundingClientRect(),u=(i+o)/2,d=c.left-r.left+l.x*(s.x+a*Math.sin(u)),f=c.top-r.top+l.y*(s.y-a*Math.cos(u)),h=Math.cos(u)>0?"top":"bottom",p=Math.sin(u)>0?"right":"left";return{title:A0(n),label:N0(n,this.chart.formatter,e,t),orientation:`${h}${p}`,position:{x:d,y:f}}}));this.Flag.show(this.effectLayer,i)}init(e,t,n,r){return t.getProperties().then((e=>{if(!e.originalModelSettings){const t=bg(!0,{},e);e.originalModelSettings=this.updateOrigSettings(t)}e.effectProperties=r,e.effectPath=n,e.dataPoint.show=!1,e.legend.show=!1,e.dimensionTitle=!1,t.setProperties(e)}))}remove(e,t,n){return e.options=bg(e.options,{effect:null}),n?t.getProperties().then((e=>bg(e,{effectPath:null,effectProperties:null,dataPoint:bg(!0,{},e.originalModelSettings.dataPoint),legend:bg(!0,{},e.originalModelSettings.legend),dimensionTitle:e.originalModelSettings.dimensionTitle}))):Promise.resolve()}}class L0 extends I0{init(e,t,n,r){return e.options=bg(!0,e.options,{effect:this}),t.layout.effectProperties&&t.layout.effectPath===n&&t.layout.effectProperties.max===r.max?Promise.resolve():super.init(e,t,n,r)}update(e,t,n){this.chart=t,this.updateHighlight(e),this.updateFlags(e,n)}updateHighlight(e){const t=this.chart.component(R0).data.items,n=e.effectProperties.min,r=e.effectProperties.max,i=[];let o=[1/0,-1],a=[-1/0,-1];t.forEach(((e,t)=>{const i=e.num.value;n&&i<o[0]&&(o=[i,t]),r&&i>a[0]&&(a=[i,t])})),-1!==o[1]&&i.push(t[o[1]].value),-1!==a[1]&&i.push(t[a[1]].value),i.length&&this.chart.brush("highlight").setValues(i.map((e=>({key:"qHyperCube/qDimensionInfo/0",value:e}))))}}class z0 extends I0{constructor(e){super(e),this.hasPropertiesPanel=!0,this.propsTemplate=e.highlightValuePropsTemplate,this.effectHelper=e.effectHelper}onClick(e){if(!this.chart)return;const t=this.chart.shapesAt(function(e,t){const n=t.element.getBoundingClientRect();return{x:e.clientX-n.left,y:e.clientY-n.top}}(e,this.chart),{propagation:"stop"});if(1!==t.length)return;const n=t[0],r=this.chart.component(R0).data.items.map((e=>e.value)),i=r.indexOf(n.data.value);-1!==i&&(this.selectedIndex=i,this.effectHelper.updateSelectedPointIndex(this))}update(e,t,n){this.chart=t,this.updateHighlight(e),this.updateDataPoints(e,n),this.updateFlags(e,n)}updateHighlight(e){const t=this.chart.component(R0).data.items[e.effectProperties.selectedIndex];this.chart.brush("highlight").setValues([{key:"qHyperCube/qDimensionInfo/0",value:t.value}])}updateDataPoints(e,t){this.dataPoints=this.chart.findShapes("path").filter((e=>e.key===R0)).map(((n,r)=>{const i=N0(n,this.chart.formatter,e,t);return{text:`${A0(n)} (${i})`,value:r}}))}init(e,t,n,r){return e.options=bg(!0,e.options,{effect:this}),t.layout.effectProperties&&t.layout.effectPath===n&&t.layout.effectProperties.selectedIndex===r.selectedIndex?Promise.resolve():super.init(e,t,n,r)}}const F0="/effects/highlight-value",j0="/effects/maxmin";var $0={isCompatible:({effectPath:e})=>e===j0||e===F0,create:e=>e.effectPath===j0?new L0(e):e.effectPath===F0?new z0(e):null};function H0(e){const t={},{components:n,tooltip:r}=e,i=n?n.filter((e=>"slices"===e.key))[0]:void 0;if(i&&i.style&&Object.keys(i.style).forEach((e=>{t[`chart_style_${e}`]=i.style[e]})),r){var o;t.chart_tooltip_custom=!r.auto;const e=null===(o=r.chart)||void 0===o||null===(o=o.object)||void 0===o?void 0:o.refId;!r.auto&&e&&(t.chart_tooltip_custom_mini_chart=e)}return t}function V0(e){if(!e.qHyperCubeDef)return;const t=e.qHyperCubeDef.qDimensions,n=e.qHyperCubeDef.qMeasures;1===t.length&&1===n.length&&(n[0].qSortBy.qSortByNumeric=-1,e.qHyperCubeDef.qInterColumnSortOrder.splice(0,e.qHyperCubeDef.qInterColumnSortOrder.length,1,0))}function B0(e){e.qOtherTotalSpec.qOtherMode="OTHER_COUNTED",e.qOtherTotalSpec.qOtherCounted={qv:"10"}}function W0({translator:e}){return{dimensions:{min:1,max:1,description:()=>e.get("Visualizations.Descriptions.Slice"),add(e,t){B0(e),V0(t),cQ.addCallbackCustomTooltip(t)},move(e,t){B0(e),V0(t),cQ.moveCallbackCustomTooltip(t,e)},remove(e,t){cQ.removeCallbackCustomTooltip(t,e)},replace(e,t,n,r){B0(e),V0(r),cQ.replaceCallbackCustomTooltip(r,t)}},measures:{min:1,max:2,description:(t,n)=>e.get(0===n?"Visualizations.Descriptions.Angle":"Visualizations.Descriptions.Radius"),add(e,t){V0(t)},remove(e,t){!function(e){if(!e.qHyperCubeDef)return;const t=e.qHyperCubeDef.qMeasures,{mode:n}=e.color;"byExpression"===n&&0===t.length&&(e.color.mode="primary")}(t)}}}}const U0=e=>e.qMax<=0,Y0=e=>!(!(e&&e.qHyperCube.qSize.qcy>0)||e.qHyperCube.qMeasureInfo.every(U0));function K0(e){return{definition:M0(e),softDefinition:D0,support:{snapshot:Y0,export:Y0,exportData:!0,sharing:Y0,viewData:!0,effects:!0},effects:$0,extendMetrics:H0,importProperties:(t,n,r,i)=>{const o={layout:{templateId:n.templateId}};r.mapProperties(o);const a={defaultDimension:r.getDefaultDimensionProperties(),defaultMeasure:r.getDefaultMeasureProperties()},s=u0.colorChart.importProperties({exportFormat:t,initialProperties:n,dataDefinition:W0(e),defaultPropertyValues:a,hypercubePath:i});return s.qProperty.dataPoint&&!1===s.qProperty.dataPoint.show&&delete s.qProperty.dataPoint.show,s},exportProperties:(e,t,n)=>u0.colorChart.exportProperties({propertyTree:e,hypercubePath:t,viewDataMode:n})}}function G0(e){return{properties:{version:"1.28.9",color:{auto:!0,autoMinMax:!0,byDimDef:void 0,byMeasureDef:void 0,colorExpression:void 0,dimensionScheme:"12",expressionIsColor:!0,expressionLabel:"",formatting:{numFormatFromTemplate:!0,isCustomFormatted:void 0},measureMin:void 0,measureMax:void 0,measureScheme:"sg",mode:"primary",paletteColor:{index:6},persistent:!1,reverseScheme:!1,singleColor:void 0,useBaseColors:"off",useDimColVal:!0,useMeasureGradient:!0},components:[{key:"slices",style:{strokeWidth:"none",strokeColor:{index:-1,color:DQ.STROKE.COLOR},cornerRadius:DQ.CORNER_RADIUS,innerRadius:DQ.INNER_RADIUS}}],dataPoint:{auto:!0,labelMode:"share",labelValueMode:"arc"},dimensionTitle:!0,donut:{showAsDonut:!1},footnote:"",legend:{dock:"auto",show:!0,showTitle:!0},qHyperCubeDef:{qDimensions:[],qMeasures:[],qInitialDataFetch:[{qWidth:10,qHeight:500}],qSuppressMissing:!0,qSuppressZero:!1,qMode:"S"},showDetails:!0,showDisclaimer:!0,showTitles:!0,subtitle:"",title:"",tooltip:{auto:!0,hideBasic:!1,data:{qHyperCubeDef:void 0},chart:void 0,imageComponents:void 0}},data:{targets:[W0(e)]},importProperties:({exportFormat:t,initialProperties:n,hypercubePath:r})=>{const i=u0.colorChart.importProperties({exportFormat:t,initialProperties:n,dataDefinition:W0(e),hypercubePath:r});return i.qProperty.dataPoint&&!1===i.qProperty.dataPoint.show&&delete i.qProperty.dataPoint.show,i},exportProperties:({propertyTree:e,hypercubePath:t,viewDataMode:n})=>u0.colorChart.exportProperties({propertyTree:e,hypercubePath:t,viewDataMode:n})}}return t=>{const{flags:r}=t;!function(e){if(e&&e.get&&e.add){const t="Object.Disclaimer.LimitedData";if(e.get(t)!==t)return;Object.keys(n).forEach((t=>{e.add(n[t])}))}}(t.translator);const i=VZ();return{qae:G0(t),ext:K0(t),component(){const t=GZ({picasso:i}),n=wQ({flags:r,picasso:i,instance:t});s0({instance:t,services:n,picasso:i,flags:r}),function({instance:t}){const n=e.useStaleLayout(),r=e.useOptions(),i=e.useRect();e.useEffect((()=>{if(!t||!t.generateSettings)return;const{viewCache:e,chart:i,generateSettings:o}=t;i.update({settings:o()}),e.set("chartWidth",i.element.clientWidth),e.set("chartHeight",i.element.clientHeight),r.effect&&r.effect.update(n,i)}),[i.width,i.height])}({instance:t}),l0({instance:t,services:n})}}}}));
|