@progress/kendo-react-gauges 6.1.1 → 7.0.0-develop.2
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/{dist/npm/ArcCenter.d.ts → ArcCenter.d.ts} +4 -0
- package/{dist/npm/ArcGauge.d.ts → ArcGauge.d.ts} +4 -0
- package/{dist/es/ArcGaugeProps.d.ts → ArcGaugeProps.d.ts} +4 -1
- package/{dist/npm/BaseGauge.d.ts → BaseGauge.d.ts} +4 -0
- package/{dist/es/BaseGaugeProps.d.ts → BaseGaugeProps.d.ts} +4 -1
- package/CircularGauge.d.ts +10 -0
- package/{dist/es/CircularGaugeProps.d.ts → CircularGaugeProps.d.ts} +4 -0
- package/GaugeContext.d.ts +16 -0
- package/LICENSE.md +1 -1
- package/{dist/es/LinearGauge.d.ts → LinearGauge.d.ts} +4 -0
- package/{dist/npm/LinearGaugeProps.d.ts → LinearGaugeProps.d.ts} +4 -0
- package/{dist/es/RadialGauge.d.ts → RadialGauge.d.ts} +4 -0
- package/{dist/npm/RadialGaugeProps.d.ts → RadialGaugeProps.d.ts} +4 -0
- package/common/gauges.d.ts +9 -0
- package/dist/cdn/js/kendo-react-gauges.js +9 -1
- package/index.d.ts +15 -0
- package/index.js +9 -0
- package/index.mjs +502 -0
- package/package-metadata.d.ts +9 -0
- package/package.json +30 -44
- package/{dist/npm/store → store}/reducer.d.ts +4 -0
- package/{dist/es/store → store}/store.d.ts +4 -0
- package/theming/theme-service.d.ts +10 -0
- package/{dist/npm/types → types}/arc-scale.interface.d.ts +4 -0
- package/{dist/es/types → types}/border.interface.d.ts +4 -0
- package/types/cap.interface.d.ts +17 -0
- package/types/circular-scale.interface.d.ts +14 -0
- package/{dist/npm/types → types}/color-range.interface.d.ts +4 -0
- package/types/dash-type.interface.d.ts +8 -0
- package/{dist/npm/types → types}/gauge-area.interface.d.ts +4 -0
- package/{dist/npm/types → types}/labels.interface.d.ts +4 -0
- package/types/line-cap.d.ts +8 -0
- package/{dist/npm/types → types}/line.interface.d.ts +4 -0
- package/types/linear-pointer-shape.d.ts +8 -0
- package/{dist/es/types → types}/linear-pointer.interface.d.ts +4 -0
- package/{dist/npm/types → types}/linear-scale.interface.d.ts +4 -0
- package/{dist/es/types → types}/margin.interface.d.ts +4 -0
- package/{dist/es/types → types}/padding.interface.d.ts +4 -0
- package/types/radial-label-position.d.ts +8 -0
- package/types/radial-labels.interface.d.ts +12 -0
- package/{dist/es/types → types}/radial-pointer.interface.d.ts +4 -0
- package/{dist/npm/types → types}/radial-scale.interface.d.ts +4 -0
- package/{dist/es/types → types}/range.interface.d.ts +4 -0
- package/{dist/npm/types → types}/scale.interface.d.ts +4 -0
- package/{dist/es/types → types}/ticks.interface.d.ts +4 -0
- package/types.d.ts +25 -0
- package/utils/common.d.ts +5 -0
- package/about.md +0 -3
- package/dist/es/ArcCenter.d.ts +0 -36
- package/dist/es/ArcCenter.js +0 -76
- package/dist/es/ArcGauge.d.ts +0 -33
- package/dist/es/ArcGauge.js +0 -128
- package/dist/es/ArcGaugeProps.js +0 -1
- package/dist/es/BaseGauge.d.ts +0 -89
- package/dist/es/BaseGauge.js +0 -247
- package/dist/es/BaseGaugeProps.js +0 -2
- package/dist/es/CircularGauge.d.ts +0 -6
- package/dist/es/CircularGauge.js +0 -27
- package/dist/es/CircularGaugeProps.js +0 -1
- package/dist/es/GaugeContext.d.ts +0 -12
- package/dist/es/GaugeContext.js +0 -6
- package/dist/es/LinearGauge.js +0 -121
- package/dist/es/LinearGaugeProps.d.ts +0 -15
- package/dist/es/LinearGaugeProps.js +0 -1
- package/dist/es/RadialGauge.js +0 -121
- package/dist/es/RadialGaugeProps.d.ts +0 -15
- package/dist/es/RadialGaugeProps.js +0 -1
- package/dist/es/common/gauges.d.ts +0 -5
- package/dist/es/common/gauges.js +0 -1
- package/dist/es/main.d.ts +0 -11
- package/dist/es/main.js +0 -7
- package/dist/es/package-metadata.d.ts +0 -5
- package/dist/es/package-metadata.js +0 -11
- package/dist/es/store/reducer.d.ts +0 -14
- package/dist/es/store/reducer.js +0 -102
- package/dist/es/store/store.js +0 -28
- package/dist/es/theming/theme-service.d.ts +0 -6
- package/dist/es/theming/theme-service.js +0 -53
- package/dist/es/types/arc-scale.interface.d.ts +0 -28
- package/dist/es/types/arc-scale.interface.js +0 -2
- package/dist/es/types/border.interface.js +0 -1
- package/dist/es/types/cap.interface.d.ts +0 -13
- package/dist/es/types/cap.interface.js +0 -1
- package/dist/es/types/circular-scale.interface.d.ts +0 -10
- package/dist/es/types/circular-scale.interface.js +0 -1
- package/dist/es/types/color-range.interface.d.ts +0 -21
- package/dist/es/types/color-range.interface.js +0 -1
- package/dist/es/types/dash-type.interface.d.ts +0 -4
- package/dist/es/types/dash-type.interface.js +0 -1
- package/dist/es/types/gauge-area.interface.d.ts +0 -27
- package/dist/es/types/gauge-area.interface.js +0 -1
- package/dist/es/types/labels.interface.d.ts +0 -47
- package/dist/es/types/labels.interface.js +0 -2
- package/dist/es/types/line-cap.d.ts +0 -4
- package/dist/es/types/line-cap.js +0 -1
- package/dist/es/types/line.interface.d.ts +0 -22
- package/dist/es/types/line.interface.js +0 -1
- package/dist/es/types/linear-pointer-shape.d.ts +0 -4
- package/dist/es/types/linear-pointer-shape.js +0 -1
- package/dist/es/types/linear-pointer.interface.js +0 -1
- package/dist/es/types/linear-scale.interface.d.ts +0 -26
- package/dist/es/types/linear-scale.interface.js +0 -2
- package/dist/es/types/margin.interface.js +0 -1
- package/dist/es/types/padding.interface.js +0 -1
- package/dist/es/types/radial-label-position.d.ts +0 -4
- package/dist/es/types/radial-label-position.js +0 -1
- package/dist/es/types/radial-labels.interface.d.ts +0 -8
- package/dist/es/types/radial-labels.interface.js +0 -1
- package/dist/es/types/radial-pointer.interface.js +0 -2
- package/dist/es/types/radial-scale.interface.d.ts +0 -28
- package/dist/es/types/radial-scale.interface.js +0 -2
- package/dist/es/types/range.interface.js +0 -1
- package/dist/es/types/scale.interface.d.ts +0 -47
- package/dist/es/types/scale.interface.js +0 -1
- package/dist/es/types/ticks.interface.js +0 -2
- package/dist/es/types.d.ts +0 -21
- package/dist/es/types.js +0 -1
- package/dist/es/utils/common.d.ts +0 -1
- package/dist/es/utils/common.js +0 -36
- package/dist/npm/ArcCenter.js +0 -79
- package/dist/npm/ArcGauge.js +0 -131
- package/dist/npm/ArcGaugeProps.d.ts +0 -40
- package/dist/npm/ArcGaugeProps.js +0 -2
- package/dist/npm/BaseGauge.js +0 -250
- package/dist/npm/BaseGaugeProps.d.ts +0 -52
- package/dist/npm/BaseGaugeProps.js +0 -3
- package/dist/npm/CircularGauge.d.ts +0 -6
- package/dist/npm/CircularGauge.js +0 -30
- package/dist/npm/CircularGaugeProps.d.ts +0 -17
- package/dist/npm/CircularGaugeProps.js +0 -2
- package/dist/npm/GaugeContext.d.ts +0 -12
- package/dist/npm/GaugeContext.js +0 -9
- package/dist/npm/LinearGauge.d.ts +0 -32
- package/dist/npm/LinearGauge.js +0 -124
- package/dist/npm/LinearGaugeProps.js +0 -2
- package/dist/npm/RadialGauge.d.ts +0 -32
- package/dist/npm/RadialGauge.js +0 -124
- package/dist/npm/RadialGaugeProps.js +0 -2
- package/dist/npm/common/gauges.d.ts +0 -5
- package/dist/npm/common/gauges.js +0 -2
- package/dist/npm/main.d.ts +0 -11
- package/dist/npm/main.js +0 -27
- package/dist/npm/package-metadata.d.ts +0 -5
- package/dist/npm/package-metadata.js +0 -14
- package/dist/npm/store/reducer.js +0 -107
- package/dist/npm/store/store.d.ts +0 -26
- package/dist/npm/store/store.js +0 -31
- package/dist/npm/theming/theme-service.d.ts +0 -6
- package/dist/npm/theming/theme-service.js +0 -56
- package/dist/npm/types/arc-scale.interface.js +0 -3
- package/dist/npm/types/border.interface.d.ts +0 -18
- package/dist/npm/types/border.interface.js +0 -2
- package/dist/npm/types/cap.interface.d.ts +0 -13
- package/dist/npm/types/cap.interface.js +0 -2
- package/dist/npm/types/circular-scale.interface.d.ts +0 -10
- package/dist/npm/types/circular-scale.interface.js +0 -2
- package/dist/npm/types/color-range.interface.js +0 -2
- package/dist/npm/types/dash-type.interface.d.ts +0 -4
- package/dist/npm/types/dash-type.interface.js +0 -2
- package/dist/npm/types/gauge-area.interface.js +0 -2
- package/dist/npm/types/labels.interface.js +0 -3
- package/dist/npm/types/line-cap.d.ts +0 -4
- package/dist/npm/types/line-cap.js +0 -2
- package/dist/npm/types/line.interface.js +0 -2
- package/dist/npm/types/linear-pointer-shape.d.ts +0 -4
- package/dist/npm/types/linear-pointer-shape.js +0 -2
- package/dist/npm/types/linear-pointer.interface.d.ts +0 -36
- package/dist/npm/types/linear-pointer.interface.js +0 -2
- package/dist/npm/types/linear-scale.interface.js +0 -3
- package/dist/npm/types/margin.interface.d.ts +0 -21
- package/dist/npm/types/margin.interface.js +0 -2
- package/dist/npm/types/padding.interface.d.ts +0 -21
- package/dist/npm/types/padding.interface.js +0 -2
- package/dist/npm/types/radial-label-position.d.ts +0 -4
- package/dist/npm/types/radial-label-position.js +0 -2
- package/dist/npm/types/radial-labels.interface.d.ts +0 -8
- package/dist/npm/types/radial-labels.interface.js +0 -2
- package/dist/npm/types/radial-pointer.interface.d.ts +0 -22
- package/dist/npm/types/radial-pointer.interface.js +0 -3
- package/dist/npm/types/radial-scale.interface.js +0 -3
- package/dist/npm/types/range.interface.d.ts +0 -21
- package/dist/npm/types/range.interface.js +0 -2
- package/dist/npm/types/scale.interface.js +0 -2
- package/dist/npm/types/ticks.interface.d.ts +0 -21
- package/dist/npm/types/ticks.interface.js +0 -3
- package/dist/npm/types.d.ts +0 -21
- package/dist/npm/types.js +0 -2
- package/dist/npm/utils/common.d.ts +0 -1
- package/dist/npm/utils/common.js +0 -40
- package/dist/systemjs/kendo-react-gauges.js +0 -1
- package/e2e-next/arcgauge.basic.tests.ts +0 -24
- package/e2e-next/circulargauge.basic.tests.ts +0 -24
- package/e2e-next/lineargauge.basic.tests.ts +0 -24
- package/e2e-next/radialgauge.basic.tests.ts +0 -24
|
@@ -1 +1,9 @@
|
|
|
1
|
-
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react"),require("prop-types"),require("@progress/kendo-react-intl"),require("@progress/kendo-drawing"),require("@progress/kendo-licensing"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","prop-types","@progress/kendo-react-intl","@progress/kendo-drawing","@progress/kendo-licensing","react-dom"],e):"object"==typeof exports?exports.KendoReactGauges=e(require("react"),require("prop-types"),require("@progress/kendo-react-intl"),require("@progress/kendo-drawing"),require("@progress/kendo-licensing"),require("react-dom")):t.KendoReactGauges=e(t.React,t.PropTypes,t.KendoReactIntl,t.KendoDrawing,t.KendoLicensing,t.ReactDOM)}(self,(function(t,e,o,i,r,n){return(()=>{"use strict";var s={133:function(t,e,o){var i,r=this&&this.__extends||(i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},i(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)});Object.defineProperty(e,"__esModule",{value:!0}),e.ArcCenter=void 0;var n=o(899),s=o(697),a=o(635),p=function(t){function e(e,o){var i=t.call(this,e,o)||this;return i.state={arcCenterStyles:null,arcCenterValue:{value:0,color:""}},i._element=null,i.gaugeObserver=new s.InstanceObserver(i,{render:"onRender"}),o.observersStore.dispatch({type:"add",payload:i.gaugeObserver}),i}return r(e,t),e.prototype.render=function(){var t=this,e=this.props.render,o=this.state,i=o.arcCenterStyles,r=o.arcCenterValue,s=i||{zIndex:-1},a=null;return e&&(a=n.createElement("div",{className:"k-arcgauge-label",ref:function(e){return t._element=e},style:s},e(r.value,r.color))),a},e.prototype.onRender=function(t){if(this._element){var e=t.sender.gaugeInstance,o=this._element.offsetWidth,i=this._element.offsetHeight,r=e.centerLabelPosition(o,i);this.setState({arcCenterStyles:{left:r.left,top:r.top},arcCenterValue:{value:e.value(),color:e.currentColor()}})}},e.contextType=a.GaugeContext,e}(n.Component);e.ArcCenter=p},226:function(t,e,o){var i,r=this&&this.__extends||(i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},i(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),n=this&&this.__assign||function(){return n=Object.assign||function(t){for(var e,o=1,i=arguments.length;o<i;o++)for(var r in e=arguments[o])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},n.apply(this,arguments)},s=this&&this.__rest||function(t,e){var o={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(o[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(o[i[r]]=t[i[r]])}return o};Object.defineProperty(e,"__esModule",{value:!0}),e.ArcGauge=void 0;var a=o(899),p=o(283),l=o(697),c=o(133),h=o(407),u=o(216),d=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._baseGauge=null,e.gaugeType=l.ArcGauge,e.getTarget=function(){return e},e.deriveOptionsFromParent=function(t){var o=e.props,i=o.value,r=o.color,n=o.colors,s=o.opacity,a=o.scale;return Object.assign({},t,{value:i,color:r,colors:n,opacity:s,scale:a})},e}return r(e,t),Object.defineProperty(e.prototype,"gaugeInstance",{get:function(){return this._baseGauge?this._baseGauge.gaugeInstance:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"surface",{get:function(){return this._baseGauge?this._baseGauge.surface:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"element",{get:function(){return this._baseGauge?this._baseGauge.element:null},enumerable:!1,configurable:!0}),e.prototype.render=function(){var t=this,e=this.props,o=e.children,i=e.arcCenterRender,r=e.centerRender,l=e.className,h=s(e,["children","arcCenterRender","centerRender","className"]);return a.createElement(p.BaseGauge,n({},h,{deriveOptionsFromParent:this.deriveOptionsFromParent,ref:function(e){return t._baseGauge=e},gaugeConstructor:this.gaugeType,getTarget:this.getTarget,className:(0,u.classNames)("k-gauge k-arcgauge",l)}),o,a.createElement(c.ArcCenter,{render:r||i}))},e.prototype.exportVisual=function(t){return null!==this.gaugeInstance&&this.element?(0,h.drawDOM)(this.element,t):Promise.resolve(new h.Group)},e}(a.Component);e.ArcGauge=d},283:function(t,e,o){var i,r=this&&this.__extends||(i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},i(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),n=this&&this.__rest||function(t,e){var o={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(o[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(o[i[r]]=t[i[r]])}return o};Object.defineProperty(e,"__esModule",{value:!0}),e.BaseGauge=void 0;var s=o(899),a=o(189),p=o(499),l=o(803),c=o(113),h=o(600),u=o(841),d=o(216),f=o(635),g=o(216),y=o(363),v=function(t){function e(e){var o=t.call(this,e)||this;return o.gaugeInstance=null,o.surface=null,o._element=null,o.themeStore={},o.themeUnsubscriber=Function.prototype,o.observersStore={},o.onWindowResize=function(){null!==o.gaugeInstance&&(o.gaugeInstance.resize(),o.trigger("render",{sender:o}))},(0,g.validatePackage)(y.packageMetadata),o.themeStore=(0,c.default)(h.themeReducer),o.observersStore=(0,c.default)(h.observersReducer),o.contextValue={observersStore:o.observersStore},o}return r(e,t),Object.defineProperty(e.prototype,"element",{get:function(){return this._element},enumerable:!1,configurable:!0}),e.prototype.componentDidMount=function(){var t,e=(null===(t=this._element)||void 0===t?void 0:t.ownerDocument)||document;(0,l.loadTheme)(this.themeStore,this.instantiateCoreGauge.bind(this),e),this.themeUnsubscriber=this.themeStore.subscribe(this.refresh.bind(this)),window.addEventListener("resize",this.onWindowResize),this.trigger("render",{sender:this})},e.prototype.componentDidUpdate=function(t){var e=this.props,o=e.dir,i=(e.children,e.deriveOptionsFromParent,e.getTarget,e.gaugeConstructor,e.className,e.renderAs),r=n(e,["dir","children","deriveOptionsFromParent","getTarget","gaugeConstructor","className","renderAs"]),s=(t.dir,t.children,t.deriveOptionsFromParent,t.getTarget,t.gaugeConstructor,t.className,t.renderAs),a=n(t,["dir","children","deriveOptionsFromParent","getTarget","gaugeConstructor","className","renderAs"]);if(null!==this.gaugeInstance){var l=(0,p.provideIntlService)(this),c=this.gaugeInstance.contextService,h=l.locale!==c._intlService.locale,d=(0,u.isOptionsChanged)(a,r),f=r;h&&(this.gaugeInstance.contextService._intlService=l,this.gaugeInstance.contextService.format._intlService=l,d||this.gaugeInstance.noTransitionsRedraw()),d||(i||"svg")!==(s||"svg")?this.refresh():Object.keys(r).indexOf("pointer")>-1?Array.isArray(f.pointer)?this.refreshAllValues(f.pointer.map((function(t){return t.value}))):this.refreshValue((f.pointer||{}).value):this.refreshValue(f.value),t.dir!==o&&this.gaugeInstance.setDirection(this.getDirection(o)),this.trigger("render",{sender:this})}},e.prototype.componentWillUnmount=function(){this.themeUnsubscriber();var t=this.gaugeInstance&&this.gaugeInstance.surfaceElement;t&&t.parentNode&&t.parentNode.removeChild(t),null!==this.gaugeInstance&&(this.gaugeInstance.destroy(),this.gaugeInstance=null),window.removeEventListener("resize",this.onWindowResize)},e.prototype.render=function(){var t=this,e=this.props,o=e.style,i=void 0===o?{}:o,r=e.className,n=e.children,a=Object.assign({},i,{position:"relative"});return s.createElement(f.GaugeContext.Provider,{value:this.contextValue},s.createElement("div",{style:a,ref:function(e){return t._element=e},className:r},n))},e.prototype.instantiateCoreGauge=function(){var t=this.props,e=t.dir,o=t.gaugeConstructor,i=this.getGaugeOptions();this.gaugeInstance=new o(this.element,i,this.themeStore.getState(),{rtl:this.getDirection(e),intlService:(0,p.provideIntlService)(this),sender:this})},e.prototype.refresh=function(){if(null!==this.gaugeInstance){var t=this.themeStore.getState(),e=this.getGaugeOptions();this.gaugeInstance.setOptions(e,t)}},e.prototype.refreshValue=function(t){this.gaugeInstance.value(t)},e.prototype.refreshAllValues=function(t){this.gaugeInstance.allValues(t)},e.prototype.getDirection=function(t){return"rtl"===(void 0!==t?t:d.canUseDOM&&window.getComputedStyle(this.element).direction||"ltr")},e.prototype.getGaugeOptions=function(){var t=this.props,e=t.renderAs,o=t.transitions,i=t.deriveOptionsFromParent,r=Object.assign({renderAs:e,transitions:o});return i&&(r=i(r)),r},e.prototype.trigger=function(t,e){for(var o=this.observersStore.getState(),i=0;i<o.length;i++)o[i].trigger(t,e)},e.propTypes={dir:a.string,renderAs:a.oneOf(["svg","canvas"])},e.defaultProps={renderAs:"svg"},e}(s.Component);e.BaseGauge=v,(0,p.registerForIntl)(v)},700:function(t,e,o){var i,r=this&&this.__extends||(i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},i(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)});Object.defineProperty(e,"__esModule",{value:!0}),e.CircularGauge=void 0;var n=o(226),s=o(697),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.gaugeType=s.CircularGauge,e}return r(e,t),e}(n.ArcGauge);e.CircularGauge=a},635:(t,e,o)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.GaugeContext=void 0;var i=o(899);e.GaugeContext=i.createContext(null),e.GaugeContext.displayName="GaugeContext"},880:function(t,e,o){var i,r=this&&this.__extends||(i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},i(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),n=this&&this.__assign||function(){return n=Object.assign||function(t){for(var e,o=1,i=arguments.length;o<i;o++)for(var r in e=arguments[o])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},n.apply(this,arguments)},s=this&&this.__rest||function(t,e){var o={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(o[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(o[i[r]]=t[i[r]])}return o};Object.defineProperty(e,"__esModule",{value:!0}),e.LinearGauge=void 0;var a=o(899),p=o(283),l=o(697),c=o(407),h=o(216),u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._baseGauge=null,e.getTarget=function(){return e},e.deriveOptionsFromParent=function(t){var o=e.props,i=o.pointer,r=o.scale;return Object.assign({},t,{pointer:i,scale:r})},e}return r(e,t),Object.defineProperty(e.prototype,"gaugeInstance",{get:function(){return null!==this._baseGauge?this._baseGauge.gaugeInstance:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"surface",{get:function(){return null!==this._baseGauge?this._baseGauge.surface:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"element",{get:function(){return null!==this._baseGauge?this._baseGauge.element:null},enumerable:!1,configurable:!0}),e.prototype.render=function(){var t=this,e=this.props,o=e.children,i=e.className,r=s(e,["children","className"]);return a.createElement(p.BaseGauge,n({},r,{deriveOptionsFromParent:this.deriveOptionsFromParent,ref:function(e){return t._baseGauge=e},gaugeConstructor:l.LinearGauge,getTarget:this.getTarget,className:(0,h.classNames)("k-gauge",i)}),o)},e.prototype.exportVisual=function(t){return null!==this.gaugeInstance?Promise.resolve(this.gaugeInstance.exportVisual(t)):Promise.resolve(new c.Group)},e}(a.Component);e.LinearGauge=u},101:function(t,e,o){var i,r=this&&this.__extends||(i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},i(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),n=this&&this.__assign||function(){return n=Object.assign||function(t){for(var e,o=1,i=arguments.length;o<i;o++)for(var r in e=arguments[o])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},n.apply(this,arguments)},s=this&&this.__rest||function(t,e){var o={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(o[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(o[i[r]]=t[i[r]])}return o};Object.defineProperty(e,"__esModule",{value:!0}),e.RadialGauge=void 0;var a=o(899),p=o(283),l=o(697),c=o(407),h=o(216),u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._baseGauge=null,e.getTarget=function(){return e},e.deriveOptionsFromParent=function(t){var o=e.props,i=o.pointer,r=o.scale;return Object.assign({},t,{pointer:i,scale:r})},e}return r(e,t),Object.defineProperty(e.prototype,"gaugeInstance",{get:function(){return null!==this._baseGauge?this._baseGauge.gaugeInstance:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"surface",{get:function(){return null!==this._baseGauge?this._baseGauge.surface:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"element",{get:function(){return null!==this._baseGauge?this._baseGauge.element:null},enumerable:!1,configurable:!0}),e.prototype.render=function(){var t=this,e=this.props,o=e.children,i=e.className,r=s(e,["children","className"]);return a.createElement(p.BaseGauge,n({},r,{deriveOptionsFromParent:this.deriveOptionsFromParent,ref:function(e){return t._baseGauge=e},gaugeConstructor:l.RadialGauge,getTarget:this.getTarget,className:(0,h.classNames)("k-gauge",i)}),o)},e.prototype.exportVisual=function(t){return null!==this.gaugeInstance?Promise.resolve(this.gaugeInstance.exportVisual(t)):Promise.resolve(new c.Group)},e}(a.Component);e.RadialGauge=u},722:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},468:function(t,e,o){var i=this&&this.__createBinding||(Object.create?function(t,e,o,i){void 0===i&&(i=o);var r=Object.getOwnPropertyDescriptor(e,o);r&&!("get"in r?!e.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return e[o]}}),Object.defineProperty(t,i,r)}:function(t,e,o,i){void 0===i&&(i=o),t[i]=e[o]}),r=this&&this.__exportStar||function(t,e){for(var o in t)"default"===o||Object.prototype.hasOwnProperty.call(e,o)||i(e,t,o)};Object.defineProperty(e,"__esModule",{value:!0}),e.RadialGauge=e.LinearGauge=e.CircularGauge=e.ArcGauge=void 0;var n=o(226);Object.defineProperty(e,"ArcGauge",{enumerable:!0,get:function(){return n.ArcGauge}});var s=o(700);Object.defineProperty(e,"CircularGauge",{enumerable:!0,get:function(){return s.CircularGauge}});var a=o(880);Object.defineProperty(e,"LinearGauge",{enumerable:!0,get:function(){return a.LinearGauge}});var p=o(101);Object.defineProperty(e,"RadialGauge",{enumerable:!0,get:function(){return p.RadialGauge}}),r(o(722),e),r(o(881),e)},363:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.packageMetadata=void 0,e.packageMetadata={name:"@progress/kendo-react-gauges",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1700064599,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning"}},600:function(t,e){var o=this&&this.__spreadArray||function(t,e,o){if(o||2===arguments.length)for(var i,r=0,n=e.length;r<n;r++)!i&&r in e||(i||(i=Array.prototype.slice.call(e,0,r)),i[r]=e[r]);return t.concat(i||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.observersReducer=e.themeReducer=e.optionsReducer=void 0,e.optionsReducer=function(t,e){return e.gaugeCollectionIdxKey?i.collectionConfigurationItem(t,e):e.gaugeKey?i.configurationItem(t,e):{}},e.themeReducer=function(t,e){if(!e.type)return{};switch(e.type){case"set":return i.themeItem(t,e);case"push":return Object.assign(t,e.payload);default:return t}},e.observersReducer=function(t,e){if(!e.type)return[];switch(e.type){case"add":return o(o([],t,!0),[e.payload],!1);case"remove":return t.filter((function(t){return t!==e.payload}));default:return t}};var i={configurationItem:function(t,e){var o;return Object.assign(t,((o={})[e.gaugeKey]=e.payload,o))},collectionConfigurationItem:function(t,e){var o,i=!1,r=e.gaugeCollectionIdxKey.split("_"),n=r[0],s=r[1],a=t[n].map((function(t,o){return parseInt(s,10)===o?(i=!0,e.payload):t}));return!1===i&&a.splice(parseInt(s,10),0,e.payload),Object.assign(t,((o={})[n]=a,o))},themeItem:function(t,e){for(var o={},i=Object.assign(o,t),r=e.payload,n=r.field,s=r.value,a=n.split("."),p=a.shift();a.length>0;)o=o[p]=o[p]||{},p=a.shift();return o[p]=s,i}}},113:(t,e,o)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.THROTTLE_MS=void 0;var i=o(216);e.THROTTLE_MS=1e3/60,e.default=function(t){var o,r,n=[],s=function(s){o=t(o,s),i.canUseDOM&&(window.clearTimeout(r),r=window.setTimeout((function(){return n.forEach((function(t){return t()}))}),e.THROTTLE_MS))};return s({}),{getState:function(){return o},dispatch:s,subscribe:function(t){return n.push(t),function(){return n=n.filter((function(e){return e!==t}))}}}}},803:(t,e,o)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.loadTheme=void 0;var i=o(697),r=function(){function t(t){this.store=t}return t.prototype.setStyle=function(t,e){this.store.dispatch({type:"set",payload:{field:t,value:e}})},t.prototype.setColors=function(){this.mapColor("pointer.color","gauge-pointer"),this.mapColor("scale.rangePlaceholderColor","gauge-track"),this.mapColor("scale.labels.color","normal-text-color"),this.mapColor("scale.minorTicks.color","normal-text-color"),this.mapColor("scale.majorTicks.color","normal-text-color"),this.mapColor("scale.line.color","normal-text-color")},t.prototype.mapColor=function(t,e){this.setStyle(t,this.queryStyle(e).backgroundColor)},t.prototype.queryStyle=function(t){var e=this.element;return window.getComputedStyle(e.querySelector(".k-var--".concat(t)))},t}();e.loadTheme=function(t,e,o){var n=new r(t);if(void 0!==o){var s=n.element=o.createElement("div");s.style.display="none",s.innerHTML='\n <div class="k-var--gauge-pointer"></div>\n <div class="k-var--gauge-track"></div>\n <div class="k-var--normal-text-color"></div>\n',o.body.appendChild(s);try{t.dispatch({type:"push",payload:(0,i.chartBaseTheme)()}),n.setColors()}finally{o.body.removeChild(n.element),delete n.element,e()}}else t.dispatch({type:"push",payload:(0,i.chartBaseTheme)()})}},881:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},841:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.isOptionsChanged=void 0;var o=function(t){return"object"==typeof t},i=function(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!0;for(var r in t)if("value"!==r&&t.hasOwnProperty(r)){var n=t[r],s=e[r];if(o(n)&&o(s)?i(n,s):n!==s)return!0}return!1};e.isOptionsChanged=function(t,e){if(!t||!e)return!0;if(t=[].concat(t),e=[].concat(e),t.length!==e.length)return!0;for(var o=0;o<t.length;o++)if(i(t[o],e[o]))return!0;return!1}},697:(t,e,o)=>{o.r(e),o.d(e,{Aggregates:()=>Vi,ArcGauge:()=>eu,ArcScale:()=>Qh,AreaChart:()=>hs,AreaSegment:()=>ns,ArrowLinearPointer:()=>bh,Axis:()=>ho,AxisGroupRangeTracker:()=>ds,AxisLabel:()=>We,Bar:()=>vs,BarChart:()=>As,BarLabel:()=>gs,BarLinearPointer:()=>Sh,Barcode:()=>Wu,Box:()=>de,BoxElement:()=>ke,BoxPlot:()=>Es,BoxPlotChart:()=>Ls,BubbleChart:()=>Us,Bullet:()=>Ys,BulletChart:()=>Qs,Candlestick:()=>Ps,CandlestickChart:()=>Ts,CategoricalChart:()=>jn,CategoricalErrorBar:()=>gn,CategoricalPlotArea:()=>tp,CategoryAxis:()=>Yo,Chart:()=>gc,ChartAxis:()=>Ii,ChartContainer:()=>ia,ChartElement:()=>we,ChartPane:()=>Li,ChartPlotArea:()=>ji,ChartService:()=>ro,CircularGauge:()=>iu,Class:()=>D.Class,ClipAnimation:()=>ts,ClusterLayout:()=>_s,Crosshair:()=>ea,CrosshairTooltip:()=>$s,CurveProcessor:()=>Mi,DateCategoryAxis:()=>oi,DateValueAxis:()=>hi,DefaultAggregates:()=>ma,DomEventsBuilder:()=>ao,DonutChart:()=>ol,DonutPlotArea:()=>rl,DonutSegment:()=>tl,ErrorBarBase:()=>dn,ErrorRangeCalculator:()=>Xi,Extent:()=>fg,FloatElement:()=>Re,FontLoader:()=>zt,FormatService:()=>eo,Gauge:()=>ih,Gradients:()=>Oe,HashMap:()=>ct,Highlight:()=>ip,InstanceObserver:()=>gt,IntlService:()=>Ke,Legend:()=>xp,LegendItem:()=>gp,LegendLayout:()=>dp,LineChart:()=>is,LinePoint:()=>Nn,LineSegment:()=>Un,LinearGauge:()=>Th,LinearPointer:()=>fh,LinearScale:()=>ch,Location:()=>df,LogarithmicAxis:()=>yi,Map:()=>Uy,MousewheelZoom:()=>hp,Navigator:()=>Bc,NavigatorHint:()=>Oc,Note:()=>Ye,NumericAxis:()=>li,OHLCChart:()=>Va,OHLCPoint:()=>Da,Pane:()=>sa,Pannable:()=>ap,PieAnimation:()=>Bp,PieChart:()=>Zp,PieChartMixin:()=>Yp,PiePlotArea:()=>Jp,PieSegment:()=>Xp,PlotAreaBase:()=>ua,PlotAreaEventsMixin:()=>fa,PlotAreaFactory:()=>_p,Point:()=>ce,PointEventsMixin:()=>zn,PolarAxis:()=>_i,QRCode:()=>ef,RadarCategoryAxis:()=>xi,RadarLogarithmicAxis:()=>Oi,RadarNumericAxis:()=>Si,RadialGauge:()=>Yh,RadialPointer:()=>Gh,RadialScale:()=>Dh,RangeAreaChart:()=>La,RangeAreaPoint:()=>Pa,RangeBar:()=>ba,RangeBarChart:()=>wa,RangePointer:()=>$h,Ring:()=>ye,RootElement:()=>Ee,ScatterChart:()=>Vs,ScatterErrorBar:()=>Ds,ScatterLineChart:()=>jp,Sector:()=>me,Selection:()=>Ap,SeriesAggregator:()=>ya,SeriesBinder:()=>Fi,ShapeBuilder:()=>be,ShapeElement:()=>Se,SharedTooltip:()=>Tp,Sparkline:()=>Cc,SplineAreaSegment:()=>ls,SplineSegment:()=>Zn,StackWrap:()=>Cs,StockChart:()=>jc,TemplateService:()=>ot,Text:()=>je,TextBox:()=>He,Title:()=>Ue,Tooltip:()=>Pp,WaterfallChart:()=>Ua,WaterfallSegment:()=>Na,XYPlotArea:()=>Fp,ZoomSelection:()=>lp,addClass:()=>B,alignPathToPixel:()=>z,anyHasZIndex:()=>yn,append:()=>_t,appendIfNotNull:()=>vn,areNumbers:()=>mn,autoMajorUnit:()=>le,autoTextColor:()=>$t,barcodeValidator:()=>Yu,bindEvents:()=>wt,bindSegments:()=>bn,categoriesCount:()=>_n,chartBaseTheme:()=>nv,clockwise:()=>V,constants:()=>i,convertableToNumber:()=>F,countNumbers:()=>Di,createHashSet:()=>se,createOutOfRangePoints:()=>Bn,deepExtend:()=>Y,defaultErrorHandler:()=>ae,defined:()=>Ct,deg:()=>kt,elementOffset:()=>At,elementScale:()=>Jt,elementSize:()=>St,elementStyles:()=>J,equalsIgnoreCase:()=>wn,evalOptions:()=>kn,eventCoordinates:()=>Pt,eventElement:()=>Ot,filterSeriesByType:()=>An,find:()=>qt,findAxisByName:()=>Ri,getDateField:()=>Sn,getField:()=>Hi,getSpacing:()=>$,getTemplate:()=>it,getter:()=>st,grep:()=>at,hasClasses:()=>pt,hasGradientOverlay:()=>Pn,hasValue:()=>On,hashKey:()=>Tt,inArray:()=>ht,interpolateValue:()=>ut,isArray:()=>R,isDateAxis:()=>Tn,isFunction:()=>U,isNumber:()=>H,isObject:()=>q,isPlainObject:()=>yt,isString:()=>N,keys:()=>pe,last:()=>Mt,limitValue:()=>Et,logToConsole:()=>D.logToConsole,map:()=>vt,mousewheelDelta:()=>xt,objectKey:()=>It,qrcodeValidator:()=>of,rad:()=>Rt,rectToBox:()=>De,removeClass:()=>j,renderIcon:()=>Xt,round:()=>Bt,segmentVisible:()=>xn,setDefaultOptions:()=>Vt,singleItemOrArray:()=>Mn,sparseArrayLimits:()=>Yt,styleValue:()=>Q,unbindEvents:()=>Lt,valueOrDefault:()=>jt});var i={};o.r(i),o.d(i,{DEFAULT_PANE:()=>Ec,NAVIGATOR_AXIS:()=>Mc,NAVIGATOR_PANE:()=>Tc});var r="arc",n="#000",s="bottom",a="center",p="circle",l=3,c="cross",h="date",u="12px sans-serif",d=10,f=/\{\d+:?/,g="height",y="inside",v="inherit",m="left",x=Number.MAX_VALUE,b=-Number.MAX_VALUE,_="none",w="object",C="outside",k="right",A="roundedRect",S="string",P="top",O="value",T="#fff",M="width",E="x",I="y";function R(t){return Array.isArray(t)}function B(t,e){for(var o=R(e)?e:[e],i=0;i<o.length;i++){var r=o[i];-1===t.className.indexOf(r)&&(t.className+=" "+r)}}var L=/\s+/g;function j(t,e){t&&t.className&&(t.className=t.className.replace(e,"").replace(L," "))}var D=o(407);function z(t){var e=.5;t.options.stroke&&D.drawing.util.defined(t.options.stroke.width)&&t.options.stroke.width%2==0&&(e=0);for(var o=0;o<t.segments.length;o++)t.segments[o].anchor().round(0).translate(e,e);return t}function V(t,e){return-t.x*e.y+t.y*e.x<0}function H(t){return"number"==typeof t&&!isNaN(t)}function N(t){return typeof t===S}function F(t){return H(t)||N(t)&&isFinite(t)}function U(t){return"function"==typeof t}var G="object",W="undefined";function X(t,e){for(var o in e){var i,r=e[o],n=typeof r;if((i=n===G&&null!==r?r.constructor:null)&&i!==Array)if(r instanceof Date)t[o]=new Date(r.getTime());else if(U(r.clone))t[o]=r.clone();else{var s=t[o];t[o]=typeof s===G&&s||{},X(t[o],r)}else n!==W&&(t[o]=r)}return t}function Y(t){for(var e=arguments,o=arguments.length,i=1;i<o;i++)X(t,e[i]);return t}function q(t){return"object"==typeof t}function Q(t){return H(t)?t+"px":t}var Z=/width|height|top|left|bottom|right/i;function K(t){return Z.test(t)}function J(t,e){var o=N(e)?[e]:e;if(R(o)){for(var i={},r=window.getComputedStyle(t),n=0;n<o.length;n++){var s=o[n];i[s]=K(s)?parseFloat(r[s]):r[s]}return i}if(q(e))for(var a in e)t.style[a]=Q(e[a])}function $(t,e){void 0===e&&(e=0);var o={top:0,right:0,bottom:0,left:0};return"number"==typeof t?o[P]=o[k]=o[s]=o[m]=t:(o[P]=t[P]||e,o[k]=t[k]||e,o[s]=t[s]||e,o[m]=t[m]||e),o}var tt={compile:function(t){return t}},et=function(){};et.register=function(t){tt=t},et.compile=function(t,e){return tt.compile(t,e)};const ot=et;function it(t){var e;return void 0===t&&(t={}),t.template?t.template=e=ot.compile(t.template):U(t.content)&&(e=t.content),e}var rt=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g,nt={};function st(t){if(nt[t])return nt[t];var e=[];return t.replace(rt,(function(t,o,i,r){e.push(D.drawing.util.defined(o)?o:i||r)})),nt[t]=function(t){for(var o=t,i=0;i<e.length&&o;i++)o=o[e[i]];return o},nt[t]}function at(t,e){for(var o=t.length,i=[],r=0;r<o;r++)e(t[r])&&i.push(t[r]);return i}function pt(t,e){if(t.className)for(var o=e.split(" "),i=0;i<o.length;i++)if(t.className.indexOf&&-1!==t.className.indexOf(o[i]))return!0}nt[void 0]=function(t){return t};var lt=function(){this._map=new Map};lt.prototype.get=function(t){return this._map.get(t)},lt.prototype.set=function(t,e){this._map.set(t,e)};const ct=lt;function ht(t,e){if(e)return-1!==e.indexOf(t)}function ut(t,e,o){return D.drawing.util.round(t+(e-t)*o,l)}var dt="trigger",ft=function(t,e){this.observer=t,this.handlerMap=Y({},this.handlerMap,e)};ft.prototype.trigger=function(t,e){var o,i=this.observer,r=this.handlerMap;return r[t]?o=this.callObserver(r[t],e):i[dt]&&(o=this.callObserver(dt,t,e)),o},ft.prototype.callObserver=function(t){for(var e=[],o=arguments.length-1;o-- >0;)e[o]=arguments[o+1];return this.observer[t].apply(this.observer,e)},ft.prototype.requiresHandlers=function(t){if(this.observer.requiresHandlers)return this.observer.requiresHandlers(t);for(var e=0;e<t.length;e++)if(this.handlerMap[t[e]])return!0};const gt=ft;function yt(t){return"[object Object]"===Object.prototype.toString.call(t)}function vt(t,e){for(var o=t.length,i=[],r=0;r<o;r++){var n=e(t[r]);D.drawing.util.defined(n)&&i.push(n)}return i}var mt=D.support.browser||{};function xt(t){var e=0;return t.wheelDelta?(e=-t.wheelDelta/120,mt.webkit&&(e/=2*Math.max(window.devicePixelRatio,.625))):t.detail&&(e=t.detail/3),e>0?Math.ceil(e):Math.floor(e)}var bt=D.drawing.util,_t=bt.append,wt=bt.bindEvents,Ct=bt.defined,kt=bt.deg,At=bt.elementOffset,St=bt.elementSize,Pt=bt.eventCoordinates,Ot=bt.eventElement,Tt=bt.hashKey,Mt=bt.last,Et=bt.limitValue,It=bt.objectKey,Rt=bt.rad,Bt=bt.round,Lt=bt.unbindEvents,jt=bt.valueOrDefault,Dt=function(){};Dt.fetchFonts=function(t,e,o){void 0===o&&(o={depth:0}),!t||o.depth>5||!document.fonts||Object.keys(t).forEach((function(i){var r=t[i];"dataSource"!==i&&"$"!==i[0]&&r&&("font"===i?e.push(r):"object"==typeof r&&(o.depth++,Dt.fetchFonts(r,e,o),o.depth--))}))},Dt.loadFonts=function(t,e){var o=[];if(t.length>0&&document.fonts){try{o=t.map((function(t){return document.fonts.load(t)}))}catch(t){(0,D.logToConsole)(t)}Promise.all(o).then(e,e)}else e()},Dt.preloadFonts=function(t,e){var o=[];Dt.fetchFonts(t,o),Dt.loadFonts(o,e)};const zt=Dt;function Vt(t,e){var o=t.prototype;o.options?o.options=Y({},o.options,e):o.options=e}var Ht="k-i-",Nt="k-svg-i-",Ft=function(t,e){this.element=t,this.options=Y({},this.options,e),this.wrapper()};Ft.prototype.wrapper=function(){this.addClasses()},Ft.prototype.addClasses=function(){},Ft.prototype.html=function(){return this.element.outerHTML},Vt(Ft,{name:"",size:"none",themeColor:"none",flip:"default",iconClass:"",stylingOptions:["size","themeColor","fill"]});var Ut=function(t){function e(e,o){t.call(this,e,o)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.wrapper=function(){var e=this.element.className.split(" ").find((function(t){return t.startsWith(Ht)})),o=this.options.icon?""+(this.options.icon.startsWith(Ht)?"":Ht)+this.options.icon:"";this._className=o,B(this.element,"k-icon"),j(this.element,e),B(this.element,o),B(this.element,this.options.iconClass||""),t.prototype.wrapper.call(this)},e}(Ft);Vt(Ut,{name:"HTMLFontIcon",icon:null});var Gt=function(t){function e(e,o){e.innerHTML="",t.call(this,e,o)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.wrapper=function(){var e=this.options.icon,o=this.options.iconClass,i=this.element.className.split(" ").find((function(t){return t.startsWith(Nt)}));if(!e&&o){var r=o.match(/k-i-(\w+(?:-\w+)*)/);r&&(e=r[1],o=o.replace(r[0],""))}N(e)&&(e=e.replace("k-i-","").replace(/-./g,(function(t){return t[1].toUpperCase()})),e=this.options.svgIcons[e]||this.options.svgIcons[e+"Icon"]);var n=e&&e.name?""+Nt+e.name:"";if(this._className=n,B(this.element,"k-svg-icon"),j(this.element,i),B(this.element,n),B(this.element,o||""),this.element.setAttribute("aria-hidden","true"),e&&yt(e)){var s=document.createElementNS("http://www.w3.org/2000/svg","svg");s.setAttribute("viewBox",e.viewBox||""),s.setAttribute("focusable","false"),s.innerHTML=e.content||"",this.element.appendChild(s)}t.prototype.wrapper.call(this)},e}(Ft);Vt(Gt,{name:"HTMLSvgIcon",icon:null,svgIcons:{}});var Wt={svg:Gt,font:Ut};function Xt(t,e){var o=t,i=e;return o&&(!q(o)||o instanceof HTMLElement)&&!N(o)||(i=o,o=document.createElement("span")),N(i)&&(i={icon:i}),i.type||(i.type="svg"),Wt[i.type]?new Wt[i.type](o,i).html():null}function Yt(t){for(var e=x,o=b,i=0,r=t.length;i<r;i++){var n=t[i];null!==n&&isFinite(n)&&(e=Math.min(e,n),o=Math.max(o,n))}return{min:e===x?void 0:e,max:o===b?void 0:o}}function qt(t,e){for(var o=0;o<t.length;o++){var i=t[o];if(e(i,o,t))return i}}var Qt=D.geometry.Matrix,Zt=/matrix\((.*)\)/;function Kt(t){var e=getComputedStyle(t).transform;return"none"===e?Qt.unit():function(t){var e=t.match(Zt);if(null===e||2!==e.length)return Qt.unit();var o=e[1].split(",").map((function(t){return parseFloat(t)}));return new(Function.prototype.bind.apply(Qt,[null].concat(o)))}(e)}function Jt(t){if(!t)return Qt.unit();for(var e=Kt(t),o=t.parentElement;o;){var i=Kt(o);e=e.multiplyCopy(i),o=o.parentElement}return e.b=e.c=e.e=e.f=0,e}const $t=function(t){return new D.Color(t).isDark()?T:n};var te={},ee=function(t){this._index={},this._values=t?t.slice(0):[];for(var e=0;e<this._values.length;e++)this._index[this._values[e]]=e},oe={size:{configurable:!0}};ee.prototype.values=function(){return this._values.filter((function(t){return t!==te}))},ee.prototype.has=function(t){return void 0!==this._index[t]},ee.prototype.add=function(t){this.has(t)||(this._index[t]=this._values.length,this._values.push(t))},ee.prototype.delete=function(t){var e=this._index[t];void 0!==e&&(this._values[e]=te,delete this._index[t])},ee.prototype.clear=function(){this._index={},this._values=[]},oe.size.get=function(){return this._values.length},Object.defineProperties(ee.prototype,oe);var ie=function(t){this._set=new Set(t)},re={size:{configurable:!0}};ie.prototype.values=function(){return Array.from(this._set)},ie.prototype.has=function(t){return this._set.has(t)},ie.prototype.add=function(t){this._set.add(t)},ie.prototype.delete=function(t){this._set.delete(t)},ie.prototype.clear=function(){this._set.clear()},re.size.get=function(){return this._set.size},Object.defineProperties(ie.prototype,re);var ne=function(){var t=!1;return"function"==typeof Set&&(t=new Set([1]).has(1)),t};function se(t){return ne()?new ie(t):new ee(t)}function ae(t){throw t}const pe={INSERT:45,DELETE:46,BACKSPACE:8,TAB:9,ENTER:13,ESC:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,END:35,HOME:36,SPACEBAR:32,PAGEUP:33,PAGEDOWN:34,F2:113,F10:121,F12:123,NUMPAD_PLUS:107,NUMPAD_MINUS:109,NUMPAD_DOT:110};function le(t,e){var o=Bt(e-t,d-1);if(0===o){if(0===e)return.1;o=Math.abs(e)}var i=Math.pow(10,Math.floor(Math.log(o)/Math.log(10))),r=Bt(o/i,d);return Bt(i*(r<1.904762?.2:r<4.761904?.5:r<9.523809?1:2),d)}const ce=function(t){function e(e,o){t.call(this),this.x=e||0,this.y=o||0}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.equals=function(t){return t&&this.x===t.x&&this.y===t.y},e.prototype.rotate=function(t,e){var o=Rt(e),i=Math.cos(o),r=Math.sin(o),n=t.x,s=t.y,a=this.x,p=this.y;return this.x=Bt(n+(a-n)*i+(p-s)*r,l),this.y=Bt(s+(p-s)*i-(a-n)*r,l),this},e.prototype.multiply=function(t){return this.x*=t,this.y*=t,this},e.prototype.distanceTo=function(t){var e=this.x-t.x,o=this.y-t.y;return Math.sqrt(e*e+o*o)},e.onCircle=function(t,o,i){var r=Rt(o);return new e(t.x-i*Math.cos(r),t.y-i*Math.sin(r))},e}(D.Class);var he=function(t){function e(e,o,i,r){t.call(this),this.x1=e||0,this.y1=o||0,this.x2=i||0,this.y2=r||0}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.equals=function(t){return this.x1===t.x1&&this.x2===t.x2&&this.y1===t.y1&&this.y2===t.y2},e.prototype.width=function(){return this.x2-this.x1},e.prototype.height=function(){return this.y2-this.y1},e.prototype.translate=function(t,e){return this.x1+=t,this.x2+=t,this.y1+=e,this.y2+=e,this},e.prototype.move=function(t,e){var o=this.height(),i=this.width();return Ct(t)&&(this.x1=t,this.x2=this.x1+i),Ct(e)&&(this.y1=e,this.y2=this.y1+o),this},e.prototype.wrap=function(t){return this.x1=Math.min(this.x1,t.x1),this.y1=Math.min(this.y1,t.y1),this.x2=Math.max(this.x2,t.x2),this.y2=Math.max(this.y2,t.y2),this},e.prototype.wrapPoint=function(t){var o=R(t),i=o?t[0]:t.x,r=o?t[1]:t.y;return this.wrap(new e(i,r,i,r)),this},e.prototype.snapTo=function(t,e){return e!==E&&e||(this.x1=t.x1,this.x2=t.x2),e!==I&&e||(this.y1=t.y1,this.y2=t.y2),this},e.prototype.alignTo=function(t,e){var o=this.height(),i=this.width(),r=e===P||e===s?I:E,n=r===I?o:i;if(e===a){var p=t.center(),l=this.center();this.x1+=p.x-l.x,this.y1+=p.y-l.y}else this[r+1]=e===P||e===m?t[r+1]-n:t[r+2];return this.x2=this.x1+i,this.y2=this.y1+o,this},e.prototype.shrink=function(t,e){return this.x2-=t,this.y2-=e,this},e.prototype.expand=function(t,e){return this.shrink(-t,-e),this},e.prototype.pad=function(t){var e=$(t);return this.x1-=e.left,this.x2+=e.right,this.y1-=e.top,this.y2+=e.bottom,this},e.prototype.unpad=function(t){var e=$(t);return e.left=-e.left,e.top=-e.top,e.right=-e.right,e.bottom=-e.bottom,this.pad(e)},e.prototype.clone=function(){return new e(this.x1,this.y1,this.x2,this.y2)},e.prototype.center=function(){return new ce(this.x1+this.width()/2,this.y1+this.height()/2)},e.prototype.containsPoint=function(t){return t.x>=this.x1&&t.x<=this.x2&&t.y>=this.y1&&t.y<=this.y2},e.prototype.points=function(){return[new ce(this.x1,this.y1),new ce(this.x2,this.y1),new ce(this.x2,this.y2),new ce(this.x1,this.y2)]},e.prototype.getHash=function(){return[this.x1,this.y1,this.x2,this.y2].join(",")},e.prototype.overlaps=function(t){return!(t.y2<this.y1||this.y2<t.y1||t.x2<this.x1||this.x2<t.x1)},e.prototype.rotate=function(t){var e=this.width(),o=this.height(),i=this.center(),r=i.x,n=i.y,s=ue(0,0,r,n,t),a=ue(e,0,r,n,t),p=ue(e,o,r,n,t),l=ue(0,o,r,n,t);return e=Math.max(s.x,a.x,p.x,l.x)-Math.min(s.x,a.x,p.x,l.x),o=Math.max(s.y,a.y,p.y,l.y)-Math.min(s.y,a.y,p.y,l.y),this.x2=this.x1+e,this.y2=this.y1+o,this},e.prototype.toRect=function(){return new D.geometry.Rect([this.x1,this.y1],[this.width(),this.height()])},e.prototype.hasSize=function(){return 0!==this.width()&&0!==this.height()},e.prototype.align=function(t,e,o){var i=e+1,r=e+2,n=e===E?M:g,p=this[n]();ht(o,[m,P])?(this[i]=t[i],this[r]=this[i]+p):ht(o,[k,s])?(this[r]=t[r],this[i]=this[r]-p):o===a&&(this[i]=t[i]+(t[n]()-p)/2,this[r]=this[i]+p)},e}(D.Class);function ue(t,e,o,i,r){var n=Rt(r);return new ce(o+(t-o)*Math.cos(n)+(e-i)*Math.sin(n),i-(t-o)*Math.sin(n)+(e-i)*Math.cos(n))}const de=he;var fe=function(t){function e(e,o,i,r,n){t.call(this),this.center=e,this.innerRadius=o,this.radius=i,this.startAngle=r,this.angle=n}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.clone=function(){return new e(this.center,this.innerRadius,this.radius,this.startAngle,this.angle)},e.prototype.middle=function(){return this.startAngle+this.angle/2},e.prototype.setRadius=function(t,e){return e?this.innerRadius=t:this.radius=t,this},e.prototype.point=function(t,e){var o=Rt(t),i=Math.cos(o),r=Math.sin(o),n=e?this.innerRadius:this.radius,s=Bt(this.center.x-i*n,l),a=Bt(this.center.y-r*n,l);return new ce(s,a)},e.prototype.adjacentBox=function(t,e,o){var i=this.clone().expand(t),r=i.middle(),n=i.point(r),s=e/2,a=o/2,p=Math.sin(Rt(r)),l=Math.cos(Rt(r)),c=n.x-s,h=n.y-a;return Math.abs(p)<.9&&(c+=s*-l/Math.abs(l)),Math.abs(l)<.9&&(h+=a*-p/Math.abs(p)),new de(c,h,c+e,h+o)},e.prototype.containsPoint=function(t){var e=this.center,o=this.innerRadius,i=this.radius,r=this.startAngle,n=this.startAngle+this.angle,s=t.x-e.x,a=t.y-e.y,p=new ce(s,a),c=this.point(r),h=new ce(c.x-e.x,c.y-e.y),u=this.point(n),d=new ce(u.x-e.x,u.y-e.y),f=Bt(s*s+a*a,l);return(h.equals(p)||V(h,p))&&!V(d,p)&&f>=o*o&&f<=i*i},e.prototype.getBBox=function(){var t,e=new de(x,x,b,b),o=Bt(this.startAngle%360),i=Bt((o+this.angle)%360),r=this.innerRadius,n=[0,90,180,270,o,i].sort(ge),s=n.indexOf(o),a=n.indexOf(i);t=o===i?n:s<a?n.slice(s,a+1):[].concat(n.slice(0,a+1),n.slice(s,n.length));for(var p=0;p<t.length;p++){var l=this.point(t[p]);e.wrapPoint(l),e.wrapPoint(l,r)}return r||e.wrapPoint(this.center),e},e.prototype.expand=function(t){return this.radius+=t,this},e}(D.Class);function ge(t,e){return t-e}const ye=fe;var ve=function(t){function e(e,o,i,r){t.call(this,e,0,o,i,r)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.expand=function(e){return t.prototype.expand.call(this,e)},e.prototype.clone=function(){return new e(this.center,this.radius,this.startAngle,this.angle)},e.prototype.setRadius=function(t){return this.radius=t,this},e}(ye);const me=ve;var xe=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createRing=function(t,e){var o=t.startAngle+180,i=t.angle+o;t.angle>0&&o===i&&(i+=.001);var r=new D.geometry.Point(t.center.x,t.center.y),n=Math.max(t.radius,0),s=Math.max(t.innerRadius,0),a=new D.geometry.Arc(r,{startAngle:o,endAngle:i,radiusX:n,radiusY:n}),p=D.drawing.Path.fromArc(a,e).close();if(s){a.radiusX=a.radiusY=s;var l=a.pointAt(i);p.lineTo(l.x,l.y),p.arc(i,o,s,s,!0)}else p.lineTo(r.x,r.y);return p},e}(D.Class);xe.current=new xe;const be=xe;var _e=function(t){function e(e){t.call(this),this.children=[],this.options=Y({},this.options,this.initUserOptions(e))}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initUserOptions=function(t){return t},e.prototype.reflow=function(t){for(var e,o=this.children,i=0;i<o.length;i++){var r=o[i];r.reflow(t),e=e?e.wrap(r.box):r.box.clone()}this.box=e||t},e.prototype.destroy=function(){var t=this.children;this.animation&&this.animation.destroy();for(var e=0;e<t.length;e++)t[e].destroy()},e.prototype.getRoot=function(){var t=this.parent;return t?t.getRoot():null},e.prototype.getSender=function(){var t=this.getService();if(t)return t.sender},e.prototype.getService=function(){for(var t=this;t;){if(t.chartService)return t.chartService;t=t.parent}},e.prototype.translateChildren=function(t,e){for(var o=this.children,i=o.length,r=0;r<i;r++)o[r].box.translate(t,e)},e.prototype.append=function(){for(var t=arguments,e=0;e<arguments.length;e++){var o=t[e];this.children.push(o),o.parent=this}},e.prototype.renderVisual=function(){!1!==this.options.visible&&(this.createVisual(),this.addVisual(),this.renderChildren(),this.createAnimation(),this.renderComplete())},e.prototype.addVisual=function(){this.visual&&(this.visual.chartElement=this,this.parent&&this.parent.appendVisual(this.visual))},e.prototype.renderChildren=function(){for(var t=this.children,e=t.length,o=0;o<e;o++)t[o].renderVisual()},e.prototype.createVisual=function(){this.visual=new D.drawing.Group({zIndex:this.options.zIndex,visible:jt(this.options.visible,!0)})},e.prototype.createAnimation=function(){this.visual&&this.options.animation&&(this.animation=D.drawing.Animation.create(this.visual,this.options.animation))},e.prototype.appendVisual=function(t){t.chartElement||(t.chartElement=this),t.options.noclip?this.clipRoot().visual.append(t):Ct(t.options.zIndex)?this.stackRoot().stackVisual(t):this.isStackRoot?this.stackVisual(t):this.visual?this.visual.append(t):this.parent.appendVisual(t)},e.prototype.clipRoot=function(){return this.parent?this.parent.clipRoot():this},e.prototype.stackRoot=function(){return this.parent?this.parent.stackRoot():this},e.prototype.stackVisual=function(t){var e,o=t.options.zIndex||0,i=this.visual.children,r=i.length;for(e=0;e<r;e++){var n=i[e];if(jt(n.options.zIndex,0)>o)break}this.visual.insert(e,t)},e.prototype.traverse=function(t){for(var e=this.children,o=e.length,i=0;i<o;i++){var r=e[i];t(r),r.traverse&&r.traverse(t)}},e.prototype.closest=function(t){for(var e=this,o=!1;e&&!o;)(o=t(e))||(e=e.parent);if(o)return e},e.prototype.renderComplete=function(){},e.prototype.hasHighlight=function(){var t=(this.options||{}).highlight;return!(!this.createHighlight||t&&!1===t.visible||!1===this.visible)},e.prototype.toggleHighlight=function(t,e){var o=this,i=(this.options||{}).highlight||{},r=i.visual,n=this._highlight;if(!n){var s={fill:{color:T,opacity:e||.2},stroke:{color:T,width:1,opacity:e||.2}};if(r){if(!(n=this._highlight=r(Object.assign(this.highlightVisualArgs(),{createVisual:function(){return o.createHighlight(s)},sender:this.getSender(),series:this.series,dataItem:this.dataItem,category:this.category,value:this.value,percentage:this.percentage,runningTotal:this.runningTotal,total:this.total}))))return}else n=this._highlight=this.createHighlight(s);Ct(n.options.zIndex)||(n.options.zIndex=jt(i.zIndex,this.options.zIndex)),this.appendVisual(n)}n.visible(t)},e.prototype.createGradientOverlay=function(t,e,o){var i=new D.drawing.Path(Object.assign({stroke:{color:"none"},fill:this.createGradient(o),closed:t.options.closed},e));return i.segments.elements(t.segments.elements()),i},e.prototype.createGradient=function(t){if(this.parent)return this.parent.createGradient(t)},e.prototype.supportsPointInactiveOpacity=function(){return!0},e}(D.Class);_e.prototype.options={};const we=_e;var Ce=function(t){function e(e){t.call(this,e),this.options.margin=$(this.options.margin),this.options.padding=$(this.options.padding)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflow=function(e){var o,i=this,r=this.options,n=r.width,s=r.height,a=r.shrinkToFit,p=n&&s,l=r.margin,c=r.padding,h=r.border.width,u=function(){i.align(e,E,r.align),i.align(e,I,r.vAlign),i.paddingBox=o.clone().unpad(l).unpad(h)},d=e.clone();p&&(d.x2=d.x1+n,d.y2=d.y1+s),a&&d.unpad(l).unpad(h).unpad(c),t.prototype.reflow.call(this,d),o=p?this.box=new de(0,0,n,s):this.box,a&&p?(u(),d=this.contentBox=this.paddingBox.clone().unpad(c)):(d=this.contentBox=o.clone(),o.pad(c).pad(h).pad(l),u()),this.translateChildren(o.x1-d.x1+l.left+h+c.left,o.y1-d.y1+l.top+h+c.top);for(var f=this.children,g=0;g<f.length;g++){var y=f[g];y.reflow(y.box)}},e.prototype.align=function(t,e,o){this.box.align(t,e,o)},e.prototype.hasBox=function(){var t=this.options;return t.border.width||t.background},e.prototype.createVisual=function(){t.prototype.createVisual.call(this),this.options.visible&&this.hasBox()&&this.visual.append(D.drawing.Path.fromRect(this.paddingBox.toRect(),this.visualStyle()))},e.prototype.visualStyle=function(){var t=this.options,e=t.border||{};return{stroke:{width:e.width,color:e.color,opacity:jt(e.opacity,t.opacity),dashType:e.dashType},fill:{color:t.background,opacity:t.opacity},cursor:t.cursor}},e}(we);Vt(Ce,{align:m,vAlign:P,margin:{},padding:{},border:{color:n,width:0},background:"",shrinkToFit:!1,width:0,height:0,visible:!0});const ke=Ce;var Ae=function(t){function e(e,o){t.call(this,e),this.pointData=o}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getElement=function(){var t=this.options,e=this.paddingBox,o=t.type,i=t.rotation,r=e.center(),n=e.width()/2,s=e.height()/2;if(!t.visible||!this.hasBox())return null;var a,h=this.visualStyle();if(o===p)a=new D.drawing.Circle(new D.geometry.Circle([Bt(e.x1+n,l),Bt(e.y1+s,l)],Math.min(n,s)),h);else if("triangle"===o)a=D.drawing.Path.fromPoints([[e.x1+n,e.y1],[e.x1,e.y2],[e.x2,e.y2]],h).close();else if(o===c)(a=new D.drawing.MultiPath(h)).moveTo(e.x1,e.y1).lineTo(e.x2,e.y2),a.moveTo(e.x1,e.y2).lineTo(e.x2,e.y1);else{var u=e.toRect();if(o===A){var d=jt(t.borderRadius,u.width()/5);u.setCornerRadius(d)}a=D.drawing.Path.fromRect(u,h)}return i&&a.transform(D.geometry.transform().rotate(-i,[r.x,r.y])),a.options.zIndex=t.zIndex,a},e.prototype.createElement=function(){var t=this,e=this.options.visual,o=this.pointData||{};return e?e({value:o.value,dataItem:o.dataItem,sender:this.getSender(),series:o.series,category:o.category,rect:this.paddingBox.toRect(),options:this.visualOptions(),createVisual:function(){return t.getElement()}}):this.getElement()},e.prototype.visualOptions=function(){var t=this.options;return{background:t.background,border:t.border,margin:t.margin,padding:t.padding,type:t.type,size:t.width,visible:t.visible}},e.prototype.createVisual=function(){this.visual=this.createElement()},e}(ke);Vt(Ae,{type:p,align:a,vAlign:a});const Se=Ae;var Pe="radial";const Oe={glass:{type:"linear",rotation:0,stops:[{offset:0,color:T,opacity:0},{offset:.25,color:T,opacity:.3},{offset:1,color:T,opacity:0}]},sharpBevel:{type:Pe,stops:[{offset:0,color:T,opacity:.55},{offset:.65,color:T,opacity:0},{offset:.95,color:T,opacity:.25}]},roundedBevel:{type:Pe,stops:[{offset:.33,color:T,opacity:.06},{offset:.83,color:T,opacity:.2},{offset:.95,color:T,opacity:0}]},roundedGlass:{type:Pe,supportVML:!1,stops:[{offset:0,color:T,opacity:0},{offset:.5,color:T,opacity:.3},{offset:.99,color:T,opacity:0}]},sharpGlass:{type:Pe,supportVML:!1,stops:[{offset:0,color:T,opacity:.2},{offset:.15,color:T,opacity:.15},{offset:.17,color:T,opacity:.35},{offset:.85,color:T,opacity:.05},{offset:.87,color:T,opacity:.15},{offset:.99,color:T,opacity:0}]},bubbleShadow:{type:Pe,center:[.5,.5],radius:.5}};function Te(t,e){if(t.x1===e.x1&&t.y1===e.y1&&t.x2===e.x2&&t.y2===e.y2)return e;var o=Math.min(t.x1,e.x1),i=Math.max(t.x1,e.x1),r=Math.min(t.x2,e.x2),n=Math.max(t.x2,e.x2),s=Math.min(t.y1,e.y1),a=Math.max(t.y1,e.y1),p=Math.min(t.y2,e.y2),l=Math.max(t.y2,e.y2),c=[];return c[0]=new de(i,s,r,a),c[1]=new de(o,a,i,p),c[2]=new de(r,a,n,p),c[3]=new de(i,p,r,l),t.x1===o&&t.y1===s||e.x1===o&&e.y1===s?(c[4]=new de(o,s,i,a),c[5]=new de(r,p,n,l)):(c[4]=new de(r,s,n,a),c[5]=new de(o,p,i,l)),at(c,(function(t){return t.height()>0&&t.width()>0}))[0]}var Me=function(t){function e(e){t.call(this,e);var o=this.options;o.width=parseInt(o.width,10),o.height=parseInt(o.height,10),this.gradients={}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflow=function(){var t=this.options,e=this.children,o=new de(0,0,t.width,t.height);this.box=o.unpad(t.margin);for(var i=0;i<e.length;i++)e[i].reflow(o),o=Te(o,e[i].box)||new de},e.prototype.createVisual=function(){this.visual=new D.drawing.Group,this.createBackground()},e.prototype.createBackground=function(){var t=this.options,e=t.border||{},o=this.box.clone().pad(t.margin).unpad(e.width),i=D.drawing.Path.fromRect(o.toRect(),{stroke:{color:e.width?e.color:"",width:e.width,dashType:e.dashType},fill:{color:t.background,opacity:t.opacity},zIndex:-10});this.visual.append(i)},e.prototype.getRoot=function(){return this},e.prototype.createGradient=function(t){var e,o=this.gradients,i=It(t),r=Oe[t.gradient];if(o[i])e=o[i];else{var n=Object.assign({},r,t);"linear"===r.type?e=new D.drawing.LinearGradient(n):(t.innerRadius&&(n.stops=function(t){for(var e=t.stops,o=t.innerRadius/t.radius*100,i=e.length,r=[],n=0;n<i;n++){var s=Object.assign({},e[n]);s.offset=(s.offset*(100-o)+o)/100,r.push(s)}return r}(n)),(e=new D.drawing.RadialGradient(n)).supportVML=!1!==r.supportVML),o[i]=e}return e},e.prototype.cleanGradients=function(){var t=this.gradients;for(var e in t)t[e]._observers=[]},e.prototype.size=function(){var t=this.options;return new de(0,0,t.width,t.height)},e}(we);Vt(Me,{width:600,height:400,background:T,border:{color:n,width:0},margin:$(5),zIndex:-2});const Ee=Me;var Ie=function(t){function e(e){t.call(this,e),this._initDirection()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._initDirection=function(){var t=this.options;t.vertical?(this.groupAxis=E,this.elementAxis=I,this.groupSizeField=M,this.elementSizeField=g,this.groupSpacing=t.spacing,this.elementSpacing=t.vSpacing):(this.groupAxis=I,this.elementAxis=E,this.groupSizeField=g,this.elementSizeField=M,this.groupSpacing=t.vSpacing,this.elementSpacing=t.spacing)},e.prototype.reflow=function(t){this.box=t.clone(),this.reflowChildren()},e.prototype.reflowChildren=function(){var t=this,e=this,o=e.box,i=e.elementAxis,r=e.groupAxis,n=e.elementSizeField,s=e.groupSizeField,a=this.groupOptions(),p=a.groups,l=a.groupsSize,c=a.maxGroupElementsSize,h=p.length,u=o[r+1]+this.alignStart(l,o[s]());if(h){for(var d=u,f=0;f<h;f++){for(var g=p[f],y=g.groupElements,v=o[i+1],m=y.length,x=0;x<m;x++){var b=y[x],_=t.elementSize(b),w=d+t.alignStart(_[s],g.groupSize),C=new de;C[r+1]=w,C[r+2]=w+_[s],C[i+1]=v,C[i+2]=v+_[n],b.reflow(C),v+=_[n]+t.elementSpacing}d+=g.groupSize+t.groupSpacing}o[r+1]=u,o[r+2]=u+l,o[i+2]=o[i+1]+c}},e.prototype.alignStart=function(t,e){var o=0,i=this.options.align;return i===k||i===s?o=e-t:i===a&&(o=(e-t)/2),o},e.prototype.groupOptions=function(){for(var t=this,e=t.box,o=t.children,i=t.elementSizeField,r=t.groupSizeField,n=t.elementSpacing,s=t.groupSpacing,a=Bt(e[i]()),p=o.length,l=[],c=0,h=0,u=0,d=0,f=[],g=0;g<p;g++){var y=o[g];y.box||y.reflow(e);var v=this.elementSize(y);this.options.wrap&&Bt(h+n+v[i])>a&&(l.push({groupElements:f,groupSize:c,groupElementsSize:h}),d=Math.max(d,h),u+=s+c,c=0,h=0,f=[]),c=Math.max(c,v[r]),h>0&&(h+=n),h+=v[i],f.push(y)}return l.push({groupElements:f,groupSize:c,groupElementsSize:h}),{groups:l,groupsSize:u+=c,maxGroupElementsSize:d=Math.max(d,h)}},e.prototype.elementSize=function(t){return{width:t.box.width(),height:t.box.height()}},e.prototype.createVisual=function(){},e}(we);Vt(Ie,{vertical:!0,wrap:!0,vSpacing:0,spacing:0});const Re=Ie;var Be=D.drawing.Text,Le=function(t){function e(e,o){t.call(this,o),this.content=e,this.reflow(new de)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflow=function(t){var e=this.options,o=e.size=D.drawing.util.measureText(this.content,{font:e.font});this.baseline=o.baseline,this.box=new de(t.x1,t.y1,t.x1+o.width,t.y1+o.height)},e.prototype.createVisual=function(){var t=this.options,e=t.font,o=t.color,i=t.opacity,r=t.cursor;this.visual=new Be(this.content,this.box.toRect().topLeft(),{font:e,fill:{color:o,opacity:i},cursor:r})},e}(we);Vt(Le,{font:u,color:n});const je=Le;function De(t){var e=t.origin,o=t.bottomRight();return new de(e.x,e.y,o.x,o.y)}var ze=/\n/m,Ve=function(t){function e(e,o,i){t.call(this,o),this.content=e,this.data=i,this._initContainer(),!1!==this.options._autoReflow&&this.reflow(new de)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._initContainer=function(){var t=this.options,e=String(this.content).split(ze),o=new Re({vertical:!0,align:t.align,wrap:!1}),i=Y({},t,{opacity:1,animation:null});this.container=o,this.append(o);for(var r=0;r<e.length;r++){var n=new je(e[r].trim(),i);o.append(n)}},e.prototype.reflow=function(e){var o=this.options,i=o.visual;if(this.container.options.align=o.align,i&&!this._boxReflow){var r=e;r.hasSize()||(this._boxReflow=!0,this.reflow(r),this._boxReflow=!1,r=this.box);var n=this.visual=i(this.visualContext(r));n&&(r=De(n.clippedBBox()||new D.geometry.Rect),n.options.zIndex=o.zIndex),this.box=this.contentBox=this.paddingBox=r}else if(t.prototype.reflow.call(this,e),o.rotation){var s=$(o.margin),a=this.box.unpad(s);this.targetBox=e,this.normalBox=a.clone(),(a=this.rotate()).translate(s.left-s.right,s.top-s.bottom),this.rotatedBox=a.clone(),a.pad(s)}},e.prototype.createVisual=function(){var t=this.options;if(this.visual=new D.drawing.Group({transform:this.rotationTransform(),zIndex:t.zIndex,noclip:t.noclip}),this.hasBox()){var e=D.drawing.Path.fromRect(this.paddingBox.toRect(),this.visualStyle());this.visual.append(e)}},e.prototype.renderVisual=function(){if(this.options.visible)if(this.options.visual){var e=this.visual;e&&!Ct(e.options.noclip)&&(e.options.noclip=this.options.noclip),this.addVisual(),this.createAnimation()}else t.prototype.renderVisual.call(this)},e.prototype.visualContext=function(t){var e=this,o={text:this.content,rect:t.toRect(),sender:this.getSender(),options:this.options,createVisual:function(){return e._boxReflow=!0,e.reflow(t),e._boxReflow=!1,e.getDefaultVisual()}};return this.data&&Object.assign(o,this.data),o},e.prototype.getDefaultVisual=function(){this.createVisual(),this.renderChildren();var t=this.visual;return delete this.visual,t},e.prototype.rotate=function(){var t=this.options;return this.box.rotate(t.rotation),this.align(this.targetBox,E,t.align),this.align(this.targetBox,I,t.vAlign),this.box},e.prototype.rotationTransform=function(){var t=this.options.rotation;if(!t)return null;var e=this.normalBox.center(),o=e.x,i=e.y,r=this.rotatedBox.center();return D.geometry.transform().translate(r.x-o,r.y-i).rotate(t,[o,i])},e}(ke);const He=Ve;var Ne=function(t){function e(e){t.call(this,e),this._textBox=new He(this.options.text,Object.assign({},this.options,{vAlign:this.options.position})),this.append(this._textBox)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflow=function(e){t.prototype.reflow.call(this,e),this.box.snapTo(e,E)},e.buildTitle=function(t,o){var i,r=t;return"string"==typeof t&&(r={text:t}),(r=Object.assign({visible:!0},o,r))&&r.visible&&r.text&&(i=new e(r)),i},e.orderTitles=function(t){var e=[].concat(t),o=e.filter((function(t){return t&&t.options.position!==s})),i=e.filter((function(t){return t&&t.options.position===s}));return Fe(o),Fe(i),i.reverse(),o.concat(i)},e}(we);function Fe(t){for(var e=1;e<t.length;e++){var o=t[e]._textBox,i=t[e-1]._textBox;i.options.margin=Object.assign($(i.options.margin),{bottom:0}),o.options.margin=Object.assign($(o.options.margin),{top:0})}}Vt(Ne,{color:n,position:P,align:a,margin:$(5),padding:$(5)});const Ue=Ne;var Ge=function(t){function e(e,o,i,r,n){t.call(this,o,n),this.text=o,this.value=e,this.index=i,this.dataItem=r,this.reflow(new de)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.visualContext=function(e){var o=t.prototype.visualContext.call(this,e);return o.value=this.value,o.dataItem=this.dataItem,o.format=this.options.format,o.culture=this.options.culture,o},e.prototype.click=function(t,e){t.trigger("axisLabelClick",{element:Ot(e),value:this.value,text:this.text,index:this.index,dataItem:this.dataItem,axis:this.parent.options})},e.prototype.rotate=function(){if(this.options.alignRotation!==a){var e=this.normalBox.toRect(),o=this.rotationTransform();this.box=De(e.bbox(o.matrix()))}else t.prototype.rotate.call(this);return this.box},e.prototype.rotationTransform=function(){var e=this.options,o=e.rotation;if(!o)return null;if(e.alignRotation===a)return t.prototype.rotationTransform.call(this);var i=D.geometry.transform().rotate(o).matrix(),r=this.normalBox.toRect(),n=this.targetBox.toRect(),p=e.rotationOrigin||P,l=p===P||p===s?E:I,c=p===P||p===s?I:E,h=p===P||p===m?n.origin:n.bottomRight(),u=r.topLeft().transformCopy(i),f=r.topRight().transformCopy(i),g=r.bottomRight().transformCopy(i),y=r.bottomLeft().transformCopy(i),v=D.geometry.Rect.fromPoints(u,f,g,y),x={};x[c]=n.origin[c]-v.origin[c];var b,_,w=Math.abs(u[c]+x[c]-h[c]),C=Math.abs(f[c]+x[c]-h[c]);Bt(w,d)===Bt(C,d)?(b=u,_=f):C<w?(b=f,_=g):(b=u,_=y);var k=b[l]+(_[l]-b[l])/2;return x[l]=n.center()[l]-k,D.geometry.transform().translate(x.x,x.y).rotate(o)},e}(He);Vt(Ge,{_autoReflow:!1});const We=Ge;var Xe=function(t){function e(e,o,i){t.call(this,o),this.fields=e,this.chartService=i,this.render()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.hide=function(){this.options.visible=!1},e.prototype.show=function(){this.options.visible=!0},e.prototype.render=function(){var t=this,e=this.options;if(e.visible){var o,i,r=e.label,n=e.icon,s=new de,a=function(){return t},l=n.size,c=this.fields.text;if(Ct(r)&&r.visible){var h=it(r);h?c=h(this.fields):r.format&&(c=this.chartService.format.auto(r.format,c)),r.color||(r.color=r.position===y?"#fff":n.background),this.label=new He(c,Y({},r)),this.label.aliasFor=a,r.position!==y||Ct(l)||(n.type===p?l=Math.max(this.label.box.width(),this.label.box.height()):(o=this.label.box.width(),i=this.label.box.height()),s.wrap(this.label.box))}n.width=o||l||7,n.height=i||l||7;var u=new Se(Y({},n));u.aliasFor=a,this.marker=u,this.append(u),this.label&&this.append(this.label),u.reflow(new de),this.wrapperBox=s.wrap(u.box)}},e.prototype.reflow=function(t){var e,o,i,r=this,n=r.options,a=r.label,p=r.marker,l=r.wrapperBox,c=t.center(),h=n.line.length,u=n.position;n.visible&&(ht(u,[m,k])?u===m?(i=l.alignTo(t,u).translate(-h,t.center().y-l.center().y),n.line.visible&&(e=[t.x1,c.y],this.linePoints=[e,[i.x2,c.y]],o=i.clone().wrapPoint(e))):(i=l.alignTo(t,u).translate(h,t.center().y-l.center().y),n.line.visible&&(e=[t.x2,c.y],this.linePoints=[e,[i.x1,c.y]],o=i.clone().wrapPoint(e))):u===s?(i=l.alignTo(t,u).translate(t.center().x-l.center().x,h),n.line.visible&&(e=[c.x,t.y2],this.linePoints=[e,[c.x,i.y1]],o=i.clone().wrapPoint(e))):(i=l.alignTo(t,u).translate(t.center().x-l.center().x,-h),n.line.visible&&(e=[c.x,t.y1],this.linePoints=[e,[c.x,i.y2]],o=i.clone().wrapPoint(e))),p&&p.reflow(i),a&&(a.reflow(i),p&&(n.label.position===C&&a.box.alignTo(p.box,u),a.reflow(a.box))),this.contentBox=i,this.targetBox=t,this.box=o||i)},e.prototype.createVisual=function(){t.prototype.createVisual.call(this),this.visual.options.noclip=this.options.noclip,this.options.visible&&this.createLine()},e.prototype.renderVisual=function(){var e=this,o=this.options,i=o.visual;o.visible&&i?(this.visual=i(Object.assign(this.fields,{sender:this.getSender(),rect:this.targetBox.toRect(),options:{background:o.background,border:o.background,icon:o.icon,label:o.label,line:o.line,position:o.position,visible:o.visible},createVisual:function(){e.createVisual(),e.renderChildren();var t=e.visual;return delete e.visual,t}})),this.addVisual()):t.prototype.renderVisual.call(this)},e.prototype.createLine=function(){var t=this.options.line;if(this.linePoints){var e=D.drawing.Path.fromPoints(this.linePoints,{stroke:{color:t.color,width:t.width,dashType:t.dashType}});z(e),this.visual.append(e)}},e.prototype.click=function(t,e){var o=this.eventArgs(e);t.trigger("noteClick",o)||e.preventDefault()},e.prototype.over=function(t,e){var o=this.eventArgs(e);t.trigger("noteHover",o)||e.preventDefault()},e.prototype.out=function(t,e){var o=this.eventArgs(e);t.trigger("noteLeave",o)},e.prototype.eventArgs=function(t){var e=this.options;return Object.assign(this.fields,{element:Ot(t),text:Ct(e.label)?e.label.text:"",visual:this.visual})},e}(ke);Vt(Xe,{icon:{visible:!0,type:p},label:{position:y,visible:!0,align:a,vAlign:a},line:{visible:!0},visible:!0,position:P,zIndex:2});const Ye=Xe;var qe={format:function(t,e){return e},toString:function(t){return t},parseDate:function(t){return new Date(t)},firstDay:function(){return 0}},Qe=function(){},Ze={implementation:{configurable:!0}};Qe.register=function(t){qe=t},Ze.implementation.get=function(){return qe},Object.defineProperties(Qe,Ze);const Ke=Qe;var Je=/\{(\d+)(:[^\}]+)?\}/g,$e=function(t){this._intlService=t},to={intl:{configurable:!0}};to.intl.get=function(){return this._intlService||Ke.implementation},to.intl.set=function(t){this._intlService=t},$e.prototype.auto=function(t){for(var e=[],o=arguments.length-1;o-- >0;)e[o]=arguments[o+1];var i=this.intl;return N(t)&&t.match(f)?i.format.apply(i,[t].concat(e)):i.toString(e[0],t)},$e.prototype.localeAuto=function(t,e,o){var i=this.intl;return N(t)&&t.match(f)?t.replace(Je,(function(t,r,n){var s=e[parseInt(r,10)];return i.toString(s,n?n.substring(1):"",o)})):i.toString(e[0],t,o)},Object.defineProperties($e.prototype,to);const eo=$e;var oo=function(t,e){void 0===e&&(e={}),this._intlService=e.intlService,this.sender=e.sender||t,this.format=new eo(e.intlService),this.chart=t,this.rtl=Boolean(e.rtl)},io={intl:{configurable:!0}};io.intl.get=function(){return this._intlService||Ke.implementation},io.intl.set=function(t){this._intlService=t,this.format.intl=t},oo.prototype.notify=function(t,e){this.chart&&this.chart.trigger(t,e)},oo.prototype.isPannable=function(t){var e=((this.chart||{}).options||{}).pannable;return e&&e.lock!==t},Object.defineProperties(oo.prototype,io);const ro=oo;var no,so=function(){};so.register=function(t){no=t},so.create=function(t,e){if(no)return no.create(t,e)};const ao=so;function po(t,e){var o=t.tickX,i=t.tickY,r=t.position,n=new D.drawing.Path({stroke:{width:e.width,color:e.color}});return t.vertical?n.moveTo(o,r).lineTo(o+e.size,r):n.moveTo(r,i).lineTo(r,i+e.size),z(n),n}function lo(t,e){var o=t.lineStart,i=t.lineEnd,r=t.position,n=new D.drawing.Path({stroke:{width:e.width,color:e.color,dashType:e.dashType}});return t.vertical?n.moveTo(o,r).lineTo(i,r):n.moveTo(r,o).lineTo(r,i),z(n),n}var co=function(t){function e(e,o){void 0===o&&(o=new ro),t.call(this,e),this.chartService=o,this.options.visible||(this.options=Y({},this.options,{labels:{visible:!1},line:{visible:!1},margin:0,majorTickSize:0,minorTickSize:0})),this.options.minorTicks=Y({},{color:this.options.line.color,width:this.options.line.width,visible:this.options.minorTickType!==_},this.options.minorTicks,{size:this.options.minorTickSize,align:this.options.minorTickType}),this.options.majorTicks=Y({},{color:this.options.line.color,width:this.options.line.width,visible:this.options.majorTickType!==_},this.options.majorTicks,{size:this.options.majorTickSize,align:this.options.majorTickType}),this.initFields(),this.options._deferLabels||this.createLabels(),this.createTitle(),this.createNotes()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initFields=function(){},e.prototype.labelsRange=function(){return{min:this.options.labels.skip,max:this.labelsCount()}},e.prototype.normalizeLabelRotation=function(t){var e=t.rotation;q(e)&&(t.alignRotation=e.align,t.rotation=e.angle)},e.prototype.createLabels=function(){var t=this,e=this.options,o=e.vertical?k:a,i=Y({},e.labels,{align:o,zIndex:e.zIndex}),r=Math.max(1,i.step);if(this.clearLabels(),i.visible){this.normalizeLabelRotation(i),"auto"===i.rotation&&(i.rotation=0,e.autoRotateLabels=!0);for(var n=this.labelsRange(),s=n.min;s<n.max;s+=r){var p={index:s,count:n.max},l=t.createAxisLabel(s,i,p);l&&(t.append(l),t.labels.push(l))}}},e.prototype.clearLabels=function(){this.children=at(this.children,(function(t){return!(t instanceof We)})),this.labels=[]},e.prototype.clearTitle=function(){var t=this;this.title&&(this.children=at(this.children,(function(e){return e!==t.title})),this.title=void 0)},e.prototype.clear=function(){this.clearLabels(),this.clearTitle()},e.prototype.lineBox=function(){var t=this.options,e=this.box,o=t.vertical,i=t.labels.mirror,r=i?e.x1:e.x2,n=i?e.y2:e.y1,s=t.line.width||0;return o?new de(r,e.y1,r,e.y2-s):new de(e.x1,n,e.x2-s,n)},e.prototype.createTitle=function(){var t=this.options,e=Y({rotation:t.vertical?-90:0,text:"",zIndex:1,visualSize:!0},t.title);if(e.visible&&e.text){var o=new He(e.text,e);this.append(o),this.title=o}},e.prototype.createNotes=function(){var t=this,e=this.options,o=e.notes,i=o.data||[];this.notes=[];for(var r=0;r<i.length;r++){var n=Y({},o,i[r]);n.value=t.parseNoteValue(n.value);var a=new Ye({value:n.value,text:n.label.text,dataItem:n},n,t.chartService);a.options.visible&&(Ct(a.options.position)?e.vertical&&!ht(a.options.position,[m,k])?a.options.position=e.reverse?m:k:e.vertical||ht(a.options.position,[P,s])||(a.options.position=e.reverse?s:P):e.vertical?a.options.position=e.reverse?m:k:a.options.position=e.reverse?s:P,t.append(a),t.notes.push(a))}},e.prototype.parseNoteValue=function(t){return t},e.prototype.renderVisual=function(){t.prototype.renderVisual.call(this),this.createPlotBands()},e.prototype.createVisual=function(){t.prototype.createVisual.call(this),this.createBackground(),this.createLine()},e.prototype.gridLinesVisual=function(){var t=this._gridLines;return t||(t=this._gridLines=new D.drawing.Group({zIndex:-2}),this.appendVisual(this._gridLines)),t},e.prototype.createTicks=function(t){var e=this.options,o=this.lineBox(),i=e.labels.mirror,r=e.majorTicks.visible?e.majorUnit:0,n={vertical:e.vertical};function s(e,r,s){var a=e.length,p=Math.max(1,r.step);if(r.visible)for(var l=r.skip;l<a;l+=p)Ct(s)&&l%s==0||(n.tickX=i?o.x2:o.x2-r.size,n.tickY=i?o.y1-r.size:o.y1,n.position=e[l],t.append(po(n,r)))}s(this.getMajorTickPositions(),e.majorTicks),s(this.getMinorTickPositions(),e.minorTicks,r/e.minorUnit)},e.prototype.createLine=function(){var t=this.options,e=t.line,o=this.lineBox();if(e.width>0&&e.visible){var i=new D.drawing.Path({stroke:{width:e.width,color:e.color,dashType:e.dashType}});i.moveTo(o.x1,o.y1).lineTo(o.x2,o.y2),t._alignLines&&z(i);var r=this._lineGroup=new D.drawing.Group;r.append(i),this.visual.append(r),this.createTicks(r)}},e.prototype.getActualTickSize=function(){var t=this.options,e=0;return t.majorTicks.visible&&t.minorTicks.visible?e=Math.max(t.majorTicks.size,t.minorTicks.size):t.majorTicks.visible?e=t.majorTicks.size:t.minorTicks.visible&&(e=t.minorTicks.size),e},e.prototype.createBackground=function(){var t=this.options,e=this.box,o=t.background;o&&(this._backgroundPath=D.drawing.Path.fromRect(e.toRect(),{fill:{color:o},stroke:null}),this.visual.append(this._backgroundPath))},e.prototype.createPlotBands=function(){var t=this,e=this.options,o=e.plotBands||[],i=e.vertical,r=this.plotArea;if(0!==o.length){for(var n=this._plotbandGroup=new D.drawing.Group({zIndex:-1}),s=at(this.pane.axes,(function(e){return e.options.vertical!==t.options.vertical}))[0],a=0;a<o.length;a++){var p=o[a],l=void 0,c=void 0,h=p.label,u=void 0;if(i?(l=(s||r.axisX).lineBox(),c=t.getSlot(p.from,p.to,!0)):(l=t.getSlot(p.from,p.to,!0),c=(s||r.axisY).lineBox()),h&&(h.vAlign=h.position||m,u=t.createPlotBandLabel(h,p,new de(l.x1,c.y1,l.x2,c.y2))),0!==l.width()&&0!==c.height()){var d=new D.geometry.Rect([l.x1,c.y1],[l.width(),c.height()]),f=D.drawing.Path.fromRect(d,{fill:{color:p.color,opacity:p.opacity},stroke:null});n.append(f),u&&n.append(u)}}this.appendVisual(n)}},e.prototype.createPlotBandLabel=function(t,e,o){if(!1===t.visible)return null;var i,r=t.text;if(Ct(t)&&t.visible){var n=it(t);n?r=n({text:r,item:e}):t.format&&(r=this.chartService.format.auto(t.format,r)),t.color||(t.color=this.options.labels.color)}return(i=new He(r,t)).reflow(o),i.renderVisual(),i.visual},e.prototype.createGridLines=function(t){var e=this.options,o=e.minorGridLines,i=e.majorGridLines,r=e.minorUnit,n=e.vertical,s=t.options.line.visible,a=i.visible?e.majorUnit:0,p=t.lineBox(),l=p[n?"y1":"x1"],c={lineStart:p[n?"x1":"y1"],lineEnd:p[n?"x2":"y2"],vertical:n},h=[],u=this.gridLinesVisual();function d(t,e,o){var i=t.length,r=Math.max(1,e.step);if(e.visible)for(var n=e.skip;n<i;n+=r){var a=Bt(t[n]);ht(a,h)||n%o==0||s&&l===a||(c.position=a,u.append(lo(c,e)),h.push(a))}}return d(this.getMajorTickPositions(),i),d(this.getMinorTickPositions(),o,a/r),u.children},e.prototype.reflow=function(t){for(var e=this,o=e.options,i=e.labels,r=e.title,n=o.vertical,s=i.length,a=n?M:g,p=r?r.box[a]():0,l=this.getActualTickSize()+o.margin+p,c=((this.getRoot()||{}).box||t)[a](),h=0,u=0;u<s;u++){var d=i[u].box[a]();d+l<=c&&(h=Math.max(h,d))}this.box=n?new de(t.x1,t.y1,t.x1+h+l,t.y2):new de(t.x1,t.y1,t.x2,t.y1+h+l),this.arrangeTitle(),this.arrangeLabels(),this.arrangeNotes()},e.prototype.getLabelsTickPositions=function(){return this.getMajorTickPositions()},e.prototype.labelTickIndex=function(t){return t.index},e.prototype.arrangeLabels=function(){for(var t=this.options,e=this.labels,o=this.labelsBetweenTicks(),i=t.vertical,r=t.labels.mirror,n=this.getLabelsTickPositions(),s=0;s<e.length;s++){var a=e[s],p=this.labelTickIndex(a),l=i?a.box.height():a.box.width(),c=n[p],h=n[p+1],u=void 0,d=void 0;i?d=u=o?c+(h-c)/2-l/2:c-l/2:o?(u=c,d=h):d=(u=c-l/2)+l,this.positionLabel(a,r,u,d)}},e.prototype.positionLabel=function(t,e,o,i){void 0===i&&(i=o);var r,n=this.options,a=n.vertical,p=this.lineBox(),l=this.getActualTickSize()+n.margin;if(a){var c=p.x2;e?(c+=l,t.options.rotationOrigin=m):(c-=l+t.box.width(),t.options.rotationOrigin=k),r=t.box.move(c,o)}else{var h=p.y1;e?(h-=l+t.box.height(),t.options.rotationOrigin=s):(h+=l,t.options.rotationOrigin=P),r=new de(o,h,i,h+t.box.height())}t.reflow(r)},e.prototype.autoRotateLabelAngle=function(t,e){return t.width()<e?0:t.height()>e?-90:-45},e.prototype.autoRotateLabels=function(){if(!this.options.autoRotateLabels||this.options.vertical)return!1;for(var t=this.getMajorTickPositions(),e=this.labels,o=Math.min(e.length,t.length-1),i=0,r=0;r<o;r++){var n=Math.abs(t[r+1]-t[r]),s=e[r].box,a=this.autoRotateLabelAngle(s,n);if(0!==a&&(i=a),-90===i)break}if(0!==i){for(var p=0;p<e.length;p++)e[p].options.rotation=i,e[p].reflow(new de);return!0}},e.prototype.arrangeTitle=function(){var t=this.options,e=this.title,o=t.labels.mirror,i=t.vertical;e&&(i?(e.options.align=o?k:m,e.options.vAlign=e.options.position):(e.options.align=e.options.position,e.options.vAlign=o?P:s),e.reflow(this.box))},e.prototype.arrangeNotes=function(){for(var t=this,e=0;e<this.notes.length;e++){var o=t.notes[e],i=o.options.value,r=void 0;Ct(i)?(t.shouldRenderNote(i)?o.show():o.hide(),r=t.noteSlot(i)):o.hide(),o.reflow(r||t.lineBox())}},e.prototype.noteSlot=function(t){return this.getSlot(t)},e.prototype.alignTo=function(t){var e=t.lineBox(),o=this.options.vertical,i=o?I:E;this.box.snapTo(e,i),o?this.box.shrink(0,this.lineBox().height()-e.height()):this.box.shrink(this.lineBox().width()-e.width(),0),this.box[i+1]-=this.lineBox()[i+1]-e[i+1],this.box[i+2]-=this.lineBox()[i+2]-e[i+2]},e.prototype.axisLabelText=function(t,e,o){var i=this,r=it(e),n=function(){return e.format?i.chartService.format.localeAuto(e.format,[t],e.culture):t};return r?r(Object.assign({},o,{get text(){return n()},value:t,format:e.format,culture:e.culture})):n()},e.prototype.slot=function(t,e,o){var i=this.getSlot(t,e,o);if(i)return i.toRect()},e.prototype.contentBox=function(){var t=this.box.clone(),e=this.labels;if(e.length){var o=this.options.vertical?I:E;if(this.chartService.isPannable(o)){var i=this.maxLabelOffset();t[o+1]-=i.start,t[o+2]+=i.end}else{e[0].options.visible&&t.wrap(e[0].box);var r=e[e.length-1];r.options.visible&&t.wrap(r.box)}}return t},e.prototype.maxLabelOffset=function(){for(var t=this.options,e=t.vertical,o=t.reverse,i=this.labelsBetweenTicks(),r=this.getLabelsTickPositions(),n=e?I:E,s=this.labels,a=o?1:0,p=o?0:1,l=0,c=0,h=0;h<s.length;h++){var u=s[h],d=this.labelTickIndex(u),f=void 0,g=void 0;i?(f=r[d+a],g=r[d+p]):f=g=r[d],l=Math.max(l,f-u.box[n+1]),c=Math.max(c,u.box[n+2]-g)}return{start:l,end:c}},e.prototype.limitRange=function(t,e,o,i,r){var n=this.options;if(t<o&&r<0&&(!Ct(n.min)||n.min<=o)||i<e&&r>0&&(!Ct(n.max)||i<=n.max))return null;if(e<o&&r>0||i<t&&r<0)return{min:t,max:e};var s=e-t,a=t,p=e;return t<o&&r<0?(a=Et(t,o,i),p=Et(t+s,o+s,i)):e>i&&r>0&&(p=Et(e,o,i),a=Et(e-s,o,i-s)),{min:a,max:p}},e.prototype.valueRange=function(){return{min:this.seriesMin,max:this.seriesMax}},e.prototype.lineDir=function(){var t=this.options;return(t.vertical?-1:1)*(t.reverse?-1:1)},e.prototype.lineInfo=function(){var t=this.options.vertical,e=this.lineBox(),o=t?e.height():e.width(),i=t?I:E,r=this.lineDir(),n=i+(1===r?1:2).toString();return{axis:i,axisOrigin:n,axisDir:r,lineBox:e,lineSize:o,lineStart:e[n]}},e.prototype.pointOffset=function(t){var e=this.lineInfo(),o=e.axis,i=e.axisDir,r=e.axisOrigin,n=e.lineBox,s=e.lineSize;return(i>0?t[o]-n[r]:n[r]-t[o])/s},e.prototype.scaleToDelta=function(t,e){var o=Et(t,-.999,.999);return o>0?e*Math.min(1,o):e-e/(1+o)},e.prototype.labelsBetweenTicks=function(){return!this.options.justified},e.prototype.prepareUserOptions=function(){},e}(we);Vt(co,{labels:{visible:!0,rotation:0,mirror:!1,step:1,skip:0},line:{width:1,color:n,visible:!0},title:{visible:!0,position:a},majorTicks:{align:C,size:4,skip:0,step:1},minorTicks:{align:C,size:3,skip:0,step:1},axisCrossingValue:0,majorTickType:C,minorTickType:_,majorGridLines:{skip:0,step:1},minorGridLines:{visible:!1,width:1,color:n,skip:0,step:1},margin:5,visible:!0,reverse:!1,justified:!0,notes:{label:{text:""}},_alignLines:!0,_deferLabels:!1});const ho=co;var uo="milliseconds",fo="seconds",go="minutes",yo="hours",vo="days",mo="weeks",xo="months",bo="years",_o=1e3,wo=60*_o,Co=60*wo,ko=24*Co,Ao=7*ko,So=31*ko,Po=365*ko,Oo={years:Po,months:So,weeks:Ao,days:ko,hours:Co,minutes:wo,seconds:_o,milliseconds:1};function To(t,e){return t.getTime()-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*wo}function Mo(t,e){return new Date(t.getTime()+e)}function Eo(t){var e;return t instanceof Date?e=t:t&&(e=new Date(t)),e}function Io(t,e){return 0===e&&23===t.getHours()&&(t.setHours(t.getHours()+2),!0)}function Ro(t,e,o,i){var r=t;if(t){var n=Eo(t),s=n.getHours();o===bo?Io(r=new Date(n.getFullYear()+e,0,1),0):o===xo?Io(r=new Date(n.getFullYear(),n.getMonth()+e,1),s):o===mo?(r=Ro(function(t,e){void 0===e&&(e=0);var o=0,i=t.getDay();if(!isNaN(i))for(;i!==e;)0===i?i=6:i--,o++;return Mo(t,-o*ko)}(n,i),7*e,vo),Io(r,s)):o===vo?Io(r=new Date(n.getFullYear(),n.getMonth(),n.getDate()+e),s):o===yo?r=function(t,e){var o=new Date(t);o.setMinutes(0,0,0);var i=(t.getTimezoneOffset()-o.getTimezoneOffset())*wo;return Mo(o,i+e*Co)}(n,e):o===go?(r=Mo(n,e*wo)).getSeconds()>0&&r.setSeconds(0):o===fo?r=Mo(n,e*_o):o===uo&&(r=Mo(n,e)),o!==uo&&r.getMilliseconds()>0&&r.setMilliseconds(0)}return r}function Bo(t,e,o){return Ro(Eo(t),0,e,o)}function Lo(t,e,o){var i=Eo(t);return i&&Bo(i,e,o).getTime()===i.getTime()?i:Ro(i,1,e,o)}function jo(t,e){return t&&e?t.getTime()-e.getTime():-1}function Do(t,e){return t.getTime()-e}function zo(t){if(R(t)){for(var e=[],o=0;o<t.length;o++)e.push(zo(t[o]));return e}if(t)return Eo(t).getTime()}function Vo(t,e){return t&&e?zo(t)===zo(e):t===e}function Ho(t,e,o){return To(t,e)/Oo[o]}function No(t,e,o,i){var r=Eo(t),n=Eo(e);return(o===xo?r.getMonth()-n.getMonth()+12*(r.getFullYear()-n.getFullYear())+Ho(r,new Date(r.getFullYear(),r.getMonth()),vo)/new Date(r.getFullYear(),r.getMonth()+1,0).getDate():o===bo?r.getFullYear()-n.getFullYear()+No(r,new Date(r.getFullYear(),0),xo,1)/12:o===vo||o===mo?Ho(r,n,o):Do(r,e)/Oo[o])/i}function Fo(t,e,o){return o===bo?e.getFullYear()-t.getFullYear():o===xo?12*Fo(t,e,bo)+e.getMonth()-t.getMonth():o===vo?Math.floor(Do(e,t)/ko):Math.floor(Do(e,t)/Oo[o])}function Uo(t,e){return N(e)&&t.parseDate(e)||Eo(e)}function Go(t,e){if(R(e)){for(var o=[],i=0;i<e.length;i++)o.push(Uo(t,e[i]));return o}return Uo(t,e)}function Wo(t,e){return H(t.weekStartDay)?t.weekStartDay:e&&e.firstDay?e.firstDay():0}var Xo=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initFields=function(){this._ticks={}},e.prototype.categoriesHash=function(){return""},e.prototype.clone=function(){var t=new e(Object.assign({},this.options,{categories:this.options.srcCategories}),this.chartService);return t.createLabels(),t},e.prototype.initUserOptions=function(t){var e=t.categories||[],o=Ct(t.min),i=Ct(t.max);if(t.srcCategories=t.categories=e,(o||i)&&e.length){var r,n=o?Math.floor(t.min):0;r=i?t.justified?Math.floor(t.max)+1:Math.ceil(t.max):e.length,t.categories=t.categories.slice(n,r)}return t},e.prototype.rangeIndices=function(){var t=this.options,e=t.categories.length||1;return{min:H(t.min)?t.min%1:0,max:H(t.max)&&t.max%1!=0&&t.max<this.totalRange().max?e-(1-t.max%1):e-(t.justified?1:0)}},e.prototype.range=function(){var t=this.options;return{min:H(t.min)?t.min:0,max:H(t.max)?t.max:this.totalRange().max}},e.prototype.roundedRange=function(){return this.range()},e.prototype.totalRange=function(){var t=this.options;return{min:0,max:Math.max(this._seriesMax||0,t.srcCategories.length)-(t.justified?1:0)}},e.prototype.scaleOptions=function(){var t=this.rangeIndices(),e=t.min,o=t.max,i=this.lineBox();return{scale:(this.options.vertical?i.height():i.width())/(o-e||1)*(this.options.reverse?-1:1),box:i,min:e,max:o}},e.prototype.arrangeLabels=function(){t.prototype.arrangeLabels.call(this),this.hideOutOfRangeLabels()},e.prototype.hideOutOfRangeLabels=function(){var t=this.box,e=this.labels;if(e.length>0){var o=this.options.vertical?I:E,i=t[o+1],r=t[o+2],n=e[0],s=Mt(e);(n.box[o+1]>r||n.box[o+2]<i)&&(n.options.visible=!1),(s.box[o+1]>r||s.box[o+2]<i)&&(s.options.visible=!1)}},e.prototype.getMajorTickPositions=function(){return this.getTicks().majorTicks},e.prototype.getMinorTickPositions=function(){return this.getTicks().minorTicks},e.prototype.getLabelsTickPositions=function(){return this.getTicks().labelTicks},e.prototype.tickIndices=function(t){for(var e=this.rangeIndices(),o=e.min,i=e.max,r=Math.ceil(i),n=Math.floor(o),s=[];n<=r;)s.push(n),n+=t;return s},e.prototype.getTickPositions=function(t){for(var e=this.options,o=e.vertical,i=e.reverse,r=this.scaleOptions(),n=r.scale,s=r.box,a=r.min,p=s[(o?I:E)+(i?2:1)],c=this.tickIndices(t),h=[],u=0;u<c.length;u++)h.push(p+Bt(n*(c[u]-a),l));return h},e.prototype.getTicks=function(){var t=this.options,e=this._ticks,o=this.rangeIndices(),i=this.lineBox(),r=i.getHash()+o.min+","+o.max+t.reverse+t.justified;if(e._hash!==r){var n=t.minorTicks.visible||t.minorGridLines.visible;e._hash=r,e.labelTicks=this.getTickPositions(1),e.majorTicks=this.filterOutOfRangePositions(e.labelTicks,i),e.minorTicks=n?this.filterOutOfRangePositions(this.getTickPositions(.5),i):[]}return e},e.prototype.filterOutOfRangePositions=function(t,e){if(!t.length)return t;for(var o=this.options.vertical?I:E,i=function(t){return e[o+1]<=t&&t<=e[o+2]},r=t.length-1,n=0;!i(t[n])&&n<=r;)n++;for(var s=r;!i(t[s])&&s>=0;)s--;return t.slice(n,s+1)},e.prototype.lineInfo=function(){var t=this.options,e=t.vertical,o=t.reverse,i=this.lineBox(),r=e?i.height():i.width(),n=e?I:E,s=o?-1:1,a=n+(1===s?1:2).toString();return{axis:n,axisOrigin:a,axisDir:s,lineBox:i,lineSize:r,lineStart:i[a]}},e.prototype.lineDir=function(){return this.options.reverse?-1:1},e.prototype.getSlot=function(t,e,o){var i=this.options,r=i.reverse,n=i.justified,s=this.scaleOptions(),a=s.scale,p=s.box,l=s.min,c=this.lineInfo(),h=c.axis,u=c.lineStart,d=p.clone(),f=!Ct(e),g=jt(t,0),y=jt(e,g);y=Math.max(y-1,g);var v=u+(g-l)*a,m=u+((y=Math.max(g,y))+1-l)*a;return f&&n&&(m=v),o&&(v=Et(v,p[h+1],p[h+2]),m=Et(m,p[h+1],p[h+2])),d[h+1]=r?m:v,d[h+2]=r?v:m,d},e.prototype.limitSlot=function(t){var e=this.options.vertical?I:E,o=this.lineBox(),i=t.clone();return i[e+1]=Et(t[e+1],o[e+1],o[e+2]),i[e+2]=Et(t[e+2],o[e+1],o[e+2]),i},e.prototype.slot=function(e,o,i){var r=Math.floor(this.options.min||0),n=e,s=o;return"string"==typeof n?n=this.categoryIndex(n):H(n)&&(n-=r),"string"==typeof s?s=this.categoryIndex(s):H(s)&&(s-=r),t.prototype.slot.call(this,n,s,i)},e.prototype.pointCategoryIndex=function(t){var e=this.options,o=e.reverse,i=e.justified,r=e.vertical?I:E,n=this.scaleOptions(),s=n.scale,a=n.box,p=n.min,l=n.max,c=o?l:p,h=a[r+1],u=a[r+2],d=t[r];if(d<h||d>u)return null;var f=c+(d-h)/s,g=f%1;return i?f=Math.round(f):0===g&&f>0&&f--,Math.floor(f)},e.prototype.getCategory=function(t){var e=this.pointCategoryIndex(t);return null===e?null:this.options.categories[e]},e.prototype.categoryIndex=function(t){return this.totalIndex(t)-Math.floor(this.options.min||0)},e.prototype.categoryAt=function(t,e){var o=this.options;return(e?o.srcCategories:o.categories)[t]},e.prototype.categoriesCount=function(){return(this.options.categories||[]).length},e.prototype.translateRange=function(t){var e=this.options,o=this.lineBox(),i=e.vertical?o.height():o.width(),r=e.categories.length,n=Bt(t/(i/r),d);return{min:n,max:r+n}},e.prototype.scaleRange=function(t,e){var o=Math.abs(this.pointOffset(e)),i=this.limitedRangeIndices(),r=i.max-i.min,n=this.scaleToDelta(t,r),s=o*n,a=(1-o)*n,p=i.min+s,l=i.max-a;return l-p<.1&&(l=p+.1),{min:p,max:l}},e.prototype.zoomRange=function(t,e){var o=this.totalRange(),i=o.min,r=o.max,n=this.scaleRange(t,e);return{min:Et(n.min,i,r),max:Et(n.max,i,r)}},e.prototype.labelsCount=function(){var t=this.labelsRange();return t.max-t.min},e.prototype.labelsRange=function(){var t=this.options,e=t.justified,o=t.labels,i=this.limitedRangeIndices(!0),r=i.min,n=i.max,s=Math.floor(r);return e?(r=Math.ceil(r),n=Math.floor(n)):(r=Math.floor(r),n=Math.ceil(n)),{min:(r>o.skip?o.skip+o.step*Math.ceil((r-o.skip)/o.step):o.skip)-s,max:(t.categories.length?n+(e?1:0):0)-s}},e.prototype.createAxisLabel=function(t,e,o){var i=this.options,r=i.dataItems?i.dataItems[t]:null,n=jt(i.categories[t],"");o.dataItem=r;var s=this.axisLabelText(n,e,o);return new We(n,s,t,r,e)},e.prototype.shouldRenderNote=function(t){var e=this.limitedRangeIndices();return Math.floor(e.min)<=t&&t<=Math.ceil(e.max)},e.prototype.noteSlot=function(t){var e=this.options,o=t-Math.floor(e.min||0);return this.getSlot(o)},e.prototype.arrangeNotes=function(){t.prototype.arrangeNotes.call(this),this.hideOutOfRangeNotes()},e.prototype.hideOutOfRangeNotes=function(){var t=this.notes,e=this.box;if(t&&t.length)for(var o=this.options.vertical?I:E,i=e[o+1],r=e[o+2],n=0;n<t.length;n++){var s=t[n];s.box&&(r<s.box[o+1]||s.box[o+2]<i)&&s.hide()}},e.prototype.pan=function(t){var e=this.limitedRangeIndices(!0),o=this.scaleOptions().scale,i=Bt(t/o,d),r=this.totalRange(),n=e.min+i,s=e.max+i;return this.limitRange(n,s,0,r.max,i)},e.prototype.pointsRange=function(t,e){var o=this.options,i=o.reverse,r=o.vertical?I:E,n=this.limitedRangeIndices(!0),s=this.scaleOptions(),a=s.scale,p=s.box[r+(i?2:1)],l=t[r]-p,c=e[r]-p,h=n.min+l/a,u=n.min+c/a,d=Math.min(h,u),f=Math.max(h,u);if(f-d>=.01)return{min:d,max:f}},e.prototype.valueRange=function(){return this.range()},e.prototype.totalIndex=function(t){var e=this.options,o=this._categoriesMap?this._categoriesMap.get(t):function(t,e){if(t instanceof Date){for(var o=e.length,i=0;i<o;i++)if(Vo(e[i],t))return i;return-1}return e.indexOf(t)}(t,e.srcCategories);return o},e.prototype.currentRangeIndices=function(){var t=this.options,e=0;return H(t.min)&&(e=Math.floor(t.min)),{min:e,max:H(t.max)?t.justified?Math.floor(t.max):Math.ceil(t.max)-1:this.totalCount()-1}},e.prototype.limitedRangeIndices=function(t){var e,o=this.options,i=H(o.min)?o.min:0;if(e=H(o.max)?o.max:H(o.min)?i+o.categories.length:this.totalRange().max||1,t){var r=this.totalRange();i=Et(i,0,r.max),e=Et(e,0,r.max)}return{min:i,max:e}},e.prototype.totalRangeIndices=function(){return{min:0,max:this.totalRange().max||1}},e.prototype.mapCategories=function(){if(!this._categoriesMap)for(var t=this._categoriesMap=new ct,e=this.options.srcCategories,o=0;o<e.length;o++)t.set(e[o],o)},e.prototype.totalCount=function(){return Math.max(this.options.srcCategories.length,this._seriesMax||0)},e}(ho);Vt(Xo,{type:"category",vertical:!1,majorGridLines:{visible:!1,width:1,color:n},labels:{zIndex:1},justified:!1,_deferLabels:!0});const Yo=Xo;var qo={milliseconds:"HH:mm:ss.fff",seconds:"HH:mm:ss",minutes:"HH:mm",hours:"HH:mm",days:"M/d",weeks:"M/d",months:"MMM 'yy",years:"yyyy"},Qo=[uo,fo,go,yo,vo,mo,xo,bo],Zo="fit";function Ko(t,e){e&&(t._range=void 0);var o=t._range;return o||((o=t._range=Yt(t)).min=Eo(o.min),o.max=Eo(o.max)),o}var Jo=function(t){this.options=t};Jo.prototype.displayIndices=function(){return{min:0,max:1}},Jo.prototype.displayRange=function(){return{}},Jo.prototype.total=function(){return{}},Jo.prototype.valueRange=function(){return{}},Jo.prototype.valueIndex=function(){return-1},Jo.prototype.values=function(){return[]},Jo.prototype.totalIndex=function(){return-1},Jo.prototype.valuesCount=function(){return 0},Jo.prototype.totalCount=function(){return 0},Jo.prototype.dateAt=function(){return null};var $o=function(t,e,o){this.options=o,o.baseUnitStep=o.baseUnitStep||1;var i=o.roundToBaseUnit,r=o.justified;this.start=Ro(t,0,o.baseUnit,o.weekStartDay);var n=this.roundToTotalStep(e),s=!r&&Vo(e,n)&&!o.justifyEnd;this.end=this.roundToTotalStep(e,!r,s?1:0);var a=o.min||t;this.valueStart=this.roundToTotalStep(a),this.displayStart=i?this.valueStart:a;var p=o.max;if(p){var l=!r&&Vo(p,this.roundToTotalStep(p))?-1:0;this.valueEnd=this.roundToTotalStep(p,!1,l),this.displayEnd=i?this.roundToTotalStep(p,!r):o.max}else this.valueEnd=n,this.displayEnd=i||s?this.end:e;this.valueEnd<this.valueStart&&(this.valueEnd=this.valueStart),this.displayEnd<=this.displayStart&&(this.displayEnd=this.roundToTotalStep(this.displayStart,!1,1))};function ti(t,e,o){for(var i,r,n,s=Ko(t.categories),a=(t.max||s.max)-(t.min||s.min),p=t.autoBaseUnitSteps,l=t.maxDateGroups,c=t.baseUnit===Zo,h=e?Qo.indexOf(e):0,u=c?Qo[h++]:t.baseUnit,d=a/Oo[u],f=d;!r||d>=l;){i=i||p[u].slice(0);do{n=i.shift()}while(n&&e===u&&n<o);if(n)d=f/(r=n);else{if(u===Mt(Qo)){r=Math.ceil(f/l);break}if(!c){d>l&&(r=Math.ceil(f/l));break}u=Qo[h++]||Mt(Qo),f=a/Oo[u],i=null}}t.baseUnitStep=r,t.baseUnit=u}$o.prototype.displayRange=function(){return{min:this.displayStart,max:this.displayEnd}},$o.prototype.displayIndices=function(){if(!this._indices){var t=this.options,e=t.baseUnit,o=t.baseUnitStep,i=No(this.displayStart,this.valueStart,e,o),r=No(this.displayEnd,this.valueStart,e,o);this._indices={min:i,max:r}}return this._indices},$o.prototype.total=function(){return{min:this.start,max:this.end}},$o.prototype.totalCount=function(){return this.totalIndex(this.end)+(this.options.justified?1:0)},$o.prototype.valueRange=function(){return{min:this.valueStart,max:this.valueEnd}},$o.prototype.valueIndex=function(t){var e=this.options;return Math.floor(No(t,this.valueStart,e.baseUnit,e.baseUnitStep))},$o.prototype.totalIndex=function(t){var e=this.options;return Math.floor(No(t,this.start,e.baseUnit,e.baseUnitStep))},$o.prototype.dateIndex=function(t){var e=this.options;return No(t,this.valueStart,e.baseUnit,e.baseUnitStep)},$o.prototype.valuesCount=function(){return this.valueIndex(this.valueEnd)+1},$o.prototype.values=function(){var t=this._values;if(!t){var e=this.options,o=this.valueRange();this._values=t=[];for(var i=o.min;i<=o.max;)t.push(i),i=Ro(i,e.baseUnitStep,e.baseUnit,e.weekStartDay)}return t},$o.prototype.dateAt=function(t,e){var o=this.options;return Ro(e?this.start:this.valueStart,o.baseUnitStep*t,o.baseUnit,o.weekStartDay)},$o.prototype.roundToTotalStep=function(t,e,o){var i=this.options,r=i.baseUnit,n=i.baseUnitStep,s=i.weekStartDay,a=this.start,p=No(t,a,r,n),l=e?Math.ceil(p):Math.floor(p);return o&&(l+=o),Ro(a,l*n,r,s)};var ei=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.clone=function(){var t=new e(Object.assign({},this.options),this.chartService);return t.createLabels(),t},e.prototype.categoriesHash=function(){var t=this.dataRange.total().min;return this.options.baseUnit+this.options.baseUnitStep+t},e.prototype.initUserOptions=function(t){return t},e.prototype.initFields=function(){t.prototype.initFields.call(this);var e=this.chartService,o=e.intl,i=this.options,r=i.categories||[];if(r._parsed||((r=Go(o,r))._parsed=!0),i=Y({roundToBaseUnit:!0},i,{categories:r,min:Uo(o,i.min),max:Uo(o,i.max),weekStartDay:Wo(i,o)}),e.panning&&e.isPannable(i.vertical?I:E)&&(i.roundToBaseUnit=!1),i.userSetBaseUnit=i.userSetBaseUnit||i.baseUnit,i.userSetBaseUnitStep=i.userSetBaseUnitStep||i.baseUnitStep,this.options=i,i.srcCategories=r,r.length>0){var n=Ko(r,!0),s=i.maxDivisions,a=function(t){var e=(t.baseUnit||"").toLowerCase();return e!==Zo&&!ht(e,Qo)&&function(t){for(var e,o,i=t.categories,r=Ct(i)?i.length:0,n=x,s=0;s<r;s++){var a=i[s];if(a&&e){var p=To(a,e);p>0&&(o=(n=Math.min(n,p))>=Po?bo:n>=So-3*ko?xo:n>=Ao?mo:n>=ko?vo:n>=Co?yo:n>=wo?go:fo)}e=a}t.baseUnit=o||vo}(t),e!==Zo&&"auto"!==t.baseUnitStep||ti(t),t}(i),p=i._forecast;if(p&&(p.before>0&&(n.min=Ro(n.min,-p.before,a.baseUnit,a.weekStartDay)),p.after>0&&(n.max=Ro(n.max,p.after,a.baseUnit,a.weekStartDay))),this.dataRange=new $o(n.min,n.max,a),s){var l=this.dataRange.displayRange(),c=Object.assign({},i,{justified:!0,roundToBaseUnit:!1,baseUnit:"fit",min:l.min,max:l.max,maxDateGroups:s}),h=this.dataRange.options;ti(c,h.baseUnit,h.baseUnitStep),this.divisionRange=new $o(n.min,n.max,c)}else this.divisionRange=this.dataRange}else i.baseUnit=i.baseUnit||vo,this.dataRange=this.divisionRange=new Jo(i);this.rangeLabels=[]},e.prototype.tickIndices=function(e){var o=this.dataRange,i=this.divisionRange,r=i.valuesCount();if(!this.options.maxDivisions||!r)return t.prototype.tickIndices.call(this,e);var n=[],s=i.values(),a=0;this.options.justified||(s=s.concat(i.dateAt(r)),a=.5);for(var p=0;p<s.length;p++)if(n.push(o.dateIndex(s[p])+a),1!==e&&p>=1){var l=n.length-1;n.splice(p,0,n[l-1]+(n[l]-n[l-1])*e)}return n},e.prototype.shouldRenderNote=function(t){var e=this.range(),o=this.options.categories||[];return jo(t,e.min)>=0&&jo(t,e.max)<=0&&o.length},e.prototype.parseNoteValue=function(t){return Uo(this.chartService.intl,t)},e.prototype.noteSlot=function(t){return this.getSlot(t)},e.prototype.translateRange=function(t){var e=this.options,o=e.baseUnit,i=e.weekStartDay,r=e.vertical,n=this.lineBox(),s=r?n.height():n.width(),a=this.range(),p=s/(a.max-a.min),l=Bt(t/p,d);if(a.min&&a.max){var c=Mo(e.min||a.min,l),h=Mo(e.max||a.max,l);a={min:Ro(c,0,o,i),max:Ro(h,0,o,i)}}return a},e.prototype.labelsRange=function(){return{min:this.options.labels.skip,max:this.divisionRange.valuesCount()}},e.prototype.pan=function(t){if(this.isEmpty())return null;var e=this.options,o=this.lineBox(),i=e.vertical?o.height():o.width(),r=this.dataRange.displayRange(),n=r.min,s=r.max,a=this.dataRange.total(),p=Bt(t/(i/(s-n)),d)*(e.reverse?-1:1),l=Mo(n,p),c=Mo(s,p),h=this.limitRange(zo(l),zo(c),zo(a.min),zo(a.max),p);return h?(h.min=Eo(h.min),h.max=Eo(h.max),h.baseUnit=e.baseUnit,h.baseUnitStep=e.baseUnitStep||1,h.userSetBaseUnit=e.userSetBaseUnit,h.userSetBaseUnitStep=e.userSetBaseUnitStep,h):void 0},e.prototype.pointsRange=function(e,o){if(this.isEmpty())return null;var i=t.prototype.pointsRange.call(this,e,o),r=this.dataRange.displayRange(),n=this.dataRange.displayIndices(),s=Do(r.max,r.min)/(n.max-n.min),a=this.options;return{min:Mo(r.min,i.min*s),max:Mo(r.min,i.max*s),baseUnit:a.userSetBaseUnit||a.baseUnit,baseUnitStep:a.userSetBaseUnitStep||a.baseUnitStep}},e.prototype.scaleRange=function(t,e){if(this.isEmpty())return{};var o=this.options,i=o.userSetBaseUnit===Zo,r=this.dataRange.total(),n=this.dataRange.displayRange(),s=n.min,a=n.max,p=Math.abs(this.pointOffset(e)),l=a-s,c=this.scaleToDelta(t,l),h=Math.round(p*c),u=Math.round((1-p)*c),d=this.dataRange.options.baseUnit,f=new Date(s.getTime()+h),g=new Date(a.getTime()-u);if(i){var y,v,m=o.autoBaseUnitSteps,x=o.maxDateGroups,b=Mt(m[d])*x*Oo[d],_=Do(a,s),w=Do(g,f),C=Qo.indexOf(d);if(w<Oo[d]&&d!==uo)d=Qo[C-1],f=Mo(s,v=(_-(x-1)*(y=Mt(m[d]))*Oo[d])/2),g=Mo(a,-v);else if(w>b&&d!==bo){var k=0;do{C++,d=Qo[C],k=0,v=2*Oo[d];do{y=m[d][k],k++}while(k<m[d].length&&v*y<_)}while(d!==bo&&v*y<_);(v=(v*y-_)/2)>0&&(f=Mo(s,-v),g=Mo(a,v),f=Mo(f,Et(g,r.min,r.max)-g),g=Mo(g,Et(f,r.min,r.max)-f))}}return f&&g&&Do(g,f)>0?{min:f,max:g,baseUnit:o.userSetBaseUnit||o.baseUnit,baseUnitStep:o.userSetBaseUnitStep||o.baseUnitStep}:void 0},e.prototype.zoomRange=function(t,e){var o=this.dataRange.total(),i=this.scaleRange(t,e);return i&&(i.min<o.min&&(i.min=o.min),i.max>o.max&&(i.max=o.max)),i},e.prototype.range=function(){return this.dataRange.displayRange()},e.prototype.createLabels=function(){t.prototype.createLabels.call(this),this.createRangeLabels()},e.prototype.clearLabels=function(){t.prototype.clearLabels.call(this),this.rangeLabels=[]},e.prototype.arrangeLabels=function(){this.arrangeRangeLabels(),t.prototype.arrangeLabels.call(this)},e.prototype.arrangeRangeLabels=function(){var t=this.options,e=this.rangeLabels;if(0!==e.length){var o=this.lineBox(),i=t.vertical,r=t.rangeLabels.mirror||t.labels.mirror,n=e[0];if(n){var s=i?o.y1-n.box.height()/2:o.x1;this.positionLabel(n,r,s)}var a=e[1];if(a){var p=i?o.y2-a.box.height()/2:o.x2;this.positionLabel(a,r,p)}}},e.prototype.autoRotateLabels=function(){t.prototype.autoRotateLabels.call(this),this.autoRotateRangeLabels()},e.prototype.hideOutOfRangeLabels=function(){t.prototype.hideOutOfRangeLabels.call(this),this.hideOverlappingLabels()},e.prototype.hideOverlappingLabels=function(){var t=this.rangeLabels,e=this.labels;if(0!==t.length){var o=t[0];if(o&&o.options.visible)for(var i=0;i<e.length&&s(o,e[i]);i++);var r=t[1];if(r&&r.options.visible)for(var n=e.length-1;n>0&&s(r,e[n]);--n);}function s(t,e){return!(e.options.visible&&!e.box.overlaps(t.box)||(e.options.visible=!1,0))}},e.prototype.contentBox=function(){for(var e=t.prototype.contentBox.call(this),o=this.rangeLabels,i=0;i<o.length;i++){var r=o[i];r.options.visible&&e.wrap(r.box)}return e},e.prototype.createAxisLabel=function(t,e,o){void 0===o&&(o={});var i=this.options,r=i.dataItems&&!i.maxDivisions?i.dataItems[t]:null,n=this.divisionRange.dateAt(t),s=e.dateFormats[this.divisionRange.options.baseUnit];e.format=e.format||s,o.dataItem=r;var a=this.axisLabelText(n,e,o);if(a)return new We(n,a,t,r,e)},e.prototype.createRangeLabels=function(){var t=this,e=this.divisionRange,o=e.displayStart,i=e.displayEnd,r=this.options,n=Object.assign({},r.labels,r.rangeLabels,{align:a,zIndex:r.zIndex});if(!0===n.visible){this.normalizeLabelRotation(n),n.alignRotation=a,"auto"===n.rotation&&(n.rotation=0,r.autoRotateRangeLabels=!0);var s=n.dateFormats[this.divisionRange.options.baseUnit];n.format=n.format||s;var p=function(e,o,i){if(i){var r=new We(o,i,e,null,n);t.append(r),t.rangeLabels.push(r)}};p(0,o,this.axisLabelText(o,n,{index:0,count:2})),p(1,i,this.axisLabelText(i,n,{index:1,count:2}))}},e.prototype.autoRotateRangeLabels=function(){var t=this,e=this.rangeLabels;if(this.options.autoRotateRangeLabels&&!this.options.vertical&&2===e.length){var o=function(e,o,i){var r=2*Math.abs(o[i+1]-o[i]),n=t.autoRotateLabelAngle(e.box,r);0!==n&&(e.options.rotation=n,e.reflow(new de))},i=this.getMajorTickPositions();o(e[0],i,0),o(e[1],i,i.length-2)}},e.prototype.categoryIndex=function(t){return this.dataRange.valueIndex(t)},e.prototype.slot=function(t,e,o){var i=this.dataRange,r=t,n=e;r instanceof Date&&(r=i.dateIndex(r)),n instanceof Date&&(n=i.dateIndex(n));var s=this.getSlot(r,n,o);if(s)return s.toRect()},e.prototype.getSlot=function(e,o,i){var r=e,n=o;return typeof r===w&&(r=this.categoryIndex(r)),typeof n===w&&(n=this.categoryIndex(n)),t.prototype.getSlot.call(this,r,n,i)},e.prototype.valueRange=function(){var t=Ko(this.options.srcCategories);return{min:Eo(t.min),max:Eo(t.max)}},e.prototype.categoryAt=function(t,e){return this.dataRange.dateAt(t,e)},e.prototype.categoriesCount=function(){return this.dataRange.valuesCount()},e.prototype.rangeIndices=function(){return this.dataRange.displayIndices()},e.prototype.labelsBetweenTicks=function(){return!this.divisionRange.options.justified},e.prototype.prepareUserOptions=function(){this.isEmpty()||(this.options.categories=this.dataRange.values())},e.prototype.getCategory=function(t){var e=this.pointCategoryIndex(t);return null===e?null:this.dataRange.dateAt(e)},e.prototype.totalIndex=function(t){return this.dataRange.totalIndex(t)},e.prototype.currentRangeIndices=function(){var t=this.dataRange.valueRange();return{min:this.dataRange.totalIndex(t.min),max:this.dataRange.totalIndex(t.max)}},e.prototype.totalRange=function(){return this.dataRange.total()},e.prototype.totalRangeIndices=function(){var t=this.dataRange.total();return{min:this.dataRange.totalIndex(t.min),max:this.dataRange.totalIndex(t.max)}},e.prototype.totalCount=function(){return this.dataRange.totalCount()},e.prototype.isEmpty=function(){return!this.options.srcCategories.length},e.prototype.roundedRange=function(){if(!1!==this.options.roundToBaseUnit||this.isEmpty())return this.range();var t=this.options,e=Ko(t.srcCategories);return new $o(e.min,e.max,Object.assign({},t,{justified:!1,roundToBaseUnit:!0,justifyEnd:!1})).displayRange()},e}(Yo);Vt(ei,{type:h,labels:{dateFormats:qo},rangeLabels:{visible:!1},autoBaseUnitSteps:{milliseconds:[1,10,100],seconds:[1,2,5,15,30],minutes:[1,2,5,15,30],hours:[1,2,3],days:[1,2,3],weeks:[1,2],months:[1,2,3,6],years:[1,2,3,5,10,25,50]},maxDateGroups:10});const oi=ei;function ii(t,e){return Bt(Math.floor(t/e)*e,d)}function ri(t,e){return Bt(Math.ceil(t/e)*e,d)}function ni(t){return Math.max(Math.min(t,3e5),-3e5)}var si=Math.pow(10,1-d),ai=function(t){function e(e,o,i,r){t.call(this,Object.assign({},i,{seriesMin:e,seriesMax:o}),r)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initUserOptions=function(t){var e=function(t,e,o){var i=o.narrowRange,r=function(t,e,o){if(!t&&!e)return 0;var i;if(t>=0&&e>=0){var r=t===e?0:t;if(!1===o||!o&&(e-r)/e>.2)return 0;i=Math.max(0,r-(e-r)/2)}else i=t;return i}(t,e,i),n=function(t,e,o){if(!t&&!e)return 1;var i;if(t<=0&&e<=0){var r=t===e?0:e,n=Math.abs((r-t)/r);if(!1===o||!o&&n>.2)return 0;i=Math.min(0,r-(t-r)/2)}else i=e;return i}(t,e,i),s=le(r,n),a={majorUnit:s};return!1!==o.roundToMajorUnit&&(r<0&&pi(r,s,1/3)&&(r-=s),n>0&&pi(n,s,1/3)&&(n+=s)),a.min=ii(r,s),a.max=ri(n,s),a}(t.seriesMin,t.seriesMax,t);return this.totalOptions=function(t,e){return{min:Ct(e.min)?Math.min(t.min,e.min):t.min,max:Ct(e.max)?Math.max(t.max,e.max):t.max,majorUnit:t.majorUnit}}(e,t),function(t,e){var o,i,r=e;if(e){!function(t,e){for(var o=0;o<e.length;o++){var i=e[o];null===t[i]&&(t[i]=void 0)}}(e,["min","max"]),o=Ct(e.min),i=Ct(e.max);var n=o||i;n&&e.min===e.max&&(e.min>0?e.min=0:e.max=1),e.majorUnit?(t.min=ii(t.min,e.majorUnit),t.max=ri(t.max,e.majorUnit)):n&&(r=Y(t,e),t.majorUnit=le(r.min,r.max))}t.minorUnit=(r.majorUnit||t.majorUnit)/5;var s=Y(t,r);return s.min>=s.max&&(o&&!i?s.max=s.min+s.majorUnit:!o&&i&&(s.min=s.max-s.majorUnit)),s}(e,t)},e.prototype.initFields=function(){this.totalMin=this.totalOptions.min,this.totalMax=this.totalOptions.max,this.totalMajorUnit=this.totalOptions.majorUnit,this.seriesMin=this.options.seriesMin,this.seriesMax=this.options.seriesMax},e.prototype.clone=function(){return new e(this.seriesMin,this.seriesMax,Object.assign({},this.options),this.chartService)},e.prototype.startValue=function(){return 0},e.prototype.range=function(){var t=this.options;return{min:t.min,max:t.max}},e.prototype.getDivisions=function(t){if(0===t)return 1;var e=this.options,o=e.max-e.min;return Math.floor(Bt(o/t,l))+1},e.prototype.getTickPositions=function(t,e){var o=this.options,i=this.lineInfo(),r=i.axisDir,n=i.axisOrigin,s=i.lineBox,a=t*(i.lineSize/(o.max-o.min)),p=this.getDivisions(t),c=[],h=s[n],u=0;e&&(u=e/t);for(var d=0;d<p;d++)d%u!=0&&c.push(Bt(h,l)),h+=a*r;return c},e.prototype.getMajorTickPositions=function(){return this.getTickPositions(this.options.majorUnit)},e.prototype.getMinorTickPositions=function(){return this.getTickPositions(this.options.minorUnit)},e.prototype.getSlot=function(t,e,o){void 0===o&&(o=!1);var i=this.options,r=this.lineInfo(),n=r.axis,s=r.axisDir,a=r.lineBox,p=r.lineSize,l=r.lineStart,c=s*(p/(i.max-i.min)),h=jt(t,e||0),u=jt(e,t||0);o&&(h=Et(h,i.min,i.max),u=Et(u,i.min,i.max));var d=Math.min(h,u)-i.min,f=Math.max(h,u)-i.min,g=new de(a.x1,a.y1,a.x1,a.y1);return g[n+1]=ni(l+c*(s>0?d:f)),g[n+2]=ni(l+c*(s>0?f:d)),g},e.prototype.getValue=function(t){var e=this.options,o=Number(e.max),i=Number(e.min),r=this.pointOffset(t);return r<0||r>1?null:Bt(i+r*(o-i),d)},e.prototype.translateRange=function(t){var e=this.options,o=e.vertical,i=e.reverse,r=e.max,n=e.min,s=this.lineInfo().lineSize,a=Bt(t/(s/(r-n)),d);return!o&&!i||o&&i||(a=-a),{min:n+a,max:r+a,offset:a}},e.prototype.labelsCount=function(){return this.getDivisions(this.options.majorUnit)},e.prototype.createAxisLabel=function(t,e,o){var i=this.options,r=Bt(i.min+t*i.majorUnit,d),n=this.axisLabelText(r,e,o);return new We(r,n,t,null,e)},e.prototype.shouldRenderNote=function(t){var e=this.range();return e.min<=t&&t<=e.max},e.prototype.pan=function(t){var e=this.translateRange(t);return this.limitRange(e.min,e.max,this.totalMin,this.totalMax,e.offset)},e.prototype.pointsRange=function(t,e){var o=this.getValue(t),i=this.getValue(e),r=Math.min(o,i),n=Math.max(o,i);if(this.isValidRange(r,n))return{min:r,max:n}},e.prototype.scaleRange=function(t,e){var o=Math.abs(this.pointOffset(e)),i=this.options.max-this.options.min,r=this.scaleToDelta(t,i),n=o*r,s=(1-o)*r,a=Bt(this.options.min+n,d),p=Bt(this.options.max-s,d);return p-a<si&&(p=a+si),{min:a,max:p}},e.prototype.zoomRange=function(t,e){var o=this.totalMin,i=this.totalMax,r=this.scaleRange(t,e);return{min:Et(r.min,o,i),max:Et(r.max,o,i),narrowRange:!1}},e.prototype.isValidRange=function(t,e){return e-t>si},e}(ho);function pi(t,e,o){var i=Bt(Math.abs(t%e),d);return 0===i||i>e*(1-o)}Vt(ai,{type:"numeric",min:0,max:1,vertical:!0,majorGridLines:{visible:!0,width:1,color:n},labels:{format:"#.####################"},zIndex:1});const li=ai;var ci=function(t){function e(e,o,i,r){var n=Eo(e),s=Eo(o),a=r.intl,p=i||{};p=function(t,e,o){var i,r,n=o.min||t,s=o.max||e,a=o.baseUnit||(s&&n?(i=To(s,n),r=yo,i>=Po?r=bo:i>=So?r=xo:i>=Ao?r=mo:i>=ko&&(r=vo),r):yo),p=Oo[a],l=o.weekStartDay||0,c=Bo(zo(n)-1,a,l)||Eo(s),h=Lo(zo(s)+1,a,l),u=(o.majorUnit?o.majorUnit:void 0)||ri(le(c.getTime(),h.getTime()),p)/p,d=Fo(c,h,a),f=ri(d,u)-d,g=Math.floor(f/2),y=f-g;return o.baseUnit||delete o.baseUnit,o.baseUnit=o.baseUnit||a,o.min=o.min||Ro(c,-g,a,l),o.max=o.max||Ro(h,y,a,l),o.minorUnit=o.minorUnit||u/5,o.majorUnit=u,o}(n,s,p=Y(p||{},{min:Uo(a,p.min),max:Uo(a,p.max),axisCrossingValue:Go(a,p.axisCrossingValues||p.axisCrossingValue),weekStartDay:Wo(p,a)})),t.call(this,p,r),this.intlService=a,this.seriesMin=n,this.seriesMax=s;var l=p.weekStartDay||0;this.totalMin=zo(Bo(zo(n)-1,p.baseUnit,l)),this.totalMax=zo(Lo(zo(s)+1,p.baseUnit,l))}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.clone=function(){return new e(this.seriesMin,this.seriesMax,Object.assign({},this.options),this.chartService)},e.prototype.range=function(){var t=this.options;return{min:t.min,max:t.max}},e.prototype.getDivisions=function(t){var e=this.options;return Math.floor(Fo(e.min,e.max,e.baseUnit)/t+1)},e.prototype.getTickPositions=function(t){for(var e=this.options,o=this.lineInfo(),i=o.axisDir,r=o.lineSize,n=o.lineStart,s=this.getDivisions(t),a=r/Do(e.max,e.min),p=e.weekStartDay||0,c=[n],h=1;h<s;h++){var u=n+Do(Ro(e.min,h*t,e.baseUnit,p),e.min)*a*i;c.push(Bt(u,l))}return c},e.prototype.getMajorTickPositions=function(){return this.getTickPositions(this.options.majorUnit)},e.prototype.getMinorTickPositions=function(){return this.getTickPositions(this.options.minorUnit)},e.prototype.getSlot=function(t,e,o){return li.prototype.getSlot.call(this,Uo(this.intlService,t),Uo(this.intlService,e),o)},e.prototype.getValue=function(t){var e=li.prototype.getValue.call(this,t);return null!==e?Eo(e):null},e.prototype.labelsCount=function(){return this.getDivisions(this.options.majorUnit)},e.prototype.createAxisLabel=function(t,e,o){var i=this.options,r=t*i.majorUnit,n=i.weekStartDay||0,s=i.min;r>0&&(s=Ro(s,r,i.baseUnit,n));var a=e.dateFormats[i.baseUnit];e.format=e.format||a;var p=this.axisLabelText(s,e,o);return new We(s,p,t,null,e)},e.prototype.translateRange=function(t){var e=this.options,o=this.lineBox(),i=e.vertical,r=e.reverse,n=i?o.height():o.width(),s=this.range(),a=n/Do(s.max,s.min),p=Bt(t/a,d);return!i&&!r||i&&r||(p=-p),{min:Mo(e.min,p),max:Mo(e.max,p),offset:p}},e.prototype.shouldRenderNote=function(t){var e=this.range();return jo(t,e.min)>=0&&jo(t,e.max)<=0},e.prototype.pan=function(t){var e=this.translateRange(t,!0),o=this.limitRange(zo(e.min),zo(e.max),this.totalMin,this.totalMax,e.offset);if(o)return{min:Eo(o.min),max:Eo(o.max)}},e.prototype.pointsRange=function(t,e){var o=this.getValue(t),i=this.getValue(e),r=Math.min(o,i),n=Math.max(o,i);return{min:Eo(r),max:Eo(n)}},e.prototype.scaleRange=function(t,e){var o=Math.abs(this.pointOffset(e)),i=this.options.max-this.options.min,r=this.scaleToDelta(t,i),n=o*r,s=(1-o)*r,a=Eo(zo(this.options.min)+n),p=Eo(zo(this.options.max)-s);return p-a<1e3&&(p=Eo(zo(a)+1e3)),{min:a,max:p}},e.prototype.zoomRange=function(t,e){var o=this.scaleRange(t,e);return{min:Eo(Et(zo(o.min),this.totalMin,this.totalMax)),max:Eo(Et(zo(o.max),this.totalMin,this.totalMax))}},e}(ho);Vt(ci,{type:h,majorGridLines:{visible:!0,width:1,color:n},labels:{dateFormats:qo}});const hi=ci;var ui=1e-6,di=function(t){function e(e,o,i,r){var n=Y({majorUnit:10,min:e,max:o},i),s=n.majorUnit,a=function(t,e){var o=Bt(gi(t,e),d)%1;return t<=0?e:0!==o&&(o<.3||o>.9)?Math.pow(e,gi(t,e)+.2):Math.pow(e,Math.ceil(gi(t,e)))}(o,s),p=function(t,e,o){var i=o.majorUnit,r=t;return t<=0?r=e<=1?Math.pow(i,-2):1:o.narrowRange||(r=Math.pow(i,Math.floor(gi(t,i)))),r}(e,o,n),l=function(t,e,o,i){var r=o.min,n=o.max;return Ct(o.axisCrossingValue)&&o.axisCrossingValue<=0&&fi(),Ct(i.max)?i.max<=0&&fi():n=e,Ct(i.min)?i.min<=0&&fi():r=t,{min:r,max:n}}(p,a,n,i);n.max=l.max,n.min=l.min,n.minorUnit=i.minorUnit||Bt(s-1,d),t.call(this,n,r),this.totalMin=Ct(i.min)?Math.min(p,i.min):p,this.totalMax=Ct(i.max)?Math.max(a,i.max):a,this.logMin=Bt(gi(l.min,s),d),this.logMax=Bt(gi(l.max,s),d),this.seriesMin=e,this.seriesMax=o,this.createLabels()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.clone=function(){return new e(this.seriesMin,this.seriesMax,Object.assign({},this.options),this.chartService)},e.prototype.startValue=function(){return this.options.min},e.prototype.getSlot=function(t,e,o){var i=this,r=i.options,n=i.logMin,s=i.logMax,a=r.majorUnit,p=r.min,l=r.max,c=this.lineInfo(),h=c.axis,u=c.axisDir,d=c.lineBox,f=c.lineSize,g=c.lineStart,y=u*(f/(s-n)),v=jt(t,e||1),m=jt(e,t||1);if(v<=0||m<=0)return null;o&&(v=Et(v,p,l),m=Et(m,p,l)),v=gi(v,a),m=gi(m,a);var x=Math.min(v,m)-n,b=Math.max(v,m)-n,_=new de(d.x1,d.y1,d.x1,d.y1);return _[h+1]=ni(g+y*(u>0?x:b)),_[h+2]=ni(g+y*(u>0?b:x)),_},e.prototype.getValue=function(t){var e=this,o=e.options,i=e.logMin,r=e.logMax,n=o.majorUnit,s=this.lineInfo(),a=s.axis,p=s.axisDir,l=s.lineStart,c=s.lineSize,h=(r-i)/c,u=p*(t[a]-l);if(u<0||u>c)return null;var f=i+u*h;return Bt(Math.pow(n,f),d)},e.prototype.range=function(){var t=this.options;return{min:t.min,max:t.max}},e.prototype.translateRange=function(t){var e=this,o=e.options,i=e.logMin,r=e.logMax,n=o.reverse,s=o.vertical,a=o.majorUnit,p=this.lineBox(),l=s?p.height():p.width(),c=Bt(t/(l/(r-i)),d);return!s&&!n||s&&n||(c=-c),{min:Math.pow(a,i+c),max:Math.pow(a,r+c),offset:c}},e.prototype.labelsCount=function(){var t=Math.floor(this.logMax);return Math.floor(t-this.logMin)+1},e.prototype.getMajorTickPositions=function(){var t=[];return this.traverseMajorTicksPositions((function(e){t.push(e)}),{step:1,skip:0}),t},e.prototype.createTicks=function(t){var e=this.options,o=e.majorTicks,i=e.minorTicks,r=e.vertical,n=e.labels.mirror,s=this.lineBox(),a={vertical:r};function p(e,o){a.tickX=n?s.x2:s.x2-o.size,a.tickY=n?s.y1-o.size:s.y1,a.position=e,t.append(po(a,o))}return o.visible&&this.traverseMajorTicksPositions(p,o),i.visible&&this.traverseMinorTicksPositions(p,i),[]},e.prototype.createGridLines=function(t){var e=this.options,o=e.minorGridLines,i=e.majorGridLines,r=e.vertical,n=t.lineBox(),s={lineStart:n[r?"x1":"y1"],lineEnd:n[r?"x2":"y2"],vertical:r},a=[],p=this.gridLinesVisual();function l(t,e){ht(t,a)||(s.position=t,p.append(lo(s,e)),a.push(t))}return i.visible&&this.traverseMajorTicksPositions(l,i),o.visible&&this.traverseMinorTicksPositions(l,o),p.children},e.prototype.traverseMajorTicksPositions=function(t,e){for(var o=this.lineInfo(),i=o.lineStart,r=o.step,n=this.logMin,s=this.logMax,a=Math.ceil(n)+e.skip;a<=s;a+=e.step)t(Bt(i+r*(a-n),d),e)},e.prototype.traverseMinorTicksPositions=function(t,e){for(var o=this.options,i=o.min,r=o.max,n=o.minorUnit,s=o.majorUnit,a=this.lineInfo(),p=a.lineStart,l=a.step,c=this.logMin,h=this.logMax,u=Math.floor(c);u<h;u++)for(var f=this._minorIntervalOptions(u),g=e.skip;g<n;g+=e.step){var y=f.value+g*f.minorStep;if(y>r)break;y>=i&&t(Bt(p+l*(gi(y,s)-c),d),e)}},e.prototype.createAxisLabel=function(t,e,o){var i=Math.ceil(this.logMin+t),r=Math.pow(this.options.majorUnit,i),n=this.axisLabelText(r,e,o);return new We(r,n,t,null,e)},e.prototype.shouldRenderNote=function(t){var e=this.range();return e.min<=t&&t<=e.max},e.prototype.pan=function(t){var e=this.translateRange(t);return this.limitRange(e.min,e.max,this.totalMin,this.totalMax,e.offset)},e.prototype.pointsRange=function(t,e){var o=this.getValue(t),i=this.getValue(e);return{min:Math.min(o,i),max:Math.max(o,i)}},e.prototype.scaleRange=function(t,e){var o=this.options.majorUnit,i=gi(this.options.min,o),r=gi(this.options.max,o),n=Math.abs(this.pointOffset(e)),s=r-i,a=this.scaleToDelta(t,s),p=Math.pow(o,i+n*a),l=Math.pow(o,r-(1-n)*a);return l-p<ui&&(l=p+ui),{min:p,max:l}},e.prototype.zoomRange=function(t,e){var o=this.scaleRange(t,e),i=this.totalMin,r=this.totalMax;return{min:Et(o.min,i,r),max:Et(o.max,i,r)}},e.prototype._minorIntervalOptions=function(t){var e=this.options,o=e.minorUnit,i=e.majorUnit,r=Math.pow(i,t);return{value:r,minorStep:(Math.pow(i,t+1)-r)/o}},e.prototype.lineInfo=function(){var e=t.prototype.lineInfo.call(this);return e.step=e.axisDir*(e.lineSize/(this.logMax-this.logMin)),e},e}(ho);function fi(){throw new Error("Non positive values cannot be used for a logarithmic axis")}function gi(t,e){return Math.log(t)/Math.log(e)}Vt(di,{type:"log",majorUnit:10,minorUnit:1,axisCrossingValue:1,vertical:!0,majorGridLines:{visible:!0,width:1,color:n},zIndex:1,_deferLabels:!0});const yi=di,vi={createGridLines:function(t){var e,o,i=this.options,r=Math.abs(this.box.center().y-t.lineBox().y1),n=[],s=!1;return i.majorGridLines.visible&&(e=this.majorGridLineAngles(t),s=!0,n=this.renderMajorGridLines(e,r,i.majorGridLines)),i.minorGridLines.visible&&(o=this.minorGridLineAngles(t,s),_t(n,this.renderMinorGridLines(o,r,i.minorGridLines,t,s))),n},renderMajorGridLines:function(t,e,o){return this.renderGridLines(t,e,o)},renderMinorGridLines:function(t,e,o,i,r){var n=this.radiusCallback&&this.radiusCallback(e,i,r);return this.renderGridLines(t,e,o,n)},renderGridLines:function(t,e,o,i){for(var r={stroke:{width:o.width,color:o.color,dashType:o.dashType}},n=this.box.center(),s=new D.geometry.Circle([n.x,n.y],e),a=this.gridLinesVisual(),p=0;p<t.length;p++){var l=new D.drawing.Path(r);i&&(s.radius=i(t[p])),l.moveTo(s.center).lineTo(s.pointAt(t[p]+180)),a.append(l)}return a.children},gridLineAngles:function(t,e,o,i,r){var n=this,s=this.intervals(e,o,i,r),a=t.options,p=a.visible&&!1!==(a.line||{}).visible;return vt(s,(function(t){var e=n.intervalAngle(t);if(!p||90!==e)return e}))}};var mi=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.range=function(){return{min:0,max:this.options.categories.length}},e.prototype.reflow=function(t){this.box=t,this.reflowLabels()},e.prototype.lineBox=function(){return this.box},e.prototype.reflowLabels=function(){for(var t=this.labels,e=this.options.labels,o=e.skip||0,i=e.step||1,r=new de,n=0;n<t.length;n++){t[n].reflow(r);var s=t[n].box;t[n].reflow(this.getSlot(o+n*i).adjacentBox(0,s.width(),s.height()))}},e.prototype.intervals=function(t,e,o,i){void 0===i&&(i=!1);for(var r=this.options,n=r.categories.length/t||1,s=360/n,a=o||1,p=[],c=0,h=e||0;h<n;h+=a)c=r.reverse?360-h*s:h*s,c=Bt(c,l)%360,i&&ht(c,i)||p.push(c);return p},e.prototype.majorIntervals=function(){return this.intervals(1)},e.prototype.minorIntervals=function(){return this.intervals(.5)},e.prototype.intervalAngle=function(t){return(360+t+this.options.startAngle)%360},e.prototype.majorAngles=function(){var t=this;return vt(this.majorIntervals(),(function(e){return t.intervalAngle(e)}))},e.prototype.createLine=function(){return[]},e.prototype.majorGridLineAngles=function(t){var e=this.options.majorGridLines;return this.gridLineAngles(t,1,e.skip,e.step)},e.prototype.minorGridLineAngles=function(t,e){var o=this.options,i=o.minorGridLines,r=o.majorGridLines,n=e?this.intervals(1,r.skip,r.step):null;return this.gridLineAngles(t,.5,i.skip,i.step,n)},e.prototype.radiusCallback=function(t,e,o){if(e.options.type!==r){var i=Rt(360/(2*this.options.categories.length)),n=Math.cos(i)*t,s=this.majorAngles();return function(e){return!o&&ht(e,s)?t:n}}},e.prototype.createPlotBands=function(){for(var t=this.options.plotBands||[],e=this._plotbandGroup=new D.drawing.Group({zIndex:-1}),o=0;o<t.length;o++){var i=t[o],r=this.plotBandSlot(i),n=this.getSlot(i.from),s=i.from-Math.floor(i.from);r.startAngle+=s*n.angle;var a=Math.ceil(i.to)-i.to;r.angle-=(a+s)*n.angle;var p=be.current.createRing(r,{fill:{color:i.color,opacity:i.opacity},stroke:{opacity:i.opacity}});e.append(p)}this.appendVisual(e)},e.prototype.plotBandSlot=function(t){return this.getSlot(t.from,t.to-1)},e.prototype.getSlot=function(t,e){var o=this.options,i=o.justified,r=this.box,n=this.majorAngles(),s=n.length,a=360/s,p=t;o.reverse&&!i&&(p=(p+1)%s);var l=n[p=Et(Math.floor(p),0,s-1)];i&&(l-=a/2)<0&&(l+=360);var c=a*(Et(Math.ceil(e||p),p,s-1)-p+1);return new ye(r.center(),0,r.height()/2,l,c)},e.prototype.slot=function(t,e){var o=this.getSlot(t,e),i=o.startAngle+180,r=i+o.angle;return new D.geometry.Arc([o.center.x,o.center.y],{startAngle:i,endAngle:r,radiusX:o.radius,radiusY:o.radius})},e.prototype.pointCategoryIndex=function(t){for(var e=this.options.categories.length,o=null,i=0;i<e;i++)if(this.getSlot(i).containsPoint(t)){o=i;break}return o},e}(Yo);Vt(mi,{startAngle:90,labels:{margin:$(10)},majorGridLines:{visible:!0},justified:!0}),Y(mi.prototype,vi);const xi=mi;var bi=function(t){function e(e,o){t.call(this,e,o);var i=this.options;i.minorUnit=i.minorUnit||i.majorUnit/2}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getDivisions=function(t){return li.prototype.getDivisions.call(this,t)-1},e.prototype.reflow=function(t){this.box=t,this.reflowLabels()},e.prototype.reflowLabels=function(){for(var t=this,e=t.options,o=t.labels,i=t.options.labels,r=i.skip||0,n=i.step||1,s=new de,a=this.intervals(e.majorUnit,r,n),p=0;p<o.length;p++){o[p].reflow(s);var l=o[p].box;o[p].reflow(this.getSlot(a[p]).adjacentBox(0,l.width(),l.height()))}},e.prototype.lineBox=function(){return this.box},e.prototype.intervals=function(t,e,o,i){void 0===i&&(i=!1);for(var r=this.options.min,n=this.getDivisions(t),s=[],a=o||1,p=e||0;p<n;p+=a){var l=(360+r+p*t)%360;i&&ht(l,i)||s.push(l)}return s},e.prototype.majorIntervals=function(){return this.intervals(this.options.majorUnit)},e.prototype.minorIntervals=function(){return this.intervals(this.options.minorUnit)},e.prototype.intervalAngle=function(t){return(540-t-this.options.startAngle)%360},e.prototype.createLine=function(){return[]},e.prototype.majorGridLineAngles=function(t){var e=this.options.majorGridLines;return this.gridLineAngles(t,this.options.majorUnit,e.skip,e.step)},e.prototype.minorGridLineAngles=function(t,e){var o=this.options,i=o.minorGridLines,r=o.majorGridLines,n=e?this.intervals(o.majorUnit,r.skip,r.step):null;return this.gridLineAngles(t,o.minorUnit,i.skip,i.step,n)},e.prototype.plotBandSlot=function(t){return this.getSlot(t.from,t.to)},e.prototype.getSlot=function(t,e){var o=this.options,i=this.box,r=o.startAngle,n=Et(t,o.min,o.max),s=Et(e||n,n,o.max);if(o.reverse&&(n*=-1,s*=-1),(s=(540-s-r)%360)<(n=(540-n-r)%360)){var a=n;n=s,s=a}return new ye(i.center(),0,i.height()/2,n,s-n)},e.prototype.slot=function(t,e){void 0===e&&(e=t);var o,i,r=this.options,n=360-r.startAngle,s=this.getSlot(t,e),a=Math.min(t,e),p=Math.max(t,e);return r.reverse?(o=a,i=p):(o=360-p,i=360-a),o=(o+n)%360,i=(i+n)%360,new D.geometry.Arc([s.center.x,s.center.y],{startAngle:o,endAngle:i,radiusX:s.radius,radiusY:s.radius})},e.prototype.getValue=function(t){var e=this.options,o=this.box.center(),i=t.x-o.x,r=t.y-o.y,n=Math.round(kt(Math.atan2(r,i))),s=e.startAngle;return e.reverse||(n*=-1,s*=-1),(n+s+360)%360},e.prototype.valueRange=function(){return{min:0,max:2*Math.PI}},e}(ho);Vt(bi,{type:"polar",startAngle:0,reverse:!1,majorUnit:60,min:0,max:360,labels:{margin:$(10)},majorGridLines:{color:n,visible:!0,width:1},minorGridLines:{color:"#aaa"}}),Y(bi.prototype,vi,{createPlotBands:xi.prototype.createPlotBands,majorAngles:xi.prototype.majorAngles,range:li.prototype.range,labelsCount:li.prototype.labelsCount,createAxisLabel:li.prototype.createAxisLabel});const _i=bi;var wi={options:{majorGridLines:{visible:!0}},createPlotBands:function(){var t=this.options,e=t.majorGridLines.type,o=t.plotBands;void 0===o&&(o=[]);for(var i=this.plotArea.polarAxis,n=i.majorAngles(),s=i.box.center(),a=this._plotbandGroup=new D.drawing.Group({zIndex:-1}),p=0;p<o.length;p++){var l,c=o[p],h={fill:{color:c.color,opacity:c.opacity},stroke:{opacity:c.opacity}},u=this.getSlot(c.from,c.to,!0),d=new ye(s,s.y-u.y2,s.y-u.y1,0,360);l=e===r?be.current.createRing(d,h):D.drawing.Path.fromPoints(this.plotBandPoints(d,n),h).close(),a.append(l)}this.appendVisual(a)},plotBandPoints:function(t,e){for(var o=[],i=[],r=[t.center.x,t.center.y],n=new D.geometry.Circle(r,t.innerRadius),s=new D.geometry.Circle(r,t.radius),a=0;a<e.length;a++)o.push(n.pointAt(e[a]+180)),i.push(s.pointAt(e[a]+180));return o.reverse(),o.push(o[0]),i.push(i[0]),i.concat(o)},createGridLines:function(t){var e=this.options,o=this.radarMajorGridLinePositions(),i=t.majorAngles(),r=t.box.center(),n=[];if(e.majorGridLines.visible&&(n=this.renderGridLines(r,o,i,e.majorGridLines)),e.minorGridLines.visible){var s=this.radarMinorGridLinePositions();_t(n,this.renderGridLines(r,s,i,e.minorGridLines))}return n},renderGridLines:function(t,e,o,i){var n={stroke:{width:i.width,color:i.color,dashType:i.dashType}},s=i.skip;void 0===s&&(s=0);var a=i.step;void 0===a&&(a=0);for(var p=this.gridLinesVisual(),l=s;l<e.length;l+=a){var c=t.y-e[l];if(c>0){var h=new D.geometry.Circle([t.x,t.y],c);if(i.type===r)p.append(new D.drawing.Circle(h,n));else{for(var u=new D.drawing.Path(n),d=0;d<o.length;d++)u.lineTo(h.pointAt(o[d]+180));u.close(),p.append(u)}}}return p.children},getValue:function(t){var e=this.lineBox(),o=this.plotArea.polarAxis,i=o.majorAngles(),n=o.box.center(),s=t.distanceTo(n),a=s;if(this.options.majorGridLines.type!==r&&i.length>1){var p=t.x-n.x,l=t.y-n.y,c=(kt(Math.atan2(l,p))+540)%360;i.sort((function(t,e){return Ci(t,c)-Ci(e,c)}));var h=90-Ci(i[0],i[1])/2,u=180-Ci(c,i[0])-h;a=s*(Math.sin(Rt(u))/Math.sin(Rt(h)))}return this.axisType().prototype.getValue.call(this,new ce(e.x1,e.y2-a))}};function Ci(t,e){return 180-Math.abs(Math.abs(t-e)-180)}const ki=wi;var Ai=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.radarMajorGridLinePositions=function(){return this.getTickPositions(this.options.majorUnit)},e.prototype.radarMinorGridLinePositions=function(){var t=this.options,e=0;return t.majorGridLines.visible&&(e=t.majorUnit),this.getTickPositions(t.minorUnit,e)},e.prototype.axisType=function(){return t},e}(li);Y(Ai.prototype,ki);const Si=Ai;var Pi=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.radarMajorGridLinePositions=function(){var t=[];return this.traverseMajorTicksPositions((function(e){t.push(e)}),this.options.majorGridLines),t},e.prototype.radarMinorGridLinePositions=function(){var t=[];return this.traverseMinorTicksPositions((function(e){t.push(e)}),this.options.minorGridLines),t},e.prototype.axisType=function(){return t},e}(yi);Y(Pi.prototype,ki);const Oi=Pi;function Ti(t){return t<=0?-1:1}const Mi=function(t){function e(e){t.call(this),this.closed=e}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.process=function(t){var e=t.slice(0),o=[],i=this.closed,r=e.length;if(r>2&&(this.removeDuplicates(0,e),r=e.length),r<2||2===r&&e[0].equals(e[1]))return o;var n,s,a=e[0],p=e[1],l=e[2];for(o.push(new D.geometry.Segment(a));a.equals(e[r-1]);)i=!0,e.pop(),r--;if(2===r){var c=this.tangent(a,p,E,I);return Mt(o).controlOut(this.firstControlPoint(c,a,p,E,I)),o.push(new D.geometry.Segment(p,this.secondControlPoint(c,a,p,E,I))),o}if(i){a=e[r-1],p=e[0],l=e[1];var h=this.controlPoints(a,p,l);n=h[1],s=h[0]}else{var u=this.tangent(a,p,E,I);n=this.firstControlPoint(u,a,p,E,I)}for(var d=n,f=0;f<=r-3;f++)if(this.removeDuplicates(f,e),f+3<=(r=e.length)){a=e[f],p=e[f+1],l=e[f+2];var g=this.controlPoints(a,p,l);Mt(o).controlOut(d),d=g[1];var y=g[0];o.push(new D.geometry.Segment(p,y))}if(i){a=e[r-2],p=e[r-1],l=e[0];var v=this.controlPoints(a,p,l);Mt(o).controlOut(d),o.push(new D.geometry.Segment(p,v[0])),Mt(o).controlOut(v[1]),o.push(new D.geometry.Segment(l,s))}else{var m=this.tangent(p,l,E,I);Mt(o).controlOut(d),o.push(new D.geometry.Segment(l,this.secondControlPoint(m,p,l,E,I)))}return o},e.prototype.removeDuplicates=function(t,e){for(;e[t+1]&&(e[t].equals(e[t+1])||e[t+1].equals(e[t+2]));)e.splice(t+1,1)},e.prototype.invertAxis=function(t,e,o){var i=!1;if(t.x===e.x)i=!0;else if(e.x===o.x)(e.y<o.y&&t.y<=e.y||o.y<e.y&&e.y<=t.y)&&(i=!0);else{var r=this.lineFunction(t,e),n=this.calculateFunction(r,o.x);t.y<=e.y&&o.y<=n||e.y<=t.y&&o.y>=n||(i=!0)}return i},e.prototype.isLine=function(t,e,o){var i=this.lineFunction(t,e),r=this.calculateFunction(i,o.x);return t.x===e.x&&e.x===o.x||Bt(r,1)===Bt(o.y,1)},e.prototype.lineFunction=function(t,e){var o=(e.y-t.y)/(e.x-t.x);return[t.y-o*t.x,o]},e.prototype.controlPoints=function(t,e,o){var i,r=E,n=I,s=!1,a=!1;if(this.isLine(t,e,o))i=this.tangent(t,e,E,I);else{var p={x:this.isMonotonicByField(t,e,o,E),y:this.isMonotonicByField(t,e,o,I)};p.x&&p.y?(i=this.tangent(t,o,E,I),s=!0):(this.invertAxis(t,e,o)&&(r=I,n=E),p[r]?i=0:(i=.01*(o[n]<t[n]&&t[n]<=e[n]||t[n]<o[n]&&e[n]<=t[n]?Ti((o[n]-t[n])*(e[r]-t[r])):-Ti((o[r]-t[r])*(e[n]-t[n]))),a=!0))}var l=this.secondControlPoint(i,t,e,r,n);if(a){var c=r;r=n,n=c}var h=this.firstControlPoint(i,e,o,r,n);return s&&(this.restrictControlPoint(t,e,l,i),this.restrictControlPoint(e,o,h,i)),[l,h]},e.prototype.restrictControlPoint=function(t,e,o,i){t.y<e.y?e.y<o.y?(o.x=t.x+(e.y-t.y)/i,o.y=e.y):o.y<t.y&&(o.x=e.x-(e.y-t.y)/i,o.y=t.y):o.y<e.y?(o.x=t.x-(t.y-e.y)/i,o.y=e.y):t.y<o.y&&(o.x=e.x+(t.y-e.y)/i,o.y=t.y)},e.prototype.tangent=function(t,e,o,i){var r=e[o]-t[o],n=e[i]-t[i];return 0===r?0:n/r},e.prototype.isMonotonicByField=function(t,e,o,i){return o[i]>e[i]&&e[i]>t[i]||o[i]<e[i]&&e[i]<t[i]},e.prototype.firstControlPoint=function(t,e,o,i,r){var n=e[i],s=.333*(o[i]-n);return this.point(n+s,e[r]+s*t,i,r)},e.prototype.secondControlPoint=function(t,e,o,i,r){var n=e[i],s=o[i],a=.333*(s-n);return this.point(s-a,o[r]-a*t,i,r)},e.prototype.point=function(t,e,o,i){var r=new D.geometry.Point;return r[o]=t,r[i]=e,r},e.prototype.calculateFunction=function(t,e){for(var o=t.length,i=0,r=0;r<o;r++)i+=Math.pow(e,r)*t[r];return i},e}(D.Class);var Ei=function(t){function e(e){t.call(this),this._axis=e,this.options=e.options}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.value=function(t){var e=this._axis;return e.getCategory?e.getCategory(t):e.getValue(t)},e.prototype.slot=function(t,e,o){return void 0===o&&(o=!0),this._axis.slot(t,e,o)},e.prototype.range=function(){return this._axis.range()},e.prototype.valueRange=function(){return this._axis.valueRange()},e}(D.Class);const Ii=Ei;function Ri(t,e){for(var o=0;o<e.length;o++)if(e[o].options.name===t)return e[o].prepareUserOptions(),new Ii(e[o])}var Bi=function(t){this.visual=t.visual,this.chartsVisual=t.chartContainer.visual,this._pane=t};Bi.prototype.findAxisByName=function(t){return Ri(t,this._pane.axes)};const Li=Bi,ji=function(t){function e(e){t.call(this),this._plotArea=e,this.visual=e.visual,this.backgroundVisual=e._bgVisual}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(D.Class);function Di(t){for(var e=t.length,o=0,i=0;i<e;i++)H(t[i])&&o++;return o}var zi={min:function(t){for(var e=t.length,o=x,i=0;i<e;i++){var r=t[i];H(r)&&(o=Math.min(o,r))}return o===x?t[0]:o},max:function(t){for(var e=t.length,o=b,i=0;i<e;i++){var r=t[i];H(r)&&(o=Math.max(o,r))}return o===b?t[0]:o},sum:function(t){for(var e=t.length,o=0,i=0;i<e;i++){var r=t[i];H(r)&&(o+=r)}return o},sumOrNull:function(t){var e=null;return Di(t)&&(e=zi.sum(t)),e},count:function(t){for(var e=t.length,o=0,i=0;i<e;i++){var r=t[i];null!==r&&Ct(r)&&o++}return o},avg:function(t){var e=Di(t),o=t[0];return e>0&&(o=zi.sum(t)/e),o},first:function(t){for(var e=t.length,o=0;o<e;o++){var i=t[o];if(null!==i&&Ct(i))return i}return t[0]}};const Vi=zi;function Hi(t,e){return null===e?e:st(t)(e)}var Ni=function(t){function e(){t.call(this),this._valueFields={},this._otherFields={},this._nullValue={},this._undefinedValue={}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.register=function(t,e,o){var i=this;void 0===e&&(e=[O]),void 0===o&&(o={});for(var r=0;r<t.length;r++){var n=t[r];i._valueFields[n]=e,i._otherFields[n]=o,i._nullValue[n]=i._makeValue(e,null),i._undefinedValue[n]=i._makeValue(e,void 0)}},e.prototype.canonicalFields=function(t){return this.valueFields(t).concat(this.otherFields(t))},e.prototype.valueFields=function(t){return this._valueFields[t.type]||[O]},e.prototype.otherFields=function(t){return this._otherFields[t.type]||[O]},e.prototype.bindPoint=function(t,e,o){var i,r,n=t.data,s=Ct(o)?o:n[e],a={valueFields:{value:s}},p=this.valueFields(t),l=this._otherFields[t.type];if(null===s)r=this._nullValue[t.type];else if(Ct(s)){if(Array.isArray(s)){var c=s.slice(p.length);r=this._bindFromArray(s,p),i=this._bindFromArray(c,l)}else if("object"==typeof s){var h=this.sourceFields(t,p),u=this.sourceFields(t,l);r=this._bindFromObject(s,p,h),i=this._bindFromObject(s,l,u)}}else r=this._undefinedValue[t.type];return Ct(r)&&(1===p.length?a.valueFields.value=r[p[0]]:a.valueFields=r),a.fields=i||{},a},e.prototype._makeValue=function(t,e){for(var o={},i=t.length,r=0;r<i;r++)o[t[r]]=e;return o},e.prototype._bindFromArray=function(t,e){var o={};if(e)for(var i=Math.min(e.length,t.length),r=0;r<i;r++)o[e[r]]=t[r];return o},e.prototype._bindFromObject=function(t,e,o){void 0===o&&(o=e);var i={};if(e)for(var r=e.length,n=0;n<r;n++){var s=e[n],a=o[n];null!==a&&(i[s]=Hi(a,t))}return i},e.prototype.sourceFields=function(t,e){var o=[];if(e)for(var i=e.length,r=0;r<i;r++){var n=e[r],s=n===O?"field":n+"Field";o.push(null!==t[s]?t[s]||n:null)}return o},e}(D.Class);Ni.current=new Ni;const Fi=Ni;var Ui=/percent(?:\w*)\((\d+)\)/,Gi=new RegExp("^stddev(?:\\((\\d+(?:\\.\\d+)?)\\))?$"),Wi=function(t){function e(e,o,i){t.call(this),this.initGlobalRanges(e,o,i)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initGlobalRanges=function(t,e,o){var i=e.data,r=Gi.exec(t);if(r){this.valueGetter=this.createValueGetter(e,o);var n=this.getAverage(i),s=this.getStandardDeviation(i,n,!1),a=r[1]?parseFloat(r[1]):1,p={low:n.value-s*a,high:n.value+s*a};this.globalRange=function(){return p}}else if(t.indexOf&&t.indexOf("stderr")>=0){this.valueGetter=this.createValueGetter(e,o);var l=this.getStandardError(i,this.getAverage(i));this.globalRange=function(t){return{low:t-l,high:t+l}}}},e.prototype.createValueGetter=function(t,e){var o,i=t.data,r=Fi.current,n=r.valueFields(t),s=Ct(i[0])?i[0]:{};return R(s)?o=st("["+(e?n.indexOf(e):0)+"]"):H(s)?o=st():typeof s===w&&(o=st(r.sourceFields(t,n)[n.indexOf(e)])),o},e.prototype.getErrorRange=function(t,e){var o,i,r;if(!Ct(e))return null;if(this.globalRange)return this.globalRange(t);if(R(e))o=t-e[0],i=t+e[1];else if(H(r=parseFloat(e)))o=t-r,i=t+r;else{if(!(r=Ui.exec(e)))throw new Error("Invalid ErrorBar value: "+e);var n=t*(parseFloat(r[1])/100);o=t-Math.abs(n),i=t+Math.abs(n)}return{low:o,high:i}},e.prototype.getStandardError=function(t,e){return this.getStandardDeviation(t,e,!0)/Math.sqrt(e.count)},e.prototype.getStandardDeviation=function(t,e,o){for(var i=t.length,r=o?e.count-1:e.count,n=0,s=0;s<i;s++){var a=this.valueGetter(t[s]);H(a)&&(n+=Math.pow(a-e.value,2))}return Math.sqrt(n/r)},e.prototype.getAverage=function(t){for(var e=t.length,o=0,i=0,r=0;r<e;r++){var n=this.valueGetter(t[r]);H(n)&&(o+=n,i++)}return{value:o/i,count:i}},e}(D.Class);const Xi=Wi;var Yi=D.support.browser||{},qi=600,Qi="fadeIn",Zi=.8,Ki=Yi.msie?.001:0,Ji="errorLow",$i="errorHigh",tr="zero",er="interpolate",or="above",ir="below",rr="smooth",nr="step",sr="area",ar="bar",pr="boxPlot",lr="bubble",cr="bullet",hr="candlestick",ur="column",dr="donut",fr="funnel",gr="pyramid",yr="heatmap",vr="horizontalWaterfall",mr="line",xr="ohlc",br="pie",_r="polarArea",wr="polarLine",Cr="polarScatter",kr="radarArea",Ar="radarColumn",Sr="radarLine",Pr="rangeArea",Or="rangeBar",Tr="rangeColumn",Mr="scatter",Er="scatterLine",Ir="verticalArea",Rr="verticalBoxPlot",Br="verticalBullet",Lr="verticalLine",jr="verticalRangeArea",Dr="waterfall",zr=[ar,ur,xr,hr,pr,Rr,cr,Tr,Or,Dr,vr],Vr="linearTrendline",Hr="movingAverageTrendline",Nr=[Vr,Hr],Fr="seriesClick",Ur="seriesHover",Gr="seriesOver",Wr="seriesLeave",Xr="plotAreaHover",Yr="plotAreaLeave",qr="drag",Qr="dragEnd",Zr="dragStart",Kr="zoomStart",Jr="zoom",$r="zoomEnd",tn="selectStart",en="select",on="selectEnd",rn="showTooltip",nn="hideTooltip",sn="log",an="category",pn="insideEnd",ln="outsideEnd",cn="wheel",hn="drilldown",un=function(t){function e(e,o,i,r,n,s){t.call(this,s),this.low=e,this.high=o,this.isVertical=i,this.chart=r,this.series=n}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflow=function(t){var e,o=this.options.endCaps,i=this.isVertical,r=this.getAxis().getSlot(this.low,this.high),n=t.center(),s=this.getCapsWidth(t,i),a=i?n.x:n.y,p=a-s,l=a+s;i?(e=[new ce(n.x,r.y1),new ce(n.x,r.y2)],o&&e.push(new ce(p,r.y1),new ce(l,r.y1),new ce(p,r.y2),new ce(l,r.y2)),this.box=new de(p,r.y1,l,r.y2)):(e=[new ce(r.x1,n.y),new ce(r.x2,n.y)],o&&e.push(new ce(r.x1,p),new ce(r.x1,l),new ce(r.x2,p),new ce(r.x2,l)),this.box=new de(r.x1,p,r.x2,l)),this.linePoints=e},e.prototype.getCapsWidth=function(t,e){var o=e?t.width():t.height();return Math.min(Math.floor(o/2),4)||4},e.prototype.createVisual=function(){var t=this,e=this.options,o=e.visual;o?this.visual=o({low:this.low,high:this.high,rect:this.box.toRect(),sender:this.getSender(),options:{endCaps:e.endCaps,color:e.color,line:e.line},createVisual:function(){t.createDefaultVisual();var e=t.visual;return delete t.visual,e}}):this.createDefaultVisual()},e.prototype.createDefaultVisual=function(){var e=this.options,o=this.linePoints,i={stroke:{color:e.color,width:e.line.width,dashType:e.line.dashType}};t.prototype.createVisual.call(this);for(var r=0;r<o.length;r+=2){var n=new D.drawing.Path(i).moveTo(o[r].x,o[r].y).lineTo(o[r+1].x,o[r+1].y);z(n),this.visual.append(n)}},e}(we);Vt(un,{animation:{type:Qi,delay:qi},endCaps:!0,line:{width:2},zIndex:1});const dn=un;var fn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getAxis=function(){return this.chart.seriesValueAxis(this.series)},e}(dn);const gn=fn;function yn(t){for(var e=0;e<t.length;e++)if(Ct(t[e].zIndex))return!0}function vn(t,e){null!==e&&t.push(e)}function mn(t){return Di(t)===t.length}function xn(t,e,o){var i=e.visible;if(Ct(i))return i;var r=t.pointVisibility;return r?r[o]:void 0}function bn(t){for(var e=t.data,o=[],i=0,r=0,n=0;n<e.length;n++){var s=Fi.current.bindPoint(t,n),a=s.valueFields.value;N(a)&&(a=parseFloat(a)),H(a)?(s.visible=!1!==xn(t,s.fields,n),s.value=Math.abs(a),o.push(s),s.visible&&(i+=s.value),0!==a&&r++):o.push(null)}return{total:i,points:o,count:r}}function _n(t){for(var e=t.length,o=0,i=0;i<e;i++)o=Math.max(o,t[i].data.length);return o}function wn(t,e){return t&&e?t.toLowerCase()===e.toLowerCase():t===e}var Cn=5;function kn(t,e,o,i){void 0===o&&(o={}),void 0===i&&(i=!1);var r=o.defaults=o.defaults||{},n=o.depth=o.depth||0,s=!1;if(o.excluded=o.excluded||[],n>Cn)return null;for(var a in t)if(!ht(a,o.excluded)&&t.hasOwnProperty(a)){var p=t[a];U(p)?(s=!0,i||(t[a]=jt(p(e),r[a]))):q(p)&&(i||(o.defaults=r[a]),o.depth++,s=kn(p,e,o,i)||s,o.depth--)}return s}function An(t,e){for(var o=[],i=[].concat(e),r=0;r<t.length;r++){var n=t[r];ht(n.type,i)&&o.push(n)}return o}function Sn(t,e,o){if(null===e)return e;var i="_date_"+t,r=e[i];return r||(r=Uo(o,st(t)(e)),e[i]=r),r}function Pn(t){var e=t.overlay;return e&&e.gradient&&"none"!==e.gradient}function On(t){return Ct(t)&&null!==t}function Tn(t,e){var o=t.type,i=e instanceof Date;return!o&&i||wn(o,h)}function Mn(t){return 1===t.length?t[0]:t}var En=/area/i;function In(t,e){var o=Fi.current.bindPoint(t,null,e).valueFields;for(var i in o)if(F(o[i]))return!0}function Rn(t){var e,o,i=t.start,r=t.dir,n=t.min,s=t.max,a=t.getter,p=t.hasItem,l=t.series,c=i;do{p(c+=r)&&(e=In(l,(o=a(c)).item))}while(n<=c&&c<=s&&!e);if(e)return o}function Bn(t,e,o,i,r){var n=e.min,s=e.max,a=n>0&&n<o,p=s+1<o;if(a||p){var l,c,h,u=function(t){return t.missingValues?t.missingValues:En.test(t.type)||t.stack?tr:er}(t);u!==er?(a&&(l=i(n-1)),p&&(c=i(s+1))):(a&&(l=In(t,(h=i(n-1)).item)?h:Rn({start:n,dir:-1,min:0,max:o-1,getter:i,hasItem:r,series:t})),p&&(c=In(t,(h=i(s+1)).item)?h:Rn({start:s,dir:1,min:0,max:o-1,getter:i,hasItem:r,series:t}))),l&&(t._outOfRangeMinPoint=l),c&&(t._outOfRangeMaxPoint=c)}}var Ln=function(t){function e(e,o){t.call(this,o),this.plotArea=e,this.chartService=e.chartService,this.categoryAxis=e.seriesCategoryAxis(o.series[0]),this.valueAxisRanges={},this.points=[],this.categoryPoints=[],this.seriesPoints=[],this.seriesOptions=[],this._evalSeries=[],this.render()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(){this.traverseDataPoints(this.addValue.bind(this))},e.prototype.pointOptions=function(t,e){var o=this.seriesOptions[e];if(!o){var i=this.pointType().prototype.defaults;this.seriesOptions[e]=o=Y({},i,{vertical:!this.options.invertAxes},t)}return o},e.prototype.plotValue=function(t){if(!t)return 0;if(this.options.isStacked100&&H(t.value)){for(var e=t.categoryIx,o=this.categoryPoints[e],i=[],r=0,n=0;n<o.length;n++){var s=o[n];if(s){var a=t.series.stack,p=s.series.stack;if(a&&p&&a.group!==p.group)continue;H(s.value)&&(r+=Math.abs(s.value),i.push(Math.abs(s.value)))}}if(r>0)return t.value/r}return t.value},e.prototype.plotRange=function(t,e){void 0===e&&(e=0);var o=this.categoryPoints[t.categoryIx];if(this.options.isStacked){for(var i=this.plotValue(t),r=i>=0,n=e,s=!1,a=0;a<o.length;a++){var p=o[a];if(t===p)break;var l=t.series.stack,c=p.series.stack;if(l&&c){if(typeof l===S&&l!==c)continue;if(l.group&&l.group!==c.group)continue}var h=this.plotValue(p);(h>=0&&r||h<0&&!r)&&(n+=h,i+=h,s=!0,this.options.isStacked100&&(i=Math.min(i,1)))}return s&&(n-=e),[n,i]}var u=t.series,d=this.seriesValueAxis(u),f=this.categoryAxisCrossingValue(d);return[f,F(t.value)?t.value:f]},e.prototype.stackLimits=function(t,e){for(var o=x,i=b,r=0;r<this.categoryPoints.length;r++){var n=this.categoryPoints[r];if(n)for(var s=0;s<n.length;s++){var a=n[s];if(a&&(a.series.stack===e||a.series.axis===t)){var p=this.plotRange(a,0)[1];Ct(p)&&isFinite(p)&&(i=Math.max(i,p),o=Math.min(o,p))}}}return{min:o,max:i}},e.prototype.updateStackRange=function(){var t=this,e=this.options,o=e.isStacked,i=e.series,r={};if(o)for(var n=0;n<i.length;n++){var s=i[n],a=s.axis,p=a+s.stack,l=r[p];if(!l){l=t.stackLimits(a,s.stack);var c=t.errorTotals;c&&(c.negative.length&&(l.min=Math.min(l.min,Yt(c.negative).min)),c.positive.length&&(l.max=Math.max(l.max,Yt(c.positive).max))),l.min!==x||l.max!==b?r[p]=l:l=null}l&&(t.valueAxisRanges[a]=l)}},e.prototype.addErrorBar=function(t,e,o){var i,r=t.value,n=t.series,s=t.seriesIx,a=t.options.errorBars,p=e.fields[Ji],l=e.fields[$i];H(p)&&H(l)?i={low:p,high:l}:a&&Ct(a.value)&&(this.seriesErrorRanges=this.seriesErrorRanges||[],this.seriesErrorRanges[s]=this.seriesErrorRanges[s]||new Xi(a.value,n,O),i=this.seriesErrorRanges[s].getErrorRange(r,a.value)),i&&(t.low=i.low,t.high=i.high,this.addPointErrorBar(t,o))},e.prototype.addPointErrorBar=function(t,e){var o=!this.options.invertAxes,i=t.options.errorBars,r=t.series,n=t.low,s=t.high;if(this.options.isStacked){var a=this.stackedErrorRange(t,e);n=a.low,s=a.high}else{var p={categoryIx:e,series:r};this.updateRange({value:n},p),this.updateRange({value:s},p)}var l=new gn(n,s,o,this,r,i);t.errorBars=[l],t.append(l)},e.prototype.stackedErrorRange=function(t,e){var o=this.plotRange(t,0)[1]-t.value,i=t.low+o,r=t.high+o;return this.errorTotals=this.errorTotals||{positive:[],negative:[]},i<0&&(this.errorTotals.negative[e]=Math.min(this.errorTotals.negative[e]||0,i)),r>0&&(this.errorTotals.positive[e]=Math.max(this.errorTotals.positive[e]||0,r)),{low:i,high:r}},e.prototype.addValue=function(t,e){var o=e.categoryIx,i=e.series,r=e.seriesIx,n=this.categoryPoints[o];n||(this.categoryPoints[o]=n=[]);var s=this.seriesPoints[r];s||(this.seriesPoints[r]=s=[]);var a=this.createPoint(t,e);a&&(Object.assign(a,e),a.owner=this,a.noteText=t.fields.noteText,Ct(a.dataItem)||(a.dataItem=i.data[o]),this.addErrorBar(a,t,o)),this.points.push(a),s.push(a),n.push(a),this.updateRange(t.valueFields,e)},e.prototype.evalPointOptions=function(t,e,o){var i=o.categoryIx,r=o.category,n=o.series,s=o.seriesIx,a={defaults:n._defaults,excluded:["data","aggregate","_events","tooltip","content","template","visual","toggle","_outOfRangeMinPoint","_outOfRangeMaxPoint","drilldownSeriesFactory"]},p=this._evalSeries[s];Ct(p)||(this._evalSeries[s]=p=kn(t,{},a,!0));var l=t;return p&&kn(l=Y({},l),{value:e,category:r,index:i,series:n,dataItem:n.data[i]},a),l},e.prototype.updateRange=function(t,e){var o=e.series.axis,i=t.value,r=this.valueAxisRanges[o];isFinite(i)&&null!==i&&((r=this.valueAxisRanges[o]=r||{min:x,max:b}).min=Math.min(r.min,i),r.max=Math.max(r.max,i))},e.prototype.seriesValueAxis=function(t){var e=this.plotArea,o=t.axis,i=o?e.namedValueAxes[o]:e.valueAxis;if(!i)throw new Error("Unable to locate value axis with name "+o);return i},e.prototype.reflow=function(t){var e=this,o=this.categorySlots=[],i=this.points,r=this.categoryAxis,n=0;this.traverseDataPoints((function(t,s){var a=s.categoryIx,p=s.series,l=e.seriesValueAxis(p),c=i[n++],h=o[a];if(h||(o[a]=h=e.categorySlot(r,a,l)),c){var u=e.plotRange(c,l.startValue()),d=e.valueSlot(l,u);if(d){var f=e.pointSlot(h,d);c.aboveAxis=e.aboveAxis(c,l),c.stackValue=u[1],e.options.isStacked100&&(c.percentage=e.plotValue(c)),e.reflowPoint(c,f)}else c.visible=!1}})),this.reflowCategories(o),!this.options.clip&&this.options.limitPoints&&this.points.length&&this.limitPoints(),this.box=t},e.prototype.valueSlot=function(t,e){return t.getSlot(e[0],e[1],!this.options.clip)},e.prototype.limitPoints=function(){for(var t=this.categoryPoints,e=t[0].concat(Mt(t)),o=0;o<e.length;o++)e[o]&&this.limitPoint(e[o])},e.prototype.limitPoint=function(t){var e=this.categoryAxis.limitSlot(t.box);e.equals(t.box)||t.reflow(e)},e.prototype.aboveAxis=function(t,e){var o=this.categoryAxisCrossingValue(e),i=t.value;return e.options.reverse?i<o:i>=o},e.prototype.categoryAxisCrossingValue=function(t){var e=this.categoryAxis,o=t.options;return[].concat(o.axisCrossingValues||o.axisCrossingValue)[e.axisIndex||0]||0},e.prototype.reflowPoint=function(t,e){t.reflow(e)},e.prototype.reflowCategories=function(){},e.prototype.pointSlot=function(t,e){var o=this.options.invertAxes,i=o?e:t,r=o?t:e;return new de(i.x1,r.y1,i.x2,r.y2)},e.prototype.categorySlot=function(t,e){return t.getSlot(e)},e.prototype.traverseDataPoints=function(t){for(var e=this,o=this.options.series,i=_n(o),r=o.length,n=0;n<r;n++)e._outOfRangeCallback(o[n],"_outOfRangeMinPoint",n,t);for(var s=0;s<i;s++)for(var a=0;a<r;a++){var p=o[a],l=e.categoryAxis.categoryAt(s);t(e.plotArea.bindPoint(p,s),{category:l,categoryIx:s,categoriesCount:i,series:p,seriesIx:a})}for(var c=0;c<r;c++)e._outOfRangeCallback(o[c],"_outOfRangeMaxPoint",c,t)},e.prototype._outOfRangeCallback=function(t,e,o,i){var r=t[e];if(r){var n=r.categoryIx;i(this.plotArea.bindPoint(t,n,r.item),{category:r.category,categoryIx:n,series:t,seriesIx:o,dataItem:r.item})}},e.prototype.formatPointValue=function(t,e){return null===t.value?"":this.chartService.format.auto(e,t.value)},e.prototype.pointValue=function(t){return t.valueFields.value},e}(we);Vt(Ln,{series:[],invertAxes:!1,isStacked:!1,clip:!0,limitPoints:!0});const jn=Ln;var Dn={click:function(t,e){return t.trigger(Fr,this.eventArgs(e))},hover:function(t,e){return t.trigger(Ur,this.eventArgs(e))},over:function(t,e){return t.trigger(Gr,this.eventArgs(e))},out:function(t,e){return t.trigger(Wr,this.eventArgs(e))},eventArgs:function(t){return{value:this.value,percentage:this.percentage,stackValue:this.stackValue,category:this.category,series:this.series,dataItem:this.dataItem,runningTotal:this.runningTotal,total:this.total,element:Ot(t),originalEvent:t,point:this}}};const zn=Dn,Vn={createNote:function(){var t=this.options.notes,e=this.noteText||t.label.text;!1!==t.visible&&Ct(e)&&null!==e&&(this.note=new Ye({value:this.value,text:e,dataItem:this.dataItem,category:this.category,series:this.series},this.options.notes,this.owner.chartService),this.append(this.note))}};var Hn=function(t){function e(e,o){t.call(this),this.value=e,this.options=o,this.aboveAxis=jt(this.options.aboveAxis,!0),this.tooltipTracking=!0}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(){var t=this.options,e=t.markers,o=t.labels;if(!this._rendered){if(this._rendered=!0,e.visible&&e.size&&(this.marker=this.createMarker(),this.append(this.marker)),o.visible){var i=it(o),r=this.pointData(),n=this.value;i?n=i(r):o.format&&(n=this.formatValue(o.format)),this.label=new He(n,Y({align:a,vAlign:a,margin:{left:5,right:5},zIndex:jt(o.zIndex,this.series.zIndex)},o),r),this.append(this.label)}this.createNote(),this.errorBar&&this.append(this.errorBar)}},e.prototype.markerBorder=function(){var t=this.options.markers,e=t.background,o=Y({color:this.color},t.border);return Ct(o.color)||(o.color=new D.Color(e).brightness(Zi).toHex()),o},e.prototype.createVisual=function(){},e.prototype.createMarker=function(){var t=this.options.markers;return new Se({type:t.type,width:t.size,height:t.size,rotation:t.rotation,background:t.background,border:this.markerBorder(),opacity:t.opacity,zIndex:jt(t.zIndex,this.series.zIndex),animation:t.animation,visual:t.visual},{dataItem:this.dataItem,value:this.value,series:this.series,category:this.category})},e.prototype.markerBox=function(){return this.marker||(this.marker=this.createMarker(),this.marker.reflow(this._childBox)),this.marker.box},e.prototype.reflow=function(t){var e=this.options,o=this.aboveAxis,i=e.vertical;this.render(),this.box=t;var r=t.clone();if(i?o?r.y1-=r.height():r.y2+=r.height():o?r.x1+=r.width():r.x2-=r.width(),this._childBox=r,this.marker&&this.marker.reflow(r),this.reflowLabel(r),this.errorBars)for(var n=0;n<this.errorBars.length;n++)this.errorBars[n].reflow(r);if(this.note){var s=this.markerBox();if(!e.markers.visible||!e.markers.size){var a=s.center();s=new de(a.x,a.y,a.x,a.y)}this.note.reflow(s)}},e.prototype.reflowLabel=function(t){var e=this.options,o=this.label,i=e.labels.position;o&&(i=(i=i===or?P:i)===ir?s:i,o.reflow(t),o.box.alignTo(this.markerBox(),i),o.reflow(o.box))},e.prototype.createHighlight=function(){var t=this.options.highlight.markers,e=this.markerBorder().color,o=this.options.markers,i=o.size+(o.border.width||0)+(t.border.width||0),r=new Se({type:o.type,width:i,height:i,rotation:o.rotation,background:t.color||e,border:{color:t.border.color,width:t.border.width,opacity:jt(t.border.opacity,1)},opacity:jt(t.opacity,1)});return r.reflow(this._childBox),r.getElement()},e.prototype.highlightVisual=function(){return(this.marker||{}).visual},e.prototype.highlightVisualArgs=function(){var t,e,o=this.marker;if(o)e=o.paddingBox.toRect(),t=o.visual;else{var i=this.options.markers.size,r=i/2,n=this.box.center();e=new D.geometry.Rect([n.x-r,n.y-r],[i,i])}return{options:this.options,rect:e,visual:t}},e.prototype.tooltipAnchor=function(){var t=this.markerBox(),e=this.owner.pane.clipBox();if(!e||e.overlaps(t)){var o,i,r=t.x2+5,n=m;return this.aboveAxis?(o=t.y1,i=s):(o=t.y2,i=P),{point:new ce(r,o),align:{horizontal:n,vertical:i}}}},e.prototype.formatValue=function(t){return this.owner.formatPointValue(this,t)},e.prototype.overlapsBox=function(t){return this.markerBox().overlaps(t)},e.prototype.unclipElements=function(){this.label&&(this.label.options.noclip=!0),this.note&&(this.note.options.noclip=!0)},e.prototype.pointData=function(){return{dataItem:this.dataItem,category:this.category,value:this.value,percentage:this.percentage,stackValue:this.stackValue,series:this.series}},e}(we);Hn.prototype.defaults={vertical:!0,markers:{visible:!0,background:T,size:8,type:p,border:{width:2},opacity:1},labels:{visible:!1,position:or,margin:$(3),padding:$(4),animation:{type:Qi,delay:qi}},notes:{label:{}},highlight:{markers:{border:{color:"#fff",width:2}},zIndex:100},errorBars:{line:{width:1}}},Y(Hn.prototype,zn),Y(Hn.prototype,Vn);const Nn=Hn;var Fn=function(t){function e(e,o,i){t.call(this),this.linePoints=e,this.series=o,this.seriesIx=i}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.points=function(){return this.toGeometryPoints(this.linePoints)},e.prototype.toGeometryPoints=function(t){for(var e=[],o=0,i=t.length;o<i;o++)t[o]&&!1!==t[o].visible&&e.push(t[o]._childBox.toRect().center());return e},e.prototype.createVisual=function(){var t=this,e=this.series.visual;e?(this.visual=e({points:this.toGeometryPoints(this.linePoints),series:this.series,sender:this.getSender(),createVisual:function(){return t.segmentVisual(),t.visual}}),this.visual&&!Ct(this.visual.options.zIndex)&&(this.visual.options.zIndex=this.series.zIndex)):this.segmentVisual()},e.prototype.segmentVisual=function(){var t=this.options,e=this.series,o=e.color,i=e._defaults;U(o)&&i&&(o=i.color);var r=D.drawing.Path.fromPoints(this.points(),{stroke:{color:o,width:e.width,opacity:e.opacity,dashType:e.dashType},zIndex:e.zIndex});t.closed&&r.close(),this.visual=r},e.prototype.aliasFor=function(t,e){return this.parent.getNearestPoint(e.x,e.y,this.seriesIx)},e}(we);Vt(Fn,{closed:!1});const Un=Fn;var Gn={calculateStepPoints:function(t){for(var e=this.parent.plotArea.seriesCategoryAxis(this.series).options,o=e.justified,i=e.vertical,r=e.reverse,n=i?E:I,s=i?I:E,a=r?2:1,p=a,l=Wn(t[0],n,a,s,p),c=[l],h=1;h<t.length;h++){var u=Wn(t[h],n,a,s,p);if(l[n]!==u[n]){var d=new D.geometry.Point;d[n]=l[n],d[s]=u[s],c.push(d,u)}l=u}return o?l!==Mt(c)&&c.push(l):c.push(Wn(Mt(t),n,a,s,r?1:2)),c}};function Wn(t,e,o,i,r){var n=t.box,s=new D.geometry.Point;return s[e]=n[e+o],s[i]=n[i+r],s}const Xn=Gn;var Yn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.points=function(){return this.calculateStepPoints(this.linePoints)},e}(Un);Y(Yn.prototype,Xn);const qn=Yn;var Qn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.segmentVisual=function(){var t=this.series,e=t._defaults,o=t.color;U(o)&&e&&(o=e.color);var i=new Mi(this.options.closed).process(this.points()),r=new D.drawing.Path({stroke:{color:o,width:t.width,opacity:t.opacity,dashType:t.dashType},zIndex:t.zIndex});r.segments.push.apply(r.segments,i),this.visual=r},e}(Un);const Zn=Qn;var Kn={renderSegments:function(){var t,e=this,o=this.options,i=this.seriesPoints,r=o.series,n=i.length;this._segments=[];for(var s=0;s<n;s++){for(var a=r[s],p=e.sortPoints(i[s]),l=p.length,c=[],h=0;h<l;h++){var u=p[h];u?c.push(u):e.seriesMissingValues(a)!==er&&(c.length>1&&(t=e.createSegment(c,a,s,t),e._addSegment(t)),c=[])}c.length>1&&(t=e.createSegment(c,a,s,t),e._addSegment(t))}this.children.unshift.apply(this.children,this._segments)},_addSegment:function(t){this._segments.push(t),t.parent=this},sortPoints:function(t){return t},seriesMissingValues:function(t){var e=t.missingValues;return!e&&this.options.isStacked?tr:e||er},getNearestPoint:function(t,e,o){for(var i,r=new ce(t,e),n=this.seriesPoints[o],s=x,a=0;a<n.length;a++){var p=n[a];if(p&&Ct(p.value)&&null!==p.value&&!1!==p.visible){var l=p.box.center().distanceTo(r);l<s&&(i=p,s=l)}}return i}};const Jn=Kn;var $n=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setup=function(){this._setEnd(this.options.box.x1)},e.prototype.step=function(t){var e=this.options.box;this._setEnd(ut(e.x1,e.x2,t))},e.prototype._setEnd=function(t){var e=this.element,o=e.segments,i=o[1].anchor(),r=o[2].anchor();e.suspend(),i.setX(t),e.resume(),r.setX(t)},e}(D.drawing.Animation);Vt($n,{duration:qi}),D.drawing.AnimationFactory.current.register("clip",$n);const ts=$n,es={createAnimation:function(){var t=this.getRoot();if(t&&!1!==(t.options||{}).transitions){var e=t.size(),o=D.drawing.Path.fromRect(e.toRect());this.visual.clip(o),this.animation=new ts(o,{box:e}),yn(this.options.series)&&this._setChildrenAnimation(o)}},_setChildrenAnimation:function(t){for(var e=this.animationPoints(),o=0;o<e.length;o++){var i=e[o];i&&i.visual&&Ct(i.visual.options.zIndex)&&i.visual.clip(t)}}};var os=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(){t.prototype.render.call(this),this.updateStackRange(),this.renderSegments()},e.prototype.pointType=function(){return Nn},e.prototype.createPoint=function(t,e){var o=e.series,i=e.seriesIx,r=this.seriesMissingValues(o),n=t.valueFields.value;if(!Ct(n)||null===n){if(r!==tr)return null;n=0}var s=this.pointOptions(o,i);s=this.evalPointOptions(s,n,e);var a=t.fields.color||o.color;U(o.color)&&(a=s.color);var p=new Nn(n,s);return p.color=a,this.append(p),p},e.prototype.plotRange=function(t){var e=this.plotValue(t);if(this.options.isStacked)for(var o=t.categoryIx,i=this.categoryPoints[o],r=0;r<i.length;r++){var n=i[r];if(t===n)break;e+=this.plotValue(n),this.options.isStacked100&&(e=Math.min(e,1))}return[e,e]},e.prototype.createSegment=function(t,e,o){var i=e.style;return new(i===nr?qn:i===rr?Zn:Un)(t,e,o)},e.prototype.animationPoints=function(){for(var t=this.points,e=[],o=0;o<t.length;o++)e.push((t[o]||{}).marker);return e.concat(this._segments)},e.prototype.supportsPointInactiveOpacity=function(){return!1},e}(jn);Y(os.prototype,Jn,es);const is=os;var rs=function(t){function e(e,o,i,r,n){t.call(this,e,o,i),this.prevSegment=r,this.stackPoints=n}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createVisual=function(){var t=this.series,e=t._defaults,o=t.line||{},i=t.color;U(i)&&e&&(i=e.color),this.visual=new D.drawing.Group({zIndex:t.zIndex}),this.createFill({fill:{color:i,opacity:t.opacity},stroke:null}),o.width>0&&!1!==o.visible&&this.createStroke({stroke:Y({color:i,opacity:t.opacity,lineCap:"butt"},o)})},e.prototype.strokeSegments=function(){var t=this._strokeSegments;return t||(t=this._strokeSegments=this.createStrokeSegments()),t},e.prototype.createStrokeSegments=function(){return this.segmentsFromPoints(this.points())},e.prototype.stackSegments=function(){return this.prevSegment?this.prevSegment.createStackSegments(this.stackPoints):this.createStackSegments(this.stackPoints)},e.prototype.createStackSegments=function(t){return this.segmentsFromPoints(this.toGeometryPoints(t)).reverse()},e.prototype.segmentsFromPoints=function(t){return t.map((function(t){return new D.geometry.Segment(t)}))},e.prototype.createStroke=function(t){var e=new D.drawing.Path(t);e.segments.push.apply(e.segments,this.strokeSegments()),this.visual.append(e)},e.prototype.hasStackSegment=function(){return this.prevSegment||this.stackPoints&&this.stackPoints.length},e.prototype.createFill=function(t){var e=this.strokeSegments(),o=e.slice(0),i=this.hasStackSegment();if(i){var r=this.stackSegments();_t(o,r)}var n=new D.drawing.Path(t);n.segments.push.apply(n.segments,o),!i&&e.length>1&&this.fillToAxes(n),this.visual.append(n)},e.prototype.fillToAxes=function(t){var e=this.parent,o=e.options.invertAxes,i=e.seriesValueAxis(this.series),r=e.categoryAxisCrossingValue(i),n=i.getSlot(r,r,!0),s=this.strokeSegments(),a=s[0].anchor(),p=Mt(s).anchor(),l=o?n.x1:n.y1;o?t.lineTo(l,p.y).lineTo(l,a.y):t.lineTo(p.x,l).lineTo(a.x,l)},e}(Un);const ns=rs;var ss=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createStrokeSegments=function(){return this.segmentsFromPoints(this.calculateStepPoints(this.linePoints))},e.prototype.createStackSegments=function(t){return this.segmentsFromPoints(this.calculateStepPoints(t)).reverse()},e}(ns);Y(ss.prototype,Xn);const as=ss;var ps=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createStrokeSegments=function(){var t=new Mi(this.options.closed),e=this.points();return t.process(e)},e.prototype.createStackSegments=function(){for(var t=this.strokeSegments(),e=[],o=t.length-1;o>=0;o--){var i=t[o];e.push(new D.geometry.Segment(i.anchor(),i.controlOut(),i.controlIn()))}return e},e}(ns);const ls=ps;var cs=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createSegment=function(t,e,o,i){var r,n,s=this.options.isStacked,a=(e.line||{}).style;return s&&o>0&&i&&("gap"!==this.seriesMissingValues(e)?(n=i.linePoints,r=i):n=this._gapStackPoints(t,o,a)),new(a===nr?as:a===rr?ls:ns)(t,e,o,r,n)},e.prototype.reflow=function(e){t.prototype.reflow.call(this,e);var o=this._stackPoints;if(o)for(var i=0;i<o.length;i++){var r=o[i],n=this.categoryAxis.getSlot(r.categoryIx);r.reflow(n)}},e.prototype._gapStackPoints=function(t,e,o){var i=this,r=this.seriesPoints,n=t[0].categoryIx,s=t.length;n<0&&(n=0,s--);var a=n+s,p=this.seriesOptions[0]._outOfRangeMinPoint?1:0,l=[];this._stackPoints=this._stackPoints||[];for(var c=n;c<a;c++){var h=c+p,u=e,d=void 0;do{d=r[--u][h]}while(u>0&&!d);if(d)o!==nr&&c>n&&!r[u][h-1]&&l.push(i._previousSegmentPoint(c,h,h-1,u)),l.push(d),o!==nr&&c+1<a&&!r[u][h+1]&&l.push(i._previousSegmentPoint(c,h,h+1,u));else{var f=i._createGapStackPoint(c);i._stackPoints.push(f),l.push(f)}}return l},e.prototype._previousSegmentPoint=function(t,e,o,i){for(var r,n=this.seriesPoints,s=i;s>0&&!r;)r=n[--s][o];return r?r=n[s][e]:(r=this._createGapStackPoint(t),this._stackPoints.push(r)),r},e.prototype._createGapStackPoint=function(t){var e=this.pointOptions({},0),o=new Nn(0,e);return o.categoryIx=t,o.series={},o},e.prototype.seriesMissingValues=function(t){return t.missingValues||tr},e.prototype.supportsPointInactiveOpacity=function(){return!1},e}(is);const hs=cs;var us=function(t){function e(){t.call(this),this.axisRanges={}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.update=function(t){var e=this.axisRanges;for(var o in t){var i=t[o],r=e[o];e[o]=r=r||{min:x,max:b},r.min=Math.min(r.min,i.min),r.max=Math.max(r.max,i.max)}},e.prototype.reset=function(t){this.axisRanges[t]=void 0},e.prototype.query=function(t){return this.axisRanges[t]},e}(D.Class);const ds=us;var fs=function(t){function e(e,o,i){t.call(this,o),this.textBox=new He(e,this.options,i),this.append(this.textBox)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createVisual=function(){this.textBox.options.noclip=this.options.noclip},e.prototype.reflow=function(t){var e=this.options,o=e.vertical,i=e.aboveAxis,r=this.children[0],n=r.options,p=r.box,l=r.options.padding,c=t;n.align=o?a:m,n.vAlign=o?P:a,e.position===pn?o?(n.vAlign=P,!i&&p.height()<t.height()&&(n.vAlign=s)):n.align=i?k:m:e.position===a?(n.vAlign=a,n.align=a):"insideBase"===e.position?o?n.vAlign=i?s:P:n.align=i?m:k:e.position===ln&&(o?c=i?new de(t.x1,t.y1-p.height(),t.x2,t.y1):new de(t.x1,t.y2,t.x2,t.y2+p.height()):(n.align=a,c=i?new de(t.x2,t.y1,t.x2+p.width(),t.y2):new de(t.x1-p.width(),t.y1,t.x1,t.y2))),e.rotation||(o?l.left=l.right=(c.width()-r.contentBox.width())/2:l.top=l.bottom=(c.height()-r.contentBox.height())/2),r.reflow(c)},e.prototype.alignToClipBox=function(t){var e=this.options.vertical?I:E,o=e+"1",i=e+"2",r=this.children[0],n=this.parent.box;if(n[o]<t[o]||t[i]<n[i]){var s=r.paddingBox.clone();s[o]=Math.max(n[o],t[o]),s[i]=Math.min(n[i],t[i]),this.reflow(s)}},e}(we);Vt(fs,{position:ln,margin:$(3),padding:$(4),color:n,background:"",border:{width:1,color:""},aboveAxis:!0,vertical:!1,animation:{type:Qi,delay:qi},zIndex:2});const gs=fs;var ys=function(t){function e(e,o){t.call(this),this.options=o,this.color=o.color||T,this.aboveAxis=jt(this.options.aboveAxis,!0),this.value=e}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(){this._rendered||(this._rendered=!0,this.createLabel(),this.createNote(),this.errorBar&&this.append(this.errorBar))},e.prototype.createLabel=function(){var t=this.options,e=t.labels;if(e.visible){var o,i=this.pointData(),r=it(e);o=r?r(i):this.formatValue(e.format),this.label=new gs(o,Y({vertical:t.vertical},e),i),this.append(this.label)}},e.prototype.formatValue=function(t){return this.owner.formatPointValue(this,t)},e.prototype.reflow=function(t){this.render();var e=this.label;if(this.box=t,e&&(e.options.aboveAxis=this.aboveAxis,e.reflow(t)),this.note&&this.note.reflow(t),this.errorBars)for(var o=0;o<this.errorBars.length;o++)this.errorBars[o].reflow(t)},e.prototype.createVisual=function(){var e=this,o=this.box,i=this.options,r=i.visual;if(!1!==this.visible)if(t.prototype.createVisual.call(this),r){var n=this.rectVisual=r({category:this.category,dataItem:this.dataItem,value:this.value,sender:this.getSender(),series:this.series,percentage:this.percentage,stackValue:this.stackValue,runningTotal:this.runningTotal,total:this.total,rect:o.toRect(),createVisual:function(){var t=new D.drawing.Group;return e.createRect(t),t},options:i});n&&this.visual.append(n)}else o.width()>0&&o.height()>0&&this.createRect(this.visual)},e.prototype.createRect=function(t){var e=this.options,o=e.border,i=Ct(o.opacity)?o.opacity:e.opacity,r=this.box.toRect();r.size.width=Math.round(r.size.width);var n=this.rectVisual=D.drawing.Path.fromRect(r,{fill:{color:this.color,opacity:e.opacity},stroke:{color:this.getBorderColor(),width:o.width,opacity:i,dashType:o.dashType}}),s=this.box.width(),a=this.box.height();if((e.vertical?s:a)>6&&(z(n),(s<1||a<1)&&(n.options.stroke.lineJoin="round")),t.append(n),Pn(e)){var p=this.createGradientOverlay(n,{baseColor:this.color},Y({end:e.vertical?void 0:[0,1]},e.overlay));t.append(p)}},e.prototype.createHighlight=function(t){return z(D.drawing.Path.fromRect(this.box.toRect(),t))},e.prototype.highlightVisual=function(){return this.rectVisual},e.prototype.highlightVisualArgs=function(){return{options:this.options,rect:this.box.toRect(),visual:this.rectVisual}},e.prototype.getBorderColor=function(){var t=this.color,e=this.options.border,o=e._brightness||Zi,i=e.color;return Ct(i)||(i=new D.Color(t).brightness(o).toHex()),i},e.prototype.tooltipAnchor=function(){var t,e,o=this,i=o.options,r=o.box,n=o.aboveAxis,a=this.owner.pane.clipBox()||r,p=m,l=P;if(i.vertical)t=Math.min(r.x2,a.x2)+5,n?e=Math.max(r.y1,a.y1):(e=Math.min(r.y2,a.y2),l=s);else{var c=Math.max(r.x1,a.x1),h=Math.min(r.x2,a.x2);i.isStacked?(l=s,n?(p=k,t=h):t=c,e=Math.max(r.y1,a.y1)-5):(n?t=h+5:(t=c-5,p=k),e=Math.max(r.y1,a.y1))}return{point:new ce(t,e),align:{horizontal:p,vertical:l}}},e.prototype.overlapsBox=function(t){return this.box.overlaps(t)},e.prototype.pointData=function(){return{dataItem:this.dataItem,category:this.category,value:this.value,percentage:this.percentage,stackValue:this.stackValue,runningTotal:this.runningTotal,total:this.total,series:this.series}},e}(we);Y(ys.prototype,zn),Y(ys.prototype,Vn),ys.prototype.defaults={border:{width:1},vertical:!0,overlay:{gradient:"glass"},labels:{visible:!1,format:"{0}"},opacity:1,notes:{label:{}}};const vs=ys;function ms(t,e){t.forEach(e)}function xs(t,e){for(var o=t.length,i=o-1;i>=0;i--)e(t[i],i-o-1)}var bs=function(t){function e(e){t.call(this,e),this.forEach=e.rtl?xs:ms}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflow=function(t){var e=this.options,o=e.vertical,i=e.gap,r=e.spacing,n=this.children,s=n.length,a=o?I:E,p=s+i+r*(s-1),l=(o?t.height():t.width())/p,c=t[a+1]+l*(i/2);this.forEach(n,(function(e,o){var i=(e.box||t).clone();i[a+1]=c,i[a+2]=c+l,e.reflow(i),o<s-1&&(c+=l*r),c+=l}))},e}(we);Vt(bs,{vertical:!1,gap:0,spacing:0});const _s=bs;var ws=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflow=function(t){for(var e=this.options.vertical?E:I,o=this.children,i=o.length,r=this.box=new de,n=0;n<i;n++){var s=o[n];if(!1!==s.visible){var a=s.box.clone();a.snapTo(t,e),0===n&&(r=this.box=a.clone()),s.reflow(a),r.wrap(a)}}},e}(we);Vt(ws,{vertical:!0});const Cs=ws;var ks=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(){t.prototype.render.call(this),this.updateStackRange()},e.prototype.pointType=function(){return vs},e.prototype.clusterType=function(){return _s},e.prototype.stackType=function(){return Cs},e.prototype.stackLimits=function(e,o){return t.prototype.stackLimits.call(this,e,o)},e.prototype.createPoint=function(t,e){var o=e.categoryIx,i=e.series,r=e.seriesIx,n=this.options,s=this.children,a=n.isStacked,p=this.pointValue(t),l=this.pointOptions(i,r),c=l.labels;a&&c.position===ln&&(c.position=pn),l.isStacked=a;var h=t.fields.color||i.color;p<0&&l.negativeColor&&(h=l.negativeColor),l=this.evalPointOptions(l,p,e),U(i.color)&&(h=l.color);var u=new(this.pointType())(p,l);u.color=h;var d=s[o];return d||(d=new(this.clusterType())({vertical:n.invertAxes,gap:n.gap,spacing:n.spacing,rtl:!n.invertAxes&&(this.chartService||{}).rtl}),this.append(d)),a?this.getStackWrap(i,d).append(u):d.append(u),u},e.prototype.getStackWrap=function(t,e){var o,i=t.stack,r=i&&i.group||i,n=e.children;if(typeof r===S){for(var s=0;s<n.length;s++)if(n[s]._stackGroup===r){o=n[s];break}}else o=n[0];return o||((o=new(this.stackType())({vertical:!this.options.invertAxes}))._stackGroup=r,e.append(o)),o},e.prototype.categorySlot=function(t,e,o){var i=this.options,r=t.getSlot(e),n=o.startValue();if(i.isStacked){var s=o.getSlot(n,n,!0),a=i.invertAxes?E:I;r[a+1]=r[a+2]=s[a+1]}return r},e.prototype.reflowCategories=function(t){for(var e=this.children,o=e.length,i=0;i<o;i++)e[i].reflow(t[i])},e.prototype.createAnimation=function(){this._setAnimationOptions(),t.prototype.createAnimation.call(this),yn(this.options.series)&&this._setChildrenAnimation()},e.prototype._setChildrenAnimation=function(){for(var t=this.points,e=0;e<t.length;e++){var o=t[e],i=o.visual;i&&Ct(i.options.zIndex)&&(o.options.animation=this.options.animation,o.createAnimation())}},e.prototype._setAnimationOptions=function(){var t,e=this.options,o=e.animation||{};if(e.isStacked){var i=this.seriesValueAxis(e.series[0]);t=i.getSlot(i.startValue())}else t=this.categoryAxis.getSlot(0);o.origin=new D.geometry.Point(t.x1,t.y1),o.vertical=!e.invertAxes},e}(jn);Vt(ks,{animation:{type:ar}});const As=ks;var Ss=function(t){function e(e,o){t.call(this,o),this.value=e}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflow=function(t){var e=this,o=e.options,i=e.value,r=e.owner.seriesValueAxis(o),n=r.getSlot(i.open,i.close),s=r.getSlot(i.low,i.high);n.x1=s.x1=t.x1,n.x2=s.x2=t.x2,this.realBody=n;var a=s.center().x,p=[];p.push([[a,s.y1],[a,n.y1]]),p.push([[a,n.y2],[a,s.y2]]),this.lines=p,this.box=s.clone().wrap(n),this._rendered||(this._rendered=!0,this.createNote()),this.reflowNote()},e.prototype.reflowNote=function(){this.note&&this.note.reflow(this.box)},e.prototype.createVisual=function(){t.prototype.createVisual.call(this),this._mainVisual=this.mainVisual(this.options),this.visual.append(this._mainVisual),this.createOverlay()},e.prototype.mainVisual=function(t){var e=new D.drawing.Group;return this.createBody(e,t),this.createLines(e,t),e},e.prototype.createBody=function(t,e){var o=D.drawing.Path.fromRect(this.realBody.toRect(),{fill:{color:this.color,opacity:e.opacity},stroke:null});e.border.width>0&&o.options.set("stroke",{color:this.getBorderColor(),width:e.border.width,dashType:e.border.dashType,opacity:jt(e.border.opacity,e.opacity)}),z(o),t.append(o),Pn(e)&&t.append(this.createGradientOverlay(o,{baseColor:this.color},Y({end:e.vertical?void 0:[0,1]},e.overlay)))},e.prototype.createLines=function(t,e){this.drawLines(t,e,this.lines,e.line)},e.prototype.drawLines=function(t,e,o,i){if(o)for(var r={stroke:{color:i.color||this.color,opacity:jt(i.opacity,e.opacity),width:i.width,dashType:i.dashType,lineCap:"butt"}},n=0;n<o.length;n++){var s=D.drawing.Path.fromPoints(o[n],r);z(s),t.append(s)}},e.prototype.getBorderColor=function(){var t=this.options.border,e=t.color;return Ct(e)||(e=new D.Color(this.color).brightness(t._brightness).toHex()),e},e.prototype.createOverlay=function(){var t=D.drawing.Path.fromRect(this.box.toRect(),{fill:{color:T,opacity:0},stroke:null});this.visual.append(t)},e.prototype.createHighlight=function(){var t=this.options.highlight,e=this.color;this.color=t.color||this.color;var o=this.mainVisual(Y({},this.options,{line:{color:this.getBorderColor()}},t));return this.color=e,o},e.prototype.highlightVisual=function(){return this._mainVisual},e.prototype.highlightVisualArgs=function(){return{options:this.options,rect:this.box.toRect(),visual:this._mainVisual}},e.prototype.tooltipAnchor=function(){var t=this.box,e=this.owner.pane.clipBox()||t;return{point:new ce(t.x2+5,Math.max(t.y1,e.y1)+5),align:{horizontal:m,vertical:P}}},e.prototype.formatValue=function(t){return this.owner.formatPointValue(this,t)},e.prototype.overlapsBox=function(t){return this.box.overlaps(t)},e}(we);Vt(Ss,{vertical:!0,border:{_brightness:.8},line:{width:2},overlay:{gradient:"glass"},tooltip:{format:"<table><tr><th colspan='2'>{4:d}</th></tr><tr><td>Open:</td><td>{0:C}</td></tr><tr><td>High:</td><td>{1:C}</td></tr><tr><td>Low:</td><td>{2:C}</td></tr><tr><td>Close:</td><td>{3:C}</td></tr></table>"},highlight:{opacity:1,border:{width:1,opacity:1},line:{width:1,opacity:1}},notes:{visible:!0,label:{}}}),Y(Ss.prototype,zn),Y(Ss.prototype,Vn);const Ps=Ss;var Os=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflowCategories=function(t){for(var e=this.children,o=e.length,i=0;i<o;i++)e[i].reflow(t[i])},e.prototype.addValue=function(t,e){var o,i=e.categoryIx,r=e.category,n=e.series,s=e.seriesIx,a=this.children,p=this.options,l=t.valueFields,c=mn(this.splitValue(l)),h=n.data[i],u=this.categoryPoints[i];u||(this.categoryPoints[i]=u=[]),c&&(o=this.createPoint(t,e));var d=a[i];d||(d=new _s({vertical:p.invertAxes,gap:p.gap,spacing:p.spacing,rtl:!p.invertAxes&&(this.chartService||{}).rtl}),this.append(d)),o&&(this.updateRange(l,e),d.append(o),o.categoryIx=i,o.category=r,o.series=n,o.seriesIx=s,o.owner=this,o.dataItem=h,o.noteText=t.fields.noteText),this.points.push(o),u.push(o)},e.prototype.pointType=function(){return Ps},e.prototype.createPoint=function(t,e){var o=e.series,i=this.pointType(),r=t.valueFields,n=Y({},o),s=t.fields.color||o.color;n=this.evalPointOptions(n,r,e),o.type!==hr&&o.type!==xr||r.open>r.close&&(s=t.fields.downColor||o.downColor||o.color),U(o.color)&&(s=n.color),n.vertical=!this.options.invertAxes;var a=new i(r,n);return a.color=s,a},e.prototype.splitValue=function(t){return[t.low,t.open,t.close,t.high]},e.prototype.updateRange=function(t,e){var o=e.series.axis,i=this.splitValue(t),r=this.valueAxisRanges[o];r=this.valueAxisRanges[o]=r||{min:x,max:b},r=this.valueAxisRanges[o]={min:Math.min.apply(Math,i.concat([r.min])),max:Math.max.apply(Math,i.concat([r.max]))}},e.prototype.formatPointValue=function(t,e){var o=t.value;return this.chartService.format.auto(e,o.open,o.high,o.low,o.close,t.category)},e.prototype.animationPoints=function(){return this.points},e}(jn);Y(Os.prototype,es);const Ts=Os;var Ms=function(t){function e(e,o){t.call(this,e,o),this.createNote()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflow=function(t){var e,o,i=this,r=i.options,n=i.value,s=i.owner.seriesValueAxis(r);this.boxSlot=o=s.getSlot(n.q1,n.q3),this.realBody=o,this.reflowBoxSlot(t),this.whiskerSlot=e=s.getSlot(n.lower,n.upper),this.reflowWhiskerSlot(t);var a=s.getSlot(n.median);if(n.mean){var p=s.getSlot(n.mean);this.meanPoints=this.calcMeanPoints(t,p)}this.whiskerPoints=this.calcWhiskerPoints(o,e),this.medianPoints=this.calcMedianPoints(t,a),this.box=e.clone().wrap(o),this.reflowNote()},e.prototype.reflowBoxSlot=function(t){this.boxSlot.x1=t.x1,this.boxSlot.x2=t.x2},e.prototype.reflowWhiskerSlot=function(t){this.whiskerSlot.x1=t.x1,this.whiskerSlot.x2=t.x2},e.prototype.calcMeanPoints=function(t,e){return[[[t.x1,e.y1],[t.x2,e.y1]]]},e.prototype.calcWhiskerPoints=function(t,e){var o=e.center().x;return[[[o-5,e.y1],[o+5,e.y1],[o,e.y1],[o,t.y1]],[[o-5,e.y2],[o+5,e.y2],[o,e.y2],[o,t.y2]]]},e.prototype.calcMedianPoints=function(t,e){return[[[t.x1,e.y1],[t.x2,e.y1]]]},e.prototype.renderOutliers=function(t){for(var e=this.value,o=e.outliers||[],i=3*Math.abs(e.q3-e.q1),r=[],n=t.markers||{},s=0;s<o.length;s++){var a=o[s],p=Y({},(n=a<e.q3+i&&a>e.q1-i?t.outliers:t.extremes).border);Ct(p.color)||(Ct(this.color)?p.color=this.color:p.color=new D.Color(n.background).brightness(Zi).toHex());var l=new Se({type:n.type,width:n.size,height:n.size,rotation:n.rotation,background:n.background,border:p,opacity:n.opacity});l.value=a,r.push(l)}return this.reflowOutliers(r),r},e.prototype.reflowOutliers=function(t){for(var e=this,o=this.owner.seriesValueAxis(this.options),i=this.box.center(),r=0;r<t.length;r++){var n=t[r].value,s=o.getSlot(n);e.options.vertical?s.move(i.x):s.move(void 0,i.y),e.box=e.box.wrap(s),t[r].reflow(s)}},e.prototype.mainVisual=function(e){for(var o=t.prototype.mainVisual.call(this,e),i=this.renderOutliers(e),r=0;r<i.length;r++){var n=i[r].getElement();n&&o.append(n)}return o},e.prototype.createLines=function(t,e){this.drawLines(t,e,this.whiskerPoints,e.whiskers),this.drawLines(t,e,this.medianPoints,e.median),this.drawLines(t,e,this.meanPoints,e.mean)},e.prototype.getBorderColor=function(){return(this.options.border||{}).color?this.options.border.color:this.color?this.color:t.prototype.getBorderColor.call(this)},e}(Ps);Vt(Ms,{border:{_brightness:.8},line:{width:2},median:{color:"#f6f6f6"},mean:{width:2,dashType:"dash",color:"#f6f6f6"},overlay:{gradient:"glass"},tooltip:{format:"<table><tr><th colspan='2'>{6:d}</th></tr><tr><td>Lower:</td><td>{0:C}</td></tr><tr><td>Q1:</td><td>{1:C}</td></tr><tr><td>Median:</td><td>{2:C}</td></tr><tr><td>Mean:</td><td>{5:C}</td></tr><tr><td>Q3:</td><td>{3:C}</td></tr><tr><td>Upper:</td><td>{4:C}</td></tr></table>"},highlight:{opacity:1,border:{width:1,opacity:1},line:{width:1,opacity:1}},notes:{visible:!0,label:{}},outliers:{visible:!0,size:8,type:c,background:T,border:{width:2,opacity:1},opacity:0},extremes:{visible:!0,size:8,type:p,background:T,border:{width:2,opacity:1},opacity:0}}),Y(Ms.prototype,zn);const Es=Ms;var Is=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflowBoxSlot=function(t){this.boxSlot.y1=t.y1,this.boxSlot.y2=t.y2},e.prototype.reflowWhiskerSlot=function(t){this.whiskerSlot.y1=t.y1,this.whiskerSlot.y2=t.y2},e.prototype.calcMeanPoints=function(t,e){return[[[e.x1,t.y1],[e.x1,t.y2]]]},e.prototype.calcWhiskerPoints=function(t,e){var o=e.center().y;return[[[e.x1,o-5],[e.x1,o+5],[e.x1,o],[t.x1,o]],[[e.x2,o-5],[e.x2,o+5],[e.x2,o],[t.x2,o]]]},e.prototype.calcMedianPoints=function(t,e){return[[[e.x1,t.y1],[e.x1,t.y2]]]},e}(Es);const Rs=Is;var Bs=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.addValue=function(t,e){var o,i=e.categoryIx,r=e.category,n=e.series,s=e.seriesIx,a=this.children,p=this.options,l=t.valueFields,c=mn(this.splitValue(l)),h=n.data[i],u=this.categoryPoints[i];u||(this.categoryPoints[i]=u=[]),c&&(o=this.createPoint(t,e));var d=a[i];d||(d=new _s({vertical:p.invertAxes,gap:p.gap,spacing:p.spacing,rtl:!p.invertAxes&&(this.chartService||{}).rtl}),this.append(d)),o&&(this.updateRange(l,e),d.append(o),o.categoryIx=i,o.category=r,o.series=n,o.seriesIx=s,o.owner=this,o.dataItem=h),this.points.push(o),u.push(o)},e.prototype.pointType=function(){return this.options.invertAxes?Rs:Es},e.prototype.splitValue=function(t){return[t.lower,t.q1,t.median,t.q3,t.upper]},e.prototype.updateRange=function(t,e){var o=e.series.axis,i=this.valueAxisRanges[o],r=this.splitValue(t).concat(this.filterOutliers(t.outliers));Ct(t.mean)&&(r=r.concat(t.mean)),i=this.valueAxisRanges[o]=i||{min:x,max:b},i=this.valueAxisRanges[o]={min:Math.min.apply(Math,r.concat([i.min])),max:Math.max.apply(Math,r.concat([i.max]))}},e.prototype.formatPointValue=function(t,e){var o=t.value;return this.chartService.format.auto(e,o.lower,o.q1,o.median,o.q3,o.upper,o.mean,t.category)},e.prototype.filterOutliers=function(t){for(var e=(t||[]).length,o=[],i=0;i<e;i++){var r=t[i];Ct(r)&&null!==r&&o.push(r)}return o},e.prototype.supportsPointInactiveOpacity=function(){return!1},e}(Ts);const Ls=Bs;var js=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getAxis=function(){var t=this.chart.seriesAxes(this.series);return this.isVertical?t.y:t.x},e}(dn);const Ds=js;var zs=function(t){function e(e,o){t.call(this,o),this.plotArea=e,this.chartService=e.chartService,this._initFields(),this.render()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._initFields=function(){this.xAxisRanges={},this.yAxisRanges={},this.points=[],this.seriesPoints=[],this.seriesOptions=[],this._evalSeries=[]},e.prototype.render=function(){this.traverseDataPoints(this.addValue.bind(this))},e.prototype.addErrorBar=function(t,e,o){var i,r=t.value[e],n=e+"Value",s=e+"ErrorLow",a=e+"ErrorHigh",p=o.seriesIx,l=o.series,c=t.options.errorBars,h=o[s],u=o[a];H(r)&&(H(h)&&H(u)&&(i={low:h,high:u}),c&&Ct(c[n])&&(this.seriesErrorRanges=this.seriesErrorRanges||{x:[],y:[]},this.seriesErrorRanges[e][p]=this.seriesErrorRanges[e][p]||new Xi(c[n],l,e),i=this.seriesErrorRanges[e][p].getErrorRange(r,c[n])),i&&this.addPointErrorBar(i,t,e))},e.prototype.addPointErrorBar=function(t,e,o){var i=t.low,r=t.high,n=e.series,s=e.options.errorBars,a=o===I,p={};e[o+"Low"]=i,e[o+"High"]=r,e.errorBars=e.errorBars||[];var l=new Ds(i,r,a,this,n,s);e.errorBars.push(l),e.append(l),p[o]=i,this.updateRange(p,n),p[o]=r,this.updateRange(p,n)},e.prototype.addValue=function(t,e){var o,i=t.x,r=t.y,n=e.seriesIx,s=this.options.series[n],a=this.seriesMissingValues(s),p=this.seriesPoints[n],l=t;On(i)&&On(r)||(l=this.createMissingValue(l,a)),l&&((o=this.createPoint(l,e))&&(Object.assign(o,e),this.addErrorBar(o,E,e),this.addErrorBar(o,I,e)),this.updateRange(l,e.series)),this.points.push(o),p.push(o)},e.prototype.seriesMissingValues=function(t){return t.missingValues},e.prototype.createMissingValue=function(){},e.prototype.updateRange=function(t,e){var o=this.chartService.intl,i=e.xAxis,r=e.yAxis,n=t.x,s=t.y,a=this.xAxisRanges[i],p=this.yAxisRanges[r];On(n)&&(a=this.xAxisRanges[i]=a||{min:x,max:b},N(n)&&(n=Uo(o,n)),a.min=Math.min(a.min,n),a.max=Math.max(a.max,n)),On(s)&&(p=this.yAxisRanges[r]=p||{min:x,max:b},N(s)&&(s=Uo(o,s)),p.min=Math.min(p.min,s),p.max=Math.max(p.max,s))},e.prototype.evalPointOptions=function(t,e,o){var i=o.series,r=o.seriesIx,n={defaults:i._defaults,excluded:["data","tooltip","content","template","visual","toggle","_outOfRangeMinPoint","_outOfRangeMaxPoint","drilldownSeriesFactory"]},s=this._evalSeries[r];Ct(s)||(this._evalSeries[r]=s=kn(t,{},n,!0));var a=t;return s&&kn(a=Y({},t),{value:e,series:i,dataItem:o.dataItem},n),a},e.prototype.pointType=function(){return Nn},e.prototype.pointOptions=function(t,e){var o=this.seriesOptions[e];if(!o){var i=this.pointType().prototype.defaults;this.seriesOptions[e]=o=Y({},i,{markers:{opacity:t.opacity},tooltip:{format:this.options.tooltip.format},labels:{format:this.options.labels.format}},t)}return o},e.prototype.createPoint=function(t,e){var o=e.series,i=this.pointOptions(o,e.seriesIx),r=e.color||o.color;i=this.evalPointOptions(i,t,e),U(o.color)&&(r=i.color);var n=new Nn(t,i);return n.color=r,this.append(n),n},e.prototype.seriesAxes=function(t){var e=t.xAxis,o=t.yAxis,i=this.plotArea,r=e?i.namedXAxes[e]:i.axisX,n=o?i.namedYAxes[o]:i.axisY;if(!r)throw new Error("Unable to locate X axis with name "+e);if(!n)throw new Error("Unable to locate Y axis with name "+o);return{x:r,y:n}},e.prototype.reflow=function(t){var e=this,o=this.points,i=!this.options.clip,r=0;this.traverseDataPoints((function(t,n){var s=o[r++],a=e.seriesAxes(n.series),p=a.x.getSlot(t.x,t.x,i),l=a.y.getSlot(t.y,t.y,i);if(s)if(p&&l){var c=e.pointSlot(p,l);s.reflow(c)}else s.visible=!1})),this.box=t},e.prototype.pointSlot=function(t,e){return new de(t.x1,e.y1,t.x2,e.y2)},e.prototype.traverseDataPoints=function(t){for(var e=this.options.series,o=this.seriesPoints,i=0;i<e.length;i++){var r=e[i];o[i]||(o[i]=[]);for(var n=0;n<r.data.length;n++){var s=this.plotArea.bindPoint(r,n),a=s.valueFields,p=s.fields;t(a,Y({pointIx:n,series:r,seriesIx:i,dataItem:r.data[n],owner:this},p))}}},e.prototype.formatPointValue=function(t,e){var o=t.value;return this.chartService.format.auto(e,o.x,o.y)},e.prototype.animationPoints=function(){for(var t=this.points,e=[],o=0;o<t.length;o++)e.push((t[o]||{}).marker);return e},e}(we);Vt(zs,{series:[],tooltip:{format:"{0}, {1}"},labels:{format:"{0}, {1}"},clip:!0}),Y(zs.prototype,es);const Vs=zs;var Hs=function(t){function e(e,o){t.call(this,e,o),this.category=e.category}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createHighlight=function(){var t=this.options.highlight,e=t.border,o=this.options.markers,i=this.box.center(),r=(o.size+o.border.width+e.width)/2,n=new D.drawing.Group,s=new D.drawing.Circle(new D.geometry.Circle([i.x,i.y+r/5+e.width/2],r+e.width/2),{stroke:{color:"none"},fill:this.createGradient({gradient:"bubbleShadow",color:o.background,stops:[{offset:0,color:o.background,opacity:.3},{offset:1,color:o.background,opacity:0}]})}),a=new D.drawing.Circle(new D.geometry.Circle([i.x,i.y],r),{stroke:{color:e.color||new D.Color(o.background).brightness(Zi).toHex(),width:e.width,opacity:e.opacity},fill:{color:o.background,opacity:t.opacity}});return n.append(s,a),n},e}(Nn);Hs.prototype.defaults=Y({},Hs.prototype.defaults,{labels:{position:a},highlight:{opacity:1,border:{color:"#fff",width:2,opacity:1}}}),Hs.prototype.defaults.highlight.zIndex=void 0;const Ns=Hs;var Fs=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._initFields=function(){this._maxSize=b,t.prototype._initFields.call(this)},e.prototype.addValue=function(e,o){null!==e.size&&(e.size>0||e.size<0&&o.series.negativeValues.visible)?(this._maxSize=Math.max(this._maxSize,Math.abs(e.size)),t.prototype.addValue.call(this,e,o)):(this.points.push(null),this.seriesPoints[o.seriesIx].push(null))},e.prototype.reflow=function(e){this.updateBubblesSize(e),t.prototype.reflow.call(this,e)},e.prototype.pointType=function(){return Ns},e.prototype.createPoint=function(t,e){var o=e.series,i=o.data.length,r=e.pointIx*(qi/i),n={delay:r,duration:qi-r,type:lr},s=e.color||o.color;t.size<0&&o.negativeValues.visible&&(s=jt(o.negativeValues.color,s));var a=Y({labels:{animation:{delay:r,duration:qi-r}}},this.pointOptions(o,e.seriesIx),{markers:{type:p,border:o.border,opacity:o.opacity,animation:n}});a=this.evalPointOptions(a,t,e),U(o.color)&&(s=a.color),a.markers.background=s;var l=new Ns(t,a);return l.color=s,this.append(l),l},e.prototype.updateBubblesSize=function(t){for(var e=this.options.series,o=Math.min(t.width(),t.height()),i=0;i<e.length;i++)for(var r=e[i],n=this.seriesPoints[i],s=(r.minSize||Math.max(.02*o,10))/2,a=(r.maxSize||.2*o)/2,p=Math.PI*s*s,l=(Math.PI*a*a-p)/this._maxSize,c=0;c<n.length;c++){var h=n[c];if(h){var u=Math.abs(h.value.size)*l,d=Math.sqrt((p+u)/Math.PI),f=jt(h.options.zIndex,0)+(1-d/a);Y(h.options,{zIndex:f,markers:{size:2*d,zIndex:f},labels:{zIndex:f+1}})}}},e.prototype.formatPointValue=function(t,e){var o=t.value;return this.chartService.format.auto(e,o.x,o.y,o.size,t.category)},e.prototype.createAnimation=function(){},e.prototype.createVisual=function(){},e}(Vs);Vt(Fs,{tooltip:{format:"{3}"},labels:{format:"{3}"}});const Us=Fs;var Gs=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(Se);Y(Gs.prototype,zn);const Ws=Gs;var Xs=function(t){function e(e,o){t.call(this,o),this.aboveAxis=this.options.aboveAxis,this.color=o.color||T,this.value=e}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(){var t=this.options;this._rendered||(this._rendered=!0,Ct(this.value.target)&&(this.target=new Ws({type:t.target.shape,background:t.target.color||this.color,opacity:t.opacity,zIndex:t.zIndex,border:t.target.border,vAlign:P,align:k}),this.target.value=this.value,this.target.dataItem=this.dataItem,this.target.series=this.series,this.append(this.target)),this.createLabel(),this.createNote())},e.prototype.createLabel=function(){var t=this.options.labels;if(t.visible){var e,o=this.pointData(),i=it(t);e=i?i(o):this.formatValue(t.format),this.label=new gs(e,t,o),this.append(this.label)}},e.prototype.reflow=function(t){this.render();var e=this,o=e.options,i=e.target,r=e.owner,n=o.invertAxes,s=r.seriesValueAxis(this.options),a=r.categorySlot(r.categoryAxis,o.categoryIx,s),p=s.getSlot(this.value.target),l=n?p:a,c=n?a:p;if(i){var h=new de(l.x1,c.y1,l.x2,c.y2);i.options.height=n?h.height():o.target.line.width,i.options.width=n?o.target.line.width:h.width(),i.reflow(h)}var u=this.label;u&&(u.options.aboveAxis=this.aboveAxis,u.reflow(t)),this.note&&this.note.reflow(t),this.box=t},e.prototype.createVisual=function(){t.prototype.createVisual.call(this);var e=this.options,o=D.drawing.Path.fromRect(this.box.toRect(),{fill:{color:this.color,opacity:e.opacity},stroke:null});e.border.width>0&&o.options.set("stroke",{color:e.border.color||this.color,width:e.border.width,dashType:e.border.dashType,opacity:jt(e.border.opacity,e.opacity)}),this.bodyVisual=o,z(o),this.visual.append(o)},e.prototype.createAnimation=function(){this.bodyVisual&&(this.animation=D.drawing.Animation.create(this.bodyVisual,this.options.animation))},e.prototype.createHighlight=function(t){return D.drawing.Path.fromRect(this.box.toRect(),t)},e.prototype.highlightVisual=function(){return this.bodyVisual},e.prototype.highlightVisualArgs=function(){return{rect:this.box.toRect(),visual:this.bodyVisual,options:this.options}},e.prototype.formatValue=function(t){return this.owner.formatPointValue(this,t)},e.prototype.pointData=function(){return{dataItem:this.dataItem,category:this.category,value:this.value,series:this.series}},e.prototype.overlapsBox=function(t){return this.box.overlaps(t)},e}(we);Xs.prototype.tooltipAnchor=vs.prototype.tooltipAnchor,Vt(Xs,{border:{width:1},vertical:!1,opacity:1,target:{shape:"",border:{width:0,color:"green"},line:{width:2}},labels:{visible:!1},tooltip:{format:"Current: {0}<br />Target: {1}"},notes:{label:{}}}),Y(Xs.prototype,zn),Y(Xs.prototype,Vn);const Ys=Xs;var qs=function(t){function e(e,o){!function(t){for(var e=t.series,o=0;o<e.length;o++){var i=e[o],r=i.data;!r||R(r[0])||q(r[0])||(i.data=[r])}}(o),t.call(this,e,o)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflowCategories=function(t){for(var e=this.children,o=e.length,i=0;i<o;i++)e[i].reflow(t[i])},e.prototype.plotRange=function(t){var e=t.series,o=this.seriesValueAxis(e),i=this.categoryAxisCrossingValue(o);return[i,t.value.current||i]},e.prototype.createPoint=function(t,e){var o=e.categoryIx,i=e.series,r=this.options,n=this.children,s=t.valueFields,a=Y({vertical:!r.invertAxes,overlay:i.overlay,categoryIx:o,invertAxes:r.invertAxes},i),p=t.fields.color||i.color;a=this.evalPointOptions(a,s,e),U(i.color)&&(p=a.color);var l=new Ys(s,a);l.color=p;var c=n[o];return c||(c=new _s({vertical:r.invertAxes,gap:r.gap,spacing:r.spacing,rtl:!r.invertAxes&&(this.chartService||{}).rtl}),this.append(c)),c.append(l),l},e.prototype.updateRange=function(t,e){var o=t.current,i=t.target,r=e.series.axis,n=this.valueAxisRanges[r];Ct(o)&&!isNaN(o)&&Ct(i&&!isNaN(i))&&((n=this.valueAxisRanges[r]=n||{min:x,max:b}).min=Math.min(n.min,o,i),n.max=Math.max(n.max,o,i))},e.prototype.formatPointValue=function(t,e){return this.chartService.format.auto(e,t.value.current,t.value.target)},e.prototype.pointValue=function(t){return t.valueFields.current},e.prototype.aboveAxis=function(t){return t.value.current>0},e.prototype.createAnimation=function(){var t=this.points;this._setAnimationOptions();for(var e=0;e<t.length;e++){var o=t[e];o.options.animation=this.options.animation,o.createAnimation()}},e}(jn);qs.prototype._setAnimationOptions=As.prototype._setAnimationOptions,Vt(qs,{animation:{type:ar}});const Qs=qs;var Zs=function(t){function e(e,o){t.call(this),this.chartService=e,this.options=Y({},this.options,o)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getStyle=function(t,e){var o=t.background,i=t.border.color;if(e){var r=e.color||e.options.color;o=jt(o,r),i=jt(i,r)}var n=$(t.padding||{},"auto");return{backgroundColor:o,borderColor:i,font:t.font,color:t.color,opacity:t.opacity,borderWidth:Q(t.border.width),paddingTop:Q(n.top),paddingBottom:Q(n.bottom),paddingLeft:Q(n.left),paddingRight:Q(n.right)}},e.prototype.show=function(t,e,o){t.format=e.format;var i=this.getStyle(e,o);t.style=i;var r=new D.Color(i.backgroundColor);Ct(e.color)||r.isDark()||(t.className="k-chart-tooltip-inverse"),this.chartService.notify(rn,t),this.visible=!0},e.prototype.hide=function(){this.chartService&&this.chartService.notify(nn),this.visible=!1},e.prototype.destroy=function(){delete this.chartService},e}(D.Class);Vt(Zs,{border:{width:1},opacity:1});const Ks=Zs;var Js=function(t){function e(e,o,i){t.call(this,e,i),this.crosshair=o,this.formatService=e.format,this.initAxisName()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initAxisName=function(){var t,e=this.crosshair.axis;t=e.plotArea.categoryAxis?e.getCategory?"categoryAxis":"valueAxis":e.options.vertical?"yAxis":"xAxis",this.axisName=t},e.prototype.showAt=function(t){var e=this.crosshair.axis,o=this.options,i=e[o.stickyMode?"getCategory":"getValue"](t),r=i;o.format?r=this.formatService.auto(o.format,i):e.options.type===h&&(r=this.formatService.auto(e.options.labels.dateFormats[e.options.baseUnit],i)),this.show({point:t,anchor:this.getAnchor(),crosshair:this.crosshair,value:r,axisName:this.axisName,axisIndex:this.crosshair.axis.axisIndex},this.options)},e.prototype.hide=function(){this.chartService.notify(nn,{crosshair:this.crosshair,axisName:this.axisName,axisIndex:this.crosshair.axis.axisIndex})},e.prototype.getAnchor=function(){var t,e,o,i=this.crosshair,r=this.options,n=r.position,p=r.padding,l=!i.axis.options.vertical,c=i.line.bbox();return l?(t=a,n===s?(e=P,o=c.bottomLeft().translate(0,p)):(e=s,o=c.topLeft().translate(0,-p))):(e=a,n===m?(t=k,o=c.topLeft().translate(-p,0)):(t=m,o=c.topRight().translate(p,0))),{point:o,align:{horizontal:t,vertical:e}}},e}(Ks);Vt(Js,{padding:10});const $s=Js;var ta=function(t){function e(e,o,i){t.call(this,i),this.axis=o,this.stickyMode=o instanceof Yo;var r=this.options.tooltip;r.visible&&(this.tooltip=new $s(e,this,Y({},r,{stickyMode:this.stickyMode})))}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.showAt=function(t){this.point=t,this.moveLine(),this.line.visible(!0),this.tooltip&&this.tooltip.showAt(t)},e.prototype.hide=function(){this.line.visible(!1),this.tooltip&&this.tooltip.hide()},e.prototype.moveLine=function(){var t,e=this.axis,o=this.point,i=e.options.vertical,r=this.getBox(),n=i?I:E,s=new D.geometry.Point(r.x1,r.y1);if(t=i?new D.geometry.Point(r.x2,r.y1):new D.geometry.Point(r.x1,r.y2),o)if(this.stickyMode){var a=e.getSlot(e.pointCategoryIndex(o));s[n]=t[n]=a.center()[n]}else s[n]=t[n]=o[n];this.box=r,this.line.moveTo(s).lineTo(t)},e.prototype.getBox=function(){for(var t,e=this.axis,o=e.pane.axes,i=o.length,r=e.options.vertical,n=e.lineBox().clone(),s=r?E:I,a=0;a<i;a++){var p=o[a];p.options.vertical!==r&&(t?t.wrap(p.lineBox()):t=p.lineBox().clone())}return n[s+1]=t[s+1],n[s+2]=t[s+2],n},e.prototype.createVisual=function(){t.prototype.createVisual.call(this);var e=this.options;this.line=new D.drawing.Path({stroke:{color:e.color,width:e.width,opacity:e.opacity,dashType:e.dashType},visible:!1}),this.moveLine(),this.visual.append(this.line)},e.prototype.destroy=function(){this.tooltip&&this.tooltip.destroy(),t.prototype.destroy.call(this)},e}(we);Vt(ta,{color:n,width:2,zIndex:-1,tooltip:{visible:!1}});const ea=ta;var oa=function(t){function e(e,o){t.call(this,e),this.pane=o}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.shouldClip=function(){for(var t=this.children,e=t.length,o=0;o<e;o++)if(!0===t[o].options.clip)return!0;return!1},e.prototype._clipBox=function(){return this.pane.chartsBox()},e.prototype.createVisual=function(){if(this.visual=new D.drawing.Group({zIndex:0}),this.shouldClip()){var t=(this.clipBox=this._clipBox()).toRect(),e=D.drawing.Path.fromRect(t);z(e),this.visual.clip(e),this.unclipLabels()}},e.prototype.stackRoot=function(){return this},e.prototype.unclipLabels=function(){for(var t=this.children,e=this.clipBox,o=0;o<t.length;o++)for(var i=t[o].points||{},r=i.length,n=0;n<r;n++){var s=i[n];if(s&&!1!==s.visible&&s.overlapsBox&&s.overlapsBox(e))if(s.unclipElements)s.unclipElements();else{var a=s.label,p=s.note;a&&a.options.visible&&(a.alignToClipBox&&a.alignToClipBox(e),a.options.noclip=!0),p&&p.options.visible&&(p.options.noclip=!0)}}},e.prototype.destroy=function(){t.prototype.destroy.call(this),delete this.parent},e}(we);oa.prototype.isStackRoot=!0;const ia=oa;var ra=function(t){function e(e){t.call(this,e),this.id="pane"+na++,this.createTitle(),this.content=new we,this.chartContainer=new ia({},this),this.append(this.content),this.axes=[],this.charts=[]}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createTitle=function(){var t=this.options.title;q(t)&&(t=Y({},t,{align:t.position,position:P})),this.title=Ue.buildTitle(t,e.prototype.options.title),this.title&&this.append(this.title)},e.prototype.appendAxis=function(t){this.content.append(t),this.axes.push(t),t.pane=this},e.prototype.appendAxisAt=function(t,e){this.content.append(t),this.axes.splice(e,0,t),t.pane=this},e.prototype.appendChart=function(t){this.chartContainer.parent!==this.content&&this.content.append(this.chartContainer),this.charts.push(t),this.chartContainer.append(t),t.pane=this},e.prototype.empty=function(){var t=this.parent;if(t){for(var e=0;e<this.axes.length;e++)t.removeAxis(this.axes[e]);for(var o=0;o<this.charts.length;o++)t.removeChart(this.charts[o])}this.axes=[],this.charts=[],this.content.destroy(),this.content.children=[],this.chartContainer.children=[]},e.prototype.reflow=function(e){var o;Mt(this.children)===this.content&&(o=this.children.pop()),t.prototype.reflow.call(this,e),o&&this.children.push(o),this.title&&(this.contentBox.y1+=this.title.box.height())},e.prototype.visualStyle=function(){var e=t.prototype.visualStyle.call(this);return e.zIndex=-10,e},e.prototype.renderComplete=function(){this.options.visible&&this.createGridLines()},e.prototype.stackRoot=function(){return this},e.prototype.clipRoot=function(){return this},e.prototype.createGridLines=function(){for(var t=this.axes,e=t.concat(this.parent.axes),o=[],i=[],r=0;r<t.length;r++)for(var n=t[r],s=n.options.vertical,a=s?o:i,p=0;p<e.length;p++)if(0===a.length){var l=e[p];s!==l.options.vertical&&_t(a,n.createGridLines(l))}},e.prototype.refresh=function(){this.visual.clear(),this.content.parent=null,this.content.createGradient=this.createGradient.bind(this),this.content.renderVisual(),this.content.parent=this,this.title&&this.visual.append(this.title.visual),this.visual.append(this.content.visual),this.renderComplete(),this.notifyRender()},e.prototype.chartsBox=function(){for(var t=this.axes,e=t.length,o=new de,i=0;i<e;i++){var r=t[i],n=r.options.vertical?I:E,s=r.lineBox();o[n+1]=s[n+1],o[n+2]=s[n+2]}if(0===o.x2)for(var a=this.parent.axes,p=a.length,l=0;l<p;l++){var c=a[l];if(!c.options.vertical){var h=c.lineBox();o.x1=h.x1,o.x2=h.x2}}return o},e.prototype.clipBox=function(){return this.chartContainer.clipBox},e.prototype.notifyRender=function(){var t=this.getService();t&&t.notify("paneRender",{pane:new Li(this),index:this.paneIndex,name:this.options.name})},e}(ke),na=1;ra.prototype.isStackRoot=!0,Vt(ra,{zIndex:-1,shrinkToFit:!0,title:{align:m},visible:!0});const sa=ra;var aa=function(t){function e(e,o,i){t.call(this,o),this.initFields(e,o),this.series=e,this.initSeries(),this.charts=[],this.options.legend=this.options.legend||{},this.options.legend.items=[],this.axes=[],this.crosshairs=[],this.chartService=i,this.originalOptions=o,this.originalSeries=e,this._bindCache=new WeakMap,this.createPanes(),this.render(),this.createCrosshairs()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initFields=function(){},e.prototype.initSeries=function(){for(var t=this.series,e=0;e<t.length;e++)t[e].index=e},e.prototype.bindPoint=function(t,e,o){var i=this._bindCache.get(t);i||(i=[],this._bindCache.set(t,i));var r=i[e];return r||(r=i[e]=Fi.current.bindPoint(t,e,o)),r},e.prototype.createPanes=function(){for(var t=this.options.title||{},e=this.options.paneDefaults,o=this.options.panes||[],i=Math.max(o.length,1),r=[],n=Y({title:{color:t.color}},e),s=0;s<i;s++){var a=Y({},n,o[s]);N(a.title)&&(a.title=Y({text:a.title},n.title));var p=new sa(a);p.paneIndex=s,r.push(p),this.append(p)}this.panes=r},e.prototype.crosshairOptions=function(t){return t.options.crosshair},e.prototype.createCrosshairs=function(t){var e=this;void 0===t&&(t=this.panes);for(var o=0;o<t.length;o++)for(var i=t[o],r=0;r<i.axes.length;r++){var n=i.axes[r],s=e.crosshairOptions(n);if(s&&s.visible){var a=new ea(e.chartService,n,s);e.crosshairs.push(a),i.content.append(a)}}},e.prototype.removeCrosshairs=function(t){for(var e=this.crosshairs,o=t.axes,i=e.length-1;i>=0;i--)for(var r=0;r<o.length;r++)if(e[i].axis===o[r]){e.splice(i,1);break}},e.prototype.hideCrosshairs=function(){for(var t=this.crosshairs,e=0;e<t.length;e++)t[e].hide()},e.prototype.findPane=function(t){for(var e,o=this.panes,i=0;i<o.length;i++)if(o[i].options.name===t){e=o[i];break}return e||o[0]},e.prototype.findPointPane=function(t){for(var e,o=this.panes,i=0;i<o.length;i++)if(o[i].box.containsPoint(t)){e=o[i];break}return e},e.prototype.appendAxis=function(t){this.findPane(t.options.pane).appendAxis(t),this.axes.push(t),t.plotArea=this},e.prototype.removeAxis=function(t){for(var e=[],o=0;o<this.axes.length;o++){var i=this.axes[o];t!==i?e.push(i):i.destroy()}this.axes=e},e.prototype.appendChart=function(t,e){this.charts.push(t),e?e.appendChart(t):this.append(t)},e.prototype.removeChart=function(t){for(var e=[],o=0;o<this.charts.length;o++){var i=this.charts[o];i!==t?e.push(i):i.destroy()}this.charts=e},e.prototype.addToLegend=function(t){for(var e=t.length,o=this.options.legend,i=o.labels||{},r=o.inactiveItems||{},n=r.labels||{},s=[],a=0;a<e;a++){var p=t[a],l=!1!==p.visible;if(!1!==p.visibleInLegend){var c=p.name,h=l?it(i):it(n)||it(i);h&&(c=h({text:On(c)?c:"",series:p}));var u=p._defaults,d=p.color;U(d)&&u&&(d=u.color);var f=void 0,g=void 0;l?(f={},g=d):(f={color:n.color,font:n.font},g=r.markers.color),On(c)&&""!==c&&s.push({text:c,labels:f,markerColor:g,series:p,active:l})}}_t(o.items,s)},e.prototype.groupAxes=function(t){for(var e=[],o=[],i=0;i<t.length;i++)for(var r=t[i].axes,n=0;n<r.length;n++){var s=r[n];s.options.vertical?o.push(s):e.push(s)}return{x:e,y:o,any:e.concat(o)}},e.prototype.groupSeriesByPane=function(){for(var t=this.series,e={},o=0;o<t.length;o++){var i=t[o],r=this.seriesPaneName(i);e[r]?e[r].push(i):e[r]=[i]}return e},e.prototype.filterVisibleSeries=function(t){for(var e=[],o=0;o<t.length;o++){var i=t[o];!1!==i.visible&&e.push(i)}return e},e.prototype.reflow=function(t){var e=this.options.plotArea,o=this.panes,i=$(e.margin);this.box=t.clone().unpad(i),this.reflowPanes(),this.detachLabels(),this.reflowAxes(o),this.reflowCharts(o)},e.prototype.redraw=function(t){var e=[].concat(t);this.initSeries();var o=this.getRoot();o&&o.cleanGradients();for(var i=0;i<e.length;i++)this.removeCrosshairs(e[i]),e[i].empty();this._bindCache=new WeakMap,this.render(e),this.detachLabels(),this.reflowAxes(this.panes),this.reflowCharts(e),this.createCrosshairs(e);for(var r=0;r<e.length;r++)e[r].refresh()},e.prototype.axisCrossingValues=function(t,e){for(var o=t.options,i=[].concat(o.axisCrossingValues||o.axisCrossingValue),r=e.length-i.length,n=i[0]||0,s=0;s<r;s++)i.push(n);return i},e.prototype.alignAxisTo=function(t,e,o,i){var r=t.getSlot(o,o,!0),n=t.options.reverse?2:1,s=e.getSlot(i,i,!0),a=e.options.reverse?2:1,p=t.box.translate(s[E+a]-r[E+n],s[I+a]-r[I+n]);t.pane!==e.pane&&p.translate(0,t.pane.box.y1-e.pane.box.y1),t.reflow(p)},e.prototype.alignAxes=function(t,e){for(var o=this,i=t[0],r=e[0],n=this.axisCrossingValues(i,e),a=this.axisCrossingValues(r,t),p={},c={},h={},u={},d=0;d<e.length;d++){var f=e[d],g=f.pane,y=g.id,v=!1!==f.options.visible,x=ca(t,g)||i,b=n;x!==i&&(b=o.axisCrossingValues(x,e)),o.alignAxisTo(f,x,a[d],b[d]),f.options._overlap||(Bt(f.lineBox().x1)===Bt(x.lineBox().x1)&&(p[y]&&f.reflow(f.box.alignTo(p[y].box,m).translate(-f.options.margin,0)),v&&(p[y]=f)),Bt(f.lineBox().x2)===Bt(x.lineBox().x2)&&(f._mirrored||(f.options.labels.mirror=!f.options.labels.mirror,f._mirrored=!0),o.alignAxisTo(f,x,a[d],b[d]),c[y]&&f.reflow(f.box.alignTo(c[y].box,k).translate(f.options.margin,0)),v&&(c[y]=f)),0!==d&&r.pane===f.pane&&(f.alignTo(r),f.reflow(f.box)))}for(var _=0;_<t.length;_++){var w=t[_],C=w.pane,A=C.id,S=!1!==w.options.visible,O=ca(e,C)||r,T=a;O!==r&&(T=o.axisCrossingValues(O,t)),o.alignAxisTo(w,O,n[_],T[_]),w.options._overlap||(Bt(w.lineBox().y1)===Bt(O.lineBox().y1)&&(w._mirrored||(w.options.labels.mirror=!w.options.labels.mirror,w._mirrored=!0),o.alignAxisTo(w,O,n[_],T[_]),h[A]&&w.reflow(w.box.alignTo(h[A].box,P).translate(0,-w.options.margin)),S&&(h[A]=w)),Bt(w.lineBox().y2,l)===Bt(O.lineBox().y2,l)&&(u[A]&&w.reflow(w.box.alignTo(u[A].box,s).translate(0,w.options.margin)),S&&(u[A]=w)),0!==_&&(w.alignTo(i),w.reflow(w.box)))}},e.prototype.shrinkAxisWidth=function(t){for(var e=this.groupAxes(t).any,o=la(e),i=0,r=0;r<t.length;r++){var n=t[r];n.axes.length>0&&(i=Math.max(i,o.width()-n.contentBox.width()))}if(0!==i)for(var s=0;s<e.length;s++){var a=e[s];a.options.vertical||a.reflow(a.box.shrink(i,0))}},e.prototype.shrinkAxisHeight=function(t){for(var e,o=0;o<t.length;o++){var i=t[o],r=i.axes,n=Math.max(0,la(r).height()-i.contentBox.height());if(0!==n){for(var s=0;s<r.length;s++){var a=r[s];a.options.vertical&&a.reflow(a.box.shrink(0,n))}e=!0}}return e},e.prototype.fitAxes=function(t){for(var e=this.groupAxes(t).any,o=0,i=0;i<t.length;i++){var r=t[i],n=r.axes,s=r.contentBox;if(n.length>0){var a=la(n),p=Math.max(s.y1-a.y1,s.y2-a.y2);o=Math.max(o,s.x1-a.x1);for(var l=0;l<n.length;l++){var c=n[l];c.reflow(c.box.translate(0,p))}}}for(var h=0;h<e.length;h++){var u=e[h];u.reflow(u.box.translate(o,0))}},e.prototype.reflowAxes=function(t){for(var e=this.groupAxes(t),o=0;o<t.length;o++)this.reflowPaneAxes(t[o]);e.x.length>0&&e.y.length>0&&(this.alignAxes(e.x,e.y),this.shrinkAxisWidth(t),this.autoRotateAxisLabels(e),this.alignAxes(e.x,e.y),this.shrinkAxisWidth(t)&&this.alignAxes(e.x,e.y),this.shrinkAxisHeight(t),this.alignAxes(e.x,e.y),this.shrinkAxisHeight(t)&&this.alignAxes(e.x,e.y),this.fitAxes(t))},e.prototype.autoRotateAxisLabels=function(t){for(var e,o=this.panes,i=ha(o),r=0;r<i.length;r++)i[r].autoRotateLabels()&&(e=!0);if(e){for(var n=0;n<o.length;n++)this.reflowPaneAxes(o[n]);t.x.length>0&&t.y.length>0&&(this.alignAxes(t.x,t.y),this.shrinkAxisWidth(o))}},e.prototype.reflowPaneAxes=function(t){var e=t.axes,o=e.length;if(o>0)for(var i=0;i<o;i++)e[i].reflow(t.contentBox)},e.prototype.reflowCharts=function(t){for(var e=this.charts,o=e.length,i=this.box,r=0;r<o;r++){var n=e[r].pane;n&&!ht(n,t)||e[r].reflow(i)}},e.prototype.reflowPanes=function(){for(var t=this.box,e=this.panes,o=e.length,i=t.height(),r=0,n=t.y1,s=0;s<o;s++){var a=e[s],p=a.options.height;if(a.options.width=t.width(),a.options.height){if(p.indexOf&&p.indexOf("%")){var l=parseInt(p,10)/100;a.options.height=l*t.height()}a.reflow(t.clone()),i-=a.options.height}else r++}for(var c=0;c<o;c++){var h=e[c];h.options.height||(h.options.height=i/r)}for(var u=0;u<o;u++){var d=e[u],f=t.clone().move(t.x1,n);d.reflow(f),n+=d.options.height}},e.prototype.backgroundBox=function(){for(var t,e=this.axes,o=e.length,i=0;i<o;i++)for(var r=e[i],n=0;n<o;n++){var s=e[n];if(r.options.vertical!==s.options.vertical){var a=r.lineBox().clone().wrap(s.lineBox());t=t?t.wrap(a):a}}return t||this.box},e.prototype.chartsBoxes=function(){for(var t=this.panes,e=[],o=0;o<t.length;o++)e.push(t[o].chartsBox());return e},e.prototype.addBackgroundPaths=function(t){for(var e=this.chartsBoxes(),o=0;o<e.length;o++)t.paths.push(D.drawing.Path.fromRect(e[o].toRect()))},e.prototype.backgroundContainsPoint=function(t){for(var e=this.chartsBoxes(),o=0;o<e.length;o++)if(e[o].containsPoint(t))return!0},e.prototype.createVisual=function(){t.prototype.createVisual.call(this);var e,o=this.options.plotArea,i=o.opacity,r=o.background,n=o.border;void 0===n&&(n={}),""!==(e=r)&&null!==e&&"none"!==e&&"transparent"!==e&&Ct(e)||(r=T,i=0);var s=this._bgVisual=new D.drawing.MultiPath({fill:{color:r,opacity:i},stroke:{color:n.width?n.color:"",width:n.width,dashType:n.dashType},zIndex:-1});this.addBackgroundPaths(s),this.appendVisual(s)},e.prototype.pointsByCategoryIndex=function(t){var e=this.charts,o=[];if(null!==t)for(var i=0;i<e.length;i++)if("_navigator"!==e[i].pane.options.name){var r=e[i].categoryPoints[t];if(r&&r.length)for(var n=0;n<r.length;n++){var s=r[n];s&&Ct(s.value)&&null!==s.value&&o.push(s)}}return o},e.prototype.pointsBySeriesIndex=function(t){return this.filterPoints((function(e){return e.series.index===t}))},e.prototype.pointsBySeriesName=function(t){return this.filterPoints((function(e){return e.series.name===t}))},e.prototype.filterPoints=function(t){for(var e=this.charts,o=[],i=0;i<e.length;i++)for(var r=e[i].points,n=0;n<r.length;n++){var s=r[n];s&&!1!==s.visible&&t(s)&&o.push(s)}return o},e.prototype.findPoint=function(t){for(var e=this.charts,o=0;o<e.length;o++)for(var i=e[o].points,r=0;r<i.length;r++){var n=i[r];if(n&&!1!==n.visible&&t(n))return n}},e.prototype.paneByPoint=function(t){for(var e=this.panes,o=0;o<e.length;o++){var i=e[o];if(i.box.containsPoint(t))return i}},e.prototype.detachLabels=function(){var t=this.groupAxes(this.panes),e=t.x,o=t.y;this.detachAxisGroupLabels(o,e),this.detachAxisGroupLabels(e,o)},e.prototype.detachAxisGroupLabels=function(t,e){for(var o=0,i=0;i<t.length;i++){var r=t[i],n=r.pane,s=ca(e,n)||e[0],a=i+o,p=this.createLabelAxis(r,a,s);if(p){o++;var l=n.axes.indexOf(r)+o;n.appendAxisAt(p,l)}}},e.prototype.createLabelAxis=function(t,e,o){var i=t.options.labels,r=i.position,n="end"!==r&&"start"!==r,s=i.visible;if(n||!1===s)return null;var a=this.groupAxes(this.panes),p=o.options.vertical?a.x:a.y,l=this.axisCrossingValues(o,p),c="end"===r,h=o.range(),u=c?h.max:h.min;if(Et(l[e],h.min,h.max)-u==0)return null;l.splice(e+1,0,u),o.options.axisCrossingValues=l;var d=t.clone();return t.clear(),d.options.name=void 0,d.options.line.visible=!1,d.options.crosshair=void 0,d.options.notes=void 0,d.options.plotBands=void 0,d},e.prototype.isTrendline=function(t){return t&&ht(t.type,Nr)},e.prototype.trendlineFactory=function(){},e.prototype.createTrendlineSeries=function(){var t=this,e=[];return this.series=this.series.map((function(o){if(!t.isTrendline(o))return o;var i=t.seriesByName(o.for);if(!i)throw new Error('Invalid Configuration: Unable to locate linked series "'+o.for+'" for trendline "'+o.name+'".');var r=Fi.current.valueFields(i),n=Mt(r),s=t.trendlineFactory(Object.assign({},{field:n},o),i);return s&&(!1===i.visible&&(s.visible=!1),s.color===v&&(s.color=i.color),e.push(s)),s})).filter((function(t){return null!==t})),e},e.prototype.seriesByName=function(t){return this.series.find((function(e){return e.name===t}))},e}(we);function pa(t){return!t.pane.axes.some((function(e){return e.options.vertical===t.options.vertical&&e!==t&&!1!==e.options.visible}))}function la(t){for(var e,o=t.length,i=0;i<o;i++){var r=t[i],n=!1!==r.options.visible;if(n||pa(r)){var s=n?r.contentBox():r.lineBox();e?e.wrap(s):e=s.clone()}}return e||new de}function ca(t,e){for(var o=0;o<t.length;o++){var i=t[o];if(i&&i.pane===e)return i}}var ha=function(t){return t.reduce((function(t,e){return t.concat(e.axes)}),[])};Vt(aa,{series:[],plotArea:{margin:{}},background:"",border:{color:n,width:0},paneDefaults:{title:{}},legend:{inactiveItems:{labels:{color:"#919191"},markers:{color:"#919191"}}}});const ua=aa;var da={hover:function(t,e){this._dispatchEvent(t,e,Xr)},click:function(t,e){this._dispatchEvent(t,e,"plotAreaClick")}};const fa=da;function ga(t,e,o){var i=e,r=t;if(t.indexOf(".")>-1){for(var n=t.split(".");n.length>1;)r=n.shift(),Ct(i[r])||(i[r]={}),i=i[r];r=n.shift()}i[r]=o}const ya=function(t){function e(e,o,i){t.call(this);var r=o.canonicalFields(e),n=o.valueFields(e),s=o.sourceFields(e,r),a=this._seriesFields=[],p=i.query(e.type),l=e.aggregate||p;this._series=e,this._binder=o;for(var c=0;c<r.length;c++){var h=r[c],u=void 0;if(q(l))u=l[h];else{if(0!==c&&!ht(h,n))break;u=l}u&&a.push({canonicalName:h,name:s[c],transform:U(u)?u:Vi[u]})}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.aggregatePoints=function(t,e){var o=this._series,i=this._seriesFields,r=this._bindPoints(t||[]),n=r.dataItems[0],s={};if(n&&!H(n)&&!R(n)){var a=function(){};a.prototype=n,s=new a}for(var p=0;p<i.length;p++){var l=i[p],c=this._bindField(r.values,l.canonicalName),h=l.transform(c,o,r.dataItems,e);if(!(null===h||!q(h)||Ct(h.length)||h instanceof Date)){s=h;break}Ct(h)&&ga(l.name,s,h)}return s},e.prototype._bindPoints=function(t){for(var e=this._binder,o=this._series,i=[],r=[],n=0;n<t.length;n++){var s=t[n];i.push(e.bindPoint(o,s)),r.push(o.data[s])}return{values:i,dataItems:r}},e.prototype._bindField=function(t,e){for(var o=[],i=t.length,r=0;r<i;r++){var n,s=t[r],a=s.valueFields;n=Ct(a[e])?a[e]:s.fields[e],o.push(n)}return o},e}(D.Class);var va=function(t){function e(){t.call(this),this._defaults={}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.register=function(t,e){for(var o=0;o<t.length;o++)this._defaults[t[o]]=e},e.prototype.query=function(t){return this._defaults[t]},e}(D.Class);va.current=new va;const ma=va;var xa=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createLabel=function(){var t=this.options.labels,e=Y({},t,t.from),o=Y({},t,t.to);e.visible&&(this.labelFrom=this._createLabel(e),this.append(this.labelFrom)),o.visible&&(this.labelTo=this._createLabel(o),this.append(this.labelTo))},e.prototype._createLabel=function(t){var e,o=it(t),i=this.pointData();return e=o?o(i):this.formatValue(t.format),new gs(e,Y({vertical:this.options.vertical},t),i)},e.prototype.reflow=function(t){this.render();var e=this,o=e.labelFrom,i=e.labelTo,r=e.value;this.box=t,o&&(o.options.aboveAxis=r.from>r.to,o.reflow(t)),i&&(i.options.aboveAxis=r.to>r.from,i.reflow(t)),this.note&&this.note.reflow(t)},e}(vs);xa.prototype.defaults=Y({},xa.prototype.defaults,{labels:{format:"{0} - {1}"},tooltip:{format:"{1}"}});const ba=xa;var _a=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.pointType=function(){return ba},e.prototype.pointValue=function(t){return t.valueFields},e.prototype.formatPointValue=function(t,e){return null===t.value.from&&null===t.value.to?"":this.chartService.format.auto(e,t.value.from,t.value.to)},e.prototype.plotRange=function(t){return t?[t.value.from,t.value.to]:0},e.prototype.updateRange=function(t,e){var o=e.series.axis,i=t.from,r=t.to,n=this.valueAxisRanges[o];null!==t&&H(i)&&H(r)&&((n=this.valueAxisRanges[o]=n||{min:x,max:b}).min=Math.min(n.min,i),n.max=Math.max(n.max,i),n.min=Math.min(n.min,r),n.max=Math.max(n.max,r))},e.prototype.aboveAxis=function(t){var e=t.value;return e.from<e.to},e}(As);_a.prototype.plotLimits=jn.prototype.plotLimits;const wa=_a;var Ca=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.aliasFor=function(){return this.parent},e}(Nn);const ka=Ca;var Aa="auto",Sa=function(t){function e(e,o){t.call(this),this.value=e,this.options=o,this.aboveAxis=jt(this.options.aboveAxis,!0),this.tooltipTracking=!0,this.initLabelsFormat()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(){if(!this._rendered){this._rendered=!0;var t=this.options,e=t.markers,o=t.labels,i=this.value,r=this.fromPoint=new ka(i,Y({},this.options,{labels:o.from,markers:e.from})),n=this.toPoint=new ka(i,Y({},this.options,{labels:o.to,markers:e.to}));this.copyFields(r),this.copyFields(n),this.append(r),this.append(n)}},e.prototype.reflow=function(t){this.render();var e=t.from,o=t.to;this.positionLabels(e,o),this.fromPoint.reflow(e),this.toPoint.reflow(o),this.box=this.fromPoint.markerBox().clone().wrap(this.toPoint.markerBox())},e.prototype.createHighlight=function(){var t=new D.drawing.Group;return t.append(this.fromPoint.createHighlight()),t.append(this.toPoint.createHighlight()),t},e.prototype.highlightVisual=function(){return this.visual},e.prototype.highlightVisualArgs=function(){return{options:this.options,from:this.fromPoint.highlightVisualArgs(),to:this.toPoint.highlightVisualArgs()}},e.prototype.tooltipAnchor=function(){var t=this.owner.pane.clipBox();if(!t||t.overlaps(this.box)){var e,o,i,r=this.box,n=r.center(),p=m;return this.options.vertical?(e=n.x,o=r.y1-5,i=s):(e=r.x2+5,o=n.y,i=a),{point:new ce(e,o),align:{horizontal:p,vertical:i}}}},e.prototype.formatValue=function(t){return this.owner.formatPointValue(this,t)},e.prototype.overlapsBox=function(t){return this.box.overlaps(t)},e.prototype.unclipElements=function(){this.fromPoint.unclipElements(),this.toPoint.unclipElements()},e.prototype.initLabelsFormat=function(){var t=this.options.labels;t.format||(t.from&&t.from.format||(t.from=Object.assign({},t.from,{format:"{0}"})),t.to&&t.to.format||(t.to=Object.assign({},t.to,{format:"{1}"})))},e.prototype.positionLabels=function(t,e){var o,i,r=this.options,n=r.labels,s=r.vertical;n.position===Aa&&(s?e.y1<=t.y1?(i=or,o=ir):(i=ir,o=or):e.x1<=t.x1?(i=m,o=k):(i=k,o=m),n.from&&n.from.position||(this.fromPoint.options.labels.position=o),n.to&&n.to.position||(this.toPoint.options.labels.position=i))},e.prototype.copyFields=function(t){t.dataItem=this.dataItem,t.category=this.category,t.series=this.series,t.color=this.color,t.owner=this.owner},e}(we);Y(Sa.prototype,zn),Y(Sa.prototype,Vn),Sa.prototype.defaults={markers:{visible:!1,background:T,size:8,type:p,border:{width:2},opacity:1},labels:{visible:!1,margin:$(3),padding:$(4),animation:{type:Qi,delay:qi},position:Aa},notes:{label:{}},highlight:{markers:{border:{color:T,width:2}},zIndex:100},tooltip:{format:"{0} - {1}"}};const Pa=Sa;var Oa=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createStrokeSegments=function(){return this.segmentsFromPoints(this.toGeometryPoints(this.toPoints()))},e.prototype.stackSegments=function(){var t=this.fromSegments;return this.fromSegments||(t=this.fromSegments=this.segmentsFromPoints(this.toGeometryPoints(this.fromPoints().reverse()))),t},e.prototype.createStroke=function(t){var e=new D.drawing.Path(t),o=new D.drawing.Path(t);e.segments.push.apply(e.segments,this.strokeSegments()),o.segments.push.apply(o.segments,this.stackSegments()),this.visual.append(e),this.visual.append(o)},e.prototype.hasStackSegment=function(){return!0},e.prototype.fromPoints=function(){return this.linePoints.map((function(t){return t.fromPoint}))},e.prototype.toPoints=function(){return this.linePoints.map((function(t){return t.toPoint}))},e}(ns);const Ta=Oa;var Ma=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createStrokeSegments=function(){return this.createCurveSegments(this.toPoints())},e.prototype.stackSegments=function(){var t=this.fromSegments;return this.fromSegments||(t=this.fromSegments=this.createCurveSegments(this.fromPoints().reverse())),t},e.prototype.createCurveSegments=function(t){return(new Mi).process(this.toGeometryPoints(t))},e}(Ta);const Ea=Ma;var Ia=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createStrokeSegments=function(){return this.segmentsFromPoints(this.calculateStepPoints(this.toPoints()))},e.prototype.stackSegments=function(){var t=this.fromSegments;return this.fromSegments||(t=this.fromSegments=this.segmentsFromPoints(this.calculateStepPoints(this.fromPoints()))).reverse(),t},e}(Ta);Y(Ia.prototype,Xn);const Ra=Ia;var Ba=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(){t.prototype.render.call(this),this.renderSegments()},e.prototype.pointType=function(){return Pa},e.prototype.createPoint=function(t,e){var o=e.series,i=e.seriesIx,r=t.valueFields;if(!On(r.from)&&!On(r.to)){if(this.seriesMissingValues(o)!==tr)return null;r={from:0,to:0}}var n=this.pointOptions(o,i);n=this.evalPointOptions(n,r,e);var s=t.fields.color||o.color;U(o.color)&&(s=n.color);var a=new Pa(r,n);return a.color=s,this.append(a),a},e.prototype.createSegment=function(t,e,o){var i=(e.line||{}).style;return new("smooth"===i?Ea:"step"===i?Ra:Ta)(t,e,o)},e.prototype.plotRange=function(t,e){return t?[t.value.from,t.value.to]:[e,e]},e.prototype.valueSlot=function(t,e){var o=t.getSlot(e[0],e[0],!this.options.clip),i=t.getSlot(e[1],e[1],!this.options.clip);if(o&&i)return{from:o,to:i}},e.prototype.pointSlot=function(t,e){var o,i,r=e.from,n=e.to;return this.options.invertAxes?(o=new de(r.x1,t.y1,r.x2,t.y2),i=new de(n.x1,t.y1,n.x2,t.y2)):(o=new de(t.x1,r.y1,t.x2,r.y2),i=new de(t.x1,n.y1,t.x2,n.y2)),{from:o,to:i}},e.prototype.addValue=function(e,o){var i=e.valueFields;H(i.from)||(i.from=i.to),H(i.to)||(i.to=i.from),t.prototype.addValue.call(this,e,o)},e.prototype.updateRange=function(t,e){if(null!==t&&H(t.from)&&H(t.to)){var o=e.series.axis,i=this.valueAxisRanges[o]=this.valueAxisRanges[o]||{min:x,max:b},r=t.from,n=t.to;i.min=Math.min(i.min,r,n),i.max=Math.max(i.max,r,n)}},e.prototype.formatPointValue=function(t,e){var o=t.value;return this.chartService.format.auto(e,o.from,o.to)},e.prototype.animationPoints=function(){for(var t=this.points,e=[],o=0;o<t.length;o++){var i=t[o];i&&(e.push((i.fromPoint||{}).marker),e.push((i.toPoint||{}).marker))}return e.concat(this._segments)},e}(jn);Y(Ba.prototype,Jn,es);const La=Ba;var ja=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflow=function(t){var e=this,o=e.options,i=e.value,r=e.owner.seriesValueAxis(o),n=[],s=[],a=[],p=r.getSlot(i.low,i.high),l=r.getSlot(i.open,i.open),c=r.getSlot(i.close,i.close);l.x1=c.x1=p.x1=t.x1,l.x2=c.x2=p.x2=t.x2;var h=p.center().x;n.push([l.x1,l.y1]),n.push([h,l.y1]),s.push([h,c.y1]),s.push([c.x2,c.y1]),a.push([h,p.y1]),a.push([h,p.y2]),this.lines=[n,s,a],this.box=p.clone().wrap(l.clone().wrap(c)),this.reflowNote()},e.prototype.createBody=function(){},e}(Ps);const Da=ja;var za=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.pointType=function(){return Da},e}(Ts);const Va=za;var Ha=function(t){function e(e,o,i){t.call(this),this.from=e,this.to=o,this.series=i}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.linePoints=function(){var t=this.from,e=this.from.box,o=this.to.box,i=[];if(t.isVertical){var r=t.aboveAxis?e.y1:e.y2;i.push([e.x1,r],[o.x2,r])}else{var n=t.aboveAxis?e.x2:e.x1;i.push([n,e.y1],[n,o.y2])}return i},e.prototype.createVisual=function(){t.prototype.createVisual.call(this);var e=this.series.line||{},o=D.drawing.Path.fromPoints(this.linePoints(),{stroke:{color:e.color,width:e.width,opacity:e.opacity,dashType:e.dashType}});z(o),this.visual.append(o)},e}(we);Vt(Ha,{animation:{type:Qi,delay:qi}});const Na=Ha;var Fa=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(){t.prototype.render.call(this),this.createSegments()},e.prototype.traverseDataPoints=function(t){for(var e=this.options.series,o=_n(e),i=!this.options.invertAxes,r=0;r<e.length;r++)for(var n=e[r],s=0,a=0,p=0;p<o;p++){var l=Fi.current.bindPoint(n,p),c=l.valueFields.value,h=l.fields.summary,u=s,d=void 0;h?"total"===h.toLowerCase()?(l.valueFields.value=s,u=0,d=s):(l.valueFields.value=a,d=u-a,a=0):H(c)&&(a+=c,d=s+=c),t(l,{category:this.categoryAxis.categoryAt(p),categoryIx:p,series:n,seriesIx:r,total:s,runningTotal:a,from:u,to:d,isVertical:i})}},e.prototype.updateRange=function(e,o){t.prototype.updateRange.call(this,{value:o.to},o)},e.prototype.aboveAxis=function(t){return t.value>=0},e.prototype.plotRange=function(t){return[t.from,t.to]},e.prototype.createSegments=function(){for(var t=this.options.series,e=this.seriesPoints,o=this.segments=[],i=0;i<t.length;i++){var r=t[i],n=e[i];if(n)for(var s=void 0,a=0;a<n.length;a++){var p=n[a];if(p&&s){var l=new Na(s,p,r);o.push(l),this.append(l)}s=p}}},e}(As);const Ua=Fa,Ga=function(t,e,o){var i=t[String(e)];return i?i(o):null},Wa=function(t,e){for(var o,i,r=0,n=0,s=0,a=0,p=0,l=Number.MAX_VALUE,c=Number.MIN_VALUE,h=0;h<t.length;h++){var u=e(t[h]),d=u.xValue,f=u.yValue;isFinite(d)&&null!==d&&isFinite(f)&&null!==f&&(l=Math.min(d,l),c=Math.max(d,c),p++,r+=d,n+=f,s+=Math.pow(d,2),a+=d*f)}return p>0&&(i=(n-(o=(p*a-r*n)/(p*s-Math.pow(r,2)))*r)/p),{slope:o,intercept:i,count:p,xMin:l,xMax:c}};const Xa=function(t,e,o){for(var i=[],r=[],n=Math.max(2,o)-1,s=0,a=0,p=0;p<t.length;p++){var l=e(t[p]),c=l.xValue,h=l.yValue;if(isFinite(h)&&null!==h?(r.push(h),a+=h,s=Math.max(p,s)):r.push(null),p>=n){var u=r.filter((function(t){return null!==t})).length,d=r.shift()||0;if(u>0){var f=a/u;i.push([c,f]),a-=d;continue}}i.push([c,null])}return i.slice(0,s+1)};var Ya={};Ya[Vr]=function(t){var e=t.options,o=t.categoryAxis,i=function(t){var e,o=t.categoryAxis,i=t.options,r=Wa((0,t.seriesValues)(),(e=i.field,function(t){return{xValue:t.categoryIx+1,yValue:t.valueFields[e]}})),n=r.slope,s=r.intercept;if(r.count>0){for(var a=[],p=o.totalRangeIndices(),l=o.currentRangeIndices(),c={min:Math.floor(Math.max(l.min-1,p.min)),max:Math.ceil(Math.min(l.max+2,p.max))},h=c.min;h<c.max;h++)a[h]={category:o.categoryAt(h,!0),value:n*(h+1)+s};return{data:a}}return{data:null}}({seriesValues:t.seriesValues,categoryAxis:o,options:e}),r=i.data;return r?Object.assign({},e,{type:"line",data:r,categoryField:"category",field:"value"}):null},Ya[Hr]=function(t){var e=t.options,o=function(t){var e=t.categoryAxis,o=function(t){var e,o=t.options,i=t.categoryAxis,r=t.seriesValues,n=(o.trendline||{}).period||2,s=i.totalRangeIndices(),a=i.currentRangeIndices(),p={min:Math.floor(Math.max(a.min-n,s.min)),max:Math.ceil(Math.min(a.max+n+2,s.max))};return Xa(r(p),(e=o.field,function(t){return{xValue:t.categoryIx,yValue:t.valueFields[e]}}),n)}(t),i=[];return o.forEach((function(t){var o=t[0],r=t[1];i[o]={category:e.categoryAt(o,!0),value:r}})),i.length>0?{data:i}:{data:null}}(t),i=o.data;return i?Object.assign({},e,{type:"line",data:i,categoryField:"category",field:"value"}):null};const qa=Ya;var Qa=[sr,Ir,Pr,jr],Za=[mr,Lr].concat(Qa),Ka=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initFields=function(t){if(this.namedCategoryAxes={},this.namedValueAxes={},this.valueAxisRangeTracker=new ds,this._seriesPointsCache={},this._currentPointsCache={},t.length>0){this.invertAxes=ht(t[0].type,[ar,cr,Lr,Ir,jr,Or,vr,Rr]);for(var e=0;e<t.length;e++){var o=t[e].stack;if(o&&"100%"===o.type){this.stack100=!0;break}}}},e.prototype.render=function(t){void 0===t&&(t=this.panes),this.series=[].concat(this.originalSeries),this.createCategoryAxes(t),this.aggregateCategories(t),this.createTrendlineSeries(t),this.createCategoryAxesLabels(t),this.createCharts(t),this.createValueAxes(t)},e.prototype.removeAxis=function(e){var o=e.options.name;t.prototype.removeAxis.call(this,e),e instanceof Yo?delete this.namedCategoryAxes[o]:(this.valueAxisRangeTracker.reset(o),delete this.namedValueAxes[o]),e===this.categoryAxis&&delete this.categoryAxis,e===this.valueAxis&&delete this.valueAxis},e.prototype.trendlineFactory=function(t,e){var o=this.seriesCategoryAxis(t),i=this.seriesValues.bind(this,e.index),r=Ga(qa,t.type,{options:t,categoryAxis:o,seriesValues:i});return r?(r.categoryAxis=e.categoryAxis,r.valueAxis=e.valueAxis,this.filterSeries(r,o)):r},e.prototype.trendlineAggregateForecast=function(){return this.series.map((function(t){return(t.trendline||{}).forecast})).filter((function(t){return void 0!==t})).reduce((function(t,e){return{before:Math.max(t.before,e.before||0),after:Math.max(t.after,e.after||0)}}),{before:0,after:0})},e.prototype.seriesValues=function(t,e){var o=[],i=this.srcSeries[t],r=this.seriesCategoryAxis(i);wn(r.options.type,h)&&(this._seriesPointsCache={},this._currentPointsCache={},r.options.dataItems=[],i=this.aggregateSeries(i,r,r.totalRangeIndices()));for(var n=e?e.min:0,s=e?e.max:i.data.length,a=n;a<s;a++){var p=this.bindPoint(i,a);o.push({categoryIx:a,category:p.fields.category,valueFields:p.valueFields})}return o},e.prototype.createCharts=function(t){for(var e=this,o=this.groupSeriesByPane(),i=0;i<t.length;i++){var r=t[i],n=o[r.options.name||"default"]||[];e.addToLegend(n);var s=e.filterVisibleSeries(n);if(s)for(var a=e.groupSeriesByCategoryAxis(s),p=0;p<a.length;p++)e.createChartGroup(a[p],r)}},e.prototype.createChartGroup=function(t,e){this.createAreaChart(An(t,[sr,Ir]),e),this.createRangeAreaChart(An(t,[Pr,jr]),e),this.createBarChart(An(t,[ur,ar]),e),this.createRangeBarChart(An(t,[Tr,Or]),e),this.createBulletChart(An(t,[cr,Br]),e),this.createCandlestickChart(An(t,hr),e),this.createBoxPlotChart(An(t,[pr,Rr]),e),this.createOHLCChart(An(t,xr),e),this.createWaterfallChart(An(t,[Dr,vr]),e),this.createLineChart(An(t,[mr,Lr]),e)},e.prototype.aggregateCategories=function(t){var e=this,o=[].concat(this.series),i=[];this._currentPointsCache={},this._seriesPointsCache=this._seriesPointsCache||{};for(var r=0;r<o.length;r++){var n=o[r];if(!e.isTrendline(n)){var s=e.seriesCategoryAxis(n),a=e.findPane(s.options.pane);n=(wn(s.options.type,h)||n.categoryField)&&ht(a,t)?e.aggregateSeries(n,s,s.currentRangeIndices()):e.filterSeries(n,s)}i.push(n)}this._seriesPointsCache=this._currentPointsCache,this._currentPointsCache=null,this.srcSeries=o,this.series=i},e.prototype.filterSeries=function(t,e){var o=(t.data||{}).length;if(e._seriesMax=Math.max(e._seriesMax||0,o),!Ct(e.options.min)&&!Ct(e.options.max))return t;var i=e.currentRangeIndices(),r=ht(t.type,Za),n=Y({},t);return n.data=(n.data||[]).slice(i.min,i.max+1),r&&Bn(n,i,o,(function(o){return{item:t.data[o],category:e.categoryAt(o,!0),categoryIx:o-i.min}}),(function(e){return Ct(t.data[e])})),n},e.prototype.clearSeriesPointsCache=function(){this._seriesPointsCache={}},e.prototype.seriesSourcePoints=function(t,e){var o=t.index+";"+e.categoriesHash();if(this._seriesPointsCache&&this._seriesPointsCache[o])return this._currentPointsCache[o]=this._seriesPointsCache[o],this._seriesPointsCache[o];var i=e.options,r=i.srcCategories,n=wn(i.type,h),s=t.data,a=n?Sn:Hi,p=[];n||e.mapCategories();for(var l=0;l<s.length;l++){var c;if(c=t.categoryField?a(t.categoryField,s[l],this.chartService.intl):r[l],Ct(c)&&null!==c){var u=e.totalIndex(c);p[u]=p[u]||{items:[],category:c},p[u].items.push(l)}}return this._currentPointsCache[o]=p,p},e.prototype.aggregateSeries=function(t,e,o){if(!t.data.length)return t;for(var i=this.seriesSourcePoints(t,e),r=Y({},t),n=new ya(Y({},t),Fi.current,ma.current),s=r.data=[],a=e.options.dataItems||[],p=function(t){var r=t-o.min,s=i[t];if(s||(s=i[t]={}),s.categoryIx=r,!s.item){var a=e.categoryAt(t,!0);s.category=a,s.item=n.aggregatePoints(s.items,a)}return s},l=o.min;l<=o.max;l++){var c=p(l);s[c.categoryIx]=c.item,c.items&&c.items.length&&(a[c.categoryIx]=c.item)}return ht(r.type,Za)&&Bn(r,o,e.totalCount(),p,(function(t){return i[t]})),e.options.dataItems=a,r},e.prototype.appendChart=function(e,o){var i=e.options.series,r=this.seriesCategoryAxis(i[0]),n=r.options.categories,s=Math.max(0,_n(i)-n.length);if(s>0)for(n=r.options.categories=r.options.categories.slice(0);s--;)n.push("");this.valueAxisRangeTracker.update(e.valueAxisRanges),t.prototype.appendChart.call(this,e,o)},e.prototype.seriesPaneName=function(t){var e=this.options,o=t.axis,i=at([].concat(e.valueAxis),(function(t){return t.name===o}))[0],r=((e.panes||[{}])[0]||{}).name||"default";return(i||{}).pane||r},e.prototype.seriesCategoryAxis=function(t){var e=t.categoryAxis,o=e?this.namedCategoryAxes[e]:this.categoryAxis;if(!o)throw new Error("Unable to locate category axis with name "+e);return o},e.prototype.stackableChartOptions=function(t,e){var o=t.stack;return{isStacked:o,isStacked100:o&&"100%"===o.type,clip:e.options.clip}},e.prototype.groupSeriesByCategoryAxis=function(t){for(var e=[],o={},i=0;i<t.length;i++){var r=t[i].categoryAxis||"$$default$$";o.hasOwnProperty(r)||(o[r]=!0,e.push(r))}for(var n=[],s=0;s<e.length;s++){var a=$a(t,e[s],s);0!==a.length&&n.push(a)}return n},e.prototype.createBarChart=function(t,e){if(0!==t.length){var o=t[0],i=new As(this,Object.assign({series:t,invertAxes:this.invertAxes,gap:o.gap,spacing:o.spacing},this.stackableChartOptions(o,e)));this.appendChart(i,e)}},e.prototype.createRangeBarChart=function(t,e){if(0!==t.length){var o=t[0],i=new wa(this,{series:t,invertAxes:this.invertAxes,gap:o.gap,spacing:o.spacing});this.appendChart(i,e)}},e.prototype.createBulletChart=function(t,e){if(0!==t.length){var o=t[0],i=new Qs(this,{series:t,invertAxes:this.invertAxes,gap:o.gap,spacing:o.spacing,clip:e.options.clip});this.appendChart(i,e)}},e.prototype.createLineChart=function(t,e){if(0!==t.length){var o=t[0],i=new is(this,Object.assign({invertAxes:this.invertAxes,series:t},this.stackableChartOptions(o,e)));this.appendChart(i,e)}},e.prototype.createAreaChart=function(t,e){if(0!==t.length){var o=t[0],i=new hs(this,Object.assign({invertAxes:this.invertAxes,series:t},this.stackableChartOptions(o,e)));this.appendChart(i,e)}},e.prototype.createRangeAreaChart=function(t,e){if(0!==t.length){var o=new La(this,{invertAxes:this.invertAxes,series:t,clip:e.options.clip});this.appendChart(o,e)}},e.prototype.createOHLCChart=function(t,e){if(0!==t.length){var o=t[0],i=new Va(this,{invertAxes:this.invertAxes,gap:o.gap,series:t,spacing:o.spacing,clip:e.options.clip});this.appendChart(i,e)}},e.prototype.createCandlestickChart=function(t,e){if(0!==t.length){var o=t[0],i=new Ts(this,{invertAxes:this.invertAxes,gap:o.gap,series:t,spacing:o.spacing,clip:e.options.clip});this.appendChart(i,e)}},e.prototype.createBoxPlotChart=function(t,e){if(0!==t.length){var o=t[0],i=new Ls(this,{invertAxes:this.invertAxes,gap:o.gap,series:t,spacing:o.spacing,clip:e.options.clip});this.appendChart(i,e)}},e.prototype.createWaterfallChart=function(t,e){if(0!==t.length){var o=t[0],i=new Ua(this,{series:t,invertAxes:this.invertAxes,gap:o.gap,spacing:o.spacing});this.appendChart(i,e)}},e.prototype.axisRequiresRounding=function(t,e){for(var o=An(this.series,zr),i=0;i<this.series.length;i++){var r=this.series[i];if(ht(r.type,Qa)){var n=r.line;n&&n.style===nr&&o.push(r)}}for(var s=0;s<o.length;s++){var a=o[s].categoryAxis||"";if(a===t||!a&&0===e)return!0}},e.prototype.aggregatedAxis=function(t,e){for(var o=this.series,i=0;i<o.length;i++){var r=o[i].categoryAxis||"";if((r===t||!r&&0===e)&&o[i].categoryField)return!0}},e.prototype.createCategoryAxesLabels=function(){for(var t=this.axes,e=0;e<t.length;e++)t[e]instanceof Yo&&t[e].createLabels()},e.prototype.createCategoryAxes=function(t){for(var e=this,o=this.invertAxes,i=[].concat(this.options.categoryAxis),r=[],n=0;n<i.length;n++){var s=i[n];if(ht(e.findPane(s.pane),t)){var a=s.name,p=s.categories;void 0===p&&(p=[]),s=Y({vertical:o,reverse:!o&&e.chartService.rtl,axisCrossingValue:o?x:0},s),Ct(s.justified)||(s.justified=e.isJustified()),e.axisRequiresRounding(a,n)&&(s.justified=!1);var l=void 0;if(Tn(s,p[0])?(s._forecast=e.trendlineAggregateForecast(),l=new oi(s,e.chartService)):l=new Yo(s,e.chartService),i[n].categories=l.options.srcCategories,a){if(e.namedCategoryAxes[a])throw new Error("Category axis with name "+a+" is already defined");e.namedCategoryAxes[a]=l}l.axisIndex=n,r.push(l),e.appendAxis(l)}}var c=this.categoryAxis||r[0];this.categoryAxis=c,o?this.axisY=c:this.axisX=c},e.prototype.isJustified=function(){for(var t=this.series,e=0;e<t.length;e++)if(!ht(t[e].type,Qa))return!1;return!0},e.prototype.createValueAxes=function(t){var e=this,o=this.valueAxisRangeTracker,i=o.query(),r=[].concat(this.options.valueAxis),n=this.invertAxes,s={vertical:!n,reverse:n&&this.chartService.rtl},a=[];this.stack100&&(s.roundToMajorUnit=!1,s.labels={format:"P0"});for(var p=0;p<r.length;p++){var l=r[p];if(ht(e.findPane(l.pane),t)){var c=l.name,h=wn(l.type,sn)?{min:.1,max:1}:{min:0,max:1},u=o.query(c)||i||h;0===p&&u&&i&&(u.min=Math.min(u.min,i.min),u.max=Math.max(u.max,i.max));var d=new(wn(l.type,sn)?yi:li)(u.min,u.max,Y({},s,l),e.chartService);if(c){if(e.namedValueAxes[c])throw new Error("Value axis with name "+c+" is already defined");e.namedValueAxes[c]=d}d.axisIndex=p,a.push(d),e.appendAxis(d)}}var f=this.valueAxis||a[0];this.valueAxis=f,n?this.axisX=f:this.axisY=f},e.prototype._dispatchEvent=function(t,e,o){var i=t._eventCoordinates(e),r=new ce(i.x,i.y),n=this.pointPane(r),s=[],a=[];if(n){for(var p=n.axes,l=0;l<p.length;l++){var c=p[l];c.getValue?vn(a,c.getValue(r)):vn(s,c.getCategory(r))}0===s.length&&vn(s,this.categoryAxis.getCategory(r)),s.length>0&&a.length>0&&t.trigger(o,{element:Ot(e),originalEvent:e,category:Mn(s),value:Mn(a)})}},e.prototype.pointPane=function(t){for(var e=this.panes,o=0;o<e.length;o++){var i=e[o];if(i.contentBox.containsPoint(t))return i}},e.prototype.updateAxisOptions=function(t,e){Ja(this.options,t,e),Ja(this.originalOptions,t,e)},e}(ua);function Ja(t,e,o){Y([].concat(e instanceof Yo?t.categoryAxis:t.valueAxis)[e.axisIndex],o)}function $a(t,e,o){return at(t,(function(t){return 0===o&&!t.categoryAxis||t.categoryAxis===e}))}Vt(Ka,{categoryAxis:{},valueAxis:{}}),Y(Ka.prototype,fa);const tp=Ka;var ep=function(t){function e(){t.call(this),this._points=[]}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.destroy=function(){this._points=[]},e.prototype.show=function(t,e){var o=[].concat(t);this.hide();for(var i=0;i<o.length;i++){var r=o[i];r&&r.toggleHighlight&&r.hasHighlight()&&(this.togglePointHighlight(r,!0,e),this._points.push(r))}},e.prototype.togglePointHighlight=function(t,e,o){var i=(t.options.highlight||{}).toggle;if(i){var r={category:t.category,series:t.series,dataItem:t.dataItem,value:t.value,stackValue:t.stackValue,preventDefault:op,visual:t.highlightVisual(),show:e};i(r),r._defaultPrevented||t.toggleHighlight(e,o)}else t.toggleHighlight(e,o)},e.prototype.hide=function(){for(var t=this._points;t.length;)this.togglePointHighlight(t.pop(),!1)},e.prototype.isHighlighted=function(t){for(var e=this._points,o=0;o<e.length;o++)if(t===e[o])return!0;return!1},e}(D.Class);function op(){this._defaultPrevented=!0}const ip=ep;function rp(t,e){var o=(e||"").toLowerCase(),i=t.event;return"none"===o&&!(i.ctrlKey||i.shiftKey||i.altKey)||i[o+"Key"]}function np(t){for(var e={},o=0;o<t.length;o++){var i=t[o];i.axis.options.name&&(e[i.axis.options.name]={min:i.range.min,max:i.range.max})}return e}var sp=function(t){function e(e,o){t.call(this),this.plotArea=e,this.options=Y({},this.options,o)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.start=function(t){return this._active=rp(t,this.options.key),this._active},e.prototype.move=function(t){if(this._active){var e=this.axisRanges=this._panAxes(t,E).concat(this._panAxes(t,I));if(e.length)return this.axisRanges=e,np(e)}},e.prototype.end=function(){var t=this._active;return this._active=!1,t},e.prototype.pan=function(){var t=this.plotArea,e=this.axisRanges;if(e.length){for(var o=0;o<e.length;o++){var i=e[o];t.updateAxisOptions(i.axis,i.range)}t.redraw(t.panes)}},e.prototype.destroy=function(){delete this.plotArea},e.prototype._panAxes=function(t,e){var o=this.plotArea,i=-t[e].delta,r=(this.options.lock||"").toLowerCase(),n=[];if(0!==i&&(r||"").toLowerCase()!==e)for(var s=o.axes,a=0;a<s.length;a++){var p=s[a];if(e===E&&!p.options.vertical||e===I&&p.options.vertical){var l=p.pan(i);l&&(l.limitRange=!0,n.push({axis:p,range:l}))}}return n},e}(D.Class);sp.prototype.options={key:"none",lock:"none"};const ap=sp;var pp=function(t){function e(e,o){t.call(this),this.chart=e,this.options=Y({},this.options,o),this.createElement()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createElement=function(){var t=this._marquee=document.createElement("div");t.className="k-marquee";var e=document.createElement("div");e.className="k-marquee-color",t.appendChild(e)},e.prototype.removeElement=function(){this._marquee.parentNode&&this._marquee.parentNode.removeChild(this._marquee)},e.prototype.setStyles=function(t){J(this._marquee,t)},e.prototype.start=function(t){if(rp(t,this.options.key)){var e=this.chart,o=e._eventCoordinates(t),i=this._zoomPane=e._plotArea.paneByPoint(o),r=i?i.chartsBox().clone():null;if(i&&r){var n=this._elementOffset();return r.translate(n.left,n.top),this._zoomPaneClipBox=r,document.body.appendChild(this._marquee),this.setStyles({left:t.pageX+1,top:t.pageY+1,width:0,height:0}),!0}}return!1},e.prototype._elementOffset=function(){var t=this.chart.element,e=J(t,["paddingLeft","paddingTop"]),o=e.paddingLeft,i=e.paddingTop,r=At(t);return{left:o+r.left,top:i+r.top}},e.prototype.move=function(t){this._zoomPane&&this.setStyles(this._selectionPosition(t))},e.prototype.end=function(t){if(this._zoomPane){var e=this._elementOffset(),o=this._selectionPosition(t);o.left-=e.left,o.top-=e.top;var i={x:o.left,y:o.top},r={x:o.left+o.width,y:o.top+o.height};return this._updateAxisRanges(i,r),this.removeElement(),delete this._zoomPane,np(this.axisRanges)}},e.prototype.zoom=function(){var t=this.axisRanges;if(t&&t.length){for(var e=this.chart._plotArea,o=0;o<t.length;o++){var i=t[o];e.updateAxisOptions(i.axis,i.range)}e.redraw(e.panes)}},e.prototype.destroy=function(){this.removeElement(),delete this._marquee,delete this.chart},e.prototype._updateAxisRanges=function(t,e){for(var o=(this.options.lock||"").toLowerCase(),i=[],r=this._zoomPane.axes,n=0;n<r.length;n++){var s=r[n],a=s.options.vertical;if((o!==E||a)&&(o!==I||!a)&&Ct(s.axisIndex)){var p=s.pointsRange(t,e);p&&i.push({axis:s,range:p})}}this.axisRanges=i},e.prototype._selectionPosition=function(t){var e=this._zoomPaneClipBox,o={x:t.x.startLocation,y:t.y.startLocation},i=t.x.location,r=t.y.location,n=(this.options.lock||"").toLowerCase(),s=Math.min(o.x,i),a=Math.min(o.y,r),p=Math.abs(o.x-i),l=Math.abs(o.y-r);return n===E&&(s=e.x1,p=e.width()),n===I&&(a=e.y1,l=e.height()),i>e.x2&&(p=e.x2-o.x),i<e.x1&&(p=o.x-e.x1),r>e.y2&&(l=e.y2-o.y),r<e.y1&&(l=o.y-e.y1),{left:Math.max(s,e.x1),top:Math.max(a,e.y1),width:p,height:l}},e}(D.Class);pp.prototype.options={key:"shift",lock:"none"};const lp=pp;var cp=function(t){function e(e,o){t.call(this),this.chart=e,this.options=Y({rate:.3},this.options,o)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.updateRanges=function(t,e){for(var o=(this.options.lock||"").toLowerCase(),i=[],r=this.chart._plotArea.axes,n=0;n<r.length;n++){var s=r[n],a=s.options.vertical;if((o!==E||a)&&(o!==I||!a)&&s.zoomRange){var p=Et(this.options.rate,.01,.9),l=s.zoomRange(-t*p,e);l&&i.push({axis:s,range:l})}}return this.axisRanges=i,np(i)},e.prototype.zoom=function(){var t=this.axisRanges,e=this.chart._plotArea;if(t&&t.length&&e.updateAxisOptions){for(var o=0;o<t.length;o++){var i=t[o];e.updateAxisOptions(i.axis,i.range)}e.redraw(e.panes)}},e.prototype.destroy=function(){delete this.chart},e}(D.Class);const hp=cp;var up=function(t){function e(e,o){t.call(this,e),this.chartService=o}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(){var t=this.children,e=this.options,o=e.vertical;this.visual=new D.drawing.Layout(null,{spacing:o?0:e.spacing,lineSpacing:o?e.spacing:0,orientation:o?"vertical":"horizontal",reverse:e.rtl,alignItems:o?"start":"center"});for(var i=0;i<t.length;i++){var r=t[i];r.reflow(new de),r.renderVisual()}},e.prototype.reflow=function(t){this.visual.rect(t.toRect()),this.visual.reflow();var e=this.visual.clippedBBox();this.box=e?De(e):new de},e.prototype.renderVisual=function(){this.addVisual()},e.prototype.createVisual=function(){},e}(we);const dp=up;var fp=function(t){function e(e){t.call(this,e),this.createContainer(),e.rtl?(this.createLabel(),this.createMarker()):(this.createMarker(),this.createLabel())}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createContainer=function(){this.container=new Re({vertical:!1,wrap:!1,align:a,spacing:this.options.spacing}),this.append(this.container)},e.prototype.createMarker=function(){this.container.append(new Se(this.markerOptions()))},e.prototype.markerOptions=function(){var t=this.options,e=t.markerColor;return Y({},t.markers,{background:e,border:{color:e}})},e.prototype.createLabel=function(){var t=this.options,e=Y({},t.labels);this.container.append(new He(t.text,e))},e.prototype.renderComplete=function(){t.prototype.renderComplete.call(this);var e=this.options.cursor||{},o=this._itemOverlay=D.drawing.Path.fromRect(this.container.box.toRect(),{fill:{color:T,opacity:0},stroke:null,cursor:e.style||e});this.appendVisual(o)},e.prototype.click=function(t,e){var o=this.eventArgs(e);!t.trigger("legendItemClick",o)&&e&&"contextmenu"===e.type&&e.preventDefault()},e.prototype.over=function(t,e){var o=this.eventArgs(e);return t.trigger("legendItemHover",o)||t._legendItemHover(o.seriesIndex,o.pointIndex),!0},e.prototype.out=function(t,e){t._unsetActivePoint(),t.trigger("legendItemLeave",this.eventArgs(e))},e.prototype.eventArgs=function(t){var e=this.options;return{element:Ot(t),text:e.text,series:e.series,seriesIndex:e.series.index,pointIndex:e.pointIndex}},e.prototype.renderVisual=function(){var e=this,o=this.options,i=o.visual;i?(this.visual=i({active:o.active,series:o.series,sender:this.getSender(),pointIndex:o.pointIndex,options:{markers:this.markerOptions(),labels:o.labels},createVisual:function(){e.createVisual(),e.renderChildren(),e.renderComplete();var t=e.visual;return delete e.visual,t}}),this.addVisual()):t.prototype.renderVisual.call(this)},e}(ke);const gp=fp;var yp="horizontal",vp="custom",mp=function(t){function e(e,o){void 0===o&&(o={}),t.call(this,e),this.chartService=o,ht(this.options.position,[P,k,s,m,vp])||(this.options.position=k),this.createContainers(),this.createLegendTitle(e.title),this.createItems()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createContainers=function(){var t=this.options,e=t.position,o=t.align,i=e,r=a;e===vp?i=m:ht(e,[P,s])?(i="start"===o?m:"end"===o?k:a,r=e):o&&("start"===o?r=P:"end"===o&&(r=s)),this.container=new ke({margin:t.margin,padding:t.padding,background:t.background,border:t.border,vAlign:r,align:i,zIndex:t.zIndex,shrinkToFit:!0}),this.hasTitle()?this.itemsContainer=new ke({vAlign:r,align:i,zIndex:t.zIndex,shrinkToFit:!0}):this.itemsContainer=this.container,this.append(this.container)},e.prototype.createItems=function(){var t=this.getService(),e=this.options,o=this.isVertical(),i=new dp({vertical:o,spacing:e.spacing,rtl:t.rtl},t),r=e.items;e.reverse&&(r=r.slice(0).reverse());for(var n=r.length,s=0;s<n;s++){var a=r[s];i.append(new gp(Y({},{markers:e.markers,labels:e.labels,rtl:t.rtl},e.item,a)))}i.render(),this.itemsContainer.append(i)},e.prototype.isVertical=function(){var t=this.options,e=t.orientation,o=t.position;return o===vp&&e!==yp||(Ct(e)?e!==yp:ht(o,[m,k]))},e.prototype.hasItems=function(){return this.container.children[0].children.length>0},e.prototype.reflow=function(t){var e=this.options,o=t.clone();this.hasItems()?(e.position===vp?(this.containerCustomReflow(o),this.box=o):this.containerReflow(o),this.hasTitle()&&this.title.reflow(new de(this.container.box.x1,this.title.box.y1,this.container.box.x2,this.title.box.y2))):this.box=o},e.prototype.containerReflow=function(t){var e=this.options,o=this.container,i=e.position,r=e.width,n=e.height,a=i===P||i===s?E:I,p=this.isVertical(),l=t.clone(),c=t.clone();i!==m&&i!==k||(c.y1=l.y1=0),p&&n?(c.y2=c.y1+n,c.align(l,I,o.options.vAlign)):!p&&r&&(c.x2=c.x1+r,c.align(l,E,o.options.align)),o.reflow(c);var h=(c=o.box).clone();(e.offsetX||e.offsetY)&&(c.translate(e.offsetX,e.offsetY),o.reflow(c)),h[a+1]=t[a+1],h[a+2]=t[a+2],this.box=h},e.prototype.containerCustomReflow=function(t){var e=this.options,o=this.container,i=e.offsetX,r=e.offsetY,n=e.width,s=e.height,a=this.isVertical(),p=t.clone();a&&s?p.y2=p.y1+s:!a&&n&&(p.x2=p.x1+n),o.reflow(p),p=o.box,o.reflow(new de(i,r,i+p.width(),r+p.height()))},e.prototype.renderVisual=function(){this.hasItems()&&t.prototype.renderVisual.call(this)},e.prototype.createLegendTitle=function(t){var e=Y({},{color:n,position:P,align:a},t),o=e.text;if(t&&!1!==t.visible){if(Ct(e)&&e.visible){var i=it(e);i?o=i({text:o}):e.format&&(o=this.chartService.format.auto(e.format,o))}this.title=new He(o,e),this.createTitleLayout(),this.appendTitleLayoutContent()}},e.prototype.createTitleLayout=function(){this.layout=new Re({vertical:!0,wrap:!1}),this.container.append(this.layout)},e.prototype.hasTitle=function(){return Boolean(this.options.title&&!1!==this.options.title.visible)},e.prototype.appendTitleLayoutContent=function(){this.options.title.position===s?(this.layout.append(this.itemsContainer),this.layout.append(this.title)):(this.layout.append(this.title),this.layout.append(this.itemsContainer))},e}(we);Vt(mp,{position:k,items:[],offsetX:0,offsetY:0,margin:$(5),padding:$(5),border:{color:n,width:0},item:{cursor:"pointer",spacing:6},spacing:6,background:"",zIndex:1,markers:{border:{width:0},width:15,height:3,type:"rect",align:m,vAlign:a}});const xp=mp;var bp=function(t){function e(){t.call(this),this._registry=[]}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.register=function(t,e){this._registry.push({type:t,seriesTypes:e})},e.prototype.create=function(t,e,o){for(var i,r=this._registry,n=r[0],s=0;s<r.length;s++){var a=r[s];i=An(t,a.seriesTypes);var p=An(t,Nr);if(i.length-p.length>0){n=a;break}}return new n.type(i,e,o)},e}(D.Class);bp.current=new bp;const _p=bp;function wp(t){var e=document.createElement("div");return t&&(e.className=t),e}function Cp(t){for(var e=t;e&&!pt(e,"k-handle");)e=e.parentNode;return e}var kp=function(t){function e(e,o,i,r){t.call(this);var n=e.element;this.options=Y({},this.options,i),this.chart=e,this.observer=r,this.chartElement=n,this.categoryAxis=o,this._dateAxis=this.categoryAxis instanceof oi,this.initOptions(),this.visible=this.options.visible&&n.offsetHeight,this.visible&&(this.createElements(),this.set(this._index(this.options.from),this._index(this.options.to)),this.bindEvents())}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.onPane=function(t){return this.categoryAxis.pane===t},e.prototype.createElements=function(){var t=this.options,e=this.wrapper=wp("k-selector k-pointer-events-none");J(e,{top:t.offset.top,left:t.offset.left,width:t.width,height:t.height,direction:"ltr"});var o=this.selection=wp("k-selection k-pointer-events-none");this.leftMask=wp("k-mask k-pointer-events-none"),this.rightMask=wp("k-mask k-pointer-events-none"),e.appendChild(this.leftMask),e.appendChild(this.rightMask),e.appendChild(o);var i=this.body=wp("k-selection-bg k-pointer-events-none");o.appendChild(i);var r=this.leftHandle=wp("k-handle k-left-handle k-pointer-events-auto"),n=this.rightHandle=wp("k-handle k-right-handle k-pointer-events-auto");r.appendChild(wp()),n.appendChild(wp()),o.appendChild(r),o.appendChild(n),this.chartElement.appendChild(e);var s=J(o,["borderLeftWidth","borderRightWidth","height"]),a=J(r,"height").height,p=J(n,"height").height;t.selection={border:{left:s.borderLeftWidth,right:s.borderRightWidth}},J(r,{top:(s.height-a)/2}),J(n,{top:(s.height-p)/2}),e.style.cssText=e.style.cssText},e.prototype.bindEvents=function(){var t;!1!==this.options.mousewheel&&(this._mousewheelHandler=this._mousewheel.bind(this),wt(this.chartElement,((t={})[cn]=this._mousewheelHandler,t))),this._domEvents=ao.create(this.chartElement,{stopPropagation:!0,start:this._start.bind(this),move:this._move.bind(this),end:this._end.bind(this),tap:this._tap.bind(this),press:this._press.bind(this),gesturestart:this._gesturestart.bind(this),gesturechange:this._gesturechange.bind(this),gestureend:this._gestureend.bind(this)})},e.prototype.initOptions=function(){var t=this.options,e=this.categoryAxis.pane.chartsBox(),o=this.chart.chartService.intl;this._dateAxis&&Y(t,{min:Uo(o,t.min),max:Uo(o,t.max),from:Uo(o,t.from),to:Uo(o,t.to)});var i=J(this.chartElement,["paddingLeft","paddingTop"]),r=i.paddingLeft,n=i.paddingTop;this.options=Y({},{width:e.width(),height:e.height()+.1,padding:{left:r,top:n},offset:{left:e.x1+r,top:e.y1+n},from:t.min,to:t.max},t)},e.prototype.destroy=function(){var t;this._domEvents&&(this._domEvents.destroy(),delete this._domEvents),clearTimeout(this._mwTimeout),this._state=null,this.wrapper&&(this._mousewheelHandler&&(Lt(this.chartElement,((t={})[cn]=this._mousewheelHandler,t)),this._mousewheelHandler=null),this.chartElement.removeChild(this.wrapper),this.wrapper=null)},e.prototype._rangeEventArgs=function(t){return{axis:this.categoryAxis.options,from:this._value(t.from),to:this._value(t.to)}},e.prototype._pointInPane=function(t,e){var o=this.categoryAxis.pane.box,i=this.chart._toModelCoordinates(t,e);return o.containsPoint(i)},e.prototype._start=function(t){var e=this.options,o=Ot(t);if(!this._state&&o){var i=Pt(t);if(this._pointInPane(i.x,i.y)){var r=Cp(o),n=this.body.getBoundingClientRect(),s=!r&&i.x>=n.x&&i.x<=n.x+n.width&&i.y>=n.y&&i.y<=n.y+n.height;this.chart._unsetActivePoint(),this._state={moveTarget:r,startLocation:t.x?t.x.location:0,inBody:s,range:{from:this._index(e.from),to:this._index(e.to)}};var a=this._rangeEventArgs({from:this._index(e.from),to:this._index(e.to)});this.trigger(tn,a)&&(this._state=null)}}},e.prototype._press=function(t){var e;(e=this._state?this._state.moveTarget:Cp(Ot(t)))&&B(e,"k-handle-active")},e.prototype._move=function(t){if(this._state){var e=this,o=e._state,i=e.options,r=e.categoryAxis,n=o.range,s=o.moveTarget,a=r.options.reverse,p=this._index(i.from),l=this._index(i.to),c=this._index(i.min),h=this._index(i.max),u=o.startLocation-t.x.location,d=n.from,f=n.to,g=n.to-n.from,y=J(this.wrapper,"width").width/(r.categoriesCount()-1),v=Math.round(u/y)*(a?-1:1);if(s||o.inBody){var m=s&&pt(s,"k-left-handle"),x=s&&pt(s,"k-right-handle");o.inBody?(n.from=Math.min(Math.max(c,p-v),h-g),n.to=Math.min(n.from+g,h)):m&&!a||x&&a?(n.from=Math.min(Math.max(c,p-v),h-1),n.to=Math.max(n.from+1,n.to)):(m&&a||x&&!a)&&(n.to=Math.min(Math.max(c+1,l-v),h),n.from=Math.min(n.to-1,n.from)),n.from===d&&n.to===f||(this.move(n.from,n.to),this.trigger(en,this._rangeEventArgs(n)))}}},e.prototype._end=function(){if(this._state){var t=this._state.moveTarget;t&&j(t,"k-handle-active");var e=this._state.range;this.set(e.from,e.to),this.trigger(on,this._rangeEventArgs(e)),delete this._state}},e.prototype._tap=function(t){var e=this.options,o=this.categoryAxis,i=this.chart._eventCoordinates(t),r=o.pointCategoryIndex(new ce(i.x,o.box.y1)),n=this._index(e.from),s=this._index(e.to),a=this._index(e.min),p=this._index(e.max),l=s-n,c=n+l/2,h={},u=3===t.event.which,d=Math.round(c-r);this._state||u||(this.chart._unsetActivePoint(),o.options.justified||d--,h.from=Math.min(Math.max(a,n-d),p-l),h.to=Math.min(h.from+l,p),this._start(t),this._state&&(this._state.range=h,this.trigger(en,this._rangeEventArgs(h)),this._end()))},e.prototype._mousewheel=function(t){var e=this,o=xt(t);if(this._start(t),this._state){var i=this._state.range;t.preventDefault(),t.stopPropagation(),Math.abs(o)>1&&(o*=3),this.options.mousewheel.reverse&&(o*=-1),this.expand(o)&&this.trigger(en,{axis:this.categoryAxis.options,delta:o,originalEvent:t,from:this._value(i.from),to:this._value(i.to)}),this._mwTimeout&&clearTimeout(this._mwTimeout),this._mwTimeout=setTimeout((function(){e._end()}),150)}},e.prototype._gesturestart=function(t){var e=this.options,o=t.touches[0];if(this._pointInPane(o.pageX,o.pageY)){this._state={range:{from:this._index(e.from),to:this._index(e.to)}};var i=this._rangeEventArgs(this._state.range);this.trigger(tn,i)?this._state=null:t.preventDefault()}},e.prototype._gestureend=function(){this._state&&(this.trigger(on,this._rangeEventArgs(this._state.range)),delete this._state)},e.prototype._gesturechange=function(t){if(this._state){var e=this,o=e.chart,i=e._state,r=e.options,n=e.categoryAxis,s=i.range,a=o._toModelCoordinates(t.touches[0].x.location).x,p=o._toModelCoordinates(t.touches[1].x.location).x,l=Math.min(a,p),c=Math.max(a,p);t.preventDefault(),s.from=n.pointCategoryIndex(new ce(l))||r.min,s.to=n.pointCategoryIndex(new ce(c))||r.max,this.move(s.from,s.to),this.trigger(en,this._rangeEventArgs(s))}},e.prototype._index=function(t){var e=t;return t instanceof Date&&(e=this.categoryAxis.categoryIndex(t)),e},e.prototype._value=function(t){var e=t;return this._dateAxis&&(e=this.categoryAxis.categoryAt(t))>this.options.max&&(e=this.options.max),e},e.prototype._slot=function(t){var e=this.categoryAxis,o=this._index(t);return e.getSlot(o,o,!0)},e.prototype.move=function(t,e){var o=this.options,i=this.categoryAxis.options.reverse,r=o.offset,n=o.padding,s=o.selection.border,a=i?e:t,p=i?t:e,l="x"+(i?2:1),c=this._slot(a),h=Bt(c[l]-r.left+n.left);J(this.leftMask,{width:h}),J(this.selection,{left:h}),c=this._slot(p);var u=Bt(o.width-(c[l]-r.left+n.left));J(this.rightMask,{width:u});var d=o.width-u;d!==o.width&&(d+=s.right),J(this.rightMask,{left:d}),J(this.selection,{width:Math.max(o.width-(h+u)-s.right,0)})},e.prototype.set=function(t,e){var o=this.options,i=this._index(o.min),r=this._index(o.max),n=Et(this._index(t),i,r),s=Et(this._index(e),n+1,r);o.visible&&this.move(n,s),o.from=this._value(n),o.to=this._value(s)},e.prototype.expand=function(t){var e=this.options,o=this._index(e.min),i=this._index(e.max),r=e.mousewheel.zoom,n=this._index(e.from),s=this._index(e.to),a={from:n,to:s},p=Y({},a);if(this._state&&(a=this._state.range),r!==k&&(a.from=Et(Et(n-t,0,s-1),o,i)),r!==m&&(a.to=Et(Et(s+t,a.from+1,i),o,i)),a.from!==p.from||a.to!==p.to)return this.set(a.from,a.to),!0},e.prototype.zoom=function(t,e){var o=this.options,i=this._index(o.min),r=this._index(o.max),n=this._index(o.from),s=this._index(o.to),a={from:n,to:s},p=Y({},a),l=this.categoryAxis.options.reverse,c=E+(l?"2":"1"),h=this.categoryAxis.lineBox(),u=Math.abs(h[c]-e[E]),d=h.width(),f=Bt(u/d,2),g=Bt(f*t),y=Bt((1-f)*t);if(this._state&&(a=this._state.range),a.from=Et(Et(n-g,0,s-1),i,r),a.to=Et(Et(s+y,a.from+1,r),i,r),a.from!==p.from||a.to!==p.to)return this.set(a.from,a.to),!0},e.prototype.trigger=function(t,e){return(this.observer||this.chart).trigger(t,e)},e}(D.Class);Vt(kp,{visible:!0,mousewheel:{zoom:"both"},min:b,max:x});const Ap=kp;var Sp=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.show=function(e){if(e&&e.tooltipAnchor&&(!this._current||this._current!==e)){var o=Y({},this.options,e.options.tooltip),i=e.tooltipAnchor();i?(this._current=e,t.prototype.show.call(this,{point:e,anchor:i},o,e)):this.hide()}},e.prototype.hide=function(){delete this._current,t.prototype.hide.call(this)},e}(Ks);const Pp=Sp;var Op=function(t){function e(e,o){t.call(this,e.chartService,o),this.plotArea=e,this.formatService=e.chartService.format}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.showAt=function(t,e){var o=at(t,(function(t){var e=t.series.tooltip;return!(e&&!1===e.visible)}));if(o.length>0){var i=o[0],r=this.plotArea.categoryAxis.getSlot(i.categoryIx),n=e?this._slotAnchor(e,r):this._defaultAnchor(i,r);this.show({anchor:n,shared:!0,points:t,category:i.category,categoryText:this.formatService.auto(this.options.categoryFormat,i.category),series:this.plotArea.series},this.options)}},e.prototype._slotAnchor=function(t,e){return this.plotArea.categoryAxis.options.vertical||(t.x=e.center().x),{point:t,align:{horizontal:"left",vertical:"center"}}},e.prototype._defaultAnchor=function(t,e){var o=t.owner.pane.chartsBox(),i=this.plotArea.categoryAxis.options.vertical,r=o.center(),n=e.center();return{point:i?new ce(r.x,n.y):new ce(n.x,r.y),align:{horizontal:"center",vertical:"center"}}},e}(Ks);Vt(Op,{categoryFormat:"{0:d}"});const Tp=Op;var Mp=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setup=function(){var t=this.element,e=this.options;if(t.bbox()){this.origin=e.origin;var o=e.vertical?I:E,i=this.fromScale=new D.geometry.Point(1,1);i[o]=Ki,t.transform(D.geometry.transform().scale(i.x,i.y))}else this.abort()},e.prototype.step=function(t){var e=ut(this.fromScale.x,1,t),o=ut(this.fromScale.y,1,t);this.element.transform(D.geometry.transform().scale(e,o,this.origin))},e.prototype.abort=function(){t.prototype.abort.call(this),this.element.transform(null)},e}(D.drawing.Animation);Vt(Mp,{duration:qi}),D.drawing.AnimationFactory.current.register(ar,Mp);var Ep=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setup=function(){var t=this.center=this.element.bbox().center();this.element.transform(D.geometry.transform().scale(Ki,Ki,t))},e.prototype.step=function(t){this.element.transform(D.geometry.transform().scale(t,t,this.center))},e}(D.drawing.Animation);Vt(Ep,{easing:"easeOutElastic"}),D.drawing.AnimationFactory.current.register(lr,Ep);var Ip=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setup=function(){this.fadeTo=this.element.opacity(),this.element.opacity(0)},e.prototype.step=function(t){this.element.opacity(t*this.fadeTo)},e}(D.drawing.Animation);Vt(Ip,{duration:200,easing:"linear"}),D.drawing.AnimationFactory.current.register(Qi,Ip);var Rp=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setup=function(){this.element.transform(D.geometry.transform().scale(Ki,Ki,this.options.center))},e.prototype.step=function(t){this.element.transform(D.geometry.transform().scale(t,t,this.options.center))},e}(D.drawing.Animation);Vt(Rp,{easing:"easeOutElastic",duration:qi}),D.drawing.AnimationFactory.current.register(br,Rp);const Bp=Rp;var Lp=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(){t.prototype.render.call(this),this.renderSegments()},e.prototype.createSegment=function(t,e,o){return new(e.style===rr?Zn:Un)(t,e,o)},e.prototype.animationPoints=function(){return t.prototype.animationPoints.call(this).concat(this._segments)},e.prototype.createMissingValue=function(t,e){if(e===tr){var o={x:t.x,y:t.y};return On(o.x)||(o.x=0),On(o.y)||(o.y=0),o}},e}(Vs);Y(Lp.prototype,Jn);const jp=Lp,Dp=function(t){return function(e){var o=e.valueFields;return{xValue:o.x,yValue:o[t]}}};var zp={};zp[Vr]=function(t){var e=t.options,o=function(t){var e=t.options,o=Wa((0,t.seriesValues)(),Dp(e.field)),i=o.slope,r=o.intercept,n=o.count,s=o.xMin,a=o.xMax;if(n>0){var p=[],l=(e.trendline||{}).forecast;l&&(l.before>0&&(s-=l.before),l.after>0&&(a+=l.after));var c=(e.trendline||{}).samplingInterval,h=jt(c,le(s,a)/10);c<=0&&(h=a-s);for(var u=s;u<=a;u+=h)p.push([u,i*u+r]);return p}return null}({seriesValues:t.seriesValues,options:e});return o?Object.assign({},e,{type:"scatterLine",data:o}):null},zp[Hr]=function(t){var e=t.options,o=function(t){var e=t.options,o=t.seriesValues,i=(e.trendline||{}).period||2,r=Xa(o({before:i,after:i}),Dp(e.field),i);return r.length>0?r:null}(t);return o?Object.assign({},e,{type:"scatterLine",data:o}):null};const Vp=zp;var Hp=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initFields=function(){this.namedXAxes={},this.namedYAxes={},this.xAxisRangeTracker=new ds,this.yAxisRangeTracker=new ds},e.prototype.render=function(t){var e=this;void 0===t&&(t=this.panes),this.series=[].concat(this.originalSeries),this.createTrendlineSeries();for(var o=this.groupSeriesByPane(),i=0;i<t.length;i++){var r=t[i],n=o[r.options.name||"default"]||[];e.addToLegend(n);var s=e.filterVisibleSeries(n);s&&(e.createScatterChart(An(s,Mr),r),e.createScatterLineChart(An(s,Er),r),e.createBubbleChart(An(s,lr),r))}this.createAxes(t)},e.prototype.appendChart=function(e,o){this.xAxisRangeTracker.update(e.xAxisRanges),this.yAxisRangeTracker.update(e.yAxisRanges),t.prototype.appendChart.call(this,e,o)},e.prototype.removeAxis=function(e){var o=e.options.name;t.prototype.removeAxis.call(this,e),e.options.vertical?(this.yAxisRangeTracker.reset(o),delete this.namedYAxes[o]):(this.xAxisRangeTracker.reset(o),delete this.namedXAxes[o]),e===this.axisX&&delete this.axisX,e===this.axisY&&delete this.axisY},e.prototype.seriesPaneName=function(t){var e=this.options,o=t.xAxis,i=at([].concat(e.xAxis),(function(t){return t.name===o}))[0],r=t.yAxis,n=at([].concat(e.yAxis),(function(t){return t.name===r}))[0],s=(e.panes||[{}])[0].name||"default";return(i||{}).pane||(n||{}).pane||s},e.prototype.createScatterChart=function(t,e){t.length>0&&this.appendChart(new Vs(this,{series:t,clip:e.options.clip}),e)},e.prototype.createScatterLineChart=function(t,e){t.length>0&&this.appendChart(new jp(this,{series:t,clip:e.options.clip}),e)},e.prototype.createBubbleChart=function(t,e){t.length>0&&this.appendChart(new Us(this,{series:t,clip:e.options.clip}),e)},e.prototype.createXYAxis=function(t,e,o){for(var i,r=t.name,n=e?this.namedYAxes:this.namedXAxes,s=e?this.yAxisRangeTracker:this.xAxisRangeTracker,a=Y({reverse:!e&&this.chartService.rtl},t,{vertical:e}),p=wn(a.type,sn),l=s.query(),c=p?{min:.1,max:1}:{min:0,max:1},u=s.query(r)||l||c,d=[a.min,a.max],f=this.series,g=0;g<f.length;g++){var y=f[g],v=y[e?"yAxis":"xAxis"];if(v===a.name||0===o&&!v){var m=Fi.current.bindPoint(y,0).valueFields;d.push(m[e?"y":"x"]);break}}0===o&&l&&(u.min=Math.min(u.min,l.min),u.max=Math.max(u.max,l.max));for(var x=0;x<d.length;x++)if(d[x]instanceof Date){i=!0;break}var b=new(wn(a.type,h)||!a.type&&i?hi:p?yi:li)(u.min,u.max,a,this.chartService);if(b.axisIndex=o,r){if(n[r])throw new Error((e?"Y":"X")+" axis with name "+r+" is already defined");n[r]=b}return this.appendAxis(b),b},e.prototype.createAxes=function(t){for(var e=this,o=this.options,i=[].concat(o.xAxis),r=[],n=[].concat(o.yAxis),s=[],a=0;a<i.length;a++)ht(e.findPane(i[a].pane),t)&&r.push(e.createXYAxis(i[a],!1,a));for(var p=0;p<n.length;p++)ht(e.findPane(n[p].pane),t)&&s.push(e.createXYAxis(n[p],!0,p));this.axisX=this.axisX||r[0],this.axisY=this.axisY||s[0]},e.prototype._dispatchEvent=function(t,e,o){for(var i=t._eventCoordinates(e),r=new ce(i.x,i.y),n=this.axes,s=n.length,a=[],p=[],l=0;l<s;l++){var c=n[l],h=c.options.vertical?p:a,u=c.getValue(r);null!==u&&h.push(u)}a.length>0&&p.length>0&&t.trigger(o,{element:Ot(e),originalEvent:e,x:Mn(a),y:Mn(p)})},e.prototype.updateAxisOptions=function(t,e){var o=t.options.vertical,i=this.groupAxes(this.panes),r=(o?i.y:i.x).indexOf(t);Np(this.options,r,o,e),Np(this.originalOptions,r,o,e)},e.prototype.trendlineFactory=function(t,e){var o=this.seriesValues.bind(this,e.index),i=Ga(Vp,t.type,{options:t,seriesValues:o});return i&&(i.xAxis=e.xAxis,i.yAxis=e.yAxis),i},e.prototype.seriesValues=function(t){for(var e=[],o=this.series[t],i=0;i<o.data.length;i++){var r=this.bindPoint(o,i);e.push({pointIx:i,valueFields:r.valueFields})}return e},e}(ua);function Np(t,e,o,i){Y([].concat(o?t.yAxis:t.xAxis)[e],i)}Vt(Hp,{xAxis:{},yAxis:{}}),Y(Hp.prototype,fa);const Fp=Hp;var Up=function(t){function e(e,o,i){t.call(this,i),this.value=e,this.sector=o}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(){var t=this.options.labels,e=this.owner.chartService,o=this.value;if(!this._rendered&&!1!==this.visible){this._rendered=!0;var i=it(t),r=this.pointData();if(i?o=i(r):t.format&&(o=e.format.auto(t.format,o)),t.visible&&(o||0===o)){if(t.position===a||t.position===pn)t.color||(t.color=$t(this.options.color)),t.background||(t.background=this.options.color);else{var n=e.theme.seriesDefaults.labels;t.color=t.color||n.color,t.background=t.background||n.background}this.label=new He(o,Y({},t,{align:a,vAlign:"",animation:{type:Qi,delay:this.animationDelay}}),r),this.append(this.label)}}},e.prototype.reflow=function(t){this.render(),this.box=t,this.reflowLabel()},e.prototype.reflowLabel=function(){var t=this.options.labels,e=this.label,o=this.sector.clone(),i=t.distance,r=o.middle();if(e){var n,s=e.box.height(),p=e.box.width();if(t.position===a)o.radius=Math.abs((o.radius-s)/2)+s,n=o.point(r),e.reflow(new de(n.x,n.y-s/2,n.x,n.y));else if(t.position===pn)o.radius=o.radius-s/2,n=o.point(r),e.reflow(new de(n.x,n.y-s/2,n.x,n.y));else{var l;(n=o.clone().expand(i).point(r)).x>=o.center.x?(l=n.x+p,e.orientation=k):(l=n.x-p,e.orientation=m),e.reflow(new de(l,n.y-s,n.x,n.y))}}},e.prototype.createVisual=function(){var e=this,o=this.sector,i=this.options;if(t.prototype.createVisual.call(this),this.value)if(i.visual){var r=(o.startAngle+180)%360,n=i.visual({category:this.category,dataItem:this.dataItem,value:this.value,series:this.series,percentage:this.percentage,center:new D.geometry.Point(o.center.x,o.center.y),radius:o.radius,innerRadius:o.innerRadius,startAngle:r,endAngle:r+o.angle,options:i,sender:this.getSender(),createVisual:function(){var t=new D.drawing.Group;return e.createSegmentVisual(t),t}});n&&this.visual.append(n)}else this.createSegmentVisual(this.visual)},e.prototype.createSegmentVisual=function(t){var e=this.sector,o=this.options,i=o.border||{},r=i.width>0?{stroke:{color:i.color,width:i.width,opacity:i.opacity,dashType:i.dashType}}:{},n=o.color,s={color:n,opacity:o.opacity},a=this.createSegment(e,Y({fill:s,stroke:{opacity:o.opacity},zIndex:o.zIndex},r));t.append(a),Pn(o)&&t.append(this.createGradientOverlay(a,{baseColor:n,fallbackFill:s},Y({center:[e.center.x,e.center.y],innerRadius:e.innerRadius,radius:e.radius,userSpace:!0},o.overlay)))},e.prototype.createSegment=function(t,e){return e.singleSegment?new D.drawing.Circle(new D.geometry.Circle(new D.geometry.Point(t.center.x,t.center.y),t.radius),e):be.current.createRing(t,e)},e.prototype.createAnimation=function(){var e=this.options,o=this.sector.center;Y(e,{animation:{center:[o.x,o.y],delay:this.animationDelay}}),t.prototype.createAnimation.call(this)},e.prototype.createHighlight=function(t){var e=this.options.highlight||{},o=e.border||{};return this.createSegment(this.sector,Y({},t,{fill:{color:e.color,opacity:e.opacity},stroke:{opacity:o.opacity,width:o.width,color:o.color}}))},e.prototype.highlightVisual=function(){return this.visual.children[0]},e.prototype.highlightVisualArgs=function(){var t=this.sector;return{options:this.options,radius:t.radius,innerRadius:t.innerRadius,center:new D.geometry.Point(t.center.x,t.center.y),startAngle:t.startAngle,endAngle:t.angle+t.startAngle,visual:this.visual}},e.prototype.tooltipAnchor=function(){var t,e,o,i,r=this.sector.clone().expand(5),n=r.middle();return{point:r.point(n),align:(t=n+180,e=Rt(t),o=Bt(Math.sin(e),d),i=Bt(Math.cos(e),d),{horizontal:Math.abs(o)>Wp?a:i<0?k:m,vertical:Math.abs(o)<Gp?a:o<0?s:P})}},e.prototype.formatValue=function(t){return this.owner.formatPointValue(this,t)},e.prototype.pointData=function(){return{dataItem:this.dataItem,category:this.category,value:this.value,series:this.series,percentage:this.percentage}},e}(we),Gp=Bt(Rt(30),d),Wp=Bt(Rt(60),d);Vt(Up,{color:T,overlay:{gradient:"roundedBevel"},border:{width:.5},labels:{visible:!1,distance:35,font:u,margin:$(.5),align:p,zIndex:1,position:ln},animation:{type:br},highlight:{visible:!0,border:{width:1}},visible:!0}),Y(Up.prototype,zn);const Xp=Up,Yp={createLegendItem:function(t,e,o){var i=this.options.legend||{},r=i.labels||{},n=i.inactiveItems||{},s=n.labels||{};if(o&&!1!==o.visibleInLegend){var a,p,l=!1!==o.visible,c=l?it(r):it(s)||it(r),h=o.category;c&&(h=c({text:h,series:o.series,dataItem:o.dataItem,percentage:o.percentage,value:t})),l?(a={},p=e.color):(a={color:s.color,font:s.font},p=(n.markers||{}).color),On(h)&&""!==h&&this.legendItems.push({active:l,pointIndex:o.index,text:h,series:o.series,markerColor:p,labels:a})}}};var qp=function(t){function e(e,o){t.call(this,o),this.plotArea=e,this.chartService=e.chartService,this.points=[],this.legendItems=[],this.render()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(){this.traverseDataPoints(this.addValue.bind(this))},e.prototype.traverseDataPoints=function(t){var e=this.options,o=this.plotArea.options.seriesColors;void 0===o&&(o=[]);for(var i=o.length,r=e.series,n=r.length,s=0;s<n;s++){var p=r[s],l=p.data,c=bn(p),h=c.total,u=c.points,d=c.count,f=360/h,g=void 0;isFinite(f)||(g=360/d);var y=void 0;y=Ct(p.startAngle)?p.startAngle:e.startAngle,s!==n-1&&p.labels.position===ln&&(p.labels.position=a);for(var v=0;v<u.length;v++){var m=u[v];if(m){var x=m.fields,b=m.value,_=m.visible,w=0!==b?g||b*f:0,C=1!==l.length&&Boolean(x.explode);U(p.color)||(p.color=x.color||o[v%i]),t(b,new ye(null,0,0,y,w),{owner:this,category:Ct(x.category)?x.category:"",index:v,series:p,seriesIx:s,dataItem:l[v],percentage:0!==h?b/h:0,explode:C,visibleInLegend:x.visibleInLegend,visible:_,zIndex:n-s,animationDelay:this.animationDelay(v,s,n)}),!1!==_&&(y+=w)}}}},e.prototype.evalSegmentOptions=function(t,e,o){var i=o.series;kn(t,{value:e,series:i,dataItem:o.dataItem,category:o.category,percentage:o.percentage},{defaults:i._defaults,excluded:["data","content","template","visual","toggle"]})},e.prototype.addValue=function(t,e,o){var i=Y({},o.series,{index:o.index});if(this.evalSegmentOptions(i,t,o),this.createLegendItem(t,i,o),!1!==o.visible){var r=new Xp(t,e,i);Object.assign(r,o),this.append(r),this.points.push(r)}},e.prototype.reflow=function(t){var e=this,o=e.options,i=e.points,r=e.seriesConfigs;void 0===r&&(r=[]);var n=i.length,s=t.clone(),a=Math.min(s.width(),s.height()),p=a/2,l=a-.85*a,c=new de(s.x1,s.y1,s.x1+a,s.y1+a),h=c.center(),u=s.center(),d=o.series.length,f=[],g=[],y=jt(o.padding,l);this.targetBox=t,y=y>p-5?p-5:y,c.translate(u.x-h.x,u.y-h.y);for(var v=p-y,m=new ce(v+c.x1+y,v+c.y1+y),x=0;x<n;x++){var b=i[x],_=b.sector,w=b.seriesIx;if(_.radius=v,_.center=m,r.length){var C=r[w];_.innerRadius=C.innerRadius,_.radius=C.radius}w===d-1&&b.explode&&(_.center=_.clone().setRadius(.15*_.radius).point(_.middle())),b.reflow(c);var A=b.label;A&&A.options.position===ln&&w===d-1&&(A.orientation===k?g.push(A):f.push(A))}f.length>0&&(f.sort(this.labelComparator(!0)),this.leftLabelsReflow(f)),g.length>0&&(g.sort(this.labelComparator(!1)),this.rightLabelsReflow(g)),this.box=c},e.prototype.leftLabelsReflow=function(t){var e=this.distanceBetweenLabels(t);this.distributeLabels(e,t)},e.prototype.rightLabelsReflow=function(t){var e=this.distanceBetweenLabels(t);this.distributeLabels(e,t)},e.prototype.distanceBetweenLabels=function(t){var e=Mt(this.points),o=e.sector,i=t.length-1,r=o.radius+e.options.labels.distance,n=[],s=t[0].box,a=Bt(s.y1-(o.center.y-r-s.height()-s.height()/2));n.push(a);for(var p=0;p<i;p++){var l=t[p+1].box;s=t[p].box,a=Bt(l.y1-s.y2),n.push(a)}return a=Bt(o.center.y+r-t[i].box.y2-t[i].box.height()/2),n.push(a),n},e.prototype.distributeLabels=function(t,e){for(var o,i,r,n=t.length,s=0;s<n;s++)for(r=-t[s],o=i=s;r>0&&(o>=0||i<n);)r=this._takeDistance(t,s,--o,r),r=this._takeDistance(t,s,++i,r);this.reflowLabels(t,e)},e.prototype._takeDistance=function(t,e,o,i){var r=i;if(t[o]>0){var n=Math.min(t[o],r);r-=n,t[o]-=n,t[e]+=n}return r},e.prototype.reflowLabels=function(t,e){var o,i=Mt(this.points),r=i.sector,n=i.options.labels,s=e.length,a=n.distance,l=r.center.y-(r.radius+a)-e[0].box.height();t[0]+=2;for(var c=0;c<s;c++){var h=e[c],u=h.box;l+=t[c],o=this.hAlignLabel(u.x2,r.clone().expand(a),l,l+u.height(),h.orientation===k),h.orientation===k?(n.align!==p&&(o=r.radius+r.center.x+a),h.reflow(new de(o+u.width(),l,o,l))):(n.align!==p&&(o=r.center.x-r.radius-a),h.reflow(new de(o-u.width(),l,o,l))),l+=u.height()}},e.prototype.createVisual=function(){var e=this,o=this.options.connectors,i=this.points,r=i.length;t.prototype.createVisual.call(this),this._connectorLines=[];for(var n=0;n<r;n++){var s=i[n],a=s.sector,p=s.label,l=a.middle(),c=(s.options.connectors||{}).color||o.color;if(p){var h=new D.drawing.Path({stroke:{color:c,width:o.width},animation:{type:Qi,delay:s.animationDelay}});if(p.options.position===ln){var u=p.box,d=a.center,f=a.point(l),g=new ce(u.x1,u.center().y),y=void 0,v=void 0,m=void 0;f=a.clone().expand(o.padding).point(l),h.moveTo(f.x,f.y),p.orientation===k?(m=Qp(d,f,g,v=new ce(u.x1-o.padding,u.center().y)),g=new ce(v.x-4,v.y),(m=m||g).x=Math.min(m.x,g.x),e.pointInCircle(m,a.center,a.radius+4)||m.x<a.center.x?(y=a.center.x+a.radius+4,s.options.labels.align!==ur?y<g.x?h.lineTo(y,f.y):h.lineTo(f.x+8,f.y):h.lineTo(y,f.y),h.lineTo(g.x,v.y)):(m.y=v.y,h.lineTo(m.x,m.y))):(m=Qp(d,f,g,v=new ce(u.x2+o.padding,u.center().y)),g=new ce(v.x+4,v.y),(m=m||g).x=Math.max(m.x,g.x),e.pointInCircle(m,a.center,a.radius+4)||m.x>a.center.x?(y=a.center.x-a.radius-4,s.options.labels.align!==ur?y>g.x?h.lineTo(y,f.y):h.lineTo(f.x-8,f.y):h.lineTo(y,f.y),h.lineTo(g.x,v.y)):(m.y=v.y,h.lineTo(m.x,m.y))),h.lineTo(v.x,v.y),e._connectorLines.push(h),e.visual.append(h)}}}},e.prototype.renderVisual=function(){if(t.prototype.renderVisual.call(this),qt(this.options.series,(function(t){return t.autoFit}))){var e=this.targetBox,o=this.box.center(),i=this.visual.bbox();if(!i)return;var r=i.bottomRight(),n=Math.min((o.y-e.y1)/(o.y-i.origin.y),(e.y2-o.y)/(r.y-o.y),(o.x-e.x1)/(o.x-i.origin.x),(e.x2-o.x)/(r.x-o.x));n<1&&this.visual.transform(D.geometry.transform().scale(n,n,[o.x,o.y]))}},e.prototype.labelComparator=function(t){var e=t?-1:1;return function(t,o){return((t.parent.sector.middle()+270)%360-(o.parent.sector.middle()+270)%360)*e}},e.prototype.hAlignLabel=function(t,e,o,i,r){var n=e.radius,s=e.center,a=s.x,p=s.y,l=Math.min(Math.abs(p-o),Math.abs(p-i));return l>n?t:a+Math.sqrt(n*n-l*l)*(r?1:-1)},e.prototype.pointInCircle=function(t,e,o){return Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2)<Math.pow(o,2)},e.prototype.formatPointValue=function(t,e){return this.chartService.format.auto(e,t.value)},e.prototype.animationDelay=function(t){return 70*t},e.prototype.stackRoot=function(){return this},e}(we);function Qp(t,e,o,i){var r,n=(i.x-o.x)*(t.y-o.y)-(i.y-o.y)*(t.x-o.x),s=(i.y-o.y)*(e.x-t.x)-(i.x-o.x)*(e.y-t.y);if(0!==s){var a=n/s;r=new ce(t.x+a*(e.x-t.x),t.y+a*(e.y-t.y))}return r}Vt(qp,{startAngle:90,connectors:{width:2,color:"#939393",padding:8},inactiveItems:{markers:{},labels:{}}}),Y(qp.prototype,Yp),qp.prototype.isStackRoot=!0;const Zp=qp;var Kp=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(){this.createPieChart(this.series)},e.prototype.createPieChart=function(t){var e=t[0],o=new Zp(this,{series:t,padding:e.padding,startAngle:e.startAngle,connectors:e.connectors,legend:this.options.legend});this.appendChart(o)},e.prototype.appendChart=function(e,o){t.prototype.appendChart.call(this,e,o),_t(this.options.legend.items,e.legendItems)},e}(ua);const Jp=Kp;var $p=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflowLabel=function(){var e=this.options.labels,o=this.label,i=this.sector.clone(),r=i.middle();if(o){var n=o.box.height();if(e.position===a){i.radius-=(i.radius-i.innerRadius)/2;var s=i.point(r);o.reflow(new de(s.x,s.y-n/2,s.x,s.y))}else t.prototype.reflowLabel.call(this)}},e.prototype.createSegment=function(t,e){return be.current.createRing(t,e)},e}(Xp);Vt($p,{overlay:{gradient:"roundedGlass"},labels:{position:a},animation:{type:br}}),Y($p.prototype,zn);const tl=$p;var el=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.addValue=function(t,e,o){var i=Y({},o.series,{index:o.index});if(this.evalSegmentOptions(i,t,o),this.createLegendItem(t,i,o),!1!==o.visible){var r=new tl(t,e,i);Object.assign(r,o),this.append(r),this.points.push(r)}},e.prototype.reflow=function(e){for(var o,i=this.options,r=e.clone(),n=Math.min(r.width(),r.height()),s=n/2,a=n-.85*n,p=i.series,l=p.length,c=jt(i.padding,a),h=s-(c=c>s-5?s-5:c),u=0,d=0;d<l;d++){var f=p[d];0===d&&Ct(f.holeSize)&&(o=f.holeSize,h-=f.holeSize),Ct(f.size)?h-=f.size:u++,Ct(f.margin)&&d!==l-1&&(h-=f.margin)}Ct(o)||(h-=o=(s-c)/(l+.75)*.75);var g,y=o,v=0;this.seriesConfigs=[];for(var m=0;m<l;m++){var x=p[m];g=(y+=v)+jt(x.size,h/u),this.seriesConfigs.push({innerRadius:y,radius:g}),v=x.margin||0,y=g}t.prototype.reflow.call(this,e)},e.prototype.animationDelay=function(t,e,o){return 50*t+qi*(e+1)/(o+1)},e}(Zp);Vt(el,{startAngle:90,connectors:{width:2,color:"#939393",padding:8}});const ol=el;var il=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(){this.createDonutChart(this.series)},e.prototype.createDonutChart=function(t){var e=t[0],o=new ol(this,{series:t,padding:e.padding,connectors:e.connectors,legend:this.options.legend});this.appendChart(o)},e}(Jp);const rl=il;var nl=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initFields=function(){this.valueAxisRangeTracker=new ds},e.prototype.render=function(){this.addToLegend(this.series),this.createPolarAxis(),this.createCharts(),this.createValueAxis()},e.prototype.alignAxes=function(){var t=this.valueAxis,e=t.range(),o=t.options.reverse?e.max:e.min,i=t.getSlot(o),r=this.polarAxis.getSlot(0).center,n=t.box.translate(r.x-i.x1,r.y-i.y1);t.reflow(n)},e.prototype.createValueAxis=function(){var t,e,o=this.valueAxisRangeTracker,i=o.query(),r=this.valueAxisOptions({roundToMajorUnit:!1,zIndex:-1});r.type===sn?(t=Oi,e={min:.1,max:1}):(t=Si,e={min:0,max:1});var n=o.query(name)||i||e;n&&i&&(n.min=Math.min(n.min,i.min),n.max=Math.max(n.max,i.max));var s=new t(n.min,n.max,r,this.chartService);this.valueAxis=s,this.appendAxis(s)},e.prototype.reflowAxes=function(){var t=this,e=t.options.plotArea,o=t.valueAxis,i=t.polarAxis,r=t.box,n=.15*Math.min(r.width(),r.height()),s=$(e.padding||{},n),p=r.clone().unpad(s),l=p.clone();l.y2=l.y1+Math.min(l.width(),l.height()),l.align(p,I,a);var c=l.clone().shrink(0,l.height()/2);i.reflow(l),o.reflow(c);var h=o.lineBox().height()-o.box.height();o.reflow(o.box.unpad({top:h})),this.axisBox=l,this.alignAxes(l)},e.prototype.backgroundBox=function(){return this.box},e.prototype.detachLabels=function(){},e}(ua);const sl=nl;var al=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.pointSlot=function(t,e){var o=t.center.y-e.y1,i=ce.onCircle(t.center,t.startAngle,o);return new de(i.x,i.y,i.x,i.y)},e}(Vs);Vt(al,{clip:!1});const pl=al;var ll=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(jp);ll.prototype.pointSlot=pl.prototype.pointSlot,Vt(ll,{clip:!1});const cl=ll;var hl=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.fillToAxes=function(t){var e=this._polarAxisCenter();t.lineTo(e.x,e.y)},e.prototype._polarAxisCenter=function(){return this.parent.plotArea.polarAxis.box.center()},e.prototype.strokeSegments=function(){var t=this._strokeSegments;if(!t){var e=this._polarAxisCenter(),o=new Mi(!1),i=this.points();i.push(e),(t=this._strokeSegments=o.process(i)).pop()}return t},e}(ls);const ul=hl;var dl=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.fillToAxes=function(t){var e=this.parent.plotArea.polarAxis.box.center(),o=new D.geometry.Segment([e.x,e.y]);t.segments.unshift(o),t.segments.push(o)},e}(ns);const fl=dl;var gl=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createSegment=function(t,e,o){return(e.line||{}).style===rr?new ul(t,e,o):new fl(t,e,o)},e.prototype.createMissingValue=function(t,e){var o;return On(t.x)&&e!==er&&(o={x:t.x,y:t.y},e===tr&&(o.y=0)),o},e.prototype.seriesMissingValues=function(t){return t.missingValues||tr},e.prototype._hasMissingValuesGap=function(){for(var t=this.options.series,e=0;e<t.length;e++)if("gap"===this.seriesMissingValues(t[e]))return!0},e.prototype.sortPoints=function(t){if(t.sort(yl),this._hasMissingValuesGap())for(var e=0;e<t.length;e++){var o=t[e];o&&(On(o.value.y)||"gap"!==this.seriesMissingValues(o.series)||delete t[e])}return t},e}(cl);function yl(t,e){return t.value.x-e.value.x}const vl=gl;var ml=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createPolarAxis=function(){var t=new _i(this.options.xAxis,this.chartService);this.polarAxis=t,this.axisX=t,this.appendAxis(t)},e.prototype.render=function(){this.series=[].concat(this.originalSeries),this.createTrendlineSeries(),t.prototype.render.call(this)},e.prototype.valueAxisOptions=function(t){return Y(t,{majorGridLines:{type:r},minorGridLines:{type:r}},this.options.yAxis)},e.prototype.createValueAxis=function(){t.prototype.createValueAxis.call(this),this.axisY=this.valueAxis},e.prototype.trendlineFactory=function(t,e){var o=Fp.prototype.trendlineFactory.call(this,t,e);return o&&(o.type=wr),o},e.prototype.appendChart=function(t,e){this.valueAxisRangeTracker.update(t.yAxisRanges),ua.prototype.appendChart.call(this,t,e)},e.prototype.createCharts=function(){var t=this.filterVisibleSeries(this.series),e=this.panes[0];this.createLineChart(An(t,[wr]),e),this.createScatterChart(An(t,[Cr]),e),this.createAreaChart(An(t,[_r]),e)},e.prototype.createLineChart=function(t,e){if(0!==t.length){var o=new cl(this,{series:t});this.appendChart(o,e)}},e.prototype.createScatterChart=function(t,e){if(0!==t.length){var o=new pl(this,{series:t});this.appendChart(o,e)}},e.prototype.createAreaChart=function(t,e){if(0!==t.length){var o=new vl(this,{series:t});this.appendChart(o,e)}},e.prototype._dispatchEvent=function(t,e,o){var i=t._eventCoordinates(e),r=new ce(i.x,i.y),n=this.axisX.getValue(r),s=this.axisY.getValue(r);null!==n&&null!==s&&t.trigger(o,{element:Ot(e),x:n,y:s})},e.prototype.createCrosshairs=function(){},e}(sl);Vt(ml,{xAxis:{},yAxis:{}}),Y(ml.prototype,fa,{seriesValues:Fp.prototype.seriesValues});const xl=ml;var bl=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.pointSlot=function(t,e){var o=t.center.y-e.y1,i=ce.onCircle(t.center,t.middle(),o);return new de(i.x,i.y,i.x,i.y)},e.prototype.renderSegments=function(){if(t.prototype.renderSegments.call(this),this._segments&&this._segments.length>1)for(var e=function(t){for(var e=[],o=0;o<t.length;o++){var i=t[o];e[i.seriesIx]=e[i.seriesIx]||[],e[i.seriesIx].push(i)}return e}(this._segments),o=0;o<e.length;o++){var i=e[o];if(i&&i.length>1){var r=i[0].linePoints[0],n=Mt(i),s=Mt(n.linePoints),a=0===r.categoryIx,p=s.categoryIx===s.categoriesCount-1;a&&p&&Mt(i).linePoints.push(r)}}},e.prototype.createSegment=function(t,e,o){var i=new(e.style===rr?Zn:Un)(t,e,o),r=this.seriesMissingValues(e);return t.length!==e.data.length&&r!==er||(i.options.closed=!0),i},e}(is);Vt(bl,{clip:!1,limitPoints:!1});const _l=bl;var wl=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.fillToAxes=function(){},e}(ls);const Cl=wl;var kl=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.fillToAxes=function(){},e}(ns);const Al=kl;var Sl=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createSegment=function(t,e,o,i){var r,n,s,a=this.options.isStacked,p=(e.line||{}).style;return a&&o>0&&i&&(n=i.linePoints.slice(0),r=i),p===rr?(s=new Cl(t,e,o,r,n)).options.closed=!0:(t.push(t[0]),s=new Al(t,e,o,r,n)),s},e.prototype.seriesMissingValues=function(t){return t.missingValues||tr},e}(_l);const Pl=Sl;var Ol=function(t){function e(e,o){t.call(this,e,null,o)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(tl);Vt(Ol,{overlay:{gradient:"none"},labels:{distance:10}});const Tl=Ol;var Ml=function(t){function e(e){t.call(this,e),this.forEach=e.rtl?xs:ms}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflow=function(t){var e=this.options,o=this.children,i=e.gap,r=e.spacing,n=o.length,s=n+i+r*(n-1),a=t.angle/s,p=t.startAngle+a*(i/2);this.forEach(o,(function(e){var o=t.clone();o.startAngle=p,o.angle=a,e.sector&&(o.radius=e.sector.radius),e.reflow(o),e.sector=o,p+=a+a*r}))},e}(we);Vt(Ml,{gap:1,spacing:0});const El=Ml;var Il=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflow=function(t){var e=this.options.reverse,o=this.children,i=o.length,r=e?i-1:0,n=e?-1:1;this.box=new de;for(var s=r;s>=0&&s<i;s+=n){var a=o[s].sector;a.startAngle=t.startAngle,a.angle=t.angle}},e}(we);const Rl=Il;var Bl=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.pointType=function(){return Tl},e.prototype.clusterType=function(){return El},e.prototype.stackType=function(){return Rl},e.prototype.categorySlot=function(t,e){return t.getSlot(e)},e.prototype.pointSlot=function(t,e){var o=t.clone(),i=t.center.y;return o.radius=i-e.y1,o.innerRadius=i-e.y2,o},e.prototype.reflowPoint=function(t,e){t.sector=e,t.reflow()},e.prototype.createAnimation=function(){this.options.animation.center=this.box.toRect().center(),t.prototype.createAnimation.call(this)},e}(As);Bl.prototype.reflow=jn.prototype.reflow,Vt(Bl,{clip:!1,limitPoints:!1,animation:{type:"pie"}});const Ll=Bl;var jl=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createPolarAxis=function(){var t=new xi(this.options.categoryAxis,this.chartService);this.polarAxis=t,this.categoryAxis=t,this.appendAxis(t),this.aggregateCategories(),this.createTrendlineSeries(),this.createCategoryAxesLabels()},e.prototype.valueAxisOptions=function(t){return this._hasBarCharts&&Y(t,{majorGridLines:{type:r},minorGridLines:{type:r}}),this._isStacked100&&Y(t,{roundToMajorUnit:!1,labels:{format:"P0"}}),Y(t,this.options.valueAxis)},e.prototype.aggregateCategories=function(){tp.prototype.aggregateCategories.call(this,this.panes)},e.prototype.createCategoryAxesLabels=function(){tp.prototype.createCategoryAxesLabels.call(this,this.panes)},e.prototype.filterSeries=function(t){return t},e.prototype.trendlineFactory=function(t,e){var o=tp.prototype.trendlineFactory.call(this,t,e);return o&&(o.type=Sr),o},e.prototype.createCharts=function(){var t=this.filterVisibleSeries(this.series),e=this.panes[0];this.createAreaChart(An(t,[kr]),e),this.createLineChart(An(t,[Sr]),e),this.createBarChart(An(t,[Ar]),e)},e.prototype.chartOptions=function(t){var e={series:t},o=t[0];if(o){var i=this.filterVisibleSeries(t),r=o.stack;e.isStacked=r&&i.length>1,e.isStacked100=r&&"100%"===r.type&&i.length>1,e.isStacked100&&(this._isStacked100=!0)}return e},e.prototype.createAreaChart=function(t,e){if(0!==t.length){var o=new Pl(this,this.chartOptions(t));this.appendChart(o,e)}},e.prototype.createLineChart=function(t,e){if(0!==t.length){var o=new _l(this,this.chartOptions(t));this.appendChart(o,e)}},e.prototype.createBarChart=function(t,e){if(0!==t.length){var o=t[0],i=this.chartOptions(t);i.gap=o.gap,i.spacing=o.spacing;var r=new Ll(this,i);this.appendChart(r,e),this._hasBarCharts=!0}},e.prototype.seriesCategoryAxis=function(){return this.categoryAxis},e.prototype._dispatchEvent=function(t,e,o){var i=t._eventCoordinates(e),r=new ce(i.x,i.y),n=this.categoryAxis.getCategory(r),s=this.valueAxis.getValue(r);null!==n&&null!==s&&t.trigger(o,{element:Ot(e),category:n,value:s})},e.prototype.createCrosshairs=function(){},e}(sl);Y(jl.prototype,fa,{appendChart:tp.prototype.appendChart,aggregateSeries:tp.prototype.aggregateSeries,seriesSourcePoints:tp.prototype.seriesSourcePoints,seriesValues:tp.prototype.seriesValues}),Vt(jl,{categoryAxis:{categories:[]},valueAxis:{}});const Dl=jl;var zl=function(t){function e(e,o,i){t.call(this,o),this.value=e,this.options.index=i.index}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflow=function(t){var e=this.points,o=this.children[0];this.box=new de(e[0].x,e[0].y,e[1].x,e[2].y),o&&o.reflow(new de(t.x1,e[0].y,t.x2,e[2].y))},e.prototype.createVisual=function(){var e,o=this,i=this.options;t.prototype.createVisual.call(this),(e=i.visual?i.visual({category:this.category,dataItem:this.dataItem,value:this.value,series:this.series,percentage:this.percentage,points:this.points,options:i,sender:this.getSender(),createVisual:function(){return o.createPath()}}):this.createPath())&&this.visual.append(e)},e.prototype.createPath=function(){var t=this.options,e=t.border;return D.drawing.Path.fromPoints(this.points,{fill:{color:t.color,opacity:t.opacity},stroke:{color:e.color,opacity:e.opacity,width:e.width}}).close()},e.prototype.createHighlight=function(t){return D.drawing.Path.fromPoints(this.points,t)},e.prototype.highlightVisual=function(){return this.visual.children[0]},e.prototype.highlightVisualArgs=function(){var t=D.drawing.Path.fromPoints(this.points).close();return{options:this.options,path:t}},e.prototype.tooltipAnchor=function(){var t=this.box;return{point:new ce(t.center().x,t.y1),align:{horizontal:"center",vertical:"top"}}},e.prototype.formatValue=function(t){return this.owner.formatPointValue(this,t)},e}(we);Vt(zl,{color:T,border:{width:1}}),Y(zl.prototype,zn);const Vl=zl;var Hl=function(t){function e(e,o){t.call(this,o),this.plotArea=e,this.chartService=e.chartService,this.points=[],this.labels=[],this.legendItems=[],this.render()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.formatPointValue=function(t,e){return this.chartService.format.auto(e,t.value)},e.prototype.render=function(){var t=this,e=this.options,o=this.plotArea.options.seriesColors;void 0===o&&(o=[]);var i=e.series[0],r=i.data;if(r)for(var n=bn(i),s=n.total,a=n.points,p=0;p<a.length;p++){var l=a[p];if(l){var c=l.fields;U(i.color)||(i.color=c.color||o[p%o.length]),c=Y({index:p,owner:t,series:i,dataItem:r[p],percentage:l.value/s},c,{visible:l.visible});var h=l.valueFields.value,u=t.createSegment(h,c),d=t.createLabel(h,c);u&&d&&u.append(d)}}},e.prototype.evalSegmentOptions=function(t,e,o){var i=o.series;kn(t,{value:e,series:i,dataItem:o.dataItem,index:o.index},{defaults:i._defaults,excluded:["data","content","template","toggle","visual"]})},e.prototype.createSegment=function(t,e){var o=Y({},e.series);if(this.evalSegmentOptions(o,t,e),this.createLegendItem(t,o,e),!1!==e.visible){var i=new Vl(t,o,e);return Object.assign(i,e),this.append(i),this.points.push(i),i}},e.prototype.createLabel=function(t,e){var o=e.series,i=e.dataItem,r=Y({},this.options.labels,o.labels),n=t;if(r.visible){var s=it(r),a={dataItem:i,value:t,percentage:e.percentage,category:e.category,series:o};s?n=s(a):r.format&&(n=this.chartService.format.auto(r.format,n)),r.color||(r.color=$t(o.color),r.background||(r.background=o.color)),this.evalSegmentOptions(r,t,e);var p=new He(n,Y({vAlign:r.position},r),a);return this.labels.push(p),p}},e.prototype.labelPadding=function(){for(var t=this.labels,e={left:0,right:0},o=0;o<t.length;o++){var i=t[o].options.align;if(i!==a){var r=t[o].box.width();i===m?e.left=Math.max(e.left,r):e.right=Math.max(e.right,r)}}return e},e.prototype.dynamicSlopeReflow=function(t,e,o){for(var i=this.options,r=this.points,n=r.length,s=r[0],a=s,p=0;p<r.length;p++)r[p].percentage>a.percentage&&(a=r[p]);for(var l=s.percentage/a.percentage*e,c=(e-l)/2,h=0,u=0;u<n;u++){var d=r[u].percentage,f=r[u+1],g=f?f.percentage:d,y=r[u].points=[],v=i.dynamicHeight?o*d:o/n,m=void 0;m=Et(m=d?(e-l*(g/d))/2:g?0:e/2,0,e),y.push(new D.geometry.Point(t.x1+c,t.y1+h)),y.push(new D.geometry.Point(t.x1+e-c,t.y1+h)),y.push(new D.geometry.Point(t.x1+e-m,t.y1+v+h)),y.push(new D.geometry.Point(t.x1+m,t.y1+v+h)),c=m,h+=v+i.segmentSpacing,l=Et(e-2*m,0,e)}},e.prototype.constantSlopeReflow=function(t,e,o){for(var i=this.options,r=this.points,n=r.length,s=i.neckRatio<=1,a=s?i.neckRatio*e:e,p=s?0:(e-e/i.neckRatio)/2,l=((s?e:e-2*p)-a)/2,c=0,h=0;h<n;h++){var u=r[h].points=[],d=r[h].percentage,f=i.dynamicHeight?l*d:l/n,g=i.dynamicHeight?o*d:o/n;u.push(new D.geometry.Point(t.x1+p,t.y1+c)),u.push(new D.geometry.Point(t.x1+e-p,t.y1+c)),u.push(new D.geometry.Point(t.x1+e-p-f,t.y1+g+c)),u.push(new D.geometry.Point(t.x1+p+f,t.y1+g+c)),p+=f,c+=g+i.segmentSpacing}},e.prototype.reflow=function(t){var e=this.points,o=e.length;if(o){var i=this.options,r=t.clone().unpad(this.labelPadding()),n=r.height()-i.segmentSpacing*(o-1),s=r.width();i.dynamicSlope?this.dynamicSlopeReflow(r,s,n):this.constantSlopeReflow(r,s,n);for(var a=0;a<o;a++)e[a].reflow(t)}},e}(we);Vt(Hl,{neckRatio:.3,width:300,dynamicSlope:!1,dynamicHeight:!0,segmentSpacing:0,labels:{visible:!1,align:a,position:a,zIndex:1}}),Y(Hl.prototype,Yp);const Nl=Hl;var Fl=function(t){function e(e,o){o.dynamicSlope=!1,o.neckRatio=1e6,t.call(this,e,o)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(Nl);const Ul=Fl;var Gl=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(){this.createChart(Nl,An(this.series,[fr])),this.createChart(Ul,An(this.series,[gr]))},e.prototype.createChart=function(t,e){var o=e[0];if(o){var i=new t(this,{series:e,legend:this.options.legend,neckRatio:o.neckRatio,dynamicHeight:o.dynamicHeight,dynamicSlope:o.dynamicSlope,segmentSpacing:o.segmentSpacing,highlight:o.highlight});this.appendChart(i)}},e.prototype.appendChart=function(e,o){t.prototype.appendChart.call(this,e,o),_t(this.options.legend.items,e.legendItems)},e}(ua);const Wl=Gl;var Xl=function(t){function e(e,o){t.call(this),this.options=o,this.color=o.color||T,this.value=e}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(){this._rendered||(this._rendered=!0,this.createMarker(),this.createLabel(),this.createNote())},e.prototype.createLabel=function(){var t=this.options.labels;if(t.visible){var e,o=this.pointData(),i=it(t),r=t.color;e=i?i(o):this.formatValue(t.format),r||(r=$t(this.color)),this.label=new He(e,Y({align:a,vAlign:a,margin:{left:5,right:5},zIndex:jt(t.zIndex,this.series.zIndex)},t,{color:r}),o),this.append(this.label)}},e.prototype.formatValue=function(t){return this.owner.formatPointValue(this,t)},e.prototype.reflow=function(t){this.render();var e=this.label;this.box=t,e&&e.reflow(this.markerBox()),this.note&&this.note.reflow(t),this.marker.reflow(this.markerBox())},e.prototype.markerBox=function(){var t=this.options.markers,e=t.border,o=this.box.toRect(),i=jt(t.type,"rect")===A,r=jt(e.width,i?1:0),n=Math.round(r/2);if(t.size){var s=o.center();o.size.width=o.size.height=t.size,o.origin.x=Math.round(s.x-o.size.width/2),o.origin.y=Math.round(s.y-o.size.height/2)}return o.size.width-=r,o.size.height-=r,o.origin.y+=n+.5,o.origin.x+=n+.5,De(o)},e.prototype.markerBorder=function(){var t=this.options,e=t.markers.border,o=jt(e.opacity,t.opacity);return{color:e.color||this.color,width:e.width,opacity:o,dashType:e.dashType}},e.prototype.createMarker=function(){var t=this.options,e=t.markers,o=new Se({type:jt(e.type,"rect"),width:e.size,height:e.size,rotation:e.rotation,background:this.color,border:this.markerBorder(),borderRadius:e.borderRadius,opacity:this.series.opacity||t.opacity,zIndex:jt(t.zIndex,this.series.zIndex),animation:t.animation,visual:t.visual},{dataItem:this.dataItem,value:this.value,series:this.series,category:this.category});this.marker=o,this.append(o)},e.prototype.createHighlight=function(t){var e=this.options,o=this.options.highlight.markers||this.options.markers,i=new Se({type:jt(o.type,"rect"),width:o.size,height:o.size,rotation:o.rotation,background:o.color||this.color,border:this.markerBorder(),borderRadius:o.borderRadius,opacity:this.series.opacity||e.opacity,zIndex:jt(e.zIndex,this.series.zIndex)});i.reflow(this.markerBox());var r=i.getElement();return r.options.fill=t.fill,r.options.stroke=t.stroke,r},e.prototype.highlightVisual=function(){return this.rectVisual},e.prototype.highlightVisualArgs=function(){return{options:this.options,rect:this.box.toRect(),visual:this.rectVisual}},e.prototype.tooltipAnchor=function(){var t=this.box.center().x,e=this.box.y1-5;return{point:new ce(t,e),align:{horizontal:a,vertical:s}}},e.prototype.overlapsBox=function(t){return this.box.overlaps(t)},e.prototype.unclipElements=function(){},e.prototype.pointData=function(){return{x:this.value.x,y:this.value.y,value:this.value.value,dataItem:this.dataItem,series:this.series}},e}(we);Y(Xl.prototype,zn),Y(Xl.prototype,Vn),Xl.prototype.defaults={markers:{type:"rect",borderRadius:4,border:{color:"transparent"}},padding:{top:1},labels:{visible:!1,padding:3},opacity:1,notes:{label:{}}};const Yl=Xl;var ql=function(t){function e(e,o){t.call(this,o),this.plotArea=e,this.chartService=e.chartService,this._initFields(),this.render()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._initFields=function(){this.points=[],this.seriesOptions=[],this.valueRange={min:x,max:b},this._evalSeries=[]},e.prototype.render=function(){this.setRange(),this.traverseDataPoints(this.addValue.bind(this))},e.prototype.setRange=function(){for(var t=this,e=this.options.series,o=0;o<e.length;o++)for(var i=e[o],r=0;r<i.data.length;r++){var n=t.plotArea.bindPoint(i,r).valueFields;Ct(n.value)&&null!==n.value&&(t.valueRange.min=Math.min(t.valueRange.min,n.value),t.valueRange.max=Math.max(t.valueRange.max,n.value))}},e.prototype.addValue=function(t,e){var o;t&&Ct(t.value)&&null!==t.value&&(o=this.createPoint(t,e))&&Object.assign(o,e),this.points.push(o)},e.prototype.evalPointOptions=function(t,e,o){var i=o.series,r=o.seriesIx,n={defaults:i._defaults,excluded:["data","tooltip","content","template","visual","toggle","drilldownSeriesFactory"]},s=this._evalSeries[r];Ct(s)||(this._evalSeries[r]=s=kn(t,{},n,!0));var a=t;return s&&kn(a=Y({},t),{value:e,series:i,dataItem:o.dataItem,min:this.valueRange.min,max:this.valueRange.max},n),a},e.prototype.pointType=function(){return Yl},e.prototype.pointOptions=function(t,e){var o=this.seriesOptions[e];if(!o){var i=this.pointType().prototype.defaults;this.seriesOptions[e]=o=Y({},i,{markers:{opacity:t.opacity},tooltip:{format:this.options.tooltip.format},labels:{format:this.options.labels.format}},t)}return o},e.prototype.createPoint=function(t,e){var o=e.series,i=this.pointOptions(o,e.seriesIx),r=e.color||o.color;i=this.evalPointOptions(i,t,e),U(o.color)?r=i.color:0!==this.valueRange.max&&(r=function(t,e){void 0===e&&(e=.05);var o=(0,D.parseColor)(t),i=1-e;return function(t){var e=o.toHSL(),r=100-e.l,n=i-t;return e.l+=Math.min(n*r,r),e.toCss()}}(r)(t.value/this.valueRange.max));var n=new Yl(t,i);return n.color=r,this.append(n),n},e.prototype.seriesAxes=function(t){var e=t.xAxis,o=t.yAxis,i=this.plotArea,r=e?i.namedXAxes[e]:i.axisX,n=o?i.namedYAxes[o]:i.axisY;if(!r)throw new Error("Unable to locate X axis with name "+e);if(!n)throw new Error("Unable to locate Y axis with name "+o);return{xAxis:r,yAxis:n}},e.prototype.reflow=function(t){var e=this,o=this.points,i=!this.options.clip,r=0;this.traverseDataPoints((function(t,n){var s=o[r++],a=e.seriesAxes(n.series),p=a.xAxis,l=a.yAxis,c=p.categoryIndex(t.x),h=l.categoryIndex(t.y),u=p.getSlot(c,c,i),d=l.getSlot(h,h,i);if(s)if(u&&d){var f=e.pointSlot(u,d);s.reflow(f)}else s.visible=!1})),this.box=t},e.prototype.pointSlot=function(t,e){return new de(t.x1,e.y1,t.x2,e.y2)},e.prototype.traverseDataPoints=function(t){for(var e=this,o=this.options.series,i=0;i<o.length;i++)for(var r=o[i],n=e.seriesAxes(r),s=n.xAxis,a=n.yAxis,p=s.currentRangeIndices(),l=a.currentRangeIndices(),c=0;c<r.data.length;c++){var h=e.plotArea.bindPoint(r,c),u=h.valueFields,d=h.fields,f=s.totalIndex(u.x),g=a.totalIndex(u.y),y=p.min<=f&&f<=p.max,v=l.min<=g&&g<=l.max;y&&v&&t(u,Y({pointIx:c,series:r,seriesIx:i,dataItem:r.data[c],owner:e},d))}},e.prototype.formatPointValue=function(t,e){var o=t.value;return this.chartService.format.auto(e,o.x,o.y,o.value)},e.prototype.animationPoints=function(){for(var t=this.points,e=[],o=0;o<t.length;o++)e.push((t[o]||{}).marker);return e},e}(we);Vt(ql,{series:[],tooltip:{format:"{0}, {1}: {2}"},labels:{format:"{2}"},clip:!0});const Ql=ql;var Zl=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initFields=function(){this.namedXAxes={},this.namedYAxes={}},e.prototype.render=function(t){void 0===t&&(t=this.panes),this.bindCategories(),this.createAxes(t),this.createCharts(t),this.createAxisLabels()},e.prototype.bindCategories=function(){for(var t=this.srcSeries||this.series,e=0;e<t.length;e++){for(var o=t[e],i=o.data||[],r=this.seriesAxes(o),n=r.xAxis,s=r.yAxis,a=se(n.categories||[]),p=se(s.categories||[]),l=0;l<i.length;l++){var c=Fi.current.bindPoint(o,l).valueFields,h=c.x,u=c.y;a.has(h)||a.add(h),p.has(u)||p.add(u)}n.categories=a.values(),s.categories=p.values()}},e.prototype.createCharts=function(t){for(var e=this,o=this.groupSeriesByPane(),i=0;i<t.length;i++){var r=t[i],n=o[r.options.name||"default"]||[];e.addToLegend(n);var s=e.filterVisibleSeries(n);s&&e.createHeatmapChart(An(s,[yr]),r)}},e.prototype.createHeatmapChart=function(t,e){var o=new Ql(this,{series:t});this.appendChart(o,e)},e.prototype.seriesPaneName=function(t){var e=this.options,o=t.xAxis,i=at([].concat(e.xAxis),(function(t){return t.name===o}))[0],r=t.yAxis,n=at([].concat(e.yAxis),(function(t){return t.name===r}))[0],s=(e.panes||[{}])[0].name||"default";return(i||{}).pane||(n||{}).pane||s},e.prototype.seriesAxes=function(t){var e,o,i=this.options,r=[].concat(i.xAxis),n=t.xAxis;e=n?r.find((function(t){return t.name===n})):r[0];var s=[].concat(i.yAxis),a=t.yAxis;if(o=a?s.find((function(t){return t.name===a})):s[0],!e)throw new Error("Unable to locate X axis with name "+n);if(!o)throw new Error("Unable to locate Y axis with name "+a);return{xAxis:e,yAxis:o}},e.prototype.createAxisLabels=function(){for(var t=this.axes,e=0;e<t.length;e++)t[e].createLabels()},e.prototype.createXYAxis=function(t,e,o){for(var i,r=t.name,n=e?this.namedYAxes:this.namedXAxes,s=Object.assign({axisCrossingValue:0},t,{vertical:e,reverse:e||this.chartService.rtl?!t.reverse:t.reverse,justified:!1}),a=s.categories?s.categories[0]:null,p=[s.min,s.max,a],l=this.series,c=0;c<l.length;c++){var u=l[c],d=u[e?"yAxis":"xAxis"];if(d===s.name||0===o&&!d){var f=Fi.current.bindPoint(u,0).valueFields;p.push(f[e?"y":"x"]);break}}for(var g=0;g<p.length;g++)if(p[g]instanceof Date){i=!0;break}var y=new(wn(s.type,h)||!s.type&&i?oi:Yo)(s,this.chartService);if(y.axisIndex=o,r){if(n[r])throw new Error((e?"Y":"X")+" axis with name "+r+" is already defined");n[r]=y}return this.appendAxis(y),y.mapCategories(),y},e.prototype.createAxes=function(t){for(var e=this,o=this.options,i=[].concat(o.xAxis),r=[],n=[].concat(o.yAxis),s=[],a=0;a<i.length;a++)ht(e.findPane(i[a].pane),t)&&r.push(e.createXYAxis(i[a],!1,a));for(var p=0;p<n.length;p++)ht(e.findPane(n[p].pane),t)&&s.push(e.createXYAxis(n[p],!0,p));this.axisX=this.axisX||r[0],this.axisY=this.axisY||s[0]},e.prototype.removeAxis=function(e){var o=e.options.name;t.prototype.removeAxis.call(this,e),e.options.vertical?delete this.namedYAxes[o]:delete this.namedXAxes[o],e===this.axisX&&delete this.axisX,e===this.axisY&&delete this.axisY},e.prototype._dispatchEvent=function(t,e,o){for(var i=t._eventCoordinates(e),r=new ce(i.x,i.y),n=this.axes,s=n.length,a=[],p=[],l=0;l<s;l++){var c=n[l];vn(c.options.vertical?p:a,c.getCategory(r))}a.length>0&&p.length>0&&t.trigger(o,{element:Ot(e),originalEvent:e,x:Mn(a),y:Mn(p)})},e.prototype.updateAxisOptions=function(t,e){var o=t.options.vertical,i=this.groupAxes(this.panes),r=(o?i.y:i.x).indexOf(t);Kl(this.options,r,o,e),Kl(this.originalOptions,r,o,e)},e.prototype.crosshairOptions=function(t){return Object.assign({},t.options.crosshair,{zIndex:0})},e}(ua);function Kl(t,e,o,i){Y([].concat(o?t.yAxis:t.xAxis)[e],i)}Vt(Zl,{xAxis:{},yAxis:{}}),Y(Zl.prototype,fa);const Jl=Zl;var $l="color",tc="first",ec="max",oc="min",ic="noteText";_p.current.register(tp,[ar,ur,mr,Lr,sr,Ir,hr,xr,cr,Br,pr,Rr,Tr,Or,Dr,vr,Pr,jr].concat(Nr)),_p.current.register(Fp,[Mr,Er,lr].concat(Nr)),_p.current.register(Jp,[br]),_p.current.register(rl,[dr]),_p.current.register(Wl,[fr,gr]),_p.current.register(xl,[_r,wr,Cr].concat(Nr)),_p.current.register(Dl,[kr,Ar,Sr].concat(Nr)),_p.current.register(Jl,[yr]),Fi.current.register([ar,ur,mr,Lr,sr,Ir],[O],[an,$l,ic,Ji,$i,hn]),Fi.current.register([Tr,Or,Pr,jr],["from","to"],[an,$l,ic,hn]),Fi.current.register([Dr,vr],[O],[an,$l,ic,"summary",hn]),Fi.current.register([_r,wr,Cr],[E,I],[$l,hn]),Fi.current.register([kr,Ar,Sr],[O],[$l,hn]),Fi.current.register([fr,gr],[O],[an,$l,"visibleInLegend","visible",hn]),ma.current.register([ar,ur,mr,Lr,sr,Ir,Dr,vr],{value:ec,color:tc,noteText:tc,errorLow:oc,errorHigh:ec}),ma.current.register([Tr,Or,Pr,jr],{from:oc,to:ec,color:tc,noteText:tc}),ma.current.register([kr,Ar,Sr],{value:ec,color:tc}),Fi.current.register([Mr,Er,lr],[E,I],[$l,ic,"xErrorLow","xErrorHigh","yErrorLow","yErrorHigh"]),Fi.current.register([lr],[E,I,"size"],[$l,an,ic]),Fi.current.register([yr],[E,I,O],[$l,ic]),Fi.current.register([hr,xr],["open","high","low","close"],[an,$l,"downColor",ic]),ma.current.register([hr,xr],{open:ec,high:ec,low:oc,close:ec,color:tc,downColor:tc,noteText:tc}),Fi.current.register([pr,Rr],["lower","q1","median","q3","upper","mean","outliers"],[an,$l,ic,hn]),ma.current.register([pr,Rr],{lower:ec,q1:ec,median:ec,q3:ec,upper:ec,mean:ec,outliers:tc,color:tc,noteText:tc}),Fi.current.register([cr,Br],["current","target"],[an,$l,"visibleInLegend",ic,hn]),ma.current.register([cr,Br],{current:ec,target:ec,color:tc,noteText:tc}),Fi.current.register([br,dr],[O],[an,$l,"explode","visibleInLegend","visible",hn]);var rc=[an,O,E,I],nc="mousemove",sc="contextmenu",ac="mouseleave",pc=function(t){function e(e,o,i,r){var n=this;void 0===r&&(r={}),t.call(this),this.observers=[],this.addObserver(r.observer),this.chartService=new ro(this,r),this.chartService.theme=i,this._initElement(e);var s=Y({},this.options,o);this._originalOptions=Y({},s),this._theme=i,this._initTheme(s,i),this._initHandlers(),this._initSurface(),this.bindCategories(),zt.preloadFonts(o,(function(){n.fontLoaded=!0,n._destroyed||(n.trigger("init"),n._redraw(),n._attachEvents())}))}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._initElement=function(t){for(this._setElementClass(t),t.style.position="relative";t.firstChild;)t.removeChild(t.firstChild);this.element=t},e.prototype._setElementClass=function(t){B(t,"k-chart")},e.prototype._initTheme=function(t,e){for(var o=[],i=t.series||[],r=0;r<i.length;r++)o.push(Object.assign({},i[r]));t.series=o,function(t){for(var e=rc,o=0;o<e.length;o++){var i=e[o]+"Axes";t[i]&&(t[e[o]+"Axis"]=t[i],delete t[i])}}(t),this.applyDefaults(t,e),null===t.seriesColors&&delete t.seriesColors,N(t.title)&&(t.title={text:t.title}),this.options=Y({},e,t),this.applySeriesColors()},e.prototype.getSize=function(){var t=this.options.chartArea||{};return{width:t.width?parseInt(t.width,10):Math.floor(this.element.offsetWidth),height:t.height?parseInt(t.height,10):Math.floor(this.element.offsetHeight)}},e.prototype.resize=function(t){var e=this.getSize(),o=this._size,i=e.width>0||e.height>0;t||i&&(!o||e.width!==o.width||e.height!==o.height)?(this._size=e,this._resize(e,t),this.trigger("resize",e)):i&&this._selections&&qt(this._selections,(function(t){return!t.visible}))&&(this._destroySelections(),this._setupSelection())},e.prototype._resize=function(){this._noTransitionsRedraw()},e.prototype.redraw=function(t){if(this.applyDefaults(this.options),this.applySeriesColors(),t){var e=this._model._plotArea,o=e.findPane(t);e.redraw(o)}else this._redraw()},e.prototype.getAxis=function(t){return Ri(t,this._plotArea.axes)},e.prototype.findAxisByName=function(t){return this.getAxis(t)},e.prototype.findPaneByName=function(t){for(var e=this._plotArea.panes,o=0;o<e.length;o++)if(e[o].options.name===t)return new Li(e[o])},e.prototype.findPaneByIndex=function(t){var e=this._plotArea.panes;if(e[t])return new Li(e[t])},e.prototype.plotArea=function(){return new ji(this._plotArea)},e.prototype.toggleHighlight=function(t,e){var o,i,r,n=this._plotArea,s=(n.srcSeries||n.series||[])[0];U(e)?o=n.filterPoints(e):(q(e)?(i=e.series,r=e.category):i=r=e,o=s.type===dr?lc(n.pointsBySeriesName(i),r):ht(s.type,[br,fr,gr])?lc((n.charts[0]||{}).points,r):n.pointsBySeriesName(i)),o&&this.togglePointsHighlight(t,o)},e.prototype.togglePointsHighlight=function(t,e){for(var o=this._highlight,i=0;i<e.length;i++)o.togglePointHighlight(e[i],t)},e.prototype.showTooltip=function(t){var e,o,i=this._sharedTooltip(),r=this._tooltip,n=this._plotArea;if(U(t)?(e=n.findPoint(t))&&i&&(o=e.categoryIx):i&&Ct(t)&&(o=n.categoryAxis.categoryIndex(t)),i){if(o>=0){var s=this._plotArea.pointsByCategoryIndex(o);r.showAt(s)}}else e&&r.show(e)},e.prototype.hideTooltip=function(){this._tooltip.hide()},e.prototype._initSurface=function(){var t=this.surface,e=this._surfaceWrap(),o=this.options.chartArea||{};o.width&&St(e,{width:o.width}),o.height&&St(e,{height:o.height}),t&&t.options.type===this.options.renderAs?(this.surface.clear(),this.surface.resize()):(this._destroySurface(),this.surface=D.drawing.Surface.create(e,{type:this.options.renderAs}),this.surface.bind("mouseenter",this._surfaceMouseenterHandler),this.surface.bind("mouseleave",this._surfaceMouseleaveHandler))},e.prototype._surfaceWrap=function(){return this.element},e.prototype._redraw=function(){var t=this._getModel();this._size={width:t.options.width,height:t.options.height},this._destroyView(),this._model=t,this._plotArea=t._plotArea,t.renderVisual(),!1!==this.options.transitions&&t.traverse((function(t){t.animation&&t.animation.setup()})),this._initSurface(),this.surface.draw(t.visual),!1!==this.options.transitions&&t.traverse((function(t){t.animation&&t.animation.play()})),this._tooltip=this._createTooltip(),this._highlight=new ip,this._setupSelection(),this._createPannable(),this._createZoomSelection(),this._createMousewheelZoom(),this.trigger("render"),fc(this._plotArea.panes),this._navState||this._cancelDomEvents()},e.prototype.exportVisual=function(t){var e;if(t&&(t.width||t.height||t.options)){var o=this.options,i=Y({},t.options,{chartArea:{width:t.width,height:t.height}});dc(this._originalOptions,i),this.options=Y({},this._originalOptions,i),this._initTheme(this.options,this._theme),this.bindCategories();var r=this._getModel();r.renderVisual(),fc(r._plotArea.panes),e=r.visual,this.options=o}else e=this.surface.exportVisual();return e},e.prototype._sharedTooltip=function(){return this._plotArea instanceof tp&&this.options.tooltip&&this.options.tooltip.shared},e.prototype._createPannable=function(){var t=this.options;!1!==t.pannable&&(this._pannable=new ap(this._plotArea,t.pannable))},e.prototype._createZoomSelection=function(){var t=this.options.zoomable,e=(t||{}).selection;!1!==t&&!1!==e&&(this._zoomSelection=new lp(this,e))},e.prototype._createMousewheelZoom=function(){var t=this.options.zoomable,e=(t||{}).mousewheel;!1!==t&&!1!==e&&(this._mousewheelZoom=new hp(this,e))},e.prototype._toggleDragZoomEvents=function(){var t=this.options.pannable,e=this.options.zoomable,o=(e||{}).selection,i=(e||{}).mousewheel,r=!(t||!1!==e&&!1!==o||this.requiresHandlers([Zr,qr,Qr])),n=(!1===e||!1===i)&&!this.requiresHandlers([Kr,Jr,$r]),s=this.element;this._dragZoomEnabled&&r&&n?(s.style.touchAction=this._touchAction||"",this._dragZoomEnabled=!1):this._dragZoomEnabled||r&&n||(s.style.touchAction="none",this._dragZoomEnabled=!0),this._toggleDomEvents(!r,!n)},e.prototype._toggleDomEvents=function(t,e){var o=this.domEvents;o&&(o.toggleDrag&&o.toggleDrag(t),o.toggleZoom&&o.toggleZoom(e))},e.prototype._createTooltip=function(){var t=this.options.tooltip;return this._sharedTooltip()?this._createSharedTooltip(t):new Pp(this.chartService,t)},e.prototype._createSharedTooltip=function(t){return new Tp(this._plotArea,t)},e.prototype.applyDefaults=function(t,e){!function(t,e){var o,i,r,n=(e||{}).axisDefaults||{};function s(t){var e=(t||{}).color||i.color,r=Y({},n,n[o],i,i[o],{line:{color:e},labels:{color:e},title:{color:e}},t);return delete r[o],r}for(var a=0;a<rc.length;a++)o=rc[a]+"Axis",i=t.axisDefaults||{},r=(r=[].concat(t[o])).map(s),t[o]=r.length>1?r:r[0]}(t,e),function(t,e){var o=t.series,i=o.length,r=t.seriesDefaults,n=Y({},t.seriesDefaults),s=e?Y({},e.seriesDefaults):{},a=Y({},s);cc(n),cc(a);for(var p=0;p<i;p++){var l=o[p].type||t.seriesDefaults.type,c=Y({data:[]},a,s[l],{tooltip:t.tooltip},n,r[l]);o[p]._defaults=c,o[p]=Y({},c,o[p]),o[p].data=o[p].data||[]}}(t,e)},e.prototype.applySeriesColors=function(){for(var t=this.options,e=t.series,o=t.seriesColors||[],i=0;i<e.length;i++){var r=e[i],n=o[i%o.length],s=r._defaults;r.color=r.color||n,s&&(s.color=s.color||n)}},e.prototype._getModel=function(){var t=this.options,e=this._createPlotArea(),o=new Ee(this._modelOptions());o.chart=this,o._plotArea=e;var i=Ue.buildTitle(t.title),r=Ue.buildTitle(t.subtitle,{align:t.title.align,position:t.title.position});return o.append.apply(o,Ue.orderTitles([i,r])),t.legend&&t.legend.visible&&o.append(new xp(e.options.legend,this.chartService)),o.append(e),o.reflow(),o},e.prototype._modelOptions=function(){var t=this.options,e=this.getSize();return Y({transitions:t.transitions,width:e.width||600,height:e.height||400},t.chartArea)},e.prototype._createPlotArea=function(t){var e=this.options;return _p.current.create(t?[]:e.series,e,this.chartService)},e.prototype._setupSelection=function(){for(var t=this._plotArea.axes,e=this._selections=[],o=0;o<t.length;o++){var i=t[o],r=i.options;if(i instanceof Yo&&r.select&&!r.vertical){var n=i.range(),s=new Ap(this,i,Y({min:n.min,max:n.max},r.select));e.push(s)}}},e.prototype._selectStart=function(t){return this.trigger(tn,t)},e.prototype._select=function(t){return this.trigger(en,t)},e.prototype._selectEnd=function(t){return this.trigger(on,t)},e.prototype._initHandlers=function(){this._clickHandler=this._click.bind(this),this._mousewheelHandler=this._mousewheel.bind(this),this._mouseleaveHandler=this._mouseleave.bind(this),this._surfaceMouseenterHandler=this._mouseover.bind(this),this._surfaceMouseleaveHandler=this._mouseout.bind(this),this._mousemove=(0,D.throttle)(this._mousemove.bind(this),20)},e.prototype.addObserver=function(t){t&&this.observers.push(t)},e.prototype.removeObserver=function(t){var e=this.observers.indexOf(t);e>=0&&this.observers.splice(e,1)},e.prototype.requiresHandlers=function(t){for(var e=this.observers,o=0;o<e.length;o++)if(e[o].requiresHandlers(t))return!0},e.prototype.trigger=function(t,e){void 0===e&&(e={}),e.sender=this,t===rn?e.anchor.point=this._toDocumentCoordinates(e.anchor.point):t===Gr?this._updateDrilldownPoint(e.point):t===Wr?this._resetDrilldownPoint():t===Fr&&this._startDrilldown(e.point);for(var o=this.observers,i=!1,r=0;r<o.length;r++)o[r].trigger(t,e)&&(i=!0);return i},e.prototype._attachEvents=function(){var t,e,o=this.element;this._touchAction=o.style.touchAction,wt(o,((t={})[sc]=this._clickHandler,t[cn]=this._mousewheelHandler,t[ac]=this._mouseleaveHandler,t)),this._shouldAttachMouseMove()&&wt(o,((e={})[nc]=this._mousemove,e)),this.domEvents=ao.create(this.element,{start:this._start.bind(this),move:this._move.bind(this),end:this._end.bind(this),tap:this._tap.bind(this),gesturestart:this._gesturestart.bind(this),gesturechange:this._gesturechange.bind(this),gestureend:this._gestureend.bind(this)}),this._toggleDragZoomEvents()},e.prototype._mouseleave=function(t){this._hoveredPoint&&(this._hoveredPoint.out(this,t),this._hoveredPoint=null),this._plotAreaHovered&&(this._plotAreaHovered=!1,this.trigger(Yr)),this._hasInactiveOpacity()&&this._activeChartInstance&&(this._applySeriesOpacity(this._activeChartInstance.children,null,!0),this._updateSeriesOpacity(null,!0))},e.prototype._cancelDomEvents=function(){this.domEvents&&this.domEvents.cancel&&this.domEvents.cancel()},e.prototype._gesturestart=function(t){this._mousewheelZoom&&!this._stopChartHandlers(t)&&(this._gestureDistance=t.distance,this._unsetActivePoint(),this.surface.suspendTracking())},e.prototype._gestureend=function(t){this._zooming&&!this._stopChartHandlers(t)&&(this.surface&&this.surface.resumeTracking(),this._zooming=!1,this.trigger($r,{}))},e.prototype._gesturechange=function(t){var e=this._mousewheelZoom;if(e&&!this._stopChartHandlers(t)){t.preventDefault();var o=this._gestureDistance,i=-t.distance/o+1;if(Math.abs(i)>=.1){i=Math.round(10*i),this._gestureDistance=t.distance;var r={delta:i,axisRanges:hc(this._plotArea.axes),originalEvent:t};if(this._zooming||!this.trigger(Kr,r)){var n=this._eventCoordinates(t);this._zooming||(this._zooming=!0),(r.axisRanges=e.updateRanges(i,n))&&!this.trigger(Jr,r)&&e.zoom()}}}},e.prototype._mouseout=function(t){if(t.element){var e=this._drawingChartElement(t.element,t);e&&e.leave&&e.leave(this,t.originalEvent)}},e.prototype._start=function(t){var e=this._eventCoordinates(t);!this._stopChartHandlers(t)&&this._plotArea.backgroundContainsPoint(e)&&(this.requiresHandlers([Zr,qr,Qr])&&this._startNavigation(t,e,Zr),this._pannable&&this._pannable.start(t)&&(this.surface.suspendTracking(),this._unsetActivePoint(),this._suppressHover=!0,this.chartService.panning=!0),this._zoomSelection&&this._zoomSelection.start(t)&&this.trigger(Kr,{axisRanges:hc(this._plotArea.axes),originalEvent:t}))},e.prototype._move=function(t){var e=this._navState,o=this._pannable;if(!this._stopChartHandlers(t)){if(o){var i=o.move(t);i&&!this.trigger(qr,{axisRanges:i,originalEvent:t})&&o.pan()}else if(e){for(var r={},n=e.axes,s=0;s<n.length;s++){var a=n[s];if(a.options.name){var p=a.options.vertical?t.y:t.x,l=p.startLocation-p.location;0!==l&&(r[a.options.name]=a.translateRange(l))}}e.axisRanges=r,this.trigger(qr,{axisRanges:r,originalEvent:t})}this._zoomSelection&&this._zoomSelection.move(t)}},e.prototype._end=function(t){if(!this._stopChartHandlers(t)){var e=this._pannable;if(e&&e.end(t)?(this.surface.resumeTracking(),this.trigger(Qr,{axisRanges:hc(this._plotArea.axes),originalEvent:t}),this._suppressHover=!1,this.chartService.panning=!1):this._endNavigation(t,Qr),this._zoomSelection){var o=this._zoomSelection.end(t);o&&!this.trigger(Jr,{axisRanges:o,originalEvent:t})&&(this._zoomSelection.zoom(),this.trigger($r,{axisRanges:o,originalEvent:t}))}}},e.prototype._stopChartHandlers=function(t){var e=this._selections||[];if(!e.length)return!1;var o=this._eventCoordinates(t),i=this._plotArea.paneByPoint(o);if(i)for(var r=0;r<e.length;r++)if(e[r].onPane(i))return!0},e.prototype._mousewheelZoomRate=function(){var t=(this.options.zoomable||{}).mousewheel||{};return jt(t.rate,.3)},e.prototype._mousewheel=function(t){var e=this,o=xt(t),i=this._mousewheelZoom,r=this._eventCoordinates(t);if(!this._stopChartHandlers(t)&&this._plotArea.backgroundContainsPoint(r))if(i){var n={delta:o,axisRanges:hc(this._plotArea.axes),originalEvent:t};!this._zooming&&this.trigger(Kr,n)||(t.preventDefault(),this._zooming||(this._unsetActivePoint(),this.surface.suspendTracking(),this._zooming=!0),this._mwTimeout&&clearTimeout(this._mwTimeout),n.axisRanges=i.updateRanges(o,r),n.axisRanges&&!this.trigger(Jr,n)&&i.zoom(),this._mwTimeout=setTimeout((function(){e.trigger($r,n),e._zooming=!1,e.surface&&e.surface.resumeTracking()}),150))}else{var s=this._navState;if(s||this._startNavigation(t,r,Kr)||(s=this._navState),s){var a=s.totalDelta||o;s.totalDelta=a+o;for(var p=this._navState.axes,l={},c=0;c<p.length;c++){var h=p[c],u=h.options.name;u&&(l[u]=h.scaleRange(-a*e._mousewheelZoomRate(),r))}this.trigger(Jr,{delta:o,axisRanges:l,originalEvent:t}),this._mwTimeout&&clearTimeout(this._mwTimeout),this._mwTimeout=setTimeout((function(){e._endNavigation(t,$r)}),150)}}},e.prototype._startNavigation=function(t,e,o){var i=this._model._plotArea,r=i.findPointPane(e),n=i.axes.slice(0);if(r){var s=hc(n);this.trigger(o,{axisRanges:s,originalEvent:t})?this._cancelDomEvents():(this._suppressHover=!0,this._unsetActivePoint(),this._navState={axisRanges:s,pane:r,axes:n})}},e.prototype._endNavigation=function(t,e){this._navState&&(this.trigger(e,{axisRanges:this._navState.axisRanges,originalEvent:t}),this._suppressHover=!1,this._navState=null)},e.prototype._getChartElement=function(t,e){var o=this.surface.eventTarget(t);if(o)return this._drawingChartElement(o,t,e)},e.prototype._drawingChartElement=function(t,e,o){for(var i,r=t;r&&!i;)i=r.chartElement,r=r.parent;if(i)return i.aliasFor&&(i=i.aliasFor(e,this._eventCoordinates(e))),o&&(i=i.closest(o))&&i.aliasFor&&(i=i.aliasFor()),i},e.prototype._eventCoordinates=function(t){var e=Pt(t);return this._toModelCoordinates(e.x,e.y)},e.prototype._elementPadding=function(){if(!this._padding){var t=J(this.element,["paddingLeft","paddingTop"]),e=t.paddingLeft,o=t.paddingTop;this._padding={top:o,left:e}}return this._padding},e.prototype._toDocumentCoordinates=function(t){var e=this._elementPadding(),o=At(this.element);return{left:Bt(t.x+e.left+o.left),top:Bt(t.y+e.top+o.top)}},e.prototype._toModelCoordinates=function(t,e){var o=this.element,i=At(o),r=this._elementPadding(),n=Jt(o).invert(),s=new D.geometry.Point(t-i.left-r.left,e-i.top-r.top).transform(n);return new ce(s.x,s.y)},e.prototype._tap=function(t){var e=this,o=this.surface.eventTarget(t),i=this._drawingChartElement(o,t),r=this._sharedTooltip();this._startHover(o,t)||r||this._unsetActivePoint(),r&&this._trackSharedTooltip(this._eventCoordinates(t),t,!0),this._propagateClick(i,t),this.handlingTap=!0,setTimeout((function(){e.handlingTap=!1}),0)},e.prototype._click=function(t){var e=this._getChartElement(t);this._propagateClick(e,t)},e.prototype._propagateClick=function(t,e){for(var o=t;o;)o.click&&o.click(this,e),o=o.parent},e.prototype._startHover=function(t,e){if(this._suppressHover)return!1;var o=this._drawingChartElement(t,e,(function(t){return(t.hover||t.over)&&!(t instanceof ua)}));return this._showInactiveOpacity(o,e),o},e.prototype._displayTooltip=function(t){Y({},this.options.tooltip,t.options.tooltip).visible&&this._tooltip.show(t)},e.prototype._displayInactiveOpacity=function(t,e,o){var i=this._activeChartInstance=this._chartInstanceFromPoint(t);if(i)if(e)this._updateSeriesOpacity(t),this._applySeriesOpacity(i.children,null,!0),this._applySeriesOpacity(i.children,t.series),this._highlight.show(o||t);else{var r;if(!i.supportsPointInactiveOpacity())return void this._highlight.show(t);(r=this._getInactivePoints(t,i))&&r.length&&this._highlight.show(r,1-this._getInactiveOpacityForSeries(t.series))}},e.prototype._getInactivePoints=function(t,e){return this._getAllPointsOfType(e,t.constructor).filter((function(e){return e!==t}))},e.prototype._getAllPointsOfType=function(t,e){for(var o=[],i=0;i<t.children.length;i++){var r=t.children[i];r.constructor===e?o.push(r):r.children&&r.children.length&&(o=o.concat(this._getAllPointsOfType(r,e)))}return o},e.prototype._updateHoveredPoint=function(t,e){var o=this._hoveredPoint;o&&o!==t&&(o.out(this,e),this._hoveredPoint=null),t&&o!==t&&t.over&&(this._hoveredPoint=t,t.over(this,e))},e.prototype._updateDrilldownPoint=function(t){t&&t.series&&Fi.current.bindPoint(t.series,null,t.dataItem).fields.drilldown&&(this._drilldownState={cursor:this.element.style.cursor},this.element.style.cursor="pointer")},e.prototype._resetDrilldownPoint=function(){this._drilldownState&&(this.element.style.cursor=this._drilldownState.cursor,this._drilldownState=null)},e.prototype._startDrilldown=function(t){if(t&&t.series){var e=t.series,o=Fi.current.bindPoint(e,null,t.dataItem).fields.drilldown;if(o){var i={series:e,point:t,value:o,sender:this};this.trigger("drilldown",i)}}},e.prototype._updateSeriesOpacity=function(t,e){for(var o=this._plotArea,i=o.series.length,r=0;r<i;r++){var n=o.series[r],s=this._getDefaultOpacityForSeries(n),a=this._getInactiveOpacityForSeries(n);e||n===t.series?(n.opacity=s,n.line&&(n.line.opacity=s)):(n.defaultOpacity=s,n.opacity=a,n.line&&(n.line.opacity=a))}},e.prototype._applySeriesOpacity=function(t,e,o,i){for(var r=0;r<t.length;r++){var n=t[r],s=n.series||i;if(s&&(s.highlight||{}).visible&&n.visual){var a=i?i.opacity:n.series.opacity;(s!==e||o)&&n.visual.opacity(o?1:a)}n.children&&n.children.length&&this._applySeriesOpacity(n.children,e,o,n.series)}},e.prototype._chartInstanceFromPoint=function(t){for(var e=t.parent;e&&!e.plotArea;)e=e.parent;return e},e.prototype._showInactiveOpacity=function(t,e){var o=this._activePoint,i=this._plotArea.series.length>1,r=this._hasInactiveOpacity();return this._updateHoveredPoint(t,e),t&&o!==t&&t.hover&&(this._activePoint=t,this._sharedTooltip()||t.hover(this,e)||(this._displayTooltip(t),r?this._displayInactiveOpacity(t,i):this._highlight.show(t))),t},e.prototype._hideInactiveOpacity=function(t){var e=this._plotArea.series.length>1;this._hasInactiveOpacity()&&(e&&this._activeChartInstance&&(this._updateSeriesOpacity(t,!0),this._applySeriesOpacity(this._activeChartInstance.children,null,!0),this._activeChartInstance=null),this._highlight&&this._highlight.hide(),this._activePoint=null)},e.prototype._hasInactiveOpacity=function(){var t=void 0!==this.options.seriesDefaults.highlight.inactiveOpacity,e=this.options.series.filter((function(t){return void 0!==t.highlight.inactiveOpacity})).length>0;return t||e},e.prototype._getInactiveOpacityForSeries=function(t){var e=this.options.seriesDefaults.highlight.inactiveOpacity;return t.highlight.inactiveOpacity||e||t.opacity||1},e.prototype._getDefaultOpacityForSeries=function(t){return t.defaultOpacity||t.opacity||1},e.prototype._mouseover=function(t){var e,o=this._startHover(t.element,t.originalEvent);o&&o.tooltipTracking&&!this._mouseMoveTrackHandler&&!this._sharedTooltip()&&(this._mouseMoveTrackHandler=this._mouseMoveTracking.bind(this),wt(document,((e={})[nc]=this._mouseMoveTrackHandler,e)))},e.prototype._mouseMoveTracking=function(t){var e,o=this,i=o.options,r=o._tooltip,n=o._highlight,s=o._activePoint,a=this._eventCoordinates(t);if(this._plotArea.box.containsPoint(a)){if(s&&s.tooltipTracking&&s.series&&s.parent.getNearestPoint){var p=s.parent.getNearestPoint(a.x,a.y,s.seriesIx);p&&p!==s&&(this._activePoint=p,p.hover(this,t)||(Y({},i.tooltip,p.options.tooltip).visible&&r.show(p),n.show(p)))}}else Lt(document,((e={})[nc]=this._mouseMoveTrackHandler,e)),this._unsetActivePoint(),this._mouseMoveTrackHandler=null,this._hideInactiveOpacity(s)},e.prototype._mousemove=function(t){var e=this._eventCoordinates(t),o=this._plotArea;if(this._trackCrosshairs(e),o.hover){var i=o.backgroundContainsPoint(e);i?(this._plotAreaHovered=!0,this._plotArea.hover(this,t)):this._plotAreaHovered&&!i&&(this._plotAreaHovered=!1,this.trigger(Yr))}this._sharedTooltip()&&this._trackSharedTooltip(e,t)},e.prototype._trackCrosshairs=function(t){for(var e=this._plotArea.crosshairs,o=0;o<e.length;o++){var i=e[o];i.box.containsPoint(t)?i.showAt(t):i.hide()}},e.prototype._trackSharedTooltip=function(t,e,o){if(!this._suppressHover){var i=this,r=i.options.tooltip,n=i._plotArea,s=i._plotArea.categoryAxis,a=i._tooltip,p=i._highlight;if(n.backgroundContainsPoint(t)){var l=s.pointCategoryIndex(t);if(l!==this._tooltipCategoryIx||!this._sharedHighlight&&o){var c=n.pointsByCategoryIndex(l),h=c.map((function(t){return t.eventArgs(e)})),u=h[0]||{};u.categoryPoints=h,c.length>0&&!this.trigger(Ur,u)?(r.visible&&a.showAt(c,t),p.show(c),this._sharedHighlight=!0):a.hide(),this._tooltipCategoryIx=l}else o&&this._sharedHighlight&&(p.hide(),a.hide(),this._sharedHighlight=!1)}else this._sharedHighlight&&(p.hide(),a.hide(),this._tooltipCategoryIx=null,this._sharedHighlight=!1)}},e.prototype.hideElements=function(t){var e=this._plotArea;this._mousemove.cancel(),e.hideCrosshairs(),this._unsetActivePoint(t)},e.prototype._unsetActivePoint=function(t){var e=this._tooltip,o=this._highlight;this._activePoint=null,this._hoveredPoint=null,!e||t&&t.keepTooltipOpen||e.hide(),this._tooltipCategoryIx=null,this._sharedHighlight=!1,o&&o.hide()},e.prototype._deferRedraw=function(){this._redraw()},e.prototype._clearRedrawTimeout=function(){this._redrawTimeout&&(clearInterval(this._redrawTimeout),this._redrawTimeout=null)},e.prototype.bindCategories=function(){for(var t=this.options,e=[].concat(t.categoryAxis),o=0;o<e.length;o++){var i=e[o];!1!==i.autoBind&&this.bindCategoryAxisFromSeries(i,o)}},e.prototype.bindCategoryAxisFromSeries=function(t,e){for(var o,i=this.options.series,r=i.length,n=new ct,s=[],a=!1,p=0;p<r;p++){var l=i[p],c=l.categoryAxis===t.name||!l.categoryAxis&&0===e,h=l.data,u=h.length,d=l.categoryField&&c;if(a=d||a,d&&u>0)for(var f=(o=Tn(t,Hi(l.categoryField,h[0])))?Sn:Hi,g=0;g<u;g++){var y=h[g],v=f(l.categoryField,y,this.chartService.intl);!o&&n.get(v)||(s.push([v,y]),o||n.set(v,!0))}}if(s.length>0){o&&(s=function(t,e){void 0===e&&(e=jo);for(var o=function(t,e){void 0===e&&(e=jo);for(var o=1,i=t.length;o<i;o++)if(e(t[o],t[o-1])<0){t.sort(e);break}return t}(t,e),i=o.length,r=i>0?[o[0]]:[],n=1;n<i;n++)0!==e(o[n],Mt(r))&&r.push(o[n]);return r}(s,(function(t,e){return jo(t[0],e[0])})));var m=function(t){for(var e=t.length,o=[],i=0;i<e;i++)for(var r=t[i],n=r.length,s=0;s<n;s++)o[s]=o[s]||[],o[s].push(r[s]);return o}(s);t.categories=m[0]}else a&&(t.categories=[])},e.prototype._isBindable=function(t){for(var e=Fi.current.valueFields(t),o=!0,i=0;i<e.length;i++){var r=e[i];if(r===O?r="field":r+="Field",!Ct(t[r])){o=!1;break}}return o},e.prototype._noTransitionsRedraw=function(){var t,e=this.options;!1!==e.transitions&&(e.transitions=!1,t=!0),this._redraw(),t&&(e.transitions=!0)},e.prototype._legendItemHover=function(t,e){var o,i=this._plotArea,r=this._highlight,n=(i.srcSeries||i.series)[t];if(o=ht(n.type,[br,dr,fr,gr])?i.findPoint((function(o){return o.series.index===t&&o.index===e})):i.pointsBySeriesIndex(t),this._hasInactiveOpacity()&&n.visible&&o){var s=i.series.length>1,a=o.length?o[0]:o;this._displayInactiveOpacity(a,s,o)}else r.show(o)},e.prototype._shouldAttachMouseMove=function(){return this._plotArea.crosshairs.length||this._tooltip&&this._sharedTooltip()||this.requiresHandlers([Xr,Yr])},e.prototype.updateMouseMoveHandler=function(){var t,e;Lt(this.element,((t={})[nc]=this._mousemove,t)),this._shouldAttachMouseMove()&&wt(this.element,((e={})[nc]=this._mousemove,e))},e.prototype.applyOptions=function(t,e){dc(this._originalOptions,t),this._originalOptions=Y(this._originalOptions,t),this.options=Y({},this._originalOptions),e&&(this._theme=e,this.chartService.theme=e),this._initTheme(this.options,this._theme),this._toggleDragZoomEvents()},e.prototype.setOptions=function(t,e){this.applyOptions(t,e),this.bindCategories(),this.redraw(),this.updateMouseMoveHandler()},e.prototype.setDirection=function(t){this.chartService.rtl=Boolean(t),this.surface&&"svg"===this.surface.type&&this._destroySurface()},e.prototype.setIntlService=function(t){this.chartService.intl=t},e.prototype.noTransitionsRedraw=function(){this._noTransitionsRedraw()},e.prototype.destroy=function(){var t,e;this._destroyed=!0,Lt(this.element,((t={})[sc]=this._clickHandler,t[cn]=this._mousewheelHandler,t[nc]=this._mousemove,t[ac]=this._mouseleaveHandler,t)),this.domEvents&&(this.domEvents.destroy(),delete this.domEvents),this._mouseMoveTrackHandler&&Lt(document,((e={})[nc]=this._mouseMoveTrackHandler,e)),this._destroyView(),this._destroySurface(),this._clearRedrawTimeout()},e.prototype._destroySurface=function(){var t=this.surface;t&&(t.unbind("mouseenter",this._surfaceMouseenterHandler),t.unbind("mouseleave",this._surfaceMouseleaveHandler),t.destroy(),this.surface=null)},e.prototype._destroySelections=function(){var t=this._selections;if(t)for(;t.length>0;)t.shift().destroy()},e.prototype._destroyView=function(){var t=this._model;t&&(t.destroy(),this._model=null),this._unsetActivePoint(),this._resetDrilldownPoint(),this._destroySelections(),this._tooltip&&this._tooltip.destroy(),this._highlight&&this._highlight.destroy(),this._zoomSelection&&(this._zoomSelection.destroy(),delete this._zoomSelection),this._pannable&&(this._pannable.destroy(),delete this._pannable),this._mousewheelZoom&&(this._mousewheelZoom.destroy(),delete this._mousewheelZoom)},e}(D.Class);function lc(t,e){if(t)for(var o=0;o<t.length;o++)if(t[o].category===e)return[t[o]]}function cc(t){delete t.bar,delete t.column,delete t.rangeColumn,delete t.line,delete t.verticalLine,delete t.pie,delete t.donut,delete t.area,delete t.verticalArea,delete t.scatter,delete t.scatterLine,delete t.bubble,delete t.candlestick,delete t.ohlc,delete t.boxPlot,delete t.bullet,delete t.verticalBullet,delete t.polarArea,delete t.polarLine,delete t.radarArea,delete t.radarLine,delete t.waterfall}function hc(t){for(var e={},o=0;o<t.length;o++){var i=t[o],r=i.options.name;r&&(e[r]=i.range())}return e}var uc=["data","categories"];function dc(t,e){for(var o in e)if(!ht(o,uc)&&e.hasOwnProperty(o)){var i=e[o],r=t[o];if(Ct(r)){var n=null===i;n||!Ct(i)?(delete t[o],n&&delete e[o]):r&&q(i)&&q(r)&&dc(r,i)}}}function fc(t){for(var e=0;e<t.length;e++)t[e].notifyRender()}Vt(pc,{renderAs:"",chartArea:{},legend:{visible:!0,labels:{}},categoryAxis:{},seriesDefaults:{type:ur,data:[],highlight:{visible:!0},labels:{},negativeValues:{visible:!1}},series:[],seriesColors:null,tooltip:{visible:!1},transitions:!0,valueAxis:{},plotArea:{},title:{},xAxis:{},yAxis:{},panes:[{}],pannable:!1,zoomable:!1});const gc=pc;var yc=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._slotAnchor=function(t,e){var o=this.plotArea.categoryAxis.options.vertical,i=o?{horizontal:"left",vertical:"center"}:{horizontal:"center",vertical:"bottom"};return{point:o?new ce(this.plotArea.box.x2,e.center().y):new ce(e.center().x,-2),align:i}},e.prototype._defaultAnchor=function(t,e){return this._slotAnchor({},e)},e}(Tp);const vc=yc;var mc=[ar,cr];function xc(t){for(var e=[],o=0;o<t.length;o++){var i=t[o];e[o]=i.style.display,i.style.display="none"}return e}function bc(t,e){for(var o=0;o<t.length;o++)t[o].style.display=e[o]}function _c(t){return H(t)?[t]:t}var wc=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._setElementClass=function(t){B(t,"k-sparkline")},e.prototype._initElement=function(e){t.prototype._initElement.call(this,e),this._initialWidth=Math.floor(St(e).width)},e.prototype._resize=function(){var e=this.element,o=xc(e.childNodes);this._initialWidth=Math.floor(St(e).width),bc(e.childNodes,o),t.prototype._resize.call(this)},e.prototype._modelOptions=function(){var t=this.options,e=this._surfaceWrap(),o=xc(e.childNodes),i=document.createElement("span");i.innerHTML=" ",e.appendChild(i);var r=Y({width:this._autoWidth,height:St(e).height,transitions:t.transitions},t.chartArea,{inline:!0,align:!1});return St(e,{width:r.width,height:r.height}),e.removeChild(i),bc(e.childNodes,o),this.surface&&this.surface.resize(),r},e.prototype._surfaceWrap=function(){if(!this.stage){var t=this.stage=document.createElement("span");this.element.appendChild(t)}return this.stage},e.prototype._createPlotArea=function(e){var o=t.prototype._createPlotArea.call(this,e);return this._autoWidth=this._initialWidth||this._calculateWidth(o),o},e.prototype._calculateWidth=function(t){for(var e=this.options,o=$(e.chartArea.margin),i=t.charts,r=this._surfaceWrap(),n=0,s=0;s<i.length;s++){var a=i[s],p=(a.options.series||[])[0];if(p){if(p.type===ar)return 150;if(p.type===cr)return 150;if(p.type===br)return St(r).height;var l=a.categoryAxis;if(l){var c=l.categoriesCount()*(!a.options.isStacked&&ht(p.type,[ur,Br])?a.seriesOptions.length:1);n=Math.max(n,c)}}}var h=n*e.pointWidth;return h>0&&(h+=o.left+o.right),h},e.prototype._createSharedTooltip=function(t){return new vc(this._plotArea,t)},e.normalizeOptions=function(t){var e=_c(t);return(e=R(e)?{seriesDefaults:{data:e}}:Y({},e)).series||(e.series=[{data:_c(e.data)}]),Y(e,{seriesDefaults:{type:e.type}}),(ht(e.series[0].type,mc)||ht(e.seriesDefaults.type,mc))&&(e=Y({},{categoryAxis:{crosshair:{visible:!1}}},e)),e},e}(gc);Vt(wc,{chartArea:{margin:2},axisDefaults:{visible:!1,majorGridLines:{visible:!1},valueAxis:{narrowRange:!0}},seriesDefaults:{type:"line",area:{line:{width:.5}},bar:{stack:!0},padding:2,width:.5,overlay:{gradient:null},highlight:{visible:!1},border:{width:0},markers:{size:2,visible:!1}},tooltip:{visible:!0,shared:!0},categoryAxis:{crosshair:{visible:!0,tooltip:{visible:!1}}},legend:{visible:!1},transitions:!1,pointWidth:5,panes:[{clip:!1}]});const Cc=wc;var kc=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setup=function(){this._initialOpacity=parseFloat(J(this.element,"opacity").opacity)},e.prototype.step=function(t){J(this.element,{opacity:String(ut(this._initialOpacity,0,t))})},e.prototype.abort=function(){t.prototype.abort.call(this),J(this.element,{display:"none",opacity:String(this._initialOpacity)})},e.prototype.cancel=function(){t.prototype.abort.call(this),J(this.element,{opacity:String(this._initialOpacity)})},e}(D.drawing.Animation);const Ac=kc;function Sc(t,e){var o=document.createElement("div");return o.className=t,e&&(o.style.cssText=e),o}var Pc=function(t){function e(e,o,i){t.call(this),this.options=Y({},this.options,i),this.container=e,this.chartService=o;var r=J(e,["paddingLeft","paddingTop"]);this.chartPadding={top:r.paddingTop,left:r.paddingLeft},this.createElements(),e.appendChild(this.element)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createElements=function(){var t=this.element=Sc("k-navigator-hint","display: none; position: absolute; top: 1px; left: 1px;"),e=this.tooltip=Sc("k-tooltip k-chart-tooltip"),o=this.scroll=Sc("k-scroll");e.innerHTML=" ",t.appendChild(e),t.appendChild(o)},e.prototype.show=function(t,e,o){var i=this,r=i.element,n=i.options,s=i.scroll,a=i.tooltip,p=Eo(zo(t)+zo(e-t)/2),l=.4*o.width(),c=o.center().x-l,h=(o.center().x-c)/(n.max-n.min),u=p-n.min,d=this.chartService.intl.format(n.format,t,e),f=it(n);this.clearHideTimeout(),this._visible||(J(r,{visibility:"hidden",display:"block"}),this._visible=!0),f&&(d=f({from:t,to:e})),a.innerHTML=d,J(a,{left:o.center().x-a.offsetWidth/2,top:o.y1});var g=J(a,["marginTop","borderTopWidth","height"]);J(s,{width:l,left:c+u*h,top:o.y1+g.marginTop+g.borderTopWidth+g.height/2}),J(r,{visibility:"visible"})},e.prototype.clearHideTimeout=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this._hideAnimation&&this._hideAnimation.cancel()},e.prototype.hide=function(){var t=this;this.clearHideTimeout(),this._hideTimeout=setTimeout((function(){t._visible=!1,t._hideAnimation=new Ac(t.element),t._hideAnimation.setup(),t._hideAnimation.play()}),this.options.hideDelay)},e.prototype.destroy=function(){this.clearHideTimeout(),this.container&&this.container.removeChild(this.element),delete this.container,delete this.chartService,delete this.element,delete this.tooltip,delete this.scroll},e}(D.Class);Vt(Pc,{format:"{0:d} - {1:d}",hideDelay:500});const Oc=Pc;var Tc="_navigator",Mc=Tc,Ec="_default",Ic=function(t){function e(e){var o;t.call(this),this.chart=e;var i=this.options=Y({},this.options,e.options.navigator),r=i.select;r&&(r.from=this.parseDate(r.from),r.to=this.parseDate(r.to)),Ct(i.hint.visible)||(i.hint.visible=i.visible),this.chartObserver=new gt(this,((o={})[qr]="_drag",o[Qr]="_dragEnd",o[Jr]="_zoom",o[$r]="_zoomEnd",o)),e.addObserver(this.chartObserver)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.parseDate=function(t){return Uo(this.chart.chartService.intl,t)},e.prototype.clean=function(){this.selection&&(this.selection.destroy(),this.selection=null),this.hint&&(this.hint.destroy(),this.hint=null)},e.prototype.destroy=function(){this.chart&&(this.chart.removeObserver(this.chartObserver),delete this.chart),this.clean()},e.prototype.redraw=function(){this._redrawSelf(),this.initSelection()},e.prototype.initSelection=function(){var t,e=this.chart,o=this.options,i=this.mainAxis(),r=i.roundedRange(),n=r.min,s=r.max,a=o.select,p=a.from,l=a.to,c=a.mousewheel,h=(t=i,Rc.prototype=t,new Rc);0!==i.categoriesCount()&&(this.clean(),h.box=i.box,this.selection=new Ap(e,h,{min:n,max:s,from:p||n,to:l||s,mousewheel:jt(c,{zoom:"left"}),visible:o.visible},new gt(this,{selectStart:"_selectStart",select:"_select",selectEnd:"_selectEnd"})),o.hint.visible&&(this.hint=new Oc(e.element,e.chartService,{min:n,max:s,template:it(o.hint),format:o.hint.format})))},e.prototype.setRange=function(){var t=this.chart._createPlotArea(!0).namedCategoryAxes[Mc].roundedRange(),e=t.min,o=t.max,i=this.options.select||{},r=i.from||e;r<e&&(r=e);var n=i.to||o;n>o&&(n=o),this.options.select=Y({},i,{from:r,to:n}),this.filterAxes()},e.prototype._redrawSelf=function(t){var e=this.chart._plotArea;e&&e.redraw(Mt(e.panes),t)},e.prototype.redrawSlaves=function(){var t=this.chart,e=t._plotArea,o=e.panes.filter((function(t){return t.options.name!==Tc}));e.srcSeries=t.options.series,e.options.categoryAxis=t.options.categoryAxis,e.clearSeriesPointsCache(),e.redraw(o)},e.prototype._drag=function(t){var e,o=this.chart,i=this.selection,r=o._eventCoordinates(t.originalEvent),n=this.mainAxis(),s=n.roundedRange(),a=n.pane.box.containsPoint(r),p=o._plotArea.categoryAxis,l=t.axisRanges[p.options.name],c=this.options.select;if(l&&!a&&i){e=c.from&&c.to?zo(c.to)-zo(c.from):zo(i.options.to)-zo(i.options.from);var h=Eo(Et(zo(l.min),s.min,zo(s.max)-e)),u=Eo(Et(zo(h)+e,zo(s.min)+e,s.max));this.options.select={from:h,to:u},this.options.liveDrag&&(this.filterAxes(),this.redrawSlaves()),i.set(h,u),this.showHint(h,u)}},e.prototype._dragEnd=function(){this.filterAxes(),this.filter(),this.redrawSlaves(),this.hint&&this.hint.hide()},e.prototype.readSelection=function(){var t=this.selection.options,e=t.from,o=t.to,i=this.options.select;i.from=e,i.to=o},e.prototype.filterAxes=function(){var t=this.options.select;void 0===t&&(t={});for(var e=this.chart.options.categoryAxis,o=t.from,i=t.to,r=0;r<e.length;r++){var n=e[r];n.pane!==Tc&&(n.min=o,n.max=i)}},e.prototype.filter=function(){var t=this.chart,e=this.options.select;if(t.requiresHandlers(["navigatorFilter"])){var o=this.mainAxis(),i={from:e.from,to:e.to};if("category"!==o.options.type){var r=new oi(Y({baseUnit:"fit"},t.options.categoryAxis[0],{categories:[e.from,e.to]}),t.chartService).options;i.from=Ro(r.min,-r.baseUnitStep,r.baseUnit),i.to=Ro(r.max,r.baseUnitStep,r.baseUnit)}this.chart.trigger("navigatorFilter",i)}},e.prototype._zoom=function(t){var e=this,o=e.chart._plotArea.categoryAxis,i=e.selection,r=e.options,n=r.select,s=r.liveDrag,a=this.mainAxis(),p=t.delta;if(i){var l=a.categoryIndex(i.options.from),c=a.categoryIndex(i.options.to),h=this.chart._eventCoordinates(t.originalEvent);t.originalEvent.preventDefault(),Math.abs(p)>1&&(p*=3),c-l>1?(i.zoom(p,h),this.readSelection()):(o.options.min=n.from,n.from=o.scaleRange(-t.delta*this.chart._mousewheelZoomRate(),h).min),s&&(this.filterAxes(),this.redrawSlaves()),i.set(n.from,n.to),this.showHint(this.options.select.from,this.options.select.to)}},e.prototype._zoomEnd=function(t){this._dragEnd(t)},e.prototype.showHint=function(t,e){var o=this.chart._plotArea;this.hint&&this.hint.show(t,e,o.backgroundBox())},e.prototype._selectStart=function(t){return this.chart._selectStart(t)},e.prototype._select=function(t){return this.showHint(t.from,t.to),this.chart._select(t)},e.prototype._selectEnd=function(t){return this.hint&&this.hint.hide(),this.readSelection(),this.filterAxes(),this.filter(),this.redrawSlaves(),this.chart._selectEnd(t)},e.prototype.mainAxis=function(){var t=this.chart._plotArea;if(t)return t.namedCategoryAxes[Mc]},e.prototype.select=function(t,e){var o=this.options.select;return t&&e&&(o.from=this.parseDate(t),o.to=this.parseDate(e),this.filterAxes(),this.filter(),this.redrawSlaves(),this.selection.set(t,e)),{from:o.from,to:o.to}},e.setup=function(t,o){if(void 0===t&&(t={}),void 0===o&&(o={}),!t.__navi){t.__navi=!0;var i=Y({},o.navigator,t.navigator),r=t.panes=[].concat(t.panes),n=Y({},i.pane,{name:Tc});i.visible||(n.visible=!1,n.height=.1),"top"!==t.navigator.position?r.push(n):r.unshift(n),r.forEach((function(t){return t.name=t.name||Ec})),e.attachAxes(t,i),e.attachSeries(t,i,o)}},e.attachAxes=function(t,e){var o=e.series||[],i=t.categoryAxis=[].concat(t.categoryAxis),r=t.valueAxis=[].concat(t.valueAxis);i.concat(r).forEach((function(t){return t.pane=t.pane||Ec}));var n=0===An(o,zr).length,s=Y({type:"date",pane:Tc,roundToBaseUnit:!n,justified:n,_collapse:!1,majorTicks:{visible:!0},tooltip:{visible:!1},labels:{step:1},autoBind:e.autoBindElements,autoBaseUnitSteps:{minutes:[1],hours:[1,2],days:[1,2],weeks:[],months:[1],years:[1]}}),a=e.categoryAxis;i.push(Y({},s,{maxDateGroups:200},a,{name:Mc,title:null,baseUnit:"fit",baseUnitStep:"auto",labels:{visible:!1},majorTicks:{visible:!1}}),Y({},s,a,{name:Mc+"_labels",maxDateGroups:20,baseUnitStep:"auto",labels:{position:""},plotBands:[],autoBaseUnitSteps:{minutes:[]},_overlap:!0}),Y({},s,a,{name:Mc+"_ticks",maxDateGroups:200,majorTicks:{width:.5},plotBands:[],title:null,labels:{visible:!1,mirror:!0},_overlap:!0})),r.push(Y({name:Mc,pane:Tc,majorGridLines:{visible:!1},visible:!1},e.valueAxis))},e.attachSeries=function(t,e,o){for(var i=t.series=t.series||[],r=[].concat(e.series||[]),n=o.seriesColors,s=e.seriesDefaults,a=0;a<r.length;a++)i.push(Y({color:n[a%n.length],categoryField:e.dateField,visibleInLegend:!1,tooltip:{visible:!1}},s,r[a],{axis:Mc,categoryAxis:Mc,autoBind:e.autoBindElements}))},e}(D.Class);function Rc(){}const Bc=Ic;var Lc=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.applyDefaults=function(e,o){var i=St(this.element).width||600,r=o,n={seriesDefaults:{categoryField:e.dateField},axisDefaults:{categoryAxis:{name:"default",majorGridLines:{visible:!1},labels:{step:2},majorTicks:{visible:!1},maxDateGroups:Math.floor(i/28)}}};r&&(r=Y({},r,n)),Bc.setup(e,r),t.prototype.applyDefaults.call(this,e,r)},e.prototype._setElementClass=function(t){B(t,"k-chart k-stockchart")},e.prototype.setOptions=function(e){this.destroyNavigator(),t.prototype.setOptions.call(this,e)},e.prototype.noTransitionsRedraw=function(){var t=this.options.transitions;this.options.transitions=!1,this._fullRedraw(),this.options.transitions=t},e.prototype._resize=function(){this.noTransitionsRedraw()},e.prototype._redraw=function(){var t=this.navigator;!this._dirty()&&t&&t.options.partialRedraw?t.redrawSlaves():this._fullRedraw()},e.prototype._dirty=function(){var t=this.options,e=at([].concat(t.series,t.navigator.series),(function(t){return t&&t.visible})).length,o=this._seriesCount!==e;return this._seriesCount=e,o},e.prototype._fullRedraw=function(){var e=this.navigator;e||(e=this.navigator=new Bc(this),this.trigger("navigatorCreated",{navigator:e})),e.clean(),e.setRange(),t.prototype._redraw.call(this),e.initSelection()},e.prototype._trackSharedTooltip=function(e){var o=this._plotArea.paneByPoint(e);o&&o.options.name===Tc?this._unsetActivePoint():t.prototype._trackSharedTooltip.call(this,e)},e.prototype.bindCategories=function(){t.prototype.bindCategories.call(this),this.copyNavigatorCategories()},e.prototype.copyNavigatorCategories=function(){for(var t,e=[].concat(this.options.categoryAxis),o=0;o<e.length;o++){var i=e[o];i.name===Mc?t=i.categories:t&&i.pane===Tc&&(i.categories=t)}},e.prototype.destroyNavigator=function(){this.navigator&&(this.navigator.destroy(),this.navigator=null)},e.prototype.destroy=function(){this.destroyNavigator(),t.prototype.destroy.call(this)},e.prototype._stopChartHandlers=function(e){var o=this._eventCoordinates(e),i=this._plotArea.paneByPoint(o);return t.prototype._stopChartHandlers.call(this,e)||i&&i.options.name===Tc},e.prototype._toggleDragZoomEvents=function(){this._dragZoomEnabled||(this.element.style.touchAction="none",this._dragZoomEnabled=!0)},e}(gc);Vt(Lc,{dateField:"date",axisDefaults:{categoryAxis:{type:"date",baseUnit:"fit",justified:!0},valueAxis:{narrowRange:!0,labels:{format:"C"}}},navigator:{select:{},seriesDefaults:{markers:{visible:!1},tooltip:{visible:!1},highlight:{visible:!1},line:{width:2}},hint:{},visible:!0},tooltip:{visible:!0},legend:{visible:!1}});const jc=Lc;var Dc=150,zc="arrowPointer",Vc="barPointer",Hc=.5,Nc=Math.PI/180,Fc="inside",Uc="linear",Gc="outside",Wc="radialPointer",Xc="radialRangePointer";function Yc(t,e){var o=t.getOrigin(),i=t.getSize(),r=$(e);return t.setOrigin([o.x-r.left,o.y-r.top]),t.setSize([i.width+(r.left+r.right),i.height+(r.top+r.bottom)]),t}var qc=D.drawing.Group,Qc=D.drawing.Path,Zc=D.drawing.Text;function Kc(t,e){var o=t.box,i=t.children[0].box,r=e.border||{},n=e.background||"",s=Qc.fromRect(new D.geometry.Rect([o.x1,o.y1],[o.width(),o.height()]),{stroke:{}}),a=new Zc(t.text,new D.geometry.Point(i.x1,i.y1),{font:e.font,fill:{color:e.color}}),p=Yc(a.bbox().clone(),e.padding),l=Qc.fromRect(p,{stroke:{color:r.width?r.color:"",width:r.width,opacity:r.opacity,dashType:r.dashType,lineJoin:"round",lineCap:"round"},fill:{color:n}}),c=new qc;return c.append(s),c.append(l),c.append(a),c}function Jc(t,e,o){var i=Ct(t.from)?t.from:b,r=Ct(t.to)?t.to:x;return t.from=Math.max(Math.min(r,i),e),t.to=Math.min(Math.max(r,i),o),t}function $c(t,e){var o=$(e);return o.left=-o.left,o.top=-o.top,o.right=-o.right,o.bottom=-o.bottom,Yc(t,o)}var th=D.drawing.Path,eh=D.drawing.Surface,oh=function(t){function e(e,o,i,r){void 0===r&&(r={}),t.call(this),this.element=e,this.theme=i,this.contextService=new ro(this,r),this._originalOptions=Y({},this.options,o),this.options=Y({},this._originalOptions),this._initTheme(i),this.redraw()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.destroy=function(){this.surface&&(this.surface.destroy(),this.surface=null),delete this.element,delete this.surfaceElement},e.prototype.value=function(t){var e=this.pointers[0];if(0===arguments.length)return e.value();e.value(t),this._setValueOptions(t)},e.prototype._draw=function(){var t=this.surface;t.clear(),t.draw(this._visuals)},e.prototype.exportVisual=function(){return this._visuals},e.prototype.allValues=function(t){var e=this.pointers,o=[];if(0===arguments.length){for(var i=0;i<e.length;i++)o.push(e[i].value());return o}if(R(t))for(var r=0;r<t.length;r++)H(t[r])&&e[r].value(t[r]);this._setValueOptions(t)},e.prototype._setValueOptions=function(t){for(var e=[].concat(this.options.pointer),o=[].concat(t),i=0;i<o.length;i++)e[i].value=o[i]},e.prototype.resize=function(){this.noTransitionsRedraw()},e.prototype.noTransitionsRedraw=function(){var t=this.options.transitions;this._toggleTransitions(!1),this.redraw(),this._toggleTransitions(t)},e.prototype.redraw=function(){var t=this._surfaceSize(),e=new D.geometry.Rect([0,0],[t.width,t.height]);this._initSurface(),this.gaugeArea=this._createGaugeArea(),this._createModel();var o=$c(e.bbox(),this._gaugeAreaMargin);this.reflow(o)},e.prototype.setOptions=function(t,e){this._originalOptions=Y(this._originalOptions,t),this.options=Y({},this._originalOptions),this._initTheme(e),this.redraw()},e.prototype.setDirection=function(t){this.contextService.rtl=Boolean(t),this.surface&&"svg"===this.surface.type&&(this.surface.destroy(),this.surface=null)},e.prototype.setIntlService=function(t){this.contextService.intl=t},e.prototype._initTheme=function(t){var e=t||this.theme||{};this.theme=e,this.options=Y({},e,this.options);var o=this.options,i=o.pointer;if(R(i)){for(var r=[],n=0;n<i.length;n++)r.push(Y({},e.pointer,i[n]));o.pointer=r}},e.prototype._createGaugeArea=function(){var t=this.options.gaugeArea,e=this.surface.size(),o=t.border||{},i=new D.geometry.Rect([0,0],[e.width,e.height]);return this._gaugeAreaMargin=t.margin||5,o.width>0&&(i=$c(i,o.width)),th.fromRect(i,{stroke:{color:o.width?o.color:"",width:o.width,dashType:o.dashType,lineJoin:"round",lineCap:"round"},fill:{color:t.background}})},e.prototype._initSurface=function(){var t=this.options,e=this.surface,o=this._surfaceElement(),i=this._surfaceSize();St(o,i),e&&e.options.type===t.renderAs?(this.surface.clear(),this.surface.resize()):(e&&e.destroy(),this.surface=eh.create(o,{type:t.renderAs}))},e.prototype._surfaceSize=function(){var t=this.options,e=this._getSize();return t.gaugeArea&&Y(e,t.gaugeArea),e},e.prototype._surfaceElement=function(){return this.surfaceElement||(this.surfaceElement=document.createElement("div"),this.element.appendChild(this.surfaceElement)),this.surfaceElement},e.prototype.getSize=function(){return this._getSize()},e.prototype._getSize=function(){var t=this.element,e=this._defaultSize(),o=t.offsetWidth,i=t.offsetHeight;return o||(o=e.width),i||(i=e.height),{width:o,height:i}},e.prototype._defaultSize=function(){return{width:200,height:200}},e.prototype._toggleTransitions=function(t){this.options.transitions=t;for(var e=0;e<this.pointers.length;e++)this.pointers[e].options.animation.transitions=t},e}(D.Class);Vt(oh,{plotArea:{},theme:"default",renderAs:"",pointer:{},scale:{},gaugeArea:{}});const ih=oh;var rh=D.drawing.Path,nh=D.drawing.Group,sh=D.geometry.Point;function ah(t,e){var o,i,r=t.position,n=t.tickX,s=t.tickY;return t.vertical?(o=new sh(n,r),i=new sh(n+e.size,r)):(o=new sh(r,s),i=new sh(r,s+e.size)),new rh({stroke:{color:e.color,width:e.width}}).moveTo(o).lineTo(i)}function ph(t,e,o,i){var r=e.length;if(i.visible)for(var n=o.mirror,s=o.lineBox,a=i.skip;a<r;a+=i.step)a%i.skipUnit!=0&&(o.tickX=n?s.x2:s.x2-i.size,o.tickY=n?s.y1-i.size:s.y1,o.position=e[a],t.append(ah(o,i)))}var lh=function(t){function e(e,o){var i=e||{};!Ct(i.reverse)&&!1===i.vertical&&(o||{}).rtl&&(i=Object.assign({},i,{reverse:!0})),t.call(this,0,1,i,o),this.options.minorUnit=this.options.minorUnit||this.options.majorUnit/10}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initUserOptions=function(t){var e=Y({},this.options,t);return(e=Y({},e,{labels:{mirror:e.mirror}})).majorUnit=e.majorUnit||le(e.min,e.max),e},e.prototype.initFields=function(){},e.prototype.render=function(){var t=this.elements=new nh,e=this.renderLabels(),o=this.renderLine(),i=this.renderTicks(),r=this.renderRanges();return t.append(o,e,i,r),t},e.prototype.renderRanges=function(){for(var t=this,e=this.options,o=e.min,i=e.max,r=e.vertical,n=e.labels.mirror,s=e.ranges||[],a=new nh,p=s.length,l=e.rangeSize||e.minorTicks.size/2,c=0;c<p;c++){var h=Jc(s[c],o,i),u=t.getSlot(h.from,h.to),d=r?t.lineBox():u,f=r?u:t.lineBox();r?d.x1-=l*(n?-1:1):f.y2+=l*(n?-1:1),a.append(rh.fromRect(new D.geometry.Rect([d.x1,f.y1],[d.x2-d.x1,f.y2-f.y1]),{fill:{color:h.color,opacity:h.opacity},stroke:{}}))}return a},e.prototype.renderLabels=function(){for(var t=this.labels,e=this.options,o=new nh,i=0;i<t.length;i++)o.append(Kc(t[i],e.labels));return o},e.prototype.renderLine=function(){var t=this.options.line,e=this.lineBox(),o=new nh;if(t.width>0&&t.visible){var i=new rh({stroke:{color:t.color,dashType:t.dashType,width:t.width}});i.moveTo(e.x1,e.y1).lineTo(e.x2,e.y2),o.append(i)}return o},e.prototype.renderTicks=function(){var t=new nh,e=this.options,o=e.majorTicks.visible?e.majorUnit:0,i={vertical:e.vertical,mirror:e.labels.mirror,lineBox:this.lineBox()};return ph(t,this.getMajorTickPositions(),i,e.majorTicks),ph(t,this.getMinorTickPositions(),i,Y({},{skipUnit:o/e.minorUnit},e.minorTicks)),t},e}(li);Vt(lh,{min:0,max:50,majorTicks:{size:15,align:Fc,color:n,width:Hc,visible:!0},minorTicks:{size:10,align:Fc,color:n,width:Hc,visible:!0},line:{width:Hc},labels:{position:Fc,padding:2},mirror:!1,_alignLines:!1});const ch=lh;var hh=function(t){function e(e,o){t.call(this);var i=e.options,r=i.min,n=i.max,s=this.options=Y({},this.options,o);s.fill=s.color,this.scale=e,Ct(s.value)?s.value=Et(s.value,r,n):s.value=r}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.value=function(t){var e=this.options,o=e.value;if(0===arguments.length)return o;var i=this.scale.options,r=i.min,n=i.max;e._oldValue=Ct(e._oldValue)?e.value:r,e.value=Et(t,r,n),this.elements&&this.repaint()},e}(D.Class);Vt(hh,{color:n});const uh=hh;var dh=function(t){function e(e,o){t.call(this,e,o),this.options=Y({track:{visible:Ct(o.track)}},this.options)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflow=function(){var t,e,o,i=this.options,r=this.scale,n=r.options,s=n.mirror,a=n.vertical,p=r.lineBox(),l=i.track.size||i.size,c=i.size/2,h=$(i.margin),u=a?h[s?"left":"right"]:h[s?"bottom":"top"];u=s?-u:u,a?(o=new de(p.x1+u,p.y1,p.x1+u,p.y2),s?o.x1-=l:o.x2+=l,i.shape!==Vc&&(t=e=new de(p.x2+u,p.y1-c,p.x2+u,p.y2+c))):(o=new de(p.x1,p.y1-u,p.x2,p.y1-u),s?o.y2+=l:o.y1-=l,i.shape!==Vc&&(t=e=new de(p.x1-c,p.y1-u,p.x2+c,p.y1-u))),this.trackBox=o,this.pointerRangeBox=e,this.box=t||o.clone().pad(i.border.width)},e.prototype.getElementOptions=function(){var t=this.options;return{fill:{color:t.color,opacity:t.opacity},stroke:Ct(t.border)?{color:t.border.width?t.border.color||t.color:"",width:t.border.width,dashType:t.border.dashType,opacity:t.opacity}:null}},e.prototype._margin=function(){var t=this.scale,e=this.options,o=t.options,i=o.mirror,r=o.vertical,n=$(e.margin);return r?n[i?"left":"right"]:n[i?"bottom":"top"]},e}(uh);Vt(dh,{shape:Vc,track:{border:{width:1}},color:n,border:{width:1},opacity:1,margin:$(3),animation:{type:Vc},visible:!0});const fh=dh;var gh=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setup=function(){var t=this.options,e=t.margin,o=t.from,i=t.to,r=t.vertical,n=r?"x1":"y1";t.mirror===r?(o[n]-=e,i[n]-=e):(o[n]+=e,i[n]+=e);var s=this.fromScale=new D.geometry.Point(o.x1,o.y1),a=this.toScale=new D.geometry.Point(i.x1,i.y1);0!==t.duration&&(t.duration=Math.max(s.distanceTo(a)/t.duration*1e3,1))},e.prototype.step=function(t){var e=ut(this.fromScale.x,this.toScale.x,t),o=ut(this.fromScale.y,this.toScale.y,t);this.element.transform(D.geometry.transform().translate(e,o))},e}(D.drawing.Animation);Vt(gh,{easing:Uc,duration:250}),D.drawing.AnimationFactory.current.register(zc,gh);const yh=gh;var vh=D.geometry.Point,mh=D.drawing.Path,xh=function(t){function e(e,o){t.call(this,e,o),Ct(this.options.size)||(this.options.size=.6*this.scale.options.majorTicks.size)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.pointerShape=function(){var t=this.scale,e=this.options.size,o=e/2,i=t.options.mirror?-1:1;return t.options.vertical?[new vh(0,0-o),new vh(0-i*e,0),new vh(0,0+o)]:[new vh(0-o,0),new vh(0,0+i*e),new vh(0+o,0)]},e.prototype.repaint=function(){var t=this.scale,e=this.options,o=new yh(this.elements,Y(e.animation,{vertical:t.options.vertical,mirror:t.options.mirror,margin:this._margin(e.margin),from:t.getSlot(e._oldValue),to:t.getSlot(e.value)}));!1===e.animation.transitions&&(o.options.duration=0),o.setup(),o.play()},e.prototype.render=function(){var t=this.scale,e=this.options,o=this.getElementOptions(),i=this.pointerShape(e.value);e.animation.type=zc;var r=new mh({stroke:o.stroke,fill:o.fill}).moveTo(i[0]).lineTo(i[1]).lineTo(i[2]).close(),n=t.getSlot(e.value);return r.transform(D.geometry.transform().translate(n.x1,n.y1)),this.elements=r,r},e}(fh);const bh=xh;var _h=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setup=function(){var t=this.options,e=this.axis=t.vertical?I:E,o=this.to=t.newPoints[0][e],i=this.from=t.oldPoints[0][e];0!==t.duration&&(t.duration=Math.max(Math.abs(o-i)/t.speed*1e3,1)),this._set(i)},e.prototype.step=function(t){var e=ut(this.from,this.to,t);this._set(e)},e.prototype._set=function(t){var e="set"+this.axis.toUpperCase(),o=this.options.newPoints;o[0][e](t),o[1][e](t)},e}(D.drawing.Animation);Vt(_h,{easing:Uc,speed:250}),D.drawing.AnimationFactory.current.register(Vc,_h);const wh=_h;var Ch=D.drawing.Group,kh=D.drawing.Path,Ah=function(t){function e(e,o){t.call(this,e,o),Ct(this.options.size)||(this.options.size=.3*this.scale.options.majorTicks.size)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.pointerShape=function(t){var e=this.scale,o=this.options,i=e.options,r=i.mirror,n=i.vertical,s=r===n?-1:1,a=o.size*s,p=e.getSlot(e.options.min),l=e.getSlot(t),c=n?I:E,h=n?E:I,u=this._margin()*s,d=new D.geometry.Point;d[c]=p[c+"1"],d[h]=p[h+"1"];var f=new D.geometry.Point;f[c]=l[c+"1"],f[h]=l[h+"1"],n?(d.translate(u,0),f.translate(u,0)):(d.translate(0,u),f.translate(0,u));var g=f.clone(),y=d.clone();return n?(g.translate(a,0),y.translate(a,0)):(g.translate(0,a),y.translate(0,a)),[d,f,g,y]},e.prototype.repaint=function(){var t=this.scale,e=this.options,o=this.pointerShape(e.value),i=this.pointerPath,r=this.pointerShape(e._oldValue);i.moveTo(o[0]).lineTo(o[1]).lineTo(o[2]).lineTo(o[3]).close();var n=new wh(i,Y(e.animation,{reverse:t.options.reverse,vertical:t.options.vertical,oldPoints:[r[1],r[2]],newPoints:[o[1],o[2]]}));!1===e.animation.transitions&&(n.options.duration=0),n.setup(),n.play()},e.prototype.render=function(){var t=new Ch,e=this.getElementOptions();this.options.track.visible&&t.append(this.renderTrack());var o=this.pointerPath=new kh({stroke:e.stroke,fill:e.fill});return t.append(o),this.elements=t,t},e.prototype.renderTrack=function(){var t=this.options.track,e=t.border||{},o=this.trackBox.clone().pad(e.width||0);return new kh.fromRect(o.toRect(),{fill:{color:t.color,opacity:t.opacity},stroke:{color:e.width?e.color||t.color:"",width:e.width,dashType:e.dashType}})},e}(fh);const Sh=Ah;var Ph=D.drawing.Group,Oh=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflow=function(t){var e=this.pointers,o=t.origin.x,i=t.origin.y,r=new de(o,i,o+t.width(),i+t.height());this.scale.reflow(r),this._shrinkScaleWidth(r);for(var n=0;n<e.length;n++)e[n].reflow();this.bbox=this._getBox(r),this._alignElements(),this._shrinkElements(),this._buildVisual(),this._draw()},e.prototype._buildVisual=function(){var t=new Ph,e=this.scale.render(),o=this.pointers;t.append(this.gaugeArea),t.append(e);for(var i=0;i<o.length;i++){var r=o[i];t.append(r.render()),r.value(r.options.value)}this._visuals=t},e.prototype._createModel=function(){var t=this.options,e=this.scale=new ch(t.scale,this.contextService);this.pointers=[];var o=t.pointer;o=R(o)?o:[o];for(var i=0;i<o.length;i++){var r=Y({},o[i],{animation:{transitions:t.transitions}}),n="arrow"===r.shape?bh:Sh;this.pointers.push(new n(e,r))}},e.prototype._defaultSize=function(){var t=this.options.scale.vertical;return{width:t?60:200,height:t?200:60}},e.prototype._getBox=function(t){for(var e,o=this.scale,i=this.pointers,r=t.center(),n=i[0].box.clone().wrap(o.box),s=0;s<i.length;s++)n.wrap(i[s].box.clone());return o.options.vertical?(e=n.width()/2,n=new de(r.x-e,t.y1,r.x+e,t.y2)):(e=n.height()/2,n=new de(t.x1,r.y-e,t.x2,r.y+e)),n},e.prototype._alignElements=function(){for(var t,e=this.scale,o=this.pointers,i=e.box,r=o[0].box.clone().wrap(e.box),n=this.bbox,s=0;s<o.length;s++)r.wrap(o[s].box.clone());e.options.vertical?(t=n.center().x-r.center().x,e.reflow(new de(i.x1+t,n.y1,i.x2+t,n.y2))):(t=n.center().y-r.center().y,e.reflow(new de(i.x1,i.y1+t,i.x2,i.y2+t)));for(var a=0;a<o.length;a++)o[a].reflow(this.bbox)},e.prototype._shrinkScaleWidth=function(t){var e=this.scale;if(!e.options.vertical){var o=e.contentBox().width()-t.width();o>0&&(e.box.shrink(o,0),e.box.alignTo(t,"center"),e.reflow(e.box))}},e.prototype._shrinkElements=function(){for(var t=this.scale,e=this.pointers,o=t.box.clone(),i=t.options.vertical?"y":"x",r=e[0].box,n=0;n<e.length;n++)r.wrap(e[n].box.clone());o[i+1]+=Math.max(o[i+1]-r[i+1],0),o[i+2]-=Math.max(r[i+2]-o[i+2],0),t.reflow(o);for(var s=0;s<e.length;s++)e[s].reflow(this.bbox)},e}(ih);Vt(Oh,{transitions:!0,gaugeArea:{background:""},scale:{vertical:!0}});const Th=Oh;var Mh=180,Eh=D.drawing.Arc,Ih=D.drawing.Path,Rh=D.drawing.Group;function Bh(t,e,o,i){var r=new Rh,n=t.center,s=t.getRadiusX();if(i.visible)for(var a=0;a<e.length;a++){var p=t.pointAt(e[a]),l=new D.geometry.Point(n.x+s-i.size,n.y).rotate(e[a],n);r.append(new Ih({stroke:{color:i.color,width:i.width}}).moveTo(p).lineTo(l))}return r}function Lh(t,e,o,i){return{from:t,to:e,color:o,opacity:i}}var jh=function(t){function e(e,o){t.call(this,0,1,e,o)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initUserOptions=function(t){var e=Y({},this.options,t);return e.majorUnit=e.majorUnit||le(e.min,e.max),e.minorUnit=e.minorUnit||e.majorUnit/10,e},e.prototype.initFields=function(){},e.prototype.render=function(t,e){var o=this.renderArc(t,e);this.bbox=o.bbox(),this.labelElements=this.renderLabels(),this.ticks=this.renderTicks(),this.ranges=this.renderRanges()},e.prototype.reflow=function(t){var e=t.center(),o=Math.min(t.height(),t.width())/2;if(!Ct(this.bbox))return this.render(e,o);this.bbox=this.arc.bbox(),this.radius(this.arc.getRadiusX()),this.repositionRanges(),this.renderLabels()},e.prototype.slotAngle=function(t){var e=this.options,o=e.min,i=e.max,r=e.reverse,n=e.startAngle,s=e.endAngle,a=s-n;return(r?s-(t-o)/(i-o)*a:(t-o)/(i-o)*a+n)+Mh},e.prototype.hasRanges=function(){var t=this.options.ranges;return t&&t.length},e.prototype.ticksSize=function(){var t=this.options,e=t.majorTicks,o=t.minorTicks,i=0;return e.visible&&(i=e.size),o.visible&&(i=Math.max(o.size,i)),i},e.prototype.labelsCount=function(){var e=t.prototype.labelsCount.call(this),o=this.options;return o.endAngle-o.startAngle>=360&&o.max%o.majorUnit==0&&(e-=1),e},e.prototype.renderLabels=function(){var t=this,e=this.options,o=this.arc.clone(),i=o.getRadiusX(),r=this.tickAngles(o,e.majorUnit),n=e.rangeSize=e.rangeSize||.1*i,s=new Rh,a=.05*i;Ct(e.rangeDistance)?a=e.rangeDistance:e.rangeDistance=a;var p=e.labels,l=p.position===Fc,c=Ct(this.labelElements);l&&(i-=this.ticksSize(),this.hasRanges()&&!c&&(i-=n+a),o.setRadiusX(i).setRadiusY(i));for(var h=this.labels,u=h.length,d=$(p.padding),f=(d.left+d.right)/2,g=(d.top+d.bottom)/2,y=0;y<u;y++){var v=h[y],m=v.box.width()/2,x=v.box.height()/2,b=r[y],_=(b-Mh)*Nc,w=o.pointAt(b),C=w.x+Math.cos(_)*(m+f)*(l?1:-1),k=w.y+Math.sin(_)*(x+g)*(l?1:-1);v.reflow(new de(C-m,k-x,C+m,k+x));var A=new D.geometry.Point(v.box.x1,v.box.y1),S=void 0;if(c){var P=(S=t.labelElements.children[y]).bbox().origin,O=S.transform()||D.geometry.transform();O.translate(A.x-P.x,A.y-P.y),S.transform(O)}else S=Kc(v,e.labels),s.append(S);t.bbox=D.geometry.Rect.union(t.bbox,S.bbox())}return s},e.prototype.repositionRanges=function(){var t=this.ranges.children;if(t.length>0){var e=this.options,o=e.rangeDistance,i=e.rangeSize,r=this.getRangeRadius();this.options.labels.position===Fc&&(r+=i+o);for(var n=r+i/2,s=0;s<t.length;s++)t[s]._geometry.setRadiusX(n).setRadiusY(n);this.bbox=D.geometry.Rect.union(this.bbox,this.ranges.bbox())}},e.prototype.renderRanges=function(){var t=this,e=this.rangeSegments(),o=e.length,i=new Rh;if(o){var r=this.options,n=r.rangeSize,s=r.reverse,a=r.rangeDistance,p=this.getRangeRadius();this.radius(this.radius()-n-a);for(var l=0;l<o;l++){var c=e[l],h=t.slotAngle(c[s?"to":"from"]),u=t.slotAngle(c[s?"from":"to"]);u-h!=0&&i.append(t.createRange(h,u,p,c))}}return i},e.prototype.createRange=function(t,e,o,i){var r=this.options.rangeSize,n=new D.geometry.Arc(this.arc.center,{radiusX:o+r/2,radiusY:o+r/2,startAngle:t,endAngle:e});return new Eh(n,{stroke:{width:r,color:i.color,opacity:i.opacity,lineCap:i.lineCap}})},e.prototype.rangeSegments=function(){var t=this.options,e=t.ranges||[],o=e.length,i=[];if(o){var r=t.min,n=t.max,s=t.rangePlaceholderColor;i.push(Lh(r,n,s));for(var a=0;a<o;a++)for(var p=Jc(e[a],r,n),l=i.length,c=0;c<l;c++){var h=i[c];if(h.from<=p.from&&p.from<=h.to){i.push(Lh(p.from,p.to,p.color,p.opacity)),h.from<=p.to&&p.to<=h.to&&i.push(Lh(p.to,h.to,s,p.opacity)),h.to=p.from;break}}}return i},e.prototype.getRangeRadius=function(){var t=this.arc,e=this.options,o=e.rangeSize,i=e.rangeDistance,r=e.majorTicks.size;return e.labels.position===Gc?t.getRadiusX()-r-i-o:t.getRadiusX()-o},e.prototype.renderArc=function(t,e){var o=this.options;return this.arc=new D.geometry.Arc(t,{radiusX:e,radiusY:e,startAngle:o.startAngle+Mh,endAngle:o.endAngle+Mh})},e.prototype.renderTicks=function(){var t=this.arc,e=this.options,o=t.clone();this.majorTickAngles=this.tickAngles(t,e.majorUnit),this.majorTicks=Bh(o,this.majorTickAngles,e.majorUnit,e.majorTicks);var i=new Rh;i.append(this.majorTicks);var r=e.majorTicks.size,n=e.minorTicks.size;if(this._tickDifference=r-n,e.labels.position===Gc){var s=o.getRadiusX();o.setRadiusX(s-r+n).setRadiusY(s-r+n)}return this.minorTickAngles=this.normalizeTickAngles(this.tickAngles(t,e.minorUnit)),this.minorTicks=Bh(o,this.minorTickAngles,e.minorUnit,e.minorTicks),i.append(this.minorTicks),i},e.prototype.normalizeTickAngles=function(t){for(var e=this.options,o=e.majorUnit/e.minorUnit,i=t.length-1;i>=0;i--)i%o==0&&t.splice(i,1);return t},e.prototype.tickAngles=function(t,e){var o=this.options,i=o.reverse,r=o.max-o.min,n=t.endAngle-t.startAngle,s=r/e,a=t.startAngle,p=n/s;i&&(a+=n,p=-p),n>=360&&o.max%e==0&&(s-=1);for(var c=[],h=0;h<s;h++)c.push(Bt(a,l)),a+=p;return Bt(a)<=t.endAngle&&c.push(a),c},e.prototype.radius=function(t){if(!t)return this.arc.getRadiusX();this.arc.setRadiusX(t).setRadiusY(t),this.repositionTicks(this.majorTicks.children,this.majorTickAngles),this.repositionTicks(this.minorTicks.children,this.minorTickAngles,!0)},e.prototype.repositionTicks=function(t,e,o){var i=o&&this._tickDifference||0,r=this.arc,n=r.getRadiusX();o&&this.options.labels.position===Gc&&0!==i&&(r=this.arc.clone()).setRadiusX(n-i).setRadiusY(n-i);for(var s=0;s<t.length;s++){var a=r.pointAt(e[s]),p=t[s].segments,l=a.x-p[0].anchor().x,c=a.y-p[0].anchor().y;t[s].transform((new D.geometry.transform).translate(l,c))}},e}(li);Vt(jh,{min:0,max:100,majorTicks:{size:15,align:Fc,color:n,width:Hc,visible:!0},minorTicks:{size:10,align:Fc,color:n,width:Hc,visible:!0},startAngle:-30,endAngle:210,labels:{position:Fc,padding:2}});const Dh=jh;var zh=function(t){function e(e,o){t.call(this,e,o);var i=this.options;i.duration=Math.max(Math.abs(i.newAngle-i.oldAngle)/i.duration*1e3,1)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.step=function(t){var e=this.options,o=ut(e.oldAngle,e.newAngle,t);this.element.transform(D.geometry.transform().rotate(o,e.center))},e}(D.drawing.Animation);Vt(zh,{easing:Uc,duration:Dc}),D.drawing.AnimationFactory.current.register(Wc,zh);const Vh=zh;var Hh=D.drawing.Circle,Nh=D.drawing.Group,Fh=D.drawing.Path,Uh=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setAngle=function(t){this.elements.transform(D.geometry.transform().rotate(t,this.center))},e.prototype.repaint=function(){var t=this.scale,e=this.options,o=t.slotAngle(e._oldValue),i=t.slotAngle(e.value);!1===e.animation.transitions?this.setAngle(i):new Vh(this.elements,Y(e.animation,{oldAngle:o,newAngle:i})).play()},e.prototype.render=function(){var t=this.scale,e=this.options,o=new Nh;return!1!==e.animation&&Y(e.animation,{startAngle:0,center:t.arc.center,reverse:t.options.reverse}),o.append(this._renderNeedle(),this._renderCap()),this.elements=o,this.setAngle(Nc),o},e.prototype.reflow=function(t){var e=this.center=t.center,o=Et(this.options.length||1,.1,1.5),i=this.radius=t.getRadiusX()*o,r=this.capSize=Math.round(i*this.options.cap.size);this.bbox=D.geometry.Rect.fromPoints(new D.geometry.Point(e.x-r,e.y-r),new D.geometry.Point(e.x+r,e.y+r))},e.prototype._renderNeedle=function(){var t=this.scale.options.minorTicks.size,e=this.center,o=this.options.color,i=new Fh({fill:{color:o},stroke:{color:o,width:Hc}});return i.moveTo(e.x+this.radius-t,e.y).lineTo(e.x,e.y-this.capSize/2).lineTo(e.x,e.y+this.capSize/2).close(),i},e.prototype._renderCap=function(){var t=this.options,e=t.cap.color||t.color,o=new D.geometry.Circle(this.center,this.capSize);return new Hh(o,{fill:{color:e},stroke:{color:e}})},e}(uh);Vt(Uh,{cap:{size:.05},arrow:{width:16,height:14},animation:{type:Wc,duration:Dc}});const Gh=Uh;var Wh=D.drawing.Group,Xh=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflow=function(t){var e=this,o=this.pointers;this.scale.reflow(t),this._initialPlotArea=this.scale.bbox;for(var i=0;i<o.length;i++)o[i].reflow(e.scale.arc),e._initialPlotArea=D.geometry.Rect.union(e._initialPlotArea,o[i].bbox);this.fitScale(t),this.alignScale(t),this._buildVisual(this.gaugeArea,o,this.scale),this._draw()},e.prototype._buildVisual=function(t,e,o){var i=this._visuals=new Wh;i.append(t),i.append(o.ticks),i.append(o.ranges),this._buildPointers(e),i.append(o.labelElements)},e.prototype._buildPointers=function(t){for(var e=0;e<t.length;e++){var o=t[e];o.render(),this._visuals.append(o.elements),o.value(o.options.value)}},e.prototype.fitScale=function(t){for(var e,o,i,r,n,s=this,a=this.scale.arc,p=this._initialPlotArea,c=Math.abs(this.getDiff(p,t)),h=Bt(c,l),u=Bt(-c,l),d=0,f=0;!(!(f++<100)||(d=n===i?d+1:0)>5||h!==r&&0<=(e=s.getPlotBox(h,t,a))&&e<=2||u!==r&&0<=(i=s.getPlotBox(u,t,a))&&i<=2||(r=e>0&&i>0?2*h:e<0&&i<0?2*u:Bt((h+u)/2||1,l),0<=(o=s.getPlotBox(r,t,a))&&o<=2));)n=i,o>0?(u=r,i=o):(h=r,e=o)},e.prototype.getPlotBox=function(t,e,o){var i=this.scale,r=this.pointers,n=o.getRadiusX(),s=o.clone();s.setRadiusX(n+t).setRadiusY(n+t),i.arc=s,i.reflow(e),this.plotBbox=i.bbox;for(var a=0;a<r.length;a++)r[a].reflow(s),this.plotBbox=D.geometry.Rect.union(this.plotBbox,r[a].bbox);return this.getDiff(this.plotBbox,e)},e.prototype.getDiff=function(t,e){return Math.min(e.width()-t.width(),e.height()-t.height())},e.prototype.alignScale=function(t){var e=this.plotBbox.center(),o=t.center(),i=e.x-o.x,r=e.y-o.y,n=this.scale,s=this.pointers;n.arc.center.x-=i,n.arc.center.y-=r,n.reflow(t);for(var a=0;a<s.length;a++)s[a].reflow(n.arc),this.plotBbox=D.geometry.Rect.union(n.bbox,s[a].bbox)},e.prototype._createModel=function(){var t=this.options,e=t.pointer,o=this.scale=new Dh(t.scale,this.contextService);this.pointers=[];for(var i=R(e)?e:[e],r=0;r<i.length;r++){var n=new Gh(o,Y({},i[r],{animation:{transitions:t.transitions}}));this.pointers.push(n)}},e}(ih);Vt(Xh,{transitions:!0,gaugeArea:{background:""}});const Yh=Xh;var qh=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.rangeSegments=function(){var t=this.options;return[{from:t.min,to:t.max,color:t.rangePlaceholderColor,lineCap:t.rangeLineCap}]},e.prototype.hasRanges=function(){return!0},e.prototype.placeholderRangeAngle=function(t){var e=this.ranges.children[0].geometry();this.options.reverse?e.setEndAngle(t):e.setStartAngle(t)},e.prototype.addRange=function(t,e,o){var i=this.options.reverse,r=this.slotAngle(i?e:t),n=this.slotAngle(i?t:e),s=this.createRange(r,n,this.getRangeRadius(),o);return this.ranges.append(s),s},e}(Dh);Vt(qh,{min:0,max:100,majorTicks:{visible:!1},minorTicks:{visible:!1},labels:{visible:!1},startAngle:0,endAngle:180,rangeLineCap:"round"});const Qh=qh;var Zh=function(t){function e(e,o){t.call(this,e,o);var i=this.options,r=Math.abs(i.newAngle-i.oldAngle)/i.duration*1e3;i.duration=Et(r,Dc,800);var n=e.elements.options.get("stroke.color"),s=e.currentColor();n!==s&&(this.startColor=new D.Color(n),this.color=new D.Color(s))}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.step=function(t){var e=this,o=e.options,i=e.startColor,r=e.color,n=ut(o.oldAngle,o.newAngle,t);if(this.element.angle(n),r){var s=Bt(ut(i.r,r.r,t)),a=Bt(ut(i.g,r.g,t)),p=Bt(ut(i.b,r.b,t));this.element.stroke(new D.Color(s,a,p).toHex())}},e}(D.drawing.Animation);Vt(Zh,{easing:Uc,duration:Dc}),D.drawing.AnimationFactory.current.register(Xc,Zh);const Kh=Zh;var Jh=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.repaint=function(){var t=this.scale,e=this.options,o=t.slotAngle(e._oldValue),i=t.slotAngle(e.value);this.animation&&this.animation.abort(),!1===e.animation.transitions?(this.angle(i),this.stroke(this.currentColor())):(this.animation=new Kh(this,Y(e.animation,{oldAngle:o,newAngle:i})),this.animation.play())},e.prototype.angle=function(t){var e=this.elements.geometry();this.scale.options.reverse?e.setStartAngle(t):e.setEndAngle(t),this.scale.placeholderRangeAngle(t)},e.prototype.stroke=function(t){this.elements.stroke(t)},e.prototype.render=function(){if(!this.elements){var t=this.scale,e=this.options;!1!==e.animation&&Y(e.animation,{startAngle:0,center:t.arc.center,reverse:t.options.reverse}),this.elements=t.addRange(t.options.min,this.options.value,{color:this.currentColor(),opacity:e.opacity,lineCap:t.options.rangeLineCap})}},e.prototype.currentColor=function(){var t=this.scale.options,e=t.min,o=t.max,i=this.options,r=i.colors,n=i.color,s=i.value,a=H(s)?s:e;if(r)for(var p=0;p<r.length;p++){var l=r[p],c=l.color,h=l.from;void 0===h&&(h=e);var u=l.to;if(void 0===u&&(u=o),h<=a&&a<=u)return c}return n},e.prototype.reflow=function(){this.render(),this.bbox=this.elements.bbox()},e}(uh);Vt(Jh,{animation:{type:Xc,duration:Dc}});const $h=Jh;var tu=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._initTheme=function(e){t.prototype._initTheme.call(this,e),this.options.color=this.options.color||(this.theme.pointer||{}).color},e.prototype._createModel=function(){var t=this.options,e=this.scale=new Qh(t.scale,this.contextService),o=new $h(e,Y({},{colors:t.colors,color:t.color,value:t.value,opacity:t.opacity,animation:{transitions:t.transitions}}));this.pointers=[o]},e.prototype._buildPointers=function(t){for(var e=0;e<t.length;e++){var o=t[e];o.render(),o.value(o.options.value)}},e.prototype._setValueOptions=function(t){this.options.value=t},e.prototype.currentColor=function(){var t=this.pointers[0];if(t)return t.currentColor()},e.prototype.centerLabelPosition=function(t,e){var o=this.getSize(),i=this.scale.arc.center,r=i.x-t/2,n=i.y-e/2;if(t<o.width){var s=r+t;r=Math.max(r,0),s>o.width&&(r-=s-o.width)}if(e<o.height){var a=this.scale.bbox,p=a.bottomRight().y,l=n+e;n=Math.max(n,a.origin.y),l>p&&(n-=l-p)}return{left:r,top:n}},e}(Yh);const eu=tu;var ou=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._createModel=function(){var e=this.options.scale;"number"!=typeof e.startAngle&&(e.startAngle=90),e.endAngle=e.startAngle+360,t.prototype._createModel.call(this)},e}(eu);const iu=ou;var ru=function(t){function e(e){t.call(this),this.setOptions(e),this.initProperties()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){},e.prototype.setOptions=function(t){this.options=Object.assign({},this.options,t),this.quietZoneLength=this.options.addQuietZone?2*this.options.quietZoneLength:0},e.prototype.encode=function(t,e,o){var i=Ct(t)?String(t):t;return this.initValue(i,e,o),this.options.addQuietZone&&this.addQuietZone(),this.addData(),this.options.addQuietZone&&this.addQuietZone(),{baseUnit:this.baseUnit,pattern:this.pattern}},e.prototype.initValue=function(){},e.prototype.addQuietZone=function(){this.pattern.push(this.options.quietZoneLength||10)},e.prototype.addData=function(){},e.prototype.invalidCharacterError=function(t){throw new Error('Character "'+t+'" is not valid for symbology '+this.name+".")},e}(D.Class);Vt(ru,{quietZoneLength:10,addQuietZone:!0,addCheckSum:!0});var nu=Object.assign,su=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),nu(this,{name:"Code 11",characterMap:["111121","211121","121121","221111","112121","212111","122111","111221","211211","211111","112111"],cCheckSumTotal:10,kCheckSumTotal:9,kCheckSumMinLength:10,checkSumMod:11,DASH_VALUE:10,DASH:"-",START:"112211",STOP:"11221"})},e.prototype.initValue=function(t,e){this.pattern=[],this.value=t,this.width=e,this.totalUnits=0},e.prototype.addData=function(){var t=this.value;this.addPattern(this.START);for(var e=0;e<t.length;e++)this.addCharacter(t.charAt(e));this.options.addCheckSum&&this.addCheckSum(),this.addPattern(this.STOP),this.setBaseUnit()},e.prototype.setBaseUnit=function(){this.baseUnit=this.width/(this.totalUnits+this.quietZoneLength)},e.prototype.addCheckSum=function(){var t=this.value,e=t.length,o=this.getWeightedSum(t,e,this.cCheckSumTotal)%this.checkSumMod;if(this.checksum=String(o),this.addPattern(this.characterMap[o]),++e>=this.kCheckSumMinLength){var i=(o+this.getWeightedSum(t,e,this.kCheckSumTotal))%this.checkSumMod;this.checksum+=i,this.addPattern(this.characterMap[i])}},e.prototype.getWeightedSum=function(t,e,o){for(var i=0,r=0;r<t.length;r++)i+=this.weightedValue(this.getValue(t.charAt(r)),e,r,o);return i},e.prototype.weightedValue=function(t,e,o,i){return((e-o)%i||i)*t},e.prototype.getValue=function(t){return isNaN(t)?(t!==this.DASH&&this.invalidCharacterError(t),this.DASH_VALUE):parseInt(t,10)},e.prototype.addCharacter=function(t){var e=this.getValue(t),o=this.characterMap[e];this.addPattern(o)},e.prototype.addPattern=function(t){for(var e,o=0;o<t.length;o++)e=parseInt(t.charAt(o),10),this.pattern.push(e),this.totalUnits+=e},e}(ru);Vt(su,{addCheckSum:!0});var au=Object.assign,pu=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),au(this,{minBaseUnitLength:.7})},e.prototype.addData=function(){var t=this.value;this.addStart();for(var e=0;e<t.length;e++)this.addCharacter(t.charAt(e));this.options.addCheckSum&&this.pushCheckSum(),this.addStop(),this.prepareValues()},e.prototype.addCharacter=function(t){var e=this.characterMap[t];e||this.invalidCharacterError(t),this.addBase(e)},e.prototype.addBase=function(){},e}(ru),lu=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),au(this,{name:"Code 39",checkSumMod:43,minRatio:2.5,maxRatio:3,gapWidth:1,splitCharacter:"|",patternMappings:{b:"1|",w:"1|",B:"ratio|",W:"ratio|"},characterMap:{0:{pattern:"bwbWBwBwb",value:0},1:{pattern:"BwbWbwbwB",value:1},2:{pattern:"bwBWbwbwB",value:2},3:{pattern:"BwBWbwbwb",value:3},4:{pattern:"bwbWBwbwB",value:4},5:{pattern:"BwbWBwbwb",value:5},6:{pattern:"bwBWBwbwb",value:6},7:{pattern:"bwbWbwBwB",value:7},8:{pattern:"BwbWbwBwb",value:8},9:{pattern:"bwBWbwBwb",value:9},A:{pattern:"BwbwbWbwB",value:10},B:{pattern:"bwBwbWbwB",value:11},C:{pattern:"BwBwbWbwb",value:12},D:{pattern:"bwbwBWbwB",value:13},E:{pattern:"BwbwBWbwb",value:14},F:{pattern:"bwBwBWbwb",value:15},G:{pattern:"bwbwbWBwB",value:16},H:{pattern:"BwbwbWBwb",value:17},I:{pattern:"bwBwbWBwb",value:18},J:{pattern:"bwbwBWBwb",value:19},K:{pattern:"BwbwbwbWB",value:20},L:{pattern:"bwBwbwbWB",value:21},M:{pattern:"BwBwbwbWb",value:22},N:{pattern:"bwbwBwbWB",value:23},O:{pattern:"BwbwBwbWb",value:24},P:{pattern:"bwBwBwbWb",value:25},Q:{pattern:"bwbwbwBWB",value:26},R:{pattern:"BwbwbwBWb",value:27},S:{pattern:"bwBwbwBWb",value:28},T:{pattern:"bwbwBwBWb",value:29},U:{pattern:"BWbwbwbwB",value:30},V:{pattern:"bWBwbwbwB",value:31},W:{pattern:"BWBwbwbwb",value:32},X:{pattern:"bWbwBwbwB",value:33},Y:{pattern:"BWbwBwbwb",value:34},Z:{pattern:"bWBwBwbwb",value:35},"-":{pattern:"bWbwbwBwB",value:36},".":{pattern:"BWbwbwBwb",value:37}," ":{pattern:"bWBwbwBwb",value:38},$:{pattern:"bWbWbWbwb",value:39},"/":{pattern:"bWbWbwbWb",value:40},"+":{pattern:"bWbwbWbWb",value:41},"%":{pattern:"bwbWbWbWb",value:42},START:{pattern:"bWbwBwBwb"}}})},e.prototype.initValue=function(t,e,o){this.width=e,this.height=o,this.value=t,this.dataLength=t.length,this.pattern=[],this.patternString=""},e.prototype.prepareValues=function(){var t,e=this.minBaseUnitLength,o=this.minRatio,i=Math.ceil(Math.max(.15*this.width,24)),r=this.maxRatio;if(this.height<i)throw new Error("Insufficient height for Code39 encoding: the current height is "+this.height+"px and the minimum height is "+i+"px.");for(t=this.getBaseUnit(r);t<e&&r>o;)r=parseFloat((r-.1).toFixed(1)),t=this.getBaseUnit(r);if(t<e){var n=Math.ceil(this.getBaseWidth(o)*e);throw new Error("Insufficient width for Code39 encoding: the current width is "+this.width+'px and the minimum width for value "'+this.value+'" is '+n+"px.")}this.ratio=r,this.baseUnit=t,this.patternString=this.patternString.substring(0,this.patternString.length-1),this.pattern=this.pattern.concat(this.patternString.replace(/ratio/g,r).split(this.splitCharacter))},e.prototype.getBaseUnit=function(t){return this.width/this.getBaseWidth(t)},e.prototype.getBaseWidth=function(t){var e=3*(t+2);return this.quietZoneLength+e*(this.dataLength+2)+this.gapWidth*(this.dataLength+1)},e.prototype.addStart=function(){this.addPattern(this.characterMap.START.pattern),this.addCharacterGap()},e.prototype.addBase=function(t){this.addPattern(t.pattern),this.addCharacterGap()},e.prototype.addStop=function(){this.addPattern(this.characterMap.START.pattern)},e.prototype.addPattern=function(t){for(var e=0;e<t.length;e++)this.patternString+=this.patternMappings[t.charAt(e)]},e.prototype.addCharacterGap=function(){this.patternString+=this.gapWidth+this.splitCharacter},e}(pu);Vt(lu,{addCheckSum:!1});var cu={addCharacter:function(t){this.characterMap[t]?this.addBase(this.characterMap[t]):t.charCodeAt(0)>127?this.invalidCharacterError(t):this.addExtended(t.charCodeAt(0))},addExtended:function(t){for(var e,o=this,i=0;i<this.extendedMappings.length;i++)if(e=o.extendedMappings[i].call(o,t)){for(var r=0;r<e.length;r++){var n=e[r];o.addBase(n)}return void(o.dataLength+=e.length-1)}},extendedMappings:[function(t){if(97<=t&&t<=122)return[this.characterMap[this.shiftCharacters[0]],this.characterMap[String.fromCharCode(t-32)]]},function(t){if(33<=t&&t<=58)return[this.characterMap[this.shiftCharacters[1]],this.characterMap[String.fromCharCode(t+32)]]},function(t){if(1<=t&&t<=26)return[this.characterMap[this.shiftCharacters[2]],this.characterMap[String.fromCharCode(t+64)]]},function(t){var e,o,i=this;if(this.specialAsciiCodes[t]){e=[];for(var r=0;r<this.specialAsciiCodes[t].length;r++)e.push(i.characterMap[i.shiftCharacters[3]]),e.push(i.characterMap[i.specialAsciiCodes[t][r]])}else o=6*Math.floor(t/32)+(t-27)%32+64,e=[this.characterMap[this.shiftCharacters[3]],this.characterMap[String.fromCharCode(o)]];return e}],specialAsciiCodes:{0:["U"],64:["V"],96:["W"],127:["T","X","Y","Z"]},shiftValuesAsciiCodes:{39:36,40:47,41:43,42:37},characterMap:{"+":!1,"/":!1,$:!1,"%":!1},shiftCharacters:["SHIFT0","SHIFT1","SHIFT2","SHIFT3"]},hu=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),Y(this,cu,{name:"Code 39 extended",characterMap:{SHIFT0:{pattern:"bWbwbWbWb",value:41},SHIFT1:{pattern:"bWbWbwbWb",value:40},SHIFT2:{pattern:"bWbWbWbwb",value:39},SHIFT3:{pattern:"bwbWbWbWb",value:42}}})},e}(lu),uu=Object.assign,du=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),uu(this,{name:"Code 93",cCheckSumTotal:20,kCheckSumTotal:15,checkSumMod:47,characterMap:{0:{pattern:"131112",value:0},1:{pattern:"111213",value:1},2:{pattern:"111312",value:2},3:{pattern:"111411",value:3},4:{pattern:"121113",value:4},5:{pattern:"121212",value:5},6:{pattern:"121311",value:6},7:{pattern:"111114",value:7},8:{pattern:"131211",value:8},9:{pattern:"141111",value:9},A:{pattern:"211113",value:10},B:{pattern:"211212",value:11},C:{pattern:"211311",value:12},D:{pattern:"221112",value:13},E:{pattern:"221211",value:14},F:{pattern:"231111",value:15},G:{pattern:"112113",value:16},H:{pattern:"112212",value:17},I:{pattern:"112311",value:18},J:{pattern:"122112",value:19},K:{pattern:"132111",value:20},L:{pattern:"111123",value:21},M:{pattern:"111222",value:22},N:{pattern:"111321",value:23},O:{pattern:"121122",value:24},P:{pattern:"131121",value:25},Q:{pattern:"212112",value:26},R:{pattern:"212211",value:27},S:{pattern:"211122",value:28},T:{pattern:"211221",value:29},U:{pattern:"221121",value:30},V:{pattern:"222111",value:31},W:{pattern:"112122",value:32},X:{pattern:"112221",value:33},Y:{pattern:"122121",value:34},Z:{pattern:"123111",value:35},"-":{pattern:"121131",value:36},".":{pattern:"311112",value:37}," ":{pattern:"311211",value:38},$:{pattern:"321111",value:39},"/":{pattern:"112131",value:40},"+":{pattern:"113121",value:41},"%":{pattern:"211131",value:42},SHIFT0:{pattern:"122211",value:46},SHIFT1:{pattern:"311121",value:45},SHIFT2:{pattern:"121221",value:43},SHIFT3:{pattern:"312111",value:44},START:{pattern:"111141"},TERMINATION_BAR:"1"}})},e.prototype.initValue=function(t,e,o){this.value=t,this.width=e,this.height=o,this.pattern=[],this.values=[],this.dataLength=t.length},e.prototype.prepareValues=function(){var t=Math.ceil(Math.max(.15*this.width,24));if(this.height<t)throw new Error("Insufficient height for Code93 encoding: the current height is "+this.height+"px, the minimum required height is "+t+"px.");if(this.setBaseUnit(),this.baseUnit<this.minBaseUnitLength){var e=Math.ceil(this.minBaseUnitLength*(this.width/this.baseUnit));throw new Error("Insufficient width for Code93 encoding: the current width is "+this.width+'px and the minimum required width for value "'+this.value+'" is '+e+"px.")}},e.prototype.setBaseUnit=function(){this.baseUnit=this.width/(9*(this.dataLength+2+2)+this.quietZoneLength+1)},e.prototype.addStart=function(){var t=this.characterMap.START.pattern;this.addPattern(t)},e.prototype.addStop=function(){this.addStart(),this.pattern.push(this.characterMap.TERMINATION_BAR)},e.prototype.addBase=function(t){this.addPattern(t.pattern),this.values.push(t.value)},e.prototype.pushCheckSum=function(){var t,e=this,o=this._getCheckValues();this.checksum=o.join("");for(var i=0;i<o.length;i++)t=e.characterMap[e._findCharacterByValue(o[i])],e.addPattern(t.pattern)},e.prototype._getCheckValues=function(){var t,e,o=this,i=this.values,r=i.length,n=0;for(e=r-1;e>=0;e--)n+=o.weightedValue(i[e],r-e,o.cCheckSumTotal);for(t=n%this.checkSumMod,n=this.weightedValue(t,1,this.kCheckSumTotal),e=r-1;e>=0;e--)n+=o.weightedValue(i[e],r-e+1,o.kCheckSumTotal);return[t,n%this.checkSumMod]},e.prototype._findCharacterByValue=function(t){for(var e in this.characterMap)if(this.characterMap[e].value===t)return e},e.prototype.weightedValue=function(t,e,o){return(e%o||o)*t},e.prototype.addPattern=function(t){for(var e,o=0;o<t.length;o++)e=parseInt(t.charAt(o),10),this.pattern.push(e)},e}(pu),fu=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),Y(this,cu,{name:"Code 93 extended",pushCheckSum:function(){var t,e=this,o=this._getCheckValues();this.checksum=o.join("");for(var i=0;i<o.length;i++)if(t=o[i],e.shiftValuesAsciiCodes[t])e.addExtended(e.shiftValuesAsciiCodes[t]);else{var r=e._findCharacterByValue(t);e.addPattern(e.characterMap[r].pattern)}}})},e}(du),gu=/^\d+$/,yu=Object.assign,vu=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),yu(this,{name:"Postnet",START:"2",VALID_CODE_LENGTHS:[5,9,11],DIGIT_SEPARATOR:"-",characterMap:["22111","11122","11212","11221","12112","12121","12211","21112","21121","21211"]})},e.prototype.initValue=function(t,e,o){this.height=o,this.width=e,this.baseHeight=o/2,this.value=t.replace(new RegExp(this.DIGIT_SEPARATOR,"g"),""),this.pattern=[],this.validate(this.value),this.checkSum=0,this.setBaseUnit()},e.prototype.addData=function(){var t=this.value;this.addPattern(this.START);for(var e=0;e<t.length;e++)this.addCharacter(t.charAt(e));this.options.addCheckSum&&this.addCheckSum(),this.addPattern(this.START),this.pattern.pop()},e.prototype.addCharacter=function(t){var e=this.characterMap[t];this.checkSum+=parseInt(t,10),this.addPattern(e)},e.prototype.addCheckSum=function(){this.checksum=(10-this.checkSum%10)%10,this.addCharacter(this.checksum)},e.prototype.setBaseUnit=function(){this.baseUnit=this.width/(10*(this.value.length+1)+3+this.quietZoneLength)},e.prototype.validate=function(t){if(gu.test(t)||this.invalidCharacterError(t.match(/[^0-9]/)[0]),!ht(t.length,this.VALID_CODE_LENGTHS))throw new Error("Invalid value length. Valid lengths for the Postnet symbology are "+this.VALID_CODE_LENGTHS.join(",")+".")},e.prototype.addPattern=function(t){for(var e,o=this,i=0;i<t.length;i++)e=o.height-o.baseHeight*t.charAt(i),o.pattern.push({width:1,y1:e,y2:o.height}),o.pattern.push(1)},e}(ru),mu=/^\d+$/,xu=/^[a-z0-9]+$/i,bu=Object.assign,_u=function(t){function e(e){t.call(this),this.encoding=e,this.initProperties()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){},e.prototype.addStart=function(){},e.prototype.is=function(){},e.prototype.isCode=function(){return!1},e.prototype.move=function(){},e.prototype.pushState=function(){},e}(D.Class),wu=function(t){function e(e,o){t.call(this,e),this.states=o,this._initMoves(o)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),Y(this,{FNC4:"FNC4",SHIFT:98})},e.prototype.addStart=function(){this.encoding.addPattern(this.START)},e.prototype.is=function(t,e){var o=t.charCodeAt(e);return this.isCode(o)},e.prototype.move=function(t){for(var e=0;!this._moves[e].call(this,t)&&e<this._moves.length;)e++},e.prototype.pushState=function(t){var e,o=this.states,i=t.value,r=i.length;if(ht("C",o)){var n=i.substr(t.index).match(/\d{4,}/g);n&&(r=i.indexOf(n[0],t.index))}for(;(e=t.value.charCodeAt(t.index))>=0&&this.isCode(e)&&t.index<r;)this.encoding.addPattern(this.getValue(e)),t.index++},e.prototype._initMoves=function(t){this._moves=[],ht(this.FNC4,t)&&this._moves.push(this._moveFNC),ht(this.shiftKey,t)&&this._moves.push(this._shiftState),this._moves.push(this._moveState)},e.prototype._moveFNC=function(t){if(t.fnc)return t.fnc=!1,t.previousState===this.key},e.prototype._shiftState=function(t){if(t.previousState===this.shiftKey&&(t.index+1>=t.value.length||this.encoding[this.shiftKey].is(t.value,t.index+1)))return this.encoding.addPattern(this.SHIFT),t.shifted=!0,!0},e.prototype._moveState=function(){return this.encoding.addPattern(this.MOVE),!0},e}(_u),Cu={};Cu.A=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),bu(this,{key:"A",shiftKey:"B",MOVE:101,START:103})},e.prototype.isCode=function(t){return 0<=t&&t<96},e.prototype.getValue=function(t){return t<32?t+64:t-32},e}(wu),Cu.B=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),bu(this,{key:"B",shiftKey:"A",MOVE:100,START:104})},e.prototype.isCode=function(t){return 32<=t&&t<128},e.prototype.getValue=function(t){return t-32},e}(wu),Cu.C=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),bu(this,{key:"C",MOVE:99,START:105})},e.prototype.addStart=function(){this.encoding.addPattern(this.START)},e.prototype.is=function(t,e){var o=Mu(t,e,4);return(e+4<=t.length||2===t.length)&&mu.test(o)},e.prototype.move=function(){this.encoding.addPattern(this.MOVE)},e.prototype.pushState=function(t){for(var e;(e=Mu(t.value,t.index,2))&&mu.test(e)&&2===e.length;)this.encoding.addPattern(parseInt(e,10)),t.index+=2},e.prototype.getValue=function(t){return t},e}(_u),Cu.FNC4=function(t){function e(e,o){t.call(this,e),this._initSubStates(o)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),bu(this,{key:"FNC4",dependentStates:["A","B"]})},e.prototype.addStart=function(t){var e=t.value.charCodeAt(0)-128,o=this._getSubState(e);this.encoding[o].addStart()},e.prototype.is=function(t,e){var o=t.charCodeAt(e);return this.isCode(o)},e.prototype.isCode=function(t){return 128<=t&&t<256},e.prototype.pushState=function(t){var e,o=this._initSubState(t),i=this.encoding,r=o.value.length;if(t.index+=r,r<3)for(;o.index<r;o.index++)e=o.value.charCodeAt(o.index),o.state=this._getSubState(e),o.previousState!==o.state&&(o.previousState=o.state,i[o.state].move(o)),i.addPattern(i[o.state].MOVE),i.addPattern(i[o.state].getValue(e));else o.state!==o.previousState&&i[o.state].move(o),this._pushStart(o),i.pushData(o,this.subStates),t.index<t.value.length&&this._pushStart(o);t.fnc=!0,t.state=o.state},e.prototype._pushStart=function(t){this.encoding.addPattern(this.encoding[t.state].MOVE),this.encoding.addPattern(this.encoding[t.state].MOVE)},e.prototype._initSubState=function(t){var e={value:this._getAll(t.value,t.index),index:0};return e.state=this._getSubState(e.value.charCodeAt(0)),e.previousState=t.previousState===this.key?e.state:t.previousState,e},e.prototype._initSubStates=function(t){this.subStates=[];for(var e=0;e<t.length;e++)ht(t[e],this.dependentStates)&&this.subStates.push(t[e])},e.prototype._getSubState=function(t){for(var e=this,o=0;o<this.subStates.length;o++)if(e.encoding[e.subStates[o]].isCode(t))return e.subStates[o]},e.prototype._getAll=function(t,e){for(var o,i="",r=e;(o=t.charCodeAt(r++))&&this.isCode(o);)i+=String.fromCharCode(o-128);return i},e}(_u),Cu.FNC1=function(t){function e(e,o){t.call(this,e),this.states=o}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),bu(this,{key:"FNC1",startState:"C",startAI:"(",endAI:")",dependentStates:["C","B"],applicationIdentifiers:{22:{max:29,type:"alphanumeric"},402:{length:17},7004:{max:4,type:"alphanumeric"},242:{max:6,type:"alphanumeric"},8020:{max:25,type:"alphanumeric"},703:{min:3,max:30,type:"alphanumeric"},8008:{min:8,max:12,type:"alphanumeric"},253:{min:13,max:17,type:"alphanumeric"},8003:{min:14,max:30,type:"alphanumeric"},multiKey:[{ids:["15","17","8005","8100"],ranges:[[11,13],[310,316],[320,336],[340,369]],type:{length:6}},{ids:["240","241","250","251","400","401","403","7002","8004","8007","8110"],ranges:[[-9]],type:{max:30,type:"alphanumeric"}},{ids:["7001"],ranges:[[410,414]],type:{length:13}},{ids:["10","21","254","420","8002"],type:{max:20,type:"alphanumeric"}},{ids:["00","8006","8017","8018"],type:{length:18}},{ids:["01","02","8001"],type:{length:14}},{ids:["422"],ranges:[[424,426]],type:{length:3}},{ids:["20","8102"],type:{length:2}},{ids:["30","37"],type:{max:8,type:"alphanumeric"}},{ids:["390","392"],type:{max:15,type:"alphanumeric"}},{ids:["421","423"],type:{min:3,max:15,type:"alphanumeric"}},{ids:["391","393"],type:{min:3,max:18,type:"alphanumeric"}},{ids:["7003","8101"],type:{length:10}}]},START:102})},e.prototype.addStart=function(){this.encoding[this.startState].addStart()},e.prototype.is=function(){return ht(this.key,this.states)},e.prototype.pushState=function(t){var e,o,i,r=this,n=this.encoding,s=t.value.replace(/\s/g,""),a=new RegExp("["+this.startAI+this.endAI+"]","g"),p=t.index,l={state:this.startState};for(n.addPattern(this.START);;){if(l.index=0,(e=(i=s.charAt(p)===r.startAI?2:0)>0?r.getBySeparator(s,p):r.getByLength(s,p)).ai.length)o=p+i+e.id.length+e.ai.length;else if((o=s.indexOf(r.startAI,p+1))<0){if(p+e.ai.max+e.id.length+i<s.length)throw new Error("Separators are required after variable length identifiers");o=s.length}if(l.value=s.substring(p,o).replace(a,""),r.validate(e,l.value),n.pushData(l,r.dependentStates),o>=s.length)break;p=o,l.state!==r.startState&&(n[r.startState].move(l),l.state=r.startState),e.ai.length||n.addPattern(r.START)}t.index=t.value.length},e.prototype.validate=function(t,e){var o=e.substr(t.id.length),i=t.ai;if(!i.type&&!mu.test(o))throw new Error("Application identifier "+t.id+" is numeric only but contains non numeric character(s).");if("alphanumeric"===i.type&&!xu.test(o))throw new Error("Application identifier "+t.id+" is alphanumeric only but contains non alphanumeric character(s).");if(i.length&&i.length!==o.length)throw new Error("Application identifier "+t.id+" must be "+i.length+" characters long.");if(i.min&&i.min>o.length)throw new Error("Application identifier "+t.id+" must be at least "+i.min+" characters long.");if(i.max&&i.max<o.length)throw new Error("Application identifier "+t.id+" must be at most "+i.max+" characters long.")},e.prototype.getByLength=function(t,e){for(var o,i,r=2;r<=4;r++)if(o=Mu(t,e,r),i=this.getApplicationIdentifier(o)||this.getApplicationIdentifier(o.substring(0,o.length-1)))return{id:o,ai:i};this.unsupportedAIError(o)},e.prototype.unsupportedAIError=function(t){throw new Error("'"+t+"' is not a supported Application Identifier")},e.prototype.getBySeparator=function(t,e){var o=t.indexOf(this.startAI,e),i=t.indexOf(this.endAI,o),r=t.substring(o+1,i),n=this.getApplicationIdentifier(r)||this.getApplicationIdentifier(r.substr(r.length-1));return n||this.unsupportedAIError(r),{ai:n,id:r}},e.prototype.getApplicationIdentifier=function(t){var e=this.applicationIdentifiers,o=e.multiKey;if(e[t])return e[t];for(var i=0;i<o.length;i++){if(o[i].ids&&ht(t,o[i].ids))return o[i].type;if(o[i].ranges)for(var r=o[i].ranges,n=0;n<r.length;n++)if(r[n][0]<=t&&t<=r[n][1])return o[i].type}},e}(_u);var ku=function(t){function e(e){t.call(this,e),this._initStates()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),bu(this,{characterMap:[212222,222122,222221,121223,121322,131222,122213,122312,132212,221213,221312,231212,112232,122132,122231,113222,123122,123221,223211,221132,221231,213212,223112,312131,311222,321122,321221,312212,322112,322211,212123,212321,232121,111323,131123,131321,112313,132113,132311,211313,231113,231311,112133,112331,132131,113123,113321,133121,313121,211331,231131,213113,213311,213131,311123,311321,331121,312113,312311,332111,314111,221411,431111,111224,111422,121124,121421,141122,141221,112214,112412,122114,122411,142112,142211,241211,221114,413111,241112,134111,111242,121142,121241,114212,124112,124211,411212,421112,421211,212141,214121,412121,111143,111341,131141,114113,114311,411113,411311,113141,114131,311141,411131,211412,211214,211232,2331112],STOP:106})},e.prototype._initStates=function(){for(var t=this,e=0;e<this.states.length;e++)t[t.states[e]]=new Cu[t.states[e]](t,t.states)},e.prototype.initValue=function(t,e,o){this.pattern=[],this.value=t,this.width=e,this.height=o,this.checkSum=0,this.totalUnits=0,this.index=0,this.position=1},e.prototype.addData=function(){var t={value:this.value,index:0,state:""};0!==this.value.length&&(t.state=t.previousState=this.getNextState(t,this.states),this.addStart(t),this.pushData(t,this.states),this.addCheckSum(),this.addStop(),this.setBaseUnit())},e.prototype.pushData=function(t,e){for(var o=this;o[t.state].pushState(t),!(t.index>=t.value.length);)if(t.shifted){var i=t.state;t.state=t.previousState,t.previousState=i,t.shifted=!1}else t.previousState=t.state,t.state=o.getNextState(t,e),o[t.state].move(t)},e.prototype.addStart=function(t){this[t.state].addStart(t),this.position=1},e.prototype.addCheckSum=function(){this.checksum=this.checkSum%103,this.addPattern(this.checksum)},e.prototype.addStop=function(){this.addPattern(this.STOP)},e.prototype.setBaseUnit=function(){this.baseUnit=this.width/(this.totalUnits+this.quietZoneLength)},e.prototype.addPattern=function(t){for(var e,o=this.characterMap[t].toString(),i=0;i<o.length;i++)e=parseInt(o.charAt(i),10),this.pattern.push(e),this.totalUnits+=e;this.checkSum+=t*this.position++},e.prototype.getNextState=function(t,e){for(var o=0;o<e.length;o++)if(this[e[o]].is(t.value,t.index))return e[o];this.invalidCharacterError(t.value.charAt(t.index))},e}(ru),Au=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),bu(this,{name:"Code 128 A",states:["A"]})},e}(ku),Su=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),bu(this,{name:"Code 128 B",states:["B"]})},e}(ku),Pu=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),bu(this,{name:"Code 128 C",states:["C"]})},e}(ku),Ou=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),bu(this,{name:"Code 128",states:["C","B","A","FNC4"]})},e}(ku),Tu=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),bu(this,{name:"Code GS1-128",states:["FNC1","C","B"]})},e}(ku);function Mu(t,e,o){return t.substring(e,e+o)}var Eu=Object.assign,Iu=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),Eu(this,{characterMap:["12121212","12121221","12122112","12122121","12211212","12211221","12212112","12212121","21121212","21121221"],START:"21",STOP:"121",checkSumType:"",checkSums:Du})},e.prototype.initValue=function(t,e){this.pattern=[],this.value=t,this.checkSumLength=0,this.width=e},e.prototype.setBaseUnit=function(){this.baseUnit=this.width/(12*(this.value.length+this.checkSumLength)+this.quietZoneLength+7)},e.prototype.addData=function(){var t=this.value;this.addPattern(this.START);for(var e=0;e<t.length;e++)this.addCharacter(t.charAt(e));this.options.addCheckSum&&this.addCheckSum(),this.addPattern(this.STOP),this.setBaseUnit()},e.prototype.addCharacter=function(t){var e=this.characterMap[t];e||this.invalidCharacterError(t),this.addPattern(e)},e.prototype.addPattern=function(t){for(var e=0;e<t.length;e++)this.pattern.push(parseInt(t.charAt(e),10))},e.prototype.addCheckSum=function(){var t=this,e=this.checkSums[this.checkSumType].call(this.checkSums,this.value);this.checksum=e.join("");for(var o=0;o<e.length;o++)t.checkSumLength++,t.addPattern(t.characterMap[e[o]])},e}(ru),Ru=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),Eu(this,{name:"MSI Modulo10",checkSumType:"Modulo10"})},e}(Iu),Bu=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),Eu(this,{name:"MSI Modulo11",checkSumType:"Modulo11"})},e}(Iu),Lu=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),Eu(this,{name:"MSI Modulo10 Modulo10",checkSumType:"Modulo10Modulo10"})},e}(Iu),ju=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),Eu(this,{name:"MSI Modulo11 Modulo10",checkSumType:"Modulo11Modulo10"})},e}(Iu),Du={Modulo10:function(t){var e,o,i,r=[0,""],n=t.length%2;for(e=0;e<t.length;e++)r[(e+n)%2]+=parseInt(t.charAt(e),10);for(i=r[0],o=(2*r[1]).toString(),e=0;e<o.length;e++)i+=parseInt(o.charAt(e),10);return[(10-i%10)%10]},Modulo11:function(t){for(var e,o=0,i=t.length,r=0;r<i;r++)o+=(((i-r)%6||6)+1)*t.charAt(r);return 10!=(e=(11-o%11)%11)?[e]:[1,0]},Modulo11Modulo10:function(t){var e,o=this.Modulo11(t);return e=t+o[0],o.concat(this.Modulo10(e))},Modulo10Modulo10:function(t){var e,o=this.Modulo10(t);return e=t+o[0],o.concat(this.Modulo10(e))}},zu=Object.assign,Vu=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),zu(this,{name:"EAN 13",keyTable:["000000","001011","001101","001110","010011","011001","011100","010101","010110","011010"],characterMap:{digits:[[3,2,1,1],[2,2,2,1],[2,1,2,2],[1,4,1,1],[1,1,3,2],[1,2,3,1],[1,1,1,4],[1,3,1,2],[1,2,1,3],[3,1,1,2]],start:[1,1,1],middle:[1,1,1,1,1]}})},e.prototype.initValue=function(t,e,o){var i=String(t);if(12!==i.length||/\D/.test(i))throw new Error('The value of the "EAN13" encoding should be 12 symbols');this.pattern=[],this.options.height=o,this.baseUnit=e/(95+this.quietZoneLength),this.value=i,this.checksum=this.calculateChecksum(),this.leftKey=i[0],this.leftPart=i.substr(1,6),this.rightPart=i.substr(7)+this.checksum},e.prototype.addData=function(){this.addPieces(this.characterMap.start),this.addSide(this.leftPart,this.leftKey),this.addPieces(this.characterMap.middle),this.addSide(this.rightPart),this.addPieces(this.characterMap.start)},e.prototype.addSide=function(t,e){for(var o=this,i=0;i<t.length;i++)e&&parseInt(o.keyTable[e].charAt(i),10)?o.addPieces(Array.prototype.slice.call(o.characterMap.digits[t.charAt(i)]).reverse(),!0):o.addPieces(o.characterMap.digits[t.charAt(i)],!0)},e.prototype.addPieces=function(t,e){for(var o=this,i=0;i<t.length;i++)e?o.pattern.push({y1:0,y2:.95*o.options.height,width:t[i]}):o.pattern.push(t[i])},e.prototype.calculateChecksum=function(){for(var t=0,e=0,o=this.value.split("").reverse().join(""),i=0;i<o.length;i++)i%2?e+=parseInt(o.charAt(i),10):t+=parseInt(o.charAt(i),10);return(10-(3*t+e)%10)%10},e}(ru),Hu=Object.assign,Nu=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),Hu(this,{name:"EAN 8"})},e.prototype.initValue=function(t,e,o){if(7!==t.length||/\D/.test(t))throw new Error("Invalid value provided");this.value=t,this.options.height=o,this.checksum=this.calculateChecksum(this.value),this.leftPart=this.value.substr(0,4),this.rightPart=this.value.substr(4)+this.checksum,this.pattern=[],this.baseUnit=e/(67+this.quietZoneLength)},e}(Vu),Fu={code11:su,code39:lu,code39extended:hu,code93:du,code93extended:fu,code128:Ou,code128a:Au,code128b:Su,code128c:Pu};function Uu(t,e){var o=t.style.display;"canvas"===e&&(t.style.display="block");var i={width:t.clientWidth,height:t.clientHeight};return t.style.display=o,i}Fu["gs1-128"]=Tu,Fu.msimod10=Ru,Fu.msimod11=Bu,Fu.msimod1010=Lu,Fu.msimod1110=ju,Fu.postnet=vu,Fu.ean8=Nu,Fu.ean13=Vu;var Gu=function(t){function e(e,o,i){void 0===i&&(i=ae),t.call(this),this.options=Y({},this.options,o),this.element=e,this.onError=i,this._initElement(),this._initSurface(),this._setOptions(o),o&&Ct(o.value)&&this.redraw()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.destroy=function(){this._destroySurface()},e.prototype._initElement=function(){B(this.element,"k-barcode")},e.prototype._initSurface=function(){var t=this.options,e=this.surface;e&&e.options.type===t.renderAs||(this._destroySurface(),this._initSurfaceElement(),this.surface=this._createSurface())},e.prototype._createSurface=function(){return D.drawing.Surface.create(this.surfaceElement,{type:this.options.renderAs})},e.prototype._destroySurface=function(){this.surface&&(this.surface.destroy(),this.surface=null,this._destroySurfaceElement())},e.prototype._initSurfaceElement=function(){this.surfaceElement||(this.surfaceElement=document.createElement("div"),this.surfaceElement.style.position="relative",this.element.appendChild(this.surfaceElement))},e.prototype._destroySurfaceElement=function(){this.surfaceElement&&this.surfaceElement.parentNode&&(this.surfaceElement.parentNode.removeChild(this.surfaceElement),this.surfaceElement=null)},e.prototype.setOptions=function(t){this._setOptions(t),this._initSurface(),this.redraw()},e.prototype.redraw=function(){var t=this._getSize();this.surface.clear(),this.surface.setSize({width:t.width,height:t.height}),this.createVisual(),this.surface.draw(this.visual)},e.prototype.getSize=function(){return{width:this.element.offsetWidth,height:this.element.offsetHeight}},e.prototype._resize=function(){this.redraw()},e.prototype.createVisual=function(){this.visual=this._render()},e.prototype._render=function(){var t,e,o=this.options,i=o.value,r=o.text,n=$(r.margin),s=this._getSize(),a=o.border||{},p=this.encoding,l=new de(0,0,s.width,s.height).unpad(a.width).unpad(o.padding),c=l.height(),h=new D.drawing.Group;this.contentBox=l,h.append(this._getBackground(s)),r.visible&&(c-=D.drawing.util.measureText(i,{font:r.font}).height+n.top+n.bottom);try{t=p.encode(i,l.width(),c)}catch(t){return this.onError(t),h}return r.visible&&(e=i,o.checksum&&Ct(p.checksum)&&(e+=" "+p.checksum),h.append(this._getText(e))),this.barHeight=c,this._bandsGroup=this._getBands(t.pattern,t.baseUnit),h.append(this._bandsGroup),h},e.prototype.exportVisual=function(){return this._render()},e.prototype._getSize=function(){var t=Uu(this.element,this.options.renderAs),e=new D.geometry.Size(300,100);return t.width>0&&(e.width=t.width),t.height>0&&(e.height=t.height),this.options.width&&(e.width=this.options.width),this.options.height&&(e.height=this.options.height),e},e.prototype.value=function(t){if(!Ct(t))return this.options.value;this.options.value=String(t),this.redraw()},e.prototype._getBands=function(t,e){for(var o,i,r=this.contentBox,n=r.x1,s=new D.drawing.Group,a=0;a<t.length;a++){if(o=(i=q(t[a])?t[a]:{width:t[a],y1:0,y2:this.barHeight}).width*e,a%2){var p=D.geometry.Rect.fromPoints(new D.geometry.Point(n,i.y1+r.y1),new D.geometry.Point(n+o,i.y2+r.y1)),l=D.drawing.Path.fromRect(p,{fill:{color:this.options.color},stroke:null});s.append(l)}n+=o}return s},e.prototype._getBackground=function(t){var e=this.options,o=e.border||{},i=new de(0,0,t.width,t.height).unpad(o.width/2);return D.drawing.Path.fromRect(i.toRect(),{fill:{color:e.background},stroke:{color:o.width?o.color:"",width:o.width,dashType:o.dashType}})},e.prototype._getText=function(t){var e=this.options.text,o=this._textbox=new He(t,{font:e.font,color:e.color,align:"center",vAlign:"bottom",margin:e.margin});return o.reflow(this.contentBox),o.renderVisual(),o.visual},e.prototype._setOptions=function(t){if(this.type=(t.type||this.options.type).toLowerCase(),"upca"===this.type&&(this.type="ean13",t.value="0"+t.value),"upce"===this.type&&(this.type="ean8",t.value="0"+t.value),!Fu[this.type])throw new Error("Encoding '"+this.type+"' is not supported.");this.encoding=new Fu[this.type],this.options=Y({},this.options,t)},e}(D.Class);Vt(Gu,{name:"Barcode",renderAs:"svg",value:"",type:"code39",checksum:!1,width:0,height:0,color:"black",background:"white",text:{visible:!0,font:"16px Consolas, Monaco, Sans Mono, monospace, sans-serif",color:"black",margin:{top:0,bottom:0,left:0,right:0}},border:{width:0,dashType:"solid",color:"black"},padding:{top:0,bottom:0,left:0,right:0}});const Wu=Gu;var Xu={width:500,height:100};const Yu=function(t,e){if(void 0===e&&(e=Xu),!t)throw new Error("Please specify barcode type to validate.");var o=t.toLowerCase(),i="";if("upca"===o?(o="ean13",i="0"):"upce"===o&&(o="ean8",i="0"),!Fu[o])throw new Error("Encoding '"+t+"' is not supported.");return function(t,e,o){return function(i){try{t.encode(o+i,e.width,e.height)}catch(t){return{valid:!1,error:t}}return{valid:!0}}}(new Fu[o],e,i)};var qu=Object.assign;function Qu(t,e){for(var o=[],i=0;i<t.length;)o.push(t.substring(i,i+e)),i+=e;return o}function Zu(t,e){var o=Number(t).toString(2);return o.length<e&&(o=new Array(e-o.length+1).join(0)+o),o}function Ku(t){return parseInt(t,2)}var Ju=function(t){function e(e){t.call(this),this.matrix=e,this.row=e.length-1,this.column=e.length-1,this.startColumn=this.column,this.dir=-1,this.c=0}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.move=function(){this.row+=this.dir*this.c,this.c^=1,this.column=this.startColumn-this.c},e.prototype.getNextCell=function(){for(var t=this;void 0!==this.matrix[this.row][this.column];)t.move(),(t.row<0||t.row>=t.matrix.length)&&(t.dir=-t.dir,t.startColumn-=8!==t.startColumn?2:3,t.column=t.startColumn,t.row=t.dir<0?t.matrix.length-1:0);return{row:this.row,column:this.column}},e.prototype.getNextRemainderCell=function(){if(this.move(),void 0===this.matrix[this.row][this.column])return{row:this.row,column:this.column}},e}(D.Class),$u=function(t){function e(e,o){t.call(this),this.dataString=e,this.version=o}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(D.Class),td=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getEncodingResult=function(t,e){var o=function(t){var e,o=[],i=0,r=t;for(o.push(Vd(r,Sd,Pd,Od,e)),e=o[0].mode,r=r.substr(o[0].modeString.length);r.length>0;){var n=Vd(r,Td,Md,Ed,e);n.mode!==e?(e=n.mode,o.push(n),i++):o[i].modeString+=n.modeString,r=r.substr(n.modeString.length)}return o}(t),i=function(t){for(var e=0,o=0;o<t.length;o++)e+=nd[t[o].mode].getStringBitsLength(t[o].modeString.length);return Math.ceil(e/8)}(o),r=Hd(i,e),n=function(t,e){for(var o="",i=0;i<t.length;i++)o+=nd[t[i].mode].encode(t[i].modeString,e);return o}(o,r);return new $u(n,r)},e}(D.Class),ed=function(t){function e(){t.call(this),this.initProperties()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){qu(this,{modeIndicator:"",bitsInCharacterCount:[]})},e.prototype.getVersionIndex=function(t){return t<10?0:t>26?2:1},e.prototype.getBitsCharacterCount=function(t){return this.bitsInCharacterCount[this.getVersionIndex(t||40)]},e.prototype.getModeCountString=function(t,e){return this.modeIndicator+Zu(t,this.getBitsCharacterCount(e))},e.prototype.encode=function(){},e.prototype.getStringBitsLength=function(){},e.prototype.getValue=function(){},e}(D.Class),od=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),qu(this,{bitsInCharacterCount:[10,12,14],modeIndicator:"0001"})},e.prototype.getValue=function(t){return parseInt(t,10)},e.prototype.encode=function(t,e){var o,i=Qu(t,3),r=this.getModeCountString(t.length,e);for(o=0;o<i.length-1;o++)r+=Zu(i[o],10);return r+Zu(i[o],1+3*i[o].length)},e.prototype.getStringBitsLength=function(t,e){var o=t%3;return 4+this.getBitsCharacterCount(e)+10*Math.floor(t/3)+3*o+(0===o?0:1)},e}(ed),id=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),qu(this,{characters:{0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,G:16,H:17,I:18,J:19,K:20,L:21,M:22,N:23,O:24,P:25,Q:26,R:27,S:28,T:29,U:30,V:31,W:32,X:33,Y:34,Z:35," ":36,$:37,"%":38,"*":39,"+":40,"-":41,".":42,"/":43,":":44},bitsInCharacterCount:[9,11,13],modeIndicator:"0010"})},e.prototype.getValue=function(t){return this.characters[t]},e.prototype.encode=function(t,e){var o,i=Qu(t,2),r=this.getModeCountString(t.length,e);for(o=0;o<i.length-1;o++)r+=Zu(45*this.getValue(i[o].charAt(0))+this.getValue(i[o].charAt(1)),11);return r+Zu(2===i[o].length?45*this.getValue(i[o].charAt(0))+this.getValue(i[o].charAt(1)):this.getValue(i[o].charAt(0)),1+5*i[o].length)},e.prototype.getStringBitsLength=function(t,e){return 4+this.getBitsCharacterCount(e)+11*Math.floor(t/2)+t%2*6},e}(ed),rd=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),qu(this,{bitsInCharacterCount:[8,16,16],modeIndicator:"0100"})},e.prototype.getValue=function(t){var e=t.charCodeAt(0);if(e<=127||160<=e&&e<=255)return e;throw new Error('Unsupported character in QR Code: "'+t+'".')},e.prototype.encode=function(t,e){for(var o=this.getModeCountString(t.length,e),i=0;i<t.length;i++)o+=Zu(this.getValue(t.charAt(i)),8);return o},e.prototype.getStringBitsLength=function(t,e){return 4+this.getBitsCharacterCount(e)+8*t},e}(ed),nd={};nd.numeric=new od,nd.alphanumeric=new id,nd.byte=new rd;var sd=function(t){function e(){t.call(this),this.initProperties(),this.mode=nd[this.encodingMode]}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){qu(this,{encodingMode:"byte",utfBOM:"111011111011101110111111",initialModeCountStringLength:20,ranges:[128,2048,65536,2097152,67108864]})},e.prototype.getEncodingResult=function(t,e){var o=this.encode(t),i=Hd(this.getDataCodewordsCount(o),e),r=this.mode.getModeCountString(o.length/8,i)+o;return new $u(r,i)},e.prototype.getDataCodewordsCount=function(t){var e=t.length;return Math.ceil((this.initialModeCountStringLength+e)/8)},e.prototype.encode=function(t){for(var e=this.utfBOM,o=0;o<t.length;o++)e+=this.encodeCharacter(t.charCodeAt(o));return e},e.prototype.encodeCharacter=function(t){var e=this.getBytesCount(t),o=e-1,i="";if(1===e)i=Zu(t,8);else{for(var r=8-e,n=0;n<o;n++)i=Zu(t>>6*n&63|128,8)+i;i=(t>>6*o|255>>r<<r).toString(2)+i}return i},e.prototype.getBytesCount=function(t){for(var e=this.ranges,o=0;o<e.length;o++)if(t<e[o])return o+1},e}(D.Class),ad=[{L:{groups:[[1,19]],totalDataCodewords:19,errorCodewordsPerBlock:7},M:{groups:[[1,16]],totalDataCodewords:16,errorCodewordsPerBlock:10},Q:{groups:[[1,13]],totalDataCodewords:13,errorCodewordsPerBlock:13},H:{groups:[[1,9]],totalDataCodewords:9,errorCodewordsPerBlock:17}},{L:{groups:[[1,34]],totalDataCodewords:34,errorCodewordsPerBlock:10},M:{groups:[[1,28]],totalDataCodewords:28,errorCodewordsPerBlock:16},Q:{groups:[[1,22]],totalDataCodewords:22,errorCodewordsPerBlock:22},H:{groups:[[1,16]],totalDataCodewords:16,errorCodewordsPerBlock:28}},{L:{groups:[[1,55]],totalDataCodewords:55,errorCodewordsPerBlock:15},M:{groups:[[1,44]],totalDataCodewords:44,errorCodewordsPerBlock:26},Q:{groups:[[2,17]],totalDataCodewords:34,errorCodewordsPerBlock:18},H:{groups:[[2,13]],totalDataCodewords:26,errorCodewordsPerBlock:22}},{L:{groups:[[1,80]],totalDataCodewords:80,errorCodewordsPerBlock:20},M:{groups:[[2,32]],totalDataCodewords:64,errorCodewordsPerBlock:18},Q:{groups:[[2,24]],totalDataCodewords:48,errorCodewordsPerBlock:26},H:{groups:[[4,9]],totalDataCodewords:36,errorCodewordsPerBlock:16}},{L:{groups:[[1,108]],totalDataCodewords:108,errorCodewordsPerBlock:26},M:{groups:[[2,43]],totalDataCodewords:86,errorCodewordsPerBlock:24},Q:{groups:[[2,15],[2,16]],totalDataCodewords:62,errorCodewordsPerBlock:18},H:{groups:[[2,11],[2,12]],totalDataCodewords:46,errorCodewordsPerBlock:22}},{L:{groups:[[2,68]],totalDataCodewords:136,errorCodewordsPerBlock:18},M:{groups:[[4,27]],totalDataCodewords:108,errorCodewordsPerBlock:16},Q:{groups:[[4,19]],totalDataCodewords:76,errorCodewordsPerBlock:24},H:{groups:[[4,15]],totalDataCodewords:60,errorCodewordsPerBlock:28}},{L:{groups:[[2,78]],totalDataCodewords:156,errorCodewordsPerBlock:20},M:{groups:[[4,31]],totalDataCodewords:124,errorCodewordsPerBlock:18},Q:{groups:[[2,14],[4,15]],totalDataCodewords:88,errorCodewordsPerBlock:18},H:{groups:[[4,13],[1,14]],totalDataCodewords:66,errorCodewordsPerBlock:26}},{L:{groups:[[2,97]],totalDataCodewords:194,errorCodewordsPerBlock:24},M:{groups:[[2,38],[2,39]],totalDataCodewords:154,errorCodewordsPerBlock:22},Q:{groups:[[4,18],[2,19]],totalDataCodewords:110,errorCodewordsPerBlock:22},H:{groups:[[4,14],[2,15]],totalDataCodewords:86,errorCodewordsPerBlock:26}},{L:{groups:[[2,116]],totalDataCodewords:232,errorCodewordsPerBlock:30},M:{groups:[[3,36],[2,37]],totalDataCodewords:182,errorCodewordsPerBlock:22},Q:{groups:[[4,16],[4,17]],totalDataCodewords:132,errorCodewordsPerBlock:20},H:{groups:[[4,12],[4,13]],totalDataCodewords:100,errorCodewordsPerBlock:24}},{L:{groups:[[2,68],[2,69]],totalDataCodewords:274,errorCodewordsPerBlock:18},M:{groups:[[4,43],[1,44]],totalDataCodewords:216,errorCodewordsPerBlock:26},Q:{groups:[[6,19],[2,20]],totalDataCodewords:154,errorCodewordsPerBlock:24},H:{groups:[[6,15],[2,16]],totalDataCodewords:122,errorCodewordsPerBlock:28}},{L:{groups:[[4,81]],totalDataCodewords:324,errorCodewordsPerBlock:20},M:{groups:[[1,50],[4,51]],totalDataCodewords:254,errorCodewordsPerBlock:30},Q:{groups:[[4,22],[4,23]],totalDataCodewords:180,errorCodewordsPerBlock:28},H:{groups:[[3,12],[8,13]],totalDataCodewords:140,errorCodewordsPerBlock:24}},{L:{groups:[[2,92],[2,93]],totalDataCodewords:370,errorCodewordsPerBlock:24},M:{groups:[[6,36],[2,37]],totalDataCodewords:290,errorCodewordsPerBlock:22},Q:{groups:[[4,20],[6,21]],totalDataCodewords:206,errorCodewordsPerBlock:26},H:{groups:[[7,14],[4,15]],totalDataCodewords:158,errorCodewordsPerBlock:28}},{L:{groups:[[4,107]],totalDataCodewords:428,errorCodewordsPerBlock:26},M:{groups:[[8,37],[1,38]],totalDataCodewords:334,errorCodewordsPerBlock:22},Q:{groups:[[8,20],[4,21]],totalDataCodewords:244,errorCodewordsPerBlock:24},H:{groups:[[12,11],[4,12]],totalDataCodewords:180,errorCodewordsPerBlock:22}},{L:{groups:[[3,115],[1,116]],totalDataCodewords:461,errorCodewordsPerBlock:30},M:{groups:[[4,40],[5,41]],totalDataCodewords:365,errorCodewordsPerBlock:24},Q:{groups:[[11,16],[5,17]],totalDataCodewords:261,errorCodewordsPerBlock:20},H:{groups:[[11,12],[5,13]],totalDataCodewords:197,errorCodewordsPerBlock:24}},{L:{groups:[[5,87],[1,88]],totalDataCodewords:523,errorCodewordsPerBlock:22},M:{groups:[[5,41],[5,42]],totalDataCodewords:415,errorCodewordsPerBlock:24},Q:{groups:[[5,24],[7,25]],totalDataCodewords:295,errorCodewordsPerBlock:30},H:{groups:[[11,12],[7,13]],totalDataCodewords:223,errorCodewordsPerBlock:24}},{L:{groups:[[5,98],[1,99]],totalDataCodewords:589,errorCodewordsPerBlock:24},M:{groups:[[7,45],[3,46]],totalDataCodewords:453,errorCodewordsPerBlock:28},Q:{groups:[[15,19],[2,20]],totalDataCodewords:325,errorCodewordsPerBlock:24},H:{groups:[[3,15],[13,16]],totalDataCodewords:253,errorCodewordsPerBlock:30}},{L:{groups:[[1,107],[5,108]],totalDataCodewords:647,errorCodewordsPerBlock:28},M:{groups:[[10,46],[1,47]],totalDataCodewords:507,errorCodewordsPerBlock:28},Q:{groups:[[1,22],[15,23]],totalDataCodewords:367,errorCodewordsPerBlock:28},H:{groups:[[2,14],[17,15]],totalDataCodewords:283,errorCodewordsPerBlock:28}},{L:{groups:[[5,120],[1,121]],totalDataCodewords:721,errorCodewordsPerBlock:30},M:{groups:[[9,43],[4,44]],totalDataCodewords:563,errorCodewordsPerBlock:26},Q:{groups:[[17,22],[1,23]],totalDataCodewords:397,errorCodewordsPerBlock:28},H:{groups:[[2,14],[19,15]],totalDataCodewords:313,errorCodewordsPerBlock:28}},{L:{groups:[[3,113],[4,114]],totalDataCodewords:795,errorCodewordsPerBlock:28},M:{groups:[[3,44],[11,45]],totalDataCodewords:627,errorCodewordsPerBlock:26},Q:{groups:[[17,21],[4,22]],totalDataCodewords:445,errorCodewordsPerBlock:26},H:{groups:[[9,13],[16,14]],totalDataCodewords:341,errorCodewordsPerBlock:26}},{L:{groups:[[3,107],[5,108]],totalDataCodewords:861,errorCodewordsPerBlock:28},M:{groups:[[3,41],[13,42]],totalDataCodewords:669,errorCodewordsPerBlock:26},Q:{groups:[[15,24],[5,25]],totalDataCodewords:485,errorCodewordsPerBlock:30},H:{groups:[[15,15],[10,16]],totalDataCodewords:385,errorCodewordsPerBlock:28}},{L:{groups:[[4,116],[4,117]],totalDataCodewords:932,errorCodewordsPerBlock:28},M:{groups:[[17,42]],totalDataCodewords:714,errorCodewordsPerBlock:26},Q:{groups:[[17,22],[6,23]],totalDataCodewords:512,errorCodewordsPerBlock:28},H:{groups:[[19,16],[6,17]],totalDataCodewords:406,errorCodewordsPerBlock:30}},{L:{groups:[[2,111],[7,112]],totalDataCodewords:1006,errorCodewordsPerBlock:28},M:{groups:[[17,46]],totalDataCodewords:782,errorCodewordsPerBlock:28},Q:{groups:[[7,24],[16,25]],totalDataCodewords:568,errorCodewordsPerBlock:30},H:{groups:[[34,13]],totalDataCodewords:442,errorCodewordsPerBlock:24}},{L:{groups:[[4,121],[5,122]],totalDataCodewords:1094,errorCodewordsPerBlock:30},M:{groups:[[4,47],[14,48]],totalDataCodewords:860,errorCodewordsPerBlock:28},Q:{groups:[[11,24],[14,25]],totalDataCodewords:614,errorCodewordsPerBlock:30},H:{groups:[[16,15],[14,16]],totalDataCodewords:464,errorCodewordsPerBlock:30}},{L:{groups:[[6,117],[4,118]],totalDataCodewords:1174,errorCodewordsPerBlock:30},M:{groups:[[6,45],[14,46]],totalDataCodewords:914,errorCodewordsPerBlock:28},Q:{groups:[[11,24],[16,25]],totalDataCodewords:664,errorCodewordsPerBlock:30},H:{groups:[[30,16],[2,17]],totalDataCodewords:514,errorCodewordsPerBlock:30}},{L:{groups:[[8,106],[4,107]],totalDataCodewords:1276,errorCodewordsPerBlock:26},M:{groups:[[8,47],[13,48]],totalDataCodewords:1e3,errorCodewordsPerBlock:28},Q:{groups:[[7,24],[22,25]],totalDataCodewords:718,errorCodewordsPerBlock:30},H:{groups:[[22,15],[13,16]],totalDataCodewords:538,errorCodewordsPerBlock:30}},{L:{groups:[[10,114],[2,115]],totalDataCodewords:1370,errorCodewordsPerBlock:28},M:{groups:[[19,46],[4,47]],totalDataCodewords:1062,errorCodewordsPerBlock:28},Q:{groups:[[28,22],[6,23]],totalDataCodewords:754,errorCodewordsPerBlock:28},H:{groups:[[33,16],[4,17]],totalDataCodewords:596,errorCodewordsPerBlock:30}},{L:{groups:[[8,122],[4,123]],totalDataCodewords:1468,errorCodewordsPerBlock:30},M:{groups:[[22,45],[3,46]],totalDataCodewords:1128,errorCodewordsPerBlock:28},Q:{groups:[[8,23],[26,24]],totalDataCodewords:808,errorCodewordsPerBlock:30},H:{groups:[[12,15],[28,16]],totalDataCodewords:628,errorCodewordsPerBlock:30}},{L:{groups:[[3,117],[10,118]],totalDataCodewords:1531,errorCodewordsPerBlock:30},M:{groups:[[3,45],[23,46]],totalDataCodewords:1193,errorCodewordsPerBlock:28},Q:{groups:[[4,24],[31,25]],totalDataCodewords:871,errorCodewordsPerBlock:30},H:{groups:[[11,15],[31,16]],totalDataCodewords:661,errorCodewordsPerBlock:30}},{L:{groups:[[7,116],[7,117]],totalDataCodewords:1631,errorCodewordsPerBlock:30},M:{groups:[[21,45],[7,46]],totalDataCodewords:1267,errorCodewordsPerBlock:28},Q:{groups:[[1,23],[37,24]],totalDataCodewords:911,errorCodewordsPerBlock:30},H:{groups:[[19,15],[26,16]],totalDataCodewords:701,errorCodewordsPerBlock:30}},{L:{groups:[[5,115],[10,116]],totalDataCodewords:1735,errorCodewordsPerBlock:30},M:{groups:[[19,47],[10,48]],totalDataCodewords:1373,errorCodewordsPerBlock:28},Q:{groups:[[15,24],[25,25]],totalDataCodewords:985,errorCodewordsPerBlock:30},H:{groups:[[23,15],[25,16]],totalDataCodewords:745,errorCodewordsPerBlock:30}},{L:{groups:[[13,115],[3,116]],totalDataCodewords:1843,errorCodewordsPerBlock:30},M:{groups:[[2,46],[29,47]],totalDataCodewords:1455,errorCodewordsPerBlock:28},Q:{groups:[[42,24],[1,25]],totalDataCodewords:1033,errorCodewordsPerBlock:30},H:{groups:[[23,15],[28,16]],totalDataCodewords:793,errorCodewordsPerBlock:30}},{L:{groups:[[17,115]],totalDataCodewords:1955,errorCodewordsPerBlock:30},M:{groups:[[10,46],[23,47]],totalDataCodewords:1541,errorCodewordsPerBlock:28},Q:{groups:[[10,24],[35,25]],totalDataCodewords:1115,errorCodewordsPerBlock:30},H:{groups:[[19,15],[35,16]],totalDataCodewords:845,errorCodewordsPerBlock:30}},{L:{groups:[[17,115],[1,116]],totalDataCodewords:2071,errorCodewordsPerBlock:30},M:{groups:[[14,46],[21,47]],totalDataCodewords:1631,errorCodewordsPerBlock:28},Q:{groups:[[29,24],[19,25]],totalDataCodewords:1171,errorCodewordsPerBlock:30},H:{groups:[[11,15],[46,16]],totalDataCodewords:901,errorCodewordsPerBlock:30}},{L:{groups:[[13,115],[6,116]],totalDataCodewords:2191,errorCodewordsPerBlock:30},M:{groups:[[14,46],[23,47]],totalDataCodewords:1725,errorCodewordsPerBlock:28},Q:{groups:[[44,24],[7,25]],totalDataCodewords:1231,errorCodewordsPerBlock:30},H:{groups:[[59,16],[1,17]],totalDataCodewords:961,errorCodewordsPerBlock:30}},{L:{groups:[[12,121],[7,122]],totalDataCodewords:2306,errorCodewordsPerBlock:30},M:{groups:[[12,47],[26,48]],totalDataCodewords:1812,errorCodewordsPerBlock:28},Q:{groups:[[39,24],[14,25]],totalDataCodewords:1286,errorCodewordsPerBlock:30},H:{groups:[[22,15],[41,16]],totalDataCodewords:986,errorCodewordsPerBlock:30}},{L:{groups:[[6,121],[14,122]],totalDataCodewords:2434,errorCodewordsPerBlock:30},M:{groups:[[6,47],[34,48]],totalDataCodewords:1914,errorCodewordsPerBlock:28},Q:{groups:[[46,24],[10,25]],totalDataCodewords:1354,errorCodewordsPerBlock:30},H:{groups:[[2,15],[64,16]],totalDataCodewords:1054,errorCodewordsPerBlock:30}},{L:{groups:[[17,122],[4,123]],totalDataCodewords:2566,errorCodewordsPerBlock:30},M:{groups:[[29,46],[14,47]],totalDataCodewords:1992,errorCodewordsPerBlock:28},Q:{groups:[[49,24],[10,25]],totalDataCodewords:1426,errorCodewordsPerBlock:30},H:{groups:[[24,15],[46,16]],totalDataCodewords:1096,errorCodewordsPerBlock:30}},{L:{groups:[[4,122],[18,123]],totalDataCodewords:2702,errorCodewordsPerBlock:30},M:{groups:[[13,46],[32,47]],totalDataCodewords:2102,errorCodewordsPerBlock:28},Q:{groups:[[48,24],[14,25]],totalDataCodewords:1502,errorCodewordsPerBlock:30},H:{groups:[[42,15],[32,16]],totalDataCodewords:1142,errorCodewordsPerBlock:30}},{L:{groups:[[20,117],[4,118]],totalDataCodewords:2812,errorCodewordsPerBlock:30},M:{groups:[[40,47],[7,48]],totalDataCodewords:2216,errorCodewordsPerBlock:28},Q:{groups:[[43,24],[22,25]],totalDataCodewords:1582,errorCodewordsPerBlock:30},H:{groups:[[10,15],[67,16]],totalDataCodewords:1222,errorCodewordsPerBlock:30}},{L:{groups:[[19,118],[6,119]],totalDataCodewords:2956,errorCodewordsPerBlock:30},M:{groups:[[18,47],[31,48]],totalDataCodewords:2334,errorCodewordsPerBlock:28},Q:{groups:[[34,24],[34,25]],totalDataCodewords:1666,errorCodewordsPerBlock:30},H:{groups:[[20,15],[61,16]],totalDataCodewords:1276,errorCodewordsPerBlock:30}}],pd="0000",ld="numeric",cd="alphanumeric",hd="byte",ud={1:0},dd={0:1},fd={15:20,16:20,18:24,19:24,22:20,24:22,26:24,28:20,30:20,31:24,32:28,33:24,36:18,37:22,39:20,40:24},gd=[1,0,1,1,1],yd=[1,0,1],vd={L:"01",M:"00",Q:"11",H:"10"},md=["11101100","00010001"],xd=93,bd=[function(t,e){return(t+e)%2==0},function(t,e){return t%2==0},function(t,e){return e%3==0},function(t,e){return(t+e)%3==0},function(t,e){return(Math.floor(t/2)+Math.floor(e/3))%2==0},function(t,e){return t*e%2+t*e%3==0},function(t,e){return(t*e%2+t*e%3)%2==0},function(t,e){return((t+e)%2+t*e%3)%2==0}],_d=/^\d+/,wd="A-Z0-9 $%*+./:-",Cd=new RegExp("^[A-Z $%*+./:-]+"),kd=new RegExp("^["+wd+"]+"),Ad=new RegExp("^[^"+wd+"]+"),Sd=8,Pd=5,Od=8,Td=17,Md=9,Ed=16,Id=[[1,0],[1,25,0]];function Rd(t,e,o,i){for(var r=0;r<t.length;r++)t[r][o][i]=e}function Bd(t,e,o,i){for(var r=0;r<bd.length;r++)t[r][o][i]=bd[r](o,i)?1^e:parseInt(e,10)}function Ld(t,e){for(var o=[],i=t.length-2;i>=0;i--)o[i]=t[i]^e[i];return o}function jd(t,e){for(var o=[],i=0;i<t.length;i++)for(var r=0;r<e.length;r++)void 0===o[i+r]?o[i+r]=(t[i]+(e[r]>=0?e[r]:0))%255:o[i+r]=ud[dd[o[i+r]]^dd[(t[i]+e[r])%255]];return o}function Dd(t,e){var o=[],i=t.length-1;do{o[i]=dd[(t[i]+e)%255],i--}while(void 0!==t[i]);return o}function zd(t,e){var o,i,r=Id[e-1],n=new Array(e).concat(t),s=new Array(n.length-r.length).concat(r),a=t.length,p=[];for(i=0;i<a;i++)o=Dd(s,ud[n[n.length-1]]),s.splice(0,1),n=Ld(o,n);for(i=n.length-1;i>=0;i--)p[e-1-i]=Zu(n[i],8);return p}function Vd(t,e,o,i,r){var n,s,a=_d.exec(t),p=a?a[0]:"",l=Cd.exec(t),c=l?l[0]:"",h=kd.exec(t),u=h?h[0]:"";return p&&(p.length>=e||t.length===p.length||p.length>=o&&!kd.test(t.charAt(p.length)))?(n=ld,s=p):u&&(t.length===u.length||u.length>=i||r===cd)?(n=cd,s=p||c):(n=hd,s=u?u+Ad.exec(t.substring(u.length))[0]:Ad.exec(t)[0]),{mode:n,modeString:s}}function Hd(t,e){var o=0,i=ad.length-1,r=Math.floor(ad.length/2);do{t<ad[r][e].totalDataCodewords?i=r:o=r,r=o+Math.floor((i-o)/2)}while(i-o>1);return t<=ad[o][e].totalDataCodewords?r+1:i+1}function Nd(t,e,o){var i=Ku(e),r=e.length-1,n=t<<r,s=Zu(t,o-r),a=function(t,e){var o=e.toString(2).length,i=t.toString(2).length,r=t;do{i=(r^=e<<i-o).toString(2).length}while(i>=o);return r}(n,i);return s+Zu(a,r)}function Fd(t,e){return parseInt(t.charAt(e),10)}function Ud(t,e){var o,i,r=t[0],n=0,s=e.length;for(o=0,i=8;o<=8;o++)6!==o&&Rd(t,Fd(e,s-1-n++),o,i);for(o=8,i=7;i>=0;i--)6!==i&&Rd(t,Fd(e,s-1-n++),o,i);for(n=0,i=r.length-1,o=8;i>=r.length-8;i--)Rd(t,Fd(e,s-1-n++),o,i);for(Rd(t,1,r.length-8,8),o=r.length-7,i=8;o<r.length;o++)Rd(t,Fd(e,s-1-n++),o,i)}function Gd(t,e){for(var o,i,r,n=t[0].length,s=n-11,a=n-11,p=0;p<e.length;p++)o=Math.floor(p/3),i=p%3,Rd(t,r=Fd(e,e.length-p-1),0+o,s+i),Rd(t,r,a+i,0+o)}function Wd(t,e,o,i){for(var r,n=e.length+2,s=e.length+1,a=0;a<e.length;a++)for(var p=a;p<n-a;p++)Rd(t,r=e[a],o+p,i+a),Rd(t,r,o+a,i+p),Rd(t,r,o+s-p,i+s-a),Rd(t,r,o+s-a,i+s-p)}function Xd(t,e,o,i){var r=o,n=i,s=t[0];do{Rd(t,0,r,i),Rd(t,0,o,n),r+=e[0],n+=e[1]}while(r>=0&&r<s.length)}function Yd(t,e,o,i,r){e[t][i]=(e[t][i]<<1^r)%128,e[t][i]===xd&&(o[t]+=40)}function qd(t,e,o,i,r,n){o[t][n]===i?r[t][n]++:(o[t][n]=i,r[t][n]>=5&&(e[t]+=3+r[t][n]-5),r[t][n]=1)}function Qd(t,e){var o=Math.floor(t/e*100),i=o%5,r=Math.abs(o-i-50),n=Math.abs(o+5-i-50);return 10*Math.min(r/5,n/5)}function Zd(t,e,o){var i=function(t){return t&&t.toLowerCase().indexOf("utf_8")>=0?new sd:new td}(o),r=i.getEncodingResult(t,e),n=r.version,s=ad[n-1][e],a=function(t,e){for(var o,i,r,n,s,a=0,p=[],l=[],c=e.groups,h=0;h<c.length;h++){r=c[h][0];for(var u=0;u<r;u++){i=c[h][1],o=[],n=[];for(var d=1;d<=i;d++)s=t.substring(a,a+8),o.push(s),n[i-d]=Ku(s),a+=8;p.push(o),l.push(zd(n,e.errorCodewordsPerBlock))}}return[p,l]}(function(t,e){for(var o=8*e,i=0,r=0,n=t;n.length<o&&i<4;)n+=pd.charAt(i++);for(n.length%8!=0&&(n+=new Array(9-n.length%8).join("0"));n.length<o;)n+=md[r],r^=1;return n}(r.dataString,s.totalDataCodewords),s),p=function(t){for(var e=[],o=17+4*t,i=0;i<bd.length;i++){e[i]=new Array(o);for(var r=0;r<o;r++)e[i][r]=new Array(o)}return e}(n);!function(t){var e=t[0].length;Wd(t,gd,0,0),Xd(t,[-1,-1],7,7),Wd(t,gd,e-7,0),Xd(t,[1,-1],e-8,7),Wd(t,gd,0,e-7),Xd(t,[-1,1],7,e-8)}(p),function(t,e){if(!(e<2)){var o,i,r=t[0],n=r.length,s=Math.floor(e/7),a=[6],p=0;for((o=fd[e])?i=(n-13-o)/s:o=i=(n-13)/(s+1),a.push(a[p++]+o);a[p]+i<n;)a.push(a[p++]+i);for(var l=0;l<a.length;l++)for(var c=0;c<a.length;c++)void 0===r[a[l]][a[c]]&&Wd(t,yd,a[l]-2,a[c]-2)}}(p,n),function(t){for(var e=1,o=t[0].length,i=8;i<o-8;i++)Rd(t,e,6,i),Rd(t,e,i,6),e^=1}(p),n>=7&&Gd(p,Zu(0,18)),Ud(p,Zu(0,15)),function(t,e){for(var o,i,r,n=new Ju(t[0]),s=0;s<e.length;s++)for(o=e[s],i=0;o.length>0;){for(var a=0;a<o.length;a++)for(var p=0;p<8;p++)r=n.getNextCell(),Bd(t,o[a][i].charAt(p),r.row,r.column);for(i++;o[0]&&i===o[0].length;)o.splice(0,1)}for(;r=n.getNextRemainderCell();)Bd(t,0,r.row,r.column)}(p,a);var l=function(t){var e,o,i=[],r=[],n=[],s=[],a=[],p=t[0].length;for(o=0;o<t.length;o++)i[o]=0,n[o]=0,a[o]=[0,0],s[o]=[0,0],r[o]=[];for(var l=0;l<p;l++)for(var c=0;c<p;c++)for(var h=0;h<t.length;h++)e=t[h],n[h]+=parseInt(e[l][c],10),r[h][0]===e[l][c]&&l+1<p&&c-1>=0&&e[l+1][c]===r[h][0]&&e[l+1][c-1]===r[h][0]&&(i[h]+=3),Yd(h,s,i,0,e[l][c]),Yd(h,s,i,1,e[c][l]),qd(h,i,r,e[l][c],a,0),qd(h,i,r,e[c][l],a,1);var u,d=p*p,f=Number.MAX_VALUE;for(o=0;o<i.length;o++)i[o]+=Qd(n[o],d),i[o]<f&&(f=i[o],u=o);return u}(p),c=p[l];return n>=7&&Gd([c],function(t){return Nd(t,"1111100100101",18)}(n)),Ud([c],function(t){var e,o="";if(0===Ku(t))return"101010000010010";e=Nd(Ku(t),"10100110111",15);for(var i=0;i<e.length;i++)o+=e.charAt(i)^"101010000010010".charAt(i);return o}(vd[e]+Zu(l,3))),c}!function(){var t,e;for(e=1;e<255;e++)(t=2*dd[e-1])>255&&(t^=285),dd[e]=t,ud[t]=e;t=2*dd[e-1]^285,dd[e]=t,dd[-1]=0}(),function(){for(var t=2;t<=68;t++){var e=Id[t-1],o=[t,0];Id[t]=jd(e,o)}}();var Kd=Math.round,Jd=[[0,1],[1,1],[1,2],[2,2],[2,1],[3,1],[3,0],[2,0],[2,-1],[1,-1],[1,0]],$d=[[0,1],[1,1],[1,0]],tf=function(t){function e(e,o,i){void 0===i&&(i=ae),t.call(this),this.options=Y({},this.options,o),this.element=e,this.wrapper=this.element,this.onError=i,this._initElement(),this._initSurface(),this.setOptions(o)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.destroy=function(){this._destroySurface()},e.prototype._initElement=function(){B(this.element,"k-qrcode")},e.prototype._initSurface=function(){var t=this.options,e=this.surface;e&&e.options.type===t.renderAs||(this._destroySurface(),this._initSurfaceElement(),this.surface=this._createSurface())},e.prototype._createSurface=function(){return D.drawing.Surface.create(this.surfaceElement,{type:this.options.renderAs})},e.prototype._destroySurface=function(){this.surface&&(this.surface.destroy(),this.surface=null,this._destroySurfaceElement())},e.prototype._initSurfaceElement=function(){this.surfaceElement||(this.surfaceElement=document.createElement("div"),this.surfaceElement.style.position="relative",this.element.appendChild(this.surfaceElement))},e.prototype._destroySurfaceElement=function(){this.surfaceElement&&this.surfaceElement.parentNode&&(this.surfaceElement.parentNode.removeChild(this.surfaceElement),this.surfaceElement=null)},e.prototype.redraw=function(){var t=this._getSize();this.surface.clear(),this.surface.setSize({width:t,height:t}),this.createVisual(),this.surface.draw(this.visual)},e.prototype.getSize=function(){var t=this.element,e=t.clientWidth,o=t.clientHeight,i={width:0,height:0};return e>0&&(i.width=e),o&&(i.height=o),i},e.prototype._resize=function(){this.redraw()},e.prototype.createVisual=function(){this.visual=this._render()},e.prototype.exportVisual=function(){return this._render()},e.prototype._render=function(){var t,e,o,i,r,n=this._value,s=this.options.border||{},a=this.options.padding||0,p=s.width||0;s.width=p;var l=new D.drawing.Group;try{n&&(o=Zd(n,this.options.errorCorrection,this.options.encoding),r=(i=this._getSize())-2*(p+a),t=this._calculateBaseUnit(r,o.length),e=p+a+(r-o.length*t)/2,l.append(this._renderBackground(i,s)),l.append(this._renderMatrix(o,t,e)),this._hasCustomLogo()?l.append(this._renderLogo(i,t)):this._isSwiss()&&l.append(this._renderSwissCode(i,t)))}catch(t){this.onError(t)}return l},e.prototype._renderLogo=function(t,e){var o,i=Kd(t/2),r=this._getLogoSize(7*e),n=this.options.overlay.imageUrl,s={x:i-r.width/2,y:i-r.height/2};return o=new D.geometry.Rect(new D.geometry.Point(s.x,s.y),new D.geometry.Size(r.width,r.height)),new D.drawing.Image(n,o)},e.prototype._renderSwissCode=function(t,e){var o=this._getLogoSize(7*e),i=(o=Math.max(o.width,o.height))/4,r=i/2,n=t/2,s={},a=new D.drawing.Group;return s.x=s.y=Math.ceil(n-e-o/2),a.append(this._renderShape(s,Math.ceil(o+2*e),$d,"#fff")),s.x=s.y=n-o/2,a.append(this._renderShape(s,o,$d,this.options.color)),s.x=n+r-o/2,s.y=n+r+i-o/2,a.append(this._renderShape(s,i,Jd,"#fff")),a},e.prototype._renderShape=function(t,e,o,i){var r=new D.drawing.MultiPath({fill:{color:i},stroke:null});r.moveTo(t.x,t.y);for(var n=0;n<o.length;n++)r.lineTo(t.x+e*o[n][0],t.y+e*o[n][1]);return r.close(),r},e.prototype._getSize=function(){var t;if(this.options.size)t=parseInt(this.options.size,10);else{var e=Uu(this.element,this.options.renderAs),o=Math.min(e.width,e.height);t=o>0?o:200}return t},e.prototype._calculateBaseUnit=function(t,e){var o=Math.floor(t/e);if(o<1){var i=Math.ceil(1*e);this.onError(new Error("Insufficient size for QR Code: the current size is "+t+"px and the minimum size is "+i+"px."))}else o*e>=t&&o-1>=1&&o--;return o},e.prototype._renderMatrix=function(t,e,o){for(var i=new D.drawing.MultiPath({fill:{color:this.options.color},stroke:null}),r=0;r<t.length;r++)for(var n=o+r*e,s=0;s<t.length;){for(;0===t[r][s]&&s<t.length;)s++;if(s<t.length){for(var a=s;1===t[r][s];)s++;var p=Kd(o+a*e),l=Kd(n),c=Kd(o+s*e),h=Kd(n+e);i.moveTo(p,l).lineTo(p,h).lineTo(c,h).lineTo(c,l).close()}}return i},e.prototype._renderBackground=function(t,e){var o=new de(0,0,t,t).unpad(e.width/2);return D.drawing.Path.fromRect(o.toRect(),{fill:{color:this.options.background},stroke:{color:e.color,width:e.width}})},e.prototype.setOptions=function(t){var e=t||{};this.options=qu(this.options,e),void 0!==t.value&&(this._value=String(this.options.value)),this._initSurface(),this.redraw()},e.prototype.value=function(t){if(void 0===t)return this._value;this._value=String(t),this.redraw()},e.prototype._hasCustomLogo=function(){return Boolean(this.options.overlay.imageUrl)},e.prototype._isSwiss=function(){return"swiss"===this.options.overlay.type},e.prototype._getLogoSize=function(t){var e=this.options.overlay.width,o=this.options.overlay.height;return e||o?e&&!o?o=e:!e&&o&&(e=o):e=o=t,{width:e,height:o}},e}(D.Class);Vt(tf,{name:"QRCode",renderAs:"svg",encoding:"ISO_8859_1",value:"",errorCorrection:"L",background:"#fff",color:"#000",size:"",padding:0,border:{color:"",width:0},overlay:{type:"image",imageUrl:"",width:0,height:0}});const ef=tf,of=function(t){return void 0===t&&(t="ISO_8859_1"),function(e){try{Zd(e,"L",t)}catch(t){return{valid:!1,error:t}}return{valid:!0}}};var rf={WGS84:{a:6378137,b:6356752.314245179,f:.0033528106647474805,e:.08181919084262149}};function nf(t){return t*t}var sf=Math,af=sf.abs,pf=sf.atan,lf=sf.atan2,cf=sf.cos,hf=sf.sin,uf=sf.tan,df=function(t){function e(e,o){t.call(this),this.initProperties(),1===arguments.length?(this.lat=e[0],this.lng=e[1]):(this.lat=e,this.lng=o)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){Y(this,{DISTANCE_ITERATIONS:100,DISTANCE_CONVERGENCE:1e-12,DISTANCE_PRECISION:2,FORMAT:"{0:N6}{1:N6}"})},e.prototype.toArray=function(){return[this.lat,this.lng]},e.prototype.equals=function(t){return t&&t.lat===this.lat&&t.lng===this.lng},e.prototype.clone=function(){return new e(this.lat,this.lng)},e.prototype.round=function(t){return this.lng=Bt(this.lng,t),this.lat=Bt(this.lat,t),this},e.prototype.wrap=function(){return this.lng=this.lng%180,this.lat=this.lat%90,this},e.prototype.distanceTo=function(t,e){return this.greatCircleTo(t,e).distance},e.prototype.destination=function(t,o,i){var r=Rt(o),n=i||rf.WGS84,s=Rt(this.lat),a=Rt(this.lng),p=t/n.a,l=sf.asin(hf(s)*cf(p)+cf(s)*hf(p)*cf(r)),c=a+lf(hf(r)*hf(p)*cf(s),cf(p)-hf(s)*hf(l));return new e(kt(l),kt(c))},e.prototype.greatCircleTo=function(t,o){var i=e.create(i),r=o||rf.WGS84;if(!i||this.clone().round(8).equals(i.clone().round(8)))return{distance:0,azimuthFrom:0,azimuthTo:0};for(var n,s,a,p,l,c,h,u,d=r.a,f=r.b,g=r.f,y=Rt(i.lng-this.lng),v=pf((1-g)*uf(Rt(this.lat))),m=hf(v),x=cf(v),b=pf((1-g)*uf(Rt(i.lat))),_=hf(b),w=cf(b),C=y,k=this.DISTANCE_ITERATIONS,A=!1;!A&&k-- >0;){s=hf(C),a=cf(C),p=sf.sqrt(nf(w*s)+nf(x*_-m*w*a)),u=lf(p,c=m*_+x*w*a);var S=x*w*s/p;h=0,0!=(l=1-nf(S))&&(h=c-2*m*_/l),n=C;var P=g/16*l*(4+g*(4-3*l));C=y+(1-P)*g*S*(u+P*p*(h+P*c*(2*nf(h)-1))),A=af(C-n)<=this.DISTANCE_CONVERGENCE}var O=l*(nf(d)-nf(f))/nf(f),T=1+O/16384*(4096+O*(O*(320-175*O)-768)),M=O/1024*(256+O*(O*(74-47*O)-128)),E=M*p*(h+M/4*(c*(2*nf(h)-1)-M/6*h*(4*nf(p)-3)*(4*nf(h)-3))),I=lf(w*s,x*_-m*w*a),R=lf(x*s,-m*w+x*_*a);return{distance:Bt(f*T*(u-E),this.DISTANCE_PRECISION),azimuthFrom:kt(I),azimuthTo:kt(R)}},e.prototype.toString=function(){return String(this.lat)+","+String(this.lng)},e.fromLngLat=function(t){return new e(t[1],t[0])},e.fromLatLng=function(t){return new e(t[0],t[1])},e.create=function(t,o){if(Ct(t))return t instanceof e?t.clone():1===arguments.length&&2===t.length?e.fromLatLng(t):new e(t,o)},e}(D.Class),ff=Math,gf=ff.atan,yf=ff.exp,vf=ff.pow,mf=ff.sin,xf=ff.log,bf=ff.tan,_f=D.geometry.Point,wf=ff.PI,Cf=wf/2,kf=wf/4,Af=wf/180,Sf=rf.WGS84,Pf=function(t){function e(e){t.call(this),this.initProperties(),this._initOptions(e)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._initOptions=function(t){this.options=Y({},this.options,t)},e.prototype.initProperties=function(){Y(this,{MAX_LNG:180,MAX_LAT:85.0840590501,INVERSE_ITERATIONS:15,INVERSE_CONVERGENCE:1e-12})},e.prototype.forward=function(t,e){var o=this,i=o.options,r=i.datum.a,n=i.centralMeridian,s=Et(t.lat,-o.MAX_LAT,o.MAX_LAT),a=e?Et(t.lng,-o.MAX_LNG,o.MAX_LNG):t.lng,p=Rt(a-n)*r,l=o._projectLat(s);return new _f(p,l)},e.prototype._projectLat=function(t){var e=this.options.datum,o=e.e,i=e.a,r=Rt(t),n=bf(kf+r/2),s=o*mf(r),a=vf((1-s)/(1+s),o/2);return i*xf(n*a)},e.prototype.inverse=function(t,e){var o=this,i=o.options,r=i.datum.a,n=i.centralMeridian,s=t.x/(Af*r)+n,a=Et(o._inverseY(t.y),-o.MAX_LAT,o.MAX_LAT);return e&&(s=Et(s,-o.MAX_LNG,o.MAX_LNG)),new df(a,s)},e.prototype._inverseY=function(t){var e,o=this,i=o.options.datum,r=i.a,n=i.e,s=n/2,a=yf(-t/r),p=Cf-2*gf(a);for(e=0;e<=o.INVERSE_ITERATIONS;e++){var l=n*mf(p),c=vf((1-l)/(1+l),s),h=Cf-2*gf(a*c)-p;if(p+=h,ff.abs(h)<=o.INVERSE_CONVERGENCE)break}return kt(p)},e}(D.Class);Vt(Pf,{centralMeridian:0,datum:Sf});var Of=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),Y(this,{MAX_LAT:85.0511287798})},e.prototype._projectLat=function(t){var e=this.options.datum.a,o=Rt(t),i=bf(kf+o/2);return e*xf(i)},e.prototype._inverseY=function(t){var e=this.options.datum.a,o=yf(-t/e);return kt(Cf-2*gf(o))},e}(Pf),Tf=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.forward=function(t){return new _f(t.lng,t.lat)},e.prototype.inverse=function(t){return new df(t.y,t.x)},e}(D.Class),Mf=function(t){function e(){t.call(this);var e=this._proj=new Of,o=this.c=2*wf*e.options.datum.a;this._tm=D.geometry.transform().translate(.5,.5).scale(1/o,-1/o),this._itm=D.geometry.transform().scale(o,-o).translate(-.5,-.5)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.toPoint=function(t,e,o){return this._proj.forward(t,o).transform(this._tm).scale(e||1)},e.prototype.toLocation=function(t,e,o){var i=t.clone().scale(1/(e||1)).transform(this._itm);return this._proj.inverse(i,o)},e}(D.Class),Ef=(function(t){function e(){t.call(this),this._proj=new Pf}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.toPoint=function(t){return this._proj.forward(t)},e.prototype.toLocation=function(t){return this._proj.inverse(t)}}(D.Class),function(t){function e(){t.call(this),this._proj=new Tf}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.toPoint=function(t){return this._proj.forward(t)},e.prototype.toLocation=function(t){return this._proj.inverse(t)}}(D.Class),Object.defineProperty),If=(Object.assign,function(t){var e=document.createElement("div");return e.innerHTML=t,e.firstChild}),Rf=function(t){for(;t.firstChild;)t.removeChild(t.firstChild)},Bf=function(t,e){e.insertBefore(t,e.firstChild)},Lf=function(t){return t.replace(/([a-z][A-Z])/g,(function(t){return t.charAt(0)+"-"+t.charAt(1).toLowerCase()}))},jf=function(t){return t&&String(t).endsWith("px")?t:String(t)+"px"},Df=function(t){var e,o=!1,i=[],r={wp:/(Windows Phone(?: OS)?)\s(\d+)\.(\d+(\.\d+)?)/,fire:/(Silk)\/(\d+)\.(\d+(\.\d+)?)/,android:/(Android|Android.*(?:Opera|Firefox).*?\/)\s*(\d+)\.?(\d+(\.\d+)?)?/,iphone:/(iPhone|iPod).*OS\s+(\d+)[\._]([\d\._]+)/,ipad:/(iPad).*OS\s+(\d+)[\._]([\d_]+)/,meego:/(MeeGo).+NokiaBrowser\/(\d+)\.([\d\._]+)/,webos:/(webOS)\/(\d+)\.(\d+(\.\d+)?)/,blackberry:/(BlackBerry|BB10).*?Version\/(\d+)\.(\d+(\.\d+)?)/,playbook:/(PlayBook).*?Tablet\s*OS\s*(\d+)\.(\d+(\.\d+)?)/,windows:/(MSIE)\s+(\d+)\.(\d+(\.\d+)?)/,tizen:/(tizen).*?Version\/(\d+)\.(\d+(\.\d+)?)/i,sailfish:/(sailfish).*rv:(\d+)\.(\d+(\.\d+)?).*firefox/i,ffos:/(Mobile).*rv:(\d+)\.(\d+(\.\d+)?).*Firefox/},n={ios:/^i(phone|pad|pod)$/i,android:/^android|fire$/i,blackberry:/^blackberry|playbook/i,windows:/windows/,wp:/wp/,flat:/sailfish|ffos|tizen/i,meego:/meego/},s={tablet:/playbook|ipad|fire/i},a={omini:/Opera\sMini/i,omobile:/Opera\sMobi/i,firefox:/Firefox|Fennec/i,mobilesafari:/version\/.*safari/i,ie:/MSIE|Windows\sPhone/i,chrome:/chrome|crios/i,webkit:/webkit/i};for(var p in r)if(r.hasOwnProperty(p)&&(i=t.match(r[p]))){if("windows"===p&&"plugins"in navigator)return!1;(o={}).device=p,o.tablet=zf(p,s,!1),o.browser=zf(t,a,"default"),o.name=zf(p,n),o[o.name]=!0,o.majorVersion=i[2],o.minorVersion=(i[3]||"0").replace("_","."),e=o.minorVersion.replace(".","").substr(0,2),o.flatVersion=o.majorVersion+e+new Array(3-(e.length<3?e.length:2)).join("0");break}return o};function zf(t,e,o){for(var i in e)if(e.hasOwnProperty(i)&&e[i].test(t))return i;return void 0!==o?o:t}var Vf=function(){var t={down:"touchstart mousedown",move:"mousemove touchmove",up:"mouseup touchend touchcancel",cancel:"mouseleave touchcancel"},e=Hf();return e.touch&&(e.mobileOS.ios||e.mobileOS.android)?t={down:"touchstart",move:"touchmove",up:"touchend touchcancel",cancel:"touchcancel"}:e.pointers?t={down:"pointerdown",move:"pointermove",up:"pointerup",cancel:"pointercancel pointerleave"}:e.msPointers&&(t={down:"MSPointerDown",move:"MSPointerMove",up:"MSPointerUp",cancel:"MSPointerCancel MSPointerLeave"}),t},Hf=function(){var t=Df(navigator.userAgent),e=function(t){var e=!1,o=[],i={edge:/(edge)[ \/]([\w.]+)/i,webkit:/(chrome|crios)[ \/]([\w.]+)/i,safari:/(webkit)[ \/]([\w.]+)/i,opera:/(opera)(?:.*version|)[ \/]([\w.]+)/i,msie:/(msie\s|trident.*? rv:)([\w.]+)/i,mozilla:/(mozilla)(?:.*? rv:([\w.]+)|)/i};for(var r in i)if(i.hasOwnProperty(r)&&(o=t.match(i[r]))){(e={})[r]=!0,e[o[1].toLowerCase().split(" ")[0].split("/")[0]]=!0,e.version=parseInt(document.documentMode||o[2],10);break}return e}(navigator.userAgent),o=e.chrome,i=e.crios,r=e.mozilla,n=e.safari,s={};s.mobileOS=t,s.touch="ontouchstart"in window,s.pointers=!o&&!i&&!r&&!n&&window.PointerEvent,s.msPointers=!o&&window.MSPointerEvent,s.mouseAndTouchPresent=s.touch&&!(s.mobileOS.ios||s.mobileOS.android),s.eventCapture=document.documentElement.addEventListener;var a=document.createElement("table"),p=s.transitions=!1,l=s.transforms=!1,c="string";return["Moz","webkit","O","ms"].forEach((function(t){var e=typeof a.style[t+"Transition"]===c;if(e||typeof a.style[t+"Transform"]===c){var o=t.toLowerCase();return l={css:"ms"!==o?"-"+o+"-":"",prefix:t,event:"o"===o||"webkit"===o?o:""},e&&((p=l).event=p.event?p.event+"TransitionEnd":"transitionend"),!1}})),a=null,s.transforms=l,s.transitions=p,s.delayedClick=function(){if(s.touch){if(s.mobileOS.ios)return!0;if(s.mobileOS.android){if(!s.browser.chrome)return!0;if(s.browser.version<32)return!1;var t=document.querySelector("meta[name=viewport]");return!(t?t.getAttribute("content"):"").match(/user-scalable=no/i)}}return!1},s},Nf=function(t,e){return t.bind(e)},Ff=function(t,e,o,i,r){Uf(t,e,o,i,r)},Uf=function(t,e,o,i,r){(R(e)?e:(e||"").split(" ")).forEach((function(e){Gf(t,e,o,i,r)}))},Gf=function(t,e,o,i,r){var n,s=i;o&&U(o)&&!i?s=o:o&&"string"==typeof o&&U(s)&&(n=o),t.addEventListener(e,(function(e){var o=e.target?e.target.closest(n):null;if(!n||n&&e.target&&o){var i=n?o:e.currentTarget;Ef(e,"currentTarget",{value:i}),Ef(e,"delegateTarget",{value:t}),s(e)}}),Boolean(r))},Wf=function(t,e,o,i,r){Xf(t,e,o,i,r)},Xf=function(t,e,o,i){(R(e)?e:(e||"").split(" ")).forEach((function(e){Yf(t,e,o,i)}))},Yf=function(t,e,o,i){t.removeEventListener(e,o,Boolean(i))},qf=function(t){var e=Vf(navigator.userAgent);return t.replace(/([^ ]+)/g,(function(t){return e[t]||t}))},Qf=function(t,e){var o=t.prototype;o.events?e.forEach((function(t){o.events.indexOf(t)<0&&o.events.push(t)})):o.events=e},Zf=function(){return Number(new Date)},Kf=function(){},Jf=function(t){var e=[];if(t)for(var o=Lf(t).split("-"),i=0;i<o.length;i++)e.push("k-pos-"+o[i]);return e.join(" ")},$f="string",tg="function",eg=function(){this._defaultPrevented=!0},og=function(){return!0===this._defaultPrevented},ig=function(t){function e(){t.call(this),this._events={}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.destroy=function(){this.unbind()},e.prototype.bind=function(t,e,o){var i,r,n,s,a=this,p=typeof t===$f?[t]:t||[],l=typeof e===tg;if(void 0===e){for(i in t)a.bind(i,t[i]);return a}var c=function(){var t=p[i];(s=l?e:e[t])&&(o&&(n=s,s=function(){a.unbind(t,s),n.apply(a,arguments)},s.original=n),(a._events[t]=a._events[t]||[]).push(s))};for(i=0,r=p.length;i<r;i++)c();return a},e.prototype.one=function(t,e){return this.bind(t,e,!0)},e.prototype.first=function(t,e){var o,i,r,n=this,s=typeof t===$f?[t]:t,a=typeof e===tg;for(o=0,i=s.length;o<i;o++){var p=s[o];(r=a?e:e[p])&&(n._events[p]=n._events[p]||[]).unshift(r)}return n},e.prototype.trigger=function(t,e){var o,i,r=this,n=r._events[t];if(n){var s=e||{};for(s.sender=r,s._defaultPrevented=!1,s.preventDefault=eg,s.isDefaultPrevented=og,o=0,i=(n=n.slice()).length;o<i;o++)n[o].call(r,s);return!0===s._defaultPrevented}return!1},e.prototype.unbind=function(t,e){var o,i=this,r=i._events[t];if(void 0===t)i._events={};else if(r)if(e)for(o=r.length-1;o>=0;o--)r[o]!==e&&r[o].original!==e||r.splice(o,1);else i._events[t]=[];return i},e.prototype._setEvents=function(t){for(var e=this,o=(this.events||[]).length,i=0;i<o;i++){var r=e.events[i];e.options[r]&&t[r]&&(e.unbind(r,e.options[r]),e._events&&e._events[r]&&delete e._events[r])}this.bind(this.events,t)},e}(D.Class),rg=function(t){function e(e,o){t.call(this),this.element=e,this._initOptions(o),this.items=[],B(this.element,"k-widget k-attribution")}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._initOptions=function(t){this.options=Y({},this.options,t)},e.prototype.filter=function(t,e){this._extent=t,this._zoom=e,this._render()},e.prototype.add=function(t){var e=t;Ct(t)&&("string"==typeof t&&(e={text:t}),this.items.push(e),this._render())},e.prototype.remove=function(t){for(var e=[],o=0;o<this.items.length;o++){var i=this.items[o];i.text!==t&&e.push(i)}this.items=e,this._render()},e.prototype.clear=function(){this.items=[],Rf(this.element)},e.prototype._render=function(){for(var t=[],e=0;e<this.items.length;e++){var o=this.items[e],i=this._itemText(o);""!==i&&t.push(i)}t.length>0?(Rf(this.element),function(t,e){var o=document.createElement("div");for(o.innerHTML=t;o.childNodes.length>0;)e.appendChild(o.childNodes[0])}(t.join(this.options.separator),this.element),this.showElement()):this.hideElement()},e.prototype.hideElement=function(){this.element.style.display="none"},e.prototype.showElement=function(){this.element.style.display=""},e.prototype._itemText=function(t){var e="",o=this._inZoomLevel(t.minZoom,t.maxZoom),i=this._inArea(t.extent);return o&&i&&(e+=t.text),e},e.prototype._inZoomLevel=function(t,e){var o=jt(t,-Number.MAX_VALUE),i=jt(e,Number.MAX_VALUE);return this._zoom>o&&this._zoom<i},e.prototype._inArea=function(t){var e=!0;return t&&(e=t.contains(this._extent)),e},e}(ig);Vt(rg,{name:"Attribution",separator:" | "});var ng={up:{className:"k-navigator-n",iconClass:"k-i-caret-alt-up"},down:{className:"k-navigator-s",iconClass:"k-i-caret-alt-down"},right:{className:"k-navigator-e",iconClass:"k-i-caret-alt-right"},left:{className:"k-navigator-w",iconClass:"k-i-caret-alt-left"}};function sg(t,e){var o='<button class="k-button k-button-square k-rounded-full k-button-flat k-button-flat-base k-icon-button '+ng[t].className+'" aria-label="move '+t+'">'+Xt({icon:"caret-alt-"+t,iconClass:"k-button-icon",svgIcons:e.svgIcons,type:e.type})+"</button>";return If(o)}var ag=function(t){function e(e,o){t.call(this),this.element=e,this._initOptions(o);var i=sg("up",o.icons),r=sg("right",o.icons),n=sg("down",o.icons),s=sg("left",o.icons);this.element.appendChild(i),this.element.appendChild(r),this.element.appendChild(n),this.element.appendChild(s),B(this.element,"k-widget k-navigator"),Ff(this.element,"click",".k-button",Nf(this._click,this));var a=this.element.parentNode.closest("[data-role]");this._keyroot=a||this.element,this._tabindex(this._keyroot),this._keydownHandler=Nf(this._keydown,this),Ff(this._keyroot,"keydown",this._keydownHandler)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.destroy=function(){this.dispose()},e.prototype.dispose=function(){Wf(this._keyroot,"keydown",this._keydownHandler)},e.prototype._tabindex=function(t){var e=t||this.wrapper||this.element,o=this.element,i="tabindex",r=e.getAttribute(i)||o.getAttribute(i);o.removeAttribute(i),e.setAttribute(i,isNaN(r)?0:r)},e.prototype._initOptions=function(t){this.options=Y({},this.options,t)},e.prototype._pan=function(t,e){var o=this.options.panStep;this.trigger("pan",{x:t*o,y:e*o})},e.prototype._click=function(t){var e=0,o=0,i=t.currentTarget;i.matches(".k-navigator-n")?o=1:i.matches(".k-navigator-s")?o=-1:i.matches(".k-navigator-e")?e=1:i.matches(".k-navigator-w")&&(e=-1),this._pan(e,o),t.preventDefault()},e.prototype._keydown=function(t){switch(t.which){case pe.UP:this._pan(0,1),t.preventDefault();break;case pe.DOWN:this._pan(0,-1),t.preventDefault();break;case pe.RIGHT:this._pan(1,0),t.preventDefault();break;case pe.LEFT:this._pan(-1,0),t.preventDefault()}},e}(ig);function pg(t,e,o){var i='<button class="k-button k-button-md k-rounded-md k-button-solid k-button-solid-base k-icon-button k-zoom-'+t+'" title="zoom-'+t+'" aria-label="zoom-'+t+'">'+Xt({icon:e,iconClass:"k-button-icon",svgIcons:o.svgIcons,type:o.type})+"</button>";return If(i)}Vt(ag,{name:"Navigator",panStep:1}),Qf(ag,["pan"]);var lg="change",cg=function(t){function e(e,o,i){t.call(this),this.element=e,this._initOptions(o);var r=pg("in","plus",i),n=pg("out","minus",i);this.element.appendChild(r),this.element.appendChild(n),B(this.element,"k-widget k-zoom-control k-button-group k-group-horizontal"),this._clickHandler=this._click.bind(this),Ff(this.element,"click",".k-button",this._clickHandler);var s=this.element.parentNode.closest("[data-role]");this._keyroot=s||this.element,this._tabindex(this._keyroot),this._keydownHandler=this._keydown.bind(this),Ff(this._keyroot,"keydown",this._keydownHandler)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.destroy=function(){this.element&&Wf(this.element,"click",this._clickHandler),this._keyroot&&Wf(this._keyroot,"keydown",this._keydownHandler)},e.prototype._tabindex=function(t){var e=t||this.wrapper||this.element,o=this.element,i="tabindex",r=e.getAttribute(i)||o.getAttribute(i);o.removeAttribute(i),e.setAttribute(i,isNaN(r)?0:r)},e.prototype._initOptions=function(t){this.options=Y({},this.options,t)},e.prototype._change=function(t){var e=this.options.zoomStep;this.trigger(lg,{delta:t*e})},e.prototype._click=function(t){var e=1;pt(t.currentTarget,"k-zoom-out")&&(e=-1),this._change(e),t.preventDefault()},e.prototype._keydown=function(t){switch(t.which){case pe.NUMPAD_PLUS:case 187:case 61:this._change(1);break;case pe.NUMPAD_MINUS:case 189:case 173:this._change(-1)}},e}(ig);Vt(cg,{name:"ZoomControl",zoomStep:1}),Qf(cg,[lg]);var hg=Math,ug=hg.max,dg=hg.min,fg=function(t){function e(e,o){t.call(this);var i=df.create(e),r=df.create(o);i.lng+180>r.lng+180&&i.lat+90<r.lat+90?(this.se=i,this.nw=r):(this.se=r,this.nw=i)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var o={World:{configurable:!0}};return e.prototype.contains=function(t){var e=this.nw,o=this.se,i=jt(t.lng,t[1]),r=jt(t.lat,t[0]);return t&&i+180>=e.lng+180&&i+180<=o.lng+180&&r+90>=o.lat+90&&r+90<=e.lat+90},e.prototype.center=function(){var t=this.nw,e=this.se,o=t.lng+(e.lng-t.lng)/2,i=t.lat+(e.lat-t.lat)/2;return new df(i,o)},e.prototype.containsAny=function(t){for(var e=!1,o=0;o<t.length;o++)e=e||this.contains(t[o]);return e},e.prototype.include=function(t){var e=this.nw,o=this.se,i=jt(t.lng,t[1]),r=jt(t.lat,t[0]);e.lng=dg(e.lng,i),e.lat=ug(e.lat,r),o.lng=ug(o.lng,i),o.lat=dg(o.lat,r)},e.prototype.includeAll=function(t){for(var e=0;e<t.length;e++)this.include(t[e])},e.prototype.edges=function(){var t=this.nw,e=this.se;return{nw:this.nw,ne:new df(t.lat,e.lng),se:this.se,sw:new df(e.lat,t.lng)}},e.prototype.toArray=function(){var t=this.nw,e=this.se;return[t,new df(t.lat,e.lng),e,new df(e.lat,t.lng)]},e.prototype.overlaps=function(t){return this.containsAny(t.toArray())||t.containsAny(this.toArray())},e.create=function(t,o){return t instanceof e?t:t&&o?new e(t,o):t&&4===t.length&&!o?new e([t[0],t[1]],[t[2],t[3]]):void 0},o.World.get=function(){return new e([90,-180],[-90,180])},Object.defineProperties(e,o),e}(D.Class),gg="centerChange",yg=function(t){function e(e,o){t.call(this),this.widgetService=e,this.options=Y({},this.options,o),this.offset={x:0,y:0}}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var o={anchor:{configurable:!0}};return e.prototype.show=function(t,e){this.location!==e.location&&(this.anchor=t,this.location=e.location,this.widgetService.notify("showTooltip",Object.assign({anchor:this.anchor},e)),this.visible=!0)},e.prototype.hide=function(){this.widgetService&&this.widgetService.notify("hideTooltip"),this.visible=!1,this.location=null},o.anchor.get=function(){return this._anchor},o.anchor.set=function(t){var e=this.widgetService.widget._toDocumentCoordinates({x:t.left-this.offset.x,y:t.top-this.offset.y});this._anchor={left:e.left,top:e.top}},e.prototype.destroy=function(){this.widgetService=null},Object.defineProperties(e.prototype,o),e}(D.Class);Vt(yg,{border:{width:1},opacity:1});var vg=function(t){function e(e,o){t.call(this),this.support=Hf(),this._initOptions(o),this.map=e;var i=document.createElement("div");B(i,"k-layer"),i.style.zIndex=this.options.zIndex,i.style.opacity=this.options.opacity,this.element=i,e.scrollElement.appendChild(this.element),this._beforeReset=this._beforeReset.bind(this),this._reset=this._reset.bind(this),this._resize=this._resize.bind(this),this._panEnd=this._panEnd.bind(this),this._activate(),this._updateAttribution()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.destroy=function(){this._deactivate()},e.prototype._initOptions=function(t){this.options=Y({},this.options,t)},e.prototype.show=function(){this.reset(),this._activate(),this._applyExtent(!0)},e.prototype.hide=function(){this._deactivate(),this._setVisibility(!1)},e.prototype.reset=function(){this._beforeReset(),this._reset()},e.prototype._reset=function(){this._applyExtent()},e.prototype._beforeReset=function(){},e.prototype._resize=function(){},e.prototype._panEnd=function(){this._applyExtent()},e.prototype._applyExtent=function(){var t=this.options,e=this.map.zoom(),o=!Ct(t.minZoom)||e>=t.minZoom,i=!Ct(t.maxZoom)||e<=t.maxZoom,r=fg.create(t.extent),n=!r||r.overlaps(this.map.extent());this._setVisibility(o&&i&&n)},e.prototype._setVisibility=function(t){this.element.style.display=t?"":"none"},e.prototype._activate=function(){var t=this.map;this._deactivate(),t.bind("beforeReset",this._beforeReset),t.bind("reset",this._reset),t.bind("resize",this._resize),t.bind("panEnd",this._panEnd)},e.prototype._deactivate=function(){var t=this.map;t.unbind("beforeReset",this._beforeReset),t.unbind("reset",this._reset),t.unbind("resize",this._resize),t.unbind("panEnd",this._panEnd)},e.prototype._updateAttribution=function(){var t=this.map.attribution;t&&t.add(this.options.attribution)},e.prototype._readData=function(){return this.options.data||[]},e.prototype._hasData=function(){return this._data&&this._data.length>0},e.prototype._layerIndex=function(){return(this.map.layers||[]).indexOf(this)},e}(D.Class),mg=Math,xg=D.geometry.Point;function bg(t){return U(t)?t:ot.compile(t)}function _g(t){return new xg(Bt(t.x),Bt(t.y))}function wg(t){var e=t;return"string"!=typeof t&&(e+="px"),e}var Cg=function(t){function e(e,o){t.call(this,e,o),"string"==typeof this.options.subdomains&&(this.options.subdomains=this.options.subdomains.split(""));var i=this._viewType();this._view=new i(this.element,this.options)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.destroy=function(){t.prototype.destroy.call(this),this._view.destroy(),this._view=null},e.prototype._beforeReset=function(){var t=this.map,e=t.locationToLayer(t.extent().nw).round();this._view.viewOrigin(e)},e.prototype._reset=function(){t.prototype._reset.call(this),this._updateView(),this._view.reset()},e.prototype._viewType=function(){return kg},e.prototype._activate=function(){t.prototype._activate.call(this),this.support.mobileOS||(this._pan||(this._pan=(0,D.throttle)(this._render.bind(this),100)),this.map.bind("pan",this._pan))},e.prototype._deactivate=function(){t.prototype._deactivate.call(this),this._pan&&this.map.unbind("pan",this._pan)},e.prototype._updateView=function(){var t=this._view,e=this.map,o=e.extent(),i={nw:e.locationToLayer(o.nw).round(),se:e.locationToLayer(o.se).round()};t.center(e.locationToLayer(e.center())),t.extent(i),t.zoom(e.zoom())},e.prototype._resize=function(){this._render()},e.prototype._panEnd=function(e){t.prototype._panEnd.call(this,e),this._render()},e.prototype._render=function(){this._updateView(),this._view.render()},e}(vg);Vt(Cg,{tileSize:256,subdomains:["a","b","c"],urlTemplate:"",zIndex:1});var kg=function(t){function e(e,o){t.call(this),this.element=e,this._initOptions(o),this.pool=new Sg}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._initOptions=function(t){this.options=Y({},this.options,t)},e.prototype.center=function(t){this._center=t},e.prototype.extent=function(t){this._extent=t},e.prototype.viewOrigin=function(t){this._viewOrigin=t},e.prototype.zoom=function(t){this._zoom=t},e.prototype.pointToTileIndex=function(t){return new xg(mg.floor(t.x/this.options.tileSize),mg.floor(t.y/this.options.tileSize))},e.prototype.tileCount=function(){var t=this.size(),e=this.pointToTileIndex(this._extent.nw),o=this._extent.nw,i=this.indexToPoint(e).translate(-o.x,-o.y);return{x:mg.ceil((mg.abs(i.x)+t.width)/this.options.tileSize),y:mg.ceil((mg.abs(i.y)+t.height)/this.options.tileSize)}},e.prototype.size=function(){var t=this._extent.nw,e=this._extent.se.clone().translate(-t.x,-t.y);return{width:e.x,height:e.y}},e.prototype.indexToPoint=function(t){var e=t.x,o=t.y;return new xg(e*this.options.tileSize,o*this.options.tileSize)},e.prototype.subdomainText=function(){var t=this.options.subdomains;return t[this.subdomainIndex++%t.length]},e.prototype.destroy=function(){Rf(this.element),this.pool.empty()},e.prototype.reset=function(){this.pool.reset(),this.subdomainIndex=0,this.render()},e.prototype.render=function(){var t,e,o,i=this.tileCount(),r=this.pointToTileIndex(this._extent.nw);for(e=0;e<i.x;e++)for(o=0;o<i.y;o++)(t=this.createTile({x:r.x+e,y:r.y+o})).visible||t.show()},e.prototype.createTile=function(t){var e=this.tileOptions(t),o=this.pool.get(this._center,e);return o.element.parentNode||this.element.append(o.element),o},e.prototype.tileOptions=function(t){var e=this.wrapIndex(t),o=this.indexToPoint(t),i=this._viewOrigin,r=o.clone().translate(-i.x,-i.y);return{index:e,currentIndex:t,point:o,offset:_g(r),zoom:this._zoom,size:this.options.tileSize,subdomain:this.subdomainText(),urlTemplate:this.options.urlTemplate,errorUrlTemplate:this.options.errorUrlTemplate}},e.prototype.wrapIndex=function(t){var e=mg.pow(2,this._zoom);return{x:this.wrapValue(t.x,e),y:Et(t.y,0,e-1)}},e.prototype.wrapValue=function(t,e){var o=mg.abs(t)%e;return t>=0?o:e-(0===o?e:o)},e}(D.Class),Ag=function(t){function e(e,o){t.call(this),this.id=e,this.visible=!0,this._initOptions(o),this.createElement(),this.show()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.destroy=function(){var t=this.element,e=t?t.parentNode:null;t&&(e&&e.removeChild(t),this.element=null)},e.prototype._initOptions=function(t){this.options=Y({},this.options,t)},e.prototype.createElement=function(){var t=document.createElement("img"),e=this.options.size+"px";t.style.position="absolute",t.style.display="block",t.style.width=t.style.maxWidth=e,t.style.height=t.style.maxHeight=e,this.element=t},e.prototype.show=function(){var t=this.element;t.style.top=wg(this.options.offset.y),t.style.left=wg(this.options.offset.x);var e=this.url();e&&t.setAttribute("src",e),t.style.visibility="visible",this.visible=!0},e.prototype.hide=function(){this.element.style.visibility="hidden",this.visible=!1},e.prototype.url=function(){return bg(this.options.urlTemplate)(this.urlOptions())},e.prototype.errorUrl=function(){return bg(this.options.errorUrlTemplate)(this.urlOptions())},e.prototype.urlOptions=function(){var t=this.options;return{zoom:t.zoom,subdomain:t.subdomain,z:t.zoom,x:t.index.x,y:t.index.y,s:t.subdomain,quadkey:t.quadkey,q:t.quadkey,culture:t.culture,c:t.culture}},e}(D.Class);Vt(Ag,{urlTemplate:"",errorUrlTemplate:""});var Sg=function(t){function e(){t.call(this),this._items=[]}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.get=function(t,e){return this._items.length>=this.options.maxSize&&this._remove(t),this._create(e)},e.prototype.empty=function(){for(var t=this._items,e=0;e<t.length;e++)t[e].destroy();this._items=[]},e.prototype.reset=function(){for(var t=this._items,e=0;e<t.length;e++)t[e].hide()},e.prototype._create=function(t){for(var e,o=this._items,i=Tt(t.point.toString()+t.offset.toString()+t.zoom+t.urlTemplate),r=0;r<o.length;r++)if(o[r].id===i){e=o[r];break}return e?e.show():(e=new Ag(i,t),this._items.push(e)),e},e.prototype._remove=function(t){for(var e=this._items,o=-1,i=-1,r=0;r<e.length;r++){var n=e[r].options.point.distanceTo(t);n>o&&!e[r].visible&&(i=r,o=n)}-1!==i&&(e[i].destroy(),e.splice(i,1))},e}(D.Class);Vt(Sg,{maxSize:100});var Pg=Object.assign,Og="change",Tg=function(t){function e(e,o){t.call(this);var i=this,r=e[0]||e;i.capture=!1;var n=Vf(navigator.userAgent);r.addEventListener?(n.down.split(" ").forEach((function(t){r.addEventListener(t,Nf(i._press,i),!0)})),n.up.split(" ").forEach((function(t){r.addEventListener(t,Nf(i._release,i),!0)}))):(n.down.split(" ").forEach((function(t){r.attachEvent(t,Nf(i._press,i))})),n.up.split(" ").forEach((function(t){r.attachEvent(t,Nf(i._release,i))}))),i.bind(["press","release"],o||{})}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.captureNext=function(){this.capture=!0},e.prototype.cancelCapture=function(){this.capture=!1},e.prototype._press=function(t){this.trigger("press"),this.capture&&t.preventDefault()},e.prototype._release=function(t){var e=this;e.trigger("release"),e.capture&&(t.preventDefault(),e.cancelCapture())},e}(ig),Mg=function(t){function e(e){t.call(this);var o=this;o.forcedEnabled=!1,Pg(o,e),o.scale=1,o.horizontal?(o.measure="offsetWidth",o.scrollSize="scrollWidth",o.axis="x"):(o.measure="offsetHeight",o.scrollSize="scrollHeight",o.axis="y")}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.makeVirtual=function(){Pg(this,{virtual:!0,forcedEnabled:!0,_virtualMin:0,_virtualMax:0})},e.prototype.virtualSize=function(t,e){this._virtualMin===t&&this._virtualMax===e||(this._virtualMin=t,this._virtualMax=e,this.update())},e.prototype.outOfBounds=function(t){return t>this.max||t<this.min},e.prototype.forceEnabled=function(){this.forcedEnabled=!0},e.prototype.getSize=function(){return this.container[this.measure]},e.prototype.getTotal=function(){return this.element[this.scrollSize]},e.prototype.rescale=function(t){this.scale=t},e.prototype.update=function(t){var e=this,o=e.virtual?e._virtualMax:e.getTotal(),i=o*e.scale,r=e.getSize();(0!==o||e.forcedEnabled)&&(e.max=e.virtual?-e._virtualMin:0,e.size=r,e.total=i,e.min=Math.min(e.max,r-i),e.minScale=r/o,e.centerOffset=(i-r)/2,e.enabled=e.forcedEnabled||i>r,t||e.trigger(Og,e))},e}(ig),Eg=function(t){function e(e){t.call(this);var o=this;o.x=new Mg(Pg({horizontal:!0},e)),o.y=new Mg(Pg({horizontal:!1},e)),o.container=e.container,o.forcedMinScale=e.minScale,o.maxScale=e.maxScale||100,o.bind(Og,e)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.rescale=function(t){this.x.rescale(t),this.y.rescale(t),this.refresh()},e.prototype.centerCoordinates=function(){return{x:Math.min(0,-this.x.centerOffset),y:Math.min(0,-this.y.centerOffset)}},e.prototype.refresh=function(){var t=this;t.x.update(),t.y.update(),t.enabled=t.x.enabled||t.y.enabled,t.minScale=t.forcedMinScale||Math.min(t.x.minScale,t.y.minScale),t.fitScale=Math.max(t.x.minScale,t.y.minScale),t.trigger(Og)},e}(ig),Ig=function(t){function e(e){t.call(this),Pg(this,e)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.outOfBounds=function(){return this.dimension.outOfBounds(this.movable[this.axis])},e.prototype.dragMove=function(t){var e=this,o=e.dimension,i=e.axis,r=e.movable,n=r[i]+t;if(o.enabled){var s=t;(n<o.min&&t<0||n>o.max&&t>0)&&(s*=e.resistance),r.translateAxis(i,s),e.trigger(Og,e)}},e}(ig),Rg=function(t){function e(e){t.call(this);var o,i,r,n,s=this;Pg(s,{elastic:!0},e),r=s.elastic?.5:0,n=s.movable,s.x=o=new Ig({axis:"x",dimension:s.dimensions.x,resistance:r,movable:n}),s.y=i=new Ig({axis:"y",dimension:s.dimensions.y,resistance:r,movable:n}),s.userEvents.bind(["press","move","end","gesturestart","gesturechange"],{gesturestart:function(t){s.gesture=t,s.offset=At(s.dimensions.container)},press:function(t){var e=t.event.target.closest("a");e&&e.matches("[data-navigate-on-press=true]")&&t.sender.cancel()},gesturechange:function(t){var e,r=s.gesture,a=r.center,p=t.center,l=t.distance/r.distance,c=s.dimensions.minScale,h=s.dimensions.maxScale;n.scale<=c&&l<1&&(l+=.8*(1-l)),n.scale*l>=h&&(l=h/n.scale);var u=n.x+s.offset.left,d=n.y+s.offset.top;e={x:(u-a.x)*l+p.x-u,y:(d-a.y)*l+p.y-d},n.scaleWith(l),o.dragMove(e.x),i.dragMove(e.y),s.dimensions.rescale(n.scale),s.gesture=t,t.preventDefault()},move:function(t){t.event.target.tagName.match(/textarea|input/i)||(o.dimension.enabled||i.dimension.enabled?(o.dragMove(t.x.delta),i.dragMove(t.y.delta),t.preventDefault()):t.touch.skip())},end:function(t){t.preventDefault()}})}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(D.Class),Bg=function(t,e,o){return"translate3d("+t+"px,"+e+"px,0) scale("+o+")"},Lg=function(t){function e(e){t.call(this);var o=this;o.support=Hf(),this.transformStyle=this.support.transitions.prefix+"Transform",o.element=e,o.element.style.webkitTransformOrigin="left top",o.x=0,o.y=0,o.scale=1;var i=Bg(o.x,o.y,o.scale);o.element.style[this.transformStyle]=i,o._saveCoordinates(i)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.translateAxis=function(t,e){this[t]+=e,this.refresh()},e.prototype.scaleTo=function(t){this.scale=t,this.refresh()},e.prototype.scaleWith=function(t){this.scale*=t,this.refresh()},e.prototype.translate=function(t){this.x+=t.x,this.y+=t.y,this.refresh()},e.prototype.moveAxis=function(t,e){this[t]=e,this.refresh()},e.prototype.moveTo=function(t){Pg(this,t),this.refresh()},e.prototype.refresh=function(){var t,e=this,o=e.x,i=e.y;e.round&&(o=Math.round(o),i=Math.round(i)),(t=Bg(o,i,e.scale))!==e.coordinates&&(e.element.style[this.transformStyle]=t,e._saveCoordinates(t),e.trigger(Og))},e.prototype._saveCoordinates=function(t){this.coordinates=t},e}(ig),jg=D.drawing.Group,Dg=function(t){function e(e,o){t.call(this,e,o),this._pan=Nf(this._pan,this),this.surface=D.drawing.Surface.create(this.element,{width:e.scrollElement.clientWidth,height:e.scrollElement.clientHeight}),this._initRoot(),this.movable=new Lg(this.surface.element),this._markers=[],this._click=this._handler("shapeClick"),this.surface.bind("click",this._click),this._mouseleave=this._handler("shapeMouseLeave"),this.surface.bind("mouseleave",this._mouseleave),this.surface.bind("mouseenter",this._mouseenter.bind(this))}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.destroy=function(){t.prototype.destroy.call(this),this.surface.destroy()},e.prototype._reset=function(){t.prototype._reset.call(this),this._translateSurface(),this._data=this._readData(),this._hasData()&&this._load(this._data)},e.prototype._initRoot=function(){this._root=new jg,this.surface.draw(this._root)},e.prototype._beforeReset=function(){this.surface.clear(),this._initRoot()},e.prototype._resize=function(){this.surface.size(this.map.size())},e.prototype._readData=function(){var e=t.prototype._readData.call(this);return"FeatureCollection"===e.type?e.features:"GeometryCollection"===e.type?e.geometries:e},e.prototype._load=function(t){this._data=t,this._clearMarkers(),this._loader||(this._loader=new zg(this.map,this.options.style,this));for(var e=new jg,o=0;o<t.length;o++){var i=this._loader.parse(t[o]);i&&e.append(i)}this._root.clear(),this._root.append(e)},e.prototype.shapeCreated=function(t){var e=!1;if(t instanceof D.drawing.Circle&&this.map.options.renderPointsAsMarkers&&(e=Ct(this._createMarker(t))),!e){var o={layer:this,shape:t};e=this.map.trigger("shapeCreated",o)}return e},e.prototype.featureCreated=function(t){t.layer=this,this.map.trigger("shapeFeatureCreated",t)},e.prototype._createMarker=function(t){var e=this.map.markers.bind({location:t.location},t.dataItem);return e&&this._markers.push(e),e},e.prototype._clearMarkers=function(){for(var t=0;t<this._markers.length;t++)this.map.markers.remove(this._markers[t]);this._markers=[]},e.prototype._pan=function(){this._panning||(this._panning=!0,this.surface.suspendTracking())},e.prototype._panEnd=function(e){t.prototype._panEnd.call(this,e),this._translateSurface(),this.surface.resumeTracking(),this._panning=!1},e.prototype._translateSurface=function(){var t=this.map,e=t.locationToView(t.extent().nw);this.surface.translate&&(this.surface.translate(e),this.movable.moveTo({x:e.x,y:e.y}))},e.prototype._eventArgs=function(t){return{layer:this,layerIndex:this._layerIndex(),shape:t.element,shapeIndex:(this._data||[]).indexOf(t.element.dataItem),originalEvent:t.originalEvent}},e.prototype._handler=function(t){var e=this;return function(o){o.element&&e.map.trigger(t,e._eventArgs(o))}},e.prototype._mouseenter=function(t){if(t.element){this.map.trigger("shapeMouseEnter",this._eventArgs(t));var e=t.element,o=this._tooltipAnchor(t);this.map._tooltip.show(o,this._tooltipContext(e))}},e.prototype._tooltipContext=function(t){return{type:"shape",layerIndex:this._layerIndex(),className:"k-map-shape-tooltip",dataItem:t.dataItem,location:t.location}},e.prototype._tooltipAnchor=function(t){var e=this.map.eventOffset(t.originalEvent);return{top:e.y,left:e.x}},e.prototype._activate=function(){t.prototype._activate.call(this),this._panHandler=Nf(this._pan,this),this.map.bind("pan",this.panHandler)},e.prototype._deactivate=function(){t.prototype._deactivate.call(this),this.map.unbind("pan",this._panHandler)},e}(vg);Vt(Dg,{autoBind:!0,zIndex:100});var zg=function(t){function e(e,o,i){t.call(this),this.observer=i,this.locator=e,this.style=o}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.parse=function(t){var e=new jg,o=!0;return"Feature"===t.type?(o=!1,this._loadGeometryTo(e,t.geometry,t),this._featureCreated(e,t)):this._loadGeometryTo(e,t,t),o&&e.children.length<2&&(e=e.children[0]),e},e.prototype._shapeCreated=function(t){var e=!1;return this.observer&&this.observer.shapeCreated&&(e=this.observer.shapeCreated(t)),e},e.prototype._featureCreated=function(t,e){this.observer&&this.observer.featureCreated&&this.observer.featureCreated({group:t,dataItem:e,properties:e.properties})},e.prototype._loadGeometryTo=function(t,e,o){var i,r,n=this,s=e.coordinates;switch(e.type){case"LineString":r=this._loadPolygon(t,[s],o),this._setLineFill(r);break;case"MultiLineString":for(i=0;i<s.length;i++)r=n._loadPolygon(t,[s[i]],o),n._setLineFill(r);break;case"Polygon":this._loadPolygon(t,s,o);break;case"MultiPolygon":for(i=0;i<s.length;i++)n._loadPolygon(t,s[i],o);break;case"Point":this._loadPoint(t,s,o);break;case"MultiPoint":for(i=0;i<s.length;i++)n._loadPoint(t,s[i],o)}},e.prototype._setLineFill=function(t){var e=t.segments;(e.length<4||!e[0].anchor().equals(Mt(e).anchor()))&&(t.options.fill=null)},e.prototype._loadShape=function(t,e){return this._shapeCreated(e)||t.append(e),e},e.prototype._loadPolygon=function(t,e,o){var i=this._buildPolygon(e);return i.dataItem=o,i.location=this.locator.viewToLocation(i.bbox().center()),this._loadShape(t,i)},e.prototype._buildPolygon=function(t){for(var e=new(t.length>1?D.drawing.MultiPath:D.drawing.Path)(this.style),o=0;o<t.length;o++)for(var i=0;i<t[o].length;i++){var r=this.locator.locationToView(df.fromLngLat(t[o][i]));0===i?e.moveTo(r.x,r.y):e.lineTo(r.x,r.y)}return e},e.prototype._loadPoint=function(t,e,o){var i=df.fromLngLat(e),r=this.locator.locationToView(i),n=new D.geometry.Circle(r,10),s=new D.drawing.Circle(n,this.style);return s.dataItem=o,s.location=i,this._loadShape(t,s)},e}(D.Class),Vg=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._readData=function(){return this.options.data||[]},e.prototype._load=function(t){var e=this;if(this._data=t,this.surface.clear(),0!==t.length){var o=this.options,i=st(o.valueField),r=t.slice(0);r.sort((function(t,e){return i(e)-i(t)}));for(var n,s=this._scaleType(),a=st(this.options.locationField),p=0;p<r.length;p++){var l=r[p],c=a(l),h=i(l);if(Ct(c)&&Ct(h)){n||(n=new s([0,h],[o.minSize,o.maxSize])),c=df.create(c);var u=e.map.locationToView(c),d=n.map(h),f=e._createSymbol({center:u,size:d,style:o.style,dataItem:l,location:c});f.dataItem=l,f.location=c,f.value=h,e._drawSymbol(f)}}}},e.prototype._scaleType=function(){var t=this.options.scale;return U(t)?t:Hg[t]},e.prototype._createSymbol=function(t){var e=this.options.symbol;return U(e)||(e=Ng[e]),e(t)},e.prototype._drawSymbol=function(t){var e={layer:this,shape:t};this.map.trigger("shapeCreated",e)||this.surface.draw(t)},e.prototype._tooltipContext=function(t){return{type:"bubble",layerIndex:this._layerIndex(),className:"k-map-bubble-tooltip",dataItem:t.dataItem,location:t.location,value:t.value}},e.prototype._tooltipAnchor=function(t){var e=t.element.bbox().center();return{top:e.y,left:e.x}},e}(Dg);Vt(Vg,{locationField:"location",valueField:"value",minSize:0,maxSize:100,scale:"sqrt",symbol:"circle",zIndex:200});var Hg={sqrt:function(t){function e(e,o){t.call(this),this._domain=e,this._range=o;var i=Math.sqrt(e[1])-Math.sqrt(e[0]),r=o[1]-o[0];this._ratio=r/i}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.map=function(t){var e=(Math.sqrt(t)-Math.sqrt(this._domain[0]))*this._ratio;return this._range[0]+e},e}(D.Class)},Ng={circle:function(t){var e=new D.geometry.Circle(t.center,t.size/2);return new D.drawing.Circle(e,t.style)},square:function(t){var e=new D.drawing.Path(t.style),o=t.size/2,i=t.center;return e.moveTo(i.x-o,i.y-o).lineTo(i.x+o,i.y-o).lineTo(i.x+o,i.y+o).lineTo(i.x-o,i.y+o).close(),e}},Fg="click",Ug="mouseenter",Gg="mouseleave",Wg=Object.assign,Xg="k-marker",Yg="."+Xg,qg=function(t){function e(e,o){t.call(this,e,o),this._markerClickHandler=Nf(this._markerClick,this),Ff(this.element,Fg,Yg,this._markerClickHandler),this.items=[],this._load(this._readData())}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.destroy=function(){t.prototype.destroy.call(this),Wf(this.element,Fg,this._markerClickHandler),this.clear()},e.prototype.add=function(t){if(!R(t))return this._addOne(t);for(var e=0;e<t.length;e++)this._addOne(t[e])},e.prototype.remove=function(t){t.destroy();var e=(this.items||[]).indexOf(t);e>-1&&this.items.splice(e,1)},e.prototype.clear=function(){for(var t=0;t<this.items.length;t++)this.items[t].destroy();this.items=[]},e.prototype.update=function(t){var e=t.location();if(e){t.showAt(this.map.locationToView(e));var o={marker:t,layer:this};this.map.trigger("markerActivate",o)}},e.prototype._reset=function(){t.prototype._reset.call(this);for(var e=this.items,o=0;o<e.length;o++)this.update(e[o])},e.prototype.bind=function(t,e){var o=Qg.create(t,this.options);o.dataItem=e;var i={marker:o,layer:this};if(!this.map.trigger("markerCreated",i))return this.add(o),o},e.prototype._addOne=function(t){var e=Qg.create(t,this.options);return e.addTo(this),e},e.prototype._readData=function(){return this.options.data||[]},e.prototype._load=function(t){this._data=t,this.clear();for(var e=st(this.options.locationField),o=st(this.options.titleField),i=0;i<t.length;i++){var r=t[i];this.bind({location:e(r),title:o(r)},r)}},e.prototype._markerClick=function(t){var e=t.currentTarget._kendoNode,o={layer:this,layerIndex:this._layerIndex(),marker:e,markerIndex:(this.items||[]).indexOf(e),originalEvent:t};this.map.trigger("markerClick",o)},e.prototype._markerMouseEnter=function(t){var e=this._createMarkerEventArgs(t);this.map.trigger("markerMouseEnter",e)},e.prototype._markerMouseLeave=function(t){var e=this._createMarkerEventArgs(t);this.map.trigger("markerMouseLeave",e)},e.prototype._createMarkerEventArgs=function(t){var e=t.marker;return Wg({},{layer:this,layerIndex:this._layerIndex(),marker:e,markerIndex:(this.items||[]).indexOf(e)},t)},e}(vg);Vt(qg,{zIndex:1e3,autoBind:!0,locationField:"location",titleField:"title",template:""});var Qg=function(t){function e(e){t.call(this),this.options=e||{}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.destroy=function(){this.layer=null,this.unbindEvents(),this.hide()},e.prototype.addTo=function(t){this.layer=t.markers||t,this.layer.items.push(this),this.layer.update(this)},e.prototype.location=function(t){return t?(this.options.location=df.create(t).toArray(),this.layer&&this.layer.update(this),this):df.create(this.options.location)},e.prototype.showAt=function(t){this.render(),this._anchor={left:Math.round(t.x),top:Math.round(t.y)},this.element.style.left=jf(this._anchor.left),this.element.style.top=jf(this._anchor.top)},e.prototype.hide=function(){this.element&&(this.element.remove(),this.element=null)},e.prototype.bindEvents=function(){this.element&&(this._mouseEnterHandler=Nf(this._mouseEnter,this),Ff(this.element,Ug,Yg,this._mouseEnterHandler),this._mouseLeaveHandler=Nf(this._mouseLeave,this),Ff(this.element,Gg,Yg,this._mouseLeaveHandler))},e.prototype.unbindEvents=function(){this.element&&(Wf(this.element,Ug,this._mouseEnterHandler),Wf(this.element,Gg,this._mouseLeaveHandler))},e.prototype.render=function(){if(!this.element){var t=this.options,e=this.layer,o=document.createElement("span");if(B(o,Xg),this.options.template){var i=this._compileTemplate(this.options.template)(this.dataItem),r=If(i);o.appendChild(r)}else if(t.svgIcon)Xt(o,{icon:t.svgIcon,iconClass:"k-icon-xxl",svgIcons:this.options.icons.svgIcons,type:"svg"});else{var n={icon:"map-marker",iconClass:"k-icon-xxl",svgIcons:this.options.icons.svgIcons,type:this.options.icons.type};t.shape?"pinTarget"===t.shape?(n.icon="map-marker-target",Xt(o,n)):"pin"===t.shape?Xt(o,n):B(o,"k-icon k-icon-xxl k-i-marker-"+Lf(t.shape||"pin")):Xt(o,n)}t.title&&o.setAttribute("title",t.title);var s=t.attributes||{};Object.keys(s).forEach((function(t){o.setAttribute(t,s[t])})),o._kendoNode=this,o.style.zIndex=t.zIndex,this.element=o,e&&e.element.appendChild(this.element),this.bindEvents()}},e.prototype._mouseEnter=function(t){var e=this._createEventArgs(t);this.layer._markerMouseEnter(e),this.layer.map._tooltip.show({top:this._anchor.top-this.element.offsetHeight,left:this._anchor.left},this._tooltipContext())},e.prototype._tooltipContext=function(){return{type:"marker",layerIndex:this.layer._layerIndex(),className:"k-map-marker-tooltip",dataItem:this.dataItem,title:this.options.title,location:this.location()}},e.prototype._mouseLeave=function(t){var e=this._createEventArgs(t);this.layer._markerMouseLeave(e)},e.prototype._createEventArgs=function(t){return{marker:this,originalEvent:t}},e.prototype._compileTemplate=function(t){return ot.compile(t,{paramName:"dataItem",useWithBlock:!1})},e.create=function(t,o){return t instanceof e?t:new e(Y({},o,t))},e}(D.Class),Zg=Object.assign;function Kg(t){window.requestAnimationFrame(t)}var Jg=function(t){function e(){t.call(this);var e=this;e._tickProxy=Nf(e._tick,e),e._started=!1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.tick=function(){},e.prototype.done=function(){},e.prototype.onEnd=function(){},e.prototype.onCancel=function(){},e.prototype.start=function(){this.enabled()&&(this.done()?this.onEnd():(this._started=!0,Kg(this._tickProxy)))},e.prototype.enabled=function(){return!0},e.prototype.cancel=function(){this._started=!1,this.onCancel()},e.prototype._tick=function(){var t=this;t._started&&(t.tick(),t.done()?(t._started=!1,t.onEnd()):Kg(t._tickProxy))},e}(D.Class),$g=function(t){function e(e){t.call(this),Zg(this,e)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.done=function(){return this.timePassed()>=this.duration},e.prototype.timePassed=function(){return Math.min(this.duration,Zf()-this.startDate)},e.prototype.moveTo=function(t){var e=this,o=e.movable;e.initial=o[e.axis],e.delta=t.location-e.initial,e.duration="number"==typeof t.duration?t.duration:300,e.tick=e._easeProxy(t.ease),e.startDate=Zf(),e.start()},e.prototype._easeProxy=function(t){var e=this;return function(){e.movable.moveAxis(e.axis,t(e.timePassed(),e.initial,e.delta,e.duration))}},e.easeOutExpo=function(t,e,o,i){return t===i?e+o:o*(1-Math.pow(2,-10*t/i))+e},e}(Jg),ty=Object.assign,ey=function(t){t.preventDefault()},oy=800,iy=0,ry="press",ny="hold",sy="select",ay="start",py="move",ly="end",cy="cancel",hy="tap",uy="doubleTap",dy="release",fy="gesturechange",gy="gestureend",yy="gesturetap",vy={api:0,touch:0,mouse:9,pointer:9};function my(t){var e,o,i,r=Hf(),n=[],s=t.originalEvent||t,a=t.currentTarget,p=0;if(t.api)n.push({id:2,event:t,target:t.target,currentTarget:t.target,location:t,type:"api"});else if(t.type.match(/touch/))for(e=(o=s?s.changedTouches:[]).length;p<e;p++)i=o[p],n.push({location:i,event:t,target:i.target,currentTarget:a,id:i.identifier,type:"touch"});else r.pointers||r.msPointers?n.push({location:s,event:t,target:t.target,currentTarget:a,id:s.pointerId,type:"pointer"}):n.push({id:1,event:t,target:t.target,currentTarget:a,location:t,type:"mouse"});return n}var xy=function(t){function e(e,o){t.call(this);var i=this;i.support=Hf(),i.invalidZeroEvents=this.support.mobileOS&&this.support.mobileOS.android,i.axis=e,i._updateLocationData(o),i.startLocation=i.location,i.velocity=i.delta=0,i.timeStamp=Zf()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.move=function(t){var e=this,o=t["page"+e.axis],i=Zf(),r=i-e.timeStamp||1;!o&&this.invalidZeroEvents||(e.delta=o-e.location,e._updateLocationData(t),e.initialDelta=o-e.startLocation,e.velocity=e.delta/r,e.timeStamp=i)},e.prototype._updateLocationData=function(t){var e=this,o=e.axis;e.location=t["page"+o],e.client=t["client"+o],e.screen=t["screen"+o]},e}(D.Class),by=function(t){function e(e,o,i){t.call(this),ty(this,{x:new xy("X",i.location),y:new xy("Y",i.location),type:i.type,useClickAsTap:e.useClickAsTap,threshold:e.threshold||vy[i.type],userEvents:e,target:o,currentTarget:i.currentTarget,initialTouch:i.target,id:i.id,pressEvent:i,_clicks:e._clicks,supportDoubleTap:e.supportDoubleTap,_moved:!1,_finished:!1})}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.press=function(){this._holdTimeout=setTimeout(Nf(this._hold,this),this.userEvents.minHold),this._trigger(ry,this.pressEvent)},e.prototype._tap=function(t){var e=this;e.userEvents._clicks++,1===e.userEvents._clicks&&(e._clickTimeout=setTimeout((function(){1===e.userEvents._clicks?e._trigger(hy,t):e._trigger(uy,t),e.userEvents._clicks=0}),300))},e.prototype._hold=function(){this._trigger(ny,this.pressEvent)},e.prototype.move=function(t){var e=this,o="api"!==t.type&&e.userEvents._shouldNotMove;if(!e._finished&&!o){if(e.x.move(t.location),e.y.move(t.location),!e._moved){if(e._withinIgnoreThreshold())return;if(wy.current&&wy.current!==e.userEvents)return e.dispose();e._start(t)}e._finished||e._trigger(py,t)}},e.prototype.end=function(t){this.endTime=Zf(),this._finished||(this._finished=!0,this._trigger(dy,t),this._moved?this._trigger(ly,t):this.useClickAsTap||(this.supportDoubleTap?this._tap(t):this._trigger(hy,t)),clearTimeout(this._holdTimeout),this.dispose())},e.prototype.dispose=function(){var t=this.userEvents.touches||[];this._finished=!0,this.pressEvent=null,clearTimeout(this._holdTimeout);var e=t.indexOf(this);t.splice(e,1)},e.prototype.skip=function(){this.dispose()},e.prototype.cancel=function(){this.dispose()},e.prototype.isMoved=function(){return this._moved},e.prototype._start=function(t){clearTimeout(this._holdTimeout),this.startTime=Zf(),this._moved=!0,this._trigger(ay,t)},e.prototype._trigger=function(t,e){var o=this,i=e.event,r={touch:o,x:o.x,y:o.y,target:o.target,event:i};o.userEvents.notify(t,r)&&i.preventDefault()},e.prototype._withinIgnoreThreshold=function(){var t=this.x.initialDelta,e=this.y.initialDelta;return Math.sqrt(t*t+e*e)<=this.threshold},e}(D.Class);function _y(t){for(var e=Vf(navigator.userAgent).up.split(" "),o=0,i=e.length;o<i;o++)t(e[o])}var wy=function(t){function e(e,o){t.call(this);var i,r=this,n=Hf();this.support=n,o=o||{},this.options=o,i=r.filter=o.filter,r.threshold=o.threshold||iy,r.minHold=o.minHold||oy,r.touches=[],r._maxTouches=o.multiTouch?2:1,r.allowSelection=o.allowSelection,r.captureUpIfMoved=o.captureUpIfMoved,r.useClickAsTap=!o.fastTap&&!n.delayedClick(),r._clicks=0,r.supportDoubleTap=o.supportDoubleTap;var s=!n.touch||n.mouseAndTouchPresent;if(ty(r,{element:e,surface:o.global&&s?e.ownerDocument.documentElement:o.surface||e,stopPropagation:o.stopPropagation,pressed:!1}),this._surfaceMoveHandler=Nf(this._move,this),Ff(r.surface,qf("move"),this._surfaceMoveHandler),this._surfaceEndHandler=Nf(this._end,this),Ff(r.surface,qf("up cancel"),this._surfaceEndHandler),this._elementStartHandler=Nf(this._start,this),Ff(e,qf("down"),i,this._elementStartHandler),r.useClickAsTap&&(this._elementClickHandler=Nf(this._click,this),Ff(e,qf("click"),i,this._elementClickHandler)),n.pointers||n.msPointers)if(n.browser.version<11){var a="pinch-zoom double-tap-zoom";e.style["-ms-touch-action"]=o.touchAction&&"none"!==o.touchAction?a+" "+o.touchAction:a}else e.style["touch-action"]=o.touchAction||"none";if(o.preventDragEvent&&(this._elementDragStartHandler=ey,Ff(e,qf("dragstart"),this._elementDragStartHandler)),this._elementSelectHandler=Nf(this._select,this),Ff(e,qf("mousedown"),i,this._elementSelectHandler),r.captureUpIfMoved&&n.eventCapture){var p=r.surface,l=Nf(r.preventIfMoving,r);_y((function(t){p.addEventListener(t,l,!0)}))}r.bind([ry,ny,hy,uy,ay,py,ly,dy,cy,"gesturestart",fy,gy,yy,sy],o)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.preventIfMoving=function(t){this._isMoved()&&t.preventDefault()},e.prototype.destroy=function(){var t=this,e=this.options,o=this.element;if(!t._destroyed){if(t._destroyed=!0,t.captureUpIfMoved&&this.support.eventCapture){var i=t.surface;_y((function(e){i.removeEventListener(e,t.preventIfMoving)}))}Wf(t.surface,qf("move"),this._surfaceMoveHandler),Wf(t.surface,qf("up cancel"),this._surfaceEndHandler),Wf(o,qf("down"),this._elementStartHandler),t.useClickAsTap&&Wf(o,qf("click"),this._elementClickHandler),e.preventDragEvent&&Wf(o,qf("dragstart"),this._elementDragStartHandler),Wf(o,qf("mousedown"),this._elementSelectHandler),t._disposeAll(),t.unbind(),delete t.surface,delete t.element,delete t.currentTarget}},e.prototype.capture=function(){e.current=this},e.prototype.cancel=function(){this._disposeAll(),this.trigger(cy)},e.prototype.notify=function(t,e){var o,i,r,n,s,a,p,l,c=this.touches,h=t;if(this._isMultiTouch()){switch(h){case py:h=fy;break;case ly:h=gy;break;case hy:h=yy}ty(e,{touches:c},(o=c[0],i=c[1],r=o.x.location,n=o.y.location,p=r-(s=i.x.location),l=n-(a=i.y.location),{center:{x:(r+s)/2,y:(n+a)/2},distance:Math.sqrt(p*p+l*l)}))}return this.trigger(h,ty(e,{type:h}))},e.prototype.press=function(t,e,o){this._apiCall("_start",t,e,o)},e.prototype.move=function(t,e){this._apiCall("_move",t,e)},e.prototype.end=function(t,e){this._apiCall("_end",t,e)},e.prototype._isMultiTouch=function(){return this.touches.length>1},e.prototype._maxTouchesReached=function(){return this.touches.length>=this._maxTouches},e.prototype._disposeAll=function(){for(var t=this.touches;t.length>0;)t.pop().dispose()},e.prototype._isMoved=function(){return at(this.touches,(function(t){return t.isMoved()})).length},e.prototype._select=function(t){this.allowSelection&&!this.trigger(sy,{event:t})||t.preventDefault()},e.prototype._start=function(t){var o,i,r=this,n=0,s=r.filter,a=my(t),p=a.length,l=t.which;if(!(l&&l>1||r._maxTouchesReached()))for(e.current=null,r.currentTarget=t.currentTarget,r.stopPropagation&&t.stopPropagation();n<p&&!r._maxTouchesReached();n++)i=a[n],(o=s?i.currentTarget:r.element)&&0===o.length||(i=new by(r,o,i),r.touches.push(i),i.press(),r._isMultiTouch()&&r.notify("gesturestart",{}))},e.prototype._move=function(t){this._eachTouch("move",t)},e.prototype._end=function(t){this._eachTouch("end",t)},e.prototype._click=function(t){var e={touch:{initialTouch:t.target,target:t.currentTarget,endTime:Zf(),x:{location:t.pageX,client:t.clientX},y:{location:t.pageY,client:t.clientY}},x:t.pageX,y:t.pageY,target:t.currentTarget,event:t,type:"tap"};this.trigger("tap",e)&&t.preventDefault()},e.prototype._eachTouch=function(t,e){var o,i,r,n,s={},a=my(e),p=this.touches;for(o=0;o<p.length;o++)s[(i=p[o]).id]=i;for(o=0;o<a.length;o++)(n=s[(r=a[o]).id])&&n[t](r)},e.prototype._apiCall=function(t,e,o,i){this[t]({api:!0,pageX:e,pageY:o,clientX:e,clientY:o,target:i||this.element,stopPropagation:Kf,preventDefault:Kf})},e.defaultThreshold=function(t){iy=t},e.minHold=function(t){oy=t},e}(ig),Cy=Object.assign,ky=Math.abs,Ay="change",Sy="scroll",Py=function(t){function e(e){t.call(this,e);var o=this;Cy(o,e),o.userEvents.bind("gestureend",o.start.bind(this)),o.tapCapture.bind("press",o.cancel.bind(this))}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.enabled=function(){return this.movable.scale<this.dimensions.minScale},e.prototype.done=function(){return this.dimensions.minScale-this.movable.scale<.01},e.prototype.tick=function(){var t=this.movable;t.scaleWith(1.1),this.dimensions.rescale(t.scale)},e.prototype.onEnd=function(){var t=this.movable;t.scaleTo(this.dimensions.minScale),this.dimensions.rescale(t.scale)},e}(Jg),Oy=function(t){function e(e){t.call(this);var o=this;Cy(o,e,{transition:new $g({axis:e.axis,movable:e.movable,onEnd:function(){o._end()}})}),o.tapCapture.bind("press",(function(){o.cancel()})),o.userEvents.bind("end",Nf(o.start,o)),o.userEvents.bind("gestureend",Nf(o.start,o)),o.userEvents.bind("tap",Nf(o.onEnd,o))}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.onCancel=function(){this.transition.cancel()},e.prototype.freeze=function(t){this.cancel(),this._moveTo(t)},e.prototype.onEnd=function(){var t=this;t.paneAxis.outOfBounds()?t._snapBack():t._end()},e.prototype.done=function(){return ky(this.velocity)<1},e.prototype.start=function(e){var o,i=this;i.dimension.enabled&&(i.paneAxis.outOfBounds()?i.transition._started?(i.transition.cancel(),i.velocity=Math.min(e.touch[i.axis].velocity*i.velocityMultiplier,55),t.prototype.start.call(this)):i._snapBack():(o=2===e.touch.id?0:e.touch[i.axis].velocity,i.velocity=Math.max(Math.min(o*i.velocityMultiplier,55),-55),i.tapCapture.captureNext(),t.prototype.start.call(this)))},e.prototype.tick=function(){var t=this,e=t.dimension,o=t.paneAxis.outOfBounds()?.5:t.friction,i=t.velocity*=o,r=t.movable[t.axis]+i;!t.elastic&&e.outOfBounds(r)&&(r=Math.max(Math.min(r,e.max),e.min),t.velocity=0),t.movable.moveAxis(t.axis,r)},e.prototype._end=function(){this.tapCapture.cancelCapture(),this.end()},e.prototype._snapBack=function(){var t=this,e=t.dimension,o=t.movable[t.axis]>e.max?e.max:e.min;t._moveTo(o)},e.prototype._moveTo=function(t){this.transition.moveTo({location:t,duration:500,ease:$g.easeOutExpo})},e}(Jg),Ty=function(t){function e(e){t.call(this,e),Cy(this,e,{origin:{},destination:{},offset:{}})}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.tick=function(){this._updateCoordinates(),this.moveTo(this.origin)},e.prototype.done=function(){return ky(this.offset.y)<5&&ky(this.offset.x)<5},e.prototype.onEnd=function(){this.moveTo(this.destination),this.callback&&this.callback.call()},e.prototype.setCoordinates=function(t,e){this.offset={},this.origin=t,this.destination=e},e.prototype.setCallback=function(t){t&&U(t)?this.callback=t:t=void 0},e.prototype._updateCoordinates=function(){this.offset={x:(this.destination.x-this.origin.x)/4,y:(this.destination.y-this.origin.y)/4},this.origin={y:this.origin.y+this.offset.y,x:this.origin.x+this.offset.x}},e}(Jg),My=function(t){function e(e){t.call(this);var o=this,i="x"===e.axis,r=If('<div class="km-touch-scrollbar km-'+(i?"horizontal":"vertical")+'-scrollbar" />');Cy(o,e,{element:r,elementSize:0,movable:new Lg(r),scrollMovable:e.movable,alwaysVisible:e.alwaysVisible,size:i?"width":"height"}),o.scrollMovable.bind(Ay,o.refresh.bind(o)),o.container.appendChild(r),e.alwaysVisible&&o.show()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.refresh=function(){var t=this,e=t.axis,o=t.dimension,i=o.size,r=t.scrollMovable,n=i/o.total,s=Math.round(-r[e]*n),a=Math.round(i*n);this.element.style.display=n>=1?"none":"",s+a>i?a=i-s:s<0&&(a+=s,s=0),t.elementSize!==a&&(t.element.style[t.size]=a+"px",t.elementSize=a),t.movable.moveAxis(e,s)},e.prototype.show=function(){this.element.style.opacity=.7,this.element.style.visibility="visible"},e.prototype.hide=function(){this.alwaysVisible||(this.element.style.opacity=0)},e}(D.Class),Ey=function(t){function e(e,o){t.call(this);var i=this;this.element=e,this._initOptions(o);var r,n,s=(r=navigator.userAgent,(n=Df(r)).ios||n.android);i._native=i.options.useNative&&s;var a=If('<div class="km-scroll-header"/>');if(i._native)return B(e,"km-native-scroller"),Bf(a,e),void Cy(i,{scrollElement:e,fixedContainer:e.children[0]});e.style.overflow="hidden",B(e,"km-scroll-wrapper"),function(t,e){for(t.appendChild(e);t.firstChild!==e;)e.appendChild(t.firstChild)}(e,If('<div class="km-scroll-container"/>')),Bf(a,e);var p=e.children[1],l=new Tg(e),c=new Lg(p),h=new Eg({element:p,container:e,forcedEnabled:i.options.zoom}),u=this.options.avoidScrolling,d=new wy(e,{touchAction:"pan-y",fastTap:!0,allowSelection:!0,preventDragEvent:!0,captureUpIfMoved:!0,multiTouch:i.options.zoom,supportDoubleTap:i.options.supportDoubleTap,start:function(t){h.refresh();var e=ky(t.x.velocity),o=ky(t.y.velocity),r=2*e>=o,n=function(t,e){return t===e||function(t,e){if(!e)return!1;for(var o=e.parentNode;null!==o;){if(o===t)return!0;o=o.parentNode}return!1}(t,e)}(i.fixedContainer,t.event.target),s=2*o>=e;!n&&!u(t)&&i.enabled&&(h.x.enabled&&r||h.y.enabled&&s)?d.capture():d.cancel()}}),f=new Rg({movable:c,dimensions:h,userEvents:d,elastic:i.options.elastic}),g=new Py({movable:c,dimensions:h,userEvents:d,tapCapture:l}),y=new Ty({moveTo:function(t){i.scrollTo(t.x,t.y)}});c.bind(Ay,(function(){i.scrollTop=-c.y,i.scrollLeft=-c.x,i.trigger(Sy,{scrollTop:i.scrollTop,scrollLeft:i.scrollLeft})})),i.options.mousewheelScrolling&&(this._wheelScrollHandler=this._wheelScroll.bind(this),Ff(e,"wheel",this._wheelScrollHandler)),Cy(i,{movable:c,dimensions:h,zoomSnapBack:g,animatedScroller:y,userEvents:d,pane:f,tapCapture:l,pulled:!1,enabled:!0,scrollElement:p,scrollTop:0,scrollLeft:0,fixedContainer:e.children[0]}),i._initAxis("x"),i._initAxis("y"),i._wheelEnd=function(){i._wheel=!1,i.userEvents.end(0,i._wheelY)},h.refresh(),i.options.pullToRefresh&&i._initPullToRefresh()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._initOptions=function(t){this.options=Y({},this.options,t)},e.prototype._wheelScroll=function(t){if(!t.ctrlKey){this._wheel||(this._wheel=!0,this._wheelY=0,this.userEvents.press(0,this._wheelY)),clearTimeout(this._wheelTimeout),this._wheelTimeout=setTimeout(this._wheelEnd,50);var e=function(t){var e,o=t.originalEvent||t,i=o.wheelDeltaY;return o.wheelDelta?(void 0===i||i)&&(e=o.wheelDelta):o.detail&&o.axis===o.VERTICAL_AXIS&&(e=10*-o.detail),e}(t);e&&(this._wheelY+=e,this.userEvents.move(0,this._wheelY)),t.preventDefault()}},e.prototype.makeVirtual=function(){this.dimensions.y.makeVirtual()},e.prototype.virtualSize=function(t,e){this.dimensions.y.virtualSize(t,e)},e.prototype.height=function(){return this.dimensions.y.size},e.prototype.scrollHeight=function(){return this.scrollElement.scrollHeight},e.prototype.scrollWidth=function(){return this.scrollElement.scrollWidth},e.prototype._resize=function(){this._native||this.contentResized()},e.prototype.setOptions=function(t){this._initOptions(t),t.pullToRefresh&&this._initPullToRefresh()},e.prototype.reset=function(){this._native?this.scrollElement.scrollTop(0):(this.movable.moveTo({x:0,y:0}),this._scale(1))},e.prototype.contentResized=function(){this.dimensions.refresh(),this.pane.x.outOfBounds()&&this.movable.moveAxis("x",this.dimensions.x.min),this.pane.y.outOfBounds()&&this.movable.moveAxis("y",this.dimensions.y.min)},e.prototype.zoomOut=function(){var t=this.dimensions;t.refresh(),this._scale(t.fitScale),this.movable.moveTo(t.centerCoordinates())},e.prototype.enable=function(){this.enabled=!0},e.prototype.disable=function(){this.enabled=!1},e.prototype.scrollTo=function(t,e){this._native?(this.scrollElement.scrollLeft(ky(t)),this.scrollElement.scrollTop(ky(e))):(this.dimensions.refresh(),this.movable.moveTo({x:t,y:e}))},e.prototype.animatedScrollTo=function(t,e,o){var i,r;this._native?this.scrollTo(t,e):(i={x:this.movable.x,y:this.movable.y},r={x:t,y:e},this.animatedScroller.setCoordinates(i,r),this.animatedScroller.setCallback(o),this.animatedScroller.start())},e.prototype.pullHandled=function(){},e.prototype.destroy=function(){var t=this.element;Wf(t,"wheel",this._wheelScrollHandler),this.userEvents&&this.userEvents.destroy()},e.prototype._scale=function(t){this.dimensions.rescale(t),this.movable.scaleTo(t)},e.prototype._initPullToRefresh=function(){},e.prototype._dragEnd=function(){},e.prototype._paneChange=function(){},e.prototype._initAxis=function(t){var e=this,o=e.movable,i=e.dimensions[t],r=e.tapCapture,n=e.pane[t],s=new My({axis:t,movable:o,dimension:i,container:e.element,alwaysVisible:e.options.visibleScrollHints});i.bind(Ay,(function(){s.refresh()})),n.bind(Ay,(function(){s.show()})),e[t+"inertia"]=new Oy({axis:t,paneAxis:n,movable:o,tapCapture:r,userEvents:e.userEvents,dimension:i,elastic:e.options.elastic,friction:e.options.friction||.96,velocityMultiplier:e.options.velocityMultiplier||10,end:function(){s.hide(),e.trigger("scrollEnd",{axis:t,scrollTop:e.scrollTop,scrollLeft:e.scrollLeft})}})},e}(ig);Vt(Ey,{name:"Scroller",zoom:!1,pullOffset:140,visibleScrollHints:!1,elastic:!0,useNative:!1,mousewheelScrolling:!0,avoidScrolling:function(){return!1},pullToRefresh:!1,messages:{pullTemplate:"Pull to refresh",releaseTemplate:"Release to refresh",refreshTemplate:"Refreshing"}}),Qf(Ey,["pull",Sy,"resize"]);var Iy=function(t,e){void 0===e&&(e={}),this.sender=e.sender||t,this.widget=t,this.rtl=Boolean(e.rtl)};Iy.prototype.notify=function(t,e){this.widget&&this.widget.trigger(t,e)};const Ry=Iy;var By=Math,Ly=By.min,jy=By.pow,Dy=D.geometry.Point,zy="marker",Vy="location",Hy="wheel",Ny={bubble:Vg,shape:Dg,tile:Cg};Ny[zy]=qg;var Fy=function(t){function e(e,o,i,r){void 0===o&&(o={}),void 0===i&&(i={}),void 0===r&&(r={}),t.call(this),this._init(e,o,i,r)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.destroy=function(){this.scroller.destroy(),this._tooltip&&this._tooltip.destroy(),this.navigator&&this.navigator.destroy(),this.attribution&&this.attribution.destroy(),this.zoomControl&&this.zoomControl.destroy(),R(this.markers)?this.markers.forEach((function(t){t.destroy()})):this.markers.destroy();for(var e=0;e<this.layers.length;e++)this.layers[e].destroy();Wf(this.element,Hy,this._mousewheelHandler),t.prototype.destroy.call(this)},e.prototype._init=function(t,e,o,i){void 0===e&&(e={}),void 0===o&&(o={}),void 0===i&&(i={}),this.support=Hf(),this.context=i,this.initObserver(i),this.initServices(i),this._notifyObserver("init"),this._initOptions(e),this._setEvents(e),this.crs=new Mf,this._initElement(t),this._viewOrigin=this._getOrigin(),this._tooltip=this._createTooltip(),this._initScroller(),this._initMarkers(),this._initControls(),this._initLayers(),this._reset();var r=(0,D.throttle)(this._mousewheel.bind(this),50);this._mousewheelHandler=function(t){t.preventDefault(),r(t)},Ff(this.element,Hy,this._mousewheelHandler)},e.prototype._initOptions=function(t){this.options=Y({},this.options,t)},e.prototype._initElement=function(t){this.element=t,B(t,"k-map"),t.style.position="relative",t.setAttribute("data-role","map"),Rf(t);var e=If("<div />");this.element.appendChild(e)},e.prototype.initServices=function(t){void 0===t&&(t={}),this.widgetService=new Ry(this,t)},e.prototype.initObserver=function(t){void 0===t&&(t={}),this.observers=[],this.addObserver(t.observer)},e.prototype.addObserver=function(t){t&&this.observers.push(t)},e.prototype.removeObserver=function(t){var e=this.observers.indexOf(t);e>=0&&this.observers.splice(e,1)},e.prototype.requiresHandlers=function(t){for(var e=this.observers,o=0;o<e.length;o++)if(e[o].requiresHandlers(t))return!0},e.prototype.trigger=function(e,o){void 0===o&&(o={}),o.sender=this;for(var i=this.observers,r=!1,n=0;n<i.length;n++)i[n].trigger(e,o)&&(r=!0);return r||t.prototype.trigger.call(this,e,o),r},e.prototype._notifyObserver=function(t,e){void 0===e&&(e={}),e.sender=this;for(var o=this.observers,i=!1,r=0;r<o.length;r++)o[r].trigger(t,e)&&(i=!0);return i},e.prototype.zoom=function(t){var e,o=this.options;if(Ct(t)){var i=By.round(Et(t,o.minZoom,o.maxZoom));o.zoom!==i&&(o.zoom=i,this.widgetService.notify("zoomChange",{zoom:o.zoom}),this._reset()),e=this}else e=o.zoom;return e},e.prototype.center=function(t){var e;if(t){var o=df.create(t),i=df.create(this.options.center);o.equals(i)||(this.options.center=o.toArray(),this.widgetService.notify(gg,{center:this.options.center}),this._reset()),e=this}else e=df.create(this.options.center);return e},e.prototype.extent=function(t){var e;return t?(this._setExtent(t),e=this):e=this._getExtent(),e},e.prototype.setOptions=function(t){void 0===t&&(t={});var e=this.element;this.destroy(),Rf(e),this._init(e,t,{},this.context),this._reset()},e.prototype.locationToLayer=function(t,e){var o=!this.options.wraparound,i=df.create(t);return this.crs.toPoint(i,this._layerSize(e),o)},e.prototype.layerToLocation=function(t,e){var o=!this.options.wraparound,i=Dy.create(t);return this.crs.toLocation(i,this._layerSize(e),o)},e.prototype.locationToView=function(t){var e=df.create(t),o=this.locationToLayer(this._viewOrigin);return this.locationToLayer(e).translateWith(o.scale(-1))},e.prototype.viewToLocation=function(t,e){var o=this.locationToLayer(this._getOrigin(),e),i=Dy.create(t).clone().translateWith(o);return this.layerToLocation(i,e)},e.prototype.eventOffset=function(t){var e,o,i=At(this.element);if(t.x&&t.x[Vy]||t.y&&t.y[Vy])e=t.x[Vy]-i.left,o=t.y[Vy]-i.top;else{var r=t.originalEvent||t;e=jt(r.pageX,r.clientX)-i.left,o=jt(r.pageY,r.clientY)-i.top}return new D.geometry.Point(e,o)},e.prototype.eventToView=function(t){var e=this.eventOffset(t);return this.locationToView(this.viewToLocation(e))},e.prototype.eventToLayer=function(t){return this.locationToLayer(this.eventToLocation(t))},e.prototype.eventToLocation=function(t){var e=this.eventOffset(t);return this.viewToLocation(e)},e.prototype.viewSize=function(){var t=this.element,e=this._layerSize(),o=t.clientWidth;return this.options.wraparound||(o=Ly(e,o)),{width:o,height:Ly(e,t.clientHeight)}},e.prototype.exportVisual=function(){return this._reset(),!1},e.prototype.hideTooltip=function(){this._tooltip&&this._tooltip.hide()},e.prototype._setOrigin=function(t,e){var o,i=this.viewSize(),r=this._origin=df.create(t);return(o=this.locationToLayer(r,e)).x+=i.width/2,o.y+=i.height/2,this.options.center=this.layerToLocation(o,e).toArray(),this.widgetService.notify(gg,{center:this.options.center}),this},e.prototype._getOrigin=function(t){var e,o=this.viewSize();return!t&&this._origin||((e=this.locationToLayer(this.center())).x-=o.width/2,e.y-=o.height/2,this._origin=this.layerToLocation(e)),this._origin},e.prototype._setExtent=function(t){var e=fg.create(t),o=e.se.clone();this.options.wraparound&&o.lng<0&&t.nw.lng>0&&(o.lng=180+(180+o.lng));var i=new fg(e.nw,o);this.center(i.center());var r,n=this.element.clientWidth,s=this.element.clientHeight;for(r=this.options.maxZoom;r>=this.options.minZoom;r--){var a=this.locationToLayer(i.nw,r),p=this.locationToLayer(i.se,r),l=By.abs(p.x-a.x),c=By.abs(p.y-a.y);if(l<=n&&c<=s)break}this.zoom(r)},e.prototype._getExtent=function(){var t=this._getOrigin(),e=this.locationToLayer(t),o=this.viewSize();e.x+=o.width,e.y+=o.height;var i=this.layerToLocation(e);return new fg(t,i)},e.prototype._zoomAround=function(t,e){this._setOrigin(this.layerToLocation(t,e),e),this.zoom(e)},e.prototype._initControls=function(){var t=this.options.controls;t.attribution&&this._createAttribution(t.attribution),this.support.mobileOS||(t.navigator&&this._createNavigator(t.navigator),t.zoom&&this._createZoomControl(t.zoom))},e.prototype._createControlElement=function(t,e){var o=t.position||e,i="."+Jf(o).replace(" ","."),r=this.element.querySelector(".k-map-controls"+i)||[];if(0===r.length){var n=document.createElement("div");B(n,"k-map-controls "+Jf(o)),r=n,this.element.appendChild(r)}var s=document.createElement("div");return r.appendChild(s),s},e.prototype._createAttribution=function(t){var e=this._createControlElement(t,"bottomRight");this.attribution=new rg(e,t)},e.prototype._createNavigator=function(t){var e=this._createControlElement(t,"topLeft"),o=this.navigator=new ag(e,Y({},t,{icons:this.options.icons}));this._navigatorPan=this._navigatorPan.bind(this),o.bind("pan",this._navigatorPan),this._navigatorCenter=this._navigatorCenter.bind(this),o.bind("center",this._navigatorCenter)},e.prototype._navigatorPan=function(t){var e=this.scroller,o=e.scrollLeft+t.x,i=e.scrollTop-t.y,r=this._virtualSize,n=this.element.clientWidth,s=this.element.clientHeight;o=Et(o,r.x.min,r.x.max-n),i=Et(i,r.y.min,r.y.max-s),this.scroller.one("scroll",Nf(this._scrollEnd,this)),this.scroller.scrollTo(-o,-i)},e.prototype._navigatorCenter=function(){this.center(this.options.center)},e.prototype._createZoomControl=function(t){var e=this._createControlElement(t,"topLeft"),o=this.zoomControl=new cg(e,t,this.options.icons);this._zoomControlChange=this._zoomControlChange.bind(this),o.bind("change",this._zoomControlChange)},e.prototype._zoomControlChange=function(t){this.trigger("zoomStart",{originalEvent:t})||(this.zoom(this.zoom()+t.delta),this.trigger("zoomEnd",{originalEvent:t}))},e.prototype._initScroller=function(){var t=this.support.mobileOS?.93:.9,e=!1!==this.options.zoomable,o=this.scroller=new Ey(this.element.children[0],{friction:t,velocityMultiplier:5,zoom:e,mousewheelScrolling:!1,supportDoubleTap:!0});o.bind("scroll",Nf(this._scroll,this)),o.bind("scrollEnd",Nf(this._scrollEnd,this)),o.userEvents.bind("gesturestart",Nf(this._scaleStart,this)),o.userEvents.bind("gestureend",Nf(this._scale,this)),o.userEvents.bind("doubleTap",Nf(this._doubleTap,this)),o.userEvents.bind("tap",Nf(this._tap,this)),this.scrollElement=o.scrollElement},e.prototype._initLayers=function(){for(var t=this.options.layers,e=this.layers=[],o=0;o<t.length;o++){var i=t[o],r=this._createLayer(i);e.push(r)}},e.prototype._createLayer=function(t){var e=t.type||"shape",o=this.options.layerDefaults[e],i=e===zy?Y({},this.options.markerDefaults,t,{icons:this.options.icons}):Y({},o,t),r=new(0,Ny[e])(this,i);return e===zy&&(this.markers=r),r},e.prototype._createTooltip=function(){return new yg(this.widgetService,this.options.tooltip)},e.prototype._initMarkers=function(){(this.options.layers||[]).filter((function(t){return t&&t.type===zy})).length>0||(this.markers=new qg(this,Y({},this.options.markerDefaults,{icons:this.options.icons})),this.markers.add(this.options.markers))},e.prototype._scroll=function(t){var e=this.locationToLayer(this._viewOrigin).round(),o=t.sender.movable,i=new D.geometry.Point(o.x,o.y).scale(-1).scale(1/o.scale);e.x+=i.x,e.y+=i.y,this._scrollOffset=i,this._tooltip.offset=i,this.hideTooltip(),this._setOrigin(this.layerToLocation(e)),this.trigger("pan",{originalEvent:t,origin:this._getOrigin(),center:this.center()})},e.prototype._scrollEnd=function(t){this._scrollOffset&&this._panComplete()&&(this._scrollOffset=null,this._panEndTimestamp=Zf(),this.trigger("panEnd",{originalEvent:t,origin:this._getOrigin(),center:this.center()}))},e.prototype._panComplete=function(){return Zf()-(this._panEndTimestamp||0)>50},e.prototype._scaleStart=function(t){if(this.trigger("zoomStart",{originalEvent:t})){var e=t.touches[1];e&&e.cancel()}},e.prototype._scale=function(t){var e=this.scroller.movable.scale,o=this._scaleToZoom(e),i=new D.geometry.Point(t.center.x,t.center.y),r=this.viewToLocation(i,o),n=this.locationToLayer(r,o).translate(-i.x,-i.y);this._zoomAround(n,o),this.trigger("zoomEnd",{originalEvent:t})},e.prototype._scaleToZoom=function(t){var e=this._layerSize()*t/this.options.minSize,o=By.log(e)/By.log(2);return By.round(o)},e.prototype._reset=function(){this.attribution&&this.attribution.filter(this.center(),this.zoom()),this._viewOrigin=this._getOrigin(!0),this._resetScroller(),this.hideTooltip(),this.trigger("beforeReset"),this.trigger("reset")},e.prototype._resetScroller=function(){var t=this.scroller,e=t.dimensions.x,o=t.dimensions.y,i=this._layerSize(),r=this.extent().nw,n=this.locationToLayer(r).round();t.movable.round=!0,t.reset(),t.userEvents.cancel();var s=this.zoom();t.dimensions.forcedMinScale=jy(2,this.options.minZoom-s),t.dimensions.maxScale=jy(2,this.options.maxZoom-s);var a={min:-n.x,max:i-n.x},p={min:-n.y,max:i-n.y};if(this.options.wraparound&&(a.max=20*i,a.min=-a.max),!1===this.options.pannable){var l=this.viewSize();a.min=p.min=0,a.max=l.width,p.max=l.height}e.makeVirtual(),o.makeVirtual(),e.virtualSize(a.min,a.max),o.virtualSize(p.min,p.max),this._virtualSize={x:a,y:p}},e.prototype._renderLayers=function(){},e.prototype._layerSize=function(t){var e=jt(t,this.options.zoom);return this.options.minSize*jy(2,e)},e.prototype._tap=function(t){if(this._panComplete()){var e=this.eventOffset(t);this.hideTooltip(),this.trigger("click",{originalEvent:t,location:this.viewToLocation(e)})}},e.prototype._doubleTap=function(t){if(!1!==this.options.zoomable&&!this.trigger("zoomStart",{originalEvent:t})){var e=this.zoom()+1,o=this.eventOffset(t),i=this.viewToLocation(o),r=this.locationToLayer(i,e).translate(-o.x,-o.y);this._zoomAround(r,e),this.trigger("zoomEnd",{originalEvent:t})}},e.prototype._mousewheel=function(t){var e=xt(t)>0?-1:1,o=this.options,i=this.zoom(),r=Et(i+e,o.minZoom,o.maxZoom);if(!1!==o.zoomable&&r!==i&&!this.trigger("zoomStart",{originalEvent:t})){var n=this.eventOffset(t),s=this.viewToLocation(n),a=this.locationToLayer(s,r).translate(-n.x,-n.y);this._zoomAround(a,r),this.trigger("zoomEnd",{originalEvent:t})}},e.prototype._toDocumentCoordinates=function(t){var e=At(this.element);return{left:Bt(t.x+e.left),top:Bt(t.y+e.top)}},e}(ig);Vt(Fy,{name:"Map",controls:{attribution:!0,navigator:{panStep:100},zoom:!0},layers:[],layerDefaults:{shape:{style:{fill:{color:"#fff"},stroke:{color:"#aaa",width:.5}}},bubble:{style:{fill:{color:"#fff",opacity:.5},stroke:{color:"#aaa",width:.5}}},marker:{shape:"pinTarget",tooltip:{position:"top"}}},center:[0,0],icons:{type:"font",svgIcons:{}},zoom:3,minSize:256,minZoom:1,maxZoom:19,markers:[],markerDefaults:{shape:"pinTarget",tooltip:{position:"top"}},wraparound:!0,renderPointsAsMarkers:!1}),Qf(Fy,["beforeReset","click","markerActivate","markerClick","markerCreated","markerMouseEnter","markerMouseLeave","pan","panEnd","reset","shapeClick","shapeCreated","shapeFeatureCreated","shapeMouseEnter","shapeMouseLeave","zoomEnd","zoomStart"]);const Uy=Fy;var Gy=1.5,Wy=.4,Xy="#000",Yy="Arial, Helvetica, sans-serif",qy="11px "+Yy,Qy="12px "+Yy,Zy="16px "+Yy,Ky="transparent",Jy="#fff",$y=function(){return{icon:{border:{width:1}},label:{font:Qy,padding:3},line:{length:10,width:2},visible:!0}},tv=function(){return{outliersField:"",meanField:"",border:{_brightness:.8,width:1},downColor:Jy,gap:1,highlight:{border:{opacity:1,width:2},whiskers:{width:3},mean:{width:2},median:{width:2}},mean:{width:2},median:{width:2},spacing:.3,whiskers:{width:2}}},ev=function(){return{gap:Gy,spacing:Wy,target:{color:"#ff0000"}}},ov=function(){return{gap:.5,line:{color:Xy,width:1},spacing:Wy}},iv=function(){return{labels:{background:"",color:"",padding:{top:5,bottom:5,left:7,right:7}}}},rv=function(t){return Object.assign({visible:!0,labels:{font:qy},overlay:t.gradients?{}:{gradient:"none"},area:{highlight:{markers:{border:{}}},line:{opacity:1,width:0},markers:{size:6,visible:!1},opacity:.4},rangeArea:{highlight:{markers:{border:{}}},line:{opacity:1,width:0},markers:{size:6,visible:!1},opacity:.4},verticalRangeArea:{highlight:{markers:{border:{}}},line:{opacity:1,width:0},markers:{size:6,visible:!1},opacity:.4},bar:{gap:Gy,spacing:Wy},boxPlot:tv(),bubble:{border:{width:0},labels:{background:Ky},opacity:.6},bullet:ev(),candlestick:{border:{_brightness:.8,width:1},downColor:Jy,gap:1,highlight:{border:{opacity:1,width:2},line:{width:2}},line:{color:Xy,width:1},spacing:.3},column:{gap:Gy,spacing:Wy},heatmap:{labels:{color:"",background:Ky,visible:!0},highlight:{border:{width:0}}},pie:{labels:{background:"",color:"",padding:{top:5,bottom:5,left:7,right:7}}},donut:{margin:1},funnel:{labels:{background:"",color:"",padding:{top:5,bottom:5,left:7,right:7}}},pyramid:iv(),horizontalWaterfall:ov(),line:{width:2},notes:$y(),ohlc:{gap:1,highlight:{line:{opacity:1,width:3}},line:{width:1},spacing:.3},radarArea:{line:{opacity:1,width:0},markers:{size:6,visible:!1},opacity:.5},radarLine:{markers:{visible:!1},width:2},polarArea:{line:{opacity:1,width:0},markers:{size:6,visible:!1},opacity:.5},polarLine:{markers:{visible:!1},width:2},rangeBar:{gap:Gy,spacing:Wy},rangeColumn:{gap:Gy,spacing:Wy},scatterLine:{width:1},verticalArea:{highlight:{markers:{border:{}}},line:{opacity:1,width:0},markers:{size:6,visible:!1},opacity:.4},verticalBoxPlot:tv(),verticalBullet:ev(),verticalLine:{width:2},waterfall:ov()},Nr.reduce((function(t,e){return t[e]={color:v,trendline:{},markers:{visible:!1},width:1,dashType:"longDash"},t}),{}))},nv=function(t){return void 0===t&&(t={}),{axisDefaults:{labels:{font:Qy},notes:$y(),title:{font:Zy,margin:5}},categoryAxis:{majorGridLines:{visible:!0}},navigator:{pane:{height:90,margin:{top:10}}},seriesDefaults:rv(t),title:{font:Zy},subtitle:{font:Qy},legend:{labels:{font:Qy}}}}},216:(t,e,o)=>{o.r(e),o.d(e,{AsyncFocusBlur:()=>J,BrowserSupportService:()=>p,COLLECTION_ACTION:()=>nt,DragAndDrop:()=>Ft,Draggable:()=>ee,Droppable:()=>ie,FOCUSABLE_ELEMENTS:()=>ae,FormComponent:()=>m,Icon:()=>vt,IconWrap:()=>kt,IconsContext:()=>wt,Keys:()=>A,Navigation:()=>pe,SortedPublicItemIds:()=>fe,SvgIcon:()=>bt,TreeFieldsService:()=>de,Typography:()=>Lt,WatermarkOverlay:()=>Y,ZIndexContext:()=>n,addItem:()=>Ne,areAllDirectChildrenChecked:()=>ze,canUseDOM:()=>l,canUseRef:()=>c,classNames:()=>h,clone:()=>d,cloneArray:()=>y,cloneDate:()=>u,cloneObject:()=>f,cloneValue:()=>g,createPropsContext:()=>et,dispatchEvent:()=>q,extendDataItem:()=>z,focusFirstFocusableChild:()=>v,getActiveElement:()=>ce,getAllDirectIndirectChildrenIds:()=>De,getAllParents:()=>Ve,getInnerActiveElement:()=>le,getItemPath:()=>V,getNestedValue:()=>he,getScrollbarWidth:()=>P,getTabIndex:()=>x,getter:()=>C,guid:()=>k,hasChildren:()=>Ee,hasRelativeStackingContext:()=>G,isArray:()=>ue,isEnabledAndAllParentsEnabled:()=>je,isItemExpandedAndWithChildren:()=>Ie,kendoThemeMaps:()=>re,mapTree:()=>j,mapTreeItem:()=>D,memoizeOne:()=>se,noop:()=>S,removeItem:()=>He,resolveItemId:()=>Re,resolveItemsIds:()=>Be,setScrollbarWidth:()=>O,setter:()=>E,shouldShowValidationUI:()=>U,svgIconPropType:()=>gt,toIconClass:()=>ft,toIconName:()=>dt,treeIdUtils:()=>i,updateItem:()=>Le,useAsyncFocusBlur:()=>Z,useCollection:()=>pt,useCustomComponent:()=>at,useDir:()=>it,useDocument:()=>lt,useDraggable:()=>te,useDroppable:()=>oe,useMouse:()=>st,usePropsContext:()=>$,useRtl:()=>rt,useWindow:()=>ct,useZIndexContext:()=>s,validatePackage:()=>F,withPropsContext:()=>ot});var i={};o.r(i),o.d(i,{EMPTY_ID:()=>ge,SEPARATOR:()=>ve,ZERO_LEVEL_ZERO_NODE_ID:()=>ye,createId:()=>we,getAllShortIds:()=>Se,getDecrementedItemIdAfterRemoval:()=>Te,getDirectParentId:()=>Ce,getFirstChildId:()=>_e,getIdWithoutRootParentId:()=>be,getItemById:()=>me,getRootParentId:()=>xe,getShortId:()=>Pe,isIdEmptyOrZeroLevel:()=>ke,isIdZeroLevel:()=>Ae,isItemFirstFromSiblings:()=>Oe});var r=o(899),n=r.createContext(0),s=function(){return r.useContext(n)};n.displayName="KendoReactZIndexContext";var a=function(){return"undefined"!=typeof document?document:{}},p=function(){function t(){this.scrollbar=0}return Object.defineProperty(t.prototype,"scrollbarWidth",{get:function(){var t=a();if(!this.scrollbar&&t&&t.createElement){var e=t.createElement("div");e.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",e.innerHTML=" ",t.body.appendChild(e),this.scrollbar=e.offsetWidth-e.scrollWidth,t.body.removeChild(e)}return this.scrollbar},enumerable:!1,configurable:!0}),t}(),l=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement),c=function(t){return"string"!=typeof Comment&&(function(t){return Boolean("function"==typeof t&&!!t.prototype.isReactComponent)}(t)||function(t){return Boolean(t.$$typeof&&"function"==typeof t.render)}(t))},h=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var o={},i=function(t){return t.filter((function(t){return!0!==t&&!!t})).map((function(t){return Array.isArray(t)?i(t):function(t){return"object"==typeof t?Object.keys(t).forEach((function(e){o[e]=t[e]})):o[t]=!0}(t)}))};return i(t),Object.keys(o).map((function(t){return o[t]&&t||null})).filter((function(t){return null!==t})).join(" ")},u=function(t){return t?new Date(t.getTime()):null};function d(t){var e={};return f(t,e),e}function f(t,e){for(var o in t)if(t.hasOwnProperty(o)){var i=t[o];e[o]=g(i,e[o])}}function g(t,e){if(Array.isArray(t))return y(t);if(t instanceof Date)return u(t);if(r.isValidElement(t))return r.cloneElement(t,t.props);if(t&&"object"==typeof t){var o=e||{};return f(t,o),o}return t}function y(t){return t.map((function(t){return g(t,void 0)}))}var v=function(t){if(t){if((t instanceof HTMLInputElement||-1!==t.tabIndex)&&t.focus)return void t.focus();var e=t.querySelector('input, [tabindex]:not([tabindex="-1"])');e&&e.focus&&e.focus()}},m=function(){},x=function(t,e,o){var i="string"==typeof t?parseInt(t,void 0):t;if(NaN!==i)return void 0!==i?i:e?o?void 0:-1:0},b=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g;function _(t){var e=[];return t.replace(b,(function(t,o,i,r){e.push(void 0!==o?o:i||r)})),e}var w={};function C(t){if(w[t])return w[t];var e=_(t);return w[t]=function(t){for(var o=t,i=0;i<e.length&&o;i++)o=o[e[i]];return o},w[t]}w.undefined=function(){};var k=function(){var t,e,o="";for(t=0;t<32;t++)e=16*Math.random()|0,8!==t&&12!==t&&16!==t&&20!==t||(o+="-"),o+=(12===t?4:16===t?3&e|8:e).toString(16);return o},A={backspace:8,tab:9,enter:13,shift:16,esc:27,space:32,pageUp:33,pageDown:34,end:35,home:36,left:37,up:38,right:39,down:40,delete:46},S=function(){},P=function(){return!(!l||!document.body)&&(new p).scrollbarWidth},O=function(){if(!l||!document.body)return!1;var t=(new p).scrollbarWidth;document.body.style.setProperty("--kendo-scrollbar-width","".concat(t,"px"))},T={undefined:function(t){return t}},M=function(t,e){return e&&e.arrays&&!isNaN(Number(t))?[]:{}};function E(t){if(T[t])return T[t];var e=_(t);return T[t]=function(t,o,i){for(var r=t,n=e.length-1,s=0;s<n&&r;s++)r=r[e[s]]=r[e[s]]||M(e[s+1],i);r[e[n]]=o},T[t]}var I=function(){return I=Object.assign||function(t){for(var e,o=1,i=arguments.length;o<i;o++)for(var r in e=arguments[o])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},I.apply(this,arguments)},R=function(t,e,o){if(o||2===arguments.length)for(var i,r=0,n=e.length;r<n;r++)!i&&r in e||(i||(i=Array.prototype.slice.call(e,0,r)),i[r]=e[r]);return t.concat(i||Array.prototype.slice.call(e))};function B(t,e,o){var i;return o?I(I({},t),((i={})[e]=o.length?R([],o,!0):void 0,i)):t&&t[e]?R([],t[e],!0):[]}function L(t,e,o){if(t[e]){var i=B(t,e).map((function(t){return L(t,e,o)}));return o(B(t,e,i))}return o(t)}var j=function(t,e,o){return R([],t.map((function(t){return L(t,e,o)})),!0)},D=function(t,e,o,i){for(var r=t,n=[],s=0;s<e.length;s++)r=r[e[s]],r=Array.isArray(r)?r:r[o],n.push(r);var a=n.length>1?n[n.length-2]:t,p=e[e.length-1],l=i(a[p]);a.splice(p,1,l)},z=function(t,e,o){var i;return Object.assign({},t,t[e]?((i={})[e]=t[e].slice(),i):{},o||{})},V=function(t,e,o){var i=[],r=R([],e,!0);if(r.length){var n=t[r.shift()||0];for(i.push(n);r.length&&o;)n=n[o][r.shift()||0],i.push(n)}return i},H=o(302),N=["telerik.com","progress.com","stackblitz.io","csb.app"];function F(t){if(void 0!==H)H.validatePackage(t);else{var e="License activation failed for ".concat(t.name,"\n");e+="The @progress/kendo-licensing script is not loaded.\n",e+="See ".concat(t.licensingDocsUrl," for more information.\n"),console.warn(e)}}function U(t){return!N.some((function(t){var e;return null===(e=globalThis.document)||void 0===e?void 0:e.location.hostname.endsWith(t)}))&&!(null==H?void 0:H.validatePackage(t))}var G=function(t){if(!l)return!1;var e=t?t.ownerDocument:document;if(!e||!e.body)return!1;var o=e.createElement("div");o.style.transform="matrix(10, 0, 0, 10, 0, 0)";var i=e.createElement("div");i.appendChild(e.createTextNode("child")),i.style.position="fixed",i.style.top="10px",o.appendChild(i),e.body.appendChild(o);var r=10!==i.getBoundingClientRect().top;return e.body.removeChild(o),r},W=o(994),X=!1,Y=function(){var t=r.useState(!0),e=t[0],o=t[1],i=r.useState(!1),n=i[0],s=i[1];r.useEffect((function(){X||(s(!0),X=!0)}),[]);var a=r.createElement(r.Fragment,null,e&&r.createElement("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",position:"fixed",top:"16px",right:"16px",padding:"12px",borderRadius:"4px",boxShadow:"0px 4px 5px 0px rgba(0, 0, 0, 0.04), 0px 2px 4px 0px rgba(0, 0, 0, 0.03)",fontSize:"14px",fontWeight:400,lineHeight:"20px",backgroundColor:"#FFC000",color:"#1E1E1E",zIndex:999}},r.createElement("span",{style:{display:"flex",alignSelf:"center",marginRight:"8px"}},r.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 1L0 15H16L8 1ZM7 6V11H9V6H7ZM7 14V12H9V14H7Z",fill:"#1E1E1E"}))),r.createElement("span",null,"No valid license found for KendoReact. Learn how to activate your license."),r.createElement("div",{style:{display:"flex",alignItems:"center",marginLeft:"24px"}},r.createElement("a",{href:"https://www.telerik.com/kendo-react-ui/components/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-banner",style:{marginRight:"8px",display:"flex"}},r.createElement("button",{title:"Learn More",style:{display:"inline-flex",position:"relative",border:"none",borderRadius:"4px",padding:"5px",backgroundColor:"transparent",transition:"color 0.2s ease-in-out",outline:"none",cursor:"pointer"}},r.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},r.createElement("path",{d:"M15 8C15 11.8656 11.8656 15 8 15C4.13437 15 1 11.8656 1 8C1 4.13437 4.13437 1 8 1C11.8656 1 15 4.13437 15 8ZM14 8C14 4.6875 11.3125 2 8 2C4.6875 2 2 4.6875 2 8C2 11.3125 4.6875 14 8 14C11.3125 14 14 11.3125 14 8ZM11 6C11 7.4125 10.2687 8.05937 9.73125 8.53125C9.25937 8.94688 9 9.17813 9 10H7C7 8.275 7.84688 7.525 8.40938 7.03125C8.84062 6.65312 9 6.50938 9 6C9 5.45 8.55 5 8 5C7.45 5 7 5.45 7 6H5C5 4.34375 6.34375 3 8 3C9.65625 3 11 4.34375 11 6ZM9 13V11H7V13H9Z",fill:"#1E1E1E"})))),r.createElement("button",{title:"Close",style:{display:"inline-flex",position:"relative",border:"none",borderRadius:"4px",padding:"5px",backgroundColor:"transparent",transition:"color 0.2s ease-in-out",outline:"none",cursor:"pointer"},onClick:function(){o(!1)}},r.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},r.createElement("path",{d:"M13 4.41562L9.41563 8L13 11.5844L11.5844 13L8 9.41563L4.41562 13L3 11.5844L6.58437 8L3 4.41562L4.41562 3L8 6.58437L11.5844 3L13 4.41562Z",fill:"#1E1E1E"}))))));return r.createElement(r.Fragment,null,r.createElement("div",{style:{position:"absolute",width:"100%",height:"100%",top:0,left:0,right:0,bottom:0,opacity:.2,zIndex:101,pointerEvents:"none",backgroundImage:"url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAYAAABccqhmAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAABVxSURBVHgB7Z3tVRtJE4WL9zgANgLLGRCCnAGOADmCxRGgDFAGYiOADKQMIAGO9J8ji42g37mjqlUjBgOanpn+uM85sjC2sKzbVd1dVV0tQgghhBBCCCGEEEIIKRPn3Gn1GAlJmmN1pP558J6OX9540ejh4WGlX09OTk7+EZIclXYXlY43+vVflY7PH3wd9c+AY/Wvvcb9/b0bjUYOz/hBQpICmh1oOPrEa6l/4rTR337AhIMgTSqtzg+0m8gnof7p0mD8EzmGhkFwJiR6np6e7luLL9Q/RTDTBzF+7wfWg2CxWOCHjYVET6XTdLPZrFuLL9Q/NeCkoVUQ4/d+6Ijev1yof1rAUVMvQgjJHebrSRu+CEmWo/O8hISgCjStKpgiGoDWed4AUP/hwGf++Pi4hQYyFHgDzBP3T7A8b0uo/zD4+sMBy1CwWKR/YjF+fS/Uv2di0t/eEAdBT0QnvlD/PolR/xoOgu4JUd7bFdS/e6I1foODoFuqz3M2mUziFF+of5dEb/xGwyAYCwmCVuPNYv5MqX94Yl75NWKD4PLyEm92KqQoqH9Y8Bnis0zC+A14LbxxVqiVCfUPh678plxNFYQe5pjRgAgpDAv4IOAHJyCEkDJoiPaeCyG5UA1oRIYWHNivSSbV0wLq/zbQXz+bS8kV/AeZJ35NCcYPqH8zvv4VS8kVFou8phTjB9T/NcVt+zgI9rjQDRwTgPrvKcn5v4CDYIfT/vtFiS/UHxRr/AYHwQ4t9DiVwihZ/+KN36ATKJsS9U+utr9r/EGQdQSUNFKa/geZkImQ/2rHlznnQDG7oX9b9Xwl5AUl6G9oLcSSxl8Q/p4P13YJIaQMisvzEkJ2lJjnJyQY3lnoJGfNUvP8oUhZf7c70s2eCG1wL7uhRJ0iQnCveiDIhzf7t/f9IvP8IUhJfx/b9rErUkvgRVPIE1fv6xrvbzweu7OzM3d7e4v3OhfSilT092HMJzCxF4u43eWctfFvt1uHu9nxXvF1CWmtroldfx9W+HVErINAjX+M65ngAPxnOAJ1AiMhrUjBCdD4Oya2QYBlPwx8vV47WwFg+a+XZbrz83NzANz/ByBmJ0Dj74lYBgECfrbnt6U/DB/vC7388L2rqyu8vzshwYjRCdD4e8YfBLidVgYA0X7M9jB8PGazmbu5ualnfiz9dSAsufwPTwz6+5jjp/H3CD5ofPB9343u9v3u6+U+0jyY7eEA8Hx3d4c/QjvvMyGdMZT+TeA9wBHR+DPHUn3T6bRe7uMxn89tn18v/TH7O17gQEheYM9vEX7M9hbsg/FbHED3/IPPSISQgNhyE0au+7x7PPtOQFcB3PMTMjTYf4cyRN3zL2DgMHgs/7XU99acgDIWEgUh9W/4uWMh8QKBvCh8qxSR7fmxt0eEv8kJ6MzP8/2REFL/g59bp/o0xsMAb6xAnBB5Yr+6D3X9KOpBxP/ACWA0jFnoEw+h9D/4mYd5/pGQeAlRLFK95tJy+35578PDQ+0E9LAPi3wixAUsFmKRT6I0DIIPzdJuf6R3i+UeZnsz/nqjPx47/fMpZ/54OVb/g5/BZi4pY4Pgo8s2d3CkF0Z/cXFRL/+Xy2W9BdBUH4/5JsBn9W94PZu5pI77QzMOjepiNp/j71hO//fv31sr7qmtfT73i3xWjnvAZHhH/4nquXrLwB2bueSJ27Vmvodhq4df4BmzvQb3IPxWl/zgRl/DwZA4GrhdYFUHfbHE1y0enXsJ2FLfCnggvjqBejDoTI8o38ocgJAscNq8BY4fv/Uf+J46gjkdQcbA+19fXzs7zQfR8TWcgH+kFw/u+fMDKz/o3OQETk9PLcWLPSBbeeWELd91eb+CcTc5gXr6r9J8PNKbF/7S3z+6DYcvDasBOv6M0GUduNDfv+cEYPhjIVmA+I3Vc4gaOQzfHAECvb4joAPICCzlrIJP93h/dAIYDBQ/L8wBNC37rXUblv5CB5AfGvi5h6F7Ed9GJ2CZP0b780O1vreVnnhOAFsBOoCMscg/HMBbTsCO+grJFkvvHmYCSnYA/5MMcbsiH6TykNgfr9fry58/f0oltFxcXMj379+l+h42gBcnJyfr6iXfq1nhJ56FZIeuAq+fn59Xv379Oq0CgVJNBEIydAAavLv98ePHeSX4bfX1OQSv9noQ/a7y9A8HTuAcTqB63FSPZyE5Mq3GwOW3b99kNpu9+5e/fv2Kp3+FpAW8vB3cwbLOOvZYfl9LfGdW9KOn+mZCskZXhCuL9vtLfjvshd97hWArpn8TxGn5rhZzOL/gB19DYBzzxcEeTQEtGfArB7c7xbmyVu4YExoTuNcYEL6eCkkTxHYOmna4wzQfvq8z/+o949e940hIkjTp5/ZXjm/1+VQfr856UP/EcLtqr9s/OQENDl5+wPhH3nHQZK6mJjucNvNo2w+A+icC0jaY4a2LT5MT+Mye3+l58JSupiY7XIA2XtQ/IZw2f7D9v+X6D53AZ/f8LqGrqckOF7CNF/VPAF3Or6xvv53r951Amx5+DYOAXWEjxXXQxov6R4zTSzusht8OfABE+r3U39y1iPbbIODVX3ED4/Tagk8kENQ/QiyaC1Fg7PX6frm0Mk6/wUOQ8l799+j9I0cDwcF1ov4R4Xbde2vjxi92ogsPzPrY92szD7buJiQn3K6+v17q2yxvlV1u3+TRAn4jIYTkAfbymOWx1AcwfHMEXp5/JISQ9PEDd867ohvGbvt+cwRe6+5ee7ltNpuVf7yYdA8+68fHxy0+exkY6t8RGnSxJX19yAd7fWvhjEs7NOCHb2D9/+AGqO3HQGSeuD/8PD/GggwM9e8IBPCwr7ciHnzA6NrqtW5+4QRkIByLRXrDRXhXH/XvCKRccEuPX8mHD9jr7Vc7AV32D9rJh4Oge2I0foP6d8QHnADO9kdxYw8HQXfEbPwG9e+It5yAlvdG1beNgyA8KRi/Qf07oskJIEYQw8x/SMMgGAs5CmR0UjF+g/oHwh00YzAn0OZgT1/YINBU5VTIUeCzw2eYivEb1L8l7o1mDm7X220a48x/iNtVLE4dC5OOxu2794wlMaj/kbgAzRwIIQmS4p6PEBKIp6enexo/IYWCPdNms1nnbPxat7BwvH/+P7Dt08/kUjKH+hcOxGeeeI8f86lYSuZQ/8JhsciehoBv9rMi9VdcwZcucBCkVeEXmuL1dy0vbciBkgdBycZvFKs/8/x7ShwENP49xelP8V9T0iBgncdritGfxv82/iDIORJ+EAGfCKnJXn8a//to7fgy51y45sCX1P812erPZR8hBVMZ/Ax9+2j8hBSIHumcpXikkxBCBsXtz8QnUyXndvfz8Sx8AFLUnwTEveyKE32KyAK+7IYThqT0V88/o+cPBz7TVPLEJdb2d00y+pv4elHHTEgwUigWYaq3O6LXn56/e2IeBDT+7olWf4rfHzEOAurfH9HpT/H7J6ZBQP37Jxr9Kf5w+IMAt9PKQOB6NurfP4Prjyg/jX9Y8JnDAHE/vQwE/m0MQOrfP4PqX/3jp15Dj4kQQspCK5SK7OZDCCGEEBIfbneH4kgCoT9vLCQJguqPaD8CDdXzlZDogaEuFotgKSLL9uBnYmAJiZqg+vupPlzbJSR6YKSh8sSODVyTI5j+LO9NlxDFIqzzSJfW+jPPnz4Ng+DDGRvqnz5t9GeePxNsEHx2+U798+BY/e3FzPNnwLE6Uv88oI6EEEIIIYQQQgghhBBCCCGEEEIIIYQQQkiRoHyQxz/T51gdqX8evKfjlzdeNHp4eFjp15OTk5N/hCQHjoFWOt7o139VOj5/8HXUPwOO1f+/02ApXEhJmmnTzIP6p49r28wlRFMJMgwhmnlQ/3RB854g/RwaBgF7wkVOyGYe1D9N0L4vWDMXGwTaFHIsJGpgpF5TyIm0hPqnR6XTdLPZrF2oZi7aVIDePxFgqCH1ov6EEEIIITHRtl7jixBCkuToPH8ocGMQrihmiqh/8Jnjau6hrwen/sPQOs8fAgxA5on7xxcfBigDQf2HIUSdR6g3wmKRnolGfKH+QxCT/vaGOAh6Ijrxhfr3SYz613AQdE+04gv174Ng5b1dwUHQHTEbv0H9u6X6PGeTySTu69oaBsFYSCui9/we1L87tBpzFv1naoPg8vISA2AqpBX4DPFZxm78BvUn9awF8R07yrRGPf80pdmU+hNCyJHoYa4ZHSghhWEBXwT84ASEEFIGDdmec8mJ6j+EyNAiu/9YACC+fjaXkinU/21SSPW2BuIzT/waX/yKpWQK9W+mCOMHLBZ5TfbLPg/q/5pijN/gINhTnPhC/X1cwAauScFBUKbxG9R/h9P7F0rTv6bkQVCy8Rt0Aju00OtUSqTEQZBSbX/X0AmQF4Mg5wi4cRAJn0jhlKY/aUBrx5c558ANzYUvafx7StAfqxv0UKyer4QQUg5+zAfXdgkhpAxKqvMghHgUm+cPhdufhU/Oa+qRTp6Jb0HK+oOi8/whcC+74SSTIrJlH7vitCMl/RHcqx4I8uHN/u19v9w8f1swi6aWJ+aeLxyp6F+9r2u8v/F47M7Oztzt7S3e61xIe1IqFmGFX3hi19/tLuesjX+73brFYlG/V3xdQlq7F1JwAjT+7ohVfzX+Ma5ngwPwn+EI1AmMhLQnZidA4++e2PTHsh8Gvl6vna0AsPzXy1Ld+fm5OQDu/0MRoxOg8fdHLPoj4Gd7flv6w/DxvtDLD9+7urrC+7sTEhZ/EOB2WhkYE57G3w8x6I9oP2Z7GD4es9nM3dzc1DM/lv46FpZc/ncEBgEMD7XVMjB4DxiINP7+GEp/t7/voF7uI0WJ2R4OAM93d3f4I7TzPhNCSD5Yqm86ndbLfTzm87nt8+ulP2Z/x+vQCMkL7Pktwo/Z3oJ9MH6LA+ief/AVKSEkILbdgJHr3v4ez74T0FUA9/wxgP1XF0Lozx0LiZqQ+uuefwEDh8Fj+a+lvrfmBJSxkOGBEF4UNliKyFJ9usdjgCdSQupve37s7RHhb3ICOvPzfH8swDhD54kb8vwjIVESSn+/ug91/SjqQcT/wAlgNhiz0CcyQhaLsMgnPULoX73m0nL7fnnvw8ND7QT0sA+LfGKlYRB82ks7NnNIlmP1d/sjvVtsJTDbm/HXG/3x2OmfTznzR44NgmOX7Y7NHJLms/q7gyO9MPqLi4t6+b9cLustgKb6eMw3FdwfmjFggKg3X71l4I7NHJLmHf3PVPs5/o7l9H///r214p7a2udzv8hn5RgDShsN3Czg1SE4lom6xKO4heB2rdnvYdi6QljgGbO9BvfgOLa65Ac3+hpOBinjtHkDhMdv/Qe+p45gTkeQL7bUtwIeaK5OoJ4MdKZHlG9lDkBIPsDzQ/QmJ3B6emopHqwB2corQzDDX19fOzvNh7GAr+EE/CO9eHDPnxH+0t8/ugnBpWE1QOHzwpbvurxfwbibnEA9/VdpPh7pzQjs3yyfK2rkMHxzBAj0+I6ADiAvdFsHLvT37zkBGP5YSB6YA2ha9lvrJiz9hQ4gO7CVswo+jfH80QlgMqD2GaKC35unF88JYCtAB5AnGvi9h6F7GZ9GJ2CZP0b7M8XSO4eZADqAvLHIPxzAW07AjvpKYfxPCkBngevn5+fVr1+/TqtAoFQDQUieuF2RD1J5SOyP1+v15c+fP6Vy9HJxcSHfv3+X6nsIAF2cnJysq5d8r1YAP/EshVGEA6iYVkZ/+e3bN5nNZu/+5a9fv+LpXyHJocG72x8/fpxXDv+2+vocDr+K9cDp31UrvYcDJ3AOJ1A9bqrHs5D80BlhZdF+f8lvhz3we68QZMX0T3pglWcHd6Cjdeyx/L6W+M6s6EdP9c2ElIHbneJaWStnFIRoTOBe94D4eiokSZyW72oxl/MLfvA1jB6642CPpoCXDPhljO79RwffG6kj2OrzqT5e1Xo3vZ7EC2K7B0073GGaD9/XmX/1nvFT/4Rx2syjbT+AIW+gIZ/D7ao9b//kBDQ4ePkB46f+qeICtPFy2g8gpavJSwZpW8zw1sWnyQl8Zs9P/RPFBWzj5RK6mrxkTCfb/1uu/9AJfHbPT/0Tw3XQxqthELArcETocn5lffvtXL/vBNr08KP+CQFxvLbQEwmEDQJe/RQXTi/tsBp+O/AFEOn3Un9z1yLaT/0TQgNBwb20Zg/o/SPBsjkwShh7vb5fLq2M22/wEqS8V/+9sRBChsXtuvfWxo1f7EQnHpj1se/XZh5s3U1ITrhdfX+91LdZ3io73b7JqwX8RkIIyQPs5THLY6kPYPjmCLw8/0hI3iAd8/j4uN1sNisZGLwH/3gpCYcfuHPeFd0wdtv3myPwWnf32suR+veMn+fHBy8DA0fEPHF4NOhmS/r6kA/2+tbCHZd2aMAP38D6/8ENUNtP/XvERXhXn2OxSCcggId9vRXx4LNF12avdfsLJyADQf17IkbjNzgIwoOUK27p8Sv58Nl6vf1qJ6DL/kE7+VD/jonZ+A0OgvB8wAngbH8UN/ZQ/45IwfgNDoLwvOUEtLw3qr6N1D8wiOimYvxGwyAYC2lFkxNAjCCGmf8Q6h8QRHeR7knF+A0bBJqqmgr5NO6gGYc5gTYHe/qC+gfC7bv3jCUx3K5ibepYmPJp3BvNXNyut+M0xpn/EOpPyBG4AM1cCCEJkmLMhxASiKenp3saf4Fg2Vc9FsjpSuZo3hr/115r1lMAe+bNZrPO2fip/wH+nq9iKZkD8ZknLhfq79EQ8MneK7JYpGyov5JShV9oOAjKvnSjeP1LNn6j5EHgWl7akgPF6k/j31PiIGCef09x+jPP+5qSBgGd/2uKcgIHEdCJkBp/EOSaCaHxv00J+tdoDnRJ8V+jtePLHGshaPzvk7P+pGC47SOkYCqDn6FvH42fkAJxuyPdaN01FlIGbnc/37TkFE8o3L4nAmvHCyQ5/S3gw24oYXAvuyKxbLgwktK/xNr+rsFqKpU8sa78Zlz5hSMZ/Znq6Y4UikVMf72oYyYkGNHrT+PvnpgHAVd+3ROt/jT+/ohxEFD//ohOf4rfPzENAurfP1E5AVzPRPH7xx8EuJ1WBoDGPxyH+ruhjlTjbnR9AxMhvYLPHA4YGkjPIMpP4x+WIfUnhYMZx2voMRFCSFlohVqR3XwIIaQc3O5OtrGQJFC9RkKKRCsyRxICi/YuFgvs986ERA3Eh1ahUkT4GQg0Vc9XQqInqP6ODRyTA046VJ7Y1x/XdgmJnmD6M8+bLiGKRVjemy6t9WeeN30aBsGHI/bUP33a6M88bybYIPjs9o3658Gx+tuLmefNgGN1pP55QB0JIYQQQgghhBBCCJGy+T9ftRg+rVNPfAAAAABJRU5ErkJggg==')"}}),n&&W.createPortal(a,document.body))};function q(t,e,o,i){if(t){var r={syntheticEvent:e,nativeEvent:e.nativeEvent,target:o};t.call(void 0,Object.assign(r,i))}}var Q=function(t,e,o){if(o||2===arguments.length)for(var i,r=0,n=e.length;r<n;r++)!i&&r in e||(i||(i=Array.prototype.slice.call(e,0,r)),i[r]=e[r]);return t.concat(i||Array.prototype.slice.call(e))};function Z(t){var e=t.onFocus,o=t.onBlur,i=t.onSyncFocus,n=t.onSyncBlur,s=r.useRef(!1),a=r.useRef(0),p=r.useCallback((function(t){clearTimeout(a.current),a.current=window.setTimeout((function(){return t()}))}),[a]),l=r.useCallback((function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];clearTimeout(a.current),i&&i.call(void 0,t[0]),s.current||(s.current=!0,e&&e.call.apply(e,Q([void 0],t,!1)))}),[s,e,i]),c=r.useCallback((function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];n&&n.call(void 0,t[0]),p((function(){s.current&&o&&(s.current=!1,o.call.apply(o,Q([void 0],t,!1)))}))}),[s,p,o,n]);return r.useEffect((function(){return function(){clearTimeout(a.current)}}),[]),{onFocus:l,onBlur:c}}var K=function(){return K=Object.assign||function(t){for(var e,o=1,i=arguments.length;o<i;o++)for(var r in e=arguments[o])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},K.apply(this,arguments)},J=function(t){var e=t.children,o=Z({onFocus:t.onFocus,onBlur:t.onBlur,onSyncFocus:t.onSyncFocus,onSyncBlur:t.onSyncBlur});return r.createElement(r.Fragment,null,e.call(void 0,K({},o)))},$=function(t,e){return r.useContext(t)(e)},tt=function(){return tt=Object.assign||function(t){for(var e,o=1,i=arguments.length;o<i;o++)for(var r in e=arguments[o])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},tt.apply(this,arguments)},et=function(){return r.createContext((function(t){return t}))},ot=function(t,e){return r.forwardRef((function(o,i){var n=$(t,o);return r.createElement(e,tt({},n,{ref:i}))}))};function it(t,e,o){var i=r.useState(e),n=i[0],s=i[1];return r.useEffect((function(){if(!n&&window&&t.current){var e=window.getComputedStyle(t.current).direction;e&&s(e)}}),o),n}function rt(t,e,o){var i=r.useState(e),n=i[0],s=i[1];return r.useEffect((function(){if(!n&&window&&t.current){var e=window.getComputedStyle(t.current).direction;e&&s(e)}}),o),n}var nt,st=function(t,e,o){void 0===o&&(o={});var i=r.useCallback((function(i){o.onMouseDown&&o.onMouseDown.call(void 0,i),t.onMouseDown&&t.onMouseDown.call(void 0,{target:e.current,syntheticEvent:i})}),[o.onMouseDown,t.onMouseDown,e]),n=r.useCallback((function(i){o.onMouseUp&&o.onMouseUp.call(void 0,i),t.onMouseUp&&t.onMouseUp.call(void 0,{target:e.current,syntheticEvent:i})}),[o.onMouseUp,t.onMouseUp,e]);return{onClick:r.useCallback((function(i){o.onClick&&o.onClick.call(void 0,i),t.onClick&&t.onClick.call(void 0,{target:e.current,syntheticEvent:i})}),[o.onClick,t.onClick,e]),onMouseUp:n,onMouseDown:i,onDoubleClick:r.useCallback((function(i){o.onDoubleClick&&o.onDoubleClick.call(void 0,i),t.onDoubleClick&&t.onDoubleClick.call(void 0,{target:e.current,syntheticEvent:i})}),[o.onDoubleClick,t.onDoubleClick,e]),onMouseEnter:r.useCallback((function(i){o.onMouseEnter&&o.onMouseEnter.call(void 0,i),t.onMouseEnter&&t.onMouseEnter.call(void 0,{target:e.current,syntheticEvent:i})}),[o.onMouseEnter,t.onMouseEnter,e]),onMouseLeave:r.useCallback((function(i){o.onMouseLeave&&o.onMouseLeave.call(void 0,i),t.onMouseLeave&&t.onMouseLeave.call(void 0,{target:e.current,syntheticEvent:i})}),[o.onMouseLeave,t.onMouseLeave,e]),onMouseMove:r.useCallback((function(i){o.onMouseMove&&o.onMouseMove.call(void 0,i),t.onMouseMove&&t.onMouseMove.call(void 0,{target:e.current,syntheticEvent:i})}),[o.onMouseMove,t.onMouseMove,e]),onMouseOut:r.useCallback((function(i){o.onMouseOut&&o.onMouseOut.call(void 0,i),t.onMouseOut&&t.onMouseOut.call(void 0,{target:e.current,syntheticEvent:i})}),[o.onMouseOut,t.onMouseOut,e]),onMouseOver:r.useCallback((function(i){o.onMouseOver&&o.onMouseOver.call(void 0,i),t.onMouseOver&&t.onMouseOver.call(void 0,{target:e.current,syntheticEvent:i})}),[o.onMouseOver,t.onMouseOver,e])}},at=function(t){return[t,{}]};!function(t){t[t.add=0]="add",t[t.remove=1]="remove"}(nt||(nt={}));var pt=function(t){void 0===t&&(t=[]);var e=r.useRef(t),o=r.useCallback((function(t){switch(t.type){case nt.add:e.current.push(t.item);break;case nt.remove:var o=e.current.indexOf(t.item);e.current.splice(o,1)}}),[]);return[e.current,o]},lt=function(t){var e=r.useCallback((function(){return t.current&&t.current.element?t.current.element:t.current}),[t]);return r.useCallback((function(){var t=e();return t&&t.ownerDocument||document}),[e])},ct=function(t){var e=lt(t);return r.useCallback((function(){var t=e();return t&&t.defaultView||window}),[e])},ht=o(189),ut={default:"",xsmall:"k-icon-xs",small:"k-icon-sm",medium:"k-icon-md",large:"k-icon-lg",xlarge:"k-icon-xl",xxlarge:"k-icon-xxl",xxxlarge:"k-icon-xxxl"},dt=function(t){return t.replace(/^k-i-/,"")},ft=function(t){return"k-i-"+t},gt=ht.shape({name:ht.string.isRequired,content:ht.string.isRequired,viewBox:ht.string.isRequired}),yt=function(){return yt=Object.assign||function(t){for(var e,o=1,i=arguments.length;o<i;o++)for(var r in e=arguments[o])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},yt.apply(this,arguments)},vt=r.forwardRef((function(t,e){var o=t.className,i=t.name,n=t.themeColor,s=t.size,a=t.flip,p=t.style,l=t.id,c=t.tabIndex,u=function(t,e){var o={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(o[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(o[i[r]]=t[i[r]])}return o}(t,["className","name","themeColor","size","flip","style","id","tabIndex"]),d=r.useRef(null),f=r.useRef(null);r.useImperativeHandle(d,(function(){return{element:f.current}})),r.useImperativeHandle(e,(function(){return d.current}));var g=r.useMemo((function(){return s||mt.size}),[s]),y=r.useMemo((function(){return a||mt.flip}),[a]),v=r.useMemo((function(){var t;return h("k-icon","k-font-icon",i&&ft(i),((t={})["k-color-".concat(n)]=n,t["k-flip-h"]="horizontal"===y||"both"===y,t["k-flip-v"]="vertical"===y||"both"===y,t),ut[g],o)}),[i,n,g,y,o]),m=st(t,d);return r.createElement("span",yt({ref:f},u,m,{className:v,id:l,tabIndex:c,style:p,role:"presentation"}))}));vt.propTypes={style:ht.object,classNames:ht.string,name:ht.string,themeColor:ht.oneOf(["inherit","primary","secondary","tertiary","info","success","error","warning","dark","light","inverse"]),size:ht.oneOf(["default","xsmall","small","medium","large","xlarge","xxlarge","xxxlarge"]),flip:ht.oneOf(["default","horizontal","vertical","both"])};var mt={size:"default",flip:"default"};vt.displayName="KendoIcon";var xt=function(){return xt=Object.assign||function(t){for(var e,o=1,i=arguments.length;o<i;o++)for(var r in e=arguments[o])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},xt.apply(this,arguments)},bt=r.forwardRef((function(t,e){var o=t.children,i=t.className,n=t.svgClassName,s=t.icon,a=t.flip,p=t.id,l=t.tabIndex,c=t.size,u=t.style,d=t.svgStyle,f=t.themeColor,g=t.viewBox,y=(t.name,t.onClick),v=function(t,e){var o={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(o[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(o[i[r]]=t[i[r]])}return o}(t,["children","className","svgClassName","icon","flip","id","tabIndex","size","style","svgStyle","themeColor","viewBox","name","onClick"]),m=r.useRef(null);r.useImperativeHandle(e,(function(){return{element:m.current}}));var x=r.useMemo((function(){return s?s.name:_t.icon}),[s]),b=r.useMemo((function(){return c||_t.size}),[c]),_=r.useMemo((function(){return a||_t.flip}),[a]),w=r.useMemo((function(){return g||_t.viewBox}),[g]),C=r.useMemo((function(){var t;return h("k-icon","k-svg-icon","k-svg-i-"+x,((t={})["k-color-".concat(f)]=f,t["k-flip-h"]="horizontal"===_||"both"===_,t["k-flip-v"]="vertical"===_||"both"===_,t),ut[b],i)}),[x,f,b,_,i]),k=r.useMemo((function(){return t.width&&t.height?xt({width:t.width,height:t.height},u):t.width?xt({width:t.width,height:t.width},u):t.height?xt({width:t.height,height:t.height},u):xt({},u)}),[t.width,t.height,u]);return r.createElement("span",{className:C,style:k,ref:m,onClick:y},r.createElement("svg",xt({id:p,className:n,style:d,"aria-hidden":!0,tabIndex:l,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:s?s.viewBox:w,dangerouslySetInnerHTML:s?{__html:s.content}:void 0},v),s?void 0:o))}));bt.propTypes={style:ht.object,classNames:ht.string,children:ht.any,icon:ht.object,themeColor:ht.oneOf(["inherit","primary","secondary","tertiary","info","success","error","warning","dark","light","inverse"]),size:ht.oneOf(["default","xsmall","small","medium","large","xlarge","xxlarge","xxxlarge"]),flip:ht.oneOf(["default","horizontal","vertical","both"])};var _t={size:"default",flip:"default",icon:"",viewBox:"0 0 24 24"};bt.displayName="KendoSvgIcon";var wt=r.createContext({type:"svg"});wt.displayName="KendoReactIconsContext";var Ct=function(){return Ct=Object.assign||function(t){for(var e,o=1,i=arguments.length;o<i;o++)for(var r in e=arguments[o])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},Ct.apply(this,arguments)},kt=r.forwardRef((function(t,e){var o,i,n=r.useContext(wt),s=n.type,a=n.icons,p=t.icon,l=function(t,e){var o={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(o[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(o[i[r]]=t[i[r]])}return o}(t,["icon"]),c="svg"===s?(null===(o=t.icon)||void 0===o?void 0:o.name)||t.name:t.name||(null===(i=t.icon)||void 0===i?void 0:i.name),h=(c=c&&a&&a[c]&&"string"==typeof a[c]?a[c]:c)&&a&&a[c]&&"string"!=typeof a[c]?a[c]:p;return"svg"===s&&h?r.createElement(bt,Ct({},t,{icon:h,ref:e})):r.createElement(vt,Ct({},l,{name:c,ref:e}))}));kt.displayName="KendoIconWrap";var At={xsmall:"k-fs-xs",small:"k-fs-sm",medium:"k-fs-md",large:"k-fs-lg",xlarge:"k-fs-xl"},St={light:"k-font-weight-light",normal:"k-font-weight-normal",bold:"k-font-weight-bold"},Pt={xsmall:"k-m-xs",small:"k-m-sm",medium:"k-m-md",large:"k-m-lg",xlarge:"k-m-xl",thin:"k-m-thin",hair:"k-m-hair"},Ot={xsmall:"xs",small:"sm",medium:"md",large:"lg",xlarge:"xl",thin:"thin",hair:"hair"},Tt={top:"k-mt-",right:"k-mr-",bottom:"k-mb-",left:"k-ml-"},Mt={left:"k-text-left",right:"k-text-right",center:"k-text-center",justify:"k-text-justify"},Et={lowercase:"k-text-lowercase",uppercase:"k-text-uppercase",capitalize:"k-text-capitalize"},It={inherit:"k-color-inherit",primary:"k-color-primary",secondary:"k-color-secondary",tertiary:"k-color-tertiary",info:"k-color-info",success:"k-color-success",warning:"k-color-warning",error:"k-color-error",dark:"k-color-dark",light:"k-color-light",inverse:"k-color-inverse"},Rt=function(){return Rt=Object.assign||function(t){for(var e,o=1,i=arguments.length;o<i;o++)for(var r in e=arguments[o])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},Rt.apply(this,arguments)},Bt=function(t){var e=r.forwardRef((function(e,o){var i=e.id,n=e.style,s=e.className,a=e.fontSize,p=e.fontWeight,l=e.textAlign,c=e.textTransform,h=e.themeColor,u=e.margin,d=function(t,e){var o={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(o[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(o[i[r]]=t[i[r]])}return o}(e,["id","style","className","fontSize","fontWeight","textAlign","textTransform","themeColor","margin"]),f=r.useRef(null),g=r.useRef(null);r.useImperativeHandle(f,(function(){return{element:g.current,props:e}})),r.useImperativeHandle(o,(function(){return f.current}));var y=t;return r.createElement(y,Rt({id:i,ref:g,className:["k-".concat("p"===t?"paragraph":t),At[a],St[p],Mt[l],Et[c],It[h],function(){if(void 0!==u){if("string"==typeof u)return[Pt[u]];if("number"==typeof u&&u>=0&&u<=24)return["k-m-".concat(u)];if("object"==typeof u){var t=[];return Object.keys(u).forEach((function(e){var o,i,r;null!==u[e]&&void 0!==u[e]&&t.push((o=e,r="string"==typeof(i=u[e])?Ot[i]:i,"".concat(Tt[o]).concat(r)))})),t.join(" ")}}}(),s].filter((function(t){return void 0!==t})).join(" "),style:n},d),e.children)}));return e.propTypes={style:ht.object,className:ht.string,fontSize:ht.oneOf(["xsmall","small","medium","large","xlarge"]),fontWeight:ht.oneOf(["light","normal","bold"]),margin:ht.oneOfType([ht.number,ht.object,ht.oneOf(["xsmall","small","medium","large","xlarge","thin","hair"])]),textAlign:ht.oneOf(["left","right","center","justify"]),textTransform:ht.oneOf(["lowercase","uppercase","capitalize"]),themeColor:ht.oneOf(["inherit","primary","secondary","tertiary","info","success","error","warning","dark","light","inverse"])},e.displayName="KendoReactTypography".concat(t.toUpperCase()),e},Lt={h1:Bt("h1"),h2:Bt("h2"),h3:Bt("h3"),h4:Bt("h4"),h5:Bt("h5"),h6:Bt("h6"),p:Bt("p"),code:Bt("code"),pre:Bt("pre")},jt=function(){return jt=Object.assign||function(t){for(var e,o=1,i=arguments.length;o<i;o++)for(var r in e=arguments[o])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},jt.apply(this,arguments)},Dt=function(t,e,o){var i=r.useState(e||t),n=i[0],s=i[1];return[void 0!==e?e:n,r.useCallback((function(t,e){s(t),o&&o.call(void 0,jt(jt({},e),{value:t}))}),[o,s])]},zt=r.createContext([void 0,S]),Vt=r.createContext([void 0,S]),Ht=r.createContext([[],S,S]),Nt=r.createContext([[],S,S]),Ft=function(t){var e=Dt(null,void 0),o=e[0],i=e[1],n=Dt(null,void 0),s=n[0],a=n[1],p=pt([]),l=p[0],c=p[1],h=pt([]),u=h[0],d=h[1];return r.createElement(zt.Provider,{value:[o,i]},r.createElement(Vt.Provider,{value:[s,a]},r.createElement(Ht.Provider,{value:[l,function(t){c({type:nt.add,item:t})},function(t){c({type:nt.remove,item:t})}]},r.createElement(Nt.Provider,{value:[u,function(t){d({type:nt.add,item:t})},function(t){d({type:nt.remove,item:t})}]},t.children))))};Ft.displayName="KendoReactDragAndDrop";var Ut,Gt=function(){var t=window&&window.navigator.userAgent;if(!t)return!1;var e=!1,o=[],i={edge:/(edge)[ \/]([\w.]+)/i,webkit:/(chrome|crios)[ \/]([\w.]+)/i,safari:/(webkit)[ \/]([\w.]+)/i,opera:/(opera)(?:.*version|)[ \/]([\w.]+)/i,msie:/(msie\s|trident.*? rv:)([\w.]+)/i,mozilla:/(mozilla)(?:.*? rv:([\w.]+)|)/i};for(var r in i)if(i.hasOwnProperty(r)&&(o=t.match(i[r]))){(e={})[r]=!0,e[o[1].toLowerCase().split(" ")[0].split("/")[0]]=!0,e.version=parseInt(document.DOCUMENT_NODE||o[2],10);break}return e},Wt=function(t){return t&&t.ownerDocument||window.document},Xt=function(t){var e=Gt(),o=Wt(t);return e.edge||e.safari?o.body:o.documentElement},Yt=function(t){if(t&&t.className&&"string"==typeof t.className&&t.className.indexOf("k-auto-scrollable")>-1)return!0;var e=window.getComputedStyle(t,"overflow").overflow;return e.indexOf("auto")>-1||e.indexOf("scroll")>-1},qt=function(t){var e=Xt(t);if(!t||t===document.body||t===document.documentElement)return e;for(var o=t;o&&o!==document.body&&o.nodeType!==Node.DOCUMENT_FRAGMENT_NODE&&o.nodeType!==Node.DOCUMENT_NODE&&!Yt(o);)o=o.parentNode;return!o||o!==document.body&&o.nodeType!==Node.DOCUMENT_FRAGMENT_NODE?o:e};!function(t){t.POINTER_DOWN="pointerdown",t.POINTER_MOVE="pointermove",t.POINTER_UP="pointerup",t.POINTER_CANCEL="pointercancel",t.MOUSE_DOWN="mousedown",t.MOUSE_MOVE="mousemove",t.MOUSE_UP="mouseup",t.CONTEXT_MENU="contextmenu",t.TOUCH_START="touchstart",t.TOUCH_MOVE="touchmove",t.TOUCH_END="touchend",t.TOUCH_CANCEL="touchcancel",t.SCROLL="scroll",t.START="KENDO_DRAG_AND_DROP_START",t.MOVE="KENDO_DRAG_AND_DROP_MOVE",t.END="KENDO_DRAG_AND_DROP_END",t.CANCEL="KENDO_DRAG_AND_DROP_CANCEL"}(Ut||(Ut={}));var Qt=function(){},Zt=function(t,e,o){void 0===o&&(o={});var i,r,n,s,a,p=o.onIsPressedChange,l=void 0===p?Qt:p,c=o.onIsScrollingChange,h=void 0===c?Qt:c,u=o.onVelocityChange,d=void 0===u?Qt:u,f=o.onOffsetChange,g=void 0===f?Qt:f,y=o.onPageOffsetChange,v=void 0===y?Qt:y,m=o.onClientOffsetChange,x=void 0===m?Qt:m,b=o.onScrollOffsetChange,_=void 0===b?Qt:b,w=o.onInitialScrollOffsetChange,C=void 0===w?Qt:w,k=e.payload,A=k.element,S=k.hint,P=t.autoScrollDirection,O=t.scrollableParent,T=function(t,e){return function(t){return/^touch/.test(t.type)}(t)?{pageX:t.changedTouches[0].pageX,pageY:t.changedTouches[0].pageY,clientX:t.changedTouches[0].clientX,clientY:t.changedTouches[0].clientY,scrollX:e.scrollOffset.x,scrollY:e.scrollOffset.y,offsetX:e.offset.x,offsetY:e.offset.y,type:t.type,originalEvent:t,isTouch:!0,altKey:!1,ctrlKey:!1,shiftKey:!1,metaKey:!1}:function(t){return/^(scroll)/.test(t.type)}(t)?{pageX:e.pageOffset.x,pageY:e.pageOffset.y,clientX:e.clientOffset.x,clientY:e.clientOffset.y,scrollX:e.scrollOffset.x,scrollY:e.scrollOffset.y,offsetX:e.offset.x,offsetY:e.offset.y,type:t.type,originalEvent:t,altKey:!1,ctrlKey:!1,shiftKey:!1,metaKey:!1}:{pageX:t.pageX,pageY:t.pageY,clientX:t.clientX,clientY:t.clientY,offsetX:t.offsetX,offsetY:t.offsetY,scrollX:e.scrollOffset.x,scrollY:e.scrollOffset.y,type:t.type,ctrlKey:t.ctrlKey,shiftKey:t.shiftKey,altKey:t.altKey,metaKey:t.metaKey,originalEvent:t}}(e.event,t);switch(T.type){case Ut.POINTER_DOWN:if(T.type===Ut.POINTER_DOWN&&(!T.originalEvent.isPrimary||0!==T.originalEvent.button))break;case Ut.MOUSE_DOWN:if(T.type===Ut.MOUSE_DOWN&&T.originalEvent.which&&T.originalEvent.which>1||t.ignoreMouse)break;case Ut.TOUCH_START:if(T.type===Ut.TOUCH_START&&1!==T.originalEvent.touches.length)break;case Ut.START:var M=O||qt(e.payload.element);C(M instanceof Window?{x:M.scrollX,y:M.scrollY}:{x:M.scrollLeft,y:M.scrollTop}),x({x:T.clientX,y:T.clientY}),v({x:T.pageX,y:T.pageY}),g({x:T.offsetX,y:T.offsetY}),l(!0),k.onPress&&k.onPress(T);break;case Ut.SCROLL:if(T.type===Ut.SCROLL&&!t.pressed)break;var E=O||qt(A),I=E instanceof Window?{x:E.scrollX,y:E.scrollY}:{x:E.scrollLeft,y:E.scrollTop};T.scrollX=I.x-t.initialScrollOffset.x,T.scrollY=I.y-t.initialScrollOffset.y,_({x:T.scrollX,y:T.scrollY});case Ut.POINTER_MOVE:if(T.type===Ut.POINTER_MOVE&&!T.originalEvent.isPrimary)break;case Ut.MOUSE_MOVE:case Ut.TOUCH_MOVE:if(T.type===Ut.TOUCH_MOVE&&1!==T.originalEvent.touches.length)break;case Ut.MOVE:if(t.pressed){if(t.autoScroll&&"scroll"!==T.originalEvent.type&&A){var R=Wt(A),B=O||qt(R.elementFromPoint(T.clientX,T.clientY)),L=(i=T.clientX,r=T.clientY,n=function(t,e){var o=Xt(t);if(t===o)return{top:o.scrollTop,left:o.scrollLeft,bottom:o.scrollTop+e.innerHeight,right:o.scrollLeft+e.innerWidth};var i=t.getBoundingClientRect();return{bottom:i.top+i.height,right:i.left+i.width,left:i.left,top:i.top}}(B,function(t){var e=Wt(t);return e&&e.defaultView||window}(A)),s={x:0,y:0},a=50,i-n.left<a?s.x=-(a-(i-n.left)):n.right-i<a&&(s.x=a-(n.right-i)),r-n.top<a?s.y=-(a-(r-n.top)):n.bottom-r<a&&(s.y=a-(n.bottom-r)),s);d({x:P&&!1===P.horizontal?0:L.x,y:P&&!1===P.vertical?0:L.y}),h(0!==L.y||0!==L.x)}!t.drag&&k.onDragStart&&k.onDragStart(T),k.onDrag&&k.onDrag(T);var j=function(t,e){var o=0,i=null;return e.forEach((function(e){if(e&&t){var r=function(t,e){var o=t.getBoundingClientRect(),i=e.getBoundingClientRect(),r=Math.max(i.top,o.top),n=Math.max(i.left,o.left),s=Math.min(i.left+i.width,o.left+o.width),a=Math.min(i.top+i.height,o.top+o.height),p=s-n,l=a-r;if(n<s&&r<a){var c=i.width*i.height,h=o.width*o.height,u=p*l;return Number((u/(c+h-u)).toFixed(4))}return 0}(t,e);r>o&&(o=r,i=e)}})),i}(S||A,t.drops.map((function(t){return t&&t.element})).filter((function(t){return t!==(S||A)}))),D=t.drops.find((function(t){return t.element===j}));D&&j&&function(t,e,o){var i=o.getBoundingClientRect();return i.top<=e&&i.left<=t&&e<=i.bottom&&t<=i.right}(T.clientX,T.clientY,O||qt(j))&&j!==A?(t.drop&&t.drop.element)!==j?(t.drop&&t.drop.onDragLeave&&t.drop.onDragLeave(T),D.onDragEnter&&D.onDragEnter(T)):D.onDragOver&&D.onDragOver(T):t.drop&&t.drop.onDragLeave&&t.drop.onDragLeave(T)}x({x:T.clientX,y:T.clientY}),v({x:T.pageX,y:T.pageY});break;case Ut.POINTER_UP:if(T.type===Ut.POINTER_UP&&!T.originalEvent.isPrimary)break;case Ut.MOUSE_UP:case Ut.TOUCH_END:if(T.type===Ut.TOUCH_END&&1!==T.originalEvent.touches.length)break;case Ut.END:l(!1),h(!1),_({x:0,y:0}),k.onRelease&&k.onRelease(T),t.drop&&t.drop.onDrop&&t.drop.onDrop(T),t.drag&&k.onDragEnd&&k.onDragEnd(T);break;case Ut.POINTER_CANCEL:case Ut.CONTEXT_MENU:case Ut.TOUCH_CANCEL:case Ut.CANCEL:l(!1),h(!1),_({x:0,y:0}),k.onDragEnd&&k.onDragEnd(T),t.drop&&t.drop.onDragLeave&&t.drop.onDragLeave(T)}},Kt=function(t,e){if(t){var o,i;t===Xt(t)?(o=document.body.scrollHeight>window.innerHeight,i=document.body.scrollWidth>window.innerWidth):(o=t.offsetHeight<=t.scrollHeight,i=t.offsetWidth<=t.scrollWidth);var r=t.scrollTop+e.y,n=o&&r>0&&r<t.scrollHeight,s=t.scrollLeft+e.x,a=i&&s>0&&s<t.scrollWidth;n?t.scrollTop+=e.y:o&&r<0&&(t.scrollTop=0),a?t.scrollLeft+=e.x:i&&s<0&&(t.scrollLeft=0)}},Jt=function(t,e){var o=r.useContext(t),i=o[0],n=o[1],s=r.useState(e),a=s[0],p=s[1];return[void 0!==i?i:a,function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];void 0!==i?n.apply(void 0,t):p(t[0])}]},$t=2e3;function te(t,e,o){void 0===o&&(o={});var i=e.onPress,n=void 0===i?S:i,s=e.onRelease,a=void 0===s?S:s,p=e.onDragStart,l=void 0===p?S:p,c=e.onDrag,h=void 0===c?S:c,u=e.onDragEnd,d=void 0===u?S:u,f=o.hint,g=void 0===f?null:f,y=o.mouseOnly,v=void 0!==y&&y,m=o.autoScroll,x=void 0===m||m,b=o.scrollContainer,_=void 0===b?null:b,w=r.useState(!1),C=w[0],k=w[1],A=r.useState(!1),P=A[0],O=A[1],T=Jt(Vt)[0],M=Jt(zt),E=M[0],I=M[1],R=r.useContext(Nt)[0],B=r.useContext(Ht),L=B[0],j=B[1],D=B[2],z=r.useRef({x:0,y:0}),V=r.useRef(),H=r.useRef(!1),N=r.useRef(),F=r.useRef(null),U=r.useRef(!1),G=r.useRef({x:0,y:0}),W=r.useRef({x:0,y:0}),X=r.useRef({x:0,y:0}),Y=r.useRef({x:0,y:0}),q=r.useRef({x:0,y:0}),Q=r.useRef({x:0,y:0}),Z=Boolean("undefined"!=typeof window&&window.PointerEvent),K=!v&&Z,J=r.useCallback((function(){return t.current&&t.current.element?t.current.element:t.current}),[t]),$=r.useCallback((function(){return g&&g.current&&g.current.element?g.current.element:g?g.current:null}),[g]),tt=r.useCallback((function(){return _&&_.current&&_.current.element?_.current.element:_?_.current:null}),[_]),et=r.useCallback((function(){return"object"==typeof x&&x.boundaryElementRef&&x.boundaryElementRef.current&&x.boundaryElementRef.current.element?x.boundaryElementRef.current.element:"object"==typeof x&&x.boundaryElementRef&&x.boundaryElementRef.current?x.boundaryElementRef.current:null}),[x]),ot=r.useRef(null);r.useImperativeHandle(ot,(function(){return{element:J(),hint:$(),onPress:gt,onDragStart:vt,onDrag:mt,onDragEnd:xt,onRelease:yt,data:t.current}}));var it=r.useCallback((function(){var t=J();return t&&t.ownerDocument||document}),[J]),rt=r.useCallback((function(){var t=it();return t&&t.defaultView||window}),[it]),nt=r.useCallback((function(){return{drag:E?E.current:null,drop:T?T.current:null,drags:L.map((function(t){return t.current})),drops:R.map((function(t){return t.current})),pressed:C,ignoreMouse:H.current,scrollOffset:q.current,offset:G.current,pageOffset:W.current,initialScrollOffset:Q.current,clientOffset:X.current,initialClientOffset:Y.current,velocity:z.current,autoScroll:Boolean("object"==typeof x?!1!==x.enabled:x),scrollableParent:et(),autoScrollDirection:"object"==typeof x?x.direction:{horizontal:!0,vertical:!0},isScrolling:P}}),[E,T,L,R,C,x,et,P]),st=r.useCallback((function(t){k(t)}),[]),at=r.useCallback((function(t){O(t)}),[]),pt=r.useCallback((function(t){z.current=t}),[]),lt=r.useCallback((function(t){G.current=t}),[]),ct=r.useCallback((function(t){X.current=t}),[]),ht=r.useCallback((function(t){W.current=t}),[]),ut=r.useCallback((function(t){Y.current=t}),[]),dt=r.useCallback((function(t){q.current=t}),[]),ft=r.useCallback((function(t){Q.current=t}),[]),gt=r.useCallback((function(t){n(t)}),[n]),yt=r.useCallback((function(t){a(t)}),[a]),vt=r.useCallback((function(e){I(ot,{target:t.current,event:e}),l(e)}),[I,t,l]),mt=r.useCallback((function(t){h(t)}),[h]),xt=r.useCallback((function(e){U.current||(I(null,{target:t.current,event:e}),d(e))}),[d,I,t]),bt=r.useCallback((function(t){Zt(nt(),{event:t,payload:ot.current},{onVelocityChange:pt,onOffsetChange:lt,onClientOffsetChange:ct,onPageOffsetChange:ht,onInitialClientOffsetChange:ut,onScrollOffsetChange:dt,onInitialScrollOffsetChange:ft,onIsPressedChange:st,onIsScrollingChange:at})}),[nt,pt,lt,ht,ct,ut,ft,st,dt,at]),_t=r.useCallback((function(t){bt(t)}),[bt]),wt=r.useCallback((function(t){bt(t)}),[bt]),Ct=r.useCallback((function(t){bt(t)}),[bt]),kt=r.useCallback((function(t){bt(t)}),[bt]),At=r.useCallback((function(t){bt(t)}),[bt]),St=r.useCallback((function(t){bt(t)}),[bt]),Pt=r.useCallback((function(t){bt(t)}),[bt]),Ot=r.useCallback((function(t){t.preventDefault(),bt(t)}),[bt]),Tt=r.useCallback((function(t){t.preventDefault(),bt(t)}),[bt]),Mt=r.useCallback((function(t){t.preventDefault(),bt(t)}),[bt]),Et=r.useCallback((function(t){if(0===t.touches.length&&1===t.changedTouches.length){var e=rt();H.current=!0,N.current=e.setTimeout((function(){H.current=!1}),$t)}bt(t)}),[bt,rt]),It=r.useCallback((function(t){bt(t)}),[bt]),Rt=r.useCallback((function(){var t=J();if(t){var e=t.style.touchAction;return t.style.touchAction="none",function(){t.style.touchAction=e}}}),[J]),Bt=r.useCallback((function(){return j(ot),function(){D(ot)}}),[D,j]);r.useEffect((function(){var t=rt();if(P){var e=tt()||qt(document.elementFromPoint(X.current.x,X.current.y));t.clearInterval(V.current),V.current=t.setInterval((function(){Kt(e,{x:z.current.x,y:z.current.y})}),50)}return function(){t.clearInterval(V.current)}}),[J,tt,rt,P]),r.useEffect(Rt,[Rt]),r.useEffect((function(){var t=rt(),e=J(),o=it();return K?(e&&(F.current=qt(e),F.current&&F.current.addEventListener("scroll",It,{passive:!0}),e.addEventListener("pointerdown",_t,{passive:!0})),C&&(o.addEventListener("pointermove",wt),o.addEventListener("pointerup",kt,!0),o.addEventListener("contextmenu",Ot),o.addEventListener("pointercancel",Ct,{passive:!0}))):(t.addEventListener("touchmove",S,{capture:!1,passive:!1}),e&&(e.addEventListener("mousedown",At,{passive:!0}),v||(e.addEventListener("touchstart",Tt,{passive:!0}),C&&(e.addEventListener("touchmove",Mt,{passive:!0}),e.addEventListener("touchend",Et,{passive:!0})))),C&&(o.addEventListener("mousemove",St,{passive:!0}),o.addEventListener("mouseup",Pt,{passive:!0}))),function(){F.current&&F.current.removeEventListener("scroll",It),e&&(e.removeEventListener("pointerdown",_t),e.removeEventListener("mousedown",At),e.removeEventListener("touchstart",Tt),e.removeEventListener("touchmove",Mt),e.removeEventListener("touchend",Et)),o.removeEventListener("pointermove",wt),o.removeEventListener("pointerup",kt,!0),o.removeEventListener("contextmenu",Ot),o.removeEventListener("pointercancel",Ct),o.removeEventListener("mousemove",St),o.removeEventListener("mouseup",Pt),t.removeEventListener("touchmove",S),t.clearTimeout(N.current)}}),[C,rt,J,it,v,K,Ot,At,St,Pt,Ct,_t,wt,kt,Et,Mt,Tt,It]),r.useEffect((function(){return U.current=!1,function(){U.current=!0}}),[]),r.useLayoutEffect(Bt,[Bt])}var ee=r.forwardRef((function(t,e){var o=r.useRef(null),i=r.useRef(null),n=r.useCallback((function(){return o.current&&o.current.element?o.current.element:o.current}),[o]);r.useImperativeHandle(i,(function(){return{element:n()||null}})),r.useImperativeHandle(e,(function(){return i.current})),r.useImperativeHandle(t.childRef,(function(){return o.current}));var s=r.useCallback((function(e){t.onPress&&t.onPress({element:n(),target:i.current,event:e})}),[n,t.onPress]),a=r.useCallback((function(e){t.onRelease&&t.onRelease({element:n(),target:i.current,event:e})}),[n,t.onRelease]),p=r.useCallback((function(e){t.onDragStart&&t.onDragStart({element:n(),target:i.current,event:e})}),[t,n]),l=r.useCallback((function(e){t.onDrag&&t.onDrag({element:n(),target:i.current,event:e})}),[n,t.onDrag]),c=r.useCallback((function(e){t.onDragEnd&&t.onDragEnd({element:n(),target:i.current,event:e})}),[n,t.onDragEnd]);return te(o,{onPress:s,onRelease:a,onDragStart:p,onDrag:l,onDragEnd:c},{mouseOnly:t.mouseOnly,autoScroll:t.autoScroll,hint:t.hint,scrollContainer:t.scrollContainer}),t.children?r.cloneElement(r.Children.only(t.children),{ref:o}):null}));function oe(t,e){void 0===e&&(e={onDragEnter:S,onDragOver:S,onDragLeave:S,onDrop:S});var o=e.onDragEnter,i=void 0===o?S:o,n=e.onDragOver,s=void 0===n?S:n,a=e.onDragLeave,p=void 0===a?S:a,l=e.onDrop,c=void 0===l?S:l,h=Jt(Vt)[1],u=r.useContext(Nt),d=u[1],f=u[2],g=r.useCallback((function(){return t.current&&t.current.element?t.current.element:t.current}),[t]),y=r.useRef(null);r.useImperativeHandle(y,(function(){return{element:g(),onDragEnter:v,onDragOver:m,onDragLeave:x,onDrop:b,data:t.current}}));var v=r.useCallback((function(e){h(y,{target:t.current,event:e}),i(e)}),[h,t,i]),m=r.useCallback((function(t){s(t)}),[s]),x=r.useCallback((function(e){h(null,{target:t.current,event:e}),p(e)}),[h,t,p]),b=r.useCallback((function(e){h(null,{target:t.current,event:e}),c(e)}),[h,t,c]),_=r.useCallback((function(){return d(y),function(){f(y)}}),[f,d]);r.useLayoutEffect(_,[_])}ee.displayName="KendoReactDraggable";var ie=r.forwardRef((function(t,e){var o=r.useRef(null),i=r.useRef(null),n=r.useCallback((function(){return o.current&&o.current.element?o.current.element:o.current}),[o]);r.useImperativeHandle(i,(function(){return{element:n()||void 0}})),r.useImperativeHandle(e,(function(){return i.current})),r.useImperativeHandle(t.childRef,(function(){return o.current}));var s=r.useCallback((function(e){t.onDragEnter&&t.onDragEnter({element:n(),target:i.current,event:e})}),[t.onDragEnter,n]),a=r.useCallback((function(e){t.onDragOver&&t.onDragOver({element:n(),target:i.current,event:e})}),[n,t.onDragOver]),p=r.useCallback((function(e){t.onDragLeave&&t.onDragLeave({element:n(),target:i.current,event:e})}),[t.onDragLeave,n]),l=r.useCallback((function(e){t.onDrop&&t.onDrop({element:n(),target:i.current,event:e})}),[t.onDrop,n]);return oe(o,{onDragEnter:s,onDragOver:a,onDragLeave:p,onDrop:l}),t.children?r.cloneElement(r.Children.only(t.children),{ref:o}):null}));ie.displayName="KendoReactDroppable";var re={sizeMap:{small:"sm",medium:"md",large:"lg"},roundedMap:{small:"sm",medium:"md",large:"lg"},orientationMap:{vertical:"vstack",horizontal:"hstack"}};function ne(t,e){if(t.length!==e.length)return!1;for(var o=0;o<t.length;o++)if(!((i=t[o])===(r=e[o])||Number.isNaN(i)&&Number.isNaN(r)))return!1;var i,r;return!0}function se(t,e){void 0===e&&(e=ne);var o=null;function i(){for(var i=[],r=0;r<arguments.length;r++)i[r]=arguments[r];if(o&&o.lastThis===this&&e(i,o.lastArgs))return o.lastResult;var n=t.apply(this,i);return o={lastResult:n,lastArgs:i,lastThis:this},n}return i.clear=function(){o=null},i}var ae=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[contenteditable]"],pe=function(){function t(t){var e=this;this.rovingTabIndex=!0,this.update=function(){},this.focusNextIndex=function(t,o){var i=e.elements,r=i.indexOf(t)+o,n=i[(r=r<0?i.length-1:r)%i.length];return e.focusElement(n,t),n},this.tabIndex=t.tabIndex||0,this.root=t.root,this.selectors=t.selectors,this.focusOptions=t.focusOptions||{preventScroll:!0},this.rovingTabIndex=void 0===t.rovingTabIndex||t.rovingTabIndex,this.mouseEvents=t.mouseEvents||{},this.keyboardEvents=t.keyboardEvents||{}}return Object.defineProperty(t.prototype,"elements",{get:function(){return this.root.current?Array.from(this.root.current.querySelectorAll(this.selectors.join(","))):[]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"first",{get:function(){return this.root.current&&this.root.current.querySelector(this.selectors.join(","))||null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"last",{get:function(){var t=this.elements;return t[t.length-1]||null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"current",{get:function(){return this.elements.find((function(t){return t.matches(":focus")}))||null},enumerable:!1,configurable:!0}),t.prototype.focusNext=function(t){return this.focusNextIndex(t,1)},t.prototype.focusPrevious=function(t){return this.focusNextIndex(t,-1)},t.prototype.triggerKeyboardEvent=function(t,e){var o=t.target instanceof Element&&t.target.closest(this.selectors.join(",")),i=" "===t.key?"Space":t.key,r=t.nativeEvent.type;o&&this.keyboardEvents[r][i]&&this.keyboardEvents[r][i].call(void 0,o,this,t,e)},t.prototype.triggerMouseEvent=function(t){var e=t.target instanceof Element&&t.target.closest(this.selectors.join(",")),o=t.nativeEvent.type;e&&this.mouseEvents[o].call(void 0,e,this,t)},t.prototype.focusElement=function(t,e){t&&(e&&(this.rovingTabIndex&&e.removeAttribute("tabindex"),e.classList.remove("k-focus")),this.rovingTabIndex&&t.setAttribute("tabindex",String(this.tabIndex)),t.focus(this.focusOptions))},t}(),le=function(t){var e=t.shadowRoot,o=t.contentDocument;return e&&e.activeElement?le(e.activeElement):o&&o.activeElement?le(o.activeElement):t},ce=function(t){if(t&&t.activeElement)return le(t.activeElement)};function he(t,e){var o=(t||"").split("."),i=e;return o.forEach((function(t){i=i?i[t]:void 0})),i}function ue(t){return void 0!==t.length}var de=function(){function t(t){this.expandField=t.expandField,this.selectField=t.selectField,this.hasChildrenField=t.hasChildrenField,this.childrenField=t.childrenField,this.textField=t.textField,this.disableField=t.disableField,this.checkField=t.checkField,this.checkIndeterminateField=t.checkIndeterminateField,this.focusIdField=t.focusIdField}return t.prototype.expanded=function(t){return he(this.expandField,t)},t.prototype.selected=function(t){return he(this.selectField,t)},t.prototype.text=function(t){return he(this.textField,t)},t.prototype.disabled=function(t){return he(this.disableField,t)},t.prototype.hasChildren=function(t){return he(this.hasChildrenField,t)},t.prototype.children=function(t){return he(this.childrenField,t)||[]},t.prototype.checked=function(t){return he(this.checkField,t)},t.prototype.checkIndeterminate=function(t){return he(this.checkIndeterminateField,t)},t.prototype.focusId=function(t){return this.focusIdField&&he(this.focusIdField,t)},t.prototype.getChildrenField=function(){return this.childrenField},t}(),fe=function(){function t(){this.objects=[]}return t.prototype.init=function(t){for(var e,o=0;o<t.length;o++)o%5e4==0&&(e={},this.objects.push(e)),e[t[o]]=!0},t.prototype.hasId=function(t){return this.objects.some((function(e){return e[t]}))},t}(),ge="",ye="0",ve="_";function me(t,e,o){if(Ae(t))return e[Number(t)];var i=e[Number(xe(t))],r=i&&i[o]||[];return r.length?me(be(t),r,o):void 0}function xe(t){return ke(t)?t:t.split(ve)[0]}function be(t){if(ke(t))return t;var e=t.indexOf(ve);return t.substring(e+1)}function _e(t){return we("0",t)}function we(t,e){return t=t.toString(),e?e+ve+t:t}function Ce(t){var e=t.lastIndexOf(ve);return e<0?ge:t.substring(0,e)}function ke(t){return t===ge||t.indexOf(ve)<0}function Ae(t){return t!==ge&&t.indexOf(ve)<0}function Se(t){return t.split(ve)}function Pe(t){var e=t.lastIndexOf(ve);return e<0?t:t.substring(e+1)}function Oe(t){return Pe(t)===ye}function Te(t,e){var o=e;e="r"+ve+e;var i=Ce(t="r"+ve+t)+ve;if(e.startsWith(i)){var r=e.substring(i.length);if(r){var n=xe(r);if(Number(Pe(t))<Number(n))return be(i+(Number(n)-1).toString()+r.substring(n.length))}}return o}var Me=function(){return Me=Object.assign||function(t){for(var e,o=1,i=arguments.length;o<i;o++)for(var r in e=arguments[o])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},Me.apply(this,arguments)};function Ee(t,e){var o=he(e,t);return Boolean(o&&o.length)}function Ie(t,e){return e.expanded(t)&&Ee(t,e.getChildrenField())}function Re(t,e,o,i){var r=Be([t],e,o,i);return r.length?r[0]:void 0}function Be(t,e,o,i){var r=[],n=new fe;return n.init(t),Fe(n,e,o,ge,r,i),r}function Le(t,e,o,i,r){var n,s=Number(xe(e));if(s>=t.length)return t;var a=t,p=t[s];return p[i]||(p=(a=t.slice())[s]=Object.assign({},p,((n={})[i]=!0,n))),Ae(e)?o(p):p[r]&&(p[r]=Le(p[r],be(e),o,i,r)),a}function je(t,e,o){for(var i=Se(t),r=e,n=0;n<i.length;n++){var s=r[Number(i[n])];if(o.disabled(s))return!1;r=s[o.getChildrenField()]}return!0}function De(t,e,o,i){return i?function t(e){for(var r=[],n=e[o]||[],s=0;s<n.length;s++)r.push(he(i,n[s])),r=r.concat(t(n[s]));return r}(t):function t(e,i){for(var r=[],n=e[o]||[],s=0;s<n.length;s++){var a=we(s,i);r.push(a),r=r.concat(t(n[s],a))}return r}(t,e)}function ze(t,e,o,i,r){return(t[i]||[]).every((function(t,i){return r.indexOf(o?he(o,t):we(i,e))>-1}))}function Ve(t,e,o){for(var i=[],r=Se(t),n=o,s=0;s<r.length-1&&n;s++){var a=n[Number(r[s])];i.push(a),n=a[e]}return i}function He(t,e,o){var i=o.slice();if(Ae(t))i.splice(Number(t),1);else{var r=Number(xe(t)),n=i[r]=Me({},i[r]);n[e]=He(be(t),e,n[e])}return i}function Ne(t,e,o,i,r){var n=r.slice();if(Ae(i))if("child"===e){var s=n[Number(i)]=Me({},n[Number(i)]);s[o]?(s[o]=s[o].slice(),s[o].push(t)):s[o]=[t]}else n.splice(Number(i)+("after"===e?1:0),0,t);else{var a=Number(xe(i)),p=n[a]=Me({},n[a]);p[o]=Ne(t,e,o,be(i),p[o])}return n}function Fe(t,e,o,i,r,n){for(var s=0;s<o.length;s++){var a=o[s],p=we(s,i);t.hasId(he(e,a))&&r.push(p),Ee(a,n)&&Fe(t,e,he(n,a),p,r,n)}}},407:t=>{t.exports=i},302:t=>{t.exports=r},499:t=>{t.exports=o},189:t=>{t.exports=e},899:e=>{e.exports=t},994:t=>{t.exports=n}},a={};function p(t){var e=a[t];if(void 0!==e)return e.exports;var o=a[t]={exports:{}};return s[t].call(o.exports,o,o.exports,p),o.exports}return p.d=(t,e)=>{for(var o in e)p.o(e,o)&&!p.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},p.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),p.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},p(468)})()}));
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2023 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
(function(i,p){typeof exports=="object"&&typeof module<"u"?p(exports,require("react"),require("prop-types"),require("@progress/kendo-react-intl"),require("@progress/kendo-charts"),require("@progress/kendo-react-common"),require("@progress/kendo-drawing")):typeof define=="function"&&define.amd?define(["exports","react","prop-types","@progress/kendo-react-intl","@progress/kendo-charts","@progress/kendo-react-common","@progress/kendo-drawing"],p):(i=typeof globalThis<"u"?globalThis:i||self,p(i.KendoReactGauges={},i.React,i.PropTypes,i.KendoReactIntl,i.KendoCharts,i.KendoReactCommon,i.KendoDrawing))})(this,function(i,p,x,v,c,g,m){"use strict";function G(s){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(s){for(const t in s)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(s,t);Object.defineProperty(e,t,r.get?r:{enumerable:!0,get:()=>s[t]})}}return e.default=s,Object.freeze(e)}const l=G(p),C=G(x),N=`
|
|
6
|
+
<div class="k-var--gauge-pointer"></div>
|
|
7
|
+
<div class="k-var--gauge-track"></div>
|
|
8
|
+
<div class="k-var--normal-text-color"></div>
|
|
9
|
+
`;class j{constructor(e){this.store=e}setStyle(e,t){this.store.dispatch({type:"set",payload:{field:e,value:t}})}setColors(){this.mapColor("pointer.color","gauge-pointer"),this.mapColor("scale.rangePlaceholderColor","gauge-track"),this.mapColor("scale.labels.color","normal-text-color"),this.mapColor("scale.minorTicks.color","normal-text-color"),this.mapColor("scale.majorTicks.color","normal-text-color"),this.mapColor("scale.line.color","normal-text-color")}mapColor(e,t){this.setStyle(e,this.queryStyle(t).backgroundColor)}queryStyle(e){const t=this.element;return window.getComputedStyle(t.querySelector(`.k-var--${e}`))}}const E=(s,e,t)=>{const r=new j(s);if(typeof t>"u"){s.dispatch({type:"push",payload:c.chartBaseTheme()});return}const n=r.element=t.createElement("div");n.style.display="none",n.innerHTML=N,t.body.appendChild(n);try{s.dispatch({type:"push",payload:c.chartBaseTheme()}),r.setColors()}finally{t.body.removeChild(r.element),delete r.element,e()}},V=1e3/60,I=s=>{let e,t,r=[];const n=()=>e,a=u=>{e=s(e,u),g.canUseDOM&&(window.clearTimeout(t),t=window.setTimeout(()=>r.forEach(d=>d()),V))},o=u=>(r.push(u),()=>r=r.filter(d=>d!==u));return a({}),{getState:n,dispatch:a,subscribe:o}},A=(s,e)=>{if(e.type)switch(e.type){case"set":return k.themeItem(s,e);case"push":return Object.assign(s,e.payload);default:return s}else return{}},F=(s,e)=>{if(e.type)switch(e.type){case"add":return[...s,e.payload];case"remove":return s.filter(t=>t!==e.payload);default:return s}else return[]},k={configurationItem(s,e){return Object.assign(s,{[e.gaugeKey]:e.payload})},collectionConfigurationItem(s,e){let t=!1;const[r,n]=e.gaugeCollectionIdxKey.split("_"),a=s[r].map((o,u)=>parseInt(n,10)===u?(t=!0,e.payload):o);return t===!1&&a.splice(parseInt(n,10),0,e.payload),Object.assign(s,{[r]:a})},themeItem(s,e){let t={},r=Object.assign(t,s);const{field:n,value:a}=e.payload,o=n.split(".");let u=o.shift();for(;o.length>0;)t=t[u]=t[u]||{},u=o.shift();return t[u]=a,r}},S=s=>typeof s=="object",_=(s,e)=>{if(Object.keys(s).length!==Object.keys(e).length)return!0;for(let t in s)if(t!=="value"&&s.hasOwnProperty(t)){const r=s[t],n=e[t];if(S(r)&&S(n)?_(r,n):r!==n)return!0}return!1},D=(s,e)=>{if(!s||!e||(s=[].concat(s),e=[].concat(e),s.length!==e.length))return!0;for(let t=0;t<s.length;t++)if(_(s[t],e[t]))return!0;return!1},y=l.createContext(null);y.displayName="GaugeContext";const R={name:"@progress/kendo-react-gauges",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:0,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/components/my-license/"};class h extends l.Component{constructor(e){super(e),this.gaugeInstance=null,this.surface=null,this._element=null,this.themeStore={},this.themeUnsubscriber=Function.prototype,this.observersStore={},this.onWindowResize=()=>{this.gaugeInstance!==null&&(this.gaugeInstance.resize(),this.trigger("render",{sender:this}))},g.validatePackage(R),this.themeStore=I(A),this.observersStore=I(F),this.contextValue={observersStore:this.observersStore}}get element(){return this._element}componentDidMount(){var t;const e=((t=this._element)==null?void 0:t.ownerDocument)||document;E(this.themeStore,this.instantiateCoreGauge.bind(this),e),this.themeUnsubscriber=this.themeStore.subscribe(this.refresh.bind(this)),window.addEventListener("resize",this.onWindowResize),this.trigger("render",{sender:this})}componentDidUpdate(e){const{dir:t,children:r,deriveOptionsFromParent:n,getTarget:a,gaugeConstructor:o,className:u,renderAs:d,...b}=this.props,{dir:$,children:J,deriveOptionsFromParent:Q,getTarget:X,gaugeConstructor:Y,className:Z,renderAs:q,...L}=e;if(this.gaugeInstance!==null){const O=v.provideIntlService(this),z=this.gaugeInstance.contextService,W=O.locale!==z._intlService.locale,P=D(L,b),f=b;W&&(this.gaugeInstance.contextService._intlService=O,this.gaugeInstance.contextService.format._intlService=O,P||this.gaugeInstance.noTransitionsRedraw()),P||(d||"svg")!==(q||"svg")?this.refresh():Object.keys(b).indexOf("pointer")>-1?Array.isArray(f.pointer)?this.refreshAllValues(f.pointer.map(B=>B.value)):this.refreshValue((f.pointer||{}).value):this.refreshValue(f.value),e.dir!==t&&this.gaugeInstance.setDirection(this.getDirection(t)),this.trigger("render",{sender:this})}}componentWillUnmount(){this.themeUnsubscriber();const e=this.gaugeInstance&&this.gaugeInstance.surfaceElement;e&&e.parentNode&&e.parentNode.removeChild(e),this.gaugeInstance!==null&&(this.gaugeInstance.destroy(),this.gaugeInstance=null),window.removeEventListener("resize",this.onWindowResize)}render(){const{style:e={},className:t,children:r}=this.props,n=Object.assign({},e,{position:"relative"});return l.createElement(y.Provider,{value:this.contextValue},l.createElement("div",{style:n,ref:a=>this._element=a,className:t},r))}instantiateCoreGauge(){const{dir:e,gaugeConstructor:t}=this.props,r=this.getGaugeOptions();this.gaugeInstance=new t(this.element,r,this.themeStore.getState(),{rtl:this.getDirection(e),intlService:v.provideIntlService(this),sender:this})}refresh(){if(this.gaugeInstance!==null){const e=this.themeStore.getState(),t=this.getGaugeOptions();this.gaugeInstance.setOptions(t,e)}}refreshValue(e){this.gaugeInstance.value(e)}refreshAllValues(e){this.gaugeInstance.allValues(e)}getDirection(e){return(e!==void 0?e:(()=>g.canUseDOM&&window.getComputedStyle(this.element).direction)()||"ltr")==="rtl"}getGaugeOptions(){const{renderAs:e,transitions:t,deriveOptionsFromParent:r}=this.props;let n=Object.assign({renderAs:e,transitions:t});return r&&(n=r(n)),n}trigger(e,t){const r=this.observersStore.getState();for(let n=0;n<r.length;n++)r[n].trigger(e,t)}}h.propTypes={dir:C.string,renderAs:C.oneOf(["svg","canvas"])},h.defaultProps={renderAs:"svg"},v.registerForIntl(h);class T extends l.Component{constructor(e,t){super(e,t),this.state={arcCenterStyles:null,arcCenterValue:{value:0,color:""}},this._element=null,this.gaugeObserver=new c.InstanceObserver(this,{render:"onRender"}),t.observersStore.dispatch({type:"add",payload:this.gaugeObserver})}render(){const{render:e}=this.props,{arcCenterStyles:t,arcCenterValue:r}=this.state,n=t||{zIndex:-1};let a=null;return e&&(a=l.createElement("div",{className:"k-arcgauge-label",ref:o=>this._element=o,style:n},e(r.value,r.color))),a}onRender(e){if(!this._element)return;const t=e.sender.gaugeInstance,r=this._element.offsetWidth,n=this._element.offsetHeight,a=t.centerLabelPosition(r,n);this.setState({arcCenterStyles:{left:a.left,top:a.top},arcCenterValue:{value:t.value(),color:t.currentColor()}})}}T.contextType=y;class w extends l.Component{constructor(){super(...arguments),this._baseGauge=null,this.gaugeType=c.ArcGauge,this.getTarget=()=>this,this.deriveOptionsFromParent=e=>{const{value:t,color:r,colors:n,opacity:a,scale:o}=this.props;return Object.assign({},e,{value:t,color:r,colors:n,opacity:a,scale:o})}}get gaugeInstance(){return this._baseGauge?this._baseGauge.gaugeInstance:null}get surface(){return this._baseGauge?this._baseGauge.surface:null}get element(){return this._baseGauge?this._baseGauge.element:null}render(){const{children:e,arcCenterRender:t,centerRender:r,className:n,...a}=this.props;return l.createElement(h,{...a,deriveOptionsFromParent:this.deriveOptionsFromParent,ref:o=>this._baseGauge=o,gaugeConstructor:this.gaugeType,getTarget:this.getTarget,className:g.classNames("k-gauge k-arcgauge",n)},e,l.createElement(T,{render:r||t}))}exportVisual(e){return this.gaugeInstance!==null&&this.element?m.drawDOM(this.element,e):Promise.resolve(new m.Group)}}class K extends w{constructor(){super(...arguments),this.gaugeType=c.CircularGauge}}class M extends l.Component{constructor(){super(...arguments),this._baseGauge=null,this.getTarget=()=>this,this.deriveOptionsFromParent=e=>{const{pointer:t,scale:r}=this.props;return Object.assign({},e,{pointer:t,scale:r})}}get gaugeInstance(){return this._baseGauge!==null?this._baseGauge.gaugeInstance:null}get surface(){return this._baseGauge!==null?this._baseGauge.surface:null}get element(){return this._baseGauge!==null?this._baseGauge.element:null}render(){const{children:e,className:t,...r}=this.props;return l.createElement(h,{...r,deriveOptionsFromParent:this.deriveOptionsFromParent,ref:n=>this._baseGauge=n,gaugeConstructor:c.LinearGauge,getTarget:this.getTarget,className:g.classNames("k-gauge",t)},e)}exportVisual(e){return this.gaugeInstance!==null?Promise.resolve(this.gaugeInstance.exportVisual(e)):Promise.resolve(new m.Group)}}class U extends l.Component{constructor(){super(...arguments),this._baseGauge=null,this.getTarget=()=>this,this.deriveOptionsFromParent=e=>{const{pointer:t,scale:r}=this.props;return Object.assign({},e,{pointer:t,scale:r})}}get gaugeInstance(){return this._baseGauge!==null?this._baseGauge.gaugeInstance:null}get surface(){return this._baseGauge!==null?this._baseGauge.surface:null}get element(){return this._baseGauge!==null?this._baseGauge.element:null}render(){const{children:e,className:t,...r}=this.props;return l.createElement(h,{...r,deriveOptionsFromParent:this.deriveOptionsFromParent,ref:n=>this._baseGauge=n,gaugeConstructor:c.RadialGauge,getTarget:this.getTarget,className:g.classNames("k-gauge",t)},e)}exportVisual(e){return this.gaugeInstance!==null?Promise.resolve(this.gaugeInstance.exportVisual(e)):Promise.resolve(new m.Group)}}i.ArcGauge=w,i.CircularGauge=K,i.LinearGauge=M,i.RadialGauge=U,Object.defineProperty(i,Symbol.toStringTag,{value:"Module"})});
|