@nebula.js/sn-combo-chart 1.26.13 → 1.26.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api-specifications/plugins.json +1 -1
- package/api-specifications/properties.json +1 -1
- package/core/esm/index.js +3 -3
- package/dist/sn-combo-chart.js +6 -6
- package/dist/sn-combo-chart.systemjs.js +3 -3
- package/package.json +1 -1
- package/sn-combo-chart-ext/dist/sn-combo-chart.js +6 -6
- package/sn-combo-chart-ext/sn-combo-chart.qext +1 -1
package/dist/sn-combo-chart.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* @nebula.js/sn-combo-chart v1.26.
|
|
2
|
+
* @nebula.js/sn-combo-chart v1.26.15
|
|
3
3
|
* Copyright (c) 2024 QlikTech International AB
|
|
4
4
|
* Released under the MIT license.
|
|
5
5
|
*/
|
|
@@ -13,7 +13,7 @@ e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,i,o,a,s,l,c,u,d,f=e.le
|
|
|
13
13
|
* Copyright (c) 2016 Jorik Tangelder;
|
|
14
14
|
* Licensed under the MIT license */!function(e){!function(t,n,r,i){var o,a=["","webkit","Moz","MS","ms","o"],s=n.createElement("div"),l="function",c=Math.round,u=Math.abs,d=Date.now;function f(e,t,n){return setTimeout(b(e,n),t)}function h(e,t,n){return!!Array.isArray(e)&&(p(e,n[t],n),!0)}function p(e,t,n){var r;if(e)if(e.forEach)e.forEach(t,n);else if(e.length!==i)for(r=0;r<e.length;)t.call(n,e[r],r,e),r++;else for(r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r,e)}function m(e,n,r){var i="DEPRECATED METHOD: "+n+"\n"+r+" AT \n";return function(){var n=new Error("get-stack-trace"),r=n&&n.stack?n.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",o=t.console&&(t.console.warn||t.console.log);return o&&o.call(t.console,i,r),e.apply(this,arguments)}}o="function"!=typeof Object.assign?function(e){if(e===i||null===e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),n=1;n<arguments.length;n++){var r=arguments[n];if(r!==i&&null!==r)for(var o in r)r.hasOwnProperty(o)&&(t[o]=r[o])}return t}:Object.assign;var g=m((function(e,t,n){for(var r=Object.keys(t),o=0;o<r.length;)(!n||n&&e[r[o]]===i)&&(e[r[o]]=t[r[o]]),o++;return e}),"extend","Use `assign`."),y=m((function(e,t){return g(e,t,!0)}),"merge","Use `assign`.");function v(e,t,n){var r,i=t.prototype;(r=e.prototype=Object.create(i)).constructor=e,r._super=i,n&&o(r,n)}function b(e,t){return function(){return e.apply(t,arguments)}}function x(e,t){return typeof e==l?e.apply(t&&t[0]||i,t):e}function S(e,t){return e===i?t:e}function w(e,t,n){p(C(t),(function(t){e.addEventListener(t,n,!1)}))}function M(e,t,n){p(C(t),(function(t){e.removeEventListener(t,n,!1)}))}function E(e,t){for(;e;){if(e==t)return!0;e=e.parentNode}return!1}function k(e,t){return e.indexOf(t)>-1}function C(e){return e.trim().split(/\s+/g)}function T(e,t,n){if(e.indexOf&&!n)return e.indexOf(t);for(var r=0;r<e.length;){if(n&&e[r][n]==t||!n&&e[r]===t)return r;r++}return-1}function A(e){return Array.prototype.slice.call(e,0)}function O(e,t,n){for(var r=[],i=[],o=0;o<e.length;){var a=t?e[o][t]:e[o];T(i,a)<0&&r.push(e[o]),i[o]=a,o++}return n&&(r=t?r.sort((function(e,n){return e[t]>n[t]})):r.sort()),r}function N(e,t){for(var n,r,o=t[0].toUpperCase()+t.slice(1),s=0;s<a.length;){if((r=(n=a[s])?n+o:t)in e)return r;s++}return i}var q=1;function D(e){var n=e.ownerDocument||e;return n.defaultView||n.parentWindow||t}var R="ontouchstart"in t,I=N(t,"PointerEvent")!==i,_=R&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),P="touch",L="mouse",z=25,F=1,j=4,$=8,H=1,B=2,V=4,U=8,W=16,Y=B|V,X=U|W,G=Y|X,K=["x","y"],J=["clientX","clientY"];function Q(e,t){var n=this;this.manager=e,this.callback=t,this.element=e.element,this.target=e.options.inputTarget,this.domHandler=function(t){x(e.options.enable,[e])&&n.handler(t)},this.init()}function Z(e,t,n){var r=n.pointers.length,o=n.changedPointers.length,a=t&F&&r-o==0,s=t&(j|$)&&r-o==0;n.isFirst=!!a,n.isFinal=!!s,a&&(e.session={}),n.eventType=t,function(e,t){var n=e.session,r=t.pointers,o=r.length;n.firstInput||(n.firstInput=ee(t));o>1&&!n.firstMultiple?n.firstMultiple=ee(t):1===o&&(n.firstMultiple=!1);var a=n.firstInput,s=n.firstMultiple,l=s?s.center:a.center,c=t.center=te(r);t.timeStamp=d(),t.deltaTime=t.timeStamp-a.timeStamp,t.angle=oe(l,c),t.distance=ie(l,c),function(e,t){var n=t.center,r=e.offsetDelta||{},i=e.prevDelta||{},o=e.prevInput||{};t.eventType!==F&&o.eventType!==j||(i=e.prevDelta={x:o.deltaX||0,y:o.deltaY||0},r=e.offsetDelta={x:n.x,y:n.y});t.deltaX=i.x+(n.x-r.x),t.deltaY=i.y+(n.y-r.y)}(n,t),t.offsetDirection=re(t.deltaX,t.deltaY);var f=ne(t.deltaTime,t.deltaX,t.deltaY);t.overallVelocityX=f.x,t.overallVelocityY=f.y,t.overallVelocity=u(f.x)>u(f.y)?f.x:f.y,t.scale=s?function(e,t){return ie(t[0],t[1],J)/ie(e[0],e[1],J)}(s.pointers,r):1,t.rotation=s?function(e,t){return oe(t[1],t[0],J)+oe(e[1],e[0],J)}(s.pointers,r):0,t.maxPointers=n.prevInput?t.pointers.length>n.prevInput.maxPointers?t.pointers.length:n.prevInput.maxPointers:t.pointers.length,function(e,t){var n,r,o,a,s=e.lastInterval||t,l=t.timeStamp-s.timeStamp;if(t.eventType!=$&&(l>z||s.velocity===i)){var c=t.deltaX-s.deltaX,d=t.deltaY-s.deltaY,f=ne(l,c,d);r=f.x,o=f.y,n=u(f.x)>u(f.y)?f.x:f.y,a=re(c,d),e.lastInterval=t}else n=s.velocity,r=s.velocityX,o=s.velocityY,a=s.direction;t.velocity=n,t.velocityX=r,t.velocityY=o,t.direction=a}(n,t);var h=e.element;E(t.srcEvent.target,h)&&(h=t.srcEvent.target);t.target=h}(e,n),e.emit("hammer.input",n),e.recognize(n),e.session.prevInput=n}function ee(e){for(var t=[],n=0;n<e.pointers.length;)t[n]={clientX:c(e.pointers[n].clientX),clientY:c(e.pointers[n].clientY)},n++;return{timeStamp:d(),pointers:t,center:te(t),deltaX:e.deltaX,deltaY:e.deltaY}}function te(e){var t=e.length;if(1===t)return{x:c(e[0].clientX),y:c(e[0].clientY)};for(var n=0,r=0,i=0;i<t;)n+=e[i].clientX,r+=e[i].clientY,i++;return{x:c(n/t),y:c(r/t)}}function ne(e,t,n){return{x:t/e||0,y:n/e||0}}function re(e,t){return e===t?H:u(e)>=u(t)?e<0?B:V:t<0?U:W}function ie(e,t,n){n||(n=K);var r=t[n[0]]-e[n[0]],i=t[n[1]]-e[n[1]];return Math.sqrt(r*r+i*i)}function oe(e,t,n){n||(n=K);var r=t[n[0]]-e[n[0]],i=t[n[1]]-e[n[1]];return 180*Math.atan2(i,r)/Math.PI}Q.prototype={handler:function(){},init:function(){this.evEl&&w(this.element,this.evEl,this.domHandler),this.evTarget&&w(this.target,this.evTarget,this.domHandler),this.evWin&&w(D(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&M(this.element,this.evEl,this.domHandler),this.evTarget&&M(this.target,this.evTarget,this.domHandler),this.evWin&&M(D(this.element),this.evWin,this.domHandler)}};var ae={mousedown:F,mousemove:2,mouseup:j},se="mousedown",le="mousemove mouseup";function ce(){this.evEl=se,this.evWin=le,this.pressed=!1,Q.apply(this,arguments)}v(ce,Q,{handler:function(e){var t=ae[e.type];t&F&&0===e.button&&(this.pressed=!0),2&t&&1!==e.which&&(t=j),this.pressed&&(t&j&&(this.pressed=!1),this.callback(this.manager,t,{pointers:[e],changedPointers:[e],pointerType:L,srcEvent:e}))}});var ue={pointerdown:F,pointermove:2,pointerup:j,pointercancel:$,pointerout:$},de={2:P,3:"pen",4:L,5:"kinect"},fe="pointerdown",he="pointermove pointerup pointercancel";function pe(){this.evEl=fe,this.evWin=he,Q.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}t.MSPointerEvent&&!t.PointerEvent&&(fe="MSPointerDown",he="MSPointerMove MSPointerUp MSPointerCancel"),v(pe,Q,{handler:function(e){var t=this.store,n=!1,r=e.type.toLowerCase().replace("ms",""),i=ue[r],o=de[e.pointerType]||e.pointerType,a=o==P,s=T(t,e.pointerId,"pointerId");i&F&&(0===e.button||a)?s<0&&(t.push(e),s=t.length-1):i&(j|$)&&(n=!0),s<0||(t[s]=e,this.callback(this.manager,i,{pointers:t,changedPointers:[e],pointerType:o,srcEvent:e}),n&&t.splice(s,1))}});var me={touchstart:F,touchmove:2,touchend:j,touchcancel:$};function ge(){this.evTarget="touchstart",this.evWin="touchstart touchmove touchend touchcancel",this.started=!1,Q.apply(this,arguments)}function ye(e,t){var n=A(e.touches),r=A(e.changedTouches);return t&(j|$)&&(n=O(n.concat(r),"identifier",!0)),[n,r]}v(ge,Q,{handler:function(e){var t=me[e.type];if(t===F&&(this.started=!0),this.started){var n=ye.call(this,e,t);t&(j|$)&&n[0].length-n[1].length==0&&(this.started=!1),this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:P,srcEvent:e})}}});var ve={touchstart:F,touchmove:2,touchend:j,touchcancel:$},be="touchstart touchmove touchend touchcancel";function xe(){this.evTarget=be,this.targetIds={},Q.apply(this,arguments)}function Se(e,t){var n=A(e.touches),r=this.targetIds;if(t&(2|F)&&1===n.length)return r[n[0].identifier]=!0,[n,n];var i,o,a=A(e.changedTouches),s=[],l=this.target;if(o=n.filter((function(e){return E(e.target,l)})),t===F)for(i=0;i<o.length;)r[o[i].identifier]=!0,i++;for(i=0;i<a.length;)r[a[i].identifier]&&s.push(a[i]),t&(j|$)&&delete r[a[i].identifier],i++;return s.length?[O(o.concat(s),"identifier",!0),s]:void 0}v(xe,Q,{handler:function(e){var t=ve[e.type],n=Se.call(this,e,t);n&&this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:P,srcEvent:e})}});var we=2500;function Me(){Q.apply(this,arguments);var e=b(this.handler,this);this.touch=new xe(this.manager,e),this.mouse=new ce(this.manager,e),this.primaryTouch=null,this.lastTouches=[]}function Ee(e,t){e&F?(this.primaryTouch=t.changedPointers[0].identifier,ke.call(this,t)):e&(j|$)&&ke.call(this,t)}function ke(e){var t=e.changedPointers[0];if(t.identifier===this.primaryTouch){var n={x:t.clientX,y:t.clientY};this.lastTouches.push(n);var r=this.lastTouches;setTimeout((function(){var e=r.indexOf(n);e>-1&&r.splice(e,1)}),we)}}function Ce(e){for(var t=e.srcEvent.clientX,n=e.srcEvent.clientY,r=0;r<this.lastTouches.length;r++){var i=this.lastTouches[r],o=Math.abs(t-i.x),a=Math.abs(n-i.y);if(o<=25&&a<=25)return!0}return!1}v(Me,Q,{handler:function(e,t,n){var r=n.pointerType==P,i=n.pointerType==L;if(!(i&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if(r)Ee.call(this,t,n);else if(i&&Ce.call(this,n))return;this.callback(e,t,n)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var Te=N(s.style,"touchAction"),Ae=Te!==i,Oe="compute",Ne="auto",qe="manipulation",De="none",Re="pan-x",Ie="pan-y",_e=function(){if(!Ae)return!1;var e={},n=t.CSS&&t.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach((function(r){e[r]=!n||t.CSS.supports("touch-action",r)})),e}();function Pe(e,t){this.manager=e,this.set(t)}Pe.prototype={set:function(e){e==Oe&&(e=this.compute()),Ae&&this.manager.element.style&&_e[e]&&(this.manager.element.style[Te]=e),this.actions=e.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var e=[];return p(this.manager.recognizers,(function(t){x(t.options.enable,[t])&&(e=e.concat(t.getTouchAction()))})),function(e){if(k(e,De))return De;var t=k(e,Re),n=k(e,Ie);if(t&&n)return De;if(t||n)return t?Re:Ie;if(k(e,qe))return qe;return Ne}(e.join(" "))},preventDefaults:function(e){var t=e.srcEvent,n=e.offsetDirection;if(this.manager.session.prevented)t.preventDefault();else{var r=this.actions,i=k(r,De)&&!_e[De],o=k(r,Ie)&&!_e[Ie],a=k(r,Re)&&!_e[Re];if(i){var s=1===e.pointers.length,l=e.distance<2,c=e.deltaTime<250;if(s&&l&&c)return}if(!a||!o)return i||o&&n&Y||a&&n&X?this.preventSrc(t):void 0}},preventSrc:function(e){this.manager.session.prevented=!0,e.preventDefault()}};var Le=1,ze=32;function Fe(e){this.options=o({},this.defaults,e||{}),this.id=q++,this.manager=null,this.options.enable=S(this.options.enable,!0),this.state=Le,this.simultaneous={},this.requireFail=[]}function je(e){return 16&e?"cancel":8&e?"end":4&e?"move":2&e?"start":""}function $e(e){return e==W?"down":e==U?"up":e==B?"left":e==V?"right":""}function He(e,t){var n=t.manager;return n?n.get(e):e}function Be(){Fe.apply(this,arguments)}function Ve(){Be.apply(this,arguments),this.pX=null,this.pY=null}function Ue(){Be.apply(this,arguments)}function We(){Fe.apply(this,arguments),this._timer=null,this._input=null}function Ye(){Be.apply(this,arguments)}function Xe(){Be.apply(this,arguments)}function Ge(){Fe.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function Ke(e,t){return(t=t||{}).recognizers=S(t.recognizers,Ke.defaults.preset),new Je(e,t)}Fe.prototype={defaults:{},set:function(e){return o(this.options,e),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(e){if(h(e,"recognizeWith",this))return this;var t=this.simultaneous;return t[(e=He(e,this)).id]||(t[e.id]=e,e.recognizeWith(this)),this},dropRecognizeWith:function(e){return h(e,"dropRecognizeWith",this)||(e=He(e,this),delete this.simultaneous[e.id]),this},requireFailure:function(e){if(h(e,"requireFailure",this))return this;var t=this.requireFail;return-1===T(t,e=He(e,this))&&(t.push(e),e.requireFailure(this)),this},dropRequireFailure:function(e){if(h(e,"dropRequireFailure",this))return this;e=He(e,this);var t=T(this.requireFail,e);return t>-1&&this.requireFail.splice(t,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(e){return!!this.simultaneous[e.id]},emit:function(e){var t=this,n=this.state;function r(n){t.manager.emit(n,e)}n<8&&r(t.options.event+je(n)),r(t.options.event),e.additionalEvent&&r(e.additionalEvent),n>=8&&r(t.options.event+je(n))},tryEmit:function(e){if(this.canEmit())return this.emit(e);this.state=ze},canEmit:function(){for(var e=0;e<this.requireFail.length;){if(!(this.requireFail[e].state&(ze|Le)))return!1;e++}return!0},recognize:function(e){var t=o({},e);if(!x(this.options.enable,[this,t]))return this.reset(),void(this.state=ze);56&this.state&&(this.state=Le),this.state=this.process(t),30&this.state&&this.tryEmit(t)},process:function(e){},getTouchAction:function(){},reset:function(){}},v(Be,Fe,{defaults:{pointers:1},attrTest:function(e){var t=this.options.pointers;return 0===t||e.pointers.length===t},process:function(e){var t=this.state,n=e.eventType,r=6&t,i=this.attrTest(e);return r&&(n&$||!i)?16|t:r||i?n&j?8|t:2&t?4|t:2:ze}}),v(Ve,Be,{defaults:{event:"pan",threshold:10,pointers:1,direction:G},getTouchAction:function(){var e=this.options.direction,t=[];return e&Y&&t.push(Ie),e&X&&t.push(Re),t},directionTest:function(e){var t=this.options,n=!0,r=e.distance,i=e.direction,o=e.deltaX,a=e.deltaY;return i&t.direction||(t.direction&Y?(i=0===o?H:o<0?B:V,n=o!=this.pX,r=Math.abs(e.deltaX)):(i=0===a?H:a<0?U:W,n=a!=this.pY,r=Math.abs(e.deltaY))),e.direction=i,n&&r>t.threshold&&i&t.direction},attrTest:function(e){return Be.prototype.attrTest.call(this,e)&&(2&this.state||!(2&this.state)&&this.directionTest(e))},emit:function(e){this.pX=e.deltaX,this.pY=e.deltaY;var t=$e(e.direction);t&&(e.additionalEvent=this.options.event+t),this._super.emit.call(this,e)}}),v(Ue,Be,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[De]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.scale-1)>this.options.threshold||2&this.state)},emit:function(e){if(1!==e.scale){var t=e.scale<1?"in":"out";e.additionalEvent=this.options.event+t}this._super.emit.call(this,e)}}),v(We,Fe,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[Ne]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,r=e.distance<t.threshold,i=e.deltaTime>t.time;if(this._input=e,!r||!n||e.eventType&(j|$)&&!i)this.reset();else if(e.eventType&F)this.reset(),this._timer=f((function(){this.state=8,this.tryEmit()}),t.time,this);else if(e.eventType&j)return 8;return ze},reset:function(){clearTimeout(this._timer)},emit:function(e){8===this.state&&(e&&e.eventType&j?this.manager.emit(this.options.event+"up",e):(this._input.timeStamp=d(),this.manager.emit(this.options.event,this._input)))}}),v(Ye,Be,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[De]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.rotation)>this.options.threshold||2&this.state)}}),v(Xe,Be,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:Y|X,pointers:1},getTouchAction:function(){return Ve.prototype.getTouchAction.call(this)},attrTest:function(e){var t,n=this.options.direction;return n&(Y|X)?t=e.overallVelocity:n&Y?t=e.overallVelocityX:n&X&&(t=e.overallVelocityY),this._super.attrTest.call(this,e)&&n&e.offsetDirection&&e.distance>this.options.threshold&&e.maxPointers==this.options.pointers&&u(t)>this.options.velocity&&e.eventType&j},emit:function(e){var t=$e(e.offsetDirection);t&&this.manager.emit(this.options.event+t,e),this.manager.emit(this.options.event,e)}}),v(Ge,Fe,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[qe]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,r=e.distance<t.threshold,i=e.deltaTime<t.time;if(this.reset(),e.eventType&F&&0===this.count)return this.failTimeout();if(r&&i&&n){if(e.eventType!=j)return this.failTimeout();var o=!this.pTime||e.timeStamp-this.pTime<t.interval,a=!this.pCenter||ie(this.pCenter,e.center)<t.posThreshold;if(this.pTime=e.timeStamp,this.pCenter=e.center,a&&o?this.count+=1:this.count=1,this._input=e,0===this.count%t.taps)return this.hasRequireFailures()?(this._timer=f((function(){this.state=8,this.tryEmit()}),t.interval,this),2):8}return ze},failTimeout:function(){return this._timer=f((function(){this.state=ze}),this.options.interval,this),ze},reset:function(){clearTimeout(this._timer)},emit:function(){8==this.state&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),Ke.VERSION="2.0.7",Ke.defaults={domEvents:!1,touchAction:Oe,enable:!0,inputTarget:null,inputClass:null,preset:[[Ye,{enable:!1}],[Ue,{enable:!1},["rotate"]],[Xe,{direction:Y}],[Ve,{direction:Y},["swipe"]],[Ge],[Ge,{event:"doubletap",taps:2},["tap"]],[We]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};function Je(e,t){var n;this.options=o({},Ke.defaults,t||{}),this.options.inputTarget=this.options.inputTarget||e,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=e,this.input=new((n=this).options.inputClass||(I?pe:_?xe:R?Me:ce))(n,Z),this.touchAction=new Pe(this,this.options.touchAction),Qe(this,!0),p(this.options.recognizers,(function(e){var t=this.add(new e[0](e[1]));e[2]&&t.recognizeWith(e[2]),e[3]&&t.requireFailure(e[3])}),this)}function Qe(e,t){var n,r=e.element;r.style&&(p(e.options.cssProps,(function(i,o){n=N(r.style,o),t?(e.oldCssProps[n]=r.style[n],r.style[n]=i):r.style[n]=e.oldCssProps[n]||""})),t||(e.oldCssProps={}))}Je.prototype={set:function(e){return o(this.options,e),e.touchAction&&this.touchAction.update(),e.inputTarget&&(this.input.destroy(),this.input.target=e.inputTarget,this.input.init()),this},stop:function(e){this.session.stopped=e?2:1},recognize:function(e){var t=this.session;if(!t.stopped){var n;this.touchAction.preventDefaults(e);var r=this.recognizers,i=t.curRecognizer;(!i||i&&8&i.state)&&(i=t.curRecognizer=null);for(var o=0;o<r.length;)n=r[o],2===t.stopped||i&&n!=i&&!n.canRecognizeWith(i)?n.reset():n.recognize(e),!i&&14&n.state&&(i=t.curRecognizer=n),o++}},get:function(e){if(e instanceof Fe)return e;for(var t=this.recognizers,n=0;n<t.length;n++)if(t[n].options.event==e)return t[n];return null},add:function(e){if(h(e,"add",this))return this;var t=this.get(e.options.event);return t&&this.remove(t),this.recognizers.push(e),e.manager=this,this.touchAction.update(),e},remove:function(e){if(h(e,"remove",this))return this;if(e=this.get(e)){var t=this.recognizers,n=T(t,e);-1!==n&&(t.splice(n,1),this.touchAction.update())}return this},on:function(e,t){if(e!==i&&t!==i){var n=this.handlers;return p(C(e),(function(e){n[e]=n[e]||[],n[e].push(t)})),this}},off:function(e,t){if(e!==i){var n=this.handlers;return p(C(e),(function(e){t?n[e]&&n[e].splice(T(n[e],t),1):delete n[e]})),this}},emit:function(e,t){this.options.domEvents&&function(e,t){var r=n.createEvent("Event");r.initEvent(e,!0,!0),r.gesture=t,t.target.dispatchEvent(r)}(e,t);var r=this.handlers[e]&&this.handlers[e].slice();if(r&&r.length){t.type=e,t.preventDefault=function(){t.srcEvent.preventDefault()};for(var i=0;i<r.length;)r[i](t),i++}},destroy:function(){this.element&&Qe(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},o(Ke,{INPUT_START:F,INPUT_MOVE:2,INPUT_END:j,INPUT_CANCEL:$,STATE_POSSIBLE:Le,STATE_BEGAN:2,STATE_CHANGED:4,STATE_ENDED:8,STATE_RECOGNIZED:8,STATE_CANCELLED:16,STATE_FAILED:ze,DIRECTION_NONE:H,DIRECTION_LEFT:B,DIRECTION_RIGHT:V,DIRECTION_UP:U,DIRECTION_DOWN:W,DIRECTION_HORIZONTAL:Y,DIRECTION_VERTICAL:X,DIRECTION_ALL:G,Manager:Je,Input:Q,TouchAction:Pe,TouchInput:xe,MouseInput:ce,PointerEventInput:pe,TouchMouseInput:Me,SingleTouchInput:ge,Recognizer:Fe,AttrRecognizer:Be,Tap:Ge,Pan:Ve,Swipe:Xe,Pinch:Ue,Rotate:Ye,Press:We,on:w,off:M,each:p,merge:y,extend:g,assign:o,inherit:v,bindFn:b,prefixed:N}),(void 0!==t?t:"undefined"!=typeof self?self:{}).Hammer=Ke,"function"==typeof i&&i.amd?i((function(){return Ke})):e.exports?e.exports=Ke:t.Hammer=Ke}(window,document)}(yy);var vy=n(yy.exports),by={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},xy=/([astvzqmhlc])([^astvzqmhlc]*)/gi,Sy=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi;var wy=function(e){var t=[],n=String(e).trim();return"M"!==n[0]&&"m"!==n[0]||n.replace(xy,(function(e,n,r){var i=n.toLowerCase(),o=function(e){var t=e.match(Sy);return t?t.map(Number):[]}(r),a=n;if("m"===i&&o.length>2&&(t.push([a].concat(o.splice(0,2))),i="l",a="m"===a?"l":"L"),o.length<by[i])return"";for(t.push([a].concat(o.splice(0,by[i])));o.length>=by[i]&&o.length&&by[i];)t.push([a].concat(o.splice(0,by[i])));return""})),t};function My(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 Ey(e){return function(e){if(Array.isArray(e))return ky(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return ky(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ky(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ky(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Cy=wy;function Ty(e,t){var n=e.x*Math.cos(t)-e.y*Math.sin(t),r=e.y*Math.cos(t)+e.x*Math.sin(t);e.x=n,e.y=r}function Ay(e,t,n){e.x+=t,e.y+=n}function Oy(e,t){e.x*=t,e.y*=t}var Ny=function(e){if(void 0!==e&&e.CanvasRenderingContext2D&&(!e.Path2D||!function(e){var t=e.document.createElement("canvas").getContext("2d"),n=new e.Path2D("M0 0 L1 1");return t.strokeStyle="red",t.lineWidth=1,t.stroke(n),255===t.getImageData(0,0,1,1).data[0]}(e))){var t=function(){function e(t){var n;(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.segments=[],t&&t instanceof e)?(n=this.segments).push.apply(n,Ey(t.segments)):t&&(this.segments=Cy(t))}var t,n,r;return t=e,n=[{key:"addPath",value:function(t){var n;t&&t instanceof e&&(n=this.segments).push.apply(n,Ey(t.segments))}},{key:"moveTo",value:function(e,t){this.segments.push(["M",e,t])}},{key:"lineTo",value:function(e,t){this.segments.push(["L",e,t])}},{key:"arc",value:function(e,t,n,r,i,o){this.segments.push(["AC",e,t,n,r,i,!!o])}},{key:"arcTo",value:function(e,t,n,r,i){this.segments.push(["AT",e,t,n,r,i])}},{key:"ellipse",value:function(e,t,n,r,i,o,a,s){this.segments.push(["E",e,t,n,r,i,o,a,!!s])}},{key:"closePath",value:function(){this.segments.push(["Z"])}},{key:"bezierCurveTo",value:function(e,t,n,r,i,o){this.segments.push(["C",e,t,n,r,i,o])}},{key:"quadraticCurveTo",value:function(e,t,n,r){this.segments.push(["Q",e,t,n,r])}},{key:"rect",value:function(e,t,n,r){this.segments.push(["R",e,t,n,r])}}],n&&My(t.prototype,n),r&&My(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),n=e.CanvasRenderingContext2D.prototype.fill,r=e.CanvasRenderingContext2D.prototype.stroke;e.CanvasRenderingContext2D.prototype.fill=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i="nonzero";0===t.length||1===t.length&&"string"==typeof t[0]?n.apply(this,t):(2===arguments.length&&(i=t[1]),o(this,t[0].segments),n.call(this,i))},e.CanvasRenderingContext2D.prototype.stroke=function(e){e?(o(this,e.segments),r.call(this)):r.call(this)};var i=e.CanvasRenderingContext2D.prototype.isPointInPath;e.CanvasRenderingContext2D.prototype.isPointInPath=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if("Path2D"===t[0].constructor.name){var r=t[1],a=t[2],s=t[3]||"nonzero";return o(this,t[0].segments),i.apply(this,[r,a,s])}return i.apply(this,t)},e.Path2D=t}function o(e,t){var n,r,i,o,a,s,l,c,u,d,f,h,p,m,g,y,v,b,x,S,w,M,E,k,C,T,A={x:0,y:0},O={x:0,y:0};e.beginPath();for(var N=0;N<t.length;++N){var q=t[N];switch("S"!==(S=q[0])&&"s"!==S&&"C"!==S&&"c"!==S&&(M=null,E=null),"T"!==S&&"t"!==S&&"Q"!==S&&"q"!==S&&(k=null,C=null),S){case"m":case"M":"m"===S?(f+=q[1],p+=q[2]):(f=q[1],p=q[2]),"M"!==S&&A||(A={x:f,y:p}),e.moveTo(f,p);break;case"l":f+=q[1],p+=q[2],e.lineTo(f,p);break;case"L":f=q[1],p=q[2],e.lineTo(f,p);break;case"H":f=q[1],e.lineTo(f,p);break;case"h":f+=q[1],e.lineTo(f,p);break;case"V":p=q[1],e.lineTo(f,p);break;case"v":p+=q[1],e.lineTo(f,p);break;case"a":case"A":"a"===S?(f+=q[6],p+=q[7]):(f=q[6],p=q[7]),y=q[1],v=q[2],l=q[3]*Math.PI/180,i=!!q[4],o=!!q[5],a={x:f,y:p},Ty(s={x:(O.x-a.x)/2,y:(O.y-a.y)/2},-l),(c=s.x*s.x/(y*y)+s.y*s.y/(v*v))>1&&(y*=c=Math.sqrt(c),v*=c),u=y*y*v*v,d=y*y*s.y*s.y+v*v*s.x*s.x,Oy(w={x:y*s.y/v,y:-v*s.x/y},o!==i?Math.sqrt((u-d)/d)||0:-Math.sqrt((u-d)/d)||0),r=Math.atan2((s.y-w.y)/v,(s.x-w.x)/y),n=Math.atan2(-(s.y+w.y)/v,-(s.x+w.x)/y),Ty(w,l),Ay(w,(a.x+O.x)/2,(a.y+O.y)/2),e.save(),e.translate(w.x,w.y),e.rotate(l),e.scale(y,v),e.arc(0,0,1,r,n,!o),e.restore();break;case"C":M=q[3],E=q[4],f=q[5],p=q[6],e.bezierCurveTo(q[1],q[2],M,E,f,p);break;case"c":e.bezierCurveTo(q[1]+f,q[2]+p,q[3]+f,q[4]+p,q[5]+f,q[6]+p),M=q[3]+f,E=q[4]+p,f+=q[5],p+=q[6];break;case"S":null!==M&&null!==E||(M=f,E=p),e.bezierCurveTo(2*f-M,2*p-E,q[1],q[2],q[3],q[4]),M=q[1],E=q[2],f=q[3],p=q[4];break;case"s":null!==M&&null!==E||(M=f,E=p),e.bezierCurveTo(2*f-M,2*p-E,q[1]+f,q[2]+p,q[3]+f,q[4]+p),M=q[1]+f,E=q[2]+p,f+=q[3],p+=q[4];break;case"Q":k=q[1],C=q[2],f=q[3],p=q[4],e.quadraticCurveTo(k,C,f,p);break;case"q":k=q[1]+f,C=q[2]+p,f+=q[3],p+=q[4],e.quadraticCurveTo(k,C,f,p);break;case"T":null!==k&&null!==C||(k=f,C=p),k=2*f-k,C=2*p-C,f=q[1],p=q[2],e.quadraticCurveTo(k,C,f,p);break;case"t":null!==k&&null!==C||(k=f,C=p),k=2*f-k,C=2*p-C,f+=q[1],p+=q[2],e.quadraticCurveTo(k,C,f,p);break;case"z":case"Z":f=A.x,p=A.y,A=void 0,e.closePath();break;case"AC":f=q[1],p=q[2],g=q[3],r=q[4],n=q[5],T=q[6],e.arc(f,p,g,r,n,T);break;case"AT":h=q[1],m=q[2],f=q[3],p=q[4],g=q[5],e.arcTo(h,m,f,p,g);break;case"E":f=q[1],p=q[2],y=q[3],v=q[4],l=q[5],r=q[6],n=q[7],T=q[8],e.save(),e.translate(f,p),e.rotate(l),e.scale(y,v),e.arc(0,0,1,r,n,T),e.restore();break;case"R":f=q[1],p=q[2],b=q[3],x=q[4],A={x:f,y:p},e.rect(f,p,b,x)}O.x=f,O.y=p}}},qy=wy,Dy=Ny;"undefined"!=typeof window&&Dy(window);var Ry={path2dPolyfill:Dy,parsePath:qy},Iy=Object.prototype.hasOwnProperty,_y=Object.prototype.toString,Py=Object.defineProperty,Ly=Object.getOwnPropertyDescriptor,zy=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===_y.call(e)},Fy=function(e){if(!e||"[object Object]"!==_y.call(e))return!1;var t,n=Iy.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&Iy.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||Iy.call(e,t)},jy=function(e,t){Py&&"__proto__"===t.name?Py(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},$y=function(e,t){if("__proto__"===t){if(!Iy.call(e,t))return;if(Ly)return Ly(e,t).value}return e[t]},Hy=function e(){var t,n,r,i,o,a,s=arguments[0],l=1,c=arguments.length,u=!1;for("boolean"==typeof s&&(u=s,s=arguments[1]||{},l=2),(null==s||"object"!=typeof s&&"function"!=typeof s)&&(s={});l<c;++l)if(null!=(t=arguments[l]))for(n in t)r=$y(s,n),s!==(i=$y(t,n))&&(u&&i&&(Fy(i)||(o=zy(i)))?(o?(o=!1,a=r&&zy(r)?r:[]):a=r&&Fy(r)?r:{},jy(s,{name:n,newValue:e(u,a,i)})):void 0!==i&&jy(s,{name:n,newValue:i}));return s},By="2.2.7";function Vy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Uy(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vy(Object(n),!0).forEach((function(t){Yy(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vy(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Wy(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function Yy(e,t,n){return(t=Wy(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xy(e){return!!e.changedTouches}function Gy(e){return"number"==typeof e&&!isNaN(e)}function Ky(e){return"number"!=typeof e||isNaN(e)}function Jy(e){const t=e.length;let n=NaN,r=NaN,i=NaN,o=NaN;for(let a=0;a<t;a++)n=isNaN(n)?e[a].x:Math.min(n,e[a].x),r=isNaN(r)?e[a].x:Math.max(r,e[a].x),i=isNaN(i)?e[a].y:Math.min(i,e[a].y),o=isNaN(o)?e[a].y:Math.max(o,e[a].y);return[n,i,r,o]}function Qy(e){return[{x:e.x1||0,y:e.y1||0},{x:e.x2||0,y:e.y2||0}]}function Zy(e){return[{x:e.x,y:e.y},{x:e.x+e.width,y:e.y},{x:e.x+e.width,y:e.y+e.height},{x:e.x,y:e.y+e.height}]}function ev(e){const[t,n,r,i]=Jy(e);return{x:t,y:n,width:r-t,height:i-n}}function tv(e){return{x1:e[0].x,y1:e[0].y,x2:e[1].x,y2:e[1].y}}function nv(e){const{x:t,y:n,width:r,height:i,x1:o,x2:a,y1:s,y2:l,cx:c,cy:u,r:d,vertices:f}=e||{};return Gy(c)&&Gy(u)&&Gy(d)?"circle":Gy(o)&&Gy(a)&&Gy(s)&&Gy(l)?"line":Gy(t)&&Gy(n)&&Gy(r)&&Gy(i)?"rect":Gy(t)&&Gy(n)?"point":Array.isArray(f)?f.every((e=>Array.isArray(e)))?"geopolygon":"polygon":null}function rv(e,t){return{x:t.x-e,y:t.y-e,width:t.width+e,height:t.height+e}}var iv=Math.PI,ov=2*iv,av=1e-6,sv=ov-av;function lv(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function cv(){return new lv}function uv(e){return function(){return e}}lv.prototype=cv.prototype={constructor:lv,moveTo:function(e,t){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(e,t){this._+="L"+(this._x1=+e)+","+(this._y1=+t)},quadraticCurveTo:function(e,t,n,r){this._+="Q"+ +e+","+ +t+","+(this._x1=+n)+","+(this._y1=+r)},bezierCurveTo:function(e,t,n,r,i,o){this._+="C"+ +e+","+ +t+","+ +n+","+ +r+","+(this._x1=+i)+","+(this._y1=+o)},arcTo:function(e,t,n,r,i){e=+e,t=+t,n=+n,r=+r,i=+i;var o=this._x1,a=this._y1,s=n-e,l=r-t,c=o-e,u=a-t,d=c*c+u*u;if(i<0)throw new Error("negative radius: "+i);if(null===this._x1)this._+="M"+(this._x1=e)+","+(this._y1=t);else if(d>av)if(Math.abs(u*s-l*c)>av&&i){var f=n-o,h=r-a,p=s*s+l*l,m=f*f+h*h,g=Math.sqrt(p),y=Math.sqrt(d),v=i*Math.tan((iv-Math.acos((p+d-m)/(2*g*y)))/2),b=v/y,x=v/g;Math.abs(b-1)>av&&(this._+="L"+(e+b*c)+","+(t+b*u)),this._+="A"+i+","+i+",0,0,"+ +(u*f>c*h)+","+(this._x1=e+x*s)+","+(this._y1=t+x*l)}else this._+="L"+(this._x1=e)+","+(this._y1=t);else;},arc:function(e,t,n,r,i,o){e=+e,t=+t,o=!!o;var a=(n=+n)*Math.cos(r),s=n*Math.sin(r),l=e+a,c=t+s,u=1^o,d=o?r-i:i-r;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+l+","+c:(Math.abs(this._x1-l)>av||Math.abs(this._y1-c)>av)&&(this._+="L"+l+","+c),n&&(d<0&&(d=d%ov+ov),d>sv?this._+="A"+n+","+n+",0,1,"+u+","+(e-a)+","+(t-s)+"A"+n+","+n+",0,1,"+u+","+(this._x1=l)+","+(this._y1=c):d>av&&(this._+="A"+n+","+n+",0,"+ +(d>=iv)+","+u+","+(this._x1=e+n*Math.cos(i))+","+(this._y1=t+n*Math.sin(i))))},rect:function(e,t,n,r){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};var dv=Math.abs,fv=Math.atan2,hv=Math.cos,pv=Math.max,mv=Math.min,gv=Math.sin,yv=Math.sqrt,vv=1e-12,bv=Math.PI,xv=bv/2,Sv=2*bv;function wv(e){return e>=1?xv:e<=-1?-xv:Math.asin(e)}function Mv(e){return e.innerRadius}function Ev(e){return e.outerRadius}function kv(e){return e.startAngle}function Cv(e){return e.endAngle}function Tv(e){return e&&e.padAngle}function Av(e,t,n,r,i,o,a){var s=e-n,l=t-r,c=(a?o:-o)/yv(s*s+l*l),u=c*l,d=-c*s,f=e+u,h=t+d,p=n+u,m=r+d,g=(f+p)/2,y=(h+m)/2,v=p-f,b=m-h,x=v*v+b*b,S=i-o,w=f*m-p*h,M=(b<0?-1:1)*yv(pv(0,S*S*x-w*w)),E=(w*b-v*M)/x,k=(-w*v-b*M)/x,C=(w*b+v*M)/x,T=(-w*v+b*M)/x,A=E-g,O=k-y,N=C-g,q=T-y;return A*A+O*O>N*N+q*q&&(E=C,k=T),{cx:E,cy:k,x01:-u,y01:-d,x11:E*(i/S-1),y11:k*(i/S-1)}}function Ov(){var e=Mv,t=Ev,n=uv(0),r=null,i=kv,o=Cv,a=Tv,s=null;function l(){var l,c,u=+e.apply(this,arguments),d=+t.apply(this,arguments),f=i.apply(this,arguments)-xv,h=o.apply(this,arguments)-xv,p=dv(h-f),m=h>f;if(s||(s=l=cv()),d<u&&(c=d,d=u,u=c),d>vv)if(p>Sv-vv)s.moveTo(d*hv(f),d*gv(f)),s.arc(0,0,d,f,h,!m),u>vv&&(s.moveTo(u*hv(h),u*gv(h)),s.arc(0,0,u,h,f,m));else{var g,y,v=f,b=h,x=f,S=h,w=p,M=p,E=a.apply(this,arguments)/2,k=E>vv&&(r?+r.apply(this,arguments):yv(u*u+d*d)),C=mv(dv(d-u)/2,+n.apply(this,arguments)),T=C,A=C;if(k>vv){var O=wv(k/u*gv(E)),N=wv(k/d*gv(E));(w-=2*O)>vv?(x+=O*=m?1:-1,S-=O):(w=0,x=S=(f+h)/2),(M-=2*N)>vv?(v+=N*=m?1:-1,b-=N):(M=0,v=b=(f+h)/2)}var q=d*hv(v),D=d*gv(v),R=u*hv(S),I=u*gv(S);if(C>vv){var _,P=d*hv(b),L=d*gv(b),z=u*hv(x),F=u*gv(x);if(p<bv&&(_=function(e,t,n,r,i,o,a,s){var l=n-e,c=r-t,u=a-i,d=s-o,f=d*l-u*c;if(!(f*f<vv))return[e+(f=(u*(t-o)-d*(e-i))/f)*l,t+f*c]}(q,D,z,F,P,L,R,I))){var j=q-_[0],$=D-_[1],H=P-_[0],B=L-_[1],V=1/gv(function(e){return e>1?0:e<-1?bv:Math.acos(e)}((j*H+$*B)/(yv(j*j+$*$)*yv(H*H+B*B)))/2),U=yv(_[0]*_[0]+_[1]*_[1]);T=mv(C,(u-U)/(V-1)),A=mv(C,(d-U)/(V+1))}}M>vv?A>vv?(g=Av(z,F,q,D,d,A,m),y=Av(P,L,R,I,d,A,m),s.moveTo(g.cx+g.x01,g.cy+g.y01),A<C?s.arc(g.cx,g.cy,A,fv(g.y01,g.x01),fv(y.y01,y.x01),!m):(s.arc(g.cx,g.cy,A,fv(g.y01,g.x01),fv(g.y11,g.x11),!m),s.arc(0,0,d,fv(g.cy+g.y11,g.cx+g.x11),fv(y.cy+y.y11,y.cx+y.x11),!m),s.arc(y.cx,y.cy,A,fv(y.y11,y.x11),fv(y.y01,y.x01),!m))):(s.moveTo(q,D),s.arc(0,0,d,v,b,!m)):s.moveTo(q,D),u>vv&&w>vv?T>vv?(g=Av(R,I,P,L,u,-T,m),y=Av(q,D,z,F,u,-T,m),s.lineTo(g.cx+g.x01,g.cy+g.y01),T<C?s.arc(g.cx,g.cy,T,fv(g.y01,g.x01),fv(y.y01,y.x01),!m):(s.arc(g.cx,g.cy,T,fv(g.y01,g.x01),fv(g.y11,g.x11),!m),s.arc(0,0,u,fv(g.cy+g.y11,g.cx+g.x11),fv(y.cy+y.y11,y.cx+y.x11),m),s.arc(y.cx,y.cy,T,fv(y.y11,y.x11),fv(y.y01,y.x01),!m))):s.arc(0,0,u,S,x,m):s.lineTo(R,I)}else s.moveTo(0,0);if(s.closePath(),l)return s=null,l+""||null}return l.centroid=function(){var n=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,r=(+i.apply(this,arguments)+ +o.apply(this,arguments))/2-bv/2;return[hv(r)*n,gv(r)*n]},l.innerRadius=function(t){return arguments.length?(e="function"==typeof t?t:uv(+t),l):e},l.outerRadius=function(e){return arguments.length?(t="function"==typeof e?e:uv(+e),l):t},l.cornerRadius=function(e){return arguments.length?(n="function"==typeof e?e:uv(+e),l):n},l.padRadius=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:uv(+e),l):r},l.startAngle=function(e){return arguments.length?(i="function"==typeof e?e:uv(+e),l):i},l.endAngle=function(e){return arguments.length?(o="function"==typeof e?e:uv(+e),l):o},l.padAngle=function(e){return arguments.length?(a="function"==typeof e?e:uv(+e),l):a},l.context=function(e){return arguments.length?(s=null==e?null:e,l):s},l}function Nv(e){this._context=e}function qv(e){return new Nv(e)}function Dv(e){return e[0]}function Rv(e){return e[1]}function Iv(){var e=Dv,t=null,n=uv(0),r=Rv,i=uv(!0),o=null,a=qv,s=null;function l(l){var c,u,d,f,h,p=l.length,m=!1,g=new Array(p),y=new Array(p);for(null==o&&(s=a(h=cv())),c=0;c<=p;++c){if(!(c<p&&i(f=l[c],c,l))===m)if(m=!m)u=c,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),d=c-1;d>=u;--d)s.point(g[d],y[d]);s.lineEnd(),s.areaEnd()}m&&(g[c]=+e(f,c,l),y[c]=+n(f,c,l),s.point(t?+t(f,c,l):g[c],r?+r(f,c,l):y[c]))}if(h)return s=null,h+""||null}function c(){return function(){var e=Dv,t=Rv,n=uv(!0),r=null,i=qv,o=null;function a(a){var s,l,c,u=a.length,d=!1;for(null==r&&(o=i(c=cv())),s=0;s<=u;++s)!(s<u&&n(l=a[s],s,a))===d&&((d=!d)?o.lineStart():o.lineEnd()),d&&o.point(+e(l,s,a),+t(l,s,a));if(c)return o=null,c+""||null}return a.x=function(t){return arguments.length?(e="function"==typeof t?t:uv(+t),a):e},a.y=function(e){return arguments.length?(t="function"==typeof e?e:uv(+e),a):t},a.defined=function(e){return arguments.length?(n="function"==typeof e?e:uv(!!e),a):n},a.curve=function(e){return arguments.length?(i=e,null!=r&&(o=i(r)),a):i},a.context=function(e){return arguments.length?(null==e?r=o=null:o=i(r=e),a):r},a}().defined(i).curve(a).context(o)}return l.x=function(n){return arguments.length?(e="function"==typeof n?n:uv(+n),t=null,l):e},l.x0=function(t){return arguments.length?(e="function"==typeof t?t:uv(+t),l):e},l.x1=function(e){return arguments.length?(t=null==e?null:"function"==typeof e?e:uv(+e),l):t},l.y=function(e){return arguments.length?(n="function"==typeof e?e:uv(+e),r=null,l):n},l.y0=function(e){return arguments.length?(n="function"==typeof e?e:uv(+e),l):n},l.y1=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:uv(+e),l):r},l.lineX0=l.lineY0=function(){return c().x(e).y(n)},l.lineY1=function(){return c().x(e).y(r)},l.lineX1=function(){return c().x(t).y(n)},l.defined=function(e){return arguments.length?(i="function"==typeof e?e:uv(!!e),l):i},l.curve=function(e){return arguments.length?(a=e,null!=o&&(s=a(o)),l):a},l.context=function(e){return arguments.length?(null==e?o=s=null:s=a(o=e),l):o},l}function _v(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function Pv(e){return e}Nv.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}};var Lv=Array.prototype.slice;function zv(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function Fv(e){this._context=e}function jv(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function $v(e,t){this._context=e,this._k=(1-t)/6}Fv.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:zv(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:zv(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},$v.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:jv(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:jv(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Hv=function e(t){function n(e){return new $v(e,t)}return n.tension=function(t){return e(+t)},n}(0);function Bv(e,t){this._context=e,this._alpha=t}Bv.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:!function(e,t,n){var r=e._x1,i=e._y1,o=e._x2,a=e._y2;if(e._l01_a>vv){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,l=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/l,i=(i*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/l}if(e._l23_a>vv){var c=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,u=3*e._l23_a*(e._l23_a+e._l12_a);o=(o*c+e._x1*e._l23_2a-t*e._l12_2a)/u,a=(a*c+e._y1*e._l23_2a-n*e._l12_2a)/u}e._context.bezierCurveTo(r,i,o,a,e._x2,e._y2)}(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Vv=function e(t){function n(e){return t?new Bv(e,t):new $v(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function Uv(e){return e<0?-1:1}function Wv(e,t,n){var r=e._x1-e._x0,i=t-e._x1,o=(e._y1-e._y0)/(r||i<0&&-0),a=(n-e._y1)/(i||r<0&&-0),s=(o*i+a*r)/(r+i);return(Uv(o)+Uv(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(s))||0}function Yv(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Xv(e,t,n){var r=e._x0,i=e._y0,o=e._x1,a=e._y1,s=(o-r)/3;e._context.bezierCurveTo(r+s,i+s*t,o-s,a-s*n,o,a)}function Gv(e){this._context=e}function Kv(e){this._context=new Jv(e)}function Jv(e){this._context=e}function Qv(e){this._context=e}function Zv(e){var t,n,r=e.length-1,i=new Array(r),o=new Array(r),a=new Array(r);for(i[0]=0,o[0]=2,a[0]=e[0]+2*e[1],t=1;t<r-1;++t)i[t]=1,o[t]=4,a[t]=4*e[t]+2*e[t+1];for(i[r-1]=2,o[r-1]=7,a[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=i[t]/o[t-1],o[t]-=n,a[t]-=n*a[t-1];for(i[r-1]=a[r-1]/o[r-1],t=r-2;t>=0;--t)i[t]=(a[t]-i[t+1])/o[t];for(o[r-1]=(e[r]+i[r-1])/2,t=0;t<r-1;++t)o[t]=2*e[t+1]-i[t+1];return[i,o]}function eb(e,t){this._context=e,this._t=t}function tb(e,t){if((i=e.length)>1)for(var n,r,i,o=1,a=e[t[0]],s=a.length;o<i;++o)for(r=a,a=e[t[o]],n=0;n<s;++n)a[n][1]+=a[n][0]=isNaN(r[n][1])?r[n][0]:r[n][1]}function nb(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function rb(e,t){return e[t]}function ib(e){for(var t,n=-1,r=0,i=e.length,o=-1/0;++n<i;)(t=+e[n][1])>o&&(o=t,r=n);return r}function ob(e){for(var t,n=0,r=-1,i=e.length;++r<i;)(t=+e[r][1])&&(n+=t);return n}function ab(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"unspecified",r=arguments.length>2?arguments[2]:void 0;const i={},o=e||{get:()=>{},has:()=>!1,default:()=>{}};function a(e,t){if(!e||"string"!=typeof e)throw new TypeError("Invalid argument: key must be a non-empty string");return!(e in i)&&(i[e]=t,!0)}function s(e){return i[e]||o.get(e)}function l(e,i){if(void 0!==i)return a(e,i);const o=s(e);return r&&void 0===o&&r.warn("".concat(e," does not exist in ").concat(n," registry")),o||s(t)}return t=o.default(),l.add=a,l.get=s,l.has=function(e){return!!i[e]||o.has(e)},l.remove=function(e){const t=i[e];return delete i[e],t},l.getKeys=function(){return Object.keys(i)},l.getValues=function(){return Object.keys(i).map((e=>i[e]))},l.default=function(e){return void 0!==e&&(t=e),t},l.register=a,l}function sb(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function lb(e){return(e=sb(Math.abs(e)))?e[1]:NaN}Gv.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Xv(this,this._t0,Yv(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(t=+t,(e=+e)!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Xv(this,Yv(this,n=Wv(this,e,t)),n);break;default:Xv(this,this._t0,n=Wv(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}},(Kv.prototype=Object.create(Gv.prototype)).point=function(e,t){Gv.prototype.point.call(this,t,e)},Jv.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,o){this._context.bezierCurveTo(t,e,r,n,o,i)}},Qv.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),2===n)this._context.lineTo(e[1],t[1]);else for(var r=Zv(e),i=Zv(t),o=0,a=1;a<n;++o,++a)this._context.bezierCurveTo(r[0][o],i[0][o],r[1][o],i[1][o],e[a],t[a]);(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}},eb.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}};var cb,ub=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function db(e){if(!(t=ub.exec(e)))throw new Error("invalid format: "+e);var t;return new fb({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function fb(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function hb(e,t){var n=sb(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}db.prototype=fb.prototype,fb.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var pb={"%":(e,t)=>(100*e).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>hb(100*e,t),r:hb,s:function(e,t){var n=sb(e,t);if(!n)return e+"";var r=n[0],i=n[1],o=i-(cb=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,a=r.length;return o===a?r:o>a?r+new Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+sb(e,Math.max(0,t+o-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function mb(e){return e}var gb,yb,vb,bb=Array.prototype.map,xb=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Sb(e){var t,n,r=void 0===e.grouping||void 0===e.thousands?mb:(t=bb.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var i=e.length,o=[],a=0,s=t[0],l=0;i>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),o.push(e.substring(i-=s,i+s)),!((l+=s+1)>r));)s=t[a=(a+1)%t.length];return o.reverse().join(n)}),i=void 0===e.currency?"":e.currency[0]+"",o=void 0===e.currency?"":e.currency[1]+"",a=void 0===e.decimal?".":e.decimal+"",s=void 0===e.numerals?mb:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(bb.call(e.numerals,String)),l=void 0===e.percent?"%":e.percent+"",c=void 0===e.minus?"−":e.minus+"",u=void 0===e.nan?"NaN":e.nan+"";function d(e){var t=(e=db(e)).fill,n=e.align,d=e.sign,f=e.symbol,h=e.zero,p=e.width,m=e.comma,g=e.precision,y=e.trim,v=e.type;"n"===v?(m=!0,v="g"):pb[v]||(void 0===g&&(g=12),y=!0,v="g"),(h||"0"===t&&"="===n)&&(h=!0,t="0",n="=");var b="$"===f?i:"#"===f&&/[boxX]/.test(v)?"0"+v.toLowerCase():"",x="$"===f?o:/[%p]/.test(v)?l:"",S=pb[v],w=/[defgprs%]/.test(v);function M(e){var i,o,l,f=b,M=x;if("c"===v)M=S(e)+M,e="";else{var E=(e=+e)<0||1/e<0;if(e=isNaN(e)?u:S(Math.abs(e),g),y&&(e=function(e){e:for(var t,n=e.length,r=1,i=-1;r<n;++r)switch(e[r]){case".":i=t=r;break;case"0":0===i&&(i=r),t=r;break;default:if(!+e[r])break e;i>0&&(i=0)}return i>0?e.slice(0,i)+e.slice(t+1):e}(e)),E&&0==+e&&"+"!==d&&(E=!1),f=(E?"("===d?d:c:"-"===d||"("===d?"":d)+f,M=("s"===v?xb[8+cb/3]:"")+M+(E&&"("===d?")":""),w)for(i=-1,o=e.length;++i<o;)if(48>(l=e.charCodeAt(i))||l>57){M=(46===l?a+e.slice(i+1):e.slice(i))+M,e=e.slice(0,i);break}}m&&!h&&(e=r(e,1/0));var k=f.length+e.length+M.length,C=k<p?new Array(p-k+1).join(t):"";switch(m&&h&&(e=r(C+e,C.length?p-M.length:1/0),C=""),n){case"<":e=f+e+M+C;break;case"=":e=f+C+e+M;break;case"^":e=C.slice(0,k=C.length>>1)+f+e+M+C.slice(k);break;default:e=C+f+e+M}return s(e)}return g=void 0===g?6:/[gprs]/.test(v)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g)),M.toString=function(){return e+""},M}return{format:d,formatPrefix:function(e,t){var n=d(((e=db(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(lb(t)/3))),i=Math.pow(10,-r),o=xb[8+r/3];return function(e){return n(i*e)+o}}}}!function(e){gb=Sb(e),yb=gb.format,vb=gb.formatPrefix}({thousands:",",grouping:[3],currency:["$",""]});const wb=new Date,Mb=new Date;function Eb(e,t,n,r){function i(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return i.floor=t=>(e(t=new Date(+t)),t),i.ceil=n=>(e(n=new Date(n-1)),t(n,1),e(n),n),i.round=e=>{const t=i(e),n=i.ceil(e);return e-t<n-e?t:n},i.offset=(e,n)=>(t(e=new Date(+e),null==n?1:Math.floor(n)),e),i.range=(n,r,o)=>{const a=[];if(n=i.ceil(n),o=null==o?1:Math.floor(o),!(n<r&&o>0))return a;let s;do{a.push(s=new Date(+n)),t(n,o),e(n)}while(s<n&&n<r);return a},i.filter=n=>Eb((t=>{if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)}),((e,r)=>{if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););})),n&&(i.count=(t,r)=>(wb.setTime(+t),Mb.setTime(+r),e(wb),e(Mb),Math.floor(n(wb,Mb))),i.every=e=>(e=Math.floor(e),isFinite(e)&&e>0?e>1?i.filter(r?t=>r(t)%e==0:t=>i.count(0,t)%e==0):i:null)),i}const kb=6e4,Cb=864e5,Tb=6048e5,Ab=Eb((e=>e.setHours(0,0,0,0)),((e,t)=>e.setDate(e.getDate()+t)),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*kb)/Cb),(e=>e.getDate()-1));Ab.range;const Ob=Eb((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/Cb),(e=>e.getUTCDate()-1));Ob.range;const Nb=Eb((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/Cb),(e=>Math.floor(e/Cb)));function qb(e){return Eb((t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)}),((e,t)=>{e.setDate(e.getDate()+7*t)}),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*kb)/Tb))}Nb.range;const Db=qb(0),Rb=qb(1),Ib=qb(2),_b=qb(3),Pb=qb(4),Lb=qb(5),zb=qb(6);function Fb(e){return Eb((t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+7*t)}),((e,t)=>(t-e)/Tb))}Db.range,Rb.range,Ib.range,_b.range,Pb.range,Lb.range,zb.range;const jb=Fb(0),$b=Fb(1),Hb=Fb(2),Bb=Fb(3),Vb=Fb(4),Ub=Fb(5),Wb=Fb(6);jb.range,$b.range,Hb.range,Bb.range,Vb.range,Ub.range,Wb.range;const Yb=Eb((e=>{e.setMonth(0,1),e.setHours(0,0,0,0)}),((e,t)=>{e.setFullYear(e.getFullYear()+t)}),((e,t)=>t.getFullYear()-e.getFullYear()),(e=>e.getFullYear()));Yb.every=e=>isFinite(e=Math.floor(e))&&e>0?Eb((t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),((t,n)=>{t.setFullYear(t.getFullYear()+n*e)})):null,Yb.range;const Xb=Eb((e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)}),((e,t)=>t.getUTCFullYear()-e.getUTCFullYear()),(e=>e.getUTCFullYear()));function Gb(e,t){return null==e||null==t?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function Kb(e,t){return null==e||null==t?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Jb(e){let t,n,r;function i(e,r,i=0,o=e.length){if(i<o){if(0!==t(r,r))return o;do{const t=i+o>>>1;n(e[t],r)<0?i=t+1:o=t}while(i<o)}return i}return 2!==e.length?(t=Gb,n=(t,n)=>Gb(e(t),n),r=(t,n)=>e(t)-n):(t=e===Gb||e===Kb?e:Qb,n=e,r=e),{left:i,center:function(e,t,n=0,o=e.length){const a=i(e,t,n,o-1);return a>n&&r(e[a-1],t)>-r(e[a],t)?a-1:a},right:function(e,r,i=0,o=e.length){if(i<o){if(0!==t(r,r))return o;do{const t=i+o>>>1;n(e[t],r)<=0?i=t+1:o=t}while(i<o)}return i}}}function Qb(){return 0}Xb.every=e=>isFinite(e=Math.floor(e))&&e>0?Eb((t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),((t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)})):null,Xb.range;const Zb=Jb(Gb).right;Jb((function(e){return null===e?NaN:+e})).center;var ex=Zb;class tx extends Map{constructor(e,t=rx){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(const[t,n]of e)this.set(t,n)}get(e){return super.get(nx(this,e))}has(e){return super.has(nx(this,e))}set(e,t){return super.set(function({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}(this,e),t)}delete(e){return super.delete(function({_intern:e,_key:t},n){const r=t(n);e.has(r)&&(n=e.get(r),e.delete(r));return n}(this,e))}}function nx({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function rx(e){return null!==e&&"object"==typeof e?e.valueOf():e}const ix=Math.sqrt(50),ox=Math.sqrt(10),ax=Math.sqrt(2);function sx(e,t,n){const r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),o=r/Math.pow(10,i),a=o>=ix?10:o>=ox?5:o>=ax?2:1;let s,l,c;return i<0?(c=Math.pow(10,-i)/a,s=Math.round(e*c),l=Math.round(t*c),s/c<e&&++s,l/c>t&&--l,c=-c):(c=Math.pow(10,i)*a,s=Math.round(e/c),l=Math.round(t/c),s*c<e&&++s,l*c>t&&--l),l<s&&.5<=n&&n<2?sx(e,t,2*n):[s,l,c]}function lx(e,t,n){return sx(e=+e,t=+t,n=+n)[2]}function cx(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function ux(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function dx(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function fx(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,o=e.days,a=e.shortDays,s=e.months,l=e.shortMonths,c=bx(i),u=xx(i),d=bx(o),f=xx(o),h=bx(a),p=xx(a),m=bx(s),g=xx(s),y=bx(l),v=xx(l),b={a:function(e){return a[e.getDay()]},A:function(e){return o[e.getDay()]},b:function(e){return l[e.getMonth()]},B:function(e){return s[e.getMonth()]},c:null,d:$x,e:$x,f:Wx,g:rS,G:oS,H:Hx,I:Bx,j:Vx,L:Ux,m:Yx,M:Xx,p:function(e){return i[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:AS,s:OS,S:Gx,u:Kx,U:Jx,V:Zx,w:eS,W:tS,x:null,X:null,y:nS,Y:iS,Z:aS,"%":TS},x={a:function(e){return a[e.getUTCDay()]},A:function(e){return o[e.getUTCDay()]},b:function(e){return l[e.getUTCMonth()]},B:function(e){return s[e.getUTCMonth()]},c:null,d:sS,e:sS,f:fS,g:MS,G:kS,H:lS,I:cS,j:uS,L:dS,m:hS,M:pS,p:function(e){return i[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:AS,s:OS,S:mS,u:gS,U:yS,V:bS,w:xS,W:SS,x:null,X:null,y:wS,Y:ES,Z:CS,"%":TS},S={a:function(e,t,n){var r=h.exec(t.slice(n));return r?(e.w=p.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(e,t,n){var r=d.exec(t.slice(n));return r?(e.w=f.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(e,t,n){var r=y.exec(t.slice(n));return r?(e.m=v.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(e,t,n){var r=m.exec(t.slice(n));return r?(e.m=g.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(e,n,r){return E(e,t,n,r)},d:qx,e:qx,f:Lx,g:Tx,G:Cx,H:Rx,I:Rx,j:Dx,L:Px,m:Nx,M:Ix,p:function(e,t,n){var r=c.exec(t.slice(n));return r?(e.p=u.get(r[0].toLowerCase()),n+r[0].length):-1},q:Ox,Q:Fx,s:jx,S:_x,u:wx,U:Mx,V:Ex,w:Sx,W:kx,x:function(e,t,r){return E(e,n,t,r)},X:function(e,t,n){return E(e,r,t,n)},y:Tx,Y:Cx,Z:Ax,"%":zx};function w(e,t){return function(n){var r,i,o,a=[],s=-1,l=0,c=e.length;for(n instanceof Date||(n=new Date(+n));++s<c;)37===e.charCodeAt(s)&&(a.push(e.slice(l,s)),null!=(i=hx[r=e.charAt(++s)])?r=e.charAt(++s):i="e"===r?" ":"0",(o=t[r])&&(r=o(n,i)),a.push(r),l=s+1);return a.push(e.slice(l,s)),a.join("")}}function M(e,t){return function(n){var r,i,o=dx(1900,void 0,1);if(E(o,e,n+="",0)!=n.length)return null;if("Q"in o)return new Date(o.Q);if("s"in o)return new Date(1e3*o.s+("L"in o?o.L:0));if(t&&!("Z"in o)&&(o.Z=0),"p"in o&&(o.H=o.H%12+12*o.p),void 0===o.m&&(o.m="q"in o?o.q:0),"V"in o){if(o.V<1||o.V>53)return null;"w"in o||(o.w=1),"Z"in o?(i=(r=ux(dx(o.y,0,1))).getUTCDay(),r=i>4||0===i?$b.ceil(r):$b(r),r=Ob.offset(r,7*(o.V-1)),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(i=(r=cx(dx(o.y,0,1))).getDay(),r=i>4||0===i?Rb.ceil(r):Rb(r),r=Ab.offset(r,7*(o.V-1)),o.y=r.getFullYear(),o.m=r.getMonth(),o.d=r.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),i="Z"in o?ux(dx(o.y,0,1)).getUTCDay():cx(dx(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,ux(o)):cx(o)}}function E(e,t,n,r){for(var i,o,a=0,s=t.length,l=n.length;a<s;){if(r>=l)return-1;if(37===(i=t.charCodeAt(a++))){if(i=t.charAt(a++),!(o=S[i in hx?t.charAt(a++):i])||(r=o(e,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return b.x=w(n,b),b.X=w(r,b),b.c=w(t,b),x.x=w(n,x),x.X=w(r,x),x.c=w(t,x),{format:function(e){var t=w(e+="",b);return t.toString=function(){return e},t},parse:function(e){var t=M(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=w(e+="",x);return t.toString=function(){return e},t},utcParse:function(e){var t=M(e+="",!0);return t.toString=function(){return e},t}}}var hx={"-":"",_:" ",0:"0"},px=/^\s*\d+/,mx=/^%/,gx=/[\\^$*+?|[\]().{}]/g;function yx(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",o=i.length;return r+(o<n?new Array(n-o+1).join(t)+i:i)}function vx(e){return e.replace(gx,"\\$&")}function bx(e){return new RegExp("^(?:"+e.map(vx).join("|")+")","i")}function xx(e){return new Map(e.map(((e,t)=>[e.toLowerCase(),t])))}function Sx(e,t,n){var r=px.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function wx(e,t,n){var r=px.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function Mx(e,t,n){var r=px.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function Ex(e,t,n){var r=px.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function kx(e,t,n){var r=px.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function Cx(e,t,n){var r=px.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function Tx(e,t,n){var r=px.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Ax(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Ox(e,t,n){var r=px.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function Nx(e,t,n){var r=px.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function qx(e,t,n){var r=px.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function Dx(e,t,n){var r=px.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function Rx(e,t,n){var r=px.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Ix(e,t,n){var r=px.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function _x(e,t,n){var r=px.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function Px(e,t,n){var r=px.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Lx(e,t,n){var r=px.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function zx(e,t,n){var r=mx.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Fx(e,t,n){var r=px.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function jx(e,t,n){var r=px.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function $x(e,t){return yx(e.getDate(),t,2)}function Hx(e,t){return yx(e.getHours(),t,2)}function Bx(e,t){return yx(e.getHours()%12||12,t,2)}function Vx(e,t){return yx(1+Ab.count(Yb(e),e),t,3)}function Ux(e,t){return yx(e.getMilliseconds(),t,3)}function Wx(e,t){return Ux(e,t)+"000"}function Yx(e,t){return yx(e.getMonth()+1,t,2)}function Xx(e,t){return yx(e.getMinutes(),t,2)}function Gx(e,t){return yx(e.getSeconds(),t,2)}function Kx(e){var t=e.getDay();return 0===t?7:t}function Jx(e,t){return yx(Db.count(Yb(e)-1,e),t,2)}function Qx(e){var t=e.getDay();return t>=4||0===t?Pb(e):Pb.ceil(e)}function Zx(e,t){return e=Qx(e),yx(Pb.count(Yb(e),e)+(4===Yb(e).getDay()),t,2)}function eS(e){return e.getDay()}function tS(e,t){return yx(Rb.count(Yb(e)-1,e),t,2)}function nS(e,t){return yx(e.getFullYear()%100,t,2)}function rS(e,t){return yx((e=Qx(e)).getFullYear()%100,t,2)}function iS(e,t){return yx(e.getFullYear()%1e4,t,4)}function oS(e,t){var n=e.getDay();return yx((e=n>=4||0===n?Pb(e):Pb.ceil(e)).getFullYear()%1e4,t,4)}function aS(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+yx(t/60|0,"0",2)+yx(t%60,"0",2)}function sS(e,t){return yx(e.getUTCDate(),t,2)}function lS(e,t){return yx(e.getUTCHours(),t,2)}function cS(e,t){return yx(e.getUTCHours()%12||12,t,2)}function uS(e,t){return yx(1+Ob.count(Xb(e),e),t,3)}function dS(e,t){return yx(e.getUTCMilliseconds(),t,3)}function fS(e,t){return dS(e,t)+"000"}function hS(e,t){return yx(e.getUTCMonth()+1,t,2)}function pS(e,t){return yx(e.getUTCMinutes(),t,2)}function mS(e,t){return yx(e.getUTCSeconds(),t,2)}function gS(e){var t=e.getUTCDay();return 0===t?7:t}function yS(e,t){return yx(jb.count(Xb(e)-1,e),t,2)}function vS(e){var t=e.getUTCDay();return t>=4||0===t?Vb(e):Vb.ceil(e)}function bS(e,t){return e=vS(e),yx(Vb.count(Xb(e),e)+(4===Xb(e).getUTCDay()),t,2)}function xS(e){return e.getUTCDay()}function SS(e,t){return yx($b.count(Xb(e)-1,e),t,2)}function wS(e,t){return yx(e.getUTCFullYear()%100,t,2)}function MS(e,t){return yx((e=vS(e)).getUTCFullYear()%100,t,2)}function ES(e,t){return yx(e.getUTCFullYear()%1e4,t,4)}function kS(e,t){var n=e.getUTCDay();return yx((e=n>=4||0===n?Vb(e):Vb.ceil(e)).getUTCFullYear()%1e4,t,4)}function CS(){return"+0000"}function TS(){return"%"}function AS(e){return+e}function OS(e){return Math.floor(+e/1e3)}const NS=ab();NS("d3-number",(function(e,t,n){let r,i;function o(e){return i(e)}function a(){o.locale({decimal:n||".",thousands:t||",",grouping:[3],currency:["$",""]})}return o.locale=function(t){return r=Sb(t),i=r.format(e),this},a(),o.format=function(e,i,o,s){return(o||s)&&(t=o,n=s,a()),r.format(e)(i)},o.pattern=function(t){return t&&(e=t,i=r.format(t)),e},o})),NS("d3-time",(function(e){let t=fx({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}),n=t.format(e);function r(e){return n(e)}return r.format=function(e,n){return t.format(e)(n)},r.locale=function(){return t=fx(...arguments),n=t.format(e),this},r.parse=function(e,n){return t.parse(e)(n)},r.parsePattern=function(e){return t.parse(e)},r}));const qS={id:e=>"".concat(e.source,"/").concat(e.key||e.title),key:e=>String(e.key||e.title),tags:e=>e.tags,min:e=>e.min,max:e=>e.max,type:e=>e.type,title:e=>String(e.title),values:e=>e.values,value:e=>e,label:e=>e,formatter:e=>(e=>{if("function"==typeof e.formatter)return e.formatter();const t=e.formatter||{};return NS(t.type||"d3-number")(t.format||"")})(e)};function DS(e){let{id:t=qS.id,key:n=qS.key,min:r=qS.min,max:i=qS.max,type:o=qS.type,tags:a=qS.tags,title:s=qS.title,values:l=qS.values,value:c=qS.value,label:u=qS.label,formatter:d=qS.formatter}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{id:()=>t(e),key:()=>n(e),raw:()=>e,tags:()=>a(e),type:()=>o(e),min:()=>r(e),max:()=>i(e),title:()=>s(e),items:()=>l(e),formatter:()=>d(e),value:c,label:u}}const RS=e=>e.filter((e=>"number"==typeof e&&!isNaN(e))),IS=e=>e.reduce(((e,t)=>e+t),0),_S={first:e=>e[0],last:e=>e[e.length-1],min:e=>{const t=RS(e);return t.length?Math.min.apply(null,t):NaN},max:e=>{const t=RS(e);return t.length?Math.max.apply(null,t):NaN},sum:e=>{const t=RS(e);return t.length?t.reduce(((e,t)=>e+t),0):NaN},avg:e=>{const t=RS(e),n=t.length;return n?IS(t)/n:NaN}};function PS(e,t,n,r){const i={},o=r.field||(void 0!==e.field?t.field(e.field):null);return Object.keys(n).forEach((a=>{const s=n[a],l=i[a]={};-1!==["number","string","boolean"].indexOf(typeof s)?(l.type="primitive",l.value=s):"function"==typeof s?(l.type="function",l.value=s,l.label=s,l.field=o):"object"==typeof s&&(s.fields?l.fields=s.fields.map((n=>PS(e,t,{main:n},r).main)):void 0!==s.field?(l.type="field",l.field=t.field(s.field),l.value=l.field.value,l.label=l.field.label):o&&(l.value=o.value,l.label=o.label,l.field=o),"function"==typeof s.filter&&(l.filter=s.filter),void 0!==s.value&&(l.value=s.value),void 0!==s.label&&(l.label=s.label),"function"==typeof s.reduce?l.reduce=s.reduce:s.reduce?l.reduce=_S[s.reduce]:l.field&&l.field.reduce&&(l.reduce="string"==typeof l.field.reduce?_S[l.field.reduce]:l.field.reduce),"function"==typeof s.reduceLabel?l.reduceLabel=s.reduceLabel:s.reduceLabel?l.reduceLabel=_S[s.reduceLabel]:l.field&&l.field.reduceLabel&&(l.reduceLabel="string"==typeof l.field.reduceLabel?_S[l.field.reduceLabel]:l.field.reduceLabel))})),i}function LS(e,t){const{main:n}=PS(e,t,{main:{value:e.value,label:e.label,reduce:e.reduce,filter:e.filter}},{});return{props:PS(e,t,e.props||{},n),main:n}}function zS(e,t,n,r){const i=Array(e.length),o=Array(e.length);let a;for(let t=0;t<e.length;t++)a=r?e[t][r]:e[t],i[t]=a.value,o[t]=a.label;const s=t.reduce,l=t.reduceLabel,c=s?s(i):i,u={value:c,label:l?l(o,c):n?n(c):String(c)};return r&&e[0][r].source?(u.source=e[0][r].source,u):!r&&e[0].source?(u.source=e[0].source,u):u}function FS(e,t){let{main:n,propsArr:r,props:i}=t,o=[];const a=n.field.formatter(),s={};return r.forEach((e=>{s[e]=i[e].field?i[e].field.formatter():e=>e})),o.push(...e.map((e=>{const t=zS(e.items,n,a);return r.forEach((n=>{t[n]=zS(e.items,i[n],s[n],n)})),t}))),o}function jS(e){let{cfg:t,itemData:n,obj:r,target:i,tracker:o,trackType:a}=e;const s="function"===a?t.trackBy(n):n[t.trackBy];let l=o[s];l||(l=o[s]={items:[],id:s},i.push(l)),l.items.push(r)}const $S=1e4;function HS(e){if(e.length<$S)return Math.max(...e);let t=-1/0;const n=e.length;for(let r=0;r<n;r++)t<e[r]&&(t=e[r]);return t}function BS(e){if(e.length<$S)return Math.min(...e);let t=1/0;const n=e.length;for(let r=0;r<n;r++)t>e[r]&&(t=e[r]);return t}const VS={diverging:function(e,t){if((s=e.length)>0)for(var n,r,i,o,a,s,l=0,c=e[t[0]].length;l<c;++l)for(o=a=0,n=0;n<s;++n)(i=(r=e[t[n]][l])[1]-r[0])>=0?(r[0]=o,r[1]=o+=i):i<0?(r[1]=a,r[0]=a+=i):r[0]=o},none:tb,silhouette:function(e,t){if((n=e.length)>0){for(var n,r=0,i=e[t[0]],o=i.length;r<o;++r){for(var a=0,s=0;a<n;++a)s+=e[a][r][1]||0;i[r][1]+=i[r][0]=-s/2}tb(e,t)}},expand:function(e,t){if((r=e.length)>0){for(var n,r,i,o=0,a=e[0].length;o<a;++o){for(i=n=0;n<r;++n)i+=e[n][o][1]||0;if(i)for(n=0;n<r;++n)e[n][o][1]/=i}tb(e,t)}},wiggle:function(e,t){if((i=e.length)>0&&(r=(n=e[t[0]]).length)>0){for(var n,r,i,o=0,a=1;a<r;++a){for(var s=0,l=0,c=0;s<i;++s){for(var u=e[t[s]],d=u[a][1]||0,f=(d-(u[a-1][1]||0))/2,h=0;h<s;++h){var p=e[t[h]];f+=(p[a][1]||0)-(p[a-1][1]||0)}l+=d,c+=f*d}n[a-1][1]+=n[a-1][0]=o,l&&(o-=c/l)}n[a-1][1]+=n[a-1][0]=o,tb(e,t)}}},US={ascending:function(e){var t=e.map(ob);return nb(e).sort((function(e,n){return t[e]-t[n]}))},insideout:function(e){var t,n,r=e.length,i=e.map(ob),o=function(e){var t=e.map(ib);return nb(e).sort((function(e,n){return t[e]-t[n]}))}(e),a=0,s=0,l=[],c=[];for(t=0;t<r;++t)n=o[t],a<s?(a+=i[n],l.push(n)):(s+=i[n],c.push(n));return c.reverse().concat(l)},none:nb,reverse:function(e){return nb(e).reverse()}};function WS(e,t,n){const r={},i=t.stackKey,o=t.value,a=t.startProp||"start",s=t.endProp||"end",l=t.offset||"none",c=t.order||"none",u=t.valueRef||"";let d=0,f={};for(let t=0;t<e.items.length;t++){let n=e.items[t],o=u?n[u]:null;if(o&&o.source){let e="".concat(o.source.key||"","/").concat(o.source.field);f[e]||(f[e]=o.source)}let a=i(n);r[a]=r[a]||{items:[]},r[a].items.push(n),d=Math.max(d,r[a].items.length)}const h=Array.apply(null,{length:d}).map(Number.call,Number),p=Object.keys(r).map((e=>r[e].items)),m=function(){var e=uv([]),t=nb,n=tb,r=rb;function i(i){var o,a,s=e.apply(this,arguments),l=i.length,c=s.length,u=new Array(c);for(o=0;o<c;++o){for(var d,f=s[o],h=u[o]=new Array(l),p=0;p<l;++p)h[p]=d=[0,+r(i[p],f,p,i)],d.data=i[p];h.key=f}for(o=0,a=t(u);o<c;++o)u[a[o]].index=o;return n(u,a),u}return i.keys=function(t){return arguments.length?(e="function"==typeof t?t:uv(Lv.call(t)),i):e},i.value=function(e){return arguments.length?(r="function"==typeof e?e:uv(+e),i):r},i.order=function(e){return arguments.length?(t=null==e?nb:"function"==typeof e?e:uv(Lv.call(e)),i):t},i.offset=function(e){return arguments.length?(n=null==e?tb:e,i):n},i}().keys(h).value(((e,t)=>e[t]?o(e[t]):0)).order(US[c]).offset(VS[l]);let g=m(p),y=[];for(let e=0;e<g.length;e++){let t=g[e];for(let e=0;e<t.length;e++){let n=t[e],r=t[e].data[t.key];r&&(r[a]={value:n[0]},r[s]={value:n[1]},y.push(n[0],n[1]))}}let v=Object.keys(f).map((e=>{let t=n(f[e].key);return t?t.field(f[e].field):null})).filter((e=>!!e));const b=DS({title:v.map((e=>e.title())).join(", "),min:BS(y),max:HS(y),type:"measure",formatter:v[0]?v[0].formatter:void 0});e.fields.push(b)}function YS(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={};const r=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).logger;if(Array.isArray(e))n.items=e.map((e=>({value:e,label:String(e)})));else if(e){if("collection"in e)n=Uy({},t.collection(e.collection));else{const i=t.dataset?t.dataset(e.source):null;let o=e.value||(e=>e),a=e.label||(e=>e);if(e.groupBy||e.mapTo)r.warn('Deprecated "data" configuration',e),n.items=[];else if(e.hierarchy)n.root=i.hierarchy?i.hierarchy(e.hierarchy):null,n.fields=i.fields();else if(e.items)n.items=e.items.map((e=>({value:o(e),label:String(a(e))})));else if(e.extract){const r=Array.isArray(e.extract)?e.extract:[e.extract];n.items=[];const o=[];r.forEach((e=>{const r=e.source?t.dataset(e.source):i;r&&(n.items=[...n.items,...r.extract(e)],void 0!==e.field&&o.push(r.field(e.field)))})),o.length&&(n.fields=o),e.amend&&Array.isArray(e.amend)&&(n.items=[...n.items,...e.amend])}else if(void 0!==e.field&&i){const t=i.field(e.field);t&&(n.fields||(n.fields=[]),n.fields.push(t),"value"in e||(o=t.value||(e=>e),a=t.label||(e=>e),n.value=o),n.items=t.items().map((t=>({value:o(t),label:String(a(t)),source:{field:e.field}}))))}else e.fields&&e.fields.forEach((e=>{const r="object"==typeof e&&e.source?t.dataset(e.source):i;if(!r)return;let o;o="object"==typeof e&&void 0!==e.field?r.field(e.field):r.field(e),o&&(n.fields||(n.fields=[]),n.fields.push(o))}));n.items&&e.map&&(n.items=n.items.map(e.map))}e&&e.stack&&WS(n,e.stack,t.dataset)}return e&&!Array.isArray(e)&&"function"==typeof e.filter&&n.items&&(n.items=n.items.filter(e.filter)),e&&!Array.isArray(e)&&"function"==typeof e.sort&&n.items&&(n.items=n.items.sort(e.sort)),n}function XS(e,t,n){let r,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:YS;if(e.data){const r=i(e.data,t,n);if(r&&r.fields&&r.fields[0])return r.fields[0].formatter()}if(r=e.formatter?"".concat(e.formatter,"-").concat(e.type||"number"):e.type||"d3-number",n.formatter.has(r)){return n.formatter.get(r)(e.format||"")}throw new Error("Formatter of type '".concat(r,"' was not found"))}function GS(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}const KS=Symbol("implicit");function JS(){var e=new tx,t=[],n=[],r=KS;function i(i){let o=e.get(i);if(void 0===o){if(r!==KS)return r;e.set(i,o=t.push(i)-1)}return n[o%n.length]}return i.domain=function(n){if(!arguments.length)return t.slice();t=[],e=new tx;for(const r of n)e.has(r)||e.set(r,t.push(r)-1);return i},i.range=function(e){return arguments.length?(n=Array.from(e),i):n.slice()},i.unknown=function(e){return arguments.length?(r=e,i):r},i.copy=function(){return JS(t,n).unknown(r)},GS.apply(i,arguments),i}function QS(){var e,t,n=JS().unknown(void 0),r=n.domain,i=n.range,o=0,a=1,s=!1,l=0,c=0,u=.5;function d(){var n=r().length,d=a<o,f=d?a:o,h=d?o:a;e=(h-f)/Math.max(1,n-l+2*c),s&&(e=Math.floor(e)),f+=(h-f-e*(n-l))*u,t=e*(1-l),s&&(f=Math.round(f),t=Math.round(t));var p=function(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=0|Math.max(0,Math.ceil((t-e)/n)),o=new Array(i);++r<i;)o[r]=e+r*n;return o}(n).map((function(t){return f+e*t}));return i(d?p.reverse():p)}return delete n.unknown,n.domain=function(e){return arguments.length?(r(e),d()):r()},n.range=function(e){return arguments.length?([o,a]=e,o=+o,a=+a,d()):[o,a]},n.rangeRound=function(e){return[o,a]=e,o=+o,a=+a,s=!0,d()},n.bandwidth=function(){return t},n.step=function(){return e},n.round=function(e){return arguments.length?(s=!!e,d()):s},n.padding=function(e){return arguments.length?(l=Math.min(1,c=+e),d()):l},n.paddingInner=function(e){return arguments.length?(l=Math.min(1,e),d()):l},n.paddingOuter=function(e){return arguments.length?(c=+e,d()):c},n.align=function(e){return arguments.length?(u=Math.max(0,Math.min(1,e)),d()):u},n.copy=function(){return QS(r(),[o,a]).round(s).paddingInner(l).paddingOuter(c).align(u)},GS.apply(d(),arguments)}function ZS(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function ew(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function tw(){}var nw=.7,rw=1/nw,iw="\\s*([+-]?\\d+)\\s*",ow="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",aw="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",sw=/^#([0-9a-f]{3,8})$/,lw=new RegExp(`^rgb\\(${iw},${iw},${iw}\\)$`),cw=new RegExp(`^rgb\\(${aw},${aw},${aw}\\)$`),uw=new RegExp(`^rgba\\(${iw},${iw},${iw},${ow}\\)$`),dw=new RegExp(`^rgba\\(${aw},${aw},${aw},${ow}\\)$`),fw=new RegExp(`^hsl\\(${ow},${aw},${aw}\\)$`),hw=new RegExp(`^hsla\\(${ow},${aw},${aw},${ow}\\)$`),pw={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function mw(){return this.rgb().formatHex()}function gw(){return this.rgb().formatRgb()}function yw(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=sw.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?vw(t):3===n?new Sw(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?bw(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?bw(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=lw.exec(e))?new Sw(t[1],t[2],t[3],1):(t=cw.exec(e))?new Sw(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=uw.exec(e))?bw(t[1],t[2],t[3],t[4]):(t=dw.exec(e))?bw(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=fw.exec(e))?Tw(t[1],t[2]/100,t[3]/100,1):(t=hw.exec(e))?Tw(t[1],t[2]/100,t[3]/100,t[4]):pw.hasOwnProperty(e)?vw(pw[e]):"transparent"===e?new Sw(NaN,NaN,NaN,0):null}function vw(e){return new Sw(e>>16&255,e>>8&255,255&e,1)}function bw(e,t,n,r){return r<=0&&(e=t=n=NaN),new Sw(e,t,n,r)}function xw(e,t,n,r){return 1===arguments.length?function(e){return e instanceof tw||(e=yw(e)),e?new Sw((e=e.rgb()).r,e.g,e.b,e.opacity):new Sw}(e):new Sw(e,t,n,null==r?1:r)}function Sw(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function ww(){return`#${Cw(this.r)}${Cw(this.g)}${Cw(this.b)}`}function Mw(){const e=Ew(this.opacity);return`${1===e?"rgb(":"rgba("}${kw(this.r)}, ${kw(this.g)}, ${kw(this.b)}${1===e?")":`, ${e})`}`}function Ew(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function kw(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Cw(e){return((e=kw(e))<16?"0":"")+e.toString(16)}function Tw(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Ow(e,t,n,r)}function Aw(e){if(e instanceof Ow)return new Ow(e.h,e.s,e.l,e.opacity);if(e instanceof tw||(e=yw(e)),!e)return new Ow;if(e instanceof Ow)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,s=o-i,l=(o+i)/2;return s?(a=t===o?(n-r)/s+6*(n<r):n===o?(r-t)/s+2:(t-n)/s+4,s/=l<.5?o+i:2-o-i,a*=60):s=l>0&&l<1?0:a,new Ow(a,s,l,e.opacity)}function Ow(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Nw(e){return(e=(e||0)%360)<0?e+360:e}function qw(e){return Math.max(0,Math.min(1,e||0))}function Dw(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}ZS(tw,yw,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:mw,formatHex:mw,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Aw(this).formatHsl()},formatRgb:gw,toString:gw}),ZS(Sw,xw,ew(tw,{brighter(e){return e=null==e?rw:Math.pow(rw,e),new Sw(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?nw:Math.pow(nw,e),new Sw(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Sw(kw(this.r),kw(this.g),kw(this.b),Ew(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:ww,formatHex:ww,formatHex8:function(){return`#${Cw(this.r)}${Cw(this.g)}${Cw(this.b)}${Cw(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Mw,toString:Mw})),ZS(Ow,(function(e,t,n,r){return 1===arguments.length?Aw(e):new Ow(e,t,n,null==r?1:r)}),ew(tw,{brighter(e){return e=null==e?rw:Math.pow(rw,e),new Ow(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?nw:Math.pow(nw,e),new Ow(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new Sw(Dw(e>=240?e-240:e+120,i,r),Dw(e,i,r),Dw(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new Ow(Nw(this.h),qw(this.s),qw(this.l),Ew(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Ew(this.opacity);return`${1===e?"hsl(":"hsla("}${Nw(this.h)}, ${100*qw(this.s)}%, ${100*qw(this.l)}%${1===e?")":`, ${e})`}`}}));var Rw=e=>()=>e;function Iw(e){return 1==(e=+e)?_w:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):Rw(isNaN(t)?n:t)}}function _w(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):Rw(isNaN(e)?t:e)}var Pw=function e(t){var n=Iw(t);function r(e,t){var r=n((e=xw(e)).r,(t=xw(t)).r),i=n(e.g,t.g),o=n(e.b,t.b),a=_w(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=o(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);function Lw(e,t){t||(t=[]);var n,r=e?Math.min(t.length,e.length):0,i=t.slice();return function(o){for(n=0;n<r;++n)i[n]=e[n]*(1-o)+t[n]*o;return i}}function zw(e,t){var n,r=t?t.length:0,i=e?Math.min(r,e.length):0,o=new Array(i),a=new Array(r);for(n=0;n<i;++n)o[n]=Uw(e[n],t[n]);for(;n<r;++n)a[n]=t[n];return function(e){for(n=0;n<i;++n)a[n]=o[n](e);return a}}function Fw(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function jw(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function $w(e,t){var n,r={},i={};for(n in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)n in e?r[n]=Uw(e[n],t[n]):i[n]=t[n];return function(e){for(n in r)i[n]=r[n](e);return i}}var Hw=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Bw=new RegExp(Hw.source,"g");function Vw(e,t){var n,r,i,o=Hw.lastIndex=Bw.lastIndex=0,a=-1,s=[],l=[];for(e+="",t+="";(n=Hw.exec(e))&&(r=Bw.exec(t));)(i=r.index)>o&&(i=t.slice(o,i),s[a]?s[a]+=i:s[++a]=i),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,l.push({i:a,x:jw(n,r)})),o=Bw.lastIndex;return o<t.length&&(i=t.slice(o),s[a]?s[a]+=i:s[++a]=i),s.length<2?l[0]?function(e){return function(t){return e(t)+""}}(l[0].x):function(e){return function(){return e}}(t):(t=l.length,function(e){for(var n,r=0;r<t;++r)s[(n=l[r]).i]=n.x(e);return s.join("")})}function Uw(e,t){var n,r=typeof t;return null==t||"boolean"===r?Rw(t):("number"===r?jw:"string"===r?(n=yw(t))?(t=n,Pw):Vw:t instanceof yw?Pw:t instanceof Date?Fw:function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}(t)?Lw:Array.isArray(t)?zw:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?$w:jw)(e,t)}function Ww(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function Yw(e){return+e}var Xw=[0,1];function Gw(e){return e}function Kw(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:function(e){return function(){return e}}(isNaN(t)?NaN:.5)}function Jw(e,t,n){var r=e[0],i=e[1],o=t[0],a=t[1];return i<r?(r=Kw(i,r),o=n(a,o)):(r=Kw(r,i),o=n(o,a)),function(e){return o(r(e))}}function Qw(e,t,n){var r=Math.min(e.length,t.length)-1,i=new Array(r),o=new Array(r),a=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++a<r;)i[a]=Kw(e[a],e[a+1]),o[a]=n(t[a],t[a+1]);return function(t){var n=ex(e,t,1,r)-1;return o[n](i[n](t))}}function Zw(){var e,t,n,r,i,o,a=Xw,s=Xw,l=Uw,c=Gw;function u(){var e=Math.min(a.length,s.length);return c!==Gw&&(c=function(e,t){var n;return e>t&&(n=e,e=t,t=n),function(n){return Math.max(e,Math.min(t,n))}}(a[0],a[e-1])),r=e>2?Qw:Jw,i=o=null,d}function d(t){return null==t||isNaN(t=+t)?n:(i||(i=r(a.map(e),s,l)))(e(c(t)))}return d.invert=function(n){return c(t((o||(o=r(s,a.map(e),jw)))(n)))},d.domain=function(e){return arguments.length?(a=Array.from(e,Yw),u()):a.slice()},d.range=function(e){return arguments.length?(s=Array.from(e),u()):s.slice()},d.rangeRound=function(e){return s=Array.from(e),l=Ww,u()},d.clamp=function(e){return arguments.length?(c=!!e||Gw,u()):c!==Gw},d.interpolate=function(e){return arguments.length?(l=e,u()):l},d.unknown=function(e){return arguments.length?(n=e,d):n},function(n,r){return e=n,t=r,u()}}function eM(e,t,n,r){var i,o=function(e,t,n){n=+n;const r=(t=+t)<(e=+e),i=r?lx(t,e,n):lx(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}(e,t,n);switch((r=db(null==r?",f":r)).type){case"s":var a=Math.max(Math.abs(e),Math.abs(t));return null!=r.precision||isNaN(i=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(lb(t)/3)))-lb(Math.abs(e)))}(o,a))||(r.precision=i),vb(r,a);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(i=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,lb(t)-lb(e))+1}(o,Math.max(Math.abs(e),Math.abs(t))))||(r.precision=i-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(i=function(e){return Math.max(0,-lb(Math.abs(e)))}(o))||(r.precision=i-2*("%"===r.type))}return yb(r)}function tM(e){var t=e.domain;return e.ticks=function(e){var n=t();return function(e,t,n){if(!((n=+n)>0))return[];if((e=+e)==(t=+t))return[e];const r=t<e,[i,o,a]=r?sx(t,e,n):sx(e,t,n);if(!(o>=i))return[];const s=o-i+1,l=new Array(s);if(r)if(a<0)for(let e=0;e<s;++e)l[e]=(o-e)/-a;else for(let e=0;e<s;++e)l[e]=(o-e)*a;else if(a<0)for(let e=0;e<s;++e)l[e]=(i+e)/-a;else for(let e=0;e<s;++e)l[e]=(i+e)*a;return l}(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){var r=t();return eM(r[0],r[r.length-1],null==e?10:e,n)},e.nice=function(n){null==n&&(n=10);var r,i,o=t(),a=0,s=o.length-1,l=o[a],c=o[s],u=10;for(c<l&&(i=l,l=c,c=i,i=a,a=s,s=i);u-- >0;){if((i=lx(l,c,n))===r)return o[a]=l,o[s]=c,t(o);if(i>0)l=Math.floor(l/i)*i,c=Math.ceil(c/i)*i;else{if(!(i<0))break;l=Math.ceil(l*i)/i,c=Math.floor(c*i)/i}r=i}return e},e}function nM(){var e=Zw()(Gw,Gw);return e.copy=function(){return t=e,nM().domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown());var t},GS.apply(e,arguments),tM(e)}function rM(){var e,t=[.5],n=[0,1],r=1;function i(i){return null!=i&&i<=i?n[ex(t,i,0,r)]:e}return i.domain=function(e){return arguments.length?(t=Array.from(e),r=Math.min(t.length,n.length-1),i):t.slice()},i.range=function(e){return arguments.length?(n=Array.from(e),r=Math.min(t.length,n.length-1),i):n.slice()},i.invertExtent=function(e){var r=n.indexOf(e);return[t[r-1],t[r]]},i.unknown=function(t){return arguments.length?(e=t,i):e},i.copy=function(){return rM().domain(t).range(n).unknown(e)},GS.apply(i,arguments)}function iM(e){return void 0===e?e=>e:t=>e(t)}function oM(e){return Math.max(0,Math.min(1,e))}function aM(e){return"object"==typeof e}function sM(e,t,n){const r=Math.abs(t-n)/(e+1),i=[];for(let o=1;o<=e;o++){const e=o*r;i.push(t<n?t+e:t-e)}return i}function lM(e,t,n){if(1===e.length)return e;const r=e.concat([]);for(let i=0;i<e.length;i++){let o=e[i],a=e[i+1];0===i&&o!==n.start()?(r.push(...sM(t,o,a)),o-=a-o,a=e[i],r.push(...sM(t,o,a))):i===e.length-1&&a!==n.end()?(a=o+(o-e[i-1]),r.push(...sM(t,o,a))):r.push(...sM(t,o,a))}return r.filter((e=>e>=n.min()&&e<=n.max()))}function cM(e){let{distance:t,scale:n,minorCount:r=0,unitDivider:i=100,formatter:o}=e;const a=Ky(i)||Ky(t)?2:Math.max(t/i,2),s=Math.min(1e3,Math.round(a));let l=n.ticks(s);l.length<=1&&(l=n.ticks(s+1));const c=r>0?lM(l,r,n):l;c.sort(((e,t)=>e-t));const u=c.map(iM(o));return c.map(((e,t)=>{const r=n(e);return{position:r,start:r,end:r,label:u[t],value:e,isMinor:-1===l.indexOf(e)}}))}function uM(e){let{distance:t,scale:n,minorCount:r=0,unitDivider:i=100,formatter:o}=e;const a=Ky(i)||Ky(t)?2:Math.max(t/i,2),s=Math.min(1e3,Math.round(a)),l=s>10?10:s;n.nice(l);const c=n.ticks(s),u=r>0?lM(c,r,n):c;u.sort(((e,t)=>e-t));const d=u.map(iM(o));return u.map(((e,t)=>{const r=n(e);return{position:r,start:r,end:r,label:d[t],value:e,isMinor:-1===c.indexOf(e)}}))}function dM(e){let t,{settings:n,scale:r,distance:i,formatter:o=(e=>e)}=e;const a=n.minorTicks&&!Ky(n.minorTicks.count)?Math.min(100,n.minorTicks.count):0;if(Array.isArray(n.ticks.values)){const e=n.ticks.values.filter((e=>"object"==typeof e?!Ky(e.value):!Ky(e)));t=function(e){let{values:t,scale:n,formatter:r=(e=>e)}=e;return t.sort(((e,t)=>(aM(e)?e.value:e)-(aM(t)?t.value:t))).filter(((e,t,r)=>{const i=aM(e)?e.value:e;return i<=n.max()&&i>=n.min()&&r.indexOf(e)===t})).map((e=>{const t=aM(e),i=t?e.value:e,o=n(i);return{position:o,value:i,label:t&&void 0!==e.label?e.label:r(i),isMinor:!!t&&!!e.isMinor,start:t&&!isNaN(e.start)?oM(n(e.start)):o,end:t&&!isNaN(e.end)?oM(n(e.end)):o}}))}({values:e,scale:r.copy(),formatter:o})}else if(Ky(n.ticks.count)){t=(n.ticks.tight?uM:cM)({distance:i,minorCount:a,unitDivider:n.ticks.distance,scale:r,formatter:o}),n.ticks.forceBounds&&function(e,t,n){const r=e.map((e=>e.position)),i=t.range();-1===r.indexOf(i[0])?e.splice(0,0,{position:i[0],start:i[0],end:i[0],label:n(t.start()),isMinor:!1,value:t.start()}):e[0]&&e[0].isMinor&&(e[0].isMinor=!1);const o=e[e.length-1];-1===r.indexOf(i[1])?e.push({position:i[1],start:i[1],end:i[1],label:n(t.end()),isMinor:!1,value:t.end()}):o&&o.isMinor&&(o.isMinor=!1)}(t,r,o)}else{t=function(e){let{count:t,minorCount:n,scale:r,formatter:i}=e;return r.ticks((t-1)*n+t).map(((e,t)=>{const o=r(e);return{position:o,start:o,end:o,label:i(e),isMinor:t%(n+1)!=0,value:e}}))}({count:Math.min(1e3,n.ticks.count),minorCount:a,scale:r.copy(),formatter:o})}return t}function fM(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r={};return Object.keys(t).forEach((i=>{const o=typeof e[i];r[i]="function"===o?e[i](n):"undefined"===o?t[i]:e[i]})),r}const hM={min:NaN,max:NaN,expand:NaN,include:[],invert:!1},pM={tight:!1,forceBounds:!1,values:void 0,count:NaN,distance:100},mM={count:NaN};function gM(e,t){e.instance||(e.instance=t.copy(),e.instance.domain([t.start(),t.end()]),e.instance.clamp(!0),e.instance.range(e.invert?[1,0]:[0,1]))}function yM(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=nM(),i={instance:null,invert:!1},o={data:t,resources:n},a=fM(e,hM,o);let s;function l(e){return Ky(e)?NaN:r(e)}a.ticks=fM(e.ticks,pM,o),a.minorTicks=fM(e.minorTicks,mM,o),l.data=()=>t,l.invert=function(e){return r.invert(e)},l.rangeRound=function(e){return r.rangeRound(e),l},l.clamp=function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return r.clamp(e),l},l.cachedTicks=function(){return s},l.clearTicksCache=function(){return s=void 0,this},l.ticks=function(e){return null!==e&&"object"==typeof e?(e.settings=e.settings||{},e.settings=Hy(!0,{},a,e.settings),e.scale=l,s=dM(e),s):(s=r.ticks(e),s)},l.nice=function(e){return r.nice(e),l},l.tickFormat=function(e,t){return r.tickFormat(e,t)},l.interpolate=function(e){return r.interpolate(e),l},l.domain=function(e){return arguments.length?(r.domain(e),i.instance&&i.instance.domain([l.start(),l.end()]),l):r.domain()},l.range=function(e){return arguments.length?(r.range(e),l):r.range()},l.start=function(){return l.domain()[0]},l.end=function(){return l.domain()[this.domain().length-1]},l.min=function(){return Math.min(this.start(),this.end())},l.max=function(){return Math.max(this.start(),this.end())},l.classify=function(e){let t=(l.start()-l.end())/e,n=[l.end()],r=[],i=t/2;for(let o=0;o<e;o++){let e=n[n.length-1]||0,o=e+t,a=l(e+i);n.push(o,o),r.push(a,a)}return n.pop(),l.domain(n),l.range(r),l},l.copy=function(){const i=yM(e,t,n);return i.domain(l.domain()),i.range(l.range()),i.clamp(r.clamp()),i},l.norm=function(e){return gM(i,l),i.instance(e)},l.normInvert=function(e){return gM(i,l),i.instance.invert(e)};const{mini:c,maxi:u}=function(e,t){const n=+e.min,r=+e.max;let i=0,o=1;if(t&&t[0]){const n=t.map((e=>e.min())).filter((e=>!isNaN(e))),r=t.map((e=>e.max())).filter((e=>!isNaN(e)));if(i=n.length?Math.min(...n):Number.NaN,o=r.length?Math.max(...r):Number.NaN,isNaN(i)||isNaN(o))i=-1,o=1;else if(i===o&&0===i)i=-1,o=1;else if(i===o&&i)i-=Math.abs(.1*i),o+=Math.abs(.1*o);else if(!isNaN(e.expand)){const t=o-i;i-=t*e.expand,o+=t*e.expand}if(Array.isArray(e.include)){const t=e.include.filter((e=>!isNaN(e)));i=Math.min(...t,i),o=Math.max(...t,o)}}return{mini:isNaN(n)?i:n,maxi:isNaN(r)?o:r}}(a,t?t.fields:[]);return l.domain([c,u]),l.range(a.invert?[1,0]:[0,1]),i.invert=a.invert,l}const vM={padding:0,paddingInner:NaN,paddingOuter:NaN,align:.5,invert:!1,maxPxStep:NaN,range:[0,1]};function bM(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n={data:t,resources:arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}},r=fM(e,vM,n),i=t.items||[],o={},a=[],s=[];function l(e,n){e.data=()=>t,e.datum=e=>i[o[e]],e.start=function(){return e.domain()[0]},e.end=function(){return e.domain()[e.domain().length-1]},e.labels=()=>s,e.ticks=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t.scale=e,function(e){let{scale:t}=e;const n=t.domain(),r=t.data().items,i=t.labels?t.labels():n,o=t.bandwidth();return n.map(((e,n)=>{const a=t(e);return{position:a+o/2,label:"".concat(i[n]),data:r?r[n]:void 0,start:a,end:a+o}}))}(t,n.trackBy)}}const c=QS();l(c,e),c.pxScale=function(t){const n=r.maxPxStep;if(isNaN(n))return c;const i=c.domain().length,o=Math.max(1,i-c.paddingInner()+2*c.paddingOuter());if(o*n>=t)return c;const a=c.copy();a.type=c.type,l(a,e);const s=o*n/t,u=(1-s)*c.align();return a.range(r.invert?[s+u,u]:[u,s+u]),a};const u="function"==typeof e.value?e.value:e=>e.datum.value,d="function"==typeof e.label?e.label:e=>e.datum.label;for(let e=0;e<i.length;e++){const t=Hy({datum:i[e]},n),r=u(t,e);-1===a.indexOf(r)&&(a.push(r),s.push(d(t,e)),o[r]=e)}return c.domain(a),c.range(r.invert?r.range.slice().reverse():r.range),c.padding(isNaN(r.padding)?0:r.padding),isNaN(r.paddingInner)||c.paddingInner(r.paddingInner),isNaN(r.paddingOuter)||c.paddingOuter(r.paddingOuter),c.align(isNaN(r.align)?.5:r.align),c}const xM={depth:0};function SM(e,t,n){return e.ancestors().map((e=>t(Hy({datum:e.data},n)))).reverse().slice(1).toString()}const wM=e=>e.min(),MM=e=>e.max();function EM(e,t){const n=e&&!isNaN(e.min),r=e&&!isNaN(e.max);let i=n?+e.min:0,o=r?+e.max:1;if(t&&t.length){if(!n){const e=t.map(wM).filter(Gy);i=e.length?Math.min(...e):i}if(!r){const e=t.map(MM).filter(Gy);o=e.length?Math.max(...e):o}}return[i,o]}const kM={domain:[],range:[],invert:!1,min:NaN,max:NaN};function CM(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=yM(e,t,n).clamp(!0).interpolate(Pw),i=fM(e,kM,{data:t,resources:n}),o=Array.isArray(i.domain)&&i.domain.length,a=Array.isArray(i.range)&&i.range.length,s=r;Hy(!0,s,r);const[l,c]=EM(i,t?t.fields:[]),u=o?i.domain.length:-1,d=n.theme?n.theme.palette("sequential",u>0?u:2):[],f=a?i.range:d;return s.range(i.invert?f.slice().reverse():f.slice()),s.domain(o?i.domain:function(e,t,n){const r=e.length;if(2===r)return[t,n];const i=[],o=(n-t)/(r-1);i.push(t);for(let e=1;e<r-1;e++)i.push(t+o*e);return i.push(n),i}(s.range(),l,c)),s}const TM={domain:[],range:[],invert:!1,min:NaN,max:NaN,nice:!1};function AM(e){const t=[];for(let n=0;n<e.length-1;n++)t.push((e[n]+e[n+1])/2);return t}const OM={domain:[],range:[]};const NM={domain:[],range:[],unknown:void 0},qM={domain:[],range:[],override:!1};const DM=ab();function RM(e,t,n){let r=e.data;e.source&&(n.logger.warn("Deprecated: Scale data source configuration"),r={extract:[]},(Array.isArray(e.source)?e.source:[e.source]).forEach((e=>{r.extract.push({field:e})})));const i=YS(r,t,n);let o,a=e.type||function(e){return e.root?"h-band":e.fields&&e.fields[0]?function(e){const t=e.map((e=>"dimension"===e.type()?"band":"linear"));return-1!==t.indexOf("linear")?"linear":"band"}(e.fields):"linear"}(i);return"color"===a&&(a=i.fields&&i.fields[0]&&"dimension"===i.fields[0].type()?"categorical-color":"sequential-color"),n.scale.has(a)&&(o=n.scale.get(a),o=o(e,i,{theme:n.theme,logger:n.logger}),o.type=a),o}DM("linear",yM),DM("band",bM),DM("h-band",(function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const i={data:n,resources:r},o=fM(t,vM,i);o.ticks=fM(t.ticks,xM,i),o.value="function"==typeof t.value?t.value:e=>e.datum.value,o.label="function"==typeof t.label?t.label:e=>e.datum.value;let a=bM(o);const{values:s,labels:l,items:c,ticks:u}=function(e,t,n){const r=t.ticks.depth,i=t.value,o=t.label,a=[],s=[],l={},c=[];let u=0;if(!e)return{values:a,labels:s,items:l,ticks:c};e.eachAfter((e=>{if(e.depth>0){const t=SM(e,i,n),d=e.leaves()||[e],f=i(Hy({datum:e.data},n)),h=o(Hy({datum:e.data},n)),p=Array.isArray(e.children),m={key:t,count:d.length,value:f,label:h,leftEdge:SM(d[0],i,n),rightEdge:SM(d[Math.max(d.length-1,0)],i,n),node:e};p?(a.push("SPACER_".concat(u,"_SPACER")),u++):(a.push(t),s.push(h)),(r<=0&&!p||e.depth===r)&&c.push(m),l[t]=m}}));const d=e.height-1;return d>0&&a.splice(-d),{values:a,labels:s,items:l,ticks:c}}(n.root,o,i),d=function(e){const t=String(e),n=c[t];return a(n?o.invert?n.rightEdge:n.leftEdge:t)};Hy(!0,d,a),d.bandwidth=function(e){const t=c[String(e)],n=a.bandwidth();if(t&&!t.isLeaf){const e=d(t.leftEdge),r=d(t.rightEdge);return Math.abs(e-r)+n}return n},d.step=function(e){const t=c[String(e)],n=t?t.count:1;let r=a.step();return r*=n,r},d.data=()=>n,d.datum=e=>{const t=c[String(e)];return t?t.node.data:null},d.copy=()=>e(t,n,r),d.labels=()=>l,d.ticks=()=>u.map((e=>{const t=d(e.key),n=d.bandwidth(e.key);return{position:t+n/2,label:e.label,data:e.node.data,start:t,end:t+n}}));const f=a.pxScale;return d.pxScale=function(e){return a=f(e),d},d.domain(s),d})),DM("sequential-color",CM),DM("threshold-color",(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=rM(),i=fM(e,TM,{data:t,resources:n}),o=Array.isArray(i.domain)&&i.domain.length,a=Array.isArray(i.range)&&i.range.length;function s(e){return Ky(e)?NaN:r(e)}Object.keys(r).forEach((e=>s[e]=r[e]));const l=t.fields,[c,u]=EM(i,l),d=o?i.domain.length:-1,f=n.theme?n.theme.palette("sequential",d>0?d:2):[];let h=a?i.range:f,p=[];return p=o?i.domain:i.nice?function(e,t,n){const r=2===e.length?10:Math.max(1,e.length),i=nM().domain([t,n]).nice(r).ticks(r);if(!e||!e.length)return i;const o=Math.max(0,e.length-1);for(;i.length>o;)i[0]-t<=n-i[i.length-1]?i.shift():i.pop();return i}(h,c,u):[c+(u-c)/2],h.length>p.length+1?p=function(e,t,n){const r=e.length;if(2===r)return[t+(n-t)/2];const i=[],o=(n-t)/r;for(let e=1;e<r;e++)i.push(t+o*e);return i}(h,c,u):h.length<p.length+1&&(h=function(e,t,n,r){n=e[0],r=e&&e.length>=2?e[e.length-1]:r;const i=CM().domain([n,r]).range(t);return[n,...AM(e),r].map((e=>i(e)))}(p,h,c,u)),s.data=()=>t,s.range(i.invert?h.slice().reverse():h),s.domain(p),s})),DM("categorical-color",(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=JS(),i={data:t,resources:n},o=fM(e,OM,i),a="function"==typeof e.value?e.value:e=>e.datum.value,s="function"==typeof e.label?e.label:e=>e.datum.label,l=t.items||[],c={},u=[],d=[];for(let e=0;e<l.length;e++){const t=Hy({datum:l[e]},i),n=a(t,e);-1===u.indexOf(n)&&(u.push(n),d.push(s(t,e)),c[n]=e)}return r.data=()=>t,r.labels=()=>d,r.label=e=>d[u.indexOf(e)],r.datum=e=>l[c[e]],r.range(o.range),Array.isArray(o.domain)&&o.domain.length?r.domain(o.domain):r.domain(u),r}(e,t,n),i=n.theme,o=fM(e,NM,{data:t,resources:n});let a;if(o.explicit=fM(e.explicit,qM,{data:t,resources:n}),a=Array.isArray(o.range)&&0!==o.range.length?o.range.slice():i?i.palette("categorical",r.domain().length).slice():[],o.unknown)r.unknown(o.unknown);else if(i&&i.palette("unknown")){let e=i.palette("unknown");r.unknown(e[0])}if(Array.isArray(o.explicit.domain)&&o.explicit.domain.length){const e=r.domain().slice(),t=o.explicit.domain,n=Array.isArray(o.explicit.range)?o.explicit.range:[],i=Math.floor(e.length/a.length);for(let e=1;e<i+1;e*=2)a=a.concat(a);if(o.explicit.override)for(let r=0;r<t.length;r++){const i=e.indexOf(t[r]);i>-1&&(a[i]=n[r])}else{const r=t.map(((t,r)=>[e.indexOf(t),t,n[r]])).sort(((e,t)=>e[0]-t[0]));r.forEach((t=>{const n=e.indexOf(t[1]);-1!==n&&a.splice(n,0,t[2])}))}a.length=e.length}return r.range(a),r}));var IM={};function _M(){_M.init.call(this)}IM.isObject=function(e){return"object"==typeof e&&null!==e},IM.isNumber=function(e){return"number"==typeof e},IM.isUndefined=function(e){return void 0===e},IM.isFunction=function(e){return"function"==typeof e};var PM=_M;_M.EventEmitter=_M,_M.prototype._events=void 0,_M.prototype._maxListeners=void 0,_M.defaultMaxListeners=10,_M.init=function(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0},_M.prototype.setMaxListeners=function(e){if(!IM.isNumber(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},_M.prototype.emit=function(e){var t,n,r,i,o,a;if(this._events||(this._events={}),"error"===e&&!this._events.error)throw(t=arguments[1])instanceof Error?t:Error('Uncaught, unspecified "error" event.');if(n=this._events[e],IM.isUndefined(n))return!1;if(IM.isFunction(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:for(r=arguments.length,i=new Array(r-1),o=1;o<r;o++)i[o-1]=arguments[o];n.apply(this,i)}else if(IM.isObject(n)){for(r=arguments.length,i=new Array(r-1),o=1;o<r;o++)i[o-1]=arguments[o];for(r=(a=n.slice()).length,o=0;o<r;o++)a[o].apply(this,i)}return!0},_M.prototype.addListener=function(e,t){var n;if(!IM.isFunction(t))throw TypeError("listener must be a function");(this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,IM.isFunction(t.listener)?t.listener:t),this._events[e]?IM.isObject(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,IM.isObject(this._events[e])&&!this._events[e].warned)&&((n=IM.isUndefined(this._maxListeners)?_M.defaultMaxListeners:this._maxListeners)&&n>0&&this._events[e].length>n&&(this._events[e].warned=!0,IM.isFunction(console.error)&&console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),IM.isFunction(console.trace)&&console.trace()));return this},_M.prototype.on=_M.prototype.addListener,_M.prototype.once=function(e,t){if(!IM.isFunction(t))throw TypeError("listener must be a function");var n=!1;function r(){this.removeListener(e,r),n||(n=!0,t.apply(this,arguments))}return r.listener=t,this.on(e,r),this},_M.prototype.removeListener=function(e,t){var n,r,i,o;if(!IM.isFunction(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(i=(n=this._events[e]).length,r=-1,n===t||IM.isFunction(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(IM.isObject(n)){for(o=i;o-- >0;)if(n[o]===t||n[o].listener&&n[o].listener===t){r=o;break}if(r<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(r,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},_M.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(n=this._events[e],IM.isFunction(n))this.removeListener(e,n);else if(Array.isArray(n))for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},_M.prototype.listeners=function(e){return this._events&&this._events[e]?IM.isFunction(this._events[e])?[this._events[e]]:this._events[e].slice():[]},_M.listenerCount=function(e,t){return e._events&&e._events[t]?IM.isFunction(e._events[t])?1:e._events[t].length:0};var LM={mixin:e=>(Object.keys(PM.prototype).forEach((t=>{e[t]=PM.prototype[t]})),PM.init(e),e)};function zM(){let e=0,t=0,n=0,r=0;n=n||e;const i={move(e){this.moveTo(n+e)},moveTo(o){const a=Math.max(e,Math.min(t-r,o));n!==a&&(n=a,i.emit("update"))},update(o){let a=!1;({min:e=e,max:t=t}=o),void 0!==o.viewSize&&o.viewSize!==r&&(r=o.viewSize,a=!0);const s=Math.max(e,Math.min(t-r,n));n!==s&&(n=s,a=!0),a&&i.emit("update")},getState:()=>({min:e,max:t,start:n,viewSize:r})};return LM.mixin(i),i}function FM(e,t){const n=e.min||0,r=e.max||0,i=e.viewSize||0,o=t||zM();return o.update({min:n,max:r,viewSize:i}),o}function jM(e,t){return e<=t}function $M(e,t){return e<t}function HM(e,t,n){let r=0;for(;r<e.length&&t>e[r];)++r;return e[r]===t&&n&&++r,r}function BM(){let e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=[];function i(){}return i.configure=function(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{includeMax:r=!0,includeMin:i=!0}=n;e=r?jM:$M,t=i?jM:$M},i.add=e=>{let{min:t,max:n}=e;const i=HM(r,t),o=HM(r,n,!0),a=[i,o-i];i%2==0&&a.push(t),o%2==0&&a.push(n);const s=r.join(",");r.splice(...a);return s!==r.join(",")},i.remove=e=>{let{min:t,max:n}=e;const i=HM(r,t),o=HM(r,n,!0),a=[i,o-i];i%2==1&&a.push(t),o%2==1&&a.push(n);const s=r.join(",");r.splice(...a);return s!==r.join(",")},i.set=e=>{const t=r.join(",");r=[],Array.isArray(e)?e.forEach(i.add):i.add(e);return t!==r.join(",")},i.clear=()=>{const e=r.length>0;return r=[],e},i.containsValue=n=>function(e,t,n,r){const i=e.length;for(let o=1;o<i;o+=2)if(n(e[o-1],t)&&r(t,e[o]))return!0;return!1}(r,n,t,e),i.containsRange=e=>{let{min:t,max:n}=e;const i=HM(r,t,!0),o=HM(r,n);return i===o&&o%2==1},i.toggle=e=>i.containsRange(e)?i.remove(e):i.add(e),i.ranges=()=>{const e=[];for(let t=1;t<r.length;t+=2)e.push({min:r[t-1],max:r[t]});return e},i.configure(n),i}function VM(){let e=[];function t(){}return t.add=t=>-1===e.indexOf(t)&&(e.push(t),!0),t.remove=t=>{const n=e.indexOf(t);return-1!==n&&(e.splice(n,1),!0)},t.contains=t=>-1!==e.indexOf(t),t.values=()=>e.slice(),t.clear=()=>e=[],t.toString=()=>e.join(";"),t}const UM={key:void 0,includeMin:!0,includeMax:!0};function WM(e){let{items:t,collection:n,vc:r}=e;const i={},o=[];let a,s;for(let e=0,o=t.length;e<o;e++){a=t[e].key,n[a]||(n[a]=r()),s=t[e].values||[t[e].value];for(let e=0;e<s.length;e++)n[a].add(s[e])&&(i[a]=i[a]||[],i[a].push(s[e]))}const l=Object.keys(i);for(let e=0,t=l.length;e<t;e++)a=l[e],o.push({id:a,values:i[a]});return o}function YM(e){let{items:t,collection:n}=e;const r={},i=[];let o,a;for(let e=0,i=t.length;e<i;e++)if(o=t[e].key,n[o]){a=t[e].values||[t[e].value];for(let e=0;e<a.length;e++)n[o].remove(a[e])&&(r[o]=r[o]||[],r[o].push(a[e]))}const s=Object.keys(r);for(let e=0,t=s.length;e<t;e++)o=s[e],i.push({id:o,values:r[o]});return i}function XM(e){const t={};let n,r;for(let i=0,o=e.length;i<o;i++){n=e[i].key,r=e[i].values||[e[i].value],t[n]||(t[n]=[]);for(let e=0;e<r.length;e++){-1===t[n].indexOf(r[e])&&t[n].push(r[e])}}return t}function GM(e){let{key:t,collection:n,obj:r,fn:i,value:o}=e;n[t]||(n[t]=i()),r[t]=r[t]||[],r[t].push(o),n[t].add(o)}function KM(e,t){const n=[],r=Object.keys(e);let i,o;const a=e=>-1===t[i].indexOf(e);for(let s=0,l=r.length;s<l;s++)i=r[s],t[i]?(o=e[i].filter(a),o.length&&n.push({id:i,values:o})):n.push({id:i,values:e[i]});return n}function JM(e,t,n){const r=function(e,t){if(!Object.keys(t).length)return e;const n=e.length,r=Array(n);for(let i=0;i<n;i++)r[i]=e[i].key in t?Hy({},e[i],{key:t[e[i].key]}):e[i];return r}(t,n);return e&&e.length?e.reduce(((e,t)=>t(e)),r):r}function QM(e){return e.replace(/(-[a-z])/g,(e=>e.toUpperCase().replace("-","")))}function ZM(e){return e.replace(/([A-Z])/g,(e=>"-".concat(e.toLowerCase())))}function eE(e,t,n){let{ranges:r,interceptors:i,rc:o,aliases:a,rangeConfig:s}=n;const l=JM(i["".concat(t,"Ranges")],e,a);let c=!1;return l.forEach((e=>{const n=e.key;if(r[n]||(r[n]=o(s.sources[n]||s.default)),"set"===t)c=r[n][t](e.ranges||e.range)||c;else{const i=e.ranges||[e.range];for(let e=0;e<i.length;e++)c=r[n][t](i[e])||c}})),c}function tE(){let{vc:e=VM,rc:t=BM}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=!1,r={},i={},o={},a={sources:{},default:Hy({},UM)};const s={addValues:[],removeValues:[],toggleValues:[],setValues:[],addRanges:[],setRanges:[],removeRanges:[],toggleRanges:[]},l=()=>{const e={values:{},ranges:{}};return Object.keys(i).forEach((t=>{e.values[t]=i[t].values()})),Object.keys(r).forEach((t=>{e.ranges[t]=r[t].ranges()})),e},c={ls:[],clear(){this.ls.forEach((e=>e.clear()))},start(){this.ls.forEach((e=>e.start()))},end(){this.ls.forEach((e=>e.end()))},update(){const e=l();this.ls.forEach((t=>t._state(e)))},updateValues(){const e=l();this.ls.forEach((t=>t._state({values:e.values})))},updateRanges(){const e=l();this.ls.forEach((t=>t._state({ranges:e.ranges})))}},u={configure:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Array.isArray(e.ranges)&&e.ranges.length&&(a={sources:{},default:Hy({},UM)},e.ranges.forEach((e=>{const t={};Object.keys(UM).filter((e=>"key"!==e)).forEach((n=>{t[n]=void 0!==e[n]?e[n]:UM[n]})),void 0!==e.key?a.sources[e.key]=t:a.default=t})),Object.keys(r).forEach((e=>r[e].configure(a.sources[e]||a.default))),u.emit("update",[],[]))},link:e=>{if(u===e)throw new Error("Can't link to self");c.ls.push(e),e._state(l())},_state:e=>{if(!e)return l();if(e.values){const t=[];Object.keys(e.values).forEach((n=>{i[n]&&e.values[n].join(";")===i[n].toString()||t.push({key:n,values:e.values[n]})})),Object.keys(i).forEach((n=>{e.values[n]||t.push({key:n,values:[]})})),t.length&&u.setValues(t)}if(e.ranges){const t=[];Object.keys(e.ranges).forEach((n=>{r[n]&&e.ranges[n].join(";")===r[n].toString()||t.push({key:n,ranges:e.ranges[n]})})),Object.keys(r).forEach((n=>{e.ranges[n]||t.push({key:n,ranges:[]})})),t.length&&u.setRanges(t)}},start:function(){if(!n){n=!0;for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];u.emit("start",...t),c.start()}},end:function(){if(n){n=!1,r={},i={};for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];u.emit("end",...t),c.end()}},isActive:()=>n,clear:()=>{const e=u.brushes().filter((e=>"value"===e.type&&e.brush.values().length)).map((e=>({id:e.id,values:e.brush.values()}))),t=Object.keys(r).length>0||e.length;r={},i={},t&&(u.emit("update",[],e),c.clear())},brushes:()=>{let e=[];return e=e.concat(Object.keys(r).map((e=>({type:"range",id:e,brush:r[e]})))),e=e.concat(Object.keys(i).map((e=>({type:"value",id:e,brush:i[e]})))),e},addValue:(e,t)=>{u.addValues([{key:e,value:t}])},addValues:t=>{const r=JM(s.addValues,t,o),a=WM({vc:e,collection:i,items:r});u.emit("add-values",r),a.length&&(n||(n=!0,u.emit("start")),u.emit("update",a,[]),c.updateValues())}};return u.setValues=t=>{const r=JM(s.setValues,t,o),a=function(e){let{items:t,vCollection:n,vc:r}=e;const i={},o=XM(t);let a,s=[],l=[];const c={},u=Object.keys(n);for(let e=0,t=u.length;e<t;e++)a=u[e],c[a]=n[a].values().slice(),delete n[a];const d=e=>{n[a]&&n[a].contains(e)||GM({key:a,value:e,collection:n,obj:i,fn:r})},f=Object.keys(o);for(let e=0,t=f.length;e<t;e++)a=f[e],o[a].forEach(d);return l=KM(c,i),s=KM(i,c),[s,l]}({items:r,vCollection:i,vc:e});u.emit("set-values",r),(a[0].length>0||a[1].length>0)&&(n||(n=!0,u.emit("start")),u.emit("update",a[0],a[1]),c.updateValues())},u.removeValue=(e,t)=>{u.removeValues([{key:e,value:t}])},u.removeValues=e=>{const t=JM(s.removeValues,e,o),n=YM({collection:i,items:t});u.emit("remove-values",t),n.length&&(u.emit("update",[],n),c.updateValues())},u.addAndRemoveValues=(t,r)=>{const a=JM(s.addValues,t,o),l=JM(s.removeValues,r,o),d=WM({vc:e,collection:i,items:a}),f=YM({collection:i,items:l});u.emit("add-values",a),u.emit("remove-values",l),(d.length||f.length)&&(n||(n=!0,u.emit("start")),u.emit("update",d,f),c.updateValues())},u.toggleValue=(e,t)=>{u.toggleValues([{key:e,value:t}])},u.toggleValues=t=>{const r=JM(s.toggleValues,t,o),a=function(e){let{items:t,values:n,vc:r}=e;const i={},o={},a=[],s=[],l=XM(t);let c,u,d;const f=Object.keys(l);for(let e=0,t=f.length;e<t;e++){c=f[e],d=l[c];for(let e=0,t=d.length;e<t;e++)u=d[e],n[c]&&n[c].contains(u)?n[c]&&n[c].contains(u)&&(o[c]=o[c]||[],o[c].push(u),n[c].remove(u)):GM({key:c,value:u,collection:n,obj:i,fn:r})}const h=Object.keys(i);for(let e=0,t=h.length;e<t;e++)c=h[e],a.push({id:c,values:i[c]});const p=Object.keys(o);for(let e=0,t=p.length;e<t;e++)c=p[e],s.push({id:c,values:o[c]});return[a,s]}({items:r,values:i,vc:e});u.emit("toggle-values",r),(a[0].length>0||a[1].length>0)&&(n||(n=!0,u.emit("start")),u.emit("update",a[0],a[1]),c.updateValues())},u.containsValue=(e,t)=>{let n=o[e]||e;return!!i[n]&&i[n].contains(t)},u.addRange=(e,t)=>{u.addRanges([{key:e,range:t}])},u.addRanges=e=>{eE(e,"add",{ranges:r,rc:t,interceptors:s,aliases:o,rangeConfig:a})&&(n||(n=!0,u.emit("start")),u.emit("update",[],[]),c.updateRanges())},u.removeRange=(e,t)=>{u.removeRanges([{key:e,range:t}])},u.removeRanges=e=>{eE(e,"remove",{ranges:r,rc:t,interceptors:s,aliases:o,rangeConfig:a})&&(n||(n=!0,u.emit("start")),u.emit("update",[],[]),c.updateRanges())},u.setRange=(e,t)=>{u.setRanges([{key:e,range:t}])},u.setRanges=e=>{eE(e,"set",{ranges:r,rc:t,interceptors:s,aliases:o,rangeConfig:a})&&(n||(n=!0,u.emit("start")),u.emit("update",[],[]),c.updateRanges())},u.toggleRange=(e,t)=>{u.toggleRanges([{key:e,range:t}])},u.toggleRanges=e=>{eE(e,"toggle",{ranges:r,rc:t,interceptors:s,aliases:o,rangeConfig:a})&&(n||(n=!0,u.emit("start")),u.emit("update",[],[]),c.updateRanges())},u.containsRangeValue=(e,t)=>{let n=o[e]||e;return!!r[n]&&r[n].containsValue(t)},u.containsRange=(e,t)=>{let n=o[e]||e;return!!r[n]&&r[n].containsRange(t)},u.containsMappedData=(e,t,n)=>{let a=[];const s=Object.keys(e);let l,c,u,d;for(let t=0,n=s.length;t<n;t++){if(l=s[t],"value"===l)c=e,a[t]={key:"",i:t,bool:!1};else{if("source"===l)continue;c=e[l],a[t]={key:l,i:t,bool:!1}}u=c.source&&c.source.field,void 0!==u&&(void 0!==c.source.key&&(u="".concat(c.source.key,"/").concat(u)),u in o&&(u=o[u]),d=c.value,r[u]?a[t].bool=Array.isArray(d)?r[u].containsRange({min:d[0],max:d[1]}):r[u].containsValue(d):i[u]&&i[u].contains(d)&&(a[t].bool=!0))}return t?(a=a.filter((e=>-1!==t.indexOf(e.key))),"and"===n?!!a.length&&!a.some((e=>!1===e.bool)):"xor"===n?!!a.length&&a.some((e=>e.bool))&&a.some((e=>!1===e.bool)):a.some((e=>e.bool))):a.some((e=>e.bool))},u.intercept=(e,t)=>{const n=QM(e);s[n]&&s[n].push(t)},u.removeInterceptor=(e,t)=>{const n=QM(e);if(!s[n])return;const r=s[n].indexOf(t);-1!==r&&s[n].splice(r,1)},u.removeAllInterceptors=e=>{const t=[];if(e){const n=QM(e);s[n]&&s[n].length&&t.push({name:e,handlers:s[n]})}else Object.keys(s).forEach((e=>{s[e].length&&t.push({name:ZM(e),handlers:s[e]})}));t.forEach((e=>{e.handlers.slice().forEach((t=>u.removeInterceptor(e.name,t)))}))},u.addKeyAlias=(e,t)=>{o[e]=t},u.removeKeyAlias=e=>{delete o[e]},LM.mixin(u),u}function nE(e){return e*e*e}function rE(e){return--e*e*e+1}function iE(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}ab();const oE=["stroke","fill","color","backgroundColor","thumbColor"];function aE(e,t){const n=t?t.length:0,r=e?Math.min(n,e.length):0,i=new Array(r),o=new Array(n);let a;for(a=0;a<r;++a)i[a]=sE(e[a],t[a]);for(;a<n;++a)o[a]=t[a];return function(e){for(a=0;a<r;++a)o[a]=i[a](e);return o}}function sE(e,t,n){const r=typeof t;let i;return null==t||"boolean"===r?function(e){return()=>e}(t):("number"===r?jw:"string"===r?(i=yw(t))&&oE.includes(n)?(t=i,Pw):Vw:t instanceof yw?Pw:t instanceof Date?Fw:function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}(t)?Lw:Array.isArray(t)?aE:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?lE:jw)(e,t)}function lE(e,t){const n={},r={};let i;for(i in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)i in e?n[i]=sE(e[i],t[i],i):r[i]=t[i];return function(e){for(i in n)r[i]=n[i](e);return r}}function cE(e,t){return e.data?e.data.value:"text"===e.type?e.text:t}const uE={fontFamily:"Arial",fontSize:"13px",color:"#595959",backgroundColor:"#ffffff",stroke:"#000000",strokeWidth:0,$fill:"#333333"},dE=/^\$/;function fE(e){const t=typeof e;return"object"!==t&&"function"!==t&&"undefined"!==t}function hE(e,t,n){const r=e[t];r&&r.scale&&r.scale.pxScale?r.scale=r.scale.pxScale(n):r&&r.pxScale&&(e[t]=r.pxScale(n))}function pE(e,t){return e.pxScale?e.pxScale(t):e}const mE={normalizeSettings:function(e,t,n){const r=Hy({},e),i=Hy({},t);return Object.keys(r).forEach((e=>{i[e]={};const o=r[e],a=typeof o;if("function"==typeof o)i[e].fn=o;else if(fE(o)){let n=t[e];"string"==typeof n&&dE.test(n)&&(n=uE[n]);const r=typeof n;i[e]="undefined"===r||r===a?o:n}else o&&"object"==typeof o&&("function"==typeof o.fn&&(i[e].fn=o.fn),void 0!==o.scale&&(i[e].scale=n.scale(o.scale)),"string"==typeof o.ref&&(i[e].ref=o.ref))})),Object.keys(t).forEach((e=>{if(e in r)return;const n=t[e];"string"===typeof n&&dE.test(n)?i[e]=uE[n]:i[e]=n})),i},resolveForItem:function(e,t,n){const r={},i=Object.keys(t),o=i.length,a=e.datum,s=e.datum;for(let l=0;l<o;l++){const o=i[l],c=t[o],u="object"==typeof s&&void 0!==c,d=u&&"string"==typeof c.ref,f=u&&o in s,h=d?s[c.ref]:f?s[o]:a;fE(c)?r[o]=c:u&&c.fn?(c.scale&&(e.scale=c.scale),r[o]=c.fn.call(null,e,n)):u&&c.scale&&h?(r[o]=c.scale(h.value),c.scale.bandwidth&&(r[o]+=c.scale.bandwidth()/2)):d&&h?r[o]=h.value:c.fn?r[o]=c.fn.call(null,e,n):r[o]=c}return r},updateScaleSize:hE};function gE(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).reduce(((e,t)=>Array.isArray(t.children)?(e.push(...gE(t.children)),e):(e.push(t),e)),[])}function yE(e,t){let{context:n,data:r,style:i,filter:o,mode:a}=t;const s=e.chart.brush(n),l=r,c=i.active||{},u=i.inactive||{},d=[];Object.keys(c).forEach((e=>{d.push(e)})),Object.keys(u).forEach((e=>{-1===d.indexOf(e)&&d.push(e)}));const f=[];let h=!1;const p=()=>{let t=gE(e.nodes);return"function"==typeof o&&(t=t.filter(o)),t},m=()=>{const e=p(),t=e.length;let n,r=!1;const i="function"==typeof l?l({brush:s}):l;for(let r=0;r<t;r++){if(n=e[r].data,!n)continue;e[r].__style||(e[r].__style={},d.forEach((t=>{e[r].__style[t]=e[r][t]})));const t=s.containsMappedData(n,i,a),o=f.indexOf(e[r]);let l=!1;t&&-1===o?(f.push(e[r]),l=!0):t||-1===o||(f.splice(o,1),l=!0),e[r].needToUpdate=l||h,e[r].isActive=t}for(let i=0;i<t;i++)if(n=e[i].data,n){if(e[i].needToUpdate){const t=Hy({},e[i],e[i].__style),n=e[i].isActive;d.forEach((r=>{e[i][r]=n&&r in c?"function"==typeof c[r]?c[r].call(null,t,f):c[r]:!n&&r in u?"function"==typeof u[r]?u[r].call(null,t,f):u[r]:e[i].__style[r]})),r=!0}delete e[i].needToUpdate}return h=!1,r},g=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{suppressRender:!1};const{suppressRender:n}=t,r=p(),i=r.length;for(let e=0;e<i;e++)r[e].data&&(r[e].__style=r[e].__style||{},d.forEach((t=>{r[e].__style[t]=r[e][t],t in u&&(r[e][t]="function"==typeof u[t]?u[t].call(null,r[e]):u[t])})));h=!0,f.length=0,n||e.renderer.render(e.nodes)},y=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{suppressRender:!1};const{suppressRender:n}=t,r=p(),i=r.length;for(let e=0;e<i;e++)r[e].__style&&(Object.keys(r[e].__style).forEach((t=>{r[e][t]=r[e].__style[t]})),r[e].__style=void 0);f.length=0,n||e.renderer.render(e.nodes)},v=()=>{if(m()){const t="function"==typeof e.config.sortNodes?e.config.sortNodes(e):e.nodes;"function"==typeof e.config.customRender?e.config.customRender({render:e.renderer.render,nodes:t}):e.renderer.render(t)}};return s.on("start",g),s.on("end",y),s.on("update",v),{isActive:()=>s.isActive(),update:()=>{f.length=0,h=!0,m()},cleanUp:function(){s.removeListener("start",g),s.removeListener("end",y),s.removeListener("update",v)}}}function vE(e){let{nodes:t,action:n,chart:r,trigger:i}=e;const o=[];for(let e=0;e<t.length;e++){let n=t[e].data;null!==n&&o.push(n)}!function(e){let{dataPoints:t,action:n,chart:r,trigger:i}=e;if(!i)return;const o=i.data||[""];let a={items:[],actionFn:"toggleRanges"},s={items:[],actionFn:"toggleValues"};-1!==["add","remove","set","toggle"].indexOf(n)&&(a.actionFn="".concat(n,"Ranges"),s.actionFn="".concat(n,"Values"));for(let e=0;e<t.length;e++){const n=t[e];n&&o.forEach((e=>{let t=n&&!e?n:n[e];if(t){let e={key:t.source.field};void 0!==t.source.key&&(e.key="".concat(t.source.key,"/").concat(t.source.field)),Array.isArray(t.value)?(e.range={min:t.value[0],max:t.value[1]},a.items.push(e)):(e.value=t.value,s.items.push(e))}}))}i.contexts.forEach((e=>{a.items.length?r.brush(e)[a.actionFn](a.items):r.brush(e)[s.actionFn](s.items)}))}({dataPoints:o,action:n,chart:r,trigger:i})}function bE(e){let{collisions:t,t:n,config:r,action:i}=e,o=[],a=!1;t.length>0&&(o=t,a=!0,"stop"===n.propagation&&(o=[t[t.length-1]]));const s=o.map((e=>e.node));return vE({nodes:s,action:i,chart:r.chart,data:r.data,trigger:n}),a}function xE(e,t,n){const r=n.element().getBoundingClientRect();let i=Xy(e)?function(e,t){return 1!==e.changedTouches.length?null:{x:e.changedTouches[0].clientX-t.left,y:e.changedTouches[0].clientY-t.top}}(e,r):function(e,t){return{x:e.clientX-t.left,y:e.clientY-t.top}}(e,r);return null===i||i.x<0||i.y<0||i.x>r.width||i.y>r.height?[]:(t.touchRadius>0&&Xy(e)?i={cx:i.x,cy:i.y,r:t.touchRadius}:t.mouseRadius>0&&!Xy(e)&&(i={cx:i.x,cy:i.y,r:t.mouseRadius}),n.itemsAt(i))}function SE(e,t,n){return e?"function"==typeof e?e(t):e:n}const wE={fill:"fill",stroke:"stroke",opacity:"opacity",strokeWidth:"stroke-width",strokeLinejoin:"stroke-linejoin",fontFamily:"font-family",fontSize:"font-size",fontWeight:"font-weight",baseline:"dominant-baseline",dominantBaseline:"dominant-baseline",anchor:"text-anchor",textAnchor:"text-anchor",maxWidth:"maxWidth",transform:"transform",strokeDasharray:"stroke-dasharray",id:"id"};function ME(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n="";for(let t=0;t<e.length;t++){const r=e[t];n+=0===t?"M".concat(r.x," ").concat(r.y):"L".concat(r.x," ").concat(r.y),n+=" "}return t&&(n+="Z"),n}function EE(e,t,n,r){const i=n/2,o=e-r/2,a=t-r/2,s=e-i,l=t-i;return[{x:o,y:a},{x:o,y:l},{x:o+r,y:l},{x:o+r,y:a},{x:s+n,y:a},{x:s+n,y:a+r},{x:o+r,y:a+r},{x:o+r,y:l+n},{x:o,y:l+n},{x:o,y:a+r},{x:s,y:a+r},{x:s,y:a}]}function kE(e){return-e/180*Math.PI}function CE(e){return function(e){let t=(.5*(Math.floor(e/Math.PI*2)+2)+.25)*Math.PI,n=Math.cos(Math.abs(t-e))*Math.sqrt(2),r=n*Math.cos(e),i=n*Math.sin(e);return{x1:r<0?1:0,y1:i<0?1:0,x2:r>=0?r:r+1,y2:i>=0?i:i+1}}(kE(e))}function TE(e,t){return{x:e.x+t.x,y:e.y+t.y}}function AE(e,t){return{x:e.x-t.x,y:e.y-t.y}}function OE(e,t){return{x:e.x*t,y:e.y*t}}function NE(e,t){return e.x-t.x}function qE(e,t){return e.y-t.y}function DE(e,t){return NE(e,t)**2+qE(e,t)**2}function RE(e,t){return Math.sqrt(DE(e,t))}function IE(e,t){return e.x*t.x+e.y*t.y}function _E(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{x:0,y:0};const r=Math.cos(t),i=Math.sin(t),o=AE(e,n);return TE({x:r*o.x-i*o.y,y:i*o.x+r*o.y},n)}const PE={up:0,down:180,left:90,right:-90};function LE(e){let{x:t,y:n,size:r}=e;const i=r/2;return{type:"rect",x:t-i,y:n-i,width:r,height:r}}const zE=ab();zE.add("circle",(function(e){return{type:"circle",fill:"black",cx:e.x,cy:e.y,r:e.size/2}})),zE.add("diamond",(function(e){const t=e.size,n=e.x-t/2,r=e.y-t/2;return{type:"path",fill:"black",d:ME([{x:n,y:r+t/2},{x:n+t/2,y:r},{x:n+t,y:r+t/2},{x:n+t/2,y:r+t},{x:n,y:r+t/2}])}})),zE.add("saltire",(function(e){const t=kE(45),n=e.size/2,r=isNaN(e.width)?n/2:e.width,i=Math.min(r,n);let o=e.size;const a=Math.sin(Math.asin(-t))*(i/2);o+=2*(n/Math.sin(-t)-n),o-=2*a;const s={x:e.x,y:e.y},l=EE(e.x,e.y,o,i).map((e=>_E(e,t,s)));return{type:"path",fill:"black",d:ME(l)}})),zE.add("square",(function(e){const t=e.size;return{type:"rect",fill:"black",x:e.x-t/2,y:e.y-t/2,width:t,height:t}})),zE.add("triangle",(function(e){const t=e.size,n={x:e.x,y:e.y},r=PE[e.direction]||0,i=t/2,o=e.x-i,a=e.y-i;let s=[{x:o,y:a+t},{x:o+i,y:a},{x:o+t,y:a+t},{x:o,y:a+t}];const l=kE(r);return s=s.map((e=>_E(e,l,n))),{type:"path",fill:"black",d:ME(s)}})),zE.add("line",(function(e){const t="vertical"===e.direction,n=e.size/2,r=e.x,i=e.y;return{type:"line",stroke:"black",strokeWidth:1,x1:r-(t?0:n),y1:i-(t?n:0),x2:r+(t?0:n),y2:i+(t?n:0),collider:LE(e)}})),zE.add("star",(function(e){const t=e.size,n=[],r=t/2,i=e.points||5,o=Math.min(e.innerRadius||t/2,t)/2,a=isNaN(e.startAngle)?90:e.startAngle,s=360/i;for(let t=1;t<=i;t++){const i=s*t+a,l=kE(i),c=kE(i+s/2),u=Math.sin(l),d=Math.cos(l),f=Math.sin(c),h=Math.cos(c);n.push({x:e.x+d*r,y:e.y+u*r}),n.push({x:e.x+h*o,y:e.y+f*o})}return{type:"path",fill:"black",d:ME(n)}})),zE.add("n-polygon",(function(e){const t=[],n=e.size/2,r=Math.max(isNaN(e.sides)?6:e.sides,3),i=360/r,o=isNaN(e.startAngle)?0:e.startAngle;for(let a=1;a<=r;a++){const r=kE(i*a+o),s=Math.sin(r),l=Math.cos(r);t.push({x:e.x+l*n,y:e.y+s*n})}return{type:"path",fill:"black",d:ME(t)}})),zE.add("cross",(function(e){const t=e.x,n=e.y,r=e.size/2,i=isNaN(e.width)?r/2:e.width,o=Math.min(i,r);return{type:"path",fill:"black",d:ME(EE(t,n,e.size,o))}})),zE.add("bar",(function(e){const t={x:e.x,y:e.y},n="vertical"===e.direction,r=e.size/2,i=r/2/2;let o=[{x:t.x-r,y:t.y+i},{x:t.x-r,y:t.y-i},{x:t.x+r,y:t.y-i},{x:t.x+r,y:t.y+i}];if(n){const e=kE(90);o=o.map((n=>_E(n,e,t)))}const a=ev(o);return a.type="rect",a.fill="black",a})),zE.add("rect",(function(e){const{x:t,y:n,size:r}=e,i=void 0===e.width?r:e.width,o=void 0===e.height?r:e.height;return{type:"rect",fill:"black",x:t-i/2,y:n-o/2,width:i,height:o}}));const FE=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:zE;return function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=e.get(t.type);if(n){const e=n(t);return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Object.keys(t).forEach((n=>{void 0!==wE[n]&&"transform"!==n&&(e[n]=t[n])}))}(e,t),void 0!==t.data&&(e.data=t.data),e}return n}};function jE(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{dock:n="center",displayOrder:r=0,prioOrder:i=0,preferredSize:o=0,minimumLayoutMode:a,show:s=!0}=e;n=n||"center";return{computePreferredSize(e){let{inner:n,outer:r,children:i}=e;return"function"==typeof o?o({inner:n,outer:r,children:i,dock:this.dock()},t):o},dock(e){return void 0!==e?(n=e,this):"function"==typeof n?n(t):n},displayOrder(e){return void 0!==e?(r=e,this):"function"==typeof r?r(t):r},prioOrder(e){return void 0!==e?(i=e,this):"function"==typeof i?i(t):i},minimumLayoutMode(e){return void 0!==e?(a=e,this):"function"==typeof a?a(t):a},show(e){return void 0!==e?(s=e,this):"function"==typeof s?s(t):s}}}const $E=e=>["on","preferredSize","created","beforeMount","mounted","resize","beforeUpdate","updated","beforeRender","render","beforeUnmount","beforeDestroy","destroyed","defaultSettings","data","settings","formatter","scale","chart","dockConfig","mediator","style","resolver","registries","_DO_NOT_USE_getInfo","symbol","isVisible"].some((t=>t===e));function HE(e,t,n){const{require:r=[]}=t,i=t.mediator||{},{settings:o,formatter:a,scale:s,data:l,renderer:c,chart:u,dockConfig:d,mediator:f,instance:h,rect:p,style:m,registries:g,resolver:y,update:v,_DO_NOT_USE_getInfo:b,symbol:x,isVisible:S}=n;e.emit=()=>{},S&&(e.isVisible=S),Object.defineProperty(e,"settings",{get:o}),Object.defineProperty(e,"data",{get:l}),Object.defineProperty(e,"formatter",{get:a}),Object.defineProperty(e,"scale",{get:s}),Object.defineProperty(e,"mediator",{get:f}),Object.defineProperty(e,"style",{get:m}),Object.defineProperty(e,"registries",{get:g}),p&&Object.defineProperty(e,"rect",{get:p}),b&&(e._DO_NOT_USE_getInfo=b),Object.keys(t).forEach((n=>{$E(n)||("function"==typeof t[n]?e[n]=t[n].bind(e):e[n]=t[n])})),r.forEach((t=>{"renderer"===t?Object.defineProperty(e,"renderer",{get:c}):"chart"===t?Object.defineProperty(e,"chart",{get:u}):"dockConfig"===t?Object.defineProperty(e,"dockConfig",{get:d}):"instance"===t?Object.defineProperty(e,"instance",{get:h}):"update"===t&&v?Object.defineProperty(e,"update",{get:v}):"resolver"===t?Object.defineProperty(e,"resolver",{get:y}):"symbol"===t&&Object.defineProperty(e,"symbol",{get:x})})),Object.keys(i).forEach((t=>{e.mediator.on(t,i[t].bind(e))}))}function BE(e,t,n){const r=t=>e[t]?(n.warn("Deprecation Warning the ".concat(t," property should be moved into layout: {} property")),e[t]):e.layout?e.layout[t]:void 0,i={};return i.displayOrder=r("displayOrder"),i.dock=r("dock"),i.prioOrder=r("prioOrder"),i.minimumLayoutMode=r("minimumLayoutMode"),e.layout=e.layout||{},e.layout.displayOrder=void 0!==i.displayOrder?i.displayOrder:e.layout.displayOrder,e.layout.prioOrder=void 0!==i.prioOrder?i.prioOrder:e.layout.prioOrder,e.layout.dock=i.dock||e.layout.dock,e.layout.minimumLayoutMode=i.minimumLayoutMode||e.layout.minimumLayoutMode,i.show=e.show,i.preferredSize=t,i}function VE(e,t,n){Object.keys(n.on||{}).forEach((r=>{e.eventListeners=e.eventListeners||[];const i=n.on[r].bind(e);e.eventListeners.push({event:r,listener:i}),t.on(r,i)})),e.emit=function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return t.emit(e,...r)}}function UE(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{defaultSettings:n={},_DO_NOT_USE_getInfo:r=(()=>({}))}=e,{chart:i,container:o,mediator:a,registries:s,theme:l,renderer:c}=t,u=LM.mixin({});let d,f,h,p,m,g=t.settings||{},y=Hy(!0,{},n,g),v=[],b=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:mE,n={};return{resolve:function(r){let{data:i,settings:o,defaults:a={},scaled:s}=r;const l=n.norm=t.normalizeSettings(o,a,e.chart),c={scale:e.chart.scale,formatter:e.chart.formatter};s&&Object.keys(s).forEach((e=>{l[e]&&t.updateScaleSize(l,e,s[e])}));const u=[];if(!i||!Array.isArray(i.items)){const e={data:i,resources:c};let r=t.resolveForItem(e,n.norm,-1);return{settings:n.norm,item:r}}{let e;for(let r=0,o=i.items.length;r<o;r++){e={datum:i.items[r],data:i,resources:c};let o=t.resolveForItem(e,n.norm,r);o.data=i.items[r],u.push(o)}}return{settings:n.norm,items:u}}}}({chart:i}),x=!1;const S={nodes:[],chart:i,config:y.brush||{},renderer:null},w={tap:[],over:[]},M=[],E={},k=Hy({},g);function C(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{},r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(){const i=void 0!==e[t],o=void 0!==g[t];let a;for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];return i&&("function"==typeof e[t]?a=e[t].call(E,...l):r&&(a=e[t])),o&&("function"==typeof g[t]?a=g[t].call(k,...l):r&&(a=g[t])),i||o||(a=n.call(E,...l)),a}}const T=C("preferredSize",(()=>0),!0),A=C("resize",(e=>{let{inner:t}=e;return t})),O=C("created"),N=C("beforeMount"),q=C("mounted"),D=C("beforeUnmount"),R=C("beforeUpdate"),I=C("updated"),_=C("beforeRender"),P=C("beforeDestroy"),L=C("destroyed"),z=e.render,F=()=>{y.brush&&(y.brush.consume||[]).forEach((e=>{e.context&&e.style&&M.push(yE(S,e))}))},j=()=>{y.brush&&(y.brush.trigger||[]).forEach((e=>{"over"===e.on?w.over.push(e):w.tap.push(e)}))};Object.defineProperty(S,"data",{get:()=>v});const $=y.renderer||e.renderer,H=$?c||s.renderer($)():c||s.renderer()();"function"==typeof H.settings&&H.settings(y.rendererSettings),S.renderer=H;const B={resources:i.logger?{logger:i.logger()}:{}};let V=jE(BE(y,T,i.logger()),B);const U=e=>{e.key=y.key,e.element=H.element()},W=()=>{};W.dockConfig=()=>V,W.set=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(e.settings&&(g=e.settings,y=Hy(!0,{},n,e.settings),V=jE(BE(y,T,i.logger()),B),S.config=y.brush||{}),y.scale&&(d=i.scale(y.scale)),y.data){const{rendererSettings:e}=y,t="function"==typeof(null==e?void 0:e.progressive)&&e.progressive(),n=YS(y.data,{dataset:i.dataset,collection:i.dataCollection},{logger:i.logger()},i.dataCollection);t?t.isFirst?(v=n,v.items&&(v.items=[...n.items])):v.items&&(v.items=[...v.items,...n.items||[]]):v=n}else v=d?d.data():[];"string"==typeof y.formatter||"object"==typeof y.formatter?f=i.formatter(y.formatter):d&&d.data().fields&&(f=d.data().fields[0].formatter()),m=l.style(y.style||{})},W.resize=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=A({inner:e,outer:t});p=n?H.size(n):H.size(e),k.rect=Hy(!0,{computedPhysical:p.computedPhysical,computedOuter:t.computed||t,computedInner:e.computed||e},e),p=Hy(!0,{computedOuter:t.computed||t,computedInner:e.computed||e},p)},W.getRect=()=>k.rect;const Y=()=>{const e=H.renderArgs?H.renderArgs.slice(0):[],{rendererSettings:t}=y;let n=v;const r="function"==typeof(null==t?void 0:t.progressive)&&t.progressive();return v.items&&r&&(n=Uy(Uy({},v),{},{items:v.items.slice(r.start,r.end)})),e.push({data:n}),e};let X,G,K;function J(e){const{rendererSettings:t}=y,n="function"==typeof(null==t?void 0:t.progressive)&&t.progressive();n?n.isFirst?S.nodes=[...e||[]]:S.nodes&&(S.nodes=[...S.nodes,...e||[]]):S.nodes=e}W.beforeMount=N,W.beforeRender=()=>{_({size:p})},W.render=()=>{const e=z.call(E,...Y());J(e),H.render(e),X=e,G=k.rect.computed},W.hide=()=>{W.unmount(),H.size({x:0,y:0,width:0,height:0}),H.clear()},W.beforeUpdate=()=>{R({settings:y,data:v})},W.update=()=>{K&&K.stop();const{rendererSettings:e,brush:t,animations:n}=y;if("function"==typeof(null==e?void 0:e.transform)&&e.transform())return H.render(),void(X=null);const r=z.call(E,...Y());J(r),M.forEach((e=>e.cleanUp())),M.length=0,w.tap=[],w.over=[],t&&(F(),j()),M.forEach((e=>{e.isActive()&&e.update()})),X&&n&&("function"==typeof n.enabled?n.enabled():n.enabled)?(n.compensateForLayoutChanges&&n.compensateForLayoutChanges({currentNodes:X,currentRect:k.rect.computed,previousRect:G}),K=function(e,t,n,r){let i,{old:o,current:a}=e,{renderer:s}=t,l=[],c={nodes:[],ips:[]},u={nodes:[],ips:[]},d={nodes:[],ips:[]},f=[],h=null;const p=n.trackBy||cE,m={start(){let e={};if(o.forEach(((t,n)=>{let r=p(t,n);e[r]=t})),a.forEach(((t,n)=>{let r=p(t,n);if(e[r]){if("path"===t.type&&t.points&&t.points.length>0&&"trend"!==t.data.source.key){const n=function(e,t){const n=e.points.filter((e=>!e.dummy)),r=t.points.filter((e=>!e.dummy)),i=r.map((e=>e.data.major.value)),o=n.filter((e=>i.includes(e.data.major.value))).map((e=>e.data.major.value)),a=n.filter((e=>o.includes(e.data.major.value))),s=r.filter((e=>o.includes(e.data.major.value)));return{old:a,current:s}}(e[r],t);d.ips.push(lE(Hy({},e[r],{points:n.old}),Hy({},t,{points:n.current}))),l.push(Hy({},e[r],{commonPoints:n.old}))}else d.ips.push(lE(e[r],t)),l.push(e[r]);d.nodes.push(t),e[r]=!1}else c.nodes.push(t),c.ips.push(lE(Hy({},t,{r:.001,opacity:0}),t))})),Object.keys(e).forEach((t=>{e[t]&&(u.nodes.push(e[t]),u.ips.push(lE(e[t],Hy({},e[t],{r:1e-4,opacity:0}))))})),f.push({name:"exiting",easing:nE,duration:200,tweens:u.ips,nodes:[...l]}),f.push({name:"updating",easing:iE,duration:400,tweens:d.ips,nodes:[]}),f.push({name:"entering",easing:rE,duration:200,tweens:c.ips,nodes:[...d.nodes]}),n.isMainComponent){var t;const e=null===(t=n.isMainComponent)||void 0===t?void 0:t.filterFn,i=e?l.filter(e).length:l.length,{isInit:o,shouldBeRemoved:a}=r.getValue("animations.updatingStageMeta");!1===o?(r.setValue("animations.updatingStageMeta.shouldBeRemoved",0===i),r.setValue("animations.updatingStageMeta.isInit",!0)):r.setValue("animations.updatingStageMeta.shouldBeRemoved",a&&0===i)}f.length&&(h=s.getScene(a),f[0].started=Date.now(),"undefined"!=typeof window&&(i=window.requestAnimationFrame(m.tick)))},tick(){let e=f[0];e||m.stop(),e.started||(e.started=Date.now());let t=(Date.now()-e.started)/e.duration,n=[],o=e.tweens.map((n=>n(e.easing(Math.min(1,t)))));if(n.push(...o),n.push(...e.nodes),s.render(n),t>=1){f.shift();const{isInit:e,shouldBeRemoved:t}=r.getValue("animations.updatingStageMeta");f.length?"updating"===f[0].name&&t&&f.shift():(!0===e&&r.setValue("animations.updatingStageMeta.isInit",!1),m.stop())}i&&(i=window.requestAnimationFrame(m.tick))},stop(){i&&(window.cancelAnimationFrame(i),i=!1)},inProgress:()=>!!i,get targetScene(){return h}};return m}({old:X,current:r},{renderer:H},n,i.storage),K.start()):H.render(r),X=r,G=k.rect.computed,H.setKey&&"string"==typeof g.key&&H.setKey(g.key)},W.updated=I,W.destroy=()=>{W.unmount(),P(h),H.destroy(),L(),h=null};const Q=e=>{S.nodes=e,M.forEach((e=>{e.isActive()&&e.update()})),H.render(e)};return HE(E,e,{settings:()=>y,data:()=>v,scale:()=>d,formatter:()=>f,renderer:()=>H,chart:()=>i,dockConfig:()=>V,mediator:()=>a,instance:()=>k,rect:()=>k.rect,style:()=>m,update:()=>Q,registries:()=>s,resolver:()=>b,symbol:()=>FE(s.symbol)}),HE(k,g,{settings:()=>y,data:()=>v,scale:()=>d,formatter:()=>f,renderer:()=>H,chart:()=>i,dockConfig:()=>V,mediator:()=>a,style:()=>m,_DO_NOT_USE_getInfo:r.bind(E),isVisible:()=>x}),W.getBrushedShapes=function(e,t,n){const r=[];if(y.brush&&y.brush.consume){const o=i.brush(e),a=H.findShapes("*");y.brush.consume.filter((t=>t.context===e)).forEach((e=>{for(let i=0;i<a.length;i++){const s=a[i];s.data&&o.containsMappedData(s.data,n||e.data,t)&&(U(s),r.push(s),a.splice(i,1),i--)}}))}return r},W.findShapes=e=>{var t;const n=(null!==(t=K)&&void 0!==t&&t.inProgress()?K.targetScene:H).findShapes(e);for(let e=0,t=n.length;e<t;e++)U(n[e]);return n},W.shapesAt=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=H.itemsAt(e);let r;r=t&&"stop"===t.propagation&&n.length>0?[n.pop().node]:n.map((e=>e.node));for(let e=0,t=r.length;e<t;e++)U(r[e]);return r},W.brushFromShapes=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.contexts=Array.isArray(t.contexts)?t.contexts:[];vE({nodes:e,action:t.action||"toggle",trigger:t,chart:i,data:S.data})},W.mount=()=>{h=H.element&&H.element()?h:H.appendTo(o),H.setKey&&"string"==typeof g.key&&H.setKey(g.key),y.brush&&(F(),j()),VE(k,u,g),VE(E,u,e),x=!0},W.mounted=()=>q(h),W.unmount=()=>{[k,E].forEach((e=>{!function(e,t){e.eventListeners&&(e.eventListeners.forEach((e=>{let{event:n,listener:r}=e;t.removeListener(n,r)})),e.eventListeners.length=0),e.emit=()=>{}}(e,u)})),w.tap=[],w.over=[],M.forEach((e=>{e.cleanUp()})),M.length=0,D(),x=!1},W.onBrushTap=e=>{w.tap.forEach((t=>{(function(e){let{e:t,t:n,config:r}=e;return bE({collisions:xE(t,n,r.renderer),t:n,config:r,action:SE(n.action,t,"toggle")})})({e:e,t:t,config:S})&&"stop"===t.globalPropagation&&i.toggleBrushing(!0)}))},W.onBrushOver=e=>{w.over.forEach((t=>{(function(e){let{e:t,t:n,config:r}=e;return bE({collisions:xE(t,n,r.renderer),t:n,config:r,action:SE(n.action,t,"set")})})({e:e,t:t,config:S})&&"stop"===t.globalPropagation&&i.toggleBrushing(!0)}))},W.def=E,W.ctx=k,W.renderer=()=>H,W.set({settings:g}),O(),W}function WE(e){const t=Hy(!0,{},e),n={getAll:()=>t,getValue:(e,n)=>function(e,t,n){if(void 0===e||void 0===t)return n;const r=t.split(".");let i=e;for(let e=0;e<r.length;++e){const t=r[e];if(void 0===i[t])return n;i=i[t]}return i}(t,e,n),setValue:(e,n)=>function(e,t,n){if(void 0===e||void 0===t)return;const r=t.split("."),i=r[r.length-1];let o=e;for(let e=0;e<r.length-1;++e){const t=r[e];void 0===o[t]&&(o[t]=Number.isNaN(+r[e+1])?{}:[]),o=o[t]}void 0!==n?o[i]=n:delete o[i]}(t,e,n)};return n}const YE=1e-12;function XE(e,t,n){const r=TE(function(e,t){const n=IE(e,t)/IE(t,t)||1;return{x:t.x*n,y:t.y*n}}(AE(n,e),AE(t,e)),e);return r}function GE(e,t,n){return RE(e,n)+RE(t,n)-RE(e,t)<YE}function KE(e,t){return e.x>=t.x&&e.x+e.width<=t.x+t.width&&e.y>=t.y&&e.y+e.height<=t.y+t.height}function JE(e){return e.x1===e.x2&&e.y1===e.y2}function QE(e){return e.width<=0||e.height<=0}function ZE(e){return e.r<=0}function ek(e){return e.edges.length<=2}function tk(e,t){let n=!1;for(let r=0,i=t.edges.length;r<i;r++)if(n=lk(e,tv(t.edges[r])),!0===n)return!0;return!1}function nk(e,t){let n=!1;const{numPolygons:r,polygons:i}=t;for(let t=0;t<r;t++){if(n=yk(e,i[t]),!0===n)return!0}return!1}function rk(e,t){if(ZE(e))return!1;return DE({x:e.cx,y:e.cy},t)<=e.r**2}function ik(e,t){if(QE(t)||ZE(e))return!1;const n=t.width/2,r=t.height/2,i=t.x+n,o=t.y+r,a=e.r,s=e.cx,l=e.cy,c=Math.abs(s-i),u=Math.abs(l-o);if(c>n+a||u>r+a)return!1;if(c<=n||u<=r)return!0;return(c-n)**2+(u-r)**2<=a**2}function ok(e,t){if(ZE(e)||JE(t))return!1;const[n,r]=Qy(t);if(rk(e,n)||rk(e,r))return!0;const i={x:e.cx,y:e.cy},o=XE(n,r,i);return DE(o,i)<=e.r**2&&GE(n,r,o)}function ak(e,t){if(ek(t)||ZE(e))return!1;if(sk(t,{x:e.cx,y:e.cy}))return!0;const n=t.edges.length;for(let r=0;r<n;r++){if(ok(e,tv(t.edges[r])))return!0}return!1}function sk(e,t){if(ek(e)||!fk(e.boundingRect(),t))return!1;const{x:n,y:r}=t,i=e.vertices;let o,a,s,l,c;for(o=!1,l=-1,a=i.length,s=a-1;++l<a;s=l){if(i[l].x===n&&i[l].y===r)return!0;if(i[l].y===i[s].y&&i[l].y===r&&(n-i[l].x)*(n-i[s].x)<=0)return!0;if(i[l].y<r&&r<=i[s].y||i[s].y<r&&r<=i[l].y){if(c=(i[s].x-i[l].x)*(r-i[l].y)/(i[s].y-i[l].y)+i[l].x,n===c)return!0;n<c&&(o=!o)}}return o}function lk(e,t){if(ek(e))return!1;for(let n=0,r=e.edges.length;n<r;n++){if(pk(t,tv(e.edges[n])))return!0}const[n,r]=Qy(t);return sk(e,n)||sk(e,r)}function ck(e,t){if(ek(e))return!1;for(let n=0,r=e.edges.length;n<r;n++){if(hk(t,tv(e.edges[n])))return!0}const[n,r,i,o]=Zy(t);return sk(e,n)||sk(e,r)||sk(e,i)||sk(e,o)}function uk(e,t){return!QE(e)&&!QE(t)&&(e.x<=t.x+t.width&&t.x<=e.x+e.width&&e.y<=t.y+t.height&&t.y<=e.y+e.height)}function dk(e,t){if(QE(e)||QE(t))return!1;return[{x:t.x,y:t.y},{x:t.x+t.width,y:t.y},{x:t.x+t.width,y:t.y+t.height},{x:t.x,y:t.y+t.height}].every((t=>fk(e,t)))}function fk(e,t){return!QE(e)&&(t.x>=e.x&&t.x<=e.x+e.width&&t.y>=e.y&&t.y<=e.y+e.height)}function hk(e,t){if(JE(t)||QE(e))return!1;const[n,r]=Qy(t);if(fk(e,n)||fk(e,r))return!0;const i=Zy(e);let o=i.length;for(let e=0;e<o;e++){if(pk(tv([i[e],i[3!==e?e+1:0]]),t))return!0}return!1}function pk(e,t){const[n,r]=Qy(e),[i,o]=Qy(t),a=NE(r,n),s=qE(r,n),l=NE(o,i),c=qE(o,i),u=NE(n,i),d=qE(n,i);let f=c*a-l*s;const h=l*d-c*u,p=a*d-s*u;let m,g;if(0===a&&0===s)return!1;if(0===l&&0===c)return!1;if(0===f){if(0===h&&0===p){if(0===a){if(0===s)return n.x===r.x&&n.y===r.y;m=qE(i,n)/s,g=qE(o,n)/s}else m=(i.x-n.x)/a,g=(o.x-n.x)/a;return!(m<0&&g<0||m>1&&g>1)}return!1}const y=h/f;return f=p/f,y>=0&&y<=1&&f>=0&&f<=1}function mk(e,t){if(JE(e))return!1;const[n,r]=Qy(e);return GE(n,r,t)}function gk(e,t){const n=e.boundingRect(),r=t.boundingRect();return!!uk(n,r)&&(dk(n,r)?tk(e,t):tk(t,e))}function yk(e,t){const n=e.boundingRect(),r=t.boundingRect();return!!uk(n,r)&&(dk(r,n)?function(e,t){let n=!1;const{numPolygons:r,polygons:i}=e;for(let e=0;e<r;e++)if(n=gk(t,i[e]),!0===n)return!0;return!1}(e,t):function(e,t){let n=!1;for(let r=0,i=t.edges.length;r<i;r++)if(n=xk(e,tv(t.edges[r])),!0===n)return!0;return!1}(e,t))}function vk(e,t){if(ZE(e))return!1;if(bk(t,{x:e.cx,y:e.cy}))return!0;const{numPolygons:n,polygons:r}=t;for(let t=0;t<n;t++){const n=r[t],i=n.edges.length;for(let t=0;t<i;t++){if(ok(e,tv(n.edges[t])))return!0}}return!1}function bk(e,t){if(!fk(e.boundingRect(),t))return!1;const{x:n,y:r}=t,i=e.numPolygons;let o,a,s,l,c,u,d=!1;for(a=0;a<i;a++)for(o=e.vertices[a],c=-1,s=o.length,l=s-1;++c<s;l=c){if(o[c].x===n&&o[c].y===r)return!0;if(o[c].y===o[l].y&&o[c].y===r&&(n-o[c].x)*(n-o[l].x)<=0)return!0;if(o[c].y<r&&r<=o[l].y||o[l].y<r&&r<=o[c].y){if(u=(o[l].x-o[c].x)*(r-o[c].y)/(o[l].y-o[c].y)+o[c].x,n===u)return!0;n<u&&(d=!d)}}return d}function xk(e,t){const[n,r]=Qy(t);if(bk(e,n)||bk(e,r))return!0;const{numPolygons:i,polygons:o}=e;for(let e=0;e<i;e++){const n=o[e];for(let e=0,r=n.edges.length;e<r;e++){if(pk(t,tv(n.edges[e])))return!0}}return!1}function Sk(e,t){const[n,r,i,o]=Zy(t);if(bk(e,n)||bk(e,r)||bk(e,i)||bk(e,o))return!0;const{numPolygons:a,polygons:s}=e;for(let e=0;e<a;e++){const n=s[e];for(let e=0,r=n.edges.length;e<r;e++){if(hk(t,tv(n.edges[e])))return!0}}return!1}const wk=/^\$/,Mk="@extend";function Ek(e){throw new Error('Cyclical reference for "'.concat(e,'"'))}function kk(e,t,n){if("string"==typeof e){let r=t[e];return-1!==n.indexOf(e)&&Ek(e),wk.test(r)?(n.push(e),kk(r,t,n)):r}let r=e;const i=Hy(!0,{},t,e),o={};if(e[Mk]){const o=e[Mk];-1!==n.indexOf(o)&&Ek(o);let a=n.slice();a.push(o),r=Hy(!0,{},kk(i[o],t,a),e)}return Object.keys(r).forEach((e=>{let t=n.slice();if(e===Mk||wk.test(e))return;o[e]=r[e];let a=o[e];wk.test(a)&&a in i?(-1!==n.indexOf(a)&&Ek(a),t.push(a),a=i[a],"object"==typeof a||wk.test(a)&&a in i?o[e]=kk(a,i,t):o[e]=a):"object"==typeof a&&(o[e]=kk(a,i,t))})),o}function Ck(e,t){return kk(e,t,[])}function Tk(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={},n=e;const r=e=>{e.forEach((e=>{const n=Array.isArray(e.colors[0])?e.colors:[e.colors];t[e.key]={colors:n,sizes:n.map((e=>e?e.length:0))}}))},i={palette:(e,n)=>((e,n)=>{const r=t[e];if(!r)return[];const i=r.sizes;for(let e=0;e<i.length;e++)if(n<=i[e])return r.colors[e];return r.colors[i.length-1]})(e,n),setPalettes:r,style:e=>Ck(e,n),setStyle:t=>{n=Hy({},e,t)}};return r(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]),i}function Ak(e){e.x=Math.floor(e.x),e.y=Math.floor(e.y),e.width=Math.floor(e.width),e.height=Math.floor(e.height)}function Ok(e){const t={center:{minWidthRatio:.5,minHeightRatio:.5,minWidth:0,minHeight:0}};return Hy(!0,t,e),t.center.minWidthRatio=Math.min(Math.max(t.center.minWidthRatio,0),1),t.center.minHeightRatio=Math.min(Math.max(t.center.minHeightRatio,0),1),t.center.minWidth=Math.max(t.center.minWidth,0),t.center.minHeight=Math.max(t.center.minHeight,0),t}function Nk(e,t,n,r,i){return{x:isNaN(e)?0:e,y:isNaN(e)?0:t,width:isNaN(e)?0:n,height:isNaN(e)?0:r,margin:isNaN(i)?0:i}}function qk(e,t,n){if(void 0===e.cachedSize){const r=e.config.dock();let i,o=e.comp.preferredSize({inner:t,outer:n,dock:r});isNaN(o)?o&&!isNaN(o.size)&&(o.width=o.size,o.height=o.size):o={width:o,height:o},i="top"===r||"bottom"===r?o.height:"right"===r||"left"===r?o.width:Math.max(o.width,o.height),e.cachedSize=Math.ceil(i),e.edgeBleed=o.edgeBleed||0}return e.cachedSize}function Dk(e,t){switch(t.config.dock()){case"top":e.y+=t.cachedSize,e.height-=t.cachedSize;break;case"bottom":e.height-=t.cachedSize;break;case"left":e.x+=t.cachedSize,e.width-=t.cachedSize;break;case"right":e.width-=t.cachedSize}}function Rk(e,t){const n=t.edgeBleed;n&&(e.left=Math.max(e.left,n.left||0),e.right=Math.max(e.right,n.right||0),e.top=Math.max(e.top,n.top||0),e.bottom=Math.max(e.bottom,n.bottom||0))}function Ik(e,t,n){t.x<n.left&&(t.width-=n.left-t.x,t.x=n.left);const r=e.width-(t.x+t.width);r<n.right&&(t.width-=n.right-r),t.y<n.top&&(t.height-=n.top-t.y,t.y=n.top);const i=e.height-(t.y+t.height);i<n.bottom&&(t.height-=n.bottom-i)}function _k(e,t,n,r,i){const o=Hy({},t),a=Hy({},n);Dk(o,r),Rk(a,r),Ik(e,o,a);const s=function(e,t,n){const r=Math.min(n.center.minWidth,e.width)||Math.max(e.width*n.center.minWidthRatio,1),i=Math.min(n.center.minHeight,e.height)||Math.max(e.height*n.center.minHeightRatio,1);return t.width>=r&&t.height>=i}(e,o,i);return!!s&&(Dk(t,r),Rk(n,r),!0)}function Pk(e){return{x:e.margin.left+e.x*e.scaleRatio.x,y:e.margin.top+e.y*e.scaleRatio.y,width:e.width*e.scaleRatio.x,height:e.height*e.scaleRatio.y}}function Lk(e){return ev([].concat(...e.map(Zy)))}function zk(e){let{visible:t,layoutRect:n,reducedRect:r,containerRect:i,translation:o}=e;const a=Nk(r.x,r.y,r.width,r.height),s=Nk(r.x,r.y,r.width,r.height),l={},c=t.slice(),u=c.slice().sort(((e,t)=>e.config.displayOrder()-t.config.displayOrder()));return t.sort(((e,t)=>{if(e.referencedDocks.length>0&&t.referencedDocks.length>0)return 0;if(t.referencedDocks.length>0)return-1;if(e.referencedDocks.length>0)return 1;const n=e.config.displayOrder()-t.config.displayOrder();return 0===n?c.indexOf(e)-c.indexOf(t):n})).forEach((e=>{let t={},c={};switch(e.config.dock()){case"top":t.height=c.height=e.cachedSize,t.width=n.width,c.width=a.width,t.x=n.x,c.x=a.x,t.y=c.y=a.y-e.cachedSize,a.y-=e.cachedSize,a.height+=e.cachedSize;break;case"bottom":t.x=n.x,c.x=a.x,t.y=c.y=a.y+a.height,t.width=n.width,c.width=a.width,t.height=c.height=e.cachedSize,a.height+=e.cachedSize;break;case"left":t.x=c.x=s.x-e.cachedSize,t.y=n.y,c.y=s.y,t.width=c.width=e.cachedSize,t.height=n.height,c.height=s.height,s.x-=e.cachedSize,s.width+=e.cachedSize;break;case"right":t.x=c.x=s.x+s.width,t.y=n.y,c.y=s.y,t.width=c.width=e.cachedSize,t.height=n.height,c.height=s.height,s.width+=e.cachedSize;break;case"center":t.x=c.x=r.x,t.y=c.y=r.y,t.width=c.width=r.width,t.height=c.height=r.height;break;default:if(e.referencedDocks.length>0){const n=e.referencedDocks.map((e=>l[e])).filter((e=>!!e));n.length>0&&(t=Lk(n.map((e=>e.outerRect))),c=Lk(n.map((e=>e.r))))}}e.key&&(l[e.key]={r:c,outerRect:t}),function(e,t,n,r){const i={x:r.width/n.width,y:r.height/n.height},o={left:0,top:0};if(n.preserveAspectRatio){const e=i.x<i.y,t=Math.min(i.x,i.y);i.x=t,i.y=t;const a=e?"height":"width",s=(r[a]-n[a]*i.x)*n.align;o.left=e?0:s,o.top=e?s:0}e.scaleRatio=i,e.margin=o,t.scaleRatio=i,t.margin=o,n.scaleRatio=i,n.margin=o}(c,t,n,i),c.edgeBleed=e.edgeBleed,c.computed=Pk(c),t.edgeBleed=e.edgeBleed,t.computed=Pk(t),c.x+=o.x,c.y+=o.y,t.x+=o.x,t.y+=o.y,e.comp.resize(c,t),e.cachedSize=void 0,e.edgeBleed=void 0})),u}function Fk(e,t,n){const r=e.layoutModes||{},i=t.minimumLayoutMode();let o=t.show();return o&&"object"==typeof i?o=r[i.width]&&r[i.height]&&n.width>=r[i.width].width&&n.height>=r[i.height].height:o&&void 0!==i&&(o=r[i]&&n.width>=r[i].width&&n.height>=r[i].height),o}function jk(e){if(!e.resize||"function"!=typeof e.resize)throw new Error("Component is missing resize function");if(!e.dockConfig&&!e.preferredSize)throw new Error("Component is missing preferredSize function")}function $k(e){let t=Ok(e);const n={};return n.layout=function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(!e||isNaN(e.x)||isNaN(e.y)||isNaN(e.width)||isNaN(e.height))throw new Error("Invalid rect");if(!n.length)return{visible:[],hidden:[],ordered:[]};const{logicalContainerRect:r,containerRect:i}=function(e,t){const n={x:0,y:0,width:0,height:0},r={x:0,y:0,width:0,height:0};return n.width=e.width||0,n.height=e.height||0,void 0!==t.size&&(n.width=isNaN(t.size.width)?n.width:t.size.width,n.height=isNaN(t.size.height)?n.height:t.size.height),void 0!==t.logicalSize?(r.width=isNaN(t.logicalSize.width)?n.width:t.logicalSize.width,r.height=isNaN(t.logicalSize.height)?n.height:t.logicalSize.height,r.align=isNaN(t.logicalSize.align)?.5:Math.min(Math.max(t.logicalSize.align,0),1),r.preserveAspectRatio=t.logicalSize.preserveAspectRatio):(r.width=n.width,r.height=n.height,r.preserveAspectRatio=!1),Ak(r),Ak(n),{logicalContainerRect:r,containerRect:n}}(e,t),[o,a]=function(e,t,n){const r=[],i=[];for(let o=0;o<e.length;++o){const a=e[o];jk(a);let s=a.dockConfig;const l=a.key,c=s.dock(),u=/@/.test(c)?c.split(",").map((e=>e.replace(/^\s*@/,""))):[];Fk(t,s,n)?r.push({comp:a,key:l,config:s,referencedDocks:u}):i.push({comp:a,key:l,config:s,referencedDocks:u})}return[r,i]}(n,t,r),s=function(e){let{layoutRect:t,visible:n,hidden:r,settings:i}=e;const o=Nk(t.x,t.y,t.width,t.height),a={left:0,right:0,top:0,bottom:0},s=n.slice();s.sort(((e,t)=>e.config.prioOrder()-t.config.prioOrder()));for(let e=0;e<s.length;++e){const n=s[e];qk(n,o,t),_k(t,o,a,n,i)||(r.push(s.splice(e,1)[0]),--e)}!function(e,t){if(0!==t.length)for(let n=0;n<e.length;++n){let r=e[n];if(r.referencedDocks.length){const i=r.referencedDocks.every((e=>t.some((t=>t.key===e))));i&&t.push(e.splice(n,1)[0])}}}(n,r);const l=n.filter((e=>-1!==s.indexOf(e)));return n.length=0,n.push(...l),Ik(t,o,a),o}({layoutRect:r,visible:o,hidden:a,settings:t}),l=zk({visible:o,layoutRect:r,reducedRect:s,containerRect:i,translation:{x:e.x,y:e.y}});return a.forEach((e=>{e.comp.visible=!1;const t=Nk();e.comp.resize(t,t)})),{visible:o.map((e=>e.comp)),hidden:a.map((e=>e.comp)),ordered:l.map((e=>e.comp))}},n.settings=function(e){t=Ok(e)},n}const Hk=(e,t)=>{for(let n=0;n<e.length;n++){const r=e[n];if(r.hasKey&&r.key===t)return e[n]}return null},Bk=e=>null==e?void 0:e.map((e=>{const t=e.instance.dockConfig();return{preferredSize:n=>t.computePreferredSize(Uy(Uy({},n),{},{children:Bk(e.children)}))}})),Vk=(e,t)=>({visible:[],hidden:t,ordered:[]}),Uk=e=>(t,n)=>{var r;const i=n.map(((e,t)=>{const n=e.instance.dockConfig();return{index:t,key:e.key,dockConfig:n,resize:e.instance.resize,preferredSize:t=>n.computePreferredSize(Uy(Uy({},t),{},{children:Bk(e.children)}))}})),o=e=>n[e.index],{visible:a=i,hidden:s=[],ordered:l=a}=null!==(r=e(t,i))&&void 0!==r?r:{};return{visible:a.map(o),hidden:s.map(o),ordered:l.map(o)}},Wk=e=>"function"==typeof e?Uk(e):(e=>{const t=$k(e);return Uk(((e,n)=>t.layout(e,n)))})(e);function Yk(e,t,n){const r=t.left-n.left,i=t.top-n.top,o=nv(e),a=Hy(!0,{},e);switch(o){case"circle":a.cx+=r,a.cy+=i;break;case"polygon":for(let e=0,t=a.vertices.length;e<t;e++){const t=a.vertices[e];t.x+=r,t.y+=i}break;case"geopolygon":for(let e=0;e<a.vertices.length;e++){const t=a.vertices[e];for(let e=0,n=t.length;e<n;e++){const n=t[e];n.x+=r,n.y+=i}}break;case"line":a.x1+=r,a.y1+=i,a.x2+=r,a.y2+=i;break;case"point":case"rect":a.x+=r,a.y+=i}return a}const Xk=(e,t,n)=>{const r=t.instance.renderer().element();if(isNaN(n)||!r||!e||!e.children)return;const i=e.children[Math.max(0,n)];if(r===i)return;const o=t.instance.def.additionalElements&&t.instance.def.additionalElements().filter(Boolean);e.insertBefore&&void 0!==i?(e.insertBefore(r,i),o&&o.forEach((t=>{e.insertBefore(t,r)}))):(o&&o.forEach((t=>{e.appendChild(t,r)})),e.appendChild(r))};function Gk(e,t){const n=[];let r=0;t.forEach((e=>{n.push(r),r++;const t=e.instance.def.additionalElements&&e.instance.def.additionalElements();t&&(r+=t.length)})),t.forEach(((t,r)=>Xk(e,t,n[r])))}function Kk(e,t){let{element:n,data:r=[],settings:i={},on:o={}}=e;const a=t.registries,s=t.logger,l=Tk(t.style,t.palettes),c=[],u=Hy({},e),d=function(){const e={};return LM.mixin(e),e}();let f=[],h=null,p=null,m=null,g=[],y=()=>{},v=()=>{};const b={};let x=!1;const S=function(e){let{createComponent:t}=e;const n={};let r=[],i=[];const o=e=>{const n=t(e);return n&&(r.push(n),e.components&&(n.children=e.components.map((e=>o(e))).filter((e=>!!e)))),n},a=e=>{const t=r.indexOf(e);-1!==t&&r.splice(t,1)},s=(e,t)=>{for(let n=e.length-1;n>=0;n--){const r=e[n],i=t.find((e=>r.hasKey&&r.key===e.key));i?r.children&&i.components&&s(r.children,i.components):(e.splice(n,1),a(r),r.children&&s(r.children,[]),r.instance.destroy())}},l=e=>{let{compList:t,data:n,excludeFromUpdate:r,formatters:i,scales:a,settingsList:s}=e;return s.map((e=>{const s=Hk(t,e.key);return r.indexOf(e.key)>-1?(delete s.updateWith,s):s?(e.rendererSettings&&"function"==typeof s.instance.renderer().settings&&s.instance.renderer().settings(e.rendererSettings),e.rendererSettings&&"function"==typeof e.rendererSettings.transform&&e.rendererSettings.transform()?(s.applyTransform=!0,s):(s.updateWith={formatters:i,scales:a,data:n,settings:e},e.components&&(s.children=l({compList:s.children||[],data:n,excludeFromUpdate:r,formatters:i,scales:a,settingsList:e.components})),s)):o(e)})).filter((e=>!!e))},c=e=>{let{components:t,hidden:n,layoutFn:r,ordered:i,rect:o,visible:a}=e;const{visible:s,hidden:l,ordered:u}=r(o,t);a.push(...s),n.push(...l),i.push(...u),s.forEach((e=>{if(e.children){var t,r;const o=Wk(null!==(t=null===(r=e.settings)||void 0===r?void 0:r.strategy)&&void 0!==t?t:{});c({components:e.children,hidden:n,layoutFn:o,ordered:i,rect:e.instance.getRect(),visible:a})}})),l.forEach((e=>{e.children&&c({components:e.children,hidden:n,layoutFn:Vk,ordered:i,rect:null,visible:a})}))};return n.destroy=()=>{r.forEach((e=>e.instance.destroy())),r=[],i=[]},n.findComponentByKey=e=>Hk(r,e),n.forEach=e=>{r.forEach(e)},n.layout=e=>{let{layoutSettings:t,rect:n}=e;const r=[],o=[],a=[],s=Wk(t);return c({components:i,hidden:o,layoutFn:s,ordered:a,rect:n,visible:r}),{visible:r,hidden:o,ordered:a}},n.set=e=>{let{components:t}=e;i=t.map((e=>o(e))).filter((e=>!!e))},n.update=e=>{let{components:t,data:n,excludeFromUpdate:r,formatters:o,scales:a}=e;s(i,t),i=l({compList:i,data:n,excludeFromUpdate:r,formatters:o,scales:a,settingsList:t})},n}({createComponent:e=>{if(!a.component.has(e.type))return s.warn("Unknown component: ".concat(e.type)),!1;return{instance:UE(a.component(e.type),{settings:e,chart:u,mediator:d,registries:a,theme:l,container:n}),settings:Hy(!0,{},e),key:e.key,hasKey:void 0!==e.key}}});function w(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{};return function(){const r="function"==typeof e[t];let i;for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return i=r?e[t].call(u,...a):n.call(u,...a),i}}const M=()=>{let e;i.dockLayout?(s.warn('Deprecation Warning: "dockLayout" property should be renamed to "strategy"'),e=i.dockLayout):e=i.strategy;const t=function(e){if("function"==typeof e.getBoundingClientRect){const{width:t,height:n}=e.getBoundingClientRect();return{x:0,y:0,width:t,height:n}}return{x:0,y:0,width:0,height:0}}(n);return S.layout({layoutSettings:e,rect:t})},E=w("created"),k=w("beforeMount"),C=w("mounted"),T=w("beforeUpdate"),A=w("updated"),O=w("beforeRender"),N=w("beforeDestroy"),q=w("destroyed"),D=function(e,t){let{partialData:n}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{formatters:r={},scales:i={},scroll:o={}}=t;y=function(e,t){let{types:n,logger:r}=t;const i={},o=[];return Array.isArray(e)?o.push(...e):(r.warn('Deprecated: "data-source" configuration"'),o.push(e)),o.forEach(((e,t)=>{let o=n(e.type);if(o){let n=e.key;void 0===e.key&&(r.warn("Missing key for dataset. Using index '".concat(t,"' as key.")),n=t);let a=o({key:n,data:e.data,config:e.config});i[n]=a}})),e=>e?i[e]:i[Object.keys(i)[0]]}(e,{logger:s,types:a.data}),n||Object.keys(b).forEach((e=>b[e].clear())),t.palettes&&l.setPalettes(t.palettes),t.style&&l.setStyle(t.style),v=function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:YS;const i={};return(e||[]).forEach((e=>{if(!e.key)throw new Error('Data collection is missing "key" property');if("object"==typeof e.data&&"collection"in e.data)throw new Error("Data config for collections may not reference other collections");i[e.key]=()=>r(e.data,t,n)})),e=>{let t,n;if("string"==typeof e?t=e:"object"==typeof e&&(t=e.key,n=e),!(t in i))throw new Error("Unknown data collection: ".concat(t));"function"==typeof i[t]&&(i[t]=i[t]());let r=i[t];if(n&&n.fields&&n.fields.filter){let e=r.fields.filter(n.fields.filter);r.fields.length!==e.length&&(r=Hy(r,{fields:e}))}return r}}(t.collections,{dataset:y},{logger:s});const c={theme:l,logger:s};h=function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:RM;const i={};return{get(o){let a;return"string"==typeof o&&e[o]?a=o:"object"==typeof o&&"scale"in o&&e[o.scale]&&(a=o.scale),a?(i[a]=i[a]||r(e[a],t,n),i[a]):r(o,t,n)},all(){return Object.keys(e).forEach(this.get),i}}}(i,{dataset:y,collection:v},Uy(Uy({},c),{},{scale:a.scale})),p=function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:XS;const i={};return{get(o){let a;return"string"==typeof o&&e[o]?a=o:"object"==typeof o&&"formatter"in o&&e[o.formatter]?a=o.formatter:"object"==typeof o&&"type"in o&&e[o.type]&&(a=o.type),a?(i[a]=i[a]||r(e[a],t,n),i[a]):r(o||{},t,n)},all(){return Object.keys(e).forEach(this.get),i}}}(r,{dataset:y,collection:v},Uy(Uy({},c),{},{formatter:a.formatter})),m=function(e,t){const n={};for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=FM(e[r],t?t[r]:null));return n}(o,m)};function R(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];const t={},r=e.filter((e=>!!e.key)).map((e=>e.key));g.forEach((e=>{e.key&&-1!==r.indexOf(e.key)?t[e.key]=e:e.destroy()})),g=e.map((e=>{const r=e.key&&t[e.key]?t[e.key]:a.interaction(e.type)(u,d,n);return r.set(e),r}))}const I=e=>{const t=n.getBoundingClientRect(),r="clientX"in e?e.clientX:e.x,i="clientY"in e?e.clientY:e.y,o={x:r-t.left,y:i-t.top},a=[];return f.forEach((e=>{const t=e.instance.getRect();fk(t.computedPhysical?t.computedPhysical:{x:t.margin.left+t.x*t.scaleRatio.x,y:t.margin.top+t.y*t.scaleRatio.y,width:t.width*t.scaleRatio.x,height:t.height*t.scaleRatio.y},o)&&a.push(e)})),a},_=()=>{if(c.length||!n)return;Object.keys(o).forEach((e=>{const t=o[e].bind(u);n.addEventListener(e,t),c.push({key:e,listener:t})}));const e={},t=t=>{t.touches?(e.x=t.touches[0].clientX,e.y=t.touches[0].clientY,e.multiTouch=t.touches.length>1):(e.x=t.clientX,e.y=t.clientY,e.multiTouch=!1),e.time=Date.now(),e.comps=I(e)},r=t=>{const n=e.comps||I(t);if(!n.every((e=>e.instance.def.disableTriggers))&&("touchend"===t.type&&t.preventDefault(),function(e,t){const n=Xy(e),r=n?e.changedTouches[0]:e,i=Date.now()-t.time,o=isNaN(t.x)?0:Math.abs(r.clientX-t.x),a=isNaN(t.y)?0:Math.abs(r.clientY-t.y);return(0===e.button||n)&&!t.multiTouch&&o<=12&&a<=12&&i<=300}(t,e)))for(let e=n.length-1;e>=0;e--){if(n[e].instance.onBrushTap(t),x){x=!1;break}}},i=[];i.push({key:"mousedown",listener:t}),i.push({key:"mouseup",listener:r}),function(e){return"ontouchstart"in e&&"ontouchend"in e||navigator.maxTouchPoints>1}(n)&&(i.push({key:"touchstart",listener:t}),i.push({key:"touchend",listener:r})),i.push({key:"mousemove",listener:e=>{const t=I(e);for(let n=t.length-1;n>=0;n--){if(t[n].instance.onBrushOver(e),x){x=!1;break}}}}),i.forEach((e=>{n.addEventListener(e.key,e.listener),c.push(e)}))},P=()=>{c.forEach((e=>{let{key:t,listener:r}=e;return n.removeEventListener(t,r)})),c.length=0},L=()=>{n.innerHTML="",(()=>{const{components:e=[]}=i;O(),D(r,i),S.set({components:e});const{visible:t,hidden:o,ordered:a}=M();f=t,o.forEach((e=>{e.instance.hide(),e.visible=!1})),t.forEach((e=>e.instance.beforeMount())),t.forEach((e=>e.instance.mount())),t.forEach((e=>e.instance.beforeRender())),t.forEach((e=>e.instance.render())),t.forEach((e=>e.instance.mounted())),t.forEach((e=>{e.visible=!0})),Gk(n,a)})(),_(),R(i.interactions)};return u.layoutComponents=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{excludeFromUpdate:t=[]}=e;e.data&&(r=e.data),e.settings&&(i=e.settings,R(e.settings.interactions)),T(),D(r,i);const{formatters:n,scales:o,components:a=[]}=i;S.update({components:a,data:r,excludeFromUpdate:t,formatters:n,scales:o}),S.forEach((e=>{e.updateWith&&e.instance.set(e.updateWith)})),S.forEach((e=>{e.updateWith&&e.instance.beforeUpdate()})),M()},u.update=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{partialData:t,excludeFromUpdate:o=[]}=e;let a;e.data&&(r=e.data),e.settings&&(i=e.settings,R(e.settings.interactions)),T(),D(r,i,{partialData:t});const{formatters:s,scales:l,components:c=[]}=i;S.update({components:c,data:r,excludeFromUpdate:o,formatters:s,scales:l}),S.forEach((e=>{e.updateWith&&e.instance.set(e.updateWith)})),S.forEach((e=>{e.updateWith&&e.instance.beforeUpdate()}));const u=[],d=[];let h;if(t)S.forEach((e=>{(e.updateWith||e.applyTransform)&&e.visible&&u.push(e)})),h=u;else{const{visible:e,hidden:t,ordered:n}=M();f=e,h=e,a=n,e.forEach((e=>{e.updateWith&&e.visible?u.push(e):d.push(e)})),t.forEach((e=>{e.instance.hide(),e.visible=!1,delete e.updateWith,e.applyTransform=!1}))}d.forEach((e=>e.instance.beforeMount())),d.forEach((e=>e.instance.mount())),h.forEach((e=>e.instance.beforeRender())),h.forEach((e=>{(e.updateWith||e.applyTransform)&&e.visible?e.instance.update():e.instance.render()})),t||Gk(n,a),d.forEach((e=>e.instance.mounted())),u.forEach((e=>e.instance.updated())),f.forEach((e=>{delete e.updateWith,e.visible=!0,e.applyTransform=!1})),A()},u.destroy=()=>{N(),S.destroy(),P(),R(),delete u.update,delete u.destroy,q()},u.getAffectedShapes=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"and",n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,i=[];return f.filter((e=>null==r||e.key===r)).forEach((r=>{const o=r.instance.getBrushedShapes(e,t,n);i=[...i,...o]})),i},u.findShapes=e=>{let t=[];return f.forEach((n=>{const r=n.instance.findShapes(e);t=[...t,...r]})),t},u.componentsFromPoint=e=>I(e).map((e=>e.instance.ctx)),u.shapesAt=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=[];const i=n.getBoundingClientRect();let o=f;if(Array.isArray(t.components)&&t.components.length>0){const e=t.components.map((e=>e.key));o=f.filter((t=>-1!==e.indexOf(t.key))).map((n=>({instance:n.instance,opts:t.components[e.indexOf(n.key)]})))}for(let n=o.length-1;n>=0;n--){const a=o[n],s=Yk(e,i,a.instance.renderer().element().getBoundingClientRect()),l=a.instance.shapesAt(s,a.opts),c=l.length>0&&"stop"===t.propagation;if(r=[...r,...l],r.length>0&&c)return r}return r},u.brushFromShapes=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{components:[]};for(let n=0;n<t.components.length;n++){const r=t.components[n].key;f.filter((e=>r===e.key)).forEach((r=>{let i=e.filter((e=>e.key===r.key));r.instance.brushFromShapes(i,t.components[n])}))}},u.scroll=function(){return function(e,t){return t[e]||(t[e]=zM()),t[e]}(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default",m)},u.dataset=e=>y(e),u.dataCollection=e=>v(e),u.scales=function(){return h.all()},u.formatters=function(){return p.all()},u.brush=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default";return b[e]||(b[e]=tE()),b[e]},u.scale=function(e){return h.get(e)},u.formatter=function(e){return p.get(e)},u.toggleBrushing=function(e){x=void 0!==e?e:!x},u.component=e=>{const t=S.findComponentByKey(e);return null==t?void 0:t.instance.ctx},u.logger=()=>s,u.theme=()=>l,u.storage=WE({animations:{updatingStageMeta:{isInit:!1,shouldBeRemoved:!1}}}),Object.defineProperty(u,"interactions",{get:()=>({instances:g,on(){_(),g.forEach((e=>e.on()))},off(){P(),g.forEach((e=>e.off()))}})}),E(),n&&(k(),L(),C(n),u.element=n),u}const Jk=e=>{let t=ab(e);return t.prio=e=>e?t.default(e[0]):[t.default()],t.types=()=>t.getKeys(),t};var Qk=ab();function Zk(e,t,n){let{key:r}=n;const i={value:"function"==typeof e.value?e.value(t):void 0!==e.value?e.value:t};return i.label="function"==typeof e.label?e.label(t):void 0!==e.label?String(e.label):String(i.value),e.field&&(i.source={key:r,field:e.field.key()}),i}const eC=e=>e.filter((e=>"number"==typeof e&&!isNaN(e)));const tC=e=>{let{key:t,data:n,cache:r,config:i}=e;if(!n)return;let o=n;"string"==typeof o&&(o=(e=>{let{data:t,config:n}=e;const r=t.split("\n"),i=r[0],o=r[1];let a=",";if(n&&n.parse&&n.parse.delimiter)a=n.parse.delimiter;else if(i){const e=[/,/,/\t/,/;/];for(let t=0;t<e.length;t++){const n=e[t];if(i&&o){if(n.test(i)&&n.test(o)&&i.split(n).length===o.split(n).length){a=n;break}}else n.test(i)&&(a=n)}}return r.map((e=>e.split(a)))})({data:n,config:i})),Array.isArray(o)&&function(e){let t,{source:n,data:r,cache:i,config:o}=e,a=r;const s=o&&o.parse;Array.isArray(r[0])?s&&!1===s.headers?t=r[0].map(((e,t)=>t)):(t=r[0],a=r.slice(1)):t=Object.keys(r[0]);const l=!!s&&"function"==typeof s.row&&s.row;let c,u=t;u=s&&"function"==typeof s.fields?s.fields(u.slice()):t.map((e=>({key:e,title:e}))),Array.isArray(r[0])?c=u.map((()=>[])):(c={},u.forEach((e=>{c[e.key]=[]})));for(let e=0;e<a.length;e++){const t=l?l(a[e],e,u):a[e];if(t)if(Array.isArray(t))for(let e=0;e<u.length;e++)c[e].push(t[e]);else for(let e=0;e<u.length;e++)c[u[e].key].push(t[u[e].key])}const d=Array.isArray(c)?e=>c[e]:e=>c[u[e].key];for(let e=0;e<u.length;e++){const t=d(e),r=eC(t),o=r.length>0,a=o?"measure":"dimension",s=o?Math.min(...r):NaN,l=o?Math.max(...r):NaN;i.fields.push(DS(Hy({source:n,key:e,title:u[e].title,values:t,min:s,max:l,type:a},u[e]),{value:u[e].value,label:u[e].label}))}}({data:o,cache:r,source:t,config:i})};function nC(){let{key:e,data:t,config:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const r={fields:[]},i={key:()=>e,raw:()=>t,field:e=>function(e,t){let{cache:n}=t;if("number"==typeof e)return n.fields[e];for(let t=0;t<n.fields.length;t++)if(n.fields[t].key()===e)return n.fields[t];for(let t=0;t<n.fields.length;t++)if(n.fields[t].title()===e)return n.fields[t];return null}(e,{cache:r,matrix:t}),fields:()=>r.fields.slice(),extract:e=>function(e,t){const n=Array.isArray(e)?e:[e];let r=[];return n.forEach((e=>{if(void 0!==e.field){const n=t.field(e.field),i=t.key();if(!n)throw Error("Field '".concat(e.field,"' not found"));const{props:o,main:a}=LS(e,t),s=Object.keys(o),l=!!e.trackBy,c=typeof e.trackBy,u={},d=[],f=n.items(),h=[];for(let t=0;t<f.length;t++){const n=f[t];if(a.filter&&!a.filter(n))continue;const r=Zk(a,n,{key:i});s.forEach((e=>{const a=o[e];let s=a.field?a.field.items()[t]:n;r[e]=Zk(a,s,{key:i})})),l&&jS({cfg:e,itemData:n,obj:r,target:d,tracker:u,trackType:c}),h.push(r)}r=l?[...r,...FS(d,{main:a,propsArr:s,props:o})]:[...r,...h]}})),r}(e,i),hierarchy:()=>null};return tC({key:e,data:t,config:n,cache:r}),i}nC.util={normalizeConfig:LS,collect:FS,track:jS};const rC=ab();rC.default("matrix"),rC("matrix",nC),rC("default",nC);const iC=ab();function oC(e,t,n){return Math.max(e,Math.min(t,n))}function aC(e){let{item:t,value:n,boxCenter:r,rendWidth:i,rendHeight:o,flipXY:a,symbol:s}=e,l="x",c="y",u=i,d=o,f=n<.5?90:-90;return a&&(l="y",c="x",u=o,d=i,f=n<.5?180:0),s(Hy({},t.oob,{[l]:r*u,[c]:Math.max(t.oob.size/2,Math.min(n*d,d-t.oob.size/2)),startAngle:f}))}function sC(e){let{item:t,boxWidth:n,boxPadding:r,rendWidth:i,rendHeight:o,flipXY:a}=e,s="x",l="y",c="width",u="height",d=i,f=o;a&&(s="y",l="x",c="height",u="width",d=o,f=i);const{actualDiff:h,actualLow:p}=function(e){let{start:t,end:n,minPx:r=.1,maxPx:i=1}=e;const o=Math.max(t,n),a=Math.min(t,n),s=oC(-.1,1.2,o),l=oC(-.1,1.2,a),c=s*i-l*i,u=Math.max(r,c),d=(u-c)/2;return{actualDiff:u,startModifier:d,actualLow:l*i-d}}({start:t.start,end:t.end,minPx:t.box.minHeightPx,maxPx:f});return Hy({},t.box,{type:"rect",[s]:(r+t.major)*d,[l]:p,[u]:h,[c]:n*d,data:t.data||{},collider:{type:null}})}function lC(e){let{item:t,from:n,to:r,boxCenter:i,rendWidth:o,rendHeight:a,flipXY:s}=e,l="x1",c="y1",u="x2",d="y2",f=o,h=a;return s&&(l="y1",c="x1",u="y2",d="x2",f=a,h=o),Hy({},t.line,{type:"line",[d]:Math.floor(n*h),[l]:i*f,[c]:Math.floor(r*h),[u]:i*f,data:t.data||{},collider:{type:null}})}function cC(e){let{item:t,key:n,position:r,width:i,boxCenter:o,rendWidth:a,rendHeight:s,flipXY:l}=e,c="x1",u="y1",d="x2",f="y2",h=a,p=s;l&&(c="y1",u="x1",d="y2",f="x2",h=s,p=a);const m=i/2;return Hy({type:"line"},t[n],{[u]:Math.floor(r*p),[c]:(o-m)*h,[f]:Math.floor(r*p),[d]:(o+m)*h,r:m*h,cx:o*h,cy:r*p,width:i*h,data:t.data||{},collider:{type:null}})}function uC(e,t,n){const{width:r,maxWidthPx:i,minWidthPx:o}=t.box,a=e>=0?1:-1;let s=Math.min(a*e*r,isNaN(i)?n:i/n);return s=isNaN(o)?s:Math.max(o/n,s),s*a}iC("native",(function(e,t,n){let r,i,o={chart:e,mediator:t,element:n},a=[],s=!0;function l(){"function"==typeof r.enable&&(r.enable=r.enable.bind(o)()),r.enable&&Object.keys(r.events).forEach((e=>{const t=r.events[e].bind(o);n.addEventListener(e,t),a.push({key:e,listener:t})}))}function c(){a.forEach((e=>{let{key:t,listener:r}=e;n.removeEventListener(t,r)})),a=[]}return{get key(){return i},set(e){!function(e){i=e.key,r=e,r.events=r.events||[],void 0===r.enable&&(r.enable=!0)}(e),c(),s&&l()},off(){s=!1,c()},on(){s=!0,0===a.length&&l()},destroy(){c(),o=null,r=null}}}));const dC={oob:{show:!0,type:"n-polygon",fill:"#999",stroke:"#000",strokeWidth:0,size:10,sides:3,startAngle:-90},box:{show:!0,fill:"#fff",stroke:"#000",strokeWidth:1,strokeLinejoin:"miter",width:1,maxWidthPx:void 0,minWidthPx:1,minHeightPx:1},line:{show:!0,stroke:"#000",strokeWidth:1},median:{show:!0,stroke:"#000",strokeWidth:1},whisker:{show:!0,stroke:"#000",strokeWidth:1,fill:"",type:"line",width:1}},fC=Object.keys(dC),hC={require:["chart","resolver","symbol"],defaultSettings:{settings:{},data:{},style:{box:"$shape",line:"$shape-guide",whisker:"$shape-guide",median:"$shape-guide--inverted"}},created(){this.state={}},render(e){let{data:t}=e;const{width:n,height:r}=this.rect,i="horizontal"===this.settings.settings.orientation,{style:o,resolver:a,symbol:s}=this,l=fC.filter((e=>!this.settings.settings[e]||!1!==this.settings.settings[e].show)),c={};l.forEach((e=>c[e]=dC[e]));const u=function(e){let{keys:t,data:n,defaultSettings:r,style:i,settings:o,width:a,height:s,resolver:l}=e;const c=Hy(!0,{},r||{},i||{}),u={major:"horizontal"===o.orientation?s:a,minor:"horizontal"===o.orientation?a:s},d=o.major;let f;f="object"==typeof d&&"object"==typeof d.ref&&void 0!==d.ref.start&&void 0!==d.ref.end?l.resolve({data:n,defaults:{start:0,end:1},scaled:u,settings:Hy(!0,{},{binStart:{scale:o.major.scale,ref:o.major.ref.start},binEnd:{scale:o.major.scale,ref:o.major.ref.end}})}):"object"==typeof d&&void 0!==d.binStart&&void 0!==d.binEnd?l.resolve({data:n,defaults:{start:0,end:1},scaled:u,settings:Hy(!0,{},{binStart:{scale:o.major.scale,ref:"binStart"},binEnd:{scale:o.major.scale,ref:"binEnd"}},o.major)}):l.resolve({data:n,scaled:u,defaults:{major:.5},settings:{major:o.major}});const h=o.minor||{},p={};["start","end","min","max","med"].forEach((e=>{(h[e]||n.items&&n.items.length&&n.items[0][e])&&(p[e]={scale:h.scale,ref:e})}));let m,g={major:f,minor:l.resolve({data:n,defaults:{start:0,end:1},scaled:u,settings:Hy(!0,{},p,h)})};for(let e=0,r=t.length;e<r;e++)o[m]&&!1===o[m].show||(m=t[e],g[m]=l.resolve({data:n,defaults:c[m],settings:o[m],scaled:u}));return g}({keys:l,data:t,defaultSettings:c,style:o,settings:this.settings.settings,width:n,height:r,resolver:a}),{settings:d,items:f}=u,h=function(e){let{width:t,height:n,flipXY:r,resolved:i,keys:o,symbol:a}=e;const s=[],l=i.major.items;if(!l.length)return s;const c=t,u=n,d=r?n:t,f=i.major.settings,h=["start","end","min","max","med"].filter((e=>void 0!==i.minor.settings[e])),p=h.length,m=o.filter((e=>"oob"!==e));let g,y,v,b,x,S,w,M,E;const k=o?o.length:0,C=m?m.length:0,T={box:function(){v.box&&Gy(v.start)&&Gy(v.end)&&g.push(sC({item:v,boxWidth:b,boxPadding:x,rendWidth:c,rendHeight:u,flipXY:r}))},line:function(){Gy(v.min)&&Gy(v.start)&&g.push(lC({item:v,from:v.min,to:v.start,boxCenter:S,rendWidth:c,rendHeight:u,flipXY:r})),Gy(v.max)&&Gy(v.end)&&g.push(lC({item:v,from:v.max,to:v.end,boxCenter:S,rendWidth:c,rendHeight:u,flipXY:r}))},median:function(){v.median&&Gy(v.med)&&g.push(cC({item:v,key:"median",position:v.med,width:b,boxCenter:S,rendWidth:c,rendHeight:u,flipXY:r}))},whisker:function(){if(v.whisker){const e=b*v.whisker.width;Gy(v.min)&&g.push(cC({item:v,key:"whisker",position:v.min,width:e,boxCenter:S,rendWidth:c,rendHeight:u,flipXY:r})),Gy(v.max)&&g.push(cC({item:v,key:"whisker",position:v.max,width:e,boxCenter:S,rendWidth:c,rendHeight:u,flipXY:r}))}}};function A(){let e,t=-Number.MAX_VALUE,n=Number.MAX_VALUE;for(let r=0;r<p;r++)e=v[h[r]],Gy(e)&&(t<e&&(t=e),n>e&&(n=e));w=t<0&&t!==-Number.MAX_VALUE,M=n>1&&n!==Number.MAX_VALUE,E=w||M}for(let e=0,t=l.length;e<t;e++){g=[],y=null;const t=l[e],n=t.data;let h=null,p=null;void 0!==f.binStart?(h=t.binStart,p=t.binEnd,y=f.binStart.scale):(y=f.major.scale,h=y?t.major:0);let O=0;y?y.bandwidth?(O=y.bandwidth(),h-=O/2):O=p-h:O=1,v=Hy({},{major:h,majorEnd:p},i.minor.items[e]);for(let t=0;t<k;t++)v[o[t]]=i[o[t]].items[e];if(b=uC(O,v,d),x=(O-b)/2,S=x+v.major+b/2,A(),E)v.oob&&(w?g.push(aC({item:v,value:0,boxCenter:S,rendWidth:c,rendHeight:u,flipXY:r,symbol:a})):M&&g.push(aC({item:v,value:1,boxCenter:S,rendWidth:c,rendHeight:u,flipXY:r,symbol:a})));else for(let e=0;e<C;e++)v[m[e]]&&!1===v[m[e]].show||T[m[e]]();const N={type:"container",data:n,collider:{type:"bounds"},children:g};s.push(N)}return s}({items:f,settings:d,width:n,height:r,flipXY:i,resolved:u,keys:l,symbol:s});return h}};const pC={shape:"saltire",width:2,size:.5,fill:"#333",stroke:"#333",strokeWidth:0},mC=/px$/,gC={shape:"circle",label:"",fill:"#333",stroke:"#ccc",strokeDasharray:"",strokeWidth:0,strokeLinejoin:"miter",opacity:1,x:.5,y:.5,size:1,show:!0},yC={maxPx:1e4,minPx:1,maxRelExtent:.1,minRelExtent:.01,maxRelDiscrete:1,minRelDiscrete:.1};function vC(e,t){return e&&"function"==typeof e.bandwidth?{isBandwidth:!0,value:Math.max(1,e.bandwidth()*t)}:{isBandwidth:!1,value:Math.max(1,t)}}function bC(e,t,n,r){let{width:i,height:o}=t;return e.filter((e=>!1!==e.show&&!isNaN(e.x+e.y))).map((e=>{let t=e,a=mC.test(e.size)?parseInt(e.size,10):n.min+t.size*(n.max-n.min);Ky(a)&&(t=pC,a=n.min+t.size*(n.max-n.min));const[s,l]=function(e){let t=gC.shape,n={};return"object"==typeof e.shape&&"string"==typeof e.shape.type?(t=e.shape.type,n=e.shape):"string"==typeof e.shape&&(t=e.shape),[t,n]}(t),c=Uy(Uy({},l),{},{type:s,label:e.label,x:e.x*i,y:e.y*o,fill:t.fill,size:Math.min(n.maxGlobal,Math.max(n.minGlobal,a)),stroke:t.stroke,strokeWidth:t.strokeWidth,strokeDasharray:t.strokeDasharray,opacity:t.opacity});t===e.errorShape&&(c.width=t.width);const u=r(c);return u.data=e.data,u}))}const xC={require:["chart","resolver","symbol"],defaultSettings:{settings:{},data:{},animations:{enabled:!1,trackBy:e=>e.data.value},style:{item:"$shape"}},render(e){let{data:t}=e;const n=this.resolver.resolve({data:t,defaults:Hy({},gC,this.style.item),settings:this.settings.settings,scaled:{x:this.rect.width,y:this.rect.height}}),{width:r,height:i}=this.rect,o=Hy({},yC,this.settings.settings.sizeLimits),a=n.items,s=function(e,t,n,r,i){const o=vC(e?e.scale:void 0,n),a=vC(t?t.scale:void 0,r);let s=Math.min(o.value*i[o.isBandwidth?"maxRelDiscrete":"maxRelExtent"],a.value*i[a.isBandwidth?"maxRelDiscrete":"maxRelExtent"]),l=Math.min(o.value*i[o.isBandwidth?"minRelDiscrete":"minRelExtent"],a.value*i[a.isBandwidth?"minRelDiscrete":"minRelExtent"]);return{min:Math.max(1,Math.floor(l)),max:Math.max(1,Math.floor(s)),maxGlobal:i.maxPx,minGlobal:i.minPx}}(n.settings.x,n.settings.y,r,i,o);return bC(a,this.rect,s,this.settings.shapeFn||this.symbol)}};Math.PI;const SC={label:"",arc:1,show:!0,fill:"#333",stroke:"#ccc",strokeWidth:1,strokeLinejoin:"round",opacity:1,innerRadius:0,outerRadius:.8,cornerRadius:0,offset:0};function wC(e,t,n,r){let{x:i,y:o,width:a,height:s}=t;const l=Ov(),c={x:i+a/2,y:o+s/2},u=Math.min(a,s)/2,d=Math.min(a,s)/2,f=d/100;return e.map(((e,t)=>{const i=n[t];i.type="path";const o=d*i.outerRadius,a=u*i.innerRadius,s=f*i.cornerRadius;l.innerRadius(a),l.outerRadius(o),l.cornerRadius(s),i.arcDatum=e;const h=l.centroid(e),p=i.offset?function(e,t,n,r){let[i,o]=e;const a=Math.sqrt(i*i+o*o);i/=a,o/=a;const s=n-r;return{x:i*t*s,y:o*t*s}}(h,i.offset,o,a):{x:0,y:0};return i.transform="translate(".concat(p.x,", ").concat(p.y,") translate(").concat(c.x,", ").concat(c.y,")"),i.desc={share:e.value/r,slice:{start:e.startAngle,end:e.endAngle,innerRadius:a,outerRadius:o,cornerRadius:s,offset:{x:c.x+p.x,y:c.y+p.y}}},i}))}function MC(e,t){return e.slice&&"arc"in e.slice?t.arc:t.data.value}const EC={require:["chart","resolver"],defaultSettings:{settings:{startAngle:0,endAngle:2*Math.PI,padAngle:0,slice:{}},style:{slice:"$shape"},data:{}},render(e){let{data:t}=e;const n=[],r=[],i=this.settings.settings,{items:o}=this.resolver.resolve({data:t,defaults:Hy({},SC,this.style.slice),settings:i.slice});let a=0;for(let e=0,t=o.length;e<t;e++){const t=MC(i,o[e]);t>0&&o[e].outerRadius>=o[e].innerRadius&&(n.push(t),r.push(o[e]),a+=t)}const s=function(){var e=Pv,t=_v,n=null,r=uv(0),i=uv(Sv),o=uv(0);function a(a){var s,l,c,u,d,f=a.length,h=0,p=new Array(f),m=new Array(f),g=+r.apply(this,arguments),y=Math.min(Sv,Math.max(-Sv,i.apply(this,arguments)-g)),v=Math.min(Math.abs(y)/f,o.apply(this,arguments)),b=v*(y<0?-1:1);for(s=0;s<f;++s)(d=m[p[s]=s]=+e(a[s],s,a))>0&&(h+=d);for(null!=t?p.sort((function(e,n){return t(m[e],m[n])})):null!=n&&p.sort((function(e,t){return n(a[e],a[t])})),s=0,c=h?(y-f*b)/h:0;s<f;++s,g=u)l=p[s],u=g+((d=m[l])>0?d*c:0)+b,m[l]={data:a[l],index:s,value:d,startAngle:g,endAngle:u,padAngle:v};return m}return a.value=function(t){return arguments.length?(e="function"==typeof t?t:uv(+t),a):e},a.sortValues=function(e){return arguments.length?(t=e,n=null,a):t},a.sort=function(e){return arguments.length?(n=e,t=null,a):n},a.startAngle=function(e){return arguments.length?(r="function"==typeof e?e:uv(+e),a):r},a.endAngle=function(e){return arguments.length?(i="function"==typeof e?e:uv(+e),a):i},a.padAngle=function(e){return arguments.length?(o="function"==typeof e?e:uv(+e),a):o},a}().sortValues(null);s.startAngle(i.startAngle),s.endAngle(i.endAngle),s.padAngle(i.padAngle);return wC(s(n),Hy({},this.rect,{x:0,y:0}),r,a)}};const kC=function(e){function t(t){if(e[t.type]&&e[t.type].condition(t)){const n=e[t.type],r=void 0===n.conditionAppend||n.conditionAppend(t);n.items.forEach((e=>{const n=Math.round(t[e.key]),i=t[e.key]-n;t[e.key]=n,r&&"append"===e.type&&(i>0?t[e.key]+=.5:t[e.key]-=.5)}))}}return void 0===e&&((e={}).line={append:["x1","x2","y1","y2"],round:[],condition:e=>e.x1===e.x2||e.y1===e.y2,conditionAppend:e=>e.strokeWidth%2!=0},e.rect={append:["x","y"],round:["width","height"],condition:()=>!0,conditionAppend:e=>e.strokeWidth%2!=0}),Object.keys(e).forEach((t=>{const n=e[t];n.items=[],n.append.forEach((e=>{n.items.push({key:e,type:"append"})})),n.round.forEach((e=>{n.items.push({key:e,type:"round"})}))})),t.multiple=e=>e.forEach((e=>t(e))),t}();class CC{constructor(){this.reset(),this.push(...arguments)}static evaluateKey(e,t){if(t){const t=e.substring(0,1),n=e.substring(1);if("x"===t)return"y".concat(n);if("y"===t)return"x".concat(n);if("cx"===e)return"cy";if("cy"===e)return"cx";if("width"===e)return"height";if("height"===e)return"width"}return e}transposeCoordinate(e,t,n){if("number"==typeof t&&isFinite(t)){const r=e.substring(0,1);if("x"===r||"cx"===e)return t*this.width;if("width"===e)return t*this.width;if("r"===e)return t*(n?this.height:this.width);if("y"===r||"cy"===e)return t*this.height;if("height"===e)return t*this.height}return t}push(){return this.storage.push(...arguments),this}processItem(e){let t={};const n=void 0!==e.flipXY?e.flipXY:this.flipXY,r=void 0!==e.crisp?e.crisp:this.crisp;if(e.fn&&"function"==typeof e.fn){let r=n?this.height:this.width,i=n?this.width:this.height;e=e.fn({width:r,height:i,flipXY:n});const o=Object.keys(e);for(let r=0,i=o.length;r<i;r++){let i=o[r];t[CC.evaluateKey(i,n)]=e[i]}}else{const r=Object.keys(e);for(let i=0,o=r.length;i<o;i++){let o=r[i];const a=CC.evaluateKey(o,n),s=this.transposeCoordinate(a,e[o],n);t[a]=s}}return r&&kC(t),t}output(){let e=[];for(let t=0,n=this.storage.length;t<n;t++){let n=this.processItem(this.storage[t]);e.push(n)}return e}reset(){this.storage=[],this.flipXY=!1,this.crisp=!1,this.width=0,this.height=0}}function TC(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new CC(...t)}function AC(e,t){return e&&t?e.cachedTicks&&e.cachedTicks()||e.ticks({distance:t}):[]}const OC={created(){},require:["chart","renderer","resolver"],defaultSettings:{layout:{displayOrder:0},style:{ticks:"$guide-line",minorTicks:"$guide-line--minor"}},beforeRender(){this.blueprint=TC(),this.blueprint.width=this.rect.width,this.blueprint.height=this.rect.height,this.blueprint.x=this.rect.x,this.blueprint.y=this.rect.y,this.blueprint.crisp=!0},render(){if(this.x=this.settings.x?this.chart.scale(this.settings.x):null,this.y=this.settings.y?this.chart.scale(this.settings.y):null,hE(this,"x",this.rect.width),hE(this,"y",this.rect.height),!this.x&&!this.y)return[];this.settings.ticks=Hy({show:!0},this.style.ticks,this.settings.ticks||{}),this.settings.minorTicks=Hy({show:!1},this.style.minorTicks,this.settings.minorTicks||{}),this.lines={x:[],y:[]},this.lines.x=AC(this.x,this.rect.width),this.lines.y=AC(this.y,this.rect.height),this.lines.y=this.lines.y.map((e=>Hy(e,{flipXY:!0})));let e=e=>{let{dir:t,isMinor:n}=e,r=this.lines[t].filter((e=>!!e.isMinor===n)),i=n?this.settings.minorTicks:this.settings.ticks;this.resolver.resolve({settings:i,data:{items:r,dir:t}}).items.forEach((e=>{let n=e.data;var r,i;e.show&&this.blueprint.push({type:"line",x1:n.position,y1:0,x2:n.position,y2:1,stroke:e.stroke||"black",strokeWidth:void 0!==e.strokeWidth?e.strokeWidth:1,strokeDasharray:void 0!==e.strokeDasharray?e.strokeDasharray:void 0,flipXY:n.flipXY||!1,value:null!==(r=n.value)&&void 0!==r?r:null===(i=n.data)||void 0===i?void 0:i.value,dir:t})}))};return e({dir:"x",isMinor:!1}),e({dir:"x",isMinor:!0}),e({dir:"y",isMinor:!1}),e({dir:"y",isMinor:!0}),this.blueprint.output()}};function NC(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"bottom";if(n*=.8,"left"===r||"right"===r){let i="right"===r;return"\n M ".concat(e," ").concat(t-n,"\n A ").concat(1.25*n," ").concat(1.25*n,", 0, 1, ").concat(i?0:1,", ").concat(e," ").concat(t+n,"\n L ").concat(i?e+n:e-n," ").concat(t," Z\n ")}let i="bottom"===r;return"\n M ".concat(e-n," ").concat(t,"\n A ").concat(1.25*n," ").concat(1.25*n,", 0, 1, ").concat(i?1:0,", ").concat(e+n," ").concat(t,"\n L ").concat(e," ").concat(i?t+n:t-n," Z\n ")}function qC(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"bottom";if(n*=.75,"left"===r||"right"===r){let i="right"===r;return"\n M ".concat(e+=i?1.5*n:-1.5*n," ").concat(t-n,"\n L ").concat(e," ").concat(t+n,"\n L ").concat(i?e+n:e-n," ").concat(t," Z\n ")}let i="bottom"===r;return t+=i?1.5*n:-1.5*n,"\n M ".concat(e-n," ").concat(t,"\n L ").concat(e+n," ").concat(t,"\n L ").concat(e," ").concat(i?t+n:t-n," Z\n ")}function DC(e){if(void 0===e)return 0;if("number"==typeof e&&isFinite(e))return e;if("string"==typeof e)switch(e){case"center":case"middle":return.5;case"bottom":case"right":return 1;default:return 0}return 0}function RC(e){const t={value:e.value};return e.label&&(t.label=e.label.text),t}function IC(e){return void 0!==("function"==typeof e.value?e.value():e.value)}function _C(e,t){const n=e.min();if(n===e.max()){const r=function(e){const t=e.range();return 2===(null==t?void 0:t.length)&&t[0]>t[1]}(e);if(t<n)return r?2:-1;if(t>n)return r?-1:2}return e(t)}const PC={require:["chart","renderer"],defaultSettings:{layout:{displayOrder:0},style:{oob:{show:!0,width:10,fill:"#1A1A1A",stroke:"transparent",strokeWidth:0,opacity:1,text:{fontFamily:"Arial",stroke:"transparent",fill:"#fff",strokeWidth:0,opacity:1},triangle:{fill:"#4D4D4D",stroke:"transparent",strokeWidth:0,opacity:1},padding:{x:28,y:5}},line:{stroke:"#000"},label:{strokeWidth:0}}},preferredSize:()=>30,beforeRender(){this.blueprint=TC(),this.blueprint.width=this.rect.width,this.blueprint.height=this.rect.height,this.blueprint.x=this.rect.x,this.blueprint.y=this.rect.y,this.blueprint.crisp=!0},render(){let e=this.settings;if(this.lines={x:[],y:[]},this.lines.x=e.lines&&e.lines.x||[],this.lines.y=e.lines&&e.lines.y||[],0===this.lines.x.length&&0===this.lines.y.length)return[];const t={x0:[],x1:[],y0:[],y1:[]};this.lines.x=this.lines.x.filter(IC).map((e=>{if("function"==typeof e.value&&(e.value=e.value()),e.scale){let t=this.chart.scale(e.scale);const n=_C(t,e.value);return Hy(e,{scale:t,position:n})}return Hy(e,{position:e.value})})),this.lines.y=this.lines.y.filter(IC).map((e=>{if("function"==typeof e.value&&(e.value=e.value()),e.scale){let t=this.chart.scale(e.scale);const n=_C(t,e.value);return Hy(e,{scale:t,position:n,flipXY:!0})}return Hy(e,{position:e.value,flipXY:!0})})),this.lines.x=this.lines.x.filter((e=>!(e.position<0||e.position>1)||(t["x".concat(e.position>1?1:0)].push(RC(e)),!1))),this.lines.y=this.lines.y.filter((e=>!(e.position<0||e.position>1)||(t["y".concat(e.position>1?1:0)].push(RC(e)),!1)));let n=[];return[...this.lines.x,...this.lines.y].forEach((t=>{(!0===t.show||void 0===t.show)&&function(e){let{chart:t,blueprint:n,renderer:r,p:i,settings:o,items:a}=e,s=!0,l=!1,c=!1,u=!1,d=!1,f=Hy(!0,{},o.style.line,i.line||{});if(l=n.processItem({type:"line",x1:i.position,y1:0,x2:i.position,y2:1,stroke:f.stroke||"black",strokeWidth:f.strokeWidth||1,strokeDasharray:f.strokeDasharray,flipXY:i.flipXY||!1,value:i.valueInfo?i.valueInfo.id:i.value}),i.label){const e=Hy(!0,{fill:"#000",fontFamily:"Arial",fontSize:"12px",opacity:1,maxWidth:1,maxWidthPx:9999,padding:5,background:{fill:"#fff",stroke:"transparent",strokeWidth:0,opacity:.5}},o.style.label||{},{fill:f.stroke},i.label);let l,h={width:0,height:0},p="";if("string"==typeof i.formatter)l=t.formatter(i.formatter);else if("object"==typeof i.formatter)l=t.formatter(i.formatter);else if(void 0!==i.scale&&i.scale.data){const e=i.scale.data()&&i.scale.data().fields;l=e&&e[0]?e[0].formatter():null}!1!==i.label.showValue&&(l?p=" (".concat(l(i.value),")"):i.scale&&(p=" (".concat(i.value,")"))),p&&(h=r.measureText({text:p,fontFamily:e.fontFamily,fontSize:e.fontSize}));let m=r.measureText({text:e.text||"",fontFamily:e.fontFamily,fontSize:e.fontSize}),g={width:m.width+h.width,height:Math.max(m.height,h.height)},y=e.padding,v=DC(i.flipXY?e.vAlign:e.align),b=DC(i.flipXY?e.align:e.vAlign),x=Math.min(1+g.width+2*y,e.maxWidth*n.width,e.maxWidthPx),S=g.height+2*y,w=i.flipXY?S:x,M=i.flipXY?x:S;if(c=n.processItem({fn:t=>{let{width:r,height:o}=t,a=i.position*r-(i.flipXY?S:x)*(1-v);return a=i.flipXY?a:Math.max(a,0),{type:"rect",x:a,y:Math.max(Math.abs(b*o-M*b),0),width:i.flipXY?w:Math.min(w,n.width-a),height:M,stroke:e.background.stroke,strokeWidth:e.background.strokeWidth,fill:e.background.fill,opacity:e.background.opacity}},flipXY:i.flipXY||!1}),c.x<-1||c.x+c.width>n.width+1||c.y<-1||c.y+c.height>n.height+1)c=void 0;else{u={type:"text",text:e.text||"",fill:e.fill,opacity:e.opacity,fontFamily:e.fontFamily,fontSize:e.fontSize,x:c.x+y,y:c.y+c.height/2+g.height/3,maxWidth:c.width-2*y-h.width,anchor:"start"},p&&(d={type:"text",text:p||"",fill:e.fill,opacity:e.opacity,fontFamily:e.fontFamily,fontSize:e.fontSize,x:u.x+3+(c.width-(h.width+2*y)),y:u.y});for(let e=0,t=a.length;e<t;e++){let t=a[e];"rect"===t.type?uk(c,t)&&(s=!1):"line"===t.type&&i.flipXY===t.flipXY&&hk(c,t)&&(s=!1)}}}a.push(l),s&&c&&u&&(a.push(c,u),d&&a.push(d))}({chart:this.chart,blueprint:this.blueprint,renderer:this.renderer,p:t,settings:e,items:n})})),e.style.oob.show&&function(e){let{blueprint:t,oob:n,settings:r,items:i}=e;const o=Object.keys(n);let a=r.style.oob||{};for(let e=0,r=o.length;e<r;e++){const r=o[e],s=n[r];if(s.length>0){let e=r.charAt(1),n="y"===r.charAt(0),o=a.padding.x+a.width,l=a.padding.y+a.width,c="bottom";c=n?"1"===e?"bottom":"top":"1"===e?"right":"left";let u=t.processItem({fn:t=>{let{width:r,height:i}=t,u=e*r+("1"===e?-o:o),d=n?l:i-l;return"arc"===a.type?{type:"path",d:NC(n?d:u,n?u:d,a.width,c),x:u,y:d,stroke:a.stroke,fill:a.fill,strokeWidth:a.strokeWidth||0}:{type:"circle",cx:u,cy:d,r:a.width,stroke:a.stroke,fill:a.fill,strokeWidth:a.strokeWidth||0,opacity:a.opacity,data:s}},flipXY:n}),d=u.cx||u.x,f=u.cy||u.y,h={type:"text",text:s.length||"",x:d-.4*a.width,y:f+.4*a.width,fontFamily:a.text.fontFamily,fontSize:"".concat(1.3*a.width,"px"),stroke:a.text.stroke,fill:a.text.fill,strokeWidth:a.text.strokeWidth||0,opacity:a.text.opacity},p={type:"path",d:qC(d,f,a.width,c),x:d,y:f,stroke:a.triangle.stroke,fill:a.triangle.fill,strokeWidth:a.triangle.strokeWidth||0,opacity:a.triangle.opacity};i.push(u,h,p)}}}({blueprint:this.blueprint,oob:t,settings:e,items:n}),n}};function LC(e){const t={type:"line",x1:0,x2:0,y1:0,y2:0,collider:{type:null}};return"top"===e.align||"bottom"===e.align?(t.x1=e.innerRect.x-e.outerRect.x,t.x2=t.x1+e.innerRect.width,t.y1=t.y2="top"===e.align?e.innerRect.height-e.padding:e.padding):(t.x1=t.x2="left"===e.align?e.innerRect.width-e.padding:e.padding,t.y1=e.innerRect.y-e.outerRect.y,t.y2=t.y1+e.innerRect.height),function(e,t){Hy(e,t.style)}(t,e),t}function zC(e){return"string"==typeof e||"number"==typeof e?e:"-"}function FC(e,t,n){n.layered||!n.stepSize?function(e,t){t.collider={type:"polygon",vertices:[{x:t.boundingRect.x,y:t.boundingRect.y},{x:t.boundingRect.x+t.boundingRect.width,y:t.boundingRect.y},{x:t.boundingRect.x+t.boundingRect.width,y:t.boundingRect.y+t.boundingRect.height},{x:t.boundingRect.x,y:t.boundingRect.y+t.boundingRect.height}]}}(0,t):n.tilted?function(e,t,n){const r=n.angle*(Math.PI/180),i=Math.max(n.stepSize/2,t.boundingRect.height/2),o="start"===t.anchor,a="end"===t.anchor&&r<0,s="start"===t.anchor&&r>=0,l=t.boundingRect.y+(s||a?t.boundingRect.height:0),c=[{x:t.x-i,y:l},{x:t.x+i,y:l}].map((e=>_E(e,r,{x:t.x,y:t.y}))),u={x:o?t.boundingRect.x+t.boundingRect.width+10:t.boundingRect.x-10,y:t.boundingRect.y+t.boundingRect.height},d={x:o?t.boundingRect.x+t.boundingRect.width+10:t.boundingRect.x-10,y:t.boundingRect.y},f=r>=0?[u,d]:[d,u];c.push(...f),t.collider={type:"polygon",vertices:c}}(0,t,n):function(e,t,n){if("bottom"===n.align||"top"===n.align){const r=e.position*n.innerRect.width+(n.innerRect.x-n.outerRect.x-n.stepSize/2);t.collider={type:"rect",x:r,y:0,width:r<0?n.stepSize+r:n.stepSize,height:n.innerRect.height}}else{const r=e.position*n.innerRect.height+(n.innerRect.y-n.outerRect.y-n.stepSize/2);t.collider={type:"rect",x:0,y:r,width:n.innerRect.width,height:r<0?n.stepSize+r:n.stepSize}}const r=t.collider;r.x=Math.max(r.x,0),r.y=Math.max(r.y,0);const i=r.x+r.width-(n.outerRect.x+n.outerRect.width);r.width=i>0?r.width-i:r.width;const o=r.y+r.height-(n.outerRect.y+n.outerRect.height);r.height=o>0?r.height-o:r.height}(e,t,n)}function jC(e,t){const n=isNaN(e.style.align)?.5:Math.min(Math.max(e.style.align,0),1);let r=0;if(e.tilted)r=e.stepSize*n;else{const i=t?e.textRect.height:e.textRect.width;r=Math.max(0,e.stepSize-i)*n}return r}function $C(e,t){var n,r;const i={type:"text",text:zC(e.label),x:0,y:0,maxWidth:t.maxWidth,maxHeight:t.maxHeight,tickValue:null!==(n=e.value)&&void 0!==n?n:null===(r=e.data)||void 0===r?void 0:r.value};return"top"===t.align||"bottom"===t.align?(i.x=e.start*t.innerRect.width+(t.innerRect.x-t.outerRect.x)+jC(t,!1),i.y="top"===t.align?t.innerRect.height:0,i.anchor=t.stepSize?"start":"middle",i.x+=isNaN(t.style.offset)?0:+t.style.offset):(i.y=e.start*t.innerRect.height+(t.innerRect.y-t.outerRect.y)+jC(t,!0),i.x="left"===t.align?t.innerRect.width:0,i.anchor="left"===t.align?"end":"start",i.baseline=t.stepSize?"text-before-edge":"central",i.y+=isNaN(t.style.offset)?0:+t.style.offset),function(e,t){["fill","fontSize","fontFamily"].forEach((n=>{e[n]=t.style[n]}))}(i,t),function(e,t){if(!t.tilted&&!t.stepSize)if("top"===t.align||"bottom"===t.align){const n=0,r=t.outerRect.width,i=Math.min(t.maxWidth/2,t.textRect.width/2),o=e.x-i,a=e.x+i;o<n?(e.anchor="start",e.x=t.innerRect.x-t.outerRect.x):a>r&&(e.anchor="end",e.x=t.innerRect.width+t.innerRect.x)}else{const n=0,r=t.outerRect.height,i=t.maxHeight/2,o=e.y-i,a=e.y+i;o<n?(e.y=t.innerRect.y-t.outerRect.y,e.baseline="text-before-edge"):a>r&&(e.y=t.innerRect.height+(t.innerRect.y-t.outerRect.y),e.baseline="text-after-edge")}}(i,t),function(e,t){"top"===t.align?e.y-=t.padding:"bottom"===t.align?e.y+=t.padding+t.maxHeight:"left"===t.align?e.x-=t.padding:"right"===t.align&&(e.x+=t.padding)}(i,t),function(e,t){if(t.tilted){const n=-t.angle,r=n*(Math.PI/180);"bottom"===t.align?(e.x-=t.maxHeight*Math.sin(r)/2,e.y-=t.maxHeight,e.y+=t.maxHeight*Math.cos(r)/2):e.x-=t.maxHeight*Math.sin(r)/3,e.transform="rotate(".concat(n,", ").concat(e.x,", ").concat(e.y,")"),e.anchor="bottom"===t.align==t.angle<0?"start":"end";const i=Math.cos(r)*t.maxWidth;if("bottom"===t.align==t.angle<0){const n=t.outerRect.width-t.paddingEnd;e.x+i>n&&(e.maxWidth=(n-e.x-10)/Math.cos(r))}else{const n=t.paddingEnd;e.x-i<n&&(e.maxWidth=(e.x-n-10)/Math.cos(r))}}}(i,t),function(e,t){e.boundingRect=t.textBounds(e)}(i,t),FC(e,i,t),i}function HC(e,t){const n={type:"line",x1:0,x2:0,y1:0,y2:0,collider:{type:null},tickValue:e.value};return"top"===t.align||"bottom"===t.align?(n.x1=n.x2=e.position*t.innerRect.width+(t.innerRect.x-t.outerRect.x),n.y1="top"===t.align?t.innerRect.height:0,n.y2="top"===t.align?n.y1-t.tickSize:n.y1+t.tickSize):(n.y1=n.y2=e.position*t.innerRect.height+(t.innerRect.y-t.outerRect.y),n.x1="left"===t.align?t.innerRect.width:0,n.x2="left"===t.align?n.x1-t.tickSize:n.x1+t.tickSize),function(e,t){Hy(e,t.style)}(n,t),function(e,t){"top"===t.align?(e.y1-=t.padding,e.y2-=t.padding):"bottom"===t.align?(e.y1+=t.padding,e.y2+=t.padding):"left"===t.align?(e.x1-=t.padding,e.x2-=t.padding):"right"===t.align&&(e.x1+=t.padding,e.x2+=t.padding)}(n,t),function(e,t){const n=e.strokeWidth/2;e.x1===t.innerRect.width?(e.x1-=n,e.x2-=n):0===e.x1?(e.x1+=n,e.x2+=n):e.y1===t.innerRect.height?(e.y1-=n,e.y2-=n):0===e.y1&&(e.y1+=n,e.y2+=n)}(n,t),n}function BC(e){return!e.isMinor&&e.position>=0&&e.position<=1}function VC(e){let{rect:t,state:n,majorTicks:r,measure:i,horizontal:o}=e;return o?function(e){let{majorTicks:t,measureText:n,rect:r,state:i}=e;const o="layered"===i.labels.activeMode?2:1,a=r.width,s=t.map((e=>e.label)).map((e=>"".concat(e.slice(0,1)).concat(e.length>1?"…":""))).map(n).map((e=>e.width));for(let e=0;e<t.length;++e){const n=t[e];if(o*a*Math.abs(n.start-n.end)<s[e])return!0}return!1}({majorTicks:r,measureText:i,rect:t,state:n}):function(e){let{majorTicks:t,measureText:n,rect:r}=e;const i=r.height,o=n("M").height;return!(t.length<2)&&i*Math.abs(t[0].position-t[1].position)<o}({majorTicks:r,measureText:i,rect:t,state:n})}function UC(e){let{value:t,maxValue:n,minValue:r,range:i,modifier:o}=e;return isNaN(i)||isNaN(o)||(t=i*o),t>n&&(t=n),t<r&&(t=r),t}function WC(e){let{isDiscrete:t,rect:n,formatter:r,measureText:i,scale:o,settings:a,state:s}=e,l=0;const c={left:0,top:0,right:0,bottom:0},{maxLengthPx:u,minLengthPx:d}=a.labels;if(a.labels.show){const e=a.align,f="top"===e||"bottom"===e,h=f?n.inner.width:n.inner.height,p=o.ticks({settings:a,distance:h,formatter:r}).filter(BC),m=e=>{const t=i({text:e,fontSize:a.labels.fontSize,fontFamily:a.labels.fontFamily});return t.width=UC({value:t.width,maxValue:u,minValue:d}),t};if(t&&f&&"auto"===a.labels.mode&&(!function(e){let{majorTicks:t,measure:n,rect:r,state:i,settings:o}=e;const a=o.labels.maxGlyphCount,s="layered"===i.labels.activeMode?2:1,l=o.labels.tiltThreshold?o.labels.tiltThreshold:.7,c=n("…").width,u=r.width;let d=0,f=0;if(isNaN(a))for(let e=0;e<t.length;e++){const r=t[e],i=r.label,o=n(i).width*(i.length>1?l:1);if(f=s*u*Math.abs(r.start-r.end),o+c>f)return!0}else if(f=s*u*t.reduce(((e,t)=>Math.min(Math.abs(t.start-t.end),e)),1/0),d=n("M").width*l*a,d+c>f)return!0;return!1}({majorTicks:p,measure:m,rect:n.inner,state:s,settings:a})?s.labels.activeMode="horizontal":s.labels.activeMode="tilted"),!a.labels.filterOverlapping&&"tilted"!==s.labels.activeMode&&VC({rect:n.inner,state:s,majorTicks:p,measure:m,horizontal:f})){return{size:Math.max(n.outer.width,n.outer.height),isToLarge:!0}}let g,y;if("tilted"===s.labels.activeMode){const e=Math.abs(a.labels.tiltAngle)*(Math.PI/180);g=t=>UC({value:t.width,maxValue:u,minValue:d})*Math.sin(e)+t.height*Math.cos(e)}else g=f?e=>e.height:e=>UC({value:e.width,maxValue:u,minValue:d});if(f&&"tilted"!==s.labels.activeMode)y=["M"];else if(isNaN(a.labels.maxGlyphCount))y=p.map((e=>e.label));else{let e="";for(let t=0;t<a.labels.maxGlyphCount;t++)e+="M";y=[e]}const v=y.map(m),b=v.map(g),x=Math.max(...b,0);if(l+=x,l+=a.labels.margin,"layered"===s.labels.activeMode&&(l*=2),"tilted"===s.labels.activeMode){const e="bottom"===a.align==a.labels.tiltAngle>=0,t=Math.abs(a.labels.tiltAngle)*(Math.PI/180),r=(x-m("M").height*Math.cos(t))/Math.sin(t),i=e=>Math.min(r,e.width)*Math.cos(t)+e.height,o=(t,r)=>{const i=p[r]?p[r].position:0;return e?t-i*n.inner.width:t-(1-i)*n.inner.width},s=Math.min(a.labels.maxEdgeBleed,Math.max(...v.map(i).map(o),0))+a.paddingEnd;if(c[e?"left":"right"]=s,!a.labels.filterOverlapping&&function(e){let{majorTicks:t,measureText:n,rect:r,bleedSize:i,angle:o}=e;if(t.length<2)return!1;if(0===o)return!0;const a=Math.abs(o),s=1/(Math.min(r.outer.width-i,r.inner.width)*Math.abs(t[0].position-t[1].position));return n("M").height>Math.sin(a*(Math.PI/180))/s}({majorTicks:p,measureText:m,rect:n,bleedSize:s,angle:a.labels.tiltAngle})){return{size:Math.max(n.outer.width,n.outer.height),isToLarge:!0}}}}return{size:l,edgeBleed:c}}const YC=2,XC=(e,t,n)=>e.width*Math.abs(t.position-n.position),GC=e=>{let{innerRect:t,outerRect:n,tick:r,nextWidth:i}=e;const o=t.x-n.x,a=t.width*r.position+o,s=2*Math.min(i,a),l=0===r.position?t.width/2-YC:0;return Math.max(i,s,l)},KC=e=>{let{innerRect:t,outerRect:n,tick:r,prevWidth:i}=e;const o=t.x-n.x,a=n.width-t.width-o,s=t.width-t.width*r.position+a,l=2*Math.min(i,s),c=1===r.position?t.width/2-YC:0;return Math.max(i,l,c)};function JC(e){let t=0;return t+=e.paddingStart,t+=e.line.show?e.line.strokeWidth/2:0,t+=e.ticks.show?e.ticks.margin:0,t}function QC(e){let t=0;return t+=e.ticks.show?e.ticks.tickSize:0,t+=JC(e)+e.labels.margin,t}function ZC(e,t){return e.map((e=>HC(e,t)))}function eT(e,t){return t?Math.abs(t.end-t.start):e.bandwidth()}function tT(e){let{textMetrics:t,settings:n,innerRect:r,scale:i,tilted:o,layered:a,tick:s}=e;const l=t.height,c=eT(i,s),u={width:0,height:l};if("left"===n.align||"right"===n.align)u.width=r.width-QC(n)-n.paddingEnd;else if(a)u.width=c*r.width*2;else if(o){const e=Math.abs(n.labels.tiltAngle)*(Math.PI/180);u.width=(r.height-QC(n)-n.paddingEnd-l*Math.cos(e))/Math.sin(e)}else u.width=c*r.width;return u.width=UC({value:u.width,maxValue:n.labels.maxLengthPx,minValue:n.labels.minLengthPx}),u}function nT(e){let{textMetrics:t,settings:n,innerRect:r,outerRect:i,tilted:o,layered:a,tick:s,index:l,major:c}=e;const u=t.height,d={width:0,height:u};if("left"===n.align||"right"===n.align)d.width=r.width-QC(n)-n.paddingEnd;else if(o){const e=Math.abs(n.labels.tiltAngle)*(Math.PI/180);d.width=(r.height-QC(n)-n.paddingEnd-u*Math.cos(e))/Math.sin(e)}else d.width=function(e){let{layered:t,major:n,innerRect:r,outerRect:i,tick:o,index:a}=e;const s=t?2:1,l=n[a-s],c=n[a+s],u=l?XC(r,o,l)/2-YC:1/0,d=c?XC(r,o,c)/2-YC:1/0;return n.length<2?r.width:l?c?2*Math.min(u,d):KC({innerRect:r,outerRect:i,tick:o,prevWidth:u}):GC({innerRect:r,outerRect:i,tick:o,nextWidth:d})}({layered:a,major:c,innerRect:r,outerRect:i,tick:s,index:l});return d.width=UC({value:d.width,maxValue:n.labels.maxLengthPx,minValue:n.labels.minLengthPx}),d}function rT(e){let t;function n(){return t=nT,n}function r(){return t=tT,r}function i(e){let{settings:n,scale:r,innerRect:i,outerRect:o,measureText:a,ticks:s,state:l,textBounds:c}=e;const u=[],d=function(e){return e.filter((e=>!e.isMinor))}(s),f=function(e){return e.filter((e=>e.isMinor))}(s),h={innerRect:i,align:n.align,outerRect:o},p="tilted"===l.labels.activeMode,m="layered"===l.labels.activeMode;let g;if(n.line.show&&(h.style=n.line,h.padding=n.paddingStart,u.push(LC(h))),n.ticks.show&&(h.style=n.ticks,h.tickSize=n.ticks.tickSize,h.padding=JC(n),g=ZC(d,h)),n.labels.show){const e=QC(n);h.style=n.labels,h.padding=e,h.tilted=p,h.layered=m,h.angle=n.labels.tiltAngle,h.paddingEnd=n.paddingEnd,h.textBounds=c;const l=(e,l)=>{h.textRect=function(e){let{style:t,measureText:n,tick:r}=e;return n({text:r.label,fontSize:t.fontSize,fontFamily:t.fontFamily})}({tick:e,measureText:a,style:h.style});const c=t({textMetrics:h.textRect,settings:n,innerRect:i,outerRect:o,scale:r,tilted:p,layered:m,tick:e,major:d,index:l});h.maxWidth=c.width,h.maxHeight=c.height,h.stepSize=function(e){let{innerRect:t,scale:n,settings:r,tick:i}=e;return("top"===r.align||"bottom"===r.align?t.width:t.height)*eT(n,i)}({innerRect:i,scale:r,ticks:s,settings:n,tick:e})};let f=[];f=!m||"top"!==n.align&&"bottom"!==n.align?function(e,t,n){return e.map(((e,r)=>{n(e,r);const i=$C(e,t);return i.data=e.data,i}))}(d,h,l):function(e,t,n,r){const i=t.padding,o=QC(n);return e.map(((e,a)=>{r(e,a);const s=o+t.maxHeight+n.labels.margin;t.layer=a%2,t.padding=a%2==0?i:s;const l=$C(e,t);return l.data=e.data,l}))}(d,h,n,l),n.labels.filterOverlapping&&function(e,t,n){let r=(t,n)=>uk(rv(1,e[t].boundingRect),rv(1,e[n].boundingRect));if(n&&n.tilted){const t=Math.abs(n.angle);r=(n,r)=>{const i=1/Math.abs(e[n].x-e[r].x),o=Math.sin(t*(Math.PI/180))/i;return e[n].boundingRect.height>o}}for(let n=0;n<=e.length-1;n++)for(let i=n+1;i<=Math.min(n+5,n+(e.length-1));i++)e[n]&&e[i]&&r(n,i)&&(i===e.length-1?(e.splice(n,1),t&&t.splice(n,1)):(e.splice(i,1),t&&t.splice(i,1)),i--,n--)}(f,g,h),u.push(...f)}return n.minorTicks&&n.minorTicks.show&&f.length>0&&(h.style=n.minorTicks,h.tickSize=n.minorTicks.tickSize,h.padding=function(e){return e.line.strokeWidth+e.minorTicks.margin}(n),u.push(...ZC(f,h))),g&&u.push(...g),u}return n.build=i,r.build=i,e?r():n()}const iT={labels:{show:!0,tiltAngle:40,tiltThreshold:.7,maxEdgeBleed:1/0,margin:4,maxLengthPx:150,minLengthPx:0,mode:"auto",maxGlyphCount:NaN,align:.5,offset:0,filterOverlapping:!1},ticks:{show:!1,margin:0,tickSize:4},line:{show:!1},paddingStart:0,paddingEnd:10,align:"auto"},oT={labels:{show:!0,margin:4,maxLengthPx:150,minLengthPx:0,align:.5,offset:0,filterOverlapping:!0},ticks:{show:!0,margin:0,tickSize:8},minorTicks:{show:!1,tickSize:3,margin:0},line:{show:!0},paddingStart:0,paddingEnd:10,align:"auto"};const aT={require:["chart","renderer","dockConfig"],defaultSettings:{layout:{displayOrder:0,prioOrder:0},settings:{},style:{labels:"$label",ticks:"$guide-line",minorTicks:"$guide-line--minor",line:"$guide-line"}},created(){this.state={isDiscrete:!!this.scale.bandwidth,isHorizontal:!1,labels:{activeMode:"horizontal"},ticks:[],innerRect:{width:0,height:0,x:0,y:0},outerRect:{width:0,height:0,x:0,y:0},defaultDock:void 0,concreteNodeBuilder:void 0,settings:void 0},this.state.isDiscrete?this.state.defaultDock="bottom":this.state.defaultDock="left",this.setState(this.settings)},setState(){this.state.isDiscrete=!!this.scale.bandwidth,this.state.settings=function(e){let{state:t,style:n,settings:r}=e;const i=Hy(!0,{},t.isDiscrete?iT:oT,n),o=Hy(!0,{},i,r.settings),a=r.layout.dock||t.defaultDock;o.dock=a,o.align=function(e,t){const n=["top","bottom"],r=["left","right"];return-1!==n.indexOf(e)&&-1===r.indexOf(t)||-1!==r.indexOf(e)&&-1===n.indexOf(t)?e:t}(r.settings.align,a),o.labels.tiltAngle=Math.max(-90,Math.min(o.labels.tiltAngle,90));const{paddingStart:s,paddingEnd:l}=o;return o.paddingStart="function"==typeof s?s.call(null):s,o.paddingEnd="function"==typeof l?l.call(null):l,o}(this),this.state.concreteNodeBuilder=rT(this.state.isDiscrete),this.dockConfig.dock(this.state.settings.dock),this.state.isHorizontal="top"===this.state.settings.align||"bottom"===this.state.settings.align,this.state.labels.activeMode=function(e,t,n){const r=t.labels.mode;return n&&e.isHorizontal?"auto"===r?e.labels.activeMode:-1!==["layered","tilted"].indexOf(t.labels.mode)&&-1!==["top","bottom"].indexOf(t.dock)?r:"horizontal":"horizontal"}(this.state,this.state.settings,this.state.isDiscrete)},preferredSize(e){const{formatter:t,state:n,scale:r}=this,i=this.state.isHorizontal?e.inner.width:e.inner.height;this.state.pxScale=pE(r,i);const o=function(e){let{isDiscrete:t,rect:n,formatter:r,measureText:i,scale:o,settings:a,state:s}=e,l=0;const{size:c,edgeBleed:u,isToLarge:d}=WC({isDiscrete:t,rect:n,formatter:r,measureText:i,scale:o,settings:a,state:s});if(l+=c,d)return{size:l};if(a.ticks.show&&(l+=a.ticks.margin,l+=a.ticks.tickSize),a.minorTicks&&a.minorTicks.show){const e=a.minorTicks.margin+a.minorTicks.tickSize;e>l&&(l=e)}if(a.line.show){const e=a.line.strokeWidth/2;l+=e,u[function(e){switch(e){case"top":return"bottom";case"bottom":return"top";case"left":return"right";case"right":return"left";default:return e}}(a.align)]=Math.ceil(e)}return l+=a.paddingStart,l+=a.paddingEnd,{size:l,edgeBleed:u}}({isDiscrete:this.state.isDiscrete,rect:{inner:e.inner,outer:e.outer},formatter:t,measureText:this.renderer.measureText,scale:this.state.pxScale,settings:this.state.settings,state:n});return o},beforeUpdate(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{settings:t}=e;this.setState(t)},resize(e){const{inner:t,outer:n}=e,r=Hy({},t,function(e){let{align:t,inner:n}=e;return"left"===t?{x:n.width+n.x}:"right"===t||"bottom"===t?n:{y:n.y+n.height}}({align:this.state.settings.align,inner:t})),i=n||r;return Hy(this.state.innerRect,r),Hy(this.state.outerRect,i),n},beforeRender(){const{scale:e,formatter:t}=this,n=this.state.isHorizontal?this.state.innerRect.width:this.state.innerRect.height;this.state.pxScale=pE(e,n),this.state.ticks=this.state.pxScale.ticks({distance:n,formatter:t}).filter((e=>e.position>=0&&e.position<=1))},render(){const{state:e}=this,t=[];return t.push(...this.state.concreteNodeBuilder.build({settings:this.state.settings,scale:this.state.pxScale,innerRect:this.state.innerRect,outerRect:this.state.outerRect,measureText:this.renderer.measureText,textBounds:this.renderer.textBounds,ticks:this.state.ticks,state:e})),kC.multiple(t),t}};const sT={render:()=>[]};function lT(e,t,n){let r="";if("function"==typeof e)r=e();else if("string"==typeof e)r=e;else if(n){const e=(n.data().fields||[]).map((e=>e.title()));r=e.join(t)}return r}function cT(e,t){let n="middle";return"left"===e?"top"===t?n="end":"bottom"===t&&(n="start"):"right"===e?"top"===t?n="start":"bottom"===t&&(n="end"):"left"===t?n="start":"right"===t&&(n="end"),n}const uT={require:["renderer","chart"],defaultSettings:{layout:{dock:"bottom",displayOrder:0,prioOrder:0},settings:{paddingStart:5,paddingEnd:5,paddingLeft:0,paddingRight:0,anchor:"center",join:", ",maxLengthPx:NaN},style:{text:"$title"}},created(){this.definitionSettings=this.settings.settings;const e=this.settings.text,t=this.definitionSettings.join;this.title=lT(e,t,this.scale)},preferredSize(){return this.renderer.measureText({text:this.title,fontSize:this.style.text.fontSize,fontFamily:this.style.text.fontFamily}).height+this.definitionSettings.paddingStart+this.definitionSettings.paddingEnd},render(){const{title:e,definitionSettings:t,rect:n}=this,r=[];return r.push(function(e){let{title:t,definitionSettings:n,dock:r,rect:i,measureText:o,style:a}=e;const s={type:"text",text:t,x:0,y:0,dx:0,dy:0,anchor:cT(r,n.anchor),baseline:"alphabetical",stroke:"transparent",strokeWidth:0,fontWeight:"normal"};Hy(s,a.text);const l=o(s);if("top"===r||"bottom"===r){let e=i.width/2;"left"===n.anchor?e=n.paddingLeft||0:"right"===n.anchor&&(e=i.width-(n.paddingRight||0)),s.x=e,s.y="top"===r?i.height-n.paddingStart:n.paddingStart+l.height,s.dy="top"===r?-l.height/6:-l.height/3,s.maxWidth=.8*i.width}else{let e=i.height/2;"top"===n.anchor?e=n.paddingStart:"bottom"===n.anchor&&(e=i.height-n.paddingStart),s.y=e,s.x="left"===r?i.width-n.paddingStart:n.paddingStart,s.dx="left"===r?-l.height/3:l.height/3;const t="left"===r?270:90;s.transform="rotate(".concat(t,", ").concat(s.x+s.dx,", ").concat(s.y+s.dy,")"),s.maxWidth=.8*i.height}return isNaN(n.maxLengthPx)||(s.maxWidth=Math.min(s.maxWidth,n.maxLengthPx)),s}({title:e,dock:this.settings.layout.dock,definitionSettings:t,rect:n,measureText:this.renderer.measureText,style:this.style})),r},beforeUpdate(e){e.settings&&(Hy(this.settings,e.settings),this.definitionSettings=e.settings.settings);const t=this.settings.text,n=this.definitionSettings.join;this.title=lT(t,n,this.scale)}};function dT(e,t){const n=e.settings.layout.dock,r=e.settings.settings.invert,i="top"===n||"bottom"===n,o=i?"width":"height",a=e.rect[o],s=e.chart.scroll(e.settings.scroll);let l;{let e=t[i?"x":"y"];r&&(e=a-e);const n=s.getState();l={startOffset:e,startScroll:n.start,swipe:!1};const o=e/a*(n.max-n.min)+n.min;o<n.start?l.startScroll=o:o>n.start+n.viewSize&&(l.startScroll=o-n.viewSize)}return{update:e=>{let t=e[i?"x":"y"];if(r&&(t=a-t),!l.swipe){if(Math.abs(l.startOffset-t)<=1)return;l.swipe=!0}const n=s.getState(),o=(t-l.startOffset)/a*(n.max-n.min),c=l.startScroll+o;s.moveTo(c)},end:e=>{let t=e[i?"x":"y"];r&&(t=a-t);const n=s.getState();if(l.swipe){const e=(t-l.startOffset)/a*(n.max-n.min),r=l.startScroll+e;s.moveTo(r)}else{const e=t/a*(n.max-n.min)+n.min-n.viewSize/2;s.moveTo(e)}}}}function fT(e,t){const n=t.element().getBoundingClientRect();return{x:e.center.x-n.left,y:e.center.y-n.top}}const hT={require:["chart","renderer"],on:{panStart(e){const t=fT(e,this.renderer),n={x:t.x-e.deltaX,y:t.y-e.deltaY};this.currentMove=dT(this,n),this.currentMove.update(t)},panMove(e){if(!this.currentMove)return;const t=fT(e,this.renderer);this.currentMove.update(t)},panEnd(e){if(!this.currentMove)return;const t=fT(e,this.renderer);this.currentMove.end(t),this.currentMove=null},panCancel(){this.currentMove=null},tap(e){const t=fT(e,this.renderer);dT(this,t).end(t)}},defaultSettings:{settings:{backgroundColor:"#eee",thumbColor:"#ccc",width:16}},preferredSize:function(e){const t=this.chart.scroll(this.settings.scroll).getState();if(t.viewSize>=t.max-t.min){return Math.max(e.width,e.height)}return this.settings.settings.width},render:function(e){const t=this.settings.layout.dock,n=this.settings.settings.invert,r="top"===t||"bottom"===t,i=r?"width":"height",o=this.rect[i],a=this.chart.scroll(this.settings.scroll).getState();let s=o*(a.start-a.min)/(a.max-a.min);const l=o*a.viewSize/(a.max-a.min);return n&&(s=o-s-l),e("div",{style:{position:"relative",width:"100%",height:"100%",background:this.settings.settings.backgroundColor,pointerEvents:"auto"}},[].concat(e("div",{class:"scroller",style:{position:"absolute",[r?"left":"top"]:"".concat(s,"px"),[r?"top":"left"]:"25%",[r?"height":"width"]:"50%",[i]:"".concat(Math.max(1,l),"px"),background:this.settings.settings.thumbColor}})))},renderer:"dom"};const pT=5,mT=0;function gT(e){let{h:t,isVertical:n,value:r,pos:i,align:o,borderHit:a,state:s,idx:l}=e;const c="end"!==o,u=c?{left:"0",top:"0"}:{right:"0",bottom:"0"};let d=0,f="100%",h="100%";return s.targetRect&&"start"===s.settings.bubbles.align?(f="".concat(s.targetRect.x+s.targetRect.width,"px"),h="".concat(s.targetRect.y+s.targetRect.height,"px")):s.targetRect&&"end"===s.settings.bubbles.align&&(d=n?s.targetRect.x:s.targetRect.y,f="".concat(s.rect.width-d,"px"),h="".concat(s.rect.height-d,"px")),c||(i-=a),t("div",{onmouseover(e){e.srcElement.children[0].style.backgroundColor="#000",e.srcElement.children[0].style[n?"height":"width"]="2px"},onmouseout(e){e.srcElement.children[0].style.backgroundColor=s.style.line.stroke,e.srcElement.children[0].style[n?"height":"width"]="1px"},"data-value":r,"data-key":[s.key,"edge",l].join("-"),style:{cursor:n?"ns-resize":"ew-resize",position:"absolute",left:"".concat(n?d:i,"px"),top:"".concat(n?i:d,"px"),height:n?"".concat(a,"px"):h,width:n?f:"".concat(a,"px"),pointerEvents:"auto"}},[t("div",{style:Hy({backgroundColor:s.style.line.stroke,position:"absolute",height:n?"".concat(1,"px"):"100%",width:n?"100%":"".concat(1,"px"),pointerEvents:"none"},u)})])}function yT(e){let{h:t,isVertical:n,label:r,otherValue:i,rangeIdx:o,idx:a,pos:s,align:l,state:c,value:u}=e;const d="end"!==l,f="outside"===c.settings.bubbles.placement;let h,p="none";n?(h=d?"left":"right",f&&(p=d?"translate(-100%, 0px)":"translate(100%, 0px)")):(h=d?"top":"bottom",f&&(p=d?"translate(0px, -100%)":"translate(0px, 100%)"));let m=c.edit&&c.edit.rangeIdx===o&&c.edit.bubbleIdx===a;const g={position:"relative",borderRadius:"".concat(c.style.bubble.borderRadius,"px"),border:"".concat(c.style.bubble.strokeWidth,"px solid ").concat(c.style.bubble.stroke),backgroundColor:c.style.bubble.fill,color:c.style.bubble.color,fontFamily:c.style.bubble.fontFamily,fontSize:c.style.bubble.fontSize,padding:"4px 8px",textAlign:"center",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",maxWidth:"150px",minWidth:"50px",minHeight:"1em",pointerEvents:"auto",transform:n?"translate(0,-50%)":"translate(-50%,0)",cursor:n?"ns-resize":"ew-resize"};let y=c.style.bubble.stroke;const v=m?t("input",{type:"text",value:u,style:Uy(Uy({},g),{},{textAlign:"start",textOverflow:"",fontSize:"13px"}),onkeyup(e){if("Enter"===e.key){e.preventDefault(),e.stopPropagation();const t=parseFloat(e.target.value);isNaN(t)?(y="rgba(230, 78, 78, 0.6)",e.target.style.border="".concat(c.style.bubble.strokeWidth,"px solid ").concat(y)):c.onEditConfirmed(o,t,i)}else"Escape"===e.key&&(e.preventDefault(),e.stopPropagation(),c.onEditCanceled())}}):t("div",{"data-key":[c.key,"bubble",o,a].join("-"),"data-other-value":i,"data-idx":o,"data-bidx":a,style:g},[r]);return t("div",{style:{position:"absolute",[h]:"0",[n?"top":"left"]:"".concat(s,"px"),transform:p}},[v])}function vT(e){let{h:t,isVertical:n,top:r,height:i,color:o,on:a,opacity:s}=e;return t("div",Hy({style:{backgroundColor:o,opacity:s,position:"absolute",left:n?0:"".concat(r,"px"),top:n?"".concat(r,"px"):0,height:n?"".concat(i,"px"):"100%",width:n?"100%":"".concat(i,"px"),pointerEvents:"auto"}},a),[])}function bT(e){let{borderHit:t,els:n,isVertical:r,state:i,vStart:o,vEnd:a,idx:s}=e,l=0;i.targetRect&&(l=r?i.targetRect.y:i.targetRect.x);const c=!!i.scale,u=c?i.scale.norm(o)*i.size:o,d=c?i.scale.norm(a)*i.size:a,f=Math.abs(u-d),h=Math.min(u,d)+l,p=h+f;if(i.targetRect){const e=i.targetFillRect||i.targetRect,t=r?e.height:e.width,s=c?i.scale.norm(o)*t:o,l=c?i.scale.norm(a)*t:a,u=Math.abs(s-l),d=Math.min(s,l),f={h:i.h,isVertical:r,top:d,height:u,color:i.style.target.fill,opacity:i.style.target.opacity};i.style.target.opacity<.8&&(f.on={onmouseover(e){e.srcElement.style.opacity=i.style.target.opacity+.1},onmouseout(e){e.srcElement.style.opacity=i.style.target.opacity}}),n.push(i.h("div",{style:{position:"absolute",left:"".concat(e.x,"px"),top:"".concat(e.y,"px"),height:"".concat(e.height,"px"),width:"".concat(e.width,"px")}},[vT(f)]))}const m=u<d?o:a,g=u<d?a:o,[y,v]=c?i.scale.domain():[Math.min(o,a),Math.max(o,a)],b=m+1e-5>=y&&m-1e-5<=v,x=g-1e-5<=v&&g+1e-5>=y;b&&n.push(gT({h:i.h,isVertical:r,borderHit:t,value:m,pos:h,align:"start",state:i,idx:s})),x&&n.push(gT({h:i.h,isVertical:r,borderHit:t,value:g,pos:p,align:"end",state:i,idx:s}));const S=i.settings.bubbles;if(S&&S.show){const e={fontSize:S.fontSize,fontFamily:S.fontFamily,color:S.fill},t=[o,a];b&&n.push(yT({h:i.h,isVertical:r,align:S.align,style:e,rangeIdx:s,idx:0,otherValue:g,value:m,label:"".concat(i.format(m,t)),pos:h,state:i})),x&&n.push(yT({h:i.h,isVertical:r,align:S.align,style:e,rangeIdx:s,idx:1,otherValue:m,value:g,label:"".concat(i.format(g,t)),pos:p,state:i}))}}function xT(e){const t=e.active.limitHigh-e.active.end,n=e.active.limitLow-e.active.start;let r=e.current-e.start;return r=r<0?Math.max(r,n):Math.min(r,t),r}function ST(e){let t=[];const n=e.direction===mT;if(Array.isArray(e.ranges)&&e.ranges.forEach(((r,i)=>{e.active&&i===e.active.idx||bT({borderHit:pT,els:t,isVertical:n,state:e,vStart:Math.min(r.min,r.max),vEnd:Math.max(r.min,r.max),idx:i})})),e.active){let r=e.start,i=e.current;if(-1!==e.active.idx)if("foo"===e.active.mode)r=Math.min(e.active.start,e.active.end),i=Math.max(e.active.start,e.active.end);else if("modify"===e.active.mode)r=Math.min(e.start,e.current),i=Math.max(e.start,e.current);else{const t=xT(e);r=e.active.start+t,i=e.active.end+t}bT({borderHit:pT,els:t,isVertical:n,state:e,vStart:r,vEnd:i,idx:e.active.idx})}return t}function wT(e){return{min:e.scale.min(),max:e.scale.max()}}function MT(e){return{min:0,max:e.direction?e.rect.width:e.rect.height}}function ET(e,t,n){let r,i,o=e.ranges,a=-1;for(r=0;r<o.length;r++){if(o[r].min<=t&&t<=o[r].max){a=r,n.min=r?o[r-1].max:n.min,n.max=r+1<o.length?o[r+1].min:n.max;break}if(t<o[r].min){n.max=o[r].min,n.min=r?o[r-1].max:n.min;break}}-1===a&&o.length&&r>=o.length&&(n.min=o[o.length-1].max),-1!==a&&(i={idx:a,start:o[a].min,end:o[a].max,limitLow:n.min,limitHigh:n.max,mode:"foo"}),e.active=i}function kT(e){e.renderer.render(ST(e))}function CT(e,t){if(!t||!t.isActive())return[];const n=e.scale.data(),r=(n&&n.fields||[]).map((e=>e.id())),i=t.brushes().filter((e=>"range"===e.type&&-1!==r.indexOf(e.id)))[0];return i?i.brush.ranges():[]}function TT(e,t){let n,r=1/0;const i=t.domain(),o=t.bandwidth()/2;for(let a=0;a<i.length;++a){const s=Math.abs(e-o-t(i[a]));s<r&&(r=s,n=i[a])}return n}function AT(e,t){return Math.min(...e)<=Math.max(...t)&&Math.max(...e)>=Math.min(...t)}function OT(e){return ev(e.reduce(((e,t)=>(e.push(...Zy(t.bounds)),e)),[]))}const NT={require:["chart","settings","renderer"],defaultSettings:{settings:{bubbles:{show:!0,align:"start"}},style:{bubble:"$label-overlay",line:"$shape-guide--inverted",target:"$selection-area-target"}},renderer:"dom",on:{rangeStart(e){this.start(e)},rangeMove(e){this.move(e)},rangeEnd(e){this.end(e)},rangeClear(e){this.clear(e)},bubbleStart(e){this.bubbleStart(e)}},created(){this.state={key:this.settings.key||"brush-range"}},beforeRender(e){this.state.rect=e.size.computedInner},renderRanges(){this.state.started||(this.state.ranges=CT(this.state,this.state.brushInstance),this.state.active=null,kT(this.state))},render(e){const t=this.settings.settings;this.state.direction="vertical"===t.direction?mT:1;const n=this.renderer.element().getBoundingClientRect(),r=this.state.rect[this.state.direction===mT?"height":"width"];let i=pE(this.chart.scale(t.scale),r);const o=function(e){const t={targetRect:null,targetFillRect:null,scale:null,size:null},n=e.settings.settings,r=n.target&&(n.target.components||(n.target.component?[n.target.component]:[])).map((t=>e.chart.component(t))).filter((e=>!!e&&!!e.rect)),i=n.target&&n.target.selector?e.chart.findShapes(n.target.selector):[],o=n.target&&n.target.fillSelector?e.chart.findShapes(n.target.fillSelector):[];if(i.length>0){const r=OT(i);if(t.size=r[e.state.direction===mT?"height":"width"],t.scale=pE(e.chart.scale(n.scale),t.size),t.targetRect=r,o.length>0){const e=OT(o);t.targetFillRect=e}}else if(r&&r.length>0){const n=r.slice(1).reduce(((e,t)=>({x0:Math.min(e.x0,t.rect.computedInner.x),y0:Math.min(e.y0,t.rect.computedInner.y),x1:Math.max(e.x1,t.rect.computedInner.x+t.rect.computedInner.width),y1:Math.max(e.y1,t.rect.computedInner.y+t.rect.computedInner.height)})),{x0:r[0].rect.computedInner.x,y0:r[0].rect.computedInner.y,x1:r[0].rect.computedInner.x+r[0].rect.computedInner.width,y1:r[0].rect.computedInner.y+r[0].rect.computedInner.height});t.targetRect={x:n.x0-e.state.rect.x,y:n.y0-e.state.rect.y,width:n.x1-n.x0,height:n.y1-n.y0}}return t}(this);if(i=o.scale?o.scale:i,this.state.targetRect=o.targetRect,this.state.targetFillRect=o.targetFillRect,this.state.size=null===o.size?r:o.size,this.state.settings=t,this.state.style=this.style,this.state.offset=n,this.state.brush="object"==typeof t.brush?t.brush.context:t.brush,this.state.brushInstance=this.chart.brush(this.state.brush),this.state.renderer=this.renderer,this.state.multi=!!t.multiple,this.state.h=e,this.state.onEditConfirmed=(e,t,n)=>{this.state.edit=null,function(e,t,n,r){let i=e.ranges.map((e=>({min:e.min,max:e.max})));const o=e.scale.min(),a=e.scale.max();i[t]={min:Math.max(o,Math.min(n,r)),max:Math.min(a,Math.max(n,r))},e.ranges[t]=Uy({},i[t]);const s=e.scale.data();s&&s.fields&&s.fields.forEach((t=>{e.fauxBrushInstance||e.brushInstance.setRange(t.id(),i)}))}(this.state,e,t,n),this.emit("bubbleEnd"),kT(this.state)},this.state.onEditCanceled=()=>{this.state.edit=null,kT(this.state)},this.state.cssCoord={offset:this.state.direction===mT?"top":"left",coord:this.state.direction===mT?"y":"x",pos:this.state.direction===mT?"deltaY":"deltaX"},this.state.format="function"==typeof t.bubbles.label&&((e,n)=>t.bubbles.label.call(void 0,{datum:e,data:n,scale:i,resources:{scale:this.chart.scale,formatter:this.chart.formatter}})),{}.hasOwnProperty.call(i,"norm")){this.state.editable=!0,this.state.observeBrush="object"==typeof t.brush&&t.brush.observe,this.state.fauxBrushInstance=null,this.state.findValues=null,this.state.scale=i;const e=this.state.scale.data();!this.state.format&&e&&e.fields&&e.fields[0]&&(this.state.format=e.fields[0].formatter())}else this.state.editable=!1,this.state.scale=yM(),this.state.scale.data=i.data,this.state.format||(this.state.format=(e,t)=>AT(i.range(),t)?function(e,t){const n=t.ticks(),r=t.domain().indexOf(TT(e,t));return-1!==r?n[r].label:"-"}(e,i):"-"),this.state.fauxBrushInstance=tE(),this.state.findValues=e=>function(e,t){const n=t.domain(),r=t.range(),i=[];return e.forEach((e=>{if(!AT(r,[e.min,e.max]))return;const o=n.indexOf(TT(e.min,t)),a=n.indexOf(TT(e.max,t));i.push.apply(i,n.slice(Math.min(o,a),Math.max(o,a)+1))})),i}(e,i);return this.state.ranges=CT(this.state,this.state.brushInstance),this.state.observeBrush||this.state.sourcedFromThisComponent?[ST(this.state)]:[]},mounted(){this.state.observeBrush&&this.state.brushInstance&&this.state.brushInstance.on("update",this.renderRanges)},beforeDestroy(){this.state.observeBrush&&this.state.brushInstance&&this.state.brushInstance.removeListener("update",this.renderRanges)},start(e){!function(e){let{state:t,e:n,renderer:r,ranges:i,targetSize:o}=e;if(t.started)return;t.edit=null;const a=n.center.x-n.deltaX,s=n.center.y-n.deltaY;let l=document.elementFromPoint(a,s);r.element().contains(l)||(l=null);const c={started:!0};t.offset=Hy({},r.element().getBoundingClientRect());const u=a-t.offset.left,d=s-t.offset.top;t.offset.left+=t.targetRect?t.targetRect.x:0,t.offset.top+=t.targetRect?t.targetRect.y:0,t.ranges=i(t,t.fauxBrushInstance||t.brushInstance);const f=n.center[t.cssCoord.coord]-n[t.cssCoord.pos]-t.offset[t.cssCoord.offset],h=n.center[t.cssCoord.coord]-t.offset[t.cssCoord.offset];c.current=t.scale.normInvert(h/t.size),c.start=t.scale.normInvert(f/t.size);let p=t.ranges;const m=wT(t);let g,y,v=-1;if(l&&l.hasAttribute("data-idx"))v=parseInt(l.getAttribute("data-idx"),10),m.min=v>0?p[v-1].max:m.min,m.max=v+1<p.length?p[v+1].min:m.max;else{for(g=0;g<p.length;g++){if(p[g].min<=c.start&&c.start<=p[g].max){v=g,m.min=g?p[g-1].max:m.min,m.max=g+1<p.length?p[g+1].min:m.max;break}if(c.start<p[g].min){m.max=p[g].min,m.min=g?p[g-1].max:m.min;break}}-1===v&&p.length&&g>=p.length&&(m.min=p[p.length-1].max)}if(-1!==v||t.multi||(c.ranges=[],m.min=t.scale.min(),m.max=t.scale.max()),-1!==v)if(y={idx:v,start:p[v].min,end:p[v].max,limitLow:m.min,limitHigh:m.max,mode:"move"},l&&l.hasAttribute("data-other-value"))c.start=parseFloat(l.getAttribute("data-other-value")),y.mode="modify";else{let e=t.scale.norm(y.start)*t.size,n=t.scale.norm(y.end)*t.size;Math.abs(f-e)<=o?(c.start=y.end,y.mode="modify"):Math.abs(f-n)<=o&&(c.start=y.start,y.mode="modify")}else y={idx:-1,start:c.start,end:c.current,limitLow:m.min,limitHigh:m.max,mode:"current"};c.active=y,"modify"!==y.mode&&t.targetRect&&!fk(t.targetRect,{x:u,y:d})||Object.keys(c).forEach((e=>t[e]=c[e]))}({e:e,state:this.state,renderer:this.renderer,ranges:CT,targetSize:pT})},end(){this.state.started&&(!function(e,t){e.started=!1,e.ranges=t(e,e.fauxBrushInstance||e.brushInstance);const n=wT(e);ET(e,e.current,n)}(this.state,CT),kT(this.state),this.state.sourcedFromThisComponent=!0,this.state.active=null)},move(e){this.state.started&&(!function(e,t){const n=(t.center[e.cssCoord.coord]-e.offset[e.cssCoord.offset])/e.size,r=e.scale.normInvert(n);e.current=Math.max(Math.min(r,e.active.limitHigh),e.active.limitLow)}(this.state,e),function(e){let t=e.ranges.map((e=>({min:e.min,max:e.max})));if(-1!==e.active.idx)if("modify"===e.active.mode)t[e.active.idx].min=Math.min(e.start,e.current),t[e.active.idx].max=Math.max(e.start,e.current);else{const n=xT(e);t[e.active.idx].min+=n,t[e.active.idx].max+=n}else t.push({min:Math.min(e.start,e.current),max:Math.max(e.start,e.current)});const n=e.scale.data();n&&n.fields&&n.fields.forEach((n=>{if(e.fauxBrushInstance){let r=CT(e,e.fauxBrushInstance),i=e.findValues(r),o=e.findValues(t),a=o.filter((e=>-1===i.indexOf(e))),s=i.filter((e=>-1===o.indexOf(e))),l=a.map((e=>({key:n.id(),value:e}))),c=s.map((e=>({key:n.id(),value:e})));e.brushInstance.addAndRemoveValues(l,c),e.fauxBrushInstance.setRange(n.id(),t)}else e.brushInstance.setRange(n.id(),t)}))}(this.state),kT(this.state))},clear(){this.state.fauxBrushInstance&&this.state.fauxBrushInstance.clear(),this.state.renderer.render([]),this.state.started=!1,this.state.active=null,this.state.sourcedFromThisComponent=!1},bubbleStart(e){if(!this.state.editable)return;const t=e.srcEvent||e,n=t.target,r={rangeIdx:parseInt(n.getAttribute("data-idx"),10),bubbleIdx:parseInt(n.getAttribute("data-bidx"),10)};if(isNaN(r.rangeIdx)||JSON.stringify(r)===JSON.stringify(this.state.edit))return;this.state.edit=r,t.stopPropagation(),t.stopImmediatePropagation(),t.preventDefault();const i=n.parentNode;kT(this.state);const o=i.querySelector("input");o.focus(),o.select()}};function qT(e){e.renderer.render(ST(e))}function DT(e){return e.rc.ranges()}function RT(e,t){const n={x:e.direction?t.min+e.rect.x:e.rect.x,y:e.direction?e.rect.y:t.min+e.rect.y,width:e.direction?t.max-t.min:e.rect.width+e.rect.x,height:e.direction?e.rect.height+e.rect.y:t.max-t.min};return e.chart.shapesAt(n,e.settings.brush)}const IT={require:["chart","settings","renderer"],defaultSettings:{settings:{bubbles:{show:!0,align:"start"}},style:{bubble:"$label-overlay",line:"$shape-guide--inverted",target:"$selection-area-target"}},renderer:"dom",on:{areaStart(e){this.start(e)},areaMove(e){this.move(e)},areaEnd(e){this.end(e)},areaClear(e){this.clear(e)}},created(){this.state={key:this.settings.key||"brush-area-dir"}},render(e){this.state.rect=this.rect;const t=this.settings.settings,n="vertical"===t.direction?mT:1,r=this.state.rect[n===mT?"height":"width"],i=this.renderer.element().getBoundingClientRect(),o=(t.target?t.target.components||[t.target.component]:[]).map((e=>this.chart.component(e))).filter((e=>!!e&&!!e.rect)),a=o[0]?o.slice(1).reduce(((e,t)=>({x0:Math.min(e.x0,t.rect.x),y0:Math.min(e.y0,t.rect.y),x1:Math.max(e.x1,t.rect.x+t.rect.width),y1:Math.max(e.y1,t.rect.y+t.rect.height)})),{x0:o[0].rect.x,y0:o[0].rect.y,x1:o[0].rect.x+o[0].rect.width,y1:o[0].rect.y+o[0].rect.height}):null;return this.state.targetRect=a?{x:a.x0-this.rect.x,y:a.y0-this.rect.y,width:a.x1-a.x0,height:a.y1-a.y0}:null,this.state.style=this.style,this.state.chart=this.chart,this.state.direction=n,this.state.settings=t,this.state.offset=i,this.state.rc=BM(),this.state.renderer=this.renderer,this.state.multi=!!t.multiple,this.state.h=e,this.state.size=r,this.state.cssCoord={offset:this.state.direction===mT?"top":"left",coord:this.state.direction===mT?"y":"x",pos:this.state.direction===mT?"deltaY":"deltaX",area:this.state.direction===mT?"height":"width"},this.state.format=function(e,t){return function(e,t,n){const r=Math.min(...n),i=Math.max(...n),o={x:e.direction?r+e.rect.x:e.rect.x,y:e.direction?e.rect.y:r+e.rect.y,width:e.direction?i-r:e.rect.width+e.rect.x,height:e.direction?e.rect.height+e.rect.y:i-r},a=e.chart.shapesAt(o,e.settings.brush);if(0===a.length)return"-";const s=a.reduce(((n,i)=>{const o=n.bounds,a=i.bounds;return t===r?o[e.cssCoord.coord]<=a[e.cssCoord.coord]?n:i:o[e.cssCoord.coord]+o[e.cssCoord.area]>=a[e.cssCoord.coord]+a[e.cssCoord.area]?n:i})),l=e.settings.brush.components.reduce(((e,t)=>e.key===s.key?e:t));return"function"==typeof e.settings.bubbles.label?e.settings.bubbles.label(s.data):Array.isArray(l.data)&&l.data.length?s.data[l.data[0]].label:s.data&&s.data.label?s.data.label:"-"}(this,e,t)},[]},start(e){!function(e){let{state:t,e:n,renderer:r,ranges:i,targetSize:o}=e;if(t.started)return;const a=n.center.x-n.deltaX,s=n.center.y-n.deltaY;let l=document.elementFromPoint(a,s);r.element().contains(l)||(l=null);const c={started:!0};t.offset=r.element().getBoundingClientRect(),t.ranges=i(t);const u=a-t.offset.left,d=s-t.offset.top,f=n.center[t.cssCoord.coord]-n[t.cssCoord.pos]-t.offset[t.cssCoord.offset],h=n.center[t.cssCoord.coord]-t.offset[t.cssCoord.offset];let p=h,m=f;c.start=f,c.current=h;let g=t.ranges;const y=MT(t);let v,b,x=-1;if(l&&l.hasAttribute("data-idx"))x=parseInt(l.getAttribute("data-idx"),10),y.min=x>0?g[x-1].max:y.min,y.max=x+1<g.length?g[x+1].min:y.max;else{for(v=0;v<g.length;v++){if(g[v].min<=m&&m<=g[v].max){x=v,y.min=v?g[v-1].max:y.min,y.max=v+1<g.length?g[v+1].min:y.max;break}if(m<g[v].min){y.max=g[v].min,y.min=v?g[v-1].max:y.min;break}}-1===x&&g.length&&v>=g.length&&(y.min=g[g.length-1].max)}if(-1!==x||t.multi||(c.ranges=[],y.min=0,y.max=t.direction?t.rect.width:t.rect.height),-1!==x)if(b={idx:x,start:g[x].min,end:g[x].max,limitLow:y.min,limitHigh:y.max,mode:"move"},l&&l.hasAttribute("data-other-value"))c.start=parseFloat(l.getAttribute("data-other-value")),b.mode="modify";else{let e=b.start,t=b.end;Math.abs(f-e)<=o?(c.start=b.end,b.mode="modify"):Math.abs(f-t)<=o&&(c.start=b.start,b.mode="modify")}else b={idx:-1,start:m,end:p,limitLow:y.min,limitHigh:y.max,mode:"current"};c.active=b,"modify"!==b.mode&&t.targetRect&&!fk(t.targetRect,{x:u,y:d})||Object.keys(c).forEach((e=>t[e]=c[e]))}({e:e,state:this.state,renderer:this.renderer,ranges:DT,targetSize:pT})},end(){this.state.started&&(!function(e,t){e.started=!1,e.ranges=t(e);const n=MT(e);ET(e,e.current,n)}(this.state,DT),qT(this.state))},move(e){this.state.started&&(!function(e,t){const n=t.center[e.cssCoord.coord]-e.offset[e.cssCoord.offset];e.current=Math.max(Math.min(n,e.active.limitHigh),e.active.limitLow)}(this.state,e),function(e){const t=e.ranges.map((e=>({min:e.min,max:e.max})));if(-1!==e.active.idx)if("modify"===e.active.mode)t[e.active.idx].min=Math.min(e.start,e.current),t[e.active.idx].max=Math.max(e.start,e.current);else{const n=xT(e);t[e.active.idx].min=e.active.start+n,t[e.active.idx].max=e.active.end+n}else t.push({min:Math.min(e.start,e.current),max:Math.max(e.start,e.current)});e.rc.set(t);let n=[];t.forEach((t=>{n=[...n,...RT(e,t)]})),function(e,t){e.chart.brushFromShapes(t,e.settings.brush)}(e,n)}(this.state),qT(this.state))},clear(){this.state.rc&&this.state.rc.clear(),this.state.renderer.render([])}};function _T(e){const t="vertical"===e.direction,n=e.rect[t?"height":"width"],r=e.rect[t?"width":"height"];return function(e){const t=e.brush;if(!t||!t.isActive())return[];const n=e.scale.data(),r=(n&&n.fields||[]).map((e=>e.id())),i=t.brushes().filter((e=>"range"===e.type&&-1!==r.indexOf(e.id)))[0];return i?i.brush.ranges():[]}(e).map((i=>{const o=e.scale(i.min)*n,a=e.scale(i.max)*n,s=Math.min(o,a),l=Math.abs(o-a);return{type:"rect",fill:e.fill,opacity:e.opacity,x:t?0:s,width:t?r:l,y:t?s:0,height:t?l:r}}))}function PT(e,t,n,r){function i(){!function(e){e.renderer.render(_T(e))}(e)}function o(){!function(e){e.renderer.render(_T(e))}(e)}function a(){!function(e){e.renderer.render(_T(e))}(e)}e.brush=t,t&&(t.on("start",i),t.on("update",o),t.on("end",a),e.start=i,e.update=o,e.end=a,e.brush=t,e.scale=n,e.renderer=r)}function LT(e){e.brush&&(e.brush.removeListener("start",e.start),e.brush.removeListener("update",e.update),e.brush.removeListener("end",e.end)),e.start=void 0,e.update=void 0,e.end=void 0,e.brush=void 0,e.scale=void 0,e.renderer=void 0}const zT={require:["chart","settings","renderer"],defaultSettings:{settings:{}},preferredSize:()=>50,created(){this.state={}},render(){const e=this.settings.settings,t=this.chart.brush(e.brush),n=e.direction||"horizontal",r="horizontal"===n?this.rect.width:this.rect.height,i=pE(this.chart.scale(e.scale),r);return LT(this.state),PT(this.state,t,i,this.renderer),this.state.rect=this.rect,this.state.fill=e.fill||"#ccc",this.state.opacity=void 0!==e.opacity?e.opacity:1,this.state.direction=n,_T(this.state)},beforeDestroy(){LT(this.state)}};function FT(e,t){const n=t.center.x,r=t.center.y;return{x:n-e.left,y:r-e.top}}function jT(e,t,n){return DE(e,t.points[0])<n.settings.snapIndicator.threshold**2}function $T(e,t){null==e.path.d?e.path.d="M".concat(t.x," ").concat(t.y," "):e.path.d+="L".concat(t.x," ").concat(t.y," "),e.points.push(t)}function HT(e){let{state:t,start:n=null,end:r=null}=e;null!==n&&(t.snapIndicator.x1=n.x,t.snapIndicator.y1=n.y),null!==r&&(t.snapIndicator.x2=r.x,t.snapIndicator.y2=r.y)}function BT(e,t){e.snapIndicator.visible=t}const VT={require:["chart","renderer","settings"],defaultSettings:{layout:{displayOrder:0},settings:{brush:{components:[]},snapIndicator:{threshold:75,strokeDasharray:"5, 5",stroke:"black",strokeWidth:2,opacity:.5},lasso:{fill:"transparent",stroke:"black",strokeWidth:2,opacity:.7,strokeDasharray:"20, 10"},startPoint:{r:10,fill:"green",stroke:"black",strokeWidth:1,opacity:1}}},on:{lassoStart(e){this.start(e)},lassoEnd(e){this.end(e)},lassoMove(e){this.move(e)},lassoCancel(){this.cancel()}},created(){this.state={points:[],active:!1,path:null,snapIndicator:null,startPoint:null,rendererBounds:null,componentDelta:null,brushConfig:null,lineBrushShape:{x1:0,y1:0,x2:0,y2:0}}},start(e){var t;this.state.active=!0,this.state.path={visible:!0,type:"path",d:null,fill:(t=this.settings.settings.lasso).fill,stroke:t.stroke,strokeWidth:t.strokeWidth,opacity:t.opacity,strokeDasharray:t.strokeDasharray,collider:{type:null}},this.state.snapIndicator=function(e){return{visible:!1,type:"line",x1:0,y1:0,x2:0,y2:0,strokeDasharray:e.strokeDasharray,stroke:e.stroke,strokeWidth:e.strokeWidth,opacity:e.opacity,collider:{type:null}}}(this.settings.settings.snapIndicator),this.state.startPoint=function(e){return{visible:!0,type:"circle",cx:0,cy:0,r:e.r,fill:e.fill,opacity:e.opacity,stroke:e.stroke,strokeWidth:e.strokeWidth,collider:{type:null}}}(this.settings.settings.startPoint),this.state.rendererBounds=this.renderer.element().getBoundingClientRect(),this.state.componentDelta=function(e,t){const n=e.element.getBoundingClientRect();return{x:t.left-n.left,y:t.top-n.top}}(this.chart,this.state.rendererBounds),this.state.brushConfig=this.settings.settings.brush.components.map((e=>({key:e.key,contexts:e.contexts||["lassoBrush"],data:e.data||[""],action:e.action||"add"})));const n=FT(this.state.rendererBounds,e);$T(this.state,n),HT({state:this.state,start:n}),function(e,t){e.startPoint.cx=t.x,e.startPoint.cy=t.y}(this.state,n)},move(e){if(!this.state.active)return;const t=FT(this.state.rendererBounds,e);jT(t,this.state,this.settings)?BT(this.state,!0):BT(this.state,!1),$T(this.state,t),HT({state:this.state,end:t}),function(e,t){const n=[e.startPoint,e.path,e.snapIndicator].filter((e=>e.visible));t.render(n)}(this.state,this.renderer),function(e,t){if(e.active){const n=e.points[e.points.length-2],r=e.points[e.points.length-1];e.lineBrushShape.x1=n.x+e.componentDelta.x,e.lineBrushShape.y1=n.y+e.componentDelta.y,e.lineBrushShape.x2=r.x+e.componentDelta.x,e.lineBrushShape.y2=r.y+e.componentDelta.y;const i=t.shapesAt(e.lineBrushShape,{components:e.brushConfig});t.brushFromShapes(i,{components:e.brushConfig})}}(this.state,this.chart)},end(e){if(!this.state.active)return;BT(this.state,!1);jT(FT(this.state.rendererBounds,e),this.state,this.settings)&&function(e,t){if(e.active){const n=e.componentDelta.x,r=e.componentDelta.y,i=e.points.map((e=>({x:e.x+n,y:e.y+r}))),o=t.shapesAt({vertices:i},{components:e.brushConfig});t.brushFromShapes(o,{components:e.brushConfig})}}(this.state,this.chart),this.state={points:[],active:!1,path:null,snapIndicator:null,startPoint:null,rendererBounds:null,componentDelta:null,brushConfig:null,lineBrushShape:{x1:0,y1:0,x2:0,y2:0}},this.renderer.render([])},cancel(){this.state.active&&(!function(e,t){e.brushConfig.forEach((e=>{e.contexts.forEach((e=>{t.brush(e).end()}))}))}(this.state,this.chart),this.state={points:[],active:!1,path:null,snapIndicator:null,startPoint:null,rendererBounds:null,componentDelta:null,brushConfig:null,lineBrushShape:{x1:0,y1:0,x2:0,y2:0}},this.renderer.render([]))},render(){}};function UT(e,t,n,r,i){let o,a=0,s=t.length-1;for(;a<s;){let l=Math.floor((a+s)/2);o=i(t[l]),o[n]+o[r]<e[n]?a=l+1:s=l}return a}function WT(e){let{orientation:t,targetNodes:n,labels:r,container:i}=e,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:UT;const a=[],s="v"===t?"x":"y",l="v"===t?"width":"height",c=e=>e.textBounds,u=e=>e.node.localBounds;return(e,t)=>{const{textBounds:d,node:f}=r[t];if(d[s]<i[s]||d[s]+d[l]>i[s]+i[l])return!1;for(let e=o(d,a,s,l,c);e<a.length;e++)if(uk(d,a[e].textBounds))return!1;const h=o(d,n,s,l,u),p=d[s]+d[l];for(let e=h;e<n.length;e++){const t=n[e].node;if(p<t.localBounds[s])break;if(uk(d,t.localBounds)&&f!==t)return!1}return a.push(r[t]),!0}}const YT=4;function XT(e,t){return{node:e,data:e.data,scale:t.scale,formatter:t.formatter,dataset:t.dataset}}function GT(e){const t=typeof e;return("string"===t||"number"===t)&&""!==e}function KT(e){return Uy(Uy({type:"rect",rx:2,ry:2,fill:e.backgroundColor},e.backgroundBounds),{},{data:"".concat(e.data," ").concat(e.text),rotation:e.transform&&e.transform.match(/rotate/gi)?"rotated":"horizontal"})}function JT(e,t,n){return n?e.width>=t.height:e.width>=t.width}function QT(e,t,n){return n?e.height>=t.width:e.height>=t.height}function ZT(e,t,n,r,i){let o,a;return"v"===e?(o=r||i||JT(t,n,!0),a=QT(t,n,!r)):(o=JT(t,n),a=i||QT(t,n,!1)),o&&a}function eA(e,t,n,r){return e+.5*t+(r-.5)*(t-n)-.5*n}function tA(e,t,n){const r={type:"text",text:t,maxWidth:n.rotate?e.height:e.width,x:0,y:e.y,dx:0,dy:0,fill:n.fill,anchor:n.rotate?"end":"start",baseline:"central",fontSize:"".concat(n.fontSize,"px"),fontFamily:n.fontFamily},i=n.textMetrics;if(!n.overflow&&!function(e,t,n){return JT(e,t,n.rotate)&&QT(e,t,n.rotate)}(e,i,n))return!1;const o=.5*i.height;return n.rotate?(r.x=eA(e.x,e.width,i.height,n.align)+o,r.y=eA(e.y,e.height,i.width,n.justify),r.transform="rotate(-90, ".concat(r.x+r.dx,", ").concat(r.y+r.dy,")")):(r.x=eA(e.x,e.width,i.width,n.align),r.y=eA(e.y,e.height,i.height,n.justify)+o),r}function nA(e){let{bar:t,view:n,direction:r,position:i,padding:o=YT}=e;const a={};if(Hy(a,t),i&&"inside"!==i)if("up"===r||"down"===r){const e=Math.max(0,Math.min(t.y,n.height)),o=Math.max(0,Math.min(t.y+t.height,n.height));"outside"===i&&"up"===r||"opposite"===i&&"down"===r?(a.y=0,a.height=e):("outside"===i&&"down"===r||"opposite"===i&&"up"===r)&&(a.y=o,a.height=n.height-o)}else{const e=Math.max(0,Math.min(t.x,n.width)),o=Math.max(0,Math.min(t.x+t.width,n.width));"outside"===i&&"left"===r||"opposite"===i&&"right"===r?(a.x=0,a.width=e):("outside"===i&&"right"===r||"opposite"===i&&"left"===r)&&(a.x=o,a.width=n.width-o)}else;return function(e,t){const n=Math.max(0,Math.min(e.y,t.height)),r=Math.max(0,Math.min(e.y+e.height,t.height)),i=Math.max(0,Math.min(e.x,t.width)),o=Math.max(0,Math.min(e.x+e.width,t.width));e.x=i,e.width=o-i,e.y=n,e.height=r-n}(a,n),function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{top:n=YT,bottom:r=YT,left:i=YT,right:o=YT}=t;e.x+=i,e.width-=i+o,e.y+=n,e.height-=n+r}(a,o),a}function rA(e){let t,n,r,i,o,{direction:a,fitsHorizontally:s,measured:l,node:c,orientation:u,placementSettings:d,rect:f}=e,h=arguments.length>1&&void 0!==arguments[1]?arguments[1]:nA;const p=[],m="h"===u?"width":"height";for(o=0;o<d.length;o++)if(r=d[o],i=h({bar:c.localBounds,view:f,direction:a,position:r.position,padding:r.padding}),p.push(i),t=!o||i[m]>t[m]?i:t,ZT(u,i,l,s,r.overflow)){n=i;break}return n||(n=t,o=p.indexOf(n)),r=d[o],{bounds:n,placement:r}}function iA(e,t,n,r){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};const{top:o=YT,bottom:a=YT,left:s=YT,right:l=YT}=i,c=e.x+e.dx,u=e.y+e.dy,d=n?Math.min(t.width,r.height):Math.min(t.height,r.width),f=n?Math.min(t.height,r.height):Math.min(t.width,r.width),h=.5*t.height,p=1e-9;return{x:(n?c-h:c)-s-p,y:(n?u:u-h)-o-p,width:f+(s+l)-p,height:d+(o+a)-p}}function oA(e){let{chart:t,targetNodes:n,rect:r,fitsHorizontally:i,collectiveOrientation:o}=e,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:rA,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:tA,l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:WT;const c=[],u={container:r,targetNodes:n,labels:[],orientation:o};let d,f,h,p,m,g,y,v,b,x,S,w,M,E;for(let e=0,l=n.length;e<l;e++){g=null,f=n[e],h=f.node,M=XT(h,t),b=f.direction,E="left"===b||"right"===b?"h":"v";for(let t=0;t<f.texts.length;t++){if(p=f.texts[t],!GT(p))continue;x=f.labelSettings[t],v=f.measurements[t],w=x.placements;const n=a({direction:b,fitsHorizontally:i,lblStngs:x,measured:v,node:h,orientation:E,placements:w,placementSettings:f.placementSettings[t],rect:r});if(g=n.bounds,S=n.placement,g&&S){m=S.justify;const t="function"==typeof x.linkData?x.linkData(M,e):void 0,n="function"==typeof S.overflow?S.overflow(M,e):S.overflow;"up"===b&&(m=1-m),"opposite"===S.position&&(m=1-m),"left"===b&&(m=1-m);const r=!("h"===o||i);if(d=s(g,p,{justify:"h"===E?S.align:m,align:"h"===E?m:S.align,fontSize:x.fontSize,fontFamily:x.fontFamily,textMetrics:v,rotate:r,overflow:!!n}),d){const n=iA(d,v,r,g,S.padding);y="function"==typeof S.fill?S.fill(Uy(Uy({},M),{},{textBounds:n}),e):S.fill,d.fill=y,void 0!==t&&(d.data=t),"object"==typeof S.background&&(d.backgroundColor="function"==typeof S.background.fill?S.background.fill(Uy(Uy({},M),{},{textBounds:n}),e):S.background.fill,void 0!==d.backgroundColor&&(d.backgroundBounds=iA(d,v,r,g,S.background.padding))),c.push(d),u.labels.push({node:h,textBounds:n})}}}}const k=c.filter(l(u)),C=k.filter((e=>void 0!==e.backgroundBounds)).map(KT);return[...C,...k]}const aA=4,sA=1;function lA(e){const t=2*Math.PI;return(e%t+t)%t}function cA(e,t){e.x+=t,e.width-=2*t,e.y+=t,e.height-=2*t}function uA(e){return{x:e.x,y:e.y-e.height/2,width:e.width,height:e.height}}function dA(e,t,n){let{x:r,y:i}=t;if(r*r+i*i>e*e)return null;let o=Math.sin(n),a=Math.cos(n),s=r*a-i*o,l=e*e-s*s;if(l<0)return null;let c=Math.sqrt(l);return{x:s*a+o*c,y:-s*o+a*c}}function fA(e){let t,n,{radius:r,size:i,angle:o}=e,{width:a,height:s}=i,l={x:a/2,y:s/2};switch(Math.floor(o/(Math.PI/2))){case 0:if(t=dA(r,l,o),!t)return null;t.y*=-1,n={x:-a,y:0};break;case 1:if(t=dA(r,l,Math.PI-o),!t)return null;n={x:-a,y:-s};break;case 2:if(t=dA(r,l,o-Math.PI),!t)return null;t.x*=-1,n={x:0,y:-s};break;case 3:if(t=dA(r,l,2*Math.PI-o),!t)return null;t.x*=-1,t.y*=-1,n={x:0,y:0};break;default:throw new Error("invalid angle")}return{x:t.x+n.x,y:t.y+n.y,width:a,height:s}}function hA(e){let{slice:t,measured:n,padding:r}=e,{start:i,end:o,innerRadius:a,outerRadius:s}=t,l=s-a-2*r,c=o-i;if(c<Math.PI){let e=(n.height/2+r)/Math.tan(c/2);e>a&&(l=s-e-2*r)}if(l<0||l<n.minReqWidth)return null;const u=lA((i+o)/2);let d=s-r,f={x:Math.sin(u)*d,y:-Math.cos(u)*d,width:l,height:n.height};return u<Math.PI?(f.angle=u-Math.PI/2,f.anchor="end"):(f.angle=u+Math.PI/2,f.anchor="start"),f}function pA(e){let{context:t,node:n,bounds:r}=e;let{start:i,end:o}=n.desc.slice;const a=lA((i+o)/2);switch(Math.floor(a/(Math.PI/2))){case 0:t.q1maxY=r.y-2,void 0===t.q2minY&&(t.q2minY=r.y+r.height+2);break;case 1:t.q2minY=r.y+r.height+2;break;case 2:t.q3minY=r.y+r.height+2;break;case 3:t.q4maxY=r.y-2,void 0===t.q3minY&&(t.q3minY=r.y+r.height+2)}}function mA(e,t){return{node:e,data:e.data,scale:t.scale,formatter:t.formatter,dataset:t.dataset}}function gA(e,t,n){const r={type:"text",text:t,maxWidth:e.width,x:e.x,y:e.y+("top"===e.baseline?e.height/2:0),fill:n.fill,anchor:e.anchor||"start",baseline:"middle",fontSize:"".concat(n.fontSize,"px"),fontFamily:n.fontFamily};if(!isNaN(e.angle)){let t=e.angle*(360/(2*Math.PI));r.transform="rotate(".concat(t,", ").concat(r.x,", ").concat(r.y,")")}return r}function yA(e){let t,n,{slice:r,direction:i,position:o,padding:a,measured:s,view:l,context:c,store:u}=e,{start:d,end:f,innerRadius:h,offset:p}=r;switch(o){case"into":t="rotate"===i?hA({slice:r,measured:s,padding:a}):function(e){let{slice:t,padding:n,measured:r}=e,{start:i,end:o,innerRadius:a,outerRadius:s}=t;const l=lA((i+o)/2);let c=fA({radius:s,size:{width:r.width+2*n+sA,height:r.height+2*n},angle:l});return c?(c.baseline="top",hk(c,{x1:0,y1:0,x2:Math.sin(i)*s,y2:-Math.cos(i)*s})||hk(c,{x1:0,y1:0,x2:Math.sin(o)*s,y2:-Math.cos(o)*s})||ik({cx:0,cy:0,r:a},c)?null:(cA(c,n),c)):null}({slice:r,measured:s,padding:a});break;case"inside":n={start:d,end:f,innerRadius:0,outerRadius:h},t="rotate"===i?hA({slice:n,measured:s,padding:a}):function(e){let{slice:t,padding:n,measured:r,store:i}=e;const{start:o,end:a,outerRadius:s}=t,l=lA((o+a)/2);let c=fA({radius:s,size:{width:r.width+2*n+sA,height:r.height+2*n},angle:l});return c?(c.baseline="top",cA(c,n),i.insideLabelBounds.some((e=>uk(e,c)))?null:(i.insideLabelBounds.push({x:c.x-aA,y:c.y,width:c.width+2*aA,height:c.height}),c)):null}({slice:n,measured:s,padding:a,store:u});break;case"outside":t="rotate"===i?function(e){let{slice:t,measured:n,padding:r,view:i}=e,{start:o,end:a,outerRadius:s,offset:l}=t,c=s+r,u=a-o;if(u<Math.PI&&(n.height/2+r)/Math.tan(u/2)>c)return null;const d=lA((o+a)/2);let f=Math.sin(d)*c,h=-Math.cos(d)*c,p=n.width+sA,m=d%Math.PI;if(m>Math.PI/2&&(m=Math.PI-m),Math.cos(m)>.001){let e=h<0?i.y:i.y+i.height,t=Math.abs(e-l.y)/Math.cos(m)-Math.tan(m)*(n.height/2)-2*r-s;t<p&&(p=t)}if(Math.sin(m)>.001){let e=f<0?i.x:i.x+i.width,t=Math.abs(e-l.x)/Math.sin(m)-n.height/2/Math.tan(m)-2*r-s;t<p&&(p=t)}if(p<=0||p<n.minReqWidth)return null;let g={x:f,y:h,width:p,height:n.height};return d<Math.PI?(g.angle=d-Math.PI/2,g.anchor="start"):(g.angle=d+Math.PI/2,g.anchor="end"),g}({slice:r,measured:s,padding:a,view:l}):function(e){let{slice:t,measured:n,padding:r,view:i,context:o}=e,{start:a,end:s,outerRadius:l,offset:c}=t;const u=lA((a+s)/2);if(function(e,t,n){switch(t){case 0:return e.q1maxY<0;case 1:return e.q2minY>n.height;case 2:return e.q3minY>n.height;case 3:return e.q4maxY<0;default:return!0}}(o,Math.floor(u/(Math.PI/2)),i))return null;let d=l+r+n.height/2,f=Math.sin(u)*d,h=-Math.cos(u)*d,p=n.width+sA;if(u<Math.PI){let e=Math.abs(i.x+i.width-(f+c.x));e<p&&(p=e)}else{let e=Math.abs(i.x-(f+c.x));e<p&&(p=e)}if(p<n.minReqWidth)return null;let m={x:f,y:h,width:p,height:n.height};return u<Math.PI?m.anchor="start":m.anchor="end",m}({slice:r,measured:s,padding:a,view:l,context:c});break;default:throw new Error("not implemented")}return t&&(t.x+=p.x,t.y+=p.y,"outside"===o&&"rotate"!==i&&function(e,t,n){const{start:r,end:i,offset:o,outerRadius:a}=n,s=lA((r+i)/2);switch(Math.floor(s/(Math.PI/2))){case 0:if(void 0!==t.q1maxY){let n=Math.min(e.y,t.q1maxY-e.height),r=e.y-n;if(e.y=n,r>1){let t=a+2;e.line={type:"line",x1:e.x-2,y1:e.y+2,x2:o.x+Math.sin(s)*t,y2:o.y-Math.cos(s)*t,strokeWidth:1}}}break;case 1:if(void 0!==t.q2minY){let n=Math.max(e.y,t.q2minY),r=n-e.y;if(e.y=n,r>1){let t=a+2;e.line={type:"line",x1:e.x-2,y1:e.y-2,x2:o.x+Math.sin(s)*t,y2:o.y-Math.cos(s)*t,strokeWidth:1}}}break;case 2:if(void 0!==t.q3minY){let n=Math.max(e.y,t.q3minY),r=n-e.y;if(e.y=n,r>1){let t=a+2;e.line={type:"line",x1:e.x+2,y1:e.y-2,x2:o.x+Math.sin(s)*t,y2:o.y-Math.cos(s)*t,strokeWidth:1}}}break;case 3:if(void 0!==t.q4maxY){let n=Math.min(e.y,t.q4maxY-e.height),r=e.y-n;if(e.y=n,r>1){let t=a+2;e.line={type:"line",x1:e.x+2,y1:e.y+2,x2:o.x+Math.sin(s)*t,y2:o.y-Math.cos(s)*t,strokeWidth:1}}}}}(t,c,r)),t}function vA(e){let{context:t,direction:n,measured:r,node:i,placementSettings:o,rect:a,store:s}=e,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:yA;for(let e=0;e<o.length;e++){let c=o[e],u=l({context:t,slice:i.desc.slice,view:a,direction:n,position:c.position,measured:r,padding:c.padding,store:s});if(u)return{bounds:u,placement:c}}return{bounds:null,placement:null}}function bA(e,t,n){const r=t.fontFamily,i="".concat(t.fontSize,"px"),o=n.measureText({text:e,fontFamily:r,fontSize:i});return o.minReqWidth=Math.min(o.width,n.measureText({text:"".concat(e[0],"…"),fontFamily:r,fontSize:i}).width),o}const xA=/\n+|\r+|\r\n/,SA=/\s/,wA=/[a-zA-Z\u00C0-\u00F6\u00F8-\u00FF\u00AD]/,MA=0,EA=1,kA=2;function CA(e){return"string"==typeof e?-1!==e.search(xA):-1!==String(e).search(xA)}function TA(e){return-1!==e.search(SA)}function AA(e){return-1!==e.search(wA)}function OA(e,t,n){return Math.max(t,Math.min(n,e))}function NA(){let{string:e,separator:t="",reverse:n=!1,measureText:r=(e=>({width:e.length,height:1})),mandatoryBreakIdentifiers:i=[CA],noBreakAllowedIdentifiers:o=[],suppressIdentifier:a=[TA,CA,e=>""===e],hyphenationIdentifiers:s=[AA]}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const l=String(e).split(t);!function(e){""===e[0]&&e.shift(),""===e[e.length-1]&&e.pop()}(l);const c=l.length,u=n?e=>e>=0:e=>e<c;let d=n?c:-1;function f(e){const t=OA(e,0,c-1),n=l[t],u=r(n),d=function(e,t,n,r,i){return r.some((r=>r(e,t,n)))?EA:i.some((r=>r(e,t,n)))?MA:kA}(n,t,l,i,o);return{index:t,value:n,breakOpportunity:d,suppress:a.some((e=>e(n,t,l))),hyphenation:s.some((e=>e(n,t,l))),width:u.width,height:u.height,done:!1}}return{next:function(e){return isNaN(e)?n?d--:d++:d=OA(e,0,c-1),u(d)?f(d):{done:!0}},peek:f,length:c}}const qA="‐",DA="…",RA=24,IA=4,_A=1e-12,PA=16,LA=1.2,zA=/^\s*\d+(\.\d+)?px\s*$/i;function FA(e){return"string"===typeof e&&zA.test(e)}function jA(e){const t=e["font-size"]||e.fontSize;return FA(t)?parseFloat(t)*Math.max(isNaN(e.lineHeight)?LA:e.lineHeight,0):PA*LA}function $A(e){const t=e.maxHeight,n=Math.max(e.maxLines,1)||1/0;if(isNaN(t))return n;const r=jA(e);return Math.max(1,Math.min(Math.floor(t/r),n))}function HA(e,t){return{lines:[],line:"",width:0,maxLines:$A(e),maxWidth:e.maxWidth,hyphens:{enabled:"auto"===e.hyphens,char:qA,metrics:t(qA)}}}function BA(e){e.lines.push(e.line),e.line="",e.width=0}function VA(e,t){e.line+=t.value,e.width+=t.width}function UA(e,t,n){if(t.width>e.maxWidth)return t;const r=t.index;for(let i=1;i<5;i++){const o=n.peek(t.index-1);if(!t.hyphenation||!o.hyphenation||0===t.index)return t;if(e.width+e.hyphens.metrics.width<=e.maxWidth)return e.line+=e.hyphens.char,t;if(1===e.line.length)return t;t=n.next(r-i),e.line=e.line.slice(0,-1),e.width-=t.width}return t}function WA(e,t,n){const r=NA({string:t.value,measureText:n});for(;e.lines.length<e.maxLines;){let t=r.next();if(t.done)break;e.width+t.width>e.maxWidth&&t.breakOpportunity===kA&&e.line.length>0?(t=e.hyphens.enabled?UA(e,t,r):t,BA(e),VA(e,t)):VA(e,t)}}function YA(e,t){const n=NA({string:e.text,separator:"",measureText:t,noBreakAllowedIdentifiers:[(e,t)=>0===t]}),r=HA(e,t);let i=!0;for(;r.lines.length<r.maxLines;){let e=n.next();if(e.done){BA(r),i=!1;break}e.breakOpportunity===EA?BA(r):r.width+e.width>r.maxWidth&&e.breakOpportunity===kA?e.suppress?r.width+=e.width:(e=r.hyphens.enabled?UA(r,e,n):e,BA(r),VA(r,e)):VA(r,e)}return{lines:r.lines,reduced:i}}function XA(e,t){const n=NA({string:e.text,separator:/(\s|-|\u2010)/,measureText:t}),r=HA(e,t);let i=!0;for(;r.lines.length<r.maxLines;){let e=n.next();if(e.done){BA(r),i=!1;break}e.breakOpportunity===EA?BA(r):r.width+e.width>r.maxWidth&&e.breakOpportunity===kA?e.suppress?BA(r):e.width>r.maxWidth?WA(r,e,t):(BA(r),VA(r,e)):VA(r,e)}return{lines:r.lines,reduced:i}}function GA(e){return{"break-all":YA,"break-word":XA}[e.wordBreak]}function KA(e){return t=>{const n=t.node;if(function(e){return"text"===e.type&&!e._lineBreak}(n)){const r=GA(n);if(!r)return;const i=e(n);if(i.width>n.maxWidth||CA(n.text)){const o=(jA(n)-i.height)/2,a=r(n,function(e,t){return n=>t({text:n,fontSize:e.fontSize,fontFamily:e.fontFamily})}(n,e));t.node=function(e,t,n,r){const i={type:"container",children:[]};void 0!==t.id&&(i.id=t.id);let o=0;return e.lines.forEach(((a,s)=>{const l=Hy({},t);l.text=a,l._lineBreak=!0,o+=n,e.reduced&&s===e.lines.length-1?l.text+=DA:delete l.maxWidth,l.dy=isNaN(l.dy)?o:l.dy+o,o+=r,o+=n,i.children.push(l)})),i}(a,n,o,i.height)}}}}function JA(e,t){let{text:n,"font-size":r,"font-family":i,maxWidth:o}=e;if(n="string"==typeof n?n:"".concat(n),void 0===o)return n;let a=t({text:n,fontSize:r,fontFamily:i}).width;if(a<=o)return n;let s=0,l=n.length-1;for(;s<=l;){let e=Math.floor((s+l)/2);a=t({text:n.substr(0,e)+DA,fontSize:r,fontFamily:i}).width,a<=o?s=e+1:l=e-1}return n.substr(0,l)+DA}function QA(e){const t=e.baseline||e["dominant-baseline"];let n=0;const r=parseInt(e.fontSize||e["font-size"],10)||0;switch(t){case"hanging":n=.75*r;break;case"text-before-edge":n=.85*r;break;case"middle":n=.25*r;break;case"central":n=.35*r;break;case"mathemetical":n=r/2;break;case"text-after-edge":case"ideographic":n=.2*-r;break;default:n=0}return n}const ZA={},eO={},tO={fontSize:void 0,fontFamily:void 0};let nO;function rO(e,t,n){const r=e+t+n;return"number"!=typeof eO[r]&&(nO=nO||document.createElement("canvas").getContext("2d"),function(e,t){tO.fontSize===e&&tO.fontFamily===t||(nO.font=e+" "+t,tO.fontSize=e,tO.fontFamily=t)}(t,n),eO[r]=nO.measureText(e).width),eO[r]}function iO(e){return"number"!=typeof ZA[e]&&(ZA[e]=function(e){if(FA(e)){const t=parseFloat(e);return t+IA*Math.ceil((t+_A)/RA)}return PA}(e)),ZA[e]}function oO(e){let{text:t,fontSize:n,fontFamily:r}=e;return{width:rO(t,n,r),height:iO(n)}}function aO(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:oO;const n=e["font-size"]||e.fontSize,r=e["font-family"]||e.fontFamily,i=t({text:e.text,fontFamily:r,fontSize:n}),o=Math.min(e.maxWidth||i.width,i.width),a=e.x||0,s=e.y||0,l=e.dx||0,c={x:0,y:s+((e.dy||0)+QA(e))-.75*i.height,width:o,height:i.height},u=e["text-anchor"]||e.anchor;return c.x="middle"===u?a+l-o/2:"end"===u?a+l-o:a+l,c}function sO(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:oO;const n=GA(e),r=e["font-size"]||e.fontSize,i=e["font-family"]||e.fontFamily,o=t({text:e.text,fontFamily:i,fontSize:r});if(n&&(o.width>e.maxWidth||CA(e.text))){const o=n(e,(e=>t({text:e,fontFamily:i,fontSize:r}))),a=Hy({},e);let s=0,l="";for(let e=0,n=o.lines.length;e<n;e++){let a=o.lines[e];a+=e===n-1&&o.reduced?DA:"";const c=t({text:a,fontSize:r,fontFamily:i}).width;c>=s&&(s=c,l=a)}a.text=l;const c=aO(a,t);return c.height=jA(e)*o.lines.length,c}return aO(e,t)}const lO=1.2;function cO(e,t){return{node:e,data:e.data,scale:t.scale,formatter:t.formatter,dataset:t.dataset}}function uO(e,t,n){const r={type:"text",text:t,maxWidth:e.width,x:0,y:e.y,dx:0,dy:0,fill:n.fill,anchor:"start",baseline:"alphabetical",fontSize:"".concat(n.fontSize,"px"),fontFamily:n.fontFamily},i=n.textMetrics;if(e.width<n.fontSize)return!1;const o=Math.max(0,e.width-i.width);return r.x=e.x+n.align*o,r.y=e.y+i.height/lO,r}function dO(e){let{cx:t,cy:n,r:r}=e;return{type:"circle",bounds:{cx:t,cy:n,r:r}}}function fO(e){return e.desc&&e.desc.slice?function(e){let{start:t,end:n,innerRadius:r,outerRadius:i,offset:o}=e;if(Math.abs(t+2*Math.PI-n)>1e-12)return{type:null,bounds:null};let a=0!==r?r:i;return dO({cx:o.x,cy:o.y,r:a})}(e.desc.slice):"circle"===e.type?dO(e.attrs):"rect"===e.type?{type:"rect",bounds:e.bounds}:{type:null,bounds:null}}var hO={bar:function(e){let{settings:t,chart:n,nodes:r,rect:i,renderer:o,style:a}=e,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:oA;const l=Hy({fontSize:12,fontFamily:"Arial",align:.5,justify:0,fill:"#333"},a.label);l.fontSize=parseInt(l.fontSize,10);const c=t.labels.map((e=>Hy({},l,t,e))),u=t.labels.map((e=>e.placements.map((n=>Hy({},l,t,e,n))))),{fitsHorizontally:d,hasHorizontalDirection:f,targetNodes:h}=function(e){let{nodes:t,rect:n,chart:r,labelSettings:i,placementSettings:o,settings:a,renderer:s}=e;const l={},c=[];let u,d,f,h,p,m,g,y=!0,v=!1;for(let e=0;e<t.length;e++){if(d=t[e],h=d.localBounds,!uk(h,n))continue;let b=XT(d,r);u={node:d,texts:[],measurements:[],labelSettings:[],placementSettings:[]};for(let t=0;t<i.length;t++)m=i[t],f="function"==typeof m.label?m.label(b,e):void 0,GT(f)&&(g="function"==typeof a.direction?a.direction(b,e):a.direction||"up",v=v||"left"===g||"right"===g,l.fontFamily=m.fontFamily,l.fontSize="".concat(m.fontSize,"px"),l.text=f,p=s.measureText(l),u.measurements.push(p),u.texts.push(f),u.labelSettings.push(m),u.placementSettings.push(o[t]),u.direction=g,y=y&&p.width<=h.width-2*YT);c.push(u)}return{targetNodes:c,fitsHorizontally:y,hasHorizontalDirection:v}}({nodes:r,chart:n,renderer:o,settings:t,rect:i,labelSettings:c,placementSettings:u}),p=function(e){let{orientation:t="auto",defaultOrientation:n="h"}=e;switch(t.toLocaleLowerCase()){case"vertical":return"v";case"horizontal":return"h";default:return n}}({orientation:t.orientation,defaultOrientation:f?"h":"v"}),m="h"===p?"y":"x",g="h"===p?"height":"width";return h.sort(((e,t)=>e.node.localBounds[m]+e.node.localBounds[g]-(t.node.localBounds[m]+t.node.localBounds[g]))),s({chart:n,targetNodes:h,stngs:t,rect:i,fitsHorizontally:d,collectiveOrientation:p})},slice:function(e){let{settings:t,chart:n,nodes:r,rect:i,renderer:o,style:a}=e,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:vA,l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:gA;const c=Hy({fontSize:12,fontFamily:"Arial",fill:"#333",padding:4,position:"into"},a.label);c.fontSize=parseInt(c.fontSize,10);const u=t.labels.map((e=>Hy({},c,t,e))),d=t.labels.map((e=>e.placements.map((n=>Hy({},c,t,e,n))))),f=[],h={insideLabelBounds:[]};r=function(e){const t=[],n=[],r=[],i=[];for(let o=0;o<e.length;++o){const{start:a,end:s}=e[o].desc.slice,l=lA((a+s)/2);switch(Math.floor(l/(Math.PI/2))){case 0:t.push(e[o]);break;case 1:n.push(e[o]);break;case 2:r.push(e[o]);break;case 3:i.push(e[o])}}const o=(e,t)=>lA((e.desc.slice.start+e.desc.slice.end)/2)-lA((t.desc.slice.start+t.desc.slice.end)/2),a=(e,t)=>o(t,e);return t.sort(a),n.sort(o),r.sort(a),i.sort(o),t.concat(n,i,r)}(r);const p={};for(let e=0,t=r.length;e<t;e++){const t=r[e],a=mA(t,n);for(let n=0;n<u.length;n++){const r=u[n],c="function"==typeof r.label?r.label(a,e):"";if(!c)continue;const m="function"==typeof r.direction?r.direction(a,e):r.direction||"horizontal",g="function"==typeof r.linkData?r.linkData(a,e):void 0,y=bA(c,r,o),v=s({context:p,direction:m,lblStngs:r,measured:y,node:t,placementSettings:d[n],rect:i,store:h}),b=v.bounds,x=v.placement;if(b&&x){if("outside"===x.position&&"rotate"!==m){pA({context:p,node:t,bounds:b});if(!KE(uA(b),i))continue}const n="function"==typeof x.fill?x.fill(a,e):x.fill,o=l(b,c,{fill:n,fontSize:r.fontSize,fontFamily:r.fontFamily,textMetrics:y});o&&(void 0!==g&&(o.data=g),f.push(o),b.line&&(b.line.stroke=n,f.push(b.line)))}}}return f},rows:function(e){let{settings:t,chart:n,nodes:r,renderer:i,style:o}=e,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:uO;const s=Hy({fontSize:12,fontFamily:"Arial",fill:"#333",padding:4,align:.5,justify:.5},o.label);s.fontSize=parseInt(s.fontSize,10);const l=Hy({},s,t),c=t.labels.map((e=>Hy({},l,e))),u={},d=[];for(let e=0,t=r.length;e<t;e++){let t=r[e],o=cO(t,n),{type:s,bounds:f}=fO(t);if(!f)continue;let h,p=0,m=[],g=[],y="circle"===s?2*f.r*.9:f.height;for(p+=l.padding,h=0;h<c.length;h++){let t=c[h],n="function"==typeof t.label?t.label(o,e):"";u.fontFamily=t.fontFamily,u.fontSize="".concat(t.fontSize,"px"),u.text=n;let r=i.measureText(u);if(p+=r.height+t.padding,p>y)break;g.push(n),m.push(r)}const v=h,b=Math.max(0,y-p);let x;for(x="circle"===s?f.cy-.9*f.r:f.y,x+=l.justify*b+l.padding,h=0;h<v;h++){let t,n=c[h];if("circle"===s){let e=Math.max(Math.abs(x-f.cy),Math.abs(x+m[h].height-f.cy)),n=Math.sqrt(f.r*f.r-e*e);t={x:f.cx-n+l.padding,y:x,width:2*n-2*l.padding,height:m[h].height}}else t={x:f.x+l.padding,y:x,width:f.width-2*l.padding,height:m[h].height};x+=m[h].height+l.padding;let r="function"==typeof n.fill?n.fill(o,e):n.fill;const u="function"==typeof n.linkData?n.linkData(o,e):void 0;let p=a(t,g[h],{fill:r,align:n.align,fontSize:n.fontSize,fontFamily:n.fontFamily,textMetrics:m[h]});if(p){if(p.text&&p.text!==DA){const e=JA(p,i.measureText);if(DA===e)continue;p.ellipsed=e}void 0!==u&&(p.data=u),d.push(p)}}}return d}};const pO={require:["chart","renderer","settings"],defaultSettings:{settings:{},style:{label:"$label"}},render(){const e=this.settings.settings,t=[];return(e.sources||[]).forEach((e=>{e.strategy&&hO[e.strategy.type]&&e.component&&t.push(...function(e,t){let{chart:n,source:r,rect:i,renderer:o,style:a}=e;if(!n.component(r.component))return[];const s=n.findShapes(r.selector).filter((e=>e.key===r.component));return t({chart:n,settings:r.strategy.settings,nodes:s,rect:{x:0,y:0,width:i.width,height:i.height},renderer:o,style:a})}({chart:this.chart,rect:this.rect,renderer:this.renderer,source:e,style:this.style},hO[e.strategy.type]))})),t}};const mO={layout:{size:1,direction:"ltr",scrollOffset:0},item:{show:!0,justify:.5,align:.5,label:{fontSize:"12px",fontFamily:"Arial",fill:"#595959",wordBreak:"none",maxLines:2,maxWidth:136,lineHeight:1.2},shape:{type:"square",size:12}},title:{show:!0,text:void 0,anchor:"start",fontSize:"16px",fontFamily:"Arial",fill:"#595959",wordBreak:"none",maxLines:2,maxWidth:156,lineHeight:1.25},navigation:{button:{class:void 0,content:void 0,tabIndex:void 0},disabled:!1}};function gO(e){let{x:t=0,y:n,item:r,globalMetrics:i,createSymbol:o,direction:a="ltr"}=e,s=r.label.displayObject,l=r.label.bounds,c=r.symbol.meta;const u="rtl"===a;let d={x:u?t+i.maxLabelBounds.width:t+i.maxSymbolSize+i.spacing,y:n,width:i.maxLabelBounds.width,height:Math.max(i.maxSymbolSize,i.maxLabelBounds.height)},f=function(e,t,n){const r=Math.max(0,e.width-t),i=Math.max(0,e.height-t);return{x:e.x+t/2+n.align*r,y:e.y+t/2+n.justify*i}}({x:u?t+i.maxLabelBounds.width+i.spacing:t,y:n,width:i.maxSymbolSize,height:d.height},c.size,{align:void 0===c.align?.5:c.align,justify:void 0===c.justify?.5:c.justify});const h=o(Hy({},c,f));return delete h.collider,s.anchor=u?"end":"start",function(e,t,n){const r=n.textMetrics;if(e.height<r.height)return!1;const i=Math.max(0,e.width-r.width);t.baseline="text-before-edge";const o=Math.max(0,e.height-r.height);t.x=e.x+n.align*i,t.y=e.y+n.justify*o+.175*parseInt(t.fontSize,10)}(d,s,{textMetrics:l,fontSize:parseInt(s.fontSize,10),align:0,justify:.5}),{item:{type:"container",data:r.label.displayObject.data,children:[h,s],collider:{type:"rect",x:t,y:n,width:i.maxItemBounds.width,height:i.maxItemBounds.height}},metrics:d}}function yO(e,t){const n=e.items.length,r=Math.ceil(n/t),i="horizontal"===e.layout.orientation?"width":"height",o="width"===i?"horizontal":"vertical";return e.globalMetrics.maxItemBounds[i]*r+(r-1)*e.layout.margin[o]}function vO(e,t){let n,r,i,o,{onScroll:a=(()=>{})}=t,s=null,l=0;const c={itemize:t=>{n=function(e,t){let n,r,{resolved:i,dock:o}=e,a=[],s=i.items.items,l=i.symbols.items,c=i.labels.items,u=0,d=0,f=0;for(let e=0;e<s.length;e++){if(!1===s[e].show)continue;const i=void 0!==c[e].text?c[e].text:c[e].data.label||"";n=Hy({},c[e],{type:"text",fontSize:"".concat(parseInt(c[e].fontSize,10),"px"),text:i,title:i}),r={symbol:{meta:l[e]},label:{displayObject:n,bounds:t.textBounds(n)}},a.push(r),u=Math.max(l[e].size,u),d=Math.max(r.label.bounds.width,d),f=Math.max(r.label.bounds.height,f)}return{items:a,globalMetrics:{spacing:8,maxSymbolSize:u,maxItemBounds:{height:Math.max(u,f),width:u+8+d},maxLabelBounds:{width:d,height:f}},layout:{margin:{vertical:void 0!==i.layout.item.vertical?i.layout.item.vertical:4,horizontal:void 0!==i.layout.item.horizontal?i.layout.item.horizontal:4},mode:i.layout.item.mode,size:i.layout.item.size,orientation:"top"===o||"bottom"===o?"horizontal":"vertical",direction:i.layout.item.direction,scrollOffset:i.layout.item.scrollOffset}}}(t,e.renderer),s=isNaN(n.layout.scrollOffset)?s:n.layout.scrollOffset},getItemsToRender:t=>{i=t.viewRect,l=c.getContentOverflow(i);const a=c.extent();s=Math.max(0,Math.min(s,l)),o=Hy({},i);const u="horizontal"===c.orientation()?"x":"y";return o[u]-=s,o["x"===u?"width":"height"]=a,function(e,t,n){let{viewRect:r}=e,{itemized:i,create:o=gO,parallels:a,createSymbol:s}=n;const l=i.layout.direction,c=i.globalMetrics,u=i.items,d="horizontal"===i.layout.orientation;let f=0;const h=[],p=c.maxItemBounds.height,m=c.maxItemBounds.width,g=i.layout.margin.vertical+p,y=i.layout.margin.horizontal+m;let v=t.x,b=t.y,x=r.x-t.x;for(let e=0;e<u.length;e++){let n=o({y:b,x:"rtl"===l?r.x+x+r.width-m-(v-t.x):v,item:u[e],globalMetrics:c,direction:l,createSymbol:s});if((d&&v>=r.x-m||!d&&b>=r.y-p)&&h.push(n.item),f++,f>=a?(f=0,d?(v+=y,b=t.y):(b+=g,v=t.x)):d?b+=g:v+=y,!d&&b>r.y+r.height)break;if(d&&v>r.x+r.width)break}return h}(t,o,{itemized:n,parallels:r,createSymbol:e.symbol})},parallelize:(e,t)=>(r=function(e,t,n){const r=n.items.length,i="horizontal"===n.layout.orientation?"width":"height",o="width"===i?"horizontal":"vertical",a=n.globalMetrics.maxItemBounds[i]*r+(r-1)*n.layout.margin[o];let s=Math.ceil(a/e);if(null!=t){const e="horizontal"===n.layout.orientation?"height":"width",r="width"===e?"horizontal":"vertical",i=n.layout.margin[r]||4,o=Math.floor((t+i)/(i+n.globalMetrics.maxItemBounds[e]));s=Math.min(s,o)}const l=isNaN(n.layout.size)?1:n.layout.size;return Math.max(1,Math.min(s,l))}(e,t,n),r),hasContentOverflow:()=>{const e="horizontal"===n.layout.orientation?"width":"height";return yO(n,r)>i[e]},getContentOverflow:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i;const t="horizontal"===n.layout.orientation?"width":"height";return Math.max(0,yO(n,r)-e[t])},getNextSize:()=>{const e="horizontal"===n.layout.orientation?"width":"height",t="width"===e?"horizontal":"vertical";return n.globalMetrics.maxItemBounds[e]+n.layout.margin[t]},getPrevSize:()=>{const e="horizontal"===n.layout.orientation?"width":"height",t="width"===e?"horizontal":"vertical";return n.globalMetrics.maxItemBounds[e]+n.layout.margin[t]},hasNext:()=>"horizontal"===c.orientation()?i.x+i.width<o.x+o.width:i.y+i.height<o.y+o.height,hasPrev:()=>"horizontal"===c.orientation()?o.x<i.x:o.y<i.y,next:()=>{c.scroll(-c.getNextSize())},prev:()=>{c.scroll(c.getPrevSize())},scroll:e=>{const t=Math.max(0,Math.min(l,s-e));t!==s&&(s=t,a())},offset:()=>s,orientation:()=>n.layout.orientation,direction:()=>n.layout.direction,extent:()=>yO(n,r),spread:()=>function(e,t){const n=t,r="horizontal"===e.layout.orientation?"height":"width",i="width"===r?"horizontal":"vertical";return e.globalMetrics.maxItemBounds[r]*n+(n-1)*e.layout.margin[i]}(n,r)};return c}function bO(e){return Object.keys(e).filter((t=>e[t])).join(" ")}const xO={up:"▲",right:"▶",down:"▼",left:"◀"};function SO(e,t){let{size:n,isActive:r,direction:i,nav:o,attrs:a}=t,s={},l="";const c=a;o&&o.button&&("function"==typeof o.button.class?s=o.button.class({direction:i}):o.button.class&&(s=o.button.class),"function"==typeof o.button.content&&(l=o.button.content(e,{direction:i})),void 0!==o.button.tabIndex&&(c.tabindex=o.button.tabIndex));const u={width:"".concat(n,"px"),minWidth:"".concat(n,"px"),height:"".concat(n,"px")};return Object.keys(s).length||(u.border="0",u.background="none"),(!r||o&&o.disabled)&&(c.disabled="disabled"),e("button",Hy({class:bO(s),style:u},c),[l||e("span",{style:{pointerEvents:"none"}},[xO[i]])])}function wO(e){let t;const n={itemize:e=>{t=function(e){let{dock:t,navigation:n}=e;return{layout:{orientation:"top"===t||"bottom"===t?"vertical":"horizontal"},navigation:n}}(e)},render:r=>function(e,t,n,r){let{rect:i,itemRenderer:o}=t;if(!e||!e.renderArgs)return;e.size(i);const a=e.renderArgs[0],s="vertical"===n.layout.orientation,l="rtl"===o.direction(),c=o.hasNext(),u=o.hasPrev();if(!u&&!c)return void e.render([]);const d=s?["right","left"]:["down","up"];l&&s&&d.reverse();const f=[a("div",{style:{position:"relative",display:"flex","flex-direction":s?"column":"row","justify-content":"center",height:"100%",pointerEvents:"auto"},dir:l&&!s?"rtl":"ltr"},[SO(a,{size:32,isActive:c,direction:d[0],attrs:{"data-action":"next","data-component-key":r.settings.key},nav:n.navigation}),SO(a,{size:32,isActive:u,direction:d[1],attrs:{"data-action":"prev","data-component-key":r.settings.key},nav:n.navigation})])];e.render(f)}(n.renderer,r,t,e),extent:()=>32,spread:()=>64};return n}function MO(e){let t;const n={itemize:n=>{t=function(e,t){let{resolved:n}=e;if(!1===n.title.item.show)return null;const r=Hy({},n.title.item,{type:"text"});if("rtl"===n.layout.item.direction&&(r.anchor&&"start"!==r.anchor?"end"===r.anchor&&(r.anchor="start"):r.anchor="end"),void 0===n.title.settings.text){const e=t.scale.data().fields;r.text=e&&e[0]?e[0].title():""}return{displayObject:r,bounds:t.renderer.textBounds(r)}}(n,e)},render:e=>{!function(e,t,n){let{rect:r}=e;if(!t)return;const i=[];if(t.size(r),n){const e={start:0,end:r.width,middle:r.width/2};i.push(Hy({},n.displayObject,{x:e[n.displayObject.anchor]||0,y:0,baseline:"text-before-edge",title:n.displayObject.text}))}t.render(i)}(e,n.renderer,t)},spread:()=>t?t.bounds.height:0,extent:()=>t?t.bounds.width:0};return n}function EO(e,t,n,r){let i,o,a,{itemRenderer:s,navigationRenderer:l,titleRenderer:c,isPreliminary:u=!1}=r,d=0;const f={x:t.spacing,y:t.spacing,width:e.width-2*t.spacing,height:e.height-2*t.spacing};if(i={x:f.x,y:f.y,width:f.width,height:c.spread()},"horizontal"===n){i={x:f.x,y:f.y,width:c.extent(),height:c.spread()};const e=f.width-i.width-(i.width?t.spacing:0),n=f.height;s.parallelize(e,u?void 0:n);const r=s.extent()>e?l.extent():0,h=s.spread(),p=r?l.spread():0;o={x:i.x+i.width+(i.width?t.spacing:0),y:f.y+Math.max(0,(p-h)/2),width:f.width-r-i.width-(r?t.spacing:0)-(i.width?t.spacing:0),height:n},a={x:o.x+o.width+(r?t.spacing:0),y:f.y,width:r,height:f.height},i.y=o.y;"rtl"===s.direction()&&(a.x=f.x,o.x=a.x+a.width+(a.width?t.spacing:0),i.x=o.x+o.width+(i.width?t.spacing:0)),d=Math.max(i.height,p,s.spread())}else{const e=f.height-i.height-(i.height?t.spacing:0),n=f.width;s.parallelize(e,u?void 0:n);const r=s.extent()>e?l.extent():0;a={x:f.x,y:f.y+f.height-r,width:f.width,height:r},o={x:f.x,y:i.y+i.height+(i.height?t.spacing:0),width:f.width,height:f.height-i.height-(i.height?t.spacing:0)-a.height-(a.height?t.spacing:0)},d=Math.max(c.extent(),r?l.spread():0,s.spread())}return o=Hy({},e,{x:e.x+o.x,y:e.y+o.y,width:o.width,height:o.height}),a.x+=e.x,a.y+=e.y,i.x+=e.x,i.y+=e.y,{title:Hy({},e,i),content:Hy({},e,o),navigation:Hy({},e,a),orientation:n,preferredSize:d}}function kO(e){e.state.resolved=function(e){const t=e.scale.domain();let n={items:[]};const r=e.settings.layout.dock;if("threshold-color"===e.scale.type){const i=e.scale.data().fields[0];let o=e=>String(e);e.settings.formatter?o=e.chart.formatter(e.settings.formatter):i&&(o=i.formatter());for(let e=0;e<t.length-1;e++){const r={value:t[e],label:"".concat(o(t[e])," - < ").concat(o(t[e+1]))};i&&(r.source={field:i.id()}),n.items.push(r)}"vertical"==("top"===r||"bottom"===r?"horizontal":"vertical")&&n.items.reverse()}else{const r=e.scale.labels?e.scale.labels():null;n.items=t.map(((t,n)=>{const i=e.scale.datum?Hy({},e.scale.datum(t)):{value:t};return i.value=t,e.scale.label?i.label=e.scale.label(t):r&&(i.label=r[n]),i}))}const i=e.resolver.resolve({data:{fields:e.scale.data().fields},defaults:Hy(!0,{},mO.title,e.style.title),settings:e.settings.settings.title}),o=e.resolver.resolve({data:{fields:e.scale.data().fields},defaults:mO.layout,settings:e.settings.settings.layout}),a=e.resolver.resolve({data:n,defaults:Hy(!0,{},mO.item.label,e.style.item.label),settings:(e.settings.settings.item||{}).label}),s=Hy(!0,{},(e.settings.settings.item||{}).shape);void 0===s.fill&&e.settings.scale&&(s.fill={scale:e.settings.scale});const l=e.resolver.resolve({data:n,defaults:Hy(!0,{},mO.item.shape,e.style.item.shape),settings:s}),c=e.resolver.resolve({data:n,defaults:Hy(!0,{},{show:mO.item.show}),settings:{show:(e.settings.settings.item||{}).show}});function u(e,n){let r=e.data.value,i=t[n+1];e.data.value=[r,i]}"threshold-color"===e.scale.type&&("vertical"==("top"===r||"bottom"===r?"horizontal":"vertical")?(c.items.reverse().forEach(u),c.items.reverse()):c.items.forEach(u));return{title:i,labels:a,symbols:l,items:c,layout:o}}(e),e.titleRenderer.itemize({resolved:e.state.resolved,dock:e.settings.layout.dock||"center"}),e.itemRenderer.itemize({resolved:e.state.resolved,dock:e.settings.layout.dock||"center"}),e.navigationRenderer.itemize({resolved:e.state.resolved,dock:e.settings.layout.dock||"center",navigation:e.settings.settings.navigation}),e.state.display={spacing:8}}function CO(e){const{rect:t,settings:n,state:r,itemRenderer:i,navigationRenderer:o,titleRenderer:a}=e,s=n.layout.dock,l="top"===s||"bottom"===s?"horizontal":"vertical",c=EO(t,r.display,l,{itemRenderer:i,navigationRenderer:o,titleRenderer:a});e.renderer.size(c.content);let u=i.getItemsToRender({viewRect:Hy({},c.content,{x:0,y:0})});return o.render({rect:c.navigation,itemRenderer:i}),a.render({rect:c.title}),e.state.views={layout:c},u}const TO={require:["chart","settings","renderer","update","resolver","registries","symbol"],defaultSettings:{settings:{},style:{item:{label:"$label",shape:"$shape"},title:"$title"}},mounted(e){e&&e.parentNode&&(this.navigationRenderer.renderer.appendTo(e.parentNode),this.titleRenderer.renderer.appendTo(e.parentNode),e.parentNode.insertBefore(this.navigationRenderer.renderer.element(),e),e.parentNode.insertBefore(this.titleRenderer.renderer.element(),e)),this.navigationRenderer.render({rect:this.state.views.layout.navigation,itemRenderer:this.itemRenderer}),this.titleRenderer.render({rect:this.state.views.layout.title})},beforeUnmount(){this.navigationRenderer.renderer.clear(),this.titleRenderer.renderer.clear()},on:{panstart(){if(this.state.interaction.started)return;this.itemRenderer.getContentOverflow()&&(this.state.interaction.started=!0,this.state.interaction.delta=0)},panmove(e){if(!this.state.interaction.started)return;const t="horizontal"===this.itemRenderer.orientation()?("rtl"===this.itemRenderer.direction()?-1:1)*e.deltaX:e.deltaY;this.itemRenderer.scroll(t-this.state.interaction.delta),this.state.interaction.delta=t},panend(){this.state.interaction.started=!1},scroll(e){this.itemRenderer.scroll(-e)},next(){this.itemRenderer.next()},prev(){this.itemRenderer.prev()}},created(){this.state={interaction:{}},this.onScroll=()=>{const e=CO(this);this.update(e)},this.itemRenderer=vO(this,{onScroll:this.onScroll}),this.navigationRenderer=wO(this),this.titleRenderer=MO(this),this.navigationRenderer.renderer=this.registries.renderer("dom")(),this.titleRenderer.renderer=this.registries.renderer(this.settings.renderer)(),kO(this)},preferredSize(e){return function(e,t){let n=0;const r=e.settings.layout.dock||"center",i="top"===r||"bottom"===r?"horizontal":"vertical",o=e.state.display,a=EO(t.inner,o,i,{itemRenderer:e.itemRenderer,navigationRenderer:e.navigationRenderer,titleRenderer:e.titleRenderer,isPreliminary:!0});return n+=o.spacing,n+=a.preferredSize,n+=o.spacing,n}(this,e)},beforeUpdate(){kO(this)},render(){return CO(this)},beforeDestroy(){this.navigationRenderer.renderer.destroy(),this.titleRenderer.renderer.destroy()},additionalElements(){return[this.titleRenderer.renderer.element(),this.navigationRenderer.renderer.element()]},_DO_NOT_USE_getInfo(){return{offset:this.itemRenderer.offset()}}};function AO(e,t){let n=0;const r=e.state.isVertical?"justify":"align",i=e.state.isVertical?"y":"x",o=e.state.isVertical?"height":"width",a=e.state.isVertical?"requiredHeight":"requiredWidth";n=e.state.rect[o]-e.state.legend.length()-e.state.title[a](),n*=Math.min(1,Math.max(e.stgns[r],0)),t[i]+=n}function OO(e,t,n){const r=n[e];return"object"==typeof r?-1!==r.valid.indexOf(t)?t:r.default:n.default}function NO(e){return OO(e.layout.dock,e.settings.title.anchor,{left:{valid:["top"],default:"top"},right:{valid:["top"],default:"top"},top:{valid:["left","right"],default:"left"},bottom:{valid:["left","right"],default:"left"},default:"top"})}function qO(e,t){const n={x:0,y:0,width:0,height:0},r=e.stgns.padding;return n.x=r.left,n.y=r.top,n.width=t.width-r.left-r.right,n.height=t.height-r.top-r.bottom,n}function DO(e){const t="top"!==e.settings.layout.dock&&"bottom"!==e.settings.layout.dock,n=e.stgns.title,r=e.chart.scale(e.stgns.fill),i=e.chart.scale(e.stgns.major),o=function(e,t){const n=t.domain();let r=n,i=e.stgns.tick.label;!i&&e.formatter?i=e.formatter:!i&&t.data().fields&&(i=t.data().fields[0].formatter()),"function"==typeof i&&(r=n.map(i).map(String));const o=n.map(((n,i)=>{const o=r[i];return{value:n,label:o,pos:t.norm(parseFloat(n,10)),textMetrics:e.renderer.measureText({text:o,fontSize:e.stgns.tick.fontSize,fontFamily:e.stgns.tick.fontFamily})}}));return o}(e,i),a=OO((s=e.settings).layout.dock,s.settings.tick.anchor,{left:{valid:["left","right"],default:"left"},right:{valid:["left","right"],default:"right"},top:{valid:["top","bottom"],default:"top"},bottom:{valid:["top","bottom"],default:"bottom"},default:"right"});var s;if(void 0===n.text){const e=i.data().fields;n.text=e&&e[0]?e[0].title():""}const l=e.renderer.measureText({text:n.text,fontSize:n.fontSize,fontFamily:n.fontFamily}),c=e.renderer.textBounds({text:n.text,fontSize:n.fontSize,fontFamily:n.fontFamily,maxLines:n.maxLines,maxWidth:n.maxLengthPx,wordBreak:n.wordBreak,hyphens:n.hyphens,lineHeight:n.lineHeight}),u={isVertical:t,nodes:[],title:{anchor:NO(e.settings),textMetrics:l,textBounds:c,requiredWidth:()=>{if(!n.show)return 0;let e=c.width,r=n.maxLengthPx;return t||(e+=n.padding,r+=n.padding),Math.min(e,r,u.rect.width)},requiredHeight:()=>{if(!n.show)return 0;let e=c.height;return t&&(e+=n.padding),Math.min(e,u.rect.height)}},ticks:{values:o,anchor:a,length:Math.min(Math.max(...o.map((e=>e.textMetrics.width))),e.stgns.tick.maxLengthPx),requiredHeight:()=>"top"===a?Math.max(...u.ticks.values.map((e=>e.textMetrics.height)))+e.stgns.tick.padding:0,height:Math.max(...o.map((e=>e.textMetrics.height)))},legend:{fillScale:r,majorScale:i,length:()=>{const n=t?"height":"width",r=t?"requiredHeight":"requiredWidth",i=Math.min(u.rect[n],u.rect[n]*e.stgns.length)-u.title[r]();return Math.max(0,Math.min(i,e.stgns.maxLengthPx))}}};return u}const RO={require:["chart","settings","renderer"],defaultSettings:{layout:{displayOrder:0,dock:"right"},settings:{size:15,length:.5,maxLengthPx:250,align:.5,justify:0,padding:{left:5,right:5,top:5,bottom:5},tick:{label:null,fill:"#595959",fontSize:"12px",fontFamily:"Arial",maxLengthPx:100,anchor:null,padding:5},title:{show:!0,text:void 0,fill:"#595959",fontSize:"12px",fontFamily:"Arial",maxLengthPx:100,padding:5,maxLines:2,wordBreak:"none",lineHeight:1.2,hyphens:"auto",anchor:null}}},preferredSize(e){const t=this.state;t.rect=qO(this,e.inner);let n=this.stgns.size;const r=t.isVertical?this.stgns.padding.left+this.stgns.padding.right:this.stgns.padding.top+this.stgns.padding.bottom;n+=r;const i=Math.max(e.inner.width,e.inner.height);if("left"===t.ticks.anchor||"right"===t.ticks.anchor){const e=t.ticks.values.reduce(((e,t)=>e+t.textMetrics.height),0);if(e>this.state.legend.length())return i;n+=t.ticks.length}else{if(t.ticks.length>this.state.legend.length())return i;n+=Math.max(...t.ticks.values.map((e=>e.textMetrics.height)))}return n+=this.stgns.tick.padding,this.stgns.title.show&&(n="left"===t.title.anchor||"right"===t.title.anchor?Math.max(t.title.textBounds.height+r,n):Math.max(n,t.title.requiredWidth()+r)),this.state.preferredSize=n,n},created(){this.stgns=this.settings.settings,this.state=DO(this)},beforeUpdate(e){this.stgns=e.settings.settings,this.state=DO(this)},beforeRender(e){if(this.state.nodes=[],this.state.rect=qO(this,e.size),this.stgns.title.show){const e=function(e){const t=e.state,n=e.stgns,r="left"===t.ticks.anchor,i="top"===t.ticks.anchor;let o=t.rect.x,a=t.rect.y,s="start";"left"===t.title.anchor?(o+=t.title.requiredWidth()-n.title.padding,a+=t.title.textMetrics.height,a+=i?t.rect.height-t.title.textBounds.height:0,s="end"):"right"===t.title.anchor?(o+=t.legend.length(),o+=n.title.padding,a+=t.title.textMetrics.height,a+=i?t.rect.height-t.title.textBounds.height:0):"top"===t.title.anchor&&(o+=r?t.rect.width:0,a+=t.title.textMetrics.height,s=r?"end":"start");const l={tag:"legend-title",type:"text",x:o,y:Math.min(a,t.rect.y+t.rect.height),text:n.title.text,fill:n.title.fill,fontSize:n.title.fontSize,fontFamily:n.title.fontFamily,maxWidth:n.title.maxLengthPx,maxLines:n.title.maxLines,wordBreak:n.title.wordBreak,hyphens:n.title.hyphens,lineHeight:n.title.lineHeight,anchor:s,title:n.title.text};return AO(e,l),l}(this);this.state.nodes.push(e)}const t=function(e){const t=e.state.legend.fillScale,n=e.state.legend.majorScale,r=t.domain().map((e=>({type:"stop",color:t(e),offset:Math.min(1,Math.max(0,n.norm(e)))})));return r.sort(((e,t)=>e.offset-t.offset))}(this),n=function(e,t){const n=e.state,r=e.stgns,i=n.rect;let o=i.x,a=i.y,s=n.isVertical?r.size:n.legend.length(),l=n.isVertical?n.legend.length():r.size;"left"===n.ticks.anchor?o+=n.rect.width-r.size:"top"===n.ticks.anchor&&(a+=n.rect.height-r.size),"top"===n.title.anchor?a+=n.title.requiredHeight():"left"===n.title.anchor&&(o+=n.title.requiredWidth());const c={type:"rect",x:o,y:a,width:s,height:l,fill:{type:"gradient",stops:t,degree:n.isVertical?90:180}};return AO(e,c),c}(this,t),r=function(e,t){const n=e.state,r=e.stgns;let i="start";const o={type:"rect",x:t.x,y:t.y,width:n.isVertical?0:t.width,height:n.isVertical?t.height:0,fill:"transparent"},a=n.ticks.values.map((a=>{let s=0,l=0,c=0,u="alphabetical";return n.isVertical?(l=t.y+t.height*a.pos,u=0===a.pos?"text-before-edge":"text-after-edge"):s=t.x+t.width*a.pos,"right"===n.ticks.anchor?(s=t.x+r.size+r.tick.padding,o.x=t.x+t.width):"left"===n.ticks.anchor?(s=t.x-r.tick.padding,i="end"):"top"===n.ticks.anchor?(l=t.y-r.tick.padding,c-=.25*a.textMetrics.height,i=0===a.pos?"start":"end"):"bottom"===n.ticks.anchor&&(l=t.y+t.height+r.tick.padding,c=.8*a.textMetrics.height,i=0===a.pos?"start":"end",o.y=t.y+t.height),{type:"text",x:s,y:l,dx:0,dy:c,text:a.label,fontSize:r.tick.fontSize,fontFamily:r.tick.fontFamily,fill:r.tick.fill,maxWidth:n.isVertical?r.tick.maxLengthPx:Math.min(r.tick.maxLengthPx,n.legend.length()/2),anchor:i,textBoundsFn:e.renderer.textBounds,title:a.label,baseline:u}}));return{type:"container",id:"legend-seq-ticks",children:[...a,o]}}(this,n),i={id:"legend-seq-target",type:"container",children:[n,r]};this.state.nodes.push(i)},render(){return this.state.nodes}};const IO={coordinates:{minor:.5,major:.5,layerId:0,defined:!0},connect:!1,orientation:"horizontal",layers:{curve:"linear",show:!0,sort:void 0,line:{stroke:"#ccc",strokeWidth:1,strokeLinejoin:"miter",strokeDasharray:void 0,opacity:1,show:!0,showMinor0:!0},area:{fill:"#ccc",opacity:.8,show:!0}}};function _O(e,t){let{generatorType:n,item:r,data:i,major:o,minor:a,layerObj:s,stngs:l}=t,c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";const u={type:"path",points:e,generatorType:n,major:o,minor:a,layerObj:s,stngs:l,opacity:r.opacity,stroke:r.stroke,strokeWidth:r.strokeWidth,strokeLinejoin:r.strokeLinejoin,fill:c||r.fill,data:i};return r.strokeDasharray&&(u.strokeDasharray=r.strokeDasharray),u}function PO(e){const{metaLayers:t,coordinates:n,layers:r,lines:i,areas:o}=function(e){let{data:t,stngs:n,rect:r,resolver:i,style:o,domain:a}=e;const{width:s,height:l}=r,c=i.resolve({data:t,defaults:IO.coordinates,settings:n.coordinates||{},scaled:{major:"vertical"===n.orientation?l:s,minor:"vertical"===n.orientation?s:l}}),u=!n.connect&&a.length>2&&("function"==typeof n.coordinates.layerId||"object"==typeof n.coordinates.layerId),d={};let f=0;for(let e=0;e<c.items.length;e++){let t=c.items[e],n=t.layerId;if(u){const e=d[n]?d[n].items[d[n].items.length-1]:null,r=e?a.indexOf(e.data.major?e.data.major.value:e.data.value):null;e&&a.indexOf(t.data.major?t.data.major.value:t.data.value)-1!==r&&d[n].items.push({dummy:!0})}d[n]=d[n]||{order:f++,id:n,items:[],dataItems:[],consumableData:{}},d[n].dataItems.push(t.data),d[n].items.push(t)}const h=Object.keys(d).map((e=>(d[e].consumableData=Uy({points:d[e].dataItems},d[e].dataItems[0]),d[e]))),p={items:h.map((e=>e.consumableData))},m=n.layers||{};return{coordinates:c,metaLayers:h,layers:i.resolve({data:p,defaults:{curve:IO.layers.curve,show:IO.layers.show},settings:{curve:m.curve,show:m.show}}),lines:i.resolve({data:p,defaults:Hy({},IO.layers.line,o.line),settings:m.line}),areas:i.resolve({data:p,defaults:Hy({},IO.layers.area,o.area),settings:m.area})}}(e),a=[];return t.forEach(((t,s)=>{const l=r.items[s];if(!1===l.show)return;l.datum=l.data,l.data=[],l.id=t.id;const c=[],u=[];let d,f;for(let r=0;r<t.items.length;r++){if(d=t.items[r],f=d.data,!d.dummy){if(isNaN(d.major))continue;e.missingMinor0&&(d.minor0=n.settings.minor.scale?n.settings.minor.scale(f.minor0?f.minor0.value:0):0),isNaN(d.minor)||c.push(d.minor),l.data.push(d.data)}u.push(d)}const h=c.sort(((e,t)=>e-t))[Math.floor((c.length-1)/2)];a.push({layerObj:l,lineObj:i.items[s],areaObj:o.items[s],median:h,points:u,consumableData:t.consumableData})})),a}const LO={require:["chart","resolver"],defaultSettings:{style:{area:"$shape",line:"$shape-outline"}},created(){},render(e){let{data:t}=e;const{width:n,height:r}=this.rect;this.stngs=this.settings.settings||{};const i=!this.stngs.coordinates||void 0===this.stngs.coordinates.minor0,o=PO({data:t,stngs:this.stngs,rect:this.rect,resolver:this.resolver,style:this.style,missingMinor0:i,domain:this.stngs.coordinates&&this.stngs.coordinates.major&&this.stngs.coordinates.major.scale?this.chart.scale(this.stngs.coordinates.major.scale).domain():[]});if(this.stngs.layers&&this.stngs.layers.sort){const e=o.map((e=>({id:e.layerObj.id,data:e.layerObj.data}))).sort(this.stngs.layers.sort).map((e=>e.id));o.sort(((t,n)=>e.indexOf(t.layerObj.id)-e.indexOf(n.layerObj.id)))}else o.sort(((e,t)=>e.median-t.median));return function(e,t){let{width:n,height:r,missingMinor0:i,stngs:o}=t;const a=[],s=o.layers||{};return e.forEach((e=>{const{lineObj:t,layerObj:l,areaObj:c,points:u}=e;let d={size:r,p:"y"},f={size:n,p:"x"};if("vertical"===o.orientation){const e=Hy(!0,{},f);f=Hy(!0,{},d),d=Hy(!0,{},e)}s.area&&!1!==c.show&&a.push(_O(u,{data:e.consumableData,item:c,generatorType:"area",major:f,minor:d,layerObj:l,stngs:o})),t&&!1!==t.show&&(a.push(_O(u,{data:e.consumableData,item:t,generatorType:"line".concat(d.p.toUpperCase(),"1"),major:f,minor:d,layerObj:l,stngs:o},"none")),!i&&s.area&&!1!==c.show&&!1!==t.showMinor0&&a.push(_O(u,{data:e.consumableData,item:t,generatorType:"line".concat(d.p.toUpperCase(),"0"),major:f,minor:d,layerObj:l,stngs:o},"none")))})),a}(o,{width:n,height:r,missingMinor0:i,stngs:this.stngs})}};function zO(e,t){let n,r,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];"object"==typeof t.center?(n=t.center.x,r=t.center.y):(n=t.clientX,r=t.clientY);const o=n-e.state.boundingRect.left,a=r-e.state.boundingRect.top;return{x:i?Math.max(0,Math.min(o,e.rect.width)):o,y:i?Math.max(0,Math.min(a,e.rect.height)):a}}function FO(e,t){return{x:t.x+e.rect.x,y:t.y+e.rect.y}}function jO(e,t){const n=Math.min(e.x,t.x),r=Math.min(e.y,t.y);return{x:n,y:r,width:Math.max(e.x,t.x)-n,height:Math.max(e.y,t.y)-r}}const $O={require:["chart","renderer"],defaultSettings:{layout:{displayOrder:99},settings:{brush:{components:[]}},style:{area:"$selection-area-target"}},on:{areaStart(e){this.start(e)},areaMove(e){this.move(e)},areaEnd(e){this.end(e)},areaCancel(){this.cancel()}},created(){this.state={start:{x:0,y:0},end:{x:0,y:0},active:!1}},preferredSize:()=>0,render(){},start(e){this.state.boundingRect=this.renderer.element().getBoundingClientRect();const t=zO(this,e,!1);fk({x:0,y:0,width:this.rect.width,height:this.rect.height},t)&&(this.state.brushConfig=this.settings.settings.brush.components.map((e=>({key:e.key,contexts:e.contexts,data:e.data,action:e.action||"set"}))),this.state.start=zO(this,e),this.state.active=!0)},move(e){var t;this.state.active&&(this.state.end=zO(this,e),function(e){if(e.state.active){const t=FO(e,e.state.start),n=FO(e,e.state.end),r=e.chart.shapesAt(jO(t,n),{components:e.state.brushConfig});e.chart.brushFromShapes(r,{components:e.state.brushConfig})}}(this),(t=this).renderer.render([Hy({type:"rect"},jO(t.state.start,t.state.end),t.style.area)]))},end(){this.state.active&&(this.state={start:{x:0,y:0},end:{x:0,y:0},active:!1},this.renderer.render([]))},cancel(){this.state.active&&(!function(e,t){e.brushConfig.forEach((e=>{Array.isArray(e.contexts)&&e.contexts.forEach((e=>{t.brush(e).end()}))}))}(this.state,this.chart),this.state={start:{x:0,y:0},end:{x:0,y:0},active:!1},this.renderer.render([]))}};function HO(e,t,n){let{renderer:r,style:i,props:o,h:a}=n;const s=function(e,t){return{tooltip:"function"==typeof e.tooltipClass?e.tooltipClass({dock:t.dock}):e.tooltipClass,content:"function"==typeof e.contentClass?e.contentClass({dock:t.dock}):e.contentClass,arrow:"function"==typeof e.arrowClass?e.arrowClass({dock:t.dock}):e.arrowClass}}(o,t),l=function(e,t,n,r){return r.content({h:e,style:n,data:t})}(a,e,i,o),c=a("div",{dir:o.direction,class:bO(Hy({"pic-tooltip":!0},s.tooltip)),style:Hy({position:"relative",display:"inline-block"},t.computedTooltipStyle)},a("div",{style:i.content,class:bO(Hy({"pic-tooltip-content":!0},s.content))},l),a("div",{class:bO(Hy({"pic-tooltip-arrow":!0},s.arrow)),style:Hy({},i.arrow,i["arrow-".concat(t.dock)],t.computedArrowStyle)}));return r.render(c),r.element().children[0]}function BO(e){let{defaultDuration:t,defaultDelay:n}=e,r=null,i=null,o=!1;const a=function(){const e=function(){},t={pending:[],debounced:[],active:[],cancelled:[],rejected:[],fulfilled:[]};let n;return e.set=e=>{n=e,t[n].forEach((t=>t(e)))},e.on=(e,n)=>{Array.isArray(e)?e.forEach((e=>t[e].push(n))):t[e].push(n)},e.destroy=()=>{Object.keys(t).forEach((e=>{t[e].length=0}))},e}(),s=function(){},l=()=>{r=null,i=null,o=!1,a.set("fulfilled")};return s.invoke=function(e){let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:n;r&&(clearTimeout(r),a.set("debounced")),a.set("pending"),r=setTimeout((()=>{e(),o=!0,r=null,a.set("active")}),c),s>0&&(i&&clearTimeout(i),i=setTimeout(l,s+Math.max(c,0)))},s.clear=()=>{o?a.set("cancelled"):r&&(clearTimeout(r),a.set("rejected")),i&&clearTimeout(i),r=null,i=null,o=!1},s.on=(e,t)=>{a.on(e,t)},s.destroy=()=>{s.clear(),a.destroy()},s}function VO(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return{left:"translate(-100%,-50%) translateX(".concat(-e,"px)"),right:"translate(".concat(e,"px, -50%)"),top:"translate(-50%, -100%) translateY(".concat(-e,"px)"),bottom:"translate(-50%, ".concat(e,"px)"),inside:"translate(-50%, -50%)"}}function UO(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return{left:{x:-e-n,y:-t/2},right:{x:n,y:-t/2},top:{x:-e/2,y:-t-n},bottom:{x:-e/2,y:n},inside:{x:-e/2,y:-t/2}}}function WO(e,t){const n=e>0?"-":"+";return e=Math.abs(e),void 0===t&&(t=e),{left:{left:"100%",top:"calc(50% ".concat(n," ").concat(e,"px)"),borderWidth:"".concat(t,"px")},right:{left:"".concat(2*-e,"px"),top:"calc(50% ".concat(n," ").concat(e,"px)"),borderWidth:"".concat(t,"px")},top:{left:"calc(50% ".concat(n," ").concat(e,"px)"),top:"100%",borderWidth:"".concat(t,"px")},bottom:{left:"calc(50% ".concat(n," ").concat(e,"px)"),top:"".concat(2*-e,"px"),borderWidth:"".concat(t,"px")},inside:{left:"0px",top:"0px",borderWidth:"0px"}}}function YO(e,t,n,r,i,o){const a=t+o.x,s=n+o.y,l=i;return!(a<0||s<0)&&!(a+r>e.width||s+l>e.height)}function XO(e){let{area:t,vx:n,vy:r,width:i,height:o,offset:a}=e;const s=n+a.x,l=r+a.y,c=i,u=o;let d=s<0?-s:0,f=l<0?-l:0;return d+=s+c>t.width?-(s+c-t.width):0,f+=l+u>t.height?-(l+u-t.height):0,{x:d,y:f}}function GO(e){let{options:t,pointer:n,width:r,height:i,dockOrder:o,x:a,y:s}=e;const{targetBounds:l}=n,c=VO(t.offset),u=c[t.dock];if(u)return{computedTooltipStyle:{left:"".concat(a,"px"),top:"".concat(s,"px"),transform:u},computedArrowStyle:WO(t.offset)[t.dock],dock:t.dock};const d={width:"target"===t.area?l.width:window.innerWidth,height:"target"===t.area?l.height:window.innerHeight},f=UO(r,i,t.offset),h=[],p="target"===t.area?a:l.left+a,m="target"===t.area?s:l.top+s;for(let e=0;e<o.length;e+=1){const n=o[e],l=XO({area:d,vx:p,vy:m,width:r,height:i,offset:f[n]}),u={left:"".concat(a,"px"),top:"".concat(s,"px"),transform:c[n]},g=WO(t.offset)[n];0!==l.x&&(u.width="".concat(r-20-Math.abs(l.x),"px"),"top"!==n&&"bottom"!==n||(u.left="".concat(a+l.x,"px"),g.left="calc(50% ".concat(l.x>0?"-":"+"," ").concat(Math.abs(l.x),"px)")));const y={computedTooltipStyle:u,computedArrowStyle:g,dock:n,rect:{width:r,height:i}};if(0===l.x&&0===l.y)return y;y.offset=l,h.push(y)}return h.sort(((e,t)=>Math.abs(e.offset.x)-Math.abs(t.offset.x))),h[0]}function KO(e,t,n){const r=e.key?n.component(e.key):n.componentsFromPoint({x:t.clientX,y:t.clientY})[0];if(!r)return{x:0,y:0,width:0,height:0,scaleRatio:{x:1,y:1}};const i=r.rect;return Hy({scaleRatio:i.scaleRatio},i.computedInner)}const JO={bounds:function(e){let{resources:t,nodes:n,pointer:r,width:i,height:o,options:a}=e;const{targetBounds:s}=r,{x:l,y:c,width:u,height:d}=t.getNodeBoundsRelativeToTarget(n[0]),f={left:{x:l,y:c+d/2},right:{x:l+u,y:c+d/2},top:{x:l+u/2,y:c},bottom:{x:l+u/2,y:c+d},inside:{x:l+u/2,y:c+d/2}},h=VO(a.offset),p=h[a.dock];if(p)return{computedTooltipStyle:{left:"".concat(f[a.dock].x,"px"),top:"".concat(f[a.dock].y,"px"),transform:p},computedArrowStyle:WO(a.offset)[a.dock],dock:a.dock};const m={width:"target"===a.area?s.width:window.innerWidth,height:"target"===a.area?s.height:window.innerHeight},g=UO(i,o,a.offset),y=["top","left","right","bottom","inside"];for(let e=0;e<y.length;e+=1){const t=y[e];if(YO(m,"target"===a.area?f[t].x:s.left+f[t].x,"target"===a.area?f[t].y:s.top+f[t].y,i,o,g[t]))return{computedTooltipStyle:{left:"".concat(f[t].x,"px"),top:"".concat(f[t].y,"px"),transform:h[t]},computedArrowStyle:WO(a.offset)[t],dock:t}}const v=function(e){let{options:t,docks:n,dockOffsets:r,targetBounds:i,area:o,width:a,height:s}=e;const l="top",c="target"===t.area?n[l].x:i.left+n[l].x,u=("target"===t.area?n[l].y:(i.top,n[l].y),r[l]),d=c+u.x,f=(u.y,a);let h=n.top.x;return d<0&&d+f>o.width||(d<0?h-=d:d+f>o.width&&(h-=d+f-o.width)),h}({options:a,docks:f,dockOffsets:g,targetBounds:s,area:m,width:i,height:o});return{computedTooltipStyle:{left:"".concat(v,"px"),top:"".concat(f.top.y,"px"),transform:h.top},computedArrowStyle:WO(a.offset+v-f.top.x,a.offset).top,dock:"top"}},pointer:function(e){let{options:t,pointer:n,width:r,height:i}=e;const{x:o,y:a}=n;return GO({x:o,y:a,pointer:n,width:r,height:i,options:t,dockOrder:["top","left","right","bottom"]})},slice:function(e){let{options:t,pointer:n,width:r,height:i,nodes:o,resources:a}=e;const s=o[0],{dx:l,dy:c}=n,u=a.getComponentBoundsFromNode(s),d=l+u.x+u.width/2,f=c+u.y+u.height/2,{start:h,end:p,outerRadius:m}=s.desc.slice,g=(h+p)/2-Math.PI/2,y=2*Math.PI,v=(g%y+y)%y;let b=["top","left","right","bottom"];return"auto"===t.dock&&(b=v<=Math.PI/4||v>=7*Math.PI/4?["right","top","bottom","left"]:v<=3*Math.PI/4?["bottom","left","right","top"]:v<=5*Math.PI/4?["left","top","bottom","right"]:["top","left","right","bottom"]),GO({x:d+m*u.scaleRatio.x*Math.cos(v),y:f+m*u.scaleRatio.y*Math.sin(v),pointer:n,width:r,height:i,options:t,dockOrder:b})}};function QO(e,t){let{width:n,height:r}=e,{chart:i,state:o,props:a}=t;const s={resources:{formatter:i.formatter,scale:i.scale,component:i.component,getComponentBoundsFromNode:e=>KO(e,o.pointer,i),getNodeBoundsRelativeToTarget:e=>function(e,t,n){const r=KO(e,t,n),i=e.bounds;return{x:r.x+t.dx+i.x,y:r.y+t.dy+i.y,width:i.width,height:i.height}}(e,o.pointer,i)},nodes:o.activeNodes,pointer:o.pointer,width:n,height:r},l=typeof a.placement;if("object"===l&&"function"==typeof a.placement.fn)return a.placement.fn(s);let c={type:"pointer",offset:8,dock:"auto",area:"viewport"};"function"===l&&(c=Hy(c,a.placement(s))),"object"===l&&JO[a.placement.type]?c=Hy(c,a.placement):"string"===l&&JO[a.placement]&&(c=Hy(c,{type:a.placement})),s.options=c;const u=JO[c.type](s);let{x:d,y:f,width:h,height:p}=s.resources.getComponentBoundsFromNode(s.nodes[0]);return d+=s.pointer.dx,h+=d,f+=s.pointer.dy,p+=f,u.computedTooltipStyle.left="".concat(Math.min(Math.max(0,d,parseFloat(u.computedTooltipStyle.left)),h),"px"),u.computedTooltipStyle.top="".concat(Math.min(Math.max(0,f,parseFloat(u.computedTooltipStyle.top)),p),"px"),u}let ZO;function eN(){ZO=null}const tN={duration:8e3,delay:500,filter:e=>e.filter((e=>e.data&&void 0!==e.data.value)),extract:e=>e.node.data.value,content:e=>{let{h:t,data:n}=e;return n.map((e=>t("div",{},e)))},isEqual:(e,t)=>e.length&&e.length===t.length&&e.every(((e,n)=>t[n]&&JSON.stringify(e.data)===JSON.stringify(t[n].data))),placement:{type:"pointer",dock:"auto",offset:8,area:"viewport"},tooltipClass:{},contentClass:{},arrowClass:{},direction:"ltr",appendTo:void 0,beforeShow:void 0,afterShow:void 0,beforeHide:void 0,onHide:void 0,afterHide:void 0};const nN={require:["chart","renderer"],defaultSettings:{settings:tN,style:{tooltip:{},content:{backgroundColor:"$gray-25",color:"$font-color--inverted",fontFamily:"$font-family",fontSize:"$font-size",lineHeight:"$line-height",borderRadius:"4px",padding:"8px",opacity:.9},arrow:{position:"absolute",width:"0px",height:"0px",borderStyle:"solid",color:"$gray-25",opacity:.9},"arrow-bottom":{borderTopColor:"transparent",borderLeftColor:"transparent",borderRightColor:"transparent"},"arrow-top":{borderBottomColor:"transparent",borderLeftColor:"transparent",borderRightColor:"transparent"},"arrow-right":{borderTopColor:"transparent",borderLeftColor:"transparent",borderBottomColor:"transparent"},"arrow-left":{borderTopColor:"transparent",borderBottomColor:"transparent",borderRightColor:"transparent"}}},renderer:"dom",on:{hide(){this.hide()},show(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.show(e,t)},prevent(e){this.prevent(e)}},hide(){this.dispatcher.clear(),this.state.activeNodes=[],this.state.pointer={}},show(e){let t,{nodes:n,duration:r,delay:i}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!this.state.prevent&&this.state.targetElement&&(this.state.pointer=function(e,t){let{chart:n,state:r}=t,i=0,o=0;e.center?(i+=e.center.x,o+=e.center.y):(i+=e.clientX,o+=e.clientY);const a=n.element.getBoundingClientRect(),s=r.targetElement.getBoundingClientRect(),l=i,c=o,u=a.left-s.left,d=a.top-s.top,f=i-a.left,h=o-a.top;return i-=s.left,o-=s.top,{x:i,y:o,dx:u,dy:d,cx:f,cy:h,clientX:l,clientY:c,targetBounds:s,chartBounds:a}}(e,this),t=Array.isArray(n)?this.props.filter(n):this.props.filter(this.chart.shapesAt({x:this.state.pointer.cx,y:this.state.pointer.cy})),this.props.isEqual(this.state.activeNodes,t)||(this.dispatcher.clear(),this.state.activeNodes=t,this.state.activeNodes.length&&this.dispatcher.invoke((()=>this.invokeRenderer(this.state.activeNodes)),r,i)))},prevent(e){this.state.prevent=!!e},init(e){this.state={activeNodes:[],pointer:{},targetElement:null,prevent:!1},this.props=e.settings,this.dispatcher=BO({defaultDuration:this.props.duration,defaultDelay:this.props.delay});const t=this.dispatcher.clear;this.dispatcher.on("pending",(()=>{!function(e){ZO&&ZO!==e&&ZO()}(t),ZO=t,"function"==typeof this.props.beforeShow&&this.props.beforeShow.call(void 0,{resources:{formatter:this.chart.formatter,scale:this.chart.scale}})})),this.dispatcher.on(["cancelled","fulfilled"],(()=>{const e={resources:{formatter:this.chart.formatter,scale:this.chart.scale}};"function"==typeof this.props.beforeHide&&this.props.beforeHide.call(void 0,Hy({element:this.state.tooltipElm},e)),"function"==typeof this.props.onHide?this.props.onHide.call(void 0,Hy({element:this.state.tooltipElm},e)):this.renderer.clear([]),"function"==typeof this.props.afterHide&&this.props.afterHide.call(void 0,e),ZO===t&&(ZO=null),this.state.tooltipElm=void 0})),this.dispatcher.on("active",(()=>{"function"==typeof this.props.afterShow&&this.props.afterShow.call(void 0,{element:this.state.tooltipElm,resources:{formatter:this.chart.formatter,scale:this.chart.scale}})}))},created(){this.init(this.settings)},beforeUpdate(e){let{settings:t}=e;this.dispatcher&&(this.dispatcher.destroy(),eN()),this.init(t)},render(e){return this.h=e,[]},beforeDestroy(){this.dispatcher.destroy(),eN()},appendTo(){if(this.props.appendTo){this.state.targetElement="function"==typeof this.props.appendTo?this.props.appendTo({resources:{formatter:this.chart.formatter,scale:this.chart.scale}}):this.props.appendTo;const{width:e,height:t}=this.state.targetElement.getBoundingClientRect();this.renderer.destroy(),this.renderer.size({width:e,height:t}),this.renderer.appendTo(this.state.targetElement)}else this.state.targetElement=this.renderer.element()},mounted(){this.appendTo()},updated(){this.appendTo()},invokeRenderer(e){const t=function(e,t){let{chart:n,scale:r,props:i,h:o}=t;const a={resources:{dataset:n.dataset,scale:n.scale,formatter:n.formatter},scale:r,h:o},s=[];return e.forEach((e=>{if("function"==typeof i.extract){const t=Hy({node:e},a);s.push(i.extract(t))}})),s}(e,this),n=QO(HO(t,{style:{left:"0px",top:"0px",visibility:"hidden"}},this).getBoundingClientRect(),this);this.state.tooltipElm=HO(t,n,this)}};const rN={require:["renderer","chart"],defaultSettings:{settings:{target:"",selector:"*",fill:"rgba(0, 255, 0, 0.1)",stroke:"lime",opacity:1,useOuterRect:!1}},on:{update(){this.draw()}},draw(){const e=this.chart.findShapes(this.props.selector).filter((e=>e.key===this.props.target)),t=e.filter((e=>e.collider)).map((e=>e.collider));t.forEach((e=>{e.fill=this.props.fill,e.stroke=this.props.stroke,e.opacity=this.props.opacity,e.collider={type:null}})),this.renderer.render(t)},created(){this.props=this.settings.settings},resize(e){let{outer:t,inner:n}=e;return this.props.useOuterRect?t:n},render(){},mounted(){this.draw()},updated(){this.props=this.settings.settings,this.draw()}},iN=2*Math.PI;function oN(e,t){return{x:.5*(e.x+t.x),y:.5*(e.y+t.y)}}function aN(e,t,n,r,i){const o=1-e;return o**3*t+3*o**2*e*n+3*o*e**2*r+e**3*i}function sN(e,t,n,r){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:8;if(o<1||function(e,t,n,r){return Math.abs(e.x+n.x-(t.x+t.x))+Math.abs(e.y+n.y-(t.y+t.y))+Math.abs(t.x+r.x-(n.x+n.x))+Math.abs(t.y+r.y-(n.y+n.y))}(e,t,n,r)<=10)return i[i.length-1]!==e&&i.push(e),i.push(r),i;const a=oN(e,t),s=oN(t,n),l=oN(n,r),c={x:aN(.5,e.x,t.x,n.x,r.x),y:aN(.5,e.y,t.y,n.y,r.y)},u=oN(a,s),d=oN(s,l);return sN(e,a,u,c,i,o-1),sN(c,d,l,r,i,o-1),i}function lN(e,t,n){const{cp1:r,cp2:i}=function(e,t,n){return{cp1:{x:e.x+2/3*(t.x-e.x),y:e.y+2/3*(t.y-e.y)},cp2:{x:n.x+2/3*(t.x-n.x),y:n.y+2/3*(t.y-n.y)}}}(e,t,n);return sN(e,r,i,n)}const cN=1e-12;function uN(e,t,n){const r=[],i=!!e[4],o=!!e[5],a=e[3];let s,l,c,u,d=e[6],f=e[7],h=e[1],p=e[2];if("a"===e[0]&&(d+=t,f+=n),t===f&&n===f)return r;if(!h||!p)return r.push({x:d,y:f}),r;({cx:s,cy:l,rx:h,ry:p,sweepAngle:c,startAngle:u}=function(e,t,n,r,i,o,a,s,l){let c,u,d,f,h,p;const m=kE(n%360),g=Math.cos(m),y=Math.sin(m),v=(s-o)/2,b=(l-a)/2,x=g*v+y*b,S=g*b-y*v;p=x**2/(e=Math.abs(e))**2+S**2/(t=Math.abs(t))**2,p>1&&(p=Math.sqrt(p),e*=p,t*=p);const w=e*S,M=t*x,E=w**2+M**2,k=(e*t)**2-E;let C=Math.sqrt(Math.max(k/E,0));r===i&&(C=-C);const T=C*(w/t),A=C*(-M/e);f=g*T-y*A+(s+o)/2,h=y*T+g*A+(l+a)/2;const O=(x-T)/e,N=(S-A)/t,q=(-x-T)/e,D=(-S-A)/t;return c=Math.atan2(N,O),c+=c<0?iN:0,u=Math.atan2(D,q),u+=u<0?iN:0,d=u-c,!i&&c<u?d-=iN:i&&u<c&&(d+=iN),d%=iN,{startAngle:c,sweepAngle:d,cx:f,cy:h,rx:e,ry:t}}(h,p,a,i,o,d,f,t,n));const m=Math.abs(c*Math.sqrt((h**2+p**2)/2)),g=Math.ceil(m/10),y=c/g;for(let e=1;e<=g;e++){const t=(u+y*e)%iN,n=Math.cos(t),i=Math.sin(t);r.push({x:s+n*h+-i*n,y:l+i*p+n*i})}return r}function dN(e){const t=Ry.parsePath(e),n=[],r=[];let i=0,o=0,a=null,s=null,l=null,c=null;for(let e=0;e<t.length;++e){const u=t[e],d=u[0];switch("S"!==d&&"s"!==d&&"C"!==d&&"c"!==d&&(a=null,s=null),"T"!==d&&"t"!==d&&"Q"!==d&&"q"!==d&&(l=null,c=null),d){case"m":r.length&&n.push(r.splice(0));case"l":i+=u[1],o+=u[2],r.push({x:i,y:o});break;case"M":r.length&&n.push(r.splice(0));case"L":i=u[1],o=u[2],r.push({x:i,y:o});break;case"H":i=u[1],r.push({x:i,y:o});break;case"h":i+=u[1],r.push({x:i,y:o});break;case"V":o=u[1],r.push({x:i,y:o});break;case"v":o+=u[1],r.push({x:i,y:o});break;case"a":r.push(...uN(u,i,o)),i+=u[6],o+=u[7];break;case"A":r.push(...uN(u,i,o)),i=u[6],o=u[7];break;case"c":r.push(...sN({x:i,y:o},{x:u[1]+i,y:u[2]+o},{x:u[3]+i,y:u[4]+o},{x:u[5]+i,y:u[6]+o})),a=u[3]+i,s=u[4]+o,i+=u[5],o+=u[6];break;case"C":r.push(...sN({x:i,y:o},{x:u[1],y:u[2]},{x:u[3],y:u[4]},{x:u[5],y:u[6]})),a=u[3],s=u[4],i=u[5],o=u[6];break;case"s":null!==a&&null!==a||(a=i,s=o),r.push(...sN({x:i,y:o},{x:2*i-a,y:2*o-s},{x:u[1]+i,y:u[2]+o},{x:u[3]+i,y:u[4]+o})),a=u[1]+i,s=u[2]+o,i+=u[3],o+=u[4];break;case"S":null!==a&&null!==a||(a=i,s=o),r.push(...sN({x:i,y:o},{x:2*i-a,y:2*o-s},{x:u[1],y:u[2]},{x:u[3],y:u[4]})),a=u[1],s=u[2],i=u[3],o=u[4];break;case"Q":r.push(...lN({x:i,y:o},{x:u[1],y:u[2]},{x:u[3],y:u[4]})),l=u[1],c=u[2],i=u[3],o=u[4];break;case"q":r.push(...lN({x:i,y:o},{x:u[1]+i,y:u[2]+o},{x:u[3]+i,y:u[4]+o})),l=u[1]+i,c=u[2]+o,i+=u[3],o+=u[4];break;case"T":null!==l&&null!==l||(l=i,c=o),l=2*i-l,c=2*o-c,r.push(...lN({x:i,y:o},{x:l,y:c},{x:u[1],y:u[2]})),i=u[1],o=u[2];break;case"t":null!==l&&null!==l||(l=i,c=o),l=2*i-l,c=2*o-c,r.push(...lN({x:i,y:o},{x:l,y:c},{x:u[1]+i,y:u[2]+o})),i+=u[1],o+=u[2];break;case"z":case"Z":r.length&&r.push({x:r[0].x,y:r[0].y})}}return function(e){for(let t=0;t<e.length-1;t++){const n=e[t],r=e[t+1];Math.abs(n.x-r.x)<cN&&Math.abs(n.y-r.y)<cN&&(e.splice(t,1),t--)}}(r),n.push(r.splice(0)),n}const fN={require:["renderer","chart"],defaultSettings:{settings:{target:"",fill:"transparent",stroke:"lime",opacity:1,radius:2,useOuterRect:!1}},on:{update(){this.draw()}},draw(){const e=this.chart.findShapes("path").filter((e=>e.key===this.props.target)),t=[];e.forEach((e=>{dN(e.attrs.d).forEach((e=>{e.forEach((e=>{t.push({type:"circle",cx:e.x,cy:e.y,r:this.props.radius,fill:this.props.fill,stroke:this.props.stroke,opacity:this.props.opacity,collider:{type:null}})}))}))})),this.renderer.render(t)},created(){this.props=this.settings.settings},resize(e){let{outer:t,inner:n}=e;return this.props.useOuterRect?t:n},render(){},mounted(){this.draw()},updated(){this.props=this.settings.settings,this.draw()}};var hN=[function(e){e.component("box",hC),e.component("box-marker",hC)},function(e){e.component("point",xC),e.component("point-marker",xC)},function(e){e.component("pie",EC)},function(e){e.component("grid-line",OC)},function(e){e.component("ref-line",PC)},function(e){e.component("axis",aT)},function(e){e.component("container",sT)},function(e){e.component("text",uT)},function(e){e.component("scrollbar",hT)},function(e){e.component("brush-range",NT),e.component("brush-area-dir",IT)},function(e){e.component("range",zT)},function(e){e.component("brush-lasso",VT)},function(e){e.component("labels",pO)},function(e){e.component("legend-cat",TO)},function(e){e.component("legend-seq",RO)},function(e){e.component("line",LO)},function(e){e.component("brush-area",$O)},function(e){e.component("tooltip",nN)},function(e){e.component("debug-collider",rN)},function(e){e.component("debug-path-to-points",fN)}];let pN=class{constructor(e){this._parent=null,this._children=[],this._ancestors=null,this.type=e,this.data=null}detach(){return this._parent&&this._parent.removeChild(this),this}get parent(){return this._parent}get isBranch(){return this._children&&this._children.length}get children(){return this._children}get ancestors(){return this._ancestors||(this._ancestors=[],this.parent&&this._ancestors.push(this.parent,...this.parent.ancestors)),this._ancestors}get descendants(){let e=[];const t=this.children.length;let n,r;for(n=0;n<t;n++)r=this.children[n],e.push(r),r.children.length&&(e=[...e,...r.descendants]);return e}equals(e){const t=this.children,n=e.children;if(t.length!==n.length)return!1;for(let e=0;e<t.length;e++)if(!t[e].equals(n[e]))return!1;return!0}toJSON(){return{type:this.type,children:this.children.map((e=>e.toJSON()))}}};class mN{constructor(){let{x:e=0,y:t=0,width:n=0,height:r=0,minWidth:i=0,minHeight:o=0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.set({x:e,y:t,width:n,height:r,minWidth:i,minHeight:o})}set(){let{x:e=0,y:t=0,width:n=0,height:r=0,minWidth:i=0,minHeight:o=0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.type="rect",n>=0?(this.x=e,this.width=Math.max(n,i)):(this.x=e+Math.min(n,-i),this.width=-Math.min(n,-i)),r>=0?(this.y=t,this.height=Math.max(r,o)):(this.y=t+Math.min(r,-o),this.height=-Math.min(r,-o))}containsPoint(e){return fk(this,e)}intersectsLine(e){return hk(this,tv(e))}intersectsRect(e){return uk(this,ev(e))}intersectsCircle(e){return ik(e,this)}intersectsPolygon(e){return ck(e,this)}intersectsGeoPolygon(e){return Sk(e,this)}points(){return[{x:this.x,y:this.y},{x:this.x+this.width,y:this.y},{x:this.x+this.width,y:this.y+this.height},{x:this.x,y:this.y+this.height}]}}class gN{constructor(){let{cx:e=0,cy:t=0,r:n=0,minRadius:r=0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.set({cx:e,cy:t,r:n,minRadius:r})}set(){let{cx:e=0,cy:t=0,r:n=0,minRadius:r=0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.type="circle",this.cx=e,this.cy=t,this.r=Math.max(n,r),this.vector={x:this.cx,y:this.cy}}containsPoint(e){return rk(this,e)}intersectsLine(e){return ok(this,tv(e))}intersectsRect(e){return ik(this,ev(e))}intersectsCircle(e){return n=e,!ZE(t=this)&&!ZE(n)&&(t.cx-n.cx)**2+(t.cy-n.cy)**2<=(t.r+n.r)**2;var t,n}intersectsPolygon(e){return ak(this,e)}intersectsGeoPolygon(e){return vk(this,e)}points(){return[{x:this.cx,y:this.cy}]}}class yN{constructor(){let{x1:e=0,y1:t=0,x2:n=0,y2:r=0,tolerance:i=0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.set({x1:e,y1:t,x2:n,y2:r,tolerance:i})}set(){let{x1:e=0,y1:t=0,x2:n=0,y2:r=0,tolerance:i=0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.type="line",this.x1=e,this.y1=t,this.x2=n,this.y2=r,this.tolerance=Math.max(0,Math.round(i)),this.vectors=this.points(),this.zeroSize=e===n&&t===r}containsPoint(e){if(this.tolerance>0){return ok({cx:e.x,cy:e.y,r:this.tolerance},this)}return mk(this,e)}intersectsLine(e){return pk(this,tv(e))}intersectsRect(e){return hk(ev(e),this)}intersectsCircle(e){return ok(e,this)}intersectsPolygon(e){return lk(e,this)}intersectsGeoPolygon(e){return xk(e,this)}points(){return[{x:this.x1,y:this.y1},{x:this.x2,y:this.y2}]}}class vN{constructor(){let{vertices:e=[]}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.set({vertices:e})}set(){let{vertices:e=[]}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(this.type="polygon",this.vertices=e.slice(),this.edges=[],function(e){for(let t=0;t<e.length-1;t++){const n=e[t],r=e[t+1];n.x===r.x&&n.y===r.y&&(e.splice(t,1),t--)}}(this.vertices),!(this.vertices.length<=2)){!function(e){const t=e[0],n=e[e.length-1];t.x===n.x&&t.y===n.y||e.push(t)}(this.vertices),this.xMin=NaN,this.yMin=NaN,this.xMax=NaN,this.yMax=NaN;for(let e=0;e<this.vertices.length;e++)e<this.vertices.length-1&&this.edges.push([this.vertices[e],this.vertices[e+1]]),this.xMin=isNaN(this.xMin)?this.vertices[e].x:Math.min(this.xMin,this.vertices[e].x),this.xMax=isNaN(this.xMax)?this.vertices[e].x:Math.max(this.xMax,this.vertices[e].x),this.yMin=isNaN(this.yMin)?this.vertices[e].y:Math.min(this.yMin,this.vertices[e].y),this.yMax=isNaN(this.yMax)?this.vertices[e].y:Math.max(this.yMax,this.vertices[e].y);this._bounds=null,this._boundingRect=null}}containsPoint(e){return sk(this,e)}intersectsCircle(e){return ak(e,this)}intersectsLine(e){return lk(this,tv(e))}intersectsRect(e){return ck(this,ev(e))}intersectsPolygon(e){return gk(this,e)}intersectsGeoPolygon(e){return yk(e,this)}points(){return this.vertices}bounds(){return this._bounds||(this._bounds=[{x:this.xMin,y:this.yMin},{x:this.xMax,y:this.yMin},{x:this.xMax,y:this.yMax},{x:this.xMin,y:this.yMax}]),this._bounds}boundingRect(){return this._boundingRect||(this._boundingRect={x:this.xMin,y:this.yMin,width:this.xMax-this.xMin,height:this.yMax-this.yMin}),this._boundingRect}}function bN(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new vN(...t)}function xN(e){const t=e[0],n=e[e.length-1];t.x===n.x&&t.y===n.y||e.push(t)}function SN(e){for(let t=0;t<e.length-1;t++){const n=e[t],r=e[t+1];n.x===r.x&&n.y===r.y&&(e.splice(t,1),t--)}}class wN{constructor(){let{vertices:e=[[]]}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.set({vertices:e})}set(){let{vertices:e=[]}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.type="geopolygon",this.vertices=e.slice(),this.numPolygons=this.vertices.length,this.polygons=[],this.xMin=NaN,this.yMin=NaN,this.xMax=NaN,this.yMax=NaN;for(let e=0;e<this.numPolygons;e++)SN(this.vertices[e]),this.vertices[e].length>2&&xN(this.vertices[e]),this.polygons[e]=bN({vertices:this.vertices[e]}),this.xMin=isNaN(this.xMin)?this.polygons[e].xMin:Math.min(this.xMin,this.polygons[e].xMin),this.xMax=isNaN(this.xMax)?this.polygons[e].xMax:Math.max(this.xMax,this.polygons[e].xMax),this.yMin=isNaN(this.yMin)?this.polygons[e].yMin:Math.min(this.yMin,this.polygons[e].yMin),this.yMax=isNaN(this.yMax)?this.polygons[e].yMax:Math.max(this.yMax,this.polygons[e].yMax);this._bounds=null,this._boundingRect=null}containsPoint(e){return bk(this,e)}intersectsCircle(e){return vk(e,this)}intersectsLine(e){return xk(this,tv(e))}intersectsRect(e){return Sk(this,ev(e))}intersectsPolygon(e){return yk(this,e)}intersectsGeoPolygon(e){return function(e,t){const n=e.boundingRect(),r=t.boundingRect();return!!uk(n,r)&&(dk(r,n)?nk(t,e):nk(e,t))}(this,e)}points(){return this.vertices}bounds(){return this._bounds||(this._bounds=[{x:this.xMin,y:this.yMin},{x:this.xMax,y:this.yMin},{x:this.xMax,y:this.yMax},{x:this.xMin,y:this.yMax}]),this._bounds}boundingRect(){return this._boundingRect||(this._boundingRect={x:this.xMin,y:this.yMin,width:this.xMax-this.xMin,height:this.yMax-this.yMin}),this._boundingRect}}function MN(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new wN(...t)}class EN{constructor(){let{points:e=[]}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.set({points:e})}set(){let{points:e=[]}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(this.type="polyline",this.segments=[],this._points=e.slice(),this._points.length>1)for(let e=0,r=this._points.length-1;e<r;e++)t=this._points[e],n=this._points[e+1],(t.x!==n.x||t.y!==n.y)&&this.segments.push({x1:this._points[e].x,y1:this._points[e].y,x2:this._points[e+1].x,y2:this._points[e+1].y});var t,n}containsPoint(e){return this.segments.some((t=>mk(t,e)))}intersectsCircle(e){return this.segments.some((t=>ok(e,t)))}intersectsLine(e){const t=tv(e);return this.segments.some((e=>pk(e,t)))}intersectsRect(e){const t=ev(e);return this.segments.some((e=>hk(t,e)))}intersectsPolygon(e){return this.segments.some((t=>lk(e,t)))}intersectsGeoPolygon(e){return this.segments.some((t=>xk(e,t)))}points(){return this._points}}const kN=ab();function CN(e,t){return kN.get(e)(t)}kN.add("rect",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new mN(...t)})),kN.add("circle",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new gN(...t)})),kN.add("line",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new yN(...t)})),kN.add("polygon",bN),kN.add("geopolygon",MN),kN.add("polyline",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new EN(...t)}));class TN{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.set(e)}set(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.geometries=[],e.forEach((e=>{const t=CN(e.type,e);t&&this.geometries.push(t)}))}containsPoint(e){return this.geometries.some((t=>t.containsPoint(e)))}intersectsLine(e){return this.geometries.some((t=>t.intersectsLine(e)))}intersectsRect(e){return this.geometries.some((t=>t.intersectsRect(e)))}intersectsCircle(e){return this.geometries.some((t=>t.intersectsCircle(e)))}intersectsPolygon(e){return this.geometries.some((t=>t.intersectsPolygon(e)))}intersectsGeoPolygon(e){return this.geometries.some((t=>t.intersectsGeoPolygon(e)))}}class AN{constructor(){this._elements=[[1,0,0],[0,1,0],[0,0,1]],this._stack=[]}clone(){return(new AN).multiply(this)}set(e){return this._elements=e,this}save(){return this._stack.push(this.elements),this}restore(){return this._stack.length&&(this._elements=this._stack.pop()),this}add(e){let t,n;for(t=0;t<this._elements.length;t++)for(n=0;n<this._elements[t].length;n++)this._elements[t][n]+=e;return this}translate(e,t){return this.multiply([[1,0,e],[0,1,t],[0,0,1]]),this}rotate(e){let t=Math.cos(-e),n=Math.sin(-e);return this.multiply([[t,n,0],[-n,t,0],[0,0,1]]),this}multiply(e){let t,n,r,i;if(e instanceof AN&&(e=e._elements),Array.isArray(e)){for(r=[[0,0,0],[0,0,0],[0,0,0]],t=0;t<this._elements.length;t++)for(n=0;n<this._elements[t].length;n++)for(i=0;i<3;i++)r[t][n]+=this._elements[t][i]*e[i][n];this._elements=r}else for(t=0;t<this._elements.length;t++)for(n=0;n<this._elements[t].length;n++)this._elements[t][n]*=e;return this}scale(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return this.multiply([[e,0,0],[0,t,0],[0,0,1]]),this}transform(e,t,n,r,i,o){return this.multiply([[e,n,i],[t,r,o],[0,0,1]]),this}determinant(){let e=this._elements[0][0],t=this._elements[0][1],n=this._elements[0][2],r=this._elements[1][0],i=this._elements[1][1],o=this._elements[1][2],a=this._elements[2][0],s=this._elements[2][1],l=this._elements[2][2],c=0;return c=e*i*l+t*o*a+n*r*s-n*i*a-t*r*l-e*o*s,c}invert(){let e=this.determinant(),t=this._elements[0][0],n=this._elements[0][1],r=this._elements[0][2],i=this._elements[1][0],o=this._elements[1][1],a=this._elements[1][2],s=this._elements[2][0],l=this._elements[2][1],c=this._elements[2][2];return this._elements=[[o*c-a*l,r*l-n*c,n*a-r*o],[a*s-i*c,t*c-r*s,r*i-t*a],[i*l-o*s,s*n-t*l,t*o-n*i]],this.multiply(1/e),this}transpose(){const e=Object.create(this._elements);return this._elements=[[e[0][0],e[1][0],e[2][0]],[e[0][1],e[1][1],e[2][1]],[e[0][2],e[1][2],e[2][2]]],this}identity(){return this._elements=[[1,0,0],[0,1,0],[0,0,1]],this}toString(){return"".concat(this._elements.map((e=>e.join("\t"))).join("\n"))}isIdentity(){const e=this._elements;return 1===e[0][0]&&0===e[0][1]&&0===e[0][2]&&0===e[1][0]&&1===e[1][1]&&0===e[1][2]&&0===e[2][0]&&0===e[2][1]&&1===e[2][2]}transformPoint(e){let t,n,r=[e.x,e.y,1],i=this._elements,o=[0,0,0];for(t=0;t<this._elements.length;t++)for(n=0;n<this._elements[t].length;n++)o[t]+=r[n]*i[t][n];return{x:o[0],y:o[1]}}transformPoints(e){let t,n,r,i,o,a=this._elements,s=[];for(i=0;i<e.length;i++){for(t=[e[i].x,e[i].y,1],o=[0,0,0],n=0;n<this._elements.length;n++)for(r=0;r<this._elements[n].length;r++)o[n]+=t[r]*a[n][r];s.push({x:o[0],y:o[1]})}return s}get elements(){const e=this._elements;return[[e[0][0],e[0][1],e[0][2]],[e[1][0],e[1][1],e[1][2]],[e[2][0],e[2][1],e[2][2]]]}}const ON=/(translate|scale|rotate|matrix)\(([0-9,.eE+-\s]+)(?:,|\s?)+\)/g;function NN(e,t){const n=t.args[0]*(Math.PI/180);if(t.args.length>2){const r=t.args[1],i=t.args[2];e.translate(r,i),e.rotate(n),e.translate(-r,-i)}else 1===t.args.length&&e.rotate(n)}function qN(e,t){const n=t.args[0],r=isNaN(t.args[1])?t.args[0]:t.args[1];e.scale(n,r)}function DN(e,t){const n=t.args[0],r=isNaN(t.args[1])?0:t.args[1];e.translate(n,r)}function RN(e,t){t.args.length>=6&&e.transform(...t.args)}function IN(e,t){const n=function(e){let t,n=[];for(;null!==(t=ON.exec(e));){const e=t[2].trim(),r=-1===e.indexOf(",")?e.split(" "):e.split(",");n.push({cmd:t[1],args:r.filter((e=>e.trim().length>0)).map((e=>Number(e)))})}return n}(e);let r;for(let e=0,i=n.length;e<i;e++)r=n[e],"rotate"===r.cmd?NN(t,r):"scale"===r.cmd?qN(t,r):"matrix"===r.cmd?RN(t,r):"translate"===r.cmd&&DN(t,r)}const _N={type:/^\w[\w-]+/,attr:/^\[\w(?:[\w\._-]+)?(?:[!]?=['\"][\w\s*#_-]*['\"])?\]/,universal:/^(\*)/,tag:/^\.(\w+)/},PN={type:(e,t)=>t.filter((t=>{const n=t.type;return!!n&&n.toLowerCase()===e.toLowerCase()})),attr:(e,t,n,r)=>r.filter((r=>{const i=r.attrs[e];if(!t)return void 0!==i;if(void 0===i)return!1;switch(t){case"=":return n===String(i);case"!=":return n!==String(i);default:return!1}})),universal:e=>e,tag:(e,t)=>t.filter((t=>{const n=t.tag;return!!n&&-1!==n.trim().split(/\s+/).indexOf(e.replace(".",""))}))};function LN(e,t){if(!t||!t.length||!e||"function"!=typeof PN[e.type])return[];switch(e.type){case"type":case"tag":return PN[e.type](e.value,t);case"attr":return PN[e.type](e.attribute,e.operator,e.attributeValue,t);case"universal":return PN[e.type](t);default:return[]}}var zN={find:function(e,t){const n=[],r=[];let i,o;if(t.isBranch){let a;i=function(e){const t=[];let n,r,i,o;return e.split(/\s*,\s*/).forEach((e=>{e=e.trim(),n=[];const a=t=>{i=e.match(_N[t]),i&&(o=!0,e=e.slice(i[0].length),r={type:t,value:i[0]},"attr"===t&&(i=i[0].match(/\[(\w[\w\._-]+)?(?:([!]?=)['\"]([\w\s#_-]*)['\"])?\]/),r.attribute=i[1],r.operator=i[2],r.attributeValue=i[3]),n.push(r))};for(;e&&(o=!1,i=e.match(/^\s*([>+~]|\s)\s*/),i&&(o=!0,n.push({type:" ",value:i[0]}),e=e.slice(i[0].length)),Object.keys(_N).forEach(a),n&&n.length&&t.indexOf(n)<0&&t.push(n),o););})),t}(e),o=t.descendants;for(let e=0,t=i.length;e<t;e++){a=i[e];const t=[];let n=o.slice(),s=!1;a.reverse().forEach((e=>{if(" "===e.type)return t.push(n),n=o.slice(),void(s=!1);n=LN(e,n),s=!0})),s&&t.push(n);const l=t[0].filter((e=>{let n,r=e.parent;for(let e=1;e<t.length;e++){for(n=t[e].indexOf(r);r&&n<0;)r=r.parent,n=t[e].indexOf(r);if(n<0)return!1}return!0}));r.push(l)}for(let e=0,t=r.length;e<t;e++)for(let t=0,i=r[e].length;t<i;t++)n.indexOf(r[e][t])<0&&n.push(r[e][t])}return n||[]}};function FN(e,t,n){const r=e.type;let i=e.points();n&&(i=i.every((e=>Array.isArray(e)))?i.map((e=>n.transformPoints(e))):n.transformPoints(i)),function(e,t){for(let n=0,r=e.length;n<r;n++)e[n].x/=t,e[n].y/=t}(i,t);let o=null;if("rect"===r||"bounds"===r)o=ev(i),o.type=r;else if("circle"===r)o=function(e,t){return{cx:e[0].x,cy:e[0].y,r:t}}(i,e.r),o.type=r;else if("line"===r)o=tv(i),o.type=r;else if("polygon"===r||"polyline"===r){o={type:"path",d:ME(i,"polygon"===r)}}else if("geopolygon"===r){let e="";for(let t=0;t<i.length;t++)e+=ME(i[t],!0);o={type:"path",d:e}}return o}class jN{constructor(e){this._bounds=function(){let t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const{x:n,y:r,width:i,height:o}=e.boundingRect?e.boundingRect(t):{x:0,y:0,width:0,height:0};return{x:n,y:r,width:i,height:o}},this._attrs=e.attrs,this._type=e.type,this._data=e.data,this._dpi=e.stage?e.stage.dpi:1,this._collider=()=>function(e,t){if(e.collider){const n=e.modelViewMatrix;return"collection"===e.colliderType?{type:"container",children:e.collider.geometries.map((e=>FN(e,t,n)))}:FN(e.collider,t,n)}return null}(e,this._dpi),this._desc=e.desc,this._tag=e.tag,this._children=()=>e.children.map((e=>new jN(e))),this._parent=()=>e.parent?new jN(e.parent):null,this._cache={elementBoundingRect:null},this._getElementBoundingRect=()=>(!this._cache.elementBoundingRect&&this.element&&(this._cache.elementBoundingRect=this.element.getBoundingClientRect()),this._cache.elementBoundingRect||{left:0,top:0})}get children(){return this._children()}get parent(){return this._parent()}get type(){return this._type}get data(){return this._data}get attrs(){return this._attrs}set element(e){this._cache.elementBoundingRect=null,this._element=e}get element(){return this._element}set key(e){this._key=e}get key(){return this._key}get bounds(){const e=this._bounds();return e.x/=this._dpi,e.y/=this._dpi,e.width/=this._dpi,e.height/=this._dpi,e}get localBounds(){return this._bounds(!1)}boundsRelativeTo(e){const t=typeof e,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1]?this.bounds:this.localBounds,r=this._getElementBoundingRect();let i=r.left,o=r.top;if("object"===t&&null!==e&&"function"==typeof e.getBoundingClientRect){const{left:t=0,top:n=0}=e.getBoundingClientRect();i-=t,o-=n}return n.x+=i,n.y+=o,n}get collider(){return this._collider()}get desc(){return this._desc}get tag(){return this._tag}}function $N(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new jN(...t)}class HN{constructor(e){this._node=$N(e),this._parent=null,this._input=null}get node(){return this._node}set parent(e){this._parent=e}get parent(){return this._parent}set input(e){this._input=e}get input(){return this._input}}function BN(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new HN(...t)}function VN(e,t){const n=e.parent;if(n&&"stage"!==n.type){t.parent=BN(n);const e=n.parent;e&&"stage"!==e.type&&VN(e,t.parent)}}function UN(e,t,n){if(null===e.colliderType)return null;const r=function(e,t){let n={};if(e.modelViewMatrix)if(Array.isArray(t))n=e.inverseModelViewMatrix.transformPoints(t);else if(isNaN(t.r))Array.isArray(t.vertices)?n.vertices=e.inverseModelViewMatrix.transformPoints(t.vertices):n=e.inverseModelViewMatrix.transformPoint(t);else{const r={x:t.cx,y:t.cy};({x:n.cx,y:n.cy}=e.inverseModelViewMatrix.transformPoint(r)),n.r=t.r}else n=t;return Array.isArray(n.vertices)&&(n=n.vertices.every((e=>Array.isArray(e)))?MN(n):bN(n)),n}(e,n);return"frontChild"===e.colliderType?function(e,t,n){for(let r=e.descendants.length-1;r>=0;r--){const i=e.descendants[r];if(null!==i.collider&&i.collider[t](n)){const e=BN(i);return VN(i,e),e}}return null}(e,t,r):function(e,t,n){if(e.collider[t](n)){const t=BN(e);return VN(e,t),t}return null}(e,t,r)}function WN(e,t,n,r){const i=e.length;for(let o=0;o<i;o++){const i=e[o],a=UN(i,t,r);a&&n.push(a),!i.children||a||i.collider||WN(i.children,t,n,r)}}function YN(e,t,n){const r=e.length;for(let i=0;i<r;i++){const r=e[i];if(null!==UN(r,t,n))return!0;if(r.children&&!r.collider)return YN(r.children,t,n)}return!1}function XN(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;let n={};switch(nv(e)){case"circle":return n.cx=e.cx*t,n.cy=e.cy*t,n.r=e.r,["intersectsCircle",n];case"rect":return n=Zy(e).map((e=>OE(e,t))),["intersectsRect",n];case"line":return n=Qy(e).map((e=>OE(e,t))),["intersectsLine",n];case"point":return n=OE(e,t),["containsPoint",n];case"polygon":return n.vertices=e.vertices.map((e=>OE(e,t))),["intersectsPolygon",n];case"geopolygon":return n.vertices=e.vertices.map((e=>e.map((e=>OE(e,t))))),["intersectsGeoPolygon",n];default:return[]}}function GN(e,t){const[n,r]=XN(t,e.dpi),i=[];return n&&(WN([e],n,i,r),function(e,t){for(let n=0,r=t.length;n<r;n++)t[n].input=e}(t,i)),i}function KN(e,t){const[n,r]=XN(t,e.dpi);return YN([e],n,r)}class JN extends pN{constructor(e){super(e),this._stage=null,this._collider={type:null,definition:null,fn:null},this._attrs={},this._node=null}set(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.node=e;const{data:t,desc:n,tag:r,strokeReference:i,fillReference:o}=e;var a,s;a=this.attrs,s=e,Object.keys(wE).forEach((e=>{const t=s[e];void 0!==t&&(a[wE[e]]=t)})),void 0!==t&&(this.data=t),"object"==typeof n&&(this.desc=Hy(!0,{},n)),"string"==typeof r&&(this.tag=r),"string"==typeof i&&(this.strokeReference=i),"string"==typeof o&&(this.fillReference=o)}findShapes(e){return zN.find(e,this).map((e=>$N(e)))}getItemsFrom(e){return GN(this,e)}containsPoint(e){return KN(this,e)}intersectsLine(e){return KN(this,e)}intersectsRect(e){return KN(this,e)}intersectsCircle(e){return KN(this,e)}intersectsPolygon(e){return KN(this,e)}intersectsGeoPolygon(e){return KN(this,e)}resolveLocalTransform(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new AN;void 0!==this.attrs.transform&&IN(this.attrs.transform,e),this.modelViewMatrix=e.clone()}resolveGlobalTransform(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new AN;const t=this.ancestors;if(t.length>0)for(let n=t.length-1;n>=0;n--)t[n].resolveLocalTransform(e),e=t[n].modelViewMatrix;this.resolveLocalTransform(e)}attr(e){return this.attrs[e]}equals(e){const t=this.attrs,n=Object.keys(t),r=e.attrs,i=Object.keys(r);if(n.length!==i.length)return!1;for(let e=0;e<n.length;e++){const i=n[e];if(!Object.hasOwnProperty.call(r,i))return!1;if(t[i]!==r[i])return!1}return super.equals(e)}toJSON(){const e=super.toJSON();return e.attrs=this.attrs,e}get attrs(){return this._attrs}get stage(){return this._parent&&!this._stage?this._stage=this._parent.stage:this._parent||this._stage===this||(this._stage=null),this._stage}set modelViewMatrix(e){this._mvm=e,this._imvm=null}get modelViewMatrix(){return this._mvm}get inverseModelViewMatrix(){return this._imvm=this._imvm?this._imvm:this._mvm.clone().invert(),this._imvm}set node(e){this._node=e}get node(){return this._node}set collider(e){const t=Array.isArray(e)?"collection":e&&e.type;return"string"!=typeof t?(this._collider.type=null,this._collider.definition=null,void(this._collider.fn=null)):null!==this._collider&&this._collider.type===t&&null!==this._collider.fn?(this._collider.fn.set(e),void(this._collider.definition=e)):(this._collider.type=t,void(this._collider.definition=e))}get collider(){if(null!==this._collider.fn)return this._collider.fn;switch(this._collider.type){case"collection":this._collider.fn=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new TN(...t)}(this._collider.definition);break;case"frontChild":return!0;case"bounds":this._collider.fn=CN("rect",this.boundingRect());break;case"line":case"rect":case"circle":case"polygon":case"geopolygon":case"polyline":this._collider.fn=CN(this._collider.type,this._collider.definition);break;default:return null}return this._collider.fn}get colliderType(){return this._collider.type}}class QN extends pN{addChild(e){if(!(e&&e instanceof pN))throw new TypeError("Expecting a Node as argument, but got ".concat(e));if(e===this)throw new Error("Can not add itself as child!");if(e._children&&e._children.length&&this.ancestors.indexOf(e)>=0)throw new Error("Can not add an ancestor as child!");return e._parent&&e._parent!==this&&e._parent.removeChild(e),this._children.push(e),e._parent=this,e._ancestors=null,this}addChildren(e){let t,n=e?e.length:0;for(t=0;t<n;t++)this.addChild(e[t]);return this}removeChild(e){const t=this._children.indexOf(e);return t>=0&&(this._children.splice(t,1),e._parent=null,e._ancestors=null),this}removeChildren(e){let t,n;if(!this._children)return this;if(e)for(n=e.length,t=0;t<n;t++)this.removeChild(e[t]);else for(;this._children.length;)this.removeChild(this._children[0]);return this}}const ZN=QN.prototype;class eq extends JN{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{type:t="container"}=e;super(t),this.set(e)}set(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super.set(e);const{collider:t}=e,n=Hy({type:null},t);this.collider=n,this.__boundingRect={true:null,false:null},this.__bounds={true:null,false:null}}appendChildRect(e,t){if(void 0!==e.bounds){const n=this.__boundingRect[t]||{},[r,,i]=e.bounds(t),{x:o,y:a}=r,{x:s,y:l}=i,c=isNaN(n.width)?s:Math.max(s,n.width+n.x),u=isNaN(n.height)?l:Math.max(l,n.height+n.y);n.x=isNaN(n.x)?o:Math.min(o,n.x),n.y=isNaN(n.y)?a:Math.min(a,n.y),n.width=c-n.x,n.height=u-n.y,this.__boundingRect[t]=n}}boundingRect(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(null!==this.__boundingRect[e])return this.__boundingRect[e];const t=this.children.length;for(let n=0;n<t;n++)this.appendChildRect(this.children[n],e);return this.__boundingRect[e]=Hy({x:0,y:0,width:0,height:0},this.__boundingRect[e]),this.__boundingRect[e]}bounds(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(null!==this.__bounds[e])return this.__bounds[e];const t=this.boundingRect(e);return this.__bounds[e]=[{x:t.x,y:t.y},{x:t.x+t.width,y:t.y},{x:t.x+t.width,y:t.y+t.height},{x:t.x,y:t.y+t.height}],this.__bounds[e]}addChild(e){const t=ZN.addChild.call(this,e);if(this._collider&&"bounds"===this._collider.type){this.appendChildRect(e,!0);const t=Hy({type:"bounds",x:0,y:0,width:0,height:0},this.__boundingRect.true);this.collider=t}return t}addChildren(e){const t=ZN.addChildren.call(this,e),n=e.length;if(this._collider&&"bounds"===this._collider.type&&n>0){for(let t=0;t<n;t++)this.appendChildRect(e[t],!0);const t=Hy({type:"bounds",x:0,y:0,width:0,height:0},this.__boundingRect.true);this.collider=t}return t}removeChild(e){e._stage=null;let t,n=e.descendants,r=n?n.length:0;for(t=0;t<r;t++)n[t]._stage=null;if(ZN.removeChild.call(this,e),this._collider&&"bounds"===this._collider.type){this.__boundingRect={true:null,false:null},this.__bounds={true:null,false:null};const e=Hy(this.boundingRect(!0),{type:"bounds"});this.collider=e}return this}removeChildren(e){if(ZN.removeChildren.call(this,e),this._collider&&"bounds"===this._collider.type){this.__boundingRect={true:null,false:null},this.__bounds={true:null,false:null};const e=Hy(this.boundingRect(!0),{type:"bounds"});this.collider=e}return this}}function tq(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new eq(...t)}class nq extends eq{constructor(e){super("stage"),this._stage=this,this._dpiRatio=e||1}get dpi(){return this._dpiRatio}}const rq=QN.prototype,iq=["x1","x2","y1","y2","id","offset","style"];class oq extends JN{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{type:t="container"}=e;super(t),this.set(e),this._boundingRect={}}set(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super.set(e);const t=this.attrs;let n="";for(let r=0,i=iq.length;r!==i;r++)n=iq[r],void 0!==e[n]&&(t[n]=e[n])}addChild(e){return rq.addChild.call(this,e)}addChildren(e){return rq.addChildren.call(this,e)}removeChild(e){e._stage=null;let t,n=e.descendants,r=n?n.length:0;for(t=0;t<r;t++)n[t]._stage=null;return rq.removeChild.call(this,e),this}removeChildren(e){return rq.removeChildren.call(this,e),this}}function aq(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new oq(...t)}const sq=QN.prototype,lq=["patternUnits","x","y","width","height","id"];class cq extends JN{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{type:t="container"}=e;super(t),this.set(e),this._boundingRect={}}set(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super.set(e);const t=this.attrs;let n="";for(let r=0,i=lq.length;r!==i;r++)n=lq[r],void 0!==e[n]&&(t[n]=e[n])}addChild(e){return sq.addChild.call(this,e)}addChildren(e){return sq.addChildren.call(this,e)}removeChild(e){e._stage=null;let t,n=e.descendants,r=n?n.length:0;for(t=0;t<r;t++)n[t]._stage=null;return sq.removeChild.call(this,e),this}removeChildren(e){return sq.removeChildren.call(this,e),this}}class uq extends JN{constructor(){super("rect"),this.set(...arguments)}set(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{x:t=0,y:n=0,width:r=0,height:i=0,rx:o=0,ry:a=0,collider:s}=e,l=Hy({type:"rect",x:t,y:n,width:r,height:i},s);super.set(e),r>=0?(this.attrs.x=t,this.attrs.width=r):(this.attrs.x=t+r,this.attrs.width=-r),i>=0?(this.attrs.y=n,this.attrs.height=i):(this.attrs.y=n+i,this.attrs.height=-i),o>0&&(this.attrs.rx=o),a>0&&(this.attrs.ry=a),this.collider=l,this.__boundingRect={true:null,false:null},this.__bounds={true:null,false:null}}boundingRect(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(null!==this.__boundingRect[e])return this.__boundingRect[e];const t=Zy(this.attrs),n=e&&this.modelViewMatrix?this.modelViewMatrix.transformPoints(t):t,[r,i,o,a]=Jy(n);return this.__boundingRect[e]={x:r,y:i,width:o-r,height:a-i},this.__boundingRect[e]}bounds(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(null!==this.__bounds[e])return this.__bounds[e];const t=this.boundingRect(e);return this.__bounds[e]=[{x:t.x,y:t.y},{x:t.x+t.width,y:t.y},{x:t.x+t.width,y:t.y+t.height},{x:t.x,y:t.y+t.height}],this.__bounds[e]}}class dq extends JN{constructor(){super("circle"),this.set(...arguments)}set(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{cx:t=0,cy:n=0,r:r=0,collider:i}=e,o=Hy({type:"circle",cx:t,cy:n,r:r},i);super.set(e),this.attrs.cx=t,this.attrs.cy=n,this.attrs.r=r,this.collider=o,this.__boundingRect={true:null,false:null},this.__bounds={true:null,false:null}}boundingRect(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(null!==this.__boundingRect[e])return this.__boundingRect[e];const t=this.bounds(e);return this.__boundingRect[e]={x:t[0].x,y:t[0].y,width:t[2].x-t[0].x,height:t[2].y-t[0].y},this.__boundingRect[e]}bounds(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(null!==this.__bounds[e])return this.__bounds[e];const{cx:t,cy:n,r:r,r:i}=this.attrs,o=t-r,a=n-i;let s=2*r,l=2*i,c=[{x:o,y:a},{x:o+s,y:a},{x:o+s,y:a+l},{x:o,y:a+l}];if(e&&this.modelViewMatrix){c=this.modelViewMatrix.transformPoints(c);const[t,n,r,i]=Jy(c);s=r-t,l=i-n,this.__bounds[e]=[{x:t,y:n},{x:t+s,y:n},{x:t+s,y:n+l},{x:t,y:n+l}]}else this.__bounds[e]=c;return this.__bounds[e]}}class fq extends JN{constructor(){super("line"),this.set(...arguments)}set(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{x1:t=0,y1:n=0,x2:r=0,y2:i=0,collider:o}=e;super.set(e),this.attrs.x1=t,this.attrs.y1=n,this.attrs.x2=r,this.attrs.y2=i;const a={type:"line",x1:t,y1:n,x2:r,y2:i};this.collider=Hy(a,o),this.__boundingRect={true:null,false:null},this.__bounds={true:null,false:null}}boundingRect(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(null!==this.__boundingRect[e])return this.__boundingRect[e];let t=Qy(this.attrs);e&&this.modelViewMatrix&&(t=this.modelViewMatrix.transformPoints(t));const[n,r,i,o]=Jy(t),a=n!==i||r!==o;return this.__boundingRect[e]={x:n,y:r,width:a?Math.max(1,i-n):0,height:a?Math.max(1,o-r):0},this.__boundingRect[e]}bounds(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(null!==this.__bounds[e])return this.__bounds[e];const t=this.boundingRect(e);return this.__bounds[e]=[{x:t.x,y:t.y},{x:t.x+t.width,y:t.y},{x:t.x+t.width,y:t.y+t.height},{x:t.x,y:t.y+t.height}],this.__bounds[e]}}const hq=Math.PI/2;function pq(e,t){const n=Math.atan2(t.y-e.y,t.x-e.x);return n<0?n+2*Math.PI:n}function mq(e,t,n){return{x:e.x+Math.cos(t)*n,y:e.y+Math.sin(t)*n}}const gq={step:function(e){return new eb(e,.5)},stepAfter:function(e){return new eb(e,1)},stepBefore:function(e){return new eb(e,0)},linear:qv,basis:function(e){return new Fv(e)},cardinal:Hv.tension(0),catmullRom:Vv,monotonex:function(e){return new Gv(e)},monotoney:function(e){return new Kv(e)},natural:function(e){return new Qv(e)}};function yq(e){if(e.length<2)return!1;const t=e[0],n=e[e.length-1];return Math.abs(t.x-n.x)<1e-12&&Math.abs(t.y-n.y)<1e-12}class vq extends JN{constructor(){super("path"),this.set(...arguments)}set(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(super.set(e),this.segments=[],this.points=[],e.arcDatum){const t=Ov();t.innerRadius(e.desc.slice.innerRadius),t.outerRadius(e.desc.slice.outerRadius),t.cornerRadius(e.desc.slice.cornerRadius);const n=t(e.arcDatum);this.attrs.d=n}else if(e.points){const{major:t,minor:n,layerObj:r,points:i,stngs:o,generatorType:a}=e,s=Iv(),l=o.coordinates?o.coordinates.defined:null;s[t.p]((e=>e.major*t.size))["".concat(n.p,"1")]((e=>e.minor*n.size))["".concat(n.p,"0")]((e=>e.minor0*n.size)).curve(gq["monotone"===r.curve?"monotone".concat(t.p):r.curve]),l?s.defined((e=>!e.dummy&&"number"==typeof e.minor&&!isNaN(e.minor)&&e.defined)):s.defined((e=>!e.dummy&&"number"==typeof e.minor&&!isNaN(e.minor)));const c=o.connect?i.filter(s.defined()):i,u=("area"===a?s:s[a]())(c);this.attrs.d=u}else e.d&&(this.attrs.d=e.d);if(this.__boundingRect={true:null,false:null},this.__bounds={true:null,false:null},Array.isArray(e.collider)||"object"==typeof e.collider&&void 0!==e.collider.type)this.collider=e.collider;else if(this.attrs.d){if(this.segments=dN(this.attrs.d),this.segments.length>1&&this.segments.every((e=>yq(e))))return void(this.collider=Hy({type:"geopolygon",vertices:this.segments},e.collider));this.segments.forEach((t=>{if(t.length<=1);else if(yq(t))this.collider=Hy({type:"polygon",vertices:t},e.collider);else if("object"==typeof e.collider&&e.collider.visual){const n=this.attrs["stroke-width"]/2;this.collider=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=[],i=[];if("h"===n.forceOrientation){const t=e[0].x<e[1].x?-1:1,n=e[e.length-1].x>e[e.length-2].x?1:-1;e.unshift({x:e[0].x+t,y:e[0].y}),e.push({x:e[e.length-1].x+n,y:e[e.length-1].y})}else if("v"===n.forceOrientation){const t=e[0].y<e[1].y?-1:1,n=e[e.length-1].y>e[e.length-2].y?1:-1;e.unshift({x:e[0].x,y:e[0].y+t}),e.push({x:e[e.length-1].x,y:e[e.length-1].y+n})}const o=e.length-1;for(let n=1;n<o;n++){const a=e[n-1],s=e[n],l=e[n+1],c=pq(s,a),u=pq(s,l),d=(c+u)/2,f=d+Math.PI,h=Math.max(d,f),p=Math.min(d,f),m=c>u;if(1===n){const e=pq(a,s);r.push(mq(a,e-hq,t)),i.unshift(mq(a,e+hq,t))}const g=m?h:p,y=m?p:h;if(r.push(mq(s,g,t)),i.unshift(mq(s,y,t)),n===o-1){const e=pq(l,s);r.push(mq(l,e+hq,t)),i.unshift(mq(l,e-hq,t))}}return{type:"polygon",vertices:[...r,...i]}}(t,n,e.collider)}else this.collider=Hy({type:"polyline",points:t},e.collider)}))}}boundingRect(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(null!==this.__boundingRect[e])return this.__boundingRect[e];this.points.length||(this.segments=this.segments.length?this.segments:dN(this.attrs.d),this.points=function(e){const t=[];let n,r=e.length;for(let i=0;i<r;i++){n=e[i];for(let e=0;e<n.length;e++)t.push(n[e])}return t}(this.segments));const t=e&&this.modelViewMatrix?this.modelViewMatrix.transformPoints(this.points):this.points,[n,r,i,o]=Jy(t);return this.__boundingRect[e]={x:n||0,y:r||0,width:i-n||0,height:o-r||0},this.__boundingRect[e]}bounds(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(null!==this.__bounds[e])return this.__bounds[e];const t=this.boundingRect(e);return this.__bounds[e]=[{x:t.x,y:t.y},{x:t.x+t.width,y:t.y},{x:t.x+t.width,y:t.y+t.height},{x:t.x,y:t.y+t.height}],this.__bounds[e]}}function bq(e){let{data:t,_boundingRect:n,_textBoundsFn:r}=e;return null!=t&&(n||r)}class xq extends JN{constructor(){super("text"),this.set(...arguments)}set(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{x:t=0,y:n=0,dx:r=0,dy:i=0,textBoundsFn:o,text:a,title:s,collider:l,boundingRect:c,ellipsed:u}=e;super.set(e),this.attrs.x=t,this.attrs.y=n,this.attrs.dx=r,this.attrs.dy=i,this.attrs.text=a,void 0!==s&&(this.attrs.title=String(s)),"object"==typeof c?this._textBoundsFn=()=>c:"function"==typeof o&&(this._textBoundsFn=o),"string"==typeof u&&(this.ellipsed=u),this.collider=Hy({type:bq(this)?"bounds":null},l),this.__boundingRect={true:null,false:null},this.__bounds={true:null,false:null}}boundingRect(){let e,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(null!==this.__boundingRect[t])return this.__boundingRect[t];if("function"!=typeof this._textBoundsFn)return{x:0,y:0,width:0,height:0};e=this._textBoundsFn(this.attrs);const n=Zy(e),r=t&&this.modelViewMatrix?this.modelViewMatrix.transformPoints(n):n,[i,o,a,s]=Jy(r);return this.__boundingRect[t]={x:i,y:o,width:a-i,height:s-o},this.__boundingRect[t]}bounds(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(null!==this.__bounds[e])return this.__bounds[e];const t=this.boundingRect(e);return this.__bounds[e]=[{x:t.x,y:t.y},{x:t.x+t.width,y:t.y},{x:t.x+t.width,y:t.y+t.height},{x:t.x,y:t.y+t.height}],this.__bounds[e]}}const Sq=ab();function wq(e,t){return Sq.get(e)(t)}Sq.add("rect",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new uq(...t)})),Sq.add("circle",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new dq(...t)})),Sq.add("text",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new xq(...t)})),Sq.add("line",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new fq(...t)})),Sq.add("path",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new vq(...t)})),Sq.add("stage",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new nq(...t)})),Sq.add("container",tq),Sq.add("defs",tq),Sq.add("linearGradient",aq),Sq.add("radialGradient",aq),Sq.add("stop",aq),Sq.add("pattern",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new cq(...t)}));const Mq=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];const t=[{}];function n(){return t[t.length-1]}return n.save=function(){let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const i=n(),o={};let a="";for(let t=0;t<e.length;t++)a=e[t],void 0!==i[a]&&(o[a]=i[a]);return Hy(o,r),t.push(o),n()},n.restore=function(){t.splice(t.length-1,1)},n}(["stroke","fill","strokeWidth","opacity","fontFamily","fontSize","baseline"]);function Eq(e,t){if(Array.isArray(t))for(let n=0,r=t.length;n<r;n++)t[n](e)}function kq(e,t,n){e.node=n[t],e.index=t}function Cq(e,t,n,r){let i=!1;const o={siblings:e,node:null,index:0};for(let a=0,s=e.length;a<s;a++){if(kq(o,a,e),Eq(o,r.create),i="function"==typeof o.node.disabled?o.node.disabled():o.node.disabled,i)continue;o.node=Mq.save(o.node);const s=wq(o.node.type,o.node);s&&(o.node.transform&&(n.save(),IN(o.node.transform,n)),n.isIdentity()||(s.modelViewMatrix=n.clone()),t.addChild(s),o.node.children&&Cq(o.node.children,s,n,r),o.node.transform&&n.restore()),Mq.restore()}}function Tq(e){let{items:t,stage:n,dpi:r,on:i={}}=e;return n||(n=wq("stage",r)),Cq(t,n,new AN,i),n}function Aq(e,t,n){const{orientation:r,degree:i,stops:o=[]}=n;let a=null;if("radial"===r){const n=t.boundingRect();a=e.createRadialGradient(n.x+n.width/2,n.y+n.height/2,1e-5,n.x+n.width/2,n.y+n.height/2,Math.max(n.width,n.height)/2)}else{const r=CE(i);["x1","x2","y1","y2"].forEach((e=>{e in n&&(r[e]=n[e])}));const o=t.boundingRect();a=e.createLinearGradient(o.x+r.x1*o.width,o.y+r.y1*o.height,o.x+r.x2*o.width,o.y+r.y2*o.height)}for(let e=0,t=o.length;e<t;e++){let t=o[e];a.addColorStop(t.offset,t.color)}return a}function Oq(e,t,n){return t.width=e.width,t.height=e.height,n.save(),n.fillStyle=e.fill,e.shapes.forEach((e=>{if("rect"===e.type)n.rect(e.x,e.y,e.width,e.height)})),n.fill(),n.restore(),n.createPattern(t,"repeat")}function Nq(){let{x:e,y:t,width:n,height:r,scaleRatio:i,margin:o,edgeBleed:a}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const s={x:0,y:0,width:0,height:0,scaleRatio:{x:1,y:1},margin:{left:0,top:0},edgeBleed:{left:0,right:0,top:0,bottom:0,bool:!1}};return s.x=isNaN(e)?s.x:e,s.y=isNaN(t)?s.y:t,s.width=isNaN(n)?s.width:n,s.height=isNaN(r)?s.height:r,void 0!==i&&(s.scaleRatio.x=isNaN(i.x)?s.scaleRatio.x:i.x,s.scaleRatio.y=isNaN(i.y)?s.scaleRatio.y:i.y),void 0!==o&&(s.margin.left=isNaN(o.left)?0:o.left,s.margin.top=isNaN(o.top)?0:o.top),"object"==typeof a&&["left","right","top","bottom"].forEach((e=>{!isNaN(a[e])&&a[e]>0&&(s.edgeBleed[e]=a[e],s.edgeBleed.bool=!0)})),s.computedPhysical={x:Math.round(s.margin.left+(s.x-s.edgeBleed.left)*s.scaleRatio.x),y:Math.round(s.margin.top+(s.y-s.edgeBleed.top)*s.scaleRatio.y),width:Math.round((s.width+s.edgeBleed.left+s.edgeBleed.right)*s.scaleRatio.x),height:Math.round((s.height+s.edgeBleed.top+s.edgeBleed.bottom)*s.scaleRatio.y)},s}function qq(){const e={element:()=>{},root:()=>{},settings:()=>{},appendTo:()=>{},getScene:()=>[],render:()=>!1,itemsAt:()=>[],findShapes:()=>[],clear:()=>{},destory:()=>{},size:()=>{},measureText:oO,textBounds:sO,setKey:t=>{e.element().setAttribute("data-key",t)}};return e}function Dq(e){return t=>{let{node:n}=t;"text"!==n.type||null==n.data||n.textBoundsFn||(n.textBoundsFn=e.textBounds)}}const Rq=200,Iq=200;class _q{constructor(e){this.targetCanvas=e,this.bufferCanvas=e.cloneNode()}updateSize(e){let t,{rect:n,dpiRatio:r,canvasBufferSize:i}=e;t=i?"function"==typeof i?i(n):i:{width:n.computedPhysical.width+2*Rq,height:n.computedPhysical.height+2*Iq},this.bufferCanvas.style.width="".concat(t.width,"px"),this.bufferCanvas.style.height="".concat(t.height,"px"),this.bufferCanvas.width=Math.round(t.width*r),this.bufferCanvas.height=Math.round(t.height*r)}apply(){this.targetCanvas.getContext("2d").drawImage(this.bufferCanvas,0,0)}clear(){this.bufferCanvas.width=this.bufferCanvas.width}getContext(){return this.bufferCanvas.getContext("2d")}}const Pq=ab();function Lq(e){return Array.isArray(e)?e:"string"==typeof e?-1!==e.indexOf(",")?e.split(","):e.split(" "):[]}function zq(e){return("undefined"==typeof window?1:window.devicePixelRatio||1)/(e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1)}function Fq(e,t){t.setTransform(e[0][0],e[1][0],e[0][1],e[1][1],e[0][2],e[1][2])}function jq(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const i=Object.keys(r);for(let i=0,o=n.length;i<o;i++){let o=n[i];const a=o[0],s=o[1],l=o[2];if(a in t.attrs&&!(s in r)&&e[s]!==t.attrs[a]){const n=l?l(t.attrs[a]):t.attrs[a];"function"==typeof e[s]?e[s](n):e[s]=n}}for(let t=0,n=i.length;t<n;t++){const n=i[t];e[n]=r[n]}}function $q(e,t,n,r){for(let i=0,o=e.length;i<o;i++){let o=e[i],a={};t.save(),o.attrs&&(o.attrs.fill||o.attrs.stroke)&&(o.attrs.fill&&"object"==typeof o.attrs.fill&&"gradient"===o.attrs.fill.type?a.fillStyle=Aq(t,o,o.attrs.fill):o.attrs.fill&&"object"==typeof o.attrs.fill&&"pattern"===o.attrs.fill.type&&(a.fillStyle=r.patterns.create(o.attrs.fill)),o.attrs.stroke&&"object"==typeof o.attrs.stroke&&"gradient"===o.attrs.stroke.type?a.strokeStyle=Aq(t,o,o.attrs.stroke):o.attrs.stroke&&"object"==typeof o.attrs.stroke&&"pattern"===o.attrs.stroke.type&&(a.strokeStyle=r.patterns.create(o.attrs.stroke))),jq(t,o,n,a),o.modelViewMatrix&&Fq(o.modelViewMatrix.elements,t),Pq.has(o.type)&&Pq.get(o.type)(o.attrs,{g:t,doFill:"fill"in o.attrs&&"none"!==o.attrs.fill,doStroke:"stroke"in o.attrs&&0!==o.attrs["stroke-width"],ellipsed:o.ellipsed}),o.children&&$q(o.children,t,n,r),t.restore()}}function Hq(){let e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Tq;const r={transform:void 0,canvasBufferSize:void 0,progressive:void 0};let i,o=!1,a=Nq();const s=[["fill","fillStyle"],["stroke","strokeStyle"],["opacity","globalAlpha"],["globalAlpha","globalAlpha"],["stroke-width","lineWidth"],["stroke-linejoin","lineJoin"],["stroke-dasharray","setLineDash",Lq]];let l;const c=qq();return c.element=()=>e,c.root=()=>e,c.settings=e=>(e&&Object.keys(r).forEach((t=>{void 0!==e[t]&&(r[t]=e[t])})),r),c.appendTo=n=>(e||(e=n.ownerDocument.createElement("canvas"),e.style.position="absolute",e.style["-webkit-font-smoothing"]="antialiased",e.style["-moz-osx-font-smoothing"]="antialiased",e.style.pointerEvents="none"),"function"!=typeof r.transform||t||(t=new _q(e)),n.appendChild(e),e),c.getScene=r=>{const i=zq(t&&t.getContext()||e.getContext("2d")),o=a.scaleRatio.x,s=a.scaleRatio.y,l={type:"container",children:r,transform:a.edgeBleed.bool?"translate(".concat(a.edgeBleed.left*i*o,", ").concat(a.edgeBleed.top*i*s,")"):""};return 1===i&&1===o&&1===s||(l.transform+="scale(".concat(i*o,", ").concat(i*s,")")),n({items:[l],dpi:i,on:{create:[KA(c.measureText),Dq(c)]}})},c.render=n=>{if(!e)return!1;l||(l=function(e){const t=e.createElement("canvas"),n=t.getContext("2d");let r={};return{create(e){const i=e.key;return i?(r[i]=r[i]||Oq(e,t,n),r[i]):Oq(e,t,n)},clear(){r={}}}}(e.ownerDocument));const u=t&&t.getContext()||e.getContext("2d"),d=zq(u),f=t&&r.transform();if(f)return e.width=e.width,function(e){let{el:t,dpiRatio:n,transform:r}=e;if("object"==typeof r){const e=[r.horizontalScaling,r.horizontalSkewing,r.verticalSkewing,r.verticalScaling,r.horizontalMoving*n,r.verticalMoving*n];t.getContext("2d").setTransform(...e)}}({el:e,dpiRatio:d,transform:f}),t.apply(),!0;o&&(e.style.left="".concat(a.computedPhysical.x,"px"),e.style.top="".concat(a.computedPhysical.y,"px"),e.style.width="".concat(a.computedPhysical.width,"px"),e.style.height="".concat(a.computedPhysical.height,"px"),e.width=Math.round(a.computedPhysical.width*d),e.height=Math.round(a.computedPhysical.height*d),t&&t.updateSize({rect:a,dpiRatio:d,canvasBufferSize:r.canvasBufferSize}));const h=c.getScene(n),p=!i||!h.equals(i);l.clear();const m=o||p,g="function"==typeof r.progressive&&r.progressive();return m&&(g&&!g.isFirst||c.clear(),$q(h.children,u,s,{patterns:l})),t&&(e.width=e.width,t.apply()),o=!1,g&&!g.isFirst&&h.children.unshift(...i.children),i=h,m},c.itemsAt=e=>i?i.getItemsFrom(e):[],c.findShapes=e=>i?i.findShapes(e):[],c.clear=()=>(e&&(e.width=e.width),t&&t.clear(),i=null,c),c.size=e=>{if(e){const t=Nq(e);JSON.stringify(a)!==JSON.stringify(t)&&(o=!0,a=t)}return a},c.destroy=()=>{e&&(e.parentElement&&e.parentElement.removeChild(e),e=null),t&&(t=null),i=null},c}function Bq(e,t){Pq.add(e,t)}function Vq(e,t){return Math.max(0,Math.min(e,t))}const Uq=new RegExp("[A-Za-zªµºÀ-ÖØ-öø-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͽΆΈ-ϵϷ-҂Ҋ-։ः-हऻऽ-ीॉ-ौॎ-ॐक़-ॡ।-ॿং-হঽ-ীে-ৌৎ-ৡ০-ৱ৴-৺ਃ-ਹਾ-ੀਖ਼-੯ੲ-ੴઃ-હઽ-ીૉ-ૌૐ-ૡ૦-૯ଂ-ହଽ-ାୀେ-ୌୗ-ୡ୦-୷ஃ-ிு-ௌௐ-௲ఁ-ఽు-ౄౘ-ౡ౦-౯౿-ಹಽ-ೋೕ-ೡ೦-ീെ-ൌൎ-ൡ൦-ෆා-ෑෘ-ะา-ำเ-ๆ๏-ະາ-ຳຽ-ໆ໐-༗༚-༴༶༸༾-ཬཿ྅ྈ-ྌ྾-࿅࿇-ာေးျ-ြဿ-ၗၚ-ၝၡ-ၰၵ-ႁႃ-ႄႇ-ႌႎ-ႜ႞-ፚ፠-ᎏᎠ-Ᏼᐁ-ᙿᚁ-ᚚᚠ-ᜑᜠ-ᜱ᜵-ᝑᝠ-ᝰក-ាើ-ៅះ-ៈ។-៚ៜ០-៩᠐-ᢨᢪ-ᤜᤣ-ᤦᤩ-ᤱᤳ-ᤸ᥆-᧚ᨀ-ᨖᨙ-ᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪭ᬄ-ᬳᬵᬻᬽ-ᭁᭃ-᭪᭴-᭼ᮂ-ᮡᮦ-ᮧ᮪-ᯥᯧᯪ-ᯬᯮ᯲-ᰫᰴ-ᰵ᰻-᱿᳓᳡ᳩ-ᳬᳮ-ᶿḀ-ᾼιῂ-ῌῐ-Ίῠ-Ῥῲ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎ-⅏Ⅰ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-ⳤⳫ-ⳮⴀ-⵰ⶀ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ㆺㇰ-㈜㈠-㉏㉠-㉻㉿-㊰㋀-㋋㋐-㍶㍻-㏝㏠-㏾㐀-䶵一-ꒌꓐ-ꘌꘐ-ꙮꚀ-ꛯ꛲-꛷Ꜣ-ꞇ꞉-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠤꠧ꠰-꠷ꡀ-ꡳꢀ-ꣃ꣎-꣙ꣲ-ꤥ꤮-ꥆꥒ-ꥼꦃ-ꦲꦴ-ꦵꦺ-ꦻꦽ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂ-ꯤꯦ-ꯧꯩ-꯬꯰-ﬗA-Za-zヲ-ᅵ]"),Wq=new RegExp("[־׀׃׆א-״߀-ߪߴ-ߵߺ-ࠕࠚࠤࠨ࠰-ࡘ࡞יִײַ-ﬨשׁ-ﭏ]"),Yq=new RegExp("[؈؋؍؛-ي٭-ٯٱ-ەۥ-ۦۮ-ۯۺ-܍ܐܒ-ܯݍ-ޥޱﭐ-ﴽﵐ-﷼ﹰ-ﻼ]");function Xq(e){return Uq.test(e)}function Gq(e){return Wq.test(e)||Yq.test(e)}function Kq(e){let t,n,r=e?e.length:0;for(t=0;t<r;t++){if(n=e[t],Xq(n))return"ltr";if(Gq(n))return"rtl"}return"ltr"}const Jq={start:"end",end:"start",center:"center",middle:"middle"};function Qq(e,t){return"rtl"===t?Jq[e]:e}function Zq(e,t){const n=[];let r;const i=[],o=[],a=[];let s,l;const c=e=>e.id,u=(e,t)=>{let n;return n="object"==typeof e?"id"in e?e.id:t:e,{content:e,id:"".concat(n,"__").concat(e.type||"")}};e.isTree||(e=e.map(u)),t=t.map(u),s=e.map(c),l=t.map(c);for(let e=0,r=t.length;e<r;e++){-1===s.indexOf(t[e].id)?n.push(t[e]):o.push(t[e])}for(let t=0,n=e.length;t<n;t++){-1===l.indexOf(e[t].id)?i.push(e[t]):a.push(e[t])}for(let e=0,t=n.length;e<t;e++)n[e].content.children&&(n[e].diff=Zq([],n[e].content.children),n[e].children=n[e].diff.updatedNew.concat(n[e].diff.added),n[e].children.isTree=!0);for(let e=0,t=o.length;e<t;e++)o[e].diff=Zq(a[e].children||[],o[e].content.children||[]),o[e].object=a[e].object,o[e].children=o[e].diff.items;return r=o.concat(n),n.isTree=!0,i.isTree=!0,o.isTree=!0,a.isTree=!0,r.isTree=!0,{added:n,updatedNew:o,updatedOld:a,removed:i,items:r}}function eD(e,t,n){for(let r=0,i=e.length;r<i;r++)e[r].object=n(e[r].content.type,t)}function tD(e,t){for(let n=0,r=e.length;n<r;n++)null!==e[n].object&&void 0!==e[n].object&&(t(e[n].object),e[n].object=null)}function nD(e,t,n,r){let i;for(let o=0,a=e.length;o<a;o++)i=e[o],null!==i.object&&void 0!==i.object&&(n(i.object,i.content),i.diff&&(eD(i.diff.added,i.object,t),tD(i.diff.removed,r),nD(i.diff.items,t,n,r)))}function rD(e,t,n,r,i,o){const a=Zq(e,t);return eD(a.added,n,r),tD(a.removed,o),nD(a.items,r,i,o),a.items}Bq("rect",(function(e,t){let{g:n,doFill:r,doStroke:i}=t;n.beginPath(),e.rx>0||e.ry>0?function(e,t,n,r,i,o,a){o=Vq(r/2,o>0?o:a),a=Vq(i/2,a>0?a:o),e.moveTo(t,n+a),e.lineTo(t,n+i-a),e.quadraticCurveTo(t,n+i,t+o,n+i),e.lineTo(t+r-o,n+i),e.quadraticCurveTo(t+r,n+i,t+r,n+i-a),e.lineTo(t+r,n+a),e.quadraticCurveTo(t+r,n,t+r-o,n),e.lineTo(t+o,n),e.quadraticCurveTo(t,n,t,n+a)}(n,e.x,e.y,e.width,e.height,e.rx,e.ry):n.rect(e.x,e.y,e.width,e.height),r&&n.fill(),i&&n.stroke()})),Bq("circle",(function(e,t){let{g:n,doFill:r,doStroke:i}=t;n.beginPath(),n.moveTo(e.cx+e.r,e.cy),n.arc(e.cx,e.cy,e.r,0,2*Math.PI,!1),r&&n.fill(),i&&n.stroke()})),Bq("line",(function(e,t){let{g:n,doStroke:r}=t;n.beginPath(),n.moveTo(e.x1,e.y1),n.lineTo(e.x2,e.y2),r&&n.stroke()})),Bq("path",(function(e,t){let{g:n,doStroke:r,doFill:i}=t;const o=new Path2D(e.d);i&&n.fill(o),r&&n.stroke(o)})),Bq("text",(function(e,t){let{g:n,ellipsed:r,doStroke:i}=t;const o=r||JA(e,oO);e["font-weight"]?n.font="".concat(e["font-weight"]," ").concat(e["font-size"]," ").concat(e["font-family"]):n.font="".concat(e["font-size"]," ").concat(e["font-family"]);const a=Kq(e.text);n.canvas.dir!==a&&(n.canvas.dir=a);const s=Qq("middle"===e["text-anchor"]?"center":e["text-anchor"],n.canvas.dir);s&&n.textAlign!==s&&(n.textAlign=s);const l=QA(e);n.fillText(o,e.x+e.dx,e.y+e.dy+l),i&&n.strokeText(o,e.x+e.dx,e.y+e.dy+l)}));const iD="http://www.w3.org/2000/svg",oD=(e,t)=>{if(!e||"string"!=typeof e)throw new Error("Invalid type: ".concat(e));const n=t.ownerDocument.createElementNS(iD,"container"===e?"g":e);return t.appendChild(n),n},aD=e=>{e.parentNode&&e.parentNode.removeChild(e)},sD=(e,t)=>{if((e=>{switch(e.type){case"circle":return!isNaN(e.attrs.cx)&&!isNaN(e.attrs.cy)&&!isNaN(e.attrs.r);case"line":return!(isNaN(e.attrs.x1)||isNaN(e.attrs.y1)||isNaN(e.attrs.x2)||isNaN(e.attrs.y2));case"rect":return!(isNaN(e.attrs.x)||isNaN(e.attrs.y)||isNaN(e.attrs.width)||isNaN(e.attrs.height));case"text":return!isNaN(e.attrs.x)&&!isNaN(e.attrs.y);default:return!0}})(t)){for(const n in t.attrs)if("stroke"===n&&t.strokeReference)e.setAttribute("stroke",t.strokeReference);else if("fill"===n&&t.fillReference)e.setAttribute("fill",t.fillReference);else if("text"===n){e.setAttribute("style","white-space: pre"),e.textContent=t.ellipsed||JA(t.attrs,oO);const n=Kq(t.attrs.text);"rtl"===n&&(e.setAttribute("direction","rtl"),e.setAttribute("dir","rtl"),e.setAttribute("text-anchor",Qq(e.getAttribute("text-anchor"),n)))}else if("text"!==t.type||"dy"!==n&&"dominant-baseline"!==n)if("text"===t.type&&"title"===n&&t.attrs.title){const n=e.ownerDocument.createElementNS(iD,"title");n.textContent=t.attrs.title,e.appendChild(n)}else e.setAttribute(n,t.attrs[n]);else{const r=+e.getAttribute(n)||0;let i=0;i="dominant-baseline"===n?QA(t.attrs):t.attrs[n],e.setAttribute("dy",i+r)}if("string"==typeof t.data||"number"==typeof t.data||"boolean"==typeof t.data)e.setAttribute("data",t.data);else if("object"==typeof t.data&&null!==t.data)for(const n in t.data)"string"!=typeof t.data[n]&&"number"!=typeof t.data[n]&&"boolean"!=typeof t.data[n]||e.setAttribute("data-".concat(n),t.data[n])}};class lD{constructor(e,t,n,r){this.create=e,this.nodeCreator=t,this.nodeMaintainer=n,this.nodeDestroyer=r}render(e,t){return this.create([],e,t,this.nodeCreator,this.nodeMaintainer,this.nodeDestroyer)}}function cD(){return new lD(rD,oD,sD,aD)}function uD(e){let t,n,r,i=0;if(0===(e=JSON.stringify(e)).length)return i;for(t=0,r=e.length;t<r;t++)n=e.charCodeAt(t),i=(i<<5)-i+n,i&=i;return i}function dD(){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:iD,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Tq;const n=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:cD)();let r,i,o,a=!1,s=Nq();const l={transform:void 0},c=qq(),u={type:"defs",children:[]},d=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:uD,n={},r=Date.now();const i={onCreate(i){let o={};i.node&&"object"==typeof i.node.fill&&"pattern"===i.node.fill.type&&i.node.fill.shapes&&(o.fill=i.node.fill),i.node&&"object"==typeof i.node.stroke&&"pattern"===i.node.stroke.type&&i.node.stroke.shapes&&(o.stroke=i.node.stroke),Object.keys(o).forEach((a=>{let s="";const l=o[a],c=t(l),u="picasso-pattern-".concat(r,"-").concat(c);if("undefined"!=typeof window&&(s=window.location.href.split("#")[0]),!n[c]){const t={patternUnits:"userSpaceOnUse",x:0,y:0,width:l.width,height:l.height,type:"pattern",id:u,children:[],fill:l.fill};l.shapes.forEach((e=>{t.children.push(e)})),e.push(t),n[c]=!0}i.node["".concat(a,"Reference")]="url('".concat(s,"#").concat(u,"')")}))},clear(){n={}}};return i}(u.children),f=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:uD,n={},r=Date.now();const i={getOrCreateGradient(){let i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"fill",a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",s=t(i[o]),l="picasso-gradient-".concat(r,"-").concat(s);if(!n[s]){let{orientation:t,degree:r,stops:a=[]}=i[o],c={};void 0===r&&(r=90),"radial"===t?c.type="radialGradient":(c=CE(r),["x1","x2","y1","y2"].forEach((e=>{e in i[o]&&(c[e]=i[o][e])})),c.type="linearGradient"),c.id=l,c.children=a.map((e=>{let{offset:t,color:n,opacity:r}=e;return{type:"stop",offset:"".concat(100*t,"%"),style:"stop-color:".concat(n,";stop-opacity:").concat(void 0!==r?r:1)}})),e.push(c),n[s]=l}return"url('".concat(a,"#").concat(l,"')")},onCreate(e){let t="";"undefined"!=typeof window&&(t=window.location.href.split("#")[0]);const n=e.node;n.fill&&"object"==typeof n.fill&&"gradient"===n.fill.type&&(n.fillReference=i.getOrCreateGradient(n,"fill",t)),n.stroke&&"object"==typeof n.stroke&&"gradient"===n.stroke.type&&(n.strokeReference=i.getOrCreateGradient(n,"stroke",t))},clear(){n={}}};return i}(u.children);return c.element=()=>r,c.root=()=>i,c.settings=e=>(e&&Object.keys(l).forEach((t=>{void 0!==e[t]&&(l[t]=e[t])})),l),c.appendTo=t=>(r||(r=t.ownerDocument.createElementNS(e,"svg"),r.style.position="absolute",r.style["-webkit-font-smoothing"]="antialiased",r.style["-moz-osx-font-smoothing"]="antialiased",r.style.pointerEvents="none",r.setAttribute("xmlns",e),i=t.ownerDocument.createElementNS(e,"g"),i.style.pointerEvents="auto",r.appendChild(i)),t.appendChild(r),r),c.getScene=e=>{const n=s.scaleRatio.x,r=s.scaleRatio.y,i={type:"container",children:Array.isArray(e)?[...e,u]:e,transform:s.edgeBleed.bool?"translate(".concat(s.edgeBleed.left*n,", ").concat(s.edgeBleed.top*r,")"):""};return 1===n&&1===r||(i.transform+="scale(".concat(n,", ").concat(r,")")),t({items:[i],on:{create:[e=>{e.node.fillReference=void 0,e.node.strokeReference=void 0},f.onCreate,d.onCreate,KA(c.measureText),Dq(c)]}})},c.render=e=>{if(!r)return!1;const t="function"==typeof l.transform&&l.transform();if(t){const{horizontalScaling:e,horizontalSkewing:n,verticalSkewing:r,verticalScaling:o,horizontalMoving:a,verticalMoving:s}=t;return i.style.transform="matrix(".concat(e,", ").concat(n,", ").concat(r,", ").concat(o,", ").concat(a,", ").concat(s,")"),!0}i.style.transform="",a&&(r.style.left="".concat(s.computedPhysical.x,"px"),r.style.top="".concat(s.computedPhysical.y,"px"),r.setAttribute("width",s.computedPhysical.width),r.setAttribute("height",s.computedPhysical.height)),f.clear(),d.clear(),u.children.length=0;const h=c.getScene(e),p=!o||!h.equals(o),m=a||p;return m&&(c.clear(),n.render(h.children,i)),a=!1,o=h,m},c.itemsAt=e=>o?o.getItemsFrom(e):[],c.findShapes=e=>o?o.findShapes(e):[],c.clear=()=>{if(!i)return c;o=null;const e=i.cloneNode(!1);return r.replaceChild(e,i),i=e,c},c.destroy=()=>{r&&r.parentNode&&r.parentNode.removeChild(r),r=null,i=null},c.size=e=>{if(e){const t=Nq(e);JSON.stringify(s)!==JSON.stringify(t)&&(a=!0,s=t)}return s},c}var fD,hD,pD,mD,gD,yD,vD,bD={},xD=[],SD=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function wD(e,t){for(var n in t)e[n]=t[n];return e}function MD(e){var t=e.parentNode;t&&t.removeChild(e)}function ED(e,t,n){var r,i,o,a={};for(o in t)"key"==o?r=t[o]:"ref"==o?i=t[o]:a[o]=t[o];if(arguments.length>2&&(a.children=arguments.length>3?fD.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(o in e.defaultProps)void 0===a[o]&&(a[o]=e.defaultProps[o]);return kD(e,a,r,i,null)}function kD(e,t,n,r,i){var o={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==i?++pD:i};return null==i&&null!=hD.vnode&&hD.vnode(o),o}function CD(e){return e.children}function TD(e,t){this.props=e,this.context=t}function AD(e,t){if(null==t)return e.__?AD(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?AD(e):null}function OD(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return OD(e)}}function ND(e){(!e.__d&&(e.__d=!0)&&mD.push(e)&&!qD.__r++||gD!==hD.debounceRendering)&&((gD=hD.debounceRendering)||yD)(qD)}function qD(){var e,t,n,r,i,o,a,s;for(mD.sort(vD);e=mD.shift();)e.__d&&(t=mD.length,r=void 0,i=void 0,a=(o=(n=e).__v).__e,(s=n.__P)&&(r=[],(i=wD({},o)).__v=o.__v+1,jD(s,o,i,n.__n,void 0!==s.ownerSVGElement,null!=o.__h?[a]:null,r,null==a?AD(o):a,o.__h),$D(r,o),o.__e!=a&&OD(o)),mD.length>t&&mD.sort(vD));qD.__r=0}function DD(e,t,n,r,i,o,a,s,l,c){var u,d,f,h,p,m,g,y=r&&r.__k||xD,v=y.length;for(n.__k=[],u=0;u<t.length;u++)if(null!=(h=n.__k[u]=null==(h=t[u])||"boolean"==typeof h||"function"==typeof h?null:"string"==typeof h||"number"==typeof h||"bigint"==typeof h?kD(null,h,null,null,h):Array.isArray(h)?kD(CD,{children:h},null,null,null):h.__b>0?kD(h.type,h.props,h.key,h.ref?h.ref:null,h.__v):h)){if(h.__=n,h.__b=n.__b+1,null===(f=y[u])||f&&h.key==f.key&&h.type===f.type)y[u]=void 0;else for(d=0;d<v;d++){if((f=y[d])&&h.key==f.key&&h.type===f.type){y[d]=void 0;break}f=null}jD(e,h,f=f||bD,i,o,a,s,l,c),p=h.__e,(d=h.ref)&&f.ref!=d&&(g||(g=[]),f.ref&&g.push(f.ref,null,h),g.push(d,h.__c||p,h)),null!=p?(null==m&&(m=p),"function"==typeof h.type&&h.__k===f.__k?h.__d=l=RD(h,l,e):l=ID(e,h,f,y,p,l),"function"==typeof n.type&&(n.__d=l)):l&&f.__e==l&&l.parentNode!=e&&(l=AD(f))}for(n.__e=m,u=v;u--;)null!=y[u]&&("function"==typeof n.type&&null!=y[u].__e&&y[u].__e==n.__d&&(n.__d=_D(r).nextSibling),BD(y[u],y[u]));if(g)for(u=0;u<g.length;u++)HD(g[u],g[++u],g[++u])}function RD(e,t,n){for(var r,i=e.__k,o=0;i&&o<i.length;o++)(r=i[o])&&(r.__=e,t="function"==typeof r.type?RD(r,t,n):ID(n,r,r,i,r.__e,t));return t}function ID(e,t,n,r,i,o){var a,s,l;if(void 0!==t.__d)a=t.__d,t.__d=void 0;else if(null==n||i!=o||null==i.parentNode)e:if(null==o||o.parentNode!==e)e.appendChild(i),a=null;else{for(s=o,l=0;(s=s.nextSibling)&&l<r.length;l+=1)if(s==i)break e;e.insertBefore(i,o),a=o}return void 0!==a?a:i.nextSibling}function _D(e){var t,n,r;if(null==e.type||"string"==typeof e.type)return e.__e;if(e.__k)for(t=e.__k.length-1;t>=0;t--)if((n=e.__k[t])&&(r=_D(n)))return r;return null}function PD(e,t,n){"-"===t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||SD.test(t)?n:n+"px"}function LD(e,t,n,r,i){var o;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||PD(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||PD(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])o=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=n,n?r||e.addEventListener(t,o?FD:zD,o):e.removeEventListener(t,o?FD:zD,o);else if("dangerouslySetInnerHTML"!==t){if(i)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!==t&&"height"!==t&&"href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null==n||!1===n&&"-"!==t[4]?e.removeAttribute(t):e.setAttribute(t,n))}}function zD(e){return this.l[e.type+!1](hD.event?hD.event(e):e)}function FD(e){return this.l[e.type+!0](hD.event?hD.event(e):e)}function jD(e,t,n,r,i,o,a,s,l){var c,u,d,f,h,p,m,g,y,v,b,x,S,w,M,E=t.type;if(void 0!==t.constructor)return null;null!=n.__h&&(l=n.__h,s=t.__e=n.__e,t.__h=null,o=[s]),(c=hD.__b)&&c(t);try{e:if("function"==typeof E){if(g=t.props,y=(c=E.contextType)&&r[c.__c],v=c?y?y.props.value:c.__:r,n.__c?m=(u=t.__c=n.__c).__=u.__E:("prototype"in E&&E.prototype.render?t.__c=u=new E(g,v):(t.__c=u=new TD(g,v),u.constructor=E,u.render=VD),y&&y.sub(u),u.props=g,u.state||(u.state={}),u.context=v,u.__n=r,d=u.__d=!0,u.__h=[],u._sb=[]),null==u.__s&&(u.__s=u.state),null!=E.getDerivedStateFromProps&&(u.__s==u.state&&(u.__s=wD({},u.__s)),wD(u.__s,E.getDerivedStateFromProps(g,u.__s))),f=u.props,h=u.state,u.__v=t,d)null==E.getDerivedStateFromProps&&null!=u.componentWillMount&&u.componentWillMount(),null!=u.componentDidMount&&u.__h.push(u.componentDidMount);else{if(null==E.getDerivedStateFromProps&&g!==f&&null!=u.componentWillReceiveProps&&u.componentWillReceiveProps(g,v),!u.__e&&null!=u.shouldComponentUpdate&&!1===u.shouldComponentUpdate(g,u.__s,v)||t.__v===n.__v){for(t.__v!==n.__v&&(u.props=g,u.state=u.__s,u.__d=!1),u.__e=!1,t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),b=0;b<u._sb.length;b++)u.__h.push(u._sb[b]);u._sb=[],u.__h.length&&a.push(u);break e}null!=u.componentWillUpdate&&u.componentWillUpdate(g,u.__s,v),null!=u.componentDidUpdate&&u.__h.push((function(){u.componentDidUpdate(f,h,p)}))}if(u.context=v,u.props=g,u.__P=e,x=hD.__r,S=0,"prototype"in E&&E.prototype.render){for(u.state=u.__s,u.__d=!1,x&&x(t),c=u.render(u.props,u.state,u.context),w=0;w<u._sb.length;w++)u.__h.push(u._sb[w]);u._sb=[]}else do{u.__d=!1,x&&x(t),c=u.render(u.props,u.state,u.context),u.state=u.__s}while(u.__d&&++S<25);u.state=u.__s,null!=u.getChildContext&&(r=wD(wD({},r),u.getChildContext())),d||null==u.getSnapshotBeforeUpdate||(p=u.getSnapshotBeforeUpdate(f,h)),M=null!=c&&c.type===CD&&null==c.key?c.props.children:c,DD(e,Array.isArray(M)?M:[M],t,n,r,i,o,a,s,l),u.base=t.__e,t.__h=null,u.__h.length&&a.push(u),m&&(u.__E=u.__=null),u.__e=!1}else null==o&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=function(e,t,n,r,i,o,a,s){var l,c,u,d=n.props,f=t.props,h=t.type,p=0;if("svg"===h&&(i=!0),null!=o)for(;p<o.length;p++)if((l=o[p])&&"setAttribute"in l==!!h&&(h?l.localName===h:3===l.nodeType)){e=l,o[p]=null;break}if(null==e){if(null===h)return document.createTextNode(f);e=i?document.createElementNS("http://www.w3.org/2000/svg",h):document.createElement(h,f.is&&f),o=null,s=!1}if(null===h)d===f||s&&e.data===f||(e.data=f);else{if(o=o&&fD.call(e.childNodes),c=(d=n.props||bD).dangerouslySetInnerHTML,u=f.dangerouslySetInnerHTML,!s){if(null!=o)for(d={},p=0;p<e.attributes.length;p++)d[e.attributes[p].name]=e.attributes[p].value;(u||c)&&(u&&(c&&u.__html==c.__html||u.__html===e.innerHTML)||(e.innerHTML=u&&u.__html||""))}if(function(e,t,n,r,i){var o;for(o in n)"children"===o||"key"===o||o in t||LD(e,o,null,n[o],r);for(o in t)i&&"function"!=typeof t[o]||"children"===o||"key"===o||"value"===o||"checked"===o||n[o]===t[o]||LD(e,o,t[o],n[o],r)}(e,f,d,i,s),u)t.__k=[];else if(p=t.props.children,DD(e,Array.isArray(p)?p:[p],t,n,r,i&&"foreignObject"!==h,o,a,o?o[0]:n.__k&&AD(n,0),s),null!=o)for(p=o.length;p--;)null!=o[p]&&MD(o[p]);s||("value"in f&&void 0!==(p=f.value)&&(p!==e.value||"progress"===h&&!p||"option"===h&&p!==d.value)&&LD(e,"value",p,d.value,!1),"checked"in f&&void 0!==(p=f.checked)&&p!==e.checked&&LD(e,"checked",p,d.checked,!1))}return e}(n.__e,t,n,r,i,o,a,l);(c=hD.diffed)&&c(t)}catch(e){t.__v=null,(l||null!=o)&&(t.__e=s,t.__h=!!l,o[o.indexOf(s)]=null),hD.__e(e,t,n)}}function $D(e,t){hD.__c&&hD.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){hD.__e(e,t.__v)}}))}function HD(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){hD.__e(e,n)}}function BD(e,t,n){var r,i;if(hD.unmount&&hD.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||HD(r,null,t)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){hD.__e(e,t)}r.base=r.__P=null,e.__c=void 0}if(r=e.__k)for(i=0;i<r.length;i++)r[i]&&BD(r[i],t,n||"function"!=typeof e.type);n||null==e.__e||MD(e.__e),e.__=e.__e=e.__d=void 0}function VD(e,t,n){return this.constructor(e,n)}function UD(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{createElement:t=document.createElement.bind(document)}=e;let n,r,i=Nq();const o={transform:void 0},a=qq();return a.element=()=>n,a.root=()=>n,a.settings=e=>(e&&Object.keys(o).forEach((t=>{void 0!==e[t]&&(o[t]=e[t])})),o),a.appendTo=e=>(n||(n=t("div"),n.style.position="absolute",n.style["-webkit-font-smoothing"]="antialiased",n.style["-moz-osx-font-smoothing"]="antialiased",n.style.pointerEvents="none"),e.appendChild(n),n),a.render=e=>{if(!n)return!1;const t="function"==typeof o.transform&&o.transform();if(t){const{horizontalScaling:e,horizontalSkewing:r,verticalSkewing:i,verticalScaling:o,horizontalMoving:a,verticalMoving:s}=t;return n.style.transform="matrix(".concat(e,", ").concat(r,", ").concat(i,", ").concat(o,", ").concat(a,", ").concat(s,")"),!0}let a;return n.style.transform="",n.style.left="".concat(i.computedPhysical.x,"px"),n.style.top="".concat(i.computedPhysical.y,"px"),n.style.width="".concat(i.computedPhysical.width,"px"),n.style.height="".concat(i.computedPhysical.height,"px"),a=Array.isArray(e)?ED("div",null,e):e,r=function(e,t,n){var r,i,o;hD.__&&hD.__(e,t),i=(r="function"==typeof n)?null:n&&n.__k||t.__k,o=[],jD(t,e=(!r&&n||t).__k=ED(CD,null,[e]),i||bD,bD,void 0!==t.ownerSVGElement,!r&&n?[n]:i?null:t.firstChild?fD.call(t.childNodes):null,o,!r&&n?n:i?i.__e:t.firstChild,r),$D(o,e)}(a,n,r),!0},a.renderArgs=[ED],a.clear=()=>{if(n){let e=n.firstChild;for(;e;)n.removeChild(e),e=n.firstChild;r=null}return a},a.destroy=()=>{n&&n.parentElement&&n.parentElement.removeChild(n),n=null,r=null},a.size=e=>(e&&(i=Nq(e)),i),a}fD=xD.slice,hD={__e:function(e,t,n,r){for(var i,o,a;t=t.__;)if((i=t.__c)&&!i.__)try{if((o=i.constructor)&&null!=o.getDerivedStateFromError&&(i.setState(o.getDerivedStateFromError(e)),a=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(e,r||{}),a=i.__d),a)return i.__E=i}catch(t){e=t}throw e}},pD=0,TD.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=wD({},this.state),"function"==typeof e&&(e=e(wD({},n),this.props)),e&&wD(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),ND(this))},TD.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),ND(this))},TD.prototype.render=CD,mD=[],yD="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,vD=function(e,t){return e.__v.__b-t.__v.__b},qD.__r=0;var WD=[function(e){e.renderer("svg",dD)},function(e){e.renderer("canvas",Hq)},function(e){e.renderer("dom",UD)}];const YD={OFF:0,ERROR:1,WARN:2,INFO:3,DEBUG:4};const XD=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=function(){let{level:e=YD.OFF,pipe:t=console}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e;const r={[YD.OFF]:()=>{},[YD.ERROR]:function(){return t.error(...arguments)},[YD.WARN]:function(){return t.warn(...arguments)},[YD.INFO]:function(){return t.info(...arguments)},[YD.DEBUG]:function(){return t.log(...arguments)}},i=function(e){if(e&&!(n<e)){for(var t=arguments.length,i=new Array(t>1?t-1:0),o=1;o<t;o++)i[o-1]=arguments[o];(r[e]||r[YD.DEBUG])(...i)}};return{log:i,error:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return i(YD.ERROR,...t)},warn:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return i(YD.WARN,...t)},info:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return i(YD.INFO,...t)},debug:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return i(YD.DEBUG,...t)},level:e=>("number"==typeof e&&(n=e),n),LOG_LEVEL:YD}}(t.logger),i={component:ab(n.component,"component",r),data:ab(n.data,"data",r),formatter:ab(n.formatter,"formatter",r),interaction:ab(n.interaction,"interaction",r),renderer:Jk(n.renderer),scale:ab(n.scale,"scale",r),symbol:ab(n.symbol,"symbol",r),logger:r};function o(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e({palettes:t.palettes.concat(n.palettes||[]),style:Hy({},t.style,n.style),logger:n.logger||t.logger,renderer:n.renderer||t.renderer},i)}return t.renderer&&t.renderer.prio&&i.renderer.default(t.renderer.prio[0]),o.use=function(e){return function(e){e(arguments.length>2?arguments[2]:void 0,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})}(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i)},o.chart=e=>Kk(e,{registries:i,logger:r,style:t.style,palettes:t.palettes}),o.config=()=>t,Object.keys(i).forEach((e=>{o[e]=i[e]})),o.version=By,o}({renderer:{prio:["svg","canvas"]},logger:{level:0},style:{"$font-family":"'Source Sans Pro', Arial, sans-serif","$font-size":"12px","$line-height":"16px","$font-size--l":"16px","$font-weight":"normal","$gray-100":"#ffffff","$gray-98":"#f9f9f9","$gray-95":"#f2f2f2","$gray-90":"#e6e6e6","$gray-35":"#595959","$gray-30":"#4d4d4d","$gray-25":"#404040","$gray-20":"#333333","$border-95":"rgba(255, 255, 255, 0.05)","$border-90":"rgba(255, 255, 255, 0.1)","$border-80":"rgba(255, 255, 255, 0.2)","$border-20":"rgba(0, 0, 0, 0.2)","$border-10":"rgba(0, 0, 0, 0.1)","$border-5":"rgba(0, 0, 0, 0.05)","$primary-blue":"#3F8AB3","$primary-green":"#6CB33F","$primary-red":"#DC423F","$primary-orange":"#EF960F","$spacing--s":4,$spacing:8,"$spacing--l":12,"$font-color":"$gray-35","$font-color--inverted":"$gray-90","$guide-color":"$gray-90","$guide-color--inverted":"$gray-35",$border:"$border-80","$border--inverted":"$border-10",$shape:{fill:"$primary-blue",strokeWidth:1,stroke:"$border"},"$shape-outline":{stroke:"$primary-blue",strokeWidth:2},"$shape-guide":{stroke:"$guide-color",strokeWidth:1},"$shape-guide--inverted":{"@extend":"$shape-guide",stroke:"$guide-color--inverted"},$label:{fontSize:"$font-size",fontFamily:"$font-family",fill:"$font-color"},"$label--inverted":{$extend:"$label",fill:"$font-color--inverted"},"$label-overlay":{fontSize:"$font-size--l",fontFamily:"$font-family",fill:"$gray-100",color:"$font-color",stroke:"$guide-color--inverted",strokeWidth:1,borderRadius:4},$title:{"@extend":"$label",fontSize:"$font-size--l",fontWeight:"$font-weight",stroke:"$guide-color--inverted",strokeWidth:0},"$guide-line":{strokeWidth:1,stroke:"$guide-color"},"$guide-line--minor":{strokeWidth:1,stroke:"$gray-95"},"$padding--s":{left:"$spacing--s",right:"$spacing--s",top:"$spacing--s",bottom:"$spacing--s"},$padding:{left:"$spacing",right:"$spacing",top:"$spacing",bottom:"$spacing"},"$selection-area-target":{fill:"$primary-green",strokeWidth:0,opacity:.2}},palettes:[{key:"categorical",colors:[["#a54343","#d76c6c","#ec983d","#ecc43d","#f9ec86","#cbe989","#70ba6e","#578b60","#79d69f","#26a0a7","#138185","#65d3da"]]},{key:"diverging",colors:[["#3d52a1","#3a89c9","#77b7e5","#b4ddf7","#e6f5fe","#ffe3aa","#f9bd7e","#ed875e","#d24d3e","#ae1c3e"]]},{key:"sequential",colors:[["rgb(180,221,212)","rgb(34, 83, 90)"]]}]},{component:Qk,data:rC,formatter:NS,interaction:iC,renderer:Jk(),scale:DM,symbol:zE});function GD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function KD(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?GD(Object(n),!0).forEach((function(t){QD(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):GD(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function JD(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function QD(e,t,n){return(t=JD(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}hN.forEach(XD.use),WD.forEach(XD.use),[].forEach(XD.use);var ZD=Object.prototype.hasOwnProperty,eR=Object.prototype.toString,tR=Object.defineProperty,nR=Object.getOwnPropertyDescriptor,rR=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===eR.call(e)},iR=function(e){if(!e||"[object Object]"!==eR.call(e))return!1;var t,n=ZD.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&ZD.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||ZD.call(e,t)},oR=function(e,t){tR&&"__proto__"===t.name?tR(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},aR=function(e,t){if("__proto__"===t){if(!ZD.call(e,t))return;if(nR)return nR(e,t).value}return e[t]},sR=function e(){var t,n,r,i,o,a,s=arguments[0],l=1,c=arguments.length,u=!1;for("boolean"==typeof s&&(u=s,s=arguments[1]||{},l=2),(null==s||"object"!=typeof s&&"function"!=typeof s)&&(s={});l<c;++l)if(null!=(t=arguments[l]))for(n in t)r=aR(s,n),s!==(i=aR(t,n))&&(u&&i&&(iR(i)||(o=rR(i)))?(o?(o=!1,a=r&&rR(r)?r:[]):a=r&&iR(r)?r:{},oR(s,{name:n,newValue:e(u,a,i)})):void 0!==i&&oR(s,{name:n,newValue:i}));return s};function lR(e,t,n,r){if(!e)return-1;const i=n.cache,o=e.origin?e.origin():null;o&&(e=o);let a=i.fields.indexOf(e),s=-1,l=-1;if(-1===a)for(let t=0;t<i.wrappedFields.length;t++)if(l=i.wrappedFields[t].attrDims.map((e=>e.instance)).indexOf(e),s=i.wrappedFields[t].attrExps.map((e=>e.instance)).indexOf(e),-1!==l||-1!==s){a=t;break}if(Array.isArray(r)&&r.some(((e,t)=>e!==t))){const e=r.indexOf(a);-1!==e&&(a=e)}return a-=t.qArea.qLeft,a<0||a>=t.qArea.qWidth?-1:l>=0?e=>e[a].qAttrDims.qValues[l]:s>=0?e=>e[a].qAttrExps.qValues[s]:e=>e[a]}function cR(e,t,n){let{key:r}=n;const i={value:"function"==typeof e.value?e.value(t):void 0!==e.value?e.value:t};return i.label="function"==typeof e.label?e.label(t):void 0!==e.label?String(e.label):String(i.value),e.field&&(i.source={key:r,field:e.field.key()}),i}function uR(e){let{cache:t,f:n,mainCell:r,p:i,prop:o,page:a,rowIdx:s,row:l,sourceKey:c,target:u,targetProp:d,columnOrder:f}=e,h=r;if(i.field&&i.field!==n){const e=lR(i.field,a,{cache:t},f);if(-1===e)return;h=sR({qRow:s},e(l))}u[d]=cR(i,h,{key:c})}function dR(e,t,n,r){const i=Array.isArray(e)?e:[e];let o=[];for(let e=0;e<i.length;e++)if(void 0!==i[e].field){const a=t.raw(),s=t.key(),l="object"==typeof i[e].field?i[e].field:t.field(i[e].field),{props:c,main:u}=r.normalizeConfig(i[e],t),d=Object.keys(c),f=!!i[e].trackBy,h=typeof i[e].trackBy,p={},m=[],g=[];for(let t=0;t<a.qDataPages.length;t++){const o=lR(l,a.qDataPages[t],{cache:n},a.qColumnOrder);if(-1!==o)for(let y=0;y<a.qDataPages[t].qMatrix.length;y++){const v=a.qDataPages[t].qArea.qTop+y,b=sR({qRow:v},o(a.qDataPages[t].qMatrix[y])),x=cR(u,b,{key:s});if(!(u.filter&&!u.filter(b))){for(let e=0;e<d.length;e++){const r=c[d[e]];let i=r.fields||[r];r.fields&&(x[d[e]]=[]);for(let o=0;o<i.length;o++)uR({cache:n,f:l,mainCell:b,p:i[o],prop:d[e],props:c,page:a.qDataPages[t],rowIdx:v,row:a.qDataPages[t].qMatrix[y],sourceKey:s,target:r.fields?x[d[e]]:x,targetProp:r.fields?o:d[e],columnOrder:a.qColumnOrder});if(r.fields){const t=x[d[e]].map((e=>e.value)),n=x[d[e]].map((e=>e.label));x[d[e]]={value:"function"==typeof r.value?r.value(t):void 0!==r.value?r.value:t,label:"function"==typeof r.label?r.label(n):void 0!==r.label?String(r.label):String(x[d[e]].value)}}}f&&r.track({cfg:i[e],itemData:b,obj:x,target:m,tracker:p,trackType:h}),g.push(x)}}}const y=f?r.collect(m,{main:u,propsArr:d,props:c}):g;o=[...o,...y]}return o}function fR(e){var t=0,n=e.children,r=n&&n.length;if(r)for(;--r>=0;)t+=n[r].value;else t=1;e.value=t}function hR(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=mR)):void 0===t&&(t=pR);for(var n,r,i,o,a,s=new vR(e),l=[s];n=l.pop();)if((i=t(n.data))&&(a=(i=Array.from(i)).length))for(n.children=i,o=a-1;o>=0;--o)l.push(r=i[o]=new vR(i[o])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(yR)}function pR(e){return e.children}function mR(e){return Array.isArray(e)?e[1]:null}function gR(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function yR(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function vR(e){this.data=e,this.depth=this.height=0,this.parent=null}function bR(e){return null==e?null:function(e){if("function"!=typeof e)throw new Error;return e}(e)}vR.prototype=hR.prototype={constructor:vR,count:function(){return this.eachAfter(fR)},each:function(e,t){let n=-1;for(const r of this)e.call(t,r,++n,this);return this},eachAfter:function(e,t){for(var n,r,i,o=this,a=[o],s=[],l=-1;o=a.pop();)if(s.push(o),n=o.children)for(r=0,i=n.length;r<i;++r)a.push(n[r]);for(;o=s.pop();)e.call(t,o,++l,this);return this},eachBefore:function(e,t){for(var n,r,i=this,o=[i],a=-1;i=o.pop();)if(e.call(t,i,++a,this),n=i.children)for(r=n.length-1;r>=0;--r)o.push(n[r]);return this},find:function(e,t){let n=-1;for(const r of this)if(e.call(t,r,++n,this))return r},sum:function(e){return this.eachAfter((function(t){for(var n=+e(t.data)||0,r=t.children,i=r&&r.length;--i>=0;)n+=r[i].value;t.value=n}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),i=null;e=n.pop(),t=r.pop();for(;e===t;)i=e,e=n.pop(),t=r.pop();return i}(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var i=r.length;e!==n;)r.splice(i,0,e),e=e.parent;return r},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore((function(t){t.children||e.push(t)})),e},links:function(){var e=this,t=[];return e.each((function(n){n!==e&&t.push({source:n.parent,target:n})})),t},copy:function(){return hR(this).eachBefore(gR)},[Symbol.iterator]:function*(){var e,t,n,r,i=this,o=[i];do{for(e=o.reverse(),o=[];i=e.pop();)if(yield i,t=i.children)for(n=0,r=t.length;n<r;++n)o.push(t[n])}while(o.length)}};var xR={depth:-1},SR={},wR={};function MR(e){return e.id}function ER(e){return e.parentId}function kR(){var e,t=MR,n=ER;function r(r){var i,o,a,s,l,c,u,d,f=Array.from(r),h=t,p=n,m=new Map;if(null!=e){const t=f.map(((t,n)=>function(e){e=`${e}`;let t=e.length;TR(e,t-1)&&!TR(e,t-2)&&(e=e.slice(0,-1));return"/"===e[0]?e:`/${e}`}(e(t,n,r)))),n=t.map(CR),i=new Set(t).add("");for(const e of n)i.has(e)||(i.add(e),t.push(e),n.push(CR(e)),f.push(wR));h=(e,n)=>t[n],p=(e,t)=>n[t]}for(a=0,i=f.length;a<i;++a)o=f[a],c=f[a]=new vR(o),null!=(u=h(o,a,r))&&(u+="")&&(d=c.id=u,m.set(d,m.has(d)?SR:c)),null!=(u=p(o,a,r))&&(u+="")&&(c.parent=u);for(a=0;a<i;++a)if(u=(c=f[a]).parent){if(!(l=m.get(u)))throw new Error("missing: "+u);if(l===SR)throw new Error("ambiguous: "+u);l.children?l.children.push(c):l.children=[c],c.parent=l}else{if(s)throw new Error("multiple roots");s=c}if(!s)throw new Error("no root");if(null!=e){for(;s.data===wR&&1===s.children.length;)s=s.children[0],--i;for(let e=f.length-1;e>=0&&(c=f[e]).data===wR;--e)c.data=null}if(s.parent=xR,s.eachBefore((function(e){e.depth=e.parent.depth+1,--i})).eachBefore(yR),s.parent=null,i>0)throw new Error("cycle");return s}return r.id=function(e){return arguments.length?(t=bR(e),r):t},r.parentId=function(e){return arguments.length?(n=bR(e),r):n},r.path=function(t){return arguments.length?(e=bR(t),r):e},r}function CR(e){let t=e.length;if(t<2)return"";for(;--t>1&&!TR(e,t););return e.slice(0,t)}function TR(e,t){if("/"===e[t]){let n=0;for(;t>0&&"\\"===e[--t];)++n;if(0==(1&n))return!0}return!1}function AR(e,t){"/"===e.charAt(0)&&(e=e.substring(1));const n=e.split("/");let r,i=t;for(let e=0;e<n.length;e++){if("*"===n[e]&&Array.isArray(i)){const t=[];r=n.slice(e+1).join("/");for(let e=0;e<i.length;e++){let n=AR(r,i[e]);Array.isArray(n)?t.push(...n):t.push(n)}return t}if(!n[e]&&Array.isArray(i)){const t=new Array(i.length);r=n.slice(e+1).join("/");for(let e=0;e<i.length;e++)t[e]=AR(r,i[e]);return t}n[e]in i&&(i=i[n[e]])}return i}function OR(e,t,n){let r=[];if(!e||!e.length)return r;if(t<=0){const t=n>=0?[e[n]]:e;r=[...r,...t]}else for(let i=0;i<e.length;i++)e[i].children&&e[i].children.length&&(r=[...r,...OR(e[i].children,t-1,n)]);return r}function NR(e,t,n){if(e===t)return e=>e;if(e>t){const n=Math.max(0,Math.min(100,e-t));return e=>{let t=e;for(let e=0;e<n;++e)t=t.parent;return t}}if(t>e){const r=Math.max(0,Math.min(100,t-e));return e=>OR(e.children,r-1,n)}return!1}const qR=/^qDimensionInfo(?:\/(\d+))?/,DR=/^\/?qMeasureInfo\/(\d+)/,RR=/\/qAttrExprInfo\/(\d+)/,IR=/\/qAttrDimInfo\/(\d+)/;function _R(e){const t=e.qColumnOrder&&e.qColumnOrder.length?e.qColumnOrder:e.qDimensionInfo.map(((e,t)=>t));return t.filter((t=>t<e.qDimensionInfo.length))}function PR(e,t){let{cube:n}=t;if(!e)return-1;let r=e.origin&&e.origin()?e.origin().key():e.key(),i=!1,o=-1,a=-1,s=-1,l=-1,c=-1,u=-1,d=r;const f=n.qEffectiveInterColumnSortOrder,h=_R(n);return qR.test(d)&&(i=!0,o=+qR.exec(d)[1],d=r.replace(qR,"")),DR.test(d)&&("K"===n.qMode?c=+DR.exec(d)[1]:f&&-1!==f.indexOf(-1)?(c=+DR.exec(d)[1],u=0):u=+DR.exec(d)[1],d=d.replace(DR,"")),d&&(IR.exec(d)?s=+IR.exec(d)[1]:RR.exec(d)&&(a=+RR.exec(d)[1])),l=i?"S"===n.qMode?h[o]:f?f.indexOf(o):o:f&&-1!==f.indexOf(-1)?f.indexOf(-1):n.qDimensionInfo.length-("K"===n.qMode?0:1),{fieldDepth:l+1,pseudoMeasureIndex:c,measureIdx:u,attrDimIdx:s,attrIdx:a}}function LR(e,t){let n,r,i=NR(e.fieldDepth,t.fieldDepth,t.pseudoMeasureIndex);return n=t.measureIdx>=0?e=>e.data.qValues[t.measureIdx]:e=>e.data,t.attrDimIdx>=0?r=e=>{var n;return null==e||null===(n=e.qAttrDims)||void 0===n?void 0:n.qValues[t.attrDimIdx]}:t.attrIdx>=0&&(r=e=>{var n;return null==e||null===(n=e.qAttrExps)||void 0===n?void 0:n.qValues[t.attrIdx]}),{nodeFn:i,attrFn:r,valueFn:n}}function zR(e,t,n){let{key:r}=n;const i={value:"function"==typeof e.value?e.value(t):void 0!==e.value?e.value:t};return i.label="function"==typeof e.label?e.label(t):void 0!==e.label?String(e.label):String(i.value),e.field&&(i.source={key:r,field:e.field.key()}),i}function FR(e){let{propsArr:t,props:n,item:r,itemData:i,ret:o,sourceKey:a}=e;for(let e=0;e<t.length;e++){const s=n[t[e]],l=s.fields||[s];let c,u;s.fields&&(c=[],u=[]);for(let n=0;n<l.length;n++){const d=l[n];let f,h,p,m,g,y;if("primitive"===d.type?(p=d.value,y=String(d.value)):("function"==typeof d.value&&(f=e=>d.value(e,r)),"function"==typeof d.label&&(h=e=>d.label(e,r)),d.accessor?(m=d.accessor(r),Array.isArray(m)?(g=m.map(d.valueAccessor),d.attrAccessor&&(g=g.map(d.attrAccessor)),f&&(p=g.map(f),f=null),h&&(y=g.map(h),h=null),p=d.reduce?d.reduce(p):p,y=d.reduceLabel?d.reduceLabel(y,p):String(p)):(p=d.attrAccessor?d.attrAccessor(d.valueAccessor(m)):d.valueAccessor(m),y=p)):(p=i,y=i)),s.fields){const e=f?f(p):p;c.push(e),u.push(h&&null!=y?h(y):null!=y?y:String(e))}else{const n=f?f(p):p;o[t[e]]={value:n,label:h?h(y):null!=y?y:String(n)},d.field&&(o[t[e]].source={field:d.field.key(),key:a})}}c&&(o[t[e]]={value:"function"==typeof s.value?s.value(c,r):c,label:"function"==typeof s.label?s.label(u,r):u})}}const jR=(e,t,n)=>{const r="K"===e.qMode?"/qStackedDataPages/*/qData":"/qTreeDataPages/*",i="K"===e.qMode?"qSubNodes":"qNodes",o=AR(r,e);return o&&o[0]?(t.tree=hR(o[0],n.children||(e=>e[i])),t.tree):null};const $R=e=>{let{propsArr:t,props:n,cube:r,cache:i,itemDepthObject:o,f:a}=e;for(let e=0;e<t.length;e++){const s=n[t[e]],l=s.fields?s.fields:[s];for(let e=0;e<l.length;e++){const t=l[e];if(t.field!==a){const e=LR(o,PR(t.field,{cube:r,cache:i}));t.accessor=e.nodeFn,t.valueAccessor=e.valueFn,t.attrAccessor=e.attrFn}}}};function HR(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;const i=t.raw(),o=t.key(),a="S"===i.qMode?function(e){const t=e.raw().qDataPages.length?e.raw().qDataPages[0].qMatrix:[],n=function(e){const t=e.raw().qColumnOrder,n=e.fields();return t&&t.length===n.length?t:n.map(((e,t)=>t))}(e),r=e.fields(),i=e.fields().filter((e=>"dimension"===e.type())).map((e=>n.indexOf(r.indexOf(e)))),o=e.fields().filter((e=>"measure"===e.type())).map((e=>n.indexOf(r.indexOf(e)))),a={__root:{__id:"__root",qValues:[]}};for(let e=0;e<t.length;e++){const n=t[e];let r="__root",l=!1;for(let e=0;e<i.length;e++){var s;const t=n[i[e]],o="".concat(r,"__").concat(null!==(s=t.qElemNumber)&&void 0!==s?s:t.qElemNo);a[o]||(a[o]=KD({__id:o,__parent:r,qValues:[]},t),l=!0),r=o}if(l)for(let e=0;e<o.length;e++){const t=n[o[e]];a[r].qValues.push(t)}}const l=Object.keys(a).map((e=>a[e])),c=kR().id((e=>e.__id)).parentId((e=>e.__parent))(l);return c}(t):jR(i,n,e);if(!a)return null;const s=a.height,l=[];for(let o=0;o<=s;o++){let a=null;if(o>0)if("S"===i.qMode){let e=_R(i)[o-1];a=n.fields[e]}else{let e=i.qEffectiveInterColumnSortOrder[o-1];o>i.qEffectiveInterColumnSortOrder.length&&(e=i.qDimensionInfo.length),a=n.fields[e]}const{props:s,main:c}=r.normalizeConfig(KD(KD({},e),{},{field:a?a.key():void 0}),t),u=Object.keys(s);l[o]={propsArr:u,props:s,main:c};const d=a?PR(a,{cube:i,cache:n}):{fieldDepth:0};$R({propsArr:u,props:s,cube:i,cache:n,itemDepthObject:d,f:a})}const c=a.copy().descendants(),u=a.descendants();for(let e=0;e<u.length;e++){const t=l[u[e].depth].propsArr,n=l[u[e].depth].props,r=l[u[e].depth].main,i=c[e],a=i.data,s=zR(r,a,{key:o});FR({propsArr:t,props:n,item:i,itemData:a,ret:s,sourceKey:o,isTree:!0}),u[e].data=s}return a}function BR(e,t,n,r){const i=Array.isArray(e)?e:[e];let o=[];for(let a=0;a<i.length;a++)if(void 0!==i[a].field){const s=t.raw(),l=t.key();if(!jR(s,n,e))continue;const c="object"==typeof i[a].field?i[a].field:t.field(i[a].field),{props:u,main:d}=r.normalizeConfig(i[a],t),f=Object.keys(u),h=PR(c,{cube:s,cache:n}),{nodeFn:p,attrFn:m,valueFn:g}=LR({fieldDepth:0},h);$R({propsArr:f,props:u,cube:s,cache:n,itemDepthObject:h,f:c});const y=!!i[a].trackBy,v=typeof i[a].trackBy,b={},x=[],S=p(n.tree),w=[];for(let e=0;e<S.length;e++){const t=S[e],n=m?m(g(t)):g(t);if(d.filter&&!d.filter(n))continue;const o=zR(d,n,{key:l});FR({propsArr:f,props:u,item:t,itemData:n,ret:o,sourceKey:l}),y&&r.track({cfg:i[a],itemData:n,obj:o,target:x,tracker:b,trackType:v}),w.push(o)}const M=y?r.collect(x,{main:d,propsArr:f,props:u}):w;o=[...o,...M]}return o}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;var VR=function(e,t){return e(t={exports:{}},t.exports),t.exports}((function(e){
|
|
15
15
|
/*! javascript-number-formatter - v1.1.11 - http://mottie.github.com/javascript-number-formatter/ * © ecava */
|
|
16
|
-
e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,i,o,a,s,l,c,u,d,f=e.length,h=e.search(/[0-9\-\+#]/),p=h>0?e.substring(0,h):"",m=e.split("").reverse().join(""),g=m.search(/[0-9\-\+#]/),y=f-g,v=e.substring(y,y+1),b=y+("."===v||","===v?1:0),x=g>0?e.substring(b,f):"";if(n=(t="-"===(e=e.substring(h,b)).charAt(0)?-t:+t)<0?t=-t:0,i=(r=e.match(/[^\d\-\+#]/g))&&r[r.length-1]||".",o=r&&r[1]&&r[0]||",",e=e.split(i),t=+(t=t.toFixed(e[1]&&e[1].length))+"",s=e[1]&&e[1].lastIndexOf("0"),(!(c=t.split("."))[1]||c[1]&&c[1].length<=s)&&(t=(+t).toFixed(s+1)),u=e[0].split(o),e[0]=u.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;c[0].length<e[0].length-a;)c[0]="0"+c[0];else 0==+c[0]&&(c[0]="");if((t=t.split("."))[0]=c[0],l=u[1]&&u[u.length-1].length){for(m="",y=(d=t[0]).length%l,f=d.length,b=0;b<f;b++)m+=d.charAt(b),!((b-y+1)%l)&&b<f-l&&(m+=o);t[0]=m}return t[1]=e[1]&&t[1]?i+t[1]:"","0"!==(r=t.join(""))&&""!==r||(n=!1),p+(n?"-":"")+r+x}}));function UR(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}const WR={3:"k",6:"M",9:"G",12:"T",15:"P",18:"E",21:"Z",24:"Y","-3":"m","-6":"μ","-9":"n","-12":"p","-15":"f","-18":"a","-21":"z","-24":"y"},YR=/%\)?$/,XR=/^\(r(0[2-9]|[12]\d|3[0-6])\)/i,GR=/^\(oct\)/i,KR=/^\(dec\)/i,JR=/^\(hex\)/i,QR=/^\(bin\)/i,ZR=/^\(rom\)/i,eI=/^(\(rom\)|\(bin\)|\(hex\)|\(dec\)|\(oct\)|\(r(0[2-9]|[12]\d|3[0-6])\))/i,tI=/#|0/g;function nI(e,t,n,r){return e=e.toString(t),n[1]===n[1].toUpperCase()&&(e=e.toUpperCase()),e.length-e.indexOf(".")>10&&(e=e.slice(0,e.indexOf(".")+11)),e.replace(".",r||".")}function rI(e,t,n){let r;return XR.test(t)?e=nI(e,Number(/\d{2}/.exec(t)[0]),t,n):GR.test(t)?e=nI(e,8,t,n):KR.test(t)?e=nI(e,10,t,n):JR.test(t)?e=nI(e,16,t,n):QR.test(t)?e=nI(e,2,t,n):ZR.test(t)&&(r="",e<0&&(r="-",e=-e),0===(e=Math.floor(e))?e="0":e<=5e5?(e=function(e,t){let n,r="",i=Number(String(e).slice(-3)),o=(e-i)/1e3,a=[0,1,4,5,9,10,40,50,90,100,400,500,900].reverse(),s=["0","I","IV","V","IX","X","XL","L","XC","C","CD","D","CM"].reverse();for(;i>0;)for(n=0;n<a.length;n++)if(a[n]<=i){r+=s[n],i-=a[n];break}for(n=0;n<o;n++)r="M".concat(r);return t[1]!==t[1].toUpperCase()&&(r=r.toLowerCase()),r}(e,t),e=r+e):e=t+r+e.toExponential(0)),e}function iI(e,t,n){const r=UR(e);return n?r:new RegExp(r||"",t)}function oI(e,t,n,r){let i,o,a,s,l,c,u,d,f,h=e.pattern;var p,m;r&&(e.abbreviate=!0),p=t,(m=n)&&(m=UR(m)),p&&(p=UR(p)),f=new RegExp("(?:[#0]+".concat(p,")?[#0]+(?:").concat(m,"[#0]+)?")),a=h.match(f),a=a?a[0]:"",s=a?h.substr(0,h.indexOf(a)):h,l=a?h.substring(h.indexOf(a)+a.length):"",a||(a=h?"#":"##########"),t&&t===n&&(i=a.split(n),o=i.pop(),a=i.join("")+n+o,t=""),c=t,t=/,/.test(n)?"¤":",",c&&(a=a.replace(iI(c,"g"),t)),u=n,n=".",u&&(a=a.replace(iI(u,"g"),n)),d=a.match(/#/g),d=d?d.length:0;const g=h.split(u);let y;g[1]&&(y=g[1].match(tI)),e.prefix=s||"",e.postfix=l||"",e.pattern=h,e.maxPrecision=y?y.length:2,e.percentage=YR.test(h),e.numericPattern=a||"",e.numericRegex=new RegExp("".concat(iI(t,null,!0),"|").concat(iI(n,null,!0)),"g"),e.groupTemp=c,e.decTemp=u,e.t=t,e.d=n,e.temp=d}class aI{constructor(e,t,n,r,i){this.localeInfo=e,this.pattern=t,this.thousandDelimiter=n||",",this.decimalDelimiter=r||".",this.type=i||"numeric",this.patternSeparator=";",this.abbreviations=function(e,t){if(!e||!e.qNumericalAbbreviation)return WR;const n={};return e.qNumericalAbbreviation.split(t).forEach((e=>{let t=e.split(":");2===t.length&&(n[t[0]]=t[1])})),n}(e,this.patternSeparator),this.prepare()}clone(){const e=new aI(this.localeInfo,this.pattern,this.thousandDelimiter,this.decimalDelimiter,this.type);return e.subtype=this.subtype,e}format(e,t,n,r){return this.prepare(t,n,r),this.formatValue(e)}prepare(e,t,n){let r;if(void 0===e&&(e=this.pattern),void 0===t&&(t=this.thousandDelimiter),void 0===n&&(n=this.decimalDelimiter),!e)return void(this._prepared={pattern:!1});this._prepared={positive:{d:n,t:t,abbreviate:!1,isFunctional:!1,prefix:"",postfix:""},negative:{d:n,t:t,abbreviate:!1,isFunctional:!1,prefix:"",postfix:""},zero:{d:n,t:t,abbreviate:!1,isFunctional:!1,prefix:"",postfix:""}},r=this._prepared,e=e.split(this.patternSeparator),r.positive.pattern=e[0],r.negative.pattern=e[1],r.zero.pattern=e[2],eI.test(e[0])&&(r.positive.isFunctional=!0),e[1]?eI.test(e[1])&&(r.negative.isFunctional=!0):r.negative=!1,e[2]?eI.test(e[2])&&(r.zero.isFunctional=!0):r.zero=!1;const i="U"===this.type;r.positive.isFunctional||oI(r.positive,t,n,i),r.negative&&!r.negative.isFunctional&&oI(r.negative,t,n,i),r.zero&&!r.zero.isFunctional&&oI(r.zero,t,n,i)}formatValue(e){let t,n,r,i,o,a,s,l,c,u=this._prepared,d="",f="",h=e;if(isNaN(e))return"".concat(h);if(e=+e,!1===u.pattern)return e.toString();if(0===e&&u.zero)return u=u.zero,u.pattern;if(e<0&&u.negative?(u=u.negative,e=-e):u=u.positive,o=u.d,a=u.t,u.isFunctional)e=rI(e,u.pattern,o);else{if(u.percentage&&(e*=100),u.abbreviate){const t=Object.keys(this.abbreviations).map((e=>parseInt(e,10))).sort(((e,t)=>e-t));let r,i,o=t[0];for(s=0,n=Number(Number(e).toExponential().split("e")[1]);o<=n&&s<t.length;)s++,o=t[s];s>0&&(r=t[s-1]),r&&n>0&&r>0?i=r:(n<0&&r<0||!r)&&(o<0&&o-n<=u.maxPrecision?i=o:r<=n&&!(o>0&&-n<=u.maxPrecision)&&(i=r)),i&&(d=this.abbreviations[i],e/=10**i)}if(r=Math.abs(e),t=u.temp,l=u.numericPattern,c=l.split(o)[1],"I"===this.type&&(e=Math.round(e)),i=e,c||"#"!==l.slice(-1)[0])if(r>=1e15||r>0&&r<=1e-14)e=r?r.toExponential(15).replace(/\.?0+(?=e)/,""):"0";else{const t=Number(e.toFixed(Math.min(20,c?c.length:0)).split(".")[0]);let n=l.split(o)[0];if(n+=o,e=VR(n,t)||"0",c){const t=Math.max(0,Math.min(14,c.length)),n=c.replace(/#+$/,"").length;let i=("I"===this.type?0:r%1+1e-15).toFixed(t).slice(2).replace(/0+$/,"");for(s=i.length;s<n;s++)i+="0";i&&(e+=o+i)}else 0===t&&(i=0)}else if(r>=10**t||r<1||r<1e-4)0===e?e="0":r<1e-4||r>=1e20?(e=(e=i.toExponential(Math.max(1,Math.min(14,t))-1)).replace(/\.?0+(?=e)/,""),f=""):(e=e.toPrecision(Math.max(1,Math.min(14,t)))).indexOf(".")>=0&&(e=(e=e.replace(e.indexOf("e")<0?/0+$/:/\.?0+(?=e)/,"")).replace(".",o));else{for(l+=o,t=Math.max(0,Math.min(20,t-Math.ceil(Math.log(r)/Math.log(10)))),s=0;s<t;s++)l+="#";e=VR(l,e)}e=e.replace(u.numericRegex,(e=>e===a?u.groupTemp:e===o?u.decTemp:"")),i<0&&!/^-/.test(e)&&(e="-".concat(e))}return u.prefix+e+f+d+u.postfix}static getStaticFormatter(){return{prepare(){},formatValue:e=>"".concat(e)}}}function sI(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{size:n=5e3,multipleArguments:r=!1,toKey:i=(e=>e)}=t;let o,a,s=Object.create(null),l=Object.create(null),c=0,u=0;return o=r?function(){return a=i(...arguments),o.has(a)?o.get(a):o.set(a,e(...arguments))}:t=>(a=i(t),o.has(a)?o.get(a):o.set(a,e(t))),o.set=(e,t)=>(c>=n&&(delete s[l[u]],delete l[u],c--,u++),s[e]=t,l[c]=e,c++,t),o.get=e=>s[e],o.has=e=>e in s,o.clear=()=>{s=Object.create(null),l=Object.create(null),c=0,u=0},o.size=()=>c,o}function lI(e,t,n,r,i){const o=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new aI(...t)}(i,e,t,n,r),a=sI(o.formatValue.bind(o),{toKey:e=>isNaN(e)?e:+e});function s(e){return a(e)}return s.format=function(e,t,n,r){return a.clear(),o.format(t,e,n,r)},s.pattern=function(e){return e&&(a.clear(),o.pattern=e,o.prepare()),o.pattern},s}const cI={AUTO:"U",INTEGER:"I",NUMBER:"R",FIXED_TO:"F",MONEY:"M",DATE:"D",TIME:"T",DATE_TIME:"TS",INTERVAL:"IV"},uI=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],dI=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],fI=["January","February","March","April","May","June","July","August","September","October","November","December"],hI=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function pI(e,t){for(let n=e.length;n<t;n++)e="0".concat(e);return e}function mI(e){let t=e.toString().split(".");return t[1]?(t=Number("0.".concat(t[1])),t):0}function gI(e,t){let n,r=function(e){const t=e,n=24*mI(t),r=60*mI(n),i=60*mI(r),o=1e3*mI(i);return{d:Math.floor(t),h:Math.floor(n),m:Math.floor(r),s:Math.floor(i),f:Math.round(o)}}(e),i=r.d,o=r.h,a=r.m,s=r.s,l=r.f,c=0;/w+|t+/gi.test(t)&&(n=new Date(Date.UTC(1899,11,30+Math.floor(e),0,0,Math.round(86400*(e-Math.floor(e))))),isNaN(n.getTime())&&(n=null)),/D+/gi.test(t)||(o+=24*i),/h+/gi.test(t)||(a+=60*o),/m+/gi.test(t)||(s+=60*a),/w+/gi.test(t)&&(c=n?n.getDay()-1:0,c<0&&(c=6));let u="";return n&&(u=n.getUTCHours()>=12?"pm":"am"),{year:0,month:0,day:c,date:i,h:o,m:a,s:s,f:l,t:u}}class yI{constructor(e,t,n){const r=e||{};if(r.qCalendarStrings||(r.qCalendarStrings={qLongDayNames:uI,qDayNames:dI,qLongMonthNames:fI,qMonthNames:hI}),this.localeInfo=r,this.locale_days=r.qCalendarStrings.qLongDayNames.slice(),this.locale_days_abbr=r.qCalendarStrings.qDayNames.slice(),this.locale_months=r.qCalendarStrings.qLongMonthNames.slice(),this.locale_months_abbr=r.qCalendarStrings.qMonthNames.slice(),!t){t={[cI.TIME]:r.qTimeFmt||"hh:mm:ss",[cI.DATE]:r.qDateFmt||"YYYY-MM-DD",[cI.DATE_TIME]:r.qTimestampFmt||"YYYY-MM-DD hh:mm:ss"}[n]}this.pattern=t}clone(){const e=new yI(this.localeInfo,this.pattern);return e.subtype=this.subtype,e}format(e,t){t||(t=this.pattern?this.pattern:"YYYY-MM-DD hh:mm:ss"),t=t.replace(/\[.+]|\[|]/g,"");const n=/t+/gi.test(t);let r;e instanceof Date?r=function(e,t){let n=e.getUTCHours(),r=e.getUTCDay()-1;return t&&(n%=12,n||(n=12)),r<0&&(r=6),{year:e.getUTCFullYear(),month:e.getUTCMonth(),day:r,date:e.getUTCDate(),h:n,m:e.getUTCMinutes(),s:e.getUTCSeconds(),f:e.getUTCMilliseconds(),t:e.getUTCHours()>=12?"pm":"am"}}(e,n):(e<0&&(e=-e,t="-".concat(t)),r=gI(e,t));const i=function(e,t){return{"Y+|y+":{Y:"".concat(Number("".concat(t.year).slice(-2))),YY:pI("".concat(t.year).slice(-2),2),YYY:pI("".concat(t.year).slice(-3),3),def:e=>pI("".concat(t.year),e.length)},"M+":{M:t.month+1,MM:pI("".concat(t.month+1),2),MMM:e.locale_months_abbr[t.month],def:e.locale_months[t.month]},"W+|w+":{W:t.day,WW:pI("".concat(t.day),2),WWW:e.locale_days_abbr[t.day],def:e.locale_days[t.day]},"D+|d+":{D:t.date,def:e=>pI("".concat(t.date),e.length)},"h+|H+":{h:t.h,def:e=>pI("".concat(t.h),e.length)},"m+":{m:t.m,def:e=>pI("".concat(t.m),e.length)},"s+|S+":{s:t.s,def:e=>pI("".concat(t.s),e.length)},"f+|F+":{def(e){let n="".concat(t.f),r=e.length-n.length;if(r>0)for(let e=0;e<r;e++)n+="0";else r<0&&(n=n.slice(0,e.length));return n}},"t{1,2}|T{1,2}":{def(e){let n=t.t;return e[0].toUpperCase()===e[0]&&(n=n.toUpperCase()),n=n.slice(0,e.length),n}}}}(this,r),o=[];for(const e in i)Object.prototype.hasOwnProperty.call(i,e)&&o.push(e);const a=new RegExp(o.join("|"),"g"),s=t.replace(a,(e=>{let t,n,r;for(n in i)if(Object.prototype.hasOwnProperty.call(i,n)&&(t=new RegExp(n),t.test(e)))break;if(!t)return"";for(const t in i[n])if(t===e||t.toLowerCase()===e){r=i[n][t],void 0===r&&(r=i[n][t.toLowerCase()]);break}return void 0===r&&(r=i[n].def),"function"==typeof r&&(r=r(e)),r}));return s}}function vI(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new yI(...t)}const bI=864e5;function xI(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"TS",n=vI(arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,e,t),r=sI(n.format.bind(n),{toKey:e=>"object"==typeof e&&"function"==typeof e.getTime?e.getTime():e});function i(e){return t!==cI.INTERVAL?function(e){return new Date(Date.UTC(1899,11,30+Math.floor(e),0,0,0,Math.round(bI*(e-Math.floor(e)))))}(e):e}function o(e){return e=i(e),r(e)}return o.format=function(e,t){return r.clear(),t=i(t),n.format(t,e)},o.locale=function(i){return n=vI(i,e,t),r=sI(n.format.bind(n),{toKey:e=>"object"==typeof e?e.getTime():e}),this},o.qtype=function(e){return void 0!==e&&(t=e,r.clear()),t},o}function SI(e,t){if(e&&e.qNumFormat&&-1!==["D","T","TS","IV"].indexOf(e.qNumFormat.qType))return xI(e.qNumFormat.qFmt,e.qNumFormat.qType,t);let n="#",r=t&&void 0!==t.qThousandSep?t.qThousandSep:",",i=t&&void 0!==t.qDecimalSep?t.qDecimalSep:".",o="U",a=e&&!!e.qIsAutoFormat;return e&&e.qNumFormat?(n=e.qNumFormat.qFmt||n,r=e.qNumFormat.qThou||r,i=e.qNumFormat.qDec||i,o=e.qNumFormat.qType||o,a=a&&-1===["M"].indexOf(e.qNumFormat.qType)):a=!0,(a||"U"===o)&&(n="#".concat(i,"##"),o="U"),lI(n,r,i,o,t)}function wI(){let e,{meta:t,id:n,key:r,localeInfo:i,fieldExtractor:o,value:a,type:s,sourceField:l}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const c=a||("dimension"===s?e=>null==e?void 0:e.qElemNo:e=>null==e?void 0:e.qValue),u="dimension"===s?"first":"avg",d=SI(t,i),f="dimension"===s?"first":(e,t)=>d(t),h={id:()=>n,key:()=>r,raw:()=>t,title:()=>t.qFallbackTitle||t.label,type:()=>s,origin:()=>l,items:()=>(e||(e=o(h)),e),min:()=>t.qMin,max:()=>t.qMax,value:c,label:e=>(null==e?void 0:e.qText)||"",reduce:u,reduceLabel:f,formatter:()=>d,tags:()=>t.qTags};return h}function MI(e,t,n,r,i){return(t[e]||[]).map(((t,o)=>{const a="".concat(r?"".concat(r,"/"):"").concat(e,"/").concat(o),s={instance:wI(sR({id:"".concat(n?"".concat(n,"/"):"").concat(a),key:a,meta:t},i))};return s.attrDims=MI("qAttrDimInfo",t,n,a,sR({},i,{value:e=>null==e?void 0:e.qElemNo,type:"dimension"})),s.attrExps=MI("qAttrExprInfo",t,n,a,sR({},i,{value:e=>null==e?void 0:e.qNum,type:"measure"})),s.measures=MI("qMeasureInfo",t,n,a,sR({},i,{value:e=>null==e?void 0:e.qValue,type:"measure"})),s}))}function EI(){let{key:e,data:t,config:n={}}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const r={fields:[],wrappedFields:[],allFields:[],virtualFields:[]},i=t;if(!i)throw new Error('Missing "data" input');if(!i.qDimensionInfo)throw new Error('The "data" input is not recognized as a hypercube');const o=EI.util,a={cache:r,cube:i,localeInfo:n.localeInfo,fieldExtractor:null,pages:null,hierarchy:()=>null,virtualFields:n.virtualFields},s={key:()=>e,raw:()=>i,field:e=>function(e,t){let{cache:n}=t;if("number"==typeof e)return n.fields[e];const r=n.allFields;if("function"==typeof e){for(let t=0;t<r.length;t++)if(e(r[t]))return r[t];return!1}if("string"==typeof e){for(let t=0;t<r.length;t++)if(r[t].key()===e||r[t].title()===e)return r[t]}else if(e&&-1!==r.indexOf(e))return e;throw Error("Field not found: ".concat(e))}(e,a),fields:()=>r.fields.slice(),extract:e=>a.extractor(e,s,r,o),hierarchy:e=>a.hierarchy(e,s,r,o),_cache:()=>r};"K"===i.qMode||"T"===i.qMode||!i.qMode&&i.qNodesOnDim?(a.extractor=BR,a.hierarchy=HR,a.pages="K"===i.qMode?i.qStackedDataPages:i.qTreeDataPages):"S"===i.qMode?(a.extractor=dR,a.pages=i.qDataPages,a.hierarchy=HR):a.extractor=()=>[],a.fieldExtractor=e=>a.extractor({field:e},s,r,o);const l="S"===i.qMode?e=>e.qElemNumber:void 0,c="S"===i.qMode?e=>e.qNum:void 0;r.wrappedFields.push(...MI("qDimensionInfo",i,e,"",sR({},a,{value:l,type:"dimension"}))),r.wrappedFields.push(...MI("qMeasureInfo",i,e,"",sR({},a,{value:c,type:"measure"}))),r.fields=r.wrappedFields.map((e=>e.instance));const u=e=>{e.forEach((e=>{r.allFields.push(e.instance),u(e.measures),u(e.attrDims),u(e.attrExps)}))};return u(r.wrappedFields),(n.virtualFields||[]).forEach((t=>{const n=s.field(t.from),i=wI(KD({meta:n.raw(),id:"".concat(e,"/").concat(t.key),sourceField:n,fieldExtractor:e=>a.extractor({field:e},s,r,o),key:t.key,type:n.type(),localeInfo:a.localeInfo,value:n.value},t.override||{}));r.virtualFields.push(i)})),r.allFields.push(...r.virtualFields),s}const kI=[["qHyperCube","qHyperCubeDef"],["qTreeData","qTreeDataDef"],["qDimensionInfo","qDimensions"],["qMeasureInfo","qMeasures"],["qAttrDimInfo","qAttributeDimensions"],["qAttrExprInfo","qAttributeExpressions"]],CI=/\/qDimensionInfo(?:\/(\d+))?/,TI=/\/qMeasureInfo\/(\d+)/,AI=/\/qAttrDimInfo\/(\d+)(?:\/(\d+))?/,OI=/\/qAttrExprInfo\/(\d+)/,NI=/\/?qHyperCube/,qI=/\/?qTreeData/,DI=e=>"".concat(e.substr(0,e.indexOf("/qHyperCubeDef")+14)),RI=e=>"".concat(e.substr(0,e.indexOf("/qTreeDataDef")+13));function II(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;const r=t.byCells,i=t.primarySource,o=[],a={},s=e.isActive();let l=!1;if(e.brushes().forEach((e=>{const t=function(e,t){let n=e,r=-1,i=-1,o="",a=e=>e;NI.test(e)?(o="".concat(n.substr(0,n.indexOf("qHyperCube")+10)),a=DI):qI.test(e)&&(o="".concat(n.substr(0,n.indexOf("qTreeData")+9)),a=RI);let s=!0;if(CI.test(e)&&(r=+CI.exec(e)[1]),TI.test(e)&&(i=+TI.exec(e)[1]),AI.test(e)){i=-1,r=0;const e=+AI.exec(n)[2];isNaN(e)||(r=e,n=n.replace(/\/\d+$/,"")),s=!1}if(OI.test(e)){const e=i;if(t){i=0;const a=AR(o,t);i+=(a.qMeasureInfo||[]).length,r>-1?(i=a.qDimensionInfo.slice(0,r).reduce(((e,t)=>e+t.qAttrExprInfo.length),i),r=-1):(i=a.qDimensionInfo.reduce(((e,t)=>e+t.qAttrExprInfo.length),i),i=a.qMeasureInfo.slice(0,e).reduce(((e,t)=>e+t.qAttrExprInfo.length),i)),i+=+OI.exec(n)[1]}else r>-1?(r=-1,i=+OI.exec(n)[1]):i+=+OI.exec(n)[1]+1}return kI.forEach((e=>{let[t,r]=e;n=n.replace(t,r)})),s&&(n=a(n)),n&&"/"!==n[0]&&(n="/".concat(n)),{measureIdx:i,dimensionIdx:r,path:n}}(e.id,n);if("range"===e.type&&t.measureIdx>-1&&t.dimensionIdx>-1){const n=e.brush.ranges();n.length&&(l=!0,a.multiRangeSelectTreeDataValues||(a.multiRangeSelectTreeDataValues={path:t.path,ranges:[]}),n.forEach((e=>a.multiRangeSelectTreeDataValues.ranges.push({qMeasureIx:t.measureIdx,qDimensionIx:t.dimensionIdx,qRange:{qMin:e.min,qMax:e.max,qMinInclEq:!0,qMaxInclEq:!0}}))))}else{if("range"===e.type&&t.measureIdx>-1){const n=e.brush.ranges();n.length&&(l=!0,a.rangeSelectHyperCubeValues||(a.rangeSelectHyperCubeValues={path:t.path,ranges:[]}),n.forEach((e=>a.rangeSelectHyperCubeValues.ranges.push({qMeasureIx:t.measureIdx,qRange:{qMin:e.min,qMax:e.max,qMinInclEq:!0,qMaxInclEq:!0}}))))}if("range"===e.type&&t.dimensionIdx>-1){const n=e.brush.ranges();n.length&&(l=!0,a.selectHyperCubeContinuousRange||(a.selectHyperCubeContinuousRange={path:t.path,ranges:[]}),n.forEach((e=>a.selectHyperCubeContinuousRange.ranges.push({qDimIx:t.dimensionIdx,qRange:{qMin:e.min,qMax:e.max,qMinInclEq:!0,qMaxInclEq:!1}}))))}if("value"===e.type&&t.dimensionIdx>-1)if(r)if(n&&n.qHyperCube&&("P"===n.qHyperCube.qMode||"T"===n.qHyperCube.qMode||"K"===n.qHyperCube.qMode)){const r=n.qHyperCube,o=r.qNoOfLeftDims,s=r.qEffectiveInterColumnSortOrder.indexOf(t.dimensionIdx);if(a.selectPivotCells||(a.selectPivotCells={path:t.path,cells:[]}),e.id===i||!i){const n=e.brush.values().map((e=>+e)).filter((e=>!isNaN(e)));(0===o||s>=o)&&o>-1?n.forEach((e=>{a.selectPivotCells.cells.push({qType:"T",qCol:e,qRow:s-o})})):n.forEach((e=>{a.selectPivotCells.cells.push({qType:"L",qCol:t.dimensionIdx,qRow:e})})),l=!!a.selectPivotCells.cells.length}}else a.selectHyperCubeCells||(a.selectHyperCubeCells={path:t.path,cols:[]}),a.selectHyperCubeCells.cols.push(t.dimensionIdx),e.id!==i&&(i||a.selectHyperCubeCells.values)||(a.selectHyperCubeCells.values=e.brush.values().map((e=>+e)).filter((e=>!isNaN(e))),l=!!a.selectHyperCubeCells.values.length);else{const n=e.brush.values().map((e=>+e)).filter((e=>!isNaN(e)));l=!!n.length,o.push({params:[t.path,t.dimensionIdx,n,!1],method:"selectHyperCubeValues"})}}})),!l&&s)return[{method:"resetMadeSelections",params:[]}];var c;a.rangeSelectHyperCubeValues&&o.push({method:"rangeSelectHyperCubeValues",params:[a.rangeSelectHyperCubeValues.path,a.rangeSelectHyperCubeValues.ranges,[],null===(c=t.orMode)||void 0===c||c]});return a.selectHyperCubeContinuousRange&&o.push({method:"selectHyperCubeContinuousRange",params:[a.selectHyperCubeContinuousRange.path,a.selectHyperCubeContinuousRange.ranges]}),a.selectHyperCubeCells&&o.push({method:"selectHyperCubeCells",params:[a.selectHyperCubeCells.path,a.selectHyperCubeCells.values,a.selectHyperCubeCells.cols]}),a.selectPivotCells&&o.push({method:"selectPivotCells",params:[a.selectPivotCells.path,a.selectPivotCells.cells]}),a.multiRangeSelectTreeDataValues&&o.push({method:"multiRangeSelectTreeDataValues",params:[a.multiRangeSelectTreeDataValues.path,a.multiRangeSelectTreeDataValues.ranges]}),o}function _I(e){EI.util=e.data("matrix").util,e.data("q",EI),e.formatter("q-number",lI),e.formatter("q-time",xI)}_I.qBrushHelper=II,_I.selections=II;const PI={click:"Tap",Click:"Tap",tap:"Tap",pan:"Pan",swipe:"Swipe",rotate:"Rotate",press:"Press",pinch:"Pinch"};function LI(e){return PI[e]||e}function zI(e){return function(t,n,r){let i,o,a,s,l=[],c=!0;function u(){"function"==typeof i.enable&&(i.enable=i.enable.bind(o)()),i.enable&&(i.gestures.forEach((t=>{t.options=t.options||{},void 0===t.options.enable&&(t.options.enable=!0),"function"==typeof t.options.enable&&(t.options.enable=t.options.enable.bind(o));const n=LI(t.type);e&&e[n]&&(t.options.event=t.options.event||t.type.toLowerCase(),a=a||new e.Manager(r),a.add(new e[n](t.options)),Object.keys(t.events).forEach((e=>{t.events[e]=t.events[e].bind(o),a.on(e,t.events[e])})),l.push(t))})),i.gestures.forEach((t=>{const n=LI(t.type);e&&e[n]&&(t.recognizeWith&&a.get(t.options.event).recognizeWith(t.recognizeWith.split(" ").filter((e=>""!==e))),t.requireFailure&&a.get(t.options.event).requireFailure(t.requireFailure.split(" ").filter((e=>""!==e))))})))}function d(){l.forEach((e=>{Object.keys(e.events).forEach((t=>{a.off(t,e.events[t])})),a.remove(e.options.event)})),l=[]}return{get key(){return s},set(e){!function(e){s=e.key,i=e,o={chart:t,mediator:n,settings:i},i.gestures=i.gestures||[],void 0===i.enable&&(i.enable=!0)}(e),d(),c&&u()},off(){c=!1,d()},on(){c=!0,0===l.length&&u()},destroy(){d(),a&&a.destroy(),a=null,o=null,i=null}}}}function FI(){return FI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},FI.apply(this,arguments)}var jI={exports:{}},$I={},HI=Object.getOwnPropertySymbols,BI=Object.prototype.hasOwnProperty,VI=Object.prototype.propertyIsEnumerable;var UI=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(t).map((function(e){return t[e]}));if("0123456789"!==r.join(""))return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach((function(e){i[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},i)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,r,i=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),o=1;o<arguments.length;o++){for(var a in n=Object(arguments[o]))BI.call(n,a)&&(i[a]=n[a]);if(HI){r=HI(n);for(var s=0;s<r.length;s++)VI.call(n,r[s])&&(i[r[s]]=n[r[s]])}}return i},WI=UI,YI="function"==typeof Symbol&&Symbol.for,XI=YI?Symbol.for("react.element"):60103,GI=YI?Symbol.for("react.portal"):60106,KI=YI?Symbol.for("react.fragment"):60107,JI=YI?Symbol.for("react.strict_mode"):60108,QI=YI?Symbol.for("react.profiler"):60114,ZI=YI?Symbol.for("react.provider"):60109,e_=YI?Symbol.for("react.context"):60110,t_=YI?Symbol.for("react.forward_ref"):60112,n_=YI?Symbol.for("react.suspense"):60113,r_=YI?Symbol.for("react.memo"):60115,i_=YI?Symbol.for("react.lazy"):60116,o_="function"==typeof Symbol&&Symbol.iterator;
|
|
16
|
+
e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,i,o,a,s,l,c,u,d,f=e.length,h=e.search(/[0-9\-\+#]/),p=h>0?e.substring(0,h):"",m=e.split("").reverse().join(""),g=m.search(/[0-9\-\+#]/),y=f-g,v=e.substring(y,y+1),b=y+("."===v||","===v?1:0),x=g>0?e.substring(b,f):"";if(n=(t="-"===(e=e.substring(h,b)).charAt(0)?-t:+t)<0?t=-t:0,i=(r=e.match(/[^\d\-\+#]/g))&&r[r.length-1]||".",o=r&&r[1]&&r[0]||",",e=e.split(i),t=+(t=t.toFixed(e[1]&&e[1].length))+"",s=e[1]&&e[1].lastIndexOf("0"),(!(c=t.split("."))[1]||c[1]&&c[1].length<=s)&&(t=(+t).toFixed(s+1)),u=e[0].split(o),e[0]=u.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;c[0].length<e[0].length-a;)c[0]="0"+c[0];else 0==+c[0]&&(c[0]="");if((t=t.split("."))[0]=c[0],l=u[1]&&u[u.length-1].length){for(m="",y=(d=t[0]).length%l,f=d.length,b=0;b<f;b++)m+=d.charAt(b),!((b-y+1)%l)&&b<f-l&&(m+=o);t[0]=m}return t[1]=e[1]&&t[1]?i+t[1]:"","0"!==(r=t.join(""))&&""!==r||(n=!1),p+(n?"-":"")+r+x}}));function UR(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}const WR={3:"k",6:"M",9:"G",12:"T",15:"P",18:"E",21:"Z",24:"Y","-3":"m","-6":"μ","-9":"n","-12":"p","-15":"f","-18":"a","-21":"z","-24":"y"},YR=/%\)?$/,XR=/^\(r(0[2-9]|[12]\d|3[0-6])\)/i,GR=/^\(oct\)/i,KR=/^\(dec\)/i,JR=/^\(hex\)/i,QR=/^\(bin\)/i,ZR=/^\(rom\)/i,eI=/^(\(rom\)|\(bin\)|\(hex\)|\(dec\)|\(oct\)|\(r(0[2-9]|[12]\d|3[0-6])\))/i,tI=/#|0/g;function nI(e,t,n,r){return e=e.toString(t),n[1]===n[1].toUpperCase()&&(e=e.toUpperCase()),e.length-e.indexOf(".")>10&&(e=e.slice(0,e.indexOf(".")+11)),e.replace(".",r||".")}function rI(e,t,n){let r;return XR.test(t)?e=nI(e,Number(/\d{2}/.exec(t)[0]),t,n):GR.test(t)?e=nI(e,8,t,n):KR.test(t)?e=nI(e,10,t,n):JR.test(t)?e=nI(e,16,t,n):QR.test(t)?e=nI(e,2,t,n):ZR.test(t)&&(r="",e<0&&(r="-",e=-e),0===(e=Math.floor(e))?e="0":e<=5e5?(e=function(e,t){let n,r="",i=Number(String(e).slice(-3)),o=(e-i)/1e3,a=[0,1,4,5,9,10,40,50,90,100,400,500,900].reverse(),s=["0","I","IV","V","IX","X","XL","L","XC","C","CD","D","CM"].reverse();for(;i>0;)for(n=0;n<a.length;n++)if(a[n]<=i){r+=s[n],i-=a[n];break}for(n=0;n<o;n++)r="M".concat(r);return t[1]!==t[1].toUpperCase()&&(r=r.toLowerCase()),r}(e,t),e=r+e):e=t+r+e.toExponential(0)),e}function iI(e,t,n){const r=UR(e);return n?r:new RegExp(r||"",t)}function oI(e,t,n,r){let i,o,a,s,l,c,u,d,f,h=e.pattern;var p,m;r&&(e.abbreviate=!0),p=t,(m=n)&&(m=UR(m)),p&&(p=UR(p)),f=new RegExp("(?:[#0]+".concat(p,")?[#0]+(?:").concat(m,"[#0]+)?")),a=h.match(f),a=a?a[0]:"",s=a?h.substr(0,h.indexOf(a)):h,l=a?h.substring(h.indexOf(a)+a.length):"",a||(a=h?"#":"##########"),t&&t===n&&(i=a.split(n),o=i.pop(),a=i.join("")+n+o,t=""),c=t,t=/,/.test(n)?"¤":",",c&&(a=a.replace(iI(c,"g"),t)),u=n,n=".",u&&(a=a.replace(iI(u,"g"),n)),d=a.match(/#/g),d=d?d.length:0;const g=h.split(u);let y;g[1]&&(y=g[1].match(tI)),e.prefix=s||"",e.postfix=l||"",e.pattern=h,e.maxPrecision=y?y.length:2,e.percentage=YR.test(h),e.numericPattern=a||"",e.numericRegex=new RegExp("".concat(iI(t,null,!0),"|").concat(iI(n,null,!0)),"g"),e.groupTemp=c,e.decTemp=u,e.t=t,e.d=n,e.temp=d}class aI{constructor(e,t,n,r,i){this.localeInfo=e,this.pattern=t,this.thousandDelimiter=n||",",this.decimalDelimiter=r||".",this.type=i||"numeric",this.patternSeparator=";",this.abbreviations=function(e,t){if(!e||!e.qNumericalAbbreviation)return WR;const n={};return e.qNumericalAbbreviation.split(t).forEach((e=>{let t=e.split(":");2===t.length&&(n[t[0]]=t[1])})),n}(e,this.patternSeparator),this.prepare()}clone(){const e=new aI(this.localeInfo,this.pattern,this.thousandDelimiter,this.decimalDelimiter,this.type);return e.subtype=this.subtype,e}format(e,t,n,r){return this.prepare(t,n,r),this.formatValue(e)}prepare(e,t,n){let r;if(void 0===e&&(e=this.pattern),void 0===t&&(t=this.thousandDelimiter),void 0===n&&(n=this.decimalDelimiter),!e)return void(this._prepared={pattern:!1});this._prepared={positive:{d:n,t:t,abbreviate:!1,isFunctional:!1,prefix:"",postfix:""},negative:{d:n,t:t,abbreviate:!1,isFunctional:!1,prefix:"",postfix:""},zero:{d:n,t:t,abbreviate:!1,isFunctional:!1,prefix:"",postfix:""}},r=this._prepared,e=e.split(this.patternSeparator),r.positive.pattern=e[0],r.negative.pattern=e[1],r.zero.pattern=e[2],eI.test(e[0])&&(r.positive.isFunctional=!0),e[1]?eI.test(e[1])&&(r.negative.isFunctional=!0):r.negative=!1,e[2]?eI.test(e[2])&&(r.zero.isFunctional=!0):r.zero=!1;const i="U"===this.type;r.positive.isFunctional||oI(r.positive,t,n,i),r.negative&&!r.negative.isFunctional&&oI(r.negative,t,n,i),r.zero&&!r.zero.isFunctional&&oI(r.zero,t,n,i)}formatValue(e){let t,n,r,i,o,a,s,l,c,u=this._prepared,d="",f="",h=e;if(isNaN(e))return"".concat(h);if(e=+e,!1===u.pattern)return e.toString();if(0===e&&u.zero)return u=u.zero,u.pattern;if(e<0&&u.negative?(u=u.negative,e=-e):u=u.positive,o=u.d,a=u.t,u.isFunctional)e=rI(e,u.pattern,o);else{if(u.percentage&&(e*=100),u.abbreviate){const t=Object.keys(this.abbreviations).map((e=>parseInt(e,10))).sort(((e,t)=>e-t));let r,i,o=t[0];for(s=0,n=Number(Number(e).toExponential().split("e")[1]);o<=n&&s<t.length;)s++,o=t[s];s>0&&(r=t[s-1]),r&&n>0&&r>0?i=r:(n<0&&r<0||!r)&&(o<0&&o-n<=u.maxPrecision?i=o:r<=n&&!(o>0&&-n<=u.maxPrecision)&&(i=r)),i&&(d=this.abbreviations[i],e/=10**i)}if(r=Math.abs(e),t=u.temp,l=u.numericPattern,c=l.split(o)[1],"I"===this.type&&(e=Math.round(e)),i=e,c||"#"!==l.slice(-1)[0])if(r>=1e15||r>0&&r<=1e-14)e=r?r.toExponential(15).replace(/\.?0+(?=e)/,""):"0";else{const t=Number(e.toFixed(Math.min(20,c?c.length:0)).split(".")[0]);let n=l.split(o)[0];if(n+=o,e=VR(n,t)||"0",c){const t=Math.max(0,Math.min(14,c.length)),n=c.replace(/#+$/,"").length;let i=("I"===this.type?0:r%1+1e-15).toFixed(t).slice(2).replace(/0+$/,"");for(s=i.length;s<n;s++)i+="0";i&&(e+=o+i)}else 0===t&&(i=0)}else if(r>=10**t||r<1||r<1e-4)0===e?e="0":r<1e-4||r>=1e20?(e=(e=i.toExponential(Math.max(1,Math.min(14,t))-1)).replace(/\.?0+(?=e)/,""),f=""):(e=e.toPrecision(Math.max(1,Math.min(14,t)))).indexOf(".")>=0&&(e=(e=e.replace(e.indexOf("e")<0?/0+$/:/\.?0+(?=e)/,"")).replace(".",o));else{for(l+=o,t=Math.max(0,Math.min(20,t-Math.ceil(Math.log(r)/Math.log(10)))),s=0;s<t;s++)l+="#";e=VR(l,e)}e=e.replace(u.numericRegex,(e=>e===a?u.groupTemp:e===o?u.decTemp:"")),i<0&&!/^-/.test(e)&&(e="-".concat(e))}return u.prefix+e+f+d+u.postfix}static getStaticFormatter(){return{prepare(){},formatValue:e=>"".concat(e)}}}function sI(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{size:n=5e3,multipleArguments:r=!1,toKey:i=(e=>e)}=t;let o,a,s=Object.create(null),l=Object.create(null),c=0,u=0;return o=r?function(){return a=i(...arguments),o.has(a)?o.get(a):o.set(a,e(...arguments))}:t=>(a=i(t),o.has(a)?o.get(a):o.set(a,e(t))),o.set=(e,t)=>(c>=n&&(delete s[l[u]],delete l[u],c--,u++),s[e]=t,l[c]=e,c++,t),o.get=e=>s[e],o.has=e=>e in s,o.clear=()=>{s=Object.create(null),l=Object.create(null),c=0,u=0},o.size=()=>c,o}function lI(e,t,n,r,i){const o=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new aI(...t)}(i,e,t,n,r),a=sI(o.formatValue.bind(o),{toKey:e=>isNaN(e)?e:+e});function s(e){return a(e)}return s.format=function(e,t,n,r){return a.clear(),o.format(t,e,n,r)},s.pattern=function(e){return e&&(a.clear(),o.pattern=e,o.prepare()),o.pattern},s}const cI={AUTO:"U",INTEGER:"I",NUMBER:"R",FIXED_TO:"F",MONEY:"M",DATE:"D",TIME:"T",DATE_TIME:"TS",INTERVAL:"IV"},uI=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],dI=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],fI=["January","February","March","April","May","June","July","August","September","October","November","December"],hI=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function pI(e,t){for(let n=e.length;n<t;n++)e="0".concat(e);return e}function mI(e){let t=e.toString().split(".");return t[1]?(t=Number("0.".concat(t[1])),t):0}function gI(e,t){let n,r=function(e){const t=e,n=24*mI(t),r=60*mI(n),i=60*mI(r),o=1e3*mI(i);return{d:Math.floor(t),h:Math.floor(n),m:Math.floor(r),s:Math.floor(i),f:Math.round(o)}}(e),i=r.d,o=r.h,a=r.m,s=r.s,l=r.f,c=0;/w+|t+/gi.test(t)&&(n=new Date(Date.UTC(1899,11,30+Math.floor(e),0,0,Math.round(86400*(e-Math.floor(e))))),isNaN(n.getTime())&&(n=null)),/D+/gi.test(t)||(o+=24*i),/h+/gi.test(t)||(a+=60*o),/m+/gi.test(t)||(s+=60*a),/w+/gi.test(t)&&(c=n?n.getDay()-1:0,c<0&&(c=6));let u="";return n&&(u=n.getUTCHours()>=12?"pm":"am"),{year:0,month:0,day:c,date:i,h:o,m:a,s:s,f:l,t:u}}class yI{constructor(e,t,n){const r=e||{};if(r.qCalendarStrings||(r.qCalendarStrings={qLongDayNames:uI,qDayNames:dI,qLongMonthNames:fI,qMonthNames:hI}),this.localeInfo=r,this.locale_days=r.qCalendarStrings.qLongDayNames.slice(),this.locale_days_abbr=r.qCalendarStrings.qDayNames.slice(),this.locale_months=r.qCalendarStrings.qLongMonthNames.slice(),this.locale_months_abbr=r.qCalendarStrings.qMonthNames.slice(),!t){t={[cI.TIME]:r.qTimeFmt||"hh:mm:ss",[cI.DATE]:r.qDateFmt||"YYYY-MM-DD",[cI.DATE_TIME]:r.qTimestampFmt||"YYYY-MM-DD hh:mm:ss"}[n]}this.pattern=t}clone(){const e=new yI(this.localeInfo,this.pattern);return e.subtype=this.subtype,e}format(e,t){t||(t=this.pattern?this.pattern:"YYYY-MM-DD hh:mm:ss"),t=t.replace(/\[.+]|\[|]/g,"");const n=/t+/gi.test(t);let r;e instanceof Date?r=function(e,t){let n=e.getUTCHours(),r=e.getUTCDay()-1;return t&&(n%=12,n||(n=12)),r<0&&(r=6),{year:e.getUTCFullYear(),month:e.getUTCMonth(),day:r,date:e.getUTCDate(),h:n,m:e.getUTCMinutes(),s:e.getUTCSeconds(),f:e.getUTCMilliseconds(),t:e.getUTCHours()>=12?"pm":"am"}}(e,n):(e<0&&(e=-e,t="-".concat(t)),r=gI(e,t));const i=function(e,t){return{"Y+|y+":{Y:"".concat(Number("".concat(t.year).slice(-2))),YY:pI("".concat(t.year).slice(-2),2),YYY:pI("".concat(t.year).slice(-3),3),def:e=>pI("".concat(t.year),e.length)},"M+":{M:t.month+1,MM:pI("".concat(t.month+1),2),MMM:e.locale_months_abbr[t.month],def:e.locale_months[t.month]},"W+|w+":{W:t.day,WW:pI("".concat(t.day),2),WWW:e.locale_days_abbr[t.day],def:e.locale_days[t.day]},"D+|d+":{D:t.date,def:e=>pI("".concat(t.date),e.length)},"h+|H+":{h:t.h,def:e=>pI("".concat(t.h),e.length)},"m+":{m:t.m,def:e=>pI("".concat(t.m),e.length)},"s+|S+":{s:t.s,def:e=>pI("".concat(t.s),e.length)},"f+|F+":{def(e){let n="".concat(t.f),r=e.length-n.length;if(r>0)for(let e=0;e<r;e++)n+="0";else r<0&&(n=n.slice(0,e.length));return n}},"t{1,2}|T{1,2}":{def(e){let n=t.t;return e[0].toUpperCase()===e[0]&&(n=n.toUpperCase()),n=n.slice(0,e.length),n}}}}(this,r),o=[];for(const e in i)Object.prototype.hasOwnProperty.call(i,e)&&o.push(e);const a=new RegExp(o.join("|"),"g"),s=t.replace(a,(e=>{let t,n,r;for(n in i)if(Object.prototype.hasOwnProperty.call(i,n)&&(t=new RegExp(n),t.test(e)))break;if(!t)return"";for(const t in i[n])if(t===e||t.toLowerCase()===e){r=i[n][t],void 0===r&&(r=i[n][t.toLowerCase()]);break}return void 0===r&&(r=i[n].def),"function"==typeof r&&(r=r(e)),r}));return s}}function vI(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new yI(...t)}const bI=864e5;function xI(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"TS",n=vI(arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,e,t),r=sI(n.format.bind(n),{toKey:e=>"object"==typeof e&&"function"==typeof e.getTime?e.getTime():e});function i(e){return t!==cI.INTERVAL?function(e){return new Date(Date.UTC(1899,11,30+Math.floor(e),0,0,0,Math.round(bI*(e-Math.floor(e)))))}(e):e}function o(e){return e=i(e),r(e)}return o.format=function(e,t){return r.clear(),t=i(t),n.format(t,e)},o.locale=function(i){return n=vI(i,e,t),r=sI(n.format.bind(n),{toKey:e=>"object"==typeof e?e.getTime():e}),this},o.qtype=function(e){return void 0!==e&&(t=e,r.clear()),t},o}function SI(e,t){if(e&&e.qNumFormat&&-1!==["D","T","TS","IV"].indexOf(e.qNumFormat.qType))return xI(e.qNumFormat.qFmt,e.qNumFormat.qType,t);let n="#",r=t&&void 0!==t.qThousandSep?t.qThousandSep:",",i=t&&void 0!==t.qDecimalSep?t.qDecimalSep:".",o="U",a=e&&!!e.qIsAutoFormat;return e&&e.qNumFormat?(n=e.qNumFormat.qFmt||n,r=e.qNumFormat.qThou||r,i=e.qNumFormat.qDec||i,o=e.qNumFormat.qType||o,a=a&&-1===["M"].indexOf(e.qNumFormat.qType)):a=!0,(a||"U"===o)&&(n="#".concat(i,"##"),o="U"),lI(n,r,i,o,t)}function wI(){let e,{meta:t,id:n,key:r,localeInfo:i,fieldExtractor:o,value:a,type:s,sourceField:l}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const c=a||("dimension"===s?e=>null==e?void 0:e.qElemNo:e=>null==e?void 0:e.qValue),u="dimension"===s?"first":"avg",d=SI(t,i),f="dimension"===s?"first":(e,t)=>d(t),h={id:()=>n,key:()=>r,raw:()=>t,title:()=>t.qFallbackTitle||t.label,type:()=>s,origin:()=>l,items:()=>(e||(e=o(h)),e),min:()=>t.qMin,max:()=>t.qMax,value:c,label:e=>(null==e?void 0:e.qText)||"",reduce:u,reduceLabel:f,formatter:()=>d,tags:()=>t.qTags};return h}function MI(e,t,n,r,i){return(t[e]||[]).map(((t,o)=>{const a="".concat(r?"".concat(r,"/"):"").concat(e,"/").concat(o),s={instance:wI(sR({id:"".concat(n?"".concat(n,"/"):"").concat(a),key:a,meta:t},i))};return s.attrDims=MI("qAttrDimInfo",t,n,a,sR({},i,{value:e=>null==e?void 0:e.qElemNo,type:"dimension"})),s.attrExps=MI("qAttrExprInfo",t,n,a,sR({},i,{value:e=>null==e?void 0:e.qNum,type:"measure"})),s.measures=MI("qMeasureInfo",t,n,a,sR({},i,{value:e=>null==e?void 0:e.qValue,type:"measure"})),s}))}function EI(){let{key:e,data:t,config:n={}}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const r={fields:[],wrappedFields:[],allFields:[],virtualFields:[]},i=t;if(!i)throw new Error('Missing "data" input');if(!i.qDimensionInfo)throw new Error('The "data" input is not recognized as a hypercube');const o=EI.util,a={cache:r,cube:i,localeInfo:n.localeInfo,fieldExtractor:null,pages:null,hierarchy:()=>null,virtualFields:n.virtualFields},s={key:()=>e,raw:()=>i,field:e=>function(e,t){let{cache:n}=t;if("number"==typeof e)return n.fields[e];const r=n.allFields;if("function"==typeof e){for(let t=0;t<r.length;t++)if(e(r[t]))return r[t];return!1}if("string"==typeof e){for(let t=0;t<r.length;t++)if(r[t].key()===e||r[t].title()===e)return r[t]}else if(e&&-1!==r.indexOf(e))return e;throw Error("Field not found: ".concat(e))}(e,a),fields:()=>r.fields.slice(),extract:e=>a.extractor(e,s,r,o),hierarchy:e=>a.hierarchy(e,s,r,o),_cache:()=>r};"K"===i.qMode||"T"===i.qMode||!i.qMode&&i.qNodesOnDim?(a.extractor=BR,a.hierarchy=HR,a.pages="K"===i.qMode?i.qStackedDataPages:i.qTreeDataPages):"S"===i.qMode?(a.extractor=dR,a.pages=i.qDataPages,a.hierarchy=HR):a.extractor=()=>[],a.fieldExtractor=e=>a.extractor({field:e},s,r,o);const l="S"===i.qMode?e=>e.qElemNumber:void 0,c="S"===i.qMode?e=>e.qNum:void 0;r.wrappedFields.push(...MI("qDimensionInfo",i,e,"",sR({},a,{value:l,type:"dimension"}))),r.wrappedFields.push(...MI("qMeasureInfo",i,e,"",sR({},a,{value:c,type:"measure"}))),r.fields=r.wrappedFields.map((e=>e.instance));const u=e=>{e.forEach((e=>{r.allFields.push(e.instance),u(e.measures),u(e.attrDims),u(e.attrExps)}))};return u(r.wrappedFields),(n.virtualFields||[]).forEach((t=>{const n=s.field(t.from),i=wI(KD({meta:n.raw(),id:"".concat(e,"/").concat(t.key),sourceField:n,fieldExtractor:e=>a.extractor({field:e},s,r,o),key:t.key,type:n.type(),localeInfo:a.localeInfo,value:n.value},t.override||{}));r.virtualFields.push(i)})),r.allFields.push(...r.virtualFields),s}const kI=[["qHyperCube","qHyperCubeDef"],["qTreeData","qTreeDataDef"],["qDimensionInfo","qDimensions"],["qMeasureInfo","qMeasures"],["qAttrDimInfo","qAttributeDimensions"],["qAttrExprInfo","qAttributeExpressions"]],CI=/\/qDimensionInfo(?:\/(\d+))?/,TI=/\/qMeasureInfo\/(\d+)/,AI=/\/qAttrDimInfo\/(\d+)(?:\/(\d+))?/,OI=/\/qAttrExprInfo\/(\d+)/,NI=/\/?qHyperCube/,qI=/\/?qTreeData/,DI=e=>"".concat(e.substr(0,e.indexOf("/qHyperCubeDef")+14)),RI=e=>"".concat(e.substr(0,e.indexOf("/qTreeDataDef")+13));function II(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;const r=t.byCells,i=t.primarySource,o=[],a={},s=e.isActive();let l=!1;if(e.brushes().forEach((e=>{const t=function(e,t){let n=e,r=-1,i=-1,o="",a=e=>e;NI.test(e)?(o="".concat(n.substr(0,n.indexOf("qHyperCube")+10)),a=DI):qI.test(e)&&(o="".concat(n.substr(0,n.indexOf("qTreeData")+9)),a=RI);let s=!0;if(CI.test(e)&&(r=+CI.exec(e)[1]),TI.test(e)&&(i=+TI.exec(e)[1]),AI.test(e)){i=-1,r=0;const e=+AI.exec(n)[2];isNaN(e)||(r=e,n=n.replace(/\/\d+$/,"")),s=!1}if(OI.test(e)){const e=i;if(t){i=0;const a=AR(o,t);i+=(a.qMeasureInfo||[]).length,r>-1?(i=a.qDimensionInfo.slice(0,r).reduce(((e,t)=>e+t.qAttrExprInfo.length),i),r=-1):(i=a.qDimensionInfo.reduce(((e,t)=>e+t.qAttrExprInfo.length),i),i=a.qMeasureInfo.slice(0,e).reduce(((e,t)=>e+t.qAttrExprInfo.length),i)),i+=+OI.exec(n)[1]}else r>-1?(r=-1,i=+OI.exec(n)[1]):i+=+OI.exec(n)[1]+1}return kI.forEach((e=>{let[t,r]=e;n=n.replace(t,r)})),s&&(n=a(n)),n&&"/"!==n[0]&&(n="/".concat(n)),{measureIdx:i,dimensionIdx:r,path:n}}(e.id,n);if("range"===e.type&&t.measureIdx>-1&&t.dimensionIdx>-1){const n=e.brush.ranges();n.length&&(l=!0,a.multiRangeSelectTreeDataValues||(a.multiRangeSelectTreeDataValues={path:t.path,ranges:[]}),n.forEach((e=>a.multiRangeSelectTreeDataValues.ranges.push({qMeasureIx:t.measureIdx,qDimensionIx:t.dimensionIdx,qRange:{qMin:e.min,qMax:e.max,qMinInclEq:!0,qMaxInclEq:!0}}))))}else{if("range"===e.type&&t.measureIdx>-1){const n=e.brush.ranges();n.length&&(l=!0,a.rangeSelectHyperCubeValues||(a.rangeSelectHyperCubeValues={path:t.path,ranges:[]}),n.forEach((e=>a.rangeSelectHyperCubeValues.ranges.push({qMeasureIx:t.measureIdx,qRange:{qMin:e.min,qMax:e.max,qMinInclEq:!0,qMaxInclEq:!0}}))))}if("range"===e.type&&t.dimensionIdx>-1){const n=e.brush.ranges();n.length&&(l=!0,a.selectHyperCubeContinuousRange||(a.selectHyperCubeContinuousRange={path:t.path,ranges:[]}),n.forEach((e=>a.selectHyperCubeContinuousRange.ranges.push({qDimIx:t.dimensionIdx,qRange:{qMin:e.min,qMax:e.max,qMinInclEq:!0,qMaxInclEq:!1}}))))}if("value"===e.type&&t.dimensionIdx>-1)if(r)if(n&&n.qHyperCube&&("P"===n.qHyperCube.qMode||"T"===n.qHyperCube.qMode||"K"===n.qHyperCube.qMode)){const r=n.qHyperCube,o=r.qNoOfLeftDims,s=r.qEffectiveInterColumnSortOrder.indexOf(t.dimensionIdx);if(a.selectPivotCells||(a.selectPivotCells={path:t.path,cells:[]}),e.id===i||!i){const n=e.brush.values().map((e=>+e)).filter((e=>!isNaN(e)));(0===o||s>=o)&&o>-1?n.forEach((e=>{a.selectPivotCells.cells.push({qType:"T",qCol:e,qRow:s-o})})):n.forEach((e=>{a.selectPivotCells.cells.push({qType:"L",qCol:t.dimensionIdx,qRow:e})})),l=!!a.selectPivotCells.cells.length}}else a.selectHyperCubeCells||(a.selectHyperCubeCells={path:t.path,cols:[]}),a.selectHyperCubeCells.cols.push(t.dimensionIdx),e.id!==i&&(i||a.selectHyperCubeCells.values)||(a.selectHyperCubeCells.values=e.brush.values().map((e=>+e)).filter((e=>!isNaN(e))),l=!!a.selectHyperCubeCells.values.length);else{const n=e.brush.values().map((e=>+e)).filter((e=>!isNaN(e)));l=!!n.length,o.push({params:[t.path,t.dimensionIdx,n,!1],method:"selectHyperCubeValues"})}}})),!l&&s)return[{method:"resetMadeSelections",params:[]}];var c;a.rangeSelectHyperCubeValues&&o.push({method:"rangeSelectHyperCubeValues",params:[a.rangeSelectHyperCubeValues.path,a.rangeSelectHyperCubeValues.ranges,[],null===(c=t.orMode)||void 0===c||c]});return a.selectHyperCubeContinuousRange&&o.push({method:"selectHyperCubeContinuousRange",params:[a.selectHyperCubeContinuousRange.path,a.selectHyperCubeContinuousRange.ranges]}),a.selectHyperCubeCells&&o.push({method:"selectHyperCubeCells",params:[a.selectHyperCubeCells.path,a.selectHyperCubeCells.values,a.selectHyperCubeCells.cols]}),a.selectPivotCells&&o.push({method:"selectPivotCells",params:[a.selectPivotCells.path,a.selectPivotCells.cells]}),a.multiRangeSelectTreeDataValues&&o.push({method:"multiRangeSelectTreeDataValues",params:[a.multiRangeSelectTreeDataValues.path,a.multiRangeSelectTreeDataValues.ranges]}),o}function _I(e){EI.util=e.data("matrix").util,e.data("q",EI),e.formatter("q-number",lI),e.formatter("q-time",xI)}_I.qBrushHelper=II,_I.selections=II;const PI={click:"Tap",Click:"Tap",tap:"Tap",pan:"Pan",swipe:"Swipe",rotate:"Rotate",press:"Press",pinch:"Pinch"};function LI(e){return PI[e]||e}function zI(e){return function(t,n,r){let i,o,a,s,l=[],c=!0;function u(){"function"==typeof i.enable&&(i.enable=i.enable.bind(o)()),i.enable&&(i.gestures.forEach((t=>{t.options=t.options||{},void 0===t.options.enable&&(t.options.enable=!0),"function"==typeof t.options.enable&&(t.options.enable=t.options.enable.bind(o));const n=LI(t.type);e&&e[n]&&(t.options.event=t.options.event||t.type.toLowerCase(),a=a||new e.Manager(r),a.add(new e[n](t.options)),Object.keys(t.events).forEach((e=>{t.events[e]=t.events[e].bind(o),a.on(e,t.events[e])})),l.push(t))})),i.gestures.forEach((t=>{const n=LI(t.type);e&&e[n]&&(t.recognizeWith&&a.get(t.options.event).recognizeWith(t.recognizeWith.split(" ").filter((e=>""!==e))),t.requireFailure&&a.get(t.options.event).requireFailure(t.requireFailure.split(" ").filter((e=>""!==e))))})))}function d(){l.forEach((e=>{Object.keys(e.events).forEach((t=>{a.off(t,e.events[t])})),a.remove(e.options.event)})),l=[]}return{get key(){return s},set(e){!function(e){s=e.key,i=e,o={chart:t,mediator:n,settings:i},i.gestures=i.gestures||[],void 0===i.enable&&(i.enable=!0)}(e),d(),c&&u()},off(){c=!1,d()},on(){c=!0,0===l.length&&u()},destroy(){d(),a&&a.destroy(),a=null,o=null,i=null}}}}var FI={exports:{}},jI={},$I=Object.getOwnPropertySymbols,HI=Object.prototype.hasOwnProperty,BI=Object.prototype.propertyIsEnumerable;var VI=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(t).map((function(e){return t[e]}));if("0123456789"!==r.join(""))return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach((function(e){i[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},i)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,r,i=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),o=1;o<arguments.length;o++){for(var a in n=Object(arguments[o]))HI.call(n,a)&&(i[a]=n[a]);if($I){r=$I(n);for(var s=0;s<r.length;s++)BI.call(n,r[s])&&(i[r[s]]=n[r[s]])}}return i},UI=VI,WI="function"==typeof Symbol&&Symbol.for,YI=WI?Symbol.for("react.element"):60103,XI=WI?Symbol.for("react.portal"):60106,GI=WI?Symbol.for("react.fragment"):60107,KI=WI?Symbol.for("react.strict_mode"):60108,JI=WI?Symbol.for("react.profiler"):60114,QI=WI?Symbol.for("react.provider"):60109,ZI=WI?Symbol.for("react.context"):60110,e_=WI?Symbol.for("react.forward_ref"):60112,t_=WI?Symbol.for("react.suspense"):60113,n_=WI?Symbol.for("react.memo"):60115,r_=WI?Symbol.for("react.lazy"):60116,i_="function"==typeof Symbol&&Symbol.iterator;
|
|
17
17
|
/** @license React v16.14.0
|
|
18
18
|
* react.production.min.js
|
|
19
19
|
*
|
|
@@ -21,14 +21,14 @@ e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,i,o,a,s,l,c,u,d,f=e.le
|
|
|
21
21
|
*
|
|
22
22
|
* This source code is licensed under the MIT license found in the
|
|
23
23
|
* LICENSE file in the root directory of this source tree.
|
|
24
|
-
*/function a_(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var s_={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},l_={};function c_(e,t,n){this.props=e,this.context=t,this.refs=l_,this.updater=n||s_}function u_(){}function d_(e,t,n){this.props=e,this.context=t,this.refs=l_,this.updater=n||s_}c_.prototype.isReactComponent={},c_.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(a_(85));this.updater.enqueueSetState(this,e,t,"setState")},c_.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},u_.prototype=c_.prototype;var f_=d_.prototype=new u_;f_.constructor=d_,WI(f_,c_.prototype),f_.isPureReactComponent=!0;var h_={current:null},p_=Object.prototype.hasOwnProperty,m_={key:!0,ref:!0,__self:!0,__source:!0};function g_(e,t,n){var r,i={},o=null,a=null;if(null!=t)for(r in void 0!==t.ref&&(a=t.ref),void 0!==t.key&&(o=""+t.key),t)p_.call(t,r)&&!m_.hasOwnProperty(r)&&(i[r]=t[r]);var s=arguments.length-2;if(1===s)i.children=n;else if(1<s){for(var l=Array(s),c=0;c<s;c++)l[c]=arguments[c+2];i.children=l}if(e&&e.defaultProps)for(r in s=e.defaultProps)void 0===i[r]&&(i[r]=s[r]);return{$$typeof:XI,type:e,key:o,ref:a,props:i,_owner:h_.current}}function y_(e){return"object"==typeof e&&null!==e&&e.$$typeof===XI}var v_=/\/+/g,b_=[];function x_(e,t,n,r){if(b_.length){var i=b_.pop();return i.result=e,i.keyPrefix=t,i.func=n,i.context=r,i.count=0,i}return{result:e,keyPrefix:t,func:n,context:r,count:0}}function S_(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>b_.length&&b_.push(e)}function w_(e,t,n,r){var i=typeof e;"undefined"!==i&&"boolean"!==i||(e=null);var o=!1;if(null===e)o=!0;else switch(i){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case XI:case GI:o=!0}}if(o)return n(r,e,""===t?"."+E_(e,0):t),1;if(o=0,t=""===t?".":t+":",Array.isArray(e))for(var a=0;a<e.length;a++){var s=t+E_(i=e[a],a);o+=w_(i,s,n,r)}else if(null===e||"object"!=typeof e?s=null:s="function"==typeof(s=o_&&e[o_]||e["@@iterator"])?s:null,"function"==typeof s)for(e=s.call(e),a=0;!(i=e.next()).done;)o+=w_(i=i.value,s=t+E_(i,a++),n,r);else if("object"===i)throw n=""+e,Error(a_(31,"[object Object]"===n?"object with keys {"+Object.keys(e).join(", ")+"}":n,""));return o}function M_(e,t,n){return null==e?0:w_(e,"",t,n)}function E_(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,(function(e){return t[e]}))}(e.key):t.toString(36)}function k_(e,t){e.func.call(e.context,t,e.count++)}function C_(e,t,n){var r=e.result,i=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?T_(e,r,n,(function(e){return e})):null!=e&&(y_(e)&&(e=function(e,t){return{$$typeof:XI,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(e,i+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(v_,"$&/")+"/")+n)),r.push(e))}function T_(e,t,n,r,i){var o="";null!=n&&(o=(""+n).replace(v_,"$&/")+"/"),M_(e,C_,t=x_(t,o,r,i)),S_(t)}var A_={current:null};function O_(){var e=A_.current;if(null===e)throw Error(a_(321));return e}var N_={ReactCurrentDispatcher:A_,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:h_,IsSomeRendererActing:{current:!1},assign:WI};$I.Children={map:function(e,t,n){if(null==e)return e;var r=[];return T_(e,r,null,t,n),r},forEach:function(e,t,n){if(null==e)return e;M_(e,k_,t=x_(null,null,t,n)),S_(t)},count:function(e){return M_(e,(function(){return null}),null)},toArray:function(e){var t=[];return T_(e,t,null,(function(e){return e})),t},only:function(e){if(!y_(e))throw Error(a_(143));return e}},$I.Component=c_,$I.Fragment=KI,$I.Profiler=QI,$I.PureComponent=d_,$I.StrictMode=JI,$I.Suspense=n_,$I.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=N_,$I.cloneElement=function(e,t,n){if(null==e)throw Error(a_(267,e));var r=WI({},e.props),i=e.key,o=e.ref,a=e._owner;if(null!=t){if(void 0!==t.ref&&(o=t.ref,a=h_.current),void 0!==t.key&&(i=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(l in t)p_.call(t,l)&&!m_.hasOwnProperty(l)&&(r[l]=void 0===t[l]&&void 0!==s?s[l]:t[l])}var l=arguments.length-2;if(1===l)r.children=n;else if(1<l){s=Array(l);for(var c=0;c<l;c++)s[c]=arguments[c+2];r.children=s}return{$$typeof:XI,type:e.type,key:i,ref:o,props:r,_owner:a}},$I.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:e_,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:ZI,_context:e},e.Consumer=e},$I.createElement=g_,$I.createFactory=function(e){var t=g_.bind(null,e);return t.type=e,t},$I.createRef=function(){return{current:null}},$I.forwardRef=function(e){return{$$typeof:t_,render:e}},$I.isValidElement=y_,$I.lazy=function(e){return{$$typeof:i_,_ctor:e,_status:-1,_result:null}},$I.memo=function(e,t){return{$$typeof:r_,type:e,compare:void 0===t?null:t}},$I.useCallback=function(e,t){return O_().useCallback(e,t)},$I.useContext=function(e,t){return O_().useContext(e,t)},$I.useDebugValue=function(){},$I.useEffect=function(e,t){return O_().useEffect(e,t)},$I.useImperativeHandle=function(e,t,n){return O_().useImperativeHandle(e,t,n)},$I.useLayoutEffect=function(e,t){return O_().useLayoutEffect(e,t)},$I.useMemo=function(e,t){return O_().useMemo(e,t)},$I.useReducer=function(e,t,n){return O_().useReducer(e,t,n)},$I.useRef=function(e){return O_().useRef(e)},$I.useState=function(e){return O_().useState(e)},$I.version="16.14.0",jI.exports=$I;var q_=jI.exports,D_=n(q_),R_={exports:{}};function I_(){}function __(){}__.resetWarningCache=I_;R_.exports=function(){function e(e,t,n,r,i,o){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==o){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:__,resetWarningCache:I_};return n.PropTypes=n,n}();var P_=n(R_.exports),L_={black:"#000",white:"#fff"},z_={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},F_={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162"},j_={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe"},$_={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},H_={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},B_={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},V_={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"};function U_(){return U_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},U_.apply(this,arguments)}function W_(e){return W_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},W_(e)}function Y_(e){return e&&"object"===W_(e)&&e.constructor===Object}function X_(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},r=n.clone?U_({},e):e;return Y_(e)&&Y_(t)&&Object.keys(t).forEach((function(i){"__proto__"!==i&&(Y_(t[i])&&i in e?r[i]=X_(e[i],t[i],n):r[i]=t[i])})),r}function G_(e){var t=function(e,t){if("object"!==W_(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==W_(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===W_(t)?t:String(t)}function K_(e,t,n){return(t=G_(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function J_(e){for(var t="https://mui.com/production-error/?code="+e,n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified Material-UI error #"+e+"; visit "+t+" for the full message."}function Q_(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),n)}function Z_(e){if(e.type)return e;if("#"===e.charAt(0))return Z_(function(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map((function(e){return e+e}))),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(n))throw new Error(J_(3,e));var r=e.substring(t+1,e.length-1).split(",");return r=r.map((function(e){return parseFloat(e)})),{type:n,values:r}}function eP(e){var t=e.type,n=e.values;return-1!==t.indexOf("rgb")?n=n.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),"".concat(t,"(").concat(n.join(", "),")")}function tP(e){var t="hsl"===(e=Z_(e)).type?Z_(function(e){var t=(e=Z_(e)).values,n=t[0],r=t[1]/100,i=t[2]/100,o=r*Math.min(i,1-i),a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return i-o*Math.max(Math.min(t-3,9-t,1),-1)},s="rgb",l=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),eP({type:s,values:l})}(e)).values:e.values;return t=t.map((function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)})),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function nP(e,t){return e=Z_(e),t=Q_(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,eP(e)}function rP(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}function iP(e,t){if(null==e)return{};var n,r,i=rP(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var oP=["xs","sm","md","lg","xl"];function aP(e,t,n){var r;return U_({gutters:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return console.warn(["Material-UI: theme.mixins.gutters() is deprecated.","You can use the source of the mixin directly:","\n paddingLeft: theme.spacing(2),\n paddingRight: theme.spacing(2),\n [theme.breakpoints.up('sm')]: {\n paddingLeft: theme.spacing(3),\n paddingRight: theme.spacing(3),\n },\n "].join("\n")),U_({paddingLeft:t(2),paddingRight:t(2)},n,K_({},e.up("sm"),U_({paddingLeft:t(3),paddingRight:t(3)},n[e.up("sm")])))},toolbar:(r={minHeight:56},K_(r,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),K_(r,e.up("sm"),{minHeight:64}),r)},n)}var sP={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:L_.white,default:V_[50]},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},lP={text:{primary:L_.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:V_[800],default:"#303030"},action:{active:L_.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function cP(e,t,n,r){var i=r.light||r,o=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=function(e,t){if(e=Z_(e),t=Q_(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;return eP(e)}(e.main,i):"dark"===t&&(e.dark=function(e,t){if(e=Z_(e),t=Q_(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]*=1-t;return eP(e)}(e.main,o)))}function uP(e){var t=e.primary,n=void 0===t?{light:j_[300],main:j_[500],dark:j_[700]}:t,r=e.secondary,i=void 0===r?{light:F_.A200,main:F_.A400,dark:F_.A700}:r,o=e.error,a=void 0===o?{light:z_[300],main:z_[500],dark:z_[700]}:o,s=e.warning,l=void 0===s?{light:B_[300],main:B_[500],dark:B_[700]}:s,c=e.info,u=void 0===c?{light:$_[300],main:$_[500],dark:$_[700]}:c,d=e.success,f=void 0===d?{light:H_[300],main:H_[500],dark:H_[700]}:d,h=e.type,p=void 0===h?"light":h,m=e.contrastThreshold,g=void 0===m?3:m,y=e.tonalOffset,v=void 0===y?.2:y,b=iP(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function x(e){var t=function(e,t){var n=tP(e),r=tP(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}(e,lP.text.primary)>=g?lP.text.primary:sP.text.primary;return t}var S=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:700;if(!(e=U_({},e)).main&&e[t]&&(e.main=e[t]),!e.main)throw new Error(J_(4,t));if("string"!=typeof e.main)throw new Error(J_(5,JSON.stringify(e.main)));return cP(e,"light",n,v),cP(e,"dark",r,v),e.contrastText||(e.contrastText=x(e.main)),e},w={dark:lP,light:sP};return X_(U_({common:L_,type:p,primary:S(n),secondary:S(i,"A400","A200","A700"),error:S(a),warning:S(l),info:S(u),success:S(f),grey:V_,contrastThreshold:g,getContrastText:x,augmentColor:S,tonalOffset:v},w[p]),b)}function dP(e){return Math.round(1e5*e)/1e5}function fP(e){return dP(e)}var hP={textTransform:"uppercase"},pP='"Roboto", "Helvetica", "Arial", sans-serif';function mP(e,t){var n="function"==typeof t?t(e):t,r=n.fontFamily,i=void 0===r?pP:r,o=n.fontSize,a=void 0===o?14:o,s=n.fontWeightLight,l=void 0===s?300:s,c=n.fontWeightRegular,u=void 0===c?400:c,d=n.fontWeightMedium,f=void 0===d?500:d,h=n.fontWeightBold,p=void 0===h?700:h,m=n.htmlFontSize,g=void 0===m?16:m,y=n.allVariants,v=n.pxToRem,b=iP(n,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]),x=a/14,S=v||function(e){return"".concat(e/g*x,"rem")},w=function(e,t,n,r,o){return U_({fontFamily:i,fontWeight:e,fontSize:S(t),lineHeight:n},i===pP?{letterSpacing:"".concat(dP(r/t),"em")}:{},o,y)},M={h1:w(l,96,1.167,-1.5),h2:w(l,60,1.2,-.5),h3:w(u,48,1.167,0),h4:w(u,34,1.235,.25),h5:w(u,24,1.334,0),h6:w(f,20,1.6,.15),subtitle1:w(u,16,1.75,.15),subtitle2:w(f,14,1.57,.1),body1:w(u,16,1.5,.15),body2:w(u,14,1.43,.15),button:w(f,14,1.75,.4,hP),caption:w(u,12,1.66,.4),overline:w(u,12,2.66,1,hP)};return X_(U_({htmlFontSize:g,pxToRem:S,round:fP,fontFamily:i,fontSize:a,fontWeightLight:l,fontWeightRegular:u,fontWeightMedium:f,fontWeightBold:p},M),b,{clone:!1})}function gP(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}var yP=["none",gP(0,2,1,-1,0,1,1,0,0,1,3,0),gP(0,3,1,-2,0,2,2,0,0,1,5,0),gP(0,3,3,-2,0,3,4,0,0,1,8,0),gP(0,2,4,-1,0,4,5,0,0,1,10,0),gP(0,3,5,-1,0,5,8,0,0,1,14,0),gP(0,3,5,-1,0,6,10,0,0,1,18,0),gP(0,4,5,-2,0,7,10,1,0,2,16,1),gP(0,5,5,-3,0,8,10,1,0,3,14,2),gP(0,5,6,-3,0,9,12,1,0,3,16,2),gP(0,6,6,-3,0,10,14,1,0,4,18,3),gP(0,6,7,-4,0,11,15,1,0,4,20,3),gP(0,7,8,-4,0,12,17,2,0,5,22,4),gP(0,7,8,-4,0,13,19,2,0,5,24,4),gP(0,7,9,-4,0,14,21,2,0,5,26,4),gP(0,8,9,-5,0,15,22,2,0,6,28,5),gP(0,8,10,-5,0,16,24,2,0,6,30,5),gP(0,8,11,-5,0,17,26,2,0,6,32,5),gP(0,9,11,-5,0,18,28,2,0,7,34,6),gP(0,9,12,-6,0,19,29,2,0,7,36,6),gP(0,10,13,-6,0,20,31,3,0,8,38,7),gP(0,10,13,-6,0,21,33,3,0,8,40,7),gP(0,10,14,-6,0,22,35,3,0,8,42,7),gP(0,11,14,-7,0,23,36,3,0,9,44,8),gP(0,11,15,-7,0,24,38,3,0,9,46,8)],vP={borderRadius:4};function bP(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function xP(e,t){if(e){if("string"==typeof e)return bP(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?bP(e,t):void 0}}function SP(e){return function(e){if(Array.isArray(e))return bP(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||xP(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function wP(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||xP(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function MP(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(e.mui)return e;var t=function(e){var t=e.spacing||8;return"number"==typeof t?function(e){return t*e}:Array.isArray(t)?function(e){return t[e]}:"function"==typeof t?t:function(){}}({spacing:e}),n=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return 0===n.length?t(1):1===n.length?t(n[0]):n.map((function(e){if("string"==typeof e)return e;var n=t(e);return"number"==typeof n?"".concat(n,"px"):n})).join(" ")};return Object.defineProperty(n,"unit",{get:function(){return e}}),n.mui=!0,n}var EP={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},kP={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function CP(e){return"".concat(Math.round(e),"ms")}var TP={easing:EP,duration:kP,create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.duration,r=void 0===n?kP.standard:n,i=t.easing,o=void 0===i?EP.easeInOut:i,a=t.delay,s=void 0===a?0:a;return iP(t,["duration","easing","delay"]),(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"==typeof r?r:CP(r)," ").concat(o," ").concat("string"==typeof s?s:CP(s))})).join(",")},getAutoHeightDuration:function(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}},AP={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function OP(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.breakpoints,n=void 0===t?{}:t,r=e.mixins,i=void 0===r?{}:r,o=e.palette,a=void 0===o?{}:o,s=e.spacing,l=e.typography,c=void 0===l?{}:l,u=iP(e,["breakpoints","mixins","palette","spacing","typography"]),d=uP(a),f=function(e){var t=e.values,n=void 0===t?{xs:0,sm:600,md:960,lg:1280,xl:1920}:t,r=e.unit,i=void 0===r?"px":r,o=e.step,a=void 0===o?5:o,s=iP(e,["values","unit","step"]);function l(e){var t="number"==typeof n[e]?n[e]:e;return"@media (min-width:".concat(t).concat(i,")")}function c(e,t){var r=oP.indexOf(t);return r===oP.length-1?l(e):"@media (min-width:".concat("number"==typeof n[e]?n[e]:e).concat(i,") and ")+"(max-width:".concat((-1!==r&&"number"==typeof n[oP[r+1]]?n[oP[r+1]]:t)-a/100).concat(i,")")}return U_({keys:oP,values:n,up:l,down:function(e){var t=oP.indexOf(e)+1,r=n[oP[t]];return t===oP.length?l("xs"):"@media (max-width:".concat(("number"==typeof r&&t>0?r:e)-a/100).concat(i,")")},between:c,only:function(e){return c(e,e)},width:function(e){return n[e]}},s)}(n),h=MP(s),p=X_({breakpoints:f,direction:"ltr",mixins:aP(f,h,i),overrides:{},palette:d,props:{},shadows:yP,typography:mP(d,c),spacing:h,shape:vP,transitions:TP,zIndex:AP},u),m=arguments.length,g=new Array(m>1?m-1:0),y=1;y<m;y++)g[y-1]=arguments[y];return p=g.reduce((function(e,t){return X_(e,t)}),p)}var NP="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",qP=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function DP(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.disableGlobal,n=void 0!==t&&t,r=e.productionPrefix,i=void 0===r?"jss":r,o=e.seed,a=void 0===o?"":o,s=""===a?"":"".concat(a,"-"),l=0,c=function(){return l+=1};return function(e,t){var r=t.options.name;if(r&&0===r.indexOf("Mui")&&!t.options.link&&!n){if(-1!==qP.indexOf(e.key))return"Mui-".concat(e.key);var o="".concat(s).concat(r,"-").concat(e.key);return t.options.theme[NP]&&""===a?"".concat(o,"-").concat(c()):o}return"".concat(s).concat(i).concat(c())}}function RP(e){var t=e.theme,n=e.name,r=e.props;if(!t||!t.props||!t.props[n])return r;var i,o=t.props[n];for(i in o)void 0===r[i]&&(r[i]=o[i]);return r}var IP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_P="object"===("undefined"==typeof window?"undefined":IP(window))&&"object"===("undefined"==typeof document?"undefined":IP(document))&&9===document.nodeType;function PP(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,G_(r.key),r)}}function LP(e,t,n){return t&&PP(e.prototype,t),n&&PP(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function zP(e,t){return zP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},zP(e,t)}function FP(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,zP(e,t)}function jP(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var $P={}.constructor;function HP(e){if(null==e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(HP);if(e.constructor!==$P)return e;var t={};for(var n in e)t[n]=HP(e[n]);return t}function BP(e,t,n){void 0===e&&(e="unnamed");var r=n.jss,i=HP(t),o=r.plugins.onCreateRule(e,i,n);return o||(e[0],null)}var VP=function(e,t){for(var n="",r=0;r<e.length&&"!important"!==e[r];r++)n&&(n+=t),n+=e[r];return n},UP=function(e){if(!Array.isArray(e))return e;var t="";if(Array.isArray(e[0]))for(var n=0;n<e.length&&"!important"!==e[n];n++)t&&(t+=", "),t+=VP(e[n]," ");else t=VP(e,", ");return"!important"===e[e.length-1]&&(t+=" !important"),t};function WP(e){return e&&!1===e.format?{linebreak:"",space:""}:{linebreak:"\n",space:" "}}function YP(e,t){for(var n="",r=0;r<t;r++)n+=" ";return n+e}function XP(e,t,n){void 0===n&&(n={});var r="";if(!t)return r;var i=n.indent,o=void 0===i?0:i,a=t.fallbacks;!1===n.format&&(o=-1/0);var s=WP(n),l=s.linebreak,c=s.space;if(e&&o++,a)if(Array.isArray(a))for(var u=0;u<a.length;u++){var d=a[u];for(var f in d){var h=d[f];null!=h&&(r&&(r+=l),r+=YP(f+":"+c+UP(h)+";",o))}}else for(var p in a){var m=a[p];null!=m&&(r&&(r+=l),r+=YP(p+":"+c+UP(m)+";",o))}for(var g in t){var y=t[g];null!=y&&"fallbacks"!==g&&(r&&(r+=l),r+=YP(g+":"+c+UP(y)+";",o))}return(r||n.allowEmpty)&&e?(r&&(r=""+l+r+l),YP(""+e+c+"{"+r,--o)+YP("}",o)):r}var GP=/([[\].#*$><+~=|^:(),"'`\s])/g,KP="undefined"!=typeof CSS&&CSS.escape,JP=function(e){return KP?KP(e):e.replace(GP,"\\$1")},QP=function(){function e(e,t,n){this.type="style",this.isProcessed=!1;var r=n.sheet,i=n.Renderer;this.key=e,this.options=n,this.style=t,r?this.renderer=r.renderer:i&&(this.renderer=new i)}return e.prototype.prop=function(e,t,n){if(void 0===t)return this.style[e];var r=!!n&&n.force;if(!r&&this.style[e]===t)return this;var i=t;n&&!1===n.process||(i=this.options.jss.plugins.onChangeValue(t,e,this));var o=null==i||!1===i,a=e in this.style;if(o&&!a&&!r)return this;var s=o&&a;if(s?delete this.style[e]:this.style[e]=i,this.renderable&&this.renderer)return s?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,i),this;var l=this.options.sheet;return l&&l.attached,this},e}(),ZP=function(e){function t(t,n,r){var i;i=e.call(this,t,n,r)||this;var o=r.selector,a=r.scoped,s=r.sheet,l=r.generateId;return o?i.selectorText=o:!1!==a&&(i.id=l(jP(jP(i)),s),i.selectorText="."+JP(i.id)),i}FP(t,e);var n=t.prototype;return n.applyTo=function(e){var t=this.renderer;if(t){var n=this.toJSON();for(var r in n)t.setProperty(e,r,n[r])}return this},n.toJSON=function(){var e={};for(var t in this.style){var n=this.style[t];"object"!=typeof n?e[t]=n:Array.isArray(n)&&(e[t]=UP(n))}return e},n.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?U_({},e,{allowEmpty:!0}):e;return XP(this.selectorText,this.style,n)},LP(t,[{key:"selector",set:function(e){if(e!==this.selectorText){this.selectorText=e;var t=this.renderer,n=this.renderable;if(n&&t)t.setSelector(n,e)||t.replaceRule(n,this)}},get:function(){return this.selectorText}}]),t}(QP),eL={onCreateRule:function(e,t,n){return"@"===e[0]||n.parent&&"keyframes"===n.parent.type?null:new ZP(e,t,n)}},tL={indent:1,children:!0},nL=/@([\w-]+)/,rL=function(){function e(e,t,n){this.type="conditional",this.isProcessed=!1,this.key=e;var r=e.match(nL);for(var i in this.at=r?r[1]:"unknown",this.query=n.name||"@"+this.at,this.options=n,this.rules=new TL(U_({},n,{parent:this})),t)this.rules.add(i,t[i]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.indexOf=function(e){return this.rules.indexOf(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r?(this.options.jss.plugins.onProcessRule(r),r):null},t.replaceRule=function(e,t,n){var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.toString=function(e){void 0===e&&(e=tL);var t=WP(e).linebreak;if(null==e.indent&&(e.indent=tL.indent),null==e.children&&(e.children=tL.children),!1===e.children)return this.query+" {}";var n=this.rules.toString(e);return n?this.query+" {"+t+n+t+"}":""},e}(),iL=/@container|@media|@supports\s+/,oL={onCreateRule:function(e,t,n){return iL.test(e)?new rL(e,t,n):null}},aL={indent:1,children:!0},sL=/@keyframes\s+([\w-]+)/,lL=function(){function e(e,t,n){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var r=e.match(sL);r&&r[1]?this.name=r[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=n;var i=n.scoped,o=n.sheet,a=n.generateId;for(var s in this.id=!1===i?this.name:JP(a(this,o)),this.rules=new TL(U_({},n,{parent:this})),t)this.rules.add(s,t[s],U_({},n,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){void 0===e&&(e=aL);var t=WP(e).linebreak;if(null==e.indent&&(e.indent=aL.indent),null==e.children&&(e.children=aL.children),!1===e.children)return this.at+" "+this.id+" {}";var n=this.rules.toString(e);return n&&(n=""+t+n+t),this.at+" "+this.id+" {"+n+"}"},e}(),cL=/@keyframes\s+/,uL=/\$([\w-]+)/g,dL=function(e,t){return"string"==typeof e?e.replace(uL,(function(e,n){return n in t?t[n]:e})):e},fL=function(e,t,n){var r=e[t],i=dL(r,n);i!==r&&(e[t]=i)},hL={onCreateRule:function(e,t,n){return"string"==typeof e&&cL.test(e)?new lL(e,t,n):null},onProcessStyle:function(e,t,n){return"style"===t.type&&n?("animation-name"in e&&fL(e,"animation-name",n.keyframes),"animation"in e&&fL(e,"animation",n.keyframes),e):e},onChangeValue:function(e,t,n){var r=n.options.sheet;if(!r)return e;switch(t){case"animation":case"animation-name":return dL(e,r.keyframes);default:return e}}},pL=function(e){function t(){return e.apply(this,arguments)||this}return FP(t,e),t.prototype.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?U_({},e,{allowEmpty:!0}):e;return XP(this.key,this.style,n)},t}(QP),mL={onCreateRule:function(e,t,n){return n.parent&&"keyframes"===n.parent.type?new pL(e,t,n):null}},gL=function(){function e(e,t,n){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){var t=WP(e).linebreak;if(Array.isArray(this.style)){for(var n="",r=0;r<this.style.length;r++)n+=XP(this.at,this.style[r]),this.style[r+1]&&(n+=t);return n}return XP(this.at,this.style,e)},e}(),yL=/@font-face/,vL={onCreateRule:function(e,t,n){return yL.test(e)?new gL(e,t,n):null}},bL=function(){function e(e,t,n){this.type="viewport",this.at="@viewport",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){return XP(this.key,this.style,e)},e}(),xL={onCreateRule:function(e,t,n){return"@viewport"===e||"@-ms-viewport"===e?new bL(e,t,n):null}},SL=function(){function e(e,t,n){this.type="simple",this.isProcessed=!1,this.key=e,this.value=t,this.options=n}return e.prototype.toString=function(e){if(Array.isArray(this.value)){for(var t="",n=0;n<this.value.length;n++)t+=this.key+" "+this.value[n]+";",this.value[n+1]&&(t+="\n");return t}return this.key+" "+this.value+";"},e}(),wL={"@charset":!0,"@import":!0,"@namespace":!0},ML={onCreateRule:function(e,t,n){return e in wL?new SL(e,t,n):null}},EL=[eL,oL,hL,mL,vL,xL,ML],kL={process:!0},CL={force:!0,process:!0},TL=function(){function e(e){this.map={},this.raw={},this.index=[],this.counter=0,this.options=e,this.classes=e.classes,this.keyframes=e.keyframes}var t=e.prototype;return t.add=function(e,t,n){var r=this.options,i=r.parent,o=r.sheet,a=r.jss,s=r.Renderer,l=r.generateId,c=r.scoped,u=U_({classes:this.classes,parent:i,sheet:o,jss:a,Renderer:s,generateId:l,scoped:c,name:e,keyframes:this.keyframes,selector:void 0},n),d=e;e in this.raw&&(d=e+"-d"+this.counter++),this.raw[d]=t,d in this.classes&&(u.selector="."+JP(this.classes[d]));var f=BP(d,t,u);if(!f)return null;this.register(f);var h=void 0===u.index?this.index.length:u.index;return this.index.splice(h,0,f),f},t.replace=function(e,t,n){var r=this.get(e),i=this.index.indexOf(r);r&&this.remove(r);var o=n;return-1!==i&&(o=U_({},n,{index:i})),this.add(e,t,o)},t.get=function(e){return this.map[e]},t.remove=function(e){this.unregister(e),delete this.raw[e.key],this.index.splice(this.index.indexOf(e),1)},t.indexOf=function(e){return this.index.indexOf(e)},t.process=function(){var e=this.options.jss.plugins;this.index.slice(0).forEach(e.onProcessRule,e)},t.register=function(e){this.map[e.key]=e,e instanceof ZP?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof lL&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof ZP?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof lL&&delete this.keyframes[e.name]},t.update=function(){var e,t,n;if("string"==typeof(arguments.length<=0?void 0:arguments[0])?(e=arguments.length<=0?void 0:arguments[0],t=arguments.length<=1?void 0:arguments[1],n=arguments.length<=2?void 0:arguments[2]):(t=arguments.length<=0?void 0:arguments[0],n=arguments.length<=1?void 0:arguments[1],e=null),e)this.updateOne(this.get(e),t,n);else for(var r=0;r<this.index.length;r++)this.updateOne(this.index[r],t,n)},t.updateOne=function(t,n,r){void 0===r&&(r=kL);var i=this.options,o=i.jss.plugins,a=i.sheet;if(t.rules instanceof e)t.rules.update(n,r);else{var s=t.style;if(o.onUpdate(n,t,a,r),r.process&&s&&s!==t.style){for(var l in o.onProcessStyle(t.style,t,a),t.style){var c=t.style[l];c!==s[l]&&t.prop(l,c,CL)}for(var u in s){var d=t.style[u],f=s[u];null==d&&d!==f&&t.prop(u,null,CL)}}}},t.toString=function(e){for(var t="",n=this.options.sheet,r=!!n&&n.options.link,i=WP(e).linebreak,o=0;o<this.index.length;o++){var a=this.index[o].toString(e);(a||r)&&(t&&(t+=i),t+=a)}return t},e}(),AL=function(){function e(e,t){for(var n in this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=U_({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new TL(this.options),e)this.rules.add(n,e[n]);this.rules.process()}var t=e.prototype;return t.attach=function(){return this.attached||(this.renderer&&this.renderer.attach(),this.attached=!0,this.deployed||this.deploy()),this},t.detach=function(){return this.attached?(this.renderer&&this.renderer.detach(),this.attached=!1,this):this},t.addRule=function(e,t,n){var r=this.queue;this.attached&&!r&&(this.queue=[]);var i=this.rules.add(e,t,n);return i?(this.options.jss.plugins.onProcessRule(i),this.attached?this.deployed?(r?r.push(i):(this.insertRule(i),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0)),i):i:(this.deployed=!1,i)):null},t.replaceRule=function(e,t,n){var r=this.rules.get(e);if(!r)return this.addRule(e,t,n);var i=this.rules.replace(e,t,n);return i&&this.options.jss.plugins.onProcessRule(i),this.attached?this.deployed?(this.renderer&&(i?r.renderable&&this.renderer.replaceRule(r.renderable,i):this.renderer.deleteRule(r)),i):i:(this.deployed=!1,i)},t.insertRule=function(e){this.renderer&&this.renderer.insertRule(e)},t.addRules=function(e,t){var n=[];for(var r in e){var i=this.addRule(r,e[r],t);i&&n.push(i)}return n},t.getRule=function(e){return this.rules.get(e)},t.deleteRule=function(e){var t="object"==typeof e?e:this.rules.get(e);return!(!t||this.attached&&!t.renderable)&&(this.rules.remove(t),!(this.attached&&t.renderable&&this.renderer)||this.renderer.deleteRule(t.renderable))},t.indexOf=function(e){return this.rules.indexOf(e)},t.deploy=function(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},t.update=function(){var e;return(e=this.rules).update.apply(e,arguments),this},t.updateOne=function(e,t,n){return this.rules.updateOne(e,t,n),this},t.toString=function(e){return this.rules.toString(e)},e}(),OL=function(){function e(){this.plugins={internal:[],external:[]},this.registry={}}var t=e.prototype;return t.onCreateRule=function(e,t,n){for(var r=0;r<this.registry.onCreateRule.length;r++){var i=this.registry.onCreateRule[r](e,t,n);if(i)return i}return null},t.onProcessRule=function(e){if(!e.isProcessed){for(var t=e.options.sheet,n=0;n<this.registry.onProcessRule.length;n++)this.registry.onProcessRule[n](e,t);e.style&&this.onProcessStyle(e.style,e,t),e.isProcessed=!0}},t.onProcessStyle=function(e,t,n){for(var r=0;r<this.registry.onProcessStyle.length;r++)t.style=this.registry.onProcessStyle[r](t.style,t,n)},t.onProcessSheet=function(e){for(var t=0;t<this.registry.onProcessSheet.length;t++)this.registry.onProcessSheet[t](e)},t.onUpdate=function(e,t,n,r){for(var i=0;i<this.registry.onUpdate.length;i++)this.registry.onUpdate[i](e,t,n,r)},t.onChangeValue=function(e,t,n){for(var r=e,i=0;i<this.registry.onChangeValue.length;i++)r=this.registry.onChangeValue[i](r,t,n);return r},t.use=function(e,t){void 0===t&&(t={queue:"external"});var n=this.plugins[t.queue];-1===n.indexOf(e)&&(n.push(e),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce((function(e,t){for(var n in t)n in e&&e[n].push(t[n]);return e}),{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},e}(),NL=function(){function e(){this.registry=[]}var t=e.prototype;return t.add=function(e){var t=this.registry,n=e.options.index;if(-1===t.indexOf(e))if(0===t.length||n>=this.index)t.push(e);else for(var r=0;r<t.length;r++)if(t[r].options.index>n)return void t.splice(r,0,e)},t.reset=function(){this.registry=[]},t.remove=function(e){var t=this.registry.indexOf(e);this.registry.splice(t,1)},t.toString=function(e){for(var t=void 0===e?{}:e,n=t.attached,r=rP(t,["attached"]),i=WP(r).linebreak,o="",a=0;a<this.registry.length;a++){var s=this.registry[a];null!=n&&s.attached!==n||(o&&(o+=i),o+=s.toString(r))}return o},LP(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}(),qL=new NL,DL="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof self&&self.Math===Math?self:Function("return this")(),RL="2f1acc6c3a606b082e5eef5e54414ffb";null==DL[RL]&&(DL[RL]=0);var IL=DL[RL]++,_L=function(e){void 0===e&&(e={});var t=0;return function(n,r){t+=1;var i="",o="";return r&&(r.options.classNamePrefix&&(o=r.options.classNamePrefix),null!=r.options.jss.id&&(i=String(r.options.jss.id))),e.minify?""+(o||"c")+IL+i+t:o+n.key+"-"+IL+(i?"-"+i:"")+"-"+t}},PL=function(e){var t;return function(){return t||(t=e()),t}},LL=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(e){return""}},zL=function(e,t,n){try{var r=n;if(Array.isArray(n)&&(r=UP(n)),e.attributeStyleMap)e.attributeStyleMap.set(t,r);else{var i=r?r.indexOf("!important"):-1,o=i>-1?r.substr(0,i-1):r;e.style.setProperty(t,o,i>-1?"important":"")}}catch(e){return!1}return!0},FL=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(e){}},jL=function(e,t){return e.selectorText=t,e.selectorText===t},$L=PL((function(){return document.querySelector("head")}));function HL(e){var t=qL.registry;if(t.length>0){var n=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.attached&&r.options.index>t.index&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e);if(n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element};if(n=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.attached&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e),n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element.nextSibling}}var r=e.insertionPoint;if(r&&"string"==typeof r){var i=function(e){for(var t=$L(),n=0;n<t.childNodes.length;n++){var r=t.childNodes[n];if(8===r.nodeType&&r.nodeValue.trim()===e)return r}return null}(r);if(i)return{parent:i.parentNode,node:i.nextSibling}}return!1}var BL=PL((function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null})),VL=function(e,t,n){try{"insertRule"in e?e.insertRule(t,n):"appendRule"in e&&e.appendRule(t)}catch(e){return!1}return e.cssRules[n]},UL=function(e,t){var n=e.cssRules.length;return void 0===t||t>n?n:t},WL=function(){function e(e){this.getPropertyValue=LL,this.setProperty=zL,this.removeProperty=FL,this.setSelector=jL,this.hasInsertedRules=!1,this.cssRules=[],e&&qL.add(e),this.sheet=e;var t=this.sheet?this.sheet.options:{},n=t.media,r=t.meta,i=t.element;this.element=i||function(){var e=document.createElement("style");return e.textContent="\n",e}(),this.element.setAttribute("data-jss",""),n&&this.element.setAttribute("media",n),r&&this.element.setAttribute("data-meta",r);var o=BL();o&&this.element.setAttribute("nonce",o)}var t=e.prototype;return t.attach=function(){if(!this.element.parentNode&&this.sheet){!function(e,t){var n=t.insertionPoint,r=HL(t);if(!1!==r&&r.parent)r.parent.insertBefore(e,r.node);else if(n&&"number"==typeof n.nodeType){var i=n,o=i.parentNode;o&&o.insertBefore(e,i.nextSibling)}else $L().appendChild(e)}(this.element,this.sheet.options);var e=Boolean(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&e&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var e=this.element.parentNode;e&&e.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent="\n")}},t.deploy=function(){var e=this.sheet;e&&(e.options.link?this.insertRules(e.rules):this.element.textContent="\n"+e.toString()+"\n")},t.insertRules=function(e,t){for(var n=0;n<e.index.length;n++)this.insertRule(e.index[n],n,t)},t.insertRule=function(e,t,n){if(void 0===n&&(n=this.element.sheet),e.rules){var r=e,i=n;if("conditional"===e.type||"keyframes"===e.type){var o=UL(n,t);if(!1===(i=VL(n,r.toString({children:!1}),o)))return!1;this.refCssRule(e,o,i)}return this.insertRules(r.rules,i),i}var a=e.toString();if(!a)return!1;var s=UL(n,t),l=VL(n,a,s);return!1!==l&&(this.hasInsertedRules=!0,this.refCssRule(e,s,l),l)},t.refCssRule=function(e,t,n){e.renderable=n,e.options.parent instanceof AL&&this.cssRules.splice(t,0,n)},t.deleteRule=function(e){var t=this.element.sheet,n=this.indexOf(e);return-1!==n&&(t.deleteRule(n),this.cssRules.splice(n,1),!0)},t.indexOf=function(e){return this.cssRules.indexOf(e)},t.replaceRule=function(e,t){var n=this.indexOf(e);return-1!==n&&(this.element.sheet.deleteRule(n),this.cssRules.splice(n,1),this.insertRule(t,n))},t.getRules=function(){return this.element.sheet.cssRules},e}(),YL=0,XL=function(){function e(e){this.id=YL++,this.version="10.10.0",this.plugins=new OL,this.options={id:{minify:!1},createGenerateId:_L,Renderer:_P?WL:null,plugins:[]},this.generateId=_L({minify:!1});for(var t=0;t<EL.length;t++)this.plugins.use(EL[t],{queue:"internal"});this.setup(e)}var t=e.prototype;return t.setup=function(e){return void 0===e&&(e={}),e.createGenerateId&&(this.options.createGenerateId=e.createGenerateId),e.id&&(this.options.id=U_({},this.options.id,e.id)),(e.createGenerateId||e.id)&&(this.generateId=this.options.createGenerateId(this.options.id)),null!=e.insertionPoint&&(this.options.insertionPoint=e.insertionPoint),"Renderer"in e&&(this.options.Renderer=e.Renderer),e.plugins&&this.use.apply(this,e.plugins),this},t.createStyleSheet=function(e,t){void 0===t&&(t={});var n=t.index;"number"!=typeof n&&(n=0===qL.index?0:qL.index+1);var r=new AL(e,U_({},t,{jss:this,generateId:t.generateId||this.generateId,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:n}));return this.plugins.onProcessSheet(r),r},t.removeStyleSheet=function(e){return e.detach(),qL.remove(e),this},t.createRule=function(e,t,n){if(void 0===t&&(t={}),void 0===n&&(n={}),"object"==typeof e)return this.createRule(void 0,e,t);var r=U_({},n,{name:e,jss:this,Renderer:this.options.Renderer});r.generateId||(r.generateId=this.generateId),r.classes||(r.classes={}),r.keyframes||(r.keyframes={});var i=BP(e,t,r);return i&&this.plugins.onProcessRule(i),i},t.use=function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach((function(t){e.plugins.use(t)})),this},e}(),GL=function(e){return new XL(e)},KL="object"==typeof CSS&&null!=CSS&&"number"in CSS;function JL(e){var t=null;for(var n in e){var r=e[n],i=typeof r;if("function"===i)t||(t={}),t[n]=r;else if("object"===i&&null!==r&&!Array.isArray(r)){var o=JL(r);o&&(t||(t={}),t[n]=o)}}return t}
|
|
24
|
+
*/function o_(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a_={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},s_={};function l_(e,t,n){this.props=e,this.context=t,this.refs=s_,this.updater=n||a_}function c_(){}function u_(e,t,n){this.props=e,this.context=t,this.refs=s_,this.updater=n||a_}l_.prototype.isReactComponent={},l_.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(o_(85));this.updater.enqueueSetState(this,e,t,"setState")},l_.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},c_.prototype=l_.prototype;var d_=u_.prototype=new c_;d_.constructor=u_,UI(d_,l_.prototype),d_.isPureReactComponent=!0;var f_={current:null},h_=Object.prototype.hasOwnProperty,p_={key:!0,ref:!0,__self:!0,__source:!0};function m_(e,t,n){var r,i={},o=null,a=null;if(null!=t)for(r in void 0!==t.ref&&(a=t.ref),void 0!==t.key&&(o=""+t.key),t)h_.call(t,r)&&!p_.hasOwnProperty(r)&&(i[r]=t[r]);var s=arguments.length-2;if(1===s)i.children=n;else if(1<s){for(var l=Array(s),c=0;c<s;c++)l[c]=arguments[c+2];i.children=l}if(e&&e.defaultProps)for(r in s=e.defaultProps)void 0===i[r]&&(i[r]=s[r]);return{$$typeof:YI,type:e,key:o,ref:a,props:i,_owner:f_.current}}function g_(e){return"object"==typeof e&&null!==e&&e.$$typeof===YI}var y_=/\/+/g,v_=[];function b_(e,t,n,r){if(v_.length){var i=v_.pop();return i.result=e,i.keyPrefix=t,i.func=n,i.context=r,i.count=0,i}return{result:e,keyPrefix:t,func:n,context:r,count:0}}function x_(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>v_.length&&v_.push(e)}function S_(e,t,n,r){var i=typeof e;"undefined"!==i&&"boolean"!==i||(e=null);var o=!1;if(null===e)o=!0;else switch(i){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case YI:case XI:o=!0}}if(o)return n(r,e,""===t?"."+M_(e,0):t),1;if(o=0,t=""===t?".":t+":",Array.isArray(e))for(var a=0;a<e.length;a++){var s=t+M_(i=e[a],a);o+=S_(i,s,n,r)}else if(null===e||"object"!=typeof e?s=null:s="function"==typeof(s=i_&&e[i_]||e["@@iterator"])?s:null,"function"==typeof s)for(e=s.call(e),a=0;!(i=e.next()).done;)o+=S_(i=i.value,s=t+M_(i,a++),n,r);else if("object"===i)throw n=""+e,Error(o_(31,"[object Object]"===n?"object with keys {"+Object.keys(e).join(", ")+"}":n,""));return o}function w_(e,t,n){return null==e?0:S_(e,"",t,n)}function M_(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,(function(e){return t[e]}))}(e.key):t.toString(36)}function E_(e,t){e.func.call(e.context,t,e.count++)}function k_(e,t,n){var r=e.result,i=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?C_(e,r,n,(function(e){return e})):null!=e&&(g_(e)&&(e=function(e,t){return{$$typeof:YI,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(e,i+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(y_,"$&/")+"/")+n)),r.push(e))}function C_(e,t,n,r,i){var o="";null!=n&&(o=(""+n).replace(y_,"$&/")+"/"),w_(e,k_,t=b_(t,o,r,i)),x_(t)}var T_={current:null};function A_(){var e=T_.current;if(null===e)throw Error(o_(321));return e}var O_={ReactCurrentDispatcher:T_,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:f_,IsSomeRendererActing:{current:!1},assign:UI};jI.Children={map:function(e,t,n){if(null==e)return e;var r=[];return C_(e,r,null,t,n),r},forEach:function(e,t,n){if(null==e)return e;w_(e,E_,t=b_(null,null,t,n)),x_(t)},count:function(e){return w_(e,(function(){return null}),null)},toArray:function(e){var t=[];return C_(e,t,null,(function(e){return e})),t},only:function(e){if(!g_(e))throw Error(o_(143));return e}},jI.Component=l_,jI.Fragment=GI,jI.Profiler=JI,jI.PureComponent=u_,jI.StrictMode=KI,jI.Suspense=t_,jI.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=O_,jI.cloneElement=function(e,t,n){if(null==e)throw Error(o_(267,e));var r=UI({},e.props),i=e.key,o=e.ref,a=e._owner;if(null!=t){if(void 0!==t.ref&&(o=t.ref,a=f_.current),void 0!==t.key&&(i=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(l in t)h_.call(t,l)&&!p_.hasOwnProperty(l)&&(r[l]=void 0===t[l]&&void 0!==s?s[l]:t[l])}var l=arguments.length-2;if(1===l)r.children=n;else if(1<l){s=Array(l);for(var c=0;c<l;c++)s[c]=arguments[c+2];r.children=s}return{$$typeof:YI,type:e.type,key:i,ref:o,props:r,_owner:a}},jI.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:ZI,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:QI,_context:e},e.Consumer=e},jI.createElement=m_,jI.createFactory=function(e){var t=m_.bind(null,e);return t.type=e,t},jI.createRef=function(){return{current:null}},jI.forwardRef=function(e){return{$$typeof:e_,render:e}},jI.isValidElement=g_,jI.lazy=function(e){return{$$typeof:r_,_ctor:e,_status:-1,_result:null}},jI.memo=function(e,t){return{$$typeof:n_,type:e,compare:void 0===t?null:t}},jI.useCallback=function(e,t){return A_().useCallback(e,t)},jI.useContext=function(e,t){return A_().useContext(e,t)},jI.useDebugValue=function(){},jI.useEffect=function(e,t){return A_().useEffect(e,t)},jI.useImperativeHandle=function(e,t,n){return A_().useImperativeHandle(e,t,n)},jI.useLayoutEffect=function(e,t){return A_().useLayoutEffect(e,t)},jI.useMemo=function(e,t){return A_().useMemo(e,t)},jI.useReducer=function(e,t,n){return A_().useReducer(e,t,n)},jI.useRef=function(e){return A_().useRef(e)},jI.useState=function(e){return A_().useState(e)},jI.version="16.14.0",FI.exports=jI;var N_=FI.exports,q_=n(N_);const D_={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"},R_={d:"M1 8a7 7 0 1 1 10 6.326V11h-1v5h5v-1h-3.124A8 8 0 1 0 8 16v-1a7 7 0 0 1-7-7Z"},I_={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"},__={d:"M6,10 L13,3 L15,5 L8,12 L6,14 L1,9 L3,7 L6,10 Z"},P_={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"},L_={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"},z_=(e,t)=>{switch(e.qGrouping){case"N":default:return;case"H":return{path:D_,tooltip:"Tooltip.dimensions.drilldown",onClick:void 0};case"C":return{path:R_,tooltip:"Tooltip.dimensions.cyclic",onClick:()=>{t.app.getDimension(e.qLibraryId).then((e=>e.stepCycle(1))).catch((()=>null))}}}},F_={single:"N",drillDown:"H",cyclic:"C"};function j_(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=so.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 $_(e,t,n,r,i,o){e.getEffectiveProperties().then((a=>{const s=a.qHyperCubeDef[r].findIndex((e=>e.qDef.cId===t)),l=a.qHyperCubeDef.qLayoutExclude.qHyperCubeDef[r].findIndex((e=>e.qDef.cId===n)),c=f(!0,{},a),u=c.qHyperCubeDef[r][s],d=c.qHyperCubeDef.qLayoutExclude.qHyperCubeDef[r][l];d.qAttributeDimensions=u.qAttributeDimensions,u.qAttributeDimensions=[],o||(d.qAttributeExpressions=u.qAttributeExpressions,u.qAttributeExpressions=[]),c.qHyperCubeDef[r][s]=d,c.qHyperCubeDef.qLayoutExclude.qHyperCubeDef[r][l]=u,i&&i({oldItem:u,newItem:d,oldProperties:a,newProperties:c,model:e}),j_(e,a,c)}))}const H_=(e,t)=>{const n=[],r=[];return t.forEach((t=>{t.qCalcCondition.qCond.qv&&r.push(e.evaluate(t.qCalcCondition.qCond.qv).then((e=>{"0"===e&&n.push(t.qDef.cId)})))})),Promise.all(r).then((()=>n))};function B_({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=H_(o,n).then((e=>Promise.all(n.filter((t=>!e.includes(t.qDef.cId))).map((e=>function(e,t,n){if(e.qLibraryId)return t.getDimension(e.qLibraryId).then((e=>e.getLayout())).catch((()=>null)).then((e=>e?e.qDim.qGrouping===F_.single&&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 e},changeTo(e,t){$_(r,e,t,"qDimensions",a)}}}function V_(e,t,n,r="/qHyperCubeDef"){return{breadcrumbs:e.qGrouping===F_.drillDown?e.qGroupFallbackTitles.slice(0,e.qGroupPos):[],icon:z_(e,n),index:t,locked:!!e.qLocked,text:e.qGrouping===F_.single?e.qFallbackTitle:e.qGroupFallbackTitles[e.qGroupPos],popoverText:(i=e,i.qGrouping===F_.single?i.qFallbackTitle||"":i.title||""),drillUp(e){n.drillUp(r,t,e)},id:e.cId};var i}function U_({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=H_(t,e).then((n=>Promise.all(e.filter((e=>!n.includes(e.qDef.cId))).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 n},changeTo(e,t){$_(i,e,t,"qMeasures",o,a)}}}function W_(e,t){return{breadcrumbs:[],index:t,locked:!1,text:e.qFallbackTitle,popoverText:e.qFallbackTitle,id:e.cId}}function Y_(){return Y_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Y_.apply(this,arguments)}var X_={exports:{}};function G_(){}function K_(){}K_.resetWarningCache=G_;X_.exports=function(){function e(e,t,n,r,i,o){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==o){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:K_,resetWarningCache:G_};return n.PropTypes=n,n}();var J_=n(X_.exports),Q_={black:"#000",white:"#fff"},Z_={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},eP={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162"},tP={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe"},nP={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},rP={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},iP={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},oP={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"};function aP(){return aP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},aP.apply(this,arguments)}function sP(e){return sP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},sP(e)}function lP(e){return e&&"object"===sP(e)&&e.constructor===Object}function cP(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},r=n.clone?aP({},e):e;return lP(e)&&lP(t)&&Object.keys(t).forEach((function(i){"__proto__"!==i&&(lP(t[i])&&i in e?r[i]=cP(e[i],t[i],n):r[i]=t[i])})),r}function uP(e){var t=function(e,t){if("object"!==sP(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==sP(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===sP(t)?t:String(t)}function dP(e,t,n){return(t=uP(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fP(e){for(var t="https://mui.com/production-error/?code="+e,n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified Material-UI error #"+e+"; visit "+t+" for the full message."}function hP(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),n)}function pP(e){if(e.type)return e;if("#"===e.charAt(0))return pP(function(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map((function(e){return e+e}))),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(n))throw new Error(fP(3,e));var r=e.substring(t+1,e.length-1).split(",");return r=r.map((function(e){return parseFloat(e)})),{type:n,values:r}}function mP(e){var t=e.type,n=e.values;return-1!==t.indexOf("rgb")?n=n.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),"".concat(t,"(").concat(n.join(", "),")")}function gP(e){var t="hsl"===(e=pP(e)).type?pP(function(e){var t=(e=pP(e)).values,n=t[0],r=t[1]/100,i=t[2]/100,o=r*Math.min(i,1-i),a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return i-o*Math.max(Math.min(t-3,9-t,1),-1)},s="rgb",l=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),mP({type:s,values:l})}(e)).values:e.values;return t=t.map((function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)})),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function yP(e,t){return e=pP(e),t=hP(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,mP(e)}function vP(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}function bP(e,t){if(null==e)return{};var n,r,i=vP(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var xP=["xs","sm","md","lg","xl"];function SP(e,t,n){var r;return aP({gutters:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return console.warn(["Material-UI: theme.mixins.gutters() is deprecated.","You can use the source of the mixin directly:","\n paddingLeft: theme.spacing(2),\n paddingRight: theme.spacing(2),\n [theme.breakpoints.up('sm')]: {\n paddingLeft: theme.spacing(3),\n paddingRight: theme.spacing(3),\n },\n "].join("\n")),aP({paddingLeft:t(2),paddingRight:t(2)},n,dP({},e.up("sm"),aP({paddingLeft:t(3),paddingRight:t(3)},n[e.up("sm")])))},toolbar:(r={minHeight:56},dP(r,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),dP(r,e.up("sm"),{minHeight:64}),r)},n)}var wP={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Q_.white,default:oP[50]},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},MP={text:{primary:Q_.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:oP[800],default:"#303030"},action:{active:Q_.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function EP(e,t,n,r){var i=r.light||r,o=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=function(e,t){if(e=pP(e),t=hP(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;return mP(e)}(e.main,i):"dark"===t&&(e.dark=function(e,t){if(e=pP(e),t=hP(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]*=1-t;return mP(e)}(e.main,o)))}function kP(e){var t=e.primary,n=void 0===t?{light:tP[300],main:tP[500],dark:tP[700]}:t,r=e.secondary,i=void 0===r?{light:eP.A200,main:eP.A400,dark:eP.A700}:r,o=e.error,a=void 0===o?{light:Z_[300],main:Z_[500],dark:Z_[700]}:o,s=e.warning,l=void 0===s?{light:iP[300],main:iP[500],dark:iP[700]}:s,c=e.info,u=void 0===c?{light:nP[300],main:nP[500],dark:nP[700]}:c,d=e.success,f=void 0===d?{light:rP[300],main:rP[500],dark:rP[700]}:d,h=e.type,p=void 0===h?"light":h,m=e.contrastThreshold,g=void 0===m?3:m,y=e.tonalOffset,v=void 0===y?.2:y,b=bP(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function x(e){var t=function(e,t){var n=gP(e),r=gP(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}(e,MP.text.primary)>=g?MP.text.primary:wP.text.primary;return t}var S=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:700;if(!(e=aP({},e)).main&&e[t]&&(e.main=e[t]),!e.main)throw new Error(fP(4,t));if("string"!=typeof e.main)throw new Error(fP(5,JSON.stringify(e.main)));return EP(e,"light",n,v),EP(e,"dark",r,v),e.contrastText||(e.contrastText=x(e.main)),e},w={dark:MP,light:wP};return cP(aP({common:Q_,type:p,primary:S(n),secondary:S(i,"A400","A200","A700"),error:S(a),warning:S(l),info:S(u),success:S(f),grey:oP,contrastThreshold:g,getContrastText:x,augmentColor:S,tonalOffset:v},w[p]),b)}function CP(e){return Math.round(1e5*e)/1e5}function TP(e){return CP(e)}var AP={textTransform:"uppercase"},OP='"Roboto", "Helvetica", "Arial", sans-serif';function NP(e,t){var n="function"==typeof t?t(e):t,r=n.fontFamily,i=void 0===r?OP:r,o=n.fontSize,a=void 0===o?14:o,s=n.fontWeightLight,l=void 0===s?300:s,c=n.fontWeightRegular,u=void 0===c?400:c,d=n.fontWeightMedium,f=void 0===d?500:d,h=n.fontWeightBold,p=void 0===h?700:h,m=n.htmlFontSize,g=void 0===m?16:m,y=n.allVariants,v=n.pxToRem,b=bP(n,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]),x=a/14,S=v||function(e){return"".concat(e/g*x,"rem")},w=function(e,t,n,r,o){return aP({fontFamily:i,fontWeight:e,fontSize:S(t),lineHeight:n},i===OP?{letterSpacing:"".concat(CP(r/t),"em")}:{},o,y)},M={h1:w(l,96,1.167,-1.5),h2:w(l,60,1.2,-.5),h3:w(u,48,1.167,0),h4:w(u,34,1.235,.25),h5:w(u,24,1.334,0),h6:w(f,20,1.6,.15),subtitle1:w(u,16,1.75,.15),subtitle2:w(f,14,1.57,.1),body1:w(u,16,1.5,.15),body2:w(u,14,1.43,.15),button:w(f,14,1.75,.4,AP),caption:w(u,12,1.66,.4),overline:w(u,12,2.66,1,AP)};return cP(aP({htmlFontSize:g,pxToRem:S,round:TP,fontFamily:i,fontSize:a,fontWeightLight:l,fontWeightRegular:u,fontWeightMedium:f,fontWeightBold:p},M),b,{clone:!1})}function qP(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}var DP=["none",qP(0,2,1,-1,0,1,1,0,0,1,3,0),qP(0,3,1,-2,0,2,2,0,0,1,5,0),qP(0,3,3,-2,0,3,4,0,0,1,8,0),qP(0,2,4,-1,0,4,5,0,0,1,10,0),qP(0,3,5,-1,0,5,8,0,0,1,14,0),qP(0,3,5,-1,0,6,10,0,0,1,18,0),qP(0,4,5,-2,0,7,10,1,0,2,16,1),qP(0,5,5,-3,0,8,10,1,0,3,14,2),qP(0,5,6,-3,0,9,12,1,0,3,16,2),qP(0,6,6,-3,0,10,14,1,0,4,18,3),qP(0,6,7,-4,0,11,15,1,0,4,20,3),qP(0,7,8,-4,0,12,17,2,0,5,22,4),qP(0,7,8,-4,0,13,19,2,0,5,24,4),qP(0,7,9,-4,0,14,21,2,0,5,26,4),qP(0,8,9,-5,0,15,22,2,0,6,28,5),qP(0,8,10,-5,0,16,24,2,0,6,30,5),qP(0,8,11,-5,0,17,26,2,0,6,32,5),qP(0,9,11,-5,0,18,28,2,0,7,34,6),qP(0,9,12,-6,0,19,29,2,0,7,36,6),qP(0,10,13,-6,0,20,31,3,0,8,38,7),qP(0,10,13,-6,0,21,33,3,0,8,40,7),qP(0,10,14,-6,0,22,35,3,0,8,42,7),qP(0,11,14,-7,0,23,36,3,0,9,44,8),qP(0,11,15,-7,0,24,38,3,0,9,46,8)],RP={borderRadius:4};function IP(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function _P(e,t){if(e){if("string"==typeof e)return IP(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?IP(e,t):void 0}}function PP(e){return function(e){if(Array.isArray(e))return IP(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||_P(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function LP(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||_P(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function zP(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(e.mui)return e;var t=function(e){var t=e.spacing||8;return"number"==typeof t?function(e){return t*e}:Array.isArray(t)?function(e){return t[e]}:"function"==typeof t?t:function(){}}({spacing:e}),n=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return 0===n.length?t(1):1===n.length?t(n[0]):n.map((function(e){if("string"==typeof e)return e;var n=t(e);return"number"==typeof n?"".concat(n,"px"):n})).join(" ")};return Object.defineProperty(n,"unit",{get:function(){return e}}),n.mui=!0,n}var FP={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},jP={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function $P(e){return"".concat(Math.round(e),"ms")}var HP={easing:FP,duration:jP,create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.duration,r=void 0===n?jP.standard:n,i=t.easing,o=void 0===i?FP.easeInOut:i,a=t.delay,s=void 0===a?0:a;return bP(t,["duration","easing","delay"]),(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"==typeof r?r:$P(r)," ").concat(o," ").concat("string"==typeof s?s:$P(s))})).join(",")},getAutoHeightDuration:function(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}},BP={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function VP(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.breakpoints,n=void 0===t?{}:t,r=e.mixins,i=void 0===r?{}:r,o=e.palette,a=void 0===o?{}:o,s=e.spacing,l=e.typography,c=void 0===l?{}:l,u=bP(e,["breakpoints","mixins","palette","spacing","typography"]),d=kP(a),f=function(e){var t=e.values,n=void 0===t?{xs:0,sm:600,md:960,lg:1280,xl:1920}:t,r=e.unit,i=void 0===r?"px":r,o=e.step,a=void 0===o?5:o,s=bP(e,["values","unit","step"]);function l(e){var t="number"==typeof n[e]?n[e]:e;return"@media (min-width:".concat(t).concat(i,")")}function c(e,t){var r=xP.indexOf(t);return r===xP.length-1?l(e):"@media (min-width:".concat("number"==typeof n[e]?n[e]:e).concat(i,") and ")+"(max-width:".concat((-1!==r&&"number"==typeof n[xP[r+1]]?n[xP[r+1]]:t)-a/100).concat(i,")")}return aP({keys:xP,values:n,up:l,down:function(e){var t=xP.indexOf(e)+1,r=n[xP[t]];return t===xP.length?l("xs"):"@media (max-width:".concat(("number"==typeof r&&t>0?r:e)-a/100).concat(i,")")},between:c,only:function(e){return c(e,e)},width:function(e){return n[e]}},s)}(n),h=zP(s),p=cP({breakpoints:f,direction:"ltr",mixins:SP(f,h,i),overrides:{},palette:d,props:{},shadows:DP,typography:NP(d,c),spacing:h,shape:RP,transitions:HP,zIndex:BP},u),m=arguments.length,g=new Array(m>1?m-1:0),y=1;y<m;y++)g[y-1]=arguments[y];return p=g.reduce((function(e,t){return cP(e,t)}),p)}var UP="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",WP=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function YP(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.disableGlobal,n=void 0!==t&&t,r=e.productionPrefix,i=void 0===r?"jss":r,o=e.seed,a=void 0===o?"":o,s=""===a?"":"".concat(a,"-"),l=0,c=function(){return l+=1};return function(e,t){var r=t.options.name;if(r&&0===r.indexOf("Mui")&&!t.options.link&&!n){if(-1!==WP.indexOf(e.key))return"Mui-".concat(e.key);var o="".concat(s).concat(r,"-").concat(e.key);return t.options.theme[UP]&&""===a?"".concat(o,"-").concat(c()):o}return"".concat(s).concat(i).concat(c())}}function XP(e){var t=e.theme,n=e.name,r=e.props;if(!t||!t.props||!t.props[n])return r;var i,o=t.props[n];for(i in o)void 0===r[i]&&(r[i]=o[i]);return r}var GP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},KP="object"===("undefined"==typeof window?"undefined":GP(window))&&"object"===("undefined"==typeof document?"undefined":GP(document))&&9===document.nodeType;function JP(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,uP(r.key),r)}}function QP(e,t,n){return t&&JP(e.prototype,t),n&&JP(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function ZP(e,t){return ZP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ZP(e,t)}function eL(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ZP(e,t)}function tL(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var nL={}.constructor;function rL(e){if(null==e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(rL);if(e.constructor!==nL)return e;var t={};for(var n in e)t[n]=rL(e[n]);return t}function iL(e,t,n){void 0===e&&(e="unnamed");var r=n.jss,i=rL(t),o=r.plugins.onCreateRule(e,i,n);return o||(e[0],null)}var oL=function(e,t){for(var n="",r=0;r<e.length&&"!important"!==e[r];r++)n&&(n+=t),n+=e[r];return n},aL=function(e){if(!Array.isArray(e))return e;var t="";if(Array.isArray(e[0]))for(var n=0;n<e.length&&"!important"!==e[n];n++)t&&(t+=", "),t+=oL(e[n]," ");else t=oL(e,", ");return"!important"===e[e.length-1]&&(t+=" !important"),t};function sL(e){return e&&!1===e.format?{linebreak:"",space:""}:{linebreak:"\n",space:" "}}function lL(e,t){for(var n="",r=0;r<t;r++)n+=" ";return n+e}function cL(e,t,n){void 0===n&&(n={});var r="";if(!t)return r;var i=n.indent,o=void 0===i?0:i,a=t.fallbacks;!1===n.format&&(o=-1/0);var s=sL(n),l=s.linebreak,c=s.space;if(e&&o++,a)if(Array.isArray(a))for(var u=0;u<a.length;u++){var d=a[u];for(var f in d){var h=d[f];null!=h&&(r&&(r+=l),r+=lL(f+":"+c+aL(h)+";",o))}}else for(var p in a){var m=a[p];null!=m&&(r&&(r+=l),r+=lL(p+":"+c+aL(m)+";",o))}for(var g in t){var y=t[g];null!=y&&"fallbacks"!==g&&(r&&(r+=l),r+=lL(g+":"+c+aL(y)+";",o))}return(r||n.allowEmpty)&&e?(r&&(r=""+l+r+l),lL(""+e+c+"{"+r,--o)+lL("}",o)):r}var uL=/([[\].#*$><+~=|^:(),"'`\s])/g,dL="undefined"!=typeof CSS&&CSS.escape,fL=function(e){return dL?dL(e):e.replace(uL,"\\$1")},hL=function(){function e(e,t,n){this.type="style",this.isProcessed=!1;var r=n.sheet,i=n.Renderer;this.key=e,this.options=n,this.style=t,r?this.renderer=r.renderer:i&&(this.renderer=new i)}return e.prototype.prop=function(e,t,n){if(void 0===t)return this.style[e];var r=!!n&&n.force;if(!r&&this.style[e]===t)return this;var i=t;n&&!1===n.process||(i=this.options.jss.plugins.onChangeValue(t,e,this));var o=null==i||!1===i,a=e in this.style;if(o&&!a&&!r)return this;var s=o&&a;if(s?delete this.style[e]:this.style[e]=i,this.renderable&&this.renderer)return s?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,i),this;var l=this.options.sheet;return l&&l.attached,this},e}(),pL=function(e){function t(t,n,r){var i;i=e.call(this,t,n,r)||this;var o=r.selector,a=r.scoped,s=r.sheet,l=r.generateId;return o?i.selectorText=o:!1!==a&&(i.id=l(tL(tL(i)),s),i.selectorText="."+fL(i.id)),i}eL(t,e);var n=t.prototype;return n.applyTo=function(e){var t=this.renderer;if(t){var n=this.toJSON();for(var r in n)t.setProperty(e,r,n[r])}return this},n.toJSON=function(){var e={};for(var t in this.style){var n=this.style[t];"object"!=typeof n?e[t]=n:Array.isArray(n)&&(e[t]=aL(n))}return e},n.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?aP({},e,{allowEmpty:!0}):e;return cL(this.selectorText,this.style,n)},QP(t,[{key:"selector",set:function(e){if(e!==this.selectorText){this.selectorText=e;var t=this.renderer,n=this.renderable;if(n&&t)t.setSelector(n,e)||t.replaceRule(n,this)}},get:function(){return this.selectorText}}]),t}(hL),mL={onCreateRule:function(e,t,n){return"@"===e[0]||n.parent&&"keyframes"===n.parent.type?null:new pL(e,t,n)}},gL={indent:1,children:!0},yL=/@([\w-]+)/,vL=function(){function e(e,t,n){this.type="conditional",this.isProcessed=!1,this.key=e;var r=e.match(yL);for(var i in this.at=r?r[1]:"unknown",this.query=n.name||"@"+this.at,this.options=n,this.rules=new HL(aP({},n,{parent:this})),t)this.rules.add(i,t[i]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.indexOf=function(e){return this.rules.indexOf(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r?(this.options.jss.plugins.onProcessRule(r),r):null},t.replaceRule=function(e,t,n){var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.toString=function(e){void 0===e&&(e=gL);var t=sL(e).linebreak;if(null==e.indent&&(e.indent=gL.indent),null==e.children&&(e.children=gL.children),!1===e.children)return this.query+" {}";var n=this.rules.toString(e);return n?this.query+" {"+t+n+t+"}":""},e}(),bL=/@container|@media|@supports\s+/,xL={onCreateRule:function(e,t,n){return bL.test(e)?new vL(e,t,n):null}},SL={indent:1,children:!0},wL=/@keyframes\s+([\w-]+)/,ML=function(){function e(e,t,n){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var r=e.match(wL);r&&r[1]?this.name=r[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=n;var i=n.scoped,o=n.sheet,a=n.generateId;for(var s in this.id=!1===i?this.name:fL(a(this,o)),this.rules=new HL(aP({},n,{parent:this})),t)this.rules.add(s,t[s],aP({},n,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){void 0===e&&(e=SL);var t=sL(e).linebreak;if(null==e.indent&&(e.indent=SL.indent),null==e.children&&(e.children=SL.children),!1===e.children)return this.at+" "+this.id+" {}";var n=this.rules.toString(e);return n&&(n=""+t+n+t),this.at+" "+this.id+" {"+n+"}"},e}(),EL=/@keyframes\s+/,kL=/\$([\w-]+)/g,CL=function(e,t){return"string"==typeof e?e.replace(kL,(function(e,n){return n in t?t[n]:e})):e},TL=function(e,t,n){var r=e[t],i=CL(r,n);i!==r&&(e[t]=i)},AL={onCreateRule:function(e,t,n){return"string"==typeof e&&EL.test(e)?new ML(e,t,n):null},onProcessStyle:function(e,t,n){return"style"===t.type&&n?("animation-name"in e&&TL(e,"animation-name",n.keyframes),"animation"in e&&TL(e,"animation",n.keyframes),e):e},onChangeValue:function(e,t,n){var r=n.options.sheet;if(!r)return e;switch(t){case"animation":case"animation-name":return CL(e,r.keyframes);default:return e}}},OL=function(e){function t(){return e.apply(this,arguments)||this}return eL(t,e),t.prototype.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?aP({},e,{allowEmpty:!0}):e;return cL(this.key,this.style,n)},t}(hL),NL={onCreateRule:function(e,t,n){return n.parent&&"keyframes"===n.parent.type?new OL(e,t,n):null}},qL=function(){function e(e,t,n){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){var t=sL(e).linebreak;if(Array.isArray(this.style)){for(var n="",r=0;r<this.style.length;r++)n+=cL(this.at,this.style[r]),this.style[r+1]&&(n+=t);return n}return cL(this.at,this.style,e)},e}(),DL=/@font-face/,RL={onCreateRule:function(e,t,n){return DL.test(e)?new qL(e,t,n):null}},IL=function(){function e(e,t,n){this.type="viewport",this.at="@viewport",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){return cL(this.key,this.style,e)},e}(),_L={onCreateRule:function(e,t,n){return"@viewport"===e||"@-ms-viewport"===e?new IL(e,t,n):null}},PL=function(){function e(e,t,n){this.type="simple",this.isProcessed=!1,this.key=e,this.value=t,this.options=n}return e.prototype.toString=function(e){if(Array.isArray(this.value)){for(var t="",n=0;n<this.value.length;n++)t+=this.key+" "+this.value[n]+";",this.value[n+1]&&(t+="\n");return t}return this.key+" "+this.value+";"},e}(),LL={"@charset":!0,"@import":!0,"@namespace":!0},zL={onCreateRule:function(e,t,n){return e in LL?new PL(e,t,n):null}},FL=[mL,xL,AL,NL,RL,_L,zL],jL={process:!0},$L={force:!0,process:!0},HL=function(){function e(e){this.map={},this.raw={},this.index=[],this.counter=0,this.options=e,this.classes=e.classes,this.keyframes=e.keyframes}var t=e.prototype;return t.add=function(e,t,n){var r=this.options,i=r.parent,o=r.sheet,a=r.jss,s=r.Renderer,l=r.generateId,c=r.scoped,u=aP({classes:this.classes,parent:i,sheet:o,jss:a,Renderer:s,generateId:l,scoped:c,name:e,keyframes:this.keyframes,selector:void 0},n),d=e;e in this.raw&&(d=e+"-d"+this.counter++),this.raw[d]=t,d in this.classes&&(u.selector="."+fL(this.classes[d]));var f=iL(d,t,u);if(!f)return null;this.register(f);var h=void 0===u.index?this.index.length:u.index;return this.index.splice(h,0,f),f},t.replace=function(e,t,n){var r=this.get(e),i=this.index.indexOf(r);r&&this.remove(r);var o=n;return-1!==i&&(o=aP({},n,{index:i})),this.add(e,t,o)},t.get=function(e){return this.map[e]},t.remove=function(e){this.unregister(e),delete this.raw[e.key],this.index.splice(this.index.indexOf(e),1)},t.indexOf=function(e){return this.index.indexOf(e)},t.process=function(){var e=this.options.jss.plugins;this.index.slice(0).forEach(e.onProcessRule,e)},t.register=function(e){this.map[e.key]=e,e instanceof pL?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof ML&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof pL?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof ML&&delete this.keyframes[e.name]},t.update=function(){var e,t,n;if("string"==typeof(arguments.length<=0?void 0:arguments[0])?(e=arguments.length<=0?void 0:arguments[0],t=arguments.length<=1?void 0:arguments[1],n=arguments.length<=2?void 0:arguments[2]):(t=arguments.length<=0?void 0:arguments[0],n=arguments.length<=1?void 0:arguments[1],e=null),e)this.updateOne(this.get(e),t,n);else for(var r=0;r<this.index.length;r++)this.updateOne(this.index[r],t,n)},t.updateOne=function(t,n,r){void 0===r&&(r=jL);var i=this.options,o=i.jss.plugins,a=i.sheet;if(t.rules instanceof e)t.rules.update(n,r);else{var s=t.style;if(o.onUpdate(n,t,a,r),r.process&&s&&s!==t.style){for(var l in o.onProcessStyle(t.style,t,a),t.style){var c=t.style[l];c!==s[l]&&t.prop(l,c,$L)}for(var u in s){var d=t.style[u],f=s[u];null==d&&d!==f&&t.prop(u,null,$L)}}}},t.toString=function(e){for(var t="",n=this.options.sheet,r=!!n&&n.options.link,i=sL(e).linebreak,o=0;o<this.index.length;o++){var a=this.index[o].toString(e);(a||r)&&(t&&(t+=i),t+=a)}return t},e}(),BL=function(){function e(e,t){for(var n in this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=aP({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new HL(this.options),e)this.rules.add(n,e[n]);this.rules.process()}var t=e.prototype;return t.attach=function(){return this.attached||(this.renderer&&this.renderer.attach(),this.attached=!0,this.deployed||this.deploy()),this},t.detach=function(){return this.attached?(this.renderer&&this.renderer.detach(),this.attached=!1,this):this},t.addRule=function(e,t,n){var r=this.queue;this.attached&&!r&&(this.queue=[]);var i=this.rules.add(e,t,n);return i?(this.options.jss.plugins.onProcessRule(i),this.attached?this.deployed?(r?r.push(i):(this.insertRule(i),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0)),i):i:(this.deployed=!1,i)):null},t.replaceRule=function(e,t,n){var r=this.rules.get(e);if(!r)return this.addRule(e,t,n);var i=this.rules.replace(e,t,n);return i&&this.options.jss.plugins.onProcessRule(i),this.attached?this.deployed?(this.renderer&&(i?r.renderable&&this.renderer.replaceRule(r.renderable,i):this.renderer.deleteRule(r)),i):i:(this.deployed=!1,i)},t.insertRule=function(e){this.renderer&&this.renderer.insertRule(e)},t.addRules=function(e,t){var n=[];for(var r in e){var i=this.addRule(r,e[r],t);i&&n.push(i)}return n},t.getRule=function(e){return this.rules.get(e)},t.deleteRule=function(e){var t="object"==typeof e?e:this.rules.get(e);return!(!t||this.attached&&!t.renderable)&&(this.rules.remove(t),!(this.attached&&t.renderable&&this.renderer)||this.renderer.deleteRule(t.renderable))},t.indexOf=function(e){return this.rules.indexOf(e)},t.deploy=function(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},t.update=function(){var e;return(e=this.rules).update.apply(e,arguments),this},t.updateOne=function(e,t,n){return this.rules.updateOne(e,t,n),this},t.toString=function(e){return this.rules.toString(e)},e}(),VL=function(){function e(){this.plugins={internal:[],external:[]},this.registry={}}var t=e.prototype;return t.onCreateRule=function(e,t,n){for(var r=0;r<this.registry.onCreateRule.length;r++){var i=this.registry.onCreateRule[r](e,t,n);if(i)return i}return null},t.onProcessRule=function(e){if(!e.isProcessed){for(var t=e.options.sheet,n=0;n<this.registry.onProcessRule.length;n++)this.registry.onProcessRule[n](e,t);e.style&&this.onProcessStyle(e.style,e,t),e.isProcessed=!0}},t.onProcessStyle=function(e,t,n){for(var r=0;r<this.registry.onProcessStyle.length;r++)t.style=this.registry.onProcessStyle[r](t.style,t,n)},t.onProcessSheet=function(e){for(var t=0;t<this.registry.onProcessSheet.length;t++)this.registry.onProcessSheet[t](e)},t.onUpdate=function(e,t,n,r){for(var i=0;i<this.registry.onUpdate.length;i++)this.registry.onUpdate[i](e,t,n,r)},t.onChangeValue=function(e,t,n){for(var r=e,i=0;i<this.registry.onChangeValue.length;i++)r=this.registry.onChangeValue[i](r,t,n);return r},t.use=function(e,t){void 0===t&&(t={queue:"external"});var n=this.plugins[t.queue];-1===n.indexOf(e)&&(n.push(e),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce((function(e,t){for(var n in t)n in e&&e[n].push(t[n]);return e}),{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},e}(),UL=function(){function e(){this.registry=[]}var t=e.prototype;return t.add=function(e){var t=this.registry,n=e.options.index;if(-1===t.indexOf(e))if(0===t.length||n>=this.index)t.push(e);else for(var r=0;r<t.length;r++)if(t[r].options.index>n)return void t.splice(r,0,e)},t.reset=function(){this.registry=[]},t.remove=function(e){var t=this.registry.indexOf(e);this.registry.splice(t,1)},t.toString=function(e){for(var t=void 0===e?{}:e,n=t.attached,r=vP(t,["attached"]),i=sL(r).linebreak,o="",a=0;a<this.registry.length;a++){var s=this.registry[a];null!=n&&s.attached!==n||(o&&(o+=i),o+=s.toString(r))}return o},QP(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}(),WL=new UL,YL="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof self&&self.Math===Math?self:Function("return this")(),XL="2f1acc6c3a606b082e5eef5e54414ffb";null==YL[XL]&&(YL[XL]=0);var GL=YL[XL]++,KL=function(e){void 0===e&&(e={});var t=0;return function(n,r){t+=1;var i="",o="";return r&&(r.options.classNamePrefix&&(o=r.options.classNamePrefix),null!=r.options.jss.id&&(i=String(r.options.jss.id))),e.minify?""+(o||"c")+GL+i+t:o+n.key+"-"+GL+(i?"-"+i:"")+"-"+t}},JL=function(e){var t;return function(){return t||(t=e()),t}},QL=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(e){return""}},ZL=function(e,t,n){try{var r=n;if(Array.isArray(n)&&(r=aL(n)),e.attributeStyleMap)e.attributeStyleMap.set(t,r);else{var i=r?r.indexOf("!important"):-1,o=i>-1?r.substr(0,i-1):r;e.style.setProperty(t,o,i>-1?"important":"")}}catch(e){return!1}return!0},ez=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(e){}},tz=function(e,t){return e.selectorText=t,e.selectorText===t},nz=JL((function(){return document.querySelector("head")}));function rz(e){var t=WL.registry;if(t.length>0){var n=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.attached&&r.options.index>t.index&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e);if(n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element};if(n=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.attached&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e),n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element.nextSibling}}var r=e.insertionPoint;if(r&&"string"==typeof r){var i=function(e){for(var t=nz(),n=0;n<t.childNodes.length;n++){var r=t.childNodes[n];if(8===r.nodeType&&r.nodeValue.trim()===e)return r}return null}(r);if(i)return{parent:i.parentNode,node:i.nextSibling}}return!1}var iz=JL((function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null})),oz=function(e,t,n){try{"insertRule"in e?e.insertRule(t,n):"appendRule"in e&&e.appendRule(t)}catch(e){return!1}return e.cssRules[n]},az=function(e,t){var n=e.cssRules.length;return void 0===t||t>n?n:t},sz=function(){function e(e){this.getPropertyValue=QL,this.setProperty=ZL,this.removeProperty=ez,this.setSelector=tz,this.hasInsertedRules=!1,this.cssRules=[],e&&WL.add(e),this.sheet=e;var t=this.sheet?this.sheet.options:{},n=t.media,r=t.meta,i=t.element;this.element=i||function(){var e=document.createElement("style");return e.textContent="\n",e}(),this.element.setAttribute("data-jss",""),n&&this.element.setAttribute("media",n),r&&this.element.setAttribute("data-meta",r);var o=iz();o&&this.element.setAttribute("nonce",o)}var t=e.prototype;return t.attach=function(){if(!this.element.parentNode&&this.sheet){!function(e,t){var n=t.insertionPoint,r=rz(t);if(!1!==r&&r.parent)r.parent.insertBefore(e,r.node);else if(n&&"number"==typeof n.nodeType){var i=n,o=i.parentNode;o&&o.insertBefore(e,i.nextSibling)}else nz().appendChild(e)}(this.element,this.sheet.options);var e=Boolean(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&e&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var e=this.element.parentNode;e&&e.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent="\n")}},t.deploy=function(){var e=this.sheet;e&&(e.options.link?this.insertRules(e.rules):this.element.textContent="\n"+e.toString()+"\n")},t.insertRules=function(e,t){for(var n=0;n<e.index.length;n++)this.insertRule(e.index[n],n,t)},t.insertRule=function(e,t,n){if(void 0===n&&(n=this.element.sheet),e.rules){var r=e,i=n;if("conditional"===e.type||"keyframes"===e.type){var o=az(n,t);if(!1===(i=oz(n,r.toString({children:!1}),o)))return!1;this.refCssRule(e,o,i)}return this.insertRules(r.rules,i),i}var a=e.toString();if(!a)return!1;var s=az(n,t),l=oz(n,a,s);return!1!==l&&(this.hasInsertedRules=!0,this.refCssRule(e,s,l),l)},t.refCssRule=function(e,t,n){e.renderable=n,e.options.parent instanceof BL&&this.cssRules.splice(t,0,n)},t.deleteRule=function(e){var t=this.element.sheet,n=this.indexOf(e);return-1!==n&&(t.deleteRule(n),this.cssRules.splice(n,1),!0)},t.indexOf=function(e){return this.cssRules.indexOf(e)},t.replaceRule=function(e,t){var n=this.indexOf(e);return-1!==n&&(this.element.sheet.deleteRule(n),this.cssRules.splice(n,1),this.insertRule(t,n))},t.getRules=function(){return this.element.sheet.cssRules},e}(),lz=0,cz=function(){function e(e){this.id=lz++,this.version="10.10.0",this.plugins=new VL,this.options={id:{minify:!1},createGenerateId:KL,Renderer:KP?sz:null,plugins:[]},this.generateId=KL({minify:!1});for(var t=0;t<FL.length;t++)this.plugins.use(FL[t],{queue:"internal"});this.setup(e)}var t=e.prototype;return t.setup=function(e){return void 0===e&&(e={}),e.createGenerateId&&(this.options.createGenerateId=e.createGenerateId),e.id&&(this.options.id=aP({},this.options.id,e.id)),(e.createGenerateId||e.id)&&(this.generateId=this.options.createGenerateId(this.options.id)),null!=e.insertionPoint&&(this.options.insertionPoint=e.insertionPoint),"Renderer"in e&&(this.options.Renderer=e.Renderer),e.plugins&&this.use.apply(this,e.plugins),this},t.createStyleSheet=function(e,t){void 0===t&&(t={});var n=t.index;"number"!=typeof n&&(n=0===WL.index?0:WL.index+1);var r=new BL(e,aP({},t,{jss:this,generateId:t.generateId||this.generateId,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:n}));return this.plugins.onProcessSheet(r),r},t.removeStyleSheet=function(e){return e.detach(),WL.remove(e),this},t.createRule=function(e,t,n){if(void 0===t&&(t={}),void 0===n&&(n={}),"object"==typeof e)return this.createRule(void 0,e,t);var r=aP({},n,{name:e,jss:this,Renderer:this.options.Renderer});r.generateId||(r.generateId=this.generateId),r.classes||(r.classes={}),r.keyframes||(r.keyframes={});var i=iL(e,t,r);return i&&this.plugins.onProcessRule(i),i},t.use=function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach((function(t){e.plugins.use(t)})),this},e}(),uz=function(e){return new cz(e)},dz="object"==typeof CSS&&null!=CSS&&"number"in CSS;function fz(e){var t=null;for(var n in e){var r=e[n],i=typeof r;if("function"===i)t||(t={}),t[n]=r;else if("object"===i&&null!==r&&!Array.isArray(r)){var o=fz(r);o&&(t||(t={}),t[n]=o)}}return t}
|
|
25
25
|
/**
|
|
26
26
|
* A better abstraction over CSS.
|
|
27
27
|
*
|
|
28
28
|
* @copyright Oleg Isonen (Slobodskoi) / Isonen 2014-present
|
|
29
29
|
* @website https://github.com/cssinjs/jss
|
|
30
30
|
* @license MIT
|
|
31
|
-
*/GL();var QL=Date.now(),ZL="fnValues"+QL,ez="fnStyle"+ ++QL,tz=function(){return{onCreateRule:function(e,t,n){if("function"!=typeof t)return null;var r=BP(e,{},n);return r[ez]=t,r},onProcessStyle:function(e,t){if(ZL in t||ez in t)return e;var n={};for(var r in e){var i=e[r];"function"==typeof i&&(delete e[r],n[r]=i)}return t[ZL]=n,e},onUpdate:function(e,t,n,r){var i=t,o=i[ez];o&&(i.style=o(e)||{});var a=i[ZL];if(a)for(var s in a)i.prop(s,a[s](e),r)}}},nz="@global",rz="@global ",iz=function(){function e(e,t,n){for(var r in this.type="global",this.at=nz,this.isProcessed=!1,this.key=e,this.options=n,this.rules=new TL(U_({},n,{parent:this})),t)this.rules.add(r,t[r]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.replaceRule=function(e,t,n){var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.indexOf=function(e){return this.rules.indexOf(e)},t.toString=function(e){return this.rules.toString(e)},e}(),oz=function(){function e(e,t,n){this.type="global",this.at=nz,this.isProcessed=!1,this.key=e,this.options=n;var r=e.substr(rz.length);this.rule=n.jss.createRule(r,t,U_({},n,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),az=/\s*,\s*/g;function sz(e,t){for(var n=e.split(az),r="",i=0;i<n.length;i++)r+=t+" "+n[i].trim(),n[i+1]&&(r+=", ");return r}function lz(){return{onCreateRule:function(e,t,n){if(!e)return null;if(e===nz)return new iz(e,t,n);if("@"===e[0]&&e.substr(0,rz.length)===rz)return new oz(e,t,n);var r=n.parent;return r&&("global"===r.type||r.options.parent&&"global"===r.options.parent.type)&&(n.scoped=!1),n.selector||!1!==n.scoped||(n.selector=e),null},onProcessRule:function(e,t){"style"===e.type&&t&&(function(e,t){var n=e.options,r=e.style,i=r?r[nz]:null;if(i){for(var o in i)t.addRule(o,i[o],U_({},n,{selector:sz(o,e.selector)}));delete r[nz]}}(e,t),function(e,t){var n=e.options,r=e.style;for(var i in r)if("@"===i[0]&&i.substr(0,nz.length)===nz){var o=sz(i.substr(nz.length),e.selector);t.addRule(o,r[i],U_({},n,{selector:o})),delete r[i]}}(e,t))}}}var cz=/\s*,\s*/g,uz=/&/g,dz=/\$([\w-]+)/g;function fz(){function e(e,t){return function(n,r){var i=e.getRule(r)||t&&t.getRule(r);return i?i.selector:r}}function t(e,t){for(var n=t.split(cz),r=e.split(cz),i="",o=0;o<n.length;o++)for(var a=n[o],s=0;s<r.length;s++){var l=r[s];i&&(i+=", "),i+=-1!==l.indexOf("&")?l.replace(uz,a):a+" "+l}return i}function n(e,t,n){if(n)return U_({},n,{index:n.index+1});var r=e.options.nestingLevel;r=void 0===r?1:r+1;var i=U_({},e.options,{nestingLevel:r,index:t.indexOf(e)+1});return delete i.name,i}return{onProcessStyle:function(r,i,o){if("style"!==i.type)return r;var a,s,l=i,c=l.options.parent;for(var u in r){var d=-1!==u.indexOf("&"),f="@"===u[0];if(d||f){if(a=n(l,c,a),d){var h=t(u,l.selector);s||(s=e(c,o)),h=h.replace(dz,s);var p=l.key+"-"+u;"replaceRule"in c?c.replaceRule(p,r[u],U_({},a,{selector:h})):c.addRule(p,r[u],U_({},a,{selector:h}))}else f&&c.addRule(u,{},a).addRule(l.key,r[u],{selector:l.selector});delete r[u]}}return r}}}var hz=/[A-Z]/g,pz=/^ms-/,mz={};function gz(e){return"-"+e.toLowerCase()}function yz(e){if(mz.hasOwnProperty(e))return mz[e];var t=e.replace(hz,gz);return mz[e]=pz.test(t)?"-"+t:t}function vz(e){var t={};for(var n in e){t[0===n.indexOf("--")?n:yz(n)]=e[n]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(vz):t.fallbacks=vz(e.fallbacks)),t}var bz=KL&&CSS?CSS.px:"px",xz=KL&&CSS?CSS.ms:"ms",Sz=KL&&CSS?CSS.percent:"%";function wz(e){var t=/(-[a-z])/g,n=function(e){return e[1].toUpperCase()},r={};for(var i in e)r[i]=e[i],r[i.replace(t,n)]=e[i];return r}var Mz=wz({"animation-delay":xz,"animation-duration":xz,"background-position":bz,"background-position-x":bz,"background-position-y":bz,"background-size":bz,border:bz,"border-bottom":bz,"border-bottom-left-radius":bz,"border-bottom-right-radius":bz,"border-bottom-width":bz,"border-left":bz,"border-left-width":bz,"border-radius":bz,"border-right":bz,"border-right-width":bz,"border-top":bz,"border-top-left-radius":bz,"border-top-right-radius":bz,"border-top-width":bz,"border-width":bz,"border-block":bz,"border-block-end":bz,"border-block-end-width":bz,"border-block-start":bz,"border-block-start-width":bz,"border-block-width":bz,"border-inline":bz,"border-inline-end":bz,"border-inline-end-width":bz,"border-inline-start":bz,"border-inline-start-width":bz,"border-inline-width":bz,"border-start-start-radius":bz,"border-start-end-radius":bz,"border-end-start-radius":bz,"border-end-end-radius":bz,margin:bz,"margin-bottom":bz,"margin-left":bz,"margin-right":bz,"margin-top":bz,"margin-block":bz,"margin-block-end":bz,"margin-block-start":bz,"margin-inline":bz,"margin-inline-end":bz,"margin-inline-start":bz,padding:bz,"padding-bottom":bz,"padding-left":bz,"padding-right":bz,"padding-top":bz,"padding-block":bz,"padding-block-end":bz,"padding-block-start":bz,"padding-inline":bz,"padding-inline-end":bz,"padding-inline-start":bz,"mask-position-x":bz,"mask-position-y":bz,"mask-size":bz,height:bz,width:bz,"min-height":bz,"max-height":bz,"min-width":bz,"max-width":bz,bottom:bz,left:bz,top:bz,right:bz,inset:bz,"inset-block":bz,"inset-block-end":bz,"inset-block-start":bz,"inset-inline":bz,"inset-inline-end":bz,"inset-inline-start":bz,"box-shadow":bz,"text-shadow":bz,"column-gap":bz,"column-rule":bz,"column-rule-width":bz,"column-width":bz,"font-size":bz,"font-size-delta":bz,"letter-spacing":bz,"text-decoration-thickness":bz,"text-indent":bz,"text-stroke":bz,"text-stroke-width":bz,"word-spacing":bz,motion:bz,"motion-offset":bz,outline:bz,"outline-offset":bz,"outline-width":bz,perspective:bz,"perspective-origin-x":Sz,"perspective-origin-y":Sz,"transform-origin":Sz,"transform-origin-x":Sz,"transform-origin-y":Sz,"transform-origin-z":Sz,"transition-delay":xz,"transition-duration":xz,"vertical-align":bz,"flex-basis":bz,"shape-margin":bz,size:bz,gap:bz,grid:bz,"grid-gap":bz,"row-gap":bz,"grid-row-gap":bz,"grid-column-gap":bz,"grid-template-rows":bz,"grid-template-columns":bz,"grid-auto-rows":bz,"grid-auto-columns":bz,"box-shadow-x":bz,"box-shadow-y":bz,"box-shadow-blur":bz,"box-shadow-spread":bz,"font-line-height":bz,"text-shadow-x":bz,"text-shadow-y":bz,"text-shadow-blur":bz});function Ez(e,t,n){if(null==t)return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]=Ez(e,t[r],n);else if("object"==typeof t)if("fallbacks"===e)for(var i in t)t[i]=Ez(i,t[i],n);else for(var o in t)t[o]=Ez(e+"-"+o,t[o],n);else if("number"==typeof t&&!1===isNaN(t)){var a=n[e]||Mz[e];return!a||0===t&&a===bz?t.toString():"function"==typeof a?a(t).toString():""+t+a}return t}function kz(e){void 0===e&&(e={});var t=wz(e);return{onProcessStyle:function(e,n){if("style"!==n.type)return e;for(var r in e)e[r]=Ez(r,e[r],t);return e},onChangeValue:function(e,n){return Ez(n,e,t)}}}var Cz="",Tz="",Az="",Oz="",Nz=_P&&"ontouchstart"in document.documentElement;if(_P){var qz={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},Dz=document.createElement("p").style;for(var Rz in qz)if(Rz+"Transform"in Dz){Cz=Rz,Tz=qz[Rz];break}"Webkit"===Cz&&"msHyphens"in Dz&&(Cz="ms",Tz=qz.ms,Oz="edge"),"Webkit"===Cz&&"-apple-trailing-word"in Dz&&(Az="apple")}var Iz={js:Cz,css:Tz,vendor:Az,browser:Oz,isTouch:Nz};var _z={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===Iz.js?"-webkit-"+e:Iz.css+e)}},Pz={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===Iz.js?Iz.css+"print-"+e:e)}},Lz=/[-\s]+(.)?/g;function zz(e,t){return t?t.toUpperCase():""}function Fz(e){return e.replace(Lz,zz)}function jz(e){return Fz("-"+e)}var $z,Hz={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===Iz.js){var n="mask-image";if(Fz(n)in t)return e;if(Iz.js+jz(n)in t)return Iz.css+e}return e}},Bz={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==Iz.vendor||Iz.isTouch?e:Iz.css+e)}},Vz={noPrefill:["transform"],supportedProperty:function(e,t,n){return"transform"===e&&(n.transform?e:Iz.css+e)}},Uz={noPrefill:["transition"],supportedProperty:function(e,t,n){return"transition"===e&&(n.transition?e:Iz.css+e)}},Wz={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===Iz.js||"ms"===Iz.js&&"edge"!==Iz.browser?Iz.css+e:e)}},Yz={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===Iz.js||"ms"===Iz.js||"apple"===Iz.vendor?Iz.css+e:e)}},Xz={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===Iz.js?"WebkitColumn"+jz(e)in t&&Iz.css+"column-"+e:"Moz"===Iz.js&&("page"+jz(e)in t&&"page-"+e))}},Gz={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===Iz.js)return e;var n=e.replace("-inline","");return Iz.js+jz(n)in t&&Iz.css+n}},Kz={supportedProperty:function(e,t){return Fz(e)in t&&e}},Jz={supportedProperty:function(e,t){var n=jz(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:Iz.js+n in t?Iz.css+e:"Webkit"!==Iz.js&&"Webkit"+n in t&&"-webkit-"+e}},Qz={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===Iz.js?""+Iz.css+e:e)}},Zz={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===Iz.js?Iz.css+"scroll-chaining":e)}},eF={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},tF={supportedProperty:function(e,t){var n=eF[e];return!!n&&(Iz.js+jz(n)in t&&Iz.css+n)}},nF={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},rF=Object.keys(nF),iF=function(e){return Iz.css+e},oF={supportedProperty:function(e,t,n){var r=n.multiple;if(rF.indexOf(e)>-1){var i=nF[e];if(!Array.isArray(i))return Iz.js+jz(i)in t&&Iz.css+i;if(!r)return!1;for(var o=0;o<i.length;o++)if(!(Iz.js+jz(i[0])in t))return!1;return i.map(iF)}return!1}},aF=[_z,Pz,Hz,Bz,Vz,Uz,Wz,Yz,Xz,Gz,Kz,Jz,Qz,Zz,tF,oF],sF=aF.filter((function(e){return e.supportedProperty})).map((function(e){return e.supportedProperty})),lF=aF.filter((function(e){return e.noPrefill})).reduce((function(e,t){return e.push.apply(e,SP(t.noPrefill)),e}),[]),cF={};if(_P){$z=document.createElement("p");var uF=window.getComputedStyle(document.documentElement,"");for(var dF in uF)isNaN(dF)||(cF[uF[dF]]=uF[dF]);lF.forEach((function(e){return delete cF[e]}))}function fF(e,t){if(void 0===t&&(t={}),!$z)return e;if(null!=cF[e])return cF[e];"transition"!==e&&"transform"!==e||(t[e]=e in $z.style);for(var n=0;n<sF.length&&(cF[e]=sF[n](e,$z.style,t),!cF[e]);n++);try{$z.style[e]=""}catch(e){return!1}return cF[e]}var hF,pF={},mF={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},gF=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function yF(e,t,n){if("var"===t)return"var";if("all"===t)return"all";if("all"===n)return", all";var r=t?fF(t):", "+fF(n);return r||(t||n)}function vF(e,t){var n=t;if(!hF||"content"===e)return t;if("string"!=typeof n||!isNaN(parseInt(n,10)))return n;var r=e+n;if(null!=pF[r])return pF[r];try{hF.style[e]=n}catch(e){return pF[r]=!1,!1}if(mF[e])n=n.replace(gF,yF);else if(""===hF.style[e]&&("-ms-flex"===(n=Iz.css+n)&&(hF.style[e]="-ms-flexbox"),hF.style[e]=n,""===hF.style[e]))return pF[r]=!1,!1;return hF.style[e]="",pF[r]=n,pF[r]}function bF(){function e(t){for(var n in t){var r=t[n];if("fallbacks"===n&&Array.isArray(r))t[n]=r.map(e);else{var i=!1,o=fF(n);o&&o!==n&&(i=!0);var a=!1,s=vF(o,UP(r));s&&s!==r&&(a=!0),(i||a)&&(i&&delete t[n],t[o||n]=s||r)}}return t}return{onProcessRule:function(e){if("keyframes"===e.type){var t=e;t.at=function(e){return"-"===e[1]||"ms"===Iz.js?e:"@"+Iz.css+"keyframes"+e.substr(10)}(t.at)}},onProcessStyle:function(t,n){return"style"!==n.type?t:e(t)},onChangeValue:function(e,t){return vF(t,UP(e))||e}}}function xF(){var e=function(e,t){return e.length===t.length?e>t?1:-1:e.length-t.length};return{onProcessStyle:function(t,n){if("style"!==n.type)return t;for(var r={},i=Object.keys(t).sort(e),o=0;o<i.length;o++)r[i[o]]=t[i[o]];return r}}}function SF(){return{plugins:[tz(),lz(),fz(),{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=vz(e[t]);return e}return vz(e)},onChangeValue:function(e,t,n){if(0===t.indexOf("--"))return e;var r=yz(t);return t===r?e:(n.prop(r,e),null)}},kz(),"undefined"==typeof window?null:bF(),xF()]}}function wF(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.baseClasses,n=e.newClasses;if(e.Component,!n)return t;var r=U_({},t);return Object.keys(n).forEach((function(e){n[e]&&(r[e]="".concat(t[e]," ").concat(n[e]))})),r}_P&&(hF=document.createElement("p"));var MF={set:function(e,t,n,r){var i=e.get(t);i||(i=new Map,e.set(t,i)),i.set(n,r)},get:function(e,t,n){var r=e.get(t);return r?r.get(n):void 0},delete:function(e,t,n){e.get(t).delete(n)}},EF=MF,kF=D_.createContext(null);function CF(){return D_.useContext(kF)}var TF,AF=GL(SF()),OF={disableGeneration:!1,generateClassName:DP(),jss:AF,sheetsCache:null,sheetsManager:new Map,sheetsRegistry:null},NF=D_.createContext(OF);function qF(e){var t=e.children,n=e.injectFirst,r=void 0!==n&&n,i=e.disableGeneration,o=void 0!==i&&i,a=iP(e,["children","injectFirst","disableGeneration"]),s=U_({},D_.useContext(NF),{disableGeneration:o},a);if(!s.jss.options.insertionPoint&&r&&"undefined"!=typeof window){if(!TF){var l=document.head;TF=document.createComment("mui-inject-first"),l.insertBefore(TF,l.firstChild)}s.jss=GL({plugins:SF().plugins,insertionPoint:TF})}return D_.createElement(NF.Provider,{value:s},t)}var DF=-1e9;var RF={};function IF(e,t){var n=e.state,r=e.theme,i=e.stylesOptions,o=e.stylesCreator,a=e.name;if(!i.disableGeneration){var s=EF.get(i.sheetsManager,o,r);s||(s={refs:0,staticSheet:null,dynamicStyles:null},EF.set(i.sheetsManager,o,r,s));var l=U_({},o.options,i,{theme:r,flip:"boolean"==typeof i.flip?i.flip:"rtl"===r.direction});l.generateId=l.serverGenerateClassName||l.generateClassName;var c=i.sheetsRegistry;if(0===s.refs){var u;i.sheetsCache&&(u=EF.get(i.sheetsCache,o,r));var d=o.create(r,a);u||((u=i.jss.createStyleSheet(d,U_({link:!1},l))).attach(),i.sheetsCache&&EF.set(i.sheetsCache,o,r,u)),c&&c.add(u),s.staticSheet=u,s.dynamicStyles=JL(d)}if(s.dynamicStyles){var f=i.jss.createStyleSheet(s.dynamicStyles,U_({link:!0},l));f.update(t),f.attach(),n.dynamicSheet=f,n.classes=wF({baseClasses:s.staticSheet.classes,newClasses:f.classes}),c&&c.add(f)}else n.classes=s.staticSheet.classes;s.refs+=1}}function _F(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.name,r=t.classNamePrefix,i=t.Component,o=t.defaultTheme,a=void 0===o?RF:o,s=iP(t,["name","classNamePrefix","Component","defaultTheme"]),l=function(e){var t="function"==typeof e;return{create:function(n,r){var i;try{i=t?e(n):e}catch(e){throw e}if(!r||!n.overrides||!n.overrides[r])return i;var o=n.overrides[r],a=U_({},i);return Object.keys(o).forEach((function(e){a[e]=X_(a[e],o[e])})),a},options:{}}}(e),c=n||r||"makeStyles";l.options={index:DF+=1,name:n,meta:c,classNamePrefix:c};return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=CF()||a,r=U_({},D_.useContext(NF),s),o=D_.useRef(),c=D_.useRef();!function(e,t){var n,r=D_.useRef([]),i=D_.useMemo((function(){return{}}),t);r.current!==i&&(r.current=i,n=e()),D_.useEffect((function(){return function(){n&&n()}}),[i])}((function(){var i={name:n,state:{},stylesCreator:l,stylesOptions:r,theme:t};return IF(i,e),c.current=!1,o.current=i,function(){!function(e){var t=e.state,n=e.theme,r=e.stylesOptions,i=e.stylesCreator;if(!r.disableGeneration){var o=EF.get(r.sheetsManager,i,n);o.refs-=1;var a=r.sheetsRegistry;0===o.refs&&(EF.delete(r.sheetsManager,i,n),r.jss.removeStyleSheet(o.staticSheet),a&&a.remove(o.staticSheet)),t.dynamicSheet&&(r.jss.removeStyleSheet(t.dynamicSheet),a&&a.remove(t.dynamicSheet))}}(i)}}),[t,l]),D_.useEffect((function(){c.current&&function(e,t){var n=e.state;n.dynamicSheet&&n.dynamicSheet.update(t)}(o.current,e),c.current=!0}));var u=function(e,t,n){var r=e.state;if(e.stylesOptions.disableGeneration)return t||{};r.cacheClasses||(r.cacheClasses={value:null,lastProp:null,lastJSS:{}});var i=!1;return r.classes!==r.cacheClasses.lastJSS&&(r.cacheClasses.lastJSS=r.classes,i=!0),t!==r.cacheClasses.lastProp&&(r.cacheClasses.lastProp=t,i=!0),i&&(r.cacheClasses.value=wF({baseClasses:r.cacheClasses.lastJSS,newClasses:t,Component:n})),r.cacheClasses.value}(o.current,e.classes,i);return u}}function PF(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=PF(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function LF(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=PF(e))&&(r&&(r+=" "),r+=t);return r}var zF={exports:{}},FF={},jF="function"==typeof Symbol&&Symbol.for,$F=jF?Symbol.for("react.element"):60103,HF=jF?Symbol.for("react.portal"):60106,BF=jF?Symbol.for("react.fragment"):60107,VF=jF?Symbol.for("react.strict_mode"):60108,UF=jF?Symbol.for("react.profiler"):60114,WF=jF?Symbol.for("react.provider"):60109,YF=jF?Symbol.for("react.context"):60110,XF=jF?Symbol.for("react.async_mode"):60111,GF=jF?Symbol.for("react.concurrent_mode"):60111,KF=jF?Symbol.for("react.forward_ref"):60112,JF=jF?Symbol.for("react.suspense"):60113,QF=jF?Symbol.for("react.suspense_list"):60120,ZF=jF?Symbol.for("react.memo"):60115,ej=jF?Symbol.for("react.lazy"):60116,tj=jF?Symbol.for("react.block"):60121,nj=jF?Symbol.for("react.fundamental"):60117,rj=jF?Symbol.for("react.responder"):60118,ij=jF?Symbol.for("react.scope"):60119;function oj(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case $F:switch(e=e.type){case XF:case GF:case BF:case UF:case VF:case JF:return e;default:switch(e=e&&e.$$typeof){case YF:case KF:case ej:case ZF:case WF:return e;default:return t}}case HF:return t}}}function aj(e){return oj(e)===GF}FF.AsyncMode=XF,FF.ConcurrentMode=GF,FF.ContextConsumer=YF,FF.ContextProvider=WF,FF.Element=$F,FF.ForwardRef=KF,FF.Fragment=BF,FF.Lazy=ej,FF.Memo=ZF,FF.Portal=HF,FF.Profiler=UF,FF.StrictMode=VF,FF.Suspense=JF,FF.isAsyncMode=function(e){return aj(e)||oj(e)===XF},FF.isConcurrentMode=aj,FF.isContextConsumer=function(e){return oj(e)===YF},FF.isContextProvider=function(e){return oj(e)===WF},FF.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===$F},FF.isForwardRef=function(e){return oj(e)===KF},FF.isFragment=function(e){return oj(e)===BF},FF.isLazy=function(e){return oj(e)===ej},FF.isMemo=function(e){return oj(e)===ZF},FF.isPortal=function(e){return oj(e)===HF},FF.isProfiler=function(e){return oj(e)===UF},FF.isStrictMode=function(e){return oj(e)===VF},FF.isSuspense=function(e){return oj(e)===JF},FF.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===BF||e===GF||e===UF||e===VF||e===JF||e===QF||"object"==typeof e&&null!==e&&(e.$$typeof===ej||e.$$typeof===ZF||e.$$typeof===WF||e.$$typeof===YF||e.$$typeof===KF||e.$$typeof===nj||e.$$typeof===rj||e.$$typeof===ij||e.$$typeof===tj)},FF.typeOf=oj,zF.exports=FF;var sj=zF.exports,lj={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},cj={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},uj={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},dj={};function fj(e){return sj.isMemo(e)?uj:dj[e.$$typeof]||lj}dj[sj.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},dj[sj.Memo]=uj;var hj=Object.defineProperty,pj=Object.getOwnPropertyNames,mj=Object.getOwnPropertySymbols,gj=Object.getOwnPropertyDescriptor,yj=Object.getPrototypeOf,vj=Object.prototype;var bj=function e(t,n,r){if("string"!=typeof n){if(vj){var i=yj(n);i&&i!==vj&&e(t,i,r)}var o=pj(n);mj&&(o=o.concat(mj(n)));for(var a=fj(t),s=fj(n),l=0;l<o.length;++l){var c=o[l];if(!(cj[c]||r&&r[c]||s&&s[c]||a&&a[c])){var u=gj(n,c);try{hj(t,c,u)}catch(e){}}}}return t},xj=n(bj);function Sj(e){return function(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=r.name,o=iP(r,["name"]),a=i,s="function"==typeof t?function(e){return{root:function(n){return t(U_({theme:e},n))}}}:{root:t},l=_F(s,U_({Component:e,name:i||e.displayName,classNamePrefix:a},o));t.filterProps&&(n=t.filterProps,delete t.filterProps),t.propTypes&&(t.propTypes,delete t.propTypes);var c=D_.forwardRef((function(t,r){var i,o,a,s=t.children,c=t.className,u=t.clone,d=t.component,f=iP(t,["children","className","clone","component"]),h=LF(l(t).root,c),p=f;if(n&&(i=p,o=n,a={},Object.keys(i).forEach((function(e){-1===o.indexOf(e)&&(a[e]=i[e])})),p=a),u)return D_.cloneElement(s,U_({className:LF(s.props.className,h)},p));if("function"==typeof s)return s(U_({className:h},p));var m=d||e;return D_.createElement(m,U_({ref:r,className:h},p),s)}));return xj(c,e),c}}function wj(e){var t=e.children,n=e.theme,r=CF(),i=D_.useMemo((function(){var e=null===r?n:function(e,t){return"function"==typeof t?t(e):U_({},e,t)}(r,n);return null!=e&&(e[NP]=null!==r),e}),[n,r]);return D_.createElement(kF.Provider,{value:i},t)}var Mj=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n){var r=t.defaultTheme,i=t.withTheme,o=void 0!==i&&i,a=t.name,s=iP(t,["defaultTheme","withTheme","name"]),l=a,c=_F(e,U_({defaultTheme:r,Component:n,name:a||n.displayName,classNamePrefix:l},s)),u=D_.forwardRef((function(e,t){e.classes;var i,s=e.innerRef,l=iP(e,["classes","innerRef"]),u=c(U_({},n.defaultProps,e)),d=l;return("string"==typeof a||o)&&(i=CF()||r,a&&(d=RP({theme:i,name:a,props:l})),o&&!d.theme&&(d.theme=i)),D_.createElement(n,U_({ref:s||t,classes:u},d))}));return xj(u,n),u}},Ej=OP(),kj=function(e){var t=Sj(e);return function(e,n){return t(e,U_({defaultTheme:Ej},n))}};function Cj(e,t){return Mj(e,U_({defaultTheme:Ej},t))}function Tj(e){if("string"!=typeof e)throw new Error(J_(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Aj(){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 Oj(e){return e&&e.ownerDocument||document}function Nj(e){return Oj(e).defaultView||window}function qj(e,t){"function"==typeof e?e(t):e&&(e.current=t)}var Dj="undefined"!=typeof window?q_.useLayoutEffect:q_.useEffect;function Rj(e){var t=q_.useRef(e);return Dj((function(){t.current=e})),q_.useCallback((function(){return t.current.apply(void 0,arguments)}),[])}function Ij(e,t){return q_.useMemo((function(){return null==e&&null==t?null:function(n){qj(e,n),qj(t,n)}}),[e,t])}var _j={exports:{}},Pj={},Lj={exports:{}},zj={};
|
|
31
|
+
*/uz();var hz=Date.now(),pz="fnValues"+hz,mz="fnStyle"+ ++hz,gz=function(){return{onCreateRule:function(e,t,n){if("function"!=typeof t)return null;var r=iL(e,{},n);return r[mz]=t,r},onProcessStyle:function(e,t){if(pz in t||mz in t)return e;var n={};for(var r in e){var i=e[r];"function"==typeof i&&(delete e[r],n[r]=i)}return t[pz]=n,e},onUpdate:function(e,t,n,r){var i=t,o=i[mz];o&&(i.style=o(e)||{});var a=i[pz];if(a)for(var s in a)i.prop(s,a[s](e),r)}}},yz="@global",vz="@global ",bz=function(){function e(e,t,n){for(var r in this.type="global",this.at=yz,this.isProcessed=!1,this.key=e,this.options=n,this.rules=new HL(aP({},n,{parent:this})),t)this.rules.add(r,t[r]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.replaceRule=function(e,t,n){var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.indexOf=function(e){return this.rules.indexOf(e)},t.toString=function(e){return this.rules.toString(e)},e}(),xz=function(){function e(e,t,n){this.type="global",this.at=yz,this.isProcessed=!1,this.key=e,this.options=n;var r=e.substr(vz.length);this.rule=n.jss.createRule(r,t,aP({},n,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),Sz=/\s*,\s*/g;function wz(e,t){for(var n=e.split(Sz),r="",i=0;i<n.length;i++)r+=t+" "+n[i].trim(),n[i+1]&&(r+=", ");return r}function Mz(){return{onCreateRule:function(e,t,n){if(!e)return null;if(e===yz)return new bz(e,t,n);if("@"===e[0]&&e.substr(0,vz.length)===vz)return new xz(e,t,n);var r=n.parent;return r&&("global"===r.type||r.options.parent&&"global"===r.options.parent.type)&&(n.scoped=!1),n.selector||!1!==n.scoped||(n.selector=e),null},onProcessRule:function(e,t){"style"===e.type&&t&&(function(e,t){var n=e.options,r=e.style,i=r?r[yz]:null;if(i){for(var o in i)t.addRule(o,i[o],aP({},n,{selector:wz(o,e.selector)}));delete r[yz]}}(e,t),function(e,t){var n=e.options,r=e.style;for(var i in r)if("@"===i[0]&&i.substr(0,yz.length)===yz){var o=wz(i.substr(yz.length),e.selector);t.addRule(o,r[i],aP({},n,{selector:o})),delete r[i]}}(e,t))}}}var Ez=/\s*,\s*/g,kz=/&/g,Cz=/\$([\w-]+)/g;function Tz(){function e(e,t){return function(n,r){var i=e.getRule(r)||t&&t.getRule(r);return i?i.selector:r}}function t(e,t){for(var n=t.split(Ez),r=e.split(Ez),i="",o=0;o<n.length;o++)for(var a=n[o],s=0;s<r.length;s++){var l=r[s];i&&(i+=", "),i+=-1!==l.indexOf("&")?l.replace(kz,a):a+" "+l}return i}function n(e,t,n){if(n)return aP({},n,{index:n.index+1});var r=e.options.nestingLevel;r=void 0===r?1:r+1;var i=aP({},e.options,{nestingLevel:r,index:t.indexOf(e)+1});return delete i.name,i}return{onProcessStyle:function(r,i,o){if("style"!==i.type)return r;var a,s,l=i,c=l.options.parent;for(var u in r){var d=-1!==u.indexOf("&"),f="@"===u[0];if(d||f){if(a=n(l,c,a),d){var h=t(u,l.selector);s||(s=e(c,o)),h=h.replace(Cz,s);var p=l.key+"-"+u;"replaceRule"in c?c.replaceRule(p,r[u],aP({},a,{selector:h})):c.addRule(p,r[u],aP({},a,{selector:h}))}else f&&c.addRule(u,{},a).addRule(l.key,r[u],{selector:l.selector});delete r[u]}}return r}}}var Az=/[A-Z]/g,Oz=/^ms-/,Nz={};function qz(e){return"-"+e.toLowerCase()}function Dz(e){if(Nz.hasOwnProperty(e))return Nz[e];var t=e.replace(Az,qz);return Nz[e]=Oz.test(t)?"-"+t:t}function Rz(e){var t={};for(var n in e){t[0===n.indexOf("--")?n:Dz(n)]=e[n]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(Rz):t.fallbacks=Rz(e.fallbacks)),t}var Iz=dz&&CSS?CSS.px:"px",_z=dz&&CSS?CSS.ms:"ms",Pz=dz&&CSS?CSS.percent:"%";function Lz(e){var t=/(-[a-z])/g,n=function(e){return e[1].toUpperCase()},r={};for(var i in e)r[i]=e[i],r[i.replace(t,n)]=e[i];return r}var zz=Lz({"animation-delay":_z,"animation-duration":_z,"background-position":Iz,"background-position-x":Iz,"background-position-y":Iz,"background-size":Iz,border:Iz,"border-bottom":Iz,"border-bottom-left-radius":Iz,"border-bottom-right-radius":Iz,"border-bottom-width":Iz,"border-left":Iz,"border-left-width":Iz,"border-radius":Iz,"border-right":Iz,"border-right-width":Iz,"border-top":Iz,"border-top-left-radius":Iz,"border-top-right-radius":Iz,"border-top-width":Iz,"border-width":Iz,"border-block":Iz,"border-block-end":Iz,"border-block-end-width":Iz,"border-block-start":Iz,"border-block-start-width":Iz,"border-block-width":Iz,"border-inline":Iz,"border-inline-end":Iz,"border-inline-end-width":Iz,"border-inline-start":Iz,"border-inline-start-width":Iz,"border-inline-width":Iz,"border-start-start-radius":Iz,"border-start-end-radius":Iz,"border-end-start-radius":Iz,"border-end-end-radius":Iz,margin:Iz,"margin-bottom":Iz,"margin-left":Iz,"margin-right":Iz,"margin-top":Iz,"margin-block":Iz,"margin-block-end":Iz,"margin-block-start":Iz,"margin-inline":Iz,"margin-inline-end":Iz,"margin-inline-start":Iz,padding:Iz,"padding-bottom":Iz,"padding-left":Iz,"padding-right":Iz,"padding-top":Iz,"padding-block":Iz,"padding-block-end":Iz,"padding-block-start":Iz,"padding-inline":Iz,"padding-inline-end":Iz,"padding-inline-start":Iz,"mask-position-x":Iz,"mask-position-y":Iz,"mask-size":Iz,height:Iz,width:Iz,"min-height":Iz,"max-height":Iz,"min-width":Iz,"max-width":Iz,bottom:Iz,left:Iz,top:Iz,right:Iz,inset:Iz,"inset-block":Iz,"inset-block-end":Iz,"inset-block-start":Iz,"inset-inline":Iz,"inset-inline-end":Iz,"inset-inline-start":Iz,"box-shadow":Iz,"text-shadow":Iz,"column-gap":Iz,"column-rule":Iz,"column-rule-width":Iz,"column-width":Iz,"font-size":Iz,"font-size-delta":Iz,"letter-spacing":Iz,"text-decoration-thickness":Iz,"text-indent":Iz,"text-stroke":Iz,"text-stroke-width":Iz,"word-spacing":Iz,motion:Iz,"motion-offset":Iz,outline:Iz,"outline-offset":Iz,"outline-width":Iz,perspective:Iz,"perspective-origin-x":Pz,"perspective-origin-y":Pz,"transform-origin":Pz,"transform-origin-x":Pz,"transform-origin-y":Pz,"transform-origin-z":Pz,"transition-delay":_z,"transition-duration":_z,"vertical-align":Iz,"flex-basis":Iz,"shape-margin":Iz,size:Iz,gap:Iz,grid:Iz,"grid-gap":Iz,"row-gap":Iz,"grid-row-gap":Iz,"grid-column-gap":Iz,"grid-template-rows":Iz,"grid-template-columns":Iz,"grid-auto-rows":Iz,"grid-auto-columns":Iz,"box-shadow-x":Iz,"box-shadow-y":Iz,"box-shadow-blur":Iz,"box-shadow-spread":Iz,"font-line-height":Iz,"text-shadow-x":Iz,"text-shadow-y":Iz,"text-shadow-blur":Iz});function Fz(e,t,n){if(null==t)return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]=Fz(e,t[r],n);else if("object"==typeof t)if("fallbacks"===e)for(var i in t)t[i]=Fz(i,t[i],n);else for(var o in t)t[o]=Fz(e+"-"+o,t[o],n);else if("number"==typeof t&&!1===isNaN(t)){var a=n[e]||zz[e];return!a||0===t&&a===Iz?t.toString():"function"==typeof a?a(t).toString():""+t+a}return t}function jz(e){void 0===e&&(e={});var t=Lz(e);return{onProcessStyle:function(e,n){if("style"!==n.type)return e;for(var r in e)e[r]=Fz(r,e[r],t);return e},onChangeValue:function(e,n){return Fz(n,e,t)}}}var $z="",Hz="",Bz="",Vz="",Uz=KP&&"ontouchstart"in document.documentElement;if(KP){var Wz={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},Yz=document.createElement("p").style;for(var Xz in Wz)if(Xz+"Transform"in Yz){$z=Xz,Hz=Wz[Xz];break}"Webkit"===$z&&"msHyphens"in Yz&&($z="ms",Hz=Wz.ms,Vz="edge"),"Webkit"===$z&&"-apple-trailing-word"in Yz&&(Bz="apple")}var Gz={js:$z,css:Hz,vendor:Bz,browser:Vz,isTouch:Uz};var Kz={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===Gz.js?"-webkit-"+e:Gz.css+e)}},Jz={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===Gz.js?Gz.css+"print-"+e:e)}},Qz=/[-\s]+(.)?/g;function Zz(e,t){return t?t.toUpperCase():""}function eF(e){return e.replace(Qz,Zz)}function tF(e){return eF("-"+e)}var nF,rF={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===Gz.js){var n="mask-image";if(eF(n)in t)return e;if(Gz.js+tF(n)in t)return Gz.css+e}return e}},iF={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==Gz.vendor||Gz.isTouch?e:Gz.css+e)}},oF={noPrefill:["transform"],supportedProperty:function(e,t,n){return"transform"===e&&(n.transform?e:Gz.css+e)}},aF={noPrefill:["transition"],supportedProperty:function(e,t,n){return"transition"===e&&(n.transition?e:Gz.css+e)}},sF={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===Gz.js||"ms"===Gz.js&&"edge"!==Gz.browser?Gz.css+e:e)}},lF={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===Gz.js||"ms"===Gz.js||"apple"===Gz.vendor?Gz.css+e:e)}},cF={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===Gz.js?"WebkitColumn"+tF(e)in t&&Gz.css+"column-"+e:"Moz"===Gz.js&&("page"+tF(e)in t&&"page-"+e))}},uF={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===Gz.js)return e;var n=e.replace("-inline","");return Gz.js+tF(n)in t&&Gz.css+n}},dF={supportedProperty:function(e,t){return eF(e)in t&&e}},fF={supportedProperty:function(e,t){var n=tF(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:Gz.js+n in t?Gz.css+e:"Webkit"!==Gz.js&&"Webkit"+n in t&&"-webkit-"+e}},hF={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===Gz.js?""+Gz.css+e:e)}},pF={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===Gz.js?Gz.css+"scroll-chaining":e)}},mF={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},gF={supportedProperty:function(e,t){var n=mF[e];return!!n&&(Gz.js+tF(n)in t&&Gz.css+n)}},yF={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},vF=Object.keys(yF),bF=function(e){return Gz.css+e},xF={supportedProperty:function(e,t,n){var r=n.multiple;if(vF.indexOf(e)>-1){var i=yF[e];if(!Array.isArray(i))return Gz.js+tF(i)in t&&Gz.css+i;if(!r)return!1;for(var o=0;o<i.length;o++)if(!(Gz.js+tF(i[0])in t))return!1;return i.map(bF)}return!1}},SF=[Kz,Jz,rF,iF,oF,aF,sF,lF,cF,uF,dF,fF,hF,pF,gF,xF],wF=SF.filter((function(e){return e.supportedProperty})).map((function(e){return e.supportedProperty})),MF=SF.filter((function(e){return e.noPrefill})).reduce((function(e,t){return e.push.apply(e,PP(t.noPrefill)),e}),[]),EF={};if(KP){nF=document.createElement("p");var kF=window.getComputedStyle(document.documentElement,"");for(var CF in kF)isNaN(CF)||(EF[kF[CF]]=kF[CF]);MF.forEach((function(e){return delete EF[e]}))}function TF(e,t){if(void 0===t&&(t={}),!nF)return e;if(null!=EF[e])return EF[e];"transition"!==e&&"transform"!==e||(t[e]=e in nF.style);for(var n=0;n<wF.length&&(EF[e]=wF[n](e,nF.style,t),!EF[e]);n++);try{nF.style[e]=""}catch(e){return!1}return EF[e]}var AF,OF={},NF={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},qF=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function DF(e,t,n){if("var"===t)return"var";if("all"===t)return"all";if("all"===n)return", all";var r=t?TF(t):", "+TF(n);return r||(t||n)}function RF(e,t){var n=t;if(!AF||"content"===e)return t;if("string"!=typeof n||!isNaN(parseInt(n,10)))return n;var r=e+n;if(null!=OF[r])return OF[r];try{AF.style[e]=n}catch(e){return OF[r]=!1,!1}if(NF[e])n=n.replace(qF,DF);else if(""===AF.style[e]&&("-ms-flex"===(n=Gz.css+n)&&(AF.style[e]="-ms-flexbox"),AF.style[e]=n,""===AF.style[e]))return OF[r]=!1,!1;return AF.style[e]="",OF[r]=n,OF[r]}function IF(){function e(t){for(var n in t){var r=t[n];if("fallbacks"===n&&Array.isArray(r))t[n]=r.map(e);else{var i=!1,o=TF(n);o&&o!==n&&(i=!0);var a=!1,s=RF(o,aL(r));s&&s!==r&&(a=!0),(i||a)&&(i&&delete t[n],t[o||n]=s||r)}}return t}return{onProcessRule:function(e){if("keyframes"===e.type){var t=e;t.at=function(e){return"-"===e[1]||"ms"===Gz.js?e:"@"+Gz.css+"keyframes"+e.substr(10)}(t.at)}},onProcessStyle:function(t,n){return"style"!==n.type?t:e(t)},onChangeValue:function(e,t){return RF(t,aL(e))||e}}}function _F(){var e=function(e,t){return e.length===t.length?e>t?1:-1:e.length-t.length};return{onProcessStyle:function(t,n){if("style"!==n.type)return t;for(var r={},i=Object.keys(t).sort(e),o=0;o<i.length;o++)r[i[o]]=t[i[o]];return r}}}function PF(){return{plugins:[gz(),Mz(),Tz(),{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=Rz(e[t]);return e}return Rz(e)},onChangeValue:function(e,t,n){if(0===t.indexOf("--"))return e;var r=Dz(t);return t===r?e:(n.prop(r,e),null)}},jz(),"undefined"==typeof window?null:IF(),_F()]}}function LF(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.baseClasses,n=e.newClasses;if(e.Component,!n)return t;var r=aP({},t);return Object.keys(n).forEach((function(e){n[e]&&(r[e]="".concat(t[e]," ").concat(n[e]))})),r}KP&&(AF=document.createElement("p"));var zF={set:function(e,t,n,r){var i=e.get(t);i||(i=new Map,e.set(t,i)),i.set(n,r)},get:function(e,t,n){var r=e.get(t);return r?r.get(n):void 0},delete:function(e,t,n){e.get(t).delete(n)}},FF=zF,jF=q_.createContext(null);function $F(){return q_.useContext(jF)}var HF,BF=uz(PF()),VF={disableGeneration:!1,generateClassName:YP(),jss:BF,sheetsCache:null,sheetsManager:new Map,sheetsRegistry:null},UF=q_.createContext(VF);function WF(e){var t=e.children,n=e.injectFirst,r=void 0!==n&&n,i=e.disableGeneration,o=void 0!==i&&i,a=bP(e,["children","injectFirst","disableGeneration"]),s=aP({},q_.useContext(UF),{disableGeneration:o},a);if(!s.jss.options.insertionPoint&&r&&"undefined"!=typeof window){if(!HF){var l=document.head;HF=document.createComment("mui-inject-first"),l.insertBefore(HF,l.firstChild)}s.jss=uz({plugins:PF().plugins,insertionPoint:HF})}return q_.createElement(UF.Provider,{value:s},t)}var YF=-1e9;var XF={};function GF(e,t){var n=e.state,r=e.theme,i=e.stylesOptions,o=e.stylesCreator,a=e.name;if(!i.disableGeneration){var s=FF.get(i.sheetsManager,o,r);s||(s={refs:0,staticSheet:null,dynamicStyles:null},FF.set(i.sheetsManager,o,r,s));var l=aP({},o.options,i,{theme:r,flip:"boolean"==typeof i.flip?i.flip:"rtl"===r.direction});l.generateId=l.serverGenerateClassName||l.generateClassName;var c=i.sheetsRegistry;if(0===s.refs){var u;i.sheetsCache&&(u=FF.get(i.sheetsCache,o,r));var d=o.create(r,a);u||((u=i.jss.createStyleSheet(d,aP({link:!1},l))).attach(),i.sheetsCache&&FF.set(i.sheetsCache,o,r,u)),c&&c.add(u),s.staticSheet=u,s.dynamicStyles=fz(d)}if(s.dynamicStyles){var f=i.jss.createStyleSheet(s.dynamicStyles,aP({link:!0},l));f.update(t),f.attach(),n.dynamicSheet=f,n.classes=LF({baseClasses:s.staticSheet.classes,newClasses:f.classes}),c&&c.add(f)}else n.classes=s.staticSheet.classes;s.refs+=1}}function KF(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.name,r=t.classNamePrefix,i=t.Component,o=t.defaultTheme,a=void 0===o?XF:o,s=bP(t,["name","classNamePrefix","Component","defaultTheme"]),l=function(e){var t="function"==typeof e;return{create:function(n,r){var i;try{i=t?e(n):e}catch(e){throw e}if(!r||!n.overrides||!n.overrides[r])return i;var o=n.overrides[r],a=aP({},i);return Object.keys(o).forEach((function(e){a[e]=cP(a[e],o[e])})),a},options:{}}}(e),c=n||r||"makeStyles";l.options={index:YF+=1,name:n,meta:c,classNamePrefix:c};return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=$F()||a,r=aP({},q_.useContext(UF),s),o=q_.useRef(),c=q_.useRef();!function(e,t){var n,r=q_.useRef([]),i=q_.useMemo((function(){return{}}),t);r.current!==i&&(r.current=i,n=e()),q_.useEffect((function(){return function(){n&&n()}}),[i])}((function(){var i={name:n,state:{},stylesCreator:l,stylesOptions:r,theme:t};return GF(i,e),c.current=!1,o.current=i,function(){!function(e){var t=e.state,n=e.theme,r=e.stylesOptions,i=e.stylesCreator;if(!r.disableGeneration){var o=FF.get(r.sheetsManager,i,n);o.refs-=1;var a=r.sheetsRegistry;0===o.refs&&(FF.delete(r.sheetsManager,i,n),r.jss.removeStyleSheet(o.staticSheet),a&&a.remove(o.staticSheet)),t.dynamicSheet&&(r.jss.removeStyleSheet(t.dynamicSheet),a&&a.remove(t.dynamicSheet))}}(i)}}),[t,l]),q_.useEffect((function(){c.current&&function(e,t){var n=e.state;n.dynamicSheet&&n.dynamicSheet.update(t)}(o.current,e),c.current=!0}));var u=function(e,t,n){var r=e.state;if(e.stylesOptions.disableGeneration)return t||{};r.cacheClasses||(r.cacheClasses={value:null,lastProp:null,lastJSS:{}});var i=!1;return r.classes!==r.cacheClasses.lastJSS&&(r.cacheClasses.lastJSS=r.classes,i=!0),t!==r.cacheClasses.lastProp&&(r.cacheClasses.lastProp=t,i=!0),i&&(r.cacheClasses.value=LF({baseClasses:r.cacheClasses.lastJSS,newClasses:t,Component:n})),r.cacheClasses.value}(o.current,e.classes,i);return u}}function JF(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=JF(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function QF(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=JF(e))&&(r&&(r+=" "),r+=t);return r}var ZF={exports:{}},ej={},tj="function"==typeof Symbol&&Symbol.for,nj=tj?Symbol.for("react.element"):60103,rj=tj?Symbol.for("react.portal"):60106,ij=tj?Symbol.for("react.fragment"):60107,oj=tj?Symbol.for("react.strict_mode"):60108,aj=tj?Symbol.for("react.profiler"):60114,sj=tj?Symbol.for("react.provider"):60109,lj=tj?Symbol.for("react.context"):60110,cj=tj?Symbol.for("react.async_mode"):60111,uj=tj?Symbol.for("react.concurrent_mode"):60111,dj=tj?Symbol.for("react.forward_ref"):60112,fj=tj?Symbol.for("react.suspense"):60113,hj=tj?Symbol.for("react.suspense_list"):60120,pj=tj?Symbol.for("react.memo"):60115,mj=tj?Symbol.for("react.lazy"):60116,gj=tj?Symbol.for("react.block"):60121,yj=tj?Symbol.for("react.fundamental"):60117,vj=tj?Symbol.for("react.responder"):60118,bj=tj?Symbol.for("react.scope"):60119;function xj(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case nj:switch(e=e.type){case cj:case uj:case ij:case aj:case oj:case fj:return e;default:switch(e=e&&e.$$typeof){case lj:case dj:case mj:case pj:case sj:return e;default:return t}}case rj:return t}}}function Sj(e){return xj(e)===uj}ej.AsyncMode=cj,ej.ConcurrentMode=uj,ej.ContextConsumer=lj,ej.ContextProvider=sj,ej.Element=nj,ej.ForwardRef=dj,ej.Fragment=ij,ej.Lazy=mj,ej.Memo=pj,ej.Portal=rj,ej.Profiler=aj,ej.StrictMode=oj,ej.Suspense=fj,ej.isAsyncMode=function(e){return Sj(e)||xj(e)===cj},ej.isConcurrentMode=Sj,ej.isContextConsumer=function(e){return xj(e)===lj},ej.isContextProvider=function(e){return xj(e)===sj},ej.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===nj},ej.isForwardRef=function(e){return xj(e)===dj},ej.isFragment=function(e){return xj(e)===ij},ej.isLazy=function(e){return xj(e)===mj},ej.isMemo=function(e){return xj(e)===pj},ej.isPortal=function(e){return xj(e)===rj},ej.isProfiler=function(e){return xj(e)===aj},ej.isStrictMode=function(e){return xj(e)===oj},ej.isSuspense=function(e){return xj(e)===fj},ej.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===ij||e===uj||e===aj||e===oj||e===fj||e===hj||"object"==typeof e&&null!==e&&(e.$$typeof===mj||e.$$typeof===pj||e.$$typeof===sj||e.$$typeof===lj||e.$$typeof===dj||e.$$typeof===yj||e.$$typeof===vj||e.$$typeof===bj||e.$$typeof===gj)},ej.typeOf=xj,ZF.exports=ej;var wj=ZF.exports,Mj={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Ej={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},kj={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Cj={};function Tj(e){return wj.isMemo(e)?kj:Cj[e.$$typeof]||Mj}Cj[wj.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Cj[wj.Memo]=kj;var Aj=Object.defineProperty,Oj=Object.getOwnPropertyNames,Nj=Object.getOwnPropertySymbols,qj=Object.getOwnPropertyDescriptor,Dj=Object.getPrototypeOf,Rj=Object.prototype;var Ij=function e(t,n,r){if("string"!=typeof n){if(Rj){var i=Dj(n);i&&i!==Rj&&e(t,i,r)}var o=Oj(n);Nj&&(o=o.concat(Nj(n)));for(var a=Tj(t),s=Tj(n),l=0;l<o.length;++l){var c=o[l];if(!(Ej[c]||r&&r[c]||s&&s[c]||a&&a[c])){var u=qj(n,c);try{Aj(t,c,u)}catch(e){}}}}return t},_j=n(Ij);function Pj(e){return function(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=r.name,o=bP(r,["name"]),a=i,s="function"==typeof t?function(e){return{root:function(n){return t(aP({theme:e},n))}}}:{root:t},l=KF(s,aP({Component:e,name:i||e.displayName,classNamePrefix:a},o));t.filterProps&&(n=t.filterProps,delete t.filterProps),t.propTypes&&(t.propTypes,delete t.propTypes);var c=q_.forwardRef((function(t,r){var i,o,a,s=t.children,c=t.className,u=t.clone,d=t.component,f=bP(t,["children","className","clone","component"]),h=QF(l(t).root,c),p=f;if(n&&(i=p,o=n,a={},Object.keys(i).forEach((function(e){-1===o.indexOf(e)&&(a[e]=i[e])})),p=a),u)return q_.cloneElement(s,aP({className:QF(s.props.className,h)},p));if("function"==typeof s)return s(aP({className:h},p));var m=d||e;return q_.createElement(m,aP({ref:r,className:h},p),s)}));return _j(c,e),c}}function Lj(e){var t=e.children,n=e.theme,r=$F(),i=q_.useMemo((function(){var e=null===r?n:function(e,t){return"function"==typeof t?t(e):aP({},e,t)}(r,n);return null!=e&&(e[UP]=null!==r),e}),[n,r]);return q_.createElement(jF.Provider,{value:i},t)}var zj=VP(),Fj=function(e){var t=Pj(e);return function(e,n){return t(e,aP({defaultTheme:zj},n))}};function jj(e,t){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n){var r=t.defaultTheme,i=t.withTheme,o=void 0!==i&&i,a=t.name,s=bP(t,["defaultTheme","withTheme","name"]),l=a,c=KF(e,aP({defaultTheme:r,Component:n,name:a||n.displayName,classNamePrefix:l},s)),u=q_.forwardRef((function(e,t){e.classes;var i,s=e.innerRef,l=bP(e,["classes","innerRef"]),u=c(aP({},n.defaultProps,e)),d=l;return("string"==typeof a||o)&&(i=$F()||r,a&&(d=XP({theme:i,name:a,props:l})),o&&!d.theme&&(d.theme=i)),q_.createElement(n,aP({ref:s||t,classes:u},d))}));return _j(u,n),u}}(e,aP({defaultTheme:zj},t))}function $j(e){if("string"!=typeof e)throw new Error(fP(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Hj(){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 Bj(e){return e&&e.ownerDocument||document}function Vj(e){return Bj(e).defaultView||window}function Uj(e,t){"function"==typeof e?e(t):e&&(e.current=t)}var Wj="undefined"!=typeof window?N_.useLayoutEffect:N_.useEffect;function Yj(e){var t=N_.useRef(e);return Wj((function(){t.current=e})),N_.useCallback((function(){return t.current.apply(void 0,arguments)}),[])}function Xj(e,t){return N_.useMemo((function(){return null==e&&null==t?null:function(n){Uj(e,n),Uj(t,n)}}),[e,t])}var Gj={exports:{}},Kj={},Jj={exports:{}},Qj={};
|
|
32
32
|
/** @license React v0.19.1
|
|
33
33
|
* scheduler.production.min.js
|
|
34
34
|
*
|
|
@@ -37,7 +37,7 @@ e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,i,o,a,s,l,c,u,d,f=e.le
|
|
|
37
37
|
* This source code is licensed under the MIT license found in the
|
|
38
38
|
* LICENSE file in the root directory of this source tree.
|
|
39
39
|
*/
|
|
40
|
-
!function(e){var t,n,r,i,o;if("undefined"==typeof window||"function"!=typeof MessageChannel){var a=null,s=null,l=function(){if(null!==a)try{var t=e.unstable_now();a(!0,t),a=null}catch(e){throw setTimeout(l,0),e}},c=Date.now();e.unstable_now=function(){return Date.now()-c},t=function(e){null!==a?setTimeout(t,0,e):(a=e,setTimeout(l,0))},n=function(e,t){s=setTimeout(e,t)},r=function(){clearTimeout(s)},i=function(){return!1},o=e.unstable_forceFrameRate=function(){}}else{var u=window.performance,d=window.Date,f=window.setTimeout,h=window.clearTimeout;if("undefined"!=typeof console){var p=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof p&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")}if("object"==typeof u&&"function"==typeof u.now)e.unstable_now=function(){return u.now()};else{var m=d.now();e.unstable_now=function(){return d.now()-m}}var g=!1,y=null,v=-1,b=5,x=0;i=function(){return e.unstable_now()>=x},o=function(){},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"):b=0<e?Math.floor(1e3/e):5};var S=new MessageChannel,w=S.port2;S.port1.onmessage=function(){if(null!==y){var t=e.unstable_now();x=t+b;try{y(!0,t)?w.postMessage(null):(g=!1,y=null)}catch(e){throw w.postMessage(null),e}}else g=!1},t=function(e){y=e,g||(g=!0,w.postMessage(null))},n=function(t,n){v=f((function(){t(e.unstable_now())}),n)},r=function(){h(v),v=-1}}function M(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,i=e[r];if(!(void 0!==i&&0<C(i,t)))break e;e[r]=t,e[n]=i,n=r}}function E(e){return void 0===(e=e[0])?null:e}function k(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length;r<i;){var o=2*(r+1)-1,a=e[o],s=o+1,l=e[s];if(void 0!==a&&0>C(a,n))void 0!==l&&0>C(l,a)?(e[r]=l,e[s]=n,r=s):(e[r]=a,e[o]=n,r=o);else{if(!(void 0!==l&&0>C(l,n)))break e;e[r]=l,e[s]=n,r=s}}}return t}return null}function C(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var T=[],A=[],O=1,N=null,q=3,D=!1,R=!1,I=!1;function _(e){for(var t=E(A);null!==t;){if(null===t.callback)k(A);else{if(!(t.startTime<=e))break;k(A),t.sortIndex=t.expirationTime,M(T,t)}t=E(A)}}function P(e){if(I=!1,_(e),!R)if(null!==E(T))R=!0,t(L);else{var r=E(A);null!==r&&n(P,r.startTime-e)}}function L(t,o){R=!1,I&&(I=!1,r()),D=!0;var a=q;try{for(_(o),N=E(T);null!==N&&(!(N.expirationTime>o)||t&&!i());){var s=N.callback;if(null!==s){N.callback=null,q=N.priorityLevel;var l=s(N.expirationTime<=o);o=e.unstable_now(),"function"==typeof l?N.callback=l:N===E(T)&&k(T),_(o)}else k(T);N=E(T)}if(null!==N)var c=!0;else{var u=E(A);null!==u&&n(P,u.startTime-o),c=!1}return c}finally{N=null,q=a,D=!1}}function z(e){switch(e){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var F=o;e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_continueExecution=function(){R||D||(R=!0,t(L))},e.unstable_getCurrentPriorityLevel=function(){return q},e.unstable_getFirstCallbackNode=function(){return E(T)},e.unstable_next=function(e){switch(q){case 1:case 2:case 3:var t=3;break;default:t=q}var n=q;q=t;try{return e()}finally{q=n}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=F,e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=q;q=e;try{return t()}finally{q=n}},e.unstable_scheduleCallback=function(i,o,a){var s=e.unstable_now();if("object"==typeof a&&null!==a){var l=a.delay;l="number"==typeof l&&0<l?s+l:s,a="number"==typeof a.timeout?a.timeout:z(i)}else a=z(i),l=s;return i={id:O++,callback:o,priorityLevel:i,startTime:l,expirationTime:a=l+a,sortIndex:-1},l>s?(i.sortIndex=l,M(A,i),null===E(T)&&i===E(A)&&(I?r():I=!0,n(P,l-s))):(i.sortIndex=a,M(T,i),R||D||(R=!0,t(L))),i},e.unstable_shouldYield=function(){var t=e.unstable_now();_(t);var n=E(T);return n!==N&&null!==N&&null!==n&&null!==n.callback&&n.startTime<=t&&n.expirationTime<N.expirationTime||i()},e.unstable_wrapCallback=function(e){var t=q;return function(){var n=q;q=t;try{return e.apply(this,arguments)}finally{q=n}}}}(
|
|
40
|
+
!function(e){var t,n,r,i,o;if("undefined"==typeof window||"function"!=typeof MessageChannel){var a=null,s=null,l=function(){if(null!==a)try{var t=e.unstable_now();a(!0,t),a=null}catch(e){throw setTimeout(l,0),e}},c=Date.now();e.unstable_now=function(){return Date.now()-c},t=function(e){null!==a?setTimeout(t,0,e):(a=e,setTimeout(l,0))},n=function(e,t){s=setTimeout(e,t)},r=function(){clearTimeout(s)},i=function(){return!1},o=e.unstable_forceFrameRate=function(){}}else{var u=window.performance,d=window.Date,f=window.setTimeout,h=window.clearTimeout;if("undefined"!=typeof console){var p=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof p&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")}if("object"==typeof u&&"function"==typeof u.now)e.unstable_now=function(){return u.now()};else{var m=d.now();e.unstable_now=function(){return d.now()-m}}var g=!1,y=null,v=-1,b=5,x=0;i=function(){return e.unstable_now()>=x},o=function(){},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"):b=0<e?Math.floor(1e3/e):5};var S=new MessageChannel,w=S.port2;S.port1.onmessage=function(){if(null!==y){var t=e.unstable_now();x=t+b;try{y(!0,t)?w.postMessage(null):(g=!1,y=null)}catch(e){throw w.postMessage(null),e}}else g=!1},t=function(e){y=e,g||(g=!0,w.postMessage(null))},n=function(t,n){v=f((function(){t(e.unstable_now())}),n)},r=function(){h(v),v=-1}}function M(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,i=e[r];if(!(void 0!==i&&0<C(i,t)))break e;e[r]=t,e[n]=i,n=r}}function E(e){return void 0===(e=e[0])?null:e}function k(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length;r<i;){var o=2*(r+1)-1,a=e[o],s=o+1,l=e[s];if(void 0!==a&&0>C(a,n))void 0!==l&&0>C(l,a)?(e[r]=l,e[s]=n,r=s):(e[r]=a,e[o]=n,r=o);else{if(!(void 0!==l&&0>C(l,n)))break e;e[r]=l,e[s]=n,r=s}}}return t}return null}function C(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var T=[],A=[],O=1,N=null,q=3,D=!1,R=!1,I=!1;function _(e){for(var t=E(A);null!==t;){if(null===t.callback)k(A);else{if(!(t.startTime<=e))break;k(A),t.sortIndex=t.expirationTime,M(T,t)}t=E(A)}}function P(e){if(I=!1,_(e),!R)if(null!==E(T))R=!0,t(L);else{var r=E(A);null!==r&&n(P,r.startTime-e)}}function L(t,o){R=!1,I&&(I=!1,r()),D=!0;var a=q;try{for(_(o),N=E(T);null!==N&&(!(N.expirationTime>o)||t&&!i());){var s=N.callback;if(null!==s){N.callback=null,q=N.priorityLevel;var l=s(N.expirationTime<=o);o=e.unstable_now(),"function"==typeof l?N.callback=l:N===E(T)&&k(T),_(o)}else k(T);N=E(T)}if(null!==N)var c=!0;else{var u=E(A);null!==u&&n(P,u.startTime-o),c=!1}return c}finally{N=null,q=a,D=!1}}function z(e){switch(e){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var F=o;e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_continueExecution=function(){R||D||(R=!0,t(L))},e.unstable_getCurrentPriorityLevel=function(){return q},e.unstable_getFirstCallbackNode=function(){return E(T)},e.unstable_next=function(e){switch(q){case 1:case 2:case 3:var t=3;break;default:t=q}var n=q;q=t;try{return e()}finally{q=n}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=F,e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=q;q=e;try{return t()}finally{q=n}},e.unstable_scheduleCallback=function(i,o,a){var s=e.unstable_now();if("object"==typeof a&&null!==a){var l=a.delay;l="number"==typeof l&&0<l?s+l:s,a="number"==typeof a.timeout?a.timeout:z(i)}else a=z(i),l=s;return i={id:O++,callback:o,priorityLevel:i,startTime:l,expirationTime:a=l+a,sortIndex:-1},l>s?(i.sortIndex=l,M(A,i),null===E(T)&&i===E(A)&&(I?r():I=!0,n(P,l-s))):(i.sortIndex=a,M(T,i),R||D||(R=!0,t(L))),i},e.unstable_shouldYield=function(){var t=e.unstable_now();_(t);var n=E(T);return n!==N&&null!==N&&null!==n&&null!==n.callback&&n.startTime<=t&&n.expirationTime<N.expirationTime||i()},e.unstable_wrapCallback=function(e){var t=q;return function(){var n=q;q=t;try{return e.apply(this,arguments)}finally{q=n}}}}(Qj),Jj.exports=Qj;var Zj=Jj.exports,e$=N_,t$=VI,n$=Zj;
|
|
41
41
|
/** @license React v16.14.0
|
|
42
42
|
* react-dom.production.min.js
|
|
43
43
|
*
|
|
@@ -45,4 +45,4 @@ e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,i,o,a,s,l,c,u,d,f=e.le
|
|
|
45
45
|
*
|
|
46
46
|
* This source code is licensed under the MIT license found in the
|
|
47
47
|
* LICENSE file in the root directory of this source tree.
|
|
48
|
-
*/function Bj(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!jj)throw Error(Bj(227));function Vj(e,t,n,r,i,o,a,s,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(e){this.onError(e)}}var Uj=!1,Wj=null,Yj=!1,Xj=null,Gj={onError:function(e){Uj=!0,Wj=e}};function Kj(e,t,n,r,i,o,a,s,l){Uj=!1,Wj=null,Vj.apply(Gj,arguments)}var Jj=null,Qj=null,Zj=null;function e$(e,t,n){var r=e.type||"unknown-event";e.currentTarget=Zj(n),function(e,t,n,r,i,o,a,s,l){if(Kj.apply(this,arguments),Uj){if(!Uj)throw Error(Bj(198));var c=Wj;Uj=!1,Wj=null,Yj||(Yj=!0,Xj=c)}}(r,t,void 0,e),e.currentTarget=null}var t$=null,n$={};function r$(){if(t$)for(var e in n$){var t=n$[e],n=t$.indexOf(e);if(!(-1<n))throw Error(Bj(96,e));if(!o$[n]){if(!t.extractEvents)throw Error(Bj(97,e));for(var r in o$[n]=t,n=t.eventTypes){var i=void 0,o=n[r],a=t,s=r;if(a$.hasOwnProperty(s))throw Error(Bj(99,s));a$[s]=o;var l=o.phasedRegistrationNames;if(l){for(i in l)l.hasOwnProperty(i)&&i$(l[i],a,s);i=!0}else o.registrationName?(i$(o.registrationName,a,s),i=!0):i=!1;if(!i)throw Error(Bj(98,r,e))}}}}function i$(e,t,n){if(s$[e])throw Error(Bj(100,e));s$[e]=t,l$[e]=t.eventTypes[n].dependencies}var o$=[],a$={},s$={},l$={};function c$(e){var t,n=!1;for(t in e)if(e.hasOwnProperty(t)){var r=e[t];if(!n$.hasOwnProperty(t)||n$[t]!==r){if(n$[t])throw Error(Bj(102,t));n$[t]=r,n=!0}}n&&r$()}var u$=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),d$=null,f$=null,h$=null;function p$(e){if(e=Qj(e)){if("function"!=typeof d$)throw Error(Bj(280));var t=e.stateNode;t&&(t=Jj(t),d$(e.stateNode,e.type,t))}}function m$(e){f$?h$?h$.push(e):h$=[e]:f$=e}function g$(){if(f$){var e=f$,t=h$;if(h$=f$=null,p$(e),t)for(e=0;e<t.length;e++)p$(t[e])}}function y$(e,t){return e(t)}function v$(e,t,n,r,i){return e(t,n,r,i)}function b$(){}var x$=y$,S$=!1,w$=!1;function M$(){null===f$&&null===h$||(b$(),g$())}function E$(e,t,n){if(w$)return e(t,n);w$=!0;try{return x$(e,t,n)}finally{w$=!1,M$()}}var k$=/^[: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]*$/,C$=Object.prototype.hasOwnProperty,T$={},A$={};function O$(e,t,n,r,i,o){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o}var N$={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){N$[e]=new O$(e,0,!1,e,null,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];N$[t]=new O$(t,1,!1,e[1],null,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){N$[e]=new O$(e,2,!1,e.toLowerCase(),null,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){N$[e]=new O$(e,2,!1,e,null,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){N$[e]=new O$(e,3,!1,e.toLowerCase(),null,!1)})),["checked","multiple","muted","selected"].forEach((function(e){N$[e]=new O$(e,3,!0,e,null,!1)})),["capture","download"].forEach((function(e){N$[e]=new O$(e,4,!1,e,null,!1)})),["cols","rows","size","span"].forEach((function(e){N$[e]=new O$(e,6,!1,e,null,!1)})),["rowSpan","start"].forEach((function(e){N$[e]=new O$(e,5,!1,e.toLowerCase(),null,!1)}));var q$=/[\-:]([a-z])/g;function D$(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(q$,D$);N$[t]=new O$(t,1,!1,e,null,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(q$,D$);N$[t]=new O$(t,1,!1,e,"http://www.w3.org/1999/xlink",!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(q$,D$);N$[t]=new O$(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1)})),["tabIndex","crossOrigin"].forEach((function(e){N$[e]=new O$(e,1,!1,e.toLowerCase(),null,!1)})),N$.xlinkHref=new O$("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0),["src","href","action","formAction"].forEach((function(e){N$[e]=new O$(e,1,!1,e.toLowerCase(),null,!0)}));var R$=jj.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function I$(e,t,n,r){var i=N$.hasOwnProperty(t)?N$[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!!C$.call(A$,e)||!C$.call(T$,e)&&(k$.test(e)?A$[e]=!0:(T$[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))))}R$.hasOwnProperty("ReactCurrentDispatcher")||(R$.ReactCurrentDispatcher={current:null}),R$.hasOwnProperty("ReactCurrentBatchConfig")||(R$.ReactCurrentBatchConfig={suspense:null});var _$=/^(.*)[\\\/]/,P$="function"==typeof Symbol&&Symbol.for,L$=P$?Symbol.for("react.element"):60103,z$=P$?Symbol.for("react.portal"):60106,F$=P$?Symbol.for("react.fragment"):60107,j$=P$?Symbol.for("react.strict_mode"):60108,$$=P$?Symbol.for("react.profiler"):60114,H$=P$?Symbol.for("react.provider"):60109,B$=P$?Symbol.for("react.context"):60110,V$=P$?Symbol.for("react.concurrent_mode"):60111,U$=P$?Symbol.for("react.forward_ref"):60112,W$=P$?Symbol.for("react.suspense"):60113,Y$=P$?Symbol.for("react.suspense_list"):60120,X$=P$?Symbol.for("react.memo"):60115,G$=P$?Symbol.for("react.lazy"):60116,K$=P$?Symbol.for("react.block"):60121,J$="function"==typeof Symbol&&Symbol.iterator;function Q$(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=J$&&e[J$]||e["@@iterator"])?e:null}function Z$(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 F$:return"Fragment";case z$:return"Portal";case $$:return"Profiler";case j$:return"StrictMode";case W$:return"Suspense";case Y$:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case B$:return"Context.Consumer";case H$:return"Context.Provider";case U$:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case X$:return Z$(e.type);case K$:return Z$(e.render);case G$:if(e=1===e._status?e._result:null)return Z$(e)}return null}function eH(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=Z$(e.type);n=null,r&&(n=Z$(r.type)),r=o,o="",i?o=" (at "+i.fileName.replace(_$,"")+":"+i.lineNumber+")":n&&(o=" (created by "+n+")"),n="\n in "+(r||"Unknown")+o}t+=n,e=e.return}while(e);return t}function tH(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function nH(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function rH(e){e._valueTracker||(e._valueTracker=function(e){var t=nH(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 iH(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=nH(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function oH(e,t){var n=t.checked;return $j({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function aH(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=tH(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 sH(e,t){null!=(t=t.checked)&&I$(e,"checked",t,!1)}function lH(e,t){sH(e,t);var n=tH(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")?uH(e,t.type,n):t.hasOwnProperty("defaultValue")&&uH(e,t.type,tH(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function cH(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function uH(e,t,n){"number"===t&&e.ownerDocument.activeElement===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function dH(e,t){return e=$j({children:void 0},t),(t=function(e){var t="";return jj.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function fH(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=""+tH(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 hH(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(Bj(91));return $j({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function pH(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(Bj(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(Bj(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:tH(n)}}function mH(e,t){var n=tH(t.value),r=tH(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&&""!==t&&null!==t&&(e.value=t)}var yH="http://www.w3.org/1999/xhtml",vH="http://www.w3.org/2000/svg";function bH(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 xH(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?bH(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var SH,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!==vH||"innerHTML"in e)e.innerHTML=t;else{for((SH=SH||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=SH.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}));function MH(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}function EH(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var kH={animationend:EH("Animation","AnimationEnd"),animationiteration:EH("Animation","AnimationIteration"),animationstart:EH("Animation","AnimationStart"),transitionend:EH("Transition","TransitionEnd")},CH={},TH={};function AH(e){if(CH[e])return CH[e];if(!kH[e])return e;var t,n=kH[e];for(t in n)if(n.hasOwnProperty(t)&&t in TH)return CH[e]=n[t];return e}u$&&(TH=document.createElement("div").style,"AnimationEvent"in window||(delete kH.animationend.animation,delete kH.animationiteration.animation,delete kH.animationstart.animation),"TransitionEvent"in window||delete kH.transitionend.transition);var OH=AH("animationend"),NH=AH("animationiteration"),qH=AH("animationstart"),DH=AH("transitionend"),RH="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),IH=new("function"==typeof WeakMap?WeakMap:Map);function _H(e){var t=IH.get(e);return void 0===t&&(t=new Map,IH.set(e,t)),t}function PH(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(1026&(t=e).effectTag)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function LH(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function zH(e){if(PH(e)!==e)throw Error(Bj(188))}function FH(e){if(e=function(e){var t=e.alternate;if(!t){if(null===(t=PH(e)))throw Error(Bj(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var o=i.alternate;if(null===o){if(null!==(r=i.return)){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return zH(i),e;if(o===r)return zH(i),t;o=o.sibling}throw Error(Bj(188))}if(n.return!==r.return)n=i,r=o;else{for(var a=!1,s=i.child;s;){if(s===n){a=!0,n=i,r=o;break}if(s===r){a=!0,r=i,n=o;break}s=s.sibling}if(!a){for(s=o.child;s;){if(s===n){a=!0,n=o,r=i;break}if(s===r){a=!0,r=o,n=i;break}s=s.sibling}if(!a)throw Error(Bj(189))}}if(n.alternate!==r)throw Error(Bj(190))}if(3!==n.tag)throw Error(Bj(188));return n.stateNode.current===n?e:t}(e),!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}function jH(e,t){if(null==t)throw Error(Bj(30));return 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 $H(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}var HH=null;function BH(e){if(e){var t=e._dispatchListeners,n=e._dispatchInstances;if(Array.isArray(t))for(var r=0;r<t.length&&!e.isPropagationStopped();r++)e$(e,t[r],n[r]);else t&&e$(e,t,n);e._dispatchListeners=null,e._dispatchInstances=null,e.isPersistent()||e.constructor.release(e)}}function VH(e){if(null!==e&&(HH=jH(HH,e)),e=HH,HH=null,e){if($H(e,BH),HH)throw Error(Bj(95));if(Yj)throw e=Xj,Yj=!1,Xj=null,e}}function UH(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}function WH(e){if(!u$)return!1;var t=(e="on"+e)in document;return t||((t=document.createElement("div")).setAttribute(e,"return;"),t="function"==typeof t[e]),t}var YH=[];function XH(e){e.topLevelType=null,e.nativeEvent=null,e.targetInst=null,e.ancestors.length=0,10>YH.length&&YH.push(e)}function GH(e,t,n,r){if(YH.length){var i=YH.pop();return i.topLevelType=e,i.eventSystemFlags=r,i.nativeEvent=t,i.targetInst=n,i}return{topLevelType:e,eventSystemFlags:r,nativeEvent:t,targetInst:n,ancestors:[]}}function KH(e){var t=e.targetInst,n=t;do{if(!n){e.ancestors.push(n);break}var r=n;if(3===r.tag)r=r.stateNode.containerInfo;else{for(;r.return;)r=r.return;r=3!==r.tag?null:r.stateNode.containerInfo}if(!r)break;5!==(t=n.tag)&&6!==t||e.ancestors.push(n),n=pV(r)}while(n);for(n=0;n<e.ancestors.length;n++){t=e.ancestors[n];var i=UH(e.nativeEvent);r=e.topLevelType;var o=e.nativeEvent,a=e.eventSystemFlags;0===n&&(a|=64);for(var s=null,l=0;l<o$.length;l++){var c=o$[l];c&&(c=c.extractEvents(r,t,o,i,a))&&(s=jH(s,c))}VH(s)}}function JH(e,t,n){if(!n.has(e)){switch(e){case"scroll":qB(t,"scroll",!0);break;case"focus":case"blur":qB(t,"focus",!0),qB(t,"blur",!0),n.set("blur",null),n.set("focus",null);break;case"cancel":case"close":WH(e)&&qB(t,e,!0);break;case"invalid":case"submit":case"reset":break;default:-1===RH.indexOf(e)&&NB(e,t)}n.set(e,null)}}var QH,ZH,eB,tB=!1,nB=[],rB=null,iB=null,oB=null,aB=new Map,sB=new Map,lB=[],cB="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput close cancel copy cut paste click change contextmenu reset submit".split(" "),uB="focus blur dragenter dragleave mouseover mouseout pointerover pointerout gotpointercapture lostpointercapture".split(" ");function dB(e,t,n,r,i){return{blockedOn:e,topLevelType:t,eventSystemFlags:32|n,nativeEvent:i,container:r}}function fB(e,t){switch(e){case"focus":case"blur":rB=null;break;case"dragenter":case"dragleave":iB=null;break;case"mouseover":case"mouseout":oB=null;break;case"pointerover":case"pointerout":aB.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":sB.delete(t.pointerId)}}function hB(e,t,n,r,i,o){return null===e||e.nativeEvent!==o?(e=dB(t,n,r,i,o),null!==t&&(null!==(t=mV(t))&&ZH(t)),e):(e.eventSystemFlags|=r,e)}function pB(e){var t=pV(e.target);if(null!==t){var n=PH(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=LH(n)))return e.blockedOn=t,void Hj.unstable_runWithPriority(e.priority,(function(){eB(n)}))}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function mB(e){if(null!==e.blockedOn)return!1;var t=_B(e.topLevelType,e.eventSystemFlags,e.container,e.nativeEvent);if(null!==t){var n=mV(t);return null!==n&&ZH(n),e.blockedOn=t,!1}return!0}function gB(e,t,n){mB(e)&&n.delete(t)}function yB(){for(tB=!1;0<nB.length;){var e=nB[0];if(null!==e.blockedOn){null!==(e=mV(e.blockedOn))&&QH(e);break}var t=_B(e.topLevelType,e.eventSystemFlags,e.container,e.nativeEvent);null!==t?e.blockedOn=t:nB.shift()}null!==rB&&mB(rB)&&(rB=null),null!==iB&&mB(iB)&&(iB=null),null!==oB&&mB(oB)&&(oB=null),aB.forEach(gB),sB.forEach(gB)}function vB(e,t){e.blockedOn===t&&(e.blockedOn=null,tB||(tB=!0,Hj.unstable_scheduleCallback(Hj.unstable_NormalPriority,yB)))}function bB(e){function t(t){return vB(t,e)}if(0<nB.length){vB(nB[0],e);for(var n=1;n<nB.length;n++){var r=nB[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==rB&&vB(rB,e),null!==iB&&vB(iB,e),null!==oB&&vB(oB,e),aB.forEach(t),sB.forEach(t),n=0;n<lB.length;n++)(r=lB[n]).blockedOn===e&&(r.blockedOn=null);for(;0<lB.length&&null===(n=lB[0]).blockedOn;)pB(n),null===n.blockedOn&&lB.shift()}var xB={},SB=new Map,wB=new Map,MB=["abort","abort",OH,"animationEnd",NH,"animationIteration",qH,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",DH,"transitionEnd","waiting","waiting"];function EB(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],i=e[n+1],o="on"+(i[0].toUpperCase()+i.slice(1));o={phasedRegistrationNames:{bubbled:o,captured:o+"Capture"},dependencies:[r],eventPriority:t},wB.set(r,t),SB.set(r,o),xB[i]=o}}EB("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".split(" "),0),EB("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),EB(MB,2);for(var kB="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),CB=0;CB<kB.length;CB++)wB.set(kB[CB],0);var TB=Hj.unstable_UserBlockingPriority,AB=Hj.unstable_runWithPriority,OB=!0;function NB(e,t){qB(t,e,!1)}function qB(e,t,n){var r=wB.get(t);switch(void 0===r?2:r){case 0:r=DB.bind(null,t,1,e);break;case 1:r=RB.bind(null,t,1,e);break;default:r=IB.bind(null,t,1,e)}n?e.addEventListener(t,r,!0):e.addEventListener(t,r,!1)}function DB(e,t,n,r){S$||b$();var i=IB,o=S$;S$=!0;try{v$(i,e,t,n,r)}finally{(S$=o)||M$()}}function RB(e,t,n,r){AB(TB,IB.bind(null,e,t,n,r))}function IB(e,t,n,r){if(OB)if(0<nB.length&&-1<cB.indexOf(e))e=dB(null,e,t,n,r),nB.push(e);else{var i=_B(e,t,n,r);if(null===i)fB(e,r);else if(-1<cB.indexOf(e))e=dB(i,e,t,n,r),nB.push(e);else if(!function(e,t,n,r,i){switch(t){case"focus":return rB=hB(rB,e,t,n,r,i),!0;case"dragenter":return iB=hB(iB,e,t,n,r,i),!0;case"mouseover":return oB=hB(oB,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return aB.set(o,hB(aB.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,sB.set(o,hB(sB.get(o)||null,e,t,n,r,i)),!0}return!1}(i,e,t,n,r)){fB(e,r),e=GH(e,r,null,t);try{E$(KH,e)}finally{XH(e)}}}}function _B(e,t,n,r){if(null!==(n=pV(n=UH(r)))){var i=PH(n);if(null===i)n=null;else{var o=i.tag;if(13===o){if(null!==(n=LH(i)))return n;n=null}else if(3===o){if(i.stateNode.hydrate)return 3===i.tag?i.stateNode.containerInfo:null;n=null}else i!==n&&(n=null)}}e=GH(e,r,n,t);try{E$(KH,e)}finally{XH(e)}return null}var PB={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},LB=["Webkit","ms","Moz","O"];function zB(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||PB.hasOwnProperty(e)&&PB[e]?(""+t).trim():t+"px"}function FB(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=zB(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(PB).forEach((function(e){LB.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),PB[t]=PB[e]}))}));var jB=$j({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 $B(e,t){if(t){if(jB[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(Bj(137,e,""));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(Bj(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(Bj(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(Bj(62,""))}}function HB(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var BB=yH;function VB(e,t){var n=_H(e=9===e.nodeType||11===e.nodeType?e:e.ownerDocument);t=l$[t];for(var r=0;r<t.length;r++)JH(t[r],e,n)}function UB(){}function WB(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 YB(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function XB(e,t){var n,r=YB(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=YB(r)}}function GB(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?GB(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function KB(){for(var e=window,t=WB();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=WB((e=t.contentWindow).document)}return t}function JB(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)}var QB="$",ZB="/$",eV="$?",tV="$!",nV=null,rV=null;function iV(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function oV(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 aV="function"==typeof setTimeout?setTimeout:void 0,sV="function"==typeof clearTimeout?clearTimeout:void 0;function lV(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function cV(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if(n===QB||n===tV||n===eV){if(0===t)return e;t--}else n===ZB&&t++}e=e.previousSibling}return null}var uV=Math.random().toString(36).slice(2),dV="__reactInternalInstance$"+uV,fV="__reactEventHandlers$"+uV,hV="__reactContainere$"+uV;function pV(e){var t=e[dV];if(t)return t;for(var n=e.parentNode;n;){if(t=n[hV]||n[dV]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=cV(e);null!==e;){if(n=e[dV])return n;e=cV(e)}return t}n=(e=n).parentNode}return null}function mV(e){return!(e=e[dV]||e[hV])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function gV(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(Bj(33))}function yV(e){return e[fV]||null}function vV(e){do{e=e.return}while(e&&5!==e.tag);return e||null}function bV(e,t){var n=e.stateNode;if(!n)return null;var r=Jj(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":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(Bj(231,t,typeof n));return n}function xV(e,t,n){(t=bV(e,n.dispatchConfig.phasedRegistrationNames[t]))&&(n._dispatchListeners=jH(n._dispatchListeners,t),n._dispatchInstances=jH(n._dispatchInstances,e))}function SV(e){if(e&&e.dispatchConfig.phasedRegistrationNames){for(var t=e._targetInst,n=[];t;)n.push(t),t=vV(t);for(t=n.length;0<t--;)xV(n[t],"captured",e);for(t=0;t<n.length;t++)xV(n[t],"bubbled",e)}}function wV(e,t,n){e&&n&&n.dispatchConfig.registrationName&&(t=bV(e,n.dispatchConfig.registrationName))&&(n._dispatchListeners=jH(n._dispatchListeners,t),n._dispatchInstances=jH(n._dispatchInstances,e))}function MV(e){e&&e.dispatchConfig.registrationName&&wV(e._targetInst,null,e)}function EV(e){$H(e,SV)}var kV=null,CV=null,TV=null;function AV(){if(TV)return TV;var e,t,n=CV,r=n.length,i="value"in kV?kV.value:kV.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 TV=i.slice(e,1<t?1-t:void 0)}function OV(){return!0}function NV(){return!1}function qV(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)?OV:NV,this.isPropagationStopped=NV,this}function DV(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 RV(e){if(!(e instanceof this))throw Error(Bj(279));e.destructor(),10>this.eventPool.length&&this.eventPool.push(e)}function IV(e){e.eventPool=[],e.getPooled=DV,e.release=RV}$j(qV.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=OV)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=OV)},persist:function(){this.isPersistent=OV},isPersistent:NV,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=NV,this._dispatchInstances=this._dispatchListeners=null}}),qV.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},qV.extend=function(e){function t(){}function n(){return r.apply(this,arguments)}var r=this;t.prototype=r.prototype;var i=new t;return $j(i,n.prototype),n.prototype=i,n.prototype.constructor=n,n.Interface=$j({},r.Interface,e),n.extend=r.extend,IV(n),n},IV(qV);var _V=qV.extend({data:null}),PV=qV.extend({data:null}),LV=[9,13,27,32],zV=u$&&"CompositionEvent"in window,FV=null;u$&&"documentMode"in document&&(FV=document.documentMode);var jV=u$&&"TextEvent"in window&&!FV,$V=u$&&(!zV||FV&&8<FV&&11>=FV),HV=String.fromCharCode(32),BV={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(" ")}},VV=!1;function UV(e,t){switch(e){case"keyup":return-1!==LV.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function WV(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var YV=!1;var XV={eventTypes:BV,extractEvents:function(e,t,n,r){var i;if(zV)e:{switch(e){case"compositionstart":var o=BV.compositionStart;break e;case"compositionend":o=BV.compositionEnd;break e;case"compositionupdate":o=BV.compositionUpdate;break e}o=void 0}else YV?UV(e,n)&&(o=BV.compositionEnd):"keydown"===e&&229===n.keyCode&&(o=BV.compositionStart);return o?($V&&"ko"!==n.locale&&(YV||o!==BV.compositionStart?o===BV.compositionEnd&&YV&&(i=AV()):(CV="value"in(kV=r)?kV.value:kV.textContent,YV=!0)),o=_V.getPooled(o,t,n,r),i?o.data=i:null!==(i=WV(n))&&(o.data=i),EV(o),i=o):i=null,(e=jV?function(e,t){switch(e){case"compositionend":return WV(t);case"keypress":return 32!==t.which?null:(VV=!0,HV);case"textInput":return(e=t.data)===HV&&VV?null:e;default:return null}}(e,n):function(e,t){if(YV)return"compositionend"===e||!zV&&UV(e,t)?(e=AV(),TV=CV=kV=null,YV=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return $V&&"ko"!==t.locale?null:t.data}}(e,n))?((t=PV.getPooled(BV.beforeInput,t,n,r)).data=e,EV(t)):t=null,null===i?t:null===t?i:[i,t]}},GV={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 KV(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!GV[e.type]:"textarea"===t}var JV={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}};function QV(e,t,n){return(e=qV.getPooled(JV.change,e,t,n)).type="change",m$(n),EV(e),e}var ZV=null,eU=null;function tU(e){VH(e)}function nU(e){if(iH(gV(e)))return e}function rU(e,t){if("change"===e)return t}var iU=!1;function oU(){ZV&&(ZV.detachEvent("onpropertychange",aU),eU=ZV=null)}function aU(e){if("value"===e.propertyName&&nU(eU))if(e=QV(eU,e,UH(e)),S$)VH(e);else{S$=!0;try{y$(tU,e)}finally{S$=!1,M$()}}}function sU(e,t,n){"focus"===e?(oU(),eU=n,(ZV=t).attachEvent("onpropertychange",aU)):"blur"===e&&oU()}function lU(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return nU(eU)}function cU(e,t){if("click"===e)return nU(t)}function uU(e,t){if("input"===e||"change"===e)return nU(t)}u$&&(iU=WH("input")&&(!document.documentMode||9<document.documentMode));var dU={eventTypes:JV,_isInputEventSupported:iU,extractEvents:function(e,t,n,r){var i=t?gV(t):window,o=i.nodeName&&i.nodeName.toLowerCase();if("select"===o||"input"===o&&"file"===i.type)var a=rU;else if(KV(i))if(iU)a=uU;else{a=lU;var s=sU}else(o=i.nodeName)&&"input"===o.toLowerCase()&&("checkbox"===i.type||"radio"===i.type)&&(a=cU);if(a&&(a=a(e,t)))return QV(a,n,r);s&&s(e,i,t),"blur"===e&&(e=i._wrapperState)&&e.controlled&&"number"===i.type&&uH(i,"number",i.value)}},fU=qV.extend({view:null,detail:null}),hU={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function pU(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=hU[e])&&!!t[e]}function mU(){return pU}var gU=0,yU=0,vU=!1,bU=!1,xU=fU.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:mU,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=gU;return gU=e.screenX,vU?"mousemove"===e.type?e.screenX-t:0:(vU=!0,0)},movementY:function(e){if("movementY"in e)return e.movementY;var t=yU;return yU=e.screenY,bU?"mousemove"===e.type?e.screenY-t:0:(bU=!0,0)}}),SU=xU.extend({pointerId:null,width:null,height:null,pressure:null,tangentialPressure:null,tiltX:null,tiltY:null,twist:null,pointerType:null,isPrimary:null}),wU={mouseEnter:{registrationName:"onMouseEnter",dependencies:["mouseout","mouseover"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["mouseout","mouseover"]},pointerEnter:{registrationName:"onPointerEnter",dependencies:["pointerout","pointerover"]},pointerLeave:{registrationName:"onPointerLeave",dependencies:["pointerout","pointerover"]}},MU={eventTypes:wU,extractEvents:function(e,t,n,r,i){var o="mouseover"===e||"pointerover"===e,a="mouseout"===e||"pointerout"===e;if(o&&0==(32&i)&&(n.relatedTarget||n.fromElement)||!a&&!o)return null;(o=r.window===r?r:(o=r.ownerDocument)?o.defaultView||o.parentWindow:window,a)?(a=t,null!==(t=(t=n.relatedTarget||n.toElement)?pV(t):null)&&(t!==PH(t)||5!==t.tag&&6!==t.tag)&&(t=null)):a=null;if(a===t)return null;if("mouseout"===e||"mouseover"===e)var s=xU,l=wU.mouseLeave,c=wU.mouseEnter,u="mouse";else"pointerout"!==e&&"pointerover"!==e||(s=SU,l=wU.pointerLeave,c=wU.pointerEnter,u="pointer");if(e=null==a?o:gV(a),o=null==t?o:gV(t),(l=s.getPooled(l,a,n,r)).type=u+"leave",l.target=e,l.relatedTarget=o,(n=s.getPooled(c,t,n,r)).type=u+"enter",n.target=o,n.relatedTarget=e,u=t,(r=a)&&u)e:{for(c=u,a=0,e=s=r;e;e=vV(e))a++;for(e=0,t=c;t;t=vV(t))e++;for(;0<a-e;)s=vV(s),a--;for(;0<e-a;)c=vV(c),e--;for(;a--;){if(s===c||s===c.alternate)break e;s=vV(s),c=vV(c)}s=null}else s=null;for(c=s,s=[];r&&r!==c&&(null===(a=r.alternate)||a!==c);)s.push(r),r=vV(r);for(r=[];u&&u!==c&&(null===(a=u.alternate)||a!==c);)r.push(u),u=vV(u);for(u=0;u<s.length;u++)wV(s[u],"bubbled",l);for(u=r.length;0<u--;)wV(r[u],"captured",n);return 0==(64&i)?[l]:[l,n]}};var EU="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},kU=Object.prototype.hasOwnProperty;function CU(e,t){if(EU(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(!kU.call(t,n[r])||!EU(e[n[r]],t[n[r]]))return!1;return!0}var TU=u$&&"documentMode"in document&&11>=document.documentMode,AU={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},OU=null,NU=null,qU=null,DU=!1;function RU(e,t){var n=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;return DU||null==OU||OU!==WB(n)?null:("selectionStart"in(n=OU)&&JB(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},qU&&CU(qU,n)?null:(qU=n,(e=qV.getPooled(AU.select,NU,e,t)).type="select",e.target=OU,EV(e),e))}var IU={eventTypes:AU,extractEvents:function(e,t,n,r,i,o){if(!(o=!(i=o||(r.window===r?r.document:9===r.nodeType?r:r.ownerDocument)))){e:{i=_H(i),o=l$.onSelect;for(var a=0;a<o.length;a++)if(!i.has(o[a])){i=!1;break e}i=!0}o=!i}if(o)return null;switch(i=t?gV(t):window,e){case"focus":(KV(i)||"true"===i.contentEditable)&&(OU=i,NU=t,qU=null);break;case"blur":qU=NU=OU=null;break;case"mousedown":DU=!0;break;case"contextmenu":case"mouseup":case"dragend":return DU=!1,RU(n,r);case"selectionchange":if(TU)break;case"keydown":case"keyup":return RU(n,r)}return null}},_U=qV.extend({animationName:null,elapsedTime:null,pseudoElement:null}),PU=qV.extend({clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),LU=fU.extend({relatedTarget:null});function zU(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 FU={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},jU={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"},$U=fU.extend({key:function(e){if(e.key){var t=FU[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=zU(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?jU[e.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:mU,charCode:function(e){return"keypress"===e.type?zU(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?zU(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),HU=xU.extend({dataTransfer:null}),BU=fU.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:mU}),VU=qV.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),UU=xU.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}),WU={eventTypes:xB,extractEvents:function(e,t,n,r){var i=SB.get(e);if(!i)return null;switch(e){case"keypress":if(0===zU(n))return null;case"keydown":case"keyup":e=$U;break;case"blur":case"focus":e=LU;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=xU;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":e=HU;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":e=BU;break;case OH:case NH:case qH:e=_U;break;case DH:e=VU;break;case"scroll":e=fU;break;case"wheel":e=UU;break;case"copy":case"cut":case"paste":e=PU;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":e=SU;break;default:e=qV}return EV(t=e.getPooled(i,t,n,r)),t}};if(t$)throw Error(Bj(101));t$=Array.prototype.slice.call("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),r$(),Jj=yV,Qj=mV,Zj=gV,c$({SimpleEventPlugin:WU,EnterLeaveEventPlugin:MU,ChangeEventPlugin:dU,SelectEventPlugin:IU,BeforeInputEventPlugin:XV});var YU=[],XU=-1;function GU(e){0>XU||(e.current=YU[XU],YU[XU]=null,XU--)}function KU(e,t){XU++,YU[XU]=e.current,e.current=t}var JU={},QU={current:JU},ZU={current:!1},eW=JU;function tW(e,t){var n=e.type.contextTypes;if(!n)return JU;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 nW(e){return null!=(e=e.childContextTypes)}function rW(){GU(ZU),GU(QU)}function iW(e,t,n){if(QU.current!==JU)throw Error(Bj(168));KU(QU,t),KU(ZU,n)}function oW(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in e))throw Error(Bj(108,Z$(t)||"Unknown",i));return $j({},n,{},r)}function aW(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||JU,eW=QU.current,KU(QU,e),KU(ZU,ZU.current),!0}function sW(e,t,n){var r=e.stateNode;if(!r)throw Error(Bj(169));n?(e=oW(e,t,eW),r.__reactInternalMemoizedMergedChildContext=e,GU(ZU),GU(QU),KU(QU,e)):GU(ZU),KU(ZU,n)}var lW=Hj.unstable_runWithPriority,cW=Hj.unstable_scheduleCallback,uW=Hj.unstable_cancelCallback,dW=Hj.unstable_requestPaint,fW=Hj.unstable_now,hW=Hj.unstable_getCurrentPriorityLevel,pW=Hj.unstable_ImmediatePriority,mW=Hj.unstable_UserBlockingPriority,gW=Hj.unstable_NormalPriority,yW=Hj.unstable_LowPriority,vW=Hj.unstable_IdlePriority,bW={},xW=Hj.unstable_shouldYield,SW=void 0!==dW?dW:function(){},wW=null,MW=null,EW=!1,kW=fW(),CW=1e4>kW?fW:function(){return fW()-kW};function TW(){switch(hW()){case pW:return 99;case mW:return 98;case gW:return 97;case yW:return 96;case vW:return 95;default:throw Error(Bj(332))}}function AW(e){switch(e){case 99:return pW;case 98:return mW;case 97:return gW;case 96:return yW;case 95:return vW;default:throw Error(Bj(332))}}function OW(e,t){return e=AW(e),lW(e,t)}function NW(e,t,n){return e=AW(e),cW(e,t,n)}function qW(e){return null===wW?(wW=[e],MW=cW(pW,RW)):wW.push(e),bW}function DW(){if(null!==MW){var e=MW;MW=null,uW(e)}RW()}function RW(){if(!EW&&null!==wW){EW=!0;var e=0;try{var t=wW;OW(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),wW=null}catch(t){throw null!==wW&&(wW=wW.slice(e+1)),cW(pW,DW),t}finally{EW=!1}}}function IW(e,t,n){return 1073741821-(1+((1073741821-e+t/10)/(n/=10)|0))*n}function _W(e,t){if(e&&e.defaultProps)for(var n in t=$j({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}var PW={current:null},LW=null,zW=null,FW=null;function jW(){FW=zW=LW=null}function $W(e){var t=PW.current;GU(PW),e.type._context._currentValue=t}function HW(e,t){for(;null!==e;){var n=e.alternate;if(e.childExpirationTime<t)e.childExpirationTime=t,null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t);else{if(!(null!==n&&n.childExpirationTime<t))break;n.childExpirationTime=t}e=e.return}}function BW(e,t){LW=e,FW=zW=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(e.expirationTime>=t&&(gX=!0),e.firstContext=null)}function VW(e,t){if(FW!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(FW=e,t=1073741823),t={context:e,observedBits:t,next:null},null===zW){if(null===LW)throw Error(Bj(308));zW=t,LW.dependencies={expirationTime:0,firstContext:t,responders:null}}else zW=zW.next=t;return e._currentValue}var UW=!1;function WW(e){e.updateQueue={baseState:e.memoizedState,baseQueue:null,shared:{pending:null},effects:null}}function YW(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,baseQueue:e.baseQueue,shared:e.shared,effects:e.effects})}function XW(e,t){return(e={expirationTime:e,suspenseConfig:t,tag:0,payload:null,callback:null,next:null}).next=e}function GW(e,t){if(null!==(e=e.updateQueue)){var n=(e=e.shared).pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function KW(e,t){var n=e.alternate;null!==n&&YW(n,e),null===(n=(e=e.updateQueue).baseQueue)?(e.baseQueue=t.next=t,t.next=t):(t.next=n.next,n.next=t)}function JW(e,t,n,r){var i=e.updateQueue;UW=!1;var o=i.baseQueue,a=i.shared.pending;if(null!==a){if(null!==o){var s=o.next;o.next=a.next,a.next=s}o=a,i.shared.pending=null,null!==(s=e.alternate)&&(null!==(s=s.updateQueue)&&(s.baseQueue=a))}if(null!==o){s=o.next;var l=i.baseState,c=0,u=null,d=null,f=null;if(null!==s)for(var h=s;;){if((a=h.expirationTime)<r){var p={expirationTime:h.expirationTime,suspenseConfig:h.suspenseConfig,tag:h.tag,payload:h.payload,callback:h.callback,next:null};null===f?(d=f=p,u=l):f=f.next=p,a>c&&(c=a)}else{null!==f&&(f=f.next={expirationTime:1073741823,suspenseConfig:h.suspenseConfig,tag:h.tag,payload:h.payload,callback:h.callback,next:null}),nK(a,h.suspenseConfig);e:{var m=e,g=h;switch(a=t,p=n,g.tag){case 1:if("function"==typeof(m=g.payload)){l=m.call(p,l,a);break e}l=m;break e;case 3:m.effectTag=-4097&m.effectTag|64;case 0:if(null==(a="function"==typeof(m=g.payload)?m.call(p,l,a):m))break e;l=$j({},l,a);break e;case 2:UW=!0}}null!==h.callback&&(e.effectTag|=32,null===(a=i.effects)?i.effects=[h]:a.push(h))}if(null===(h=h.next)||h===s){if(null===(a=i.shared.pending))break;h=o.next=a.next,a.next=s,i.baseQueue=o=a,i.shared.pending=null}}null===f?u=l:f.next=d,i.baseState=u,i.baseQueue=f,rK(c),e.expirationTime=c,e.memoizedState=l}}function QW(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(null!==i){if(r.callback=null,r=i,i=n,"function"!=typeof r)throw Error(Bj(191,r));r.call(i)}}}var ZW=R$.ReactCurrentBatchConfig,eY=(new jj.Component).refs;function tY(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:$j({},t,n),e.memoizedState=n,0===e.expirationTime&&(e.updateQueue.baseState=n)}var nY={isMounted:function(e){return!!(e=e._reactInternalFiber)&&PH(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternalFiber;var r=BG(),i=ZW.suspense;(i=XW(r=VG(r,e,i),i)).payload=t,null!=n&&(i.callback=n),GW(e,i),UG(e,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternalFiber;var r=BG(),i=ZW.suspense;(i=XW(r=VG(r,e,i),i)).tag=1,i.payload=t,null!=n&&(i.callback=n),GW(e,i),UG(e,r)},enqueueForceUpdate:function(e,t){e=e._reactInternalFiber;var n=BG(),r=ZW.suspense;(r=XW(n=VG(n,e,r),r)).tag=2,null!=t&&(r.callback=t),GW(e,r),UG(e,n)}};function rY(e,t,n,r,i,o,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,a):!t.prototype||!t.prototype.isPureReactComponent||(!CU(n,r)||!CU(i,o))}function iY(e,t,n){var r=!1,i=JU,o=t.contextType;return"object"==typeof o&&null!==o?o=VW(o):(i=nW(t)?eW:QU.current,o=(r=null!=(r=t.contextTypes))?tW(e,i):JU),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=nY,e.stateNode=t,t._reactInternalFiber=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function oY(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&&nY.enqueueReplaceState(t,t.state,null)}function aY(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=eY,WW(e);var o=t.contextType;"object"==typeof o&&null!==o?i.context=VW(o):(o=nW(t)?eW:QU.current,i.context=tW(e,o)),JW(e,n,i,r),i.state=e.memoizedState,"function"==typeof(o=t.getDerivedStateFromProps)&&(tY(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&&nY.enqueueReplaceState(i,i.state,null),JW(e,n,i,r),i.state=e.memoizedState),"function"==typeof i.componentDidMount&&(e.effectTag|=4)}var sY=Array.isArray;function lY(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(Bj(309));var r=n.stateNode}if(!r)throw Error(Bj(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===eY&&(t=r.refs={}),null===e?delete t[i]:t[i]=e},t._stringRef=i,t)}if("string"!=typeof e)throw Error(Bj(284));if(!n._owner)throw Error(Bj(290,e))}return e}function cY(e,t){if("textarea"!==e.type)throw Error(Bj(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t,""))}function uY(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){return(e=MK(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=CK(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=lY(e,t,n),r.return=e,r):((r=EK(n.type,n.key,n.props,null,e.mode,r)).ref=lY(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=TK(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function u(e,t,n,r,o){return null===t||7!==t.tag?((t=kK(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=CK(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case L$:return(n=EK(t.type,t.key,t.props,null,e.mode,n)).ref=lY(e,null,t),n.return=e,n;case z$:return(t=TK(t,e.mode,n)).return=e,t}if(sY(t)||Q$(t))return(t=kK(t,e.mode,n,null)).return=e,t;cY(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 L$:return n.key===i?n.type===F$?u(e,t,n.props.children,r,i):l(e,t,n,r):null;case z$:return n.key===i?c(e,t,n,r):null}if(sY(n)||Q$(n))return null!==i?null:u(e,t,n,r,null);cY(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 L$:return e=e.get(null===r.key?n:r.key)||null,r.type===F$?u(t,e,r.props.children,i,r.key):l(t,e,r,i);case z$:return c(t,e=e.get(null===r.key?n:r.key)||null,r,i)}if(sY(r)||Q$(r))return u(t,e=e.get(n)||null,r,i,null);cY(t,r)}return null}function p(i,a,s,l){for(var c=null,u=null,p=a,m=a=0,g=null;null!==p&&m<s.length;m++){p.index>m?(g=p,p=null):g=p.sibling;var y=f(i,p,s[m],l);if(null===y){null===p&&(p=g);break}e&&p&&null===y.alternate&&t(i,p),a=o(y,a,m),null===u?c=y:u.sibling=y,u=y,p=g}if(m===s.length)return n(i,p),c;if(null===p){for(;m<s.length;m++)null!==(p=d(i,s[m],l))&&(a=o(p,a,m),null===u?c=p:u.sibling=p,u=p);return c}for(p=r(i,p);m<s.length;m++)null!==(g=h(p,i,m,s[m],l))&&(e&&null!==g.alternate&&p.delete(null===g.key?m:g.key),a=o(g,a,m),null===u?c=g:u.sibling=g,u=g);return e&&p.forEach((function(e){return t(i,e)})),c}function m(i,a,s,l){var c=Q$(s);if("function"!=typeof c)throw Error(Bj(150));if(null==(s=c.call(s)))throw Error(Bj(151));for(var u=c=null,p=a,m=a=0,g=null,y=s.next();null!==p&&!y.done;m++,y=s.next()){p.index>m?(g=p,p=null):g=p.sibling;var v=f(i,p,y.value,l);if(null===v){null===p&&(p=g);break}e&&p&&null===v.alternate&&t(i,p),a=o(v,a,m),null===u?c=v:u.sibling=v,u=v,p=g}if(y.done)return n(i,p),c;if(null===p){for(;!y.done;m++,y=s.next())null!==(y=d(i,y.value,l))&&(a=o(y,a,m),null===u?c=y:u.sibling=y,u=y);return c}for(p=r(i,p);!y.done;m++,y=s.next())null!==(y=h(p,i,m,y.value,l))&&(e&&null!==y.alternate&&p.delete(null===y.key?m:y.key),a=o(y,a,m),null===u?c=y:u.sibling=y,u=y);return e&&p.forEach((function(e){return t(i,e)})),c}return function(e,r,o,s){var l="object"==typeof o&&null!==o&&o.type===F$&&null===o.key;l&&(o=o.props.children);var c="object"==typeof o&&null!==o;if(c)switch(o.$$typeof){case L$:e:{for(c=o.key,l=r;null!==l;){if(l.key===c){if(7===l.tag){if(o.type===F$){n(e,l.sibling),(r=i(l,o.props.children)).return=e,e=r;break e}}else if(l.elementType===o.type){n(e,l.sibling),(r=i(l,o.props)).ref=lY(e,l,o),r.return=e,e=r;break e}n(e,l);break}t(e,l),l=l.sibling}o.type===F$?((r=kK(o.props.children,e.mode,s,o.key)).return=e,e=r):((s=EK(o.type,o.key,o.props,null,e.mode,s)).ref=lY(e,r,o),s.return=e,e=s)}return a(e);case z$: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=TK(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=CK(o,e.mode,s)).return=e,e=r),a(e);if(sY(o))return p(e,r,o,s);if(Q$(o))return m(e,r,o,s);if(c&&cY(e,o),void 0===o&&!l)switch(e.tag){case 1:case 0:throw e=e.type,Error(Bj(152,e.displayName||e.name||"Component"))}return n(e,r)}}var dY=uY(!0),fY=uY(!1),hY={},pY={current:hY},mY={current:hY},gY={current:hY};function yY(e){if(e===hY)throw Error(Bj(174));return e}function vY(e,t){switch(KU(gY,t),KU(mY,e),KU(pY,hY),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:xH(null,"");break;default:t=xH(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}GU(pY),KU(pY,t)}function bY(){GU(pY),GU(mY),GU(gY)}function xY(e){yY(gY.current);var t=yY(pY.current),n=xH(t,e.type);t!==n&&(KU(mY,e),KU(pY,n))}function SY(e){mY.current===e&&(GU(pY),GU(mY))}var wY={current:0};function MY(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||n.data===eV||n.data===tV))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(64&t.effectTag))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function EY(e,t){return{responder:e,props:t}}var kY=R$.ReactCurrentDispatcher,CY=R$.ReactCurrentBatchConfig,TY=0,AY=null,OY=null,NY=null,qY=!1;function DY(){throw Error(Bj(321))}function RY(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!EU(e[n],t[n]))return!1;return!0}function IY(e,t,n,r,i,o){if(TY=o,AY=t,t.memoizedState=null,t.updateQueue=null,t.expirationTime=0,kY.current=null===e||null===e.memoizedState?rX:iX,e=n(r,i),t.expirationTime===TY){o=0;do{if(t.expirationTime=0,!(25>o))throw Error(Bj(301));o+=1,NY=OY=null,t.updateQueue=null,kY.current=oX,e=n(r,i)}while(t.expirationTime===TY)}if(kY.current=nX,t=null!==OY&&null!==OY.next,TY=0,NY=OY=AY=null,qY=!1,t)throw Error(Bj(300));return e}function _Y(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===NY?AY.memoizedState=NY=e:NY=NY.next=e,NY}function PY(){if(null===OY){var e=AY.alternate;e=null!==e?e.memoizedState:null}else e=OY.next;var t=null===NY?AY.memoizedState:NY.next;if(null!==t)NY=t,OY=e;else{if(null===e)throw Error(Bj(310));e={memoizedState:(OY=e).memoizedState,baseState:OY.baseState,baseQueue:OY.baseQueue,queue:OY.queue,next:null},null===NY?AY.memoizedState=NY=e:NY=NY.next=e}return NY}function LY(e,t){return"function"==typeof t?t(e):t}function zY(e){var t=PY(),n=t.queue;if(null===n)throw Error(Bj(311));n.lastRenderedReducer=e;var r=OY,i=r.baseQueue,o=n.pending;if(null!==o){if(null!==i){var a=i.next;i.next=o.next,o.next=a}r.baseQueue=i=o,n.pending=null}if(null!==i){i=i.next,r=r.baseState;var s=a=o=null,l=i;do{var c=l.expirationTime;if(c<TY){var u={expirationTime:l.expirationTime,suspenseConfig:l.suspenseConfig,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null};null===s?(a=s=u,o=r):s=s.next=u,c>AY.expirationTime&&(AY.expirationTime=c,rK(c))}else null!==s&&(s=s.next={expirationTime:1073741823,suspenseConfig:l.suspenseConfig,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null}),nK(c,l.suspenseConfig),r=l.eagerReducer===e?l.eagerState:e(r,l.action);l=l.next}while(null!==l&&l!==i);null===s?o=r:s.next=a,EU(r,t.memoizedState)||(gX=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=s,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function FY(e){var t=PY(),n=t.queue;if(null===n)throw Error(Bj(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(null!==i){n.pending=null;var a=i=i.next;do{o=e(o,a.action),a=a.next}while(a!==i);EU(o,t.memoizedState)||(gX=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function jY(e){var t=_Y();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:LY,lastRenderedState:e}).dispatch=tX.bind(null,AY,e),[t.memoizedState,e]}function $Y(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=AY.updateQueue)?(t={lastEffect:null},AY.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function HY(){return PY().memoizedState}function BY(e,t,n,r){var i=_Y();AY.effectTag|=e,i.memoizedState=$Y(1|t,n,void 0,void 0===r?null:r)}function VY(e,t,n,r){var i=PY();r=void 0===r?null:r;var o=void 0;if(null!==OY){var a=OY.memoizedState;if(o=a.destroy,null!==r&&RY(r,a.deps))return void $Y(t,n,o,r)}AY.effectTag|=e,i.memoizedState=$Y(1|t,n,o,r)}function UY(e,t){return BY(516,4,e,t)}function WY(e,t){return VY(516,4,e,t)}function YY(e,t){return VY(4,2,e,t)}function XY(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 GY(e,t,n){return n=null!=n?n.concat([e]):null,VY(4,2,XY.bind(null,t,e),n)}function KY(){}function JY(e,t){return _Y().memoizedState=[e,void 0===t?null:t],e}function QY(e,t){var n=PY();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&RY(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function ZY(e,t){var n=PY();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&RY(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function eX(e,t,n){var r=TW();OW(98>r?98:r,(function(){e(!0)})),OW(97<r?97:r,(function(){var r=CY.suspense;CY.suspense=void 0===t?null:t;try{e(!1),n()}finally{CY.suspense=r}}))}function tX(e,t,n){var r=BG(),i=ZW.suspense;i={expirationTime:r=VG(r,e,i),suspenseConfig:i,action:n,eagerReducer:null,eagerState:null,next:null};var o=t.pending;if(null===o?i.next=i:(i.next=o.next,o.next=i),t.pending=i,o=e.alternate,e===AY||null!==o&&o===AY)qY=!0,i.expirationTime=TY,AY.expirationTime=TY;else{if(0===e.expirationTime&&(null===o||0===o.expirationTime)&&null!==(o=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=o(a,n);if(i.eagerReducer=o,i.eagerState=s,EU(s,a))return}catch(e){}UG(e,r)}}var nX={readContext:VW,useCallback:DY,useContext:DY,useEffect:DY,useImperativeHandle:DY,useLayoutEffect:DY,useMemo:DY,useReducer:DY,useRef:DY,useState:DY,useDebugValue:DY,useResponder:DY,useDeferredValue:DY,useTransition:DY},rX={readContext:VW,useCallback:JY,useContext:VW,useEffect:UY,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,BY(4,2,XY.bind(null,t,e),n)},useLayoutEffect:function(e,t){return BY(4,2,e,t)},useMemo:function(e,t){var n=_Y();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=_Y();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=tX.bind(null,AY,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},_Y().memoizedState=e},useState:jY,useDebugValue:KY,useResponder:EY,useDeferredValue:function(e,t){var n=jY(e),r=n[0],i=n[1];return UY((function(){var n=CY.suspense;CY.suspense=void 0===t?null:t;try{i(e)}finally{CY.suspense=n}}),[e,t]),r},useTransition:function(e){var t=jY(!1),n=t[0];return t=t[1],[JY(eX.bind(null,t,e),[t,e]),n]}},iX={readContext:VW,useCallback:QY,useContext:VW,useEffect:WY,useImperativeHandle:GY,useLayoutEffect:YY,useMemo:ZY,useReducer:zY,useRef:HY,useState:function(){return zY(LY)},useDebugValue:KY,useResponder:EY,useDeferredValue:function(e,t){var n=zY(LY),r=n[0],i=n[1];return WY((function(){var n=CY.suspense;CY.suspense=void 0===t?null:t;try{i(e)}finally{CY.suspense=n}}),[e,t]),r},useTransition:function(e){var t=zY(LY),n=t[0];return t=t[1],[QY(eX.bind(null,t,e),[t,e]),n]}},oX={readContext:VW,useCallback:QY,useContext:VW,useEffect:WY,useImperativeHandle:GY,useLayoutEffect:YY,useMemo:ZY,useReducer:FY,useRef:HY,useState:function(){return FY(LY)},useDebugValue:KY,useResponder:EY,useDeferredValue:function(e,t){var n=FY(LY),r=n[0],i=n[1];return WY((function(){var n=CY.suspense;CY.suspense=void 0===t?null:t;try{i(e)}finally{CY.suspense=n}}),[e,t]),r},useTransition:function(e){var t=FY(LY),n=t[0];return t=t[1],[QY(eX.bind(null,t,e),[t,e]),n]}},aX=null,sX=null,lX=!1;function cX(e,t){var n=SK(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 uX(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);default:return!1}}function dX(e){if(lX){var t=sX;if(t){var n=t;if(!uX(e,t)){if(!(t=lV(n.nextSibling))||!uX(e,t))return e.effectTag=-1025&e.effectTag|2,lX=!1,void(aX=e);cX(aX,n)}aX=e,sX=lV(t.firstChild)}else e.effectTag=-1025&e.effectTag|2,lX=!1,aX=e}}function fX(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;aX=e}function hX(e){if(e!==aX)return!1;if(!lX)return fX(e),lX=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!oV(t,e.memoizedProps))for(t=sX;t;)cX(e,t),t=lV(t.nextSibling);if(fX(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(Bj(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if(n===ZB){if(0===t){sX=lV(e.nextSibling);break e}t--}else n!==QB&&n!==tV&&n!==eV||t++}e=e.nextSibling}sX=null}}else sX=aX?lV(e.stateNode.nextSibling):null;return!0}function pX(){sX=aX=null,lX=!1}var mX=R$.ReactCurrentOwner,gX=!1;function yX(e,t,n,r){t.child=null===e?fY(t,null,n,r):dY(t,e.child,n,r)}function vX(e,t,n,r,i){n=n.render;var o=t.ref;return BW(t,i),r=IY(e,t,n,r,o,i),null===e||gX?(t.effectTag|=1,yX(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=i&&(e.expirationTime=0),_X(e,t,i))}function bX(e,t,n,r,i,o){if(null===e){var a=n.type;return"function"!=typeof a||wK(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=EK(n.type,null,r,null,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,xX(e,t,a,r,i,o))}return a=e.child,i<o&&(i=a.memoizedProps,(n=null!==(n=n.compare)?n:CU)(i,r)&&e.ref===t.ref)?_X(e,t,o):(t.effectTag|=1,(e=MK(a,r)).ref=t.ref,e.return=t,t.child=e)}function xX(e,t,n,r,i,o){return null!==e&&CU(e.memoizedProps,r)&&e.ref===t.ref&&(gX=!1,i<o)?(t.expirationTime=e.expirationTime,_X(e,t,o)):wX(e,t,n,r,o)}function SX(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.effectTag|=128)}function wX(e,t,n,r,i){var o=nW(n)?eW:QU.current;return o=tW(t,o),BW(t,i),n=IY(e,t,n,r,o,i),null===e||gX?(t.effectTag|=1,yX(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=i&&(e.expirationTime=0),_X(e,t,i))}function MX(e,t,n,r,i){if(nW(n)){var o=!0;aW(t)}else o=!1;if(BW(t,i),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),iY(t,n,r),aY(t,n,r,i),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,c=n.contextType;"object"==typeof c&&null!==c?c=VW(c):c=tW(t,c=nW(n)?eW:QU.current);var u=n.getDerivedStateFromProps,d="function"==typeof u||"function"==typeof a.getSnapshotBeforeUpdate;d||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||l!==c)&&oY(t,a,r,c),UW=!1;var f=t.memoizedState;a.state=f,JW(t,r,a,i),l=t.memoizedState,s!==r||f!==l||ZU.current||UW?("function"==typeof u&&(tY(t,n,u,r),l=t.memoizedState),(s=UW||rY(t,n,s,r,f,l,c))?(d||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.effectTag|=4)):("function"==typeof a.componentDidMount&&(t.effectTag|=4),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=c,r=s):("function"==typeof a.componentDidMount&&(t.effectTag|=4),r=!1)}else a=t.stateNode,YW(e,t),s=t.memoizedProps,a.props=t.type===t.elementType?s:_W(t.type,s),l=a.context,"object"==typeof(c=n.contextType)&&null!==c?c=VW(c):c=tW(t,c=nW(n)?eW:QU.current),(d="function"==typeof(u=n.getDerivedStateFromProps)||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||l!==c)&&oY(t,a,r,c),UW=!1,l=t.memoizedState,a.state=l,JW(t,r,a,i),f=t.memoizedState,s!==r||l!==f||ZU.current||UW?("function"==typeof u&&(tY(t,n,u,r),f=t.memoizedState),(u=UW||rY(t,n,s,r,l,f,c))?(d||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,f,c),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,f,c)),"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=c,r=u):("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 EX(e,t,n,r,o,i)}function EX(e,t,n,r,i,o){SX(e,t);var a=0!=(64&t.effectTag);if(!r&&!a)return i&&sW(t,n,!1),_X(e,t,o);r=t.stateNode,mX.current=t;var s=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.effectTag|=1,null!==e&&a?(t.child=dY(t,e.child,null,o),t.child=dY(t,null,s,o)):yX(e,t,s,o),t.memoizedState=r.state,i&&sW(t,n,!0),t.child}function kX(e){var t=e.stateNode;t.pendingContext?iW(0,t.pendingContext,t.pendingContext!==t.context):t.context&&iW(0,t.context,!1),vY(e,t.containerInfo)}var CX,TX,AX,OX,NX={dehydrated:null,retryTime:0};function qX(e,t,n){var r,i=t.mode,o=t.pendingProps,a=wY.current,s=!1;if((r=0!=(64&t.effectTag))||(r=0!=(2&a)&&(null===e||null!==e.memoizedState)),r?(s=!0,t.effectTag&=-65):null!==e&&null===e.memoizedState||void 0===o.fallback||!0===o.unstable_avoidThisFallback||(a|=1),KU(wY,1&a),null===e){if(void 0!==o.fallback&&dX(t),s){if(s=o.fallback,(o=kK(null,i,0,null)).return=t,0==(2&t.mode))for(e=null!==t.memoizedState?t.child.child:t.child,o.child=e;null!==e;)e.return=o,e=e.sibling;return(n=kK(s,i,n,null)).return=t,o.sibling=n,t.memoizedState=NX,t.child=o,n}return i=o.children,t.memoizedState=null,t.child=fY(t,null,i,n)}if(null!==e.memoizedState){if(i=(e=e.child).sibling,s){if(o=o.fallback,(n=MK(e,e.pendingProps)).return=t,0==(2&t.mode)&&(s=null!==t.memoizedState?t.child.child:t.child)!==e.child)for(n.child=s;null!==s;)s.return=n,s=s.sibling;return(i=MK(i,o)).return=t,n.sibling=i,n.childExpirationTime=0,t.memoizedState=NX,t.child=n,i}return n=dY(t,e.child,o.children,n),t.memoizedState=null,t.child=n}if(e=e.child,s){if(s=o.fallback,(o=kK(null,i,0,null)).return=t,o.child=e,null!==e&&(e.return=o),0==(2&t.mode))for(e=null!==t.memoizedState?t.child.child:t.child,o.child=e;null!==e;)e.return=o,e=e.sibling;return(n=kK(s,i,n,null)).return=t,o.sibling=n,n.effectTag|=2,o.childExpirationTime=0,t.memoizedState=NX,t.child=o,n}return t.memoizedState=null,t.child=dY(t,e,o.children,n)}function DX(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t),HW(e.return,t)}function RX(e,t,n,r,i,o){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailExpiration:0,tailMode:i,lastEffect:o}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailExpiration=0,a.tailMode=i,a.lastEffect=o)}function IX(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(yX(e,t,r.children,n),0!=(2&(r=wY.current)))r=1&r|2,t.effectTag|=64;else{if(null!==e&&0!=(64&e.effectTag))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&DX(e,n);else if(19===e.tag)DX(e,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(KU(wY,r),0==(2&t.mode))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===MY(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),RX(t,!1,i,n,o,t.lastEffect);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===MY(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}RX(t,!0,n,null,o,t.lastEffect);break;case"together":RX(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function _X(e,t,n){null!==e&&(t.dependencies=e.dependencies);var r=t.expirationTime;if(0!==r&&rK(r),t.childExpirationTime<n)return null;if(null!==e&&t.child!==e.child)throw Error(Bj(153));if(null!==t.child){for(n=MK(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=MK(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function PX(e,t){switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function LX(e,t,n){var r=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:case 17:return nW(t.type)&&rW(),null;case 3:return bY(),GU(ZU),GU(QU),(n=t.stateNode).pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||!hX(t)||(t.effectTag|=4),TX(t),null;case 5:SY(t),n=yY(gY.current);var i=t.type;if(null!==e&&null!=t.stateNode)AX(e,t,i,r,n),e.ref!==t.ref&&(t.effectTag|=128);else{if(!r){if(null===t.stateNode)throw Error(Bj(166));return null}if(e=yY(pY.current),hX(t)){r=t.stateNode,i=t.type;var o=t.memoizedProps;switch(r[dV]=t,r[fV]=o,i){case"iframe":case"object":case"embed":NB("load",r);break;case"video":case"audio":for(e=0;e<RH.length;e++)NB(RH[e],r);break;case"source":NB("error",r);break;case"img":case"image":case"link":NB("error",r),NB("load",r);break;case"form":NB("reset",r),NB("submit",r);break;case"details":NB("toggle",r);break;case"input":aH(r,o),NB("invalid",r),VB(n,"onChange");break;case"select":r._wrapperState={wasMultiple:!!o.multiple},NB("invalid",r),VB(n,"onChange");break;case"textarea":pH(r,o),NB("invalid",r),VB(n,"onChange")}for(var a in $B(i,o),e=null,o)if(o.hasOwnProperty(a)){var s=o[a];"children"===a?"string"==typeof s?r.textContent!==s&&(e=["children",s]):"number"==typeof s&&r.textContent!==""+s&&(e=["children",""+s]):s$.hasOwnProperty(a)&&null!=s&&VB(n,a)}switch(i){case"input":rH(r),cH(r,o,!0);break;case"textarea":rH(r),gH(r);break;case"select":case"option":break;default:"function"==typeof o.onClick&&(r.onclick=UB)}n=e,t.updateQueue=n,null!==n&&(t.effectTag|=4)}else{switch(a=9===n.nodeType?n:n.ownerDocument,e===BB&&(e=bH(i)),e===BB?"script"===i?((e=a.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=a.createElement(i,{is:r.is}):(e=a.createElement(i),"select"===i&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,i),e[dV]=t,e[fV]=r,CX(e,t,!1,!1),t.stateNode=e,a=HB(i,r),i){case"iframe":case"object":case"embed":NB("load",e),s=r;break;case"video":case"audio":for(s=0;s<RH.length;s++)NB(RH[s],e);s=r;break;case"source":NB("error",e),s=r;break;case"img":case"image":case"link":NB("error",e),NB("load",e),s=r;break;case"form":NB("reset",e),NB("submit",e),s=r;break;case"details":NB("toggle",e),s=r;break;case"input":aH(e,r),s=oH(e,r),NB("invalid",e),VB(n,"onChange");break;case"option":s=dH(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},s=$j({},r,{value:void 0}),NB("invalid",e),VB(n,"onChange");break;case"textarea":pH(e,r),s=hH(e,r),NB("invalid",e),VB(n,"onChange");break;default:s=r}$B(i,s);var l=s;for(o in l)if(l.hasOwnProperty(o)){var c=l[o];"style"===o?FB(e,c):"dangerouslySetInnerHTML"===o?null!=(c=c?c.__html:void 0)&&wH(e,c):"children"===o?"string"==typeof c?("textarea"!==i||""!==c)&&MH(e,c):"number"==typeof c&&MH(e,""+c):"suppressContentEditableWarning"!==o&&"suppressHydrationWarning"!==o&&"autoFocus"!==o&&(s$.hasOwnProperty(o)?null!=c&&VB(n,o):null!=c&&I$(e,o,c,a))}switch(i){case"input":rH(e),cH(e,r,!1);break;case"textarea":rH(e),gH(e);break;case"option":null!=r.value&&e.setAttribute("value",""+tH(r.value));break;case"select":e.multiple=!!r.multiple,null!=(n=r.value)?fH(e,!!r.multiple,n,!1):null!=r.defaultValue&&fH(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof s.onClick&&(e.onclick=UB)}iV(i,r)&&(t.effectTag|=4)}null!==t.ref&&(t.effectTag|=128)}return null;case 6:if(e&&null!=t.stateNode)OX(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(Bj(166));n=yY(gY.current),yY(pY.current),hX(t)?(n=t.stateNode,r=t.memoizedProps,n[dV]=t,n.nodeValue!==r&&(t.effectTag|=4)):((n=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[dV]=t,t.stateNode=n)}return null;case 13:return GU(wY),r=t.memoizedState,0!=(64&t.effectTag)?(t.expirationTime=n,t):(n=null!==r,r=!1,null===e?void 0!==t.memoizedProps.fallback&&hX(t):(r=null!==(i=e.memoizedState),n||null===i||null!==(i=e.child.sibling)&&(null!==(o=t.firstEffect)?(t.firstEffect=i,i.nextEffect=o):(t.firstEffect=t.lastEffect=i,i.nextEffect=null),i.effectTag=8)),n&&!r&&0!=(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!=(1&wY.current)?MG===hG&&(MG=gG):(MG!==hG&&MG!==gG||(MG=yG),0!==AG&&null!==xG&&(NK(xG,wG),qK(xG,AG)))),(n||r)&&(t.effectTag|=4),null);case 4:return bY(),TX(t),null;case 10:return $W(t),null;case 19:if(GU(wY),null===(r=t.memoizedState))return null;if(i=0!=(64&t.effectTag),null===(o=r.rendering)){if(i)PX(r,!1);else if(MG!==hG||null!==e&&0!=(64&e.effectTag))for(o=t.child;null!==o;){if(null!==(e=MY(o))){for(t.effectTag|=64,PX(r,!1),null!==(i=e.updateQueue)&&(t.updateQueue=i,t.effectTag|=4),null===r.lastEffect&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=t.child;null!==r;)o=n,(i=r).effectTag&=2,i.nextEffect=null,i.firstEffect=null,i.lastEffect=null,null===(e=i.alternate)?(i.childExpirationTime=0,i.expirationTime=o,i.child=null,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null):(i.childExpirationTime=e.childExpirationTime,i.expirationTime=e.expirationTime,i.child=e.child,i.memoizedProps=e.memoizedProps,i.memoizedState=e.memoizedState,i.updateQueue=e.updateQueue,o=e.dependencies,i.dependencies=null===o?null:{expirationTime:o.expirationTime,firstContext:o.firstContext,responders:o.responders}),r=r.sibling;return KU(wY,1&wY.current|2),t.child}o=o.sibling}}else{if(!i)if(null!==(e=MY(o))){if(t.effectTag|=64,i=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.effectTag|=4),PX(r,!0),null===r.tail&&"hidden"===r.tailMode&&!o.alternate)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*CW()-r.renderingStartTime>r.tailExpiration&&1<n&&(t.effectTag|=64,i=!0,PX(r,!1),t.expirationTime=t.childExpirationTime=n-1);r.isBackwards?(o.sibling=t.child,t.child=o):(null!==(n=r.last)?n.sibling=o:t.child=o,r.last=o)}return null!==r.tail?(0===r.tailExpiration&&(r.tailExpiration=CW()+500),n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=CW(),n.sibling=null,t=wY.current,KU(wY,i?1&t|2:1&t),n):null}throw Error(Bj(156,t.tag))}function zX(e){switch(e.tag){case 1:nW(e.type)&&rW();var t=e.effectTag;return 4096&t?(e.effectTag=-4097&t|64,e):null;case 3:if(bY(),GU(ZU),GU(QU),0!=(64&(t=e.effectTag)))throw Error(Bj(285));return e.effectTag=-4097&t|64,e;case 5:return SY(e),null;case 13:return GU(wY),4096&(t=e.effectTag)?(e.effectTag=-4097&t|64,e):null;case 19:return GU(wY),null;case 4:return bY(),null;case 10:return $W(e),null;default:return null}}function FX(e,t){return{value:e,source:t,stack:eH(t)}}CX=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}},TX=function(){},AX=function(e,t,n,r,i){var o=e.memoizedProps;if(o!==r){var a,s,l=t.stateNode;switch(yY(pY.current),e=null,n){case"input":o=oH(l,o),r=oH(l,r),e=[];break;case"option":o=dH(l,o),r=dH(l,r),e=[];break;case"select":o=$j({},o,{value:void 0}),r=$j({},r,{value:void 0}),e=[];break;case"textarea":o=hH(l,o),r=hH(l,r),e=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(l.onclick=UB)}for(a in $B(n,r),n=null,o)if(!r.hasOwnProperty(a)&&o.hasOwnProperty(a)&&null!=o[a])if("style"===a)for(s in l=o[a])l.hasOwnProperty(s)&&(n||(n={}),n[s]="");else"dangerouslySetInnerHTML"!==a&&"children"!==a&&"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(s$.hasOwnProperty(a)?e||(e=[]):(e=e||[]).push(a,null));for(a in r){var c=r[a];if(l=null!=o?o[a]:void 0,r.hasOwnProperty(a)&&c!==l&&(null!=c||null!=l))if("style"===a)if(l){for(s in l)!l.hasOwnProperty(s)||c&&c.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in c)c.hasOwnProperty(s)&&l[s]!==c[s]&&(n||(n={}),n[s]=c[s])}else n||(e||(e=[]),e.push(a,n)),n=c;else"dangerouslySetInnerHTML"===a?(c=c?c.__html:void 0,l=l?l.__html:void 0,null!=c&&l!==c&&(e=e||[]).push(a,c)):"children"===a?l===c||"string"!=typeof c&&"number"!=typeof c||(e=e||[]).push(a,""+c):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&(s$.hasOwnProperty(a)?(null!=c&&VB(i,a),e||l===c||(e=[])):(e=e||[]).push(a,c))}n&&(e=e||[]).push("style",n),i=e,(t.updateQueue=i)&&(t.effectTag|=4)}},OX=function(e,t,n,r){n!==r&&(t.effectTag|=4)};var jX="function"==typeof WeakSet?WeakSet:Set;function $X(e,t){var n=t.source,r=t.stack;null===r&&null!==n&&(r=eH(n)),null!==n&&Z$(n.type),t=t.value,null!==e&&1===e.tag&&Z$(e.type);try{console.error(t)}catch(e){setTimeout((function(){throw e}))}}function HX(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){mK(e,t)}else t.current=null}function BX(e,t){switch(t.tag){case 0:case 11:case 15:case 22:case 3:case 5:case 6:case 4:case 17:return;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:_W(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return}throw Error(Bj(163))}function VX(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.destroy;n.destroy=void 0,void 0!==r&&r()}n=n.next}while(n!==t)}}function UX(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function WX(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:return void UX(3,n);case 1:if(e=n.stateNode,4&n.effectTag)if(null===t)e.componentDidMount();else{var r=n.elementType===n.type?t.memoizedProps:_W(n.type,t.memoizedProps);e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate)}return void(null!==(t=n.updateQueue)&&QW(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:case 1:e=n.child.stateNode}QW(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.effectTag&&iV(n.type,n.memoizedProps)&&e.focus());case 6:case 4:case 12:case 19:case 17:case 20:case 21:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&bB(n)))))}throw Error(Bj(163))}function YX(e,t,n){switch("function"==typeof bK&&bK(t),t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var r=e.next;OW(97<n?97:n,(function(){var e=r;do{var n=e.destroy;if(void 0!==n){var i=t;try{n()}catch(e){mK(i,e)}}e=e.next}while(e!==r)}))}break;case 1:HX(t),"function"==typeof(n=t.stateNode).componentWillUnmount&&function(e,t){try{t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()}catch(t){mK(e,t)}}(t,n);break;case 5:HX(t);break;case 4:ZX(e,t,n)}}function XX(e){var t=e.alternate;e.return=null,e.child=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.alternate=null,e.firstEffect=null,e.lastEffect=null,e.pendingProps=null,e.memoizedProps=null,e.stateNode=null,null!==t&&XX(t)}function GX(e){return 5===e.tag||3===e.tag||4===e.tag}function KX(e){e:{for(var t=e.return;null!==t;){if(GX(t)){var n=t;break e}t=t.return}throw Error(Bj(160))}switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(Bj(161))}16&n.effectTag&&(MH(t,""),n.effectTag&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||GX(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}}r?JX(e,n,t):QX(e,n,t)}function JX(e,t,n){var r=e.tag,i=5===r||6===r;if(i)e=i?e.stateNode:e.stateNode.instance,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=UB));else if(4!==r&&null!==(e=e.child))for(JX(e,t,n),e=e.sibling;null!==e;)JX(e,t,n),e=e.sibling}function QX(e,t,n){var r=e.tag,i=5===r||6===r;if(i)e=i?e.stateNode:e.stateNode.instance,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(QX(e,t,n),e=e.sibling;null!==e;)QX(e,t,n),e=e.sibling}function ZX(e,t,n){for(var r,i,o=t,a=!1;;){if(!a){a=o.return;e:for(;;){if(null===a)throw Error(Bj(160));switch(r=a.stateNode,a.tag){case 5:i=!1;break e;case 3:case 4:r=r.containerInfo,i=!0;break e}a=a.return}a=!0}if(5===o.tag||6===o.tag){e:for(var s=e,l=o,c=n,u=l;;)if(YX(s,u,c),null!==u.child&&4!==u.tag)u.child.return=u,u=u.child;else{if(u===l)break e;for(;null===u.sibling;){if(null===u.return||u.return===l)break e;u=u.return}u.sibling.return=u.return,u=u.sibling}i?(s=r,l=o.stateNode,8===s.nodeType?s.parentNode.removeChild(l):s.removeChild(l)):r.removeChild(o.stateNode)}else if(4===o.tag){if(null!==o.child){r=o.stateNode.containerInfo,i=!0,o.child.return=o,o=o.child;continue}}else if(YX(e,o,n),null!==o.child){o.child.return=o,o=o.child;continue}if(o===t)break;for(;null===o.sibling;){if(null===o.return||o.return===t)return;4===(o=o.return).tag&&(a=!1)}o.sibling.return=o.return,o=o.sibling}}function eG(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:return void VX(3,t);case 1:case 12:case 17:return;case 5:var n=t.stateNode;if(null!=n){var r=t.memoizedProps,i=null!==e?e.memoizedProps:r;e=t.type;var o=t.updateQueue;if(t.updateQueue=null,null!==o){for(n[fV]=r,"input"===e&&"radio"===r.type&&null!=r.name&&sH(n,r),HB(e,i),t=HB(e,r),i=0;i<o.length;i+=2){var a=o[i],s=o[i+1];"style"===a?FB(n,s):"dangerouslySetInnerHTML"===a?wH(n,s):"children"===a?MH(n,s):I$(n,a,s,t)}switch(e){case"input":lH(n,r);break;case"textarea":mH(n,r);break;case"select":t=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(e=r.value)?fH(n,!!r.multiple,e,!1):t!==!!r.multiple&&(null!=r.defaultValue?fH(n,!!r.multiple,r.defaultValue,!0):fH(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(Bj(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((t=t.stateNode).hydrate&&(t.hydrate=!1,bB(t.containerInfo)));case 13:if(n=t,null===t.memoizedState?r=!1:(r=!0,n=t.child,NG=CW()),null!==n)e:for(e=n;;){if(5===e.tag)o=e.stateNode,r?"function"==typeof(o=o.style).setProperty?o.setProperty("display","none","important"):o.display="none":(o=e.stateNode,i=null!=(i=e.memoizedProps.style)&&i.hasOwnProperty("display")?i.display:null,o.style.display=zB("display",i));else if(6===e.tag)e.stateNode.nodeValue=r?"":e.memoizedProps;else{if(13===e.tag&&null!==e.memoizedState&&null===e.memoizedState.dehydrated){(o=e.child.sibling).return=e,e=o;continue}if(null!==e.child){e.child.return=e,e=e.child;continue}}if(e===n)break;for(;null===e.sibling;){if(null===e.return||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}return void tG(t);case 19:return void tG(t)}throw Error(Bj(163))}function tG(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new jX),t.forEach((function(t){var r=yK.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}var nG="function"==typeof WeakMap?WeakMap:Map;function rG(e,t,n){(n=XW(n,null)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){RG||(RG=!0,IG=r),$X(e,t)},n}function iG(e,t,n){(n=XW(n,null)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var i=t.value;n.payload=function(){return $X(e,t),r(i)}}var o=e.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===_G?_G=new Set([this]):_G.add(this),$X(e,t));var n=t.stack;this.componentDidCatch(t.value,{componentStack:null!==n?n:""})}),n}var oG,aG=Math.ceil,sG=R$.ReactCurrentDispatcher,lG=R$.ReactCurrentOwner,cG=0,uG=8,dG=16,fG=32,hG=0,pG=1,mG=2,gG=3,yG=4,vG=5,bG=cG,xG=null,SG=null,wG=0,MG=hG,EG=null,kG=1073741823,CG=1073741823,TG=null,AG=0,OG=!1,NG=0,qG=500,DG=null,RG=!1,IG=null,_G=null,PG=!1,LG=null,zG=90,FG=null,jG=0,$G=null,HG=0;function BG(){return(bG&(dG|fG))!==cG?1073741821-(CW()/10|0):0!==HG?HG:HG=1073741821-(CW()/10|0)}function VG(e,t,n){if(0==(2&(t=t.mode)))return 1073741823;var r=TW();if(0==(4&t))return 99===r?1073741823:1073741822;if((bG&dG)!==cG)return wG;if(null!==n)e=IW(e,0|n.timeoutMs||5e3,250);else switch(r){case 99:e=1073741823;break;case 98:e=IW(e,150,100);break;case 97:case 96:e=IW(e,5e3,250);break;case 95:e=2;break;default:throw Error(Bj(326))}return null!==xG&&e===wG&&--e,e}function UG(e,t){if(50<jG)throw jG=0,$G=null,Error(Bj(185));if(null!==(e=WG(e,t))){var n=TW();1073741823===t?(bG&uG)!==cG&&(bG&(dG|fG))===cG?KG(e):(XG(e),bG===cG&&DW()):XG(e),(4&bG)===cG||98!==n&&99!==n||(null===FG?FG=new Map([[e,t]]):(void 0===(n=FG.get(e))||n>t)&&FG.set(e,t))}}function WG(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 null!==i&&(xG===i&&(rK(t),MG===yG&&NK(i,wG)),qK(i,t)),i}function YG(e){var t=e.lastExpiredTime;if(0!==t)return t;if(!OK(e,t=e.firstPendingTime))return t;var n=e.lastPingedTime;return 2>=(e=n>(e=e.nextKnownPendingLevel)?n:e)&&t!==e?0:e}function XG(e){if(0!==e.lastExpiredTime)e.callbackExpirationTime=1073741823,e.callbackPriority=99,e.callbackNode=qW(KG.bind(null,e));else{var t=YG(e),n=e.callbackNode;if(0===t)null!==n&&(e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90);else{var r=BG();if(1073741823===t?r=99:1===t||2===t?r=95:r=0>=(r=10*(1073741821-t)-10*(1073741821-r))?99:250>=r?98:5250>=r?97:95,null!==n){var i=e.callbackPriority;if(e.callbackExpirationTime===t&&i>=r)return;n!==bW&&uW(n)}e.callbackExpirationTime=t,e.callbackPriority=r,t=1073741823===t?qW(KG.bind(null,e)):NW(r,GG.bind(null,e),{timeout:10*(1073741821-t)-CW()}),e.callbackNode=t}}}function GG(e,t){if(HG=0,t)return DK(e,t=BG()),XG(e),null;var n=YG(e);if(0!==n){if(t=e.callbackNode,(bG&(dG|fG))!==cG)throw Error(Bj(327));if(fK(),e===xG&&n===wG||ZG(e,n),null!==SG){var r=bG;bG|=dG;for(var i=tK();;)try{oK();break}catch(t){eK(e,t)}if(jW(),bG=r,sG.current=i,MG===pG)throw t=EG,ZG(e,n),NK(e,n),XG(e),t;if(null===SG)switch(i=e.finishedWork=e.current.alternate,e.finishedExpirationTime=n,r=MG,xG=null,r){case hG:case pG:throw Error(Bj(345));case mG:DK(e,2<n?2:n);break;case gG:if(NK(e,n),n===(r=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=lK(i)),1073741823===kG&&10<(i=NG+qG-CW())){if(OG){var o=e.lastPingedTime;if(0===o||o>=n){e.lastPingedTime=n,ZG(e,n);break}}if(0!==(o=YG(e))&&o!==n)break;if(0!==r&&r!==n){e.lastPingedTime=r;break}e.timeoutHandle=aV(cK.bind(null,e),i);break}cK(e);break;case yG:if(NK(e,n),n===(r=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=lK(i)),OG&&(0===(i=e.lastPingedTime)||i>=n)){e.lastPingedTime=n,ZG(e,n);break}if(0!==(i=YG(e))&&i!==n)break;if(0!==r&&r!==n){e.lastPingedTime=r;break}if(1073741823!==CG?r=10*(1073741821-CG)-CW():1073741823===kG?r=0:(r=10*(1073741821-kG)-5e3,0>(r=(i=CW())-r)&&(r=0),(n=10*(1073741821-n)-i)<(r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*aG(r/1960))-r)&&(r=n)),10<r){e.timeoutHandle=aV(cK.bind(null,e),r);break}cK(e);break;case vG:if(1073741823!==kG&&null!==TG){o=kG;var a=TG;if(0>=(r=0|a.busyMinDurationMs)?r=0:(i=0|a.busyDelayMs,r=(o=CW()-(10*(1073741821-o)-(0|a.timeoutMs||5e3)))<=i?0:i+r-o),10<r){NK(e,n),e.timeoutHandle=aV(cK.bind(null,e),r);break}}cK(e);break;default:throw Error(Bj(329))}if(XG(e),e.callbackNode===t)return GG.bind(null,e)}}return null}function KG(e){var t=e.lastExpiredTime;if(t=0!==t?t:1073741823,(bG&(dG|fG))!==cG)throw Error(Bj(327));if(fK(),e===xG&&t===wG||ZG(e,t),null!==SG){var n=bG;bG|=dG;for(var r=tK();;)try{iK();break}catch(t){eK(e,t)}if(jW(),bG=n,sG.current=r,MG===pG)throw n=EG,ZG(e,t),NK(e,t),XG(e),n;if(null!==SG)throw Error(Bj(261));e.finishedWork=e.current.alternate,e.finishedExpirationTime=t,xG=null,cK(e),XG(e)}return null}function JG(e,t){var n=bG;bG|=1;try{return e(t)}finally{(bG=n)===cG&&DW()}}function QG(e,t){var n=bG;bG&=-2,bG|=uG;try{return e(t)}finally{(bG=n)===cG&&DW()}}function ZG(e,t){e.finishedWork=null,e.finishedExpirationTime=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,sV(n)),null!==SG)for(n=SG.return;null!==n;){var r=n;switch(r.tag){case 1:null!=(r=r.type.childContextTypes)&&rW();break;case 3:bY(),GU(ZU),GU(QU);break;case 5:SY(r);break;case 4:bY();break;case 13:case 19:GU(wY);break;case 10:$W(r)}n=n.return}xG=e,SG=MK(e.current,null),wG=t,MG=hG,EG=null,CG=kG=1073741823,TG=null,AG=0,OG=!1}function eK(e,t){for(;;){try{if(jW(),kY.current=nX,qY)for(var n=AY.memoizedState;null!==n;){var r=n.queue;null!==r&&(r.pending=null),n=n.next}if(TY=0,NY=OY=AY=null,qY=!1,null===SG||null===SG.return)return MG=pG,EG=t,SG=null;e:{var i=e,o=SG.return,a=SG,s=t;if(t=wG,a.effectTag|=2048,a.firstEffect=a.lastEffect=null,null!==s&&"object"==typeof s&&"function"==typeof s.then){var l=s;if(0==(2&a.mode)){var c=a.alternate;c?(a.updateQueue=c.updateQueue,a.memoizedState=c.memoizedState,a.expirationTime=c.expirationTime):(a.updateQueue=null,a.memoizedState=null)}var u=0!=(1&wY.current),d=o;do{var f;if(f=13===d.tag){var h=d.memoizedState;if(null!==h)f=null!==h.dehydrated;else{var p=d.memoizedProps;f=void 0!==p.fallback&&(!0!==p.unstable_avoidThisFallback||!u)}}if(f){var m=d.updateQueue;if(null===m){var g=new Set;g.add(l),d.updateQueue=g}else m.add(l);if(0==(2&d.mode)){if(d.effectTag|=64,a.effectTag&=-2981,1===a.tag)if(null===a.alternate)a.tag=17;else{var y=XW(1073741823,null);y.tag=2,GW(a,y)}a.expirationTime=1073741823;break e}s=void 0,a=t;var v=i.pingCache;if(null===v?(v=i.pingCache=new nG,s=new Set,v.set(l,s)):void 0===(s=v.get(l))&&(s=new Set,v.set(l,s)),!s.has(a)){s.add(a);var b=gK.bind(null,i,l,a);l.then(b,b)}d.effectTag|=4096,d.expirationTime=t;break e}d=d.return}while(null!==d);s=Error((Z$(a.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."+eH(a))}MG!==vG&&(MG=mG),s=FX(s,a),d=o;do{switch(d.tag){case 3:l=s,d.effectTag|=4096,d.expirationTime=t,KW(d,rG(d,l,t));break e;case 1:l=s;var x=d.type,S=d.stateNode;if(0==(64&d.effectTag)&&("function"==typeof x.getDerivedStateFromError||null!==S&&"function"==typeof S.componentDidCatch&&(null===_G||!_G.has(S)))){d.effectTag|=4096,d.expirationTime=t,KW(d,iG(d,l,t));break e}}d=d.return}while(null!==d)}SG=sK(SG)}catch(e){t=e;continue}break}}function tK(){var e=sG.current;return sG.current=nX,null===e?nX:e}function nK(e,t){e<kG&&2<e&&(kG=e),null!==t&&e<CG&&2<e&&(CG=e,TG=t)}function rK(e){e>AG&&(AG=e)}function iK(){for(;null!==SG;)SG=aK(SG)}function oK(){for(;null!==SG&&!xW();)SG=aK(SG)}function aK(e){var t=oG(e.alternate,e,wG);return e.memoizedProps=e.pendingProps,null===t&&(t=sK(e)),lG.current=null,t}function sK(e){SG=e;do{var t=SG.alternate;if(e=SG.return,0==(2048&SG.effectTag)){if(t=LX(t,SG,wG),1===wG||1!==SG.childExpirationTime){for(var n=0,r=SG.child;null!==r;){var i=r.expirationTime,o=r.childExpirationTime;i>n&&(n=i),o>n&&(n=o),r=r.sibling}SG.childExpirationTime=n}if(null!==t)return t;null!==e&&0==(2048&e.effectTag)&&(null===e.firstEffect&&(e.firstEffect=SG.firstEffect),null!==SG.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=SG.firstEffect),e.lastEffect=SG.lastEffect),1<SG.effectTag&&(null!==e.lastEffect?e.lastEffect.nextEffect=SG:e.firstEffect=SG,e.lastEffect=SG))}else{if(null!==(t=zX(SG)))return t.effectTag&=2047,t;null!==e&&(e.firstEffect=e.lastEffect=null,e.effectTag|=2048)}if(null!==(t=SG.sibling))return t;SG=e}while(null!==SG);return MG===hG&&(MG=vG),null}function lK(e){var t=e.expirationTime;return t>(e=e.childExpirationTime)?t:e}function cK(e){var t=TW();return OW(99,uK.bind(null,e,t)),null}function uK(e,t){do{fK()}while(null!==LG);if((bG&(dG|fG))!==cG)throw Error(Bj(327));var n=e.finishedWork,r=e.finishedExpirationTime;if(null===n)return null;if(e.finishedWork=null,e.finishedExpirationTime=0,n===e.current)throw Error(Bj(177));e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90,e.nextKnownPendingLevel=0;var i=lK(n);if(e.firstPendingTime=i,r<=e.lastSuspendedTime?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:r<=e.firstSuspendedTime&&(e.firstSuspendedTime=r-1),r<=e.lastPingedTime&&(e.lastPingedTime=0),r<=e.lastExpiredTime&&(e.lastExpiredTime=0),e===xG&&(SG=xG=null,wG=0),1<n.effectTag?null!==n.lastEffect?(n.lastEffect.nextEffect=n,i=n.firstEffect):i=n:i=n.firstEffect,null!==i){var o=bG;bG|=fG,lG.current=null,nV=OB;var a=KB();if(JB(a)){if("selectionStart"in a)var s={start:a.selectionStart,end:a.selectionEnd};else e:{var l=(s=(s=a.ownerDocument)&&s.defaultView||window).getSelection&&s.getSelection();if(l&&0!==l.rangeCount){s=l.anchorNode;var c=l.anchorOffset,u=l.focusNode;l=l.focusOffset;try{s.nodeType,u.nodeType}catch(e){s=null;break e}var d=0,f=-1,h=-1,p=0,m=0,g=a,y=null;t:for(;;){for(var v;g!==s||0!==c&&3!==g.nodeType||(f=d+c),g!==u||0!==l&&3!==g.nodeType||(h=d+l),3===g.nodeType&&(d+=g.nodeValue.length),null!==(v=g.firstChild);)y=g,g=v;for(;;){if(g===a)break t;if(y===s&&++p===c&&(f=d),y===u&&++m===l&&(h=d),null!==(v=g.nextSibling))break;y=(g=y).parentNode}g=v}s=-1===f||-1===h?null:{start:f,end:h}}else s=null}s=s||{start:0,end:0}}else s=null;rV={activeElementDetached:null,focusedElem:a,selectionRange:s},OB=!1,DG=i;do{try{dK()}catch(e){if(null===DG)throw Error(Bj(330));mK(DG,e),DG=DG.nextEffect}}while(null!==DG);DG=i;do{try{for(a=e,s=t;null!==DG;){var b=DG.effectTag;if(16&b&&MH(DG.stateNode,""),128&b){var x=DG.alternate;if(null!==x){var S=x.ref;null!==S&&("function"==typeof S?S(null):S.current=null)}}switch(1038&b){case 2:KX(DG),DG.effectTag&=-3;break;case 6:KX(DG),DG.effectTag&=-3,eG(DG.alternate,DG);break;case 1024:DG.effectTag&=-1025;break;case 1028:DG.effectTag&=-1025,eG(DG.alternate,DG);break;case 4:eG(DG.alternate,DG);break;case 8:ZX(a,c=DG,s),XX(c)}DG=DG.nextEffect}}catch(e){if(null===DG)throw Error(Bj(330));mK(DG,e),DG=DG.nextEffect}}while(null!==DG);if(S=rV,x=KB(),b=S.focusedElem,s=S.selectionRange,x!==b&&b&&b.ownerDocument&&GB(b.ownerDocument.documentElement,b)){null!==s&&JB(b)&&(x=s.start,void 0===(S=s.end)&&(S=x),"selectionStart"in b?(b.selectionStart=x,b.selectionEnd=Math.min(S,b.value.length)):(S=(x=b.ownerDocument||document)&&x.defaultView||window).getSelection&&(S=S.getSelection(),c=b.textContent.length,a=Math.min(s.start,c),s=void 0===s.end?a:Math.min(s.end,c),!S.extend&&a>s&&(c=s,s=a,a=c),c=XB(b,a),u=XB(b,s),c&&u&&(1!==S.rangeCount||S.anchorNode!==c.node||S.anchorOffset!==c.offset||S.focusNode!==u.node||S.focusOffset!==u.offset)&&((x=x.createRange()).setStart(c.node,c.offset),S.removeAllRanges(),a>s?(S.addRange(x),S.extend(u.node,u.offset)):(x.setEnd(u.node,u.offset),S.addRange(x))))),x=[];for(S=b;S=S.parentNode;)1===S.nodeType&&x.push({element:S,left:S.scrollLeft,top:S.scrollTop});for("function"==typeof b.focus&&b.focus(),b=0;b<x.length;b++)(S=x[b]).element.scrollLeft=S.left,S.element.scrollTop=S.top}OB=!!nV,rV=nV=null,e.current=n,DG=i;do{try{for(b=e;null!==DG;){var w=DG.effectTag;if(36&w&&WX(b,DG.alternate,DG),128&w){x=void 0;var M=DG.ref;if(null!==M){var E=DG.stateNode;DG.tag,x=E,"function"==typeof M?M(x):M.current=x}}DG=DG.nextEffect}}catch(e){if(null===DG)throw Error(Bj(330));mK(DG,e),DG=DG.nextEffect}}while(null!==DG);DG=null,SW(),bG=o}else e.current=n;if(PG)PG=!1,LG=e,zG=t;else for(DG=i;null!==DG;)t=DG.nextEffect,DG.nextEffect=null,DG=t;if(0===(t=e.firstPendingTime)&&(_G=null),1073741823===t?e===$G?jG++:(jG=0,$G=e):jG=0,"function"==typeof vK&&vK(n.stateNode,r),XG(e),RG)throw RG=!1,e=IG,IG=null,e;return(bG&uG)!==cG||DW(),null}function dK(){for(;null!==DG;){var e=DG.effectTag;0!=(256&e)&&BX(DG.alternate,DG),0==(512&e)||PG||(PG=!0,NW(97,(function(){return fK(),null}))),DG=DG.nextEffect}}function fK(){if(90!==zG){var e=97<zG?97:zG;return zG=90,OW(e,hK)}}function hK(){if(null===LG)return!1;var e=LG;if(LG=null,(bG&(dG|fG))!==cG)throw Error(Bj(331));var t=bG;for(bG|=fG,e=e.current.firstEffect;null!==e;){try{var n=e;if(0!=(512&n.effectTag))switch(n.tag){case 0:case 11:case 15:case 22:VX(5,n),UX(5,n)}}catch(t){if(null===e)throw Error(Bj(330));mK(e,t)}n=e.nextEffect,e.nextEffect=null,e=n}return bG=t,DW(),!0}function pK(e,t,n){GW(e,t=rG(e,t=FX(n,t),1073741823)),null!==(e=WG(e,1073741823))&&XG(e)}function mK(e,t){if(3===e.tag)pK(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){pK(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===_G||!_G.has(r))){GW(n,e=iG(n,e=FX(t,e),1073741823)),null!==(n=WG(n,1073741823))&&XG(n);break}}n=n.return}}function gK(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),xG===e&&wG===n?MG===yG||MG===gG&&1073741823===kG&&CW()-NG<qG?ZG(e,wG):OG=!0:OK(e,n)&&(0!==(t=e.lastPingedTime)&&t<n||(e.lastPingedTime=n,XG(e)))}function yK(e,t){var n=e.stateNode;null!==n&&n.delete(t),0===(t=0)&&(t=VG(t=BG(),e,null)),null!==(e=WG(e,t))&&XG(e)}oG=function(e,t,n){var r=t.expirationTime;if(null!==e){var i=t.pendingProps;if(e.memoizedProps!==i||ZU.current)gX=!0;else{if(r<n){switch(gX=!1,t.tag){case 3:kX(t),pX();break;case 5:if(xY(t),4&t.mode&&1!==n&&i.hidden)return t.expirationTime=t.childExpirationTime=1,null;break;case 1:nW(t.type)&&aW(t);break;case 4:vY(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value,i=t.type._context,KU(PW,i._currentValue),i._currentValue=r;break;case 13:if(null!==t.memoizedState)return 0!==(r=t.child.childExpirationTime)&&r>=n?qX(e,t,n):(KU(wY,1&wY.current),null!==(t=_X(e,t,n))?t.sibling:null);KU(wY,1&wY.current);break;case 19:if(r=t.childExpirationTime>=n,0!=(64&e.effectTag)){if(r)return IX(e,t,n);t.effectTag|=64}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null),KU(wY,wY.current),!r)return null}return _X(e,t,n)}gX=!1}}else gX=!1;switch(t.expirationTime=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,i=tW(t,QU.current),BW(t,n),i=IY(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,t.memoizedState=null,t.updateQueue=null,nW(r)){var o=!0;aW(t)}else o=!1;t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,WW(t);var a=r.getDerivedStateFromProps;"function"==typeof a&&tY(t,r,a,e),i.updater=nY,t.stateNode=i,i._reactInternalFiber=t,aY(t,r,e,n),t=EX(null,t,r,!0,o,n)}else t.tag=0,yX(null,t,i,n),t=t.child;return t;case 16:e:{if(i=t.elementType,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,function(e){if(-1===e._status){e._status=0;var t=e._ctor;t=t(),e._result=t,t.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)}))}}(i),1!==i._status)throw i._result;switch(i=i._result,t.type=i,o=t.tag=function(e){if("function"==typeof e)return wK(e)?1:0;if(null!=e){if((e=e.$$typeof)===U$)return 11;if(e===X$)return 14}return 2}(i),e=_W(i,e),o){case 0:t=wX(null,t,i,e,n);break e;case 1:t=MX(null,t,i,e,n);break e;case 11:t=vX(null,t,i,e,n);break e;case 14:t=bX(null,t,i,_W(i.type,e),r,n);break e}throw Error(Bj(306,i,""))}return t;case 0:return r=t.type,i=t.pendingProps,wX(e,t,r,i=t.elementType===r?i:_W(r,i),n);case 1:return r=t.type,i=t.pendingProps,MX(e,t,r,i=t.elementType===r?i:_W(r,i),n);case 3:if(kX(t),r=t.updateQueue,null===e||null===r)throw Error(Bj(282));if(r=t.pendingProps,i=null!==(i=t.memoizedState)?i.element:null,YW(e,t),JW(t,r,null,n),(r=t.memoizedState.element)===i)pX(),t=_X(e,t,n);else{if((i=t.stateNode.hydrate)&&(sX=lV(t.stateNode.containerInfo.firstChild),aX=t,i=lX=!0),i)for(n=fY(t,null,r,n),t.child=n;n;)n.effectTag=-3&n.effectTag|1024,n=n.sibling;else yX(e,t,r,n),pX();t=t.child}return t;case 5:return xY(t),null===e&&dX(t),r=t.type,i=t.pendingProps,o=null!==e?e.memoizedProps:null,a=i.children,oV(r,i)?a=null:null!==o&&oV(r,o)&&(t.effectTag|=16),SX(e,t),4&t.mode&&1!==n&&i.hidden?(t.expirationTime=t.childExpirationTime=1,t=null):(yX(e,t,a,n),t=t.child),t;case 6:return null===e&&dX(t),null;case 13:return qX(e,t,n);case 4:return vY(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=dY(t,null,r,n):yX(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,vX(e,t,r,i=t.elementType===r?i:_W(r,i),n);case 7:return yX(e,t,t.pendingProps,n),t.child;case 8:case 12:return yX(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,i=t.pendingProps,a=t.memoizedProps,o=i.value;var s=t.type._context;if(KU(PW,s._currentValue),s._currentValue=o,null!==a)if(s=a.value,0===(o=EU(s,o)?0:0|("function"==typeof r._calculateChangedBits?r._calculateChangedBits(s,o):1073741823))){if(a.children===i.children&&!ZU.current){t=_X(e,t,n);break e}}else for(null!==(s=t.child)&&(s.return=t);null!==s;){var l=s.dependencies;if(null!==l){a=s.child;for(var c=l.firstContext;null!==c;){if(c.context===r&&0!=(c.observedBits&o)){1===s.tag&&((c=XW(n,null)).tag=2,GW(s,c)),s.expirationTime<n&&(s.expirationTime=n),null!==(c=s.alternate)&&c.expirationTime<n&&(c.expirationTime=n),HW(s.return,n),l.expirationTime<n&&(l.expirationTime=n);break}c=c.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}yX(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=(o=t.pendingProps).children,BW(t,n),r=r(i=VW(i,o.unstable_observedBits)),t.effectTag|=1,yX(e,t,r,n),t.child;case 14:return o=_W(i=t.type,t.pendingProps),bX(e,t,i,o=_W(i.type,o),r,n);case 15:return xX(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:_W(r,i),null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),t.tag=1,nW(r)?(e=!0,aW(t)):e=!1,BW(t,n),iY(t,r,i),aY(t,r,i,n),EX(null,t,r,!0,e,n);case 19:return IX(e,t,n)}throw Error(Bj(156,t.tag))};var vK=null,bK=null;function xK(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childExpirationTime=this.expirationTime=0,this.alternate=null}function SK(e,t,n,r){return new xK(e,t,n,r)}function wK(e){return!(!(e=e.prototype)||!e.isReactComponent)}function MK(e,t){var n=e.alternate;return null===n?((n=SK(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,t=e.dependencies,n.dependencies=null===t?null:{expirationTime:t.expirationTime,firstContext:t.firstContext,responders:t.responders},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function EK(e,t,n,r,i,o){var a=2;if(r=e,"function"==typeof e)wK(e)&&(a=1);else if("string"==typeof e)a=5;else e:switch(e){case F$:return kK(n.children,i,o,t);case V$:a=8,i|=7;break;case j$:a=8,i|=1;break;case $$:return(e=SK(12,n,t,8|i)).elementType=$$,e.type=$$,e.expirationTime=o,e;case W$:return(e=SK(13,n,t,i)).type=W$,e.elementType=W$,e.expirationTime=o,e;case Y$:return(e=SK(19,n,t,i)).elementType=Y$,e.expirationTime=o,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case H$:a=10;break e;case B$:a=9;break e;case U$:a=11;break e;case X$:a=14;break e;case G$:a=16,r=null;break e;case K$:a=22;break e}throw Error(Bj(130,null==e?e:typeof e,""))}return(t=SK(a,n,t,i)).elementType=e,t.type=r,t.expirationTime=o,t}function kK(e,t,n,r){return(e=SK(7,e,r,t)).expirationTime=n,e}function CK(e,t,n){return(e=SK(6,e,null,t)).expirationTime=n,e}function TK(e,t,n){return(t=SK(4,null!==e.children?e.children:[],e.key,t)).expirationTime=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function AK(e,t,n){this.tag=t,this.current=null,this.containerInfo=e,this.pingCache=this.pendingChildren=null,this.finishedExpirationTime=0,this.finishedWork=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=90,this.lastExpiredTime=this.lastPingedTime=this.nextKnownPendingLevel=this.lastSuspendedTime=this.firstSuspendedTime=this.firstPendingTime=0}function OK(e,t){var n=e.firstSuspendedTime;return e=e.lastSuspendedTime,0!==n&&n>=t&&e<=t}function NK(e,t){var n=e.firstSuspendedTime,r=e.lastSuspendedTime;n<t&&(e.firstSuspendedTime=t),(r>t||0===n)&&(e.lastSuspendedTime=t),t<=e.lastPingedTime&&(e.lastPingedTime=0),t<=e.lastExpiredTime&&(e.lastExpiredTime=0)}function qK(e,t){t>e.firstPendingTime&&(e.firstPendingTime=t);var n=e.firstSuspendedTime;0!==n&&(t>=n?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:t>=e.lastSuspendedTime&&(e.lastSuspendedTime=t+1),t>e.nextKnownPendingLevel&&(e.nextKnownPendingLevel=t))}function DK(e,t){var n=e.lastExpiredTime;(0===n||n>t)&&(e.lastExpiredTime=t)}function RK(e,t,n,r){var i=t.current,o=BG(),a=ZW.suspense;o=VG(o,i,a);e:if(n){t:{if(PH(n=n._reactInternalFiber)!==n||1!==n.tag)throw Error(Bj(170));var s=n;do{switch(s.tag){case 3:s=s.stateNode.context;break t;case 1:if(nW(s.type)){s=s.stateNode.__reactInternalMemoizedMergedChildContext;break t}}s=s.return}while(null!==s);throw Error(Bj(171))}if(1===n.tag){var l=n.type;if(nW(l)){n=oW(n,l,s);break e}}n=s}else n=JU;return null===t.context?t.context=n:t.pendingContext=n,(t=XW(o,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),GW(i,t),UG(i,o),o}function IK(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function _K(e,t){null!==(e=e.memoizedState)&&null!==e.dehydrated&&e.retryTime<t&&(e.retryTime=t)}function PK(e,t){_K(e,t),(e=e.alternate)&&_K(e,t)}function LK(e,t,n){var r=new AK(e,t,n=null!=n&&!0===n.hydrate),i=SK(3,null,null,2===t?7:1===t?3:0);r.current=i,i.stateNode=r,WW(i),e[hV]=r.current,n&&0!==t&&function(e,t){var n=_H(t);cB.forEach((function(e){JH(e,t,n)})),uB.forEach((function(e){JH(e,t,n)}))}(0,9===e.nodeType?e:e.ownerDocument),this._internalRoot=r}function zK(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function FK(e,t,n,r,i){var o=n._reactRootContainer;if(o){var a=o._internalRoot;if("function"==typeof i){var s=i;i=function(){var e=IK(a);s.call(e)}}RK(t,a,e,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 LK(e,0,t?{hydrate:!0}:void 0)}(n,r),a=o._internalRoot,"function"==typeof i){var l=i;i=function(){var e=IK(a);l.call(e)}}QG((function(){RK(t,a,e,i)}))}return IK(a)}function jK(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!zK(t))throw Error(Bj(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:z$,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)}LK.prototype.render=function(e){RK(e,this._internalRoot,null,null)},LK.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;RK(null,e,null,(function(){t[hV]=null}))},QH=function(e){if(13===e.tag){var t=IW(BG(),150,100);UG(e,t),PK(e,t)}},ZH=function(e){13===e.tag&&(UG(e,3),PK(e,3))},eB=function(e){if(13===e.tag){var t=BG();UG(e,t=VG(t,e,null)),PK(e,t)}},d$=function(e,t,n){switch(t){case"input":if(lH(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=yV(r);if(!i)throw Error(Bj(90));iH(r),lH(r,i)}}}break;case"textarea":mH(e,n);break;case"select":null!=(t=n.value)&&fH(e,!!n.multiple,t,!1)}},y$=JG,v$=function(e,t,n,r,i){var o=bG;bG|=4;try{return OW(98,e.bind(null,t,n,r,i))}finally{(bG=o)===cG&&DW()}},b$=function(){(bG&(1|dG|fG))===cG&&(function(){if(null!==FG){var e=FG;FG=null,e.forEach((function(e,t){DK(t,e),XG(t)})),DW()}}(),fK())},x$=function(e,t){var n=bG;bG|=2;try{return e(t)}finally{(bG=n)===cG&&DW()}};var $K={Events:[mV,gV,yV,c$,a$,EV,function(e){$H(e,MV)},m$,g$,IB,VH,fK,{current:!1}]};!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);vK=function(e){try{t.onCommitFiberRoot(n,e,void 0,64==(64&e.current.effectTag))}catch(e){}},bK=function(e){try{t.onCommitFiberUnmount(n,e)}catch(e){}}}catch(e){}})($j({},e,{overrideHookState:null,overrideProps:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:R$.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=FH(e))?null:e.stateNode},findFiberByHostInstance:function(e){return t?t(e):null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null}))}({findFiberByHostInstance:pV,bundleType:0,version:"16.14.0",rendererPackageName:"react-dom"}),Pj.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=$K,Pj.createPortal=jK,Pj.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternalFiber;if(void 0===t){if("function"==typeof e.render)throw Error(Bj(188));throw Error(Bj(268,Object.keys(e)))}return e=null===(e=FH(t))?null:e.stateNode},Pj.flushSync=function(e,t){if((bG&(dG|fG))!==cG)throw Error(Bj(187));var n=bG;bG|=1;try{return OW(99,e.bind(null,t))}finally{bG=n,DW()}},Pj.hydrate=function(e,t,n){if(!zK(t))throw Error(Bj(200));return FK(null,e,t,!0,n)},Pj.render=function(e,t,n){if(!zK(t))throw Error(Bj(200));return FK(null,e,t,!1,n)},Pj.unmountComponentAtNode=function(e){if(!zK(e))throw Error(Bj(40));return!!e._reactRootContainer&&(QG((function(){FK(null,null,e,!1,(function(){e._reactRootContainer=null,e[hV]=null}))})),!0)},Pj.unstable_batchedUpdates=JG,Pj.unstable_createPortal=function(e,t){return jK(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},Pj.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!zK(n))throw Error(Bj(200));if(null==e||void 0===e._reactInternalFiber)throw Error(Bj(38));return FK(e,t,n,!1,r)},Pj.version="16.14.0",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)}}(),_j.exports=Pj;var HK=_j.exports,BK=n(HK),VK=!0,UK=!1,WK=null,YK={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 XK(e){e.metaKey||e.altKey||e.ctrlKey||(VK=!0)}function GK(){VK=!1}function KK(){"hidden"===this.visibilityState&&UK&&(VK=!0)}function JK(e){var t=e.target;try{return t.matches(":focus-visible")}catch(e){}return VK||function(e){var t=e.type,n=e.tagName;return!("INPUT"!==n||!YK[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function QK(){UK=!0,window.clearTimeout(WK),WK=window.setTimeout((function(){UK=!1}),100)}function ZK(){var e=q_.useCallback((function(e){var t,n=HK.findDOMNode(e);null!=n&&((t=n.ownerDocument).addEventListener("keydown",XK,!0),t.addEventListener("mousedown",GK,!0),t.addEventListener("pointerdown",GK,!0),t.addEventListener("touchstart",GK,!0),t.addEventListener("visibilitychange",KK,!0))}),[]);return{isFocusVisible:JK,onBlurVisible:QK,ref:e}}var eJ=!1,tJ=D_.createContext(null),nJ="unmounted",rJ="exited",iJ="entering",oJ="entered",aJ="exiting",sJ=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=rJ,r.appearStatus=iJ):i=oJ:i=t.unmountOnExit||t.mountOnEnter?nJ:rJ,r.state={status:i},r.nextCallback=null,r}FP(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===nJ?{status:rJ}: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!==iJ&&n!==oJ&&(t=iJ):n!==iJ&&n!==oJ||(t=aJ)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===iJ){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:BK.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===rJ&&this.setState({status:nJ})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[BK.findDOMNode(this),r],o=i[0],a=i[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||eJ?this.safeSetState({status:oJ},(function(){t.props.onEntered(o)})):(this.props.onEnter(o,a),this.safeSetState({status:iJ},(function(){t.props.onEntering(o,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:oJ},(function(){t.props.onEntered(o,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:BK.findDOMNode(this);t&&!eJ?(this.props.onExit(r),this.safeSetState({status:aJ},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:rJ},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:rJ},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:BK.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],o=i[0],a=i[1];this.props.addEndListener(o,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===nJ)return null;var t=this.props,n=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var r=rP(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return D_.createElement(tJ.Provider,{value:null},"function"==typeof n?n(e,r):D_.cloneElement(D_.Children.only(n),r))},t}(D_.Component);function lJ(){}sJ.contextType=tJ,sJ.propTypes={},sJ.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:lJ,onEntering:lJ,onEntered:lJ,onExit:lJ,onExiting:lJ,onExited:lJ},sJ.UNMOUNTED=nJ,sJ.EXITED=rJ,sJ.ENTERING=iJ,sJ.ENTERED=oJ,sJ.EXITING=aJ;var cJ=sJ;function uJ(e,t){var n=Object.create(null);return e&&q_.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&q_.isValidElement(e)?t(e):e}(e)})),n}function dJ(e,t,n){return null!=n[t]?n[t]:e.props[t]}function fJ(e,t,n){var r=uJ(e.children),i=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,i=Object.create(null),o=[];for(var a in e)a in t?o.length&&(i[a]=o,o=[]):o.push(a);var s={};for(var l in t){if(i[l])for(r=0;r<i[l].length;r++){var c=i[l][r];s[i[l][r]]=n(c)}s[l]=n(l)}for(r=0;r<o.length;r++)s[o[r]]=n(o[r]);return s}(t,r);return Object.keys(i).forEach((function(o){var a=i[o];if(q_.isValidElement(a)){var s=o in t,l=o in r,c=t[o],u=q_.isValidElement(c)&&!c.props.in;!l||s&&!u?l||!s||u?l&&s&&q_.isValidElement(c)&&(i[o]=q_.cloneElement(a,{onExited:n.bind(null,a),in:c.props.in,exit:dJ(a,"exit",e),enter:dJ(a,"enter",e)})):i[o]=q_.cloneElement(a,{in:!1}):i[o]=q_.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:dJ(a,"exit",e),enter:dJ(a,"enter",e)})}})),i}var hJ=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},pJ=function(e){function t(t,n){var r,i=(r=e.call(this,t,n)||this).handleExited.bind(jP(r));return r.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},r}FP(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,uJ(n.children,(function(e){return q_.cloneElement(e,{onExited:r.bind(null,e),in:!0,appear:dJ(e,"appear",n),enter:dJ(e,"enter",n),exit:dJ(e,"exit",n)})}))):fJ(e,i,o),firstRender:!1}},n.handleExited=function(e,t){var n=uJ(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=U_({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=rP(e,["component","childFactory"]),i=this.state.contextValue,o=hJ(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?D_.createElement(tJ.Provider,{value:i},o):D_.createElement(tJ.Provider,{value:i},D_.createElement(t,r,o))},t}(D_.Component);pJ.propTypes={},pJ.defaultProps={component:"div",childFactory:function(e){return e}};var mJ=pJ;function gJ(e,t){var n=e.timeout,r=e.style,i=void 0===r?{}:r;return{duration:i.transitionDuration||"number"==typeof n?n:n[t.mode]||0,delay:i.transitionDelay}}var yJ=q_.forwardRef((function(e,t){var n=e.classes,r=e.className,i=e.component,o=void 0===i?"div":i,a=e.square,s=void 0!==a&&a,l=e.elevation,c=void 0===l?1:l,u=e.variant,d=void 0===u?"elevation":u,f=iP(e,["classes","className","component","square","elevation","variant"]);return q_.createElement(o,U_({className:LF(n.root,r,"outlined"===d?n.outlined:n["elevation".concat(c)],!s&&n.rounded),ref:t},f))})),vJ=Cj((function(e){var t={};return e.shadows.forEach((function(e,n){t["elevation".concat(n)]={boxShadow:e}})),U_({root:{backgroundColor:e.palette.background.paper,color:e.palette.text.primary,transition:e.transitions.create("box-shadow")},rounded:{borderRadius:e.shape.borderRadius},outlined:{border:"1px solid ".concat(e.palette.divider)}},t)}),{name:"MuiPaper"})(yJ),bJ="undefined"==typeof window?q_.useEffect:q_.useLayoutEffect;function xJ(e){var t=e.classes,n=e.pulsate,r=void 0!==n&&n,i=e.rippleX,o=e.rippleY,a=e.rippleSize,s=e.in,l=e.onExited,c=void 0===l?function(){}:l,u=e.timeout,d=q_.useState(!1),f=d[0],h=d[1],p=LF(t.ripple,t.rippleVisible,r&&t.ripplePulsate),m={width:a,height:a,top:-a/2+o,left:-a/2+i},g=LF(t.child,f&&t.childLeaving,r&&t.childPulsate),y=Rj(c);return bJ((function(){if(!s){h(!0);var e=setTimeout(y,u);return function(){clearTimeout(e)}}}),[y,s,u]),q_.createElement("span",{className:p,style:m},q_.createElement("span",{className:g}))}var SJ=q_.forwardRef((function(e,t){var n=e.center,r=void 0!==n&&n,i=e.classes,o=e.className,a=iP(e,["center","classes","className"]),s=q_.useState([]),l=s[0],c=s[1],u=q_.useRef(0),d=q_.useRef(null);q_.useEffect((function(){d.current&&(d.current(),d.current=null)}),[l]);var f=q_.useRef(!1),h=q_.useRef(null),p=q_.useRef(null),m=q_.useRef(null);q_.useEffect((function(){return function(){clearTimeout(h.current)}}),[]);var g=q_.useCallback((function(e){var t=e.pulsate,n=e.rippleX,r=e.rippleY,o=e.rippleSize,a=e.cb;c((function(e){return[].concat(SP(e),[q_.createElement(xJ,{key:u.current,classes:i,timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:o})])})),u.current+=1,d.current=a}),[i]),y=q_.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,i=t.pulsate,o=void 0!==i&&i,a=t.center,s=void 0===a?r||t.pulsate:a,l=t.fakeElement,c=void 0!==l&&l;if("mousedown"===e.type&&f.current)f.current=!1;else{"touchstart"===e.type&&(f.current=!0);var u,d,y,v=c?null:m.current,b=v?v.getBoundingClientRect():{width:0,height:0,left:0,top:0};if(s||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(b.width/2),d=Math.round(b.height/2);else{var x=e.touches?e.touches[0]:e,S=x.clientX,w=x.clientY;u=Math.round(S-b.left),d=Math.round(w-b.top)}if(s)(y=Math.sqrt((2*Math.pow(b.width,2)+Math.pow(b.height,2))/3))%2==0&&(y+=1);else{var M=2*Math.max(Math.abs((v?v.clientWidth:0)-u),u)+2,E=2*Math.max(Math.abs((v?v.clientHeight:0)-d),d)+2;y=Math.sqrt(Math.pow(M,2)+Math.pow(E,2))}e.touches?null===p.current&&(p.current=function(){g({pulsate:o,rippleX:u,rippleY:d,rippleSize:y,cb:n})},h.current=setTimeout((function(){p.current&&(p.current(),p.current=null)}),80)):g({pulsate:o,rippleX:u,rippleY:d,rippleSize:y,cb:n})}}),[r,g]),v=q_.useCallback((function(){y({},{pulsate:!0})}),[y]),b=q_.useCallback((function(e,t){if(clearTimeout(h.current),"touchend"===e.type&&p.current)return e.persist(),p.current(),p.current=null,void(h.current=setTimeout((function(){b(e,t)})));p.current=null,c((function(e){return e.length>0?e.slice(1):e})),d.current=t}),[]);return q_.useImperativeHandle(t,(function(){return{pulsate:v,start:y,stop:b}}),[v,y,b]),q_.createElement("span",U_({className:LF(i.root,o),ref:m},a),q_.createElement(mJ,{component:null,exit:!0},l))})),wJ=Cj((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"})(q_.memo(SJ)),MJ=q_.forwardRef((function(e,t){var n=e.action,r=e.buttonRef,i=e.centerRipple,o=void 0!==i&&i,a=e.children,s=e.classes,l=e.className,c=e.component,u=void 0===c?"button":c,d=e.disabled,f=void 0!==d&&d,h=e.disableRipple,p=void 0!==h&&h,m=e.disableTouchRipple,g=void 0!==m&&m,y=e.focusRipple,v=void 0!==y&&y,b=e.focusVisibleClassName,x=e.onBlur,S=e.onClick,w=e.onFocus,M=e.onFocusVisible,E=e.onKeyDown,k=e.onKeyUp,C=e.onMouseDown,T=e.onMouseLeave,A=e.onMouseUp,O=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,z=iP(e,["action","buttonRef","centerRipple","children","classes","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","onBlur","onClick","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","onDragLeave","tabIndex","TouchRippleProps","type"]),F=q_.useRef(null);var j=q_.useRef(null),$=q_.useState(!1),H=$[0],B=$[1];f&&H&&B(!1);var V=ZK(),U=V.isFocusVisible,W=V.onBlurVisible,Y=V.ref;function X(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:g;return Rj((function(r){return t&&t(r),!n&&j.current&&j.current[e](r),!0}))}q_.useImperativeHandle(n,(function(){return{focusVisible:function(){B(!0),F.current.focus()}}}),[]),q_.useEffect((function(){H&&v&&!p&&j.current.pulsate()}),[p,v,H]);var G=X("start",C),K=X("stop",D),J=X("stop",A),Q=X("stop",(function(e){H&&e.preventDefault(),T&&T(e)})),Z=X("start",q),ee=X("stop",O),te=X("stop",N),ne=X("stop",(function(e){H&&(W(e),B(!1)),x&&x(e)}),!1),re=Rj((function(e){F.current||(F.current=e.currentTarget),U(e)&&(B(!0),M&&M(e)),w&&w(e)})),ie=function(){var e=HK.findDOMNode(F.current);return u&&"button"!==u&&!("A"===e.tagName&&e.href)},oe=q_.useRef(!1),ae=Rj((function(e){v&&!oe.current&&H&&j.current&&" "===e.key&&(oe.current=!0,e.persist(),j.current.stop(e,(function(){j.current.start(e)}))),e.target===e.currentTarget&&ie()&&" "===e.key&&e.preventDefault(),E&&E(e),e.target===e.currentTarget&&ie()&&"Enter"===e.key&&!f&&(e.preventDefault(),S&&S(e))})),se=Rj((function(e){v&&" "===e.key&&j.current&&H&&!e.defaultPrevented&&(oe.current=!1,e.persist(),j.current.stop(e,(function(){j.current.pulsate(e)}))),k&&k(e),S&&e.target===e.currentTarget&&ie()&&" "===e.key&&!e.defaultPrevented&&S(e)})),le=u;"button"===le&&z.href&&(le="a");var ce={};"button"===le?(ce.type=L,ce.disabled=f):("a"===le&&z.href||(ce.role="button"),ce["aria-disabled"]=f);var ue=Ij(r,t),de=Ij(Y,F),fe=Ij(ue,de),he=q_.useState(!1),pe=he[0],me=he[1];q_.useEffect((function(){me(!0)}),[]);var ge=pe&&!p&&!f;return q_.createElement(le,U_({className:LF(s.root,l,H&&[s.focusVisible,b],f&&s.disabled),onBlur:ne,onClick:S,onFocus:re,onKeyDown:ae,onKeyUp:se,onMouseDown:G,onMouseLeave:Q,onMouseUp:J,onDragLeave:K,onTouchEnd:ee,onTouchMove:te,onTouchStart:Z,ref:fe,tabIndex:f?-1:I},ce,z),a,ge?q_.createElement(wJ,U_({ref:j,center:o},_)):null)})),EJ=Cj({root:{display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle","-moz-appearance":"none","-webkit-appearance":"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},"&$disabled":{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}},disabled:{},focusVisible:{}},{name:"MuiButtonBase"})(MJ),kJ={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p"},CJ=q_.forwardRef((function(e,t){var n=e.align,r=void 0===n?"inherit":n,i=e.classes,o=e.className,a=e.color,s=void 0===a?"initial":a,l=e.component,c=e.display,u=void 0===c?"initial":c,d=e.gutterBottom,f=void 0!==d&&d,h=e.noWrap,p=void 0!==h&&h,m=e.paragraph,g=void 0!==m&&m,y=e.variant,v=void 0===y?"body1":y,b=e.variantMapping,x=void 0===b?kJ:b,S=iP(e,["align","classes","className","color","component","display","gutterBottom","noWrap","paragraph","variant","variantMapping"]),w=l||(g?"p":x[v]||kJ[v])||"span";return q_.createElement(w,U_({className:LF(i.root,o,"inherit"!==v&&i[v],"initial"!==s&&i["color".concat(Tj(s))],p&&i.noWrap,f&&i.gutterBottom,g&&i.paragraph,"inherit"!==r&&i["align".concat(Tj(r))],"initial"!==u&&i["display".concat(Tj(u))]),ref:t},S))})),TJ=Cj((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"})(CJ),AJ=q_.forwardRef((function(e,t){var n=e.children,r=e.classes,i=e.className,o=e.color,a=void 0===o?"default":o,s=e.component,l=void 0===s?"button":s,c=e.disabled,u=void 0!==c&&c,d=e.disableElevation,f=void 0!==d&&d,h=e.disableFocusRipple,p=void 0!==h&&h,m=e.endIcon,g=e.focusVisibleClassName,y=e.fullWidth,v=void 0!==y&&y,b=e.size,x=void 0===b?"medium":b,S=e.startIcon,w=e.type,M=void 0===w?"button":w,E=e.variant,k=void 0===E?"text":E,C=iP(e,["children","classes","className","color","component","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"]),T=S&&q_.createElement("span",{className:LF(r.startIcon,r["iconSize".concat(Tj(x))])},S),A=m&&q_.createElement("span",{className:LF(r.endIcon,r["iconSize".concat(Tj(x))])},m);return q_.createElement(EJ,U_({className:LF(r.root,r[k],i,"inherit"===a?r.colorInherit:"default"!==a&&r["".concat(k).concat(Tj(a))],"medium"!==x&&[r["".concat(k,"Size").concat(Tj(x))],r["size".concat(Tj(x))]],f&&r.disableElevation,u&&r.disabled,v&&r.fullWidth),component:l,disabled:u,focusRipple:!p,focusVisibleClassName:LF(r.focusVisible,g),ref:t,type:M},C),q_.createElement("span",{className:r.label},T,n,A))})),OJ=Cj((function(e){return{root:U_({},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:nP(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:nP(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},textSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:nP(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlined:{padding:"5px 15px",border:"1px solid ".concat("light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),"&$disabled":{border:"1px solid ".concat(e.palette.action.disabledBackground)}},outlinedPrimary:{color:e.palette.primary.main,border:"1px solid ".concat(nP(e.palette.primary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.primary.main),backgroundColor:nP(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlinedSecondary:{color:e.palette.secondary.main,border:"1px solid ".concat(nP(e.palette.secondary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.secondary.main),backgroundColor:nP(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{border:"1px solid ".concat(e.palette.action.disabled)}},contained:{color:e.palette.getContrastText(e.palette.grey[300]),backgroundColor:e.palette.grey[300],boxShadow:e.shadows[2],"&:hover":{backgroundColor:e.palette.grey.A100,boxShadow:e.shadows[4],"@media (hover: none)":{boxShadow:e.shadows[2],backgroundColor:e.palette.grey[300]},"&$disabled":{backgroundColor:e.palette.action.disabledBackground}},"&$focusVisible":{boxShadow:e.shadows[6]},"&:active":{boxShadow:e.shadows[8]},"&$disabled":{color:e.palette.action.disabled,boxShadow:e.shadows[0],backgroundColor:e.palette.action.disabledBackground}},containedPrimary:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,"&:hover":{backgroundColor:e.palette.primary.dark,"@media (hover: none)":{backgroundColor:e.palette.primary.main}}},containedSecondary:{color:e.palette.secondary.contrastText,backgroundColor:e.palette.secondary.main,"&:hover":{backgroundColor:e.palette.secondary.dark,"@media (hover: none)":{backgroundColor:e.palette.secondary.main}}},disableElevation:{boxShadow:"none","&:hover":{boxShadow:"none"},"&$focusVisible":{boxShadow:"none"},"&:active":{boxShadow:"none"},"&$disabled":{boxShadow:"none"}},focusVisible:{},disabled:{},colorInherit:{color:"inherit",borderColor:"currentColor"},textSizeSmall:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},textSizeLarge:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},outlinedSizeSmall:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},outlinedSizeLarge:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},containedSizeSmall:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},containedSizeLarge:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},sizeSmall:{},sizeLarge:{},fullWidth:{width:"100%"},startIcon:{display:"inherit",marginRight:8,marginLeft:-4,"&$iconSizeSmall":{marginLeft:-2}},endIcon:{display:"inherit",marginRight:-4,marginLeft:8,"&$iconSizeSmall":{marginRight:-2}},iconSizeSmall:{"& > *:first-child":{fontSize:18}},iconSizeMedium:{"& > *:first-child":{fontSize:20}},iconSizeLarge:{"& > *:first-child":{fontSize:22}}}}),{name:"MuiButton"})(AJ);var NJ="undefined"!=typeof window?q_.useLayoutEffect:q_.useEffect,qJ=q_.forwardRef((function(e,t){var n=e.children,r=e.container,i=e.disablePortal,o=void 0!==i&&i,a=e.onRendered,s=q_.useState(null),l=s[0],c=s[1],u=Ij(q_.isValidElement(n)?n.ref:null,t);return NJ((function(){o||c(function(e){return e="function"==typeof e?e():e,HK.findDOMNode(e)}(r)||document.body)}),[r,o]),NJ((function(){if(l&&!o)return qj(t,l),function(){qj(t,null)}}),[t,l,o]),NJ((function(){a&&(l||o)&&a()}),[a,l,o]),o?q_.isValidElement(n)?q_.cloneElement(n,{ref:u}):n:l?HK.createPortal(n,l):l})),DJ=qJ;function RJ(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function IJ(e){return parseInt(window.getComputedStyle(e)["padding-right"],10)||0}function _J(e,t,n){var r=arguments.length>4?arguments[4]:void 0,i=[t,n].concat(SP(arguments.length>3&&void 0!==arguments[3]?arguments[3]:[])),o=["TEMPLATE","SCRIPT","STYLE"];[].forEach.call(e.children,(function(e){1===e.nodeType&&-1===i.indexOf(e)&&-1===o.indexOf(e.tagName)&&RJ(e,r)}))}function PJ(e,t){var n=-1;return e.some((function(e,r){return!!t(e)&&(n=r,!0)})),n}function LJ(e,t){var n,r=[],i=[],o=e.container;if(!t.disableScrollLock){if(function(e){var t=Oj(e);return t.body===e?Nj(t).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(o)){var a=function(){var e=document.createElement("div");e.style.width="99px",e.style.height="99px",e.style.position="absolute",e.style.top="-9999px",e.style.overflow="scroll",document.body.appendChild(e);var t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t}();r.push({value:o.style.paddingRight,key:"padding-right",el:o}),o.style["padding-right"]="".concat(IJ(o)+a,"px"),n=Oj(o).querySelectorAll(".mui-fixed"),[].forEach.call(n,(function(e){i.push(e.style.paddingRight),e.style.paddingRight="".concat(IJ(e)+a,"px")}))}var s=o.parentElement,l="HTML"===s.nodeName&&"scroll"===window.getComputedStyle(s)["overflow-y"]?s:o;r.push({value:l.style.overflow,key:"overflow",el:l}),l.style.overflow="hidden"}return function(){n&&[].forEach.call(n,(function(e,t){i[t]?e.style.paddingRight=i[t]:e.style.removeProperty("padding-right")})),r.forEach((function(e){var t=e.value,n=e.el,r=e.key;t?n.style.setProperty(r,t):n.style.removeProperty(r)}))}}var zJ=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.modals=[],this.containers=[]}return LP(e,[{key:"add",value:function(e,t){var n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&RJ(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);_J(t,e.mountNode,e.modalRef,r,!0);var i=PJ(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=PJ(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];r.restore||(r.restore=LJ(r,t))}},{key:"remove",value:function(e){var t=this.modals.indexOf(e);if(-1===t)return t;var n=PJ(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&&RJ(e.modalRef,!0),_J(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&&RJ(i.modalRef,!1)}return t}},{key:"isTopModal",value:function(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}]),e}();function FJ(e){var t=e.children,n=e.disableAutoFocus,r=void 0!==n&&n,i=e.disableEnforceFocus,o=void 0!==i&&i,a=e.disableRestoreFocus,s=void 0!==a&&a,l=e.getDoc,c=e.isEnabled,u=e.open,d=q_.useRef(),f=q_.useRef(null),h=q_.useRef(null),p=q_.useRef(),m=q_.useRef(null),g=q_.useCallback((function(e){m.current=HK.findDOMNode(e)}),[]),y=Ij(t.ref,g),v=q_.useRef();return q_.useEffect((function(){v.current=u}),[u]),!v.current&&u&&"undefined"!=typeof window&&(p.current=l().activeElement),q_.useEffect((function(){if(u){var e=Oj(m.current);r||!m.current||m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex",-1),m.current.focus());var t=function(){null!==m.current&&(e.hasFocus()&&!o&&c()&&!d.current?m.current&&!m.current.contains(e.activeElement)&&m.current.focus():d.current=!1)},n=function(t){!o&&c()&&9===t.keyCode&&e.activeElement===m.current&&(d.current=!0,t.shiftKey?h.current.focus():f.current.focus())};e.addEventListener("focus",t,!0),e.addEventListener("keydown",n,!0);var i=setInterval((function(){t()}),50);return function(){clearInterval(i),e.removeEventListener("focus",t,!0),e.removeEventListener("keydown",n,!0),s||(p.current&&p.current.focus&&p.current.focus(),p.current=null)}}}),[r,o,s,c,u]),q_.createElement(q_.Fragment,null,q_.createElement("div",{tabIndex:0,ref:f,"data-test":"sentinelStart"}),q_.cloneElement(t,{ref:y}),q_.createElement("div",{tabIndex:0,ref:h,"data-test":"sentinelEnd"}))}var jJ={root:{zIndex:-1,position:"fixed",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},invisible:{backgroundColor:"transparent"}},$J=q_.forwardRef((function(e,t){var n=e.invisible,r=void 0!==n&&n,i=e.open,o=iP(e,["invisible","open"]);return i?q_.createElement("div",U_({"aria-hidden":!0,ref:t},o,{style:U_({},jJ.root,r?jJ.invisible:{},o.style)})):null}));var HJ=new zJ,BJ=q_.forwardRef((function(e,t){var n=CF(),r=RP({name:"MuiModal",props:U_({},e),theme:n}),i=r.BackdropComponent,o=void 0===i?$J:i,a=r.BackdropProps,s=r.children,l=r.closeAfterTransition,c=void 0!==l&&l,u=r.container,d=r.disableAutoFocus,f=void 0!==d&&d,h=r.disableBackdropClick,p=void 0!==h&&h,m=r.disableEnforceFocus,g=void 0!==m&&m,y=r.disableEscapeKeyDown,v=void 0!==y&&y,b=r.disablePortal,x=void 0!==b&&b,S=r.disableRestoreFocus,w=void 0!==S&&S,M=r.disableScrollLock,E=void 0!==M&&M,k=r.hideBackdrop,C=void 0!==k&&k,T=r.keepMounted,A=void 0!==T&&T,O=r.manager,N=void 0===O?HJ:O,q=r.onBackdropClick,D=r.onClose,R=r.onEscapeKeyDown,I=r.onRendered,_=r.open,P=iP(r,["BackdropComponent","BackdropProps","children","closeAfterTransition","container","disableAutoFocus","disableBackdropClick","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onEscapeKeyDown","onRendered","open"]),L=q_.useState(!0),z=L[0],F=L[1],j=q_.useRef({}),$=q_.useRef(null),H=q_.useRef(null),B=Ij(H,t),V=function(e){return!!e.children&&e.children.props.hasOwnProperty("in")}(r),U=function(){return Oj($.current)},W=function(){return j.current.modalRef=H.current,j.current.mountNode=$.current,j.current},Y=function(){N.mount(W(),{disableScrollLock:E}),H.current.scrollTop=0},X=Rj((function(){var e=function(e){return e="function"==typeof e?e():e,HK.findDOMNode(e)}(u)||U().body;N.add(W(),e),H.current&&Y()})),G=q_.useCallback((function(){return N.isTopModal(W())}),[N]),K=Rj((function(e){$.current=e,e&&(I&&I(),_&&G()?Y():RJ(H.current,!0))})),J=q_.useCallback((function(){N.remove(W())}),[N]);if(q_.useEffect((function(){return function(){J()}}),[J]),q_.useEffect((function(){_?X():V&&c||J()}),[_,J,V,c,X]),!A&&!_&&(!V||z))return null;var Q=function(e){return{root:{position:"fixed",zIndex:e.zIndex.modal,right:0,bottom:0,top:0,left:0},hidden:{visibility:"hidden"}}}(n||{zIndex:AP}),Z={};return void 0===s.props.tabIndex&&(Z.tabIndex=s.props.tabIndex||"-1"),V&&(Z.onEnter=Aj((function(){F(!1)}),s.props.onEnter),Z.onExited=Aj((function(){F(!0),c&&J()}),s.props.onExited)),q_.createElement(DJ,{ref:K,container:u,disablePortal:x},q_.createElement("div",U_({ref:B,onKeyDown:function(e){"Escape"===e.key&&G()&&(R&&R(e),v||(e.stopPropagation(),D&&D(e,"escapeKeyDown")))},role:"presentation"},P,{style:U_({},Q.root,!_&&z?Q.hidden:{},P.style)}),C?null:q_.createElement(o,U_({open:_,onClick:function(e){e.target===e.currentTarget&&(q&&q(e),!p&&D&&D(e,"backdropClick"))}},a)),q_.createElement(FJ,{disableEnforceFocus:g,disableAutoFocus:f,disableRestoreFocus:w,getDoc:U,isEnabled:G,open:_},q_.cloneElement(s,Z))))})),VJ=BJ;function UJ(e){return"scale(".concat(e,", ").concat(Math.pow(e,2),")")}var WJ={entering:{opacity:1,transform:UJ(1)},entered:{opacity:1,transform:"none"}},YJ=q_.forwardRef((function(e,t){var n=e.children,r=e.disableStrictModeCompat,i=void 0!==r&&r,o=e.in,a=e.onEnter,s=e.onEntered,l=e.onEntering,c=e.onExit,u=e.onExited,d=e.onExiting,f=e.style,h=e.timeout,p=void 0===h?"auto":h,m=e.TransitionComponent,g=void 0===m?cJ:m,y=iP(e,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),v=q_.useRef(),b=q_.useRef(),x=CF()||Ej,S=x.unstable_strictMode&&!i,w=q_.useRef(null),M=Ij(n.ref,t),E=Ij(S?w:void 0,M),k=function(e){return function(t,n){if(e){var r=wP(S?[w.current,t]:[t,n],2),i=r[0],o=r[1];void 0===o?e(i):e(i,o)}}},C=k(l),T=k((function(e,t){!function(e){e.scrollTop}(e);var n,r=gJ({style:f,timeout:p},{mode:"enter"}),i=r.duration,o=r.delay;"auto"===p?(n=x.transitions.getAutoHeightDuration(e.clientHeight),b.current=n):n=i,e.style.transition=[x.transitions.create("opacity",{duration:n,delay:o}),x.transitions.create("transform",{duration:.666*n,delay:o})].join(","),a&&a(e,t)})),A=k(s),O=k(d),N=k((function(e){var t,n=gJ({style:f,timeout:p},{mode:"exit"}),r=n.duration,i=n.delay;"auto"===p?(t=x.transitions.getAutoHeightDuration(e.clientHeight),b.current=t):t=r,e.style.transition=[x.transitions.create("opacity",{duration:t,delay:i}),x.transitions.create("transform",{duration:.666*t,delay:i||.333*t})].join(","),e.style.opacity="0",e.style.transform=UJ(.75),c&&c(e)})),q=k(u);return q_.useEffect((function(){return function(){clearTimeout(v.current)}}),[]),q_.createElement(g,U_({appear:!0,in:o,nodeRef:S?w:void 0,onEnter:T,onEntered:A,onEntering:C,onExit:N,onExited:q,onExiting:O,addEndListener:function(e,t){var n=S?e:t;"auto"===p&&(v.current=setTimeout(n,b.current||0))},timeout:"auto"===p?null:p},y),(function(e,t){return q_.cloneElement(n,U_({style:U_({opacity:0,transform:UJ(.75),visibility:"exited"!==e||o?void 0:"hidden"},WJ[e],f,n.props.style),ref:E},t))}))}));YJ.muiSupportAuto=!0;var XJ=YJ,GJ=q_.createContext({}),KJ=q_.forwardRef((function(e,t){var n=e.children,r=e.classes,i=e.className,o=e.component,a=void 0===o?"ul":o,s=e.dense,l=void 0!==s&&s,c=e.disablePadding,u=void 0!==c&&c,d=e.subheader,f=iP(e,["children","classes","className","component","dense","disablePadding","subheader"]),h=q_.useMemo((function(){return{dense:l}}),[l]);return q_.createElement(GJ.Provider,{value:h},q_.createElement(a,U_({className:LF(r.root,i,l&&r.dense,!u&&r.padding,d&&r.subheader),ref:t},f),d,n))})),JJ=Cj({root:{listStyle:"none",margin:0,padding:0,position:"relative"},padding:{paddingTop:8,paddingBottom:8},dense:{},subheader:{paddingTop:0}},{name:"MuiList"})(KJ),QJ="undefined"==typeof window?q_.useEffect:q_.useLayoutEffect,ZJ=q_.forwardRef((function(e,t){var n=e.alignItems,r=void 0===n?"center":n,i=e.autoFocus,o=void 0!==i&&i,a=e.button,s=void 0!==a&&a,l=e.children,c=e.classes,u=e.className,d=e.component,f=e.ContainerComponent,h=void 0===f?"li":f,p=e.ContainerProps,m=(p=void 0===p?{}:p).className,g=iP(p,["className"]),y=e.dense,v=void 0!==y&&y,b=e.disabled,x=void 0!==b&&b,S=e.disableGutters,w=void 0!==S&&S,M=e.divider,E=void 0!==M&&M,k=e.focusVisibleClassName,C=e.selected,T=void 0!==C&&C,A=iP(e,["alignItems","autoFocus","button","children","classes","className","component","ContainerComponent","ContainerProps","dense","disabled","disableGutters","divider","focusVisibleClassName","selected"]),O=q_.useContext(GJ),N={dense:v||O.dense||!1,alignItems:r},q=q_.useRef(null);QJ((function(){o&&q.current&&q.current.focus()}),[o]);var D,R,I=q_.Children.toArray(l),_=I.length&&(D=I[I.length-1],R=["ListItemSecondaryAction"],q_.isValidElement(D)&&-1!==R.indexOf(D.type.muiName)),P=q_.useCallback((function(e){q.current=HK.findDOMNode(e)}),[]),L=Ij(P,t),z=U_({className:LF(c.root,u,N.dense&&c.dense,!w&&c.gutters,E&&c.divider,x&&c.disabled,s&&c.button,"center"!==r&&c.alignItemsFlexStart,_&&c.secondaryAction,T&&c.selected),disabled:x},A),F=d||"li";return s&&(z.component=d||"div",z.focusVisibleClassName=LF(c.focusVisible,k),F=EJ),_?(F=z.component||d?F:"div","li"===h&&("li"===F?F="div":"li"===z.component&&(z.component="div")),q_.createElement(GJ.Provider,{value:N},q_.createElement(h,U_({className:LF(c.container,m),ref:L},g),q_.createElement(F,z,I),I.pop()))):q_.createElement(GJ.Provider,{value:N},q_.createElement(F,U_({ref:L},z),I))})),eQ=Cj((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"})(ZJ),tQ=q_.forwardRef((function(e,t){var n=e.classes,r=e.className,i=iP(e,["classes","className"]),o=q_.useContext(GJ);return q_.createElement("div",U_({className:LF(n.root,r,"flex-start"===o.alignItems&&n.alignItemsFlexStart),ref:t},i))})),nQ=Cj((function(e){return{root:{minWidth:56,color:e.palette.action.active,flexShrink:0,display:"inline-flex"},alignItemsFlexStart:{marginTop:8}}}),{name:"MuiListItemIcon"})(tQ),rQ=q_.forwardRef((function(e,t){var n=e.children,r=e.classes,i=e.className,o=e.disableTypography,a=void 0!==o&&o,s=e.inset,l=void 0!==s&&s,c=e.primary,u=e.primaryTypographyProps,d=e.secondary,f=e.secondaryTypographyProps,h=iP(e,["children","classes","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"]),p=q_.useContext(GJ).dense,m=null!=c?c:n;null==m||m.type===TJ||a||(m=q_.createElement(TJ,U_({variant:p?"body2":"body1",className:r.primary,component:"span",display:"block"},u),m));var g=d;return null==g||g.type===TJ||a||(g=q_.createElement(TJ,U_({variant:"body2",className:r.secondary,color:"textSecondary",display:"block"},f),g)),q_.createElement("div",U_({className:LF(r.root,i,p&&r.dense,l&&r.inset,m&&g&&r.multiline),ref:t},h),m,g)})),iQ=Cj({root:{flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},multiline:{marginTop:6,marginBottom:6},dense:{},inset:{paddingLeft:56},primary:{},secondary:{}},{name:"MuiListItemText"})(rQ);function oQ(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function aQ(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function sQ(e){return[e.horizontal,e.vertical].map((function(e){return"number"==typeof e?"".concat(e,"px"):e})).join(" ")}function lQ(e){return"function"==typeof e?e():e}var cQ=q_.forwardRef((function(e,t){var n=e.action,r=e.anchorEl,i=e.anchorOrigin,o=void 0===i?{vertical:"top",horizontal:"left"}:i,a=e.anchorPosition,s=e.anchorReference,l=void 0===s?"anchorEl":s,c=e.children,u=e.classes,d=e.className,f=e.container,h=e.elevation,p=void 0===h?8:h,m=e.getContentAnchorEl,g=e.marginThreshold,y=void 0===g?16:g,v=e.onEnter,b=e.onEntered,x=e.onEntering,S=e.onExit,w=e.onExited,M=e.onExiting,E=e.open,k=e.PaperProps,C=void 0===k?{}:k,T=e.transformOrigin,A=void 0===T?{vertical:"top",horizontal:"left"}:T,O=e.TransitionComponent,N=void 0===O?XJ:O,q=e.transitionDuration,D=void 0===q?"auto":q,R=e.TransitionProps,I=void 0===R?{}:R,_=iP(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=q_.useRef(),L=q_.useCallback((function(e){if("anchorPosition"===l)return a;var t=lQ(r),n=(t&&1===t.nodeType?t:Oj(P.current).body).getBoundingClientRect(),i=0===e?o.vertical:"center";return{top:n.top+oQ(n,i),left:n.left+aQ(n,o.horizontal)}}),[r,o.horizontal,o.vertical,a,l]),z=q_.useCallback((function(e){var t=0;if(m&&"anchorEl"===l){var n=m(e);if(n&&e.contains(n)){var r=function(e,t){for(var n=t,r=0;n&&n!==e;)r+=(n=n.parentElement).scrollTop;return r}(e,n);t=n.offsetTop+n.clientHeight/2-r||0}}return t}),[o.vertical,l,m]),F=q_.useCallback((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return{vertical:oQ(e,A.vertical)+t,horizontal:aQ(e,A.horizontal)}}),[A.horizontal,A.vertical]),j=q_.useCallback((function(e){var t=z(e),n={width:e.offsetWidth,height:e.offsetHeight},i=F(n,t);if("none"===l)return{top:null,left:null,transformOrigin:sQ(i)};var o=L(t),a=o.top-i.vertical,s=o.left-i.horizontal,c=a+n.height,u=s+n.width,d=Nj(lQ(r)),f=d.innerHeight-y,h=d.innerWidth-y;if(a<y){var p=a-y;a-=p,i.vertical+=p}else if(c>f){var m=c-f;a-=m,i.vertical+=m}if(s<y){var g=s-y;s-=g,i.horizontal+=g}else if(u>h){var v=u-h;s-=v,i.horizontal+=v}return{top:"".concat(Math.round(a),"px"),left:"".concat(Math.round(s),"px"),transformOrigin:sQ(i)}}),[r,l,L,z,F,y]),$=q_.useCallback((function(){var e=P.current;if(e){var t=j(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin}}),[j]),H=q_.useCallback((function(e){P.current=HK.findDOMNode(e)}),[]);q_.useEffect((function(){E&&$()})),q_.useImperativeHandle(n,(function(){return E?{updatePosition:function(){$()}}:null}),[E,$]),q_.useEffect((function(){if(E){var e=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:166;function r(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];var a=this;clearTimeout(t),t=setTimeout((function(){e.apply(a,i)}),n)}return r.clear=function(){clearTimeout(t)},r}((function(){$()}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}}),[E,$]);var B=D;"auto"!==D||N.muiSupportAuto||(B=void 0);var V=f||(r?Oj(lQ(r)).body:void 0);return q_.createElement(VJ,U_({container:V,open:E,ref:t,BackdropProps:{invisible:!0},className:LF(u.root,d)},_),q_.createElement(N,U_({appear:!0,in:E,onEnter:v,onEntered:b,onExit:S,onExited:w,onExiting:M,timeout:B},I,{onEntering:Aj((function(e,t){x&&x(e,t),$()}),I.onEntering)}),q_.createElement(vJ,U_({elevation:p,ref:H},C,{className:LF(u.paper,C.className)}),c)))})),uQ=Cj({root:{},paper:{position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}},{name:"MuiPopover"})(cQ);function dQ(e){return"large"===e?"20px":"small"===e?"12px":"16px"}function fQ({d:e,size:t,style:n={},viewBox:r="0 0 16 16"}){const i={fontSize:dQ(t),display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",...n};return D_.createElement("i",{style:i},D_.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:r,fill:"currentColor"},D_.createElement("path",{d:e})))}const hQ={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"},pQ={d:"M6,10 L13,3 L15,5 L8,12 L6,14 L1,9 L3,7 L6,10 Z"},mQ={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"},gQ={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"},yQ={N:void 0,H:{path:{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"},tooltip:"Tooltip.dimensions.drilldown"},C:{path:{d:"M1 8a7 7 0 1 1 10 6.326V11h-1v5h5v-1h-3.124A8 8 0 1 0 8 16v-1a7 7 0 0 1-7-7Z"},tooltip:"Tooltip.dimensions.cyclicGroup"}},vQ={single:"N",drillDown:"H",cyclicGroup:"C"};function bQ(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=so.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 xQ(e,t,n,r,i,o){e.getEffectiveProperties().then((a=>{const s=a.qHyperCubeDef[r].findIndex((e=>e.qDef.cId===t)),l=a.qHyperCubeDef.qLayoutExclude.qHyperCubeDef[r].findIndex((e=>e.qDef.cId===n)),c=f(!0,{},a),u=c.qHyperCubeDef[r][s],d=c.qHyperCubeDef.qLayoutExclude.qHyperCubeDef[r][l];d.qAttributeDimensions=u.qAttributeDimensions,u.qAttributeDimensions=[],o||(d.qAttributeExpressions=u.qAttributeExpressions,u.qAttributeExpressions=[]),c.qHyperCubeDef[r][s]=d,c.qHyperCubeDef.qLayoutExclude.qHyperCubeDef[r][l]=u,i&&i({oldItem:u,newItem:d,oldProperties:a,newProperties:c,model:e}),bQ(e,a,c)}))}const SQ=(e,t)=>{const n=[],r=[];return t.forEach((t=>{t.qCalcCondition.qCond.qv&&r.push(e.evaluate(t.qCalcCondition.qCond.qv).then((e=>{"0"===e&&n.push(t.qDef.cId)})))})),Promise.all(r).then((()=>n))};function wQ({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=SQ(o,n).then((e=>Promise.all(n.filter((t=>!e.includes(t.qDef.cId))).map((e=>function(e,t,n){if(e.qLibraryId)return t.getDimension(e.qLibraryId).then((e=>e.getLayout())).catch((()=>null)).then((e=>e?e.qDim.qGrouping===vQ.single&&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 e},changeTo(e,t){xQ(r,e,t,"qDimensions",a)}}}function MQ(e,t,n,r="/qHyperCubeDef"){return{breadcrumbs:e.qGrouping===vQ.drillDown?e.qGroupFallbackTitles.slice(0,e.qGroupPos):[],icon:yQ[e.qGrouping],index:t,locked:!!e.qLocked,text:e.qGrouping===vQ.single?e.qFallbackTitle:e.qGroupFallbackTitles[e.qGroupPos],popoverText:(i=e,i.qGrouping===vQ.single?i.qFallbackTitle||"":i.title||""),drillUp(e){n.drillUp(r,t,e)},id:e.cId};var i}function EQ({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=SQ(t,e).then((n=>Promise.all(e.filter((e=>!n.includes(e.qDef.cId))).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 n},changeTo(e,t){xQ(i,e,t,"qMeasures",o,a)}}}function kQ(e,t){return{breadcrumbs:[],index:t,locked:!1,text:e.qFallbackTitle,popoverText:e.qFallbackTitle,id:e.cId}}const CQ={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"}}},TQ={menuItem:"alternative-menu-item",titleButton:"title-button",activeTitleButton:"active-title-button"},AQ=kj(eQ)((()=>({textAlign:"start","&:focus":{boxShadow:"inset 0 0 0 2px #177FE6 !important"}}))),OQ=kj((({children:e,...t})=>D_.createElement(OJ,FI({size:"small",disableRipple:!0,disableTouchRipple:!0},t),e)))((()=>({"&:focus":{boxShadow:"inset 0 0 0 2px #177FE6 !important"}})));function NQ(e){const t=e=>{if("Tab"===e.key){const t=document.querySelectorAll(`.${TQ.menuItem}`);let n;e.shiftKey?null!=t&&t.length&&t[0]===e.target&&(n=t[t.length-1]):null!=t&&t.length&&t[t.length-1]===e.target&&([n]=t),n&&setTimeout((()=>{n.focus()}),50)}};function n({title:e,selected:n,onClick:r}){const i=_.detectTextDirection(e);return D_.createElement(AQ,{role:"menuitem",button:!0,onClick:r,className:TQ.menuItem,onKeyDown:t},D_.createElement(nQ,{style:{minWidth:32}},D_.createElement(fQ,{d:n?pQ.d:""})),D_.createElement(iQ,{primaryTypographyProps:{dir:i}},e))}function r({alignTo:e,changeTo:t,current:r,dir:i,dock:o,list:a,onClose:s,show:l,instruction:c}){const u=a.map((e=>D_.createElement(n,{key:e.id,title:e.title,onClick:()=>t(e.id)})));return D_.createElement(uQ,FI({anchorEl:e,open:l,onClose:s},CQ[o],{PaperProps:{style:{minWidth:"250px",maxHeight:"300px"}}}),D_.createElement(JJ,{dense:!0,dir:i,"aria-label":c,component:"nav"},D_.createElement(n,{title:r,selected:!0,onClick:s}),u))}n.propTypes={title:P_.string.isRequired,selected:P_.bool,onClick:P_.func.isRequired},n.defaultProps={selected:!1},r.propTypes={alignTo:P_.any,changeTo:P_.func.isRequired,current:P_.string.isRequired,dir:P_.string.isRequired,dock:P_.string.isRequired,list:P_.array,onClose:P_.func.isRequired,show:P_.bool.isRequired,instruction:P_.string.isRequired},r.defaultProps={list:[],alignTo:null};class i extends D_.Component{constructor(e){super(e),this.state={open:!1,inSelection:e.selections&&e.selections.isActive(),hasValidAlternatives:!1},this.openPopover=this.openPopover.bind(this),this.closePopover=this.closePopover.bind(this),this.changeTo=this.changeTo.bind(this),this.alignToRef=D_.createRef()}componentDidMount(){const{popover:e,selections:t,supportConditional:n}=this.props;t&&(this.onSelectionsActivated=()=>this.setState({inSelection:!0}),this.onSelectionsDeactivated=()=>this.setState({inSelection:!1}),t.addListener("activated",this.onSelectionsActivated),t.addListener("deactivated",this.onSelectionsDeactivated),t.addListener("canceled",this.onSelectionsDeactivated)),e&&n&&e.getAlternatives().then((e=>{this.setState({hasValidAlternatives:0!==e.length})}))}componentDidUpdate(e,t){const{popover:n,supportConditional:r}=this.props;n&&r&&n.getAlternatives().then((e=>{t.hasValidAlternatives!==(0!==e.length)&&this.setState({hasValidAlternatives:0!==e.length})}))}componentWillUnmount(){const{selections:e}=this.props;e&&(e.removeListener("activated",this.onSelectionsActivated),e.removeListener("deactivated",this.onSelectionsDeactivated),e.removeListener("canceled",this.onSelectionsDeactivated))}changeTo(e){this.props.popover.changeTo(this.props.titleData.id,e),this.closePopover(e)}openPopover(e){if(!(this.state.closeTime&&Date.now()-this.state.closeTime<20)){if(e.target){const t=e.target.closest(`.${TQ.titleButton}`);t&&t.classList.add(TQ.activeTitleButton)}this.props.popover.getAlternatives().then((e=>{this.setState({open:!0,alternatives:e});document.querySelector(`.${TQ.menuItem}`).focus()}))}}closePopover(e){if(this.setState({open:!1,closeTime:Date.now()}),"string"==typeof e)setTimeout((()=>{const t=document.querySelector(`.${TQ.titleButton}[data-id="${e}"]`);t&&t.focus()}),1e3);else{const e=document.querySelector(`.${TQ.activeTitleButton}`);e&&(e.classList.remove(TQ.activeTitleButton),setTimeout((()=>{e.focus()}),50))}}render(){const{titleData:e,popover:t,translator:n,disabled:i,isDimension:o,padding:a,minWidth:s,hasAlternative:l,supportConditional:c}=this.props,u={flex:"1 1 auto",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",fontWeight:"normal",lineHeight:"normal",...this.props.style},d=e.breadcrumbs.length,f=i||this.state.inSelection,h=e.breadcrumbs.map(((t,n)=>D_.createElement(OQ,{style:{display:"flex",alignItems:"center",color:f&&"rgba(89, 89, 89, 0.8)",pointerEvents:f?"none":"auto",paddingTop:0,paddingBottom:0,height:"100%"},key:n,onClick:()=>f?void 0:e.drillUp(d-n),title:t},D_.createElement("span",{style:u},t),D_.createElement(fQ,FI({},gQ,{size:"small",style:{margin:"0 8px"}}))))),p=c?this.state.hasValidAlternatives:l,m=t&&!this.state.open?this.openPopover:this.closePopover,g=!t||i||this.state.inSelection,y={display:"flex",alignItems:"center",width:"100%",color:g&&"rgba(89, 89, 89, 0.8)",height:"100%",border:!o&&g&&"none",paddingTop:0,paddingBottom:0};this.state.open&&(y.background="rgba(0,0,0,0.08)");a&&(y.padding=a),s&&(y.minWidth=s);const v=_.detectTextDirection(e.text),b=D_.createElement(OQ,{"aria-label":n.get(`Accessibility.${t&&p?"Alternative":"Normal"}.Instructions`,[e.text]),style:y,onClick:g?void 0:m,title:e.text,tabIndex:g?-1:0,onFocus:g?void 0:e=>{e.currentTarget.style.boxShadow="0px 0px 0px 2px #177FE6 inset",e.currentTarget.style.borderRadius="2px"},onBlur:g?void 0:e=>{e.currentTarget.style.boxShadow="none",e.currentTarget.style.borderRadius="0px"},onMouseDown:e=>{e.preventDefault()},className:`${TQ.titleButton} ${e.id}`,"data-id":e.id},e.locked&&D_.createElement(fQ,FI({},hQ,{size:"small",title:n.get("Tooltip.selections.locked")})),D_.createElement("span",{style:u,dir:v},e.text),t&&p&&D_.createElement(fQ,FI({},mQ,{size:"small",style:{margin:"0 8px"}})));return D_.createElement(D_.Fragment,null,e.icon&&D_.createElement(fQ,FI({},e.icon.path,{size:"small",title:n.get(e.icon.tooltip),style:{margin:"0 4px 0 0"}})),h,D_.createElement("div",{ref:this.alignToRef,style:{overflow:"hidden",pointerEvents:p?"auto":"none",height:"100%"}},b),t&&p&&D_.createElement(r,{dock:t.dock,dir:t.dir,current:e.popoverText,alignTo:this.alignToRef.current,show:this.state.open,list:this.state.alternatives,onClose:this.closePopover,changeTo:this.changeTo,instruction:n.get("Accessibility.Popover.Instructions")}))}}function o(e){return{top:"bottom",bottom:"top",left:"right",right:"left"}[e]}function a(e){return!e.isDimension&&M.getValue(e,"hyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures.length")>0}return i.propTypes={disabled:P_.bool.isRequired,padding:P_.string,minWidth:P_.string,titleData:P_.shape({breadcrumbs:P_.arrayOf(P_.string).isRequired,icon:P_.shape({path:P_.string.isRequired,tooltip:P_.string.isRequired}),index:P_.number.isRequired,locked:P_.bool.isRequired,text:P_.string.isRequired,popoverText:P_.string.isRequired,drillUp:P_.func,id:P_.string.isRequired}).isRequired,popover:P_.shape({dir:P_.string.isRequired,dock:P_.string.isRequired,changeTo:P_.func.isRequired,getAlternatives:P_.func.isRequired}),translator:P_.shape({get:P_.func.isRequired}).isRequired,selections:P_.shape({isActive:P_.func,addListener:P_.func,removeListener:P_.func}),style:P_.shape({fontSize:P_.string,color:P_.string,fontFamily:P_.string}).isRequired,isDimension:P_.bool.isRequired,hasAlternative:P_.bool.isRequired,supportConditional:P_.bool.isRequired},i.defaultProps={popover:null,selections:null,padding:"",minWidth:""},{renderer:"react",disableTriggers:!0,preferredSize:function(){const{height:t}=e.measureText({text:"M",fontSize:this.style.fontSize,fontFamily:this.style.fontFamily});return this.settings.settings.isDimension||a(this.settings.settings)?Math.max(28,t):Math.max(20,t)},render(){const{settings:{app:e,disabled:t,explicitItemInfos:n,hyperCube:r,hyperCubeDef:s,isDimension:l,minWidth:c,model:u,onChangeToAlternative:d,padding:f,rtl:h,selections:p,skipAttributeExpressions:m,translator:g,supportConditional:y=!1},layout:{dock:v}}=this.settings,b="top"!==v&&"bottom"!==v||!h?"ltr":"rtl",x=function(e,t){const n={pointerEvents:"auto",display:"flex",justifyContent:"center",alignItems:"center",height:"100%"};return"left"===e?(n.width=`${t.height}px`,n.height=`${t.width}px`,n.transform=`rotate(-90deg) translate(-${t.height}px, 0)`,n.transformOrigin="top left"):"right"===e&&(n.width=`${t.height}px`,n.height=`${t.width}px`,n.transform=`rotate(90deg) translate(0, -${t.width}px)`,n.transformOrigin="top left"),n}(v,this.rect),S=s&&s.qLayoutExclude&&s.qLayoutExclude.qHyperCubeDef,w=S&&S[l?"qDimensions":"qMeasures"]||[],E=n||r[l?"qDimensionInfo":"qMeasureInfo"],k=l?wQ:EQ,C=l?MQ:kQ,T=u&&u.colorSupport&&u.modifiers&&k({altList:w,app:e,dir:h?"rtl":"ltr",dock:o(v),model:u,onChange:d,skipAttributeExpressions:m,translator:g}),A=(O=this.settings.settings).isDimension&&M.getValue(O,"hyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions.length")>0||a(this.settings.settings);var O;const N=E.map(((e,n)=>{const r="number"==typeof e.explicitColumn?e.explicitColumn:n,o=C(e,r,u),a=n===E.length-1;return D_.createElement(D_.Fragment,{key:e.cId},D_.createElement(i,{popover:T,titleData:o,model:u,translator:g,selections:p,disabled:t(),style:this.style,isDimension:l,padding:f,minWidth:c,hasAlternative:A,supportConditional:y}),!a&&D_.createElement("span",{style:{lineHeight:"normal",...this.style}},", "))}));return D_.createElement("div",{style:x,dir:b},N)}}}const qQ=function(){return OP.apply(void 0,arguments)}({palette:{text:{primary:"rgba(89, 89, 89, 0.8)",secondary:"rgba(0, 0, 0, 0.55)",disabled:"rgba(0, 0, 0, 0.3)"},action:{disabled:"rgba(0, 0, 0, 0.3)"}},typography:{fontFamily:'"Source Sans Pro", "Arial", "sans-serif"',button:{textTransform:"initial",fontWeight:400}},shape:{borderRadius:2},shadows:["none","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)"],props:{MuiButtonBase:{disableRipple:!0}}});const DQ=DP({productionPrefix:"qb2f1",disableGlobal:!0,seed:""});function RQ(){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",BK.render(function(e,t){return D_.createElement(qF,{generateClassName:t},D_.createElement(wj,{theme:qQ},e))}(e,DQ),r),!0},itemsAt:()=>[],findShapes:()=>[],clear:()=>(r&&BK.unmountComponentAtNode(r),o),destroy(){r&&r.parentElement&&(BK.unmountComponentAtNode(r),r.parentElement.removeChild(r)),r=null},size:t=>(t&&(i=e(t)),i)};return o}}function IQ(){return function(e){e.renderer("react",RQ()),e.component("data-title",NQ(e.renderer("svg")())),e.component("disclaimer",function(){class e extends D_.Component{render(){const{label:e,spanStyle:t}=this.props;return D_.createElement(D_.Fragment,null,D_.createElement("span",{ref:this.alignToRef,style:t,title:e},e))}}return e.propTypes={label:P_.string.isRequired,spanStyle:P_.shape().isRequired},{renderer:"react",disableTriggers:!0,preferredSize:function(){return 22},render(){const{settings:{label:t,rtl:n},layout:{dock:r},style:i={}}=this.settings,o="top"!==r&&"bottom"!==r||!n?"ltr":"rtl",a=function(e,t,n){const r={pointerEvents:"auto",display:"flex",justifyContent:"center",alignItems:"center",color:"#7b7a78",fontStyle:"italic",fontSize:"13px",fontFamily:e.fontFamily||'"Source Sans Pro", "Arial", "sans-serif"'};switch(t){case"left":r.width=`${n.height}px`,r.transform=`rotate(-90deg) translate(-${n.height}px, 0)`,r.transformOrigin="top left";break;case"right":r.width=`${n.height}px`,r.transform=`rotate(90deg) translate(0, -${n.width}px)`,r.transformOrigin="top left";break;case"center":r.width=`${n.width}px`,r.height=`${n.height}px`,r.color="#595959",r.fontStyle="normal",r.fontSize="1.2em",r.textAlign="center";break;default:r.justifyContent="flex-start",r.alignItems="flex-start"}return r}(i,r,this.rect),s="center"===r?t:`* ${t}`,l="center"!==r?{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}:{};return D_.createElement("div",{style:a,dir:o},D_.createElement(D_.Fragment,null,D_.createElement(e,{label:s,spanStyle:l})))}}}())}}function _Q(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:_Q(i,t,n)},i}function PQ(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),_Q(i,a,l,e.invert)}))}const LQ={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",c=r,u=i,d=t<.5?90:-90;return o&&(s="y",l="x",c=i,u=r,d=t<.5?180:0),a(f({},e,{[s]:n*c,[l]:u-Math.max(e.size/2,Math.min(t*u,u-e.size/2)),startAngle:d}))}};function zQ({i:e,width:t,height:n,resolved:r,keys:i,flipXY:o,calcKey:a="box"}){let s,l=null,c=null;void 0!==r.major.settings.binStart?(l=r.major.items[e].binStart,c=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 u=0;s?s.bandwidth?(u=s.bandwidth(),l-=u/2):u=c-l:u=1;const d=f({},{major:l,majorEnd:c},r.minor.items[e]);i.forEach((t=>{d[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:u,width:d[a].width,minWidthPx:d[a].minWidthPx,maxWidthPx:d[a].maxWidthPx,maxMajorWidth:h}),m=(u-p)/2,g=m+d.major+p/2;return{item:d,boxCenter:g,boxWidth:p,boxPadding:m,rendWidth:t,rendHeight:n}}function FQ({keys:e,data:t,defaultSettings:n,style:r,settings:i,width:o,height:a,resolver:s}){const l=f(!0,{},n||{},r||{}),c={major:"horizontal"===i.orientation?a:o,minor:"horizontal"===i.orientation?o:a},u=i.major;let d;d="object"==typeof u&&"object"==typeof u.ref&&void 0!==u.ref.start&&void 0!==u.ref.end?s.resolve({data:t,defaults:{start:0,end:1},scaled:c,settings:f(!0,{},{binStart:{scale:i.major.scale,ref:i.major.ref.start},binEnd:{scale:i.major.scale,ref:i.major.ref.end}})}):"object"==typeof u&&void 0!==u.binStart&&void 0!==u.binEnd?s.resolve({data:t,defaults:{start:0,end:1},scaled:c,settings:f(!0,{},{binStart:{scale:i.major.scale,ref:"binStart"},binEnd:{scale:i.major.scale,ref:"binEnd"}},i.major)}):s.resolve({data:t,scaled:c,defaults:{major:.5},settings:{major:i.major}});const h=i.minor||{};let p;const m={major:d,minor:s.resolve({data:t,defaults:{start:0,end:1},scaled:c,settings:f(!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:c});return m}const jQ=["oob"];const $Q={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=FQ({keys:jQ,data:i,defaultSettings:{oob:LQ.getDefaultSettings()},style:o,settings:this.settings.settings,width:e,height:t,resolver:a}),{settings:c,items:u}=l,d=function({width:e,height:t,flipXY:n,resolved:r,keys:i,symbol:o,dockValue:a,_calcItemRenderingOpts:s=zQ}){const l=[],{items:c}=r.major;for(let u=0,d=c.length;u<d;u++){const{item:d,boxCenter:f,rendWidth:h,rendHeight:p}=s({i:u,width:e,height:t,resolved:r,keys:i,flipXY:n,calcKey:"oob"}),m=c[u].data,g=[];if(d.oob.show){g.push(LQ.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:g};l.push(e)}}return l}({items:u,settings:c,width:e,height:t,flipXY:r,resolved:l,keys:jQ,symbol:s,dockValue:n});return d}},HQ={size:25,hat:{show:!0,fill:"#999",stroke:"#000",strokeWidth:0,strokeLinejoin:"miter",width:1,maxWidthPx:void 0,minWidthPx:1,minHeightPx:1,alignment:0}},BQ=["hat"];function VQ(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 UQ({item:e,boxWidth:t,boxPadding:n,rendWidth:r,rendHeight:i,flipXY:o}){let a="x",s="y",l=r,c=i,u=e.hat.alignment||0;o&&(a="y",s="x",l=i,c=r,u=1-u);const d=(n+e.major)*l;let h=[{[a]:d,[s]:0+c},{[a]:d+t*u*l,[s]:8},{[a]:d+t*l,[s]:0+c},{[a]:d+t*l,[s]:0+c+10},{[a]:d,[s]:0+c+10}];const p=f({},e.hat,{type:"path",d:VQ(h)});h=[{[a]:d,[s]:0},{[a]:d+t*(1-u)*l,[s]:0+c-8},{[a]:d+t*l,[s]:0},{[a]:d+t*l,[s]:-10},{[a]:d,[s]:-10}];return[p,f({},e.hat,{type:"path",d:VQ(h)})]}const WQ={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=FQ({keys:BQ,data:r,defaultSettings:HQ,style:i,settings:this.settings.settings,width:e,height:t,resolver:o}),{settings:s,items:l}=a,c=function({width:e,height:t,flipXY:n,resolved:r,keys:i,_calcItemRenderingOpts:o=zQ}){const a=[],{items:s}=r.major;for(let l=0,c=s.length;l<c;l++){const{item:c,boxWidth:u,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=[];c.hat.show&&m.push(...UQ({item:c,boxWidth:u,boxPadding:d,rendWidth:f,rendHeight:h,flipXY:n}));const g={type:"container",data:p,collider:{type:"bounds"},children:m};a.push(g)}return a}({items:l,settings:s,width:e,height:t,flipXY:n,resolved:a,keys:BQ});return c}};var YQ={UNCLASSIFIED:"unclassified",EQUAL_EQUAL:"equal-equal",EQUAL_HIGHER:"equal-higher",EQUAL_LOWER:"equal-lower",EQUAL_VOID:"equal-void",HIGHER_EQUAL:"higher-equal",HIGHER_HIGHER_ACUTE:"higher-higher-acute",HIGHER_HIGHER_OBTUSE:"higher-higher-obtuse",HIGHER_LOWER_NEGATIVE:"higher-lower-negative",HIGHER_LOWER_POSITIVE:"higher-lower-positive",HIGHER_VOID:"higher-void",LOWER_EQUAL:"lower-equal",LOWER_HIGHER_NEGATIVE:"lower-higher-negative",LOWER_HIGHER_POSITIVE:"lower-higher-positive",LOWER_LOWER_ACUTE:"lower-lower-acute",LOWER_LOWER_OBTUSE:"lower-lower-obtuse",LOWER_VOID:"lower-void",VOID_EQUAL:"void-equal",VOID_HIGHER:"void-higher",VOID_LOWER:"void-lower",VOID_VOID:"void-void"};function XQ(e,t){return Math.atan2(t.y-e.y,t.x-e.x)*(180/Math.PI)}function GQ(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 KQ({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?YQ.EQUAL_EQUAL:i<o?YQ.EQUAL_HIGHER:YQ.EQUAL_LOWER:i===o?r>i?YQ.HIGHER_EQUAL:YQ.LOWER_EQUAL:r>i?i<o?GQ(e,t,n)>90?YQ.HIGHER_HIGHER_OBTUSE:YQ.HIGHER_HIGHER_ACUTE:XQ(e,t)>XQ(e,n)?YQ.HIGHER_LOWER_POSITIVE:YQ.HIGHER_LOWER_NEGATIVE:i>o?GQ(e,t,n)>90?YQ.LOWER_LOWER_OBTUSE:YQ.LOWER_LOWER_ACUTE:XQ(e,t)>XQ(e,n)?YQ.LOWER_HIGHER_POSITIVE:YQ.LOWER_HIGHER_NEGATIVE:r===i?YQ.EQUAL_VOID:r>i?YQ.HIGHER_VOID:YQ.LOWER_VOID:i===o?YQ.VOID_EQUAL:i<o?YQ.VOID_HIGHER:YQ.VOID_LOWER:YQ.VOID_VOID}function JQ({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 QQ={X:1,Y:0};function ZQ({node:e,line:t,groupIndex:n,extract:r,style:i,measureText:o,size:a,horizontal:s,rtl:l,meta:c,showLabel:u}){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),g={x:h.x+h.width/2,y:h.y+h.height/2,width:f.width+2*QQ.X,height:f.height+2*QQ.Y},y=`${g.x}-${g.y}`,v=!s&&!l,b=s?a.height:a.width,x=(s?g.y:g.x)/b,S=(v?1-x:x)<=(b<=200?.25:.1),w={key:y,node:e,line:t,group:n,value:m,labelMeasurements:f,bounds:g,inside:JQ({bounds:h,size:a}),border:p?p/2:0,classification:YQ.UNCLASSIFIED,setClassification(e){w.classification=e},preferences:[],setPreferences(e){w.preferences.push(...e)},placement:void 0,setPlacement(e){w.placement=e},duplicate:!1,setDuplicate(){w.duplicate=!0},extreme:c.getExtreme(y),elite:S,show:u(e)};return w}function eZ({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}),c=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,c)=>{const u=e.map((e=>({line:e.line,item:ZQ({node:e.node,line:e.line,groupIndex:c,extract:t,style:n,measureText:r,size:i,horizontal:o,rtl:a,meta:l,showLabel:s})}))).filter((e=>e.item));return u.reduce(((e,t)=>(e[t.line]=t.item,e)),{})}));return c.filter((e=>Object.keys(e).length))}var tZ={TOP:"top",TOP_RIGHT:"top-right",RIGHT:"right",BOTTOM_RIGHT:"bottom-right",BOTTOM:"bottom",BOTTOM_LEFT:"bottom-left",LEFT:"left",TOP_LEFT:"top-left"},nZ={[YQ.EQUAL_EQUAL]:[tZ.TOP,tZ.BOTTOM],[YQ.EQUAL_HIGHER]:[tZ.BOTTOM,tZ.BOTTOM_RIGHT],[YQ.EQUAL_LOWER]:[tZ.TOP,tZ.TOP_RIGHT],[YQ.EQUAL_VOID]:[tZ.TOP,tZ.BOTTOM],[YQ.HIGHER_EQUAL]:[tZ.LEFT,tZ.BOTTOM_LEFT,tZ.TOP,tZ.TOP_RIGHT],[YQ.HIGHER_HIGHER_ACUTE]:[tZ.BOTTOM,tZ.BOTTOM_LEFT,tZ.LEFT,tZ.TOP_RIGHT],[YQ.HIGHER_HIGHER_OBTUSE]:[tZ.BOTTOM,tZ.TOP],[YQ.HIGHER_LOWER_NEGATIVE]:[tZ.TOP,tZ.TOP_RIGHT,tZ.RIGHT],[YQ.HIGHER_LOWER_POSITIVE]:[tZ.BOTTOM,tZ.BOTTOM_LEFT,tZ.LEFT],[YQ.HIGHER_VOID]:[tZ.TOP],[YQ.LOWER_EQUAL]:[tZ.TOP],[YQ.LOWER_HIGHER_NEGATIVE]:[tZ.TOP,tZ.TOP_LEFT],[YQ.LOWER_HIGHER_POSITIVE]:[tZ.BOTTOM_RIGHT],[YQ.LOWER_LOWER_ACUTE]:[tZ.TOP,tZ.TOP_LEFT,tZ.LEFT,tZ.TOP_RIGHT,tZ.RIGHT],[YQ.LOWER_LOWER_OBTUSE]:[tZ.TOP,tZ.BOTTOM],[YQ.LOWER_VOID]:[tZ.TOP],[YQ.VOID_EQUAL]:[tZ.TOP],[YQ.VOID_HIGHER]:[tZ.TOP,tZ.BOTTOM],[YQ.VOID_LOWER]:[tZ.TOP,tZ.BOTTOM,tZ.LEFT],[YQ.VOID_VOID]:[tZ.TOP]};function rZ({nodes:e,extract:t,style:n,measureText:r,size:i,horizontal:o,rtl:a,showLabel:s}){const l=eZ({nodes:e,extract:t,style:n,measureText:r,size:i,horizontal:o,rtl:a,showLabel:s}),c=[...l.reduce(((e,t)=>(e.push(...Object.keys(t).map((e=>t[e]))),e)),[])],[u]=c,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,c=s.y1-s.y2;Math.sqrt(l*l+c*c)>t&&o.push(s)}return o}({groups:l,threshold:u.node.localBounds.height}),f={getItems:()=>c,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=KQ({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(nZ[e.classification]))),f}function iZ({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 oZ({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 aZ({candidate:e,lines:t,rects:n}){const r=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})));return!!r||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 oZ({line1:e,line2:{x1:n.x,y1:n.y,x2:r.x,y2:r.y}})||oZ({line1:e,line2:a})||oZ({line1:e,line2:s})||oZ({line1:e,line2:l})}({line:t,rect:e})))}const sZ={x:0,width:0,y:0,height:0};const lZ=({item:e})=>({x:e.bounds.x-e.bounds.width/2,y:e.bounds.y-e.bounds.height-e.node.localBounds.height/2-e.border}),cZ=({item:e})=>({x:e.bounds.x,y:e.bounds.y-e.bounds.height-e.node.localBounds.height/2-e.border}),uZ=({item:e})=>({x:e.bounds.x+e.node.localBounds.width/2+e.border,y:e.bounds.y-e.bounds.height/2}),dZ=({item:e})=>({x:e.bounds.x,y:e.bounds.y+e.node.localBounds.height/2+e.border}),fZ=({item:e})=>({x:e.bounds.x-e.bounds.width/2,y:e.bounds.y+e.node.localBounds.height/2+e.border}),hZ=({item:e})=>({x:e.bounds.x-e.bounds.width,y:e.bounds.y+e.node.localBounds.height/2+e.border}),pZ=({item:e})=>({x:e.bounds.x-e.bounds.width-e.node.localBounds.width/2-e.border,y:e.bounds.y-e.bounds.height/2}),mZ=({item:e})=>({x:e.bounds.x-e.bounds.width,y:e.bounds.y-e.bounds.height-e.node.localBounds.height/2-e.border});var gZ={X:2.5,Y:4};const yZ=[tZ.TOP,tZ.TOP_LEFT,tZ.TOP_RIGHT],vZ=[tZ.BOTTOM,tZ.BOTTOM_LEFT,tZ.BOTTOM_RIGHT];function bZ({position:e}){const t={x:gZ.X,width:-2*gZ.X,y:0,height:0},n=yZ.indexOf(e)>-1,r=vZ.indexOf(e)>-1;return n&&(t.y=gZ.Y,t.height=-gZ.Y),r&&(t.height=-gZ.Y),t}function xZ({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 SZ({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}const wZ=15;function MZ({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+=wZ){const a=SZ({coordinates:xZ({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-=wZ){const a=SZ({coordinates:xZ({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 EZ=void 0;function kZ({item:e,validator:t,force:n=!1}){const r=[...e.preferences,...Object.keys(tZ).map((e=>tZ[e])).filter((t=>-1===e.preferences.indexOf(t)))],i={[tZ.TOP]:lZ,[tZ.TOP_RIGHT]:cZ,[tZ.RIGHT]:uZ,[tZ.BOTTOM_RIGHT]:dZ,[tZ.BOTTOM]:fZ,[tZ.BOTTOM_LEFT]:hZ,[tZ.LEFT]:pZ,[tZ.TOP_LEFT]:mZ},o=[];for(let a=0;a<r.length;a++){const s=r[a],l=i[s]({item:e}),c=bZ({position:s}),u=t({item:e,placement:l,adjustment:c,ignoreLines:n});if(n&&u.inside&&o.push(l),u.valid)return l}const a=()=>MZ({item:e,validator:t,force:n});if(n){const e=a();return e||(o[0]||EZ)}return(e.extreme||e.elite)&&a()||EZ}function CZ({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 c=function({size:e,lines:t,placements:n}){return function({item:r,placement:i,adjustment:o=sZ,ignoreLines:a=!1}){const s={inside:iZ({item:r,placement:i,size:e}),collides:!0,valid:!1};return s.inside?(s.collides=aZ({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}),u=kZ({item:e,validator:c});u?(u.height=e.bounds.height,u.width=e.bounds.width,o.push(u),e.setPlacement(u)):n&&a.push({item:e,validator:c})})),a.forEach((e=>{const{item:t,validator:n}=e,r=kZ({item:t,validator:n,force:!0});r&&(r.height=t.bounds.height,r.width=t.bounds.width,o.push(r),t.setPlacement(r))}))}var TZ={require:["chart","renderer"],defaultSettings:{settings:{orientation:"horizontal",rtl:!1,connect:!1,all:!1,label:()=>{},showLabel:()=>!0,pointValue:()=>{},majorValue:()=>{},target:{point:"point-component",allPoints:[]},lineIndex:"line",insideStrategy:"edge",labelSpace:{use:()=>!1,size:10}},style:{fontFamily:'"Source Sans Pro", "Arial", "sans-serif"',fontSize:"12px",fill:"#333"}},preferredSize(){const e={edgeBleed:{top:0,right:0,left:0}},{orientation:t,rtl:n,labelSpace:r}=this.settings.settings,{use:i,size:o}=r;if(i()){const r="horizontal"===t;e.edgeBleed.top=r?o:0,e.edgeBleed[n?"left":"right"]=r?0:o}return e},render(){const{settings:e}=this.settings,{target:t,enabled:n}=e;if(!this.chart.component(t.point))return[];if("function"==typeof n&&!n())return[];const{allPoints:r}=t,i=r.length?e=>r.includes(e.key):e=>e.key===t.point,o=this.chart.findShapes("circle").filter(i);if(!o.length)return[];const a="horizontal"===e.orientation,s=a?"x":"y";o.sort(((e,t)=>e.localBounds[s]-t.localBounds[s]));const l={label:e.label,pointValue:e.pointValue,majorValue:e.majorValue,lineIndex:e.lineIndex},{height:c,width:u,edgeBleed:d}=this.rect,f={height:c,width:u,edgeBleed:d,insideStrategy:e.insideStrategy},{style:h}=this,p=rZ({nodes:o,extract:l,style:h,measureText:this.renderer.measureText,size:f,horizontal:a,rtl:e.rtl,showLabel:e.showLabel});return function({model:e}){e.getItems().sort(((e,t)=>e.extreme===t.extreme?0:e.extreme&&!t.extreme?-1:1))}({model:p}),CZ({model:p,size:f,all:e.all}),p.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:h.fontSize,fontFamily:h.fontFamily,fill:h.fill,text:l.label(e.node.data),data:e.node.data.value,baseline:"central",anchor:"middle"})))}},AZ={defaultSettings:{settings:{size:10}},preferredSize(){return this.settings.settings.size},render:()=>[]};var OZ={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,c=this.settings.settings.primaryExtremum(),u=this.settings.settings.secondaryExtremum(),d=s.length&&void 0!==c,f=l.length&&void 0!==u;if(!d&&!f)return[];const h=s.map((e=>e.ref)),p=l.map((e=>e.ref)),m=e.filter((e=>h.includes(e.end.source.field))),g=e.filter((e=>p.includes(e.end.source.field))),y=function({type:e,primaryExtremum:t,secondaryExtremum:n,primaryItems:r=[],secondaryItems:i=[],primarySeries:o=[],secondarySeries:a=[]}){const s=[];[...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}))}));const 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)),[])});return l}({type:t,primaryExtremum:c,secondaryExtremum:u,primaryItems:m,secondaryItems:g,primarySeries:s,secondarySeries:l});if(!y.length)return[];const v="horizontal"===n,b=this.rect[v?"width":"height"],x=this.resolver.resolve({data:{items:y},settings:{major:a},scaled:{major:b}}),S=("max"===t?90:-90)-(v?0:90)-(!v&&r?180:0),w=o/2*i,{fill:M}=this.settings.style,E=x.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:S,x:v?b*e.major:w,y:v?w:b*e.major,data:e.data})));return E}};function NZ({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 qZ({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))],i=e.findShapes("path").filter((e=>r.some((t=>t===e.key))));return i.reduce(((e,n)=>{const r=t.primary.some((e=>e.key===n.key))?e.primary:e.secondary;return r.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 DZ({brush:e}){const t=e.brush.values();return function({value:e}){return-1!==t.indexOf(e)}}function RZ({brush:e,chart:t}){const n=e.brush.ranges();if(!n.length)return!1;const r=t&&t.scale(Ld.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 IZ({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:c,legendTap:u}=t,d=0===s.id.indexOf("qHyperCube/qMeasureInfo/")?"qHyperCube/qMeasureInfo/X":s.id;let f=[c?e=>e.color.value:r[d]].filter(Boolean);if(i&&l&&f.push((e=>e.color.value)),!i&&u&&(f=[e=>e.color.value]),!f.length)return[];const h=function({brush:e,chart:t}){return("value"===e.type?DZ:RZ)({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 _Z({chart:e,selected:t,connection:n,gradient:r,fallback:i}){const o=e.scale(Ld.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),c=l-s,u=0===c?1:c,d=o.domain().map((e=>({color:o(Math.min(l,Math.max(s,e)))||i,offset:Math.min(1,Math.max(0,(e-s)/u))}))),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 PZ({chart:e,selected:t,connection:n,gradient:r,fallback:i}){const o=e.scale(Ld.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,c=0===l?1:l,u=o.domain(),d=[];for(let e=0;e<u.length-1;e++){const t=u[e],n=o(t)||i;d.push({color:n,offset:Math.min(1,Math.max(0,(t-s)/c))});const r=u[e+1];d.push({color:n,offset:Math.min(1,Math.max(0,(r-s)/c))})}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 LZ({property:e,chart:t,connection:n,attrs:r,colorSettings:i,colorByData:o,selected:a,hasMultipleMeasures:s,groupedByMeasure:l,itemsPerGroup:c,orientation:u,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:c}){const u=e.scale(Ld.SCALE.MAJOR),d=e.scale(Ld.SCALE.COLOR),f=s?e=>u([e,0])+u.bandwidth()*l/2:e=>u(e),h=t.filter((e=>-1!==n.indexOf(e.index))),p=("vertical"===o&&c?h.reverse():h).map((e=>e.item)),m=p.map((e=>f(e.major.value))),g=Math.min(...m),y=Math.max(...m)-g,v=0===y?1:y,b=m.map(((e,t)=>0===t?0:t===m.length-1?1:(e-g)/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:u,isColorCode:"color"===h,groupedByMeasure:l,itemsPerGroup:c,rtl:d});return("continuous"===h?_Z:PZ)({chart:t,selected:a,connection:n,gradient:f,fallback:p})}function zZ({chart:e,pathModel:t,colorSettings:n,colorByData:r,hasMultipleMeasures:i,groupedByMeasure:o,itemsPerGroup:a,orientation:s,lineKey:l,primary:c,selected:u,connections:d,rtl:f,count:h}){const p=t.getLine(l,c),{attrs:m}=p,g=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:c,attrs:u,rtl:d,count:f}){const h=l.map(((e,t)=>{const n=c[e];return 0!==t||"M"===n.letter?n.raw:`M${n.x},${n.y}`})).join("");return{path:h,attrs:u,stroke:LZ({property:"stroke",chart:e,connection:l,attrs:u,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:u,connection:t,commands:g,attrs:m,rtl:f,count:h})))}function FZ({chart:e,pathModel:t,seriesInfo:n,brush:r,selectionInfo:i,items:o,selectionValues:a,colorSettings:s,colorByData:l,hasMultipleMeasures:c,groupedByMeasure:u,itemsPerGroup:d,orientation:f,rtl:h}){const p=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}),m=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:p,seriesInfo:n}),{lines:g}=m.reduce(((n,o)=>{const p=IZ({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(...zZ({chart:e,pathModel:t,colorSettings:s(o.measureIx),colorByData:l(o.measureIx),hasMultipleMeasures:c,groupedByMeasure:u,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 g.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 jZ={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:qZ({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=FZ({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=qZ({chart:this.chart,seriesInfo:this.settings.settings.seriesInfo}),this.state.selectionInfo=this.settings.settings.getSelectionInfo();return FZ({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 $Z=()=>{const e=XD();return e.use(_I),e.use(function(e){if("function"!=typeof e.interaction)return t=>{t.interaction("hammer",zI(e))};e.interaction("hammer",zI(Hammer))}(vy)),e.use(PQ),e.use(IQ()),e.component("scrollbar",Yf),e.component("point-label",TZ),e.component("label-space",AZ),e.component("time-axis",Yg.picassoComponents.timeAxis),e.component("axis-overlay",Yg.picassoComponents.axisOverlay),e.component("reference-line-labels",Zo),e.component("box-sliced-hat",WQ),e.component("box-out-of-bounds",$Q),e.component("data-out-of-bounds-marker",OZ),e.component("scroll-hint",eo),e.component("brush-highlighter",jZ),e.scale("time",Yg.picassoScales.time),e.symbol("line-point",NZ),e};const HZ={line:"bar",circle:"circle",diamond:"diamond",triangle:"triangle",rect:"square"},BZ=e=>void 0===e.marker?HZ.circle:HZ[e.marker],VZ=e=>void 0===e.markerFill||e.markerFill;function UZ({series:e,layoutService:t}){switch(em(e)){case zd.TYPE.MARKER:return(e=>({marker:BZ(e),fill:VZ(e)}))(e);case zd.TYPE.LINE:return(e=>{const t=e.getLayoutValue("nullMode","gap");return{showAsGaps:"gap"===t,showAsConnections:"connect"===t,showAsZeros:"zero"===t}})(t);case zd.TYPE.BAR:return{showAsZeros:!0};default:return{}}}function WZ(e=zd.NOPE_SERIES,t){return t?e.axis===zd.AXIS.PRIMARY:e.axis===zd.AXIS.PRIMARY||em(e)===zd.TYPE.BAR}var YZ={exports:{}};var XZ={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||9007199254740991,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2};const GZ="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};var KZ=GZ;!function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:i}=XZ,o=KZ,a=(t=e.exports={}).re=[],s=t.safeRe=[],l=t.src=[],c=t.t={};let u=0;const d="[a-zA-Z0-9-]",f=[["\\s",1],["\\d",i],[d,r]],h=(e,t,n)=>{const r=(e=>{for(const[t,n]of f)e=e.split(`${t}*`).join(`${t}{0,${n}}`).split(`${t}+`).join(`${t}{1,${n}}`);return e})(t),i=u++;o(e,i,t),c[e]=i,l[i]=t,a[i]=new RegExp(t,n?"g":void 0),s[i]=new RegExp(r,n?"g":void 0)};h("NUMERICIDENTIFIER","0|[1-9]\\d*"),h("NUMERICIDENTIFIERLOOSE","\\d+"),h("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${d}*`),h("MAINVERSION",`(${l[c.NUMERICIDENTIFIER]})\\.(${l[c.NUMERICIDENTIFIER]})\\.(${l[c.NUMERICIDENTIFIER]})`),h("MAINVERSIONLOOSE",`(${l[c.NUMERICIDENTIFIERLOOSE]})\\.(${l[c.NUMERICIDENTIFIERLOOSE]})\\.(${l[c.NUMERICIDENTIFIERLOOSE]})`),h("PRERELEASEIDENTIFIER",`(?:${l[c.NUMERICIDENTIFIER]}|${l[c.NONNUMERICIDENTIFIER]})`),h("PRERELEASEIDENTIFIERLOOSE",`(?:${l[c.NUMERICIDENTIFIERLOOSE]}|${l[c.NONNUMERICIDENTIFIER]})`),h("PRERELEASE",`(?:-(${l[c.PRERELEASEIDENTIFIER]}(?:\\.${l[c.PRERELEASEIDENTIFIER]})*))`),h("PRERELEASELOOSE",`(?:-?(${l[c.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${l[c.PRERELEASEIDENTIFIERLOOSE]})*))`),h("BUILDIDENTIFIER",`${d}+`),h("BUILD",`(?:\\+(${l[c.BUILDIDENTIFIER]}(?:\\.${l[c.BUILDIDENTIFIER]})*))`),h("FULLPLAIN",`v?${l[c.MAINVERSION]}${l[c.PRERELEASE]}?${l[c.BUILD]}?`),h("FULL",`^${l[c.FULLPLAIN]}$`),h("LOOSEPLAIN",`[v=\\s]*${l[c.MAINVERSIONLOOSE]}${l[c.PRERELEASELOOSE]}?${l[c.BUILD]}?`),h("LOOSE",`^${l[c.LOOSEPLAIN]}$`),h("GTLT","((?:<|>)?=?)"),h("XRANGEIDENTIFIERLOOSE",`${l[c.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),h("XRANGEIDENTIFIER",`${l[c.NUMERICIDENTIFIER]}|x|X|\\*`),h("XRANGEPLAIN",`[v=\\s]*(${l[c.XRANGEIDENTIFIER]})(?:\\.(${l[c.XRANGEIDENTIFIER]})(?:\\.(${l[c.XRANGEIDENTIFIER]})(?:${l[c.PRERELEASE]})?${l[c.BUILD]}?)?)?`),h("XRANGEPLAINLOOSE",`[v=\\s]*(${l[c.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[c.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[c.XRANGEIDENTIFIERLOOSE]})(?:${l[c.PRERELEASELOOSE]})?${l[c.BUILD]}?)?)?`),h("XRANGE",`^${l[c.GTLT]}\\s*${l[c.XRANGEPLAIN]}$`),h("XRANGELOOSE",`^${l[c.GTLT]}\\s*${l[c.XRANGEPLAINLOOSE]}$`),h("COERCE",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?(?:$|[^\\d])`),h("COERCERTL",l[c.COERCE],!0),h("LONETILDE","(?:~>?)"),h("TILDETRIM",`(\\s*)${l[c.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",h("TILDE",`^${l[c.LONETILDE]}${l[c.XRANGEPLAIN]}$`),h("TILDELOOSE",`^${l[c.LONETILDE]}${l[c.XRANGEPLAINLOOSE]}$`),h("LONECARET","(?:\\^)"),h("CARETTRIM",`(\\s*)${l[c.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",h("CARET",`^${l[c.LONECARET]}${l[c.XRANGEPLAIN]}$`),h("CARETLOOSE",`^${l[c.LONECARET]}${l[c.XRANGEPLAINLOOSE]}$`),h("COMPARATORLOOSE",`^${l[c.GTLT]}\\s*(${l[c.LOOSEPLAIN]})$|^$`),h("COMPARATOR",`^${l[c.GTLT]}\\s*(${l[c.FULLPLAIN]})$|^$`),h("COMPARATORTRIM",`(\\s*)${l[c.GTLT]}\\s*(${l[c.LOOSEPLAIN]}|${l[c.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",h("HYPHENRANGE",`^\\s*(${l[c.XRANGEPLAIN]})\\s+-\\s+(${l[c.XRANGEPLAIN]})\\s*$`),h("HYPHENRANGELOOSE",`^\\s*(${l[c.XRANGEPLAINLOOSE]})\\s+-\\s+(${l[c.XRANGEPLAINLOOSE]})\\s*$`),h("STAR","(<|>)?=?\\s*\\*"),h("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),h("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}(YZ,YZ.exports);var JZ=YZ.exports;const QZ=Object.freeze({loose:!0}),ZZ=Object.freeze({});var e0=e=>e?"object"!=typeof e?QZ:e:ZZ;const t0=/^[0-9]+$/,n0=(e,t)=>{const n=t0.test(e),r=t0.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e<t?-1:1};var r0={compareIdentifiers:n0,rcompareIdentifiers:(e,t)=>n0(t,e)};const i0=KZ,{MAX_LENGTH:o0,MAX_SAFE_INTEGER:a0}=XZ,{safeRe:s0,t:l0}=JZ,c0=e0,{compareIdentifiers:u0}=r0;var d0=class e{constructor(t,n){if(n=c0(n),t instanceof e){if(t.loose===!!n.loose&&t.includePrerelease===!!n.includePrerelease)return t;t=t.version}else if("string"!=typeof t)throw new TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>o0)throw new TypeError(`version is longer than ${o0} characters`);i0("SemVer",t,n),this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease;const r=t.trim().match(n.loose?s0[l0.LOOSE]:s0[l0.FULL]);if(!r)throw new TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>a0||this.major<0)throw new TypeError("Invalid major version");if(this.minor>a0||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>a0||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t<a0)return t}return e})):this.prerelease=[],this.build=r[5]?r[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(t){if(i0("SemVer.compare",this.version,this.options,t),!(t instanceof e)){if("string"==typeof t&&t===this.version)return 0;t=new e(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof e||(t=new e(t,this.options)),u0(this.major,t.major)||u0(this.minor,t.minor)||u0(this.patch,t.patch)}comparePre(t){if(t instanceof e||(t=new e(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let n=0;do{const e=this.prerelease[n],r=t.prerelease[n];if(i0("prerelease compare",n,e,r),void 0===e&&void 0===r)return 0;if(void 0===r)return 1;if(void 0===e)return-1;if(e!==r)return u0(e,r)}while(++n)}compareBuild(t){t instanceof e||(t=new e(t,this.options));let n=0;do{const e=this.build[n],r=t.build[n];if(i0("prerelease compare",n,e,r),void 0===e&&void 0===r)return 0;if(void 0===r)return 1;if(void 0===e)return-1;if(e!==r)return u0(e,r)}while(++n)}inc(e,t,n){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,n),this.inc("pre",t,n);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t,n),this.inc("pre",t,n);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":{const e=Number(n)?1:0;if(!t&&!1===n)throw new Error("invalid increment argument: identifier is empty");if(0===this.prerelease.length)this.prerelease=[e];else{let r=this.prerelease.length;for(;--r>=0;)"number"==typeof this.prerelease[r]&&(this.prerelease[r]++,r=-2);if(-1===r){if(t===this.prerelease.join(".")&&!1===n)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(e)}}if(t){let r=[t,e];!1===n&&(r=[t]),0===u0(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=r):this.prerelease=r}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};const f0=d0;var h0=(e,t,n=!1)=>{if(e instanceof f0)return e;try{return new f0(e,t)}catch(e){if(!n)return null;throw e}};const p0=h0;var m0=(e,t)=>{const n=p0(e,t);return n?n.version:null};const g0=h0;var y0=(e,t)=>{const n=g0(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null};const v0=d0;var b0=(e,t,n,r,i)=>{"string"==typeof n&&(i=r,r=n,n=void 0);try{return new v0(e instanceof v0?e.version:e,n).inc(t,r,i).version}catch(e){return null}};const x0=h0;var S0=(e,t)=>{const n=x0(e,null,!0),r=x0(t,null,!0),i=n.compare(r);if(0===i)return null;const o=i>0,a=o?n:r,s=o?r:n,l=!!a.prerelease.length;if(!!s.prerelease.length&&!l)return s.patch||s.minor?a.patch?"patch":a.minor?"minor":"major":"major";const c=l?"pre":"";return n.major!==r.major?c+"major":n.minor!==r.minor?c+"minor":n.patch!==r.patch?c+"patch":"prerelease"};const w0=d0;var M0=(e,t)=>new w0(e,t).major;const E0=d0;var k0=(e,t)=>new E0(e,t).minor;const C0=d0;var T0=(e,t)=>new C0(e,t).patch;const A0=h0;var O0=(e,t)=>{const n=A0(e,t);return n&&n.prerelease.length?n.prerelease:null};const N0=d0;var q0=(e,t,n)=>new N0(e,n).compare(new N0(t,n));const D0=q0;var R0=(e,t,n)=>D0(t,e,n);const I0=q0;var _0=(e,t)=>I0(e,t,!0);const P0=d0;var L0=(e,t,n)=>{const r=new P0(e,n),i=new P0(t,n);return r.compare(i)||r.compareBuild(i)};const z0=L0;var F0=(e,t)=>e.sort(((e,n)=>z0(e,n,t)));const j0=L0;var $0=(e,t)=>e.sort(((e,n)=>j0(n,e,t)));const H0=q0;var B0=(e,t,n)=>H0(e,t,n)>0;const V0=q0;var U0=(e,t,n)=>V0(e,t,n)<0;const W0=q0;var Y0=(e,t,n)=>0===W0(e,t,n);const X0=q0;var G0=(e,t,n)=>0!==X0(e,t,n);const K0=q0;var J0=(e,t,n)=>K0(e,t,n)>=0;const Q0=q0;var Z0=(e,t,n)=>Q0(e,t,n)<=0;const e1=Y0,t1=G0,n1=B0,r1=J0,i1=U0,o1=Z0;var a1=(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 e1(e,n,r);case"!=":return t1(e,n,r);case">":return n1(e,n,r);case">=":return r1(e,n,r);case"<":return i1(e,n,r);case"<=":return o1(e,n,r);default:throw new TypeError(`Invalid operator: ${t}`)}};const s1=d0,l1=h0,{safeRe:c1,t:u1}=JZ;var d1,f1,h1,p1,m1,g1,y1,v1,b1,x1,S1=(e,t)=>{if(e instanceof s1)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=c1[u1.COERCERTL].exec(e))&&(!n||n.index+n[0].length!==e.length);)n&&t.index+t[0].length===n.index+n[0].length||(n=t),c1[u1.COERCERTL].lastIndex=t.index+t[1].length+t[2].length;c1[u1.COERCERTL].lastIndex=-1}else n=e.match(c1[u1.COERCE]);return null===n?null:l1(`${n[2]}.${n[3]||"0"}.${n[4]||"0"}`,t)};function w1(){if(p1)return h1;function e(t){var n=this;if(n instanceof e||(n=new e),n.tail=null,n.head=null,n.length=0,t&&"function"==typeof t.forEach)t.forEach((function(e){n.push(e)}));else if(arguments.length>0)for(var r=0,i=arguments.length;r<i;r++)n.push(arguments[r]);return n}function t(e,t,n){var r=t===e.head?new i(n,null,t,e):new i(n,t,t.next,e);return null===r.next&&(e.tail=r),null===r.prev&&(e.head=r),e.length++,r}function n(e,t){e.tail=new i(t,e.tail,null,e),e.head||(e.head=e.tail),e.length++}function r(e,t){e.head=new i(t,null,e.head,e),e.tail||(e.tail=e.head),e.length++}function i(e,t,n,r){if(!(this instanceof i))return new i(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}p1=1,h1=e,e.Node=i,e.create=e,e.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},e.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++}},e.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++}},e.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++)n(this,arguments[e]);return this.length},e.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++)r(this,arguments[e]);return this.length},e.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}},e.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}},e.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},e.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},e.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},e.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},e.prototype.map=function(t,n){n=n||this;for(var r=new e,i=this.head;null!==i;)r.push(t.call(n,i.value,this)),i=i.next;return r},e.prototype.mapReverse=function(t,n){n=n||this;for(var r=new e,i=this.tail;null!==i;)r.push(t.call(n,i.value,this)),i=i.prev;return r},e.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},e.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},e.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},e.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},e.prototype.slice=function(t,n){(n=n||this.length)<0&&(n+=this.length),(t=t||0)<0&&(t+=this.length);var r=new e;if(n<t||n<0)return r;t<0&&(t=0),n>this.length&&(n=this.length);for(var i=0,o=this.head;null!==o&&i<t;i++)o=o.next;for(;null!==o&&i<n;i++,o=o.next)r.push(o.value);return r},e.prototype.sliceReverse=function(t,n){(n=n||this.length)<0&&(n+=this.length),(t=t||0)<0&&(t+=this.length);var r=new e;if(n<t||n<0)return r;t<0&&(t=0),n>this.length&&(n=this.length);for(var i=this.length,o=this.tail;null!==o&&i>n;i--)o=o.prev;for(;null!==o&&i>t;i--,o=o.prev)r.push(o.value);return r},e.prototype.splice=function(e,n,...r){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var i=0,o=this.head;null!==o&&i<e;i++)o=o.next;var a=[];for(i=0;o&&i<n;i++)a.push(o.value),o=this.removeNode(o);null===o&&(o=this.tail),o!==this.head&&o!==this.tail&&(o=o.prev);for(i=0;i<r.length;i++)o=t(this,o,r[i]);return a},e.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{(f1?d1:(f1=1,d1=function(e){e.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}))(e)}catch(e){}return h1}function M1(){if(v1)return y1;v1=1;class e{constructor(t,n){if(n=r(n),t instanceof e)return t.loose===!!n.loose&&t.includePrerelease===!!n.includePrerelease?t:new e(t.raw,n);if(t instanceof i)return this.raw=t.value,this.set=[[t]],this.format(),this;if(this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease,this.raw=t.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map((e=>this.parseRange(e.trim()))).filter((e=>e.length)),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const e=this.set[0];if(this.set=this.set.filter((e=>!p(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&&m(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){const t=((this.options.includePrerelease&&f)|(this.options.loose&&h))+":"+e,r=n.get(t);if(r)return r;const a=this.options.loose,m=a?s[l.HYPHENRANGELOOSE]:s[l.HYPHENRANGE];e=e.replace(m,T(this.options.includePrerelease)),o("hyphen replace",e),e=e.replace(s[l.COMPARATORTRIM],c),o("comparator trim",e),e=e.replace(s[l.TILDETRIM],u),o("tilde trim",e),e=e.replace(s[l.CARETTRIM],d),o("caret trim",e);let g=e.split(" ").map((e=>y(e,this.options))).join(" ").split(/\s+/).map((e=>C(e,this.options)));a&&(g=g.filter((e=>(o("loose invalid filter",e,this.options),!!e.match(s[l.COMPARATORLOOSE]))))),o("range list",g);const v=new Map,b=g.map((e=>new i(e,this.options)));for(const e of b){if(p(e))return[e];v.set(e.value,e)}v.size>1&&v.has("")&&v.delete("");const x=[...v.values()];return n.set(t,x),x}intersects(t,n){if(!(t instanceof e))throw new TypeError("a Range is required");return this.set.some((e=>g(e,n)&&t.set.some((t=>g(t,n)&&e.every((e=>t.every((t=>e.intersects(t,n)))))))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new a(e,this.options)}catch(e){return!1}for(let t=0;t<this.set.length;t++)if(A(this.set[t],e,this.options))return!0;return!1}}y1=e;const t=function(){if(g1)return m1;g1=1;const e=w1(),t=Symbol("max"),n=Symbol("length"),r=Symbol("lengthCalculator"),i=Symbol("allowStale"),o=Symbol("maxAge"),a=Symbol("dispose"),s=Symbol("noDisposeOnSet"),l=Symbol("lruList"),c=Symbol("cache"),u=Symbol("updateAgeOnGet"),d=()=>1,f=(e,t,n)=>{const r=e[c].get(t);if(r){const t=r.value;if(h(e,t)){if(m(e,r),!e[i])return}else n&&(e[u]&&(r.value.now=Date.now()),e[l].unshiftNode(r));return t.value}},h=(e,t)=>{if(!t||!t.maxAge&&!e[o])return!1;const n=Date.now()-t.now;return t.maxAge?n>t.maxAge:e[o]&&n>e[o]},p=e=>{if(e[n]>e[t])for(let r=e[l].tail;e[n]>e[t]&&null!==r;){const t=r.prev;m(e,r),r=t}},m=(e,t)=>{if(t){const r=t.value;e[a]&&e[a](r.key,r.value),e[n]-=r.length,e[c].delete(r.key),e[l].removeNode(t)}};class g{constructor(e,t,n,r,i){this.key=e,this.value=t,this.length=n,this.now=r,this.maxAge=i||0}}const y=(e,t,n,r)=>{let o=n.value;h(e,o)&&(m(e,n),e[i]||(o=void 0)),o&&t.call(r,o.value,o.key,e)};return m1=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[t]=e.max||1/0;const n=e.length||d;if(this[r]="function"!=typeof n?d:n,this[i]=e.stale||!1,e.maxAge&&"number"!=typeof e.maxAge)throw new TypeError("maxAge must be a number");this[o]=e.maxAge||0,this[a]=e.dispose,this[s]=e.noDisposeOnSet||!1,this[u]=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[t]=e||1/0,p(this)}get max(){return this[t]}set allowStale(e){this[i]=!!e}get allowStale(){return this[i]}set maxAge(e){if("number"!=typeof e)throw new TypeError("maxAge must be a non-negative number");this[o]=e,p(this)}get maxAge(){return this[o]}set lengthCalculator(e){"function"!=typeof e&&(e=d),e!==this[r]&&(this[r]=e,this[n]=0,this[l].forEach((e=>{e.length=this[r](e.value,e.key),this[n]+=e.length}))),p(this)}get lengthCalculator(){return this[r]}get length(){return this[n]}get itemCount(){return this[l].length}rforEach(e,t){t=t||this;for(let n=this[l].tail;null!==n;){const r=n.prev;y(this,e,n,t),n=r}}forEach(e,t){t=t||this;for(let n=this[l].head;null!==n;){const r=n.next;y(this,e,n,t),n=r}}keys(){return this[l].toArray().map((e=>e.key))}values(){return this[l].toArray().map((e=>e.value))}reset(){this[a]&&this[l]&&this[l].length&&this[l].forEach((e=>this[a](e.key,e.value))),this[c]=new Map,this[l]=new e,this[n]=0}dump(){return this[l].map((e=>!h(this,e)&&{k:e.key,v:e.value,e:e.now+(e.maxAge||0)})).toArray().filter((e=>e))}dumpLru(){return this[l]}set(e,i,u){if((u=u||this[o])&&"number"!=typeof u)throw new TypeError("maxAge must be a number");const d=u?Date.now():0,f=this[r](i,e);if(this[c].has(e)){if(f>this[t])return m(this,this[c].get(e)),!1;const r=this[c].get(e).value;return this[a]&&(this[s]||this[a](e,r.value)),r.now=d,r.maxAge=u,r.value=i,this[n]+=f-r.length,r.length=f,this.get(e),p(this),!0}const h=new g(e,i,f,d,u);return h.length>this[t]?(this[a]&&this[a](e,i),!1):(this[n]+=h.length,this[l].unshift(h),this[c].set(e,this[l].head),p(this),!0)}has(e){if(!this[c].has(e))return!1;const t=this[c].get(e).value;return!h(this,t)}get(e){return f(this,e,!0)}peek(e){return f(this,e,!1)}pop(){const e=this[l].tail;return e?(m(this,e),e.value):null}del(e){m(this,this[c].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[c].forEach(((e,t)=>f(this,t,!1)))}},m1}(),n=new t({max:1e3}),r=e0,i=E1(),o=KZ,a=d0,{safeRe:s,t:l,comparatorTrimReplace:c,tildeTrimReplace:u,caretTrimReplace:d}=JZ,{FLAG_INCLUDE_PRERELEASE:f,FLAG_LOOSE:h}=XZ,p=e=>"<0.0.0-0"===e.value,m=e=>""===e.value,g=(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},y=(e,t)=>(o("comp",e,t),e=S(e,t),o("caret",e),e=b(e,t),o("tildes",e),e=M(e,t),o("xrange",e),e=k(e,t),o("stars",e),e),v=e=>!e||"x"===e.toLowerCase()||"*"===e,b=(e,t)=>e.trim().split(/\s+/).map((e=>x(e,t))).join(" "),x=(e,t)=>{const n=t.loose?s[l.TILDELOOSE]:s[l.TILDE];return e.replace(n,((t,n,r,i,a)=>{let s;return o("tilde",e,t,n,r,i,a),v(n)?s="":v(r)?s=`>=${n}.0.0 <${+n+1}.0.0-0`:v(i)?s=`>=${n}.${r}.0 <${n}.${+r+1}.0-0`:a?(o("replaceTilde pr",a),s=`>=${n}.${r}.${i}-${a} <${n}.${+r+1}.0-0`):s=`>=${n}.${r}.${i} <${n}.${+r+1}.0-0`,o("tilde return",s),s}))},S=(e,t)=>e.trim().split(/\s+/).map((e=>w(e,t))).join(" "),w=(e,t)=>{o("caret",e,t);const n=t.loose?s[l.CARETLOOSE]:s[l.CARET],r=t.includePrerelease?"-0":"";return e.replace(n,((t,n,i,a,s)=>{let l;return o("caret",e,t,n,i,a,s),v(n)?l="":v(i)?l=`>=${n}.0.0${r} <${+n+1}.0.0-0`:v(a)?l="0"===n?`>=${n}.${i}.0${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.0${r} <${+n+1}.0.0-0`:s?(o("replaceCaret pr",s),l="0"===n?"0"===i?`>=${n}.${i}.${a}-${s} <${n}.${i}.${+a+1}-0`:`>=${n}.${i}.${a}-${s} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${a}-${s} <${+n+1}.0.0-0`):(o("no pr"),l="0"===n?"0"===i?`>=${n}.${i}.${a}${r} <${n}.${i}.${+a+1}-0`:`>=${n}.${i}.${a}${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${a} <${+n+1}.0.0-0`),o("caret return",l),l}))},M=(e,t)=>(o("replaceXRanges",e,t),e.split(/\s+/).map((e=>E(e,t))).join(" ")),E=(e,t)=>{e=e.trim();const n=t.loose?s[l.XRANGELOOSE]:s[l.XRANGE];return e.replace(n,((n,r,i,a,s,l)=>{o("xRange",e,n,r,i,a,s,l);const c=v(i),u=c||v(a),d=u||v(s),f=d;return"="===r&&f&&(r=""),l=t.includePrerelease?"-0":"",c?n=">"===r||"<"===r?"<0.0.0-0":"*":r&&f?(u&&(a=0),s=0,">"===r?(r=">=",u?(i=+i+1,a=0,s=0):(a=+a+1,s=0)):"<="===r&&(r="<",u?i=+i+1:a=+a+1),"<"===r&&(l="-0"),n=`${r+i}.${a}.${s}${l}`):u?n=`>=${i}.0.0${l} <${+i+1}.0.0-0`:d&&(n=`>=${i}.${a}.0${l} <${i}.${+a+1}.0-0`),o("xRange return",n),n}))},k=(e,t)=>(o("replaceStars",e,t),e.trim().replace(s[l.STAR],"")),C=(e,t)=>(o("replaceGTE0",e,t),e.trim().replace(s[t.includePrerelease?l.GTE0PRE:l.GTE0],"")),T=e=>(t,n,r,i,o,a,s,l,c,u,d,f,h)=>`${n=v(r)?"":v(i)?`>=${r}.0.0${e?"-0":""}`:v(o)?`>=${r}.${i}.0${e?"-0":""}`:a?`>=${n}`:`>=${n}${e?"-0":""}`} ${l=v(c)?"":v(u)?`<${+c+1}.0.0-0`:v(d)?`<${c}.${+u+1}.0-0`:f?`<=${c}.${u}.${d}-${f}`:e?`<${c}.${u}.${+d+1}-0`:`<=${l}`}`.trim(),A=(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(o(e[n].semver),e[n].semver!==i.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};return y1}function E1(){if(x1)return b1;x1=1;const e=Symbol("SemVer ANY");class t{static get ANY(){return e}constructor(r,i){if(i=n(i),r instanceof t){if(r.loose===!!i.loose)return r;r=r.value}r=r.trim().split(/\s+/).join(" "),a("comparator",r,i),this.options=i,this.loose=!!i.loose,this.parse(r),this.semver===e?this.value="":this.value=this.operator+this.semver.version,a("comp",this)}parse(t){const n=this.options.loose?r[i.COMPARATORLOOSE]:r[i.COMPARATOR],o=t.match(n);if(!o)throw new TypeError(`Invalid comparator: ${t}`);this.operator=void 0!==o[1]?o[1]:"","="===this.operator&&(this.operator=""),o[2]?this.semver=new s(o[2],this.options.loose):this.semver=e}toString(){return this.value}test(t){if(a("Comparator.test",t,this.options.loose),this.semver===e||t===e)return!0;if("string"==typeof t)try{t=new s(t,this.options)}catch(e){return!1}return o(t,this.operator,this.semver,this.options)}intersects(e,r){if(!(e instanceof t))throw new TypeError("a Comparator is required");return""===this.operator?""===this.value||new l(e.value,r).test(this.value):""===e.operator?""===e.value||new l(this.value,r).test(e.semver):(!(r=n(r)).includePrerelease||"<0.0.0-0"!==this.value&&"<0.0.0-0"!==e.value)&&(!(!r.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0")))&&(!(!this.operator.startsWith(">")||!e.operator.startsWith(">"))||(!(!this.operator.startsWith("<")||!e.operator.startsWith("<"))||(!(this.semver.version!==e.semver.version||!this.operator.includes("=")||!e.operator.includes("="))||(!!(o(this.semver,"<",e.semver,r)&&this.operator.startsWith(">")&&e.operator.startsWith("<"))||!!(o(this.semver,">",e.semver,r)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))))))}}b1=t;const n=e0,{safeRe:r,t:i}=JZ,o=a1,a=KZ,s=d0,l=M1();return b1}const k1=M1();var C1=(e,t,n)=>{try{t=new k1(t,n)}catch(e){return!1}return t.test(e)};const T1=M1();var A1=(e,t)=>new T1(e,t).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")));const O1=d0,N1=M1();var q1=(e,t,n)=>{let r=null,i=null,o=null;try{o=new N1(t,n)}catch(e){return null}return e.forEach((e=>{o.test(e)&&(r&&-1!==i.compare(e)||(r=e,i=new O1(r,n)))})),r};const D1=d0,R1=M1();var I1=(e,t,n)=>{let r=null,i=null,o=null;try{o=new R1(t,n)}catch(e){return null}return e.forEach((e=>{o.test(e)&&(r&&1!==i.compare(e)||(r=e,i=new D1(r,n)))})),r};const _1=d0,P1=M1(),L1=B0;var z1=(e,t)=>{e=new P1(e,t);let n=new _1("0.0.0");if(e.test(n))return n;if(n=new _1("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 _1(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":i&&!L1(t,i)||(i=t);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${e.operator}`)}})),!i||n&&!L1(n,i)||(n=i)}return n&&e.test(n)?n:null};const F1=M1();var j1=(e,t)=>{try{return new F1(e,t).range||"*"}catch(e){return null}};const $1=d0,H1=E1(),{ANY:B1}=H1,V1=M1(),U1=C1,W1=B0,Y1=U0,X1=Z0,G1=J0;var K1=(e,t,n,r)=>{let i,o,a,s,l;switch(e=new $1(e,r),t=new V1(t,r),n){case">":i=W1,o=X1,a=Y1,s=">",l=">=";break;case"<":i=Y1,o=G1,a=W1,s="<",l="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(U1(e,t,r))return!1;for(let n=0;n<t.set.length;++n){const c=t.set[n];let u=null,d=null;if(c.forEach((e=>{e.semver===B1&&(e=new H1(">=0.0.0")),u=u||e,d=d||e,i(e.semver,u.semver,r)?u=e:a(e.semver,d.semver,r)&&(d=e)})),u.operator===s||u.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 J1=K1;var Q1=(e,t,n)=>J1(e,t,">",n);const Z1=K1;var e2=(e,t,n)=>Z1(e,t,"<",n);const t2=M1();var n2=(e,t,n)=>(e=new t2(e,n),t=new t2(t,n),e.intersects(t,n));const r2=C1,i2=q0;const o2=M1(),a2=E1(),{ANY:s2}=a2,l2=C1,c2=q0,u2=[new a2(">=0.0.0-0")],d2=[new a2(">=0.0.0")],f2=(e,t,n)=>{if(e===t)return!0;if(1===e.length&&e[0].semver===s2){if(1===t.length&&t[0].semver===s2)return!0;e=n.includePrerelease?u2:d2}if(1===t.length&&t[0].semver===s2){if(n.includePrerelease)return!0;t=d2}const r=new Set;let i,o,a,s,l,c,u;for(const t of e)">"===t.operator||">="===t.operator?i=h2(i,t,n):"<"===t.operator||"<="===t.operator?o=p2(o,t,n):r.add(t.semver);if(r.size>1)return null;if(i&&o){if(a=c2(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&&!l2(e,String(i),n))return null;if(o&&!l2(e,String(o),n))return null;for(const r of t)if(!l2(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(u=u||">"===e.operator||">="===e.operator,c=c||"<"===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=h2(i,e,n),s===e&&s!==i)return!1}else if(">="===i.operator&&!l2(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=p2(o,e,n),l===e&&l!==o)return!1}else if("<="===o.operator&&!l2(o.semver,String(e),n))return!1;if(!e.operator&&(o||i)&&0!==a)return!1}return!(i&&c&&!o&&0!==a)&&(!(o&&u&&!i&&0!==a)&&(!f&&!d))},h2=(e,t,n)=>{if(!e)return t;const r=c2(e.semver,t.semver,n);return r>0?e:r<0||">"===t.operator&&">="===e.operator?t:e},p2=(e,t,n)=>{if(!e)return t;const r=c2(e.semver,t.semver,n);return r<0?e:r>0||"<"===t.operator&&"<="===e.operator?t:e};var m2=(e,t,n={})=>{if(e===t)return!0;e=new o2(e,n),t=new o2(t,n);let r=!1;e:for(const i of e.set){for(const e of t.set){const t=f2(i,e,n);if(r=r||null!==t,t)continue e}if(r)return!1}return!0};const g2=JZ,y2=XZ,v2=d0,b2=r0,x2=(e,t,n)=>{const r=[];let i=null,o=null;const a=e.sort(((e,t)=>i2(e,t,n)));for(const e of a){r2(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(" || "),c="string"==typeof t.raw?t.raw:String(t);return l.length<c.length?l:t};var S2=n({parse:h0,valid:m0,clean:y0,inc:b0,diff:S0,major:M0,minor:k0,patch:T0,prerelease:O0,compare:q0,rcompare:R0,compareLoose:_0,compareBuild:L0,sort:F0,rsort:$0,gt:B0,lt:U0,eq:Y0,neq:G0,gte:J0,lte:Z0,cmp:a1,coerce:S1,Comparator:E1(),Range:M1(),satisfies:C1,toComparators:A1,maxSatisfying:q1,minSatisfying:I1,minVersion:z1,validRange:j1,outside:K1,gtr:Q1,ltr:e2,intersects:n2,simplifyRange:x2,subset:m2,SemVer:v2,re:g2.re,src:g2.src,tokens:g2.t,SEMVER_SPEC_VERSION:y2.SEMVER_SPEC_VERSION,RELEASE_TYPES:y2.RELEASE_TYPES,compareIdentifiers:b2.compareIdentifiers,rcompareIdentifiers:b2.rcompareIdentifiers}),w2={BAR_IN_SECONDARY_AXIS:"0.23.1"};const M2=e=>!e||S2.lt(S2.coerce(e),S2.coerce(w2.BAR_IN_SECONDARY_AXIS)),E2=({layoutService:e})=>{const t=!M2(e.getLayoutValue("version")),n=e.getHyperCubeValue("qMeasureInfo").map(((e,t)=>{const n={[zd.TYPE.BAR]:0,[zd.TYPE.LINE]:0,[zd.TYPE.MARKER]:0};return({series:r=zd.NOPE_SERIES},i)=>{const o=WZ(r,t),a=em(r);return{id:i,type:a,typeIndex:n[a]++,ref:`qMeasureInfo/${i}`,refIndex:i,isPrimary:o,scale:o?Ld.SCALE.MINOR.PRIMARY:Ld.SCALE.MINOR.SECONDARY,collection:o?Ld.COLLECTION.PRIMARY:Ld.COLLECTION.SECONDARY,options:UZ({series:r,layoutService:e})}}})(e,t)),r=(e,t)=>e.filter((e=>em(e)===t)).length,i=n.filter((e=>e.isPrimary)),o=n.filter((e=>!e.isPrimary)),a=[!!i.length&&i[0],!!o.length&&o[0]].filter((e=>!!e)),s=r(n,zd.TYPE.BAR),l=r(i,zd.TYPE.BAR),c=r(o,zd.TYPE.BAR),u=e=>n.filter((t=>em(t)===e)),d=u(zd.TYPE.LINE).map((e=>wh(Ld.COMPONENT.POINT,e))),f=u(zd.TYPE.MARKER).map((e=>({key:wh(Ld.COMPONENT.MARKER,e),type:e.options.marker}))),h=f.map((e=>e.key)),p=[];l>0&&p.push(`${Ld.COMPONENT.BAR}-${zd.AXIS.PRIMARY}`),c>0&&p.push(`${Ld.COMPONENT.BAR}-${zd.AXIS.SECONDARY}`);const m=[...p,...d,...h],{MINI_CHART:g}=Ld.COMPONENT,y=u(zd.TYPE.LINE).map((e=>wh(g.LINE,e))),v=u(zd.TYPE.MARKER).map((e=>wh(g.MARKER,e))),b=e.meta.isContinuous?[`${g.BAR}-${zd.AXIS.PRIMARY}`,`${g.BAR}-${zd.AXIS.SECONDARY}`,...y,...v]:[];return{meta:{allSeries:n,primarySeries:i,secondarySeries:o,barSeriesCount:s,primaryBarSeriesCount:l,secondaryBarSeriesCount:c,measureAxes:a,pointComponentKeys:d,markerComponentKeys:h,barComponentKeys:p,seriesComponentKeys:m,miniComponentKeys:b,markers:f},query:{all:()=>n,seriesByAxis:e=>e?i:o,series:u,isPrimary:WZ}}};function k2({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 C2({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"),l=o?[]:t.getHyperCubeValue("qColumnOrder");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"),qColumnOrder:l}}}))}(e,t,{path:"/qHyperCubeDef",rect:k2({layoutService:t}),zoomLevel:-1,filter:"D1"})}}function T2({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}):C2({genericObjectModel:e,layoutService:t})}const A2=e=>"number"==typeof e&&!Number.isNaN(e);function O2({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=>em(e.series)===zd.TYPE.BAR)),a=i.filter((e=>em(e.series)===zd.TYPE.LINE)),s=i.filter((e=>em(e.series)===zd.TYPE.MARKER));return{min:Math.min(...i.filter((e=>A2(e.qMin))).map((e=>e.qMin))),max:Math.max(...i.filter((e=>A2(e.qMax))).map((e=>e.qMax))),bar:{min:Math.min(...o.filter((e=>A2(e.qMin))).map((e=>e.qMin))),max:Math.max(...o.filter((e=>A2(e.qMax))).map((e=>e.qMax)))},line:{min:Math.min(...a.filter((e=>A2(e.qMin))).map((e=>e.qMin))),max:Math.max(...a.filter((e=>A2(e.qMax))).map((e=>e.qMax)))},marker:{min:Math.min(...s.filter((e=>A2(e.qMin))).map((e=>e.qMin))),max:Math.max(...s.filter((e=>A2(e.qMax))).map((e=>e.qMax)))}}}}function N2({isPrimary:e,layoutService:t,seriesModel:n}){const r=O2({isPrimary:e,layoutService:t,seriesModel:n}),i=function({seriesModel:e,isPrimary:t}){return function({dataPage:n}){const r=e.query.series(zd.TYPE.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 q2({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,i=n.query.series(zd.TYPE.BAR).filter((t=>t.isPrimary===e)).length;return!r||i<2?O2({isPrimary:e,layoutService:t,seriesModel:n}):N2({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:c}=a({dataPage:t}),u=i.query.seriesByAxis(e).some((e=>em(e)===zd.TYPE.BAR)),d=Number((u?Math.min(n,0):n).toFixed(13)),f=Number((u?Math.max(r,0):r).toFixed(13)),h=Number((u?Math.min(s.min,0):s.min).toFixed(13)),p=Number((u?Math.max(s.max,0):s.max).toFixed(13)),m=Number((u?Math.min(l.min,0):l.min).toFixed(13)),g=Number((u?Math.max(l.max,0):l.max).toFixed(13)),y=Number((u?Math.min(c.min,0):c.min).toFixed(13)),v=Number((u?Math.max(c.max,0):c.max).toFixed(13));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(g)?g:0,o.implicit.marker.min=Number.isFinite(y)?y: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)}))}}}}const D2=.2;function R2({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 I2({min:e,max:t,count:n,threshold:r,disable:i}){const o=function(e,t,n){const r=$n().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 _2=50,P2=100,L2=200,z2=125,F2=e=>{switch(e){case.5:return _2;case 1:return P2;case 2:return L2;default:return e*z2}};function j2({config:e,chart:t,layoutService:n,dockService:r,measureText:i,size:o,min:a,max:s}){const l=function({config:{measureAxesRef:e},layoutService:t,size:n}){const r=t.getLayoutValue(`${e}.spacing`,1),i=F2(r);return Math.max(1,Math.round(n/i))}({config:e,layoutService:n,size:o}),c=I2({min:a,max:s,count:l,threshold:.05,disable:!0}),u=c.domain(),d={roundedMin:u[0],roundedMax:u[1],ticks:c.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),t=e.some(((t,n)=>e.indexOf(t)!==n));return!t&&(e=>{const t=o/d.ticks.length;return Math.max(...e.map(h))<=t})(e)};for(let e=l-1;e>0&&!m();e--)c.domain([a,s]),c.nice(e),[d.roundedMin,d.roundedMax]=c.domain(),d.ticks=c.ticks(e);return d}const $2=.3;function H2({tick:e,index:t,ticks:n}){return 0===t||t===n.length-1||0===e}function B2({index:e,ticks:t}){return 0===e||e===t.length-1||e===Math.floor((t.length-1)/2)}const V2=10;function U2({config:e,chart:t,extrema:n,min:r,max:i}){const o={roundedMin:0,roundedMax:0,ticks:[]},a=I2({min:r,max:i,count:V2,threshold:.15,disable:!0});[o.roundedMin,o.roundedMax]=a.domain();const s=a.ticks(V2),l=function({ticks:e}){const t=Math.round(e.length*$2),n=t,r=e.length-t;return e.slice(n,r).some((e=>0===e))}({ticks:s}),c=l?H2:B2;o.ticks=s.filter(((e,t,n)=>c({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 u=t.formatter(e.formatter),d=o.ticks.map(u),f=d.some(((e,t)=>d.indexOf(e)!==t));return f&&(o.ticks=[o.ticks[0],o.ticks[o.ticks.length-1]]),o}function W2({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 Y2({config:e,chart:t,layoutService:n,dockService:r,extrema:i,measureText:o,size:a,min:s,max:l}){const{ticks:c,roundedMin:u,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 c=j2({config:e,chart:t,layoutService:n,dockService:r,measureText:o,size:a,min:s,max:l});return R2({extrema:i,ticks:c.ticks})?c:U2({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:c,count:1}),h=[...W2({ticks:c,extrema:i}).map((e=>({value:e,isMinor:!1}))),...f.map((e=>({value:e,isMinor:!0})))].sort(((e,t)=>e.value-t.value));return{min:u,max:d,values:h}}function X2({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-t*D2*Math.sign(t),max:n+n*D2*Math.sign(n)}}({extrema:o});return Y2({config:e,chart:t,layoutService:n,dockService:r,extrema:o,measureText:i,size:a,min:s,max:l})}function G2({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,c=function({chart:e,config:t,dockService:n,extremumModel:r,layoutService:i,seriesModel:o,themeService:a}){const{measureText:s}=XD.renderer("svg")();return()=>{const l=a.getStyles(),c=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}),u=r.query.getExtrema(),d=X2({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:u,size:c});return d}}({config:e,chart:t,layoutService:n,extremumModel:r,dockService:i,seriesModel:o,themeService:a}),u=()=>(s.locked&&s.resolved||(s.resolved=c()),s.resolved);return{query:{getValues:()=>u().values,getMin:()=>l().meta.hasExplicitMin?l().explicit.min:u().min,getMax:()=>l().meta.hasExplicitMax?l().explicit.max:u().max},command:{lock:()=>{s.locked=!0},unlock:()=>{s.locked=!1}}}}function K2({genericObjectModel:e,layoutService:t}){const n={properties:void 0};return{query:{getProperties:()=>n.properties},command:{initialize:()=>function({layout:e,model:t}){return T.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 J2({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:zd.TYPE.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===zd.TYPE.LINE?2:t!==zd.TYPE.MARKER||n.fill?0:1},size:10,fill:{fn:({datum:e,scale:t})=>{const{type:n,options:r}=s(e);return n!==zd.TYPE.MARKER||"bar"===r.marker||r.fill?t(e.value):"none"}}}}}}function Q2({layout:e,defaultAuto:t}){const n=t(e),r=e.qHyperCube.qMeasureInfo.length>1;return{...n,useBaseColors:r?"measure":n.useBaseColors}}function Z2({actions:e,appLayoutModel:t,appModel:n,chart:r,environment:i,genericObjectModel:o,layoutService:a,picasso:s,seriesModel:l,viewState:c,styleModel:u}){let d;const{theme:f,translator:h}=i,p={wrappedScales:void 0,legendComponents:void 0,legendInteractions:void 0};return d=al({picasso:s,model:o,app:n,translator:h,layoutService:a,createConfig:()=>{const e=a.getHyperCubeValue("qMeasureInfo").map((e=>e.color));return{theme:f,colorProps:{measureOverrides:e},legendProps:a.getLayoutValue("legend"),hc:a.getHyperCube(),key:Ld.SCALE.COLOR}},config:{auto:Q2,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,styleModel:s}){const{options:l}=i,c={eventName:"legend-c",key:Ld.COMPONENT.LEGEND,viewState:e,chart:t,styleReference:"object.comboChart",styleOverrides:{title:s.query.legend.title.getStyle(),label:s.query.legend.label.getStyle()},rtl:"rtl"===l.direction,settings:J2({layoutService:n,seriesModel:r,colorService:o})},{components:u,interactions:d}=o.getLegend(c,{actions:a,navigationDisabled:!a.interact.enabled()}),f=o.getScales();return{components:u.filter(Boolean).map((e=>{const{layout:t}=e,{dock:n}=t,r=f[`${Ld.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:d,scales:f}}({viewState:c,chart:r,environment:i,colorService:d,seriesModel:l,layoutService:a,actions:e,styleModel:u});p.wrappedScales=o,p.legendComponents=t,p.legendInteractions=n}}}),d}const e5="REJECTED",t5=()=>{},n5=1e4,r5={MULTIPLIER:2,MINIMUM:20,MAXIMUM:200},i5=50,o5=10,a5=100;var s5={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),c=Math.min(o+r-e.qArea.qLeft,e.qArea.qWidth),u={qArea:{qHeight:s-a,qWidth:c-l,qTop:i,qLeft:o},qMatrix:[]};for(let t=a;t<s;t++)u.qMatrix.push(e.qMatrix[t].slice(l,c));return u},cacheWarden:function({bounds:e={width:0,height:0}}){return{release(t,n){const r=n.qTop-o5<=t.qTop,i=n.qLeft+n.qWidth+o5>=t.qLeft+t.qWidth,o=n.qTop+n.qHeight+o5>=t.qTop+t.qHeight,a=n.qLeft-o5<=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 l5={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-o5<=t.qTop,i=n.qTop+n.qHeight+o5>=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 c5={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 u5="pages";const d5="discretePan",f5=10;function h5({chart:e,actions:t,componentKey:n,dockService:r,rtl:i,scroller:o}){return{type:"Pan",key:"discrete:pan",options:{event:d5,pointers:1,threshold:f5,enable(r,i){return this.started===d5||!i||!(!t.scroll.enabled()||!o.enabled())&&e.componentsFromPoint({x:i.center.x,y:i.center.y}).some((e=>e.key===n))}},events:{[`${d5}start`](e){e.preventDefault(),this.started=d5;const t="horizontal"===r.meta.major.orientation?e.deltaX:e.deltaY;this.previousTotalDelta=t<0?-f5:f5},[`${d5}move`](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)},[`${d5}end`](e){e.preventDefault(),this.started=!1},[`${d5}cancel`](e){e.preventDefault(),this.started=!1}}}}function p5({chart:e,componentKey:t,actions:n,scroller:r}){return function(i){if(!n.scroll.enabled()||!r.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=Math.sign(-a)*a5;r.scroll(s)}}function m5({layoutService:e}){const t=function({layoutService:e}){const t=Math.floor(n5/(e.meta.dimensionCount+e.meta.measureCount));return function({width:e,height:n}){const r=Math.min(t,Math.max(r5.MAXIMUM,n));return{width:e,height:Math.max(r5.MINIMUM,Math.min(n*r5.MULTIPLIER,r))}}}({layoutService:e}),n={width:e.meta.size.x,height:e.meta.size.y};return function(e){const{width:r,height:i}=t({width:e.qWidth,height:e.qHeight}),o=i?Math.ceil((i-e.qHeight)/2):0,a=r?Math.ceil((r-e.qWidth)/2):0;return{qHeight:i?Math.min(i,n.height):e.qHeight,qWidth:r?Math.min(r,n.width):e.qWidth,qTop:i?Math.max(0,Math.min(e.qTop-o,n.height-i)):e.qTop,qLeft:r?Math.max(0,Math.min(e.qLeft-a,n.width-r)):e.qLeft}}}function g5(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(e5),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(e5),n=e})(a):r(a)}));return i.isProcessing=()=>!!t,i.hasQueued=()=>!!n,i.cancel=()=>{i.isProcessing()&&t.cancel(),i.hasQueued()&&(n.reject(e5),n=null)},i}const y5={command:{update:()=>{}}};function v5({dataStore:e,composition:t,enigmaModel:n,layoutService:r,trendLineModel:i=y5,definitionPath:o,processDataPage:a}){const{slicer:s,cacheWarden:l,request:c}=t,u=function({dataStore:e,slice:t,warden:n,expand:r,request:i,process:o,connectionless:a,processDataPage:s}){return(l,{onProcessing:c}={})=>{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()&&c&&c();const u=r(l);return o(i(u)).then((n=>(s(n),e.add(n),t(n,l))))}}({dataStore:e,slice:s,warden:l({bounds:{width:r.meta.size.x,height:r.meta.size.y}}),expand:m5({layoutService:r}),request:c({layoutService:r,definitionPath:o}),process:g5(n),connectionless:r.meta.isSnapshot,processDataPage:a}),d=wl(((e,{onProcessing:t,onData:n})=>{u(e,{onProcessing:t}).then((e=>n(e))).catch((e=>{if(e!==e5)throw e}))}),i5);return function(e,{onProcessing:t=t5,onDataPage:n=t5}={}){d(e,{onProcessing:t,onData:e=>{r.setDataPages(e?[e]:[]),i.command.update(),n(e)}})}}var b5={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 x5={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 S5(e){const{groupSize:t,measureCount:n}=e.meta;return null!=t?t:n}function w5(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 M5(e){return w5(e.qMatrix,(e=>e[0].qElemNumber))-1}var E5={inTotal:function({layoutService:e}){const t=S5(e);return e.meta.size.y*t*(1+1/t)-1},area:function({layoutService:e,itemOffset:t,inView:n,areaBuffer:r}){const i=S5(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=S5(e),o=e.getDataPages()[0],a=r/n.inView,{pixel:s}=t,l=M5(o),c=o.qArea.qHeight*i+l,u=(s+(o.qArea.qTop*i+o.qArea.qTop)*a)/r;return[u,n.inView>=n.inTotal?u+1:u+c/n.inView]}};const k5=(e,t)=>t/(e.meta.size.y/e.meta.size.dimensions[0]+1),C5=(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};function T5(e){return{itemOffset(t,n){if(0!==t.qArea.qTop)return k5(e,n);const r=C5(t.qMatrix,n);return r.successful?r.count:k5(e,n)},area(t,n,r){if(0!==t.qArea.qTop)return k5(e,n);return w5(t.qMatrix.slice(0,r.qTop+1),(e=>e[0].qElemNumber))-1}}}var A5={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=T5(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:c}=n,u=T5(t).area(e(),l,a.qArea),d=M5(a),f=a.qArea.qHeight+d,h=c===o?(r.inView-f)*s/i:(c+(a.qArea.qTop+u)*s)/i;return[h,r.inView>=r.inTotal?h+1:h+f/r.inView]}};function O5({chart:e,rect:t,dockService:n,itemWidths:r,axisKey:i,renderer:o,isGrouped:a,dimensionAxis:s,inTotal:l,isMajorLabelless:c,maxDataRows:u}){const{DEFAULT:d,SQUEEZE:f,LABELLESS:h}=r[n.meta.chart.mode],p="horizontal"===n.meta.major.orientation,{axisDisplayMode:m="auto",maxVisibleItems:g=10,label:y}=s,v=p?t.width:t.height,b=v/l>=f;switch(m){case"max":return Math.min(l,u);case"custom":return Math.min(g,u);default:return c?v/h:b?function({chart:e,isHorizontal:t,axisKey:n,renderer:r={},isGrouped:i,itemSize:o,label:a}){if(i||"auto"!==a&&"tilted"!==a)return!1;const s=e.component(n),{measureText:l}=r;if(!s||!l)return!0;const{fontFamily:c,fontSize:u,tiltAngle:d}=s.settings.settings.labels,{height:f}=l({fontFamily:c,fontSize:u,text:"M"});if(!t)return f>o;const h=(90-d)*(Math.PI/180);return f>Math.cos(h)*o}({chart:e,isHorizontal:p,axisKey:i,renderer:o,isGrouped:a,itemSize:f,label:y})?v/d:l:v/d}}function N5({chart:e,getRect:t,getDataPages:n,layoutService:r,dockService:i,getItemWidths:o,axisKey:a,renderer:s,areaBuffer:l,rtl:c}){const{inTotal:u,area:d,scaleRange:f}=function({layoutService:e}){const{isDimensionless:t,isGrouped:n,isGroupedByMeasure:r}=e.meta;return t?b5:n?r?E5:A5:x5}({layoutService:r}),h=()=>"horizontal"===i.meta.major.orientation?t().width:t().height,p=e=>e?h()/e:0,m=(e,t)=>-(e-t)*p(t);return{getItems(){const n=r.getLayoutValue("dimensionAxis"),l=u({layoutService:r});return{inTotal:l,inView:O5({chart:e,rect:t(),dockService:i,itemWidths:o(),axisKey:a,renderer:s,isGrouped:r.meta.isGrouped,dimensionAxis:n,inTotal:l,isMajorLabelless:"none"===n.show||"title"===n.show,maxDataRows:Math.floor(n5/(r.meta.dimensionCount+r.meta.measureCount))})}},getItemSize({items:e}){const{inView:t}=e;return p(t)},getOffsets({pixelOffset:e,items:t}){const{inTotal:n,inView:r}=t,i=Math.min(0,Math.max(e,m(n,r))),o=r?Math.abs(r*i/h()):0;return{start:{pixel:i,item:o},end:{item:Math.min(o+(r||0),n)}}},getUpperBound({items:e}){const{inTotal:t,inView:n}=e;return m(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,Math.min(1,o+e/i)]}({viewSize:h(),inTotal:n,inView:r,pixelOffset:e})},getArea:({itemOffset:e,items:t})=>d({getDataPages:n,layoutService:r,itemOffset:e,inView:t.inView,areaBuffer:l}),getScaleRange({offsets:e,items:t}){const o=f({getDataPages:n,layoutService:r,offsets:e,items:t,viewSize:h(),upperBound:m(t.inTotal,t.inView)});return"horizontal"===i.meta.major.orientation&&c?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>=m(n,r)}},convert:{itemToPixelOffset({itemOffset:e,items:t}){const{inView:n}=t,r=e*p(n);return Number.isFinite(r)?-r:0},relativeToPixelOffset({relativeOffset:e,items:t}){const{inTotal:n,inView:r}=t;return-e*(p(r)*n)}}}}function q5({chart:e,componentKey:t,state:n,dataStore:r,pageData:i,layoutService:o,dockService:a,itemWidths:s,getRect:l,axisKey:c,renderer:u,areaBuffer:d,viewState:f,rtl:h}){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 p=N5({chart:e,getRect:()=>n.get("rect"),getDataPages:r.getCurrent,layoutService:o,dockService:a,getItemWidths:()=>n.get("itemWidths"),axisKey:c,renderer:u,areaBuffer:d,rtl:h}),m=()=>{const e=p.getItems();return n.set("items",e),e},g=({pixelOffset:e,items:t})=>{const r=p.getOffsets({pixelOffset:e,items:t});return n.set("offsets",r),r},y=e=>{const t=Date.now(),r=m(),a=g({pixelOffset:e,items:r}),s=p.getArea({itemOffset:a.start.item,items:r});if((e=>{const[{qArea:t}]=o.getDataPages();return!!t&&Object.keys(e).every((n=>e[n]===t[n]))})(s))return void((p.validate.offset({pixelOffset:e,items:r})||f.get("scrollOffset").start!==a.start.item)&&(n.set("finished",t),n.set("scaleRange",p.getScaleRange({offsets:a.start,items:r})),f.preventSet("viewRange",p.getViewRange({pixelOffset:a.start.pixel,items:r})),f.set("scrollOffset",{start:a.start.item,end:a.end.item})));f.preventSet("viewRange",p.getViewRange({pixelOffset:a.start.pixel,items:r}));const l=()=>{n.get("finished")>t||(n.set("finished",t),n.set("scaleRange",p.getScaleRange({offsets:a.start,items:r})),f.set("scrollOffset",{start:a.start.item,end:a.end.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=m();n.set("itemSize",p.getItemSize({items:a}));const c=(({items:e})=>{const t=o.getLayoutValue("scrollStartPos"),n=f.get("scrollOffset");if(void 0===n)return 1===t?p.getUpperBound({items:e}):0;if("number"==typeof n)return p.convert.itemToPixelOffset({itemOffset:n,items:e});const{start:r,end:i}=n,a=1===t&&i?i-e.inView:r;return p.convert.itemToPixelOffset({itemOffset:a,items:e})})({items:a}),u=g({pixelOffset:c,items:a});f.preventSet("viewRange",p.getViewRange({pixelOffset:u.start.pixel,items:a}));const d=p.getArea({itemOffset:u.start.item,items:a});return new Promise((e=>{i(d,{onDataPage:()=>{n.set("scaleRange",p.getScaleRange({offsets:u.start,items:a})),f.preventSet("scrollOffset",{start:u.start.item,end:u.end.item}),e()}})}))},scroll(e){const t=n.get("offsets").start.pixel+e;y(t)},scrollToRelative(e){const t=n.get("items"),r=p.convert.relativeToPixelOffset({relativeOffset:e,items:t});y(r)}}}function D5({chart:e,actions:t,componentKey:n,enigmaModel:r,layoutService:i,dockService:o,trendLineModel:a,itemWidths:s,viewState:l,rtl:c,options:{definitionPath:u="/qHyperCubeDef",getRect:d,axisKey:f,renderer:h,areaBuffer:p,processDataPage:m=(()=>{})}={}}){const g=xl(),y=function({qMode:e}){switch(e){case"S":default:return s5;case"K":return l5;case"T":return c5}}({qMode:i.getHyperCubeValue("qMode")}),v=function({state:e,contains:t}){return e.set(u5,[]),{add:t=>{const n=e.get(u5);n.length=0,n.push(t)},getCurrent:()=>e.get(u5)[0],getAll:()=>e.get(u5),contains:n=>t(e.get(u5)[0],n)}}({state:g,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:v,composition:y});const b=function({buffer:e}){return void 0===e?void 0:2*Math.round(e/2)}({buffer:p}),x=v5({dataStore:v,composition:y,enigmaModel:r,layoutService:i,trendLineModel:a,definitionPath:u,processDataPage:m}),S=q5({chart:e,componentKey:n,state:g,dataStore:v,pageData:x,layoutService:i,dockService:o,itemWidths:s,getRect:d,axisKey:f,renderer:h,areaBuffer:b,viewState:l,rtl:c}),w=function({layoutService:e,dataStore:t}){return function(n){const r=yl(n,`${e.refs.dataPages}`);r.length=0,r.push(t.getCurrent())}}({layoutService:i,dataStore:v}),M=function({chart:e,actions:t,componentKey:n,dockService:r,rtl:i,scroller:o}){return{gestures:[h5({chart:e,actions:t,componentKey:n,dockService:r,rtl:i,scroller:o})],native:{type:"native",events:{wheel:p5({chart:e,actions:t,componentKey:n,scroller:o})}}}}({chart:e,actions:t,componentKey:n,dockService:o,rtl:c,scroller:S});return{interactions:M,query:{getCanScroll:()=>S.enabled(),getItemSize:()=>S.itemSize(),getScaleRange:()=>S.scaleRange(),getCurrentDataPage:()=>v.getCurrent()},command:{initialize:()=>S.initialize(),scrollTo:e=>S.scrollToRelative(e),setSnapshotData:e=>w(e)}}}var R5={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 I5({layoutService:e,key:t}){const{style:n}=e.getLayoutValue("components",[]).filter((e=>e.key===t))[0]||{};return({property:e,defaultValue:t})=>n&&Object.hasOwnProperty.call(n,e)?n[e]:t}function _5({layoutService:e,dockService:t,themeService:n,flags:r}){const{BAR:i,LINE:o,POINT:a}=Dh,s=n.getStyles(),l=I5({layoutService:e,key:"bar"}),c=I5({layoutService:e,key:"line"}),u=()=>{const e=l({property:"strokeWidth",defaultValue:"none"});return e?i.STROKE.WIDTH[e.toUpperCase()]:0},d=t=>r.isEnabled("CLIENT_IM_3050")?e.getLayoutValue("components",[]).find((e=>e.key===t)):void 0;return{query:{bar:{getHasStyling:()=>!!e.getLayoutValue("components",[]).filter((e=>"bar"===e.key)).length,getWidthFn:()=>()=>l({property:"width",defaultValue:.7}),getHasStrokeWidth:()=>!!u(),getStrokeWidth:()=>u(),getStrokeColor:()=>l({property:"strokeColor",defaultValue:{index:-1,color:i.STROKE.COLOR}}).color,label:{getStyle:()=>{var e,t,n,r,i,o,a,l;return{fill:null!==(e=null===(t=d("bar"))||void 0===t||null===(t=t.bar)||void 0===t||null===(t=t.label)||void 0===t||null===(t=t.value)||void 0===t||null===(t=t.color)||void 0===t?void 0:t.color)&&void 0!==e?e:s.label.value.color,useContrastColor:null===(n=null===(r=d("bar"))||void 0===r||null===(r=r.bar)||void 0===r||null===(r=r.label)||void 0===r||null===(r=r.value)||void 0===r?void 0:r.useContrastColor)||void 0===n||n,fontSize:null!==(i=null===(o=d("bar"))||void 0===o||null===(o=o.bar)||void 0===o||null===(o=o.label)||void 0===o||null===(o=o.value)||void 0===o?void 0:o.fontSize)&&void 0!==i?i:s.label.value.numFontSize,fontFamily:null!==(a=null===(l=d("bar"))||void 0===l||null===(l=l.bar)||void 0===l||null===(l=l.label)||void 0===l||null===(l=l.value)||void 0===l?void 0:l.fontFamily)&&void 0!==a?a:s.label.value.fontFamily}}}},line:{getCurveFn:()=>()=>c({property:"lineCurve",defaultValue:o.CURVE.LINEAR}),getStrokeWidthFn:()=>()=>c({property:"lineThickness",defaultValue:"FULL"===t.meta.chart.mode?o.WIDTH.FULL.DEFAULT:o.WIDTH.LESS.DEFAULT}),getStrokeDasharrayFn:()=>()=>{const e=c({property:"lineType",defaultValue:o.TYPE.SOLID});return e&&o.TYPE[e.toUpperCase()]}},point:{getSize:()=>c({property:"dataPointSize",defaultValue:a.SIZE.DEFAULT}),label:{getStyle:()=>{var e,t,n,r,i,o;return{fill:null!==(e=null===(t=d("line"))||void 0===t||null===(t=t.line)||void 0===t||null===(t=t.label)||void 0===t||null===(t=t.value)||void 0===t||null===(t=t.color)||void 0===t?void 0:t.color)&&void 0!==e?e:s.label.value.color,fontSize:null!==(n=null===(r=d("line"))||void 0===r||null===(r=r.line)||void 0===r||null===(r=r.label)||void 0===r||null===(r=r.value)||void 0===r?void 0:r.fontSize)&&void 0!==n?n:s.label.value.fontSize,fontFamily:null!==(i=null===(o=d("line"))||void 0===o||null===(o=o.line)||void 0===o||null===(o=o.label)||void 0===o||null===(o=o.value)||void 0===o?void 0:o.fontFamily)&&void 0!==i?i:s.label.value.fontFamily}}}},axis:{title:{getStyle:()=>{var e,t,n,r,i,o;return{fontFamily:null!==(e=null===(t=d("axis"))||void 0===t||null===(t=t.axis)||void 0===t||null===(t=t.title)||void 0===t?void 0:t.fontFamily)&&void 0!==e?e:s.axis.title.fontFamily,fontSize:null!==(n=null===(r=d("axis"))||void 0===r||null===(r=r.axis)||void 0===r||null===(r=r.title)||void 0===r?void 0:r.fontSize)&&void 0!==n?n:s.axis.title.fontSize,color:null!==(i=null===(o=d("axis"))||void 0===o||null===(o=o.axis)||void 0===o||null===(o=o.title)||void 0===o||null===(o=o.color)||void 0===o?void 0:o.color)&&void 0!==i?i:s.axis.title.color}}},label:{getStyle:()=>{var e,t,n,r,i,o;return{fill:null!==(e=null===(t=d("axis"))||void 0===t||null===(t=t.axis)||void 0===t||null===(t=t.label)||void 0===t||null===(t=t.name)||void 0===t||null===(t=t.color)||void 0===t?void 0:t.color)&&void 0!==e?e:s.axis.label.name.color,fontSize:null!==(n=null===(r=d("axis"))||void 0===r||null===(r=r.axis)||void 0===r||null===(r=r.label)||void 0===r||null===(r=r.name)||void 0===r?void 0:r.fontSize)&&void 0!==n?n:s.axis.label.name.fontSize,fontFamily:null!==(i=null===(o=d("axis"))||void 0===o||null===(o=o.axis)||void 0===o||null===(o=o.label)||void 0===o||null===(o=o.name)||void 0===o?void 0:o.fontFamily)&&void 0!==i?i:s.axis.label.name.fontFamily}}}},legend:{title:{getStyle:()=>{var e,t,n,r,i,o;return{fontFamily:null!==(e=null===(t=d("legend"))||void 0===t||null===(t=t.legend)||void 0===t||null===(t=t.title)||void 0===t?void 0:t.fontFamily)&&void 0!==e?e:s.legend.title.fontFamily,fontSize:null!==(n=null===(r=d("legend"))||void 0===r||null===(r=r.legend)||void 0===r||null===(r=r.title)||void 0===r?void 0:r.fontSize)&&void 0!==n?n:s.legend.title.fontSize,color:null!==(i=null===(o=d("legend"))||void 0===o||null===(o=o.legend)||void 0===o||null===(o=o.title)||void 0===o||null===(o=o.color)||void 0===o?void 0:o.color)&&void 0!==i?i:s.legend.title.color}}},label:{getStyle:()=>{var e,t,n,r,i,o;return{fontFamily:null!==(e=null===(t=d("legend"))||void 0===t||null===(t=t.legend)||void 0===t||null===(t=t.label)||void 0===t?void 0:t.fontFamily)&&void 0!==e?e:s.legend.label.fontFamily,fontSize:null!==(n=null===(r=d("legend"))||void 0===r||null===(r=r.legend)||void 0===r||null===(r=r.label)||void 0===r?void 0:r.fontSize)&&void 0!==n?n:s.legend.label.fontSize,color:null!==(i=null===(o=d("legend"))||void 0===o||null===(o=o.legend)||void 0===o||null===(o=o.label)||void 0===o||null===(o=o.color)||void 0===o?void 0:o.color)&&void 0!==i?i:s.legend.label.color}}}}}}}function P5({dataset:e,data:t,valueData:n}){var r;const{source:i,label:o,value:a}=n,s=e(i.key).field(i.field);return M.shouldUseFormat(s.raw())?"-"===o||""===a||Number.isNaN(a)||"NaN"===a||null!==(r=t.null)&&void 0!==r&&r.value?"-":s.formatter()(a):o}function L5({chart:e,actions:t,translator:n,rtl:r,dockService:i,seriesModel:o,colorService:a,themeService:s,propertiesModel:l,custom:c}){const u=s.getStyles(),d=({data:e})=>e.major.value,f=({data:e})=>!e.null.value||0===e.end.value,{SLICED_HAT:h}=Ld.COMPONENT,{PRIMARY:p,SECONDARY:m}=zd.AXIS,g=function({dockService:e,seriesModel:t}){const{AXIS:n,BAR_OOB:r,DATA_OOB_MARKER:i,SLICED_HAT:o}=Ld.COMPONENT,{PRIMARY:a,SECONDARY:s}=zd.AXIS,{orientation:l}=e.meta.chart,c="vertical"===l,u=[...t.meta.barComponentKeys,...t.meta.markerComponentKeys,...t.meta.pointComponentKeys];return[({chart:e,hovered:t,meta:l})=>{const[d]=t,{triggerer:f}=l,h=f===n.MAJOR?d.data.value:d.data.major.value;if(c){const t=e.findShapes("container").find((e=>(e.key===`${o}-max-${a}`||e.key===`${o}-max-${s}`)&&e.data&&e.data.value===h&&e.children.length));if(t)return{key:t.key,bounds:t.bounds}}const p=e.findShapes("path").find((e=>(e.key===`${r}-max-${a}`||e.key===`${r}-max-${s}`||e.key===`${i}-max`)&&e.data.major.value===h));if(c&&p)return{key:p.key,bounds:p.bounds};const m=e.findShapes("path").find((e=>(e.key===`${r}-min-${a}`||e.key===`${r}-min-${s}`||e.key===`${i}-min`)&&e.data.major.value===h)),g=e.findShapes("*").filter((e=>u.indexOf(e.key)>-1&&e.data&&e.data.major.value===h));if(c&&m&&!g.find((e=>e.data.end.source.field!==m.data.end.source.field)))return{key:m.key,bounds:m.bounds};const y=p||m;return!(c||!y||g.find((e=>e.data.end.source.field!==y.data.end.source.field)))&&{key:y.key,bounds:y.bounds}},"collectible"]}({dockService:i,seriesModel:o});return Sd({chart:e,translator:n,config:{rtl:r,enable:()=>t.tooltip.enabled(),getColorSettings:()=>a.getSettings(),style:{fontFamily:u.fontFamily},main:{key:Ld.COMPONENT.TOOLTIP,getGroupByValue:d,collectibles:[...o.meta.barComponentKeys.map((e=>({key:e,type:"bar",major:d}))),...o.meta.pointComponentKeys.map((e=>({key:e,type:"point",major:d}))),...o.meta.markers.map((e=>({key:e.key,type:e.type,major:d})))],triggers:[{keys:[Ld.COMPONENT.AXIS.MAJOR],collect:{from:"dimension",by:({data:e})=>e.value,filter:f},placement:g},{keys:[...o.meta.barComponentKeys,...o.meta.markerComponentKeys,`${h}-max-${p}`,`${h}-max-${m}`,`${h}-min-${p}`,`${h}-min-${m}`,`${Ld.COMPONENT.BAR_OOB}-max-${p}`,`${Ld.COMPONENT.BAR_OOB}-max-${m}`,`${Ld.COMPONENT.BAR_OOB}-min-${p}`,`${Ld.COMPONENT.BAR_OOB}-min-${m}`,`${Ld.COMPONENT.DATA_OOB_MARKER}-max`,`${Ld.COMPONENT.DATA_OOB_MARKER}-min`],collect:{from:"dimension",by:d,filter:f},placement:g},{keys:[...o.meta.pointComponentKeys],distance:3,collect:{from:"dimension",by:d,filter:f},placement:g}],section:({h:e,nodes:t,dataset:n,create:r,util:i})=>{const[o]=t,{title:a,description:s,measures:l}=c.isEnabled()?c.getAttributes({dataset:n,nodes:[o]}):{},u=[];a&&u.push(r.text({value:a,style:{bold:!0}})),s&&u.push(r.text({value:s}));const d=c.hideBasic();d&&!l.length&&(a||s)||u.push(r.text({value:o.data.label,style:{bold:!0}})),d||(u.push(r.color({nodes:t,property:Ld.SCALE.COLOR})),u.push(...t.map((e=>{const{segment:t,end:o}=e.data,a=t||o,{key:s,field:l}=a.source;return r.measure({label:i.dataset.title(s,l),value:P5({dataset:n,data:e.data,valueData:a})})})))),l&&u.push(...l.map((e=>r.measure({label:e.label,value:e.value,survive:{color:!0,duplicate:!0}})))),c.chart.isEnabled()&&(c.chart.hasLimitation()?(c.chart.destroy(),u.push(r.raw({value:c.chart.createLimitationRow()}))):u.push(r.raw({value:c.chart.createContainer({h:e})})));const{customTooltipImages:f}=o.data;return c.isEnabled()&&f&&u.push(...f.map((t=>r.raw({value:c.createImageRow({value:t,h:e})})))),u},layout:{grouping:!0,single:()=>!(!c.isEnabled()||!c.hasImages())||c.chart.isEnabled()},events:{tooltip:{beforeShow:({collectNodes:e})=>c.isEnabled()&&c.hasImages()?c.addImages({nodes:e()}):Promise.resolve(),afterShow:({nodes:e})=>{c.chart.isEnabled()&&!c.chart.hasLimitation()&&c.chart.show({nodes:e,properties:l.query.getProperties()})}},interaction:{mouseleave:()=>{c.chart.isEnabled()&&c.chart.hasAlternateState()&&c.chart.hide()}}}},legend:{keys:{tooltip:Ld.COMPONENT.LEGEND_TOOLTIP,component:Ld.COMPONENT.LEGEND_CATEGORICAL}}}})}const{model:z5}=Yg,F5=({picasso:t,chart:n,environment:r,flags:i,viewState:o,viewCache:a,actions:s,selectionService:l})=>{const c=e.useStaleLayout(),{width:u,height:d}=e.useRect(),[f,h]=e.useState(),[p,m]=e.useState(),g=e.useModel(),y=e.useApp(),v=e.useAppLayout(),b=e.usePlugins(),x=e.useEmbed();e.useEffect((()=>{if(!(c&&null!=n&&n.update&&r&&o))return;const e=function(e){var t=e.source,n=e.metaAdditionsFn,r=e.experimental,i=void 0===r?{filter:!1}:r,o=Oa(!0,{},t),a=i.filter?function(e){var t=e.qHyperCube,n=El(t,Ml.DIMENSION),r=n.reduced,i=n.filtered;t[Ml.DIMENSION]=r;var o=El(t,Ml.MEASURE),a=o.reduced,s=o.filtered;return t[Ml.MEASURE]=a,{dimensions:i,measures:s}}(o):{dimensions:[],measures:[]},s=Cl(o),l=function(){var e=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,c=a.qMode,u=s.length,d=l.length,f=ta({mode:{S:"S"===c,P:"P"===c,K:"K"===c,T:"T"===c},dimensionCount:u,measureCount:d,hasMultipleDimensions:u>1,hasMultipleMeasures:d>1,isOneDimensional:1===u,isTwoDimensional:2===u},o);return ta(ta({},f),r({layout:t,meta:f}))}({layout:o,additionsFn:n,additionsProps:{size:s.size}});return e.filteredFields=a,e},c={refs:ta({},s.refs),meta:l(),getLayout:function(){return o},getLayoutValue:function(e,t){return yl(o,e,t)},setLayoutValue:function(e,t){bl(o,e,t),s=Cl(o),c.meta=l()},getHyperCube:function(){return o.qHyperCube},getHyperCubeValue:function(e,t){return yl(o.qHyperCube,e,t)},setHyperCubeValue:function(e,t){bl(o.qHyperCube,e,t),s=Cl(o),c.meta=l()},getDataPages:function(){return yl(o,s.refs.dataPages)},setDataPages:function(e){bl(o,s.refs.dataPages,e),c.meta=l()}};return c}({source:c,metaAdditionsFn:function({layout:e}){var t;const n=yl(e,"qHyperCube.qMeasureInfo",[]),r=n.some((({series:e=zd.NOPE_SERIES})=>em(e)===zd.TYPE.LINE)),i=T.continuous(e,(()=>r&&S.isTime(!0,e))),o=!M2(yl(e,"version","")),a=n.filter((({series:e=zd.NOPE_SERIES})=>em(e)===zd.TYPE.BAR)),s=a.length,l=a.filter((({series:e=zd.NOPE_SERIES})=>e.axis!==zd.AXIS.SECONDARY)).length,c=a.filter((({series:e=zd.NOPE_SERIES})=>e.axis===zd.AXIS.SECONDARY)).length,u=o?l>1||c>1:s>1,d=("grouped"!==yl(e,"barGrouping.grouping")||i)&&u,f=!d&&s>1,h=o&&d&&(l>0&&c>1||l>1&&c>0),p=!(null==e||null===(t=e.qHyperCube)||void 0===t||null===(t=t.qDimensionInfo)||void 0===t||null===(t=t[0])||void 0===t||!t.qLocked);return{canBeContinuous:S.canBeContinuous(e),isDiscrete:!i,isContinuous:i,isTime:S.isTime(i,e),isSnapshot:T.snapshot(e),isBarSeriesStacked:d,isBarSeriesGrouped:f,isBarSeriesStackedInBothAxis:h,isGrouped:f||h,isGroupedByMeasure:f||h,isDimensionLocked:p,groupSize:h?2:s,hasLineSeries:r}}}),{options:f,translator:p}=r,{direction:m}=f,w="rtl"===m,M=function({genericObjectModel:e,layoutService:t}){const n={cube:void 0,on:!1},r=T2({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:g,layoutService:e}),E=gl({chart:n,layoutService:e,config:{logicalSize:{width:u,height:d},rtl:w},typeConfig:{type:"major-minor",fallback:"vertical",invert:!0,measureAxes:[{ref:"measureAxes.0",name:"minor"},{ref:"measureAxes.1",name:"minorSecondary"}]}}),k=E2({layoutService:e,flags:i}),C=e.meta.isDiscrete?function({chart:e,genericObjectModel:t,layoutService:n,dockService:r,seriesModel:i,viewState:o,rtl:a,actions:s,picasso:l}){return D5({chart:e,actions:s,componentKey:Xg(i),enigmaModel:t,layoutService:n,dockService:r,viewState:o,rtl:a,itemWidths:R5,options:{axisKey:Ld.COMPONENT.AXIS.MAJOR,renderer:l.renderer("svg")()}})}({chart:n,genericObjectModel:g,layoutService:e,dockService:E,seriesModel:k,viewState:o,rtl:"rtl"===r.options.direction,actions:s,picasso:t}):void 0,A=e.meta.isContinuous?z5({model:g,layoutService:e,viewState:o,viewCache:a}):void 0,O=function(e){var t=e.theme,n=e.config,r=void 0===n?{}:n,i=r.id,o=r.resolve,a=void 0===o?[]:o,s=r.transform,l=void 0===s?[]:s,c=r.extend,u=void 0===c?[]:c,d={theme:t,matrix:Bu(a),styles:void 0};return d.styles=Uu({theme:t,id:i,transform:l,extend:u,matrix:d.matrix}),{getStyles:function(){return d.styles},getTheme:function(){return d.theme},setTheme:function(e){d.theme=e,d.styles=Uu({theme:e,id:i,transform:l,extend:u,matrix:d.matrix})}}}({theme:r.theme,config:{id:"comboChart",resolve:[["object","label.value","numFontSize","12px",e=>parseInt(e,10)]]}}),N=_5({layoutService:e,dockService:E,themeService:O,flags:i}),q=Z2({actions:s,appLayoutModel:v,appModel:y,chart:n,environment:r,flags:i,genericObjectModel:g,layoutService:e,picasso:t,seriesModel:k,viewState:o,styleModel:N}),D=function({layoutService:e,seriesModel:t}){const{isContinuous:n}=e.meta,r="qDimensionInfo/0",i=`${r}:numeric`,o=t.meta.primarySeries.map((e=>e.ref)),a=t.meta.secondarySeries.map((e=>e.ref)),s=n?[{key:i,from:r,override:{value:e=>e.qNum}}]:void 0;return{main:{major:r,majorNumeric:i,minorsPrimary:o,minorsSecondary:a},virtuals:s}}({layoutService:e,seriesModel:k}),R=q2({isPrimary:!0,layoutService:e,reducedModel:M,seriesModel:k,continuousModel:A,flags:i}),I=q2({isPrimary:!1,layoutService:e,reducedModel:M,seriesModel:k,continuousModel:A,flags:i}),_=G2({config:{measureAxesRef:"measureAxes.0",formatter:Ld.FORMATTER.PRIMARY},chart:n,layoutService:e,extremumModel:R,dockService:E,seriesModel:k,themeService:O}),P=G2({config:{measureAxesRef:"measureAxes.1",formatter:Ld.FORMATTER.SECONDARY},chart:n,layoutService:e,extremumModel:I,dockService:E,seriesModel:k,themeService:O}),L=K2({genericObjectModel:g,layoutService:e}),z=of({flags:i,layout:c,app:y,model:g,picasso:t,chart:n,translator:p,localeInfo:v.qLocaleInfo,embed:x,options:f}),F=L5({chart:n,actions:s,translator:p,rtl:w,dockService:E,seriesModel:k,colorService:q,themeService:O,propertiesModel:L,custom:z}),j=_d({layoutService:e,discreteModel:C}),$=function(e){return{layout:e.getLayout(),keys:{SCALE:{MAJOR:Ld.SCALE.MAJOR,MAJOR_INNER:Ld.SCALE.MAJOR_INNER,MINOR:{PRIMARY:Ld.SCALE.MINOR.PRIMARY,SECONDARY:Ld.SCALE.MINOR.SECONDARY}},COMPONENT:{BAR_PRIMARY:`${Ld.COMPONENT.BAR}-${zd.AXIS.PRIMARY}`,BAR_SECONDARY:`${Ld.COMPONENT.BAR}-${zd.AXIS.SECONDARY}`,AXIS:{MAJOR:Ld.COMPONENT.AXIS.MAJOR,MAJOR_CONTINUOUS:Ld.COMPONENT.AXIS.MAJOR_CONTINUOUS,TIME_INNER:Ld.COMPONENT.AXIS.TIME_INNER,MINOR:{PRIMARY:Ld.COMPONENT.AXIS.MINOR.PRIMARY,SECONDARY:Ld.COMPONENT.AXIS.MINOR.SECONDARY}},AXIS_TITLE:{MAJOR:Ld.COMPONENT.AXIS_TITLE.MAJOR,MINOR:{PRIMARY:Ld.COMPONENT.AXIS_TITLE.MINOR.PRIMARY,SECONDARY:Ld.COMPONENT.AXIS_TITLE.MINOR.SECONDARY}}},COLLECTION:{MAIN:Ld.COLLECTION.MAIN}}}}(e),H=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 oa(na().mark((function e(){var r,a,s,l;return na().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=oa(na().mark((function e(n){var r;return na().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(ta({},i));case 4:if("object"===ra(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(ta({},i))}))),e.next=6,Promise.all([a,s]);case 6:l=e.sent,o.initialized=!0,(r=o.definitions).push.apply(r,ca(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=la(e.filter((function(e){return e.key&&e.key===t.key})),1)[0];if(n){var r=Oa(!0,{},n.brush);Oa(!0,n,t),t.brush&&(n.brush=function(e,t){return"object"===ra(e)&&Object.keys(e).length?(Array.isArray(t.consume)&&(e.consume=Tl({originalArray:e.consume,newArray:t.consume,matchKey:"context"})),Array.isArray(t.trigger)&&(e.trigger=Tl({originalArray:e.trigger,newArray:t.trigger,matchKey:"on"})),e):t}(r,t.brush))}else e.push(t)})),e):e}}}({picassoInstance:t,plugins:b,pluginArgs:$});h({selectionService:l,genericObjectModel:g,appModel:y,dockService:E,styleModel:N,layoutService:e,fieldModel:D,seriesModel:k,reducedModel:M,primaryExtremumModel:R,secondaryExtremumModel:I,primaryTickModel:_,secondaryTickModel:P,propertiesModel:L,colorService:q,themeService:O,appLayoutModel:v,tooltipService:F,flags:i,...C&&{discreteModel:C},...A&&{continuousModel:A},refLineModel:j,pluginService:H})}),[c,g,y,v,r,null==n?void 0:n.update,o]);const[,w]=e.usePromise((()=>{if(!f)return Promise.resolve();const{layoutService:e,colorService:t,reducedModel:n,primaryExtremumModel:i,secondaryExtremumModel:a,propertiesModel:c,continuousModel:u,discreteModel:d,pluginService:h}=f,p=u?()=>{var t;u.update(e.getLayout());const n=u.initialFetch(),i=!e.meta.isSnapshot&&(null==r||null===(t=r.options)||void 0===t||null===(t=t.viewState)||void 0===t?void 0:t.zoom);return i&&o.preventSet("zoom",i),n}:()=>Promise.resolve(),y=t.initialize().then((()=>{const e=t.getSettings().field;l&&l.setBrushAliases({colorField:e}),t.custom.updateLegend()}));return Promise.all([h.initialize(),n.command.initialize(),g?c.command.initialize():Promise.resolve(),y,p(),s.scroll.attachDiscreteModel(d)]).then((()=>Promise.all([i.command.initialize(),a.command.initialize()]).then((()=>m(f)))))}),[f]);if(w)throw w;return p};function j5(){const[t,n]=e.useState();return e.useEffect((()=>{n(function(e){var t=ta({},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 $5={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 H5={query:{getCanScroll:()=>!0}};function B5(){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}}(),c=function(){var t;const n=e.useConstraints(),[r,i]=e.useState(!1),[o,a]=e.useState(!1),s=e.useLayout(),l=e.useTranslator(),c=!!s.qSelectionInfo.qInSelections,u=!(null===(t=s.qHyperCube)||void 0===t||null===(t=t.qDimensionInfo)||void 0===t||null===(t=t[0])||void 0===t||!t.qIsOneAndOnlyOne);e.useEffect((()=>{n&&i(!n.select&&!n.active)}),[n]);const d=e=>{a("boolean"==typeof e?e:!o)};return e.useAction((()=>({key:"lasso",label:l.get(o?"Tooltip.ToggleOffLassoSelection":"Tooltip.ToggleOnLassoSelection"),icon:$5,hidden:!r||!c||u,active:o,action:d})),[c,u,o,r,l.language()]),{action:d,enabled:()=>r,active:()=>o}}();let u=H5;e.useEffect((()=>{t&&(r(!t.active),o(!t.active),s(!t.passive))}),[t]);const[d]=e.useState({});return d.scroll={enabled:()=>n&&u.query.getCanScroll(),attachDiscreteModel:e=>{u=e||H5}},d.interact={enabled:()=>i},d.tooltip={enabled:()=>a},d.lasso=c,d.select=l,d}function V5({clearMinor:e,clearDiscrete:t,clearLegend:n}){e(),e({componentName:"minor-secondary-range-brush",eventName:"minorRange-secondary"}),t({brushName:!1}),n()}function U5({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]===Ld.COMPONENT.LEGEND_CATEGORICAL}),r()}var W5={exports:{}};!function(e,t){self,e.exports=(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},a=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,i=t.call(e,"constructor"),o=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!i&&!o)return!1;for(r in e);return void 0===r||t.call(e,r)},s=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(i)return i(e,n).value}return e[n]};e.exports=function e(){var t,n,r,i,c,u,d=arguments[0],f=1,h=arguments.length,p=!1;for("boolean"==typeof d&&(p=d,d=arguments[1]||{},f=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});f<h;++f)if(null!=(t=arguments[f]))for(n in t)r=l(d,n),d!==(i=l(t,n))&&(p&&i&&(a(i)||(c=o(i)))?(c?(c=!1,u=r&&o(r)?r:[]):u=r&&a(r)?r:{},s(d,{name:n,newValue:e(p,u,i)})):void 0!==i&&s(d,{name:n,newValue:i}));return d}},645:(e,t)=>{(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},a=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,i=t.call(e,"constructor"),o=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!i&&!o)return!1;for(r in e);return void 0===r||t.call(e,r)},s=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(i)return i(e,n).value}return e[n]};e.exports=function e(){var t,n,r,i,c,u,d=arguments[0],f=1,h=arguments.length,p=!1;for("boolean"==typeof d&&(p=d,d=arguments[1]||{},f=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});f<h;++f)if(null!=(t=arguments[f]))for(n in t)r=l(d,n),d!==(i=l(t,n))&&(p&&i&&(a(i)||(c=o(i)))?(c?(c=!1,u=r&&o(r)?r:[]):u=r&&a(r)?r:{},s(d,{name:n,newValue:e(p,u,i)})):void 0!==i&&s(d,{name:n,newValue:i}));return d}}},n={};function r(t){var i=n[t];if(void 0!==i)return i.exports;var o=n[t]={exports:{}};return e[t](o,o.exports,r),o.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};(()=>{r.r(i),r.d(i,{default:()=>qe});var e=r(229),t=r.n(e);const n=function(e,t,n){if(!t)return!1;var r,i=t.split("."),o=i[i.length-1],a=e;for(r=0;r<i.length-1;++r)void 0===a[i[r]]&&(a[i[r]]=Number.isNaN(+i[r+1])?{}:[]),a=a[i[r]];if(void 0!==n){var s=a[o];return a[o]=n,{updated:n,previous:s}}return delete a[o],!1},o=function(e,t,n){var r,i=t.split("."),o=e;if(void 0===o)return n;for(r=0;r<i.length;++r){if(void 0===o[i[r]])return n;o=o[i[r]]}return o},a={EXPRESSIONS:{observed:"",trend:"STL_Trend",seasonal:"STL_Seasonal",residual:"STL_Residual"},OPTIONS:[{value:"observed",translation:"cao.trendDecomposition.parameters.decomposition.observed"},{value:"trend",translation:"cao.trendDecomposition.parameters.decomposition.trend"},{value:"seasonal",translation:"cao.trendDecomposition.parameters.decomposition.seasonal"},{value:"residual",translation:"cao.trendDecomposition.parameters.decomposition.residual"}]};var s="".concat(" ","(").concat(" "),l="".concat(" ",")").concat(" ");function c(e){return s+e+l}function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.qLibraryId){var n=function(e,t){if(!t)return null;var n,r;for(n=0;n<t.length;n++)if((r=t[n]).qInfo.qId===e)return r;return null}(e.qLibraryId,t.dimensionList);return n&&n.qData.info[0].qTags.indexOf("$numeric")>-1}var r=function(e,t){if(!t)return null;var n,r,i=function(e){var t=e.trim();"="===t.charAt(0)&&(t=(t=t.substring(1)).trim());var n=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(n)&&(t=(t=t.substring(1,n)).trim()),t}(e);for(n=0;n<t.length;n++){if((r=t[n]).qName===i)return r;if(r.qDerivedFieldData)for(var o=0;o<r.qDerivedFieldData.qDerivedFieldLists.length;++o)for(var a=r.qDerivedFieldData.qDerivedFieldLists[o],s=0;s<a.qFieldDefs.length;++s){var l=a.qFieldDefs[s];if(l.qName===i)return l}}return null}(e.qDef.qFieldDefs[0],t.fieldList);return r&&r.qTags.indexOf("$numeric")>-1}function d(e){return!(!e.fullAccumulation&&!e.fullRange)}function f(e,t){var n=e.crossAllDimensions;return 2===t&&n?"RowNo(Total)":"RowNo()"}function h(e){var t=function(e){return e?(e=function(e){return e.replace(/\/\*[^]*?\*\//g,"")}(e=function(e){return e.replace(/\/\/(.*)$/gm,"")}(e))).trim():""}(e),n=t.trim();return"="===n.substring(0,1)?n.substring(1).trim():n}function p(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function m(e,t){var n=e.crossAllDimensions;return 2===t&&n?"Above(Total ":"Above("}function g(e){return void 0===e?")":", 0, ".concat(e,")")}function y(e){return"Replace(Replace(".concat(e,",'''',''''''),'$','$''&''')")}function v(e,t){return e?"".concat(t,'={">=$(=Min(').concat(t,"))<=$(=Max(").concat(t,'))"}'):"".concat(t,'={"=Only({1}').concat(t,")>='$(=").concat(y("MinString(".concat(t,")")),")' and Only({1}").concat(t,")<='$(=").concat(y("MaxString(".concat(t,")")),")'\"}")}function b(e){var t=e.modifier,n=void 0===t?{}:t,r=e.dimensions,i=e.dimensionAndFieldList,o=e.funcComp,a=void 0===o?"Sum":o,s=e.valueComp,l=void 0===s?"0":s;if(!n.showExcludedValues)return"";if(r&&1===r.length){var c=v(u(r[0],i),p(0));return"".concat(a,"({1<").concat(c,">}").concat(l,")")}if(r&&2===r.length){var d=u(r[0],i),f=u(r[1],i),h=p(0),m=p(1),g=v(d,h),y=v(f,m);return"".concat(a,"({1<").concat(g,",").concat(y,">}").concat(l,")")}return"".concat(a,"({1}").concat(l,")")}function x(e){return"".concat(e,"(")}function S(e){var t=e.properties,n=e.layout;return o(t,"qHyperCubeDef.qDimensions",o(n,"qHyperCube.qDimensionInfo",[])).length}const w={isFullRange:d,getNumDimensions:S,getExpressionWithExcludedComp:function(e){var t=e.expression,n=e.modifier,r=e.dimensions,i=e.dimensionAndFieldList,o=e.treatMissingAsNull,a=c(h(t));if(!n.showExcludedValues)return a;var s=b({modifier:n,dimensions:r,dimensionAndFieldList:i}),l=o?"":", 0";if(r&&1===r.length){var u=p(0);return"If(Count(".concat(u,") > 0, ").concat(a," + ").concat(s).concat(l,")")}if(r&&2===r.length){var d=p(0),f=p(1);return"If(Count(".concat(d,") * Count(").concat(f,") > 0, ").concat(a," + ").concat(s).concat(l,")")}return a},getRowNoComp:f,getNumStepComp:function(e,t){if(!d(e)){var n=e.steps;return"number"!=typeof n||Number.isNaN(n)?6:n}return f(e,t)},getAboveCompPrefix:m,getAboveCompSuffix:g,getAboveComp:function(e,t,n,r){return m(e,t)+n+g(r)},getFunctionPrefix:x,getFunctionSuffix:function(){return")"},getRangeComp:function(e,t){return x(e)+t+")"},getAggrComp:function(e,t,n){return"Aggr(".concat(e,", ").concat(t,", ").concat(n,")")},getExcludedComp:b,needDimension:function(e){var t=e.modifier,n=e.properties,r=e.layout,i=function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(t);return 0===i&&2===S({properties:n,layout:r})},getDimComp:function(e,t){var n=function(e){return e[arguments.length>1&&void 0!==arguments[1]?arguments[1]:0].qDef.qSortCriterias[0]}(e,t),r=p(t);if(!n.qSortByExpression&&!n.qSortByNumeric&&!n.qSortByAscii)return r;var i=["Descending","Ascending"],o=n.qSortByNumeric?"(Numeric, ".concat(i[(n.qSortByNumeric+1)/2],")"):"",a=n.qSortByAscii?"(Text, ".concat(i[(n.qSortByAscii+1)/2],")"):"";return n.qSortByNumeric&&n.qSortByAscii?"(".concat(r,", ").concat(o,", ").concat(a,")"):n.qSortByNumeric?"(".concat(r,", ").concat(o,")"):n.qSortByAscii?"(".concat(r,", ").concat(a,")"):r},simplifyExpression:h,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var n=t.indexOf(s);if(-1!==n){var r=t.indexOf(l);if(-1!==r)return t.substring(n+s.length,r)}}},initModifier:function(e,t){Object.keys(t).forEach((function(n){void 0===e[n]&&(e[n]=t[n])}))},isNumeric:u,isApplicable:function(e){var t=e.properties,n=e.layout,r=e.minDimensions,i=void 0===r?1:r,o=e.maxDimensions,a=void 0===o?2:o;if(!t&&!n)return!0;var s=S({properties:t,layout:n});return s>=i&&s<=a},getExpressionWithMarkers:c,canExtract:function(e){var t=e.indexOf(s),n=e.indexOf(l);return t>-1&&n>-1&&t<n},getDimDefWithWrapper:p,getFieldWithWrapper:function(e){var t=e?e.replace(/]/g,"]]"):e;return"[".concat(t,"]")},generateTSDExpression:function(e,t,n){var r=t||e.outputExpression;if(e.base&&e.base.qDef&&(r=t!==e.base.qDef?t:e.base.qDef),"observed"!==e.decomposition){var i=n.qHyperCubeDef.qMeasures.find((function(t){return t.qDef.base&&t.qDef.base.qLibraryId&&e.base&&e.base.qLibraryId?t.qDef.base.qLibraryId===e.base.qLibraryId:null}));i&&t!==i.qDef.qLabel&&(r=i.qLibraryId||i.qDef.base.qLibraryId?"[".concat(i.qDef.qLabel,"]"):i.qDef.base.qDef);var o=function(e){var t=a.OPTIONS.find((function(t){return t.value===e.decomposition}));return t?a.EXPRESSIONS[t.value]:""}(e);r=r.startsWith("=")?r.substr(1):r,r="".concat(o,"(").concat(r,", ").concat(e.steps,")")}return r},getDecomposition:function(e){var t="observed";return Object.values(a.EXPRESSIONS).find((function(n){var r=e.qDef.base.qDef.toLowerCase()||e.qDef.qDef.toLowerCase();return a.EXPRESSIONS[n]&&r.includes(a.EXPRESSIONS[n].toLowerCase())&&(t=n),n})),t}};function M(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function E(e){return E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},E(e)}var k=t().bind(null,!0),C={},T=Array.isArray;function A(e){return null!=e&&!Array.isArray(e)&&"object"===E(e)}function O(e){return void 0===e}function N(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function q(e,t){var n,r=t.substring(1).split("/").slice(0,-1);return r.forEach((function(t,i){if(i!==r.length){n=+t;var o=Number.isNaN(n)?{}:[];e[n||t]=O(e[n||t])?o:e[t],e=e[n||t]}})),e}function D(e,t){var n=!0;if(A(e)&&A(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((function(r){D(e[r],t[r])||(n=!1)})),n);if(T(e)&&T(t)){if(e.length!==t.length)return!1;for(var r=0,i=e.length;r<i;r+=1)if(!D(e[r],t[r]))return!1;return!0}return e===t}C.generate=function(e,t,n){n=n||"";var r=[];return Object.keys(t).forEach((function(i){var o=function(e){return e?k({},{val:e}).val:e}(t[i]),a=e[i],s="".concat(n,"/").concat(i);D(o,a)||N(t,i)||(O(a)?r.push({op:"add",path:s,value:o}):A(o)&&A(a)?r=r.concat(C.generate(a,o,s)):T(o)&&T(a)?r=r.concat(function(e,t,n){var r=[],i=e.slice(),o=-1;function a(e,t,n){if(e[n]&&O(e[n].qInfo))return null;if(e[n]&&e[n].qInfo.qId===t)return n;for(var r=0,i=e.length;r<i;r+=1)if(e[r]&&e[r].qInfo.qId===t)return r;return-1}if(D(t,i))return r;if(!O(t[0])&&O(t[0].qInfo))return r.push({op:"replace",path:n,value:t}),r;for(var s=i.length-1;s>=0;s-=1)-1===(o=a(t,i[s].qInfo&&i[s].qInfo.qId,s))?(r.push({op:"remove",path:"".concat(n,"/").concat(s)}),i.splice(s,1)):r=r.concat(C.generate(i[s],t[o],"".concat(n,"/").concat(s)));for(var l=0,c=t.length;l<c;l+=1)-1===(o=a(i,t[l].qInfo&&t[l].qInfo.qId))?(r.push({op:"add",path:"".concat(n,"/").concat(l),value:t[l]}),i.splice(l,0,t[l])):o!==l&&(r.push({op:"move",path:"".concat(n,"/").concat(l),from:"".concat(n,"/").concat(o)}),i.splice(l,0,i.splice(o,1)[0]));return r}(a,o,s)):r.push({op:"replace",path:"".concat(n,"/").concat(i),value:o}))})),Object.keys(e).forEach((function(i){O(t[i])&&!N(e,i)&&r.push({op:"remove",path:"".concat(n,"/").concat(i)})})),r},C.apply=function(e,t){t.forEach((function(t){var n,r,i=q(e,t.path),o=t.path.split("/").splice(-1)[0],a=o&&Number.isNaN(+o)?i[o]:i[+o]||i,s=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(i=null,a=e),"add"===t.op||"replace"===t.op)if(T(i))"-"===o&&(o=i.length),i.splice(+o,"add"===t.op?0:1,t.value);else if(T(a)&&T(t.value)){var l,c=t.value.slice();a.length=0,(l=a).push.apply(l,function(e){if(Array.isArray(e))return M(e)}(r=c)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||function(e,t){if(e){if("string"==typeof e)return M(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?M(e,t):void 0}}(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}else if(A(a)&&A(t.value))n=a,Object.keys(n).forEach((function(e){Object.getOwnPropertyDescriptor(n,e).configurable&&!N(n,e)&&delete n[e]})),k(a,t.value);else{if(!i)throw new Error("Patchee is not an object we can patch");i[o]=t.value}else if("move"===t.op){var u=q(e,t.from);T(i)?i.splice(+o,0,u.splice(+s,1)[0]):(i[o]=u[s],delete u[s])}else"remove"===t.op&&(T(i)?i.splice(+o,1):delete i[o])}))},C.clone=function(e){return k({},e)},C.createPatch=function(e,t,n){var r={op:e.toLowerCase(),path:n};return"move"===r.op?r.from=t:void 0!==t&&(r.value=t),r},C.updateObject=function(e,t){Object.keys(e).length?C.apply(e,C.generate(e,t)):k(e,t)};const R=C,I=function(e,n,r){if(!e)return Promise.resolve();var i=R.generate(n,r);return t()(!0,n,r),i&&i.length?(i=i.map((function(e){return{qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}})),e.applyPatches(i,!0)):Promise.resolve()};var _="accumulation";function P(e,t){var n=o(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===_)return n[r]}function L(e,t){var n=function(e,t){var n=o(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===_)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var z={type:"accumulation",disabled:!1,accumulationDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullAccumulation:!1,steps:6,outputExpression:""};const F={translationKey:"properties.modifier.accumulation",needDimension:w.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return w.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,i=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!n)return t;var l=a;void 0===l&&(l=w.getNumDimensions({properties:r,layout:i}));var c=o(r,"qHyperCubeDef.qDimensions",[]),u=w.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:c,dimensionAndFieldList:s}),d=w.getNumStepComp(n,l),f=w.getAboveComp(n,l,u,d),h=w.getRangeComp("RangeSum",f);if(w.needDimension({modifier:n,properties:r,layout:i})){var p=w.getDimComp(c,1),m=w.getDimComp(c,0),g=w.getAggrComp(h,p,m);h=n.showExcludedValues?w.getExcludedComp({modifier:n,dimensions:c,dimensionAndFieldList:s,valueComp:g}):g}return h},extractInputExpression:w.extractInputExpression,initModifier:function(e){w.initModifier(e,z)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.accumulation.disclaimer",show:function(e,t){return!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(L(t,e),".accumulationDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.accumulation.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(L(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.accumulation.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(L(t,e),".fullAccumulation")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(L(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var n=P(t,e);if(n){var r=n.steps;n.steps="number"!=typeof r||Number.isNaN(r)?6:Math.abs(r)}},show:function(t){var n=P(t,e);return n&&!n.fullAccumulation}},showExcludedValues:{refFn:function(t){return"".concat(L(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,n,r){var i=r.ext.support.modifiers;if(!Array.isArray(i)||-1===i.indexOf(_))return!1;var o=P(t,e);return o&&!o.disabled}};return n}};var j="movingAverage";function $(e,t){var n=o(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===j)return n[r]}function H(e,t){var n=function(e,t){var n=o(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===j)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var B={type:"movingAverage",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullRange:!1,steps:6,outputExpression:"",nullSuppression:!1};const V={translationKey:"properties.modifier.movingAverage",needDimension:w.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return w.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t,n=e.expression,r=e.modifier,i=e.properties,a=e.layout,s=e.numDimensions,l=e.dimensionAndFieldList;if(!r)return n;var c=s;void 0===c&&(c=w.getNumDimensions({properties:i,layout:a}));var u=o(i,"qHyperCubeDef.qDimensions",[]),d=r.showExcludedValues&&r.nullSuppression,f=w.getExpressionWithExcludedComp({expression:n,modifier:r,dimensions:u,dimensionAndFieldList:l,treatMissingAsNull:d}),h=w.getNumStepComp(r,c),p=w.getAboveComp(r,c,f,h);if(r.nullSuppression)t=w.getRangeComp("RangeAvg",p);else{var m=w.getRangeComp("RangeSum",p),g=function(e,t){var n=w.getRowNoComp(e,t);if(!w.isFullRange(e)){var r=e.steps,i="number"!=typeof r||Number.isNaN(r)?6:r;return"RangeMin(".concat(i,", ").concat(n,")")}return n}(r,c);t="".concat(m," / ").concat(g)}var y=t;if(w.needDimension({modifier:r,properties:i,layout:a})){var v=w.getDimComp(u,1),b=w.getDimComp(u,0),x=w.getAggrComp(y,v,b);y=r.showExcludedValues?w.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:l,funcComp:"Only",valueComp:x}):x}return y},extractInputExpression:w.extractInputExpression,initModifier:function(e){w.initModifier(e,B)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.movingAverage.disclaimer",show:function(e,t){return!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(H(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.movingAverage.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(H(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.movingAverage.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(H(t,e),".fullRange")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(H(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var n=$(t,e);if(n){var r=n.steps;n.steps="number"!=typeof r||Number.isNaN(r)?6:Math.abs(r)}},show:function(t){var n=$(t,e);return n&&!n.fullRange}},showExcludedValues:{refFn:function(t){return"".concat(H(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat(H(t,e),".nullSuppression")},type:"boolean",translation:t.showNull||"properties.dimensions.showNull",schemaIgnore:!0,defaultValue:!1,inverted:!0}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,n,r){var i=r.ext.support.modifiers;if(!Array.isArray(i)||-1===i.indexOf(j))return!1;var o=$(t,e);return o&&!o.disabled}};return n}};var U="timeSeriesDecomposition";function W(e,t){var n=o(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===U)return n[r]}function Y(e,t){var n=function(e,t){var n=o(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===U)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var X={type:"timeSeriesDecomposition",disabled:!1,decomposition:"",steps:2,outputExpression:""};const G={translationKey:"properties.modifier.timeSeriesDecomposition",needDimension:w.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return w.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties;return n?w.generateTSDExpression(n,t,r):t},extractInputExpression:w.extractInputExpression,initModifier:function(e,t){w.initModifier(e,X),""===e.decomposition&&t&&(e.decomposition=w.getDecomposition(t))},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.timeSeriesDecomposition||"properties.modifier.timeSeriesDecomposition",show:function(e,t){return!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{decomposition:{refFn:function(t){return"".concat(Y(t,e),".decomposition")},type:"string",translation:t.modifierTrendDecompositionDecomposition||"properties.modifier.trendDecomposition.decomposition",component:"dropdown",schemaIgnore:!0,defaultValue:t.trendDecompositionParametersDecompositionObserved||"cao.trendDecomposition.parameters.decomposition.observed",options:a.OPTIONS},steps:{refFn:function(t){return"".concat(Y(t,e),".steps")},type:"integer",translation:t.modifierTimeSeriesDecompositionPeriods||"properties.modifier.timeSeriesDecomposition.periods",schemaIgnore:!0,defaultValue:2,change:function(t,n){var r=W(t,e);if(r){var i=r.steps;r.steps="number"!=typeof i||Number.isNaN(i)?2:Math.abs(i),n.properties.qHyperCubeDef.qMeasures=n.properties.qHyperCubeDef.qMeasures.map((function(e){return e.qDef.modifiers.map((function(e){return"timeSeriesDecomposition"===e.type?e.steps=i:e.steps=e.steps,e})),e}))}},show:function(t){var n=W(t,e);return n&&!n.fullRange}}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,n,r){var i=r.ext.support.modifiers;if(!Array.isArray(i)||-1===i.indexOf(U))return!1;var o=W(t,e);return o&&!o.disabled}};return n}};var K="difference";function J(e,t){var n=o(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===K)return n[r]}function Q(e,t){var n=function(e,t){var n=o(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===K)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var Z={type:"difference",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,outputExpression:""};const ee={translationKey:"properties.modifier.difference",needDimension:w.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return w.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},extractInputExpression:w.extractInputExpression,generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,i=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!n)return t;var l=a;void 0===l&&(l=w.getNumDimensions({properties:r,layout:i}));var c=o(r,"qHyperCubeDef.qDimensions",[]),u=w.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:c,dimensionAndFieldList:s}),d=w.getAboveComp(n,l,u),f="".concat(u," - ").concat(d);if(w.needDimension({modifier:n,properties:r,layout:i})){var h=w.getDimComp(c,1),p=w.getDimComp(c,0),m=w.getAggrComp(f,h,p);f=n.showExcludedValues?w.getExcludedComp({modifier:n,dimensions:c,dimensionAndFieldList:s,funcComp:"Only",valueComp:m}):m}return f},initModifier:function(e){Object.keys(Z).forEach((function(t){void 0===e[t]&&(e[t]=Z[t])}))},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.difference.disclaimer",show:function(e,t){return!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(Q(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.difference.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(Q(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.difference.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},showExcludedValues:{refFn:function(t){return"".concat(Q(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,n,r){var i=r.ext.support.modifiers;if(!Array.isArray(i)||-1===i.indexOf(K))return!1;var o=J(t,e);return o&&!o.disabled}};return n}};var te="normalization";function ne(e,t){var n=o(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===te)return n[r]}function re(e,t){var n=function(e,t){var n=o(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===te)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}function ie(e,t){for(var n=0;n<e.length;n++)if(e[n].value===t)return n;return-1}var oe={type:"normalization",disabled:!1,primaryDimension:0,outputExpression:"",dimensionalScope:2,selectionScope:2};function ae(e){return 2===e?"{1}":""}function se(e,t,n){return 1===e?"{$<".concat(w.getFieldWithWrapper(t),"={'").concat(n,"'}>}"):""}function le(e,t){return 0===e&&t>1||2===e?"Total":""}function ce(e,t,n){return 0===e&&t>1?"<".concat(w.getDimDefWithWrapper(n),">"):""}const ue={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,n=e.layout;return w.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},extractInputExpression:w.extractInputExpression,generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,i=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!n)return t;var l=a;void 0===l&&(l=w.getNumDimensions({properties:r,layout:i}));var c=o(r,"qHyperCubeDef.qDimensions",[]),u=w.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:c,dimensionAndFieldList:s}),d=n.selectionScope,f=n.dimensionalScope;return function(e,t,n,r,i,o,a){var s=ae(t),l=se(t,n,r),c=""===s&&""===l?"":s||l,u=le(i,o),d=ce(i,o,a),f=function(e){for(var t=[],n=0;n<e;n++)t[n]=w.getDimDefWithWrapper(n);return t.join(", ")}(o);return"".concat(e,"/ Sum(").concat(c," ").concat(u).concat(d," Aggr(").concat(c," ").concat(e,", ").concat(f,"))")}(u,d,n.field,n.value,f,l,n.primaryDimension)},initModifier:function(e){Object.keys(oe).forEach((function(t){void 0===e[t]&&(e[t]=oe[t])}))},updateModifier:function(e,t){1===(t.qDimensions?t.qDimensions.length:0)&&0===e.dimensionalScope&&(e.dimensionalScope=2)},enableTotalsFunction:function(){return!0},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.normalization.disclaimer",show:function(e,t){return!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{selectionScope:{refFn:function(t){return"".concat(re(t,e),".selectionScope")},type:"string",translation:t.modifierSelectionScope||"properties.modifier.selectionScope",title:{translation:t.modifierSelectionScopeTooltip||"properties.modifier.selectionScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,options:function(n){return function(e,t,n){var r=[{value:0,translation:t.selectionScopeCurrentSelection||"properties.modifier.selectionScope.currentSelection"},{value:1,translation:t.selectionScopeSpecificValue||"properties.modifier.selectionScope.selectAField"},{value:2,translation:t.selectionScopeTotal||"properties.modifier.selectionScope.total"}];return r=function(e,t,n){if(1===e){var r=ie(t,0);t.splice(r,1)}return t}(ne(e,n).dimensionalScope,r),r}(n,t,e)}},field:{refFn:function(t){return"".concat(re(t,e),".field")},type:"string",component:"expression-with-dropdown",translation:"Common.Field",defaultValue:"",dropdownOnly:!0,options:function(e,t,n){return n.app.getFieldList().then((function(e){return e.map((function(e){return{label:e.qName,value:e.qName}}))}))},show:function(t){return 1===ne(t,e).selectionScope}},value:{refFn:function(t){return"".concat(re(t,e),".value")},type:"string",ref:"value",component:"string",translation:"properties.value",expression:"optional",show:function(t){return 1===ne(t,e).selectionScope}},dimensionalScope:{refFn:function(t){return"".concat(re(t,e),".dimensionalScope")},type:"string",translation:t.modifierDimensionalScope||"properties.modifier.dimensionalScope",title:{translation:t.modifierDimensionalScopeTooltip||"properties.modifier.dimensionalScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,supportTooltip:!0,options:function(n,r){return function(e,t,n,r){var i=t.layout.qHyperCube.qDimensionInfo.length,o=[{value:0,translation:n.dimensionalScopeOneDimension||"properties.modifier.dimensionalScope.respectOneDimension",tooltipTranslation:n.dimensionalScopeOneDimensionTooltip||"properties.modifier.dimensionalScope.respectOneDimension.tooltip"},{value:1,translation:n.dimensionalScopeAllDimensions||"properties.modifier.dimensionalScope.".concat(2===i?"respectAllDimensions":"respectDimension"),tooltipTranslation:n.dimensionalScopeAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===i?"respectAllDimensions":"respectDimension",".tooltip")},{value:2,translation:n.dimensionalScopeDisregardAllDimensions||"properties.modifier.dimensionalScope.".concat(2===i?"disregardAllDimensions":"disregardDimension"),tooltipTranslation:n.dimensionalScopeDisregardAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===i?"disregardAllDimensions":"disregardDimension",".tooltip")}];return o=function(e,t,n){if(e<2){var r=ie(t,0);t.splice(r,1)}return t}(i,o),o=function(e,t,n){if(0===e){var r=ie(t,1);t.splice(r,1)}return t}(ne(e,r).selectionScope,o),o}(n,r,t,e)}},primaryDimension:{refFn:function(t){return"".concat(re(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.normalization.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(t,n){return 0===(ne(t,e).dimensionalScope||0)&&n.layout.qHyperCube.qDimensionInfo.length>1}}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,n,r){var i=r.ext.support.modifiers;if(!Array.isArray(i)||-1===i.indexOf(te))return!1;var o=ne(t,e);return o&&!o.disabled}};return n},getDisregardSelectionComp:ae,getFieldSelectionComp:se,getTotalComp:le,getSelectedDimComp:ce};var de="qDef.base",fe="qDef.qDef",he="qDef.base.qDef",pe="qLibraryId",me="qDef.base.qLibraryId";const ge={getExpression:function(e){var t=o(e,he);return void 0!==t?t:o(e,fe)},getExpressionRef:function(e){return void 0!==o(e,he)?he:fe},getLibraryIdRef:function(e){return o(e,me)?me:pe},getLibraryId:function(e){return o(e,me)||o(e,pe)},getLabelRef:function(e){return o(e,de)?"qDef.base.qLabel":"qDef.qLabel"},getLabelExpressionRef:function(e){return o(e,de)?"qDef.base.qLabelExpression":"qDef.qLabelExpression"}};var ye="qDef.qDef",ve="qDef.base.qDef",be="qLibraryId",xe="qDef.base.qLibraryId",Se="qDef.qLabel",we="qDef.qLabelExpression",Me="qDef.base.qLabel",Ee="qDef.base.qLabelExpression",ke="qDef.qAggrFunc",Ce="qDef.base.qAggrFunc",Te={initBase:function(e,t){(t||Te.isValid(e))&&(n(e,ve,o(e,ye)),n(e,xe,o(e,be)),n(e,Me,o(e,Se)),n(e,Ee,o(e,we)))},restoreBase:function(e){Te.isValid(e)&&(n(e,ye,o(e,ve)),n(e,be,o(e,xe)),n(e,Se,o(e,Me)),n(e,we,o(e,Ee)),o(e,ke)&&o(e,Ce)&&n(e,ke,o(e,Ce)),delete e.qDef.base)},isValid:function(e){var t=o(e,ve),n=o(e,xe);return void 0!==t||void 0!==n}};const Ae=Te;function Oe(e){return Oe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Oe(e)}var Ne={accumulation:F,movingAverage:V,difference:ee,normalization:ue,timeSeriesDecomposition:G};const qe={modifiers:Ne,apply:Re,applyModifiers:Ie,cleanUpMeasure:_e,destroy:function(e){e&&De[e.id]&&De[e.id].masterItemSubscriber&&(De[e.id].masterItemSubscriber&&De[e.id].masterItemSubscriber.unsubscribe(),delete De[e.id])},hasActiveModifiers:Pe,getActiveModifier:Le,initBase:Ae.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some((function(e){return Ne[e]}))},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,n=e.properties,r=e.layout;return Array.isArray(t)&&t.some((function(e){return Ne[e]&&Ne[e].isApplicable({properties:n,layout:r})}))},measureBase:ge,limitedSorting:function(e){var t=e.measures,n=e.properties,r=e.layout,i=!1,o=!1;return t.forEach((function(e){var t=je(e);Ye({modifiers:t,properties:n,layout:r})&&(i=!0,o=o||Qe({modifiers:t,properties:n,layout:r}))})),i&&!o},ifEnableTotalsFunction:ze};var De={};function Re(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.model,r=e.properties,i=e.isSnapshot,a=void 0!==i&&i,s=e.masterItem,l=!1;De[n.id]=De[n.id]||{isFirstTime:!0};var c=De[n.id].isFirstTime;if(De[n.id].isFirstTime=!1,r&&"object"===Oe(r))return Ie({model:n,properties:r});var u=n?n.layout:void 0,d=o(u,"qSelectionInfo.qInSelections");if(a||d)return Promise.resolve(l);var f=o(u,"qHyperCube.qMeasureInfo"),h=De[n.id].lastReloadTime;if(De[n.id].lastReloadTime=o(n,"app.layout.qLastReloadTime"),Pe({measures:f,layout:u})){var p=function(e){var t=e.measures,n=e.layout,r=e.lastReloadTime;return o(e.model,"app.layout.qLastReloadTime")!==r&&function(e){var t=e.measures,n=e.properties,r=e.layout;return!!Array.isArray(t)&&t.some((function(e){return We({measure:e,properties:n,layout:r})}))}({measures:t,layout:n})}({measures:f,layout:u,model:n,lastReloadTime:h});return p||function(e){var t=e.measures,n=e.layout,r=e.masterItem,i=e.isFirstTime;return!!Array.isArray(t)&&(i||r||t.some((function(e){return function(e){var t=e.measure,n=e.layout;return Ye({modifiers:je(t),layout:n})?!t.base:!!t.base}({measure:e,layout:n})})))}({measures:f,layout:u,masterItem:s,isFirstTime:c})?n.getEffectiveProperties().then((function(e){var r=t()(!0,{},e);He(r);var i=Ze(r);return Xe({model:n}).then((function(t){return Ge({libraryIds:i,model:n}).then((function(i){return p&&function(e){var t=e.properties;Fe(t).forEach((function(e){return function(e){var t=e.measure;if(We({measure:t,properties:e.properties})){var n=0,r=t.qDef.modifiers;Array.isArray(r)&&r.forEach((function(e){if("object"===Oe(e)&&!e.disabled){if(n++,"object"!==Oe(Ne[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(n>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");var r=Ne[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==r&&Ve(t)&&w.simplifyExpression(t.qDef.base.qDef)!==w.simplifyExpression(r)&&(t.qDef.base.qDef=r)}}))}}({measure:e,properties:t})}))}({properties:r}),Ie({model:n,oldProperties:e,properties:r,runUpdateIfChange:!0,masterItem:s,libraryItemsProps:i,dimensionAndFieldList:t})}))}))})):Promise.resolve(l)}return function(e){return!!Array.isArray(e)&&e.some((function(e){return"object"===Oe(e.base)}))}(f)?n.getEffectiveProperties().then((function(e){return function(e){var n=e.model,r=e.properties,i=Ze(r);return et({model:n,libraryIds:i}).then((function(){var e=t()(!0,{},r);return Fe(r).forEach((function(e){return _e(e)})),Je({oldProperties:e,newProperties:r,model:n})}))}({model:n,properties:e})})):Promise.resolve(l)}function Ie(e){var n=e.model,r=e.oldProperties,i=e.properties,a=e.measures,s=e.runUpdateIfChange,l=void 0!==s&&s,c=e.masterItem,u=e.libraryItemsProps,d=e.dimensionAndFieldList;void 0===r&&(r=l?t()(!0,{},i):i),He(i);var f=Ze(i);return et({model:n,libraryIds:f,masterItem:c}).then((function(){return function(e){var n=e.measures,r=e.properties,i=e.model,a=e.libraryItemsProps,s=e.dimensionAndFieldList;if(n||(n=Fe(r)),!n.length)return Promise.resolve();if(!Pe({measures:n,properties:r}))return n.forEach((function(e){return _e(e)})),Promise.resolve();var l=a?void 0:Ze(r);return Xe({model:i,dimensionAndFieldList:s}).then((function(e){return Ge({libraryIds:l,model:i,libraryItemsProps:a}).then((function(i){n.forEach((function(n){Ye({modifiers:n.qDef.modifiers,properties:r})?(function(e){var n=e.measure,r=e.properties,i=e.libraryItemsProps,a=e.dimensionAndFieldList,s=0;Ae.isValid(n)||Ae.initBase(n,!0);var l=n.qDef,c=l.modifiers,u=l.base;Array.isArray(c)&&c.forEach((function(e){if("object"===Oe(e)&&!e.disabled){if(s++,"object"!==Oe(Ne[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(s>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");Ne[e.type].initModifier(e,n);var l=n.qLibraryId||u&&u.qLibraryId;l?function(e){var n=e.measure,r=e.modifier,i=e.properties,o=e.dimensionAndFieldList,a=e.libraryItemsProps[e.libraryId],s=a.qMeasure.qDef,l=""===s?s:Ne[r.type].generateExpression({expression:s,modifier:r,properties:i,dimensionAndFieldList:o});r.outputExpression=l,n.qDef.qDef=r.outputExpression,(n.qDef.qLabel||a.qMeasure.qLabel)&&(n.qDef.qLabel=a.qMeasure.qLabel),(n.qDef.qLabelExpression||a.qMeasure.qLabelExpression)&&(n.qDef.qLabelExpression=a.qMeasure.qLabelExpression),n.qDef.quarantine&&n.qDef.quarantine.qNumFormat&&a.qMeasure.qNumFormat&&(n.qDef.qNumFormat=a.qMeasure.qNumFormat,n.qDef.isCustomFormatted=a.qMeasure.isCustomFormatted),delete n.qLibraryId,n.qDef.coloring=a.qMeasure.coloring,r.base=t()(!0,{},n.qDef.base)}({measure:n,modifier:e,libraryId:l,properties:r,libraryItemsProps:i,dimensionAndFieldList:a}):function(e){var n=e.measure,r=e.modifier,i=e.properties,o=e.dimensionAndFieldList;"function"==typeof Ne[r.type].updateModifier&&Ne[r.type].updateModifier(r,i.qHyperCubeDef);var a=ge.getExpression(n),s=""===a?a:Ne[r.type].generateExpression({expression:a,modifier:r,properties:i,dimensionAndFieldList:o});r.outputExpression=s,n.qDef.qDef=r.outputExpression,n.qDef.base.qLabelExpression?n.qDef.qLabelExpression=n.qDef.base.qLabelExpression:n.qDef.qLabel=n.qDef.base.qLabel||a,r.base=t()(!0,{},n.qDef.base)}({measure:n,modifier:e,properties:r,dimensionAndFieldList:a}),function(e){var t=o(e,"qDef.qAggrFunc");"Expr"!==t||ze(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&ze(e)&&"Expr"===e.qDef.base.qAggrFunc&&(e.qDef.qAggrFunc="Expr",delete e.qDef.base.qAggrFunc):(e.qDef.qAggrFunc="None",e.qDef.base.qAggrFunc="Expr")}(n)}}))}({measure:n,properties:r,libraryItemsProps:i,dimensionAndFieldList:e}),Be(n)):_e(n)}))}))}))}({measures:a,properties:i,model:n,libraryItemsProps:u,dimensionAndFieldList:d}).then((function(){return l?Je({oldProperties:r,newProperties:i,model:n}):Promise.resolve(!1)}))}))}function _e(e){!function(e){var t=je(e);return Array.isArray(t)&&t.some((function(e){return"object"===Oe(e)&&!e.disabled&&!Ne[e.type]}))}(e)?Ae.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,Be(e)}function Pe(e){var t=e.measures,n=e.properties,r=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ye({modifiers:je(e),properties:n,layout:r})}))}function Le(e){var t=je(e);if(Array.isArray(t))for(var n=0;n<t.length;n++){var r=t[n];if(Ne[r.type]&&!r.disabled)return r}}function ze(e){var t=Le(e);return!t||Ne[t.type].enableTotalsFunction(e)}function Fe(e){return o(e,"qHyperCubeDef.qMeasures",[]).concat(o(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function je(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function $e(e){return o(e,"outputExpression.qValueExpression.qExpr")||o(e,"outputExpression")}function He(e){Fe(e).forEach((function(e){return function(e){var n=Le(e);n&&(void 0!==n.outputExpression&&$e(n)!==e.qDef.qDef?delete e.qDef.base:!Ae.isValid(e)&&n.base&&(e.qDef.base=t()(!0,{},n.base)))}(e)}))}function Be(e){var t=je(e);Array.isArray(t)&&t.forEach((function(t){"object"===Oe(t)&&(t.disabled||!Ne[t.type]&&$e(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)}))}function Ve(e){return e.base||e.qDef&&e.qDef.base}function Ue(e){var t=Ve(e);return e.qLibraryId||t&&t.qLibraryId}function We(e){var t=e.measure,n=e.properties,r=e.layout;return!Ue(t)&&Ye({modifiers:je(t),properties:n,layout:r})}function Ye(e){var t=e.modifiers,n=e.properties,r=e.layout,i={};return Array.isArray(t)&&t.some((function(e){return!("object"!==Oe(e)||e.disabled||!Ne[e.type])&&(void 0===i[e.type]&&(i[e.type]=Ne[e.type].isApplicable({properties:n,layout:r})),i[e.type])}))}function Xe(e){var t=e.model,n=e.dimensionAndFieldList;if(n)return Promise.resolve(n);var r=[],i={},o=t.app.getDimensionList().then((function(e){i.dimensionList=e}));r.push(o);var a=t.app.getFieldList().then((function(e){i.fieldList=e}));return r.push(a),Promise.all(r).then((function(){return i}))}function Ge(e){var t=e.libraryIds,n=e.model,r=e.libraryItemsProps;if(r)return Promise.resolve(r);var i=t.measureLibraryIds,o=t.dimensionLibraryIds,a={},s=[];return i.forEach((function(e){var t=n.app.getMeasure(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));s.push(t)})),o.forEach((function(e){var t=n.app.getDimension(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));s.push(t)})),Promise.all(s).then((function(){return a}))}function Ke(e,t){if(""!==t||-1===["qFmt","qDec","qThou"].indexOf(e))return t}function Je(e){var t=e.oldProperties,n=e.newProperties,r=e.model,i=JSON.stringify(o(t,"qHyperCubeDef.qMeasures"),Ke)!==JSON.stringify(o(n,"qHyperCubeDef.qMeasures"),Ke)||JSON.stringify(o(t,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Ke)!==JSON.stringify(o(n,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Ke);return i?function(e){var t=e.model,n=e.oldProperties,r=e.newProperties,i=t.layout;return i&&!i.qHasSoftPatches&&!i.qExtendsId&&o(i,"qMeta.privileges",[]).indexOf("update")>-1?t.setProperties(r):I(t,n,r)}({model:r,oldProperties:t,newProperties:n}).then((function(){return i})):Promise.resolve(i)}function Qe(e){var t=e.modifiers,n=e.properties,r=e.layout;return Array.isArray(t)&&t.some((function(e){return"object"===Oe(e)&&!e.disabled&&Ne[e.type]&&Ne[e.type].needDimension({modifier:e,properties:n,layout:r})}))}function Ze(e){var t=Fe(e),n=[],r=[],i=!1;return t.forEach((function(t){var r=je(t);if(Ye({modifiers:r,properties:e})){var o=Ue(t);o&&n.push(o),i=i||Qe({modifiers:r,properties:e})}})),o(e,"qHyperCubeDef.qDimensions",[]).forEach((function(e){var t=e.qLibraryId;t&&r.push(t)})),{measureLibraryIds:n,dimensionLibraryIds:r}}function et(e){var t=e.model,n=e.libraryIds;return!e.masterItem&&n&&(n.measureLibraryIds.length||n.dimensionLibraryIds.length)?(De[t.id].masterItemSubscriber=De[t.id].masterItemSubscriber||function(e){var t=e.model,n=e.callback,r={},i={},a={},s={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function l(e){var t={},n=o(e,"qInfo.qType");return n&&s[n]&&s[n].forEach((function(n){t[n]=o(e,n)})),JSON.stringify(t)}function c(e){var t=e.qInfo.qId;if(r[t]){var i=l(e);r[t].properties!==i&&(r[t].properties=i,"function"==typeof n&&r[t].enabled&&n(e)),r[t].enabled=!0}}function u(e,n){return t.app[n](e).then((function(t){r[e]={listener:t.layoutSubscribe(c),enabled:!1,properties:l(t.layout)}}))}return{subscribe:function(e){var n=e.measureLibraryIds,o=e.dimensionLibraryIds,s=[];return function(e){var t=e.dimensionLibraryIds;i={},e.measureLibraryIds.forEach((function(e){i[e]=!0})),a={},t.forEach((function(e){a[e]=!0}))}({measureLibraryIds:n,dimensionLibraryIds:o}),Object.keys(r).forEach((function(e){i[e]||a[e]||(r[e].listener.dispose(),delete r[e])})),t.app&&(Object.keys(i).forEach((function(e){i[e]&&!r[e]&&s.push(u(e,"getMeasure"))})),Object.keys(a).forEach((function(e){a[e]&&!r[e]&&s.push(u(e,"getDimension"))}))),Promise.all(s)},unsubscribe:function(){Object.keys(r).forEach((function(e){r[e].listener.dispose()})),r={}}}}({model:t,callback:function(e){return Re({model:t,masterItem:e}).then((function(){return t.app.clearUndoBuffer()}))}}),De[t.id].masterItemSubscriber.subscribe(n)):Promise.resolve()}})(),t.default=i.default,Object.defineProperty(t,"__esModule",{value:!0})})()}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={exports:{}};return e[r](o,o.exports,n),o.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var r={};return(()=>{function e(t){var n,r=t;return r>9?(n=65+r-10)>90&&(n+=6):r="".concat(r).charCodeAt(0),[48,111,79,105,73,108].indexOf(n)>-1?e(r+1):String.fromCharCode(n)}function t(n){var r=e(n%62),i=Math.floor(n/62);return i>0?t(i)+r:r}function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}n.d(r,{default:()=>He});const o={getValue:function(e,t,n){if(null==e||null==t)return n;for(var r=t.split("."),i=e,o=0;o<r.length;++o){var a=r[o];if(""!==a){if(void 0===i[a]||null===i[a])return n;i=i[a]}}return i},setValue:function(e,t,n){if(null!=e&&null!=t){for(var r=t.split("."),i=r[r.length-1],o=e,a=0;a<r.length-1;++a){var s=r[a];void 0!==o[s]&&null!==o[s]||(o[s]=Number.isNaN(+r[a+1])?{}:[]),o=o[s]}void 0!==n?o[i]=n:delete o[i]}},isEmpty:function(e){return 0===Object.keys(e).length&&e.constructor===Object},isAtomicValue:function(e){return/boolean|number|string/.test(i(e))},generateId:function(){return t(Math.round(99e11*Math.random()+1e11)).replace(/\W/g,"")}};function a(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function l(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function u(e,t,n){if(e){for(var r=0;r<e.length;r++)if(e[r][t]===n)return r;return-1}return-1}const d={isOrderedSubset:function(e,t){if(!(e&&t&&e.length&&t.length))return!1;var n=e.indexOf(t[0]);if(-1!==n){for(var r=0;r<t.length;r++){var i=e.indexOf(t[r]);if(n>i)return!1;n=i}return!0}return!1},indexAdded:function(e,t){var n;for(n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)},indexRemoved:function(e,t){var n,r=0;for(n=0;n<e.length;++n)e[n]>t?--e[n]:e[n]===t&&(r=n);return e.splice(r,1),r},findItemByPropertyValue:function(e,t,n){if(e){for(var r=0;r<e.length;r++)if(e[r][t]===n)return e[r];return null}return null},findIndexByPropertyValue:u};var f=n(645),h=n.n(f);const p=function(e){var t,n=e.exportFormat,r=e.qHyperCubeDef,i=n.data[0];(t=i.dimensions).push.apply(t,a(r.qDimensions));var s,l=o.getValue(r,"qLayoutExclude.qHyperCubeDef.qDimensions");l&&(s=i.excludedDimensions).push.apply(s,a(l))},m=function(e){var t,n=e.exportFormat,r=e.qHyperCubeDef,i=n.data[0];(t=i.measures).push.apply(t,l(r.qMeasures));var a,s=o.getValue(r,"qLayoutExclude.qHyperCubeDef.qMeasures");s&&(a=i.excludedMeasures).push.apply(a,l(s))},g=function(e){var t=e.exportFormat,n=e.qHyperCubeDef,r=t.data[0];n.qInterColumnSortOrder||(n.qInterColumnSortOrder=[]),r.interColumnSortOrder=n.qInterColumnSortOrder.concat();var i=o.getValue(n,"qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder");i&&d.isOrderedSubset(i,r.interColumnSortOrder)&&(r.interColumnSortOrder=i.concat())},y=function(e){var t=e.exportFormat,n=e.properties;Object.keys(n).forEach((function(e){t.properties[e]=n[e]}))},v=function(e){var t=e.exportFormat,n=e.properties;n.qLayoutExclude||(n.qLayoutExclude={}),n.qLayoutExclude.disabled&&(Object.keys(n.qLayoutExclude.disabled).forEach((function(e){t.properties.hasOwnProperty(e)||(t.properties[e]=n.qLayoutExclude.disabled[e])})),delete n.qLayoutExclude.disabled),n.qLayoutExclude.changed&&(function(e){Object.keys(e.qLayoutExclude.changed).forEach((function(t){e.qLayoutExclude.changed[t].to===o.getValue(e,t)&&o.setValue(e,t,e.qLayoutExclude.changed[t].from)}))}(n),delete n.qLayoutExclude.changed),n.qLayoutExclude.quarantine&&!o.isEmpty(n.qLayoutExclude.quarantine)||delete n.qLayoutExclude},b=function(e){e.forEach((function(e){h().cleanUpMeasure(e),e.qDef.modifiers&&(e.store={modifiers:e.qDef.modifiers},delete e.qDef.modifiers)}))};function x(e,t,n){var r,i,a=o.getValue(e,t);if(!o.isAtomicValue(a))try{if((i=(i=(r=JSON.stringify(a)).match(/:\{/g))?i.length:0)>2)return;a=JSON.parse(r)}catch(e){return}o.getValue(e,"qLayoutExclude.quarantine")||o.setValue(e,"qLayoutExclude.quarantine",{});var s=o.getValue(e,"qLayoutExclude.quarantine");s[n]||(s[n]={}),s[n][t]=a}var S=n(229),w=n.n(S);function M(e,t){var n=w()(!0,{},t,e);return o.getValue(n,"qOtherTotalSpec.qOtherCounted")||o.setValue(n,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),o.getValue(n,"qOtherTotalSpec.qOtherLimit")||o.setValue(n,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),n.hasOwnProperty("othersLabel")||(n.othersLabel="Others"),n}function E(e,t){return w()(!0,{},t,e)}function k(e,t,n){return"function"==typeof e?e(t):Number.isNaN(+e)?n:e}var C=Math.pow(2,53)-1;function T(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function A(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}const O=function(e,t,n){var r="masterobject"===o.getValue(t,"properties.qInfo.qType")?"masterobject":o.getValue(n,"qInfo.qType");o.setValue(e,"qInfo.qType",r),e.visualization=n.visualization},N=function(e,t,n){t.hasOwnProperty(e)&&(n[e]=t[e])},q=function(e,t,n,r){t.hasOwnProperty(e)?n[e]=t[e]:n[e]=r},D=function(){return{qDef:{autoSort:!0,cId:"",othersLabel:"Others"},qLibraryId:"",qNullSuppression:!1,qOtherLabel:"Others",qOtherTotalSpec:{qOtherLimitMode:"OTHER_GE_LIMIT",qOtherMode:"OTHER_OFF",qOtherSortMode:"OTHER_SORT_DESCENDING",qSuppressOther:!1}}},R=function(){return{qDef:{autoSort:!0,cId:"",numFormatFromTemplate:!0},qLibraryId:"",qTrendLines:[]}},I=function(e){var t,n=e.exportFormat,r=e.maxDimensions,i=e.minDimensions,o=e.newHyperCubeDef,a=e.defaultDimension,s=n.data[0];for(t=0;t<s.dimensions.length;++t){var l=M(s.dimensions[t],a);o.qDimensions.length<r?o.qDimensions.push(l):o.qLayoutExclude.qHyperCubeDef.qDimensions.push(l)}for(t=0;t<s.excludedDimensions.length;++t){var c=M(s.excludedDimensions[t],a);o.qDimensions.length<i?o.qDimensions.push(c):o.qLayoutExclude.qHyperCubeDef.qDimensions.push(c)}},_=function(e){var t,n=e.exportFormat,r=e.maxMeasures,i=e.minMeasures,o=e.newHyperCubeDef,a=e.defaultMeasure,s=n.data[0];for(t=0;t<s.measures.length;++t){var l=E(s.measures[t],a);o.qMeasures.length<r?o.qMeasures.push(l):o.qLayoutExclude.qHyperCubeDef.qMeasures.push(l)}for(t=0;t<s.excludedMeasures.length;++t){var c=E(s.excludedMeasures[t],a);o.qMeasures.length<i?o.qMeasures.push(c):o.qLayoutExclude.qHyperCubeDef.qMeasures.push(c)}},P=function(e){var t=e.exportFormat,n=e.dataDefinition,r=void 0===n?{}:n,i=t.data[0],o=r.dimensions||{max:0},a=r.measures||{max:0},s=k(a.max,i.dimensions.length,C),l=k(a.min,i.dimensions.length,0);return{maxDimensions:k(o.max,s,C),minDimensions:k(o.min,l,0),maxMeasures:s,minMeasures:l}},L=function(e){var t=e.exportFormat,n=e.newHyperCubeDef,r=t.data[0],i=n.qDimensions.length+n.qMeasures.length;n.qInterColumnSortOrder=r.interColumnSortOrder.concat();var o=n.qInterColumnSortOrder.length;if(o!==i)for(n.qLayoutExclude&&(n.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder=r.interColumnSortOrder.concat());o!==i;)o<i?(d.indexAdded(n.qInterColumnSortOrder,o),++o):(--o,d.indexRemoved(n.qInterColumnSortOrder,o))},z=function(e){var t=e.exportFormat,n=e.initialProperties,r=e.hypercubePath,i={qLayoutExclude:{disabled:{},quarantine:{}}};return Object.keys(t.properties).forEach((function(e){"qLayoutExclude"===e?t.properties[e].quarantine&&(i.qLayoutExclude.quarantine=w()(!0,{},t.properties[e].quarantine)):"qHyperCubeDef"===e&&r?o.setValue(i,"".concat(r,".qHyperCubeDef"),t.properties.qHyperCubeDef):n.hasOwnProperty(e)||-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)||function(e,t){return"components"===t&&Array.isArray(e[t])&&e[t].some((function(e){return"general"===e.key}))}(t.properties,e)?i[e]=t.properties[e]:i.qLayoutExclude.disabled[e]=t.properties[e]})),null===(i=w()(!0,{},n,i)).components&&(i.components=[]),i},F=function(e){var t=e.exportFormat,n=e.maxDimensions,r=e.minDimensions,i=e.maxMeasures,o=e.minMeasures,a=t.data[0];return a.dimensions.length>n&&n>0||a.measures.length>i&&i>0||a.excludedDimensions.length>0&&a.dimensions.length+a.excludedDimensions.length>r||a.excludedMeasures.length>0&&a.measures.length+a.excludedMeasures.length>o||!i&&a.measures.length>0||!n&&a.dimensions.length>0},j=function(e){var t=e.exportFormat,n=e.maxDimensions,r=e.minDimensions,i=e.maxMeasures,o=e.minMeasures,a=e.newHyperCubeDef,s=t.data[0];a.qLayoutExclude||(a.qLayoutExclude={}),a.qLayoutExclude.qHyperCubeDef||(a.qLayoutExclude.qHyperCubeDef={}),(s.dimensions.length>n&&n>0||s.excludedDimensions&&s.excludedDimensions.length&&s.dimensions.length+s.excludedDimensions.length>r)&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[])),(s.measures.length>i&&i>0||s.excludedMeasures&&s.excludedMeasures.length&&s.measures.length+s.excludedMeasures.length>o)&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!i&&s.measures.length&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!n&&s.dimensions.length&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[]))},$=function(e){var t,n=e.newProperties,r=e.dataDefinition,i=e.hypercubePath;if(r.dimensions&&"function"==typeof r.dimensions.added){var a=o.getValue(n,i||"").qHyperCubeDef,s=function(e){if(Array.isArray(e))return T(e)}(t=a.qDimensions)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return T(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?T(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qDimensions=[],s.forEach((function(e){a.qDimensions.push(e),r.dimensions.added(e,n)}))}},H=function(e){var t,n=e.newProperties,r=e.dataDefinition,i=e.hypercubePath;if(r.measures&&"function"==typeof r.measures.added){var a=o.getValue(n,i||"").qHyperCubeDef,s=function(e){if(Array.isArray(e))return A(e)}(t=a.qMeasures)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return A(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?A(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qMeasures=[],s.forEach((function(e){a.qMeasures.push(e),r.measures.added(e,n)}))}},B=function(e){var t=e.measures,n=e.modifierTypes;t&&n&&h().isSupportedModifiers(n)&&t.forEach((function(e){e.store&&e.store.modifiers&&(e.qDef.modifiers=e.store.modifiers),delete e.store}))};function V(e,t){var n=o.getValue(e,"qLayoutExclude.quarantine",{})[t];return!!n&&(Object.keys(n).forEach((function(t){o.setValue(e,t,n[t])})),delete e.qLayoutExclude.quarantine[t],!0)}const U={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,i=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t={data:[],properties:{}},n=0;n<e;++n)t.data.push({dimensions:[],measures:[],excludedDimensions:[],excludedMeasures:[],interColumnSortOrder:[]});return t}(),a=t.qProperty,s=o.getValue(a,n||""),l=s.qHyperCubeDef;return l.qInterColumnSortOrder||(l.qInterColumnSortOrder=[]),p({exportFormat:i,qHyperCubeDef:l}),m({exportFormat:i,qHyperCubeDef:l}),g({exportFormat:i,qHyperCubeDef:l}),delete l.qLayoutExclude,y({exportFormat:i,properties:a}),n&&(i.properties.qHyperCubeDef=l,delete s.qHyperCubeDef),v({exportFormat:i,properties:a}),r||b(i.properties.qHyperCubeDef.qMeasures),Array.isArray(i.properties.filters)&&(x(i.properties,"filters","storedFilters"),delete i.properties.filters),i.properties.qHyperCubeDef.qContextSetExpression&&(x(i.properties,"qHyperCubeDef.qContextSetExpression","storedFilters"),i.properties.qHyperCubeDef.qContextSetExpression=""),i.properties.qHyperCubeDef.qDynamicScript&&i.properties.qHyperCubeDef.qDynamicScript.length&&(x(i.properties,"qHyperCubeDef.qDynamicScript","dynamicScript"),i.properties.qHyperCubeDef.qDynamicScript=[]),i},importProperties:function(e){var t=e.exportFormat,n=e.initialProperties,r=void 0===n?{}:n,i=e.dataDefinition,a=void 0===i?{}:i,s=e.defaultPropertyValues,l=void 0===s?{}:s,c=e.hypercubePath,u=e.extension,d=e.supportedFilters,f=void 0===d||d,h=e.isHCModifierSupported,p=void 0===h||h,m={qChildren:[]},g=z({exportFormat:t,initialProperties:r,hypercubePath:c}),y=o.getValue(r,c||"").qHyperCubeDef,v=o.getValue(g,c||"").qHyperCubeDef,b=P({exportFormat:t,dataDefinition:a}),x=b.maxDimensions,S=b.minDimensions,w=b.maxMeasures,M=b.minMeasures,E=l.defaultDimension,k=void 0===E?D():E,C=l.defaultMeasure,T=void 0===C?R():C;v.qDimensions.length=0,v.qMeasures.length=0,F({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:w,minMeasures:M})&&j({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:w,minMeasures:M,newHyperCubeDef:v}),I({exportFormat:t,maxDimensions:x,minDimensions:S,newHyperCubeDef:v,defaultDimension:k}),_({exportFormat:t,maxMeasures:w,minMeasures:M,newHyperCubeDef:v,defaultMeasure:T}),$({newProperties:g,dataDefinition:a,hypercubePath:c}),H({newProperties:g,dataDefinition:a,hypercubePath:c}),L({exportFormat:t,newHyperCubeDef:v}),N("qMaxStackedCells",y,v),N("qNoOfLeftDims",y,v),q("qInitialDataFetch",y,v,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),q("qMode",y,v,"S"),q("qReductionMode",y,v,"N"),q("qSortbyYValue",y,v),q("qIndentMode",y,v),q("qShowTotalsAbove",y,v),O(g,t,r),m.qProperty=g;var A=o.getValue(u||{},"support.modifiers");return B({measures:v.qMeasures,modifierTypes:A}),f&&V(m.qProperty,"storedFilters"),"S"===v.qMode&&p&&V(m.qProperty,"dynamicScript"),m}};var W={cellBackgroundColor:!0,cellForegroundColor:!0,colorByAlternative:!0,colorByExpression:!0,tooltip:!0,urlLabel:!0,url:!0};function Y(e,t,n,r){t=t||[];var i=u(e,r,n),o=u(t,r,n);if(-1!==i&&-1===o){var a=e.splice(i,1);t.push(a[0])}return t}function X(e,t){return e.length!==t}const G={create:function(e,t){if(!e||!W[e])throw new Error("Attribute Expressions Util: ID required");var n={};return t&&Object.keys(t).forEach((function(e){n[e]=t[e]})),n.id=e,n.qAttribute=!0,n},moveByIdFromGroup:function(e,t,n,r,i){n=n||"qAttributeExpressions",i=i||"id";for(var o=0;o<e.length;o++){var a=e[o][n],s=t.length;if(Y(a,t,r,i),X(t,s))return t}return t},IDMAP:{CELL_BACKGROUND_COLOR:"cellBackgroundColor",CELL_FOREGROUND_COLOR:"cellForegroundColor",COLOR_BY_ALTERNATIVE:"colorByAlternative",COLOR_BY_EXPRESSION:"colorByExpression",TOOLTIP:"tooltip",CELL_LINK_LABEL:"urlLabel",CELL_LINK_URL:"url"}},K={getNumDimensions:function(e){return o.getValue(e,"qHyperCubeDef.qDimensions.length",0)},getNumMeasures:function(e){return o.getValue(e,"qHyperCubeDef.qMeasures.length",0)},wrapFieldName:function(e){return e.split(" ").length>1&&"="!==e[0]&&"["!==e[0]?"[".concat(e,"]"):e},getItemLabel:function(e){return e.label||e.name}},J={colorModeOptions:{primary:function(){return!0},dimension:function(e){return K.getNumDimensions(e)>0&&K.getNumMeasures(e)<=1},multiColor:function(e){return K.getNumMeasures(e)>1},measure:function(e){return K.getNumDimensions(e)>0},expression:function(e){return K.getNumMeasures(e)>=1}}},Q={colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return K.getNumMeasures(e)>=1}}};var Z={scatterplot:Q,"sn-scatter-plot":Q,piechart:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return K.getNumMeasures(e)>=1}}},linechart:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return K.getNumDimensions(e)>1},multiColor:function(e){return K.getNumMeasures(e)>1},measure:function(e){return K.getNumDimensions(e)<=1},expression:function(e){return K.getNumMeasures(e)>=1}}},map:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return K.getNumDimensions(e)>=1},multiColor:function(e){return K.getNumMeasures(e)>1},measure:function(e){return K.getNumDimensions(e)>=1},expression:function(e){return K.getNumDimensions(e)>=1}}},distributionplot:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return K.getNumDimensions(e)>=1}}}};function ee(e,t,n){if(Array.isArray(e[t])){var r=d.findIndexByPropertyValue(e[t],"id",n);r>=0&&e[t].splice(r,1)}else e[t]=[]}function te(e,t){var n=G.IDMAP.COLOR_BY_ALTERNATIVE;e.forEach((function(e){ee(e,"qAttributeDimensions",n),ee(e,"qAttributeExpressions",n)})),t.forEach((function(e){ee(e,"qAttributeDimensions",n),ee(e,"qAttributeExpressions",n)}))}function ne(e,t){if(t){var n="="===t.charAt(0);e.color.altLabel=n?{qStringExpression:{qExpr:t.substr(1)}}:t}}function re(e){var t=e.properties,n=e.isDimension,r=e.dimensions,i=e.excludedDimensions,a=e.measures,s=e.label;te(r,i);var l=r[r.length-1];if(l){var c=n?o.getValue(t,"color.byDimDef"):o.getValue(t,"color.byMeasureDef"),u=o.getValue(t,"color.formatting.qNumFormat"),f=o.getValue(t,"color.formatting.isCustomFormatted");if(c){var h=G.create(G.IDMAP.COLOR_BY_ALTERNATIVE);switch(c.type){case"expression":!function(e){var t=e.attributeExpression,n=e.label,r=e.item,i=e.isDimension,o=e.qNumFormat,a=e.isCustomFormatted;t.label=n||r.label,i?t.qDef=r.key:(t.qExpression=r.key,o&&(t.qNumFormat=o,t.isCustomFormatted=a)),t.matchMeasure=r.activeMeasureIndex,t.label&&"="===t.label.charAt(0)&&(t.labelExpRef="color.altLabel")}({attributeExpression:h,label:s,item:c,isDimension:n,qNumFormat:u,isCustomFormatted:f});break;case"libraryItem":!function(e){var t=e.attributeExpression,n=e.measures,r=e.item,i=e.qNumFormat,o=e.isCustomFormatted;e.isDimension||(t.matchMeasure=d.findIndexByPropertyValue(n,"qLibraryId",r.key),i&&(t.qNumFormat=i,t.isCustomFormatted=o)),void 0!==r.expression?t.qExpression=r.expression:t.qLibraryId=r.key,t.colorMapRef=r.key}({attributeExpression:h,measures:a,item:c,isDimension:n,qNumFormat:u,isCustomFormatted:f})}n?(h.qSortBy={qSortByAscii:1},l.qAttributeDimensions.push(h)):l.qAttributeExpressions.push(h)}}}function ie(e,t,n,r){var i,o,a,s={};switch(e){case"dimension":n.qLibraryId?(s.type="dimension",s.name=n.qLibraryId,s.id=n.qLibraryId):(s.type="field",t?(s.name=n.label||n.qDef,s.id=n.qDef):(s.name=n.qDef.qFieldDefs[0],s.label=(a=n.qDef).qLabelExpression?a.qLabelExpression:a.qFieldLabels&&a.qFieldLabels[0]?a.qFieldLabels[0]:a.qFieldDefs[0]));break;case"measure":i=function(e,t){return t?e.qLibraryId:h().measureBase.getLibraryId(e)}(n,t),i?(s.type="measure",s.name=i,s.id=i,o=function(e,t){return h().hasActiveModifiers({measures:[e]})&&t?e.qDef.qDef:void 0}(n,r),o&&(s.expression=o)):(s.type="expression",t?(s.name=n.label||n.qExpression,s.id=n.qExpression):(s.name=n.qDef.qDef,s.label=function(e){var t=e.qDef;return t.qLabelExpression?t.qLabelExpression:t.qLabel?t.qLabel:t.qDef}(n)));break;default:throw new Error('columnType should be "dimension" or "measure"')}return s}const oe={useMasterNumberFormat:function(e){e.quarantine={qNumFormat:e.qNumFormat||{},isCustomFormatted:e.isCustomFormatted||!1},e.qNumFormat=null,e.isCustomFormatted=void 0}};function ae(e,t,n,r){var i=n?"expression":t.type,o=e.color,a=o.mode,s=K.getItemLabel(t);switch(ne(e,s||""),i){case"field":a="byDimension",o.byDimDef={label:t.label||K.wrapFieldName(t.name),key:K.wrapFieldName(t.name),type:"expression",activeDimensionIndex:t.activeDimensionIndex};break;case"expression":a="byMeasure",o.byMeasureDef={label:n||s,key:n||t.name,type:"expression",activeMeasureIndex:t.activeMeasureIndex};break;case"dimension":a="byDimension",o.byDimDef={label:t.name,key:t.id,type:"libraryItem",activeDimensionIndex:t.activeDimensionIndex};break;case"measure":a="byMeasure",o.byMeasureDef={label:t.name,key:t.id,expression:t.expression,type:"libraryItem",activeMeasureIndex:t.activeMeasureIndex},o.formatting&&oe.useMasterNumberFormat(o.formatting)}r||(o.auto=!1,o.mode=a)}function se(e,t){var n=o.getValue(e,"".concat(t,"qDimensions"),[]),r=o.getValue(e,"".concat(t,"qMeasures"),[]),i=o.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=o.getValue(e,"color.byDimDef");if(a&&ne(e,a.label),function(e){return!!(e&&e.activeDimensionIndex>-1)}(a))!function(e,t){var n=o.getValue(e,"".concat(t,"qDimensions"),[]),r=o.getValue(e,"color.byDimDef");r.activeDimensionIndex=Math.min(r.activeDimensionIndex,n.length-1);var i=ie("dimension",!1,n[r.activeDimensionIndex]);i.activeDimensionIndex=r.activeDimensionIndex,ae(e,i)}(e,t);else if(function(e){return!e||!e.key}(a)&&function(e,t){var n=o.getValue(e,"".concat(t,"qDimensions"),[]),r=n[function(e,t,n){var r=o.getValue(t,"visualization"),i=n.split("."),a=Number(i[1]),s=o.getValue(t,"layers.".concat(a,".type"));return 2===e.length&&"map"===r&&"point"===s}(n,e,t)?0:n.length-1],i=G.IDMAP.COLOR_BY_ALTERNATIVE,a=d.findItemByPropertyValue(r.qAttributeDimensions,"id",i);return ae(e,ie("dimension",!!a,a||r)),!!a}(e,t))return;re({properties:e,isDimension:!0,dimensions:n,excludedDimensions:i,measures:r,label:o.getValue(e,"color.byDimDef.label")})}const le=function(e,t,n){o.setValue(e,t,n),o.isAtomicValue(n)&&function(e,t,n){var r=e.qLayoutExclude;r&&(r.changed||(r.changed={}),r.changed[t]={from:o.getValue(e,t),to:n})}(e,t,n)},ce=function(e,t){var n={primary:!0};if(e){var r=(Z[t]||J).colorModeOptions||J.colorModeOptions;n.byDimension=r.dimension(e),n.byMeasure=r.measure(e),n.byMultiple=r.multiColor(e),n.byExpression=r.expression(e)}return n},ue=function(e){var t=e.canColorBy,n=e.autoColor,r=e.colorMode,i=e.dimensions;return!(t[r]&&!n&&("byDimension"!==r&&"byMeasure"!==r||!i.length))},de=function(e,t){var n,r=o.getValue(e,"color.mode"),i=o.getValue(e,"color.auto"),a=o.getValue(e,"".concat(t,"qDimensions"),[]),s=o.getValue(e,"".concat(t,"qMeasures"),[]),l=o.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);i?te(a,l):!(n={auto:i,colorMode:r,dimensions:a}).auto&&"byDimension"===n.colorMode&&n.dimensions.length>0?se(e,t):function(e){var t=e.auto,n=e.colorMode,r=e.dimensions,i=e.measures,a=e.properties,s=o.getValue(a,"visualization");return!(t||"byMeasure"!==n||!r.length||"map"!==s&&!i.length)}({auto:i,colorMode:r,dimensions:a,measures:s,properties:e})?function(e,t){var n=o.getValue(e,"".concat(t,"qDimensions"),[]),r=o.getValue(e,"".concat(t,"qMeasures"),[]),i=o.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=o.getValue(e,"color.byMeasureDef");if(a&&ne(e,a.label),function(e){return!!(e&&e.activeMeasureIndex>-1)}(a))!function(e,t){var n=o.getValue(e,"".concat(t,"qMeasures"),[]),r=o.getValue(e,"color.byMeasureDef");if(r.activeMeasureIndex=Math.min(r.activeMeasureIndex,n.length-1),r.activeMeasureIndex>-1){var i=ie("measure",!1,n[r.activeMeasureIndex],!0);i.activeMeasureIndex=r.activeMeasureIndex,ae(e,i)}}(e,t);else if(function(e,t){return(!e||!e.key)&&t.length>0}(a,r)&&function(e,t){var n=o.getValue(e,"".concat(t,"qDimensions"),[]),r=o.getValue(e,"".concat(t,"qMeasures"),[]),i=n[n.length-1],a=G.IDMAP.COLOR_BY_ALTERNATIVE,s=d.findItemByPropertyValue(i.qAttributeExpressions,"id",a);return ae(e,ie("measure",!!s,s||r[0])),!!s}(e,t))return;re({properties:e,isDimension:!1,dimensions:n,excludedDimensions:i,measures:r,label:o.getValue(e,"color.byMeasureDef.label")})}(e,t):function(e,t){var n=o.getValue(e,"color.mode"),r=o.getValue(e,"".concat(t,"qDimensions"),[]),i=o.getValue(e,"".concat(t,"qMeasures"),[]),a=o.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);"byMultiple"===n&&i.length<2&&o.setValue(e,"color.mode","primary"),te(r,a)}(e,t)},fe=function(e){e.forEach((function(e){e.qOtherTotalSpec&&"qTotalMode"in e.qOtherTotalSpec&&delete e.qOtherTotalSpec.qTotalMode}))},he=function(e){var t=e.shouldUpdateColorBy,n=e.properties,r=o.getValue(n,"qHyperCubeDef.qMeasures",[]),i=o.getValue(n,"color.mode","");return!t&&"byExpression"===i&&r.length>0},pe=function(e){var t=o.getValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",[]),n=o.getValue(e,"color.colorExpression","");t.splice(0,0,{qExpression:n,id:"colorByExpression"}),o.setValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",t)},me=function(e){o.setValue(e,"color.mode","primary"),o.setValue(e,"color.auto",!0)},ge=function(e){var t=o.getValue(e,"qHyperCubeDef.qDimensions",[]),n=o.getValue(e,"color.persistent",!1);return t.length>1&&!n},ye={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,i=U.exportProperties({propertyTree:t,hypercubePath:n,viewDataMode:r}),o=i.data[0],a=o.dimensions.concat(o.excludedDimensions),s=o.measures.concat(o.excludedMeasures),l=G.IDMAP,c=l.COLOR_BY_ALTERNATIVE,u=l.COLOR_BY_EXPRESSION;return G.moveByIdFromGroup(a,[],"qAttributeDimensions",c),G.moveByIdFromGroup(a,[],"qAttributeExpressions",c),G.moveByIdFromGroup(s,[],"qAttributeExpressions",u),i},importProperties:function(e){var t=e.exportFormat,n=e.initialProperties,r=e.dataDefinition,i=e.defaultPropertyValues,a=e.hypercubePath,s=e.extension,l=e.supportedFilters,c=e.isHCModifierSupported,u=U.importProperties({exportFormat:t,initialProperties:n,dataDefinition:r,defaultPropertyValues:i,hypercubePath:a,extension:s,supportedFilters:l,isHCModifierSupported:c}),d=u.qProperty,f=o.getValue(d,"visualization"),h=o.getValue(d,"qHyperCubeDef.qDimensions",[]),p=o.getValue(d,"color.mode",""),m=o.getValue(d,"color.auto",""),g=ce(d,f),y=ue({canColorBy:g,autoColor:m,colorMode:p,dimensions:h});return g[p]?he({shouldUpdateColorBy:y,properties:d})&&pe(d):me(d),y&&de(d,"qHyperCubeDef."),ge(d)&&le(d,"color.persistent",!0),fe(h),u}};var ve=["bar","marker","line"];const be=function(e){var t=e.initialProperties,n=e.properties;t.measureAxis&&void 0===t.measureAxis.autoMinMax?V(n,"unsupportedAutoMinMax")||w()(n.measureAxis,t.measureAxis):V(n,"supportedAutoMinMax")||w()(n.measureAxis,t.measureAxis)},xe=function(e){var t,n=e.exportFormat,r=e.initialProperties,i=e.properties,o=e.measureType,a=i.qHyperCubeDef,s=i.measureAxis;if(function(e){var t=e.initialProperties;return!(!e.exportFormat.properties.measureAxes||t.measureAxes||!t.measureAxis||void 0===t.measureAxis.autoMinMax)}({exportFormat:n,initialProperties:r})){var l=function(e){var t=[];return e.qMeasures.length>0&&e.qMeasures.forEach((function(e){if(e.qDef.series){var n=e.qDef.series,r=n.type,i=n.axis;t[i]||(t[i]={axis:i,type:{line:0,marker:0,bar:0,total:0}}),ve.includes(r)&&t[i].type[r]++,t[i].type.total++}})),t}(a);l.length?(o&&(t=l.filter((function(e){return e.type[o]>0})).sort((function(e,t){return t.type[o]-e.type[o]}))),t&&t.length||(t=l.sort((function(e,t){return t.type.total-e.type.total}))),t&&t[0]&&w()(s,n.properties.measureAxes[t[0].axis])):w()(s,n.properties.measureAxes[0])}},Se=function(e){if(e.qDimensions.length>1){var t=e.qInterColumnSortOrder.indexOf(0);if(0!==t){var n=e.qInterColumnSortOrder[0];e.qInterColumnSortOrder[0]=0,e.qInterColumnSortOrder[t]=n}}},we={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,i=e.supportedAutoMinMax,o=void 0===i||i,a=ye.exportProperties({propertyTree:t,hypercubePath:n,viewDataMode:r}),s=a.properties;return o?(x(s,"measureAxis.min","supportedAutoMinMax"),x(s,"measureAxis.max","supportedAutoMinMax")):(x(s,"measureAxis.min","unsupportedAutoMinMax"),x(s,"measureAxis.max","unsupportedAutoMinMax")),a},importProperties:function(e){var t=e.exportFormat,n=e.initialProperties,r=e.dataDefinition,i=e.defaultPropertyValues,o=e.hypercubePath,a=e.measureType,s=e.extension,l=e.supportedFilters,c=e.isHCModifierSupported,u=ye.importProperties({exportFormat:t,initialProperties:n,dataDefinition:r,defaultPropertyValues:i,hypercubePath:o,extension:s,supportedFilters:l,isHCModifierSupported:c}),d=u.qProperty;return be({initialProperties:n,properties:d}),xe({exportFormat:t,initialProperties:n,properties:d,measureType:a}),Se(d.qHyperCubeDef),d.qHyperCubeDef.qColumnOrder=[],d.qHyperCubeDef.columnOrder=[],u}};function Me(e,t,n){return"qLayoutExclude.quarantine.".concat(e,".").concat(t,".").concat(n)}function Ee(e){var t=e.properties,n=e.arrayPath,r=e.quarantineName,i=e.arrayName,a=e.itemPath;o.getValue(t,n,[]).forEach((function(e){return function(e){var t=e.properties,n=e.quarantineName,r=e.arrayName,i=e.item,a=e.itemPath,s=o.getValue(i,a);if(void 0!==s){var l=o.getValue(i,"qDef.cId");l||(l=o.generateId(),o.setValue(i,"qDef.cId",l));var c=Me(n,r,l);o.setValue(t,c,s),o.setValue(i,a,void 0)}}({properties:t,quarantineName:r,arrayName:i,item:e,itemPath:a})}))}function ke(e){var t=e.properties,n=e.arrayPath,r=e.quarantineName,i=e.arrayName,a=e.itemPath;o.getValue(t,n,[]).forEach((function(e){return function(e){var t=e.properties,n=e.quarantineName,r=e.arrayName,i=e.item,a=e.itemPath,s=o.getValue(i,"qDef.cId");if(s){var l=Me(n,r,s),c=o.getValue(t,l);void 0!==c&&(o.setValue(i,a,c),o.setValue(t,l,void 0))}}({properties:t,quarantineName:r,arrayName:i,item:e,itemPath:a})}))}var Ce="qHyperCubeDef.qMeasures",Te="conditionalColoring",Ae="measures",Oe="qDef.conditionalColoring";const Ne={quarantine:function(e){Ee({properties:e,arrayPath:Ce,quarantineName:Te,arrayName:Ae,itemPath:Oe})},unquarantine:function(e){ke({properties:e,arrayPath:Ce,itemPath:Oe,arrayName:Ae,quarantineName:Te})}};var qe="qHyperCubeDef.qMeasures",De="measures",Re="qHyperCubeDef.qDimensions",Ie="dimensions",_e="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",Pe="alternativeMeasures",Le="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",ze="alternativeDimensions",Fe="qCalcCondition",je="conditionalShowHide";const $e={quarantine:function(e){Ee({properties:e,arrayPath:qe,quarantineName:je,arrayName:De,itemPath:Fe}),Ee({properties:e,arrayPath:Re,quarantineName:je,arrayName:Ie,itemPath:Fe})},unquarantine:function(e){ke({properties:e,arrayPath:qe,quarantineName:je,arrayName:De,itemPath:Fe}),ke({properties:e,arrayPath:Re,quarantineName:je,arrayName:Ie,itemPath:Fe})},quarantineAlternative:function(e){Ee({properties:e,arrayPath:_e,quarantineName:je,arrayName:Pe,itemPath:Fe}),Ee({properties:e,arrayPath:Le,quarantineName:je,arrayName:ze,itemPath:Fe})},unquarantineAlternative:function(e){ke({properties:e,arrayPath:_e,quarantineName:je,arrayName:Pe,itemPath:Fe}),ke({properties:e,arrayPath:Le,quarantineName:je,arrayName:ze,itemPath:Fe})}},He={hypercube:U,colorChart:ye,axisChart:we,quarantineProperty:x,unquarantineProperty:V,quarantineArrayProp:Ee,unquarantineArrayProp:ke,conditionalColoring:Ne,conditionalShow:$e}})(),r.default})()}(W5);var Y5=n(W5.exports);const X5={version:"1.26.13",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 G5=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=em(n[e].qDef.series),i===zd.TYPE.BAR?r[0]=1:i===zd.TYPE.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)},K5=e=>(t,n)=>{let r;const i=t.qHyperCubeDef.qMeasures[n];if(i){const{type:e}=i.qDef.series;r=e===zd.TYPE.LINE?"Visualizations.Descriptions.HeightLine":e===zd.TYPE.BAR?"Visualizations.Descriptions.LengthBars":"Visualizations.Descriptions.ComboChart.Measure.HeightMarker"}else r=n?"Visualizations.Descriptions.HeightLine":"Visualizations.Descriptions.LengthBars";return e.get(r)};function J5(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&&em(null===(n=r[0].qDef)||void 0===n?void 0:n.series)===zd.TYPE.LINE?e.color.mode="primary":"byDimension"===i&&r.length>1&&(e.color.mode="byMultiple")}function Q5(e){const{translator:t}=e;return{dimensions:{min:1,max:1,description:G5(t),added(e,t){Qd.addCallbackCustomTooltip(t)},moved(e,t){Qd.moveCallbackCustomTooltip(t,e)},removed(e,t){Qd.removeCallbackCustomTooltip(t,e)},replaced(e,t,n,r){Qd.replaceCallbackCustomTooltip(r,t)}},measures:{min:1,max:15,description:K5(t),added({qDef:e},t){var n;J5(t),null!==(n=e.series)&&void 0!==n&&n.type||(t.qHyperCubeDef.qMeasures.length>1?e.series={type:zd.TYPE.LINE,axis:zd.AXIS.SECONDARY}:e.series={type:zd.TYPE.BAR,axis:zd.AXIS.PRIMARY})},moved(e,t){J5(t)}}}}function Z5(e){const t=Q5(e);return{properties:X5,data:{targets:[{path:"/qHyperCubeDef",...t}]},importProperties:({exportFormat:e,initialProperties:n,hypercubePath:r})=>{const i=Y5.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&&f(!0,i.qProperty.measureAxes[s],e.properties.measureAxis,{logarithmic:!1}),i},exportProperties:({propertyTree:e,hyperCubePath:t,viewDataMode:n})=>Y5.axisChart.exportProperties({propertyTree:e,hyperCubePath:t,viewDataMode:n})}}const e3=(e,t,n,r)=>{const i=`${t}.fontFamily`,o=`${t}.fontSize`;return{fontFamilyItem:{component:"dropdown",ref:`${e}.fontFamily`,options:()=>n.getOptions(i),defaultValue:()=>n.getDefaultValue(i)},fontWrapperItem:{component:"inline-wrapper",items:{fontSizeItem:{component:"dropdown",ref:`${e}.fontSize`,options:()=>n.getOptions(o),defaultValue:()=>n.getDefaultValue(o)},fontColorItem:{component:"color-picker",width:!1,ref:`${e}.color`,defaultValue:()=>({color:r.getStyle("object.comboChart",t,"color")})}}}}};function t3(e,t,n){const r=function(e){var t=e.theme,n=e.translator,r=e.config,i=void 0===r?{}:r,o=e.flags,a=function(e){var t=e.config,n=void 0===t?{}:t,r=n.id,i=n.paths;return{id:void 0===r?"object":"".concat("object",".").concat(r),paths:Array.isArray(i)?i:[]}}({config:i}),s=a.id,l=a.paths,c={};l.forEach((function(e){for(var r=e.split("."),i=c,a=0;a<r.length;a++){var l=r[a];a===r.length-1?i[l]=xa({theme:t,translator:n,id:s,path:e,flags:o}):void 0===i[l]&&(i[l]={}),i=i[l]}}));var u=function(e){for(var t=e.split("."),n=c,r=0;r<t.length;r++){var i=t[r];if(void 0===n[i])throw new Error("font-resolver: Path '".concat(e,"' could not be resolved."));n=n[i]}return n};return c.getDefaultValue=function(e){return u(e).getDefaultValue()},c.getOptions=function(e){return u(e).getOptions()},c}({theme:t,translator:n,flags:e,config:{id:"comboChart",paths:["axis.title","axis.label.name","label.value","legend.title","legend.label"]}});if(null!=e&&e.isEnabled("SENSECLIENT_IM_311_STYLINGPANEL_COMBOCHART"))return{component:"styling-panel",show:!0,chartType:"combochart",translation:"LayerStyleEditor.component.styling",chartTitle:"Object.ComboChart",subtitle:"LayerStyleEditor.component.styling",useGeneral:!0,useBackground:null==e?void 0:e.isEnabled("SENSECLIENT_IM_2431_COMBOCHART_BG"),items:{barSection:{translation:"Visualizations.Descriptions.Bars",component:"accordion",items:{outlineSection:{translation:"properties.Outline",component:"panel-section",items:{wrapperItem:{component:"items",ref:"components",key:"bar",items:{barStroke:{component:"inline-wrapper",items:{strokeWidth:{ref:"style.strokeWidth",width:!0,component:"dropdown",options:[{translation:"Common.None",value:"none"},{translation:"Common.Small",value:"small"},{translation:"Common.Medium",value:"medium"},{translation:"Common.Large",value:"large"}],defaultValue:"none",schemaIgnore:!0},strokeColor:{ref:"style.strokeColor",defaultValue:{color:"#205891"},schemaIgnore:!0,width:"auto",component:"color-picker"}}}}}}},widthSection:{translation:"LayerStyleEditor.style.barWidth",component:"panel-section",items:{barWidth:{component:"items",ref:"components",key:"bar",items:{width:{ref:"style.width",component:"slider",min:.01,max:1,step:.01,defaultValue:.7,schemaIgnore:!0}}}}},labelValueSection:null!=e&&e.isEnabled("CLIENT_IM_3050")?{translation:"properties.dataPoints.barlabelmode",component:"panel-section",items:{labelItems:{component:"items",ref:"components",key:"bar",items:{...e3("bar.label.value","label.value",r,t),contrastColor:{component:"checkbox",type:"boolean",ref:"bar.label.value.useContrastColor",translation:"properties.dataPoints.valuelabel.contrast",defaultValue:!0}}}}}:void 0}},lineSection:{translation:"Visualizations.Descriptions.Lines",component:"accordion",items:{dataPointSection:{translation:"LayerStyleEditor.style.dataPointSize",component:"panel-section",items:{dataPointSize:{component:"items",ref:"components",key:"line",items:{size:{ref:"style.dataPointSize",component:"slider",min:3,max:20,step:1,defaultValue:6,schemaIgnore:!0}}}}},lineSection:{translation:"Line options",component:"panel-section",items:{wrapperItem:{component:"items",ref:"components",key:"line",items:{size:{ref:"style.lineThickness",translation:"Thickness",component:"slider",defaultValue:1,min:1,max:5,step:1,schemaIgnore:!0},type:{ref:"style.lineType",translation:"Type",component:"dropdown",width:"auto",grouped:!0,options:[{value:"solid",translation:"LayerStyleEditor.style.solid"},{value:"dashed",translation:"LayerStyleEditor.style.dashed"}],defaultValue:"solid",schemaIgnore:!0},curve:{ref:"style.lineCurve",translation:"Curve",component:"dropdown",width:"auto",grouped:!0,options:[{value:"linear",translation:"LayerStyleEditor.style.linear"},{value:"monotone",translation:"LayerStyleEditor.style.monotone"}],defaultValue:"linear",schemaIgnore:!0}}}}},labelValueSection:null!=e&&e.isEnabled("CLIENT_IM_3050")?{translation:"properties.dataPoints.linelabelmode",component:"panel-section",items:{labelItems:{component:"items",ref:"components",key:"line",items:e3("line.label.value","label.value",r,t)}}}:void 0}},axisTitleSection:null!=e&&e.isEnabled("CLIENT_IM_3050")?{translation:"properties.axis.title",component:"panel-section",items:{labelItems:{component:"items",ref:"components",key:"axis",items:e3("axis.title","axis.title",r,t)}}}:void 0,axisLabelSection:null!=e&&e.isEnabled("CLIENT_IM_3050")?{translation:"properties.axis.label",component:"panel-section",items:{labelItems:{component:"items",ref:"components",key:"axis",items:e3("axis.label.name","axis.label.name",r,t)}}}:void 0,legendTitleSection:null!=e&&e.isEnabled("CLIENT_IM_3051")?{translation:"properties.legend.title",component:"panel-section",items:{labelItems:{component:"items",ref:"components",key:"legend",items:e3("legend.title","legend.title",r,t)}}}:void 0,legendLabelSection:null!=e&&e.isEnabled("CLIENT_IM_3051")?{translation:"properties.legend.label",component:"panel-section",items:{labelItems:{component:"items",ref:"components",key:"legend",items:e3("legend.label","legend.label",r,t)}}}:void 0}};const i={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"}]},o={component:"color-picker",type:"object",baseRef:"style.strokeColor",translation:"LayerStyleEditor.style.strokeColor",dualOutput:!0,show:e=>"none"!==yl(e,`${((e,t)=>{let n=-1;for(let r=0;r<e.length;r++)if(e[r].key===t){n=r;break}return n})(e,"bar")}.${i.baseRef}`),defaultValue:()=>({index:-1,color:"#205891"})},a={component:"slider",type:"number",expression:"optional",baseRef:"style.width",translation:"LayerStyleEditor.style.barWidth",show:(e,t,n)=>{const r=t.getMeasures().some((e=>em(e.qDef.series)===zd.TYPE.LINE));return!T.continuous(n.layout,r&&S.isTime(!0,n.layout))},defaultValue:.7,min:.01,max:1,step:.01},s={component:"slider",type:"number",expression:"optional",baseRef:"style.dataPointSize",translation:"LayerStyleEditor.style.dataPointSize",show:!0,defaultValue:6,min:3,max:20,step:1},l={component:"slider",type:"number",expression:"optional",baseRef:"style.lineThickness",translation:"LayerStyleEditor.style.lineThickness",show:!0,defaultValue:1,min:1,max:5,step:1},c={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"}]},u={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(e){const t="grouped"===e.barGrouping.grouping,n=e.qHyperCubeDef.qMeasures.filter((e=>em(e.qDef.series)===zd.TYPE.BAR)).length,r=t&&n>1;return[{key:"bar",style:{strokeWidth:i.defaultValue,strokeColor:o.defaultValue(),width:r?.9:.7}},{key:"line",style:{dataPointSize:s.defaultValue,lineThickness:l.defaultValue,lineType:c.defaultValue,lineCurve:u.defaultValue}}]},items:{list:{type:"items",component:"expandable-items",items:{bar:{type:"items",translation:"Visualizations.Descriptions.Bar",expanded:!0,styleKey:"bar",items:{barStrokeWidth:i,barStrokeColor:o,barWidth:a}},line:{type:"items",translation:"Visualizations.Descriptions.Line",expanded:!0,styleKey:"line",items:{dataPointSize:s,lineThickness:l,lineType:c,lineCurve:u}}}}}}}const n3={classification:{section:"styling",tags:["simple"],exclusive:!0},component:"items",show:!0,chartType:"combochart",translation:"LayerStyleEditor.component.styling",chartTitle:"Object.ComboChart",subtitle:"LayerStyleEditor.component.styling",useGeneral:!0,items:{barsSection:{component:"items",items:{wrapperItem:{component:"items",ref:"components",key:"bar",items:{barsHeader:{component:"header",translation:"Visualizations.Descriptions.Bars"},outlineSection:{component:"items",items:{barStroke:{component:"inline-wrapper",items:{strokeWidth:{ref:"style.strokeWidth",width:!0,component:"dropdown",translation:"LayerStyleEditor.style.strokeWidth",options:[{translation:"Common.None",value:"none"},{translation:"Common.Small",value:"small"},{translation:"Common.Medium",value:"medium"},{translation:"Common.Large",value:"large"}],defaultValue:"none",schemaIgnore:!0},strokeColor:{ref:"style.strokeColor",schemaIgnore:!0,defaultValue:{color:"#205891"},width:"auto",component:"color-picker"}}}}},widthSection:{component:"items",items:{barWidth:{component:"items",items:{width:{ref:"style.width",translation:"LayerStyleEditor.style.barWidth",component:"slider",min:.01,max:1,step:.01,schemaIgnore:!0,defaultValue:.7}}}}}}}}},linesSection:{component:"items",items:{wrapperItem:{component:"items",items:{linesHeader:{component:"header",translation:"Visualizations.Descriptions.Lines"},dataPointSection:{component:"items",items:{dataPointSize:{component:"items",ref:"components",key:"line",items:{size:{ref:"style.dataPointSize",translation:"LayerStyleEditor.style.dataPointSize",component:"slider",min:3,max:20,step:1,defaultValue:6,schemaIgnore:!0}}}}},lineSection:{component:"items",items:{wrapperItem:{component:"items",ref:"components",key:"line",items:{size:{ref:"style.lineThickness",translation:"LayerStyleEditor.style.lineThickness",component:"slider",defaultValue:1,min:1,max:5,step:1,schemaIgnore:!0},type:{ref:"style.lineType",translation:"LayerStyleEditor.style.lineType",component:"dropdown",width:"auto",grouped:!0,options:[{value:"solid",translation:"LayerStyleEditor.style.solid"},{value:"dashed",translation:"LayerStyleEditor.style.dashed"}],defaultValue:"solid",schemaIgnore:!0},curve:{ref:"style.lineCurve",translation:"LayerStyleEditor.style.lineCurve",component:"dropdown",width:"auto",grouped:!0,options:[{value:"linear",translation:"LayerStyleEditor.style.linear"},{value:"monotone",translation:"LayerStyleEditor.style.monotone"}],defaultValue:"linear",schemaIgnore:!0}}}}}}}}},optionsSection:{component:"items",items:{wrapperItem:{component:"items",items:{optionsHeader:{component:"header",translation:"LayerStyleEditor.label.Options"},scrollStartPos:{ref:"scrollStartPos",translation:"properties.ScrollAlignment",component:"dropdown",defaultValue:0,options:[{value:0,translation:"properties.ScrollAlignStart"},{value:1,translation:"properties.ScrollAlignEnd"}]},dataPoints:{ref:"dataPoint.show",translation:"properties.dataPoints.showDataPoints",type:"boolean",defaultValue:!1}}}}}}};function r3(e){const t=yl(e,"qHyperCube.qMeasureInfo",[]).some((({series:e=zd.NOPE_SERIES})=>em(e)===zd.TYPE.LINE));return T.continuous(e,(()=>t&&S.isTime(!0,e)))}function i3(e){var t;return!(null===(t=e.qDef)||void 0===t||null===(t=t.color)||void 0===t||!t.on)}function o3(e){var t,n;return i3(e)&&"primary"===(null!==(t=null===(n=e.qDef)||void 0===n||null===(n=n.color)||void 0===n?void 0:n.mode)&&void 0!==t?t:"primary")}function a3(e){var t;return i3(e)&&"byExpression"===(null===(t=e.qDef)||void 0===t||null===(t=t.color)||void 0===t?void 0:t.mode)}function s3(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 l3(e){return a3(e)?[{qExpression:e.qDef.color.colorExpression,id:"colorByMeasureExpression"}]:[]}function c3(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?[...s3(n),...l3(e)]:l3(e)}(t,n,e)))}function u3(e){var t;const n={ref:"qDef.series.type",type:"string",component:"item-selection-list",defaultValue:"bar",schemaIgnore:!0,horizontal:!0,items:[{icon:e=>"stacked"===e.barGrouping.grouping||r3(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"}]},r={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 em(null===(t=e.qDef)||void 0===t?void 0:t.series)===zd.TYPE.MARKER}},i={ref:"qDef.series.markerFill",translation:"properties.series.fill",type:"boolean",defaultValue:!0,show(e){var t;return em(null===(t=e.qDef)||void 0===t?void 0:t.series)===zd.TYPE.MARKER&&!["line"].includes(e.qDef.series.marker)}},o={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)=>i3(...e)},a=null===(t=e.anything)||void 0===t||null===(t=t.sense)||void 0===t?void 0:t.theme,s={ref:"qDef.color.paletteColor",translation:"properties.color",type:"object",component:"color-picker",dualOutput:!0,defaultValue:()=>{var e;const{primary:t}=a.getDataColorSpecials(),n=null===(e=a.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:o3},l={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:{ref:"qDef.series.axis",type:"integer",component:"dropdown",defaultValue:0,options:[{translation:"properties.axis.primary",value:0},{translation:"properties.axis.secondary",value:1}]},seriesMarker:r,seriesMarkerFill:i}},color:{type:"items",translation:"properties.color",items:{customColor:{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"}},colorMode:o,paletteColor:s,attributeExpression:{type:"string",component:"expression",expressionType:"measure",schemaIgnore:!0,ref:"qDef.color.colorExpression",translation:"Common.Expression",show:a3}}}}}}};return{items:{series:{type:"items",items:{supPanel:l}}}}}const d3=10,f3=!0;function h3(e,t,n){let r;const i=n||0;var o,a;t?r=t.getMeasureLayouts():r=null!==(o=null==e||null===(a=e.qHyperCubeDef)||void 0===a?void 0:a.qMeasures)&&void 0!==o?o:[];return r.filter((e=>{const{series:t}=e||{};return 0===i?WZ(t,f3):!WZ(t,f3)}))}function p3(e,t){return t.getMeasures().filter((e=>em(e.qDef.series)===zd.TYPE.LINE)).length>0}function m3(e,t,n){const r=t.getMeasures().filter((e=>em(e.qDef.series)===zd.TYPE.BAR));return r.filter((e=>e.qDef.series.axis!==zd.AXIS.SECONDARY)).length>n||r.filter((e=>e.qDef.series.axis===zd.AXIS.SECONDARY)).length>n}const g3=(e,t,n,r)=>{const i="vertical"===t.layout.orientation||r3(t.layout)?"y":"x",o=h3(e,t,r).map((e=>e.qFallbackTitle));let a;return a=o.length?n.get(`properties.${i}AxisWithInfo`,[o.join(",")]):n.get(`properties.${i}Axis`),a};function y3(e){var t,n,r;const{translator:i,flags:o,anything:a}=e,s=null==e||null===(t=e.anything)||void 0===t||null===(t=t.sense)||void 0===t?void 0:t.theme,l=null==e||null===(n=e.anything)||void 0===n||null===(n=n.sense)||void 0===n||null===(r=n.isUnsupportedFeature)||void 0===r?void 0:r.call(n,"continuousData"),c={items:{attributeExpression:{ref:"color.colorExpression",change:null,globalChange:e=>c3(e)},expressionLabel:{change:null},disclaimer:{component:"text",translation:"properties.color.colorOnMeasureDisclaimer",style:"hint",show:e=>e.qHyperCubeDef.qMeasures.some((e=>i3(e)))}}},u=e=>!!e&&(e.coloring&&e.coloring.baseColor&&e.coloring.baseColor.color?e.coloring.baseColor:!(!e.baseColor||!e.baseColor.color)&&e.baseColor);const d=(e,t)=>!yl(e,"color.auto")&&"primary"===yl(e,"color.mode")&&!((e=>yl(e,"layout.qHyperCube.qMeasureInfo",[]).filter((e=>!!u(e))).length>0)(t)&&"measure"===yl(e,"color.useBaseColors")||function(e){return yl(e,"layout.qHyperCube.qDimensionInfo",[]).filter((e=>!!u(e))).length>0}(t)&&"dimension"===yl(e,"color.useBaseColors")),f=(e,t)=>{var n,r;return e.qHyperCubeDef.qMeasures.some((e=>i3(e)))||!o.isEnabled("SIMPLE_PROPERTIES_LIBRARY_COLOR")&&!(null!=e&&null!==(n=e.color)&&void 0!==n&&n.auto||"primary"!==(null==e||null===(r=e.color)||void 0===r?void 0:r.mode)||d(e,t))},h={items:{disclaimer:{show:(e,t)=>f(e,t),reset:e=>{e.qHyperCubeDef.qMeasures.forEach((e=>{var t;yl(t=e,"qDef.color.on",void 0)&&bl(t,"qDef.color.on",!1)}))}},simpleItems:{show:(e,t)=>!f(e,t)}}},p={items:{labels:{items:{header:{show:e=>e.qHyperCubeDef.qDimensions.length&&e.qHyperCubeDef.qMeasures.length},barLabels:{component:"checkbox",ref:"dataPoint.showBarLabels",type:"boolean",translation:"Simple.Label.Bar",show:(e,t)=>e.qHyperCubeDef.qDimensions.length&&e.qHyperCubeDef.qMeasures.length&&m3(0,t,0)},lineLabels:{component:"checkbox",ref:"dataPoint.showLineLabels",type:"boolean",translation:"Simple.Label.Line",show:(e,t)=>e.qHyperCubeDef.qDimensions.length&&e.qHyperCubeDef.qMeasures.length&&p3(0,t),convertFunctions:{get:(e,t,n,r)=>r.dataPoint.show&&r.dataPoint.showLineLabels,set(e,t,n,r,i){i.dataPoint.showLineLabels=e,i.dataPoint.show=e}},reset(e){bl(e,"dataPoint.show",!1),bl(e,"dataPoint.showLineLabels",!1)}},dimensionTitle:{component:"checkbox",ref:"dimensionAxis.show",type:"string",translation:"Simple.Label.Dimension.Hide",defaultValue:"all",show:e=>e.qHyperCubeDef.qDimensions.length&&e.qHyperCubeDef.qMeasures.length,convertFunctions:{get:(e,t,n,r)=>"labels"===r.dimensionAxis.show||"none"===r.dimensionAxis.show,set(e,t,n,r,i){i.dimensionAxis.show=e?"labels":"all"}}},primaryMeasureTitle:{component:"checkbox",ref:"measureAxes.0.show",type:"string",label:(e,t)=>i.get(h3(e,t,1).length>0?"Simple.Label.PrimaryMeasure.Hide":"Simple.Label.Measure.Hide"),defaultValue:"all",show:(e,t)=>e.qHyperCubeDef.qDimensions.length&&e.qHyperCubeDef.qMeasures.length&&h3(e,t,0).length>0,convertFunctions:{get:(e,t,n,r)=>"labels"===r.measureAxes[0].show||"none"===r.measureAxes[0].show,set(e,t,n,r,i){i.measureAxes[0].show=e?"labels":"all"}}},secondaryMeasureTitle:{component:"checkbox",ref:"measureAxes.1.show",type:"string",translation:"Simple.Label.SecondaryMeasure.Hide",defaultValue:"all",show:(e,t)=>e.qHyperCubeDef.qDimensions.length&&e.qHyperCubeDef.qMeasures.length&&h3(e,t,1).length>0,convertFunctions:{get:(e,t,n,r)=>"labels"===r.measureAxes[1].show||"none"===r.measureAxes[1].show,set(e,t,n,r,i){i.measureAxes[1].show=e?"labels":"all"}}}}}}},m={uses:"settings",items:{simpleStyling:null!=o&&o.isEnabled("COMBOCHART_SIMPLE_STYLING")?n3:void 0,simpleLabels:p,presentation:{type:"items",translation:"properties.presentation",grouped:!0,items:{comboStyling:t3(o,s,i),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)=>m3(0,t,1)&&!r3(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)=>r3(n.layout),convertFunctions:(g="vertical",{get:(e,t,n)=>r3(n.layout)?g:e(t.type),set(e,t,n,r){t(n.type,r3(r.layout)?g:e,g)}})},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)=>!r3(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)=>p3(0,t)},dataPointSettings:{type:"items",grouped:!1,snapshot:{tid:"property-dataPoint"},show:(e,t)=>p3(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)=>m3(0,t,0),defaultValue:!1,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"properties.off"}]}}},colorsAndLegend:{uses:"colorsAndLegend",items:{colors:c,simpleColors:h,legend:{items:{show:{snapshot:{tid:"property-legend"}}}}}},dimensionAxis:{uses:"axis.dimensionAxis",label(e,t){const n="vertical"===t.layout.orientation||r3(t.layout)?"x":"y",r=function(e,t){return t?t.getDimensionLayouts():e.qHyperCubeDef.qDimensions.map((e=>e.qDef))}(e,t).map((e=>e.qFallbackTitle||"")).join(", ");let o;return o=r?i.get(`properties.${n}AxisWithInfo`,[r]):i.get(`properties.${n}Axis`),o},items:{othersGroup:{items:{dock:{options(e,t){let n="Common.Bottom",r="Common.Top";return"vertical"===t.layout.orientation||r3(t.layout)||(n=e.yMirrorMode?"properties.dock.right":"properties.dock.left",r=e.yMirrorMode?"properties.dock.left":"properties.dock.right"),[{value:"near",translation:n},{value:"far",translation:r}]}}}},axisDisplaySettings:{type:"items",components:"items",show:(e,t,n)=>!r3(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:d3,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=d3: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}}}},continuousGroup:{show:!l}},measureAxis:{uses:"axis.measureAxis",label:(e,t)=>g3(e,t,i,0),show:(e,t)=>h3(e,t,0).length>0,items:{axis:{items:{measureAxisTitle:{component:"header",type:"string",label:(e,t)=>g3(e,t,i,0),show:(e,t)=>h3(e,t,0).length>0,classification:{section:"axis",tags:["simple"],exclusive:!0}},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)&&WZ(null==e?void 0:e.series,f3)))}}},dock:{ref:"measureAxes.0.dock",show:(e,t)=>"none"!==e.measureAxes[0].show&&h3(e,t,0).length>0,options(e,t){let n="Common.Bottom",r="Common.Top";return("vertical"===t.layout.orientation||r3(t.layout))&&(n=e.yMirrorMode?"properties.dock.right":"properties.dock.left",r=e.yMirrorMode?"properties.dock.left":"properties.dock.right"),[{value:"near",translation:n},{value:"far",translation:r}]}},spacing:{ref:"measureAxes.0.spacing",show:(e,t)=>e.measureAxes[0]&&"none"!==e.measureAxes[0].show&&h3(e,t,0).length>0}}},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}}},startAt:{type:"string",component:"dropdown",translation:"properties.axis.startAt",show:(e,t)=>h3(e,t,0).length>0,readOnly:e=>!(e.measureAxes[0].autoMinMax||"min"===e.measureAxes[0].minMax&&0===e.measureAxes[0].min),options:[{value:"zero",translation:"properties.axis.startAt.zero"},{value:"lowest",translation:"properties.axis.startAt.lowest"}],defaultValue:"lowest",convertFunctions:{get(e,t,n,r){const{autoMinMax:i,minMax:o,min:a}=(null==r?void 0:r.measureAxes[0])||{};return!0===i?"lowest":i||"min"!==o||0!==a?e(t.type):"zero"},set(e,t,n,r,i){"zero"===e?(bl(i,"measureAxes.0.autoMinMax",!1),bl(i,"measureAxes.0.minMax","min"),bl(i,"measureAxes.0.min",0)):bl(i,"measureAxes.0.autoMinMax",!0)}},classification:{section:"axis",tags:["simple"],exclusive:!0}}}},secondaryMeasureAxis:{uses:"axis.measureAxis",label:(e,t)=>g3(e,t,i,1),show:(e,t)=>h3(e,t,1).length>0,items:{axis:{items:{measureAxisTitle:{component:"header",type:"string",label:(e,t)=>g3(e,t,i,1),show:(e,t)=>h3(e,t,1).length>0,classification:{section:"axis",tags:["simple"],exclusive:!0}},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)&&!WZ(null==e?void 0:e.series,f3)))}}},dock:{ref:"measureAxes.1.dock",defaultValue:"far",show:(e,t)=>"none"!==e.measureAxes[1].show&&h3(e,t,1).length>0,options(e,t){let n="Common.Bottom",r="Common.Top";return("vertical"===t.layout.orientation||r3(t.layout))&&(n=e.yMirrorMode?"properties.dock.right":"properties.dock.left",r=e.yMirrorMode?"properties.dock.left":"properties.dock.right"),[{value:"near",translation:n},{value:"far",translation:r}]}},spacing:{ref:"measureAxes.1.spacing",show:(e,t)=>e.measureAxes[1]&&"none"!==e.measureAxes[1].show&&h3(e,t,1).length>0}}},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}}},startAt:{type:"string",component:"dropdown",translation:"properties.axis.startAt",show:(e,t)=>h3(e,t,1).length>0,readOnly:e=>!(e.measureAxes[1].autoMinMax||"min"===e.measureAxes[1].minMax&&0===e.measureAxes[1].min),options:[{value:"zero",translation:"properties.axis.startAt.zero"},{value:"lowest",translation:"properties.axis.startAt.lowest"}],defaultValue:"lowest",convertFunctions:{get(e,t,n,r){const{autoMinMax:i,minMax:o,min:a}=(null==r?void 0:r.measureAxes[1])||{};return!0===i?"lowest":i||"min"!==o||0!==a?e(t.type):"zero"},set(e,t,n,r,i){"zero"===e?(bl(i,"measureAxes.1.autoMinMax",!1),bl(i,"measureAxes.1.minMax","min"),bl(i,"measureAxes.1.min",0)):bl(i,"measureAxes.1.autoMinMax",!0)}},classification:{section:"axis",tags:["simple"],exclusive:!0}}}},tooltips:{uses:"tooltip"}}};var g;o.isEnabled("SENSECLIENT_LAYERED_LABELS")&&(m.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"}]});const y={uses:"data",items:{dimensions:{items:{nullSuppression:{show(e,t,n){var r,i;if(null!=a&&null!==(r=a.sense)&&void 0!==r&&null!==(i=r.isUnsupportedFeature)&&void 0!==i&&i.call(r,"includeZeroValues"))return!1;return!r3(n.layout)}}}},measures:u3(e)}},v={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=>WZ(e.qDef.series,t)))}(e.qHyperCubeDef.qMeasures,f3)},secondaryMeasureAxisRefLines:{uses:"reflines",ref:"refLine.refLines2",translation:"properties.secondaryMeasureAxisReferenceLines",title:{translation:"properties.secondaryMeasureAxisReferenceLines.tooltip"},show:e=>function(e,t){return e.some((e=>!WZ(e.qDef.series,t)))}(e.qHyperCubeDef.qMeasures,f3)},dimRefLines:{uses:"dimReflines"}}};return{type:"items",component:"accordion",items:{data:y,sorting:{uses:"sortingWithDisclaimer"},addons:v,settings:m}}}function v3(e){return e.qHyperCubeDef.qMeasures.filter((e=>em(e.qDef.series)===zd.TYPE.LINE)).length>0}function b3(){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)=>v3(e)||!r3(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){var n;return function(e,t){const n=e.qHyperCubeDef.qMeasures.filter((e=>em(e.qDef.series)===zd.TYPE.BAR));return t?n.filter((e=>e.qDef.series.axis===zd.AXIS.PRIMARY)).length>1||n.filter((e=>e.qDef.series.axis===zd.AXIS.SECONDARY)).length>1:n.length>1}(e,!M2(null!==(n=null==e?void 0:e.version)&&void 0!==n?n:""))&&!r3(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)=>!r3(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=>v3(e)&&e.qHyperCubeDef.qMeasures.length>1},dataPoints:{ref:"dataPoint.show",translation:"properties.dataPoints.showDataPoints",type:"boolean",show:e=>v3(e)}}},color:{uses:"color",items:{disclaimer:{component:"text",translation:"properties.color.colorOnMeasureDisclaimer",style:"hint",show:e=>e.qHyperCubeDef.qMeasures.some((e=>i3(e)))}}}}}}const x3={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 S3(e,t,n,r,i){const{axis:o,icon:a,tid:s,translation:l}=x3[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 w3(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"});S3(r,o,t,n,"bar"),S3(r,o,t,n,"line"),S3(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 M3(e){const t={},{tooltip:n}=e;if(n){var r;t.chart_tooltip_custom=!n.auto;const e=null===(r=n.chart)||void 0===r||null===(r=r.object)||void 0===r?void 0:r.refId;!n.auto&&e&&(t.chart_tooltip_custom_mini_chart=e)}return t}const E3=e=>!!(e&&e.qHyperCube.qSize.qcy>0);function k3(e){return{definition:y3(e),softDefinition:b3(),support:{snapshot:E3,export:!0,exportData:!0,sharing:!1,viewData:!0,modifiers:["accumulation","movingAverage","difference","normalization"]},getDropMeasureOptions:w3,extendMetrics:M3,importProperties:(t,n,r,i)=>{const o={layout:{templateId:n.templateId}};r.mapProperties(o);const a={defaultDimension:r.getDefaultDimensionProperties(),defaultMeasure:r.getDefaultMeasureProperties()},s=Y5.axisChart.importProperties({exportFormat:t,initialProperties:n,dataDefinition:Q5(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&&f(!0,e.qProperty.measureAxes[o],n.properties.measureAxis,{logarithmic:!1}),c3(e.qProperty)}(s,0,t),s},exportProperties:(e,t,n)=>{!function(e){e.qProperty.qHyperCubeDef.qMeasures.forEach((e=>{e.qAttributeExpressions=[]}))}(e);return Y5.axisChart.exportProperties({propertyTree:e,hyperCubePath:t,viewDataMode:n})},migrate:{properties:e=>e.qExtendsId?e:(function(e){var t;e.qHyperCubeDef.qDimensions.forEach(Le),null!==(t=e.qHyperCubeDef.qLayoutExclude)&&void 0!==t&&null!==(t=t.qHyperCubeDef)&&void 0!==t&&t.qDimensions&&e.qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions.forEach(Le)}(e),function(e){return M2(e.version)&&(e.qHyperCubeDef.qMeasures.forEach((e=>{const{qDef:t}=e;void 0===t.series&&(t.series=zd.NOPE_SERIES),void 0===t.series.type&&(t.series.type=zd.NOPE_SERIES.type),void 0===t.series.axis&&(t.series.axis=t.series.type===zd.TYPE.BAR?zd.AXIS.PRIMARY:zd.AXIS.SECONDARY),t.series.type===zd.TYPE.BAR&&t.series.axis===zd.AXIS.SECONDARY&&(t.series.axis=zd.AXIS.PRIMARY)})),e.version=w2.BAR_IN_SECONDARY_AXIS),e}(e))}}}return function(n){var r;!function(e){if(e&&e.get&&e.add){const n="Object.Disclaimer.LimitedData";if(e.get(n)!==n)return;Object.keys(t).forEach((n=>{e.add(t[n])}))}}(n.translator);const{flags:i}=n,o=null===(r=n.anything)||void 0===r||null===(r=r.sense)||void 0===r?void 0:r.isUnsupportedFeature,a=$Z();return{qae:Z5(n),ext:k3(n),component(){const t=function(){const[t,n]=e.useState();return e.useEffect((()=>n(xl())),[]),t}(),n=j5(),r=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}(),s=B5(),l=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:a,environment:r}),c=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(Ld.SCALE.MAJOR),o=Pu({chart:t,actions:n,selections:r,config:{allowSimultaneous:!0,brushRanges:!0,majorScale:e,selectionActions:{reset(){t.brushSelectionIncludeMax=void 0,n.lasso.active()&&n.lasso.action(!1)},clear:V5},selectionEvents:{start:U5}}});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:l,actions:s}),u=F5({picasso:a,chart:l,environment:r,flags:i,viewState:n,viewCache:t,actions:s,selectionService:c});!function({picasso:t,chart:n,models:r,environment:i,flags:o,viewState:a,viewCache:s,actions:l}){const{event:{onZoomIntercept:c,onZoomChange:u}}=Yg,[,d]=e.usePromise((async()=>{if(!(null!=n&&n.update&&r&&i&&a&&s))return;const{layoutService:e,colorService:d,continuousModel:f,discreteModel:h,refLineModel:p,seriesModel:m}=r,{miniComponentKeys:g}=m.meta,{options:y}=i,{viewState:v={}}=y,{legendScrollOffset:b,scrollOffset:x}=e.meta.isSnapshot?e.getLayoutValue("snapshotData.content.chartData",{}):v;a.preventSet("scrollOffset",x),a.preventSet("legendScrollOffset",b),a.preventSet("title",e.getLayoutValue("title"));const S=()=>{p&&p.update(),n.update({partialData:!0,excludeFromUpdate:[...py,...g]})};function w(e=!1){n.update({settings:hy({picasso:t,chart:n,models:r,environment:i,flags:o,viewState:a,viewCache:s,actions:l}),data:e&&[my({models:r}),...gy({models:r}),...d.getData()]})}a.onChanged("scrollOffset",S),e.meta.isContinuous&&(a.onChanged("zoom",u({layoutService:e,continuousDataModel:f},S)),a.intercept("zoom",c({viewCache:s})));const M=e.getDataPages();e.setDataPages([]),w(!0),e.setDataPages(M),e.meta.isContinuous||await h.command.initialize(),w(!1)}),[null==n?void 0:n.update,r,i]);if(d)throw d}({picasso:a,chart:l,models:u,environment:r,flags:i,viewState:n,viewCache:t,actions:s}),(({picasso:t,chart:n,models:r,environment:i,flags:o,viewState:a,viewCache:s,actions:l,isUnsupportedFeature:c})=>{const{width:u,height:d}=e.useRect(),[,f]=e.usePromise((async()=>{if(!(null!=n&&n.update&&r&&i&&a))return;const{colorService:e,discreteModel:f,dockService:h,layoutService:p,refLineModel:m}=r;function g(){n.update({settings:hy({picasso:t,chart:n,models:r,environment:i,flags:o,viewState:a,viewCache:s,actions:l,isUnsupportedFeature:c})})}h.update({width:u,height:d}),e.custom.updateLegend(),m.update({picasso:t,chart:n,models:r,environment:i,viewState:a,viewCache:s,actions:l});const y=p.getDataPages();p.setDataPages([]),g(),p.setDataPages(y),p.meta.isContinuous||await f.command.initialize(),g()}),[u,d]);if(f)throw f})({picasso:a,chart:l,models:u,environment:r,flags:i,viewState:n,viewCache:t,actions:s,isUnsupportedFeature:o}),(({models:t,chart:n,viewState:r})=>{e.onTakeSnapshot((e=>{if(!t)return;const{layoutService:i,dockService:o,colorService:a,discreteModel:s,continuousModel:l,reducedModel:c}=t,{width:u,height:d}=o.meta.chart.size;return e.snapshotData=e.snapshotData||{},e.snapshotData.content={size:{w:u,h:d}},i.meta.isSnapshot?Promise.resolve():(e.snapshotData.content.chartData={scrollOffset:r.get("scrollOffset"),zoom:r.get("zoom"),legendScrollOffset:A(n,Ld.COMPONENT.LEGEND_CATEGORICAL)},i.meta.isDiscrete?(s.command.setSnapshotData(e),c.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:A(n,Ld.COMPONENT.LEGEND_CATEGORICAL)}}})),[r,n])})({models:u,chart:l,viewState:n})}}}}));
|
|
48
|
+
*/function r$(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!e$)throw Error(r$(227));function i$(e,t,n,r,i,o,a,s,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(e){this.onError(e)}}var o$=!1,a$=null,s$=!1,l$=null,c$={onError:function(e){o$=!0,a$=e}};function u$(e,t,n,r,i,o,a,s,l){o$=!1,a$=null,i$.apply(c$,arguments)}var d$=null,f$=null,h$=null;function p$(e,t,n){var r=e.type||"unknown-event";e.currentTarget=h$(n),function(e,t,n,r,i,o,a,s,l){if(u$.apply(this,arguments),o$){if(!o$)throw Error(r$(198));var c=a$;o$=!1,a$=null,s$||(s$=!0,l$=c)}}(r,t,void 0,e),e.currentTarget=null}var m$=null,g$={};function y$(){if(m$)for(var e in g$){var t=g$[e],n=m$.indexOf(e);if(!(-1<n))throw Error(r$(96,e));if(!b$[n]){if(!t.extractEvents)throw Error(r$(97,e));for(var r in b$[n]=t,n=t.eventTypes){var i=void 0,o=n[r],a=t,s=r;if(x$.hasOwnProperty(s))throw Error(r$(99,s));x$[s]=o;var l=o.phasedRegistrationNames;if(l){for(i in l)l.hasOwnProperty(i)&&v$(l[i],a,s);i=!0}else o.registrationName?(v$(o.registrationName,a,s),i=!0):i=!1;if(!i)throw Error(r$(98,r,e))}}}}function v$(e,t,n){if(S$[e])throw Error(r$(100,e));S$[e]=t,w$[e]=t.eventTypes[n].dependencies}var b$=[],x$={},S$={},w$={};function M$(e){var t,n=!1;for(t in e)if(e.hasOwnProperty(t)){var r=e[t];if(!g$.hasOwnProperty(t)||g$[t]!==r){if(g$[t])throw Error(r$(102,t));g$[t]=r,n=!0}}n&&y$()}var E$=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),k$=null,C$=null,T$=null;function A$(e){if(e=f$(e)){if("function"!=typeof k$)throw Error(r$(280));var t=e.stateNode;t&&(t=d$(t),k$(e.stateNode,e.type,t))}}function O$(e){C$?T$?T$.push(e):T$=[e]:C$=e}function N$(){if(C$){var e=C$,t=T$;if(T$=C$=null,A$(e),t)for(e=0;e<t.length;e++)A$(t[e])}}function q$(e,t){return e(t)}function D$(e,t,n,r,i){return e(t,n,r,i)}function R$(){}var I$=q$,_$=!1,P$=!1;function L$(){null===C$&&null===T$||(R$(),N$())}function z$(e,t,n){if(P$)return e(t,n);P$=!0;try{return I$(e,t,n)}finally{P$=!1,L$()}}var F$=/^[: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]*$/,j$=Object.prototype.hasOwnProperty,$$={},H$={};function B$(e,t,n,r,i,o){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o}var V$={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){V$[e]=new B$(e,0,!1,e,null,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];V$[t]=new B$(t,1,!1,e[1],null,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){V$[e]=new B$(e,2,!1,e.toLowerCase(),null,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){V$[e]=new B$(e,2,!1,e,null,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){V$[e]=new B$(e,3,!1,e.toLowerCase(),null,!1)})),["checked","multiple","muted","selected"].forEach((function(e){V$[e]=new B$(e,3,!0,e,null,!1)})),["capture","download"].forEach((function(e){V$[e]=new B$(e,4,!1,e,null,!1)})),["cols","rows","size","span"].forEach((function(e){V$[e]=new B$(e,6,!1,e,null,!1)})),["rowSpan","start"].forEach((function(e){V$[e]=new B$(e,5,!1,e.toLowerCase(),null,!1)}));var U$=/[\-:]([a-z])/g;function W$(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(U$,W$);V$[t]=new B$(t,1,!1,e,null,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(U$,W$);V$[t]=new B$(t,1,!1,e,"http://www.w3.org/1999/xlink",!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(U$,W$);V$[t]=new B$(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1)})),["tabIndex","crossOrigin"].forEach((function(e){V$[e]=new B$(e,1,!1,e.toLowerCase(),null,!1)})),V$.xlinkHref=new B$("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0),["src","href","action","formAction"].forEach((function(e){V$[e]=new B$(e,1,!1,e.toLowerCase(),null,!0)}));var Y$=e$.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function X$(e,t,n,r){var i=V$.hasOwnProperty(t)?V$[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!!j$.call(H$,e)||!j$.call($$,e)&&(F$.test(e)?H$[e]=!0:($$[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))))}Y$.hasOwnProperty("ReactCurrentDispatcher")||(Y$.ReactCurrentDispatcher={current:null}),Y$.hasOwnProperty("ReactCurrentBatchConfig")||(Y$.ReactCurrentBatchConfig={suspense:null});var G$=/^(.*)[\\\/]/,K$="function"==typeof Symbol&&Symbol.for,J$=K$?Symbol.for("react.element"):60103,Q$=K$?Symbol.for("react.portal"):60106,Z$=K$?Symbol.for("react.fragment"):60107,eH=K$?Symbol.for("react.strict_mode"):60108,tH=K$?Symbol.for("react.profiler"):60114,nH=K$?Symbol.for("react.provider"):60109,rH=K$?Symbol.for("react.context"):60110,iH=K$?Symbol.for("react.concurrent_mode"):60111,oH=K$?Symbol.for("react.forward_ref"):60112,aH=K$?Symbol.for("react.suspense"):60113,sH=K$?Symbol.for("react.suspense_list"):60120,lH=K$?Symbol.for("react.memo"):60115,cH=K$?Symbol.for("react.lazy"):60116,uH=K$?Symbol.for("react.block"):60121,dH="function"==typeof Symbol&&Symbol.iterator;function fH(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=dH&&e[dH]||e["@@iterator"])?e:null}function hH(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 Z$:return"Fragment";case Q$:return"Portal";case tH:return"Profiler";case eH:return"StrictMode";case aH:return"Suspense";case sH:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case rH:return"Context.Consumer";case nH:return"Context.Provider";case oH:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case lH:return hH(e.type);case uH:return hH(e.render);case cH:if(e=1===e._status?e._result:null)return hH(e)}return null}function pH(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=hH(e.type);n=null,r&&(n=hH(r.type)),r=o,o="",i?o=" (at "+i.fileName.replace(G$,"")+":"+i.lineNumber+")":n&&(o=" (created by "+n+")"),n="\n in "+(r||"Unknown")+o}t+=n,e=e.return}while(e);return t}function mH(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function gH(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function yH(e){e._valueTracker||(e._valueTracker=function(e){var t=gH(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 vH(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=gH(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function bH(e,t){var n=t.checked;return t$({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function xH(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=mH(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 SH(e,t){null!=(t=t.checked)&&X$(e,"checked",t,!1)}function wH(e,t){SH(e,t);var n=mH(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")?EH(e,t.type,n):t.hasOwnProperty("defaultValue")&&EH(e,t.type,mH(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function MH(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function EH(e,t,n){"number"===t&&e.ownerDocument.activeElement===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function kH(e,t){return e=t$({children:void 0},t),(t=function(e){var t="";return e$.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function CH(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=""+mH(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 TH(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(r$(91));return t$({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function AH(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(r$(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(r$(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:mH(n)}}function OH(e,t){var n=mH(t.value),r=mH(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 NH(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var qH="http://www.w3.org/1999/xhtml",DH="http://www.w3.org/2000/svg";function RH(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 IH(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?RH(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var _H,PH=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!==DH||"innerHTML"in e)e.innerHTML=t;else{for((_H=_H||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=_H.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}));function LH(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}function zH(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var FH={animationend:zH("Animation","AnimationEnd"),animationiteration:zH("Animation","AnimationIteration"),animationstart:zH("Animation","AnimationStart"),transitionend:zH("Transition","TransitionEnd")},jH={},$H={};function HH(e){if(jH[e])return jH[e];if(!FH[e])return e;var t,n=FH[e];for(t in n)if(n.hasOwnProperty(t)&&t in $H)return jH[e]=n[t];return e}E$&&($H=document.createElement("div").style,"AnimationEvent"in window||(delete FH.animationend.animation,delete FH.animationiteration.animation,delete FH.animationstart.animation),"TransitionEvent"in window||delete FH.transitionend.transition);var BH=HH("animationend"),VH=HH("animationiteration"),UH=HH("animationstart"),WH=HH("transitionend"),YH="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),XH=new("function"==typeof WeakMap?WeakMap:Map);function GH(e){var t=XH.get(e);return void 0===t&&(t=new Map,XH.set(e,t)),t}function KH(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(1026&(t=e).effectTag)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function JH(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function QH(e){if(KH(e)!==e)throw Error(r$(188))}function ZH(e){if(e=function(e){var t=e.alternate;if(!t){if(null===(t=KH(e)))throw Error(r$(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var o=i.alternate;if(null===o){if(null!==(r=i.return)){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return QH(i),e;if(o===r)return QH(i),t;o=o.sibling}throw Error(r$(188))}if(n.return!==r.return)n=i,r=o;else{for(var a=!1,s=i.child;s;){if(s===n){a=!0,n=i,r=o;break}if(s===r){a=!0,r=i,n=o;break}s=s.sibling}if(!a){for(s=o.child;s;){if(s===n){a=!0,n=o,r=i;break}if(s===r){a=!0,r=o,n=i;break}s=s.sibling}if(!a)throw Error(r$(189))}}if(n.alternate!==r)throw Error(r$(190))}if(3!==n.tag)throw Error(r$(188));return n.stateNode.current===n?e:t}(e),!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}function eB(e,t){if(null==t)throw Error(r$(30));return 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 tB(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}var nB=null;function rB(e){if(e){var t=e._dispatchListeners,n=e._dispatchInstances;if(Array.isArray(t))for(var r=0;r<t.length&&!e.isPropagationStopped();r++)p$(e,t[r],n[r]);else t&&p$(e,t,n);e._dispatchListeners=null,e._dispatchInstances=null,e.isPersistent()||e.constructor.release(e)}}function iB(e){if(null!==e&&(nB=eB(nB,e)),e=nB,nB=null,e){if(tB(e,rB),nB)throw Error(r$(95));if(s$)throw e=l$,s$=!1,l$=null,e}}function oB(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}function aB(e){if(!E$)return!1;var t=(e="on"+e)in document;return t||((t=document.createElement("div")).setAttribute(e,"return;"),t="function"==typeof t[e]),t}var sB=[];function lB(e){e.topLevelType=null,e.nativeEvent=null,e.targetInst=null,e.ancestors.length=0,10>sB.length&&sB.push(e)}function cB(e,t,n,r){if(sB.length){var i=sB.pop();return i.topLevelType=e,i.eventSystemFlags=r,i.nativeEvent=t,i.targetInst=n,i}return{topLevelType:e,eventSystemFlags:r,nativeEvent:t,targetInst:n,ancestors:[]}}function uB(e){var t=e.targetInst,n=t;do{if(!n){e.ancestors.push(n);break}var r=n;if(3===r.tag)r=r.stateNode.containerInfo;else{for(;r.return;)r=r.return;r=3!==r.tag?null:r.stateNode.containerInfo}if(!r)break;5!==(t=n.tag)&&6!==t||e.ancestors.push(n),n=AV(r)}while(n);for(n=0;n<e.ancestors.length;n++){t=e.ancestors[n];var i=oB(e.nativeEvent);r=e.topLevelType;var o=e.nativeEvent,a=e.eventSystemFlags;0===n&&(a|=64);for(var s=null,l=0;l<b$.length;l++){var c=b$[l];c&&(c=c.extractEvents(r,t,o,i,a))&&(s=eB(s,c))}iB(s)}}function dB(e,t,n){if(!n.has(e)){switch(e){case"scroll":UB(t,"scroll",!0);break;case"focus":case"blur":UB(t,"focus",!0),UB(t,"blur",!0),n.set("blur",null),n.set("focus",null);break;case"cancel":case"close":aB(e)&&UB(t,e,!0);break;case"invalid":case"submit":case"reset":break;default:-1===YH.indexOf(e)&&VB(e,t)}n.set(e,null)}}var fB,hB,pB,mB=!1,gB=[],yB=null,vB=null,bB=null,xB=new Map,SB=new Map,wB=[],MB="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput close cancel copy cut paste click change contextmenu reset submit".split(" "),EB="focus blur dragenter dragleave mouseover mouseout pointerover pointerout gotpointercapture lostpointercapture".split(" ");function kB(e,t,n,r,i){return{blockedOn:e,topLevelType:t,eventSystemFlags:32|n,nativeEvent:i,container:r}}function CB(e,t){switch(e){case"focus":case"blur":yB=null;break;case"dragenter":case"dragleave":vB=null;break;case"mouseover":case"mouseout":bB=null;break;case"pointerover":case"pointerout":xB.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":SB.delete(t.pointerId)}}function TB(e,t,n,r,i,o){return null===e||e.nativeEvent!==o?(e=kB(t,n,r,i,o),null!==t&&(null!==(t=OV(t))&&hB(t)),e):(e.eventSystemFlags|=r,e)}function AB(e){var t=AV(e.target);if(null!==t){var n=KH(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=JH(n)))return e.blockedOn=t,void n$.unstable_runWithPriority(e.priority,(function(){pB(n)}))}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function OB(e){if(null!==e.blockedOn)return!1;var t=GB(e.topLevelType,e.eventSystemFlags,e.container,e.nativeEvent);if(null!==t){var n=OV(t);return null!==n&&hB(n),e.blockedOn=t,!1}return!0}function NB(e,t,n){OB(e)&&n.delete(t)}function qB(){for(mB=!1;0<gB.length;){var e=gB[0];if(null!==e.blockedOn){null!==(e=OV(e.blockedOn))&&fB(e);break}var t=GB(e.topLevelType,e.eventSystemFlags,e.container,e.nativeEvent);null!==t?e.blockedOn=t:gB.shift()}null!==yB&&OB(yB)&&(yB=null),null!==vB&&OB(vB)&&(vB=null),null!==bB&&OB(bB)&&(bB=null),xB.forEach(NB),SB.forEach(NB)}function DB(e,t){e.blockedOn===t&&(e.blockedOn=null,mB||(mB=!0,n$.unstable_scheduleCallback(n$.unstable_NormalPriority,qB)))}function RB(e){function t(t){return DB(t,e)}if(0<gB.length){DB(gB[0],e);for(var n=1;n<gB.length;n++){var r=gB[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==yB&&DB(yB,e),null!==vB&&DB(vB,e),null!==bB&&DB(bB,e),xB.forEach(t),SB.forEach(t),n=0;n<wB.length;n++)(r=wB[n]).blockedOn===e&&(r.blockedOn=null);for(;0<wB.length&&null===(n=wB[0]).blockedOn;)AB(n),null===n.blockedOn&&wB.shift()}var IB={},_B=new Map,PB=new Map,LB=["abort","abort",BH,"animationEnd",VH,"animationIteration",UH,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",WH,"transitionEnd","waiting","waiting"];function zB(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],i=e[n+1],o="on"+(i[0].toUpperCase()+i.slice(1));o={phasedRegistrationNames:{bubbled:o,captured:o+"Capture"},dependencies:[r],eventPriority:t},PB.set(r,t),_B.set(r,o),IB[i]=o}}zB("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".split(" "),0),zB("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),zB(LB,2);for(var FB="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),jB=0;jB<FB.length;jB++)PB.set(FB[jB],0);var $B=n$.unstable_UserBlockingPriority,HB=n$.unstable_runWithPriority,BB=!0;function VB(e,t){UB(t,e,!1)}function UB(e,t,n){var r=PB.get(t);switch(void 0===r?2:r){case 0:r=WB.bind(null,t,1,e);break;case 1:r=YB.bind(null,t,1,e);break;default:r=XB.bind(null,t,1,e)}n?e.addEventListener(t,r,!0):e.addEventListener(t,r,!1)}function WB(e,t,n,r){_$||R$();var i=XB,o=_$;_$=!0;try{D$(i,e,t,n,r)}finally{(_$=o)||L$()}}function YB(e,t,n,r){HB($B,XB.bind(null,e,t,n,r))}function XB(e,t,n,r){if(BB)if(0<gB.length&&-1<MB.indexOf(e))e=kB(null,e,t,n,r),gB.push(e);else{var i=GB(e,t,n,r);if(null===i)CB(e,r);else if(-1<MB.indexOf(e))e=kB(i,e,t,n,r),gB.push(e);else if(!function(e,t,n,r,i){switch(t){case"focus":return yB=TB(yB,e,t,n,r,i),!0;case"dragenter":return vB=TB(vB,e,t,n,r,i),!0;case"mouseover":return bB=TB(bB,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return xB.set(o,TB(xB.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,SB.set(o,TB(SB.get(o)||null,e,t,n,r,i)),!0}return!1}(i,e,t,n,r)){CB(e,r),e=cB(e,r,null,t);try{z$(uB,e)}finally{lB(e)}}}}function GB(e,t,n,r){if(null!==(n=AV(n=oB(r)))){var i=KH(n);if(null===i)n=null;else{var o=i.tag;if(13===o){if(null!==(n=JH(i)))return n;n=null}else if(3===o){if(i.stateNode.hydrate)return 3===i.tag?i.stateNode.containerInfo:null;n=null}else i!==n&&(n=null)}}e=cB(e,r,n,t);try{z$(uB,e)}finally{lB(e)}return null}var KB={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},JB=["Webkit","ms","Moz","O"];function QB(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||KB.hasOwnProperty(e)&&KB[e]?(""+t).trim():t+"px"}function ZB(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=QB(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(KB).forEach((function(e){JB.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),KB[t]=KB[e]}))}));var eV=t$({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 tV(e,t){if(t){if(eV[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(r$(137,e,""));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(r$(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(r$(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(r$(62,""))}}function nV(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var rV=qH;function iV(e,t){var n=GH(e=9===e.nodeType||11===e.nodeType?e:e.ownerDocument);t=w$[t];for(var r=0;r<t.length;r++)dB(t[r],e,n)}function oV(){}function aV(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 sV(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function lV(e,t){var n,r=sV(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=sV(r)}}function cV(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?cV(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function uV(){for(var e=window,t=aV();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=aV((e=t.contentWindow).document)}return t}function dV(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)}var fV="$",hV="/$",pV="$?",mV="$!",gV=null,yV=null;function vV(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function bV(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 xV="function"==typeof setTimeout?setTimeout:void 0,SV="function"==typeof clearTimeout?clearTimeout:void 0;function wV(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function MV(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if(n===fV||n===mV||n===pV){if(0===t)return e;t--}else n===hV&&t++}e=e.previousSibling}return null}var EV=Math.random().toString(36).slice(2),kV="__reactInternalInstance$"+EV,CV="__reactEventHandlers$"+EV,TV="__reactContainere$"+EV;function AV(e){var t=e[kV];if(t)return t;for(var n=e.parentNode;n;){if(t=n[TV]||n[kV]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=MV(e);null!==e;){if(n=e[kV])return n;e=MV(e)}return t}n=(e=n).parentNode}return null}function OV(e){return!(e=e[kV]||e[TV])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function NV(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(r$(33))}function qV(e){return e[CV]||null}function DV(e){do{e=e.return}while(e&&5!==e.tag);return e||null}function RV(e,t){var n=e.stateNode;if(!n)return null;var r=d$(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":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(r$(231,t,typeof n));return n}function IV(e,t,n){(t=RV(e,n.dispatchConfig.phasedRegistrationNames[t]))&&(n._dispatchListeners=eB(n._dispatchListeners,t),n._dispatchInstances=eB(n._dispatchInstances,e))}function _V(e){if(e&&e.dispatchConfig.phasedRegistrationNames){for(var t=e._targetInst,n=[];t;)n.push(t),t=DV(t);for(t=n.length;0<t--;)IV(n[t],"captured",e);for(t=0;t<n.length;t++)IV(n[t],"bubbled",e)}}function PV(e,t,n){e&&n&&n.dispatchConfig.registrationName&&(t=RV(e,n.dispatchConfig.registrationName))&&(n._dispatchListeners=eB(n._dispatchListeners,t),n._dispatchInstances=eB(n._dispatchInstances,e))}function LV(e){e&&e.dispatchConfig.registrationName&&PV(e._targetInst,null,e)}function zV(e){tB(e,_V)}var FV=null,jV=null,$V=null;function HV(){if($V)return $V;var e,t,n=jV,r=n.length,i="value"in FV?FV.value:FV.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 $V=i.slice(e,1<t?1-t:void 0)}function BV(){return!0}function VV(){return!1}function UV(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)?BV:VV,this.isPropagationStopped=VV,this}function WV(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 YV(e){if(!(e instanceof this))throw Error(r$(279));e.destructor(),10>this.eventPool.length&&this.eventPool.push(e)}function XV(e){e.eventPool=[],e.getPooled=WV,e.release=YV}t$(UV.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=BV)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=BV)},persist:function(){this.isPersistent=BV},isPersistent:VV,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=VV,this._dispatchInstances=this._dispatchListeners=null}}),UV.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},UV.extend=function(e){function t(){}function n(){return r.apply(this,arguments)}var r=this;t.prototype=r.prototype;var i=new t;return t$(i,n.prototype),n.prototype=i,n.prototype.constructor=n,n.Interface=t$({},r.Interface,e),n.extend=r.extend,XV(n),n},XV(UV);var GV=UV.extend({data:null}),KV=UV.extend({data:null}),JV=[9,13,27,32],QV=E$&&"CompositionEvent"in window,ZV=null;E$&&"documentMode"in document&&(ZV=document.documentMode);var eU=E$&&"TextEvent"in window&&!ZV,tU=E$&&(!QV||ZV&&8<ZV&&11>=ZV),nU=String.fromCharCode(32),rU={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(" ")}},iU=!1;function oU(e,t){switch(e){case"keyup":return-1!==JV.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function aU(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var sU=!1;var lU={eventTypes:rU,extractEvents:function(e,t,n,r){var i;if(QV)e:{switch(e){case"compositionstart":var o=rU.compositionStart;break e;case"compositionend":o=rU.compositionEnd;break e;case"compositionupdate":o=rU.compositionUpdate;break e}o=void 0}else sU?oU(e,n)&&(o=rU.compositionEnd):"keydown"===e&&229===n.keyCode&&(o=rU.compositionStart);return o?(tU&&"ko"!==n.locale&&(sU||o!==rU.compositionStart?o===rU.compositionEnd&&sU&&(i=HV()):(jV="value"in(FV=r)?FV.value:FV.textContent,sU=!0)),o=GV.getPooled(o,t,n,r),i?o.data=i:null!==(i=aU(n))&&(o.data=i),zV(o),i=o):i=null,(e=eU?function(e,t){switch(e){case"compositionend":return aU(t);case"keypress":return 32!==t.which?null:(iU=!0,nU);case"textInput":return(e=t.data)===nU&&iU?null:e;default:return null}}(e,n):function(e,t){if(sU)return"compositionend"===e||!QV&&oU(e,t)?(e=HV(),$V=jV=FV=null,sU=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return tU&&"ko"!==t.locale?null:t.data}}(e,n))?((t=KV.getPooled(rU.beforeInput,t,n,r)).data=e,zV(t)):t=null,null===i?t:null===t?i:[i,t]}},cU={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 uU(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!cU[e.type]:"textarea"===t}var dU={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}};function fU(e,t,n){return(e=UV.getPooled(dU.change,e,t,n)).type="change",O$(n),zV(e),e}var hU=null,pU=null;function mU(e){iB(e)}function gU(e){if(vH(NV(e)))return e}function yU(e,t){if("change"===e)return t}var vU=!1;function bU(){hU&&(hU.detachEvent("onpropertychange",xU),pU=hU=null)}function xU(e){if("value"===e.propertyName&&gU(pU))if(e=fU(pU,e,oB(e)),_$)iB(e);else{_$=!0;try{q$(mU,e)}finally{_$=!1,L$()}}}function SU(e,t,n){"focus"===e?(bU(),pU=n,(hU=t).attachEvent("onpropertychange",xU)):"blur"===e&&bU()}function wU(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return gU(pU)}function MU(e,t){if("click"===e)return gU(t)}function EU(e,t){if("input"===e||"change"===e)return gU(t)}E$&&(vU=aB("input")&&(!document.documentMode||9<document.documentMode));var kU={eventTypes:dU,_isInputEventSupported:vU,extractEvents:function(e,t,n,r){var i=t?NV(t):window,o=i.nodeName&&i.nodeName.toLowerCase();if("select"===o||"input"===o&&"file"===i.type)var a=yU;else if(uU(i))if(vU)a=EU;else{a=wU;var s=SU}else(o=i.nodeName)&&"input"===o.toLowerCase()&&("checkbox"===i.type||"radio"===i.type)&&(a=MU);if(a&&(a=a(e,t)))return fU(a,n,r);s&&s(e,i,t),"blur"===e&&(e=i._wrapperState)&&e.controlled&&"number"===i.type&&EH(i,"number",i.value)}},CU=UV.extend({view:null,detail:null}),TU={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function AU(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=TU[e])&&!!t[e]}function OU(){return AU}var NU=0,qU=0,DU=!1,RU=!1,IU=CU.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:OU,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=NU;return NU=e.screenX,DU?"mousemove"===e.type?e.screenX-t:0:(DU=!0,0)},movementY:function(e){if("movementY"in e)return e.movementY;var t=qU;return qU=e.screenY,RU?"mousemove"===e.type?e.screenY-t:0:(RU=!0,0)}}),_U=IU.extend({pointerId:null,width:null,height:null,pressure:null,tangentialPressure:null,tiltX:null,tiltY:null,twist:null,pointerType:null,isPrimary:null}),PU={mouseEnter:{registrationName:"onMouseEnter",dependencies:["mouseout","mouseover"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["mouseout","mouseover"]},pointerEnter:{registrationName:"onPointerEnter",dependencies:["pointerout","pointerover"]},pointerLeave:{registrationName:"onPointerLeave",dependencies:["pointerout","pointerover"]}},LU={eventTypes:PU,extractEvents:function(e,t,n,r,i){var o="mouseover"===e||"pointerover"===e,a="mouseout"===e||"pointerout"===e;if(o&&0==(32&i)&&(n.relatedTarget||n.fromElement)||!a&&!o)return null;(o=r.window===r?r:(o=r.ownerDocument)?o.defaultView||o.parentWindow:window,a)?(a=t,null!==(t=(t=n.relatedTarget||n.toElement)?AV(t):null)&&(t!==KH(t)||5!==t.tag&&6!==t.tag)&&(t=null)):a=null;if(a===t)return null;if("mouseout"===e||"mouseover"===e)var s=IU,l=PU.mouseLeave,c=PU.mouseEnter,u="mouse";else"pointerout"!==e&&"pointerover"!==e||(s=_U,l=PU.pointerLeave,c=PU.pointerEnter,u="pointer");if(e=null==a?o:NV(a),o=null==t?o:NV(t),(l=s.getPooled(l,a,n,r)).type=u+"leave",l.target=e,l.relatedTarget=o,(n=s.getPooled(c,t,n,r)).type=u+"enter",n.target=o,n.relatedTarget=e,u=t,(r=a)&&u)e:{for(c=u,a=0,e=s=r;e;e=DV(e))a++;for(e=0,t=c;t;t=DV(t))e++;for(;0<a-e;)s=DV(s),a--;for(;0<e-a;)c=DV(c),e--;for(;a--;){if(s===c||s===c.alternate)break e;s=DV(s),c=DV(c)}s=null}else s=null;for(c=s,s=[];r&&r!==c&&(null===(a=r.alternate)||a!==c);)s.push(r),r=DV(r);for(r=[];u&&u!==c&&(null===(a=u.alternate)||a!==c);)r.push(u),u=DV(u);for(u=0;u<s.length;u++)PV(s[u],"bubbled",l);for(u=r.length;0<u--;)PV(r[u],"captured",n);return 0==(64&i)?[l]:[l,n]}};var zU="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},FU=Object.prototype.hasOwnProperty;function jU(e,t){if(zU(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(!FU.call(t,n[r])||!zU(e[n[r]],t[n[r]]))return!1;return!0}var $U=E$&&"documentMode"in document&&11>=document.documentMode,HU={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},BU=null,VU=null,UU=null,WU=!1;function YU(e,t){var n=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;return WU||null==BU||BU!==aV(n)?null:("selectionStart"in(n=BU)&&dV(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},UU&&jU(UU,n)?null:(UU=n,(e=UV.getPooled(HU.select,VU,e,t)).type="select",e.target=BU,zV(e),e))}var XU={eventTypes:HU,extractEvents:function(e,t,n,r,i,o){if(!(o=!(i=o||(r.window===r?r.document:9===r.nodeType?r:r.ownerDocument)))){e:{i=GH(i),o=w$.onSelect;for(var a=0;a<o.length;a++)if(!i.has(o[a])){i=!1;break e}i=!0}o=!i}if(o)return null;switch(i=t?NV(t):window,e){case"focus":(uU(i)||"true"===i.contentEditable)&&(BU=i,VU=t,UU=null);break;case"blur":UU=VU=BU=null;break;case"mousedown":WU=!0;break;case"contextmenu":case"mouseup":case"dragend":return WU=!1,YU(n,r);case"selectionchange":if($U)break;case"keydown":case"keyup":return YU(n,r)}return null}},GU=UV.extend({animationName:null,elapsedTime:null,pseudoElement:null}),KU=UV.extend({clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),JU=CU.extend({relatedTarget:null});function QU(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 ZU={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},eW={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"},tW=CU.extend({key:function(e){if(e.key){var t=ZU[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=QU(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?eW[e.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:OU,charCode:function(e){return"keypress"===e.type?QU(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?QU(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),nW=IU.extend({dataTransfer:null}),rW=CU.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:OU}),iW=UV.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),oW=IU.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}),aW={eventTypes:IB,extractEvents:function(e,t,n,r){var i=_B.get(e);if(!i)return null;switch(e){case"keypress":if(0===QU(n))return null;case"keydown":case"keyup":e=tW;break;case"blur":case"focus":e=JU;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=IU;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":e=nW;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":e=rW;break;case BH:case VH:case UH:e=GU;break;case WH:e=iW;break;case"scroll":e=CU;break;case"wheel":e=oW;break;case"copy":case"cut":case"paste":e=KU;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":e=_U;break;default:e=UV}return zV(t=e.getPooled(i,t,n,r)),t}};if(m$)throw Error(r$(101));m$=Array.prototype.slice.call("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),y$(),d$=qV,f$=OV,h$=NV,M$({SimpleEventPlugin:aW,EnterLeaveEventPlugin:LU,ChangeEventPlugin:kU,SelectEventPlugin:XU,BeforeInputEventPlugin:lU});var sW=[],lW=-1;function cW(e){0>lW||(e.current=sW[lW],sW[lW]=null,lW--)}function uW(e,t){lW++,sW[lW]=e.current,e.current=t}var dW={},fW={current:dW},hW={current:!1},pW=dW;function mW(e,t){var n=e.type.contextTypes;if(!n)return dW;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 gW(e){return null!=(e=e.childContextTypes)}function yW(){cW(hW),cW(fW)}function vW(e,t,n){if(fW.current!==dW)throw Error(r$(168));uW(fW,t),uW(hW,n)}function bW(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in e))throw Error(r$(108,hH(t)||"Unknown",i));return t$({},n,{},r)}function xW(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||dW,pW=fW.current,uW(fW,e),uW(hW,hW.current),!0}function SW(e,t,n){var r=e.stateNode;if(!r)throw Error(r$(169));n?(e=bW(e,t,pW),r.__reactInternalMemoizedMergedChildContext=e,cW(hW),cW(fW),uW(fW,e)):cW(hW),uW(hW,n)}var wW=n$.unstable_runWithPriority,MW=n$.unstable_scheduleCallback,EW=n$.unstable_cancelCallback,kW=n$.unstable_requestPaint,CW=n$.unstable_now,TW=n$.unstable_getCurrentPriorityLevel,AW=n$.unstable_ImmediatePriority,OW=n$.unstable_UserBlockingPriority,NW=n$.unstable_NormalPriority,qW=n$.unstable_LowPriority,DW=n$.unstable_IdlePriority,RW={},IW=n$.unstable_shouldYield,_W=void 0!==kW?kW:function(){},PW=null,LW=null,zW=!1,FW=CW(),jW=1e4>FW?CW:function(){return CW()-FW};function $W(){switch(TW()){case AW:return 99;case OW:return 98;case NW:return 97;case qW:return 96;case DW:return 95;default:throw Error(r$(332))}}function HW(e){switch(e){case 99:return AW;case 98:return OW;case 97:return NW;case 96:return qW;case 95:return DW;default:throw Error(r$(332))}}function BW(e,t){return e=HW(e),wW(e,t)}function VW(e,t,n){return e=HW(e),MW(e,t,n)}function UW(e){return null===PW?(PW=[e],LW=MW(AW,YW)):PW.push(e),RW}function WW(){if(null!==LW){var e=LW;LW=null,EW(e)}YW()}function YW(){if(!zW&&null!==PW){zW=!0;var e=0;try{var t=PW;BW(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),PW=null}catch(t){throw null!==PW&&(PW=PW.slice(e+1)),MW(AW,WW),t}finally{zW=!1}}}function XW(e,t,n){return 1073741821-(1+((1073741821-e+t/10)/(n/=10)|0))*n}function GW(e,t){if(e&&e.defaultProps)for(var n in t=t$({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}var KW={current:null},JW=null,QW=null,ZW=null;function eY(){ZW=QW=JW=null}function tY(e){var t=KW.current;cW(KW),e.type._context._currentValue=t}function nY(e,t){for(;null!==e;){var n=e.alternate;if(e.childExpirationTime<t)e.childExpirationTime=t,null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t);else{if(!(null!==n&&n.childExpirationTime<t))break;n.childExpirationTime=t}e=e.return}}function rY(e,t){JW=e,ZW=QW=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(e.expirationTime>=t&&(NX=!0),e.firstContext=null)}function iY(e,t){if(ZW!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(ZW=e,t=1073741823),t={context:e,observedBits:t,next:null},null===QW){if(null===JW)throw Error(r$(308));QW=t,JW.dependencies={expirationTime:0,firstContext:t,responders:null}}else QW=QW.next=t;return e._currentValue}var oY=!1;function aY(e){e.updateQueue={baseState:e.memoizedState,baseQueue:null,shared:{pending:null},effects:null}}function sY(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,baseQueue:e.baseQueue,shared:e.shared,effects:e.effects})}function lY(e,t){return(e={expirationTime:e,suspenseConfig:t,tag:0,payload:null,callback:null,next:null}).next=e}function cY(e,t){if(null!==(e=e.updateQueue)){var n=(e=e.shared).pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function uY(e,t){var n=e.alternate;null!==n&&sY(n,e),null===(n=(e=e.updateQueue).baseQueue)?(e.baseQueue=t.next=t,t.next=t):(t.next=n.next,n.next=t)}function dY(e,t,n,r){var i=e.updateQueue;oY=!1;var o=i.baseQueue,a=i.shared.pending;if(null!==a){if(null!==o){var s=o.next;o.next=a.next,a.next=s}o=a,i.shared.pending=null,null!==(s=e.alternate)&&(null!==(s=s.updateQueue)&&(s.baseQueue=a))}if(null!==o){s=o.next;var l=i.baseState,c=0,u=null,d=null,f=null;if(null!==s)for(var h=s;;){if((a=h.expirationTime)<r){var p={expirationTime:h.expirationTime,suspenseConfig:h.suspenseConfig,tag:h.tag,payload:h.payload,callback:h.callback,next:null};null===f?(d=f=p,u=l):f=f.next=p,a>c&&(c=a)}else{null!==f&&(f=f.next={expirationTime:1073741823,suspenseConfig:h.suspenseConfig,tag:h.tag,payload:h.payload,callback:h.callback,next:null}),gK(a,h.suspenseConfig);e:{var m=e,g=h;switch(a=t,p=n,g.tag){case 1:if("function"==typeof(m=g.payload)){l=m.call(p,l,a);break e}l=m;break e;case 3:m.effectTag=-4097&m.effectTag|64;case 0:if(null==(a="function"==typeof(m=g.payload)?m.call(p,l,a):m))break e;l=t$({},l,a);break e;case 2:oY=!0}}null!==h.callback&&(e.effectTag|=32,null===(a=i.effects)?i.effects=[h]:a.push(h))}if(null===(h=h.next)||h===s){if(null===(a=i.shared.pending))break;h=o.next=a.next,a.next=s,i.baseQueue=o=a,i.shared.pending=null}}null===f?u=l:f.next=d,i.baseState=u,i.baseQueue=f,yK(c),e.expirationTime=c,e.memoizedState=l}}function fY(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(null!==i){if(r.callback=null,r=i,i=n,"function"!=typeof r)throw Error(r$(191,r));r.call(i)}}}var hY=Y$.ReactCurrentBatchConfig,pY=(new e$.Component).refs;function mY(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:t$({},t,n),e.memoizedState=n,0===e.expirationTime&&(e.updateQueue.baseState=n)}var gY={isMounted:function(e){return!!(e=e._reactInternalFiber)&&KH(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternalFiber;var r=rK(),i=hY.suspense;(i=lY(r=iK(r,e,i),i)).payload=t,null!=n&&(i.callback=n),cY(e,i),oK(e,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternalFiber;var r=rK(),i=hY.suspense;(i=lY(r=iK(r,e,i),i)).tag=1,i.payload=t,null!=n&&(i.callback=n),cY(e,i),oK(e,r)},enqueueForceUpdate:function(e,t){e=e._reactInternalFiber;var n=rK(),r=hY.suspense;(r=lY(n=iK(n,e,r),r)).tag=2,null!=t&&(r.callback=t),cY(e,r),oK(e,n)}};function yY(e,t,n,r,i,o,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,a):!t.prototype||!t.prototype.isPureReactComponent||(!jU(n,r)||!jU(i,o))}function vY(e,t,n){var r=!1,i=dW,o=t.contextType;return"object"==typeof o&&null!==o?o=iY(o):(i=gW(t)?pW:fW.current,o=(r=null!=(r=t.contextTypes))?mW(e,i):dW),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=gY,e.stateNode=t,t._reactInternalFiber=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function bY(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&&gY.enqueueReplaceState(t,t.state,null)}function xY(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=pY,aY(e);var o=t.contextType;"object"==typeof o&&null!==o?i.context=iY(o):(o=gW(t)?pW:fW.current,i.context=mW(e,o)),dY(e,n,i,r),i.state=e.memoizedState,"function"==typeof(o=t.getDerivedStateFromProps)&&(mY(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&&gY.enqueueReplaceState(i,i.state,null),dY(e,n,i,r),i.state=e.memoizedState),"function"==typeof i.componentDidMount&&(e.effectTag|=4)}var SY=Array.isArray;function wY(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(r$(309));var r=n.stateNode}if(!r)throw Error(r$(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===pY&&(t=r.refs={}),null===e?delete t[i]:t[i]=e},t._stringRef=i,t)}if("string"!=typeof e)throw Error(r$(284));if(!n._owner)throw Error(r$(290,e))}return e}function MY(e,t){if("textarea"!==e.type)throw Error(r$(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t,""))}function EY(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){return(e=LK(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=jK(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=wY(e,t,n),r.return=e,r):((r=zK(n.type,n.key,n.props,null,e.mode,r)).ref=wY(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=$K(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function u(e,t,n,r,o){return null===t||7!==t.tag?((t=FK(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=jK(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case J$:return(n=zK(t.type,t.key,t.props,null,e.mode,n)).ref=wY(e,null,t),n.return=e,n;case Q$:return(t=$K(t,e.mode,n)).return=e,t}if(SY(t)||fH(t))return(t=FK(t,e.mode,n,null)).return=e,t;MY(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 J$:return n.key===i?n.type===Z$?u(e,t,n.props.children,r,i):l(e,t,n,r):null;case Q$:return n.key===i?c(e,t,n,r):null}if(SY(n)||fH(n))return null!==i?null:u(e,t,n,r,null);MY(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 J$:return e=e.get(null===r.key?n:r.key)||null,r.type===Z$?u(t,e,r.props.children,i,r.key):l(t,e,r,i);case Q$:return c(t,e=e.get(null===r.key?n:r.key)||null,r,i)}if(SY(r)||fH(r))return u(t,e=e.get(n)||null,r,i,null);MY(t,r)}return null}function p(i,a,s,l){for(var c=null,u=null,p=a,m=a=0,g=null;null!==p&&m<s.length;m++){p.index>m?(g=p,p=null):g=p.sibling;var y=f(i,p,s[m],l);if(null===y){null===p&&(p=g);break}e&&p&&null===y.alternate&&t(i,p),a=o(y,a,m),null===u?c=y:u.sibling=y,u=y,p=g}if(m===s.length)return n(i,p),c;if(null===p){for(;m<s.length;m++)null!==(p=d(i,s[m],l))&&(a=o(p,a,m),null===u?c=p:u.sibling=p,u=p);return c}for(p=r(i,p);m<s.length;m++)null!==(g=h(p,i,m,s[m],l))&&(e&&null!==g.alternate&&p.delete(null===g.key?m:g.key),a=o(g,a,m),null===u?c=g:u.sibling=g,u=g);return e&&p.forEach((function(e){return t(i,e)})),c}function m(i,a,s,l){var c=fH(s);if("function"!=typeof c)throw Error(r$(150));if(null==(s=c.call(s)))throw Error(r$(151));for(var u=c=null,p=a,m=a=0,g=null,y=s.next();null!==p&&!y.done;m++,y=s.next()){p.index>m?(g=p,p=null):g=p.sibling;var v=f(i,p,y.value,l);if(null===v){null===p&&(p=g);break}e&&p&&null===v.alternate&&t(i,p),a=o(v,a,m),null===u?c=v:u.sibling=v,u=v,p=g}if(y.done)return n(i,p),c;if(null===p){for(;!y.done;m++,y=s.next())null!==(y=d(i,y.value,l))&&(a=o(y,a,m),null===u?c=y:u.sibling=y,u=y);return c}for(p=r(i,p);!y.done;m++,y=s.next())null!==(y=h(p,i,m,y.value,l))&&(e&&null!==y.alternate&&p.delete(null===y.key?m:y.key),a=o(y,a,m),null===u?c=y:u.sibling=y,u=y);return e&&p.forEach((function(e){return t(i,e)})),c}return function(e,r,o,s){var l="object"==typeof o&&null!==o&&o.type===Z$&&null===o.key;l&&(o=o.props.children);var c="object"==typeof o&&null!==o;if(c)switch(o.$$typeof){case J$:e:{for(c=o.key,l=r;null!==l;){if(l.key===c){if(7===l.tag){if(o.type===Z$){n(e,l.sibling),(r=i(l,o.props.children)).return=e,e=r;break e}}else if(l.elementType===o.type){n(e,l.sibling),(r=i(l,o.props)).ref=wY(e,l,o),r.return=e,e=r;break e}n(e,l);break}t(e,l),l=l.sibling}o.type===Z$?((r=FK(o.props.children,e.mode,s,o.key)).return=e,e=r):((s=zK(o.type,o.key,o.props,null,e.mode,s)).ref=wY(e,r,o),s.return=e,e=s)}return a(e);case Q$: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=$K(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=jK(o,e.mode,s)).return=e,e=r),a(e);if(SY(o))return p(e,r,o,s);if(fH(o))return m(e,r,o,s);if(c&&MY(e,o),void 0===o&&!l)switch(e.tag){case 1:case 0:throw e=e.type,Error(r$(152,e.displayName||e.name||"Component"))}return n(e,r)}}var kY=EY(!0),CY=EY(!1),TY={},AY={current:TY},OY={current:TY},NY={current:TY};function qY(e){if(e===TY)throw Error(r$(174));return e}function DY(e,t){switch(uW(NY,t),uW(OY,e),uW(AY,TY),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:IH(null,"");break;default:t=IH(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}cW(AY),uW(AY,t)}function RY(){cW(AY),cW(OY),cW(NY)}function IY(e){qY(NY.current);var t=qY(AY.current),n=IH(t,e.type);t!==n&&(uW(OY,e),uW(AY,n))}function _Y(e){OY.current===e&&(cW(AY),cW(OY))}var PY={current:0};function LY(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||n.data===pV||n.data===mV))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(64&t.effectTag))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function zY(e,t){return{responder:e,props:t}}var FY=Y$.ReactCurrentDispatcher,jY=Y$.ReactCurrentBatchConfig,$Y=0,HY=null,BY=null,VY=null,UY=!1;function WY(){throw Error(r$(321))}function YY(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!zU(e[n],t[n]))return!1;return!0}function XY(e,t,n,r,i,o){if($Y=o,HY=t,t.memoizedState=null,t.updateQueue=null,t.expirationTime=0,FY.current=null===e||null===e.memoizedState?yX:vX,e=n(r,i),t.expirationTime===$Y){o=0;do{if(t.expirationTime=0,!(25>o))throw Error(r$(301));o+=1,VY=BY=null,t.updateQueue=null,FY.current=bX,e=n(r,i)}while(t.expirationTime===$Y)}if(FY.current=gX,t=null!==BY&&null!==BY.next,$Y=0,VY=BY=HY=null,UY=!1,t)throw Error(r$(300));return e}function GY(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===VY?HY.memoizedState=VY=e:VY=VY.next=e,VY}function KY(){if(null===BY){var e=HY.alternate;e=null!==e?e.memoizedState:null}else e=BY.next;var t=null===VY?HY.memoizedState:VY.next;if(null!==t)VY=t,BY=e;else{if(null===e)throw Error(r$(310));e={memoizedState:(BY=e).memoizedState,baseState:BY.baseState,baseQueue:BY.baseQueue,queue:BY.queue,next:null},null===VY?HY.memoizedState=VY=e:VY=VY.next=e}return VY}function JY(e,t){return"function"==typeof t?t(e):t}function QY(e){var t=KY(),n=t.queue;if(null===n)throw Error(r$(311));n.lastRenderedReducer=e;var r=BY,i=r.baseQueue,o=n.pending;if(null!==o){if(null!==i){var a=i.next;i.next=o.next,o.next=a}r.baseQueue=i=o,n.pending=null}if(null!==i){i=i.next,r=r.baseState;var s=a=o=null,l=i;do{var c=l.expirationTime;if(c<$Y){var u={expirationTime:l.expirationTime,suspenseConfig:l.suspenseConfig,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null};null===s?(a=s=u,o=r):s=s.next=u,c>HY.expirationTime&&(HY.expirationTime=c,yK(c))}else null!==s&&(s=s.next={expirationTime:1073741823,suspenseConfig:l.suspenseConfig,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null}),gK(c,l.suspenseConfig),r=l.eagerReducer===e?l.eagerState:e(r,l.action);l=l.next}while(null!==l&&l!==i);null===s?o=r:s.next=a,zU(r,t.memoizedState)||(NX=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=s,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function ZY(e){var t=KY(),n=t.queue;if(null===n)throw Error(r$(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(null!==i){n.pending=null;var a=i=i.next;do{o=e(o,a.action),a=a.next}while(a!==i);zU(o,t.memoizedState)||(NX=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function eX(e){var t=GY();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:JY,lastRenderedState:e}).dispatch=mX.bind(null,HY,e),[t.memoizedState,e]}function tX(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=HY.updateQueue)?(t={lastEffect:null},HY.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function nX(){return KY().memoizedState}function rX(e,t,n,r){var i=GY();HY.effectTag|=e,i.memoizedState=tX(1|t,n,void 0,void 0===r?null:r)}function iX(e,t,n,r){var i=KY();r=void 0===r?null:r;var o=void 0;if(null!==BY){var a=BY.memoizedState;if(o=a.destroy,null!==r&&YY(r,a.deps))return void tX(t,n,o,r)}HY.effectTag|=e,i.memoizedState=tX(1|t,n,o,r)}function oX(e,t){return rX(516,4,e,t)}function aX(e,t){return iX(516,4,e,t)}function sX(e,t){return iX(4,2,e,t)}function lX(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 cX(e,t,n){return n=null!=n?n.concat([e]):null,iX(4,2,lX.bind(null,t,e),n)}function uX(){}function dX(e,t){return GY().memoizedState=[e,void 0===t?null:t],e}function fX(e,t){var n=KY();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&YY(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function hX(e,t){var n=KY();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&YY(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function pX(e,t,n){var r=$W();BW(98>r?98:r,(function(){e(!0)})),BW(97<r?97:r,(function(){var r=jY.suspense;jY.suspense=void 0===t?null:t;try{e(!1),n()}finally{jY.suspense=r}}))}function mX(e,t,n){var r=rK(),i=hY.suspense;i={expirationTime:r=iK(r,e,i),suspenseConfig:i,action:n,eagerReducer:null,eagerState:null,next:null};var o=t.pending;if(null===o?i.next=i:(i.next=o.next,o.next=i),t.pending=i,o=e.alternate,e===HY||null!==o&&o===HY)UY=!0,i.expirationTime=$Y,HY.expirationTime=$Y;else{if(0===e.expirationTime&&(null===o||0===o.expirationTime)&&null!==(o=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=o(a,n);if(i.eagerReducer=o,i.eagerState=s,zU(s,a))return}catch(e){}oK(e,r)}}var gX={readContext:iY,useCallback:WY,useContext:WY,useEffect:WY,useImperativeHandle:WY,useLayoutEffect:WY,useMemo:WY,useReducer:WY,useRef:WY,useState:WY,useDebugValue:WY,useResponder:WY,useDeferredValue:WY,useTransition:WY},yX={readContext:iY,useCallback:dX,useContext:iY,useEffect:oX,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,rX(4,2,lX.bind(null,t,e),n)},useLayoutEffect:function(e,t){return rX(4,2,e,t)},useMemo:function(e,t){var n=GY();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=GY();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=mX.bind(null,HY,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},GY().memoizedState=e},useState:eX,useDebugValue:uX,useResponder:zY,useDeferredValue:function(e,t){var n=eX(e),r=n[0],i=n[1];return oX((function(){var n=jY.suspense;jY.suspense=void 0===t?null:t;try{i(e)}finally{jY.suspense=n}}),[e,t]),r},useTransition:function(e){var t=eX(!1),n=t[0];return t=t[1],[dX(pX.bind(null,t,e),[t,e]),n]}},vX={readContext:iY,useCallback:fX,useContext:iY,useEffect:aX,useImperativeHandle:cX,useLayoutEffect:sX,useMemo:hX,useReducer:QY,useRef:nX,useState:function(){return QY(JY)},useDebugValue:uX,useResponder:zY,useDeferredValue:function(e,t){var n=QY(JY),r=n[0],i=n[1];return aX((function(){var n=jY.suspense;jY.suspense=void 0===t?null:t;try{i(e)}finally{jY.suspense=n}}),[e,t]),r},useTransition:function(e){var t=QY(JY),n=t[0];return t=t[1],[fX(pX.bind(null,t,e),[t,e]),n]}},bX={readContext:iY,useCallback:fX,useContext:iY,useEffect:aX,useImperativeHandle:cX,useLayoutEffect:sX,useMemo:hX,useReducer:ZY,useRef:nX,useState:function(){return ZY(JY)},useDebugValue:uX,useResponder:zY,useDeferredValue:function(e,t){var n=ZY(JY),r=n[0],i=n[1];return aX((function(){var n=jY.suspense;jY.suspense=void 0===t?null:t;try{i(e)}finally{jY.suspense=n}}),[e,t]),r},useTransition:function(e){var t=ZY(JY),n=t[0];return t=t[1],[fX(pX.bind(null,t,e),[t,e]),n]}},xX=null,SX=null,wX=!1;function MX(e,t){var n=_K(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 EX(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);default:return!1}}function kX(e){if(wX){var t=SX;if(t){var n=t;if(!EX(e,t)){if(!(t=wV(n.nextSibling))||!EX(e,t))return e.effectTag=-1025&e.effectTag|2,wX=!1,void(xX=e);MX(xX,n)}xX=e,SX=wV(t.firstChild)}else e.effectTag=-1025&e.effectTag|2,wX=!1,xX=e}}function CX(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;xX=e}function TX(e){if(e!==xX)return!1;if(!wX)return CX(e),wX=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!bV(t,e.memoizedProps))for(t=SX;t;)MX(e,t),t=wV(t.nextSibling);if(CX(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(r$(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if(n===hV){if(0===t){SX=wV(e.nextSibling);break e}t--}else n!==fV&&n!==mV&&n!==pV||t++}e=e.nextSibling}SX=null}}else SX=xX?wV(e.stateNode.nextSibling):null;return!0}function AX(){SX=xX=null,wX=!1}var OX=Y$.ReactCurrentOwner,NX=!1;function qX(e,t,n,r){t.child=null===e?CY(t,null,n,r):kY(t,e.child,n,r)}function DX(e,t,n,r,i){n=n.render;var o=t.ref;return rY(t,i),r=XY(e,t,n,r,o,i),null===e||NX?(t.effectTag|=1,qX(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=i&&(e.expirationTime=0),GX(e,t,i))}function RX(e,t,n,r,i,o){if(null===e){var a=n.type;return"function"!=typeof a||PK(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=zK(n.type,null,r,null,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,IX(e,t,a,r,i,o))}return a=e.child,i<o&&(i=a.memoizedProps,(n=null!==(n=n.compare)?n:jU)(i,r)&&e.ref===t.ref)?GX(e,t,o):(t.effectTag|=1,(e=LK(a,r)).ref=t.ref,e.return=t,t.child=e)}function IX(e,t,n,r,i,o){return null!==e&&jU(e.memoizedProps,r)&&e.ref===t.ref&&(NX=!1,i<o)?(t.expirationTime=e.expirationTime,GX(e,t,o)):PX(e,t,n,r,o)}function _X(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.effectTag|=128)}function PX(e,t,n,r,i){var o=gW(n)?pW:fW.current;return o=mW(t,o),rY(t,i),n=XY(e,t,n,r,o,i),null===e||NX?(t.effectTag|=1,qX(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=i&&(e.expirationTime=0),GX(e,t,i))}function LX(e,t,n,r,i){if(gW(n)){var o=!0;xW(t)}else o=!1;if(rY(t,i),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),vY(t,n,r),xY(t,n,r,i),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,c=n.contextType;"object"==typeof c&&null!==c?c=iY(c):c=mW(t,c=gW(n)?pW:fW.current);var u=n.getDerivedStateFromProps,d="function"==typeof u||"function"==typeof a.getSnapshotBeforeUpdate;d||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||l!==c)&&bY(t,a,r,c),oY=!1;var f=t.memoizedState;a.state=f,dY(t,r,a,i),l=t.memoizedState,s!==r||f!==l||hW.current||oY?("function"==typeof u&&(mY(t,n,u,r),l=t.memoizedState),(s=oY||yY(t,n,s,r,f,l,c))?(d||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.effectTag|=4)):("function"==typeof a.componentDidMount&&(t.effectTag|=4),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=c,r=s):("function"==typeof a.componentDidMount&&(t.effectTag|=4),r=!1)}else a=t.stateNode,sY(e,t),s=t.memoizedProps,a.props=t.type===t.elementType?s:GW(t.type,s),l=a.context,"object"==typeof(c=n.contextType)&&null!==c?c=iY(c):c=mW(t,c=gW(n)?pW:fW.current),(d="function"==typeof(u=n.getDerivedStateFromProps)||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||l!==c)&&bY(t,a,r,c),oY=!1,l=t.memoizedState,a.state=l,dY(t,r,a,i),f=t.memoizedState,s!==r||l!==f||hW.current||oY?("function"==typeof u&&(mY(t,n,u,r),f=t.memoizedState),(u=oY||yY(t,n,s,r,l,f,c))?(d||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,f,c),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,f,c)),"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=c,r=u):("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 zX(e,t,n,r,o,i)}function zX(e,t,n,r,i,o){_X(e,t);var a=0!=(64&t.effectTag);if(!r&&!a)return i&&SW(t,n,!1),GX(e,t,o);r=t.stateNode,OX.current=t;var s=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.effectTag|=1,null!==e&&a?(t.child=kY(t,e.child,null,o),t.child=kY(t,null,s,o)):qX(e,t,s,o),t.memoizedState=r.state,i&&SW(t,n,!0),t.child}function FX(e){var t=e.stateNode;t.pendingContext?vW(0,t.pendingContext,t.pendingContext!==t.context):t.context&&vW(0,t.context,!1),DY(e,t.containerInfo)}var jX,$X,HX,BX,VX={dehydrated:null,retryTime:0};function UX(e,t,n){var r,i=t.mode,o=t.pendingProps,a=PY.current,s=!1;if((r=0!=(64&t.effectTag))||(r=0!=(2&a)&&(null===e||null!==e.memoizedState)),r?(s=!0,t.effectTag&=-65):null!==e&&null===e.memoizedState||void 0===o.fallback||!0===o.unstable_avoidThisFallback||(a|=1),uW(PY,1&a),null===e){if(void 0!==o.fallback&&kX(t),s){if(s=o.fallback,(o=FK(null,i,0,null)).return=t,0==(2&t.mode))for(e=null!==t.memoizedState?t.child.child:t.child,o.child=e;null!==e;)e.return=o,e=e.sibling;return(n=FK(s,i,n,null)).return=t,o.sibling=n,t.memoizedState=VX,t.child=o,n}return i=o.children,t.memoizedState=null,t.child=CY(t,null,i,n)}if(null!==e.memoizedState){if(i=(e=e.child).sibling,s){if(o=o.fallback,(n=LK(e,e.pendingProps)).return=t,0==(2&t.mode)&&(s=null!==t.memoizedState?t.child.child:t.child)!==e.child)for(n.child=s;null!==s;)s.return=n,s=s.sibling;return(i=LK(i,o)).return=t,n.sibling=i,n.childExpirationTime=0,t.memoizedState=VX,t.child=n,i}return n=kY(t,e.child,o.children,n),t.memoizedState=null,t.child=n}if(e=e.child,s){if(s=o.fallback,(o=FK(null,i,0,null)).return=t,o.child=e,null!==e&&(e.return=o),0==(2&t.mode))for(e=null!==t.memoizedState?t.child.child:t.child,o.child=e;null!==e;)e.return=o,e=e.sibling;return(n=FK(s,i,n,null)).return=t,o.sibling=n,n.effectTag|=2,o.childExpirationTime=0,t.memoizedState=VX,t.child=o,n}return t.memoizedState=null,t.child=kY(t,e,o.children,n)}function WX(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t),nY(e.return,t)}function YX(e,t,n,r,i,o){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailExpiration:0,tailMode:i,lastEffect:o}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailExpiration=0,a.tailMode=i,a.lastEffect=o)}function XX(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(qX(e,t,r.children,n),0!=(2&(r=PY.current)))r=1&r|2,t.effectTag|=64;else{if(null!==e&&0!=(64&e.effectTag))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&WX(e,n);else if(19===e.tag)WX(e,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(uW(PY,r),0==(2&t.mode))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===LY(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),YX(t,!1,i,n,o,t.lastEffect);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===LY(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}YX(t,!0,n,null,o,t.lastEffect);break;case"together":YX(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function GX(e,t,n){null!==e&&(t.dependencies=e.dependencies);var r=t.expirationTime;if(0!==r&&yK(r),t.childExpirationTime<n)return null;if(null!==e&&t.child!==e.child)throw Error(r$(153));if(null!==t.child){for(n=LK(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=LK(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function KX(e,t){switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function JX(e,t,n){var r=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:case 17:return gW(t.type)&&yW(),null;case 3:return RY(),cW(hW),cW(fW),(n=t.stateNode).pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||!TX(t)||(t.effectTag|=4),$X(t),null;case 5:_Y(t),n=qY(NY.current);var i=t.type;if(null!==e&&null!=t.stateNode)HX(e,t,i,r,n),e.ref!==t.ref&&(t.effectTag|=128);else{if(!r){if(null===t.stateNode)throw Error(r$(166));return null}if(e=qY(AY.current),TX(t)){r=t.stateNode,i=t.type;var o=t.memoizedProps;switch(r[kV]=t,r[CV]=o,i){case"iframe":case"object":case"embed":VB("load",r);break;case"video":case"audio":for(e=0;e<YH.length;e++)VB(YH[e],r);break;case"source":VB("error",r);break;case"img":case"image":case"link":VB("error",r),VB("load",r);break;case"form":VB("reset",r),VB("submit",r);break;case"details":VB("toggle",r);break;case"input":xH(r,o),VB("invalid",r),iV(n,"onChange");break;case"select":r._wrapperState={wasMultiple:!!o.multiple},VB("invalid",r),iV(n,"onChange");break;case"textarea":AH(r,o),VB("invalid",r),iV(n,"onChange")}for(var a in tV(i,o),e=null,o)if(o.hasOwnProperty(a)){var s=o[a];"children"===a?"string"==typeof s?r.textContent!==s&&(e=["children",s]):"number"==typeof s&&r.textContent!==""+s&&(e=["children",""+s]):S$.hasOwnProperty(a)&&null!=s&&iV(n,a)}switch(i){case"input":yH(r),MH(r,o,!0);break;case"textarea":yH(r),NH(r);break;case"select":case"option":break;default:"function"==typeof o.onClick&&(r.onclick=oV)}n=e,t.updateQueue=n,null!==n&&(t.effectTag|=4)}else{switch(a=9===n.nodeType?n:n.ownerDocument,e===rV&&(e=RH(i)),e===rV?"script"===i?((e=a.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=a.createElement(i,{is:r.is}):(e=a.createElement(i),"select"===i&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,i),e[kV]=t,e[CV]=r,jX(e,t,!1,!1),t.stateNode=e,a=nV(i,r),i){case"iframe":case"object":case"embed":VB("load",e),s=r;break;case"video":case"audio":for(s=0;s<YH.length;s++)VB(YH[s],e);s=r;break;case"source":VB("error",e),s=r;break;case"img":case"image":case"link":VB("error",e),VB("load",e),s=r;break;case"form":VB("reset",e),VB("submit",e),s=r;break;case"details":VB("toggle",e),s=r;break;case"input":xH(e,r),s=bH(e,r),VB("invalid",e),iV(n,"onChange");break;case"option":s=kH(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},s=t$({},r,{value:void 0}),VB("invalid",e),iV(n,"onChange");break;case"textarea":AH(e,r),s=TH(e,r),VB("invalid",e),iV(n,"onChange");break;default:s=r}tV(i,s);var l=s;for(o in l)if(l.hasOwnProperty(o)){var c=l[o];"style"===o?ZB(e,c):"dangerouslySetInnerHTML"===o?null!=(c=c?c.__html:void 0)&&PH(e,c):"children"===o?"string"==typeof c?("textarea"!==i||""!==c)&&LH(e,c):"number"==typeof c&&LH(e,""+c):"suppressContentEditableWarning"!==o&&"suppressHydrationWarning"!==o&&"autoFocus"!==o&&(S$.hasOwnProperty(o)?null!=c&&iV(n,o):null!=c&&X$(e,o,c,a))}switch(i){case"input":yH(e),MH(e,r,!1);break;case"textarea":yH(e),NH(e);break;case"option":null!=r.value&&e.setAttribute("value",""+mH(r.value));break;case"select":e.multiple=!!r.multiple,null!=(n=r.value)?CH(e,!!r.multiple,n,!1):null!=r.defaultValue&&CH(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof s.onClick&&(e.onclick=oV)}vV(i,r)&&(t.effectTag|=4)}null!==t.ref&&(t.effectTag|=128)}return null;case 6:if(e&&null!=t.stateNode)BX(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(r$(166));n=qY(NY.current),qY(AY.current),TX(t)?(n=t.stateNode,r=t.memoizedProps,n[kV]=t,n.nodeValue!==r&&(t.effectTag|=4)):((n=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[kV]=t,t.stateNode=n)}return null;case 13:return cW(PY),r=t.memoizedState,0!=(64&t.effectTag)?(t.expirationTime=n,t):(n=null!==r,r=!1,null===e?void 0!==t.memoizedProps.fallback&&TX(t):(r=null!==(i=e.memoizedState),n||null===i||null!==(i=e.child.sibling)&&(null!==(o=t.firstEffect)?(t.firstEffect=i,i.nextEffect=o):(t.firstEffect=t.lastEffect=i,i.nextEffect=null),i.effectTag=8)),n&&!r&&0!=(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!=(1&PY.current)?LG===TG&&(LG=NG):(LG!==TG&&LG!==NG||(LG=qG),0!==HG&&null!==IG&&(VK(IG,PG),UK(IG,HG)))),(n||r)&&(t.effectTag|=4),null);case 4:return RY(),$X(t),null;case 10:return tY(t),null;case 19:if(cW(PY),null===(r=t.memoizedState))return null;if(i=0!=(64&t.effectTag),null===(o=r.rendering)){if(i)KX(r,!1);else if(LG!==TG||null!==e&&0!=(64&e.effectTag))for(o=t.child;null!==o;){if(null!==(e=LY(o))){for(t.effectTag|=64,KX(r,!1),null!==(i=e.updateQueue)&&(t.updateQueue=i,t.effectTag|=4),null===r.lastEffect&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=t.child;null!==r;)o=n,(i=r).effectTag&=2,i.nextEffect=null,i.firstEffect=null,i.lastEffect=null,null===(e=i.alternate)?(i.childExpirationTime=0,i.expirationTime=o,i.child=null,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null):(i.childExpirationTime=e.childExpirationTime,i.expirationTime=e.expirationTime,i.child=e.child,i.memoizedProps=e.memoizedProps,i.memoizedState=e.memoizedState,i.updateQueue=e.updateQueue,o=e.dependencies,i.dependencies=null===o?null:{expirationTime:o.expirationTime,firstContext:o.firstContext,responders:o.responders}),r=r.sibling;return uW(PY,1&PY.current|2),t.child}o=o.sibling}}else{if(!i)if(null!==(e=LY(o))){if(t.effectTag|=64,i=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.effectTag|=4),KX(r,!0),null===r.tail&&"hidden"===r.tailMode&&!o.alternate)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*jW()-r.renderingStartTime>r.tailExpiration&&1<n&&(t.effectTag|=64,i=!0,KX(r,!1),t.expirationTime=t.childExpirationTime=n-1);r.isBackwards?(o.sibling=t.child,t.child=o):(null!==(n=r.last)?n.sibling=o:t.child=o,r.last=o)}return null!==r.tail?(0===r.tailExpiration&&(r.tailExpiration=jW()+500),n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=jW(),n.sibling=null,t=PY.current,uW(PY,i?1&t|2:1&t),n):null}throw Error(r$(156,t.tag))}function QX(e){switch(e.tag){case 1:gW(e.type)&&yW();var t=e.effectTag;return 4096&t?(e.effectTag=-4097&t|64,e):null;case 3:if(RY(),cW(hW),cW(fW),0!=(64&(t=e.effectTag)))throw Error(r$(285));return e.effectTag=-4097&t|64,e;case 5:return _Y(e),null;case 13:return cW(PY),4096&(t=e.effectTag)?(e.effectTag=-4097&t|64,e):null;case 19:return cW(PY),null;case 4:return RY(),null;case 10:return tY(e),null;default:return null}}function ZX(e,t){return{value:e,source:t,stack:pH(t)}}jX=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}},$X=function(){},HX=function(e,t,n,r,i){var o=e.memoizedProps;if(o!==r){var a,s,l=t.stateNode;switch(qY(AY.current),e=null,n){case"input":o=bH(l,o),r=bH(l,r),e=[];break;case"option":o=kH(l,o),r=kH(l,r),e=[];break;case"select":o=t$({},o,{value:void 0}),r=t$({},r,{value:void 0}),e=[];break;case"textarea":o=TH(l,o),r=TH(l,r),e=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(l.onclick=oV)}for(a in tV(n,r),n=null,o)if(!r.hasOwnProperty(a)&&o.hasOwnProperty(a)&&null!=o[a])if("style"===a)for(s in l=o[a])l.hasOwnProperty(s)&&(n||(n={}),n[s]="");else"dangerouslySetInnerHTML"!==a&&"children"!==a&&"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(S$.hasOwnProperty(a)?e||(e=[]):(e=e||[]).push(a,null));for(a in r){var c=r[a];if(l=null!=o?o[a]:void 0,r.hasOwnProperty(a)&&c!==l&&(null!=c||null!=l))if("style"===a)if(l){for(s in l)!l.hasOwnProperty(s)||c&&c.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in c)c.hasOwnProperty(s)&&l[s]!==c[s]&&(n||(n={}),n[s]=c[s])}else n||(e||(e=[]),e.push(a,n)),n=c;else"dangerouslySetInnerHTML"===a?(c=c?c.__html:void 0,l=l?l.__html:void 0,null!=c&&l!==c&&(e=e||[]).push(a,c)):"children"===a?l===c||"string"!=typeof c&&"number"!=typeof c||(e=e||[]).push(a,""+c):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&(S$.hasOwnProperty(a)?(null!=c&&iV(i,a),e||l===c||(e=[])):(e=e||[]).push(a,c))}n&&(e=e||[]).push("style",n),i=e,(t.updateQueue=i)&&(t.effectTag|=4)}},BX=function(e,t,n,r){n!==r&&(t.effectTag|=4)};var eG="function"==typeof WeakSet?WeakSet:Set;function tG(e,t){var n=t.source,r=t.stack;null===r&&null!==n&&(r=pH(n)),null!==n&&hH(n.type),t=t.value,null!==e&&1===e.tag&&hH(e.type);try{console.error(t)}catch(e){setTimeout((function(){throw e}))}}function nG(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){OK(e,t)}else t.current=null}function rG(e,t){switch(t.tag){case 0:case 11:case 15:case 22:case 3:case 5:case 6:case 4:case 17:return;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:GW(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return}throw Error(r$(163))}function iG(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.destroy;n.destroy=void 0,void 0!==r&&r()}n=n.next}while(n!==t)}}function oG(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function aG(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:return void oG(3,n);case 1:if(e=n.stateNode,4&n.effectTag)if(null===t)e.componentDidMount();else{var r=n.elementType===n.type?t.memoizedProps:GW(n.type,t.memoizedProps);e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate)}return void(null!==(t=n.updateQueue)&&fY(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:case 1:e=n.child.stateNode}fY(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.effectTag&&vV(n.type,n.memoizedProps)&&e.focus());case 6:case 4:case 12:case 19:case 17:case 20:case 21:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&RB(n)))))}throw Error(r$(163))}function sG(e,t,n){switch("function"==typeof RK&&RK(t),t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var r=e.next;BW(97<n?97:n,(function(){var e=r;do{var n=e.destroy;if(void 0!==n){var i=t;try{n()}catch(e){OK(i,e)}}e=e.next}while(e!==r)}))}break;case 1:nG(t),"function"==typeof(n=t.stateNode).componentWillUnmount&&function(e,t){try{t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()}catch(t){OK(e,t)}}(t,n);break;case 5:nG(t);break;case 4:hG(e,t,n)}}function lG(e){var t=e.alternate;e.return=null,e.child=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.alternate=null,e.firstEffect=null,e.lastEffect=null,e.pendingProps=null,e.memoizedProps=null,e.stateNode=null,null!==t&&lG(t)}function cG(e){return 5===e.tag||3===e.tag||4===e.tag}function uG(e){e:{for(var t=e.return;null!==t;){if(cG(t)){var n=t;break e}t=t.return}throw Error(r$(160))}switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(r$(161))}16&n.effectTag&&(LH(t,""),n.effectTag&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||cG(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}}r?dG(e,n,t):fG(e,n,t)}function dG(e,t,n){var r=e.tag,i=5===r||6===r;if(i)e=i?e.stateNode:e.stateNode.instance,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=oV));else if(4!==r&&null!==(e=e.child))for(dG(e,t,n),e=e.sibling;null!==e;)dG(e,t,n),e=e.sibling}function fG(e,t,n){var r=e.tag,i=5===r||6===r;if(i)e=i?e.stateNode:e.stateNode.instance,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(fG(e,t,n),e=e.sibling;null!==e;)fG(e,t,n),e=e.sibling}function hG(e,t,n){for(var r,i,o=t,a=!1;;){if(!a){a=o.return;e:for(;;){if(null===a)throw Error(r$(160));switch(r=a.stateNode,a.tag){case 5:i=!1;break e;case 3:case 4:r=r.containerInfo,i=!0;break e}a=a.return}a=!0}if(5===o.tag||6===o.tag){e:for(var s=e,l=o,c=n,u=l;;)if(sG(s,u,c),null!==u.child&&4!==u.tag)u.child.return=u,u=u.child;else{if(u===l)break e;for(;null===u.sibling;){if(null===u.return||u.return===l)break e;u=u.return}u.sibling.return=u.return,u=u.sibling}i?(s=r,l=o.stateNode,8===s.nodeType?s.parentNode.removeChild(l):s.removeChild(l)):r.removeChild(o.stateNode)}else if(4===o.tag){if(null!==o.child){r=o.stateNode.containerInfo,i=!0,o.child.return=o,o=o.child;continue}}else if(sG(e,o,n),null!==o.child){o.child.return=o,o=o.child;continue}if(o===t)break;for(;null===o.sibling;){if(null===o.return||o.return===t)return;4===(o=o.return).tag&&(a=!1)}o.sibling.return=o.return,o=o.sibling}}function pG(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:return void iG(3,t);case 1:case 12:case 17:return;case 5:var n=t.stateNode;if(null!=n){var r=t.memoizedProps,i=null!==e?e.memoizedProps:r;e=t.type;var o=t.updateQueue;if(t.updateQueue=null,null!==o){for(n[CV]=r,"input"===e&&"radio"===r.type&&null!=r.name&&SH(n,r),nV(e,i),t=nV(e,r),i=0;i<o.length;i+=2){var a=o[i],s=o[i+1];"style"===a?ZB(n,s):"dangerouslySetInnerHTML"===a?PH(n,s):"children"===a?LH(n,s):X$(n,a,s,t)}switch(e){case"input":wH(n,r);break;case"textarea":OH(n,r);break;case"select":t=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(e=r.value)?CH(n,!!r.multiple,e,!1):t!==!!r.multiple&&(null!=r.defaultValue?CH(n,!!r.multiple,r.defaultValue,!0):CH(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(r$(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((t=t.stateNode).hydrate&&(t.hydrate=!1,RB(t.containerInfo)));case 13:if(n=t,null===t.memoizedState?r=!1:(r=!0,n=t.child,VG=jW()),null!==n)e:for(e=n;;){if(5===e.tag)o=e.stateNode,r?"function"==typeof(o=o.style).setProperty?o.setProperty("display","none","important"):o.display="none":(o=e.stateNode,i=null!=(i=e.memoizedProps.style)&&i.hasOwnProperty("display")?i.display:null,o.style.display=QB("display",i));else if(6===e.tag)e.stateNode.nodeValue=r?"":e.memoizedProps;else{if(13===e.tag&&null!==e.memoizedState&&null===e.memoizedState.dehydrated){(o=e.child.sibling).return=e,e=o;continue}if(null!==e.child){e.child.return=e,e=e.child;continue}}if(e===n)break;for(;null===e.sibling;){if(null===e.return||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}return void mG(t);case 19:return void mG(t)}throw Error(r$(163))}function mG(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new eG),t.forEach((function(t){var r=qK.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}var gG="function"==typeof WeakMap?WeakMap:Map;function yG(e,t,n){(n=lY(n,null)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){YG||(YG=!0,XG=r),tG(e,t)},n}function vG(e,t,n){(n=lY(n,null)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var i=t.value;n.payload=function(){return tG(e,t),r(i)}}var o=e.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===GG?GG=new Set([this]):GG.add(this),tG(e,t));var n=t.stack;this.componentDidCatch(t.value,{componentStack:null!==n?n:""})}),n}var bG,xG=Math.ceil,SG=Y$.ReactCurrentDispatcher,wG=Y$.ReactCurrentOwner,MG=0,EG=8,kG=16,CG=32,TG=0,AG=1,OG=2,NG=3,qG=4,DG=5,RG=MG,IG=null,_G=null,PG=0,LG=TG,zG=null,FG=1073741823,jG=1073741823,$G=null,HG=0,BG=!1,VG=0,UG=500,WG=null,YG=!1,XG=null,GG=null,KG=!1,JG=null,QG=90,ZG=null,eK=0,tK=null,nK=0;function rK(){return(RG&(kG|CG))!==MG?1073741821-(jW()/10|0):0!==nK?nK:nK=1073741821-(jW()/10|0)}function iK(e,t,n){if(0==(2&(t=t.mode)))return 1073741823;var r=$W();if(0==(4&t))return 99===r?1073741823:1073741822;if((RG&kG)!==MG)return PG;if(null!==n)e=XW(e,0|n.timeoutMs||5e3,250);else switch(r){case 99:e=1073741823;break;case 98:e=XW(e,150,100);break;case 97:case 96:e=XW(e,5e3,250);break;case 95:e=2;break;default:throw Error(r$(326))}return null!==IG&&e===PG&&--e,e}function oK(e,t){if(50<eK)throw eK=0,tK=null,Error(r$(185));if(null!==(e=aK(e,t))){var n=$W();1073741823===t?(RG&EG)!==MG&&(RG&(kG|CG))===MG?uK(e):(lK(e),RG===MG&&WW()):lK(e),(4&RG)===MG||98!==n&&99!==n||(null===ZG?ZG=new Map([[e,t]]):(void 0===(n=ZG.get(e))||n>t)&&ZG.set(e,t))}}function aK(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 null!==i&&(IG===i&&(yK(t),LG===qG&&VK(i,PG)),UK(i,t)),i}function sK(e){var t=e.lastExpiredTime;if(0!==t)return t;if(!BK(e,t=e.firstPendingTime))return t;var n=e.lastPingedTime;return 2>=(e=n>(e=e.nextKnownPendingLevel)?n:e)&&t!==e?0:e}function lK(e){if(0!==e.lastExpiredTime)e.callbackExpirationTime=1073741823,e.callbackPriority=99,e.callbackNode=UW(uK.bind(null,e));else{var t=sK(e),n=e.callbackNode;if(0===t)null!==n&&(e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90);else{var r=rK();if(1073741823===t?r=99:1===t||2===t?r=95:r=0>=(r=10*(1073741821-t)-10*(1073741821-r))?99:250>=r?98:5250>=r?97:95,null!==n){var i=e.callbackPriority;if(e.callbackExpirationTime===t&&i>=r)return;n!==RW&&EW(n)}e.callbackExpirationTime=t,e.callbackPriority=r,t=1073741823===t?UW(uK.bind(null,e)):VW(r,cK.bind(null,e),{timeout:10*(1073741821-t)-jW()}),e.callbackNode=t}}}function cK(e,t){if(nK=0,t)return WK(e,t=rK()),lK(e),null;var n=sK(e);if(0!==n){if(t=e.callbackNode,(RG&(kG|CG))!==MG)throw Error(r$(327));if(CK(),e===IG&&n===PG||hK(e,n),null!==_G){var r=RG;RG|=kG;for(var i=mK();;)try{bK();break}catch(t){pK(e,t)}if(eY(),RG=r,SG.current=i,LG===AG)throw t=zG,hK(e,n),VK(e,n),lK(e),t;if(null===_G)switch(i=e.finishedWork=e.current.alternate,e.finishedExpirationTime=n,r=LG,IG=null,r){case TG:case AG:throw Error(r$(345));case OG:WK(e,2<n?2:n);break;case NG:if(VK(e,n),n===(r=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=wK(i)),1073741823===FG&&10<(i=VG+UG-jW())){if(BG){var o=e.lastPingedTime;if(0===o||o>=n){e.lastPingedTime=n,hK(e,n);break}}if(0!==(o=sK(e))&&o!==n)break;if(0!==r&&r!==n){e.lastPingedTime=r;break}e.timeoutHandle=xV(MK.bind(null,e),i);break}MK(e);break;case qG:if(VK(e,n),n===(r=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=wK(i)),BG&&(0===(i=e.lastPingedTime)||i>=n)){e.lastPingedTime=n,hK(e,n);break}if(0!==(i=sK(e))&&i!==n)break;if(0!==r&&r!==n){e.lastPingedTime=r;break}if(1073741823!==jG?r=10*(1073741821-jG)-jW():1073741823===FG?r=0:(r=10*(1073741821-FG)-5e3,0>(r=(i=jW())-r)&&(r=0),(n=10*(1073741821-n)-i)<(r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*xG(r/1960))-r)&&(r=n)),10<r){e.timeoutHandle=xV(MK.bind(null,e),r);break}MK(e);break;case DG:if(1073741823!==FG&&null!==$G){o=FG;var a=$G;if(0>=(r=0|a.busyMinDurationMs)?r=0:(i=0|a.busyDelayMs,r=(o=jW()-(10*(1073741821-o)-(0|a.timeoutMs||5e3)))<=i?0:i+r-o),10<r){VK(e,n),e.timeoutHandle=xV(MK.bind(null,e),r);break}}MK(e);break;default:throw Error(r$(329))}if(lK(e),e.callbackNode===t)return cK.bind(null,e)}}return null}function uK(e){var t=e.lastExpiredTime;if(t=0!==t?t:1073741823,(RG&(kG|CG))!==MG)throw Error(r$(327));if(CK(),e===IG&&t===PG||hK(e,t),null!==_G){var n=RG;RG|=kG;for(var r=mK();;)try{vK();break}catch(t){pK(e,t)}if(eY(),RG=n,SG.current=r,LG===AG)throw n=zG,hK(e,t),VK(e,t),lK(e),n;if(null!==_G)throw Error(r$(261));e.finishedWork=e.current.alternate,e.finishedExpirationTime=t,IG=null,MK(e),lK(e)}return null}function dK(e,t){var n=RG;RG|=1;try{return e(t)}finally{(RG=n)===MG&&WW()}}function fK(e,t){var n=RG;RG&=-2,RG|=EG;try{return e(t)}finally{(RG=n)===MG&&WW()}}function hK(e,t){e.finishedWork=null,e.finishedExpirationTime=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,SV(n)),null!==_G)for(n=_G.return;null!==n;){var r=n;switch(r.tag){case 1:null!=(r=r.type.childContextTypes)&&yW();break;case 3:RY(),cW(hW),cW(fW);break;case 5:_Y(r);break;case 4:RY();break;case 13:case 19:cW(PY);break;case 10:tY(r)}n=n.return}IG=e,_G=LK(e.current,null),PG=t,LG=TG,zG=null,jG=FG=1073741823,$G=null,HG=0,BG=!1}function pK(e,t){for(;;){try{if(eY(),FY.current=gX,UY)for(var n=HY.memoizedState;null!==n;){var r=n.queue;null!==r&&(r.pending=null),n=n.next}if($Y=0,VY=BY=HY=null,UY=!1,null===_G||null===_G.return)return LG=AG,zG=t,_G=null;e:{var i=e,o=_G.return,a=_G,s=t;if(t=PG,a.effectTag|=2048,a.firstEffect=a.lastEffect=null,null!==s&&"object"==typeof s&&"function"==typeof s.then){var l=s;if(0==(2&a.mode)){var c=a.alternate;c?(a.updateQueue=c.updateQueue,a.memoizedState=c.memoizedState,a.expirationTime=c.expirationTime):(a.updateQueue=null,a.memoizedState=null)}var u=0!=(1&PY.current),d=o;do{var f;if(f=13===d.tag){var h=d.memoizedState;if(null!==h)f=null!==h.dehydrated;else{var p=d.memoizedProps;f=void 0!==p.fallback&&(!0!==p.unstable_avoidThisFallback||!u)}}if(f){var m=d.updateQueue;if(null===m){var g=new Set;g.add(l),d.updateQueue=g}else m.add(l);if(0==(2&d.mode)){if(d.effectTag|=64,a.effectTag&=-2981,1===a.tag)if(null===a.alternate)a.tag=17;else{var y=lY(1073741823,null);y.tag=2,cY(a,y)}a.expirationTime=1073741823;break e}s=void 0,a=t;var v=i.pingCache;if(null===v?(v=i.pingCache=new gG,s=new Set,v.set(l,s)):void 0===(s=v.get(l))&&(s=new Set,v.set(l,s)),!s.has(a)){s.add(a);var b=NK.bind(null,i,l,a);l.then(b,b)}d.effectTag|=4096,d.expirationTime=t;break e}d=d.return}while(null!==d);s=Error((hH(a.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."+pH(a))}LG!==DG&&(LG=OG),s=ZX(s,a),d=o;do{switch(d.tag){case 3:l=s,d.effectTag|=4096,d.expirationTime=t,uY(d,yG(d,l,t));break e;case 1:l=s;var x=d.type,S=d.stateNode;if(0==(64&d.effectTag)&&("function"==typeof x.getDerivedStateFromError||null!==S&&"function"==typeof S.componentDidCatch&&(null===GG||!GG.has(S)))){d.effectTag|=4096,d.expirationTime=t,uY(d,vG(d,l,t));break e}}d=d.return}while(null!==d)}_G=SK(_G)}catch(e){t=e;continue}break}}function mK(){var e=SG.current;return SG.current=gX,null===e?gX:e}function gK(e,t){e<FG&&2<e&&(FG=e),null!==t&&e<jG&&2<e&&(jG=e,$G=t)}function yK(e){e>HG&&(HG=e)}function vK(){for(;null!==_G;)_G=xK(_G)}function bK(){for(;null!==_G&&!IW();)_G=xK(_G)}function xK(e){var t=bG(e.alternate,e,PG);return e.memoizedProps=e.pendingProps,null===t&&(t=SK(e)),wG.current=null,t}function SK(e){_G=e;do{var t=_G.alternate;if(e=_G.return,0==(2048&_G.effectTag)){if(t=JX(t,_G,PG),1===PG||1!==_G.childExpirationTime){for(var n=0,r=_G.child;null!==r;){var i=r.expirationTime,o=r.childExpirationTime;i>n&&(n=i),o>n&&(n=o),r=r.sibling}_G.childExpirationTime=n}if(null!==t)return t;null!==e&&0==(2048&e.effectTag)&&(null===e.firstEffect&&(e.firstEffect=_G.firstEffect),null!==_G.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=_G.firstEffect),e.lastEffect=_G.lastEffect),1<_G.effectTag&&(null!==e.lastEffect?e.lastEffect.nextEffect=_G:e.firstEffect=_G,e.lastEffect=_G))}else{if(null!==(t=QX(_G)))return t.effectTag&=2047,t;null!==e&&(e.firstEffect=e.lastEffect=null,e.effectTag|=2048)}if(null!==(t=_G.sibling))return t;_G=e}while(null!==_G);return LG===TG&&(LG=DG),null}function wK(e){var t=e.expirationTime;return t>(e=e.childExpirationTime)?t:e}function MK(e){var t=$W();return BW(99,EK.bind(null,e,t)),null}function EK(e,t){do{CK()}while(null!==JG);if((RG&(kG|CG))!==MG)throw Error(r$(327));var n=e.finishedWork,r=e.finishedExpirationTime;if(null===n)return null;if(e.finishedWork=null,e.finishedExpirationTime=0,n===e.current)throw Error(r$(177));e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90,e.nextKnownPendingLevel=0;var i=wK(n);if(e.firstPendingTime=i,r<=e.lastSuspendedTime?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:r<=e.firstSuspendedTime&&(e.firstSuspendedTime=r-1),r<=e.lastPingedTime&&(e.lastPingedTime=0),r<=e.lastExpiredTime&&(e.lastExpiredTime=0),e===IG&&(_G=IG=null,PG=0),1<n.effectTag?null!==n.lastEffect?(n.lastEffect.nextEffect=n,i=n.firstEffect):i=n:i=n.firstEffect,null!==i){var o=RG;RG|=CG,wG.current=null,gV=BB;var a=uV();if(dV(a)){if("selectionStart"in a)var s={start:a.selectionStart,end:a.selectionEnd};else e:{var l=(s=(s=a.ownerDocument)&&s.defaultView||window).getSelection&&s.getSelection();if(l&&0!==l.rangeCount){s=l.anchorNode;var c=l.anchorOffset,u=l.focusNode;l=l.focusOffset;try{s.nodeType,u.nodeType}catch(e){s=null;break e}var d=0,f=-1,h=-1,p=0,m=0,g=a,y=null;t:for(;;){for(var v;g!==s||0!==c&&3!==g.nodeType||(f=d+c),g!==u||0!==l&&3!==g.nodeType||(h=d+l),3===g.nodeType&&(d+=g.nodeValue.length),null!==(v=g.firstChild);)y=g,g=v;for(;;){if(g===a)break t;if(y===s&&++p===c&&(f=d),y===u&&++m===l&&(h=d),null!==(v=g.nextSibling))break;y=(g=y).parentNode}g=v}s=-1===f||-1===h?null:{start:f,end:h}}else s=null}s=s||{start:0,end:0}}else s=null;yV={activeElementDetached:null,focusedElem:a,selectionRange:s},BB=!1,WG=i;do{try{kK()}catch(e){if(null===WG)throw Error(r$(330));OK(WG,e),WG=WG.nextEffect}}while(null!==WG);WG=i;do{try{for(a=e,s=t;null!==WG;){var b=WG.effectTag;if(16&b&&LH(WG.stateNode,""),128&b){var x=WG.alternate;if(null!==x){var S=x.ref;null!==S&&("function"==typeof S?S(null):S.current=null)}}switch(1038&b){case 2:uG(WG),WG.effectTag&=-3;break;case 6:uG(WG),WG.effectTag&=-3,pG(WG.alternate,WG);break;case 1024:WG.effectTag&=-1025;break;case 1028:WG.effectTag&=-1025,pG(WG.alternate,WG);break;case 4:pG(WG.alternate,WG);break;case 8:hG(a,c=WG,s),lG(c)}WG=WG.nextEffect}}catch(e){if(null===WG)throw Error(r$(330));OK(WG,e),WG=WG.nextEffect}}while(null!==WG);if(S=yV,x=uV(),b=S.focusedElem,s=S.selectionRange,x!==b&&b&&b.ownerDocument&&cV(b.ownerDocument.documentElement,b)){null!==s&&dV(b)&&(x=s.start,void 0===(S=s.end)&&(S=x),"selectionStart"in b?(b.selectionStart=x,b.selectionEnd=Math.min(S,b.value.length)):(S=(x=b.ownerDocument||document)&&x.defaultView||window).getSelection&&(S=S.getSelection(),c=b.textContent.length,a=Math.min(s.start,c),s=void 0===s.end?a:Math.min(s.end,c),!S.extend&&a>s&&(c=s,s=a,a=c),c=lV(b,a),u=lV(b,s),c&&u&&(1!==S.rangeCount||S.anchorNode!==c.node||S.anchorOffset!==c.offset||S.focusNode!==u.node||S.focusOffset!==u.offset)&&((x=x.createRange()).setStart(c.node,c.offset),S.removeAllRanges(),a>s?(S.addRange(x),S.extend(u.node,u.offset)):(x.setEnd(u.node,u.offset),S.addRange(x))))),x=[];for(S=b;S=S.parentNode;)1===S.nodeType&&x.push({element:S,left:S.scrollLeft,top:S.scrollTop});for("function"==typeof b.focus&&b.focus(),b=0;b<x.length;b++)(S=x[b]).element.scrollLeft=S.left,S.element.scrollTop=S.top}BB=!!gV,yV=gV=null,e.current=n,WG=i;do{try{for(b=e;null!==WG;){var w=WG.effectTag;if(36&w&&aG(b,WG.alternate,WG),128&w){x=void 0;var M=WG.ref;if(null!==M){var E=WG.stateNode;WG.tag,x=E,"function"==typeof M?M(x):M.current=x}}WG=WG.nextEffect}}catch(e){if(null===WG)throw Error(r$(330));OK(WG,e),WG=WG.nextEffect}}while(null!==WG);WG=null,_W(),RG=o}else e.current=n;if(KG)KG=!1,JG=e,QG=t;else for(WG=i;null!==WG;)t=WG.nextEffect,WG.nextEffect=null,WG=t;if(0===(t=e.firstPendingTime)&&(GG=null),1073741823===t?e===tK?eK++:(eK=0,tK=e):eK=0,"function"==typeof DK&&DK(n.stateNode,r),lK(e),YG)throw YG=!1,e=XG,XG=null,e;return(RG&EG)!==MG||WW(),null}function kK(){for(;null!==WG;){var e=WG.effectTag;0!=(256&e)&&rG(WG.alternate,WG),0==(512&e)||KG||(KG=!0,VW(97,(function(){return CK(),null}))),WG=WG.nextEffect}}function CK(){if(90!==QG){var e=97<QG?97:QG;return QG=90,BW(e,TK)}}function TK(){if(null===JG)return!1;var e=JG;if(JG=null,(RG&(kG|CG))!==MG)throw Error(r$(331));var t=RG;for(RG|=CG,e=e.current.firstEffect;null!==e;){try{var n=e;if(0!=(512&n.effectTag))switch(n.tag){case 0:case 11:case 15:case 22:iG(5,n),oG(5,n)}}catch(t){if(null===e)throw Error(r$(330));OK(e,t)}n=e.nextEffect,e.nextEffect=null,e=n}return RG=t,WW(),!0}function AK(e,t,n){cY(e,t=yG(e,t=ZX(n,t),1073741823)),null!==(e=aK(e,1073741823))&&lK(e)}function OK(e,t){if(3===e.tag)AK(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){AK(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===GG||!GG.has(r))){cY(n,e=vG(n,e=ZX(t,e),1073741823)),null!==(n=aK(n,1073741823))&&lK(n);break}}n=n.return}}function NK(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),IG===e&&PG===n?LG===qG||LG===NG&&1073741823===FG&&jW()-VG<UG?hK(e,PG):BG=!0:BK(e,n)&&(0!==(t=e.lastPingedTime)&&t<n||(e.lastPingedTime=n,lK(e)))}function qK(e,t){var n=e.stateNode;null!==n&&n.delete(t),0===(t=0)&&(t=iK(t=rK(),e,null)),null!==(e=aK(e,t))&&lK(e)}bG=function(e,t,n){var r=t.expirationTime;if(null!==e){var i=t.pendingProps;if(e.memoizedProps!==i||hW.current)NX=!0;else{if(r<n){switch(NX=!1,t.tag){case 3:FX(t),AX();break;case 5:if(IY(t),4&t.mode&&1!==n&&i.hidden)return t.expirationTime=t.childExpirationTime=1,null;break;case 1:gW(t.type)&&xW(t);break;case 4:DY(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value,i=t.type._context,uW(KW,i._currentValue),i._currentValue=r;break;case 13:if(null!==t.memoizedState)return 0!==(r=t.child.childExpirationTime)&&r>=n?UX(e,t,n):(uW(PY,1&PY.current),null!==(t=GX(e,t,n))?t.sibling:null);uW(PY,1&PY.current);break;case 19:if(r=t.childExpirationTime>=n,0!=(64&e.effectTag)){if(r)return XX(e,t,n);t.effectTag|=64}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null),uW(PY,PY.current),!r)return null}return GX(e,t,n)}NX=!1}}else NX=!1;switch(t.expirationTime=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,i=mW(t,fW.current),rY(t,n),i=XY(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,t.memoizedState=null,t.updateQueue=null,gW(r)){var o=!0;xW(t)}else o=!1;t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,aY(t);var a=r.getDerivedStateFromProps;"function"==typeof a&&mY(t,r,a,e),i.updater=gY,t.stateNode=i,i._reactInternalFiber=t,xY(t,r,e,n),t=zX(null,t,r,!0,o,n)}else t.tag=0,qX(null,t,i,n),t=t.child;return t;case 16:e:{if(i=t.elementType,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,function(e){if(-1===e._status){e._status=0;var t=e._ctor;t=t(),e._result=t,t.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)}))}}(i),1!==i._status)throw i._result;switch(i=i._result,t.type=i,o=t.tag=function(e){if("function"==typeof e)return PK(e)?1:0;if(null!=e){if((e=e.$$typeof)===oH)return 11;if(e===lH)return 14}return 2}(i),e=GW(i,e),o){case 0:t=PX(null,t,i,e,n);break e;case 1:t=LX(null,t,i,e,n);break e;case 11:t=DX(null,t,i,e,n);break e;case 14:t=RX(null,t,i,GW(i.type,e),r,n);break e}throw Error(r$(306,i,""))}return t;case 0:return r=t.type,i=t.pendingProps,PX(e,t,r,i=t.elementType===r?i:GW(r,i),n);case 1:return r=t.type,i=t.pendingProps,LX(e,t,r,i=t.elementType===r?i:GW(r,i),n);case 3:if(FX(t),r=t.updateQueue,null===e||null===r)throw Error(r$(282));if(r=t.pendingProps,i=null!==(i=t.memoizedState)?i.element:null,sY(e,t),dY(t,r,null,n),(r=t.memoizedState.element)===i)AX(),t=GX(e,t,n);else{if((i=t.stateNode.hydrate)&&(SX=wV(t.stateNode.containerInfo.firstChild),xX=t,i=wX=!0),i)for(n=CY(t,null,r,n),t.child=n;n;)n.effectTag=-3&n.effectTag|1024,n=n.sibling;else qX(e,t,r,n),AX();t=t.child}return t;case 5:return IY(t),null===e&&kX(t),r=t.type,i=t.pendingProps,o=null!==e?e.memoizedProps:null,a=i.children,bV(r,i)?a=null:null!==o&&bV(r,o)&&(t.effectTag|=16),_X(e,t),4&t.mode&&1!==n&&i.hidden?(t.expirationTime=t.childExpirationTime=1,t=null):(qX(e,t,a,n),t=t.child),t;case 6:return null===e&&kX(t),null;case 13:return UX(e,t,n);case 4:return DY(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=kY(t,null,r,n):qX(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,DX(e,t,r,i=t.elementType===r?i:GW(r,i),n);case 7:return qX(e,t,t.pendingProps,n),t.child;case 8:case 12:return qX(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,i=t.pendingProps,a=t.memoizedProps,o=i.value;var s=t.type._context;if(uW(KW,s._currentValue),s._currentValue=o,null!==a)if(s=a.value,0===(o=zU(s,o)?0:0|("function"==typeof r._calculateChangedBits?r._calculateChangedBits(s,o):1073741823))){if(a.children===i.children&&!hW.current){t=GX(e,t,n);break e}}else for(null!==(s=t.child)&&(s.return=t);null!==s;){var l=s.dependencies;if(null!==l){a=s.child;for(var c=l.firstContext;null!==c;){if(c.context===r&&0!=(c.observedBits&o)){1===s.tag&&((c=lY(n,null)).tag=2,cY(s,c)),s.expirationTime<n&&(s.expirationTime=n),null!==(c=s.alternate)&&c.expirationTime<n&&(c.expirationTime=n),nY(s.return,n),l.expirationTime<n&&(l.expirationTime=n);break}c=c.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}qX(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=(o=t.pendingProps).children,rY(t,n),r=r(i=iY(i,o.unstable_observedBits)),t.effectTag|=1,qX(e,t,r,n),t.child;case 14:return o=GW(i=t.type,t.pendingProps),RX(e,t,i,o=GW(i.type,o),r,n);case 15:return IX(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:GW(r,i),null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),t.tag=1,gW(r)?(e=!0,xW(t)):e=!1,rY(t,n),vY(t,r,i),xY(t,r,i,n),zX(null,t,r,!0,e,n);case 19:return XX(e,t,n)}throw Error(r$(156,t.tag))};var DK=null,RK=null;function IK(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childExpirationTime=this.expirationTime=0,this.alternate=null}function _K(e,t,n,r){return new IK(e,t,n,r)}function PK(e){return!(!(e=e.prototype)||!e.isReactComponent)}function LK(e,t){var n=e.alternate;return null===n?((n=_K(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,t=e.dependencies,n.dependencies=null===t?null:{expirationTime:t.expirationTime,firstContext:t.firstContext,responders:t.responders},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function zK(e,t,n,r,i,o){var a=2;if(r=e,"function"==typeof e)PK(e)&&(a=1);else if("string"==typeof e)a=5;else e:switch(e){case Z$:return FK(n.children,i,o,t);case iH:a=8,i|=7;break;case eH:a=8,i|=1;break;case tH:return(e=_K(12,n,t,8|i)).elementType=tH,e.type=tH,e.expirationTime=o,e;case aH:return(e=_K(13,n,t,i)).type=aH,e.elementType=aH,e.expirationTime=o,e;case sH:return(e=_K(19,n,t,i)).elementType=sH,e.expirationTime=o,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case nH:a=10;break e;case rH:a=9;break e;case oH:a=11;break e;case lH:a=14;break e;case cH:a=16,r=null;break e;case uH:a=22;break e}throw Error(r$(130,null==e?e:typeof e,""))}return(t=_K(a,n,t,i)).elementType=e,t.type=r,t.expirationTime=o,t}function FK(e,t,n,r){return(e=_K(7,e,r,t)).expirationTime=n,e}function jK(e,t,n){return(e=_K(6,e,null,t)).expirationTime=n,e}function $K(e,t,n){return(t=_K(4,null!==e.children?e.children:[],e.key,t)).expirationTime=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function HK(e,t,n){this.tag=t,this.current=null,this.containerInfo=e,this.pingCache=this.pendingChildren=null,this.finishedExpirationTime=0,this.finishedWork=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=90,this.lastExpiredTime=this.lastPingedTime=this.nextKnownPendingLevel=this.lastSuspendedTime=this.firstSuspendedTime=this.firstPendingTime=0}function BK(e,t){var n=e.firstSuspendedTime;return e=e.lastSuspendedTime,0!==n&&n>=t&&e<=t}function VK(e,t){var n=e.firstSuspendedTime,r=e.lastSuspendedTime;n<t&&(e.firstSuspendedTime=t),(r>t||0===n)&&(e.lastSuspendedTime=t),t<=e.lastPingedTime&&(e.lastPingedTime=0),t<=e.lastExpiredTime&&(e.lastExpiredTime=0)}function UK(e,t){t>e.firstPendingTime&&(e.firstPendingTime=t);var n=e.firstSuspendedTime;0!==n&&(t>=n?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:t>=e.lastSuspendedTime&&(e.lastSuspendedTime=t+1),t>e.nextKnownPendingLevel&&(e.nextKnownPendingLevel=t))}function WK(e,t){var n=e.lastExpiredTime;(0===n||n>t)&&(e.lastExpiredTime=t)}function YK(e,t,n,r){var i=t.current,o=rK(),a=hY.suspense;o=iK(o,i,a);e:if(n){t:{if(KH(n=n._reactInternalFiber)!==n||1!==n.tag)throw Error(r$(170));var s=n;do{switch(s.tag){case 3:s=s.stateNode.context;break t;case 1:if(gW(s.type)){s=s.stateNode.__reactInternalMemoizedMergedChildContext;break t}}s=s.return}while(null!==s);throw Error(r$(171))}if(1===n.tag){var l=n.type;if(gW(l)){n=bW(n,l,s);break e}}n=s}else n=dW;return null===t.context?t.context=n:t.pendingContext=n,(t=lY(o,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),cY(i,t),oK(i,o),o}function XK(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function GK(e,t){null!==(e=e.memoizedState)&&null!==e.dehydrated&&e.retryTime<t&&(e.retryTime=t)}function KK(e,t){GK(e,t),(e=e.alternate)&&GK(e,t)}function JK(e,t,n){var r=new HK(e,t,n=null!=n&&!0===n.hydrate),i=_K(3,null,null,2===t?7:1===t?3:0);r.current=i,i.stateNode=r,aY(i),e[TV]=r.current,n&&0!==t&&function(e,t){var n=GH(t);MB.forEach((function(e){dB(e,t,n)})),EB.forEach((function(e){dB(e,t,n)}))}(0,9===e.nodeType?e:e.ownerDocument),this._internalRoot=r}function QK(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function ZK(e,t,n,r,i){var o=n._reactRootContainer;if(o){var a=o._internalRoot;if("function"==typeof i){var s=i;i=function(){var e=XK(a);s.call(e)}}YK(t,a,e,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 JK(e,0,t?{hydrate:!0}:void 0)}(n,r),a=o._internalRoot,"function"==typeof i){var l=i;i=function(){var e=XK(a);l.call(e)}}fK((function(){YK(t,a,e,i)}))}return XK(a)}function eJ(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!QK(t))throw Error(r$(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:Q$,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)}JK.prototype.render=function(e){YK(e,this._internalRoot,null,null)},JK.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;YK(null,e,null,(function(){t[TV]=null}))},fB=function(e){if(13===e.tag){var t=XW(rK(),150,100);oK(e,t),KK(e,t)}},hB=function(e){13===e.tag&&(oK(e,3),KK(e,3))},pB=function(e){if(13===e.tag){var t=rK();oK(e,t=iK(t,e,null)),KK(e,t)}},k$=function(e,t,n){switch(t){case"input":if(wH(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=qV(r);if(!i)throw Error(r$(90));vH(r),wH(r,i)}}}break;case"textarea":OH(e,n);break;case"select":null!=(t=n.value)&&CH(e,!!n.multiple,t,!1)}},q$=dK,D$=function(e,t,n,r,i){var o=RG;RG|=4;try{return BW(98,e.bind(null,t,n,r,i))}finally{(RG=o)===MG&&WW()}},R$=function(){(RG&(1|kG|CG))===MG&&(function(){if(null!==ZG){var e=ZG;ZG=null,e.forEach((function(e,t){WK(t,e),lK(t)})),WW()}}(),CK())},I$=function(e,t){var n=RG;RG|=2;try{return e(t)}finally{(RG=n)===MG&&WW()}};var tJ={Events:[OV,NV,qV,M$,x$,zV,function(e){tB(e,LV)},O$,N$,XB,iB,CK,{current:!1}]};!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);DK=function(e){try{t.onCommitFiberRoot(n,e,void 0,64==(64&e.current.effectTag))}catch(e){}},RK=function(e){try{t.onCommitFiberUnmount(n,e)}catch(e){}}}catch(e){}})(t$({},e,{overrideHookState:null,overrideProps:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Y$.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=ZH(e))?null:e.stateNode},findFiberByHostInstance:function(e){return t?t(e):null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null}))}({findFiberByHostInstance:AV,bundleType:0,version:"16.14.0",rendererPackageName:"react-dom"}),Kj.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tJ,Kj.createPortal=eJ,Kj.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternalFiber;if(void 0===t){if("function"==typeof e.render)throw Error(r$(188));throw Error(r$(268,Object.keys(e)))}return e=null===(e=ZH(t))?null:e.stateNode},Kj.flushSync=function(e,t){if((RG&(kG|CG))!==MG)throw Error(r$(187));var n=RG;RG|=1;try{return BW(99,e.bind(null,t))}finally{RG=n,WW()}},Kj.hydrate=function(e,t,n){if(!QK(t))throw Error(r$(200));return ZK(null,e,t,!0,n)},Kj.render=function(e,t,n){if(!QK(t))throw Error(r$(200));return ZK(null,e,t,!1,n)},Kj.unmountComponentAtNode=function(e){if(!QK(e))throw Error(r$(40));return!!e._reactRootContainer&&(fK((function(){ZK(null,null,e,!1,(function(){e._reactRootContainer=null,e[TV]=null}))})),!0)},Kj.unstable_batchedUpdates=dK,Kj.unstable_createPortal=function(e,t){return eJ(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},Kj.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!QK(n))throw Error(r$(200));if(null==e||void 0===e._reactInternalFiber)throw Error(r$(38));return ZK(e,t,n,!1,r)},Kj.version="16.14.0",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)}}(),Gj.exports=Kj;var nJ=Gj.exports,rJ=n(nJ),iJ=!0,oJ=!1,aJ=null,sJ={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 lJ(e){e.metaKey||e.altKey||e.ctrlKey||(iJ=!0)}function cJ(){iJ=!1}function uJ(){"hidden"===this.visibilityState&&oJ&&(iJ=!0)}function dJ(e){var t=e.target;try{return t.matches(":focus-visible")}catch(e){}return iJ||function(e){var t=e.type,n=e.tagName;return!("INPUT"!==n||!sJ[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function fJ(){oJ=!0,window.clearTimeout(aJ),aJ=window.setTimeout((function(){oJ=!1}),100)}function hJ(){var e=N_.useCallback((function(e){var t,n=nJ.findDOMNode(e);null!=n&&((t=n.ownerDocument).addEventListener("keydown",lJ,!0),t.addEventListener("mousedown",cJ,!0),t.addEventListener("pointerdown",cJ,!0),t.addEventListener("touchstart",cJ,!0),t.addEventListener("visibilitychange",uJ,!0))}),[]);return{isFocusVisible:dJ,onBlurVisible:fJ,ref:e}}var pJ=!1,mJ=q_.createContext(null),gJ="unmounted",yJ="exited",vJ="entering",bJ="entered",xJ="exiting",SJ=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=yJ,r.appearStatus=vJ):i=bJ:i=t.unmountOnExit||t.mountOnEnter?gJ:yJ,r.state={status:i},r.nextCallback=null,r}eL(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===gJ?{status:yJ}: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!==vJ&&n!==bJ&&(t=vJ):n!==vJ&&n!==bJ||(t=xJ)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===vJ){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:rJ.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===yJ&&this.setState({status:gJ})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[rJ.findDOMNode(this),r],o=i[0],a=i[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||pJ?this.safeSetState({status:bJ},(function(){t.props.onEntered(o)})):(this.props.onEnter(o,a),this.safeSetState({status:vJ},(function(){t.props.onEntering(o,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:bJ},(function(){t.props.onEntered(o,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:rJ.findDOMNode(this);t&&!pJ?(this.props.onExit(r),this.safeSetState({status:xJ},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:yJ},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:yJ},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:rJ.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],o=i[0],a=i[1];this.props.addEndListener(o,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===gJ)return null;var t=this.props,n=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var r=vP(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return q_.createElement(mJ.Provider,{value:null},"function"==typeof n?n(e,r):q_.cloneElement(q_.Children.only(n),r))},t}(q_.Component);function wJ(){}SJ.contextType=mJ,SJ.propTypes={},SJ.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:wJ,onEntering:wJ,onEntered:wJ,onExit:wJ,onExiting:wJ,onExited:wJ},SJ.UNMOUNTED=gJ,SJ.EXITED=yJ,SJ.ENTERING=vJ,SJ.ENTERED=bJ,SJ.EXITING=xJ;var MJ=SJ;function EJ(e,t){var n=Object.create(null);return e&&N_.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&N_.isValidElement(e)?t(e):e}(e)})),n}function kJ(e,t,n){return null!=n[t]?n[t]:e.props[t]}function CJ(e,t,n){var r=EJ(e.children),i=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,i=Object.create(null),o=[];for(var a in e)a in t?o.length&&(i[a]=o,o=[]):o.push(a);var s={};for(var l in t){if(i[l])for(r=0;r<i[l].length;r++){var c=i[l][r];s[i[l][r]]=n(c)}s[l]=n(l)}for(r=0;r<o.length;r++)s[o[r]]=n(o[r]);return s}(t,r);return Object.keys(i).forEach((function(o){var a=i[o];if(N_.isValidElement(a)){var s=o in t,l=o in r,c=t[o],u=N_.isValidElement(c)&&!c.props.in;!l||s&&!u?l||!s||u?l&&s&&N_.isValidElement(c)&&(i[o]=N_.cloneElement(a,{onExited:n.bind(null,a),in:c.props.in,exit:kJ(a,"exit",e),enter:kJ(a,"enter",e)})):i[o]=N_.cloneElement(a,{in:!1}):i[o]=N_.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:kJ(a,"exit",e),enter:kJ(a,"enter",e)})}})),i}var TJ=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},AJ=function(e){function t(t,n){var r,i=(r=e.call(this,t,n)||this).handleExited.bind(tL(r));return r.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},r}eL(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,EJ(n.children,(function(e){return N_.cloneElement(e,{onExited:r.bind(null,e),in:!0,appear:kJ(e,"appear",n),enter:kJ(e,"enter",n),exit:kJ(e,"exit",n)})}))):CJ(e,i,o),firstRender:!1}},n.handleExited=function(e,t){var n=EJ(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=aP({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=vP(e,["component","childFactory"]),i=this.state.contextValue,o=TJ(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?q_.createElement(mJ.Provider,{value:i},o):q_.createElement(mJ.Provider,{value:i},q_.createElement(t,r,o))},t}(q_.Component);AJ.propTypes={},AJ.defaultProps={component:"div",childFactory:function(e){return e}};var OJ=AJ;function NJ(e,t){var n=e.timeout,r=e.style,i=void 0===r?{}:r;return{duration:i.transitionDuration||"number"==typeof n?n:n[t.mode]||0,delay:i.transitionDelay}}var qJ=N_.forwardRef((function(e,t){var n=e.classes,r=e.className,i=e.component,o=void 0===i?"div":i,a=e.square,s=void 0!==a&&a,l=e.elevation,c=void 0===l?1:l,u=e.variant,d=void 0===u?"elevation":u,f=bP(e,["classes","className","component","square","elevation","variant"]);return N_.createElement(o,aP({className:QF(n.root,r,"outlined"===d?n.outlined:n["elevation".concat(c)],!s&&n.rounded),ref:t},f))})),DJ=jj((function(e){var t={};return e.shadows.forEach((function(e,n){t["elevation".concat(n)]={boxShadow:e}})),aP({root:{backgroundColor:e.palette.background.paper,color:e.palette.text.primary,transition:e.transitions.create("box-shadow")},rounded:{borderRadius:e.shape.borderRadius},outlined:{border:"1px solid ".concat(e.palette.divider)}},t)}),{name:"MuiPaper"})(qJ),RJ="undefined"==typeof window?N_.useEffect:N_.useLayoutEffect;function IJ(e){var t=e.classes,n=e.pulsate,r=void 0!==n&&n,i=e.rippleX,o=e.rippleY,a=e.rippleSize,s=e.in,l=e.onExited,c=void 0===l?function(){}:l,u=e.timeout,d=N_.useState(!1),f=d[0],h=d[1],p=QF(t.ripple,t.rippleVisible,r&&t.ripplePulsate),m={width:a,height:a,top:-a/2+o,left:-a/2+i},g=QF(t.child,f&&t.childLeaving,r&&t.childPulsate),y=Yj(c);return RJ((function(){if(!s){h(!0);var e=setTimeout(y,u);return function(){clearTimeout(e)}}}),[y,s,u]),N_.createElement("span",{className:p,style:m},N_.createElement("span",{className:g}))}var _J=N_.forwardRef((function(e,t){var n=e.center,r=void 0!==n&&n,i=e.classes,o=e.className,a=bP(e,["center","classes","className"]),s=N_.useState([]),l=s[0],c=s[1],u=N_.useRef(0),d=N_.useRef(null);N_.useEffect((function(){d.current&&(d.current(),d.current=null)}),[l]);var f=N_.useRef(!1),h=N_.useRef(null),p=N_.useRef(null),m=N_.useRef(null);N_.useEffect((function(){return function(){clearTimeout(h.current)}}),[]);var g=N_.useCallback((function(e){var t=e.pulsate,n=e.rippleX,r=e.rippleY,o=e.rippleSize,a=e.cb;c((function(e){return[].concat(PP(e),[N_.createElement(IJ,{key:u.current,classes:i,timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:o})])})),u.current+=1,d.current=a}),[i]),y=N_.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,i=t.pulsate,o=void 0!==i&&i,a=t.center,s=void 0===a?r||t.pulsate:a,l=t.fakeElement,c=void 0!==l&&l;if("mousedown"===e.type&&f.current)f.current=!1;else{"touchstart"===e.type&&(f.current=!0);var u,d,y,v=c?null:m.current,b=v?v.getBoundingClientRect():{width:0,height:0,left:0,top:0};if(s||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(b.width/2),d=Math.round(b.height/2);else{var x=e.touches?e.touches[0]:e,S=x.clientX,w=x.clientY;u=Math.round(S-b.left),d=Math.round(w-b.top)}if(s)(y=Math.sqrt((2*Math.pow(b.width,2)+Math.pow(b.height,2))/3))%2==0&&(y+=1);else{var M=2*Math.max(Math.abs((v?v.clientWidth:0)-u),u)+2,E=2*Math.max(Math.abs((v?v.clientHeight:0)-d),d)+2;y=Math.sqrt(Math.pow(M,2)+Math.pow(E,2))}e.touches?null===p.current&&(p.current=function(){g({pulsate:o,rippleX:u,rippleY:d,rippleSize:y,cb:n})},h.current=setTimeout((function(){p.current&&(p.current(),p.current=null)}),80)):g({pulsate:o,rippleX:u,rippleY:d,rippleSize:y,cb:n})}}),[r,g]),v=N_.useCallback((function(){y({},{pulsate:!0})}),[y]),b=N_.useCallback((function(e,t){if(clearTimeout(h.current),"touchend"===e.type&&p.current)return e.persist(),p.current(),p.current=null,void(h.current=setTimeout((function(){b(e,t)})));p.current=null,c((function(e){return e.length>0?e.slice(1):e})),d.current=t}),[]);return N_.useImperativeHandle(t,(function(){return{pulsate:v,start:y,stop:b}}),[v,y,b]),N_.createElement("span",aP({className:QF(i.root,o),ref:m},a),N_.createElement(OJ,{component:null,exit:!0},l))})),PJ=jj((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"})(N_.memo(_J)),LJ=N_.forwardRef((function(e,t){var n=e.action,r=e.buttonRef,i=e.centerRipple,o=void 0!==i&&i,a=e.children,s=e.classes,l=e.className,c=e.component,u=void 0===c?"button":c,d=e.disabled,f=void 0!==d&&d,h=e.disableRipple,p=void 0!==h&&h,m=e.disableTouchRipple,g=void 0!==m&&m,y=e.focusRipple,v=void 0!==y&&y,b=e.focusVisibleClassName,x=e.onBlur,S=e.onClick,w=e.onFocus,M=e.onFocusVisible,E=e.onKeyDown,k=e.onKeyUp,C=e.onMouseDown,T=e.onMouseLeave,A=e.onMouseUp,O=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,z=bP(e,["action","buttonRef","centerRipple","children","classes","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","onBlur","onClick","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","onDragLeave","tabIndex","TouchRippleProps","type"]),F=N_.useRef(null);var j=N_.useRef(null),$=N_.useState(!1),H=$[0],B=$[1];f&&H&&B(!1);var V=hJ(),U=V.isFocusVisible,W=V.onBlurVisible,Y=V.ref;function X(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:g;return Yj((function(r){return t&&t(r),!n&&j.current&&j.current[e](r),!0}))}N_.useImperativeHandle(n,(function(){return{focusVisible:function(){B(!0),F.current.focus()}}}),[]),N_.useEffect((function(){H&&v&&!p&&j.current.pulsate()}),[p,v,H]);var G=X("start",C),K=X("stop",D),J=X("stop",A),Q=X("stop",(function(e){H&&e.preventDefault(),T&&T(e)})),Z=X("start",q),ee=X("stop",O),te=X("stop",N),ne=X("stop",(function(e){H&&(W(e),B(!1)),x&&x(e)}),!1),re=Yj((function(e){F.current||(F.current=e.currentTarget),U(e)&&(B(!0),M&&M(e)),w&&w(e)})),ie=function(){var e=nJ.findDOMNode(F.current);return u&&"button"!==u&&!("A"===e.tagName&&e.href)},oe=N_.useRef(!1),ae=Yj((function(e){v&&!oe.current&&H&&j.current&&" "===e.key&&(oe.current=!0,e.persist(),j.current.stop(e,(function(){j.current.start(e)}))),e.target===e.currentTarget&&ie()&&" "===e.key&&e.preventDefault(),E&&E(e),e.target===e.currentTarget&&ie()&&"Enter"===e.key&&!f&&(e.preventDefault(),S&&S(e))})),se=Yj((function(e){v&&" "===e.key&&j.current&&H&&!e.defaultPrevented&&(oe.current=!1,e.persist(),j.current.stop(e,(function(){j.current.pulsate(e)}))),k&&k(e),S&&e.target===e.currentTarget&&ie()&&" "===e.key&&!e.defaultPrevented&&S(e)})),le=u;"button"===le&&z.href&&(le="a");var ce={};"button"===le?(ce.type=L,ce.disabled=f):("a"===le&&z.href||(ce.role="button"),ce["aria-disabled"]=f);var ue=Xj(r,t),de=Xj(Y,F),fe=Xj(ue,de),he=N_.useState(!1),pe=he[0],me=he[1];N_.useEffect((function(){me(!0)}),[]);var ge=pe&&!p&&!f;return N_.createElement(le,aP({className:QF(s.root,l,H&&[s.focusVisible,b],f&&s.disabled),onBlur:ne,onClick:S,onFocus:re,onKeyDown:ae,onKeyUp:se,onMouseDown:G,onMouseLeave:Q,onMouseUp:J,onDragLeave:K,onTouchEnd:ee,onTouchMove:te,onTouchStart:Z,ref:fe,tabIndex:f?-1:I},ce,z),a,ge?N_.createElement(PJ,aP({ref:j,center:o},_)):null)})),zJ=jj({root:{display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle","-moz-appearance":"none","-webkit-appearance":"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},"&$disabled":{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}},disabled:{},focusVisible:{}},{name:"MuiButtonBase"})(LJ),FJ={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p"},jJ=N_.forwardRef((function(e,t){var n=e.align,r=void 0===n?"inherit":n,i=e.classes,o=e.className,a=e.color,s=void 0===a?"initial":a,l=e.component,c=e.display,u=void 0===c?"initial":c,d=e.gutterBottom,f=void 0!==d&&d,h=e.noWrap,p=void 0!==h&&h,m=e.paragraph,g=void 0!==m&&m,y=e.variant,v=void 0===y?"body1":y,b=e.variantMapping,x=void 0===b?FJ:b,S=bP(e,["align","classes","className","color","component","display","gutterBottom","noWrap","paragraph","variant","variantMapping"]),w=l||(g?"p":x[v]||FJ[v])||"span";return N_.createElement(w,aP({className:QF(i.root,o,"inherit"!==v&&i[v],"initial"!==s&&i["color".concat($j(s))],p&&i.noWrap,f&&i.gutterBottom,g&&i.paragraph,"inherit"!==r&&i["align".concat($j(r))],"initial"!==u&&i["display".concat($j(u))]),ref:t},S))})),$J=jj((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"})(jJ),HJ=N_.forwardRef((function(e,t){var n=e.children,r=e.classes,i=e.className,o=e.color,a=void 0===o?"default":o,s=e.component,l=void 0===s?"button":s,c=e.disabled,u=void 0!==c&&c,d=e.disableElevation,f=void 0!==d&&d,h=e.disableFocusRipple,p=void 0!==h&&h,m=e.endIcon,g=e.focusVisibleClassName,y=e.fullWidth,v=void 0!==y&&y,b=e.size,x=void 0===b?"medium":b,S=e.startIcon,w=e.type,M=void 0===w?"button":w,E=e.variant,k=void 0===E?"text":E,C=bP(e,["children","classes","className","color","component","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"]),T=S&&N_.createElement("span",{className:QF(r.startIcon,r["iconSize".concat($j(x))])},S),A=m&&N_.createElement("span",{className:QF(r.endIcon,r["iconSize".concat($j(x))])},m);return N_.createElement(zJ,aP({className:QF(r.root,r[k],i,"inherit"===a?r.colorInherit:"default"!==a&&r["".concat(k).concat($j(a))],"medium"!==x&&[r["".concat(k,"Size").concat($j(x))],r["size".concat($j(x))]],f&&r.disableElevation,u&&r.disabled,v&&r.fullWidth),component:l,disabled:u,focusRipple:!p,focusVisibleClassName:QF(r.focusVisible,g),ref:t,type:M},C),N_.createElement("span",{className:r.label},T,n,A))})),BJ=jj((function(e){return{root:aP({},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:yP(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:yP(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},textSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:yP(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlined:{padding:"5px 15px",border:"1px solid ".concat("light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),"&$disabled":{border:"1px solid ".concat(e.palette.action.disabledBackground)}},outlinedPrimary:{color:e.palette.primary.main,border:"1px solid ".concat(yP(e.palette.primary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.primary.main),backgroundColor:yP(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlinedSecondary:{color:e.palette.secondary.main,border:"1px solid ".concat(yP(e.palette.secondary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.secondary.main),backgroundColor:yP(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{border:"1px solid ".concat(e.palette.action.disabled)}},contained:{color:e.palette.getContrastText(e.palette.grey[300]),backgroundColor:e.palette.grey[300],boxShadow:e.shadows[2],"&:hover":{backgroundColor:e.palette.grey.A100,boxShadow:e.shadows[4],"@media (hover: none)":{boxShadow:e.shadows[2],backgroundColor:e.palette.grey[300]},"&$disabled":{backgroundColor:e.palette.action.disabledBackground}},"&$focusVisible":{boxShadow:e.shadows[6]},"&:active":{boxShadow:e.shadows[8]},"&$disabled":{color:e.palette.action.disabled,boxShadow:e.shadows[0],backgroundColor:e.palette.action.disabledBackground}},containedPrimary:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,"&:hover":{backgroundColor:e.palette.primary.dark,"@media (hover: none)":{backgroundColor:e.palette.primary.main}}},containedSecondary:{color:e.palette.secondary.contrastText,backgroundColor:e.palette.secondary.main,"&:hover":{backgroundColor:e.palette.secondary.dark,"@media (hover: none)":{backgroundColor:e.palette.secondary.main}}},disableElevation:{boxShadow:"none","&:hover":{boxShadow:"none"},"&$focusVisible":{boxShadow:"none"},"&:active":{boxShadow:"none"},"&$disabled":{boxShadow:"none"}},focusVisible:{},disabled:{},colorInherit:{color:"inherit",borderColor:"currentColor"},textSizeSmall:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},textSizeLarge:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},outlinedSizeSmall:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},outlinedSizeLarge:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},containedSizeSmall:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},containedSizeLarge:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},sizeSmall:{},sizeLarge:{},fullWidth:{width:"100%"},startIcon:{display:"inherit",marginRight:8,marginLeft:-4,"&$iconSizeSmall":{marginLeft:-2}},endIcon:{display:"inherit",marginRight:-4,marginLeft:8,"&$iconSizeSmall":{marginRight:-2}},iconSizeSmall:{"& > *:first-child":{fontSize:18}},iconSizeMedium:{"& > *:first-child":{fontSize:20}},iconSizeLarge:{"& > *:first-child":{fontSize:22}}}}),{name:"MuiButton"})(HJ);var VJ="undefined"!=typeof window?N_.useLayoutEffect:N_.useEffect,UJ=N_.forwardRef((function(e,t){var n=e.children,r=e.container,i=e.disablePortal,o=void 0!==i&&i,a=e.onRendered,s=N_.useState(null),l=s[0],c=s[1],u=Xj(N_.isValidElement(n)?n.ref:null,t);return VJ((function(){o||c(function(e){return e="function"==typeof e?e():e,nJ.findDOMNode(e)}(r)||document.body)}),[r,o]),VJ((function(){if(l&&!o)return Uj(t,l),function(){Uj(t,null)}}),[t,l,o]),VJ((function(){a&&(l||o)&&a()}),[a,l,o]),o?N_.isValidElement(n)?N_.cloneElement(n,{ref:u}):n:l?nJ.createPortal(n,l):l})),WJ=UJ;function YJ(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function XJ(e){return parseInt(window.getComputedStyle(e)["padding-right"],10)||0}function GJ(e,t,n){var r=arguments.length>4?arguments[4]:void 0,i=[t,n].concat(PP(arguments.length>3&&void 0!==arguments[3]?arguments[3]:[])),o=["TEMPLATE","SCRIPT","STYLE"];[].forEach.call(e.children,(function(e){1===e.nodeType&&-1===i.indexOf(e)&&-1===o.indexOf(e.tagName)&&YJ(e,r)}))}function KJ(e,t){var n=-1;return e.some((function(e,r){return!!t(e)&&(n=r,!0)})),n}function JJ(e,t){var n,r=[],i=[],o=e.container;if(!t.disableScrollLock){if(function(e){var t=Bj(e);return t.body===e?Vj(t).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(o)){var a=function(){var e=document.createElement("div");e.style.width="99px",e.style.height="99px",e.style.position="absolute",e.style.top="-9999px",e.style.overflow="scroll",document.body.appendChild(e);var t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t}();r.push({value:o.style.paddingRight,key:"padding-right",el:o}),o.style["padding-right"]="".concat(XJ(o)+a,"px"),n=Bj(o).querySelectorAll(".mui-fixed"),[].forEach.call(n,(function(e){i.push(e.style.paddingRight),e.style.paddingRight="".concat(XJ(e)+a,"px")}))}var s=o.parentElement,l="HTML"===s.nodeName&&"scroll"===window.getComputedStyle(s)["overflow-y"]?s:o;r.push({value:l.style.overflow,key:"overflow",el:l}),l.style.overflow="hidden"}return function(){n&&[].forEach.call(n,(function(e,t){i[t]?e.style.paddingRight=i[t]:e.style.removeProperty("padding-right")})),r.forEach((function(e){var t=e.value,n=e.el,r=e.key;t?n.style.setProperty(r,t):n.style.removeProperty(r)}))}}var QJ=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.modals=[],this.containers=[]}return QP(e,[{key:"add",value:function(e,t){var n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&YJ(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);GJ(t,e.mountNode,e.modalRef,r,!0);var i=KJ(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=KJ(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];r.restore||(r.restore=JJ(r,t))}},{key:"remove",value:function(e){var t=this.modals.indexOf(e);if(-1===t)return t;var n=KJ(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&&YJ(e.modalRef,!0),GJ(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&&YJ(i.modalRef,!1)}return t}},{key:"isTopModal",value:function(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}]),e}();function ZJ(e){var t=e.children,n=e.disableAutoFocus,r=void 0!==n&&n,i=e.disableEnforceFocus,o=void 0!==i&&i,a=e.disableRestoreFocus,s=void 0!==a&&a,l=e.getDoc,c=e.isEnabled,u=e.open,d=N_.useRef(),f=N_.useRef(null),h=N_.useRef(null),p=N_.useRef(),m=N_.useRef(null),g=N_.useCallback((function(e){m.current=nJ.findDOMNode(e)}),[]),y=Xj(t.ref,g),v=N_.useRef();return N_.useEffect((function(){v.current=u}),[u]),!v.current&&u&&"undefined"!=typeof window&&(p.current=l().activeElement),N_.useEffect((function(){if(u){var e=Bj(m.current);r||!m.current||m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex",-1),m.current.focus());var t=function(){null!==m.current&&(e.hasFocus()&&!o&&c()&&!d.current?m.current&&!m.current.contains(e.activeElement)&&m.current.focus():d.current=!1)},n=function(t){!o&&c()&&9===t.keyCode&&e.activeElement===m.current&&(d.current=!0,t.shiftKey?h.current.focus():f.current.focus())};e.addEventListener("focus",t,!0),e.addEventListener("keydown",n,!0);var i=setInterval((function(){t()}),50);return function(){clearInterval(i),e.removeEventListener("focus",t,!0),e.removeEventListener("keydown",n,!0),s||(p.current&&p.current.focus&&p.current.focus(),p.current=null)}}}),[r,o,s,c,u]),N_.createElement(N_.Fragment,null,N_.createElement("div",{tabIndex:0,ref:f,"data-test":"sentinelStart"}),N_.cloneElement(t,{ref:y}),N_.createElement("div",{tabIndex:0,ref:h,"data-test":"sentinelEnd"}))}var eQ={root:{zIndex:-1,position:"fixed",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},invisible:{backgroundColor:"transparent"}},tQ=N_.forwardRef((function(e,t){var n=e.invisible,r=void 0!==n&&n,i=e.open,o=bP(e,["invisible","open"]);return i?N_.createElement("div",aP({"aria-hidden":!0,ref:t},o,{style:aP({},eQ.root,r?eQ.invisible:{},o.style)})):null}));var nQ=new QJ,rQ=N_.forwardRef((function(e,t){var n=$F(),r=XP({name:"MuiModal",props:aP({},e),theme:n}),i=r.BackdropComponent,o=void 0===i?tQ:i,a=r.BackdropProps,s=r.children,l=r.closeAfterTransition,c=void 0!==l&&l,u=r.container,d=r.disableAutoFocus,f=void 0!==d&&d,h=r.disableBackdropClick,p=void 0!==h&&h,m=r.disableEnforceFocus,g=void 0!==m&&m,y=r.disableEscapeKeyDown,v=void 0!==y&&y,b=r.disablePortal,x=void 0!==b&&b,S=r.disableRestoreFocus,w=void 0!==S&&S,M=r.disableScrollLock,E=void 0!==M&&M,k=r.hideBackdrop,C=void 0!==k&&k,T=r.keepMounted,A=void 0!==T&&T,O=r.manager,N=void 0===O?nQ:O,q=r.onBackdropClick,D=r.onClose,R=r.onEscapeKeyDown,I=r.onRendered,_=r.open,P=bP(r,["BackdropComponent","BackdropProps","children","closeAfterTransition","container","disableAutoFocus","disableBackdropClick","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onEscapeKeyDown","onRendered","open"]),L=N_.useState(!0),z=L[0],F=L[1],j=N_.useRef({}),$=N_.useRef(null),H=N_.useRef(null),B=Xj(H,t),V=function(e){return!!e.children&&e.children.props.hasOwnProperty("in")}(r),U=function(){return Bj($.current)},W=function(){return j.current.modalRef=H.current,j.current.mountNode=$.current,j.current},Y=function(){N.mount(W(),{disableScrollLock:E}),H.current.scrollTop=0},X=Yj((function(){var e=function(e){return e="function"==typeof e?e():e,nJ.findDOMNode(e)}(u)||U().body;N.add(W(),e),H.current&&Y()})),G=N_.useCallback((function(){return N.isTopModal(W())}),[N]),K=Yj((function(e){$.current=e,e&&(I&&I(),_&&G()?Y():YJ(H.current,!0))})),J=N_.useCallback((function(){N.remove(W())}),[N]);if(N_.useEffect((function(){return function(){J()}}),[J]),N_.useEffect((function(){_?X():V&&c||J()}),[_,J,V,c,X]),!A&&!_&&(!V||z))return null;var Q=function(e){return{root:{position:"fixed",zIndex:e.zIndex.modal,right:0,bottom:0,top:0,left:0},hidden:{visibility:"hidden"}}}(n||{zIndex:BP}),Z={};return void 0===s.props.tabIndex&&(Z.tabIndex=s.props.tabIndex||"-1"),V&&(Z.onEnter=Hj((function(){F(!1)}),s.props.onEnter),Z.onExited=Hj((function(){F(!0),c&&J()}),s.props.onExited)),N_.createElement(WJ,{ref:K,container:u,disablePortal:x},N_.createElement("div",aP({ref:B,onKeyDown:function(e){"Escape"===e.key&&G()&&(R&&R(e),v||(e.stopPropagation(),D&&D(e,"escapeKeyDown")))},role:"presentation"},P,{style:aP({},Q.root,!_&&z?Q.hidden:{},P.style)}),C?null:N_.createElement(o,aP({open:_,onClick:function(e){e.target===e.currentTarget&&(q&&q(e),!p&&D&&D(e,"backdropClick"))}},a)),N_.createElement(ZJ,{disableEnforceFocus:g,disableAutoFocus:f,disableRestoreFocus:w,getDoc:U,isEnabled:G,open:_},N_.cloneElement(s,Z))))})),iQ=rQ;function oQ(e){return"scale(".concat(e,", ").concat(Math.pow(e,2),")")}var aQ={entering:{opacity:1,transform:oQ(1)},entered:{opacity:1,transform:"none"}},sQ=N_.forwardRef((function(e,t){var n=e.children,r=e.disableStrictModeCompat,i=void 0!==r&&r,o=e.in,a=e.onEnter,s=e.onEntered,l=e.onEntering,c=e.onExit,u=e.onExited,d=e.onExiting,f=e.style,h=e.timeout,p=void 0===h?"auto":h,m=e.TransitionComponent,g=void 0===m?MJ:m,y=bP(e,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),v=N_.useRef(),b=N_.useRef(),x=$F()||zj,S=x.unstable_strictMode&&!i,w=N_.useRef(null),M=Xj(n.ref,t),E=Xj(S?w:void 0,M),k=function(e){return function(t,n){if(e){var r=LP(S?[w.current,t]:[t,n],2),i=r[0],o=r[1];void 0===o?e(i):e(i,o)}}},C=k(l),T=k((function(e,t){!function(e){e.scrollTop}(e);var n,r=NJ({style:f,timeout:p},{mode:"enter"}),i=r.duration,o=r.delay;"auto"===p?(n=x.transitions.getAutoHeightDuration(e.clientHeight),b.current=n):n=i,e.style.transition=[x.transitions.create("opacity",{duration:n,delay:o}),x.transitions.create("transform",{duration:.666*n,delay:o})].join(","),a&&a(e,t)})),A=k(s),O=k(d),N=k((function(e){var t,n=NJ({style:f,timeout:p},{mode:"exit"}),r=n.duration,i=n.delay;"auto"===p?(t=x.transitions.getAutoHeightDuration(e.clientHeight),b.current=t):t=r,e.style.transition=[x.transitions.create("opacity",{duration:t,delay:i}),x.transitions.create("transform",{duration:.666*t,delay:i||.333*t})].join(","),e.style.opacity="0",e.style.transform=oQ(.75),c&&c(e)})),q=k(u);return N_.useEffect((function(){return function(){clearTimeout(v.current)}}),[]),N_.createElement(g,aP({appear:!0,in:o,nodeRef:S?w:void 0,onEnter:T,onEntered:A,onEntering:C,onExit:N,onExited:q,onExiting:O,addEndListener:function(e,t){var n=S?e:t;"auto"===p&&(v.current=setTimeout(n,b.current||0))},timeout:"auto"===p?null:p},y),(function(e,t){return N_.cloneElement(n,aP({style:aP({opacity:0,transform:oQ(.75),visibility:"exited"!==e||o?void 0:"hidden"},aQ[e],f,n.props.style),ref:E},t))}))}));sQ.muiSupportAuto=!0;var lQ=N_.createContext({}),cQ=N_.forwardRef((function(e,t){var n=e.children,r=e.classes,i=e.className,o=e.component,a=void 0===o?"ul":o,s=e.dense,l=void 0!==s&&s,c=e.disablePadding,u=void 0!==c&&c,d=e.subheader,f=bP(e,["children","classes","className","component","dense","disablePadding","subheader"]),h=N_.useMemo((function(){return{dense:l}}),[l]);return N_.createElement(lQ.Provider,{value:h},N_.createElement(a,aP({className:QF(r.root,i,l&&r.dense,!u&&r.padding,d&&r.subheader),ref:t},f),d,n))})),uQ=jj({root:{listStyle:"none",margin:0,padding:0,position:"relative"},padding:{paddingTop:8,paddingBottom:8},dense:{},subheader:{paddingTop:0}},{name:"MuiList"})(cQ),dQ="undefined"==typeof window?N_.useEffect:N_.useLayoutEffect,fQ=N_.forwardRef((function(e,t){var n=e.alignItems,r=void 0===n?"center":n,i=e.autoFocus,o=void 0!==i&&i,a=e.button,s=void 0!==a&&a,l=e.children,c=e.classes,u=e.className,d=e.component,f=e.ContainerComponent,h=void 0===f?"li":f,p=e.ContainerProps,m=(p=void 0===p?{}:p).className,g=bP(p,["className"]),y=e.dense,v=void 0!==y&&y,b=e.disabled,x=void 0!==b&&b,S=e.disableGutters,w=void 0!==S&&S,M=e.divider,E=void 0!==M&&M,k=e.focusVisibleClassName,C=e.selected,T=void 0!==C&&C,A=bP(e,["alignItems","autoFocus","button","children","classes","className","component","ContainerComponent","ContainerProps","dense","disabled","disableGutters","divider","focusVisibleClassName","selected"]),O=N_.useContext(lQ),N={dense:v||O.dense||!1,alignItems:r},q=N_.useRef(null);dQ((function(){o&&q.current&&q.current.focus()}),[o]);var D,R,I=N_.Children.toArray(l),_=I.length&&(D=I[I.length-1],R=["ListItemSecondaryAction"],N_.isValidElement(D)&&-1!==R.indexOf(D.type.muiName)),P=N_.useCallback((function(e){q.current=nJ.findDOMNode(e)}),[]),L=Xj(P,t),z=aP({className:QF(c.root,u,N.dense&&c.dense,!w&&c.gutters,E&&c.divider,x&&c.disabled,s&&c.button,"center"!==r&&c.alignItemsFlexStart,_&&c.secondaryAction,T&&c.selected),disabled:x},A),F=d||"li";return s&&(z.component=d||"div",z.focusVisibleClassName=QF(c.focusVisible,k),F=zJ),_?(F=z.component||d?F:"div","li"===h&&("li"===F?F="div":"li"===z.component&&(z.component="div")),N_.createElement(lQ.Provider,{value:N},N_.createElement(h,aP({className:QF(c.container,m),ref:L},g),N_.createElement(F,z,I),I.pop()))):N_.createElement(lQ.Provider,{value:N},N_.createElement(F,aP({ref:L},z),I))})),hQ=jj((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"})(fQ),pQ=N_.forwardRef((function(e,t){var n=e.classes,r=e.className,i=bP(e,["classes","className"]),o=N_.useContext(lQ);return N_.createElement("div",aP({className:QF(n.root,r,"flex-start"===o.alignItems&&n.alignItemsFlexStart),ref:t},i))})),mQ=jj((function(e){return{root:{minWidth:56,color:e.palette.action.active,flexShrink:0,display:"inline-flex"},alignItemsFlexStart:{marginTop:8}}}),{name:"MuiListItemIcon"})(pQ),gQ=N_.forwardRef((function(e,t){var n=e.children,r=e.classes,i=e.className,o=e.disableTypography,a=void 0!==o&&o,s=e.inset,l=void 0!==s&&s,c=e.primary,u=e.primaryTypographyProps,d=e.secondary,f=e.secondaryTypographyProps,h=bP(e,["children","classes","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"]),p=N_.useContext(lQ).dense,m=null!=c?c:n;null==m||m.type===$J||a||(m=N_.createElement($J,aP({variant:p?"body2":"body1",className:r.primary,component:"span",display:"block"},u),m));var g=d;return null==g||g.type===$J||a||(g=N_.createElement($J,aP({variant:"body2",className:r.secondary,color:"textSecondary",display:"block"},f),g)),N_.createElement("div",aP({className:QF(r.root,i,p&&r.dense,l&&r.inset,m&&g&&r.multiline),ref:t},h),m,g)})),yQ=jj({root:{flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},multiline:{marginTop:6,marginBottom:6},dense:{},inset:{paddingLeft:56},primary:{},secondary:{}},{name:"MuiListItemText"})(gQ);function vQ(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function bQ(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function xQ(e){return[e.horizontal,e.vertical].map((function(e){return"number"==typeof e?"".concat(e,"px"):e})).join(" ")}function SQ(e){return"function"==typeof e?e():e}var wQ=N_.forwardRef((function(e,t){var n=e.action,r=e.anchorEl,i=e.anchorOrigin,o=void 0===i?{vertical:"top",horizontal:"left"}:i,a=e.anchorPosition,s=e.anchorReference,l=void 0===s?"anchorEl":s,c=e.children,u=e.classes,d=e.className,f=e.container,h=e.elevation,p=void 0===h?8:h,m=e.getContentAnchorEl,g=e.marginThreshold,y=void 0===g?16:g,v=e.onEnter,b=e.onEntered,x=e.onEntering,S=e.onExit,w=e.onExited,M=e.onExiting,E=e.open,k=e.PaperProps,C=void 0===k?{}:k,T=e.transformOrigin,A=void 0===T?{vertical:"top",horizontal:"left"}:T,O=e.TransitionComponent,N=void 0===O?sQ:O,q=e.transitionDuration,D=void 0===q?"auto":q,R=e.TransitionProps,I=void 0===R?{}:R,_=bP(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=N_.useRef(),L=N_.useCallback((function(e){if("anchorPosition"===l)return a;var t=SQ(r),n=(t&&1===t.nodeType?t:Bj(P.current).body).getBoundingClientRect(),i=0===e?o.vertical:"center";return{top:n.top+vQ(n,i),left:n.left+bQ(n,o.horizontal)}}),[r,o.horizontal,o.vertical,a,l]),z=N_.useCallback((function(e){var t=0;if(m&&"anchorEl"===l){var n=m(e);if(n&&e.contains(n)){var r=function(e,t){for(var n=t,r=0;n&&n!==e;)r+=(n=n.parentElement).scrollTop;return r}(e,n);t=n.offsetTop+n.clientHeight/2-r||0}}return t}),[o.vertical,l,m]),F=N_.useCallback((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return{vertical:vQ(e,A.vertical)+t,horizontal:bQ(e,A.horizontal)}}),[A.horizontal,A.vertical]),j=N_.useCallback((function(e){var t=z(e),n={width:e.offsetWidth,height:e.offsetHeight},i=F(n,t);if("none"===l)return{top:null,left:null,transformOrigin:xQ(i)};var o=L(t),a=o.top-i.vertical,s=o.left-i.horizontal,c=a+n.height,u=s+n.width,d=Vj(SQ(r)),f=d.innerHeight-y,h=d.innerWidth-y;if(a<y){var p=a-y;a-=p,i.vertical+=p}else if(c>f){var m=c-f;a-=m,i.vertical+=m}if(s<y){var g=s-y;s-=g,i.horizontal+=g}else if(u>h){var v=u-h;s-=v,i.horizontal+=v}return{top:"".concat(Math.round(a),"px"),left:"".concat(Math.round(s),"px"),transformOrigin:xQ(i)}}),[r,l,L,z,F,y]),$=N_.useCallback((function(){var e=P.current;if(e){var t=j(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin}}),[j]),H=N_.useCallback((function(e){P.current=nJ.findDOMNode(e)}),[]);N_.useEffect((function(){E&&$()})),N_.useImperativeHandle(n,(function(){return E?{updatePosition:function(){$()}}:null}),[E,$]),N_.useEffect((function(){if(E){var e=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:166;function r(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];var a=this;clearTimeout(t),t=setTimeout((function(){e.apply(a,i)}),n)}return r.clear=function(){clearTimeout(t)},r}((function(){$()}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}}),[E,$]);var B=D;"auto"!==D||N.muiSupportAuto||(B=void 0);var V=f||(r?Bj(SQ(r)).body:void 0);return N_.createElement(iQ,aP({container:V,open:E,ref:t,BackdropProps:{invisible:!0},className:QF(u.root,d)},_),N_.createElement(N,aP({appear:!0,in:E,onEnter:v,onEntered:b,onExit:S,onExited:w,onExiting:M,timeout:B},I,{onEntering:Hj((function(e,t){x&&x(e,t),$()}),I.onEntering)}),N_.createElement(DJ,aP({elevation:p,ref:H},C,{className:QF(u.paper,C.className)}),c)))})),MQ=jj({root:{},paper:{position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}},{name:"MuiPopover"})(wQ);function EQ(e){return"large"===e?"20px":"small"===e?"12px":"16px"}function kQ({d:e,size:t,style:n={},viewBox:r="0 0 16 16"}){const i={fontSize:EQ(t),display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",...n};return q_.createElement("i",{style:i},q_.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:r,fill:"currentColor"},q_.createElement("path",{d:e})))}const CQ=Fj(hQ)((()=>({textAlign:"start","&:focus":{boxShadow:"inset 0 0 0 2px #177FE6 !important"}}))),TQ={menuItem:"alternative-menu-item",titleButton:"title-button",activeTitleButton:"active-title-button"},AQ=e=>{if("Tab"===e.key){const t=document.querySelectorAll(`.${TQ.menuItem}`);let n;e.shiftKey?null!=t&&t.length&&t[0]===e.target&&(n=t[t.length-1]):null!=t&&t.length&&t[t.length-1]===e.target&&([n]=t),n&&setTimeout((()=>{n.focus()}),50)}};function OQ({title:e,selected:t,onClick:n}){const r=_.detectTextDirection(e);return q_.createElement(CQ,{role:"menuitem",button:!0,onClick:n,className:TQ.menuItem,onKeyDown:AQ},q_.createElement(mQ,{style:{minWidth:32}},q_.createElement(kQ,{d:t?__.d:""})),q_.createElement(yQ,{primaryTypographyProps:{dir:r}},e))}OQ.propTypes={title:J_.string.isRequired,selected:J_.bool,onClick:J_.func.isRequired},OQ.defaultProps={selected:!1};const NQ={bottom:{anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},top:{anchorOrigin:{vertical:"top",horizontal:"center"},transformOrigin:{vertical:"bottom",horizontal:"center"}},left:{anchorOrigin:{vertical:"center",horizontal:"left"},transformOrigin:{vertical:"center",horizontal:"right"}},right:{anchorOrigin:{vertical:"center",horizontal:"right"},transformOrigin:{vertical:"center",horizontal:"left"}}};function qQ({alignTo:e,changeTo:t,current:n,dir:r,dock:i,list:o,onClose:a,show:s,instruction:l}){const c=o.map((e=>q_.createElement(OQ,{key:e.id,title:e.title,onClick:()=>t(e.id)})));return q_.createElement(MQ,Y_({anchorEl:e,open:s,onClose:a},NQ[i],{PaperProps:{style:{minWidth:"250px",maxHeight:"300px"}}}),q_.createElement(uQ,{dense:!0,dir:r,"aria-label":l,component:"nav"},q_.createElement(OQ,{title:n,selected:!0,onClick:a}),c))}qQ.propTypes={alignTo:J_.any,changeTo:J_.func.isRequired,current:J_.string.isRequired,dir:J_.string.isRequired,dock:J_.string.isRequired,list:J_.array,onClose:J_.func.isRequired,show:J_.bool.isRequired,instruction:J_.string.isRequired},qQ.defaultProps={list:[],alignTo:null};const DQ="alternative-menu-item",RQ="title-button",IQ="active-title-button",_Q=Fj((({children:e,...t})=>q_.createElement(BJ,Y_({size:"small",disableRipple:!0,disableTouchRipple:!0},t),e)))((()=>({"&:focus":{boxShadow:"inset 0 0 0 2px #177FE6 !important"}}))),PQ=Fj(BJ)((()=>({borderRadius:"4px",width:"24px",height:"24px",minWidth:"22px",padding:0})));class LQ extends q_.Component{constructor(e){super(e),this.state={open:!1,inSelection:e.selections&&e.selections.isActive(),hasValidAlternatives:!1},this.openPopover=this.openPopover.bind(this),this.closePopover=this.closePopover.bind(this),this.changeTo=this.changeTo.bind(this),this.alignToRef=q_.createRef()}componentDidMount(){const{popover:e,selections:t,supportConditional:n}=this.props;t&&(this.onSelectionsActivated=()=>this.setState({inSelection:!0}),this.onSelectionsDeactivated=()=>this.setState({inSelection:!1}),t.addListener("activated",this.onSelectionsActivated),t.addListener("deactivated",this.onSelectionsDeactivated),t.addListener("canceled",this.onSelectionsDeactivated)),e&&n&&e.getAlternatives().then((e=>{this.setState({hasValidAlternatives:0!==e.length})}))}componentDidUpdate(e,t){const{popover:n,supportConditional:r}=this.props;n&&r&&n.getAlternatives().then((e=>{t.hasValidAlternatives!==(0!==e.length)&&this.setState({hasValidAlternatives:0!==e.length})}))}componentWillUnmount(){const{selections:e}=this.props;e&&(e.removeListener("activated",this.onSelectionsActivated),e.removeListener("deactivated",this.onSelectionsDeactivated),e.removeListener("canceled",this.onSelectionsDeactivated))}changeTo(e){this.props.popover.changeTo(this.props.titleData.id,e),this.closePopover(e)}openPopover(e){if(!(this.state.closeTime&&Date.now()-this.state.closeTime<20)){if(e.target){const t=e.target.closest(`.${RQ}`);t&&t.classList.add(IQ)}this.props.popover.getAlternatives().then((e=>{this.setState({open:!0,alternatives:e});document.querySelector(`.${DQ}`).focus()}))}}closePopover(e){if(this.setState({open:!1,closeTime:Date.now()}),"string"==typeof e)setTimeout((()=>{const t=document.querySelector(`.${RQ}[data-id="${e}"]`);t&&t.focus()}),1e3);else{const e=document.querySelector(`.${IQ}`);e&&(e.classList.remove(IQ),setTimeout((()=>{e.focus()}),50))}}render(){const{titleData:e,popover:t,translator:n,disabled:r,isDimension:i,padding:o,minWidth:a,hasAlternative:s,supportConditional:l}=this.props,c={flex:"1 1 auto",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",fontWeight:"normal",lineHeight:"normal",...this.props.style},u=e.breadcrumbs.length,d=r||this.state.inSelection,f=e.breadcrumbs.map(((t,n)=>q_.createElement(_Q,{style:{display:"flex",alignItems:"center",color:d&&"rgba(89, 89, 89, 0.8)",pointerEvents:d?"none":"auto",paddingTop:0,paddingBottom:0,height:"100%"},key:n,onClick:()=>d?void 0:e.drillUp(u-n),title:t},q_.createElement("span",{style:c},t),q_.createElement(kQ,Y_({},L_,{size:"small",style:{margin:"0 8px"}}))))),h=l?this.state.hasValidAlternatives:s,p=t&&!this.state.open?this.openPopover:this.closePopover,m=!t||r||this.state.inSelection,g={display:"flex",alignItems:"center",width:"100%",color:m&&"rgba(89, 89, 89, 0.8)",height:"100%",border:!i&&m&&"none",paddingTop:0,paddingBottom:0};this.state.open&&(g.background="rgba(0,0,0,0.08)");o&&(g.padding=o),a&&(g.minWidth=a);const y=_.detectTextDirection(e.text),v=q_.createElement(_Q,{"aria-label":n.get(`Accessibility.${t&&h?"Alternative":"Normal"}.Instructions`,[e.text]),style:g,onClick:m?void 0:p,title:e.text,tabIndex:m?-1:0,onFocus:m?void 0:e=>{e.currentTarget.style.boxShadow="0px 0px 0px 2px #177FE6 inset",e.currentTarget.style.borderRadius="2px"},onBlur:m?void 0:e=>{e.currentTarget.style.boxShadow="none",e.currentTarget.style.borderRadius="0px"},onMouseDown:e=>{e.preventDefault()},className:`${RQ} ${e.id}`,"data-id":e.id},e.locked&&q_.createElement(kQ,Y_({},I_,{size:"small",title:n.get("Tooltip.selections.locked")})),q_.createElement("span",{style:c,dir:y},e.text),t&&h&&q_.createElement(kQ,Y_({},P_,{size:"small",style:{margin:"0 8px"}})));return q_.createElement(q_.Fragment,null,e.icon&&e.icon.onClick&&q_.createElement(PQ,{variant:"outlined",onClick:e.icon.onClick,disabled:!e.icon.onClick},q_.createElement(kQ,Y_({},e.icon.path,{size:"small",title:n.get(e.icon.tooltip)}))),e.icon&&!e.icon.onClick&&q_.createElement(kQ,Y_({},e.icon.path,{size:"small",title:n.get(e.icon.tooltip),style:{margin:"0 4px 0 0"}})),f,q_.createElement("div",{ref:this.alignToRef,style:{overflow:"hidden",pointerEvents:h?"auto":"none",height:"100%"}},v),t&&h&&q_.createElement(qQ,{dock:t.dock,dir:t.dir,current:e.popoverText,alignTo:this.alignToRef.current,show:this.state.open,list:this.state.alternatives,onClose:this.closePopover,changeTo:this.changeTo,instruction:n.get("Accessibility.Popover.Instructions")}))}}function zQ(e){return{top:"bottom",bottom:"top",left:"right",right:"left"}[e]}function FQ(e){function t(e){return!e.isDimension&&M.getValue(e,"hyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures.length")>0}return{renderer:"react",disableTriggers:!0,preferredSize:function(){const{height:n}=e.measureText({text:"M",fontSize:this.style.fontSize,fontFamily:this.style.fontFamily});return this.settings.settings.isDimension||t(this.settings.settings)?Math.max(28,n):Math.max(20,n)},render(){const{settings:{app:e,disabled:n,explicitItemInfos:r,hyperCube:i,hyperCubeDef:o,isDimension:a,minWidth:s,model:l,onChangeToAlternative:c,padding:u,rtl:d,selections:f,skipAttributeExpressions:h,translator:p,supportConditional:m=!1},layout:{dock:g}}=this.settings,y="top"!==g&&"bottom"!==g||!d?"ltr":"rtl",v=function(e,t){const n={pointerEvents:"auto",display:"flex",justifyContent:"center",alignItems:"center",height:"100%"};return"left"===e?(n.width=`${t.height}px`,n.height=`${t.width}px`,n.transform=`rotate(-90deg) translate(-${t.height}px, 0)`,n.transformOrigin="top left"):"right"===e&&(n.width=`${t.height}px`,n.height=`${t.width}px`,n.transform=`rotate(90deg) translate(0, -${t.width}px)`,n.transformOrigin="top left"),n}(g,this.rect),b=o&&o.qLayoutExclude&&o.qLayoutExclude.qHyperCubeDef,x=b&&b[a?"qDimensions":"qMeasures"]||[],S=r||i[a?"qDimensionInfo":"qMeasureInfo"],w=a?B_:U_,E=a?V_:W_,k=l&&l.colorSupport&&l.modifiers&&w({altList:x,app:e,dir:d?"rtl":"ltr",dock:zQ(g),model:l,onChange:c,skipAttributeExpressions:h,translator:p}),C=(T=this.settings.settings).isDimension&&M.getValue(T,"hyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions.length")>0||t(this.settings.settings);var T;const A=S.map(((e,t)=>{const r="number"==typeof e.explicitColumn?e.explicitColumn:t,i=E(e,r,l),o=t===S.length-1;return q_.createElement(q_.Fragment,{key:e.cId},q_.createElement(LQ,{popover:k,titleData:i,model:l,translator:p,selections:f,disabled:n(),style:this.style,isDimension:a,padding:u,minWidth:s,hasAlternative:C,supportConditional:m}),!o&&q_.createElement("span",{style:{lineHeight:"normal",...this.style}},", "))}));return q_.createElement("div",{style:v,dir:y},A)}}}LQ.propTypes={disabled:J_.bool.isRequired,padding:J_.string,minWidth:J_.string,titleData:J_.shape({breadcrumbs:J_.arrayOf(J_.string).isRequired,icon:J_.shape({path:J_.shape({d:J_.string.isRequired}),tooltip:J_.string.isRequired,onClick:J_.func}),index:J_.number.isRequired,locked:J_.bool.isRequired,text:J_.string.isRequired,popoverText:J_.string.isRequired,drillUp:J_.func,id:J_.string.isRequired}).isRequired,popover:J_.shape({dir:J_.string.isRequired,dock:J_.string.isRequired,changeTo:J_.func.isRequired,getAlternatives:J_.func.isRequired}),translator:J_.shape({get:J_.func.isRequired}).isRequired,selections:J_.shape({isActive:J_.func,addListener:J_.func,removeListener:J_.func}),style:J_.shape({fontSize:J_.string,color:J_.string,fontFamily:J_.string}).isRequired,isDimension:J_.bool.isRequired,hasAlternative:J_.bool.isRequired,supportConditional:J_.bool.isRequired},LQ.defaultProps={popover:null,selections:null,padding:"",minWidth:""};const jQ=function(){return VP.apply(void 0,arguments)}({palette:{text:{primary:"rgba(89, 89, 89, 0.8)",secondary:"rgba(0, 0, 0, 0.55)",disabled:"rgba(0, 0, 0, 0.3)"},action:{disabled:"rgba(0, 0, 0, 0.3)"}},typography:{fontFamily:'"Source Sans Pro", "Arial", "sans-serif"',button:{textTransform:"initial",fontWeight:400}},shape:{borderRadius:2},shadows:["none","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)"],props:{MuiButtonBase:{disableRipple:!0}}});const $Q=YP({productionPrefix:"q6189",disableGlobal:!0,seed:""});function HQ(){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",rJ.render(function(e,t){return q_.createElement(WF,{generateClassName:t},q_.createElement(Lj,{theme:jQ},e))}(e,$Q),r),!0},itemsAt:()=>[],findShapes:()=>[],clear:()=>(r&&rJ.unmountComponentAtNode(r),o),destroy(){r&&r.parentElement&&(rJ.unmountComponentAtNode(r),r.parentElement.removeChild(r)),r=null},size:t=>(t&&(i=e(t)),i)};return o}}function BQ(){return function(e){e.renderer("react",HQ()),e.component("data-title",FQ(e.renderer("svg")())),e.component("disclaimer",function(){class e extends q_.Component{render(){const{label:e,spanStyle:t}=this.props;return q_.createElement(q_.Fragment,null,q_.createElement("span",{ref:this.alignToRef,style:t,title:e},e))}}return e.propTypes={label:J_.string.isRequired,spanStyle:J_.shape().isRequired},{renderer:"react",disableTriggers:!0,preferredSize:function(){return 22},render(){const{settings:{label:t,rtl:n},layout:{dock:r},style:i={}}=this.settings,o="top"!==r&&"bottom"!==r||!n?"ltr":"rtl",a=function(e,t,n){const r={pointerEvents:"auto",display:"flex",justifyContent:"center",alignItems:"center",color:"#7b7a78",fontStyle:"italic",fontSize:"13px",fontFamily:e.fontFamily||'"Source Sans Pro", "Arial", "sans-serif"'};switch(t){case"left":r.width=`${n.height}px`,r.transform=`rotate(-90deg) translate(-${n.height}px, 0)`,r.transformOrigin="top left";break;case"right":r.width=`${n.height}px`,r.transform=`rotate(90deg) translate(0, -${n.width}px)`,r.transformOrigin="top left";break;case"center":r.width=`${n.width}px`,r.height=`${n.height}px`,r.color="#595959",r.fontStyle="normal",r.fontSize="1.2em",r.textAlign="center";break;default:r.justifyContent="flex-start",r.alignItems="flex-start"}return r}(i,r,this.rect),s="center"===r?t:`* ${t}`,l="center"!==r?{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}:{};return q_.createElement("div",{style:a,dir:o},q_.createElement(q_.Fragment,null,q_.createElement(e,{label:s,spanStyle:l})))}}}())}}function VQ(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:VQ(i,t,n)},i}function UQ(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),VQ(i,a,l,e.invert)}))}const WQ={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",c=r,u=i,d=t<.5?90:-90;return o&&(s="y",l="x",c=i,u=r,d=t<.5?180:0),a(f({},e,{[s]:n*c,[l]:u-Math.max(e.size/2,Math.min(t*u,u-e.size/2)),startAngle:d}))}};function YQ({i:e,width:t,height:n,resolved:r,keys:i,flipXY:o,calcKey:a="box"}){let s,l=null,c=null;void 0!==r.major.settings.binStart?(l=r.major.items[e].binStart,c=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 u=0;s?s.bandwidth?(u=s.bandwidth(),l-=u/2):u=c-l:u=1;const d=f({},{major:l,majorEnd:c},r.minor.items[e]);i.forEach((t=>{d[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:u,width:d[a].width,minWidthPx:d[a].minWidthPx,maxWidthPx:d[a].maxWidthPx,maxMajorWidth:h}),m=(u-p)/2,g=m+d.major+p/2;return{item:d,boxCenter:g,boxWidth:p,boxPadding:m,rendWidth:t,rendHeight:n}}function XQ({keys:e,data:t,defaultSettings:n,style:r,settings:i,width:o,height:a,resolver:s}){const l=f(!0,{},n||{},r||{}),c={major:"horizontal"===i.orientation?a:o,minor:"horizontal"===i.orientation?o:a},u=i.major;let d;d="object"==typeof u&&"object"==typeof u.ref&&void 0!==u.ref.start&&void 0!==u.ref.end?s.resolve({data:t,defaults:{start:0,end:1},scaled:c,settings:f(!0,{},{binStart:{scale:i.major.scale,ref:i.major.ref.start},binEnd:{scale:i.major.scale,ref:i.major.ref.end}})}):"object"==typeof u&&void 0!==u.binStart&&void 0!==u.binEnd?s.resolve({data:t,defaults:{start:0,end:1},scaled:c,settings:f(!0,{},{binStart:{scale:i.major.scale,ref:"binStart"},binEnd:{scale:i.major.scale,ref:"binEnd"}},i.major)}):s.resolve({data:t,scaled:c,defaults:{major:.5},settings:{major:i.major}});const h=i.minor||{};let p;const m={major:d,minor:s.resolve({data:t,defaults:{start:0,end:1},scaled:c,settings:f(!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:c});return m}const GQ=["oob"];const KQ={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=XQ({keys:GQ,data:i,defaultSettings:{oob:WQ.getDefaultSettings()},style:o,settings:this.settings.settings,width:e,height:t,resolver:a}),{settings:c,items:u}=l,d=function({width:e,height:t,flipXY:n,resolved:r,keys:i,symbol:o,dockValue:a,_calcItemRenderingOpts:s=YQ}){const l=[],{items:c}=r.major;for(let u=0,d=c.length;u<d;u++){const{item:d,boxCenter:f,rendWidth:h,rendHeight:p}=s({i:u,width:e,height:t,resolved:r,keys:i,flipXY:n,calcKey:"oob"}),m=c[u].data,g=[];if(d.oob.show){g.push(WQ.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:g};l.push(e)}}return l}({items:u,settings:c,width:e,height:t,flipXY:r,resolved:l,keys:GQ,symbol:s,dockValue:n});return d}},JQ={size:25,hat:{show:!0,fill:"#999",stroke:"#000",strokeWidth:0,strokeLinejoin:"miter",width:1,maxWidthPx:void 0,minWidthPx:1,minHeightPx:1,alignment:0}},QQ=["hat"];function ZQ(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 eZ({item:e,boxWidth:t,boxPadding:n,rendWidth:r,rendHeight:i,flipXY:o}){let a="x",s="y",l=r,c=i,u=e.hat.alignment||0;o&&(a="y",s="x",l=i,c=r,u=1-u);const d=(n+e.major)*l;let h=[{[a]:d,[s]:0+c},{[a]:d+t*u*l,[s]:8},{[a]:d+t*l,[s]:0+c},{[a]:d+t*l,[s]:0+c+10},{[a]:d,[s]:0+c+10}];const p=f({},e.hat,{type:"path",d:ZQ(h)});h=[{[a]:d,[s]:0},{[a]:d+t*(1-u)*l,[s]:0+c-8},{[a]:d+t*l,[s]:0},{[a]:d+t*l,[s]:-10},{[a]:d,[s]:-10}];return[p,f({},e.hat,{type:"path",d:ZQ(h)})]}const tZ={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=XQ({keys:QQ,data:r,defaultSettings:JQ,style:i,settings:this.settings.settings,width:e,height:t,resolver:o}),{settings:s,items:l}=a,c=function({width:e,height:t,flipXY:n,resolved:r,keys:i,_calcItemRenderingOpts:o=YQ}){const a=[],{items:s}=r.major;for(let l=0,c=s.length;l<c;l++){const{item:c,boxWidth:u,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=[];c.hat.show&&m.push(...eZ({item:c,boxWidth:u,boxPadding:d,rendWidth:f,rendHeight:h,flipXY:n}));const g={type:"container",data:p,collider:{type:"bounds"},children:m};a.push(g)}return a}({items:l,settings:s,width:e,height:t,flipXY:n,resolved:a,keys:QQ});return c}};var nZ={UNCLASSIFIED:"unclassified",EQUAL_EQUAL:"equal-equal",EQUAL_HIGHER:"equal-higher",EQUAL_LOWER:"equal-lower",EQUAL_VOID:"equal-void",HIGHER_EQUAL:"higher-equal",HIGHER_HIGHER_ACUTE:"higher-higher-acute",HIGHER_HIGHER_OBTUSE:"higher-higher-obtuse",HIGHER_LOWER_NEGATIVE:"higher-lower-negative",HIGHER_LOWER_POSITIVE:"higher-lower-positive",HIGHER_VOID:"higher-void",LOWER_EQUAL:"lower-equal",LOWER_HIGHER_NEGATIVE:"lower-higher-negative",LOWER_HIGHER_POSITIVE:"lower-higher-positive",LOWER_LOWER_ACUTE:"lower-lower-acute",LOWER_LOWER_OBTUSE:"lower-lower-obtuse",LOWER_VOID:"lower-void",VOID_EQUAL:"void-equal",VOID_HIGHER:"void-higher",VOID_LOWER:"void-lower",VOID_VOID:"void-void"};function rZ(e,t){return Math.atan2(t.y-e.y,t.x-e.x)*(180/Math.PI)}function iZ(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 oZ({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?nZ.EQUAL_EQUAL:i<o?nZ.EQUAL_HIGHER:nZ.EQUAL_LOWER:i===o?r>i?nZ.HIGHER_EQUAL:nZ.LOWER_EQUAL:r>i?i<o?iZ(e,t,n)>90?nZ.HIGHER_HIGHER_OBTUSE:nZ.HIGHER_HIGHER_ACUTE:rZ(e,t)>rZ(e,n)?nZ.HIGHER_LOWER_POSITIVE:nZ.HIGHER_LOWER_NEGATIVE:i>o?iZ(e,t,n)>90?nZ.LOWER_LOWER_OBTUSE:nZ.LOWER_LOWER_ACUTE:rZ(e,t)>rZ(e,n)?nZ.LOWER_HIGHER_POSITIVE:nZ.LOWER_HIGHER_NEGATIVE:r===i?nZ.EQUAL_VOID:r>i?nZ.HIGHER_VOID:nZ.LOWER_VOID:i===o?nZ.VOID_EQUAL:i<o?nZ.VOID_HIGHER:nZ.VOID_LOWER:nZ.VOID_VOID}function aZ({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 sZ={X:1,Y:0};function lZ({node:e,line:t,groupIndex:n,extract:r,style:i,measureText:o,size:a,horizontal:s,rtl:l,meta:c,showLabel:u}){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),g={x:h.x+h.width/2,y:h.y+h.height/2,width:f.width+2*sZ.X,height:f.height+2*sZ.Y},y=`${g.x}-${g.y}`,v=!s&&!l,b=s?a.height:a.width,x=(s?g.y:g.x)/b,S=(v?1-x:x)<=(b<=200?.25:.1),w={key:y,node:e,line:t,group:n,value:m,labelMeasurements:f,bounds:g,inside:aZ({bounds:h,size:a}),border:p?p/2:0,classification:nZ.UNCLASSIFIED,setClassification(e){w.classification=e},preferences:[],setPreferences(e){w.preferences.push(...e)},placement:void 0,setPlacement(e){w.placement=e},duplicate:!1,setDuplicate(){w.duplicate=!0},extreme:c.getExtreme(y),elite:S,show:u(e)};return w}function cZ({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}),c=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,c)=>{const u=e.map((e=>({line:e.line,item:lZ({node:e.node,line:e.line,groupIndex:c,extract:t,style:n,measureText:r,size:i,horizontal:o,rtl:a,meta:l,showLabel:s})}))).filter((e=>e.item));return u.reduce(((e,t)=>(e[t.line]=t.item,e)),{})}));return c.filter((e=>Object.keys(e).length))}var uZ={TOP:"top",TOP_RIGHT:"top-right",RIGHT:"right",BOTTOM_RIGHT:"bottom-right",BOTTOM:"bottom",BOTTOM_LEFT:"bottom-left",LEFT:"left",TOP_LEFT:"top-left"},dZ={[nZ.EQUAL_EQUAL]:[uZ.TOP,uZ.BOTTOM],[nZ.EQUAL_HIGHER]:[uZ.BOTTOM,uZ.BOTTOM_RIGHT],[nZ.EQUAL_LOWER]:[uZ.TOP,uZ.TOP_RIGHT],[nZ.EQUAL_VOID]:[uZ.TOP,uZ.BOTTOM],[nZ.HIGHER_EQUAL]:[uZ.LEFT,uZ.BOTTOM_LEFT,uZ.TOP,uZ.TOP_RIGHT],[nZ.HIGHER_HIGHER_ACUTE]:[uZ.BOTTOM,uZ.BOTTOM_LEFT,uZ.LEFT,uZ.TOP_RIGHT],[nZ.HIGHER_HIGHER_OBTUSE]:[uZ.BOTTOM,uZ.TOP],[nZ.HIGHER_LOWER_NEGATIVE]:[uZ.TOP,uZ.TOP_RIGHT,uZ.RIGHT],[nZ.HIGHER_LOWER_POSITIVE]:[uZ.BOTTOM,uZ.BOTTOM_LEFT,uZ.LEFT],[nZ.HIGHER_VOID]:[uZ.TOP],[nZ.LOWER_EQUAL]:[uZ.TOP],[nZ.LOWER_HIGHER_NEGATIVE]:[uZ.TOP,uZ.TOP_LEFT],[nZ.LOWER_HIGHER_POSITIVE]:[uZ.BOTTOM_RIGHT],[nZ.LOWER_LOWER_ACUTE]:[uZ.TOP,uZ.TOP_LEFT,uZ.LEFT,uZ.TOP_RIGHT,uZ.RIGHT],[nZ.LOWER_LOWER_OBTUSE]:[uZ.TOP,uZ.BOTTOM],[nZ.LOWER_VOID]:[uZ.TOP],[nZ.VOID_EQUAL]:[uZ.TOP],[nZ.VOID_HIGHER]:[uZ.TOP,uZ.BOTTOM],[nZ.VOID_LOWER]:[uZ.TOP,uZ.BOTTOM,uZ.LEFT],[nZ.VOID_VOID]:[uZ.TOP]};function fZ({nodes:e,extract:t,style:n,measureText:r,size:i,horizontal:o,rtl:a,showLabel:s}){const l=cZ({nodes:e,extract:t,style:n,measureText:r,size:i,horizontal:o,rtl:a,showLabel:s}),c=[...l.reduce(((e,t)=>(e.push(...Object.keys(t).map((e=>t[e]))),e)),[])],[u]=c,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,c=s.y1-s.y2;Math.sqrt(l*l+c*c)>t&&o.push(s)}return o}({groups:l,threshold:u.node.localBounds.height}),f={getItems:()=>c,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=oZ({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(dZ[e.classification]))),f}function hZ({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 pZ({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 mZ({candidate:e,lines:t,rects:n}){const r=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})));return!!r||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 pZ({line1:e,line2:{x1:n.x,y1:n.y,x2:r.x,y2:r.y}})||pZ({line1:e,line2:a})||pZ({line1:e,line2:s})||pZ({line1:e,line2:l})}({line:t,rect:e})))}const gZ={x:0,width:0,y:0,height:0};const yZ=({item:e})=>({x:e.bounds.x-e.bounds.width/2,y:e.bounds.y-e.bounds.height-e.node.localBounds.height/2-e.border}),vZ=({item:e})=>({x:e.bounds.x,y:e.bounds.y-e.bounds.height-e.node.localBounds.height/2-e.border}),bZ=({item:e})=>({x:e.bounds.x+e.node.localBounds.width/2+e.border,y:e.bounds.y-e.bounds.height/2}),xZ=({item:e})=>({x:e.bounds.x,y:e.bounds.y+e.node.localBounds.height/2+e.border}),SZ=({item:e})=>({x:e.bounds.x-e.bounds.width/2,y:e.bounds.y+e.node.localBounds.height/2+e.border}),wZ=({item:e})=>({x:e.bounds.x-e.bounds.width,y:e.bounds.y+e.node.localBounds.height/2+e.border}),MZ=({item:e})=>({x:e.bounds.x-e.bounds.width-e.node.localBounds.width/2-e.border,y:e.bounds.y-e.bounds.height/2}),EZ=({item:e})=>({x:e.bounds.x-e.bounds.width,y:e.bounds.y-e.bounds.height-e.node.localBounds.height/2-e.border});var kZ={X:2.5,Y:4};const CZ=[uZ.TOP,uZ.TOP_LEFT,uZ.TOP_RIGHT],TZ=[uZ.BOTTOM,uZ.BOTTOM_LEFT,uZ.BOTTOM_RIGHT];function AZ({position:e}){const t={x:kZ.X,width:-2*kZ.X,y:0,height:0},n=CZ.indexOf(e)>-1,r=TZ.indexOf(e)>-1;return n&&(t.y=kZ.Y,t.height=-kZ.Y),r&&(t.height=-kZ.Y),t}function OZ({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 NZ({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}const qZ=15;function DZ({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+=qZ){const a=NZ({coordinates:OZ({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-=qZ){const a=NZ({coordinates:OZ({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 RZ=void 0;function IZ({item:e,validator:t,force:n=!1}){const r=[...e.preferences,...Object.keys(uZ).map((e=>uZ[e])).filter((t=>-1===e.preferences.indexOf(t)))],i={[uZ.TOP]:yZ,[uZ.TOP_RIGHT]:vZ,[uZ.RIGHT]:bZ,[uZ.BOTTOM_RIGHT]:xZ,[uZ.BOTTOM]:SZ,[uZ.BOTTOM_LEFT]:wZ,[uZ.LEFT]:MZ,[uZ.TOP_LEFT]:EZ},o=[];for(let a=0;a<r.length;a++){const s=r[a],l=i[s]({item:e}),c=AZ({position:s}),u=t({item:e,placement:l,adjustment:c,ignoreLines:n});if(n&&u.inside&&o.push(l),u.valid)return l}const a=()=>DZ({item:e,validator:t,force:n});if(n){const e=a();return e||(o[0]||RZ)}return(e.extreme||e.elite)&&a()||RZ}function _Z({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 c=function({size:e,lines:t,placements:n}){return function({item:r,placement:i,adjustment:o=gZ,ignoreLines:a=!1}){const s={inside:hZ({item:r,placement:i,size:e}),collides:!0,valid:!1};return s.inside?(s.collides=mZ({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}),u=IZ({item:e,validator:c});u?(u.height=e.bounds.height,u.width=e.bounds.width,o.push(u),e.setPlacement(u)):n&&a.push({item:e,validator:c})})),a.forEach((e=>{const{item:t,validator:n}=e,r=IZ({item:t,validator:n,force:!0});r&&(r.height=t.bounds.height,r.width=t.bounds.width,o.push(r),t.setPlacement(r))}))}var PZ={require:["chart","renderer"],defaultSettings:{settings:{orientation:"horizontal",rtl:!1,connect:!1,all:!1,label:()=>{},showLabel:()=>!0,pointValue:()=>{},majorValue:()=>{},target:{point:"point-component",allPoints:[]},lineIndex:"line",insideStrategy:"edge",labelSpace:{use:()=>!1,size:10}},style:{fontFamily:'"Source Sans Pro", "Arial", "sans-serif"',fontSize:"12px",fill:"#333"}},preferredSize(){const e={edgeBleed:{top:0,right:0,left:0}},{orientation:t,rtl:n,labelSpace:r}=this.settings.settings,{use:i,size:o}=r;if(i()){const r="horizontal"===t;e.edgeBleed.top=r?o:0,e.edgeBleed[n?"left":"right"]=r?0:o}return e},render(){const{settings:e}=this.settings,{target:t,enabled:n}=e;if(!this.chart.component(t.point))return[];if("function"==typeof n&&!n())return[];const{allPoints:r}=t,i=r.length?e=>r.includes(e.key):e=>e.key===t.point,o=this.chart.findShapes("circle").filter(i);if(!o.length)return[];const a="horizontal"===e.orientation,s=a?"x":"y";o.sort(((e,t)=>e.localBounds[s]-t.localBounds[s]));const l={label:e.label,pointValue:e.pointValue,majorValue:e.majorValue,lineIndex:e.lineIndex},{height:c,width:u,edgeBleed:d}=this.rect,f={height:c,width:u,edgeBleed:d,insideStrategy:e.insideStrategy},{style:h}=this,p=fZ({nodes:o,extract:l,style:h,measureText:this.renderer.measureText,size:f,horizontal:a,rtl:e.rtl,showLabel:e.showLabel});return function({model:e}){e.getItems().sort(((e,t)=>e.extreme===t.extreme?0:e.extreme&&!t.extreme?-1:1))}({model:p}),_Z({model:p,size:f,all:e.all}),p.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:h.fontSize,fontFamily:h.fontFamily,fill:h.fill,text:l.label(e.node.data),data:e.node.data.value,baseline:"central",anchor:"middle"})))}},LZ={defaultSettings:{settings:{size:10}},preferredSize(){return this.settings.settings.size},render:()=>[]};var zZ={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,c=this.settings.settings.primaryExtremum(),u=this.settings.settings.secondaryExtremum(),d=s.length&&void 0!==c,f=l.length&&void 0!==u;if(!d&&!f)return[];const h=s.map((e=>e.ref)),p=l.map((e=>e.ref)),m=e.filter((e=>h.includes(e.end.source.field))),g=e.filter((e=>p.includes(e.end.source.field))),y=function({type:e,primaryExtremum:t,secondaryExtremum:n,primaryItems:r=[],secondaryItems:i=[],primarySeries:o=[],secondarySeries:a=[]}){const s=[];[...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}))}));const 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)),[])});return l}({type:t,primaryExtremum:c,secondaryExtremum:u,primaryItems:m,secondaryItems:g,primarySeries:s,secondarySeries:l});if(!y.length)return[];const v="horizontal"===n,b=this.rect[v?"width":"height"],x=this.resolver.resolve({data:{items:y},settings:{major:a},scaled:{major:b}}),S=("max"===t?90:-90)-(v?0:90)-(!v&&r?180:0),w=o/2*i,{fill:M}=this.settings.style,E=x.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:S,x:v?b*e.major:w,y:v?w:b*e.major,data:e.data})));return E}};function FZ({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 jZ({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))],i=e.findShapes("path").filter((e=>r.some((t=>t===e.key))));return i.reduce(((e,n)=>{const r=t.primary.some((e=>e.key===n.key))?e.primary:e.secondary;return r.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 $Z({brush:e}){const t=e.brush.values();return function({value:e}){return-1!==t.indexOf(e)}}function HZ({brush:e,chart:t}){const n=e.brush.ranges();if(!n.length)return!1;const r=t&&t.scale(Ld.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 BZ({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:c,legendTap:u}=t,d=0===s.id.indexOf("qHyperCube/qMeasureInfo/")?"qHyperCube/qMeasureInfo/X":s.id;let f=[c?e=>e.color.value:r[d]].filter(Boolean);if(i&&l&&f.push((e=>e.color.value)),!i&&u&&(f=[e=>e.color.value]),!f.length)return[];const h=function({brush:e,chart:t}){return("value"===e.type?$Z:HZ)({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 VZ({chart:e,selected:t,connection:n,gradient:r,fallback:i}){const o=e.scale(Ld.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),c=l-s,u=0===c?1:c,d=o.domain().map((e=>({color:o(Math.min(l,Math.max(s,e)))||i,offset:Math.min(1,Math.max(0,(e-s)/u))}))),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 UZ({chart:e,selected:t,connection:n,gradient:r,fallback:i}){const o=e.scale(Ld.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,c=0===l?1:l,u=o.domain(),d=[];for(let e=0;e<u.length-1;e++){const t=u[e],n=o(t)||i;d.push({color:n,offset:Math.min(1,Math.max(0,(t-s)/c))});const r=u[e+1];d.push({color:n,offset:Math.min(1,Math.max(0,(r-s)/c))})}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 WZ({property:e,chart:t,connection:n,attrs:r,colorSettings:i,colorByData:o,selected:a,hasMultipleMeasures:s,groupedByMeasure:l,itemsPerGroup:c,orientation:u,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:c}){const u=e.scale(Ld.SCALE.MAJOR),d=e.scale(Ld.SCALE.COLOR),f=s?e=>u([e,0])+u.bandwidth()*l/2:e=>u(e),h=t.filter((e=>-1!==n.indexOf(e.index))),p=("vertical"===o&&c?h.reverse():h).map((e=>e.item)),m=p.map((e=>f(e.major.value))),g=Math.min(...m),y=Math.max(...m)-g,v=0===y?1:y,b=m.map(((e,t)=>0===t?0:t===m.length-1?1:(e-g)/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:u,isColorCode:"color"===h,groupedByMeasure:l,itemsPerGroup:c,rtl:d});return("continuous"===h?VZ:UZ)({chart:t,selected:a,connection:n,gradient:f,fallback:p})}function YZ({chart:e,pathModel:t,colorSettings:n,colorByData:r,hasMultipleMeasures:i,groupedByMeasure:o,itemsPerGroup:a,orientation:s,lineKey:l,primary:c,selected:u,connections:d,rtl:f,count:h}){const p=t.getLine(l,c),{attrs:m}=p,g=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:c,attrs:u,rtl:d,count:f}){const h=l.map(((e,t)=>{const n=c[e];return 0!==t||"M"===n.letter?n.raw:`M${n.x},${n.y}`})).join("");return{path:h,attrs:u,stroke:WZ({property:"stroke",chart:e,connection:l,attrs:u,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:u,connection:t,commands:g,attrs:m,rtl:f,count:h})))}function XZ({chart:e,pathModel:t,seriesInfo:n,brush:r,selectionInfo:i,items:o,selectionValues:a,colorSettings:s,colorByData:l,hasMultipleMeasures:c,groupedByMeasure:u,itemsPerGroup:d,orientation:f,rtl:h}){const p=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}),m=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:p,seriesInfo:n}),{lines:g}=m.reduce(((n,o)=>{const p=BZ({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(...YZ({chart:e,pathModel:t,colorSettings:s(o.measureIx),colorByData:l(o.measureIx),hasMultipleMeasures:c,groupedByMeasure:u,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 g.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 GZ={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:jZ({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=XZ({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=jZ({chart:this.chart,seriesInfo:this.settings.settings.seriesInfo}),this.state.selectionInfo=this.settings.settings.getSelectionInfo();return XZ({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 KZ=()=>{const e=XD();return e.use(_I),e.use(function(e){if("function"!=typeof e.interaction)return t=>{t.interaction("hammer",zI(e))};e.interaction("hammer",zI(Hammer))}(vy)),e.use(UQ),e.use(BQ()),e.component("scrollbar",Yf),e.component("point-label",PZ),e.component("label-space",LZ),e.component("time-axis",Yg.picassoComponents.timeAxis),e.component("axis-overlay",Yg.picassoComponents.axisOverlay),e.component("reference-line-labels",Zo),e.component("box-sliced-hat",tZ),e.component("box-out-of-bounds",KQ),e.component("data-out-of-bounds-marker",zZ),e.component("scroll-hint",eo),e.component("brush-highlighter",GZ),e.scale("time",Yg.picassoScales.time),e.symbol("line-point",FZ),e};const JZ={line:"bar",circle:"circle",diamond:"diamond",triangle:"triangle",rect:"square"},QZ=e=>void 0===e.marker?JZ.circle:JZ[e.marker],ZZ=e=>void 0===e.markerFill||e.markerFill;function e0({series:e,layoutService:t}){switch(em(e)){case zd.TYPE.MARKER:return(e=>({marker:QZ(e),fill:ZZ(e)}))(e);case zd.TYPE.LINE:return(e=>{const t=e.getLayoutValue("nullMode","gap");return{showAsGaps:"gap"===t,showAsConnections:"connect"===t,showAsZeros:"zero"===t}})(t);case zd.TYPE.BAR:return{showAsZeros:!0};default:return{}}}function t0(e=zd.NOPE_SERIES,t){return t?e.axis===zd.AXIS.PRIMARY:e.axis===zd.AXIS.PRIMARY||em(e)===zd.TYPE.BAR}var n0={exports:{}};var r0={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||9007199254740991,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2};const i0="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};var o0=i0;!function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:i}=r0,o=o0,a=(t=e.exports={}).re=[],s=t.safeRe=[],l=t.src=[],c=t.t={};let u=0;const d="[a-zA-Z0-9-]",f=[["\\s",1],["\\d",i],[d,r]],h=(e,t,n)=>{const r=(e=>{for(const[t,n]of f)e=e.split(`${t}*`).join(`${t}{0,${n}}`).split(`${t}+`).join(`${t}{1,${n}}`);return e})(t),i=u++;o(e,i,t),c[e]=i,l[i]=t,a[i]=new RegExp(t,n?"g":void 0),s[i]=new RegExp(r,n?"g":void 0)};h("NUMERICIDENTIFIER","0|[1-9]\\d*"),h("NUMERICIDENTIFIERLOOSE","\\d+"),h("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${d}*`),h("MAINVERSION",`(${l[c.NUMERICIDENTIFIER]})\\.(${l[c.NUMERICIDENTIFIER]})\\.(${l[c.NUMERICIDENTIFIER]})`),h("MAINVERSIONLOOSE",`(${l[c.NUMERICIDENTIFIERLOOSE]})\\.(${l[c.NUMERICIDENTIFIERLOOSE]})\\.(${l[c.NUMERICIDENTIFIERLOOSE]})`),h("PRERELEASEIDENTIFIER",`(?:${l[c.NUMERICIDENTIFIER]}|${l[c.NONNUMERICIDENTIFIER]})`),h("PRERELEASEIDENTIFIERLOOSE",`(?:${l[c.NUMERICIDENTIFIERLOOSE]}|${l[c.NONNUMERICIDENTIFIER]})`),h("PRERELEASE",`(?:-(${l[c.PRERELEASEIDENTIFIER]}(?:\\.${l[c.PRERELEASEIDENTIFIER]})*))`),h("PRERELEASELOOSE",`(?:-?(${l[c.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${l[c.PRERELEASEIDENTIFIERLOOSE]})*))`),h("BUILDIDENTIFIER",`${d}+`),h("BUILD",`(?:\\+(${l[c.BUILDIDENTIFIER]}(?:\\.${l[c.BUILDIDENTIFIER]})*))`),h("FULLPLAIN",`v?${l[c.MAINVERSION]}${l[c.PRERELEASE]}?${l[c.BUILD]}?`),h("FULL",`^${l[c.FULLPLAIN]}$`),h("LOOSEPLAIN",`[v=\\s]*${l[c.MAINVERSIONLOOSE]}${l[c.PRERELEASELOOSE]}?${l[c.BUILD]}?`),h("LOOSE",`^${l[c.LOOSEPLAIN]}$`),h("GTLT","((?:<|>)?=?)"),h("XRANGEIDENTIFIERLOOSE",`${l[c.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),h("XRANGEIDENTIFIER",`${l[c.NUMERICIDENTIFIER]}|x|X|\\*`),h("XRANGEPLAIN",`[v=\\s]*(${l[c.XRANGEIDENTIFIER]})(?:\\.(${l[c.XRANGEIDENTIFIER]})(?:\\.(${l[c.XRANGEIDENTIFIER]})(?:${l[c.PRERELEASE]})?${l[c.BUILD]}?)?)?`),h("XRANGEPLAINLOOSE",`[v=\\s]*(${l[c.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[c.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[c.XRANGEIDENTIFIERLOOSE]})(?:${l[c.PRERELEASELOOSE]})?${l[c.BUILD]}?)?)?`),h("XRANGE",`^${l[c.GTLT]}\\s*${l[c.XRANGEPLAIN]}$`),h("XRANGELOOSE",`^${l[c.GTLT]}\\s*${l[c.XRANGEPLAINLOOSE]}$`),h("COERCE",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?(?:$|[^\\d])`),h("COERCERTL",l[c.COERCE],!0),h("LONETILDE","(?:~>?)"),h("TILDETRIM",`(\\s*)${l[c.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",h("TILDE",`^${l[c.LONETILDE]}${l[c.XRANGEPLAIN]}$`),h("TILDELOOSE",`^${l[c.LONETILDE]}${l[c.XRANGEPLAINLOOSE]}$`),h("LONECARET","(?:\\^)"),h("CARETTRIM",`(\\s*)${l[c.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",h("CARET",`^${l[c.LONECARET]}${l[c.XRANGEPLAIN]}$`),h("CARETLOOSE",`^${l[c.LONECARET]}${l[c.XRANGEPLAINLOOSE]}$`),h("COMPARATORLOOSE",`^${l[c.GTLT]}\\s*(${l[c.LOOSEPLAIN]})$|^$`),h("COMPARATOR",`^${l[c.GTLT]}\\s*(${l[c.FULLPLAIN]})$|^$`),h("COMPARATORTRIM",`(\\s*)${l[c.GTLT]}\\s*(${l[c.LOOSEPLAIN]}|${l[c.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",h("HYPHENRANGE",`^\\s*(${l[c.XRANGEPLAIN]})\\s+-\\s+(${l[c.XRANGEPLAIN]})\\s*$`),h("HYPHENRANGELOOSE",`^\\s*(${l[c.XRANGEPLAINLOOSE]})\\s+-\\s+(${l[c.XRANGEPLAINLOOSE]})\\s*$`),h("STAR","(<|>)?=?\\s*\\*"),h("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),h("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}(n0,n0.exports);var a0=n0.exports;const s0=Object.freeze({loose:!0}),l0=Object.freeze({});var c0=e=>e?"object"!=typeof e?s0:e:l0;const u0=/^[0-9]+$/,d0=(e,t)=>{const n=u0.test(e),r=u0.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e<t?-1:1};var f0={compareIdentifiers:d0,rcompareIdentifiers:(e,t)=>d0(t,e)};const h0=o0,{MAX_LENGTH:p0,MAX_SAFE_INTEGER:m0}=r0,{safeRe:g0,t:y0}=a0,v0=c0,{compareIdentifiers:b0}=f0;var x0=class e{constructor(t,n){if(n=v0(n),t instanceof e){if(t.loose===!!n.loose&&t.includePrerelease===!!n.includePrerelease)return t;t=t.version}else if("string"!=typeof t)throw new TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>p0)throw new TypeError(`version is longer than ${p0} characters`);h0("SemVer",t,n),this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease;const r=t.trim().match(n.loose?g0[y0.LOOSE]:g0[y0.FULL]);if(!r)throw new TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>m0||this.major<0)throw new TypeError("Invalid major version");if(this.minor>m0||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>m0||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t<m0)return t}return e})):this.prerelease=[],this.build=r[5]?r[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(t){if(h0("SemVer.compare",this.version,this.options,t),!(t instanceof e)){if("string"==typeof t&&t===this.version)return 0;t=new e(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof e||(t=new e(t,this.options)),b0(this.major,t.major)||b0(this.minor,t.minor)||b0(this.patch,t.patch)}comparePre(t){if(t instanceof e||(t=new e(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let n=0;do{const e=this.prerelease[n],r=t.prerelease[n];if(h0("prerelease compare",n,e,r),void 0===e&&void 0===r)return 0;if(void 0===r)return 1;if(void 0===e)return-1;if(e!==r)return b0(e,r)}while(++n)}compareBuild(t){t instanceof e||(t=new e(t,this.options));let n=0;do{const e=this.build[n],r=t.build[n];if(h0("prerelease compare",n,e,r),void 0===e&&void 0===r)return 0;if(void 0===r)return 1;if(void 0===e)return-1;if(e!==r)return b0(e,r)}while(++n)}inc(e,t,n){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,n),this.inc("pre",t,n);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t,n),this.inc("pre",t,n);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":{const e=Number(n)?1:0;if(!t&&!1===n)throw new Error("invalid increment argument: identifier is empty");if(0===this.prerelease.length)this.prerelease=[e];else{let r=this.prerelease.length;for(;--r>=0;)"number"==typeof this.prerelease[r]&&(this.prerelease[r]++,r=-2);if(-1===r){if(t===this.prerelease.join(".")&&!1===n)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(e)}}if(t){let r=[t,e];!1===n&&(r=[t]),0===b0(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=r):this.prerelease=r}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};const S0=x0;var w0=(e,t,n=!1)=>{if(e instanceof S0)return e;try{return new S0(e,t)}catch(e){if(!n)return null;throw e}};const M0=w0;var E0=(e,t)=>{const n=M0(e,t);return n?n.version:null};const k0=w0;var C0=(e,t)=>{const n=k0(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null};const T0=x0;var A0=(e,t,n,r,i)=>{"string"==typeof n&&(i=r,r=n,n=void 0);try{return new T0(e instanceof T0?e.version:e,n).inc(t,r,i).version}catch(e){return null}};const O0=w0;var N0=(e,t)=>{const n=O0(e,null,!0),r=O0(t,null,!0),i=n.compare(r);if(0===i)return null;const o=i>0,a=o?n:r,s=o?r:n,l=!!a.prerelease.length;if(!!s.prerelease.length&&!l)return s.patch||s.minor?a.patch?"patch":a.minor?"minor":"major":"major";const c=l?"pre":"";return n.major!==r.major?c+"major":n.minor!==r.minor?c+"minor":n.patch!==r.patch?c+"patch":"prerelease"};const q0=x0;var D0=(e,t)=>new q0(e,t).major;const R0=x0;var I0=(e,t)=>new R0(e,t).minor;const _0=x0;var P0=(e,t)=>new _0(e,t).patch;const L0=w0;var z0=(e,t)=>{const n=L0(e,t);return n&&n.prerelease.length?n.prerelease:null};const F0=x0;var j0=(e,t,n)=>new F0(e,n).compare(new F0(t,n));const $0=j0;var H0=(e,t,n)=>$0(t,e,n);const B0=j0;var V0=(e,t)=>B0(e,t,!0);const U0=x0;var W0=(e,t,n)=>{const r=new U0(e,n),i=new U0(t,n);return r.compare(i)||r.compareBuild(i)};const Y0=W0;var X0=(e,t)=>e.sort(((e,n)=>Y0(e,n,t)));const G0=W0;var K0=(e,t)=>e.sort(((e,n)=>G0(n,e,t)));const J0=j0;var Q0=(e,t,n)=>J0(e,t,n)>0;const Z0=j0;var e1=(e,t,n)=>Z0(e,t,n)<0;const t1=j0;var n1=(e,t,n)=>0===t1(e,t,n);const r1=j0;var i1=(e,t,n)=>0!==r1(e,t,n);const o1=j0;var a1=(e,t,n)=>o1(e,t,n)>=0;const s1=j0;var l1=(e,t,n)=>s1(e,t,n)<=0;const c1=n1,u1=i1,d1=Q0,f1=a1,h1=e1,p1=l1;var m1=(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 c1(e,n,r);case"!=":return u1(e,n,r);case">":return d1(e,n,r);case">=":return f1(e,n,r);case"<":return h1(e,n,r);case"<=":return p1(e,n,r);default:throw new TypeError(`Invalid operator: ${t}`)}};const g1=x0,y1=w0,{safeRe:v1,t:b1}=a0;var x1,S1,w1,M1,E1,k1,C1,T1,A1,O1,N1=(e,t)=>{if(e instanceof g1)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=v1[b1.COERCERTL].exec(e))&&(!n||n.index+n[0].length!==e.length);)n&&t.index+t[0].length===n.index+n[0].length||(n=t),v1[b1.COERCERTL].lastIndex=t.index+t[1].length+t[2].length;v1[b1.COERCERTL].lastIndex=-1}else n=e.match(v1[b1.COERCE]);return null===n?null:y1(`${n[2]}.${n[3]||"0"}.${n[4]||"0"}`,t)};function q1(){if(M1)return w1;function e(t){var n=this;if(n instanceof e||(n=new e),n.tail=null,n.head=null,n.length=0,t&&"function"==typeof t.forEach)t.forEach((function(e){n.push(e)}));else if(arguments.length>0)for(var r=0,i=arguments.length;r<i;r++)n.push(arguments[r]);return n}function t(e,t,n){var r=t===e.head?new i(n,null,t,e):new i(n,t,t.next,e);return null===r.next&&(e.tail=r),null===r.prev&&(e.head=r),e.length++,r}function n(e,t){e.tail=new i(t,e.tail,null,e),e.head||(e.head=e.tail),e.length++}function r(e,t){e.head=new i(t,null,e.head,e),e.tail||(e.tail=e.head),e.length++}function i(e,t,n,r){if(!(this instanceof i))return new i(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}M1=1,w1=e,e.Node=i,e.create=e,e.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},e.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++}},e.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++}},e.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++)n(this,arguments[e]);return this.length},e.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++)r(this,arguments[e]);return this.length},e.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}},e.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}},e.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},e.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},e.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},e.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},e.prototype.map=function(t,n){n=n||this;for(var r=new e,i=this.head;null!==i;)r.push(t.call(n,i.value,this)),i=i.next;return r},e.prototype.mapReverse=function(t,n){n=n||this;for(var r=new e,i=this.tail;null!==i;)r.push(t.call(n,i.value,this)),i=i.prev;return r},e.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},e.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},e.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},e.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},e.prototype.slice=function(t,n){(n=n||this.length)<0&&(n+=this.length),(t=t||0)<0&&(t+=this.length);var r=new e;if(n<t||n<0)return r;t<0&&(t=0),n>this.length&&(n=this.length);for(var i=0,o=this.head;null!==o&&i<t;i++)o=o.next;for(;null!==o&&i<n;i++,o=o.next)r.push(o.value);return r},e.prototype.sliceReverse=function(t,n){(n=n||this.length)<0&&(n+=this.length),(t=t||0)<0&&(t+=this.length);var r=new e;if(n<t||n<0)return r;t<0&&(t=0),n>this.length&&(n=this.length);for(var i=this.length,o=this.tail;null!==o&&i>n;i--)o=o.prev;for(;null!==o&&i>t;i--,o=o.prev)r.push(o.value);return r},e.prototype.splice=function(e,n,...r){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var i=0,o=this.head;null!==o&&i<e;i++)o=o.next;var a=[];for(i=0;o&&i<n;i++)a.push(o.value),o=this.removeNode(o);null===o&&(o=this.tail),o!==this.head&&o!==this.tail&&(o=o.prev);for(i=0;i<r.length;i++)o=t(this,o,r[i]);return a},e.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{(S1?x1:(S1=1,x1=function(e){e.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}))(e)}catch(e){}return w1}function D1(){if(T1)return C1;T1=1;class e{constructor(t,n){if(n=r(n),t instanceof e)return t.loose===!!n.loose&&t.includePrerelease===!!n.includePrerelease?t:new e(t.raw,n);if(t instanceof i)return this.raw=t.value,this.set=[[t]],this.format(),this;if(this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease,this.raw=t.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map((e=>this.parseRange(e.trim()))).filter((e=>e.length)),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const e=this.set[0];if(this.set=this.set.filter((e=>!p(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&&m(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){const t=((this.options.includePrerelease&&f)|(this.options.loose&&h))+":"+e,r=n.get(t);if(r)return r;const a=this.options.loose,m=a?s[l.HYPHENRANGELOOSE]:s[l.HYPHENRANGE];e=e.replace(m,T(this.options.includePrerelease)),o("hyphen replace",e),e=e.replace(s[l.COMPARATORTRIM],c),o("comparator trim",e),e=e.replace(s[l.TILDETRIM],u),o("tilde trim",e),e=e.replace(s[l.CARETTRIM],d),o("caret trim",e);let g=e.split(" ").map((e=>y(e,this.options))).join(" ").split(/\s+/).map((e=>C(e,this.options)));a&&(g=g.filter((e=>(o("loose invalid filter",e,this.options),!!e.match(s[l.COMPARATORLOOSE]))))),o("range list",g);const v=new Map,b=g.map((e=>new i(e,this.options)));for(const e of b){if(p(e))return[e];v.set(e.value,e)}v.size>1&&v.has("")&&v.delete("");const x=[...v.values()];return n.set(t,x),x}intersects(t,n){if(!(t instanceof e))throw new TypeError("a Range is required");return this.set.some((e=>g(e,n)&&t.set.some((t=>g(t,n)&&e.every((e=>t.every((t=>e.intersects(t,n)))))))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new a(e,this.options)}catch(e){return!1}for(let t=0;t<this.set.length;t++)if(A(this.set[t],e,this.options))return!0;return!1}}C1=e;const t=function(){if(k1)return E1;k1=1;const e=q1(),t=Symbol("max"),n=Symbol("length"),r=Symbol("lengthCalculator"),i=Symbol("allowStale"),o=Symbol("maxAge"),a=Symbol("dispose"),s=Symbol("noDisposeOnSet"),l=Symbol("lruList"),c=Symbol("cache"),u=Symbol("updateAgeOnGet"),d=()=>1,f=(e,t,n)=>{const r=e[c].get(t);if(r){const t=r.value;if(h(e,t)){if(m(e,r),!e[i])return}else n&&(e[u]&&(r.value.now=Date.now()),e[l].unshiftNode(r));return t.value}},h=(e,t)=>{if(!t||!t.maxAge&&!e[o])return!1;const n=Date.now()-t.now;return t.maxAge?n>t.maxAge:e[o]&&n>e[o]},p=e=>{if(e[n]>e[t])for(let r=e[l].tail;e[n]>e[t]&&null!==r;){const t=r.prev;m(e,r),r=t}},m=(e,t)=>{if(t){const r=t.value;e[a]&&e[a](r.key,r.value),e[n]-=r.length,e[c].delete(r.key),e[l].removeNode(t)}};class g{constructor(e,t,n,r,i){this.key=e,this.value=t,this.length=n,this.now=r,this.maxAge=i||0}}const y=(e,t,n,r)=>{let o=n.value;h(e,o)&&(m(e,n),e[i]||(o=void 0)),o&&t.call(r,o.value,o.key,e)};return E1=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[t]=e.max||1/0;const n=e.length||d;if(this[r]="function"!=typeof n?d:n,this[i]=e.stale||!1,e.maxAge&&"number"!=typeof e.maxAge)throw new TypeError("maxAge must be a number");this[o]=e.maxAge||0,this[a]=e.dispose,this[s]=e.noDisposeOnSet||!1,this[u]=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[t]=e||1/0,p(this)}get max(){return this[t]}set allowStale(e){this[i]=!!e}get allowStale(){return this[i]}set maxAge(e){if("number"!=typeof e)throw new TypeError("maxAge must be a non-negative number");this[o]=e,p(this)}get maxAge(){return this[o]}set lengthCalculator(e){"function"!=typeof e&&(e=d),e!==this[r]&&(this[r]=e,this[n]=0,this[l].forEach((e=>{e.length=this[r](e.value,e.key),this[n]+=e.length}))),p(this)}get lengthCalculator(){return this[r]}get length(){return this[n]}get itemCount(){return this[l].length}rforEach(e,t){t=t||this;for(let n=this[l].tail;null!==n;){const r=n.prev;y(this,e,n,t),n=r}}forEach(e,t){t=t||this;for(let n=this[l].head;null!==n;){const r=n.next;y(this,e,n,t),n=r}}keys(){return this[l].toArray().map((e=>e.key))}values(){return this[l].toArray().map((e=>e.value))}reset(){this[a]&&this[l]&&this[l].length&&this[l].forEach((e=>this[a](e.key,e.value))),this[c]=new Map,this[l]=new e,this[n]=0}dump(){return this[l].map((e=>!h(this,e)&&{k:e.key,v:e.value,e:e.now+(e.maxAge||0)})).toArray().filter((e=>e))}dumpLru(){return this[l]}set(e,i,u){if((u=u||this[o])&&"number"!=typeof u)throw new TypeError("maxAge must be a number");const d=u?Date.now():0,f=this[r](i,e);if(this[c].has(e)){if(f>this[t])return m(this,this[c].get(e)),!1;const r=this[c].get(e).value;return this[a]&&(this[s]||this[a](e,r.value)),r.now=d,r.maxAge=u,r.value=i,this[n]+=f-r.length,r.length=f,this.get(e),p(this),!0}const h=new g(e,i,f,d,u);return h.length>this[t]?(this[a]&&this[a](e,i),!1):(this[n]+=h.length,this[l].unshift(h),this[c].set(e,this[l].head),p(this),!0)}has(e){if(!this[c].has(e))return!1;const t=this[c].get(e).value;return!h(this,t)}get(e){return f(this,e,!0)}peek(e){return f(this,e,!1)}pop(){const e=this[l].tail;return e?(m(this,e),e.value):null}del(e){m(this,this[c].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[c].forEach(((e,t)=>f(this,t,!1)))}},E1}(),n=new t({max:1e3}),r=c0,i=R1(),o=o0,a=x0,{safeRe:s,t:l,comparatorTrimReplace:c,tildeTrimReplace:u,caretTrimReplace:d}=a0,{FLAG_INCLUDE_PRERELEASE:f,FLAG_LOOSE:h}=r0,p=e=>"<0.0.0-0"===e.value,m=e=>""===e.value,g=(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},y=(e,t)=>(o("comp",e,t),e=S(e,t),o("caret",e),e=b(e,t),o("tildes",e),e=M(e,t),o("xrange",e),e=k(e,t),o("stars",e),e),v=e=>!e||"x"===e.toLowerCase()||"*"===e,b=(e,t)=>e.trim().split(/\s+/).map((e=>x(e,t))).join(" "),x=(e,t)=>{const n=t.loose?s[l.TILDELOOSE]:s[l.TILDE];return e.replace(n,((t,n,r,i,a)=>{let s;return o("tilde",e,t,n,r,i,a),v(n)?s="":v(r)?s=`>=${n}.0.0 <${+n+1}.0.0-0`:v(i)?s=`>=${n}.${r}.0 <${n}.${+r+1}.0-0`:a?(o("replaceTilde pr",a),s=`>=${n}.${r}.${i}-${a} <${n}.${+r+1}.0-0`):s=`>=${n}.${r}.${i} <${n}.${+r+1}.0-0`,o("tilde return",s),s}))},S=(e,t)=>e.trim().split(/\s+/).map((e=>w(e,t))).join(" "),w=(e,t)=>{o("caret",e,t);const n=t.loose?s[l.CARETLOOSE]:s[l.CARET],r=t.includePrerelease?"-0":"";return e.replace(n,((t,n,i,a,s)=>{let l;return o("caret",e,t,n,i,a,s),v(n)?l="":v(i)?l=`>=${n}.0.0${r} <${+n+1}.0.0-0`:v(a)?l="0"===n?`>=${n}.${i}.0${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.0${r} <${+n+1}.0.0-0`:s?(o("replaceCaret pr",s),l="0"===n?"0"===i?`>=${n}.${i}.${a}-${s} <${n}.${i}.${+a+1}-0`:`>=${n}.${i}.${a}-${s} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${a}-${s} <${+n+1}.0.0-0`):(o("no pr"),l="0"===n?"0"===i?`>=${n}.${i}.${a}${r} <${n}.${i}.${+a+1}-0`:`>=${n}.${i}.${a}${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${a} <${+n+1}.0.0-0`),o("caret return",l),l}))},M=(e,t)=>(o("replaceXRanges",e,t),e.split(/\s+/).map((e=>E(e,t))).join(" ")),E=(e,t)=>{e=e.trim();const n=t.loose?s[l.XRANGELOOSE]:s[l.XRANGE];return e.replace(n,((n,r,i,a,s,l)=>{o("xRange",e,n,r,i,a,s,l);const c=v(i),u=c||v(a),d=u||v(s),f=d;return"="===r&&f&&(r=""),l=t.includePrerelease?"-0":"",c?n=">"===r||"<"===r?"<0.0.0-0":"*":r&&f?(u&&(a=0),s=0,">"===r?(r=">=",u?(i=+i+1,a=0,s=0):(a=+a+1,s=0)):"<="===r&&(r="<",u?i=+i+1:a=+a+1),"<"===r&&(l="-0"),n=`${r+i}.${a}.${s}${l}`):u?n=`>=${i}.0.0${l} <${+i+1}.0.0-0`:d&&(n=`>=${i}.${a}.0${l} <${i}.${+a+1}.0-0`),o("xRange return",n),n}))},k=(e,t)=>(o("replaceStars",e,t),e.trim().replace(s[l.STAR],"")),C=(e,t)=>(o("replaceGTE0",e,t),e.trim().replace(s[t.includePrerelease?l.GTE0PRE:l.GTE0],"")),T=e=>(t,n,r,i,o,a,s,l,c,u,d,f,h)=>`${n=v(r)?"":v(i)?`>=${r}.0.0${e?"-0":""}`:v(o)?`>=${r}.${i}.0${e?"-0":""}`:a?`>=${n}`:`>=${n}${e?"-0":""}`} ${l=v(c)?"":v(u)?`<${+c+1}.0.0-0`:v(d)?`<${c}.${+u+1}.0-0`:f?`<=${c}.${u}.${d}-${f}`:e?`<${c}.${u}.${+d+1}-0`:`<=${l}`}`.trim(),A=(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(o(e[n].semver),e[n].semver!==i.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};return C1}function R1(){if(O1)return A1;O1=1;const e=Symbol("SemVer ANY");class t{static get ANY(){return e}constructor(r,i){if(i=n(i),r instanceof t){if(r.loose===!!i.loose)return r;r=r.value}r=r.trim().split(/\s+/).join(" "),a("comparator",r,i),this.options=i,this.loose=!!i.loose,this.parse(r),this.semver===e?this.value="":this.value=this.operator+this.semver.version,a("comp",this)}parse(t){const n=this.options.loose?r[i.COMPARATORLOOSE]:r[i.COMPARATOR],o=t.match(n);if(!o)throw new TypeError(`Invalid comparator: ${t}`);this.operator=void 0!==o[1]?o[1]:"","="===this.operator&&(this.operator=""),o[2]?this.semver=new s(o[2],this.options.loose):this.semver=e}toString(){return this.value}test(t){if(a("Comparator.test",t,this.options.loose),this.semver===e||t===e)return!0;if("string"==typeof t)try{t=new s(t,this.options)}catch(e){return!1}return o(t,this.operator,this.semver,this.options)}intersects(e,r){if(!(e instanceof t))throw new TypeError("a Comparator is required");return""===this.operator?""===this.value||new l(e.value,r).test(this.value):""===e.operator?""===e.value||new l(this.value,r).test(e.semver):(!(r=n(r)).includePrerelease||"<0.0.0-0"!==this.value&&"<0.0.0-0"!==e.value)&&(!(!r.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0")))&&(!(!this.operator.startsWith(">")||!e.operator.startsWith(">"))||(!(!this.operator.startsWith("<")||!e.operator.startsWith("<"))||(!(this.semver.version!==e.semver.version||!this.operator.includes("=")||!e.operator.includes("="))||(!!(o(this.semver,"<",e.semver,r)&&this.operator.startsWith(">")&&e.operator.startsWith("<"))||!!(o(this.semver,">",e.semver,r)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))))))}}A1=t;const n=c0,{safeRe:r,t:i}=a0,o=m1,a=o0,s=x0,l=D1();return A1}const I1=D1();var _1=(e,t,n)=>{try{t=new I1(t,n)}catch(e){return!1}return t.test(e)};const P1=D1();var L1=(e,t)=>new P1(e,t).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")));const z1=x0,F1=D1();var j1=(e,t,n)=>{let r=null,i=null,o=null;try{o=new F1(t,n)}catch(e){return null}return e.forEach((e=>{o.test(e)&&(r&&-1!==i.compare(e)||(r=e,i=new z1(r,n)))})),r};const $1=x0,H1=D1();var B1=(e,t,n)=>{let r=null,i=null,o=null;try{o=new H1(t,n)}catch(e){return null}return e.forEach((e=>{o.test(e)&&(r&&1!==i.compare(e)||(r=e,i=new $1(r,n)))})),r};const V1=x0,U1=D1(),W1=Q0;var Y1=(e,t)=>{e=new U1(e,t);let n=new V1("0.0.0");if(e.test(n))return n;if(n=new V1("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 V1(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":i&&!W1(t,i)||(i=t);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${e.operator}`)}})),!i||n&&!W1(n,i)||(n=i)}return n&&e.test(n)?n:null};const X1=D1();var G1=(e,t)=>{try{return new X1(e,t).range||"*"}catch(e){return null}};const K1=x0,J1=R1(),{ANY:Q1}=J1,Z1=D1(),e2=_1,t2=Q0,n2=e1,r2=l1,i2=a1;var o2=(e,t,n,r)=>{let i,o,a,s,l;switch(e=new K1(e,r),t=new Z1(t,r),n){case">":i=t2,o=r2,a=n2,s=">",l=">=";break;case"<":i=n2,o=i2,a=t2,s="<",l="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(e2(e,t,r))return!1;for(let n=0;n<t.set.length;++n){const c=t.set[n];let u=null,d=null;if(c.forEach((e=>{e.semver===Q1&&(e=new J1(">=0.0.0")),u=u||e,d=d||e,i(e.semver,u.semver,r)?u=e:a(e.semver,d.semver,r)&&(d=e)})),u.operator===s||u.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 a2=o2;var s2=(e,t,n)=>a2(e,t,">",n);const l2=o2;var c2=(e,t,n)=>l2(e,t,"<",n);const u2=D1();var d2=(e,t,n)=>(e=new u2(e,n),t=new u2(t,n),e.intersects(t,n));const f2=_1,h2=j0;const p2=D1(),m2=R1(),{ANY:g2}=m2,y2=_1,v2=j0,b2=[new m2(">=0.0.0-0")],x2=[new m2(">=0.0.0")],S2=(e,t,n)=>{if(e===t)return!0;if(1===e.length&&e[0].semver===g2){if(1===t.length&&t[0].semver===g2)return!0;e=n.includePrerelease?b2:x2}if(1===t.length&&t[0].semver===g2){if(n.includePrerelease)return!0;t=x2}const r=new Set;let i,o,a,s,l,c,u;for(const t of e)">"===t.operator||">="===t.operator?i=w2(i,t,n):"<"===t.operator||"<="===t.operator?o=M2(o,t,n):r.add(t.semver);if(r.size>1)return null;if(i&&o){if(a=v2(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&&!y2(e,String(i),n))return null;if(o&&!y2(e,String(o),n))return null;for(const r of t)if(!y2(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(u=u||">"===e.operator||">="===e.operator,c=c||"<"===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=w2(i,e,n),s===e&&s!==i)return!1}else if(">="===i.operator&&!y2(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=M2(o,e,n),l===e&&l!==o)return!1}else if("<="===o.operator&&!y2(o.semver,String(e),n))return!1;if(!e.operator&&(o||i)&&0!==a)return!1}return!(i&&c&&!o&&0!==a)&&(!(o&&u&&!i&&0!==a)&&(!f&&!d))},w2=(e,t,n)=>{if(!e)return t;const r=v2(e.semver,t.semver,n);return r>0?e:r<0||">"===t.operator&&">="===e.operator?t:e},M2=(e,t,n)=>{if(!e)return t;const r=v2(e.semver,t.semver,n);return r<0?e:r>0||"<"===t.operator&&"<="===e.operator?t:e};var E2=(e,t,n={})=>{if(e===t)return!0;e=new p2(e,n),t=new p2(t,n);let r=!1;e:for(const i of e.set){for(const e of t.set){const t=S2(i,e,n);if(r=r||null!==t,t)continue e}if(r)return!1}return!0};const k2=a0,C2=r0,T2=x0,A2=f0,O2=(e,t,n)=>{const r=[];let i=null,o=null;const a=e.sort(((e,t)=>h2(e,t,n)));for(const e of a){f2(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(" || "),c="string"==typeof t.raw?t.raw:String(t);return l.length<c.length?l:t};var N2=n({parse:w0,valid:E0,clean:C0,inc:A0,diff:N0,major:D0,minor:I0,patch:P0,prerelease:z0,compare:j0,rcompare:H0,compareLoose:V0,compareBuild:W0,sort:X0,rsort:K0,gt:Q0,lt:e1,eq:n1,neq:i1,gte:a1,lte:l1,cmp:m1,coerce:N1,Comparator:R1(),Range:D1(),satisfies:_1,toComparators:L1,maxSatisfying:j1,minSatisfying:B1,minVersion:Y1,validRange:G1,outside:o2,gtr:s2,ltr:c2,intersects:d2,simplifyRange:O2,subset:E2,SemVer:T2,re:k2.re,src:k2.src,tokens:k2.t,SEMVER_SPEC_VERSION:C2.SEMVER_SPEC_VERSION,RELEASE_TYPES:C2.RELEASE_TYPES,compareIdentifiers:A2.compareIdentifiers,rcompareIdentifiers:A2.rcompareIdentifiers}),q2={BAR_IN_SECONDARY_AXIS:"0.23.1"};const D2=e=>!e||N2.lt(N2.coerce(e),N2.coerce(q2.BAR_IN_SECONDARY_AXIS)),R2=({layoutService:e})=>{const t=!D2(e.getLayoutValue("version")),n=e.getHyperCubeValue("qMeasureInfo").map(((e,t)=>{const n={[zd.TYPE.BAR]:0,[zd.TYPE.LINE]:0,[zd.TYPE.MARKER]:0};return({series:r=zd.NOPE_SERIES},i)=>{const o=t0(r,t),a=em(r);return{id:i,type:a,typeIndex:n[a]++,ref:`qMeasureInfo/${i}`,refIndex:i,isPrimary:o,scale:o?Ld.SCALE.MINOR.PRIMARY:Ld.SCALE.MINOR.SECONDARY,collection:o?Ld.COLLECTION.PRIMARY:Ld.COLLECTION.SECONDARY,options:e0({series:r,layoutService:e})}}})(e,t)),r=(e,t)=>e.filter((e=>em(e)===t)).length,i=n.filter((e=>e.isPrimary)),o=n.filter((e=>!e.isPrimary)),a=[!!i.length&&i[0],!!o.length&&o[0]].filter((e=>!!e)),s=r(n,zd.TYPE.BAR),l=r(i,zd.TYPE.BAR),c=r(o,zd.TYPE.BAR),u=e=>n.filter((t=>em(t)===e)),d=u(zd.TYPE.LINE).map((e=>wh(Ld.COMPONENT.POINT,e))),f=u(zd.TYPE.MARKER).map((e=>({key:wh(Ld.COMPONENT.MARKER,e),type:e.options.marker}))),h=f.map((e=>e.key)),p=[];l>0&&p.push(`${Ld.COMPONENT.BAR}-${zd.AXIS.PRIMARY}`),c>0&&p.push(`${Ld.COMPONENT.BAR}-${zd.AXIS.SECONDARY}`);const m=[...p,...d,...h],{MINI_CHART:g}=Ld.COMPONENT,y=u(zd.TYPE.LINE).map((e=>wh(g.LINE,e))),v=u(zd.TYPE.MARKER).map((e=>wh(g.MARKER,e))),b=e.meta.isContinuous?[`${g.BAR}-${zd.AXIS.PRIMARY}`,`${g.BAR}-${zd.AXIS.SECONDARY}`,...y,...v]:[];return{meta:{allSeries:n,primarySeries:i,secondarySeries:o,barSeriesCount:s,primaryBarSeriesCount:l,secondaryBarSeriesCount:c,measureAxes:a,pointComponentKeys:d,markerComponentKeys:h,barComponentKeys:p,seriesComponentKeys:m,miniComponentKeys:b,markers:f},query:{all:()=>n,seriesByAxis:e=>e?i:o,series:u,isPrimary:t0}}};function I2({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 _2({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"),l=o?[]:t.getHyperCubeValue("qColumnOrder");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"),qColumnOrder:l}}}))}(e,t,{path:"/qHyperCubeDef",rect:I2({layoutService:t}),zoomLevel:-1,filter:"D1"})}}function P2({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}):_2({genericObjectModel:e,layoutService:t})}const L2=e=>"number"==typeof e&&!Number.isNaN(e);function z2({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=>em(e.series)===zd.TYPE.BAR)),a=i.filter((e=>em(e.series)===zd.TYPE.LINE)),s=i.filter((e=>em(e.series)===zd.TYPE.MARKER));return{min:Math.min(...i.filter((e=>L2(e.qMin))).map((e=>e.qMin))),max:Math.max(...i.filter((e=>L2(e.qMax))).map((e=>e.qMax))),bar:{min:Math.min(...o.filter((e=>L2(e.qMin))).map((e=>e.qMin))),max:Math.max(...o.filter((e=>L2(e.qMax))).map((e=>e.qMax)))},line:{min:Math.min(...a.filter((e=>L2(e.qMin))).map((e=>e.qMin))),max:Math.max(...a.filter((e=>L2(e.qMax))).map((e=>e.qMax)))},marker:{min:Math.min(...s.filter((e=>L2(e.qMin))).map((e=>e.qMin))),max:Math.max(...s.filter((e=>L2(e.qMax))).map((e=>e.qMax)))}}}}function F2({isPrimary:e,layoutService:t,seriesModel:n}){const r=z2({isPrimary:e,layoutService:t,seriesModel:n}),i=function({seriesModel:e,isPrimary:t}){return function({dataPage:n}){const r=e.query.series(zd.TYPE.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 j2({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,i=n.query.series(zd.TYPE.BAR).filter((t=>t.isPrimary===e)).length;return!r||i<2?z2({isPrimary:e,layoutService:t,seriesModel:n}):F2({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:c}=a({dataPage:t}),u=i.query.seriesByAxis(e).some((e=>em(e)===zd.TYPE.BAR)),d=Number((u?Math.min(n,0):n).toFixed(13)),f=Number((u?Math.max(r,0):r).toFixed(13)),h=Number((u?Math.min(s.min,0):s.min).toFixed(13)),p=Number((u?Math.max(s.max,0):s.max).toFixed(13)),m=Number((u?Math.min(l.min,0):l.min).toFixed(13)),g=Number((u?Math.max(l.max,0):l.max).toFixed(13)),y=Number((u?Math.min(c.min,0):c.min).toFixed(13)),v=Number((u?Math.max(c.max,0):c.max).toFixed(13));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(g)?g:0,o.implicit.marker.min=Number.isFinite(y)?y: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)}))}}}}const $2=.2;function H2({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 B2({min:e,max:t,count:n,threshold:r,disable:i}){const o=function(e,t,n){const r=$n().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 V2=50,U2=100,W2=200,Y2=125,X2=e=>{switch(e){case.5:return V2;case 1:return U2;case 2:return W2;default:return e*Y2}};function G2({config:e,chart:t,layoutService:n,dockService:r,measureText:i,size:o,min:a,max:s}){const l=function({config:{measureAxesRef:e},layoutService:t,size:n}){const r=t.getLayoutValue(`${e}.spacing`,1),i=X2(r);return Math.max(1,Math.round(n/i))}({config:e,layoutService:n,size:o}),c=B2({min:a,max:s,count:l,threshold:.05,disable:!0}),u=c.domain(),d={roundedMin:u[0],roundedMax:u[1],ticks:c.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),t=e.some(((t,n)=>e.indexOf(t)!==n));return!t&&(e=>{const t=o/d.ticks.length;return Math.max(...e.map(h))<=t})(e)};for(let e=l-1;e>0&&!m();e--)c.domain([a,s]),c.nice(e),[d.roundedMin,d.roundedMax]=c.domain(),d.ticks=c.ticks(e);return d}const K2=.3;function J2({tick:e,index:t,ticks:n}){return 0===t||t===n.length-1||0===e}function Q2({index:e,ticks:t}){return 0===e||e===t.length-1||e===Math.floor((t.length-1)/2)}const Z2=10;function e5({config:e,chart:t,extrema:n,min:r,max:i}){const o={roundedMin:0,roundedMax:0,ticks:[]},a=B2({min:r,max:i,count:Z2,threshold:.15,disable:!0});[o.roundedMin,o.roundedMax]=a.domain();const s=a.ticks(Z2),l=function({ticks:e}){const t=Math.round(e.length*K2),n=t,r=e.length-t;return e.slice(n,r).some((e=>0===e))}({ticks:s}),c=l?J2:Q2;o.ticks=s.filter(((e,t,n)=>c({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 u=t.formatter(e.formatter),d=o.ticks.map(u),f=d.some(((e,t)=>d.indexOf(e)!==t));return f&&(o.ticks=[o.ticks[0],o.ticks[o.ticks.length-1]]),o}function t5({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 n5({config:e,chart:t,layoutService:n,dockService:r,extrema:i,measureText:o,size:a,min:s,max:l}){const{ticks:c,roundedMin:u,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 c=G2({config:e,chart:t,layoutService:n,dockService:r,measureText:o,size:a,min:s,max:l});return H2({extrema:i,ticks:c.ticks})?c:e5({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:c,count:1}),h=[...t5({ticks:c,extrema:i}).map((e=>({value:e,isMinor:!1}))),...f.map((e=>({value:e,isMinor:!0})))].sort(((e,t)=>e.value-t.value));return{min:u,max:d,values:h}}function r5({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-t*$2*Math.sign(t),max:n+n*$2*Math.sign(n)}}({extrema:o});return n5({config:e,chart:t,layoutService:n,dockService:r,extrema:o,measureText:i,size:a,min:s,max:l})}function i5({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,c=function({chart:e,config:t,dockService:n,extremumModel:r,layoutService:i,seriesModel:o,themeService:a}){const{measureText:s}=XD.renderer("svg")();return()=>{const l=a.getStyles(),c=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}),u=r.query.getExtrema(),d=r5({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:u,size:c});return d}}({config:e,chart:t,layoutService:n,extremumModel:r,dockService:i,seriesModel:o,themeService:a}),u=()=>(s.locked&&s.resolved||(s.resolved=c()),s.resolved);return{query:{getValues:()=>u().values,getMin:()=>l().meta.hasExplicitMin?l().explicit.min:u().min,getMax:()=>l().meta.hasExplicitMax?l().explicit.max:u().max},command:{lock:()=>{s.locked=!0},unlock:()=>{s.locked=!1}}}}function o5({genericObjectModel:e,layoutService:t}){const n={properties:void 0};return{query:{getProperties:()=>n.properties},command:{initialize:()=>function({layout:e,model:t}){return T.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 a5({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:zd.TYPE.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===zd.TYPE.LINE?2:t!==zd.TYPE.MARKER||n.fill?0:1},size:10,fill:{fn:({datum:e,scale:t})=>{const{type:n,options:r}=s(e);return n!==zd.TYPE.MARKER||"bar"===r.marker||r.fill?t(e.value):"none"}}}}}}function s5({layout:e,defaultAuto:t}){const n=t(e),r=e.qHyperCube.qMeasureInfo.length>1;return{...n,useBaseColors:r?"measure":n.useBaseColors}}function l5({actions:e,appLayoutModel:t,appModel:n,chart:r,environment:i,genericObjectModel:o,layoutService:a,picasso:s,seriesModel:l,viewState:c,styleModel:u}){let d;const{theme:f,translator:h}=i,p={wrappedScales:void 0,legendComponents:void 0,legendInteractions:void 0};return d=al({picasso:s,model:o,app:n,translator:h,layoutService:a,createConfig:()=>{const e=a.getHyperCubeValue("qMeasureInfo").map((e=>e.color));return{theme:f,colorProps:{measureOverrides:e},legendProps:a.getLayoutValue("legend"),hc:a.getHyperCube(),key:Ld.SCALE.COLOR}},config:{auto:s5,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,styleModel:s}){const{options:l}=i,c={eventName:"legend-c",key:Ld.COMPONENT.LEGEND,viewState:e,chart:t,styleReference:"object.comboChart",styleOverrides:{title:s.query.legend.title.getStyle(),label:s.query.legend.label.getStyle()},rtl:"rtl"===l.direction,settings:a5({layoutService:n,seriesModel:r,colorService:o})},{components:u,interactions:d}=o.getLegend(c,{actions:a,navigationDisabled:!a.interact.enabled()}),f=o.getScales();return{components:u.filter(Boolean).map((e=>{const{layout:t}=e,{dock:n}=t,r=f[`${Ld.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:d,scales:f}}({viewState:c,chart:r,environment:i,colorService:d,seriesModel:l,layoutService:a,actions:e,styleModel:u});p.wrappedScales=o,p.legendComponents=t,p.legendInteractions=n}}}),d}const c5="REJECTED",u5=()=>{},d5=1e4,f5={MULTIPLIER:2,MINIMUM:20,MAXIMUM:200},h5=50,p5=10,m5=100;var g5={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),c=Math.min(o+r-e.qArea.qLeft,e.qArea.qWidth),u={qArea:{qHeight:s-a,qWidth:c-l,qTop:i,qLeft:o},qMatrix:[]};for(let t=a;t<s;t++)u.qMatrix.push(e.qMatrix[t].slice(l,c));return u},cacheWarden:function({bounds:e={width:0,height:0}}){return{release(t,n){const r=n.qTop-p5<=t.qTop,i=n.qLeft+n.qWidth+p5>=t.qLeft+t.qWidth,o=n.qTop+n.qHeight+p5>=t.qTop+t.qHeight,a=n.qLeft-p5<=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 y5={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-p5<=t.qTop,i=n.qTop+n.qHeight+p5>=t.qTop+t.qHeight;return r&&t.qTop>0||i&&t.qTop+t.qHeight<e.height}}},request:function({definitionPath:e}){return t=>({method:"getHyperCubeStackData",args:[e,[t]]})}};var v5={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 b5="pages";const x5="discretePan",S5=10;function w5({chart:e,actions:t,componentKey:n,dockService:r,rtl:i,scroller:o}){return{type:"Pan",key:"discrete:pan",options:{event:x5,pointers:1,threshold:S5,enable(r,i){return this.started===x5||!i||!(!t.scroll.enabled()||!o.enabled())&&e.componentsFromPoint({x:i.center.x,y:i.center.y}).some((e=>e.key===n))}},events:{[`${x5}start`](e){e.preventDefault(),this.started=x5;const t="horizontal"===r.meta.major.orientation?e.deltaX:e.deltaY;this.previousTotalDelta=t<0?-S5:S5},[`${x5}move`](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)},[`${x5}end`](e){e.preventDefault(),this.started=!1},[`${x5}cancel`](e){e.preventDefault(),this.started=!1}}}}function M5({chart:e,componentKey:t,actions:n,scroller:r}){return function(i){if(!n.scroll.enabled()||!r.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=Math.sign(-a)*m5;r.scroll(s)}}function E5({layoutService:e}){const t=function({layoutService:e}){const t=Math.floor(d5/(e.meta.dimensionCount+e.meta.measureCount));return function({width:e,height:n}){const r=Math.min(t,Math.max(f5.MAXIMUM,n));return{width:e,height:Math.max(f5.MINIMUM,Math.min(n*f5.MULTIPLIER,r))}}}({layoutService:e}),n={width:e.meta.size.x,height:e.meta.size.y};return function(e){const{width:r,height:i}=t({width:e.qWidth,height:e.qHeight}),o=i?Math.ceil((i-e.qHeight)/2):0,a=r?Math.ceil((r-e.qWidth)/2):0;return{qHeight:i?Math.min(i,n.height):e.qHeight,qWidth:r?Math.min(r,n.width):e.qWidth,qTop:i?Math.max(0,Math.min(e.qTop-o,n.height-i)):e.qTop,qLeft:r?Math.max(0,Math.min(e.qLeft-a,n.width-r)):e.qLeft}}}function k5(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(c5),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(c5),n=e})(a):r(a)}));return i.isProcessing=()=>!!t,i.hasQueued=()=>!!n,i.cancel=()=>{i.isProcessing()&&t.cancel(),i.hasQueued()&&(n.reject(c5),n=null)},i}const C5={command:{update:()=>{}}};function T5({dataStore:e,composition:t,enigmaModel:n,layoutService:r,trendLineModel:i=C5,definitionPath:o,processDataPage:a}){const{slicer:s,cacheWarden:l,request:c}=t,u=function({dataStore:e,slice:t,warden:n,expand:r,request:i,process:o,connectionless:a,processDataPage:s}){return(l,{onProcessing:c}={})=>{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()&&c&&c();const u=r(l);return o(i(u)).then((n=>(s(n),e.add(n),t(n,l))))}}({dataStore:e,slice:s,warden:l({bounds:{width:r.meta.size.x,height:r.meta.size.y}}),expand:E5({layoutService:r}),request:c({definitionPath:o}),process:k5(n),connectionless:r.meta.isSnapshot,processDataPage:a}),d=wl(((e,{onProcessing:t,onData:n})=>{u(e,{onProcessing:t}).then((e=>n(e))).catch((e=>{if(e!==c5)throw e}))}),h5);return function(e,{onProcessing:t=u5,onDataPage:n=u5}={}){d(e,{onProcessing:t,onData:e=>{r.setDataPages(e?[e]:[]),i.command.update(),n(e)}})}}var A5={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 O5={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 N5(e){const{groupSize:t,measureCount:n}=e.meta;return null!=t?t:n}function q5(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 D5(e){return q5(e.qMatrix,(e=>e[0].qElemNumber))-1}var R5={inTotal:function({layoutService:e}){const t=N5(e);return e.meta.size.y*t*(1+1/t)-1},area:function({layoutService:e,itemOffset:t,inView:n,areaBuffer:r}){const i=N5(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=N5(e),o=e.getDataPages()[0],a=r/n.inView,{pixel:s}=t,l=D5(o),c=o.qArea.qHeight*i+l,u=(s+(o.qArea.qTop*i+o.qArea.qTop)*a)/r;return[u,n.inView>=n.inTotal?u+1:u+c/n.inView]}};const I5=(e,t)=>t/(e.meta.size.y/e.meta.size.dimensions[0]+1),_5=(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};function P5(e){return{itemOffset(t,n){if(0!==t.qArea.qTop)return I5(e,n);const r=_5(t.qMatrix,n);return r.successful?r.count:I5(e,n)},area(t,n,r){if(0!==t.qArea.qTop)return I5(e,n);return q5(t.qMatrix.slice(0,r.qTop+1),(e=>e[0].qElemNumber))-1}}}var L5={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=P5(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:c}=n,u=P5(t).area(e(),l,a.qArea),d=D5(a),f=a.qArea.qHeight+d,h=c===o?(r.inView-f)*s/i:(c+(a.qArea.qTop+u)*s)/i;return[h,r.inView>=r.inTotal?h+1:h+f/r.inView]}};function z5({chart:e,rect:t,dockService:n,itemWidths:r,axisKey:i,renderer:o,isGrouped:a,dimensionAxis:s,inTotal:l,isMajorLabelless:c,maxDataRows:u}){const{DEFAULT:d,SQUEEZE:f,LABELLESS:h}=r[n.meta.chart.mode],p="horizontal"===n.meta.major.orientation,{axisDisplayMode:m="auto",maxVisibleItems:g=10,label:y}=s,v=p?t.width:t.height,b=v/l>=f;switch(m){case"max":return Math.min(l,u);case"custom":return Math.min(g,u);default:return c?v/h:b?function({chart:e,isHorizontal:t,axisKey:n,renderer:r={},isGrouped:i,itemSize:o,label:a}){if(i||"auto"!==a&&"tilted"!==a)return!1;const s=e.component(n),{measureText:l}=r;if(!s||!l)return!0;const{fontFamily:c,fontSize:u,tiltAngle:d}=s.settings.settings.labels,{height:f}=l({fontFamily:c,fontSize:u,text:"M"});if(!t)return f>o;const h=(90-d)*(Math.PI/180);return f>Math.cos(h)*o}({chart:e,isHorizontal:p,axisKey:i,renderer:o,isGrouped:a,itemSize:f,label:y})?v/d:l:v/d}}function F5({chart:e,getRect:t,getDataPages:n,layoutService:r,dockService:i,getItemWidths:o,axisKey:a,renderer:s,areaBuffer:l,rtl:c}){const{inTotal:u,area:d,scaleRange:f}=function({layoutService:e}){const{isDimensionless:t,isGrouped:n,isGroupedByMeasure:r}=e.meta;return t?A5:n?r?R5:L5:O5}({layoutService:r}),h=()=>"horizontal"===i.meta.major.orientation?t().width:t().height,p=e=>e?h()/e:0,m=(e,t)=>-(e-t)*p(t);return{getItems(){const n=r.getLayoutValue("dimensionAxis"),l=u({layoutService:r});return{inTotal:l,inView:z5({chart:e,rect:t(),dockService:i,itemWidths:o(),axisKey:a,renderer:s,isGrouped:r.meta.isGrouped,dimensionAxis:n,inTotal:l,isMajorLabelless:"none"===n.show||"title"===n.show,maxDataRows:Math.floor(d5/(r.meta.dimensionCount+r.meta.measureCount))})}},getItemSize({items:e}){const{inView:t}=e;return p(t)},getOffsets({pixelOffset:e,items:t}){const{inTotal:n,inView:r}=t,i=Math.min(0,Math.max(e,m(n,r))),o=r?Math.abs(r*i/h()):0;return{start:{pixel:i,item:o},end:{item:Math.min(o+(r||0),n)}}},getUpperBound({items:e}){const{inTotal:t,inView:n}=e;return m(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,Math.min(1,o+e/i)]}({viewSize:h(),inTotal:n,inView:r,pixelOffset:e})},getArea:({itemOffset:e,items:t})=>d({getDataPages:n,layoutService:r,itemOffset:e,inView:t.inView,areaBuffer:l}),getScaleRange({offsets:e,items:t}){const o=f({getDataPages:n,layoutService:r,offsets:e,items:t,viewSize:h(),upperBound:m(t.inTotal,t.inView)});return"horizontal"===i.meta.major.orientation&&c?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>=m(n,r)}},convert:{itemToPixelOffset({itemOffset:e,items:t}){const{inView:n}=t,r=e*p(n);return Number.isFinite(r)?-r:0},relativeToPixelOffset({relativeOffset:e,items:t}){const{inTotal:n,inView:r}=t;return-e*(p(r)*n)}}}}function j5({chart:e,componentKey:t,state:n,dataStore:r,pageData:i,layoutService:o,dockService:a,itemWidths:s,getRect:l,axisKey:c,renderer:u,areaBuffer:d,viewState:f,rtl:h}){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 p=F5({chart:e,getRect:()=>n.get("rect"),getDataPages:r.getCurrent,layoutService:o,dockService:a,getItemWidths:()=>n.get("itemWidths"),axisKey:c,renderer:u,areaBuffer:d,rtl:h}),m=()=>{const e=p.getItems();return n.set("items",e),e},g=({pixelOffset:e,items:t})=>{const r=p.getOffsets({pixelOffset:e,items:t});return n.set("offsets",r),r},y=e=>{const t=Date.now(),r=m(),a=g({pixelOffset:e,items:r}),s=p.getArea({itemOffset:a.start.item,items:r});if((e=>{const[{qArea:t}]=o.getDataPages();return!!t&&Object.keys(e).every((n=>e[n]===t[n]))})(s))return void((p.validate.offset({pixelOffset:e,items:r})||f.get("scrollOffset").start!==a.start.item)&&(n.set("finished",t),n.set("scaleRange",p.getScaleRange({offsets:a.start,items:r})),f.preventSet("viewRange",p.getViewRange({pixelOffset:a.start.pixel,items:r})),f.set("scrollOffset",{start:a.start.item,end:a.end.item})));f.preventSet("viewRange",p.getViewRange({pixelOffset:a.start.pixel,items:r}));const l=()=>{n.get("finished")>t||(n.set("finished",t),n.set("scaleRange",p.getScaleRange({offsets:a.start,items:r})),f.set("scrollOffset",{start:a.start.item,end:a.end.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=m();n.set("itemSize",p.getItemSize({items:a}));const c=(({items:e})=>{const t=o.getLayoutValue("scrollStartPos"),n=f.get("scrollOffset");if(void 0===n)return 1===t?p.getUpperBound({items:e}):0;if("number"==typeof n)return p.convert.itemToPixelOffset({itemOffset:n,items:e});const{start:r,end:i}=n,a=1===t&&i?i-e.inView:r;return p.convert.itemToPixelOffset({itemOffset:a,items:e})})({items:a}),u=g({pixelOffset:c,items:a});f.preventSet("viewRange",p.getViewRange({pixelOffset:u.start.pixel,items:a}));const d=p.getArea({itemOffset:u.start.item,items:a});return new Promise((e=>{i(d,{onDataPage:()=>{n.set("scaleRange",p.getScaleRange({offsets:u.start,items:a})),f.preventSet("scrollOffset",{start:u.start.item,end:u.end.item}),e()}})}))},scroll(e){const t=n.get("offsets").start.pixel+e;y(t)},scrollToRelative(e){const t=n.get("items"),r=p.convert.relativeToPixelOffset({relativeOffset:e,items:t});y(r)}}}function $5({chart:e,actions:t,componentKey:n,enigmaModel:r,layoutService:i,dockService:o,trendLineModel:a,itemWidths:s,viewState:l,rtl:c,options:{definitionPath:u="/qHyperCubeDef",getRect:d,axisKey:f,renderer:h,areaBuffer:p,processDataPage:m=(()=>{})}={}}){const g=xl(),y=function({qMode:e}){switch(e){case"S":default:return g5;case"K":return y5;case"T":return v5}}({qMode:i.getHyperCubeValue("qMode")}),v=function({state:e,contains:t}){return e.set(b5,[]),{add:t=>{const n=e.get(b5);n.length=0,n.push(t)},getCurrent:()=>e.get(b5)[0],getAll:()=>e.get(b5),contains:n=>t(e.get(b5)[0],n)}}({state:g,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:v,composition:y});const b=function({buffer:e}){return void 0===e?void 0:2*Math.round(e/2)}({buffer:p}),x=T5({dataStore:v,composition:y,enigmaModel:r,layoutService:i,trendLineModel:a,definitionPath:u,processDataPage:m}),S=j5({chart:e,componentKey:n,state:g,dataStore:v,pageData:x,layoutService:i,dockService:o,itemWidths:s,getRect:d,axisKey:f,renderer:h,areaBuffer:b,viewState:l,rtl:c}),w=function({layoutService:e,dataStore:t}){return function(n){const r=yl(n,`${e.refs.dataPages}`);r.length=0,r.push(t.getCurrent())}}({layoutService:i,dataStore:v}),M=function({chart:e,actions:t,componentKey:n,dockService:r,rtl:i,scroller:o}){return{gestures:[w5({chart:e,actions:t,componentKey:n,dockService:r,rtl:i,scroller:o})],native:{type:"native",events:{wheel:M5({chart:e,actions:t,componentKey:n,scroller:o})}}}}({chart:e,actions:t,componentKey:n,dockService:o,rtl:c,scroller:S});return{interactions:M,query:{getCanScroll:()=>S.enabled(),getItemSize:()=>S.itemSize(),getScaleRange:()=>S.scaleRange(),getCurrentDataPage:()=>v.getCurrent()},command:{initialize:()=>S.initialize(),scrollTo:e=>S.scrollToRelative(e),setSnapshotData:e=>w(e)}}}var H5={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 B5({layoutService:e,key:t}){const{style:n}=e.getLayoutValue("components",[]).filter((e=>e.key===t))[0]||{};return({property:e,defaultValue:t})=>n&&Object.hasOwnProperty.call(n,e)?n[e]:t}function V5({layoutService:e,dockService:t,themeService:n,flags:r}){const{BAR:i,LINE:o,POINT:a}=Dh,s=n.getStyles(),l=B5({layoutService:e,key:"bar"}),c=B5({layoutService:e,key:"line"}),u=()=>{const e=l({property:"strokeWidth",defaultValue:"none"});return e?i.STROKE.WIDTH[e.toUpperCase()]:0},d=t=>r.isEnabled("CLIENT_IM_3050")?e.getLayoutValue("components",[]).find((e=>e.key===t)):void 0;return{query:{bar:{getHasStyling:()=>!!e.getLayoutValue("components",[]).filter((e=>"bar"===e.key)).length,getWidthFn:()=>()=>l({property:"width",defaultValue:.7}),getHasStrokeWidth:()=>!!u(),getStrokeWidth:()=>u(),getStrokeColor:()=>l({property:"strokeColor",defaultValue:{index:-1,color:i.STROKE.COLOR}}).color,label:{getStyle:()=>{var e,t,n,r,i,o,a,l;return{fill:null!==(e=null===(t=d("bar"))||void 0===t||null===(t=t.bar)||void 0===t||null===(t=t.label)||void 0===t||null===(t=t.value)||void 0===t||null===(t=t.color)||void 0===t?void 0:t.color)&&void 0!==e?e:s.label.value.color,useContrastColor:null===(n=null===(r=d("bar"))||void 0===r||null===(r=r.bar)||void 0===r||null===(r=r.label)||void 0===r||null===(r=r.value)||void 0===r?void 0:r.useContrastColor)||void 0===n||n,fontSize:null!==(i=null===(o=d("bar"))||void 0===o||null===(o=o.bar)||void 0===o||null===(o=o.label)||void 0===o||null===(o=o.value)||void 0===o?void 0:o.fontSize)&&void 0!==i?i:s.label.value.numFontSize,fontFamily:null!==(a=null===(l=d("bar"))||void 0===l||null===(l=l.bar)||void 0===l||null===(l=l.label)||void 0===l||null===(l=l.value)||void 0===l?void 0:l.fontFamily)&&void 0!==a?a:s.label.value.fontFamily}}}},line:{getCurveFn:()=>()=>c({property:"lineCurve",defaultValue:o.CURVE.LINEAR}),getStrokeWidthFn:()=>()=>c({property:"lineThickness",defaultValue:"FULL"===t.meta.chart.mode?o.WIDTH.FULL.DEFAULT:o.WIDTH.LESS.DEFAULT}),getStrokeDasharrayFn:()=>()=>{const e=c({property:"lineType",defaultValue:o.TYPE.SOLID});return e&&o.TYPE[e.toUpperCase()]}},point:{getSize:()=>c({property:"dataPointSize",defaultValue:a.SIZE.DEFAULT}),label:{getStyle:()=>{var e,t,n,r,i,o;return{fill:null!==(e=null===(t=d("line"))||void 0===t||null===(t=t.line)||void 0===t||null===(t=t.label)||void 0===t||null===(t=t.value)||void 0===t||null===(t=t.color)||void 0===t?void 0:t.color)&&void 0!==e?e:s.label.value.color,fontSize:null!==(n=null===(r=d("line"))||void 0===r||null===(r=r.line)||void 0===r||null===(r=r.label)||void 0===r||null===(r=r.value)||void 0===r?void 0:r.fontSize)&&void 0!==n?n:s.label.value.fontSize,fontFamily:null!==(i=null===(o=d("line"))||void 0===o||null===(o=o.line)||void 0===o||null===(o=o.label)||void 0===o||null===(o=o.value)||void 0===o?void 0:o.fontFamily)&&void 0!==i?i:s.label.value.fontFamily}}}},axis:{title:{getStyle:()=>{var e,t,n,r,i,o;return{fontFamily:null!==(e=null===(t=d("axis"))||void 0===t||null===(t=t.axis)||void 0===t||null===(t=t.title)||void 0===t?void 0:t.fontFamily)&&void 0!==e?e:s.axis.title.fontFamily,fontSize:null!==(n=null===(r=d("axis"))||void 0===r||null===(r=r.axis)||void 0===r||null===(r=r.title)||void 0===r?void 0:r.fontSize)&&void 0!==n?n:s.axis.title.fontSize,color:null!==(i=null===(o=d("axis"))||void 0===o||null===(o=o.axis)||void 0===o||null===(o=o.title)||void 0===o||null===(o=o.color)||void 0===o?void 0:o.color)&&void 0!==i?i:s.axis.title.color}}},label:{getStyle:()=>{var e,t,n,r,i,o;return{fill:null!==(e=null===(t=d("axis"))||void 0===t||null===(t=t.axis)||void 0===t||null===(t=t.label)||void 0===t||null===(t=t.name)||void 0===t||null===(t=t.color)||void 0===t?void 0:t.color)&&void 0!==e?e:s.axis.label.name.color,fontSize:null!==(n=null===(r=d("axis"))||void 0===r||null===(r=r.axis)||void 0===r||null===(r=r.label)||void 0===r||null===(r=r.name)||void 0===r?void 0:r.fontSize)&&void 0!==n?n:s.axis.label.name.fontSize,fontFamily:null!==(i=null===(o=d("axis"))||void 0===o||null===(o=o.axis)||void 0===o||null===(o=o.label)||void 0===o||null===(o=o.name)||void 0===o?void 0:o.fontFamily)&&void 0!==i?i:s.axis.label.name.fontFamily}}}},legend:{title:{getStyle:()=>{var e,t,n,r,i,o;return{fontFamily:null!==(e=null===(t=d("legend"))||void 0===t||null===(t=t.legend)||void 0===t||null===(t=t.title)||void 0===t?void 0:t.fontFamily)&&void 0!==e?e:s.legend.title.fontFamily,fontSize:null!==(n=null===(r=d("legend"))||void 0===r||null===(r=r.legend)||void 0===r||null===(r=r.title)||void 0===r?void 0:r.fontSize)&&void 0!==n?n:s.legend.title.fontSize,color:null!==(i=null===(o=d("legend"))||void 0===o||null===(o=o.legend)||void 0===o||null===(o=o.title)||void 0===o||null===(o=o.color)||void 0===o?void 0:o.color)&&void 0!==i?i:s.legend.title.color}}},label:{getStyle:()=>{var e,t,n,r,i,o;return{fontFamily:null!==(e=null===(t=d("legend"))||void 0===t||null===(t=t.legend)||void 0===t||null===(t=t.label)||void 0===t?void 0:t.fontFamily)&&void 0!==e?e:s.legend.label.fontFamily,fontSize:null!==(n=null===(r=d("legend"))||void 0===r||null===(r=r.legend)||void 0===r||null===(r=r.label)||void 0===r?void 0:r.fontSize)&&void 0!==n?n:s.legend.label.fontSize,color:null!==(i=null===(o=d("legend"))||void 0===o||null===(o=o.legend)||void 0===o||null===(o=o.label)||void 0===o||null===(o=o.color)||void 0===o?void 0:o.color)&&void 0!==i?i:s.legend.label.color}}}}}}}function U5({dataset:e,data:t,valueData:n}){var r;const{source:i,label:o,value:a}=n,s=e(i.key).field(i.field);return M.shouldUseFormat(s.raw())?"-"===o||""===a||Number.isNaN(a)||"NaN"===a||null!==(r=t.null)&&void 0!==r&&r.value?"-":s.formatter()(a):o}function W5({chart:e,actions:t,translator:n,rtl:r,dockService:i,seriesModel:o,colorService:a,themeService:s,propertiesModel:l,custom:c}){const u=s.getStyles(),d=({data:e})=>e.major.value,f=({data:e})=>!e.null.value||0===e.end.value,{SLICED_HAT:h}=Ld.COMPONENT,{PRIMARY:p,SECONDARY:m}=zd.AXIS,g=function({dockService:e,seriesModel:t}){const{AXIS:n,BAR_OOB:r,DATA_OOB_MARKER:i,SLICED_HAT:o}=Ld.COMPONENT,{PRIMARY:a,SECONDARY:s}=zd.AXIS,{orientation:l}=e.meta.chart,c="vertical"===l,u=[...t.meta.barComponentKeys,...t.meta.markerComponentKeys,...t.meta.pointComponentKeys];return[({chart:e,hovered:t,meta:l})=>{const[d]=t,{triggerer:f}=l,h=f===n.MAJOR?d.data.value:d.data.major.value;if(c){const t=e.findShapes("container").find((e=>(e.key===`${o}-max-${a}`||e.key===`${o}-max-${s}`)&&e.data&&e.data.value===h&&e.children.length));if(t)return{key:t.key,bounds:t.bounds}}const p=e.findShapes("path").find((e=>(e.key===`${r}-max-${a}`||e.key===`${r}-max-${s}`||e.key===`${i}-max`)&&e.data.major.value===h));if(c&&p)return{key:p.key,bounds:p.bounds};const m=e.findShapes("path").find((e=>(e.key===`${r}-min-${a}`||e.key===`${r}-min-${s}`||e.key===`${i}-min`)&&e.data.major.value===h)),g=e.findShapes("*").filter((e=>u.indexOf(e.key)>-1&&e.data&&e.data.major.value===h));if(c&&m&&!g.find((e=>e.data.end.source.field!==m.data.end.source.field)))return{key:m.key,bounds:m.bounds};const y=p||m;return!(c||!y||g.find((e=>e.data.end.source.field!==y.data.end.source.field)))&&{key:y.key,bounds:y.bounds}},"collectible"]}({dockService:i,seriesModel:o});return Sd({chart:e,translator:n,config:{rtl:r,enable:()=>t.tooltip.enabled(),getColorSettings:()=>a.getSettings(),style:{fontFamily:u.fontFamily},main:{key:Ld.COMPONENT.TOOLTIP,getGroupByValue:d,collectibles:[...o.meta.barComponentKeys.map((e=>({key:e,type:"bar",major:d}))),...o.meta.pointComponentKeys.map((e=>({key:e,type:"point",major:d}))),...o.meta.markers.map((e=>({key:e.key,type:e.type,major:d})))],triggers:[{keys:[Ld.COMPONENT.AXIS.MAJOR],collect:{from:"dimension",by:({data:e})=>e.value,filter:f},placement:g},{keys:[...o.meta.barComponentKeys,...o.meta.markerComponentKeys,`${h}-max-${p}`,`${h}-max-${m}`,`${h}-min-${p}`,`${h}-min-${m}`,`${Ld.COMPONENT.BAR_OOB}-max-${p}`,`${Ld.COMPONENT.BAR_OOB}-max-${m}`,`${Ld.COMPONENT.BAR_OOB}-min-${p}`,`${Ld.COMPONENT.BAR_OOB}-min-${m}`,`${Ld.COMPONENT.DATA_OOB_MARKER}-max`,`${Ld.COMPONENT.DATA_OOB_MARKER}-min`],collect:{from:"dimension",by:d,filter:f},placement:g},{keys:[...o.meta.pointComponentKeys],distance:3,collect:{from:"dimension",by:d,filter:f},placement:g}],section:({h:e,nodes:t,dataset:n,create:r,util:i})=>{const[o]=t,{title:a,description:s,measures:l}=c.isEnabled()?c.getAttributes({dataset:n,nodes:[o]}):{},u=[];a&&u.push(r.text({value:a,style:{bold:!0}})),s&&u.push(r.text({value:s}));const d=c.hideBasic();d&&!l.length&&(a||s)||u.push(r.text({value:o.data.label,style:{bold:!0}})),d||(u.push(r.color({nodes:t,property:Ld.SCALE.COLOR})),u.push(...t.map((e=>{const{segment:t,end:o}=e.data,a=t||o,{key:s,field:l}=a.source;return r.measure({label:i.dataset.title(s,l),value:U5({dataset:n,data:e.data,valueData:a})})})))),l&&u.push(...l.map((e=>r.measure({label:e.label,value:e.value,survive:{color:!0,duplicate:!0}})))),c.chart.isEnabled()&&(c.chart.hasLimitation()?(c.chart.destroy(),u.push(r.raw({value:c.chart.createLimitationRow()}))):u.push(r.raw({value:c.chart.createContainer({h:e})})));const{customTooltipImages:f}=o.data;return c.isEnabled()&&f&&u.push(...f.map((t=>r.raw({value:c.createImageRow({value:t,h:e})})))),u},layout:{grouping:!0,single:()=>!(!c.isEnabled()||!c.hasImages())||c.chart.isEnabled()},events:{tooltip:{beforeShow:({collectNodes:e})=>c.isEnabled()&&c.hasImages()?c.addImages({nodes:e()}):Promise.resolve(),afterShow:({nodes:e})=>{c.chart.isEnabled()&&!c.chart.hasLimitation()&&c.chart.show({nodes:e,properties:l.query.getProperties()})}},interaction:{mouseleave:()=>{c.chart.isEnabled()&&c.chart.hasAlternateState()&&c.chart.hide()}}}},legend:{keys:{tooltip:Ld.COMPONENT.LEGEND_TOOLTIP,component:Ld.COMPONENT.LEGEND_CATEGORICAL}}}})}const{model:Y5}=Yg,X5=({picasso:t,chart:n,environment:r,flags:i,viewState:o,viewCache:a,actions:s,selectionService:l})=>{const c=e.useStaleLayout(),{width:u,height:d}=e.useRect(),[f,h]=e.useState(),[p,m]=e.useState(),g=e.useModel(),y=e.useApp(),v=e.useAppLayout(),b=e.usePlugins(),x=e.useEmbed();e.useEffect((()=>{if(!(c&&null!=n&&n.update&&r&&o))return;const e=function(e){var t=e.source,n=e.metaAdditionsFn,r=e.experimental,i=void 0===r?{filter:!1}:r,o=Oa(!0,{},t),a=i.filter?function(e){var t=e.qHyperCube,n=El(t,Ml.DIMENSION),r=n.reduced,i=n.filtered;t[Ml.DIMENSION]=r;var o=El(t,Ml.MEASURE),a=o.reduced,s=o.filtered;return t[Ml.MEASURE]=a,{dimensions:i,measures:s}}(o):{dimensions:[],measures:[]},s=Cl(o),l=function(){var e=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,c=a.qMode,u=s.length,d=l.length,f=ta({mode:{S:"S"===c,P:"P"===c,K:"K"===c,T:"T"===c},dimensionCount:u,measureCount:d,hasMultipleDimensions:u>1,hasMultipleMeasures:d>1,isOneDimensional:1===u,isTwoDimensional:2===u},o);return ta(ta({},f),r({layout:t,meta:f}))}({layout:o,additionsFn:n,additionsProps:{size:s.size}});return e.filteredFields=a,e},c={refs:ta({},s.refs),meta:l(),getLayout:function(){return o},getLayoutValue:function(e,t){return yl(o,e,t)},setLayoutValue:function(e,t){bl(o,e,t),s=Cl(o),c.meta=l()},getHyperCube:function(){return o.qHyperCube},getHyperCubeValue:function(e,t){return yl(o.qHyperCube,e,t)},setHyperCubeValue:function(e,t){bl(o.qHyperCube,e,t),s=Cl(o),c.meta=l()},getDataPages:function(){return yl(o,s.refs.dataPages)},setDataPages:function(e){bl(o,s.refs.dataPages,e),c.meta=l()}};return c}({source:c,metaAdditionsFn:function({layout:e}){var t;const n=yl(e,"qHyperCube.qMeasureInfo",[]),r=n.some((({series:e=zd.NOPE_SERIES})=>em(e)===zd.TYPE.LINE)),i=T.continuous(e,(()=>r&&S.isTime(!0,e))),o=!D2(yl(e,"version","")),a=n.filter((({series:e=zd.NOPE_SERIES})=>em(e)===zd.TYPE.BAR)),s=a.length,l=a.filter((({series:e=zd.NOPE_SERIES})=>e.axis!==zd.AXIS.SECONDARY)).length,c=a.filter((({series:e=zd.NOPE_SERIES})=>e.axis===zd.AXIS.SECONDARY)).length,u=o?l>1||c>1:s>1,d=("grouped"!==yl(e,"barGrouping.grouping")||i)&&u,f=!d&&s>1,h=o&&d&&(l>0&&c>1||l>1&&c>0),p=!(null==e||null===(t=e.qHyperCube)||void 0===t||null===(t=t.qDimensionInfo)||void 0===t||null===(t=t[0])||void 0===t||!t.qLocked);return{canBeContinuous:S.canBeContinuous(e),isDiscrete:!i,isContinuous:i,isTime:S.isTime(i,e),isSnapshot:T.snapshot(e),isBarSeriesStacked:d,isBarSeriesGrouped:f,isBarSeriesStackedInBothAxis:h,isGrouped:f||h,isGroupedByMeasure:f||h,isDimensionLocked:p,groupSize:h?2:s,hasLineSeries:r}}}),{options:f,translator:p}=r,{direction:m}=f,w="rtl"===m,M=function({genericObjectModel:e,layoutService:t}){const n={cube:void 0,on:!1},r=P2({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:g,layoutService:e}),E=gl({chart:n,layoutService:e,config:{logicalSize:{width:u,height:d},rtl:w},typeConfig:{type:"major-minor",fallback:"vertical",invert:!0,measureAxes:[{ref:"measureAxes.0",name:"minor"},{ref:"measureAxes.1",name:"minorSecondary"}]}}),k=R2({layoutService:e,flags:i}),C=e.meta.isDiscrete?function({chart:e,genericObjectModel:t,layoutService:n,dockService:r,seriesModel:i,viewState:o,rtl:a,actions:s,picasso:l}){return $5({chart:e,actions:s,componentKey:Xg(i),enigmaModel:t,layoutService:n,dockService:r,viewState:o,rtl:a,itemWidths:H5,options:{axisKey:Ld.COMPONENT.AXIS.MAJOR,renderer:l.renderer("svg")()}})}({chart:n,genericObjectModel:g,layoutService:e,dockService:E,seriesModel:k,viewState:o,rtl:"rtl"===r.options.direction,actions:s,picasso:t}):void 0,A=e.meta.isContinuous?Y5({model:g,layoutService:e,viewState:o,viewCache:a}):void 0,O=function(e){var t=e.theme,n=e.config,r=void 0===n?{}:n,i=r.id,o=r.resolve,a=void 0===o?[]:o,s=r.transform,l=void 0===s?[]:s,c=r.extend,u=void 0===c?[]:c,d={theme:t,matrix:Bu(a),styles:void 0};return d.styles=Uu({theme:t,id:i,transform:l,extend:u,matrix:d.matrix}),{getStyles:function(){return d.styles},getTheme:function(){return d.theme},setTheme:function(e){d.theme=e,d.styles=Uu({theme:e,id:i,transform:l,extend:u,matrix:d.matrix})}}}({theme:r.theme,config:{id:"comboChart",resolve:[["object","label.value","numFontSize","12px",e=>parseInt(e,10)]]}}),N=V5({layoutService:e,dockService:E,themeService:O,flags:i}),q=l5({actions:s,appLayoutModel:v,appModel:y,chart:n,environment:r,flags:i,genericObjectModel:g,layoutService:e,picasso:t,seriesModel:k,viewState:o,styleModel:N}),D=function({layoutService:e,seriesModel:t}){const{isContinuous:n}=e.meta,r="qDimensionInfo/0",i=`${r}:numeric`,o=t.meta.primarySeries.map((e=>e.ref)),a=t.meta.secondarySeries.map((e=>e.ref)),s=n?[{key:i,from:r,override:{value:e=>e.qNum}}]:void 0;return{main:{major:r,majorNumeric:i,minorsPrimary:o,minorsSecondary:a},virtuals:s}}({layoutService:e,seriesModel:k}),R=j2({isPrimary:!0,layoutService:e,reducedModel:M,seriesModel:k,continuousModel:A,flags:i}),I=j2({isPrimary:!1,layoutService:e,reducedModel:M,seriesModel:k,continuousModel:A,flags:i}),_=i5({config:{measureAxesRef:"measureAxes.0",formatter:Ld.FORMATTER.PRIMARY},chart:n,layoutService:e,extremumModel:R,dockService:E,seriesModel:k,themeService:O}),P=i5({config:{measureAxesRef:"measureAxes.1",formatter:Ld.FORMATTER.SECONDARY},chart:n,layoutService:e,extremumModel:I,dockService:E,seriesModel:k,themeService:O}),L=o5({genericObjectModel:g,layoutService:e}),z=of({flags:i,layout:c,app:y,model:g,picasso:t,chart:n,translator:p,localeInfo:v.qLocaleInfo,embed:x,options:f}),F=W5({chart:n,actions:s,translator:p,rtl:w,dockService:E,seriesModel:k,colorService:q,themeService:O,propertiesModel:L,custom:z}),j=_d({layoutService:e,discreteModel:C}),$=function(e){return{layout:e.getLayout(),keys:{SCALE:{MAJOR:Ld.SCALE.MAJOR,MAJOR_INNER:Ld.SCALE.MAJOR_INNER,MINOR:{PRIMARY:Ld.SCALE.MINOR.PRIMARY,SECONDARY:Ld.SCALE.MINOR.SECONDARY}},COMPONENT:{BAR_PRIMARY:`${Ld.COMPONENT.BAR}-${zd.AXIS.PRIMARY}`,BAR_SECONDARY:`${Ld.COMPONENT.BAR}-${zd.AXIS.SECONDARY}`,AXIS:{MAJOR:Ld.COMPONENT.AXIS.MAJOR,MAJOR_CONTINUOUS:Ld.COMPONENT.AXIS.MAJOR_CONTINUOUS,TIME_INNER:Ld.COMPONENT.AXIS.TIME_INNER,MINOR:{PRIMARY:Ld.COMPONENT.AXIS.MINOR.PRIMARY,SECONDARY:Ld.COMPONENT.AXIS.MINOR.SECONDARY}},AXIS_TITLE:{MAJOR:Ld.COMPONENT.AXIS_TITLE.MAJOR,MINOR:{PRIMARY:Ld.COMPONENT.AXIS_TITLE.MINOR.PRIMARY,SECONDARY:Ld.COMPONENT.AXIS_TITLE.MINOR.SECONDARY}}},COLLECTION:{MAIN:Ld.COLLECTION.MAIN}}}}(e),H=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 oa(na().mark((function e(){var r,a,s,l;return na().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=oa(na().mark((function e(n){var r;return na().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(ta({},i));case 4:if("object"===ra(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(ta({},i))}))),e.next=6,Promise.all([a,s]);case 6:l=e.sent,o.initialized=!0,(r=o.definitions).push.apply(r,ca(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=la(e.filter((function(e){return e.key&&e.key===t.key})),1)[0];if(n){var r=Oa(!0,{},n.brush);Oa(!0,n,t),t.brush&&(n.brush=function(e,t){return"object"===ra(e)&&Object.keys(e).length?(Array.isArray(t.consume)&&(e.consume=Tl({originalArray:e.consume,newArray:t.consume,matchKey:"context"})),Array.isArray(t.trigger)&&(e.trigger=Tl({originalArray:e.trigger,newArray:t.trigger,matchKey:"on"})),e):t}(r,t.brush))}else e.push(t)})),e):e}}}({picassoInstance:t,plugins:b,pluginArgs:$});h({selectionService:l,genericObjectModel:g,appModel:y,dockService:E,styleModel:N,layoutService:e,fieldModel:D,seriesModel:k,reducedModel:M,primaryExtremumModel:R,secondaryExtremumModel:I,primaryTickModel:_,secondaryTickModel:P,propertiesModel:L,colorService:q,themeService:O,appLayoutModel:v,tooltipService:F,flags:i,...C&&{discreteModel:C},...A&&{continuousModel:A},refLineModel:j,pluginService:H})}),[c,g,y,v,r,null==n?void 0:n.update,o]);const[,w]=e.usePromise((()=>{if(!f)return Promise.resolve();const{layoutService:e,colorService:t,reducedModel:n,primaryExtremumModel:i,secondaryExtremumModel:a,propertiesModel:c,continuousModel:u,discreteModel:d,pluginService:h}=f,p=u?()=>{var t;u.update(e.getLayout());const n=u.initialFetch(),i=!e.meta.isSnapshot&&(null==r||null===(t=r.options)||void 0===t||null===(t=t.viewState)||void 0===t?void 0:t.zoom);return i&&o.preventSet("zoom",i),n}:()=>Promise.resolve(),y=t.initialize().then((()=>{const e=t.getSettings().field;l&&l.setBrushAliases({colorField:e}),t.custom.updateLegend()}));return Promise.all([h.initialize(),n.command.initialize(),g?c.command.initialize():Promise.resolve(),y,p(),s.scroll.attachDiscreteModel(d)]).then((()=>Promise.all([i.command.initialize(),a.command.initialize()]).then((()=>m(f)))))}),[f]);if(w)throw w;return p};function G5(){const[t,n]=e.useState();return e.useEffect((()=>{n(function(e){var t=ta({},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 K5={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 J5={query:{getCanScroll:()=>!0}};function Q5(){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}}(),c=function(){var t;const n=e.useConstraints(),[r,i]=e.useState(!1),[o,a]=e.useState(!1),s=e.useLayout(),l=e.useTranslator(),c=!!s.qSelectionInfo.qInSelections,u=!(null===(t=s.qHyperCube)||void 0===t||null===(t=t.qDimensionInfo)||void 0===t||null===(t=t[0])||void 0===t||!t.qIsOneAndOnlyOne);e.useEffect((()=>{n&&i(!n.select&&!n.active)}),[n]);const d=e=>{a("boolean"==typeof e?e:!o)};return e.useAction((()=>({key:"lasso",label:l.get(o?"Tooltip.ToggleOffLassoSelection":"Tooltip.ToggleOnLassoSelection"),icon:K5,hidden:!r||!c||u,active:o,action:d})),[c,u,o,r,l.language()]),{action:d,enabled:()=>r,active:()=>o}}();let u=J5;e.useEffect((()=>{t&&(r(!t.active),o(!t.active),s(!t.passive))}),[t]);const[d]=e.useState({});return d.scroll={enabled:()=>n&&u.query.getCanScroll(),attachDiscreteModel:e=>{u=e||J5}},d.interact={enabled:()=>i},d.tooltip={enabled:()=>a},d.lasso=c,d.select=l,d}function Z5({clearMinor:e,clearDiscrete:t,clearLegend:n}){e(),e({componentName:"minor-secondary-range-brush",eventName:"minorRange-secondary"}),t({brushName:!1}),n()}function e3({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]===Ld.COMPONENT.LEGEND_CATEGORICAL}),r()}var t3={exports:{}};!function(e,t){self,e.exports=(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},a=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,i=t.call(e,"constructor"),o=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!i&&!o)return!1;for(r in e);return void 0===r||t.call(e,r)},s=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(i)return i(e,n).value}return e[n]};e.exports=function e(){var t,n,r,i,c,u,d=arguments[0],f=1,h=arguments.length,p=!1;for("boolean"==typeof d&&(p=d,d=arguments[1]||{},f=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});f<h;++f)if(null!=(t=arguments[f]))for(n in t)r=l(d,n),d!==(i=l(t,n))&&(p&&i&&(a(i)||(c=o(i)))?(c?(c=!1,u=r&&o(r)?r:[]):u=r&&a(r)?r:{},s(d,{name:n,newValue:e(p,u,i)})):void 0!==i&&s(d,{name:n,newValue:i}));return d}},645:(e,t)=>{(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},a=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,i=t.call(e,"constructor"),o=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!i&&!o)return!1;for(r in e);return void 0===r||t.call(e,r)},s=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(i)return i(e,n).value}return e[n]};e.exports=function e(){var t,n,r,i,c,u,d=arguments[0],f=1,h=arguments.length,p=!1;for("boolean"==typeof d&&(p=d,d=arguments[1]||{},f=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});f<h;++f)if(null!=(t=arguments[f]))for(n in t)r=l(d,n),d!==(i=l(t,n))&&(p&&i&&(a(i)||(c=o(i)))?(c?(c=!1,u=r&&o(r)?r:[]):u=r&&a(r)?r:{},s(d,{name:n,newValue:e(p,u,i)})):void 0!==i&&s(d,{name:n,newValue:i}));return d}}},n={};function r(t){var i=n[t];if(void 0!==i)return i.exports;var o=n[t]={exports:{}};return e[t](o,o.exports,r),o.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};(()=>{r.r(i),r.d(i,{default:()=>qe});var e=r(229),t=r.n(e);const n=function(e,t,n){if(!t)return!1;var r,i=t.split("."),o=i[i.length-1],a=e;for(r=0;r<i.length-1;++r)void 0===a[i[r]]&&(a[i[r]]=Number.isNaN(+i[r+1])?{}:[]),a=a[i[r]];if(void 0!==n){var s=a[o];return a[o]=n,{updated:n,previous:s}}return delete a[o],!1},o=function(e,t,n){var r,i=t.split("."),o=e;if(void 0===o)return n;for(r=0;r<i.length;++r){if(void 0===o[i[r]])return n;o=o[i[r]]}return o},a={EXPRESSIONS:{observed:"",trend:"STL_Trend",seasonal:"STL_Seasonal",residual:"STL_Residual"},OPTIONS:[{value:"observed",translation:"cao.trendDecomposition.parameters.decomposition.observed"},{value:"trend",translation:"cao.trendDecomposition.parameters.decomposition.trend"},{value:"seasonal",translation:"cao.trendDecomposition.parameters.decomposition.seasonal"},{value:"residual",translation:"cao.trendDecomposition.parameters.decomposition.residual"}]};var s="".concat(" ","(").concat(" "),l="".concat(" ",")").concat(" ");function c(e){return s+e+l}function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.qLibraryId){var n=function(e,t){if(!t)return null;var n,r;for(n=0;n<t.length;n++)if((r=t[n]).qInfo.qId===e)return r;return null}(e.qLibraryId,t.dimensionList);return n&&n.qData.info[0].qTags.indexOf("$numeric")>-1}var r=function(e,t){if(!t)return null;var n,r,i=function(e){var t=e.trim();"="===t.charAt(0)&&(t=(t=t.substring(1)).trim());var n=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(n)&&(t=(t=t.substring(1,n)).trim()),t}(e);for(n=0;n<t.length;n++){if((r=t[n]).qName===i)return r;if(r.qDerivedFieldData)for(var o=0;o<r.qDerivedFieldData.qDerivedFieldLists.length;++o)for(var a=r.qDerivedFieldData.qDerivedFieldLists[o],s=0;s<a.qFieldDefs.length;++s){var l=a.qFieldDefs[s];if(l.qName===i)return l}}return null}(e.qDef.qFieldDefs[0],t.fieldList);return r&&r.qTags.indexOf("$numeric")>-1}function d(e){return!(!e.fullAccumulation&&!e.fullRange)}function f(e,t){var n=e.crossAllDimensions;return 2===t&&n?"RowNo(Total)":"RowNo()"}function h(e){var t=function(e){return e?(e=function(e){return e.replace(/\/\*[^]*?\*\//g,"")}(e=function(e){return e.replace(/\/\/(.*)$/gm,"")}(e))).trim():""}(e),n=t.trim();return"="===n.substring(0,1)?n.substring(1).trim():n}function p(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function m(e,t){var n=e.crossAllDimensions;return 2===t&&n?"Above(Total ":"Above("}function g(e){return void 0===e?")":", 0, ".concat(e,")")}function y(e){return"Replace(Replace(".concat(e,",'''',''''''),'$','$''&''')")}function v(e,t){return e?"".concat(t,'={">=$(=Min(').concat(t,"))<=$(=Max(").concat(t,'))"}'):"".concat(t,'={"=Only({1}').concat(t,")>='$(=").concat(y("MinString(".concat(t,")")),")' and Only({1}").concat(t,")<='$(=").concat(y("MaxString(".concat(t,")")),")'\"}")}function b(e){var t=e.modifier,n=void 0===t?{}:t,r=e.dimensions,i=e.dimensionAndFieldList,o=e.funcComp,a=void 0===o?"Sum":o,s=e.valueComp,l=void 0===s?"0":s;if(!n.showExcludedValues)return"";if(r&&1===r.length){var c=v(u(r[0],i),p(0));return"".concat(a,"({1<").concat(c,">}").concat(l,")")}if(r&&2===r.length){var d=u(r[0],i),f=u(r[1],i),h=p(0),m=p(1),g=v(d,h),y=v(f,m);return"".concat(a,"({1<").concat(g,",").concat(y,">}").concat(l,")")}return"".concat(a,"({1}").concat(l,")")}function x(e){return"".concat(e,"(")}function S(e){var t=e.properties,n=e.layout;return o(t,"qHyperCubeDef.qDimensions",o(n,"qHyperCube.qDimensionInfo",[])).length}const w={isFullRange:d,getNumDimensions:S,getExpressionWithExcludedComp:function(e){var t=e.expression,n=e.modifier,r=e.dimensions,i=e.dimensionAndFieldList,o=e.treatMissingAsNull,a=c(h(t));if(!n.showExcludedValues)return a;var s=b({modifier:n,dimensions:r,dimensionAndFieldList:i}),l=o?"":", 0";if(r&&1===r.length){var u=p(0);return"If(Count(".concat(u,") > 0, ").concat(a," + ").concat(s).concat(l,")")}if(r&&2===r.length){var d=p(0),f=p(1);return"If(Count(".concat(d,") * Count(").concat(f,") > 0, ").concat(a," + ").concat(s).concat(l,")")}return a},getRowNoComp:f,getNumStepComp:function(e,t){if(!d(e)){var n=e.steps;return"number"!=typeof n||Number.isNaN(n)?6:n}return f(e,t)},getAboveCompPrefix:m,getAboveCompSuffix:g,getAboveComp:function(e,t,n,r){return m(e,t)+n+g(r)},getFunctionPrefix:x,getFunctionSuffix:function(){return")"},getRangeComp:function(e,t){return x(e)+t+")"},getAggrComp:function(e,t,n){return"Aggr(".concat(e,", ").concat(t,", ").concat(n,")")},getExcludedComp:b,needDimension:function(e){var t=e.modifier,n=e.properties,r=e.layout,i=function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(t);return 0===i&&2===S({properties:n,layout:r})},getDimComp:function(e,t){var n=function(e){return e[arguments.length>1&&void 0!==arguments[1]?arguments[1]:0].qDef.qSortCriterias[0]}(e,t),r=p(t);if(!n.qSortByExpression&&!n.qSortByNumeric&&!n.qSortByAscii)return r;var i=["Descending","Ascending"],o=n.qSortByNumeric?"(Numeric, ".concat(i[(n.qSortByNumeric+1)/2],")"):"",a=n.qSortByAscii?"(Text, ".concat(i[(n.qSortByAscii+1)/2],")"):"";return n.qSortByNumeric&&n.qSortByAscii?"(".concat(r,", ").concat(o,", ").concat(a,")"):n.qSortByNumeric?"(".concat(r,", ").concat(o,")"):n.qSortByAscii?"(".concat(r,", ").concat(a,")"):r},simplifyExpression:h,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var n=t.indexOf(s);if(-1!==n){var r=t.indexOf(l);if(-1!==r)return t.substring(n+s.length,r)}}},initModifier:function(e,t){Object.keys(t).forEach((function(n){void 0===e[n]&&(e[n]=t[n])}))},isNumeric:u,isApplicable:function(e){var t=e.properties,n=e.layout,r=e.minDimensions,i=void 0===r?1:r,o=e.maxDimensions,a=void 0===o?2:o;if(!t&&!n)return!0;var s=S({properties:t,layout:n});return s>=i&&s<=a},getExpressionWithMarkers:c,canExtract:function(e){var t=e.indexOf(s),n=e.indexOf(l);return t>-1&&n>-1&&t<n},getDimDefWithWrapper:p,getFieldWithWrapper:function(e){var t=e?e.replace(/]/g,"]]"):e;return"[".concat(t,"]")},generateTSDExpression:function(e,t,n){var r=t||e.outputExpression;if(e.base&&e.base.qDef&&(r=t!==e.base.qDef?t:e.base.qDef),"observed"!==e.decomposition){var i=n.qHyperCubeDef.qMeasures.find((function(t){return t.qDef.base&&t.qDef.base.qLibraryId&&e.base&&e.base.qLibraryId?t.qDef.base.qLibraryId===e.base.qLibraryId:null}));i&&t!==i.qDef.qLabel&&(r=i.qLibraryId||i.qDef.base.qLibraryId?"[".concat(i.qDef.qLabel,"]"):i.qDef.base.qDef);var o=function(e){var t=a.OPTIONS.find((function(t){return t.value===e.decomposition}));return t?a.EXPRESSIONS[t.value]:""}(e);r=r.startsWith("=")?r.substr(1):r,r="".concat(o,"(").concat(r,", ").concat(e.steps,")")}return r},getDecomposition:function(e){var t="observed";return Object.values(a.EXPRESSIONS).find((function(n){var r=e.qDef.base.qDef.toLowerCase()||e.qDef.qDef.toLowerCase();return a.EXPRESSIONS[n]&&r.includes(a.EXPRESSIONS[n].toLowerCase())&&(t=n),n})),t}};function M(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function E(e){return E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},E(e)}var k=t().bind(null,!0),C={},T=Array.isArray;function A(e){return null!=e&&!Array.isArray(e)&&"object"===E(e)}function O(e){return void 0===e}function N(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function q(e,t){var n,r=t.substring(1).split("/").slice(0,-1);return r.forEach((function(t,i){if(i!==r.length){n=+t;var o=Number.isNaN(n)?{}:[];e[n||t]=O(e[n||t])?o:e[t],e=e[n||t]}})),e}function D(e,t){var n=!0;if(A(e)&&A(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((function(r){D(e[r],t[r])||(n=!1)})),n);if(T(e)&&T(t)){if(e.length!==t.length)return!1;for(var r=0,i=e.length;r<i;r+=1)if(!D(e[r],t[r]))return!1;return!0}return e===t}C.generate=function(e,t,n){n=n||"";var r=[];return Object.keys(t).forEach((function(i){var o=function(e){return e?k({},{val:e}).val:e}(t[i]),a=e[i],s="".concat(n,"/").concat(i);D(o,a)||N(t,i)||(O(a)?r.push({op:"add",path:s,value:o}):A(o)&&A(a)?r=r.concat(C.generate(a,o,s)):T(o)&&T(a)?r=r.concat(function(e,t,n){var r=[],i=e.slice(),o=-1;function a(e,t,n){if(e[n]&&O(e[n].qInfo))return null;if(e[n]&&e[n].qInfo.qId===t)return n;for(var r=0,i=e.length;r<i;r+=1)if(e[r]&&e[r].qInfo.qId===t)return r;return-1}if(D(t,i))return r;if(!O(t[0])&&O(t[0].qInfo))return r.push({op:"replace",path:n,value:t}),r;for(var s=i.length-1;s>=0;s-=1)-1===(o=a(t,i[s].qInfo&&i[s].qInfo.qId,s))?(r.push({op:"remove",path:"".concat(n,"/").concat(s)}),i.splice(s,1)):r=r.concat(C.generate(i[s],t[o],"".concat(n,"/").concat(s)));for(var l=0,c=t.length;l<c;l+=1)-1===(o=a(i,t[l].qInfo&&t[l].qInfo.qId))?(r.push({op:"add",path:"".concat(n,"/").concat(l),value:t[l]}),i.splice(l,0,t[l])):o!==l&&(r.push({op:"move",path:"".concat(n,"/").concat(l),from:"".concat(n,"/").concat(o)}),i.splice(l,0,i.splice(o,1)[0]));return r}(a,o,s)):r.push({op:"replace",path:"".concat(n,"/").concat(i),value:o}))})),Object.keys(e).forEach((function(i){O(t[i])&&!N(e,i)&&r.push({op:"remove",path:"".concat(n,"/").concat(i)})})),r},C.apply=function(e,t){t.forEach((function(t){var n,r,i=q(e,t.path),o=t.path.split("/").splice(-1)[0],a=o&&Number.isNaN(+o)?i[o]:i[+o]||i,s=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(i=null,a=e),"add"===t.op||"replace"===t.op)if(T(i))"-"===o&&(o=i.length),i.splice(+o,"add"===t.op?0:1,t.value);else if(T(a)&&T(t.value)){var l,c=t.value.slice();a.length=0,(l=a).push.apply(l,function(e){if(Array.isArray(e))return M(e)}(r=c)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||function(e,t){if(e){if("string"==typeof e)return M(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?M(e,t):void 0}}(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}else if(A(a)&&A(t.value))n=a,Object.keys(n).forEach((function(e){Object.getOwnPropertyDescriptor(n,e).configurable&&!N(n,e)&&delete n[e]})),k(a,t.value);else{if(!i)throw new Error("Patchee is not an object we can patch");i[o]=t.value}else if("move"===t.op){var u=q(e,t.from);T(i)?i.splice(+o,0,u.splice(+s,1)[0]):(i[o]=u[s],delete u[s])}else"remove"===t.op&&(T(i)?i.splice(+o,1):delete i[o])}))},C.clone=function(e){return k({},e)},C.createPatch=function(e,t,n){var r={op:e.toLowerCase(),path:n};return"move"===r.op?r.from=t:void 0!==t&&(r.value=t),r},C.updateObject=function(e,t){Object.keys(e).length?C.apply(e,C.generate(e,t)):k(e,t)};const R=C,I=function(e,n,r){if(!e)return Promise.resolve();var i=R.generate(n,r);return t()(!0,n,r),i&&i.length?(i=i.map((function(e){return{qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}})),e.applyPatches(i,!0)):Promise.resolve()};var _="accumulation";function P(e,t){var n=o(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===_)return n[r]}function L(e,t){var n=function(e,t){var n=o(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===_)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var z={type:"accumulation",disabled:!1,accumulationDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullAccumulation:!1,steps:6,outputExpression:""};const F={translationKey:"properties.modifier.accumulation",needDimension:w.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return w.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,i=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!n)return t;var l=a;void 0===l&&(l=w.getNumDimensions({properties:r,layout:i}));var c=o(r,"qHyperCubeDef.qDimensions",[]),u=w.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:c,dimensionAndFieldList:s}),d=w.getNumStepComp(n,l),f=w.getAboveComp(n,l,u,d),h=w.getRangeComp("RangeSum",f);if(w.needDimension({modifier:n,properties:r,layout:i})){var p=w.getDimComp(c,1),m=w.getDimComp(c,0),g=w.getAggrComp(h,p,m);h=n.showExcludedValues?w.getExcludedComp({modifier:n,dimensions:c,dimensionAndFieldList:s,valueComp:g}):g}return h},extractInputExpression:w.extractInputExpression,initModifier:function(e){w.initModifier(e,z)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.accumulation.disclaimer",show:function(e,t){return!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(L(t,e),".accumulationDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.accumulation.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(L(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.accumulation.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(L(t,e),".fullAccumulation")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(L(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var n=P(t,e);if(n){var r=n.steps;n.steps="number"!=typeof r||Number.isNaN(r)?6:Math.abs(r)}},show:function(t){var n=P(t,e);return n&&!n.fullAccumulation}},showExcludedValues:{refFn:function(t){return"".concat(L(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,n,r){var i=r.ext.support.modifiers;if(!Array.isArray(i)||-1===i.indexOf(_))return!1;var o=P(t,e);return o&&!o.disabled}};return n}};var j="movingAverage";function $(e,t){var n=o(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===j)return n[r]}function H(e,t){var n=function(e,t){var n=o(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===j)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var B={type:"movingAverage",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullRange:!1,steps:6,outputExpression:"",nullSuppression:!1};const V={translationKey:"properties.modifier.movingAverage",needDimension:w.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return w.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t,n=e.expression,r=e.modifier,i=e.properties,a=e.layout,s=e.numDimensions,l=e.dimensionAndFieldList;if(!r)return n;var c=s;void 0===c&&(c=w.getNumDimensions({properties:i,layout:a}));var u=o(i,"qHyperCubeDef.qDimensions",[]),d=r.showExcludedValues&&r.nullSuppression,f=w.getExpressionWithExcludedComp({expression:n,modifier:r,dimensions:u,dimensionAndFieldList:l,treatMissingAsNull:d}),h=w.getNumStepComp(r,c),p=w.getAboveComp(r,c,f,h);if(r.nullSuppression)t=w.getRangeComp("RangeAvg",p);else{var m=w.getRangeComp("RangeSum",p),g=function(e,t){var n=w.getRowNoComp(e,t);if(!w.isFullRange(e)){var r=e.steps,i="number"!=typeof r||Number.isNaN(r)?6:r;return"RangeMin(".concat(i,", ").concat(n,")")}return n}(r,c);t="".concat(m," / ").concat(g)}var y=t;if(w.needDimension({modifier:r,properties:i,layout:a})){var v=w.getDimComp(u,1),b=w.getDimComp(u,0),x=w.getAggrComp(y,v,b);y=r.showExcludedValues?w.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:l,funcComp:"Only",valueComp:x}):x}return y},extractInputExpression:w.extractInputExpression,initModifier:function(e){w.initModifier(e,B)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.movingAverage.disclaimer",show:function(e,t){return!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(H(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.movingAverage.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(H(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.movingAverage.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(H(t,e),".fullRange")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(H(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var n=$(t,e);if(n){var r=n.steps;n.steps="number"!=typeof r||Number.isNaN(r)?6:Math.abs(r)}},show:function(t){var n=$(t,e);return n&&!n.fullRange}},showExcludedValues:{refFn:function(t){return"".concat(H(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat(H(t,e),".nullSuppression")},type:"boolean",translation:t.showNull||"properties.dimensions.showNull",schemaIgnore:!0,defaultValue:!1,inverted:!0}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,n,r){var i=r.ext.support.modifiers;if(!Array.isArray(i)||-1===i.indexOf(j))return!1;var o=$(t,e);return o&&!o.disabled}};return n}};var U="timeSeriesDecomposition";function W(e,t){var n=o(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===U)return n[r]}function Y(e,t){var n=function(e,t){var n=o(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===U)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var X={type:"timeSeriesDecomposition",disabled:!1,decomposition:"",steps:2,outputExpression:""};const G={translationKey:"properties.modifier.timeSeriesDecomposition",needDimension:w.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return w.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties;return n?w.generateTSDExpression(n,t,r):t},extractInputExpression:w.extractInputExpression,initModifier:function(e,t){w.initModifier(e,X),""===e.decomposition&&t&&(e.decomposition=w.getDecomposition(t))},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.timeSeriesDecomposition||"properties.modifier.timeSeriesDecomposition",show:function(e,t){return!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{decomposition:{refFn:function(t){return"".concat(Y(t,e),".decomposition")},type:"string",translation:t.modifierTrendDecompositionDecomposition||"properties.modifier.trendDecomposition.decomposition",component:"dropdown",schemaIgnore:!0,defaultValue:t.trendDecompositionParametersDecompositionObserved||"cao.trendDecomposition.parameters.decomposition.observed",options:a.OPTIONS},steps:{refFn:function(t){return"".concat(Y(t,e),".steps")},type:"integer",translation:t.modifierTimeSeriesDecompositionPeriods||"properties.modifier.timeSeriesDecomposition.periods",schemaIgnore:!0,defaultValue:2,change:function(t,n){var r=W(t,e);if(r){var i=r.steps;r.steps="number"!=typeof i||Number.isNaN(i)?2:Math.abs(i),n.properties.qHyperCubeDef.qMeasures=n.properties.qHyperCubeDef.qMeasures.map((function(e){return e.qDef.modifiers.map((function(e){return"timeSeriesDecomposition"===e.type?e.steps=i:e.steps=e.steps,e})),e}))}},show:function(t){var n=W(t,e);return n&&!n.fullRange}}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,n,r){var i=r.ext.support.modifiers;if(!Array.isArray(i)||-1===i.indexOf(U))return!1;var o=W(t,e);return o&&!o.disabled}};return n}};var K="difference";function J(e,t){var n=o(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===K)return n[r]}function Q(e,t){var n=function(e,t){var n=o(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===K)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var Z={type:"difference",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,outputExpression:""};const ee={translationKey:"properties.modifier.difference",needDimension:w.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return w.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},extractInputExpression:w.extractInputExpression,generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,i=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!n)return t;var l=a;void 0===l&&(l=w.getNumDimensions({properties:r,layout:i}));var c=o(r,"qHyperCubeDef.qDimensions",[]),u=w.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:c,dimensionAndFieldList:s}),d=w.getAboveComp(n,l,u),f="".concat(u," - ").concat(d);if(w.needDimension({modifier:n,properties:r,layout:i})){var h=w.getDimComp(c,1),p=w.getDimComp(c,0),m=w.getAggrComp(f,h,p);f=n.showExcludedValues?w.getExcludedComp({modifier:n,dimensions:c,dimensionAndFieldList:s,funcComp:"Only",valueComp:m}):m}return f},initModifier:function(e){Object.keys(Z).forEach((function(t){void 0===e[t]&&(e[t]=Z[t])}))},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.difference.disclaimer",show:function(e,t){return!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(Q(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.difference.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(Q(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.difference.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},showExcludedValues:{refFn:function(t){return"".concat(Q(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,n,r){var i=r.ext.support.modifiers;if(!Array.isArray(i)||-1===i.indexOf(K))return!1;var o=J(t,e);return o&&!o.disabled}};return n}};var te="normalization";function ne(e,t){var n=o(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===te)return n[r]}function re(e,t){var n=function(e,t){var n=o(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===te)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}function ie(e,t){for(var n=0;n<e.length;n++)if(e[n].value===t)return n;return-1}var oe={type:"normalization",disabled:!1,primaryDimension:0,outputExpression:"",dimensionalScope:2,selectionScope:2};function ae(e){return 2===e?"{1}":""}function se(e,t,n){return 1===e?"{$<".concat(w.getFieldWithWrapper(t),"={'").concat(n,"'}>}"):""}function le(e,t){return 0===e&&t>1||2===e?"Total":""}function ce(e,t,n){return 0===e&&t>1?"<".concat(w.getDimDefWithWrapper(n),">"):""}const ue={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,n=e.layout;return w.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},extractInputExpression:w.extractInputExpression,generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,i=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!n)return t;var l=a;void 0===l&&(l=w.getNumDimensions({properties:r,layout:i}));var c=o(r,"qHyperCubeDef.qDimensions",[]),u=w.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:c,dimensionAndFieldList:s}),d=n.selectionScope,f=n.dimensionalScope;return function(e,t,n,r,i,o,a){var s=ae(t),l=se(t,n,r),c=""===s&&""===l?"":s||l,u=le(i,o),d=ce(i,o,a),f=function(e){for(var t=[],n=0;n<e;n++)t[n]=w.getDimDefWithWrapper(n);return t.join(", ")}(o);return"".concat(e,"/ Sum(").concat(c," ").concat(u).concat(d," Aggr(").concat(c," ").concat(e,", ").concat(f,"))")}(u,d,n.field,n.value,f,l,n.primaryDimension)},initModifier:function(e){Object.keys(oe).forEach((function(t){void 0===e[t]&&(e[t]=oe[t])}))},updateModifier:function(e,t){1===(t.qDimensions?t.qDimensions.length:0)&&0===e.dimensionalScope&&(e.dimensionalScope=2)},enableTotalsFunction:function(){return!0},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.normalization.disclaimer",show:function(e,t){return!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{selectionScope:{refFn:function(t){return"".concat(re(t,e),".selectionScope")},type:"string",translation:t.modifierSelectionScope||"properties.modifier.selectionScope",title:{translation:t.modifierSelectionScopeTooltip||"properties.modifier.selectionScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,options:function(n){return function(e,t,n){var r=[{value:0,translation:t.selectionScopeCurrentSelection||"properties.modifier.selectionScope.currentSelection"},{value:1,translation:t.selectionScopeSpecificValue||"properties.modifier.selectionScope.selectAField"},{value:2,translation:t.selectionScopeTotal||"properties.modifier.selectionScope.total"}];return r=function(e,t,n){if(1===e){var r=ie(t,0);t.splice(r,1)}return t}(ne(e,n).dimensionalScope,r),r}(n,t,e)}},field:{refFn:function(t){return"".concat(re(t,e),".field")},type:"string",component:"expression-with-dropdown",translation:"Common.Field",defaultValue:"",dropdownOnly:!0,options:function(e,t,n){return n.app.getFieldList().then((function(e){return e.map((function(e){return{label:e.qName,value:e.qName}}))}))},show:function(t){return 1===ne(t,e).selectionScope}},value:{refFn:function(t){return"".concat(re(t,e),".value")},type:"string",ref:"value",component:"string",translation:"properties.value",expression:"optional",show:function(t){return 1===ne(t,e).selectionScope}},dimensionalScope:{refFn:function(t){return"".concat(re(t,e),".dimensionalScope")},type:"string",translation:t.modifierDimensionalScope||"properties.modifier.dimensionalScope",title:{translation:t.modifierDimensionalScopeTooltip||"properties.modifier.dimensionalScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,supportTooltip:!0,options:function(n,r){return function(e,t,n,r){var i=t.layout.qHyperCube.qDimensionInfo.length,o=[{value:0,translation:n.dimensionalScopeOneDimension||"properties.modifier.dimensionalScope.respectOneDimension",tooltipTranslation:n.dimensionalScopeOneDimensionTooltip||"properties.modifier.dimensionalScope.respectOneDimension.tooltip"},{value:1,translation:n.dimensionalScopeAllDimensions||"properties.modifier.dimensionalScope.".concat(2===i?"respectAllDimensions":"respectDimension"),tooltipTranslation:n.dimensionalScopeAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===i?"respectAllDimensions":"respectDimension",".tooltip")},{value:2,translation:n.dimensionalScopeDisregardAllDimensions||"properties.modifier.dimensionalScope.".concat(2===i?"disregardAllDimensions":"disregardDimension"),tooltipTranslation:n.dimensionalScopeDisregardAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===i?"disregardAllDimensions":"disregardDimension",".tooltip")}];return o=function(e,t,n){if(e<2){var r=ie(t,0);t.splice(r,1)}return t}(i,o),o=function(e,t,n){if(0===e){var r=ie(t,1);t.splice(r,1)}return t}(ne(e,r).selectionScope,o),o}(n,r,t,e)}},primaryDimension:{refFn:function(t){return"".concat(re(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.normalization.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(t,n){return 0===(ne(t,e).dimensionalScope||0)&&n.layout.qHyperCube.qDimensionInfo.length>1}}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,n,r){var i=r.ext.support.modifiers;if(!Array.isArray(i)||-1===i.indexOf(te))return!1;var o=ne(t,e);return o&&!o.disabled}};return n},getDisregardSelectionComp:ae,getFieldSelectionComp:se,getTotalComp:le,getSelectedDimComp:ce};var de="qDef.base",fe="qDef.qDef",he="qDef.base.qDef",pe="qLibraryId",me="qDef.base.qLibraryId";const ge={getExpression:function(e){var t=o(e,he);return void 0!==t?t:o(e,fe)},getExpressionRef:function(e){return void 0!==o(e,he)?he:fe},getLibraryIdRef:function(e){return o(e,me)?me:pe},getLibraryId:function(e){return o(e,me)||o(e,pe)},getLabelRef:function(e){return o(e,de)?"qDef.base.qLabel":"qDef.qLabel"},getLabelExpressionRef:function(e){return o(e,de)?"qDef.base.qLabelExpression":"qDef.qLabelExpression"}};var ye="qDef.qDef",ve="qDef.base.qDef",be="qLibraryId",xe="qDef.base.qLibraryId",Se="qDef.qLabel",we="qDef.qLabelExpression",Me="qDef.base.qLabel",Ee="qDef.base.qLabelExpression",ke="qDef.qAggrFunc",Ce="qDef.base.qAggrFunc",Te={initBase:function(e,t){(t||Te.isValid(e))&&(n(e,ve,o(e,ye)),n(e,xe,o(e,be)),n(e,Me,o(e,Se)),n(e,Ee,o(e,we)))},restoreBase:function(e){Te.isValid(e)&&(n(e,ye,o(e,ve)),n(e,be,o(e,xe)),n(e,Se,o(e,Me)),n(e,we,o(e,Ee)),o(e,ke)&&o(e,Ce)&&n(e,ke,o(e,Ce)),delete e.qDef.base)},isValid:function(e){var t=o(e,ve),n=o(e,xe);return void 0!==t||void 0!==n}};const Ae=Te;function Oe(e){return Oe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Oe(e)}var Ne={accumulation:F,movingAverage:V,difference:ee,normalization:ue,timeSeriesDecomposition:G};const qe={modifiers:Ne,apply:Re,applyModifiers:Ie,cleanUpMeasure:_e,destroy:function(e){e&&De[e.id]&&De[e.id].masterItemSubscriber&&(De[e.id].masterItemSubscriber&&De[e.id].masterItemSubscriber.unsubscribe(),delete De[e.id])},hasActiveModifiers:Pe,getActiveModifier:Le,initBase:Ae.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some((function(e){return Ne[e]}))},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,n=e.properties,r=e.layout;return Array.isArray(t)&&t.some((function(e){return Ne[e]&&Ne[e].isApplicable({properties:n,layout:r})}))},measureBase:ge,limitedSorting:function(e){var t=e.measures,n=e.properties,r=e.layout,i=!1,o=!1;return t.forEach((function(e){var t=je(e);Ye({modifiers:t,properties:n,layout:r})&&(i=!0,o=o||Qe({modifiers:t,properties:n,layout:r}))})),i&&!o},ifEnableTotalsFunction:ze};var De={};function Re(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.model,r=e.properties,i=e.isSnapshot,a=void 0!==i&&i,s=e.masterItem,l=!1;De[n.id]=De[n.id]||{isFirstTime:!0};var c=De[n.id].isFirstTime;if(De[n.id].isFirstTime=!1,r&&"object"===Oe(r))return Ie({model:n,properties:r});var u=n?n.layout:void 0,d=o(u,"qSelectionInfo.qInSelections");if(a||d)return Promise.resolve(l);var f=o(u,"qHyperCube.qMeasureInfo"),h=De[n.id].lastReloadTime;if(De[n.id].lastReloadTime=o(n,"app.layout.qLastReloadTime"),Pe({measures:f,layout:u})){var p=function(e){var t=e.measures,n=e.layout,r=e.lastReloadTime;return o(e.model,"app.layout.qLastReloadTime")!==r&&function(e){var t=e.measures,n=e.properties,r=e.layout;return!!Array.isArray(t)&&t.some((function(e){return We({measure:e,properties:n,layout:r})}))}({measures:t,layout:n})}({measures:f,layout:u,model:n,lastReloadTime:h});return p||function(e){var t=e.measures,n=e.layout,r=e.masterItem,i=e.isFirstTime;return!!Array.isArray(t)&&(i||r||t.some((function(e){return function(e){var t=e.measure,n=e.layout;return Ye({modifiers:je(t),layout:n})?!t.base:!!t.base}({measure:e,layout:n})})))}({measures:f,layout:u,masterItem:s,isFirstTime:c})?n.getEffectiveProperties().then((function(e){var r=t()(!0,{},e);He(r);var i=Ze(r);return Xe({model:n}).then((function(t){return Ge({libraryIds:i,model:n}).then((function(i){return p&&function(e){var t=e.properties;Fe(t).forEach((function(e){return function(e){var t=e.measure;if(We({measure:t,properties:e.properties})){var n=0,r=t.qDef.modifiers;Array.isArray(r)&&r.forEach((function(e){if("object"===Oe(e)&&!e.disabled){if(n++,"object"!==Oe(Ne[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(n>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");var r=Ne[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==r&&Ve(t)&&w.simplifyExpression(t.qDef.base.qDef)!==w.simplifyExpression(r)&&(t.qDef.base.qDef=r)}}))}}({measure:e,properties:t})}))}({properties:r}),Ie({model:n,oldProperties:e,properties:r,runUpdateIfChange:!0,masterItem:s,libraryItemsProps:i,dimensionAndFieldList:t})}))}))})):Promise.resolve(l)}return function(e){return!!Array.isArray(e)&&e.some((function(e){return"object"===Oe(e.base)}))}(f)?n.getEffectiveProperties().then((function(e){return function(e){var n=e.model,r=e.properties,i=Ze(r);return et({model:n,libraryIds:i}).then((function(){var e=t()(!0,{},r);return Fe(r).forEach((function(e){return _e(e)})),Je({oldProperties:e,newProperties:r,model:n})}))}({model:n,properties:e})})):Promise.resolve(l)}function Ie(e){var n=e.model,r=e.oldProperties,i=e.properties,a=e.measures,s=e.runUpdateIfChange,l=void 0!==s&&s,c=e.masterItem,u=e.libraryItemsProps,d=e.dimensionAndFieldList;void 0===r&&(r=l?t()(!0,{},i):i),He(i);var f=Ze(i);return et({model:n,libraryIds:f,masterItem:c}).then((function(){return function(e){var n=e.measures,r=e.properties,i=e.model,a=e.libraryItemsProps,s=e.dimensionAndFieldList;if(n||(n=Fe(r)),!n.length)return Promise.resolve();if(!Pe({measures:n,properties:r}))return n.forEach((function(e){return _e(e)})),Promise.resolve();var l=a?void 0:Ze(r);return Xe({model:i,dimensionAndFieldList:s}).then((function(e){return Ge({libraryIds:l,model:i,libraryItemsProps:a}).then((function(i){n.forEach((function(n){Ye({modifiers:n.qDef.modifiers,properties:r})?(function(e){var n=e.measure,r=e.properties,i=e.libraryItemsProps,a=e.dimensionAndFieldList,s=0;Ae.isValid(n)||Ae.initBase(n,!0);var l=n.qDef,c=l.modifiers,u=l.base;Array.isArray(c)&&c.forEach((function(e){if("object"===Oe(e)&&!e.disabled){if(s++,"object"!==Oe(Ne[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(s>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");Ne[e.type].initModifier(e,n);var l=n.qLibraryId||u&&u.qLibraryId;l?function(e){var n=e.measure,r=e.modifier,i=e.properties,o=e.dimensionAndFieldList,a=e.libraryItemsProps[e.libraryId],s=a.qMeasure.qDef,l=""===s?s:Ne[r.type].generateExpression({expression:s,modifier:r,properties:i,dimensionAndFieldList:o});r.outputExpression=l,n.qDef.qDef=r.outputExpression,(n.qDef.qLabel||a.qMeasure.qLabel)&&(n.qDef.qLabel=a.qMeasure.qLabel),(n.qDef.qLabelExpression||a.qMeasure.qLabelExpression)&&(n.qDef.qLabelExpression=a.qMeasure.qLabelExpression),n.qDef.quarantine&&n.qDef.quarantine.qNumFormat&&a.qMeasure.qNumFormat&&(n.qDef.qNumFormat=a.qMeasure.qNumFormat,n.qDef.isCustomFormatted=a.qMeasure.isCustomFormatted),delete n.qLibraryId,n.qDef.coloring=a.qMeasure.coloring,r.base=t()(!0,{},n.qDef.base)}({measure:n,modifier:e,libraryId:l,properties:r,libraryItemsProps:i,dimensionAndFieldList:a}):function(e){var n=e.measure,r=e.modifier,i=e.properties,o=e.dimensionAndFieldList;"function"==typeof Ne[r.type].updateModifier&&Ne[r.type].updateModifier(r,i.qHyperCubeDef);var a=ge.getExpression(n),s=""===a?a:Ne[r.type].generateExpression({expression:a,modifier:r,properties:i,dimensionAndFieldList:o});r.outputExpression=s,n.qDef.qDef=r.outputExpression,n.qDef.base.qLabelExpression?n.qDef.qLabelExpression=n.qDef.base.qLabelExpression:n.qDef.qLabel=n.qDef.base.qLabel||a,r.base=t()(!0,{},n.qDef.base)}({measure:n,modifier:e,properties:r,dimensionAndFieldList:a}),function(e){var t=o(e,"qDef.qAggrFunc");"Expr"!==t||ze(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&ze(e)&&"Expr"===e.qDef.base.qAggrFunc&&(e.qDef.qAggrFunc="Expr",delete e.qDef.base.qAggrFunc):(e.qDef.qAggrFunc="None",e.qDef.base.qAggrFunc="Expr")}(n)}}))}({measure:n,properties:r,libraryItemsProps:i,dimensionAndFieldList:e}),Be(n)):_e(n)}))}))}))}({measures:a,properties:i,model:n,libraryItemsProps:u,dimensionAndFieldList:d}).then((function(){return l?Je({oldProperties:r,newProperties:i,model:n}):Promise.resolve(!1)}))}))}function _e(e){!function(e){var t=je(e);return Array.isArray(t)&&t.some((function(e){return"object"===Oe(e)&&!e.disabled&&!Ne[e.type]}))}(e)?Ae.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,Be(e)}function Pe(e){var t=e.measures,n=e.properties,r=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ye({modifiers:je(e),properties:n,layout:r})}))}function Le(e){var t=je(e);if(Array.isArray(t))for(var n=0;n<t.length;n++){var r=t[n];if(Ne[r.type]&&!r.disabled)return r}}function ze(e){var t=Le(e);return!t||Ne[t.type].enableTotalsFunction(e)}function Fe(e){return o(e,"qHyperCubeDef.qMeasures",[]).concat(o(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function je(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function $e(e){return o(e,"outputExpression.qValueExpression.qExpr")||o(e,"outputExpression")}function He(e){Fe(e).forEach((function(e){return function(e){var n=Le(e);n&&(void 0!==n.outputExpression&&$e(n)!==e.qDef.qDef?delete e.qDef.base:!Ae.isValid(e)&&n.base&&(e.qDef.base=t()(!0,{},n.base)))}(e)}))}function Be(e){var t=je(e);Array.isArray(t)&&t.forEach((function(t){"object"===Oe(t)&&(t.disabled||!Ne[t.type]&&$e(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)}))}function Ve(e){return e.base||e.qDef&&e.qDef.base}function Ue(e){var t=Ve(e);return e.qLibraryId||t&&t.qLibraryId}function We(e){var t=e.measure,n=e.properties,r=e.layout;return!Ue(t)&&Ye({modifiers:je(t),properties:n,layout:r})}function Ye(e){var t=e.modifiers,n=e.properties,r=e.layout,i={};return Array.isArray(t)&&t.some((function(e){return!("object"!==Oe(e)||e.disabled||!Ne[e.type])&&(void 0===i[e.type]&&(i[e.type]=Ne[e.type].isApplicable({properties:n,layout:r})),i[e.type])}))}function Xe(e){var t=e.model,n=e.dimensionAndFieldList;if(n)return Promise.resolve(n);var r=[],i={},o=t.app.getDimensionList().then((function(e){i.dimensionList=e}));r.push(o);var a=t.app.getFieldList().then((function(e){i.fieldList=e}));return r.push(a),Promise.all(r).then((function(){return i}))}function Ge(e){var t=e.libraryIds,n=e.model,r=e.libraryItemsProps;if(r)return Promise.resolve(r);var i=t.measureLibraryIds,o=t.dimensionLibraryIds,a={},s=[];return i.forEach((function(e){var t=n.app.getMeasure(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));s.push(t)})),o.forEach((function(e){var t=n.app.getDimension(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));s.push(t)})),Promise.all(s).then((function(){return a}))}function Ke(e,t){if(""!==t||-1===["qFmt","qDec","qThou"].indexOf(e))return t}function Je(e){var t=e.oldProperties,n=e.newProperties,r=e.model,i=JSON.stringify(o(t,"qHyperCubeDef.qMeasures"),Ke)!==JSON.stringify(o(n,"qHyperCubeDef.qMeasures"),Ke)||JSON.stringify(o(t,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Ke)!==JSON.stringify(o(n,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Ke);return i?function(e){var t=e.model,n=e.oldProperties,r=e.newProperties,i=t.layout;return i&&!i.qHasSoftPatches&&!i.qExtendsId&&o(i,"qMeta.privileges",[]).indexOf("update")>-1?t.setProperties(r):I(t,n,r)}({model:r,oldProperties:t,newProperties:n}).then((function(){return i})):Promise.resolve(i)}function Qe(e){var t=e.modifiers,n=e.properties,r=e.layout;return Array.isArray(t)&&t.some((function(e){return"object"===Oe(e)&&!e.disabled&&Ne[e.type]&&Ne[e.type].needDimension({modifier:e,properties:n,layout:r})}))}function Ze(e){var t=Fe(e),n=[],r=[],i=!1;return t.forEach((function(t){var r=je(t);if(Ye({modifiers:r,properties:e})){var o=Ue(t);o&&n.push(o),i=i||Qe({modifiers:r,properties:e})}})),o(e,"qHyperCubeDef.qDimensions",[]).forEach((function(e){var t=e.qLibraryId;t&&r.push(t)})),{measureLibraryIds:n,dimensionLibraryIds:r}}function et(e){var t=e.model,n=e.libraryIds;return!e.masterItem&&n&&(n.measureLibraryIds.length||n.dimensionLibraryIds.length)?(De[t.id].masterItemSubscriber=De[t.id].masterItemSubscriber||function(e){var t=e.model,n=e.callback,r={},i={},a={},s={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function l(e){var t={},n=o(e,"qInfo.qType");return n&&s[n]&&s[n].forEach((function(n){t[n]=o(e,n)})),JSON.stringify(t)}function c(e){var t=e.qInfo.qId;if(r[t]){var i=l(e);r[t].properties!==i&&(r[t].properties=i,"function"==typeof n&&r[t].enabled&&n(e)),r[t].enabled=!0}}function u(e,n){return t.app[n](e).then((function(t){r[e]={listener:t.layoutSubscribe(c),enabled:!1,properties:l(t.layout)}}))}return{subscribe:function(e){var n=e.measureLibraryIds,o=e.dimensionLibraryIds,s=[];return function(e){var t=e.dimensionLibraryIds;i={},e.measureLibraryIds.forEach((function(e){i[e]=!0})),a={},t.forEach((function(e){a[e]=!0}))}({measureLibraryIds:n,dimensionLibraryIds:o}),Object.keys(r).forEach((function(e){i[e]||a[e]||(r[e].listener.dispose(),delete r[e])})),t.app&&(Object.keys(i).forEach((function(e){i[e]&&!r[e]&&s.push(u(e,"getMeasure"))})),Object.keys(a).forEach((function(e){a[e]&&!r[e]&&s.push(u(e,"getDimension"))}))),Promise.all(s)},unsubscribe:function(){Object.keys(r).forEach((function(e){r[e].listener.dispose()})),r={}}}}({model:t,callback:function(e){return Re({model:t,masterItem:e}).then((function(){return t.app.clearUndoBuffer()}))}}),De[t.id].masterItemSubscriber.subscribe(n)):Promise.resolve()}})(),t.default=i.default,Object.defineProperty(t,"__esModule",{value:!0})})()}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={exports:{}};return e[r](o,o.exports,n),o.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var r={};return(()=>{function e(t){var n,r=t;return r>9?(n=65+r-10)>90&&(n+=6):r="".concat(r).charCodeAt(0),[48,111,79,105,73,108].indexOf(n)>-1?e(r+1):String.fromCharCode(n)}function t(n){var r=e(n%62),i=Math.floor(n/62);return i>0?t(i)+r:r}function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}n.d(r,{default:()=>He});const o={getValue:function(e,t,n){if(null==e||null==t)return n;for(var r=t.split("."),i=e,o=0;o<r.length;++o){var a=r[o];if(""!==a){if(void 0===i[a]||null===i[a])return n;i=i[a]}}return i},setValue:function(e,t,n){if(null!=e&&null!=t){for(var r=t.split("."),i=r[r.length-1],o=e,a=0;a<r.length-1;++a){var s=r[a];void 0!==o[s]&&null!==o[s]||(o[s]=Number.isNaN(+r[a+1])?{}:[]),o=o[s]}void 0!==n?o[i]=n:delete o[i]}},isEmpty:function(e){return 0===Object.keys(e).length&&e.constructor===Object},isAtomicValue:function(e){return/boolean|number|string/.test(i(e))},generateId:function(){return t(Math.round(99e11*Math.random()+1e11)).replace(/\W/g,"")}};function a(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function l(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function u(e,t,n){if(e){for(var r=0;r<e.length;r++)if(e[r][t]===n)return r;return-1}return-1}const d={isOrderedSubset:function(e,t){if(!(e&&t&&e.length&&t.length))return!1;var n=e.indexOf(t[0]);if(-1!==n){for(var r=0;r<t.length;r++){var i=e.indexOf(t[r]);if(n>i)return!1;n=i}return!0}return!1},indexAdded:function(e,t){var n;for(n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)},indexRemoved:function(e,t){var n,r=0;for(n=0;n<e.length;++n)e[n]>t?--e[n]:e[n]===t&&(r=n);return e.splice(r,1),r},findItemByPropertyValue:function(e,t,n){if(e){for(var r=0;r<e.length;r++)if(e[r][t]===n)return e[r];return null}return null},findIndexByPropertyValue:u};var f=n(645),h=n.n(f);const p=function(e){var t,n=e.exportFormat,r=e.qHyperCubeDef,i=n.data[0];(t=i.dimensions).push.apply(t,a(r.qDimensions));var s,l=o.getValue(r,"qLayoutExclude.qHyperCubeDef.qDimensions");l&&(s=i.excludedDimensions).push.apply(s,a(l))},m=function(e){var t,n=e.exportFormat,r=e.qHyperCubeDef,i=n.data[0];(t=i.measures).push.apply(t,l(r.qMeasures));var a,s=o.getValue(r,"qLayoutExclude.qHyperCubeDef.qMeasures");s&&(a=i.excludedMeasures).push.apply(a,l(s))},g=function(e){var t=e.exportFormat,n=e.qHyperCubeDef,r=t.data[0];n.qInterColumnSortOrder||(n.qInterColumnSortOrder=[]),r.interColumnSortOrder=n.qInterColumnSortOrder.concat();var i=o.getValue(n,"qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder");i&&d.isOrderedSubset(i,r.interColumnSortOrder)&&(r.interColumnSortOrder=i.concat())},y=function(e){var t=e.exportFormat,n=e.properties;Object.keys(n).forEach((function(e){t.properties[e]=n[e]}))},v=function(e){var t=e.exportFormat,n=e.properties;n.qLayoutExclude||(n.qLayoutExclude={}),n.qLayoutExclude.disabled&&(Object.keys(n.qLayoutExclude.disabled).forEach((function(e){t.properties.hasOwnProperty(e)||(t.properties[e]=n.qLayoutExclude.disabled[e])})),delete n.qLayoutExclude.disabled),n.qLayoutExclude.changed&&(function(e){Object.keys(e.qLayoutExclude.changed).forEach((function(t){e.qLayoutExclude.changed[t].to===o.getValue(e,t)&&o.setValue(e,t,e.qLayoutExclude.changed[t].from)}))}(n),delete n.qLayoutExclude.changed),n.qLayoutExclude.quarantine&&!o.isEmpty(n.qLayoutExclude.quarantine)||delete n.qLayoutExclude},b=function(e){e.forEach((function(e){h().cleanUpMeasure(e),e.qDef.modifiers&&(e.store={modifiers:e.qDef.modifiers},delete e.qDef.modifiers)}))};function x(e,t,n){var r,i,a=o.getValue(e,t);if(!o.isAtomicValue(a))try{if((i=(i=(r=JSON.stringify(a)).match(/:\{/g))?i.length:0)>2)return;a=JSON.parse(r)}catch(e){return}o.getValue(e,"qLayoutExclude.quarantine")||o.setValue(e,"qLayoutExclude.quarantine",{});var s=o.getValue(e,"qLayoutExclude.quarantine");s[n]||(s[n]={}),s[n][t]=a}var S=n(229),w=n.n(S);function M(e,t){var n=w()(!0,{},t,e);return o.getValue(n,"qOtherTotalSpec.qOtherCounted")||o.setValue(n,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),o.getValue(n,"qOtherTotalSpec.qOtherLimit")||o.setValue(n,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),n.hasOwnProperty("othersLabel")||(n.othersLabel="Others"),n}function E(e,t){return w()(!0,{},t,e)}function k(e,t,n){return"function"==typeof e?e(t):Number.isNaN(+e)?n:e}var C=Math.pow(2,53)-1;function T(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function A(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}const O=function(e,t,n){var r="masterobject"===o.getValue(t,"properties.qInfo.qType")?"masterobject":o.getValue(n,"qInfo.qType");o.setValue(e,"qInfo.qType",r),e.visualization=n.visualization},N=function(e,t,n){t.hasOwnProperty(e)&&(n[e]=t[e])},q=function(e,t,n,r){t.hasOwnProperty(e)?n[e]=t[e]:n[e]=r},D=function(){return{qDef:{autoSort:!0,cId:"",othersLabel:"Others"},qLibraryId:"",qNullSuppression:!1,qOtherLabel:"Others",qOtherTotalSpec:{qOtherLimitMode:"OTHER_GE_LIMIT",qOtherMode:"OTHER_OFF",qOtherSortMode:"OTHER_SORT_DESCENDING",qSuppressOther:!1}}},R=function(){return{qDef:{autoSort:!0,cId:"",numFormatFromTemplate:!0},qLibraryId:"",qTrendLines:[]}},I=function(e){var t,n=e.exportFormat,r=e.maxDimensions,i=e.minDimensions,o=e.newHyperCubeDef,a=e.defaultDimension,s=n.data[0];for(t=0;t<s.dimensions.length;++t){var l=M(s.dimensions[t],a);o.qDimensions.length<r?o.qDimensions.push(l):o.qLayoutExclude.qHyperCubeDef.qDimensions.push(l)}for(t=0;t<s.excludedDimensions.length;++t){var c=M(s.excludedDimensions[t],a);o.qDimensions.length<i?o.qDimensions.push(c):o.qLayoutExclude.qHyperCubeDef.qDimensions.push(c)}},_=function(e){var t,n=e.exportFormat,r=e.maxMeasures,i=e.minMeasures,o=e.newHyperCubeDef,a=e.defaultMeasure,s=n.data[0];for(t=0;t<s.measures.length;++t){var l=E(s.measures[t],a);o.qMeasures.length<r?o.qMeasures.push(l):o.qLayoutExclude.qHyperCubeDef.qMeasures.push(l)}for(t=0;t<s.excludedMeasures.length;++t){var c=E(s.excludedMeasures[t],a);o.qMeasures.length<i?o.qMeasures.push(c):o.qLayoutExclude.qHyperCubeDef.qMeasures.push(c)}},P=function(e){var t=e.exportFormat,n=e.dataDefinition,r=void 0===n?{}:n,i=t.data[0],o=r.dimensions||{max:0},a=r.measures||{max:0},s=k(a.max,i.dimensions.length,C),l=k(a.min,i.dimensions.length,0);return{maxDimensions:k(o.max,s,C),minDimensions:k(o.min,l,0),maxMeasures:s,minMeasures:l}},L=function(e){var t=e.exportFormat,n=e.newHyperCubeDef,r=t.data[0],i=n.qDimensions.length+n.qMeasures.length;n.qInterColumnSortOrder=r.interColumnSortOrder.concat();var o=n.qInterColumnSortOrder.length;if(o!==i)for(n.qLayoutExclude&&(n.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder=r.interColumnSortOrder.concat());o!==i;)o<i?(d.indexAdded(n.qInterColumnSortOrder,o),++o):(--o,d.indexRemoved(n.qInterColumnSortOrder,o))},z=function(e){var t=e.exportFormat,n=e.initialProperties,r=e.hypercubePath,i={qLayoutExclude:{disabled:{},quarantine:{}}};return Object.keys(t.properties).forEach((function(e){"qLayoutExclude"===e?t.properties[e].quarantine&&(i.qLayoutExclude.quarantine=w()(!0,{},t.properties[e].quarantine)):"qHyperCubeDef"===e&&r?o.setValue(i,"".concat(r,".qHyperCubeDef"),t.properties.qHyperCubeDef):n.hasOwnProperty(e)||-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)||function(e,t){return"components"===t&&Array.isArray(e[t])&&e[t].some((function(e){return"general"===e.key}))}(t.properties,e)?i[e]=t.properties[e]:i.qLayoutExclude.disabled[e]=t.properties[e]})),null===(i=w()(!0,{},n,i)).components&&(i.components=[]),i},F=function(e){var t=e.exportFormat,n=e.maxDimensions,r=e.minDimensions,i=e.maxMeasures,o=e.minMeasures,a=t.data[0];return a.dimensions.length>n&&n>0||a.measures.length>i&&i>0||a.excludedDimensions.length>0&&a.dimensions.length+a.excludedDimensions.length>r||a.excludedMeasures.length>0&&a.measures.length+a.excludedMeasures.length>o||!i&&a.measures.length>0||!n&&a.dimensions.length>0},j=function(e){var t=e.exportFormat,n=e.maxDimensions,r=e.minDimensions,i=e.maxMeasures,o=e.minMeasures,a=e.newHyperCubeDef,s=t.data[0];a.qLayoutExclude||(a.qLayoutExclude={}),a.qLayoutExclude.qHyperCubeDef||(a.qLayoutExclude.qHyperCubeDef={}),(s.dimensions.length>n&&n>0||s.excludedDimensions&&s.excludedDimensions.length&&s.dimensions.length+s.excludedDimensions.length>r)&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[])),(s.measures.length>i&&i>0||s.excludedMeasures&&s.excludedMeasures.length&&s.measures.length+s.excludedMeasures.length>o)&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!i&&s.measures.length&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!n&&s.dimensions.length&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[]))},$=function(e){var t,n=e.newProperties,r=e.dataDefinition,i=e.hypercubePath;if(r.dimensions&&"function"==typeof r.dimensions.added){var a=o.getValue(n,i||"").qHyperCubeDef,s=function(e){if(Array.isArray(e))return T(e)}(t=a.qDimensions)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return T(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?T(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qDimensions=[],s.forEach((function(e){a.qDimensions.push(e),r.dimensions.added(e,n)}))}},H=function(e){var t,n=e.newProperties,r=e.dataDefinition,i=e.hypercubePath;if(r.measures&&"function"==typeof r.measures.added){var a=o.getValue(n,i||"").qHyperCubeDef,s=function(e){if(Array.isArray(e))return A(e)}(t=a.qMeasures)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return A(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?A(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qMeasures=[],s.forEach((function(e){a.qMeasures.push(e),r.measures.added(e,n)}))}},B=function(e){var t=e.measures,n=e.modifierTypes;t&&n&&h().isSupportedModifiers(n)&&t.forEach((function(e){e.store&&e.store.modifiers&&(e.qDef.modifiers=e.store.modifiers),delete e.store}))};function V(e,t){var n=o.getValue(e,"qLayoutExclude.quarantine",{})[t];return!!n&&(Object.keys(n).forEach((function(t){o.setValue(e,t,n[t])})),delete e.qLayoutExclude.quarantine[t],!0)}const U={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,i=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t={data:[],properties:{}},n=0;n<e;++n)t.data.push({dimensions:[],measures:[],excludedDimensions:[],excludedMeasures:[],interColumnSortOrder:[]});return t}(),a=t.qProperty,s=o.getValue(a,n||""),l=s.qHyperCubeDef;return l.qInterColumnSortOrder||(l.qInterColumnSortOrder=[]),p({exportFormat:i,qHyperCubeDef:l}),m({exportFormat:i,qHyperCubeDef:l}),g({exportFormat:i,qHyperCubeDef:l}),delete l.qLayoutExclude,y({exportFormat:i,properties:a}),n&&(i.properties.qHyperCubeDef=l,delete s.qHyperCubeDef),v({exportFormat:i,properties:a}),r||b(i.properties.qHyperCubeDef.qMeasures),Array.isArray(i.properties.filters)&&(x(i.properties,"filters","storedFilters"),delete i.properties.filters),i.properties.qHyperCubeDef.qContextSetExpression&&(x(i.properties,"qHyperCubeDef.qContextSetExpression","storedFilters"),i.properties.qHyperCubeDef.qContextSetExpression=""),i.properties.qHyperCubeDef.qDynamicScript&&i.properties.qHyperCubeDef.qDynamicScript.length&&(x(i.properties,"qHyperCubeDef.qDynamicScript","dynamicScript"),i.properties.qHyperCubeDef.qDynamicScript=[]),i},importProperties:function(e){var t=e.exportFormat,n=e.initialProperties,r=void 0===n?{}:n,i=e.dataDefinition,a=void 0===i?{}:i,s=e.defaultPropertyValues,l=void 0===s?{}:s,c=e.hypercubePath,u=e.extension,d=e.supportedFilters,f=void 0===d||d,h=e.isHCModifierSupported,p=void 0===h||h,m={qChildren:[]},g=z({exportFormat:t,initialProperties:r,hypercubePath:c}),y=o.getValue(r,c||"").qHyperCubeDef,v=o.getValue(g,c||"").qHyperCubeDef,b=P({exportFormat:t,dataDefinition:a}),x=b.maxDimensions,S=b.minDimensions,w=b.maxMeasures,M=b.minMeasures,E=l.defaultDimension,k=void 0===E?D():E,C=l.defaultMeasure,T=void 0===C?R():C;v.qDimensions.length=0,v.qMeasures.length=0,F({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:w,minMeasures:M})&&j({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:w,minMeasures:M,newHyperCubeDef:v}),I({exportFormat:t,maxDimensions:x,minDimensions:S,newHyperCubeDef:v,defaultDimension:k}),_({exportFormat:t,maxMeasures:w,minMeasures:M,newHyperCubeDef:v,defaultMeasure:T}),$({newProperties:g,dataDefinition:a,hypercubePath:c}),H({newProperties:g,dataDefinition:a,hypercubePath:c}),L({exportFormat:t,newHyperCubeDef:v}),N("qMaxStackedCells",y,v),N("qNoOfLeftDims",y,v),q("qInitialDataFetch",y,v,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),q("qMode",y,v,"S"),q("qReductionMode",y,v,"N"),q("qSortbyYValue",y,v),q("qIndentMode",y,v),q("qShowTotalsAbove",y,v),O(g,t,r),m.qProperty=g;var A=o.getValue(u||{},"support.modifiers");return B({measures:v.qMeasures,modifierTypes:A}),f&&V(m.qProperty,"storedFilters"),"S"===v.qMode&&p&&V(m.qProperty,"dynamicScript"),m}};var W={cellBackgroundColor:!0,cellForegroundColor:!0,colorByAlternative:!0,colorByExpression:!0,tooltip:!0,urlLabel:!0,url:!0};function Y(e,t,n,r){t=t||[];var i=u(e,r,n),o=u(t,r,n);if(-1!==i&&-1===o){var a=e.splice(i,1);t.push(a[0])}return t}function X(e,t){return e.length!==t}const G={create:function(e,t){if(!e||!W[e])throw new Error("Attribute Expressions Util: ID required");var n={};return t&&Object.keys(t).forEach((function(e){n[e]=t[e]})),n.id=e,n.qAttribute=!0,n},moveByIdFromGroup:function(e,t,n,r,i){n=n||"qAttributeExpressions",i=i||"id";for(var o=0;o<e.length;o++){var a=e[o][n],s=t.length;if(Y(a,t,r,i),X(t,s))return t}return t},IDMAP:{CELL_BACKGROUND_COLOR:"cellBackgroundColor",CELL_FOREGROUND_COLOR:"cellForegroundColor",COLOR_BY_ALTERNATIVE:"colorByAlternative",COLOR_BY_EXPRESSION:"colorByExpression",TOOLTIP:"tooltip",CELL_LINK_LABEL:"urlLabel",CELL_LINK_URL:"url"}},K={getNumDimensions:function(e){return o.getValue(e,"qHyperCubeDef.qDimensions.length",0)},getNumMeasures:function(e){return o.getValue(e,"qHyperCubeDef.qMeasures.length",0)},wrapFieldName:function(e){return e.split(" ").length>1&&"="!==e[0]&&"["!==e[0]?"[".concat(e,"]"):e},getItemLabel:function(e){return e.label||e.name}},J={colorModeOptions:{primary:function(){return!0},dimension:function(e){return K.getNumDimensions(e)>0&&K.getNumMeasures(e)<=1},multiColor:function(e){return K.getNumMeasures(e)>1},measure:function(e){return K.getNumDimensions(e)>0},expression:function(e){return K.getNumMeasures(e)>=1}}},Q={colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return K.getNumMeasures(e)>=1}}};var Z={scatterplot:Q,"sn-scatter-plot":Q,piechart:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return K.getNumMeasures(e)>=1}}},linechart:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return K.getNumDimensions(e)>1},multiColor:function(e){return K.getNumMeasures(e)>1},measure:function(e){return K.getNumDimensions(e)<=1},expression:function(e){return K.getNumMeasures(e)>=1}}},map:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return K.getNumDimensions(e)>=1},multiColor:function(e){return K.getNumMeasures(e)>1},measure:function(e){return K.getNumDimensions(e)>=1},expression:function(e){return K.getNumDimensions(e)>=1}}},distributionplot:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return K.getNumDimensions(e)>=1}}}};function ee(e,t,n){if(Array.isArray(e[t])){var r=d.findIndexByPropertyValue(e[t],"id",n);r>=0&&e[t].splice(r,1)}else e[t]=[]}function te(e,t){var n=G.IDMAP.COLOR_BY_ALTERNATIVE;e.forEach((function(e){ee(e,"qAttributeDimensions",n),ee(e,"qAttributeExpressions",n)})),t.forEach((function(e){ee(e,"qAttributeDimensions",n),ee(e,"qAttributeExpressions",n)}))}function ne(e,t){if(t){var n="="===t.charAt(0);e.color.altLabel=n?{qStringExpression:{qExpr:t.substr(1)}}:t}}function re(e){var t=e.properties,n=e.isDimension,r=e.dimensions,i=e.excludedDimensions,a=e.measures,s=e.label;te(r,i);var l=r[r.length-1];if(l){var c=n?o.getValue(t,"color.byDimDef"):o.getValue(t,"color.byMeasureDef"),u=o.getValue(t,"color.formatting.qNumFormat"),f=o.getValue(t,"color.formatting.isCustomFormatted");if(c){var h=G.create(G.IDMAP.COLOR_BY_ALTERNATIVE);switch(c.type){case"expression":!function(e){var t=e.attributeExpression,n=e.label,r=e.item,i=e.isDimension,o=e.qNumFormat,a=e.isCustomFormatted;t.label=n||r.label,i?t.qDef=r.key:(t.qExpression=r.key,o&&(t.qNumFormat=o,t.isCustomFormatted=a)),t.matchMeasure=r.activeMeasureIndex,t.label&&"="===t.label.charAt(0)&&(t.labelExpRef="color.altLabel")}({attributeExpression:h,label:s,item:c,isDimension:n,qNumFormat:u,isCustomFormatted:f});break;case"libraryItem":!function(e){var t=e.attributeExpression,n=e.measures,r=e.item,i=e.qNumFormat,o=e.isCustomFormatted;e.isDimension||(t.matchMeasure=d.findIndexByPropertyValue(n,"qLibraryId",r.key),i&&(t.qNumFormat=i,t.isCustomFormatted=o)),void 0!==r.expression?t.qExpression=r.expression:t.qLibraryId=r.key,t.colorMapRef=r.key}({attributeExpression:h,measures:a,item:c,isDimension:n,qNumFormat:u,isCustomFormatted:f})}n?(h.qSortBy={qSortByAscii:1},l.qAttributeDimensions.push(h)):l.qAttributeExpressions.push(h)}}}function ie(e,t,n,r){var i,o,a,s={};switch(e){case"dimension":n.qLibraryId?(s.type="dimension",s.name=n.qLibraryId,s.id=n.qLibraryId):(s.type="field",t?(s.name=n.label||n.qDef,s.id=n.qDef):(s.name=n.qDef.qFieldDefs[0],s.label=(a=n.qDef).qLabelExpression?a.qLabelExpression:a.qFieldLabels&&a.qFieldLabels[0]?a.qFieldLabels[0]:a.qFieldDefs[0]));break;case"measure":i=function(e,t){return t?e.qLibraryId:h().measureBase.getLibraryId(e)}(n,t),i?(s.type="measure",s.name=i,s.id=i,o=function(e,t){return h().hasActiveModifiers({measures:[e]})&&t?e.qDef.qDef:void 0}(n,r),o&&(s.expression=o)):(s.type="expression",t?(s.name=n.label||n.qExpression,s.id=n.qExpression):(s.name=n.qDef.qDef,s.label=function(e){var t=e.qDef;return t.qLabelExpression?t.qLabelExpression:t.qLabel?t.qLabel:t.qDef}(n)));break;default:throw new Error('columnType should be "dimension" or "measure"')}return s}const oe={useMasterNumberFormat:function(e){e.quarantine={qNumFormat:e.qNumFormat||{},isCustomFormatted:e.isCustomFormatted||!1},e.qNumFormat=null,e.isCustomFormatted=void 0}};function ae(e,t,n,r){var i=n?"expression":t.type,o=e.color,a=o.mode,s=K.getItemLabel(t);switch(ne(e,s||""),i){case"field":a="byDimension",o.byDimDef={label:t.label||K.wrapFieldName(t.name),key:K.wrapFieldName(t.name),type:"expression",activeDimensionIndex:t.activeDimensionIndex};break;case"expression":a="byMeasure",o.byMeasureDef={label:n||s,key:n||t.name,type:"expression",activeMeasureIndex:t.activeMeasureIndex};break;case"dimension":a="byDimension",o.byDimDef={label:t.name,key:t.id,type:"libraryItem",activeDimensionIndex:t.activeDimensionIndex};break;case"measure":a="byMeasure",o.byMeasureDef={label:t.name,key:t.id,expression:t.expression,type:"libraryItem",activeMeasureIndex:t.activeMeasureIndex},o.formatting&&oe.useMasterNumberFormat(o.formatting)}r||(o.auto=!1,o.mode=a)}function se(e,t){var n=o.getValue(e,"".concat(t,"qDimensions"),[]),r=o.getValue(e,"".concat(t,"qMeasures"),[]),i=o.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=o.getValue(e,"color.byDimDef");if(a&&ne(e,a.label),function(e){return!!(e&&e.activeDimensionIndex>-1)}(a))!function(e,t){var n=o.getValue(e,"".concat(t,"qDimensions"),[]),r=o.getValue(e,"color.byDimDef");r.activeDimensionIndex=Math.min(r.activeDimensionIndex,n.length-1);var i=ie("dimension",!1,n[r.activeDimensionIndex]);i.activeDimensionIndex=r.activeDimensionIndex,ae(e,i)}(e,t);else if(function(e){return!e||!e.key}(a)&&function(e,t){var n=o.getValue(e,"".concat(t,"qDimensions"),[]),r=n[function(e,t,n){var r=o.getValue(t,"visualization"),i=n.split("."),a=Number(i[1]),s=o.getValue(t,"layers.".concat(a,".type"));return 2===e.length&&"map"===r&&"point"===s}(n,e,t)?0:n.length-1],i=G.IDMAP.COLOR_BY_ALTERNATIVE,a=d.findItemByPropertyValue(r.qAttributeDimensions,"id",i);return ae(e,ie("dimension",!!a,a||r)),!!a}(e,t))return;re({properties:e,isDimension:!0,dimensions:n,excludedDimensions:i,measures:r,label:o.getValue(e,"color.byDimDef.label")})}const le=function(e,t,n){o.setValue(e,t,n),o.isAtomicValue(n)&&function(e,t,n){var r=e.qLayoutExclude;r&&(r.changed||(r.changed={}),r.changed[t]={from:o.getValue(e,t),to:n})}(e,t,n)},ce=function(e,t){var n={primary:!0};if(e){var r=(Z[t]||J).colorModeOptions||J.colorModeOptions;n.byDimension=r.dimension(e),n.byMeasure=r.measure(e),n.byMultiple=r.multiColor(e),n.byExpression=r.expression(e)}return n},ue=function(e){var t=e.canColorBy,n=e.autoColor,r=e.colorMode,i=e.dimensions;return!(t[r]&&!n&&("byDimension"!==r&&"byMeasure"!==r||!i.length))},de=function(e,t){var n,r=o.getValue(e,"color.mode"),i=o.getValue(e,"color.auto"),a=o.getValue(e,"".concat(t,"qDimensions"),[]),s=o.getValue(e,"".concat(t,"qMeasures"),[]),l=o.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);i?te(a,l):!(n={auto:i,colorMode:r,dimensions:a}).auto&&"byDimension"===n.colorMode&&n.dimensions.length>0?se(e,t):function(e){var t=e.auto,n=e.colorMode,r=e.dimensions,i=e.measures,a=e.properties,s=o.getValue(a,"visualization");return!(t||"byMeasure"!==n||!r.length||"map"!==s&&!i.length)}({auto:i,colorMode:r,dimensions:a,measures:s,properties:e})?function(e,t){var n=o.getValue(e,"".concat(t,"qDimensions"),[]),r=o.getValue(e,"".concat(t,"qMeasures"),[]),i=o.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=o.getValue(e,"color.byMeasureDef");if(a&&ne(e,a.label),function(e){return!!(e&&e.activeMeasureIndex>-1)}(a))!function(e,t){var n=o.getValue(e,"".concat(t,"qMeasures"),[]),r=o.getValue(e,"color.byMeasureDef");if(r.activeMeasureIndex=Math.min(r.activeMeasureIndex,n.length-1),r.activeMeasureIndex>-1){var i=ie("measure",!1,n[r.activeMeasureIndex],!0);i.activeMeasureIndex=r.activeMeasureIndex,ae(e,i)}}(e,t);else if(function(e,t){return(!e||!e.key)&&t.length>0}(a,r)&&function(e,t){var n=o.getValue(e,"".concat(t,"qDimensions"),[]),r=o.getValue(e,"".concat(t,"qMeasures"),[]),i=n[n.length-1],a=G.IDMAP.COLOR_BY_ALTERNATIVE,s=d.findItemByPropertyValue(i.qAttributeExpressions,"id",a);return ae(e,ie("measure",!!s,s||r[0])),!!s}(e,t))return;re({properties:e,isDimension:!1,dimensions:n,excludedDimensions:i,measures:r,label:o.getValue(e,"color.byMeasureDef.label")})}(e,t):function(e,t){var n=o.getValue(e,"color.mode"),r=o.getValue(e,"".concat(t,"qDimensions"),[]),i=o.getValue(e,"".concat(t,"qMeasures"),[]),a=o.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);"byMultiple"===n&&i.length<2&&o.setValue(e,"color.mode","primary"),te(r,a)}(e,t)},fe=function(e){e.forEach((function(e){e.qOtherTotalSpec&&"qTotalMode"in e.qOtherTotalSpec&&delete e.qOtherTotalSpec.qTotalMode}))},he=function(e){var t=e.shouldUpdateColorBy,n=e.properties,r=o.getValue(n,"qHyperCubeDef.qMeasures",[]),i=o.getValue(n,"color.mode","");return!t&&"byExpression"===i&&r.length>0},pe=function(e){var t=o.getValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",[]),n=o.getValue(e,"color.colorExpression","");t.splice(0,0,{qExpression:n,id:"colorByExpression"}),o.setValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",t)},me=function(e){o.setValue(e,"color.mode","primary"),o.setValue(e,"color.auto",!0)},ge=function(e){var t=o.getValue(e,"qHyperCubeDef.qDimensions",[]),n=o.getValue(e,"color.persistent",!1);return t.length>1&&!n},ye={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,i=U.exportProperties({propertyTree:t,hypercubePath:n,viewDataMode:r}),o=i.data[0],a=o.dimensions.concat(o.excludedDimensions),s=o.measures.concat(o.excludedMeasures),l=G.IDMAP,c=l.COLOR_BY_ALTERNATIVE,u=l.COLOR_BY_EXPRESSION;return G.moveByIdFromGroup(a,[],"qAttributeDimensions",c),G.moveByIdFromGroup(a,[],"qAttributeExpressions",c),G.moveByIdFromGroup(s,[],"qAttributeExpressions",u),i},importProperties:function(e){var t=e.exportFormat,n=e.initialProperties,r=e.dataDefinition,i=e.defaultPropertyValues,a=e.hypercubePath,s=e.extension,l=e.supportedFilters,c=e.isHCModifierSupported,u=U.importProperties({exportFormat:t,initialProperties:n,dataDefinition:r,defaultPropertyValues:i,hypercubePath:a,extension:s,supportedFilters:l,isHCModifierSupported:c}),d=u.qProperty,f=o.getValue(d,"visualization"),h=o.getValue(d,"qHyperCubeDef.qDimensions",[]),p=o.getValue(d,"color.mode",""),m=o.getValue(d,"color.auto",""),g=ce(d,f),y=ue({canColorBy:g,autoColor:m,colorMode:p,dimensions:h});return g[p]?he({shouldUpdateColorBy:y,properties:d})&&pe(d):me(d),y&&de(d,"qHyperCubeDef."),ge(d)&&le(d,"color.persistent",!0),fe(h),u}};var ve=["bar","marker","line"];const be=function(e){var t=e.initialProperties,n=e.properties;t.measureAxis&&void 0===t.measureAxis.autoMinMax?V(n,"unsupportedAutoMinMax")||w()(n.measureAxis,t.measureAxis):V(n,"supportedAutoMinMax")||w()(n.measureAxis,t.measureAxis)},xe=function(e){var t,n=e.exportFormat,r=e.initialProperties,i=e.properties,o=e.measureType,a=i.qHyperCubeDef,s=i.measureAxis;if(function(e){var t=e.initialProperties;return!(!e.exportFormat.properties.measureAxes||t.measureAxes||!t.measureAxis||void 0===t.measureAxis.autoMinMax)}({exportFormat:n,initialProperties:r})){var l=function(e){var t=[];return e.qMeasures.length>0&&e.qMeasures.forEach((function(e){if(e.qDef.series){var n=e.qDef.series,r=n.type,i=n.axis;t[i]||(t[i]={axis:i,type:{line:0,marker:0,bar:0,total:0}}),ve.includes(r)&&t[i].type[r]++,t[i].type.total++}})),t}(a);l.length?(o&&(t=l.filter((function(e){return e.type[o]>0})).sort((function(e,t){return t.type[o]-e.type[o]}))),t&&t.length||(t=l.sort((function(e,t){return t.type.total-e.type.total}))),t&&t[0]&&w()(s,n.properties.measureAxes[t[0].axis])):w()(s,n.properties.measureAxes[0])}},Se=function(e){if(e.qDimensions.length>1){var t=e.qInterColumnSortOrder.indexOf(0);if(0!==t){var n=e.qInterColumnSortOrder[0];e.qInterColumnSortOrder[0]=0,e.qInterColumnSortOrder[t]=n}}},we={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,i=e.supportedAutoMinMax,o=void 0===i||i,a=ye.exportProperties({propertyTree:t,hypercubePath:n,viewDataMode:r}),s=a.properties;return o?(x(s,"measureAxis.min","supportedAutoMinMax"),x(s,"measureAxis.max","supportedAutoMinMax")):(x(s,"measureAxis.min","unsupportedAutoMinMax"),x(s,"measureAxis.max","unsupportedAutoMinMax")),a},importProperties:function(e){var t=e.exportFormat,n=e.initialProperties,r=e.dataDefinition,i=e.defaultPropertyValues,o=e.hypercubePath,a=e.measureType,s=e.extension,l=e.supportedFilters,c=e.isHCModifierSupported,u=ye.importProperties({exportFormat:t,initialProperties:n,dataDefinition:r,defaultPropertyValues:i,hypercubePath:o,extension:s,supportedFilters:l,isHCModifierSupported:c}),d=u.qProperty;return be({initialProperties:n,properties:d}),xe({exportFormat:t,initialProperties:n,properties:d,measureType:a}),Se(d.qHyperCubeDef),d.qHyperCubeDef.qColumnOrder=[],d.qHyperCubeDef.columnOrder=[],u}};function Me(e,t,n){return"qLayoutExclude.quarantine.".concat(e,".").concat(t,".").concat(n)}function Ee(e){var t=e.properties,n=e.arrayPath,r=e.quarantineName,i=e.arrayName,a=e.itemPath;o.getValue(t,n,[]).forEach((function(e){return function(e){var t=e.properties,n=e.quarantineName,r=e.arrayName,i=e.item,a=e.itemPath,s=o.getValue(i,a);if(void 0!==s){var l=o.getValue(i,"qDef.cId");l||(l=o.generateId(),o.setValue(i,"qDef.cId",l));var c=Me(n,r,l);o.setValue(t,c,s),o.setValue(i,a,void 0)}}({properties:t,quarantineName:r,arrayName:i,item:e,itemPath:a})}))}function ke(e){var t=e.properties,n=e.arrayPath,r=e.quarantineName,i=e.arrayName,a=e.itemPath;o.getValue(t,n,[]).forEach((function(e){return function(e){var t=e.properties,n=e.quarantineName,r=e.arrayName,i=e.item,a=e.itemPath,s=o.getValue(i,"qDef.cId");if(s){var l=Me(n,r,s),c=o.getValue(t,l);void 0!==c&&(o.setValue(i,a,c),o.setValue(t,l,void 0))}}({properties:t,quarantineName:r,arrayName:i,item:e,itemPath:a})}))}var Ce="qHyperCubeDef.qMeasures",Te="conditionalColoring",Ae="measures",Oe="qDef.conditionalColoring";const Ne={quarantine:function(e){Ee({properties:e,arrayPath:Ce,quarantineName:Te,arrayName:Ae,itemPath:Oe})},unquarantine:function(e){ke({properties:e,arrayPath:Ce,itemPath:Oe,arrayName:Ae,quarantineName:Te})}};var qe="qHyperCubeDef.qMeasures",De="measures",Re="qHyperCubeDef.qDimensions",Ie="dimensions",_e="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",Pe="alternativeMeasures",Le="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",ze="alternativeDimensions",Fe="qCalcCondition",je="conditionalShowHide";const $e={quarantine:function(e){Ee({properties:e,arrayPath:qe,quarantineName:je,arrayName:De,itemPath:Fe}),Ee({properties:e,arrayPath:Re,quarantineName:je,arrayName:Ie,itemPath:Fe})},unquarantine:function(e){ke({properties:e,arrayPath:qe,quarantineName:je,arrayName:De,itemPath:Fe}),ke({properties:e,arrayPath:Re,quarantineName:je,arrayName:Ie,itemPath:Fe})},quarantineAlternative:function(e){Ee({properties:e,arrayPath:_e,quarantineName:je,arrayName:Pe,itemPath:Fe}),Ee({properties:e,arrayPath:Le,quarantineName:je,arrayName:ze,itemPath:Fe})},unquarantineAlternative:function(e){ke({properties:e,arrayPath:_e,quarantineName:je,arrayName:Pe,itemPath:Fe}),ke({properties:e,arrayPath:Le,quarantineName:je,arrayName:ze,itemPath:Fe})}},He={hypercube:U,colorChart:ye,axisChart:we,quarantineProperty:x,unquarantineProperty:V,quarantineArrayProp:Ee,unquarantineArrayProp:ke,conditionalColoring:Ne,conditionalShow:$e}})(),r.default})()}(t3);var n3=n(t3.exports);const r3={version:"1.26.15",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 i3=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=em(n[e].qDef.series),i===zd.TYPE.BAR?r[0]=1:i===zd.TYPE.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)},o3=e=>(t,n)=>{let r;const i=t.qHyperCubeDef.qMeasures[n];if(i){const{type:e}=i.qDef.series;r=e===zd.TYPE.LINE?"Visualizations.Descriptions.HeightLine":e===zd.TYPE.BAR?"Visualizations.Descriptions.LengthBars":"Visualizations.Descriptions.ComboChart.Measure.HeightMarker"}else r=n?"Visualizations.Descriptions.HeightLine":"Visualizations.Descriptions.LengthBars";return e.get(r)};function a3(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&&em(null===(n=r[0].qDef)||void 0===n?void 0:n.series)===zd.TYPE.LINE?e.color.mode="primary":"byDimension"===i&&r.length>1&&(e.color.mode="byMultiple")}function s3(e){const{translator:t}=e;return{dimensions:{min:1,max:1,description:i3(t),added(e,t){Qd.addCallbackCustomTooltip(t)},moved(e,t){Qd.moveCallbackCustomTooltip(t,e)},removed(e,t){Qd.removeCallbackCustomTooltip(t,e)},replaced(e,t,n,r){Qd.replaceCallbackCustomTooltip(r,t)}},measures:{min:1,max:15,description:o3(t),added({qDef:e},t){var n;a3(t),null!==(n=e.series)&&void 0!==n&&n.type||(t.qHyperCubeDef.qMeasures.length>1?e.series={type:zd.TYPE.LINE,axis:zd.AXIS.SECONDARY}:e.series={type:zd.TYPE.BAR,axis:zd.AXIS.PRIMARY})},moved(e,t){a3(t)}}}}function l3(e){const t=s3(e);return{properties:r3,data:{targets:[{path:"/qHyperCubeDef",...t}]},importProperties:({exportFormat:e,initialProperties:n,hypercubePath:r})=>{const i=n3.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&&f(!0,i.qProperty.measureAxes[s],e.properties.measureAxis,{logarithmic:!1}),i},exportProperties:({propertyTree:e,hyperCubePath:t,viewDataMode:n})=>n3.axisChart.exportProperties({propertyTree:e,hyperCubePath:t,viewDataMode:n})}}const c3=(e,t,n,r)=>{const i=`${t}.fontFamily`,o=`${t}.fontSize`;return{fontFamilyItem:{component:"dropdown",ref:`${e}.fontFamily`,options:()=>n.getOptions(i),defaultValue:()=>n.getDefaultValue(i)},fontWrapperItem:{component:"inline-wrapper",items:{fontSizeItem:{component:"dropdown",ref:`${e}.fontSize`,options:()=>n.getOptions(o),defaultValue:()=>n.getDefaultValue(o)},fontColorItem:{component:"color-picker",width:!1,ref:`${e}.color`,defaultValue:()=>({color:r.getStyle("object.comboChart",t,"color")})}}}}};function u3(e,t,n){const r=function(e){var t=e.theme,n=e.translator,r=e.config,i=void 0===r?{}:r,o=e.flags,a=function(e){var t=e.config,n=void 0===t?{}:t,r=n.id,i=n.paths;return{id:void 0===r?"object":"".concat("object",".").concat(r),paths:Array.isArray(i)?i:[]}}({config:i}),s=a.id,l=a.paths,c={};l.forEach((function(e){for(var r=e.split("."),i=c,a=0;a<r.length;a++){var l=r[a];a===r.length-1?i[l]=xa({theme:t,translator:n,id:s,path:e,flags:o}):void 0===i[l]&&(i[l]={}),i=i[l]}}));var u=function(e){for(var t=e.split("."),n=c,r=0;r<t.length;r++){var i=t[r];if(void 0===n[i])throw new Error("font-resolver: Path '".concat(e,"' could not be resolved."));n=n[i]}return n};return c.getDefaultValue=function(e){return u(e).getDefaultValue()},c.getOptions=function(e){return u(e).getOptions()},c}({theme:t,translator:n,flags:e,config:{id:"comboChart",paths:["axis.title","axis.label.name","label.value","legend.title","legend.label"]}});if(null!=e&&e.isEnabled("SENSECLIENT_IM_311_STYLINGPANEL_COMBOCHART"))return{component:"styling-panel",show:!0,chartType:"combochart",translation:"LayerStyleEditor.component.styling",chartTitle:"Object.ComboChart",subtitle:"LayerStyleEditor.component.styling",useGeneral:!0,useBackground:null==e?void 0:e.isEnabled("SENSECLIENT_IM_2431_COMBOCHART_BG"),items:{barSection:{translation:"Visualizations.Descriptions.Bars",component:"accordion",items:{outlineSection:{translation:"properties.Outline",component:"panel-section",items:{wrapperItem:{component:"items",ref:"components",key:"bar",items:{barStroke:{component:"inline-wrapper",items:{strokeWidth:{ref:"style.strokeWidth",width:!0,component:"dropdown",options:[{translation:"Common.None",value:"none"},{translation:"Common.Small",value:"small"},{translation:"Common.Medium",value:"medium"},{translation:"Common.Large",value:"large"}],defaultValue:"none",schemaIgnore:!0},strokeColor:{ref:"style.strokeColor",defaultValue:{color:"#205891"},schemaIgnore:!0,width:"auto",component:"color-picker"}}}}}}},widthSection:{translation:"LayerStyleEditor.style.barWidth",component:"panel-section",items:{barWidth:{component:"items",ref:"components",key:"bar",items:{width:{ref:"style.width",component:"slider",min:.01,max:1,step:.01,defaultValue:.7,schemaIgnore:!0}}}}},labelValueSection:null!=e&&e.isEnabled("CLIENT_IM_3050")?{translation:"properties.dataPoints.barlabelmode",component:"panel-section",items:{labelItems:{component:"items",ref:"components",key:"bar",items:{...c3("bar.label.value","label.value",r,t),contrastColor:{component:"checkbox",type:"boolean",ref:"bar.label.value.useContrastColor",translation:"properties.dataPoints.valuelabel.contrast",defaultValue:!0}}}}}:void 0}},lineSection:{translation:"Visualizations.Descriptions.Lines",component:"accordion",items:{dataPointSection:{translation:"LayerStyleEditor.style.dataPointSize",component:"panel-section",items:{dataPointSize:{component:"items",ref:"components",key:"line",items:{size:{ref:"style.dataPointSize",component:"slider",min:3,max:20,step:1,defaultValue:6,schemaIgnore:!0}}}}},lineSection:{translation:"Line options",component:"panel-section",items:{wrapperItem:{component:"items",ref:"components",key:"line",items:{size:{ref:"style.lineThickness",translation:"Thickness",component:"slider",defaultValue:1,min:1,max:5,step:1,schemaIgnore:!0},type:{ref:"style.lineType",translation:"Type",component:"dropdown",width:"auto",grouped:!0,options:[{value:"solid",translation:"LayerStyleEditor.style.solid"},{value:"dashed",translation:"LayerStyleEditor.style.dashed"}],defaultValue:"solid",schemaIgnore:!0},curve:{ref:"style.lineCurve",translation:"Curve",component:"dropdown",width:"auto",grouped:!0,options:[{value:"linear",translation:"LayerStyleEditor.style.linear"},{value:"monotone",translation:"LayerStyleEditor.style.monotone"}],defaultValue:"linear",schemaIgnore:!0}}}}},labelValueSection:null!=e&&e.isEnabled("CLIENT_IM_3050")?{translation:"properties.dataPoints.linelabelmode",component:"panel-section",items:{labelItems:{component:"items",ref:"components",key:"line",items:c3("line.label.value","label.value",r,t)}}}:void 0}},axisTitleSection:null!=e&&e.isEnabled("CLIENT_IM_3050")?{translation:"properties.axis.title",component:"panel-section",items:{labelItems:{component:"items",ref:"components",key:"axis",items:c3("axis.title","axis.title",r,t)}}}:void 0,axisLabelSection:null!=e&&e.isEnabled("CLIENT_IM_3050")?{translation:"properties.axis.label",component:"panel-section",items:{labelItems:{component:"items",ref:"components",key:"axis",items:c3("axis.label.name","axis.label.name",r,t)}}}:void 0,legendTitleSection:null!=e&&e.isEnabled("CLIENT_IM_3051")?{translation:"properties.legend.title",component:"panel-section",items:{labelItems:{component:"items",ref:"components",key:"legend",items:c3("legend.title","legend.title",r,t)}}}:void 0,legendLabelSection:null!=e&&e.isEnabled("CLIENT_IM_3051")?{translation:"properties.legend.label",component:"panel-section",items:{labelItems:{component:"items",ref:"components",key:"legend",items:c3("legend.label","legend.label",r,t)}}}:void 0}};const i={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"}]},o={component:"color-picker",type:"object",baseRef:"style.strokeColor",translation:"LayerStyleEditor.style.strokeColor",dualOutput:!0,show:e=>"none"!==yl(e,`${((e,t)=>{let n=-1;for(let r=0;r<e.length;r++)if(e[r].key===t){n=r;break}return n})(e,"bar")}.${i.baseRef}`),defaultValue:()=>({index:-1,color:"#205891"})},a={component:"slider",type:"number",expression:"optional",baseRef:"style.width",translation:"LayerStyleEditor.style.barWidth",show:(e,t,n)=>{const r=t.getMeasures().some((e=>em(e.qDef.series)===zd.TYPE.LINE));return!T.continuous(n.layout,r&&S.isTime(!0,n.layout))},defaultValue:.7,min:.01,max:1,step:.01},s={component:"slider",type:"number",expression:"optional",baseRef:"style.dataPointSize",translation:"LayerStyleEditor.style.dataPointSize",show:!0,defaultValue:6,min:3,max:20,step:1},l={component:"slider",type:"number",expression:"optional",baseRef:"style.lineThickness",translation:"LayerStyleEditor.style.lineThickness",show:!0,defaultValue:1,min:1,max:5,step:1},c={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"}]},u={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(e){const t="grouped"===e.barGrouping.grouping,n=e.qHyperCubeDef.qMeasures.filter((e=>em(e.qDef.series)===zd.TYPE.BAR)).length,r=t&&n>1;return[{key:"bar",style:{strokeWidth:i.defaultValue,strokeColor:o.defaultValue(),width:r?.9:.7}},{key:"line",style:{dataPointSize:s.defaultValue,lineThickness:l.defaultValue,lineType:c.defaultValue,lineCurve:u.defaultValue}}]},items:{list:{type:"items",component:"expandable-items",items:{bar:{type:"items",translation:"Visualizations.Descriptions.Bar",expanded:!0,styleKey:"bar",items:{barStrokeWidth:i,barStrokeColor:o,barWidth:a}},line:{type:"items",translation:"Visualizations.Descriptions.Line",expanded:!0,styleKey:"line",items:{dataPointSize:s,lineThickness:l,lineType:c,lineCurve:u}}}}}}}const d3={classification:{section:"styling",tags:["simple"],exclusive:!0},component:"items",show:!0,chartType:"combochart",translation:"LayerStyleEditor.component.styling",chartTitle:"Object.ComboChart",subtitle:"LayerStyleEditor.component.styling",useGeneral:!0,items:{barsSection:{component:"items",items:{wrapperItem:{component:"items",ref:"components",key:"bar",items:{barsHeader:{component:"header",translation:"Visualizations.Descriptions.Bars"},outlineSection:{component:"items",items:{barStroke:{component:"inline-wrapper",items:{strokeWidth:{ref:"style.strokeWidth",width:!0,component:"dropdown",translation:"LayerStyleEditor.style.strokeWidth",options:[{translation:"Common.None",value:"none"},{translation:"Common.Small",value:"small"},{translation:"Common.Medium",value:"medium"},{translation:"Common.Large",value:"large"}],defaultValue:"none",schemaIgnore:!0},strokeColor:{ref:"style.strokeColor",schemaIgnore:!0,defaultValue:{color:"#205891"},width:"auto",component:"color-picker"}}}}},widthSection:{component:"items",items:{barWidth:{component:"items",items:{width:{ref:"style.width",translation:"LayerStyleEditor.style.barWidth",component:"slider",min:.01,max:1,step:.01,schemaIgnore:!0,defaultValue:.7}}}}}}}}},linesSection:{component:"items",items:{wrapperItem:{component:"items",items:{linesHeader:{component:"header",translation:"Visualizations.Descriptions.Lines"},dataPointSection:{component:"items",items:{dataPointSize:{component:"items",ref:"components",key:"line",items:{size:{ref:"style.dataPointSize",translation:"LayerStyleEditor.style.dataPointSize",component:"slider",min:3,max:20,step:1,defaultValue:6,schemaIgnore:!0}}}}},lineSection:{component:"items",items:{wrapperItem:{component:"items",ref:"components",key:"line",items:{size:{ref:"style.lineThickness",translation:"LayerStyleEditor.style.lineThickness",component:"slider",defaultValue:1,min:1,max:5,step:1,schemaIgnore:!0},type:{ref:"style.lineType",translation:"LayerStyleEditor.style.lineType",component:"dropdown",width:"auto",grouped:!0,options:[{value:"solid",translation:"LayerStyleEditor.style.solid"},{value:"dashed",translation:"LayerStyleEditor.style.dashed"}],defaultValue:"solid",schemaIgnore:!0},curve:{ref:"style.lineCurve",translation:"LayerStyleEditor.style.lineCurve",component:"dropdown",width:"auto",grouped:!0,options:[{value:"linear",translation:"LayerStyleEditor.style.linear"},{value:"monotone",translation:"LayerStyleEditor.style.monotone"}],defaultValue:"linear",schemaIgnore:!0}}}}}}}}},optionsSection:{component:"items",items:{wrapperItem:{component:"items",items:{optionsHeader:{component:"header",translation:"LayerStyleEditor.label.Options"},scrollStartPos:{ref:"scrollStartPos",translation:"properties.ScrollAlignment",component:"dropdown",defaultValue:0,options:[{value:0,translation:"properties.ScrollAlignStart"},{value:1,translation:"properties.ScrollAlignEnd"}]},dataPoints:{ref:"dataPoint.show",translation:"properties.dataPoints.showDataPoints",type:"boolean",defaultValue:!1}}}}}}};function f3(e){const t=yl(e,"qHyperCube.qMeasureInfo",[]).some((({series:e=zd.NOPE_SERIES})=>em(e)===zd.TYPE.LINE));return T.continuous(e,(()=>t&&S.isTime(!0,e)))}function h3(e){var t;return!(null===(t=e.qDef)||void 0===t||null===(t=t.color)||void 0===t||!t.on)}function p3(e){var t,n;return h3(e)&&"primary"===(null!==(t=null===(n=e.qDef)||void 0===n||null===(n=n.color)||void 0===n?void 0:n.mode)&&void 0!==t?t:"primary")}function m3(e){var t;return h3(e)&&"byExpression"===(null===(t=e.qDef)||void 0===t||null===(t=t.color)||void 0===t?void 0:t.mode)}function g3(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 y3(e){return m3(e)?[{qExpression:e.qDef.color.colorExpression,id:"colorByMeasureExpression"}]:[]}function v3(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?[...g3(n),...y3(e)]:y3(e)}(t,n,e)))}function b3(e){var t;const n={ref:"qDef.series.type",type:"string",component:"item-selection-list",defaultValue:"bar",schemaIgnore:!0,horizontal:!0,items:[{icon:e=>"stacked"===e.barGrouping.grouping||f3(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"}]},r={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 em(null===(t=e.qDef)||void 0===t?void 0:t.series)===zd.TYPE.MARKER}},i={ref:"qDef.series.markerFill",translation:"properties.series.fill",type:"boolean",defaultValue:!0,show(e){var t;return em(null===(t=e.qDef)||void 0===t?void 0:t.series)===zd.TYPE.MARKER&&!["line"].includes(e.qDef.series.marker)}},o={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)=>h3(...e)},a=null===(t=e.anything)||void 0===t||null===(t=t.sense)||void 0===t?void 0:t.theme,s={ref:"qDef.color.paletteColor",translation:"properties.color",type:"object",component:"color-picker",dualOutput:!0,defaultValue:()=>{var e;const{primary:t}=a.getDataColorSpecials(),n=null===(e=a.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:p3},l={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:{ref:"qDef.series.axis",type:"integer",component:"dropdown",defaultValue:0,options:[{translation:"properties.axis.primary",value:0},{translation:"properties.axis.secondary",value:1}]},seriesMarker:r,seriesMarkerFill:i}},color:{type:"items",translation:"properties.color",items:{customColor:{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"}},colorMode:o,paletteColor:s,attributeExpression:{type:"string",component:"expression",expressionType:"measure",schemaIgnore:!0,ref:"qDef.color.colorExpression",translation:"Common.Expression",show:m3}}}}}}};return{items:{series:{type:"items",items:{supPanel:l}}}}}const x3=10,S3=!0;function w3(e,t,n){let r;const i=n||0;var o,a;t?r=t.getMeasureLayouts():r=null!==(o=null==e||null===(a=e.qHyperCubeDef)||void 0===a?void 0:a.qMeasures)&&void 0!==o?o:[];return r.filter((e=>{const{series:t}=e||{};return 0===i?t0(t,S3):!t0(t,S3)}))}function M3(e,t){return t.getMeasures().filter((e=>em(e.qDef.series)===zd.TYPE.LINE)).length>0}function E3(e,t,n){const r=t.getMeasures().filter((e=>em(e.qDef.series)===zd.TYPE.BAR));return r.filter((e=>e.qDef.series.axis!==zd.AXIS.SECONDARY)).length>n||r.filter((e=>e.qDef.series.axis===zd.AXIS.SECONDARY)).length>n}const k3=(e,t,n,r)=>{const i="vertical"===t.layout.orientation||f3(t.layout)?"y":"x",o=w3(e,t,r).map((e=>e.qFallbackTitle));let a;return a=o.length?n.get(`properties.${i}AxisWithInfo`,[o.join(",")]):n.get(`properties.${i}Axis`),a};function C3(e){var t,n,r;const{translator:i,flags:o,anything:a}=e,s=null==e||null===(t=e.anything)||void 0===t||null===(t=t.sense)||void 0===t?void 0:t.theme,l=null==e||null===(n=e.anything)||void 0===n||null===(n=n.sense)||void 0===n||null===(r=n.isUnsupportedFeature)||void 0===r?void 0:r.call(n,"continuousData"),c={items:{attributeExpression:{ref:"color.colorExpression",change:null,globalChange:e=>v3(e)},expressionLabel:{change:null},disclaimer:{component:"text",translation:"properties.color.colorOnMeasureDisclaimer",style:"hint",show:e=>e.qHyperCubeDef.qMeasures.some((e=>h3(e)))}}},u=e=>!!e&&(e.coloring&&e.coloring.baseColor&&e.coloring.baseColor.color?e.coloring.baseColor:!(!e.baseColor||!e.baseColor.color)&&e.baseColor);const d=(e,t)=>!yl(e,"color.auto")&&"primary"===yl(e,"color.mode")&&!((e=>yl(e,"layout.qHyperCube.qMeasureInfo",[]).filter((e=>!!u(e))).length>0)(t)&&"measure"===yl(e,"color.useBaseColors")||function(e){return yl(e,"layout.qHyperCube.qDimensionInfo",[]).filter((e=>!!u(e))).length>0}(t)&&"dimension"===yl(e,"color.useBaseColors")),f=(e,t)=>{var n,r;return e.qHyperCubeDef.qMeasures.some((e=>h3(e)))||!o.isEnabled("SIMPLE_PROPERTIES_LIBRARY_COLOR")&&!(null!=e&&null!==(n=e.color)&&void 0!==n&&n.auto||"primary"!==(null==e||null===(r=e.color)||void 0===r?void 0:r.mode)||d(e,t))},h={items:{disclaimer:{show:(e,t)=>f(e,t),reset:e=>{e.qHyperCubeDef.qMeasures.forEach((e=>{var t;yl(t=e,"qDef.color.on",void 0)&&bl(t,"qDef.color.on",!1)}))}},simpleItems:{show:(e,t)=>!f(e,t)}}},p={items:{labels:{items:{header:{show:e=>e.qHyperCubeDef.qDimensions.length&&e.qHyperCubeDef.qMeasures.length},barLabels:{component:"checkbox",ref:"dataPoint.showBarLabels",type:"boolean",translation:"Simple.Label.Bar",show:(e,t)=>e.qHyperCubeDef.qDimensions.length&&e.qHyperCubeDef.qMeasures.length&&E3(0,t,0)},lineLabels:{component:"checkbox",ref:"dataPoint.showLineLabels",type:"boolean",translation:"Simple.Label.Line",show:(e,t)=>e.qHyperCubeDef.qDimensions.length&&e.qHyperCubeDef.qMeasures.length&&M3(0,t),convertFunctions:{get:(e,t,n,r)=>r.dataPoint.show&&r.dataPoint.showLineLabels,set(e,t,n,r,i){i.dataPoint.showLineLabels=e,i.dataPoint.show=e}},reset(e){bl(e,"dataPoint.show",!1),bl(e,"dataPoint.showLineLabels",!1)}},dimensionTitle:{component:"checkbox",ref:"dimensionAxis.show",type:"string",translation:"Simple.Label.Dimension.Hide",defaultValue:"all",show:e=>e.qHyperCubeDef.qDimensions.length&&e.qHyperCubeDef.qMeasures.length,convertFunctions:{get:(e,t,n,r)=>"labels"===r.dimensionAxis.show||"none"===r.dimensionAxis.show,set(e,t,n,r,i){i.dimensionAxis.show=e?"labels":"all"}}},primaryMeasureTitle:{component:"checkbox",ref:"measureAxes.0.show",type:"string",label:(e,t)=>i.get(w3(e,t,1).length>0?"Simple.Label.PrimaryMeasure.Hide":"Simple.Label.Measure.Hide"),defaultValue:"all",show:(e,t)=>e.qHyperCubeDef.qDimensions.length&&e.qHyperCubeDef.qMeasures.length&&w3(e,t,0).length>0,convertFunctions:{get:(e,t,n,r)=>"labels"===r.measureAxes[0].show||"none"===r.measureAxes[0].show,set(e,t,n,r,i){i.measureAxes[0].show=e?"labels":"all"}}},secondaryMeasureTitle:{component:"checkbox",ref:"measureAxes.1.show",type:"string",translation:"Simple.Label.SecondaryMeasure.Hide",defaultValue:"all",show:(e,t)=>e.qHyperCubeDef.qDimensions.length&&e.qHyperCubeDef.qMeasures.length&&w3(e,t,1).length>0,convertFunctions:{get:(e,t,n,r)=>"labels"===r.measureAxes[1].show||"none"===r.measureAxes[1].show,set(e,t,n,r,i){i.measureAxes[1].show=e?"labels":"all"}}}}}}},m={uses:"settings",items:{simpleStyling:null!=o&&o.isEnabled("COMBOCHART_SIMPLE_STYLING")?d3:void 0,simpleLabels:p,presentation:{type:"items",translation:"properties.presentation",grouped:!0,items:{comboStyling:u3(o,s,i),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)=>E3(0,t,1)&&!f3(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)=>f3(n.layout),convertFunctions:(g="vertical",{get:(e,t,n)=>f3(n.layout)?g:e(t.type),set(e,t,n,r){t(n.type,f3(r.layout)?g:e,g)}})},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)=>!f3(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)=>M3(0,t)},dataPointSettings:{type:"items",grouped:!1,snapshot:{tid:"property-dataPoint"},show:(e,t)=>M3(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)=>E3(0,t,0),defaultValue:!1,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"properties.off"}]}}},colorsAndLegend:{uses:"colorsAndLegend",items:{colors:c,simpleColors:h,legend:{items:{show:{snapshot:{tid:"property-legend"}}}}}},dimensionAxis:{uses:"axis.dimensionAxis",label(e,t){const n="vertical"===t.layout.orientation||f3(t.layout)?"x":"y",r=function(e,t){return t?t.getDimensionLayouts():e.qHyperCubeDef.qDimensions.map((e=>e.qDef))}(e,t).map((e=>e.qFallbackTitle||"")).join(", ");let o;return o=r?i.get(`properties.${n}AxisWithInfo`,[r]):i.get(`properties.${n}Axis`),o},items:{othersGroup:{items:{dock:{options(e,t){let n="Common.Bottom",r="Common.Top";return"vertical"===t.layout.orientation||f3(t.layout)||(n=e.yMirrorMode?"properties.dock.right":"properties.dock.left",r=e.yMirrorMode?"properties.dock.left":"properties.dock.right"),[{value:"near",translation:n},{value:"far",translation:r}]}}}},axisDisplaySettings:{type:"items",components:"items",show:(e,t,n)=>!f3(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:x3,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=x3: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}}}},continuousGroup:{show:!l}},measureAxis:{uses:"axis.measureAxis",label:(e,t)=>k3(e,t,i,0),show:(e,t)=>w3(e,t,0).length>0,items:{axis:{items:{measureAxisTitle:{component:"header",type:"string",label:(e,t)=>k3(e,t,i,0),show:(e,t)=>w3(e,t,0).length>0,classification:{section:"axis",tags:["simple"],exclusive:!0}},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)&&t0(null==e?void 0:e.series,S3)))}}},dock:{ref:"measureAxes.0.dock",show:(e,t)=>"none"!==e.measureAxes[0].show&&w3(e,t,0).length>0,options(e,t){let n="Common.Bottom",r="Common.Top";return("vertical"===t.layout.orientation||f3(t.layout))&&(n=e.yMirrorMode?"properties.dock.right":"properties.dock.left",r=e.yMirrorMode?"properties.dock.left":"properties.dock.right"),[{value:"near",translation:n},{value:"far",translation:r}]}},spacing:{ref:"measureAxes.0.spacing",show:(e,t)=>e.measureAxes[0]&&"none"!==e.measureAxes[0].show&&w3(e,t,0).length>0}}},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}}},startAt:{type:"string",component:"dropdown",translation:"properties.axis.startAt",show:(e,t)=>w3(e,t,0).length>0,readOnly:e=>!(e.measureAxes[0].autoMinMax||"min"===e.measureAxes[0].minMax&&0===e.measureAxes[0].min),options:[{value:"zero",translation:"properties.axis.startAt.zero"},{value:"lowest",translation:"properties.axis.startAt.lowest"}],defaultValue:"lowest",convertFunctions:{get(e,t,n,r){const{autoMinMax:i,minMax:o,min:a}=(null==r?void 0:r.measureAxes[0])||{};return!0===i?"lowest":i||"min"!==o||0!==a?e(t.type):"zero"},set(e,t,n,r,i){"zero"===e?(bl(i,"measureAxes.0.autoMinMax",!1),bl(i,"measureAxes.0.minMax","min"),bl(i,"measureAxes.0.min",0)):bl(i,"measureAxes.0.autoMinMax",!0)}},classification:{section:"axis",tags:["simple"],exclusive:!0}}}},secondaryMeasureAxis:{uses:"axis.measureAxis",label:(e,t)=>k3(e,t,i,1),show:(e,t)=>w3(e,t,1).length>0,items:{axis:{items:{measureAxisTitle:{component:"header",type:"string",label:(e,t)=>k3(e,t,i,1),show:(e,t)=>w3(e,t,1).length>0,classification:{section:"axis",tags:["simple"],exclusive:!0}},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)&&!t0(null==e?void 0:e.series,S3)))}}},dock:{ref:"measureAxes.1.dock",defaultValue:"far",show:(e,t)=>"none"!==e.measureAxes[1].show&&w3(e,t,1).length>0,options(e,t){let n="Common.Bottom",r="Common.Top";return("vertical"===t.layout.orientation||f3(t.layout))&&(n=e.yMirrorMode?"properties.dock.right":"properties.dock.left",r=e.yMirrorMode?"properties.dock.left":"properties.dock.right"),[{value:"near",translation:n},{value:"far",translation:r}]}},spacing:{ref:"measureAxes.1.spacing",show:(e,t)=>e.measureAxes[1]&&"none"!==e.measureAxes[1].show&&w3(e,t,1).length>0}}},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}}},startAt:{type:"string",component:"dropdown",translation:"properties.axis.startAt",show:(e,t)=>w3(e,t,1).length>0,readOnly:e=>!(e.measureAxes[1].autoMinMax||"min"===e.measureAxes[1].minMax&&0===e.measureAxes[1].min),options:[{value:"zero",translation:"properties.axis.startAt.zero"},{value:"lowest",translation:"properties.axis.startAt.lowest"}],defaultValue:"lowest",convertFunctions:{get(e,t,n,r){const{autoMinMax:i,minMax:o,min:a}=(null==r?void 0:r.measureAxes[1])||{};return!0===i?"lowest":i||"min"!==o||0!==a?e(t.type):"zero"},set(e,t,n,r,i){"zero"===e?(bl(i,"measureAxes.1.autoMinMax",!1),bl(i,"measureAxes.1.minMax","min"),bl(i,"measureAxes.1.min",0)):bl(i,"measureAxes.1.autoMinMax",!0)}},classification:{section:"axis",tags:["simple"],exclusive:!0}}}},tooltips:{uses:"tooltip"}}};var g;o.isEnabled("SENSECLIENT_LAYERED_LABELS")&&(m.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"}]});const y={uses:"data",items:{dimensions:{items:{nullSuppression:{show(e,t,n){var r,i;if(null!=a&&null!==(r=a.sense)&&void 0!==r&&null!==(i=r.isUnsupportedFeature)&&void 0!==i&&i.call(r,"includeZeroValues"))return!1;return!f3(n.layout)}}}},measures:b3(e)}},v={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=>t0(e.qDef.series,t)))}(e.qHyperCubeDef.qMeasures,S3)},secondaryMeasureAxisRefLines:{uses:"reflines",ref:"refLine.refLines2",translation:"properties.secondaryMeasureAxisReferenceLines",title:{translation:"properties.secondaryMeasureAxisReferenceLines.tooltip"},show:e=>function(e,t){return e.some((e=>!t0(e.qDef.series,t)))}(e.qHyperCubeDef.qMeasures,S3)},dimRefLines:{uses:"dimReflines"}}};return{type:"items",component:"accordion",items:{data:y,sorting:{uses:"sortingWithDisclaimer"},addons:v,settings:m}}}function T3(e){return e.qHyperCubeDef.qMeasures.filter((e=>em(e.qDef.series)===zd.TYPE.LINE)).length>0}function A3(){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)=>T3(e)||!f3(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){var n;return function(e,t){const n=e.qHyperCubeDef.qMeasures.filter((e=>em(e.qDef.series)===zd.TYPE.BAR));return t?n.filter((e=>e.qDef.series.axis===zd.AXIS.PRIMARY)).length>1||n.filter((e=>e.qDef.series.axis===zd.AXIS.SECONDARY)).length>1:n.length>1}(e,!D2(null!==(n=null==e?void 0:e.version)&&void 0!==n?n:""))&&!f3(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)=>!f3(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=>T3(e)&&e.qHyperCubeDef.qMeasures.length>1},dataPoints:{ref:"dataPoint.show",translation:"properties.dataPoints.showDataPoints",type:"boolean",show:e=>T3(e)}}},color:{uses:"color",items:{disclaimer:{component:"text",translation:"properties.color.colorOnMeasureDisclaimer",style:"hint",show:e=>e.qHyperCubeDef.qMeasures.some((e=>h3(e)))}}}}}}const O3={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 N3(e,t,n,r,i){const{axis:o,icon:a,tid:s,translation:l}=O3[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 q3(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"});N3(r,o,t,n,"bar"),N3(r,o,t,n,"line"),N3(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 D3(e){const t={},{tooltip:n}=e;if(n){var r;t.chart_tooltip_custom=!n.auto;const e=null===(r=n.chart)||void 0===r||null===(r=r.object)||void 0===r?void 0:r.refId;!n.auto&&e&&(t.chart_tooltip_custom_mini_chart=e)}return t}const R3=e=>!!(e&&e.qHyperCube.qSize.qcy>0);function I3(e){return{definition:C3(e),softDefinition:A3(),support:{snapshot:R3,export:!0,exportData:!0,sharing:!1,viewData:!0,modifiers:["accumulation","movingAverage","difference","normalization"]},getDropMeasureOptions:q3,extendMetrics:D3,importProperties:(t,n,r,i)=>{const o={layout:{templateId:n.templateId}};r.mapProperties(o);const a={defaultDimension:r.getDefaultDimensionProperties(),defaultMeasure:r.getDefaultMeasureProperties()},s=n3.axisChart.importProperties({exportFormat:t,initialProperties:n,dataDefinition:s3(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&&f(!0,e.qProperty.measureAxes[o],n.properties.measureAxis,{logarithmic:!1}),v3(e.qProperty)}(s,0,t),s},exportProperties:(e,t,n)=>{!function(e){e.qProperty.qHyperCubeDef.qMeasures.forEach((e=>{e.qAttributeExpressions=[]}))}(e);return n3.axisChart.exportProperties({propertyTree:e,hyperCubePath:t,viewDataMode:n})},migrate:{properties:e=>e.qExtendsId?e:(function(e){var t;e.qHyperCubeDef.qDimensions.forEach(Le),null!==(t=e.qHyperCubeDef.qLayoutExclude)&&void 0!==t&&null!==(t=t.qHyperCubeDef)&&void 0!==t&&t.qDimensions&&e.qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions.forEach(Le)}(e),function(e){return D2(e.version)&&(e.qHyperCubeDef.qMeasures.forEach((e=>{const{qDef:t}=e;void 0===t.series&&(t.series=zd.NOPE_SERIES),void 0===t.series.type&&(t.series.type=zd.NOPE_SERIES.type),void 0===t.series.axis&&(t.series.axis=t.series.type===zd.TYPE.BAR?zd.AXIS.PRIMARY:zd.AXIS.SECONDARY),t.series.type===zd.TYPE.BAR&&t.series.axis===zd.AXIS.SECONDARY&&(t.series.axis=zd.AXIS.PRIMARY)})),e.version=q2.BAR_IN_SECONDARY_AXIS),e}(e))}}}return function(n){var r;!function(e){if(e&&e.get&&e.add){const n="Object.Disclaimer.LimitedData";if(e.get(n)!==n)return;Object.keys(t).forEach((n=>{e.add(t[n])}))}}(n.translator);const{flags:i}=n,o=null===(r=n.anything)||void 0===r||null===(r=r.sense)||void 0===r?void 0:r.isUnsupportedFeature,a=KZ();return{qae:l3(n),ext:I3(n),component(){const t=function(){const[t,n]=e.useState();return e.useEffect((()=>n(xl())),[]),t}(),n=G5(),r=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}(),s=Q5(),l=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:a,environment:r}),c=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(Ld.SCALE.MAJOR),o=Pu({chart:t,actions:n,selections:r,config:{allowSimultaneous:!0,brushRanges:!0,majorScale:e,selectionActions:{reset(){t.brushSelectionIncludeMax=void 0,n.lasso.active()&&n.lasso.action(!1)},clear:Z5},selectionEvents:{start:e3}}});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:l,actions:s}),u=X5({picasso:a,chart:l,environment:r,flags:i,viewState:n,viewCache:t,actions:s,selectionService:c});!function({picasso:t,chart:n,models:r,environment:i,flags:o,viewState:a,viewCache:s,actions:l}){const{event:{onZoomIntercept:c,onZoomChange:u}}=Yg,[,d]=e.usePromise((async()=>{if(!(null!=n&&n.update&&r&&i&&a&&s))return;const{layoutService:e,colorService:d,continuousModel:f,discreteModel:h,refLineModel:p,seriesModel:m}=r,{miniComponentKeys:g}=m.meta,{options:y}=i,{viewState:v={}}=y,{legendScrollOffset:b,scrollOffset:x}=e.meta.isSnapshot?e.getLayoutValue("snapshotData.content.chartData",{}):v;a.preventSet("scrollOffset",x),a.preventSet("legendScrollOffset",b),a.preventSet("title",e.getLayoutValue("title"));const S=()=>{p&&p.update(),n.update({partialData:!0,excludeFromUpdate:[...py,...g]})};function w(e=!1){n.update({settings:hy({picasso:t,chart:n,models:r,environment:i,flags:o,viewState:a,viewCache:s,actions:l}),data:e&&[my({models:r}),...gy({models:r}),...d.getData()]})}a.onChanged("scrollOffset",S),e.meta.isContinuous&&(a.onChanged("zoom",u({layoutService:e,continuousDataModel:f},S)),a.intercept("zoom",c({viewCache:s})));const M=e.getDataPages();e.setDataPages([]),w(!0),e.setDataPages(M),e.meta.isContinuous||await h.command.initialize(),w(!1)}),[null==n?void 0:n.update,r,i]);if(d)throw d}({picasso:a,chart:l,models:u,environment:r,flags:i,viewState:n,viewCache:t,actions:s}),(({picasso:t,chart:n,models:r,environment:i,flags:o,viewState:a,viewCache:s,actions:l,isUnsupportedFeature:c})=>{const{width:u,height:d}=e.useRect(),[,f]=e.usePromise((async()=>{if(!(null!=n&&n.update&&r&&i&&a))return;const{colorService:e,discreteModel:f,dockService:h,layoutService:p,refLineModel:m}=r;function g(){n.update({settings:hy({picasso:t,chart:n,models:r,environment:i,flags:o,viewState:a,viewCache:s,actions:l,isUnsupportedFeature:c})})}h.update({width:u,height:d}),e.custom.updateLegend(),m.update({picasso:t,chart:n,models:r,environment:i,viewState:a,viewCache:s,actions:l});const y=p.getDataPages();p.setDataPages([]),g(),p.setDataPages(y),p.meta.isContinuous||await f.command.initialize(),g()}),[u,d]);if(f)throw f})({picasso:a,chart:l,models:u,environment:r,flags:i,viewState:n,viewCache:t,actions:s,isUnsupportedFeature:o}),(({models:t,chart:n,viewState:r})=>{e.onTakeSnapshot((e=>{if(!t)return;const{layoutService:i,dockService:o,colorService:a,discreteModel:s,continuousModel:l,reducedModel:c}=t,{width:u,height:d}=o.meta.chart.size;return e.snapshotData=e.snapshotData||{},e.snapshotData.content={size:{w:u,h:d}},i.meta.isSnapshot?Promise.resolve():(e.snapshotData.content.chartData={scrollOffset:r.get("scrollOffset"),zoom:r.get("zoom"),legendScrollOffset:A(n,Ld.COMPONENT.LEGEND_CATEGORICAL)},i.meta.isDiscrete?(s.command.setSnapshotData(e),c.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:A(n,Ld.COMPONENT.LEGEND_CATEGORICAL)}}})),[r,n])})({models:u,chart:l,viewState:n})}}}}));
|