@nebula.js/sn-combo-chart 1.9.1 → 1.10.0
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* @nebula.js/sn-combo-chart v1.
|
|
2
|
+
* @nebula.js/sn-combo-chart v1.10.0
|
|
3
3
|
* Copyright (c) 2022 QlikTech International AB
|
|
4
4
|
* Released under the MIT license.
|
|
5
5
|
*/
|
|
@@ -60,7 +60,7 @@ Object.defineProperty(YI,"__esModule",{value:!0});var XI="function"==typeof Symb
|
|
|
60
60
|
* This source code is licensed under the MIT license found in the
|
|
61
61
|
* LICENSE file in the root directory of this source tree.
|
|
62
62
|
*/
|
|
63
|
-
var xz=OR.exports,Mz=DR,Sz=vz.exports;function wz(e,t,n,r,i,o,a,s){if(!e){if(e=void 0,void 0===t)e=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,r,i,o,a,s],u=0;(e=Error(t.replace(/%s/g,(function(){return l[u++]})))).name="Invariant Violation"}throw e.framesToPop=1,e}}function Ez(e){for(var t=arguments.length-1,n="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=0;r<t;r++)n+="&args[]="+encodeURIComponent(arguments[r+1]);wz(!1,"Minified React error #"+e+"; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",n)}function kz(e,t,n,r,i,o,a,s,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this.onError(e)}}xz||Ez("227");var Cz=!1,Oz=null,Tz=!1,Az=null,Nz={onError:function(e){Cz=!0,Oz=e}};function qz(e,t,n,r,i,o,a,s,l){Cz=!1,Oz=null,kz.apply(Nz,arguments)}var Dz=null,Rz={};function Iz(){if(Dz)for(var e in Rz){var t=Rz[e],n=Dz.indexOf(e);if(-1<n||Ez("96",e),!Pz[n])for(var r in t.extractEvents||Ez("97",e),Pz[n]=t,n=t.eventTypes){var i=void 0,o=n[r],a=t,s=r;Lz.hasOwnProperty(s)&&Ez("99",s),Lz[s]=o;var l=o.phasedRegistrationNames;if(l){for(i in l)l.hasOwnProperty(i)&&_z(l[i],a,s);i=!0}else o.registrationName?(_z(o.registrationName,a,s),i=!0):i=!1;i||Ez("98",r,e)}}}function _z(e,t,n){jz[e]&&Ez("100",e),jz[e]=t,zz[e]=t.eventTypes[n].dependencies}var Pz=[],Lz={},jz={},zz={},Fz=null,Bz=null,Vz=null;function Hz(e,t,n){var r=e.type||"unknown-event";e.currentTarget=Vz(n),function(e,t,n,r,i,o,a,s,l){if(qz.apply(this,arguments),Cz){if(Cz){var u=Oz;Cz=!1,Oz=null}else Ez("198"),u=void 0;Tz||(Tz=!0,Az=u)}}(r,t,void 0,e),e.currentTarget=null}function $z(e,t){return null==t&&Ez("30"),null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}function Uz(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}var Wz=null;function Yz(e){if(e){var t=e._dispatchListeners,n=e._dispatchInstances;if(Array.isArray(t))for(var r=0;r<t.length&&!e.isPropagationStopped();r++)Hz(e,t[r],n[r]);else t&&Hz(e,t,n);e._dispatchListeners=null,e._dispatchInstances=null,e.isPersistent()||e.constructor.release(e)}}var Xz={injectEventPluginOrder:function(e){Dz&&Ez("101"),Dz=Array.prototype.slice.call(e),Iz()},injectEventPluginsByName:function(e){var t,n=!1;for(t in e)if(e.hasOwnProperty(t)){var r=e[t];Rz.hasOwnProperty(t)&&Rz[t]===r||(Rz[t]&&Ez("102",t),Rz[t]=r,n=!0)}n&&Iz()}};function Gz(e,t){var n=e.stateNode;if(!n)return null;var r=Fz(n);if(!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":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}return e?null:(n&&"function"!=typeof n&&Ez("231",t,typeof n),n)}function Kz(e){if(null!==e&&(Wz=$z(Wz,e)),e=Wz,Wz=null,e&&(Uz(e,Yz),Wz&&Ez("95"),Tz))throw e=Az,Tz=!1,Az=null,e}var Jz=Math.random().toString(36).slice(2),Zz="__reactInternalInstance$"+Jz,Qz="__reactEventHandlers$"+Jz;function eF(e){if(e[Zz])return e[Zz];for(;!e[Zz];){if(!e.parentNode)return null;e=e.parentNode}return 5===(e=e[Zz]).tag||6===e.tag?e:null}function tF(e){return!(e=e[Zz])||5!==e.tag&&6!==e.tag?null:e}function nF(e){if(5===e.tag||6===e.tag)return e.stateNode;Ez("33")}function rF(e){return e[Qz]||null}function iF(e){do{e=e.return}while(e&&5!==e.tag);return e||null}function oF(e,t,n){(t=Gz(e,n.dispatchConfig.phasedRegistrationNames[t]))&&(n._dispatchListeners=$z(n._dispatchListeners,t),n._dispatchInstances=$z(n._dispatchInstances,e))}function aF(e){if(e&&e.dispatchConfig.phasedRegistrationNames){for(var t=e._targetInst,n=[];t;)n.push(t),t=iF(t);for(t=n.length;0<t--;)oF(n[t],"captured",e);for(t=0;t<n.length;t++)oF(n[t],"bubbled",e)}}function sF(e,t,n){e&&n&&n.dispatchConfig.registrationName&&(t=Gz(e,n.dispatchConfig.registrationName))&&(n._dispatchListeners=$z(n._dispatchListeners,t),n._dispatchInstances=$z(n._dispatchInstances,e))}function lF(e){e&&e.dispatchConfig.registrationName&&sF(e._targetInst,null,e)}function uF(e){Uz(e,aF)}var cF=!("undefined"==typeof window||!window.document||!window.document.createElement);function dF(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var fF={animationend:dF("Animation","AnimationEnd"),animationiteration:dF("Animation","AnimationIteration"),animationstart:dF("Animation","AnimationStart"),transitionend:dF("Transition","TransitionEnd")},hF={},pF={};function mF(e){if(hF[e])return hF[e];if(!fF[e])return e;var t,n=fF[e];for(t in n)if(n.hasOwnProperty(t)&&t in pF)return hF[e]=n[t];return e}cF&&(pF=document.createElement("div").style,"AnimationEvent"in window||(delete fF.animationend.animation,delete fF.animationiteration.animation,delete fF.animationstart.animation),"TransitionEvent"in window||delete fF.transitionend.transition);var yF=mF("animationend"),gF=mF("animationiteration"),vF=mF("animationstart"),bF=mF("transitionend"),xF="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),MF=null,SF=null,wF=null;function EF(){if(wF)return wF;var e,t,n=SF,r=n.length,i="value"in MF?MF.value:MF.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 wF=i.slice(e,1<t?1-t:void 0)}function kF(){return!0}function CF(){return!1}function OF(e,t,n,r){for(var i in this.dispatchConfig=e,this._targetInst=t,this.nativeEvent=n,e=this.constructor.Interface)e.hasOwnProperty(i)&&((t=e[i])?this[i]=t(n):"target"===i?this.target=r:this[i]=n[i]);return this.isDefaultPrevented=(null!=n.defaultPrevented?n.defaultPrevented:!1===n.returnValue)?kF:CF,this.isPropagationStopped=CF,this}function TF(e,t,n,r){if(this.eventPool.length){var i=this.eventPool.pop();return this.call(i,e,t,n,r),i}return new this(e,t,n,r)}function AF(e){e instanceof this||Ez("279"),e.destructor(),10>this.eventPool.length&&this.eventPool.push(e)}function NF(e){e.eventPool=[],e.getPooled=TF,e.release=AF}Mz(OF.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=kF)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=kF)},persist:function(){this.isPersistent=kF},isPersistent:CF,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=CF,this._dispatchInstances=this._dispatchListeners=null}}),OF.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},OF.extend=function(e){function t(){}function n(){return r.apply(this,arguments)}var r=this;t.prototype=r.prototype;var i=new t;return Mz(i,n.prototype),n.prototype=i,n.prototype.constructor=n,n.Interface=Mz({},r.Interface,e),n.extend=r.extend,NF(n),n},NF(OF);var qF=OF.extend({data:null}),DF=OF.extend({data:null}),RF=[9,13,27,32],IF=cF&&"CompositionEvent"in window,_F=null;cF&&"documentMode"in document&&(_F=document.documentMode);var PF=cF&&"TextEvent"in window&&!_F,LF=cF&&(!IF||_F&&8<_F&&11>=_F),jF=String.fromCharCode(32),zF={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},FF=!1;function BF(e,t){switch(e){case"keyup":return-1!==RF.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function VF(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var HF=!1;var $F={eventTypes:zF,extractEvents:function(e,t,n,r){var i=void 0,o=void 0;if(IF)e:{switch(e){case"compositionstart":i=zF.compositionStart;break e;case"compositionend":i=zF.compositionEnd;break e;case"compositionupdate":i=zF.compositionUpdate;break e}i=void 0}else HF?BF(e,n)&&(i=zF.compositionEnd):"keydown"===e&&229===n.keyCode&&(i=zF.compositionStart);return i?(LF&&"ko"!==n.locale&&(HF||i!==zF.compositionStart?i===zF.compositionEnd&&HF&&(o=EF()):(SF="value"in(MF=r)?MF.value:MF.textContent,HF=!0)),i=qF.getPooled(i,t,n,r),o?i.data=o:null!==(o=VF(n))&&(i.data=o),uF(i),o=i):o=null,(e=PF?function(e,t){switch(e){case"compositionend":return VF(t);case"keypress":return 32!==t.which?null:(FF=!0,jF);case"textInput":return(e=t.data)===jF&&FF?null:e;default:return null}}(e,n):function(e,t){if(HF)return"compositionend"===e||!IF&&BF(e,t)?(e=EF(),wF=SF=MF=null,HF=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return LF&&"ko"!==t.locale?null:t.data;default:return null}}(e,n))?((t=DF.getPooled(zF.beforeInput,t,n,r)).data=e,uF(t)):t=null,null===o?t:null===t?o:[o,t]}},UF=null,WF=null,YF=null;function XF(e){if(e=Bz(e)){"function"!=typeof UF&&Ez("280");var t=Fz(e.stateNode);UF(e.stateNode,e.type,t)}}function GF(e){WF?YF?YF.push(e):YF=[e]:WF=e}function KF(){if(WF){var e=WF,t=YF;if(YF=WF=null,XF(e),t)for(e=0;e<t.length;e++)XF(t[e])}}function JF(e,t){return e(t)}function ZF(e,t,n){return e(t,n)}function QF(){}var eB=!1;function tB(e,t){if(eB)return e(t);eB=!0;try{return JF(e,t)}finally{eB=!1,(null!==WF||null!==YF)&&(QF(),KF())}}var nB={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 rB(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!nB[e.type]:"textarea"===t}function iB(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}function oB(e){if(!cF)return!1;var t=(e="on"+e)in document;return t||((t=document.createElement("div")).setAttribute(e,"return;"),t="function"==typeof t[e]),t}function aB(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function sB(e){e._valueTracker||(e._valueTracker=function(e){var t=aB(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 lB(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=aB(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}var uB=xz.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;uB.hasOwnProperty("ReactCurrentDispatcher")||(uB.ReactCurrentDispatcher={current:null});var cB=/^(.*)[\\\/]/,dB="function"==typeof Symbol&&Symbol.for,fB=dB?Symbol.for("react.element"):60103,hB=dB?Symbol.for("react.portal"):60106,pB=dB?Symbol.for("react.fragment"):60107,mB=dB?Symbol.for("react.strict_mode"):60108,yB=dB?Symbol.for("react.profiler"):60114,gB=dB?Symbol.for("react.provider"):60109,vB=dB?Symbol.for("react.context"):60110,bB=dB?Symbol.for("react.concurrent_mode"):60111,xB=dB?Symbol.for("react.forward_ref"):60112,MB=dB?Symbol.for("react.suspense"):60113,SB=dB?Symbol.for("react.memo"):60115,wB=dB?Symbol.for("react.lazy"):60116,EB="function"==typeof Symbol&&Symbol.iterator;function kB(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=EB&&e[EB]||e["@@iterator"])?e:null}function CB(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 bB:return"ConcurrentMode";case pB:return"Fragment";case hB:return"Portal";case yB:return"Profiler";case mB:return"StrictMode";case MB:return"Suspense"}if("object"==typeof e)switch(e.$$typeof){case vB:return"Context.Consumer";case gB:return"Context.Provider";case xB:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case SB:return CB(e.type);case wB:if(e=1===e._status?e._result:null)return CB(e)}return null}function OB(e){var t="";do{e:switch(e.tag){case 3:case 4:case 6:case 7:case 10:case 9:var n="";break e;default:var r=e._debugOwner,i=e._debugSource,o=CB(e.type);n=null,r&&(n=CB(r.type)),r=o,o="",i?o=" (at "+i.fileName.replace(cB,"")+":"+i.lineNumber+")":n&&(o=" (created by "+n+")"),n="\n in "+(r||"Unknown")+o}t+=n,e=e.return}while(e);return t}var TB=/^[: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]*$/,AB=Object.prototype.hasOwnProperty,NB={},qB={};function DB(e,t,n,r,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t}var RB={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){RB[e]=new DB(e,0,!1,e,null)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];RB[t]=new DB(t,1,!1,e[1],null)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){RB[e]=new DB(e,2,!1,e.toLowerCase(),null)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){RB[e]=new DB(e,2,!1,e,null)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){RB[e]=new DB(e,3,!1,e.toLowerCase(),null)})),["checked","multiple","muted","selected"].forEach((function(e){RB[e]=new DB(e,3,!0,e,null)})),["capture","download"].forEach((function(e){RB[e]=new DB(e,4,!1,e,null)})),["cols","rows","size","span"].forEach((function(e){RB[e]=new DB(e,6,!1,e,null)})),["rowSpan","start"].forEach((function(e){RB[e]=new DB(e,5,!1,e.toLowerCase(),null)}));var IB=/[\-:]([a-z])/g;function _B(e){return e[1].toUpperCase()}function PB(e,t,n,r){var i=RB.hasOwnProperty(t)?RB[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!!AB.call(qB,e)||!AB.call(NB,e)&&(TB.test(e)?qB[e]=!0:(NB[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))))}function LB(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function jB(e,t){var n=t.checked;return Mz({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function zB(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=LB(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 FB(e,t){null!=(t=t.checked)&&PB(e,"checked",t,!1)}function BB(e,t){FB(e,t);var n=LB(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")?HB(e,t.type,n):t.hasOwnProperty("defaultValue")&&HB(e,t.type,LB(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function VB(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.defaultChecked,e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function HB(e,t,n){"number"===t&&e.ownerDocument.activeElement===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+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(IB,_B);RB[t]=new DB(t,1,!1,e,null)})),"xlink:actuate xlink:arcrole xlink:href xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(IB,_B);RB[t]=new DB(t,1,!1,e,"http://www.w3.org/1999/xlink")})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(IB,_B);RB[t]=new DB(t,1,!1,e,"http://www.w3.org/XML/1998/namespace")})),["tabIndex","crossOrigin"].forEach((function(e){RB[e]=new DB(e,1,!1,e.toLowerCase(),null)}));var $B={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}};function UB(e,t,n){return(e=OF.getPooled($B.change,e,t,n)).type="change",GF(n),uF(e),e}var WB=null,YB=null;function XB(e){Kz(e)}function GB(e){if(lB(nF(e)))return e}function KB(e,t){if("change"===e)return t}var JB=!1;function ZB(){WB&&(WB.detachEvent("onpropertychange",QB),YB=WB=null)}function QB(e){"value"===e.propertyName&&GB(YB)&&tB(XB,e=UB(YB,e,iB(e)))}function eV(e,t,n){"focus"===e?(ZB(),YB=n,(WB=t).attachEvent("onpropertychange",QB)):"blur"===e&&ZB()}function tV(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return GB(YB)}function nV(e,t){if("click"===e)return GB(t)}function rV(e,t){if("input"===e||"change"===e)return GB(t)}cF&&(JB=oB("input")&&(!document.documentMode||9<document.documentMode));var iV={eventTypes:$B,_isInputEventSupported:JB,extractEvents:function(e,t,n,r){var i=t?nF(t):window,o=void 0,a=void 0,s=i.nodeName&&i.nodeName.toLowerCase();if("select"===s||"input"===s&&"file"===i.type?o=KB:rB(i)?JB?o=rV:(o=tV,a=eV):(s=i.nodeName)&&"input"===s.toLowerCase()&&("checkbox"===i.type||"radio"===i.type)&&(o=nV),o&&(o=o(e,t)))return UB(o,n,r);a&&a(e,i,t),"blur"===e&&(e=i._wrapperState)&&e.controlled&&"number"===i.type&&HB(i,"number",i.value)}},oV=OF.extend({view:null,detail:null}),aV={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function sV(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=aV[e])&&!!t[e]}function lV(){return sV}var uV=0,cV=0,dV=!1,fV=!1,hV=oV.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:lV,button:null,buttons:null,relatedTarget:function(e){return e.relatedTarget||(e.fromElement===e.srcElement?e.toElement:e.fromElement)},movementX:function(e){if("movementX"in e)return e.movementX;var t=uV;return uV=e.screenX,dV?"mousemove"===e.type?e.screenX-t:0:(dV=!0,0)},movementY:function(e){if("movementY"in e)return e.movementY;var t=cV;return cV=e.screenY,fV?"mousemove"===e.type?e.screenY-t:0:(fV=!0,0)}}),pV=hV.extend({pointerId:null,width:null,height:null,pressure:null,tangentialPressure:null,tiltX:null,tiltY:null,twist:null,pointerType:null,isPrimary:null}),mV={mouseEnter:{registrationName:"onMouseEnter",dependencies:["mouseout","mouseover"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["mouseout","mouseover"]},pointerEnter:{registrationName:"onPointerEnter",dependencies:["pointerout","pointerover"]},pointerLeave:{registrationName:"onPointerLeave",dependencies:["pointerout","pointerover"]}},yV={eventTypes:mV,extractEvents:function(e,t,n,r){var i="mouseover"===e||"pointerover"===e,o="mouseout"===e||"pointerout"===e;if(i&&(n.relatedTarget||n.fromElement)||!o&&!i)return null;if(i=r.window===r?r:(i=r.ownerDocument)?i.defaultView||i.parentWindow:window,o?(o=t,t=(t=n.relatedTarget||n.toElement)?eF(t):null):o=null,o===t)return null;var a=void 0,s=void 0,l=void 0,u=void 0;"mouseout"===e||"mouseover"===e?(a=hV,s=mV.mouseLeave,l=mV.mouseEnter,u="mouse"):"pointerout"!==e&&"pointerover"!==e||(a=pV,s=mV.pointerLeave,l=mV.pointerEnter,u="pointer");var c=null==o?i:nF(o);if(i=null==t?i:nF(t),(e=a.getPooled(s,o,n,r)).type=u+"leave",e.target=c,e.relatedTarget=i,(n=a.getPooled(l,t,n,r)).type=u+"enter",n.target=i,n.relatedTarget=c,r=t,o&&r)e:{for(i=r,u=0,a=t=o;a;a=iF(a))u++;for(a=0,l=i;l;l=iF(l))a++;for(;0<u-a;)t=iF(t),u--;for(;0<a-u;)i=iF(i),a--;for(;u--;){if(t===i||t===i.alternate)break e;t=iF(t),i=iF(i)}t=null}else t=null;for(i=t,t=[];o&&o!==i&&(null===(u=o.alternate)||u!==i);)t.push(o),o=iF(o);for(o=[];r&&r!==i&&(null===(u=r.alternate)||u!==i);)o.push(r),r=iF(r);for(r=0;r<t.length;r++)sF(t[r],"bubbled",e);for(r=o.length;0<r--;)sF(o[r],"captured",n);return[e,n]}};function gV(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t}var vV=Object.prototype.hasOwnProperty;function bV(e,t){if(gV(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++)if(!vV.call(t,n[r])||!gV(e[n[r]],t[n[r]]))return!1;return!0}function xV(e){var t=e;if(e.alternate)for(;t.return;)t=t.return;else{if(0!=(2&t.effectTag))return 1;for(;t.return;)if(0!=(2&(t=t.return).effectTag))return 1}return 3===t.tag?2:3}function MV(e){2!==xV(e)&&Ez("188")}function SV(e){if(!(e=function(e){var t=e.alternate;if(!t)return 3===(t=xV(e))&&Ez("188"),1===t?null:e;for(var n=e,r=t;;){var i=n.return,o=i?i.alternate:null;if(!i||!o)break;if(i.child===o.child){for(var a=i.child;a;){if(a===n)return MV(i),e;if(a===r)return MV(i),t;a=a.sibling}Ez("188")}if(n.return!==r.return)n=i,r=o;else{a=!1;for(var 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}a||Ez("189")}}n.alternate!==r&&Ez("190")}return 3!==n.tag&&Ez("188"),n.stateNode.current===n?e:t}(e)))return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}var wV=OF.extend({animationName:null,elapsedTime:null,pseudoElement:null}),EV=OF.extend({clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),kV=oV.extend({relatedTarget:null});function CV(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}var OV={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},TV={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"},AV=oV.extend({key:function(e){if(e.key){var t=OV[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=CV(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?TV[e.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:lV,charCode:function(e){return"keypress"===e.type?CV(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?CV(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),NV=hV.extend({dataTransfer:null}),qV=oV.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:lV}),DV=OF.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),RV=hV.extend({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:null,deltaMode:null}),IV=[["abort","abort"],[yF,"animationEnd"],[gF,"animationIteration"],[vF,"animationStart"],["canplay","canPlay"],["canplaythrough","canPlayThrough"],["drag","drag"],["dragenter","dragEnter"],["dragexit","dragExit"],["dragleave","dragLeave"],["dragover","dragOver"],["durationchange","durationChange"],["emptied","emptied"],["encrypted","encrypted"],["ended","ended"],["error","error"],["gotpointercapture","gotPointerCapture"],["load","load"],["loadeddata","loadedData"],["loadedmetadata","loadedMetadata"],["loadstart","loadStart"],["lostpointercapture","lostPointerCapture"],["mousemove","mouseMove"],["mouseout","mouseOut"],["mouseover","mouseOver"],["playing","playing"],["pointermove","pointerMove"],["pointerout","pointerOut"],["pointerover","pointerOver"],["progress","progress"],["scroll","scroll"],["seeking","seeking"],["stalled","stalled"],["suspend","suspend"],["timeupdate","timeUpdate"],["toggle","toggle"],["touchmove","touchMove"],[bF,"transitionEnd"],["waiting","waiting"],["wheel","wheel"]],_V={},PV={};function LV(e,t){var n=e[0],r="on"+((e=e[1])[0].toUpperCase()+e.slice(1));t={phasedRegistrationNames:{bubbled:r,captured:r+"Capture"},dependencies:[n],isInteractive:t},_V[e]=t,PV[n]=t}[["blur","blur"],["cancel","cancel"],["click","click"],["close","close"],["contextmenu","contextMenu"],["copy","copy"],["cut","cut"],["auxclick","auxClick"],["dblclick","doubleClick"],["dragend","dragEnd"],["dragstart","dragStart"],["drop","drop"],["focus","focus"],["input","input"],["invalid","invalid"],["keydown","keyDown"],["keypress","keyPress"],["keyup","keyUp"],["mousedown","mouseDown"],["mouseup","mouseUp"],["paste","paste"],["pause","pause"],["play","play"],["pointercancel","pointerCancel"],["pointerdown","pointerDown"],["pointerup","pointerUp"],["ratechange","rateChange"],["reset","reset"],["seeked","seeked"],["submit","submit"],["touchcancel","touchCancel"],["touchend","touchEnd"],["touchstart","touchStart"],["volumechange","volumeChange"]].forEach((function(e){LV(e,!0)})),IV.forEach((function(e){LV(e,!1)}));var jV={eventTypes:_V,isInteractiveTopLevelEventType:function(e){return void 0!==(e=PV[e])&&!0===e.isInteractive},extractEvents:function(e,t,n,r){var i=PV[e];if(!i)return null;switch(e){case"keypress":if(0===CV(n))return null;case"keydown":case"keyup":e=AV;break;case"blur":case"focus":e=kV;break;case"click":if(2===n.button)return null;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":e=hV;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":e=NV;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":e=qV;break;case yF:case gF:case vF:e=wV;break;case bF:e=DV;break;case"scroll":e=oV;break;case"wheel":e=RV;break;case"copy":case"cut":case"paste":e=EV;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":e=pV;break;default:e=OF}return uF(t=e.getPooled(i,t,n,r)),t}},zV=jV.isInteractiveTopLevelEventType,FV=[];function BV(e){var t=e.targetInst,n=t;do{if(!n){e.ancestors.push(n);break}var r;for(r=n;r.return;)r=r.return;if(!(r=3!==r.tag?null:r.stateNode.containerInfo))break;e.ancestors.push(n),n=eF(r)}while(n);for(n=0;n<e.ancestors.length;n++){t=e.ancestors[n];var i=iB(e.nativeEvent);r=e.topLevelType;for(var o=e.nativeEvent,a=null,s=0;s<Pz.length;s++){var l=Pz[s];l&&(l=l.extractEvents(r,t,o,i))&&(a=$z(a,l))}Kz(a)}}var VV=!0;function HV(e,t){if(!t)return null;var n=(zV(e)?UV:WV).bind(null,e);t.addEventListener(e,n,!1)}function $V(e,t){if(!t)return null;var n=(zV(e)?UV:WV).bind(null,e);t.addEventListener(e,n,!0)}function UV(e,t){ZF(WV,e,t)}function WV(e,t){if(VV){var n=iB(t);if(null===(n=eF(n))||"number"!=typeof n.tag||2===xV(n)||(n=null),FV.length){var r=FV.pop();r.topLevelType=e,r.nativeEvent=t,r.targetInst=n,e=r}else e={topLevelType:e,nativeEvent:t,targetInst:n,ancestors:[]};try{tB(BV,e)}finally{e.topLevelType=null,e.nativeEvent=null,e.targetInst=null,e.ancestors.length=0,10>FV.length&&FV.push(e)}}}var YV={},XV=0,GV="_reactListenersID"+(""+Math.random()).slice(2);function KV(e){return Object.prototype.hasOwnProperty.call(e,GV)||(e[GV]=XV++,YV[e[GV]]={}),YV[e[GV]]}function JV(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 ZV(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function QV(e,t){var n,r=ZV(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=ZV(r)}}function eH(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?eH(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function tH(){for(var e=window,t=JV();t instanceof e.HTMLIFrameElement;){try{e=t.contentDocument.defaultView}catch(e){break}t=JV(e.document)}return t}function nH(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 rH(e){var t=tH(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&eH(n.ownerDocument.documentElement,n)){if(null!==r&&nH(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=QV(n,o);var a=QV(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 iH=cF&&"documentMode"in document&&11>=document.documentMode,oH={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},aH=null,sH=null,lH=null,uH=!1;function cH(e,t){var n=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;return uH||null==aH||aH!==JV(n)?null:("selectionStart"in(n=aH)&&nH(n)?n={start:n.selectionStart,end:n.selectionEnd}:n={anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},lH&&bV(lH,n)?null:(lH=n,(e=OF.getPooled(oH.select,sH,e,t)).type="select",e.target=aH,uF(e),e))}var dH={eventTypes:oH,extractEvents:function(e,t,n,r){var i,o=r.window===r?r.document:9===r.nodeType?r:r.ownerDocument;if(!(i=!o)){e:{o=KV(o),i=zz.onSelect;for(var a=0;a<i.length;a++){var s=i[a];if(!o.hasOwnProperty(s)||!o[s]){o=!1;break e}}o=!0}i=!o}if(i)return null;switch(o=t?nF(t):window,e){case"focus":(rB(o)||"true"===o.contentEditable)&&(aH=o,sH=t,lH=null);break;case"blur":lH=sH=aH=null;break;case"mousedown":uH=!0;break;case"contextmenu":case"mouseup":case"dragend":return uH=!1,cH(n,r);case"selectionchange":if(iH)break;case"keydown":case"keyup":return cH(n,r)}return null}};function fH(e,t){return e=Mz({children:void 0},t),(t=function(e){var t="";return xz.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function hH(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=""+LB(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 pH(e,t){return null!=t.dangerouslySetInnerHTML&&Ez("91"),Mz({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function mH(e,t){var n=t.value;null==n&&(n=t.defaultValue,null!=(t=t.children)&&(null!=n&&Ez("92"),Array.isArray(t)&&(1>=t.length||Ez("93"),t=t[0]),n=t),null==n&&(n="")),e._wrapperState={initialValue:LB(n)}}function yH(e,t){var n=LB(t.value),r=LB(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 gH(e){var t=e.textContent;t===e._wrapperState.initialValue&&(e.value=t)}Xz.injectEventPluginOrder("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),Fz=rF,Bz=tF,Vz=nF,Xz.injectEventPluginsByName({SimpleEventPlugin:jV,EnterLeaveEventPlugin:yV,ChangeEventPlugin:iV,SelectEventPlugin:dH,BeforeInputEventPlugin:$F});var vH="http://www.w3.org/1999/xhtml",bH="http://www.w3.org/2000/svg";function xH(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 MH(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?xH(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var SH=void 0,wH=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(e.namespaceURI!==bH||"innerHTML"in e)e.innerHTML=t;else{for((SH=SH||document.createElement("div")).innerHTML="<svg>"+t+"</svg>",t=SH.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}));function EH(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 kH={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},CH=["Webkit","ms","Moz","O"];function OH(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||kH.hasOwnProperty(e)&&kH[e]?(""+t).trim():t+"px"}function TH(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=OH(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(kH).forEach((function(e){CH.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),kH[t]=kH[e]}))}));var AH=Mz({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 NH(e,t){t&&(AH[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML)&&Ez("137",e,""),null!=t.dangerouslySetInnerHTML&&(null!=t.children&&Ez("60"),"object"==typeof t.dangerouslySetInnerHTML&&"__html"in t.dangerouslySetInnerHTML||Ez("61")),null!=t.style&&"object"!=typeof t.style&&Ez("62",""))}function qH(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}}function DH(e,t){var n=KV(e=9===e.nodeType||11===e.nodeType?e:e.ownerDocument);t=zz[t];for(var r=0;r<t.length;r++){var i=t[r];if(!n.hasOwnProperty(i)||!n[i]){switch(i){case"scroll":$V("scroll",e);break;case"focus":case"blur":$V("focus",e),$V("blur",e),n.blur=!0,n.focus=!0;break;case"cancel":case"close":oB(i)&&$V(i,e);break;case"invalid":case"submit":case"reset":break;default:-1===xF.indexOf(i)&&HV(i,e)}n[i]=!0}}}function RH(){}var IH=null,_H=null;function PH(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function LH(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var jH="function"==typeof setTimeout?setTimeout:void 0,zH="function"==typeof clearTimeout?clearTimeout:void 0,FH=Sz.unstable_scheduleCallback,BH=Sz.unstable_cancelCallback;function VH(e){for(e=e.nextSibling;e&&1!==e.nodeType&&3!==e.nodeType;)e=e.nextSibling;return e}function HH(e){for(e=e.firstChild;e&&1!==e.nodeType&&3!==e.nodeType;)e=e.nextSibling;return e}var $H=[],UH=-1;function WH(e){0>UH||(e.current=$H[UH],$H[UH]=null,UH--)}function YH(e,t){UH++,$H[UH]=e.current,e.current=t}var XH={},GH={current:XH},KH={current:!1},JH=XH;function ZH(e,t){var n=e.type.contextTypes;if(!n)return XH;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 QH(e){return null!=(e=e.childContextTypes)}function e$(e){WH(KH),WH(GH)}function t$(e){WH(KH),WH(GH)}function n$(e,t,n){GH.current!==XH&&Ez("168"),YH(GH,t),YH(KH,n)}function r$(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var i in r=r.getChildContext())i in e||Ez("108",CB(t)||"Unknown",i);return Mz({},n,r)}function i$(e){var t=e.stateNode;return t=t&&t.__reactInternalMemoizedMergedChildContext||XH,JH=GH.current,YH(GH,t),YH(KH,KH.current),!0}function o$(e,t,n){var r=e.stateNode;r||Ez("169"),n?(t=r$(e,t,JH),r.__reactInternalMemoizedMergedChildContext=t,WH(KH),WH(GH),YH(GH,t)):WH(KH),YH(KH,n)}var a$=null,s$=null;function l$(e){return function(t){try{return e(t)}catch(e){}}}function u$(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.contextDependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childExpirationTime=this.expirationTime=0,this.alternate=null}function c$(e,t,n,r){return new u$(e,t,n,r)}function d$(e){return!(!(e=e.prototype)||!e.isReactComponent)}function f$(e,t){var n=e.alternate;return null===n?((n=c$(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.effectTag=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childExpirationTime=e.childExpirationTime,n.expirationTime=e.expirationTime,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,n.contextDependencies=e.contextDependencies,n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function h$(e,t,n,r,i,o){var a=2;if(r=e,"function"==typeof e)d$(e)&&(a=1);else if("string"==typeof e)a=5;else e:switch(e){case pB:return p$(n.children,i,o,t);case bB:return m$(n,3|i,o,t);case mB:return m$(n,2|i,o,t);case yB:return(e=c$(12,n,t,4|i)).elementType=yB,e.type=yB,e.expirationTime=o,e;case MB:return(e=c$(13,n,t,i)).elementType=MB,e.type=MB,e.expirationTime=o,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case gB:a=10;break e;case vB:a=9;break e;case xB:a=11;break e;case SB:a=14;break e;case wB:a=16,r=null;break e}Ez("130",null==e?e:typeof e,"")}return(t=c$(a,n,t,i)).elementType=e,t.type=r,t.expirationTime=o,t}function p$(e,t,n,r){return(e=c$(7,e,r,t)).expirationTime=n,e}function m$(e,t,n,r){return e=c$(8,e,r,t),t=0==(1&t)?mB:bB,e.elementType=t,e.type=t,e.expirationTime=n,e}function y$(e,t,n){return(e=c$(6,e,null,t)).expirationTime=n,e}function g$(e,t,n){return(t=c$(4,null!==e.children?e.children:[],e.key,t)).expirationTime=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function v$(e,t){e.didError=!1;var n=e.earliestPendingTime;0===n?e.earliestPendingTime=e.latestPendingTime=t:n<t?e.earliestPendingTime=t:e.latestPendingTime>t&&(e.latestPendingTime=t),M$(t,e)}function b$(e,t){e.didError=!1,e.latestPingedTime>=t&&(e.latestPingedTime=0);var n=e.earliestPendingTime,r=e.latestPendingTime;n===t?e.earliestPendingTime=r===t?e.latestPendingTime=0:r:r===t&&(e.latestPendingTime=n),n=e.earliestSuspendedTime,r=e.latestSuspendedTime,0===n?e.earliestSuspendedTime=e.latestSuspendedTime=t:n<t?e.earliestSuspendedTime=t:r>t&&(e.latestSuspendedTime=t),M$(t,e)}function x$(e,t){var n=e.earliestPendingTime;return n>t&&(t=n),(e=e.earliestSuspendedTime)>t&&(t=e),t}function M$(e,t){var n=t.earliestSuspendedTime,r=t.latestSuspendedTime,i=t.earliestPendingTime,o=t.latestPingedTime;0===(i=0!==i?i:o)&&(0===e||r<e)&&(i=r),0!==(e=i)&&n>e&&(e=n),t.nextExpirationTimeToWorkOn=i,t.expirationTime=e}function S$(e,t){if(e&&e.defaultProps)for(var n in t=Mz({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}var w$=(new xz.Component).refs;function E$(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:Mz({},t,n),e.memoizedState=n,null!==(r=e.updateQueue)&&0===e.expirationTime&&(r.baseState=n)}var k$={isMounted:function(e){return!!(e=e._reactInternalFiber)&&2===xV(e)},enqueueSetState:function(e,t,n){e=e._reactInternalFiber;var r=DY(),i=iW(r=rY(r,e));i.payload=t,null!=n&&(i.callback=n),JW(),aW(e,i),sY(e,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternalFiber;var r=DY(),i=iW(r=rY(r,e));i.tag=QU,i.payload=t,null!=n&&(i.callback=n),JW(),aW(e,i),sY(e,r)},enqueueForceUpdate:function(e,t){e=e._reactInternalFiber;var n=DY(),r=iW(n=rY(n,e));r.tag=eW,null!=t&&(r.callback=t),JW(),aW(e,r),sY(e,n)}};function C$(e,t,n,r,i,o,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,a):!t.prototype||!t.prototype.isPureReactComponent||(!bV(n,r)||!bV(i,o))}function O$(e,t,n){var r=!1,i=XH,o=t.contextType;return"object"==typeof o&&null!==o?o=ZU(o):(i=QH(t)?JH:GH.current,o=(r=null!=(r=t.contextTypes))?ZH(e,i):XH),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=k$,e.stateNode=t,t._reactInternalFiber=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function T$(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&&k$.enqueueReplaceState(t,t.state,null)}function A$(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=w$;var o=t.contextType;"object"==typeof o&&null!==o?i.context=ZU(o):(o=QH(t)?JH:GH.current,i.context=ZH(e,o)),null!==(o=e.updateQueue)&&(cW(e,o,n,i,r),i.state=e.memoizedState),"function"==typeof(o=t.getDerivedStateFromProps)&&(E$(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&&k$.enqueueReplaceState(i,i.state,null),null!==(o=e.updateQueue)&&(cW(e,o,n,i,r),i.state=e.memoizedState)),"function"==typeof i.componentDidMount&&(e.effectTag|=4)}var N$=Array.isArray;function q$(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){n=n._owner;var r=void 0;n&&(1!==n.tag&&Ez("309"),r=n.stateNode),r||Ez("147",e);var i=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===i?t.ref:((t=function(e){var t=r.refs;t===w$&&(t=r.refs={}),null===e?delete t[i]:t[i]=e})._stringRef=i,t)}"string"!=typeof e&&Ez("284"),n._owner||Ez("290",e)}return e}function D$(e,t){"textarea"!==e.type&&Ez("31","[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t,"")}function R$(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.effectTag=8}}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,n){return(e=f$(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.effectTag=2,n):r:(t.effectTag=2,n):n}function a(t){return e&&null===t.alternate&&(t.effectTag=2),t}function s(e,t,n,r){return null===t||6!==t.tag?((t=y$(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function l(e,t,n,r){return null!==t&&t.elementType===n.type?((r=i(t,n.props)).ref=q$(e,t,n),r.return=e,r):((r=h$(n.type,n.key,n.props,null,e.mode,r)).ref=q$(e,t,n),r.return=e,r)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=g$(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function c(e,t,n,r,o){return null===t||7!==t.tag?((t=p$(n,e.mode,r,o)).return=e,t):((t=i(t,n)).return=e,t)}function d(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=y$(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case fB:return(n=h$(t.type,t.key,t.props,null,e.mode,n)).ref=q$(e,null,t),n.return=e,n;case hB:return(t=g$(t,e.mode,n)).return=e,t}if(N$(t)||kB(t))return(t=p$(t,e.mode,n,null)).return=e,t;D$(e,t)}return null}function f(e,t,n,r){var i=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==i?null:s(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case fB:return n.key===i?n.type===pB?c(e,t,n.props.children,r,i):l(e,t,n,r):null;case hB:return n.key===i?u(e,t,n,r):null}if(N$(n)||kB(n))return null!==i?null:c(e,t,n,r,null);D$(e,n)}return null}function h(e,t,n,r,i){if("string"==typeof r||"number"==typeof r)return s(t,e=e.get(n)||null,""+r,i);if("object"==typeof r&&null!==r){switch(r.$$typeof){case fB:return e=e.get(null===r.key?n:r.key)||null,r.type===pB?c(t,e,r.props.children,i,r.key):l(t,e,r,i);case hB:return u(t,e=e.get(null===r.key?n:r.key)||null,r,i)}if(N$(r)||kB(r))return c(t,e=e.get(n)||null,r,i,null);D$(t,r)}return null}function p(i,a,s,l){for(var u=null,c=null,p=a,m=a=0,y=null;null!==p&&m<s.length;m++){p.index>m?(y=p,p=null):y=p.sibling;var g=f(i,p,s[m],l);if(null===g){null===p&&(p=y);break}e&&p&&null===g.alternate&&t(i,p),a=o(g,a,m),null===c?u=g:c.sibling=g,c=g,p=y}if(m===s.length)return n(i,p),u;if(null===p){for(;m<s.length;m++)(p=d(i,s[m],l))&&(a=o(p,a,m),null===c?u=p:c.sibling=p,c=p);return u}for(p=r(i,p);m<s.length;m++)(y=h(p,i,m,s[m],l))&&(e&&null!==y.alternate&&p.delete(null===y.key?m:y.key),a=o(y,a,m),null===c?u=y:c.sibling=y,c=y);return e&&p.forEach((function(e){return t(i,e)})),u}function m(i,a,s,l){var u=kB(s);"function"!=typeof u&&Ez("150"),null==(s=u.call(s))&&Ez("151");for(var c=u=null,p=a,m=a=0,y=null,g=s.next();null!==p&&!g.done;m++,g=s.next()){p.index>m?(y=p,p=null):y=p.sibling;var v=f(i,p,g.value,l);if(null===v){p||(p=y);break}e&&p&&null===v.alternate&&t(i,p),a=o(v,a,m),null===c?u=v:c.sibling=v,c=v,p=y}if(g.done)return n(i,p),u;if(null===p){for(;!g.done;m++,g=s.next())null!==(g=d(i,g.value,l))&&(a=o(g,a,m),null===c?u=g:c.sibling=g,c=g);return u}for(p=r(i,p);!g.done;m++,g=s.next())null!==(g=h(p,i,m,g.value,l))&&(e&&null!==g.alternate&&p.delete(null===g.key?m:g.key),a=o(g,a,m),null===c?u=g:c.sibling=g,c=g);return e&&p.forEach((function(e){return t(i,e)})),u}return function(e,r,o,s){var l="object"==typeof o&&null!==o&&o.type===pB&&null===o.key;l&&(o=o.props.children);var u="object"==typeof o&&null!==o;if(u)switch(o.$$typeof){case fB:e:{for(u=o.key,l=r;null!==l;){if(l.key===u){if(7===l.tag?o.type===pB:l.elementType===o.type){n(e,l.sibling),(r=i(l,o.type===pB?o.props.children:o.props)).ref=q$(e,l,o),r.return=e,e=r;break e}n(e,l);break}t(e,l),l=l.sibling}o.type===pB?((r=p$(o.props.children,e.mode,s,o.key)).return=e,e=r):((s=h$(o.type,o.key,o.props,null,e.mode,s)).ref=q$(e,r,o),s.return=e,e=s)}return a(e);case hB:e:{for(l=o.key;null!==r;){if(r.key===l){if(4===r.tag&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),(r=i(r,o.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=g$(o,e.mode,s)).return=e,e=r}return a(e)}if("string"==typeof o||"number"==typeof o)return o=""+o,null!==r&&6===r.tag?(n(e,r.sibling),(r=i(r,o)).return=e,e=r):(n(e,r),(r=y$(o,e.mode,s)).return=e,e=r),a(e);if(N$(o))return p(e,r,o,s);if(kB(o))return m(e,r,o,s);if(u&&D$(e,o),void 0===o&&!l)switch(e.tag){case 1:case 0:Ez("152",(s=e.type).displayName||s.name||"Component")}return n(e,r)}}var I$=R$(!0),_$=R$(!1),P$={},L$={current:P$},j$={current:P$},z$={current:P$};function F$(e){return e===P$&&Ez("174"),e}function B$(e,t){YH(z$,t),YH(j$,e),YH(L$,P$);var n=t.nodeType;switch(n){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:MH(null,"");break;default:t=MH(t=(n=8===n?t.parentNode:t).namespaceURI||null,n=n.tagName)}WH(L$),YH(L$,t)}function V$(e){WH(L$),WH(j$),WH(z$)}function H$(e){F$(z$.current);var t=F$(L$.current),n=MH(t,e.type);t!==n&&(YH(j$,e),YH(L$,n))}function $$(e){j$.current===e&&(WH(L$),WH(j$))}var U$=uB.ReactCurrentDispatcher,W$=0,Y$=null,X$=null,G$=null,K$=null,J$=null,Z$=null,Q$=0,eU=null,tU=0,nU=!1,rU=null,iU=0;function oU(){Ez("307")}function aU(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!gV(e[n],t[n]))return!1;return!0}function sU(e,t,n,r,i,o){if(W$=o,Y$=t,G$=null!==e?e.memoizedState:null,U$.current=null===G$?xU:MU,t=n(r,i),nU){do{nU=!1,iU+=1,G$=null!==e?e.memoizedState:null,Z$=K$,eU=J$=X$=null,U$.current=MU,t=n(r,i)}while(nU);rU=null,iU=0}return U$.current=bU,(e=Y$).memoizedState=K$,e.expirationTime=Q$,e.updateQueue=eU,e.effectTag|=tU,e=null!==X$&&null!==X$.next,W$=0,Z$=J$=K$=G$=X$=Y$=null,Q$=0,eU=null,tU=0,e&&Ez("300"),t}function lU(){U$.current=bU,W$=0,Z$=J$=K$=G$=X$=Y$=null,Q$=0,eU=null,tU=0,nU=!1,rU=null,iU=0}function uU(){var e={memoizedState:null,baseState:null,queue:null,baseUpdate:null,next:null};return null===J$?K$=J$=e:J$=J$.next=e,J$}function cU(){if(null!==Z$)Z$=(J$=Z$).next,G$=null!==(X$=G$)?X$.next:null;else{null===G$&&Ez("310");var e={memoizedState:(X$=G$).memoizedState,baseState:X$.baseState,queue:X$.queue,baseUpdate:X$.baseUpdate,next:null};J$=null===J$?K$=e:J$.next=e,G$=X$.next}return J$}function dU(e,t){return"function"==typeof t?t(e):t}function fU(e){var t=cU(),n=t.queue;if(null===n&&Ez("311"),0<iU){var r=n.dispatch;if(null!==rU){var i=rU.get(n);if(void 0!==i){rU.delete(n);var o=t.memoizedState;do{o=e(o,i.action),i=i.next}while(null!==i);return gV(o,t.memoizedState)||(DU=!0),t.memoizedState=o,t.baseUpdate===n.last&&(t.baseState=o),n.eagerReducer=e,n.eagerState=o,[o,r]}}return[t.memoizedState,r]}r=n.last;var a=t.baseUpdate;if(o=t.baseState,null!==a?(null!==r&&(r.next=null),r=a.next):r=null!==r?r.next:null,null!==r){var s=i=null,l=r,u=!1;do{var c=l.expirationTime;c<W$?(u||(u=!0,s=a,i=o),c>Q$&&(Q$=c)):o=l.eagerReducer===e?l.eagerState:e(o,l.action),a=l,l=l.next}while(null!==l&&l!==r);u||(s=a,i=o),gV(o,t.memoizedState)||(DU=!0),t.memoizedState=o,t.baseUpdate=s,t.baseState=i,n.eagerReducer=e,n.eagerState=o}return[t.memoizedState,n.dispatch]}function hU(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===eU?(eU={lastEffect:null}).lastEffect=e.next=e:null===(t=eU.lastEffect)?eU.lastEffect=e.next=e:(n=t.next,t.next=e,e.next=n,eU.lastEffect=e),e}function pU(e,t,n,r){var i=uU();tU|=e,i.memoizedState=hU(t,n,void 0,void 0===r?null:r)}function mU(e,t,n,r){var i=cU();r=void 0===r?null:r;var o=void 0;if(null!==X$){var a=X$.memoizedState;if(o=a.destroy,null!==r&&aU(r,a.deps))return void hU(0,n,o,r)}tU|=e,i.memoizedState=hU(t,n,o,r)}function yU(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 gU(){}function vU(e,t,n){25>iU||Ez("301");var r=e.alternate;if(e===Y$||null!==r&&r===Y$)if(nU=!0,e={expirationTime:W$,action:n,eagerReducer:null,eagerState:null,next:null},null===rU&&(rU=new Map),void 0===(n=rU.get(t)))rU.set(t,e);else{for(t=n;null!==t.next;)t=t.next;t.next=e}else{JW();var i=DY(),o={expirationTime:i=rY(i,e),action:n,eagerReducer:null,eagerState:null,next:null},a=t.last;if(null===a)o.next=o;else{var s=a.next;null!==s&&(o.next=s),a.next=o}if(t.last=o,0===e.expirationTime&&(null===r||0===r.expirationTime)&&null!==(r=t.eagerReducer))try{var l=t.eagerState,u=r(l,n);if(o.eagerReducer=r,o.eagerState=u,gV(u,l))return}catch(e){}sY(e,i)}}var bU={readContext:ZU,useCallback:oU,useContext:oU,useEffect:oU,useImperativeHandle:oU,useLayoutEffect:oU,useMemo:oU,useReducer:oU,useRef:oU,useState:oU,useDebugValue:oU},xU={readContext:ZU,useCallback:function(e,t){return uU().memoizedState=[e,void 0===t?null:t],e},useContext:ZU,useEffect:function(e,t){return pU(516,192,e,t)},useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,pU(4,36,yU.bind(null,t,e),n)},useLayoutEffect:function(e,t){return pU(4,36,e,t)},useMemo:function(e,t){var n=uU();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=uU();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={last:null,dispatch:null,eagerReducer:e,eagerState:t}).dispatch=vU.bind(null,Y$,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},uU().memoizedState=e},useState:function(e){var t=uU();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={last:null,dispatch:null,eagerReducer:dU,eagerState:e}).dispatch=vU.bind(null,Y$,e),[t.memoizedState,e]},useDebugValue:gU},MU={readContext:ZU,useCallback:function(e,t){var n=cU();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&aU(t,r[1])?r[0]:(n.memoizedState=[e,t],e)},useContext:ZU,useEffect:function(e,t){return mU(516,192,e,t)},useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,mU(4,36,yU.bind(null,t,e),n)},useLayoutEffect:function(e,t){return mU(4,36,e,t)},useMemo:function(e,t){var n=cU();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&aU(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)},useReducer:fU,useRef:function(){return cU().memoizedState},useState:function(e){return fU(dU)},useDebugValue:gU},SU=null,wU=null,EU=!1;function kU(e,t){var n=c$(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.effectTag=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function CU(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,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);case 13:default:return!1}}function OU(e){if(EU){var t=wU;if(t){var n=t;if(!CU(e,t)){if(!(t=VH(n))||!CU(e,t))return e.effectTag|=2,EU=!1,void(SU=e);kU(SU,n)}SU=e,wU=HH(t)}else e.effectTag|=2,EU=!1,SU=e}}function TU(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&18!==e.tag;)e=e.return;SU=e}function AU(e){if(e!==SU)return!1;if(!EU)return TU(e),EU=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!LH(t,e.memoizedProps))for(t=wU;t;)kU(e,t),t=VH(t);return TU(e),wU=SU?VH(e.stateNode):null,!0}function NU(){wU=SU=null,EU=!1}var qU=uB.ReactCurrentOwner,DU=!1;function RU(e,t,n,r){t.child=null===e?_$(t,null,n,r):I$(t,e.child,n,r)}function IU(e,t,n,r,i){n=n.render;var o=t.ref;return JU(t,i),r=sU(e,t,n,r,o,i),null===e||DU?(t.effectTag|=1,RU(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=i&&(e.expirationTime=0),HU(e,t,i))}function _U(e,t,n,r,i,o){if(null===e){var a=n.type;return"function"!=typeof a||d$(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=h$(n.type,null,r,null,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,PU(e,t,a,r,i,o))}return a=e.child,i<o&&(i=a.memoizedProps,(n=null!==(n=n.compare)?n:bV)(i,r)&&e.ref===t.ref)?HU(e,t,o):(t.effectTag|=1,(e=f$(a,r)).ref=t.ref,e.return=t,t.child=e)}function PU(e,t,n,r,i,o){return null!==e&&bV(e.memoizedProps,r)&&e.ref===t.ref&&(DU=!1,i<o)?HU(e,t,o):jU(e,t,n,r,o)}function LU(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.effectTag|=128)}function jU(e,t,n,r,i){var o=QH(n)?JH:GH.current;return o=ZH(t,o),JU(t,i),n=sU(e,t,n,r,o,i),null===e||DU?(t.effectTag|=1,RU(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=i&&(e.expirationTime=0),HU(e,t,i))}function zU(e,t,n,r,i){if(QH(n)){var o=!0;i$(t)}else o=!1;if(JU(t,i),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),O$(t,n,r),A$(t,n,r,i),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,u=n.contextType;"object"==typeof u&&null!==u?u=ZU(u):u=ZH(t,u=QH(n)?JH:GH.current);var c=n.getDerivedStateFromProps,d="function"==typeof c||"function"==typeof a.getSnapshotBeforeUpdate;d||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||l!==u)&&T$(t,a,r,u),tW=!1;var f=t.memoizedState;l=a.state=f;var h=t.updateQueue;null!==h&&(cW(t,h,r,a,i),l=t.memoizedState),s!==r||f!==l||KH.current||tW?("function"==typeof c&&(E$(t,n,c,r),l=t.memoizedState),(s=tW||C$(t,n,s,r,f,l,u))?(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.effectTag|=4)):("function"==typeof a.componentDidMount&&(t.effectTag|=4),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=u,r=s):("function"==typeof a.componentDidMount&&(t.effectTag|=4),r=!1)}else a=t.stateNode,s=t.memoizedProps,a.props=t.type===t.elementType?s:S$(t.type,s),l=a.context,"object"==typeof(u=n.contextType)&&null!==u?u=ZU(u):u=ZH(t,u=QH(n)?JH:GH.current),(d="function"==typeof(c=n.getDerivedStateFromProps)||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||l!==u)&&T$(t,a,r,u),tW=!1,l=t.memoizedState,f=a.state=l,null!==(h=t.updateQueue)&&(cW(t,h,r,a,i),f=t.memoizedState),s!==r||l!==f||KH.current||tW?("function"==typeof c&&(E$(t,n,c,r),f=t.memoizedState),(c=tW||C$(t,n,s,r,l,f,u))?(d||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,f,u),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,f,u)),"function"==typeof a.componentDidUpdate&&(t.effectTag|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.effectTag|=256)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=256),t.memoizedProps=r,t.memoizedState=f),a.props=r,a.state=f,a.context=u,r=c):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=256),r=!1);return FU(e,t,n,r,o,i)}function FU(e,t,n,r,i,o){LU(e,t);var a=0!=(64&t.effectTag);if(!r&&!a)return i&&o$(t,n,!1),HU(e,t,o);r=t.stateNode,qU.current=t;var s=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.effectTag|=1,null!==e&&a?(t.child=I$(t,e.child,null,o),t.child=I$(t,null,s,o)):RU(e,t,s,o),t.memoizedState=r.state,i&&o$(t,n,!0),t.child}function BU(e){var t=e.stateNode;t.pendingContext?n$(0,t.pendingContext,t.pendingContext!==t.context):t.context&&n$(0,t.context,!1),B$(e,t.containerInfo)}function VU(e,t,n){var r=t.mode,i=t.pendingProps,o=t.memoizedState;if(0==(64&t.effectTag)){o=null;var a=!1}else o={timedOutAt:null!==o?o.timedOutAt:0},a=!0,t.effectTag&=-65;if(null===e)if(a){var s=i.fallback;e=p$(null,r,0,null),0==(1&t.mode)&&(e.child=null!==t.memoizedState?t.child.child:t.child),r=p$(s,r,n,null),e.sibling=r,(n=e).return=r.return=t}else n=r=_$(t,null,i.children,n);else null!==e.memoizedState?(s=(r=e.child).sibling,a?(n=i.fallback,i=f$(r,r.pendingProps),0==(1&t.mode)&&((a=null!==t.memoizedState?t.child.child:t.child)!==r.child&&(i.child=a)),r=i.sibling=f$(s,n,s.expirationTime),n=i,i.childExpirationTime=0,n.return=r.return=t):n=r=I$(t,r.child,i.children,n)):(s=e.child,a?(a=i.fallback,(i=p$(null,r,0,null)).child=s,0==(1&t.mode)&&(i.child=null!==t.memoizedState?t.child.child:t.child),(r=i.sibling=p$(a,r,n,null)).effectTag|=2,n=i,i.childExpirationTime=0,n.return=r.return=t):r=n=I$(t,s,i.children,n)),t.stateNode=e.stateNode;return t.memoizedState=o,t.child=n,r}function HU(e,t,n){if(null!==e&&(t.contextDependencies=e.contextDependencies),t.childExpirationTime<n)return null;if(null!==e&&t.child!==e.child&&Ez("153"),null!==t.child){for(n=f$(e=t.child,e.pendingProps,e.expirationTime),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=f$(e,e.pendingProps,e.expirationTime)).return=t;n.sibling=null}return t.child}function $U(e,t,n){var r=t.expirationTime;if(null!==e){if(e.memoizedProps!==t.pendingProps||KH.current)DU=!0;else if(r<n){switch(DU=!1,t.tag){case 3:BU(t),NU();break;case 5:H$(t);break;case 1:QH(t.type)&&i$(t);break;case 4:B$(t,t.stateNode.containerInfo);break;case 10:GU(t,t.memoizedProps.value);break;case 13:if(null!==t.memoizedState)return 0!==(r=t.child.childExpirationTime)&&r>=n?VU(e,t,n):null!==(t=HU(e,t,n))?t.sibling:null}return HU(e,t,n)}}else DU=!1;switch(t.expirationTime=0,t.tag){case 2:r=t.elementType,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps;var i=ZH(t,GH.current);if(JU(t,n),i=sU(null,t,r,e,i,n),t.effectTag|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof){if(t.tag=1,lU(),QH(r)){var o=!0;i$(t)}else o=!1;t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null;var a=r.getDerivedStateFromProps;"function"==typeof a&&E$(t,r,a,e),i.updater=k$,t.stateNode=i,i._reactInternalFiber=t,A$(t,r,e,n),t=FU(null,t,r,!0,o,n)}else t.tag=0,RU(null,t,i,n),t=t.child;return t;case 16:switch(i=t.elementType,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),o=t.pendingProps,e=function(e){var t=e._result;switch(e._status){case 1:return t;case 2:case 0:throw t;default:switch(e._status=0,(t=(t=e._ctor)()).then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)})),e._status){case 1:return e._result;case 2:throw e._result}throw e._result=t,t}}(i),t.type=e,i=t.tag=function(e){if("function"==typeof e)return d$(e)?1:0;if(null!=e){if((e=e.$$typeof)===xB)return 11;if(e===SB)return 14}return 2}(e),o=S$(e,o),a=void 0,i){case 0:a=jU(null,t,e,o,n);break;case 1:a=zU(null,t,e,o,n);break;case 11:a=IU(null,t,e,o,n);break;case 14:a=_U(null,t,e,S$(e.type,o),r,n);break;default:Ez("306",e,"")}return a;case 0:return r=t.type,i=t.pendingProps,jU(e,t,r,i=t.elementType===r?i:S$(r,i),n);case 1:return r=t.type,i=t.pendingProps,zU(e,t,r,i=t.elementType===r?i:S$(r,i),n);case 3:return BU(t),null===(r=t.updateQueue)&&Ez("282"),i=null!==(i=t.memoizedState)?i.element:null,cW(t,r,t.pendingProps,null,n),(r=t.memoizedState.element)===i?(NU(),t=HU(e,t,n)):(i=t.stateNode,(i=(null===e||null===e.child)&&i.hydrate)&&(wU=HH(t.stateNode.containerInfo),SU=t,i=EU=!0),i?(t.effectTag|=2,t.child=_$(t,null,r,n)):(RU(e,t,r,n),NU()),t=t.child),t;case 5:return H$(t),null===e&&OU(t),r=t.type,i=t.pendingProps,o=null!==e?e.memoizedProps:null,a=i.children,LH(r,i)?a=null:null!==o&&LH(r,o)&&(t.effectTag|=16),LU(e,t),1!==n&&1&t.mode&&i.hidden?(t.expirationTime=t.childExpirationTime=1,t=null):(RU(e,t,a,n),t=t.child),t;case 6:return null===e&&OU(t),null;case 13:return VU(e,t,n);case 4:return B$(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=I$(t,null,r,n):RU(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,IU(e,t,r,i=t.elementType===r?i:S$(r,i),n);case 7:return RU(e,t,t.pendingProps,n),t.child;case 8:case 12:return RU(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,a=t.memoizedProps,GU(t,o=i.value),null!==a){var s=a.value;if(0===(o=gV(s,o)?0:0|("function"==typeof r._calculateChangedBits?r._calculateChangedBits(s,o):1073741823))){if(a.children===i.children&&!KH.current){t=HU(e,t,n);break e}}else for(null!==(s=t.child)&&(s.return=t);null!==s;){var l=s.contextDependencies;if(null!==l){a=s.child;for(var u=l.first;null!==u;){if(u.context===r&&0!=(u.observedBits&o)){1===s.tag&&((u=iW(n)).tag=eW,aW(s,u)),s.expirationTime<n&&(s.expirationTime=n),null!==(u=s.alternate)&&u.expirationTime<n&&(u.expirationTime=n),u=n;for(var c=s.return;null!==c;){var d=c.alternate;if(c.childExpirationTime<u)c.childExpirationTime=u,null!==d&&d.childExpirationTime<u&&(d.childExpirationTime=u);else{if(!(null!==d&&d.childExpirationTime<u))break;d.childExpirationTime=u}c=c.return}l.expirationTime<n&&(l.expirationTime=n);break}u=u.next}}else a=10===s.tag&&s.type===t.type?null:s.child;if(null!==a)a.return=s;else for(a=s;null!==a;){if(a===t){a=null;break}if(null!==(s=a.sibling)){s.return=a.return,a=s;break}a=a.return}s=a}}RU(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=(o=t.pendingProps).children,JU(t,n),r=r(i=ZU(i,o.unstable_observedBits)),t.effectTag|=1,RU(e,t,r,n),t.child;case 14:return o=S$(i=t.type,t.pendingProps),_U(e,t,i,o=S$(i.type,o),r,n);case 15:return PU(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:S$(r,i),null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),t.tag=1,QH(r)?(e=!0,i$(t)):e=!1,JU(t,n),O$(t,r,i),A$(t,r,i,n),FU(null,t,r,!0,e,n)}Ez("156")}var UU={current:null},WU=null,YU=null,XU=null;function GU(e,t){var n=e.type._context;YH(UU,n._currentValue),n._currentValue=t}function KU(e){var t=UU.current;WH(UU),e.type._context._currentValue=t}function JU(e,t){WU=e,XU=YU=null;var n=e.contextDependencies;null!==n&&n.expirationTime>=t&&(DU=!0),e.contextDependencies=null}function ZU(e,t){return XU!==e&&!1!==t&&0!==t&&("number"==typeof t&&1073741823!==t||(XU=e,t=1073741823),t={context:e,observedBits:t,next:null},null===YU?(null===WU&&Ez("308"),YU=t,WU.contextDependencies={first:t,expirationTime:0}):YU=YU.next=t),e._currentValue}var QU=1,eW=2,tW=!1;function nW(e){return{baseState:e,firstUpdate:null,lastUpdate:null,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function rW(e){return{baseState:e.baseState,firstUpdate:e.firstUpdate,lastUpdate:e.lastUpdate,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function iW(e){return{expirationTime:e,tag:0,payload:null,callback:null,next:null,nextEffect:null}}function oW(e,t){null===e.lastUpdate?e.firstUpdate=e.lastUpdate=t:(e.lastUpdate.next=t,e.lastUpdate=t)}function aW(e,t){var n=e.alternate;if(null===n){var r=e.updateQueue,i=null;null===r&&(r=e.updateQueue=nW(e.memoizedState))}else r=e.updateQueue,i=n.updateQueue,null===r?null===i?(r=e.updateQueue=nW(e.memoizedState),i=n.updateQueue=nW(n.memoizedState)):r=e.updateQueue=rW(i):null===i&&(i=n.updateQueue=rW(r));null===i||r===i?oW(r,t):null===r.lastUpdate||null===i.lastUpdate?(oW(r,t),oW(i,t)):(oW(r,t),i.lastUpdate=t)}function sW(e,t){var n=e.updateQueue;null===(n=null===n?e.updateQueue=nW(e.memoizedState):lW(e,n)).lastCapturedUpdate?n.firstCapturedUpdate=n.lastCapturedUpdate=t:(n.lastCapturedUpdate.next=t,n.lastCapturedUpdate=t)}function lW(e,t){var n=e.alternate;return null!==n&&t===n.updateQueue&&(t=e.updateQueue=rW(t)),t}function uW(e,t,n,r,i,o){switch(n.tag){case QU:return"function"==typeof(e=n.payload)?e.call(o,r,i):e;case 3:e.effectTag=-2049&e.effectTag|64;case 0:if(null==(i="function"==typeof(e=n.payload)?e.call(o,r,i):e))break;return Mz({},r,i);case eW:tW=!0}return r}function cW(e,t,n,r,i){tW=!1;for(var o=(t=lW(e,t)).baseState,a=null,s=0,l=t.firstUpdate,u=o;null!==l;){var c=l.expirationTime;c<i?(null===a&&(a=l,o=u),s<c&&(s=c)):(u=uW(e,0,l,u,n,r),null!==l.callback&&(e.effectTag|=32,l.nextEffect=null,null===t.lastEffect?t.firstEffect=t.lastEffect=l:(t.lastEffect.nextEffect=l,t.lastEffect=l))),l=l.next}for(c=null,l=t.firstCapturedUpdate;null!==l;){var d=l.expirationTime;d<i?(null===c&&(c=l,null===a&&(o=u)),s<d&&(s=d)):(u=uW(e,0,l,u,n,r),null!==l.callback&&(e.effectTag|=32,l.nextEffect=null,null===t.lastCapturedEffect?t.firstCapturedEffect=t.lastCapturedEffect=l:(t.lastCapturedEffect.nextEffect=l,t.lastCapturedEffect=l))),l=l.next}null===a&&(t.lastUpdate=null),null===c?t.lastCapturedUpdate=null:e.effectTag|=32,null===a&&null===c&&(o=u),t.baseState=o,t.firstUpdate=a,t.firstCapturedUpdate=c,e.expirationTime=s,e.memoizedState=u}function dW(e,t,n){null!==t.firstCapturedUpdate&&(null!==t.lastUpdate&&(t.lastUpdate.next=t.firstCapturedUpdate,t.lastUpdate=t.lastCapturedUpdate),t.firstCapturedUpdate=t.lastCapturedUpdate=null),fW(t.firstEffect,n),t.firstEffect=t.lastEffect=null,fW(t.firstCapturedEffect,n),t.firstCapturedEffect=t.lastCapturedEffect=null}function fW(e,t){for(;null!==e;){var n=e.callback;if(null!==n){e.callback=null;var r=t;"function"!=typeof n&&Ez("191",n),n.call(r)}e=e.nextEffect}}function hW(e,t){return{value:e,source:t,stack:OB(t)}}function pW(e){e.effectTag|=4}var mW,yW,gW;mW=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}},yW=function(e,t,n,r,i){var o=e.memoizedProps;if(o!==r){var a=t.stateNode;switch(F$(L$.current),e=null,n){case"input":o=jB(a,o),r=jB(a,r),e=[];break;case"option":o=fH(a,o),r=fH(a,r),e=[];break;case"select":o=Mz({},o,{value:void 0}),r=Mz({},r,{value:void 0}),e=[];break;case"textarea":o=pH(a,o),r=pH(a,r),e=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(a.onclick=RH)}NH(n,r),a=n=void 0;var s=null;for(n in o)if(!r.hasOwnProperty(n)&&o.hasOwnProperty(n)&&null!=o[n])if("style"===n){var l=o[n];for(a in l)l.hasOwnProperty(a)&&(s||(s={}),s[a]="")}else"dangerouslySetInnerHTML"!==n&&"children"!==n&&"suppressContentEditableWarning"!==n&&"suppressHydrationWarning"!==n&&"autoFocus"!==n&&(jz.hasOwnProperty(n)?e||(e=[]):(e=e||[]).push(n,null));for(n in r){var u=r[n];if(l=null!=o?o[n]:void 0,r.hasOwnProperty(n)&&u!==l&&(null!=u||null!=l))if("style"===n)if(l){for(a in l)!l.hasOwnProperty(a)||u&&u.hasOwnProperty(a)||(s||(s={}),s[a]="");for(a in u)u.hasOwnProperty(a)&&l[a]!==u[a]&&(s||(s={}),s[a]=u[a])}else s||(e||(e=[]),e.push(n,s)),s=u;else"dangerouslySetInnerHTML"===n?(u=u?u.__html:void 0,l=l?l.__html:void 0,null!=u&&l!==u&&(e=e||[]).push(n,""+u)):"children"===n?l===u||"string"!=typeof u&&"number"!=typeof u||(e=e||[]).push(n,""+u):"suppressContentEditableWarning"!==n&&"suppressHydrationWarning"!==n&&(jz.hasOwnProperty(n)?(null!=u&&DH(i,n),e||l===u||(e=[])):(e=e||[]).push(n,u))}s&&(e=e||[]).push("style",s),i=e,(t.updateQueue=i)&&pW(t)}},gW=function(e,t,n,r){n!==r&&pW(t)};var vW="function"==typeof WeakSet?WeakSet:Set;function bW(e,t){var n=t.source,r=t.stack;null===r&&null!==n&&(r=OB(n)),null!==n&&CB(n.type),t=t.value,null!==e&&1===e.tag&&CB(e.type);try{console.error(t)}catch(e){setTimeout((function(){throw e}))}}function xW(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){nY(e,t)}else t.current=null}function MW(e,t,n){if(null!==(n=null!==(n=n.updateQueue)?n.lastEffect:null)){var r=n=n.next;do{if(0!=(r.tag&e)){var i=r.destroy;r.destroy=void 0,void 0!==i&&i()}0!=(r.tag&t)&&(i=r.create,r.destroy=i()),r=r.next}while(r!==n)}}function SW(e){switch("function"==typeof s$&&s$(e),e.tag){case 0:case 11:case 14:case 15:var t=e.updateQueue;if(null!==t&&null!==(t=t.lastEffect)){var n=t=t.next;do{var r=n.destroy;if(void 0!==r){var i=e;try{r()}catch(e){nY(i,e)}}n=n.next}while(n!==t)}break;case 1:if(xW(e),"function"==typeof(t=e.stateNode).componentWillUnmount)try{t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()}catch(t){nY(e,t)}break;case 5:xW(e);break;case 4:kW(e)}}function wW(e){return 5===e.tag||3===e.tag||4===e.tag}function EW(e){e:{for(var t=e.return;null!==t;){if(wW(t)){var n=t;break e}t=t.return}Ez("160"),n=void 0}var r=t=void 0;switch(n.tag){case 5:t=n.stateNode,r=!1;break;case 3:case 4:t=n.stateNode.containerInfo,r=!0;break;default:Ez("161")}16&n.effectTag&&(EH(t,""),n.effectTag&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||wW(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.effectTag)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.effectTag)){n=n.stateNode;break e}}for(var i=e;;){if(5===i.tag||6===i.tag)if(n)if(r){var o=t,a=i.stateNode,s=n;8===o.nodeType?o.parentNode.insertBefore(a,s):o.insertBefore(a,s)}else t.insertBefore(i.stateNode,n);else r?(a=t,s=i.stateNode,8===a.nodeType?(o=a.parentNode).insertBefore(s,a):(o=a).appendChild(s),null!=(a=a._reactRootContainer)||null!==o.onclick||(o.onclick=RH)):t.appendChild(i.stateNode);else if(4!==i.tag&&null!==i.child){i.child.return=i,i=i.child;continue}if(i===e)break;for(;null===i.sibling;){if(null===i.return||i.return===e)return;i=i.return}i.sibling.return=i.return,i=i.sibling}}function kW(e){for(var t=e,n=!1,r=void 0,i=void 0;;){if(!n){n=t.return;e:for(;;){switch(null===n&&Ez("160"),n.tag){case 5:r=n.stateNode,i=!1;break e;case 3:case 4:r=n.stateNode.containerInfo,i=!0;break e}n=n.return}n=!0}if(5===t.tag||6===t.tag){e:for(var o=t,a=o;;)if(SW(a),null!==a.child&&4!==a.tag)a.child.return=a,a=a.child;else{if(a===o)break;for(;null===a.sibling;){if(null===a.return||a.return===o)break e;a=a.return}a.sibling.return=a.return,a=a.sibling}i?(o=r,a=t.stateNode,8===o.nodeType?o.parentNode.removeChild(a):o.removeChild(a)):r.removeChild(t.stateNode)}else if(4===t.tag){if(null!==t.child){r=t.stateNode.containerInfo,i=!0,t.child.return=t,t=t.child;continue}}else if(SW(t),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;4===(t=t.return).tag&&(n=!1)}t.sibling.return=t.return,t=t.sibling}}function CW(e,t){switch(t.tag){case 0:case 11:case 14:case 15:MW(4,8,t);break;case 1:break;case 5:var n=t.stateNode;if(null!=n){var r=t.memoizedProps;e=null!==e?e.memoizedProps:r;var i=t.type,o=t.updateQueue;t.updateQueue=null,null!==o&&function(e,t,n,r,i){e[Qz]=i,"input"===n&&"radio"===i.type&&null!=i.name&&FB(e,i),qH(n,r),r=qH(n,i);for(var o=0;o<t.length;o+=2){var a=t[o],s=t[o+1];"style"===a?TH(e,s):"dangerouslySetInnerHTML"===a?wH(e,s):"children"===a?EH(e,s):PB(e,a,s,r)}switch(n){case"input":BB(e,i);break;case"textarea":yH(e,i);break;case"select":t=e._wrapperState.wasMultiple,e._wrapperState.wasMultiple=!!i.multiple,null!=(n=i.value)?hH(e,!!i.multiple,n,!1):t!==!!i.multiple&&(null!=i.defaultValue?hH(e,!!i.multiple,i.defaultValue,!0):hH(e,!!i.multiple,i.multiple?[]:"",!1))}}(n,o,i,e,r)}break;case 6:null===t.stateNode&&Ez("162"),t.stateNode.nodeValue=t.memoizedProps;break;case 3:case 12:break;case 13:if(n=t.memoizedState,r=void 0,e=t,null===n?r=!1:(r=!0,e=t.child,0===n.timedOutAt&&(n.timedOutAt=DY())),null!==e&&function(e,t){for(var n=e;;){if(5===n.tag){var r=n.stateNode;if(t)r.style.display="none";else{r=n.stateNode;var i=n.memoizedProps.style;i=null!=i&&i.hasOwnProperty("display")?i.display:null,r.style.display=OH("display",i)}}else if(6===n.tag)n.stateNode.nodeValue=t?"":n.memoizedProps;else{if(13===n.tag&&null!==n.memoizedState){(r=n.child.sibling).return=n,n=r;continue}if(null!==n.child){n.child.return=n,n=n.child;continue}}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}(e,r),null!==(n=t.updateQueue)){t.updateQueue=null;var a=t.stateNode;null===a&&(a=t.stateNode=new vW),n.forEach((function(e){var n=oY.bind(null,t,e);a.has(e)||(a.add(e),e.then(n,n))}))}break;case 17:break;default:Ez("163")}}var OW="function"==typeof WeakMap?WeakMap:Map;function TW(e,t,n){(n=iW(n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){VY(r),bW(e,t)},n}function AW(e,t,n){(n=iW(n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var i=t.value;n.payload=function(){return r(i)}}var o=e.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===UW?UW=new Set([this]):UW.add(this));var n=t.value,i=t.stack;bW(e,t),this.componentDidCatch(n,{componentStack:null!==i?i:""})}),n}function NW(e){switch(e.tag){case 1:QH(e.type)&&e$();var t=e.effectTag;return 2048&t?(e.effectTag=-2049&t|64,e):null;case 3:return V$(),t$(),0!=(64&(t=e.effectTag))&&Ez("285"),e.effectTag=-2049&t|64,e;case 5:return $$(e),null;case 13:return 2048&(t=e.effectTag)?(e.effectTag=-2049&t|64,e):null;case 18:return null;case 4:return V$(),null;case 10:return KU(e),null;default:return null}}var qW=uB.ReactCurrentDispatcher,DW=uB.ReactCurrentOwner,RW=1073741822,IW=!1,_W=null,PW=null,LW=0,jW=-1,zW=!1,FW=null,BW=!1,VW=null,HW=null,$W=null,UW=null;function WW(){if(null!==_W)for(var e=_W.return;null!==e;){var t=e;switch(t.tag){case 1:var n=t.type.childContextTypes;null!=n&&e$();break;case 3:V$(),t$();break;case 5:$$(t);break;case 4:V$();break;case 10:KU(t)}e=e.return}PW=null,LW=0,jW=-1,zW=!1,_W=null}function YW(){for(;null!==FW;){var e=FW.effectTag;if(16&e&&EH(FW.stateNode,""),128&e){var t=FW.alternate;null!==t&&(null!==(t=t.ref)&&("function"==typeof t?t(null):t.current=null))}switch(14&e){case 2:EW(FW),FW.effectTag&=-3;break;case 6:EW(FW),FW.effectTag&=-3,CW(FW.alternate,FW);break;case 4:CW(FW.alternate,FW);break;case 8:kW(e=FW),e.return=null,e.child=null,e.memoizedState=null,e.updateQueue=null,null!==(e=e.alternate)&&(e.return=null,e.child=null,e.memoizedState=null,e.updateQueue=null)}FW=FW.nextEffect}}function XW(){for(;null!==FW;){if(256&FW.effectTag)e:{var e=FW.alternate,t=FW;switch(t.tag){case 0:case 11:case 15:MW(2,0,t);break e;case 1:if(256&t.effectTag&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:S$(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}break e;case 3:case 5:case 6:case 4:case 17:break e;default:Ez("163")}}FW=FW.nextEffect}}function GW(e,t){for(;null!==FW;){var n=FW.effectTag;if(36&n){var r=FW.alternate,i=FW,o=t;switch(i.tag){case 0:case 11:case 15:MW(16,32,i);break;case 1:var a=i.stateNode;if(4&i.effectTag)if(null===r)a.componentDidMount();else{var s=i.elementType===i.type?r.memoizedProps:S$(i.type,r.memoizedProps);a.componentDidUpdate(s,r.memoizedState,a.__reactInternalSnapshotBeforeUpdate)}null!==(r=i.updateQueue)&&dW(0,r,a);break;case 3:if(null!==(r=i.updateQueue)){if(a=null,null!==i.child)switch(i.child.tag){case 5:a=i.child.stateNode;break;case 1:a=i.child.stateNode}dW(0,r,a)}break;case 5:o=i.stateNode,null===r&&4&i.effectTag&&PH(i.type,i.memoizedProps)&&o.focus();break;case 6:case 4:case 12:case 13:case 17:break;default:Ez("163")}}128&n&&(null!==(i=FW.ref)&&(o=FW.stateNode,"function"==typeof i?i(o):i.current=o)),512&n&&(VW=e),FW=FW.nextEffect}}function KW(e,t){$W=HW=VW=null;var n=hY;hY=!0;do{if(512&t.effectTag){var r=!1,i=void 0;try{var o=t;MW(128,0,o),MW(0,64,o)}catch(e){r=!0,i=e}r&&nY(t,i)}t=t.nextEffect}while(null!==t);hY=n,0!==(n=e.expirationTime)&&RY(e,n),bY||hY||jY(1073741823,!1)}function JW(){null!==HW&&BH(HW),null!==$W&&$W()}function ZW(e,t){BW=IW=!0,e.current===t&&Ez("177");var n=e.pendingCommitExpirationTime;0===n&&Ez("261"),e.pendingCommitExpirationTime=0;var r=t.expirationTime,i=t.childExpirationTime;for(function(e,t){if(e.didError=!1,0===t)e.earliestPendingTime=0,e.latestPendingTime=0,e.earliestSuspendedTime=0,e.latestSuspendedTime=0,e.latestPingedTime=0;else{t<e.latestPingedTime&&(e.latestPingedTime=0);var n=e.latestPendingTime;0!==n&&(n>t?e.earliestPendingTime=e.latestPendingTime=0:e.earliestPendingTime>t&&(e.earliestPendingTime=e.latestPendingTime)),0===(n=e.earliestSuspendedTime)?v$(e,t):t<e.latestSuspendedTime?(e.earliestSuspendedTime=0,e.latestSuspendedTime=0,e.latestPingedTime=0,v$(e,t)):t>n&&v$(e,t)}M$(0,e)}(e,i>r?i:r),DW.current=null,r=void 0,1<t.effectTag?null!==t.lastEffect?(t.lastEffect.nextEffect=t,r=t.firstEffect):r=t:r=t.firstEffect,IH=VV,_H=function(){var e=tH();if(nH(e)){if("selectionStart"in e)var t={start:e.selectionStart,end:e.selectionEnd};else e:{var n=(t=(t=e.ownerDocument)&&t.defaultView||window).getSelection&&t.getSelection();if(n&&0!==n.rangeCount){t=n.anchorNode;var r=n.anchorOffset,i=n.focusNode;n=n.focusOffset;try{t.nodeType,i.nodeType}catch(e){t=null;break e}var o=0,a=-1,s=-1,l=0,u=0,c=e,d=null;t:for(;;){for(var f;c!==t||0!==r&&3!==c.nodeType||(a=o+r),c!==i||0!==n&&3!==c.nodeType||(s=o+n),3===c.nodeType&&(o+=c.nodeValue.length),null!==(f=c.firstChild);)d=c,c=f;for(;;){if(c===e)break t;if(d===t&&++l===r&&(a=o),d===i&&++u===n&&(s=o),null!==(f=c.nextSibling))break;d=(c=d).parentNode}c=f}t=-1===a||-1===s?null:{start:a,end:s}}else t=null}t=t||{start:0,end:0}}else t=null;return{focusedElem:e,selectionRange:t}}(),VV=!1,FW=r;null!==FW;){i=!1;var o=void 0;try{XW()}catch(e){i=!0,o=e}i&&(null===FW&&Ez("178"),nY(FW,o),null!==FW&&(FW=FW.nextEffect))}for(FW=r;null!==FW;){i=!1,o=void 0;try{YW()}catch(e){i=!0,o=e}i&&(null===FW&&Ez("178"),nY(FW,o),null!==FW&&(FW=FW.nextEffect))}for(rH(_H),_H=null,VV=!!IH,IH=null,e.current=t,FW=r;null!==FW;){i=!1,o=void 0;try{GW(e,n)}catch(e){i=!0,o=e}i&&(null===FW&&Ez("178"),nY(FW,o),null!==FW&&(FW=FW.nextEffect))}if(null!==r&&null!==VW){var a=KW.bind(null,e,r);HW=Sz.unstable_runWithPriority(Sz.unstable_NormalPriority,(function(){return FH(a)})),$W=a}IW=BW=!1,"function"==typeof a$&&a$(t.stateNode),n=t.expirationTime,0===(t=(t=t.childExpirationTime)>n?t:n)&&(UW=null),function(e,t){e.expirationTime=t,e.finishedWork=null}(e,t)}function QW(e){for(;;){var t=e.alternate,n=e.return,r=e.sibling;if(0==(1024&e.effectTag)){_W=e;e:{var i=t,o=LW,a=(t=e).pendingProps;switch(t.tag){case 2:case 16:break;case 15:case 0:break;case 1:QH(t.type)&&e$();break;case 3:V$(),t$(),(a=t.stateNode).pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),null!==i&&null!==i.child||(AU(t),t.effectTag&=-3);break;case 5:$$(t);var s=F$(z$.current);if(o=t.type,null!==i&&null!=t.stateNode)yW(i,t,o,a,s),i.ref!==t.ref&&(t.effectTag|=128);else if(a){var l=F$(L$.current);if(AU(t)){i=(a=t).stateNode;var u=a.type,c=a.memoizedProps,d=s;switch(i[Zz]=a,i[Qz]=c,o=void 0,s=u){case"iframe":case"object":HV("load",i);break;case"video":case"audio":for(u=0;u<xF.length;u++)HV(xF[u],i);break;case"source":HV("error",i);break;case"img":case"image":case"link":HV("error",i),HV("load",i);break;case"form":HV("reset",i),HV("submit",i);break;case"details":HV("toggle",i);break;case"input":zB(i,c),HV("invalid",i),DH(d,"onChange");break;case"select":i._wrapperState={wasMultiple:!!c.multiple},HV("invalid",i),DH(d,"onChange");break;case"textarea":mH(i,c),HV("invalid",i),DH(d,"onChange")}for(o in NH(s,c),u=null,c)c.hasOwnProperty(o)&&(l=c[o],"children"===o?"string"==typeof l?i.textContent!==l&&(u=["children",l]):"number"==typeof l&&i.textContent!==""+l&&(u=["children",""+l]):jz.hasOwnProperty(o)&&null!=l&&DH(d,o));switch(s){case"input":sB(i),VB(i,c,!0);break;case"textarea":sB(i),gH(i);break;case"select":case"option":break;default:"function"==typeof c.onClick&&(i.onclick=RH)}o=u,a.updateQueue=o,(a=null!==o)&&pW(t)}else{c=t,i=o,d=a,u=9===s.nodeType?s:s.ownerDocument,l===vH&&(l=xH(i)),l===vH?"script"===i?((i=u.createElement("div")).innerHTML="<script><\/script>",u=i.removeChild(i.firstChild)):"string"==typeof d.is?u=u.createElement(i,{is:d.is}):(u=u.createElement(i),"select"===i&&d.multiple&&(u.multiple=!0)):u=u.createElementNS(l,i),(i=u)[Zz]=c,i[Qz]=a,mW(i,t),d=i;var f=s,h=qH(u=o,c=a);switch(u){case"iframe":case"object":HV("load",d),s=c;break;case"video":case"audio":for(s=0;s<xF.length;s++)HV(xF[s],d);s=c;break;case"source":HV("error",d),s=c;break;case"img":case"image":case"link":HV("error",d),HV("load",d),s=c;break;case"form":HV("reset",d),HV("submit",d),s=c;break;case"details":HV("toggle",d),s=c;break;case"input":zB(d,c),s=jB(d,c),HV("invalid",d),DH(f,"onChange");break;case"option":s=fH(d,c);break;case"select":d._wrapperState={wasMultiple:!!c.multiple},s=Mz({},c,{value:void 0}),HV("invalid",d),DH(f,"onChange");break;case"textarea":mH(d,c),s=pH(d,c),HV("invalid",d),DH(f,"onChange");break;default:s=c}NH(u,s),l=void 0;var p=u,m=d,y=s;for(l in y)if(y.hasOwnProperty(l)){var g=y[l];"style"===l?TH(m,g):"dangerouslySetInnerHTML"===l?null!=(g=g?g.__html:void 0)&&wH(m,g):"children"===l?"string"==typeof g?("textarea"!==p||""!==g)&&EH(m,g):"number"==typeof g&&EH(m,""+g):"suppressContentEditableWarning"!==l&&"suppressHydrationWarning"!==l&&"autoFocus"!==l&&(jz.hasOwnProperty(l)?null!=g&&DH(f,l):null!=g&&PB(m,l,g,h))}switch(u){case"input":sB(d),VB(d,c,!1);break;case"textarea":sB(d),gH(d);break;case"option":null!=c.value&&d.setAttribute("value",""+LB(c.value));break;case"select":(s=d).multiple=!!c.multiple,null!=(d=c.value)?hH(s,!!c.multiple,d,!1):null!=c.defaultValue&&hH(s,!!c.multiple,c.defaultValue,!0);break;default:"function"==typeof s.onClick&&(d.onclick=RH)}(a=PH(o,a))&&pW(t),t.stateNode=i}null!==t.ref&&(t.effectTag|=128)}else null===t.stateNode&&Ez("166");break;case 6:i&&null!=t.stateNode?gW(0,t,i.memoizedProps,a):("string"!=typeof a&&(null===t.stateNode&&Ez("166")),i=F$(z$.current),F$(L$.current),AU(t)?(o=(a=t).stateNode,i=a.memoizedProps,o[Zz]=a,(a=o.nodeValue!==i)&&pW(t)):(o=t,(a=(9===i.nodeType?i:i.ownerDocument).createTextNode(a))[Zz]=t,o.stateNode=a));break;case 11:break;case 13:if(a=t.memoizedState,0!=(64&t.effectTag)){t.expirationTime=o,_W=t;break e}a=null!==a,o=null!==i&&null!==i.memoizedState,null!==i&&!a&&o&&(null!==(i=i.child.sibling)&&(null!==(s=t.firstEffect)?(t.firstEffect=i,i.nextEffect=s):(t.firstEffect=t.lastEffect=i,i.nextEffect=null),i.effectTag=8)),(a||o)&&(t.effectTag|=4);break;case 7:case 8:case 12:break;case 4:V$();break;case 10:KU(t);break;case 9:case 14:break;case 17:QH(t.type)&&e$();break;case 18:break;default:Ez("156")}_W=null}if(t=e,1===LW||1!==t.childExpirationTime){for(a=0,o=t.child;null!==o;)(i=o.expirationTime)>a&&(a=i),(s=o.childExpirationTime)>a&&(a=s),o=o.sibling;t.childExpirationTime=a}if(null!==_W)return _W;null!==n&&0==(1024&n.effectTag)&&(null===n.firstEffect&&(n.firstEffect=e.firstEffect),null!==e.lastEffect&&(null!==n.lastEffect&&(n.lastEffect.nextEffect=e.firstEffect),n.lastEffect=e.lastEffect),1<e.effectTag&&(null!==n.lastEffect?n.lastEffect.nextEffect=e:n.firstEffect=e,n.lastEffect=e))}else{if(null!==(e=NW(e)))return e.effectTag&=1023,e;null!==n&&(n.firstEffect=n.lastEffect=null,n.effectTag|=1024)}if(null!==r)return r;if(null===n)break;e=n}return null}function eY(e){var t=$U(e.alternate,e,LW);return e.memoizedProps=e.pendingProps,null===t&&(t=QW(e)),DW.current=null,t}function tY(e,t){IW&&Ez("243"),JW(),IW=!0;var n=qW.current;qW.current=bU;var r=e.nextExpirationTimeToWorkOn;r===LW&&e===PW&&null!==_W||(WW(),LW=r,_W=f$((PW=e).current,null),e.pendingCommitExpirationTime=0);for(var i=!1;;){try{if(t)for(;null!==_W&&!PY();)_W=eY(_W);else for(;null!==_W;)_W=eY(_W)}catch(t){if(XU=YU=WU=null,lU(),null===_W)i=!0,VY(t);else{null===_W&&Ez("271");var o=_W,a=o.return;if(null!==a){e:{var s=e,l=a,u=o,c=t;if(a=LW,u.effectTag|=1024,u.firstEffect=u.lastEffect=null,null!==c&&"object"==typeof c&&"function"==typeof c.then){var d=c;c=l;var f=-1,h=-1;do{if(13===c.tag){var p=c.alternate;if(null!==p&&null!==(p=p.memoizedState)){h=10*(1073741822-p.timedOutAt);break}"number"==typeof(p=c.pendingProps.maxDuration)&&(0>=p?f=0:(-1===f||p<f)&&(f=p))}c=c.return}while(null!==c);c=l;do{if((p=13===c.tag)&&(p=void 0!==c.memoizedProps.fallback&&null===c.memoizedState),p){if(null===(l=c.updateQueue)?((l=new Set).add(d),c.updateQueue=l):l.add(d),0==(1&c.mode)){c.effectTag|=64,u.effectTag&=-1957,1===u.tag&&(null===u.alternate?u.tag=17:((a=iW(1073741823)).tag=eW,aW(u,a))),u.expirationTime=1073741823;break e}l=a;var m=(u=s).pingCache;null===m?(m=u.pingCache=new OW,p=new Set,m.set(d,p)):void 0===(p=m.get(d))&&(p=new Set,m.set(d,p)),p.has(l)||(p.add(l),u=iY.bind(null,u,d,l),d.then(u,u)),-1===f?s=1073741823:(-1===h&&(h=10*(1073741822-x$(s,a))-5e3),s=h+f),0<=s&&jW<s&&(jW=s),c.effectTag|=2048,c.expirationTime=a;break e}c=c.return}while(null!==c);c=Error((CB(u.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display."+OB(u))}zW=!0,c=hW(c,u),s=l;do{switch(s.tag){case 3:s.effectTag|=2048,s.expirationTime=a,sW(s,a=TW(s,c,a));break e;case 1:if(f=c,h=s.type,u=s.stateNode,0==(64&s.effectTag)&&("function"==typeof h.getDerivedStateFromError||null!==u&&"function"==typeof u.componentDidCatch&&(null===UW||!UW.has(u)))){s.effectTag|=2048,s.expirationTime=a,sW(s,a=AW(s,f,a));break e}}s=s.return}while(null!==s)}_W=QW(o);continue}i=!0,VY(t)}}break}if(IW=!1,qW.current=n,XU=YU=WU=null,lU(),i)PW=null,e.finishedWork=null;else if(null!==_W)e.finishedWork=null;else{if(null===(n=e.current.alternate)&&Ez("281"),PW=null,zW){if(i=e.latestPendingTime,o=e.latestSuspendedTime,a=e.latestPingedTime,0!==i&&i<r||0!==o&&o<r||0!==a&&a<r)return b$(e,r),void NY(e,n,r,e.expirationTime,-1);if(!e.didError&&t)return e.didError=!0,r=e.nextExpirationTimeToWorkOn=r,t=e.expirationTime=1073741823,void NY(e,n,r,t,-1)}t&&-1!==jW?(b$(e,r),(t=10*(1073741822-x$(e,r)))<jW&&(jW=t),t=10*(1073741822-DY()),t=jW-t,NY(e,n,r,e.expirationTime,0>t?0:t)):(e.pendingCommitExpirationTime=r,e.finishedWork=n)}}function nY(e,t){for(var n=e.return;null!==n;){switch(n.tag){case 1:var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===UW||!UW.has(r)))return aW(n,e=AW(n,e=hW(t,e),1073741823)),void sY(n,1073741823);break;case 3:return aW(n,e=TW(n,e=hW(t,e),1073741823)),void sY(n,1073741823)}n=n.return}3===e.tag&&(aW(e,n=TW(e,n=hW(t,e),1073741823)),sY(e,1073741823))}function rY(e,t){var n=Sz.unstable_getCurrentPriorityLevel(),r=void 0;if(0==(1&t.mode))r=1073741823;else if(IW&&!BW)r=LW;else{switch(n){case Sz.unstable_ImmediatePriority:r=1073741823;break;case Sz.unstable_UserBlockingPriority:r=1073741822-10*(1+((1073741822-e+15)/10|0));break;case Sz.unstable_NormalPriority:r=1073741822-25*(1+((1073741822-e+500)/25|0));break;case Sz.unstable_LowPriority:case Sz.unstable_IdlePriority:r=1;break;default:Ez("313")}null!==PW&&r===LW&&--r}return n===Sz.unstable_UserBlockingPriority&&(0===yY||r<yY)&&(yY=r),r}function iY(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),null!==PW&&LW===n?PW=null:(t=e.earliestSuspendedTime,r=e.latestSuspendedTime,0!==t&&n<=t&&n>=r&&(e.didError=!1,(0===(t=e.latestPingedTime)||t>n)&&(e.latestPingedTime=n),M$(n,e),0!==(n=e.expirationTime)&&RY(e,n)))}function oY(e,t){var n=e.stateNode;null!==n&&n.delete(t),null!==(e=aY(e,t=rY(t=DY(),e)))&&(v$(e,t),0!==(t=e.expirationTime)&&RY(e,t))}function aY(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t);var r=e.return,i=null;if(null===r&&3===e.tag)i=e.stateNode;else for(;null!==r;){if(n=r.alternate,r.childExpirationTime<t&&(r.childExpirationTime=t),null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t),null===r.return&&3===r.tag){i=r.stateNode;break}r=r.return}return i}function sY(e,t){null!==(e=aY(e,t))&&(!IW&&0!==LW&&t>LW&&WW(),v$(e,t),IW&&!BW&&PW===e||RY(e,e.expirationTime),CY>kY&&(CY=0,Ez("185")))}function lY(e,t,n,r,i){return Sz.unstable_runWithPriority(Sz.unstable_ImmediatePriority,(function(){return e(t,n,r,i)}))}var uY=null,cY=null,dY=0,fY=void 0,hY=!1,pY=null,mY=0,yY=0,gY=!1,vY=null,bY=!1,xY=!1,MY=null,SY=Sz.unstable_now(),wY=1073741822-(SY/10|0),EY=wY,kY=50,CY=0,OY=null;function TY(){wY=1073741822-((Sz.unstable_now()-SY)/10|0)}function AY(e,t){if(0!==dY){if(t<dY)return;null!==fY&&Sz.unstable_cancelCallback(fY)}dY=t,e=Sz.unstable_now()-SY,fY=Sz.unstable_scheduleCallback(LY,{timeout:10*(1073741822-t)-e})}function NY(e,t,n,r,i){e.expirationTime=r,0!==i||PY()?0<i&&(e.timeoutHandle=jH(qY.bind(null,e,t,n),i)):(e.pendingCommitExpirationTime=n,e.finishedWork=t)}function qY(e,t,n){e.pendingCommitExpirationTime=n,e.finishedWork=t,TY(),EY=wY,zY(e,n)}function DY(){return hY||(IY(),0!==mY&&1!==mY||(TY(),EY=wY)),EY}function RY(e,t){null===e.nextScheduledRoot?(e.expirationTime=t,null===cY?(uY=cY=e,e.nextScheduledRoot=e):(cY=cY.nextScheduledRoot=e).nextScheduledRoot=uY):t>e.expirationTime&&(e.expirationTime=t),hY||(bY?xY&&(pY=e,mY=1073741823,FY(e,1073741823,!1)):1073741823===t?jY(1073741823,!1):AY(e,t))}function IY(){var e=0,t=null;if(null!==cY)for(var n=cY,r=uY;null!==r;){var i=r.expirationTime;if(0===i){if((null===n||null===cY)&&Ez("244"),r===r.nextScheduledRoot){uY=cY=r.nextScheduledRoot=null;break}if(r===uY)uY=i=r.nextScheduledRoot,cY.nextScheduledRoot=i,r.nextScheduledRoot=null;else{if(r===cY){(cY=n).nextScheduledRoot=uY,r.nextScheduledRoot=null;break}n.nextScheduledRoot=r.nextScheduledRoot,r.nextScheduledRoot=null}r=n.nextScheduledRoot}else{if(i>e&&(e=i,t=r),r===cY)break;if(1073741823===e)break;n=r,r=r.nextScheduledRoot}}pY=t,mY=e}var _Y=!1;function PY(){return!!_Y||!!Sz.unstable_shouldYield()&&(_Y=!0)}function LY(){try{if(!PY()&&null!==uY){TY();var e=uY;do{var t=e.expirationTime;0!==t&&wY<=t&&(e.nextExpirationTimeToWorkOn=wY),e=e.nextScheduledRoot}while(e!==uY)}jY(0,!0)}finally{_Y=!1}}function jY(e,t){if(IY(),t)for(TY(),EY=wY;null!==pY&&0!==mY&&e<=mY&&!(_Y&&wY>mY);)FY(pY,mY,wY>mY),IY(),TY(),EY=wY;else for(;null!==pY&&0!==mY&&e<=mY;)FY(pY,mY,!1),IY();if(t&&(dY=0,fY=null),0!==mY&&AY(pY,mY),CY=0,OY=null,null!==MY)for(e=MY,MY=null,t=0;t<e.length;t++){var n=e[t];try{n._onComplete()}catch(e){gY||(gY=!0,vY=e)}}if(gY)throw e=vY,vY=null,gY=!1,e}function zY(e,t){hY&&Ez("253"),pY=e,mY=t,FY(e,t,!1),jY(1073741823,!1)}function FY(e,t,n){if(hY&&Ez("245"),hY=!0,n){var r=e.finishedWork;null!==r?BY(e,r,t):(e.finishedWork=null,-1!==(r=e.timeoutHandle)&&(e.timeoutHandle=-1,zH(r)),tY(e,n),null!==(r=e.finishedWork)&&(PY()?e.finishedWork=r:BY(e,r,t)))}else null!==(r=e.finishedWork)?BY(e,r,t):(e.finishedWork=null,-1!==(r=e.timeoutHandle)&&(e.timeoutHandle=-1,zH(r)),tY(e,n),null!==(r=e.finishedWork)&&BY(e,r,t));hY=!1}function BY(e,t,n){var r=e.firstBatch;if(null!==r&&r._expirationTime>=n&&(null===MY?MY=[r]:MY.push(r),r._defer))return e.finishedWork=t,void(e.expirationTime=0);e.finishedWork=null,e===OY?CY++:(OY=e,CY=0),Sz.unstable_runWithPriority(Sz.unstable_ImmediatePriority,(function(){ZW(e,t)}))}function VY(e){null===pY&&Ez("246"),pY.expirationTime=0,gY||(gY=!0,vY=e)}function HY(e,t){var n=bY;bY=!0;try{return e(t)}finally{(bY=n)||hY||jY(1073741823,!1)}}function $Y(e,t){if(bY&&!xY){xY=!0;try{return e(t)}finally{xY=!1}}return e(t)}function UY(e,t,n){bY||hY||0===yY||(jY(yY,!1),yY=0);var r=bY;bY=!0;try{return Sz.unstable_runWithPriority(Sz.unstable_UserBlockingPriority,(function(){return e(t,n)}))}finally{(bY=r)||hY||jY(1073741823,!1)}}function WY(e,t,n,r,i){var o=t.current;e:if(n){t:{2===xV(n=n._reactInternalFiber)&&1===n.tag||Ez("170");var a=n;do{switch(a.tag){case 3:a=a.stateNode.context;break t;case 1:if(QH(a.type)){a=a.stateNode.__reactInternalMemoizedMergedChildContext;break t}}a=a.return}while(null!==a);Ez("171"),a=void 0}if(1===n.tag){var s=n.type;if(QH(s)){n=r$(n,s,a);break e}}n=a}else n=XH;return null===t.context?t.context=n:t.pendingContext=n,t=i,(i=iW(r)).payload={element:e},null!==(t=void 0===t?null:t)&&(i.callback=t),JW(),aW(o,i),sY(o,r),r}function YY(e,t,n,r){var i=t.current;return WY(e,t,n,i=rY(DY(),i),r)}function XY(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:default:return e.child.stateNode}}function GY(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:hB,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}function KY(e){var t=1073741822-25*(1+((1073741822-DY()+500)/25|0));t>=RW&&(t=RW-1),this._expirationTime=RW=t,this._root=e,this._callbacks=this._next=null,this._hasChildren=this._didComplete=!1,this._children=null,this._defer=!0}function JY(){this._callbacks=null,this._didCommit=!1,this._onCommit=this._onCommit.bind(this)}function ZY(e,t,n){e={current:t=c$(3,null,null,t?3:0),containerInfo:e,pendingChildren:null,pingCache:null,earliestPendingTime:0,latestPendingTime:0,earliestSuspendedTime:0,latestSuspendedTime:0,latestPingedTime:0,didError:!1,pendingCommitExpirationTime:0,finishedWork:null,timeoutHandle:-1,context:null,pendingContext:null,hydrate:n,nextExpirationTimeToWorkOn:0,expirationTime:0,firstBatch:null,nextScheduledRoot:null},this._internalRoot=t.stateNode=e}function QY(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function eX(e,t,n,r,i){var o=n._reactRootContainer;if(o){if("function"==typeof i){var a=i;i=function(){var e=XY(o._internalRoot);a.call(e)}}null!=e?o.legacy_renderSubtreeIntoContainer(e,t,i):o.render(t,i)}else{if(o=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new ZY(e,!1,t)}(n,r),"function"==typeof i){var s=i;i=function(){var e=XY(o._internalRoot);s.call(e)}}$Y((function(){null!=e?o.legacy_renderSubtreeIntoContainer(e,t,i):o.render(t,i)}))}return XY(o._internalRoot)}function tX(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;return QY(t)||Ez("200"),GY(e,t,null,n)}UF=function(e,t,n){switch(t){case"input":if(BB(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=rF(r);i||Ez("90"),lB(r),BB(r,i)}}}break;case"textarea":yH(e,n);break;case"select":null!=(t=n.value)&&hH(e,!!n.multiple,t,!1)}},KY.prototype.render=function(e){this._defer||Ez("250"),this._hasChildren=!0,this._children=e;var t=this._root._internalRoot,n=this._expirationTime,r=new JY;return WY(e,t,null,n,r._onCommit),r},KY.prototype.then=function(e){if(this._didComplete)e();else{var t=this._callbacks;null===t&&(t=this._callbacks=[]),t.push(e)}},KY.prototype.commit=function(){var e=this._root._internalRoot,t=e.firstBatch;if(this._defer&&null!==t||Ez("251"),this._hasChildren){var n=this._expirationTime;if(t!==this){this._hasChildren&&(n=this._expirationTime=t._expirationTime,this.render(this._children));for(var r=null,i=t;i!==this;)r=i,i=i._next;null===r&&Ez("251"),r._next=i._next,this._next=t,e.firstBatch=this}this._defer=!1,zY(e,n),t=this._next,this._next=null,null!==(t=e.firstBatch=t)&&t._hasChildren&&t.render(t._children)}else this._next=null,this._defer=!1},KY.prototype._onComplete=function(){if(!this._didComplete){this._didComplete=!0;var e=this._callbacks;if(null!==e)for(var t=0;t<e.length;t++)(0,e[t])()}},JY.prototype.then=function(e){if(this._didCommit)e();else{var t=this._callbacks;null===t&&(t=this._callbacks=[]),t.push(e)}},JY.prototype._onCommit=function(){if(!this._didCommit){this._didCommit=!0;var e=this._callbacks;if(null!==e)for(var t=0;t<e.length;t++){var n=e[t];"function"!=typeof n&&Ez("191",n),n()}}},ZY.prototype.render=function(e,t){var n=this._internalRoot,r=new JY;return null!==(t=void 0===t?null:t)&&r.then(t),YY(e,n,null,r._onCommit),r},ZY.prototype.unmount=function(e){var t=this._internalRoot,n=new JY;return null!==(e=void 0===e?null:e)&&n.then(e),YY(null,t,null,n._onCommit),n},ZY.prototype.legacy_renderSubtreeIntoContainer=function(e,t,n){var r=this._internalRoot,i=new JY;return null!==(n=void 0===n?null:n)&&i.then(n),YY(t,r,e,i._onCommit),i},ZY.prototype.createBatch=function(){var e=new KY(this),t=e._expirationTime,n=this._internalRoot,r=n.firstBatch;if(null===r)n.firstBatch=e,e._next=null;else{for(n=null;null!==r&&r._expirationTime>=t;)n=r,r=r._next;e._next=r,null!==n&&(n._next=e)}return e},JF=HY,ZF=UY,QF=function(){hY||0===yY||(jY(yY,!1),yY=0)};var nX={createPortal:tX,findDOMNode:function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternalFiber;return void 0===t&&("function"==typeof e.render?Ez("188"):Ez("268",Object.keys(e))),e=null===(e=SV(t))?null:e.stateNode},hydrate:function(e,t,n){return QY(t)||Ez("200"),eX(null,e,t,!0,n)},render:function(e,t,n){return QY(t)||Ez("200"),eX(null,e,t,!1,n)},unstable_renderSubtreeIntoContainer:function(e,t,n,r){return QY(n)||Ez("200"),(null==e||void 0===e._reactInternalFiber)&&Ez("38"),eX(e,t,n,!1,r)},unmountComponentAtNode:function(e){return QY(e)||Ez("40"),!!e._reactRootContainer&&($Y((function(){eX(null,null,e,!1,(function(){e._reactRootContainer=null}))})),!0)},unstable_createPortal:function(){return tX.apply(void 0,arguments)},unstable_batchedUpdates:HY,unstable_interactiveUpdates:UY,flushSync:function(e,t){hY&&Ez("187");var n=bY;bY=!0;try{return lY(e,t)}finally{bY=n,jY(1073741823,!1)}},unstable_createRoot:function(e,t){return QY(e)||Ez("299","unstable_createRoot"),new ZY(e,!0,null!=t&&!0===t.hydrate)},unstable_flushControlled:function(e){var t=bY;bY=!0;try{lY(e)}finally{(bY=t)||hY||jY(1073741823,!1)}},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{Events:[tF,nF,rF,Xz.injectEventPluginsByName,Lz,uF,function(e){Uz(e,lF)},GF,KF,WV,Kz]}};!function(e){var t=e.findFiberByHostInstance;(function(e){if("undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled||!t.supportsFiber)return!0;try{var n=t.inject(e);a$=l$((function(e){return t.onCommitFiberRoot(n,e)})),s$=l$((function(e){return t.onCommitFiberUnmount(n,e)}))}catch(e){}})(Mz({},e,{overrideProps:null,currentDispatcherRef:uB.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=SV(e))?null:e.stateNode},findFiberByHostInstance:function(e){return t?t(e):null}}))}({findFiberByHostInstance:eF,bundleType:0,version:"16.8.4",rendererPackageName:"react-dom"});var rX={default:nX},iX=rX&&nX||rX,oX=iX.default||iX;!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)}}(),gz.exports=oX;var aX=gz.exports,sX=!1,lX=wI.createContext(null),uX="unmounted",cX="exited",dX="entering",fX="entered",hX="exiting",pX=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=cX,r.appearStatus=dX):i=fX:i=t.unmountOnExit||t.mountOnEnter?uX:cX,r.state={status:i},r.nextCallback=null,r}yz(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===uX?{status:cX}: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!==dX&&n!==fX&&(t=dX):n!==dX&&n!==fX||(t=hX)}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){this.cancelNextCallback();var n=aX.findDOMNode(this);t===dX?this.performEnter(n,e):this.performExit(n)}else this.props.unmountOnExit&&this.state.status===cX&&this.setState({status:uX})},n.performEnter=function(e,t){var n=this,r=this.props.enter,i=this.context?this.context.isMounting:t,o=this.getTimeouts(),a=i?o.appear:o.enter;!t&&!r||sX?this.safeSetState({status:fX},(function(){n.props.onEntered(e)})):(this.props.onEnter(e,i),this.safeSetState({status:dX},(function(){n.props.onEntering(e,i),n.onTransitionEnd(e,a,(function(){n.safeSetState({status:fX},(function(){n.props.onEntered(e,i)}))}))})))},n.performExit=function(e){var t=this,n=this.props.exit,r=this.getTimeouts();n&&!sX?(this.props.onExit(e),this.safeSetState({status:hX},(function(){t.props.onExiting(e),t.onTransitionEnd(e,r.exit,(function(){t.safeSetState({status:cX},(function(){t.props.onExited(e)}))}))}))):this.safeSetState({status:cX},(function(){t.props.onExited(e)}))},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,n){this.setNextCallback(n);var r=null==t&&!this.props.addEndListener;e&&!r?(this.props.addEndListener&&this.props.addEndListener(e,this.nextCallback),null!=t&&setTimeout(this.nextCallback,t)):setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===uX)return null;var t=this.props,n=t.children,r=mz(t,["children"]);if(delete r.in,delete r.mountOnEnter,delete r.unmountOnExit,delete r.appear,delete r.enter,delete r.exit,delete r.timeout,delete r.addEndListener,delete r.onEnter,delete r.onEntering,delete r.onEntered,delete r.onExit,delete r.onExiting,delete r.onExited,"function"==typeof n)return wI.createElement(lX.Provider,{value:null},n(e,r));var i=wI.Children.only(n);return wI.createElement(lX.Provider,{value:null},wI.cloneElement(i,r))},t}(wI.Component);function mX(){}pX.contextType=lX,pX.propTypes={},pX.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:mX,onEntering:mX,onEntered:mX,onExit:mX,onExiting:mX,onExited:mX},pX.UNMOUNTED=0,pX.EXITED=1,pX.ENTERING=2,pX.ENTERED=3,pX.EXITING=4;var yX=pX;function gX(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function vX(e,t){var n=Object.create(null);return e&&OR.exports.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&OR.exports.isValidElement(e)?t(e):e}(e)})),n}function bX(e,t,n){return null!=n[t]?n[t]:e.props[t]}function xX(e,t,n){var r=vX(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 u=i[l][r];s[i[l][r]]=n(u)}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(OR.exports.isValidElement(a)){var s=o in t,l=o in r,u=t[o],c=OR.exports.isValidElement(u)&&!u.props.in;!l||s&&!c?l||!s||c?l&&s&&OR.exports.isValidElement(u)&&(i[o]=OR.exports.cloneElement(a,{onExited:n.bind(null,a),in:u.props.in,exit:bX(a,"exit",e),enter:bX(a,"enter",e)})):i[o]=OR.exports.cloneElement(a,{in:!1}):i[o]=OR.exports.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:bX(a,"exit",e),enter:bX(a,"enter",e)})}})),i}var MX=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},SX=function(e){function t(t,n){var r,i=(r=e.call(this,t,n)||this).handleExited.bind(gX(gX(r)));return r.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},r}yz(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,vX(n.children,(function(e){return OR.exports.cloneElement(e,{onExited:r.bind(null,e),in:!0,appear:bX(e,"appear",n),enter:bX(e,"enter",n),exit:bX(e,"exit",n)})}))):xX(e,i,o),firstRender:!1}},n.handleExited=function(e,t){var n=vX(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=pz({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=mz(e,["component","childFactory"]),i=this.state.contextValue,o=MX(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?wI.createElement(lX.Provider,{value:i},o):wI.createElement(lX.Provider,{value:i},wI.createElement(t,r,o))},t}(wI.Component);SX.propTypes={},SX.defaultProps={component:"div",childFactory:function(e){return e}};var wX=SX;function EX(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}}function kX(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function CX(e,t){return wI.useMemo((function(){return null==e&&null==t?null:function(n){kX(e,n),kX(t,n)}}),[e,t])}var OX="undefined"!=typeof window?wI.useLayoutEffect:wI.useEffect;function TX(e){var t=wI.useRef(e);return OX((function(){t.current=e})),wI.useCallback((function(e){return(0,t.current)(e)}),[])}var AX="undefined"!=typeof window?wI.useLayoutEffect:wI.useEffect;function NX(e){var t=e.children,n=e.defer,r=void 0!==n&&n,i=e.fallback,o=void 0===i?null:i,a=wI.useState(!1),s=a[0],l=a[1];return AX((function(){r||l(!0)}),[r]),wI.useEffect((function(){r&&l(!0)}),[r]),wI.createElement(wI.Fragment,null,s?t:o)}var qX=!0,DX=!1,RX=null,IX={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 _X(e){e.metaKey||e.altKey||e.ctrlKey||(qX=!0)}function PX(){qX=!1}function LX(){"hidden"===this.visibilityState&&DX&&(qX=!0)}function jX(e){var t=e.target;try{return t.matches(":focus-visible")}catch(e){}return qX||function(e){var t=e.type,n=e.tagName;return!("INPUT"!==n||!IX[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function zX(){DX=!0,window.clearTimeout(RX),RX=window.setTimeout((function(){DX=!1}),100)}function FX(){return{isFocusVisible:jX,onBlurVisible:zX,ref:wI.useCallback((function(e){var t=aX.findDOMNode(e);null!=t&&function(e){e.addEventListener("keydown",_X,!0),e.addEventListener("mousedown",PX,!0),e.addEventListener("pointerdown",PX,!0),e.addEventListener("touchstart",PX,!0),e.addEventListener("visibilitychange",LX,!0)}(t.ownerDocument)}),[])}}function BX(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var VX="undefined"==typeof window?wI.useEffect:wI.useLayoutEffect;function HX(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,u=void 0===l?function(){}:l,c=e.timeout,d=wI.useState(!1),f=d[0],h=d[1],p=Yj(t.ripple,t.rippleVisible,r&&t.ripplePulsate),m={width:a,height:a,top:-a/2+o,left:-a/2+i},y=Yj(t.child,f&&t.childLeaving,r&&t.childPulsate),g=TX(u);return VX((function(){if(!s){h(!0);var e=setTimeout(g,c);return function(){clearTimeout(e)}}}),[g,s,c]),wI.createElement("span",{className:p,style:m},wI.createElement("span",{className:y}))}var $X=wI.forwardRef((function(e,t){var n=e.center,r=void 0!==n&&n,i=e.classes,o=e.className,a=FI(e,["center","classes","className"]),s=wI.useState([]),l=s[0],u=s[1],c=wI.useRef(0),d=wI.useRef(null);wI.useEffect((function(){d.current&&(d.current(),d.current=null)}),[l]);var f=wI.useRef(!1),h=wI.useRef(null),p=wI.useRef(null),m=wI.useRef(null);wI.useEffect((function(){return function(){clearTimeout(h.current)}}),[]);var y=wI.useCallback((function(e){var t=e.pulsate,n=e.rippleX,r=e.rippleY,o=e.rippleSize,a=e.cb;u((function(e){return[].concat(BX(e),[wI.createElement(HX,{key:c.current,classes:i,timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:o})])})),c.current+=1,d.current=a}),[i]),g=wI.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,u=void 0!==l&&l;if("mousedown"===e.type&&f.current)f.current=!1;else{"touchstart"===e.type&&(f.current=!0);var c,d,g,v=u?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)c=Math.round(b.width/2),d=Math.round(b.height/2);else{var x=e.clientX?e.clientX:e.touches[0].clientX,M=e.clientY?e.clientY:e.touches[0].clientY;c=Math.round(x-b.left),d=Math.round(M-b.top)}if(s)(g=Math.sqrt((2*Math.pow(b.width,2)+Math.pow(b.height,2))/3))%2==0&&(g+=1);else{var S=2*Math.max(Math.abs((v?v.clientWidth:0)-c),c)+2,w=2*Math.max(Math.abs((v?v.clientHeight:0)-d),d)+2;g=Math.sqrt(Math.pow(S,2)+Math.pow(w,2))}e.touches?(p.current=function(){y({pulsate:o,rippleX:c,rippleY:d,rippleSize:g,cb:n})},h.current=setTimeout((function(){p.current&&(p.current(),p.current=null)}),80)):y({pulsate:o,rippleX:c,rippleY:d,rippleSize:g,cb:n})}}),[r,y]),v=wI.useCallback((function(){g({},{pulsate:!0})}),[g]),b=wI.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,u((function(e){return e.length>0?e.slice(1):e})),d.current=t}),[]);return wI.useImperativeHandle(t,(function(){return{pulsate:v,start:g,stop:b}}),[v,g,b]),wI.createElement("span",zI({className:Yj(i.root,o),ref:m},a),wI.createElement(wX,{component:null,exit:!0},l))}));var UX,WX=cz((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"})(((UX=wI.memo($X)).muiName="MuiTouchRipple",UX)),YX=wI.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,u=e.component,c=void 0===u?"button":u,d=e.disabled,f=void 0!==d&&d,h=e.disableRipple,p=void 0!==h&&h,m=e.disableTouchRipple,y=void 0!==m&&m,g=e.focusRipple,v=void 0!==g&&g,b=e.focusVisibleClassName,x=e.onBlur,M=e.onClick,S=e.onFocus,w=e.onFocusVisible,E=e.onKeyDown,k=e.onKeyUp,C=e.onMouseDown,O=e.onMouseLeave,T=e.onMouseUp,A=e.onTouchEnd,N=e.onTouchMove,q=e.onTouchStart,D=e.onDragLeave,R=e.tabIndex,I=void 0===R?0:R,_=e.TouchRippleProps,P=e.type,L=void 0===P?"button":P,j=FI(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"]),z=wI.useRef(null);var F=wI.useRef(null),B=wI.useState(!1),V=B[0],H=B[1];f&&V&&H(!1);var $=FX(),U=$.isFocusVisible,W=$.onBlurVisible,Y=$.ref;function X(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:y;return TX((function(r){return t&&t(r),!n&&F.current&&F.current[e](r),!0}))}wI.useImperativeHandle(n,(function(){return{focusVisible:function(){H(!0),z.current.focus()}}}),[]),wI.useEffect((function(){V&&v&&!p&&F.current.pulsate()}),[p,v,V]);var G=X("start",C),K=X("stop",D),J=X("stop",T),Z=X("stop",(function(e){V&&e.preventDefault(),O&&O(e)})),Q=X("start",q),ee=X("stop",A),te=X("stop",N),ne=X("stop",(function(e){V&&(W(e),H(!1)),x&&x(e)}),!1),re=TX((function(e){f||(z.current||(z.current=e.currentTarget),U(e)&&(H(!0),w&&w(e)),S&&S(e))})),ie=wI.useRef(!1),oe=TX((function(e){v&&!ie.current&&V&&F.current&&" "===e.key&&(ie.current=!0,e.persist(),F.current.stop(e,(function(){F.current.start(e)}))),E&&E(e);var t=aX.findDOMNode(z.current);e.target!==e.currentTarget||!c||"button"===c||" "!==e.key&&"Enter"!==e.key||"A"===t.tagName&&t.href||(e.preventDefault(),M&&M(e))})),ae=TX((function(e){v&&" "===e.key&&F.current&&V&&(ie.current=!1,e.persist(),F.current.stop(e,(function(){F.current.pulsate(e)}))),k&&k(e)})),se=c;"button"===se&&j.href&&(se="a");var le={};"button"===se?(le.type=L,le.disabled=f):("a"===se&&j.href||(le.role="button"),le["aria-disabled"]=f);var ue=CX(r,t),ce=CX(Y,z),de=CX(ue,ce);return wI.createElement(se,zI({className:Yj(s.root,l,V&&[s.focusVisible,b],f&&s.disabled),onBlur:ne,onClick:M,onFocus:re,onKeyDown:oe,onKeyUp:ae,onMouseDown:G,onMouseLeave:Z,onMouseUp:J,onDragLeave:K,onTouchEnd:ee,onTouchMove:te,onTouchStart:Q,ref:de,tabIndex:f?-1:I},le,j),a,p||f?null:wI.createElement(NX,null,wI.createElement(WX,zI({ref:F,center:o},_))))})),XX=cz({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"}},disabled:{},focusVisible:{}},{name:"MuiButtonBase"})(YX),GX={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p"},KX=wI.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,u=e.display,c=void 0===u?"initial":u,d=e.gutterBottom,f=void 0!==d&&d,h=e.noWrap,p=void 0!==h&&h,m=e.paragraph,y=void 0!==m&&m,g=e.variant,v=void 0===g?"body1":g,b=e.variantMapping,x=void 0===b?GX:b,M=FI(e,["align","classes","className","color","component","display","gutterBottom","noWrap","paragraph","variant","variantMapping"]),S=l||(y?"p":x[v]||GX[v])||"span";return wI.createElement(S,zI({className:Yj(i.root,o,"inherit"!==v&&i[v],"initial"!==s&&i["color".concat(dz(s))],p&&i.noWrap,f&&i.gutterBottom,y&&i.paragraph,"inherit"!==r&&i["align".concat(dz(r))],"initial"!==c&&i["display".concat(dz(c))]),ref:t},M))})),JX=cz((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"})(KX),ZX=wI.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,u=e.disabled,c=void 0!==u&&u,d=e.disableFocusRipple,f=void 0!==d&&d,h=e.endIcon,p=e.focusVisibleClassName,m=e.fullWidth,y=void 0!==m&&m,g=e.size,v=void 0===g?"medium":g,b=e.startIcon,x=e.type,M=void 0===x?"button":x,S=e.variant,w=void 0===S?"text":S,E=FI(e,["children","classes","className","color","component","disabled","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"]),k=b&&wI.createElement("span",{className:Yj(r.startIcon,r["iconSize".concat(dz(v))])},b),C=h&&wI.createElement("span",{className:Yj(r.endIcon,r["iconSize".concat(dz(v))])},h);return wI.createElement(XX,zI({className:Yj(r.root,r[w],i,"inherit"===a?r.colorInherit:"default"!==a&&r["".concat(w).concat(dz(a))],"medium"!==v&&[r["".concat(w,"Size").concat(dz(v))],r["size".concat(dz(v))]],c&&r.disabled,y&&r.fullWidth),component:l,disabled:c,focusRipple:!f,focusVisibleClassName:Yj(r.focusVisible,p),ref:t,type:M},E),wI.createElement("span",{className:r.label},k,n,C))})),QX=cz((function(e){return{root:zI({},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:LI(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:LI(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},textSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:LI(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.disabled)}},outlinedPrimary:{color:e.palette.primary.main,border:"1px solid ".concat(LI(e.palette.primary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.primary.main),backgroundColor:LI(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlinedSecondary:{color:e.palette.secondary.main,border:"1px solid ".concat(LI(e.palette.secondary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.secondary.main),backgroundColor:LI(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}}},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"})(ZX);function eG(e){return e&&e.ownerDocument||document}var tG="undefined"!=typeof window?wI.useLayoutEffect:wI.useEffect,nG=wI.forwardRef((function(e,t){var n=e.children,r=e.container,i=e.disablePortal,o=void 0!==i&&i,a=e.onRendered,s=wI.useState(null),l=s[0],u=s[1],c=CX(n.ref,t);return tG((function(){o||u(function(e){return e="function"==typeof e?e():e,aX.findDOMNode(e)}(r)||document.body)}),[r,o]),tG((function(){if(l&&!o)return kX(t,l),function(){kX(t,null)}}),[t,l,o]),tG((function(){a&&(l||o)&&a()}),[a,l,o]),o?(wI.Children.only(n),wI.cloneElement(n,{ref:c})):l?aX.createPortal(n,l):l}));function rG(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce((function(e,t){return null==t?e:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];e.apply(this,r),t.apply(this,r)}}),(function(){}))}function iG(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function oG(e){return eG(e).defaultView||window}function aG(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function sG(e){return parseInt(window.getComputedStyle(e)["padding-right"],10)||0}function lG(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],i=arguments.length>4?arguments[4]:void 0,o=[t,n].concat(BX(r)),a=["TEMPLATE","SCRIPT","STYLE"];[].forEach.call(e.children,(function(e){1===e.nodeType&&-1===o.indexOf(e)&&-1===a.indexOf(e.tagName)&&aG(e,i)}))}function uG(e,t){var n=-1;return e.some((function(e,r){return!!t(e)&&(n=r,!0)})),n}function cG(e,t){var n,r=[],i=[],o=e.container;if(!t.disableScrollLock){var a=function(e){var t=eG(e);return t.body===e?oG(t).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(o),s=o.parentElement,l="HTML"===s.nodeName?s:o;if(r.push({value:l.style.overflow,key:"overflow",el:l}),l.style.overflow="hidden",a){var u=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(sG(o)+u,"px"),n=eG(o).querySelectorAll(".mui-fixed"),[].forEach.call(n,(function(e){i.push(e.style.paddingRight),e.style.paddingRight="".concat(sG(e)+u,"px")}))}}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 dG=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=[]}var t,n,r;return t=e,(n=[{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&&aG(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);lG(t,e.mountNode,e.modalRef,r,!0);var i=uG(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=uG(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];r.restore||(r.restore=cG(r,t))}},{key:"remove",value:function(e){var t=this.modals.indexOf(e);if(-1===t)return t;var n=uG(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&&aG(e.modalRef,!0),lG(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&&aG(i.modalRef,!1)}return t}},{key:"isTopModal",value:function(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}])&&iG(t.prototype,n),r&&iG(t,r),e}();function fG(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,u=e.isEnabled,c=e.open,d=wI.useRef(),f=wI.useRef(null),h=wI.useRef(null),p=wI.useRef(),m=wI.useRef(null),y=wI.useCallback((function(e){m.current=aX.findDOMNode(e)}),[]),g=CX(t.ref,y);return wI.useMemo((function(){c&&"undefined"!=typeof window&&(p.current=l().activeElement)}),[c]),wI.useEffect((function(){if(c){var e=eG(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(){o||!u()||d.current?d.current=!1:m.current&&!m.current.contains(e.activeElement)&&m.current.focus()},n=function(t){!o&&u()&&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,u,c]),wI.createElement(wI.Fragment,null,wI.createElement("div",{tabIndex:0,ref:f,"data-test":"sentinelStart"}),wI.cloneElement(t,{ref:g}),wI.createElement("div",{tabIndex:0,ref:h,"data-test":"sentinelEnd"}))}var hG={root:{zIndex:-1,position:"fixed",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",touchAction:"none"},invisible:{backgroundColor:"transparent"}},pG=wI.forwardRef((function(e,t){var n=e.invisible,r=void 0!==n&&n,i=e.open,o=FI(e,["invisible","open"]);return i?wI.createElement("div",zI({"aria-hidden":!0,ref:t},o,{style:zI({},hG.root,{},r?hG.invisible:{},{},o.style)})):null}));var mG=new dG,yG=wI.forwardRef((function(e,t){var n=Nj(),r=j_({name:"MuiModal",props:zI({},e),theme:n}),i=r.BackdropComponent,o=void 0===i?pG:i,a=r.BackdropProps,s=r.children,l=r.closeAfterTransition,u=void 0!==l&&l,c=r.container,d=r.disableAutoFocus,f=void 0!==d&&d,h=r.disableBackdropClick,p=void 0!==h&&h,m=r.disableEnforceFocus,y=void 0!==m&&m,g=r.disableEscapeKeyDown,v=void 0!==g&&g,b=r.disablePortal,x=void 0!==b&&b,M=r.disableRestoreFocus,S=void 0!==M&&M,w=r.disableScrollLock,E=void 0!==w&&w,k=r.hideBackdrop,C=void 0!==k&&k,O=r.keepMounted,T=void 0!==O&&O,A=r.manager,N=void 0===A?mG:A,q=r.onBackdropClick,D=r.onClose,R=r.onEscapeKeyDown,I=r.onRendered,_=r.open,P=FI(r,["BackdropComponent","BackdropProps","children","closeAfterTransition","container","disableAutoFocus","disableBackdropClick","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onEscapeKeyDown","onRendered","open"]),L=wI.useState(!0),j=L[0],z=L[1],F=wI.useRef({}),B=wI.useRef(null),V=wI.useRef(null),H=CX(V,t),$=function(e){return!!e.children&&e.children.props.hasOwnProperty("in")}(r),U=function(){return eG(B.current)},W=function(){return F.current.modalRef=V.current,F.current.mountNode=B.current,F.current},Y=function(){N.mount(W(),{disableScrollLock:E}),V.current.scrollTop=0},X=TX((function(){var e=function(e){return e="function"==typeof e?e():e,aX.findDOMNode(e)}(c)||U().body;N.add(W(),e),V.current&&Y()})),G=wI.useCallback((function(){return N.isTopModal(W())}),[N]),K=TX((function(e){B.current=e,e&&(I&&I(),_&&G()?Y():aG(V.current,!0))})),J=wI.useCallback((function(){N.remove(W())}),[N]);if(wI.useEffect((function(){return function(){J()}}),[J]),wI.useEffect((function(){_?X():$&&u||J()}),[_,J,$,u,X]),!T&&!_&&(!$||j))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:R_}),Q={};return void 0===s.props.tabIndex&&(Q.tabIndex=s.props.tabIndex||"-1"),$&&(Q.onEnter=rG((function(){z(!1)}),s.props.onEnter),Q.onExited=rG((function(){z(!0),u&&J()}),s.props.onExited)),wI.createElement(nG,{ref:K,container:c,disablePortal:x},wI.createElement("div",zI({ref:H,onKeyDown:function(e){"Escape"===e.key&&G()&&(e.stopPropagation(),R&&R(e),!v&&D&&D(e,"escapeKeyDown"))},role:"presentation"},P,{style:zI({},Z.root,{},!_&&j?Z.hidden:{},{},P.style)}),C?null:wI.createElement(o,zI({open:_,onClick:function(e){e.target===e.currentTarget&&(q&&q(e),!p&&D&&D(e,"backdropClick"))}},a)),wI.createElement(fG,{disableEnforceFocus:y,disableAutoFocus:f,disableRestoreFocus:S,getDoc:U,isEnabled:G,open:_},wI.cloneElement(s,Q))))}));function gG(e){return"scale(".concat(e,", ").concat(Math.pow(e,2),")")}var vG={entering:{opacity:1,transform:gG(1)},entered:{opacity:1,transform:"none"}},bG=wI.forwardRef((function(e,t){var n=e.children,r=e.in,i=e.onEnter,o=e.onExit,a=e.style,s=e.timeout,l=void 0===s?"auto":s,u=FI(e,["children","in","onEnter","onExit","style","timeout"]),c=wI.useRef(),d=wI.useRef(),f=CX(n.ref,t),h=Nj()||uz;return wI.useEffect((function(){return function(){clearTimeout(c.current)}}),[]),wI.createElement(yX,zI({appear:!0,in:r,onEnter:function(e,t){!function(e){e.scrollTop}(e);var n,r=EX({style:a,timeout:l},{mode:"enter"}),o=r.duration,s=r.delay;"auto"===l?(n=h.transitions.getAutoHeightDuration(e.clientHeight),d.current=n):n=o,e.style.transition=[h.transitions.create("opacity",{duration:n,delay:s}),h.transitions.create("transform",{duration:.666*n,delay:s})].join(","),i&&i(e,t)},onExit:function(e){var t,n=EX({style:a,timeout:l},{mode:"exit"}),r=n.duration,i=n.delay;"auto"===l?(t=h.transitions.getAutoHeightDuration(e.clientHeight),d.current=t):t=r,e.style.transition=[h.transitions.create("opacity",{duration:t,delay:i}),h.transitions.create("transform",{duration:.666*t,delay:i||.333*t})].join(","),e.style.opacity="0",e.style.transform=gG(.75),o&&o(e)},addEndListener:function(e,t){"auto"===l&&(c.current=setTimeout(t,d.current||0))},timeout:"auto"===l?null:l},u),(function(e,t){return wI.cloneElement(n,zI({style:zI({opacity:0,transform:gG(.75),visibility:"exited"!==e||r?void 0:"hidden"},vG[e],{},a,{},n.props.style),ref:f},t))}))}));bG.muiSupportAuto=!0;var xG=bG,MG=wI.createContext({}),SG=wI.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,u=e.disablePadding,c=void 0!==u&&u,d=e.subheader,f=FI(e,["children","classes","className","component","dense","disablePadding","subheader"]),h=wI.useMemo((function(){return{dense:l}}),[l]);return wI.createElement(MG.Provider,{value:h},wI.createElement(a,zI({className:Yj(r.root,i,l&&r.dense,!c&&r.padding,d&&r.subheader),ref:t},f),d,n))})),wG=cz({root:{listStyle:"none",margin:0,padding:0,position:"relative"},padding:{paddingTop:8,paddingBottom:8},dense:{},subheader:{paddingTop:0}},{name:"MuiList"})(SG),EG="undefined"==typeof window?wI.useEffect:wI.useLayoutEffect,kG=wI.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,u=e.classes,c=e.className,d=e.component,f=e.ContainerComponent,h=void 0===f?"li":f,p=e.ContainerProps,m=(p=void 0===p?{}:p).className,y=FI(p,["className"]),g=e.dense,v=e.disabled,b=void 0!==v&&v,x=e.disableGutters,M=void 0!==x&&x,S=e.divider,w=void 0!==S&&S,E=e.focusVisibleClassName,k=e.selected,C=void 0!==k&&k,O=FI(e,["alignItems","autoFocus","button","children","classes","className","component","ContainerComponent","ContainerProps","dense","disabled","disableGutters","divider","focusVisibleClassName","selected"]),T=wI.useContext(MG),A={dense:g||T.dense||!1,alignItems:r},N=wI.useRef(null);EG((function(){o&&N.current&&N.current.focus()}),[o]);var q,D,R=wI.Children.toArray(l),I=R.length&&(q=R[R.length-1],D=["ListItemSecondaryAction"],wI.isValidElement(q)&&-1!==D.indexOf(q.type.muiName)),_=CX(wI.useCallback((function(e){N.current=aX.findDOMNode(e)}),[]),t),P=zI({className:Yj(u.root,c,A.dense&&u.dense,!M&&u.gutters,w&&u.divider,b&&u.disabled,s&&u.button,"center"!==r&&u.alignItemsFlexStart,I&&u.secondaryAction,C&&u.selected),disabled:b},O),L=d||"li";return s&&(P.component=d||"div",P.focusVisibleClassName=Yj(u.focusVisible,E),L=XX),I?(L=P.component||d?L:"div","li"===h&&("li"===L?L="div":"li"===P.component&&(P.component="div")),wI.createElement(MG.Provider,{value:A},wI.createElement(h,zI({className:Yj(u.container,m),ref:_},y),wI.createElement(L,P,R),R.pop()))):wI.createElement(MG.Provider,{value:A},wI.createElement(L,zI({ref:_},P),R))})),CG=cz((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"})(kG),OG=wI.forwardRef((function(e,t){var n=e.classes,r=e.className,i=FI(e,["classes","className"]),o=wI.useContext(MG);return wI.createElement("div",zI({className:Yj(n.root,r,"flex-start"===o.alignItems&&n.alignItemsFlexStart),ref:t},i))})),TG=cz((function(e){return{root:{minWidth:56,color:e.palette.action.active,flexShrink:0,display:"inline-flex"},alignItemsFlexStart:{marginTop:8}}}),{name:"MuiListItemIcon"})(OG),AG=wI.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,u=e.primary,c=e.primaryTypographyProps,d=e.secondary,f=e.secondaryTypographyProps,h=FI(e,["children","classes","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"]),p=wI.useContext(MG).dense,m=null!=u?u:n;null==m||m.type===JX||a||(m=wI.createElement(JX,zI({variant:p?"body2":"body1",className:r.primary,component:"span"},c),m));var y=d;return null==y||y.type===JX||a||(y=wI.createElement(JX,zI({variant:"body2",className:r.secondary,color:"textSecondary"},f),y)),wI.createElement("div",zI({className:Yj(r.root,i,p&&r.dense,l&&r.inset,m&&y&&r.multiline),ref:t},h),m,y)})),NG=cz({root:{flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},multiline:{marginTop:6,marginBottom:6},dense:{},inset:{paddingLeft:56},primary:{},secondary:{}},{name:"MuiListItemText"})(AG);function qG(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function DG(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function RG(e){return[e.horizontal,e.vertical].map((function(e){return"number"==typeof e?"".concat(e,"px"):e})).join(" ")}function IG(e){return"function"==typeof e?e():e}var _G=wI.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,u=e.children,c=e.classes,d=e.className,f=e.container,h=e.elevation,p=void 0===h?8:h,m=e.getContentAnchorEl,y=e.marginThreshold,g=void 0===y?16:y,v=e.onEnter,b=e.onEntered,x=e.onEntering,M=e.onExit,S=e.onExited,w=e.onExiting,E=e.open,k=e.PaperProps,C=void 0===k?{}:k,O=e.transformOrigin,T=void 0===O?{vertical:"top",horizontal:"left"}:O,A=e.TransitionComponent,N=void 0===A?xG:A,q=e.transitionDuration,D=void 0===q?"auto":q,R=e.TransitionProps,I=void 0===R?{}:R,_=FI(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"]),P=wI.useRef(),L=wI.useCallback((function(e){if("anchorPosition"===l)return a;var t=IG(r),n=(t instanceof oG(t).Element?t:eG(P.current).body).getBoundingClientRect(),i=0===e?o.vertical:"center";return{top:n.top+qG(n,i),left:n.left+DG(n,o.horizontal)}}),[r,o.horizontal,o.vertical,a,l]),j=wI.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]),z=wI.useCallback((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return{vertical:qG(e,T.vertical)+t,horizontal:DG(e,T.horizontal)}}),[T.horizontal,T.vertical]),F=wI.useCallback((function(e){var t=j(e),n={width:e.offsetWidth,height:e.offsetHeight},i=z(n,t);if("none"===l)return{top:null,left:null,transformOrigin:RG(i)};var o=L(t),a=o.top-i.vertical,s=o.left-i.horizontal,u=a+n.height,c=s+n.width,d=oG(IG(r)),f=d.innerHeight-g,h=d.innerWidth-g;if(a<g){var p=a-g;a-=p,i.vertical+=p}else if(u>f){var m=u-f;a-=m,i.vertical+=m}if(s<g){var y=s-g;s-=y,i.horizontal+=y}else if(c>h){var v=c-h;s-=v,i.horizontal+=v}return{top:"".concat(a,"px"),left:"".concat(s,"px"),transformOrigin:RG(i)}}),[r,l,L,j,z,g]),B=wI.useCallback((function(e){var t=F(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin}),[F]),V=wI.useCallback((function(e){P.current=aX.findDOMNode(e)}),[]),H=wI.useMemo((function(){if(E)return 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,s=function(){e.apply(a,i)};clearTimeout(t),t=setTimeout(s,n)}return r.clear=function(){clearTimeout(t)},r}((function(){B(P.current)}))}),[E,B]);wI.useImperativeHandle(n,(function(){return E?{updatePosition:H}:null}),[E,H]),wI.useEffect((function(){if(H)return window.addEventListener("resize",H),function(){window.removeEventListener("resize",H),H.clear()}}),[H]);var $=D;"auto"!==D||N.muiSupportAuto||($=void 0);var U=f||(r?eG(IG(r)).body:void 0);return wI.createElement(yG,zI({container:U,open:E,ref:t,BackdropProps:{invisible:!0},className:Yj(c.root,d)},_),wI.createElement(N,zI({appear:!0,in:E,onEnter:v,onEntered:b,onExit:M,onExited:S,onExiting:w,timeout:$},I,{onEntering:rG((function(e,t){x&&x(e,t),B(e)}),I.onEntering)}),wI.createElement(hz,zI({elevation:p,ref:V},C,{className:Yj(c.paper,C.className)}),u)))})),PG=cz({root:{},paper:{position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}},{name:"MuiPopover"})(_G);function LG(e){return"large"===e?"20px":"small"===e?"12px":"16px"}function jG({d:e,size:t,style:n={},viewBox:r="0 0 16 16"}){const i={fontSize:LG(t),display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",...n};return wI.createElement("i",{style:i},wI.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:r,fill:"currentColor"},wI.createElement("path",{d:e})))}const zG={d:"M15.9993744,3 L15.9993744,5 L4.99937445,5 L4.99937445,3 L15.9993744,3 Z M8.99937445,7 L15.9993744,7 L15.9993744,9 L8.99937445,9 L8.99937445,7 Z M11.9993744,11 L15.9993744,11 L15.9993744,13 L11.9993744,13 L11.9993744,11 Z M2.2,11 L7,11 L7,9.00369263 C7,8.89323568 7.08954305,8.80369263 7.2,8.80369263 C7.2549016,8.80369263 7.30738916,8.82626165 7.34515712,8.86610844 L10.1852182,11.8624926 C10.2583124,11.93961 10.258346,12.0604218 10.1852948,12.13758 L7.34523376,15.1373102 C7.2692928,15.2175206 7.14270711,15.2209817 7.06249671,15.1450407 C7.02260076,15.1072683 7,15.0547472 7,14.9998069 L7,12.9043747 C4.79351111,12.9043747 2.8018683,12.9266213 1.02507156,12.9711145 L1.02507252,12.9711526 C0.472939773,12.9849787 0.014139487,12.5485949 0.000313396522,11.9964622 C0.000104473692,11.988119 -1.32268838e-12,11.9797736 -1.3231638e-12,11.9714278 L-1.83320026e-12,3 L2,3 L2,10.8 C2,10.9104569 2.08954305,11 2.2,11 Z"},FG={d:"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"},BG="M6,10 L13,3 L15,5 L8,12 L6,14 L1,9 L3,7 L6,10 Z",VG={d:"M2.4,4 L13.6,4 C13.7104569,4 13.8,4.08954305 13.8,4.2 C13.8,4.24327404 13.7859644,4.28538077 13.76,4.32 L8.16,11.7866667 C8.09372583,11.8750322 7.96836556,11.8929408 7.88,11.8266667 C7.86483887,11.8152958 7.85137085,11.8018278 7.84,11.7866667 L2.24,4.32 C2.17372583,4.23163444 2.19163444,4.10627417 2.28,4.04 C2.31461923,4.01403557 2.35672596,4 2.4,4 Z"},HG={d:"M4,13.6 L4,2.4 C4,2.28954305 4.08954305,2.2 4.2,2.2 C4.24327404,2.2 4.28538077,2.21403557 4.32,2.24 L11.7866667,7.84 C11.8750322,7.90627417 11.8929408,8.03163444 11.8266667,8.12 C11.8152958,8.13516113 11.8018278,8.14862915 11.7866667,8.16 L4.32,13.76 C4.23163444,13.8262742 4.10627417,13.8083656 4.04,13.72 C4.01403557,13.6853808 4,13.643274 4,13.6 Z"};function $G(e,t,n){(function({model:e,properties:t}){return e.modifiers?e.modifiers.apply({model:e,properties:t}):Promise.resolve()})({model:e,properties:n}).then((()=>{e.colorSupport&&e.colorSupport.colorByUpdater(n,"qHyperCubeDef.");let r=Bi.generate(t,n);r&&r.length&&(r=r.map((e=>({qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}))),e.applyPatches(r,!0))}))}function UG(e,t,n,r,i,o){e.getEffectiveProperties().then((a=>{const s=d(!0,{},a),l=s.qHyperCubeDef[r][t],u=s.qHyperCubeDef.qLayoutExclude.qHyperCubeDef[r][n];u.qAttributeDimensions=l.qAttributeDimensions,l.qAttributeDimensions=[],o||(u.qAttributeExpressions=l.qAttributeExpressions,l.qAttributeExpressions=[]),s.qHyperCubeDef[r][t]=u,s.qHyperCubeDef.qLayoutExclude.qHyperCubeDef[r][n]=l,i&&i({oldItem:l,newItem:u,oldProperties:a,newProperties:s,model:e}),$G(e,a,s)}))}function WG({dir:e,dock:t,altList:n,model:r,translator:i,app:o,onChange:a}){return 0===n.length?null:{dir:e,dock:t,getAlternatives(){const e=n.map((e=>function(e,t,n){if(e.qLibraryId)return t.getDimension(e.qLibraryId).then((e=>e.getLayout())).catch((()=>null)).then((e=>e?"H"!==e.qDim.qGrouping&&e.qDim.qLabelExpression?e.qDim.qLabelExpression:e.qDim.title:n.get("Object.ErrorMessage.MissingDimension")));const r=e.qDef.qLabelExpression;if(r)return t.evaluate(r);const i=e.qDef.qFieldLabels[0]||e.qDef.qFieldDefs[0];return Promise.resolve(i)}(e,o,i).then((t=>({id:e.qDef.cId,selected:!1,title:t})))));return Promise.all(e)},changeTo(e,t){UG(r,e,t,"qDimensions",a)}}}function YG(e,t,n,r="/qHyperCubeDef"){return{breadcrumbs:e.qGroupFallbackTitles.slice(0,e.qGroupPos),drilldown:"H"===e.qGrouping,index:t,locked:!!e.qLocked,text:"H"===e.qGrouping?e.qGroupFallbackTitles[e.qGroupPos]:e.qFallbackTitle,popoverText:(i=e,"H"===i.qGrouping?i.title||"":i.qFallbackTitle||""),drillUp(e){n.drillUp(r,t,e)}};var i}function XG({altList:e,app:t,dir:n,dock:r,model:i,onChange:o,skipAttributeExpressions:a,translator:s}){return 0===e.length?null:{dir:n,dock:r,getAlternatives(){const n=e.map((e=>function(e,t,n){if(e.qLibraryId)return t.getMeasure(e.qLibraryId).then((e=>e.getLayout())).catch((()=>null)).then((e=>e?e.qMeasure.qLabelExpression?e.qMeasure.qLabelExpression:e.qMeasure.qLabel||e.qMeasure.qDef:n.get("Object.ErrorMessage.MissingMeasure")));const r=e.qDef.qLabelExpression;if(r)return t.evaluate(r);const i=e.qDef.qLabel||e.qDef.qDef;return Promise.resolve(i)}(e,t,s).then((t=>({id:e.qDef.cId,selected:!1,title:t})))));return Promise.all(n)},changeTo(e,t){UG(i,e,t,"qMeasures",o,a)}}}function GG(e,t){return{breadcrumbs:[],drilldown:!1,index:t,locked:!1,text:e.qFallbackTitle,popoverText:e.qFallbackTitle}}const KG={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"}}},JG=({children:e,...t})=>wI.createElement(QX,CR({size:"small",disableRipple:!0,disableTouchRipple:!0},t),e);function ZG(){function e({title:e,selected:t,onClick:n}){const r=P.detectTextDirection(e);return wI.createElement(CG,{button:!0,onClick:n,style:{textAlign:"start"}},wI.createElement(TG,{style:{minWidth:32}},wI.createElement(jG,{d:t?BG:""})),wI.createElement(NG,{primaryTypographyProps:{dir:r}},e))}function t({alignTo:t,changeTo:n,current:r,dir:i,dock:o,list:a,onClose:s,show:l}){const u=a.map(((t,r)=>wI.createElement(e,{key:t.id,title:t.title,onClick:()=>n(r)})));return wI.createElement(PG,CR({anchorEl:t,open:l,onClose:s},KG[o],{PaperProps:{style:{minWidth:"250px",maxHeight:"300px"}}}),wI.createElement(wG,{dense:!0,dir:i,component:"nav"},wI.createElement(e,{title:r,selected:!0,onClick:s}),u))}e.propTypes={title:OI.string.isRequired,selected:OI.bool,onClick:OI.func.isRequired},e.defaultProps={selected:!1},t.propTypes={alignTo:OI.any,changeTo:OI.func.isRequired,current:OI.string.isRequired,dir:OI.string.isRequired,dock:OI.string.isRequired,list:OI.array,onClose:OI.func.isRequired,show:OI.bool.isRequired},t.defaultProps={list:[],alignTo:null};class n extends wI.Component{constructor(e){super(e),this.state={open:!1,inSelection:e.selections&&e.selections.isActive()},this.openPopover=this.openPopover.bind(this),this.closePopover=this.closePopover.bind(this),this.changeTo=this.changeTo.bind(this),this.alignToRef=wI.createRef()}componentDidMount(){const{selections:e}=this.props;e&&(this.onSelectionsActivated=()=>this.setState({inSelection:!0}),this.onSelectionsDeactivated=()=>this.setState({inSelection:!1}),e.addListener("activated",this.onSelectionsActivated),e.addListener("deactivated",this.onSelectionsDeactivated),e.addListener("canceled",this.onSelectionsDeactivated))}componentWillUnmount(){const{selections:e}=this.props;e&&(e.removeListener("activated",this.onSelectionsActivated),e.removeListener("deactivated",this.onSelectionsDeactivated),e.removeListener("canceled",this.onSelectionsDeactivated))}changeTo(e){this.props.popover.changeTo(this.props.titleData.index,e),this.closePopover()}openPopover(){this.state.closeTime&&Date.now()-this.state.closeTime<20||this.props.popover.getAlternatives().then((e=>{this.setState({open:!0,alternatives:e})}))}closePopover(){this.setState({open:!1,closeTime:Date.now()})}render(){const{titleData:e,popover:n,translator:r,disabled:i,isDimension:o,padding:a,minWidth:s,hasAlternative:l}=this.props,u={flex:"1 1 auto",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",fontWeight:"normal",...this.props.style},c=e.breadcrumbs.length,d=i||this.state.inSelection,f=e.breadcrumbs.map(((t,n)=>wI.createElement(JG,{style:{display:"flex",alignItems:"center",color:d&&"rgba(89, 89, 89, 0.8)",pointerEvents:d?"none":"auto"},key:n,onClick:()=>d?void 0:e.drillUp(c-n),title:t},wI.createElement("span",{style:u},t),wI.createElement(jG,CR({},HG,{size:"small",style:{margin:"0 8px"}}))))),h=n&&!this.state.open?this.openPopover:this.closePopover,p=!n||i||this.state.inSelection,m={display:"flex",alignItems:"center",width:"100%",color:p&&"rgba(89, 89, 89, 0.8)",height:!o&&p&&"20px",lineHeight:!o&&p&&"20px",border:!o&&p&&"none"};this.state.open&&(m.background="rgba(0,0,0,0.08)");a&&(m.padding=a),s&&(m.minWidth=s);const y=P.detectTextDirection(e.text),g=wI.createElement(JG,{style:m,onClick:p?void 0:h,title:e.text,tabIndex:p?-1:0,onFocus:p?void 0:e=>{this.state.closeTime&&Date.now()-this.state.closeTime<20||(e.currentTarget.style.boxShadow="0px 0px 0px 2px #177FE6 inset",e.currentTarget.style.borderRadius="2px")},onBlur:p?void 0:e=>{e.currentTarget.style.boxShadow="none",e.currentTarget.style.borderRadius="0px"},onMouseDown:e=>{e.preventDefault()}},e.locked&&wI.createElement(jG,CR({},FG,{size:"small",title:r.get("Tooltip.selections.locked")})),wI.createElement("span",{style:u,dir:y},e.text),n&&wI.createElement(jG,CR({},VG,{size:"small",style:{margin:"0 8px"}})));return wI.createElement(wI.Fragment,null,e.drilldown&&wI.createElement(jG,CR({},zG,{size:"small",title:r.get("Tooltip.dimensions.drilldown"),style:{margin:"0 4px 0 0"}})),f,wI.createElement("div",{ref:this.alignToRef,style:{overflow:"hidden",pointerEvents:l?"auto":"none"}},g),n&&wI.createElement(t,{dock:n.dock,dir:n.dir,current:e.popoverText,alignTo:this.alignToRef.current,show:this.state.open,list:this.state.alternatives,onClose:this.closePopover,changeTo:this.changeTo}))}}function r(e){return{top:"bottom",bottom:"top",left:"right",right:"left"}[e]}function i(e){return!e.isDimension&&M(e,"hyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures.length")>0}return n.propTypes={disabled:OI.bool.isRequired,padding:OI.string,minWidth:OI.string,titleData:OI.shape({breadcrumbs:OI.arrayOf(OI.string).isRequired,drilldown:OI.bool.isRequired,index:OI.number.isRequired,locked:OI.bool.isRequired,text:OI.string.isRequired,popoverText:OI.string.isRequired,drillUp:OI.func}).isRequired,popover:OI.shape({dir:OI.string.isRequired,dock:OI.string.isRequired,changeTo:OI.func.isRequired,getAlternatives:OI.func.isRequired}),translator:OI.shape({get:OI.func.isRequired}).isRequired,selections:OI.shape({isActive:OI.func,addListener:OI.func,removeListener:OI.func}),style:OI.shape({fontSize:OI.string,color:OI.string,fontFamily:OI.string}).isRequired,isDimension:OI.bool.isRequired,hasAlternative:OI.bool.isRequired},n.defaultProps={popover:null,selections:null,padding:"",minWidth:""},{renderer:"react",disableTriggers:!0,preferredSize:function(){return this.settings.settings.isDimension||i(this.settings.settings)?28:20},render(){const{settings:{app:e,disabled:t,explicitItemInfos:o,hyperCube:a,hyperCubeDef:s,isDimension:l,minWidth:u,model:c,onChangeToAlternative:d,padding:f,rtl:h,selections:p,skipAttributeExpressions:m,translator:y},layout:{dock:g}}=this.settings,v="top"!==g&&"bottom"!==g||!h?"ltr":"rtl",b=function(e,t){const n={pointerEvents:"auto",display:"flex",justifyContent:"center",alignItems:"center"};return"left"===e?(n.width=t.height+"px",n.transform=`rotate(-90deg) translate(-${t.height}px, 0)`,n.transformOrigin="top left"):"right"===e&&(n.width=t.height+"px",n.transform=`rotate(90deg) translate(0, -${t.width}px)`,n.transformOrigin="top left"),n}(g,this.rect),x=s&&s.qLayoutExclude&&s.qLayoutExclude.qHyperCubeDef,S=x&&x[l?"qDimensions":"qMeasures"]||[],w=o||a[l?"qDimensionInfo":"qMeasureInfo"],E=l?WG:XG,k=l?YG:GG,C=c&&c.colorSupport&&c.modifiers&&E({altList:S,app:e,dir:h?"rtl":"ltr",dock:r(g),model:c,onChange:d,skipAttributeExpressions:m,translator:y}),O=(T=this.settings.settings).isDimension&&M(T,"hyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions.length")>0||i(this.settings.settings);var T;const A=w.map(((e,r)=>{const i="number"==typeof e.explicitColumn?e.explicitColumn:r,o=k(e,i,c),a=r===w.length-1;return wI.createElement(wI.Fragment,{key:e.cId},wI.createElement(n,{popover:C,titleData:o,model:c,translator:y,selections:p,disabled:t(),style:this.style,isDimension:l,padding:f,minWidth:u,hasAlternative:O}),!a&&wI.createElement("span",null,", "))}));return wI.createElement("div",{style:b,dir:v},A)}}}const QG=I_({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:'"QlikView Sans", "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 eK=L_({productionPrefix:"q12d0",disableGlobal:!0,seed:""});function tK(){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",aX.render(function(e,t){return wI.createElement(_j,{generateClassName:t},wI.createElement(sz,{theme:QG},e))}(e,eK),r),!0},itemsAt:()=>[],findShapes:()=>[],clear:()=>(r&&aX.unmountComponentAtNode(r),o),destroy(){r&&r.parentElement&&(aX.unmountComponentAtNode(r),r.parentElement.removeChild(r)),r=null},size:t=>(t&&(i=e(t)),i)};return o}}function nK(){return function(e){e.renderer("react",tK()),e.component("data-title",ZG()),e.component("disclaimer",function(){class e extends wI.Component{render(){const{label:e,spanStyle:t}=this.props;return wI.createElement(wI.Fragment,null,wI.createElement("span",{ref:this.alignToRef,style:t,title:e},e))}}return e.propTypes={label:OI.string.isRequired,spanStyle:OI.shape().isRequired},{renderer:"react",disableTriggers:!0,preferredSize:function(){return 22},render(){const{settings:{label:t,rtl:n},layout:{dock:r}}=this.settings,i="top"!==r&&"bottom"!==r||!n?"ltr":"rtl",o=function(e,t){const n={pointerEvents:"auto",display:"flex",justifyContent:"center",alignItems:"center",color:"#7b7a78",fontStyle:"italic",fontSize:"13px"};switch(e){case"left":n.width=t.height+"px",n.transform=`rotate(-90deg) translate(-${t.height}px, 0)`,n.transformOrigin="top left";break;case"right":n.width=t.height+"px",n.transform=`rotate(90deg) translate(0, -${t.width}px)`,n.transformOrigin="top left";break;case"center":n.width=t.width+"px",n.height=t.height+"px",n.color="#595959",n.fontStyle="normal",n.fontSize="1.2em",n.textAlign="center";break;default:case"top":case"bottom":n.justifyContent="flex-start",n.alignItems="flex-start"}return n}(r,this.rect),a="center"===r?t:"* "+t,s="center"!==r?{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}:{};return wI.createElement("div",{style:o,dir:i},wI.createElement(wI.Fragment,null,wI.createElement(e,{label:a,spanStyle:s})))}}}())}}function rK(e,t,n,r){const i=function(t){const n=String(t);return e(n)};return i.ticks=()=>t.map((t=>{const o=i([t.data.value,r?n-1:0]),a=i([t.data.value,r?0:n-1])+e.bandwidth();return{position:(o+a)/2,label:t.label,data:t.data,start:o,end:a}})),i.bandwidth=()=>e.bandwidth(),i.data=()=>e.data(),i.domain=()=>e.domain(),i.pxScale=function(r){const i=e.pxScale(r);return i===e?this:rK(i,t,n)},i}function iK(e){const t=e.scale("band");e.scale("group-by-measure",(function(e={},n={},r={}){const i=t(e,n,r),o=i.domain(),a=i.ticks(),s=[],l=e.measureCount;return o.forEach(((e,t)=>{for(let t=0;t<l;++t)s.push(String([e,t]));s.push(`SPACER_${t}_SPACER`)})),s.splice(-1),i.domain(s),rK(i,a,l,e.invert)}))}const oK={getDefaultSettings:({size:e=10,fill:t="#999",alignment:n}={})=>({show:!0,type:"n-polygon",fill:t,stroke:"#000",strokeWidth:0,size:e,sides:3,startAngle:-90,alignment:n}),createOob({oob:e,dockValue:t,boxCenter:n,rendWidth:r,rendHeight:i,flipXY:o,symbol:a}){let s="x",l="y",u=r,c=i,f=t<.5?90:-90;return o&&(s="y",l="x",u=i,c=r,f=t<.5?180:0),a(d({},e,{[s]:n*u,[l]:c-Math.max(e.size/2,Math.min(t*c,c-e.size/2)),startAngle:f}))}};function aK({i:e,width:t,height:n,resolved:r,keys:i,flipXY:o,calcKey:a="box"}){let s,l=null,u=null;void 0!==r.major.settings.binStart?(l=r.major.items[e].binStart,u=r.major.items[e].binEnd,s=r.major.settings.binStart.scale):(s=r.major.settings.major.scale,l=s?r.major.items[e].major:0);let c=0;s?s.bandwidth?(c=s.bandwidth(),l-=c/2):c=u-l:c=1;const f=d({},{major:l,majorEnd:u},r.minor.items[e]);i.forEach((t=>{f[t]=r[t].items[e]}));const h=o?n:t,p=function({bandwidth:e,width:t,minWidthPx:n,maxWidthPx:r,maxMajorWidth:i}){const o=e>=0?1:-1;let a=Math.min(o*e*t,Number.isNaN(Number(r))?i:r/i);return a=Number.isNaN(Number(n))?a:Math.max(n/i,a),a*o}({bandwidth:c,width:f[a].width,minWidthPx:f[a].minWidthPx,maxWidthPx:f[a].maxWidthPx,maxMajorWidth:h}),m=(c-p)/2,y=m+f.major+p/2;return{item:f,boxCenter:y,boxWidth:p,boxPadding:m,rendWidth:t,rendHeight:n}}function sK({keys:e,data:t,defaultSettings:n,style:r,settings:i,width:o,height:a,resolver:s}){const l=d(!0,{},n||{},r||{}),u={major:"horizontal"===i.orientation?a:o,minor:"horizontal"===i.orientation?o:a},c=i.major;let f;f="object"==typeof c&&"object"==typeof c.ref&&void 0!==c.ref.start&&void 0!==c.ref.end?s.resolve({data:t,defaults:{start:0,end:1},scaled:u,settings:d(!0,{},{binStart:{scale:i.major.scale,ref:i.major.ref.start},binEnd:{scale:i.major.scale,ref:i.major.ref.end}})}):"object"==typeof c&&void 0!==c.binStart&&void 0!==c.binEnd?s.resolve({data:t,defaults:{start:0,end:1},scaled:u,settings:d(!0,{},{binStart:{scale:i.major.scale,ref:"binStart"},binEnd:{scale:i.major.scale,ref:"binEnd"}},i.major)}):s.resolve({data:t,scaled:u,defaults:{major:.5},settings:{major:i.major}});const h=i.minor||{};let p;const m={major:f,minor:s.resolve({data:t,defaults:{start:0,end:1},scaled:u,settings:d(!0,{},{start:{scale:h.scale,ref:"start"},end:{scale:h.scale,ref:"end"},min:{scale:h.scale,ref:"min"},max:{scale:h.scale,ref:"max"},med:{scale:h.scale,ref:"med"}},h)})};for(let n=0,r=e.length;n<r;n++)p=e[n],m[p]=s.resolve({data:t,defaults:l[p],settings:i[p],scaled:u});return m}const lK=["oob"];const uK={require:["chart","resolver","symbol"],defaultSettings:{settings:{size:10},data:{},style:{}},created(){this.state={}},preferredSize(){return this.settings.settings.size},render(){const{width:e,height:t}=this.rect,{dockValue:n}=this.settings.settings,r="horizontal"===this.settings.settings.orientation,{data:i,style:o,resolver:a,symbol:s}=this,l=sK({keys:lK,data:i,defaultSettings:{oob:oK.getDefaultSettings()},style:o,settings:this.settings.settings,width:e,height:t,resolver:a}),{settings:u,items:c}=l;return function({width:e,height:t,flipXY:n,resolved:r,keys:i,symbol:o,dockValue:a,_calcItemRenderingOpts:s=aK}){const l=[],{items:u}=r.major;for(let c=0,d=u.length;c<d;c++){const{item:d,boxCenter:f,rendWidth:h,rendHeight:p}=s({i:c,width:e,height:t,resolved:r,keys:i,flipXY:n,calcKey:"oob"}),m=u[c].data,y=[];if(d.oob.show){y.push(oK.createOob({oob:d.oob,dockValue:a,boxCenter:f,rendWidth:h,rendHeight:p,flipXY:n,symbol:o}));const e={type:"container",data:m,collider:{type:"bounds"},children:y};l.push(e)}}return l}({items:c,settings:u,width:e,height:t,flipXY:r,resolved:l,keys:lK,symbol:s,dockValue:n})}},cK={size:25,hat:{show:!0,fill:"#999",stroke:"#000",strokeWidth:0,strokeLinejoin:"miter",width:1,maxWidthPx:void 0,minWidthPx:1,minHeightPx:1,alignment:0}},dK=["hat"];function fK(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 hK({item:e,boxWidth:t,boxPadding:n,rendWidth:r,rendHeight:i,flipXY:o}){let a="x",s="y",l=r,u=i,c=e.hat.alignment||0;o&&(a="y",s="x",l=i,u=r,c=1-c);const f=(n+e.major)*l;let h=[{[a]:f,[s]:0+u},{[a]:f+t*c*l,[s]:8},{[a]:f+t*l,[s]:0+u},{[a]:f+t*l,[s]:0+u+10},{[a]:f,[s]:0+u+10}];const p=d({},e.hat,{type:"path",d:fK(h)});h=[{[a]:f,[s]:0},{[a]:f+t*(1-c)*l,[s]:0+u-8},{[a]:f+t*l,[s]:0},{[a]:f+t*l,[s]:-10},{[a]:f,[s]:-10}];return[p,d({},e.hat,{type:"path",d:fK(h)})]}const pK={require:["chart","resolver","symbol"],defaultSettings:{settings:{size:25},data:{},style:{hat:"$shape"}},created(){this.state={}},preferredSize(){return this.settings.settings.size},render(){const{width:e,height:t}=this.rect,n="horizontal"===this.settings.settings.orientation,{data:r,style:i,resolver:o}=this,a=sK({keys:dK,data:r,defaultSettings:cK,style:i,settings:this.settings.settings,width:e,height:t,resolver:o}),{settings:s,items:l}=a;return function({width:e,height:t,flipXY:n,resolved:r,keys:i,_calcItemRenderingOpts:o=aK}){const a=[],{items:s}=r.major;for(let l=0,u=s.length;l<u;l++){const{item:u,boxWidth:c,boxPadding:d,rendWidth:f,rendHeight:h}=o({i:l,width:e,height:t,resolved:r,keys:i,flipXY:n,calcKey:"hat"}),p=s[l].data,m=[];u.hat.show&&m.push(...hK({item:u,boxWidth:c,boxPadding:d,rendWidth:f,rendHeight:h,flipXY:n}));const y={type:"container",data:p,collider:{type:"bounds"},children:m};a.push(y)}return a}({items:l,settings:s,width:e,height:t,flipXY:n,resolved:a,keys:dK})}};var mK="unclassified",yK="equal-equal",gK="equal-higher",vK="equal-lower",bK="equal-void",xK="higher-equal",MK="higher-higher-acute",SK="higher-higher-obtuse",wK="higher-lower-negative",EK="higher-lower-positive",kK="higher-void",CK="lower-equal",OK="lower-higher-negative",TK="lower-higher-positive",AK="lower-lower-acute",NK="lower-lower-obtuse",qK="lower-void",DK="void-equal",RK="void-higher",IK="void-lower",_K="void-void";function PK(e,t){return Math.atan2(t.y-e.y,t.x-e.x)*(180/Math.PI)}function LK(e,t,n){const r=Math.sqrt((t.x-e.x)**2+(t.y-e.y)**2),i=Math.sqrt((t.x-n.x)**2+(t.y-n.y)**2),o=Math.sqrt((n.x-e.x)**2+(n.y-e.y)**2);return Math.acos((i*i+r*r-o*o)/(2*i*r))*(180/Math.PI)}function jK({previous:e,current:t,next:n}){const r=e&&e.value,i=t&&t.value,o=n&&n.value;return e||n?e?n?r===i?i===o?yK:i<o?gK:vK:i===o?r>i?xK:CK:r>i?i<o?LK(e,t,n)>90?SK:MK:PK(e,t)>PK(e,n)?EK:wK:i>o?LK(e,t,n)>90?NK:AK:PK(e,t)>PK(e,n)?TK:OK:r===i?bK:r>i?kK:qK:i===o?DK:i<o?RK:IK:_K}function zK({bounds:e,size:t}){const{x:n,y:r,width:i,height:o}=e,{insideStrategy:a}=t;return"center"===a?Math.floor(n+i/2)>=0&&Math.ceil(n+i/2)<=t.width&&Math.floor(r+o/2)>=0&&Math.ceil(r+o/2)<=t.height:Math.floor(n+i)>0&&Math.ceil(n)<t.width&&Math.floor(r+o/2)>=0&&Math.ceil(r+o/2)<=t.height}const FK=1,BK=0;function VK({node:e,line:t,groupIndex:n,extract:r,style:i,measureText:o,size:a,horizontal:s,rtl:l,meta:u,showLabel:c}){const d=r.label(e.data);if("string"!=typeof d&&"number"!=typeof d||""===d)return!1;const f=o({fontFamily:i.fontFamily,fontSize:i.fontSize,text:d}),{localBounds:h}=e,{"stroke-width":p}=e.attrs,m=r.pointValue(e.data),y={x:h.x+h.width/2,y:h.y+h.height/2,width:f.width+2*FK,height:f.height+2*BK},g=`${y.x}-${y.y}`,v=!s&&!l,b=s?a.height:a.width,x=(s?y.y:y.x)/b,M=(v?1-x:x)<=(b<=200?.25:.1),S={key:g,node:e,line:t,group:n,value:m,labelMeasurements:f,bounds:y,inside:zK({bounds:h,size:a}),border:p?p/2:0,classification:mK,setClassification(e){S.classification=e},preferences:[],setPreferences(e){S.preferences.push(...e)},placement:void 0,setPlacement(e){S.placement=e},duplicate:!1,setDuplicate(){S.duplicate=!0},extreme:u.getExtreme(g),elite:M,show:c(e)};return S}function HK({nodes:e,extract:t,style:n,measureText:r,size:i,horizontal:o,rtl:a,showLabel:s}){const l=function({nodes:e}){const t={top:[],right:[],bottom:[],left:[]},n=e.map((e=>{const{localBounds:t}=e,n={x:t.x+t.width/2,y:t.y+t.height/2};return{key:`${n.x}-${n.y}`,center:n}})),r=n.reduce(((e,t)=>((!e.top||t.center.y<e.top.center.y)&&(e.top=t),(!e.right||t.center.x>e.right.center.x)&&(e.right=t),(!e.bottom||t.center.y>e.bottom.center.y)&&(e.bottom=t),(!e.left||t.center.x<e.left.center.x)&&(e.left=t),e)),{});return t.top=n.filter((e=>e.center.y===r.top.center.y)).map((e=>e.key)),t.right=n.filter((e=>e.center.x===r.right.center.x)).map((e=>e.key)),t.bottom=n.filter((e=>e.center.y===r.bottom.center.y)).map((e=>e.key)),t.left=n.filter((e=>e.center.x===r.left.center.x)).map((e=>e.key)),{getExtrema:e=>({top:-1!==t.top.indexOf(e),right:-1!==t.right.indexOf(e),bottom:-1!==t.bottom.indexOf(e),left:-1!==t.left.indexOf(e)}),getExtreme:e=>{const{top:n,right:r,bottom:i,left:o}=t;return[n,r,i,o].some((t=>-1!==t.indexOf(e)))}}}({nodes:e});return function({nodes:e,by:t,lineIndex:n}){const r=e.reduce(((e,r,i)=>{const o=t(r.data);return e[o]||(e[o]={items:[],index:i}),e[o].items.push({node:r,line:r.data[n].value}),e}),{});return Object.keys(r).map((e=>r[e])).sort(((e,t)=>e.index-t.index)).map((e=>e.items))}({nodes:e,by:t.majorValue,lineIndex:t.lineIndex}).map(((e,u)=>e.map((e=>({line:e.line,item:VK({node:e.node,line:e.line,groupIndex:u,extract:t,style:n,measureText:r,size:i,horizontal:o,rtl:a,meta:l,showLabel:s})}))).filter((e=>e.item)).reduce(((e,t)=>(e[t.line]=t.item,e)),{}))).filter((e=>Object.keys(e).length))}var $K={TOP:"top",TOP_RIGHT:"top-right",RIGHT:"right",BOTTOM_RIGHT:"bottom-right",BOTTOM:"bottom",BOTTOM_LEFT:"bottom-left",LEFT:"left",TOP_LEFT:"top-left"},UK={[yK]:[$K.TOP,$K.BOTTOM],[gK]:[$K.BOTTOM,$K.BOTTOM_RIGHT],[vK]:[$K.TOP,$K.TOP_RIGHT],[bK]:[$K.TOP,$K.BOTTOM],[xK]:[$K.LEFT,$K.BOTTOM_LEFT,$K.TOP,$K.TOP_RIGHT],[MK]:[$K.BOTTOM,$K.BOTTOM_LEFT,$K.LEFT,$K.TOP_RIGHT],[SK]:[$K.BOTTOM,$K.TOP],[wK]:[$K.TOP,$K.TOP_RIGHT,$K.RIGHT],[EK]:[$K.BOTTOM,$K.BOTTOM_LEFT,$K.LEFT],[kK]:[$K.TOP],[CK]:[$K.TOP],[OK]:[$K.TOP,$K.TOP_LEFT],[TK]:[$K.BOTTOM_RIGHT],[AK]:[$K.TOP,$K.TOP_LEFT,$K.LEFT,$K.TOP_RIGHT,$K.RIGHT],[NK]:[$K.TOP,$K.BOTTOM],[qK]:[$K.TOP],[DK]:[$K.TOP],[RK]:[$K.TOP,$K.BOTTOM],[IK]:[$K.TOP,$K.BOTTOM,$K.LEFT],[_K]:[$K.TOP]};function WK({nodes:e,extract:t,style:n,measureText:r,size:i,horizontal:o,rtl:a,showLabel:s}){const l=HK({nodes:e,extract:t,style:n,measureText:r,size:i,horizontal:o,rtl:a,showLabel:s}),u=[...l.reduce(((e,t)=>(e.push(...Object.keys(t).map((e=>t[e]))),e)),[])],[c]=u,d=function({groups:e,threshold:t}){const n=e.map((e=>Object.keys(e).map((t=>e[t])))),r={};for(let e=0;e<=n.length;e++){const t=n[e];if(t)for(let e=0;e<t.length;e++){const n=t[e],{line:i}=n;r[i]||(r[i]=[]),r[i].push(n.bounds)}}const i=Object.keys(r).map((e=>r[e])),o=[];for(let e=0;e<i.length;e++)for(let n=0;n<i[e].length-1;n++){const r=i[e][n],a=i[e][n+1],s={x1:r.x,y1:r.y,x2:a.x,y2:a.y},l=s.x1-s.x2,u=s.y1-s.y2;Math.sqrt(l*l+u*u)>t&&o.push(s)}return o}({groups:l,threshold:c.node.localBounds.height}),f={getItems:()=>u,getLines:()=>d};return function({groups:e}){for(let t=0;t<e.length;t++){const n=Object.keys(e[t]).map((n=>e[t][n]));for(let r=0;r<n.length;r++){const i=n[r],o=jK({previous:e[t-1]&&e[t-1][i.line],current:i,next:e[t+1]&&e[t+1][i.line]});i.setClassification(o)}}}({groups:l}),f.getItems().forEach((e=>e.setPreferences(UK[e.classification]))),f}function YK({item:e,placement:t,size:n}){return t.x>=0-n.edgeBleed.left&&t.x<=n.width-e.bounds.width+n.edgeBleed.right&&t.y>=0-n.edgeBleed.top&&t.y<=n.height-e.bounds.height}function XK({line1:e,line2:t}){const n=(t.y2-t.y1)*(e.x2-e.x1)-(t.x2-t.x1)*(e.y2-e.y1);if(0===n)return!1;const r=((t.x2-t.x1)*(e.y1-t.y1)-(t.y2-t.y1)*(e.x1-t.x1))/n,i=((e.x2-e.x1)*(e.y1-t.y1)-(e.y2-e.y1)*(e.x1-t.x1))/n;return r>=0&&r<=1&&i>=0&&i<=1}function GK({candidate:e,lines:t,rects:n}){return!!n.some((t=>function({rect1:e,rect2:t}){return!(t.x>e.x+e.width||t.x+t.width<e.x||t.y>e.y+e.height||t.y+t.height<e.y)}({rect1:t,rect2:e})))||t.some((t=>function({line:e,rect:t}){const n={x:t.x,y:t.y},r={x:t.x+t.width,y:t.y},i={x:t.x+t.width,y:t.y+t.height},o={x:t.x,y:t.y+t.height},a={x1:r.x,y1:r.y,x2:i.x,y2:i.y},s={x1:i.x,y1:i.y,x2:o.x,y2:o.y},l={x1:o.x,y1:o.y,x2:n.x,y2:n.y};return XK({line1:e,line2:{x1:n.x,y1:n.y,x2:r.x,y2:r.y}})||XK({line1:e,line2:a})||XK({line1:e,line2:s})||XK({line1:e,line2:l})}({line:t,rect:e})))}const KK={x:0,width:0,y:0,height:0};const JK=({item:e})=>({x:e.bounds.x-e.bounds.width/2,y:e.bounds.y-e.bounds.height-e.node.localBounds.height/2-e.border}),ZK=({item:e})=>({x:e.bounds.x,y:e.bounds.y-e.bounds.height-e.node.localBounds.height/2-e.border}),QK=({item:e})=>({x:e.bounds.x+e.node.localBounds.width/2+e.border,y:e.bounds.y-e.bounds.height/2}),eJ=({item:e})=>({x:e.bounds.x,y:e.bounds.y+e.node.localBounds.height/2+e.border}),tJ=({item:e})=>({x:e.bounds.x-e.bounds.width/2,y:e.bounds.y+e.node.localBounds.height/2+e.border}),nJ=({item:e})=>({x:e.bounds.x-e.bounds.width,y:e.bounds.y+e.node.localBounds.height/2+e.border}),rJ=({item:e})=>({x:e.bounds.x-e.bounds.width-e.node.localBounds.width/2-e.border,y:e.bounds.y-e.bounds.height/2}),iJ=({item:e})=>({x:e.bounds.x-e.bounds.width,y:e.bounds.y-e.bounds.height-e.node.localBounds.height/2-e.border});var oJ=2.5,aJ=4;const sJ=[$K.TOP,$K.TOP_LEFT,$K.TOP_RIGHT],lJ=[$K.BOTTOM,$K.BOTTOM_LEFT,$K.BOTTOM_RIGHT];function uJ({position:e}){const t={x:oJ,width:-2*oJ,y:0,height:0},n=sJ.indexOf(e)>-1,r=lJ.indexOf(e)>-1;return n&&(t.y=aJ,t.height=-aJ),r&&(t.height=-aJ),t}function cJ({cx:e,cy:t,r:n,degrees:r}){const i=r*(Math.PI/180);return{x:Math.round(e+n*Math.sin(i)),y:Math.round(t+n*-Math.cos(i))}}function dJ({coordinates:e,degrees:t,item:n}){const r={x:e.x,y:e.y};return t<=90?r.y-=n.bounds.height:t>180&&t<=270?r.x-=n.bounds.width:t>270&&(r.y-=n.bounds.height,r.x-=n.bounds.width),r}function fJ({item:e,validator:t,force:n=!1}){const r=function({item:e}){return[e.node.localBounds.height/2*Math.sqrt(2)]}({item:e}),i=e.bounds.x,o=e.bounds.y;for(let a=0;a<r.length;a++){const s=r[a];for(let r=40;r<=180;r+=15){const a=dJ({coordinates:cJ({cx:i,cy:o,r:s,degrees:r}),degrees:r,item:e});if(t({item:e,placement:a,ignoreLines:n}).valid)return a}for(let r=320;r>180;r-=15){const a=dJ({coordinates:cJ({cx:i,cy:o,r:s,degrees:r}),degrees:r,item:e});if(t({item:e,placement:a,ignoreLines:n}).valid)return a}}return!1}const hJ=void 0;function pJ({item:e,validator:t,force:n=!1}){const r=[...e.preferences,...Object.keys($K).map((e=>$K[e])).filter((t=>-1===e.preferences.indexOf(t)))],i={[$K.TOP]:JK,[$K.TOP_RIGHT]:ZK,[$K.RIGHT]:QK,[$K.BOTTOM_RIGHT]:eJ,[$K.BOTTOM]:tJ,[$K.BOTTOM_LEFT]:nJ,[$K.LEFT]:rJ,[$K.TOP_LEFT]:iJ},o=[];for(let a=0;a<r.length;a++){const s=r[a],l=i[s]({item:e}),u=uJ({position:s}),c=t({item:e,placement:l,adjustment:u,ignoreLines:n});if(n&&c.inside&&o.push(l),c.valid)return l}const a=()=>fJ({item:e,validator:t,force:n});if(n){const e=a();return e||(o[0]||hJ)}return(e.extreme||e.elite)&&a()||hJ}function mJ({model:e,size:t,all:n}){const r={},i=e.getItems(),o=[...i.map((e=>({x:e.node.localBounds.x-e.border+1,y:e.node.localBounds.y-e.border+1,height:e.node.localBounds.height+2*e.border-2,width:e.node.localBounds.width+2*e.border-2})))],a=[],s=e.getLines();i.forEach((e=>{const{data:i}=e.node;if(!e.show||!e.inside||i.null&&i.null.value||i.interpolated&&i.interpolated.value)return;const{key:l}=e;if(r[l])return void e.setDuplicate();r[l]=!0;const u=function({size:e,lines:t,placements:n}){return function({item:r,placement:i,adjustment:o=KK,ignoreLines:a=!1}){const s={inside:YK({item:r,placement:i,size:e}),collides:!0,valid:!1};return s.inside?(s.collides=GK({candidate:{x:i.x+o.x,y:i.y+o.y,width:r.bounds.width+o.width,height:r.bounds.height+o.height},lines:a?[]:t,rects:n}),s.valid=!s.collides,s):s}}({size:t,lines:s,placements:o}),c=pJ({item:e,validator:u});c?(c.height=e.bounds.height,c.width=e.bounds.width,o.push(c),e.setPlacement(c)):n&&a.push({item:e,validator:u})})),a.forEach((e=>{const{item:t,validator:n}=e,r=pJ({item:t,validator:n,force:!0});r&&(r.height=t.bounds.height,r.width=t.bounds.width,o.push(r),t.setPlacement(r))}))}var yJ={require:["chart","renderer"],defaultSettings:{settings:{orientation:"horizontal",rtl:!1,connect:!1,all:!1,label:()=>{},showLabel:()=>!0,pointValue:()=>{},majorValue:()=>{},target:{labelSpace:"label-space-component",point:"point-component",allPoints:[]},lineIndex:"line",insideStrategy:"edge"},style:{fontFamily:"QlikView Sans, sans-serif",fontSize:"12px",fill:"#333"}},preferredSize(){const e={edgeBleed:{top:0,right:0,left:0}},t=this.chart.component(this.settings.settings.target.labelSpace);if(!t||!t.rect)return e;const{orientation:n,rtl:r}=this.settings.settings,i="horizontal"===n;if(t.show(r)){const{size:n}=t.settings.settings;e.edgeBleed.top=i?n:0,e.edgeBleed[r?"left":"right"]=i?0:n}return e},render(){if(!this.chart.component(this.settings.settings.target.point))return[];const{allPoints:e}=this.settings.settings.target,t=e.length?e=>this.settings.settings.target.allPoints.includes(e.key):e=>e.key===this.settings.settings.target.point,n=this.chart.findShapes("circle").filter(t);if(!n.length)return[];const{settings:r}=this.settings,i="horizontal"===r.orientation,o=i?"x":"y";n.sort(((e,t)=>e.localBounds[o]-t.localBounds[o]));const a={label:r.label,pointValue:r.pointValue,majorValue:r.majorValue,lineIndex:r.lineIndex},{height:s,width:l,edgeBleed:u}=this.rect,c={height:s,width:l,edgeBleed:u,insideStrategy:r.insideStrategy},{style:d}=this,f=WK({nodes:n,extract:a,style:d,measureText:this.renderer.measureText,size:c,horizontal:i,rtl:r.rtl,showLabel:r.showLabel});return function({model:e}){e.getItems().sort(((e,t)=>e.extreme===t.extreme?0:e.extreme&&!t.extreme?-1:1))}({model:f}),mJ({model:f,size:c,all:r.all}),f.getItems().filter((e=>e.placement&&e.node.key===this.settings.settings.target.point)).map((e=>({type:"text",x:e.placement.x+e.placement.width/2,y:e.placement.y+e.labelMeasurements.height/2,fontSize:d.fontSize,fontFamily:d.fontFamily,fill:d.fill,text:a.label(e.node.data),baseline:"central",anchor:"middle"})))}},gJ={defaultSettings:{settings:{size:10}},preferredSize(){return this.settings.settings.size},render:()=>[]};var vJ={require:["resolver","symbol"],defaultSettings:{settings:{type:"max",primaryExtremum:()=>{},secondaryExtremum:()=>{},primarySeries:[],secondarySeries:[],orientation:"horizontal",rtl:!1,major:{scale:"major-scale"},markerOffset:1,size:10},style:{fill:"#999"}},preferredSize(){return this.settings.settings.size},render(){const{items:e=[]}=this.data;if(!e.length)return[];const{type:t,orientation:n,rtl:r,markerOffset:i,size:o,major:a,primarySeries:s,secondarySeries:l}=this.settings.settings,u=this.settings.settings.primaryExtremum(),c=this.settings.settings.secondaryExtremum(),d=s.length&&void 0!==u,f=l.length&&void 0!==c;if(!d&&!f)return[];const h=s.map((e=>e.ref)),p=l.map((e=>e.ref)),m=function({type:e,primaryExtremum:t,secondaryExtremum:n,primaryItems:r=[],secondaryItems:i=[],primarySeries:o=[],secondarySeries:a=[]}){const s=[];return[...o,...a].forEach((o=>{const a=o.isPrimary?t:n,l=o.isPrimary?r:i;s.push((({type:e,extremum:t,separateStacking:n,items:r})=>{const i="max"===e?e=>e>t:e=>e<t,o=n?e=>i(e.point.value<0?e.start.value:e.end.value):e=>i(e.end.value);return r.filter(o)})({type:e,extremum:a,items:l}))})),(({items:e})=>{const t=[],n=[];return e.forEach((e=>{const{value:r}=e.major;t[r]||(t[r]=!0,n.push(e))})),n})({items:s.reduce(((e,t)=>e.concat(t)),[])})}({type:t,primaryExtremum:u,secondaryExtremum:c,primaryItems:e.filter((e=>h.includes(e.end.source.field))),secondaryItems:e.filter((e=>p.includes(e.end.source.field))),primarySeries:s,secondarySeries:l});if(!m.length)return[];const y="horizontal"===n,g=this.rect[y?"width":"height"],v=this.resolver.resolve({data:{items:m},settings:{major:a},scaled:{major:g}}),b=("max"===t?90:-90)-(y?0:90)-(!y&&r?180:0),x=o/2*i,{fill:M}=this.settings.style;return v.items.map((e=>function({symbol:e,size:t,fill:n,startAngle:r,x:i,y:o,data:a}){return e({type:"n-polygon",show:!0,size:t,fill:n,stroke:"#205891",strokeWidth:0,sides:3,startAngle:r,width:.7,x:i,y:o,data:a})}({symbol:this.symbol,size:o,fill:M,startAngle:b,x:y?g*e.major:x,y:y?x:g*e.major,data:e.data})))}};function bJ({x:e,y:t,size:n,stroke:r,strokeWidth:i,fill:o}){return{type:"container",children:[{type:"line",stroke:r||o,strokeWidth:i,x1:e-n/2,y1:t,x2:e+n/2,y2:t},{type:"circle",strokeWidth:0,fill:o,cx:e,cy:t,r:.25*n}]}}function xJ({chart:e,seriesInfo:t}){const n={primary:{paths:[],map:{}},secondary:{paths:[],map:{}}},r=[...t.primary.map((e=>e.key)),...t.secondary.map((e=>e.key))];return e.findShapes("path").filter((e=>r.some((t=>t===e.key)))).reduce(((e,n)=>((t.primary.some((e=>e.key===n.key))?e.primary:e.secondary).paths.push(n),e)),n),{getLine:(e,t)=>{const r=t?n.primary:n.secondary;if(!r.map[e]){const[t]=r.paths.filter((t=>t.data&&t.data.typeIndex.value===e));r.map[e]=t}return r.map[e]}}}function MJ({brush:e}){const t=e.brush.values();return function({value:e}){return-1!==t.indexOf(e)}}function SJ({brush:e,chart:t}){const n=e.brush.ranges();if(!n.length)return!1;const r=t&&t.scale(Vo.SCALE.MAJOR),i=r&&r.max&&r.max(),o="qHyperCube/qDimensionInfo/0:numeric"===e.id?(e,t)=>t===i?e<=t:e<t:(e,t)=>e<=t;return function({value:e}){return n.some((t=>t.min<=e&&o(e,t.max)))}}function wJ({brush:e,selectionInfo:t,items:n,selectionValues:r,colorByData:i,chart:o}){const a=e.brushes();if(!a.length)return[];const s=a[0],{minorRange:l,legendRange:u,legendTap:c}=t,d=0===s.id.indexOf("qHyperCube/qMeasureInfo/")?"qHyperCube/qMeasureInfo/X":s.id;let f=[u?e=>e.color.value:r[d]].filter(Boolean);if(i&&l&&f.push((e=>e.color.value)),!i&&c&&(f=[e=>e.color.value]),!f.length)return[];const h=function({brush:e,chart:t}){return("value"===e.type?MJ:SJ)({brush:e,chart:t})}({brush:s,chart:o});return h?n.reduce(((e,t,n)=>(f.some((e=>h({value:e(t)})))&&e.push({item:t,index:n}),e)),[]):[]}function EJ({chart:e,selected:t,connection:n,gradient:r,fallback:i}){const o=e.scale(Vo.SCALE.COLOR),a=t.filter((e=>-1!==n.indexOf(e.index))).map((e=>e.item.end.value)),s=Math.min(...a),l=Math.max(...a),u=l-s,c=0===u?1:u,d=o.domain().map((e=>({color:o(Math.min(l,Math.max(s,e)))||i,offset:Math.min(1,Math.max(0,(e-s)/c))}))),f=d.map((e=>e.offset)),h=f.lastIndexOf(0),p=f.indexOf(1),m=d.slice(-1===h?0:h,-1===p?d.length:p+1);return{type:"gradient",x1:r.x1,x2:r.x2,y1:r.y1,y2:r.y2,stops:m}}function kJ({chart:e,selected:t,connection:n,gradient:r,fallback:i}){const o=e.scale(Vo.SCALE.COLOR),a=t.filter((e=>-1!==n.indexOf(e.index))).map((e=>e.item.end.value)),s=Math.min(...a),l=Math.max(...a)-s,u=0===l?1:l,c=o.domain(),d=[];for(let e=0;e<c.length-1;e++){const t=c[e],n=o(t)||i;d.push({color:n,offset:Math.min(1,Math.max(0,(t-s)/u))});const r=c[e+1];d.push({color:n,offset:Math.min(1,Math.max(0,(r-s)/u))})}const f=d.map((e=>e.offset)),h=f.lastIndexOf(0),p=f.indexOf(1),m=d.slice(-1===h?0:h,-1===p?d.length:p+1);return{type:"gradient",x1:r.x1,x2:r.x2,y1:r.y1,y2:r.y2,stops:m}}function CJ({property:e,chart:t,connection:n,attrs:r,colorSettings:i,colorByData:o,selected:a,hasMultipleMeasures:s,groupedByMeasure:l,itemsPerGroup:u,orientation:c,rtl:d}){const f=r[e];if("gradient"!==f.type)return f;const{type:h,nil:p}=i;if(s||!o)return function({chart:e,selected:t,connection:n,gradient:r,fallback:i,orientation:o,isColorCode:a,groupedByMeasure:s,itemsPerGroup:l,rtl:u}){const c=e.scale(Vo.SCALE.MAJOR),d=e.scale(Vo.SCALE.COLOR),f=s?e=>c([e,0])+c.bandwidth()*l/2:e=>c(e),h=t.filter((e=>-1!==n.indexOf(e.index))),p=("vertical"===o&&u?h.reverse():h).map((e=>e.item)),m=p.map((e=>f(e.major.value))),y=Math.min(...m),g=Math.max(...m)-y,v=0===g?1:g,b=m.map(((e,t)=>0===t?0:t===m.length-1?1:(e-y)/v)),x=[];for(let e=0;e<p.length;e++){const t=p[e],n=a?t.color.value:d(t.color.value)||i,r=b[e];x.push({color:n,offset:0===e?0:Math.max(0,x[x.length-1].offset)}),x.push({color:n,offset:e===p.length-1?1:Math.max(0,parseFloat((r+(b[e+1]-r)/2).toFixed(5)))})}return{type:"gradient",x1:r.x1,x2:r.x2,y1:r.y1,y2:r.y2,stops:x}}({chart:t,selected:a,connection:n,gradient:f,fallback:p,orientation:c,isColorCode:"color"===h,groupedByMeasure:l,itemsPerGroup:u,rtl:d});return("continuous"===h?EJ:kJ)({chart:t,selected:a,connection:n,gradient:f,fallback:p})}function OJ({chart:e,pathModel:t,colorSettings:n,colorByData:r,hasMultipleMeasures:i,groupedByMeasure:o,itemsPerGroup:a,orientation:s,lineKey:l,primary:u,selected:c,connections:d,rtl:f,count:h}){const p=t.getLine(l,u),{attrs:m}=p,y=function({d:e}){return e.replace("Z","").split(/(?=[LMC])/).map((e=>{const t=e.substring(0,1),n={letter:t,x:0,y:0,raw:e},r=e.substring(1).split(",");return"M"===t||"L"===t?([n.x]=r,[,n.y]=r):"C"===t&&([,,,,n.x]=r,[,,,,,n.y]=r),n}))}({d:m.d});return d.map((t=>function({chart:e,colorSettings:t,colorByData:n,hasMultipleMeasures:r,groupedByMeasure:i,itemsPerGroup:o,orientation:a,selected:s,connection:l,commands:u,attrs:c,rtl:d,count:f}){return{path:l.map(((e,t)=>{const n=u[e];return 0!==t||"M"===n.letter?n.raw:`M${n.x},${n.y}`})).join(""),attrs:c,stroke:CJ({property:"stroke",chart:e,connection:l,attrs:c,selected:s,colorSettings:t,colorByData:n,hasMultipleMeasures:r,groupedByMeasure:i,itemsPerGroup:o,orientation:a,rtl:d,count:f})}}({chart:e,colorSettings:n,colorByData:r,hasMultipleMeasures:i,groupedByMeasure:o,itemsPerGroup:a,orientation:s,selected:c,connection:t,commands:y,attrs:m,rtl:f,count:h})))}function TJ({chart:e,pathModel:t,seriesInfo:n,brush:r,selectionInfo:i,items:o,selectionValues:a,colorSettings:s,colorByData:l,hasMultipleMeasures:u,groupedByMeasure:c,itemsPerGroup:d,orientation:f,rtl:h}){const p=function({items:e,seriesInfo:t}){const n=e.reduce(((e,n,r)=>{const i=n.typeIndex.value;var o;return e[i]||(e[i]={key:i,items:[],index:r,measureIx:null===(o=n.colorMeasureIdx)||void 0===o?void 0:o.value,primary:t.primary.some((e=>e.typeIndex===i))}),e[i].items.push(n),e}),{});return Object.keys(n).map((e=>n[e])).sort(((e,t)=>e.index-t.index)).map((e=>({lineKey:e.key,items:e.items,primary:e.primary,measureIx:e.measureIx})))}({items:function({items:e,selectionInfo:t,seriesInfo:n}){return e.filter((e=>{if("NaN"===e.end.value||Number.isNaN(e.end.value))return!1;const{minorRange:r,minorRangePrimary:i}=t;return!r||(i?n.primary:n.secondary).some((t=>t.typeIndex===e.typeIndex.value))}))}({items:o,selectionInfo:i,seriesInfo:n}),seriesInfo:n}),{lines:m}=p.reduce(((n,o)=>{const p=wJ({brush:r,selectionInfo:i,items:o.items,selectionValues:a,colorByData:l,chart:e});if(p.length<2)return n;const m=function({selected:e}){return e.reduce(((e,t)=>{const{index:n}=t;if(e.length){const t=e[e.length-1];n===t[t.length-1]+1?t.push(n):e.push([n])}else e.push([n]);return e}),[]).filter((e=>e.length>1))}({selected:p});return m.length?(n.lines.push(...OJ({chart:e,pathModel:t,colorSettings:s(o.measureIx),colorByData:l(o.measureIx),hasMultipleMeasures:u,groupedByMeasure:c,itemsPerGroup:d,orientation:f,lineKey:o.lineKey,primary:o.primary,selected:p,connections:m,rtl:h,count:o.items.length})),n):n}),{lines:[]}),y=[];return m.forEach((e=>y.push({type:"path",d:e.path,stroke:e.stroke,strokeLinejoin:e.attrs["stroke-linejoin"],strokeWidth:e.attrs["stroke-width"],strokeDasharray:e.attrs["stroke-dasharray"],fill:"none"}))),y}var AJ={require:["chart","renderer"],defaultSettings:{settings:{seriesInfo:{primary:[],secondary:[]},selectionValues:{},colorSettings:void 0,colorByData:!1,isColorCode:!1,hasMultipleMeasures:!1,groupedByMeasure:!1,itemsPerGroup:1,orientation:"vertical",rtl:!1}},addListener(e,t){this.state.brush.addListener(e,t),this.state.listeners.push({type:e,fn:t})},removeListeners(){this.state.listeners.forEach((e=>this.state.brush.removeListener(e.type,e.fn))),this.state.listeners.length=0},created(){this.state={pathModel:xJ({chart:this.chart,seriesInfo:this.settings.settings.seriesInfo}),brush:this.chart.brush("selection"),listeners:[],selectionInfo:{minorRange:!1,minorRangePrimary:!1,legendRange:!1,legendTap:!1}}},mounted(){this.addListener("update",(()=>{this.state.selectionInfo=this.settings.settings.getSelectionInfo();const e=TJ({chart:this.chart,pathModel:this.state.pathModel,seriesInfo:this.settings.settings.seriesInfo,brush:this.state.brush,selectionInfo:this.state.selectionInfo,items:this.data.items,selectionValues:this.settings.settings.selectionValues,colorSettings:this.settings.settings.colorSettings,colorByData:this.settings.settings.colorByData,isColorCode:this.settings.settings.isColorCode,hasMultipleMeasures:this.settings.settings.hasMultipleMeasures,groupedByMeasure:this.settings.settings.groupedByMeasure,itemsPerGroup:this.settings.settings.itemsPerGroup,orientation:this.settings.settings.orientation,rtl:this.settings.settings.rtl});this.renderer.render(e)})),this.addListener("end",(()=>{this.renderer.render([])}))},render(){this.state.pathModel=xJ({chart:this.chart,seriesInfo:this.settings.settings.seriesInfo}),this.state.selectionInfo=this.settings.settings.getSelectionInfo();return TJ({chart:this.chart,pathModel:this.state.pathModel,seriesInfo:this.settings.settings.seriesInfo,brush:this.state.brush,selectionInfo:this.state.selectionInfo,items:this.data.items,selectionValues:this.settings.settings.selectionValues,colorSettings:this.settings.settings.colorSettings,colorByData:this.settings.settings.colorByData,isColorCode:this.settings.settings.isColorCode,hasMultipleMeasures:this.settings.settings.hasMultipleMeasures,groupedByMeasure:this.settings.settings.groupedByMeasure,itemsPerGroup:this.settings.settings.itemsPerGroup,orientation:this.settings.settings.orientation,rtl:this.settings.settings.rtl})},destroyed(){this.removeListeners()}};const NJ=()=>{const e=Eq();return e.use(SR),e.use(function(e){if("function"!=typeof e.interaction)return function(t){t.interaction("hammer",kR(e))};e.interaction("hammer",kR(Hammer))}(Dm)),e.use(iK),e.use(nK()),e.component("scrollbar",Nd),e.component("point-label",yJ),e.component("label-space",gJ),e.component("time-axis",im.picassoComponents.timeAxis),e.component("axis-overlay",im.picassoComponents.axisOverlay),e.component("reference-line-labels",Do),e.component("box-sliced-hat",pK),e.component("box-out-of-bounds",uK),e.component("data-out-of-bounds-marker",vJ),e.component("scroll-hint",Ii),e.component("brush-highlighter",AJ),e.scale("time",im.picassoScales.time),e.symbol("line-point",bJ),e},qJ="QlikView Sans, sans-serif";var DJ=[["object.comboChart","","fontFamily"],["object.comboChart","outOfRange","color","#999"],["object.comboChart","axis.title","color"],["object.comboChart","axis.title","fontSize","13px"],["object.comboChart","axis.title","fontFamily",qJ],["object.comboChart","axis.label.name","color","#595959"],["object.comboChart","axis.label.name","fontSize","12px"],["object.comboChart","axis.label.name","fontFamily",qJ],["object.comboChart","axis.line.major","color","#cccccc"],["object.comboChart","axis.line.minor","color","#e6e6e6"],["object.comboChart","label.value","fontFamily",qJ],["object.comboChart","label.value","fontSize","12px"],["object.comboChart","label.value","numFontSize","12px",e=>parseInt(e,10)],["object.comboChart","label.value","color","#595959"],[!1,"label.value","lightColor","#E6E6E6"],[!1,"label.value","darkColor","#595959"]];const RJ={line:"bar",circle:"circle",diamond:"diamond",triangle:"triangle",rect:"square"},IJ=e=>void 0===e.marker?RJ.circle:RJ[e.marker],_J=e=>void 0===e.markerFill||e.markerFill;function PJ({series:e,layoutService:t}){switch(Lh(e)){case Ho.MARKER:return(e=>({marker:IJ(e),fill:_J(e)}))(e);case Ho.LINE:return(e=>{const t=e.getLayoutValue("nullMode","gap");return{showAsGaps:"gap"===t,showAsConnections:"connect"===t,showAsZeros:"zero"===t}})(t);default:return{}}}function LJ(e=Uo,t){return t?e.axis===$o.PRIMARY:e.axis===$o.PRIMARY||Lh(e)===Ho.BAR}var jJ={exports:{}};var zJ={SEMVER_SPEC_VERSION:"2.0.0",MAX_LENGTH:256,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||9007199254740991,MAX_SAFE_COMPONENT_LENGTH:16};var FJ="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};!function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:n}=zJ,r=FJ,i=(t=e.exports={}).re=[],o=t.src=[],a=t.t={};let s=0;const l=(e,t,n)=>{const l=s++;r(l,t),a[e]=l,o[l]=t,i[l]=new RegExp(t,n?"g":void 0)};l("NUMERICIDENTIFIER","0|[1-9]\\d*"),l("NUMERICIDENTIFIERLOOSE","[0-9]+"),l("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),l("MAINVERSION",`(${o[a.NUMERICIDENTIFIER]})\\.(${o[a.NUMERICIDENTIFIER]})\\.(${o[a.NUMERICIDENTIFIER]})`),l("MAINVERSIONLOOSE",`(${o[a.NUMERICIDENTIFIERLOOSE]})\\.(${o[a.NUMERICIDENTIFIERLOOSE]})\\.(${o[a.NUMERICIDENTIFIERLOOSE]})`),l("PRERELEASEIDENTIFIER",`(?:${o[a.NUMERICIDENTIFIER]}|${o[a.NONNUMERICIDENTIFIER]})`),l("PRERELEASEIDENTIFIERLOOSE",`(?:${o[a.NUMERICIDENTIFIERLOOSE]}|${o[a.NONNUMERICIDENTIFIER]})`),l("PRERELEASE",`(?:-(${o[a.PRERELEASEIDENTIFIER]}(?:\\.${o[a.PRERELEASEIDENTIFIER]})*))`),l("PRERELEASELOOSE",`(?:-?(${o[a.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${o[a.PRERELEASEIDENTIFIERLOOSE]})*))`),l("BUILDIDENTIFIER","[0-9A-Za-z-]+"),l("BUILD",`(?:\\+(${o[a.BUILDIDENTIFIER]}(?:\\.${o[a.BUILDIDENTIFIER]})*))`),l("FULLPLAIN",`v?${o[a.MAINVERSION]}${o[a.PRERELEASE]}?${o[a.BUILD]}?`),l("FULL",`^${o[a.FULLPLAIN]}$`),l("LOOSEPLAIN",`[v=\\s]*${o[a.MAINVERSIONLOOSE]}${o[a.PRERELEASELOOSE]}?${o[a.BUILD]}?`),l("LOOSE",`^${o[a.LOOSEPLAIN]}$`),l("GTLT","((?:<|>)?=?)"),l("XRANGEIDENTIFIERLOOSE",o[a.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*"),l("XRANGEIDENTIFIER",o[a.NUMERICIDENTIFIER]+"|x|X|\\*"),l("XRANGEPLAIN",`[v=\\s]*(${o[a.XRANGEIDENTIFIER]})(?:\\.(${o[a.XRANGEIDENTIFIER]})(?:\\.(${o[a.XRANGEIDENTIFIER]})(?:${o[a.PRERELEASE]})?${o[a.BUILD]}?)?)?`),l("XRANGEPLAINLOOSE",`[v=\\s]*(${o[a.XRANGEIDENTIFIERLOOSE]})(?:\\.(${o[a.XRANGEIDENTIFIERLOOSE]})(?:\\.(${o[a.XRANGEIDENTIFIERLOOSE]})(?:${o[a.PRERELEASELOOSE]})?${o[a.BUILD]}?)?)?`),l("XRANGE",`^${o[a.GTLT]}\\s*${o[a.XRANGEPLAIN]}$`),l("XRANGELOOSE",`^${o[a.GTLT]}\\s*${o[a.XRANGEPLAINLOOSE]}$`),l("COERCE",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?(?:$|[^\\d])`),l("COERCERTL",o[a.COERCE],!0),l("LONETILDE","(?:~>?)"),l("TILDETRIM",`(\\s*)${o[a.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",l("TILDE",`^${o[a.LONETILDE]}${o[a.XRANGEPLAIN]}$`),l("TILDELOOSE",`^${o[a.LONETILDE]}${o[a.XRANGEPLAINLOOSE]}$`),l("LONECARET","(?:\\^)"),l("CARETTRIM",`(\\s*)${o[a.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",l("CARET",`^${o[a.LONECARET]}${o[a.XRANGEPLAIN]}$`),l("CARETLOOSE",`^${o[a.LONECARET]}${o[a.XRANGEPLAINLOOSE]}$`),l("COMPARATORLOOSE",`^${o[a.GTLT]}\\s*(${o[a.LOOSEPLAIN]})$|^$`),l("COMPARATOR",`^${o[a.GTLT]}\\s*(${o[a.FULLPLAIN]})$|^$`),l("COMPARATORTRIM",`(\\s*)${o[a.GTLT]}\\s*(${o[a.LOOSEPLAIN]}|${o[a.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",l("HYPHENRANGE",`^\\s*(${o[a.XRANGEPLAIN]})\\s+-\\s+(${o[a.XRANGEPLAIN]})\\s*$`),l("HYPHENRANGELOOSE",`^\\s*(${o[a.XRANGEPLAINLOOSE]})\\s+-\\s+(${o[a.XRANGEPLAINLOOSE]})\\s*$`),l("STAR","(<|>)?=?\\s*\\*"),l("GTE0","^\\s*>=\\s*0.0.0\\s*$"),l("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")}(jJ,jJ.exports);const BJ=["includePrerelease","loose","rtl"];var VJ=e=>e?"object"!=typeof e?{loose:!0}:BJ.filter((t=>e[t])).reduce(((e,t)=>(e[t]=!0,e)),{}):{};const HJ=/^[0-9]+$/,$J=(e,t)=>{const n=HJ.test(e),r=HJ.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e<t?-1:1};var UJ={compareIdentifiers:$J,rcompareIdentifiers:(e,t)=>$J(t,e)};const WJ=FJ,{MAX_LENGTH:YJ,MAX_SAFE_INTEGER:XJ}=zJ,{re:GJ,t:KJ}=jJ.exports,JJ=VJ,{compareIdentifiers:ZJ}=UJ;class QJ{constructor(e,t){if(t=JJ(t),e instanceof QJ){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if("string"!=typeof e)throw new TypeError("Invalid Version: "+e);if(e.length>YJ)throw new TypeError(`version is longer than ${YJ} characters`);WJ("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const n=e.trim().match(t.loose?GJ[KJ.LOOSE]:GJ[KJ.FULL]);if(!n)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>XJ||this.major<0)throw new TypeError("Invalid major version");if(this.minor>XJ||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>XJ||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t<XJ)return t}return e})):this.prerelease=[],this.build=n[5]?n[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version}toString(){return this.version}compare(e){if(WJ("SemVer.compare",this.version,this.options,e),!(e instanceof QJ)){if("string"==typeof e&&e===this.version)return 0;e=new QJ(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof QJ||(e=new QJ(e,this.options)),ZJ(this.major,e.major)||ZJ(this.minor,e.minor)||ZJ(this.patch,e.patch)}comparePre(e){if(e instanceof QJ||(e=new QJ(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{const n=this.prerelease[t],r=e.prerelease[t];if(WJ("prerelease compare",t,n,r),void 0===n&&void 0===r)return 0;if(void 0===r)return 1;if(void 0===n)return-1;if(n!==r)return ZJ(n,r)}while(++t)}compareBuild(e){e instanceof QJ||(e=new QJ(e,this.options));let t=0;do{const n=this.build[t],r=e.build[t];if(WJ("prerelease compare",t,n,r),void 0===n&&void 0===r)return 0;if(void 0===r)return 1;if(void 0===n)return-1;if(n!==r)return ZJ(n,r)}while(++t)}inc(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t),this.inc("pre",t);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":if(0===this.prerelease.length)this.prerelease=[0];else{let e=this.prerelease.length;for(;--e>=0;)"number"==typeof this.prerelease[e]&&(this.prerelease[e]++,e=-2);-1===e&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error("invalid increment argument: "+e)}return this.format(),this.raw=this.version,this}}var eZ=QJ;const{MAX_LENGTH:tZ}=zJ,{re:nZ,t:rZ}=jJ.exports,iZ=eZ,oZ=VJ;var aZ=(e,t)=>{if(t=oZ(t),e instanceof iZ)return e;if("string"!=typeof e)return null;if(e.length>tZ)return null;if(!(t.loose?nZ[rZ.LOOSE]:nZ[rZ.FULL]).test(e))return null;try{return new iZ(e,t)}catch(e){return null}};const sZ=aZ;var lZ=(e,t)=>{const n=sZ(e,t);return n?n.version:null};const uZ=aZ;var cZ=(e,t)=>{const n=uZ(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null};const dZ=eZ;var fZ=(e,t,n,r)=>{"string"==typeof n&&(r=n,n=void 0);try{return new dZ(e,n).inc(t,r).version}catch(e){return null}};const hZ=eZ;var pZ=(e,t,n)=>new hZ(e,n).compare(new hZ(t,n));const mZ=pZ;var yZ=(e,t,n)=>0===mZ(e,t,n);const gZ=aZ,vZ=yZ;var bZ=(e,t)=>{if(vZ(e,t))return null;{const n=gZ(e),r=gZ(t),i=n.prerelease.length||r.prerelease.length,o=i?"pre":"",a=i?"prerelease":"";for(const e in n)if(("major"===e||"minor"===e||"patch"===e)&&n[e]!==r[e])return o+e;return a}};const xZ=eZ;var MZ=(e,t)=>new xZ(e,t).major;const SZ=eZ;var wZ=(e,t)=>new SZ(e,t).minor;const EZ=eZ;var kZ=(e,t)=>new EZ(e,t).patch;const CZ=aZ;var OZ=(e,t)=>{const n=CZ(e,t);return n&&n.prerelease.length?n.prerelease:null};const TZ=pZ;var AZ=(e,t,n)=>TZ(t,e,n);const NZ=pZ;var qZ=(e,t)=>NZ(e,t,!0);const DZ=eZ;var RZ=(e,t,n)=>{const r=new DZ(e,n),i=new DZ(t,n);return r.compare(i)||r.compareBuild(i)};const IZ=RZ;var _Z=(e,t)=>e.sort(((e,n)=>IZ(e,n,t)));const PZ=RZ;var LZ=(e,t)=>e.sort(((e,n)=>PZ(n,e,t)));const jZ=pZ;var zZ=(e,t,n)=>jZ(e,t,n)>0;const FZ=pZ;var BZ=(e,t,n)=>FZ(e,t,n)<0;const VZ=pZ;var HZ=(e,t,n)=>0!==VZ(e,t,n);const $Z=pZ;var UZ=(e,t,n)=>$Z(e,t,n)>=0;const WZ=pZ;var YZ=(e,t,n)=>WZ(e,t,n)<=0;const XZ=yZ,GZ=HZ,KZ=zZ,JZ=UZ,ZZ=BZ,QZ=YZ;var eQ=(e,t,n,r)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return XZ(e,n,r);case"!=":return GZ(e,n,r);case">":return KZ(e,n,r);case">=":return JZ(e,n,r);case"<":return ZZ(e,n,r);case"<=":return QZ(e,n,r);default:throw new TypeError("Invalid operator: "+t)}};const tQ=eZ,nQ=aZ,{re:rQ,t:iQ}=jJ.exports;var oQ=(e,t)=>{if(e instanceof tQ)return e;if("number"==typeof e&&(e=String(e)),"string"!=typeof e)return null;let n=null;if((t=t||{}).rtl){let t;for(;(t=rQ[iQ.COERCERTL].exec(e))&&(!n||n.index+n[0].length!==e.length);)n&&t.index+t[0].length===n.index+n[0].length||(n=t),rQ[iQ.COERCERTL].lastIndex=t.index+t[1].length+t[2].length;rQ[iQ.COERCERTL].lastIndex=-1}else n=e.match(rQ[iQ.COERCE]);return null===n?null:nQ(`${n[2]}.${n[3]||"0"}.${n[4]||"0"}`,t)},aQ=sQ;function sQ(e){var t=this;if(t instanceof sQ||(t=new sQ),t.tail=null,t.head=null,t.length=0,e&&"function"==typeof e.forEach)e.forEach((function(e){t.push(e)}));else if(arguments.length>0)for(var n=0,r=arguments.length;n<r;n++)t.push(arguments[n]);return t}function lQ(e,t,n){var r=t===e.head?new dQ(n,null,t,e):new dQ(n,t,t.next,e);return null===r.next&&(e.tail=r),null===r.prev&&(e.head=r),e.length++,r}function uQ(e,t){e.tail=new dQ(t,e.tail,null,e),e.head||(e.head=e.tail),e.length++}function cQ(e,t){e.head=new dQ(t,null,e.head,e),e.tail||(e.tail=e.head),e.length++}function dQ(e,t,n,r){if(!(this instanceof dQ))return new dQ(e,t,n,r);this.list=r,this.value=e,t?(t.next=this,this.prev=t):this.prev=null,n?(n.prev=this,this.next=n):this.next=null}sQ.Node=dQ,sQ.create=sQ,sQ.prototype.removeNode=function(e){if(e.list!==this)throw new Error("removing node which does not belong to this list");var t=e.next,n=e.prev;return t&&(t.prev=n),n&&(n.next=t),e===this.head&&(this.head=t),e===this.tail&&(this.tail=n),e.list.length--,e.next=null,e.prev=null,e.list=null,t},sQ.prototype.unshiftNode=function(e){if(e!==this.head){e.list&&e.list.removeNode(e);var t=this.head;e.list=this,e.next=t,t&&(t.prev=e),this.head=e,this.tail||(this.tail=e),this.length++}},sQ.prototype.pushNode=function(e){if(e!==this.tail){e.list&&e.list.removeNode(e);var t=this.tail;e.list=this,e.prev=t,t&&(t.next=e),this.tail=e,this.head||(this.head=e),this.length++}},sQ.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++)uQ(this,arguments[e]);return this.length},sQ.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++)cQ(this,arguments[e]);return this.length},sQ.prototype.pop=function(){if(this.tail){var e=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,e}},sQ.prototype.shift=function(){if(this.head){var e=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,e}},sQ.prototype.forEach=function(e,t){t=t||this;for(var n=this.head,r=0;null!==n;r++)e.call(t,n.value,r,this),n=n.next},sQ.prototype.forEachReverse=function(e,t){t=t||this;for(var n=this.tail,r=this.length-1;null!==n;r--)e.call(t,n.value,r,this),n=n.prev},sQ.prototype.get=function(e){for(var t=0,n=this.head;null!==n&&t<e;t++)n=n.next;if(t===e&&null!==n)return n.value},sQ.prototype.getReverse=function(e){for(var t=0,n=this.tail;null!==n&&t<e;t++)n=n.prev;if(t===e&&null!==n)return n.value},sQ.prototype.map=function(e,t){t=t||this;for(var n=new sQ,r=this.head;null!==r;)n.push(e.call(t,r.value,this)),r=r.next;return n},sQ.prototype.mapReverse=function(e,t){t=t||this;for(var n=new sQ,r=this.tail;null!==r;)n.push(e.call(t,r.value,this)),r=r.prev;return n},sQ.prototype.reduce=function(e,t){var n,r=this.head;if(arguments.length>1)n=t;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");r=this.head.next,n=this.head.value}for(var i=0;null!==r;i++)n=e(n,r.value,i),r=r.next;return n},sQ.prototype.reduceReverse=function(e,t){var n,r=this.tail;if(arguments.length>1)n=t;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");r=this.tail.prev,n=this.tail.value}for(var i=this.length-1;null!==r;i--)n=e(n,r.value,i),r=r.prev;return n},sQ.prototype.toArray=function(){for(var e=new Array(this.length),t=0,n=this.head;null!==n;t++)e[t]=n.value,n=n.next;return e},sQ.prototype.toArrayReverse=function(){for(var e=new Array(this.length),t=0,n=this.tail;null!==n;t++)e[t]=n.value,n=n.prev;return e},sQ.prototype.slice=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var n=new sQ;if(t<e||t<0)return n;e<0&&(e=0),t>this.length&&(t=this.length);for(var r=0,i=this.head;null!==i&&r<e;r++)i=i.next;for(;null!==i&&r<t;r++,i=i.next)n.push(i.value);return n},sQ.prototype.sliceReverse=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var n=new sQ;if(t<e||t<0)return n;e<0&&(e=0),t>this.length&&(t=this.length);for(var r=this.length,i=this.tail;null!==i&&r>t;r--)i=i.prev;for(;null!==i&&r>e;r--,i=i.prev)n.push(i.value);return n},sQ.prototype.splice=function(e,t,...n){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var r=0,i=this.head;null!==i&&r<e;r++)i=i.next;var o=[];for(r=0;i&&r<t;r++)o.push(i.value),i=this.removeNode(i);null===i&&(i=this.tail),i!==this.head&&i!==this.tail&&(i=i.prev);for(r=0;r<n.length;r++)i=lQ(this,i,n[r]);return o},sQ.prototype.reverse=function(){for(var e=this.head,t=this.tail,n=e;null!==n;n=n.prev){var r=n.prev;n.prev=n.next,n.next=r}return this.head=t,this.tail=e,this};try{!function(e){e.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}(sQ)}catch(Wu){}const fQ=aQ,hQ=Symbol("max"),pQ=Symbol("length"),mQ=Symbol("lengthCalculator"),yQ=Symbol("allowStale"),gQ=Symbol("maxAge"),vQ=Symbol("dispose"),bQ=Symbol("noDisposeOnSet"),xQ=Symbol("lruList"),MQ=Symbol("cache"),SQ=Symbol("updateAgeOnGet"),wQ=()=>1;const EQ=(e,t,n)=>{const r=e[MQ].get(t);if(r){const t=r.value;if(kQ(e,t)){if(OQ(e,r),!e[yQ])return}else n&&(e[SQ]&&(r.value.now=Date.now()),e[xQ].unshiftNode(r));return t.value}},kQ=(e,t)=>{if(!t||!t.maxAge&&!e[gQ])return!1;const n=Date.now()-t.now;return t.maxAge?n>t.maxAge:e[gQ]&&n>e[gQ]},CQ=e=>{if(e[pQ]>e[hQ])for(let t=e[xQ].tail;e[pQ]>e[hQ]&&null!==t;){const n=t.prev;OQ(e,t),t=n}},OQ=(e,t)=>{if(t){const n=t.value;e[vQ]&&e[vQ](n.key,n.value),e[pQ]-=n.length,e[MQ].delete(n.key),e[xQ].removeNode(t)}};class TQ{constructor(e,t,n,r,i){this.key=e,this.value=t,this.length=n,this.now=r,this.maxAge=i||0}}const AQ=(e,t,n,r)=>{let i=n.value;kQ(e,i)&&(OQ(e,n),e[yQ]||(i=void 0)),i&&t.call(r,i.value,i.key,e)};var NQ=class{constructor(e){if("number"==typeof e&&(e={max:e}),e||(e={}),e.max&&("number"!=typeof e.max||e.max<0))throw new TypeError("max must be a non-negative number");this[hQ]=e.max||1/0;const t=e.length||wQ;if(this[mQ]="function"!=typeof t?wQ:t,this[yQ]=e.stale||!1,e.maxAge&&"number"!=typeof e.maxAge)throw new TypeError("maxAge must be a number");this[gQ]=e.maxAge||0,this[vQ]=e.dispose,this[bQ]=e.noDisposeOnSet||!1,this[SQ]=e.updateAgeOnGet||!1,this.reset()}set max(e){if("number"!=typeof e||e<0)throw new TypeError("max must be a non-negative number");this[hQ]=e||1/0,CQ(this)}get max(){return this[hQ]}set allowStale(e){this[yQ]=!!e}get allowStale(){return this[yQ]}set maxAge(e){if("number"!=typeof e)throw new TypeError("maxAge must be a non-negative number");this[gQ]=e,CQ(this)}get maxAge(){return this[gQ]}set lengthCalculator(e){"function"!=typeof e&&(e=wQ),e!==this[mQ]&&(this[mQ]=e,this[pQ]=0,this[xQ].forEach((e=>{e.length=this[mQ](e.value,e.key),this[pQ]+=e.length}))),CQ(this)}get lengthCalculator(){return this[mQ]}get length(){return this[pQ]}get itemCount(){return this[xQ].length}rforEach(e,t){t=t||this;for(let n=this[xQ].tail;null!==n;){const r=n.prev;AQ(this,e,n,t),n=r}}forEach(e,t){t=t||this;for(let n=this[xQ].head;null!==n;){const r=n.next;AQ(this,e,n,t),n=r}}keys(){return this[xQ].toArray().map((e=>e.key))}values(){return this[xQ].toArray().map((e=>e.value))}reset(){this[vQ]&&this[xQ]&&this[xQ].length&&this[xQ].forEach((e=>this[vQ](e.key,e.value))),this[MQ]=new Map,this[xQ]=new fQ,this[pQ]=0}dump(){return this[xQ].map((e=>!kQ(this,e)&&{k:e.key,v:e.value,e:e.now+(e.maxAge||0)})).toArray().filter((e=>e))}dumpLru(){return this[xQ]}set(e,t,n){if((n=n||this[gQ])&&"number"!=typeof n)throw new TypeError("maxAge must be a number");const r=n?Date.now():0,i=this[mQ](t,e);if(this[MQ].has(e)){if(i>this[hQ])return OQ(this,this[MQ].get(e)),!1;const o=this[MQ].get(e).value;return this[vQ]&&(this[bQ]||this[vQ](e,o.value)),o.now=r,o.maxAge=n,o.value=t,this[pQ]+=i-o.length,o.length=i,this.get(e),CQ(this),!0}const o=new TQ(e,t,i,r,n);return o.length>this[hQ]?(this[vQ]&&this[vQ](e,t),!1):(this[pQ]+=o.length,this[xQ].unshift(o),this[MQ].set(e,this[xQ].head),CQ(this),!0)}has(e){if(!this[MQ].has(e))return!1;const t=this[MQ].get(e).value;return!kQ(this,t)}get(e){return EQ(this,e,!0)}peek(e){return EQ(this,e,!1)}pop(){const e=this[xQ].tail;return e?(OQ(this,e),e.value):null}del(e){OQ(this,this[MQ].get(e))}load(e){this.reset();const t=Date.now();for(let n=e.length-1;n>=0;n--){const r=e[n],i=r.e||0;if(0===i)this.set(r.k,r.v);else{const e=i-t;e>0&&this.set(r.k,r.v,e)}}}prune(){this[MQ].forEach(((e,t)=>EQ(this,t,!1)))}};class qQ{constructor(e,t){if(t=IQ(t),e instanceof qQ)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new qQ(e.raw,t);if(e instanceof _Q)return this.raw=e.value,this.set=[[e]],this.format(),this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e,this.set=e.split(/\s*\|\|\s*/).map((e=>this.parseRange(e.trim()))).filter((e=>e.length)),!this.set.length)throw new TypeError("Invalid SemVer Range: "+e);if(this.set.length>1){const e=this.set[0];if(this.set=this.set.filter((e=>!HQ(e[0]))),0===this.set.length)this.set=[e];else if(this.set.length>1)for(const e of this.set)if(1===e.length&&$Q(e[0])){this.set=[e];break}}this.format()}format(){return this.range=this.set.map((e=>e.join(" ").trim())).join("||").trim(),this.range}toString(){return this.range}parseRange(e){e=e.trim();const t=`parseRange:${Object.keys(this.options).join(",")}:${e}`,n=RQ.get(t);if(n)return n;const r=this.options.loose,i=r?jQ[zQ.HYPHENRANGELOOSE]:jQ[zQ.HYPHENRANGE];e=e.replace(i,n0(this.options.includePrerelease)),PQ("hyphen replace",e),e=e.replace(jQ[zQ.COMPARATORTRIM],FQ),PQ("comparator trim",e,jQ[zQ.COMPARATORTRIM]),e=(e=(e=e.replace(jQ[zQ.TILDETRIM],BQ)).replace(jQ[zQ.CARETTRIM],VQ)).split(/\s+/).join(" ");const o=r?jQ[zQ.COMPARATORLOOSE]:jQ[zQ.COMPARATOR],a=e.split(" ").map((e=>WQ(e,this.options))).join(" ").split(/\s+/).map((e=>t0(e,this.options))).filter(this.options.loose?e=>!!e.match(o):()=>!0).map((e=>new _Q(e,this.options)));a.length;const s=new Map;for(const e of a){if(HQ(e))return[e];s.set(e.value,e)}s.size>1&&s.has("")&&s.delete("");const l=[...s.values()];return RQ.set(t,l),l}intersects(e,t){if(!(e instanceof qQ))throw new TypeError("a Range is required");return this.set.some((n=>UQ(n,t)&&e.set.some((e=>UQ(e,t)&&n.every((n=>e.every((e=>n.intersects(e,t)))))))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new LQ(e,this.options)}catch(e){return!1}for(let t=0;t<this.set.length;t++)if(r0(this.set[t],e,this.options))return!0;return!1}}var DQ=qQ;const RQ=new NQ({max:1e3}),IQ=VJ,_Q=a0,PQ=FJ,LQ=eZ,{re:jQ,t:zQ,comparatorTrimReplace:FQ,tildeTrimReplace:BQ,caretTrimReplace:VQ}=jJ.exports,HQ=e=>"<0.0.0-0"===e.value,$Q=e=>""===e.value,UQ=(e,t)=>{let n=!0;const r=e.slice();let i=r.pop();for(;n&&r.length;)n=r.every((e=>i.intersects(e,t))),i=r.pop();return n},WQ=(e,t)=>(PQ("comp",e,t),e=KQ(e,t),PQ("caret",e),e=XQ(e,t),PQ("tildes",e),e=ZQ(e,t),PQ("xrange",e),e=e0(e,t),PQ("stars",e),e),YQ=e=>!e||"x"===e.toLowerCase()||"*"===e,XQ=(e,t)=>e.trim().split(/\s+/).map((e=>GQ(e,t))).join(" "),GQ=(e,t)=>{const n=t.loose?jQ[zQ.TILDELOOSE]:jQ[zQ.TILDE];return e.replace(n,((t,n,r,i,o)=>{let a;return PQ("tilde",e,t,n,r,i,o),YQ(n)?a="":YQ(r)?a=`>=${n}.0.0 <${+n+1}.0.0-0`:YQ(i)?a=`>=${n}.${r}.0 <${n}.${+r+1}.0-0`:o?(PQ("replaceTilde pr",o),a=`>=${n}.${r}.${i}-${o} <${n}.${+r+1}.0-0`):a=`>=${n}.${r}.${i} <${n}.${+r+1}.0-0`,PQ("tilde return",a),a}))},KQ=(e,t)=>e.trim().split(/\s+/).map((e=>JQ(e,t))).join(" "),JQ=(e,t)=>{PQ("caret",e,t);const n=t.loose?jQ[zQ.CARETLOOSE]:jQ[zQ.CARET],r=t.includePrerelease?"-0":"";return e.replace(n,((t,n,i,o,a)=>{let s;return PQ("caret",e,t,n,i,o,a),YQ(n)?s="":YQ(i)?s=`>=${n}.0.0${r} <${+n+1}.0.0-0`:YQ(o)?s="0"===n?`>=${n}.${i}.0${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.0${r} <${+n+1}.0.0-0`:a?(PQ("replaceCaret pr",a),s="0"===n?"0"===i?`>=${n}.${i}.${o}-${a} <${n}.${i}.${+o+1}-0`:`>=${n}.${i}.${o}-${a} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${o}-${a} <${+n+1}.0.0-0`):(PQ("no pr"),s="0"===n?"0"===i?`>=${n}.${i}.${o}${r} <${n}.${i}.${+o+1}-0`:`>=${n}.${i}.${o}${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${o} <${+n+1}.0.0-0`),PQ("caret return",s),s}))},ZQ=(e,t)=>(PQ("replaceXRanges",e,t),e.split(/\s+/).map((e=>QQ(e,t))).join(" ")),QQ=(e,t)=>{e=e.trim();const n=t.loose?jQ[zQ.XRANGELOOSE]:jQ[zQ.XRANGE];return e.replace(n,((n,r,i,o,a,s)=>{PQ("xRange",e,n,r,i,o,a,s);const l=YQ(i),u=l||YQ(o),c=u||YQ(a),d=c;return"="===r&&d&&(r=""),s=t.includePrerelease?"-0":"",l?n=">"===r||"<"===r?"<0.0.0-0":"*":r&&d?(u&&(o=0),a=0,">"===r?(r=">=",u?(i=+i+1,o=0,a=0):(o=+o+1,a=0)):"<="===r&&(r="<",u?i=+i+1:o=+o+1),"<"===r&&(s="-0"),n=`${r+i}.${o}.${a}${s}`):u?n=`>=${i}.0.0${s} <${+i+1}.0.0-0`:c&&(n=`>=${i}.${o}.0${s} <${i}.${+o+1}.0-0`),PQ("xRange return",n),n}))},e0=(e,t)=>(PQ("replaceStars",e,t),e.trim().replace(jQ[zQ.STAR],"")),t0=(e,t)=>(PQ("replaceGTE0",e,t),e.trim().replace(jQ[t.includePrerelease?zQ.GTE0PRE:zQ.GTE0],"")),n0=e=>(t,n,r,i,o,a,s,l,u,c,d,f,h)=>`${n=YQ(r)?"":YQ(i)?`>=${r}.0.0${e?"-0":""}`:YQ(o)?`>=${r}.${i}.0${e?"-0":""}`:a?">="+n:`>=${n}${e?"-0":""}`} ${l=YQ(u)?"":YQ(c)?`<${+u+1}.0.0-0`:YQ(d)?`<${u}.${+c+1}.0-0`:f?`<=${u}.${c}.${d}-${f}`:e?`<${u}.${c}.${+d+1}-0`:"<="+l}`.trim(),r0=(e,t,n)=>{for(let n=0;n<e.length;n++)if(!e[n].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(let n=0;n<e.length;n++)if(PQ(e[n].semver),e[n].semver!==_Q.ANY&&e[n].semver.prerelease.length>0){const r=e[n].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0},i0=Symbol("SemVer ANY");class o0{static get ANY(){return i0}constructor(e,t){if(t=s0(t),e instanceof o0){if(e.loose===!!t.loose)return e;e=e.value}d0("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===i0?this.value="":this.value=this.operator+this.semver.version,d0("comp",this)}parse(e){const t=this.options.loose?l0[u0.COMPARATORLOOSE]:l0[u0.COMPARATOR],n=e.match(t);if(!n)throw new TypeError("Invalid comparator: "+e);this.operator=void 0!==n[1]?n[1]:"","="===this.operator&&(this.operator=""),n[2]?this.semver=new f0(n[2],this.options.loose):this.semver=i0}toString(){return this.value}test(e){if(d0("Comparator.test",e,this.options.loose),this.semver===i0||e===i0)return!0;if("string"==typeof e)try{e=new f0(e,this.options)}catch(e){return!1}return c0(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof o0))throw new TypeError("a Comparator is required");if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return""===this.value||new h0(e.value,t).test(this.value);if(""===e.operator)return""===e.value||new h0(this.value,t).test(e.semver);const n=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),r=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),i=this.semver.version===e.semver.version,o=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),a=c0(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),s=c0(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return n||r||i&&o||a||s}}var a0=o0;const s0=VJ,{re:l0,t:u0}=jJ.exports,c0=eQ,d0=FJ,f0=eZ,h0=DQ,p0=DQ;var m0=(e,t,n)=>{try{t=new p0(t,n)}catch(e){return!1}return t.test(e)};const y0=DQ;var g0=(e,t)=>new y0(e,t).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")));const v0=eZ,b0=DQ;var x0=(e,t,n)=>{let r=null,i=null,o=null;try{o=new b0(t,n)}catch(e){return null}return e.forEach((e=>{o.test(e)&&(r&&-1!==i.compare(e)||(r=e,i=new v0(r,n)))})),r};const M0=eZ,S0=DQ;var w0=(e,t,n)=>{let r=null,i=null,o=null;try{o=new S0(t,n)}catch(e){return null}return e.forEach((e=>{o.test(e)&&(r&&1!==i.compare(e)||(r=e,i=new M0(r,n)))})),r};const E0=eZ,k0=DQ,C0=zZ;var O0=(e,t)=>{e=new k0(e,t);let n=new E0("0.0.0");if(e.test(n))return n;if(n=new E0("0.0.0-0"),e.test(n))return n;n=null;for(let t=0;t<e.set.length;++t){const r=e.set[t];let i=null;r.forEach((e=>{const t=new E0(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":i&&!C0(t,i)||(i=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}})),!i||n&&!C0(n,i)||(n=i)}return n&&e.test(n)?n:null};const T0=DQ;var A0=(e,t)=>{try{return new T0(e,t).range||"*"}catch(e){return null}};const N0=eZ,q0=a0,{ANY:D0}=q0,R0=DQ,I0=m0,_0=zZ,P0=BZ,L0=YZ,j0=UZ;var z0=(e,t,n,r)=>{let i,o,a,s,l;switch(e=new N0(e,r),t=new R0(t,r),n){case">":i=_0,o=L0,a=P0,s=">",l=">=";break;case"<":i=P0,o=j0,a=_0,s="<",l="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(I0(e,t,r))return!1;for(let n=0;n<t.set.length;++n){const u=t.set[n];let c=null,d=null;if(u.forEach((e=>{e.semver===D0&&(e=new q0(">=0.0.0")),c=c||e,d=d||e,i(e.semver,c.semver,r)?c=e:a(e.semver,d.semver,r)&&(d=e)})),c.operator===s||c.operator===l)return!1;if((!d.operator||d.operator===s)&&o(e,d.semver))return!1;if(d.operator===l&&a(e,d.semver))return!1}return!0};const F0=z0;var B0=(e,t,n)=>F0(e,t,">",n);const V0=z0;var H0=(e,t,n)=>V0(e,t,"<",n);const $0=DQ;var U0=(e,t,n)=>(e=new $0(e,n),t=new $0(t,n),e.intersects(t));const W0=m0,Y0=pZ;const X0=DQ,G0=a0,{ANY:K0}=G0,J0=m0,Z0=pZ,Q0=(e,t,n)=>{if(e===t)return!0;if(1===e.length&&e[0].semver===K0){if(1===t.length&&t[0].semver===K0)return!0;e=n.includePrerelease?[new G0(">=0.0.0-0")]:[new G0(">=0.0.0")]}if(1===t.length&&t[0].semver===K0){if(n.includePrerelease)return!0;t=[new G0(">=0.0.0")]}const r=new Set;let i,o,a,s,l,u,c;for(const t of e)">"===t.operator||">="===t.operator?i=e1(i,t,n):"<"===t.operator||"<="===t.operator?o=t1(o,t,n):r.add(t.semver);if(r.size>1)return null;if(i&&o){if(a=Z0(i.semver,o.semver,n),a>0)return null;if(0===a&&(">="!==i.operator||"<="!==o.operator))return null}for(const e of r){if(i&&!J0(e,String(i),n))return null;if(o&&!J0(e,String(o),n))return null;for(const r of t)if(!J0(e,String(r),n))return!1;return!0}let d=!(!o||n.includePrerelease||!o.semver.prerelease.length)&&o.semver,f=!(!i||n.includePrerelease||!i.semver.prerelease.length)&&i.semver;d&&1===d.prerelease.length&&"<"===o.operator&&0===d.prerelease[0]&&(d=!1);for(const e of t){if(c=c||">"===e.operator||">="===e.operator,u=u||"<"===e.operator||"<="===e.operator,i)if(f&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===f.major&&e.semver.minor===f.minor&&e.semver.patch===f.patch&&(f=!1),">"===e.operator||">="===e.operator){if(s=e1(i,e,n),s===e&&s!==i)return!1}else if(">="===i.operator&&!J0(i.semver,String(e),n))return!1;if(o)if(d&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===d.major&&e.semver.minor===d.minor&&e.semver.patch===d.patch&&(d=!1),"<"===e.operator||"<="===e.operator){if(l=t1(o,e,n),l===e&&l!==o)return!1}else if("<="===o.operator&&!J0(o.semver,String(e),n))return!1;if(!e.operator&&(o||i)&&0!==a)return!1}return!(i&&u&&!o&&0!==a)&&(!(o&&c&&!i&&0!==a)&&(!f&&!d))},e1=(e,t,n)=>{if(!e)return t;const r=Z0(e.semver,t.semver,n);return r>0?e:r<0||">"===t.operator&&">="===e.operator?t:e},t1=(e,t,n)=>{if(!e)return t;const r=Z0(e.semver,t.semver,n);return r<0?e:r>0||"<"===t.operator&&"<="===e.operator?t:e};var n1=(e,t,n={})=>{if(e===t)return!0;e=new X0(e,n),t=new X0(t,n);let r=!1;e:for(const i of e.set){for(const e of t.set){const t=Q0(i,e,n);if(r=r||null!==t,t)continue e}if(r)return!1}return!0};const r1=jJ.exports;var i1={re:r1.re,src:r1.src,tokens:r1.t,SEMVER_SPEC_VERSION:zJ.SEMVER_SPEC_VERSION,SemVer:eZ,compareIdentifiers:UJ.compareIdentifiers,rcompareIdentifiers:UJ.rcompareIdentifiers,parse:aZ,valid:lZ,clean:cZ,inc:fZ,diff:bZ,major:MZ,minor:wZ,patch:kZ,prerelease:OZ,compare:pZ,rcompare:AZ,compareLoose:qZ,compareBuild:RZ,sort:_Z,rsort:LZ,gt:zZ,lt:BZ,eq:yZ,neq:HZ,gte:UZ,lte:YZ,cmp:eQ,coerce:oQ,Comparator:a0,Range:DQ,satisfies:m0,toComparators:g0,maxSatisfying:x0,minSatisfying:w0,minVersion:O0,validRange:A0,outside:z0,gtr:B0,ltr:H0,intersects:U0,simplifyRange:(e,t,n)=>{const r=[];let i=null,o=null;const a=e.sort(((e,t)=>Y0(e,t,n)));for(const e of a){W0(e,t,n)?(o=e,i||(i=e)):(o&&r.push([i,o]),o=null,i=null)}i&&r.push([i,null]);const s=[];for(const[e,t]of r)e===t?s.push(e):t||e!==a[0]?t?e===a[0]?s.push("<="+t):s.push(`${e} - ${t}`):s.push(">="+e):s.push("*");const l=s.join(" || "),u="string"==typeof t.raw?t.raw:String(t);return l.length<u.length?l:t},subset:n1},o1="0.23.1";const a1=e=>!e||i1.lt(i1.coerce(e),i1.coerce(o1)),s1=({layoutService:e,flags:t})=>{const n=t.isEnabled("BARS_IN_SECONDARY_AXIS")&&!a1(e.getLayoutValue("version")),r=e.getHyperCubeValue("qMeasureInfo").map(((e,t)=>{const n={[Ho.BAR]:0,[Ho.LINE]:0,[Ho.MARKER]:0};return({series:r=Uo},i)=>{const o=LJ(r,t),a=Lh(r);return{id:i,type:a,typeIndex:n[a]++,ref:"qMeasureInfo/"+i,refIndex:i,isPrimary:o,scale:o?Vo.SCALE.MINOR.PRIMARY:Vo.SCALE.MINOR.SECONDARY,collection:o?Vo.COLLECTION.PRIMARY:Vo.COLLECTION.SECONDARY,options:PJ({series:r,layoutService:e})}}})(e,n)),i=(e,t)=>e.filter((e=>Lh(e)===t)).length,o=r.filter((e=>e.isPrimary)),a=r.filter((e=>!e.isPrimary)),s=[!!o.length&&o[0],!!a.length&&a[0]].filter((e=>!!e)),l=i(r,Ho.BAR),u=i(o,Ho.BAR),c=i(a,Ho.BAR),d=e=>r.filter((t=>Lh(t)===e)),f=d(Ho.LINE).map((e=>sf(Vo.COMPONENT.POINT,e))),h=d(Ho.MARKER).map((e=>({key:sf(Vo.COMPONENT.MARKER,e),type:e.options.marker}))),p=h.map((e=>e.key)),m=[];u>0&&m.push(`${Vo.COMPONENT.BAR}-${$o.PRIMARY}`),c>0&&m.push(`${Vo.COMPONENT.BAR}-${$o.SECONDARY}`);const y=[...m,...f,...p],{MINI_CHART:g}=Vo.COMPONENT,v=d(Ho.LINE).map((e=>sf(g.LINE,e))),b=d(Ho.MARKER).map((e=>sf(g.MARKER,e))),x=e.meta.isContinuous?[`${g.BAR}-${$o.PRIMARY}`,`${g.BAR}-${$o.SECONDARY}`,...v,...b]:[];return{meta:{allSeries:r,primarySeries:o,secondarySeries:a,barSeriesCount:l,primaryBarSeriesCount:u,secondaryBarSeriesCount:c,measureAxes:s,pointComponentKeys:f,markerComponentKeys:p,barComponentKeys:m,seriesComponentKeys:y,miniComponentKeys:x,markers:h},query:{all:()=>r,seriesByAxis:e=>e?o:a,series:d,isPrimary:LJ}}};function l1(e){return function({layout:t}){var n,r,i;const o=hl(t,"qHyperCube.qMeasureInfo",[]),a=o.some((({series:e=Uo})=>Lh(e)===Ho.LINE)),s=k.continuous(t,(()=>a&&x.isTime(!0,t))),l=e.isEnabled("BARS_IN_SECONDARY_AXIS")&&!a1(hl(t,"version","")),u=o.filter((({series:e=Uo})=>Lh(e)===Ho.BAR)),c=u.length,d=u.filter((({series:e=Uo})=>e.axis===$o.PRIMARY)).length,f=u.filter((({series:e=Uo})=>e.axis===$o.SECONDARY)).length,h=l?d>1||f>1:c>1,p=("grouped"!==hl(t,"barGrouping.grouping")||s)&&h,m=!p&&c>1,y=l&&p&&(d>0&&f>1||d>1&&f>0),g=!(null==t||null===(n=t.qHyperCube)||void 0===n||null===(r=n.qDimensionInfo)||void 0===r||null===(i=r[0])||void 0===i||!i.qLocked);return{canBeContinuous:x.canBeContinuous(t),isDiscrete:!s,isContinuous:s,isTime:x.isTime(s,t),isSnapshot:k.snapshot(t),isBarSeriesStacked:p,isBarSeriesGrouped:m,isBarSeriesStackedInBothAxis:y,isGrouped:m||y,isGroupedByMeasure:m||y,isDimensionLocked:g,groupSize:y?2:c,hasLineSeries:a}}}function u1({layoutService:e}){const{dimensionCount:t,measureCount:n}=e.meta;return{qTop:0,qLeft:0,qWidth:t+n,qHeight:Math.min(2e3,1e4/(n+1))}}function c1({genericObjectModel:e,layoutService:t}){return function(){return function(e,t,n){return e.getHyperCubeReducedData(n.path,[n.rect],n.zoomLevel,n.filter).catch(O).then((e=>{var n;const r=t.getHyperCubeValue("qMode"),i=t.getHyperCubeValue("qDimensionInfo"),o="K"===r&&i.length>1&&(null===(n=e[0])||void 0===n?void 0:n.qIsReduced),a=e.slice(),s=t.getHyperCubeValue("qMeasureInfo");return{reducedCube:{qDataPages:a,qDimensionInfo:i.slice(),qEffectiveInterColumnSortOrder:[1,0],qMeasureInfo:o?[s[0],s[0]]:s.slice(),qStackedDataPages:[],qMode:"S",qHasOtherValues:t.getHyperCubeValue("qHasOtherValues"),qSize:t.getHyperCubeValue("qSize")}}}))}(e,t,{path:"/qHyperCubeDef",rect:u1({layoutService:t}),zoomLevel:-1,filter:"D1"})}}function d1({genericObjectModel:e,layoutService:t}){const{isSnapshot:n,isContinuous:r}=t.meta;return n?function({layoutService:e}){return function(){return Promise.resolve({reducedCube:e.getLayoutValue("reducedHyperCube")||e.getHyperCube()})}}({layoutService:t}):r?function({layoutService:e}){return function(){const t=e.getHyperCube();return Promise.resolve({reducedCube:{...t,qDataPages:[...t.qDataPages]}})}}({layoutService:t}):c1({genericObjectModel:e,layoutService:t})}const f1=e=>"number"==typeof e&&!Number.isNaN(e);function h1({isPrimary:e,layoutService:t,seriesModel:n}){return function(){const r=t.getHyperCubeValue("qMeasureInfo"),i=n.query.seriesByAxis(e).map((e=>r[e.refIndex])),o=i.filter((e=>Lh(e.series)===Ho.BAR)),a=i.filter((e=>Lh(e.series)===Ho.LINE)),s=i.filter((e=>Lh(e.series)===Ho.MARKER));return{min:Math.min(...i.filter((e=>f1(e.qMin))).map((e=>e.qMin))),max:Math.max(...i.filter((e=>f1(e.qMax))).map((e=>e.qMax))),bar:{min:Math.min(...o.filter((e=>f1(e.qMin))).map((e=>e.qMin))),max:Math.max(...o.filter((e=>f1(e.qMax))).map((e=>e.qMax)))},line:{min:Math.min(...a.filter((e=>f1(e.qMin))).map((e=>e.qMin))),max:Math.max(...a.filter((e=>f1(e.qMax))).map((e=>e.qMax)))},marker:{min:Math.min(...s.filter((e=>f1(e.qMin))).map((e=>e.qMin))),max:Math.max(...s.filter((e=>f1(e.qMax))).map((e=>e.qMax)))}}}}function p1({isPrimary:e,layoutService:t,seriesModel:n}){const r=h1({isPrimary:e,layoutService:t,seriesModel:n}),i=function({seriesModel:e,isPrimary:t}){return function({dataPage:n}){const r=e.query.series(Ho.BAR).filter((e=>e.isPrimary===t)).map((e=>e.refIndex)),{qMatrix:i}=n,o={min:NaN,max:NaN};return i.forEach((e=>{let t=0,n=0;e.slice(1).filter(((e,t)=>r.some((e=>e===t))&&"NaN"!==e.qNum)).forEach((e=>{e.qNum>=0?n+=e.qNum:t+=e.qNum})),o.min=Number.isNaN(o.min)?t:Math.min(t,o.min),o.max=Number.isNaN(o.max)?n:Math.max(n,o.max)})),o}}({seriesModel:n,isPrimary:e});return function({dataPage:e}){const t=r({dataPage:e});return t.bar=i({dataPage:e}),t.min=Math.min(t.bar.min,t.line.min,t.marker.min),t.max=Math.max(t.bar.max,t.line.max,t.marker.max),t}}function m1({isPrimary:e,continuousModel:t,layoutService:n,reducedModel:r,seriesModel:i}){const o={min:NaN,max:NaN,implicit:{min:NaN,max:NaN,bar:{min:NaN,max:NaN},line:{min:NaN,max:NaN},marker:{min:NaN,max:NaN}},explicit:{min:NaN,max:NaN},meta:{hasExplicit:!1,hasExplicitMin:!1,hasExplicitMax:!1,includesZero:!1}},a=function({isPrimary:e,layoutService:t,seriesModel:n}){const{isBarSeriesStacked:r}=t.meta;return r?p1({isPrimary:e,layoutService:t,seriesModel:n}):h1({isPrimary:e,layoutService:t,seriesModel:n})}({isPrimary:e,layoutService:n,seriesModel:i});return{query:{getExtrema:()=>o},command:{initialize:()=>{const{min:s,max:l}=function({isPrimary:e,layoutService:t}){const n={min:NaN,max:NaN},{getLayoutValue:r}=t,i=r("measureAxes."+(e?0:1),{});if(i.autoMinMax)return n;const{minMax:o,min:a,max:s}=i;return"min"!==o&&"minMax"!==o||(n.min=a),"max"!==o&&"minMax"!==o||(n.max=s),Number.isNaN(n.min)||Number.isNaN(n.max)||(n.min=Math.min(a,s),n.max=Math.max(a,s)),n}({isPrimary:e,layoutService:n});return o.explicit.min=s,o.explicit.max=l,o.meta.hasExplicitMin=!Number.isNaN(s),o.meta.hasExplicitMax=!Number.isNaN(l),o.meta.hasExplicit=o.meta.hasExplicitMin||o.meta.hasExplicitMax,function({continuousModel:e,layoutService:t,reducedModel:n}){const{isDiscrete:r}=t.meta;if(r){const e=n.query.getCube();return Promise.resolve({dataPage:e.qDataPages[0]})}return e.fetchMinMaxData().then((e=>({dataPage:e[0]})))}({continuousModel:t,layoutService:n,reducedModel:r}).then((({dataPage:t})=>{const{min:n,max:r,bar:s,line:l,marker:u}=a({dataPage:t}),c=i.query.seriesByAxis(e).some((e=>Lh(e)===Ho.BAR)),d=c?Math.min(n,0):n,f=c?Math.max(r,0):r,h=c?Math.min(s.min,0):s.min,p=c?Math.max(s.max,0):s.max,m=c?Math.min(l.min,0):l.min,y=c?Math.max(l.max,0):l.max,g=c?Math.min(u.min,0):u.min,v=c?Math.max(u.max,0):u.max;o.implicit.min=Number.isFinite(d)?d:0,o.implicit.max=Number.isFinite(f)?f:0,o.implicit.bar.min=Number.isFinite(h)?h:0,o.implicit.bar.max=Number.isFinite(p)?p:0,o.implicit.line.min=Number.isFinite(m)?m:0,o.implicit.line.max=Number.isFinite(y)?y:0,o.implicit.marker.min=Number.isFinite(g)?g:0,o.implicit.marker.max=Number.isFinite(v)?v:0,o.min=Number.isNaN(o.explicit.min)?o.implicit.min:o.explicit.min,o.max=Number.isNaN(o.explicit.max)?o.implicit.max:o.explicit.max,o.meta.hasExplicitMin&&!o.meta.hasExplicitMax&&(o.max=Math.max(o.min,o.max)),o.meta.hasExplicitMax&&!o.meta.hasExplicitMin&&(o.min=Math.min(o.min,o.max)),o.meta.includesZero=!!((0-o.min)*(0-o.max)<=0)}))}}}}function y1({extrema:e,ticks:t}){const n=e.meta.hasExplicit?2:3;return t.filter((t=>(t=>!e.meta.hasExplicitMin||t>=e.explicit.min)(t)&&(t=>!e.meta.hasExplicitMax||t<=e.explicit.max)(t))).length>=n}function g1({min:e,max:t,count:n,threshold:r,disable:i}){const o=function(e,t,n){const r=In().domain([e,t]);return r.nice(n),r}(e,t,n),a=function({min:e,max:t,threshold:n,scale:r,disable:i}){const o={start:!0,stop:!0};if(i)return o;const[a,s]=r.domain();return 0!==e&&0!==a&&(o.start=r(e)>n),0!==t&&0!==s&&(o.stop=r(t)<1-n),o}({min:e,max:t,threshold:r,scale:o,disable:i});if(!a.start||!a.stop){const[e,t]=o.domain(),r=o.ticks(n),i=r.length>=4?r[1]-r[0]:.1*e,s=r.length>=4?r[r.length-1]-r[r.length-2]:.1*t;o.domain([a.start?e:e-i,a.stop?t:t+s]),o.nice(n)}return o}const v1=50,b1=100,x1=200,M1=125;function S1({config:{measureAxesRef:e},layoutService:t,size:n}){const r=(e=>{switch(e){case.5:return v1;case 1:return b1;case 2:return x1;default:return e*M1}})(t.getLayoutValue(e+".spacing",1));return Math.max(1,Math.round(n/r))}function w1({config:e,chart:t,layoutService:n,dockService:r,measureText:i,size:o,min:a,max:s}){const l=S1({config:e,layoutService:n,size:o}),u=g1({min:a,max:s,count:l,threshold:.05,disable:!0}),c=u.domain(),d={roundedMin:c[0],roundedMax:c[1],ticks:u.ticks(l)},f="horizontal"===r.meta.major.orientation?"height":"width",h=e=>i(e)[f],p=t.formatter(e.formatter),m=()=>{const e=d.ticks.map(p);return!e.some(((t,n)=>e.indexOf(t)!==n))&&(e=>{const t=o/d.ticks.length;return Math.max(...e.map(h))<=t})(e)};for(let e=l-1;e>0&&!m();e--)u.domain([a,s]),u.nice(e),[d.roundedMin,d.roundedMax]=u.domain(),d.ticks=u.ticks(e);return d}function E1({tick:e,index:t,ticks:n}){return 0===t||t===n.length-1||0===e}function k1({index:e,ticks:t}){return 0===e||e===t.length-1||e===Math.floor((t.length-1)/2)}function C1({config:e,chart:t,extrema:n,min:r,max:i}){const o={roundedMin:0,roundedMax:0,ticks:[]},a=g1({min:r,max:i,count:10,threshold:.15,disable:!0});[o.roundedMin,o.roundedMax]=a.domain();const s=a.ticks(10),l=function({ticks:e}){const t=Math.round(.3*e.length),n=t,r=e.length-t;return e.slice(n,r).some((e=>0===e))}({ticks:s}),u=l?E1:k1;o.ticks=s.filter(((e,t,n)=>u({tick:e,index:t,ticks:n})));o.ticks.length%2==0&&!l&&!n.meta.hasExplicit&&s.length>1&&(o.ticks=[s[0],(s[0]+s[s.length-1])/2,s[s.length-1]]);const c=t.formatter(e.formatter),d=o.ticks.map(c);return d.some(((e,t)=>d.indexOf(e)!==t))&&(o.ticks=[o.ticks[0],o.ticks[o.ticks.length-1]]),o}function O1({ticks:e,extrema:t}){let n=[...e];return t.meta.hasExplicit&&e.length?(t.meta.hasExplicitMin&&!e.some((e=>e===t.explicit.min))&&(n.unshift(t.explicit.min),n=n.filter((e=>e>=t.explicit.min))),t.meta.hasExplicitMax&&!e.some((e=>e===t.explicit.max))&&(n.push(t.explicit.max),n=n.filter((e=>e<=t.explicit.max))),n):n}function T1({config:e,chart:t,layoutService:n,dockService:r,extrema:i,measureText:o,size:a,min:s,max:l}){const{ticks:u,roundedMin:c,roundedMax:d}=function({config:e,chart:t,layoutService:n,dockService:r,extrema:i,measureText:o,size:a,min:s,max:l}){if("SPARK"===r.meta.chart.mode)return function({min:e,max:t}){return{roundedMin:e,roundedMax:t,ticks:[]}}({min:s,max:l});const u=w1({config:e,chart:t,layoutService:n,dockService:r,measureText:o,size:a,min:s,max:l});return y1({extrema:i,ticks:u.ticks})?u:C1({config:e,chart:t,extrema:i,min:s,max:l})}({config:e,chart:t,layoutService:n,dockService:r,extrema:i,measureText:o,size:a,min:s,max:l}),f=function({ticks:e,count:t}){const n=[];for(let r=0;r<e.length-1;r++){const i=e[r],o=(e[r+1]-i)/(t+1);for(let e=1;e<=t;e++)n.push(i+o*e)}return n}({ticks:u,count:1});return{min:c,max:d,values:[...O1({ticks:u,extrema:i}).map((e=>({value:e,isMinor:!1}))),...f.map((e=>({value:e,isMinor:!0})))].sort(((e,t)=>e.value-t.value))}}function A1({config:e,chart:t,layoutService:n,dockService:r,measureText:i,extrema:o,size:a}){const{min:s,max:l}=function({extrema:e}){const{min:t,max:n}=e;return t!==n?{min:t,max:n}:0===t||1===t?{min:t-1,max:n+1}:{min:t-.2*t*Math.sign(t),max:n+.2*n*Math.sign(n)}}({extrema:o});return T1({config:e,chart:t,layoutService:n,dockService:r,extrema:o,measureText:i,size:a,min:s,max:l})}function N1({config:e,chart:t,layoutService:n,extremumModel:r,dockService:i,seriesModel:o,themeService:a}){const s={locked:!1,resolved:void 0},{getExtrema:l}=r.query,u=function({chart:e,config:t,dockService:n,extremumModel:r,layoutService:i,seriesModel:o,themeService:a}){const{measureText:s}=Eq.renderer("svg")();return()=>{const l=a.getStyles(),u=function({dockService:e,seriesModel:t,chart:n}){var r;const i=n.component(t.meta.seriesComponentKeys[0]),o=null!==(r=null==i?void 0:i.rect)&&void 0!==r?r:e.meta.chart.size;return"horizontal"===e.meta.major.orientation?o.height:o.width}({chart:e,dockService:n,seriesModel:o}),c=r.query.getExtrema();return A1({config:t,chart:e,layoutService:i,dockService:n,measureText:e=>s({text:e,fontFamily:l.axis.label.name.fontFamily,fontSize:l.axis.label.name.fontSize}),extrema:c,size:u})}}({config:e,chart:t,layoutService:n,extremumModel:r,dockService:i,seriesModel:o,themeService:a}),c=()=>(s.locked&&s.resolved||(s.resolved=u()),s.resolved);return{query:{getValues:()=>c().values,getMin:()=>l().meta.hasExplicitMin?l().explicit.min:c().min,getMax:()=>l().meta.hasExplicitMax?l().explicit.max:c().max},command:{lock:()=>{s.locked=!0},unlock:()=>{s.locked=!1}}}}function q1({genericObjectModel:e,layoutService:t}){const n={properties:void 0};return{query:{getProperties:()=>n.properties},command:{initialize:()=>function({layout:e,model:t}){return k.snapshot(e)?Promise.resolve(null):t.getEffectiveProperties().then((e=>({properties:e})))}({layout:t.getLayout(),model:e}).then((e=>{const{properties:t}=null!=e?e:{};n.properties=t}))}}}function D1({layoutService:e,seriesModel:t,colorService:n}){const{type:r,mode:i,fieldType:o}=n.getSettings();if("categorical"!==r)return;const a=e.getLayoutValue("dataPoint.show",!1)?"line-point":"line";let s;s="field"===i?"measure"===o?()=>({type:Ho.BAR}):()=>t.query.all()[0]:e=>t.query.all()[e.value];return{item:{shape:{type:({datum:e})=>{const{type:t,options:n}=s(e);switch(t){case"line":return a;case"marker":return n.marker;default:return"square"}},stroke:{},strokeWidth:({datum:e})=>{const{type:t,options:n}=s(e);return t===Ho.LINE?2:t!==Ho.MARKER||n.fill?0:1},size:10,fill:{fn:({datum:e,scale:t})=>{const{type:n,options:r}=s(e);return n!==Ho.MARKER||"bar"===r.marker||r.fill?t(e.value):"none"}}}}}}function R1({layout:e,defaultAuto:t}){const n=t(e),r=e.qHyperCube.qMeasureInfo.length>1;return{...n,useBaseColors:r?"measure":n.useBaseColors}}function I1({actions:e,appLayoutModel:t,appModel:n,chart:r,environment:i,flags:o,genericObjectModel:a,layoutService:s,picasso:l,seriesModel:u,viewState:c}){let d;const{theme:f,translator:h}=i,p={wrappedScales:void 0,legendComponents:void 0,legendInteractions:void 0};return d=nl({picasso:l,model:a,app:n,translator:h,layoutService:s,createConfig:()=>{let e;o.isEnabled("BASIC_COLOR_OPTIONS_PER_MEASURE")&&(e=s.getHyperCubeValue("qMeasureInfo").map((e=>e.color)));return{theme:f,colorProps:{measureOverrides:e},legendProps:s.getLayoutValue("legend"),hc:s.getHyperCube(),key:Vo.SCALE.COLOR}},config:{auto:R1,localeInfo:t.qLocaleInfo},custom:{wrappedScales:()=>p.wrappedScales,legendComponents:()=>p.legendComponents,legendInteractions:()=>p.legendInteractions,updateLegend:()=>{const{components:t,interactions:n,scales:o}=function({viewState:e,chart:t,layoutService:n,seriesModel:r,environment:i,colorService:o,actions:a}){const{options:s}=i,l={eventName:"legend-c",key:Vo.COMPONENT.LEGEND,viewState:e,chart:t,styleReference:"object.comboChart",rtl:"rtl"===s.direction,settings:D1({layoutService:n,seriesModel:r,colorService:o})},{components:u,interactions:c}=o.getLegend(l,{actions:a,navigationDisabled:!a.interact.enabled()}),d=o.getScales();return{components:u.filter(Boolean).map((e=>{const{layout:t}=e,{dock:n}=t,r=d[Vo.SCALE.COLOR+"Range"];return!r||"right"!==n&&"left"!==n||(r.invert=!0),"legend-cat"===e.type&&(e.settings.item.shape.fill.scale=e.scale,e.settings.item.shape.stroke.scale=e.scale),e})),interactions:c,scales:d}}({viewState:c,chart:r,environment:i,colorService:d,seriesModel:u,layoutService:s,actions:e});p.wrappedScales=o,p.legendComponents=t,p.legendInteractions=n}}}),d}const _1="REJECTED",P1=()=>{},L1=1e4,j1=2,z1=20,F1=200,B1=10;var V1={contains:function(e,t){if(!e)return!1;const{qArea:n}=e;return!!n&&(n.qLeft<=t.qLeft&&n.qLeft+n.qWidth>=t.qLeft+t.qWidth&&n.qTop<=t.qTop&&n.qTop+n.qHeight>=t.qTop+t.qHeight)},patcher:function({layoutService:e}){const t=t=>{t.qArea.qHeight=t.qMatrix.length,t.qArea.qWidth=e.meta.size.x};return t.should=e=>0===e.qArea.qHeight&&0===e.qArea.qWidth&&!!e.qMatrix.length,t},slicer:function(e,t){const n=Math.max(0,t.qHeight)-Math.abs(Math.min(0,t.qTop-e.qArea.qTop)),r=Math.max(0,t.qWidth)-Math.abs(Math.min(0,t.qLeft-e.qArea.qLeft)),i=Math.max(t.qTop,e.qArea.qTop),o=Math.max(t.qLeft,e.qArea.qLeft),a=Math.max(0,i-e.qArea.qTop),s=Math.min(i+n-e.qArea.qTop,e.qArea.qHeight),l=Math.max(0,o-e.qArea.qLeft),u=Math.min(o+r-e.qArea.qLeft,e.qArea.qWidth),c={qArea:{qHeight:s-a,qWidth:u-l,qTop:i,qLeft:o},qMatrix:[]};for(let t=a;t<s;t++)c.qMatrix.push(e.qMatrix[t].slice(l,u));return c},cacheWarden:function({bounds:e={width:0,height:0}}){return{release(t,n){const r=n.qTop-B1<=t.qTop,i=n.qLeft+n.qWidth+B1>=t.qLeft+t.qWidth,o=n.qTop+n.qHeight+B1>=t.qTop+t.qHeight,a=n.qLeft-B1<=t.qLeft;return r&&t.qTop>0||i&&t.qLeft+t.qWidth<e.width||o&&t.qTop+t.qHeight<e.height||a&&t.qLeft>0}}},request:function({definitionPath:e}){return t=>({method:"getHyperCubeData",args:[e,[t]]})}};var H1={contains:function(e,t){if(!e)return!1;const{qArea:n}=e;return!!n&&(n.qTop<=t.qTop&&n.qTop+n.qHeight>=t.qTop+t.qHeight)},patcher:function({layoutService:e}){const t=t=>{t.qArea.qHeight=t.qData[0].qSubNodes.length,t.qArea.qWidth=e.meta.size.x};return t.should=e=>0===e.qArea.qHeight&&0===e.qArea.qWidth&&!!e.qData.length,t},slicer:function(e,t){const n=Math.max(0,t.qHeight)-Math.abs(Math.min(0,t.qTop-e.qArea.qTop)),r=Math.max(t.qTop,e.qArea.qTop),i=Math.max(t.qLeft,e.qArea.qLeft),o=Math.max(0,r-e.qArea.qTop),a=Math.min(r+n-e.qArea.qTop,e.qArea.qHeight),s=e.qData[0].qUp+e.qArea.qHeight+e.qData[0].qDown-r-(a-o),l={qArea:{qHeight:a-o,qWidth:e.qArea.qWidth,qTop:r,qLeft:i},qData:[{...e.qData[0],qUp:r,qDown:s,qSubNodes:[]}]};for(let t=o;t<a;t++)l.qData[0].qSubNodes.push(e.qData[0].qSubNodes[t]);return l},cacheWarden:function({bounds:e={height:0}}){return{release(t,n){const r=n.qTop-B1<=t.qTop,i=n.qTop+n.qHeight+B1>=t.qTop+t.qHeight;return r&&t.qTop>0||i&&t.qTop+t.qHeight<e.height}}},request:function({layoutService:e,definitionPath:t}){const n=e.getLayoutValue("dimensionAxis.axisDisplayMode","auto");return e=>{const r={method:"getHyperCubeStackData",args:[t,[e]]};return"auto"===n&&r.args.push(600),r}}};var $1={contains:function(){return!1},patcher:function(){const e=e=>e;return e.should=()=>!1,e},slicer:function(e){return e},cacheWarden:function(){return{release:()=>!0}},request:function({definitionPath:e}){return t=>({method:"getHyperCubeTreeData",args:[e,[t]]})}};const U1="pages";const W1="discretePan";function Y1({chart:e,actions:t,componentKey:n,dockService:r,rtl:i,scroller:o}){return{type:"Pan",key:"discrete:pan",options:{event:W1,pointers:1,threshold:10,enable(r,i){return this.started===W1||!i||!!t.scroll.enabled()&&e.componentsFromPoint({x:i.center.x,y:i.center.y}).some((e=>e.key===n))}},events:{discretePanstart(e){e.preventDefault(),this.started=W1;const t="horizontal"===r.meta.major.orientation?e.deltaX:e.deltaY;this.previousTotalDelta=t<0?-10:10},discretePanmove(e){e.preventDefault();const t="horizontal"===r.meta.major.orientation,n=t?e.deltaX:e.deltaY,a=t&&i?-1:1,s=(n-this.previousTotalDelta)*a;this.previousTotalDelta=n,o.scroll(s)},discretePanend(e){e.preventDefault(),this.started=!1},discretePancancel(e){e.preventDefault(),this.started=!1}}}}function X1({chart:e,componentKey:t,actions:n,scroller:r}){return function(i){if(!n.scroll.enabled())return;const[o]=e.componentsFromPoint({x:i.clientX,y:i.clientY}).filter((e=>e.key===t));if(!o)return;i.preventDefault();const a=Math.abs(i.deltaY)>Math.abs(i.deltaX)?i.deltaY:i.deltaX,s=100*Math.sign(-a);r.scroll(s)}}function G1({layoutService:e,areaBuffer:t}){const n=void 0===t?function({layoutService:e}){const t=Math.floor(L1/(e.meta.dimensionCount+e.meta.measureCount));return function({width:e,height:n}){const r=Math.min(t,Math.max(F1,n));return{width:e,height:Math.max(z1,Math.min(n*j1,r))}}}({layoutService:e}):function({layoutService:e}){const t=Math.floor(L1/(e.meta.dimensionCount+e.meta.measureCount));return function({width:e,height:n}){return{width:e,height:Math.min(t,n)}}}({layoutService:e}),r={width:e.meta.size.x,height:e.meta.size.y};return function(e){const{width:t,height:i}=n({width:e.qWidth,height:e.qHeight}),o=i?Math.ceil((i-e.qHeight)/2):0,a=t?Math.ceil((t-e.qWidth)/2):0;return{qHeight:i?Math.min(i,r.height):e.qHeight,qWidth:t?Math.min(t,r.width):e.qWidth,qTop:i?Math.max(0,Math.min(e.qTop-o,r.height-i)):e.qTop,qLeft:t?Math.max(0,Math.min(e.qLeft-a,r.width-t)):e.qLeft}}}function K1(e){let t,n;const r=i=>{t=i;const{method:o,args:a}=t.request;e[o](...a).then((e=>{if(t.canceled||n)return t.reject(_1),t=null,void(n&&(r(n),n=null));t.resolve(e[0]),t=null}))},i=e=>new Promise(((i,o)=>{const a={request:e,resolve:i,reject:o,canceled:!1,cancel:()=>{a.canceled=!0}};t?(e=>{n&&n.reject(_1),n=e})(a):r(a)}));return i.isProcessing=()=>!!t,i.hasQueued=()=>!!n,i.cancel=()=>{i.isProcessing()&&t.cancel(),i.hasQueued()&&(n.reject(_1),n=null)},i}const J1={command:{update:()=>{}}};function Z1({dataStore:e,composition:t,enigmaModel:n,layoutService:r,trendLineModel:i=J1,definitionPath:o,areaBuffer:a,processDataPage:s}){const{slicer:l,cacheWarden:u,request:c}=t,d=function({dataStore:e,slice:t,warden:n,expand:r,request:i,process:o,connectionless:a,processDataPage:s}){return(l,{onProcessing:u}={})=>{if(e.contains(l)){const r=e.getCurrent();if(a)return Promise.resolve(t(r,l));const i=n.release(r.qArea,l),s=o.isProcessing();if(!i&&s&&o.cancel(),!i||s)return Promise.resolve(t(r,l))}if(a)return Promise.resolve(e.getCurrent());o.isProcessing()&&u&&u();const c=r(l);return o(i(c)).then((n=>(s(n),e.add(n),t(n,l))))}}({dataStore:e,slice:l,warden:u({bounds:{width:r.meta.size.x,height:r.meta.size.y}}),expand:G1({layoutService:r,areaBuffer:a}),request:c({layoutService:r,definitionPath:o}),process:K1(n),connectionless:r.meta.isSnapshot,processDataPage:s}),f=gl(((e,{onProcessing:t,onData:n})=>{d(e,{onProcessing:t}).then((e=>n(e))).catch((e=>{if(e!==_1)throw e}))}),50);return function(e,{onProcessing:t=P1,onDataPage:n=P1}={}){f(e,{onProcessing:t,onData:e=>{r.setDataPages(e?[e]:[]),i.command.update(),n(e)}})}}var Q1={inTotal:function({layoutService:e}){return e.meta.size.x},area:function({layoutService:e}){return{qTop:0,qHeight:1,qLeft:0,qWidth:e.meta.size.x}},scaleRange:function({layoutService:e,offsets:t,items:n,viewSize:r}){const{pixel:i}=t,o=e.getDataPages()[0],a=i/r;return[a,n.inView>=n.inTotal?a+1:a+o.qArea.qWidth/n.inView]}};var e2={inTotal:function({layoutService:e}){if(e.meta.isSnapshot&&!e.getLayoutValue("reducedHyperCube")){const[t]=e.getDataPages();if(t)return t.qArea.qHeight}return e.meta.size.y},area:function({layoutService:e,itemOffset:t,inView:n,areaBuffer:r}){const i=void 0===r?4:r,o=Math.max(0,Math.floor(t)-i/2);return{qTop:o,qHeight:Math.min(e.meta.size.y-o,Math.max(0,Math.ceil(n+i))),qLeft:0,qWidth:e.meta.size.x}},scaleRange:function({layoutService:e,offsets:t,items:n,viewSize:r}){const{pixel:i}=t,o=e.getDataPages()[0],a=r/n.inView,s=(i+o.qArea.qTop*a)/r;return[s,n.inView>=n.inTotal?s+1:s+o.qArea.qHeight/n.inView]}};function t2(e){const{groupSize:t,measureCount:n}=e.meta;return null!=t?t:n}function n2(e,t){const n=[];for(let r=0;r<e.length;r++){const i=t(e[r]);-1===n.indexOf(i)&&n.push(i)}return n.length}function r2(e){return n2(e.qMatrix,(e=>e[0].qElemNumber))-1}var i2={inTotal:function({layoutService:e}){const t=t2(e);return e.meta.size.y*t*(1+1/t)-1},area:function({layoutService:e,itemOffset:t,inView:n,areaBuffer:r}){const i=t2(e),o=void 0===r?i:r,a=t/(i+1),s=Math.max(0,Math.floor((t-a-o/2)/i));return{qTop:s,qHeight:Math.min(e.meta.size.y-s,Math.max(0,Math.ceil((n+o)/i+1))),qLeft:0,qWidth:e.meta.size.x}},scaleRange:function({layoutService:e,offsets:t,items:n,viewSize:r}){const i=t2(e),o=e.getDataPages()[0],a=r/n.inView,{pixel:s}=t,l=r2(o),u=o.qArea.qHeight*i+l,c=(s+(o.qArea.qTop*i+o.qArea.qTop)*a)/r;return[c,n.inView>=n.inTotal?c+1:c+u/n.inView]}};const o2=(e,t)=>t/(e.meta.size.y/e.meta.size.dimensions[0]+1);function a2(e){return{itemOffset(t,n){if(0!==t.qArea.qTop)return o2(e,n);const r=((e,t)=>{const n={successful:!0,count:0};let r=Math.abs(Math.floor(t));const i=[];for(let t=0;t<=r;t++){if(!e[t])return n.successful=!1,n;const o=e[t][0].qElemNumber;-1===i.indexOf(o)&&(i.push(o),r--)}return n.count=i.length-1,n})(t.qMatrix,n);return r.successful?r.count:o2(e,n)},area(t,n,r){if(0!==t.qArea.qTop)return o2(e,n);return n2(t.qMatrix.slice(0,r.qTop+1),(e=>e[0].qElemNumber))-1}}}var s2={inTotal:function({layoutService:e}){return e.meta.size.y+e.meta.size.dimensions[0]-1},area:function({getDataPages:e,layoutService:t,itemOffset:n,inView:r}){const i=a2(t).itemOffset(e(),n),o=Math.max(0,Math.floor(n-i));return{qTop:o,qHeight:Math.min(t.meta.size.y-o,Math.max(0,Math.ceil(r+1))),qLeft:0,qWidth:t.meta.size.x}},scaleRange:function({getDataPages:e,layoutService:t,offsets:n,items:r,viewSize:i,upperBound:o}){const a=t.getDataPages()[0],s=i/r.inView,{item:l,pixel:u}=n,c=a2(t).area(e(),l,a.qArea),d=r2(a),f=a.qArea.qHeight+d,h=u===o?(r.inView-f)*s/i:(u+(a.qArea.qTop+c)*s)/i;return[h,r.inView>=r.inTotal?h+1:h+f/r.inView]}};function l2({rect:e,dockService:t,itemWidths:n,dimensionAxis:r,inTotal:i,isMajorVisible:o,isMajorLabelless:a,maxDataRows:s}){const{DEFAULT:l,SQUEEZE:u,LABELLESS:c}=n[t.meta.chart.mode],{axisDisplayMode:d="auto",maxVisibleItems:f=10}=r,h="horizontal"===t.meta.major.orientation?e.width:e.height,p=h/i>=u;switch(d){case"max":return Math.min(i,s);case"custom":return Math.min(f,s);case"auto":default:return!o||a?h/c:p?i:h/l}}function u2({chart:e,getRect:t,getDataPages:n,layoutService:r,dockService:i,getItemWidths:o,axisKey:a,areaBuffer:s,rtl:l}){const{inTotal:u,area:c,scaleRange:d}=function({layoutService:e}){const{isDimensionless:t,isGrouped:n,isGroupedByMeasure:r}=e.meta;return t?Q1:n?r?i2:s2:e2}({layoutService:r}),f=()=>"horizontal"===i.meta.major.orientation?t().width:t().height,h=e=>e?f()/e:0,p=(e,t)=>-(e-t)*h(t);return{getItems(){const n=r.getLayoutValue("dimensionAxis"),s=u({layoutService:r}),l=e.component(a),c=!a||!l||l.isVisible();return{inTotal:s,inView:l2({rect:t(),dockService:i,itemWidths:o(),dimensionAxis:n,inTotal:s,isMajorVisible:c,isMajorLabelless:"none"===n.show||"title"===n.show,maxDataRows:Math.floor(L1/(r.meta.dimensionCount+r.meta.measureCount))})}},getItemSize({items:e}){const{inView:t}=e;return h(t)},getOffsets({pixelOffset:e,items:t}){const{inTotal:n,inView:r}=t,i=Math.min(0,Math.max(e,p(n,r)));return{pixel:i,item:r?Math.abs(r*i/f()):0}},getUpperBound({items:e}){const{inTotal:t,inView:n}=e;return p(t,n)},getViewRange({pixelOffset:e,items:t}){const{inTotal:n,inView:r}=t;return function({viewSize:e,inTotal:t,inView:n,pixelOffset:r}){const i=e/n*t,o=Math.abs(r)/i;return[o,o+e/i]}({viewSize:f(),inTotal:n,inView:r,pixelOffset:e})},getArea:({itemOffset:e,items:t})=>c({getDataPages:n,layoutService:r,itemOffset:e,inView:t.inView,areaBuffer:s}),getScaleRange({offsets:e,items:t}){const o=d({getDataPages:n,layoutService:r,offsets:e,items:t,viewSize:f(),upperBound:p(t.inTotal,t.inView)});return"horizontal"===i.meta.major.orientation&&l?function(e){return[1-e[1],1-e[0]]}(o):o},validate:{offset({pixelOffset:e,items:t}){const{inTotal:n,inView:r}=t;return e<=0&&e>=p(n,r)}},convert:{itemToPixelOffset({itemOffset:e,items:t}){const{inView:n}=t,r=e*h(n);return Number.isFinite(r)?-r:0},relativeToPixelOffset({relativeOffset:e,items:t}){const{inTotal:n,inView:r}=t;return-e*(h(r)*n)}}}}function c2({chart:e,componentKey:t,state:n,dataStore:r,pageData:i,layoutService:o,dockService:a,itemWidths:s,getRect:l,axisKey:u,areaBuffer:c,viewState:d,rtl:f}){n.set("rect",{width:0,height:0}),n.set("itemWidths",{}),n.set("itemSize",0),n.set("items",{}),n.set("offsets",{}),n.set("finished",0),n.set("scaleRange",[0,1]);const h=u2({chart:e,getRect:()=>n.get("rect"),getDataPages:r.getCurrent,layoutService:o,dockService:a,getItemWidths:()=>n.get("itemWidths"),axisKey:u,areaBuffer:c,rtl:f}),p=()=>{const e=h.getItems();return n.set("items",e),e},m=({pixelOffset:e,items:t})=>{const r=h.getOffsets({pixelOffset:e,items:t});return n.set("offsets",r),r},y=e=>{const t=Date.now(),r=p(),a=m({pixelOffset:e,items:r}),s=h.getArea({itemOffset:a.item,items:r});if((e=>{const[{qArea:t}]=o.getDataPages();return!!t&&Object.keys(e).every((n=>e[n]===t[n]))})(s))return void((h.validate.offset({pixelOffset:e,items:r})||d.get("scrollOffset")!==a.item)&&(n.set("finished",t),n.set("scaleRange",h.getScaleRange({offsets:a,items:r})),d.preventSet("viewRange",h.getViewRange({pixelOffset:a.pixel,items:r})),d.set("scrollOffset",a.item)));d.preventSet("viewRange",h.getViewRange({pixelOffset:a.pixel,items:r}));const l=()=>{n.get("finished")>t||(n.set("finished",t),n.set("scaleRange",h.getScaleRange({offsets:a,items:r})),d.set("scrollOffset",a.item))};i(s,{onProcessing:l,onDataPage:l})};return{enabled(){const{inTotal:e,inView:t}=n.get("items");return e>t},itemSize:()=>n.get("itemSize"),scaleRange:()=>n.get("scaleRange"),initialize(){const r=e.component(t);if(!r)return Promise.resolve();n.set("rect","function"==typeof l?l():r.rect),n.set("itemWidths","function"==typeof s?s():s);const a=p();n.set("itemSize",h.getItemSize({items:a}));const u=void 0===d.get("scrollOffset")?(({items:e})=>1===o.getLayoutValue("scrollStartPos")?h.getUpperBound({items:e}):0)({items:a}):h.convert.itemToPixelOffset({itemOffset:d.get("scrollOffset"),items:a}),c=m({pixelOffset:u,items:a});d.preventSet("viewRange",h.getViewRange({pixelOffset:c.pixel,items:a}));const f=h.getArea({itemOffset:c.item,items:a});return new Promise((e=>{i(f,{onDataPage:()=>{n.set("scaleRange",h.getScaleRange({offsets:c,items:a})),d.preventSet("scrollOffset",c.item),e()}})}))},scroll(e){const t=n.get("offsets").pixel+e;y(t)},scrollToRelative(e){const t=n.get("items"),r=h.convert.relativeToPixelOffset({relativeOffset:e,items:t});y(r)}}}function d2({chart:e,actions:t,componentKey:n,enigmaModel:r,layoutService:i,dockService:o,trendLineModel:a,itemWidths:s,viewState:l,rtl:u,options:{definitionPath:c="/qHyperCubeDef",getRect:d,axisKey:f,areaBuffer:h,processDataPage:p=(()=>{})}={}}){const m=ml(),y=function({qMode:e}){switch(e){case"S":default:return V1;case"K":return H1;case"T":return $1}}({qMode:i.getHyperCubeValue("qMode")}),g=function({state:e,contains:t}){return e.set(U1,[]),{add:t=>{const n=e.get(U1);n.length=0,n.push(t)},getCurrent:()=>e.get(U1)[0],getAll:()=>e.get(U1),contains:n=>t(e.get(U1)[0],n)}}({state:m,contains:y.contains});!function({layoutService:e,dataStore:t,composition:n}){const r=e.getDataPages()[0];if(!r)return;const i=n.patcher({layoutService:e});i.should(r)&&i(r),t.add(r)}({layoutService:i,dataStore:g,composition:y});const v=function({buffer:e}){return void 0===e?void 0:2*Math.round(e/2)}({buffer:h}),b=Z1({dataStore:g,composition:y,enigmaModel:r,layoutService:i,trendLineModel:a,definitionPath:c,areaBuffer:v,processDataPage:p}),x=c2({chart:e,componentKey:n,state:m,dataStore:g,pageData:b,layoutService:i,dockService:o,itemWidths:s,getRect:d,axisKey:f,areaBuffer:v,viewState:l,rtl:u}),M=function({layoutService:e,dataStore:t}){return function(n){const r=hl(n,""+e.refs.dataPages);r.length=0,r.push(t.getCurrent())}}({layoutService:i,dataStore:g});return{interactions:function({chart:e,actions:t,componentKey:n,dockService:r,rtl:i,scroller:o}){return{gestures:[Y1({chart:e,actions:t,componentKey:n,dockService:r,rtl:i,scroller:o})],native:{type:"native",events:{wheel:X1({chart:e,actions:t,componentKey:n,scroller:o})}}}}({chart:e,actions:t,componentKey:n,dockService:o,rtl:u,scroller:x}),query:{getCanScroll:()=>x.enabled(),getItemSize:()=>x.itemSize(),getScaleRange:()=>x.scaleRange(),getCurrentDataPage:()=>g.getCurrent()},command:{initialize:()=>x.initialize(),scrollTo:e=>x.scrollToRelative(e),setSnapshotData:e=>M(e)}}}var f2={SPARK:{DEFAULT:7,SQUEEZE:7,LABELLESS:7},XSMALL:{DEFAULT:28,SQUEEZE:24,LABELLESS:20},SMALL:{DEFAULT:28,SQUEEZE:24,LABELLESS:20},MEDIUM:{DEFAULT:28,SQUEEZE:24,LABELLESS:20},FULL:{DEFAULT:28,SQUEEZE:24,LABELLESS:20}};function h2({appLayoutModel:e,appModel:t,chart:n,environment:r,flags:i,genericObjectModel:o,layout:a,picasso:s}){const{translator:l,embed:u}=r,c=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:ia,miniChartToken:{},embed:s}}({layout:a,app:t,model:o,picasso:s,chart:n,translator:l,localeInfo:e.qLocaleInfo,embed:u});return{query:{useCustomTooltip:()=>c.useCustomTooltip,useTooltipChart:()=>{var e,t,n,r;return i.isEnabled("CUSTOM_TOOLTIP_CHART")&&(null===(e=a.tooltip)||void 0===e||null===(t=e.chart)||void 0===t||null===(n=t.object)||void 0===n?void 0:n.refId)&&c.embed&&"function"==typeof(null===(r=c.model)||void 0===r?void 0:r.getEffectiveProperties)},hasChartLimitation:()=>{var e;return null==t||null===(e=t.isInModalSelection)||void 0===e?void 0:e.call(t)},getCustomTooltipModel:()=>c}}}function p2({layoutService:e,key:t}){const{style:n}=e.getLayoutValue("components",[]).filter((e=>e.key===t))[0]||{};return({property:r,defaultValue:i,index:o})=>{const a=n&&Object.hasOwnProperty.call(n,r)?n[r]:i;if(void 0===o)return a;const{style:s}=e.getHyperCubeValue((e=>`qMeasureInfo.${e}.styling`)(o),[]).filter((e=>e.key===t))[0]||{};return s&&Object.hasOwnProperty.call(s,r)?s[r]:a}}function m2({layoutService:e,dockService:t}){const{BAR:n,LINE:r,POINT:i}=gf,o=p2({layoutService:e,key:"bar"}),a=p2({layoutService:e,key:"line"}),s=()=>{const e=o({property:"strokeWidth",defaultValue:"none"});return e?n.STROKE.WIDTH[e.toUpperCase()]:0};return{query:{bar:{getHasStyling:()=>!!e.getLayoutValue("components",[]).filter((e=>"bar"===e.key)).length,getWidthFn:()=>()=>o({property:"width",defaultValue:.7}),getHasStrokeWidth:()=>!!s(),getStrokeWidth:()=>s(),getStrokeColor:()=>o({property:"strokeColor",defaultValue:{index:-1,color:n.STROKE.COLOR}}).color},line:{getCurveFn:()=>(e,t)=>a({property:"lineCurve",defaultValue:r.CURVE.LINEAR,index:t}),getStrokeWidthFn:()=>(e,n)=>a({property:"lineThickness",defaultValue:"FULL"===t.meta.chart.mode?r.WIDTH.FULL.DEFAULT:r.WIDTH.LESS.DEFAULT,index:n}),getStrokeDasharrayFn:()=>(e,t)=>{const n=a({property:"lineType",defaultValue:r.TYPE.SOLID,index:t});return n&&r.TYPE[n.toUpperCase()]}},point:{getSize:e=>a({property:"dataPointSize",defaultValue:i.SIZE.DEFAULT,index:e})}}}}const{model:y2}=im,g2=({picasso:t,chart:n,environment:r,flags:i,viewState:o,viewCache:a,actions:s,selectionService:l})=>{const u=e.useStaleLayout(),{width:c,height:d}=e.useRect(),[f,h]=e.useState(),[p,m]=e.useState(),y=e.useModel(),g=e.useApp(),v=e.useAppLayout(),b=e.usePlugins();e.useEffect((()=>{if(!(u&&null!=n&&n.update&&r&&o))return;const e=function(e){var t=e.source,n=e.metaAdditionsFn,r=Ta(!0,{},t),i=bl(r),o=function(){return function(e){var t=e.layout,n=e.additionsFn,r=void 0===n?function(){return{}}:n,i=e.additionsProps,o=void 0===i?{}:i,a=t.qHyperCube,s=a.qDimensionInfo,l=a.qMeasureInfo,u=a.qMode,c=s.length,d=l.length,f=pa({mode:{S:"S"===u,P:"P"===u,K:"K"===u,T:"T"===u},dimensionCount:c,measureCount:d,hasMultipleDimensions:c>1,hasMultipleMeasures:d>1,isOneDimensional:1===c,isTwoDimensional:2===c},o);return pa(pa({},f),r({layout:t,meta:f}))}({layout:r,additionsFn:n,additionsProps:{size:i.size}})},a={refs:pa({},i.refs),meta:o(),getLayout:function(){return r},getLayoutValue:function(e,t){return hl(r,e,t)},setLayoutValue:function(e,t){pl(r,e,t),i=bl(r),a.meta=o()},getHyperCube:function(){return r.qHyperCube},getHyperCubeValue:function(e,t){return hl(r.qHyperCube,e,t)},setHyperCubeValue:function(e,t){pl(r.qHyperCube,e,t),i=bl(r),a.meta=o()},getDataPages:function(){return hl(r,i.refs.dataPages)},setDataPages:function(e){pl(r,i.refs.dataPages,e),a.meta=o()}};return a}({source:u,metaAdditionsFn:l1(i)}),{viewState:f={}}=r.options,{legendScrollOffset:p,scrollOffset:m}=e.meta.isSnapshot?e.getLayoutValue("snapshotData.content.chartData",{}):f;o.preventSet("scrollOffset",m),o.preventSet("legendScrollOffset",p),o.preventSet("title",e.getLayoutValue("title"));const x=function({genericObjectModel:e,layoutService:t}){const n={cube:void 0,on:!1},r=d1({genericObjectModel:e,layoutService:t});return{query:{getCube:()=>n.cube,getIsReduced:()=>n.on},command:{initialize:()=>r().then((({reducedCube:e})=>{n.cube=e,n.on=!!(n.cube&&n.cube.qDataPages[0]&&n.cube.qDataPages[0].qIsReduced)})),setSnapshotData:e=>{e.reducedHyperCube=n.cube}}}}({genericObjectModel:y,layoutService:e}),M=fl({chart:n,layoutService:e,config:{logicalSize:{width:c,height:d},rtl:"rtl"===r.options.direction},typeConfig:{type:"major-minor",fallback:"vertical",invert:!0,measureAxes:[{ref:"measureAxes.0",name:"minor"},{ref:"measureAxes.1",name:"minorSecondary"}]}}),S=m2({layoutService:e,dockService:M}),w=s1({layoutService:e,flags:i}),E=e.meta.isDiscrete?function({chart:e,genericObjectModel:t,layoutService:n,dockService:r,seriesModel:i,viewState:o,rtl:a,actions:s}){return d2({chart:e,actions:s,componentKey:om(i),enigmaModel:t,layoutService:n,dockService:r,viewState:o,rtl:a,itemWidths:f2,options:{axisKey:Vo.COMPONENT.AXIS.MAJOR}})}({chart:n,genericObjectModel:y,layoutService:e,dockService:M,seriesModel:w,viewState:o,rtl:"rtl"===r.options.direction,actions:s}):void 0,k=e.meta.isContinuous?y2({model:y,layoutService:e,viewState:o,viewCache:a}):void 0,C=I1({actions:s,appLayoutModel:v,appModel:g,chart:n,environment:r,flags:i,genericObjectModel:y,layoutService:e,picasso:t,seriesModel:w,viewState:o}),O=function(e){var t=e.theme,n=e.styleMatrix,r={theme:t,styleMatrix:Hc(void 0===n?[]:n),styles:void 0};return r.styles=$c(r.styleMatrix,t),{getStyles:function(){return r.styles},getTheme:function(){return r.theme},setTheme:function(e){r.theme=e,r.styles=$c(r.styleMatrix,e)}}}({theme:r.theme,styleMatrix:DJ}),T=function({layoutService:e,seriesModel:t}){const{isContinuous:n}=e.meta,r="qDimensionInfo/0",i=r+":numeric";return{main:{major:r,majorNumeric:i,minorsPrimary:t.meta.primarySeries.map((e=>e.ref)),minorsSecondary:t.meta.secondarySeries.map((e=>e.ref))},virtuals:n?[{key:i,from:r,override:{value:e=>e.qNum}}]:void 0}}({layoutService:e,seriesModel:w}),A=m1({isPrimary:!0,layoutService:e,reducedModel:x,seriesModel:w,continuousModel:k,flags:i}),N=m1({isPrimary:!1,layoutService:e,reducedModel:x,seriesModel:w,continuousModel:k,flags:i}),q=N1({config:{measureAxesRef:"measureAxes.0",formatter:Vo.FORMATTER.PRIMARY},chart:n,layoutService:e,extremumModel:A,dockService:M,seriesModel:w,themeService:O}),D=N1({config:{measureAxesRef:"measureAxes.1",formatter:Vo.FORMATTER.SECONDARY},chart:n,layoutService:e,extremumModel:N,dockService:M,seriesModel:w,themeService:O}),R=q1({genericObjectModel:y,layoutService:e}),I=h2({appLayoutModel:v,appModel:g,chart:n,environment:r,flags:i,genericObjectModel:y,layout:u,picasso:t}),_=Fo({layoutService:e,discreteModel:E}),P=function(e){return{layout:e.getLayout(),keys:{SCALE:{MAJOR:Vo.SCALE.MAJOR,MAJOR_INNER:Vo.SCALE.MAJOR_INNER,MINOR:{PRIMARY:Vo.SCALE.MINOR.PRIMARY,SECONDARY:Vo.SCALE.MINOR.SECONDARY}},COMPONENT:{BAR_PRIMARY:`${Vo.COMPONENT.BAR}-${$o.PRIMARY}`,BAR_SECONDARY:`${Vo.COMPONENT.BAR}-${$o.SECONDARY}`,AXIS:{MAJOR:Vo.COMPONENT.AXIS.MAJOR,MAJOR_CONTINUOUS:Vo.COMPONENT.AXIS.MAJOR_CONTINUOUS,TIME_INNER:Vo.COMPONENT.AXIS.TIME_INNER,MINOR:{PRIMARY:Vo.COMPONENT.AXIS.MINOR.PRIMARY,SECONDARY:Vo.COMPONENT.AXIS.MINOR.SECONDARY}},AXIS_TITLE:{MAJOR:Vo.COMPONENT.AXIS_TITLE.MAJOR,MINOR:{PRIMARY:Vo.COMPONENT.AXIS_TITLE.MINOR.PRIMARY,SECONDARY:Vo.COMPONENT.AXIS_TITLE.MINOR.SECONDARY}}},COLLECTION:{MAIN:Vo.COLLECTION.MAIN}}}}(e),L=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 da(regeneratorRuntime.mark((function e(){var r,a,s,l;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!o.initialized){e.next=2;break}return e.abrupt("return");case 2:return a=Promise.all(n.filter((function(e){return"custom-component"===e.info.type})).map(function(){var e=da(regeneratorRuntime.mark((function e(n){var r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n.info.componentName){e.next=2;break}throw new Error("plugin-service: Custom component is missing componentName");case 2:return e.next=4,n.fn(pa({},i));case 4:if("object"===ua(r=e.sent)){e.next=7;break}throw new Error("plugin-service: Custom component needs to be an object");case 7:t.component(n.info.componentName,r);case 8:case"end":return e.stop()}}),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(pa({},i))}))),e.next=6,Promise.all([a,s]);case 6:l=e.sent,o.initialized=!0,(r=o.definitions).push.apply(r,ga(l[1]));case 9:case"end":return e.stop()}}),e)})))()},extendComponents:function(e){return o.initialized?(o.definitions.filter(Boolean).forEach((function(t){var n=ya(e.filter((function(e){return e.key&&e.key===t.key})),1)[0];if(n){var r=Ta(!0,{},n.brush);Ta(!0,n,t),t.brush&&(n.brush=function(e,t){return"object"===ua(e)&&Object.keys(e).length?(Array.isArray(t.consume)&&(e.consume=xl({originalArray:e.consume,newArray:t.consume,matchKey:"context"})),Array.isArray(t.trigger)&&(e.trigger=xl({originalArray:e.trigger,newArray:t.trigger,matchKey:"on"})),e):t}(r,t.brush))}else e.push(t)})),e):e}}}({picassoInstance:t,plugins:b,pluginArgs:P});h({selectionService:l,genericObjectModel:y,appModel:g,dockService:M,styleModel:S,layoutService:e,fieldModel:T,seriesModel:w,reducedModel:x,primaryExtremumModel:A,secondaryExtremumModel:N,primaryTickModel:q,secondaryTickModel:D,propertiesModel:R,colorService:C,themeService:O,appLayoutModel:v,tooltipModel:I,flags:i,...E&&{discreteModel:E},...k&&{continuousModel:k},refLineModel:_,pluginService:L})}),[u,y,g,v,r,null==n?void 0:n.update,o]);const[,x]=e.usePromise((()=>{if(!f)return Promise.resolve();const{layoutService:e,colorService:t,reducedModel:n,primaryExtremumModel:i,secondaryExtremumModel:a,propertiesModel:u,continuousModel:c,discreteModel:d,pluginService:h}=f,p=c?()=>{var t,n;c.update(e.getLayout());const i=c.initialFetch(),a=!e.meta.isSnapshot&&(null==r||null===(t=r.options)||void 0===t||null===(n=t.viewState)||void 0===n?void 0:n.zoom);return a&&o.preventSet("zoom",a),i}:()=>Promise.resolve(),g=t.initialize().then((()=>{const e=t.getSettings().field;l.setBrushAliases({colorField:e}),t.custom.updateLegend()}));return Promise.all([h.initialize(),n.command.initialize(),y?u.command.initialize():Promise.resolve(),g,p(),s.scroll.attachDiscreteModel(d)]).then((()=>Promise.all([i.command.initialize(),a.command.initialize()]).then((()=>m(f)))))}),[f]);if(x)throw x;return p};function v2(){const[t,n]=e.useState();return e.useEffect((()=>{n(function(e){var t=pa({},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}({viewRange:[0,1],scrollOffset:void 0}))}),[]),t}const b2={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"}}]};const x2={query:{getCanScroll:()=>!0}};function M2(){const t=e.useConstraints(),[n,r]=e.useState(!1),[i,o]=e.useState(!1),[a,s]=e.useState(!1),l=function(){const t=e.useConstraints(),[n,r]=e.useState(!1),[i,o]=e.useState({}),[a,s]=e.useState();return e.useEffect((()=>()=>{o({})}),[]),e.useEffect((()=>{t&&r(!t.select&&!t.active)}),[t]),{enabled:()=>n,emit:(e,...t)=>i[e].forEach((e=>e(...t))),removeListener:(e,t)=>{var n;const r=null===(n=i[e])||void 0===n?void 0:n.indexOf(t);r>-1&&i[e].splice(r,1)},on:(e,t)=>{Array.isArray(i[e])?i[e].push(t):i[e]=[t]},get brushSelectionIncludeMax(){return a},set brushSelectionIncludeMax(e){s(e)},getBrushOptions:void 0}}(),u=function(){var t,n,r;const i=e.useConstraints(),[o,a]=e.useState(!1),[s,l]=e.useState(!1),u=e.useLayout(),c=!!u.qSelectionInfo.qInSelections,d=!(null===(t=u.qHyperCube)||void 0===t||null===(n=t.qDimensionInfo)||void 0===n||null===(r=n[0])||void 0===r||!r.qIsOneAndOnlyOne);e.useEffect((()=>{i&&a(!i.select&&!i.active)}),[i]);const f=e=>{l("boolean"==typeof e?e:!s)};return e.useAction((()=>({key:"lasso",label:"Lasso",icon:b2,hidden:!o||!c||d,active:s,action:f})),[c,d,s,o]),{action:f,enabled:()=>o,active:()=>s}}();let c=x2;e.useEffect((()=>{t&&(r(!t.active),o(!t.active),s(!t.passive))}),[t]);const[d]=e.useState({});return d.scroll={enabled:()=>n&&c.query.getCanScroll(),attachDiscreteModel:e=>{c=e||x2}},d.interact={enabled:()=>i},d.tooltip={enabled:()=>a},d.lasso=u,d.select=l,d}function S2({clearMinor:e,clearDiscrete:t,clearLegend:n}){e(),e({componentName:"minor-secondary-range-brush",eventName:"minorRange-secondary"}),t({brushName:!1}),n()}function w2({setSelectionInfo:e,event:t,components:n,clear:r}){const i=null!=n&&n.length?n.map((e=>e.key)).filter(Boolean):[];e({event:t,components:i,minorRangePrimary:"minorRange"===t,minorRange:["minorRange","minorRange-secondary"].includes(t),legendRange:"legendRange"===t,legendTap:"tap"===t&&i[0]===Vo.COMPONENT.LEGEND_CATEGORICAL}),r()}var E2={exports:{}};!function(e,t){!function(t,n){e.exports=n()}(window,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/conversion/",n(n.s="./index.js")}({"../node_modules/extend/index.js":
|
|
63
|
+
var xz=OR.exports,Mz=DR,Sz=vz.exports;function wz(e,t,n,r,i,o,a,s){if(!e){if(e=void 0,void 0===t)e=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,r,i,o,a,s],u=0;(e=Error(t.replace(/%s/g,(function(){return l[u++]})))).name="Invariant Violation"}throw e.framesToPop=1,e}}function Ez(e){for(var t=arguments.length-1,n="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=0;r<t;r++)n+="&args[]="+encodeURIComponent(arguments[r+1]);wz(!1,"Minified React error #"+e+"; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",n)}function kz(e,t,n,r,i,o,a,s,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this.onError(e)}}xz||Ez("227");var Cz=!1,Oz=null,Tz=!1,Az=null,Nz={onError:function(e){Cz=!0,Oz=e}};function qz(e,t,n,r,i,o,a,s,l){Cz=!1,Oz=null,kz.apply(Nz,arguments)}var Dz=null,Rz={};function Iz(){if(Dz)for(var e in Rz){var t=Rz[e],n=Dz.indexOf(e);if(-1<n||Ez("96",e),!Pz[n])for(var r in t.extractEvents||Ez("97",e),Pz[n]=t,n=t.eventTypes){var i=void 0,o=n[r],a=t,s=r;Lz.hasOwnProperty(s)&&Ez("99",s),Lz[s]=o;var l=o.phasedRegistrationNames;if(l){for(i in l)l.hasOwnProperty(i)&&_z(l[i],a,s);i=!0}else o.registrationName?(_z(o.registrationName,a,s),i=!0):i=!1;i||Ez("98",r,e)}}}function _z(e,t,n){jz[e]&&Ez("100",e),jz[e]=t,zz[e]=t.eventTypes[n].dependencies}var Pz=[],Lz={},jz={},zz={},Fz=null,Bz=null,Vz=null;function Hz(e,t,n){var r=e.type||"unknown-event";e.currentTarget=Vz(n),function(e,t,n,r,i,o,a,s,l){if(qz.apply(this,arguments),Cz){if(Cz){var u=Oz;Cz=!1,Oz=null}else Ez("198"),u=void 0;Tz||(Tz=!0,Az=u)}}(r,t,void 0,e),e.currentTarget=null}function $z(e,t){return null==t&&Ez("30"),null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}function Uz(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}var Wz=null;function Yz(e){if(e){var t=e._dispatchListeners,n=e._dispatchInstances;if(Array.isArray(t))for(var r=0;r<t.length&&!e.isPropagationStopped();r++)Hz(e,t[r],n[r]);else t&&Hz(e,t,n);e._dispatchListeners=null,e._dispatchInstances=null,e.isPersistent()||e.constructor.release(e)}}var Xz={injectEventPluginOrder:function(e){Dz&&Ez("101"),Dz=Array.prototype.slice.call(e),Iz()},injectEventPluginsByName:function(e){var t,n=!1;for(t in e)if(e.hasOwnProperty(t)){var r=e[t];Rz.hasOwnProperty(t)&&Rz[t]===r||(Rz[t]&&Ez("102",t),Rz[t]=r,n=!0)}n&&Iz()}};function Gz(e,t){var n=e.stateNode;if(!n)return null;var r=Fz(n);if(!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":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}return e?null:(n&&"function"!=typeof n&&Ez("231",t,typeof n),n)}function Kz(e){if(null!==e&&(Wz=$z(Wz,e)),e=Wz,Wz=null,e&&(Uz(e,Yz),Wz&&Ez("95"),Tz))throw e=Az,Tz=!1,Az=null,e}var Jz=Math.random().toString(36).slice(2),Zz="__reactInternalInstance$"+Jz,Qz="__reactEventHandlers$"+Jz;function eF(e){if(e[Zz])return e[Zz];for(;!e[Zz];){if(!e.parentNode)return null;e=e.parentNode}return 5===(e=e[Zz]).tag||6===e.tag?e:null}function tF(e){return!(e=e[Zz])||5!==e.tag&&6!==e.tag?null:e}function nF(e){if(5===e.tag||6===e.tag)return e.stateNode;Ez("33")}function rF(e){return e[Qz]||null}function iF(e){do{e=e.return}while(e&&5!==e.tag);return e||null}function oF(e,t,n){(t=Gz(e,n.dispatchConfig.phasedRegistrationNames[t]))&&(n._dispatchListeners=$z(n._dispatchListeners,t),n._dispatchInstances=$z(n._dispatchInstances,e))}function aF(e){if(e&&e.dispatchConfig.phasedRegistrationNames){for(var t=e._targetInst,n=[];t;)n.push(t),t=iF(t);for(t=n.length;0<t--;)oF(n[t],"captured",e);for(t=0;t<n.length;t++)oF(n[t],"bubbled",e)}}function sF(e,t,n){e&&n&&n.dispatchConfig.registrationName&&(t=Gz(e,n.dispatchConfig.registrationName))&&(n._dispatchListeners=$z(n._dispatchListeners,t),n._dispatchInstances=$z(n._dispatchInstances,e))}function lF(e){e&&e.dispatchConfig.registrationName&&sF(e._targetInst,null,e)}function uF(e){Uz(e,aF)}var cF=!("undefined"==typeof window||!window.document||!window.document.createElement);function dF(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var fF={animationend:dF("Animation","AnimationEnd"),animationiteration:dF("Animation","AnimationIteration"),animationstart:dF("Animation","AnimationStart"),transitionend:dF("Transition","TransitionEnd")},hF={},pF={};function mF(e){if(hF[e])return hF[e];if(!fF[e])return e;var t,n=fF[e];for(t in n)if(n.hasOwnProperty(t)&&t in pF)return hF[e]=n[t];return e}cF&&(pF=document.createElement("div").style,"AnimationEvent"in window||(delete fF.animationend.animation,delete fF.animationiteration.animation,delete fF.animationstart.animation),"TransitionEvent"in window||delete fF.transitionend.transition);var yF=mF("animationend"),gF=mF("animationiteration"),vF=mF("animationstart"),bF=mF("transitionend"),xF="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),MF=null,SF=null,wF=null;function EF(){if(wF)return wF;var e,t,n=SF,r=n.length,i="value"in MF?MF.value:MF.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 wF=i.slice(e,1<t?1-t:void 0)}function kF(){return!0}function CF(){return!1}function OF(e,t,n,r){for(var i in this.dispatchConfig=e,this._targetInst=t,this.nativeEvent=n,e=this.constructor.Interface)e.hasOwnProperty(i)&&((t=e[i])?this[i]=t(n):"target"===i?this.target=r:this[i]=n[i]);return this.isDefaultPrevented=(null!=n.defaultPrevented?n.defaultPrevented:!1===n.returnValue)?kF:CF,this.isPropagationStopped=CF,this}function TF(e,t,n,r){if(this.eventPool.length){var i=this.eventPool.pop();return this.call(i,e,t,n,r),i}return new this(e,t,n,r)}function AF(e){e instanceof this||Ez("279"),e.destructor(),10>this.eventPool.length&&this.eventPool.push(e)}function NF(e){e.eventPool=[],e.getPooled=TF,e.release=AF}Mz(OF.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=kF)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=kF)},persist:function(){this.isPersistent=kF},isPersistent:CF,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=CF,this._dispatchInstances=this._dispatchListeners=null}}),OF.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},OF.extend=function(e){function t(){}function n(){return r.apply(this,arguments)}var r=this;t.prototype=r.prototype;var i=new t;return Mz(i,n.prototype),n.prototype=i,n.prototype.constructor=n,n.Interface=Mz({},r.Interface,e),n.extend=r.extend,NF(n),n},NF(OF);var qF=OF.extend({data:null}),DF=OF.extend({data:null}),RF=[9,13,27,32],IF=cF&&"CompositionEvent"in window,_F=null;cF&&"documentMode"in document&&(_F=document.documentMode);var PF=cF&&"TextEvent"in window&&!_F,LF=cF&&(!IF||_F&&8<_F&&11>=_F),jF=String.fromCharCode(32),zF={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},FF=!1;function BF(e,t){switch(e){case"keyup":return-1!==RF.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function VF(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var HF=!1;var $F={eventTypes:zF,extractEvents:function(e,t,n,r){var i=void 0,o=void 0;if(IF)e:{switch(e){case"compositionstart":i=zF.compositionStart;break e;case"compositionend":i=zF.compositionEnd;break e;case"compositionupdate":i=zF.compositionUpdate;break e}i=void 0}else HF?BF(e,n)&&(i=zF.compositionEnd):"keydown"===e&&229===n.keyCode&&(i=zF.compositionStart);return i?(LF&&"ko"!==n.locale&&(HF||i!==zF.compositionStart?i===zF.compositionEnd&&HF&&(o=EF()):(SF="value"in(MF=r)?MF.value:MF.textContent,HF=!0)),i=qF.getPooled(i,t,n,r),o?i.data=o:null!==(o=VF(n))&&(i.data=o),uF(i),o=i):o=null,(e=PF?function(e,t){switch(e){case"compositionend":return VF(t);case"keypress":return 32!==t.which?null:(FF=!0,jF);case"textInput":return(e=t.data)===jF&&FF?null:e;default:return null}}(e,n):function(e,t){if(HF)return"compositionend"===e||!IF&&BF(e,t)?(e=EF(),wF=SF=MF=null,HF=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return LF&&"ko"!==t.locale?null:t.data;default:return null}}(e,n))?((t=DF.getPooled(zF.beforeInput,t,n,r)).data=e,uF(t)):t=null,null===o?t:null===t?o:[o,t]}},UF=null,WF=null,YF=null;function XF(e){if(e=Bz(e)){"function"!=typeof UF&&Ez("280");var t=Fz(e.stateNode);UF(e.stateNode,e.type,t)}}function GF(e){WF?YF?YF.push(e):YF=[e]:WF=e}function KF(){if(WF){var e=WF,t=YF;if(YF=WF=null,XF(e),t)for(e=0;e<t.length;e++)XF(t[e])}}function JF(e,t){return e(t)}function ZF(e,t,n){return e(t,n)}function QF(){}var eB=!1;function tB(e,t){if(eB)return e(t);eB=!0;try{return JF(e,t)}finally{eB=!1,(null!==WF||null!==YF)&&(QF(),KF())}}var nB={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 rB(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!nB[e.type]:"textarea"===t}function iB(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}function oB(e){if(!cF)return!1;var t=(e="on"+e)in document;return t||((t=document.createElement("div")).setAttribute(e,"return;"),t="function"==typeof t[e]),t}function aB(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function sB(e){e._valueTracker||(e._valueTracker=function(e){var t=aB(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 lB(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=aB(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}var uB=xz.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;uB.hasOwnProperty("ReactCurrentDispatcher")||(uB.ReactCurrentDispatcher={current:null});var cB=/^(.*)[\\\/]/,dB="function"==typeof Symbol&&Symbol.for,fB=dB?Symbol.for("react.element"):60103,hB=dB?Symbol.for("react.portal"):60106,pB=dB?Symbol.for("react.fragment"):60107,mB=dB?Symbol.for("react.strict_mode"):60108,yB=dB?Symbol.for("react.profiler"):60114,gB=dB?Symbol.for("react.provider"):60109,vB=dB?Symbol.for("react.context"):60110,bB=dB?Symbol.for("react.concurrent_mode"):60111,xB=dB?Symbol.for("react.forward_ref"):60112,MB=dB?Symbol.for("react.suspense"):60113,SB=dB?Symbol.for("react.memo"):60115,wB=dB?Symbol.for("react.lazy"):60116,EB="function"==typeof Symbol&&Symbol.iterator;function kB(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=EB&&e[EB]||e["@@iterator"])?e:null}function CB(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 bB:return"ConcurrentMode";case pB:return"Fragment";case hB:return"Portal";case yB:return"Profiler";case mB:return"StrictMode";case MB:return"Suspense"}if("object"==typeof e)switch(e.$$typeof){case vB:return"Context.Consumer";case gB:return"Context.Provider";case xB:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case SB:return CB(e.type);case wB:if(e=1===e._status?e._result:null)return CB(e)}return null}function OB(e){var t="";do{e:switch(e.tag){case 3:case 4:case 6:case 7:case 10:case 9:var n="";break e;default:var r=e._debugOwner,i=e._debugSource,o=CB(e.type);n=null,r&&(n=CB(r.type)),r=o,o="",i?o=" (at "+i.fileName.replace(cB,"")+":"+i.lineNumber+")":n&&(o=" (created by "+n+")"),n="\n in "+(r||"Unknown")+o}t+=n,e=e.return}while(e);return t}var TB=/^[: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]*$/,AB=Object.prototype.hasOwnProperty,NB={},qB={};function DB(e,t,n,r,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t}var RB={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){RB[e]=new DB(e,0,!1,e,null)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];RB[t]=new DB(t,1,!1,e[1],null)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){RB[e]=new DB(e,2,!1,e.toLowerCase(),null)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){RB[e]=new DB(e,2,!1,e,null)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){RB[e]=new DB(e,3,!1,e.toLowerCase(),null)})),["checked","multiple","muted","selected"].forEach((function(e){RB[e]=new DB(e,3,!0,e,null)})),["capture","download"].forEach((function(e){RB[e]=new DB(e,4,!1,e,null)})),["cols","rows","size","span"].forEach((function(e){RB[e]=new DB(e,6,!1,e,null)})),["rowSpan","start"].forEach((function(e){RB[e]=new DB(e,5,!1,e.toLowerCase(),null)}));var IB=/[\-:]([a-z])/g;function _B(e){return e[1].toUpperCase()}function PB(e,t,n,r){var i=RB.hasOwnProperty(t)?RB[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!!AB.call(qB,e)||!AB.call(NB,e)&&(TB.test(e)?qB[e]=!0:(NB[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))))}function LB(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function jB(e,t){var n=t.checked;return Mz({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function zB(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=LB(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 FB(e,t){null!=(t=t.checked)&&PB(e,"checked",t,!1)}function BB(e,t){FB(e,t);var n=LB(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")?HB(e,t.type,n):t.hasOwnProperty("defaultValue")&&HB(e,t.type,LB(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function VB(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.defaultChecked,e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function HB(e,t,n){"number"===t&&e.ownerDocument.activeElement===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+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(IB,_B);RB[t]=new DB(t,1,!1,e,null)})),"xlink:actuate xlink:arcrole xlink:href xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(IB,_B);RB[t]=new DB(t,1,!1,e,"http://www.w3.org/1999/xlink")})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(IB,_B);RB[t]=new DB(t,1,!1,e,"http://www.w3.org/XML/1998/namespace")})),["tabIndex","crossOrigin"].forEach((function(e){RB[e]=new DB(e,1,!1,e.toLowerCase(),null)}));var $B={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}};function UB(e,t,n){return(e=OF.getPooled($B.change,e,t,n)).type="change",GF(n),uF(e),e}var WB=null,YB=null;function XB(e){Kz(e)}function GB(e){if(lB(nF(e)))return e}function KB(e,t){if("change"===e)return t}var JB=!1;function ZB(){WB&&(WB.detachEvent("onpropertychange",QB),YB=WB=null)}function QB(e){"value"===e.propertyName&&GB(YB)&&tB(XB,e=UB(YB,e,iB(e)))}function eV(e,t,n){"focus"===e?(ZB(),YB=n,(WB=t).attachEvent("onpropertychange",QB)):"blur"===e&&ZB()}function tV(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return GB(YB)}function nV(e,t){if("click"===e)return GB(t)}function rV(e,t){if("input"===e||"change"===e)return GB(t)}cF&&(JB=oB("input")&&(!document.documentMode||9<document.documentMode));var iV={eventTypes:$B,_isInputEventSupported:JB,extractEvents:function(e,t,n,r){var i=t?nF(t):window,o=void 0,a=void 0,s=i.nodeName&&i.nodeName.toLowerCase();if("select"===s||"input"===s&&"file"===i.type?o=KB:rB(i)?JB?o=rV:(o=tV,a=eV):(s=i.nodeName)&&"input"===s.toLowerCase()&&("checkbox"===i.type||"radio"===i.type)&&(o=nV),o&&(o=o(e,t)))return UB(o,n,r);a&&a(e,i,t),"blur"===e&&(e=i._wrapperState)&&e.controlled&&"number"===i.type&&HB(i,"number",i.value)}},oV=OF.extend({view:null,detail:null}),aV={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function sV(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=aV[e])&&!!t[e]}function lV(){return sV}var uV=0,cV=0,dV=!1,fV=!1,hV=oV.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:lV,button:null,buttons:null,relatedTarget:function(e){return e.relatedTarget||(e.fromElement===e.srcElement?e.toElement:e.fromElement)},movementX:function(e){if("movementX"in e)return e.movementX;var t=uV;return uV=e.screenX,dV?"mousemove"===e.type?e.screenX-t:0:(dV=!0,0)},movementY:function(e){if("movementY"in e)return e.movementY;var t=cV;return cV=e.screenY,fV?"mousemove"===e.type?e.screenY-t:0:(fV=!0,0)}}),pV=hV.extend({pointerId:null,width:null,height:null,pressure:null,tangentialPressure:null,tiltX:null,tiltY:null,twist:null,pointerType:null,isPrimary:null}),mV={mouseEnter:{registrationName:"onMouseEnter",dependencies:["mouseout","mouseover"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["mouseout","mouseover"]},pointerEnter:{registrationName:"onPointerEnter",dependencies:["pointerout","pointerover"]},pointerLeave:{registrationName:"onPointerLeave",dependencies:["pointerout","pointerover"]}},yV={eventTypes:mV,extractEvents:function(e,t,n,r){var i="mouseover"===e||"pointerover"===e,o="mouseout"===e||"pointerout"===e;if(i&&(n.relatedTarget||n.fromElement)||!o&&!i)return null;if(i=r.window===r?r:(i=r.ownerDocument)?i.defaultView||i.parentWindow:window,o?(o=t,t=(t=n.relatedTarget||n.toElement)?eF(t):null):o=null,o===t)return null;var a=void 0,s=void 0,l=void 0,u=void 0;"mouseout"===e||"mouseover"===e?(a=hV,s=mV.mouseLeave,l=mV.mouseEnter,u="mouse"):"pointerout"!==e&&"pointerover"!==e||(a=pV,s=mV.pointerLeave,l=mV.pointerEnter,u="pointer");var c=null==o?i:nF(o);if(i=null==t?i:nF(t),(e=a.getPooled(s,o,n,r)).type=u+"leave",e.target=c,e.relatedTarget=i,(n=a.getPooled(l,t,n,r)).type=u+"enter",n.target=i,n.relatedTarget=c,r=t,o&&r)e:{for(i=r,u=0,a=t=o;a;a=iF(a))u++;for(a=0,l=i;l;l=iF(l))a++;for(;0<u-a;)t=iF(t),u--;for(;0<a-u;)i=iF(i),a--;for(;u--;){if(t===i||t===i.alternate)break e;t=iF(t),i=iF(i)}t=null}else t=null;for(i=t,t=[];o&&o!==i&&(null===(u=o.alternate)||u!==i);)t.push(o),o=iF(o);for(o=[];r&&r!==i&&(null===(u=r.alternate)||u!==i);)o.push(r),r=iF(r);for(r=0;r<t.length;r++)sF(t[r],"bubbled",e);for(r=o.length;0<r--;)sF(o[r],"captured",n);return[e,n]}};function gV(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t}var vV=Object.prototype.hasOwnProperty;function bV(e,t){if(gV(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++)if(!vV.call(t,n[r])||!gV(e[n[r]],t[n[r]]))return!1;return!0}function xV(e){var t=e;if(e.alternate)for(;t.return;)t=t.return;else{if(0!=(2&t.effectTag))return 1;for(;t.return;)if(0!=(2&(t=t.return).effectTag))return 1}return 3===t.tag?2:3}function MV(e){2!==xV(e)&&Ez("188")}function SV(e){if(!(e=function(e){var t=e.alternate;if(!t)return 3===(t=xV(e))&&Ez("188"),1===t?null:e;for(var n=e,r=t;;){var i=n.return,o=i?i.alternate:null;if(!i||!o)break;if(i.child===o.child){for(var a=i.child;a;){if(a===n)return MV(i),e;if(a===r)return MV(i),t;a=a.sibling}Ez("188")}if(n.return!==r.return)n=i,r=o;else{a=!1;for(var 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}a||Ez("189")}}n.alternate!==r&&Ez("190")}return 3!==n.tag&&Ez("188"),n.stateNode.current===n?e:t}(e)))return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}var wV=OF.extend({animationName:null,elapsedTime:null,pseudoElement:null}),EV=OF.extend({clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),kV=oV.extend({relatedTarget:null});function CV(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}var OV={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},TV={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"},AV=oV.extend({key:function(e){if(e.key){var t=OV[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=CV(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?TV[e.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:lV,charCode:function(e){return"keypress"===e.type?CV(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?CV(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),NV=hV.extend({dataTransfer:null}),qV=oV.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:lV}),DV=OF.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),RV=hV.extend({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:null,deltaMode:null}),IV=[["abort","abort"],[yF,"animationEnd"],[gF,"animationIteration"],[vF,"animationStart"],["canplay","canPlay"],["canplaythrough","canPlayThrough"],["drag","drag"],["dragenter","dragEnter"],["dragexit","dragExit"],["dragleave","dragLeave"],["dragover","dragOver"],["durationchange","durationChange"],["emptied","emptied"],["encrypted","encrypted"],["ended","ended"],["error","error"],["gotpointercapture","gotPointerCapture"],["load","load"],["loadeddata","loadedData"],["loadedmetadata","loadedMetadata"],["loadstart","loadStart"],["lostpointercapture","lostPointerCapture"],["mousemove","mouseMove"],["mouseout","mouseOut"],["mouseover","mouseOver"],["playing","playing"],["pointermove","pointerMove"],["pointerout","pointerOut"],["pointerover","pointerOver"],["progress","progress"],["scroll","scroll"],["seeking","seeking"],["stalled","stalled"],["suspend","suspend"],["timeupdate","timeUpdate"],["toggle","toggle"],["touchmove","touchMove"],[bF,"transitionEnd"],["waiting","waiting"],["wheel","wheel"]],_V={},PV={};function LV(e,t){var n=e[0],r="on"+((e=e[1])[0].toUpperCase()+e.slice(1));t={phasedRegistrationNames:{bubbled:r,captured:r+"Capture"},dependencies:[n],isInteractive:t},_V[e]=t,PV[n]=t}[["blur","blur"],["cancel","cancel"],["click","click"],["close","close"],["contextmenu","contextMenu"],["copy","copy"],["cut","cut"],["auxclick","auxClick"],["dblclick","doubleClick"],["dragend","dragEnd"],["dragstart","dragStart"],["drop","drop"],["focus","focus"],["input","input"],["invalid","invalid"],["keydown","keyDown"],["keypress","keyPress"],["keyup","keyUp"],["mousedown","mouseDown"],["mouseup","mouseUp"],["paste","paste"],["pause","pause"],["play","play"],["pointercancel","pointerCancel"],["pointerdown","pointerDown"],["pointerup","pointerUp"],["ratechange","rateChange"],["reset","reset"],["seeked","seeked"],["submit","submit"],["touchcancel","touchCancel"],["touchend","touchEnd"],["touchstart","touchStart"],["volumechange","volumeChange"]].forEach((function(e){LV(e,!0)})),IV.forEach((function(e){LV(e,!1)}));var jV={eventTypes:_V,isInteractiveTopLevelEventType:function(e){return void 0!==(e=PV[e])&&!0===e.isInteractive},extractEvents:function(e,t,n,r){var i=PV[e];if(!i)return null;switch(e){case"keypress":if(0===CV(n))return null;case"keydown":case"keyup":e=AV;break;case"blur":case"focus":e=kV;break;case"click":if(2===n.button)return null;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":e=hV;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":e=NV;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":e=qV;break;case yF:case gF:case vF:e=wV;break;case bF:e=DV;break;case"scroll":e=oV;break;case"wheel":e=RV;break;case"copy":case"cut":case"paste":e=EV;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":e=pV;break;default:e=OF}return uF(t=e.getPooled(i,t,n,r)),t}},zV=jV.isInteractiveTopLevelEventType,FV=[];function BV(e){var t=e.targetInst,n=t;do{if(!n){e.ancestors.push(n);break}var r;for(r=n;r.return;)r=r.return;if(!(r=3!==r.tag?null:r.stateNode.containerInfo))break;e.ancestors.push(n),n=eF(r)}while(n);for(n=0;n<e.ancestors.length;n++){t=e.ancestors[n];var i=iB(e.nativeEvent);r=e.topLevelType;for(var o=e.nativeEvent,a=null,s=0;s<Pz.length;s++){var l=Pz[s];l&&(l=l.extractEvents(r,t,o,i))&&(a=$z(a,l))}Kz(a)}}var VV=!0;function HV(e,t){if(!t)return null;var n=(zV(e)?UV:WV).bind(null,e);t.addEventListener(e,n,!1)}function $V(e,t){if(!t)return null;var n=(zV(e)?UV:WV).bind(null,e);t.addEventListener(e,n,!0)}function UV(e,t){ZF(WV,e,t)}function WV(e,t){if(VV){var n=iB(t);if(null===(n=eF(n))||"number"!=typeof n.tag||2===xV(n)||(n=null),FV.length){var r=FV.pop();r.topLevelType=e,r.nativeEvent=t,r.targetInst=n,e=r}else e={topLevelType:e,nativeEvent:t,targetInst:n,ancestors:[]};try{tB(BV,e)}finally{e.topLevelType=null,e.nativeEvent=null,e.targetInst=null,e.ancestors.length=0,10>FV.length&&FV.push(e)}}}var YV={},XV=0,GV="_reactListenersID"+(""+Math.random()).slice(2);function KV(e){return Object.prototype.hasOwnProperty.call(e,GV)||(e[GV]=XV++,YV[e[GV]]={}),YV[e[GV]]}function JV(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 ZV(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function QV(e,t){var n,r=ZV(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=ZV(r)}}function eH(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?eH(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function tH(){for(var e=window,t=JV();t instanceof e.HTMLIFrameElement;){try{e=t.contentDocument.defaultView}catch(e){break}t=JV(e.document)}return t}function nH(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 rH(e){var t=tH(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&eH(n.ownerDocument.documentElement,n)){if(null!==r&&nH(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=QV(n,o);var a=QV(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 iH=cF&&"documentMode"in document&&11>=document.documentMode,oH={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},aH=null,sH=null,lH=null,uH=!1;function cH(e,t){var n=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;return uH||null==aH||aH!==JV(n)?null:("selectionStart"in(n=aH)&&nH(n)?n={start:n.selectionStart,end:n.selectionEnd}:n={anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},lH&&bV(lH,n)?null:(lH=n,(e=OF.getPooled(oH.select,sH,e,t)).type="select",e.target=aH,uF(e),e))}var dH={eventTypes:oH,extractEvents:function(e,t,n,r){var i,o=r.window===r?r.document:9===r.nodeType?r:r.ownerDocument;if(!(i=!o)){e:{o=KV(o),i=zz.onSelect;for(var a=0;a<i.length;a++){var s=i[a];if(!o.hasOwnProperty(s)||!o[s]){o=!1;break e}}o=!0}i=!o}if(i)return null;switch(o=t?nF(t):window,e){case"focus":(rB(o)||"true"===o.contentEditable)&&(aH=o,sH=t,lH=null);break;case"blur":lH=sH=aH=null;break;case"mousedown":uH=!0;break;case"contextmenu":case"mouseup":case"dragend":return uH=!1,cH(n,r);case"selectionchange":if(iH)break;case"keydown":case"keyup":return cH(n,r)}return null}};function fH(e,t){return e=Mz({children:void 0},t),(t=function(e){var t="";return xz.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function hH(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=""+LB(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 pH(e,t){return null!=t.dangerouslySetInnerHTML&&Ez("91"),Mz({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function mH(e,t){var n=t.value;null==n&&(n=t.defaultValue,null!=(t=t.children)&&(null!=n&&Ez("92"),Array.isArray(t)&&(1>=t.length||Ez("93"),t=t[0]),n=t),null==n&&(n="")),e._wrapperState={initialValue:LB(n)}}function yH(e,t){var n=LB(t.value),r=LB(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 gH(e){var t=e.textContent;t===e._wrapperState.initialValue&&(e.value=t)}Xz.injectEventPluginOrder("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),Fz=rF,Bz=tF,Vz=nF,Xz.injectEventPluginsByName({SimpleEventPlugin:jV,EnterLeaveEventPlugin:yV,ChangeEventPlugin:iV,SelectEventPlugin:dH,BeforeInputEventPlugin:$F});var vH="http://www.w3.org/1999/xhtml",bH="http://www.w3.org/2000/svg";function xH(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 MH(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?xH(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var SH=void 0,wH=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(e.namespaceURI!==bH||"innerHTML"in e)e.innerHTML=t;else{for((SH=SH||document.createElement("div")).innerHTML="<svg>"+t+"</svg>",t=SH.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}));function EH(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 kH={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},CH=["Webkit","ms","Moz","O"];function OH(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||kH.hasOwnProperty(e)&&kH[e]?(""+t).trim():t+"px"}function TH(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=OH(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(kH).forEach((function(e){CH.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),kH[t]=kH[e]}))}));var AH=Mz({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 NH(e,t){t&&(AH[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML)&&Ez("137",e,""),null!=t.dangerouslySetInnerHTML&&(null!=t.children&&Ez("60"),"object"==typeof t.dangerouslySetInnerHTML&&"__html"in t.dangerouslySetInnerHTML||Ez("61")),null!=t.style&&"object"!=typeof t.style&&Ez("62",""))}function qH(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}}function DH(e,t){var n=KV(e=9===e.nodeType||11===e.nodeType?e:e.ownerDocument);t=zz[t];for(var r=0;r<t.length;r++){var i=t[r];if(!n.hasOwnProperty(i)||!n[i]){switch(i){case"scroll":$V("scroll",e);break;case"focus":case"blur":$V("focus",e),$V("blur",e),n.blur=!0,n.focus=!0;break;case"cancel":case"close":oB(i)&&$V(i,e);break;case"invalid":case"submit":case"reset":break;default:-1===xF.indexOf(i)&&HV(i,e)}n[i]=!0}}}function RH(){}var IH=null,_H=null;function PH(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function LH(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var jH="function"==typeof setTimeout?setTimeout:void 0,zH="function"==typeof clearTimeout?clearTimeout:void 0,FH=Sz.unstable_scheduleCallback,BH=Sz.unstable_cancelCallback;function VH(e){for(e=e.nextSibling;e&&1!==e.nodeType&&3!==e.nodeType;)e=e.nextSibling;return e}function HH(e){for(e=e.firstChild;e&&1!==e.nodeType&&3!==e.nodeType;)e=e.nextSibling;return e}var $H=[],UH=-1;function WH(e){0>UH||(e.current=$H[UH],$H[UH]=null,UH--)}function YH(e,t){UH++,$H[UH]=e.current,e.current=t}var XH={},GH={current:XH},KH={current:!1},JH=XH;function ZH(e,t){var n=e.type.contextTypes;if(!n)return XH;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 QH(e){return null!=(e=e.childContextTypes)}function e$(e){WH(KH),WH(GH)}function t$(e){WH(KH),WH(GH)}function n$(e,t,n){GH.current!==XH&&Ez("168"),YH(GH,t),YH(KH,n)}function r$(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var i in r=r.getChildContext())i in e||Ez("108",CB(t)||"Unknown",i);return Mz({},n,r)}function i$(e){var t=e.stateNode;return t=t&&t.__reactInternalMemoizedMergedChildContext||XH,JH=GH.current,YH(GH,t),YH(KH,KH.current),!0}function o$(e,t,n){var r=e.stateNode;r||Ez("169"),n?(t=r$(e,t,JH),r.__reactInternalMemoizedMergedChildContext=t,WH(KH),WH(GH),YH(GH,t)):WH(KH),YH(KH,n)}var a$=null,s$=null;function l$(e){return function(t){try{return e(t)}catch(e){}}}function u$(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.contextDependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childExpirationTime=this.expirationTime=0,this.alternate=null}function c$(e,t,n,r){return new u$(e,t,n,r)}function d$(e){return!(!(e=e.prototype)||!e.isReactComponent)}function f$(e,t){var n=e.alternate;return null===n?((n=c$(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.effectTag=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childExpirationTime=e.childExpirationTime,n.expirationTime=e.expirationTime,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,n.contextDependencies=e.contextDependencies,n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function h$(e,t,n,r,i,o){var a=2;if(r=e,"function"==typeof e)d$(e)&&(a=1);else if("string"==typeof e)a=5;else e:switch(e){case pB:return p$(n.children,i,o,t);case bB:return m$(n,3|i,o,t);case mB:return m$(n,2|i,o,t);case yB:return(e=c$(12,n,t,4|i)).elementType=yB,e.type=yB,e.expirationTime=o,e;case MB:return(e=c$(13,n,t,i)).elementType=MB,e.type=MB,e.expirationTime=o,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case gB:a=10;break e;case vB:a=9;break e;case xB:a=11;break e;case SB:a=14;break e;case wB:a=16,r=null;break e}Ez("130",null==e?e:typeof e,"")}return(t=c$(a,n,t,i)).elementType=e,t.type=r,t.expirationTime=o,t}function p$(e,t,n,r){return(e=c$(7,e,r,t)).expirationTime=n,e}function m$(e,t,n,r){return e=c$(8,e,r,t),t=0==(1&t)?mB:bB,e.elementType=t,e.type=t,e.expirationTime=n,e}function y$(e,t,n){return(e=c$(6,e,null,t)).expirationTime=n,e}function g$(e,t,n){return(t=c$(4,null!==e.children?e.children:[],e.key,t)).expirationTime=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function v$(e,t){e.didError=!1;var n=e.earliestPendingTime;0===n?e.earliestPendingTime=e.latestPendingTime=t:n<t?e.earliestPendingTime=t:e.latestPendingTime>t&&(e.latestPendingTime=t),M$(t,e)}function b$(e,t){e.didError=!1,e.latestPingedTime>=t&&(e.latestPingedTime=0);var n=e.earliestPendingTime,r=e.latestPendingTime;n===t?e.earliestPendingTime=r===t?e.latestPendingTime=0:r:r===t&&(e.latestPendingTime=n),n=e.earliestSuspendedTime,r=e.latestSuspendedTime,0===n?e.earliestSuspendedTime=e.latestSuspendedTime=t:n<t?e.earliestSuspendedTime=t:r>t&&(e.latestSuspendedTime=t),M$(t,e)}function x$(e,t){var n=e.earliestPendingTime;return n>t&&(t=n),(e=e.earliestSuspendedTime)>t&&(t=e),t}function M$(e,t){var n=t.earliestSuspendedTime,r=t.latestSuspendedTime,i=t.earliestPendingTime,o=t.latestPingedTime;0===(i=0!==i?i:o)&&(0===e||r<e)&&(i=r),0!==(e=i)&&n>e&&(e=n),t.nextExpirationTimeToWorkOn=i,t.expirationTime=e}function S$(e,t){if(e&&e.defaultProps)for(var n in t=Mz({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}var w$=(new xz.Component).refs;function E$(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:Mz({},t,n),e.memoizedState=n,null!==(r=e.updateQueue)&&0===e.expirationTime&&(r.baseState=n)}var k$={isMounted:function(e){return!!(e=e._reactInternalFiber)&&2===xV(e)},enqueueSetState:function(e,t,n){e=e._reactInternalFiber;var r=DY(),i=iW(r=rY(r,e));i.payload=t,null!=n&&(i.callback=n),JW(),aW(e,i),sY(e,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternalFiber;var r=DY(),i=iW(r=rY(r,e));i.tag=QU,i.payload=t,null!=n&&(i.callback=n),JW(),aW(e,i),sY(e,r)},enqueueForceUpdate:function(e,t){e=e._reactInternalFiber;var n=DY(),r=iW(n=rY(n,e));r.tag=eW,null!=t&&(r.callback=t),JW(),aW(e,r),sY(e,n)}};function C$(e,t,n,r,i,o,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,a):!t.prototype||!t.prototype.isPureReactComponent||(!bV(n,r)||!bV(i,o))}function O$(e,t,n){var r=!1,i=XH,o=t.contextType;return"object"==typeof o&&null!==o?o=ZU(o):(i=QH(t)?JH:GH.current,o=(r=null!=(r=t.contextTypes))?ZH(e,i):XH),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=k$,e.stateNode=t,t._reactInternalFiber=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function T$(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&&k$.enqueueReplaceState(t,t.state,null)}function A$(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=w$;var o=t.contextType;"object"==typeof o&&null!==o?i.context=ZU(o):(o=QH(t)?JH:GH.current,i.context=ZH(e,o)),null!==(o=e.updateQueue)&&(cW(e,o,n,i,r),i.state=e.memoizedState),"function"==typeof(o=t.getDerivedStateFromProps)&&(E$(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&&k$.enqueueReplaceState(i,i.state,null),null!==(o=e.updateQueue)&&(cW(e,o,n,i,r),i.state=e.memoizedState)),"function"==typeof i.componentDidMount&&(e.effectTag|=4)}var N$=Array.isArray;function q$(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){n=n._owner;var r=void 0;n&&(1!==n.tag&&Ez("309"),r=n.stateNode),r||Ez("147",e);var i=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===i?t.ref:((t=function(e){var t=r.refs;t===w$&&(t=r.refs={}),null===e?delete t[i]:t[i]=e})._stringRef=i,t)}"string"!=typeof e&&Ez("284"),n._owner||Ez("290",e)}return e}function D$(e,t){"textarea"!==e.type&&Ez("31","[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t,"")}function R$(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.effectTag=8}}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,n){return(e=f$(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.effectTag=2,n):r:(t.effectTag=2,n):n}function a(t){return e&&null===t.alternate&&(t.effectTag=2),t}function s(e,t,n,r){return null===t||6!==t.tag?((t=y$(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function l(e,t,n,r){return null!==t&&t.elementType===n.type?((r=i(t,n.props)).ref=q$(e,t,n),r.return=e,r):((r=h$(n.type,n.key,n.props,null,e.mode,r)).ref=q$(e,t,n),r.return=e,r)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=g$(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function c(e,t,n,r,o){return null===t||7!==t.tag?((t=p$(n,e.mode,r,o)).return=e,t):((t=i(t,n)).return=e,t)}function d(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=y$(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case fB:return(n=h$(t.type,t.key,t.props,null,e.mode,n)).ref=q$(e,null,t),n.return=e,n;case hB:return(t=g$(t,e.mode,n)).return=e,t}if(N$(t)||kB(t))return(t=p$(t,e.mode,n,null)).return=e,t;D$(e,t)}return null}function f(e,t,n,r){var i=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==i?null:s(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case fB:return n.key===i?n.type===pB?c(e,t,n.props.children,r,i):l(e,t,n,r):null;case hB:return n.key===i?u(e,t,n,r):null}if(N$(n)||kB(n))return null!==i?null:c(e,t,n,r,null);D$(e,n)}return null}function h(e,t,n,r,i){if("string"==typeof r||"number"==typeof r)return s(t,e=e.get(n)||null,""+r,i);if("object"==typeof r&&null!==r){switch(r.$$typeof){case fB:return e=e.get(null===r.key?n:r.key)||null,r.type===pB?c(t,e,r.props.children,i,r.key):l(t,e,r,i);case hB:return u(t,e=e.get(null===r.key?n:r.key)||null,r,i)}if(N$(r)||kB(r))return c(t,e=e.get(n)||null,r,i,null);D$(t,r)}return null}function p(i,a,s,l){for(var u=null,c=null,p=a,m=a=0,y=null;null!==p&&m<s.length;m++){p.index>m?(y=p,p=null):y=p.sibling;var g=f(i,p,s[m],l);if(null===g){null===p&&(p=y);break}e&&p&&null===g.alternate&&t(i,p),a=o(g,a,m),null===c?u=g:c.sibling=g,c=g,p=y}if(m===s.length)return n(i,p),u;if(null===p){for(;m<s.length;m++)(p=d(i,s[m],l))&&(a=o(p,a,m),null===c?u=p:c.sibling=p,c=p);return u}for(p=r(i,p);m<s.length;m++)(y=h(p,i,m,s[m],l))&&(e&&null!==y.alternate&&p.delete(null===y.key?m:y.key),a=o(y,a,m),null===c?u=y:c.sibling=y,c=y);return e&&p.forEach((function(e){return t(i,e)})),u}function m(i,a,s,l){var u=kB(s);"function"!=typeof u&&Ez("150"),null==(s=u.call(s))&&Ez("151");for(var c=u=null,p=a,m=a=0,y=null,g=s.next();null!==p&&!g.done;m++,g=s.next()){p.index>m?(y=p,p=null):y=p.sibling;var v=f(i,p,g.value,l);if(null===v){p||(p=y);break}e&&p&&null===v.alternate&&t(i,p),a=o(v,a,m),null===c?u=v:c.sibling=v,c=v,p=y}if(g.done)return n(i,p),u;if(null===p){for(;!g.done;m++,g=s.next())null!==(g=d(i,g.value,l))&&(a=o(g,a,m),null===c?u=g:c.sibling=g,c=g);return u}for(p=r(i,p);!g.done;m++,g=s.next())null!==(g=h(p,i,m,g.value,l))&&(e&&null!==g.alternate&&p.delete(null===g.key?m:g.key),a=o(g,a,m),null===c?u=g:c.sibling=g,c=g);return e&&p.forEach((function(e){return t(i,e)})),u}return function(e,r,o,s){var l="object"==typeof o&&null!==o&&o.type===pB&&null===o.key;l&&(o=o.props.children);var u="object"==typeof o&&null!==o;if(u)switch(o.$$typeof){case fB:e:{for(u=o.key,l=r;null!==l;){if(l.key===u){if(7===l.tag?o.type===pB:l.elementType===o.type){n(e,l.sibling),(r=i(l,o.type===pB?o.props.children:o.props)).ref=q$(e,l,o),r.return=e,e=r;break e}n(e,l);break}t(e,l),l=l.sibling}o.type===pB?((r=p$(o.props.children,e.mode,s,o.key)).return=e,e=r):((s=h$(o.type,o.key,o.props,null,e.mode,s)).ref=q$(e,r,o),s.return=e,e=s)}return a(e);case hB:e:{for(l=o.key;null!==r;){if(r.key===l){if(4===r.tag&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),(r=i(r,o.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=g$(o,e.mode,s)).return=e,e=r}return a(e)}if("string"==typeof o||"number"==typeof o)return o=""+o,null!==r&&6===r.tag?(n(e,r.sibling),(r=i(r,o)).return=e,e=r):(n(e,r),(r=y$(o,e.mode,s)).return=e,e=r),a(e);if(N$(o))return p(e,r,o,s);if(kB(o))return m(e,r,o,s);if(u&&D$(e,o),void 0===o&&!l)switch(e.tag){case 1:case 0:Ez("152",(s=e.type).displayName||s.name||"Component")}return n(e,r)}}var I$=R$(!0),_$=R$(!1),P$={},L$={current:P$},j$={current:P$},z$={current:P$};function F$(e){return e===P$&&Ez("174"),e}function B$(e,t){YH(z$,t),YH(j$,e),YH(L$,P$);var n=t.nodeType;switch(n){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:MH(null,"");break;default:t=MH(t=(n=8===n?t.parentNode:t).namespaceURI||null,n=n.tagName)}WH(L$),YH(L$,t)}function V$(e){WH(L$),WH(j$),WH(z$)}function H$(e){F$(z$.current);var t=F$(L$.current),n=MH(t,e.type);t!==n&&(YH(j$,e),YH(L$,n))}function $$(e){j$.current===e&&(WH(L$),WH(j$))}var U$=uB.ReactCurrentDispatcher,W$=0,Y$=null,X$=null,G$=null,K$=null,J$=null,Z$=null,Q$=0,eU=null,tU=0,nU=!1,rU=null,iU=0;function oU(){Ez("307")}function aU(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!gV(e[n],t[n]))return!1;return!0}function sU(e,t,n,r,i,o){if(W$=o,Y$=t,G$=null!==e?e.memoizedState:null,U$.current=null===G$?xU:MU,t=n(r,i),nU){do{nU=!1,iU+=1,G$=null!==e?e.memoizedState:null,Z$=K$,eU=J$=X$=null,U$.current=MU,t=n(r,i)}while(nU);rU=null,iU=0}return U$.current=bU,(e=Y$).memoizedState=K$,e.expirationTime=Q$,e.updateQueue=eU,e.effectTag|=tU,e=null!==X$&&null!==X$.next,W$=0,Z$=J$=K$=G$=X$=Y$=null,Q$=0,eU=null,tU=0,e&&Ez("300"),t}function lU(){U$.current=bU,W$=0,Z$=J$=K$=G$=X$=Y$=null,Q$=0,eU=null,tU=0,nU=!1,rU=null,iU=0}function uU(){var e={memoizedState:null,baseState:null,queue:null,baseUpdate:null,next:null};return null===J$?K$=J$=e:J$=J$.next=e,J$}function cU(){if(null!==Z$)Z$=(J$=Z$).next,G$=null!==(X$=G$)?X$.next:null;else{null===G$&&Ez("310");var e={memoizedState:(X$=G$).memoizedState,baseState:X$.baseState,queue:X$.queue,baseUpdate:X$.baseUpdate,next:null};J$=null===J$?K$=e:J$.next=e,G$=X$.next}return J$}function dU(e,t){return"function"==typeof t?t(e):t}function fU(e){var t=cU(),n=t.queue;if(null===n&&Ez("311"),0<iU){var r=n.dispatch;if(null!==rU){var i=rU.get(n);if(void 0!==i){rU.delete(n);var o=t.memoizedState;do{o=e(o,i.action),i=i.next}while(null!==i);return gV(o,t.memoizedState)||(DU=!0),t.memoizedState=o,t.baseUpdate===n.last&&(t.baseState=o),n.eagerReducer=e,n.eagerState=o,[o,r]}}return[t.memoizedState,r]}r=n.last;var a=t.baseUpdate;if(o=t.baseState,null!==a?(null!==r&&(r.next=null),r=a.next):r=null!==r?r.next:null,null!==r){var s=i=null,l=r,u=!1;do{var c=l.expirationTime;c<W$?(u||(u=!0,s=a,i=o),c>Q$&&(Q$=c)):o=l.eagerReducer===e?l.eagerState:e(o,l.action),a=l,l=l.next}while(null!==l&&l!==r);u||(s=a,i=o),gV(o,t.memoizedState)||(DU=!0),t.memoizedState=o,t.baseUpdate=s,t.baseState=i,n.eagerReducer=e,n.eagerState=o}return[t.memoizedState,n.dispatch]}function hU(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===eU?(eU={lastEffect:null}).lastEffect=e.next=e:null===(t=eU.lastEffect)?eU.lastEffect=e.next=e:(n=t.next,t.next=e,e.next=n,eU.lastEffect=e),e}function pU(e,t,n,r){var i=uU();tU|=e,i.memoizedState=hU(t,n,void 0,void 0===r?null:r)}function mU(e,t,n,r){var i=cU();r=void 0===r?null:r;var o=void 0;if(null!==X$){var a=X$.memoizedState;if(o=a.destroy,null!==r&&aU(r,a.deps))return void hU(0,n,o,r)}tU|=e,i.memoizedState=hU(t,n,o,r)}function yU(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 gU(){}function vU(e,t,n){25>iU||Ez("301");var r=e.alternate;if(e===Y$||null!==r&&r===Y$)if(nU=!0,e={expirationTime:W$,action:n,eagerReducer:null,eagerState:null,next:null},null===rU&&(rU=new Map),void 0===(n=rU.get(t)))rU.set(t,e);else{for(t=n;null!==t.next;)t=t.next;t.next=e}else{JW();var i=DY(),o={expirationTime:i=rY(i,e),action:n,eagerReducer:null,eagerState:null,next:null},a=t.last;if(null===a)o.next=o;else{var s=a.next;null!==s&&(o.next=s),a.next=o}if(t.last=o,0===e.expirationTime&&(null===r||0===r.expirationTime)&&null!==(r=t.eagerReducer))try{var l=t.eagerState,u=r(l,n);if(o.eagerReducer=r,o.eagerState=u,gV(u,l))return}catch(e){}sY(e,i)}}var bU={readContext:ZU,useCallback:oU,useContext:oU,useEffect:oU,useImperativeHandle:oU,useLayoutEffect:oU,useMemo:oU,useReducer:oU,useRef:oU,useState:oU,useDebugValue:oU},xU={readContext:ZU,useCallback:function(e,t){return uU().memoizedState=[e,void 0===t?null:t],e},useContext:ZU,useEffect:function(e,t){return pU(516,192,e,t)},useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,pU(4,36,yU.bind(null,t,e),n)},useLayoutEffect:function(e,t){return pU(4,36,e,t)},useMemo:function(e,t){var n=uU();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=uU();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={last:null,dispatch:null,eagerReducer:e,eagerState:t}).dispatch=vU.bind(null,Y$,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},uU().memoizedState=e},useState:function(e){var t=uU();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={last:null,dispatch:null,eagerReducer:dU,eagerState:e}).dispatch=vU.bind(null,Y$,e),[t.memoizedState,e]},useDebugValue:gU},MU={readContext:ZU,useCallback:function(e,t){var n=cU();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&aU(t,r[1])?r[0]:(n.memoizedState=[e,t],e)},useContext:ZU,useEffect:function(e,t){return mU(516,192,e,t)},useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,mU(4,36,yU.bind(null,t,e),n)},useLayoutEffect:function(e,t){return mU(4,36,e,t)},useMemo:function(e,t){var n=cU();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&aU(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)},useReducer:fU,useRef:function(){return cU().memoizedState},useState:function(e){return fU(dU)},useDebugValue:gU},SU=null,wU=null,EU=!1;function kU(e,t){var n=c$(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.effectTag=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function CU(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,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);case 13:default:return!1}}function OU(e){if(EU){var t=wU;if(t){var n=t;if(!CU(e,t)){if(!(t=VH(n))||!CU(e,t))return e.effectTag|=2,EU=!1,void(SU=e);kU(SU,n)}SU=e,wU=HH(t)}else e.effectTag|=2,EU=!1,SU=e}}function TU(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&18!==e.tag;)e=e.return;SU=e}function AU(e){if(e!==SU)return!1;if(!EU)return TU(e),EU=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!LH(t,e.memoizedProps))for(t=wU;t;)kU(e,t),t=VH(t);return TU(e),wU=SU?VH(e.stateNode):null,!0}function NU(){wU=SU=null,EU=!1}var qU=uB.ReactCurrentOwner,DU=!1;function RU(e,t,n,r){t.child=null===e?_$(t,null,n,r):I$(t,e.child,n,r)}function IU(e,t,n,r,i){n=n.render;var o=t.ref;return JU(t,i),r=sU(e,t,n,r,o,i),null===e||DU?(t.effectTag|=1,RU(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=i&&(e.expirationTime=0),HU(e,t,i))}function _U(e,t,n,r,i,o){if(null===e){var a=n.type;return"function"!=typeof a||d$(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=h$(n.type,null,r,null,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,PU(e,t,a,r,i,o))}return a=e.child,i<o&&(i=a.memoizedProps,(n=null!==(n=n.compare)?n:bV)(i,r)&&e.ref===t.ref)?HU(e,t,o):(t.effectTag|=1,(e=f$(a,r)).ref=t.ref,e.return=t,t.child=e)}function PU(e,t,n,r,i,o){return null!==e&&bV(e.memoizedProps,r)&&e.ref===t.ref&&(DU=!1,i<o)?HU(e,t,o):jU(e,t,n,r,o)}function LU(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.effectTag|=128)}function jU(e,t,n,r,i){var o=QH(n)?JH:GH.current;return o=ZH(t,o),JU(t,i),n=sU(e,t,n,r,o,i),null===e||DU?(t.effectTag|=1,RU(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=i&&(e.expirationTime=0),HU(e,t,i))}function zU(e,t,n,r,i){if(QH(n)){var o=!0;i$(t)}else o=!1;if(JU(t,i),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),O$(t,n,r),A$(t,n,r,i),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,u=n.contextType;"object"==typeof u&&null!==u?u=ZU(u):u=ZH(t,u=QH(n)?JH:GH.current);var c=n.getDerivedStateFromProps,d="function"==typeof c||"function"==typeof a.getSnapshotBeforeUpdate;d||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||l!==u)&&T$(t,a,r,u),tW=!1;var f=t.memoizedState;l=a.state=f;var h=t.updateQueue;null!==h&&(cW(t,h,r,a,i),l=t.memoizedState),s!==r||f!==l||KH.current||tW?("function"==typeof c&&(E$(t,n,c,r),l=t.memoizedState),(s=tW||C$(t,n,s,r,f,l,u))?(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.effectTag|=4)):("function"==typeof a.componentDidMount&&(t.effectTag|=4),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=u,r=s):("function"==typeof a.componentDidMount&&(t.effectTag|=4),r=!1)}else a=t.stateNode,s=t.memoizedProps,a.props=t.type===t.elementType?s:S$(t.type,s),l=a.context,"object"==typeof(u=n.contextType)&&null!==u?u=ZU(u):u=ZH(t,u=QH(n)?JH:GH.current),(d="function"==typeof(c=n.getDerivedStateFromProps)||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||l!==u)&&T$(t,a,r,u),tW=!1,l=t.memoizedState,f=a.state=l,null!==(h=t.updateQueue)&&(cW(t,h,r,a,i),f=t.memoizedState),s!==r||l!==f||KH.current||tW?("function"==typeof c&&(E$(t,n,c,r),f=t.memoizedState),(c=tW||C$(t,n,s,r,l,f,u))?(d||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,f,u),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,f,u)),"function"==typeof a.componentDidUpdate&&(t.effectTag|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.effectTag|=256)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=256),t.memoizedProps=r,t.memoizedState=f),a.props=r,a.state=f,a.context=u,r=c):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=256),r=!1);return FU(e,t,n,r,o,i)}function FU(e,t,n,r,i,o){LU(e,t);var a=0!=(64&t.effectTag);if(!r&&!a)return i&&o$(t,n,!1),HU(e,t,o);r=t.stateNode,qU.current=t;var s=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.effectTag|=1,null!==e&&a?(t.child=I$(t,e.child,null,o),t.child=I$(t,null,s,o)):RU(e,t,s,o),t.memoizedState=r.state,i&&o$(t,n,!0),t.child}function BU(e){var t=e.stateNode;t.pendingContext?n$(0,t.pendingContext,t.pendingContext!==t.context):t.context&&n$(0,t.context,!1),B$(e,t.containerInfo)}function VU(e,t,n){var r=t.mode,i=t.pendingProps,o=t.memoizedState;if(0==(64&t.effectTag)){o=null;var a=!1}else o={timedOutAt:null!==o?o.timedOutAt:0},a=!0,t.effectTag&=-65;if(null===e)if(a){var s=i.fallback;e=p$(null,r,0,null),0==(1&t.mode)&&(e.child=null!==t.memoizedState?t.child.child:t.child),r=p$(s,r,n,null),e.sibling=r,(n=e).return=r.return=t}else n=r=_$(t,null,i.children,n);else null!==e.memoizedState?(s=(r=e.child).sibling,a?(n=i.fallback,i=f$(r,r.pendingProps),0==(1&t.mode)&&((a=null!==t.memoizedState?t.child.child:t.child)!==r.child&&(i.child=a)),r=i.sibling=f$(s,n,s.expirationTime),n=i,i.childExpirationTime=0,n.return=r.return=t):n=r=I$(t,r.child,i.children,n)):(s=e.child,a?(a=i.fallback,(i=p$(null,r,0,null)).child=s,0==(1&t.mode)&&(i.child=null!==t.memoizedState?t.child.child:t.child),(r=i.sibling=p$(a,r,n,null)).effectTag|=2,n=i,i.childExpirationTime=0,n.return=r.return=t):r=n=I$(t,s,i.children,n)),t.stateNode=e.stateNode;return t.memoizedState=o,t.child=n,r}function HU(e,t,n){if(null!==e&&(t.contextDependencies=e.contextDependencies),t.childExpirationTime<n)return null;if(null!==e&&t.child!==e.child&&Ez("153"),null!==t.child){for(n=f$(e=t.child,e.pendingProps,e.expirationTime),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=f$(e,e.pendingProps,e.expirationTime)).return=t;n.sibling=null}return t.child}function $U(e,t,n){var r=t.expirationTime;if(null!==e){if(e.memoizedProps!==t.pendingProps||KH.current)DU=!0;else if(r<n){switch(DU=!1,t.tag){case 3:BU(t),NU();break;case 5:H$(t);break;case 1:QH(t.type)&&i$(t);break;case 4:B$(t,t.stateNode.containerInfo);break;case 10:GU(t,t.memoizedProps.value);break;case 13:if(null!==t.memoizedState)return 0!==(r=t.child.childExpirationTime)&&r>=n?VU(e,t,n):null!==(t=HU(e,t,n))?t.sibling:null}return HU(e,t,n)}}else DU=!1;switch(t.expirationTime=0,t.tag){case 2:r=t.elementType,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps;var i=ZH(t,GH.current);if(JU(t,n),i=sU(null,t,r,e,i,n),t.effectTag|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof){if(t.tag=1,lU(),QH(r)){var o=!0;i$(t)}else o=!1;t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null;var a=r.getDerivedStateFromProps;"function"==typeof a&&E$(t,r,a,e),i.updater=k$,t.stateNode=i,i._reactInternalFiber=t,A$(t,r,e,n),t=FU(null,t,r,!0,o,n)}else t.tag=0,RU(null,t,i,n),t=t.child;return t;case 16:switch(i=t.elementType,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),o=t.pendingProps,e=function(e){var t=e._result;switch(e._status){case 1:return t;case 2:case 0:throw t;default:switch(e._status=0,(t=(t=e._ctor)()).then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)})),e._status){case 1:return e._result;case 2:throw e._result}throw e._result=t,t}}(i),t.type=e,i=t.tag=function(e){if("function"==typeof e)return d$(e)?1:0;if(null!=e){if((e=e.$$typeof)===xB)return 11;if(e===SB)return 14}return 2}(e),o=S$(e,o),a=void 0,i){case 0:a=jU(null,t,e,o,n);break;case 1:a=zU(null,t,e,o,n);break;case 11:a=IU(null,t,e,o,n);break;case 14:a=_U(null,t,e,S$(e.type,o),r,n);break;default:Ez("306",e,"")}return a;case 0:return r=t.type,i=t.pendingProps,jU(e,t,r,i=t.elementType===r?i:S$(r,i),n);case 1:return r=t.type,i=t.pendingProps,zU(e,t,r,i=t.elementType===r?i:S$(r,i),n);case 3:return BU(t),null===(r=t.updateQueue)&&Ez("282"),i=null!==(i=t.memoizedState)?i.element:null,cW(t,r,t.pendingProps,null,n),(r=t.memoizedState.element)===i?(NU(),t=HU(e,t,n)):(i=t.stateNode,(i=(null===e||null===e.child)&&i.hydrate)&&(wU=HH(t.stateNode.containerInfo),SU=t,i=EU=!0),i?(t.effectTag|=2,t.child=_$(t,null,r,n)):(RU(e,t,r,n),NU()),t=t.child),t;case 5:return H$(t),null===e&&OU(t),r=t.type,i=t.pendingProps,o=null!==e?e.memoizedProps:null,a=i.children,LH(r,i)?a=null:null!==o&&LH(r,o)&&(t.effectTag|=16),LU(e,t),1!==n&&1&t.mode&&i.hidden?(t.expirationTime=t.childExpirationTime=1,t=null):(RU(e,t,a,n),t=t.child),t;case 6:return null===e&&OU(t),null;case 13:return VU(e,t,n);case 4:return B$(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=I$(t,null,r,n):RU(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,IU(e,t,r,i=t.elementType===r?i:S$(r,i),n);case 7:return RU(e,t,t.pendingProps,n),t.child;case 8:case 12:return RU(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,a=t.memoizedProps,GU(t,o=i.value),null!==a){var s=a.value;if(0===(o=gV(s,o)?0:0|("function"==typeof r._calculateChangedBits?r._calculateChangedBits(s,o):1073741823))){if(a.children===i.children&&!KH.current){t=HU(e,t,n);break e}}else for(null!==(s=t.child)&&(s.return=t);null!==s;){var l=s.contextDependencies;if(null!==l){a=s.child;for(var u=l.first;null!==u;){if(u.context===r&&0!=(u.observedBits&o)){1===s.tag&&((u=iW(n)).tag=eW,aW(s,u)),s.expirationTime<n&&(s.expirationTime=n),null!==(u=s.alternate)&&u.expirationTime<n&&(u.expirationTime=n),u=n;for(var c=s.return;null!==c;){var d=c.alternate;if(c.childExpirationTime<u)c.childExpirationTime=u,null!==d&&d.childExpirationTime<u&&(d.childExpirationTime=u);else{if(!(null!==d&&d.childExpirationTime<u))break;d.childExpirationTime=u}c=c.return}l.expirationTime<n&&(l.expirationTime=n);break}u=u.next}}else a=10===s.tag&&s.type===t.type?null:s.child;if(null!==a)a.return=s;else for(a=s;null!==a;){if(a===t){a=null;break}if(null!==(s=a.sibling)){s.return=a.return,a=s;break}a=a.return}s=a}}RU(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=(o=t.pendingProps).children,JU(t,n),r=r(i=ZU(i,o.unstable_observedBits)),t.effectTag|=1,RU(e,t,r,n),t.child;case 14:return o=S$(i=t.type,t.pendingProps),_U(e,t,i,o=S$(i.type,o),r,n);case 15:return PU(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:S$(r,i),null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),t.tag=1,QH(r)?(e=!0,i$(t)):e=!1,JU(t,n),O$(t,r,i),A$(t,r,i,n),FU(null,t,r,!0,e,n)}Ez("156")}var UU={current:null},WU=null,YU=null,XU=null;function GU(e,t){var n=e.type._context;YH(UU,n._currentValue),n._currentValue=t}function KU(e){var t=UU.current;WH(UU),e.type._context._currentValue=t}function JU(e,t){WU=e,XU=YU=null;var n=e.contextDependencies;null!==n&&n.expirationTime>=t&&(DU=!0),e.contextDependencies=null}function ZU(e,t){return XU!==e&&!1!==t&&0!==t&&("number"==typeof t&&1073741823!==t||(XU=e,t=1073741823),t={context:e,observedBits:t,next:null},null===YU?(null===WU&&Ez("308"),YU=t,WU.contextDependencies={first:t,expirationTime:0}):YU=YU.next=t),e._currentValue}var QU=1,eW=2,tW=!1;function nW(e){return{baseState:e,firstUpdate:null,lastUpdate:null,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function rW(e){return{baseState:e.baseState,firstUpdate:e.firstUpdate,lastUpdate:e.lastUpdate,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function iW(e){return{expirationTime:e,tag:0,payload:null,callback:null,next:null,nextEffect:null}}function oW(e,t){null===e.lastUpdate?e.firstUpdate=e.lastUpdate=t:(e.lastUpdate.next=t,e.lastUpdate=t)}function aW(e,t){var n=e.alternate;if(null===n){var r=e.updateQueue,i=null;null===r&&(r=e.updateQueue=nW(e.memoizedState))}else r=e.updateQueue,i=n.updateQueue,null===r?null===i?(r=e.updateQueue=nW(e.memoizedState),i=n.updateQueue=nW(n.memoizedState)):r=e.updateQueue=rW(i):null===i&&(i=n.updateQueue=rW(r));null===i||r===i?oW(r,t):null===r.lastUpdate||null===i.lastUpdate?(oW(r,t),oW(i,t)):(oW(r,t),i.lastUpdate=t)}function sW(e,t){var n=e.updateQueue;null===(n=null===n?e.updateQueue=nW(e.memoizedState):lW(e,n)).lastCapturedUpdate?n.firstCapturedUpdate=n.lastCapturedUpdate=t:(n.lastCapturedUpdate.next=t,n.lastCapturedUpdate=t)}function lW(e,t){var n=e.alternate;return null!==n&&t===n.updateQueue&&(t=e.updateQueue=rW(t)),t}function uW(e,t,n,r,i,o){switch(n.tag){case QU:return"function"==typeof(e=n.payload)?e.call(o,r,i):e;case 3:e.effectTag=-2049&e.effectTag|64;case 0:if(null==(i="function"==typeof(e=n.payload)?e.call(o,r,i):e))break;return Mz({},r,i);case eW:tW=!0}return r}function cW(e,t,n,r,i){tW=!1;for(var o=(t=lW(e,t)).baseState,a=null,s=0,l=t.firstUpdate,u=o;null!==l;){var c=l.expirationTime;c<i?(null===a&&(a=l,o=u),s<c&&(s=c)):(u=uW(e,0,l,u,n,r),null!==l.callback&&(e.effectTag|=32,l.nextEffect=null,null===t.lastEffect?t.firstEffect=t.lastEffect=l:(t.lastEffect.nextEffect=l,t.lastEffect=l))),l=l.next}for(c=null,l=t.firstCapturedUpdate;null!==l;){var d=l.expirationTime;d<i?(null===c&&(c=l,null===a&&(o=u)),s<d&&(s=d)):(u=uW(e,0,l,u,n,r),null!==l.callback&&(e.effectTag|=32,l.nextEffect=null,null===t.lastCapturedEffect?t.firstCapturedEffect=t.lastCapturedEffect=l:(t.lastCapturedEffect.nextEffect=l,t.lastCapturedEffect=l))),l=l.next}null===a&&(t.lastUpdate=null),null===c?t.lastCapturedUpdate=null:e.effectTag|=32,null===a&&null===c&&(o=u),t.baseState=o,t.firstUpdate=a,t.firstCapturedUpdate=c,e.expirationTime=s,e.memoizedState=u}function dW(e,t,n){null!==t.firstCapturedUpdate&&(null!==t.lastUpdate&&(t.lastUpdate.next=t.firstCapturedUpdate,t.lastUpdate=t.lastCapturedUpdate),t.firstCapturedUpdate=t.lastCapturedUpdate=null),fW(t.firstEffect,n),t.firstEffect=t.lastEffect=null,fW(t.firstCapturedEffect,n),t.firstCapturedEffect=t.lastCapturedEffect=null}function fW(e,t){for(;null!==e;){var n=e.callback;if(null!==n){e.callback=null;var r=t;"function"!=typeof n&&Ez("191",n),n.call(r)}e=e.nextEffect}}function hW(e,t){return{value:e,source:t,stack:OB(t)}}function pW(e){e.effectTag|=4}var mW,yW,gW;mW=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}},yW=function(e,t,n,r,i){var o=e.memoizedProps;if(o!==r){var a=t.stateNode;switch(F$(L$.current),e=null,n){case"input":o=jB(a,o),r=jB(a,r),e=[];break;case"option":o=fH(a,o),r=fH(a,r),e=[];break;case"select":o=Mz({},o,{value:void 0}),r=Mz({},r,{value:void 0}),e=[];break;case"textarea":o=pH(a,o),r=pH(a,r),e=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(a.onclick=RH)}NH(n,r),a=n=void 0;var s=null;for(n in o)if(!r.hasOwnProperty(n)&&o.hasOwnProperty(n)&&null!=o[n])if("style"===n){var l=o[n];for(a in l)l.hasOwnProperty(a)&&(s||(s={}),s[a]="")}else"dangerouslySetInnerHTML"!==n&&"children"!==n&&"suppressContentEditableWarning"!==n&&"suppressHydrationWarning"!==n&&"autoFocus"!==n&&(jz.hasOwnProperty(n)?e||(e=[]):(e=e||[]).push(n,null));for(n in r){var u=r[n];if(l=null!=o?o[n]:void 0,r.hasOwnProperty(n)&&u!==l&&(null!=u||null!=l))if("style"===n)if(l){for(a in l)!l.hasOwnProperty(a)||u&&u.hasOwnProperty(a)||(s||(s={}),s[a]="");for(a in u)u.hasOwnProperty(a)&&l[a]!==u[a]&&(s||(s={}),s[a]=u[a])}else s||(e||(e=[]),e.push(n,s)),s=u;else"dangerouslySetInnerHTML"===n?(u=u?u.__html:void 0,l=l?l.__html:void 0,null!=u&&l!==u&&(e=e||[]).push(n,""+u)):"children"===n?l===u||"string"!=typeof u&&"number"!=typeof u||(e=e||[]).push(n,""+u):"suppressContentEditableWarning"!==n&&"suppressHydrationWarning"!==n&&(jz.hasOwnProperty(n)?(null!=u&&DH(i,n),e||l===u||(e=[])):(e=e||[]).push(n,u))}s&&(e=e||[]).push("style",s),i=e,(t.updateQueue=i)&&pW(t)}},gW=function(e,t,n,r){n!==r&&pW(t)};var vW="function"==typeof WeakSet?WeakSet:Set;function bW(e,t){var n=t.source,r=t.stack;null===r&&null!==n&&(r=OB(n)),null!==n&&CB(n.type),t=t.value,null!==e&&1===e.tag&&CB(e.type);try{console.error(t)}catch(e){setTimeout((function(){throw e}))}}function xW(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){nY(e,t)}else t.current=null}function MW(e,t,n){if(null!==(n=null!==(n=n.updateQueue)?n.lastEffect:null)){var r=n=n.next;do{if(0!=(r.tag&e)){var i=r.destroy;r.destroy=void 0,void 0!==i&&i()}0!=(r.tag&t)&&(i=r.create,r.destroy=i()),r=r.next}while(r!==n)}}function SW(e){switch("function"==typeof s$&&s$(e),e.tag){case 0:case 11:case 14:case 15:var t=e.updateQueue;if(null!==t&&null!==(t=t.lastEffect)){var n=t=t.next;do{var r=n.destroy;if(void 0!==r){var i=e;try{r()}catch(e){nY(i,e)}}n=n.next}while(n!==t)}break;case 1:if(xW(e),"function"==typeof(t=e.stateNode).componentWillUnmount)try{t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()}catch(t){nY(e,t)}break;case 5:xW(e);break;case 4:kW(e)}}function wW(e){return 5===e.tag||3===e.tag||4===e.tag}function EW(e){e:{for(var t=e.return;null!==t;){if(wW(t)){var n=t;break e}t=t.return}Ez("160"),n=void 0}var r=t=void 0;switch(n.tag){case 5:t=n.stateNode,r=!1;break;case 3:case 4:t=n.stateNode.containerInfo,r=!0;break;default:Ez("161")}16&n.effectTag&&(EH(t,""),n.effectTag&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||wW(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.effectTag)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.effectTag)){n=n.stateNode;break e}}for(var i=e;;){if(5===i.tag||6===i.tag)if(n)if(r){var o=t,a=i.stateNode,s=n;8===o.nodeType?o.parentNode.insertBefore(a,s):o.insertBefore(a,s)}else t.insertBefore(i.stateNode,n);else r?(a=t,s=i.stateNode,8===a.nodeType?(o=a.parentNode).insertBefore(s,a):(o=a).appendChild(s),null!=(a=a._reactRootContainer)||null!==o.onclick||(o.onclick=RH)):t.appendChild(i.stateNode);else if(4!==i.tag&&null!==i.child){i.child.return=i,i=i.child;continue}if(i===e)break;for(;null===i.sibling;){if(null===i.return||i.return===e)return;i=i.return}i.sibling.return=i.return,i=i.sibling}}function kW(e){for(var t=e,n=!1,r=void 0,i=void 0;;){if(!n){n=t.return;e:for(;;){switch(null===n&&Ez("160"),n.tag){case 5:r=n.stateNode,i=!1;break e;case 3:case 4:r=n.stateNode.containerInfo,i=!0;break e}n=n.return}n=!0}if(5===t.tag||6===t.tag){e:for(var o=t,a=o;;)if(SW(a),null!==a.child&&4!==a.tag)a.child.return=a,a=a.child;else{if(a===o)break;for(;null===a.sibling;){if(null===a.return||a.return===o)break e;a=a.return}a.sibling.return=a.return,a=a.sibling}i?(o=r,a=t.stateNode,8===o.nodeType?o.parentNode.removeChild(a):o.removeChild(a)):r.removeChild(t.stateNode)}else if(4===t.tag){if(null!==t.child){r=t.stateNode.containerInfo,i=!0,t.child.return=t,t=t.child;continue}}else if(SW(t),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;4===(t=t.return).tag&&(n=!1)}t.sibling.return=t.return,t=t.sibling}}function CW(e,t){switch(t.tag){case 0:case 11:case 14:case 15:MW(4,8,t);break;case 1:break;case 5:var n=t.stateNode;if(null!=n){var r=t.memoizedProps;e=null!==e?e.memoizedProps:r;var i=t.type,o=t.updateQueue;t.updateQueue=null,null!==o&&function(e,t,n,r,i){e[Qz]=i,"input"===n&&"radio"===i.type&&null!=i.name&&FB(e,i),qH(n,r),r=qH(n,i);for(var o=0;o<t.length;o+=2){var a=t[o],s=t[o+1];"style"===a?TH(e,s):"dangerouslySetInnerHTML"===a?wH(e,s):"children"===a?EH(e,s):PB(e,a,s,r)}switch(n){case"input":BB(e,i);break;case"textarea":yH(e,i);break;case"select":t=e._wrapperState.wasMultiple,e._wrapperState.wasMultiple=!!i.multiple,null!=(n=i.value)?hH(e,!!i.multiple,n,!1):t!==!!i.multiple&&(null!=i.defaultValue?hH(e,!!i.multiple,i.defaultValue,!0):hH(e,!!i.multiple,i.multiple?[]:"",!1))}}(n,o,i,e,r)}break;case 6:null===t.stateNode&&Ez("162"),t.stateNode.nodeValue=t.memoizedProps;break;case 3:case 12:break;case 13:if(n=t.memoizedState,r=void 0,e=t,null===n?r=!1:(r=!0,e=t.child,0===n.timedOutAt&&(n.timedOutAt=DY())),null!==e&&function(e,t){for(var n=e;;){if(5===n.tag){var r=n.stateNode;if(t)r.style.display="none";else{r=n.stateNode;var i=n.memoizedProps.style;i=null!=i&&i.hasOwnProperty("display")?i.display:null,r.style.display=OH("display",i)}}else if(6===n.tag)n.stateNode.nodeValue=t?"":n.memoizedProps;else{if(13===n.tag&&null!==n.memoizedState){(r=n.child.sibling).return=n,n=r;continue}if(null!==n.child){n.child.return=n,n=n.child;continue}}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}(e,r),null!==(n=t.updateQueue)){t.updateQueue=null;var a=t.stateNode;null===a&&(a=t.stateNode=new vW),n.forEach((function(e){var n=oY.bind(null,t,e);a.has(e)||(a.add(e),e.then(n,n))}))}break;case 17:break;default:Ez("163")}}var OW="function"==typeof WeakMap?WeakMap:Map;function TW(e,t,n){(n=iW(n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){VY(r),bW(e,t)},n}function AW(e,t,n){(n=iW(n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var i=t.value;n.payload=function(){return r(i)}}var o=e.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===UW?UW=new Set([this]):UW.add(this));var n=t.value,i=t.stack;bW(e,t),this.componentDidCatch(n,{componentStack:null!==i?i:""})}),n}function NW(e){switch(e.tag){case 1:QH(e.type)&&e$();var t=e.effectTag;return 2048&t?(e.effectTag=-2049&t|64,e):null;case 3:return V$(),t$(),0!=(64&(t=e.effectTag))&&Ez("285"),e.effectTag=-2049&t|64,e;case 5:return $$(e),null;case 13:return 2048&(t=e.effectTag)?(e.effectTag=-2049&t|64,e):null;case 18:return null;case 4:return V$(),null;case 10:return KU(e),null;default:return null}}var qW=uB.ReactCurrentDispatcher,DW=uB.ReactCurrentOwner,RW=1073741822,IW=!1,_W=null,PW=null,LW=0,jW=-1,zW=!1,FW=null,BW=!1,VW=null,HW=null,$W=null,UW=null;function WW(){if(null!==_W)for(var e=_W.return;null!==e;){var t=e;switch(t.tag){case 1:var n=t.type.childContextTypes;null!=n&&e$();break;case 3:V$(),t$();break;case 5:$$(t);break;case 4:V$();break;case 10:KU(t)}e=e.return}PW=null,LW=0,jW=-1,zW=!1,_W=null}function YW(){for(;null!==FW;){var e=FW.effectTag;if(16&e&&EH(FW.stateNode,""),128&e){var t=FW.alternate;null!==t&&(null!==(t=t.ref)&&("function"==typeof t?t(null):t.current=null))}switch(14&e){case 2:EW(FW),FW.effectTag&=-3;break;case 6:EW(FW),FW.effectTag&=-3,CW(FW.alternate,FW);break;case 4:CW(FW.alternate,FW);break;case 8:kW(e=FW),e.return=null,e.child=null,e.memoizedState=null,e.updateQueue=null,null!==(e=e.alternate)&&(e.return=null,e.child=null,e.memoizedState=null,e.updateQueue=null)}FW=FW.nextEffect}}function XW(){for(;null!==FW;){if(256&FW.effectTag)e:{var e=FW.alternate,t=FW;switch(t.tag){case 0:case 11:case 15:MW(2,0,t);break e;case 1:if(256&t.effectTag&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:S$(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}break e;case 3:case 5:case 6:case 4:case 17:break e;default:Ez("163")}}FW=FW.nextEffect}}function GW(e,t){for(;null!==FW;){var n=FW.effectTag;if(36&n){var r=FW.alternate,i=FW,o=t;switch(i.tag){case 0:case 11:case 15:MW(16,32,i);break;case 1:var a=i.stateNode;if(4&i.effectTag)if(null===r)a.componentDidMount();else{var s=i.elementType===i.type?r.memoizedProps:S$(i.type,r.memoizedProps);a.componentDidUpdate(s,r.memoizedState,a.__reactInternalSnapshotBeforeUpdate)}null!==(r=i.updateQueue)&&dW(0,r,a);break;case 3:if(null!==(r=i.updateQueue)){if(a=null,null!==i.child)switch(i.child.tag){case 5:a=i.child.stateNode;break;case 1:a=i.child.stateNode}dW(0,r,a)}break;case 5:o=i.stateNode,null===r&&4&i.effectTag&&PH(i.type,i.memoizedProps)&&o.focus();break;case 6:case 4:case 12:case 13:case 17:break;default:Ez("163")}}128&n&&(null!==(i=FW.ref)&&(o=FW.stateNode,"function"==typeof i?i(o):i.current=o)),512&n&&(VW=e),FW=FW.nextEffect}}function KW(e,t){$W=HW=VW=null;var n=hY;hY=!0;do{if(512&t.effectTag){var r=!1,i=void 0;try{var o=t;MW(128,0,o),MW(0,64,o)}catch(e){r=!0,i=e}r&&nY(t,i)}t=t.nextEffect}while(null!==t);hY=n,0!==(n=e.expirationTime)&&RY(e,n),bY||hY||jY(1073741823,!1)}function JW(){null!==HW&&BH(HW),null!==$W&&$W()}function ZW(e,t){BW=IW=!0,e.current===t&&Ez("177");var n=e.pendingCommitExpirationTime;0===n&&Ez("261"),e.pendingCommitExpirationTime=0;var r=t.expirationTime,i=t.childExpirationTime;for(function(e,t){if(e.didError=!1,0===t)e.earliestPendingTime=0,e.latestPendingTime=0,e.earliestSuspendedTime=0,e.latestSuspendedTime=0,e.latestPingedTime=0;else{t<e.latestPingedTime&&(e.latestPingedTime=0);var n=e.latestPendingTime;0!==n&&(n>t?e.earliestPendingTime=e.latestPendingTime=0:e.earliestPendingTime>t&&(e.earliestPendingTime=e.latestPendingTime)),0===(n=e.earliestSuspendedTime)?v$(e,t):t<e.latestSuspendedTime?(e.earliestSuspendedTime=0,e.latestSuspendedTime=0,e.latestPingedTime=0,v$(e,t)):t>n&&v$(e,t)}M$(0,e)}(e,i>r?i:r),DW.current=null,r=void 0,1<t.effectTag?null!==t.lastEffect?(t.lastEffect.nextEffect=t,r=t.firstEffect):r=t:r=t.firstEffect,IH=VV,_H=function(){var e=tH();if(nH(e)){if("selectionStart"in e)var t={start:e.selectionStart,end:e.selectionEnd};else e:{var n=(t=(t=e.ownerDocument)&&t.defaultView||window).getSelection&&t.getSelection();if(n&&0!==n.rangeCount){t=n.anchorNode;var r=n.anchorOffset,i=n.focusNode;n=n.focusOffset;try{t.nodeType,i.nodeType}catch(e){t=null;break e}var o=0,a=-1,s=-1,l=0,u=0,c=e,d=null;t:for(;;){for(var f;c!==t||0!==r&&3!==c.nodeType||(a=o+r),c!==i||0!==n&&3!==c.nodeType||(s=o+n),3===c.nodeType&&(o+=c.nodeValue.length),null!==(f=c.firstChild);)d=c,c=f;for(;;){if(c===e)break t;if(d===t&&++l===r&&(a=o),d===i&&++u===n&&(s=o),null!==(f=c.nextSibling))break;d=(c=d).parentNode}c=f}t=-1===a||-1===s?null:{start:a,end:s}}else t=null}t=t||{start:0,end:0}}else t=null;return{focusedElem:e,selectionRange:t}}(),VV=!1,FW=r;null!==FW;){i=!1;var o=void 0;try{XW()}catch(e){i=!0,o=e}i&&(null===FW&&Ez("178"),nY(FW,o),null!==FW&&(FW=FW.nextEffect))}for(FW=r;null!==FW;){i=!1,o=void 0;try{YW()}catch(e){i=!0,o=e}i&&(null===FW&&Ez("178"),nY(FW,o),null!==FW&&(FW=FW.nextEffect))}for(rH(_H),_H=null,VV=!!IH,IH=null,e.current=t,FW=r;null!==FW;){i=!1,o=void 0;try{GW(e,n)}catch(e){i=!0,o=e}i&&(null===FW&&Ez("178"),nY(FW,o),null!==FW&&(FW=FW.nextEffect))}if(null!==r&&null!==VW){var a=KW.bind(null,e,r);HW=Sz.unstable_runWithPriority(Sz.unstable_NormalPriority,(function(){return FH(a)})),$W=a}IW=BW=!1,"function"==typeof a$&&a$(t.stateNode),n=t.expirationTime,0===(t=(t=t.childExpirationTime)>n?t:n)&&(UW=null),function(e,t){e.expirationTime=t,e.finishedWork=null}(e,t)}function QW(e){for(;;){var t=e.alternate,n=e.return,r=e.sibling;if(0==(1024&e.effectTag)){_W=e;e:{var i=t,o=LW,a=(t=e).pendingProps;switch(t.tag){case 2:case 16:break;case 15:case 0:break;case 1:QH(t.type)&&e$();break;case 3:V$(),t$(),(a=t.stateNode).pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),null!==i&&null!==i.child||(AU(t),t.effectTag&=-3);break;case 5:$$(t);var s=F$(z$.current);if(o=t.type,null!==i&&null!=t.stateNode)yW(i,t,o,a,s),i.ref!==t.ref&&(t.effectTag|=128);else if(a){var l=F$(L$.current);if(AU(t)){i=(a=t).stateNode;var u=a.type,c=a.memoizedProps,d=s;switch(i[Zz]=a,i[Qz]=c,o=void 0,s=u){case"iframe":case"object":HV("load",i);break;case"video":case"audio":for(u=0;u<xF.length;u++)HV(xF[u],i);break;case"source":HV("error",i);break;case"img":case"image":case"link":HV("error",i),HV("load",i);break;case"form":HV("reset",i),HV("submit",i);break;case"details":HV("toggle",i);break;case"input":zB(i,c),HV("invalid",i),DH(d,"onChange");break;case"select":i._wrapperState={wasMultiple:!!c.multiple},HV("invalid",i),DH(d,"onChange");break;case"textarea":mH(i,c),HV("invalid",i),DH(d,"onChange")}for(o in NH(s,c),u=null,c)c.hasOwnProperty(o)&&(l=c[o],"children"===o?"string"==typeof l?i.textContent!==l&&(u=["children",l]):"number"==typeof l&&i.textContent!==""+l&&(u=["children",""+l]):jz.hasOwnProperty(o)&&null!=l&&DH(d,o));switch(s){case"input":sB(i),VB(i,c,!0);break;case"textarea":sB(i),gH(i);break;case"select":case"option":break;default:"function"==typeof c.onClick&&(i.onclick=RH)}o=u,a.updateQueue=o,(a=null!==o)&&pW(t)}else{c=t,i=o,d=a,u=9===s.nodeType?s:s.ownerDocument,l===vH&&(l=xH(i)),l===vH?"script"===i?((i=u.createElement("div")).innerHTML="<script><\/script>",u=i.removeChild(i.firstChild)):"string"==typeof d.is?u=u.createElement(i,{is:d.is}):(u=u.createElement(i),"select"===i&&d.multiple&&(u.multiple=!0)):u=u.createElementNS(l,i),(i=u)[Zz]=c,i[Qz]=a,mW(i,t),d=i;var f=s,h=qH(u=o,c=a);switch(u){case"iframe":case"object":HV("load",d),s=c;break;case"video":case"audio":for(s=0;s<xF.length;s++)HV(xF[s],d);s=c;break;case"source":HV("error",d),s=c;break;case"img":case"image":case"link":HV("error",d),HV("load",d),s=c;break;case"form":HV("reset",d),HV("submit",d),s=c;break;case"details":HV("toggle",d),s=c;break;case"input":zB(d,c),s=jB(d,c),HV("invalid",d),DH(f,"onChange");break;case"option":s=fH(d,c);break;case"select":d._wrapperState={wasMultiple:!!c.multiple},s=Mz({},c,{value:void 0}),HV("invalid",d),DH(f,"onChange");break;case"textarea":mH(d,c),s=pH(d,c),HV("invalid",d),DH(f,"onChange");break;default:s=c}NH(u,s),l=void 0;var p=u,m=d,y=s;for(l in y)if(y.hasOwnProperty(l)){var g=y[l];"style"===l?TH(m,g):"dangerouslySetInnerHTML"===l?null!=(g=g?g.__html:void 0)&&wH(m,g):"children"===l?"string"==typeof g?("textarea"!==p||""!==g)&&EH(m,g):"number"==typeof g&&EH(m,""+g):"suppressContentEditableWarning"!==l&&"suppressHydrationWarning"!==l&&"autoFocus"!==l&&(jz.hasOwnProperty(l)?null!=g&&DH(f,l):null!=g&&PB(m,l,g,h))}switch(u){case"input":sB(d),VB(d,c,!1);break;case"textarea":sB(d),gH(d);break;case"option":null!=c.value&&d.setAttribute("value",""+LB(c.value));break;case"select":(s=d).multiple=!!c.multiple,null!=(d=c.value)?hH(s,!!c.multiple,d,!1):null!=c.defaultValue&&hH(s,!!c.multiple,c.defaultValue,!0);break;default:"function"==typeof s.onClick&&(d.onclick=RH)}(a=PH(o,a))&&pW(t),t.stateNode=i}null!==t.ref&&(t.effectTag|=128)}else null===t.stateNode&&Ez("166");break;case 6:i&&null!=t.stateNode?gW(0,t,i.memoizedProps,a):("string"!=typeof a&&(null===t.stateNode&&Ez("166")),i=F$(z$.current),F$(L$.current),AU(t)?(o=(a=t).stateNode,i=a.memoizedProps,o[Zz]=a,(a=o.nodeValue!==i)&&pW(t)):(o=t,(a=(9===i.nodeType?i:i.ownerDocument).createTextNode(a))[Zz]=t,o.stateNode=a));break;case 11:break;case 13:if(a=t.memoizedState,0!=(64&t.effectTag)){t.expirationTime=o,_W=t;break e}a=null!==a,o=null!==i&&null!==i.memoizedState,null!==i&&!a&&o&&(null!==(i=i.child.sibling)&&(null!==(s=t.firstEffect)?(t.firstEffect=i,i.nextEffect=s):(t.firstEffect=t.lastEffect=i,i.nextEffect=null),i.effectTag=8)),(a||o)&&(t.effectTag|=4);break;case 7:case 8:case 12:break;case 4:V$();break;case 10:KU(t);break;case 9:case 14:break;case 17:QH(t.type)&&e$();break;case 18:break;default:Ez("156")}_W=null}if(t=e,1===LW||1!==t.childExpirationTime){for(a=0,o=t.child;null!==o;)(i=o.expirationTime)>a&&(a=i),(s=o.childExpirationTime)>a&&(a=s),o=o.sibling;t.childExpirationTime=a}if(null!==_W)return _W;null!==n&&0==(1024&n.effectTag)&&(null===n.firstEffect&&(n.firstEffect=e.firstEffect),null!==e.lastEffect&&(null!==n.lastEffect&&(n.lastEffect.nextEffect=e.firstEffect),n.lastEffect=e.lastEffect),1<e.effectTag&&(null!==n.lastEffect?n.lastEffect.nextEffect=e:n.firstEffect=e,n.lastEffect=e))}else{if(null!==(e=NW(e)))return e.effectTag&=1023,e;null!==n&&(n.firstEffect=n.lastEffect=null,n.effectTag|=1024)}if(null!==r)return r;if(null===n)break;e=n}return null}function eY(e){var t=$U(e.alternate,e,LW);return e.memoizedProps=e.pendingProps,null===t&&(t=QW(e)),DW.current=null,t}function tY(e,t){IW&&Ez("243"),JW(),IW=!0;var n=qW.current;qW.current=bU;var r=e.nextExpirationTimeToWorkOn;r===LW&&e===PW&&null!==_W||(WW(),LW=r,_W=f$((PW=e).current,null),e.pendingCommitExpirationTime=0);for(var i=!1;;){try{if(t)for(;null!==_W&&!PY();)_W=eY(_W);else for(;null!==_W;)_W=eY(_W)}catch(t){if(XU=YU=WU=null,lU(),null===_W)i=!0,VY(t);else{null===_W&&Ez("271");var o=_W,a=o.return;if(null!==a){e:{var s=e,l=a,u=o,c=t;if(a=LW,u.effectTag|=1024,u.firstEffect=u.lastEffect=null,null!==c&&"object"==typeof c&&"function"==typeof c.then){var d=c;c=l;var f=-1,h=-1;do{if(13===c.tag){var p=c.alternate;if(null!==p&&null!==(p=p.memoizedState)){h=10*(1073741822-p.timedOutAt);break}"number"==typeof(p=c.pendingProps.maxDuration)&&(0>=p?f=0:(-1===f||p<f)&&(f=p))}c=c.return}while(null!==c);c=l;do{if((p=13===c.tag)&&(p=void 0!==c.memoizedProps.fallback&&null===c.memoizedState),p){if(null===(l=c.updateQueue)?((l=new Set).add(d),c.updateQueue=l):l.add(d),0==(1&c.mode)){c.effectTag|=64,u.effectTag&=-1957,1===u.tag&&(null===u.alternate?u.tag=17:((a=iW(1073741823)).tag=eW,aW(u,a))),u.expirationTime=1073741823;break e}l=a;var m=(u=s).pingCache;null===m?(m=u.pingCache=new OW,p=new Set,m.set(d,p)):void 0===(p=m.get(d))&&(p=new Set,m.set(d,p)),p.has(l)||(p.add(l),u=iY.bind(null,u,d,l),d.then(u,u)),-1===f?s=1073741823:(-1===h&&(h=10*(1073741822-x$(s,a))-5e3),s=h+f),0<=s&&jW<s&&(jW=s),c.effectTag|=2048,c.expirationTime=a;break e}c=c.return}while(null!==c);c=Error((CB(u.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display."+OB(u))}zW=!0,c=hW(c,u),s=l;do{switch(s.tag){case 3:s.effectTag|=2048,s.expirationTime=a,sW(s,a=TW(s,c,a));break e;case 1:if(f=c,h=s.type,u=s.stateNode,0==(64&s.effectTag)&&("function"==typeof h.getDerivedStateFromError||null!==u&&"function"==typeof u.componentDidCatch&&(null===UW||!UW.has(u)))){s.effectTag|=2048,s.expirationTime=a,sW(s,a=AW(s,f,a));break e}}s=s.return}while(null!==s)}_W=QW(o);continue}i=!0,VY(t)}}break}if(IW=!1,qW.current=n,XU=YU=WU=null,lU(),i)PW=null,e.finishedWork=null;else if(null!==_W)e.finishedWork=null;else{if(null===(n=e.current.alternate)&&Ez("281"),PW=null,zW){if(i=e.latestPendingTime,o=e.latestSuspendedTime,a=e.latestPingedTime,0!==i&&i<r||0!==o&&o<r||0!==a&&a<r)return b$(e,r),void NY(e,n,r,e.expirationTime,-1);if(!e.didError&&t)return e.didError=!0,r=e.nextExpirationTimeToWorkOn=r,t=e.expirationTime=1073741823,void NY(e,n,r,t,-1)}t&&-1!==jW?(b$(e,r),(t=10*(1073741822-x$(e,r)))<jW&&(jW=t),t=10*(1073741822-DY()),t=jW-t,NY(e,n,r,e.expirationTime,0>t?0:t)):(e.pendingCommitExpirationTime=r,e.finishedWork=n)}}function nY(e,t){for(var n=e.return;null!==n;){switch(n.tag){case 1:var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===UW||!UW.has(r)))return aW(n,e=AW(n,e=hW(t,e),1073741823)),void sY(n,1073741823);break;case 3:return aW(n,e=TW(n,e=hW(t,e),1073741823)),void sY(n,1073741823)}n=n.return}3===e.tag&&(aW(e,n=TW(e,n=hW(t,e),1073741823)),sY(e,1073741823))}function rY(e,t){var n=Sz.unstable_getCurrentPriorityLevel(),r=void 0;if(0==(1&t.mode))r=1073741823;else if(IW&&!BW)r=LW;else{switch(n){case Sz.unstable_ImmediatePriority:r=1073741823;break;case Sz.unstable_UserBlockingPriority:r=1073741822-10*(1+((1073741822-e+15)/10|0));break;case Sz.unstable_NormalPriority:r=1073741822-25*(1+((1073741822-e+500)/25|0));break;case Sz.unstable_LowPriority:case Sz.unstable_IdlePriority:r=1;break;default:Ez("313")}null!==PW&&r===LW&&--r}return n===Sz.unstable_UserBlockingPriority&&(0===yY||r<yY)&&(yY=r),r}function iY(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),null!==PW&&LW===n?PW=null:(t=e.earliestSuspendedTime,r=e.latestSuspendedTime,0!==t&&n<=t&&n>=r&&(e.didError=!1,(0===(t=e.latestPingedTime)||t>n)&&(e.latestPingedTime=n),M$(n,e),0!==(n=e.expirationTime)&&RY(e,n)))}function oY(e,t){var n=e.stateNode;null!==n&&n.delete(t),null!==(e=aY(e,t=rY(t=DY(),e)))&&(v$(e,t),0!==(t=e.expirationTime)&&RY(e,t))}function aY(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t);var r=e.return,i=null;if(null===r&&3===e.tag)i=e.stateNode;else for(;null!==r;){if(n=r.alternate,r.childExpirationTime<t&&(r.childExpirationTime=t),null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t),null===r.return&&3===r.tag){i=r.stateNode;break}r=r.return}return i}function sY(e,t){null!==(e=aY(e,t))&&(!IW&&0!==LW&&t>LW&&WW(),v$(e,t),IW&&!BW&&PW===e||RY(e,e.expirationTime),CY>kY&&(CY=0,Ez("185")))}function lY(e,t,n,r,i){return Sz.unstable_runWithPriority(Sz.unstable_ImmediatePriority,(function(){return e(t,n,r,i)}))}var uY=null,cY=null,dY=0,fY=void 0,hY=!1,pY=null,mY=0,yY=0,gY=!1,vY=null,bY=!1,xY=!1,MY=null,SY=Sz.unstable_now(),wY=1073741822-(SY/10|0),EY=wY,kY=50,CY=0,OY=null;function TY(){wY=1073741822-((Sz.unstable_now()-SY)/10|0)}function AY(e,t){if(0!==dY){if(t<dY)return;null!==fY&&Sz.unstable_cancelCallback(fY)}dY=t,e=Sz.unstable_now()-SY,fY=Sz.unstable_scheduleCallback(LY,{timeout:10*(1073741822-t)-e})}function NY(e,t,n,r,i){e.expirationTime=r,0!==i||PY()?0<i&&(e.timeoutHandle=jH(qY.bind(null,e,t,n),i)):(e.pendingCommitExpirationTime=n,e.finishedWork=t)}function qY(e,t,n){e.pendingCommitExpirationTime=n,e.finishedWork=t,TY(),EY=wY,zY(e,n)}function DY(){return hY||(IY(),0!==mY&&1!==mY||(TY(),EY=wY)),EY}function RY(e,t){null===e.nextScheduledRoot?(e.expirationTime=t,null===cY?(uY=cY=e,e.nextScheduledRoot=e):(cY=cY.nextScheduledRoot=e).nextScheduledRoot=uY):t>e.expirationTime&&(e.expirationTime=t),hY||(bY?xY&&(pY=e,mY=1073741823,FY(e,1073741823,!1)):1073741823===t?jY(1073741823,!1):AY(e,t))}function IY(){var e=0,t=null;if(null!==cY)for(var n=cY,r=uY;null!==r;){var i=r.expirationTime;if(0===i){if((null===n||null===cY)&&Ez("244"),r===r.nextScheduledRoot){uY=cY=r.nextScheduledRoot=null;break}if(r===uY)uY=i=r.nextScheduledRoot,cY.nextScheduledRoot=i,r.nextScheduledRoot=null;else{if(r===cY){(cY=n).nextScheduledRoot=uY,r.nextScheduledRoot=null;break}n.nextScheduledRoot=r.nextScheduledRoot,r.nextScheduledRoot=null}r=n.nextScheduledRoot}else{if(i>e&&(e=i,t=r),r===cY)break;if(1073741823===e)break;n=r,r=r.nextScheduledRoot}}pY=t,mY=e}var _Y=!1;function PY(){return!!_Y||!!Sz.unstable_shouldYield()&&(_Y=!0)}function LY(){try{if(!PY()&&null!==uY){TY();var e=uY;do{var t=e.expirationTime;0!==t&&wY<=t&&(e.nextExpirationTimeToWorkOn=wY),e=e.nextScheduledRoot}while(e!==uY)}jY(0,!0)}finally{_Y=!1}}function jY(e,t){if(IY(),t)for(TY(),EY=wY;null!==pY&&0!==mY&&e<=mY&&!(_Y&&wY>mY);)FY(pY,mY,wY>mY),IY(),TY(),EY=wY;else for(;null!==pY&&0!==mY&&e<=mY;)FY(pY,mY,!1),IY();if(t&&(dY=0,fY=null),0!==mY&&AY(pY,mY),CY=0,OY=null,null!==MY)for(e=MY,MY=null,t=0;t<e.length;t++){var n=e[t];try{n._onComplete()}catch(e){gY||(gY=!0,vY=e)}}if(gY)throw e=vY,vY=null,gY=!1,e}function zY(e,t){hY&&Ez("253"),pY=e,mY=t,FY(e,t,!1),jY(1073741823,!1)}function FY(e,t,n){if(hY&&Ez("245"),hY=!0,n){var r=e.finishedWork;null!==r?BY(e,r,t):(e.finishedWork=null,-1!==(r=e.timeoutHandle)&&(e.timeoutHandle=-1,zH(r)),tY(e,n),null!==(r=e.finishedWork)&&(PY()?e.finishedWork=r:BY(e,r,t)))}else null!==(r=e.finishedWork)?BY(e,r,t):(e.finishedWork=null,-1!==(r=e.timeoutHandle)&&(e.timeoutHandle=-1,zH(r)),tY(e,n),null!==(r=e.finishedWork)&&BY(e,r,t));hY=!1}function BY(e,t,n){var r=e.firstBatch;if(null!==r&&r._expirationTime>=n&&(null===MY?MY=[r]:MY.push(r),r._defer))return e.finishedWork=t,void(e.expirationTime=0);e.finishedWork=null,e===OY?CY++:(OY=e,CY=0),Sz.unstable_runWithPriority(Sz.unstable_ImmediatePriority,(function(){ZW(e,t)}))}function VY(e){null===pY&&Ez("246"),pY.expirationTime=0,gY||(gY=!0,vY=e)}function HY(e,t){var n=bY;bY=!0;try{return e(t)}finally{(bY=n)||hY||jY(1073741823,!1)}}function $Y(e,t){if(bY&&!xY){xY=!0;try{return e(t)}finally{xY=!1}}return e(t)}function UY(e,t,n){bY||hY||0===yY||(jY(yY,!1),yY=0);var r=bY;bY=!0;try{return Sz.unstable_runWithPriority(Sz.unstable_UserBlockingPriority,(function(){return e(t,n)}))}finally{(bY=r)||hY||jY(1073741823,!1)}}function WY(e,t,n,r,i){var o=t.current;e:if(n){t:{2===xV(n=n._reactInternalFiber)&&1===n.tag||Ez("170");var a=n;do{switch(a.tag){case 3:a=a.stateNode.context;break t;case 1:if(QH(a.type)){a=a.stateNode.__reactInternalMemoizedMergedChildContext;break t}}a=a.return}while(null!==a);Ez("171"),a=void 0}if(1===n.tag){var s=n.type;if(QH(s)){n=r$(n,s,a);break e}}n=a}else n=XH;return null===t.context?t.context=n:t.pendingContext=n,t=i,(i=iW(r)).payload={element:e},null!==(t=void 0===t?null:t)&&(i.callback=t),JW(),aW(o,i),sY(o,r),r}function YY(e,t,n,r){var i=t.current;return WY(e,t,n,i=rY(DY(),i),r)}function XY(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:default:return e.child.stateNode}}function GY(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:hB,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}function KY(e){var t=1073741822-25*(1+((1073741822-DY()+500)/25|0));t>=RW&&(t=RW-1),this._expirationTime=RW=t,this._root=e,this._callbacks=this._next=null,this._hasChildren=this._didComplete=!1,this._children=null,this._defer=!0}function JY(){this._callbacks=null,this._didCommit=!1,this._onCommit=this._onCommit.bind(this)}function ZY(e,t,n){e={current:t=c$(3,null,null,t?3:0),containerInfo:e,pendingChildren:null,pingCache:null,earliestPendingTime:0,latestPendingTime:0,earliestSuspendedTime:0,latestSuspendedTime:0,latestPingedTime:0,didError:!1,pendingCommitExpirationTime:0,finishedWork:null,timeoutHandle:-1,context:null,pendingContext:null,hydrate:n,nextExpirationTimeToWorkOn:0,expirationTime:0,firstBatch:null,nextScheduledRoot:null},this._internalRoot=t.stateNode=e}function QY(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function eX(e,t,n,r,i){var o=n._reactRootContainer;if(o){if("function"==typeof i){var a=i;i=function(){var e=XY(o._internalRoot);a.call(e)}}null!=e?o.legacy_renderSubtreeIntoContainer(e,t,i):o.render(t,i)}else{if(o=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new ZY(e,!1,t)}(n,r),"function"==typeof i){var s=i;i=function(){var e=XY(o._internalRoot);s.call(e)}}$Y((function(){null!=e?o.legacy_renderSubtreeIntoContainer(e,t,i):o.render(t,i)}))}return XY(o._internalRoot)}function tX(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;return QY(t)||Ez("200"),GY(e,t,null,n)}UF=function(e,t,n){switch(t){case"input":if(BB(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=rF(r);i||Ez("90"),lB(r),BB(r,i)}}}break;case"textarea":yH(e,n);break;case"select":null!=(t=n.value)&&hH(e,!!n.multiple,t,!1)}},KY.prototype.render=function(e){this._defer||Ez("250"),this._hasChildren=!0,this._children=e;var t=this._root._internalRoot,n=this._expirationTime,r=new JY;return WY(e,t,null,n,r._onCommit),r},KY.prototype.then=function(e){if(this._didComplete)e();else{var t=this._callbacks;null===t&&(t=this._callbacks=[]),t.push(e)}},KY.prototype.commit=function(){var e=this._root._internalRoot,t=e.firstBatch;if(this._defer&&null!==t||Ez("251"),this._hasChildren){var n=this._expirationTime;if(t!==this){this._hasChildren&&(n=this._expirationTime=t._expirationTime,this.render(this._children));for(var r=null,i=t;i!==this;)r=i,i=i._next;null===r&&Ez("251"),r._next=i._next,this._next=t,e.firstBatch=this}this._defer=!1,zY(e,n),t=this._next,this._next=null,null!==(t=e.firstBatch=t)&&t._hasChildren&&t.render(t._children)}else this._next=null,this._defer=!1},KY.prototype._onComplete=function(){if(!this._didComplete){this._didComplete=!0;var e=this._callbacks;if(null!==e)for(var t=0;t<e.length;t++)(0,e[t])()}},JY.prototype.then=function(e){if(this._didCommit)e();else{var t=this._callbacks;null===t&&(t=this._callbacks=[]),t.push(e)}},JY.prototype._onCommit=function(){if(!this._didCommit){this._didCommit=!0;var e=this._callbacks;if(null!==e)for(var t=0;t<e.length;t++){var n=e[t];"function"!=typeof n&&Ez("191",n),n()}}},ZY.prototype.render=function(e,t){var n=this._internalRoot,r=new JY;return null!==(t=void 0===t?null:t)&&r.then(t),YY(e,n,null,r._onCommit),r},ZY.prototype.unmount=function(e){var t=this._internalRoot,n=new JY;return null!==(e=void 0===e?null:e)&&n.then(e),YY(null,t,null,n._onCommit),n},ZY.prototype.legacy_renderSubtreeIntoContainer=function(e,t,n){var r=this._internalRoot,i=new JY;return null!==(n=void 0===n?null:n)&&i.then(n),YY(t,r,e,i._onCommit),i},ZY.prototype.createBatch=function(){var e=new KY(this),t=e._expirationTime,n=this._internalRoot,r=n.firstBatch;if(null===r)n.firstBatch=e,e._next=null;else{for(n=null;null!==r&&r._expirationTime>=t;)n=r,r=r._next;e._next=r,null!==n&&(n._next=e)}return e},JF=HY,ZF=UY,QF=function(){hY||0===yY||(jY(yY,!1),yY=0)};var nX={createPortal:tX,findDOMNode:function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternalFiber;return void 0===t&&("function"==typeof e.render?Ez("188"):Ez("268",Object.keys(e))),e=null===(e=SV(t))?null:e.stateNode},hydrate:function(e,t,n){return QY(t)||Ez("200"),eX(null,e,t,!0,n)},render:function(e,t,n){return QY(t)||Ez("200"),eX(null,e,t,!1,n)},unstable_renderSubtreeIntoContainer:function(e,t,n,r){return QY(n)||Ez("200"),(null==e||void 0===e._reactInternalFiber)&&Ez("38"),eX(e,t,n,!1,r)},unmountComponentAtNode:function(e){return QY(e)||Ez("40"),!!e._reactRootContainer&&($Y((function(){eX(null,null,e,!1,(function(){e._reactRootContainer=null}))})),!0)},unstable_createPortal:function(){return tX.apply(void 0,arguments)},unstable_batchedUpdates:HY,unstable_interactiveUpdates:UY,flushSync:function(e,t){hY&&Ez("187");var n=bY;bY=!0;try{return lY(e,t)}finally{bY=n,jY(1073741823,!1)}},unstable_createRoot:function(e,t){return QY(e)||Ez("299","unstable_createRoot"),new ZY(e,!0,null!=t&&!0===t.hydrate)},unstable_flushControlled:function(e){var t=bY;bY=!0;try{lY(e)}finally{(bY=t)||hY||jY(1073741823,!1)}},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{Events:[tF,nF,rF,Xz.injectEventPluginsByName,Lz,uF,function(e){Uz(e,lF)},GF,KF,WV,Kz]}};!function(e){var t=e.findFiberByHostInstance;(function(e){if("undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled||!t.supportsFiber)return!0;try{var n=t.inject(e);a$=l$((function(e){return t.onCommitFiberRoot(n,e)})),s$=l$((function(e){return t.onCommitFiberUnmount(n,e)}))}catch(e){}})(Mz({},e,{overrideProps:null,currentDispatcherRef:uB.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=SV(e))?null:e.stateNode},findFiberByHostInstance:function(e){return t?t(e):null}}))}({findFiberByHostInstance:eF,bundleType:0,version:"16.8.4",rendererPackageName:"react-dom"});var rX={default:nX},iX=rX&&nX||rX,oX=iX.default||iX;!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)}}(),gz.exports=oX;var aX=gz.exports,sX=!1,lX=wI.createContext(null),uX="unmounted",cX="exited",dX="entering",fX="entered",hX="exiting",pX=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=cX,r.appearStatus=dX):i=fX:i=t.unmountOnExit||t.mountOnEnter?uX:cX,r.state={status:i},r.nextCallback=null,r}yz(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===uX?{status:cX}: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!==dX&&n!==fX&&(t=dX):n!==dX&&n!==fX||(t=hX)}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){this.cancelNextCallback();var n=aX.findDOMNode(this);t===dX?this.performEnter(n,e):this.performExit(n)}else this.props.unmountOnExit&&this.state.status===cX&&this.setState({status:uX})},n.performEnter=function(e,t){var n=this,r=this.props.enter,i=this.context?this.context.isMounting:t,o=this.getTimeouts(),a=i?o.appear:o.enter;!t&&!r||sX?this.safeSetState({status:fX},(function(){n.props.onEntered(e)})):(this.props.onEnter(e,i),this.safeSetState({status:dX},(function(){n.props.onEntering(e,i),n.onTransitionEnd(e,a,(function(){n.safeSetState({status:fX},(function(){n.props.onEntered(e,i)}))}))})))},n.performExit=function(e){var t=this,n=this.props.exit,r=this.getTimeouts();n&&!sX?(this.props.onExit(e),this.safeSetState({status:hX},(function(){t.props.onExiting(e),t.onTransitionEnd(e,r.exit,(function(){t.safeSetState({status:cX},(function(){t.props.onExited(e)}))}))}))):this.safeSetState({status:cX},(function(){t.props.onExited(e)}))},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,n){this.setNextCallback(n);var r=null==t&&!this.props.addEndListener;e&&!r?(this.props.addEndListener&&this.props.addEndListener(e,this.nextCallback),null!=t&&setTimeout(this.nextCallback,t)):setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===uX)return null;var t=this.props,n=t.children,r=mz(t,["children"]);if(delete r.in,delete r.mountOnEnter,delete r.unmountOnExit,delete r.appear,delete r.enter,delete r.exit,delete r.timeout,delete r.addEndListener,delete r.onEnter,delete r.onEntering,delete r.onEntered,delete r.onExit,delete r.onExiting,delete r.onExited,"function"==typeof n)return wI.createElement(lX.Provider,{value:null},n(e,r));var i=wI.Children.only(n);return wI.createElement(lX.Provider,{value:null},wI.cloneElement(i,r))},t}(wI.Component);function mX(){}pX.contextType=lX,pX.propTypes={},pX.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:mX,onEntering:mX,onEntered:mX,onExit:mX,onExiting:mX,onExited:mX},pX.UNMOUNTED=0,pX.EXITED=1,pX.ENTERING=2,pX.ENTERED=3,pX.EXITING=4;var yX=pX;function gX(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function vX(e,t){var n=Object.create(null);return e&&OR.exports.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&OR.exports.isValidElement(e)?t(e):e}(e)})),n}function bX(e,t,n){return null!=n[t]?n[t]:e.props[t]}function xX(e,t,n){var r=vX(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 u=i[l][r];s[i[l][r]]=n(u)}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(OR.exports.isValidElement(a)){var s=o in t,l=o in r,u=t[o],c=OR.exports.isValidElement(u)&&!u.props.in;!l||s&&!c?l||!s||c?l&&s&&OR.exports.isValidElement(u)&&(i[o]=OR.exports.cloneElement(a,{onExited:n.bind(null,a),in:u.props.in,exit:bX(a,"exit",e),enter:bX(a,"enter",e)})):i[o]=OR.exports.cloneElement(a,{in:!1}):i[o]=OR.exports.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:bX(a,"exit",e),enter:bX(a,"enter",e)})}})),i}var MX=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},SX=function(e){function t(t,n){var r,i=(r=e.call(this,t,n)||this).handleExited.bind(gX(gX(r)));return r.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},r}yz(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,vX(n.children,(function(e){return OR.exports.cloneElement(e,{onExited:r.bind(null,e),in:!0,appear:bX(e,"appear",n),enter:bX(e,"enter",n),exit:bX(e,"exit",n)})}))):xX(e,i,o),firstRender:!1}},n.handleExited=function(e,t){var n=vX(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=pz({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=mz(e,["component","childFactory"]),i=this.state.contextValue,o=MX(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?wI.createElement(lX.Provider,{value:i},o):wI.createElement(lX.Provider,{value:i},wI.createElement(t,r,o))},t}(wI.Component);SX.propTypes={},SX.defaultProps={component:"div",childFactory:function(e){return e}};var wX=SX;function EX(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}}function kX(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function CX(e,t){return wI.useMemo((function(){return null==e&&null==t?null:function(n){kX(e,n),kX(t,n)}}),[e,t])}var OX="undefined"!=typeof window?wI.useLayoutEffect:wI.useEffect;function TX(e){var t=wI.useRef(e);return OX((function(){t.current=e})),wI.useCallback((function(e){return(0,t.current)(e)}),[])}var AX="undefined"!=typeof window?wI.useLayoutEffect:wI.useEffect;function NX(e){var t=e.children,n=e.defer,r=void 0!==n&&n,i=e.fallback,o=void 0===i?null:i,a=wI.useState(!1),s=a[0],l=a[1];return AX((function(){r||l(!0)}),[r]),wI.useEffect((function(){r&&l(!0)}),[r]),wI.createElement(wI.Fragment,null,s?t:o)}var qX=!0,DX=!1,RX=null,IX={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 _X(e){e.metaKey||e.altKey||e.ctrlKey||(qX=!0)}function PX(){qX=!1}function LX(){"hidden"===this.visibilityState&&DX&&(qX=!0)}function jX(e){var t=e.target;try{return t.matches(":focus-visible")}catch(e){}return qX||function(e){var t=e.type,n=e.tagName;return!("INPUT"!==n||!IX[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function zX(){DX=!0,window.clearTimeout(RX),RX=window.setTimeout((function(){DX=!1}),100)}function FX(){return{isFocusVisible:jX,onBlurVisible:zX,ref:wI.useCallback((function(e){var t=aX.findDOMNode(e);null!=t&&function(e){e.addEventListener("keydown",_X,!0),e.addEventListener("mousedown",PX,!0),e.addEventListener("pointerdown",PX,!0),e.addEventListener("touchstart",PX,!0),e.addEventListener("visibilitychange",LX,!0)}(t.ownerDocument)}),[])}}function BX(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var VX="undefined"==typeof window?wI.useEffect:wI.useLayoutEffect;function HX(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,u=void 0===l?function(){}:l,c=e.timeout,d=wI.useState(!1),f=d[0],h=d[1],p=Yj(t.ripple,t.rippleVisible,r&&t.ripplePulsate),m={width:a,height:a,top:-a/2+o,left:-a/2+i},y=Yj(t.child,f&&t.childLeaving,r&&t.childPulsate),g=TX(u);return VX((function(){if(!s){h(!0);var e=setTimeout(g,c);return function(){clearTimeout(e)}}}),[g,s,c]),wI.createElement("span",{className:p,style:m},wI.createElement("span",{className:y}))}var $X=wI.forwardRef((function(e,t){var n=e.center,r=void 0!==n&&n,i=e.classes,o=e.className,a=FI(e,["center","classes","className"]),s=wI.useState([]),l=s[0],u=s[1],c=wI.useRef(0),d=wI.useRef(null);wI.useEffect((function(){d.current&&(d.current(),d.current=null)}),[l]);var f=wI.useRef(!1),h=wI.useRef(null),p=wI.useRef(null),m=wI.useRef(null);wI.useEffect((function(){return function(){clearTimeout(h.current)}}),[]);var y=wI.useCallback((function(e){var t=e.pulsate,n=e.rippleX,r=e.rippleY,o=e.rippleSize,a=e.cb;u((function(e){return[].concat(BX(e),[wI.createElement(HX,{key:c.current,classes:i,timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:o})])})),c.current+=1,d.current=a}),[i]),g=wI.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,u=void 0!==l&&l;if("mousedown"===e.type&&f.current)f.current=!1;else{"touchstart"===e.type&&(f.current=!0);var c,d,g,v=u?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)c=Math.round(b.width/2),d=Math.round(b.height/2);else{var x=e.clientX?e.clientX:e.touches[0].clientX,M=e.clientY?e.clientY:e.touches[0].clientY;c=Math.round(x-b.left),d=Math.round(M-b.top)}if(s)(g=Math.sqrt((2*Math.pow(b.width,2)+Math.pow(b.height,2))/3))%2==0&&(g+=1);else{var S=2*Math.max(Math.abs((v?v.clientWidth:0)-c),c)+2,w=2*Math.max(Math.abs((v?v.clientHeight:0)-d),d)+2;g=Math.sqrt(Math.pow(S,2)+Math.pow(w,2))}e.touches?(p.current=function(){y({pulsate:o,rippleX:c,rippleY:d,rippleSize:g,cb:n})},h.current=setTimeout((function(){p.current&&(p.current(),p.current=null)}),80)):y({pulsate:o,rippleX:c,rippleY:d,rippleSize:g,cb:n})}}),[r,y]),v=wI.useCallback((function(){g({},{pulsate:!0})}),[g]),b=wI.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,u((function(e){return e.length>0?e.slice(1):e})),d.current=t}),[]);return wI.useImperativeHandle(t,(function(){return{pulsate:v,start:g,stop:b}}),[v,g,b]),wI.createElement("span",zI({className:Yj(i.root,o),ref:m},a),wI.createElement(wX,{component:null,exit:!0},l))}));var UX,WX=cz((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"})(((UX=wI.memo($X)).muiName="MuiTouchRipple",UX)),YX=wI.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,u=e.component,c=void 0===u?"button":u,d=e.disabled,f=void 0!==d&&d,h=e.disableRipple,p=void 0!==h&&h,m=e.disableTouchRipple,y=void 0!==m&&m,g=e.focusRipple,v=void 0!==g&&g,b=e.focusVisibleClassName,x=e.onBlur,M=e.onClick,S=e.onFocus,w=e.onFocusVisible,E=e.onKeyDown,k=e.onKeyUp,C=e.onMouseDown,O=e.onMouseLeave,T=e.onMouseUp,A=e.onTouchEnd,N=e.onTouchMove,q=e.onTouchStart,D=e.onDragLeave,R=e.tabIndex,I=void 0===R?0:R,_=e.TouchRippleProps,P=e.type,L=void 0===P?"button":P,j=FI(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"]),z=wI.useRef(null);var F=wI.useRef(null),B=wI.useState(!1),V=B[0],H=B[1];f&&V&&H(!1);var $=FX(),U=$.isFocusVisible,W=$.onBlurVisible,Y=$.ref;function X(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:y;return TX((function(r){return t&&t(r),!n&&F.current&&F.current[e](r),!0}))}wI.useImperativeHandle(n,(function(){return{focusVisible:function(){H(!0),z.current.focus()}}}),[]),wI.useEffect((function(){V&&v&&!p&&F.current.pulsate()}),[p,v,V]);var G=X("start",C),K=X("stop",D),J=X("stop",T),Z=X("stop",(function(e){V&&e.preventDefault(),O&&O(e)})),Q=X("start",q),ee=X("stop",A),te=X("stop",N),ne=X("stop",(function(e){V&&(W(e),H(!1)),x&&x(e)}),!1),re=TX((function(e){f||(z.current||(z.current=e.currentTarget),U(e)&&(H(!0),w&&w(e)),S&&S(e))})),ie=wI.useRef(!1),oe=TX((function(e){v&&!ie.current&&V&&F.current&&" "===e.key&&(ie.current=!0,e.persist(),F.current.stop(e,(function(){F.current.start(e)}))),E&&E(e);var t=aX.findDOMNode(z.current);e.target!==e.currentTarget||!c||"button"===c||" "!==e.key&&"Enter"!==e.key||"A"===t.tagName&&t.href||(e.preventDefault(),M&&M(e))})),ae=TX((function(e){v&&" "===e.key&&F.current&&V&&(ie.current=!1,e.persist(),F.current.stop(e,(function(){F.current.pulsate(e)}))),k&&k(e)})),se=c;"button"===se&&j.href&&(se="a");var le={};"button"===se?(le.type=L,le.disabled=f):("a"===se&&j.href||(le.role="button"),le["aria-disabled"]=f);var ue=CX(r,t),ce=CX(Y,z),de=CX(ue,ce);return wI.createElement(se,zI({className:Yj(s.root,l,V&&[s.focusVisible,b],f&&s.disabled),onBlur:ne,onClick:M,onFocus:re,onKeyDown:oe,onKeyUp:ae,onMouseDown:G,onMouseLeave:Z,onMouseUp:J,onDragLeave:K,onTouchEnd:ee,onTouchMove:te,onTouchStart:Q,ref:de,tabIndex:f?-1:I},le,j),a,p||f?null:wI.createElement(NX,null,wI.createElement(WX,zI({ref:F,center:o},_))))})),XX=cz({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"}},disabled:{},focusVisible:{}},{name:"MuiButtonBase"})(YX),GX={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p"},KX=wI.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,u=e.display,c=void 0===u?"initial":u,d=e.gutterBottom,f=void 0!==d&&d,h=e.noWrap,p=void 0!==h&&h,m=e.paragraph,y=void 0!==m&&m,g=e.variant,v=void 0===g?"body1":g,b=e.variantMapping,x=void 0===b?GX:b,M=FI(e,["align","classes","className","color","component","display","gutterBottom","noWrap","paragraph","variant","variantMapping"]),S=l||(y?"p":x[v]||GX[v])||"span";return wI.createElement(S,zI({className:Yj(i.root,o,"inherit"!==v&&i[v],"initial"!==s&&i["color".concat(dz(s))],p&&i.noWrap,f&&i.gutterBottom,y&&i.paragraph,"inherit"!==r&&i["align".concat(dz(r))],"initial"!==c&&i["display".concat(dz(c))]),ref:t},M))})),JX=cz((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"})(KX),ZX=wI.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,u=e.disabled,c=void 0!==u&&u,d=e.disableFocusRipple,f=void 0!==d&&d,h=e.endIcon,p=e.focusVisibleClassName,m=e.fullWidth,y=void 0!==m&&m,g=e.size,v=void 0===g?"medium":g,b=e.startIcon,x=e.type,M=void 0===x?"button":x,S=e.variant,w=void 0===S?"text":S,E=FI(e,["children","classes","className","color","component","disabled","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"]),k=b&&wI.createElement("span",{className:Yj(r.startIcon,r["iconSize".concat(dz(v))])},b),C=h&&wI.createElement("span",{className:Yj(r.endIcon,r["iconSize".concat(dz(v))])},h);return wI.createElement(XX,zI({className:Yj(r.root,r[w],i,"inherit"===a?r.colorInherit:"default"!==a&&r["".concat(w).concat(dz(a))],"medium"!==v&&[r["".concat(w,"Size").concat(dz(v))],r["size".concat(dz(v))]],c&&r.disabled,y&&r.fullWidth),component:l,disabled:c,focusRipple:!f,focusVisibleClassName:Yj(r.focusVisible,p),ref:t,type:M},E),wI.createElement("span",{className:r.label},k,n,C))})),QX=cz((function(e){return{root:zI({},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:LI(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:LI(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},textSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:LI(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.disabled)}},outlinedPrimary:{color:e.palette.primary.main,border:"1px solid ".concat(LI(e.palette.primary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.primary.main),backgroundColor:LI(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlinedSecondary:{color:e.palette.secondary.main,border:"1px solid ".concat(LI(e.palette.secondary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.secondary.main),backgroundColor:LI(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}}},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"})(ZX);function eG(e){return e&&e.ownerDocument||document}var tG="undefined"!=typeof window?wI.useLayoutEffect:wI.useEffect,nG=wI.forwardRef((function(e,t){var n=e.children,r=e.container,i=e.disablePortal,o=void 0!==i&&i,a=e.onRendered,s=wI.useState(null),l=s[0],u=s[1],c=CX(n.ref,t);return tG((function(){o||u(function(e){return e="function"==typeof e?e():e,aX.findDOMNode(e)}(r)||document.body)}),[r,o]),tG((function(){if(l&&!o)return kX(t,l),function(){kX(t,null)}}),[t,l,o]),tG((function(){a&&(l||o)&&a()}),[a,l,o]),o?(wI.Children.only(n),wI.cloneElement(n,{ref:c})):l?aX.createPortal(n,l):l}));function rG(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce((function(e,t){return null==t?e:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];e.apply(this,r),t.apply(this,r)}}),(function(){}))}function iG(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function oG(e){return eG(e).defaultView||window}function aG(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function sG(e){return parseInt(window.getComputedStyle(e)["padding-right"],10)||0}function lG(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],i=arguments.length>4?arguments[4]:void 0,o=[t,n].concat(BX(r)),a=["TEMPLATE","SCRIPT","STYLE"];[].forEach.call(e.children,(function(e){1===e.nodeType&&-1===o.indexOf(e)&&-1===a.indexOf(e.tagName)&&aG(e,i)}))}function uG(e,t){var n=-1;return e.some((function(e,r){return!!t(e)&&(n=r,!0)})),n}function cG(e,t){var n,r=[],i=[],o=e.container;if(!t.disableScrollLock){var a=function(e){var t=eG(e);return t.body===e?oG(t).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(o),s=o.parentElement,l="HTML"===s.nodeName?s:o;if(r.push({value:l.style.overflow,key:"overflow",el:l}),l.style.overflow="hidden",a){var u=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(sG(o)+u,"px"),n=eG(o).querySelectorAll(".mui-fixed"),[].forEach.call(n,(function(e){i.push(e.style.paddingRight),e.style.paddingRight="".concat(sG(e)+u,"px")}))}}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 dG=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=[]}var t,n,r;return t=e,(n=[{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&&aG(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);lG(t,e.mountNode,e.modalRef,r,!0);var i=uG(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=uG(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];r.restore||(r.restore=cG(r,t))}},{key:"remove",value:function(e){var t=this.modals.indexOf(e);if(-1===t)return t;var n=uG(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&&aG(e.modalRef,!0),lG(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&&aG(i.modalRef,!1)}return t}},{key:"isTopModal",value:function(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}])&&iG(t.prototype,n),r&&iG(t,r),e}();function fG(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,u=e.isEnabled,c=e.open,d=wI.useRef(),f=wI.useRef(null),h=wI.useRef(null),p=wI.useRef(),m=wI.useRef(null),y=wI.useCallback((function(e){m.current=aX.findDOMNode(e)}),[]),g=CX(t.ref,y);return wI.useMemo((function(){c&&"undefined"!=typeof window&&(p.current=l().activeElement)}),[c]),wI.useEffect((function(){if(c){var e=eG(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(){o||!u()||d.current?d.current=!1:m.current&&!m.current.contains(e.activeElement)&&m.current.focus()},n=function(t){!o&&u()&&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,u,c]),wI.createElement(wI.Fragment,null,wI.createElement("div",{tabIndex:0,ref:f,"data-test":"sentinelStart"}),wI.cloneElement(t,{ref:g}),wI.createElement("div",{tabIndex:0,ref:h,"data-test":"sentinelEnd"}))}var hG={root:{zIndex:-1,position:"fixed",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",touchAction:"none"},invisible:{backgroundColor:"transparent"}},pG=wI.forwardRef((function(e,t){var n=e.invisible,r=void 0!==n&&n,i=e.open,o=FI(e,["invisible","open"]);return i?wI.createElement("div",zI({"aria-hidden":!0,ref:t},o,{style:zI({},hG.root,{},r?hG.invisible:{},{},o.style)})):null}));var mG=new dG,yG=wI.forwardRef((function(e,t){var n=Nj(),r=j_({name:"MuiModal",props:zI({},e),theme:n}),i=r.BackdropComponent,o=void 0===i?pG:i,a=r.BackdropProps,s=r.children,l=r.closeAfterTransition,u=void 0!==l&&l,c=r.container,d=r.disableAutoFocus,f=void 0!==d&&d,h=r.disableBackdropClick,p=void 0!==h&&h,m=r.disableEnforceFocus,y=void 0!==m&&m,g=r.disableEscapeKeyDown,v=void 0!==g&&g,b=r.disablePortal,x=void 0!==b&&b,M=r.disableRestoreFocus,S=void 0!==M&&M,w=r.disableScrollLock,E=void 0!==w&&w,k=r.hideBackdrop,C=void 0!==k&&k,O=r.keepMounted,T=void 0!==O&&O,A=r.manager,N=void 0===A?mG:A,q=r.onBackdropClick,D=r.onClose,R=r.onEscapeKeyDown,I=r.onRendered,_=r.open,P=FI(r,["BackdropComponent","BackdropProps","children","closeAfterTransition","container","disableAutoFocus","disableBackdropClick","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onEscapeKeyDown","onRendered","open"]),L=wI.useState(!0),j=L[0],z=L[1],F=wI.useRef({}),B=wI.useRef(null),V=wI.useRef(null),H=CX(V,t),$=function(e){return!!e.children&&e.children.props.hasOwnProperty("in")}(r),U=function(){return eG(B.current)},W=function(){return F.current.modalRef=V.current,F.current.mountNode=B.current,F.current},Y=function(){N.mount(W(),{disableScrollLock:E}),V.current.scrollTop=0},X=TX((function(){var e=function(e){return e="function"==typeof e?e():e,aX.findDOMNode(e)}(c)||U().body;N.add(W(),e),V.current&&Y()})),G=wI.useCallback((function(){return N.isTopModal(W())}),[N]),K=TX((function(e){B.current=e,e&&(I&&I(),_&&G()?Y():aG(V.current,!0))})),J=wI.useCallback((function(){N.remove(W())}),[N]);if(wI.useEffect((function(){return function(){J()}}),[J]),wI.useEffect((function(){_?X():$&&u||J()}),[_,J,$,u,X]),!T&&!_&&(!$||j))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:R_}),Q={};return void 0===s.props.tabIndex&&(Q.tabIndex=s.props.tabIndex||"-1"),$&&(Q.onEnter=rG((function(){z(!1)}),s.props.onEnter),Q.onExited=rG((function(){z(!0),u&&J()}),s.props.onExited)),wI.createElement(nG,{ref:K,container:c,disablePortal:x},wI.createElement("div",zI({ref:H,onKeyDown:function(e){"Escape"===e.key&&G()&&(e.stopPropagation(),R&&R(e),!v&&D&&D(e,"escapeKeyDown"))},role:"presentation"},P,{style:zI({},Z.root,{},!_&&j?Z.hidden:{},{},P.style)}),C?null:wI.createElement(o,zI({open:_,onClick:function(e){e.target===e.currentTarget&&(q&&q(e),!p&&D&&D(e,"backdropClick"))}},a)),wI.createElement(fG,{disableEnforceFocus:y,disableAutoFocus:f,disableRestoreFocus:S,getDoc:U,isEnabled:G,open:_},wI.cloneElement(s,Q))))}));function gG(e){return"scale(".concat(e,", ").concat(Math.pow(e,2),")")}var vG={entering:{opacity:1,transform:gG(1)},entered:{opacity:1,transform:"none"}},bG=wI.forwardRef((function(e,t){var n=e.children,r=e.in,i=e.onEnter,o=e.onExit,a=e.style,s=e.timeout,l=void 0===s?"auto":s,u=FI(e,["children","in","onEnter","onExit","style","timeout"]),c=wI.useRef(),d=wI.useRef(),f=CX(n.ref,t),h=Nj()||uz;return wI.useEffect((function(){return function(){clearTimeout(c.current)}}),[]),wI.createElement(yX,zI({appear:!0,in:r,onEnter:function(e,t){!function(e){e.scrollTop}(e);var n,r=EX({style:a,timeout:l},{mode:"enter"}),o=r.duration,s=r.delay;"auto"===l?(n=h.transitions.getAutoHeightDuration(e.clientHeight),d.current=n):n=o,e.style.transition=[h.transitions.create("opacity",{duration:n,delay:s}),h.transitions.create("transform",{duration:.666*n,delay:s})].join(","),i&&i(e,t)},onExit:function(e){var t,n=EX({style:a,timeout:l},{mode:"exit"}),r=n.duration,i=n.delay;"auto"===l?(t=h.transitions.getAutoHeightDuration(e.clientHeight),d.current=t):t=r,e.style.transition=[h.transitions.create("opacity",{duration:t,delay:i}),h.transitions.create("transform",{duration:.666*t,delay:i||.333*t})].join(","),e.style.opacity="0",e.style.transform=gG(.75),o&&o(e)},addEndListener:function(e,t){"auto"===l&&(c.current=setTimeout(t,d.current||0))},timeout:"auto"===l?null:l},u),(function(e,t){return wI.cloneElement(n,zI({style:zI({opacity:0,transform:gG(.75),visibility:"exited"!==e||r?void 0:"hidden"},vG[e],{},a,{},n.props.style),ref:f},t))}))}));bG.muiSupportAuto=!0;var xG=bG,MG=wI.createContext({}),SG=wI.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,u=e.disablePadding,c=void 0!==u&&u,d=e.subheader,f=FI(e,["children","classes","className","component","dense","disablePadding","subheader"]),h=wI.useMemo((function(){return{dense:l}}),[l]);return wI.createElement(MG.Provider,{value:h},wI.createElement(a,zI({className:Yj(r.root,i,l&&r.dense,!c&&r.padding,d&&r.subheader),ref:t},f),d,n))})),wG=cz({root:{listStyle:"none",margin:0,padding:0,position:"relative"},padding:{paddingTop:8,paddingBottom:8},dense:{},subheader:{paddingTop:0}},{name:"MuiList"})(SG),EG="undefined"==typeof window?wI.useEffect:wI.useLayoutEffect,kG=wI.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,u=e.classes,c=e.className,d=e.component,f=e.ContainerComponent,h=void 0===f?"li":f,p=e.ContainerProps,m=(p=void 0===p?{}:p).className,y=FI(p,["className"]),g=e.dense,v=e.disabled,b=void 0!==v&&v,x=e.disableGutters,M=void 0!==x&&x,S=e.divider,w=void 0!==S&&S,E=e.focusVisibleClassName,k=e.selected,C=void 0!==k&&k,O=FI(e,["alignItems","autoFocus","button","children","classes","className","component","ContainerComponent","ContainerProps","dense","disabled","disableGutters","divider","focusVisibleClassName","selected"]),T=wI.useContext(MG),A={dense:g||T.dense||!1,alignItems:r},N=wI.useRef(null);EG((function(){o&&N.current&&N.current.focus()}),[o]);var q,D,R=wI.Children.toArray(l),I=R.length&&(q=R[R.length-1],D=["ListItemSecondaryAction"],wI.isValidElement(q)&&-1!==D.indexOf(q.type.muiName)),_=CX(wI.useCallback((function(e){N.current=aX.findDOMNode(e)}),[]),t),P=zI({className:Yj(u.root,c,A.dense&&u.dense,!M&&u.gutters,w&&u.divider,b&&u.disabled,s&&u.button,"center"!==r&&u.alignItemsFlexStart,I&&u.secondaryAction,C&&u.selected),disabled:b},O),L=d||"li";return s&&(P.component=d||"div",P.focusVisibleClassName=Yj(u.focusVisible,E),L=XX),I?(L=P.component||d?L:"div","li"===h&&("li"===L?L="div":"li"===P.component&&(P.component="div")),wI.createElement(MG.Provider,{value:A},wI.createElement(h,zI({className:Yj(u.container,m),ref:_},y),wI.createElement(L,P,R),R.pop()))):wI.createElement(MG.Provider,{value:A},wI.createElement(L,zI({ref:_},P),R))})),CG=cz((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"})(kG),OG=wI.forwardRef((function(e,t){var n=e.classes,r=e.className,i=FI(e,["classes","className"]),o=wI.useContext(MG);return wI.createElement("div",zI({className:Yj(n.root,r,"flex-start"===o.alignItems&&n.alignItemsFlexStart),ref:t},i))})),TG=cz((function(e){return{root:{minWidth:56,color:e.palette.action.active,flexShrink:0,display:"inline-flex"},alignItemsFlexStart:{marginTop:8}}}),{name:"MuiListItemIcon"})(OG),AG=wI.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,u=e.primary,c=e.primaryTypographyProps,d=e.secondary,f=e.secondaryTypographyProps,h=FI(e,["children","classes","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"]),p=wI.useContext(MG).dense,m=null!=u?u:n;null==m||m.type===JX||a||(m=wI.createElement(JX,zI({variant:p?"body2":"body1",className:r.primary,component:"span"},c),m));var y=d;return null==y||y.type===JX||a||(y=wI.createElement(JX,zI({variant:"body2",className:r.secondary,color:"textSecondary"},f),y)),wI.createElement("div",zI({className:Yj(r.root,i,p&&r.dense,l&&r.inset,m&&y&&r.multiline),ref:t},h),m,y)})),NG=cz({root:{flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},multiline:{marginTop:6,marginBottom:6},dense:{},inset:{paddingLeft:56},primary:{},secondary:{}},{name:"MuiListItemText"})(AG);function qG(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function DG(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function RG(e){return[e.horizontal,e.vertical].map((function(e){return"number"==typeof e?"".concat(e,"px"):e})).join(" ")}function IG(e){return"function"==typeof e?e():e}var _G=wI.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,u=e.children,c=e.classes,d=e.className,f=e.container,h=e.elevation,p=void 0===h?8:h,m=e.getContentAnchorEl,y=e.marginThreshold,g=void 0===y?16:y,v=e.onEnter,b=e.onEntered,x=e.onEntering,M=e.onExit,S=e.onExited,w=e.onExiting,E=e.open,k=e.PaperProps,C=void 0===k?{}:k,O=e.transformOrigin,T=void 0===O?{vertical:"top",horizontal:"left"}:O,A=e.TransitionComponent,N=void 0===A?xG:A,q=e.transitionDuration,D=void 0===q?"auto":q,R=e.TransitionProps,I=void 0===R?{}:R,_=FI(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"]),P=wI.useRef(),L=wI.useCallback((function(e){if("anchorPosition"===l)return a;var t=IG(r),n=(t instanceof oG(t).Element?t:eG(P.current).body).getBoundingClientRect(),i=0===e?o.vertical:"center";return{top:n.top+qG(n,i),left:n.left+DG(n,o.horizontal)}}),[r,o.horizontal,o.vertical,a,l]),j=wI.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]),z=wI.useCallback((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return{vertical:qG(e,T.vertical)+t,horizontal:DG(e,T.horizontal)}}),[T.horizontal,T.vertical]),F=wI.useCallback((function(e){var t=j(e),n={width:e.offsetWidth,height:e.offsetHeight},i=z(n,t);if("none"===l)return{top:null,left:null,transformOrigin:RG(i)};var o=L(t),a=o.top-i.vertical,s=o.left-i.horizontal,u=a+n.height,c=s+n.width,d=oG(IG(r)),f=d.innerHeight-g,h=d.innerWidth-g;if(a<g){var p=a-g;a-=p,i.vertical+=p}else if(u>f){var m=u-f;a-=m,i.vertical+=m}if(s<g){var y=s-g;s-=y,i.horizontal+=y}else if(c>h){var v=c-h;s-=v,i.horizontal+=v}return{top:"".concat(a,"px"),left:"".concat(s,"px"),transformOrigin:RG(i)}}),[r,l,L,j,z,g]),B=wI.useCallback((function(e){var t=F(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin}),[F]),V=wI.useCallback((function(e){P.current=aX.findDOMNode(e)}),[]),H=wI.useMemo((function(){if(E)return 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,s=function(){e.apply(a,i)};clearTimeout(t),t=setTimeout(s,n)}return r.clear=function(){clearTimeout(t)},r}((function(){B(P.current)}))}),[E,B]);wI.useImperativeHandle(n,(function(){return E?{updatePosition:H}:null}),[E,H]),wI.useEffect((function(){if(H)return window.addEventListener("resize",H),function(){window.removeEventListener("resize",H),H.clear()}}),[H]);var $=D;"auto"!==D||N.muiSupportAuto||($=void 0);var U=f||(r?eG(IG(r)).body:void 0);return wI.createElement(yG,zI({container:U,open:E,ref:t,BackdropProps:{invisible:!0},className:Yj(c.root,d)},_),wI.createElement(N,zI({appear:!0,in:E,onEnter:v,onEntered:b,onExit:M,onExited:S,onExiting:w,timeout:$},I,{onEntering:rG((function(e,t){x&&x(e,t),B(e)}),I.onEntering)}),wI.createElement(hz,zI({elevation:p,ref:V},C,{className:Yj(c.paper,C.className)}),u)))})),PG=cz({root:{},paper:{position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}},{name:"MuiPopover"})(_G);function LG(e){return"large"===e?"20px":"small"===e?"12px":"16px"}function jG({d:e,size:t,style:n={},viewBox:r="0 0 16 16"}){const i={fontSize:LG(t),display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",...n};return wI.createElement("i",{style:i},wI.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:r,fill:"currentColor"},wI.createElement("path",{d:e})))}const zG={d:"M15.9993744,3 L15.9993744,5 L4.99937445,5 L4.99937445,3 L15.9993744,3 Z M8.99937445,7 L15.9993744,7 L15.9993744,9 L8.99937445,9 L8.99937445,7 Z M11.9993744,11 L15.9993744,11 L15.9993744,13 L11.9993744,13 L11.9993744,11 Z M2.2,11 L7,11 L7,9.00369263 C7,8.89323568 7.08954305,8.80369263 7.2,8.80369263 C7.2549016,8.80369263 7.30738916,8.82626165 7.34515712,8.86610844 L10.1852182,11.8624926 C10.2583124,11.93961 10.258346,12.0604218 10.1852948,12.13758 L7.34523376,15.1373102 C7.2692928,15.2175206 7.14270711,15.2209817 7.06249671,15.1450407 C7.02260076,15.1072683 7,15.0547472 7,14.9998069 L7,12.9043747 C4.79351111,12.9043747 2.8018683,12.9266213 1.02507156,12.9711145 L1.02507252,12.9711526 C0.472939773,12.9849787 0.014139487,12.5485949 0.000313396522,11.9964622 C0.000104473692,11.988119 -1.32268838e-12,11.9797736 -1.3231638e-12,11.9714278 L-1.83320026e-12,3 L2,3 L2,10.8 C2,10.9104569 2.08954305,11 2.2,11 Z"},FG={d:"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"},BG="M6,10 L13,3 L15,5 L8,12 L6,14 L1,9 L3,7 L6,10 Z",VG={d:"M2.4,4 L13.6,4 C13.7104569,4 13.8,4.08954305 13.8,4.2 C13.8,4.24327404 13.7859644,4.28538077 13.76,4.32 L8.16,11.7866667 C8.09372583,11.8750322 7.96836556,11.8929408 7.88,11.8266667 C7.86483887,11.8152958 7.85137085,11.8018278 7.84,11.7866667 L2.24,4.32 C2.17372583,4.23163444 2.19163444,4.10627417 2.28,4.04 C2.31461923,4.01403557 2.35672596,4 2.4,4 Z"},HG={d:"M4,13.6 L4,2.4 C4,2.28954305 4.08954305,2.2 4.2,2.2 C4.24327404,2.2 4.28538077,2.21403557 4.32,2.24 L11.7866667,7.84 C11.8750322,7.90627417 11.8929408,8.03163444 11.8266667,8.12 C11.8152958,8.13516113 11.8018278,8.14862915 11.7866667,8.16 L4.32,13.76 C4.23163444,13.8262742 4.10627417,13.8083656 4.04,13.72 C4.01403557,13.6853808 4,13.643274 4,13.6 Z"};function $G(e,t,n){(function({model:e,properties:t}){return e.modifiers?e.modifiers.apply({model:e,properties:t}):Promise.resolve()})({model:e,properties:n}).then((()=>{e.colorSupport&&e.colorSupport.colorByUpdater(n,"qHyperCubeDef.");let r=Bi.generate(t,n);r&&r.length&&(r=r.map((e=>({qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}))),e.applyPatches(r,!0))}))}function UG(e,t,n,r,i,o){e.getEffectiveProperties().then((a=>{const s=d(!0,{},a),l=s.qHyperCubeDef[r][t],u=s.qHyperCubeDef.qLayoutExclude.qHyperCubeDef[r][n];u.qAttributeDimensions=l.qAttributeDimensions,l.qAttributeDimensions=[],o||(u.qAttributeExpressions=l.qAttributeExpressions,l.qAttributeExpressions=[]),s.qHyperCubeDef[r][t]=u,s.qHyperCubeDef.qLayoutExclude.qHyperCubeDef[r][n]=l,i&&i({oldItem:l,newItem:u,oldProperties:a,newProperties:s,model:e}),$G(e,a,s)}))}function WG({dir:e,dock:t,altList:n,model:r,translator:i,app:o,onChange:a}){return 0===n.length?null:{dir:e,dock:t,getAlternatives(){const e=n.map((e=>function(e,t,n){if(e.qLibraryId)return t.getDimension(e.qLibraryId).then((e=>e.getLayout())).catch((()=>null)).then((e=>e?"H"!==e.qDim.qGrouping&&e.qDim.qLabelExpression?e.qDim.qLabelExpression:e.qDim.title:n.get("Object.ErrorMessage.MissingDimension")));const r=e.qDef.qLabelExpression;if(r)return t.evaluate(r);const i=e.qDef.qFieldLabels[0]||e.qDef.qFieldDefs[0];return Promise.resolve(i)}(e,o,i).then((t=>({id:e.qDef.cId,selected:!1,title:t})))));return Promise.all(e)},changeTo(e,t){UG(r,e,t,"qDimensions",a)}}}function YG(e,t,n,r="/qHyperCubeDef"){return{breadcrumbs:e.qGroupFallbackTitles.slice(0,e.qGroupPos),drilldown:"H"===e.qGrouping,index:t,locked:!!e.qLocked,text:"H"===e.qGrouping?e.qGroupFallbackTitles[e.qGroupPos]:e.qFallbackTitle,popoverText:(i=e,"H"===i.qGrouping?i.title||"":i.qFallbackTitle||""),drillUp(e){n.drillUp(r,t,e)}};var i}function XG({altList:e,app:t,dir:n,dock:r,model:i,onChange:o,skipAttributeExpressions:a,translator:s}){return 0===e.length?null:{dir:n,dock:r,getAlternatives(){const n=e.map((e=>function(e,t,n){if(e.qLibraryId)return t.getMeasure(e.qLibraryId).then((e=>e.getLayout())).catch((()=>null)).then((e=>e?e.qMeasure.qLabelExpression?e.qMeasure.qLabelExpression:e.qMeasure.qLabel||e.qMeasure.qDef:n.get("Object.ErrorMessage.MissingMeasure")));const r=e.qDef.qLabelExpression;if(r)return t.evaluate(r);const i=e.qDef.qLabel||e.qDef.qDef;return Promise.resolve(i)}(e,t,s).then((t=>({id:e.qDef.cId,selected:!1,title:t})))));return Promise.all(n)},changeTo(e,t){UG(i,e,t,"qMeasures",o,a)}}}function GG(e,t){return{breadcrumbs:[],drilldown:!1,index:t,locked:!1,text:e.qFallbackTitle,popoverText:e.qFallbackTitle}}const KG={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"}}},JG=({children:e,...t})=>wI.createElement(QX,CR({size:"small",disableRipple:!0,disableTouchRipple:!0},t),e);function ZG(){function e({title:e,selected:t,onClick:n}){const r=P.detectTextDirection(e);return wI.createElement(CG,{button:!0,onClick:n,style:{textAlign:"start"}},wI.createElement(TG,{style:{minWidth:32}},wI.createElement(jG,{d:t?BG:""})),wI.createElement(NG,{primaryTypographyProps:{dir:r}},e))}function t({alignTo:t,changeTo:n,current:r,dir:i,dock:o,list:a,onClose:s,show:l}){const u=a.map(((t,r)=>wI.createElement(e,{key:t.id,title:t.title,onClick:()=>n(r)})));return wI.createElement(PG,CR({anchorEl:t,open:l,onClose:s},KG[o],{PaperProps:{style:{minWidth:"250px",maxHeight:"300px"}}}),wI.createElement(wG,{dense:!0,dir:i,component:"nav"},wI.createElement(e,{title:r,selected:!0,onClick:s}),u))}e.propTypes={title:OI.string.isRequired,selected:OI.bool,onClick:OI.func.isRequired},e.defaultProps={selected:!1},t.propTypes={alignTo:OI.any,changeTo:OI.func.isRequired,current:OI.string.isRequired,dir:OI.string.isRequired,dock:OI.string.isRequired,list:OI.array,onClose:OI.func.isRequired,show:OI.bool.isRequired},t.defaultProps={list:[],alignTo:null};class n extends wI.Component{constructor(e){super(e),this.state={open:!1,inSelection:e.selections&&e.selections.isActive()},this.openPopover=this.openPopover.bind(this),this.closePopover=this.closePopover.bind(this),this.changeTo=this.changeTo.bind(this),this.alignToRef=wI.createRef()}componentDidMount(){const{selections:e}=this.props;e&&(this.onSelectionsActivated=()=>this.setState({inSelection:!0}),this.onSelectionsDeactivated=()=>this.setState({inSelection:!1}),e.addListener("activated",this.onSelectionsActivated),e.addListener("deactivated",this.onSelectionsDeactivated),e.addListener("canceled",this.onSelectionsDeactivated))}componentWillUnmount(){const{selections:e}=this.props;e&&(e.removeListener("activated",this.onSelectionsActivated),e.removeListener("deactivated",this.onSelectionsDeactivated),e.removeListener("canceled",this.onSelectionsDeactivated))}changeTo(e){this.props.popover.changeTo(this.props.titleData.index,e),this.closePopover()}openPopover(){this.state.closeTime&&Date.now()-this.state.closeTime<20||this.props.popover.getAlternatives().then((e=>{this.setState({open:!0,alternatives:e})}))}closePopover(){this.setState({open:!1,closeTime:Date.now()})}render(){const{titleData:e,popover:n,translator:r,disabled:i,isDimension:o,padding:a,minWidth:s,hasAlternative:l}=this.props,u={flex:"1 1 auto",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",fontWeight:"normal",...this.props.style},c=e.breadcrumbs.length,d=i||this.state.inSelection,f=e.breadcrumbs.map(((t,n)=>wI.createElement(JG,{style:{display:"flex",alignItems:"center",color:d&&"rgba(89, 89, 89, 0.8)",pointerEvents:d?"none":"auto"},key:n,onClick:()=>d?void 0:e.drillUp(c-n),title:t},wI.createElement("span",{style:u},t),wI.createElement(jG,CR({},HG,{size:"small",style:{margin:"0 8px"}}))))),h=n&&!this.state.open?this.openPopover:this.closePopover,p=!n||i||this.state.inSelection,m={display:"flex",alignItems:"center",width:"100%",color:p&&"rgba(89, 89, 89, 0.8)",height:!o&&p&&"20px",lineHeight:!o&&p&&"20px",border:!o&&p&&"none"};this.state.open&&(m.background="rgba(0,0,0,0.08)");a&&(m.padding=a),s&&(m.minWidth=s);const y=P.detectTextDirection(e.text),g=wI.createElement(JG,{style:m,onClick:p?void 0:h,title:e.text,tabIndex:p?-1:0,onFocus:p?void 0:e=>{this.state.closeTime&&Date.now()-this.state.closeTime<20||(e.currentTarget.style.boxShadow="0px 0px 0px 2px #177FE6 inset",e.currentTarget.style.borderRadius="2px")},onBlur:p?void 0:e=>{e.currentTarget.style.boxShadow="none",e.currentTarget.style.borderRadius="0px"},onMouseDown:e=>{e.preventDefault()}},e.locked&&wI.createElement(jG,CR({},FG,{size:"small",title:r.get("Tooltip.selections.locked")})),wI.createElement("span",{style:u,dir:y},e.text),n&&wI.createElement(jG,CR({},VG,{size:"small",style:{margin:"0 8px"}})));return wI.createElement(wI.Fragment,null,e.drilldown&&wI.createElement(jG,CR({},zG,{size:"small",title:r.get("Tooltip.dimensions.drilldown"),style:{margin:"0 4px 0 0"}})),f,wI.createElement("div",{ref:this.alignToRef,style:{overflow:"hidden",pointerEvents:l?"auto":"none"}},g),n&&wI.createElement(t,{dock:n.dock,dir:n.dir,current:e.popoverText,alignTo:this.alignToRef.current,show:this.state.open,list:this.state.alternatives,onClose:this.closePopover,changeTo:this.changeTo}))}}function r(e){return{top:"bottom",bottom:"top",left:"right",right:"left"}[e]}function i(e){return!e.isDimension&&M(e,"hyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures.length")>0}return n.propTypes={disabled:OI.bool.isRequired,padding:OI.string,minWidth:OI.string,titleData:OI.shape({breadcrumbs:OI.arrayOf(OI.string).isRequired,drilldown:OI.bool.isRequired,index:OI.number.isRequired,locked:OI.bool.isRequired,text:OI.string.isRequired,popoverText:OI.string.isRequired,drillUp:OI.func}).isRequired,popover:OI.shape({dir:OI.string.isRequired,dock:OI.string.isRequired,changeTo:OI.func.isRequired,getAlternatives:OI.func.isRequired}),translator:OI.shape({get:OI.func.isRequired}).isRequired,selections:OI.shape({isActive:OI.func,addListener:OI.func,removeListener:OI.func}),style:OI.shape({fontSize:OI.string,color:OI.string,fontFamily:OI.string}).isRequired,isDimension:OI.bool.isRequired,hasAlternative:OI.bool.isRequired},n.defaultProps={popover:null,selections:null,padding:"",minWidth:""},{renderer:"react",disableTriggers:!0,preferredSize:function(){return this.settings.settings.isDimension||i(this.settings.settings)?28:20},render(){const{settings:{app:e,disabled:t,explicitItemInfos:o,hyperCube:a,hyperCubeDef:s,isDimension:l,minWidth:u,model:c,onChangeToAlternative:d,padding:f,rtl:h,selections:p,skipAttributeExpressions:m,translator:y},layout:{dock:g}}=this.settings,v="top"!==g&&"bottom"!==g||!h?"ltr":"rtl",b=function(e,t){const n={pointerEvents:"auto",display:"flex",justifyContent:"center",alignItems:"center"};return"left"===e?(n.width=t.height+"px",n.transform=`rotate(-90deg) translate(-${t.height}px, 0)`,n.transformOrigin="top left"):"right"===e&&(n.width=t.height+"px",n.transform=`rotate(90deg) translate(0, -${t.width}px)`,n.transformOrigin="top left"),n}(g,this.rect),x=s&&s.qLayoutExclude&&s.qLayoutExclude.qHyperCubeDef,S=x&&x[l?"qDimensions":"qMeasures"]||[],w=o||a[l?"qDimensionInfo":"qMeasureInfo"],E=l?WG:XG,k=l?YG:GG,C=c&&c.colorSupport&&c.modifiers&&E({altList:S,app:e,dir:h?"rtl":"ltr",dock:r(g),model:c,onChange:d,skipAttributeExpressions:m,translator:y}),O=(T=this.settings.settings).isDimension&&M(T,"hyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions.length")>0||i(this.settings.settings);var T;const A=w.map(((e,r)=>{const i="number"==typeof e.explicitColumn?e.explicitColumn:r,o=k(e,i,c),a=r===w.length-1;return wI.createElement(wI.Fragment,{key:e.cId},wI.createElement(n,{popover:C,titleData:o,model:c,translator:y,selections:p,disabled:t(),style:this.style,isDimension:l,padding:f,minWidth:u,hasAlternative:O}),!a&&wI.createElement("span",null,", "))}));return wI.createElement("div",{style:b,dir:v},A)}}}const QG=I_({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:'"QlikView Sans", "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 eK=L_({productionPrefix:"qb8a3",disableGlobal:!0,seed:""});function tK(){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",aX.render(function(e,t){return wI.createElement(_j,{generateClassName:t},wI.createElement(sz,{theme:QG},e))}(e,eK),r),!0},itemsAt:()=>[],findShapes:()=>[],clear:()=>(r&&aX.unmountComponentAtNode(r),o),destroy(){r&&r.parentElement&&(aX.unmountComponentAtNode(r),r.parentElement.removeChild(r)),r=null},size:t=>(t&&(i=e(t)),i)};return o}}function nK(){return function(e){e.renderer("react",tK()),e.component("data-title",ZG()),e.component("disclaimer",function(){class e extends wI.Component{render(){const{label:e,spanStyle:t}=this.props;return wI.createElement(wI.Fragment,null,wI.createElement("span",{ref:this.alignToRef,style:t,title:e},e))}}return e.propTypes={label:OI.string.isRequired,spanStyle:OI.shape().isRequired},{renderer:"react",disableTriggers:!0,preferredSize:function(){return 22},render(){const{settings:{label:t,rtl:n},layout:{dock:r}}=this.settings,i="top"!==r&&"bottom"!==r||!n?"ltr":"rtl",o=function(e,t){const n={pointerEvents:"auto",display:"flex",justifyContent:"center",alignItems:"center",color:"#7b7a78",fontStyle:"italic",fontSize:"13px"};switch(e){case"left":n.width=t.height+"px",n.transform=`rotate(-90deg) translate(-${t.height}px, 0)`,n.transformOrigin="top left";break;case"right":n.width=t.height+"px",n.transform=`rotate(90deg) translate(0, -${t.width}px)`,n.transformOrigin="top left";break;case"center":n.width=t.width+"px",n.height=t.height+"px",n.color="#595959",n.fontStyle="normal",n.fontSize="1.2em",n.textAlign="center";break;default:case"top":case"bottom":n.justifyContent="flex-start",n.alignItems="flex-start"}return n}(r,this.rect),a="center"===r?t:"* "+t,s="center"!==r?{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}:{};return wI.createElement("div",{style:o,dir:i},wI.createElement(wI.Fragment,null,wI.createElement(e,{label:a,spanStyle:s})))}}}())}}function rK(e,t,n,r){const i=function(t){const n=String(t);return e(n)};return i.ticks=()=>t.map((t=>{const o=i([t.data.value,r?n-1:0]),a=i([t.data.value,r?0:n-1])+e.bandwidth();return{position:(o+a)/2,label:t.label,data:t.data,start:o,end:a}})),i.bandwidth=()=>e.bandwidth(),i.data=()=>e.data(),i.domain=()=>e.domain(),i.pxScale=function(r){const i=e.pxScale(r);return i===e?this:rK(i,t,n)},i}function iK(e){const t=e.scale("band");e.scale("group-by-measure",(function(e={},n={},r={}){const i=t(e,n,r),o=i.domain(),a=i.ticks(),s=[],l=e.measureCount;return o.forEach(((e,t)=>{for(let t=0;t<l;++t)s.push(String([e,t]));s.push(`SPACER_${t}_SPACER`)})),s.splice(-1),i.domain(s),rK(i,a,l,e.invert)}))}const oK={getDefaultSettings:({size:e=10,fill:t="#999",alignment:n}={})=>({show:!0,type:"n-polygon",fill:t,stroke:"#000",strokeWidth:0,size:e,sides:3,startAngle:-90,alignment:n}),createOob({oob:e,dockValue:t,boxCenter:n,rendWidth:r,rendHeight:i,flipXY:o,symbol:a}){let s="x",l="y",u=r,c=i,f=t<.5?90:-90;return o&&(s="y",l="x",u=i,c=r,f=t<.5?180:0),a(d({},e,{[s]:n*u,[l]:c-Math.max(e.size/2,Math.min(t*c,c-e.size/2)),startAngle:f}))}};function aK({i:e,width:t,height:n,resolved:r,keys:i,flipXY:o,calcKey:a="box"}){let s,l=null,u=null;void 0!==r.major.settings.binStart?(l=r.major.items[e].binStart,u=r.major.items[e].binEnd,s=r.major.settings.binStart.scale):(s=r.major.settings.major.scale,l=s?r.major.items[e].major:0);let c=0;s?s.bandwidth?(c=s.bandwidth(),l-=c/2):c=u-l:c=1;const f=d({},{major:l,majorEnd:u},r.minor.items[e]);i.forEach((t=>{f[t]=r[t].items[e]}));const h=o?n:t,p=function({bandwidth:e,width:t,minWidthPx:n,maxWidthPx:r,maxMajorWidth:i}){const o=e>=0?1:-1;let a=Math.min(o*e*t,Number.isNaN(Number(r))?i:r/i);return a=Number.isNaN(Number(n))?a:Math.max(n/i,a),a*o}({bandwidth:c,width:f[a].width,minWidthPx:f[a].minWidthPx,maxWidthPx:f[a].maxWidthPx,maxMajorWidth:h}),m=(c-p)/2,y=m+f.major+p/2;return{item:f,boxCenter:y,boxWidth:p,boxPadding:m,rendWidth:t,rendHeight:n}}function sK({keys:e,data:t,defaultSettings:n,style:r,settings:i,width:o,height:a,resolver:s}){const l=d(!0,{},n||{},r||{}),u={major:"horizontal"===i.orientation?a:o,minor:"horizontal"===i.orientation?o:a},c=i.major;let f;f="object"==typeof c&&"object"==typeof c.ref&&void 0!==c.ref.start&&void 0!==c.ref.end?s.resolve({data:t,defaults:{start:0,end:1},scaled:u,settings:d(!0,{},{binStart:{scale:i.major.scale,ref:i.major.ref.start},binEnd:{scale:i.major.scale,ref:i.major.ref.end}})}):"object"==typeof c&&void 0!==c.binStart&&void 0!==c.binEnd?s.resolve({data:t,defaults:{start:0,end:1},scaled:u,settings:d(!0,{},{binStart:{scale:i.major.scale,ref:"binStart"},binEnd:{scale:i.major.scale,ref:"binEnd"}},i.major)}):s.resolve({data:t,scaled:u,defaults:{major:.5},settings:{major:i.major}});const h=i.minor||{};let p;const m={major:f,minor:s.resolve({data:t,defaults:{start:0,end:1},scaled:u,settings:d(!0,{},{start:{scale:h.scale,ref:"start"},end:{scale:h.scale,ref:"end"},min:{scale:h.scale,ref:"min"},max:{scale:h.scale,ref:"max"},med:{scale:h.scale,ref:"med"}},h)})};for(let n=0,r=e.length;n<r;n++)p=e[n],m[p]=s.resolve({data:t,defaults:l[p],settings:i[p],scaled:u});return m}const lK=["oob"];const uK={require:["chart","resolver","symbol"],defaultSettings:{settings:{size:10},data:{},style:{}},created(){this.state={}},preferredSize(){return this.settings.settings.size},render(){const{width:e,height:t}=this.rect,{dockValue:n}=this.settings.settings,r="horizontal"===this.settings.settings.orientation,{data:i,style:o,resolver:a,symbol:s}=this,l=sK({keys:lK,data:i,defaultSettings:{oob:oK.getDefaultSettings()},style:o,settings:this.settings.settings,width:e,height:t,resolver:a}),{settings:u,items:c}=l;return function({width:e,height:t,flipXY:n,resolved:r,keys:i,symbol:o,dockValue:a,_calcItemRenderingOpts:s=aK}){const l=[],{items:u}=r.major;for(let c=0,d=u.length;c<d;c++){const{item:d,boxCenter:f,rendWidth:h,rendHeight:p}=s({i:c,width:e,height:t,resolved:r,keys:i,flipXY:n,calcKey:"oob"}),m=u[c].data,y=[];if(d.oob.show){y.push(oK.createOob({oob:d.oob,dockValue:a,boxCenter:f,rendWidth:h,rendHeight:p,flipXY:n,symbol:o}));const e={type:"container",data:m,collider:{type:"bounds"},children:y};l.push(e)}}return l}({items:c,settings:u,width:e,height:t,flipXY:r,resolved:l,keys:lK,symbol:s,dockValue:n})}},cK={size:25,hat:{show:!0,fill:"#999",stroke:"#000",strokeWidth:0,strokeLinejoin:"miter",width:1,maxWidthPx:void 0,minWidthPx:1,minHeightPx:1,alignment:0}},dK=["hat"];function fK(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 hK({item:e,boxWidth:t,boxPadding:n,rendWidth:r,rendHeight:i,flipXY:o}){let a="x",s="y",l=r,u=i,c=e.hat.alignment||0;o&&(a="y",s="x",l=i,u=r,c=1-c);const f=(n+e.major)*l;let h=[{[a]:f,[s]:0+u},{[a]:f+t*c*l,[s]:8},{[a]:f+t*l,[s]:0+u},{[a]:f+t*l,[s]:0+u+10},{[a]:f,[s]:0+u+10}];const p=d({},e.hat,{type:"path",d:fK(h)});h=[{[a]:f,[s]:0},{[a]:f+t*(1-c)*l,[s]:0+u-8},{[a]:f+t*l,[s]:0},{[a]:f+t*l,[s]:-10},{[a]:f,[s]:-10}];return[p,d({},e.hat,{type:"path",d:fK(h)})]}const pK={require:["chart","resolver","symbol"],defaultSettings:{settings:{size:25},data:{},style:{hat:"$shape"}},created(){this.state={}},preferredSize(){return this.settings.settings.size},render(){const{width:e,height:t}=this.rect,n="horizontal"===this.settings.settings.orientation,{data:r,style:i,resolver:o}=this,a=sK({keys:dK,data:r,defaultSettings:cK,style:i,settings:this.settings.settings,width:e,height:t,resolver:o}),{settings:s,items:l}=a;return function({width:e,height:t,flipXY:n,resolved:r,keys:i,_calcItemRenderingOpts:o=aK}){const a=[],{items:s}=r.major;for(let l=0,u=s.length;l<u;l++){const{item:u,boxWidth:c,boxPadding:d,rendWidth:f,rendHeight:h}=o({i:l,width:e,height:t,resolved:r,keys:i,flipXY:n,calcKey:"hat"}),p=s[l].data,m=[];u.hat.show&&m.push(...hK({item:u,boxWidth:c,boxPadding:d,rendWidth:f,rendHeight:h,flipXY:n}));const y={type:"container",data:p,collider:{type:"bounds"},children:m};a.push(y)}return a}({items:l,settings:s,width:e,height:t,flipXY:n,resolved:a,keys:dK})}};var mK="unclassified",yK="equal-equal",gK="equal-higher",vK="equal-lower",bK="equal-void",xK="higher-equal",MK="higher-higher-acute",SK="higher-higher-obtuse",wK="higher-lower-negative",EK="higher-lower-positive",kK="higher-void",CK="lower-equal",OK="lower-higher-negative",TK="lower-higher-positive",AK="lower-lower-acute",NK="lower-lower-obtuse",qK="lower-void",DK="void-equal",RK="void-higher",IK="void-lower",_K="void-void";function PK(e,t){return Math.atan2(t.y-e.y,t.x-e.x)*(180/Math.PI)}function LK(e,t,n){const r=Math.sqrt((t.x-e.x)**2+(t.y-e.y)**2),i=Math.sqrt((t.x-n.x)**2+(t.y-n.y)**2),o=Math.sqrt((n.x-e.x)**2+(n.y-e.y)**2);return Math.acos((i*i+r*r-o*o)/(2*i*r))*(180/Math.PI)}function jK({previous:e,current:t,next:n}){const r=e&&e.value,i=t&&t.value,o=n&&n.value;return e||n?e?n?r===i?i===o?yK:i<o?gK:vK:i===o?r>i?xK:CK:r>i?i<o?LK(e,t,n)>90?SK:MK:PK(e,t)>PK(e,n)?EK:wK:i>o?LK(e,t,n)>90?NK:AK:PK(e,t)>PK(e,n)?TK:OK:r===i?bK:r>i?kK:qK:i===o?DK:i<o?RK:IK:_K}function zK({bounds:e,size:t}){const{x:n,y:r,width:i,height:o}=e,{insideStrategy:a}=t;return"center"===a?Math.floor(n+i/2)>=0&&Math.ceil(n+i/2)<=t.width&&Math.floor(r+o/2)>=0&&Math.ceil(r+o/2)<=t.height:Math.floor(n+i)>0&&Math.ceil(n)<t.width&&Math.floor(r+o/2)>=0&&Math.ceil(r+o/2)<=t.height}const FK=1,BK=0;function VK({node:e,line:t,groupIndex:n,extract:r,style:i,measureText:o,size:a,horizontal:s,rtl:l,meta:u,showLabel:c}){const d=r.label(e.data);if("string"!=typeof d&&"number"!=typeof d||""===d)return!1;const f=o({fontFamily:i.fontFamily,fontSize:i.fontSize,text:d}),{localBounds:h}=e,{"stroke-width":p}=e.attrs,m=r.pointValue(e.data),y={x:h.x+h.width/2,y:h.y+h.height/2,width:f.width+2*FK,height:f.height+2*BK},g=`${y.x}-${y.y}`,v=!s&&!l,b=s?a.height:a.width,x=(s?y.y:y.x)/b,M=(v?1-x:x)<=(b<=200?.25:.1),S={key:g,node:e,line:t,group:n,value:m,labelMeasurements:f,bounds:y,inside:zK({bounds:h,size:a}),border:p?p/2:0,classification:mK,setClassification(e){S.classification=e},preferences:[],setPreferences(e){S.preferences.push(...e)},placement:void 0,setPlacement(e){S.placement=e},duplicate:!1,setDuplicate(){S.duplicate=!0},extreme:u.getExtreme(g),elite:M,show:c(e)};return S}function HK({nodes:e,extract:t,style:n,measureText:r,size:i,horizontal:o,rtl:a,showLabel:s}){const l=function({nodes:e}){const t={top:[],right:[],bottom:[],left:[]},n=e.map((e=>{const{localBounds:t}=e,n={x:t.x+t.width/2,y:t.y+t.height/2};return{key:`${n.x}-${n.y}`,center:n}})),r=n.reduce(((e,t)=>((!e.top||t.center.y<e.top.center.y)&&(e.top=t),(!e.right||t.center.x>e.right.center.x)&&(e.right=t),(!e.bottom||t.center.y>e.bottom.center.y)&&(e.bottom=t),(!e.left||t.center.x<e.left.center.x)&&(e.left=t),e)),{});return t.top=n.filter((e=>e.center.y===r.top.center.y)).map((e=>e.key)),t.right=n.filter((e=>e.center.x===r.right.center.x)).map((e=>e.key)),t.bottom=n.filter((e=>e.center.y===r.bottom.center.y)).map((e=>e.key)),t.left=n.filter((e=>e.center.x===r.left.center.x)).map((e=>e.key)),{getExtrema:e=>({top:-1!==t.top.indexOf(e),right:-1!==t.right.indexOf(e),bottom:-1!==t.bottom.indexOf(e),left:-1!==t.left.indexOf(e)}),getExtreme:e=>{const{top:n,right:r,bottom:i,left:o}=t;return[n,r,i,o].some((t=>-1!==t.indexOf(e)))}}}({nodes:e});return function({nodes:e,by:t,lineIndex:n}){const r=e.reduce(((e,r,i)=>{const o=t(r.data);return e[o]||(e[o]={items:[],index:i}),e[o].items.push({node:r,line:r.data[n].value}),e}),{});return Object.keys(r).map((e=>r[e])).sort(((e,t)=>e.index-t.index)).map((e=>e.items))}({nodes:e,by:t.majorValue,lineIndex:t.lineIndex}).map(((e,u)=>e.map((e=>({line:e.line,item:VK({node:e.node,line:e.line,groupIndex:u,extract:t,style:n,measureText:r,size:i,horizontal:o,rtl:a,meta:l,showLabel:s})}))).filter((e=>e.item)).reduce(((e,t)=>(e[t.line]=t.item,e)),{}))).filter((e=>Object.keys(e).length))}var $K={TOP:"top",TOP_RIGHT:"top-right",RIGHT:"right",BOTTOM_RIGHT:"bottom-right",BOTTOM:"bottom",BOTTOM_LEFT:"bottom-left",LEFT:"left",TOP_LEFT:"top-left"},UK={[yK]:[$K.TOP,$K.BOTTOM],[gK]:[$K.BOTTOM,$K.BOTTOM_RIGHT],[vK]:[$K.TOP,$K.TOP_RIGHT],[bK]:[$K.TOP,$K.BOTTOM],[xK]:[$K.LEFT,$K.BOTTOM_LEFT,$K.TOP,$K.TOP_RIGHT],[MK]:[$K.BOTTOM,$K.BOTTOM_LEFT,$K.LEFT,$K.TOP_RIGHT],[SK]:[$K.BOTTOM,$K.TOP],[wK]:[$K.TOP,$K.TOP_RIGHT,$K.RIGHT],[EK]:[$K.BOTTOM,$K.BOTTOM_LEFT,$K.LEFT],[kK]:[$K.TOP],[CK]:[$K.TOP],[OK]:[$K.TOP,$K.TOP_LEFT],[TK]:[$K.BOTTOM_RIGHT],[AK]:[$K.TOP,$K.TOP_LEFT,$K.LEFT,$K.TOP_RIGHT,$K.RIGHT],[NK]:[$K.TOP,$K.BOTTOM],[qK]:[$K.TOP],[DK]:[$K.TOP],[RK]:[$K.TOP,$K.BOTTOM],[IK]:[$K.TOP,$K.BOTTOM,$K.LEFT],[_K]:[$K.TOP]};function WK({nodes:e,extract:t,style:n,measureText:r,size:i,horizontal:o,rtl:a,showLabel:s}){const l=HK({nodes:e,extract:t,style:n,measureText:r,size:i,horizontal:o,rtl:a,showLabel:s}),u=[...l.reduce(((e,t)=>(e.push(...Object.keys(t).map((e=>t[e]))),e)),[])],[c]=u,d=function({groups:e,threshold:t}){const n=e.map((e=>Object.keys(e).map((t=>e[t])))),r={};for(let e=0;e<=n.length;e++){const t=n[e];if(t)for(let e=0;e<t.length;e++){const n=t[e],{line:i}=n;r[i]||(r[i]=[]),r[i].push(n.bounds)}}const i=Object.keys(r).map((e=>r[e])),o=[];for(let e=0;e<i.length;e++)for(let n=0;n<i[e].length-1;n++){const r=i[e][n],a=i[e][n+1],s={x1:r.x,y1:r.y,x2:a.x,y2:a.y},l=s.x1-s.x2,u=s.y1-s.y2;Math.sqrt(l*l+u*u)>t&&o.push(s)}return o}({groups:l,threshold:c.node.localBounds.height}),f={getItems:()=>u,getLines:()=>d};return function({groups:e}){for(let t=0;t<e.length;t++){const n=Object.keys(e[t]).map((n=>e[t][n]));for(let r=0;r<n.length;r++){const i=n[r],o=jK({previous:e[t-1]&&e[t-1][i.line],current:i,next:e[t+1]&&e[t+1][i.line]});i.setClassification(o)}}}({groups:l}),f.getItems().forEach((e=>e.setPreferences(UK[e.classification]))),f}function YK({item:e,placement:t,size:n}){return t.x>=0-n.edgeBleed.left&&t.x<=n.width-e.bounds.width+n.edgeBleed.right&&t.y>=0-n.edgeBleed.top&&t.y<=n.height-e.bounds.height}function XK({line1:e,line2:t}){const n=(t.y2-t.y1)*(e.x2-e.x1)-(t.x2-t.x1)*(e.y2-e.y1);if(0===n)return!1;const r=((t.x2-t.x1)*(e.y1-t.y1)-(t.y2-t.y1)*(e.x1-t.x1))/n,i=((e.x2-e.x1)*(e.y1-t.y1)-(e.y2-e.y1)*(e.x1-t.x1))/n;return r>=0&&r<=1&&i>=0&&i<=1}function GK({candidate:e,lines:t,rects:n}){return!!n.some((t=>function({rect1:e,rect2:t}){return!(t.x>e.x+e.width||t.x+t.width<e.x||t.y>e.y+e.height||t.y+t.height<e.y)}({rect1:t,rect2:e})))||t.some((t=>function({line:e,rect:t}){const n={x:t.x,y:t.y},r={x:t.x+t.width,y:t.y},i={x:t.x+t.width,y:t.y+t.height},o={x:t.x,y:t.y+t.height},a={x1:r.x,y1:r.y,x2:i.x,y2:i.y},s={x1:i.x,y1:i.y,x2:o.x,y2:o.y},l={x1:o.x,y1:o.y,x2:n.x,y2:n.y};return XK({line1:e,line2:{x1:n.x,y1:n.y,x2:r.x,y2:r.y}})||XK({line1:e,line2:a})||XK({line1:e,line2:s})||XK({line1:e,line2:l})}({line:t,rect:e})))}const KK={x:0,width:0,y:0,height:0};const JK=({item:e})=>({x:e.bounds.x-e.bounds.width/2,y:e.bounds.y-e.bounds.height-e.node.localBounds.height/2-e.border}),ZK=({item:e})=>({x:e.bounds.x,y:e.bounds.y-e.bounds.height-e.node.localBounds.height/2-e.border}),QK=({item:e})=>({x:e.bounds.x+e.node.localBounds.width/2+e.border,y:e.bounds.y-e.bounds.height/2}),eJ=({item:e})=>({x:e.bounds.x,y:e.bounds.y+e.node.localBounds.height/2+e.border}),tJ=({item:e})=>({x:e.bounds.x-e.bounds.width/2,y:e.bounds.y+e.node.localBounds.height/2+e.border}),nJ=({item:e})=>({x:e.bounds.x-e.bounds.width,y:e.bounds.y+e.node.localBounds.height/2+e.border}),rJ=({item:e})=>({x:e.bounds.x-e.bounds.width-e.node.localBounds.width/2-e.border,y:e.bounds.y-e.bounds.height/2}),iJ=({item:e})=>({x:e.bounds.x-e.bounds.width,y:e.bounds.y-e.bounds.height-e.node.localBounds.height/2-e.border});var oJ=2.5,aJ=4;const sJ=[$K.TOP,$K.TOP_LEFT,$K.TOP_RIGHT],lJ=[$K.BOTTOM,$K.BOTTOM_LEFT,$K.BOTTOM_RIGHT];function uJ({position:e}){const t={x:oJ,width:-2*oJ,y:0,height:0},n=sJ.indexOf(e)>-1,r=lJ.indexOf(e)>-1;return n&&(t.y=aJ,t.height=-aJ),r&&(t.height=-aJ),t}function cJ({cx:e,cy:t,r:n,degrees:r}){const i=r*(Math.PI/180);return{x:Math.round(e+n*Math.sin(i)),y:Math.round(t+n*-Math.cos(i))}}function dJ({coordinates:e,degrees:t,item:n}){const r={x:e.x,y:e.y};return t<=90?r.y-=n.bounds.height:t>180&&t<=270?r.x-=n.bounds.width:t>270&&(r.y-=n.bounds.height,r.x-=n.bounds.width),r}function fJ({item:e,validator:t,force:n=!1}){const r=function({item:e}){return[e.node.localBounds.height/2*Math.sqrt(2)]}({item:e}),i=e.bounds.x,o=e.bounds.y;for(let a=0;a<r.length;a++){const s=r[a];for(let r=40;r<=180;r+=15){const a=dJ({coordinates:cJ({cx:i,cy:o,r:s,degrees:r}),degrees:r,item:e});if(t({item:e,placement:a,ignoreLines:n}).valid)return a}for(let r=320;r>180;r-=15){const a=dJ({coordinates:cJ({cx:i,cy:o,r:s,degrees:r}),degrees:r,item:e});if(t({item:e,placement:a,ignoreLines:n}).valid)return a}}return!1}const hJ=void 0;function pJ({item:e,validator:t,force:n=!1}){const r=[...e.preferences,...Object.keys($K).map((e=>$K[e])).filter((t=>-1===e.preferences.indexOf(t)))],i={[$K.TOP]:JK,[$K.TOP_RIGHT]:ZK,[$K.RIGHT]:QK,[$K.BOTTOM_RIGHT]:eJ,[$K.BOTTOM]:tJ,[$K.BOTTOM_LEFT]:nJ,[$K.LEFT]:rJ,[$K.TOP_LEFT]:iJ},o=[];for(let a=0;a<r.length;a++){const s=r[a],l=i[s]({item:e}),u=uJ({position:s}),c=t({item:e,placement:l,adjustment:u,ignoreLines:n});if(n&&c.inside&&o.push(l),c.valid)return l}const a=()=>fJ({item:e,validator:t,force:n});if(n){const e=a();return e||(o[0]||hJ)}return(e.extreme||e.elite)&&a()||hJ}function mJ({model:e,size:t,all:n}){const r={},i=e.getItems(),o=[...i.map((e=>({x:e.node.localBounds.x-e.border+1,y:e.node.localBounds.y-e.border+1,height:e.node.localBounds.height+2*e.border-2,width:e.node.localBounds.width+2*e.border-2})))],a=[],s=e.getLines();i.forEach((e=>{const{data:i}=e.node;if(!e.show||!e.inside||i.null&&i.null.value||i.interpolated&&i.interpolated.value)return;const{key:l}=e;if(r[l])return void e.setDuplicate();r[l]=!0;const u=function({size:e,lines:t,placements:n}){return function({item:r,placement:i,adjustment:o=KK,ignoreLines:a=!1}){const s={inside:YK({item:r,placement:i,size:e}),collides:!0,valid:!1};return s.inside?(s.collides=GK({candidate:{x:i.x+o.x,y:i.y+o.y,width:r.bounds.width+o.width,height:r.bounds.height+o.height},lines:a?[]:t,rects:n}),s.valid=!s.collides,s):s}}({size:t,lines:s,placements:o}),c=pJ({item:e,validator:u});c?(c.height=e.bounds.height,c.width=e.bounds.width,o.push(c),e.setPlacement(c)):n&&a.push({item:e,validator:u})})),a.forEach((e=>{const{item:t,validator:n}=e,r=pJ({item:t,validator:n,force:!0});r&&(r.height=t.bounds.height,r.width=t.bounds.width,o.push(r),t.setPlacement(r))}))}var yJ={require:["chart","renderer"],defaultSettings:{settings:{orientation:"horizontal",rtl:!1,connect:!1,all:!1,label:()=>{},showLabel:()=>!0,pointValue:()=>{},majorValue:()=>{},target:{labelSpace:"label-space-component",point:"point-component",allPoints:[]},lineIndex:"line",insideStrategy:"edge"},style:{fontFamily:"QlikView Sans, sans-serif",fontSize:"12px",fill:"#333"}},preferredSize(){const e={edgeBleed:{top:0,right:0,left:0}},t=this.chart.component(this.settings.settings.target.labelSpace);if(!t||!t.rect)return e;const{orientation:n,rtl:r}=this.settings.settings,i="horizontal"===n;if(t.show(r)){const{size:n}=t.settings.settings;e.edgeBleed.top=i?n:0,e.edgeBleed[r?"left":"right"]=i?0:n}return e},render(){if(!this.chart.component(this.settings.settings.target.point))return[];const{allPoints:e}=this.settings.settings.target,t=e.length?e=>this.settings.settings.target.allPoints.includes(e.key):e=>e.key===this.settings.settings.target.point,n=this.chart.findShapes("circle").filter(t);if(!n.length)return[];const{settings:r}=this.settings,i="horizontal"===r.orientation,o=i?"x":"y";n.sort(((e,t)=>e.localBounds[o]-t.localBounds[o]));const a={label:r.label,pointValue:r.pointValue,majorValue:r.majorValue,lineIndex:r.lineIndex},{height:s,width:l,edgeBleed:u}=this.rect,c={height:s,width:l,edgeBleed:u,insideStrategy:r.insideStrategy},{style:d}=this,f=WK({nodes:n,extract:a,style:d,measureText:this.renderer.measureText,size:c,horizontal:i,rtl:r.rtl,showLabel:r.showLabel});return function({model:e}){e.getItems().sort(((e,t)=>e.extreme===t.extreme?0:e.extreme&&!t.extreme?-1:1))}({model:f}),mJ({model:f,size:c,all:r.all}),f.getItems().filter((e=>e.placement&&e.node.key===this.settings.settings.target.point)).map((e=>({type:"text",x:e.placement.x+e.placement.width/2,y:e.placement.y+e.labelMeasurements.height/2,fontSize:d.fontSize,fontFamily:d.fontFamily,fill:d.fill,text:a.label(e.node.data),baseline:"central",anchor:"middle"})))}},gJ={defaultSettings:{settings:{size:10}},preferredSize(){return this.settings.settings.size},render:()=>[]};var vJ={require:["resolver","symbol"],defaultSettings:{settings:{type:"max",primaryExtremum:()=>{},secondaryExtremum:()=>{},primarySeries:[],secondarySeries:[],orientation:"horizontal",rtl:!1,major:{scale:"major-scale"},markerOffset:1,size:10},style:{fill:"#999"}},preferredSize(){return this.settings.settings.size},render(){const{items:e=[]}=this.data;if(!e.length)return[];const{type:t,orientation:n,rtl:r,markerOffset:i,size:o,major:a,primarySeries:s,secondarySeries:l}=this.settings.settings,u=this.settings.settings.primaryExtremum(),c=this.settings.settings.secondaryExtremum(),d=s.length&&void 0!==u,f=l.length&&void 0!==c;if(!d&&!f)return[];const h=s.map((e=>e.ref)),p=l.map((e=>e.ref)),m=function({type:e,primaryExtremum:t,secondaryExtremum:n,primaryItems:r=[],secondaryItems:i=[],primarySeries:o=[],secondarySeries:a=[]}){const s=[];return[...o,...a].forEach((o=>{const a=o.isPrimary?t:n,l=o.isPrimary?r:i;s.push((({type:e,extremum:t,separateStacking:n,items:r})=>{const i="max"===e?e=>e>t:e=>e<t,o=n?e=>i(e.point.value<0?e.start.value:e.end.value):e=>i(e.end.value);return r.filter(o)})({type:e,extremum:a,items:l}))})),(({items:e})=>{const t=[],n=[];return e.forEach((e=>{const{value:r}=e.major;t[r]||(t[r]=!0,n.push(e))})),n})({items:s.reduce(((e,t)=>e.concat(t)),[])})}({type:t,primaryExtremum:u,secondaryExtremum:c,primaryItems:e.filter((e=>h.includes(e.end.source.field))),secondaryItems:e.filter((e=>p.includes(e.end.source.field))),primarySeries:s,secondarySeries:l});if(!m.length)return[];const y="horizontal"===n,g=this.rect[y?"width":"height"],v=this.resolver.resolve({data:{items:m},settings:{major:a},scaled:{major:g}}),b=("max"===t?90:-90)-(y?0:90)-(!y&&r?180:0),x=o/2*i,{fill:M}=this.settings.style;return v.items.map((e=>function({symbol:e,size:t,fill:n,startAngle:r,x:i,y:o,data:a}){return e({type:"n-polygon",show:!0,size:t,fill:n,stroke:"#205891",strokeWidth:0,sides:3,startAngle:r,width:.7,x:i,y:o,data:a})}({symbol:this.symbol,size:o,fill:M,startAngle:b,x:y?g*e.major:x,y:y?x:g*e.major,data:e.data})))}};function bJ({x:e,y:t,size:n,stroke:r,strokeWidth:i,fill:o}){return{type:"container",children:[{type:"line",stroke:r||o,strokeWidth:i,x1:e-n/2,y1:t,x2:e+n/2,y2:t},{type:"circle",strokeWidth:0,fill:o,cx:e,cy:t,r:.25*n}]}}function xJ({chart:e,seriesInfo:t}){const n={primary:{paths:[],map:{}},secondary:{paths:[],map:{}}},r=[...t.primary.map((e=>e.key)),...t.secondary.map((e=>e.key))];return e.findShapes("path").filter((e=>r.some((t=>t===e.key)))).reduce(((e,n)=>((t.primary.some((e=>e.key===n.key))?e.primary:e.secondary).paths.push(n),e)),n),{getLine:(e,t)=>{const r=t?n.primary:n.secondary;if(!r.map[e]){const[t]=r.paths.filter((t=>t.data&&t.data.typeIndex.value===e));r.map[e]=t}return r.map[e]}}}function MJ({brush:e}){const t=e.brush.values();return function({value:e}){return-1!==t.indexOf(e)}}function SJ({brush:e,chart:t}){const n=e.brush.ranges();if(!n.length)return!1;const r=t&&t.scale(Vo.SCALE.MAJOR),i=r&&r.max&&r.max(),o="qHyperCube/qDimensionInfo/0:numeric"===e.id?(e,t)=>t===i?e<=t:e<t:(e,t)=>e<=t;return function({value:e}){return n.some((t=>t.min<=e&&o(e,t.max)))}}function wJ({brush:e,selectionInfo:t,items:n,selectionValues:r,colorByData:i,chart:o}){const a=e.brushes();if(!a.length)return[];const s=a[0],{minorRange:l,legendRange:u,legendTap:c}=t,d=0===s.id.indexOf("qHyperCube/qMeasureInfo/")?"qHyperCube/qMeasureInfo/X":s.id;let f=[u?e=>e.color.value:r[d]].filter(Boolean);if(i&&l&&f.push((e=>e.color.value)),!i&&c&&(f=[e=>e.color.value]),!f.length)return[];const h=function({brush:e,chart:t}){return("value"===e.type?MJ:SJ)({brush:e,chart:t})}({brush:s,chart:o});return h?n.reduce(((e,t,n)=>(f.some((e=>h({value:e(t)})))&&e.push({item:t,index:n}),e)),[]):[]}function EJ({chart:e,selected:t,connection:n,gradient:r,fallback:i}){const o=e.scale(Vo.SCALE.COLOR),a=t.filter((e=>-1!==n.indexOf(e.index))).map((e=>e.item.end.value)),s=Math.min(...a),l=Math.max(...a),u=l-s,c=0===u?1:u,d=o.domain().map((e=>({color:o(Math.min(l,Math.max(s,e)))||i,offset:Math.min(1,Math.max(0,(e-s)/c))}))),f=d.map((e=>e.offset)),h=f.lastIndexOf(0),p=f.indexOf(1),m=d.slice(-1===h?0:h,-1===p?d.length:p+1);return{type:"gradient",x1:r.x1,x2:r.x2,y1:r.y1,y2:r.y2,stops:m}}function kJ({chart:e,selected:t,connection:n,gradient:r,fallback:i}){const o=e.scale(Vo.SCALE.COLOR),a=t.filter((e=>-1!==n.indexOf(e.index))).map((e=>e.item.end.value)),s=Math.min(...a),l=Math.max(...a)-s,u=0===l?1:l,c=o.domain(),d=[];for(let e=0;e<c.length-1;e++){const t=c[e],n=o(t)||i;d.push({color:n,offset:Math.min(1,Math.max(0,(t-s)/u))});const r=c[e+1];d.push({color:n,offset:Math.min(1,Math.max(0,(r-s)/u))})}const f=d.map((e=>e.offset)),h=f.lastIndexOf(0),p=f.indexOf(1),m=d.slice(-1===h?0:h,-1===p?d.length:p+1);return{type:"gradient",x1:r.x1,x2:r.x2,y1:r.y1,y2:r.y2,stops:m}}function CJ({property:e,chart:t,connection:n,attrs:r,colorSettings:i,colorByData:o,selected:a,hasMultipleMeasures:s,groupedByMeasure:l,itemsPerGroup:u,orientation:c,rtl:d}){const f=r[e];if("gradient"!==f.type)return f;const{type:h,nil:p}=i;if(s||!o)return function({chart:e,selected:t,connection:n,gradient:r,fallback:i,orientation:o,isColorCode:a,groupedByMeasure:s,itemsPerGroup:l,rtl:u}){const c=e.scale(Vo.SCALE.MAJOR),d=e.scale(Vo.SCALE.COLOR),f=s?e=>c([e,0])+c.bandwidth()*l/2:e=>c(e),h=t.filter((e=>-1!==n.indexOf(e.index))),p=("vertical"===o&&u?h.reverse():h).map((e=>e.item)),m=p.map((e=>f(e.major.value))),y=Math.min(...m),g=Math.max(...m)-y,v=0===g?1:g,b=m.map(((e,t)=>0===t?0:t===m.length-1?1:(e-y)/v)),x=[];for(let e=0;e<p.length;e++){const t=p[e],n=a?t.color.value:d(t.color.value)||i,r=b[e];x.push({color:n,offset:0===e?0:Math.max(0,x[x.length-1].offset)}),x.push({color:n,offset:e===p.length-1?1:Math.max(0,parseFloat((r+(b[e+1]-r)/2).toFixed(5)))})}return{type:"gradient",x1:r.x1,x2:r.x2,y1:r.y1,y2:r.y2,stops:x}}({chart:t,selected:a,connection:n,gradient:f,fallback:p,orientation:c,isColorCode:"color"===h,groupedByMeasure:l,itemsPerGroup:u,rtl:d});return("continuous"===h?EJ:kJ)({chart:t,selected:a,connection:n,gradient:f,fallback:p})}function OJ({chart:e,pathModel:t,colorSettings:n,colorByData:r,hasMultipleMeasures:i,groupedByMeasure:o,itemsPerGroup:a,orientation:s,lineKey:l,primary:u,selected:c,connections:d,rtl:f,count:h}){const p=t.getLine(l,u),{attrs:m}=p,y=function({d:e}){return e.replace("Z","").split(/(?=[LMC])/).map((e=>{const t=e.substring(0,1),n={letter:t,x:0,y:0,raw:e},r=e.substring(1).split(",");return"M"===t||"L"===t?([n.x]=r,[,n.y]=r):"C"===t&&([,,,,n.x]=r,[,,,,,n.y]=r),n}))}({d:m.d});return d.map((t=>function({chart:e,colorSettings:t,colorByData:n,hasMultipleMeasures:r,groupedByMeasure:i,itemsPerGroup:o,orientation:a,selected:s,connection:l,commands:u,attrs:c,rtl:d,count:f}){return{path:l.map(((e,t)=>{const n=u[e];return 0!==t||"M"===n.letter?n.raw:`M${n.x},${n.y}`})).join(""),attrs:c,stroke:CJ({property:"stroke",chart:e,connection:l,attrs:c,selected:s,colorSettings:t,colorByData:n,hasMultipleMeasures:r,groupedByMeasure:i,itemsPerGroup:o,orientation:a,rtl:d,count:f})}}({chart:e,colorSettings:n,colorByData:r,hasMultipleMeasures:i,groupedByMeasure:o,itemsPerGroup:a,orientation:s,selected:c,connection:t,commands:y,attrs:m,rtl:f,count:h})))}function TJ({chart:e,pathModel:t,seriesInfo:n,brush:r,selectionInfo:i,items:o,selectionValues:a,colorSettings:s,colorByData:l,hasMultipleMeasures:u,groupedByMeasure:c,itemsPerGroup:d,orientation:f,rtl:h}){const p=function({items:e,seriesInfo:t}){const n=e.reduce(((e,n,r)=>{const i=n.typeIndex.value;var o;return e[i]||(e[i]={key:i,items:[],index:r,measureIx:null===(o=n.colorMeasureIdx)||void 0===o?void 0:o.value,primary:t.primary.some((e=>e.typeIndex===i))}),e[i].items.push(n),e}),{});return Object.keys(n).map((e=>n[e])).sort(((e,t)=>e.index-t.index)).map((e=>({lineKey:e.key,items:e.items,primary:e.primary,measureIx:e.measureIx})))}({items:function({items:e,selectionInfo:t,seriesInfo:n}){return e.filter((e=>{if("NaN"===e.end.value||Number.isNaN(e.end.value))return!1;const{minorRange:r,minorRangePrimary:i}=t;return!r||(i?n.primary:n.secondary).some((t=>t.typeIndex===e.typeIndex.value))}))}({items:o,selectionInfo:i,seriesInfo:n}),seriesInfo:n}),{lines:m}=p.reduce(((n,o)=>{const p=wJ({brush:r,selectionInfo:i,items:o.items,selectionValues:a,colorByData:l,chart:e});if(p.length<2)return n;const m=function({selected:e}){return e.reduce(((e,t)=>{const{index:n}=t;if(e.length){const t=e[e.length-1];n===t[t.length-1]+1?t.push(n):e.push([n])}else e.push([n]);return e}),[]).filter((e=>e.length>1))}({selected:p});return m.length?(n.lines.push(...OJ({chart:e,pathModel:t,colorSettings:s(o.measureIx),colorByData:l(o.measureIx),hasMultipleMeasures:u,groupedByMeasure:c,itemsPerGroup:d,orientation:f,lineKey:o.lineKey,primary:o.primary,selected:p,connections:m,rtl:h,count:o.items.length})),n):n}),{lines:[]}),y=[];return m.forEach((e=>y.push({type:"path",d:e.path,stroke:e.stroke,strokeLinejoin:e.attrs["stroke-linejoin"],strokeWidth:e.attrs["stroke-width"],strokeDasharray:e.attrs["stroke-dasharray"],fill:"none"}))),y}var AJ={require:["chart","renderer"],defaultSettings:{settings:{seriesInfo:{primary:[],secondary:[]},selectionValues:{},colorSettings:void 0,colorByData:!1,isColorCode:!1,hasMultipleMeasures:!1,groupedByMeasure:!1,itemsPerGroup:1,orientation:"vertical",rtl:!1}},addListener(e,t){this.state.brush.addListener(e,t),this.state.listeners.push({type:e,fn:t})},removeListeners(){this.state.listeners.forEach((e=>this.state.brush.removeListener(e.type,e.fn))),this.state.listeners.length=0},created(){this.state={pathModel:xJ({chart:this.chart,seriesInfo:this.settings.settings.seriesInfo}),brush:this.chart.brush("selection"),listeners:[],selectionInfo:{minorRange:!1,minorRangePrimary:!1,legendRange:!1,legendTap:!1}}},mounted(){this.addListener("update",(()=>{this.state.selectionInfo=this.settings.settings.getSelectionInfo();const e=TJ({chart:this.chart,pathModel:this.state.pathModel,seriesInfo:this.settings.settings.seriesInfo,brush:this.state.brush,selectionInfo:this.state.selectionInfo,items:this.data.items,selectionValues:this.settings.settings.selectionValues,colorSettings:this.settings.settings.colorSettings,colorByData:this.settings.settings.colorByData,isColorCode:this.settings.settings.isColorCode,hasMultipleMeasures:this.settings.settings.hasMultipleMeasures,groupedByMeasure:this.settings.settings.groupedByMeasure,itemsPerGroup:this.settings.settings.itemsPerGroup,orientation:this.settings.settings.orientation,rtl:this.settings.settings.rtl});this.renderer.render(e)})),this.addListener("end",(()=>{this.renderer.render([])}))},render(){this.state.pathModel=xJ({chart:this.chart,seriesInfo:this.settings.settings.seriesInfo}),this.state.selectionInfo=this.settings.settings.getSelectionInfo();return TJ({chart:this.chart,pathModel:this.state.pathModel,seriesInfo:this.settings.settings.seriesInfo,brush:this.state.brush,selectionInfo:this.state.selectionInfo,items:this.data.items,selectionValues:this.settings.settings.selectionValues,colorSettings:this.settings.settings.colorSettings,colorByData:this.settings.settings.colorByData,isColorCode:this.settings.settings.isColorCode,hasMultipleMeasures:this.settings.settings.hasMultipleMeasures,groupedByMeasure:this.settings.settings.groupedByMeasure,itemsPerGroup:this.settings.settings.itemsPerGroup,orientation:this.settings.settings.orientation,rtl:this.settings.settings.rtl})},destroyed(){this.removeListeners()}};const NJ=()=>{const e=Eq();return e.use(SR),e.use(function(e){if("function"!=typeof e.interaction)return function(t){t.interaction("hammer",kR(e))};e.interaction("hammer",kR(Hammer))}(Dm)),e.use(iK),e.use(nK()),e.component("scrollbar",Nd),e.component("point-label",yJ),e.component("label-space",gJ),e.component("time-axis",im.picassoComponents.timeAxis),e.component("axis-overlay",im.picassoComponents.axisOverlay),e.component("reference-line-labels",Do),e.component("box-sliced-hat",pK),e.component("box-out-of-bounds",uK),e.component("data-out-of-bounds-marker",vJ),e.component("scroll-hint",Ii),e.component("brush-highlighter",AJ),e.scale("time",im.picassoScales.time),e.symbol("line-point",bJ),e},qJ="QlikView Sans, sans-serif";var DJ=[["object.comboChart","","fontFamily"],["object.comboChart","outOfRange","color","#999"],["object.comboChart","axis.title","color"],["object.comboChart","axis.title","fontSize","13px"],["object.comboChart","axis.title","fontFamily",qJ],["object.comboChart","axis.label.name","color","#595959"],["object.comboChart","axis.label.name","fontSize","12px"],["object.comboChart","axis.label.name","fontFamily",qJ],["object.comboChart","axis.line.major","color","#cccccc"],["object.comboChart","axis.line.minor","color","#e6e6e6"],["object.comboChart","label.value","fontFamily",qJ],["object.comboChart","label.value","fontSize","12px"],["object.comboChart","label.value","numFontSize","12px",e=>parseInt(e,10)],["object.comboChart","label.value","color","#595959"],[!1,"label.value","lightColor","#E6E6E6"],[!1,"label.value","darkColor","#595959"]];const RJ={line:"bar",circle:"circle",diamond:"diamond",triangle:"triangle",rect:"square"},IJ=e=>void 0===e.marker?RJ.circle:RJ[e.marker],_J=e=>void 0===e.markerFill||e.markerFill;function PJ({series:e,layoutService:t}){switch(Lh(e)){case Ho.MARKER:return(e=>({marker:IJ(e),fill:_J(e)}))(e);case Ho.LINE:return(e=>{const t=e.getLayoutValue("nullMode","gap");return{showAsGaps:"gap"===t,showAsConnections:"connect"===t,showAsZeros:"zero"===t}})(t);default:return{}}}function LJ(e=Uo,t){return t?e.axis===$o.PRIMARY:e.axis===$o.PRIMARY||Lh(e)===Ho.BAR}var jJ={exports:{}};var zJ={SEMVER_SPEC_VERSION:"2.0.0",MAX_LENGTH:256,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||9007199254740991,MAX_SAFE_COMPONENT_LENGTH:16};var FJ="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};!function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:n}=zJ,r=FJ,i=(t=e.exports={}).re=[],o=t.src=[],a=t.t={};let s=0;const l=(e,t,n)=>{const l=s++;r(l,t),a[e]=l,o[l]=t,i[l]=new RegExp(t,n?"g":void 0)};l("NUMERICIDENTIFIER","0|[1-9]\\d*"),l("NUMERICIDENTIFIERLOOSE","[0-9]+"),l("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),l("MAINVERSION",`(${o[a.NUMERICIDENTIFIER]})\\.(${o[a.NUMERICIDENTIFIER]})\\.(${o[a.NUMERICIDENTIFIER]})`),l("MAINVERSIONLOOSE",`(${o[a.NUMERICIDENTIFIERLOOSE]})\\.(${o[a.NUMERICIDENTIFIERLOOSE]})\\.(${o[a.NUMERICIDENTIFIERLOOSE]})`),l("PRERELEASEIDENTIFIER",`(?:${o[a.NUMERICIDENTIFIER]}|${o[a.NONNUMERICIDENTIFIER]})`),l("PRERELEASEIDENTIFIERLOOSE",`(?:${o[a.NUMERICIDENTIFIERLOOSE]}|${o[a.NONNUMERICIDENTIFIER]})`),l("PRERELEASE",`(?:-(${o[a.PRERELEASEIDENTIFIER]}(?:\\.${o[a.PRERELEASEIDENTIFIER]})*))`),l("PRERELEASELOOSE",`(?:-?(${o[a.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${o[a.PRERELEASEIDENTIFIERLOOSE]})*))`),l("BUILDIDENTIFIER","[0-9A-Za-z-]+"),l("BUILD",`(?:\\+(${o[a.BUILDIDENTIFIER]}(?:\\.${o[a.BUILDIDENTIFIER]})*))`),l("FULLPLAIN",`v?${o[a.MAINVERSION]}${o[a.PRERELEASE]}?${o[a.BUILD]}?`),l("FULL",`^${o[a.FULLPLAIN]}$`),l("LOOSEPLAIN",`[v=\\s]*${o[a.MAINVERSIONLOOSE]}${o[a.PRERELEASELOOSE]}?${o[a.BUILD]}?`),l("LOOSE",`^${o[a.LOOSEPLAIN]}$`),l("GTLT","((?:<|>)?=?)"),l("XRANGEIDENTIFIERLOOSE",o[a.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*"),l("XRANGEIDENTIFIER",o[a.NUMERICIDENTIFIER]+"|x|X|\\*"),l("XRANGEPLAIN",`[v=\\s]*(${o[a.XRANGEIDENTIFIER]})(?:\\.(${o[a.XRANGEIDENTIFIER]})(?:\\.(${o[a.XRANGEIDENTIFIER]})(?:${o[a.PRERELEASE]})?${o[a.BUILD]}?)?)?`),l("XRANGEPLAINLOOSE",`[v=\\s]*(${o[a.XRANGEIDENTIFIERLOOSE]})(?:\\.(${o[a.XRANGEIDENTIFIERLOOSE]})(?:\\.(${o[a.XRANGEIDENTIFIERLOOSE]})(?:${o[a.PRERELEASELOOSE]})?${o[a.BUILD]}?)?)?`),l("XRANGE",`^${o[a.GTLT]}\\s*${o[a.XRANGEPLAIN]}$`),l("XRANGELOOSE",`^${o[a.GTLT]}\\s*${o[a.XRANGEPLAINLOOSE]}$`),l("COERCE",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?(?:$|[^\\d])`),l("COERCERTL",o[a.COERCE],!0),l("LONETILDE","(?:~>?)"),l("TILDETRIM",`(\\s*)${o[a.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",l("TILDE",`^${o[a.LONETILDE]}${o[a.XRANGEPLAIN]}$`),l("TILDELOOSE",`^${o[a.LONETILDE]}${o[a.XRANGEPLAINLOOSE]}$`),l("LONECARET","(?:\\^)"),l("CARETTRIM",`(\\s*)${o[a.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",l("CARET",`^${o[a.LONECARET]}${o[a.XRANGEPLAIN]}$`),l("CARETLOOSE",`^${o[a.LONECARET]}${o[a.XRANGEPLAINLOOSE]}$`),l("COMPARATORLOOSE",`^${o[a.GTLT]}\\s*(${o[a.LOOSEPLAIN]})$|^$`),l("COMPARATOR",`^${o[a.GTLT]}\\s*(${o[a.FULLPLAIN]})$|^$`),l("COMPARATORTRIM",`(\\s*)${o[a.GTLT]}\\s*(${o[a.LOOSEPLAIN]}|${o[a.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",l("HYPHENRANGE",`^\\s*(${o[a.XRANGEPLAIN]})\\s+-\\s+(${o[a.XRANGEPLAIN]})\\s*$`),l("HYPHENRANGELOOSE",`^\\s*(${o[a.XRANGEPLAINLOOSE]})\\s+-\\s+(${o[a.XRANGEPLAINLOOSE]})\\s*$`),l("STAR","(<|>)?=?\\s*\\*"),l("GTE0","^\\s*>=\\s*0.0.0\\s*$"),l("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")}(jJ,jJ.exports);const BJ=["includePrerelease","loose","rtl"];var VJ=e=>e?"object"!=typeof e?{loose:!0}:BJ.filter((t=>e[t])).reduce(((e,t)=>(e[t]=!0,e)),{}):{};const HJ=/^[0-9]+$/,$J=(e,t)=>{const n=HJ.test(e),r=HJ.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e<t?-1:1};var UJ={compareIdentifiers:$J,rcompareIdentifiers:(e,t)=>$J(t,e)};const WJ=FJ,{MAX_LENGTH:YJ,MAX_SAFE_INTEGER:XJ}=zJ,{re:GJ,t:KJ}=jJ.exports,JJ=VJ,{compareIdentifiers:ZJ}=UJ;class QJ{constructor(e,t){if(t=JJ(t),e instanceof QJ){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if("string"!=typeof e)throw new TypeError("Invalid Version: "+e);if(e.length>YJ)throw new TypeError(`version is longer than ${YJ} characters`);WJ("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const n=e.trim().match(t.loose?GJ[KJ.LOOSE]:GJ[KJ.FULL]);if(!n)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>XJ||this.major<0)throw new TypeError("Invalid major version");if(this.minor>XJ||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>XJ||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t<XJ)return t}return e})):this.prerelease=[],this.build=n[5]?n[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version}toString(){return this.version}compare(e){if(WJ("SemVer.compare",this.version,this.options,e),!(e instanceof QJ)){if("string"==typeof e&&e===this.version)return 0;e=new QJ(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof QJ||(e=new QJ(e,this.options)),ZJ(this.major,e.major)||ZJ(this.minor,e.minor)||ZJ(this.patch,e.patch)}comparePre(e){if(e instanceof QJ||(e=new QJ(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{const n=this.prerelease[t],r=e.prerelease[t];if(WJ("prerelease compare",t,n,r),void 0===n&&void 0===r)return 0;if(void 0===r)return 1;if(void 0===n)return-1;if(n!==r)return ZJ(n,r)}while(++t)}compareBuild(e){e instanceof QJ||(e=new QJ(e,this.options));let t=0;do{const n=this.build[t],r=e.build[t];if(WJ("prerelease compare",t,n,r),void 0===n&&void 0===r)return 0;if(void 0===r)return 1;if(void 0===n)return-1;if(n!==r)return ZJ(n,r)}while(++t)}inc(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t),this.inc("pre",t);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":if(0===this.prerelease.length)this.prerelease=[0];else{let e=this.prerelease.length;for(;--e>=0;)"number"==typeof this.prerelease[e]&&(this.prerelease[e]++,e=-2);-1===e&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error("invalid increment argument: "+e)}return this.format(),this.raw=this.version,this}}var eZ=QJ;const{MAX_LENGTH:tZ}=zJ,{re:nZ,t:rZ}=jJ.exports,iZ=eZ,oZ=VJ;var aZ=(e,t)=>{if(t=oZ(t),e instanceof iZ)return e;if("string"!=typeof e)return null;if(e.length>tZ)return null;if(!(t.loose?nZ[rZ.LOOSE]:nZ[rZ.FULL]).test(e))return null;try{return new iZ(e,t)}catch(e){return null}};const sZ=aZ;var lZ=(e,t)=>{const n=sZ(e,t);return n?n.version:null};const uZ=aZ;var cZ=(e,t)=>{const n=uZ(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null};const dZ=eZ;var fZ=(e,t,n,r)=>{"string"==typeof n&&(r=n,n=void 0);try{return new dZ(e,n).inc(t,r).version}catch(e){return null}};const hZ=eZ;var pZ=(e,t,n)=>new hZ(e,n).compare(new hZ(t,n));const mZ=pZ;var yZ=(e,t,n)=>0===mZ(e,t,n);const gZ=aZ,vZ=yZ;var bZ=(e,t)=>{if(vZ(e,t))return null;{const n=gZ(e),r=gZ(t),i=n.prerelease.length||r.prerelease.length,o=i?"pre":"",a=i?"prerelease":"";for(const e in n)if(("major"===e||"minor"===e||"patch"===e)&&n[e]!==r[e])return o+e;return a}};const xZ=eZ;var MZ=(e,t)=>new xZ(e,t).major;const SZ=eZ;var wZ=(e,t)=>new SZ(e,t).minor;const EZ=eZ;var kZ=(e,t)=>new EZ(e,t).patch;const CZ=aZ;var OZ=(e,t)=>{const n=CZ(e,t);return n&&n.prerelease.length?n.prerelease:null};const TZ=pZ;var AZ=(e,t,n)=>TZ(t,e,n);const NZ=pZ;var qZ=(e,t)=>NZ(e,t,!0);const DZ=eZ;var RZ=(e,t,n)=>{const r=new DZ(e,n),i=new DZ(t,n);return r.compare(i)||r.compareBuild(i)};const IZ=RZ;var _Z=(e,t)=>e.sort(((e,n)=>IZ(e,n,t)));const PZ=RZ;var LZ=(e,t)=>e.sort(((e,n)=>PZ(n,e,t)));const jZ=pZ;var zZ=(e,t,n)=>jZ(e,t,n)>0;const FZ=pZ;var BZ=(e,t,n)=>FZ(e,t,n)<0;const VZ=pZ;var HZ=(e,t,n)=>0!==VZ(e,t,n);const $Z=pZ;var UZ=(e,t,n)=>$Z(e,t,n)>=0;const WZ=pZ;var YZ=(e,t,n)=>WZ(e,t,n)<=0;const XZ=yZ,GZ=HZ,KZ=zZ,JZ=UZ,ZZ=BZ,QZ=YZ;var eQ=(e,t,n,r)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return XZ(e,n,r);case"!=":return GZ(e,n,r);case">":return KZ(e,n,r);case">=":return JZ(e,n,r);case"<":return ZZ(e,n,r);case"<=":return QZ(e,n,r);default:throw new TypeError("Invalid operator: "+t)}};const tQ=eZ,nQ=aZ,{re:rQ,t:iQ}=jJ.exports;var oQ=(e,t)=>{if(e instanceof tQ)return e;if("number"==typeof e&&(e=String(e)),"string"!=typeof e)return null;let n=null;if((t=t||{}).rtl){let t;for(;(t=rQ[iQ.COERCERTL].exec(e))&&(!n||n.index+n[0].length!==e.length);)n&&t.index+t[0].length===n.index+n[0].length||(n=t),rQ[iQ.COERCERTL].lastIndex=t.index+t[1].length+t[2].length;rQ[iQ.COERCERTL].lastIndex=-1}else n=e.match(rQ[iQ.COERCE]);return null===n?null:nQ(`${n[2]}.${n[3]||"0"}.${n[4]||"0"}`,t)},aQ=sQ;function sQ(e){var t=this;if(t instanceof sQ||(t=new sQ),t.tail=null,t.head=null,t.length=0,e&&"function"==typeof e.forEach)e.forEach((function(e){t.push(e)}));else if(arguments.length>0)for(var n=0,r=arguments.length;n<r;n++)t.push(arguments[n]);return t}function lQ(e,t,n){var r=t===e.head?new dQ(n,null,t,e):new dQ(n,t,t.next,e);return null===r.next&&(e.tail=r),null===r.prev&&(e.head=r),e.length++,r}function uQ(e,t){e.tail=new dQ(t,e.tail,null,e),e.head||(e.head=e.tail),e.length++}function cQ(e,t){e.head=new dQ(t,null,e.head,e),e.tail||(e.tail=e.head),e.length++}function dQ(e,t,n,r){if(!(this instanceof dQ))return new dQ(e,t,n,r);this.list=r,this.value=e,t?(t.next=this,this.prev=t):this.prev=null,n?(n.prev=this,this.next=n):this.next=null}sQ.Node=dQ,sQ.create=sQ,sQ.prototype.removeNode=function(e){if(e.list!==this)throw new Error("removing node which does not belong to this list");var t=e.next,n=e.prev;return t&&(t.prev=n),n&&(n.next=t),e===this.head&&(this.head=t),e===this.tail&&(this.tail=n),e.list.length--,e.next=null,e.prev=null,e.list=null,t},sQ.prototype.unshiftNode=function(e){if(e!==this.head){e.list&&e.list.removeNode(e);var t=this.head;e.list=this,e.next=t,t&&(t.prev=e),this.head=e,this.tail||(this.tail=e),this.length++}},sQ.prototype.pushNode=function(e){if(e!==this.tail){e.list&&e.list.removeNode(e);var t=this.tail;e.list=this,e.prev=t,t&&(t.next=e),this.tail=e,this.head||(this.head=e),this.length++}},sQ.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++)uQ(this,arguments[e]);return this.length},sQ.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++)cQ(this,arguments[e]);return this.length},sQ.prototype.pop=function(){if(this.tail){var e=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,e}},sQ.prototype.shift=function(){if(this.head){var e=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,e}},sQ.prototype.forEach=function(e,t){t=t||this;for(var n=this.head,r=0;null!==n;r++)e.call(t,n.value,r,this),n=n.next},sQ.prototype.forEachReverse=function(e,t){t=t||this;for(var n=this.tail,r=this.length-1;null!==n;r--)e.call(t,n.value,r,this),n=n.prev},sQ.prototype.get=function(e){for(var t=0,n=this.head;null!==n&&t<e;t++)n=n.next;if(t===e&&null!==n)return n.value},sQ.prototype.getReverse=function(e){for(var t=0,n=this.tail;null!==n&&t<e;t++)n=n.prev;if(t===e&&null!==n)return n.value},sQ.prototype.map=function(e,t){t=t||this;for(var n=new sQ,r=this.head;null!==r;)n.push(e.call(t,r.value,this)),r=r.next;return n},sQ.prototype.mapReverse=function(e,t){t=t||this;for(var n=new sQ,r=this.tail;null!==r;)n.push(e.call(t,r.value,this)),r=r.prev;return n},sQ.prototype.reduce=function(e,t){var n,r=this.head;if(arguments.length>1)n=t;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");r=this.head.next,n=this.head.value}for(var i=0;null!==r;i++)n=e(n,r.value,i),r=r.next;return n},sQ.prototype.reduceReverse=function(e,t){var n,r=this.tail;if(arguments.length>1)n=t;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");r=this.tail.prev,n=this.tail.value}for(var i=this.length-1;null!==r;i--)n=e(n,r.value,i),r=r.prev;return n},sQ.prototype.toArray=function(){for(var e=new Array(this.length),t=0,n=this.head;null!==n;t++)e[t]=n.value,n=n.next;return e},sQ.prototype.toArrayReverse=function(){for(var e=new Array(this.length),t=0,n=this.tail;null!==n;t++)e[t]=n.value,n=n.prev;return e},sQ.prototype.slice=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var n=new sQ;if(t<e||t<0)return n;e<0&&(e=0),t>this.length&&(t=this.length);for(var r=0,i=this.head;null!==i&&r<e;r++)i=i.next;for(;null!==i&&r<t;r++,i=i.next)n.push(i.value);return n},sQ.prototype.sliceReverse=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var n=new sQ;if(t<e||t<0)return n;e<0&&(e=0),t>this.length&&(t=this.length);for(var r=this.length,i=this.tail;null!==i&&r>t;r--)i=i.prev;for(;null!==i&&r>e;r--,i=i.prev)n.push(i.value);return n},sQ.prototype.splice=function(e,t,...n){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var r=0,i=this.head;null!==i&&r<e;r++)i=i.next;var o=[];for(r=0;i&&r<t;r++)o.push(i.value),i=this.removeNode(i);null===i&&(i=this.tail),i!==this.head&&i!==this.tail&&(i=i.prev);for(r=0;r<n.length;r++)i=lQ(this,i,n[r]);return o},sQ.prototype.reverse=function(){for(var e=this.head,t=this.tail,n=e;null!==n;n=n.prev){var r=n.prev;n.prev=n.next,n.next=r}return this.head=t,this.tail=e,this};try{!function(e){e.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}(sQ)}catch(Wu){}const fQ=aQ,hQ=Symbol("max"),pQ=Symbol("length"),mQ=Symbol("lengthCalculator"),yQ=Symbol("allowStale"),gQ=Symbol("maxAge"),vQ=Symbol("dispose"),bQ=Symbol("noDisposeOnSet"),xQ=Symbol("lruList"),MQ=Symbol("cache"),SQ=Symbol("updateAgeOnGet"),wQ=()=>1;const EQ=(e,t,n)=>{const r=e[MQ].get(t);if(r){const t=r.value;if(kQ(e,t)){if(OQ(e,r),!e[yQ])return}else n&&(e[SQ]&&(r.value.now=Date.now()),e[xQ].unshiftNode(r));return t.value}},kQ=(e,t)=>{if(!t||!t.maxAge&&!e[gQ])return!1;const n=Date.now()-t.now;return t.maxAge?n>t.maxAge:e[gQ]&&n>e[gQ]},CQ=e=>{if(e[pQ]>e[hQ])for(let t=e[xQ].tail;e[pQ]>e[hQ]&&null!==t;){const n=t.prev;OQ(e,t),t=n}},OQ=(e,t)=>{if(t){const n=t.value;e[vQ]&&e[vQ](n.key,n.value),e[pQ]-=n.length,e[MQ].delete(n.key),e[xQ].removeNode(t)}};class TQ{constructor(e,t,n,r,i){this.key=e,this.value=t,this.length=n,this.now=r,this.maxAge=i||0}}const AQ=(e,t,n,r)=>{let i=n.value;kQ(e,i)&&(OQ(e,n),e[yQ]||(i=void 0)),i&&t.call(r,i.value,i.key,e)};var NQ=class{constructor(e){if("number"==typeof e&&(e={max:e}),e||(e={}),e.max&&("number"!=typeof e.max||e.max<0))throw new TypeError("max must be a non-negative number");this[hQ]=e.max||1/0;const t=e.length||wQ;if(this[mQ]="function"!=typeof t?wQ:t,this[yQ]=e.stale||!1,e.maxAge&&"number"!=typeof e.maxAge)throw new TypeError("maxAge must be a number");this[gQ]=e.maxAge||0,this[vQ]=e.dispose,this[bQ]=e.noDisposeOnSet||!1,this[SQ]=e.updateAgeOnGet||!1,this.reset()}set max(e){if("number"!=typeof e||e<0)throw new TypeError("max must be a non-negative number");this[hQ]=e||1/0,CQ(this)}get max(){return this[hQ]}set allowStale(e){this[yQ]=!!e}get allowStale(){return this[yQ]}set maxAge(e){if("number"!=typeof e)throw new TypeError("maxAge must be a non-negative number");this[gQ]=e,CQ(this)}get maxAge(){return this[gQ]}set lengthCalculator(e){"function"!=typeof e&&(e=wQ),e!==this[mQ]&&(this[mQ]=e,this[pQ]=0,this[xQ].forEach((e=>{e.length=this[mQ](e.value,e.key),this[pQ]+=e.length}))),CQ(this)}get lengthCalculator(){return this[mQ]}get length(){return this[pQ]}get itemCount(){return this[xQ].length}rforEach(e,t){t=t||this;for(let n=this[xQ].tail;null!==n;){const r=n.prev;AQ(this,e,n,t),n=r}}forEach(e,t){t=t||this;for(let n=this[xQ].head;null!==n;){const r=n.next;AQ(this,e,n,t),n=r}}keys(){return this[xQ].toArray().map((e=>e.key))}values(){return this[xQ].toArray().map((e=>e.value))}reset(){this[vQ]&&this[xQ]&&this[xQ].length&&this[xQ].forEach((e=>this[vQ](e.key,e.value))),this[MQ]=new Map,this[xQ]=new fQ,this[pQ]=0}dump(){return this[xQ].map((e=>!kQ(this,e)&&{k:e.key,v:e.value,e:e.now+(e.maxAge||0)})).toArray().filter((e=>e))}dumpLru(){return this[xQ]}set(e,t,n){if((n=n||this[gQ])&&"number"!=typeof n)throw new TypeError("maxAge must be a number");const r=n?Date.now():0,i=this[mQ](t,e);if(this[MQ].has(e)){if(i>this[hQ])return OQ(this,this[MQ].get(e)),!1;const o=this[MQ].get(e).value;return this[vQ]&&(this[bQ]||this[vQ](e,o.value)),o.now=r,o.maxAge=n,o.value=t,this[pQ]+=i-o.length,o.length=i,this.get(e),CQ(this),!0}const o=new TQ(e,t,i,r,n);return o.length>this[hQ]?(this[vQ]&&this[vQ](e,t),!1):(this[pQ]+=o.length,this[xQ].unshift(o),this[MQ].set(e,this[xQ].head),CQ(this),!0)}has(e){if(!this[MQ].has(e))return!1;const t=this[MQ].get(e).value;return!kQ(this,t)}get(e){return EQ(this,e,!0)}peek(e){return EQ(this,e,!1)}pop(){const e=this[xQ].tail;return e?(OQ(this,e),e.value):null}del(e){OQ(this,this[MQ].get(e))}load(e){this.reset();const t=Date.now();for(let n=e.length-1;n>=0;n--){const r=e[n],i=r.e||0;if(0===i)this.set(r.k,r.v);else{const e=i-t;e>0&&this.set(r.k,r.v,e)}}}prune(){this[MQ].forEach(((e,t)=>EQ(this,t,!1)))}};class qQ{constructor(e,t){if(t=IQ(t),e instanceof qQ)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new qQ(e.raw,t);if(e instanceof _Q)return this.raw=e.value,this.set=[[e]],this.format(),this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e,this.set=e.split(/\s*\|\|\s*/).map((e=>this.parseRange(e.trim()))).filter((e=>e.length)),!this.set.length)throw new TypeError("Invalid SemVer Range: "+e);if(this.set.length>1){const e=this.set[0];if(this.set=this.set.filter((e=>!HQ(e[0]))),0===this.set.length)this.set=[e];else if(this.set.length>1)for(const e of this.set)if(1===e.length&&$Q(e[0])){this.set=[e];break}}this.format()}format(){return this.range=this.set.map((e=>e.join(" ").trim())).join("||").trim(),this.range}toString(){return this.range}parseRange(e){e=e.trim();const t=`parseRange:${Object.keys(this.options).join(",")}:${e}`,n=RQ.get(t);if(n)return n;const r=this.options.loose,i=r?jQ[zQ.HYPHENRANGELOOSE]:jQ[zQ.HYPHENRANGE];e=e.replace(i,n0(this.options.includePrerelease)),PQ("hyphen replace",e),e=e.replace(jQ[zQ.COMPARATORTRIM],FQ),PQ("comparator trim",e,jQ[zQ.COMPARATORTRIM]),e=(e=(e=e.replace(jQ[zQ.TILDETRIM],BQ)).replace(jQ[zQ.CARETTRIM],VQ)).split(/\s+/).join(" ");const o=r?jQ[zQ.COMPARATORLOOSE]:jQ[zQ.COMPARATOR],a=e.split(" ").map((e=>WQ(e,this.options))).join(" ").split(/\s+/).map((e=>t0(e,this.options))).filter(this.options.loose?e=>!!e.match(o):()=>!0).map((e=>new _Q(e,this.options)));a.length;const s=new Map;for(const e of a){if(HQ(e))return[e];s.set(e.value,e)}s.size>1&&s.has("")&&s.delete("");const l=[...s.values()];return RQ.set(t,l),l}intersects(e,t){if(!(e instanceof qQ))throw new TypeError("a Range is required");return this.set.some((n=>UQ(n,t)&&e.set.some((e=>UQ(e,t)&&n.every((n=>e.every((e=>n.intersects(e,t)))))))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new LQ(e,this.options)}catch(e){return!1}for(let t=0;t<this.set.length;t++)if(r0(this.set[t],e,this.options))return!0;return!1}}var DQ=qQ;const RQ=new NQ({max:1e3}),IQ=VJ,_Q=a0,PQ=FJ,LQ=eZ,{re:jQ,t:zQ,comparatorTrimReplace:FQ,tildeTrimReplace:BQ,caretTrimReplace:VQ}=jJ.exports,HQ=e=>"<0.0.0-0"===e.value,$Q=e=>""===e.value,UQ=(e,t)=>{let n=!0;const r=e.slice();let i=r.pop();for(;n&&r.length;)n=r.every((e=>i.intersects(e,t))),i=r.pop();return n},WQ=(e,t)=>(PQ("comp",e,t),e=KQ(e,t),PQ("caret",e),e=XQ(e,t),PQ("tildes",e),e=ZQ(e,t),PQ("xrange",e),e=e0(e,t),PQ("stars",e),e),YQ=e=>!e||"x"===e.toLowerCase()||"*"===e,XQ=(e,t)=>e.trim().split(/\s+/).map((e=>GQ(e,t))).join(" "),GQ=(e,t)=>{const n=t.loose?jQ[zQ.TILDELOOSE]:jQ[zQ.TILDE];return e.replace(n,((t,n,r,i,o)=>{let a;return PQ("tilde",e,t,n,r,i,o),YQ(n)?a="":YQ(r)?a=`>=${n}.0.0 <${+n+1}.0.0-0`:YQ(i)?a=`>=${n}.${r}.0 <${n}.${+r+1}.0-0`:o?(PQ("replaceTilde pr",o),a=`>=${n}.${r}.${i}-${o} <${n}.${+r+1}.0-0`):a=`>=${n}.${r}.${i} <${n}.${+r+1}.0-0`,PQ("tilde return",a),a}))},KQ=(e,t)=>e.trim().split(/\s+/).map((e=>JQ(e,t))).join(" "),JQ=(e,t)=>{PQ("caret",e,t);const n=t.loose?jQ[zQ.CARETLOOSE]:jQ[zQ.CARET],r=t.includePrerelease?"-0":"";return e.replace(n,((t,n,i,o,a)=>{let s;return PQ("caret",e,t,n,i,o,a),YQ(n)?s="":YQ(i)?s=`>=${n}.0.0${r} <${+n+1}.0.0-0`:YQ(o)?s="0"===n?`>=${n}.${i}.0${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.0${r} <${+n+1}.0.0-0`:a?(PQ("replaceCaret pr",a),s="0"===n?"0"===i?`>=${n}.${i}.${o}-${a} <${n}.${i}.${+o+1}-0`:`>=${n}.${i}.${o}-${a} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${o}-${a} <${+n+1}.0.0-0`):(PQ("no pr"),s="0"===n?"0"===i?`>=${n}.${i}.${o}${r} <${n}.${i}.${+o+1}-0`:`>=${n}.${i}.${o}${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${o} <${+n+1}.0.0-0`),PQ("caret return",s),s}))},ZQ=(e,t)=>(PQ("replaceXRanges",e,t),e.split(/\s+/).map((e=>QQ(e,t))).join(" ")),QQ=(e,t)=>{e=e.trim();const n=t.loose?jQ[zQ.XRANGELOOSE]:jQ[zQ.XRANGE];return e.replace(n,((n,r,i,o,a,s)=>{PQ("xRange",e,n,r,i,o,a,s);const l=YQ(i),u=l||YQ(o),c=u||YQ(a),d=c;return"="===r&&d&&(r=""),s=t.includePrerelease?"-0":"",l?n=">"===r||"<"===r?"<0.0.0-0":"*":r&&d?(u&&(o=0),a=0,">"===r?(r=">=",u?(i=+i+1,o=0,a=0):(o=+o+1,a=0)):"<="===r&&(r="<",u?i=+i+1:o=+o+1),"<"===r&&(s="-0"),n=`${r+i}.${o}.${a}${s}`):u?n=`>=${i}.0.0${s} <${+i+1}.0.0-0`:c&&(n=`>=${i}.${o}.0${s} <${i}.${+o+1}.0-0`),PQ("xRange return",n),n}))},e0=(e,t)=>(PQ("replaceStars",e,t),e.trim().replace(jQ[zQ.STAR],"")),t0=(e,t)=>(PQ("replaceGTE0",e,t),e.trim().replace(jQ[t.includePrerelease?zQ.GTE0PRE:zQ.GTE0],"")),n0=e=>(t,n,r,i,o,a,s,l,u,c,d,f,h)=>`${n=YQ(r)?"":YQ(i)?`>=${r}.0.0${e?"-0":""}`:YQ(o)?`>=${r}.${i}.0${e?"-0":""}`:a?">="+n:`>=${n}${e?"-0":""}`} ${l=YQ(u)?"":YQ(c)?`<${+u+1}.0.0-0`:YQ(d)?`<${u}.${+c+1}.0-0`:f?`<=${u}.${c}.${d}-${f}`:e?`<${u}.${c}.${+d+1}-0`:"<="+l}`.trim(),r0=(e,t,n)=>{for(let n=0;n<e.length;n++)if(!e[n].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(let n=0;n<e.length;n++)if(PQ(e[n].semver),e[n].semver!==_Q.ANY&&e[n].semver.prerelease.length>0){const r=e[n].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0},i0=Symbol("SemVer ANY");class o0{static get ANY(){return i0}constructor(e,t){if(t=s0(t),e instanceof o0){if(e.loose===!!t.loose)return e;e=e.value}d0("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===i0?this.value="":this.value=this.operator+this.semver.version,d0("comp",this)}parse(e){const t=this.options.loose?l0[u0.COMPARATORLOOSE]:l0[u0.COMPARATOR],n=e.match(t);if(!n)throw new TypeError("Invalid comparator: "+e);this.operator=void 0!==n[1]?n[1]:"","="===this.operator&&(this.operator=""),n[2]?this.semver=new f0(n[2],this.options.loose):this.semver=i0}toString(){return this.value}test(e){if(d0("Comparator.test",e,this.options.loose),this.semver===i0||e===i0)return!0;if("string"==typeof e)try{e=new f0(e,this.options)}catch(e){return!1}return c0(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof o0))throw new TypeError("a Comparator is required");if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return""===this.value||new h0(e.value,t).test(this.value);if(""===e.operator)return""===e.value||new h0(this.value,t).test(e.semver);const n=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),r=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),i=this.semver.version===e.semver.version,o=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),a=c0(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),s=c0(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return n||r||i&&o||a||s}}var a0=o0;const s0=VJ,{re:l0,t:u0}=jJ.exports,c0=eQ,d0=FJ,f0=eZ,h0=DQ,p0=DQ;var m0=(e,t,n)=>{try{t=new p0(t,n)}catch(e){return!1}return t.test(e)};const y0=DQ;var g0=(e,t)=>new y0(e,t).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")));const v0=eZ,b0=DQ;var x0=(e,t,n)=>{let r=null,i=null,o=null;try{o=new b0(t,n)}catch(e){return null}return e.forEach((e=>{o.test(e)&&(r&&-1!==i.compare(e)||(r=e,i=new v0(r,n)))})),r};const M0=eZ,S0=DQ;var w0=(e,t,n)=>{let r=null,i=null,o=null;try{o=new S0(t,n)}catch(e){return null}return e.forEach((e=>{o.test(e)&&(r&&1!==i.compare(e)||(r=e,i=new M0(r,n)))})),r};const E0=eZ,k0=DQ,C0=zZ;var O0=(e,t)=>{e=new k0(e,t);let n=new E0("0.0.0");if(e.test(n))return n;if(n=new E0("0.0.0-0"),e.test(n))return n;n=null;for(let t=0;t<e.set.length;++t){const r=e.set[t];let i=null;r.forEach((e=>{const t=new E0(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":i&&!C0(t,i)||(i=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}})),!i||n&&!C0(n,i)||(n=i)}return n&&e.test(n)?n:null};const T0=DQ;var A0=(e,t)=>{try{return new T0(e,t).range||"*"}catch(e){return null}};const N0=eZ,q0=a0,{ANY:D0}=q0,R0=DQ,I0=m0,_0=zZ,P0=BZ,L0=YZ,j0=UZ;var z0=(e,t,n,r)=>{let i,o,a,s,l;switch(e=new N0(e,r),t=new R0(t,r),n){case">":i=_0,o=L0,a=P0,s=">",l=">=";break;case"<":i=P0,o=j0,a=_0,s="<",l="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(I0(e,t,r))return!1;for(let n=0;n<t.set.length;++n){const u=t.set[n];let c=null,d=null;if(u.forEach((e=>{e.semver===D0&&(e=new q0(">=0.0.0")),c=c||e,d=d||e,i(e.semver,c.semver,r)?c=e:a(e.semver,d.semver,r)&&(d=e)})),c.operator===s||c.operator===l)return!1;if((!d.operator||d.operator===s)&&o(e,d.semver))return!1;if(d.operator===l&&a(e,d.semver))return!1}return!0};const F0=z0;var B0=(e,t,n)=>F0(e,t,">",n);const V0=z0;var H0=(e,t,n)=>V0(e,t,"<",n);const $0=DQ;var U0=(e,t,n)=>(e=new $0(e,n),t=new $0(t,n),e.intersects(t));const W0=m0,Y0=pZ;const X0=DQ,G0=a0,{ANY:K0}=G0,J0=m0,Z0=pZ,Q0=(e,t,n)=>{if(e===t)return!0;if(1===e.length&&e[0].semver===K0){if(1===t.length&&t[0].semver===K0)return!0;e=n.includePrerelease?[new G0(">=0.0.0-0")]:[new G0(">=0.0.0")]}if(1===t.length&&t[0].semver===K0){if(n.includePrerelease)return!0;t=[new G0(">=0.0.0")]}const r=new Set;let i,o,a,s,l,u,c;for(const t of e)">"===t.operator||">="===t.operator?i=e1(i,t,n):"<"===t.operator||"<="===t.operator?o=t1(o,t,n):r.add(t.semver);if(r.size>1)return null;if(i&&o){if(a=Z0(i.semver,o.semver,n),a>0)return null;if(0===a&&(">="!==i.operator||"<="!==o.operator))return null}for(const e of r){if(i&&!J0(e,String(i),n))return null;if(o&&!J0(e,String(o),n))return null;for(const r of t)if(!J0(e,String(r),n))return!1;return!0}let d=!(!o||n.includePrerelease||!o.semver.prerelease.length)&&o.semver,f=!(!i||n.includePrerelease||!i.semver.prerelease.length)&&i.semver;d&&1===d.prerelease.length&&"<"===o.operator&&0===d.prerelease[0]&&(d=!1);for(const e of t){if(c=c||">"===e.operator||">="===e.operator,u=u||"<"===e.operator||"<="===e.operator,i)if(f&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===f.major&&e.semver.minor===f.minor&&e.semver.patch===f.patch&&(f=!1),">"===e.operator||">="===e.operator){if(s=e1(i,e,n),s===e&&s!==i)return!1}else if(">="===i.operator&&!J0(i.semver,String(e),n))return!1;if(o)if(d&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===d.major&&e.semver.minor===d.minor&&e.semver.patch===d.patch&&(d=!1),"<"===e.operator||"<="===e.operator){if(l=t1(o,e,n),l===e&&l!==o)return!1}else if("<="===o.operator&&!J0(o.semver,String(e),n))return!1;if(!e.operator&&(o||i)&&0!==a)return!1}return!(i&&u&&!o&&0!==a)&&(!(o&&c&&!i&&0!==a)&&(!f&&!d))},e1=(e,t,n)=>{if(!e)return t;const r=Z0(e.semver,t.semver,n);return r>0?e:r<0||">"===t.operator&&">="===e.operator?t:e},t1=(e,t,n)=>{if(!e)return t;const r=Z0(e.semver,t.semver,n);return r<0?e:r>0||"<"===t.operator&&"<="===e.operator?t:e};var n1=(e,t,n={})=>{if(e===t)return!0;e=new X0(e,n),t=new X0(t,n);let r=!1;e:for(const i of e.set){for(const e of t.set){const t=Q0(i,e,n);if(r=r||null!==t,t)continue e}if(r)return!1}return!0};const r1=jJ.exports;var i1={re:r1.re,src:r1.src,tokens:r1.t,SEMVER_SPEC_VERSION:zJ.SEMVER_SPEC_VERSION,SemVer:eZ,compareIdentifiers:UJ.compareIdentifiers,rcompareIdentifiers:UJ.rcompareIdentifiers,parse:aZ,valid:lZ,clean:cZ,inc:fZ,diff:bZ,major:MZ,minor:wZ,patch:kZ,prerelease:OZ,compare:pZ,rcompare:AZ,compareLoose:qZ,compareBuild:RZ,sort:_Z,rsort:LZ,gt:zZ,lt:BZ,eq:yZ,neq:HZ,gte:UZ,lte:YZ,cmp:eQ,coerce:oQ,Comparator:a0,Range:DQ,satisfies:m0,toComparators:g0,maxSatisfying:x0,minSatisfying:w0,minVersion:O0,validRange:A0,outside:z0,gtr:B0,ltr:H0,intersects:U0,simplifyRange:(e,t,n)=>{const r=[];let i=null,o=null;const a=e.sort(((e,t)=>Y0(e,t,n)));for(const e of a){W0(e,t,n)?(o=e,i||(i=e)):(o&&r.push([i,o]),o=null,i=null)}i&&r.push([i,null]);const s=[];for(const[e,t]of r)e===t?s.push(e):t||e!==a[0]?t?e===a[0]?s.push("<="+t):s.push(`${e} - ${t}`):s.push(">="+e):s.push("*");const l=s.join(" || "),u="string"==typeof t.raw?t.raw:String(t);return l.length<u.length?l:t},subset:n1},o1="0.23.1";const a1=e=>!e||i1.lt(i1.coerce(e),i1.coerce(o1)),s1=({layoutService:e,flags:t})=>{const n=t.isEnabled("BARS_IN_SECONDARY_AXIS")&&!a1(e.getLayoutValue("version")),r=e.getHyperCubeValue("qMeasureInfo").map(((e,t)=>{const n={[Ho.BAR]:0,[Ho.LINE]:0,[Ho.MARKER]:0};return({series:r=Uo},i)=>{const o=LJ(r,t),a=Lh(r);return{id:i,type:a,typeIndex:n[a]++,ref:"qMeasureInfo/"+i,refIndex:i,isPrimary:o,scale:o?Vo.SCALE.MINOR.PRIMARY:Vo.SCALE.MINOR.SECONDARY,collection:o?Vo.COLLECTION.PRIMARY:Vo.COLLECTION.SECONDARY,options:PJ({series:r,layoutService:e})}}})(e,n)),i=(e,t)=>e.filter((e=>Lh(e)===t)).length,o=r.filter((e=>e.isPrimary)),a=r.filter((e=>!e.isPrimary)),s=[!!o.length&&o[0],!!a.length&&a[0]].filter((e=>!!e)),l=i(r,Ho.BAR),u=i(o,Ho.BAR),c=i(a,Ho.BAR),d=e=>r.filter((t=>Lh(t)===e)),f=d(Ho.LINE).map((e=>sf(Vo.COMPONENT.POINT,e))),h=d(Ho.MARKER).map((e=>({key:sf(Vo.COMPONENT.MARKER,e),type:e.options.marker}))),p=h.map((e=>e.key)),m=[];u>0&&m.push(`${Vo.COMPONENT.BAR}-${$o.PRIMARY}`),c>0&&m.push(`${Vo.COMPONENT.BAR}-${$o.SECONDARY}`);const y=[...m,...f,...p],{MINI_CHART:g}=Vo.COMPONENT,v=d(Ho.LINE).map((e=>sf(g.LINE,e))),b=d(Ho.MARKER).map((e=>sf(g.MARKER,e))),x=e.meta.isContinuous?[`${g.BAR}-${$o.PRIMARY}`,`${g.BAR}-${$o.SECONDARY}`,...v,...b]:[];return{meta:{allSeries:r,primarySeries:o,secondarySeries:a,barSeriesCount:l,primaryBarSeriesCount:u,secondaryBarSeriesCount:c,measureAxes:s,pointComponentKeys:f,markerComponentKeys:p,barComponentKeys:m,seriesComponentKeys:y,miniComponentKeys:x,markers:h},query:{all:()=>r,seriesByAxis:e=>e?o:a,series:d,isPrimary:LJ}}};function l1(e){return function({layout:t}){var n,r,i;const o=hl(t,"qHyperCube.qMeasureInfo",[]),a=o.some((({series:e=Uo})=>Lh(e)===Ho.LINE)),s=k.continuous(t,(()=>a&&x.isTime(!0,t))),l=e.isEnabled("BARS_IN_SECONDARY_AXIS")&&!a1(hl(t,"version","")),u=o.filter((({series:e=Uo})=>Lh(e)===Ho.BAR)),c=u.length,d=u.filter((({series:e=Uo})=>e.axis===$o.PRIMARY)).length,f=u.filter((({series:e=Uo})=>e.axis===$o.SECONDARY)).length,h=l?d>1||f>1:c>1,p=("grouped"!==hl(t,"barGrouping.grouping")||s)&&h,m=!p&&c>1,y=l&&p&&(d>0&&f>1||d>1&&f>0),g=!(null==t||null===(n=t.qHyperCube)||void 0===n||null===(r=n.qDimensionInfo)||void 0===r||null===(i=r[0])||void 0===i||!i.qLocked);return{canBeContinuous:x.canBeContinuous(t),isDiscrete:!s,isContinuous:s,isTime:x.isTime(s,t),isSnapshot:k.snapshot(t),isBarSeriesStacked:p,isBarSeriesGrouped:m,isBarSeriesStackedInBothAxis:y,isGrouped:m||y,isGroupedByMeasure:m||y,isDimensionLocked:g,groupSize:y?2:c,hasLineSeries:a}}}function u1({layoutService:e}){const{dimensionCount:t,measureCount:n}=e.meta;return{qTop:0,qLeft:0,qWidth:t+n,qHeight:Math.min(2e3,1e4/(n+1))}}function c1({genericObjectModel:e,layoutService:t}){return function(){return function(e,t,n){return e.getHyperCubeReducedData(n.path,[n.rect],n.zoomLevel,n.filter).catch(O).then((e=>{var n;const r=t.getHyperCubeValue("qMode"),i=t.getHyperCubeValue("qDimensionInfo"),o="K"===r&&i.length>1&&(null===(n=e[0])||void 0===n?void 0:n.qIsReduced),a=e.slice(),s=t.getHyperCubeValue("qMeasureInfo");return{reducedCube:{qDataPages:a,qDimensionInfo:i.slice(),qEffectiveInterColumnSortOrder:[1,0],qMeasureInfo:o?[s[0],s[0]]:s.slice(),qStackedDataPages:[],qMode:"S",qHasOtherValues:t.getHyperCubeValue("qHasOtherValues"),qSize:t.getHyperCubeValue("qSize")}}}))}(e,t,{path:"/qHyperCubeDef",rect:u1({layoutService:t}),zoomLevel:-1,filter:"D1"})}}function d1({genericObjectModel:e,layoutService:t}){const{isSnapshot:n,isContinuous:r}=t.meta;return n?function({layoutService:e}){return function(){return Promise.resolve({reducedCube:e.getLayoutValue("reducedHyperCube")||e.getHyperCube()})}}({layoutService:t}):r?function({layoutService:e}){return function(){const t=e.getHyperCube();return Promise.resolve({reducedCube:{...t,qDataPages:[...t.qDataPages]}})}}({layoutService:t}):c1({genericObjectModel:e,layoutService:t})}const f1=e=>"number"==typeof e&&!Number.isNaN(e);function h1({isPrimary:e,layoutService:t,seriesModel:n}){return function(){const r=t.getHyperCubeValue("qMeasureInfo"),i=n.query.seriesByAxis(e).map((e=>r[e.refIndex])),o=i.filter((e=>Lh(e.series)===Ho.BAR)),a=i.filter((e=>Lh(e.series)===Ho.LINE)),s=i.filter((e=>Lh(e.series)===Ho.MARKER));return{min:Math.min(...i.filter((e=>f1(e.qMin))).map((e=>e.qMin))),max:Math.max(...i.filter((e=>f1(e.qMax))).map((e=>e.qMax))),bar:{min:Math.min(...o.filter((e=>f1(e.qMin))).map((e=>e.qMin))),max:Math.max(...o.filter((e=>f1(e.qMax))).map((e=>e.qMax)))},line:{min:Math.min(...a.filter((e=>f1(e.qMin))).map((e=>e.qMin))),max:Math.max(...a.filter((e=>f1(e.qMax))).map((e=>e.qMax)))},marker:{min:Math.min(...s.filter((e=>f1(e.qMin))).map((e=>e.qMin))),max:Math.max(...s.filter((e=>f1(e.qMax))).map((e=>e.qMax)))}}}}function p1({isPrimary:e,layoutService:t,seriesModel:n}){const r=h1({isPrimary:e,layoutService:t,seriesModel:n}),i=function({seriesModel:e,isPrimary:t}){return function({dataPage:n}){const r=e.query.series(Ho.BAR).filter((e=>e.isPrimary===t)).map((e=>e.refIndex)),{qMatrix:i}=n,o={min:NaN,max:NaN};return i.forEach((e=>{let t=0,n=0;e.slice(1).filter(((e,t)=>r.some((e=>e===t))&&"NaN"!==e.qNum)).forEach((e=>{e.qNum>=0?n+=e.qNum:t+=e.qNum})),o.min=Number.isNaN(o.min)?t:Math.min(t,o.min),o.max=Number.isNaN(o.max)?n:Math.max(n,o.max)})),o}}({seriesModel:n,isPrimary:e});return function({dataPage:e}){const t=r({dataPage:e});return t.bar=i({dataPage:e}),t.min=Math.min(t.bar.min,t.line.min,t.marker.min),t.max=Math.max(t.bar.max,t.line.max,t.marker.max),t}}function m1({isPrimary:e,continuousModel:t,layoutService:n,reducedModel:r,seriesModel:i}){const o={min:NaN,max:NaN,implicit:{min:NaN,max:NaN,bar:{min:NaN,max:NaN},line:{min:NaN,max:NaN},marker:{min:NaN,max:NaN}},explicit:{min:NaN,max:NaN},meta:{hasExplicit:!1,hasExplicitMin:!1,hasExplicitMax:!1,includesZero:!1}},a=function({isPrimary:e,layoutService:t,seriesModel:n}){const{isBarSeriesStacked:r}=t.meta;return r?p1({isPrimary:e,layoutService:t,seriesModel:n}):h1({isPrimary:e,layoutService:t,seriesModel:n})}({isPrimary:e,layoutService:n,seriesModel:i});return{query:{getExtrema:()=>o},command:{initialize:()=>{const{min:s,max:l}=function({isPrimary:e,layoutService:t}){const n={min:NaN,max:NaN},{getLayoutValue:r}=t,i=r("measureAxes."+(e?0:1),{});if(i.autoMinMax)return n;const{minMax:o,min:a,max:s}=i;return"min"!==o&&"minMax"!==o||(n.min=a),"max"!==o&&"minMax"!==o||(n.max=s),Number.isNaN(n.min)||Number.isNaN(n.max)||(n.min=Math.min(a,s),n.max=Math.max(a,s)),n}({isPrimary:e,layoutService:n});return o.explicit.min=s,o.explicit.max=l,o.meta.hasExplicitMin=!Number.isNaN(s),o.meta.hasExplicitMax=!Number.isNaN(l),o.meta.hasExplicit=o.meta.hasExplicitMin||o.meta.hasExplicitMax,function({continuousModel:e,layoutService:t,reducedModel:n}){const{isDiscrete:r}=t.meta;if(r){const e=n.query.getCube();return Promise.resolve({dataPage:e.qDataPages[0]})}return e.fetchMinMaxData().then((e=>({dataPage:e[0]})))}({continuousModel:t,layoutService:n,reducedModel:r}).then((({dataPage:t})=>{const{min:n,max:r,bar:s,line:l,marker:u}=a({dataPage:t}),c=i.query.seriesByAxis(e).some((e=>Lh(e)===Ho.BAR)),d=c?Math.min(n,0):n,f=c?Math.max(r,0):r,h=c?Math.min(s.min,0):s.min,p=c?Math.max(s.max,0):s.max,m=c?Math.min(l.min,0):l.min,y=c?Math.max(l.max,0):l.max,g=c?Math.min(u.min,0):u.min,v=c?Math.max(u.max,0):u.max;o.implicit.min=Number.isFinite(d)?d:0,o.implicit.max=Number.isFinite(f)?f:0,o.implicit.bar.min=Number.isFinite(h)?h:0,o.implicit.bar.max=Number.isFinite(p)?p:0,o.implicit.line.min=Number.isFinite(m)?m:0,o.implicit.line.max=Number.isFinite(y)?y:0,o.implicit.marker.min=Number.isFinite(g)?g:0,o.implicit.marker.max=Number.isFinite(v)?v:0,o.min=Number.isNaN(o.explicit.min)?o.implicit.min:o.explicit.min,o.max=Number.isNaN(o.explicit.max)?o.implicit.max:o.explicit.max,o.meta.hasExplicitMin&&!o.meta.hasExplicitMax&&(o.max=Math.max(o.min,o.max)),o.meta.hasExplicitMax&&!o.meta.hasExplicitMin&&(o.min=Math.min(o.min,o.max)),o.meta.includesZero=!!((0-o.min)*(0-o.max)<=0)}))}}}}function y1({extrema:e,ticks:t}){const n=e.meta.hasExplicit?2:3;return t.filter((t=>(t=>!e.meta.hasExplicitMin||t>=e.explicit.min)(t)&&(t=>!e.meta.hasExplicitMax||t<=e.explicit.max)(t))).length>=n}function g1({min:e,max:t,count:n,threshold:r,disable:i}){const o=function(e,t,n){const r=In().domain([e,t]);return r.nice(n),r}(e,t,n),a=function({min:e,max:t,threshold:n,scale:r,disable:i}){const o={start:!0,stop:!0};if(i)return o;const[a,s]=r.domain();return 0!==e&&0!==a&&(o.start=r(e)>n),0!==t&&0!==s&&(o.stop=r(t)<1-n),o}({min:e,max:t,threshold:r,scale:o,disable:i});if(!a.start||!a.stop){const[e,t]=o.domain(),r=o.ticks(n),i=r.length>=4?r[1]-r[0]:.1*e,s=r.length>=4?r[r.length-1]-r[r.length-2]:.1*t;o.domain([a.start?e:e-i,a.stop?t:t+s]),o.nice(n)}return o}const v1=50,b1=100,x1=200,M1=125;function S1({config:{measureAxesRef:e},layoutService:t,size:n}){const r=(e=>{switch(e){case.5:return v1;case 1:return b1;case 2:return x1;default:return e*M1}})(t.getLayoutValue(e+".spacing",1));return Math.max(1,Math.round(n/r))}function w1({config:e,chart:t,layoutService:n,dockService:r,measureText:i,size:o,min:a,max:s}){const l=S1({config:e,layoutService:n,size:o}),u=g1({min:a,max:s,count:l,threshold:.05,disable:!0}),c=u.domain(),d={roundedMin:c[0],roundedMax:c[1],ticks:u.ticks(l)},f="horizontal"===r.meta.major.orientation?"height":"width",h=e=>i(e)[f],p=t.formatter(e.formatter),m=()=>{const e=d.ticks.map(p);return!e.some(((t,n)=>e.indexOf(t)!==n))&&(e=>{const t=o/d.ticks.length;return Math.max(...e.map(h))<=t})(e)};for(let e=l-1;e>0&&!m();e--)u.domain([a,s]),u.nice(e),[d.roundedMin,d.roundedMax]=u.domain(),d.ticks=u.ticks(e);return d}function E1({tick:e,index:t,ticks:n}){return 0===t||t===n.length-1||0===e}function k1({index:e,ticks:t}){return 0===e||e===t.length-1||e===Math.floor((t.length-1)/2)}function C1({config:e,chart:t,extrema:n,min:r,max:i}){const o={roundedMin:0,roundedMax:0,ticks:[]},a=g1({min:r,max:i,count:10,threshold:.15,disable:!0});[o.roundedMin,o.roundedMax]=a.domain();const s=a.ticks(10),l=function({ticks:e}){const t=Math.round(.3*e.length),n=t,r=e.length-t;return e.slice(n,r).some((e=>0===e))}({ticks:s}),u=l?E1:k1;o.ticks=s.filter(((e,t,n)=>u({tick:e,index:t,ticks:n})));o.ticks.length%2==0&&!l&&!n.meta.hasExplicit&&s.length>1&&(o.ticks=[s[0],(s[0]+s[s.length-1])/2,s[s.length-1]]);const c=t.formatter(e.formatter),d=o.ticks.map(c);return d.some(((e,t)=>d.indexOf(e)!==t))&&(o.ticks=[o.ticks[0],o.ticks[o.ticks.length-1]]),o}function O1({ticks:e,extrema:t}){let n=[...e];return t.meta.hasExplicit&&e.length?(t.meta.hasExplicitMin&&!e.some((e=>e===t.explicit.min))&&(n.unshift(t.explicit.min),n=n.filter((e=>e>=t.explicit.min))),t.meta.hasExplicitMax&&!e.some((e=>e===t.explicit.max))&&(n.push(t.explicit.max),n=n.filter((e=>e<=t.explicit.max))),n):n}function T1({config:e,chart:t,layoutService:n,dockService:r,extrema:i,measureText:o,size:a,min:s,max:l}){const{ticks:u,roundedMin:c,roundedMax:d}=function({config:e,chart:t,layoutService:n,dockService:r,extrema:i,measureText:o,size:a,min:s,max:l}){if("SPARK"===r.meta.chart.mode)return function({min:e,max:t}){return{roundedMin:e,roundedMax:t,ticks:[]}}({min:s,max:l});const u=w1({config:e,chart:t,layoutService:n,dockService:r,measureText:o,size:a,min:s,max:l});return y1({extrema:i,ticks:u.ticks})?u:C1({config:e,chart:t,extrema:i,min:s,max:l})}({config:e,chart:t,layoutService:n,dockService:r,extrema:i,measureText:o,size:a,min:s,max:l}),f=function({ticks:e,count:t}){const n=[];for(let r=0;r<e.length-1;r++){const i=e[r],o=(e[r+1]-i)/(t+1);for(let e=1;e<=t;e++)n.push(i+o*e)}return n}({ticks:u,count:1});return{min:c,max:d,values:[...O1({ticks:u,extrema:i}).map((e=>({value:e,isMinor:!1}))),...f.map((e=>({value:e,isMinor:!0})))].sort(((e,t)=>e.value-t.value))}}function A1({config:e,chart:t,layoutService:n,dockService:r,measureText:i,extrema:o,size:a}){const{min:s,max:l}=function({extrema:e}){const{min:t,max:n}=e;return t!==n?{min:t,max:n}:0===t||1===t?{min:t-1,max:n+1}:{min:t-.2*t*Math.sign(t),max:n+.2*n*Math.sign(n)}}({extrema:o});return T1({config:e,chart:t,layoutService:n,dockService:r,extrema:o,measureText:i,size:a,min:s,max:l})}function N1({config:e,chart:t,layoutService:n,extremumModel:r,dockService:i,seriesModel:o,themeService:a}){const s={locked:!1,resolved:void 0},{getExtrema:l}=r.query,u=function({chart:e,config:t,dockService:n,extremumModel:r,layoutService:i,seriesModel:o,themeService:a}){const{measureText:s}=Eq.renderer("svg")();return()=>{const l=a.getStyles(),u=function({dockService:e,seriesModel:t,chart:n}){var r;const i=n.component(t.meta.seriesComponentKeys[0]),o=null!==(r=null==i?void 0:i.rect)&&void 0!==r?r:e.meta.chart.size;return"horizontal"===e.meta.major.orientation?o.height:o.width}({chart:e,dockService:n,seriesModel:o}),c=r.query.getExtrema();return A1({config:t,chart:e,layoutService:i,dockService:n,measureText:e=>s({text:e,fontFamily:l.axis.label.name.fontFamily,fontSize:l.axis.label.name.fontSize}),extrema:c,size:u})}}({config:e,chart:t,layoutService:n,extremumModel:r,dockService:i,seriesModel:o,themeService:a}),c=()=>(s.locked&&s.resolved||(s.resolved=u()),s.resolved);return{query:{getValues:()=>c().values,getMin:()=>l().meta.hasExplicitMin?l().explicit.min:c().min,getMax:()=>l().meta.hasExplicitMax?l().explicit.max:c().max},command:{lock:()=>{s.locked=!0},unlock:()=>{s.locked=!1}}}}function q1({genericObjectModel:e,layoutService:t}){const n={properties:void 0};return{query:{getProperties:()=>n.properties},command:{initialize:()=>function({layout:e,model:t}){return k.snapshot(e)?Promise.resolve(null):t.getEffectiveProperties().then((e=>({properties:e})))}({layout:t.getLayout(),model:e}).then((e=>{const{properties:t}=null!=e?e:{};n.properties=t}))}}}function D1({layoutService:e,seriesModel:t,colorService:n}){const{type:r,mode:i,fieldType:o}=n.getSettings();if("categorical"!==r)return;const a=e.getLayoutValue("dataPoint.show",!1)?"line-point":"line";let s;s="field"===i?"measure"===o?()=>({type:Ho.BAR}):()=>t.query.all()[0]:e=>t.query.all()[e.value];return{item:{shape:{type:({datum:e})=>{const{type:t,options:n}=s(e);switch(t){case"line":return a;case"marker":return n.marker;default:return"square"}},stroke:{},strokeWidth:({datum:e})=>{const{type:t,options:n}=s(e);return t===Ho.LINE?2:t!==Ho.MARKER||n.fill?0:1},size:10,fill:{fn:({datum:e,scale:t})=>{const{type:n,options:r}=s(e);return n!==Ho.MARKER||"bar"===r.marker||r.fill?t(e.value):"none"}}}}}}function R1({layout:e,defaultAuto:t}){const n=t(e),r=e.qHyperCube.qMeasureInfo.length>1;return{...n,useBaseColors:r?"measure":n.useBaseColors}}function I1({actions:e,appLayoutModel:t,appModel:n,chart:r,environment:i,flags:o,genericObjectModel:a,layoutService:s,picasso:l,seriesModel:u,viewState:c}){let d;const{theme:f,translator:h}=i,p={wrappedScales:void 0,legendComponents:void 0,legendInteractions:void 0};return d=nl({picasso:l,model:a,app:n,translator:h,layoutService:s,createConfig:()=>{let e;o.isEnabled("BASIC_COLOR_OPTIONS_PER_MEASURE")&&(e=s.getHyperCubeValue("qMeasureInfo").map((e=>e.color)));return{theme:f,colorProps:{measureOverrides:e},legendProps:s.getLayoutValue("legend"),hc:s.getHyperCube(),key:Vo.SCALE.COLOR}},config:{auto:R1,localeInfo:t.qLocaleInfo},custom:{wrappedScales:()=>p.wrappedScales,legendComponents:()=>p.legendComponents,legendInteractions:()=>p.legendInteractions,updateLegend:()=>{const{components:t,interactions:n,scales:o}=function({viewState:e,chart:t,layoutService:n,seriesModel:r,environment:i,colorService:o,actions:a}){const{options:s}=i,l={eventName:"legend-c",key:Vo.COMPONENT.LEGEND,viewState:e,chart:t,styleReference:"object.comboChart",rtl:"rtl"===s.direction,settings:D1({layoutService:n,seriesModel:r,colorService:o})},{components:u,interactions:c}=o.getLegend(l,{actions:a,navigationDisabled:!a.interact.enabled()}),d=o.getScales();return{components:u.filter(Boolean).map((e=>{const{layout:t}=e,{dock:n}=t,r=d[Vo.SCALE.COLOR+"Range"];return!r||"right"!==n&&"left"!==n||(r.invert=!0),"legend-cat"===e.type&&(e.settings.item.shape.fill.scale=e.scale,e.settings.item.shape.stroke.scale=e.scale),e})),interactions:c,scales:d}}({viewState:c,chart:r,environment:i,colorService:d,seriesModel:u,layoutService:s,actions:e});p.wrappedScales=o,p.legendComponents=t,p.legendInteractions=n}}}),d}const _1="REJECTED",P1=()=>{},L1=1e4,j1=2,z1=20,F1=200,B1=10;var V1={contains:function(e,t){if(!e)return!1;const{qArea:n}=e;return!!n&&(n.qLeft<=t.qLeft&&n.qLeft+n.qWidth>=t.qLeft+t.qWidth&&n.qTop<=t.qTop&&n.qTop+n.qHeight>=t.qTop+t.qHeight)},patcher:function({layoutService:e}){const t=t=>{t.qArea.qHeight=t.qMatrix.length,t.qArea.qWidth=e.meta.size.x};return t.should=e=>0===e.qArea.qHeight&&0===e.qArea.qWidth&&!!e.qMatrix.length,t},slicer:function(e,t){const n=Math.max(0,t.qHeight)-Math.abs(Math.min(0,t.qTop-e.qArea.qTop)),r=Math.max(0,t.qWidth)-Math.abs(Math.min(0,t.qLeft-e.qArea.qLeft)),i=Math.max(t.qTop,e.qArea.qTop),o=Math.max(t.qLeft,e.qArea.qLeft),a=Math.max(0,i-e.qArea.qTop),s=Math.min(i+n-e.qArea.qTop,e.qArea.qHeight),l=Math.max(0,o-e.qArea.qLeft),u=Math.min(o+r-e.qArea.qLeft,e.qArea.qWidth),c={qArea:{qHeight:s-a,qWidth:u-l,qTop:i,qLeft:o},qMatrix:[]};for(let t=a;t<s;t++)c.qMatrix.push(e.qMatrix[t].slice(l,u));return c},cacheWarden:function({bounds:e={width:0,height:0}}){return{release(t,n){const r=n.qTop-B1<=t.qTop,i=n.qLeft+n.qWidth+B1>=t.qLeft+t.qWidth,o=n.qTop+n.qHeight+B1>=t.qTop+t.qHeight,a=n.qLeft-B1<=t.qLeft;return r&&t.qTop>0||i&&t.qLeft+t.qWidth<e.width||o&&t.qTop+t.qHeight<e.height||a&&t.qLeft>0}}},request:function({definitionPath:e}){return t=>({method:"getHyperCubeData",args:[e,[t]]})}};var H1={contains:function(e,t){if(!e)return!1;const{qArea:n}=e;return!!n&&(n.qTop<=t.qTop&&n.qTop+n.qHeight>=t.qTop+t.qHeight)},patcher:function({layoutService:e}){const t=t=>{t.qArea.qHeight=t.qData[0].qSubNodes.length,t.qArea.qWidth=e.meta.size.x};return t.should=e=>0===e.qArea.qHeight&&0===e.qArea.qWidth&&!!e.qData.length,t},slicer:function(e,t){const n=Math.max(0,t.qHeight)-Math.abs(Math.min(0,t.qTop-e.qArea.qTop)),r=Math.max(t.qTop,e.qArea.qTop),i=Math.max(t.qLeft,e.qArea.qLeft),o=Math.max(0,r-e.qArea.qTop),a=Math.min(r+n-e.qArea.qTop,e.qArea.qHeight),s=e.qData[0].qUp+e.qArea.qHeight+e.qData[0].qDown-r-(a-o),l={qArea:{qHeight:a-o,qWidth:e.qArea.qWidth,qTop:r,qLeft:i},qData:[{...e.qData[0],qUp:r,qDown:s,qSubNodes:[]}]};for(let t=o;t<a;t++)l.qData[0].qSubNodes.push(e.qData[0].qSubNodes[t]);return l},cacheWarden:function({bounds:e={height:0}}){return{release(t,n){const r=n.qTop-B1<=t.qTop,i=n.qTop+n.qHeight+B1>=t.qTop+t.qHeight;return r&&t.qTop>0||i&&t.qTop+t.qHeight<e.height}}},request:function({layoutService:e,definitionPath:t}){const n=e.getLayoutValue("dimensionAxis.axisDisplayMode","auto");return e=>{const r={method:"getHyperCubeStackData",args:[t,[e]]};return"auto"===n&&r.args.push(600),r}}};var $1={contains:function(){return!1},patcher:function(){const e=e=>e;return e.should=()=>!1,e},slicer:function(e){return e},cacheWarden:function(){return{release:()=>!0}},request:function({definitionPath:e}){return t=>({method:"getHyperCubeTreeData",args:[e,[t]]})}};const U1="pages";const W1="discretePan";function Y1({chart:e,actions:t,componentKey:n,dockService:r,rtl:i,scroller:o}){return{type:"Pan",key:"discrete:pan",options:{event:W1,pointers:1,threshold:10,enable(r,i){return this.started===W1||!i||!!t.scroll.enabled()&&e.componentsFromPoint({x:i.center.x,y:i.center.y}).some((e=>e.key===n))}},events:{discretePanstart(e){e.preventDefault(),this.started=W1;const t="horizontal"===r.meta.major.orientation?e.deltaX:e.deltaY;this.previousTotalDelta=t<0?-10:10},discretePanmove(e){e.preventDefault();const t="horizontal"===r.meta.major.orientation,n=t?e.deltaX:e.deltaY,a=t&&i?-1:1,s=(n-this.previousTotalDelta)*a;this.previousTotalDelta=n,o.scroll(s)},discretePanend(e){e.preventDefault(),this.started=!1},discretePancancel(e){e.preventDefault(),this.started=!1}}}}function X1({chart:e,componentKey:t,actions:n,scroller:r}){return function(i){if(!n.scroll.enabled())return;const[o]=e.componentsFromPoint({x:i.clientX,y:i.clientY}).filter((e=>e.key===t));if(!o)return;i.preventDefault();const a=Math.abs(i.deltaY)>Math.abs(i.deltaX)?i.deltaY:i.deltaX,s=100*Math.sign(-a);r.scroll(s)}}function G1({layoutService:e,areaBuffer:t}){const n=void 0===t?function({layoutService:e}){const t=Math.floor(L1/(e.meta.dimensionCount+e.meta.measureCount));return function({width:e,height:n}){const r=Math.min(t,Math.max(F1,n));return{width:e,height:Math.max(z1,Math.min(n*j1,r))}}}({layoutService:e}):function({layoutService:e}){const t=Math.floor(L1/(e.meta.dimensionCount+e.meta.measureCount));return function({width:e,height:n}){return{width:e,height:Math.min(t,n)}}}({layoutService:e}),r={width:e.meta.size.x,height:e.meta.size.y};return function(e){const{width:t,height:i}=n({width:e.qWidth,height:e.qHeight}),o=i?Math.ceil((i-e.qHeight)/2):0,a=t?Math.ceil((t-e.qWidth)/2):0;return{qHeight:i?Math.min(i,r.height):e.qHeight,qWidth:t?Math.min(t,r.width):e.qWidth,qTop:i?Math.max(0,Math.min(e.qTop-o,r.height-i)):e.qTop,qLeft:t?Math.max(0,Math.min(e.qLeft-a,r.width-t)):e.qLeft}}}function K1(e){let t,n;const r=i=>{t=i;const{method:o,args:a}=t.request;e[o](...a).then((e=>{if(t.canceled||n)return t.reject(_1),t=null,void(n&&(r(n),n=null));t.resolve(e[0]),t=null}))},i=e=>new Promise(((i,o)=>{const a={request:e,resolve:i,reject:o,canceled:!1,cancel:()=>{a.canceled=!0}};t?(e=>{n&&n.reject(_1),n=e})(a):r(a)}));return i.isProcessing=()=>!!t,i.hasQueued=()=>!!n,i.cancel=()=>{i.isProcessing()&&t.cancel(),i.hasQueued()&&(n.reject(_1),n=null)},i}const J1={command:{update:()=>{}}};function Z1({dataStore:e,composition:t,enigmaModel:n,layoutService:r,trendLineModel:i=J1,definitionPath:o,areaBuffer:a,processDataPage:s}){const{slicer:l,cacheWarden:u,request:c}=t,d=function({dataStore:e,slice:t,warden:n,expand:r,request:i,process:o,connectionless:a,processDataPage:s}){return(l,{onProcessing:u}={})=>{if(e.contains(l)){const r=e.getCurrent();if(a)return Promise.resolve(t(r,l));const i=n.release(r.qArea,l),s=o.isProcessing();if(!i&&s&&o.cancel(),!i||s)return Promise.resolve(t(r,l))}if(a)return Promise.resolve(e.getCurrent());o.isProcessing()&&u&&u();const c=r(l);return o(i(c)).then((n=>(s(n),e.add(n),t(n,l))))}}({dataStore:e,slice:l,warden:u({bounds:{width:r.meta.size.x,height:r.meta.size.y}}),expand:G1({layoutService:r,areaBuffer:a}),request:c({layoutService:r,definitionPath:o}),process:K1(n),connectionless:r.meta.isSnapshot,processDataPage:s}),f=gl(((e,{onProcessing:t,onData:n})=>{d(e,{onProcessing:t}).then((e=>n(e))).catch((e=>{if(e!==_1)throw e}))}),50);return function(e,{onProcessing:t=P1,onDataPage:n=P1}={}){f(e,{onProcessing:t,onData:e=>{r.setDataPages(e?[e]:[]),i.command.update(),n(e)}})}}var Q1={inTotal:function({layoutService:e}){return e.meta.size.x},area:function({layoutService:e}){return{qTop:0,qHeight:1,qLeft:0,qWidth:e.meta.size.x}},scaleRange:function({layoutService:e,offsets:t,items:n,viewSize:r}){const{pixel:i}=t,o=e.getDataPages()[0],a=i/r;return[a,n.inView>=n.inTotal?a+1:a+o.qArea.qWidth/n.inView]}};var e2={inTotal:function({layoutService:e}){if(e.meta.isSnapshot&&!e.getLayoutValue("reducedHyperCube")){const[t]=e.getDataPages();if(t)return t.qArea.qHeight}return e.meta.size.y},area:function({layoutService:e,itemOffset:t,inView:n,areaBuffer:r}){const i=void 0===r?4:r,o=Math.max(0,Math.floor(t)-i/2);return{qTop:o,qHeight:Math.min(e.meta.size.y-o,Math.max(0,Math.ceil(n+i))),qLeft:0,qWidth:e.meta.size.x}},scaleRange:function({layoutService:e,offsets:t,items:n,viewSize:r}){const{pixel:i}=t,o=e.getDataPages()[0],a=r/n.inView,s=(i+o.qArea.qTop*a)/r;return[s,n.inView>=n.inTotal?s+1:s+o.qArea.qHeight/n.inView]}};function t2(e){const{groupSize:t,measureCount:n}=e.meta;return null!=t?t:n}function n2(e,t){const n=[];for(let r=0;r<e.length;r++){const i=t(e[r]);-1===n.indexOf(i)&&n.push(i)}return n.length}function r2(e){return n2(e.qMatrix,(e=>e[0].qElemNumber))-1}var i2={inTotal:function({layoutService:e}){const t=t2(e);return e.meta.size.y*t*(1+1/t)-1},area:function({layoutService:e,itemOffset:t,inView:n,areaBuffer:r}){const i=t2(e),o=void 0===r?i:r,a=t/(i+1),s=Math.max(0,Math.floor((t-a-o/2)/i));return{qTop:s,qHeight:Math.min(e.meta.size.y-s,Math.max(0,Math.ceil((n+o)/i+1))),qLeft:0,qWidth:e.meta.size.x}},scaleRange:function({layoutService:e,offsets:t,items:n,viewSize:r}){const i=t2(e),o=e.getDataPages()[0],a=r/n.inView,{pixel:s}=t,l=r2(o),u=o.qArea.qHeight*i+l,c=(s+(o.qArea.qTop*i+o.qArea.qTop)*a)/r;return[c,n.inView>=n.inTotal?c+1:c+u/n.inView]}};const o2=(e,t)=>t/(e.meta.size.y/e.meta.size.dimensions[0]+1);function a2(e){return{itemOffset(t,n){if(0!==t.qArea.qTop)return o2(e,n);const r=((e,t)=>{const n={successful:!0,count:0};let r=Math.abs(Math.floor(t));const i=[];for(let t=0;t<=r;t++){if(!e[t])return n.successful=!1,n;const o=e[t][0].qElemNumber;-1===i.indexOf(o)&&(i.push(o),r--)}return n.count=i.length-1,n})(t.qMatrix,n);return r.successful?r.count:o2(e,n)},area(t,n,r){if(0!==t.qArea.qTop)return o2(e,n);return n2(t.qMatrix.slice(0,r.qTop+1),(e=>e[0].qElemNumber))-1}}}var s2={inTotal:function({layoutService:e}){return e.meta.size.y+e.meta.size.dimensions[0]-1},area:function({getDataPages:e,layoutService:t,itemOffset:n,inView:r}){const i=a2(t).itemOffset(e(),n),o=Math.max(0,Math.floor(n-i));return{qTop:o,qHeight:Math.min(t.meta.size.y-o,Math.max(0,Math.ceil(r+1))),qLeft:0,qWidth:t.meta.size.x}},scaleRange:function({getDataPages:e,layoutService:t,offsets:n,items:r,viewSize:i,upperBound:o}){const a=t.getDataPages()[0],s=i/r.inView,{item:l,pixel:u}=n,c=a2(t).area(e(),l,a.qArea),d=r2(a),f=a.qArea.qHeight+d,h=u===o?(r.inView-f)*s/i:(u+(a.qArea.qTop+c)*s)/i;return[h,r.inView>=r.inTotal?h+1:h+f/r.inView]}};function l2({rect:e,dockService:t,itemWidths:n,dimensionAxis:r,inTotal:i,isMajorVisible:o,isMajorLabelless:a,maxDataRows:s}){const{DEFAULT:l,SQUEEZE:u,LABELLESS:c}=n[t.meta.chart.mode],{axisDisplayMode:d="auto",maxVisibleItems:f=10}=r,h="horizontal"===t.meta.major.orientation?e.width:e.height,p=h/i>=u;switch(d){case"max":return Math.min(i,s);case"custom":return Math.min(f,s);case"auto":default:return!o||a?h/c:p?i:h/l}}function u2({chart:e,getRect:t,getDataPages:n,layoutService:r,dockService:i,getItemWidths:o,axisKey:a,areaBuffer:s,rtl:l}){const{inTotal:u,area:c,scaleRange:d}=function({layoutService:e}){const{isDimensionless:t,isGrouped:n,isGroupedByMeasure:r}=e.meta;return t?Q1:n?r?i2:s2:e2}({layoutService:r}),f=()=>"horizontal"===i.meta.major.orientation?t().width:t().height,h=e=>e?f()/e:0,p=(e,t)=>-(e-t)*h(t);return{getItems(){const n=r.getLayoutValue("dimensionAxis"),s=u({layoutService:r}),l=e.component(a),c=!a||!l||l.isVisible();return{inTotal:s,inView:l2({rect:t(),dockService:i,itemWidths:o(),dimensionAxis:n,inTotal:s,isMajorVisible:c,isMajorLabelless:"none"===n.show||"title"===n.show,maxDataRows:Math.floor(L1/(r.meta.dimensionCount+r.meta.measureCount))})}},getItemSize({items:e}){const{inView:t}=e;return h(t)},getOffsets({pixelOffset:e,items:t}){const{inTotal:n,inView:r}=t,i=Math.min(0,Math.max(e,p(n,r)));return{pixel:i,item:r?Math.abs(r*i/f()):0}},getUpperBound({items:e}){const{inTotal:t,inView:n}=e;return p(t,n)},getViewRange({pixelOffset:e,items:t}){const{inTotal:n,inView:r}=t;return function({viewSize:e,inTotal:t,inView:n,pixelOffset:r}){const i=e/n*t,o=Math.abs(r)/i;return[o,o+e/i]}({viewSize:f(),inTotal:n,inView:r,pixelOffset:e})},getArea:({itemOffset:e,items:t})=>c({getDataPages:n,layoutService:r,itemOffset:e,inView:t.inView,areaBuffer:s}),getScaleRange({offsets:e,items:t}){const o=d({getDataPages:n,layoutService:r,offsets:e,items:t,viewSize:f(),upperBound:p(t.inTotal,t.inView)});return"horizontal"===i.meta.major.orientation&&l?function(e){return[1-e[1],1-e[0]]}(o):o},validate:{offset({pixelOffset:e,items:t}){const{inTotal:n,inView:r}=t;return e<=0&&e>=p(n,r)}},convert:{itemToPixelOffset({itemOffset:e,items:t}){const{inView:n}=t,r=e*h(n);return Number.isFinite(r)?-r:0},relativeToPixelOffset({relativeOffset:e,items:t}){const{inTotal:n,inView:r}=t;return-e*(h(r)*n)}}}}function c2({chart:e,componentKey:t,state:n,dataStore:r,pageData:i,layoutService:o,dockService:a,itemWidths:s,getRect:l,axisKey:u,areaBuffer:c,viewState:d,rtl:f}){n.set("rect",{width:0,height:0}),n.set("itemWidths",{}),n.set("itemSize",0),n.set("items",{}),n.set("offsets",{}),n.set("finished",0),n.set("scaleRange",[0,1]);const h=u2({chart:e,getRect:()=>n.get("rect"),getDataPages:r.getCurrent,layoutService:o,dockService:a,getItemWidths:()=>n.get("itemWidths"),axisKey:u,areaBuffer:c,rtl:f}),p=()=>{const e=h.getItems();return n.set("items",e),e},m=({pixelOffset:e,items:t})=>{const r=h.getOffsets({pixelOffset:e,items:t});return n.set("offsets",r),r},y=e=>{const t=Date.now(),r=p(),a=m({pixelOffset:e,items:r}),s=h.getArea({itemOffset:a.item,items:r});if((e=>{const[{qArea:t}]=o.getDataPages();return!!t&&Object.keys(e).every((n=>e[n]===t[n]))})(s))return void((h.validate.offset({pixelOffset:e,items:r})||d.get("scrollOffset")!==a.item)&&(n.set("finished",t),n.set("scaleRange",h.getScaleRange({offsets:a,items:r})),d.preventSet("viewRange",h.getViewRange({pixelOffset:a.pixel,items:r})),d.set("scrollOffset",a.item)));d.preventSet("viewRange",h.getViewRange({pixelOffset:a.pixel,items:r}));const l=()=>{n.get("finished")>t||(n.set("finished",t),n.set("scaleRange",h.getScaleRange({offsets:a,items:r})),d.set("scrollOffset",a.item))};i(s,{onProcessing:l,onDataPage:l})};return{enabled(){const{inTotal:e,inView:t}=n.get("items");return e>t},itemSize:()=>n.get("itemSize"),scaleRange:()=>n.get("scaleRange"),initialize(){const r=e.component(t);if(!r)return Promise.resolve();n.set("rect","function"==typeof l?l():r.rect),n.set("itemWidths","function"==typeof s?s():s);const a=p();n.set("itemSize",h.getItemSize({items:a}));const u=void 0===d.get("scrollOffset")?(({items:e})=>1===o.getLayoutValue("scrollStartPos")?h.getUpperBound({items:e}):0)({items:a}):h.convert.itemToPixelOffset({itemOffset:d.get("scrollOffset"),items:a}),c=m({pixelOffset:u,items:a});d.preventSet("viewRange",h.getViewRange({pixelOffset:c.pixel,items:a}));const f=h.getArea({itemOffset:c.item,items:a});return new Promise((e=>{i(f,{onDataPage:()=>{n.set("scaleRange",h.getScaleRange({offsets:c,items:a})),d.preventSet("scrollOffset",c.item),e()}})}))},scroll(e){const t=n.get("offsets").pixel+e;y(t)},scrollToRelative(e){const t=n.get("items"),r=h.convert.relativeToPixelOffset({relativeOffset:e,items:t});y(r)}}}function d2({chart:e,actions:t,componentKey:n,enigmaModel:r,layoutService:i,dockService:o,trendLineModel:a,itemWidths:s,viewState:l,rtl:u,options:{definitionPath:c="/qHyperCubeDef",getRect:d,axisKey:f,areaBuffer:h,processDataPage:p=(()=>{})}={}}){const m=ml(),y=function({qMode:e}){switch(e){case"S":default:return V1;case"K":return H1;case"T":return $1}}({qMode:i.getHyperCubeValue("qMode")}),g=function({state:e,contains:t}){return e.set(U1,[]),{add:t=>{const n=e.get(U1);n.length=0,n.push(t)},getCurrent:()=>e.get(U1)[0],getAll:()=>e.get(U1),contains:n=>t(e.get(U1)[0],n)}}({state:m,contains:y.contains});!function({layoutService:e,dataStore:t,composition:n}){const r=e.getDataPages()[0];if(!r)return;const i=n.patcher({layoutService:e});i.should(r)&&i(r),t.add(r)}({layoutService:i,dataStore:g,composition:y});const v=function({buffer:e}){return void 0===e?void 0:2*Math.round(e/2)}({buffer:h}),b=Z1({dataStore:g,composition:y,enigmaModel:r,layoutService:i,trendLineModel:a,definitionPath:c,areaBuffer:v,processDataPage:p}),x=c2({chart:e,componentKey:n,state:m,dataStore:g,pageData:b,layoutService:i,dockService:o,itemWidths:s,getRect:d,axisKey:f,areaBuffer:v,viewState:l,rtl:u}),M=function({layoutService:e,dataStore:t}){return function(n){const r=hl(n,""+e.refs.dataPages);r.length=0,r.push(t.getCurrent())}}({layoutService:i,dataStore:g});return{interactions:function({chart:e,actions:t,componentKey:n,dockService:r,rtl:i,scroller:o}){return{gestures:[Y1({chart:e,actions:t,componentKey:n,dockService:r,rtl:i,scroller:o})],native:{type:"native",events:{wheel:X1({chart:e,actions:t,componentKey:n,scroller:o})}}}}({chart:e,actions:t,componentKey:n,dockService:o,rtl:u,scroller:x}),query:{getCanScroll:()=>x.enabled(),getItemSize:()=>x.itemSize(),getScaleRange:()=>x.scaleRange(),getCurrentDataPage:()=>g.getCurrent()},command:{initialize:()=>x.initialize(),scrollTo:e=>x.scrollToRelative(e),setSnapshotData:e=>M(e)}}}var f2={SPARK:{DEFAULT:7,SQUEEZE:7,LABELLESS:7},XSMALL:{DEFAULT:28,SQUEEZE:24,LABELLESS:20},SMALL:{DEFAULT:28,SQUEEZE:24,LABELLESS:20},MEDIUM:{DEFAULT:28,SQUEEZE:24,LABELLESS:20},FULL:{DEFAULT:28,SQUEEZE:24,LABELLESS:20}};function h2({appLayoutModel:e,appModel:t,chart:n,environment:r,flags:i,genericObjectModel:o,layout:a,picasso:s}){const{translator:l,embed:u}=r,c=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:ia,miniChartToken:{},embed:s}}({layout:a,app:t,model:o,picasso:s,chart:n,translator:l,localeInfo:e.qLocaleInfo,embed:u});return{query:{useCustomTooltip:()=>c.useCustomTooltip,useTooltipChart:()=>{var e,t,n,r;return i.isEnabled("CUSTOM_TOOLTIP_CHART")&&(null===(e=a.tooltip)||void 0===e||null===(t=e.chart)||void 0===t||null===(n=t.object)||void 0===n?void 0:n.refId)&&c.embed&&"function"==typeof(null===(r=c.model)||void 0===r?void 0:r.getEffectiveProperties)},hasChartLimitation:()=>{var e;return null==t||null===(e=t.isInModalSelection)||void 0===e?void 0:e.call(t)},getCustomTooltipModel:()=>c}}}function p2({layoutService:e,key:t}){const{style:n}=e.getLayoutValue("components",[]).filter((e=>e.key===t))[0]||{};return({property:r,defaultValue:i,index:o})=>{const a=n&&Object.hasOwnProperty.call(n,r)?n[r]:i;if(void 0===o)return a;const{style:s}=e.getHyperCubeValue((e=>`qMeasureInfo.${e}.styling`)(o),[]).filter((e=>e.key===t))[0]||{};return s&&Object.hasOwnProperty.call(s,r)?s[r]:a}}function m2({layoutService:e,dockService:t}){const{BAR:n,LINE:r,POINT:i}=gf,o=p2({layoutService:e,key:"bar"}),a=p2({layoutService:e,key:"line"}),s=()=>{const e=o({property:"strokeWidth",defaultValue:"none"});return e?n.STROKE.WIDTH[e.toUpperCase()]:0};return{query:{bar:{getHasStyling:()=>!!e.getLayoutValue("components",[]).filter((e=>"bar"===e.key)).length,getWidthFn:()=>()=>o({property:"width",defaultValue:.7}),getHasStrokeWidth:()=>!!s(),getStrokeWidth:()=>s(),getStrokeColor:()=>o({property:"strokeColor",defaultValue:{index:-1,color:n.STROKE.COLOR}}).color},line:{getCurveFn:()=>(e,t)=>a({property:"lineCurve",defaultValue:r.CURVE.LINEAR,index:t}),getStrokeWidthFn:()=>(e,n)=>a({property:"lineThickness",defaultValue:"FULL"===t.meta.chart.mode?r.WIDTH.FULL.DEFAULT:r.WIDTH.LESS.DEFAULT,index:n}),getStrokeDasharrayFn:()=>(e,t)=>{const n=a({property:"lineType",defaultValue:r.TYPE.SOLID,index:t});return n&&r.TYPE[n.toUpperCase()]}},point:{getSize:e=>a({property:"dataPointSize",defaultValue:i.SIZE.DEFAULT,index:e})}}}}const{model:y2}=im,g2=({picasso:t,chart:n,environment:r,flags:i,viewState:o,viewCache:a,actions:s,selectionService:l})=>{const u=e.useStaleLayout(),{width:c,height:d}=e.useRect(),[f,h]=e.useState(),[p,m]=e.useState(),y=e.useModel(),g=e.useApp(),v=e.useAppLayout(),b=e.usePlugins();e.useEffect((()=>{if(!(u&&null!=n&&n.update&&r&&o))return;const e=function(e){var t=e.source,n=e.metaAdditionsFn,r=Ta(!0,{},t),i=bl(r),o=function(){return function(e){var t=e.layout,n=e.additionsFn,r=void 0===n?function(){return{}}:n,i=e.additionsProps,o=void 0===i?{}:i,a=t.qHyperCube,s=a.qDimensionInfo,l=a.qMeasureInfo,u=a.qMode,c=s.length,d=l.length,f=pa({mode:{S:"S"===u,P:"P"===u,K:"K"===u,T:"T"===u},dimensionCount:c,measureCount:d,hasMultipleDimensions:c>1,hasMultipleMeasures:d>1,isOneDimensional:1===c,isTwoDimensional:2===c},o);return pa(pa({},f),r({layout:t,meta:f}))}({layout:r,additionsFn:n,additionsProps:{size:i.size}})},a={refs:pa({},i.refs),meta:o(),getLayout:function(){return r},getLayoutValue:function(e,t){return hl(r,e,t)},setLayoutValue:function(e,t){pl(r,e,t),i=bl(r),a.meta=o()},getHyperCube:function(){return r.qHyperCube},getHyperCubeValue:function(e,t){return hl(r.qHyperCube,e,t)},setHyperCubeValue:function(e,t){pl(r.qHyperCube,e,t),i=bl(r),a.meta=o()},getDataPages:function(){return hl(r,i.refs.dataPages)},setDataPages:function(e){pl(r,i.refs.dataPages,e),a.meta=o()}};return a}({source:u,metaAdditionsFn:l1(i)}),{viewState:f={}}=r.options,{legendScrollOffset:p,scrollOffset:m}=e.meta.isSnapshot?e.getLayoutValue("snapshotData.content.chartData",{}):f;o.preventSet("scrollOffset",m),o.preventSet("legendScrollOffset",p),o.preventSet("title",e.getLayoutValue("title"));const x=function({genericObjectModel:e,layoutService:t}){const n={cube:void 0,on:!1},r=d1({genericObjectModel:e,layoutService:t});return{query:{getCube:()=>n.cube,getIsReduced:()=>n.on},command:{initialize:()=>r().then((({reducedCube:e})=>{n.cube=e,n.on=!!(n.cube&&n.cube.qDataPages[0]&&n.cube.qDataPages[0].qIsReduced)})),setSnapshotData:e=>{e.reducedHyperCube=n.cube}}}}({genericObjectModel:y,layoutService:e}),M=fl({chart:n,layoutService:e,config:{logicalSize:{width:c,height:d},rtl:"rtl"===r.options.direction},typeConfig:{type:"major-minor",fallback:"vertical",invert:!0,measureAxes:[{ref:"measureAxes.0",name:"minor"},{ref:"measureAxes.1",name:"minorSecondary"}]}}),S=m2({layoutService:e,dockService:M}),w=s1({layoutService:e,flags:i}),E=e.meta.isDiscrete?function({chart:e,genericObjectModel:t,layoutService:n,dockService:r,seriesModel:i,viewState:o,rtl:a,actions:s}){return d2({chart:e,actions:s,componentKey:om(i),enigmaModel:t,layoutService:n,dockService:r,viewState:o,rtl:a,itemWidths:f2,options:{axisKey:Vo.COMPONENT.AXIS.MAJOR}})}({chart:n,genericObjectModel:y,layoutService:e,dockService:M,seriesModel:w,viewState:o,rtl:"rtl"===r.options.direction,actions:s}):void 0,k=e.meta.isContinuous?y2({model:y,layoutService:e,viewState:o,viewCache:a}):void 0,C=I1({actions:s,appLayoutModel:v,appModel:g,chart:n,environment:r,flags:i,genericObjectModel:y,layoutService:e,picasso:t,seriesModel:w,viewState:o}),O=function(e){var t=e.theme,n=e.styleMatrix,r={theme:t,styleMatrix:Hc(void 0===n?[]:n),styles:void 0};return r.styles=$c(r.styleMatrix,t),{getStyles:function(){return r.styles},getTheme:function(){return r.theme},setTheme:function(e){r.theme=e,r.styles=$c(r.styleMatrix,e)}}}({theme:r.theme,styleMatrix:DJ}),T=function({layoutService:e,seriesModel:t}){const{isContinuous:n}=e.meta,r="qDimensionInfo/0",i=r+":numeric";return{main:{major:r,majorNumeric:i,minorsPrimary:t.meta.primarySeries.map((e=>e.ref)),minorsSecondary:t.meta.secondarySeries.map((e=>e.ref))},virtuals:n?[{key:i,from:r,override:{value:e=>e.qNum}}]:void 0}}({layoutService:e,seriesModel:w}),A=m1({isPrimary:!0,layoutService:e,reducedModel:x,seriesModel:w,continuousModel:k,flags:i}),N=m1({isPrimary:!1,layoutService:e,reducedModel:x,seriesModel:w,continuousModel:k,flags:i}),q=N1({config:{measureAxesRef:"measureAxes.0",formatter:Vo.FORMATTER.PRIMARY},chart:n,layoutService:e,extremumModel:A,dockService:M,seriesModel:w,themeService:O}),D=N1({config:{measureAxesRef:"measureAxes.1",formatter:Vo.FORMATTER.SECONDARY},chart:n,layoutService:e,extremumModel:N,dockService:M,seriesModel:w,themeService:O}),R=q1({genericObjectModel:y,layoutService:e}),I=h2({appLayoutModel:v,appModel:g,chart:n,environment:r,flags:i,genericObjectModel:y,layout:u,picasso:t}),_=Fo({layoutService:e,discreteModel:E}),P=function(e){return{layout:e.getLayout(),keys:{SCALE:{MAJOR:Vo.SCALE.MAJOR,MAJOR_INNER:Vo.SCALE.MAJOR_INNER,MINOR:{PRIMARY:Vo.SCALE.MINOR.PRIMARY,SECONDARY:Vo.SCALE.MINOR.SECONDARY}},COMPONENT:{BAR_PRIMARY:`${Vo.COMPONENT.BAR}-${$o.PRIMARY}`,BAR_SECONDARY:`${Vo.COMPONENT.BAR}-${$o.SECONDARY}`,AXIS:{MAJOR:Vo.COMPONENT.AXIS.MAJOR,MAJOR_CONTINUOUS:Vo.COMPONENT.AXIS.MAJOR_CONTINUOUS,TIME_INNER:Vo.COMPONENT.AXIS.TIME_INNER,MINOR:{PRIMARY:Vo.COMPONENT.AXIS.MINOR.PRIMARY,SECONDARY:Vo.COMPONENT.AXIS.MINOR.SECONDARY}},AXIS_TITLE:{MAJOR:Vo.COMPONENT.AXIS_TITLE.MAJOR,MINOR:{PRIMARY:Vo.COMPONENT.AXIS_TITLE.MINOR.PRIMARY,SECONDARY:Vo.COMPONENT.AXIS_TITLE.MINOR.SECONDARY}}},COLLECTION:{MAIN:Vo.COLLECTION.MAIN}}}}(e),L=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 da(regeneratorRuntime.mark((function e(){var r,a,s,l;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!o.initialized){e.next=2;break}return e.abrupt("return");case 2:return a=Promise.all(n.filter((function(e){return"custom-component"===e.info.type})).map(function(){var e=da(regeneratorRuntime.mark((function e(n){var r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n.info.componentName){e.next=2;break}throw new Error("plugin-service: Custom component is missing componentName");case 2:return e.next=4,n.fn(pa({},i));case 4:if("object"===ua(r=e.sent)){e.next=7;break}throw new Error("plugin-service: Custom component needs to be an object");case 7:t.component(n.info.componentName,r);case 8:case"end":return e.stop()}}),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(pa({},i))}))),e.next=6,Promise.all([a,s]);case 6:l=e.sent,o.initialized=!0,(r=o.definitions).push.apply(r,ga(l[1]));case 9:case"end":return e.stop()}}),e)})))()},extendComponents:function(e){return o.initialized?(o.definitions.filter(Boolean).forEach((function(t){var n=ya(e.filter((function(e){return e.key&&e.key===t.key})),1)[0];if(n){var r=Ta(!0,{},n.brush);Ta(!0,n,t),t.brush&&(n.brush=function(e,t){return"object"===ua(e)&&Object.keys(e).length?(Array.isArray(t.consume)&&(e.consume=xl({originalArray:e.consume,newArray:t.consume,matchKey:"context"})),Array.isArray(t.trigger)&&(e.trigger=xl({originalArray:e.trigger,newArray:t.trigger,matchKey:"on"})),e):t}(r,t.brush))}else e.push(t)})),e):e}}}({picassoInstance:t,plugins:b,pluginArgs:P});h({selectionService:l,genericObjectModel:y,appModel:g,dockService:M,styleModel:S,layoutService:e,fieldModel:T,seriesModel:w,reducedModel:x,primaryExtremumModel:A,secondaryExtremumModel:N,primaryTickModel:q,secondaryTickModel:D,propertiesModel:R,colorService:C,themeService:O,appLayoutModel:v,tooltipModel:I,flags:i,...E&&{discreteModel:E},...k&&{continuousModel:k},refLineModel:_,pluginService:L})}),[u,y,g,v,r,null==n?void 0:n.update,o]);const[,x]=e.usePromise((()=>{if(!f)return Promise.resolve();const{layoutService:e,colorService:t,reducedModel:n,primaryExtremumModel:i,secondaryExtremumModel:a,propertiesModel:u,continuousModel:c,discreteModel:d,pluginService:h}=f,p=c?()=>{var t,n;c.update(e.getLayout());const i=c.initialFetch(),a=!e.meta.isSnapshot&&(null==r||null===(t=r.options)||void 0===t||null===(n=t.viewState)||void 0===n?void 0:n.zoom);return a&&o.preventSet("zoom",a),i}:()=>Promise.resolve(),g=t.initialize().then((()=>{const e=t.getSettings().field;l.setBrushAliases({colorField:e}),t.custom.updateLegend()}));return Promise.all([h.initialize(),n.command.initialize(),y?u.command.initialize():Promise.resolve(),g,p(),s.scroll.attachDiscreteModel(d)]).then((()=>Promise.all([i.command.initialize(),a.command.initialize()]).then((()=>m(f)))))}),[f]);if(x)throw x;return p};function v2(){const[t,n]=e.useState();return e.useEffect((()=>{n(function(e){var t=pa({},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}({viewRange:[0,1],scrollOffset:void 0}))}),[]),t}const b2={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"}}]};const x2={query:{getCanScroll:()=>!0}};function M2(){const t=e.useConstraints(),[n,r]=e.useState(!1),[i,o]=e.useState(!1),[a,s]=e.useState(!1),l=function(){const t=e.useConstraints(),[n,r]=e.useState(!1),[i,o]=e.useState({}),[a,s]=e.useState();return e.useEffect((()=>()=>{o({})}),[]),e.useEffect((()=>{t&&r(!t.select&&!t.active)}),[t]),{enabled:()=>n,emit:(e,...t)=>i[e].forEach((e=>e(...t))),removeListener:(e,t)=>{var n;const r=null===(n=i[e])||void 0===n?void 0:n.indexOf(t);r>-1&&i[e].splice(r,1)},on:(e,t)=>{Array.isArray(i[e])?i[e].push(t):i[e]=[t]},get brushSelectionIncludeMax(){return a},set brushSelectionIncludeMax(e){s(e)},getBrushOptions:void 0}}(),u=function(){var t,n,r;const i=e.useConstraints(),[o,a]=e.useState(!1),[s,l]=e.useState(!1),u=e.useLayout(),c=!!u.qSelectionInfo.qInSelections,d=!(null===(t=u.qHyperCube)||void 0===t||null===(n=t.qDimensionInfo)||void 0===n||null===(r=n[0])||void 0===r||!r.qIsOneAndOnlyOne);e.useEffect((()=>{i&&a(!i.select&&!i.active)}),[i]);const f=e=>{l("boolean"==typeof e?e:!s)};return e.useAction((()=>({key:"lasso",label:"Lasso",icon:b2,hidden:!o||!c||d,active:s,action:f})),[c,d,s,o]),{action:f,enabled:()=>o,active:()=>s}}();let c=x2;e.useEffect((()=>{t&&(r(!t.active),o(!t.active),s(!t.passive))}),[t]);const[d]=e.useState({});return d.scroll={enabled:()=>n&&c.query.getCanScroll(),attachDiscreteModel:e=>{c=e||x2}},d.interact={enabled:()=>i},d.tooltip={enabled:()=>a},d.lasso=u,d.select=l,d}function S2({clearMinor:e,clearDiscrete:t,clearLegend:n}){e(),e({componentName:"minor-secondary-range-brush",eventName:"minorRange-secondary"}),t({brushName:!1}),n()}function w2({setSelectionInfo:e,event:t,components:n,clear:r}){const i=null!=n&&n.length?n.map((e=>e.key)).filter(Boolean):[];e({event:t,components:i,minorRangePrimary:"minorRange"===t,minorRange:["minorRange","minorRange-secondary"].includes(t),legendRange:"legendRange"===t,legendTap:"tap"===t&&i[0]===Vo.COMPONENT.LEGEND_CATEGORICAL}),r()}var E2={exports:{}};!function(e,t){!function(t,n){e.exports=n()}(window,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/conversion/",n(n.s="./index.js")}({"../node_modules/extend/index.js":
|
|
64
64
|
/*!***************************************!*\
|
|
65
65
|
!*** ../node_modules/extend/index.js ***!
|
|
66
66
|
\***************************************/
|
|
@@ -815,7 +815,7 @@ function(e,t,n){function r(e,t,n){return"function"==typeof e?e(t):Number.isNaN(+
|
|
|
815
815
|
/*! exports provided: default */
|
|
816
816
|
function(e,t,n){n.r(t),n.d(t,"default",(function(){return o}));var r=n(
|
|
817
817
|
/*! qlik-modifiers */
|
|
818
|
-
"../node_modules/qlik-modifiers/dist/qlik-modifiers.js"),i=n.n(r);function o(e){var t=e.measures,n=e.modifierTypes;n&&i.a.isSupportedModifiers(n)&&t.forEach((function(e){e.store&&e.store.modifiers&&(e.qDef.modifiers=e.store.modifiers),delete e.store}))}},"./hypercube/import-properties/helpers/set-inter-column-sort-order.js":
|
|
818
|
+
"../node_modules/qlik-modifiers/dist/qlik-modifiers.js"),i=n.n(r);function o(e){var t=e.measures,n=e.modifierTypes;t&&n&&i.a.isSupportedModifiers(n)&&t.forEach((function(e){e.store&&e.store.modifiers&&(e.qDef.modifiers=e.store.modifiers),delete e.store}))}},"./hypercube/import-properties/helpers/set-inter-column-sort-order.js":
|
|
819
819
|
/*!****************************************************************************!*\
|
|
820
820
|
!*** ./hypercube/import-properties/helpers/set-inter-column-sort-order.js ***!
|
|
821
821
|
\****************************************************************************/
|
|
@@ -852,7 +852,7 @@ function(e,t,n){n.r(t),n.d(t,"default",(function(){return a}));var r=n(
|
|
|
852
852
|
/*! ./helpers */
|
|
853
853
|
"./hypercube/import-properties/helpers/index.js"),o=n(
|
|
854
854
|
/*! ../../quarantine/unquarantine-property */
|
|
855
|
-
"./quarantine/unquarantine-property.js");function a(e){var t=e.exportFormat,n=e.initialProperties,a=void 0===n?{}:n,s=e.dataDefinition,l=void 0===s?{}:s,u=e.defaultPropertyValues,c=void 0===u?{}:u,d=e.hypercubePath,f=e.extension,h=e.supportedFilters,p=void 0===h||h,m={qChildren:[]},y=i.default.createNewProperties({exportFormat:t,initialProperties:a,hypercubePath:d}),g=r.default.getValue(a,d||"").qHyperCubeDef,v=r.default.getValue(y,d||"").qHyperCubeDef,b=i.default.getMaxMinDimensionMeasure({exportFormat:t,dataDefinition:l}),x=b.maxDimensions,M=b.minDimensions,S=b.maxMeasures,w=b.minMeasures,E=c.defaultDimension,k=void 0===E?i.default.getDefaultDimension():E,C=c.defaultMeasure,O=void 0===C?i.default.getDefaultMeasure():C;v.qDimensions.length=0,v.qMeasures.length=0,i.default.shouldInitLayoutExclude({exportFormat:t,maxDimensions:x,minDimensions:M,maxMeasures:S,minMeasures:w})&&i.default.initLayoutExclude({exportFormat:t,maxDimensions:x,minDimensions:M,maxMeasures:S,minMeasures:w,newHyperCubeDef:v}),i.default.addDimensions({exportFormat:t,maxDimensions:x,minDimensions:M,newHyperCubeDef:v,defaultDimension:k}),i.default.addMeasures({exportFormat:t,maxMeasures:S,minMeasures:w,newHyperCubeDef:v,defaultMeasure:O}),i.default.updateDimensionsOnAdded({newProperties:y,dataDefinition:l,hypercubePath:d}),i.default.updateMeasuresOnAdded({newProperties:y,dataDefinition:l,hypercubePath:d}),i.default.setInterColumnSortOrder({exportFormat:t,newHyperCubeDef:v}),i.default.copyPropertyIfExist("qMaxStackedCells",g,v),i.default.copyPropertyIfExist("qNoOfLeftDims",g,v),i.default.copyPropertyOrSetDefault("qInitialDataFetch",g,v,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),i.default.copyPropertyOrSetDefault("qMode",g,v,"S"),i.default.copyPropertyOrSetDefault("qReductionMode",g,v,"N"),i.default.copyPropertyOrSetDefault("qSortbyYValue",g,v),i.default.copyPropertyOrSetDefault("qIndentMode",g,v),i.default.copyPropertyOrSetDefault("qShowTotalsAbove",g,v),i.default.importCommonProperties(y,t,a),m.qProperty=y;var T=r.default.getValue(f||{},"support.modifiers");return i.default.restoreMeasuresModifiers({measures:
|
|
855
|
+
"./quarantine/unquarantine-property.js");function a(e){var t=e.exportFormat,n=e.initialProperties,a=void 0===n?{}:n,s=e.dataDefinition,l=void 0===s?{}:s,u=e.defaultPropertyValues,c=void 0===u?{}:u,d=e.hypercubePath,f=e.extension,h=e.supportedFilters,p=void 0===h||h,m={qChildren:[]},y=i.default.createNewProperties({exportFormat:t,initialProperties:a,hypercubePath:d}),g=r.default.getValue(a,d||"").qHyperCubeDef,v=r.default.getValue(y,d||"").qHyperCubeDef,b=i.default.getMaxMinDimensionMeasure({exportFormat:t,dataDefinition:l}),x=b.maxDimensions,M=b.minDimensions,S=b.maxMeasures,w=b.minMeasures,E=c.defaultDimension,k=void 0===E?i.default.getDefaultDimension():E,C=c.defaultMeasure,O=void 0===C?i.default.getDefaultMeasure():C;v.qDimensions.length=0,v.qMeasures.length=0,i.default.shouldInitLayoutExclude({exportFormat:t,maxDimensions:x,minDimensions:M,maxMeasures:S,minMeasures:w})&&i.default.initLayoutExclude({exportFormat:t,maxDimensions:x,minDimensions:M,maxMeasures:S,minMeasures:w,newHyperCubeDef:v}),i.default.addDimensions({exportFormat:t,maxDimensions:x,minDimensions:M,newHyperCubeDef:v,defaultDimension:k}),i.default.addMeasures({exportFormat:t,maxMeasures:S,minMeasures:w,newHyperCubeDef:v,defaultMeasure:O}),i.default.updateDimensionsOnAdded({newProperties:y,dataDefinition:l,hypercubePath:d}),i.default.updateMeasuresOnAdded({newProperties:y,dataDefinition:l,hypercubePath:d}),i.default.setInterColumnSortOrder({exportFormat:t,newHyperCubeDef:v}),i.default.copyPropertyIfExist("qMaxStackedCells",g,v),i.default.copyPropertyIfExist("qNoOfLeftDims",g,v),i.default.copyPropertyOrSetDefault("qInitialDataFetch",g,v,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),i.default.copyPropertyOrSetDefault("qMode",g,v,"S"),i.default.copyPropertyOrSetDefault("qReductionMode",g,v,"N"),i.default.copyPropertyOrSetDefault("qSortbyYValue",g,v),i.default.copyPropertyOrSetDefault("qIndentMode",g,v),i.default.copyPropertyOrSetDefault("qShowTotalsAbove",g,v),i.default.importCommonProperties(y,t,a),m.qProperty=y;var T=r.default.getValue(f||{},"support.modifiers");return i.default.restoreMeasuresModifiers({measures:v.qMeasures,modifierTypes:T}),p&&Object(o.default)(m.qProperty,"storedFilters"),m}},"./hypercube/index.js":
|
|
856
856
|
/*!****************************!*\
|
|
857
857
|
!*** ./hypercube/index.js ***!
|
|
858
858
|
\****************************/
|
|
@@ -1038,4 +1038,4 @@ function(e,t,n){n.r(t),t.default={useMasterNumberFormat:function(e){e.quarantine
|
|
|
1038
1038
|
!*** ./utils/wrap-file-name.js ***!
|
|
1039
1039
|
\*********************************/
|
|
1040
1040
|
/*! exports provided: default */
|
|
1041
|
-
function(e,t,n){function r(e){return e.split(" ").length>1&&"="!==e[0]&&"["!==e[0]?"[".concat(e,"]"):e}n.r(t),n.d(t,"default",(function(){return r}))}})}))}(E2);var k2=n(E2.exports);const C2={version:"1.9.1",qHyperCubeDef:{qAlwaysFullyExpanded:!0,qDimensions:[],qMeasures:[],qInitialDataFetch:[{qWidth:17,qHeight:500}],qSuppressMissing:!0,qSuppressZero:!1},showTitles:!0,subtitle:"",title:"",footnote:"",barGrouping:{grouping:"grouped"},orientation:"vertical",scrollStartPos:0,nullMode:"gap",dataPoint:{show:!1,showLineLabels:!1,showBarLabels:!1},color:{auto:!0,mode:"primary",useBaseColors:"off",paletteColor:{index:6},useDimColVal:!0,useMeasureGradient:!0,persistent:!1,expressionIsColor:!0,expressionLabel:"",measureScheme:"sg",reverseScheme:!1,dimensionScheme:"12",autoMinMax:!0,measureMin:0,measureMax:10},legend:{dock:"auto",show:!0,showTitle:!0},components:[],dimensionAxis:{axisDisplayMode:"auto",continuousAuto:!0,dock:"near",label:"auto",maxVisibleItems:10,show:"all"},measureAxes:[{show:"all",dock:"near",spacing:1,autoMinMax:!0,minMax:"min",min:0,max:10},{show:"all",dock:"far",spacing:1,autoMinMax:!0,minMax:"min",min:0,max:10}],refLine:{refLines:[],refLines2:[],dimRefLines:[]},preferContinuousAxis:!0,showMiniChartForContinuousAxis:!0,tooltip:{auto:!0,hideBasic:!1,title:"",description:"",chart:void 0,imageComponents:void 0}};var O2=e=>t=>{const n=t.qHyperCubeDef.qMeasures,r=[0,0,0];let i;if(!n.length)return e.get("Visualizations.Descriptions.Bars");for(let e=0;e<n.length;++e)i=Lh(n[e].qDef.series),i===Ho.BAR?r[0]=1:i===Ho.LINE?r[1]=1:r[2]=1;const o=["Visualizations.Descriptions.Marker","Visualizations.Descriptions.Line","Visualizations.Descriptions.ComboChart.Dimension.LineMarker","Visualizations.Descriptions.Bars","Visualizations.Descriptions.ComboChart.Dimension.BarMarker","Visualizations.Descriptions.ComboChart.Dimension.BarLine","Visualizations.Descriptions.ComboChart.Dimension.BarLineMarker"][parseInt(r.join(""),2)-1];return e.get(o)},T2=e=>(t,n)=>{let r;const i=t.qHyperCubeDef.qMeasures[n];if(i){const{type:e}=i.qDef.series;r=e===Ho.LINE?"Visualizations.Descriptions.HeightLine":e===Ho.BAR?"Visualizations.Descriptions.LengthBars":"Visualizations.Descriptions.ComboChart.Measure.HeightMarker"}else r=n?"Visualizations.Descriptions.HeightLine":"Visualizations.Descriptions.LengthBars";return e.get(r)};function A2(e){var t,n;const r=e.qHyperCubeDef.qMeasures,i=null===(t=e.color)||void 0===t?void 0:t.mode;"byDimension"===i&&1===r.length&&Lh(null===(n=r[0].qDef)||void 0===n?void 0:n.series)===Ho.LINE?e.color.mode="primary":"byDimension"===i&&r.length>1&&(e.color.mode="byMultiple")}function N2(e){const{translator:t}=e;return{dimensions:{min:1,max:1,description:O2(t)},measures:{min:1,max:15,description:T2(t),added({qDef:e},t){var n;A2(t),null!==(n=e.series)&&void 0!==n&&n.type||(t.qHyperCubeDef.qMeasures.length>1?e.series={type:Ho.LINE,axis:$o.SECONDARY}:e.series={type:Ho.BAR,axis:$o.PRIMARY})},moved(e,t){A2(t)}}}}function q2(e){const t=N2(e);return{properties:C2,data:{targets:[{path:"/qHyperCubeDef",...t}]},importProperties:({exportFormat:e,initialProperties:n,hypercubePath:r})=>{const i=k2.axisChart.importProperties({exportFormat:e,initialProperties:n,dataDefinition:t,hypercubePath:r}),o="linechart"===e.properties.visualization,a=[];i.qProperty.qHyperCubeDef.qMeasures.forEach((e=>{e.qDef.series||(e.qDef.series={type:o?"line":"bar",axis:0,marker:"circle",markerFill:!0}),a.indexOf(e.qDef.series.axis)<0&&a.push(e.qDef.series.axis)}));const s=a.sort().shift();return i.qProperty.measureAxes[s]&&e.properties.measureAxis&&void 0!==e.properties.measureAxis.autoMinMax&&d(!0,i.qProperty.measureAxes[s],e.properties.measureAxis,{logarithmic:!1}),i},exportProperties:({propertyTree:e,hyperCubePath:t,viewDataMode:n})=>k2.axisChart.exportProperties({propertyTree:e,hyperCubePath:t,viewDataMode:n})}}function D2(){const e={component:"dropdown",type:"string",expression:"optional",baseRef:"style.strokeWidth",translation:"LayerStyleEditor.style.strokeWidth",show:!0,defaultValue:"none",options:[{value:"none",translation:"LayerStyleEditor.style.strokeWidth.none"},{value:"small",translation:"LayerStyleEditor.style.strokeWidth.small"},{value:"medium",translation:"LayerStyleEditor.style.strokeWidth.medium"},{value:"large",translation:"LayerStyleEditor.style.strokeWidth.large"}]},t={component:"color-picker",type:"object",baseRef:"style.strokeColor",translation:"LayerStyleEditor.style.strokeColor",dualOutput:!0,show:t=>"none"!==hl(t,`${((e,t)=>{let n=-1;for(let r=0;r<e.length;r++)if(e[r].key===t){n=r;break}return n})(t,"bar")}.${e.baseRef}`),defaultValue:()=>({index:-1,color:"#205891"})},n={component:"slider",type:"number",expression:"optional",baseRef:"style.dataPointSize",translation:"LayerStyleEditor.style.dataPointSize",show:!0,defaultValue:6,min:3,max:20,step:1},r={component:"slider",type:"number",expression:"optional",baseRef:"style.lineThickness",translation:"LayerStyleEditor.style.lineThickness",show:!0,defaultValue:1,min:1,max:5,step:1},i={component:"dropdown",type:"string",expression:"optional",baseRef:"style.lineType",translation:"LayerStyleEditor.style.lineType",show:!0,defaultValue:"solid",options:[{value:"solid",translation:"LayerStyleEditor.style.solid"},{value:"dashed",translation:"LayerStyleEditor.style.dashed"}]},o={component:"dropdown",type:"string",expression:"optional",baseRef:"style.lineCurve",translation:"LayerStyleEditor.style.lineCurve",show:!0,defaultValue:"linear",options:[{value:"linear",translation:"LayerStyleEditor.style.linear"},{value:"monotone",translation:"LayerStyleEditor.style.monotone"}]};return{component:"style-editor",translation:"LayerStyleEditor.component.styling",subtitle:"LayerStyleEditor.component.styling",resetBtnTranslation:"LayerStyleEditor.component.resetAll",key:["bar","line"],ref:"components",defaultValue:[],defaultValues(a){const s="grouped"===a.barGrouping.grouping,l=a.qHyperCubeDef.qMeasures.filter((e=>Lh(e.qDef.series)===Ho.BAR)).length,u=s&&l>1;return[{key:"bar",style:{strokeWidth:e.defaultValue,strokeColor:t.defaultValue(),width:u?.9:.7}},{key:"line",style:{dataPointSize:n.defaultValue,lineThickness:r.defaultValue,lineType:i.defaultValue,lineCurve:o.defaultValue}}]},items:{list:{type:"items",component:"expandable-items",items:{bar:{type:"items",translation:"Visualizations.Descriptions.Bar",expanded:!0,styleKey:"bar",items:{barStrokeWidth:e,barStrokeColor:t,barWidth:{component:"slider",type:"number",expression:"optional",baseRef:"style.width",translation:"LayerStyleEditor.style.barWidth",show:(e,t,n)=>{const r=t.getMeasures().some((e=>Lh(e.qDef.series)===Ho.LINE));return!k.continuous(n.layout,r&&x.isTime(!0,n.layout))},defaultValue:.7,min:.01,max:1,step:.01}}},line:{type:"items",translation:"Visualizations.Descriptions.Line",expanded:!0,styleKey:"line",items:{dataPointSize:n,lineThickness:r,lineType:i,lineCurve:o}}}}}}}function R2(e){const t=hl(e,"qHyperCube.qMeasureInfo",[]).some((({series:e=Uo})=>Lh(e)===Ho.LINE));return k.continuous(e,(()=>t&&x.isTime(!0,e)))}function I2(e){var t,n;return!(null===(t=e.qDef)||void 0===t||null===(n=t.color)||void 0===n||!n.on)}function _2(e){var t,n,r;return I2(e)&&"primary"===(null!==(t=null===(n=e.qDef)||void 0===n||null===(r=n.color)||void 0===r?void 0:r.mode)&&void 0!==t?t:"primary")}function P2(e){var t,n;return I2(e)&&"byExpression"===(null===(t=e.qDef)||void 0===t||null===(n=t.color)||void 0===n?void 0:n.mode)}function L2(e){var t,n,r,i,o;if(null!=e&&null!==(t=e.color)&&void 0!==t&&t.auto||"byExpression"!==(null==e||null===(n=e.color)||void 0===n?void 0:n.mode))return[];const a=null==e||null===(r=e.color)||void 0===r?void 0:r.colorExpression,s=null!==(i=null==e||null===(o=e.color)||void 0===o?void 0:o.expressionLabel)&&void 0!==i?i:"";return a?[{qExpression:a,label:s,id:"colorByExpression"}]:[]}function j2(e){return P2(e)?[{qExpression:e.qDef.color.colorExpression,id:"colorByMeasureExpression"}]:[]}function z2(e){var t,n;(null!==(t=null==e||null===(n=e.qHyperCubeDef)||void 0===n?void 0:n.qMeasures)&&void 0!==t?t:[]).forEach(((t,n)=>function(e,t,n){e.qAttributeExpressions=0===t?[...L2(n),...j2(e)]:j2(e)}(t,n,e)))}function F2(e){const{flags:t}=e,n={ref:"qDef.series.type",type:"string",component:"item-selection-list",defaultValue:"bar",schemaIgnore:!0,horizontal:!0,items:[{icon:e=>"stacked"===e.barGrouping.grouping||R2(e)?"stacked":"grouped",component:"icon-item",labelPlacement:"bottom",translation:"properties.style.bar",value:"bar"},{icon:"line_chart_line",component:"icon-item",labelPlacement:"bottom",translation:"properties.style.line",value:"line"},{icon:"shapes",component:"icon-item",labelPlacement:"bottom",translation:"properties.style.marker",value:"marker"}],change:e=>(e.qDef.series.type!==Ho.BAR||t.isEnabled("BARS_IN_SECONDARY_AXIS")||(e.qDef.series.axis=0),e)},r={ref:"qDef.series.axis",type:"integer",component:"dropdown",defaultValue:0,options:[{translation:"properties.axis.primary",value:0},{translation:"properties.axis.secondary",value:1}],show(e){var n;return!!t.isEnabled("BARS_IN_SECONDARY_AXIS")||Lh(null===(n=e.qDef)||void 0===n?void 0:n.series)!==Ho.BAR}},i={ref:"qDef.series.marker",type:"string",component:"dropdown",defaultValue:"circle",options:[{translation:"properties.marker.circle",value:"circle"},{translation:"properties.marker.rect",value:"rect"},{translation:"properties.marker.diamond",value:"diamond"},{translation:"properties.marker.triangle",value:"triangle"},{translation:"properties.marker.line",value:"line"}],show(e){var t;return Lh(null===(t=e.qDef)||void 0===t?void 0:t.series)===Ho.MARKER}},o={ref:"qDef.series.markerFill",translation:"properties.series.fill",type:"boolean",defaultValue:!0,show(e){var t;return Lh(null===(t=e.qDef)||void 0===t?void 0:t.series)===Ho.MARKER&&!["line"].includes(e.qDef.series.marker)}};let a;if(t.isEnabled("BASIC_COLOR_OPTIONS_PER_MEASURE")){var s,l;const t={ref:"qDef.color.on",translation:"properties.colors",type:"boolean",component:"switch",defaultValue:!1,trueOption:{value:!1,translation:"Common.Auto"},falseOption:{value:!0,translation:"Common.Custom"}},u={ref:"qDef.color.mode",type:"string",component:"dropdown",options:[{value:"primary",translation:"properties.colorMode.primary"},{value:"byExpression",translation:"properties.colorMode.byExpression"}],defaultValue:"primary",show:(...e)=>I2(...e)},c=null===(s=e.anything)||void 0===s||null===(l=s.sense)||void 0===l?void 0:l.theme;a={supPanel:{translation:"properties.measure.moreProperties",title:"properties.measure.moreProperties",subTitle:(e,t,n)=>{var r;return null===(r=n.measureTitle)||void 0===r?void 0:r.call(n)},component:"sub-panel",type:"items",items:{groups:{type:"items",component:"expandable-items",items:{presentation:{type:"items",translation:"properties.presentation",items:{seriesType:n,seriesAxis:r,seriesMarker:i,seriesMarkerFill:o}},color:{type:"items",translation:"properties.color",items:{customColor:t,colorMode:u,paletteColor:{ref:"qDef.color.paletteColor",translation:"properties.color",type:"object",component:"color-picker",dualOutput:!0,defaultValue:()=>{var e;const{primary:t}=c.getDataColorSpecials(),n=null===(e=c.getDataColorPickerPalettes()[0])||void 0===e?void 0:e.colors,r=n.indexOf(t);return{index:-1===r?Math.min(6,n.length-1):r}},show:_2},attributeExpression:{type:"string",component:"expression",expressionType:"measure",schemaIgnore:!0,ref:"qDef.color.colorExpression",translation:"Common.Expression",show:P2}}}}}}}}}else a={seriesType:n,seriesAxis:r,seriesMarker:i,seriesMarkerFill:o};return{items:{series:{type:"items",items:a}}}}function B2(e,t,n,r){let i;const o=n||0;var a,s;t?i=t.getMeasureLayouts():i=null!==(a=null==e||null===(s=e.qHyperCubeDef)||void 0===s?void 0:s.qMeasures)&&void 0!==a?a:[];return i.filter((e=>{const{series:t}=e||{};return 0===o?LJ(t,r):!LJ(t,r)}))}function V2(e,t){return t.getMeasures().filter((e=>Lh(e.qDef.series)===Ho.LINE)).length>0}function H2(e,t,n,r){const i=t.getMeasures().filter((e=>Lh(e.qDef.series)===Ho.BAR));return r?i.filter((e=>e.qDef.series.axis===$o.PRIMARY)).length>n||i.filter((e=>e.qDef.series.axis===$o.SECONDARY)).length>n:i.length>n}function $2(e){const{translator:t,flags:n}=e,r=n.isEnabled("BARS_IN_SECONDARY_AXIS"),i={items:{attributeExpression:{ref:"color.colorExpression",change:null,globalChange:e=>z2(e)},expressionLabel:{change:null},disclaimer:{component:"text",translation:"properties.color.colorOnMeasureDisclaimer",style:"hint",show:e=>n.isEnabled("BASIC_COLOR_OPTIONS_PER_MEASURE")&&e.qHyperCubeDef.qMeasures.some((e=>I2(e)))}}},o={uses:"settings",items:{presentation:{type:"items",translation:"properties.presentation",grouped:!0,items:{comboStyling:D2(),grouping:{ref:"barGrouping.grouping",type:"string",component:"item-selection-list",defaultValue:"grouped",horizontal:!0,items:[{icon:"grouped",component:"icon-item",labelPlacement:"bottom",translation:"properties.grouping.grouped",value:"grouped"},{icon:"stacked",component:"icon-item",labelPlacement:"bottom",translation:"properties.grouping.stacked",value:"stacked"}],show:(e,t,n)=>H2(0,t,1,r)&&!R2(n.layout)},orientation:{ref:"orientation",type:"string",component:"item-selection-list",defaultValue:"vertical",horizontal:!0,items:[{component:"icon-item",icon:"bars_vertical",labelPlacement:"bottom",translation:"properties.orientation.vertical",value:"vertical"},{icon:"bars_horizontal",component:"icon-item",labelPlacement:"bottom",translation:"Common.Horizontal",value:"horizontal"}],readOnly:(e,t,n)=>R2(n.layout),convertFunctions:(a="vertical",{get:(e,t,n)=>R2(n.layout)?a:e(t.type),set(e,t,n,r){t(n.type,R2(r.layout)?a:e,a)}})},scrollStartPos:{ref:"scrollStartPos",type:"number",translation:"properties.ScrollAlignment",component:"dropdown",defaultValue:0,options:[{value:0,translation:"properties.ScrollAlignStart"},{value:1,translation:"properties.ScrollAlignEnd"}],show:(e,t,n)=>!R2(n.layout)},nullMode:{type:"string",component:"dropdown",ref:"nullMode",translation:"properties.nullMode",options:[{value:"gap",translation:"properties.nullMode.gap"},{value:"connect",translation:"properties.nullMode.connect"},{value:"zero",translation:"properties.nullMode.zero"}],defaultValue:"gap",show:(e,t)=>V2(0,t)},dataPointSettings:{type:"items",grouped:!1,snapshot:{tid:"property-dataPoint"},show:(e,t)=>V2(0,t),items:{dataPoints:{ref:"dataPoint.show",translation:"properties.dataPoints.showDataPoints",type:"boolean",defaultValue:!1},showLineDataPointLabels:{ref:"dataPoint.showLineLabels",translation:"properties.dataPoints.linelabelmode",type:"boolean",component:"switch",defaultValue:!1,show:e=>e.dataPoint&&e.dataPoint.show,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"properties.off"}]}}},showBarLabels:{ref:"dataPoint.showBarLabels",type:"boolean",translation:"properties.dataPoints.barlabelmode",component:"switch",show:(e,t)=>H2(0,t,0,r),defaultValue:!1,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"properties.off"}]}}},colorsAndLegend:{uses:"colorsAndLegend",items:{colors:i,legend:{items:{show:{snapshot:{tid:"property-legend"}}}}}},dimensionAxis:{uses:"axis.dimensionAxis",label(e,n){const r="vertical"===n.layout.orientation||R2(n.layout)?"x":"y",i=function(e,t){return t?t.getDimensionLayouts():e.qHyperCubeDef.qDimensions.map((e=>e.qDef))}(e,n).map((e=>e.qFallbackTitle||"")).join(", ");let o;return o=i?t.get(`properties.${r}AxisWithInfo`,[i]):t.get(`properties.${r}Axis`),o},items:{othersGroup:{items:{dock:{options(e,t,n){let r="Common.Bottom",i="Common.Top";return"vertical"===n.layout.orientation||R2(n.layout)||(r=n.yMirrorMode?"properties.dock.right":"properties.dock.left",i=n.yMirrorMode?"properties.dock.left":"properties.dock.right"),[{value:"near",translation:r},{value:"far",translation:i}]}}}},axisDisplaySettings:{type:"items",components:"items",show:(e,t,n)=>!R2(n.layout),items:{axisDisplayMode:{type:"string",translation:"properties.axis.displaymode",ref:"dimensionAxis.axisDisplayMode",component:"dropdown",defaultValue:"auto",options:[{value:"auto",translation:"properties.axis.displaymode.auto"},{value:"max",translation:"properties.axis.displaymode.max"},{value:"custom",translation:"properties.axis.displaymode.custom"}]},maxVisibleItems:{type:"integer",translation:"properties.axis.maxvisiblevalues",ref:"dimensionAxis.maxVisibleItems",expression:"optional",defaultValue:10,show:e=>"custom"===e.dimensionAxis.axisDisplayMode,invalid(e){const{qDimensions:t,qMeasures:n}=e.qHyperCubeDef,{maxVisibleItems:r}=e.dimensionAxis;return r<0||r>1e4/(t.length+n.length)},globalChange(e){if("custom"===e.dimensionAxis.axisDisplayMode){const{qDimensions:t,qMeasures:n}=e.qHyperCubeDef,{maxVisibleItems:r}=e.dimensionAxis;r<1?e.dimensionAxis.maxVisibleItems=10:r>1e4/(t.length+n.length)&&(e.dimensionAxis.maxVisibleItems=Math.min(r,Math.floor(1e4/(t.length+n.length))))}}},hint:{component:"text",translation:"properties.axis.maxvisiblevalues.hint.combochart",style:"hint",show:e=>["custom","max"].indexOf(e.dimensionAxis.axisDisplayMode)>-1}}}}},measureAxis:{uses:"axis.measureAxis",label(e,n){const i="vertical"===n.layout.orientation||R2(n.layout)?"y":"x",o=B2(e,n,0,r).map((e=>e.qFallbackTitle));let a;return a=o.length?t.get(`properties.${i}AxisWithInfo`,[o.join(",")]):t.get(`properties.${i}Axis`),a},show:(e,t)=>B2(e,t,0,r).length>0,items:{axis:{items:{show:{ref:"measureAxes.0.show",snapshot:{title:"properties.axis.primary",tid:"property-primary-axis",show(e){var t;return((null==e||null===(t=e.qHyperCube)||void 0===t?void 0:t.qMeasureInfo)||[]).some((e=>(null==e?void 0:e.series)&&LJ(null==e?void 0:e.series,r)))}}},dock:{ref:"measureAxes.0.dock",show:e=>"none"!==e.measureAxes[0].show,options(e,t,n){let r="Common.Bottom",i="Common.Top";return("vertical"===n.layout.orientation||R2(n.layout))&&(r=n.yMirrorMode?"properties.dock.right":"properties.dock.left",i=n.yMirrorMode?"properties.dock.left":"properties.dock.right"),[{value:"near",translation:r},{value:"far",translation:i}]}},spacing:{ref:"measureAxes.0.spacing",show:e=>e.measureAxes[0]&&"none"!==e.measureAxes[0].show}}},minMax:{items:{autoMinMax:{ref:"measureAxes.0.autoMinMax"},minMax:{ref:"measureAxes.0.minMax",defaultValue:"min",show:e=>!e.measureAxes[0].autoMinMax},min:{ref:"measureAxes.0.min",show:e=>["min","minMax"].includes(e.measureAxes[0].minMax)&&!e.measureAxes[0].autoMinMax,invalid:e=>"minMax"===e.measureAxes[0].minMax&&e.measureAxes[0].min>=e.measureAxes[0].max},max:{ref:"measureAxes.0.max",show:e=>["max","minMax"].includes(e.measureAxes[0].minMax)&&!e.measureAxes[0].autoMinMax,invalid:e=>"minMax"===e.measureAxes[0].minMax&&e.measureAxes[0].min>=e.measureAxes[0].max}}}}},secondaryMeasureAxis:{uses:"axis.measureAxis",label(e,n){const i="vertical"===n.layout.orientation||R2(n.layout)?"y":"x",o=B2(e,n,1,r).map((e=>e.qFallbackTitle));let a;return a=o.length?t.get(`properties.${i}AxisWithInfo`,[o.join(",")]):t.get(`properties.${i}Axis`),a},show:(e,t)=>B2(e,t,1,r).length>0,items:{axis:{items:{show:{ref:"measureAxes.1.show",snapshot:{title:"properties.axis.secondary",tid:"property-secondary-Axis",show(e){var t;return((null==e||null===(t=e.qHyperCube)||void 0===t?void 0:t.qMeasureInfo)||[]).some((e=>(null==e?void 0:e.series)&&!LJ(null==e?void 0:e.series,r)))}}},dock:{ref:"measureAxes.1.dock",defaultValue:"far",show:e=>"none"!==e.measureAxes[1].show,options(e,t,n){let r="Common.Bottom",i="Common.Top";return("vertical"===n.layout.orientation||R2(n.layout))&&(r=n.yMirrorMode?"properties.dock.right":"properties.dock.left",i=n.yMirrorMode?"properties.dock.left":"properties.dock.right"),[{value:"near",translation:r},{value:"far",translation:i}]}},spacing:{ref:"measureAxes.1.spacing",show:e=>e.measureAxes[1]&&"none"!==e.measureAxes[1].show}}},minMax:{type:"items",items:{autoMinMax:{ref:"measureAxes.1.autoMinMax"},minMax:{ref:"measureAxes.1.minMax",defaultValue:"min",show:e=>!e.measureAxes[1].autoMinMax},min:{ref:"measureAxes.1.min",show:e=>["min","minMax"].includes(e.measureAxes[1].minMax)&&!e.measureAxes[1].autoMinMax,invalid:e=>"minMax"===e.measureAxes[1].minMax&&e.measureAxes[1].min>=e.measureAxes[1].max},max:{ref:"measureAxes.1.max",show:e=>["max","minMax"].includes(e.measureAxes[1].minMax)&&!e.measureAxes[1].autoMinMax,invalid:e=>"minMax"===e.measureAxes[1].minMax&&e.measureAxes[1].min>=e.measureAxes[1].max}}}}},tooltips:{uses:"tooltip"}}};var a;n.isEnabled("SENSECLIENT_LAYERED_LABELS")&&(o.items.dimensionAxis.items.othersGroup.items.label={options:[{value:"auto",translation:"Common.Auto"},{value:"horizontal",translation:"Common.Horizontal"},{value:"tilted",translation:"properties.labels.tilted"},{value:"layered",translation:"properties.labels.layered"}]});return{type:"items",component:"accordion",items:{data:{uses:"data",items:{dimensions:{items:{nullSuppression:{show:(e,t,n)=>!R2(n.layout)}}},measures:F2(e)}},sorting:{uses:"sortingWithDisclaimer"},addons:{type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond"}}},primaryMeasureAxisRefLines:{uses:"reflines",ref:"refLine.refLines",translation:"properties.primaryMeasureAxisReferenceLines",title:{translation:"properties.primaryMeasureAxisReferenceLines.tooltip"},show:e=>function(e,t){return e.some((e=>LJ(e.qDef.series,t)))}(e.qHyperCubeDef.qMeasures,r)},secondaryMeasureAxisRefLines:{uses:"reflines",ref:"refLine.refLines2",translation:"properties.secondaryMeasureAxisReferenceLines",title:{translation:"properties.secondaryMeasureAxisReferenceLines.tooltip"},show:e=>function(e,t){return e.some((e=>!LJ(e.qDef.series,t)))}(e.qHyperCubeDef.qMeasures,r)},dimRefLines:{uses:"dimReflines"}}},settings:o}}}function U2(e){return e.qHyperCubeDef.qMeasures.filter((e=>Lh(e.qDef.series)===Ho.LINE)).length>0}function W2(e){const{flags:t}=e,n=e.flags.isEnabled("BARS_IN_SECONDARY_AXIS");return{type:"items",component:"accordion",items:{data:{uses:"data"},sort:{uses:"sortWithDisclaimer"},presentation:{uses:"presentation",type:"items",translation:"properties.presentation",grouped:!0,show:(e,t)=>U2(e)||!R2(t),items:{grouping:{ref:"barGrouping.grouping",type:"string",component:"item-selection-list",horizontal:!0,items:[{icon:"grouped",component:"icon-item",labelPlacement:"bottom",translation:"properties.grouping.grouped",value:"grouped"},{icon:"stacked",component:"icon-item",labelPlacement:"bottom",translation:"properties.grouping.stacked",value:"stacked"}],show:(e,t)=>function(e,t){const n=e.qHyperCubeDef.qMeasures.filter((e=>Lh(e.qDef.series)===Ho.BAR));return t?n.filter((e=>e.qDef.series.axis===$o.PRIMARY)).length>1||n.filter((e=>e.qDef.series.axis===$o.SECONDARY)).length>1:n.length>1}(e,n)&&!R2(t)},orientation:{ref:"orientation",type:"string",component:"item-selection-list",horizontal:!0,items:[{component:"icon-item",icon:"bars_vertical",labelPlacement:"bottom",translation:"properties.orientation.vertical",value:"vertical"},{icon:"bars_horizontal",component:"icon-item",labelPlacement:"bottom",translation:"Common.Horizontal",value:"horizontal"}],show:(e,t)=>!R2(t)},nullMode:{type:"string",component:"radio-list",ref:"nullMode",translation:"properties.nullMode",options:()=>[{value:"gap",translation:"properties.nullMode.gap"},{value:"connect",translation:"properties.nullMode.connect"},{value:"zero",translation:"properties.nullMode.zero"}],show:e=>U2(e)&&e.qHyperCubeDef.qMeasures.length>1},dataPoints:{ref:"dataPoint.show",translation:"properties.dataPoints.showDataPoints",type:"boolean",show:e=>U2(e)}}},color:{uses:"color",items:{disclaimer:{component:"text",translation:"properties.color.colorOnMeasureDisclaimer",style:"hint",show:e=>t.isEnabled("BASIC_COLOR_OPTIONS_PER_MEASURE")&&e.qHyperCubeDef.qMeasures.some((e=>I2(e)))}}}}}}const Y2={bar:{axis:0,icon:"bar-chart",tid:"as-bar",translation:"contextMenu.asBar"},line:{axis:1,icon:"line-chart",tid:"as-line",translation:"contextMenu.asLine"},marker:{axis:1,icon:"shapes",tid:"as-marker",translation:"contextMenu.asMarker"}};function X2(e,t,n,r,i){const{axis:o,icon:a,tid:s,translation:l}=Y2[i];t.addItem({icon:a,tid:s,translation:l,async select(){let t;t="measure"===e.type?await r.addLibraryMeasure(e.id):await r.addExpressionMeasure(e.name,""),t.qDef.series.type=i,t.qDef.series.axis=o,r.updateGlobalChangeListeners(),n.setProperties(r.properties),window.qvangularGlobal.$rootScope.$broadcast("pp-open-path","data."+t.qDef.cId)}})}function G2(e,t,n,r,i){!function(e,t,n){const{item:r}=e,i=["contextMenu.add",r.name];if(n.canAddMeasure()){const o=e.menu.addItem({translation:i,tid:"add-as"});X2(r,o,t,n,"bar"),X2(r,o,t,n,"line"),X2(r,o,t,n,"marker")}}(e,n,t),t.getMeasures().length>=t.minMeasures()&&e.ReplaceMeasures(n,t,i),e.ColorBy(n,t,i),r()}function K2(e){const t={},{tooltip:n}=e;if(n){var r,i;t.chart_tooltip_custom=!n.auto;const e=null===(r=n.chart)||void 0===r||null===(i=r.object)||void 0===i?void 0:i.refId;!n.auto&&e&&(t.chart_tooltip_custom_mini_chart=e)}return t}const J2=e=>!!(e&&e.qHyperCube.qSize.qcy>0);function Z2(e){return{definition:$2(e),softDefinition:W2(e),support:{snapshot:J2,export:!0,exportData:!0,sharing:!1,viewData:!0,modifiers:["accumulation","movingAverage","difference","normalization"]},getDropMeasureOptions:G2,extendMetrics:K2,importProperties:(t,n,r,i)=>{const o={layout:{templateId:n.templateId}};r.mapProperties(o);const a={defaultDimension:r.getDefaultDimensionProperties(),defaultMeasure:r.getDefaultMeasureProperties()},s=k2.axisChart.importProperties({exportFormat:t,initialProperties:n,dataDefinition:N2(e),defaultPropertyValues:a,hypercubePath:i,extension:r});return function(e,t,n){const r="linechart"===n.properties.visualization,i=[];e.qProperty.qHyperCubeDef.qMeasures.forEach((e=>{e.qDef.series||(e.qDef.series={type:r?"line":"bar",axis:0,marker:"circle",markerFill:!0}),i.indexOf(e.qDef.series.axis)<0&&i.push(e.qDef.series.axis)}));const o=i.sort().shift();e.qProperty.measureAxes[o]&&n.properties.measureAxis&&void 0!==n.properties.measureAxis.autoMinMax&&d(!0,e.qProperty.measureAxes[o],n.properties.measureAxis,{logarithmic:!1}),t.flags.isEnabled("BASIC_COLOR_OPTIONS_PER_MEASURE")&&z2(e.qProperty)}(s,e,t),s},exportProperties:(e,t,n)=>{!function(e){e.qProperty.qHyperCubeDef.qMeasures.forEach((e=>{e.qAttributeExpressions=[]}))}(e);return k2.axisChart.exportProperties({propertyTree:e,hyperCubePath:t,viewDataMode:n})},migrate:{properties:e=>e.qExtendsId?e:function(e){return a1(e.version)&&(e.qHyperCubeDef.qMeasures.forEach((e=>{const{qDef:t}=e;void 0===t.series&&(t.series=Uo),void 0===t.series.type&&(t.series.type=Uo.type),void 0===t.series.axis&&(t.series.axis=t.series.type===Ho.BAR?$o.PRIMARY:$o.SECONDARY),t.series.type===Ho.BAR&&t.series.axis===$o.SECONDARY&&(t.series.axis=$o.PRIMARY)})),e.version=o1),e}(e)}}}return function(t){const{flags:n}=t,r=NJ();return{qae:q2(t),ext:Z2(t),component(){const t=function(){const[t,n]=e.useState();return e.useEffect((()=>n(ml())),[]),t}(),i=v2(),o=function(){const t=e.useOptions(),n=e.useTranslator(),r=e.useEmbed(),i=e.useTheme(),[o,a]=e.useState(),s=e.useDeviceType();return e.useEffect((()=>{a({options:{direction:"ltr",...t},translator:n,theme:i,embed:r,deviceType:s})}),[t.direction,t.freeResize,n.language(),i.name(),s]),o}(),a=M2(),s=function({picasso:t,environment:n}){const r=e.useElement(),[i,o]=e.useState();return e.useEffect((()=>{if(!n)return;r.style.overflow="hidden";const e=t({renderer:{prio:[n.options.renderer||"canvas"]}}).chart({element:r,data:[],settings:{}});o(e);const{destroy:i}=e;return()=>{i()}}),[n]),i}({picasso:r,environment:o}),l=function({chart:t,actions:n}){const r=e.useSelections(),i=e.useStaleLayout(),[o,a]=e.useState();return e.useEffect((()=>{if(null==t||!t.update||!t.scale||!r)return null;const e=t.scale(Vo.SCALE.MAJOR),o=jc({chart:t,actions:n,selections:r,config:{allowSimultaneous:!0,brushRanges:!0,majorScale:e,selectionActions:{clear:S2},selectionEvents:{start:w2}}});o.setLayout(i);const{destroy:s}=o;return a(o),()=>{s()}}),[r,null==t?void 0:t.update,null==t?void 0:t.scale]),e.useEffect((()=>{null!=o&&o.setLayout&&i&&o.setLayout(i)}),[i]),o}({chart:s,actions:a}),u=g2({picasso:r,chart:s,environment:o,flags:n,viewState:i,viewCache:t,actions:a,selectionService:l});Nm({picasso:r,chart:s,models:u,environment:o,viewState:i,viewCache:t,actions:a}),(({picasso:t,chart:n,models:r,environment:i,viewState:o,viewCache:a,actions:s})=>{const{width:l,height:u}=e.useRect(),[,c]=e.usePromise((async()=>{if(!(null!=n&&n.update&&r&&i&&o))return;const{colorService:e,discreteModel:c,dockService:d,layoutService:f,refLineModel:h}=r;function p(){n.update({settings:Em({picasso:t,chart:n,models:r,environment:i,viewState:o,viewCache:a,actions:s})})}d.update({width:l,height:u}),e.custom.updateLegend(),h.update({picasso:t,chart:n,models:r,environment:i,viewState:o,viewCache:a,actions:s});const m=f.getDataPages();f.setDataPages([]),p(),f.setDataPages(m),f.meta.isContinuous||await c.command.initialize(),p()}),[l,u]);if(c)throw c})({picasso:r,chart:s,models:u,environment:o,viewState:i,viewCache:t,actions:a}),(({models:t,chart:n,viewState:r})=>{e.onTakeSnapshot((e=>{if(!t)return;const{layoutService:i,dockService:o,colorService:a,discreteModel:s,continuousModel:l,reducedModel:u}=t,{width:c,height:d}=o.meta.chart.size;return e.snapshotData=e.snapshotData||{},e.snapshotData.content={size:{w:c,h:d}},i.meta.isSnapshot?Promise.resolve():(e.snapshotData.content.chartData={scrollOffset:r.get("scrollOffset"),zoom:r.get("zoom"),legendScrollOffset:C(n,Vo.COMPONENT.LEGEND_CATEGORICAL)},i.meta.isDiscrete?(s.command.setSnapshotData(e),u.command.setSnapshotData(e)):l.setSnapshotData(e),a.getSnapshotData().then((t=>{e.snapshotData.content.chartData={...e.snapshotData.content.chartData,...t}})).catch((()=>{})))})),e.useImperativeHandle((()=>({getViewState(){if(r&&n)return{scrollOffset:r.get("scrollOffset"),zoom:r.get("zoom"),legendScrollOffset:C(n,Vo.COMPONENT.LEGEND_CATEGORICAL)}}})),[r,n])})({models:u,chart:s,viewState:i})}}}}));
|
|
1041
|
+
function(e,t,n){function r(e){return e.split(" ").length>1&&"="!==e[0]&&"["!==e[0]?"[".concat(e,"]"):e}n.r(t),n.d(t,"default",(function(){return r}))}})}))}(E2);var k2=n(E2.exports);const C2={version:"1.10.0",qHyperCubeDef:{qAlwaysFullyExpanded:!0,qDimensions:[],qMeasures:[],qInitialDataFetch:[{qWidth:17,qHeight:500}],qSuppressMissing:!0,qSuppressZero:!1},showTitles:!0,subtitle:"",title:"",footnote:"",barGrouping:{grouping:"grouped"},orientation:"vertical",scrollStartPos:0,nullMode:"gap",dataPoint:{show:!1,showLineLabels:!1,showBarLabels:!1},color:{auto:!0,mode:"primary",useBaseColors:"off",paletteColor:{index:6},useDimColVal:!0,useMeasureGradient:!0,persistent:!1,expressionIsColor:!0,expressionLabel:"",measureScheme:"sg",reverseScheme:!1,dimensionScheme:"12",autoMinMax:!0,measureMin:0,measureMax:10},legend:{dock:"auto",show:!0,showTitle:!0},components:[],dimensionAxis:{axisDisplayMode:"auto",continuousAuto:!0,dock:"near",label:"auto",maxVisibleItems:10,show:"all"},measureAxes:[{show:"all",dock:"near",spacing:1,autoMinMax:!0,minMax:"min",min:0,max:10},{show:"all",dock:"far",spacing:1,autoMinMax:!0,minMax:"min",min:0,max:10}],refLine:{refLines:[],refLines2:[],dimRefLines:[]},preferContinuousAxis:!0,showMiniChartForContinuousAxis:!0,tooltip:{auto:!0,hideBasic:!1,title:"",description:"",chart:void 0,imageComponents:void 0}};var O2=e=>t=>{const n=t.qHyperCubeDef.qMeasures,r=[0,0,0];let i;if(!n.length)return e.get("Visualizations.Descriptions.Bars");for(let e=0;e<n.length;++e)i=Lh(n[e].qDef.series),i===Ho.BAR?r[0]=1:i===Ho.LINE?r[1]=1:r[2]=1;const o=["Visualizations.Descriptions.Marker","Visualizations.Descriptions.Line","Visualizations.Descriptions.ComboChart.Dimension.LineMarker","Visualizations.Descriptions.Bars","Visualizations.Descriptions.ComboChart.Dimension.BarMarker","Visualizations.Descriptions.ComboChart.Dimension.BarLine","Visualizations.Descriptions.ComboChart.Dimension.BarLineMarker"][parseInt(r.join(""),2)-1];return e.get(o)},T2=e=>(t,n)=>{let r;const i=t.qHyperCubeDef.qMeasures[n];if(i){const{type:e}=i.qDef.series;r=e===Ho.LINE?"Visualizations.Descriptions.HeightLine":e===Ho.BAR?"Visualizations.Descriptions.LengthBars":"Visualizations.Descriptions.ComboChart.Measure.HeightMarker"}else r=n?"Visualizations.Descriptions.HeightLine":"Visualizations.Descriptions.LengthBars";return e.get(r)};function A2(e){var t,n;const r=e.qHyperCubeDef.qMeasures,i=null===(t=e.color)||void 0===t?void 0:t.mode;"byDimension"===i&&1===r.length&&Lh(null===(n=r[0].qDef)||void 0===n?void 0:n.series)===Ho.LINE?e.color.mode="primary":"byDimension"===i&&r.length>1&&(e.color.mode="byMultiple")}function N2(e){const{translator:t}=e;return{dimensions:{min:1,max:1,description:O2(t)},measures:{min:1,max:15,description:T2(t),added({qDef:e},t){var n;A2(t),null!==(n=e.series)&&void 0!==n&&n.type||(t.qHyperCubeDef.qMeasures.length>1?e.series={type:Ho.LINE,axis:$o.SECONDARY}:e.series={type:Ho.BAR,axis:$o.PRIMARY})},moved(e,t){A2(t)}}}}function q2(e){const t=N2(e);return{properties:C2,data:{targets:[{path:"/qHyperCubeDef",...t}]},importProperties:({exportFormat:e,initialProperties:n,hypercubePath:r})=>{const i=k2.axisChart.importProperties({exportFormat:e,initialProperties:n,dataDefinition:t,hypercubePath:r}),o="linechart"===e.properties.visualization,a=[];i.qProperty.qHyperCubeDef.qMeasures.forEach((e=>{e.qDef.series||(e.qDef.series={type:o?"line":"bar",axis:0,marker:"circle",markerFill:!0}),a.indexOf(e.qDef.series.axis)<0&&a.push(e.qDef.series.axis)}));const s=a.sort().shift();return i.qProperty.measureAxes[s]&&e.properties.measureAxis&&void 0!==e.properties.measureAxis.autoMinMax&&d(!0,i.qProperty.measureAxes[s],e.properties.measureAxis,{logarithmic:!1}),i},exportProperties:({propertyTree:e,hyperCubePath:t,viewDataMode:n})=>k2.axisChart.exportProperties({propertyTree:e,hyperCubePath:t,viewDataMode:n})}}function D2(){const e={component:"dropdown",type:"string",expression:"optional",baseRef:"style.strokeWidth",translation:"LayerStyleEditor.style.strokeWidth",show:!0,defaultValue:"none",options:[{value:"none",translation:"LayerStyleEditor.style.strokeWidth.none"},{value:"small",translation:"LayerStyleEditor.style.strokeWidth.small"},{value:"medium",translation:"LayerStyleEditor.style.strokeWidth.medium"},{value:"large",translation:"LayerStyleEditor.style.strokeWidth.large"}]},t={component:"color-picker",type:"object",baseRef:"style.strokeColor",translation:"LayerStyleEditor.style.strokeColor",dualOutput:!0,show:t=>"none"!==hl(t,`${((e,t)=>{let n=-1;for(let r=0;r<e.length;r++)if(e[r].key===t){n=r;break}return n})(t,"bar")}.${e.baseRef}`),defaultValue:()=>({index:-1,color:"#205891"})},n={component:"slider",type:"number",expression:"optional",baseRef:"style.dataPointSize",translation:"LayerStyleEditor.style.dataPointSize",show:!0,defaultValue:6,min:3,max:20,step:1},r={component:"slider",type:"number",expression:"optional",baseRef:"style.lineThickness",translation:"LayerStyleEditor.style.lineThickness",show:!0,defaultValue:1,min:1,max:5,step:1},i={component:"dropdown",type:"string",expression:"optional",baseRef:"style.lineType",translation:"LayerStyleEditor.style.lineType",show:!0,defaultValue:"solid",options:[{value:"solid",translation:"LayerStyleEditor.style.solid"},{value:"dashed",translation:"LayerStyleEditor.style.dashed"}]},o={component:"dropdown",type:"string",expression:"optional",baseRef:"style.lineCurve",translation:"LayerStyleEditor.style.lineCurve",show:!0,defaultValue:"linear",options:[{value:"linear",translation:"LayerStyleEditor.style.linear"},{value:"monotone",translation:"LayerStyleEditor.style.monotone"}]};return{component:"style-editor",translation:"LayerStyleEditor.component.styling",subtitle:"LayerStyleEditor.component.styling",resetBtnTranslation:"LayerStyleEditor.component.resetAll",key:["bar","line"],ref:"components",defaultValue:[],defaultValues(a){const s="grouped"===a.barGrouping.grouping,l=a.qHyperCubeDef.qMeasures.filter((e=>Lh(e.qDef.series)===Ho.BAR)).length,u=s&&l>1;return[{key:"bar",style:{strokeWidth:e.defaultValue,strokeColor:t.defaultValue(),width:u?.9:.7}},{key:"line",style:{dataPointSize:n.defaultValue,lineThickness:r.defaultValue,lineType:i.defaultValue,lineCurve:o.defaultValue}}]},items:{list:{type:"items",component:"expandable-items",items:{bar:{type:"items",translation:"Visualizations.Descriptions.Bar",expanded:!0,styleKey:"bar",items:{barStrokeWidth:e,barStrokeColor:t,barWidth:{component:"slider",type:"number",expression:"optional",baseRef:"style.width",translation:"LayerStyleEditor.style.barWidth",show:(e,t,n)=>{const r=t.getMeasures().some((e=>Lh(e.qDef.series)===Ho.LINE));return!k.continuous(n.layout,r&&x.isTime(!0,n.layout))},defaultValue:.7,min:.01,max:1,step:.01}}},line:{type:"items",translation:"Visualizations.Descriptions.Line",expanded:!0,styleKey:"line",items:{dataPointSize:n,lineThickness:r,lineType:i,lineCurve:o}}}}}}}function R2(e){const t=hl(e,"qHyperCube.qMeasureInfo",[]).some((({series:e=Uo})=>Lh(e)===Ho.LINE));return k.continuous(e,(()=>t&&x.isTime(!0,e)))}function I2(e){var t,n;return!(null===(t=e.qDef)||void 0===t||null===(n=t.color)||void 0===n||!n.on)}function _2(e){var t,n,r;return I2(e)&&"primary"===(null!==(t=null===(n=e.qDef)||void 0===n||null===(r=n.color)||void 0===r?void 0:r.mode)&&void 0!==t?t:"primary")}function P2(e){var t,n;return I2(e)&&"byExpression"===(null===(t=e.qDef)||void 0===t||null===(n=t.color)||void 0===n?void 0:n.mode)}function L2(e){var t,n,r,i,o;if(null!=e&&null!==(t=e.color)&&void 0!==t&&t.auto||"byExpression"!==(null==e||null===(n=e.color)||void 0===n?void 0:n.mode))return[];const a=null==e||null===(r=e.color)||void 0===r?void 0:r.colorExpression,s=null!==(i=null==e||null===(o=e.color)||void 0===o?void 0:o.expressionLabel)&&void 0!==i?i:"";return a?[{qExpression:a,label:s,id:"colorByExpression"}]:[]}function j2(e){return P2(e)?[{qExpression:e.qDef.color.colorExpression,id:"colorByMeasureExpression"}]:[]}function z2(e){var t,n;(null!==(t=null==e||null===(n=e.qHyperCubeDef)||void 0===n?void 0:n.qMeasures)&&void 0!==t?t:[]).forEach(((t,n)=>function(e,t,n){e.qAttributeExpressions=0===t?[...L2(n),...j2(e)]:j2(e)}(t,n,e)))}function F2(e){const{flags:t}=e,n={ref:"qDef.series.type",type:"string",component:"item-selection-list",defaultValue:"bar",schemaIgnore:!0,horizontal:!0,items:[{icon:e=>"stacked"===e.barGrouping.grouping||R2(e)?"stacked":"grouped",component:"icon-item",labelPlacement:"bottom",translation:"properties.style.bar",value:"bar"},{icon:"line_chart_line",component:"icon-item",labelPlacement:"bottom",translation:"properties.style.line",value:"line"},{icon:"shapes",component:"icon-item",labelPlacement:"bottom",translation:"properties.style.marker",value:"marker"}],change:e=>(e.qDef.series.type!==Ho.BAR||t.isEnabled("BARS_IN_SECONDARY_AXIS")||(e.qDef.series.axis=0),e)},r={ref:"qDef.series.axis",type:"integer",component:"dropdown",defaultValue:0,options:[{translation:"properties.axis.primary",value:0},{translation:"properties.axis.secondary",value:1}],show(e){var n;return!!t.isEnabled("BARS_IN_SECONDARY_AXIS")||Lh(null===(n=e.qDef)||void 0===n?void 0:n.series)!==Ho.BAR}},i={ref:"qDef.series.marker",type:"string",component:"dropdown",defaultValue:"circle",options:[{translation:"properties.marker.circle",value:"circle"},{translation:"properties.marker.rect",value:"rect"},{translation:"properties.marker.diamond",value:"diamond"},{translation:"properties.marker.triangle",value:"triangle"},{translation:"properties.marker.line",value:"line"}],show(e){var t;return Lh(null===(t=e.qDef)||void 0===t?void 0:t.series)===Ho.MARKER}},o={ref:"qDef.series.markerFill",translation:"properties.series.fill",type:"boolean",defaultValue:!0,show(e){var t;return Lh(null===(t=e.qDef)||void 0===t?void 0:t.series)===Ho.MARKER&&!["line"].includes(e.qDef.series.marker)}};let a;if(t.isEnabled("BASIC_COLOR_OPTIONS_PER_MEASURE")){var s,l;const t={ref:"qDef.color.on",translation:"properties.colors",type:"boolean",component:"switch",defaultValue:!1,trueOption:{value:!1,translation:"Common.Auto"},falseOption:{value:!0,translation:"Common.Custom"}},u={ref:"qDef.color.mode",type:"string",component:"dropdown",options:[{value:"primary",translation:"properties.colorMode.primary"},{value:"byExpression",translation:"properties.colorMode.byExpression"}],defaultValue:"primary",show:(...e)=>I2(...e)},c=null===(s=e.anything)||void 0===s||null===(l=s.sense)||void 0===l?void 0:l.theme;a={supPanel:{translation:"properties.measure.moreProperties",title:"properties.measure.moreProperties",subTitle:(e,t,n)=>{var r;return null===(r=n.measureTitle)||void 0===r?void 0:r.call(n)},component:"sub-panel",type:"items",items:{groups:{type:"items",component:"expandable-items",items:{presentation:{type:"items",translation:"properties.presentation",items:{seriesType:n,seriesAxis:r,seriesMarker:i,seriesMarkerFill:o}},color:{type:"items",translation:"properties.color",items:{customColor:t,colorMode:u,paletteColor:{ref:"qDef.color.paletteColor",translation:"properties.color",type:"object",component:"color-picker",dualOutput:!0,defaultValue:()=>{var e;const{primary:t}=c.getDataColorSpecials(),n=null===(e=c.getDataColorPickerPalettes()[0])||void 0===e?void 0:e.colors,r=n.indexOf(t);return{index:-1===r?Math.min(6,n.length-1):r}},show:_2},attributeExpression:{type:"string",component:"expression",expressionType:"measure",schemaIgnore:!0,ref:"qDef.color.colorExpression",translation:"Common.Expression",show:P2}}}}}}}}}else a={seriesType:n,seriesAxis:r,seriesMarker:i,seriesMarkerFill:o};return{items:{series:{type:"items",items:a}}}}function B2(e,t,n,r){let i;const o=n||0;var a,s;t?i=t.getMeasureLayouts():i=null!==(a=null==e||null===(s=e.qHyperCubeDef)||void 0===s?void 0:s.qMeasures)&&void 0!==a?a:[];return i.filter((e=>{const{series:t}=e||{};return 0===o?LJ(t,r):!LJ(t,r)}))}function V2(e,t){return t.getMeasures().filter((e=>Lh(e.qDef.series)===Ho.LINE)).length>0}function H2(e,t,n,r){const i=t.getMeasures().filter((e=>Lh(e.qDef.series)===Ho.BAR));return r?i.filter((e=>e.qDef.series.axis===$o.PRIMARY)).length>n||i.filter((e=>e.qDef.series.axis===$o.SECONDARY)).length>n:i.length>n}function $2(e){const{translator:t,flags:n}=e,r=n.isEnabled("BARS_IN_SECONDARY_AXIS"),i={items:{attributeExpression:{ref:"color.colorExpression",change:null,globalChange:e=>z2(e)},expressionLabel:{change:null},disclaimer:{component:"text",translation:"properties.color.colorOnMeasureDisclaimer",style:"hint",show:e=>n.isEnabled("BASIC_COLOR_OPTIONS_PER_MEASURE")&&e.qHyperCubeDef.qMeasures.some((e=>I2(e)))}}},o={uses:"settings",items:{presentation:{type:"items",translation:"properties.presentation",grouped:!0,items:{comboStyling:D2(),grouping:{ref:"barGrouping.grouping",type:"string",component:"item-selection-list",defaultValue:"grouped",horizontal:!0,items:[{icon:"grouped",component:"icon-item",labelPlacement:"bottom",translation:"properties.grouping.grouped",value:"grouped"},{icon:"stacked",component:"icon-item",labelPlacement:"bottom",translation:"properties.grouping.stacked",value:"stacked"}],show:(e,t,n)=>H2(0,t,1,r)&&!R2(n.layout)},orientation:{ref:"orientation",type:"string",component:"item-selection-list",defaultValue:"vertical",horizontal:!0,items:[{component:"icon-item",icon:"bars_vertical",labelPlacement:"bottom",translation:"properties.orientation.vertical",value:"vertical"},{icon:"bars_horizontal",component:"icon-item",labelPlacement:"bottom",translation:"Common.Horizontal",value:"horizontal"}],readOnly:(e,t,n)=>R2(n.layout),convertFunctions:(a="vertical",{get:(e,t,n)=>R2(n.layout)?a:e(t.type),set(e,t,n,r){t(n.type,R2(r.layout)?a:e,a)}})},scrollStartPos:{ref:"scrollStartPos",type:"number",translation:"properties.ScrollAlignment",component:"dropdown",defaultValue:0,options:[{value:0,translation:"properties.ScrollAlignStart"},{value:1,translation:"properties.ScrollAlignEnd"}],show:(e,t,n)=>!R2(n.layout)},nullMode:{type:"string",component:"dropdown",ref:"nullMode",translation:"properties.nullMode",options:[{value:"gap",translation:"properties.nullMode.gap"},{value:"connect",translation:"properties.nullMode.connect"},{value:"zero",translation:"properties.nullMode.zero"}],defaultValue:"gap",show:(e,t)=>V2(0,t)},dataPointSettings:{type:"items",grouped:!1,snapshot:{tid:"property-dataPoint"},show:(e,t)=>V2(0,t),items:{dataPoints:{ref:"dataPoint.show",translation:"properties.dataPoints.showDataPoints",type:"boolean",defaultValue:!1},showLineDataPointLabels:{ref:"dataPoint.showLineLabels",translation:"properties.dataPoints.linelabelmode",type:"boolean",component:"switch",defaultValue:!1,show:e=>e.dataPoint&&e.dataPoint.show,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"properties.off"}]}}},showBarLabels:{ref:"dataPoint.showBarLabels",type:"boolean",translation:"properties.dataPoints.barlabelmode",component:"switch",show:(e,t)=>H2(0,t,0,r),defaultValue:!1,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"properties.off"}]}}},colorsAndLegend:{uses:"colorsAndLegend",items:{colors:i,legend:{items:{show:{snapshot:{tid:"property-legend"}}}}}},dimensionAxis:{uses:"axis.dimensionAxis",label(e,n){const r="vertical"===n.layout.orientation||R2(n.layout)?"x":"y",i=function(e,t){return t?t.getDimensionLayouts():e.qHyperCubeDef.qDimensions.map((e=>e.qDef))}(e,n).map((e=>e.qFallbackTitle||"")).join(", ");let o;return o=i?t.get(`properties.${r}AxisWithInfo`,[i]):t.get(`properties.${r}Axis`),o},items:{othersGroup:{items:{dock:{options(e,t,n){let r="Common.Bottom",i="Common.Top";return"vertical"===n.layout.orientation||R2(n.layout)||(r=n.yMirrorMode?"properties.dock.right":"properties.dock.left",i=n.yMirrorMode?"properties.dock.left":"properties.dock.right"),[{value:"near",translation:r},{value:"far",translation:i}]}}}},axisDisplaySettings:{type:"items",components:"items",show:(e,t,n)=>!R2(n.layout),items:{axisDisplayMode:{type:"string",translation:"properties.axis.displaymode",ref:"dimensionAxis.axisDisplayMode",component:"dropdown",defaultValue:"auto",options:[{value:"auto",translation:"properties.axis.displaymode.auto"},{value:"max",translation:"properties.axis.displaymode.max"},{value:"custom",translation:"properties.axis.displaymode.custom"}]},maxVisibleItems:{type:"integer",translation:"properties.axis.maxvisiblevalues",ref:"dimensionAxis.maxVisibleItems",expression:"optional",defaultValue:10,show:e=>"custom"===e.dimensionAxis.axisDisplayMode,invalid(e){const{qDimensions:t,qMeasures:n}=e.qHyperCubeDef,{maxVisibleItems:r}=e.dimensionAxis;return r<0||r>1e4/(t.length+n.length)},globalChange(e){if("custom"===e.dimensionAxis.axisDisplayMode){const{qDimensions:t,qMeasures:n}=e.qHyperCubeDef,{maxVisibleItems:r}=e.dimensionAxis;r<1?e.dimensionAxis.maxVisibleItems=10:r>1e4/(t.length+n.length)&&(e.dimensionAxis.maxVisibleItems=Math.min(r,Math.floor(1e4/(t.length+n.length))))}}},hint:{component:"text",translation:"properties.axis.maxvisiblevalues.hint.combochart",style:"hint",show:e=>["custom","max"].indexOf(e.dimensionAxis.axisDisplayMode)>-1}}}}},measureAxis:{uses:"axis.measureAxis",label(e,n){const i="vertical"===n.layout.orientation||R2(n.layout)?"y":"x",o=B2(e,n,0,r).map((e=>e.qFallbackTitle));let a;return a=o.length?t.get(`properties.${i}AxisWithInfo`,[o.join(",")]):t.get(`properties.${i}Axis`),a},show:(e,t)=>B2(e,t,0,r).length>0,items:{axis:{items:{show:{ref:"measureAxes.0.show",snapshot:{title:"properties.axis.primary",tid:"property-primary-axis",show(e){var t;return((null==e||null===(t=e.qHyperCube)||void 0===t?void 0:t.qMeasureInfo)||[]).some((e=>(null==e?void 0:e.series)&&LJ(null==e?void 0:e.series,r)))}}},dock:{ref:"measureAxes.0.dock",show:e=>"none"!==e.measureAxes[0].show,options(e,t,n){let r="Common.Bottom",i="Common.Top";return("vertical"===n.layout.orientation||R2(n.layout))&&(r=n.yMirrorMode?"properties.dock.right":"properties.dock.left",i=n.yMirrorMode?"properties.dock.left":"properties.dock.right"),[{value:"near",translation:r},{value:"far",translation:i}]}},spacing:{ref:"measureAxes.0.spacing",show:e=>e.measureAxes[0]&&"none"!==e.measureAxes[0].show}}},minMax:{items:{autoMinMax:{ref:"measureAxes.0.autoMinMax"},minMax:{ref:"measureAxes.0.minMax",defaultValue:"min",show:e=>!e.measureAxes[0].autoMinMax},min:{ref:"measureAxes.0.min",show:e=>["min","minMax"].includes(e.measureAxes[0].minMax)&&!e.measureAxes[0].autoMinMax,invalid:e=>"minMax"===e.measureAxes[0].minMax&&e.measureAxes[0].min>=e.measureAxes[0].max},max:{ref:"measureAxes.0.max",show:e=>["max","minMax"].includes(e.measureAxes[0].minMax)&&!e.measureAxes[0].autoMinMax,invalid:e=>"minMax"===e.measureAxes[0].minMax&&e.measureAxes[0].min>=e.measureAxes[0].max}}}}},secondaryMeasureAxis:{uses:"axis.measureAxis",label(e,n){const i="vertical"===n.layout.orientation||R2(n.layout)?"y":"x",o=B2(e,n,1,r).map((e=>e.qFallbackTitle));let a;return a=o.length?t.get(`properties.${i}AxisWithInfo`,[o.join(",")]):t.get(`properties.${i}Axis`),a},show:(e,t)=>B2(e,t,1,r).length>0,items:{axis:{items:{show:{ref:"measureAxes.1.show",snapshot:{title:"properties.axis.secondary",tid:"property-secondary-Axis",show(e){var t;return((null==e||null===(t=e.qHyperCube)||void 0===t?void 0:t.qMeasureInfo)||[]).some((e=>(null==e?void 0:e.series)&&!LJ(null==e?void 0:e.series,r)))}}},dock:{ref:"measureAxes.1.dock",defaultValue:"far",show:e=>"none"!==e.measureAxes[1].show,options(e,t,n){let r="Common.Bottom",i="Common.Top";return("vertical"===n.layout.orientation||R2(n.layout))&&(r=n.yMirrorMode?"properties.dock.right":"properties.dock.left",i=n.yMirrorMode?"properties.dock.left":"properties.dock.right"),[{value:"near",translation:r},{value:"far",translation:i}]}},spacing:{ref:"measureAxes.1.spacing",show:e=>e.measureAxes[1]&&"none"!==e.measureAxes[1].show}}},minMax:{type:"items",items:{autoMinMax:{ref:"measureAxes.1.autoMinMax"},minMax:{ref:"measureAxes.1.minMax",defaultValue:"min",show:e=>!e.measureAxes[1].autoMinMax},min:{ref:"measureAxes.1.min",show:e=>["min","minMax"].includes(e.measureAxes[1].minMax)&&!e.measureAxes[1].autoMinMax,invalid:e=>"minMax"===e.measureAxes[1].minMax&&e.measureAxes[1].min>=e.measureAxes[1].max},max:{ref:"measureAxes.1.max",show:e=>["max","minMax"].includes(e.measureAxes[1].minMax)&&!e.measureAxes[1].autoMinMax,invalid:e=>"minMax"===e.measureAxes[1].minMax&&e.measureAxes[1].min>=e.measureAxes[1].max}}}}},tooltips:{uses:"tooltip"}}};var a;n.isEnabled("SENSECLIENT_LAYERED_LABELS")&&(o.items.dimensionAxis.items.othersGroup.items.label={options:[{value:"auto",translation:"Common.Auto"},{value:"horizontal",translation:"Common.Horizontal"},{value:"tilted",translation:"properties.labels.tilted"},{value:"layered",translation:"properties.labels.layered"}]});return{type:"items",component:"accordion",items:{data:{uses:"data",items:{dimensions:{items:{nullSuppression:{show:(e,t,n)=>!R2(n.layout)}}},measures:F2(e)}},sorting:{uses:"sortingWithDisclaimer"},addons:{type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond"}}},primaryMeasureAxisRefLines:{uses:"reflines",ref:"refLine.refLines",translation:"properties.primaryMeasureAxisReferenceLines",title:{translation:"properties.primaryMeasureAxisReferenceLines.tooltip"},show:e=>function(e,t){return e.some((e=>LJ(e.qDef.series,t)))}(e.qHyperCubeDef.qMeasures,r)},secondaryMeasureAxisRefLines:{uses:"reflines",ref:"refLine.refLines2",translation:"properties.secondaryMeasureAxisReferenceLines",title:{translation:"properties.secondaryMeasureAxisReferenceLines.tooltip"},show:e=>function(e,t){return e.some((e=>!LJ(e.qDef.series,t)))}(e.qHyperCubeDef.qMeasures,r)},dimRefLines:{uses:"dimReflines"}}},settings:o}}}function U2(e){return e.qHyperCubeDef.qMeasures.filter((e=>Lh(e.qDef.series)===Ho.LINE)).length>0}function W2(e){const{flags:t}=e,n=e.flags.isEnabled("BARS_IN_SECONDARY_AXIS");return{type:"items",component:"accordion",items:{data:{uses:"data"},sort:{uses:"sortWithDisclaimer"},presentation:{uses:"presentation",type:"items",translation:"properties.presentation",grouped:!0,show:(e,t)=>U2(e)||!R2(t),items:{grouping:{ref:"barGrouping.grouping",type:"string",component:"item-selection-list",horizontal:!0,items:[{icon:"grouped",component:"icon-item",labelPlacement:"bottom",translation:"properties.grouping.grouped",value:"grouped"},{icon:"stacked",component:"icon-item",labelPlacement:"bottom",translation:"properties.grouping.stacked",value:"stacked"}],show:(e,t)=>function(e,t){const n=e.qHyperCubeDef.qMeasures.filter((e=>Lh(e.qDef.series)===Ho.BAR));return t?n.filter((e=>e.qDef.series.axis===$o.PRIMARY)).length>1||n.filter((e=>e.qDef.series.axis===$o.SECONDARY)).length>1:n.length>1}(e,n)&&!R2(t)},orientation:{ref:"orientation",type:"string",component:"item-selection-list",horizontal:!0,items:[{component:"icon-item",icon:"bars_vertical",labelPlacement:"bottom",translation:"properties.orientation.vertical",value:"vertical"},{icon:"bars_horizontal",component:"icon-item",labelPlacement:"bottom",translation:"Common.Horizontal",value:"horizontal"}],show:(e,t)=>!R2(t)},nullMode:{type:"string",component:"radio-list",ref:"nullMode",translation:"properties.nullMode",options:()=>[{value:"gap",translation:"properties.nullMode.gap"},{value:"connect",translation:"properties.nullMode.connect"},{value:"zero",translation:"properties.nullMode.zero"}],show:e=>U2(e)&&e.qHyperCubeDef.qMeasures.length>1},dataPoints:{ref:"dataPoint.show",translation:"properties.dataPoints.showDataPoints",type:"boolean",show:e=>U2(e)}}},color:{uses:"color",items:{disclaimer:{component:"text",translation:"properties.color.colorOnMeasureDisclaimer",style:"hint",show:e=>t.isEnabled("BASIC_COLOR_OPTIONS_PER_MEASURE")&&e.qHyperCubeDef.qMeasures.some((e=>I2(e)))}}}}}}const Y2={bar:{axis:0,icon:"bar-chart",tid:"as-bar",translation:"contextMenu.asBar"},line:{axis:1,icon:"line-chart",tid:"as-line",translation:"contextMenu.asLine"},marker:{axis:1,icon:"shapes",tid:"as-marker",translation:"contextMenu.asMarker"}};function X2(e,t,n,r,i){const{axis:o,icon:a,tid:s,translation:l}=Y2[i];t.addItem({icon:a,tid:s,translation:l,async select(){let t;t="measure"===e.type?await r.addLibraryMeasure(e.id):await r.addExpressionMeasure(e.name,""),t.qDef.series.type=i,t.qDef.series.axis=o,r.updateGlobalChangeListeners(),n.setProperties(r.properties),window.qvangularGlobal.$rootScope.$broadcast("pp-open-path","data."+t.qDef.cId)}})}function G2(e,t,n,r,i){!function(e,t,n){const{item:r}=e,i=["contextMenu.add",r.name];if(n.canAddMeasure()){const o=e.menu.addItem({translation:i,tid:"add-as"});X2(r,o,t,n,"bar"),X2(r,o,t,n,"line"),X2(r,o,t,n,"marker")}}(e,n,t),t.getMeasures().length>=t.minMeasures()&&e.ReplaceMeasures(n,t,i),e.ColorBy(n,t,i),r()}function K2(e){const t={},{tooltip:n}=e;if(n){var r,i;t.chart_tooltip_custom=!n.auto;const e=null===(r=n.chart)||void 0===r||null===(i=r.object)||void 0===i?void 0:i.refId;!n.auto&&e&&(t.chart_tooltip_custom_mini_chart=e)}return t}const J2=e=>!!(e&&e.qHyperCube.qSize.qcy>0);function Z2(e){return{definition:$2(e),softDefinition:W2(e),support:{snapshot:J2,export:!0,exportData:!0,sharing:!1,viewData:!0,modifiers:["accumulation","movingAverage","difference","normalization"]},getDropMeasureOptions:G2,extendMetrics:K2,importProperties:(t,n,r,i)=>{const o={layout:{templateId:n.templateId}};r.mapProperties(o);const a={defaultDimension:r.getDefaultDimensionProperties(),defaultMeasure:r.getDefaultMeasureProperties()},s=k2.axisChart.importProperties({exportFormat:t,initialProperties:n,dataDefinition:N2(e),defaultPropertyValues:a,hypercubePath:i,extension:r});return function(e,t,n){const r="linechart"===n.properties.visualization,i=[];e.qProperty.qHyperCubeDef.qMeasures.forEach((e=>{e.qDef.series||(e.qDef.series={type:r?"line":"bar",axis:0,marker:"circle",markerFill:!0}),i.indexOf(e.qDef.series.axis)<0&&i.push(e.qDef.series.axis)}));const o=i.sort().shift();e.qProperty.measureAxes[o]&&n.properties.measureAxis&&void 0!==n.properties.measureAxis.autoMinMax&&d(!0,e.qProperty.measureAxes[o],n.properties.measureAxis,{logarithmic:!1}),t.flags.isEnabled("BASIC_COLOR_OPTIONS_PER_MEASURE")&&z2(e.qProperty)}(s,e,t),s},exportProperties:(e,t,n)=>{!function(e){e.qProperty.qHyperCubeDef.qMeasures.forEach((e=>{e.qAttributeExpressions=[]}))}(e);return k2.axisChart.exportProperties({propertyTree:e,hyperCubePath:t,viewDataMode:n})},migrate:{properties:e=>e.qExtendsId?e:function(e){return a1(e.version)&&(e.qHyperCubeDef.qMeasures.forEach((e=>{const{qDef:t}=e;void 0===t.series&&(t.series=Uo),void 0===t.series.type&&(t.series.type=Uo.type),void 0===t.series.axis&&(t.series.axis=t.series.type===Ho.BAR?$o.PRIMARY:$o.SECONDARY),t.series.type===Ho.BAR&&t.series.axis===$o.SECONDARY&&(t.series.axis=$o.PRIMARY)})),e.version=o1),e}(e)}}}return function(t){const{flags:n}=t,r=NJ();return{qae:q2(t),ext:Z2(t),component(){const t=function(){const[t,n]=e.useState();return e.useEffect((()=>n(ml())),[]),t}(),i=v2(),o=function(){const t=e.useOptions(),n=e.useTranslator(),r=e.useEmbed(),i=e.useTheme(),[o,a]=e.useState(),s=e.useDeviceType();return e.useEffect((()=>{a({options:{direction:"ltr",...t},translator:n,theme:i,embed:r,deviceType:s})}),[t.direction,t.freeResize,n.language(),i.name(),s]),o}(),a=M2(),s=function({picasso:t,environment:n}){const r=e.useElement(),[i,o]=e.useState();return e.useEffect((()=>{if(!n)return;r.style.overflow="hidden";const e=t({renderer:{prio:[n.options.renderer||"canvas"]}}).chart({element:r,data:[],settings:{}});o(e);const{destroy:i}=e;return()=>{i()}}),[n]),i}({picasso:r,environment:o}),l=function({chart:t,actions:n}){const r=e.useSelections(),i=e.useStaleLayout(),[o,a]=e.useState();return e.useEffect((()=>{if(null==t||!t.update||!t.scale||!r)return null;const e=t.scale(Vo.SCALE.MAJOR),o=jc({chart:t,actions:n,selections:r,config:{allowSimultaneous:!0,brushRanges:!0,majorScale:e,selectionActions:{clear:S2},selectionEvents:{start:w2}}});o.setLayout(i);const{destroy:s}=o;return a(o),()=>{s()}}),[r,null==t?void 0:t.update,null==t?void 0:t.scale]),e.useEffect((()=>{null!=o&&o.setLayout&&i&&o.setLayout(i)}),[i]),o}({chart:s,actions:a}),u=g2({picasso:r,chart:s,environment:o,flags:n,viewState:i,viewCache:t,actions:a,selectionService:l});Nm({picasso:r,chart:s,models:u,environment:o,viewState:i,viewCache:t,actions:a}),(({picasso:t,chart:n,models:r,environment:i,viewState:o,viewCache:a,actions:s})=>{const{width:l,height:u}=e.useRect(),[,c]=e.usePromise((async()=>{if(!(null!=n&&n.update&&r&&i&&o))return;const{colorService:e,discreteModel:c,dockService:d,layoutService:f,refLineModel:h}=r;function p(){n.update({settings:Em({picasso:t,chart:n,models:r,environment:i,viewState:o,viewCache:a,actions:s})})}d.update({width:l,height:u}),e.custom.updateLegend(),h.update({picasso:t,chart:n,models:r,environment:i,viewState:o,viewCache:a,actions:s});const m=f.getDataPages();f.setDataPages([]),p(),f.setDataPages(m),f.meta.isContinuous||await c.command.initialize(),p()}),[l,u]);if(c)throw c})({picasso:r,chart:s,models:u,environment:o,viewState:i,viewCache:t,actions:a}),(({models:t,chart:n,viewState:r})=>{e.onTakeSnapshot((e=>{if(!t)return;const{layoutService:i,dockService:o,colorService:a,discreteModel:s,continuousModel:l,reducedModel:u}=t,{width:c,height:d}=o.meta.chart.size;return e.snapshotData=e.snapshotData||{},e.snapshotData.content={size:{w:c,h:d}},i.meta.isSnapshot?Promise.resolve():(e.snapshotData.content.chartData={scrollOffset:r.get("scrollOffset"),zoom:r.get("zoom"),legendScrollOffset:C(n,Vo.COMPONENT.LEGEND_CATEGORICAL)},i.meta.isDiscrete?(s.command.setSnapshotData(e),u.command.setSnapshotData(e)):l.setSnapshotData(e),a.getSnapshotData().then((t=>{e.snapshotData.content.chartData={...e.snapshotData.content.chartData,...t}})).catch((()=>{})))})),e.useImperativeHandle((()=>({getViewState(){if(r&&n)return{scrollOffset:r.get("scrollOffset"),zoom:r.get("zoom"),legendScrollOffset:C(n,Vo.COMPONENT.LEGEND_CATEGORICAL)}}})),[r,n])})({models:u,chart:s,viewState:i})}}}}));
|