Browse Source

Remove current dependency files.

Dominique CLAUSE 2 years ago
parent
commit
092e24e031
89 changed files with 0 additions and 5814 deletions
  1. 0 167
      nicegui/elements/lib/CSS2DRenderer.js
  2. 0 315
      nicegui/elements/lib/CSS3DRenderer.js
  3. 0 1012
      nicegui/elements/lib/OrbitControls.js
  4. 0 327
      nicegui/elements/lib/STLLoader.js
  5. 0 7
      nicegui/elements/lib/ag-grid-community.min.js
  6. 0 105
      nicegui/elements/lib/highcharts-3d.js
  7. 0 216
      nicegui/elements/lib/highcharts-more.js
  8. 0 602
      nicegui/elements/lib/highcharts.js
  9. 0 264
      nicegui/elements/lib/highcharts_modules/accessibility.js
  10. 0 203
      nicegui/elements/lib/highcharts_modules/annotations-advanced.js
  11. 0 138
      nicegui/elements/lib/highcharts_modules/annotations.js
  12. 0 25
      nicegui/elements/lib/highcharts_modules/arc-diagram.js
  13. 0 13
      nicegui/elements/lib/highcharts_modules/arrow-symbols.js
  14. 0 17
      nicegui/elements/lib/highcharts_modules/boost-canvas.js
  15. 0 17
      nicegui/elements/lib/highcharts_modules/boost.js
  16. 0 20
      nicegui/elements/lib/highcharts_modules/broken-axis.js
  17. 0 18
      nicegui/elements/lib/highcharts_modules/bullet.js
  18. 0 34
      nicegui/elements/lib/highcharts_modules/coloraxis.js
  19. 0 14
      nicegui/elements/lib/highcharts_modules/current-date-indicator.js
  20. 0 20
      nicegui/elements/lib/highcharts_modules/cylinder.js
  21. 0 42
      nicegui/elements/lib/highcharts_modules/data.js
  22. 0 32
      nicegui/elements/lib/highcharts_modules/datagrouping.js
  23. 0 32
      nicegui/elements/lib/highcharts_modules/debugger.js
  24. 0 21
      nicegui/elements/lib/highcharts_modules/dependency-wheel.js
  25. 0 15
      nicegui/elements/lib/highcharts_modules/dotplot.js
  26. 0 20
      nicegui/elements/lib/highcharts_modules/drag-panes.js
  27. 0 42
      nicegui/elements/lib/highcharts_modules/draggable-points.js
  28. 0 46
      nicegui/elements/lib/highcharts_modules/drilldown.js
  29. 0 24
      nicegui/elements/lib/highcharts_modules/dumbbell.js
  30. 0 35
      nicegui/elements/lib/highcharts_modules/export-data.js
  31. 0 49
      nicegui/elements/lib/highcharts_modules/exporting.js
  32. 0 18
      nicegui/elements/lib/highcharts_modules/full-screen.js
  33. 0 21
      nicegui/elements/lib/highcharts_modules/funnel.js
  34. 0 30
      nicegui/elements/lib/highcharts_modules/funnel3d.js
  35. 0 231
      nicegui/elements/lib/highcharts_modules/gantt.js
  36. 0 32
      nicegui/elements/lib/highcharts_modules/grid-axis.js
  37. 0 47
      nicegui/elements/lib/highcharts_modules/heatmap.js
  38. 0 18
      nicegui/elements/lib/highcharts_modules/heikinashi.js
  39. 0 21
      nicegui/elements/lib/highcharts_modules/histogram-bellcurve.js
  40. 0 18
      nicegui/elements/lib/highcharts_modules/hollowcandlestick.js
  41. 0 21
      nicegui/elements/lib/highcharts_modules/item-series.js
  42. 0 14
      nicegui/elements/lib/highcharts_modules/lollipop.js
  43. 0 45
      nicegui/elements/lib/highcharts_modules/marker-clusters.js
  44. 0 64
      nicegui/elements/lib/highcharts_modules/networkgraph.js
  45. 0 15
      nicegui/elements/lib/highcharts_modules/no-data-to-display.js
  46. 0 29
      nicegui/elements/lib/highcharts_modules/offline-exporting.js
  47. 0 17
      nicegui/elements/lib/highcharts_modules/oldie-polyfills.js
  48. 0 40
      nicegui/elements/lib/highcharts_modules/oldie.js
  49. 0 26
      nicegui/elements/lib/highcharts_modules/organization.js
  50. 0 10
      nicegui/elements/lib/highcharts_modules/overlapping-datalabels.js
  51. 0 20
      nicegui/elements/lib/highcharts_modules/parallel-coordinates.js
  52. 0 16
      nicegui/elements/lib/highcharts_modules/pareto.js
  53. 0 40
      nicegui/elements/lib/highcharts_modules/pathfinder.js
  54. 0 25
      nicegui/elements/lib/highcharts_modules/pattern-fill.js
  55. 0 15
      nicegui/elements/lib/highcharts_modules/price-indicator.js
  56. 0 13
      nicegui/elements/lib/highcharts_modules/pyramid3d.js
  57. 0 42
      nicegui/elements/lib/highcharts_modules/sankey.js
  58. 0 27
      nicegui/elements/lib/highcharts_modules/series-label.js
  59. 0 18
      nicegui/elements/lib/highcharts_modules/series-on-point.js
  60. 0 20
      nicegui/elements/lib/highcharts_modules/solid-gauge.js
  61. 0 68
      nicegui/elements/lib/highcharts_modules/sonification.js
  62. 0 14
      nicegui/elements/lib/highcharts_modules/static-scale.js
  63. 0 119
      nicegui/elements/lib/highcharts_modules/stock-tools.js
  64. 0 221
      nicegui/elements/lib/highcharts_modules/stock.js
  65. 0 14
      nicegui/elements/lib/highcharts_modules/streamgraph.js
  66. 0 84
      nicegui/elements/lib/highcharts_modules/sunburst.js
  67. 0 26
      nicegui/elements/lib/highcharts_modules/tilemap.js
  68. 0 28
      nicegui/elements/lib/highcharts_modules/timeline.js
  69. 0 45
      nicegui/elements/lib/highcharts_modules/treegraph.js
  70. 0 66
      nicegui/elements/lib/highcharts_modules/treegrid.js
  71. 0 63
      nicegui/elements/lib/highcharts_modules/treemap.js
  72. 0 18
      nicegui/elements/lib/highcharts_modules/variable-pie.js
  73. 0 21
      nicegui/elements/lib/highcharts_modules/variwide.js
  74. 0 17
      nicegui/elements/lib/highcharts_modules/vector.js
  75. 0 39
      nicegui/elements/lib/highcharts_modules/venn.js
  76. 0 24
      nicegui/elements/lib/highcharts_modules/windbarb.js
  77. 0 31
      nicegui/elements/lib/highcharts_modules/wordcloud.js
  78. 0 27
      nicegui/elements/lib/highcharts_modules/xrange.js
  79. 0 5
      nicegui/elements/lib/mermaid.min.js
  80. 0 6
      nicegui/elements/lib/nipplejs.min.js
  81. 0 7
      nicegui/elements/lib/plotly.min.js
  82. 0 6
      nicegui/elements/lib/three.min.js
  83. 0 0
      nicegui/elements/lib/tween.umd.min.js
  84. 0 0
      nicegui/static/quasar.prod.css
  85. 0 5
      nicegui/static/quasar.umd.prod.js
  86. 0 5
      nicegui/static/socket.io.min.js
  87. 0 0
      nicegui/static/tailwindcss.min.js
  88. 0 0
      nicegui/static/vue.global.prod.js
  89. 0 10
      nicegui/static/vue.min.js

+ 0 - 167
nicegui/elements/lib/CSS2DRenderer.js

@@ -1,167 +0,0 @@
-(function () {
-  class CSS2DObject extends THREE.Object3D {
-    constructor(element = document.createElement("div")) {
-      super();
-
-      this.isCSS2DObject = true;
-
-      this.element = element;
-
-      this.element.style.position = "absolute";
-      this.element.style.userSelect = "none";
-
-      this.element.setAttribute("draggable", false);
-
-      this.addEventListener("removed", function () {
-        this.traverse(function (object) {
-          if (object.element instanceof Element && object.element.parentNode !== null) {
-            object.element.parentNode.removeChild(object.element);
-          }
-        });
-      });
-    }
-
-    copy(source, recursive) {
-      super.copy(source, recursive);
-
-      this.element = source.element.cloneNode(true);
-
-      return this;
-    }
-  }
-
-  //
-
-  const _vector = new THREE.Vector3();
-  const _viewMatrix = new THREE.Matrix4();
-  const _viewProjectionMatrix = new THREE.Matrix4();
-  const _a = new THREE.Vector3();
-  const _b = new THREE.Vector3();
-
-  class CSS2DRenderer {
-    constructor(parameters = {}) {
-      const _this = this;
-
-      let _width, _height;
-      let _widthHalf, _heightHalf;
-
-      const cache = {
-        objects: new WeakMap(),
-      };
-
-      const domElement = parameters.element !== undefined ? parameters.element : document.createElement("div");
-
-      domElement.style.overflow = "hidden";
-
-      this.domElement = domElement;
-
-      this.getSize = function () {
-        return {
-          width: _width,
-          height: _height,
-        };
-      };
-
-      this.render = function (scene, camera) {
-        if (scene.matrixWorldAutoUpdate === true) scene.updateMatrixWorld();
-        if (camera.parent === null && camera.matrixWorldAutoUpdate === true) camera.updateMatrixWorld();
-
-        _viewMatrix.copy(camera.matrixWorldInverse);
-        _viewProjectionMatrix.multiplyMatrices(camera.projectionMatrix, _viewMatrix);
-
-        renderObject(scene, scene, camera);
-        zOrder(scene);
-      };
-
-      this.setSize = function (width, height) {
-        _width = width;
-        _height = height;
-
-        _widthHalf = _width / 2;
-        _heightHalf = _height / 2;
-
-        domElement.style.width = width + "px";
-        domElement.style.height = height + "px";
-      };
-
-      function renderObject(object, scene, camera) {
-        if (object.isCSS2DObject) {
-          _vector.setFromMatrixPosition(object.matrixWorld);
-          _vector.applyMatrix4(_viewProjectionMatrix);
-
-          const visible =
-            object.visible === true && _vector.z >= -1 && _vector.z <= 1 && object.layers.test(camera.layers) === true;
-          object.element.style.display = visible === true ? "" : "none";
-
-          if (visible === true) {
-            object.onBeforeRender(_this, scene, camera);
-
-            const element = object.element;
-
-            element.style.transform =
-              "translate(-50%,-50%) translate(" +
-              (_vector.x * _widthHalf + _widthHalf) +
-              "px," +
-              (-_vector.y * _heightHalf + _heightHalf) +
-              "px)";
-
-            if (element.parentNode !== domElement) {
-              domElement.appendChild(element);
-            }
-
-            object.onAfterRender(_this, scene, camera);
-          }
-
-          const objectData = {
-            distanceToCameraSquared: getDistanceToSquared(camera, object),
-          };
-
-          cache.objects.set(object, objectData);
-        }
-
-        for (let i = 0, l = object.children.length; i < l; i++) {
-          renderObject(object.children[i], scene, camera);
-        }
-      }
-
-      function getDistanceToSquared(object1, object2) {
-        _a.setFromMatrixPosition(object1.matrixWorld);
-        _b.setFromMatrixPosition(object2.matrixWorld);
-
-        return _a.distanceToSquared(_b);
-      }
-
-      function filterAndFlatten(scene) {
-        const result = [];
-
-        scene.traverse(function (object) {
-          if (object.isCSS2DObject) result.push(object);
-        });
-
-        return result;
-      }
-
-      function zOrder(scene) {
-        const sorted = filterAndFlatten(scene).sort(function (a, b) {
-          if (a.renderOrder !== b.renderOrder) {
-            return b.renderOrder - a.renderOrder;
-          }
-
-          const distanceA = cache.objects.get(a).distanceToCameraSquared;
-          const distanceB = cache.objects.get(b).distanceToCameraSquared;
-
-          return distanceA - distanceB;
-        });
-
-        const zMax = sorted.length;
-
-        for (let i = 0, l = sorted.length; i < l; i++) {
-          sorted[i].element.style.zIndex = zMax - i;
-        }
-      }
-    }
-  }
-
-  THREE.CSS2DRenderer = CSS2DRenderer;
-  THREE.CSS2DObject = CSS2DObject;
-})();

+ 0 - 315
nicegui/elements/lib/CSS3DRenderer.js

@@ -1,315 +0,0 @@
-(function () {
-  const _position = new THREE.Vector3();
-  const _quaternion = new THREE.Quaternion();
-  const _scale = new THREE.Vector3();
-
-  class CSS3DObject extends THREE.Object3D {
-    constructor(element = document.createElement("div")) {
-      super();
-
-      this.isCSS3DObject = true;
-
-      this.element = element;
-      this.element.style.position = "absolute";
-      this.element.style.pointerEvents = "auto";
-      this.element.style.userSelect = "none";
-
-      this.element.setAttribute("draggable", false);
-
-      this.addEventListener("removed", function () {
-        this.traverse(function (object) {
-          if (object.element instanceof Element && object.element.parentNode !== null) {
-            object.element.parentNode.removeChild(object.element);
-          }
-        });
-      });
-    }
-
-    copy(source, recursive) {
-      super.copy(source, recursive);
-
-      this.element = source.element.cloneNode(true);
-
-      return this;
-    }
-  }
-
-  class CSS3DSprite extends CSS3DObject {
-    constructor(element) {
-      super(element);
-
-      this.isCSS3DSprite = true;
-
-      this.rotation2D = 0;
-    }
-
-    copy(source, recursive) {
-      super.copy(source, recursive);
-
-      this.rotation2D = source.rotation2D;
-
-      return this;
-    }
-  }
-
-  //
-
-  const _matrix = new THREE.Matrix4();
-  const _matrix2 = new THREE.Matrix4();
-
-  class CSS3DRenderer {
-    constructor(parameters = {}) {
-      const _this = this;
-
-      let _width, _height;
-      let _widthHalf, _heightHalf;
-
-      const cache = {
-        camera: { fov: 0, style: "" },
-        objects: new WeakMap(),
-      };
-
-      const domElement = parameters.element !== undefined ? parameters.element : document.createElement("div");
-
-      domElement.style.overflow = "hidden";
-
-      this.domElement = domElement;
-
-      const viewElement = document.createElement("div");
-      viewElement.style.transformOrigin = "0 0";
-      viewElement.style.pointerEvents = "none";
-      domElement.appendChild(viewElement);
-
-      const cameraElement = document.createElement("div");
-
-      cameraElement.style.transformStyle = "preserve-3d";
-
-      viewElement.appendChild(cameraElement);
-
-      this.getSize = function () {
-        return {
-          width: _width,
-          height: _height,
-        };
-      };
-
-      this.render = function (scene, camera) {
-        const fov = camera.projectionMatrix.elements[5] * _heightHalf;
-
-        if (cache.camera.fov !== fov) {
-          viewElement.style.perspective = camera.isPerspectiveCamera ? fov + "px" : "";
-          cache.camera.fov = fov;
-        }
-
-        if (camera.view && camera.view.enabled) {
-          // view offset
-          viewElement.style.transform = `translate( ${-camera.view.offsetX * (_width / camera.view.width)}px, ${
-            -camera.view.offsetY * (_height / camera.view.height)
-          }px )`;
-          // view fullWidth and fullHeight, view width and height
-          viewElement.style.transform += `scale( ${camera.view.fullWidth / camera.view.width}, ${
-            camera.view.fullHeight / camera.view.height
-          } )`;
-        } else {
-          viewElement.style.transform = "";
-        }
-
-        if (scene.matrixWorldAutoUpdate === true) scene.updateMatrixWorld();
-        if (camera.parent === null && camera.matrixWorldAutoUpdate === true) camera.updateMatrixWorld();
-
-        let tx, ty;
-
-        if (camera.isOrthographicCamera) {
-          tx = -(camera.right + camera.left) / 2;
-          ty = (camera.top + camera.bottom) / 2;
-        }
-
-        const scaleByViewOffset = camera.view && camera.view.enabled ? camera.view.height / camera.view.fullHeight : 1;
-        const cameraCSSMatrix = camera.isOrthographicCamera
-          ? `scale( ${scaleByViewOffset} )` +
-            "scale(" +
-            fov +
-            ")" +
-            "translate(" +
-            epsilon(tx) +
-            "px," +
-            epsilon(ty) +
-            "px)" +
-            getCameraCSSMatrix(camera.matrixWorldInverse)
-          : `scale( ${scaleByViewOffset} )` +
-            "translateZ(" +
-            fov +
-            "px)" +
-            getCameraCSSMatrix(camera.matrixWorldInverse);
-
-        const style = cameraCSSMatrix + "translate(" + _widthHalf + "px," + _heightHalf + "px)";
-
-        if (cache.camera.style !== style) {
-          cameraElement.style.transform = style;
-
-          cache.camera.style = style;
-        }
-
-        renderObject(scene, scene, camera, cameraCSSMatrix);
-      };
-
-      this.setSize = function (width, height) {
-        _width = width;
-        _height = height;
-        _widthHalf = _width / 2;
-        _heightHalf = _height / 2;
-
-        domElement.style.width = width + "px";
-        domElement.style.height = height + "px";
-
-        viewElement.style.width = width + "px";
-        viewElement.style.height = height + "px";
-        cameraElement.style.width = width + "px";
-        cameraElement.style.height = height + "px";
-      };
-
-      function epsilon(value) {
-        return Math.abs(value) < 1e-10 ? 0 : value;
-      }
-
-      function getCameraCSSMatrix(matrix) {
-        const elements = matrix.elements;
-
-        return (
-          "matrix3d(" +
-          epsilon(elements[0]) +
-          "," +
-          epsilon(-elements[1]) +
-          "," +
-          epsilon(elements[2]) +
-          "," +
-          epsilon(elements[3]) +
-          "," +
-          epsilon(elements[4]) +
-          "," +
-          epsilon(-elements[5]) +
-          "," +
-          epsilon(elements[6]) +
-          "," +
-          epsilon(elements[7]) +
-          "," +
-          epsilon(elements[8]) +
-          "," +
-          epsilon(-elements[9]) +
-          "," +
-          epsilon(elements[10]) +
-          "," +
-          epsilon(elements[11]) +
-          "," +
-          epsilon(elements[12]) +
-          "," +
-          epsilon(-elements[13]) +
-          "," +
-          epsilon(elements[14]) +
-          "," +
-          epsilon(elements[15]) +
-          ")"
-        );
-      }
-
-      function getObjectCSSMatrix(matrix) {
-        const elements = matrix.elements;
-        const matrix3d =
-          "matrix3d(" +
-          epsilon(elements[0]) +
-          "," +
-          epsilon(elements[1]) +
-          "," +
-          epsilon(elements[2]) +
-          "," +
-          epsilon(elements[3]) +
-          "," +
-          epsilon(-elements[4]) +
-          "," +
-          epsilon(-elements[5]) +
-          "," +
-          epsilon(-elements[6]) +
-          "," +
-          epsilon(-elements[7]) +
-          "," +
-          epsilon(elements[8]) +
-          "," +
-          epsilon(elements[9]) +
-          "," +
-          epsilon(elements[10]) +
-          "," +
-          epsilon(elements[11]) +
-          "," +
-          epsilon(elements[12]) +
-          "," +
-          epsilon(elements[13]) +
-          "," +
-          epsilon(elements[14]) +
-          "," +
-          epsilon(elements[15]) +
-          ")";
-
-        return "translate(-50%,-50%)" + matrix3d;
-      }
-
-      function renderObject(object, scene, camera, cameraCSSMatrix) {
-        if (object.isCSS3DObject) {
-          const visible = object.visible === true && object.layers.test(camera.layers) === true;
-          object.element.style.display = visible === true ? "" : "none";
-
-          if (visible === true) {
-            object.onBeforeRender(_this, scene, camera);
-
-            let style;
-
-            if (object.isCSS3DSprite) {
-              // http://swiftcoder.wordpress.com/2008/11/25/constructing-a-billboard-matrix/
-
-              _matrix.copy(camera.matrixWorldInverse);
-              _matrix.transpose();
-
-              if (object.rotation2D !== 0) _matrix.multiply(_matrix2.makeRotationZ(object.rotation2D));
-
-              object.matrixWorld.decompose(_position, _quaternion, _scale);
-              _matrix.setPosition(_position);
-              _matrix.scale(_scale);
-
-              _matrix.elements[3] = 0;
-              _matrix.elements[7] = 0;
-              _matrix.elements[11] = 0;
-              _matrix.elements[15] = 1;
-
-              style = getObjectCSSMatrix(_matrix);
-            } else {
-              style = getObjectCSSMatrix(object.matrixWorld);
-            }
-
-            const element = object.element;
-            const cachedObject = cache.objects.get(object);
-
-            if (cachedObject === undefined || cachedObject.style !== style) {
-              element.style.transform = style;
-
-              const objectData = { style: style };
-              cache.objects.set(object, objectData);
-            }
-
-            if (element.parentNode !== cameraElement) {
-              cameraElement.appendChild(element);
-            }
-
-            object.onAfterRender(_this, scene, camera);
-          }
-        }
-
-        for (let i = 0, l = object.children.length; i < l; i++) {
-          renderObject(object.children[i], scene, camera, cameraCSSMatrix);
-        }
-      }
-    }
-  }
-
-  THREE.CSS3DObject = CSS3DObject;
-  THREE.CSS3DSprite = CSS3DSprite;
-  THREE.CSS3DRenderer = CSS3DRenderer;
-})();

+ 0 - 1012
nicegui/elements/lib/OrbitControls.js

@@ -1,1012 +0,0 @@
-(function () {
-  // This set of controls performs orbiting, dollying (zooming), and panning.
-  // Unlike TrackballControls, it maintains the "up" direction object.up (+Y by default).
-  //
-  //    Orbit - left mouse / touch: one-finger move
-  //    Zoom - middle mouse, or mousewheel / touch: two-finger spread or squish
-  //    Pan - right mouse, or left mouse + ctrl/meta/shiftKey, or arrow keys / touch: two-finger move
-
-  const _changeEvent = { type: "change" };
-  const _startEvent = { type: "start" };
-  const _endEvent = { type: "end" };
-
-  class OrbitControls extends THREE.EventDispatcher {
-    constructor(object, domElement) {
-      super();
-
-      this.object = object;
-      this.domElement = domElement;
-      this.domElement.style.touchAction = "none"; // disable touch scroll
-
-      // Set to false to disable this control
-      this.enabled = true;
-
-      // "target" sets the location of focus, where the object orbits around
-      this.target = new THREE.Vector3();
-
-      // How far you can dolly in and out ( PerspectiveCamera only )
-      this.minDistance = 0;
-      this.maxDistance = Infinity;
-
-      // How far you can zoom in and out ( OrthographicCamera only )
-      this.minZoom = 0;
-      this.maxZoom = Infinity;
-
-      // How far you can orbit vertically, upper and lower limits.
-      // Range is 0 to Math.PI radians.
-      this.minPolarAngle = 0; // radians
-      this.maxPolarAngle = Math.PI; // radians
-
-      // How far you can orbit horizontally, upper and lower limits.
-      // If set, the interval [ min, max ] must be a sub-interval of [ - 2 PI, 2 PI ], with ( max - min < 2 PI )
-      this.minAzimuthAngle = -Infinity; // radians
-      this.maxAzimuthAngle = Infinity; // radians
-
-      // Set to true to enable damping (inertia)
-      // If damping is enabled, you must call controls.update() in your animation loop
-      this.enableDamping = false;
-      this.dampingFactor = 0.05;
-
-      // This option actually enables dollying in and out; left as "zoom" for backwards compatibility.
-      // Set to false to disable zooming
-      this.enableZoom = true;
-      this.zoomSpeed = 1.0;
-
-      // Set to false to disable rotating
-      this.enableRotate = true;
-      this.rotateSpeed = 1.0;
-
-      // Set to false to disable panning
-      this.enablePan = true;
-      this.panSpeed = 1.0;
-      this.screenSpacePanning = true; // if false, pan orthogonal to world-space direction camera.up
-      this.keyPanSpeed = 7.0; // pixels moved per arrow key push
-
-      // Set to true to automatically rotate around the target
-      // If auto-rotate is enabled, you must call controls.update() in your animation loop
-      this.autoRotate = false;
-      this.autoRotateSpeed = 2.0; // 30 seconds per orbit when fps is 60
-
-      // The four arrow keys
-      this.keys = { LEFT: "ArrowLeft", UP: "ArrowUp", RIGHT: "ArrowRight", BOTTOM: "ArrowDown" };
-
-      // Mouse buttons
-      this.mouseButtons = { LEFT: THREE.MOUSE.ROTATE, MIDDLE: THREE.MOUSE.DOLLY, RIGHT: THREE.MOUSE.PAN };
-
-      // Touch fingers
-      this.touches = { ONE: THREE.TOUCH.ROTATE, TWO: THREE.TOUCH.DOLLY_PAN };
-
-      // for reset
-      this.target0 = this.target.clone();
-      this.position0 = this.object.position.clone();
-      this.zoom0 = this.object.zoom;
-
-      // the target DOM element for key events
-      this._domElementKeyEvents = null;
-
-      //
-      // public methods
-      //
-
-      this.getPolarAngle = function () {
-        return spherical.phi;
-      };
-
-      this.getAzimuthalAngle = function () {
-        return spherical.theta;
-      };
-
-      this.getDistance = function () {
-        return this.object.position.distanceTo(this.target);
-      };
-
-      this.listenToKeyEvents = function (domElement) {
-        domElement.addEventListener("keydown", onKeyDown);
-        this._domElementKeyEvents = domElement;
-      };
-
-      this.stopListenToKeyEvents = function () {
-        this._domElementKeyEvents.removeEventListener("keydown", onKeyDown);
-        this._domElementKeyEvents = null;
-      };
-
-      this.saveState = function () {
-        scope.target0.copy(scope.target);
-        scope.position0.copy(scope.object.position);
-        scope.zoom0 = scope.object.zoom;
-      };
-
-      this.reset = function () {
-        scope.target.copy(scope.target0);
-        scope.object.position.copy(scope.position0);
-        scope.object.zoom = scope.zoom0;
-
-        scope.object.updateProjectionMatrix();
-        scope.dispatchEvent(_changeEvent);
-
-        scope.update();
-
-        state = STATE.NONE;
-      };
-
-      // this method is exposed, but perhaps it would be better if we can make it private...
-      this.update = (function () {
-        const offset = new THREE.Vector3();
-
-        // so camera.up is the orbit axis
-        const quat = new THREE.Quaternion().setFromUnitVectors(object.up, new THREE.Vector3(0, 1, 0));
-        const quatInverse = quat.clone().invert();
-
-        const lastPosition = new THREE.Vector3();
-        const lastQuaternion = new THREE.Quaternion();
-
-        const twoPI = 2 * Math.PI;
-
-        return function update() {
-          const position = scope.object.position;
-
-          offset.copy(position).sub(scope.target);
-
-          // rotate offset to "y-axis-is-up" space
-          offset.applyQuaternion(quat);
-
-          // angle from z-axis around y-axis
-          spherical.setFromVector3(offset);
-
-          if (scope.autoRotate && state === STATE.NONE) {
-            rotateLeft(getAutoRotationAngle());
-          }
-
-          if (scope.enableDamping) {
-            spherical.theta += sphericalDelta.theta * scope.dampingFactor;
-            spherical.phi += sphericalDelta.phi * scope.dampingFactor;
-          } else {
-            spherical.theta += sphericalDelta.theta;
-            spherical.phi += sphericalDelta.phi;
-          }
-
-          // restrict theta to be between desired limits
-
-          let min = scope.minAzimuthAngle;
-          let max = scope.maxAzimuthAngle;
-
-          if (isFinite(min) && isFinite(max)) {
-            if (min < -Math.PI) min += twoPI;
-            else if (min > Math.PI) min -= twoPI;
-
-            if (max < -Math.PI) max += twoPI;
-            else if (max > Math.PI) max -= twoPI;
-
-            if (min <= max) {
-              spherical.theta = Math.max(min, Math.min(max, spherical.theta));
-            } else {
-              spherical.theta =
-                spherical.theta > (min + max) / 2 ? Math.max(min, spherical.theta) : Math.min(max, spherical.theta);
-            }
-          }
-
-          // restrict phi to be between desired limits
-          spherical.phi = Math.max(scope.minPolarAngle, Math.min(scope.maxPolarAngle, spherical.phi));
-
-          spherical.makeSafe();
-
-          spherical.radius *= scale;
-
-          // restrict radius to be between desired limits
-          spherical.radius = Math.max(scope.minDistance, Math.min(scope.maxDistance, spherical.radius));
-
-          // move target to panned location
-
-          if (scope.enableDamping === true) {
-            scope.target.addScaledVector(panOffset, scope.dampingFactor);
-          } else {
-            scope.target.add(panOffset);
-          }
-
-          offset.setFromSpherical(spherical);
-
-          // rotate offset back to "camera-up-vector-is-up" space
-          offset.applyQuaternion(quatInverse);
-
-          position.copy(scope.target).add(offset);
-
-          scope.object.lookAt(scope.target);
-
-          if (scope.enableDamping === true) {
-            sphericalDelta.theta *= 1 - scope.dampingFactor;
-            sphericalDelta.phi *= 1 - scope.dampingFactor;
-
-            panOffset.multiplyScalar(1 - scope.dampingFactor);
-          } else {
-            sphericalDelta.set(0, 0, 0);
-
-            panOffset.set(0, 0, 0);
-          }
-
-          scale = 1;
-
-          // update condition is:
-          // min(camera displacement, camera rotation in radians)^2 > EPS
-          // using small-angle approximation cos(x/2) = 1 - x^2 / 8
-
-          if (
-            zoomChanged ||
-            lastPosition.distanceToSquared(scope.object.position) > EPS ||
-            8 * (1 - lastQuaternion.dot(scope.object.quaternion)) > EPS
-          ) {
-            scope.dispatchEvent(_changeEvent);
-
-            lastPosition.copy(scope.object.position);
-            lastQuaternion.copy(scope.object.quaternion);
-            zoomChanged = false;
-
-            return true;
-          }
-
-          return false;
-        };
-      })();
-
-      this.dispose = function () {
-        scope.domElement.removeEventListener("contextmenu", onContextMenu);
-
-        scope.domElement.removeEventListener("pointerdown", onPointerDown);
-        scope.domElement.removeEventListener("pointercancel", onPointerCancel);
-        scope.domElement.removeEventListener("wheel", onMouseWheel);
-
-        scope.domElement.removeEventListener("pointermove", onPointerMove);
-        scope.domElement.removeEventListener("pointerup", onPointerUp);
-
-        if (scope._domElementKeyEvents !== null) {
-          scope._domElementKeyEvents.removeEventListener("keydown", onKeyDown);
-          scope._domElementKeyEvents = null;
-        }
-
-        //scope.dispatchEvent( { type: 'dispose' } ); // should this be added here?
-      };
-
-      //
-      // internals
-      //
-
-      const scope = this;
-
-      const STATE = {
-        NONE: -1,
-        ROTATE: 0,
-        DOLLY: 1,
-        PAN: 2,
-        TOUCH_ROTATE: 3,
-        TOUCH_PAN: 4,
-        TOUCH_DOLLY_PAN: 5,
-        TOUCH_DOLLY_ROTATE: 6,
-      };
-
-      let state = STATE.NONE;
-
-      const EPS = 0.000001;
-
-      // current position in spherical coordinates
-      const spherical = new THREE.Spherical();
-      const sphericalDelta = new THREE.Spherical();
-
-      let scale = 1;
-      const panOffset = new THREE.Vector3();
-      let zoomChanged = false;
-
-      const rotateStart = new THREE.Vector2();
-      const rotateEnd = new THREE.Vector2();
-      const rotateDelta = new THREE.Vector2();
-
-      const panStart = new THREE.Vector2();
-      const panEnd = new THREE.Vector2();
-      const panDelta = new THREE.Vector2();
-
-      const dollyStart = new THREE.Vector2();
-      const dollyEnd = new THREE.Vector2();
-      const dollyDelta = new THREE.Vector2();
-
-      const pointers = [];
-      const pointerPositions = {};
-
-      function getAutoRotationAngle() {
-        return ((2 * Math.PI) / 60 / 60) * scope.autoRotateSpeed;
-      }
-
-      function getZoomScale() {
-        return Math.pow(0.95, scope.zoomSpeed);
-      }
-
-      function rotateLeft(angle) {
-        sphericalDelta.theta -= angle;
-      }
-
-      function rotateUp(angle) {
-        sphericalDelta.phi -= angle;
-      }
-
-      const panLeft = (function () {
-        const v = new THREE.Vector3();
-
-        return function panLeft(distance, objectMatrix) {
-          v.setFromMatrixColumn(objectMatrix, 0); // get X column of objectMatrix
-          v.multiplyScalar(-distance);
-
-          panOffset.add(v);
-        };
-      })();
-
-      const panUp = (function () {
-        const v = new THREE.Vector3();
-
-        return function panUp(distance, objectMatrix) {
-          if (scope.screenSpacePanning === true) {
-            v.setFromMatrixColumn(objectMatrix, 1);
-          } else {
-            v.setFromMatrixColumn(objectMatrix, 0);
-            v.crossVectors(scope.object.up, v);
-          }
-
-          v.multiplyScalar(distance);
-
-          panOffset.add(v);
-        };
-      })();
-
-      // deltaX and deltaY are in pixels; right and down are positive
-      const pan = (function () {
-        const offset = new THREE.Vector3();
-
-        return function pan(deltaX, deltaY) {
-          const element = scope.domElement;
-
-          if (scope.object.isPerspectiveCamera) {
-            // perspective
-            const position = scope.object.position;
-            offset.copy(position).sub(scope.target);
-            let targetDistance = offset.length();
-
-            // half of the fov is center to top of screen
-            targetDistance *= Math.tan(((scope.object.fov / 2) * Math.PI) / 180.0);
-
-            // we use only clientHeight here so aspect ratio does not distort speed
-            panLeft((2 * deltaX * targetDistance) / element.clientHeight, scope.object.matrix);
-            panUp((2 * deltaY * targetDistance) / element.clientHeight, scope.object.matrix);
-          } else if (scope.object.isOrthographicCamera) {
-            // orthographic
-            panLeft(
-              (deltaX * (scope.object.right - scope.object.left)) / scope.object.zoom / element.clientWidth,
-              scope.object.matrix
-            );
-            panUp(
-              (deltaY * (scope.object.top - scope.object.bottom)) / scope.object.zoom / element.clientHeight,
-              scope.object.matrix
-            );
-          } else {
-            // camera neither orthographic nor perspective
-            console.warn("WARNING: OrbitControls.js encountered an unknown camera type - pan disabled.");
-            scope.enablePan = false;
-          }
-        };
-      })();
-
-      function dollyOut(dollyScale) {
-        if (scope.object.isPerspectiveCamera) {
-          scale /= dollyScale;
-        } else if (scope.object.isOrthographicCamera) {
-          scope.object.zoom = Math.max(scope.minZoom, Math.min(scope.maxZoom, scope.object.zoom * dollyScale));
-          scope.object.updateProjectionMatrix();
-          zoomChanged = true;
-        } else {
-          console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled.");
-          scope.enableZoom = false;
-        }
-      }
-
-      function dollyIn(dollyScale) {
-        if (scope.object.isPerspectiveCamera) {
-          scale *= dollyScale;
-        } else if (scope.object.isOrthographicCamera) {
-          scope.object.zoom = Math.max(scope.minZoom, Math.min(scope.maxZoom, scope.object.zoom / dollyScale));
-          scope.object.updateProjectionMatrix();
-          zoomChanged = true;
-        } else {
-          console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled.");
-          scope.enableZoom = false;
-        }
-      }
-
-      //
-      // event callbacks - update the object state
-      //
-
-      function handleMouseDownRotate(event) {
-        rotateStart.set(event.clientX, event.clientY);
-      }
-
-      function handleMouseDownDolly(event) {
-        dollyStart.set(event.clientX, event.clientY);
-      }
-
-      function handleMouseDownPan(event) {
-        panStart.set(event.clientX, event.clientY);
-      }
-
-      function handleMouseMoveRotate(event) {
-        rotateEnd.set(event.clientX, event.clientY);
-
-        rotateDelta.subVectors(rotateEnd, rotateStart).multiplyScalar(scope.rotateSpeed);
-
-        const element = scope.domElement;
-
-        rotateLeft((2 * Math.PI * rotateDelta.x) / element.clientHeight); // yes, height
-
-        rotateUp((2 * Math.PI * rotateDelta.y) / element.clientHeight);
-
-        rotateStart.copy(rotateEnd);
-
-        scope.update();
-      }
-
-      function handleMouseMoveDolly(event) {
-        dollyEnd.set(event.clientX, event.clientY);
-
-        dollyDelta.subVectors(dollyEnd, dollyStart);
-
-        if (dollyDelta.y > 0) {
-          dollyOut(getZoomScale());
-        } else if (dollyDelta.y < 0) {
-          dollyIn(getZoomScale());
-        }
-
-        dollyStart.copy(dollyEnd);
-
-        scope.update();
-      }
-
-      function handleMouseMovePan(event) {
-        panEnd.set(event.clientX, event.clientY);
-
-        panDelta.subVectors(panEnd, panStart).multiplyScalar(scope.panSpeed);
-
-        pan(panDelta.x, panDelta.y);
-
-        panStart.copy(panEnd);
-
-        scope.update();
-      }
-
-      function handleMouseWheel(event) {
-        if (event.deltaY < 0) {
-          dollyIn(getZoomScale());
-        } else if (event.deltaY > 0) {
-          dollyOut(getZoomScale());
-        }
-
-        scope.update();
-      }
-
-      function handleKeyDown(event) {
-        let needsUpdate = false;
-
-        switch (event.code) {
-          case scope.keys.UP:
-            if (event.ctrlKey || event.metaKey || event.shiftKey) {
-              rotateUp((2 * Math.PI * scope.rotateSpeed) / scope.domElement.clientHeight);
-            } else {
-              pan(0, scope.keyPanSpeed);
-            }
-
-            needsUpdate = true;
-            break;
-
-          case scope.keys.BOTTOM:
-            if (event.ctrlKey || event.metaKey || event.shiftKey) {
-              rotateUp((-2 * Math.PI * scope.rotateSpeed) / scope.domElement.clientHeight);
-            } else {
-              pan(0, -scope.keyPanSpeed);
-            }
-
-            needsUpdate = true;
-            break;
-
-          case scope.keys.LEFT:
-            if (event.ctrlKey || event.metaKey || event.shiftKey) {
-              rotateLeft((2 * Math.PI * scope.rotateSpeed) / scope.domElement.clientHeight);
-            } else {
-              pan(scope.keyPanSpeed, 0);
-            }
-
-            needsUpdate = true;
-            break;
-
-          case scope.keys.RIGHT:
-            if (event.ctrlKey || event.metaKey || event.shiftKey) {
-              rotateLeft((-2 * Math.PI * scope.rotateSpeed) / scope.domElement.clientHeight);
-            } else {
-              pan(-scope.keyPanSpeed, 0);
-            }
-
-            needsUpdate = true;
-            break;
-        }
-
-        if (needsUpdate) {
-          // prevent the browser from scrolling on cursor keys
-          event.preventDefault();
-
-          scope.update();
-        }
-      }
-
-      function handleTouchStartRotate() {
-        if (pointers.length === 1) {
-          rotateStart.set(pointers[0].pageX, pointers[0].pageY);
-        } else {
-          const x = 0.5 * (pointers[0].pageX + pointers[1].pageX);
-          const y = 0.5 * (pointers[0].pageY + pointers[1].pageY);
-
-          rotateStart.set(x, y);
-        }
-      }
-
-      function handleTouchStartPan() {
-        if (pointers.length === 1) {
-          panStart.set(pointers[0].pageX, pointers[0].pageY);
-        } else {
-          const x = 0.5 * (pointers[0].pageX + pointers[1].pageX);
-          const y = 0.5 * (pointers[0].pageY + pointers[1].pageY);
-
-          panStart.set(x, y);
-        }
-      }
-
-      function handleTouchStartDolly() {
-        const dx = pointers[0].pageX - pointers[1].pageX;
-        const dy = pointers[0].pageY - pointers[1].pageY;
-
-        const distance = Math.sqrt(dx * dx + dy * dy);
-
-        dollyStart.set(0, distance);
-      }
-
-      function handleTouchStartDollyPan() {
-        if (scope.enableZoom) handleTouchStartDolly();
-
-        if (scope.enablePan) handleTouchStartPan();
-      }
-
-      function handleTouchStartDollyRotate() {
-        if (scope.enableZoom) handleTouchStartDolly();
-
-        if (scope.enableRotate) handleTouchStartRotate();
-      }
-
-      function handleTouchMoveRotate(event) {
-        if (pointers.length == 1) {
-          rotateEnd.set(event.pageX, event.pageY);
-        } else {
-          const position = getSecondPointerPosition(event);
-
-          const x = 0.5 * (event.pageX + position.x);
-          const y = 0.5 * (event.pageY + position.y);
-
-          rotateEnd.set(x, y);
-        }
-
-        rotateDelta.subVectors(rotateEnd, rotateStart).multiplyScalar(scope.rotateSpeed);
-
-        const element = scope.domElement;
-
-        rotateLeft((2 * Math.PI * rotateDelta.x) / element.clientHeight); // yes, height
-
-        rotateUp((2 * Math.PI * rotateDelta.y) / element.clientHeight);
-
-        rotateStart.copy(rotateEnd);
-      }
-
-      function handleTouchMovePan(event) {
-        if (pointers.length === 1) {
-          panEnd.set(event.pageX, event.pageY);
-        } else {
-          const position = getSecondPointerPosition(event);
-
-          const x = 0.5 * (event.pageX + position.x);
-          const y = 0.5 * (event.pageY + position.y);
-
-          panEnd.set(x, y);
-        }
-
-        panDelta.subVectors(panEnd, panStart).multiplyScalar(scope.panSpeed);
-
-        pan(panDelta.x, panDelta.y);
-
-        panStart.copy(panEnd);
-      }
-
-      function handleTouchMoveDolly(event) {
-        const position = getSecondPointerPosition(event);
-
-        const dx = event.pageX - position.x;
-        const dy = event.pageY - position.y;
-
-        const distance = Math.sqrt(dx * dx + dy * dy);
-
-        dollyEnd.set(0, distance);
-
-        dollyDelta.set(0, Math.pow(dollyEnd.y / dollyStart.y, scope.zoomSpeed));
-
-        dollyOut(dollyDelta.y);
-
-        dollyStart.copy(dollyEnd);
-      }
-
-      function handleTouchMoveDollyPan(event) {
-        if (scope.enableZoom) handleTouchMoveDolly(event);
-
-        if (scope.enablePan) handleTouchMovePan(event);
-      }
-
-      function handleTouchMoveDollyRotate(event) {
-        if (scope.enableZoom) handleTouchMoveDolly(event);
-
-        if (scope.enableRotate) handleTouchMoveRotate(event);
-      }
-
-      //
-      // event handlers - FSM: listen for events and reset state
-      //
-
-      function onPointerDown(event) {
-        if (scope.enabled === false) return;
-
-        if (pointers.length === 0) {
-          scope.domElement.setPointerCapture(event.pointerId);
-
-          scope.domElement.addEventListener("pointermove", onPointerMove);
-          scope.domElement.addEventListener("pointerup", onPointerUp);
-        }
-
-        //
-
-        addPointer(event);
-
-        if (event.pointerType === "touch") {
-          onTouchStart(event);
-        } else {
-          onMouseDown(event);
-        }
-      }
-
-      function onPointerMove(event) {
-        if (scope.enabled === false) return;
-
-        if (event.pointerType === "touch") {
-          onTouchMove(event);
-        } else {
-          onMouseMove(event);
-        }
-      }
-
-      function onPointerUp(event) {
-        removePointer(event);
-
-        if (pointers.length === 0) {
-          scope.domElement.releasePointerCapture(event.pointerId);
-
-          scope.domElement.removeEventListener("pointermove", onPointerMove);
-          scope.domElement.removeEventListener("pointerup", onPointerUp);
-        }
-
-        scope.dispatchEvent(_endEvent);
-
-        state = STATE.NONE;
-      }
-
-      function onPointerCancel(event) {
-        removePointer(event);
-      }
-
-      function onMouseDown(event) {
-        let mouseAction;
-
-        switch (event.button) {
-          case 0:
-            mouseAction = scope.mouseButtons.LEFT;
-            break;
-
-          case 1:
-            mouseAction = scope.mouseButtons.MIDDLE;
-            break;
-
-          case 2:
-            mouseAction = scope.mouseButtons.RIGHT;
-            break;
-
-          default:
-            mouseAction = -1;
-        }
-
-        switch (mouseAction) {
-          case THREE.MOUSE.DOLLY:
-            if (scope.enableZoom === false) return;
-
-            handleMouseDownDolly(event);
-
-            state = STATE.DOLLY;
-
-            break;
-
-          case THREE.MOUSE.ROTATE:
-            if (event.ctrlKey || event.metaKey || event.shiftKey) {
-              if (scope.enablePan === false) return;
-
-              handleMouseDownPan(event);
-
-              state = STATE.PAN;
-            } else {
-              if (scope.enableRotate === false) return;
-
-              handleMouseDownRotate(event);
-
-              state = STATE.ROTATE;
-            }
-
-            break;
-
-          case THREE.MOUSE.PAN:
-            if (event.ctrlKey || event.metaKey || event.shiftKey) {
-              if (scope.enableRotate === false) return;
-
-              handleMouseDownRotate(event);
-
-              state = STATE.ROTATE;
-            } else {
-              if (scope.enablePan === false) return;
-
-              handleMouseDownPan(event);
-
-              state = STATE.PAN;
-            }
-
-            break;
-
-          default:
-            state = STATE.NONE;
-        }
-
-        if (state !== STATE.NONE) {
-          scope.dispatchEvent(_startEvent);
-        }
-      }
-
-      function onMouseMove(event) {
-        switch (state) {
-          case STATE.ROTATE:
-            if (scope.enableRotate === false) return;
-
-            handleMouseMoveRotate(event);
-
-            break;
-
-          case STATE.DOLLY:
-            if (scope.enableZoom === false) return;
-
-            handleMouseMoveDolly(event);
-
-            break;
-
-          case STATE.PAN:
-            if (scope.enablePan === false) return;
-
-            handleMouseMovePan(event);
-
-            break;
-        }
-      }
-
-      function onMouseWheel(event) {
-        if (scope.enabled === false || scope.enableZoom === false || state !== STATE.NONE) return;
-
-        event.preventDefault();
-
-        scope.dispatchEvent(_startEvent);
-
-        handleMouseWheel(event);
-
-        scope.dispatchEvent(_endEvent);
-      }
-
-      function onKeyDown(event) {
-        if (scope.enabled === false || scope.enablePan === false) return;
-
-        handleKeyDown(event);
-      }
-
-      function onTouchStart(event) {
-        trackPointer(event);
-
-        switch (pointers.length) {
-          case 1:
-            switch (scope.touches.ONE) {
-              case THREE.TOUCH.ROTATE:
-                if (scope.enableRotate === false) return;
-
-                handleTouchStartRotate();
-
-                state = STATE.TOUCH_ROTATE;
-
-                break;
-
-              case THREE.TOUCH.PAN:
-                if (scope.enablePan === false) return;
-
-                handleTouchStartPan();
-
-                state = STATE.TOUCH_PAN;
-
-                break;
-
-              default:
-                state = STATE.NONE;
-            }
-
-            break;
-
-          case 2:
-            switch (scope.touches.TWO) {
-              case THREE.TOUCH.DOLLY_PAN:
-                if (scope.enableZoom === false && scope.enablePan === false) return;
-
-                handleTouchStartDollyPan();
-
-                state = STATE.TOUCH_DOLLY_PAN;
-
-                break;
-
-              case THREE.TOUCH.DOLLY_ROTATE:
-                if (scope.enableZoom === false && scope.enableRotate === false) return;
-
-                handleTouchStartDollyRotate();
-
-                state = STATE.TOUCH_DOLLY_ROTATE;
-
-                break;
-
-              default:
-                state = STATE.NONE;
-            }
-
-            break;
-
-          default:
-            state = STATE.NONE;
-        }
-
-        if (state !== STATE.NONE) {
-          scope.dispatchEvent(_startEvent);
-        }
-      }
-
-      function onTouchMove(event) {
-        trackPointer(event);
-
-        switch (state) {
-          case STATE.TOUCH_ROTATE:
-            if (scope.enableRotate === false) return;
-
-            handleTouchMoveRotate(event);
-
-            scope.update();
-
-            break;
-
-          case STATE.TOUCH_PAN:
-            if (scope.enablePan === false) return;
-
-            handleTouchMovePan(event);
-
-            scope.update();
-
-            break;
-
-          case STATE.TOUCH_DOLLY_PAN:
-            if (scope.enableZoom === false && scope.enablePan === false) return;
-
-            handleTouchMoveDollyPan(event);
-
-            scope.update();
-
-            break;
-
-          case STATE.TOUCH_DOLLY_ROTATE:
-            if (scope.enableZoom === false && scope.enableRotate === false) return;
-
-            handleTouchMoveDollyRotate(event);
-
-            scope.update();
-
-            break;
-
-          default:
-            state = STATE.NONE;
-        }
-      }
-
-      function onContextMenu(event) {
-        if (scope.enabled === false) return;
-
-        event.preventDefault();
-      }
-
-      function addPointer(event) {
-        pointers.push(event);
-      }
-
-      function removePointer(event) {
-        delete pointerPositions[event.pointerId];
-
-        for (let i = 0; i < pointers.length; i++) {
-          if (pointers[i].pointerId == event.pointerId) {
-            pointers.splice(i, 1);
-            return;
-          }
-        }
-      }
-
-      function trackPointer(event) {
-        let position = pointerPositions[event.pointerId];
-
-        if (position === undefined) {
-          position = new THREE.Vector2();
-          pointerPositions[event.pointerId] = position;
-        }
-
-        position.set(event.pageX, event.pageY);
-      }
-
-      function getSecondPointerPosition(event) {
-        const pointer = event.pointerId === pointers[0].pointerId ? pointers[1] : pointers[0];
-
-        return pointerPositions[pointer.pointerId];
-      }
-
-      //
-
-      scope.domElement.addEventListener("contextmenu", onContextMenu);
-
-      scope.domElement.addEventListener("pointerdown", onPointerDown);
-      scope.domElement.addEventListener("pointercancel", onPointerCancel);
-      scope.domElement.addEventListener("wheel", onMouseWheel, { passive: false });
-
-      // force an update at start
-
-      this.update();
-    }
-  }
-
-  // This set of controls performs orbiting, dollying (zooming), and panning.
-  // Unlike TrackballControls, it maintains the "up" direction object.up (+Y by default).
-  // This is very similar to OrbitControls, another set of touch behavior
-  //
-  //    Orbit - right mouse, or left mouse + ctrl/meta/shiftKey / touch: two-finger rotate
-  //    Zoom - middle mouse, or mousewheel / touch: two-finger spread or squish
-  //    Pan - left mouse, or arrow keys / touch: one-finger move
-
-  class MapControls extends OrbitControls {
-    constructor(object, domElement) {
-      super(object, domElement);
-
-      this.screenSpacePanning = false; // pan orthogonal to world-space direction camera.up
-
-      this.mouseButtons.LEFT = THREE.MOUSE.PAN;
-      this.mouseButtons.RIGHT = THREE.MOUSE.ROTATE;
-
-      this.touches.ONE = THREE.TOUCH.PAN;
-      this.touches.TWO = THREE.TOUCH.DOLLY_ROTATE;
-    }
-  }
-
-  THREE.MapControls = MapControls;
-  THREE.OrbitControls = OrbitControls;
-})();

+ 0 - 327
nicegui/elements/lib/STLLoader.js

@@ -1,327 +0,0 @@
-(function () {
-  /**
-   * Description: A THREE loader for STL ASCII files, as created by Solidworks and other CAD programs.
-   *
-   * Supports both binary and ASCII encoded files, with automatic detection of type.
-   *
-   * The loader returns a non-indexed buffer geometry.
-   *
-   * Limitations:
-   *  Binary decoding supports "Magics" color format (http://en.wikipedia.org/wiki/STL_(file_format)#Color_in_binary_STL).
-   *  There is perhaps some question as to how valid it is to always assume little-endian-ness.
-   *  ASCII decoding assumes file is UTF-8.
-   *
-   * Usage:
-   *  const loader = new STLLoader();
-   *  loader.load( './models/stl/slotted_disk.stl', function ( geometry ) {
-   *    scene.add( new THREE.Mesh( geometry ) );
-   *  });
-   *
-   * For binary STLs geometry might contain colors for vertices. To use it:
-   *  // use the same code to load STL as above
-   *  if (geometry.hasColors) {
-   *    material = new THREE.MeshPhongMaterial({ opacity: geometry.alpha, vertexColors: true });
-   *  } else { .... }
-   *  const mesh = new THREE.Mesh( geometry, material );
-   *
-   * For ASCII STLs containing multiple solids, each solid is assigned to a different group.
-   * Groups can be used to assign a different color by defining an array of materials with the same length of
-   * geometry.groups and passing it to the Mesh constructor:
-   *
-   * const mesh = new THREE.Mesh( geometry, material );
-   *
-   * For example:
-   *
-   *  const materials = [];
-   *  const nGeometryGroups = geometry.groups.length;
-   *
-   *  const colorMap = ...; // Some logic to index colors.
-   *
-   *  for (let i = 0; i < nGeometryGroups; i++) {
-   *
-   *		const material = new THREE.MeshPhongMaterial({
-   *			color: colorMap[i],
-   *			wireframe: false
-   *		});
-   *
-   *  }
-   *
-   *  materials.push(material);
-   *  const mesh = new THREE.Mesh(geometry, materials);
-   */
-
-  class STLLoader extends THREE.Loader {
-    constructor(manager) {
-      super(manager);
-    }
-
-    load(url, onLoad, onProgress, onError) {
-      const scope = this;
-
-      const loader = new THREE.FileLoader(this.manager);
-      loader.setPath(this.path);
-      loader.setResponseType("arraybuffer");
-      loader.setRequestHeader(this.requestHeader);
-      loader.setWithCredentials(this.withCredentials);
-
-      loader.load(
-        url,
-        function (text) {
-          try {
-            onLoad(scope.parse(text));
-          } catch (e) {
-            if (onError) {
-              onError(e);
-            } else {
-              console.error(e);
-            }
-
-            scope.manager.itemError(url);
-          }
-        },
-        onProgress,
-        onError
-      );
-    }
-
-    parse(data) {
-      function isBinary(data) {
-        const reader = new DataView(data);
-        const face_size = (32 / 8) * 3 + (32 / 8) * 3 * 3 + 16 / 8;
-        const n_faces = reader.getUint32(80, true);
-        const expect = 80 + 32 / 8 + n_faces * face_size;
-
-        if (expect === reader.byteLength) {
-          return true;
-        }
-
-        // An ASCII STL data must begin with 'solid ' as the first six bytes.
-        // However, ASCII STLs lacking the SPACE after the 'd' are known to be
-        // plentiful.  So, check the first 5 bytes for 'solid'.
-
-        // Several encodings, such as UTF-8, precede the text with up to 5 bytes:
-        // https://en.wikipedia.org/wiki/Byte_order_mark#Byte_order_marks_by_encoding
-        // Search for "solid" to start anywhere after those prefixes.
-
-        // US-ASCII ordinal values for 's', 'o', 'l', 'i', 'd'
-
-        const solid = [115, 111, 108, 105, 100];
-
-        for (let off = 0; off < 5; off++) {
-          // If "solid" text is matched to the current offset, declare it to be an ASCII STL.
-
-          if (matchDataViewAt(solid, reader, off)) return false;
-        }
-
-        // Couldn't find "solid" text at the beginning; it is binary STL.
-
-        return true;
-      }
-
-      function matchDataViewAt(query, reader, offset) {
-        // Check if each byte in query matches the corresponding byte from the current offset
-
-        for (let i = 0, il = query.length; i < il; i++) {
-          if (query[i] !== reader.getUint8(offset + i)) return false;
-        }
-
-        return true;
-      }
-
-      function parseBinary(data) {
-        const reader = new DataView(data);
-        const faces = reader.getUint32(80, true);
-
-        let r,
-          g,
-          b,
-          hasColors = false,
-          colors;
-        let defaultR, defaultG, defaultB, alpha;
-
-        // process STL header
-        // check for default color in header ("COLOR=rgba" sequence).
-
-        for (let index = 0; index < 80 - 10; index++) {
-          if (
-            reader.getUint32(index, false) == 0x434f4c4f /*COLO*/ &&
-            reader.getUint8(index + 4) == 0x52 /*'R'*/ &&
-            reader.getUint8(index + 5) == 0x3d /*'='*/
-          ) {
-            hasColors = true;
-            colors = new Float32Array(faces * 3 * 3);
-
-            defaultR = reader.getUint8(index + 6) / 255;
-            defaultG = reader.getUint8(index + 7) / 255;
-            defaultB = reader.getUint8(index + 8) / 255;
-            alpha = reader.getUint8(index + 9) / 255;
-          }
-        }
-
-        const dataOffset = 84;
-        const faceLength = 12 * 4 + 2;
-
-        const geometry = new THREE.BufferGeometry();
-
-        const vertices = new Float32Array(faces * 3 * 3);
-        const normals = new Float32Array(faces * 3 * 3);
-
-        for (let face = 0; face < faces; face++) {
-          const start = dataOffset + face * faceLength;
-          const normalX = reader.getFloat32(start, true);
-          const normalY = reader.getFloat32(start + 4, true);
-          const normalZ = reader.getFloat32(start + 8, true);
-
-          if (hasColors) {
-            const packedColor = reader.getUint16(start + 48, true);
-
-            if ((packedColor & 0x8000) === 0) {
-              // facet has its own unique color
-
-              r = (packedColor & 0x1f) / 31;
-              g = ((packedColor >> 5) & 0x1f) / 31;
-              b = ((packedColor >> 10) & 0x1f) / 31;
-            } else {
-              r = defaultR;
-              g = defaultG;
-              b = defaultB;
-            }
-          }
-
-          for (let i = 1; i <= 3; i++) {
-            const vertexstart = start + i * 12;
-            const componentIdx = face * 3 * 3 + (i - 1) * 3;
-
-            vertices[componentIdx] = reader.getFloat32(vertexstart, true);
-            vertices[componentIdx + 1] = reader.getFloat32(vertexstart + 4, true);
-            vertices[componentIdx + 2] = reader.getFloat32(vertexstart + 8, true);
-
-            normals[componentIdx] = normalX;
-            normals[componentIdx + 1] = normalY;
-            normals[componentIdx + 2] = normalZ;
-
-            if (hasColors) {
-              colors[componentIdx] = r;
-              colors[componentIdx + 1] = g;
-              colors[componentIdx + 2] = b;
-            }
-          }
-        }
-
-        geometry.setAttribute("position", new THREE.BufferAttribute(vertices, 3));
-        geometry.setAttribute("normal", new THREE.BufferAttribute(normals, 3));
-
-        if (hasColors) {
-          geometry.setAttribute("color", new THREE.BufferAttribute(colors, 3));
-          geometry.hasColors = true;
-          geometry.alpha = alpha;
-        }
-
-        return geometry;
-      }
-
-      function parseASCII(data) {
-        const geometry = new THREE.BufferGeometry();
-        const patternSolid = /solid([\s\S]*?)endsolid/g;
-        const patternFace = /facet([\s\S]*?)endfacet/g;
-        let faceCounter = 0;
-
-        const patternFloat = /[\s]+([+-]?(?:\d*)(?:\.\d*)?(?:[eE][+-]?\d+)?)/.source;
-        const patternVertex = new RegExp("vertex" + patternFloat + patternFloat + patternFloat, "g");
-        const patternNormal = new RegExp("normal" + patternFloat + patternFloat + patternFloat, "g");
-
-        const vertices = [];
-        const normals = [];
-
-        const normal = new THREE.Vector3();
-
-        let result;
-
-        let groupCount = 0;
-        let startVertex = 0;
-        let endVertex = 0;
-
-        while ((result = patternSolid.exec(data)) !== null) {
-          startVertex = endVertex;
-
-          const solid = result[0];
-
-          while ((result = patternFace.exec(solid)) !== null) {
-            let vertexCountPerFace = 0;
-            let normalCountPerFace = 0;
-
-            const text = result[0];
-
-            while ((result = patternNormal.exec(text)) !== null) {
-              normal.x = parseFloat(result[1]);
-              normal.y = parseFloat(result[2]);
-              normal.z = parseFloat(result[3]);
-              normalCountPerFace++;
-            }
-
-            while ((result = patternVertex.exec(text)) !== null) {
-              vertices.push(parseFloat(result[1]), parseFloat(result[2]), parseFloat(result[3]));
-              normals.push(normal.x, normal.y, normal.z);
-              vertexCountPerFace++;
-              endVertex++;
-            }
-
-            // every face have to own ONE valid normal
-
-            if (normalCountPerFace !== 1) {
-              console.error("THREE.STLLoader: Something isn't right with the normal of face number " + faceCounter);
-            }
-
-            // each face have to own THREE valid vertices
-
-            if (vertexCountPerFace !== 3) {
-              console.error("THREE.STLLoader: Something isn't right with the vertices of face number " + faceCounter);
-            }
-
-            faceCounter++;
-          }
-
-          const start = startVertex;
-          const count = endVertex - startVertex;
-
-          geometry.addGroup(start, count, groupCount);
-          groupCount++;
-        }
-
-        geometry.setAttribute("position", new THREE.Float32BufferAttribute(vertices, 3));
-        geometry.setAttribute("normal", new THREE.Float32BufferAttribute(normals, 3));
-
-        return geometry;
-      }
-
-      function ensureString(buffer) {
-        if (typeof buffer !== "string") {
-          return new TextDecoder().decode(buffer);
-        }
-
-        return buffer;
-      }
-
-      function ensureBinary(buffer) {
-        if (typeof buffer === "string") {
-          const array_buffer = new Uint8Array(buffer.length);
-          for (let i = 0; i < buffer.length; i++) {
-            array_buffer[i] = buffer.charCodeAt(i) & 0xff; // implicitly assumes little-endian
-          }
-
-          return array_buffer.buffer || array_buffer;
-        } else {
-          return buffer;
-        }
-      }
-
-      // start
-
-      const binData = ensureBinary(data);
-
-      return isBinary(binData) ? parseBinary(binData) : parseASCII(ensureString(data));
-    }
-  }
-
-  THREE.STLLoader = STLLoader;
-})();

File diff suppressed because it is too large
+ 0 - 7
nicegui/elements/lib/ag-grid-community.min.js


+ 0 - 105
nicegui/elements/lib/highcharts-3d.js

@@ -1,105 +0,0 @@
-/*
- Highcharts JS v10.3.3 (2023-01-20)
-
- 3D features for Highcharts JS
-
- License: www.highcharts.com/license
-*/
-(function(a){"object"===typeof module&&module.exports?(a["default"]=a,module.exports=a):"function"===typeof define&&define.amd?define("highcharts/highcharts-3d",["highcharts"],function(D){a(D);a.Highcharts=D;return a}):a("undefined"!==typeof Highcharts?Highcharts:void 0)})(function(a){function D(a,y,r,F){a.hasOwnProperty(y)||(a[y]=F.apply(null,r),"function"===typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:y,module:a[y]}})))}a=a?a._modules:{};D(a,"Core/Math3D.js",
-[a["Core/Globals.js"],a["Core/Utilities.js"]],function(a,y){function r(n,f,k,c){var b=f.options.chart.options3d,a=m(c,k?f.inverted:!1),g={x:f.plotWidth/2,y:f.plotHeight/2,z:b.depth/2,vd:m(b.depth,1)*m(b.viewDistance,0)},C=f.scale3d||1;c=G*b.beta*(a?-1:1);b=G*b.alpha*(a?-1:1);var q=Math.cos(b),t=Math.cos(-c),z=Math.sin(b),v=Math.sin(-c);k||(g.x+=f.plotLeft,g.y+=f.plotTop);return n.map(function(b){var f=(a?b.y:b.x)-g.x;var c=(a?b.x:b.y)-g.y;b=(b.z||0)-g.z;f={x:t*f-v*b,y:-z*v*f+q*c-t*z*b,z:q*v*f+z*c+
-q*t*b};c=A(f,g,g.vd);c.x=c.x*C+g.x;c.y=c.y*C+g.y;c.z=f.z*C+g.z;return{x:a?c.y:c.x,y:a?c.x:c.y,z:c.z}})}function A(a,f,k){f=0<k&&k<Number.POSITIVE_INFINITY?k/(a.z+f.z+k):1;return{x:a.x*f,y:a.y*f}}function n(a){var f=0,k;for(k=0;k<a.length;k++){var c=(k+1)%a.length;f+=a[k].x*a[c].y-a[c].x*a[k].y}return f/2}var G=a.deg2rad,m=y.pick;return{perspective:r,perspective3D:A,pointCameraDistance:function(a,f){var k=f.options.chart.options3d,c=f.plotWidth/2;f=f.plotHeight/2;k=m(k.depth,1)*m(k.viewDistance,0)+
-k.depth;return Math.sqrt(Math.pow(c-m(a.plotX,a.x),2)+Math.pow(f-m(a.plotY,a.y),2)+Math.pow(k-m(a.plotZ,a.z),2))},shapeArea:n,shapeArea3D:function(a,f,k){return n(r(a,f,k))}}});D(a,"Core/Renderer/SVG/SVGElement3D.js",[a["Core/Color/Color.js"],a["Core/Renderer/SVG/SVGElement.js"],a["Core/Utilities.js"]],function(a,y,r){var A=a.parse,n=r.defined;a=r.merge;var G=r.objectEach,m=r.pick,z={base:{initArgs:function(f){var a=this,c=a.renderer,b=c[a.pathType+"Path"](f),n=b.zIndexes;a.parts.forEach(function(g){var f=
-{"class":"highcharts-3d-"+g,zIndex:n[g]||0};c.styledMode&&("top"===g?f.filter="url(#highcharts-brighter)":"side"===g&&(f.filter="url(#highcharts-darker)"));a[g]=c.path(b[g]).attr(f).add(a)});a.attr({"stroke-linejoin":"round",zIndex:n.group});a.originalDestroy=a.destroy;a.destroy=a.destroyParts;a.forcedSides=b.forcedSides},singleSetterForParts:function(a,n,c,b,l,g){var f={};b=[null,null,b||"attr",l,g];var q=c&&c.zIndexes;c?(q&&q.group&&this.attr({zIndex:q.group}),G(c,function(b,g){f[g]={};f[g][a]=
-b;q&&(f[g].zIndex=c.zIndexes[g]||0)}),b[1]=f):(f[a]=n,b[0]=f);return this.processParts.apply(this,b)},processParts:function(a,n,c,b,l){var g=this;g.parts.forEach(function(f){n&&(a=m(n[f],!1));if(!1!==a)g[f][c](a,b,l)});return g},destroyParts:function(){this.processParts(null,null,"destroy");return this.originalDestroy()}}};z.cuboid=a(z.base,{parts:["front","top","side"],pathType:"cuboid",attr:function(a,k,c,b){if("string"===typeof a&&"undefined"!==typeof k){var f=a;a={};a[f]=k}return a.shapeArgs||
-n(a.x)?this.singleSetterForParts("d",null,this.renderer[this.pathType+"Path"](a.shapeArgs||a)):y.prototype.attr.call(this,a,void 0,c,b)},animate:function(a,k,c){if(n(a.x)&&n(a.y)){a=this.renderer[this.pathType+"Path"](a);var b=a.forcedSides;this.singleSetterForParts("d",null,a,"animate",k,c);this.attr({zIndex:a.zIndexes.group});b!==this.forcedSides&&(this.forcedSides=b,this.renderer.styledMode||z.cuboid.fillSetter.call(this,this.fill))}else y.prototype.animate.call(this,a,k,c);return this},fillSetter:function(a){this.forcedSides=
-this.forcedSides||[];this.singleSetterForParts("fill",null,{front:a,top:A(a).brighten(0<=this.forcedSides.indexOf("top")?0:.1).get(),side:A(a).brighten(0<=this.forcedSides.indexOf("side")?0:-.1).get()});this.color=this.fill=a;return this}});return z});D(a,"Core/Renderer/SVG/SVGRenderer3D.js",[a["Core/Animation/AnimationUtilities.js"],a["Core/Color/Color.js"],a["Core/Globals.js"],a["Core/Math3D.js"],a["Core/Renderer/SVG/SVGElement.js"],a["Core/Renderer/SVG/SVGElement3D.js"],a["Core/Renderer/SVG/SVGRenderer.js"],
-a["Core/Utilities.js"]],function(a,y,r,F,n,G,m,z){var f=this&&this.__extends||function(){var a=function(h,b){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,e){a.__proto__=e}||function(a,e){for(var u in e)e.hasOwnProperty(u)&&(a[u]=e[u])};return a(h,b)};return function(h,b){function g(){this.constructor=h}a(h,b);h.prototype=null===b?Object.create(b):(g.prototype=b.prototype,new g)}}(),k=a.animObject,c=y.parse,b=r.charts,l=r.deg2rad,g=F.perspective,C=F.shapeArea,q=z.defined,t=z.extend,
-x=z.merge,v=z.pick,A=Math.cos,E=Math.sin,I=Math.PI,N=4*(Math.sqrt(2)-1)/3/(I/2);return function(a){function h(){return null!==a&&a.apply(this,arguments)||this}f(h,a);h.compose=function(a){a=a.prototype;var b=h.prototype;a.elements3d=G;a.arc3d=b.arc3d;a.arc3dPath=b.arc3dPath;a.cuboid=b.cuboid;a.cuboidPath=b.cuboidPath;a.element3d=b.element3d;a.face3d=b.face3d;a.polyhedron=b.polyhedron;a.toLinePath=b.toLinePath;a.toLineSegments=b.toLineSegments};h.curveTo=function(a,b,e,u,d,p,w,B){var h=[],g=p-d;return p>
-d&&p-d>Math.PI/2+.0001?(h=h.concat(this.curveTo(a,b,e,u,d,d+Math.PI/2,w,B)),h=h.concat(this.curveTo(a,b,e,u,d+Math.PI/2,p,w,B))):p<d&&d-p>Math.PI/2+.0001?(h=h.concat(this.curveTo(a,b,e,u,d,d-Math.PI/2,w,B)),h=h.concat(this.curveTo(a,b,e,u,d-Math.PI/2,p,w,B))):[["C",a+e*Math.cos(d)-e*N*g*Math.sin(d)+w,b+u*Math.sin(d)+u*N*g*Math.cos(d)+B,a+e*Math.cos(p)+e*N*g*Math.sin(p)+w,b+u*Math.sin(p)-u*N*g*Math.cos(p)+B,a+e*Math.cos(p)+w,b+u*Math.sin(p)+B]]};h.prototype.toLinePath=function(a,b){var e=[];a.forEach(function(a){e.push(["L",
-a.x,a.y])});a.length&&(e[0][0]="M",b&&e.push(["Z"]));return e};h.prototype.toLineSegments=function(a){var b=[],e=!0;a.forEach(function(a){b.push(e?["M",a.x,a.y]:["L",a.x,a.y]);e=!e});return b};h.prototype.face3d=function(a){var h=this,e=this.createElement("path");e.vertexes=[];e.insidePlotArea=!1;e.enabled=!0;e.attr=function(e){if("object"===typeof e&&(q(e.enabled)||q(e.vertexes)||q(e.insidePlotArea))){this.enabled=v(e.enabled,this.enabled);this.vertexes=v(e.vertexes,this.vertexes);this.insidePlotArea=
-v(e.insidePlotArea,this.insidePlotArea);delete e.enabled;delete e.vertexes;delete e.insidePlotArea;var d=g(this.vertexes,b[h.chartIndex],this.insidePlotArea),p=h.toLinePath(d,!0);d=C(d);e.d=p;e.visibility=this.enabled&&0<d?"inherit":"hidden"}return n.prototype.attr.apply(this,arguments)};e.animate=function(e){if("object"===typeof e&&(q(e.enabled)||q(e.vertexes)||q(e.insidePlotArea))){this.enabled=v(e.enabled,this.enabled);this.vertexes=v(e.vertexes,this.vertexes);this.insidePlotArea=v(e.insidePlotArea,
-this.insidePlotArea);delete e.enabled;delete e.vertexes;delete e.insidePlotArea;var d=g(this.vertexes,b[h.chartIndex],this.insidePlotArea),p=h.toLinePath(d,!0);d=C(d);d=this.enabled&&0<d?"visible":"hidden";e.d=p;this.attr("visibility",d)}return n.prototype.animate.apply(this,arguments)};return e.attr(a)};h.prototype.polyhedron=function(a){var b=this,e=this.g(),h=e.destroy;this.styledMode||e.attr({"stroke-linejoin":"round"});e.faces=[];e.destroy=function(){for(var d=0;d<e.faces.length;d++)e.faces[d].destroy();
-return h.call(this)};e.attr=function(d,p,a,h){if("object"===typeof d&&q(d.faces)){for(;e.faces.length>d.faces.length;)e.faces.pop().destroy();for(;e.faces.length<d.faces.length;)e.faces.push(b.face3d().add(e));for(var w=0;w<d.faces.length;w++)b.styledMode&&delete d.faces[w].fill,e.faces[w].attr(d.faces[w],null,a,h);delete d.faces}return n.prototype.attr.apply(this,arguments)};e.animate=function(d,p,a){if(d&&d.faces){for(;e.faces.length>d.faces.length;)e.faces.pop().destroy();for(;e.faces.length<d.faces.length;)e.faces.push(b.face3d().add(e));
-for(var w=0;w<d.faces.length;w++)e.faces[w].animate(d.faces[w],p,a);delete d.faces}return n.prototype.animate.apply(this,arguments)};return e.attr(a)};h.prototype.element3d=function(a,b){var e=this.g();t(e,this.elements3d[a]);e.initArgs(b);return e};h.prototype.cuboid=function(a){return this.element3d("cuboid",a)};h.prototype.cuboidPath=function(a){function h(e){return 0===w&&1<e&&6>e?{x:H[e].x,y:H[e].y+10,z:H[e].z}:H[0].x===H[7].x&&4<=e?{x:H[e].x+10,y:H[e].y,z:H[e].z}:0===c&&2>e||5<e?{x:H[e].x,y:H[e].y,
-z:H[e].z+10}:H[e]}function e(e){return H[e]}var u=a.x||0,d=a.y||0,p=a.z||0,w=a.height||0,B=a.width||0,c=a.depth||0,f=b[this.chartIndex],n=f.options.chart.options3d.alpha,q=0,H=[{x:u,y:d,z:p},{x:u+B,y:d,z:p},{x:u+B,y:d+w,z:p},{x:u,y:d+w,z:p},{x:u,y:d+w,z:p+c},{x:u+B,y:d+w,z:p+c},{x:u+B,y:d,z:p+c},{x:u,y:d,z:p+c}],k=[];H=g(H,f,a.insidePlotArea);var M=function(d,a,p){var w=[[],-1],b=d.map(e),u=a.map(e);d=d.map(h);a=a.map(h);0>C(b)?w=[b,0]:0>C(u)?w=[u,1]:p&&(k.push(p),w=0>C(d)?[b,0]:0>C(a)?[u,1]:[b,0]);
-return w};var l=M([3,2,1,0],[7,6,5,4],"front");a=l[0];var K=l[1];l=M([1,6,7,0],[4,5,2,3],"top");B=l[0];var t=l[1];l=M([1,2,5,6],[0,7,4,3],"side");M=l[0];l=l[1];1===l?q+=1E6*(f.plotWidth-u):l||(q+=1E6*u);q+=10*(!t||0<=n&&180>=n||360>n&&357.5<n?f.plotHeight-d:10+d);1===K?q+=100*p:K||(q+=100*(1E3-p));return{front:this.toLinePath(a,!0),top:this.toLinePath(B,!0),side:this.toLinePath(M,!0),zIndexes:{group:Math.round(q)},forcedSides:k,isFront:K,isTop:t}};h.prototype.arc3d=function(a){function b(e){var a=
-!1,p={},b;e=x(e);for(b in e)-1!==d.indexOf(b)&&(p[b]=e[b],delete e[b],a=!0);return a?[p,e]:!1}var e=this.g(),h=e.renderer,d="x y r innerR start end depth".split(" ");a=x(a);a.alpha=(a.alpha||0)*l;a.beta=(a.beta||0)*l;e.top=h.path();e.side1=h.path();e.side2=h.path();e.inn=h.path();e.out=h.path();e.onAdd=function(){var d=e.parentGroup,a=e.attr("class");e.top.add(e);["out","inn","side1","side2"].forEach(function(p){e[p].attr({"class":a+" highcharts-3d-side"}).add(d)})};["addClass","removeClass"].forEach(function(d){e[d]=
-function(){var a=arguments;["top","out","inn","side1","side2"].forEach(function(p){e[p][d].apply(e[p],a)})}});e.setPaths=function(d){var a=e.renderer.arc3dPath(d),p=100*a.zTop;e.attribs=d;e.top.attr({d:a.top,zIndex:a.zTop});e.inn.attr({d:a.inn,zIndex:a.zInn});e.out.attr({d:a.out,zIndex:a.zOut});e.side1.attr({d:a.side1,zIndex:a.zSide1});e.side2.attr({d:a.side2,zIndex:a.zSide2});e.zIndex=p;e.attr({zIndex:p});d.center&&(e.top.setRadialReference(d.center),delete d.center)};e.setPaths(a);e.fillSetter=
-function(e){var d=c(e).brighten(-.1).get();this.fill=e;this.side1.attr({fill:d});this.side2.attr({fill:d});this.inn.attr({fill:d});this.out.attr({fill:d});this.top.attr({fill:e});return this};["opacity","translateX","translateY","visibility"].forEach(function(d){e[d+"Setter"]=function(d,a){e[a]=d;["out","inn","side1","side2","top"].forEach(function(p){e[p].attr(a,d)})}});e.attr=function(d){var a;if("object"===typeof d&&(a=b(d))){var p=a[0];arguments[0]=a[1];t(e.attribs,p);e.setPaths(e.attribs)}return n.prototype.attr.apply(e,
-arguments)};e.animate=function(d,a,h){var p=this.attribs,u="data-"+Math.random().toString(26).substring(2,9);delete d.center;delete d.z;delete d.alpha;delete d.beta;var w=k(v(a,this.renderer.globalAnimation));if(w.duration){a=b(d);e[u]=0;d[u]=1;e[u+"Setter"]=r.noop;if(a){var B=a[0];w.step=function(d,e){function a(d){return p[d]+(v(B[d],p[d])-p[d])*e.pos}e.prop===u&&e.elem.setPaths(x(p,{x:a("x"),y:a("y"),r:a("r"),innerR:a("innerR"),start:a("start"),end:a("end"),depth:a("depth")}))}}a=w}return n.prototype.animate.call(this,
-d,a,h)};e.destroy=function(){this.top.destroy();this.out.destroy();this.inn.destroy();this.side1.destroy();this.side2.destroy();return n.prototype.destroy.call(this)};e.hide=function(){this.top.hide();this.out.hide();this.inn.hide();this.side1.hide();this.side2.hide()};e.show=function(d){this.top.show(d);this.out.show(d);this.inn.show(d);this.side1.show(d);this.side2.show(d)};return e};h.prototype.arc3dPath=function(a){function b(d){d%=2*Math.PI;d>Math.PI&&(d=2*Math.PI-d);return d}var e=a.x||0,u=
-a.y||0,d=a.start||0,p=(a.end||0)-.00001,w=a.r||0,B=a.innerR||0,g=a.depth||0,c=a.alpha||0,f=a.beta||0,n=Math.cos(d),q=Math.sin(d);a=Math.cos(p);var k=Math.sin(p),l=w*Math.cos(f);w*=Math.cos(c);var t=B*Math.cos(f),v=B*Math.cos(c);B=g*Math.sin(f);var m=g*Math.sin(c);g=[["M",e+l*n,u+w*q]];g=g.concat(h.curveTo(e,u,l,w,d,p,0,0));g.push(["L",e+t*a,u+v*k]);g=g.concat(h.curveTo(e,u,t,v,p,d,0,0));g.push(["Z"]);var C=0<f?Math.PI/2:0;f=0<c?0:Math.PI/2;C=d>-C?d:p>-C?-C:d;var x=p<I-f?p:d<I-f?I-f:p,z=2*I-f;c=[["M",
-e+l*A(C),u+w*E(C)]];c=c.concat(h.curveTo(e,u,l,w,C,x,0,0));p>z&&d<z?(c.push(["L",e+l*A(x)+B,u+w*E(x)+m]),c=c.concat(h.curveTo(e,u,l,w,x,z,B,m)),c.push(["L",e+l*A(z),u+w*E(z)]),c=c.concat(h.curveTo(e,u,l,w,z,p,0,0)),c.push(["L",e+l*A(p)+B,u+w*E(p)+m]),c=c.concat(h.curveTo(e,u,l,w,p,z,B,m)),c.push(["L",e+l*A(z),u+w*E(z)]),c=c.concat(h.curveTo(e,u,l,w,z,x,0,0))):p>I-f&&d<I-f&&(c.push(["L",e+l*Math.cos(x)+B,u+w*Math.sin(x)+m]),c=c.concat(h.curveTo(e,u,l,w,x,p,B,m)),c.push(["L",e+l*Math.cos(p),u+w*Math.sin(p)]),
-c=c.concat(h.curveTo(e,u,l,w,p,x,0,0)));c.push(["L",e+l*Math.cos(x)+B,u+w*Math.sin(x)+m]);c=c.concat(h.curveTo(e,u,l,w,x,C,B,m));c.push(["Z"]);f=[["M",e+t*n,u+v*q]];f=f.concat(h.curveTo(e,u,t,v,d,p,0,0));f.push(["L",e+t*Math.cos(p)+B,u+v*Math.sin(p)+m]);f=f.concat(h.curveTo(e,u,t,v,p,d,B,m));f.push(["Z"]);n=[["M",e+l*n,u+w*q],["L",e+l*n+B,u+w*q+m],["L",e+t*n+B,u+v*q+m],["L",e+t*n,u+v*q],["Z"]];e=[["M",e+l*a,u+w*k],["L",e+l*a+B,u+w*k+m],["L",e+t*a+B,u+v*k+m],["L",e+t*a,u+v*k],["Z"]];k=Math.atan2(m,
--B);u=Math.abs(p+k);a=Math.abs(d+k);d=Math.abs((d+p)/2+k);u=b(u);a=b(a);d=b(d);d*=1E5;p=1E5*a;u*=1E5;return{top:g,zTop:1E5*Math.PI+1,out:c,zOut:Math.max(d,p,u),inn:f,zInn:Math.max(d,p,u),side1:n,zSide1:.99*u,side2:e,zSide2:.99*p}};return h}(m)});D(a,"Core/Chart/Chart3D.js",[a["Core/Color/Color.js"],a["Core/Defaults.js"],a["Core/Math3D.js"],a["Core/Utilities.js"]],function(a,y,r,F){var n=a.parse,A=y.defaultOptions,m=r.perspective,z=r.shapeArea3D,f=F.addEvent,k=F.isArray,c=F.merge,b=F.pick,l=F.wrap,
-g;(function(a){function g(a){this.is3d()&&"scatter"===a.options.type&&(a.options.type="scatter3d")}function t(){if(this.chart3d&&this.is3d()){var a=this.renderer,b=this.options.chart.options3d,d=this.chart3d.get3dFrame(),p=this.plotLeft,h=this.plotLeft+this.plotWidth,g=this.plotTop,c=this.plotTop+this.plotHeight;b=b.depth;var f=p-(d.left.visible?d.left.size:0),l=h+(d.right.visible?d.right.size:0),q=g-(d.top.visible?d.top.size:0),k=c+(d.bottom.visible?d.bottom.size:0),t=0-(d.front.visible?d.front.size:
-0),m=b+(d.back.visible?d.back.size:0),v=this.hasRendered?"animate":"attr";this.chart3d.frame3d=d;this.frameShapes||(this.frameShapes={bottom:a.polyhedron().add(),top:a.polyhedron().add(),left:a.polyhedron().add(),right:a.polyhedron().add(),back:a.polyhedron().add(),front:a.polyhedron().add()});this.frameShapes.bottom[v]({"class":"highcharts-3d-frame highcharts-3d-frame-bottom",zIndex:d.bottom.frontFacing?-1E3:1E3,faces:[{fill:n(d.bottom.color).brighten(.1).get(),vertexes:[{x:f,y:k,z:t},{x:l,y:k,z:t},
-{x:l,y:k,z:m},{x:f,y:k,z:m}],enabled:d.bottom.visible},{fill:n(d.bottom.color).brighten(.1).get(),vertexes:[{x:p,y:c,z:b},{x:h,y:c,z:b},{x:h,y:c,z:0},{x:p,y:c,z:0}],enabled:d.bottom.visible},{fill:n(d.bottom.color).brighten(-.1).get(),vertexes:[{x:f,y:k,z:t},{x:f,y:k,z:m},{x:p,y:c,z:b},{x:p,y:c,z:0}],enabled:d.bottom.visible&&!d.left.visible},{fill:n(d.bottom.color).brighten(-.1).get(),vertexes:[{x:l,y:k,z:m},{x:l,y:k,z:t},{x:h,y:c,z:0},{x:h,y:c,z:b}],enabled:d.bottom.visible&&!d.right.visible},{fill:n(d.bottom.color).get(),
-vertexes:[{x:l,y:k,z:t},{x:f,y:k,z:t},{x:p,y:c,z:0},{x:h,y:c,z:0}],enabled:d.bottom.visible&&!d.front.visible},{fill:n(d.bottom.color).get(),vertexes:[{x:f,y:k,z:m},{x:l,y:k,z:m},{x:h,y:c,z:b},{x:p,y:c,z:b}],enabled:d.bottom.visible&&!d.back.visible}]});this.frameShapes.top[v]({"class":"highcharts-3d-frame highcharts-3d-frame-top",zIndex:d.top.frontFacing?-1E3:1E3,faces:[{fill:n(d.top.color).brighten(.1).get(),vertexes:[{x:f,y:q,z:m},{x:l,y:q,z:m},{x:l,y:q,z:t},{x:f,y:q,z:t}],enabled:d.top.visible},
-{fill:n(d.top.color).brighten(.1).get(),vertexes:[{x:p,y:g,z:0},{x:h,y:g,z:0},{x:h,y:g,z:b},{x:p,y:g,z:b}],enabled:d.top.visible},{fill:n(d.top.color).brighten(-.1).get(),vertexes:[{x:f,y:q,z:m},{x:f,y:q,z:t},{x:p,y:g,z:0},{x:p,y:g,z:b}],enabled:d.top.visible&&!d.left.visible},{fill:n(d.top.color).brighten(-.1).get(),vertexes:[{x:l,y:q,z:t},{x:l,y:q,z:m},{x:h,y:g,z:b},{x:h,y:g,z:0}],enabled:d.top.visible&&!d.right.visible},{fill:n(d.top.color).get(),vertexes:[{x:f,y:q,z:t},{x:l,y:q,z:t},{x:h,y:g,
-z:0},{x:p,y:g,z:0}],enabled:d.top.visible&&!d.front.visible},{fill:n(d.top.color).get(),vertexes:[{x:l,y:q,z:m},{x:f,y:q,z:m},{x:p,y:g,z:b},{x:h,y:g,z:b}],enabled:d.top.visible&&!d.back.visible}]});this.frameShapes.left[v]({"class":"highcharts-3d-frame highcharts-3d-frame-left",zIndex:d.left.frontFacing?-1E3:1E3,faces:[{fill:n(d.left.color).brighten(.1).get(),vertexes:[{x:f,y:k,z:t},{x:p,y:c,z:0},{x:p,y:c,z:b},{x:f,y:k,z:m}],enabled:d.left.visible&&!d.bottom.visible},{fill:n(d.left.color).brighten(.1).get(),
-vertexes:[{x:f,y:q,z:m},{x:p,y:g,z:b},{x:p,y:g,z:0},{x:f,y:q,z:t}],enabled:d.left.visible&&!d.top.visible},{fill:n(d.left.color).brighten(-.1).get(),vertexes:[{x:f,y:k,z:m},{x:f,y:q,z:m},{x:f,y:q,z:t},{x:f,y:k,z:t}],enabled:d.left.visible},{fill:n(d.left.color).brighten(-.1).get(),vertexes:[{x:p,y:g,z:b},{x:p,y:c,z:b},{x:p,y:c,z:0},{x:p,y:g,z:0}],enabled:d.left.visible},{fill:n(d.left.color).get(),vertexes:[{x:f,y:k,z:t},{x:f,y:q,z:t},{x:p,y:g,z:0},{x:p,y:c,z:0}],enabled:d.left.visible&&!d.front.visible},
-{fill:n(d.left.color).get(),vertexes:[{x:f,y:q,z:m},{x:f,y:k,z:m},{x:p,y:c,z:b},{x:p,y:g,z:b}],enabled:d.left.visible&&!d.back.visible}]});this.frameShapes.right[v]({"class":"highcharts-3d-frame highcharts-3d-frame-right",zIndex:d.right.frontFacing?-1E3:1E3,faces:[{fill:n(d.right.color).brighten(.1).get(),vertexes:[{x:l,y:k,z:m},{x:h,y:c,z:b},{x:h,y:c,z:0},{x:l,y:k,z:t}],enabled:d.right.visible&&!d.bottom.visible},{fill:n(d.right.color).brighten(.1).get(),vertexes:[{x:l,y:q,z:t},{x:h,y:g,z:0},{x:h,
-y:g,z:b},{x:l,y:q,z:m}],enabled:d.right.visible&&!d.top.visible},{fill:n(d.right.color).brighten(-.1).get(),vertexes:[{x:h,y:g,z:0},{x:h,y:c,z:0},{x:h,y:c,z:b},{x:h,y:g,z:b}],enabled:d.right.visible},{fill:n(d.right.color).brighten(-.1).get(),vertexes:[{x:l,y:k,z:t},{x:l,y:q,z:t},{x:l,y:q,z:m},{x:l,y:k,z:m}],enabled:d.right.visible},{fill:n(d.right.color).get(),vertexes:[{x:l,y:q,z:t},{x:l,y:k,z:t},{x:h,y:c,z:0},{x:h,y:g,z:0}],enabled:d.right.visible&&!d.front.visible},{fill:n(d.right.color).get(),
-vertexes:[{x:l,y:k,z:m},{x:l,y:q,z:m},{x:h,y:g,z:b},{x:h,y:c,z:b}],enabled:d.right.visible&&!d.back.visible}]});this.frameShapes.back[v]({"class":"highcharts-3d-frame highcharts-3d-frame-back",zIndex:d.back.frontFacing?-1E3:1E3,faces:[{fill:n(d.back.color).brighten(.1).get(),vertexes:[{x:l,y:k,z:m},{x:f,y:k,z:m},{x:p,y:c,z:b},{x:h,y:c,z:b}],enabled:d.back.visible&&!d.bottom.visible},{fill:n(d.back.color).brighten(.1).get(),vertexes:[{x:f,y:q,z:m},{x:l,y:q,z:m},{x:h,y:g,z:b},{x:p,y:g,z:b}],enabled:d.back.visible&&
-!d.top.visible},{fill:n(d.back.color).brighten(-.1).get(),vertexes:[{x:f,y:k,z:m},{x:f,y:q,z:m},{x:p,y:g,z:b},{x:p,y:c,z:b}],enabled:d.back.visible&&!d.left.visible},{fill:n(d.back.color).brighten(-.1).get(),vertexes:[{x:l,y:q,z:m},{x:l,y:k,z:m},{x:h,y:c,z:b},{x:h,y:g,z:b}],enabled:d.back.visible&&!d.right.visible},{fill:n(d.back.color).get(),vertexes:[{x:p,y:g,z:b},{x:h,y:g,z:b},{x:h,y:c,z:b},{x:p,y:c,z:b}],enabled:d.back.visible},{fill:n(d.back.color).get(),vertexes:[{x:f,y:k,z:m},{x:l,y:k,z:m},
-{x:l,y:q,z:m},{x:f,y:q,z:m}],enabled:d.back.visible}]});this.frameShapes.front[v]({"class":"highcharts-3d-frame highcharts-3d-frame-front",zIndex:d.front.frontFacing?-1E3:1E3,faces:[{fill:n(d.front.color).brighten(.1).get(),vertexes:[{x:f,y:k,z:t},{x:l,y:k,z:t},{x:h,y:c,z:0},{x:p,y:c,z:0}],enabled:d.front.visible&&!d.bottom.visible},{fill:n(d.front.color).brighten(.1).get(),vertexes:[{x:l,y:q,z:t},{x:f,y:q,z:t},{x:p,y:g,z:0},{x:h,y:g,z:0}],enabled:d.front.visible&&!d.top.visible},{fill:n(d.front.color).brighten(-.1).get(),
-vertexes:[{x:f,y:q,z:t},{x:f,y:k,z:t},{x:p,y:c,z:0},{x:p,y:g,z:0}],enabled:d.front.visible&&!d.left.visible},{fill:n(d.front.color).brighten(-.1).get(),vertexes:[{x:l,y:k,z:t},{x:l,y:q,z:t},{x:h,y:g,z:0},{x:h,y:c,z:0}],enabled:d.front.visible&&!d.right.visible},{fill:n(d.front.color).get(),vertexes:[{x:h,y:g,z:0},{x:p,y:g,z:0},{x:p,y:c,z:0},{x:h,y:c,z:0}],enabled:d.front.visible},{fill:n(d.front.color).get(),vertexes:[{x:l,y:k,z:t},{x:f,y:k,z:t},{x:f,y:q,z:t},{x:l,y:q,z:t}],enabled:d.front.visible}]})}}
-function x(){this.styledMode&&[{name:"darker",slope:.6},{name:"brighter",slope:1.4}].forEach(function(a){this.renderer.definition({tagName:"filter",attributes:{id:"highcharts-"+a.name},children:[{tagName:"feComponentTransfer",children:[{tagName:"feFuncR",attributes:{type:"linear",slope:a.slope}},{tagName:"feFuncG",attributes:{type:"linear",slope:a.slope}},{tagName:"feFuncB",attributes:{type:"linear",slope:a.slope}}]}]})},this)}function v(){var a=this.options;this.is3d()&&(a.series||[]).forEach(function(e){"scatter"===
-(e.type||a.chart.type||a.chart.defaultSeriesType)&&(e.type="scatter3d")})}function C(){var a=this.options.chart.options3d;if(this.chart3d&&this.is3d()){a&&(a.alpha=a.alpha%360+(0<=a.alpha?0:360),a.beta=a.beta%360+(0<=a.beta?0:360));var b=this.inverted,d=this.clipBox,h=this.margin;d[b?"y":"x"]=-(h[3]||0);d[b?"x":"y"]=-(h[0]||0);d[b?"height":"width"]=this.chartWidth+(h[3]||0)+(h[1]||0);d[b?"width":"height"]=this.chartHeight+(h[0]||0)+(h[2]||0);this.scale3d=1;!0===a.fitToPlot&&(this.scale3d=this.chart3d.getScale(a.depth));
-this.chart3d.frame3d=this.chart3d.get3dFrame()}}function E(){this.is3d()&&(this.isDirtyBox=!0)}function r(){this.chart3d&&this.is3d()&&(this.chart3d.frame3d=this.chart3d.get3dFrame())}function y(){this.chart3d||(this.chart3d=new L(this))}function O(a){return this.is3d()||a.apply(this,[].slice.call(arguments,1))}function h(a){var e=this.series.length;if(this.is3d())for(;e--;)a=this.series[e],a.translate(),a.render();else a.call(this)}function K(a){a.apply(this,[].slice.call(arguments,1));this.is3d()&&
-(this.container.className+=" highcharts-3d-chart")}var L=function(){function a(a){this.frame3d=void 0;this.chart=a}a.prototype.get3dFrame=function(){var a=this.chart,d=a.options.chart.options3d,e=d.frame,h=a.plotLeft,g=a.plotLeft+a.plotWidth,c=a.plotTop,f=a.plotTop+a.plotHeight,l=d.depth,q=function(d){d=z(d,a);return.5<d?1:-.5>d?-1:0},k=q([{x:h,y:f,z:l},{x:g,y:f,z:l},{x:g,y:f,z:0},{x:h,y:f,z:0}]),t=q([{x:h,y:c,z:0},{x:g,y:c,z:0},{x:g,y:c,z:l},{x:h,y:c,z:l}]),n=q([{x:h,y:c,z:0},{x:h,y:c,z:l},{x:h,
-y:f,z:l},{x:h,y:f,z:0}]),v=q([{x:g,y:c,z:l},{x:g,y:c,z:0},{x:g,y:f,z:0},{x:g,y:f,z:l}]),x=q([{x:h,y:f,z:0},{x:g,y:f,z:0},{x:g,y:c,z:0},{x:h,y:c,z:0}]);q=q([{x:h,y:c,z:l},{x:g,y:c,z:l},{x:g,y:f,z:l},{x:h,y:f,z:l}]);var L=!1,C=!1,E=!1,A=!1;[].concat(a.xAxis,a.yAxis,a.zAxis).forEach(function(a){a&&(a.horiz?a.opposite?C=!0:L=!0:a.opposite?A=!0:E=!0)});var r=function(a,d,e){for(var h=["size","color","visible"],g={},c=0;c<h.length;c++)for(var f=h[c],l=0;l<a.length;l++)if("object"===typeof a[l]){var q=a[l][f];
-if("undefined"!==typeof q&&null!==q){g[f]=q;break}}a=e;!0===g.visible||!1===g.visible?a=g.visible:"auto"===g.visible&&(a=0<d);return{size:b(g.size,1),color:b(g.color,"none"),frontFacing:0<d,visible:a}};e={axes:{},bottom:r([e.bottom,e.top,e],k,L),top:r([e.top,e.bottom,e],t,C),left:r([e.left,e.right,e.side,e],n,E),right:r([e.right,e.left,e.side,e],v,A),back:r([e.back,e.front,e],q,!0),front:r([e.front,e.back,e],x,!1)};"auto"===d.axisLabelPosition?(v=function(a,d){return a.visible!==d.visible||a.visible&&
-d.visible&&a.frontFacing!==d.frontFacing},d=[],v(e.left,e.front)&&d.push({y:(c+f)/2,x:h,z:0,xDir:{x:1,y:0,z:0}}),v(e.left,e.back)&&d.push({y:(c+f)/2,x:h,z:l,xDir:{x:0,y:0,z:-1}}),v(e.right,e.front)&&d.push({y:(c+f)/2,x:g,z:0,xDir:{x:0,y:0,z:1}}),v(e.right,e.back)&&d.push({y:(c+f)/2,x:g,z:l,xDir:{x:-1,y:0,z:0}}),k=[],v(e.bottom,e.front)&&k.push({x:(h+g)/2,y:f,z:0,xDir:{x:1,y:0,z:0}}),v(e.bottom,e.back)&&k.push({x:(h+g)/2,y:f,z:l,xDir:{x:-1,y:0,z:0}}),t=[],v(e.top,e.front)&&t.push({x:(h+g)/2,y:c,z:0,
-xDir:{x:1,y:0,z:0}}),v(e.top,e.back)&&t.push({x:(h+g)/2,y:c,z:l,xDir:{x:-1,y:0,z:0}}),n=[],v(e.bottom,e.left)&&n.push({z:(0+l)/2,y:f,x:h,xDir:{x:0,y:0,z:-1}}),v(e.bottom,e.right)&&n.push({z:(0+l)/2,y:f,x:g,xDir:{x:0,y:0,z:1}}),f=[],v(e.top,e.left)&&f.push({z:(0+l)/2,y:c,x:h,xDir:{x:0,y:0,z:-1}}),v(e.top,e.right)&&f.push({z:(0+l)/2,y:c,x:g,xDir:{x:0,y:0,z:1}}),h=function(d,e,h){if(0===d.length)return null;if(1===d.length)return d[0];for(var b=m(d,a,!1),g=0,c=1;c<b.length;c++)h*b[c][e]>h*b[g][e]?g=
-c:h*b[c][e]===h*b[g][e]&&b[c].z<b[g].z&&(g=c);return d[g]},e.axes={y:{left:h(d,"x",-1),right:h(d,"x",1)},x:{top:h(t,"y",-1),bottom:h(k,"y",1)},z:{top:h(f,"y",-1),bottom:h(n,"y",1)}}):e.axes={y:{left:{x:h,z:0,xDir:{x:1,y:0,z:0}},right:{x:g,z:0,xDir:{x:0,y:0,z:1}}},x:{top:{y:c,z:0,xDir:{x:1,y:0,z:0}},bottom:{y:f,z:0,xDir:{x:1,y:0,z:0}}},z:{top:{x:E?g:h,y:c,xDir:E?{x:0,y:0,z:1}:{x:0,y:0,z:-1}},bottom:{x:E?g:h,y:f,xDir:E?{x:0,y:0,z:1}:{x:0,y:0,z:-1}}}};return e};a.prototype.getScale=function(a){var d=
-this.chart,e=d.plotLeft,h=d.plotWidth+e,b=d.plotTop,g=d.plotHeight+b,c=e+d.plotWidth/2,f=b+d.plotHeight/2,l=Number.MAX_VALUE,q=-Number.MAX_VALUE,k=Number.MAX_VALUE,t=-Number.MAX_VALUE,n=1;var v=[{x:e,y:b,z:0},{x:e,y:b,z:a}];[0,1].forEach(function(a){v.push({x:h,y:v[a].y,z:v[a].z})});[0,1,2,3].forEach(function(a){v.push({x:v[a].x,y:g,z:v[a].z})});v=m(v,d,!1);v.forEach(function(a){l=Math.min(l,a.x);q=Math.max(q,a.x);k=Math.min(k,a.y);t=Math.max(t,a.y)});e>l&&(n=Math.min(n,1-Math.abs((e+c)/(l+c))%1));
-h<q&&(n=Math.min(n,(h-c)/(q-c)));b>k&&(n=0>k?Math.min(n,(b+f)/(-k+b+f)):Math.min(n,1-(b+f)/(k+f)%1));g<t&&(n=Math.min(n,Math.abs((g-f)/(t-f))));return n};return a}();a.Composition=L;a.defaultOptions={chart:{options3d:{enabled:!1,alpha:0,beta:0,depth:100,fitToPlot:!0,viewDistance:25,axisLabelPosition:null,frame:{visible:"default",size:1,bottom:{},top:{},left:{},right:{},back:{},front:{}}}}};a.compose=function(e,b){var d=e.prototype;b=b.prototype;d.is3d=function(){return!(!this.options.chart.options3d||
-!this.options.chart.options3d.enabled)};d.propsRequireDirtyBox.push("chart.options3d");d.propsRequireUpdateSeries.push("chart.options3d");b.matrixSetter=function(){if(1>this.pos&&(k(this.start)||k(this.end))){var a=this.start||[1,0,0,1,0,0],d=this.end||[1,0,0,1,0,0];var e=[];for(var h=0;6>h;h++)e.push(this.pos*d[h]+(1-this.pos)*a[h])}else e=this.end;this.elem.attr(this.prop,e,null,!0)};c(!0,A,a.defaultOptions);f(e,"init",y);f(e,"addSeries",g);f(e,"afterDrawChartBox",t);f(e,"afterGetContainer",x);
-f(e,"afterInit",v);f(e,"afterSetChartSize",C);f(e,"beforeRedraw",E);f(e,"beforeRender",r);l(d,"isInsidePlot",O);l(d,"renderSeries",h);l(d,"setClassName",K)}})(g||(g={}));"";return g});D(a,"Core/Axis/ZAxis.js",[a["Core/Axis/Axis.js"],a["Core/Utilities.js"]],function(a,y){function r(a){return new c(this,a)}function A(){var a=this,c=this.options.zAxis=f(this.options.zAxis||{});this.is3d()&&(this.zAxis=[],c.forEach(function(b,c){b.index=c;b.isX=!0;a.addZAxis(b).setScale()}))}var n=this&&this.__extends||
-function(){var a=function(b,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return a(b,c)};return function(b,c){function g(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(g.prototype=c.prototype,new g)}}(),G=y.addEvent,m=y.merge,z=y.pick,f=y.splat,k=[],c=function(a){function b(b,c){b=a.call(this,b,c)||this;b.isZAxis=!0;return b}n(b,a);b.compose=function(a){-1===k.indexOf(a)&&
-(k.push(a),G(a,"afterGetAxes",A),a=a.prototype,a.addZAxis=r,a.collectionsWithInit.zAxis=[a.addZAxis],a.collectionsWithUpdate.push("zAxis"))};b.prototype.getSeriesExtremes=function(){var a=this,b=this.chart;this.hasVisibleSeries=!1;this.dataMin=this.dataMax=this.ignoreMinPadding=this.ignoreMaxPadding=void 0;this.stacking&&this.stacking.buildStacks();this.series.forEach(function(c){if(c.visible||!b.options.chart.ignoreHiddenSeries)a.hasVisibleSeries=!0,c=c.zData,c.length&&(a.dataMin=Math.min(z(a.dataMin,
-c[0]),Math.min.apply(null,c)),a.dataMax=Math.max(z(a.dataMax,c[0]),Math.max.apply(null,c)))})};b.prototype.setAxisSize=function(){var b=this.chart;a.prototype.setAxisSize.call(this);this.width=this.len=b.options.chart.options3d&&b.options.chart.options3d.depth||0;this.right=b.chartWidth-this.width-this.left};b.prototype.setOptions=function(b){b=m({offset:0,lineWidth:0},b);this.isZAxis=!0;a.prototype.setOptions.call(this,b);this.coll="zAxis"};return b}(a);return c});D(a,"Core/Axis/Axis3DDefaults.js",
-[],function(){return{labels:{position3d:"offset",skew3d:!1},title:{position3d:null,skew3d:null}}});D(a,"Core/Axis/Tick3DComposition.js",[a["Core/Utilities.js"]],function(a){function A(a){var f=this.axis.axis3D;f&&n(a.pos,f.fix3dPosition(a.pos))}function r(a){var f=this.axis.axis3D,k=a.apply(this,[].slice.call(arguments,1));if(f){var c=k[0],b=k[1];if("M"===c[0]&&"L"===b[0])return f=[f.fix3dPosition({x:c[1],y:c[2],z:0}),f.fix3dPosition({x:b[1],y:b[2],z:0})],this.axis.chart.renderer.toLineSegments(f)}return k}
-var F=a.addEvent,n=a.extend,G=a.wrap,m=[];return{compose:function(a){-1===m.indexOf(a)&&(m.push(a),F(a,"afterGetLabelPosition",A),G(a.prototype,"getMarkPath",r))}}});D(a,"Core/Axis/Axis3DComposition.js",[a["Core/Axis/Axis3DDefaults.js"],a["Core/Globals.js"],a["Core/Math3D.js"],a["Core/Axis/Tick3DComposition.js"],a["Core/Utilities.js"]],function(a,y,r,F,n){function A(){var a=this.chart,b=this.options;a.is3d&&a.is3d()&&"colorAxis"!==this.coll&&(b.tickWidth=J(b.tickWidth,0),b.gridLineWidth=J(b.gridLineWidth,
-1))}function m(a){this.chart.is3d()&&"colorAxis"!==this.coll&&a.point&&(a.point.crosshairPos=this.isXAxis?a.point.axisXpos:this.len-a.point.axisYpos)}function z(){this.axis3D||(this.axis3D=new D(this))}function f(a){return this.chart.is3d()&&"colorAxis"!==this.coll?[]:a.apply(this,[].slice.call(arguments,1))}function k(a){if(!this.chart.is3d()||"colorAxis"===this.coll)return a.apply(this,[].slice.call(arguments,1));var b=arguments,c=b[2],f=[];b=this.getPlotLinePath({value:b[1]});c=this.getPlotLinePath({value:c});
-if(b&&c)for(var e=0;e<b.length;e+=2){var g=b[e],d=b[e+1],l=c[e],k=c[e+1];"M"===g[0]&&"L"===d[0]&&"M"===l[0]&&"L"===k[0]&&f.push(g,d,k,["L",l[1],l[2]],["Z"])}return f}function c(a){var b=this.axis3D,c=this.chart,f=a.apply(this,[].slice.call(arguments,1));if("colorAxis"===this.coll||!c.chart3d||!c.is3d()||null===f)return f;var e=c.options.chart.options3d,g=this.isZAxis?c.plotWidth:e.depth;e=c.chart3d.frame3d;var d=f[0],l=f[1];f=[];"M"===d[0]&&"L"===l[0]&&(b=[b.swapZ({x:d[1],y:d[2],z:0}),b.swapZ({x:d[1],
-y:d[2],z:g}),b.swapZ({x:l[1],y:l[2],z:0}),b.swapZ({x:l[1],y:l[2],z:g})],this.horiz?(this.isZAxis?(e.left.visible&&f.push(b[0],b[2]),e.right.visible&&f.push(b[1],b[3])):(e.front.visible&&f.push(b[0],b[2]),e.back.visible&&f.push(b[1],b[3])),e.top.visible&&f.push(b[0],b[1]),e.bottom.visible&&f.push(b[2],b[3])):(e.front.visible&&f.push(b[0],b[2]),e.back.visible&&f.push(b[1],b[3]),e.left.visible&&f.push(b[0],b[1]),e.right.visible&&f.push(b[2],b[3])),f=C(f,this.chart,!1));return c.renderer.toLineSegments(f)}
-function b(a,b){var c=this.chart,h=this.ticks,e=this.gridGroup;if(this.categories&&c.frameShapes&&c.is3d()&&e&&b&&b.label){e=e.element.childNodes[0].getBBox();var f=c.frameShapes.left.getBBox(),d=c.options.chart.options3d;c={x:c.plotWidth/2,y:c.plotHeight/2,z:d.depth/2,vd:J(d.depth,1)*J(d.viewDistance,0)};d=b.pos;var g=h[d-1],l=h[d+1],k=h=void 0;0!==d&&g&&g.label&&g.label.xy&&(h=q({x:g.label.xy.x,y:g.label.xy.y,z:null},c,c.vd));l&&l.label&&l.label.xy&&(k=q({x:l.label.xy.x,y:l.label.xy.y,z:null},c,
-c.vd));d={x:b.label.xy.x,y:b.label.xy.y,z:null};d=q(d,c,c.vd);return Math.abs(h?d.x-h.x:k?k.x-d.x:e.x-f.x)}return a.apply(this,[].slice.call(arguments,1))}function l(a){var b=a.apply(this,[].slice.call(arguments,1));return this.axis3D?this.axis3D.fix3dPosition(b,!0):b}var g=y.deg2rad,C=r.perspective,q=r.perspective3D,t=r.shapeArea,x=n.addEvent,v=n.merge,J=n.pick,E=n.wrap,I=[],D=function(){function q(a){this.axis=a}q.compose=function(h,g){F.compose(g);-1===I.indexOf(h)&&(I.push(h),v(!0,h.defaultOptions,
-a),h.keepProps.push("axis3D"),x(h,"init",z),x(h,"afterSetOptions",A),x(h,"drawCrosshair",m),h=h.prototype,E(h,"getLinePath",f),E(h,"getPlotBandPath",k),E(h,"getPlotLinePath",c),E(h,"getSlotWidth",b),E(h,"getTitlePosition",l))};q.prototype.fix3dPosition=function(a,b){var c=this.axis,e=c.chart;if("colorAxis"===c.coll||!e.chart3d||!e.is3d())return a;var f=g*e.options.chart.options3d.alpha,d=g*e.options.chart.options3d.beta,h=J(b&&c.options.title.position3d,c.options.labels.position3d);b=J(b&&c.options.title.skew3d,
-c.options.labels.skew3d);var l=e.chart3d.frame3d,k=e.plotLeft,q=e.plotWidth+k,n=e.plotTop,m=e.plotHeight+n,v=e=0,x={x:0,y:1,z:0},E=!1;a=c.axis3D.swapZ({x:a.x,y:a.y,z:0});if(c.isZAxis)if(c.opposite){if(null===l.axes.z.top)return{};v=a.y-n;a.x=l.axes.z.top.x;a.y=l.axes.z.top.y;k=l.axes.z.top.xDir;E=!l.top.frontFacing}else{if(null===l.axes.z.bottom)return{};v=a.y-m;a.x=l.axes.z.bottom.x;a.y=l.axes.z.bottom.y;k=l.axes.z.bottom.xDir;E=!l.bottom.frontFacing}else if(c.horiz)if(c.opposite){if(null===l.axes.x.top)return{};
-v=a.y-n;a.y=l.axes.x.top.y;a.z=l.axes.x.top.z;k=l.axes.x.top.xDir;E=!l.top.frontFacing}else{if(null===l.axes.x.bottom)return{};v=a.y-m;a.y=l.axes.x.bottom.y;a.z=l.axes.x.bottom.z;k=l.axes.x.bottom.xDir;E=!l.bottom.frontFacing}else if(c.opposite){if(null===l.axes.y.right)return{};e=a.x-q;a.x=l.axes.y.right.x;a.z=l.axes.y.right.z;k=l.axes.y.right.xDir;k={x:k.z,y:k.y,z:-k.x}}else{if(null===l.axes.y.left)return{};e=a.x-k;a.x=l.axes.y.left.x;a.z=l.axes.y.left.z;k=l.axes.y.left.xDir}"chart"!==h&&("flap"===
-h?c.horiz?(d=Math.sin(f),f=Math.cos(f),c.opposite&&(d=-d),E&&(d=-d),x={x:k.z*d,y:f,z:-k.x*d}):k={x:Math.cos(d),y:0,z:Math.sin(d)}:"ortho"===h?c.horiz?(x=Math.cos(f),h=Math.sin(d)*x,f=-Math.sin(f),d=-x*Math.cos(d),x={x:k.y*d-k.z*f,y:k.z*h-k.x*d,z:k.x*f-k.y*h},f=1/Math.sqrt(x.x*x.x+x.y*x.y+x.z*x.z),E&&(f=-f),x={x:f*x.x,y:f*x.y,z:f*x.z}):k={x:Math.cos(d),y:0,z:Math.sin(d)}:c.horiz?x={x:Math.sin(d)*Math.sin(f),y:Math.cos(f),z:-Math.cos(d)*Math.sin(f)}:k={x:Math.cos(d),y:0,z:Math.sin(d)});a.x+=e*k.x+v*
-x.x;a.y+=e*k.y+v*x.y;a.z+=e*k.z+v*x.z;e=C([a],c.chart)[0];b&&(0>t(C([a,{x:a.x+k.x,y:a.y+k.y,z:a.z+k.z},{x:a.x+x.x,y:a.y+x.y,z:a.z+x.z}],c.chart))&&(k={x:-k.x,y:-k.y,z:-k.z}),a=C([{x:a.x,y:a.y,z:a.z},{x:a.x+k.x,y:a.y+k.y,z:a.z+k.z},{x:a.x+x.x,y:a.y+x.y,z:a.z+x.z}],c.chart),e.matrix=[a[1].x-a[0].x,a[1].y-a[0].y,a[2].x-a[0].x,a[2].y-a[0].y,e.x,e.y],e.matrix[4]-=e.x*e.matrix[0]+e.y*e.matrix[2],e.matrix[5]-=e.x*e.matrix[1]+e.y*e.matrix[3]);return e};q.prototype.swapZ=function(a,b){var c=this.axis;return c.isZAxis?
-(b=b?0:c.chart.plotLeft,{x:b+a.z,y:a.y,z:a.x-b}):a};return q}();return D});D(a,"Core/Series/Series3D.js",[a["Core/Math3D.js"],a["Core/Series/Series.js"],a["Core/Utilities.js"]],function(a,y,r){var A=this&&this.__extends||function(){var a=function(c,b){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return a(c,b)};return function(c,b){function f(){this.constructor=c}a(c,b);c.prototype=null===b?Object.create(b):
-(f.prototype=b.prototype,new f)}}(),n=a.perspective;a=r.addEvent;var G=r.extend,m=r.merge,z=r.pick,f=r.isNumber;r=function(a){function c(){return null!==a&&a.apply(this,arguments)||this}A(c,a);c.prototype.translate=function(){a.prototype.translate.apply(this,arguments);this.chart.is3d()&&this.translate3dPoints()};c.prototype.translate3dPoints=function(){var a=this.options,c=this.chart,g=z(this.zAxis,c.options.zAxis[0]),k=[],q,t=[];this.zPadding=(a.stacking?f(a.stack)?a.stack:0:this.index||0)*(a.depth||
-0+(a.groupZPadding||1));for(q=0;q<this.data.length;q++){a=this.data[q];if(g&&g.translate){var m=g.logarithmic&&g.val2lin?g.val2lin(a.z):a.z;a.plotZ=g.translate(m);a.isInside=a.isInside?m>=g.min&&m<=g.max:!1}else a.plotZ=this.zPadding;a.axisXpos=a.plotX;a.axisYpos=a.plotY;a.axisZpos=a.plotZ;k.push({x:a.plotX,y:a.plotY,z:a.plotZ});t.push(a.plotX||0)}this.rawPointsX=t;c=n(k,c,!0);for(q=0;q<this.data.length;q++)a=this.data[q],g=c[q],a.plotX=g.x,a.plotY=g.y,a.plotZ=g.z};c.defaultOptions=m(y.defaultOptions);
-return c}(y);a(y,"afterTranslate",function(){this.chart.is3d()&&this.translate3dPoints()});G(y.prototype,{translate3dPoints:r.prototype.translate3dPoints});return r});D(a,"Series/Area3D/Area3DSeries.js",[a["Core/Math3D.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,y,r){function A(a){var f=a.apply(this,[].slice.call(arguments,1));if(!this.chart.is3d())return f;var c=G.getGraphPath,b=this.options,l=Math.round(this.yAxis.getThreshold(b.threshold)),g=[];if(this.rawPointsX)for(var m=
-0;m<this.points.length;m++)g.push({x:this.rawPointsX[m],y:b.stacking?this.points[m].yBottom:l,z:this.zPadding});b=this.chart.options.chart.options3d;g=n(g,this.chart,!0).map(function(a){return{plotX:a.x,plotY:a.y,plotZ:a.z}});this.group&&b&&b.depth&&b.beta&&(this.markerGroup&&(this.markerGroup.add(this.group),this.markerGroup.attr({translateX:0,translateY:0})),this.group.attr({zIndex:Math.max(1,270<b.beta||90>b.beta?b.depth-Math.round(this.zPadding||0):Math.round(this.zPadding||0))}));g.reversed=
-!0;c=c.call(this,g,!0,!0);c[0]&&"M"===c[0][0]&&(c[0]=["L",c[0][1],c[0][2]]);this.areaPath&&(c=this.areaPath.splice(0,this.areaPath.length/2).concat(c),c.xMap=this.areaPath.xMap,this.areaPath=c);return f}var n=a.perspective,G=y.seriesTypes.line.prototype,m=r.wrap,z=[];return{compose:function(a){-1===z.indexOf(a)&&(z.push(a),m(a.prototype,"getGraphPath",A))}}});D(a,"Series/Column3D/Column3DComposition.js",[a["Series/Column/ColumnSeries.js"],a["Core/Globals.js"],a["Core/Series/Series.js"],a["Core/Math3D.js"],
-a["Core/Series/SeriesRegistry.js"],a["Core/Axis/Stacking/StackItem.js"],a["Core/Utilities.js"]],function(a,y,r,F,n,G,m){function z(a,b){var c=a.series,f={totalStacks:0},g,l=1;c.forEach(function(a){g=A(a.options.stack,b?0:c.length-1-a.index);f[g]?f[g].series.push(a):(f[g]={series:[a],position:l},l++)});f.totalStacks=l+1;return f}function f(a){var b=a.apply(this,[].slice.call(arguments,1));this.chart.is3d&&this.chart.is3d()&&(b.stroke=this.options.edgeColor||b.fill,b["stroke-width"]=A(this.options.edgeWidth,
-1));return b}function k(a,b,c){var f=this.chart.is3d&&this.chart.is3d();f&&(this.options.inactiveOtherPoints=!0);a.call(this,b,c);f&&(this.options.inactiveOtherPoints=!1)}function c(a){for(var b=[],c=1;c<arguments.length;c++)b[c-1]=arguments[c];return this.series.chart.is3d()?this.graphic&&"g"!==this.graphic.element.nodeName:a.apply(this,b)}var b=a.prototype,l=y.svg,g=F.perspective;y=m.addEvent;var A=m.pick;m=m.wrap;m(b,"translate",function(a){a.apply(this,[].slice.call(arguments,1));this.chart.is3d()&&
-this.translate3dShapes()});m(r.prototype,"justifyDataLabel",function(a){return arguments[2].outside3dPlot?!1:a.apply(this,[].slice.call(arguments,1))});b.translate3dPoints=function(){};b.translate3dShapes=function(){var a=this,b=a.chart,c=a.options,f=c.depth,l=(c.stacking?c.stack||0:a.index)*(f+(c.groupZPadding||1)),k=a.borderWidth%2?.5:0,n;b.inverted&&!a.yAxis.reversed&&(k*=-1);!1!==c.grouping&&(l=0);l+=c.groupZPadding||1;a.data.forEach(function(c){c.outside3dPlot=null;if(null!==c.y){var m=c.shapeArgs,
-h=c.tooltipPos,q;[["x","width"],["y","height"]].forEach(function(b){q=m[b[0]]-k;0>q&&(m[b[1]]+=m[b[0]]+k,m[b[0]]=-k,q=0);q+m[b[1]]>a[b[0]+"Axis"].len&&0!==m[b[1]]&&(m[b[1]]=a[b[0]+"Axis"].len-m[b[0]]);if(0!==m[b[1]]&&(m[b[0]]>=a[b[0]+"Axis"].len||m[b[0]]+m[b[1]]<=k)){for(var e in m)m[e]="y"===e?-9999:0;c.outside3dPlot=!0}});"rect"===c.shapeType&&(c.shapeType="cuboid");m.z=l;m.depth=f;m.insidePlotArea=!0;n={x:m.x+m.width/2,y:m.y,z:l+f/2};b.inverted&&(n.x=m.height,n.y=c.clientX);c.plot3d=g([n],b,!0,
-!1)[0];h=g([{x:h[0],y:h[1],z:l+f/2}],b,!0,!1)[0];c.tooltipPos=[h.x,h.y]}});a.z=l};m(b,"animate",function(a){if(this.chart.is3d()){var b=arguments[1],c=this.yAxis,f=this,g=this.yAxis.reversed;l&&(b?f.data.forEach(function(a){null!==a.y&&(a.height=a.shapeArgs.height,a.shapey=a.shapeArgs.y,a.shapeArgs.height=1,g||(a.shapeArgs.y=a.stackY?a.plotY+c.translate(a.stackY):a.plotY+(a.negative?-a.height:a.height)))}):(f.data.forEach(function(a){if(null!==a.y&&(a.shapeArgs.height=a.height,a.shapeArgs.y=a.shapey,
-a.graphic))a.graphic[a.outside3dPlot?"attr":"animate"](a.shapeArgs,f.options.animation)}),this.drawDataLabels()))}else a.apply(this,[].slice.call(arguments,1))});m(b,"plotGroup",function(a,b,c,f,g,l){"dataLabelsGroup"!==b&&"markerGroup"!==b&&this.chart.is3d()&&(this[b]&&delete this[b],l&&(this.chart.columnGroup||(this.chart.columnGroup=this.chart.renderer.g("columnGroup").add(l)),this[b]=this.chart.columnGroup,this.chart.columnGroup.attr(this.getPlotBox()),this[b].survive=!0,"group"===b&&(arguments[3]=
-"visible")));return a.apply(this,Array.prototype.slice.call(arguments,1))});m(b,"setVisible",function(a,b){var c=this;c.chart.is3d()&&c.data.forEach(function(a){a.visible=a.options.visible=b="undefined"===typeof b?!A(c.visible,a.visible):b;c.options.data[c.data.indexOf(a)]=a.options;a.graphic&&a.graphic.attr({visibility:b?"visible":"hidden"})});a.apply(this,Array.prototype.slice.call(arguments,1))});y(a,"afterInit",function(){if(this.chart.is3d()){var a=this.options,b=a.grouping,c=a.stacking,f=this.yAxis.options.reversedStacks,
-g=0;if("undefined"===typeof b||b){b=z(this.chart,c);g=a.stack||0;for(c=0;c<b[g].series.length&&b[g].series[c]!==this;c++);g=10*(b.totalStacks-b[g].position)+(f?c:-c);this.xAxis.reversed||(g=10*b.totalStacks-g)}a.depth=a.depth||25;this.z=this.z||0;a.zIndex=g}});m(b,"pointAttribs",f);m(b,"setState",k);m(b.pointClass.prototype,"hasNewShapeType",c);n.seriesTypes.columnRange&&(y=n.seriesTypes.columnrange.prototype,m(y,"pointAttribs",f),m(y,"setState",k),m(y.pointClass.prototype,"hasNewShapeType",c),y.plotGroup=
-b.plotGroup,y.setVisible=b.setVisible);m(r.prototype,"alignDataLabel",function(a,b,c,f,l){var k=this.chart;f.outside3dPlot=b.outside3dPlot;if(k.is3d()&&this.is("column")){var m=this.options,n=A(f.inside,!!this.options.stacking),q=k.options.chart.options3d,h=b.pointWidth/2||0;m={x:l.x+h,y:l.y,z:this.z+m.depth/2};k.inverted&&(n&&(l.width=0,m.x+=b.shapeArgs.height/2),90<=q.alpha&&270>=q.alpha&&(m.y+=b.shapeArgs.width));m=g([m],k,!0,!1)[0];l.x=m.x-h;l.y=b.outside3dPlot?-9E9:m.y}a.apply(this,[].slice.call(arguments,
-1))});m(G.prototype,"getStackBox",function(a,b){var c=a.apply(this,[].slice.call(arguments,1)),f=this.axis.chart,l=b.width;if(f.is3d()&&this.base){var k=+this.base.split(",")[0],m=f.series[k];k=f.options.chart.options3d;m&&m instanceof n.seriesTypes.column&&(m={x:c.x+(f.inverted?c.height:l/2),y:c.y,z:m.options.depth/2},f.inverted&&(c.width=0,90<=k.alpha&&270>=k.alpha&&(m.y+=l)),m=g([m],f,!0,!1)[0],c.x=m.x-l/2,c.y=m.y)}return c});"";return a});D(a,"Series/Pie3D/Pie3DPoint.js",[a["Core/Series/SeriesRegistry.js"]],
-function(a){var A=this&&this.__extends||function(){var a=function(n,r){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,n){a.__proto__=n}||function(a,n){for(var f in n)n.hasOwnProperty(f)&&(a[f]=n[f])};return a(n,r)};return function(n,r){function m(){this.constructor=n}a(n,r);n.prototype=null===r?Object.create(r):(m.prototype=r.prototype,new m)}}();a=a.seriesTypes.pie.prototype.pointClass;var r=a.prototype.haloPath;return function(a){function n(){var n=null!==a&&a.apply(this,arguments)||
-this;n.series=void 0;return n}A(n,a);n.prototype.haloPath=function(){return this.series.chart.is3d()?[]:r.apply(this,arguments)};return n}(a)});D(a,"Series/Pie3D/Pie3DSeries.js",[a["Core/Globals.js"],a["Series/Pie3D/Pie3DPoint.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,y,r,F){var n=this&&this.__extends||function(){var a=function(f,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var b in c)c.hasOwnProperty(b)&&
-(a[b]=c[b])};return a(f,c)};return function(f,c){function b(){this.constructor=f}a(f,c);f.prototype=null===c?Object.create(c):(b.prototype=c.prototype,new b)}}(),A=a.deg2rad,m=a.svg;a=F.extend;var z=F.pick;r=function(a){function f(){return null!==a&&a.apply(this,arguments)||this}n(f,a);f.prototype.addPoint=function(){a.prototype.addPoint.apply(this,arguments);this.chart.is3d()&&this.update(this.userOptions,!0)};f.prototype.animate=function(c){if(this.chart.is3d()){var b=this.options.animation;var f=
-this.center;var g=this.group,k=this.markerGroup;m&&(!0===b&&(b={}),c?(g.oldtranslateX=z(g.oldtranslateX,g.translateX),g.oldtranslateY=z(g.oldtranslateY,g.translateY),f={translateX:f[0],translateY:f[1],scaleX:.001,scaleY:.001},g.attr(f),k&&(k.attrSetters=g.attrSetters,k.attr(f))):(f={translateX:g.oldtranslateX,translateY:g.oldtranslateY,scaleX:1,scaleY:1},g.animate(f,b),k&&k.animate(f,b)))}else a.prototype.animate.apply(this,arguments)};f.prototype.drawDataLabels=function(){if(this.chart.is3d()){var c=
-this.chart.options.chart.options3d;this.data.forEach(function(a){var b=a.shapeArgs,f=b.r,k=(b.start+b.end)/2;a=a.labelPosition;var m=a.connectorPosition,n=-f*(1-Math.cos((b.alpha||c.alpha)*A))*Math.sin(k),r=f*(Math.cos((b.beta||c.beta)*A)-1)*Math.cos(k);[a.natural,m.breakAt,m.touchingSliceAt].forEach(function(a){a.x+=r;a.y+=n})})}a.prototype.drawDataLabels.apply(this,arguments)};f.prototype.pointAttribs=function(c){var b=a.prototype.pointAttribs.apply(this,arguments),f=this.options;this.chart.is3d()&&
-!this.chart.styledMode&&(b.stroke=f.edgeColor||c.color||this.color,b["stroke-width"]=z(f.edgeWidth,1));return b};f.prototype.translate=function(){a.prototype.translate.apply(this,arguments);if(this.chart.is3d()){var c=this,b=c.options,f=b.depth||0,g=c.chart.options.chart.options3d,k=g.alpha,m=g.beta,n=b.stacking?(b.stack||0)*f:c._i*f;n+=f/2;!1!==b.grouping&&(n=0);c.data.forEach(function(a){var g=a.shapeArgs;a.shapeType="arc3d";g.z=n;g.depth=.75*f;g.alpha=k;g.beta=m;g.center=c.center;g=(g.end+g.start)/
-2;a.slicedTranslation={translateX:Math.round(Math.cos(g)*b.slicedOffset*Math.cos(k*A)),translateY:Math.round(Math.sin(g)*b.slicedOffset*Math.cos(k*A))}})}};f.prototype.drawTracker=function(){a.prototype.drawTracker.apply(this,arguments);this.chart.is3d()&&this.points.forEach(function(a){a.graphic&&["out","inn","side1","side2"].forEach(function(b){a.graphic&&(a.graphic[b].element.point=a)})})};return f}(r.seriesTypes.pie);a(r.prototype,{pointClass:y});"";return r});D(a,"Series/Pie3D/Pie3DComposition.js",
-[a["Series/Pie3D/Pie3DPoint.js"],a["Series/Pie3D/Pie3DSeries.js"],a["Core/Series/SeriesRegistry.js"]],function(a,y,r){r.seriesTypes.pie.prototype.pointClass.prototype.haloPath=a.prototype.haloPath;r.seriesTypes.pie=y});D(a,"Series/Scatter3D/Scatter3DPoint.js",[a["Series/Scatter/ScatterSeries.js"],a["Core/Utilities.js"]],function(a,y){var r=this&&this.__extends||function(){var a=function(n,m){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,f){a.__proto__=f}||function(a,f){for(var k in f)f.hasOwnProperty(k)&&
-(a[k]=f[k])};return a(n,m)};return function(n,m){function r(){this.constructor=n}a(n,m);n.prototype=null===m?Object.create(m):(r.prototype=m.prototype,new r)}}(),A=y.defined;return function(a){function n(){var m=null!==a&&a.apply(this,arguments)||this;m.options=void 0;m.series=void 0;return m}r(n,a);n.prototype.applyOptions=function(){a.prototype.applyOptions.apply(this,arguments);A(this.z)||(this.z=0);return this};return n}(a.prototype.pointClass)});D(a,"Series/Scatter3D/Scatter3DSeries.js",[a["Core/Math3D.js"],
-a["Series/Scatter3D/Scatter3DPoint.js"],a["Series/Scatter/ScatterSeries.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,y,r,D,n){var A=this&&this.__extends||function(){var a=function(f,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var b in c)c.hasOwnProperty(b)&&(a[b]=c[b])};return a(f,c)};return function(f,c){function b(){this.constructor=f}a(f,c);f.prototype=null===c?Object.create(c):(b.prototype=c.prototype,
-new b)}}(),m=a.pointCameraDistance;a=n.extend;var z=n.merge;n=function(a){function f(){var c=null!==a&&a.apply(this,arguments)||this;c.data=void 0;c.options=void 0;c.points=void 0;return c}A(f,a);f.prototype.pointAttribs=function(c){var b=a.prototype.pointAttribs.apply(this,arguments);this.chart.is3d()&&c&&(b.zIndex=m(c,this.chart));return b};f.defaultOptions=z(r.defaultOptions,{tooltip:{pointFormat:"x: <b>{point.x}</b><br/>y: <b>{point.y}</b><br/>z: <b>{point.z}</b><br/>"}});return f}(r);a(n.prototype,
-{axisTypes:["xAxis","yAxis","zAxis"],directTouch:!0,parallelArrays:["x","y","z"],pointArrayMap:["x","y","z"],pointClass:y});D.registerSeriesType("scatter3d",n);"";return n});D(a,"masters/highcharts-3d.src.js",[a["Core/Globals.js"],a["Core/Renderer/SVG/SVGRenderer3D.js"],a["Core/Chart/Chart3D.js"],a["Core/Axis/ZAxis.js"],a["Core/Axis/Axis3DComposition.js"],a["Series/Area3D/Area3DSeries.js"]],function(a,y,r,D,n,G){y.compose(a.SVGRenderer);r.compose(a.Chart,a.Fx);D.compose(a.Chart);n.compose(a.Axis,
-a.Tick);G.compose(a.seriesTypes.area)})});
-//# sourceMappingURL=highcharts-3d.js.map

+ 0 - 216
nicegui/elements/lib/highcharts-more.js

@@ -1,216 +0,0 @@
-/*
- Highcharts JS v10.3.3 (2023-01-20)
-
- (c) 2009-2021 Torstein Honsi
-
- License: www.highcharts.com/license
-*/
-(function(d){"object"===typeof module&&module.exports?(d["default"]=d,module.exports=d):"function"===typeof define&&define.amd?define("highcharts/highcharts-more",["highcharts"],function(D){d(D);d.Highcharts=D;return d}):d("undefined"!==typeof Highcharts?Highcharts:void 0)})(function(d){function D(b,c,h,a){b.hasOwnProperty(c)||(b[c]=a.apply(null,h),"function"===typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:c,module:b[c]}})))}d=d?d._modules:{};D(d,
-"Extensions/Pane.js",[d["Core/Chart/Chart.js"],d["Series/CenteredUtilities.js"],d["Core/Globals.js"],d["Core/Pointer.js"],d["Core/Utilities.js"]],function(b,c,h,a,f){function w(g,k,e,a,G){var m=!0,E=e[0],v=e[1],c=Math.sqrt(Math.pow(g-E,2)+Math.pow(k-v,2));q(a)&&q(G)&&(g=Math.atan2(r(k-v,8),r(g-E,8)),G!==a&&(m=a>G?g>=a&&g<=Math.PI||g<=G&&g>=-Math.PI:g>=a&&g<=r(G,8)));return c<=Math.ceil(e[2]/2)&&m}var d=f.addEvent,r=f.correctFloat,q=f.defined,F=f.extend,p=f.merge,l=f.pick,e=f.splat;b.prototype.collectionsWithUpdate.push("pane");
-f=function(){function g(k,g){this.options=this.chart=this.center=this.background=void 0;this.coll="pane";this.defaultOptions={center:["50%","50%"],size:"85%",innerSize:"0%",startAngle:0};this.defaultBackgroundOptions={shape:"circle",borderWidth:1,borderColor:"#cccccc",backgroundColor:{linearGradient:{x1:0,y1:0,x2:0,y2:1},stops:[[0,"#ffffff"],[1,"#e6e6e6"]]},from:-Number.MAX_VALUE,innerRadius:0,to:Number.MAX_VALUE,outerRadius:"105%"};this.init(k,g)}g.prototype.init=function(k,g){this.chart=g;this.background=
-[];g.pane.push(this);this.setOptions(k)};g.prototype.setOptions=function(k){this.options=p(this.defaultOptions,this.chart.angular?{background:{}}:void 0,k)};g.prototype.render=function(){var k=this.options,g=this.options.background,a=this.chart.renderer;this.group||(this.group=a.g("pane-group").attr({zIndex:k.zIndex||0}).add());this.updateCenter();if(g)for(g=e(g),k=Math.max(g.length,this.background.length||0),a=0;a<k;a++)g[a]&&this.axis?this.renderBackground(p(this.defaultBackgroundOptions,g[a]),
-a):this.background[a]&&(this.background[a]=this.background[a].destroy(),this.background.splice(a,1))};g.prototype.renderBackground=function(g,e){var k="animate",m={"class":"highcharts-pane "+(g.className||"")};this.chart.styledMode||F(m,{fill:g.backgroundColor,stroke:g.borderColor,"stroke-width":g.borderWidth});this.background[e]||(this.background[e]=this.chart.renderer.path().add(this.group),k="attr");this.background[e][k]({d:this.axis.getPlotBandPath(g.from,g.to,g)}).attr(m)};g.prototype.updateCenter=
-function(g){this.center=(g||this.axis||{}).center=c.getCenter.call(this)};g.prototype.update=function(g,e){p(!0,this.options,g);this.setOptions(this.options);this.render();this.chart.axes.forEach(function(g){g.pane===this&&(g.pane=null,g.update({},e))},this)};return g}();b.prototype.getHoverPane=function(g){var e=this,m;g&&e.pane.forEach(function(k){w(g.chartX-e.plotLeft,g.chartY-e.plotTop,k.center)&&(m=k)});return m};d(b,"afterIsInsidePlot",function(g){if(this.polar){if(g.options.inverted){var e=
-[g.y,g.x];g.x=e[0];g.y=e[1]}g.isInsidePlot=this.pane.some(function(e){return w(g.x,g.y,e.center,e.axis&&e.axis.normalizedStartAngleRad,e.axis&&e.axis.normalizedEndAngleRad)})}});d(a,"beforeGetHoverData",function(g){var e=this.chart;e.polar?(e.hoverPane=e.getHoverPane(g),g.filter=function(k){return k.visible&&!(!g.shared&&k.directTouch)&&l(k.options.enableMouseTracking,!0)&&(!e.hoverPane||k.xAxis.pane===e.hoverPane)}):e.hoverPane=void 0});d(a,"afterGetHoverData",function(g){var e=this.chart;g.hoverPoint&&
-g.hoverPoint.plotX&&g.hoverPoint.plotY&&e.hoverPane&&!w(g.hoverPoint.plotX,g.hoverPoint.plotY,e.hoverPane.center)&&(g.hoverPoint=void 0)});h.Pane=f;return h.Pane});D(d,"Series/AreaRange/AreaRangePoint.js",[d["Core/Series/SeriesRegistry.js"],d["Core/Utilities.js"]],function(b,c){var h=this&&this.__extends||function(){var a=function(c,b){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var b in c)c.hasOwnProperty(b)&&(a[b]=c[b])};return a(c,b)};
-return function(c,b){function f(){this.constructor=c}a(c,b);c.prototype=null===b?Object.create(b):(f.prototype=b.prototype,new f)}}();b=b.seriesTypes.area.prototype;var a=b.pointClass.prototype,f=c.defined,d=c.isNumber;return function(c){function b(){var a=null!==c&&c.apply(this,arguments)||this;a.high=void 0;a.low=void 0;a.options=void 0;a.plotX=void 0;a.series=void 0;return a}h(b,c);b.prototype.setState=function(){var c=this.state,b=this.series,h=b.chart.polar;f(this.plotHigh)||(this.plotHigh=b.yAxis.toPixels(this.high,
-!0));f(this.plotLow)||(this.plotLow=this.plotY=b.yAxis.toPixels(this.low,!0));b.stateMarkerGraphic&&(b.lowerStateMarkerGraphic=b.stateMarkerGraphic,b.stateMarkerGraphic=b.upperStateMarkerGraphic);this.graphic=this.graphics&&this.graphics[1];this.plotY=this.plotHigh;h&&d(this.plotHighX)&&(this.plotX=this.plotHighX);a.setState.apply(this,arguments);this.state=c;this.plotY=this.plotLow;this.graphic=this.graphics&&this.graphics[0];h&&d(this.plotLowX)&&(this.plotX=this.plotLowX);b.stateMarkerGraphic&&
-(b.upperStateMarkerGraphic=b.stateMarkerGraphic,b.stateMarkerGraphic=b.lowerStateMarkerGraphic,b.lowerStateMarkerGraphic=void 0);a.setState.apply(this,arguments)};b.prototype.haloPath=function(){var b=this.series.chart.polar,c=[];this.plotY=this.plotLow;b&&d(this.plotLowX)&&(this.plotX=this.plotLowX);this.isInside&&(c=a.haloPath.apply(this,arguments));this.plotY=this.plotHigh;b&&d(this.plotHighX)&&(this.plotX=this.plotHighX);this.isTopInside&&(c=c.concat(a.haloPath.apply(this,arguments)));return c};
-b.prototype.isValid=function(){return d(this.low)&&d(this.high)};return b}(b.pointClass)});D(d,"Series/AreaRange/AreaRangeSeries.js",[d["Series/AreaRange/AreaRangePoint.js"],d["Core/Globals.js"],d["Core/Series/SeriesRegistry.js"],d["Core/Utilities.js"]],function(b,c,h,a){var f=this&&this.__extends||function(){var g=function(e,k){g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,e){g.__proto__=e}||function(g,e){for(var k in e)e.hasOwnProperty(k)&&(g[k]=e[k])};return g(e,k)};return function(e,
-k){function m(){this.constructor=e}g(e,k);e.prototype=null===k?Object.create(k):(m.prototype=k.prototype,new m)}}();c=c.noop;var d=h.seriesTypes,n=d.area,r=d.area.prototype,q=d.column.prototype;d=a.addEvent;var F=a.defined,p=a.extend,l=a.isArray,e=a.isNumber,g=a.pick,k=a.merge,m={lineWidth:1,threshold:null,tooltip:{pointFormat:'<span style="color:{series.color}">\u25cf</span> {series.name}: <b>{point.low}</b> - <b>{point.high}</b><br/>'},trackByArea:!0,dataLabels:{align:void 0,verticalAlign:void 0,
-xLow:0,xHigh:0,yLow:0,yHigh:0}};a=function(e){function a(){var g=null!==e&&e.apply(this,arguments)||this;g.data=void 0;g.options=void 0;g.points=void 0;g.lowerStateMarkerGraphic=void 0;g.xAxis=void 0;return g}f(a,e);a.prototype.toYData=function(g){return[g.low,g.high]};a.prototype.highToXY=function(g){var e=this.chart,k=this.xAxis.postTranslate(g.rectPlotX||0,this.yAxis.len-(g.plotHigh||0));g.plotHighX=k.x-e.plotLeft;g.plotHigh=k.y-e.plotTop;g.plotLowX=g.plotX};a.prototype.getGraphPath=function(e){var k=
-[],a=[],m=r.getGraphPath,b=this.options,c=this.chart.polar,x=c&&!1!==b.connectEnds,B=b.connectNulls,y,f=b.step;e=e||this.points;for(y=e.length;y--;){var t=e[y];var G=c?{plotX:t.rectPlotX,plotY:t.yBottom,doCurve:!1}:{plotX:t.plotX,plotY:t.plotY,doCurve:!1};t.isNull||x||B||e[y+1]&&!e[y+1].isNull||a.push(G);var l={polarPlotY:t.polarPlotY,rectPlotX:t.rectPlotX,yBottom:t.yBottom,plotX:g(t.plotHighX,t.plotX),plotY:t.plotHigh,isNull:t.isNull};a.push(l);k.push(l);t.isNull||x||B||e[y-1]&&!e[y-1].isNull||a.push(G)}e=
-m.call(this,e);f&&(!0===f&&(f="left"),b.step={left:"right",center:"center",right:"left"}[f]);k=m.call(this,k);a=m.call(this,a);b.step=f;b=[].concat(e,k);!this.chart.polar&&a[0]&&"M"===a[0][0]&&(a[0]=["L",a[0][1],a[0][2]]);this.graphPath=b;this.areaPath=e.concat(a);b.isArea=!0;b.xMap=e.xMap;this.areaPath.xMap=e.xMap;return b};a.prototype.drawDataLabels=function(){var e=this.points,g=e.length,k=[],a=this.options.dataLabels,m=this.chart.inverted,b,x;if(a){if(l(a)){var c=a[0]||{enabled:!1};var y=a[1]||
-{enabled:!1}}else c=p({},a),c.x=a.xHigh,c.y=a.yHigh,y=p({},a),y.x=a.xLow,y.y=a.yLow;if(c.enabled||this._hasPointLabels){for(b=g;b--;)if(x=e[b]){var f=x.plotHigh;f=void 0===f?0:f;var t=x.plotLow;t=void 0===t?0:t;t=c.inside?f<t:f>t;x.y=x.high;x._plotY=x.plotY;x.plotY=f;k[b]=x.dataLabel;x.dataLabel=x.dataLabelUpper;x.below=t;m?c.align||(c.align=t?"right":"left"):c.verticalAlign||(c.verticalAlign=t?"top":"bottom")}this.options.dataLabels=c;r.drawDataLabels&&r.drawDataLabels.apply(this,arguments);for(b=
-g;b--;)if(x=e[b])x.dataLabelUpper=x.dataLabel,x.dataLabel=k[b],delete x.dataLabels,x.y=x.low,x.plotY=x._plotY}if(y.enabled||this._hasPointLabels){for(b=g;b--;)if(x=e[b])k=x.plotHigh,f=void 0===k?0:k,k=x.plotLow,t=void 0===k?0:k,t=y.inside?f<t:f>t,x.below=!t,m?y.align||(y.align=t?"left":"right"):y.verticalAlign||(y.verticalAlign=t?"bottom":"top");this.options.dataLabels=y;r.drawDataLabels&&r.drawDataLabels.apply(this,arguments)}if(c.enabled)for(b=g;b--;)if(x=e[b])x.dataLabels=[x.dataLabelUpper,x.dataLabel].filter(function(e){return!!e});
-this.options.dataLabels=a}};a.prototype.alignDataLabel=function(){q.alignDataLabel.apply(this,arguments)};a.prototype.drawPoints=function(){var e=this.points.length,k;r.drawPoints.apply(this,arguments);for(k=0;k<e;){var a=this.points[k];a.graphics=a.graphics||[];a.origProps={plotY:a.plotY,plotX:a.plotX,isInside:a.isInside,negative:a.negative,zone:a.zone,y:a.y};if(a.graphic||a.graphics[0])a.graphics[0]=a.graphic;a.graphic=a.graphics[1];a.plotY=a.plotHigh;F(a.plotHighX)&&(a.plotX=a.plotHighX);a.y=g(a.high,
-a.origProps.y);a.negative=a.y<(this.options.threshold||0);this.zones.length&&(a.zone=a.getZone());this.chart.polar||(a.isInside=a.isTopInside="undefined"!==typeof a.plotY&&0<=a.plotY&&a.plotY<=this.yAxis.len&&0<=a.plotX&&a.plotX<=this.xAxis.len);k++}r.drawPoints.apply(this,arguments);for(k=0;k<e;){a=this.points[k];a.graphics=a.graphics||[];if(a.graphic||a.graphics[1])a.graphics[1]=a.graphic;a.graphic=a.graphics[0];a.origProps&&(p(a,a.origProps),delete a.origProps);k++}};a.defaultOptions=k(n.defaultOptions,
-m);return a}(n);d(a,"afterTranslate",function(){var g=this;"low,high"===this.pointArrayMap.join(",")&&this.points.forEach(function(a){var k=a.high,m=a.plotY;a.isNull?a.plotY=void 0:(a.plotLow=m,a.plotHigh=e(k)?g.yAxis.translate(g.dataModify?g.dataModify.modifyValue(k):k,!1,!0,void 0,!0):void 0,g.dataModify&&(a.yBottom=a.plotHigh))})},{order:0});d(a,"afterTranslate",function(){var e=this;this.points.forEach(function(g){if(e.chart.polar)e.highToXY(g),g.plotLow=g.plotY,g.tooltipPos=[((g.plotHighX||0)+
-(g.plotLowX||0))/2,((g.plotHigh||0)+(g.plotLow||0))/2];else{var a=g.pos(!1,g.plotLow),k=g.pos(!1,g.plotHigh);a&&k&&(a[0]=(a[0]+k[0])/2,a[1]=(a[1]+k[1])/2);g.tooltipPos=a}})},{order:3});p(a.prototype,{deferTranslatePolar:!0,pointArrayMap:["low","high"],pointClass:b,pointValKey:"low",setStackedPoints:c});h.registerSeriesType("arearange",a);"";return a});D(d,"Series/AreaSplineRange/AreaSplineRangeSeries.js",[d["Series/AreaRange/AreaRangeSeries.js"],d["Core/Series/SeriesRegistry.js"],d["Core/Utilities.js"]],
-function(b,c,h){var a=this&&this.__extends||function(){var a=function(b,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var e in b)b.hasOwnProperty(e)&&(a[e]=b[e])};return a(b,c)};return function(b,c){function f(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(f.prototype=c.prototype,new f)}}(),f=c.seriesTypes.spline.prototype,d=h.merge;h=h.extend;var n=function(c){function f(){var a=null!==c&&c.apply(this,arguments)||this;
-a.options=void 0;a.data=void 0;a.points=void 0;return a}a(f,c);f.defaultOptions=d(b.defaultOptions);return f}(b);h(n.prototype,{getPointSpline:f.getPointSpline});c.registerSeriesType("areasplinerange",n);"";return n});D(d,"Series/BoxPlot/BoxPlotSeries.js",[d["Series/Column/ColumnSeries.js"],d["Core/Globals.js"],d["Core/Series/SeriesRegistry.js"],d["Core/Utilities.js"]],function(b,c,h,a){var f=this&&this.__extends||function(){var a=function(b,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&
-function(a,e){a.__proto__=e}||function(a,e){for(var g in e)e.hasOwnProperty(g)&&(a[g]=e[g])};return a(b,c)};return function(b,c){function f(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(f.prototype=c.prototype,new f)}}();c=c.noop;var d=a.extend,n=a.merge,r=a.pick;a=function(a){function c(){var b=null!==a&&a.apply(this,arguments)||this;b.data=void 0;b.options=void 0;b.points=void 0;return b}f(c,a);c.prototype.pointAttribs=function(){return{}};c.prototype.translate=function(){var b=
-this.yAxis,c=this.pointArrayMap;a.prototype.translate.apply(this);this.points.forEach(function(a){c.forEach(function(g){null!==a[g]&&(a[g+"Plot"]=b.translate(a[g],0,1,0,1))});a.plotHigh=a.highPlot})};c.prototype.drawPoints=function(){var a=this,b=a.options,e=a.chart,g=e.renderer,k,c,f,h,d,E,v=0,n,I,K,x,B=!1!==a.doQuartiles,y,H=a.options.whiskerLength;a.points.forEach(function(m){var t=m.graphic,G=t?"animate":"attr",N=m.shapeArgs,L={},l={},w={},u={},C=m.color||a.color;"undefined"!==typeof m.plotY&&
-(n=Math.round(N.width),I=Math.floor(N.x),K=I+n,x=Math.round(n/2),k=Math.floor(B?m.q1Plot:m.lowPlot),c=Math.floor(B?m.q3Plot:m.lowPlot),f=Math.floor(m.highPlot),h=Math.floor(m.lowPlot),t||(m.graphic=t=g.g("point").add(a.group),m.stem=g.path().addClass("highcharts-boxplot-stem").add(t),H&&(m.whiskers=g.path().addClass("highcharts-boxplot-whisker").add(t)),B&&(m.box=g.path(void 0).addClass("highcharts-boxplot-box").add(t)),m.medianShape=g.path(void 0).addClass("highcharts-boxplot-median").add(t)),e.styledMode||
-(l.stroke=m.stemColor||b.stemColor||C,l["stroke-width"]=r(m.stemWidth,b.stemWidth,b.lineWidth),l.dashstyle=m.stemDashStyle||b.stemDashStyle||b.dashStyle,m.stem.attr(l),H&&(w.stroke=m.whiskerColor||b.whiskerColor||C,w["stroke-width"]=r(m.whiskerWidth,b.whiskerWidth,b.lineWidth),w.dashstyle=m.whiskerDashStyle||b.whiskerDashStyle||b.dashStyle,m.whiskers.attr(w)),B&&(L.fill=m.fillColor||b.fillColor||C,L.stroke=b.lineColor||C,L["stroke-width"]=b.lineWidth||0,L.dashstyle=m.boxDashStyle||b.boxDashStyle||
-b.dashStyle,m.box.attr(L)),u.stroke=m.medianColor||b.medianColor||C,u["stroke-width"]=r(m.medianWidth,b.medianWidth,b.lineWidth),u.dashstyle=m.medianDashStyle||b.medianDashStyle||b.dashStyle,m.medianShape.attr(u)),E=m.stem.strokeWidth()%2/2,v=I+x+E,t=[["M",v,c],["L",v,f],["M",v,k],["L",v,h]],m.stem[G]({d:t}),B&&(E=m.box.strokeWidth()%2/2,k=Math.floor(k)+E,c=Math.floor(c)+E,I+=E,K+=E,t=[["M",I,c],["L",I,k],["L",K,k],["L",K,c],["L",I,c],["Z"]],m.box[G]({d:t})),H&&(E=m.whiskers.strokeWidth()%2/2,f+=
-E,h+=E,y=/%$/.test(H)?x*parseFloat(H)/100:H/2,t=[["M",v-y,f],["L",v+y,f],["M",v-y,h],["L",v+y,h]],m.whiskers[G]({d:t})),d=Math.round(m.medianPlot),E=m.medianShape.strokeWidth()%2/2,d+=E,t=[["M",I,d],["L",K,d]],m.medianShape[G]({d:t}))})};c.prototype.toYData=function(a){return[a.low,a.q1,a.median,a.q3,a.high]};c.defaultOptions=n(b.defaultOptions,{threshold:null,tooltip:{pointFormat:'<span style="color:{point.color}">\u25cf</span> <b>{series.name}</b><br/>Maximum: {point.high}<br/>Upper quartile: {point.q3}<br/>Median: {point.median}<br/>Lower quartile: {point.q1}<br/>Minimum: {point.low}<br/>'},
-whiskerLength:"50%",fillColor:"#ffffff",lineWidth:1,medianWidth:2,whiskerWidth:2});return c}(b);d(a.prototype,{pointArrayMap:["low","q1","median","q3","high"],pointValKey:"high",drawDataLabels:c,setStackedPoints:c});h.registerSeriesType("boxplot",a);"";return a});D(d,"Series/Bubble/BubbleLegendDefaults.js",[],function(){return{borderColor:void 0,borderWidth:2,className:void 0,color:void 0,connectorClassName:void 0,connectorColor:void 0,connectorDistance:60,connectorWidth:1,enabled:!1,labels:{className:void 0,
-allowOverlap:!1,format:"",formatter:void 0,align:"right",style:{fontSize:"10px",color:"#000000"},x:0,y:0},maxSize:60,minSize:10,legendIndex:0,ranges:{value:void 0,borderColor:void 0,color:void 0,connectorColor:void 0},sizeBy:"area",sizeByAbsoluteValue:!1,zIndex:1,zThreshold:0}});D(d,"Series/Bubble/BubbleLegendItem.js",[d["Core/Color/Color.js"],d["Core/FormatUtilities.js"],d["Core/Globals.js"],d["Core/Utilities.js"]],function(b,c,h,a){var f=b.parse,d=h.noop,n=a.arrayMax,r=a.arrayMin,q=a.isNumber,F=
-a.merge,p=a.pick,l=a.stableSort;b=function(){function a(a,e){this.options=this.symbols=this.visible=this.selected=this.ranges=this.movementX=this.maxLabel=this.legend=this.fontMetrics=this.chart=void 0;this.setState=d;this.init(a,e)}a.prototype.init=function(a,e){this.options=a;this.visible=!0;this.chart=e.chart;this.legend=e};a.prototype.addToLegend=function(a){a.splice(this.options.legendIndex,0,this)};a.prototype.drawLegendSymbol=function(a){var g=this.chart,e=p(a.options.itemDistance,20),b=this.legendItem||
-{},c=this.options,f=c.ranges,h=c.connectorDistance;this.fontMetrics=g.renderer.fontMetrics(c.labels.style.fontSize);f&&f.length&&q(f[0].value)?(l(f,function(a,g){return g.value-a.value}),this.ranges=f,this.setOptions(),this.render(),a=this.getMaxLabelSize(),f=this.ranges[0].radius,g=2*f,h=h-f+a.width,h=0<h?h:0,this.maxLabel=a,this.movementX="left"===c.labels.align?h:0,b.labelWidth=g+h+e,b.labelHeight=g+this.fontMetrics.h/2):a.options.bubbleLegend.autoRanges=!0};a.prototype.setOptions=function(){var a=
-this.ranges,e=this.options,b=this.chart.series[e.seriesIndex],c=this.legend.baseline,h={zIndex:e.zIndex,"stroke-width":e.borderWidth},d={zIndex:e.zIndex,"stroke-width":e.connectorWidth},E={align:this.legend.options.rtl||"left"===e.labels.align?"right":"left",zIndex:e.zIndex},v=b.options.marker.fillOpacity,l=this.chart.styledMode;a.forEach(function(g,k){l||(h.stroke=p(g.borderColor,e.borderColor,b.color),h.fill=p(g.color,e.color,1!==v?f(b.color).setOpacity(v).get("rgba"):b.color),d.stroke=p(g.connectorColor,
-e.connectorColor,b.color));a[k].radius=this.getRangeRadius(g.value);a[k]=F(a[k],{center:a[0].radius-a[k].radius+c});l||F(!0,a[k],{bubbleAttribs:F(h),connectorAttribs:F(d),labelAttribs:E})},this)};a.prototype.getRangeRadius=function(a){var e=this.options;return this.chart.series[this.options.seriesIndex].getRadius.call(this,e.ranges[e.ranges.length-1].value,e.ranges[0].value,e.minSize,e.maxSize,a)};a.prototype.render=function(){var a=this.legendItem||{},e=this.chart.renderer,b=this.options.zThreshold;
-this.symbols||(this.symbols={connectors:[],bubbleItems:[],labels:[]});a.symbol=e.g("bubble-legend");a.label=e.g("bubble-legend-item");a.symbol.translateX=0;e=a.symbol.translateY=0;for(var c=this.ranges;e<c.length;e++){var f=c[e];f.value>=b&&this.renderRange(f)}a.symbol.add(a.label);a.label.add(a.group);this.hideOverlappingLabels()};a.prototype.renderRange=function(a){var e=this.options,g=e.labels,b=this.chart,c=b.series[e.seriesIndex],f=b.renderer,h=this.symbols;b=h.labels;var d=a.center,l=Math.abs(a.radius),
-I=e.connectorDistance||0,K=g.align,x=e.connectorWidth,B=this.ranges[0].radius||0,y=d-l-e.borderWidth/2+x/2,H=this.fontMetrics;H=H.f/2-(H.h-H.f)/2;var t=f.styledMode;I=this.legend.options.rtl||"left"===K?-I:I;"center"===K&&(I=0,e.connectorDistance=0,a.labelAttribs.align="center");K=y+e.labels.y;var n=B+I+e.labels.x;h.bubbleItems.push(f.circle(B,d+((y%1?1:.5)-(x%2?0:.5)),l).attr(t?{}:a.bubbleAttribs).addClass((t?"highcharts-color-"+c.colorIndex+" ":"")+"highcharts-bubble-legend-symbol "+(e.className||
-"")).add(this.legendItem.symbol));h.connectors.push(f.path(f.crispLine([["M",B,y],["L",B+I,y]],e.connectorWidth)).attr(t?{}:a.connectorAttribs).addClass((t?"highcharts-color-"+this.options.seriesIndex+" ":"")+"highcharts-bubble-legend-connectors "+(e.connectorClassName||"")).add(this.legendItem.symbol));a=f.text(this.formatLabel(a),n,K+H).attr(t?{}:a.labelAttribs).css(t?{}:g.style).addClass("highcharts-bubble-legend-labels "+(e.labels.className||"")).add(this.legendItem.symbol);b.push(a);a.placed=
-!0;a.alignAttr={x:n,y:K+H}};a.prototype.getMaxLabelSize=function(){var a,e;this.symbols.labels.forEach(function(g){e=g.getBBox(!0);a=a?e.width>a.width?e:a:e});return a||{}};a.prototype.formatLabel=function(a){var e=this.options,g=e.labels.formatter;e=e.labels.format;var b=this.chart.numberFormatter;return e?c.format(e,a):g?g.call(a):b(a.value,1)};a.prototype.hideOverlappingLabels=function(){var a=this.chart,e=this.symbols;!this.options.labels.allowOverlap&&e&&(a.hideOverlappingLabels(e.labels),e.labels.forEach(function(a,
-g){a.newOpacity?a.newOpacity!==a.oldOpacity&&e.connectors[g].show():e.connectors[g].hide()}))};a.prototype.getRanges=function(){var a=this.legend.bubbleLegend,e=a.options.ranges,b,c=Number.MAX_VALUE,f=-Number.MAX_VALUE;a.chart.series.forEach(function(a){a.isBubble&&!a.ignoreSeries&&(b=a.zData.filter(q),b.length&&(c=p(a.options.zMin,Math.min(c,Math.max(r(b),!1===a.options.displayNegative?a.options.zThreshold:-Number.MAX_VALUE))),f=p(a.options.zMax,Math.max(f,n(b)))))});var h=c===f?[{value:f}]:[{value:c},
-{value:(c+f)/2},{value:f,autoRanges:!0}];e.length&&e[0].radius&&h.reverse();h.forEach(function(a,g){e&&e[g]&&(h[g]=F(e[g],a))});return h};a.prototype.predictBubbleSizes=function(){var a=this.chart,e=this.fontMetrics,b=a.legend.options,c=b.floating,f=(b="horizontal"===b.layout)?a.legend.lastLineHeight:0,h=a.plotSizeX,d=a.plotSizeY,v=a.series[this.options.seriesIndex],l=v.getPxExtremes();a=Math.ceil(l.minPxSize);l=Math.ceil(l.maxPxSize);var I=Math.min(d,h);v=v.options.maxSize;if(c||!/%$/.test(v))e=
-l;else if(v=parseFloat(v),e=(I+f-e.h/2)*v/100/(v/100+1),b&&d-e>=h||!b&&h-e>=d)e=l;return[a,Math.ceil(e)]};a.prototype.updateRanges=function(a,e){var b=this.legend.options.bubbleLegend;b.minSize=a;b.maxSize=e;b.ranges=this.getRanges()};a.prototype.correctSizes=function(){var a=this.legend,e=this.chart.series[this.options.seriesIndex].getPxExtremes();1<Math.abs(Math.ceil(e.maxPxSize)-this.options.maxSize)&&(this.updateRanges(this.options.minSize,e.maxPxSize),a.render())};return a}();"";return b});D(d,
-"Series/Bubble/BubbleLegendComposition.js",[d["Series/Bubble/BubbleLegendDefaults.js"],d["Series/Bubble/BubbleLegendItem.js"],d["Core/Defaults.js"],d["Core/Utilities.js"]],function(b,c,h,a){function f(a,b,g){var c=this.legend,m=0<=d(this),f;if(c&&c.options.enabled&&c.bubbleLegend&&c.options.bubbleLegend.autoRanges&&m){var k=c.bubbleLegend.options;m=c.bubbleLegend.predictBubbleSizes();c.bubbleLegend.updateRanges(m[0],m[1]);k.placed||(c.group.placed=!1,c.allItems.forEach(function(a){f=a.legendItem||
-{};f.group&&(f.group.translateY=null)}));c.render();this.getMargins();this.axes.forEach(function(a){a.visible&&a.render();k.placed||(a.setScale(),a.updateNames(),e(a.ticks,function(a){a.isNew=!0;a.isNewLabel=!0}))});k.placed=!0;this.getMargins();a.call(this,b,g);c.bubbleLegend.correctSizes();F(c,n(c))}else a.call(this,b,g),c&&c.options.enabled&&c.bubbleLegend&&(c.render(),F(c,n(c)))}function d(a){a=a.series;for(var e=0;e<a.length;){if(a[e]&&a[e].isBubble&&a[e].visible&&a[e].zData.length)return e;
-e++}return-1}function n(a){a=a.allItems;var e=[],b=a.length,g,c=0;for(g=0;g<b;g++){var f=a[g].legendItem||{};var k=(a[g+1]||{}).legendItem||{};f.labelHeight&&(a[g].itemHeight=f.labelHeight);if(a[g]===a[b-1]||f.y!==k.y){e.push({height:0});f=e[e.length-1];for(c;c<=g;c++)a[c].itemHeight>f.height&&(f.height=a[c].itemHeight);f.step=g}}return e}function r(a){var e=this.bubbleLegend,b=this.options,g=b.bubbleLegend,f=d(this.chart);e&&e.ranges&&e.ranges.length&&(g.ranges.length&&(g.autoRanges=!!g.ranges[0].autoRanges),
-this.destroyItem(e));0<=f&&b.enabled&&g.enabled&&(g.seriesIndex=f,this.bubbleLegend=new c(g,this),this.bubbleLegend.addToLegend(a.allItems))}function q(){var a=this.chart,e=this.visible,b=this.chart.legend;b&&b.bubbleLegend&&(this.visible=!e,this.ignoreSeries=e,a=0<=d(a),b.bubbleLegend.visible!==a&&(b.update({bubbleLegend:{enabled:a}}),b.bubbleLegend.visible=a),this.visible=e)}function F(a,e){var b=a.options.rtl,g,c,f,k,m=0;a.allItems.forEach(function(a,x){k=a.legendItem||{};if(k.group){g=k.group.translateX||
-0;c=k.y||0;if((f=a.movementX)||b&&a.ranges)f=b?g-a.options.maxSize/2:g+f,k.group.attr({translateX:f});x>e[m].step&&m++;k.group.attr({translateY:Math.round(c+e[m].height/2)});k.y=c+e[m].height/2}})}var p=h.setOptions,l=a.addEvent,e=a.objectEach,g=a.wrap,k=[];return{compose:function(a,e,c){-1===k.indexOf(a)&&(k.push(a),p({legend:{bubbleLegend:b}}),g(a.prototype,"drawChartBox",f));-1===k.indexOf(e)&&(k.push(e),l(e,"afterGetAllItems",r));-1===k.indexOf(c)&&(k.push(c),l(c,"legendItemClick",q))}}});D(d,
-"Series/Bubble/BubblePoint.js",[d["Core/Series/Point.js"],d["Core/Series/SeriesRegistry.js"],d["Core/Utilities.js"]],function(b,c,h){var a=this&&this.__extends||function(){var a=function(b,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return a(b,c)};return function(b,c){function f(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(f.prototype=c.prototype,new f)}}();h=h.extend;
-c=function(c){function f(){var a=null!==c&&c.apply(this,arguments)||this;a.options=void 0;a.series=void 0;return a}a(f,c);f.prototype.haloPath=function(a){return b.prototype.haloPath.call(this,0===a?0:(this.marker?this.marker.radius||0:0)+a)};return f}(c.seriesTypes.scatter.prototype.pointClass);h(c.prototype,{ttBelow:!1});return c});D(d,"Series/Bubble/BubbleSeries.js",[d["Series/Bubble/BubbleLegendComposition.js"],d["Series/Bubble/BubblePoint.js"],d["Core/Color/Color.js"],d["Core/Globals.js"],d["Core/Series/SeriesRegistry.js"],
-d["Core/Utilities.js"]],function(b,c,h,a,f,d){function n(){var a=this,e=this.len,b=this.chart,g=this.isXAxis,c=g?"xData":"yData",f=this.min,k=this.max-f,m=0,d=e,h=e/k,l;this.series.forEach(function(e){if(e.bubblePadding&&(e.visible||!b.options.chart.ignoreHiddenSeries)){l=a.allowZoomOutside=!0;var x=e[c];g&&((e.onPoint||e).getRadii(0,0,e),e.onPoint&&(e.radii=e.onPoint.radii));if(0<k)for(var B=x.length;B--;)if(N(x[B])&&a.dataMin<=x[B]&&x[B]<=a.max){var y=e.radii&&e.radii[B]||0;m=Math.min((x[B]-f)*
-h-y,m);d=Math.max((x[B]-f)*h+y,d)}}});l&&0<k&&!this.logarithmic&&(d-=e,h*=(e+Math.max(0,m)-Math.min(d,e))/e,[["min","userMin",m],["max","userMax",d]].forEach(function(e){"undefined"===typeof L(a.options[e[0]],a[e[1]])&&(a[e[0]]+=e[2]/h)}))}var w=this&&this.__extends||function(){var a=function(e,b){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,e){a.__proto__=e}||function(a,e){for(var b in e)e.hasOwnProperty(b)&&(a[b]=e[b])};return a(e,b)};return function(e,b){function g(){this.constructor=
-e}a(e,b);e.prototype=null===b?Object.create(b):(g.prototype=b.prototype,new g)}}(),q=h.parse;h=a.noop;var F=f.series,p=f.seriesTypes;a=p.column.prototype;var l=p.scatter;p=d.addEvent;var e=d.arrayMax,g=d.arrayMin,k=d.clamp,m=d.extend,N=d.isNumber,G=d.merge,L=d.pick,E=[];d=function(a){function c(){var e=null!==a&&a.apply(this,arguments)||this;e.data=void 0;e.maxPxSize=void 0;e.minPxSize=void 0;e.options=void 0;e.points=void 0;e.radii=void 0;e.yData=void 0;e.zData=void 0;return e}w(c,a);c.compose=function(a,
-e,c,g){b.compose(e,c,g);-1===E.indexOf(a)&&(E.push(a),a.prototype.beforePadding=n)};c.prototype.animate=function(a){!a&&this.points.length<this.options.animationLimit&&this.points.forEach(function(a){var e=a.graphic;e&&e.width&&(this.hasRendered||e.attr({x:a.plotX,y:a.plotY,width:1,height:1}),e.animate(this.markerAttribs(a),this.options.animation))},this)};c.prototype.getRadii=function(){var a=this,e=this.zData,b=this.yData,c=[],g=this.chart.bubbleZExtremes;var f=this.getPxExtremes();var k=f.minPxSize,
-m=f.maxPxSize;if(!g){var d=Number.MAX_VALUE,h=-Number.MAX_VALUE,l;this.chart.series.forEach(function(e){e.bubblePadding&&(e.visible||!a.chart.options.chart.ignoreHiddenSeries)&&(e=(e.onPoint||e).getZExtremes())&&(d=Math.min(d||e.zMin,e.zMin),h=Math.max(h||e.zMax,e.zMax),l=!0)});l?(g={zMin:d,zMax:h},this.chart.bubbleZExtremes=g):g={zMin:0,zMax:0}}var n=0;for(f=e.length;n<f;n++){var v=e[n];c.push(this.getRadius(g.zMin,g.zMax,k,m,v,b&&b[n]))}this.radii=c};c.prototype.getRadius=function(a,e,b,c,g,f){var x=
-this.options,k="width"!==x.sizeBy,m=x.zThreshold,d=e-a,h=.5;if(null===f||null===g)return null;if(N(g)){x.sizeByAbsoluteValue&&(g=Math.abs(g-m),d=Math.max(e-m,Math.abs(a-m)),a=0);if(g<a)return b/2-1;0<d&&(h=(g-a)/d)}k&&0<=h&&(h=Math.sqrt(h));return Math.ceil(b+h*(c-b))/2};c.prototype.hasData=function(){return!!this.processedXData.length};c.prototype.pointAttribs=function(a,e){var b=this.options.marker.fillOpacity;a=F.prototype.pointAttribs.call(this,a,e);1!==b&&(a.fill=q(a.fill).setOpacity(b).get("rgba"));
-return a};c.prototype.translate=function(){a.prototype.translate.call(this);this.getRadii();this.translateBubble()};c.prototype.translateBubble=function(){for(var a=this.data,e=this.radii,b=this.getPxExtremes().minPxSize,c=a.length;c--;){var g=a[c],f=e?e[c]:0;N(f)&&f>=b/2?(g.marker=m(g.marker,{radius:f,width:2*f,height:2*f}),g.dlBox={x:g.plotX-f,y:g.plotY-f,width:2*f,height:2*f}):(g.shapeArgs=g.plotY=g.dlBox=void 0,g.isInside=!1)}};c.prototype.getPxExtremes=function(){var a=Math.min(this.chart.plotWidth,
-this.chart.plotHeight),e=function(e){if("string"===typeof e){var b=/%$/.test(e);e=parseInt(e,10)}return b?a*e/100:e},b=e(L(this.options.minSize,8));e=Math.max(e(L(this.options.maxSize,"20%")),b);return{minPxSize:b,maxPxSize:e}};c.prototype.getZExtremes=function(){var a=this.options,b=(this.zData||[]).filter(N);if(b.length){var c=L(a.zMin,k(g(b),!1===a.displayNegative?a.zThreshold||0:-Number.MAX_VALUE,Number.MAX_VALUE));a=L(a.zMax,e(b));if(N(c)&&N(a))return{zMin:c,zMax:a}}};c.defaultOptions=G(l.defaultOptions,
-{dataLabels:{formatter:function(){var a=this.series.chart.numberFormatter,e=this.point.z;return N(e)?a(e,-1):""},inside:!0,verticalAlign:"middle"},animationLimit:250,marker:{lineColor:null,lineWidth:1,fillOpacity:.5,radius:null,states:{hover:{radiusPlus:0}},symbol:"circle"},minSize:8,maxSize:"20%",softThreshold:!1,states:{hover:{halo:{size:5}}},tooltip:{pointFormat:"({point.x}, {point.y}), Size: {point.z}"},turboThreshold:0,zThreshold:0,zoneAxis:"z"});return c}(l);m(d.prototype,{alignDataLabel:a.alignDataLabel,
-applyZones:h,bubblePadding:!0,buildKDTree:h,directTouch:!0,isBubble:!0,pointArrayMap:["y","z"],pointClass:c,parallelArrays:["x","y","z"],trackerGroups:["group","dataLabelsGroup"],specialGroup:"group",zoneAxis:"z"});p(d,"updatedData",function(a){delete a.target.chart.bubbleZExtremes});p(d,"remove",function(a){delete a.target.chart.bubbleZExtremes});f.registerSeriesType("bubble",d);"";"";return d});D(d,"Series/ColumnRange/ColumnRangePoint.js",[d["Core/Series/SeriesRegistry.js"],d["Core/Utilities.js"]],
-function(b,c){var h=this&&this.__extends||function(){var a=function(b,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return a(b,c)};return function(b,c){function f(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(f.prototype=c.prototype,new f)}}(),a=b.seriesTypes;b=a.column.prototype.pointClass.prototype;var f=c.extend,d=c.isNumber;c=function(a){function b(){var b=null!==a&&
-a.apply(this,arguments)||this;b.options=void 0;b.series=void 0;return b}h(b,a);b.prototype.isValid=function(){return d(this.low)};return b}(a.arearange.prototype.pointClass);f(c.prototype,{setState:b.setState});return c});D(d,"Series/ColumnRange/ColumnRangeSeries.js",[d["Series/ColumnRange/ColumnRangePoint.js"],d["Core/Globals.js"],d["Core/Series/SeriesRegistry.js"],d["Core/Utilities.js"]],function(b,c,d,a){var f=this&&this.__extends||function(){var a=function(e,b){a=Object.setPrototypeOf||{__proto__:[]}instanceof
-Array&&function(a,e){a.__proto__=e}||function(a,e){for(var b in e)e.hasOwnProperty(b)&&(a[b]=e[b])};return a(e,b)};return function(e,b){function c(){this.constructor=e}a(e,b);e.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)}}();c=c.noop;var h=d.seriesTypes,n=h.arearange,r=h.column,q=h.column.prototype,F=a.clamp;h=a.extend;var p=a.isNumber,l=a.merge,e=a.pick,g={pointRange:null,marker:null,states:{hover:{halo:!1}}};a=function(a){function b(){return null!==a&&a.apply(this,arguments)||
-this}f(b,a);b.prototype.setOptions=function(){l(!0,arguments[0],{stacking:void 0});return n.prototype.setOptions.apply(this,arguments)};b.prototype.translate=function(){var a=this,b=this.yAxis,c=this.xAxis,g=c.startAngleRad,f=this.chart,k=this.xAxis.isRadial,d=Math.max(f.chartWidth,f.chartHeight)+999,h,x,m,l;q.translate.apply(this);this.points.forEach(function(B){var t=B.shapeArgs||{},y=a.options.minPointLength,n=B.plotY,H=b.translate(B.high,0,1,0,1);p(H)&&p(n)&&(B.plotHigh=F(H,-d,d),B.plotLow=F(n,
--d,d),l=B.plotHigh,h=e(B.rectPlotY,B.plotY)-B.plotHigh,Math.abs(h)<y?(x=y-h,h+=x,l-=x/2):0>h&&(h*=-1,l-=h),k&&a.polar?(m=B.barX+g,B.shapeType="arc",B.shapeArgs=a.polar.arc(l+h,l,m,m+B.pointWidth)):(t.height=h,t.y=l,y=t.x,y=void 0===y?0:y,t=t.width,t=void 0===t?0:t,B.tooltipPos=f.inverted?[b.len+b.pos-f.plotLeft-l-h/2,c.len+c.pos-f.plotTop-y-t/2,h]:[c.left-f.plotLeft+y+t/2,b.pos-f.plotTop+l+h/2,h]))})};b.prototype.pointAttribs=function(){return q.pointAttribs.apply(this,arguments)};b.prototype.translate3dPoints=
-function(){return q.translate3dPoints.apply(this,arguments)};b.prototype.translate3dShapes=function(){return q.translate3dShapes.apply(this,arguments)};b.defaultOptions=l(r.defaultOptions,n.defaultOptions,g);return b}(n);h(a.prototype,{directTouch:!0,pointClass:b,trackerGroups:["group","dataLabelsGroup"],adjustForMissingColumns:q.adjustForMissingColumns,animate:q.animate,crispCol:q.crispCol,drawGraph:c,drawPoints:q.drawPoints,getSymbol:c,drawTracker:q.drawTracker,getColumnMetrics:q.getColumnMetrics});
-d.registerSeriesType("columnrange",a);"";return a});D(d,"Series/ColumnPyramid/ColumnPyramidSeries.js",[d["Series/Column/ColumnSeries.js"],d["Core/Series/SeriesRegistry.js"],d["Core/Utilities.js"]],function(b,c,h){var a=this&&this.__extends||function(){var a=function(b,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,e){a.__proto__=e}||function(a,e){for(var b in e)e.hasOwnProperty(b)&&(a[b]=e[b])};return a(b,c)};return function(b,c){function f(){this.constructor=b}a(b,c);b.prototype=
-null===c?Object.create(c):(f.prototype=c.prototype,new f)}}(),f=b.prototype,d=h.clamp,n=h.merge,r=h.pick;h=function(c){function h(){var a=null!==c&&c.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}a(h,c);h.prototype.translate=function(){var a=this,b=a.chart,e=a.options,c=a.dense=2>a.closestPointRange*a.xAxis.transA;c=a.borderWidth=r(e.borderWidth,c?0:1);var k=a.yAxis,h=e.threshold,n=a.translatedThreshold=k.getThreshold(h),G=r(e.minPointLength,5),w=a.getColumnMetrics(),
-E=w.width,v=a.barW=Math.max(E,1+2*c),q=a.pointXOffset=w.offset;b.inverted&&(n-=.5);e.pointPadding&&(v=Math.ceil(v));f.translate.apply(a);a.points.forEach(function(c){var g=r(c.yBottom,n),f=999+Math.abs(g),m=d(c.plotY,-f,k.len+f);f=c.plotX+q;var y=v/2,l=Math.min(m,g);g=Math.max(m,g)-l;var t;c.barX=f;c.pointWidth=E;c.tooltipPos=b.inverted?[k.len+k.pos-b.plotLeft-m,a.xAxis.len-f-y,g]:[f+y,m+k.pos-b.plotTop,g];m=h+(c.total||c.y);"percent"===e.stacking&&(m=h+(0>c.y)?-100:100);m=k.toPixels(m,!0);var J=
-(t=b.plotHeight-m-(b.plotHeight-n))?y*(l-m)/t:0;var w=t?y*(l+g-m)/t:0;t=f-J+y;J=f+J+y;var p=f+w+y;w=f-w+y;var A=l-G;var F=l+g;0>c.y&&(A=l,F=l+g+G);b.inverted&&(p=k.width-l,t=m-(k.width-n),J=y*(m-p)/t,w=y*(m-(p-g))/t,t=f+y+J,J=t-2*J,p=f-w+y,w=f+w+y,A=l,F=l+g-G,0>c.y&&(F=l+g+G));c.shapeType="path";c.shapeArgs={x:t,y:A,width:J-t,height:g,d:[["M",t,A],["L",J,A],["L",p,F],["L",w,F],["Z"]]}})};h.defaultOptions=n(b.defaultOptions,{});return h}(b);c.registerSeriesType("columnpyramid",h);"";return h});D(d,
-"Series/ErrorBar/ErrorBarSeriesDefaults.js",[],function(){"";return{color:"#000000",grouping:!1,linkedTo:":previous",tooltip:{pointFormat:'<span style="color:{point.color}">\u25cf</span> {series.name}: <b>{point.low}</b> - <b>{point.high}</b><br/>'},whiskerWidth:null}});D(d,"Series/ErrorBar/ErrorBarSeries.js",[d["Series/BoxPlot/BoxPlotSeries.js"],d["Series/Column/ColumnSeries.js"],d["Series/ErrorBar/ErrorBarSeriesDefaults.js"],d["Core/Series/SeriesRegistry.js"],d["Core/Utilities.js"]],function(b,
-c,h,a,f){var d=this&&this.__extends||function(){var a=function(b,e){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,e){a.__proto__=e}||function(a,e){for(var b in e)e.hasOwnProperty(b)&&(a[b]=e[b])};return a(b,e)};return function(b,e){function c(){this.constructor=b}a(b,e);b.prototype=null===e?Object.create(e):(c.prototype=e.prototype,new c)}}(),n=a.seriesTypes.arearange,r=f.addEvent,q=f.merge;f=f.extend;var F=function(a){function f(){var e=null!==a&&a.apply(this,arguments)||this;
-e.data=void 0;e.options=void 0;e.points=void 0;return e}d(f,a);f.prototype.getColumnMetrics=function(){return this.linkedParent&&this.linkedParent.columnMetrics||c.prototype.getColumnMetrics.call(this)};f.prototype.drawDataLabels=function(){var a=this.pointValKey;n&&(n.prototype.drawDataLabels.call(this),this.data.forEach(function(e){e.y=e[a]}))};f.prototype.toYData=function(a){return[a.low,a.high]};f.defaultOptions=q(b.defaultOptions,h);return f}(b);r(F,"afterTranslate",function(){this.points.forEach(function(a){a.plotLow=
-a.plotY})},{order:0});f(F.prototype,{pointArrayMap:["low","high"],pointValKey:"high",doQuartiles:!1});a.registerSeriesType("errorbar",F);return F});D(d,"Series/Gauge/GaugePoint.js",[d["Core/Series/SeriesRegistry.js"]],function(b){var c=this&&this.__extends||function(){var b=function(a,c){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return b(a,c)};return function(a,c){function f(){this.constructor=
-a}b(a,c);a.prototype=null===c?Object.create(c):(f.prototype=c.prototype,new f)}}();return function(b){function a(){var a=null!==b&&b.apply(this,arguments)||this;a.options=void 0;a.series=void 0;a.shapeArgs=void 0;return a}c(a,b);a.prototype.setState=function(a){this.state=a};return a}(b.series.prototype.pointClass)});D(d,"Series/Gauge/GaugeSeries.js",[d["Series/Gauge/GaugePoint.js"],d["Core/Globals.js"],d["Core/Series/SeriesRegistry.js"],d["Core/Utilities.js"]],function(b,c,h,a){var f=this&&this.__extends||
-function(){var a=function(e,b){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,e){a.__proto__=e}||function(a,e){for(var b in e)e.hasOwnProperty(b)&&(a[b]=e[b])};return a(e,b)};return function(e,b){function c(){this.constructor=e}a(e,b);e.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)}}();c=c.noop;var d=h.series,n=h.seriesTypes.column,r=a.clamp,q=a.isNumber,F=a.extend,p=a.merge,l=a.pick,e=a.pInt;a=function(a){function b(){var e=null!==a&&a.apply(this,arguments)||
-this;e.data=void 0;e.points=void 0;e.options=void 0;e.yAxis=void 0;return e}f(b,a);b.prototype.translate=function(){var a=this.yAxis,b=this.options,c=a.center;this.generatePoints();this.points.forEach(function(g){var f=p(b.dial,g.dial),d=e(f.radius)*c[2]/200,h=e(f.baseLength)*d/100,k=e(f.rearLength)*d/100,m=f.baseWidth,x=f.topWidth,B=b.overshoot,y=a.startAngleRad+a.translate(g.y,void 0,void 0,void 0,!0);if(q(B)||!1===b.wrap)B=q(B)?B/180*Math.PI:0,y=r(y,a.startAngleRad-B,a.endAngleRad+B);y=180*y/Math.PI;
-g.shapeType="path";g.shapeArgs={d:f.path||[["M",-k,-m/2],["L",h,-m/2],["L",d,-x/2],["L",d,x/2],["L",h,m/2],["L",-k,m/2],["Z"]],translateX:c[0],translateY:c[1],rotation:y};g.plotX=c[0];g.plotY=c[1]})};b.prototype.drawPoints=function(){var a=this,e=a.chart,b=a.yAxis.center,c=a.pivot,g=a.options,f=g.pivot,d=e.renderer;a.points.forEach(function(b){var c=b.graphic,f=b.shapeArgs,h=f.d,k=p(g.dial,b.dial);c?(c.animate(f),f.d=h):b.graphic=d[b.shapeType](f).attr({rotation:f.rotation,zIndex:1}).addClass("highcharts-dial").add(a.group);
-if(!e.styledMode)b.graphic[c?"animate":"attr"]({stroke:k.borderColor,"stroke-width":k.borderWidth,fill:k.backgroundColor})});c?c.animate({translateX:b[0],translateY:b[1]}):f&&(a.pivot=d.circle(0,0,f.radius).attr({zIndex:2}).addClass("highcharts-pivot").translate(b[0],b[1]).add(a.group),e.styledMode||a.pivot.attr({fill:f.backgroundColor,stroke:f.borderColor,"stroke-width":f.borderWidth}))};b.prototype.animate=function(a){var e=this;a||e.points.forEach(function(a){var b=a.graphic;b&&(b.attr({rotation:180*
-e.yAxis.startAngleRad/Math.PI}),b.animate({rotation:a.shapeArgs.rotation},e.options.animation))})};b.prototype.render=function(){this.group=this.plotGroup("group","series",this.visible?"inherit":"hidden",this.options.zIndex,this.chart.seriesGroup);d.prototype.render.call(this);this.group.clip(this.chart.clipRect)};b.prototype.setData=function(a,e){d.prototype.setData.call(this,a,!1);this.processData();this.generatePoints();l(e,!0)&&this.chart.redraw()};b.prototype.hasData=function(){return!!this.points.length};
-b.defaultOptions=p(d.defaultOptions,{dataLabels:{borderColor:"#cccccc",borderRadius:3,borderWidth:1,crop:!1,defer:!1,enabled:!0,verticalAlign:"top",y:15,zIndex:2},dial:{backgroundColor:"#000000",baseLength:"70%",baseWidth:3,borderColor:"#cccccc",borderWidth:0,radius:"80%",rearLength:"10%",topWidth:1},pivot:{radius:5,borderWidth:0,borderColor:"#cccccc",backgroundColor:"#000000"},tooltip:{headerFormat:""},showInLegend:!1});return b}(d);F(a.prototype,{angular:!0,directTouch:!0,drawGraph:c,drawTracker:n.prototype.drawTracker,
-fixedBox:!0,forceDL:!0,noSharedTooltip:!0,pointClass:b,trackerGroups:["group","dataLabelsGroup"]});h.registerSeriesType("gauge",a);"";return a});D(d,"Series/DragNodesComposition.js",[d["Core/Utilities.js"]],function(b){function c(){var a=this,b,c,h;a.container&&(b=d(a.container,"mousedown",function(b){var f=a.hoverPoint;f&&f.series&&f.series.hasDraggableNodes&&f.series.options.draggable&&(f.series.onMouseDown(f,b),c=d(a.container,"mousemove",function(a){return f&&f.series&&f.series.onMouseMove(f,
-a)}),h=d(a.container.ownerDocument,"mouseup",function(a){c();h();return f&&f.series&&f.series.onMouseUp(f,a)}))}));d(a,"destroy",function(){b()})}var d=b.addEvent,a=[];return{compose:function(b){-1===a.indexOf(b)&&(a.push(b),d(b,"load",c))},onMouseDown:function(a,b){b=this.chart.pointer.normalize(b);a.fixedPosition={chartX:b.chartX,chartY:b.chartY,plotX:a.plotX,plotY:a.plotY};a.inDragMode=!0},onMouseMove:function(a,b){if(a.fixedPosition&&a.inDragMode){var c=this.chart,f=c.pointer.normalize(b);b=a.fixedPosition.chartX-
-f.chartX;f=a.fixedPosition.chartY-f.chartY;var d=c.graphLayoutsLookup,h=void 0,w=void 0;if(5<Math.abs(b)||5<Math.abs(f))h=a.fixedPosition.plotX-b,w=a.fixedPosition.plotY-f,c.isInsidePlot(h,w)&&(a.plotX=h,a.plotY=w,a.hasDragged=!0,this.redrawHalo(a),d.forEach(function(a){a.restartSimulation()}))}},onMouseUp:function(a,b){a.fixedPosition&&(a.hasDragged&&(this.layout.enableSimulation?this.layout.start():this.chart.redraw()),a.inDragMode=a.hasDragged=!1,this.options.fixedDraggable||delete a.fixedPosition)},
-redrawHalo:function(a){a&&this.halo&&this.halo.attr({d:a.haloPath(this.options.states.hover.halo.size)})}}});D(d,"Series/GraphLayoutComposition.js",[d["Core/Animation/AnimationUtilities.js"],d["Core/Utilities.js"]],function(b,c){function d(){this.graphLayoutsLookup&&(this.graphLayoutsLookup.forEach(function(a){a.updateSimulation()}),this.redraw())}function a(){this.graphLayoutsLookup&&(this.graphLayoutsLookup.forEach(function(a){a.updateSimulation(!1)}),this.redraw())}function f(){this.graphLayoutsLookup&&
-this.graphLayoutsLookup.forEach(function(a){a.stop()})}function w(){var a=!1,b=function(e){e.maxIterations--&&isFinite(e.temperature)&&!e.isStable()&&!e.enableSimulation&&(e.beforeStep&&e.beforeStep(),e.step(),c=!1,a=!0)};if(this.graphLayoutsLookup){n(!1,this);for(this.graphLayoutsLookup.forEach(function(a){return a.start()});!c;){var c=!0;this.graphLayoutsLookup.forEach(b)}a&&this.series.forEach(function(a){a&&a.layout&&a.render()})}}var n=b.setAnimation,r=c.addEvent,q=[];return{compose:function(b){q.indexOf(b)&&
-(q.push(b),r(b,"afterPrint",d),r(b,"beforePrint",a),r(b,"predraw",f),r(b,"render",w))},integrations:{},layouts:{}}});D(d,"Series/PackedBubble/PackedBubblePoint.js",[d["Core/Chart/Chart.js"],d["Core/Series/Point.js"],d["Core/Series/SeriesRegistry.js"]],function(b,c,d){var a=this&&this.__extends||function(){var a=function(b,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return a(b,c)};return function(b,
-c){function f(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(f.prototype=c.prototype,new f)}}();return function(f){function d(){var a=null!==f&&f.apply(this,arguments)||this;a.degree=NaN;a.mass=NaN;a.radius=NaN;a.options=void 0;a.series=void 0;a.value=null;return a}a(d,f);d.prototype.destroy=function(){this.series.layout&&this.series.layout.removeElementFromCollection(this,this.series.layout.nodes);return c.prototype.destroy.apply(this,arguments)};d.prototype.firePointEvent=function(){var a=
-this.series.options;if(this.isParentNode&&a.parentNode){var b=a.allowPointSelect;a.allowPointSelect=a.parentNode.allowPointSelect;c.prototype.firePointEvent.apply(this,arguments);a.allowPointSelect=b}else c.prototype.firePointEvent.apply(this,arguments)};d.prototype.select=function(){var a=this.series.chart;this.isParentNode?(a.getSelectedPoints=a.getSelectedParentNodes,c.prototype.select.apply(this,arguments),a.getSelectedPoints=b.prototype.getSelectedPoints):c.prototype.select.apply(this,arguments)};
-return d}(d.seriesTypes.bubble.prototype.pointClass)});D(d,"Series/PackedBubble/PackedBubbleSeriesDefaults.js",[d["Core/Utilities.js"]],function(b){var c=b.isNumber;"";return{minSize:"10%",maxSize:"50%",sizeBy:"area",zoneAxis:"y",crisp:!1,tooltip:{pointFormat:"Value: {point.value}"},draggable:!0,useSimulation:!0,parentNode:{allowPointSelect:!1},dataLabels:{formatter:function(){var b=this.series.chart.numberFormatter,a=this.point.value;return c(a)?b(a,-1):""},parentNodeFormatter:function(){return this.name},
-parentNodeTextPath:{enabled:!0},padding:0,style:{transition:"opacity 2000ms"}},layoutAlgorithm:{initialPositions:"circle",initialPositionRadius:20,bubblePadding:5,parentNodeLimit:!1,seriesInteraction:!0,dragBetweenSeries:!1,parentNodeOptions:{maxIterations:400,gravitationalConstant:.03,maxSpeed:50,initialPositionRadius:100,seriesInteraction:!0,marker:{fillColor:null,fillOpacity:1,lineWidth:null,lineColor:null,symbol:"circle"}},enableSimulation:!0,type:"packedbubble",integration:"packedbubble",maxIterations:1E3,
-splitSeries:!1,maxSpeed:5,gravitationalConstant:.01,friction:-.981}}});D(d,"Series/Networkgraph/VerletIntegration.js",[],function(){return{attractive:function(b,c,d){var a=b.getMass(),f=-d.x*c*this.diffTemperature;c=-d.y*c*this.diffTemperature;b.fromNode.fixedPosition||(b.fromNode.plotX-=f*a.fromNode/b.fromNode.degree,b.fromNode.plotY-=c*a.fromNode/b.fromNode.degree);b.toNode.fixedPosition||(b.toNode.plotX+=f*a.toNode/b.toNode.degree,b.toNode.plotY+=c*a.toNode/b.toNode.degree)},attractiveForceFunction:function(b,
-c){return(c-b)/b},barycenter:function(){var b=this.options.gravitationalConstant,c=this.barycenter.xFactor,d=this.barycenter.yFactor;c=(c-(this.box.left+this.box.width)/2)*b;d=(d-(this.box.top+this.box.height)/2)*b;this.nodes.forEach(function(a){a.fixedPosition||(a.plotX-=c/a.mass/a.degree,a.plotY-=d/a.mass/a.degree)})},getK:function(b){return Math.pow(b.box.width*b.box.height/b.nodes.length,.5)},integrate:function(b,c){var d=-b.options.friction,a=b.options.maxSpeed,f=(c.plotX+c.dispX-c.prevX)*d;
-d*=c.plotY+c.dispY-c.prevY;var w=Math.abs,n=w(f)/(f||1);w=w(d)/(d||1);f=n*Math.min(a,Math.abs(f));d=w*Math.min(a,Math.abs(d));c.prevX=c.plotX+c.dispX;c.prevY=c.plotY+c.dispY;c.plotX+=f;c.plotY+=d;c.temperature=b.vectorLength({x:f,y:d})},repulsive:function(b,c,d){c=c*this.diffTemperature/b.mass/b.degree;b.fixedPosition||(b.plotX+=d.x*c,b.plotY+=d.y*c)},repulsiveForceFunction:function(b,c){return(c-b)/b*(c>b?1:0)}}});D(d,"Series/PackedBubble/PackedBubbleIntegration.js",[d["Core/Globals.js"],d["Series/Networkgraph/VerletIntegration.js"]],
-function(b,c){return{barycenter:function(){for(var b=this.options.gravitationalConstant,a=this.box,c=this.nodes,d,n,r=0;r<c.length;r++){var q=c[r];this.options.splitSeries&&!q.isParentNode?(d=q.series.parentNode.plotX,n=q.series.parentNode.plotY):(d=a.width/2,n=a.height/2);q.fixedPosition||(q.plotX-=(q.plotX-d)*b/(q.mass*Math.sqrt(c.length)),q.plotY-=(q.plotY-n)*b/(q.mass*Math.sqrt(c.length)))}},getK:b.noop,integrate:c.integrate,repulsive:function(b,a,c,d){var f=a*this.diffTemperature/b.mass/b.degree;
-a=c.x*f;c=c.y*f;b.fixedPosition||(b.plotX+=a,b.plotY+=c);d.fixedPosition||(d.plotX-=a,d.plotY-=c)},repulsiveForceFunction:function(b,a,c,d){return Math.min(b,(c.marker.radius+d.marker.radius)/2)}}});D(d,"Series/Networkgraph/EulerIntegration.js",[],function(){return{attractive:function(b,c,d,a){var f=b.getMass(),h=d.x/a*c;c*=d.y/a;b.fromNode.fixedPosition||(b.fromNode.dispX-=h*f.fromNode/b.fromNode.degree,b.fromNode.dispY-=c*f.fromNode/b.fromNode.degree);b.toNode.fixedPosition||(b.toNode.dispX+=h*
-f.toNode/b.toNode.degree,b.toNode.dispY+=c*f.toNode/b.toNode.degree)},attractiveForceFunction:function(b,c){return b*b/c},barycenter:function(){var b=this.options.gravitationalConstant,c=this.barycenter.xFactor,d=this.barycenter.yFactor;this.nodes.forEach(function(a){if(!a.fixedPosition){var f=a.getDegree();f*=1+f/2;a.dispX+=(c-a.plotX)*b*f/a.degree;a.dispY+=(d-a.plotY)*b*f/a.degree}})},getK:function(b){return Math.pow(b.box.width*b.box.height/b.nodes.length,.3)},integrate:function(b,c){c.dispX+=
-c.dispX*b.options.friction;c.dispY+=c.dispY*b.options.friction;var d=c.temperature=b.vectorLength({x:c.dispX,y:c.dispY});0!==d&&(c.plotX+=c.dispX/d*Math.min(Math.abs(c.dispX),b.temperature),c.plotY+=c.dispY/d*Math.min(Math.abs(c.dispY),b.temperature))},repulsive:function(b,c,d,a){b.dispX+=d.x/a*c/b.degree;b.dispY+=d.y/a*c/b.degree},repulsiveForceFunction:function(b,c){return c*c/b}}});D(d,"Series/Networkgraph/QuadTreeNode.js",[],function(){return function(){function b(b){this.isInternal=this.isEmpty=
-this.body=!1;this.nodes=[];this.box=b;this.boxSize=Math.min(b.width,b.height)}b.prototype.divideBox=function(){var c=this.box.width/2,d=this.box.height/2;this.nodes[0]=new b({left:this.box.left,top:this.box.top,width:c,height:d});this.nodes[1]=new b({left:this.box.left+c,top:this.box.top,width:c,height:d});this.nodes[2]=new b({left:this.box.left+c,top:this.box.top+d,width:c,height:d});this.nodes[3]=new b({left:this.box.left,top:this.box.top+d,width:c,height:d})};b.prototype.getBoxPosition=function(b){var c=
-b.plotY<this.box.top+this.box.height/2;return b.plotX<this.box.left+this.box.width/2?c?0:3:c?1:2};b.prototype.insert=function(c,d){this.isInternal?this.nodes[this.getBoxPosition(c)].insert(c,d-1):(this.isEmpty=!1,this.body?d?(this.isInternal=!0,this.divideBox(),!0!==this.body&&(this.nodes[this.getBoxPosition(this.body)].insert(this.body,d-1),this.body=!0),this.nodes[this.getBoxPosition(c)].insert(c,d-1)):(d=new b({top:c.plotX||NaN,left:c.plotY||NaN,width:.1,height:.1}),d.body=c,d.isInternal=!1,this.nodes.push(d)):
-(this.isInternal=!1,this.body=c))};b.prototype.updateMassAndCenter=function(){var b=0,d=0,a=0;if(this.isInternal){for(var f=0,w=this.nodes;f<w.length;f++){var n=w[f];n.isEmpty||(b+=n.mass,d+=n.plotX*n.mass,a+=n.plotY*n.mass)}d/=b;a/=b}else this.body&&(b=this.body.mass,d=this.body.plotX,a=this.body.plotY);this.mass=b;this.plotX=d;this.plotY=a};return b}()});D(d,"Series/Networkgraph/QuadTree.js",[d["Series/Networkgraph/QuadTreeNode.js"]],function(b){return function(){function c(c,a,d,w){this.box={left:c,
-top:a,width:d,height:w};this.maxDepth=25;this.root=new b(this.box);this.root.isInternal=!0;this.root.isRoot=!0;this.root.divideBox()}c.prototype.calculateMassAndCenter=function(){this.visitNodeRecursive(null,null,function(b){b.updateMassAndCenter()})};c.prototype.insertNodes=function(b){for(var a=0;a<b.length;a++)this.root.insert(b[a],this.maxDepth)};c.prototype.visitNodeRecursive=function(b,a,c){var d;b||(b=this.root);b===this.root&&a&&(d=a(b));if(!1!==d){for(var f=0,h=b.nodes;f<h.length;f++){var q=
-h[f];if(q.isInternal){a&&(d=a(q));if(!1===d)continue;this.visitNodeRecursive(q,a,c)}else q.body&&a&&a(q.body);c&&c(q)}b===this.root&&c&&c(b)}};return c}()});D(d,"Series/Networkgraph/ReingoldFruchtermanLayout.js",[d["Series/Networkgraph/EulerIntegration.js"],d["Core/Globals.js"],d["Series/GraphLayoutComposition.js"],d["Series/Networkgraph/QuadTree.js"],d["Core/Utilities.js"],d["Series/Networkgraph/VerletIntegration.js"]],function(b,c,d,a,f,w){var h=c.win,r=f.clamp,q=f.defined,F=f.isFunction,p=f.pick;
-return function(){function c(){this.attractiveForce=void 0;this.box={};this.currentStep=0;this.initialRendering=!0;this.integration=void 0;this.links=[];this.nodes=[];this.repulsiveForce=this.quadTree=this.options=void 0;this.series=[];this.simulation=!1}c.compose=function(a){d.compose(a);d.integrations.euler=b;d.integrations.verlet=w;d.layouts["reingold-fruchterman"]=c};c.prototype.init=function(a){this.options=a;this.nodes=[];this.links=[];this.series=[];this.box={x:0,y:0,width:0,height:0};this.setInitialRendering(!0);
-this.integration=d.integrations[a.integration];this.enableSimulation=a.enableSimulation;this.attractiveForce=p(a.attractiveForce,this.integration.attractiveForceFunction);this.repulsiveForce=p(a.repulsiveForce,this.integration.repulsiveForceFunction);this.approximation=a.approximation};c.prototype.updateSimulation=function(a){this.enableSimulation=p(a,this.options.enableSimulation)};c.prototype.start=function(){var a=this.series,b=this.options;this.currentStep=0;this.forces=a[0]&&a[0].forces||[];
-this.chart=a[0]&&a[0].chart;this.initialRendering&&(this.initPositions(),a.forEach(function(a){a.finishedAnimating=!0;a.render()}));this.setK();this.resetSimulation(b);this.enableSimulation&&this.step()};c.prototype.step=function(){var a=this,b=this.series;this.currentStep++;"barnes-hut"===this.approximation&&(this.createQuadTree(),this.quadTree.calculateMassAndCenter());for(var c=0,d=this.forces||[];c<d.length;c++)this[d[c]+"Forces"](this.temperature);this.applyLimits();this.temperature=this.coolDown(this.startTemperature,
-this.diffTemperature,this.currentStep);this.prevSystemTemperature=this.systemTemperature;this.systemTemperature=this.getSystemTemperature();if(this.enableSimulation){for(c=0;c<b.length;c++)d=b[c],d.chart&&d.render();this.maxIterations--&&isFinite(this.temperature)&&!this.isStable()?(this.simulation&&h.cancelAnimationFrame(this.simulation),this.simulation=h.requestAnimationFrame(function(){return a.step()})):this.simulation=!1}};c.prototype.stop=function(){this.simulation&&h.cancelAnimationFrame(this.simulation)};
-c.prototype.setArea=function(a,b,c,d){this.box={left:a,top:b,width:c,height:d}};c.prototype.setK=function(){this.k=this.options.linkLength||this.integration.getK(this)};c.prototype.addElementsToCollection=function(a,b){for(var e=0;e<a.length;e++){var c=a[e];-1===b.indexOf(c)&&b.push(c)}};c.prototype.removeElementFromCollection=function(a,b){a=b.indexOf(a);-1!==a&&b.splice(a,1)};c.prototype.clear=function(){this.nodes.length=0;this.links.length=0;this.series.length=0;this.resetSimulation()};c.prototype.resetSimulation=
-function(){this.forcedStop=!1;this.systemTemperature=0;this.setMaxIterations();this.setTemperature();this.setDiffTemperature()};c.prototype.restartSimulation=function(){this.simulation?this.resetSimulation():(this.setInitialRendering(!1),this.enableSimulation?this.start():this.setMaxIterations(1),this.chart&&this.chart.redraw(),this.setInitialRendering(!0))};c.prototype.setMaxIterations=function(a){this.maxIterations=p(a,this.options.maxIterations)};c.prototype.setTemperature=function(){this.temperature=
-this.startTemperature=Math.sqrt(this.nodes.length)};c.prototype.setDiffTemperature=function(){this.diffTemperature=this.startTemperature/(this.options.maxIterations+1)};c.prototype.setInitialRendering=function(a){this.initialRendering=a};c.prototype.createQuadTree=function(){this.quadTree=new a(this.box.left,this.box.top,this.box.width,this.box.height);this.quadTree.insertNodes(this.nodes)};c.prototype.initPositions=function(){var a=this.options.initialPositions;if(F(a)){a.call(this);a=0;for(var b=
-this.nodes;a<b.length;a++){var c=b[a];q(c.prevX)||(c.prevX=c.plotX);q(c.prevY)||(c.prevY=c.plotY);c.dispX=0;c.dispY=0}}else"circle"===a?this.setCircularPositions():this.setRandomPositions()};c.prototype.setCircularPositions=function(){for(var a=this.box,b=this.nodes,c=2*Math.PI/(b.length+1),d=b.filter(function(a){return 0===a.linksTo.length}),f={},h=this.options.initialPositionRadius,l=function(a){var b=0;for(a=a.linksFrom||[];b<a.length;b++){var c=a[b];f[c.toNode.id]||(f[c.toNode.id]=!0,E.push(c.toNode),
-l(c.toNode))}},E=[],v=0;v<d.length;v++){var q=d[v];E.push(q);l(q)}if(E.length)for(d=0;d<b.length;d++)v=b[d],-1===E.indexOf(v)&&E.push(v);else E=b;d=0;for(v=E.length;d<v;++d)b=E[d],b.plotX=b.prevX=p(b.plotX,a.width/2+h*Math.cos(d*c)),b.plotY=b.prevY=p(b.plotY,a.height/2+h*Math.sin(d*c)),b.dispX=0,b.dispY=0};c.prototype.setRandomPositions=function(){for(var a=this.box,b=this.nodes,c=b.length+1,d=function(a){a=a*a/Math.PI;return a-=Math.floor(a)},f,h=0,l=b.length;h<l;++h)f=b[h],f.plotX=f.prevX=p(f.plotX,
-a.width*d(h)),f.plotY=f.prevY=p(f.plotY,a.height*d(c+h)),f.dispX=0,f.dispY=0};c.prototype.force=function(a){for(var b=[],c=1;c<arguments.length;c++)b[c-1]=arguments[c];this.integration[a].apply(this,b)};c.prototype.barycenterForces=function(){this.getBarycenter();this.force("barycenter")};c.prototype.getBarycenter=function(){for(var a=0,b=0,c=0,d=0,f=this.nodes;d<f.length;d++){var h=f[d];b+=h.plotX*h.mass;c+=h.plotY*h.mass;a+=h.mass}return this.barycenter={x:b,y:c,xFactor:b/a,yFactor:c/a}};c.prototype.barnesHutApproximation=
-function(a,b){var c=this.getDistXY(a,b),e=this.vectorLength(c);if(a!==b&&0!==e)if(b.isInternal)if(b.boxSize/e<this.options.theta&&0!==e){var d=this.repulsiveForce(e,this.k);this.force("repulsive",a,d*b.mass,c,e);var g=!1}else g=!0;else d=this.repulsiveForce(e,this.k),this.force("repulsive",a,d*b.mass,c,e);return g};c.prototype.repulsiveForces=function(){var a=this;if("barnes-hut"===this.approximation)for(var b=function(b){c.quadTree.visitNodeRecursive(null,function(c){return a.barnesHutApproximation(b,
-c)})},c=this,d=0,f=this.nodes;d<f.length;d++){var h=f[d];b(h)}else{f=d=b=void 0;for(var l=0,E=this.nodes;l<E.length;l++){h=E[l];for(var v=0,q=this.nodes;v<q.length;v++){var n=q[v];h===n||h.fixedPosition||(f=this.getDistXY(h,n),d=this.vectorLength(f),0!==d&&(b=this.repulsiveForce(d,this.k),this.force("repulsive",h,b*n.mass,f,d)))}}}};c.prototype.attractiveForces=function(){for(var a,b,c,d=0,f=this.links;d<f.length;d++){var h=f[d];h.fromNode&&h.toNode&&(a=this.getDistXY(h.fromNode,h.toNode),b=this.vectorLength(a),
-0!==b&&(c=this.attractiveForce(b,this.k),this.force("attractive",h,c,a,b)))}};c.prototype.applyLimits=function(){for(var a=0,b=this.nodes;a<b.length;a++){var c=b[a];if(c.fixedPosition)break;this.integration.integrate(this,c);this.applyLimitBox(c,this.box);c.dispX=0;c.dispY=0}};c.prototype.applyLimitBox=function(a,b){var c=a.radius;a.plotX=r(a.plotX,b.left+c,b.width-c);a.plotY=r(a.plotY,b.top+c,b.height-c)};c.prototype.coolDown=function(a,b,c){return a-b*c};c.prototype.isStable=function(){return.00001>
-Math.abs(this.systemTemperature-this.prevSystemTemperature)||0>=this.temperature};c.prototype.getSystemTemperature=function(){for(var a=0,b=0,c=this.nodes;b<c.length;b++)a+=c[b].temperature;return a};c.prototype.vectorLength=function(a){return Math.sqrt(a.x*a.x+a.y*a.y)};c.prototype.getDistR=function(a,b){a=this.getDistXY(a,b);return this.vectorLength(a)};c.prototype.getDistXY=function(a,b){var c=a.plotX-b.plotX;a=a.plotY-b.plotY;return{x:c,y:a,absX:Math.abs(c),absY:Math.abs(a)}};return c}()});D(d,
-"Series/PackedBubble/PackedBubbleLayout.js",[d["Series/GraphLayoutComposition.js"],d["Series/PackedBubble/PackedBubbleIntegration.js"],d["Series/Networkgraph/ReingoldFruchtermanLayout.js"],d["Core/Utilities.js"]],function(b,c,d,a){function f(){var a=[];this.series.forEach(function(b){b.parentNode&&b.parentNode.selected&&a.push(b.parentNode)});return a}function h(){this.allDataPoints&&delete this.allDataPoints}var n=this&&this.__extends||function(){var a=function(b,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof
-Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return a(b,c)};return function(b,c){function e(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(e.prototype=c.prototype,new e)}}(),r=a.addEvent,q=a.pick,F=[];a=function(a){function l(){var b=null!==a&&a.apply(this,arguments)||this;b.index=NaN;b.nodes=[];b.options=void 0;b.series=[];return b}n(l,a);l.compose=function(a){d.compose(a);b.integrations.packedbubble=c;b.layouts.packedbubble=
-l;-1===F.indexOf(a)&&(F.push(a),r(a,"beforeRedraw",h),a.prototype.getSelectedParentNodes=f)};l.prototype.beforeStep=function(){this.options.marker&&this.series.forEach(function(a){a&&a.calculateParentRadius()})};l.prototype.isStable=function(){var a=Math.abs(this.prevSystemTemperature-this.systemTemperature);return 1>Math.abs(10*this.systemTemperature/Math.sqrt(this.nodes.length))&&.00001>a||0>=this.temperature};l.prototype.setCircularPositions=function(){for(var a=this.box,b=this.nodes,c=2*Math.PI/
-(b.length+1),d=this.options.initialPositionRadius,f,h,l=0,E=0;E<b.length;E++){var v=b[E];this.options.splitSeries&&!v.isParentNode?(f=v.series.parentNode.plotX,h=v.series.parentNode.plotY):(f=a.width/2,h=a.height/2);v.plotX=v.prevX=q(v.plotX,f+d*Math.cos(v.index||l*c));v.plotY=v.prevY=q(v.plotY,h+d*Math.sin(v.index||l*c));v.dispX=0;v.dispY=0;l++}};l.prototype.repulsiveForces=function(){var a=this,b=a.options.bubblePadding,c,d,f;a.nodes.forEach(function(e){e.degree=e.mass;e.neighbours=0;a.nodes.forEach(function(g){c=
-0;e===g||e.fixedPosition||!a.options.seriesInteraction&&e.series!==g.series||(f=a.getDistXY(e,g),d=a.vectorLength(f)-(e.marker.radius+g.marker.radius+b),0>d&&(e.degree+=.01,e.neighbours++,c=a.repulsiveForce(-d/Math.sqrt(e.neighbours),a.k,e,g)),a.force("repulsive",e,c*g.mass,f,g,d))})})};l.prototype.applyLimitBox=function(b,c){if(this.options.splitSeries&&!b.isParentNode&&this.options.parentNodeLimit){var e=this.getDistXY(b,b.series.parentNode);var d=b.series.parentNodeRadius-b.marker.radius-this.vectorLength(e);
-0>d&&d>-2*b.marker.radius&&(b.plotX-=.01*e.x,b.plotY-=.01*e.y)}a.prototype.applyLimitBox.call(this,b,c)};return l}(d);return b.layouts.packedbubble=a});D(d,"Series/PackedBubble/PackedBubbleSeries.js",[d["Core/Color/Color.js"],d["Series/DragNodesComposition.js"],d["Series/GraphLayoutComposition.js"],d["Core/Globals.js"],d["Series/PackedBubble/PackedBubblePoint.js"],d["Series/PackedBubble/PackedBubbleSeriesDefaults.js"],d["Series/PackedBubble/PackedBubbleLayout.js"],d["Core/Series/SeriesRegistry.js"],
-d["Core/Utilities.js"]],function(b,c,d,a,f,w,n,r,q){var h=this&&this.__extends||function(){var a=function(b,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return a(b,c)};return function(b,c){function e(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(e.prototype=c.prototype,new e)}}(),p=b.parse;b=a.noop;var l=r.series.prototype,e=r.seriesTypes.bubble,g=q.addEvent,k=q.clamp,m=
-q.defined,D=q.extend,G=q.fireEvent,L=q.isArray,E=q.isNumber,v=q.merge,Q=q.pick;q=function(a){function b(){var b=null!==a&&a.apply(this,arguments)||this;b.chart=void 0;b.data=void 0;b.layout=void 0;b.options=void 0;b.parentNodeMass=0;b.points=void 0;b.xData=void 0;return b}h(b,a);b.compose=function(a,b,d,f){e.compose(a,b,d,f);c.compose(b);n.compose(b)};b.prototype.accumulateAllPoints=function(){for(var a=this.chart,b=[],c,e=0,d=a.series;e<d.length;e++){var f=d[e];if(f.is("packedbubble")&&f.visible||
-!a.options.chart.ignoreHiddenSeries){c=f.yData||[];for(var g=0;g<c.length;g++)b.push([null,null,c[g],f.index,g,{id:g,marker:{radius:0}}])}}return b};b.prototype.addLayout=function(){var a=this.options.layoutAlgorithm=this.options.layoutAlgorithm||{},b=a.type||"packedbubble",c=this.chart.options.chart,e=this.chart.graphLayoutsStorage,f=this.chart.graphLayoutsLookup;e||(this.chart.graphLayoutsStorage=e={},this.chart.graphLayoutsLookup=f=[]);var g=e[b];g||(a.enableSimulation=m(c.forExport)?!c.forExport:
-a.enableSimulation,e[b]=g=new d.layouts[b],g.init(a),f.splice(g.index,0,g));this.layout=g;this.points.forEach(function(a){a.mass=2;a.degree=1;a.collisionNmb=1});g.setArea(0,0,this.chart.plotWidth,this.chart.plotHeight);g.addElementsToCollection([this],g.series);g.addElementsToCollection(this.points,g.nodes)};b.prototype.addSeriesLayout=function(){var a=this.options.layoutAlgorithm=this.options.layoutAlgorithm||{},b=a.type||"packedbubble",c=this.chart.graphLayoutsStorage,e=this.chart.graphLayoutsLookup;
-a=v(a,a.parentNodeOptions,{enableSimulation:this.layout.options.enableSimulation});var f=c[b+"-series"];f||(c[b+"-series"]=f=new d.layouts[b],f.init(a),e.splice(f.index,0,f));this.parentNodeLayout=f;this.createParentNodes()};b.prototype.calculateParentRadius=function(){var a=this.seriesBox();this.parentNodeRadius=k(Math.sqrt(2*this.parentNodeMass/Math.PI)+20,20,a?Math.max(Math.sqrt(Math.pow(a.width,2)+Math.pow(a.height,2))/2+20,20):Math.sqrt(2*this.parentNodeMass/Math.PI)+20);this.parentNode&&(this.parentNode.marker.radius=
-this.parentNode.radius=this.parentNodeRadius)};b.prototype.calculateZExtremes=function(){var a=this.options.zMin,b=this.options.zMax,c=Infinity,e=-Infinity;if(a&&b)return[a,b];this.chart.series.forEach(function(a){a.yData.forEach(function(a){m(a)&&(a>e&&(e=a),a<c&&(c=a))})});a=Q(a,c);b=Q(b,e);return[a,b]};b.prototype.checkOverlap=function(a,b){var c=a[0]-b[0],e=a[1]-b[1];return-.001>Math.sqrt(c*c+e*e)-Math.abs(a[2]+b[2])};b.prototype.createParentNodes=function(){var a=this,b=this.pointClass,c=this.chart,
-e=this.parentNodeLayout,d=this.layout.options,f,g=this.parentNode,h={radius:this.parentNodeRadius,lineColor:this.color,fillColor:p(this.color).brighten(.4).get()};d.parentNodeOptions&&(h=v(d.parentNodeOptions.marker||{},h));this.parentNodeMass=0;this.points.forEach(function(b){a.parentNodeMass+=Math.PI*Math.pow(b.marker.radius,2)});this.calculateParentRadius();e.nodes.forEach(function(b){b.seriesIndex===a.index&&(f=!0)});e.setArea(0,0,c.plotWidth,c.plotHeight);f||(g||(g=(new b).init(this,{mass:this.parentNodeRadius/
-2,marker:h,dataLabels:{inside:!1},states:{normal:{marker:h},hover:{marker:h}},dataLabelOnNull:!0,degree:this.parentNodeRadius,isParentNode:!0,seriesIndex:this.index})),this.parentNode&&(g.plotX=this.parentNode.plotX,g.plotY=this.parentNode.plotY),this.parentNode=g,e.addElementsToCollection([this],e.series),e.addElementsToCollection([g],e.nodes))};b.prototype.deferLayout=function(){var a=this.options.layoutAlgorithm;this.visible&&(this.addLayout(),a.splitSeries&&this.addSeriesLayout())};b.prototype.destroy=
-function(){var a=this;this.chart.graphLayoutsLookup&&this.chart.graphLayoutsLookup.forEach(function(b){b.removeElementFromCollection(a,b.series)},this);this.parentNode&&this.parentNodeLayout&&(this.parentNodeLayout.removeElementFromCollection(this.parentNode,this.parentNodeLayout.nodes),this.parentNode.dataLabel&&(this.parentNode.dataLabel=this.parentNode.dataLabel.destroy()));l.destroy.apply(this,arguments)};b.prototype.drawDataLabels=function(){l.drawDataLabels.call(this,this.points);this.parentNode&&
-(this.parentNode.formatPrefix="parentNode",l.drawDataLabels.call(this,[this.parentNode]))};b.prototype.drawGraph=function(){if(this.layout&&this.layout.options.splitSeries){var a=this.chart,b=this.layout.options.parentNodeOptions.marker;b={fill:b.fillColor||p(this.color).brighten(.4).get(),opacity:b.fillOpacity,stroke:b.lineColor||this.color,"stroke-width":Q(b.lineWidth,this.options.lineWidth)};this.parentNodesGroup||(this.parentNodesGroup=this.plotGroup("parentNodesGroup","parentNode",this.visible?
-"inherit":"hidden",.1,a.seriesGroup),this.group.attr({zIndex:2}));this.calculateParentRadius();var c=v({x:this.parentNode.plotX-this.parentNodeRadius,y:this.parentNode.plotY-this.parentNodeRadius,width:2*this.parentNodeRadius,height:2*this.parentNodeRadius},b);this.parentNode.graphic||(this.graph=this.parentNode.graphic=a.renderer.symbol(b.symbol).add(this.parentNodesGroup));this.parentNode.graphic.attr(c)}};b.prototype.drawTracker=function(){var b=this.parentNode;a.prototype.drawTracker.call(this);
-if(b){var c=L(b.dataLabels)?b.dataLabels:b.dataLabel?[b.dataLabel]:[];b.graphic&&(b.graphic.element.point=b);c.forEach(function(a){a.div?a.div.point=b:a.element.point=b})}};b.prototype.getPointRadius=function(){var a=this,b=this.chart,c=this.options,e=c.useSimulation,d=Math.min(b.plotWidth,b.plotHeight),f={},g=[],h=b.allDataPoints||[],m=h.length,l,v,u,C;["minSize","maxSize"].forEach(function(a){var b=parseInt(c[a],10),e=/%$/.test(c[a]);f[a]=e?d*b/100:b*Math.sqrt(m)});b.minRadius=l=f.minSize/Math.sqrt(m);
-b.maxRadius=v=f.maxSize/Math.sqrt(m);var z=e?this.calculateZExtremes():[l,v];h.forEach(function(b,c){u=e?k(b[2],z[0],z[1]):b[2];C=a.getRadius(z[0],z[1],l,v,u);0===C&&(C=null);h[c][2]=C;g.push(C)});this.radii=g};b.prototype.init=function(){l.init.apply(this,arguments);this.eventsToUnbind.push(g(this,"updatedData",function(){var a=this;this.chart.series.forEach(function(b){b.type===a.type&&(b.isDirty=!0)},this)}));return this};b.prototype.onMouseUp=function(a){var b=a;if(b.fixedPosition&&!b.removed){var e=
-this.layout,d=this.parentNodeLayout,f,g;d&&e.options.dragBetweenSeries&&d.nodes.forEach(function(a){b&&b.marker&&a!==b.series.parentNode&&(f=e.getDistXY(b,a),g=e.vectorLength(f)-a.marker.radius-b.marker.radius,0>g&&(a.series.addPoint(v(b.options,{plotX:b.plotX,plotY:b.plotY}),!1),e.removeElementFromCollection(b,e.nodes),b.remove()))});c.onMouseUp.apply(this,arguments)}};b.prototype.placeBubbles=function(a){var b=this.checkOverlap,c=this.positionBubble,e=[],d=1,f=0,g=0;var h=[];var k;a=a.sort(function(a,
-b){return b[2]-a[2]});if(a.length){e.push([[0,0,a[0][2],a[0][3],a[0][4]]]);if(1<a.length)for(e.push([[0,0-a[1][2]-a[0][2],a[1][2],a[1][3],a[1][4]]]),k=2;k<a.length;k++)a[k][2]=a[k][2]||1,h=c(e[d][f],e[d-1][g],a[k]),b(h,e[d][0])?(e.push([]),g=0,e[d+1].push(c(e[d][f],e[d][0],a[k])),d++,f=0):1<d&&e[d-1][g+1]&&b(h,e[d-1][g+1])?(g++,e[d].push(c(e[d][f],e[d-1][g],a[k])),f++):(f++,e[d].push(h));this.chart.stages=e;this.chart.rawPositions=[].concat.apply([],e);this.resizeRadius();h=this.chart.rawPositions}return h};
-b.prototype.pointAttribs=function(a,b){var c=this.options,e=c.marker;a&&a.isParentNode&&c.layoutAlgorithm&&c.layoutAlgorithm.parentNodeOptions&&(e=c.layoutAlgorithm.parentNodeOptions.marker);c=e.fillOpacity;a=l.pointAttribs.call(this,a,b);1!==c&&(a["fill-opacity"]=c);return a};b.prototype.positionBubble=function(a,b,c){var e=Math.sqrt,d=Math.asin,f=Math.acos,g=Math.pow,h=Math.abs;e=e(g(a[0]-b[0],2)+g(a[1]-b[1],2));f=f((g(e,2)+g(c[2]+b[2],2)-g(c[2]+a[2],2))/(2*(c[2]+b[2])*e));d=d(h(a[0]-b[0])/e);a=
-(0>a[1]-b[1]?0:Math.PI)+f+d*(0>(a[0]-b[0])*(a[1]-b[1])?1:-1);return[b[0]+(b[2]+c[2])*Math.sin(a),b[1]-(b[2]+c[2])*Math.cos(a),c[2],c[3],c[4]]};b.prototype.render=function(){var a=[];l.render.apply(this,arguments);this.options.dataLabels.allowOverlap||(this.data.forEach(function(b){L(b.dataLabels)&&b.dataLabels.forEach(function(b){a.push(b)})}),this.options.useSimulation&&this.chart.hideOverlappingLabels(a))};b.prototype.resizeRadius=function(){var a=this.chart,b=a.rawPositions,c=Math.min,e=Math.max,
-d=a.plotLeft,f=a.plotTop,g=a.plotHeight,h=a.plotWidth,k,m;var l=k=Number.POSITIVE_INFINITY;var u=m=Number.NEGATIVE_INFINITY;for(var C=0;C<b.length;C++){var z=b[C];var v=z[2];l=c(l,z[0]-v);u=e(u,z[0]+v);k=c(k,z[1]-v);m=e(m,z[1]+v)}z=[u-l,m-k];c=c.apply([],[(h-d)/z[0],(g-f)/z[1]]);if(1e-10<Math.abs(c-1)){for(a=0;a<b.length;a++)z=b[a],z[2]*=c;this.placeBubbles(b)}else a.diffY=g/2+f-k-(m-k)/2,a.diffX=h/2+d-l-(u-l)/2};b.prototype.seriesBox=function(){var a=this.chart,b=Math.max,c=Math.min,e=[a.plotLeft,
-a.plotLeft+a.plotWidth,a.plotTop,a.plotTop+a.plotHeight],d;this.data.forEach(function(a){m(a.plotX)&&m(a.plotY)&&a.marker.radius&&(d=a.marker.radius,e[0]=c(e[0],a.plotX-d),e[1]=b(e[1],a.plotX+d),e[2]=c(e[2],a.plotY-d),e[3]=b(e[3],a.plotY+d))});return E(e.width/e.height)?e:null};b.prototype.setVisible=function(){var a=this;l.setVisible.apply(a,arguments);a.parentNodeLayout&&a.graph?a.visible?(a.graph.show(),a.parentNode.dataLabel&&a.parentNode.dataLabel.show()):(a.graph.hide(),a.parentNodeLayout.removeElementFromCollection(a.parentNode,
-a.parentNodeLayout.nodes),a.parentNode.dataLabel&&a.parentNode.dataLabel.hide()):a.layout&&(a.visible?a.layout.addElementsToCollection(a.points,a.layout.nodes):a.points.forEach(function(b){a.layout.removeElementFromCollection(b,a.layout.nodes)}))};b.prototype.translate=function(){var a=this.chart,b=this.data,c=this.index,e=this.options.useSimulation;this.processedXData=this.xData;this.generatePoints();m(a.allDataPoints)||(a.allDataPoints=this.accumulateAllPoints(),this.getPointRadius());if(e)var d=
-a.allDataPoints;else d=this.placeBubbles(a.allDataPoints),this.options.draggable=!1;for(var f=0,g=d;f<g.length;f++){var h=g[f];if(h[3]===c){d=b[h[4]];var k=Q(h[2],void 0);e||(d.plotX=h[0]-a.plotLeft+a.diffX,d.plotY=h[1]-a.plotTop+a.diffY);E(k)&&(d.marker=D(d.marker,{radius:k,width:2*k,height:2*k}),d.radius=k)}}e&&this.deferLayout();G(this,"afterTranslate")};b.defaultOptions=v(e.defaultOptions,w);return b}(e);D(q.prototype,{pointClass:f,axisTypes:[],directTouch:!0,forces:["barycenter","repulsive"],
-hasDraggableNodes:!0,isCartesian:!1,noSharedTooltip:!0,pointArrayMap:["value"],pointValKey:"value",requireSorting:!1,trackerGroups:["group","dataLabelsGroup","parentNodesGroup"],alignDataLabel:l.alignDataLabel,indexateNodes:b,onMouseDown:c.onMouseDown,onMouseMove:c.onMouseMove,redrawHalo:c.redrawHalo,searchPoint:b});r.registerSeriesType("packedbubble",q);"";return q});D(d,"Series/Polygon/PolygonSeries.js",[d["Core/Globals.js"],d["Core/Legend/LegendSymbol.js"],d["Core/Series/SeriesRegistry.js"],d["Core/Utilities.js"]],
-function(b,c,d,a){var f=this&&this.__extends||function(){var a=function(b,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return a(b,c)};return function(b,c){function e(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(e.prototype=c.prototype,new e)}}();b=b.noop;var h=d.series,n=d.seriesTypes,r=n.area,q=n.line,F=n.scatter;n=a.extend;var p=a.merge;a=function(a){function b(){var b=
-null!==a&&a.apply(this,arguments)||this;b.data=void 0;b.options=void 0;b.points=void 0;return b}f(b,a);b.prototype.getGraphPath=function(){for(var a=q.prototype.getGraphPath.call(this),b=a.length+1;b--;)(b===a.length||"M"===a[b][0])&&0<b&&a.splice(b,0,["Z"]);return this.areaPath=a};b.prototype.drawGraph=function(){this.options.fillColor=this.color;r.prototype.drawGraph.call(this)};b.defaultOptions=p(F.defaultOptions,{marker:{enabled:!1,states:{hover:{enabled:!1}}},stickyTracking:!1,tooltip:{followPointer:!0,
-pointFormat:""},trackByArea:!0});return b}(F);n(a.prototype,{type:"polygon",drawLegendSymbol:c.drawRectangle,drawTracker:h.prototype.drawTracker,setStackedPoints:b});d.registerSeriesType("polygon",a);"";return a});D(d,"Core/Axis/WaterfallAxis.js",[d["Core/Axis/Stacking/StackItem.js"],d["Core/Utilities.js"]],function(b,c){var d=c.addEvent,a=c.objectEach,f;(function(c){function f(){var a=this.waterfall.stacks;a&&(a.changed=!1,delete a.alreadyChanged)}function h(){var a=this.options.stackLabels;a&&a.enabled&&
-this.waterfall.stacks&&this.waterfall.renderStackTotals()}function q(){for(var a=this.axes,b=this.series,c=b.length;c--;)b[c].options.stacking&&(a.forEach(function(a){a.isXAxis||(a.waterfall.stacks.changed=!0)}),c=0)}function w(){this.waterfall||(this.waterfall=new p(this))}var p=function(){function c(a){this.axis=a;this.stacks={changed:!1}}c.prototype.renderStackTotals=function(){var c=this.axis,d=c.waterfall.stacks,f=c.stacking&&c.stacking.stackTotalGroup,h=new b(c,c.options.stackLabels||{},!1,
-0,void 0);this.dummyStackItem=h;f&&a(d,function(c){a(c,function(a,c){h.total=a.stackTotal;h.x=+c;a.label&&(h.label=a.label);b.prototype.render.call(h,f);a.label=h.label;delete h.label})});h.total=null};return c}();c.Composition=p;c.compose=function(a,b){d(a,"init",w);d(a,"afterBuildStacks",f);d(a,"afterRender",h);d(b,"beforeRedraw",q)}})(f||(f={}));return f});D(d,"Series/Waterfall/WaterfallPoint.js",[d["Series/Column/ColumnSeries.js"],d["Core/Series/Point.js"],d["Core/Utilities.js"]],function(b,c,
-d){var a=this&&this.__extends||function(){var a=function(b,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return a(b,c)};return function(b,c){function d(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(d.prototype=c.prototype,new d)}}(),f=d.isNumber;return function(b){function d(){var a=null!==b&&b.apply(this,arguments)||this;a.options=void 0;a.series=void 0;return a}a(d,b);
-d.prototype.getClassName=function(){var a=c.prototype.getClassName.call(this);this.isSum?a+=" highcharts-sum":this.isIntermediateSum&&(a+=" highcharts-intermediate-sum");return a};d.prototype.isValid=function(){return f(this.y)||this.isSum||!!this.isIntermediateSum};return d}(b.prototype.pointClass)});D(d,"Series/Waterfall/WaterfallSeries.js",[d["Core/Axis/Axis.js"],d["Core/Chart/Chart.js"],d["Core/Series/SeriesRegistry.js"],d["Core/Utilities.js"],d["Core/Axis/WaterfallAxis.js"],d["Series/Waterfall/WaterfallPoint.js"]],
-function(b,c,d,a,f,w){var h=this&&this.__extends||function(){var a=function(b,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return a(b,c)};return function(b,c){function e(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(e.prototype=c.prototype,new e)}}(),r=d.seriesTypes,q=r.column,F=r.line,p=a.arrayMax,l=a.arrayMin,e=a.correctFloat;r=a.extend;var g=a.isNumber,k=a.merge,m=a.objectEach,
-D=a.pick;a=function(a){function b(){var b=null!==a&&a.apply(this,arguments)||this;b.chart=void 0;b.data=void 0;b.options=void 0;b.points=void 0;b.stackedYNeg=void 0;b.stackedYPos=void 0;b.stackKey=void 0;b.xData=void 0;b.yAxis=void 0;b.yData=void 0;return b}h(b,a);b.prototype.generatePoints=function(){q.prototype.generatePoints.apply(this);for(var a=0,b=this.points.length;a<b;a++){var c=this.points[a],d=this.processedYData[a];g(d)&&(c.isIntermediateSum||c.isSum)&&(c.y=e(d))}};b.prototype.translate=
-function(){var a=this.options,b=this.yAxis,c=D(a.minPointLength,5),e=c/2,d=a.threshold||0;a=a.stacking;var f=b.waterfall.stacks[this.stackKey],h=d,k=d;q.prototype.translate.apply(this);for(var m=this.points,t=0;t<m.length;t++){var l=m[t];var n=this.processedYData[t];var p=l.shapeArgs;if(p&&g(n)){var A=[0,n];var r=l.y;if(a){if(f){A=f[t];if("overlap"===a){var w=A.stackState[A.stateIndex--];w=0<=r?w:w-r;Object.hasOwnProperty.call(A,"absolutePos")&&delete A.absolutePos;Object.hasOwnProperty.call(A,"absoluteNeg")&&
-delete A.absoluteNeg}else 0<=r?(w=A.threshold+A.posTotal,A.posTotal-=r):(w=A.threshold+A.negTotal,A.negTotal-=r,w-=r),!A.posTotal&&g(A.absolutePos)&&Object.hasOwnProperty.call(A,"absolutePos")&&(A.posTotal=A.absolutePos,delete A.absolutePos),!A.negTotal&&g(A.absoluteNeg)&&Object.hasOwnProperty.call(A,"absoluteNeg")&&(A.negTotal=A.absoluteNeg,delete A.absoluteNeg);l.isSum||(A.connectorThreshold=A.threshold+A.stackTotal);b.reversed?(n=0<=r?w-r:w+r,r=w):(n=w,r=w-r);l.below=n<=d;p.y=b.translate(n,!1,
-!0,!1,!0);p.height=Math.abs(p.y-b.translate(r,!1,!0,!1,!0));if(r=b.waterfall.dummyStackItem)r.x=t,r.label=f[t].label,r.setOffset(this.pointXOffset||0,this.barW||0,this.stackedYNeg[t],this.stackedYPos[t],void 0,this.xAxis)}}else w=Math.max(k,k+r)+A[0],p.y=b.translate(w,!1,!0,!1,!0),l.isSum?(p.y=b.translate(A[1],!1,!0,!1,!0),p.height=Math.min(b.translate(A[0],!1,!0,!1,!0),b.len)-p.y,l.below=A[1]<=d):l.isIntermediateSum?(0<=r?(n=A[1]+h,r=h):(n=h,r=A[1]+h),b.reversed&&(n^=r,r^=n,n^=r),p.y=b.translate(n,
-!1,!0,!1,!0),p.height=Math.abs(p.y-Math.min(b.translate(r,!1,!0,!1,!0),b.len)),h+=A[1],l.below=n<=d):(p.height=0<n?b.translate(k,!1,!0,!1,!0)-p.y:b.translate(k,!1,!0,!1,!0)-b.translate(k-n,!1,!0,!1,!0),k+=n,l.below=k<d),0>p.height&&(p.y+=p.height,p.height*=-1);l.plotY=p.y=Math.round(p.y||0)-this.borderWidth%2/2;p.height=Math.max(Math.round(p.height||0),.001);l.yBottom=p.y+p.height;p.height<=c&&!l.isNull?(p.height=c,p.y-=e,l.plotY=p.y,l.minPointLengthOffset=0>l.y?-e:e):(l.isNull&&(p.width=0),l.minPointLengthOffset=
-0);r=l.plotY+(l.negative?p.height:0);l.below&&(l.plotY+=p.height);l.tooltipPos&&(this.chart.inverted?l.tooltipPos[0]=b.len-r:l.tooltipPos[1]=r);l.isInside=this.isPointInside(l)}}};b.prototype.processData=function(b){var c=this.options,d=this.yData,f=c.data,g=d.length,h=c.threshold||0,k,l,m,t,n;for(n=l=k=m=t=0;n<g;n++){var q=d[n];var p=f&&f[n]?f[n]:{};"sum"===q||p.isSum?d[n]=e(l):"intermediateSum"===q||p.isIntermediateSum?(d[n]=e(k),k=0):(l+=q,k+=q);m=Math.min(l,m);t=Math.max(l,t)}a.prototype.processData.call(this,
-b);c.stacking||(this.dataMin=m+h,this.dataMax=t)};b.prototype.toYData=function(a){return a.isSum?"sum":a.isIntermediateSum?"intermediateSum":a.y};b.prototype.updateParallelArrays=function(b,c){a.prototype.updateParallelArrays.call(this,b,c);if("sum"===this.yData[0]||"intermediateSum"===this.yData[0])this.yData[0]=null};b.prototype.pointAttribs=function(a,b){var c=this.options.upColor;c&&!a.options.color&&(a.color=0<a.y?c:void 0);a=q.prototype.pointAttribs.call(this,a,b);delete a.dashstyle;return a};
-b.prototype.getGraphPath=function(){return[["M",0,0]]};b.prototype.getCrispPath=function(){var a=this.data,b=this.yAxis,c=a.length,e=Math.round(this.graph.strokeWidth())%2/2,d=Math.round(this.borderWidth)%2/2,f=this.xAxis.reversed,g=this.yAxis.reversed,h=this.options.stacking,k=[],l;for(l=1;l<c;l++){var m=a[l].shapeArgs;var n=a[l-1];var q=a[l-1].shapeArgs;var p=b.waterfall.stacks[this.stackKey];var r=0<n.y?-q.height:0;p&&q&&m&&(p=p[l-1],h?(p=p.connectorThreshold,r=Math.round(b.translate(p,!1,!0,!1,
-!0)+(g?r:0))-e):r=q.y+n.minPointLengthOffset+d-e,k.push(["M",(q.x||0)+(f?0:q.width||0),r],["L",(m.x||0)+(f?m.width||0:0),r]));q&&k.length&&(!h&&0>n.y&&!g||0<n.y&&g)&&((n=k[k.length-2])&&"number"===typeof n[2]&&(n[2]+=q.height||0),(n=k[k.length-1])&&"number"===typeof n[2]&&(n[2]+=q.height||0))}return k};b.prototype.drawGraph=function(){F.prototype.drawGraph.call(this);this.graph&&this.graph.attr({d:this.getCrispPath()})};b.prototype.setStackedPoints=function(){function a(a,b,c,e){if(u){if(R)for(c;c<
-R;c++)u.stackState[c]+=e;else u.stackState[0]=a,R=u.stackState.length;u.stackState.push(u.stackState[R-1]+b)}}var b=this.options,c=this.yAxis.waterfall.stacks,e=b.threshold||0,d=e,f=d,g=this.stackKey,h=this.xData,k=h.length,l,m,n;this.yAxis.stacking.usePercentage=!1;var q=l=m=d;if(this.visible||!this.chart.options.chart.ignoreHiddenSeries){var p=c.changed;(n=c.alreadyChanged)&&0>n.indexOf(g)&&(p=!0);c[g]||(c[g]={});if(n=c[g])for(var r=0;r<k;r++){var w=h[r];if(!n[w]||p)n[w]={negTotal:0,posTotal:0,
-stackTotal:0,threshold:0,stateIndex:0,stackState:[],label:p&&n[w]?n[w].label:void 0};var u=n[w];var C=this.yData[r];0<=C?u.posTotal+=C:u.negTotal+=C;var z=b.data[r];w=u.absolutePos=u.posTotal;var O=u.absoluteNeg=u.negTotal;u.stackTotal=w+O;var R=u.stackState.length;z&&z.isIntermediateSum?(a(m,l,0,m),m=l,l=e,d^=f,f^=d,d^=f):z&&z.isSum?(a(e,q,R,0),d=e):(a(d,C,0,q),z&&(q+=C,l+=C));u.stateIndex++;u.threshold=d;d+=u.stackTotal}c.changed=!1;c.alreadyChanged||(c.alreadyChanged=[]);c.alreadyChanged.push(g)}};
-b.prototype.getExtremes=function(){var a=this.options.stacking;if(a){var b=this.yAxis;b=b.waterfall.stacks;var c=this.stackedYNeg=[];var e=this.stackedYPos=[];"overlap"===a?m(b[this.stackKey],function(a){c.push(l(a.stackState));e.push(p(a.stackState))}):m(b[this.stackKey],function(a){c.push(a.negTotal+a.threshold);e.push(a.posTotal+a.threshold)});return{dataMin:l(c),dataMax:p(e)}}return{dataMin:this.dataMin,dataMax:this.dataMax}};b.defaultOptions=k(q.defaultOptions,{dataLabels:{inside:!0},lineWidth:1,
-lineColor:"#333333",dashStyle:"Dot",borderColor:"#333333",states:{hover:{lineWidthPlus:0}}});return b}(q);r(a.prototype,{getZonesGraphs:F.prototype.getZonesGraphs,pointValKey:"y",showLine:!0,pointClass:w});d.registerSeriesType("waterfall",a);f.compose(b,c);"";return a});D(d,"Core/Axis/RadialAxis.js",[d["Core/Axis/AxisDefaults.js"],d["Core/Defaults.js"],d["Core/Globals.js"],d["Core/Utilities.js"]],function(b,c,d,a){var f=c.defaultOptions,h=d.noop,n=a.addEvent,r=a.correctFloat,q=a.defined,F=a.extend,
-p=a.fireEvent,l=a.merge,e=a.pick,g=a.relativeLength,k=a.wrap,m;(function(a){function c(){this.autoConnect=this.isCircular&&"undefined"===typeof e(this.userMax,this.options.max)&&r(this.endAngleRad-this.startAngleRad)===r(2*Math.PI);!this.isCircular&&this.chart.inverted&&this.max++;this.autoConnect&&(this.max+=this.categories&&1||this.pointRange||this.closestPointRange||0)}function d(){var a=this;return function(){if(a.isRadial&&a.tickPositions&&a.options.labels&&!0!==a.options.labels.allowOverlap)return a.tickPositions.map(function(b){return a.ticks[b]&&
-a.ticks[b].label}).filter(function(a){return!!a})}}function m(){return h}function v(a,b,c){var e=this.pane.center,d=a.value;if(this.isCircular){if(q(d))a.point&&(f=a.point.shapeArgs||{},f.start&&(d=this.chart.inverted?this.translate(a.point.rectPlotY,!0):a.point.x));else{var f=a.chartX||0;var g=a.chartY||0;d=this.translate(Math.atan2(g-c,f-b)-this.startAngleRad,!0)}a=this.getPosition(d);f=a.x;g=a.y}else q(d)||(f=a.chartX,g=a.chartY),q(f)&&q(g)&&(c=e[1]+this.chart.plotTop,d=this.translate(Math.min(Math.sqrt(Math.pow(f-
-b,2)+Math.pow(g-c,2)),e[2]/2)-e[3]/2,!0));return[d,f||0,g||0]}function w(a,b,c){a=this.pane.center;var d=this.chart,f=this.left||0,g=this.top||0,h=e(b,a[2]/2-this.offset);"undefined"===typeof c&&(c=this.horiz?0:this.center&&-this.center[3]/2);c&&(h+=c);this.isCircular||"undefined"!==typeof b?(b=this.chart.renderer.symbols.arc(f+a[0],g+a[1],h,h,{start:this.startAngleRad,end:this.endAngleRad,open:!0,innerR:0}),b.xBounds=[f+a[0]],b.yBounds=[g+a[1]-h]):(b=this.postTranslate(this.angleRad,h),b=[["M",this.center[0]+
-d.plotLeft,this.center[1]+d.plotTop],["L",b.x,b.y]]);return b}function D(){this.constructor.prototype.getOffset.call(this);this.chart.axisOffset[this.side]=0}function K(a,b,c){var d=this.chart,f=function(a){if("string"===typeof a){var b=parseInt(a,10);u.test(a)&&(b=b*C/100);return b}return a},g=this.center,h=this.startAngleRad,C=g[2]/2,k=Math.min(this.offset,0),l=this.left||0,m=this.top||0,u=/%$/,z=this.isCircular,n=e(f(c.outerRadius),C),P=f(c.innerRadius);f=e(f(c.thickness),10);if("polygon"===this.options.gridLineInterpolation)k=
-this.getPlotLinePath({value:a}).concat(this.getPlotLinePath({value:b,reverse:!0}));else{a=Math.max(a,this.min);b=Math.min(b,this.max);a=this.translate(a);b=this.translate(b);z||(n=a||0,P=b||0);if("circle"!==c.shape&&z)c=h+(a||0),h+=b||0;else{c=-Math.PI/2;h=1.5*Math.PI;var q=!0}n-=k;k=d.renderer.symbols.arc(l+g[0],m+g[1],n,n,{start:Math.min(c,h),end:Math.max(c,h),innerR:e(P,n-(f-k)),open:q});z&&(z=(h+c)/2,l=l+g[0]+g[2]/2*Math.cos(z),k.xBounds=z>-Math.PI/2&&z<Math.PI/2?[l,d.plotWidth]:[0,l],k.yBounds=
-[m+g[1]+g[2]/2*Math.sin(z)],k.yBounds[0]+=z>-Math.PI&&0>z||z>Math.PI?-10:10)}return k}function x(a){var b=this,c=this.pane.center,e=this.chart,d=e.inverted,f=a.reverse,h=this.pane.options.background?this.pane.options.background[0]||this.pane.options.background:{},C=h.innerRadius||"0%",k=h.outerRadius||"100%",l=c[0]+e.plotLeft,m=c[1]+e.plotTop,u=this.height,z=a.isCrosshair;h=c[3]/2;var n=a.value,P;var q=this.getPosition(n);var p=q.x;q=q.y;z&&(q=this.getCrosshairPosition(a,l,m),n=q[0],p=q[1],q=q[2]);
-if(this.isCircular)n=Math.sqrt(Math.pow(p-l,2)+Math.pow(q-m,2)),f="string"===typeof C?g(C,1):C/n,e="string"===typeof k?g(k,1):k/n,c&&h&&(h/=n,f<h&&(f=h),e<h&&(e=h)),c=[["M",l+f*(p-l),m-f*(m-q)],["L",p-(1-e)*(p-l),q+(1-e)*(m-q)]];else if((n=this.translate(n))&&(0>n||n>u)&&(n=0),"circle"===this.options.gridLineInterpolation)c=this.getLinePath(0,n,h);else if(c=[],e[d?"yAxis":"xAxis"].forEach(function(a){a.pane===b.pane&&(P=a)}),P)for(l=P.tickPositions,P.autoConnect&&(l=l.concat([l[0]])),f&&(l=l.slice().reverse()),
-n&&(n+=h),m=0;m<l.length;m++)h=P.getPosition(l[m],n),c.push(m?["L",h.x,h.y]:["M",h.x,h.y]);return c}function B(a,b){a=this.translate(a);return this.postTranslate(this.isCircular?a:this.angleRad,e(this.isCircular?b:0>a?0:a,this.center[2]/2)-this.offset)}function y(){var a=this.center,b=this.chart,c=this.options.title;return{x:b.plotLeft+a[0]+(c.x||0),y:b.plotTop+a[1]-{high:.5,middle:.25,low:0}[c.align]*a[2]+(c.y||0)}}function H(a){a.beforeSetTickPositions=c;a.createLabelCollector=d;a.getCrosshairPosition=
-v;a.getLinePath=w;a.getOffset=D;a.getPlotBandPath=K;a.getPlotLinePath=x;a.getPosition=B;a.getTitlePosition=y;a.postTranslate=u;a.setAxisSize=z;a.setAxisTranslation=O;a.setOptions=R}function t(){var a=this.chart,b=this.options,c=this.pane,d=c&&c.options;a.angular&&this.isXAxis||!c||!a.angular&&!a.polar||(a=2*Math.PI,c=(e(d.startAngle,0)-90)*Math.PI/180,d=(e(d.endAngle,e(d.startAngle,0)+360)-90)*Math.PI/180,this.angleRad=(b.angle||0)*Math.PI/180,this.startAngleRad=c,this.endAngleRad=d,this.offset=b.offset||
-0,b=(c%a+a)%a,d=(d%a+a)%a,b>Math.PI&&(b-=a),d>Math.PI&&(d-=a),this.normalizedStartAngleRad=b,this.normalizedEndAngleRad=d)}function J(a){this.isRadial&&(a.align=void 0,a.preventDefault())}function N(){if(this.chart&&this.chart.labelCollectors){var a=this.labelCollector?this.chart.labelCollectors.indexOf(this.labelCollector):-1;0<=a&&this.chart.labelCollectors.splice(a,1)}}function U(a){var c=this.chart,e=c.inverted,d=c.angular,f=c.polar,g=this.isXAxis,k=this.coll,n=d&&g;a=a.userOptions.pane||0;a=
-this.pane=c.pane&&c.pane[a];var u;if("colorAxis"===k)this.isRadial=!1;else{if(d){if(n?(this.isHidden=!0,this.createLabelCollector=m,this.getOffset=h,this.render=this.redraw=C,this.setTitle=this.setCategories=this.setScale=h):H(this),u=!g)this.defaultPolarOptions=Y}else f&&(H(this),this.defaultPolarOptions=(u=this.horiz)?X:l("xAxis"===k?b.defaultXAxisOptions:b.defaultYAxisOptions,Z),e&&"yAxis"===k&&(this.defaultPolarOptions.stackLabels=b.defaultYAxisOptions.stackLabels,this.defaultPolarOptions.reversedStacks=
-!0));d||f?(this.isRadial=!0,this.labelCollector||(this.labelCollector=this.createLabelCollector()),this.labelCollector&&c.labelCollectors.push(this.labelCollector)):this.isRadial=!1;a&&u&&(a.axis=this);this.isCircular=u}}function A(){this.isRadial&&this.beforeSetTickPositions()}function M(a){var b=this.label;if(b){var c=this.axis,d=b.getBBox(),f=c.options.labels,h=(c.translate(this.pos)+c.startAngleRad+Math.PI/2)/Math.PI*180%360,C=Math.round(h),k=q(f.y)?0:.3*-d.height,l=f.y,m=20,u=f.align,n="end",
-z=0>C?C+360:C,p=z,O=0,t=0;if(c.isRadial){var r=c.getPosition(this.pos,c.center[2]/2+g(e(f.distance,-25),c.center[2]/2,-c.center[2]/2));"auto"===f.rotation?b.attr({rotation:h}):q(l)||(l=c.chart.renderer.fontMetrics(b.styles&&b.styles.fontSize).b-d.height/2);q(u)||(c.isCircular?(d.width>c.len*c.tickInterval/(c.max-c.min)&&(m=0),u=h>m&&h<180-m?"left":h>180+m&&h<360-m?"right":"center"):u="center",b.attr({align:u}));if("auto"===u&&2===c.tickPositions.length&&c.isCircular){90<z&&180>z?z=180-z:270<z&&360>=
-z&&(z=540-z);180<p&&360>=p&&(p=360-p);if(c.pane.options.startAngle===C||c.pane.options.startAngle===C+360||c.pane.options.startAngle===C-360)n="start";u=-90<=C&&90>=C||-360<=C&&-270>=C||270<=C&&360>=C?"start"===n?"right":"left":"start"===n?"left":"right";70<p&&110>p&&(u="center");15>z||180<=z&&195>z?O=.3*d.height:15<=z&&35>=z?O="start"===n?0:.75*d.height:195<=z&&215>=z?O="start"===n?.75*d.height:0:35<z&&90>=z?O="start"===n?.25*-d.height:d.height:215<z&&270>=z&&(O="start"===n?d.height:.25*-d.height);
-15>p?t="start"===n?.15*-d.height:.15*d.height:165<p&&180>=p&&(t="start"===n?.15*d.height:.15*-d.height);b.attr({align:u});b.translate(t,O+k)}a.pos.x=r.x+(f.x||0);a.pos.y=r.y+(l||0)}}}function S(a){this.axis.getPosition&&F(a.pos,this.axis.getPosition(this.pos))}function u(a,b){var c=this.chart,e=this.center;a=this.startAngleRad+a;return{x:c.plotLeft+e[0]+Math.cos(a)*b,y:c.plotTop+e[1]+Math.sin(a)*b}}function C(){this.isDirty=!1}function z(){this.constructor.prototype.setAxisSize.call(this);if(this.isRadial){this.pane.updateCenter(this);
-var a=this.center=this.pane.center.slice();if(this.isCircular)this.sector=this.endAngleRad-this.startAngleRad;else{var b=this.postTranslate(this.angleRad,a[3]/2);a[0]=b.x-this.chart.plotLeft;a[1]=b.y-this.chart.plotTop}this.len=this.width=this.height=(a[2]-a[3])*e(this.sector,1)/2}}function O(){this.constructor.prototype.setAxisTranslation.call(this);this.center&&(this.transA=this.isCircular?(this.endAngleRad-this.startAngleRad)/(this.max-this.min||1):(this.center[2]-this.center[3])/2/(this.max-this.min||
-1),this.minPixelPadding=this.isXAxis?this.transA*this.minPointOffset:0)}function R(a){a=this.options=l(this.constructor.defaultOptions,this.defaultPolarOptions,f[this.coll],a);a.plotBands||(a.plotBands=[]);p(this,"afterSetOptions")}function W(a,b,c,e,d,f,g){var h=this.axis;h.isRadial?(a=h.getPosition(this.pos,h.center[2]/2+e),b=["M",b,c,"L",a.x,a.y]):b=a.call(this,b,c,e,d,f,g);return b}var T=[],X={gridLineWidth:1,labels:{align:void 0,distance:15,x:0,y:void 0,style:{textOverflow:"none"}},maxPadding:0,
-minPadding:0,showLastLabel:!1,tickLength:0},Y={labels:{align:"center",x:0,y:void 0},minorGridLineWidth:0,minorTickInterval:"auto",minorTickLength:10,minorTickPosition:"inside",minorTickWidth:1,tickLength:10,tickPosition:"inside",tickWidth:2,title:{rotation:0},zIndex:2},Z={gridLineInterpolation:"circle",gridLineWidth:1,labels:{align:"right",x:-3,y:-2},showLastLabel:!1,title:{x:4,text:null,rotation:90}};a.compose=function(a,b){-1===T.indexOf(a)&&(T.push(a),n(a,"afterInit",t),n(a,"autoLabelAlign",J),
-n(a,"destroy",N),n(a,"init",U),n(a,"initialAxisTranslation",A));-1===T.indexOf(b)&&(T.push(b),n(b,"afterGetLabelPosition",M),n(b,"afterGetPosition",S),k(b.prototype,"getMarkPath",W));return a}})(m||(m={}));return m});D(d,"Series/PolarComposition.js",[d["Core/Animation/AnimationUtilities.js"],d["Core/Globals.js"],d["Extensions/Pane.js"],d["Core/Axis/RadialAxis.js"],d["Core/Utilities.js"]],function(b,c,d,a,f){function h(a,b,c,e){var d=e?1:0;var f=0<=b&&b<=a.length-1?b:0>b?a.length-1+b:0;b=0>f-1?a.length-
-(1+d):f-1;var g=a[b];d=a[f+1>a.length-1?d:f+1];var C=g.plotY;var k=d.plotX;var l=d.plotY;d=a[f].plotX;f=a[f].plotY;g=(1.5*d+g.plotX)/2.5;C=(1.5*f+C)/2.5;k=(1.5*d+k)/2.5;var m=(1.5*f+l)/2.5;l=Math.sqrt(Math.pow(g-d,2)+Math.pow(C-f,2));var z=Math.sqrt(Math.pow(k-d,2)+Math.pow(m-f,2));g=Math.atan2(C-f,g-d);m=Math.PI/2+(g+Math.atan2(m-f,k-d))/2;Math.abs(g-m)>Math.PI/2&&(m-=Math.PI);g=d+Math.cos(m)*l;C=f+Math.sin(m)*l;k=d+Math.cos(Math.PI+m)*z;m=f+Math.sin(Math.PI+m)*z;d={rightContX:k,rightContY:m,leftContX:g,
-leftContY:C,plotX:d,plotY:f};c&&(d.prevPointCont=h(a,b,!1,e));return d}function n(){(this.pane||[]).forEach(function(a){a.render()})}function r(a){var b=a.args[0].xAxis,c=a.args[0].yAxis;a=a.args[0].chart;b&&c&&("polygon"===c.gridLineInterpolation?(b.startOnTick=!0,b.endOnTick=!0):"polygon"===b.gridLineInterpolation&&a.inverted&&(c.startOnTick=!0,c.endOnTick=!0))}function q(){var a=this;this.pane||(this.pane=[]);this.options.pane=V(this.options.pane);this.options.pane.forEach(function(b){new d(b,
-a)},this)}function D(a){var b=a.args.marker,c=this.chart.xAxis[0],d=this.chart.yAxis[0],e=this.chart.inverted,f=e?d:c;c=e?c:d;if(this.chart.polar){a.preventDefault();d=(b.attr?b.attr("start"):b.start)-f.startAngleRad;e=b.attr?b.attr("r"):b.r;var g=(b.attr?b.attr("end"):b.end)-f.startAngleRad;b=b.attr?b.attr("innerR"):b.innerR;a.result.x=d+f.pos;a.result.width=g-d;a.result.y=c.len+c.pos-b;a.result.height=b-e}}function p(a){var b=this.chart;if(b.polar&&b.hoverPane&&b.hoverPane.axis){a.preventDefault();
-var c=b.hoverPane.center,d=this.mouseDownX||0,e=this.mouseDownY||0,f=a.args.chartY,g=a.args.chartX,h=2*Math.PI,l=b.hoverPane.axis.startAngleRad,m=b.hoverPane.axis.endAngleRad,n=b.inverted?b.xAxis[0]:b.yAxis[0],u={},q="arc";u.x=c[0]+b.plotLeft;u.y=c[1]+b.plotTop;if(this.zoomHor){var p=0<l?m-l:Math.abs(l)+Math.abs(m),t=Math.atan2(e-b.plotTop-c[1],d-b.plotLeft-c[0])-l,r=Math.atan2(f-b.plotTop-c[1],g-b.plotLeft-c[0])-l;u.r=c[2]/2;u.innerR=c[3]/2;0>=t&&(t+=h);0>=r&&(r+=h);r<t&&(r=[t,t=r][0]);p<h&&l+r>
-m+(h-p)/2&&(r=t,t=0>=l?l:0);h=u.start=Math.max(t+l,l);t=u.end=Math.min(r+l,m);"polygon"===n.options.gridLineInterpolation&&(r=b.hoverPane.axis,p=h-r.startAngleRad+r.pos,t-=h,q=n.getPlotLinePath({value:n.max}),h=r.toValue(p),p=r.toValue(p+t),h<r.getExtremes().min&&(t=r.getExtremes(),h=t.max-(t.min-h)),p<r.getExtremes().min&&(t=r.getExtremes(),p=t.max-(t.min-p)),p<h&&(p=[h,h=p][0]),q=k(q,h,p,r),q.push(["L",c[0]+b.plotLeft,b.plotTop+c[1]]),u.d=q,q="path")}this.zoomVert&&(r=b.inverted?b.xAxis[0]:b.yAxis[0],
-d=Math.sqrt(Math.pow(d-b.plotLeft-c[0],2)+Math.pow(e-b.plotTop-c[1],2)),f=Math.sqrt(Math.pow(g-b.plotLeft-c[0],2)+Math.pow(f-b.plotTop-c[1],2)),f<d&&(d=[f,f=d][0]),f>c[2]/2&&(f=c[2]/2),d<c[3]/2&&(d=c[3]/2),this.zoomHor||(u.start=l,u.end=m),u.r=f,u.innerR=d,"polygon"===r.options.gridLineInterpolation&&(t=r.toValue(r.len+r.pos-d),h=r.toValue(r.len+r.pos-f),q=r.getPlotLinePath({value:h}).concat(r.getPlotLinePath({value:t,reverse:!0})),u.d=q,q="path"));this.zoomHor&&this.zoomVert&&"polygon"===n.options.gridLineInterpolation&&
-(r=b.hoverPane.axis,h=u.start||0,t=u.end||0,p=h-r.startAngleRad+r.pos,t-=h,h=r.toValue(p),p=r.toValue(p+t),u.d instanceof Array&&(c=u.d.slice(0,u.d.length/2),l=u.d.slice(u.d.length/2,u.d.length),l=K([],l,!0).reverse(),b=b.hoverPane.axis,c=k(c,h,p,b),(l=k(l,h,p,b))&&(l[0][0]="L"),l=K([],l,!0).reverse(),u.d=c.concat(l),q="path"));a.attrs=u;a.shapeType=q}}function l(){var a=this.chart;a.polar&&(this.polar=new S(this),a.inverted&&(this.isRadialSeries=!0,this.is("column")&&(this.isRadialBar=!0)))}function e(){if(this.chart.polar&&
-this.xAxis){var a=this.chart;(this.kdByAngle=a.tooltip&&a.tooltip.shared)?this.searchPoint=g:this.options.findNearestPointBy="xy";for(var b=this.points,d=b.length;d--;)this.preventPostTranslate||this.polar.toXY(b[d]),a.hasParallelCoordinates||this.yAxis.reversed||(J(b[d].y,Number.MIN_VALUE)<this.yAxis.min||b[d].x<this.xAxis.min||b[d].x>this.xAxis.max?(b[d].isNull=!0,b[d].plotY=NaN):b[d].isNull=b[d].isValid&&!b[d].isValid());this.hasClipCircleSetter||(this.hasClipCircleSetter=!!this.eventsToUnbind.push(B(this,
-"afterRender",function(){if(a.polar){var b=this.yAxis.pane.center;if(this.clipCircle)this.clipCircle.animate({x:b[0],y:b[1],r:b[2]/2,innerR:b[3]/2});else{var d=a.renderer,e=b[0],f=b[1],g=b[2]/2,h=b[3]/2;b=U();var k=d.createElement("clipPath").attr({id:b}).add(d.defs);d=h?d.arc(e,f,g,h,0,2*Math.PI).add(k):d.circle(e,f,g).add(k);d.id=b;d.clipPath=k;this.clipCircle=d}this.group.clip(this.clipCircle);this.setClip=c.noop}})))}}function g(a){var b=this.chart,c=this.xAxis;c=c.pane&&c.pane.center;return this.searchKDTree({clientX:180+
--180/Math.PI*Math.atan2(a.chartX-(c&&c[0]||0)-b.plotLeft,a.chartY-(c&&c[1]||0)-b.plotTop)})}function k(a,b,c,d){var e=d.tickInterval;d=d.tickPositions;var f=H(d,function(a){return a>=c}),g=H(K([],d,!0).reverse(),function(a){return a<=b});y(f)||(f=d[d.length-1]);y(g)||(g=d[0],f+=e,a[0][0]="L",a.unshift(a[a.length-3]));a=a.slice(d.indexOf(g),d.indexOf(f)+1);a[0][0]="M";return a}function m(a,b){return H(this.pane||[],function(a){return a.options.id===b})||a.call(this,b)}function N(a,b,c,d,e,f){var g=
-this.chart,h=J(d.inside,!!this.options.stacking);g.polar?(a=b.rectPlotX/Math.PI*180,g.inverted?(this.forceDL=g.isInsidePlot(b.plotX,b.plotY),h&&b.shapeArgs?(e=b.shapeArgs,e=this.yAxis.postTranslate(((e.start||0)+(e.end||0))/2-this.xAxis.startAngleRad,b.barX+b.pointWidth/2),e={x:e.x-g.plotLeft,y:e.y-g.plotTop}):b.tooltipPos&&(e={x:b.tooltipPos[0],y:b.tooltipPos[1]}),d.align=J(d.align,"center"),d.verticalAlign=J(d.verticalAlign,"middle")):(null===d.align&&(d.align=20<a&&160>a?"left":200<a&&340>a?"right":
-"center"),null===d.verticalAlign&&(d.verticalAlign=45>a||315<a?"bottom":135<a&&225>a?"top":"middle")),Object.getPrototypeOf(Object.getPrototypeOf(this)).alignDataLabel.call(this,b,c,d,e,f),this.isRadialBar&&b.shapeArgs&&b.shapeArgs.start===b.shapeArgs.end?c.hide():c.show()):a.call(this,b,c,d,e,f)}function G(a){var b=this.options,c=b.stacking,d=this.chart,e=this.xAxis,g=this.yAxis,h=g.reversed,k=g.center,l=e.startAngleRad,m=e.endAngleRad-l,n=0,p=0,q=0;this.preventPostTranslate=!0;a.call(this);if(e.isRadial){a=
-this.points;e=a.length;var r=g.translate(g.min);var u=g.translate(g.max);b=b.threshold||0;d.inverted&&t(b)&&(n=g.translate(b),y(n)&&(0>n?n=0:n>m&&(n=m),this.translatedThreshold=n+l));for(;e--;){b=a[e];var v=b.barX;var w=b.x;var x=b.y;b.shapeType="arc";if(d.inverted){b.plotY=g.translate(x);c&&g.stacking?(x=g.stacking.stacks[(0>x?"-":"")+this.stackKey],this.visible&&x&&x[w]&&!b.isNull&&(q=x[w].points[this.getStackIndicator(void 0,w,this.index).key],p=g.translate(q[0]),q=g.translate(q[1]),y(p)&&(p=f.clamp(p,
-0,m)))):(p=n,q=b.plotY);p>q&&(q=[p,p=q][0]);if(!h)if(p<r)p=r;else if(q>u)q=u;else{if(q<r||p>u)p=q=0}else if(q>r)q=r;else if(p<u)p=u;else if(p>r||q<u)p=q=m;g.min>g.max&&(p=q=h?m:0);p+=l;q+=l;k&&(b.barX=v+=k[3]/2);w=Math.max(v,0);x=Math.max(v+b.pointWidth,0);b.shapeArgs={x:k&&k[0],y:k&&k[1],r:x,innerR:w,start:p,end:q};b.opacity=p===q?0:void 0;b.plotY=(y(this.translatedThreshold)&&(p<this.translatedThreshold?p:q))-l}else p=v+l,b.shapeArgs=this.polar.arc(b.yBottom,b.plotY,p,p+b.pointWidth);this.polar.toXY(b);
-d.inverted?(v=g.postTranslate(b.rectPlotY,v+b.pointWidth/2),b.tooltipPos=[v.x-d.plotLeft,v.y-d.plotTop]):b.tooltipPos=[b.plotX,b.plotY];k&&(b.ttBelow=b.plotY>k[1])}}}function L(a,b){var c=this;if(this.chart.polar){b=b||this.points;for(var d=0;d<b.length;d++)if(!b[d].isNull){var e=d;break}if(!1!==this.options.connectEnds&&"undefined"!==typeof e){this.connectEnds=!0;b.splice(b.length,0,b[e]);var f=!0}b.forEach(function(a){"undefined"===typeof a.polarPlotY&&c.polar.toXY(a)})}e=a.apply(this,[].slice.call(arguments,
-1));f&&b.pop();return e}function E(a,b){var c=this.chart,d={xAxis:[],yAxis:[]};c.polar?c.axes.forEach(function(a){if("colorAxis"!==a.coll){var e=a.isXAxis,f=a.center,g=b.chartX-f[0]-c.plotLeft;f=b.chartY-f[1]-c.plotTop;d[e?"xAxis":"yAxis"].push({axis:a,value:a.translate(e?Math.PI-Math.atan2(g,f):Math.sqrt(Math.pow(g,2)+Math.pow(f,2)),!0)})}}):d=a.call(this,b);return d}function v(a,b){this.chart.polar||a.call(this,b)}function Q(a,b){var d=this,e=this.chart,f=this.group,g=this.markerGroup,h=this.xAxis&&
-this.xAxis.center,k=e.plotLeft,l=e.plotTop,m=this.options.animation,n,p,q,r;if(e.polar)if(d.isRadialBar)b||(d.startAngleRad=J(d.translatedThreshold,d.xAxis.startAngleRad),c.seriesTypes.pie.prototype.animate.call(d,b));else{if(e.renderer.isSVG)if(m=x(m),d.is("column")){if(!b){var t=h[3]/2;d.points.forEach(function(a){n=a.graphic;q=(p=a.shapeArgs)&&p.r;r=p&&p.innerR;n&&p&&(n.attr({r:t,innerR:t}),n.animate({r:q,innerR:r},d.options.animation))})}}else b?(a={translateX:h[0]+k,translateY:h[1]+l,scaleX:.001,
-scaleY:.001},f.attr(a),g&&g.attr(a)):(a={translateX:k,translateY:l,scaleX:1,scaleY:1},f.animate(a,m),g&&g.animate(a,m))}else a.call(this,b)}function I(a,b,c,d){this.chart.polar?d?(a=h(b,d,!0,this.connectEnds),b=a.prevPointCont&&a.prevPointCont.rightContX,c=a.prevPointCont&&a.prevPointCont.rightContY,a=["C",t(b)?b:a.plotX,t(c)?c:a.plotY,t(a.leftContX)?a.leftContX:a.plotX,t(a.leftContY)?a.leftContY:a.plotY,a.plotX,a.plotY]):a=["M",c.plotX,c.plotY]:a=a.call(this,b,c,d);return a}var K=this&&this.__spreadArray||
-function(a,b,c){if(c||2===arguments.length)for(var d=0,e=b.length,f;d<e;d++)!f&&d in b||(f||(f=Array.prototype.slice.call(b,0,d)),f[d]=b[d]);return a.concat(f||Array.prototype.slice.call(b))},x=b.animObject,B=f.addEvent,y=f.defined,H=f.find,t=f.isNumber,J=f.pick,V=f.splat,U=f.uniqueKey,A=f.wrap,M=[],S=function(){function b(a){this.series=a}b.compose=function(b,c,d,f,g,h,k,t,u){a.compose(b,g);-1===M.indexOf(c)&&(M.push(c),B(c,"afterDrawChartBox",n),B(c,"getAxes",q),B(c,"init",r),A(c.prototype,"get",
-m));-1===M.indexOf(d)&&(M.push(d),b=d.prototype,A(b,"getCoordinates",E),A(b,"pinch",v),B(d,"getSelectionMarkerAttrs",p),B(d,"getSelectionBox",D));-1===M.indexOf(f)&&(M.push(f),B(f,"afterInit",l),B(f,"afterTranslate",e,{order:2}),A(f.prototype,"animate",Q));k&&-1===M.indexOf(k)&&(M.push(k),d=k.prototype,A(d,"alignDataLabel",N),A(d,"animate",Q),A(d,"translate",G));t&&-1===M.indexOf(t)&&(M.push(t),A(t.prototype,"getGraphPath",L));u&&-1===M.indexOf(u)&&(M.push(u),t=u.prototype,A(t,"getPointSpline",I),
-h&&-1===M.indexOf(h)&&(M.push(h),h.prototype.getPointSpline=t.getPointSpline))};b.prototype.arc=function(a,b,c,d){var e=this.series,f=e.xAxis.center,g=e.yAxis.len,h=f[3]/2;b=g-b+h;a=g-J(a,g)+h;e.yAxis.reversed&&(0>b&&(b=h),0>a&&(a=h));return{x:f[0],y:f[1],r:b,innerR:a,start:c,end:d}};b.prototype.toXY=function(a){var b=this.series,c=b.chart,d=b.xAxis,e=b.yAxis,f=a.plotX,g=c.inverted,h=a.y,k=a.plotY,l=g?f:e.len-k;g&&b&&!b.isRadialBar&&(a.plotY=k=t(h)?e.translate(h):0);a.rectPlotX=f;a.rectPlotY=k;e.center&&
-(l+=e.center[3]/2);t(k)&&(e=g?e.postTranslate(k,l):d.postTranslate(f,l),a.plotX=a.polarPlotX=e.x-c.plotLeft,a.plotY=a.polarPlotY=e.y-c.plotTop);b.kdByAngle?(b=(f/Math.PI*180+d.pane.options.startAngle)%360,0>b&&(b+=360),a.clientX=b):a.clientX=a.plotX};return b}();return S});D(d,"masters/highcharts-more.src.js",[d["Core/Globals.js"],d["Core/Series/SeriesRegistry.js"],d["Series/Bubble/BubbleSeries.js"],d["Series/PackedBubble/PackedBubbleSeries.js"],d["Series/PolarComposition.js"]],function(b,c,d,a,f){d.compose(b.Axis,
-b.Chart,b.Legend,b.Series);a.compose(b.Axis,b.Chart,b.Legend,b.Series);f.compose(b.Axis,b.Chart,b.Pointer,b.Series,b.Tick,c.seriesTypes.areasplinerange,c.seriesTypes.column,c.seriesTypes.line,c.seriesTypes.spline)})});
-//# sourceMappingURL=highcharts-more.js.map

+ 0 - 602
nicegui/elements/lib/highcharts.js

@@ -1,602 +0,0 @@
-/*
- Highcharts JS v10.3.3 (2023-01-20)
-
- (c) 2009-2021 Torstein Honsi
-
- License: www.highcharts.com/license
-*/
-(function(aa,K){"object"===typeof module&&module.exports?(K["default"]=K,module.exports=aa.document?K(aa):K):"function"===typeof define&&define.amd?define("highcharts/highcharts",function(){return K(aa)}):(aa.Highcharts&&aa.Highcharts.error(16,!0),aa.Highcharts=K(aa))})("undefined"!==typeof window?window:this,function(aa){function K(a,A,g,F){a.hasOwnProperty(A)||(a[A]=F.apply(null,g),"function"===typeof CustomEvent&&aa.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:A,module:a[A]}})))}
-var g={};K(g,"Core/Globals.js",[],function(){var a;(function(a){a.SVG_NS="http://www.w3.org/2000/svg";a.product="Highcharts";a.version="10.3.3";a.win="undefined"!==typeof aa?aa:{};a.doc=a.win.document;a.svg=a.doc&&a.doc.createElementNS&&!!a.doc.createElementNS(a.SVG_NS,"svg").createSVGRect;a.userAgent=a.win.navigator&&a.win.navigator.userAgent||"";a.isChrome=-1!==a.userAgent.indexOf("Chrome");a.isFirefox=-1!==a.userAgent.indexOf("Firefox");a.isMS=/(edge|msie|trident)/i.test(a.userAgent)&&!a.win.opera;
-a.isSafari=!a.isChrome&&-1!==a.userAgent.indexOf("Safari");a.isTouchDevice=/(Mobile|Android|Windows Phone)/.test(a.userAgent);a.isWebKit=-1!==a.userAgent.indexOf("AppleWebKit");a.deg2rad=2*Math.PI/360;a.hasBidiBug=a.isFirefox&&4>parseInt(a.userAgent.split("Firefox/")[1],10);a.hasTouch=!!a.win.TouchEvent;a.marginNames=["plotTop","marginRight","marginBottom","plotLeft"];a.noop=function(){};a.supportsPassiveEvents=function(){var g=!1;if(!a.isMS){var A=Object.defineProperty({},"passive",{get:function(){g=
-!0}});a.win.addEventListener&&a.win.removeEventListener&&(a.win.addEventListener("testPassive",a.noop,A),a.win.removeEventListener("testPassive",a.noop,A))}return g}();a.charts=[];a.dateFormats={};a.seriesTypes={};a.symbolSizes={};a.chartCount=0})(a||(a={}));"";return a});K(g,"Core/Utilities.js",[g["Core/Globals.js"]],function(a){function g(b,c,n,J){var z=c?"Highcharts error":"Highcharts warning";32===b&&(b=""+z+": Deprecated member");var q=l(b),u=q?""+z+" #"+b+": www.highcharts.com/errors/"+b+"/":
-b.toString();if("undefined"!==typeof J){var N="";q&&(u+="?");E(J,function(b,z){N+="\n - ".concat(z,": ").concat(b);q&&(u+=encodeURI(z)+"="+encodeURI(b))});u+=N}y(a,"displayError",{chart:n,code:b,message:u,params:J},function(){if(c)throw Error(u);f.console&&-1===g.messages.indexOf(u)&&console.warn(u)});g.messages.push(u)}function x(b,f){var z={};E(b,function(c,q){if(H(b[q],!0)&&!b.nodeType&&f[q])c=x(b[q],f[q]),Object.keys(c).length&&(z[q]=c);else if(H(b[q])||b[q]!==f[q]||q in b&&!(q in f))z[q]=b[q]});
-return z}function F(b,f){return parseInt(b,f||10)}function C(b){return"string"===typeof b}function B(b){b=Object.prototype.toString.call(b);return"[object Array]"===b||"[object Array Iterator]"===b}function H(b,f){return!!b&&"object"===typeof b&&(!f||!B(b))}function t(b){return H(b)&&"number"===typeof b.nodeType}function r(b){var f=b&&b.constructor;return!(!H(b,!0)||t(b)||!f||!f.name||"Object"===f.name)}function l(b){return"number"===typeof b&&!isNaN(b)&&Infinity>b&&-Infinity<b}function e(b){return"undefined"!==
-typeof b&&null!==b}function d(b,f,c){var z=C(f)&&!e(c),q,n=function(f,c){e(f)?b.setAttribute(c,f):z?(q=b.getAttribute(c))||"class"!==c||(q=b.getAttribute(c+"Name")):b.removeAttribute(c)};C(f)?n(c,f):E(f,n);return q}function h(b,f){var c;b||(b={});for(c in f)b[c]=f[c];return b}function m(){for(var b=arguments,f=b.length,c=0;c<f;c++){var J=b[c];if("undefined"!==typeof J&&null!==J)return J}}function k(b,f){a.isMS&&!a.svg&&f&&e(f.opacity)&&(f.filter="alpha(opacity=".concat(100*f.opacity,")"));h(b.style,
-f)}function p(b){return Math.pow(10,Math.floor(Math.log(b)/Math.LN10))}function D(b,f){return 1E14<b?b:parseFloat(b.toPrecision(f||14))}function I(b,c,n){var z=a.getStyle||I;if("width"===c)return c=Math.min(b.offsetWidth,b.scrollWidth),n=b.getBoundingClientRect&&b.getBoundingClientRect().width,n<c&&n>=c-1&&(c=Math.floor(n)),Math.max(0,c-(z(b,"padding-left",!0)||0)-(z(b,"padding-right",!0)||0));if("height"===c)return Math.max(0,Math.min(b.offsetHeight,b.scrollHeight)-(z(b,"padding-top",!0)||0)-(z(b,
-"padding-bottom",!0)||0));f.getComputedStyle||g(27,!0);if(b=f.getComputedStyle(b,void 0)){var q=b.getPropertyValue(c);m(n,"opacity"!==c)&&(q=F(q))}return q}function E(b,f,c){for(var z in b)Object.hasOwnProperty.call(b,z)&&f.call(c||b[z],b[z],z,b)}function L(b,f,c){function z(f,c){var v=b.removeEventListener||a.removeEventListenerPolyfill;v&&v.call(b,f,c,!1)}function q(c){var v;if(b.nodeName){if(f){var q={};q[f]=!0}else q=c;E(q,function(b,f){if(c[f])for(v=c[f].length;v--;)z(f,c[f][v].fn)})}}var n=
-"function"===typeof b&&b.prototype||b;if(Object.hasOwnProperty.call(n,"hcEvents")){var u=n.hcEvents;f?(n=u[f]||[],c?(u[f]=n.filter(function(b){return c!==b.fn}),z(f,c)):(q(u),u[f]=[])):(q(u),delete n.hcEvents)}}function y(b,f,c,J){c=c||{};if(w.createEvent&&(b.dispatchEvent||b.fireEvent&&b!==a)){var z=w.createEvent("Events");z.initEvent(f,!0,!0);c=h(z,c);b.dispatchEvent?b.dispatchEvent(c):b.fireEvent(f,c)}else if(b.hcEvents){c.target||h(c,{preventDefault:function(){c.defaultPrevented=!0},target:b,
-type:f});z=[];for(var q=b,n=!1;q.hcEvents;)Object.hasOwnProperty.call(q,"hcEvents")&&q.hcEvents[f]&&(z.length&&(n=!0),z.unshift.apply(z,q.hcEvents[f])),q=Object.getPrototypeOf(q);n&&z.sort(function(b,f){return b.order-f.order});z.forEach(function(f){!1===f.fn.call(b,c)&&c.preventDefault()})}J&&!c.defaultPrevented&&J.call(b,c)}var c=a.charts,w=a.doc,f=a.win;(g||(g={})).messages=[];Math.easeInOutSine=function(b){return-.5*(Math.cos(Math.PI*b)-1)};var n=Array.prototype.find?function(b,f){return b.find(f)}:
-function(b,f){var c,q=b.length;for(c=0;c<q;c++)if(f(b[c],c))return b[c]};E({map:"map",each:"forEach",grep:"filter",reduce:"reduce",some:"some"},function(b,f){a[f]=function(c){var q;g(32,!1,void 0,(q={},q["Highcharts.".concat(f)]="use Array.".concat(b),q));return Array.prototype[b].apply(c,[].slice.call(arguments,1))}});var b,u=function(){var f=Math.random().toString(36).substring(2,9)+"-",c=0;return function(){return"highcharts-"+(b?"":f)+c++}}();f.jQuery&&(f.jQuery.fn.highcharts=function(){var b=
-[].slice.call(arguments);if(this[0])return b[0]?(new (a[C(b[0])?b.shift():"Chart"])(this[0],b[0],b[1]),this):c[d(this[0],"data-highcharts-chart")]});n={addEvent:function(b,f,c,J){void 0===J&&(J={});var q="function"===typeof b&&b.prototype||b;Object.hasOwnProperty.call(q,"hcEvents")||(q.hcEvents={});q=q.hcEvents;a.Point&&b instanceof a.Point&&b.series&&b.series.chart&&(b.series.chart.runTrackerClick=!0);var z=b.addEventListener||a.addEventListenerPolyfill;z&&z.call(b,f,c,a.supportsPassiveEvents?{passive:void 0===
-J.passive?-1!==f.indexOf("touch"):J.passive,capture:!1}:!1);q[f]||(q[f]=[]);q[f].push({fn:c,order:"number"===typeof J.order?J.order:Infinity});q[f].sort(function(b,f){return b.order-f.order});return function(){L(b,f,c)}},arrayMax:function(b){for(var f=b.length,c=b[0];f--;)b[f]>c&&(c=b[f]);return c},arrayMin:function(b){for(var f=b.length,c=b[0];f--;)b[f]<c&&(c=b[f]);return c},attr:d,clamp:function(b,f,c){return b>f?b<c?b:c:f},cleanRecursively:x,clearTimeout:function(b){e(b)&&clearTimeout(b)},correctFloat:D,
-createElement:function(b,f,c,J,n){b=w.createElement(b);f&&h(b,f);n&&k(b,{padding:"0",border:"none",margin:"0"});c&&k(b,c);J&&J.appendChild(b);return b},css:k,defined:e,destroyObjectProperties:function(b,f){E(b,function(c,q){c&&c!==f&&c.destroy&&c.destroy();delete b[q]})},discardElement:function(b){b&&b.parentElement&&b.parentElement.removeChild(b)},erase:function(b,f){for(var c=b.length;c--;)if(b[c]===f){b.splice(c,1);break}},error:g,extend:h,extendClass:function(b,f){var c=function(){};c.prototype=
-new b;h(c.prototype,f);return c},find:n,fireEvent:y,getMagnitude:p,getNestedProperty:function(b,c){for(b=b.split(".");b.length&&e(c);){var q=b.shift();if("undefined"===typeof q||"__proto__"===q)return;c=c[q];if(!e(c)||"function"===typeof c||"number"===typeof c.nodeType||c===f)return}return c},getStyle:I,inArray:function(b,c,f){g(32,!1,void 0,{"Highcharts.inArray":"use Array.indexOf"});return c.indexOf(b,f)},isArray:B,isClass:r,isDOMElement:t,isFunction:function(b){return"function"===typeof b},isNumber:l,
-isObject:H,isString:C,keys:function(b){g(32,!1,void 0,{"Highcharts.keys":"use Object.keys"});return Object.keys(b)},merge:function(){var b,c=arguments,f={},J=function(b,c){"object"!==typeof b&&(b={});E(c,function(f,v){"__proto__"!==v&&"constructor"!==v&&(!H(f,!0)||r(f)||t(f)?b[v]=c[v]:b[v]=J(b[v]||{},f))});return b};!0===c[0]&&(f=c[1],c=Array.prototype.slice.call(c,2));var n=c.length;for(b=0;b<n;b++)f=J(f,c[b]);return f},normalizeTickInterval:function(b,c,f,J,n){var q=b;f=m(f,p(b));var u=b/f;c||(c=
-n?[1,1.2,1.5,2,2.5,3,4,5,6,8,10]:[1,2,2.5,5,10],!1===J&&(1===f?c=c.filter(function(b){return 0===b%1}):.1>=f&&(c=[1/f])));for(J=0;J<c.length&&!(q=c[J],n&&q*f>=b||!n&&u<=(c[J]+(c[J+1]||c[J]))/2);J++);return q=D(q*f,-Math.round(Math.log(.001)/Math.LN10))},objectEach:E,offset:function(b){var c=w.documentElement;b=b.parentElement||b.parentNode?b.getBoundingClientRect():{top:0,left:0,width:0,height:0};return{top:b.top+(f.pageYOffset||c.scrollTop)-(c.clientTop||0),left:b.left+(f.pageXOffset||c.scrollLeft)-
-(c.clientLeft||0),width:b.width,height:b.height}},pad:function(b,c,f){return Array((c||2)+1-String(b).replace("-","").length).join(f||"0")+b},pick:m,pInt:F,relativeLength:function(b,c,f){return/%$/.test(b)?c*parseFloat(b)/100+(f||0):parseFloat(b)},removeEvent:L,splat:function(b){return B(b)?b:[b]},stableSort:function(b,c){var f=b.length,J,n;for(n=0;n<f;n++)b[n].safeI=n;b.sort(function(b,f){J=c(b,f);return 0===J?b.safeI-f.safeI:J});for(n=0;n<f;n++)delete b[n].safeI},syncTimeout:function(b,c,f){if(0<
-c)return setTimeout(b,c,f);b.call(0,f);return-1},timeUnits:{millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5,month:24192E5,year:314496E5},uniqueKey:u,useSerialIds:function(c){return b=m(c,b)},wrap:function(b,c,f){var n=b[c];b[c]=function(){var b=arguments,c=this;return f.apply(this,[function(){return n.apply(c,arguments.length?arguments:b)}].concat([].slice.call(arguments)))}}};"";return n});K(g,"Core/Chart/ChartDefaults.js",[],function(){return{alignThresholds:!1,panning:{enabled:!1,
-type:"x"},styledMode:!1,borderRadius:0,colorCount:10,allowMutatingData:!0,defaultSeriesType:"line",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}},zoomBySingleTouch:!1,zooming:{singleTouch:!1,resetButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}}},width:null,height:null,borderColor:"#335cad",backgroundColor:"#ffffff",plotBorderColor:"#cccccc"}});K(g,"Core/Color/Color.js",[g["Core/Globals.js"],g["Core/Utilities.js"]],function(a,
-g){var A=g.isNumber,F=g.merge,C=g.pInt;g=function(){function g(A){this.rgba=[NaN,NaN,NaN,NaN];this.input=A;var t=a.Color;if(t&&t!==g)return new t(A);if(!(this instanceof g))return new g(A);this.init(A)}g.parse=function(a){return a?new g(a):g.None};g.prototype.init=function(a){var t;if("object"===typeof a&&"undefined"!==typeof a.stops)this.stops=a.stops.map(function(d){return new g(d[1])});else if("string"===typeof a){this.input=a=g.names[a.toLowerCase()]||a;if("#"===a.charAt(0)){var r=a.length;var l=
-parseInt(a.substr(1),16);7===r?t=[(l&16711680)>>16,(l&65280)>>8,l&255,1]:4===r&&(t=[(l&3840)>>4|(l&3840)>>8,(l&240)>>4|l&240,(l&15)<<4|l&15,1])}if(!t)for(l=g.parsers.length;l--&&!t;){var e=g.parsers[l];(r=e.regex.exec(a))&&(t=e.parse(r))}}t&&(this.rgba=t)};g.prototype.get=function(a){var t=this.input,r=this.rgba;if("object"===typeof t&&"undefined"!==typeof this.stops){var l=F(t);l.stops=[].slice.call(l.stops);this.stops.forEach(function(e,d){l.stops[d]=[l.stops[d][0],e.get(a)]});return l}return r&&
-A(r[0])?"rgb"===a||!a&&1===r[3]?"rgb("+r[0]+","+r[1]+","+r[2]+")":"a"===a?"".concat(r[3]):"rgba("+r.join(",")+")":t};g.prototype.brighten=function(a){var t=this.rgba;if(this.stops)this.stops.forEach(function(l){l.brighten(a)});else if(A(a)&&0!==a)for(var r=0;3>r;r++)t[r]+=C(255*a),0>t[r]&&(t[r]=0),255<t[r]&&(t[r]=255);return this};g.prototype.setOpacity=function(a){this.rgba[3]=a;return this};g.prototype.tweenTo=function(a,t){var r=this.rgba,l=a.rgba;if(!A(r[0])||!A(l[0]))return a.input||"none";a=
-1!==l[3]||1!==r[3];return(a?"rgba(":"rgb(")+Math.round(l[0]+(r[0]-l[0])*(1-t))+","+Math.round(l[1]+(r[1]-l[1])*(1-t))+","+Math.round(l[2]+(r[2]-l[2])*(1-t))+(a?","+(l[3]+(r[3]-l[3])*(1-t)):"")+")"};g.names={white:"#ffffff",black:"#000000"};g.parsers=[{regex:/rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]?(?:\.[0-9]+)?)\s*\)/,parse:function(a){return[C(a[1]),C(a[2]),C(a[3]),parseFloat(a[4],10)]}},{regex:/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/,parse:function(a){return[C(a[1]),
-C(a[2]),C(a[3]),1]}}];g.None=new g("");return g}();"";return g});K(g,"Core/Color/Palettes.js",[],function(){return{colors:"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1".split(" ")}});K(g,"Core/Time.js",[g["Core/Globals.js"],g["Core/Utilities.js"]],function(a,g){var A=a.win,F=g.defined,C=g.error,B=g.extend,H=g.isObject,t=g.merge,r=g.objectEach,l=g.pad,e=g.pick,d=g.splat,h=g.timeUnits,m=a.isSafari&&A.Intl&&A.Intl.DateTimeFormat.prototype.formatRange,k=a.isSafari&&
-A.Intl&&!A.Intl.DateTimeFormat.prototype.formatRange;g=function(){function p(d){this.options={};this.variableTimezone=this.useUTC=!1;this.Date=A.Date;this.getTimezoneOffset=this.timezoneOffsetFunction();this.update(d)}p.prototype.get=function(d,e){if(this.variableTimezone||this.timezoneOffset){var h=e.getTime(),k=h-this.getTimezoneOffset(e);e.setTime(k);d=e["getUTC"+d]();e.setTime(h);return d}return this.useUTC?e["getUTC"+d]():e["get"+d]()};p.prototype.set=function(d,e,h){if(this.variableTimezone||
-this.timezoneOffset){if("Milliseconds"===d||"Seconds"===d||"Minutes"===d&&0===this.getTimezoneOffset(e)%36E5)return e["setUTC"+d](h);var k=this.getTimezoneOffset(e);k=e.getTime()-k;e.setTime(k);e["setUTC"+d](h);d=this.getTimezoneOffset(e);k=e.getTime()+d;return e.setTime(k)}return this.useUTC||m&&"FullYear"===d?e["setUTC"+d](h):e["set"+d](h)};p.prototype.update=function(d){void 0===d&&(d={});var h=e(d.useUTC,!0);this.options=d=t(!0,this.options,d);this.Date=d.Date||A.Date||Date;this.timezoneOffset=
-(this.useUTC=h)&&d.timezoneOffset||void 0;this.getTimezoneOffset=this.timezoneOffsetFunction();this.variableTimezone=h&&!(!d.getTimezoneOffset&&!d.timezone)};p.prototype.makeTime=function(d,h,m,p,y,c){if(this.useUTC){var w=this.Date.UTC.apply(0,arguments);var f=this.getTimezoneOffset(w);w+=f;var n=this.getTimezoneOffset(w);f!==n?w+=n-f:f-36E5!==this.getTimezoneOffset(w-36E5)||k||(w-=36E5)}else w=(new this.Date(d,h,e(m,1),e(p,0),e(y,0),e(c,0))).getTime();return w};p.prototype.timezoneOffsetFunction=
-function(){var d=this,e=this.options,h=e.getTimezoneOffset,k=e.moment||A.moment;if(!this.useUTC)return function(d){return 6E4*(new Date(d.toString())).getTimezoneOffset()};if(e.timezone){if(k)return function(d){return 6E4*-k.tz(d,e.timezone).utcOffset()};C(25)}return this.useUTC&&h?function(d){return 6E4*h(d.valueOf())}:function(){return 6E4*(d.timezoneOffset||0)}};p.prototype.dateFormat=function(d,h,k){if(!F(h)||isNaN(h))return a.defaultOptions.lang&&a.defaultOptions.lang.invalidDate||"";d=e(d,"%Y-%m-%d %H:%M:%S");
-var m=this,p=new this.Date(h),c=this.get("Hours",p),w=this.get("Day",p),f=this.get("Date",p),n=this.get("Month",p),b=this.get("FullYear",p),u=a.defaultOptions.lang,z=u&&u.weekdays,q=u&&u.shortWeekdays;p=B({a:q?q[w]:z[w].substr(0,3),A:z[w],d:l(f),e:l(f,2," "),w:w,b:u.shortMonths[n],B:u.months[n],m:l(n+1),o:n+1,y:b.toString().substr(2,2),Y:b,H:l(c),k:c,I:l(c%12||12),l:c%12||12,M:l(this.get("Minutes",p)),p:12>c?"AM":"PM",P:12>c?"am":"pm",S:l(p.getSeconds()),L:l(Math.floor(h%1E3),3)},a.dateFormats);r(p,
-function(b,c){for(;-1!==d.indexOf("%"+c);)d=d.replace("%"+c,"function"===typeof b?b.call(m,h):b)});return k?d.substr(0,1).toUpperCase()+d.substr(1):d};p.prototype.resolveDTLFormat=function(e){return H(e,!0)?e:(e=d(e),{main:e[0],from:e[1],to:e[2]})};p.prototype.getTimeTicks=function(d,k,p,m){var y=this,c=[],w={},f=new y.Date(k),n=d.unitRange,b=d.count||1,u;m=e(m,1);if(F(k)){y.set("Milliseconds",f,n>=h.second?0:b*Math.floor(y.get("Milliseconds",f)/b));n>=h.second&&y.set("Seconds",f,n>=h.minute?0:b*
-Math.floor(y.get("Seconds",f)/b));n>=h.minute&&y.set("Minutes",f,n>=h.hour?0:b*Math.floor(y.get("Minutes",f)/b));n>=h.hour&&y.set("Hours",f,n>=h.day?0:b*Math.floor(y.get("Hours",f)/b));n>=h.day&&y.set("Date",f,n>=h.month?1:Math.max(1,b*Math.floor(y.get("Date",f)/b)));if(n>=h.month){y.set("Month",f,n>=h.year?0:b*Math.floor(y.get("Month",f)/b));var z=y.get("FullYear",f)}n>=h.year&&y.set("FullYear",f,z-z%b);n===h.week&&(z=y.get("Day",f),y.set("Date",f,y.get("Date",f)-z+m+(z<m?-7:0)));z=y.get("FullYear",
-f);m=y.get("Month",f);var q=y.get("Date",f),N=y.get("Hours",f);k=f.getTime();!y.variableTimezone&&y.useUTC||!F(p)||(u=p-k>4*h.month||y.getTimezoneOffset(k)!==y.getTimezoneOffset(p));k=f.getTime();for(f=1;k<p;)c.push(k),k=n===h.year?y.makeTime(z+f*b,0):n===h.month?y.makeTime(z,m+f*b):!u||n!==h.day&&n!==h.week?u&&n===h.hour&&1<b?y.makeTime(z,m,q,N+f*b):k+n*b:y.makeTime(z,m,q+f*b*(n===h.day?1:7)),f++;c.push(k);n<=h.hour&&1E4>c.length&&c.forEach(function(b){0===b%18E5&&"000000000"===y.dateFormat("%H%M%S%L",
-b)&&(w[b]="day")})}c.info=B(d,{higherRanks:w,totalRange:n*b});return c};p.prototype.getDateFormat=function(d,e,k,p){var m=this.dateFormat("%m-%d %H:%M:%S.%L",e),c={millisecond:15,second:12,minute:9,hour:6,day:3},w="millisecond";for(f in h){if(d===h.week&&+this.dateFormat("%w",e)===k&&"00:00:00.000"===m.substr(6)){var f="week";break}if(h[f]>d){f=w;break}if(c[f]&&m.substr(c[f])!=="01-01 00:00:00.000".substr(c[f]))break;"week"!==f&&(w=f)}return this.resolveDTLFormat(p[f]).main};return p}();"";return g});
-K(g,"Core/Defaults.js",[g["Core/Chart/ChartDefaults.js"],g["Core/Color/Color.js"],g["Core/Globals.js"],g["Core/Color/Palettes.js"],g["Core/Time.js"],g["Core/Utilities.js"]],function(a,g,x,F,C,B){g=g.parse;var A=B.merge,t={colors:F.colors,symbols:["circle","diamond","square","triangle","triangle-down"],lang:{loading:"Loading...",months:"January February March April May June July August September October November December".split(" "),shortMonths:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),
-weekdays:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),decimalPoint:".",numericSymbols:"kMGTPE".split(""),resetZoom:"Reset zoom",resetZoomTitle:"Reset zoom level 1:1",thousandsSep:" "},global:{},time:{Date:void 0,getTimezoneOffset:void 0,timezone:void 0,timezoneOffset:0,useUTC:!0},chart:a,title:{text:"Chart title",align:"center",margin:15,widthAdjust:-44},subtitle:{text:"",align:"center",widthAdjust:-44},caption:{margin:15,text:"",align:"left",verticalAlign:"bottom"},plotOptions:{},
-labels:{style:{position:"absolute",color:"#333333"}},legend:{enabled:!0,align:"center",alignColumns:!0,className:"highcharts-no-tooltip",layout:"horizontal",labelFormatter:function(){return this.name},borderColor:"#999999",borderRadius:0,navigation:{activeColor:"#003399",inactiveColor:"#cccccc"},itemStyle:{color:"#333333",cursor:"pointer",fontSize:"12px",fontWeight:"bold",textOverflow:"ellipsis"},itemHoverStyle:{color:"#000000"},itemHiddenStyle:{color:"#cccccc"},shadow:!1,itemCheckboxStyle:{position:"absolute",
-width:"13px",height:"13px"},squareSymbol:!0,symbolPadding:5,verticalAlign:"bottom",x:0,y:0,title:{style:{fontWeight:"bold"}}},loading:{labelStyle:{fontWeight:"bold",position:"relative",top:"45%"},style:{position:"absolute",backgroundColor:"#ffffff",opacity:.5,textAlign:"center"}},tooltip:{enabled:!0,animation:x.svg,borderRadius:3,dateTimeLabelFormats:{millisecond:"%A, %b %e, %H:%M:%S.%L",second:"%A, %b %e, %H:%M:%S",minute:"%A, %b %e, %H:%M",hour:"%A, %b %e, %H:%M",day:"%A, %b %e, %Y",week:"Week from %A, %b %e, %Y",
-month:"%B %Y",year:"%Y"},footerFormat:"",headerShape:"callout",hideDelay:500,padding:8,shape:"callout",shared:!1,snap:x.isTouchDevice?25:10,headerFormat:'<span style="font-size: 10px">{point.key}</span><br/>',pointFormat:'<span style="color:{point.color}">\u25cf</span> {series.name}: <b>{point.y}</b><br/>',backgroundColor:g("#f7f7f7").setOpacity(.85).get(),borderWidth:1,shadow:!0,stickOnContact:!1,style:{color:"#333333",cursor:"default",fontSize:"12px",whiteSpace:"nowrap"},useHTML:!1},credits:{enabled:!0,
-href:"https://www.highcharts.com?credits",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:"#999999",fontSize:"9px"},text:"Highcharts.com"}};t.chart.styledMode=!1;"";var r=new C(A(t.global,t.time));a={defaultOptions:t,defaultTime:r,getOptions:function(){return t},setOptions:function(l){A(!0,t,l);if(l.time||l.global)x.time?x.time.update(A(t.global,t.time,l.global,l.time)):x.time=r;return t}};"";return a});K(g,"Core/Animation/Fx.js",[g["Core/Color/Color.js"],
-g["Core/Globals.js"],g["Core/Utilities.js"]],function(a,g,x){var A=a.parse,C=g.win,B=x.isNumber,H=x.objectEach;return function(){function a(a,l,e){this.pos=NaN;this.options=l;this.elem=a;this.prop=e}a.prototype.dSetter=function(){var a=this.paths,l=a&&a[0];a=a&&a[1];var e=this.now||0,d=[];if(1!==e&&l&&a)if(l.length===a.length&&1>e)for(var h=0;h<a.length;h++){for(var m=l[h],k=a[h],p=[],D=0;D<k.length;D++){var I=m[D],E=k[D];B(I)&&B(E)&&("A"!==k[0]||4!==D&&5!==D)?p[D]=I+e*(E-I):p[D]=E}d.push(p)}else d=
-a;else d=this.toD||[];this.elem.attr("d",d,void 0,!0)};a.prototype.update=function(){var a=this.elem,l=this.prop,e=this.now,d=this.options.step;if(this[l+"Setter"])this[l+"Setter"]();else a.attr?a.element&&a.attr(l,e,null,!0):a.style[l]=e+this.unit;d&&d.call(a,e,this)};a.prototype.run=function(r,l,e){var d=this,h=d.options,m=function(e){return m.stopped?!1:d.step(e)},k=C.requestAnimationFrame||function(d){setTimeout(d,13)},p=function(){for(var d=0;d<a.timers.length;d++)a.timers[d]()||a.timers.splice(d--,
-1);a.timers.length&&k(p)};r!==l||this.elem["forceAnimate:"+this.prop]?(this.startTime=+new Date,this.start=r,this.end=l,this.unit=e,this.now=this.start,this.pos=0,m.elem=this.elem,m.prop=this.prop,m()&&1===a.timers.push(m)&&k(p)):(delete h.curAnim[this.prop],h.complete&&0===Object.keys(h.curAnim).length&&h.complete.call(this.elem))};a.prototype.step=function(a){var l=+new Date,e=this.options,d=this.elem,h=e.complete,m=e.duration,k=e.curAnim;if(d.attr&&!d.element)a=!1;else if(a||l>=m+this.startTime){this.now=
-this.end;this.pos=1;this.update();var p=k[this.prop]=!0;H(k,function(d){!0!==d&&(p=!1)});p&&h&&h.call(d);a=!1}else this.pos=e.easing((l-this.startTime)/m),this.now=this.start+(this.end-this.start)*this.pos,this.update(),a=!0;return a};a.prototype.initPath=function(a,l,e){function d(d,c){for(;d.length<L;){var e=d[0],f=c[L-d.length];f&&"M"===e[0]&&(d[0]="C"===f[0]?["C",e[1],e[2],e[1],e[2],e[1],e[2]]:["L",e[1],e[2]]);d.unshift(e);p&&(e=d.pop(),d.push(d[d.length-1],e))}}function h(d,c){for(;d.length<
-L;)if(c=d[Math.floor(d.length/D)-1].slice(),"C"===c[0]&&(c[1]=c[5],c[2]=c[6]),p){var e=d[Math.floor(d.length/D)].slice();d.splice(d.length/2,0,c,e)}else d.push(c)}var m=a.startX,k=a.endX;e=e.slice();var p=a.isArea,D=p?2:1;l=l&&l.slice();if(!l)return[e,e];if(m&&k&&k.length){for(a=0;a<m.length;a++)if(m[a]===k[0]){var I=a;break}else if(m[0]===k[k.length-m.length+a]){I=a;var E=!0;break}else if(m[m.length-1]===k[k.length-m.length+a]){I=m.length-a;break}"undefined"===typeof I&&(l=[])}if(l.length&&B(I)){var L=
-e.length+I*D;E?(d(l,e),h(e,l)):(d(e,l),h(l,e))}return[l,e]};a.prototype.fillSetter=function(){a.prototype.strokeSetter.apply(this,arguments)};a.prototype.strokeSetter=function(){this.elem.attr(this.prop,A(this.start).tweenTo(A(this.end),this.pos),void 0,!0)};a.timers=[];return a}()});K(g,"Core/Animation/AnimationUtilities.js",[g["Core/Animation/Fx.js"],g["Core/Utilities.js"]],function(a,g){function A(d){return r(d)?l({duration:500,defer:0},d):{duration:d?500:0,defer:0}}function F(d,e){for(var k=a.timers.length;k--;)a.timers[k].elem!==
-d||e&&e!==a.timers[k].prop||(a.timers[k].stopped=!0)}var C=g.defined,B=g.getStyle,H=g.isArray,t=g.isNumber,r=g.isObject,l=g.merge,e=g.objectEach,d=g.pick;return{animate:function(d,m,k){var p,h="",I,E;if(!r(k)){var g=arguments;k={duration:g[2],easing:g[3],complete:g[4]}}t(k.duration)||(k.duration=400);k.easing="function"===typeof k.easing?k.easing:Math[k.easing]||Math.easeInOutSine;k.curAnim=l(m);e(m,function(e,c){F(d,c);E=new a(d,k,c);I=void 0;"d"===c&&H(m.d)?(E.paths=E.initPath(d,d.pathArray,m.d),
-E.toD=m.d,p=0,I=1):d.attr?p=d.attr(c):(p=parseFloat(B(d,c))||0,"opacity"!==c&&(h="px"));I||(I=e);"string"===typeof I&&I.match("px")&&(I=I.replace(/px/g,""));E.run(p,I,h)})},animObject:A,getDeferredAnimation:function(d,e,k){var p=A(e),h=0,m=0;(k?[k]:d.series).forEach(function(d){d=A(d.options.animation);h=e&&C(e.defer)?p.defer:Math.max(h,d.duration+d.defer);m=Math.min(p.duration,d.duration)});d.renderer.forExport&&(h=0);return{defer:Math.max(0,h-m),duration:Math.min(h,m)}},setAnimation:function(e,
-m){m.renderer.globalAnimation=d(e,m.options.chart.animation,!0)},stop:F}});K(g,"Core/Renderer/HTML/AST.js",[g["Core/Globals.js"],g["Core/Utilities.js"]],function(a,g){var A=a.SVG_NS,F=g.attr,C=g.createElement,B=g.css,H=g.error,t=g.isFunction,r=g.isString,l=g.objectEach,e=g.splat,d=(g=a.win.trustedTypes)&&t(g.createPolicy)&&g.createPolicy("highcharts",{createHTML:function(d){return d}}),h=d?d.createHTML(""):"";try{var m=!!(new DOMParser).parseFromString(h,"text/html")}catch(k){m=!1}t=function(){function k(d){this.nodes=
-"string"===typeof d?this.parseMarkup(d):d}k.filterUserAttributes=function(d){l(d,function(e,h){var m=!0;-1===k.allowedAttributes.indexOf(h)&&(m=!1);-1!==["background","dynsrc","href","lowsrc","src"].indexOf(h)&&(m=r(e)&&k.allowedReferences.some(function(d){return 0===e.indexOf(d)}));m||(H(33,!1,void 0,{"Invalid attribute in config":"".concat(h)}),delete d[h]);r(e)&&d[h]&&(d[h]=e.replace(/</g,"&lt;"))});return d};k.parseStyle=function(d){return d.split(";").reduce(function(d,e){e=e.split(":").map(function(d){return d.trim()});
-var k=e.shift();k&&e.length&&(d[k.replace(/-([a-z])/g,function(d){return d[1].toUpperCase()})]=e.join(":"));return d},{})};k.setElementHTML=function(d,e){d.innerHTML=k.emptyHTML;e&&(new k(e)).addToDOM(d)};k.prototype.addToDOM=function(d){function h(d,m){var p;e(d).forEach(function(d){var c=d.tagName,e=d.textContent?a.doc.createTextNode(d.textContent):void 0,f=k.bypassHTMLFiltering;if(c)if("#text"===c)var n=e;else if(-1!==k.allowedTags.indexOf(c)||f){c=a.doc.createElementNS("svg"===c?A:m.namespaceURI||
-A,c);var b=d.attributes||{};l(d,function(c,f){"tagName"!==f&&"attributes"!==f&&"children"!==f&&"style"!==f&&"textContent"!==f&&(b[f]=c)});F(c,f?b:k.filterUserAttributes(b));d.style&&B(c,d.style);e&&c.appendChild(e);h(d.children||[],c);n=c}else H(33,!1,void 0,{"Invalid tagName in config":c});n&&m.appendChild(n);p=n});return p}return h(this.nodes,d)};k.prototype.parseMarkup=function(e){var h=[];e=e.trim().replace(/ style=(["'])/g," data-style=$1");if(m)e=(new DOMParser).parseFromString(d?d.createHTML(e):
-e,"text/html");else{var p=C("div");p.innerHTML=e;e={body:p}}var a=function(d,e){var c=d.nodeName.toLowerCase(),h={tagName:c};"#text"===c&&(h.textContent=d.textContent||"");if(c=d.attributes){var f={};[].forEach.call(c,function(b){"data-style"===b.name?h.style=k.parseStyle(b.value):f[b.name]=b.value});h.attributes=f}if(d.childNodes.length){var n=[];[].forEach.call(d.childNodes,function(b){a(b,n)});n.length&&(h.children=n)}e.push(h)};[].forEach.call(e.body.childNodes,function(d){return a(d,h)});return h};
-k.allowedAttributes="aria-controls aria-describedby aria-expanded aria-haspopup aria-hidden aria-label aria-labelledby aria-live aria-pressed aria-readonly aria-roledescription aria-selected class clip-path color colspan cx cy d dx dy disabled fill height href id in markerHeight markerWidth offset opacity orient padding paddingLeft paddingRight patternUnits r refX refY role scope slope src startOffset stdDeviation stroke stroke-linecap stroke-width style tableValues result rowspan summary target tabindex text-align text-anchor textAnchor textLength title type valign width x x1 x2 xlink:href y y1 y2 zIndex".split(" ");
-k.allowedReferences="https:// http:// mailto: / ../ ./ #".split(" ");k.allowedTags="a abbr b br button caption circle clipPath code dd defs div dl dt em feComponentTransfer feFuncA feFuncB feFuncG feFuncR feGaussianBlur feOffset feMerge feMergeNode filter h1 h2 h3 h4 h5 h6 hr i img li linearGradient marker ol p path pattern pre rect small span stop strong style sub sup svg table text textPath thead title tbody tspan td th tr u ul #text".split(" ");k.emptyHTML=h;k.bypassHTMLFiltering=!1;return k}();
-"";return t});K(g,"Core/FormatUtilities.js",[g["Core/Defaults.js"],g["Core/Utilities.js"]],function(a,g){function A(a,e,d,h){a=+a||0;e=+e;var m=F.lang,k=(a.toString().split(".")[1]||"").split("e")[0].length,p=a.toString().split("e"),l=e;if(-1===e)e=Math.min(k,20);else if(!H(e))e=2;else if(e&&p[1]&&0>p[1]){var g=e+ +p[1];0<=g?(p[0]=(+p[0]).toExponential(g).split("e")[0],e=g):(p[0]=p[0].split(".")[0]||0,a=20>e?(p[0]*Math.pow(10,p[1])).toFixed(e):0,p[1]=0)}g=(Math.abs(p[1]?p[0]:a)+Math.pow(10,-Math.max(e,
-k)-1)).toFixed(e);k=String(r(g));var E=3<k.length?k.length%3:0;d=t(d,m.decimalPoint);h=t(h,m.thousandsSep);a=(0>a?"-":"")+(E?k.substr(0,E)+h:"");a=0>+p[1]&&!l?"0":a+k.substr(E).replace(/(\d{3})(?=\d)/g,"$1"+h);e&&(a+=d+g.slice(-e));p[1]&&0!==+a&&(a+="e"+p[1]);return a}var F=a.defaultOptions,C=a.defaultTime,B=g.getNestedProperty,H=g.isNumber,t=g.pick,r=g.pInt;return{dateFormat:function(a,e,d){return C.dateFormat(a,e,d)},format:function(a,e,d){var h="{",m=!1,k=/f$/,p=/\.([0-9])/,l=F.lang,g=d&&d.time||
-C;d=d&&d.numberFormatter||A;for(var E=[];a;){var t=a.indexOf(h);if(-1===t)break;var y=a.slice(0,t);if(m){y=y.split(":");h=B(y.shift()||"",e);if(y.length&&"number"===typeof h)if(y=y.join(":"),k.test(y)){var c=parseInt((y.match(p)||["","-1"])[1],10);null!==h&&(h=d(h,c,l.decimalPoint,-1<y.indexOf(",")?l.thousandsSep:""))}else h=g.dateFormat(y,h);E.push(h)}else E.push(y);a=a.slice(t+1);h=(m=!m)?"}":"{"}E.push(a);return E.join("")},numberFormat:A}});K(g,"Core/Renderer/RendererUtilities.js",[g["Core/Utilities.js"]],
-function(a){var g=a.clamp,x=a.pick,F=a.stableSort,C;(function(a){function A(a,r,l){var e=a,d=e.reducedLen||r,h=function(d,e){return(e.rank||0)-(d.rank||0)},m=function(d,e){return d.target-e.target},k,p=!0,D=[],I=0;for(k=a.length;k--;)I+=a[k].size;if(I>d){F(a,h);for(I=k=0;I<=d;)I+=a[k].size,k++;D=a.splice(k-1,a.length)}F(a,m);for(a=a.map(function(d){return{size:d.size,targets:[d.target],align:x(d.align,.5)}});p;){for(k=a.length;k--;)d=a[k],h=(Math.min.apply(0,d.targets)+Math.max.apply(0,d.targets))/
-2,d.pos=g(h-d.size*d.align,0,r-d.size);k=a.length;for(p=!1;k--;)0<k&&a[k-1].pos+a[k-1].size>a[k].pos&&(a[k-1].size+=a[k].size,a[k-1].targets=a[k-1].targets.concat(a[k].targets),a[k-1].align=.5,a[k-1].pos+a[k-1].size>r&&(a[k-1].pos=r-a[k-1].size),a.splice(k,1),p=!0)}e.push.apply(e,D);k=0;a.some(function(d){var h=0;return(d.targets||[]).some(function(){e[k].pos=d.pos+h;if("undefined"!==typeof l&&Math.abs(e[k].pos-e[k].target)>l)return e.slice(0,k+1).forEach(function(d){return delete d.pos}),e.reducedLen=
-(e.reducedLen||r)-.1*r,e.reducedLen>.1*r&&A(e,r,l),!0;h+=e[k].size;k++;return!1})});F(e,m);return e}a.distribute=A})(C||(C={}));return C});K(g,"Core/Renderer/SVG/SVGElement.js",[g["Core/Animation/AnimationUtilities.js"],g["Core/Color/Color.js"],g["Core/Globals.js"],g["Core/Utilities.js"]],function(a,g,x,F){var A=a.animate,B=a.animObject,H=a.stop,t=x.deg2rad,r=x.doc,l=x.svg,e=x.SVG_NS,d=x.win,h=F.addEvent,m=F.attr,k=F.createElement,p=F.css,D=F.defined,I=F.erase,E=F.extend,L=F.fireEvent,y=F.isArray,
-c=F.isFunction,w=F.isString,f=F.merge,n=F.objectEach,b=F.pick,u=F.pInt,z=F.syncTimeout,q=F.uniqueKey;a=function(){function a(){this.element=void 0;this.onEvents={};this.opacity=1;this.renderer=void 0;this.SVG_NS=e;this.symbolCustomAttribs="x y width height r start end innerR anchorX anchorY rounded".split(" ")}a.prototype._defaultGetter=function(c){c=b(this[c+"Value"],this[c],this.element?this.element.getAttribute(c):null,0);/^[\-0-9\.]+$/.test(c)&&(c=parseFloat(c));return c};a.prototype._defaultSetter=
-function(b,c,f){f.setAttribute(c,b)};a.prototype.add=function(b){var c=this.renderer,f=this.element;b&&(this.parentGroup=b);"undefined"!==typeof this.textStr&&"text"===this.element.nodeName&&c.buildText(this);this.added=!0;if(!b||b.handleZ||this.zIndex)var d=this.zIndexSetter();d||(b?b.element:c.box).appendChild(f);if(this.onAdd)this.onAdd();return this};a.prototype.addClass=function(b,c){var f=c?"":this.attr("class")||"";b=(b||"").split(/ /g).reduce(function(b,c){-1===f.indexOf(c)&&b.push(c);return b},
-f?[f]:[]).join(" ");b!==f&&this.attr("class",b);return this};a.prototype.afterSetters=function(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)};a.prototype.align=function(c,f,d){var n={},e=this.renderer,v=e.alignedObjects,q,J,u;if(c){if(this.alignOptions=c,this.alignByTranslate=f,!d||w(d))this.alignTo=q=d||"renderer",I(v,this),v.push(this),d=void 0}else c=this.alignOptions,f=this.alignByTranslate,q=this.alignTo;d=b(d,e[q],"scrollablePlotBox"===q?e.plotBox:void 0,e);q=c.align;var a=
-c.verticalAlign;e=(d.x||0)+(c.x||0);v=(d.y||0)+(c.y||0);"right"===q?J=1:"center"===q&&(J=2);J&&(e+=(d.width-(c.width||0))/J);n[f?"translateX":"x"]=Math.round(e);"bottom"===a?u=1:"middle"===a&&(u=2);u&&(v+=(d.height-(c.height||0))/u);n[f?"translateY":"y"]=Math.round(v);this[this.placed?"animate":"attr"](n);this.placed=!0;this.alignAttr=n;return this};a.prototype.alignSetter=function(b){var c={left:"start",center:"middle",right:"end"};c[b]&&(this.alignValue=b,this.element.setAttribute("text-anchor",
-c[b]))};a.prototype.animate=function(c,f,d){var e=this,q=B(b(f,this.renderer.globalAnimation,!0));f=q.defer;b(r.hidden,r.msHidden,r.webkitHidden,!1)&&(q.duration=0);0!==q.duration?(d&&(q.complete=d),z(function(){e.element&&A(e,c,q)},f)):(this.attr(c,void 0,d||q.complete),n(c,function(b,c){q.step&&q.step.call(this,b,{prop:c,pos:1,elem:this})},this));return this};a.prototype.applyTextOutline=function(b){var c=this.element;-1!==b.indexOf("contrast")&&(b=b.replace(/contrast/g,this.renderer.getContrast(c.style.fill)));
-var f=b.split(" ");b=f[f.length-1];if((f=f[0])&&"none"!==f&&x.svg){this.fakeTS=!0;f=f.replace(/(^[\d\.]+)(.*?)$/g,function(b,c,f){return 2*Number(c)+f});this.removeTextOutline();var d=r.createElementNS(e,"tspan");m(d,{"class":"highcharts-text-outline",fill:b,stroke:b,"stroke-width":f,"stroke-linejoin":"round"});b=c.querySelector("textPath")||c;[].forEach.call(b.childNodes,function(b){var c=b.cloneNode(!0);c.removeAttribute&&["fill","stroke","stroke-width","stroke"].forEach(function(b){return c.removeAttribute(b)});
-d.appendChild(c)});var n=0;[].forEach.call(b.querySelectorAll("text tspan"),function(b){n+=Number(b.getAttribute("dy"))});f=r.createElementNS(e,"tspan");f.textContent="\u200b";m(f,{x:Number(c.getAttribute("x")),dy:-n});d.appendChild(f);b.insertBefore(d,b.firstChild)}};a.prototype.attr=function(b,c,f,d){var e=this.element,v=this.symbolCustomAttribs,q,u=this,J,a;if("string"===typeof b&&"undefined"!==typeof c){var G=b;b={};b[G]=c}"string"===typeof b?u=(this[b+"Getter"]||this._defaultGetter).call(this,
-b,e):(n(b,function(c,f){J=!1;d||H(this,f);this.symbolName&&-1!==v.indexOf(f)&&(q||(this.symbolAttr(b),q=!0),J=!0);!this.rotation||"x"!==f&&"y"!==f||(this.doTransform=!0);J||(a=this[f+"Setter"]||this._defaultSetter,a.call(this,c,f,e),!this.styledMode&&this.shadows&&/^(width|height|visibility|x|y|d|transform|cx|cy|r)$/.test(f)&&this.updateShadows(f,c,a))},this),this.afterSetters());f&&f.call(this);return u};a.prototype.clip=function(b){return this.attr("clip-path",b?"url("+this.renderer.url+"#"+b.id+
-")":"none")};a.prototype.crisp=function(b,c){c=c||b.strokeWidth||0;var f=Math.round(c)%2/2;b.x=Math.floor(b.x||this.x||0)+f;b.y=Math.floor(b.y||this.y||0)+f;b.width=Math.floor((b.width||this.width||0)-2*f);b.height=Math.floor((b.height||this.height||0)-2*f);D(b.strokeWidth)&&(b.strokeWidth=c);return b};a.prototype.complexColor=function(b,c,d){var e=this.renderer,u,v,a,J,h,z,G,k,M,w,m=[],p;L(this.renderer,"complexColor",{args:arguments},function(){b.radialGradient?v="radialGradient":b.linearGradient&&
-(v="linearGradient");if(v){a=b[v];h=e.gradients;z=b.stops;M=d.radialReference;y(a)&&(b[v]=a={x1:a[0],y1:a[1],x2:a[2],y2:a[3],gradientUnits:"userSpaceOnUse"});"radialGradient"===v&&M&&!D(a.gradientUnits)&&(J=a,a=f(a,e.getRadialAttr(M,J),{gradientUnits:"userSpaceOnUse"}));n(a,function(b,c){"id"!==c&&m.push(c,b)});n(z,function(b){m.push(b)});m=m.join(",");if(h[m])w=h[m].attr("id");else{a.id=w=q();var U=h[m]=e.createElement(v).attr(a).add(e.defs);U.radAttr=J;U.stops=[];z.forEach(function(b){0===b[1].indexOf("rgba")?
-(u=g.parse(b[1]),G=u.get("rgb"),k=u.get("a")):(G=b[1],k=1);b=e.createElement("stop").attr({offset:b[0],"stop-color":G,"stop-opacity":k}).add(U);U.stops.push(b)})}p="url("+e.url+"#"+w+")";d.setAttribute(c,p);d.gradient=m;b.toString=function(){return p}}})};a.prototype.css=function(b){var c=this.styles,d={},e=this.element,q=!c;b.color&&(b.fill=b.color);c&&n(b,function(b,f){c&&c[f]!==b&&(d[f]=b,q=!0)});if(q){c&&(b=E(c,d));if(null===b.width||"auto"===b.width)delete this.textWidth;else if("text"===e.nodeName.toLowerCase()&&
-b.width)var v=this.textWidth=u(b.width);this.styles=b;v&&!l&&this.renderer.forExport&&delete b.width;var a=f(b);e.namespaceURI===this.SVG_NS&&["textOutline","textOverflow","width"].forEach(function(b){return a&&delete a[b]});p(e,a);this.added&&("text"===this.element.nodeName&&this.renderer.buildText(this),b.textOutline&&this.applyTextOutline(b.textOutline))}return this};a.prototype.dashstyleSetter=function(c){var f=this["stroke-width"];"inherit"===f&&(f=1);if(c=c&&c.toLowerCase()){var d=c.replace("shortdashdotdot",
-"3,1,1,1,1,1,").replace("shortdashdot","3,1,1,1").replace("shortdot","1,1,").replace("shortdash","3,1,").replace("longdash","8,3,").replace(/dot/g,"1,3,").replace("dash","4,3,").replace(/,$/,"").split(",");for(c=d.length;c--;)d[c]=""+u(d[c])*b(f,NaN);c=d.join(",").replace(/NaN/g,"none");this.element.setAttribute("stroke-dasharray",c)}};a.prototype.destroy=function(){var b=this,c=b.element||{},f=b.renderer,d=c.ownerSVGElement,e=f.isSVG&&"SPAN"===c.nodeName&&b.parentGroup||void 0;c.onclick=c.onmouseout=
-c.onmouseover=c.onmousemove=c.point=null;H(b);if(b.clipPath&&d){var v=b.clipPath;[].forEach.call(d.querySelectorAll("[clip-path],[CLIP-PATH]"),function(b){-1<b.getAttribute("clip-path").indexOf(v.element.id)&&b.removeAttribute("clip-path")});b.clipPath=v.destroy()}if(b.stops){for(d=0;d<b.stops.length;d++)b.stops[d].destroy();b.stops.length=0;b.stops=void 0}b.safeRemoveChild(c);for(f.styledMode||b.destroyShadows();e&&e.div&&0===e.div.childNodes.length;)c=e.parentGroup,b.safeRemoveChild(e.div),delete e.div,
-e=c;b.alignTo&&I(f.alignedObjects,b);n(b,function(c,f){b[f]&&b[f].parentGroup===b&&b[f].destroy&&b[f].destroy();delete b[f]})};a.prototype.destroyShadows=function(){(this.shadows||[]).forEach(function(b){this.safeRemoveChild(b)},this);this.shadows=void 0};a.prototype.dSetter=function(b,c,f){y(b)&&("string"===typeof b[0]&&(b=this.renderer.pathToSegments(b)),this.pathArray=b,b=b.reduce(function(b,c,f){return c&&c.join?(f?b+" ":"")+c.join(" "):(c||"").toString()},""));/(NaN| {2}|^$)/.test(b)&&(b="M 0 0");
-this[c]!==b&&(f.setAttribute(c,b),this[c]=b)};a.prototype.fadeOut=function(c){var f=this;f.animate({opacity:0},{duration:b(c,150),complete:function(){f.hide()}})};a.prototype.fillSetter=function(b,c,f){"string"===typeof b?f.setAttribute(c,b):b&&this.complexColor(b,c,f)};a.prototype.getBBox=function(f,d){var n=this.alignValue,e=this.element,q=this.renderer,v=this.styles,u=this.textStr,h=q.cache,z=q.cacheKeys,k=e.namespaceURI===this.SVG_NS;d=b(d,this.rotation,0);var G=q.styledMode?e&&a.prototype.getStyle.call(e,
-"font-size"):v&&v.fontSize,m;if(D(u)){var M=u.toString();-1===M.indexOf("<")&&(M=M.replace(/[0-9]/g,"0"));M+=["",d,G,this.textWidth,n,v&&v.textOverflow,v&&v.fontWeight].join()}M&&!f&&(m=h[M]);if(!m){if(k||q.forExport){try{var w=this.fakeTS&&function(b){var c=e.querySelector(".highcharts-text-outline");c&&p(c,{display:b})};c(w)&&w("none");m=e.getBBox?E({},e.getBBox()):{width:e.offsetWidth,height:e.offsetHeight,x:0,y:0};c(w)&&w("")}catch(V){""}if(!m||0>m.width)m={x:0,y:0,width:0,height:0}}else m=this.htmlGetBBox();
-if(q.isSVG&&(q=m.width,f=m.height,k&&(m.height=f={"11px,17":14,"13px,20":16}[""+(G||"")+",".concat(Math.round(f))]||f),d)){k=Number(e.getAttribute("y")||0)-m.y;n={right:1,center:.5}[n||0]||0;v=d*t;G=(d-90)*t;var J=q*Math.cos(v);d=q*Math.sin(v);w=Math.cos(G);v=Math.sin(G);q=m.x+n*(q-J)+k*w;G=q+J;w=G-f*w;J=w-J;k=m.y+k-n*d+k*v;n=k+d;f=n-f*v;d=f-d;m.x=Math.min(q,G,w,J);m.y=Math.min(k,n,f,d);m.width=Math.max(q,G,w,J)-m.x;m.height=Math.max(k,n,f,d)-m.y}if(M&&(""===u||0<m.height)){for(;250<z.length;)delete h[z.shift()];
-h[M]||z.push(M);h[M]=m}}return m};a.prototype.getStyle=function(b){return d.getComputedStyle(this.element||this,"").getPropertyValue(b)};a.prototype.hasClass=function(b){return-1!==(""+this.attr("class")).split(" ").indexOf(b)};a.prototype.hide=function(){return this.attr({visibility:"hidden"})};a.prototype.htmlGetBBox=function(){return{height:0,width:0,x:0,y:0}};a.prototype.init=function(b,c){this.element="span"===c?k(c):r.createElementNS(this.SVG_NS,c);this.renderer=b;L(this,"afterInit")};a.prototype.on=
-function(b,c){var f=this.onEvents;if(f[b])f[b]();f[b]=h(this.element,b,c);return this};a.prototype.opacitySetter=function(b,c,f){this.opacity=b=Number(Number(b).toFixed(3));f.setAttribute(c,b)};a.prototype.removeClass=function(b){return this.attr("class",(""+this.attr("class")).replace(w(b)?new RegExp("(^| )".concat(b,"( |$)")):b," ").replace(/ +/g," ").trim())};a.prototype.removeTextOutline=function(){var b=this.element.querySelector("tspan.highcharts-text-outline");b&&this.safeRemoveChild(b)};a.prototype.safeRemoveChild=
-function(b){var c=b.parentNode;c&&c.removeChild(b)};a.prototype.setRadialReference=function(b){var c=this.element.gradient&&this.renderer.gradients[this.element.gradient];this.element.radialReference=b;c&&c.radAttr&&c.animate(this.renderer.getRadialAttr(b,c.radAttr));return this};a.prototype.setTextPath=function(b,c){var d=this;c=f(!0,{enabled:!0,attributes:{dy:-5,startOffset:"50%",textAnchor:"middle"}},c);var n=this.renderer.url,e=this.text||this,v=e.textPath,u=c.attributes,a=c.enabled;b=b||v&&v.path;
-v&&v.undo();b&&a?(c=h(e,"afterModifyTree",function(c){if(b&&a){var f=b.attr("id");f||b.attr("id",f=q());var v={x:0,y:0};D(u.dx)&&(v.dx=u.dx,delete u.dx);D(u.dy)&&(v.dy=u.dy,delete u.dy);e.attr(v);d.attr({transform:""});d.box&&(d.box=d.box.destroy());v=c.nodes.slice(0);c.nodes.length=0;c.nodes[0]={tagName:"textPath",attributes:E(u,{"text-anchor":u.textAnchor,href:""+n+"#".concat(f)}),children:v}}}),e.textPath={path:b,undo:c}):(e.attr({dx:0,dy:0}),delete e.textPath);this.added&&(e.textCache="",this.renderer.buildText(e));
-return this};a.prototype.shadow=function(b,c,f){var d=[],e=this.element,v=this.oldShadowOptions,q=this.parentGroup,u=q&&90===q.rotation;q={color:"#000000",offsetX:u?-1:1,offsetY:u?-1:1,opacity:.15,width:3};var a=!1,h;!0===b?h=q:"object"===typeof b&&(h=E(q,b));h&&(h&&v&&n(h,function(b,c){b!==v[c]&&(a=!0)}),a&&this.destroyShadows(),this.oldShadowOptions=h);if(!h)this.destroyShadows();else if(!this.shadows){q=h.opacity/h.width;var G=u?"translate(".concat(h.offsetY,", ").concat(h.offsetX,")"):"translate(".concat(h.offsetX,
-", ").concat(h.offsetY,")");for(u=1;u<=h.width;u++){var k=e.cloneNode(!1);var z=2*h.width+1-2*u;m(k,{stroke:b.color||"#000000","stroke-opacity":q*u,"stroke-width":z,transform:G,fill:"none"});k.setAttribute("class",(k.getAttribute("class")||"")+" highcharts-shadow");f&&(m(k,"height",Math.max(m(k,"height")-z,0)),k.cutHeight=z);c?c.element.appendChild(k):e.parentNode&&e.parentNode.insertBefore(k,e);d.push(k)}this.shadows=d}return this};a.prototype.show=function(b){void 0===b&&(b=!0);return this.attr({visibility:b?
-"inherit":"visible"})};a.prototype["stroke-widthSetter"]=function(b,c,f){this[c]=b;f.setAttribute(c,b)};a.prototype.strokeWidth=function(){if(!this.renderer.styledMode)return this["stroke-width"]||0;var b=this.getStyle("stroke-width"),c=0;if(b.indexOf("px")===b.length-2)c=u(b);else if(""!==b){var f=r.createElementNS(e,"rect");m(f,{width:b,"stroke-width":0});this.element.parentNode.appendChild(f);c=f.getBBox().width;f.parentNode.removeChild(f)}return c};a.prototype.symbolAttr=function(c){var f=this;
-"x y r start end width height innerR anchorX anchorY clockwise".split(" ").forEach(function(d){f[d]=b(c[d],f[d])});f.attr({d:f.renderer.symbols[f.symbolName](f.x,f.y,f.width,f.height,f)})};a.prototype.textSetter=function(b){b!==this.textStr&&(delete this.textPxLength,this.textStr=b,this.added&&this.renderer.buildText(this))};a.prototype.titleSetter=function(c){var f=this.element,d=f.getElementsByTagName("title")[0]||r.createElementNS(this.SVG_NS,"title");f.insertBefore?f.insertBefore(d,f.firstChild):
-f.appendChild(d);d.textContent=String(b(c,"")).replace(/<[^>]*>/g,"").replace(/&lt;/g,"<").replace(/&gt;/g,">")};a.prototype.toFront=function(){var b=this.element;b.parentNode.appendChild(b);return this};a.prototype.translate=function(b,c){return this.attr({translateX:b,translateY:c})};a.prototype.updateShadows=function(b,c,f){var d=this.shadows;if(d)for(var e=d.length;e--;)f.call(d[e],"height"===b?Math.max(c-(d[e].cutHeight||0),0):"d"===b?this.d:c,b,d[e])};a.prototype.updateTransform=function(){var c=
-this.element,f=this.matrix,d=this.rotation;d=void 0===d?0:d;var e=this.scaleX,n=this.scaleY,v=this.translateX,q=this.translateY;v=["translate("+(void 0===v?0:v)+","+(void 0===q?0:q)+")"];D(f)&&v.push("matrix("+f.join(",")+")");d&&v.push("rotate("+d+" "+b(this.rotationOriginX,c.getAttribute("x"),0)+" "+b(this.rotationOriginY,c.getAttribute("y")||0)+")");(D(e)||D(n))&&v.push("scale("+b(e,1)+" "+b(n,1)+")");v.length&&!(this.text||this).textPath&&c.setAttribute("transform",v.join(" "))};a.prototype.visibilitySetter=
-function(b,c,f){"inherit"===b?f.removeAttribute(c):this[c]!==b&&f.setAttribute(c,b);this[c]=b};a.prototype.xGetter=function(b){"circle"===this.element.nodeName&&("x"===b?b="cx":"y"===b&&(b="cy"));return this._defaultGetter(b)};a.prototype.zIndexSetter=function(b,c){var f=this.renderer,d=this.parentGroup,e=(d||f).element||f.box,v=this.element;f=e===f.box;var n=!1;var q=this.added;var a;D(b)?(v.setAttribute("data-z-index",b),b=+b,this[c]===b&&(q=!1)):D(this[c])&&v.removeAttribute("data-z-index");this[c]=
-b;if(q){(b=this.zIndex)&&d&&(d.handleZ=!0);c=e.childNodes;for(a=c.length-1;0<=a&&!n;a--){d=c[a];q=d.getAttribute("data-z-index");var h=!D(q);if(d!==v)if(0>b&&h&&!f&&!a)e.insertBefore(v,c[a]),n=!0;else if(u(q)<=b||h&&(!D(b)||0<=b))e.insertBefore(v,c[a+1]||null),n=!0}n||(e.insertBefore(v,c[f?3:0]||null),n=!0)}return n};return a}();a.prototype.strokeSetter=a.prototype.fillSetter;a.prototype.yGetter=a.prototype.xGetter;a.prototype.matrixSetter=a.prototype.rotationOriginXSetter=a.prototype.rotationOriginYSetter=
-a.prototype.rotationSetter=a.prototype.scaleXSetter=a.prototype.scaleYSetter=a.prototype.translateXSetter=a.prototype.translateYSetter=a.prototype.verticalAlignSetter=function(b,c){this[c]=b;this.doTransform=!0};"";return a});K(g,"Core/Renderer/RendererRegistry.js",[g["Core/Globals.js"]],function(a){var g;(function(g){g.rendererTypes={};var A;g.getRendererType=function(a){void 0===a&&(a=A);return g.rendererTypes[a]||g.rendererTypes[A]};g.registerRendererType=function(x,B,H){g.rendererTypes[x]=B;if(!A||
-H)A=x,a.Renderer=B}})(g||(g={}));return g});K(g,"Core/Renderer/SVG/SVGLabel.js",[g["Core/Renderer/SVG/SVGElement.js"],g["Core/Utilities.js"]],function(a,g){var A=this&&this.__extends||function(){var a=function(e,d){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,e){d.__proto__=e}||function(d,e){for(var a in e)e.hasOwnProperty(a)&&(d[a]=e[a])};return a(e,d)};return function(e,d){function h(){this.constructor=e}a(e,d);e.prototype=null===d?Object.create(d):(h.prototype=d.prototype,
-new h)}}(),F=g.defined,C=g.extend,B=g.isNumber,H=g.merge,t=g.pick,r=g.removeEvent;return function(g){function e(d,a,m,k,p,l,I,E,r,y){var c=g.call(this)||this;c.paddingLeftSetter=c.paddingSetter;c.paddingRightSetter=c.paddingSetter;c.init(d,"g");c.textStr=a;c.x=m;c.y=k;c.anchorX=l;c.anchorY=I;c.baseline=r;c.className=y;c.addClass("button"===y?"highcharts-no-tooltip":"highcharts-label");y&&c.addClass("highcharts-"+y);c.text=d.text(void 0,0,0,E).attr({zIndex:1});var h;"string"===typeof p&&((h=/^url\((.*?)\)$/.test(p))||
-c.renderer.symbols[p])&&(c.symbolKey=p);c.bBox=e.emptyBBox;c.padding=3;c.baselineOffset=0;c.needsBox=d.styledMode||h;c.deferredAttr={};c.alignFactor=0;return c}A(e,g);e.prototype.alignSetter=function(d){d={left:0,center:.5,right:1}[d];d!==this.alignFactor&&(this.alignFactor=d,this.bBox&&B(this.xSetting)&&this.attr({x:this.xSetting}))};e.prototype.anchorXSetter=function(d,e){this.anchorX=d;this.boxAttr(e,Math.round(d)-this.getCrispAdjust()-this.xSetting)};e.prototype.anchorYSetter=function(d,e){this.anchorY=
-d;this.boxAttr(e,d-this.ySetting)};e.prototype.boxAttr=function(d,e){this.box?this.box.attr(d,e):this.deferredAttr[d]=e};e.prototype.css=function(d){if(d){var h={};d=H(d);e.textProps.forEach(function(e){"undefined"!==typeof d[e]&&(h[e]=d[e],delete d[e])});this.text.css(h);"fontSize"in h||"fontWeight"in h?this.updateTextPadding():("width"in h||"textOverflow"in h)&&this.updateBoxSize()}return a.prototype.css.call(this,d)};e.prototype.destroy=function(){r(this.element,"mouseenter");r(this.element,"mouseleave");
-this.text&&this.text.destroy();this.box&&(this.box=this.box.destroy());a.prototype.destroy.call(this)};e.prototype.fillSetter=function(d,e){d&&(this.needsBox=!0);this.fill=d;this.boxAttr(e,d)};e.prototype.getBBox=function(){this.textStr&&0===this.bBox.width&&0===this.bBox.height&&this.updateBoxSize();var d=this.padding,e=t(this.paddingLeft,d);return{width:this.width,height:this.height,x:this.bBox.x-e,y:this.bBox.y-d}};e.prototype.getCrispAdjust=function(){return this.renderer.styledMode&&this.box?
-this.box.strokeWidth()%2/2:(this["stroke-width"]?parseInt(this["stroke-width"],10):0)%2/2};e.prototype.heightSetter=function(d){this.heightSetting=d};e.prototype.onAdd=function(){this.text.add(this);this.attr({text:t(this.textStr,""),x:this.x||0,y:this.y||0});this.box&&F(this.anchorX)&&this.attr({anchorX:this.anchorX,anchorY:this.anchorY})};e.prototype.paddingSetter=function(d,e){B(d)?d!==this[e]&&(this[e]=d,this.updateTextPadding()):this[e]=void 0};e.prototype.rSetter=function(d,e){this.boxAttr(e,
-d)};e.prototype.shadow=function(d){d&&!this.renderer.styledMode&&(this.updateBoxSize(),this.box&&this.box.shadow(d));return this};e.prototype.strokeSetter=function(d,e){this.stroke=d;this.boxAttr(e,d)};e.prototype["stroke-widthSetter"]=function(d,e){d&&(this.needsBox=!0);this["stroke-width"]=d;this.boxAttr(e,d)};e.prototype["text-alignSetter"]=function(d){this.textAlign=d};e.prototype.textSetter=function(d){"undefined"!==typeof d&&this.text.attr({text:d});this.updateTextPadding()};e.prototype.updateBoxSize=
-function(){var d=this.text,a=d.element.style,m={},k=this.padding,p=this.bBox=B(this.widthSetting)&&B(this.heightSetting)&&!this.textAlign||!F(d.textStr)?e.emptyBBox:d.getBBox();this.width=this.getPaddedWidth();this.height=(this.heightSetting||p.height||0)+2*k;a=this.renderer.fontMetrics(a&&a.fontSize,d);this.baselineOffset=k+Math.min((this.text.firstLineMetrics||a).b,p.height||Infinity);this.heightSetting&&(this.baselineOffset+=(this.heightSetting-a.h)/2);this.needsBox&&!d.textPath&&(this.box||(d=
-this.box=this.symbolKey?this.renderer.symbol(this.symbolKey):this.renderer.rect(),d.addClass(("button"===this.className?"":"highcharts-label-box")+(this.className?" highcharts-"+this.className+"-box":"")),d.add(this)),d=this.getCrispAdjust(),m.x=d,m.y=(this.baseline?-this.baselineOffset:0)+d,m.width=Math.round(this.width),m.height=Math.round(this.height),this.box.attr(C(m,this.deferredAttr)),this.deferredAttr={})};e.prototype.updateTextPadding=function(){var d=this.text;if(!d.textPath){this.updateBoxSize();
-var e=this.baseline?0:this.baselineOffset,a=t(this.paddingLeft,this.padding);F(this.widthSetting)&&this.bBox&&("center"===this.textAlign||"right"===this.textAlign)&&(a+={center:.5,right:1}[this.textAlign]*(this.widthSetting-this.bBox.width));if(a!==d.x||e!==d.y)d.attr("x",a),d.hasBoxWidthChanged&&(this.bBox=d.getBBox(!0)),"undefined"!==typeof e&&d.attr("y",e);d.x=a;d.y=e}};e.prototype.widthSetter=function(d){this.widthSetting=B(d)?d:void 0};e.prototype.getPaddedWidth=function(){var d=this.padding,
-e=t(this.paddingLeft,d);d=t(this.paddingRight,d);return(this.widthSetting||this.bBox.width||0)+e+d};e.prototype.xSetter=function(d){this.x=d;this.alignFactor&&(d-=this.alignFactor*this.getPaddedWidth(),this["forceAnimate:x"]=!0);this.xSetting=Math.round(d);this.attr("translateX",this.xSetting)};e.prototype.ySetter=function(d){this.ySetting=this.y=Math.round(d);this.attr("translateY",this.ySetting)};e.emptyBBox={width:0,height:0,x:0,y:0};e.textProps="color direction fontFamily fontSize fontStyle fontWeight lineHeight textAlign textDecoration textOutline textOverflow width".split(" ");
-return e}(a)});K(g,"Core/Renderer/SVG/Symbols.js",[g["Core/Utilities.js"]],function(a){function g(a,g,l,e,d){var h=[];if(d){var m=d.start||0,k=H(d.r,l);l=H(d.r,e||l);var p=(d.end||0)-.001;e=d.innerR;var D=H(d.open,.001>Math.abs((d.end||0)-m-2*Math.PI)),I=Math.cos(m),E=Math.sin(m),r=Math.cos(p),y=Math.sin(p);m=H(d.longArc,.001>p-m-Math.PI?0:1);h.push(["M",a+k*I,g+l*E],["A",k,l,0,m,H(d.clockwise,1),a+k*r,g+l*y]);C(e)&&h.push(D?["M",a+e*r,g+e*y]:["L",a+e*r,g+e*y],["A",e,e,0,m,C(d.clockwise)?1-d.clockwise:
-0,a+e*I,g+e*E]);D||h.push(["Z"])}return h}function x(a,g,l,e,d){return d&&d.r?F(a,g,l,e,d):[["M",a,g],["L",a+l,g],["L",a+l,g+e],["L",a,g+e],["Z"]]}function F(a,g,l,e,d){d=d&&d.r||0;return[["M",a+d,g],["L",a+l-d,g],["C",a+l,g,a+l,g,a+l,g+d],["L",a+l,g+e-d],["C",a+l,g+e,a+l,g+e,a+l-d,g+e],["L",a+d,g+e],["C",a,g+e,a,g+e,a,g+e-d],["L",a,g+d],["C",a,g,a,g,a+d,g]]}var C=a.defined,B=a.isNumber,H=a.pick;return{arc:g,callout:function(a,g,l,e,d){var h=Math.min(d&&d.r||0,l,e),m=h+6,k=d&&d.anchorX;d=d&&d.anchorY||
-0;var p=F(a,g,l,e,{r:h});if(!B(k))return p;a+k>=l?d>g+m&&d<g+e-m?p.splice(3,1,["L",a+l,d-6],["L",a+l+6,d],["L",a+l,d+6],["L",a+l,g+e-h]):p.splice(3,1,["L",a+l,e/2],["L",k,d],["L",a+l,e/2],["L",a+l,g+e-h]):0>=a+k?d>g+m&&d<g+e-m?p.splice(7,1,["L",a,d+6],["L",a-6,d],["L",a,d-6],["L",a,g+h]):p.splice(7,1,["L",a,e/2],["L",k,d],["L",a,e/2],["L",a,g+h]):d&&d>e&&k>a+m&&k<a+l-m?p.splice(5,1,["L",k+6,g+e],["L",k,g+e+6],["L",k-6,g+e],["L",a+h,g+e]):d&&0>d&&k>a+m&&k<a+l-m&&p.splice(1,1,["L",k-6,g],["L",k,g-6],
-["L",k+6,g],["L",l-h,g]);return p},circle:function(a,r,l,e){return g(a+l/2,r+e/2,l/2,e/2,{start:.5*Math.PI,end:2.5*Math.PI,open:!1})},diamond:function(a,g,l,e){return[["M",a+l/2,g],["L",a+l,g+e/2],["L",a+l/2,g+e],["L",a,g+e/2],["Z"]]},rect:x,roundedRect:F,square:x,triangle:function(a,g,l,e){return[["M",a+l/2,g],["L",a+l,g+e],["L",a,g+e],["Z"]]},"triangle-down":function(a,g,l,e){return[["M",a,g],["L",a+l,g],["L",a+l/2,g+e],["Z"]]}}});K(g,"Core/Renderer/SVG/TextBuilder.js",[g["Core/Renderer/HTML/AST.js"],
-g["Core/Globals.js"],g["Core/Utilities.js"]],function(a,g,x){var A=g.doc,C=g.SVG_NS,B=g.win,H=x.attr,t=x.extend,r=x.fireEvent,l=x.isString,e=x.objectEach,d=x.pick;return function(){function h(d){var e=d.styles;this.renderer=d.renderer;this.svgElement=d;this.width=d.textWidth;this.textLineHeight=e&&e.lineHeight;this.textOutline=e&&e.textOutline;this.ellipsis=!(!e||"ellipsis"!==e.textOverflow);this.noWrap=!(!e||"nowrap"!==e.whiteSpace);this.fontSize=e&&e.fontSize}h.prototype.buildSVG=function(){var e=
-this.svgElement,k=e.element,h=e.renderer,g=d(e.textStr,"").toString(),I=-1!==g.indexOf("<"),E=k.childNodes;h=this.width&&!e.added&&h.box;var L=/<br.*?>/g,y=[g,this.ellipsis,this.noWrap,this.textLineHeight,this.textOutline,this.fontSize,this.width].join();if(y!==e.textCache){e.textCache=y;delete e.actualWidth;for(y=E.length;y--;)k.removeChild(E[y]);I||this.ellipsis||this.width||e.textPath||-1!==g.indexOf(" ")&&(!this.noWrap||L.test(g))?""!==g&&(h&&h.appendChild(k),g=new a(g),this.modifyTree(g.nodes),
-g.addToDOM(k),this.modifyDOM(),this.ellipsis&&-1!==(k.textContent||"").indexOf("\u2026")&&e.attr("title",this.unescapeEntities(e.textStr||"",["&lt;","&gt;"])),h&&h.removeChild(k)):k.appendChild(A.createTextNode(this.unescapeEntities(g)));l(this.textOutline)&&e.applyTextOutline&&e.applyTextOutline(this.textOutline)}};h.prototype.modifyDOM=function(){var d=this,e=this.svgElement,a=H(e.element,"x");e.firstLineMetrics=void 0;for(var h;h=e.element.firstChild;)if(/^[\s\u200B]*$/.test(h.textContent||" "))e.element.removeChild(h);
-else break;[].forEach.call(e.element.querySelectorAll("tspan.highcharts-br"),function(h,c){h.nextSibling&&h.previousSibling&&(0===c&&1===h.previousSibling.nodeType&&(e.firstLineMetrics=e.renderer.fontMetrics(void 0,h.previousSibling)),H(h,{dy:d.getLineHeight(h.nextSibling),x:a}))});var g=this.width||0;if(g){var l=function(h,c){var w=h.textContent||"",f=w.replace(/([^\^])-/g,"$1- ").split(" "),n=!d.noWrap&&(1<f.length||1<e.element.childNodes.length),b=d.getLineHeight(c),u=0,z=e.actualWidth;if(d.ellipsis)w&&
-d.truncate(h,w,void 0,0,Math.max(0,g-parseInt(d.fontSize||12,10)),function(b,c){return b.substring(0,c)+"\u2026"});else if(n){w=[];for(n=[];c.firstChild&&c.firstChild!==h;)n.push(c.firstChild),c.removeChild(c.firstChild);for(;f.length;)f.length&&!d.noWrap&&0<u&&(w.push(h.textContent||""),h.textContent=f.join(" ").replace(/- /g,"-")),d.truncate(h,void 0,f,0===u?z||0:0,g,function(b,c){return f.slice(0,c).join(" ").replace(/- /g,"-")}),z=e.actualWidth,u++;n.forEach(function(b){c.insertBefore(b,h)});
-w.forEach(function(f){c.insertBefore(A.createTextNode(f),h);f=A.createElementNS(C,"tspan");f.textContent="\u200b";H(f,{dy:b,x:a});c.insertBefore(f,h)})}},L=function(d){[].slice.call(d.childNodes).forEach(function(c){c.nodeType===B.Node.TEXT_NODE?l(c,d):(-1!==c.className.baseVal.indexOf("highcharts-br")&&(e.actualWidth=0),L(c))})};L(e.element)}};h.prototype.getLineHeight=function(d){var e;d=d.nodeType===B.Node.TEXT_NODE?d.parentElement:d;this.renderer.styledMode||(e=d&&/(px|em)$/.test(d.style.fontSize)?
-d.style.fontSize:this.fontSize||this.renderer.style.fontSize||12);return this.textLineHeight?parseInt(this.textLineHeight.toString(),10):this.renderer.fontMetrics(e,d||this.svgElement.element).h};h.prototype.modifyTree=function(d){var e=this,a=function(h,k){var m=h.attributes;m=void 0===m?{}:m;var p=h.children,g=h.style;g=void 0===g?{}:g;var c=h.tagName,w=e.renderer.styledMode;if("b"===c||"strong"===c)w?m["class"]="highcharts-strong":g.fontWeight="bold";else if("i"===c||"em"===c)w?m["class"]="highcharts-emphasized":
-g.fontStyle="italic";g&&g.color&&(g.fill=g.color);"br"===c?(m["class"]="highcharts-br",h.textContent="\u200b",(k=d[k+1])&&k.textContent&&(k.textContent=k.textContent.replace(/^ +/gm,""))):"a"===c&&p&&p.some(function(c){return"#text"===c.tagName})&&(h.children=[{children:p,tagName:"tspan"}]);"#text"!==c&&"a"!==c&&(h.tagName="tspan");t(h,{attributes:m,style:g});p&&p.filter(function(c){return"#text"!==c.tagName}).forEach(a)};d.forEach(a);r(this.svgElement,"afterModifyTree",{nodes:d})};h.prototype.truncate=
-function(d,e,a,h,g,l){var k=this.svgElement,m=k.renderer,c=k.rotation,w=[],f=a?1:0,n=(e||a||"").length,b=n,u,z=function(b,c){c=c||b;var f=d.parentNode;if(f&&"undefined"===typeof w[c])if(f.getSubStringLength)try{w[c]=h+f.getSubStringLength(0,a?c+1:c)}catch(Q){""}else m.getSpanWidth&&(d.textContent=l(e||a,b),w[c]=h+m.getSpanWidth(k,d));return w[c]};k.rotation=0;var q=z(d.textContent.length);if(h+q>g){for(;f<=n;)b=Math.ceil((f+n)/2),a&&(u=l(a,b)),q=z(b,u&&u.length-1),f===n?f=n+1:q>g?n=b-1:f=b;0===n?
-d.textContent="":e&&n===e.length-1||(d.textContent=u||l(e||a,b))}a&&a.splice(0,b);k.actualWidth=q;k.rotation=c};h.prototype.unescapeEntities=function(d,a){e(this.renderer.escapes,function(e,h){a&&-1!==a.indexOf(e)||(d=d.toString().replace(new RegExp(e,"g"),h))});return d};return h}()});K(g,"Core/Renderer/SVG/SVGRenderer.js",[g["Core/Renderer/HTML/AST.js"],g["Core/Color/Color.js"],g["Core/Globals.js"],g["Core/Renderer/RendererRegistry.js"],g["Core/Renderer/SVG/SVGElement.js"],g["Core/Renderer/SVG/SVGLabel.js"],
-g["Core/Renderer/SVG/Symbols.js"],g["Core/Renderer/SVG/TextBuilder.js"],g["Core/Utilities.js"]],function(a,g,x,F,C,B,H,t,r){var l=x.charts,e=x.deg2rad,d=x.doc,h=x.isFirefox,m=x.isMS,k=x.isWebKit,p=x.noop,D=x.SVG_NS,I=x.symbolSizes,E=x.win,L=r.addEvent,y=r.attr,c=r.createElement,w=r.css,f=r.defined,n=r.destroyObjectProperties,b=r.extend,u=r.isArray,z=r.isNumber,q=r.isObject,N=r.isString,J=r.merge,O=r.pick,Q=r.pInt,A=r.uniqueKey,Y;x=function(){function v(b,c,f,d,e,v,a){this.width=this.url=this.style=
-this.isSVG=this.imgCount=this.height=this.gradients=this.globalAnimation=this.defs=this.chartIndex=this.cacheKeys=this.cache=this.boxWrapper=this.box=this.alignedObjects=void 0;this.init(b,c,f,d,e,v,a)}v.prototype.init=function(b,c,f,e,v,a,n){var G=this.createElement("svg").attr({version:"1.1","class":"highcharts-root"}),q=G.element;n||G.css(this.getStyle(e));b.appendChild(q);y(b,"dir","ltr");-1===b.innerHTML.indexOf("xmlns")&&y(q,"xmlns",this.SVG_NS);this.isSVG=!0;this.box=q;this.boxWrapper=G;this.alignedObjects=
-[];this.url=this.getReferenceURL();this.createElement("desc").add().element.appendChild(d.createTextNode("Created with Highcharts 10.3.3"));this.defs=this.createElement("defs").add();this.allowHTML=a;this.forExport=v;this.styledMode=n;this.gradients={};this.cache={};this.cacheKeys=[];this.imgCount=0;this.setSize(c,f,!1);var u;h&&b.getBoundingClientRect&&(c=function(){w(b,{left:0,top:0});u=b.getBoundingClientRect();w(b,{left:Math.ceil(u.left)-u.left+"px",top:Math.ceil(u.top)-u.top+"px"})},c(),this.unSubPixelFix=
-L(E,"resize",c))};v.prototype.definition=function(b){return(new a([b])).addToDOM(this.defs.element)};v.prototype.getReferenceURL=function(){if((h||k)&&d.getElementsByTagName("base").length){if(!f(Y)){var b=A();b=(new a([{tagName:"svg",attributes:{width:8,height:8},children:[{tagName:"defs",children:[{tagName:"clipPath",attributes:{id:b},children:[{tagName:"rect",attributes:{width:4,height:4}}]}]},{tagName:"rect",attributes:{id:"hitme",width:8,height:8,"clip-path":"url(#".concat(b,")"),fill:"rgba(0,0,0,0.001)"}}]}])).addToDOM(d.body);
-w(b,{position:"fixed",top:0,left:0,zIndex:9E5});var c=d.elementFromPoint(6,6);Y="hitme"===(c&&c.id);d.body.removeChild(b)}if(Y)return E.location.href.split("#")[0].replace(/<[^>]*>/g,"").replace(/([\('\)])/g,"\\$1").replace(/ /g,"%20")}return""};v.prototype.getStyle=function(c){return this.style=b({fontFamily:'"Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif',fontSize:"12px"},c)};v.prototype.setStyle=function(b){this.boxWrapper.css(this.getStyle(b))};v.prototype.isHidden=function(){return!this.boxWrapper.getBBox().width};
-v.prototype.destroy=function(){var b=this.defs;this.box=null;this.boxWrapper=this.boxWrapper.destroy();n(this.gradients||{});this.gradients=null;b&&(this.defs=b.destroy());this.unSubPixelFix&&this.unSubPixelFix();return this.alignedObjects=null};v.prototype.createElement=function(b){var c=new this.Element;c.init(this,b);return c};v.prototype.getRadialAttr=function(b,c){return{cx:b[0]-b[2]/2+(c.cx||0)*b[2],cy:b[1]-b[2]/2+(c.cy||0)*b[2],r:(c.r||0)*b[2]}};v.prototype.buildText=function(b){(new t(b)).buildSVG()};
-v.prototype.getContrast=function(b){b=g.parse(b).rgba.map(function(b){b/=255;return.03928>=b?b/12.92:Math.pow((b+.055)/1.055,2.4)});b=.2126*b[0]+.7152*b[1]+.0722*b[2];return 1.05/(b+.05)>(b+.05)/.05?"#FFFFFF":"#000000"};v.prototype.button=function(c,f,d,e,v,n,u,h,z,w){void 0===v&&(v={});var G=this.label(c,f,d,z,void 0,void 0,w,void 0,"button"),k=this.styledMode;c=v.states||{};var M=0;v=J(v);delete v.states;var g=J({color:"#333333",cursor:"pointer",fontWeight:"normal"},v.style);delete v.style;var p=
-a.filterUserAttributes(v);G.attr(J({padding:8,r:2},p));if(!k){p=J({fill:"#f7f7f7",stroke:"#cccccc","stroke-width":1},p);n=J(p,{fill:"#e6e6e6"},a.filterUserAttributes(n||c.hover||{}));var U=n.style;delete n.style;u=J(p,{fill:"#e6ebf5",style:{color:"#000000",fontWeight:"bold"}},a.filterUserAttributes(u||c.select||{}));var P=u.style;delete u.style;h=J(p,{style:{color:"#cccccc"}},a.filterUserAttributes(h||c.disabled||{}));var y=h.style;delete h.style}L(G.element,m?"mouseover":"mouseenter",function(){3!==
-M&&G.setState(1)});L(G.element,m?"mouseout":"mouseleave",function(){3!==M&&G.setState(M)});G.setState=function(b){1!==b&&(G.state=M=b);G.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][b||0]);k||(G.attr([p,n,u,h][b||0]),b=[g,U,P,y][b||0],q(b)&&G.css(b))};k||(G.attr(p).css(b({cursor:"default"},g)),w&&G.text.css({pointerEvents:"none"}));return G.on("touchstart",function(b){return b.stopPropagation()}).on("click",
-function(b){3!==M&&e.call(G,b)})};v.prototype.crispLine=function(b,c,d){void 0===d&&(d="round");var e=b[0],v=b[1];f(e[1])&&e[1]===v[1]&&(e[1]=v[1]=Math[d](e[1])-c%2/2);f(e[2])&&e[2]===v[2]&&(e[2]=v[2]=Math[d](e[2])+c%2/2);return b};v.prototype.path=function(c){var f=this.styledMode?{}:{fill:"none"};u(c)?f.d=c:q(c)&&b(f,c);return this.createElement("path").attr(f)};v.prototype.circle=function(b,c,f){b=q(b)?b:"undefined"===typeof b?{}:{x:b,y:c,r:f};c=this.createElement("circle");c.xSetter=c.ySetter=
-function(b,c,f){f.setAttribute("c"+c,b)};return c.attr(b)};v.prototype.arc=function(b,c,f,d,e,v){q(b)?(d=b,c=d.y,f=d.r,b=d.x):d={innerR:d,start:e,end:v};b=this.symbol("arc",b,c,f,f,d);b.r=f;return b};v.prototype.rect=function(b,c,f,d,e,v){e=q(b)?b.r:e;var a=this.createElement("rect");b=q(b)?b:"undefined"===typeof b?{}:{x:b,y:c,width:Math.max(f,0),height:Math.max(d,0)};this.styledMode||("undefined"!==typeof v&&(b["stroke-width"]=v,b=a.crisp(b)),b.fill="none");e&&(b.r=e);a.rSetter=function(b,c,f){a.r=
-b;y(f,{rx:b,ry:b})};a.rGetter=function(){return a.r||0};return a.attr(b)};v.prototype.setSize=function(b,c,f){this.width=b;this.height=c;this.boxWrapper.animate({width:b,height:c},{step:function(){this.attr({viewBox:"0 0 "+this.attr("width")+" "+this.attr("height")})},duration:O(f,!0)?void 0:0});this.alignElements()};v.prototype.g=function(b){var c=this.createElement("g");return b?c.attr({"class":"highcharts-"+b}):c};v.prototype.image=function(b,c,f,d,e,v){var a={preserveAspectRatio:"none"},n=function(b,
-c){b.setAttributeNS?b.setAttributeNS("http://www.w3.org/1999/xlink","href",c):b.setAttribute("hc-svg-href",c)};z(c)&&(a.x=c);z(f)&&(a.y=f);z(d)&&(a.width=d);z(e)&&(a.height=e);var G=this.createElement("image").attr(a);c=function(c){n(G.element,b);v.call(G,c)};v?(n(G.element,"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),f=new E.Image,L(f,"load",c),f.src=b,f.complete&&c({})):n(G.element,b);return G};v.prototype.symbol=function(e,v,a,n,G,q){var u=this,h=/^url\((.*?)\)$/,
-z=h.test(e),k=!z&&(this.symbols[e]?e:"circle"),g=k&&this.symbols[k],m;if(g){"number"===typeof v&&(m=g.call(this.symbols,Math.round(v||0),Math.round(a||0),n||0,G||0,q));var p=this.path(m);u.styledMode||p.attr("fill","none");b(p,{symbolName:k||void 0,x:v,y:a,width:n,height:G});q&&b(p,q)}else if(z){var P=e.match(h)[1];var U=p=this.image(P);U.imgwidth=O(I[P]&&I[P].width,q&&q.width);U.imgheight=O(I[P]&&I[P].height,q&&q.height);var N=function(b){return b.attr({width:b.width,height:b.height})};["width",
-"height"].forEach(function(b){U[b+"Setter"]=function(b,c){this[c]=b;b=this.alignByTranslate;var d=this.element,e=this.width,v=this.height,a=this.imgwidth,n=this.imgheight,G=this["img"+c];if(f(G)){var u=1;q&&"within"===q.backgroundSize&&e&&v?(u=Math.min(e/a,v/n),G=Math.round(G*u),y(d,{width:Math.round(a*u),height:Math.round(n*u)})):d&&d.setAttribute(c,G);b||this.translate(((e||0)-G*u)/2,((v||0)-G*u)/2)}}});f(v)&&U.attr({x:v,y:a});U.isImg=!0;f(U.imgwidth)&&f(U.imgheight)?N(U):(U.attr({width:0,height:0}),
-c("img",{onload:function(){var b=l[u.chartIndex];0===this.width&&(w(this,{position:"absolute",top:"-999em"}),d.body.appendChild(this));I[P]={width:this.width,height:this.height};U.imgwidth=this.width;U.imgheight=this.height;U.element&&N(U);this.parentNode&&this.parentNode.removeChild(this);u.imgCount--;if(!u.imgCount&&b&&!b.hasLoaded)b.onload()},src:P}),this.imgCount++)}return p};v.prototype.clipRect=function(b,c,f,d){var e=A()+"-",v=this.createElement("clipPath").attr({id:e}).add(this.defs);b=this.rect(b,
-c,f,d,0).add(v);b.id=e;b.clipPath=v;b.count=0;return b};v.prototype.text=function(b,c,d,e){var v={};if(e&&(this.allowHTML||!this.forExport))return this.html(b,c,d);v.x=Math.round(c||0);d&&(v.y=Math.round(d));f(b)&&(v.text=b);b=this.createElement("text").attr(v);if(!e||this.forExport&&!this.allowHTML)b.xSetter=function(b,c,f){for(var d=f.getElementsByTagName("tspan"),e=f.getAttribute(c),v=0,a;v<d.length;v++)a=d[v],a.getAttribute(c)===e&&a.setAttribute(c,b);f.setAttribute(c,b)};return b};v.prototype.fontMetrics=
-function(b,c){b=!this.styledMode&&/px/.test(b)||!E.getComputedStyle?b||c&&c.style&&c.style.fontSize||this.style&&this.style.fontSize:c&&C.prototype.getStyle.call(c,"font-size");b=/px/.test(b)?Q(b):12;c=24>b?b+3:Math.round(1.2*b);return{h:c,b:Math.round(.8*c),f:b}};v.prototype.rotCorr=function(b,c,f){var d=b;c&&f&&(d=Math.max(d*Math.cos(c*e),4));return{x:-b/3*Math.sin(c*e),y:d}};v.prototype.pathToSegments=function(b){for(var c=[],f=[],d={A:8,C:7,H:2,L:3,M:3,Q:5,S:5,T:3,V:2},e=0;e<b.length;e++)N(f[0])&&
-z(b[e])&&f.length===d[f[0].toUpperCase()]&&b.splice(e,0,f[0].replace("M","L").replace("m","l")),"string"===typeof b[e]&&(f.length&&c.push(f.slice(0)),f.length=0),f.push(b[e]);c.push(f.slice(0));return c};v.prototype.label=function(b,c,f,d,e,v,a,n,q){return new B(this,b,c,f,d,e,v,a,n,q)};v.prototype.alignElements=function(){this.alignedObjects.forEach(function(b){return b.align()})};return v}();b(x.prototype,{Element:C,SVG_NS:D,escapes:{"&":"&amp;","<":"&lt;",">":"&gt;","'":"&#39;",'"':"&quot;"},symbols:H,
-draw:p});F.registerRendererType("svg",x,!0);"";return x});K(g,"Core/Renderer/HTML/HTMLElement.js",[g["Core/Globals.js"],g["Core/Renderer/SVG/SVGElement.js"],g["Core/Utilities.js"]],function(a,g,x){var A=this&&this.__extends||function(){var d=function(e,a){d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,e){d.__proto__=e}||function(d,e){for(var a in e)e.hasOwnProperty(a)&&(d[a]=e[a])};return d(e,a)};return function(e,a){function h(){this.constructor=e}d(e,a);e.prototype=null===a?
-Object.create(a):(h.prototype=a.prototype,new h)}}(),C=a.isFirefox,B=a.isMS,H=a.isWebKit,t=a.win,r=x.css,l=x.defined,e=x.extend,d=x.pick,h=x.pInt;return function(a){function k(){return null!==a&&a.apply(this,arguments)||this}A(k,a);k.compose=function(d){if(-1===k.composedClasses.indexOf(d)){k.composedClasses.push(d);var e=k.prototype,a=d.prototype;a.getSpanCorrection=e.getSpanCorrection;a.htmlCss=e.htmlCss;a.htmlGetBBox=e.htmlGetBBox;a.htmlUpdateTransform=e.htmlUpdateTransform;a.setSpanRotation=e.setSpanRotation}return d};
-k.prototype.getSpanCorrection=function(d,e,a){this.xCorr=-d*a;this.yCorr=-e};k.prototype.htmlCss=function(a){var h="SPAN"===this.element.tagName&&a&&"width"in a,k=d(h&&a.width,void 0);if(h){delete a.width;this.textWidth=k;var g=!0}a&&"ellipsis"===a.textOverflow&&(a.whiteSpace="nowrap",a.overflow="hidden");this.styles=e(this.styles,a);r(this.element,a);g&&this.htmlUpdateTransform();return this};k.prototype.htmlGetBBox=function(){var d=this.element;return{x:d.offsetLeft,y:d.offsetTop,width:d.offsetWidth,
-height:d.offsetHeight}};k.prototype.htmlUpdateTransform=function(){if(this.added){var d=this.renderer,e=this.element,a=this.translateX||0,k=this.translateY||0,g=this.x||0,m=this.y||0,c=this.textAlign||"left",w={left:0,center:.5,right:1}[c],f=this.styles;f=f&&f.whiteSpace;r(e,{marginLeft:a,marginTop:k});!d.styledMode&&this.shadows&&this.shadows.forEach(function(b){r(b,{marginLeft:a+1,marginTop:k+1})});this.inverted&&[].forEach.call(e.childNodes,function(b){d.invertChild(b,e)});if("SPAN"===e.tagName){var n=
-this.rotation,b=this.textWidth&&h(this.textWidth),u=[n,c,e.innerHTML,this.textWidth,this.textAlign].join(),z=void 0;z=!1;if(b!==this.oldTextWidth){if(this.textPxLength)var q=this.textPxLength;else r(e,{width:"",whiteSpace:f||"nowrap"}),q=e.offsetWidth;(b>this.oldTextWidth||q>b)&&(/[ \-]/.test(e.textContent||e.innerText)||"ellipsis"===e.style.textOverflow)&&(r(e,{width:q>b||n?b+"px":"auto",display:"block",whiteSpace:f||"normal"}),this.oldTextWidth=b,z=!0)}this.hasBoxWidthChanged=z;u!==this.cTT&&(z=
-d.fontMetrics(e.style.fontSize,e).b,!l(n)||n===(this.oldRotation||0)&&c===this.oldAlign||this.setSpanRotation(n,w,z),this.getSpanCorrection(!l(n)&&this.textPxLength||e.offsetWidth,z,w,n,c));r(e,{left:g+(this.xCorr||0)+"px",top:m+(this.yCorr||0)+"px"});this.cTT=u;this.oldRotation=n;this.oldAlign=c}}else this.alignOnAdd=!0};k.prototype.setSpanRotation=function(d,e,a){var h={},k=B&&!/Edge/.test(t.navigator.userAgent)?"-ms-transform":H?"-webkit-transform":C?"MozTransform":t.opera?"-o-transform":void 0;
-k&&(h[k]=h.transform="rotate("+d+"deg)",h[k+(C?"Origin":"-origin")]=h.transformOrigin=100*e+"% "+a+"px",r(this.element,h))};k.composedClasses=[];return k}(g)});K(g,"Core/Renderer/HTML/HTMLRenderer.js",[g["Core/Renderer/HTML/AST.js"],g["Core/Renderer/SVG/SVGElement.js"],g["Core/Renderer/SVG/SVGRenderer.js"],g["Core/Utilities.js"]],function(a,g,x,F){var A=this&&this.__extends||function(){var a=function(e,d){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,e){d.__proto__=e}||function(d,
-e){for(var a in e)e.hasOwnProperty(a)&&(d[a]=e[a])};return a(e,d)};return function(e,d){function h(){this.constructor=e}a(e,d);e.prototype=null===d?Object.create(d):(h.prototype=d.prototype,new h)}}(),B=F.attr,H=F.createElement,t=F.extend,r=F.pick;return function(l){function e(){return null!==l&&l.apply(this,arguments)||this}A(e,l);e.compose=function(d){-1===e.composedClasses.indexOf(d)&&(e.composedClasses.push(d),d.prototype.html=e.prototype.html);return d};e.prototype.html=function(d,e,m){var h=
-this.createElement("span"),p=h.element,l=h.renderer,I=l.isSVG,E=function(d,e){["opacity","visibility"].forEach(function(c){d[c+"Setter"]=function(a,f,n){var b=d.div?d.div.style:e;g.prototype[c+"Setter"].call(this,a,f,n);b&&(b[f]=a)}});d.addedSetters=!0};h.textSetter=function(d){d!==this.textStr&&(delete this.bBox,delete this.oldTextWidth,a.setElementHTML(this.element,r(d,"")),this.textStr=d,h.doTransform=!0)};I&&E(h,h.element.style);h.xSetter=h.ySetter=h.alignSetter=h.rotationSetter=function(d,e){"align"===
-e?h.alignValue=h.textAlign=d:h[e]=d;h.doTransform=!0};h.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)};h.attr({text:d,x:Math.round(e),y:Math.round(m)}).css({position:"absolute"});l.styledMode||h.css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize});p.style.whiteSpace="nowrap";h.css=h.htmlCss;I&&(h.add=function(d){var e=l.box.parentNode,c=[];if(this.parentGroup=d){var a=d.div;if(!a){for(;d;)c.push(d),d=d.parentGroup;c.reverse().forEach(function(f){function d(b,
-c){f[c]=b;"translateX"===c?z.left=b+"px":z.top=b+"px";f.doTransform=!0}var b=B(f.element,"class"),u=f.styles||{};a=f.div=f.div||H("div",b?{className:b}:void 0,{position:"absolute",left:(f.translateX||0)+"px",top:(f.translateY||0)+"px",display:f.display,opacity:f.opacity,cursor:u.cursor,pointerEvents:u.pointerEvents,visibility:f.visibility},a||e);var z=a.style;t(f,{classSetter:function(b){return function(c){this.element.setAttribute("class",c);b.className=c}}(a),on:function(){c[0].div&&h.on.apply({element:c[0].div,
-onEvents:f.onEvents},arguments);return f},translateXSetter:d,translateYSetter:d});f.addedSetters||E(f)})}}else a=e;a.appendChild(p);h.added=!0;h.alignOnAdd&&h.htmlUpdateTransform();return h});return h};e.composedClasses=[];return e}(x)});K(g,"Core/Axis/AxisDefaults.js",[],function(){var a;(function(a){a.defaultXAxisOptions={alignTicks:!0,allowDecimals:void 0,panningEnabled:!0,zIndex:2,zoomEnabled:!0,dateTimeLabelFormats:{millisecond:{main:"%H:%M:%S.%L",range:!1},second:{main:"%H:%M:%S",range:!1},
-minute:{main:"%H:%M",range:!1},hour:{main:"%H:%M",range:!1},day:{main:"%e. %b"},week:{main:"%e. %b"},month:{main:"%b '%y"},year:{main:"%Y"}},endOnTick:!1,gridLineDashStyle:"Solid",gridZIndex:1,labels:{autoRotation:void 0,autoRotationLimit:80,distance:void 0,enabled:!0,indentation:10,overflow:"justify",padding:5,reserveSpace:void 0,rotation:void 0,staggerLines:0,step:0,useHTML:!1,x:0,zIndex:7,style:{color:"#666666",cursor:"default",fontSize:"11px"}},maxPadding:.01,minorGridLineDashStyle:"Solid",minorTickLength:2,
-minorTickPosition:"outside",minPadding:.01,offset:void 0,opposite:!1,reversed:void 0,reversedStacks:!1,showEmpty:!0,showFirstLabel:!0,showLastLabel:!0,startOfWeek:1,startOnTick:!1,tickLength:10,tickPixelInterval:100,tickmarkPlacement:"between",tickPosition:"outside",title:{align:"middle",rotation:0,useHTML:!1,x:0,y:0,style:{color:"#666666"}},type:"linear",uniqueNames:!0,visible:!0,minorGridLineColor:"#f2f2f2",minorGridLineWidth:1,minorTickColor:"#999999",lineColor:"#ccd6eb",lineWidth:1,gridLineColor:"#e6e6e6",
-gridLineWidth:void 0,tickColor:"#ccd6eb"};a.defaultYAxisOptions={reversedStacks:!0,endOnTick:!0,maxPadding:.05,minPadding:.05,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},startOnTick:!0,title:{rotation:270,text:"Values"},stackLabels:{animation:{},allowOverlap:!1,enabled:!1,crop:!0,overflow:"justify",formatter:function(){var a=this.axis.chart.numberFormatter;return a(this.total||0,-1)},style:{color:"#000000",fontSize:"11px",fontWeight:"bold",textOutline:"1px contrast"}},gridLineWidth:1,lineWidth:0};
-a.defaultLeftAxisOptions={labels:{x:-15},title:{rotation:270}};a.defaultRightAxisOptions={labels:{x:15},title:{rotation:90}};a.defaultBottomAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}};a.defaultTopAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}}})(a||(a={}));return a});K(g,"Core/Foundation.js",[g["Core/Utilities.js"]],function(a){var g=a.addEvent,x=a.isFunction,F=a.objectEach,C=a.removeEvent,B;(function(a){a.registerEventOptions=function(a,r){a.eventOptions=
-a.eventOptions||{};F(r.events,function(l,e){a.eventOptions[e]!==l&&(a.eventOptions[e]&&(C(a,e,a.eventOptions[e]),delete a.eventOptions[e]),x(l)&&(a.eventOptions[e]=l,g(a,e,l)))})}})(B||(B={}));return B});K(g,"Core/Axis/Tick.js",[g["Core/FormatUtilities.js"],g["Core/Globals.js"],g["Core/Utilities.js"]],function(a,g,x){var A=g.deg2rad,C=x.clamp,B=x.correctFloat,H=x.defined,t=x.destroyObjectProperties,r=x.extend,l=x.fireEvent,e=x.isNumber,d=x.merge,h=x.objectEach,m=x.pick;g=function(){function g(d,e,
-a,h,g){this.isNewLabel=this.isNew=!0;this.axis=d;this.pos=e;this.type=a||"";this.parameters=g||{};this.tickmarkOffset=this.parameters.tickmarkOffset;this.options=this.parameters.options;l(this,"init");a||h||this.addLabel()}g.prototype.addLabel=function(){var d=this,h=d.axis,g=h.options,k=h.chart,L=h.categories,y=h.logarithmic,c=h.names,w=d.pos,f=m(d.options&&d.options.labels,g.labels),n=h.tickPositions,b=w===n[0],u=w===n[n.length-1],z=(!f.step||1===f.step)&&1===h.tickInterval;n=n.info;var q=d.label,
-N;L=this.parameters.category||(L?m(L[w],c[w],w):w);y&&e(L)&&(L=B(y.lin2log(L)));if(h.dateTime)if(n){var J=k.time.resolveDTLFormat(g.dateTimeLabelFormats[!g.grid&&n.higherRanks[w]||n.unitName]);var O=J.main}else e(L)&&(O=h.dateTime.getXDateFormat(L,g.dateTimeLabelFormats||{}));d.isFirst=b;d.isLast=u;var Q={axis:h,chart:k,dateTimeLabelFormat:O,isFirst:b,isLast:u,pos:w,tick:d,tickPositionInfo:n,value:L};l(this,"labelFormat",Q);var t=function(b){return f.formatter?f.formatter.call(b,b):f.format?(b.text=
-h.defaultLabelFormatter.call(b,b),a.format(f.format,b,k)):h.defaultLabelFormatter.call(b,b)};g=t.call(Q,Q);var Y=J&&J.list;d.shortenLabel=Y?function(){for(N=0;N<Y.length;N++)if(r(Q,{dateTimeLabelFormat:Y[N]}),q.attr({text:t.call(Q,Q)}),q.getBBox().width<h.getSlotWidth(d)-2*f.padding)return;q.attr({text:""})}:void 0;z&&h._addedPlotLB&&d.moveLabel(g,f);H(q)||d.movedLabel?q&&q.textStr!==g&&!z&&(!q.textWidth||f.style.width||q.styles.width||q.css({width:null}),q.attr({text:g}),q.textPxLength=q.getBBox().width):
-(d.label=q=d.createLabel({x:0,y:0},g,f),d.rotation=0)};g.prototype.createLabel=function(e,a,h){var g=this.axis,k=g.chart;if(e=H(a)&&h.enabled?k.renderer.text(a,e.x,e.y,h.useHTML).add(g.labelGroup):null)k.styledMode||e.css(d(h.style)),e.textPxLength=e.getBBox().width;return e};g.prototype.destroy=function(){t(this,this.axis)};g.prototype.getPosition=function(d,e,a,h){var g=this.axis,k=g.chart,c=h&&k.oldChartHeight||k.chartHeight;d={x:d?B(g.translate(e+a,void 0,void 0,h)+g.transB):g.left+g.offset+(g.opposite?
-(h&&k.oldChartWidth||k.chartWidth)-g.right-g.left:0),y:d?c-g.bottom+g.offset-(g.opposite?g.height:0):B(c-g.translate(e+a,void 0,void 0,h)-g.transB)};d.y=C(d.y,-1E5,1E5);l(this,"afterGetPosition",{pos:d});return d};g.prototype.getLabelPosition=function(d,e,a,h,g,k,c,w){var f=this.axis,n=f.transA,b=f.isLinked&&f.linkedParent?f.linkedParent.reversed:f.reversed,u=f.staggerLines,z=f.tickRotCorr||{x:0,y:0},q=h||f.reserveSpaceDefault?0:-f.labelOffset*("center"===f.labelAlign?.5:1),m={};a=0===f.side?a.rotation?
--8:-a.getBBox().height:2===f.side?z.y+8:Math.cos(a.rotation*A)*(z.y-a.getBBox(!1,0).height/2);H(g.y)&&(a=0===f.side&&f.horiz?g.y+a:g.y);d=d+g.x+q+z.x-(k&&h?k*n*(b?-1:1):0);e=e+a-(k&&!h?k*n*(b?1:-1):0);u&&(h=c/(w||1)%u,f.opposite&&(h=u-h-1),e+=f.labelOffset/u*h);m.x=d;m.y=Math.round(e);l(this,"afterGetLabelPosition",{pos:m,tickmarkOffset:k,index:c});return m};g.prototype.getLabelSize=function(){return this.label?this.label.getBBox()[this.axis.horiz?"height":"width"]:0};g.prototype.getMarkPath=function(d,
-e,a,h,g,k){return k.crispLine([["M",d,e],["L",d+(g?0:-a),e+(g?a:0)]],h)};g.prototype.handleOverflow=function(d){var e=this.axis,a=e.options.labels,h=d.x,g=e.chart.chartWidth,k=e.chart.spacing,c=m(e.labelLeft,Math.min(e.pos,k[3]));k=m(e.labelRight,Math.max(e.isRadial?0:e.pos+e.len,g-k[1]));var w=this.label,f=this.rotation,n={left:0,center:.5,right:1}[e.labelAlign||w.attr("align")],b=w.getBBox().width,u=e.getSlotWidth(this),z={},q=u,p=1,l;if(f||"justify"!==a.overflow)0>f&&h-n*b<c?l=Math.round(h/Math.cos(f*
-A)-c):0<f&&h+n*b>k&&(l=Math.round((g-h)/Math.cos(f*A)));else if(g=h+(1-n)*b,h-n*b<c?q=d.x+q*(1-n)-c:g>k&&(q=k-d.x+q*n,p=-1),q=Math.min(u,q),q<u&&"center"===e.labelAlign&&(d.x+=p*(u-q-n*(u-Math.min(b,q)))),b>q||e.autoRotation&&(w.styles||{}).width)l=q;l&&(this.shortenLabel?this.shortenLabel():(z.width=Math.floor(l)+"px",(a.style||{}).textOverflow||(z.textOverflow="ellipsis"),w.css(z)))};g.prototype.moveLabel=function(d,e){var a=this,g=a.label,k=a.axis,m=k.reversed,c=!1;g&&g.textStr===d?(a.movedLabel=
-g,c=!0,delete a.label):h(k.ticks,function(f){c||f.isNew||f===a||!f.label||f.label.textStr!==d||(a.movedLabel=f.label,c=!0,f.labelPos=a.movedLabel.xy,delete f.label)});if(!c&&(a.labelPos||g)){var w=a.labelPos||g.xy;g=k.horiz?m?0:k.width+k.left:w.x;k=k.horiz?w.y:m?k.width+k.left:0;a.movedLabel=a.createLabel({x:g,y:k},d,e);a.movedLabel&&a.movedLabel.attr({opacity:0})}};g.prototype.render=function(d,e,a){var h=this.axis,g=h.horiz,k=this.pos,c=m(this.tickmarkOffset,h.tickmarkOffset);k=this.getPosition(g,
-k,c,e);c=k.x;var w=k.y;h=g&&c===h.pos+h.len||!g&&w===h.pos?-1:1;g=m(a,this.label&&this.label.newOpacity,1);a=m(a,1);this.isActive=!0;this.renderGridLine(e,a,h);this.renderMark(k,a,h);this.renderLabel(k,e,g,d);this.isNew=!1;l(this,"afterRender")};g.prototype.renderGridLine=function(d,e,a){var h=this.axis,g=h.options,k={},c=this.pos,w=this.type,f=m(this.tickmarkOffset,h.tickmarkOffset),n=h.chart.renderer,b=this.gridLine,u=g.gridLineWidth,z=g.gridLineColor,q=g.gridLineDashStyle;"minor"===this.type&&
-(u=g.minorGridLineWidth,z=g.minorGridLineColor,q=g.minorGridLineDashStyle);b||(h.chart.styledMode||(k.stroke=z,k["stroke-width"]=u||0,k.dashstyle=q),w||(k.zIndex=1),d&&(e=0),this.gridLine=b=n.path().attr(k).addClass("highcharts-"+(w?w+"-":"")+"grid-line").add(h.gridGroup));if(b&&(a=h.getPlotLinePath({value:c+f,lineWidth:b.strokeWidth()*a,force:"pass",old:d,acrossPanes:!1})))b[d||this.isNew?"attr":"animate"]({d:a,opacity:e})};g.prototype.renderMark=function(d,e,a){var h=this.axis,g=h.options,k=h.chart.renderer,
-c=this.type,w=h.tickSize(c?c+"Tick":"tick"),f=d.x;d=d.y;var n=m(g["minor"!==c?"tickWidth":"minorTickWidth"],!c&&h.isXAxis?1:0);g=g["minor"!==c?"tickColor":"minorTickColor"];var b=this.mark,u=!b;w&&(h.opposite&&(w[0]=-w[0]),b||(this.mark=b=k.path().addClass("highcharts-"+(c?c+"-":"")+"tick").add(h.axisGroup),h.chart.styledMode||b.attr({stroke:g,"stroke-width":n})),b[u?"attr":"animate"]({d:this.getMarkPath(f,d,w[0],b.strokeWidth()*a,h.horiz,k),opacity:e}))};g.prototype.renderLabel=function(d,a,h,g){var k=
-this.axis,l=k.horiz,c=k.options,w=this.label,f=c.labels,n=f.step;k=m(this.tickmarkOffset,k.tickmarkOffset);var b=d.x;d=d.y;var u=!0;w&&e(b)&&(w.xy=d=this.getLabelPosition(b,d,w,l,f,k,g,n),this.isFirst&&!this.isLast&&!c.showFirstLabel||this.isLast&&!this.isFirst&&!c.showLastLabel?u=!1:!l||f.step||f.rotation||a||0===h||this.handleOverflow(d),n&&g%n&&(u=!1),u&&e(d.y)?(d.opacity=h,w[this.isNewLabel?"attr":"animate"](d).show(!0),this.isNewLabel=!1):(w.hide(),this.isNewLabel=!0))};g.prototype.replaceMovedLabel=
-function(){var d=this.label,e=this.axis,a=e.reversed;if(d&&!this.isNew){var h=e.horiz?a?e.left:e.width+e.left:d.xy.x;a=e.horiz?d.xy.y:a?e.width+e.top:e.top;d.animate({x:h,y:a,opacity:0},void 0,d.destroy);delete this.label}e.isDirty=!0;this.label=this.movedLabel;delete this.movedLabel};return g}();"";return g});K(g,"Core/Axis/Axis.js",[g["Core/Animation/AnimationUtilities.js"],g["Core/Axis/AxisDefaults.js"],g["Core/Color/Color.js"],g["Core/Defaults.js"],g["Core/Foundation.js"],g["Core/Globals.js"],
-g["Core/Axis/Tick.js"],g["Core/Utilities.js"]],function(a,g,x,F,C,B,H,t){var r=a.animObject,l=F.defaultOptions,e=C.registerEventOptions,d=B.deg2rad,h=t.arrayMax,m=t.arrayMin,k=t.clamp,p=t.correctFloat,D=t.defined,I=t.destroyObjectProperties,E=t.erase,A=t.error,y=t.extend,c=t.fireEvent,w=t.isArray,f=t.isNumber,n=t.isString,b=t.merge,u=t.normalizeTickInterval,z=t.objectEach,q=t.pick,N=t.relativeLength,J=t.removeEvent,O=t.splat,Q=t.syncTimeout,T=function(b,c){return u(c,void 0,void 0,q(b.options.allowDecimals,
-.5>c||void 0!==b.tickAmount),!!b.tickAmount)};a=function(){function a(b,c){this.zoomEnabled=this.width=this.visible=this.userOptions=this.translationSlope=this.transB=this.transA=this.top=this.ticks=this.tickRotCorr=this.tickPositions=this.tickmarkOffset=this.tickInterval=this.tickAmount=this.side=this.series=this.right=this.positiveValuesOnly=this.pos=this.pointRangePadding=this.pointRange=this.plotLinesAndBandsGroups=this.plotLinesAndBands=this.paddedTicks=this.overlap=this.options=this.offset=
-this.names=this.minPixelPadding=this.minorTicks=this.minorTickInterval=this.min=this.maxLabelLength=this.max=this.len=this.left=this.labelFormatter=this.labelEdge=this.isLinked=this.height=this.hasVisibleSeries=this.hasNames=this.eventOptions=this.coll=this.closestPointRange=this.chart=this.bottom=this.alternateBands=void 0;this.init(b,c)}a.prototype.init=function(b,d){var a=d.isX;this.chart=b;this.horiz=b.inverted&&!this.isZAxis?!a:a;this.isXAxis=a;this.coll=this.coll||(a?"xAxis":"yAxis");c(this,
-"init",{userOptions:d});this.opposite=q(d.opposite,this.opposite);this.side=q(d.side,this.side,this.horiz?this.opposite?0:2:this.opposite?1:3);this.setOptions(d);var v=this.options,n=v.labels,h=v.type;this.userOptions=d;this.minPixelPadding=0;this.reversed=q(v.reversed,this.reversed);this.visible=v.visible;this.zoomEnabled=v.zoomEnabled;this.hasNames="category"===h||!0===v.categories;this.categories=v.categories||(this.hasNames?[]:void 0);this.names||(this.names=[],this.names.keys={});this.plotLinesAndBandsGroups=
-{};this.positiveValuesOnly=!!this.logarithmic;this.isLinked=D(v.linkedTo);this.ticks={};this.labelEdge=[];this.minorTicks={};this.plotLinesAndBands=[];this.alternateBands={};this.len=0;this.minRange=this.userMinRange=v.minRange||v.maxZoom;this.range=v.range;this.offset=v.offset||0;this.min=this.max=null;d=q(v.crosshair,O(b.options.tooltip.crosshairs)[a?0:1]);this.crosshair=!0===d?{}:d;-1===b.axes.indexOf(this)&&(a?b.axes.splice(b.xAxis.length,0,this):b.axes.push(this),b[this.coll].push(this));this.series=
-this.series||[];b.inverted&&!this.isZAxis&&a&&"undefined"===typeof this.reversed&&(this.reversed=!0);this.labelRotation=f(n.rotation)?n.rotation:void 0;e(this,v);c(this,"afterInit")};a.prototype.setOptions=function(f){this.options=b(g.defaultXAxisOptions,"yAxis"===this.coll&&g.defaultYAxisOptions,[g.defaultTopAxisOptions,g.defaultRightAxisOptions,g.defaultBottomAxisOptions,g.defaultLeftAxisOptions][this.side],b(l[this.coll],f));c(this,"afterSetOptions",{userOptions:f})};a.prototype.defaultLabelFormatter=
-function(b){var c=this.axis;b=this.chart.numberFormatter;var d=f(this.value)?this.value:NaN,a=c.chart.time,e=this.dateTimeLabelFormat,v=l.lang,n=v.numericSymbols;v=v.numericSymbolMagnitude||1E3;var h=c.logarithmic?Math.abs(d):c.tickInterval,q=n&&n.length;if(c.categories)var u="".concat(this.value);else if(e)u=a.dateFormat(e,d);else if(q&&1E3<=h)for(;q--&&"undefined"===typeof u;)c=Math.pow(v,q+1),h>=c&&0===10*d%c&&null!==n[q]&&0!==d&&(u=b(d/c,-1)+n[q]);"undefined"===typeof u&&(u=1E4<=Math.abs(d)?b(d,
--1):b(d,-1,void 0,""));return u};a.prototype.getSeriesExtremes=function(){var b=this,d=b.chart,a;c(this,"getSeriesExtremes",null,function(){b.hasVisibleSeries=!1;b.dataMin=b.dataMax=b.threshold=null;b.softThreshold=!b.isXAxis;b.series.forEach(function(c){if(c.visible||!d.options.chart.ignoreHiddenSeries){var e=c.options,v=e.threshold;b.hasVisibleSeries=!0;b.positiveValuesOnly&&0>=v&&(v=null);if(b.isXAxis){if(e=c.xData,e.length){e=b.logarithmic?e.filter(b.validatePositiveValue):e;a=c.getXExtremes(e);
-var n=a.min;var h=a.max;f(n)||n instanceof Date||(e=e.filter(f),a=c.getXExtremes(e),n=a.min,h=a.max);e.length&&(b.dataMin=Math.min(q(b.dataMin,n),n),b.dataMax=Math.max(q(b.dataMax,h),h))}}else if(c=c.applyExtremes(),f(c.dataMin)&&(n=c.dataMin,b.dataMin=Math.min(q(b.dataMin,n),n)),f(c.dataMax)&&(h=c.dataMax,b.dataMax=Math.max(q(b.dataMax,h),h)),D(v)&&(b.threshold=v),!e.softThreshold||b.positiveValuesOnly)b.softThreshold=!1}})});c(this,"afterGetSeriesExtremes")};a.prototype.translate=function(b,c,d,
-a,e,n){var v=this.linkedParent||this,h=a&&v.old?v.old.min:v.min;if(!f(h))return NaN;var q=v.minPixelPadding;e=(v.isOrdinal||v.brokenAxis&&v.brokenAxis.hasBreaks||v.logarithmic&&e)&&v.lin2val;var u=1,G=0;a=a&&v.old?v.old.transA:v.transA;a||(a=v.transA);d&&(u*=-1,G=v.len);v.reversed&&(u*=-1,G-=u*(v.sector||v.len));c?(n=(b*u+G-q)/a+h,e&&(n=v.lin2val(n))):(e&&(b=v.val2lin(b)),b=u*(b-h)*a,n=(v.isRadial?b:p(b))+G+u*q+(f(n)?a*n:0));return n};a.prototype.toPixels=function(b,c){return this.translate(b,!1,
-!this.horiz,void 0,!0)+(c?0:this.pos)};a.prototype.toValue=function(b,c){return this.translate(b-(c?0:this.pos),!0,!this.horiz,void 0,!0)};a.prototype.getPlotLinePath=function(b){function d(b,c,f){"pass"!==p&&(b<c||b>f)&&(p?b=k(b,c,f):r=!0);return b}var a=this,e=a.chart,v=a.left,n=a.top,h=b.old,u=b.value,g=b.lineWidth,z=h&&e.oldChartHeight||e.chartHeight,w=h&&e.oldChartWidth||e.chartWidth,m=a.transB,l=b.translatedValue,p=b.force,J,N,y,O,r;b={value:u,lineWidth:g,old:h,force:p,acrossPanes:b.acrossPanes,
-translatedValue:l};c(this,"getPlotLinePath",b,function(b){l=q(l,a.translate(u,void 0,void 0,h));l=k(l,-1E5,1E5);J=y=Math.round(l+m);N=O=Math.round(z-l-m);f(l)?a.horiz?(N=n,O=z-a.bottom,J=y=d(J,v,v+a.width)):(J=v,y=w-a.right,N=O=d(N,n,n+a.height)):(r=!0,p=!1);b.path=r&&!p?null:e.renderer.crispLine([["M",J,N],["L",y,O]],g||1)});return b.path};a.prototype.getLinearTickPositions=function(b,c,f){var d=p(Math.floor(c/b)*b);f=p(Math.ceil(f/b)*b);var a=[],e;p(d+b)===d&&(e=20);if(this.single)return[c];for(c=
-d;c<=f;){a.push(c);c=p(c+b,e);if(c===v)break;var v=c}return a};a.prototype.getMinorTickInterval=function(){var b=this.options;return!0===b.minorTicks?q(b.minorTickInterval,"auto"):!1===b.minorTicks?null:b.minorTickInterval};a.prototype.getMinorTickPositions=function(){var b=this.options,c=this.tickPositions,f=this.minorTickInterval,d=this.pointRangePadding||0,a=this.min-d;d=this.max+d;var e=d-a,n=[];if(e&&e/f<this.len/3){var h=this.logarithmic;if(h)this.paddedTicks.forEach(function(b,c,d){c&&n.push.apply(n,
-h.getLogTickPositions(f,d[c-1],d[c],!0))});else if(this.dateTime&&"auto"===this.getMinorTickInterval())n=n.concat(this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(f),a,d,b.startOfWeek));else for(b=a+(c[0]-a)%f;b<=d&&b!==n[0];b+=f)n.push(b)}0!==n.length&&this.trimTicks(n);return n};a.prototype.adjustForMinRange=function(){var b=this.options,c=this.logarithmic,f=this.min,d=this.max,a=0,e,n,u,g;this.isXAxis&&"undefined"===typeof this.minRange&&!c&&(D(b.min)||D(b.max)||D(b.floor)||D(b.ceiling)?
-this.minRange=null:(this.series.forEach(function(b){u=b.xData;g=b.xIncrement?1:u.length-1;if(1<u.length)for(e=g;0<e;e--)if(n=u[e]-u[e-1],!a||n<a)a=n}),this.minRange=Math.min(5*a,this.dataMax-this.dataMin)));if(d-f<this.minRange){var z=this.dataMax-this.dataMin>=this.minRange;var k=this.minRange;var w=(k-d+f)/2;w=[f-w,q(b.min,f-w)];z&&(w[2]=this.logarithmic?this.logarithmic.log2lin(this.dataMin):this.dataMin);f=h(w);d=[f+k,q(b.max,f+k)];z&&(d[2]=c?c.log2lin(this.dataMax):this.dataMax);d=m(d);d-f<k&&
-(w[0]=d-k,w[1]=q(b.min,d-k),f=h(w))}this.min=f;this.max=d};a.prototype.getClosest=function(){var b;this.categories?b=1:this.series.forEach(function(c){var f=c.closestPointRange,d=c.visible||!c.chart.options.chart.ignoreHiddenSeries;!c.noSharedTooltip&&D(f)&&d&&(b=D(b)?Math.min(b,f):f)});return b};a.prototype.nameToX=function(b){var c=w(this.options.categories),f=c?this.categories:this.names,d=b.options.x;b.series.requireSorting=!1;D(d)||(d=this.options.uniqueNames&&f?c?f.indexOf(b.name):q(f.keys[b.name],
--1):b.series.autoIncrement());if(-1===d){if(!c&&f)var a=f.length}else a=d;"undefined"!==typeof a?(this.names[a]=b.name,this.names.keys[b.name]=a):b.x&&(a=b.x);return a};a.prototype.updateNames=function(){var b=this,c=this.names;0<c.length&&(Object.keys(c.keys).forEach(function(b){delete c.keys[b]}),c.length=0,this.minRange=this.userMinRange,(this.series||[]).forEach(function(c){c.xIncrement=null;if(!c.points||c.isDirtyData)b.max=Math.max(b.max,c.xData.length-1),c.processData(),c.generatePoints();
-c.data.forEach(function(f,d){if(f&&f.options&&"undefined"!==typeof f.name){var a=b.nameToX(f);"undefined"!==typeof a&&a!==f.x&&(f.x=a,c.xData[d]=a)}})}))};a.prototype.setAxisTranslation=function(){var b=this,f=b.max-b.min,d=b.linkedParent,a=!!b.categories,e=b.isXAxis,h=b.axisPointRange||0,u=0,g=0,k=b.transA;if(e||a||h){var z=b.getClosest();d?(u=d.minPointOffset,g=d.pointRangePadding):b.series.forEach(function(c){var f=a?1:e?q(c.options.pointRange,z,0):b.axisPointRange||0,d=c.options.pointPlacement;
-h=Math.max(h,f);if(!b.single||a)c=c.is("xrange")?!e:e,u=Math.max(u,c&&n(d)?0:f/2),g=Math.max(g,c&&"on"===d?0:f)});d=b.ordinal&&b.ordinal.slope&&z?b.ordinal.slope/z:1;b.minPointOffset=u*=d;b.pointRangePadding=g*=d;b.pointRange=Math.min(h,b.single&&a?1:f);e&&(b.closestPointRange=z)}b.translationSlope=b.transA=k=b.staticScale||b.len/(f+g||1);b.transB=b.horiz?b.left:b.bottom;b.minPixelPadding=k*u;c(this,"afterSetAxisTranslation")};a.prototype.minFromRange=function(){return this.max-this.range};a.prototype.setTickInterval=
-function(b){var d=this.chart,a=this.logarithmic,e=this.options,n=this.isXAxis,h=this.isLinked,u=e.tickPixelInterval,v=this.categories,g=this.softThreshold,k=e.maxPadding,z=e.minPadding,w=f(e.tickInterval)&&0<=e.tickInterval?e.tickInterval:void 0,m=f(this.threshold)?this.threshold:null;this.dateTime||v||h||this.getTickAmount();var l=q(this.userMin,e.min);var J=q(this.userMax,e.max);if(h){this.linkedParent=d[this.coll][e.linkedTo];var N=this.linkedParent.getExtremes();this.min=q(N.min,N.dataMin);this.max=
-q(N.max,N.dataMax);e.type!==this.linkedParent.options.type&&A(11,1,d)}else{if(g&&D(m))if(this.dataMin>=m)N=m,z=0;else if(this.dataMax<=m){var y=m;k=0}this.min=q(l,N,this.dataMin);this.max=q(J,y,this.dataMax)}a&&(this.positiveValuesOnly&&!b&&0>=Math.min(this.min,q(this.dataMin,this.min))&&A(10,1,d),this.min=p(a.log2lin(this.min),16),this.max=p(a.log2lin(this.max),16));this.range&&D(this.max)&&(this.userMin=this.min=l=Math.max(this.dataMin,this.minFromRange()),this.userMax=J=this.max,this.range=null);
-c(this,"foundExtremes");this.beforePadding&&this.beforePadding();this.adjustForMinRange();!(v||this.axisPointRange||this.stacking&&this.stacking.usePercentage||h)&&D(this.min)&&D(this.max)&&(d=this.max-this.min)&&(!D(l)&&z&&(this.min-=d*z),!D(J)&&k&&(this.max+=d*k));f(this.userMin)||(f(e.softMin)&&e.softMin<this.min&&(this.min=l=e.softMin),f(e.floor)&&(this.min=Math.max(this.min,e.floor)));f(this.userMax)||(f(e.softMax)&&e.softMax>this.max&&(this.max=J=e.softMax),f(e.ceiling)&&(this.max=Math.min(this.max,
-e.ceiling)));g&&D(this.dataMin)&&(m=m||0,!D(l)&&this.min<m&&this.dataMin>=m?this.min=this.options.minRange?Math.min(m,this.max-this.minRange):m:!D(J)&&this.max>m&&this.dataMax<=m&&(this.max=this.options.minRange?Math.max(m,this.min+this.minRange):m));f(this.min)&&f(this.max)&&!this.chart.polar&&this.min>this.max&&(D(this.options.min)?this.max=this.min:D(this.options.max)&&(this.min=this.max));this.tickInterval=this.min===this.max||"undefined"===typeof this.min||"undefined"===typeof this.max?1:h&&
-this.linkedParent&&!w&&u===this.linkedParent.options.tickPixelInterval?w=this.linkedParent.tickInterval:q(w,this.tickAmount?(this.max-this.min)/Math.max(this.tickAmount-1,1):void 0,v?1:(this.max-this.min)*u/Math.max(this.len,u));if(n&&!b){var O=this.min!==(this.old&&this.old.min)||this.max!==(this.old&&this.old.max);this.series.forEach(function(b){b.forceCrop=b.forceCropping&&b.forceCropping();b.processData(O)});c(this,"postProcessData",{hasExtremesChanged:O})}this.setAxisTranslation();c(this,"initialAxisTranslation");
-this.pointRange&&!w&&(this.tickInterval=Math.max(this.pointRange,this.tickInterval));b=q(e.minTickInterval,this.dateTime&&!this.series.some(function(b){return b.noSharedTooltip})?this.closestPointRange:0);!w&&this.tickInterval<b&&(this.tickInterval=b);this.dateTime||this.logarithmic||w||(this.tickInterval=T(this,this.tickInterval));this.tickAmount||(this.tickInterval=this.unsquish());this.setTickPositions()};a.prototype.setTickPositions=function(){var b=this.options,d=b.tickPositions,a=b.tickPositioner,
-e=this.getMinorTickInterval(),n=this.hasVerticalPanning(),h="colorAxis"===this.coll,u=(h||!n)&&b.startOnTick;n=(h||!n)&&b.endOnTick;h=[];var q;this.tickmarkOffset=this.categories&&"between"===b.tickmarkPlacement&&1===this.tickInterval?.5:0;this.minorTickInterval="auto"===e&&this.tickInterval?this.tickInterval/5:e;this.single=this.min===this.max&&D(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==b.allowDecimals);if(d)h=d.slice();else if(f(this.min)&&f(this.max)){if(this.ordinal&&
-this.ordinal.positions||!((this.max-this.min)/this.tickInterval>Math.max(2*this.len,200)))if(this.dateTime)h=this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(this.tickInterval,b.units),this.min,this.max,b.startOfWeek,this.ordinal&&this.ordinal.positions,this.closestPointRange,!0);else if(this.logarithmic)h=this.logarithmic.getLogTickPositions(this.tickInterval,this.min,this.max);else for(e=b=this.tickInterval;e<=2*b;)if(h=this.getLinearTickPositions(this.tickInterval,this.min,this.max),this.tickAmount&&
-h.length>this.tickAmount)this.tickInterval=T(this,e*=1.1);else break;else h=[this.min,this.max],A(19,!1,this.chart);h.length>this.len&&(h=[h[0],h[h.length-1]],h[0]===h[1]&&(h.length=1));a&&(this.tickPositions=h,(q=a.apply(this,[this.min,this.max]))&&(h=q))}this.tickPositions=h;this.paddedTicks=h.slice(0);this.trimTicks(h,u,n);!this.isLinked&&f(this.min)&&f(this.max)&&(this.single&&2>h.length&&!this.categories&&!this.series.some(function(b){return b.is("heatmap")&&"between"===b.options.pointPlacement})&&
-(this.min-=.5,this.max+=.5),d||q||this.adjustTickAmount());c(this,"afterSetTickPositions")};a.prototype.trimTicks=function(b,f,d){var a=b[0],e=b[b.length-1],h=!this.isOrdinal&&this.minPointOffset||0;c(this,"trimTicks");if(!this.isLinked){if(f&&-Infinity!==a)this.min=a;else for(;this.min-h>b[0];)b.shift();if(d)this.max=e;else for(;this.max+h<b[b.length-1];)b.pop();0===b.length&&D(a)&&!this.options.tickPositions&&b.push((e+a)/2)}};a.prototype.alignToOthers=function(){var b=this,c=[this],d=b.options,
-a="yAxis"===this.coll&&this.chart.options.chart.alignThresholds,e=[],h;b.thresholdAlignment=void 0;if((!1!==this.chart.options.chart.alignTicks&&d.alignTicks||a)&&!1!==d.startOnTick&&!1!==d.endOnTick&&!b.logarithmic){var n=function(b){var c=b.options;return[b.horiz?c.left:c.top,c.width,c.height,c.pane].join()},u=n(this);this.chart[this.coll].forEach(function(f){var d=f.series;d.length&&d.some(function(b){return b.visible})&&f!==b&&n(f)===u&&(h=!0,c.push(f))})}if(h&&a){c.forEach(function(c){c=c.getThresholdAlignment(b);
-f(c)&&e.push(c)});var q=1<e.length?e.reduce(function(b,c){return b+c},0)/e.length:void 0;c.forEach(function(b){b.thresholdAlignment=q})}return h};a.prototype.getThresholdAlignment=function(b){(!f(this.dataMin)||this!==b&&this.series.some(function(b){return b.isDirty||b.isDirtyData}))&&this.getSeriesExtremes();if(f(this.threshold))return b=k((this.threshold-(this.dataMin||0))/((this.dataMax||0)-(this.dataMin||0)),0,1),this.options.reversed&&(b=1-b),b};a.prototype.getTickAmount=function(){var b=this.options,
-c=b.tickPixelInterval,f=b.tickAmount;!D(b.tickInterval)&&!f&&this.len<c&&!this.isRadial&&!this.logarithmic&&b.startOnTick&&b.endOnTick&&(f=2);!f&&this.alignToOthers()&&(f=Math.ceil(this.len/c)+1);4>f&&(this.finalTickAmt=f,f=5);this.tickAmount=f};a.prototype.adjustTickAmount=function(){var b=this,c=b.finalTickAmt,d=b.max,a=b.min,e=b.options,h=b.tickPositions,n=b.tickAmount,u=b.thresholdAlignment,g=h&&h.length,k=q(b.threshold,b.softThreshold?0:null);var z=b.tickInterval;if(f(u)){var w=.5>u?Math.ceil(u*
-(n-1)):Math.floor(u*(n-1));e.reversed&&(w=n-1-w)}if(b.hasData()&&f(a)&&f(d)){u=function(){b.transA*=(g-1)/(n-1);b.min=e.startOnTick?h[0]:Math.min(a,h[0]);b.max=e.endOnTick?h[h.length-1]:Math.max(d,h[h.length-1])};if(f(w)&&f(b.threshold)){for(;h[w]!==k||h.length!==n||h[0]>a||h[h.length-1]<d;){h.length=0;for(h.push(b.threshold);h.length<n;)void 0===h[w]||h[w]>b.threshold?h.unshift(p(h[0]-z)):h.push(p(h[h.length-1]+z));if(z>8*b.tickInterval)break;z*=2}u()}else if(g<n){for(;h.length<n;)h.length%2||a===
-k?h.push(p(h[h.length-1]+z)):h.unshift(p(h[0]-z));u()}if(D(c)){for(z=k=h.length;z--;)(3===c&&1===z%2||2>=c&&0<z&&z<k-1)&&h.splice(z,1);b.finalTickAmt=void 0}}};a.prototype.setScale=function(){var b=!1,f=!1;this.series.forEach(function(c){b=b||c.isDirtyData||c.isDirty;f=f||c.xAxis&&c.xAxis.isDirty||!1});this.setAxisSize();var d=this.len!==(this.old&&this.old.len);d||b||f||this.isLinked||this.forceRedraw||this.userMin!==(this.old&&this.old.userMin)||this.userMax!==(this.old&&this.old.userMax)||this.alignToOthers()?
-(this.stacking&&(this.stacking.resetStacks(),this.stacking.buildStacks()),this.forceRedraw=!1,this.getSeriesExtremes(),this.setTickInterval(),this.isDirty||(this.isDirty=d||this.min!==(this.old&&this.old.min)||this.max!==(this.old&&this.old.max))):this.stacking&&this.stacking.cleanStacks();b&&this.panningState&&(this.panningState.isDirty=!0);c(this,"afterSetScale")};a.prototype.setExtremes=function(b,f,d,a,e){var h=this,n=h.chart;d=q(d,!0);h.series.forEach(function(b){delete b.kdTree});e=y(e,{min:b,
-max:f});c(h,"setExtremes",e,function(){h.userMin=b;h.userMax=f;h.eventArgs=e;d&&n.redraw(a)})};a.prototype.zoom=function(b,f){var d=this,a=this.dataMin,e=this.dataMax,h=this.options,n=Math.min(a,q(h.min,a)),u=Math.max(e,q(h.max,e));b={newMin:b,newMax:f};c(this,"zoom",b,function(b){var c=b.newMin,f=b.newMax;if(c!==d.min||f!==d.max)d.allowZoomOutside||(D(a)&&(c<n&&(c=n),c>u&&(c=u)),D(e)&&(f<n&&(f=n),f>u&&(f=u))),d.displayBtn="undefined"!==typeof c||"undefined"!==typeof f,d.setExtremes(c,f,!1,void 0,
-{trigger:"zoom"});b.zoomed=!0});return b.zoomed};a.prototype.setAxisSize=function(){var b=this.chart,c=this.options,f=c.offsets||[0,0,0,0],d=this.horiz,a=this.width=Math.round(N(q(c.width,b.plotWidth-f[3]+f[1]),b.plotWidth)),e=this.height=Math.round(N(q(c.height,b.plotHeight-f[0]+f[2]),b.plotHeight)),h=this.top=Math.round(N(q(c.top,b.plotTop+f[0]),b.plotHeight,b.plotTop));c=this.left=Math.round(N(q(c.left,b.plotLeft+f[3]),b.plotWidth,b.plotLeft));this.bottom=b.chartHeight-e-h;this.right=b.chartWidth-
-a-c;this.len=Math.max(d?a:e,0);this.pos=d?c:h};a.prototype.getExtremes=function(){var b=this.logarithmic;return{min:b?p(b.lin2log(this.min)):this.min,max:b?p(b.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}};a.prototype.getThreshold=function(b){var c=this.logarithmic,f=c?c.lin2log(this.min):this.min;c=c?c.lin2log(this.max):this.max;null===b||-Infinity===b?b=f:Infinity===b?b=c:f>b?b=f:c<b&&(b=c);return this.translate(b,0,1,0,1)};a.prototype.autoLabelAlign=
-function(b){var f=(q(b,0)-90*this.side+720)%360;b={align:"center"};c(this,"autoLabelAlign",b,function(b){15<f&&165>f?b.align="right":195<f&&345>f&&(b.align="left")});return b.align};a.prototype.tickSize=function(b){var f=this.options,d=q(f["tick"===b?"tickWidth":"minorTickWidth"],"tick"===b&&this.isXAxis&&!this.categories?1:0),a=f["tick"===b?"tickLength":"minorTickLength"];if(d&&a){"inside"===f[b+"Position"]&&(a=-a);var e=[a,d]}b={tickSize:e};c(this,"afterTickSize",b);return b.tickSize};a.prototype.labelMetrics=
-function(){var b=this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style.fontSize,this.ticks[b]&&this.ticks[b].label)};a.prototype.unsquish=function(){var b=this.options.labels,c=this.horiz,a=this.tickInterval,e=this.len/(((this.categories?1:0)+this.max-this.min)/a),h=b.rotation,n=this.labelMetrics(),u=Math.max(this.max-this.min,0),g=function(b){var c=b/(e||1);c=1<c?Math.ceil(c):1;c*a>u&&Infinity!==b&&Infinity!==e&&u&&(c=Math.ceil(u/a));return p(c*
-a)},z=a,k=Number.MAX_VALUE;if(c){if(!b.staggerLines)if(f(h))var w=[h];else e<b.autoRotationLimit&&(w=b.autoRotation);if(w)for(var m=c=void 0,l=0,J=w;l<J.length;l++){var N=J[l];if(N===h||N&&-90<=N&&90>=N)if(c=g(Math.abs(n.h/Math.sin(d*N))),m=c+Math.abs(N/360),m<k){k=m;var y=N;z=c}}}else z=g(n.h);this.autoRotation=w;this.labelRotation=q(y,f(h)?h:0);return b.step?a:z};a.prototype.getSlotWidth=function(b){var c=this.chart,d=this.horiz,a=this.options.labels,e=Math.max(this.tickPositions.length-(this.categories?
-0:1),1),h=c.margin[3];if(b&&f(b.slotWidth))return b.slotWidth;if(d&&2>a.step)return a.rotation?0:(this.staggerLines||1)*this.len/e;if(!d){b=a.style.width;if(void 0!==b)return parseInt(String(b),10);if(h)return h-c.spacing[3]}return.33*c.chartWidth};a.prototype.renderUnsquish=function(){var b=this.chart,c=b.renderer,f=this.tickPositions,d=this.ticks,a=this.options.labels,e=a.style,h=this.horiz,u=this.getSlotWidth(),q=Math.max(1,Math.round(u-2*a.padding)),g={},z=this.labelMetrics(),k=e.textOverflow,
-w=0;n(a.rotation)||(g.rotation=a.rotation||0);f.forEach(function(b){b=d[b];b.movedLabel&&b.replaceMovedLabel();b&&b.label&&b.label.textPxLength>w&&(w=b.label.textPxLength)});this.maxLabelLength=w;if(this.autoRotation)w>q&&w>z.h?g.rotation=this.labelRotation:this.labelRotation=0;else if(u){var m=q;if(!k){var l="clip";for(q=f.length;!h&&q--;){var p=f[q];if(p=d[p].label)p.styles&&"ellipsis"===p.styles.textOverflow?p.css({textOverflow:"clip"}):p.textPxLength>u&&p.css({width:u+"px"}),p.getBBox().height>
-this.len/f.length-(z.h-z.f)&&(p.specificTextOverflow="ellipsis")}}}g.rotation&&(m=w>.5*b.chartHeight?.33*b.chartHeight:w,k||(l="ellipsis"));if(this.labelAlign=a.align||this.autoLabelAlign(this.labelRotation))g.align=this.labelAlign;f.forEach(function(b){var c=(b=d[b])&&b.label,f=e.width,a={};c&&(c.attr(g),b.shortenLabel?b.shortenLabel():m&&!f&&"nowrap"!==e.whiteSpace&&(m<c.textPxLength||"SPAN"===c.element.tagName)?(a.width=m+"px",k||(a.textOverflow=c.specificTextOverflow||l),c.css(a)):c.styles&&c.styles.width&&
-!a.width&&!f&&c.css({width:null}),delete c.specificTextOverflow,b.rotation=g.rotation)},this);this.tickRotCorr=c.rotCorr(z.b,this.labelRotation||0,0!==this.side)};a.prototype.hasData=function(){return this.series.some(function(b){return b.hasData()})||this.options.showEmpty&&D(this.min)&&D(this.max)};a.prototype.addTitle=function(c){var f=this.chart.renderer,d=this.horiz,a=this.opposite,e=this.options.title,h=this.chart.styledMode,n;this.axisTitle||((n=e.textAlign)||(n=(d?{low:"left",middle:"center",
-high:"right"}:{low:a?"right":"left",middle:"center",high:a?"left":"right"})[e.align]),this.axisTitle=f.text(e.text||"",0,0,e.useHTML).attr({zIndex:7,rotation:e.rotation,align:n}).addClass("highcharts-axis-title"),h||this.axisTitle.css(b(e.style)),this.axisTitle.add(this.axisGroup),this.axisTitle.isNew=!0);h||e.style.width||this.isRadial||this.axisTitle.css({width:this.len+"px"});this.axisTitle[c?"show":"hide"](c)};a.prototype.generateTick=function(b){var c=this.ticks;c[b]?c[b].addLabel():c[b]=new H(this,
-b)};a.prototype.getOffset=function(){var b=this,f=this,d=f.chart,a=f.horiz,e=f.options,h=f.side,n=f.ticks,u=f.tickPositions,g=f.coll,k=f.axisParent,w=d.renderer,m=d.inverted&&!f.isZAxis?[1,0,3,2][h]:h,l=f.hasData(),p=e.title,N=e.labels,J=d.axisOffset;d=d.clipOffset;var y=[-1,1,1,-1][h],O=e.className,r,Q=0,ja=0,da=0;f.showAxis=r=l||e.showEmpty;f.staggerLines=f.horiz&&N.staggerLines||void 0;if(!f.axisGroup){var I=function(c,f,d){return w.g(c).attr({zIndex:d}).addClass("highcharts-".concat(g.toLowerCase()).concat(f,
-" ")+(b.isRadial?"highcharts-radial-axis".concat(f," "):"")+(O||"")).add(k)};f.gridGroup=I("grid","-grid",e.gridZIndex);f.axisGroup=I("axis","",e.zIndex);f.labelGroup=I("axis-labels","-labels",N.zIndex)}l||f.isLinked?(u.forEach(function(b){f.generateTick(b)}),f.renderUnsquish(),f.reserveSpaceDefault=0===h||2===h||{1:"left",3:"right"}[h]===f.labelAlign,q(N.reserveSpace,"center"===f.labelAlign?!0:null,f.reserveSpaceDefault)&&u.forEach(function(b){da=Math.max(n[b].getLabelSize(),da)}),f.staggerLines&&
-(da*=f.staggerLines),f.labelOffset=da*(f.opposite?-1:1)):z(n,function(b,c){b.destroy();delete n[c]});if(p&&p.text&&!1!==p.enabled&&(f.addTitle(r),r&&!1!==p.reserveSpace)){f.titleOffset=Q=f.axisTitle.getBBox()[a?"height":"width"];var t=p.offset;ja=D(t)?0:q(p.margin,a?5:10)}f.renderLine();f.offset=y*q(e.offset,J[h]?J[h]+(e.margin||0):0);f.tickRotCorr=f.tickRotCorr||{x:0,y:0};p=0===h?-f.labelMetrics().h:2===h?f.tickRotCorr.y:0;l=Math.abs(da)+ja;da&&(l=l-p+y*(a?q(N.y,f.tickRotCorr.y+8*y):N.x));f.axisTitleMargin=
-q(t,l);f.getMaxLabelDimensions&&(f.maxLabelDimensions=f.getMaxLabelDimensions(n,u));"colorAxis"!==g&&(a=this.tickSize("tick"),J[h]=Math.max(J[h],(f.axisTitleMargin||0)+Q+y*f.offset,l,u&&u.length&&a?a[0]+y*f.offset:0),e=!f.axisLine||e.offset?0:2*Math.floor(f.axisLine.strokeWidth()/2),d[m]=Math.max(d[m],e));c(this,"afterGetOffset")};a.prototype.getLinePath=function(b){var c=this.chart,f=this.opposite,d=this.offset,a=this.horiz,e=this.left+(f?this.width:0)+d;d=c.chartHeight-this.bottom-(f?this.height:
-0)+d;f&&(b*=-1);return c.renderer.crispLine([["M",a?this.left:e,a?d:this.top],["L",a?c.chartWidth-this.right:e,a?d:c.chartHeight-this.bottom]],b)};a.prototype.renderLine=function(){this.axisLine||(this.axisLine=this.chart.renderer.path().addClass("highcharts-axis-line").add(this.axisGroup),this.chart.styledMode||this.axisLine.attr({stroke:this.options.lineColor,"stroke-width":this.options.lineWidth,zIndex:7}))};a.prototype.getTitlePosition=function(){var b=this.horiz,f=this.left,d=this.top,a=this.len,
-e=this.options.title,h=b?f:d,n=this.opposite,u=this.offset,q=e.x,g=e.y,z=this.axisTitle,k=this.chart.renderer.fontMetrics(e.style.fontSize,z);z=z?Math.max(z.getBBox(!1,0).height-k.h-1,0):0;a={low:h+(b?0:a),middle:h+a/2,high:h+(b?a:0)}[e.align];f=(b?d+this.height:f)+(b?1:-1)*(n?-1:1)*(this.axisTitleMargin||0)+[-z,z,k.f,-z][this.side];b={x:b?a+q:f+(n?this.width:0)+u+q,y:b?f+g-(n?this.height:0)+u:a+g};c(this,"afterGetTitlePosition",{titlePosition:b});return b};a.prototype.renderMinorTick=function(b,
-c){var f=this.minorTicks;f[b]||(f[b]=new H(this,b,"minor"));c&&f[b].isNew&&f[b].render(null,!0);f[b].render(null,!1,1)};a.prototype.renderTick=function(b,c,f){var d=this.ticks;if(!this.isLinked||b>=this.min&&b<=this.max||this.grid&&this.grid.isColumn)d[b]||(d[b]=new H(this,b)),f&&d[b].isNew&&d[b].render(c,!0,-1),d[b].render(c)};a.prototype.render=function(){var b=this,d=b.chart,a=b.logarithmic,e=b.options,h=b.isLinked,n=b.tickPositions,u=b.axisTitle,q=b.ticks,g=b.minorTicks,k=b.alternateBands,w=e.stackLabels,
-m=e.alternateGridColor,l=b.tickmarkOffset,p=b.axisLine,N=b.showAxis,J=r(d.renderer.globalAnimation),y,O;b.labelEdge.length=0;b.overlap=!1;[q,g,k].forEach(function(b){z(b,function(b){b.isActive=!1})});if(b.hasData()||h){var D=b.chart.hasRendered&&b.old&&f(b.old.min);b.minorTickInterval&&!b.categories&&b.getMinorTickPositions().forEach(function(c){b.renderMinorTick(c,D)});n.length&&(n.forEach(function(c,f){b.renderTick(c,f,D)}),l&&(0===b.min||b.single)&&(q[-1]||(q[-1]=new H(b,-1,null,!0)),q[-1].render(-1)));
-m&&n.forEach(function(c,f){O="undefined"!==typeof n[f+1]?n[f+1]+l:b.max-l;0===f%2&&c<b.max&&O<=b.max+(d.polar?-l:l)&&(k[c]||(k[c]=new B.PlotLineOrBand(b)),y=c+l,k[c].options={from:a?a.lin2log(y):y,to:a?a.lin2log(O):O,color:m,className:"highcharts-alternate-grid"},k[c].render(),k[c].isActive=!0)});b._addedPlotLB||(b._addedPlotLB=!0,(e.plotLines||[]).concat(e.plotBands||[]).forEach(function(c){b.addPlotBandOrLine(c)}))}[q,g,k].forEach(function(b){var c=[],f=J.duration;z(b,function(b,f){b.isActive||
-(b.render(f,!1,0),b.isActive=!1,c.push(f))});Q(function(){for(var f=c.length;f--;)b[c[f]]&&!b[c[f]].isActive&&(b[c[f]].destroy(),delete b[c[f]])},b!==k&&d.hasRendered&&f?f:0)});p&&(p[p.isPlaced?"animate":"attr"]({d:this.getLinePath(p.strokeWidth())}),p.isPlaced=!0,p[N?"show":"hide"](N));u&&N&&(e=b.getTitlePosition(),u[u.isNew?"attr":"animate"](e),u.isNew=!1);w&&w.enabled&&b.stacking&&b.stacking.renderStackTotals();b.old={len:b.len,max:b.max,min:b.min,transA:b.transA,userMax:b.userMax,userMin:b.userMin};
-b.isDirty=!1;c(this,"afterRender")};a.prototype.redraw=function(){this.visible&&(this.render(),this.plotLinesAndBands.forEach(function(b){b.render()}));this.series.forEach(function(b){b.isDirty=!0})};a.prototype.getKeepProps=function(){return this.keepProps||a.keepProps};a.prototype.destroy=function(b){var f=this,d=f.plotLinesAndBands,a=this.eventOptions;c(this,"destroy",{keepEvents:b});b||J(f);[f.ticks,f.minorTicks,f.alternateBands].forEach(function(b){I(b)});if(d)for(b=d.length;b--;)d[b].destroy();
-"axisLine axisTitle axisGroup gridGroup labelGroup cross scrollbar".split(" ").forEach(function(b){f[b]&&(f[b]=f[b].destroy())});for(var e in f.plotLinesAndBandsGroups)f.plotLinesAndBandsGroups[e]=f.plotLinesAndBandsGroups[e].destroy();z(f,function(b,c){-1===f.getKeepProps().indexOf(c)&&delete f[c]});this.eventOptions=a};a.prototype.drawCrosshair=function(b,f){var d=this.crosshair,a=q(d&&d.snap,!0),e=this.chart,h,n=this.cross;c(this,"drawCrosshair",{e:b,point:f});b||(b=this.cross&&this.cross.e);if(d&&
-!1!==(D(f)||!a)){a?D(f)&&(h=q("colorAxis"!==this.coll?f.crosshairPos:null,this.isXAxis?f.plotX:this.len-f.plotY)):h=b&&(this.horiz?b.chartX-this.pos:this.len-b.chartY+this.pos);if(D(h)){var u={value:f&&(this.isXAxis?f.x:q(f.stackY,f.y)),translatedValue:h};e.polar&&y(u,{isCrosshair:!0,chartX:b&&b.chartX,chartY:b&&b.chartY,point:f});u=this.getPlotLinePath(u)||null}if(!D(u)){this.hideCrosshair();return}a=this.categories&&!this.isRadial;n||(this.cross=n=e.renderer.path().addClass("highcharts-crosshair highcharts-crosshair-"+
-(a?"category ":"thin ")+(d.className||"")).attr({zIndex:q(d.zIndex,2)}).add(),e.styledMode||(n.attr({stroke:d.color||(a?x.parse("#ccd6eb").setOpacity(.25).get():"#cccccc"),"stroke-width":q(d.width,1)}).css({"pointer-events":"none"}),d.dashStyle&&n.attr({dashstyle:d.dashStyle})));n.show().attr({d:u});a&&!d.width&&n.attr({"stroke-width":this.transA});this.cross.e=b}else this.hideCrosshair();c(this,"afterDrawCrosshair",{e:b,point:f})};a.prototype.hideCrosshair=function(){this.cross&&this.cross.hide();
-c(this,"afterHideCrosshair")};a.prototype.hasVerticalPanning=function(){var b=this.chart.options.chart.panning;return!!(b&&b.enabled&&/y/.test(b.type))};a.prototype.validatePositiveValue=function(b){return f(b)&&0<b};a.prototype.update=function(c,f){var d=this.chart;c=b(this.userOptions,c);this.destroy(!0);this.init(d,c);d.isDirtyBox=!0;q(f,!0)&&d.redraw()};a.prototype.remove=function(b){for(var c=this.chart,f=this.coll,d=this.series,a=d.length;a--;)d[a]&&d[a].remove(!1);E(c.axes,this);E(c[f],this);
-c[f].forEach(function(b,c){b.options.index=b.userOptions.index=c});this.destroy();c.isDirtyBox=!0;q(b,!0)&&c.redraw()};a.prototype.setTitle=function(b,c){this.update({title:b},c)};a.prototype.setCategories=function(b,c){this.update({categories:b},c)};a.defaultOptions=g.defaultXAxisOptions;a.keepProps="extKey hcEvents names series userMax userMin".split(" ");return a}();"";return a});K(g,"Core/Axis/DateTimeAxis.js",[g["Core/Utilities.js"]],function(a){var g=a.addEvent,x=a.getMagnitude,F=a.normalizeTickInterval,
-C=a.timeUnits,B;(function(a){function t(){return this.chart.time.getTimeTicks.apply(this.chart.time,arguments)}function r(d){"datetime"!==d.userOptions.type?this.dateTime=void 0:this.dateTime||(this.dateTime=new e(this))}var l=[];a.compose=function(d){-1===l.indexOf(d)&&(l.push(d),d.keepProps.push("dateTime"),d.prototype.getTimeTicks=t,g(d,"init",r));return d};var e=function(){function d(d){this.axis=d}d.prototype.normalizeTimeTickInterval=function(d,a){var e=a||[["millisecond",[1,2,5,10,20,25,50,
-100,200,500]],["second",[1,2,5,10,15,30]],["minute",[1,2,5,10,15,30]],["hour",[1,2,3,4,6,8,12]],["day",[1,2]],["week",[1,2]],["month",[1,2,3,4,6]],["year",null]];a=e[e.length-1];var h=C[a[0]],g=a[1],m;for(m=0;m<e.length&&!(a=e[m],h=C[a[0]],g=a[1],e[m+1]&&d<=(h*g[g.length-1]+C[e[m+1][0]])/2);m++);h===C.year&&d<5*h&&(g=[1,2,5]);d=F(d/h,g,"year"===a[0]?Math.max(x(d/h),1):1);return{unitRange:h,count:d,unitName:a[0]}};d.prototype.getXDateFormat=function(d,a){var e=this.axis,h=e.chart.time;return e.closestPointRange?
-h.getDateFormat(e.closestPointRange,d,e.options.startOfWeek,a)||h.resolveDTLFormat(a.year).main:h.resolveDTLFormat(a.day).main};return d}();a.Additions=e})(B||(B={}));return B});K(g,"Core/Axis/LogarithmicAxis.js",[g["Core/Utilities.js"]],function(a){var g=a.addEvent,x=a.normalizeTickInterval,F=a.pick,C;(function(a){function A(a){var d=this.logarithmic;"logarithmic"!==a.userOptions.type?this.logarithmic=void 0:d||(this.logarithmic=new l(this))}function t(){var a=this.logarithmic;a&&(this.lin2val=function(d){return a.lin2log(d)},
-this.val2lin=function(d){return a.log2lin(d)})}var r=[];a.compose=function(a){-1===r.indexOf(a)&&(r.push(a),a.keepProps.push("logarithmic"),g(a,"init",A),g(a,"afterInit",t));return a};var l=function(){function a(d){this.axis=d}a.prototype.getLogTickPositions=function(d,a,e,g){var h=this.axis,k=h.len,m=h.options,l=[];g||(this.minorAutoInterval=void 0);if(.5<=d)d=Math.round(d),l=h.getLinearTickPositions(d,a,e);else if(.08<=d){var r=Math.floor(a),y,c=m=void 0;for(k=.3<d?[1,2,4]:.15<d?[1,2,4,6,8]:[1,
-2,3,4,5,6,7,8,9];r<e+1&&!c;r++){var w=k.length;for(y=0;y<w&&!c;y++){var f=this.log2lin(this.lin2log(r)*k[y]);f>a&&(!g||m<=e)&&"undefined"!==typeof m&&l.push(m);m>e&&(c=!0);m=f}}}else a=this.lin2log(a),e=this.lin2log(e),d=g?h.getMinorTickInterval():m.tickInterval,d=F("auto"===d?null:d,this.minorAutoInterval,m.tickPixelInterval/(g?5:1)*(e-a)/((g?k/h.tickPositions.length:k)||1)),d=x(d),l=h.getLinearTickPositions(d,a,e).map(this.log2lin),g||(this.minorAutoInterval=d/5);g||(h.tickInterval=d);return l};
-a.prototype.lin2log=function(d){return Math.pow(10,d)};a.prototype.log2lin=function(d){return Math.log(d)/Math.LN10};return a}();a.Additions=l})(C||(C={}));return C});K(g,"Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js",[g["Core/Utilities.js"]],function(a){var g=a.erase,x=a.extend,F=a.isNumber,C;(function(a){var A=[],t;a.compose=function(a,e){t||(t=a);-1===A.indexOf(e)&&(A.push(e),x(e.prototype,r.prototype));return e};var r=function(){function a(){}a.prototype.getPlotBandPath=function(a,d,h){void 0===
-h&&(h=this.options);var e=this.getPlotLinePath({value:d,force:!0,acrossPanes:h.acrossPanes}),g=[],l=this.horiz;d=!F(this.min)||!F(this.max)||a<this.min&&d<this.min||a>this.max&&d>this.max;a=this.getPlotLinePath({value:a,force:!0,acrossPanes:h.acrossPanes});h=1;if(a&&e){if(d){var r=a.toString()===e.toString();h=0}for(d=0;d<a.length;d+=2){var t=a[d],E=a[d+1],A=e[d],y=e[d+1];"M"!==t[0]&&"L"!==t[0]||"M"!==E[0]&&"L"!==E[0]||"M"!==A[0]&&"L"!==A[0]||"M"!==y[0]&&"L"!==y[0]||(l&&A[1]===t[1]?(A[1]+=h,y[1]+=
-h):l||A[2]!==t[2]||(A[2]+=h,y[2]+=h),g.push(["M",t[1],t[2]],["L",E[1],E[2]],["L",y[1],y[2]],["L",A[1],A[2]],["Z"]));g.isFlat=r}}return g};a.prototype.addPlotBand=function(a){return this.addPlotBandOrLine(a,"plotBands")};a.prototype.addPlotLine=function(a){return this.addPlotBandOrLine(a,"plotLines")};a.prototype.addPlotBandOrLine=function(a,d){var e=this,g=this.userOptions,k=new t(this,a);this.visible&&(k=k.render());if(k){this._addedPlotLB||(this._addedPlotLB=!0,(g.plotLines||[]).concat(g.plotBands||
-[]).forEach(function(a){e.addPlotBandOrLine(a)}));if(d){var l=g[d]||[];l.push(a);g[d]=l}this.plotLinesAndBands.push(k)}return k};a.prototype.removePlotBandOrLine=function(a){var d=this.plotLinesAndBands,e=this.options,m=this.userOptions;if(d){for(var k=d.length;k--;)d[k].id===a&&d[k].destroy();[e.plotLines||[],m.plotLines||[],e.plotBands||[],m.plotBands||[]].forEach(function(d){for(k=d.length;k--;)(d[k]||{}).id===a&&g(d,d[k])})}};a.prototype.removePlotBand=function(a){this.removePlotBandOrLine(a)};
-a.prototype.removePlotLine=function(a){this.removePlotBandOrLine(a)};return a}()})(C||(C={}));return C});K(g,"Core/Axis/PlotLineOrBand/PlotLineOrBand.js",[g["Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js"],g["Core/Utilities.js"]],function(a,g){var A=g.arrayMax,F=g.arrayMin,C=g.defined,B=g.destroyObjectProperties,H=g.erase,t=g.fireEvent,r=g.merge,l=g.objectEach,e=g.pick;g=function(){function d(a,d){this.axis=a;d&&(this.options=d,this.id=d.id)}d.compose=function(e){return a.compose(d,e)};d.prototype.render=
-function(){t(this,"render");var a=this,d=a.axis,g=d.horiz,p=d.logarithmic,D=a.options,I=D.color,E=e(D.zIndex,0),A=D.events,y={},c=d.chart.renderer,w=D.label,f=a.label,n=D.to,b=D.from,u=D.value,z=a.svgElem,q=[],N=C(b)&&C(n);q=C(u);var J=!z,O={"class":"highcharts-plot-"+(N?"band ":"line ")+(D.className||"")},Q=N?"bands":"lines";p&&(b=p.log2lin(b),n=p.log2lin(n),u=p.log2lin(u));d.chart.styledMode||(q?(O.stroke=I||"#999999",O["stroke-width"]=e(D.width,1),D.dashStyle&&(O.dashstyle=D.dashStyle)):N&&(O.fill=
-I||"#e6ebf5",D.borderWidth&&(O.stroke=D.borderColor,O["stroke-width"]=D.borderWidth)));y.zIndex=E;Q+="-"+E;(p=d.plotLinesAndBandsGroups[Q])||(d.plotLinesAndBandsGroups[Q]=p=c.g("plot-"+Q).attr(y).add());J&&(a.svgElem=z=c.path().attr(O).add(p));if(q)q=d.getPlotLinePath({value:u,lineWidth:z.strokeWidth(),acrossPanes:D.acrossPanes});else if(N)q=d.getPlotBandPath(b,n,D);else return;!a.eventsAdded&&A&&(l(A,function(b,c){z.on(c,function(b){A[c].apply(a,[b])})}),a.eventsAdded=!0);(J||!z.d)&&q&&q.length?
-z.attr({d:q}):z&&(q?(z.show(),z.animate({d:q})):z.d&&(z.hide(),f&&(a.label=f=f.destroy())));w&&(C(w.text)||C(w.formatter))&&q&&q.length&&0<d.width&&0<d.height&&!q.isFlat?(w=r({align:g&&N&&"center",x:g?!N&&4:10,verticalAlign:!g&&N&&"middle",y:g?N?16:10:N?6:-4,rotation:g&&!N&&90},w),this.renderLabel(w,q,N,E)):f&&f.hide();return a};d.prototype.renderLabel=function(a,d,e,g){var h=this.axis,k=h.chart.renderer,m=this.label;m||(this.label=m=k.text(this.getLabelText(a),0,0,a.useHTML).attr({align:a.textAlign||
-a.align,rotation:a.rotation,"class":"highcharts-plot-"+(e?"band":"line")+"-label "+(a.className||""),zIndex:g}).add(),h.chart.styledMode||m.css(r({textOverflow:"ellipsis"},a.style)));g=d.xBounds||[d[0][1],d[1][1],e?d[2][1]:d[0][1]];d=d.yBounds||[d[0][2],d[1][2],e?d[2][2]:d[0][2]];e=F(g);k=F(d);m.align(a,!1,{x:e,y:k,width:A(g)-e,height:A(d)-k});m.alignValue&&"left"!==m.alignValue||(a=a.clip?h.width:h.chart.chartWidth,m.css({width:(90===m.rotation?h.height-(m.alignAttr.y-h.top):a-(m.alignAttr.x-h.left))+
-"px"}));m.show(!0)};d.prototype.getLabelText=function(a){return C(a.formatter)?a.formatter.call(this):a.text};d.prototype.destroy=function(){H(this.axis.plotLinesAndBands,this);delete this.axis;B(this)};return d}();"";"";return g});K(g,"Core/Tooltip.js",[g["Core/FormatUtilities.js"],g["Core/Globals.js"],g["Core/Renderer/RendererUtilities.js"],g["Core/Renderer/RendererRegistry.js"],g["Core/Utilities.js"]],function(a,g,x,F,C){var A=a.format,H=g.doc,t=x.distribute,r=C.clamp,l=C.css,e=C.discardElement,
-d=C.extend,h=C.fireEvent,m=C.isArray,k=C.isNumber,p=C.isString,D=C.merge,I=C.pick,E=C.splat,L=C.syncTimeout;a=function(){function a(c,a){this.allowShared=!0;this.container=void 0;this.crosshairs=[];this.distance=0;this.isHidden=!0;this.isSticky=!1;this.now={};this.options={};this.outside=!1;this.chart=c;this.init(c,a)}a.prototype.applyFilter=function(){var c=this.chart;c.renderer.definition({tagName:"filter",attributes:{id:"drop-shadow-"+c.index,opacity:.5},children:[{tagName:"feGaussianBlur",attributes:{"in":"SourceAlpha",
-stdDeviation:1}},{tagName:"feOffset",attributes:{dx:1,dy:1}},{tagName:"feComponentTransfer",children:[{tagName:"feFuncA",attributes:{type:"linear",slope:.3}}]},{tagName:"feMerge",children:[{tagName:"feMergeNode"},{tagName:"feMergeNode",attributes:{"in":"SourceGraphic"}}]}]})};a.prototype.bodyFormatter=function(c){return c.map(function(c){var f=c.series.tooltipOptions;return(f[(c.point.formatPrefix||"point")+"Formatter"]||c.point.tooltipFormatter).call(c.point,f[(c.point.formatPrefix||"point")+"Format"]||
-"")})};a.prototype.cleanSplit=function(c){this.chart.series.forEach(function(a){var f=a&&a.tt;f&&(!f.isActive||c?a.tt=f.destroy():f.isActive=!1)})};a.prototype.defaultFormatter=function(c){var a=this.points||E(this);var f=[c.tooltipFooterHeaderFormatter(a[0])];f=f.concat(c.bodyFormatter(a));f.push(c.tooltipFooterHeaderFormatter(a[0],!0));return f};a.prototype.destroy=function(){this.label&&(this.label=this.label.destroy());this.split&&this.tt&&(this.cleanSplit(!0),this.tt=this.tt.destroy());this.renderer&&
-(this.renderer=this.renderer.destroy(),e(this.container));C.clearTimeout(this.hideTimer);C.clearTimeout(this.tooltipTimeout)};a.prototype.getAnchor=function(c,a){var f=this.chart,d=f.pointer,b=f.inverted,e=f.plotTop;f=f.plotLeft;c=E(c);c[0].series&&c[0].series.yAxis&&!c[0].series.yAxis.options.reversedStacks&&(c=c.slice().reverse());if(this.followPointer&&a)"undefined"===typeof a.chartX&&(a=d.normalize(a)),c=[a.chartX-f,a.chartY-e];else if(c[0].tooltipPos)c=c[0].tooltipPos;else{var h=0,g=0;c.forEach(function(b){if(b=
-b.pos(!0))h+=b[0],g+=b[1]});h/=c.length;g/=c.length;this.shared&&1<c.length&&a&&(b?h=a.chartX:g=a.chartY);c=[h-f,g-e]}return c.map(Math.round)};a.prototype.getClassName=function(c,a,f){var d=c.series,b=d.options;return[this.options.className,"highcharts-label",f&&"highcharts-tooltip-header",a?"highcharts-tooltip-box":"highcharts-tooltip",!f&&"highcharts-color-"+I(c.colorIndex,d.colorIndex),b&&b.className].filter(p).join(" ")};a.prototype.getLabel=function(){var c=this,a=this.chart.styledMode,f=this.options,
-d=this.split&&this.allowShared,b=f.style.pointerEvents||(this.shouldStickOnContact()?"auto":"none"),e,h=this.chart.renderer;if(c.label){var q=!c.label.hasClass("highcharts-label");(d&&!q||!d&&q)&&c.destroy()}if(!this.label){if(this.outside){q=this.chart.options.chart.style;var k=F.getRendererType();this.container=e=g.doc.createElement("div");e.className="highcharts-tooltip-container";l(e,{position:"absolute",top:"1px",pointerEvents:b,zIndex:Math.max(this.options.style.zIndex||0,(q&&q.zIndex||0)+3)});
-g.doc.body.appendChild(e);this.renderer=h=new k(e,0,0,q,void 0,void 0,h.styledMode)}d?this.label=h.g("tooltip"):(this.label=h.label("",0,0,f.shape,void 0,void 0,f.useHTML,void 0,"tooltip").attr({padding:f.padding,r:f.borderRadius}),a||this.label.attr({fill:f.backgroundColor,"stroke-width":f.borderWidth}).css(f.style).css({pointerEvents:b}).shadow(f.shadow));a&&f.shadow&&(this.applyFilter(),this.label.attr({filter:"url(#drop-shadow-"+this.chart.index+")"}));if(c.outside&&!c.split){var m=this.label,
-p=m.xSetter,y=m.ySetter;m.xSetter=function(b){p.call(m,c.distance);e.style.left=b+"px"};m.ySetter=function(b){y.call(m,c.distance);e.style.top=b+"px"}}this.label.attr({zIndex:8}).add()}return this.label};a.prototype.getPosition=function(c,a,f){var d=this.chart,b=this.distance,e={},h=d.inverted&&f.h||0,g=this.outside,k=g?H.documentElement.clientWidth-2*b:d.chartWidth,w=g?Math.max(H.body.scrollHeight,H.documentElement.scrollHeight,H.body.offsetHeight,H.documentElement.offsetHeight,H.documentElement.clientHeight):
-d.chartHeight,m=d.pointer.getChartPosition(),l=function(e){var h="x"===e;return[e,h?k:w,h?c:a].concat(g?[h?c*m.scaleX:a*m.scaleY,h?m.left-b+(f.plotX+d.plotLeft)*m.scaleX:m.top-b+(f.plotY+d.plotTop)*m.scaleY,0,h?k:w]:[h?c:a,h?f.plotX+d.plotLeft:f.plotY+d.plotTop,h?d.plotLeft:d.plotTop,h?d.plotLeft+d.plotWidth:d.plotTop+d.plotHeight])},p=l("y"),y=l("x"),v;l=!!f.negative;!d.polar&&d.hoverSeries&&d.hoverSeries.yAxis&&d.hoverSeries.yAxis.reversed&&(l=!l);var r=!this.followPointer&&I(f.ttBelow,!d.inverted===
-l),t=function(c,f,a,d,n,u,q){var z=g?"y"===c?b*m.scaleY:b*m.scaleX:b,k=(a-d)/2,w=d<n-b,G=n+b+d<f,l=n-z-a+k;n=n+z-k;if(r&&G)e[c]=n;else if(!r&&w)e[c]=l;else if(w)e[c]=Math.min(q-d,0>l-h?l:l-h);else if(G)e[c]=Math.max(u,n+h+a>f?n:n+h);else return!1},D=function(c,f,a,d,h){var n;h<b||h>f-b?n=!1:e[c]=h<a/2?1:h>f-d/2?f-d-2:h-a/2;return n},E=function(b){var c=p;p=y;y=c;v=b},G=function(){!1!==t.apply(0,p)?!1!==D.apply(0,y)||v||(E(!0),G()):v?e.x=e.y=0:(E(!0),G())};(d.inverted||1<this.len)&&E();G();return e};
-a.prototype.hide=function(c){var a=this;C.clearTimeout(this.hideTimer);c=I(c,this.options.hideDelay);this.isHidden||(this.hideTimer=L(function(){a.getLabel().fadeOut(c?void 0:c);a.isHidden=!0},c))};a.prototype.init=function(c,a){this.chart=c;this.options=a;this.crosshairs=[];this.now={x:0,y:0};this.isHidden=!0;this.split=a.split&&!c.inverted&&!c.polar;this.shared=a.shared||this.split;this.outside=I(a.outside,!(!c.scrollablePixelsX&&!c.scrollablePixelsY))};a.prototype.shouldStickOnContact=function(c){return!(this.followPointer||
-!this.options.stickOnContact||c&&!this.chart.pointer.inClass(c.target,"highcharts-tooltip"))};a.prototype.move=function(c,a,f,e){var b=this,h=b.now,n=!1!==b.options.animation&&!b.isHidden&&(1<Math.abs(c-h.x)||1<Math.abs(a-h.y)),g=b.followPointer||1<b.len;d(h,{x:n?(2*h.x+c)/3:c,y:n?(h.y+a)/2:a,anchorX:g?void 0:n?(2*h.anchorX+f)/3:f,anchorY:g?void 0:n?(h.anchorY+e)/2:e});b.getLabel().attr(h);b.drawTracker();n&&(C.clearTimeout(this.tooltipTimeout),this.tooltipTimeout=setTimeout(function(){b&&b.move(c,
-a,f,e)},32))};a.prototype.refresh=function(c,a){var f=this.chart,d=this.options,b=f.pointer,e=E(c),g=e[0],q=[],k=d.formatter||this.defaultFormatter,w=this.shared,l=f.styledMode,p={};if(d.enabled&&g.series){C.clearTimeout(this.hideTimer);this.allowShared=!(!m(c)&&c.series&&c.series.noSharedTooltip);this.followPointer=!this.split&&g.series.tooltipOptions.followPointer;c=this.getAnchor(c,a);var y=c[0],r=c[1];w&&this.allowShared?(b.applyInactiveState(e),e.forEach(function(b){b.setState("hover");q.push(b.getLabelConfig())}),
-p={x:g.category,y:g.y},p.points=q):p=g.getLabelConfig();this.len=q.length;k=k.call(p,this);w=g.series;this.distance=I(w.tooltipOptions.distance,16);if(!1===k)this.hide();else{if(this.split&&this.allowShared)this.renderSplit(k,e);else{var v=y,t=r;a&&b.isDirectTouch&&(v=a.chartX-f.plotLeft,t=a.chartY-f.plotTop);if(f.polar||!1===w.options.clip||e.some(function(c){return b.isDirectTouch||c.series.shouldShowTooltip(v,t)}))a=this.getLabel(),d.style.width&&!l||a.css({width:f.spacingBox.width+"px"}),a.attr({text:k&&
-k.join?k.join(""):k}),a.addClass(this.getClassName(g),!0),l||a.attr({stroke:d.borderColor||g.color||w.color||"#666666"}),this.updatePosition({plotX:y,plotY:r,negative:g.negative,ttBelow:g.ttBelow,h:c[2]||0});else{this.hide();return}}this.isHidden&&this.label&&this.label.attr({opacity:1}).show();this.isHidden=!1}h(this,"refresh")}};a.prototype.renderSplit=function(c,a){function f(b,c,a,f,d){void 0===d&&(d=!0);a?(c=R?0:ba,b=r(b-f/2,P.left,P.right-f-(e.outside?V:0))):(c-=Z,b=d?b-f-x:b+x,b=r(b,d?b:P.left,
-P.right));return{x:b,y:c}}var e=this,b=e.chart,h=e.chart,g=h.chartWidth,q=h.chartHeight,k=h.plotHeight,w=h.plotLeft,m=h.plotTop,l=h.pointer,y=h.scrollablePixelsY;y=void 0===y?0:y;var D=h.scrollablePixelsX,v=h.scrollingContainer;v=void 0===v?{scrollLeft:0,scrollTop:0}:v;var E=v.scrollLeft;v=v.scrollTop;var A=h.styledMode,x=e.distance,L=e.options,G=e.options.positioner,P=e.outside&&"number"!==typeof D?H.documentElement.getBoundingClientRect():{left:E,right:E+g,top:v,bottom:v+q},M=e.getLabel(),X=this.renderer||
-b.renderer,R=!(!b.xAxis[0]||!b.xAxis[0].opposite);b=l.getChartPosition();var V=b.left;b=b.top;var Z=m+v,C=0,ba=k-y;p(c)&&(c=[!1,c]);c=c.slice(0,a.length+1).reduce(function(b,c,d){if(!1!==c&&""!==c){d=a[d-1]||{isHeader:!0,plotX:a[0].plotX,plotY:k,series:{}};var h=d.isHeader,n=h?e:d.series;c=c.toString();var g=n.tt,u=d.isHeader;var q=d.series;g||(g={padding:L.padding,r:L.borderRadius},A||(g.fill=L.backgroundColor,g["stroke-width"]=L.borderWidth),g=X.label("",0,0,L[u?"headerShape":"shape"],void 0,void 0,
-L.useHTML).addClass(e.getClassName(d,!0,u)).attr(g).add(M));g.isActive=!0;g.attr({text:c});A||g.css(L.style).shadow(L.shadow).attr({stroke:L.borderColor||d.color||q.color||"#333333"});n=n.tt=g;u=n.getBBox();c=u.width+n.strokeWidth();h&&(C=u.height,ba+=C,R&&(Z-=C));q=d.plotX;q=void 0===q?0:q;g=d.plotY;g=void 0===g?0:g;var z=d.series;if(d.isHeader){q=w+q;var l=m+k/2}else{var v=z.xAxis,p=z.yAxis;q=v.pos+r(q,-x,v.len+x);z.shouldShowTooltip(0,p.pos-m+g,{ignoreX:!0})&&(l=p.pos+g)}q=r(q,P.left-x,P.right+
-x);"number"===typeof l?(u=u.height+1,g=G?G.call(e,c,u,d):f(q,l,h,c),b.push({align:G?0:void 0,anchorX:q,anchorY:l,boxWidth:c,point:d,rank:I(g.rank,h?1:0),size:u,target:g.y,tt:n,x:g.x})):n.isActive=!1}return b},[]);!G&&c.some(function(b){var c=(e.outside?V:0)+b.anchorX;return c<P.left&&c+b.boxWidth<P.right?!0:c<V-P.left+b.boxWidth&&P.right-c>c})&&(c=c.map(function(b){var c=f(b.anchorX,b.anchorY,b.point.isHeader,b.boxWidth,!1);return d(b,{target:c.y,x:c.x})}));e.cleanSplit();t(c,ba);var B=V,F=V;c.forEach(function(b){var c=
-b.x,a=b.boxWidth;b=b.isHeader;b||(e.outside&&V+c<B&&(B=V+c),!b&&e.outside&&B+a>F&&(F=V+c))});c.forEach(function(b){var c=b.x,a=b.anchorX,f=b.pos,d=b.point.isHeader;f={visibility:"undefined"===typeof f?"hidden":"inherit",x:c,y:(f||0)+Z,anchorX:a,anchorY:b.anchorY};if(e.outside&&c<a){var h=V-B;0<h&&(d||(f.x=c+h,f.anchorX=a+h),d&&(f.x=(F-B)/2,f.anchorX=a+h))}b.tt.attr(f)});c=e.container;y=e.renderer;e.outside&&c&&y&&(h=M.getBBox(),y.setSize(h.width+h.x,h.height+h.y,!1),c.style.left=B+"px",c.style.top=
-b+"px")};a.prototype.drawTracker=function(){if(this.shouldStickOnContact()){var c=this.chart,a=this.label,f=this.shared?c.hoverPoints:c.hoverPoint;if(a&&f){var d={x:0,y:0,width:0,height:0};f=this.getAnchor(f);var b=a.getBBox();f[0]+=c.plotLeft-a.translateX;f[1]+=c.plotTop-a.translateY;d.x=Math.min(0,f[0]);d.y=Math.min(0,f[1]);d.width=0>f[0]?Math.max(Math.abs(f[0]),b.width-f[0]):Math.max(Math.abs(f[0]),b.width);d.height=0>f[1]?Math.max(Math.abs(f[1]),b.height-Math.abs(f[1])):Math.max(Math.abs(f[1]),
-b.height);this.tracker?this.tracker.attr(d):(this.tracker=a.renderer.rect(d).addClass("highcharts-tracker").add(a),c.styledMode||this.tracker.attr({fill:"rgba(0,0,0,0)"}))}}else this.tracker&&this.tracker.destroy()};a.prototype.styledModeFormat=function(c){return c.replace('style="font-size: 10px"','class="highcharts-header"').replace(/style="color:{(point|series)\.color}"/g,'class="highcharts-color-{$1.colorIndex} {series.options.className} {point.options.className}"')};a.prototype.tooltipFooterHeaderFormatter=
-function(c,a){var f=c.series,d=f.tooltipOptions,b=f.xAxis,e=b&&b.dateTime;b={isFooter:a,labelConfig:c};var g=d.xDateFormat,q=d[a?"footerFormat":"headerFormat"];h(this,"headerFormatter",b,function(b){e&&!g&&k(c.key)&&(g=e.getXDateFormat(c.key,d.dateTimeLabelFormats));e&&g&&(c.point&&c.point.tooltipDateKeys||["key"]).forEach(function(b){q=q.replace("{point."+b+"}","{point."+b+":"+g+"}")});f.chart.styledMode&&(q=this.styledModeFormat(q));b.text=A(q,{point:c,series:f},this.chart)});return b.text};a.prototype.update=
-function(c){this.destroy();D(!0,this.chart.options.tooltip.userOptions,c);this.init(this.chart,D(!0,this.options,c))};a.prototype.updatePosition=function(c){var a=this.chart,f=this.distance,d=this.options,b=a.pointer,e=this.getLabel(),h=b.getChartPosition();b=h.left;var g=h.top,k=h.scaleX;h=h.scaleY;var m=(d.positioner||this.getPosition).call(this,e.width,e.height,c),p=(c.plotX||0)+a.plotLeft;c=(c.plotY||0)+a.plotTop;if(this.outside){d.positioner&&(m.x+=b-f,m.y+=g-f);f=d.borderWidth+2*f;this.renderer.setSize(e.width+
-f,e.height+f,!1);if(1!==k||1!==h)l(this.container,{transform:"scale(".concat(k,", ").concat(h,")")}),p*=k,c*=h;p+=b-m.x;c+=g-m.y}this.move(Math.round(m.x),Math.round(m.y||0),p,c)};return a}();"";return a});K(g,"Core/Series/Point.js",[g["Core/Renderer/HTML/AST.js"],g["Core/Animation/AnimationUtilities.js"],g["Core/Defaults.js"],g["Core/FormatUtilities.js"],g["Core/Utilities.js"]],function(a,g,x,F,C){var A=g.animObject,H=x.defaultOptions,t=F.format,r=C.addEvent,l=C.defined,e=C.erase,d=C.extend,h=C.fireEvent,
-m=C.getNestedProperty,k=C.isArray,p=C.isFunction,D=C.isNumber,I=C.isObject,E=C.merge,L=C.objectEach,y=C.pick,c=C.syncTimeout,w=C.removeEvent,f=C.uniqueKey;g=function(){function g(){this.category=void 0;this.formatPrefix="point";this.id=void 0;this.isNull=!1;this.percentage=this.options=this.name=void 0;this.selected=!1;this.total=this.shapeArgs=this.series=void 0;this.visible=!0;this.x=void 0}g.prototype.animateBeforeDestroy=function(){var b=this,c={x:b.startXPos,opacity:0},a=b.getGraphicalProps();
-a.singular.forEach(function(a){b[a]=b[a].animate("dataLabel"===a?{x:b[a].startXPos,y:b[a].startYPos,opacity:0}:c)});a.plural.forEach(function(c){b[c].forEach(function(c){c.element&&c.animate(d({x:b.startXPos},c.startYPos?{x:c.startXPos,y:c.startYPos}:{}))})})};g.prototype.applyOptions=function(b,c){var a=this.series,f=a.options.pointValKey||a.pointValKey;b=g.prototype.optionsToObject.call(this,b);d(this,b);this.options=this.options?d(this.options,b):b;b.group&&delete this.group;b.dataLabels&&delete this.dataLabels;
-f&&(this.y=g.prototype.getNestedProperty.call(this,f));this.formatPrefix=(this.isNull=this.isValid&&!this.isValid())?"null":"point";this.selected&&(this.state="select");"name"in this&&"undefined"===typeof c&&a.xAxis&&a.xAxis.hasNames&&(this.x=a.xAxis.nameToX(this));"undefined"===typeof this.x&&a?this.x="undefined"===typeof c?a.autoIncrement():c:D(b.x)&&a.options.relativeXValue&&(this.x=a.autoIncrement(b.x));return this};g.prototype.destroy=function(){function b(){if(a.graphic||a.graphics||a.dataLabel||
-a.dataLabels)w(a),a.destroyElements();for(n in a)a[n]=null}var a=this,f=a.series,d=f.chart;f=f.options.dataSorting;var h=d.hoverPoints,g=A(a.series.chart.renderer.globalAnimation),n;a.legendItem&&d.legend.destroyItem(a);h&&(a.setState(),e(h,a),h.length||(d.hoverPoints=null));if(a===d.hoverPoint)a.onMouseOut();f&&f.enabled?(this.animateBeforeDestroy(),c(b,g.duration)):b();d.pointCount--};g.prototype.destroyElements=function(b){var c=this;b=c.getGraphicalProps(b);b.singular.forEach(function(b){c[b]=
-c[b].destroy()});b.plural.forEach(function(b){c[b].forEach(function(b){b&&b.element&&b.destroy()});delete c[b]})};g.prototype.firePointEvent=function(b,c,a){var f=this,d=this.series.options;(d.point.events[b]||f.options&&f.options.events&&f.options.events[b])&&f.importEvents();"click"===b&&d.allowPointSelect&&(a=function(b){f.select&&f.select(null,b.ctrlKey||b.metaKey||b.shiftKey)});h(f,b,c,a)};g.prototype.getClassName=function(){return"highcharts-point"+(this.selected?" highcharts-point-select":
-"")+(this.negative?" highcharts-negative":"")+(this.isNull?" highcharts-null-point":"")+("undefined"!==typeof this.colorIndex?" highcharts-color-"+this.colorIndex:"")+(this.options.className?" "+this.options.className:"")+(this.zone&&this.zone.className?" "+this.zone.className.replace("highcharts-negative",""):"")};g.prototype.getGraphicalProps=function(b){var c=this,a=[],f={singular:[],plural:[]},d;b=b||{graphic:1,dataLabel:1};b.graphic&&a.push("graphic","shadowGroup");b.dataLabel&&a.push("dataLabel",
-"dataLabelPath","dataLabelUpper","connector");for(d=a.length;d--;){var e=a[d];c[e]&&f.singular.push(e)}["graphic","dataLabel","connector"].forEach(function(a){var d=a+"s";b[a]&&c[d]&&f.plural.push(d)});return f};g.prototype.getLabelConfig=function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}};g.prototype.getNestedProperty=function(b){if(b)return 0===
-b.indexOf("custom.")?m(b,this.options):this[b]};g.prototype.getZone=function(){var b=this.series,c=b.zones;b=b.zoneAxis||"y";var a,f=0;for(a=c[f];this[b]>=a.value;)a=c[++f];this.nonZonedColor||(this.nonZonedColor=this.color);this.color=a&&a.color&&!this.options.color?a.color:this.nonZonedColor;return a};g.prototype.hasNewShapeType=function(){return(this.graphic&&(this.graphic.symbolName||this.graphic.element.nodeName))!==this.shapeType};g.prototype.init=function(b,c,a){this.series=b;this.applyOptions(c,
-a);this.id=l(this.id)?this.id:f();this.resolveColor();b.chart.pointCount++;h(this,"afterInit");return this};g.prototype.isValid=function(){return null!==this.x&&D(this.y)};g.prototype.optionsToObject=function(b){var c=this.series,a=c.options.keys,f=a||c.pointArrayMap||["y"],d=f.length,e={},h=0,n=0;if(D(b)||null===b)e[f[0]]=b;else if(k(b))for(!a&&b.length>d&&(c=typeof b[0],"string"===c?e.name=b[0]:"number"===c&&(e.x=b[0]),h++);n<d;)a&&"undefined"===typeof b[h]||(0<f[n].indexOf(".")?g.prototype.setNestedProperty(e,
-b[h],f[n]):e[f[n]]=b[h]),h++,n++;else"object"===typeof b&&(e=b,b.dataLabels&&(c._hasPointLabels=!0),b.marker&&(c._hasPointMarkers=!0));return e};g.prototype.pos=function(b,c){void 0===c&&(c=this.plotY);var a=this.plotX,f=this.series,d=f.chart,e=f.xAxis;f=f.yAxis;var h=0,g=0;if(D(a)&&D(c))return b&&(h=e?e.pos:d.plotLeft,g=f?f.pos:d.plotTop),d.inverted&&e&&f?[f.len-c+g,e.len-a+h]:[a+h,c+g]};g.prototype.resolveColor=function(){var b=this.series,c=b.chart.styledMode;var a=b.chart.options.chart.colorCount;
-delete this.nonZonedColor;if(b.options.colorByPoint){if(!c){a=b.options.colors||b.chart.options.colors;var f=a[b.colorCounter];a=a.length}c=b.colorCounter;b.colorCounter++;b.colorCounter===a&&(b.colorCounter=0)}else c||(f=b.color),c=b.colorIndex;this.colorIndex=y(this.options.colorIndex,c);this.color=y(this.options.color,f)};g.prototype.setNestedProperty=function(b,c,a){a.split(".").reduce(function(b,a,f,d){b[a]=d.length-1===f?c:I(b[a],!0)?b[a]:{};return b[a]},b);return b};g.prototype.shouldDraw=
-function(){return!this.isNull};g.prototype.tooltipFormatter=function(b){var c=this.series,a=c.tooltipOptions,f=y(a.valueDecimals,""),d=a.valuePrefix||"",e=a.valueSuffix||"";c.chart.styledMode&&(b=c.chart.tooltip.styledModeFormat(b));(c.pointArrayMap||["y"]).forEach(function(c){c="{point."+c;if(d||e)b=b.replace(RegExp(c+"}","g"),d+c+"}"+e);b=b.replace(RegExp(c+"}","g"),c+":,."+f+"f}")});return t(b,{point:this,series:this.series},c.chart)};g.prototype.update=function(b,c,a,f){function d(){e.applyOptions(b);
-var f=g&&e.hasMockGraphic;f=null===e.y?!f:f;g&&f&&(e.graphic=g.destroy(),delete e.hasMockGraphic);I(b,!0)&&(g&&g.element&&b&&b.marker&&"undefined"!==typeof b.marker.symbol&&(e.graphic=g.destroy()),b&&b.dataLabels&&e.dataLabel&&(e.dataLabel=e.dataLabel.destroy()),e.connector&&(e.connector=e.connector.destroy()));u=e.index;h.updateParallelArrays(e,u);q.data[u]=I(q.data[u],!0)||I(b,!0)?e.options:y(b,q.data[u]);h.isDirty=h.isDirtyData=!0;!h.fixedBox&&h.hasCartesianSeries&&(n.isDirtyBox=!0);"point"===
-q.legendType&&(n.isDirtyLegend=!0);c&&n.redraw(a)}var e=this,h=e.series,g=e.graphic,n=h.chart,q=h.options,u;c=y(c,!0);!1===f?d():e.firePointEvent("update",{options:b},d)};g.prototype.remove=function(b,c){this.series.removePoint(this.series.data.indexOf(this),b,c)};g.prototype.select=function(b,c){var a=this,f=a.series,d=f.chart;this.selectedStaging=b=y(b,!a.selected);a.firePointEvent(b?"select":"unselect",{accumulate:c},function(){a.selected=a.options.selected=b;f.options.data[f.data.indexOf(a)]=
-a.options;a.setState(b&&"select");c||d.getSelectedPoints().forEach(function(b){var c=b.series;b.selected&&b!==a&&(b.selected=b.options.selected=!1,c.options.data[c.data.indexOf(b)]=b.options,b.setState(d.hoverPoints&&c.options.inactiveOtherPoints?"inactive":""),b.firePointEvent("unselect"))})});delete this.selectedStaging};g.prototype.onMouseOver=function(b){var c=this.series.chart,a=c.pointer;b=b?a.normalize(b):a.getChartCoordinatesFromPoint(this,c.inverted);a.runPointActions(b,this)};g.prototype.onMouseOut=
-function(){var b=this.series.chart;this.firePointEvent("mouseOut");this.series.options.inactiveOtherPoints||(b.hoverPoints||[]).forEach(function(b){b.setState()});b.hoverPoints=b.hoverPoint=null};g.prototype.importEvents=function(){if(!this.hasImportedEvents){var b=this,c=E(b.series.options.point,b.options).events;b.events=c;L(c,function(c,a){p(c)&&r(b,a,c)});this.hasImportedEvents=!0}};g.prototype.setState=function(b,c){var f=this.series,e=this.state,g=f.options.states[b||"normal"]||{},n=H.plotOptions[f.type].marker&&
-f.options.marker,u=n&&!1===n.enabled,k=n&&n.states&&n.states[b||"normal"]||{},m=!1===k.enabled,w=this.marker||{},l=f.chart,p=n&&f.markerAttribs,r=f.halo,t,E=f.stateMarkerGraphic;b=b||"";if(!(b===this.state&&!c||this.selected&&"select"!==b||!1===g.enabled||b&&(m||u&&!1===k.enabled)||b&&w.states&&w.states[b]&&!1===w.states[b].enabled)){this.state=b;p&&(t=f.markerAttribs(this,b));if(this.graphic&&!this.hasMockGraphic){e&&this.graphic.removeClass("highcharts-point-"+e);b&&this.graphic.addClass("highcharts-point-"+
-b);if(!l.styledMode){e=f.pointAttribs(this,b);var G=y(l.options.chart.animation,g.animation);var P=e.opacity;f.options.inactiveOtherPoints&&D(P)&&((this.dataLabels||[]).forEach(function(b){b&&!b.hasClass("highcharts-data-label-hidden")&&b.animate({opacity:P},G)}),this.connector&&this.connector.animate({opacity:P},G));this.graphic.animate(e,G)}t&&this.graphic.animate(t,y(l.options.chart.animation,k.animation,n.animation));E&&E.hide()}else{if(b&&k){n=w.symbol||f.symbol;E&&E.currentSymbol!==n&&(E=E.destroy());
-if(t)if(E)E[c?"animate":"attr"]({x:t.x,y:t.y});else n&&(f.stateMarkerGraphic=E=l.renderer.symbol(n,t.x,t.y,t.width,t.height).add(f.markerGroup),E.currentSymbol=n);!l.styledMode&&E&&"inactive"!==this.state&&E.attr(f.pointAttribs(this,b))}E&&(E[b&&this.isInside?"show":"hide"](),E.element.point=this,E.addClass(this.getClassName(),!0))}g=g.halo;t=(E=this.graphic||E)&&E.visibility||"inherit";g&&g.size&&E&&"hidden"!==t&&!this.isCluster?(r||(f.halo=r=l.renderer.path().add(E.parentGroup)),r.show()[c?"animate":
-"attr"]({d:this.haloPath(g.size)}),r.attr({"class":"highcharts-halo highcharts-color-"+y(this.colorIndex,f.colorIndex)+(this.className?" "+this.className:""),visibility:t,zIndex:-1}),r.point=this,l.styledMode||r.attr(d({fill:this.color||f.color,"fill-opacity":g.opacity},a.filterUserAttributes(g.attributes||{})))):r&&r.point&&r.point.haloPath&&r.animate({d:r.point.haloPath(0)},null,r.hide);h(this,"afterSetState",{state:b})}};g.prototype.haloPath=function(b){var c=this.pos();return c?this.series.chart.renderer.symbols.circle(Math.floor(c[0])-
-b,c[1]-b,2*b,2*b):[]};return g}();"";return g});K(g,"Core/Pointer.js",[g["Core/Color/Color.js"],g["Core/Globals.js"],g["Core/Tooltip.js"],g["Core/Utilities.js"]],function(a,g,x,F){var A=a.parse,B=g.charts,H=g.noop,t=F.addEvent,r=F.attr,l=F.css,e=F.defined,d=F.extend,h=F.find,m=F.fireEvent,k=F.isNumber,p=F.isObject,D=F.objectEach,I=F.offset,E=F.pick,L=F.splat;a=function(){function a(c,a){this.lastValidTouch={};this.pinchDown=[];this.runChartClick=!1;this.eventsToUnbind=[];this.chart=c;this.hasDragged=
-!1;this.options=a;this.init(c,a)}a.prototype.applyInactiveState=function(c){var a=[],f;(c||[]).forEach(function(c){f=c.series;a.push(f);f.linkedParent&&a.push(f.linkedParent);f.linkedSeries&&(a=a.concat(f.linkedSeries));f.navigatorSeries&&a.push(f.navigatorSeries)});this.chart.series.forEach(function(c){-1===a.indexOf(c)?c.setState("inactive",!0):c.options.inactiveOtherPoints&&c.setAllPointsToState("inactive")})};a.prototype.destroy=function(){var c=this;this.eventsToUnbind.forEach(function(c){return c()});
-this.eventsToUnbind=[];g.chartCount||(a.unbindDocumentMouseUp&&(a.unbindDocumentMouseUp=a.unbindDocumentMouseUp()),a.unbindDocumentTouchEnd&&(a.unbindDocumentTouchEnd=a.unbindDocumentTouchEnd()));clearInterval(c.tooltipTimeout);D(c,function(a,f){c[f]=void 0})};a.prototype.getSelectionMarkerAttrs=function(c,a){var f=this,d={args:{chartX:c,chartY:a},attrs:{},shapeType:"rect"};m(this,"getSelectionMarkerAttrs",d,function(b){var d=f.chart,e=f.mouseDownX;e=void 0===e?0:e;var h=f.mouseDownY;h=void 0===h?
-0:h;var g=f.zoomHor,n=f.zoomVert;b=b.attrs;b.x=d.plotLeft;b.y=d.plotTop;b.width=g?1:d.plotWidth;b.height=n?1:d.plotHeight;g&&(d=c-e,b.width=Math.abs(d),b.x=(0<d?0:d)+e);n&&(d=a-h,b.height=Math.abs(d),b.y=(0<d?0:d)+h)});return d};a.prototype.drag=function(c){var a=this.chart,f=a.options.chart,d=a.plotLeft,b=a.plotTop,e=a.plotWidth,h=a.plotHeight,g=this.mouseDownX||0,k=this.mouseDownY||0,m=p(f.panning)?f.panning&&f.panning.enabled:f.panning,l=f.panKey&&c[f.panKey+"Key"],y=c.chartX,r=c.chartY,t=this.selectionMarker;
-t&&t.touch||(y<d?y=d:y>d+e&&(y=d+e),r<b?r=b:r>b+h&&(r=b+h),this.hasDragged=Math.sqrt(Math.pow(g-y,2)+Math.pow(k-r,2)),10<this.hasDragged&&(d=a.isInsidePlot(g-d,k-b,{visiblePlotOnly:!0}),r=this.getSelectionMarkerAttrs(y,r),y=r.shapeType,r=r.attrs,!a.hasCartesianSeries&&!a.mapView||!this.zoomX&&!this.zoomY||!d||l||t||(this.selectionMarker=t=a.renderer[y](),t.attr({"class":"highcharts-selection-marker",zIndex:7}).add(),a.styledMode||t.attr({fill:f.selectionMarkerFill||A("#335cad").setOpacity(.25).get()})),
-t&&t.attr(r),d&&!t&&m&&a.pan(c,f.panning)))};a.prototype.dragStart=function(c){var a=this.chart;a.mouseIsDown=c.type;a.cancelClick=!1;a.mouseDownX=this.mouseDownX=c.chartX;a.mouseDownY=this.mouseDownY=c.chartY};a.prototype.getSelectionBox=function(c){var a={args:{marker:c},result:{}};m(this,"getSelectionBox",a,function(a){a.result={x:c.attr?+c.attr("x"):c.x,y:c.attr?+c.attr("y"):c.y,width:c.attr?c.attr("width"):c.width,height:c.attr?c.attr("height"):c.height}});return a.result};a.prototype.drop=function(c){var a=
-this,f=this.chart,h=this.hasPinched;if(this.selectionMarker){var b=this.getSelectionBox(this.selectionMarker),g=b.x,z=b.y,q=b.width,p=b.height,y={originalEvent:c,xAxis:[],yAxis:[],x:g,y:z,width:q,height:p},r=!!f.mapView;if(this.hasDragged||h)f.axes.forEach(function(b){if(b.zoomEnabled&&e(b.min)&&(h||a[{xAxis:"zoomX",yAxis:"zoomY"}[b.coll]])&&k(g)&&k(z)&&k(q)&&k(p)){var f=b.horiz,d="touchend"===c.type?b.minPixelPadding:0,n=b.toValue((f?g:z)+d);f=b.toValue((f?g+q:z+p)-d);y[b.coll].push({axis:b,min:Math.min(n,
-f),max:Math.max(n,f)});r=!0}}),r&&m(f,"selection",y,function(b){f.zoom(d(b,h?{animation:!1}:null))});k(f.index)&&(this.selectionMarker=this.selectionMarker.destroy());h&&this.scaleGroups()}f&&k(f.index)&&(l(f.container,{cursor:f._cursor}),f.cancelClick=10<this.hasDragged,f.mouseIsDown=this.hasDragged=this.hasPinched=!1,this.pinchDown=[])};a.prototype.findNearestKDPoint=function(c,a,f){var d;c.forEach(function(b){var c=!(b.noSharedTooltip&&a)&&0>b.options.findNearestPointBy.indexOf("y");b=b.searchPoint(f,
-c);if((c=p(b,!0)&&b.series)&&!(c=!p(d,!0))){c=d.distX-b.distX;var e=d.dist-b.dist,h=(b.series.group&&b.series.group.zIndex)-(d.series.group&&d.series.group.zIndex);c=0<(0!==c&&a?c:0!==e?e:0!==h?h:d.series.index>b.series.index?-1:1)}c&&(d=b)});return d};a.prototype.getChartCoordinatesFromPoint=function(c,a){var f=c.series,d=f.xAxis;f=f.yAxis;var b=c.shapeArgs;if(d&&f){var e=E(c.clientX,c.plotX),h=c.plotY||0;c.isNode&&b&&k(b.x)&&k(b.y)&&(e=b.x,h=b.y);return a?{chartX:f.len+f.pos-h,chartY:d.len+d.pos-
-e}:{chartX:e+d.pos,chartY:h+f.pos}}if(b&&b.x&&b.y)return{chartX:b.x,chartY:b.y}};a.prototype.getChartPosition=function(){if(this.chartPosition)return this.chartPosition;var c=this.chart.container,a=I(c);this.chartPosition={left:a.left,top:a.top,scaleX:1,scaleY:1};var f=c.offsetWidth;c=c.offsetHeight;2<f&&2<c&&(this.chartPosition.scaleX=a.width/f,this.chartPosition.scaleY=a.height/c);return this.chartPosition};a.prototype.getCoordinates=function(c){var a={xAxis:[],yAxis:[]};this.chart.axes.forEach(function(f){a[f.isXAxis?
-"xAxis":"yAxis"].push({axis:f,value:f.toValue(c[f.horiz?"chartX":"chartY"])})});return a};a.prototype.getHoverData=function(c,a,f,d,b,e){var g=[];d=!(!d||!c);var n=function(c){return c.visible&&!(!b&&c.directTouch)&&E(c.options.enableMouseTracking,!0)},k={chartX:e?e.chartX:void 0,chartY:e?e.chartY:void 0,shared:b};m(this,"beforeGetHoverData",k);var u=a&&!a.stickyTracking?[a]:f.filter(function(b){return b.stickyTracking&&(k.filter||n)(b)});var l=d||!e?c:this.findNearestKDPoint(u,b,e);a=l&&l.series;
-l&&(b&&!a.noSharedTooltip?(u=f.filter(function(b){return k.filter?k.filter(b):n(b)&&!b.noSharedTooltip}),u.forEach(function(b){var c=h(b.points,function(b){return b.x===l.x&&!b.isNull});p(c)&&(b.boosted&&b.boost&&(c=b.boost.getPoint(c)),g.push(c))})):g.push(l));k={hoverPoint:l};m(this,"afterGetHoverData",k);return{hoverPoint:k.hoverPoint,hoverSeries:a,hoverPoints:g}};a.prototype.getPointFromEvent=function(c){c=c.target;for(var a;c&&!a;)a=c.point,c=c.parentNode;return a};a.prototype.onTrackerMouseOut=
-function(c){c=c.relatedTarget||c.toElement;var a=this.chart.hoverSeries;this.isDirectTouch=!1;if(!(!a||!c||a.stickyTracking||this.inClass(c,"highcharts-tooltip")||this.inClass(c,"highcharts-series-"+a.index)&&this.inClass(c,"highcharts-tracker")))a.onMouseOut()};a.prototype.inClass=function(c,a){for(var f;c;){if(f=r(c,"class")){if(-1!==f.indexOf(a))return!0;if(-1!==f.indexOf("highcharts-container"))return!1}c=c.parentElement}};a.prototype.init=function(c,a){this.options=a;this.chart=c;this.runChartClick=
-!(!a.chart.events||!a.chart.events.click);this.pinchDown=[];this.lastValidTouch={};x&&(c.tooltip=new x(c,a.tooltip));this.setDOMEvents()};a.prototype.normalize=function(c,a){var f=c.touches,e=f?f.length?f.item(0):E(f.changedTouches,c.changedTouches)[0]:c;a||(a=this.getChartPosition());f=e.pageX-a.left;e=e.pageY-a.top;f/=a.scaleX;e/=a.scaleY;return d(c,{chartX:Math.round(f),chartY:Math.round(e)})};a.prototype.onContainerClick=function(c){var a=this.chart,f=a.hoverPoint;c=this.normalize(c);var e=a.plotLeft,
-b=a.plotTop;a.cancelClick||(f&&this.inClass(c.target,"highcharts-tracker")?(m(f.series,"click",d(c,{point:f})),a.hoverPoint&&f.firePointEvent("click",c)):(d(c,this.getCoordinates(c)),a.isInsidePlot(c.chartX-e,c.chartY-b,{visiblePlotOnly:!0})&&m(a,"click",c)))};a.prototype.onContainerMouseDown=function(a){var c=1===((a.buttons||a.button)&1);a=this.normalize(a);if(g.isFirefox&&0!==a.button)this.onContainerMouseMove(a);if("undefined"===typeof a.button||c)this.zoomOption(a),c&&a.preventDefault&&a.preventDefault(),
-this.dragStart(a)};a.prototype.onContainerMouseLeave=function(c){var d=B[E(a.hoverChartIndex,-1)],f=this.chart.tooltip;c=this.normalize(c);d&&(c.relatedTarget||c.toElement)&&(d.pointer.reset(),d.pointer.chartPosition=void 0);f&&!f.isHidden&&this.reset()};a.prototype.onContainerMouseEnter=function(a){delete this.chartPosition};a.prototype.onContainerMouseMove=function(a){var c=this.chart,f=c.tooltip;a=this.normalize(a);this.setHoverChartIndex();a.preventDefault||(a.returnValue=!1);("mousedown"===c.mouseIsDown||
-this.touchSelect(a))&&this.drag(a);c.openMenu||!this.inClass(a.target,"highcharts-tracker")&&!c.isInsidePlot(a.chartX-c.plotLeft,a.chartY-c.plotTop,{visiblePlotOnly:!0})||f&&f.shouldStickOnContact(a)||(this.inClass(a.target,"highcharts-no-tooltip")?this.reset(!1,0):this.runPointActions(a))};a.prototype.onDocumentTouchEnd=function(c){var d=B[E(a.hoverChartIndex,-1)];d&&d.pointer.drop(c)};a.prototype.onContainerTouchMove=function(a){if(this.touchSelect(a))this.onContainerMouseMove(a);else this.touch(a)};
-a.prototype.onContainerTouchStart=function(a){if(this.touchSelect(a))this.onContainerMouseDown(a);else this.zoomOption(a),this.touch(a,!0)};a.prototype.onDocumentMouseMove=function(a){var c=this.chart,f=c.tooltip,d=this.chartPosition;a=this.normalize(a,d);!d||c.isInsidePlot(a.chartX-c.plotLeft,a.chartY-c.plotTop,{visiblePlotOnly:!0})||f&&f.shouldStickOnContact(a)||this.inClass(a.target,"highcharts-tracker")||this.reset()};a.prototype.onDocumentMouseUp=function(c){var d=B[E(a.hoverChartIndex,-1)];
-d&&d.pointer.drop(c)};a.prototype.pinch=function(a){var c=this,f=c.chart,e=c.pinchDown,b=a.touches||[],h=b.length,g=c.lastValidTouch,k=c.hasZoom,l={},p=1===h&&(c.inClass(a.target,"highcharts-tracker")&&f.runTrackerClick||c.runChartClick),y={},r=c.chart.tooltip;r=1===h&&E(r&&r.options.followTouchMove,!0);var t=c.selectionMarker;1<h?c.initiated=!0:r&&(c.initiated=!1);k&&c.initiated&&!p&&!1!==a.cancelable&&a.preventDefault();[].map.call(b,function(b){return c.normalize(b)});"touchstart"===a.type?([].forEach.call(b,
-function(b,a){e[a]={chartX:b.chartX,chartY:b.chartY}}),g.x=[e[0].chartX,e[1]&&e[1].chartX],g.y=[e[0].chartY,e[1]&&e[1].chartY],f.axes.forEach(function(b){if(b.zoomEnabled){var a=f.bounds[b.horiz?"h":"v"],c=b.minPixelPadding,d=b.toPixels(Math.min(E(b.options.min,b.dataMin),b.dataMin)),e=b.toPixels(Math.max(E(b.options.max,b.dataMax),b.dataMax)),h=Math.max(d,e);a.min=Math.min(b.pos,Math.min(d,e)-c);a.max=Math.max(b.pos+b.len,h+c)}}),c.res=!0):r?this.runPointActions(c.normalize(a)):e.length&&(m(f,"touchpan",
-{originalEvent:a},function(){t||(c.selectionMarker=t=d({destroy:H,touch:!0},f.plotBox));c.pinchTranslate(e,b,l,t,y,g);c.hasPinched=k;c.scaleGroups(l,y)}),c.res&&(c.res=!1,this.reset(!1,0)))};a.prototype.pinchTranslate=function(a,d,f,e,b,h){this.zoomHor&&this.pinchTranslateDirection(!0,a,d,f,e,b,h);this.zoomVert&&this.pinchTranslateDirection(!1,a,d,f,e,b,h)};a.prototype.pinchTranslateDirection=function(a,d,f,e,b,h,g,k){var c=this.chart,n=a?"x":"y",q=a?"X":"Y",u="chart"+q,m=a?"width":"height",l=c["plot"+
-(a?"Left":"Top")],z=c.inverted,p=c.bounds[a?"h":"v"],w=1===d.length,y=d[0][u],r=!w&&d[1][u];d=function(){"number"===typeof R&&20<Math.abs(y-r)&&(M=k||Math.abs(t-R)/Math.abs(y-r));P=(l-t)/M+y;G=c["plot"+(a?"Width":"Height")]/M};var G,P,M=k||1,t=f[0][u],R=!w&&f[1][u];d();f=P;if(f<p.min){f=p.min;var E=!0}else f+G>p.max&&(f=p.max-G,E=!0);E?(t-=.8*(t-g[n][0]),"number"===typeof R&&(R-=.8*(R-g[n][1])),d()):g[n]=[t,R];z||(h[n]=P-l,h[m]=G);h=z?1/M:M;b[m]=G;b[n]=f;e[z?a?"scaleY":"scaleX":"scale"+q]=M;e["translate"+
-q]=h*l+(t-h*y)};a.prototype.reset=function(a,d){var c=this.chart,e=c.hoverSeries,b=c.hoverPoint,h=c.hoverPoints,g=c.tooltip,k=g&&g.shared?h:b;a&&k&&L(k).forEach(function(b){b.series.isCartesian&&"undefined"===typeof b.plotX&&(a=!1)});if(a)g&&k&&L(k).length&&(g.refresh(k),g.shared&&h?h.forEach(function(b){b.setState(b.state,!0);b.series.isCartesian&&(b.series.xAxis.crosshair&&b.series.xAxis.drawCrosshair(null,b),b.series.yAxis.crosshair&&b.series.yAxis.drawCrosshair(null,b))}):b&&(b.setState(b.state,
-!0),c.axes.forEach(function(a){a.crosshair&&b.series[a.coll]===a&&a.drawCrosshair(null,b)})));else{if(b)b.onMouseOut();h&&h.forEach(function(b){b.setState()});if(e)e.onMouseOut();g&&g.hide(d);this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove());c.axes.forEach(function(b){b.hideCrosshair()});this.hoverX=c.hoverPoints=c.hoverPoint=null}};a.prototype.runPointActions=function(c,d,f){var e=this.chart,b=e.tooltip&&e.tooltip.options.enabled?e.tooltip:void 0,g=b?b.shared:!1,k=d||e.hoverPoint,
-q=k&&k.series||e.hoverSeries;d=this.getHoverData(k,q,e.series,(!c||"touchmove"!==c.type)&&(!!d||q&&q.directTouch&&this.isDirectTouch),g,c);k=d.hoverPoint;q=d.hoverSeries;var m=d.hoverPoints;d=q&&q.tooltipOptions.followPointer&&!q.tooltipOptions.split;var l=g&&q&&!q.noSharedTooltip;if(k&&(f||k!==e.hoverPoint||b&&b.isHidden)){(e.hoverPoints||[]).forEach(function(b){-1===m.indexOf(b)&&b.setState()});if(e.hoverSeries!==q)q.onMouseOver();this.applyInactiveState(m);(m||[]).forEach(function(b){b.setState("hover")});
-e.hoverPoint&&e.hoverPoint.firePointEvent("mouseOut");if(!k.series)return;e.hoverPoints=m;e.hoverPoint=k;k.firePointEvent("mouseOver",void 0,function(){b&&k&&b.refresh(l?m:k,c)})}else d&&b&&!b.isHidden&&(f=b.getAnchor([{}],c),e.isInsidePlot(f[0],f[1],{visiblePlotOnly:!0})&&b.updatePosition({plotX:f[0],plotY:f[1]}));this.unDocMouseMove||(this.unDocMouseMove=t(e.container.ownerDocument,"mousemove",function(b){var c=B[a.hoverChartIndex];if(c)c.pointer.onDocumentMouseMove(b)}),this.eventsToUnbind.push(this.unDocMouseMove));
-e.axes.forEach(function(b){var a=E((b.crosshair||{}).snap,!0),d;a&&((d=e.hoverPoint)&&d.series[b.coll]===b||(d=h(m,function(a){return a.series&&a.series[b.coll]===b})));d||!a?b.drawCrosshair(c,d):b.hideCrosshair()})};a.prototype.scaleGroups=function(a,d){var c=this.chart;c.series.forEach(function(f){var b=a||f.getPlotBox();f.group&&(f.xAxis&&f.xAxis.zoomEnabled||c.mapView)&&(f.group.attr(b),f.markerGroup&&(f.markerGroup.attr(b),f.markerGroup.clip(d?c.clipRect:null)),f.dataLabelsGroup&&f.dataLabelsGroup.attr(b))});
-c.clipRect.attr(d||c.clipBox)};a.prototype.setDOMEvents=function(){var c=this,d=this.chart.container,f=d.ownerDocument;d.onmousedown=this.onContainerMouseDown.bind(this);d.onmousemove=this.onContainerMouseMove.bind(this);d.onclick=this.onContainerClick.bind(this);this.eventsToUnbind.push(t(d,"mouseenter",this.onContainerMouseEnter.bind(this)));this.eventsToUnbind.push(t(d,"mouseleave",this.onContainerMouseLeave.bind(this)));a.unbindDocumentMouseUp||(a.unbindDocumentMouseUp=t(f,"mouseup",this.onDocumentMouseUp.bind(this)));
-for(var e=this.chart.renderTo.parentElement;e&&"BODY"!==e.tagName;)this.eventsToUnbind.push(t(e,"scroll",function(){delete c.chartPosition})),e=e.parentElement;g.hasTouch&&(this.eventsToUnbind.push(t(d,"touchstart",this.onContainerTouchStart.bind(this),{passive:!1})),this.eventsToUnbind.push(t(d,"touchmove",this.onContainerTouchMove.bind(this),{passive:!1})),a.unbindDocumentTouchEnd||(a.unbindDocumentTouchEnd=t(f,"touchend",this.onDocumentTouchEnd.bind(this),{passive:!1})))};a.prototype.setHoverChartIndex=
-function(){var c=this.chart,d=g.charts[E(a.hoverChartIndex,-1)];if(d&&d!==c)d.pointer.onContainerMouseLeave({relatedTarget:c.container});d&&d.mouseIsDown||(a.hoverChartIndex=c.index)};a.prototype.touch=function(a,d){var c=this.chart,e;this.setHoverChartIndex();if(1===a.touches.length)if(a=this.normalize(a),(e=c.isInsidePlot(a.chartX-c.plotLeft,a.chartY-c.plotTop,{visiblePlotOnly:!0}))&&!c.openMenu){d&&this.runPointActions(a);if("touchmove"===a.type){d=this.pinchDown;var b=d[0]?4<=Math.sqrt(Math.pow(d[0].chartX-
-a.chartX,2)+Math.pow(d[0].chartY-a.chartY,2)):!1}E(b,!0)&&this.pinch(a)}else d&&this.reset();else 2===a.touches.length&&this.pinch(a)};a.prototype.touchSelect=function(a){return!(!this.chart.options.chart.zooming.singleTouch||!a.touches||1!==a.touches.length)};a.prototype.zoomOption=function(a){var c=this.chart,d=c.options.chart;c=c.inverted;var e=d.zooming.type||"";/touch/.test(a.type)&&(e=E(d.zooming.pinchType,e));this.zoomX=a=/x/.test(e);this.zoomY=d=/y/.test(e);this.zoomHor=a&&!c||d&&c;this.zoomVert=
-d&&!c||a&&c;this.hasZoom=a||d};return a}();"";return a});K(g,"Core/MSPointer.js",[g["Core/Globals.js"],g["Core/Pointer.js"],g["Core/Utilities.js"]],function(a,g,x){function A(){var a=[];a.item=function(a){return this[a]};h(p,function(d){a.push({pageX:d.pageX,pageY:d.pageY,target:d.target})});return a}function C(a,d,e,h){var c=H[g.hoverChartIndex||NaN];"touch"!==a.pointerType&&a.pointerType!==a.MSPOINTER_TYPE_TOUCH||!c||(c=c.pointer,h(a),c[d]({type:e,target:a.currentTarget,preventDefault:r,touches:A()}))}
-var B=this&&this.__extends||function(){var a=function(d,e){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var d in c)c.hasOwnProperty(d)&&(a[d]=c[d])};return a(d,e)};return function(d,e){function h(){this.constructor=d}a(d,e);d.prototype=null===e?Object.create(e):(h.prototype=e.prototype,new h)}}(),H=a.charts,t=a.doc,r=a.noop,l=a.win,e=x.addEvent,d=x.css,h=x.objectEach,m=x.pick,k=x.removeEvent,p={},D=!!l.PointerEvent;return function(h){function g(){return null!==
-h&&h.apply(this,arguments)||this}B(g,h);g.isRequired=function(){return!(a.hasTouch||!l.PointerEvent&&!l.MSPointerEvent)};g.prototype.batchMSEvents=function(a){a(this.chart.container,D?"pointerdown":"MSPointerDown",this.onContainerPointerDown);a(this.chart.container,D?"pointermove":"MSPointerMove",this.onContainerPointerMove);a(t,D?"pointerup":"MSPointerUp",this.onDocumentPointerUp)};g.prototype.destroy=function(){this.batchMSEvents(k);h.prototype.destroy.call(this)};g.prototype.init=function(a,e){h.prototype.init.call(this,
-a,e);this.hasZoom&&d(a.container,{"-ms-touch-action":"none","touch-action":"none"})};g.prototype.onContainerPointerDown=function(a){C(a,"onContainerTouchStart","touchstart",function(a){p[a.pointerId]={pageX:a.pageX,pageY:a.pageY,target:a.currentTarget}})};g.prototype.onContainerPointerMove=function(a){C(a,"onContainerTouchMove","touchmove",function(a){p[a.pointerId]={pageX:a.pageX,pageY:a.pageY};p[a.pointerId].target||(p[a.pointerId].target=a.currentTarget)})};g.prototype.onDocumentPointerUp=function(a){C(a,
-"onDocumentTouchEnd","touchend",function(a){delete p[a.pointerId]})};g.prototype.setDOMEvents=function(){var a=this.chart.tooltip;h.prototype.setDOMEvents.call(this);(this.hasZoom||m(a&&a.options.followTouchMove,!0))&&this.batchMSEvents(e)};return g}(g)});K(g,"Core/Legend/Legend.js",[g["Core/Animation/AnimationUtilities.js"],g["Core/FormatUtilities.js"],g["Core/Globals.js"],g["Core/Series/Point.js"],g["Core/Renderer/RendererUtilities.js"],g["Core/Utilities.js"]],function(a,g,x,F,C,B){var A=a.animObject,
-t=a.setAnimation,r=g.format,l=x.marginNames,e=C.distribute,d=B.addEvent,h=B.createElement,m=B.css,k=B.defined,p=B.discardElement,D=B.find,I=B.fireEvent,E=B.isNumber,L=B.merge,y=B.pick,c=B.relativeLength,w=B.stableSort,f=B.syncTimeout;a=function(){function a(b,a){this.allItems=[];this.contentGroup=this.box=void 0;this.display=!1;this.group=void 0;this.offsetWidth=this.maxLegendWidth=this.maxItemWidth=this.legendWidth=this.legendHeight=this.lastLineHeight=this.lastItemY=this.itemY=this.itemX=this.itemMarginTop=
-this.itemMarginBottom=this.itemHeight=this.initialItemY=0;this.options=void 0;this.padding=0;this.pages=[];this.proximate=!1;this.scrollGroup=void 0;this.widthOption=this.totalItemWidth=this.titleHeight=this.symbolWidth=this.symbolHeight=0;this.chart=b;this.init(b,a)}a.prototype.init=function(b,a){this.chart=b;this.setOptions(a);a.enabled&&(this.render(),d(this.chart,"endResize",function(){this.legend.positionCheckboxes()}),this.proximate?this.unchartrender=d(this.chart,"render",function(){this.legend.proximatePositions();
-this.legend.positionItems()}):this.unchartrender&&this.unchartrender())};a.prototype.setOptions=function(b){var a=y(b.padding,8);this.options=b;this.chart.styledMode||(this.itemStyle=b.itemStyle,this.itemHiddenStyle=L(this.itemStyle,b.itemHiddenStyle));this.itemMarginTop=b.itemMarginTop||0;this.itemMarginBottom=b.itemMarginBottom||0;this.padding=a;this.initialItemY=a-5;this.symbolWidth=y(b.symbolWidth,16);this.pages=[];this.proximate="proximate"===b.layout&&!this.chart.inverted;this.baseline=void 0};
-a.prototype.update=function(b,a){var c=this.chart;this.setOptions(L(!0,this.options,b));this.destroy();c.isDirtyLegend=c.isDirtyBox=!0;y(a,!0)&&c.redraw();I(this,"afterUpdate")};a.prototype.colorizeItem=function(b,a){var c=b.legendItem||{},d=c.group,f=c.label,e=c.line;c=c.symbol;if(d)d[a?"removeClass":"addClass"]("highcharts-legend-item-hidden");if(!this.chart.styledMode){var h=this.options;d=this.itemHiddenStyle.color;h=a?h.itemStyle.color:d;var g=a?b.color||d:d,k=b.options&&b.options.marker,n={fill:g};
-f&&f.css({fill:h,color:h});e&&e.attr({stroke:g});c&&(k&&c.isMarker&&(n=b.pointAttribs(),a||(n.stroke=n.fill=d)),c.attr(n))}I(this,"afterColorizeItem",{item:b,visible:a})};a.prototype.positionItems=function(){this.allItems.forEach(this.positionItem,this);this.chart.isResizing||this.positionCheckboxes()};a.prototype.positionItem=function(b){var a=this,c=b.legendItem||{},d=c.group,f=c.x;f=void 0===f?0:f;c=c.y;c=void 0===c?0:c;var e=this.options,h=e.symbolPadding,g=!e.rtl;e=b.checkbox;d&&d.element&&(h=
-{translateX:g?f:this.legendWidth-f-2*h-4,translateY:c},d[k(d.translateY)?"animate":"attr"](h,void 0,function(){I(a,"afterPositionItem",{item:b})}));e&&(e.x=f,e.y=c)};a.prototype.destroyItem=function(b){for(var a=b.checkbox,c=b.legendItem||{},d=0,f=["group","label","line","symbol"];d<f.length;d++){var e=f[d];c[e]&&(c[e]=c[e].destroy())}a&&p(a);b.legendItem=void 0};a.prototype.destroy=function(){for(var b=0,a=this.getAllItems();b<a.length;b++)this.destroyItem(a[b]);b=0;for(a="clipRect up down pager nav box title group".split(" ");b<
-a.length;b++){var c=a[b];this[c]&&(this[c]=this[c].destroy())}this.display=null};a.prototype.positionCheckboxes=function(){var b=this.group&&this.group.alignAttr,a=this.clipHeight||this.legendHeight,c=this.titleHeight;if(b){var d=b.translateY;this.allItems.forEach(function(f){var e=f.checkbox;if(e){var h=d+c+e.y+(this.scrollOffset||0)+3;m(e,{left:b.translateX+f.checkboxOffset+e.x-20+"px",top:h+"px",display:this.proximate||h>d-6&&h<d+a-6?"":"none"})}},this)}};a.prototype.renderTitle=function(){var b=
-this.options,a=this.padding,c=b.title,d=0;c.text&&(this.title||(this.title=this.chart.renderer.label(c.text,a-3,a-4,void 0,void 0,void 0,b.useHTML,void 0,"legend-title").attr({zIndex:1}),this.chart.styledMode||this.title.css(c.style),this.title.add(this.group)),c.width||this.title.css({width:this.maxLegendWidth+"px"}),b=this.title.getBBox(),d=b.height,this.offsetWidth=b.width,this.contentGroup.attr({translateY:d}));this.titleHeight=d};a.prototype.setText=function(b){var a=this.options;b.legendItem.label.attr({text:a.labelFormat?
-r(a.labelFormat,b,this.chart):a.labelFormatter.call(b)})};a.prototype.renderItem=function(b){var a=b.legendItem=b.legendItem||{},c=this.chart,d=c.renderer,f=this.options,e=this.symbolWidth,h=f.symbolPadding||0,g=this.itemStyle,k=this.itemHiddenStyle,n="horizontal"===f.layout?y(f.itemDistance,20):0,m=!f.rtl,l=!b.series,p=!l&&b.series.drawLegendSymbol?b.series:b,r=p.options,w=this.createCheckboxForItem&&r&&r.showCheckbox,G=f.useHTML,P=b.options.className,M=a.label;r=e+h+n+(w?20:0);M||(a.group=d.g("legend-item").addClass("highcharts-"+
-p.type+"-series highcharts-color-"+b.colorIndex+(P?" "+P:"")+(l?" highcharts-series-"+b.index:"")).attr({zIndex:1}).add(this.scrollGroup),a.label=M=d.text("",m?e+h:-h,this.baseline||0,G),c.styledMode||M.css(L(b.visible?g:k)),M.attr({align:m?"left":"right",zIndex:2}).add(a.group),this.baseline||(this.fontMetrics=d.fontMetrics(c.styledMode?12:g.fontSize,M),this.baseline=this.fontMetrics.f+3+this.itemMarginTop,M.attr("y",this.baseline),this.symbolHeight=f.symbolHeight||this.fontMetrics.f,f.squareSymbol&&
-(this.symbolWidth=y(f.symbolWidth,Math.max(this.symbolHeight,16)),r=this.symbolWidth+h+n+(w?20:0),m&&M.attr("x",this.symbolWidth+h))),p.drawLegendSymbol(this,b),this.setItemEvents&&this.setItemEvents(b,M,G));w&&!b.checkbox&&this.createCheckboxForItem&&this.createCheckboxForItem(b);this.colorizeItem(b,b.visible);!c.styledMode&&g.width||M.css({width:(f.itemWidth||this.widthOption||c.spacingBox.width)-r+"px"});this.setText(b);c=M.getBBox();d=this.fontMetrics&&this.fontMetrics.h||0;b.itemWidth=b.checkboxOffset=
-f.itemWidth||a.labelWidth||c.width+r;this.maxItemWidth=Math.max(this.maxItemWidth,b.itemWidth);this.totalItemWidth+=b.itemWidth;this.itemHeight=b.itemHeight=Math.round(a.labelHeight||(c.height>1.5*d?c.height:d))};a.prototype.layoutItem=function(b){var a=this.options,c=this.padding,d="horizontal"===a.layout,f=b.itemHeight,e=this.itemMarginBottom,h=this.itemMarginTop,g=d?y(a.itemDistance,20):0,k=this.maxLegendWidth;a=a.alignColumns&&this.totalItemWidth>k?this.maxItemWidth:b.itemWidth;var n=b.legendItem||
-{};d&&this.itemX-c+a>k&&(this.itemX=c,this.lastLineHeight&&(this.itemY+=h+this.lastLineHeight+e),this.lastLineHeight=0);this.lastItemY=h+this.itemY+e;this.lastLineHeight=Math.max(f,this.lastLineHeight);n.x=this.itemX;n.y=this.itemY;d?this.itemX+=a:(this.itemY+=h+f+e,this.lastLineHeight=f);this.offsetWidth=this.widthOption||Math.max((d?this.itemX-c-(b.checkbox?0:g):a)+c,this.offsetWidth)};a.prototype.getAllItems=function(){var b=[];this.chart.series.forEach(function(a){var c=a&&a.options;a&&y(c.showInLegend,
-k(c.linkedTo)?!1:void 0,!0)&&(b=b.concat((a.legendItem||{}).labels||("point"===c.legendType?a.data:a)))});I(this,"afterGetAllItems",{allItems:b});return b};a.prototype.getAlignment=function(){var b=this.options;return this.proximate?b.align.charAt(0)+"tv":b.floating?"":b.align.charAt(0)+b.verticalAlign.charAt(0)+b.layout.charAt(0)};a.prototype.adjustMargins=function(b,a){var c=this.chart,d=this.options,f=this.getAlignment();f&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach(function(e,
-h){e.test(f)&&!k(b[h])&&(c[l[h]]=Math.max(c[l[h]],c.legend[(h+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][h]*d[h%2?"x":"y"]+y(d.margin,12)+a[h]+(c.titleOffset[h]||0)))})};a.prototype.proximatePositions=function(){var b=this.chart,a=[],c="left"===this.options.align;this.allItems.forEach(function(d){var f;var e=c;if(d.yAxis){d.xAxis.options.reversed&&(e=!e);d.points&&(f=D(e?d.points:d.points.slice(0).reverse(),function(b){return E(b.plotY)}));e=this.itemMarginTop+d.legendItem.label.getBBox().height+
-this.itemMarginBottom;var h=d.yAxis.top-b.plotTop;d.visible?(f=f?f.plotY:d.yAxis.height,f+=h-.3*e):f=h+d.yAxis.height;a.push({target:f,size:e,item:d})}},this);for(var d,f=0,h=e(a,b.plotHeight);f<h.length;f++){var g=h[f];d=g.item.legendItem||{};E(g.pos)&&(d.y=b.plotTop-b.spacing[0]+g.pos)}};a.prototype.render=function(){var b=this.chart,a=b.renderer,d=this.options,f=this.padding,e=this.getAllItems(),h=this.group,g=this.box;this.itemX=f;this.itemY=this.initialItemY;this.lastItemY=this.offsetWidth=0;
-this.widthOption=c(d.width,b.spacingBox.width-f);var k=b.spacingBox.width-2*f-d.x;-1<["rm","lm"].indexOf(this.getAlignment().substring(0,2))&&(k/=2);this.maxLegendWidth=this.widthOption||k;h||(this.group=h=a.g("legend").addClass(d.className||"").attr({zIndex:7}).add(),this.contentGroup=a.g().attr({zIndex:1}).add(h),this.scrollGroup=a.g().add(this.contentGroup));this.renderTitle();w(e,function(b,a){return(b.options&&b.options.legendIndex||0)-(a.options&&a.options.legendIndex||0)});d.reversed&&e.reverse();
-this.allItems=e;this.display=k=!!e.length;this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0;e.forEach(this.renderItem,this);e.forEach(this.layoutItem,this);e=(this.widthOption||this.offsetWidth)+f;var n=this.lastItemY+this.lastLineHeight+this.titleHeight;n=this.handleOverflow(n);n+=f;g||(this.box=g=a.rect().addClass("highcharts-legend-box").attr({r:d.borderRadius}).add(h));b.styledMode||g.attr({stroke:d.borderColor,"stroke-width":d.borderWidth||0,fill:d.backgroundColor||
-"none"}).shadow(d.shadow);if(0<e&&0<n)g[g.placed?"animate":"attr"](g.crisp.call({},{x:0,y:0,width:e,height:n},g.strokeWidth()));h[k?"show":"hide"]();b.styledMode&&"none"===h.getStyle("display")&&(e=n=0);this.legendWidth=e;this.legendHeight=n;k&&this.align();this.proximate||this.positionItems();I(this,"afterRender")};a.prototype.align=function(b){void 0===b&&(b=this.chart.spacingBox);var a=this.chart,c=this.options,d=b.y;/(lth|ct|rth)/.test(this.getAlignment())&&0<a.titleOffset[0]?d+=a.titleOffset[0]:
-/(lbh|cb|rbh)/.test(this.getAlignment())&&0<a.titleOffset[2]&&(d-=a.titleOffset[2]);d!==b.y&&(b=L(b,{y:d}));a.hasRendered||(this.group.placed=!1);this.group.align(L(c,{width:this.legendWidth,height:this.legendHeight,verticalAlign:this.proximate?"top":c.verticalAlign}),!0,b)};a.prototype.handleOverflow=function(b){var a=this,c=this.chart,d=c.renderer,f=this.options,e=f.y,h="top"===f.verticalAlign,g=this.padding,k=f.maxHeight,n=f.navigation,m=y(n.animation,!0),l=n.arrowSize||12,p=this.pages,r=this.allItems,
-w=function(b){"number"===typeof b?D.attr({height:b}):D&&(a.clipRect=D.destroy(),a.contentGroup.clip());a.contentGroup.div&&(a.contentGroup.div.style.clip=b?"rect("+g+"px,9999px,"+(g+b)+"px,0)":"auto")},G=function(b){a[b]=d.circle(0,0,1.3*l).translate(l/2,l/2).add(R);c.styledMode||a[b].attr("fill","rgba(0,0,0,0.0001)");return a[b]},P,M,t;e=c.spacingBox.height+(h?-e:e)-g;var R=this.nav,D=this.clipRect;"horizontal"!==f.layout||"middle"===f.verticalAlign||f.floating||(e/=2);k&&(e=Math.min(e,k));p.length=
-0;b&&0<e&&b>e&&!1!==n.enabled?(this.clipHeight=P=Math.max(e-20-this.titleHeight-g,0),this.currentPage=y(this.currentPage,1),this.fullHeight=b,r.forEach(function(b,a){t=b.legendItem||{};b=t.y||0;var c=Math.round(t.label.getBBox().height),d=p.length;if(!d||b-p[d-1]>P&&(M||b)!==p[d-1])p.push(M||b),d++;t.pageIx=d-1;M&&((r[a-1].legendItem||{}).pageIx=d-1);a===r.length-1&&b+c-p[d-1]>P&&c<=P&&(p.push(b),t.pageIx=d);b!==M&&(M=b)}),D||(D=a.clipRect=d.clipRect(0,g,9999,0),a.contentGroup.clip(D)),w(P),R||(this.nav=
-R=d.g().attr({zIndex:1}).add(this.group),this.up=d.symbol("triangle",0,0,l,l).add(R),G("upTracker").on("click",function(){a.scroll(-1,m)}),this.pager=d.text("",15,10).addClass("highcharts-legend-navigation"),!c.styledMode&&n.style&&this.pager.css(n.style),this.pager.add(R),this.down=d.symbol("triangle-down",0,0,l,l).add(R),G("downTracker").on("click",function(){a.scroll(1,m)})),a.scroll(0),b=e):R&&(w(),this.nav=R.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0);return b};a.prototype.scroll=
-function(b,a){var c=this,d=this.chart,e=this.pages,h=e.length,g=this.clipHeight,k=this.options.navigation,n=this.pager,m=this.padding,l=this.currentPage+b;l>h&&(l=h);0<l&&("undefined"!==typeof a&&t(a,d),this.nav.attr({translateX:m,translateY:g+this.padding+7+this.titleHeight,visibility:"inherit"}),[this.up,this.upTracker].forEach(function(b){b.attr({"class":1===l?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})}),n.attr({text:l+"/"+h}),[this.down,this.downTracker].forEach(function(b){b.attr({x:18+
-this.pager.getBBox().width,"class":l===h?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})},this),d.styledMode||(this.up.attr({fill:1===l?k.inactiveColor:k.activeColor}),this.upTracker.css({cursor:1===l?"default":"pointer"}),this.down.attr({fill:l===h?k.inactiveColor:k.activeColor}),this.downTracker.css({cursor:l===h?"default":"pointer"})),this.scrollOffset=-e[l-1]+this.initialItemY,this.scrollGroup.animate({translateY:this.scrollOffset}),this.currentPage=l,this.positionCheckboxes(),
-b=A(y(a,d.renderer.globalAnimation,!0)),f(function(){I(c,"afterScroll",{currentPage:l})},b.duration))};a.prototype.setItemEvents=function(b,a,c){var d=this,f=b.legendItem||{},e=d.chart.renderer.boxWrapper,h=b instanceof F,g="highcharts-legend-"+(h?"point":"series")+"-active",k=d.chart.styledMode,n=function(a){d.allItems.forEach(function(c){b!==c&&[c].concat(c.linkedSeries||[]).forEach(function(b){b.setState(a,!h)})})},m=0;for(c=c?[a,f.symbol]:[f.group];m<c.length;m++)if(f=c[m])f.on("mouseover",function(){b.visible&&
-n("inactive");b.setState("hover");b.visible&&e.addClass(g);k||a.css(d.options.itemHoverStyle)}).on("mouseout",function(){d.chart.styledMode||a.css(L(b.visible?d.itemStyle:d.itemHiddenStyle));n("");e.removeClass(g);b.setState()}).on("click",function(a){var c=function(){b.setVisible&&b.setVisible();n(b.visible?"inactive":"")};e.removeClass(g);a={browserEvent:a};b.firePointEvent?b.firePointEvent("legendItemClick",a,c):I(b,"legendItemClick",a,c)})};a.prototype.createCheckboxForItem=function(b){b.checkbox=
-h("input",{type:"checkbox",className:"highcharts-legend-checkbox",checked:b.selected,defaultChecked:b.selected},this.options.itemCheckboxStyle,this.chart.container);d(b.checkbox,"click",function(a){I(b.series||b,"checkboxClick",{checked:a.target.checked,item:b},function(){b.select()})})};return a}();"";return a});K(g,"Core/Series/SeriesRegistry.js",[g["Core/Globals.js"],g["Core/Defaults.js"],g["Core/Series/Point.js"],g["Core/Utilities.js"]],function(a,g,x,F){var A=g.defaultOptions,B=F.extendClass,
-H=F.merge,t;(function(g){function l(a,d){var e=A.plotOptions||{},m=d.defaultOptions,k=d.prototype;k.type=a;k.pointClass||(k.pointClass=x);m&&(e[a]=m);g.seriesTypes[a]=d}g.seriesTypes=a.seriesTypes;g.registerSeriesType=l;g.seriesType=function(a,d,h,m,k){var e=A.plotOptions||{};d=d||"";e[a]=H(e[d],h);l(a,B(g.seriesTypes[d]||function(){},m));g.seriesTypes[a].prototype.type=a;k&&(g.seriesTypes[a].prototype.pointClass=B(x,k));return g.seriesTypes[a]}})(t||(t={}));return t});K(g,"Core/Chart/Chart.js",[g["Core/Animation/AnimationUtilities.js"],
-g["Core/Axis/Axis.js"],g["Core/Defaults.js"],g["Core/FormatUtilities.js"],g["Core/Foundation.js"],g["Core/Globals.js"],g["Core/Legend/Legend.js"],g["Core/MSPointer.js"],g["Core/Pointer.js"],g["Core/Renderer/RendererRegistry.js"],g["Core/Series/SeriesRegistry.js"],g["Core/Renderer/SVG/SVGRenderer.js"],g["Core/Time.js"],g["Core/Utilities.js"],g["Core/Renderer/HTML/AST.js"]],function(a,g,x,F,C,B,H,t,r,l,e,d,h,m,k){var p=a.animate,D=a.animObject,A=a.setAnimation,E=x.defaultOptions,L=x.defaultTime,y=F.numberFormat,
-c=C.registerEventOptions,w=B.charts,f=B.doc,n=B.marginNames,b=B.svg,u=B.win,z=e.seriesTypes,q=m.addEvent,N=m.attr,J=m.cleanRecursively,O=m.createElement,Q=m.css,T=m.defined,Y=m.discardElement,v=m.erase,U=m.error,K=m.extend,ca=m.find,S=m.fireEvent,G=m.getStyle,P=m.isArray,M=m.isNumber,X=m.isObject,R=m.isString,V=m.merge,Z=m.objectEach,W=m.pick,ba=m.pInt,fa=m.relativeLength,ha=m.removeEvent,ea=m.splat,ia=m.syncTimeout,ka=m.uniqueKey;a=function(){function a(b,a,c){this.series=this.renderTo=this.renderer=
-this.pointer=this.pointCount=this.plotWidth=this.plotTop=this.plotLeft=this.plotHeight=this.plotBox=this.options=this.numberFormatter=this.margin=this.legend=this.labelCollectors=this.isResizing=this.index=this.eventOptions=this.container=this.colorCounter=this.clipBox=this.chartWidth=this.chartHeight=this.bounds=this.axisOffset=this.axes=void 0;this.sharedClips={};this.yAxis=this.xAxis=this.userOptions=this.titleOffset=this.time=this.symbolCounter=this.spacingBox=this.spacing=void 0;this.getArgs(b,
-a,c)}a.chart=function(b,c,d){return new a(b,c,d)};a.prototype.getArgs=function(b,a,c){R(b)||b.nodeName?(this.renderTo=b,this.init(a,c)):this.init(b,a)};a.prototype.init=function(b,a){var d=b.plotOptions||{};S(this,"init",{args:arguments},function(){var f=V(E,b),e=f.chart;Z(f.plotOptions,function(b,a){X(b)&&(b.tooltip=d[a]&&V(d[a].tooltip)||void 0)});f.tooltip.userOptions=b.chart&&b.chart.forExport&&b.tooltip.userOptions||b.tooltip;this.userOptions=b;this.margin=[];this.spacing=[];this.bounds={h:{},
-v:{}};this.labelCollectors=[];this.callback=a;this.isResizing=0;var g=e.zooming=e.zooming||{};b.chart&&!b.chart.zooming&&(g.resetButton=e.resetZoomButton);g.key=W(g.key,e.zoomKey);g.pinchType=W(g.pinchType,e.pinchType);g.singleTouch=W(g.singleTouch,e.zoomBySingleTouch);g.type=W(g.type,e.zoomType);this.options=f;this.axes=[];this.series=[];this.time=b.time&&Object.keys(b.time).length?new h(b.time):B.time;this.numberFormatter=e.numberFormatter||y;this.styledMode=e.styledMode;this.hasCartesianSeries=
-e.showAxes;this.index=w.length;w.push(this);B.chartCount++;c(this,e);this.xAxis=[];this.yAxis=[];this.pointCount=this.colorCounter=this.symbolCounter=0;S(this,"afterInit");this.firstRender()})};a.prototype.initSeries=function(b){var a=this.options.chart;a=b.type||a.type||a.defaultSeriesType;var c=z[a];c||U(17,!0,this,{missingModuleFor:a});a=new c;"function"===typeof a.init&&a.init(this,b);return a};a.prototype.setSeriesData=function(){this.getSeriesOrderByLinks().forEach(function(b){b.points||b.data||
-!b.enabledDataSorting||b.setData(b.options.data,!1)})};a.prototype.getSeriesOrderByLinks=function(){return this.series.concat().sort(function(b,a){return b.linkedSeries.length||a.linkedSeries.length?a.linkedSeries.length-b.linkedSeries.length:0})};a.prototype.orderSeries=function(b){var a=this.series;b=b||0;for(var c=a.length;b<c;++b)a[b]&&(a[b].index=b,a[b].name=a[b].getName())};a.prototype.isInsidePlot=function(b,a,c){void 0===c&&(c={});var d=this.inverted,f=this.plotBox,e=this.plotLeft,h=this.plotTop,
-g=this.scrollablePlotBox,k=0;var n=0;c.visiblePlotOnly&&this.scrollingContainer&&(n=this.scrollingContainer,k=n.scrollLeft,n=n.scrollTop);var m=c.series;f=c.visiblePlotOnly&&g||f;g=c.inverted?a:b;a=c.inverted?b:a;b={x:g,y:a,isInsidePlot:!0,options:c};if(!c.ignoreX){var q=m&&(d&&!this.polar?m.yAxis:m.xAxis)||{pos:e,len:Infinity};g=c.paneCoordinates?q.pos+g:e+g;g>=Math.max(k+e,q.pos)&&g<=Math.min(k+e+f.width,q.pos+q.len)||(b.isInsidePlot=!1)}!c.ignoreY&&b.isInsidePlot&&(d=c.axis&&!c.axis.isXAxis&&c.axis||
-m&&(d?m.xAxis:m.yAxis)||{pos:h,len:Infinity},c=c.paneCoordinates?d.pos+a:h+a,c>=Math.max(n+h,d.pos)&&c<=Math.min(n+h+f.height,d.pos+d.len)||(b.isInsidePlot=!1));S(this,"afterIsInsidePlot",b);return b.isInsidePlot};a.prototype.redraw=function(b){S(this,"beforeRedraw");var a=this.hasCartesianSeries?this.axes:this.colorAxis||[],c=this.series,d=this.pointer,f=this.legend,e=this.userOptions.legend,h=this.renderer,g=h.isHidden(),k=[],n=this.isDirtyBox,m=this.isDirtyLegend;this.setResponsive&&this.setResponsive(!1);
-A(this.hasRendered?b:!1,this);g&&this.temporaryDisplay();this.layOutTitles();for(b=c.length;b--;){var q=c[b];if(q.options.stacking||q.options.centerInCategory){var l=!0;if(q.isDirty){var G=!0;break}}}if(G)for(b=c.length;b--;)q=c[b],q.options.stacking&&(q.isDirty=!0);c.forEach(function(b){b.isDirty&&("point"===b.options.legendType?("function"===typeof b.updateTotals&&b.updateTotals(),m=!0):e&&(e.labelFormatter||e.labelFormat)&&(m=!0));b.isDirtyData&&S(b,"updatedData")});m&&f&&f.options.enabled&&(f.render(),
-this.isDirtyLegend=!1);l&&this.getStacks();a.forEach(function(b){b.updateNames();b.setScale()});this.getMargins();a.forEach(function(b){b.isDirty&&(n=!0)});a.forEach(function(b){var a=b.min+","+b.max;b.extKey!==a&&(b.extKey=a,k.push(function(){S(b,"afterSetExtremes",K(b.eventArgs,b.getExtremes()));delete b.eventArgs}));(n||l)&&b.redraw()});n&&this.drawChartBox();S(this,"predraw");c.forEach(function(b){(n||b.isDirty)&&b.visible&&b.redraw();b.isDirtyData=!1});d&&d.reset(!0);h.draw();S(this,"redraw");
-S(this,"render");g&&this.temporaryDisplay(!0);k.forEach(function(b){b.call()})};a.prototype.get=function(b){function a(a){return a.id===b||a.options&&a.options.id===b}for(var c=this.series,d=ca(this.axes,a)||ca(this.series,a),f=0;!d&&f<c.length;f++)d=ca(c[f].points||[],a);return d};a.prototype.getAxes=function(){var b=this,a=this.options,c=a.xAxis=ea(a.xAxis||{});a=a.yAxis=ea(a.yAxis||{});S(this,"getAxes");c.forEach(function(b,a){b.index=a;b.isX=!0});a.forEach(function(b,a){b.index=a});c.concat(a).forEach(function(a){new g(b,
-a)});S(this,"afterGetAxes")};a.prototype.getSelectedPoints=function(){return this.series.reduce(function(b,a){a.getPointsCollection().forEach(function(a){W(a.selectedStaging,a.selected)&&b.push(a)});return b},[])};a.prototype.getSelectedSeries=function(){return this.series.filter(function(b){return b.selected})};a.prototype.setTitle=function(b,a,c){this.applyDescription("title",b);this.applyDescription("subtitle",a);this.applyDescription("caption",void 0);this.layOutTitles(c)};a.prototype.applyDescription=
-function(b,a){var c=this,d="title"===b?{color:"#333333",fontSize:this.options.isStock?"16px":"18px"}:{color:"#666666"};d=this.options[b]=V(!this.styledMode&&{style:d},this.options[b],a);var f=this[b];f&&a&&(this[b]=f=f.destroy());d&&!f&&(f=this.renderer.text(d.text,0,0,d.useHTML).attr({align:d.align,"class":"highcharts-"+b,zIndex:d.zIndex||4}).add(),f.update=function(a){c[{title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"}[b]](a)},this.styledMode||f.css(d.style),this[b]=f)};a.prototype.layOutTitles=
-function(b){var a=[0,0,0],c=this.renderer,d=this.spacingBox;["title","subtitle","caption"].forEach(function(b){var f=this[b],e=this.options[b],h=e.verticalAlign||"top";b="title"===b?"top"===h?-3:0:"top"===h?a[0]+2:0;var g;if(f){this.styledMode||(g=e.style&&e.style.fontSize);g=c.fontMetrics(g,f).b;f.css({width:(e.width||d.width+(e.widthAdjust||0))+"px"});var k=Math.round(f.getBBox(e.useHTML).height);f.align(K({y:"bottom"===h?g:b+g,height:k},e),!1,"spacingBox");e.floating||("top"===h?a[0]=Math.ceil(a[0]+
-k):"bottom"===h&&(a[2]=Math.ceil(a[2]+k)))}},this);a[0]&&"top"===(this.options.title.verticalAlign||"top")&&(a[0]+=this.options.title.margin);a[2]&&"bottom"===this.options.caption.verticalAlign&&(a[2]+=this.options.caption.margin);var f=!this.titleOffset||this.titleOffset.join(",")!==a.join(",");this.titleOffset=a;S(this,"afterLayOutTitles");!this.isDirtyBox&&f&&(this.isDirtyBox=this.isDirtyLegend=f,this.hasRendered&&W(b,!0)&&this.isDirtyBox&&this.redraw())};a.prototype.getChartSize=function(){var b=
-this.options.chart,a=b.width;b=b.height;var c=this.renderTo;T(a)||(this.containerWidth=G(c,"width"));T(b)||(this.containerHeight=G(c,"height"));this.chartWidth=Math.max(0,a||this.containerWidth||600);this.chartHeight=Math.max(0,fa(b,this.chartWidth)||(1<this.containerHeight?this.containerHeight:400))};a.prototype.temporaryDisplay=function(b){var a=this.renderTo;if(b)for(;a&&a.style;)a.hcOrigStyle&&(Q(a,a.hcOrigStyle),delete a.hcOrigStyle),a.hcOrigDetached&&(f.body.removeChild(a),a.hcOrigDetached=
-!1),a=a.parentNode;else for(;a&&a.style;){f.body.contains(a)||a.parentNode||(a.hcOrigDetached=!0,f.body.appendChild(a));if("none"===G(a,"display",!1)||a.hcOricDetached)a.hcOrigStyle={display:a.style.display,height:a.style.height,overflow:a.style.overflow},b={display:"block",overflow:"hidden"},a!==this.renderTo&&(b.height=0),Q(a,b),a.offsetWidth||a.style.setProperty("display","block","important");a=a.parentNode;if(a===f.body)break}};a.prototype.setClassName=function(b){this.container.className="highcharts-container "+
-(b||"")};a.prototype.getContainer=function(){var a=this.options,c=a.chart,e=ka(),h,g=this.renderTo;g||(this.renderTo=g=c.renderTo);R(g)&&(this.renderTo=g=f.getElementById(g));g||U(13,!0,this);var n=ba(N(g,"data-highcharts-chart"));M(n)&&w[n]&&w[n].hasRendered&&w[n].destroy();N(g,"data-highcharts-chart",this.index);g.innerHTML=k.emptyHTML;c.skipClone||g.offsetWidth||this.temporaryDisplay();this.getChartSize();n=this.chartWidth;var m=this.chartHeight;Q(g,{overflow:"hidden"});this.styledMode||(h=K({position:"relative",
-overflow:"hidden",width:n+"px",height:m+"px",textAlign:"left",lineHeight:"normal",zIndex:0,"-webkit-tap-highlight-color":"rgba(0,0,0,0)",userSelect:"none","touch-action":"manipulation",outline:"none"},c.style||{}));this.container=e=O("div",{id:e},h,g);this._cursor=e.style.cursor;this.renderer=new (c.renderer||!b?l.getRendererType(c.renderer):d)(e,n,m,void 0,c.forExport,a.exporting&&a.exporting.allowHTML,this.styledMode);A(void 0,this);this.setClassName(c.className);if(this.styledMode)for(var q in a.defs)this.renderer.definition(a.defs[q]);
-else this.renderer.setStyle(c.style);this.renderer.chartIndex=this.index;S(this,"afterGetContainer")};a.prototype.getMargins=function(b){var a=this.spacing,c=this.margin,d=this.titleOffset;this.resetMargins();d[0]&&!T(c[0])&&(this.plotTop=Math.max(this.plotTop,d[0]+a[0]));d[2]&&!T(c[2])&&(this.marginBottom=Math.max(this.marginBottom,d[2]+a[2]));this.legend&&this.legend.display&&this.legend.adjustMargins(c,a);S(this,"getMargins");b||this.getAxisMargins()};a.prototype.getAxisMargins=function(){var b=
-this,a=b.axisOffset=[0,0,0,0],c=b.colorAxis,d=b.margin,f=function(b){b.forEach(function(b){b.visible&&b.getOffset()})};b.hasCartesianSeries?f(b.axes):c&&c.length&&f(c);n.forEach(function(c,f){T(d[f])||(b[c]+=a[f])});b.setChartSize()};a.prototype.reflow=function(b){var a=this,c=a.options.chart,d=a.renderTo,e=T(c.width)&&T(c.height),h=c.width||G(d,"width");c=c.height||G(d,"height");d=b?b.target:u;delete a.pointer.chartPosition;if(!e&&!a.isPrinting&&h&&c&&(d===u||d===f)){if(h!==a.containerWidth||c!==
-a.containerHeight)m.clearTimeout(a.reflowTimeout),a.reflowTimeout=ia(function(){a.container&&a.setSize(void 0,void 0,!1)},b?100:0);a.containerWidth=h;a.containerHeight=c}};a.prototype.setReflow=function(b){var a=this;!1===b||this.unbindReflow?!1===b&&this.unbindReflow&&(this.unbindReflow=this.unbindReflow()):(this.unbindReflow=q(u,"resize",function(b){a.options&&a.reflow(b)}),q(this,"destroy",this.unbindReflow))};a.prototype.setSize=function(b,a,c){var d=this,f=d.renderer;d.isResizing+=1;A(c,d);c=
-f.globalAnimation;d.oldChartHeight=d.chartHeight;d.oldChartWidth=d.chartWidth;"undefined"!==typeof b&&(d.options.chart.width=b);"undefined"!==typeof a&&(d.options.chart.height=a);d.getChartSize();d.styledMode||(c?p:Q)(d.container,{width:d.chartWidth+"px",height:d.chartHeight+"px"},c);d.setChartSize(!0);f.setSize(d.chartWidth,d.chartHeight,c);d.axes.forEach(function(b){b.isDirty=!0;b.setScale()});d.isDirtyLegend=!0;d.isDirtyBox=!0;d.layOutTitles();d.getMargins();d.redraw(c);d.oldChartHeight=null;S(d,
-"resize");ia(function(){d&&S(d,"endResize",null,function(){--d.isResizing})},D(c).duration)};a.prototype.setChartSize=function(b){var a=this.inverted,c=this.renderer,d=this.chartWidth,f=this.chartHeight,e=this.options.chart,h=this.spacing,g=this.clipOffset,k,n,m,q;this.plotLeft=k=Math.round(this.plotLeft);this.plotTop=n=Math.round(this.plotTop);this.plotWidth=m=Math.max(0,Math.round(d-k-this.marginRight));this.plotHeight=q=Math.max(0,Math.round(f-n-this.marginBottom));this.plotSizeX=a?q:m;this.plotSizeY=
-a?m:q;this.plotBorderWidth=e.plotBorderWidth||0;this.spacingBox=c.spacingBox={x:h[3],y:h[0],width:d-h[3]-h[1],height:f-h[0]-h[2]};this.plotBox=c.plotBox={x:k,y:n,width:m,height:q};a=2*Math.floor(this.plotBorderWidth/2);d=Math.ceil(Math.max(a,g[3])/2);f=Math.ceil(Math.max(a,g[0])/2);this.clipBox={x:d,y:f,width:Math.floor(this.plotSizeX-Math.max(a,g[1])/2-d),height:Math.max(0,Math.floor(this.plotSizeY-Math.max(a,g[2])/2-f))};b||(this.axes.forEach(function(b){b.setAxisSize();b.setAxisTranslation()}),
-c.alignElements());S(this,"afterSetChartSize",{skipAxes:b})};a.prototype.resetMargins=function(){S(this,"resetMargins");var b=this,a=b.options.chart;["margin","spacing"].forEach(function(c){var d=a[c],f=X(d)?d:[d,d,d,d];["Top","Right","Bottom","Left"].forEach(function(d,e){b[c][e]=W(a[c+d],f[e])})});n.forEach(function(a,c){b[a]=W(b.margin[c],b.spacing[c])});b.axisOffset=[0,0,0,0];b.clipOffset=[0,0,0,0]};a.prototype.drawChartBox=function(){var b=this.options.chart,a=this.renderer,c=this.chartWidth,
-d=this.chartHeight,f=this.styledMode,e=this.plotBGImage,h=b.backgroundColor,g=b.plotBackgroundColor,k=b.plotBackgroundImage,n=this.plotLeft,m=this.plotTop,q=this.plotWidth,l=this.plotHeight,G=this.plotBox,u=this.clipRect,p=this.clipBox,M=this.chartBackground,v=this.plotBackground,w=this.plotBorder,r,z="animate";M||(this.chartBackground=M=a.rect().addClass("highcharts-background").add(),z="attr");if(f)var y=r=M.strokeWidth();else{y=b.borderWidth||0;r=y+(b.shadow?8:0);h={fill:h||"none"};if(y||M["stroke-width"])h.stroke=
-b.borderColor,h["stroke-width"]=y;M.attr(h).shadow(b.shadow)}M[z]({x:r/2,y:r/2,width:c-r-y%2,height:d-r-y%2,r:b.borderRadius});z="animate";v||(z="attr",this.plotBackground=v=a.rect().addClass("highcharts-plot-background").add());v[z](G);f||(v.attr({fill:g||"none"}).shadow(b.plotShadow),k&&(e?(k!==e.attr("href")&&e.attr("href",k),e.animate(G)):this.plotBGImage=a.image(k,n,m,q,l).add()));u?u.animate({width:p.width,height:p.height}):this.clipRect=a.clipRect(p);z="animate";w||(z="attr",this.plotBorder=
-w=a.rect().addClass("highcharts-plot-border").attr({zIndex:1}).add());f||w.attr({stroke:b.plotBorderColor,"stroke-width":b.plotBorderWidth||0,fill:"none"});w[z](w.crisp({x:n,y:m,width:q,height:l},-w.strokeWidth()));this.isDirtyBox=!1;S(this,"afterDrawChartBox")};a.prototype.propFromSeries=function(){var b=this,a=b.options.chart,c=b.options.series,d,f,e;["inverted","angular","polar"].forEach(function(h){f=z[a.type||a.defaultSeriesType];e=a[h]||f&&f.prototype[h];for(d=c&&c.length;!e&&d--;)(f=z[c[d].type])&&
-f.prototype[h]&&(e=!0);b[h]=e})};a.prototype.linkSeries=function(){var b=this,a=b.series;a.forEach(function(b){b.linkedSeries.length=0});a.forEach(function(a){var c=a.options.linkedTo;R(c)&&(c=":previous"===c?b.series[a.index-1]:b.get(c))&&c.linkedParent!==a&&(c.linkedSeries.push(a),a.linkedParent=c,c.enabledDataSorting&&a.setDataSortingOptions(),a.visible=W(a.options.visible,c.options.visible,a.visible))});S(this,"afterLinkSeries")};a.prototype.renderSeries=function(){this.series.forEach(function(b){b.translate();
-b.render()})};a.prototype.renderLabels=function(){var b=this,a=b.options.labels;a.items&&a.items.forEach(function(c){var d=K(a.style,c.style),f=ba(d.left)+b.plotLeft,e=ba(d.top)+b.plotTop+12;delete d.left;delete d.top;b.renderer.text(c.html,f,e).attr({zIndex:2}).css(d).add()})};a.prototype.render=function(){var b=this.axes,a=this.colorAxis,c=this.renderer,d=this.options,f=function(b){b.forEach(function(b){b.visible&&b.render()})},e=0;this.setTitle();this.legend=new H(this,d.legend);this.getStacks&&
-this.getStacks();this.getMargins(!0);this.setChartSize();d=this.plotWidth;b.some(function(b){if(b.horiz&&b.visible&&b.options.labels.enabled&&b.series.length)return e=21,!0});var h=this.plotHeight=Math.max(this.plotHeight-e,0);b.forEach(function(b){b.setScale()});this.getAxisMargins();var g=1.1<d/this.plotWidth,k=1.05<h/this.plotHeight;if(g||k)b.forEach(function(b){(b.horiz&&g||!b.horiz&&k)&&b.setTickInterval(!0)}),this.getMargins();this.drawChartBox();this.hasCartesianSeries?f(b):a&&a.length&&f(a);
-this.seriesGroup||(this.seriesGroup=c.g("series-group").attr({zIndex:3}).add());this.renderSeries();this.renderLabels();this.addCredits();this.setResponsive&&this.setResponsive();this.hasRendered=!0};a.prototype.addCredits=function(b){var a=this,c=V(!0,this.options.credits,b);c.enabled&&!this.credits&&(this.credits=this.renderer.text(c.text+(this.mapCredits||""),0,0).addClass("highcharts-credits").on("click",function(){c.href&&(u.location.href=c.href)}).attr({align:c.position.align,zIndex:8}),a.styledMode||
-this.credits.css(c.style),this.credits.add().align(c.position),this.credits.update=function(b){a.credits=a.credits.destroy();a.addCredits(b)})};a.prototype.destroy=function(){var b=this,a=b.axes,c=b.series,d=b.container,f=d&&d.parentNode,e;S(b,"destroy");b.renderer.forExport?v(w,b):w[b.index]=void 0;B.chartCount--;b.renderTo.removeAttribute("data-highcharts-chart");ha(b);for(e=a.length;e--;)a[e]=a[e].destroy();this.scroller&&this.scroller.destroy&&this.scroller.destroy();for(e=c.length;e--;)c[e]=
-c[e].destroy();"title subtitle chartBackground plotBackground plotBGImage plotBorder seriesGroup clipRect credits pointer rangeSelector legend resetZoomButton tooltip renderer".split(" ").forEach(function(a){var c=b[a];c&&c.destroy&&(b[a]=c.destroy())});d&&(d.innerHTML=k.emptyHTML,ha(d),f&&Y(d));Z(b,function(a,c){delete b[c]})};a.prototype.firstRender=function(){var b=this,a=b.options;if(!b.isReadyToRender||b.isReadyToRender()){b.getContainer();b.resetMargins();b.setChartSize();b.propFromSeries();
-b.getAxes();(P(a.series)?a.series:[]).forEach(function(a){b.initSeries(a)});b.linkSeries();b.setSeriesData();S(b,"beforeRender");r&&(t.isRequired()?b.pointer=new t(b,a):b.pointer=new r(b,a));b.render();b.pointer.getChartPosition();if(!b.renderer.imgCount&&!b.hasLoaded)b.onload();b.temporaryDisplay(!0)}};a.prototype.onload=function(){this.callbacks.concat([this.callback]).forEach(function(b){b&&"undefined"!==typeof this.index&&b.apply(this,[this])},this);S(this,"load");S(this,"render");T(this.index)&&
-this.setReflow(this.options.chart.reflow);this.warnIfA11yModuleNotLoaded();this.hasLoaded=!0};a.prototype.warnIfA11yModuleNotLoaded=function(){var b=this.options,a=this.title;b&&!this.accessibility&&(this.renderer.boxWrapper.attr({role:"img","aria-label":(a&&a.element.textContent||"").replace(/</g,"&lt;")}),b.accessibility&&!1===b.accessibility.enabled||U('Highcharts warning: Consider including the "accessibility.js" module to make your chart more usable for people with disabilities. Set the "accessibility.enabled" option to false to remove this warning. See https://www.highcharts.com/docs/accessibility/accessibility-module.',
-!1,this))};a.prototype.addSeries=function(b,a,c){var d=this,f;b&&(a=W(a,!0),S(d,"addSeries",{options:b},function(){f=d.initSeries(b);d.isDirtyLegend=!0;d.linkSeries();f.enabledDataSorting&&f.setData(b.data,!1);S(d,"afterAddSeries",{series:f});a&&d.redraw(c)}));return f};a.prototype.addAxis=function(b,a,c,d){return this.createAxis(a?"xAxis":"yAxis",{axis:b,redraw:c,animation:d})};a.prototype.addColorAxis=function(b,a,c){return this.createAxis("colorAxis",{axis:b,redraw:a,animation:c})};a.prototype.createAxis=
-function(b,a){b=new g(this,V(a.axis,{index:this[b].length,isX:"xAxis"===b}));W(a.redraw,!0)&&this.redraw(a.animation);return b};a.prototype.showLoading=function(b){var a=this,c=a.options,d=c.loading,f=function(){e&&Q(e,{left:a.plotLeft+"px",top:a.plotTop+"px",width:a.plotWidth+"px",height:a.plotHeight+"px"})},e=a.loadingDiv,h=a.loadingSpan;e||(a.loadingDiv=e=O("div",{className:"highcharts-loading highcharts-loading-hidden"},null,a.container));h||(a.loadingSpan=h=O("span",{className:"highcharts-loading-inner"},
-null,e),q(a,"redraw",f));e.className="highcharts-loading";k.setElementHTML(h,W(b,c.lang.loading,""));a.styledMode||(Q(e,K(d.style,{zIndex:10})),Q(h,d.labelStyle),a.loadingShown||(Q(e,{opacity:0,display:""}),p(e,{opacity:d.style.opacity||.5},{duration:d.showDuration||0})));a.loadingShown=!0;f()};a.prototype.hideLoading=function(){var b=this.options,a=this.loadingDiv;a&&(a.className="highcharts-loading highcharts-loading-hidden",this.styledMode||p(a,{opacity:0},{duration:b.loading.hideDuration||100,
-complete:function(){Q(a,{display:"none"})}}));this.loadingShown=!1};a.prototype.update=function(b,a,d,f){var e=this,g={credits:"addCredits",title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"},k=b.isResponsiveOptions,n=[],m,q;S(e,"update",{options:b});k||e.setResponsive(!1,!0);b=J(b,e.options);e.userOptions=V(e.userOptions,b);var l=b.chart;if(l){V(!0,e.options.chart,l);"className"in l&&e.setClassName(l.className);"reflow"in l&&e.setReflow(l.reflow);if("inverted"in l||"polar"in l||"type"in
-l){e.propFromSeries();var G=!0}"alignTicks"in l&&(G=!0);"events"in l&&c(this,l);Z(l,function(b,a){-1!==e.propsRequireUpdateSeries.indexOf("chart."+a)&&(m=!0);-1!==e.propsRequireDirtyBox.indexOf(a)&&(e.isDirtyBox=!0);-1!==e.propsRequireReflow.indexOf(a)&&(k?e.isDirtyBox=!0:q=!0)});!e.styledMode&&l.style&&e.renderer.setStyle(e.options.chart.style||{})}!e.styledMode&&b.colors&&(this.options.colors=b.colors);b.time&&(this.time===L&&(this.time=new h(b.time)),V(!0,e.options.time,b.time));Z(b,function(a,
-c){if(e[c]&&"function"===typeof e[c].update)e[c].update(a,!1);else if("function"===typeof e[g[c]])e[g[c]](a);else"colors"!==c&&-1===e.collectionsWithUpdate.indexOf(c)&&V(!0,e.options[c],b[c]);"chart"!==c&&-1!==e.propsRequireUpdateSeries.indexOf(c)&&(m=!0)});this.collectionsWithUpdate.forEach(function(a){if(b[a]){var c=[];e[a].forEach(function(b,a){b.options.isInternal||c.push(W(b.options.index,a))});ea(b[a]).forEach(function(b,f){var h=T(b.id),g;h&&(g=e.get(b.id));!g&&e[a]&&(g=e[a][c?c[f]:f])&&h&&
-T(g.options.id)&&(g=void 0);g&&g.coll===a&&(g.update(b,!1),d&&(g.touched=!0));!g&&d&&e.collectionsWithInit[a]&&(e.collectionsWithInit[a][0].apply(e,[b].concat(e.collectionsWithInit[a][1]||[]).concat([!1])).touched=!0)});d&&e[a].forEach(function(b){b.touched||b.options.isInternal?delete b.touched:n.push(b)})}});n.forEach(function(b){b.chart&&b.remove&&b.remove(!1)});G&&e.axes.forEach(function(b){b.update({},!1)});m&&e.getSeriesOrderByLinks().forEach(function(b){b.chart&&b.update({},!1)},this);G=l&&
-l.width;l=l&&(R(l.height)?fa(l.height,G||e.chartWidth):l.height);q||M(G)&&G!==e.chartWidth||M(l)&&l!==e.chartHeight?e.setSize(G,l,f):W(a,!0)&&e.redraw(f);S(e,"afterUpdate",{options:b,redraw:a,animation:f})};a.prototype.setSubtitle=function(b,a){this.applyDescription("subtitle",b);this.layOutTitles(a)};a.prototype.setCaption=function(b,a){this.applyDescription("caption",b);this.layOutTitles(a)};a.prototype.showResetZoom=function(){function b(){a.zoomOut()}var a=this,c=E.lang,d=a.options.chart.zooming.resetButton,
-f=d.theme,e="chart"===d.relativeTo||"spacingBox"===d.relativeTo?null:"scrollablePlotBox";S(this,"beforeShowResetZoom",null,function(){a.resetZoomButton=a.renderer.button(c.resetZoom,null,null,b,f).attr({align:d.position.align,title:c.resetZoomTitle}).addClass("highcharts-reset-zoom").add().align(d.position,!1,e)});S(this,"afterShowResetZoom")};a.prototype.zoomOut=function(){S(this,"selection",{resetSelection:!0},this.zoom)};a.prototype.zoom=function(b){var a=this,c=a.pointer,d=!1,f;!b||b.resetSelection?
-(a.axes.forEach(function(b){f=b.zoom()}),c.initiated=!1):b.xAxis.concat(b.yAxis).forEach(function(b){var e=b.axis;if(c[e.isXAxis?"zoomX":"zoomY"]&&T(c.mouseDownX)&&T(c.mouseDownY)&&a.isInsidePlot(c.mouseDownX-a.plotLeft,c.mouseDownY-a.plotTop,{axis:e})||!T(a.inverted?c.mouseDownX:c.mouseDownY))f=e.zoom(b.min,b.max),e.displayBtn&&(d=!0)});var e=a.resetZoomButton;d&&!e?a.showResetZoom():!d&&X(e)&&(a.resetZoomButton=e.destroy());f&&a.redraw(W(a.options.chart.animation,b&&b.animation,100>a.pointCount))};
-a.prototype.pan=function(b,a){var c=this,d=c.hoverPoints;a="object"===typeof a?a:{enabled:a,type:"x"};var f=c.options.chart;f&&f.panning&&(f.panning=a);var e=a.type,h;S(this,"pan",{originalEvent:b},function(){d&&d.forEach(function(b){b.setState()});var a=c.xAxis;"xy"===e?a=a.concat(c.yAxis):"y"===e&&(a=c.yAxis);var f={};a.forEach(function(a){if(a.options.panningEnabled&&!a.options.isInternal){var d=a.horiz,g=b[d?"chartX":"chartY"];d=d?"mouseDownX":"mouseDownY";var k=c[d],n=a.minPointOffset||0,m=a.reversed&&
-!c.inverted||!a.reversed&&c.inverted?-1:1,l=a.getExtremes(),q=a.toValue(k-g,!0)+n*m,G=a.toValue(k+a.len-g,!0)-(n*m||a.isXAxis&&a.pointRangePadding||0),u=G<q;m=a.hasVerticalPanning();k=u?G:q;q=u?q:G;var p=a.panningState;!m||a.isXAxis||p&&!p.isDirty||a.series.forEach(function(b){var a=b.getProcessedData(!0);a=b.getExtremes(a.yData,!0);p||(p={startMin:Number.MAX_VALUE,startMax:-Number.MAX_VALUE});M(a.dataMin)&&M(a.dataMax)&&(p.startMin=Math.min(W(b.options.threshold,Infinity),a.dataMin,p.startMin),p.startMax=
-Math.max(W(b.options.threshold,-Infinity),a.dataMax,p.startMax))});m=Math.min(W(p&&p.startMin,l.dataMin),n?l.min:a.toValue(a.toPixels(l.min)-a.minPixelPadding));G=Math.max(W(p&&p.startMax,l.dataMax),n?l.max:a.toValue(a.toPixels(l.max)+a.minPixelPadding));a.panningState=p;a.isOrdinal||(n=m-k,0<n&&(q+=n,k=m),n=q-G,0<n&&(q=G,k-=n),a.series.length&&k!==l.min&&q!==l.max&&k>=m&&q<=G&&(a.setExtremes(k,q,!1,!1,{trigger:"pan"}),!c.resetZoomButton&&k!==m&&q!==G&&e.match("y")&&(c.showResetZoom(),a.displayBtn=
-!1),h=!0),f[d]=g)}});Z(f,function(b,a){c[a]=b});h&&c.redraw(!1);Q(c.container,{cursor:"move"})})};return a}();K(a.prototype,{callbacks:[],collectionsWithInit:{xAxis:[a.prototype.addAxis,[!0]],yAxis:[a.prototype.addAxis,[!1]],series:[a.prototype.addSeries]},collectionsWithUpdate:["xAxis","yAxis","series"],propsRequireDirtyBox:"backgroundColor borderColor borderWidth borderRadius plotBackgroundColor plotBackgroundImage plotBorderColor plotBorderWidth plotShadow shadow".split(" "),propsRequireReflow:"margin marginTop marginRight marginBottom marginLeft spacing spacingTop spacingRight spacingBottom spacingLeft".split(" "),
-propsRequireUpdateSeries:"chart.inverted chart.polar chart.ignoreHiddenSeries chart.type colors plotOptions time tooltip".split(" ")});"";return a});K(g,"Core/Legend/LegendSymbol.js",[g["Core/Utilities.js"]],function(a){var g=a.extend,x=a.merge,F=a.pick,C;(function(a){a.drawLineMarker=function(a){var t=this.legendItem=this.legendItem||{},r=this.options,l=a.symbolWidth,e=a.symbolHeight,d=e/2,h=this.chart.renderer,m=t.group;a=a.baseline-Math.round(.3*a.fontMetrics.b);var k={},p=r.marker,D=0;this.chart.styledMode||
-(k={"stroke-width":Math.min(r.lineWidth||0,24)},r.dashStyle?k.dashstyle=r.dashStyle:"square"!==r.linecap&&(k["stroke-linecap"]="round"));t.line=h.path().addClass("highcharts-graph").attr(k).add(m);k["stroke-linecap"]&&(D=Math.min(t.line.strokeWidth(),l)/2);t.line.attr({d:[["M",D,a],["L",l-D,a]]});p&&!1!==p.enabled&&l&&(r=Math.min(F(p.radius,d),d),0===this.symbol.indexOf("url")&&(p=x(p,{width:e,height:e}),r=0),t.symbol=t=h.symbol(this.symbol,l/2-r,a-r,2*r,2*r,g({context:"legend"},p)).addClass("highcharts-point").add(m),
-t.isMarker=!0)};a.drawRectangle=function(a,g){g=g.legendItem||{};var r=a.symbolHeight,l=a.options.squareSymbol;g.symbol=this.chart.renderer.rect(l?(a.symbolWidth-r)/2:0,a.baseline-r+1,l?r:a.symbolWidth,r,F(a.options.symbolRadius,r/2)).addClass("highcharts-point").attr({zIndex:3}).add(g.group)}})(C||(C={}));return C});K(g,"Core/Series/SeriesDefaults.js",[],function(){return{lineWidth:2,allowPointSelect:!1,crisp:!0,showCheckbox:!1,animation:{duration:1E3},events:{},marker:{enabledThreshold:2,lineColor:"#ffffff",
-lineWidth:0,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:"#cccccc",lineColor:"#000000",lineWidth:2}}},point:{events:{}},dataLabels:{animation:{},align:"center",borderWidth:0,defer:!0,formatter:function(){var a=this.series.chart.numberFormatter;return"number"!==typeof this.y?"":a(this.y,-1)},padding:5,style:{fontSize:"11px",fontWeight:"bold",color:"contrast",textOutline:"1px contrast"},verticalAlign:"bottom",x:0,y:0},
-cropThreshold:300,opacity:1,pointRange:0,softThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{animation:{duration:0}},inactive:{animation:{duration:50},opacity:.2}},stickyTracking:!0,turboThreshold:1E3,findNearestPointBy:"x"}});K(g,"Core/Series/Series.js",[g["Core/Animation/AnimationUtilities.js"],g["Core/Defaults.js"],g["Core/Foundation.js"],g["Core/Globals.js"],g["Core/Legend/LegendSymbol.js"],g["Core/Series/Point.js"],
-g["Core/Series/SeriesDefaults.js"],g["Core/Series/SeriesRegistry.js"],g["Core/Renderer/SVG/SVGElement.js"],g["Core/Utilities.js"]],function(a,g,x,F,C,B,H,t,r,l){var e=a.animObject,d=a.setAnimation,h=g.defaultOptions,m=x.registerEventOptions,k=F.hasTouch,p=F.svg,D=F.win,A=t.seriesTypes,E=l.arrayMax,L=l.arrayMin,y=l.clamp,c=l.cleanRecursively,w=l.correctFloat,f=l.defined,n=l.erase,b=l.error,u=l.extend,z=l.find,q=l.fireEvent,N=l.getNestedProperty,J=l.isArray,O=l.isNumber,Q=l.isString,T=l.merge,Y=l.objectEach,
-v=l.pick,U=l.removeEvent,K=l.splat,ca=l.syncTimeout;a=function(){function a(){this.zones=this.yAxis=this.xAxis=this.userOptions=this.tooltipOptions=this.processedYData=this.processedXData=this.points=this.options=this.linkedSeries=this.index=this.eventsToUnbind=this.eventOptions=this.data=this.chart=this._i=void 0}a.prototype.init=function(b,a){q(this,"init",{options:a});var c=this,d=b.series;this.eventsToUnbind=[];c.chart=b;c.options=c.setOptions(a);a=c.options;c.linkedSeries=[];c.bindAxes();u(c,
-{name:a.name,state:"",visible:!1!==a.visible,selected:!0===a.selected});m(this,a);var f=a.events;if(f&&f.click||a.point&&a.point.events&&a.point.events.click||a.allowPointSelect)b.runTrackerClick=!0;c.getColor();c.getSymbol();c.parallelArrays.forEach(function(b){c[b+"Data"]||(c[b+"Data"]=[])});c.isCartesian&&(b.hasCartesianSeries=!0);var e;d.length&&(e=d[d.length-1]);c._i=v(e&&e._i,-1)+1;c.opacity=c.options.opacity;b.orderSeries(this.insert(d));a.dataSorting&&a.dataSorting.enabled?c.setDataSortingOptions():
-c.points||c.data||c.setData(a.data,!1);q(this,"afterInit")};a.prototype.is=function(b){return A[b]&&this instanceof A[b]};a.prototype.insert=function(b){var a=this.options.index,c;if(O(a)){for(c=b.length;c--;)if(a>=v(b[c].options.index,b[c]._i)){b.splice(c+1,0,this);break}-1===c&&b.unshift(this);c+=1}else b.push(this);return v(c,b.length-1)};a.prototype.bindAxes=function(){var a=this,c=a.options,d=a.chart,f;q(this,"bindAxes",null,function(){(a.axisTypes||[]).forEach(function(e){var h=0;d[e].forEach(function(b){f=
-b.options;if(c[e]===h&&!f.isInternal||"undefined"!==typeof c[e]&&c[e]===f.id||"undefined"===typeof c[e]&&0===f.index)a.insert(b.series),a[e]=b,b.isDirty=!0;f.isInternal||h++});a[e]||a.optionalAxis===e||b(18,!0,d)})});q(this,"afterBindAxes")};a.prototype.updateParallelArrays=function(b,a){var c=b.series,d=arguments,f=O(a)?function(d){var f="y"===d&&c.toYData?c.toYData(b):b[d];c[d+"Data"][a]=f}:function(b){Array.prototype[a].apply(c[b+"Data"],Array.prototype.slice.call(d,2))};c.parallelArrays.forEach(f)};
-a.prototype.hasData=function(){return this.visible&&"undefined"!==typeof this.dataMax&&"undefined"!==typeof this.dataMin||this.visible&&this.yData&&0<this.yData.length};a.prototype.autoIncrement=function(b){var a=this.options,c=a.pointIntervalUnit,d=a.relativeXValue,f=this.chart.time,e=this.xIncrement,h;e=v(e,a.pointStart,0);this.pointInterval=h=v(this.pointInterval,a.pointInterval,1);d&&O(b)&&(h*=b);c&&(a=new f.Date(e),"day"===c?f.set("Date",a,f.get("Date",a)+h):"month"===c?f.set("Month",a,f.get("Month",
-a)+h):"year"===c&&f.set("FullYear",a,f.get("FullYear",a)+h),h=a.getTime()-e);if(d&&O(b))return e+h;this.xIncrement=e+h;return e};a.prototype.setDataSortingOptions=function(){var b=this.options;u(this,{requireSorting:!1,sorted:!1,enabledDataSorting:!0,allowDG:!1});f(b.pointRange)||(b.pointRange=1)};a.prototype.setOptions=function(b){var a=this.chart,c=a.options,d=c.plotOptions,e=a.userOptions||{};b=T(b);a=a.styledMode;var g={plotOptions:d,userOptions:b};q(this,"setOptions",g);var k=g.plotOptions[this.type],
-n=e.plotOptions||{};this.userOptions=g.userOptions;e=T(k,d.series,e.plotOptions&&e.plotOptions[this.type],b);this.tooltipOptions=T(h.tooltip,h.plotOptions.series&&h.plotOptions.series.tooltip,h.plotOptions[this.type].tooltip,c.tooltip.userOptions,d.series&&d.series.tooltip,d[this.type].tooltip,b.tooltip);this.stickyTracking=v(b.stickyTracking,n[this.type]&&n[this.type].stickyTracking,n.series&&n.series.stickyTracking,this.tooltipOptions.shared&&!this.noSharedTooltip?!0:e.stickyTracking);null===k.marker&&
-delete e.marker;this.zoneAxis=e.zoneAxis;d=this.zones=(e.zones||[]).slice();!e.negativeColor&&!e.negativeFillColor||e.zones||(c={value:e[this.zoneAxis+"Threshold"]||e.threshold||0,className:"highcharts-negative"},a||(c.color=e.negativeColor,c.fillColor=e.negativeFillColor),d.push(c));d.length&&f(d[d.length-1].value)&&d.push(a?{}:{color:this.color,fillColor:this.fillColor});q(this,"afterSetOptions",{options:e});return e};a.prototype.getName=function(){return v(this.options.name,"Series "+(this.index+
-1))};a.prototype.getCyclic=function(b,a,c){var d=this.chart,e=this.userOptions,h=b+"Index",g=b+"Counter",k=c?c.length:v(d.options.chart[b+"Count"],d[b+"Count"]);if(!a){var n=v(e[h],e["_"+h]);f(n)||(d.series.length||(d[g]=0),e["_"+h]=n=d[g]%k,d[g]+=1);c&&(a=c[n])}"undefined"!==typeof n&&(this[h]=n);this[b]=a};a.prototype.getColor=function(){this.chart.styledMode?this.getCyclic("color"):this.options.colorByPoint?this.color="#cccccc":this.getCyclic("color",this.options.color||h.plotOptions[this.type].color,
-this.chart.options.colors)};a.prototype.getPointsCollection=function(){return(this.hasGroupedData?this.points:this.data)||[]};a.prototype.getSymbol=function(){this.getCyclic("symbol",this.options.marker.symbol,this.chart.options.symbols)};a.prototype.findPointIndex=function(b,a){var c=b.id,d=b.x,f=this.points,e=this.options.dataSorting,h,g;if(c)e=this.chart.get(c),e instanceof B&&(h=e);else if(this.linkedParent||this.enabledDataSorting||this.options.relativeXValue)if(h=function(a){return!a.touched&&
-a.index===b.index},e&&e.matchByName?h=function(a){return!a.touched&&a.name===b.name}:this.options.relativeXValue&&(h=function(a){return!a.touched&&a.options.x===b.x}),h=z(f,h),!h)return;if(h){var k=h&&h.index;"undefined"!==typeof k&&(g=!0)}"undefined"===typeof k&&O(d)&&(k=this.xData.indexOf(d,a));-1!==k&&"undefined"!==typeof k&&this.cropped&&(k=k>=this.cropStart?k-this.cropStart:k);!g&&O(k)&&f[k]&&f[k].touched&&(k=void 0);return k};a.prototype.updateData=function(b,a){var c=this.options,d=c.dataSorting,
-e=this.points,h=[],g=this.requireSorting,k=b.length===e.length,n,m,q,l=!0;this.xIncrement=null;b.forEach(function(b,a){var m=f(b)&&this.pointClass.prototype.optionsToObject.call({series:this},b)||{},l=m.x;if(m.id||O(l)){if(m=this.findPointIndex(m,q),-1===m||"undefined"===typeof m?h.push(b):e[m]&&b!==c.data[m]?(e[m].update(b,!1,null,!1),e[m].touched=!0,g&&(q=m+1)):e[m]&&(e[m].touched=!0),!k||a!==m||d&&d.enabled||this.hasDerivedData)n=!0}else h.push(b)},this);if(n)for(b=e.length;b--;)(m=e[b])&&!m.touched&&
-m.remove&&m.remove(!1,a);else!k||d&&d.enabled?l=!1:(b.forEach(function(b,a){b!==e[a].y&&e[a].update&&e[a].update(b,!1,null,!1)}),h.length=0);e.forEach(function(b){b&&(b.touched=!1)});if(!l)return!1;h.forEach(function(b){this.addPoint(b,!1,null,null,!1)},this);null===this.xIncrement&&this.xData&&this.xData.length&&(this.xIncrement=E(this.xData),this.autoIncrement());return!0};a.prototype.setData=function(a,c,d,f){void 0===c&&(c=!0);var e=this,h=e.points,g=h&&h.length||0,k=e.options,n=e.chart,m=k.dataSorting,
-l=e.xAxis,q=k.turboThreshold,u=this.xData,p=this.yData,G=e.pointArrayMap;G=G&&G.length;var v=k.keys,w,r=0,z=1,y=null;if(!n.options.chart.allowMutatingData){k.data&&delete e.options.data;e.userOptions.data&&delete e.userOptions.data;var M=T(!0,a)}a=M||a||[];M=a.length;m&&m.enabled&&(a=this.sortData(a));n.options.chart.allowMutatingData&&!1!==f&&M&&g&&!e.cropped&&!e.hasGroupedData&&e.visible&&!e.boosted&&(w=this.updateData(a,d));if(!w){e.xIncrement=null;e.colorCounter=0;this.parallelArrays.forEach(function(b){e[b+
-"Data"].length=0});if(q&&M>q)if(y=e.getFirstValidPoint(a),O(y))for(d=0;d<M;d++)u[d]=this.autoIncrement(),p[d]=a[d];else if(J(y))if(G)if(y.length===G)for(d=0;d<M;d++)u[d]=this.autoIncrement(),p[d]=a[d];else for(d=0;d<M;d++)f=a[d],u[d]=f[0],p[d]=f.slice(1,G+1);else if(v&&(r=v.indexOf("x"),z=v.indexOf("y"),r=0<=r?r:0,z=0<=z?z:1),1===y.length&&(z=0),r===z)for(d=0;d<M;d++)u[d]=this.autoIncrement(),p[d]=a[d][z];else for(d=0;d<M;d++)f=a[d],u[d]=f[r],p[d]=f[z];else b(12,!1,n);else for(d=0;d<M;d++)"undefined"!==
-typeof a[d]&&(f={series:e},e.pointClass.prototype.applyOptions.apply(f,[a[d]]),e.updateParallelArrays(f,d));p&&Q(p[0])&&b(14,!0,n);e.data=[];e.options.data=e.userOptions.data=a;for(d=g;d--;)h[d]&&h[d].destroy&&h[d].destroy();l&&(l.minRange=l.userMinRange);e.isDirty=n.isDirtyBox=!0;e.isDirtyData=!!h;d=!1}"point"===k.legendType&&(this.processData(),this.generatePoints());c&&n.redraw(d)};a.prototype.sortData=function(b){var a=this,c=a.options.dataSorting.sortKey||"y",d=function(b,a){return f(a)&&b.pointClass.prototype.optionsToObject.call({series:b},
-a)||{}};b.forEach(function(c,e){b[e]=d(a,c);b[e].index=e},this);b.concat().sort(function(b,a){b=N(c,b);a=N(c,a);return a<b?-1:a>b?1:0}).forEach(function(b,a){b.x=a},this);a.linkedSeries&&a.linkedSeries.forEach(function(a){var c=a.options,e=c.data;c.dataSorting&&c.dataSorting.enabled||!e||(e.forEach(function(c,f){e[f]=d(a,c);b[f]&&(e[f].x=b[f].x,e[f].index=f)}),a.setData(e,!1))});return b};a.prototype.getProcessedData=function(a){var c=this.xAxis,d=this.options,e=d.cropThreshold,f=a||this.getExtremesFromAll||
-d.getExtremesFromAll,h=this.isCartesian;a=c&&c.val2lin;d=!(!c||!c.logarithmic);var g=0,k=this.xData,n=this.yData,m=this.requireSorting;var l=!1;var q=k.length;if(c){l=c.getExtremes();var u=l.min;var p=l.max;l=!(!c.categories||c.names.length)}if(h&&this.sorted&&!f&&(!e||q>e||this.forceCrop))if(k[q-1]<u||k[0]>p)k=[],n=[];else if(this.yData&&(k[0]<u||k[q-1]>p)){var G=this.cropData(this.xData,this.yData,u,p);k=G.xData;n=G.yData;g=G.start;G=!0}for(e=k.length||1;--e;)if(c=d?a(k[e])-a(k[e-1]):k[e]-k[e-1],
-0<c&&("undefined"===typeof v||c<v))var v=c;else 0>c&&m&&!l&&(b(15,!1,this.chart),m=!1);return{xData:k,yData:n,cropped:G,cropStart:g,closestPointRange:v}};a.prototype.processData=function(b){var a=this.xAxis;if(this.isCartesian&&!this.isDirty&&!a.isDirty&&!this.yAxis.isDirty&&!b)return!1;b=this.getProcessedData();this.cropped=b.cropped;this.cropStart=b.cropStart;this.processedXData=b.xData;this.processedYData=b.yData;this.closestPointRange=this.basePointRange=b.closestPointRange;q(this,"afterProcessData")};
-a.prototype.cropData=function(b,a,c,d,e){var f=b.length,h,g=0,k=f;e=v(e,this.cropShoulder);for(h=0;h<f;h++)if(b[h]>=c){g=Math.max(0,h-e);break}for(c=h;c<f;c++)if(b[c]>d){k=c+e;break}return{xData:b.slice(g,k),yData:a.slice(g,k),start:g,end:k}};a.prototype.generatePoints=function(){var b=this.options,a=this.processedData||b.data,c=this.processedXData,d=this.processedYData,e=this.pointClass,f=c.length,h=this.cropStart||0,g=this.hasGroupedData,k=b.keys,n=[];b=b.dataGrouping&&b.dataGrouping.groupAll?h:
-0;var m,l,p=this.data;if(!p&&!g){var v=[];v.length=a.length;p=this.data=v}k&&g&&(this.options.keys=!1);for(l=0;l<f;l++){v=h+l;if(g){var r=(new e).init(this,[c[l]].concat(K(d[l])));r.dataGroup=this.groupMap[b+l];r.dataGroup.options&&(r.options=r.dataGroup.options,u(r,r.dataGroup.options),delete r.dataLabels)}else(r=p[v])||"undefined"===typeof a[v]||(p[v]=r=(new e).init(this,a[v],c[l]));r&&(r.index=g?b+l:v,n[l]=r)}this.options.keys=k;if(p&&(f!==(m=p.length)||g))for(l=0;l<m;l++)l!==h||g||(l+=f),p[l]&&
-(p[l].destroyElements(),p[l].plotX=void 0);this.data=p;this.points=n;q(this,"afterGeneratePoints")};a.prototype.getXExtremes=function(b){return{min:L(b),max:E(b)}};a.prototype.getExtremes=function(b,a){var c=this.xAxis,d=this.yAxis,e=this.processedXData||this.xData,f=[],h=this.requireSorting?this.cropShoulder:0;d=d?d.positiveValuesOnly:!1;var g,k=0,n=0,m=0;b=b||this.stackedYData||this.processedYData||[];var l=b.length;if(c){var p=c.getExtremes();k=p.min;n=p.max}for(g=0;g<l;g++){var u=e[g];p=b[g];
-var G=(O(p)||J(p))&&(p.length||0<p||!d);u=a||this.getExtremesFromAll||this.options.getExtremesFromAll||this.cropped||!c||(e[g+h]||u)>=k&&(e[g-h]||u)<=n;if(G&&u)if(G=p.length)for(;G--;)O(p[G])&&(f[m++]=p[G]);else f[m++]=p}b={activeYData:f,dataMin:L(f),dataMax:E(f)};q(this,"afterGetExtremes",{dataExtremes:b});return b};a.prototype.applyExtremes=function(){var b=this.getExtremes();this.dataMin=b.dataMin;this.dataMax=b.dataMax;return b};a.prototype.getFirstValidPoint=function(b){for(var a=b.length,c=
-0,d=null;null===d&&c<a;)d=b[c],c++;return d};a.prototype.translate=function(){this.processedXData||this.processData();this.generatePoints();var b=this.options,a=b.stacking,c=this.xAxis,d=c.categories,e=this.enabledDataSorting,h=this.yAxis,g=this.points,k=g.length,n=this.pointPlacementToXValue(),m=!!n,l=b.threshold,p=b.startFromThreshold?l:0,u=this.zoneAxis||"y",r,z,t=Number.MAX_VALUE;for(r=0;r<k;r++){var D=g[r],E=D.x,A=void 0,N=void 0,I=D.y,x=D.low,C=a&&h.stacking&&h.stacking.stacks[(this.negStacks&&
-I<(p?0:l)?"-":"")+this.stackKey];if(h.positiveValuesOnly&&!h.validatePositiveValue(I)||c.positiveValuesOnly&&!c.validatePositiveValue(E))D.isNull=!0;D.plotX=z=w(y(c.translate(E,0,0,0,1,n,"flags"===this.type),-1E5,1E5));if(a&&this.visible&&C&&C[E]){var L=this.getStackIndicator(L,E,this.index);!D.isNull&&L.key&&(A=C[E],N=A.points[L.key]);A&&J(N)&&(x=N[0],I=N[1],x===p&&L.key===C[E].base&&(x=v(O(l)?l:h.min)),h.positiveValuesOnly&&f(x)&&0>=x&&(x=void 0),D.total=D.stackTotal=v(A.total),D.percentage=f(D.y)&&
-A.total?D.y/A.total*100:void 0,D.stackY=I,this.irregularWidths||A.setOffset(this.pointXOffset||0,this.barW||0,void 0,void 0,void 0,this.xAxis))}D.yBottom=f(x)?y(h.translate(x,0,1,0,1),-1E5,1E5):void 0;this.dataModify&&(I=this.dataModify.modifyValue(I,r));D.plotY=void 0;O(I)&&(A=h.translate(I,!1,!0,!1,!0),"undefined"!==typeof A&&(D.plotY=y(A,-1E5,1E5)));D.isInside=this.isPointInside(D);D.clientX=m?w(c.translate(E,0,0,0,1,n)):z;D.negative=D[u]<(b[u+"Threshold"]||l||0);D.category=v(d&&d[D.x],D.x);if(!D.isNull&&
-!1!==D.visible){"undefined"!==typeof B&&(t=Math.min(t,Math.abs(z-B)));var B=z}D.zone=this.zones.length?D.getZone():void 0;!D.graphic&&this.group&&e&&(D.isNew=!0)}this.closestPointRangePx=t;q(this,"afterTranslate")};a.prototype.getValidPoints=function(b,a,c){var d=this.chart;return(b||this.points||[]).filter(function(b){return a&&!d.isInsidePlot(b.plotX,b.plotY,{inverted:d.inverted})?!1:!1!==b.visible&&(c||!b.isNull)})};a.prototype.getClipBox=function(){var b=this.chart,a=this.xAxis,c=this.yAxis,d=
-T(b.clipBox);a&&a.len!==b.plotSizeX&&(d.width=a.len);c&&c.len!==b.plotSizeY&&(d.height=c.len);return d};a.prototype.getSharedClipKey=function(){return this.sharedClipKey=(this.options.xAxis||0)+","+(this.options.yAxis||0)};a.prototype.setClip=function(){var b=this.chart,a=this.group,c=this.markerGroup,d=b.sharedClips;b=b.renderer;var e=this.getClipBox(),f=this.getSharedClipKey(),h=d[f];h?h.animate(e):d[f]=h=b.clipRect(e);a&&a.clip(!1===this.options.clip?void 0:h);c&&c.clip()};a.prototype.animate=
-function(b){var a=this.chart,c=this.group,d=this.markerGroup,f=a.inverted,h=e(this.options.animation),g=[this.getSharedClipKey(),h.duration,h.easing,h.defer].join(),k=a.sharedClips[g],n=a.sharedClips[g+"m"];if(b&&c)h=this.getClipBox(),k?k.attr("height",h.height):(h.width=0,f&&(h.x=a.plotHeight),k=a.renderer.clipRect(h),a.sharedClips[g]=k,n=a.renderer.clipRect({x:-99,y:-99,width:f?a.plotWidth+199:99,height:f?99:a.plotHeight+199}),a.sharedClips[g+"m"]=n),c.clip(k),d&&d.clip(n);else if(k&&!k.hasClass("highcharts-animating")){a=
-this.getClipBox();var m=h.step;d&&d.element.childNodes.length&&(h.step=function(b,a){m&&m.apply(a,arguments);"width"===a.prop&&n&&n.element&&n.attr(f?"height":"width",b+99)});k.addClass("highcharts-animating").animate(a,h)}};a.prototype.afterAnimate=function(){var b=this;this.setClip();Y(this.chart.sharedClips,function(a,c,d){a&&!b.chart.container.querySelector('[clip-path="url(#'.concat(a.id,')"]'))&&(a.destroy(),delete d[c])});this.finishedAnimating=!0;q(this,"afterAnimate")};a.prototype.drawPoints=
-function(b){void 0===b&&(b=this.points);var a=this.chart,c=a.styledMode,d=this.colorAxis,e=this.options.marker,f=this[this.specialGroup||"markerGroup"],h=this.xAxis,g=v(e.enabled,!h||h.isRadial?!0:null,this.closestPointRangePx>=e.enabledThreshold*e.radius),k,n;if(!1!==e.enabled||this._hasPointMarkers)for(k=0;k<b.length;k++){var m=b[k];var l=(n=m.graphic)?"animate":"attr";var q=m.marker||{};var p=!!m.marker;if((g&&"undefined"===typeof q.enabled||q.enabled)&&!m.isNull&&!1!==m.visible){var u=v(q.symbol,
-this.symbol,"rect");var G=this.markerAttribs(m,m.selected&&"select");this.enabledDataSorting&&(m.startXPos=h.reversed?-(G.width||0):h.width);var r=!1!==m.isInside;!n&&r&&(0<(G.width||0)||m.hasImage)&&(m.graphic=n=a.renderer.symbol(u,G.x,G.y,G.width,G.height,p?q:e).add(f),this.enabledDataSorting&&a.hasRendered&&(n.attr({x:m.startXPos}),l="animate"));n&&"animate"===l&&n[r?"show":"hide"](r).animate(G);if(n)if(q=this.pointAttribs(m,c||!m.selected?void 0:"select"),c)d&&n.css({fill:q.fill});else n[l](q);
-n&&n.addClass(m.getClassName(),!0)}else n&&(m.graphic=n.destroy())}};a.prototype.markerAttribs=function(b,a){var c=this.options,d=c.marker,e=b.marker||{},f=e.symbol||d.symbol,h={},g=v(e.radius,d&&d.radius);a&&(d=d.states[a],a=e.states&&e.states[a],g=v(a&&a.radius,d&&d.radius,g&&g+(d&&d.radiusPlus||0)));b.hasImage=f&&0===f.indexOf("url");b.hasImage&&(g=0);b=b.pos();O(g)&&b&&(h.x=b[0]-g,h.y=b[1]-g,c.crisp&&(h.x=Math.floor(h.x)));g&&(h.width=h.height=2*g);return h};a.prototype.pointAttribs=function(b,
-a){var c=this.options.marker,d=b&&b.options,e=d&&d.marker||{},f=d&&d.color,h=b&&b.color,g=b&&b.zone&&b.zone.color,k=this.color;b=v(e.lineWidth,c.lineWidth);d=1;k=f||g||h||k;f=e.fillColor||c.fillColor||k;h=e.lineColor||c.lineColor||k;a=a||"normal";c=c.states[a]||{};a=e.states&&e.states[a]||{};b=v(a.lineWidth,c.lineWidth,b+v(a.lineWidthPlus,c.lineWidthPlus,0));f=a.fillColor||c.fillColor||f;h=a.lineColor||c.lineColor||h;d=v(a.opacity,c.opacity,d);return{stroke:h,"stroke-width":b,fill:f,opacity:d}};a.prototype.destroy=
-function(b){var a=this,c=a.chart,d=/AppleWebKit\/533/.test(D.navigator.userAgent),e=a.data||[],f,h,g,k;q(a,"destroy",{keepEventsForUpdate:b});this.removeEvents(b);(a.axisTypes||[]).forEach(function(b){(k=a[b])&&k.series&&(n(k.series,a),k.isDirty=k.forceRedraw=!0)});a.legendItem&&a.chart.legend.destroyItem(a);for(h=e.length;h--;)(g=e[h])&&g.destroy&&g.destroy();a.clips&&a.clips.forEach(function(b){return b.destroy()});l.clearTimeout(a.animationTimeout);Y(a,function(b,a){b instanceof r&&!b.survive&&
-(f=d&&"group"===a?"hide":"destroy",b[f]())});c.hoverSeries===a&&(c.hoverSeries=void 0);n(c.series,a);c.orderSeries();Y(a,function(c,d){b&&"hcEvents"===d||delete a[d]})};a.prototype.applyZones=function(){var b=this,a=this.chart,c=a.renderer,d=this.zones,e=this.clips||[],f=this.graph,h=this.area,g=Math.max(a.plotWidth,a.plotHeight),k=this[(this.zoneAxis||"y")+"Axis"],n=a.inverted,m,l,q,p,u,r,z,w,t=!1;if(d.length&&(f||h)&&k&&"undefined"!==typeof k.min){var D=k.reversed;var E=k.horiz;f&&!this.showLine&&
-f.hide();h&&h.hide();var A=k.getExtremes();d.forEach(function(d,G){m=D?E?a.plotWidth:0:E?0:k.toPixels(A.min)||0;m=y(v(l,m),0,g);l=y(Math.round(k.toPixels(v(d.value,A.max),!0)||0),0,g);t&&(m=l=k.toPixels(A.max));p=Math.abs(m-l);u=Math.min(m,l);r=Math.max(m,l);k.isXAxis?(q={x:n?r:u,y:0,width:p,height:g},E||(q.x=a.plotHeight-q.x)):(q={x:0,y:n?r:u,width:g,height:p},E&&(q.y=a.plotWidth-q.y));n&&c.isVML&&(q=k.isXAxis?{x:0,y:D?u:r,height:q.width,width:a.chartWidth}:{x:q.y-a.plotLeft-a.spacingBox.x,y:0,width:q.height,
-height:a.chartHeight});e[G]?e[G].animate(q):e[G]=c.clipRect(q);z=b["zone-area-"+G];w=b["zone-graph-"+G];f&&w&&w.clip(e[G]);h&&z&&z.clip(e[G]);t=d.value>A.max;b.resetZones&&0===l&&(l=void 0)});this.clips=e}else b.visible&&(f&&f.show(),h&&h.show())};a.prototype.plotGroup=function(b,a,c,d,e){var h=this[b],g=!h;c={visibility:c,zIndex:d||.1};"undefined"===typeof this.opacity||this.chart.styledMode||"inactive"===this.state||(c.opacity=this.opacity);g&&(this[b]=h=this.chart.renderer.g().add(e));h.addClass("highcharts-"+
-a+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(f(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(h.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0);h.attr(c)[g?"attr":"animate"](this.getPlotBox(a));return h};a.prototype.getPlotBox=function(b){var a=this.xAxis,c=this.yAxis,d=this.chart;b=d.inverted&&!d.polar&&a&&!1!==this.invertible&&"series"===b;d.inverted&&(a=c,c=this.xAxis);return{translateX:a?a.left:d.plotLeft,translateY:c?
-c.top:d.plotTop,rotation:b?90:0,rotationOriginX:b?(a.len-c.len)/2:0,rotationOriginY:b?(a.len+c.len)/2:0,scaleX:b?-1:1,scaleY:1}};a.prototype.removeEvents=function(b){b||U(this);this.eventsToUnbind.length&&(this.eventsToUnbind.forEach(function(b){b()}),this.eventsToUnbind.length=0)};a.prototype.render=function(){var b=this,a=b.chart,c=b.options,d=e(c.animation),f=b.visible?"inherit":"hidden",h=c.zIndex,g=b.hasRendered,k=a.seriesGroup;a=!b.finishedAnimating&&a.renderer.isSVG?d.duration:0;q(this,"render");
-b.plotGroup("group","series",f,h,k);b.markerGroup=b.plotGroup("markerGroup","markers",f,h,k);!1!==c.clip&&b.setClip();b.animate&&a&&b.animate(!0);b.drawGraph&&(b.drawGraph(),b.applyZones());b.visible&&b.drawPoints();b.drawDataLabels&&b.drawDataLabels();b.redrawPoints&&b.redrawPoints();b.drawTracker&&!1!==b.options.enableMouseTracking&&b.drawTracker();b.animate&&a&&b.animate();g||(a&&d.defer&&(a+=d.defer),b.animationTimeout=ca(function(){b.afterAnimate()},a||0));b.isDirty=!1;b.hasRendered=!0;q(b,"afterRender")};
-a.prototype.redraw=function(){var b=this.isDirty||this.isDirtyData;this.translate();this.render();b&&delete this.kdTree};a.prototype.searchPoint=function(b,a){var c=this.xAxis,d=this.yAxis,e=this.chart.inverted;return this.searchKDTree({clientX:e?c.len-b.chartY+c.pos:b.chartX-c.pos,plotY:e?d.len-b.chartX+d.pos:b.chartY-d.pos},a,b)};a.prototype.buildKDTree=function(b){function a(b,d,e){var f=b&&b.length;if(f){var h=c.kdAxisArray[d%e];b.sort(function(b,a){return b[h]-a[h]});f=Math.floor(f/2);return{point:b[f],
-left:a(b.slice(0,f),d+1,e),right:a(b.slice(f+1),d+1,e)}}}this.buildingKdTree=!0;var c=this,d=-1<c.options.findNearestPointBy.indexOf("y")?2:1;delete c.kdTree;ca(function(){c.kdTree=a(c.getValidPoints(null,!c.directTouch),d,d);c.buildingKdTree=!1},c.options.kdNow||b&&"touchstart"===b.type?0:1)};a.prototype.searchKDTree=function(b,a,c){function d(b,a,c,n){var m=a.point,l=e.kdAxisArray[c%n],q=m,p=f(b[h])&&f(m[h])?Math.pow(b[h]-m[h],2):null;var u=f(b[g])&&f(m[g])?Math.pow(b[g]-m[g],2):null;u=(p||0)+(u||
-0);m.dist=f(u)?Math.sqrt(u):Number.MAX_VALUE;m.distX=f(p)?Math.sqrt(p):Number.MAX_VALUE;l=b[l]-m[l];u=0>l?"left":"right";p=0>l?"right":"left";a[u]&&(u=d(b,a[u],c+1,n),q=u[k]<q[k]?u:m);a[p]&&Math.sqrt(l*l)<q[k]&&(b=d(b,a[p],c+1,n),q=b[k]<q[k]?b:q);return q}var e=this,h=this.kdAxisArray[0],g=this.kdAxisArray[1],k=a?"distX":"dist";a=-1<e.options.findNearestPointBy.indexOf("y")?2:1;this.kdTree||this.buildingKdTree||this.buildKDTree(c);if(this.kdTree)return d(b,this.kdTree,a,a)};a.prototype.pointPlacementToXValue=
-function(){var b=this.options,a=b.pointRange,c=this.xAxis;b=b.pointPlacement;"between"===b&&(b=c.reversed?-.5:.5);return O(b)?b*(a||c.pointRange):0};a.prototype.isPointInside=function(b){var a=this.chart,c=this.xAxis,d=this.yAxis;return"undefined"!==typeof b.plotY&&"undefined"!==typeof b.plotX&&0<=b.plotY&&b.plotY<=(d?d.len:a.plotHeight)&&0<=b.plotX&&b.plotX<=(c?c.len:a.plotWidth)};a.prototype.drawTracker=function(){var b=this,a=b.options,c=a.trackByArea,d=[].concat(c?b.areaPath:b.graphPath),e=b.chart,
-f=e.pointer,h=e.renderer,g=e.options.tooltip.snap,n=b.tracker,m=function(a){if(e.hoverSeries!==b)b.onMouseOver()},l="rgba(192,192,192,"+(p?.0001:.002)+")";n?n.attr({d:d}):b.graph&&(b.tracker=h.path(d).attr({visibility:b.visible?"inherit":"hidden",zIndex:2}).addClass(c?"highcharts-tracker-area":"highcharts-tracker-line").add(b.group),e.styledMode||b.tracker.attr({"stroke-linecap":"round","stroke-linejoin":"round",stroke:l,fill:c?l:"none","stroke-width":b.graph.strokeWidth()+(c?0:2*g)}),[b.tracker,
-b.markerGroup,b.dataLabelsGroup].forEach(function(b){if(b&&(b.addClass("highcharts-tracker").on("mouseover",m).on("mouseout",function(b){f.onTrackerMouseOut(b)}),a.cursor&&!e.styledMode&&b.css({cursor:a.cursor}),k))b.on("touchstart",m)}));q(this,"afterDrawTracker")};a.prototype.addPoint=function(b,a,c,d,e){var f=this.options,h=this.data,g=this.chart,k=this.xAxis;k=k&&k.hasNames&&k.names;var n=f.data,m=this.xData,l;a=v(a,!0);var p={series:this};this.pointClass.prototype.applyOptions.apply(p,[b]);var u=
-p.x;var r=m.length;if(this.requireSorting&&u<m[r-1])for(l=!0;r&&m[r-1]>u;)r--;this.updateParallelArrays(p,"splice",r,0,0);this.updateParallelArrays(p,r);k&&p.name&&(k[u]=p.name);n.splice(r,0,b);if(l||this.processedData)this.data.splice(r,0,null),this.processData();"point"===f.legendType&&this.generatePoints();c&&(h[0]&&h[0].remove?h[0].remove(!1):(h.shift(),this.updateParallelArrays(p,"shift"),n.shift()));!1!==e&&q(this,"addPoint",{point:p});this.isDirtyData=this.isDirty=!0;a&&g.redraw(d)};a.prototype.removePoint=
-function(b,a,c){var e=this,f=e.data,h=f[b],g=e.points,k=e.chart,n=function(){g&&g.length===f.length&&g.splice(b,1);f.splice(b,1);e.options.data.splice(b,1);e.updateParallelArrays(h||{series:e},"splice",b,1);h&&h.destroy();e.isDirty=!0;e.isDirtyData=!0;a&&k.redraw()};d(c,k);a=v(a,!0);h?h.firePointEvent("remove",null,n):n()};a.prototype.remove=function(b,a,c,d){function e(){f.destroy(d);h.isDirtyLegend=h.isDirtyBox=!0;h.linkSeries();v(b,!0)&&h.redraw(a)}var f=this,h=f.chart;!1!==c?q(f,"remove",null,
-e):e()};a.prototype.update=function(a,d){a=c(a,this.userOptions);q(this,"update",{options:a});var e=this,f=e.chart,h=e.userOptions,g=e.initialType||e.type,k=f.options.plotOptions,n=A[g].prototype,m=e.finishedAnimating&&{animation:!1},l={},p=["eventOptions","navigatorSeries","baseSeries"],r=a.type||h.type||f.options.chart.type,z=!(this.hasDerivedData||r&&r!==this.type||"undefined"!==typeof a.pointStart||"undefined"!==typeof a.pointInterval||"undefined"!==typeof a.relativeXValue||a.joinBy||a.mapData||
-e.hasOptionChanged("dataGrouping")||e.hasOptionChanged("pointStart")||e.hasOptionChanged("pointInterval")||e.hasOptionChanged("pointIntervalUnit")||e.hasOptionChanged("keys"));r=r||g;z&&(p.push("data","isDirtyData","points","processedData","processedXData","processedYData","xIncrement","cropped","_hasPointMarkers","_hasPointLabels","clips","nodes","layout","level","mapMap","mapData","minY","maxY","minX","maxX"),!1!==a.visible&&p.push("area","graph"),e.parallelArrays.forEach(function(b){p.push(b+"Data")}),
-a.data&&(a.dataSorting&&u(e.options.dataSorting,a.dataSorting),this.setData(a.data,!1)));a=T(h,m,{index:"undefined"===typeof h.index?e.index:h.index,pointStart:v(k&&k.series&&k.series.pointStart,h.pointStart,e.xData[0])},!z&&{data:e.options.data},a);z&&a.data&&(a.data=e.options.data);p=["group","markerGroup","dataLabelsGroup","transformGroup","shadowGroup"].concat(p);p.forEach(function(b){p[b]=e[b];delete e[b]});k=!1;if(A[r]){if(k=r!==e.type,e.remove(!1,!1,!1,!0),k)if(Object.setPrototypeOf)Object.setPrototypeOf(e,
-A[r].prototype);else{m=Object.hasOwnProperty.call(e,"hcEvents")&&e.hcEvents;for(w in n)e[w]=void 0;u(e,A[r].prototype);m?e.hcEvents=m:delete e.hcEvents}}else b(17,!0,f,{missingModuleFor:r});p.forEach(function(b){e[b]=p[b]});e.init(f,a);if(z&&this.points){a=e.options;if(!1===a.visible)l.graphic=1,l.dataLabel=1;else if(!e._hasPointLabels){n=a.marker;var w=a.dataLabels;h=h.marker||{};!n||!1!==n.enabled&&h.symbol===n.symbol&&h.height===n.height&&h.width===n.width||(l.graphic=1);w&&!1===w.enabled&&(l.dataLabel=
-1)}h=0;for(n=this.points;h<n.length;h++)(w=n[h])&&w.series&&(w.resolveColor(),Object.keys(l).length&&w.destroyElements(l),!1===a.showInLegend&&w.legendItem&&f.legend.destroyItem(w))}e.initialType=g;f.linkSeries();k&&e.linkedSeries.length&&(e.isDirtyData=!0);q(this,"afterUpdate");v(d,!0)&&f.redraw(z?void 0:!1)};a.prototype.setName=function(b){this.name=this.options.name=this.userOptions.name=b;this.chart.isDirtyLegend=!0};a.prototype.hasOptionChanged=function(b){var a=this.options[b],c=this.chart.options.plotOptions,
-d=this.userOptions[b];return d?a!==d:a!==v(c&&c[this.type]&&c[this.type][b],c&&c.series&&c.series[b],a)};a.prototype.onMouseOver=function(){var b=this.chart,a=b.hoverSeries;b.pointer.setHoverChartIndex();if(a&&a!==this)a.onMouseOut();this.options.events.mouseOver&&q(this,"mouseOver");this.setState("hover");b.hoverSeries=this};a.prototype.onMouseOut=function(){var b=this.options,a=this.chart,c=a.tooltip,d=a.hoverPoint;a.hoverSeries=null;if(d)d.onMouseOut();this&&b.events.mouseOut&&q(this,"mouseOut");
-!c||this.stickyTracking||c.shared&&!this.noSharedTooltip||c.hide();a.series.forEach(function(b){b.setState("",!0)})};a.prototype.setState=function(b,a){var c=this,d=c.options,e=c.graph,f=d.inactiveOtherPoints,h=d.states,g=v(h[b||"normal"]&&h[b||"normal"].animation,c.chart.options.chart.animation),k=d.lineWidth,n=0,m=d.opacity;b=b||"";if(c.state!==b&&([c.group,c.markerGroup,c.dataLabelsGroup].forEach(function(a){a&&(c.state&&a.removeClass("highcharts-series-"+c.state),b&&a.addClass("highcharts-series-"+
-b))}),c.state=b,!c.chart.styledMode)){if(h[b]&&!1===h[b].enabled)return;b&&(k=h[b].lineWidth||k+(h[b].lineWidthPlus||0),m=v(h[b].opacity,m));if(e&&!e.dashstyle&&O(k))for(d={"stroke-width":k},e.animate(d,g);c["zone-graph-"+n];)c["zone-graph-"+n].animate(d,g),n+=1;f||[c.group,c.markerGroup,c.dataLabelsGroup,c.labelBySeries].forEach(function(b){b&&b.animate({opacity:m},g)})}a&&f&&c.points&&c.setAllPointsToState(b||void 0)};a.prototype.setAllPointsToState=function(b){this.points.forEach(function(a){a.setState&&
-a.setState(b)})};a.prototype.setVisible=function(b,a){var c=this,d=c.chart,e=d.options.chart.ignoreHiddenSeries,f=c.visible,h=(c.visible=b=c.options.visible=c.userOptions.visible="undefined"===typeof b?!f:b)?"show":"hide";["group","dataLabelsGroup","markerGroup","tracker","tt"].forEach(function(b){if(c[b])c[b][h]()});if(d.hoverSeries===c||(d.hoverPoint&&d.hoverPoint.series)===c)c.onMouseOut();c.legendItem&&d.legend.colorizeItem(c,b);c.isDirty=!0;c.options.stacking&&d.series.forEach(function(b){b.options.stacking&&
-b.visible&&(b.isDirty=!0)});c.linkedSeries.forEach(function(a){a.setVisible(b,!1)});e&&(d.isDirtyBox=!0);q(c,h);!1!==a&&d.redraw()};a.prototype.show=function(){this.setVisible(!0)};a.prototype.hide=function(){this.setVisible(!1)};a.prototype.select=function(b){this.selected=b=this.options.selected="undefined"===typeof b?!this.selected:b;this.checkbox&&(this.checkbox.checked=b);q(this,b?"select":"unselect")};a.prototype.shouldShowTooltip=function(b,a,c){void 0===c&&(c={});c.series=this;c.visiblePlotOnly=
-!0;return this.chart.isInsidePlot(b,a,c)};a.defaultOptions=H;a.types=t.seriesTypes;a.registerType=t.registerSeriesType;return a}();u(a.prototype,{axisTypes:["xAxis","yAxis"],coll:"series",colorCounter:0,cropShoulder:1,directTouch:!1,drawLegendSymbol:C.drawLineMarker,isCartesian:!0,kdAxisArray:["clientX","plotY"],parallelArrays:["x","y"],pointClass:B,requireSorting:!0,sorted:!0});t.series=a;"";"";return a});K(g,"Extensions/ScrollablePlotArea.js",[g["Core/Animation/AnimationUtilities.js"],g["Core/Axis/Axis.js"],
-g["Core/Chart/Chart.js"],g["Core/Series/Series.js"],g["Core/Renderer/RendererRegistry.js"],g["Core/Utilities.js"]],function(a,g,x,F,C,B){var A=a.stop,t=B.addEvent,r=B.createElement,l=B.defined,e=B.merge,d=B.pick;t(x,"afterSetChartSize",function(a){var d=this.options.chart.scrollablePlotArea,h=d&&d.minWidth;d=d&&d.minHeight;if(!this.renderer.forExport){if(h){if(this.scrollablePixelsX=h=Math.max(0,h-this.chartWidth)){this.scrollablePlotBox=this.renderer.scrollablePlotBox=e(this.plotBox);this.plotBox.width=
-this.plotWidth+=h;this.inverted?this.clipBox.height+=h:this.clipBox.width+=h;var p={1:{name:"right",value:h}}}}else d&&(this.scrollablePixelsY=h=Math.max(0,d-this.chartHeight),l(h)&&(this.scrollablePlotBox=this.renderer.scrollablePlotBox=e(this.plotBox),this.plotBox.height=this.plotHeight+=h,this.inverted?this.clipBox.width+=h:this.clipBox.height+=h,p={2:{name:"bottom",value:h}}));p&&!a.skipAxes&&this.axes.forEach(function(a){p[a.side]?a.getPlotLinePath=function(){var d=p[a.side].name,e=this[d];this[d]=
-e-p[a.side].value;var h=g.prototype.getPlotLinePath.apply(this,arguments);this[d]=e;return h}:(a.setAxisSize(),a.setAxisTranslation())})}});t(x,"render",function(){this.scrollablePixelsX||this.scrollablePixelsY?(this.setUpScrolling&&this.setUpScrolling(),this.applyFixed()):this.fixedDiv&&this.applyFixed()});x.prototype.setUpScrolling=function(){var a=this,d={WebkitOverflowScrolling:"touch",overflowX:"hidden",overflowY:"hidden"};this.scrollablePixelsX&&(d.overflowX="auto");this.scrollablePixelsY&&
-(d.overflowY="auto");this.scrollingParent=r("div",{className:"highcharts-scrolling-parent"},{position:"relative"},this.renderTo);this.scrollingContainer=r("div",{className:"highcharts-scrolling"},d,this.scrollingParent);var e;t(this.scrollingContainer,"scroll",function(){a.pointer&&(delete a.pointer.chartPosition,a.hoverPoint&&(e=a.hoverPoint),a.pointer.runPointActions(void 0,e,!0))});this.innerContainer=r("div",{className:"highcharts-inner-container"},null,this.scrollingContainer);this.innerContainer.appendChild(this.container);
-this.setUpScrolling=null};x.prototype.moveFixedElements=function(){var a=this.container,d=this.fixedRenderer,e=".highcharts-breadcrumbs-group .highcharts-contextbutton .highcharts-credits .highcharts-legend .highcharts-legend-checkbox .highcharts-navigator-series .highcharts-navigator-xaxis .highcharts-navigator-yaxis .highcharts-navigator .highcharts-reset-zoom .highcharts-drillup-button .highcharts-scrollbar .highcharts-subtitle .highcharts-title".split(" "),g;this.scrollablePixelsX&&!this.inverted?
-g=".highcharts-yaxis":this.scrollablePixelsX&&this.inverted?g=".highcharts-xaxis":this.scrollablePixelsY&&!this.inverted?g=".highcharts-xaxis":this.scrollablePixelsY&&this.inverted&&(g=".highcharts-yaxis");g&&e.push(""+g+":not(.highcharts-radial-axis)",""+g+"-labels:not(.highcharts-radial-axis-labels)");e.forEach(function(e){[].forEach.call(a.querySelectorAll(e),function(a){(a.namespaceURI===d.SVG_NS?d.box:d.box.parentNode).appendChild(a);a.style.pointerEvents="auto"})})};x.prototype.applyFixed=function(){var a=
-!this.fixedDiv,e=this.options.chart,g=e.scrollablePlotArea,l=C.getRendererType();a?(this.fixedDiv=r("div",{className:"highcharts-fixed"},{position:"absolute",overflow:"hidden",pointerEvents:"none",zIndex:(e.style&&e.style.zIndex||0)+2,top:0},null,!0),this.scrollingContainer&&this.scrollingContainer.parentNode.insertBefore(this.fixedDiv,this.scrollingContainer),this.renderTo.style.overflow="visible",this.fixedRenderer=e=new l(this.fixedDiv,this.chartWidth,this.chartHeight,this.options.chart.style),
-this.scrollableMask=e.path().attr({fill:this.options.chart.backgroundColor||"#fff","fill-opacity":d(g.opacity,.85),zIndex:-1}).addClass("highcharts-scrollable-mask").add(),t(this,"afterShowResetZoom",this.moveFixedElements),t(this,"afterApplyDrilldown",this.moveFixedElements),t(this,"afterLayOutTitles",this.moveFixedElements)):this.fixedRenderer.setSize(this.chartWidth,this.chartHeight);if(this.scrollableDirty||a)this.scrollableDirty=!1,this.moveFixedElements();e=this.chartWidth+(this.scrollablePixelsX||
-0);l=this.chartHeight+(this.scrollablePixelsY||0);A(this.container);this.container.style.width=e+"px";this.container.style.height=l+"px";this.renderer.boxWrapper.attr({width:e,height:l,viewBox:[0,0,e,l].join(" ")});this.chartBackground.attr({width:e,height:l});this.scrollingContainer.style.height=this.chartHeight+"px";a&&(g.scrollPositionX&&(this.scrollingContainer.scrollLeft=this.scrollablePixelsX*g.scrollPositionX),g.scrollPositionY&&(this.scrollingContainer.scrollTop=this.scrollablePixelsY*g.scrollPositionY));
-l=this.axisOffset;a=this.plotTop-l[0]-1;g=this.plotLeft-l[3]-1;e=this.plotTop+this.plotHeight+l[2]+1;l=this.plotLeft+this.plotWidth+l[1]+1;var D=this.plotLeft+this.plotWidth-(this.scrollablePixelsX||0),x=this.plotTop+this.plotHeight-(this.scrollablePixelsY||0);a=this.scrollablePixelsX?[["M",0,a],["L",this.plotLeft-1,a],["L",this.plotLeft-1,e],["L",0,e],["Z"],["M",D,a],["L",this.chartWidth,a],["L",this.chartWidth,e],["L",D,e],["Z"]]:this.scrollablePixelsY?[["M",g,0],["L",g,this.plotTop-1],["L",l,this.plotTop-
-1],["L",l,0],["Z"],["M",g,x],["L",g,this.chartHeight],["L",l,this.chartHeight],["L",l,x],["Z"]]:[["M",0,0]];"adjustHeight"!==this.redrawTrigger&&this.scrollableMask.attr({d:a})};t(g,"afterInit",function(){this.chart.scrollableDirty=!0});t(F,"show",function(){this.chart.scrollableDirty=!0});""});K(g,"Core/Axis/Stacking/StackItem.js",[g["Core/FormatUtilities.js"],g["Core/Series/SeriesRegistry.js"],g["Core/Utilities.js"]],function(a,g,x){var A=a.format,C=g.series,B=x.destroyObjectProperties,H=x.pick,
-t=x.isNumber;a=function(){function a(a,e,d,h,g){var k=a.chart.inverted,m=a.reversed;this.axis=a;a=this.isNegative=!!d!==!!m;this.options=e=e||{};this.x=h;this.cumulative=this.total=null;this.points={};this.hasValidPoints=!1;this.stack=g;this.rightCliff=this.leftCliff=0;this.alignOptions={align:e.align||(k?a?"left":"right":"center"),verticalAlign:e.verticalAlign||(k?"middle":a?"bottom":"top"),y:e.y,x:e.x};this.textAlign=e.textAlign||(k?a?"right":"left":"center")}a.prototype.destroy=function(){B(this,
-this.axis)};a.prototype.render=function(a){var e=this.axis.chart,d=this.options,h=d.format;h=h?A(h,this,e):d.formatter.call(this);this.label?this.label.attr({text:h,visibility:"hidden"}):(this.label=e.renderer.label(h,null,void 0,d.shape,void 0,void 0,d.useHTML,!1,"stack-labels"),h={r:d.borderRadius||0,text:h,padding:H(d.padding,5),visibility:"hidden"},e.styledMode||(h.fill=d.backgroundColor,h.stroke=d.borderColor,h["stroke-width"]=d.borderWidth,this.label.css(d.style||{})),this.label.attr(h),this.label.added||
-this.label.add(a));this.label.labelrank=e.plotSizeY};a.prototype.setOffset=function(a,e,d,h,g,k){var m=this.alignOptions,l=this.axis,r=this.label,E=this.options,A=this.textAlign,y=l.chart;a=this.getStackBox({xOffset:a,width:e,boxBottom:d,boxTop:h,defaultX:g,xAxis:k});g=m.verticalAlign;r&&a&&(e=r.getBBox(),d=r.padding,h="justify"===H(E.overflow,"justify"),m.x=E.x||0,m.y=E.y||0,g=this.adjustStackPosition({labelBox:e,verticalAlign:g,textAlign:A}),A=g.x,g=g.y,a.x-=A,a.y-=g,r.align(m,!1,a),(A=y.isInsidePlot(r.alignAttr.x+
-m.x+A,r.alignAttr.y+m.y+g))||(h=!1),h&&C.prototype.justifyDataLabel.call(l,r,m,r.alignAttr,e,a),r.attr({x:r.alignAttr.x,y:r.alignAttr.y,rotation:E.rotation,rotationOriginX:e.width/2,rotationOriginY:e.height/2}),H(!h&&E.crop,!0)&&(A=t(r.x)&&t(r.y)&&y.isInsidePlot(r.x-d+r.width,r.y)&&y.isInsidePlot(r.x+d,r.y)),r[A?"show":"hide"]())};a.prototype.adjustStackPosition=function(a){var e=a.labelBox,d={bottom:0,middle:1,top:2,right:1,center:0,left:-1};return{x:e.width/2+e.width/2*d[a.textAlign],y:e.height/
-2*d[a.verticalAlign]}};a.prototype.getStackBox=function(a){var e=this.axis,d=e.chart,h=a.boxTop,g=a.defaultX,k=a.xOffset,l=a.width,r=a.boxBottom;h=e.stacking.usePercentage?100:H(h,this.total,0);h=e.toPixels(h);a=H(g,(a.xAxis||d.xAxis[0]).toPixels(this.x))+k;e=e.toPixels(r?r:0);e=Math.abs(h-e);r=this.isNegative;return d.inverted?{x:(r?h:h-e)-d.plotLeft,y:a-d.plotTop,width:e,height:l}:{x:a-d.plotLeft,y:(r?h-e:h)-d.plotTop,width:l,height:e}};return a}();"";return a});K(g,"Core/Axis/Stacking/StackingAxis.js",
-[g["Core/Animation/AnimationUtilities.js"],g["Core/Axis/Axis.js"],g["Core/Series/SeriesRegistry.js"],g["Core/Axis/Stacking/StackItem.js"],g["Core/Utilities.js"]],function(a,g,x,F,C){function A(){var b=this,a=b.inverted;b.yAxis.forEach(function(b){b.stacking&&b.stacking.stacks&&b.hasVisibleSeries&&(b.stacking.oldStacks=b.stacking.stacks)});b.series.forEach(function(c){var d=c.xAxis&&c.xAxis.options||{};!c.options.stacking||!0!==c.visible&&!1!==b.options.chart.ignoreHiddenSeries||(c.stackKey=[c.type,
-f(c.options.stack,""),a?d.top:d.left,a?d.height:d.width].join())})}function H(){var b=this.stacking;if(b){var a=b.stacks;w(a,function(b,c){E(b);a[c]=null});b&&b.stackTotalGroup&&b.stackTotalGroup.destroy()}}function t(){"yAxis"!==this.coll||this.stacking||(this.stacking=new n(this))}function r(b,a,c,d){!I(b)||b.x!==a||d&&b.stackKey!==d?b={x:a,index:0,key:d,stackKey:d}:b.index++;b.key=[c,a,b.index].join();return b}function l(){var b=this,a=b.stackKey,c=b.yAxis.stacking.stacks,d=b.processedXData,e=
-b[b.options.stacking+"Stacker"],f;e&&[a,"-"+a].forEach(function(a){for(var h=d.length,g,k;h--;)g=d[h],f=b.getStackIndicator(f,g,b.index,a),(k=(g=c[a]&&c[a][g])&&g.points[f.key])&&e.call(b,k,g,h)})}function e(b,a,c){a=a.total?100/a.total:0;b[0]=D(b[0]*a);b[1]=D(b[1]*a);this.stackedYData[c]=b[1]}function d(){var b=this.yAxis.stacking;this.options.centerInCategory&&(this.is("column")||this.is("columnrange"))&&!this.options.stacking&&1<this.chart.series.length?k.setStackedPoints.call(this,"group"):b&&
-w(b.stacks,function(a,c){"group"===c.slice(-5)&&(w(a,function(b){return b.destroy()}),delete b.stacks[c])})}function h(b){var a=this.chart,c=b||this.options.stacking;if(c&&(!0===this.visible||!1===a.options.chart.ignoreHiddenSeries)){var d=this.processedXData,e=this.processedYData,h=[],g=e.length,k=this.options,n=k.threshold,m=f(k.startFromThreshold&&n,0);k=k.stack;b=b?""+this.type+",".concat(c):this.stackKey;var l="-"+b,p=this.negStacks;a="group"===c?a.yAxis[0]:this.yAxis;var u=a.stacking.stacks,
-r=a.stacking.oldStacks,w,t;a.stacking.stacksTouched+=1;for(t=0;t<g;t++){var E=d[t];var A=e[t];var x=this.getStackIndicator(x,E,this.index);var C=x.key;var B=(w=p&&A<(m?0:n))?l:b;u[B]||(u[B]={});u[B][E]||(r[B]&&r[B][E]?(u[B][E]=r[B][E],u[B][E].total=null):u[B][E]=new F(a,a.options.stackLabels,!!w,E,k));B=u[B][E];null!==A?(B.points[C]=B.points[this.index]=[f(B.cumulative,m)],I(B.cumulative)||(B.base=C),B.touched=a.stacking.stacksTouched,0<x.index&&!1===this.singleStacks&&(B.points[C][0]=B.points[this.index+
-","+E+",0"][0])):B.points[C]=B.points[this.index]=null;"percent"===c?(w=w?b:l,p&&u[w]&&u[w][E]?(w=u[w][E],B.total=w.total=Math.max(w.total,B.total)+Math.abs(A)||0):B.total=D(B.total+(Math.abs(A)||0))):"group"===c?(y(A)&&(A=A[0]),null!==A&&(B.total=(B.total||0)+1)):B.total=D(B.total+(A||0));B.cumulative="group"===c?(B.total||1)-1:f(B.cumulative,m)+(A||0);null!==A&&(B.points[C].push(B.cumulative),h[t]=B.cumulative,B.hasValidPoints=!0)}"percent"===c&&(a.stacking.usePercentage=!0);"group"!==c&&(this.stackedYData=
-h);a.stacking.oldStacks={}}}var m=a.getDeferredAnimation,k=x.series.prototype,p=C.addEvent,D=C.correctFloat,I=C.defined,E=C.destroyObjectProperties,L=C.fireEvent,y=C.isArray,c=C.isNumber,w=C.objectEach,f=C.pick,n=function(){function b(b){this.oldStacks={};this.stacks={};this.stacksTouched=0;this.axis=b}b.prototype.buildStacks=function(){var b=this.axis,a=b.series,c=b.options.reversedStacks,d=a.length,e;this.usePercentage=!1;for(e=d;e--;){var f=a[c?e:d-e-1];f.setStackedPoints();f.setGroupedPoints()}for(e=
-0;e<d;e++)a[e].modifyStacks();L(b,"afterBuildStacks")};b.prototype.cleanStacks=function(){if(this.oldStacks)var b=this.stacks=this.oldStacks;w(b,function(b){w(b,function(b){b.cumulative=b.total})})};b.prototype.resetStacks=function(){var b=this;w(this.stacks,function(a){w(a,function(d,e){c(d.touched)&&d.touched<b.stacksTouched?(d.destroy(),delete a[e]):(d.total=null,d.cumulative=null)})})};b.prototype.renderStackTotals=function(){var b=this.axis,a=b.chart,c=a.renderer,d=this.stacks;b=m(a,b.options.stackLabels&&
-b.options.stackLabels.animation||!1);var e=this.stackTotalGroup=this.stackTotalGroup||c.g("stack-labels").attr({zIndex:6,opacity:0}).add();e.translate(a.plotLeft,a.plotTop);w(d,function(b){w(b,function(b){b.render(e)})});e.animate({opacity:1},b)};return b}(),b;(function(b){var a=[];b.compose=function(b,c,f){-1===a.indexOf(b)&&(a.push(b),p(b,"init",t),p(b,"destroy",H));-1===a.indexOf(c)&&(a.push(c),c.prototype.getStacks=A);-1===a.indexOf(f)&&(a.push(f),b=f.prototype,b.getStackIndicator=r,b.modifyStacks=
-l,b.percentStacker=e,b.setGroupedPoints=d,b.setStackedPoints=h)}})(b||(b={}));return b});K(g,"Series/Line/LineSeries.js",[g["Core/Series/Series.js"],g["Core/Series/SeriesRegistry.js"],g["Core/Utilities.js"]],function(a,g,x){var A=this&&this.__extends||function(){var a=function(g,r){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,e){a.__proto__=e}||function(a,e){for(var d in e)e.hasOwnProperty(d)&&(a[d]=e[d])};return a(g,r)};return function(g,r){function l(){this.constructor=g}
-a(g,r);g.prototype=null===r?Object.create(r):(l.prototype=r.prototype,new l)}}(),C=x.defined,B=x.merge;x=function(g){function t(){var a=null!==g&&g.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}A(t,g);t.prototype.drawGraph=function(){var a=this,g=this.options,e=(this.gappedPath||this.getGraphPath).call(this),d=this.chart.styledMode,h=[["graph","highcharts-graph"]];d||h[0].push(g.lineColor||this.color||"#cccccc",g.dashStyle);h=a.getZonesGraphs(h);h.forEach(function(h,
-k){var m=h[0],l=a[m],r=l?"animate":"attr";l?(l.endX=a.preventGraphAnimation?null:e.xMap,l.animate({d:e})):e.length&&(a[m]=l=a.chart.renderer.path(e).addClass(h[1]).attr({zIndex:1}).add(a.group));l&&!d&&(m={stroke:h[2],"stroke-width":g.lineWidth||0,fill:a.fillGraph&&a.color||"none"},h[3]?m.dashstyle=h[3]:"square"!==g.linecap&&(m["stroke-linecap"]=m["stroke-linejoin"]="round"),l[r](m).shadow(2>k&&g.shadow));l&&(l.startX=e.xMap,l.isArea=e.isArea)})};t.prototype.getGraphPath=function(a,g,e){var d=this,
-h=d.options,m=[],k=[],l,r=h.step;a=a||d.points;var t=a.reversed;t&&a.reverse();(r={right:1,center:2}[r]||r&&3)&&t&&(r=4-r);a=this.getValidPoints(a,!1,!(h.connectNulls&&!g&&!e));a.forEach(function(p,t){var y=p.plotX,c=p.plotY,w=a[t-1];(p.leftCliff||w&&w.rightCliff)&&!e&&(l=!0);p.isNull&&!C(g)&&0<t?l=!h.connectNulls:p.isNull&&!g?l=!0:(0===t||l?t=[["M",p.plotX,p.plotY]]:d.getPointSpline?t=[d.getPointSpline(a,p,t)]:r?(t=1===r?[["L",w.plotX,c]]:2===r?[["L",(w.plotX+y)/2,w.plotY],["L",(w.plotX+y)/2,c]]:
-[["L",y,w.plotY]],t.push(["L",y,c])):t=[["L",y,c]],k.push(p.x),r&&(k.push(p.x),2===r&&k.push(p.x)),m.push.apply(m,t),l=!1)});m.xMap=k;return d.graphPath=m};t.prototype.getZonesGraphs=function(a){this.zones.forEach(function(g,e){e=["zone-graph-"+e,"highcharts-graph highcharts-zone-graph-"+e+" "+(g.className||"")];this.chart.styledMode||e.push(g.color||this.color,g.dashStyle||this.options.dashStyle);a.push(e)},this);return a};t.defaultOptions=B(a.defaultOptions,{});return t}(a);g.registerSeriesType("line",
-x);"";return x});K(g,"Series/Area/AreaSeries.js",[g["Core/Color/Color.js"],g["Core/Legend/LegendSymbol.js"],g["Core/Series/SeriesRegistry.js"],g["Core/Utilities.js"]],function(a,g,x,F){var A=this&&this.__extends||function(){var a=function(d,e){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,d){a.__proto__=d}||function(a,d){for(var e in d)d.hasOwnProperty(e)&&(a[e]=d[e])};return a(d,e)};return function(d,e){function h(){this.constructor=d}a(d,e);d.prototype=null===e?Object.create(e):
-(h.prototype=e.prototype,new h)}}(),B=a.parse,H=x.seriesTypes.line;a=F.extend;var t=F.merge,r=F.objectEach,l=F.pick;F=function(a){function d(){var d=null!==a&&a.apply(this,arguments)||this;d.data=void 0;d.options=void 0;d.points=void 0;return d}A(d,a);d.prototype.drawGraph=function(){this.areaPath=[];a.prototype.drawGraph.apply(this);var d=this,e=this.areaPath,g=this.options,p=[["area","highcharts-area",this.color,g.fillColor]];this.zones.forEach(function(a,e){p.push(["zone-area-"+e,"highcharts-area highcharts-zone-area-"+
-e+" "+a.className,a.color||d.color,a.fillColor||g.fillColor])});p.forEach(function(a){var h=a[0],k={},m=d[h],p=m?"animate":"attr";m?(m.endX=d.preventGraphAnimation?null:e.xMap,m.animate({d:e})):(k.zIndex=0,m=d[h]=d.chart.renderer.path(e).addClass(a[1]).add(d.group),m.isArea=!0);d.chart.styledMode||(k.fill=l(a[3],B(a[2]).setOpacity(l(g.fillOpacity,.75)).get()));m[p](k);m.startX=e.xMap;m.shiftUnit=g.step?2:1})};d.prototype.getGraphPath=function(a){var d=H.prototype.getGraphPath,e=this.options,h=e.stacking,
-g=this.yAxis,r=[],t=[],A=this.index,y=g.stacking.stacks[this.stackKey],c=e.threshold,w=Math.round(g.getThreshold(e.threshold));e=l(e.connectNulls,"percent"===h);var f=function(b,d,e){var f=a[b];b=h&&y[f.x].points[A];var n=f[e+"Null"]||0;e=f[e+"Cliff"]||0;f=!0;if(e||n){var k=(n?b[0]:b[1])+e;var m=b[0]+e;f=!!n}else!h&&a[d]&&a[d].isNull&&(k=m=c);"undefined"!==typeof k&&(t.push({plotX:z,plotY:null===k?w:g.getThreshold(k),isNull:f,isCliff:!0}),r.push({plotX:z,plotY:null===m?w:g.getThreshold(m),doCurve:!1}))};
-a=a||this.points;h&&(a=this.getStackPoints(a));for(var n=0,b=a.length;n<b;++n){h||(a[n].leftCliff=a[n].rightCliff=a[n].leftNull=a[n].rightNull=void 0);var u=a[n].isNull;var z=l(a[n].rectPlotX,a[n].plotX);var q=h?l(a[n].yBottom,w):w;if(!u||e)e||f(n,n-1,"left"),u&&!h&&e||(t.push(a[n]),r.push({x:n,plotX:z,plotY:q})),e||f(n,n+1,"right")}f=d.call(this,t,!0,!0);r.reversed=!0;u=d.call(this,r,!0,!0);(q=u[0])&&"M"===q[0]&&(u[0]=["L",q[1],q[2]]);u=f.concat(u);u.length&&u.push(["Z"]);d=d.call(this,t,!1,e);u.xMap=
-f.xMap;this.areaPath=u;return d};d.prototype.getStackPoints=function(a){var d=this,e=[],h=[],g=this.xAxis,t=this.yAxis,A=t.stacking.stacks[this.stackKey],x={},y=t.series,c=y.length,w=t.options.reversedStacks?1:-1,f=y.indexOf(d);a=a||this.points;if(this.options.stacking){for(var n=0;n<a.length;n++)a[n].leftNull=a[n].rightNull=void 0,x[a[n].x]=a[n];r(A,function(b,a){null!==b.total&&h.push(a)});h.sort(function(b,a){return b-a});var b=y.map(function(b){return b.visible});h.forEach(function(a,n){var k=
-0,m,p;if(x[a]&&!x[a].isNull)e.push(x[a]),[-1,1].forEach(function(e){var g=1===e?"rightNull":"leftNull",k=A[h[n+e]],l=0;if(k)for(var q=f;0<=q&&q<c;){var u=y[q].index;m=k.points[u];m||(u===d.index?x[a][g]=!0:b[q]&&(p=A[a].points[u])&&(l-=p[1]-p[0]));q+=w}x[a][1===e?"rightCliff":"leftCliff"]=l});else{for(var u=f;0<=u&&u<c;){if(m=A[a].points[y[u].index]){k=m[1];break}u+=w}k=l(k,0);k=t.translate(k,0,1,0,1);e.push({isNull:!0,plotX:g.translate(a,0,0,0,1),x:a,plotY:k,yBottom:k})}})}return e};d.defaultOptions=
-t(H.defaultOptions,{threshold:0});return d}(H);a(F.prototype,{singleStacks:!1,drawLegendSymbol:g.drawRectangle});x.registerSeriesType("area",F);"";return F});K(g,"Series/Spline/SplineSeries.js",[g["Core/Series/SeriesRegistry.js"],g["Core/Utilities.js"]],function(a,g){var A=this&&this.__extends||function(){var a=function(g,r){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,e){a.__proto__=e}||function(a,e){for(var d in e)e.hasOwnProperty(d)&&(a[d]=e[d])};return a(g,r)};return function(g,
-r){function l(){this.constructor=g}a(g,r);g.prototype=null===r?Object.create(r):(l.prototype=r.prototype,new l)}}(),F=a.seriesTypes.line,C=g.merge,B=g.pick;g=function(a){function g(){var g=null!==a&&a.apply(this,arguments)||this;g.data=void 0;g.options=void 0;g.points=void 0;return g}A(g,a);g.prototype.getPointSpline=function(a,g,e){var d=g.plotX||0,h=g.plotY||0,m=a[e-1];e=a[e+1];if(m&&!m.isNull&&!1!==m.doCurve&&!g.isCliff&&e&&!e.isNull&&!1!==e.doCurve&&!g.isCliff){a=m.plotY||0;var k=e.plotX||0;e=
-e.plotY||0;var l=0;var r=(1.5*d+(m.plotX||0))/2.5;var t=(1.5*h+a)/2.5;k=(1.5*d+k)/2.5;var A=(1.5*h+e)/2.5;k!==r&&(l=(A-t)*(k-d)/(k-r)+h-A);t+=l;A+=l;t>a&&t>h?(t=Math.max(a,h),A=2*h-t):t<a&&t<h&&(t=Math.min(a,h),A=2*h-t);A>e&&A>h?(A=Math.max(e,h),t=2*h-A):A<e&&A<h&&(A=Math.min(e,h),t=2*h-A);g.rightContX=k;g.rightContY=A}g=["C",B(m.rightContX,m.plotX,0),B(m.rightContY,m.plotY,0),B(r,d,0),B(t,h,0),d,h];m.rightContX=m.rightContY=void 0;return g};g.defaultOptions=C(F.defaultOptions);return g}(F);a.registerSeriesType("spline",
-g);"";return g});K(g,"Series/AreaSpline/AreaSplineSeries.js",[g["Series/Spline/SplineSeries.js"],g["Core/Legend/LegendSymbol.js"],g["Core/Series/SeriesRegistry.js"],g["Core/Utilities.js"]],function(a,g,x,F){var A=this&&this.__extends||function(){var a=function(e,d){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,d){a.__proto__=d}||function(a,d){for(var e in d)d.hasOwnProperty(e)&&(a[e]=d[e])};return a(e,d)};return function(e,d){function g(){this.constructor=e}a(e,d);e.prototype=
-null===d?Object.create(d):(g.prototype=d.prototype,new g)}}(),B=x.seriesTypes,H=B.area;B=B.area.prototype;var t=F.extend,r=F.merge;F=function(g){function e(){var a=null!==g&&g.apply(this,arguments)||this;a.data=void 0;a.points=void 0;a.options=void 0;return a}A(e,g);e.defaultOptions=r(a.defaultOptions,H.defaultOptions);return e}(a);t(F.prototype,{getGraphPath:B.getGraphPath,getStackPoints:B.getStackPoints,drawGraph:B.drawGraph,drawLegendSymbol:g.drawRectangle});x.registerSeriesType("areaspline",F);
-"";return F});K(g,"Series/Column/ColumnSeriesDefaults.js",[],function(){"";return{borderRadius:0,centerInCategory:!1,groupPadding:.2,marker:null,pointPadding:.1,minPointLength:0,cropThreshold:50,pointRange:null,states:{hover:{halo:!1,brightness:.1},select:{color:"#cccccc",borderColor:"#000000"}},dataLabels:{align:void 0,verticalAlign:void 0,y:void 0},startFromThreshold:!0,stickyTracking:!1,tooltip:{distance:6},threshold:0,borderColor:"#ffffff"}});K(g,"Series/Column/ColumnSeries.js",[g["Core/Animation/AnimationUtilities.js"],
-g["Core/Color/Color.js"],g["Series/Column/ColumnSeriesDefaults.js"],g["Core/Globals.js"],g["Core/Legend/LegendSymbol.js"],g["Core/Series/Series.js"],g["Core/Series/SeriesRegistry.js"],g["Core/Utilities.js"]],function(a,g,x,F,C,B,H,t){var r=this&&this.__extends||function(){var a=function(c,d){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return a(c,d)};return function(c,d){function e(){this.constructor=
-c}a(c,d);c.prototype=null===d?Object.create(d):(e.prototype=d.prototype,new e)}}(),l=a.animObject,e=g.parse,d=F.hasTouch;a=F.noop;var h=t.clamp,m=t.defined,k=t.extend,p=t.fireEvent,A=t.isArray,I=t.isNumber,E=t.merge,L=t.pick,y=t.objectEach;t=function(a){function c(){var c=null!==a&&a.apply(this,arguments)||this;c.borderWidth=void 0;c.data=void 0;c.group=void 0;c.options=void 0;c.points=void 0;return c}r(c,a);c.prototype.animate=function(a){var c=this,b=this.yAxis,d=c.options,e=this.chart.inverted,
-f={},g=e?"translateX":"translateY";if(a)f.scaleY=.001,a=h(b.toPixels(d.threshold),b.pos,b.pos+b.len),e?f.translateX=a-b.len:f.translateY=a,c.clipBox&&c.setClip(),c.group.attr(f);else{var m=Number(c.group.attr(g));c.group.animate({scaleY:1},k(l(c.options.animation),{step:function(a,d){c.group&&(f[g]=m+d.pos*(b.pos-m),c.group.attr(f))}}))}};c.prototype.init=function(c,d){a.prototype.init.apply(this,arguments);var b=this;c=b.chart;c.hasRendered&&c.series.forEach(function(a){a.type===b.type&&(a.isDirty=
-!0)})};c.prototype.getColumnMetrics=function(){var a=this,c=a.options,b=a.xAxis,d=a.yAxis,e=b.options.reversedStacks;e=b.reversed&&!e||!b.reversed&&e;var g={},h,k=0;!1===c.grouping?k=1:a.chart.series.forEach(function(b){var c=b.yAxis,e=b.options;if(b.type===a.type&&(b.visible||!a.chart.options.chart.ignoreHiddenSeries)&&d.len===c.len&&d.pos===c.pos){if(e.stacking&&"group"!==e.stacking){h=b.stackKey;"undefined"===typeof g[h]&&(g[h]=k++);var f=g[h]}else!1!==e.grouping&&(f=k++);b.columnIndex=f}});var m=
-Math.min(Math.abs(b.transA)*(b.ordinal&&b.ordinal.slope||c.pointRange||b.closestPointRange||b.tickInterval||1),b.len),l=m*c.groupPadding,p=(m-2*l)/(k||1);c=Math.min(c.maxPointWidth||b.len,L(c.pointWidth,p*(1-2*c.pointPadding)));a.columnMetrics={width:c,offset:(p-c)/2+(l+((a.columnIndex||0)+(e?1:0))*p-m/2)*(e?-1:1),paddedWidth:p,columnCount:k};return a.columnMetrics};c.prototype.crispCol=function(a,c,b,d){var e=this.chart,f=this.borderWidth,g=-(f%2?.5:0);f=f%2?.5:1;e.inverted&&e.renderer.isVML&&(f+=
-1);this.options.crisp&&(b=Math.round(a+b)+g,a=Math.round(a)+g,b-=a);d=Math.round(c+d)+f;g=.5>=Math.abs(c)&&.5<d;c=Math.round(c)+f;d-=c;g&&d&&(--c,d+=1);return{x:a,y:c,width:b,height:d}};c.prototype.adjustForMissingColumns=function(a,c,b,d){var e=this,f=this.options.stacking;if(!b.isNull&&1<d.columnCount){var g=this.yAxis.options.reversedStacks,h=0,k=g?0:-d.columnCount;y(this.yAxis.stacking&&this.yAxis.stacking.stacks,function(a){if("number"===typeof b.x){var c=a[b.x.toString()];c&&(a=c.points[e.index],
-f?(a&&(h=k),c.hasValidPoints&&(g?k++:k--)):A(a)&&(a=Object.keys(c.points).filter(function(b){return!b.match(",")&&c.points[b]&&1<c.points[b].length}).map(parseFloat).sort(function(b,a){return a-b}),h=a.indexOf(e.index),k=a.length))}});a=(b.plotX||0)+((k-1)*d.paddedWidth+c)/2-c-h*d.paddedWidth}return a};c.prototype.translate=function(){var a=this,c=a.chart,b=a.options,d=a.dense=2>a.closestPointRange*a.xAxis.transA;d=a.borderWidth=L(b.borderWidth,d?0:1);var e=a.xAxis,g=a.yAxis,k=b.threshold,l=a.translatedThreshold=
-g.getThreshold(k),p=L(b.minPointLength,5),r=a.getColumnMetrics(),w=r.width,y=a.pointXOffset=r.offset,v=a.dataMin,t=a.dataMax,A=a.barW=Math.max(w,1+2*d);c.inverted&&(l-=.5);b.pointPadding&&(A=Math.ceil(A));B.prototype.translate.apply(a);a.points.forEach(function(d){var f=L(d.yBottom,l),n=999+Math.abs(f),q=d.plotX||0;n=h(d.plotY,-n,g.len+n);var u=Math.min(n,f),z=Math.max(n,f)-u,D=w,x=q+y,E=A;p&&Math.abs(z)<p&&(z=p,q=!g.reversed&&!d.negative||g.reversed&&d.negative,I(k)&&I(t)&&d.y===k&&t<=k&&(g.min||
-0)<k&&(v!==t||(g.max||0)<=k)&&(q=!q),u=Math.abs(u-l)>p?f-p:l-(q?p:0));m(d.options.pointWidth)&&(D=E=Math.ceil(d.options.pointWidth),x-=Math.round((D-w)/2));b.centerInCategory&&(x=a.adjustForMissingColumns(x,D,d,r));d.barX=x;d.pointWidth=D;d.tooltipPos=c.inverted?[h(g.len+g.pos-c.plotLeft-n,g.pos-c.plotLeft,g.len+g.pos-c.plotLeft),e.len+e.pos-c.plotTop-x-E/2,z]:[e.left-c.plotLeft+x+E/2,h(n+g.pos-c.plotTop,g.pos-c.plotTop,g.len+g.pos-c.plotTop),z];d.shapeType=a.pointClass.prototype.shapeType||"rect";
-d.shapeArgs=a.crispCol.apply(a,d.isNull?[x,l,E,0]:[x,u,E,z])})};c.prototype.drawGraph=function(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")};c.prototype.pointAttribs=function(a,c){var b=this.options,d=this.pointAttrToOptions||{},f=d.stroke||"borderColor",g=d["stroke-width"]||"borderWidth",h=a&&a.color||this.color,k=a&&a[f]||b[f]||h;d=a&&a.options.dashStyle||b.dashStyle;var n=a&&a[g]||b[g]||this[g]||0,m=L(a&&a.opacity,b.opacity,1);if(a&&this.zones.length){var l=a.getZone();
-h=a.options.color||l&&(l.color||a.nonZonedColor)||this.color;l&&(k=l.borderColor||k,d=l.dashStyle||d,n=l.borderWidth||n)}c&&a&&(a=E(b.states[c],a.options.states&&a.options.states[c]||{}),c=a.brightness,h=a.color||"undefined"!==typeof c&&e(h).brighten(a.brightness).get()||h,k=a[f]||k,n=a[g]||n,d=a.dashStyle||d,m=L(a.opacity,m));f={fill:h,stroke:k,"stroke-width":n,opacity:m};d&&(f.dashstyle=d);return f};c.prototype.drawPoints=function(a){void 0===a&&(a=this.points);var c=this,b=this.chart,d=c.options,
-e=b.renderer,f=d.animationLimit||250,g;a.forEach(function(a){var h=a.graphic,k=!!h,n=h&&b.pointCount<f?"animate":"attr";if(I(a.plotY)&&null!==a.y){g=a.shapeArgs;h&&a.hasNewShapeType()&&(h=h.destroy());c.enabledDataSorting&&(a.startXPos=c.xAxis.reversed?-(g?g.width||0:0):c.xAxis.width);h||(a.graphic=h=e[a.shapeType](g).add(a.group||c.group))&&c.enabledDataSorting&&b.hasRendered&&b.pointCount<f&&(h.attr({x:a.startXPos}),k=!0,n="animate");if(h&&k)h[n](E(g));if(d.borderRadius)h[n]({r:d.borderRadius});
-b.styledMode||h[n](c.pointAttribs(a,a.selected&&"select")).shadow(!1!==a.allowShadow&&d.shadow,null,d.stacking&&!d.borderRadius);h&&(h.addClass(a.getClassName(),!0),h.attr({visibility:a.visible?"inherit":"hidden"}))}else h&&(a.graphic=h.destroy())})};c.prototype.drawTracker=function(a){void 0===a&&(a=this.points);var c=this,b=c.chart,e=b.pointer,f=function(a){var b=e.getPointFromEvent(a);"undefined"!==typeof b&&(e.isDirectTouch=!0,b.onMouseOver(a))},g;a.forEach(function(a){g=A(a.dataLabels)?a.dataLabels:
-a.dataLabel?[a.dataLabel]:[];a.graphic&&(a.graphic.element.point=a);g.forEach(function(b){b.div?b.div.point=a:b.element.point=a})});c._hasTracking||(c.trackerGroups.forEach(function(a){if(c[a]){c[a].addClass("highcharts-tracker").on("mouseover",f).on("mouseout",function(a){e.onTrackerMouseOut(a)});if(d)c[a].on("touchstart",f);!b.styledMode&&c.options.cursor&&c[a].css({cursor:c.options.cursor})}}),c._hasTracking=!0);p(this,"afterDrawTracker")};c.prototype.remove=function(){var a=this,c=a.chart;c.hasRendered&&
-c.series.forEach(function(b){b.type===a.type&&(b.isDirty=!0)});B.prototype.remove.apply(a,arguments)};c.defaultOptions=E(B.defaultOptions,x);return c}(B);k(t.prototype,{cropShoulder:0,directTouch:!0,drawLegendSymbol:C.drawRectangle,getSymbol:a,negStacks:!0,trackerGroups:["group","dataLabelsGroup"]});H.registerSeriesType("column",t);"";return t});K(g,"Core/Series/DataLabel.js",[g["Core/Animation/AnimationUtilities.js"],g["Core/FormatUtilities.js"],g["Core/Utilities.js"]],function(a,g,x){var A=a.getDeferredAnimation,
-C=g.format,B=x.defined,H=x.extend,t=x.fireEvent,r=x.isArray,l=x.isString,e=x.merge,d=x.objectEach,h=x.pick,m=x.splat,k;(function(a){function g(a,c,b,d,e){var f=this,g=this.chart,k=this.isCartesian&&g.inverted,n=this.enabledDataSorting,m=a.plotX,l=a.plotY,p=b.rotation,r=b.align,u=B(m)&&B(l)&&g.isInsidePlot(m,Math.round(l),{inverted:k,paneCoordinates:!0,series:f});l=function(b){n&&f.xAxis&&!w&&f.setDataLabelStartPos(a,c,e,u,b)};var w="justify"===h(b.overflow,n?"none":"justify");m=this.visible&&!1!==
-a.visible&&B(m)&&(a.series.forceDL||n&&!w||u||h(b.inside,!!this.options.stacking)&&d&&g.isInsidePlot(m,k?d.x+1:d.y+d.height-1,{inverted:k,paneCoordinates:!0,series:f}));k=a.pos();if(m&&k){p&&c.attr({align:r});r=c.getBBox(!0);var y=[0,0];var t=g.renderer.fontMetrics(g.styledMode?void 0:b.style.fontSize,c).b;d=H({x:k[0],y:Math.round(k[1]),width:0,height:0},d);H(b,{width:r.width,height:r.height});p?(w=!1,y=g.renderer.rotCorr(t,p),t={x:d.x+(b.x||0)+d.width/2+y.x,y:d.y+(b.y||0)+{top:0,middle:.5,bottom:1}[b.verticalAlign]*
-d.height},y=[r.x-Number(c.attr("x")),r.y-Number(c.attr("y"))],l(t),c[e?"attr":"animate"](t)):(l(d),c.align(b,void 0,d),t=c.alignAttr);w&&0<=d.height?this.justifyDataLabel(c,b,t,r,d,e):h(b.crop,!0)&&(d=t.x,l=t.y,d+=y[0],l+=y[1],m=g.isInsidePlot(d,l,{paneCoordinates:!0,series:f})&&g.isInsidePlot(d+r.width,l+r.height,{paneCoordinates:!0,series:f}));if(b.shape&&!p)c[e?"attr":"animate"]({anchorX:k[0],anchorY:k[1]})}e&&n&&(c.placed=!1);m||n&&!w?c.show():(c.hide(),c.placed=!1)}function k(a,c){var b=c.filter;
-return b?(c=b.operator,a=a[b.property],b=b.value,">"===c&&a>b||"<"===c&&a<b||">="===c&&a>=b||"<="===c&&a<=b||"=="===c&&a==b||"==="===c&&a===b?!0:!1):!0}function p(a){void 0===a&&(a=this.points);var c=this,b=c.chart,e=c.options,f=c.hasRendered||0,g=b.renderer,p=b.options.chart,w=p.backgroundColor;p=p.plotBackgroundColor;var x=g.getContrast(l(p)&&p||l(w)&&w||"#000000"),D=e.dataLabels,E;w=D.animation;w=D.defer?A(b,w,c):{defer:0,duration:0};D=y(y(b.options.plotOptions&&b.options.plotOptions.series&&b.options.plotOptions.series.dataLabels,
-b.options.plotOptions&&b.options.plotOptions[c.type]&&b.options.plotOptions[c.type].dataLabels),D);t(this,"drawDataLabels");if(r(D)||D.enabled||c._hasPointLabels){var F=c.plotGroup("dataLabelsGroup","data-labels",f?"inherit":"hidden",D.zIndex||6);F.attr({opacity:+f});!f&&(f=c.dataLabelsGroup)&&(c.visible&&F.show(),f[e.animation?"animate":"attr"]({opacity:1},w));a.forEach(function(a){E=m(y(D,a.dlOptions||a.options&&a.options.dataLabels));E.forEach(function(f,n){var m=f.enabled&&(!a.isNull||a.dataLabelOnNull)&&
-k(a,f),l=a.connectors?a.connectors[n]:a.connector,p=a.dataLabels?a.dataLabels[n]:a.dataLabel,q=!p,r=h(f.distance,a.labelDistance);if(m){var u=a.getLabelConfig();var w=h(f[a.formatPrefix+"Format"],f.format);u=B(w)?C(w,u,b):(f[a.formatPrefix+"Formatter"]||f.formatter).call(u,f);w=f.style;var y=f.rotation;b.styledMode||(w.color=h(f.color,w.color,c.color,"#000000"),"contrast"===w.color?(a.contrastColor=g.getContrast(a.color||c.color),w.color=!B(r)&&f.inside||0>r||e.stacking?a.contrastColor:x):delete a.contrastColor,
-e.cursor&&(w.cursor=e.cursor));var t={r:f.borderRadius||0,rotation:y,padding:f.padding,zIndex:1};if(!b.styledMode){r=f.backgroundColor;var v=f.borderColor;t.fill="auto"===r?a.color:r;t.stroke="auto"===v?a.color:v;t["stroke-width"]=f.borderWidth}d(t,function(a,b){"undefined"===typeof a&&delete t[b]})}!p||m&&B(u)&&!!p.div===!!f.useHTML&&(p.rotation&&f.rotation||p.rotation===f.rotation)||(q=!0,a.dataLabel=p=a.dataLabel&&a.dataLabel.destroy(),a.dataLabels&&(1===a.dataLabels.length?delete a.dataLabels:
-delete a.dataLabels[n]),n||delete a.dataLabel,l&&(a.connector=a.connector.destroy(),a.connectors&&(1===a.connectors.length?delete a.connectors:delete a.connectors[n])));m&&B(u)?(p?t.text=u:(a.dataLabels=a.dataLabels||[],p=a.dataLabels[n]=y?g.text(u,0,0,f.useHTML).addClass("highcharts-data-label"):g.label(u,0,0,f.shape,null,null,f.useHTML,null,"data-label"),n||(a.dataLabel=p),p.addClass(" highcharts-data-label-color-"+a.colorIndex+" "+(f.className||"")+(f.useHTML?" highcharts-tracker":""))),p.options=
-f,p.attr(t),b.styledMode||p.css(w).shadow(f.shadow),(n=f[a.formatPrefix+"TextPath"]||f.textPath)&&!f.useHTML&&(p.setTextPath(a.getDataLabelPath&&a.getDataLabelPath(p)||a.graphic,n),a.dataLabelPath&&!n.enabled&&(a.dataLabelPath=a.dataLabelPath.destroy())),p.added||p.add(F),c.alignDataLabel(a,p,f,null,q)):p&&p.hide()})})}t(this,"afterDrawDataLabels")}function x(a,c,b,d,e,g){var f=this.chart,h=c.align,k=c.verticalAlign,n=a.box?0:a.padding||0,m=c.x;m=void 0===m?0:m;var l=c.y;l=void 0===l?0:l;var p=(b.x||
-0)+n;if(0>p){"right"===h&&0<=m?(c.align="left",c.inside=!0):m-=p;var q=!0}p=(b.x||0)+d.width-n;p>f.plotWidth&&("left"===h&&0>=m?(c.align="right",c.inside=!0):m+=f.plotWidth-p,q=!0);p=b.y+n;0>p&&("bottom"===k&&0<=l?(c.verticalAlign="top",c.inside=!0):l-=p,q=!0);p=(b.y||0)+d.height-n;p>f.plotHeight&&("top"===k&&0>=l?(c.verticalAlign="bottom",c.inside=!0):l+=f.plotHeight-p,q=!0);q&&(c.x=m,c.y=l,a.placed=!g,a.align(c,void 0,e));return q}function y(a,c){var b=[],d;if(r(a)&&!r(c))b=a.map(function(a){return e(a,
-c)});else if(r(c)&&!r(a))b=c.map(function(b){return e(a,b)});else if(r(a)||r(c))for(d=Math.max(a.length,c.length);d--;)b[d]=e(a[d],c[d]);else b=e(a,c);return b}function c(a,c,b,d,e){var f=this.chart,g=f.inverted,h=this.xAxis,k=h.reversed,m=g?c.height/2:c.width/2;a=(a=a.pointWidth)?a/2:0;c.startXPos=g?e.x:k?-m-a:h.width-m+a;c.startYPos=g?k?this.yAxis.height-m+a:-m-a:e.y;d?"hidden"===c.visibility&&(c.show(),c.attr({opacity:0}).animate({opacity:1})):c.attr({opacity:1}).animate({opacity:0},void 0,c.hide);
-f.hasRendered&&(b&&c.attr({x:c.startXPos,y:c.startYPos}),c.placed=!0)}var w=[];a.compose=function(a){if(-1===w.indexOf(a)){var d=a.prototype;w.push(a);d.alignDataLabel=g;d.drawDataLabels=p;d.justifyDataLabel=x;d.setDataLabelStartPos=c}}})(k||(k={}));"";return k});K(g,"Series/Column/ColumnDataLabel.js",[g["Core/Series/DataLabel.js"],g["Core/Series/SeriesRegistry.js"],g["Core/Utilities.js"]],function(a,g,x){var A=g.series,C=x.merge,B=x.pick,H;(function(g){function r(a,d,g,m,k){var e=this.chart.inverted,
-h=a.series,l=(h.xAxis?h.xAxis.len:this.chart.plotSizeX)||0;h=(h.yAxis?h.yAxis.len:this.chart.plotSizeY)||0;var r=a.dlBox||a.shapeArgs,t=B(a.below,a.plotY>B(this.translatedThreshold,h)),y=B(g.inside,!!this.options.stacking);r&&(m=C(r),0>m.y&&(m.height+=m.y,m.y=0),r=m.y+m.height-h,0<r&&r<m.height&&(m.height-=r),e&&(m={x:h-m.y-m.height,y:l-m.x-m.width,width:m.height,height:m.width}),y||(e?(m.x+=t?0:m.width,m.width=0):(m.y+=t?m.height:0,m.height=0)));g.align=B(g.align,!e||y?"center":t?"right":"left");
-g.verticalAlign=B(g.verticalAlign,e||y?"middle":t?"top":"bottom");A.prototype.alignDataLabel.call(this,a,d,g,m,k);g.inside&&a.contrastColor&&d.css({color:a.contrastColor})}var l=[];g.compose=function(e){a.compose(A);-1===l.indexOf(e)&&(l.push(e),e.prototype.alignDataLabel=r)}})(H||(H={}));return H});K(g,"Series/Bar/BarSeries.js",[g["Series/Column/ColumnSeries.js"],g["Core/Series/SeriesRegistry.js"],g["Core/Utilities.js"]],function(a,g,x){var A=this&&this.__extends||function(){var a=function(g,r){a=
-Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,e){a.__proto__=e}||function(a,e){for(var d in e)e.hasOwnProperty(d)&&(a[d]=e[d])};return a(g,r)};return function(g,r){function l(){this.constructor=g}a(g,r);g.prototype=null===r?Object.create(r):(l.prototype=r.prototype,new l)}}(),C=x.extend,B=x.merge;x=function(g){function t(){var a=null!==g&&g.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}A(t,g);t.defaultOptions=B(a.defaultOptions,{});return t}(a);
-C(x.prototype,{inverted:!0});g.registerSeriesType("bar",x);"";return x});K(g,"Series/Scatter/ScatterSeriesDefaults.js",[],function(){"";return{lineWidth:0,findNearestPointBy:"xy",jitter:{x:0,y:0},marker:{enabled:!0},tooltip:{headerFormat:'<span style="color:{point.color}">\u25cf</span> <span style="font-size: 10px"> {series.name}</span><br/>',pointFormat:"x: <b>{point.x}</b><br/>y: <b>{point.y}</b><br/>"}}});K(g,"Series/Scatter/ScatterSeries.js",[g["Series/Scatter/ScatterSeriesDefaults.js"],g["Core/Series/SeriesRegistry.js"],
-g["Core/Utilities.js"]],function(a,g,x){var A=this&&this.__extends||function(){var a=function(e,d){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,d){a.__proto__=d}||function(a,d){for(var e in d)d.hasOwnProperty(e)&&(a[e]=d[e])};return a(e,d)};return function(e,d){function g(){this.constructor=e}a(e,d);e.prototype=null===d?Object.create(d):(g.prototype=d.prototype,new g)}}(),C=g.seriesTypes,B=C.column,H=C.line;C=x.addEvent;var t=x.extend,r=x.merge;x=function(g){function e(){var a=
-null!==g&&g.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}A(e,g);e.prototype.applyJitter=function(){var a=this,e=this.options.jitter,g=this.points.length;e&&this.points.forEach(function(d,h){["x","y"].forEach(function(k,m){var l="plot"+k.toUpperCase();if(e[k]&&!d.isNull){var p=a[k+"Axis"];var r=e[k]*p.transA;if(p&&!p.isLog){var c=Math.max(0,d[l]-r);p=Math.min(p.len,d[l]+r);m=1E4*Math.sin(h+m*g);d[l]=c+(p-c)*(m-Math.floor(m));"x"===k&&(d.clientX=d.plotX)}}})})};
-e.prototype.drawGraph=function(){this.options.lineWidth?g.prototype.drawGraph.call(this):this.graph&&(this.graph=this.graph.destroy())};e.defaultOptions=r(H.defaultOptions,a);return e}(H);t(x.prototype,{drawTracker:B.prototype.drawTracker,sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"],takeOrdinalPosition:!1});C(x,"afterTranslate",function(){this.applyJitter()});g.registerSeriesType("scatter",x);return x});K(g,"Series/CenteredUtilities.js",[g["Core/Globals.js"],
-g["Core/Series/Series.js"],g["Core/Utilities.js"]],function(a,g,x){var A=a.deg2rad,C=x.fireEvent,B=x.isNumber,H=x.pick,t=x.relativeLength,r;(function(a){a.getCenter=function(){var a=this.options,d=this.chart,h=2*(a.slicedOffset||0),m=d.plotWidth-2*h,k=d.plotHeight-2*h,l=a.center,r=Math.min(m,k),A=a.thickness,x=a.size,F=a.innerSize||0;"string"===typeof x&&(x=parseFloat(x));"string"===typeof F&&(F=parseFloat(F));a=[H(l[0],"50%"),H(l[1],"50%"),H(x&&0>x?void 0:a.size,"100%"),H(F&&0>F?void 0:a.innerSize||
-0,"0%")];!d.angular||this instanceof g||(a[3]=0);for(l=0;4>l;++l)x=a[l],d=2>l||2===l&&/%$/.test(x),a[l]=t(x,[m,k,r,a[2]][l])+(d?h:0);a[3]>a[2]&&(a[3]=a[2]);B(A)&&2*A<a[2]&&0<A&&(a[3]=a[2]-2*A);C(this,"afterGetCenter",{positions:a});return a};a.getStartAndEndRadians=function(a,d){a=B(a)?a:0;d=B(d)&&d>a&&360>d-a?d:a+360;return{start:A*(a+-90),end:A*(d+-90)}}})(r||(r={}));"";return r});K(g,"Series/Pie/PiePoint.js",[g["Core/Animation/AnimationUtilities.js"],g["Core/Series/Point.js"],g["Core/Utilities.js"]],
-function(a,g,x){var A=this&&this.__extends||function(){var a=function(d,e){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,d){a.__proto__=d}||function(a,d){for(var e in d)d.hasOwnProperty(e)&&(a[e]=d[e])};return a(d,e)};return function(d,e){function g(){this.constructor=d}a(d,e);d.prototype=null===e?Object.create(e):(g.prototype=e.prototype,new g)}}(),C=a.setAnimation,B=x.addEvent,H=x.defined;a=x.extend;var t=x.isNumber,r=x.pick,l=x.relativeLength;g=function(a){function d(){var d=
-null!==a&&a.apply(this,arguments)||this;d.labelDistance=void 0;d.options=void 0;d.series=void 0;return d}A(d,a);d.prototype.getConnectorPath=function(){var a=this.labelPosition,d=this.series.options.dataLabels,e=this.connectorShapes,g=d.connectorShape;e[g]&&(g=e[g]);return g.call(this,{x:a.final.x,y:a.final.y,alignment:a.alignment},a.connectorPosition,d)};d.prototype.getTranslate=function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}};d.prototype.haloPath=function(a){var d=
-this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(d.x,d.y,d.r+a,d.r+a,{innerR:d.r-1,start:d.start,end:d.end})};d.prototype.init=function(){var d=this;a.prototype.init.apply(this,arguments);this.name=r(this.name,"Slice");var e=function(a){d.slice("select"===a.type)};B(this,"select",e);B(this,"unselect",e);return this};d.prototype.isValid=function(){return t(this.y)&&0<=this.y};d.prototype.setVisible=function(a,d){var e=this,g=this.series,h=g.chart,m=g.options.ignoreHiddenPoint;
-d=r(d,m);a!==this.visible&&(this.visible=this.options.visible=a="undefined"===typeof a?!this.visible:a,g.options.data[g.data.indexOf(this)]=this.options,["graphic","dataLabel","connector","shadowGroup"].forEach(function(d){if(e[d])e[d][a?"show":"hide"](a)}),this.legendItem&&h.legend.colorizeItem(this,a),a||"hover"!==this.state||this.setState(""),m&&(g.isDirty=!0),d&&h.redraw())};d.prototype.slice=function(a,d,e){var g=this.series;C(e,g.chart);r(d,!0);this.sliced=this.options.sliced=H(a)?a:!this.sliced;
-g.options.data[g.data.indexOf(this)]=this.options;this.graphic&&this.graphic.animate(this.getTranslate());this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())};return d}(g);a(g.prototype,{connectorShapes:{fixedOffset:function(a,d,g){var e=d.breakAt;d=d.touchingSliceAt;return[["M",a.x,a.y],g.softConnector?["C",a.x+("left"===a.alignment?-5:5),a.y,2*e.x-d.x,2*e.y-d.y,e.x,e.y]:["L",e.x,e.y],["L",d.x,d.y]]},straight:function(a,d){d=d.touchingSliceAt;return[["M",a.x,a.y],["L",d.x,d.y]]},crookedLine:function(a,
-d,g){d=d.touchingSliceAt;var e=this.series,h=e.center[0],p=e.chart.plotWidth,r=e.chart.plotLeft;e=a.alignment;var t=this.shapeArgs.r;g=l(g.crookDistance,1);p="left"===e?h+t+(p+r-h-t)*(1-g):r+(h-t)*g;g=["L",p,a.y];h=!0;if("left"===e?p>a.x||p<d.x:p<a.x||p>d.x)h=!1;a=[["M",a.x,a.y]];h&&a.push(g);a.push(["L",d.x,d.y]);return a}}});return g});K(g,"Series/Pie/PieSeriesDefaults.js",[],function(){"";return{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{allowOverlap:!0,connectorPadding:5,connectorShape:"fixedOffset",
-crookDistance:"70%",distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},softConnector:!0,x:0},fillColor:void 0,ignoreHiddenPoint:!0,inactiveOtherPoints:!0,legendType:"point",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:"#ffffff",borderWidth:1,lineWidth:void 0,states:{hover:{brightness:.1}}}});K(g,"Series/Pie/PieSeries.js",[g["Series/CenteredUtilities.js"],g["Series/Column/ColumnSeries.js"],g["Core/Globals.js"],
-g["Core/Legend/LegendSymbol.js"],g["Series/Pie/PiePoint.js"],g["Series/Pie/PieSeriesDefaults.js"],g["Core/Series/Series.js"],g["Core/Series/SeriesRegistry.js"],g["Core/Renderer/SVG/Symbols.js"],g["Core/Utilities.js"]],function(a,g,x,F,C,B,H,t,r,l){var e=this&&this.__extends||function(){var a=function(d,e){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,d){a.__proto__=d}||function(a,d){for(var c in d)d.hasOwnProperty(c)&&(a[c]=d[c])};return a(d,e)};return function(d,e){function c(){this.constructor=
-d}a(d,e);d.prototype=null===e?Object.create(e):(c.prototype=e.prototype,new c)}}(),d=a.getStartAndEndRadians;x=x.noop;var h=l.clamp,m=l.extend,k=l.fireEvent,p=l.merge,A=l.pick,I=l.relativeLength;l=function(a){function g(){var d=null!==a&&a.apply(this,arguments)||this;d.center=void 0;d.data=void 0;d.maxLabelDistance=void 0;d.options=void 0;d.points=void 0;return d}e(g,a);g.prototype.animate=function(a){var c=this,d=c.points,e=c.startAngleRad;a||d.forEach(function(a){var b=a.graphic,d=a.shapeArgs;b&&
-d&&(b.attr({r:A(a.startR,c.center&&c.center[3]/2),start:e,end:e}),b.animate({r:d.r,start:d.start,end:d.end},c.options.animation))})};g.prototype.drawEmpty=function(){var a=this.startAngleRad,c=this.endAngleRad,d=this.options;if(0===this.total&&this.center){var e=this.center[0];var g=this.center[1];this.graph||(this.graph=this.chart.renderer.arc(e,g,this.center[1]/2,0,a,c).addClass("highcharts-empty-series").add(this.group));this.graph.attr({d:r.arc(e,g,this.center[2]/2,0,{start:a,end:c,innerR:this.center[3]/
-2})});this.chart.styledMode||this.graph.attr({"stroke-width":d.borderWidth,fill:d.fillColor||"none",stroke:d.color||"#cccccc"})}else this.graph&&(this.graph=this.graph.destroy())};g.prototype.drawPoints=function(){var a=this.chart.renderer;this.points.forEach(function(c){c.graphic&&c.hasNewShapeType()&&(c.graphic=c.graphic.destroy());c.graphic||(c.graphic=a[c.shapeType](c.shapeArgs).add(c.series.group),c.delayedRendering=!0)})};g.prototype.generatePoints=function(){a.prototype.generatePoints.call(this);
-this.updateTotals()};g.prototype.getX=function(a,c,d){var e=this.center,g=this.radii?this.radii[d.index]||0:e[2]/2;a=Math.asin(h((a-e[1])/(g+d.labelDistance),-1,1));return e[0]+(c?-1:1)*Math.cos(a)*(g+d.labelDistance)+(0<d.labelDistance?(c?-1:1)*this.options.dataLabels.padding:0)};g.prototype.hasData=function(){return!!this.processedXData.length};g.prototype.redrawPoints=function(){var a=this,c=a.chart,d=c.renderer,e=a.options.shadow,g,b,h,k;this.drawEmpty();!e||a.shadowGroup||c.styledMode||(a.shadowGroup=
-d.g("shadow").attr({zIndex:-1}).add(a.group));a.points.forEach(function(f){var n={};b=f.graphic;if(!f.isNull&&b){var l=void 0;k=f.shapeArgs;g=f.getTranslate();c.styledMode||(l=f.shadowGroup,e&&!l&&(l=f.shadowGroup=d.g("shadow").add(a.shadowGroup)),l&&l.attr(g),h=a.pointAttribs(f,f.selected&&"select"));f.delayedRendering?(b.setRadialReference(a.center).attr(k).attr(g),c.styledMode||b.attr(h).attr({"stroke-linejoin":"round"}).shadow(e,l),f.delayedRendering=!1):(b.setRadialReference(a.center),c.styledMode||
-p(!0,n,h),p(!0,n,k,g),b.animate(n));b.attr({visibility:f.visible?"inherit":"hidden"});b.addClass(f.getClassName(),!0)}else b&&(f.graphic=b.destroy())})};g.prototype.sortByAngle=function(a,c){a.sort(function(a,d){return"undefined"!==typeof a.angle&&(d.angle-a.angle)*c})};g.prototype.translate=function(a){k(this,"translate");this.generatePoints();var c=this.options,e=c.slicedOffset,f=e+(c.borderWidth||0),g=d(c.startAngle,c.endAngle),b=this.startAngleRad=g.start;g=(this.endAngleRad=g.end)-b;var h=this.points,
-l=c.dataLabels.distance;c=c.ignoreHiddenPoint;var m=h.length,p,r=0;a||(this.center=a=this.getCenter());for(p=0;p<m;p++){var t=h[p];var y=b+r*g;!t.isValid()||c&&!t.visible||(r+=t.percentage/100);var x=b+r*g;var D={x:a[0],y:a[1],r:a[2]/2,innerR:a[3]/2,start:Math.round(1E3*y)/1E3,end:Math.round(1E3*x)/1E3};t.shapeType="arc";t.shapeArgs=D;t.labelDistance=A(t.options.dataLabels&&t.options.dataLabels.distance,l);t.labelDistance=I(t.labelDistance,D.r);this.maxLabelDistance=Math.max(this.maxLabelDistance||
-0,t.labelDistance);x=(x+y)/2;x>1.5*Math.PI?x-=2*Math.PI:x<-Math.PI/2&&(x+=2*Math.PI);t.slicedTranslation={translateX:Math.round(Math.cos(x)*e),translateY:Math.round(Math.sin(x)*e)};D=Math.cos(x)*a[2]/2;var v=Math.sin(x)*a[2]/2;t.tooltipPos=[a[0]+.7*D,a[1]+.7*v];t.half=x<-Math.PI/2||x>Math.PI/2?1:0;t.angle=x;y=Math.min(f,t.labelDistance/5);t.labelPosition={natural:{x:a[0]+D+Math.cos(x)*t.labelDistance,y:a[1]+v+Math.sin(x)*t.labelDistance},"final":{},alignment:0>t.labelDistance?"center":t.half?"right":
-"left",connectorPosition:{breakAt:{x:a[0]+D+Math.cos(x)*y,y:a[1]+v+Math.sin(x)*y},touchingSliceAt:{x:a[0]+D,y:a[1]+v}}}}k(this,"afterTranslate")};g.prototype.updateTotals=function(){var a=this.points,c=a.length,d=this.options.ignoreHiddenPoint,e,g=0;for(e=0;e<c;e++){var b=a[e];!b.isValid()||d&&!b.visible||(g+=b.y)}this.total=g;for(e=0;e<c;e++)b=a[e],b.percentage=0<g&&(b.visible||!d)?b.y/g*100:0,b.total=g};g.defaultOptions=p(H.defaultOptions,B);return g}(H);m(l.prototype,{axisTypes:[],directTouch:!0,
-drawGraph:void 0,drawLegendSymbol:F.drawRectangle,drawTracker:g.prototype.drawTracker,getCenter:a.getCenter,getSymbol:x,isCartesian:!1,noSharedTooltip:!0,pointAttribs:g.prototype.pointAttribs,pointClass:C,requireSorting:!1,searchPoint:x,trackerGroups:["group","dataLabelsGroup"]});t.registerSeriesType("pie",l);return l});K(g,"Series/Pie/PieDataLabel.js",[g["Core/Series/DataLabel.js"],g["Core/Globals.js"],g["Core/Renderer/RendererUtilities.js"],g["Core/Series/SeriesRegistry.js"],g["Core/Utilities.js"]],
-function(a,g,x,F,C){var A=g.noop,H=x.distribute,t=F.series,r=C.arrayMax,l=C.clamp,e=C.defined,d=C.merge,h=C.pick,m=C.relativeLength,k;(function(g){function k(){var a=this,g=a.data,f=a.chart,k=a.options.dataLabels||{},b=k.connectorPadding,l=f.plotWidth,m=f.plotHeight,p=f.plotLeft,y=Math.round(f.chartWidth/3),A=a.center,x=A[2]/2,D=A[1],B=[[],[]],E=[0,0,0,0],v=a.dataLabelPositioners,C,F,I,L,G,K,M,X,R,V,Z,W;a.visible&&(k.enabled||a._hasPointLabels)&&(g.forEach(function(a){a.dataLabel&&a.visible&&a.dataLabel.shortened&&
-(a.dataLabel.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),a.dataLabel.shortened=!1)}),t.prototype.drawDataLabels.apply(a),g.forEach(function(a){a.dataLabel&&(a.visible?(B[a.half].push(a),a.dataLabel._pos=null,!e(k.style.width)&&!e(a.options.dataLabels&&a.options.dataLabels.style&&a.options.dataLabels.style.width)&&a.dataLabel.getBBox().width>y&&(a.dataLabel.css({width:Math.round(.7*y)+"px"}),a.dataLabel.shortened=!0)):(a.dataLabel=a.dataLabel.destroy(),a.dataLabels&&1===a.dataLabels.length&&
-delete a.dataLabels))}),B.forEach(function(c,d){var g=c.length,n=[],q;if(g){a.sortByAngle(c,d-.5);if(0<a.maxLabelDistance){var r=Math.max(0,D-x-a.maxLabelDistance);var t=Math.min(D+x+a.maxLabelDistance,f.plotHeight);c.forEach(function(a){0<a.labelDistance&&a.dataLabel&&(a.top=Math.max(0,D-x-a.labelDistance),a.bottom=Math.min(D+x+a.labelDistance,f.plotHeight),q=a.dataLabel.getBBox().height||21,a.distributeBox={target:a.labelPosition.natural.y-a.top+q/2,size:q,rank:a.y},n.push(a.distributeBox))});r=
-t+q-r;H(n,r,r/5)}for(Z=0;Z<g;Z++){C=c[Z];K=C.labelPosition;L=C.dataLabel;V=!1===C.visible?"hidden":"inherit";R=r=K.natural.y;n&&e(C.distributeBox)&&("undefined"===typeof C.distributeBox.pos?V="hidden":(M=C.distributeBox.size,R=v.radialDistributionY(C)));delete C.positionIndex;if(k.justify)X=v.justify(C,x,A);else switch(k.alignTo){case "connectors":X=v.alignToConnectors(c,d,l,p);break;case "plotEdges":X=v.alignToPlotEdges(L,d,l,p);break;default:X=v.radialDistributionX(a,C,R,r)}L._attr={visibility:V,
-align:K.alignment};W=C.options.dataLabels||{};L._pos={x:X+h(W.x,k.x)+({left:b,right:-b}[K.alignment]||0),y:R+h(W.y,k.y)-10};K.final.x=X;K.final.y=R;h(k.crop,!0)&&(G=L.getBBox().width,r=null,X-G<b&&1===d?(r=Math.round(G-X+b),E[3]=Math.max(r,E[3])):X+G>l-b&&0===d&&(r=Math.round(X+G-l+b),E[1]=Math.max(r,E[1])),0>R-M/2?E[0]=Math.max(Math.round(-R+M/2),E[0]):R+M/2>m&&(E[2]=Math.max(Math.round(R+M/2-m),E[2])),L.sideOverflow=r)}}}),0===r(E)||this.verifyDataLabelOverflow(E))&&(this.placeDataLabels(),this.points.forEach(function(b){W=
-d(k,b.options.dataLabels);if(F=h(W.connectorWidth,1)){var c;I=b.connector;if((L=b.dataLabel)&&L._pos&&b.visible&&0<b.labelDistance){V=L._attr.visibility;if(c=!I)b.connector=I=f.renderer.path().addClass("highcharts-data-label-connector  highcharts-color-"+b.colorIndex+(b.className?" "+b.className:"")).add(a.dataLabelsGroup),f.styledMode||I.attr({"stroke-width":F,stroke:W.connectorColor||b.color||"#666666"});I[c?"attr":"animate"]({d:b.getConnectorPath()});I.attr("visibility",V)}else I&&(b.connector=
-I.destroy())}}))}function p(){this.points.forEach(function(a){var c=a.dataLabel,d;c&&a.visible&&((d=c._pos)?(c.sideOverflow&&(c._attr.width=Math.max(c.getBBox().width-c.sideOverflow,0),c.css({width:c._attr.width+"px",textOverflow:(this.options.dataLabels.style||{}).textOverflow||"ellipsis"}),c.shortened=!0),c.attr(c._attr),c[c.moved?"animate":"attr"](d),c.moved=!0):c&&c.attr({y:-9999}));delete a.distributeBox},this)}function x(a){var c=this.center,d=this.options,e=d.center,b=d.minSize||80,g=null!==
-d.size;if(!g){if(null!==e[0])var h=Math.max(c[2]-Math.max(a[1],a[3]),b);else h=Math.max(c[2]-a[1]-a[3],b),c[0]+=(a[3]-a[1])/2;null!==e[1]?h=l(h,b,c[2]-Math.max(a[0],a[2])):(h=l(h,b,c[2]-a[0]-a[2]),c[1]+=(a[0]-a[2])/2);h<c[2]?(c[2]=h,c[3]=Math.min(d.thickness?Math.max(0,h-2*d.thickness):Math.max(0,m(d.innerSize||0,h)),h),this.translate(c),this.drawDataLabels&&this.drawDataLabels()):g=!0}return g}var B=[],y={radialDistributionY:function(a){return a.top+a.distributeBox.pos},radialDistributionX:function(a,
-d,e,g){return a.getX(e<d.top+2||e>d.bottom-2?g:e,d.half,d)},justify:function(a,d,e){return e[0]+(a.half?-1:1)*(d+a.labelDistance)},alignToPlotEdges:function(a,d,e,g){a=a.getBBox().width;return d?a+g:e-a-g},alignToConnectors:function(a,d,e,g){var b=0,c;a.forEach(function(a){c=a.dataLabel.getBBox().width;c>b&&(b=c)});return d?b+g:e-b-g}};g.compose=function(c){a.compose(t);-1===B.indexOf(c)&&(B.push(c),c=c.prototype,c.dataLabelPositioners=y,c.alignDataLabel=A,c.drawDataLabels=k,c.placeDataLabels=p,c.verifyDataLabelOverflow=
-x)}})(k||(k={}));return k});K(g,"Extensions/OverlappingDataLabels.js",[g["Core/Chart/Chart.js"],g["Core/Utilities.js"]],function(a,g){function A(a,e){var d=!1;if(a){var g=a.newOpacity;a.oldOpacity!==g&&(a.alignAttr&&a.placed?(a[g?"removeClass":"addClass"]("highcharts-data-label-hidden"),d=!0,a.alignAttr.opacity=g,a[a.isOld?"animate":"attr"](a.alignAttr,null,function(){e.styledMode||a.css({pointerEvents:g?"auto":"none"})}),C(e,"afterHideOverlappingLabel")):a.attr({opacity:g}));a.isOld=!0}return d}
-var F=g.addEvent,C=g.fireEvent,B=g.isArray,H=g.isNumber,t=g.objectEach,r=g.pick;F(a,"render",function(){var a=this,e=[];(this.labelCollectors||[]).forEach(function(a){e=e.concat(a())});(this.yAxis||[]).forEach(function(a){a.stacking&&a.options.stackLabels&&!a.options.stackLabels.allowOverlap&&t(a.stacking.stacks,function(a){t(a,function(a){a.label&&e.push(a.label)})})});(this.series||[]).forEach(function(d){var g=d.options.dataLabels;d.visible&&(!1!==g.enabled||d._hasPointLabels)&&(g=function(d){return d.forEach(function(d){d.visible&&
-(B(d.dataLabels)?d.dataLabels:d.dataLabel?[d.dataLabel]:[]).forEach(function(g){var h=g.options;g.labelrank=r(h.labelrank,d.labelrank,d.shapeArgs&&d.shapeArgs.height);h.allowOverlap?(g.oldOpacity=g.opacity,g.newOpacity=1,A(g,a)):e.push(g)})})},g(d.nodes||[]),g(d.points))});this.hideOverlappingLabels(e)});a.prototype.hideOverlappingLabels=function(a){var e=this,d=a.length,g=e.renderer,l,k,p,r=!1;var t=function(a){var c,d=a.box?0:a.padding||0,e=c=0,h;if(a&&(!a.alignAttr||a.placed)){var b=a.alignAttr||
-{x:a.attr("x"),y:a.attr("y")};var k=a.parentGroup;a.width||(c=a.getBBox(),a.width=c.width,a.height=c.height,c=g.fontMetrics(null,a.element).h);var l=a.width-2*d;(h={left:"0",center:"0.5",right:"1"}[a.alignValue])?e=+h*l:H(a.x)&&Math.round(a.x)!==a.translateX&&(e=a.x-a.translateX);return{x:b.x+(k.translateX||0)+d-(e||0),y:b.y+(k.translateY||0)+d-c,width:a.width-2*d,height:a.height-2*d}}};for(k=0;k<d;k++)if(l=a[k])l.oldOpacity=l.opacity,l.newOpacity=1,l.absoluteBox=t(l);a.sort(function(a,c){return(c.labelrank||
-0)-(a.labelrank||0)});for(k=0;k<d;k++){var x=(t=a[k])&&t.absoluteBox;for(l=k+1;l<d;++l){var B=(p=a[l])&&p.absoluteBox;!x||!B||t===p||0===t.newOpacity||0===p.newOpacity||"hidden"===t.visibility||"hidden"===p.visibility||B.x>=x.x+x.width||B.x+B.width<=x.x||B.y>=x.y+x.height||B.y+B.height<=x.y||((t.labelrank<p.labelrank?t:p).newOpacity=0)}}a.forEach(function(a){A(a,e)&&(r=!0)});r&&C(e,"afterHideAllOverlappingLabels")}});K(g,"Core/Responsive.js",[g["Core/Utilities.js"]],function(a){var g=a.extend,x=a.find,
-F=a.isArray,C=a.isObject,B=a.merge,H=a.objectEach,t=a.pick,r=a.splat,l=a.uniqueKey,e;(function(a){var d=[];a.compose=function(a){-1===d.indexOf(a)&&(d.push(a),g(a.prototype,e.prototype));return a};var e=function(){function a(){}a.prototype.currentOptions=function(a){function d(a,g,c,h){var f;H(a,function(a,b){if(!h&&-1<e.collectionsWithUpdate.indexOf(b)&&g[b])for(a=r(a),c[b]=[],f=0;f<Math.max(a.length,g[b].length);f++)g[b][f]&&(void 0===a[f]?c[b][f]=g[b][f]:(c[b][f]={},d(a[f],g[b][f],c[b][f],h+1)));
-else C(a)?(c[b]=F(a)?[]:{},d(a,g[b]||{},c[b],h+1)):c[b]="undefined"===typeof g[b]?null:g[b]})}var e=this,g={};d(a,this.options,g,0);return g};a.prototype.matchResponsiveRule=function(a,d){var e=a.condition;(e.callback||function(){return this.chartWidth<=t(e.maxWidth,Number.MAX_VALUE)&&this.chartHeight<=t(e.maxHeight,Number.MAX_VALUE)&&this.chartWidth>=t(e.minWidth,0)&&this.chartHeight>=t(e.minHeight,0)}).call(this)&&d.push(a._id)};a.prototype.setResponsive=function(a,d){var e=this,g=this.options.responsive,
-h=this.currentResponsive,k=[];!d&&g&&g.rules&&g.rules.forEach(function(a){"undefined"===typeof a._id&&(a._id=l());e.matchResponsiveRule(a,k)},this);d=B.apply(void 0,k.map(function(a){return x((g||{}).rules||[],function(c){return c._id===a})}).map(function(a){return a&&a.chartOptions}));d.isResponsiveOptions=!0;k=k.toString()||void 0;k!==(h&&h.ruleIds)&&(h&&this.update(h.undoOptions,a,!0),k?(h=this.currentOptions(d),h.isResponsiveOptions=!0,this.currentResponsive={ruleIds:k,mergedOptions:d,undoOptions:h},
-this.update(d,a,!0)):this.currentResponsive=void 0)};return a}()})(e||(e={}));"";"";return e});K(g,"masters/highcharts.src.js",[g["Core/Globals.js"],g["Core/Utilities.js"],g["Core/Defaults.js"],g["Core/Animation/Fx.js"],g["Core/Animation/AnimationUtilities.js"],g["Core/Renderer/HTML/AST.js"],g["Core/FormatUtilities.js"],g["Core/Renderer/RendererUtilities.js"],g["Core/Renderer/SVG/SVGElement.js"],g["Core/Renderer/SVG/SVGRenderer.js"],g["Core/Renderer/HTML/HTMLElement.js"],g["Core/Renderer/HTML/HTMLRenderer.js"],
-g["Core/Axis/Axis.js"],g["Core/Axis/DateTimeAxis.js"],g["Core/Axis/LogarithmicAxis.js"],g["Core/Axis/PlotLineOrBand/PlotLineOrBand.js"],g["Core/Axis/Tick.js"],g["Core/Tooltip.js"],g["Core/Series/Point.js"],g["Core/Pointer.js"],g["Core/MSPointer.js"],g["Core/Legend/Legend.js"],g["Core/Chart/Chart.js"],g["Core/Axis/Stacking/StackingAxis.js"],g["Core/Axis/Stacking/StackItem.js"],g["Core/Series/Series.js"],g["Core/Series/SeriesRegistry.js"],g["Series/Column/ColumnSeries.js"],g["Series/Column/ColumnDataLabel.js"],
-g["Series/Pie/PieSeries.js"],g["Series/Pie/PieDataLabel.js"],g["Core/Series/DataLabel.js"],g["Core/Responsive.js"],g["Core/Color/Color.js"],g["Core/Time.js"]],function(a,g,x,F,C,B,H,t,r,l,e,d,h,m,k,p,D,I,E,L,y,c,w,f,n,b,u,z,q,K,J,O,Q,T,Y){a.animate=C.animate;a.animObject=C.animObject;a.getDeferredAnimation=C.getDeferredAnimation;a.setAnimation=C.setAnimation;a.stop=C.stop;a.timers=F.timers;a.AST=B;a.Axis=h;a.Chart=w;a.chart=w.chart;a.Fx=F;a.Legend=c;a.PlotLineOrBand=p;a.Point=E;a.Pointer=y.isRequired()?
-y:L;a.Series=b;a.StackItem=n;a.SVGElement=r;a.SVGRenderer=l;a.Tick=D;a.Time=Y;a.Tooltip=I;a.Color=T;a.color=T.parse;d.compose(l);e.compose(r);a.defaultOptions=x.defaultOptions;a.getOptions=x.getOptions;a.time=x.defaultTime;a.setOptions=x.setOptions;a.dateFormat=H.dateFormat;a.format=H.format;a.numberFormat=H.numberFormat;a.addEvent=g.addEvent;a.arrayMax=g.arrayMax;a.arrayMin=g.arrayMin;a.attr=g.attr;a.clearTimeout=g.clearTimeout;a.correctFloat=g.correctFloat;a.createElement=g.createElement;a.css=
-g.css;a.defined=g.defined;a.destroyObjectProperties=g.destroyObjectProperties;a.discardElement=g.discardElement;a.distribute=t.distribute;a.erase=g.erase;a.error=g.error;a.extend=g.extend;a.extendClass=g.extendClass;a.find=g.find;a.fireEvent=g.fireEvent;a.getMagnitude=g.getMagnitude;a.getStyle=g.getStyle;a.inArray=g.inArray;a.isArray=g.isArray;a.isClass=g.isClass;a.isDOMElement=g.isDOMElement;a.isFunction=g.isFunction;a.isNumber=g.isNumber;a.isObject=g.isObject;a.isString=g.isString;a.keys=g.keys;
-a.merge=g.merge;a.normalizeTickInterval=g.normalizeTickInterval;a.objectEach=g.objectEach;a.offset=g.offset;a.pad=g.pad;a.pick=g.pick;a.pInt=g.pInt;a.relativeLength=g.relativeLength;a.removeEvent=g.removeEvent;a.seriesType=u.seriesType;a.splat=g.splat;a.stableSort=g.stableSort;a.syncTimeout=g.syncTimeout;a.timeUnits=g.timeUnits;a.uniqueKey=g.uniqueKey;a.useSerialIds=g.useSerialIds;a.wrap=g.wrap;q.compose(z);O.compose(b);m.compose(h);k.compose(h);J.compose(K);p.compose(h);Q.compose(w);f.compose(h,
-w,b);return a});g["masters/highcharts.src.js"]._modules=g;return g["masters/highcharts.src.js"]});
-//# sourceMappingURL=highcharts.js.map

+ 0 - 264
nicegui/elements/lib/highcharts_modules/accessibility.js

@@ -1,264 +0,0 @@
-/*
- Highcharts JS v10.3.3 (2023-01-20)
-
- Accessibility module
-
- (c) 2010-2021 Highsoft AS
- Author: Oystein Moseng
-
- License: www.highcharts.com/license
-*/
-(function(a){"object"===typeof module&&module.exports?(a["default"]=a,module.exports=a):"function"===typeof define&&define.amd?define("highcharts/modules/accessibility",["highcharts"],function(A){a(A);a.Highcharts=A;return a}):a("undefined"!==typeof Highcharts?Highcharts:void 0)})(function(a){function A(a,h,l,x){a.hasOwnProperty(h)||(a[h]=x.apply(null,l),"function"===typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:h,module:a[h]}})))}a=a?a._modules:{};
-A(a,"Accessibility/Utils/HTMLUtilities.js",[a["Core/Globals.js"],a["Core/Utilities.js"]],function(a,h){function l(a){if("function"===typeof p.MouseEvent)return new p.MouseEvent(a.type,a);if(m.createEvent){var g=m.createEvent("MouseEvent");if(g.initMouseEvent)return g.initMouseEvent(a.type,a.bubbles,a.cancelable,a.view||p,a.detail,a.screenX,a.screenY,a.clientX,a.clientY,a.ctrlKey,a.altKey,a.shiftKey,a.metaKey,a.button,a.relatedTarget),g}return x(a.type)}function x(a,k,w){k=k||{x:0,y:0};return"function"===
-typeof p.MouseEvent?new p.MouseEvent(a,{bubbles:!0,cancelable:!0,composed:!0,button:0,buttons:1,relatedTarget:w||z,view:p,detail:"click"===a?1:0,screenX:k.x,screenY:k.y,clientX:k.x,clientY:k.y}):m.createEvent&&(w=m.createEvent("MouseEvent"),w.initMouseEvent)?(w.initMouseEvent(a,!0,!0,p,"click"===a?1:0,k.x,k.y,k.x,k.y,!1,!1,!1,!1,0,null),w):{type:a}}var m=a.doc,p=a.win,u=h.css,z=p.EventTarget&&new p.EventTarget||"none";return{addClass:function(a,k){a.classList?a.classList.add(k):0>a.className.indexOf(k)&&
-(a.className+=" "+k)},cloneMouseEvent:l,cloneTouchEvent:function(a){var g=function(a){for(var f=[],d=0;d<a.length;++d){var b=a.item(d);b&&f.push(b)}return f};if("function"===typeof p.TouchEvent)return g=new p.TouchEvent(a.type,{touches:g(a.touches),targetTouches:g(a.targetTouches),changedTouches:g(a.changedTouches),ctrlKey:a.ctrlKey,shiftKey:a.shiftKey,altKey:a.altKey,metaKey:a.metaKey,bubbles:a.bubbles,cancelable:a.cancelable,composed:a.composed,detail:a.detail,view:a.view}),a.defaultPrevented&&
-g.preventDefault(),g;g=l(a);g.touches=a.touches;g.changedTouches=a.changedTouches;g.targetTouches=a.targetTouches;return g},escapeStringForHTML:function(a){return a.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;").replace(/\//g,"&#x2F;")},getElement:function(a){return m.getElementById(a)},getFakeMouseEvent:x,getHeadingTagNameForElement:function(a){var g=function(f){f=parseInt(f.slice(1),10);return"h"+Math.min(6,f+1)},w=function(f){var d;
-a:{for(d=f;d=d.previousSibling;){var b=d.tagName||"";if(/H[1-6]/.test(b)){d=b;break a}}d=""}if(d)return g(d);f=f.parentElement;if(!f)return"p";d=f.tagName;return/H[1-6]/.test(d)?g(d):w(f)};return w(a)},removeChildNodes:function(a){for(;a.lastChild;)a.removeChild(a.lastChild)},removeClass:function(a,k){a.classList?a.classList.remove(k):a.className=a.className.replace(new RegExp(k,"g"),"")},removeElement:function(a){a&&a.parentNode&&a.parentNode.removeChild(a)},reverseChildNodes:function(a){for(var g=
-a.childNodes.length;g--;)a.appendChild(a.childNodes[g])},simulatedEventTarget:z,stripHTMLTagsFromString:function(a){return"string"===typeof a?a.replace(/<\/?[^>]+(>|$)/g,""):a},visuallyHideElement:function(a){u(a,{position:"absolute",width:"1px",height:"1px",overflow:"hidden",whiteSpace:"nowrap",clip:"rect(1px, 1px, 1px, 1px)",marginTop:"-3px","-ms-filter":"progid:DXImageTransform.Microsoft.Alpha(Opacity=1)",filter:"alpha(opacity=1)",opacity:.01})}}});A(a,"Accessibility/A11yI18n.js",[a["Core/FormatUtilities.js"],
-a["Core/Utilities.js"]],function(a,h){var l=a.format,x=h.getNestedProperty,m=h.pick,p;(function(a){function z(a,d){var b=a.indexOf("#each("),c=a.indexOf("#plural("),e=a.indexOf("["),r=a.indexOf("]");if(-1<b){r=a.slice(b).indexOf(")")+b;c=a.substring(0,b);e=a.substring(r+1);r=a.substring(b+6,r).split(",");b=Number(r[1]);a="";if(d=x(r[0],d))for(b=isNaN(b)?d.length:b,b=0>b?d.length+b:Math.min(b,d.length),r=0;r<b;++r)a+=c+d[r]+e;return a.length?a:""}if(-1<c){e=a.slice(c).indexOf(")")+c;c=a.substring(c+
-8,e).split(",");switch(Number(x(c[0],d))){case 0:a=m(c[4],c[1]);break;case 1:a=m(c[2],c[1]);break;case 2:a=m(c[3],c[1]);break;default:a=c[1]}a?(d=a,d=d.trim&&d.trim()||d.replace(/^\s+|\s+$/g,"")):d="";return d}return-1<e?(c=a.substring(0,e),e=Number(a.substring(e+1,r)),a=void 0,d=x(c,d),!isNaN(e)&&d&&(0>e?(a=d[d.length+e],"undefined"===typeof a&&(a=d[0])):(a=d[e],"undefined"===typeof a&&(a=d[d.length-1]))),"undefined"!==typeof a?a:""):"{"+a+"}"}function g(a,d,b){var c=function(c,b){c=c.slice(b||0);
-var e=c.indexOf("{"),d=c.indexOf("}");if(-1<e&&d>e)return{statement:c.substring(e+1,d),begin:b+e+1,end:b+d}},e=[],r=0;do{var f=c(a,r);var g=a.substring(r,f&&f.begin-1);g.length&&e.push({value:g,type:"constant"});f&&e.push({value:f.statement,type:"statement"});r=f?f.end+1:r+1}while(f);e.forEach(function(c){"statement"===c.type&&(c.value=z(c.value,d))});return l(e.reduce(function(c,b){return c+b.value},""),d,b)}function k(a,d){a=a.split(".");for(var b=this.options.lang,c=0;c<a.length;++c)b=b&&b[a[c]];
-return"string"===typeof b?g(b,d,this):""}var w=[];a.compose=function(a){-1===w.indexOf(a)&&(w.push(a),a.prototype.langFormat=k);return a};a.i18nFormat=g})(p||(p={}));return p});A(a,"Accessibility/Utils/ChartUtilities.js",[a["Core/Globals.js"],a["Accessibility/Utils/HTMLUtilities.js"],a["Core/Utilities.js"]],function(a,h,l){function x(c,e){var d=e.type,a=c.hcEvents;k.createEvent&&(c.dispatchEvent||c.fireEvent)?c.dispatchEvent?c.dispatchEvent(e):c.fireEvent(d,e):a&&a[d]?b(c,d,e):c.element&&x(c.element,
-e)}function m(c){var b=c.chart,d={},a="Seconds";d.Seconds=((c.dataMax||c.max||0)-(c.dataMin||c.min||0))/1E3;d.Minutes=d.Seconds/60;d.Hours=d.Minutes/60;d.Days=d.Hours/24;["Minutes","Hours","Days"].forEach(function(c){2<d[c]&&(a=c)});var f=d[a].toFixed("Seconds"!==a&&"Minutes"!==a?1:0);return b.langFormat("accessibility.axis.timeRange"+a,{chart:b,axis:c,range:f.replace(".0","")})}function p(c){var b=c.chart,d=b.options,a=d&&d.accessibility&&d.accessibility.screenReaderSection.axisRangeDateFormat||
-"",f={min:c.dataMin||c.min||0,max:c.dataMax||c.max||0};d=function(e){return c.dateTime?b.time.dateFormat(a,f[e]):f[e].toString()};return b.langFormat("accessibility.axis.rangeFromTo",{chart:b,axis:c,rangeFrom:d("min"),rangeTo:d("max")})}function u(c){if(c.points&&c.points.length)return(c=d(c.points,function(c){return!!c.graphic}))&&c.graphic&&c.graphic.element}function z(c){var b=u(c);return b&&b.parentNode||c.graph&&c.graph.element||c.group&&c.group.element}function g(c,b){b.setAttribute("aria-hidden",
-!1);b!==c.renderTo&&b.parentNode&&b.parentNode!==k.body&&(Array.prototype.forEach.call(b.parentNode.childNodes,function(c){c.hasAttribute("aria-hidden")||c.setAttribute("aria-hidden",!0)}),g(c,b.parentNode))}var k=a.doc,w=h.stripHTMLTagsFromString,f=l.defined,d=l.find,b=l.fireEvent;return{fireEventOnWrappedOrUnwrappedElement:x,getChartTitle:function(c){return w(c.options.title.text||c.langFormat("accessibility.defaultChartTitle",{chart:c}))},getAxisDescription:function(c){return c&&(c.userOptions&&
-c.userOptions.accessibility&&c.userOptions.accessibility.description||c.axisTitle&&c.axisTitle.textStr||c.options.id||c.categories&&"categories"||c.dateTime&&"Time"||"values")},getAxisRangeDescription:function(c){var b=c.options||{};return b.accessibility&&"undefined"!==typeof b.accessibility.rangeDescription?b.accessibility.rangeDescription:c.categories?(b=c.chart,c=c.dataMax&&c.dataMin?b.langFormat("accessibility.axis.rangeCategories",{chart:b,axis:c,numCategories:c.dataMax-c.dataMin+1}):"",c):
-!c.dateTime||0!==c.min&&0!==c.dataMin?p(c):m(c)},getPointFromXY:function(c,b,a){for(var e=c.length,r;e--;)if(r=d(c[e].points||[],function(c){return c.x===b&&c.y===a}))return r},getSeriesFirstPointElement:u,getSeriesFromName:function(c,b){return b?(c.series||[]).filter(function(c){return c.name===b}):c.series},getSeriesA11yElement:z,unhideChartElementFromAT:g,hideSeriesFromAT:function(c){(c=z(c))&&c.setAttribute("aria-hidden",!0)},scrollToPoint:function(c){var e=c.series.xAxis,d=c.series.yAxis,a=e&&
-e.scrollbar?e:d;if((e=a&&a.scrollbar)&&f(e.to)&&f(e.from)){d=e.to-e.from;if(f(a.dataMin)&&f(a.dataMax)){var g=a.toPixels(a.dataMin),k=a.toPixels(a.dataMax);c=(a.toPixels(c["xAxis"===a.coll?"x":"y"]||0)-g)/(k-g)}else c=0;e.updatePosition(c-d/2,c+d/2);b(e,"changed",{from:e.from,to:e.to,trigger:"scrollbar",DOMEvent:null})}}}});A(a,"Accessibility/Utils/DOMElementProvider.js",[a["Core/Globals.js"],a["Accessibility/Utils/HTMLUtilities.js"]],function(a,h){var l=a.doc,x=h.removeElement;return function(){function a(){this.elements=
-[]}a.prototype.createElement=function(){var a=l.createElement.apply(l,arguments);this.elements.push(a);return a};a.prototype.destroyCreatedElements=function(){this.elements.forEach(function(a){x(a)});this.elements=[]};return a}()});A(a,"Accessibility/Utils/EventProvider.js",[a["Core/Globals.js"],a["Core/Utilities.js"]],function(a,h){var l=h.addEvent;return function(){function h(){this.eventRemovers=[]}h.prototype.addEvent=function(){var h=l.apply(a,arguments);this.eventRemovers.push(h);return h};
-h.prototype.removeAddedEvents=function(){this.eventRemovers.forEach(function(a){return a()});this.eventRemovers=[]};return h}()});A(a,"Accessibility/AccessibilityComponent.js",[a["Accessibility/Utils/ChartUtilities.js"],a["Accessibility/Utils/DOMElementProvider.js"],a["Accessibility/Utils/EventProvider.js"],a["Accessibility/Utils/HTMLUtilities.js"],a["Core/Utilities.js"]],function(a,h,l,x,m){var p=a.fireEventOnWrappedOrUnwrappedElement,u=x.getFakeMouseEvent;a=m.extend;x=function(){function a(){this.proxyProvider=
-this.keyCodes=this.eventProvider=this.domElementProvider=this.chart=void 0}a.prototype.initBase=function(a,k){this.chart=a;this.eventProvider=new l;this.domElementProvider=new h;this.proxyProvider=k;this.keyCodes={left:37,right:39,up:38,down:40,enter:13,space:32,esc:27,tab:9,pageUp:33,pageDown:34,end:35,home:36}};a.prototype.addEvent=function(a,k,w,f){return this.eventProvider.addEvent(a,k,w,f)};a.prototype.createElement=function(a,k){return this.domElementProvider.createElement(a,k)};a.prototype.fakeClickEvent=
-function(a){var g=u("click");p(a,g)};a.prototype.destroyBase=function(){this.domElementProvider.destroyCreatedElements();this.eventProvider.removeAddedEvents()};return a}();a(x.prototype,{init:function(){},getKeyboardNavigation:function(){},onChartUpdate:function(){},onChartRender:function(){},destroy:function(){}});return x});A(a,"Accessibility/KeyboardNavigationHandler.js",[a["Core/Utilities.js"]],function(a){var h=a.find;a=function(){function a(a,h){this.chart=a;this.keyCodeMap=h.keyCodeMap||[];
-this.validate=h.validate;this.init=h.init;this.terminate=h.terminate;this.response={success:1,prev:2,next:3,noHandler:4,fail:5}}a.prototype.run=function(a){var l=a.which||a.keyCode,p=this.response.noHandler,u=h(this.keyCodeMap,function(a){return-1<a[0].indexOf(l)});u?p=u[1].call(this,l,a):9===l&&(p=this.response[a.shiftKey?"prev":"next"]);return p};return a}();"";return a});A(a,"Accessibility/Components/ContainerComponent.js",[a["Accessibility/AccessibilityComponent.js"],a["Accessibility/KeyboardNavigationHandler.js"],
-a["Accessibility/Utils/ChartUtilities.js"],a["Core/Globals.js"],a["Accessibility/Utils/HTMLUtilities.js"]],function(a,h,l,x,m){var p=this&&this.__extends||function(){var a=function(f,d){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,c){b.__proto__=c}||function(b,c){for(var a in c)c.hasOwnProperty(a)&&(b[a]=c[a])};return a(f,d)};return function(f,d){function b(){this.constructor=f}a(f,d);f.prototype=null===d?Object.create(d):(b.prototype=d.prototype,new b)}}(),u=l.unhideChartElementFromAT,
-z=l.getChartTitle,g=x.doc,k=m.stripHTMLTagsFromString;return function(a){function f(){return null!==a&&a.apply(this,arguments)||this}p(f,a);f.prototype.onChartUpdate=function(){this.handleSVGTitleElement();this.setSVGContainerLabel();this.setGraphicContainerAttrs();this.setRenderToAttrs();this.makeCreditsAccessible()};f.prototype.handleSVGTitleElement=function(){var a=this.chart,b="highcharts-title-"+a.index,c=k(a.langFormat("accessibility.svgContainerTitle",{chartTitle:z(a)}));if(c.length){var e=
-this.svgTitleElement=this.svgTitleElement||g.createElementNS("http://www.w3.org/2000/svg","title");e.textContent=c;e.id=b;a.renderTo.insertBefore(e,a.renderTo.firstChild)}};f.prototype.setSVGContainerLabel=function(){var a=this.chart,b=a.langFormat("accessibility.svgContainerLabel",{chartTitle:z(a)});a.renderer.box&&b.length&&a.renderer.box.setAttribute("aria-label",b)};f.prototype.setGraphicContainerAttrs=function(){var a=this.chart,b=a.langFormat("accessibility.graphicContainerLabel",{chartTitle:z(a)});
-b.length&&a.container.setAttribute("aria-label",b)};f.prototype.setRenderToAttrs=function(){var a=this.chart,b="disabled"!==a.options.accessibility.landmarkVerbosity,c=a.langFormat("accessibility.chartContainerLabel",{title:z(a),chart:a});c&&(a.renderTo.setAttribute("role",b?"region":"group"),a.renderTo.setAttribute("aria-label",c))};f.prototype.makeCreditsAccessible=function(){var a=this.chart,b=a.credits;b&&(b.textStr&&b.element.setAttribute("aria-label",a.langFormat("accessibility.credits",{creditsStr:k(b.textStr)})),
-u(a,b.element))};f.prototype.getKeyboardNavigation=function(){var a=this.chart;return new h(a,{keyCodeMap:[],validate:function(){return!0},init:function(){var b=a.accessibility;b&&b.keyboardNavigation.tabindexContainer.focus()}})};f.prototype.destroy=function(){this.chart.renderTo.setAttribute("aria-hidden",!0)};return f}(a)});A(a,"Accessibility/FocusBorder.js",[a["Core/Renderer/SVG/SVGLabel.js"],a["Core/Utilities.js"]],function(a,h){var l=h.addEvent,u=h.pick,m;(function(h){function p(){var c=this.focusElement,
-b=this.options.accessibility.keyboardNavigation.focusBorder;c&&(c.removeFocusBorder(),b.enabled&&c.addFocusBorder(b.margin,{stroke:b.style.color,strokeWidth:b.style.lineWidth,r:b.style.borderRadius}))}function z(c,b){var a=this.options.accessibility.keyboardNavigation.focusBorder;(b=b||c.element)&&b.focus&&(b.hcEvents&&b.hcEvents.focusin||l(b,"focusin",function(){}),b.focus(),a.hideBrowserFocusOutline&&(b.style.outline="none"));this.focusElement&&this.focusElement.removeFocusBorder();this.focusElement=
-c;this.renderFocusBorder()}function g(b){if(!b.focusBorderDestroyHook){var c=b.destroy;b.destroy=function(){b.focusBorder&&b.focusBorder.destroy&&b.focusBorder.destroy();return c.apply(b,arguments)};b.focusBorderDestroyHook=c}}function k(b,c){this.focusBorder&&this.removeFocusBorder();var e=this.getBBox(),d=u(b,3),r=this.parentGroup,f=this.scaleX||r&&r.scaleX,k=this.scaleY||r&&r.scaleY;f=(f?!k:k)?Math.abs(f||k||1):(Math.abs(f||1)+Math.abs(k||1))/2;e.x+=this.translateX?this.translateX:0;e.y+=this.translateY?
-this.translateY:0;k=e.x-d;var h=e.y-d,v=e.width+2*d,n=e.height+2*d,q=this instanceof a;if("text"===this.element.nodeName||q){var D=!!this.rotation;if(q)var y={x:D?1:0,y:0};else{var F=y=0;"middle"===this.attr("text-anchor")?y=F=.5:this.rotation?y=.25:F=.75;y={x:y,y:F}}F=+this.attr("x");var t=+this.attr("y");isNaN(F)||(k=F-e.width*y.x-d);isNaN(t)||(h=t-e.height*y.y-d);q&&D&&(q=v,v=n,n=q,isNaN(F)||(k=F-e.height*y.x-d),isNaN(t)||(h=t-e.width*y.y-d))}this.focusBorder=this.renderer.rect(k,h,v,n,parseInt((c&&
-c.r||0).toString(),10)/f).addClass("highcharts-focus-border").attr({zIndex:99}).add(r);this.renderer.styledMode||this.focusBorder.attr({stroke:c&&c.stroke,"stroke-width":(c&&c.strokeWidth||0)/f});w(this,b,c);g(this)}function w(b){for(var a=[],e=1;e<arguments.length;e++)a[e-1]=arguments[e];b.focusBorderUpdateHooks||(b.focusBorderUpdateHooks={},c.forEach(function(c){c+="Setter";var e=b[c]||b._defaultSetter;b.focusBorderUpdateHooks[c]=e;b[c]=function(){var c=e.apply(b,arguments);b.addFocusBorder.apply(b,
-a);return c}}))}function f(){d(this);this.focusBorderDestroyHook&&(this.destroy=this.focusBorderDestroyHook,delete this.focusBorderDestroyHook);this.focusBorder&&(this.focusBorder.destroy(),delete this.focusBorder)}function d(b){b.focusBorderUpdateHooks&&(Object.keys(b.focusBorderUpdateHooks).forEach(function(c){var a=b.focusBorderUpdateHooks[c];a===b._defaultSetter?delete b[c]:b[c]=a}),delete b.focusBorderUpdateHooks)}var b=[],c="x y transform width height r d stroke-width".split(" ");h.compose=
-function(c,a){-1===b.indexOf(c)&&(b.push(c),c=c.prototype,c.renderFocusBorder=p,c.setFocusToElement=z);-1===b.indexOf(a)&&(b.push(a),a=a.prototype,a.addFocusBorder=k,a.removeFocusBorder=f)}})(m||(m={}));return m});A(a,"Accessibility/Utils/Announcer.js",[a["Core/Renderer/HTML/AST.js"],a["Accessibility/Utils/DOMElementProvider.js"],a["Core/Globals.js"],a["Accessibility/Utils/HTMLUtilities.js"],a["Core/Utilities.js"]],function(a,h,l,x,m){var p=l.doc,u=x.addClass,z=x.visuallyHideElement,g=m.attr;return function(){function k(a,
-f){this.chart=a;this.domElementProvider=new h;this.announceRegion=this.addAnnounceRegion(f)}k.prototype.destroy=function(){this.domElementProvider.destroyCreatedElements()};k.prototype.announce=function(g){var f=this;a.setElementHTML(this.announceRegion,g);this.clearAnnouncementRegionTimer&&clearTimeout(this.clearAnnouncementRegionTimer);this.clearAnnouncementRegionTimer=setTimeout(function(){f.announceRegion.innerHTML=a.emptyHTML;delete f.clearAnnouncementRegionTimer},1E3)};k.prototype.addAnnounceRegion=
-function(a){var f=this.chart.announcerContainer||this.createAnnouncerContainer(),d=this.domElementProvider.createElement("div");g(d,{"aria-hidden":!1,"aria-live":a});this.chart.styledMode?u(d,"highcharts-visually-hidden"):z(d);f.appendChild(d);return d};k.prototype.createAnnouncerContainer=function(){var a=this.chart,f=p.createElement("div");g(f,{"aria-hidden":!1,"class":"highcharts-announcer-container"});f.style.position="relative";a.renderTo.insertBefore(f,a.renderTo.firstChild);return a.announcerContainer=
-f};return k}()});A(a,"Accessibility/Components/AnnotationsA11y.js",[a["Accessibility/Utils/HTMLUtilities.js"]],function(a){function h(a){return(a.annotations||[]).reduce(function(a,k){k.options&&!1!==k.options.visible&&(a=a.concat(k.labels));return a},[])}function l(a){return a.options&&a.options.accessibility&&a.options.accessibility.description||a.graphic&&a.graphic.text&&a.graphic.text.textStr||""}function u(a){var g=a.options&&a.options.accessibility&&a.options.accessibility.description;if(g)return g;
-g=a.chart;var k=l(a),h=a.points.filter(function(b){return!!b.graphic}).map(function(b){var c=b.accessibility&&b.accessibility.valueDescription||b.graphic&&b.graphic.element&&b.graphic.element.getAttribute("aria-label")||"";b=b&&b.series.name||"";return(b?b+", ":"")+"data point "+c}).filter(function(b){return!!b}),f=h.length,d="accessibility.screenReaderSection.annotations.description"+(1<f?"MultiplePoints":f?"SinglePoint":"NoPoints");a={annotationText:k,annotation:a,numPoints:f,annotationPoint:h[0],
-additionalAnnotationPoints:h.slice(1)};return g.langFormat(d,a)}function m(a){return h(a).map(function(a){return(a=p(K(u(a))))?"<li>".concat(a,"</li>"):""})}var p=a.escapeStringForHTML,K=a.stripHTMLTagsFromString;return{getAnnotationsInfoHTML:function(a){var g=a.annotations;if(!g||!g.length)return"";a=m(a);return'<ul style="list-style-type: none">'.concat(a.join(" "),"</ul>")},getAnnotationLabelDescription:u,getAnnotationListItems:m,getPointAnnotationTexts:function(a){var g=h(a.series.chart).filter(function(k){return-1<
-k.points.indexOf(a)});return g.length?g.map(function(a){return"".concat(l(a))}):[]}}});A(a,"Accessibility/Components/InfoRegionsComponent.js",[a["Accessibility/A11yI18n.js"],a["Accessibility/AccessibilityComponent.js"],a["Accessibility/Utils/Announcer.js"],a["Accessibility/Components/AnnotationsA11y.js"],a["Core/Renderer/HTML/AST.js"],a["Accessibility/Utils/ChartUtilities.js"],a["Core/FormatUtilities.js"],a["Core/Globals.js"],a["Accessibility/Utils/HTMLUtilities.js"],a["Core/Utilities.js"]],function(a,
-h,l,x,m,p,K,z,g,k){function w(a,b){var c=b[0],e=a.series&&a.series[0]||{};e={numSeries:a.series.length,numPoints:e.points&&e.points.length,chart:a,mapTitle:a.mapView&&a.mapView.geoMap&&a.mapView.geoMap.title};if(!c)return a.langFormat("accessibility.chartTypes.emptyChart",e);if("map"===c)return e.mapTitle?a.langFormat("accessibility.chartTypes.mapTypeDescription",e):a.langFormat("accessibility.chartTypes.unknownMap",e);if(1<a.types.length)return a.langFormat("accessibility.chartTypes.combinationChart",
-e);b=b[0];c=a.langFormat("accessibility.seriesTypeDescriptions."+b,e);var d=a.series&&2>a.series.length?"Single":"Multiple";return(a.langFormat("accessibility.chartTypes."+b+d,e)||a.langFormat("accessibility.chartTypes.default"+d,e))+(c?" "+c:"")}var f=this&&this.__extends||function(){var a=function(b,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return a(b,c)};return function(b,c){function e(){this.constructor=
-b}a(b,c);b.prototype=null===c?Object.create(c):(e.prototype=c.prototype,new e)}}(),d=x.getAnnotationsInfoHTML,b=p.getAxisDescription,c=p.getAxisRangeDescription,e=p.getChartTitle,r=p.unhideChartElementFromAT,E=K.format,I=z.doc,u=g.addClass,B=g.getElement,H=g.getHeadingTagNameForElement,C=g.stripHTMLTagsFromString,v=g.visuallyHideElement,n=k.attr,q=k.pick;return function(D){function y(){var a=null!==D&&D.apply(this,arguments)||this;a.announcer=void 0;a.screenReaderSections={};return a}f(y,D);y.prototype.init=
-function(){var a=this.chart,b=this;this.initRegionsDefinitions();this.addEvent(a,"aftergetTableAST",function(a){b.onDataTableCreated(a)});this.addEvent(a,"afterViewData",function(a){a.wasHidden&&(b.dataTableDiv=a.element,setTimeout(function(){b.focusDataTable()},300))});this.announcer=new l(a,"assertive")};y.prototype.initRegionsDefinitions=function(){var a=this;this.screenReaderSections={before:{element:null,buildContent:function(b){var c=b.options.accessibility.screenReaderSection.beforeChartFormatter;
-return c?c(b):a.defaultBeforeChartFormatter(b)},insertIntoDOM:function(a,b){b.renderTo.insertBefore(a,b.renderTo.firstChild)},afterInserted:function(){"undefined"!==typeof a.sonifyButtonId&&a.initSonifyButton(a.sonifyButtonId);"undefined"!==typeof a.dataTableButtonId&&a.initDataTableButton(a.dataTableButtonId)}},after:{element:null,buildContent:function(b){var c=b.options.accessibility.screenReaderSection.afterChartFormatter;return c?c(b):a.defaultAfterChartFormatter()},insertIntoDOM:function(a,b){b.renderTo.insertBefore(a,
-b.container.nextSibling)},afterInserted:function(){a.chart.accessibility&&a.chart.accessibility.keyboardNavigation.updateExitAnchor()}}}};y.prototype.onChartRender=function(){var a=this;this.linkedDescriptionElement=this.getLinkedDescriptionElement();this.setLinkedDescriptionAttrs();Object.keys(this.screenReaderSections).forEach(function(b){a.updateScreenReaderSection(b)})};y.prototype.getLinkedDescriptionElement=function(){var a=this.chart.options.accessibility.linkedDescription;if(a){if("string"!==
-typeof a)return a;a=E(a,this.chart);a=I.querySelectorAll(a);if(1===a.length)return a[0]}};y.prototype.setLinkedDescriptionAttrs=function(){var a=this.linkedDescriptionElement;a&&(a.setAttribute("aria-hidden","true"),u(a,"highcharts-linked-description"))};y.prototype.updateScreenReaderSection=function(a){var b=this.chart,c=this.screenReaderSections[a],e=c.buildContent(b),d=c.element=c.element||this.createElement("div"),n=d.firstChild||this.createElement("div");e?(this.setScreenReaderSectionAttribs(d,
-a),m.setElementHTML(n,e),d.appendChild(n),c.insertIntoDOM(d,b),b.styledMode?u(n,"highcharts-visually-hidden"):v(n),r(b,n),c.afterInserted&&c.afterInserted()):(d.parentNode&&d.parentNode.removeChild(d),c.element=null)};y.prototype.setScreenReaderSectionAttribs=function(a,b){var c=this.chart,d=c.langFormat("accessibility.screenReaderSection."+b+"RegionLabel",{chart:c,chartTitle:e(c)});b="highcharts-screen-reader-region-".concat(b,"-").concat(c.index);n(a,{id:b,"aria-label":d||void 0});a.style.position=
-"relative";d&&a.setAttribute("role","all"===c.options.accessibility.landmarkVerbosity?"region":"group")};y.prototype.defaultBeforeChartFormatter=function(){var b=this.chart,c=b.options.accessibility.screenReaderSection.beforeChartFormat;if(!c)return"";var n=this.getAxesDescription(),q=b.sonify&&b.options.sonification&&b.options.sonification.enabled,y="highcharts-a11y-sonify-data-btn-"+b.index,f="hc-linkto-highcharts-data-table-"+b.index,r=d(b),v=b.langFormat("accessibility.screenReaderSection.annotations.heading",
-{chart:b});n={headingTagName:H(b.renderTo),chartTitle:e(b),typeDescription:this.getTypeDescriptionText(),chartSubtitle:this.getSubtitleText(),chartLongdesc:this.getLongdescText(),xAxisDescription:n.xAxis,yAxisDescription:n.yAxis,playAsSoundButton:q?this.getSonifyButtonText(y):"",viewTableButton:b.getCSV?this.getDataTableButtonText(f):"",annotationsTitle:r?v:"",annotationsList:r};b=a.i18nFormat(c,n,b);this.dataTableButtonId=f;this.sonifyButtonId=y;return b.replace(/<(\w+)[^>]*?>\s*<\/\1>/g,"")};y.prototype.defaultAfterChartFormatter=
-function(){var b=this.chart,c=b.options.accessibility.screenReaderSection.afterChartFormat;if(!c)return"";var e={endOfChartMarker:this.getEndOfChartMarkerText()};return a.i18nFormat(c,e,b).replace(/<(\w+)[^>]*?>\s*<\/\1>/g,"")};y.prototype.getLinkedDescription=function(){var a=this.linkedDescriptionElement;return C(a&&a.innerHTML||"")};y.prototype.getLongdescText=function(){var a=this.chart.options,b=a.caption;b=b&&b.text;var c=this.getLinkedDescription();return a.accessibility.description||c||b||
-""};y.prototype.getTypeDescriptionText=function(){var a=this.chart;return a.types?a.options.accessibility.typeDescription||w(a,a.types):""};y.prototype.getDataTableButtonText=function(a){var b=this.chart;b=b.langFormat("accessibility.table.viewAsDataTableButtonText",{chart:b,chartTitle:e(b)});return'<button id="'+a+'">'+b+"</button>"};y.prototype.getSonifyButtonText=function(a){var b=this.chart;if(b.options.sonification&&!1===b.options.sonification.enabled)return"";b=b.langFormat("accessibility.sonification.playAsSoundButtonText",
-{chart:b,chartTitle:e(b)});return'<button id="'+a+'">'+b+"</button>"};y.prototype.getSubtitleText=function(){var a=this.chart.options.subtitle;return C(a&&a.text||"")};y.prototype.getEndOfChartMarkerText=function(){var a=this.chart,b=a.langFormat("accessibility.screenReaderSection.endOfChartMarker",{chart:a});return'<div id="highcharts-end-of-chart-marker-'+a.index+'">'+b+"</div>"};y.prototype.onDataTableCreated=function(a){var b=this.chart;if(b.options.accessibility.enabled){this.viewDataTableButton&&
-this.viewDataTableButton.setAttribute("aria-expanded","true");var c=a.tree.attributes||{};c.tabindex=-1;c.summary=b.langFormat("accessibility.table.tableSummary",{chart:b});a.tree.attributes=c}};y.prototype.focusDataTable=function(){var a=this.dataTableDiv;(a=a&&a.getElementsByTagName("table")[0])&&a.focus&&a.focus()};y.prototype.initSonifyButton=function(a){var b=this,c=this.sonifyButton=B(a),e=this.chart,d=function(a){c&&(c.setAttribute("aria-hidden","true"),c.setAttribute("aria-label",""));a.preventDefault();
-a.stopPropagation();a=e.langFormat("accessibility.sonification.playAsSoundClickAnnouncement",{chart:e});b.announcer.announce(a);setTimeout(function(){c&&(c.removeAttribute("aria-hidden"),c.removeAttribute("aria-label"));e.sonify&&e.sonify()},1E3)};c&&e&&(c.setAttribute("tabindex",-1),c.onclick=function(a){(e.options.accessibility&&e.options.accessibility.screenReaderSection.onPlayAsSoundClick||d).call(this,a,e)})};y.prototype.initDataTableButton=function(a){var b=this.viewDataTableButton=B(a),c=this.chart;
-a=a.replace("hc-linkto-","");b&&(n(b,{tabindex:-1,"aria-expanded":!!B(a)}),b.onclick=c.options.accessibility.screenReaderSection.onViewDataTableClick||function(){c.viewData()})};y.prototype.getAxesDescription=function(){var a=this.chart,b=function(b,c){b=a[b];return 1<b.length||b[0]&&q(b[0].options.accessibility&&b[0].options.accessibility.enabled,c)},c=!!a.types&&0>a.types.indexOf("map")&&0>a.types.indexOf("treemap")&&0>a.types.indexOf("tilemap"),e=!!a.hasCartesianSeries,d=b("xAxis",!a.angular&&
-e&&c);b=b("yAxis",e&&c);c={};d&&(c.xAxis=this.getAxisDescriptionText("xAxis"));b&&(c.yAxis=this.getAxisDescriptionText("yAxis"));return c};y.prototype.getAxisDescriptionText=function(a){var e=this.chart,d=e[a];return e.langFormat("accessibility.axis."+a+"Description"+(1<d.length?"Plural":"Singular"),{chart:e,names:d.map(function(a){return b(a)}),ranges:d.map(function(a){return c(a)}),numAxes:d.length})};y.prototype.destroy=function(){this.announcer&&this.announcer.destroy()};return y}(h)});A(a,"Accessibility/Components/MenuComponent.js",
-[a["Core/Chart/Chart.js"],a["Core/Utilities.js"],a["Accessibility/AccessibilityComponent.js"],a["Accessibility/KeyboardNavigationHandler.js"],a["Accessibility/Utils/ChartUtilities.js"],a["Accessibility/Utils/HTMLUtilities.js"]],function(a,h,l,x,m,p){var u=this&&this.__extends||function(){var a=function(d,b){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return a(d,b)};return function(d,b){function c(){this.constructor=
-d}a(d,b);d.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)}}(),z=h.attr,g=m.getChartTitle,k=m.unhideChartElementFromAT,w=p.getFakeMouseEvent;h=function(a){function d(){return null!==a&&a.apply(this,arguments)||this}u(d,a);d.prototype.init=function(){var a=this.chart,c=this;this.addEvent(a,"exportMenuShown",function(){c.onMenuShown()});this.addEvent(a,"exportMenuHidden",function(){c.onMenuHidden()});this.createProxyGroup()};d.prototype.onMenuHidden=function(){var a=this.chart.exportContextMenu;
-a&&a.setAttribute("aria-hidden","true");this.setExportButtonExpandedState("false")};d.prototype.onMenuShown=function(){var a=this.chart,c=a.exportContextMenu;c&&(this.addAccessibleContextMenuAttribs(),k(a,c));this.setExportButtonExpandedState("true")};d.prototype.setExportButtonExpandedState=function(a){this.exportButtonProxy&&this.exportButtonProxy.buttonElement.setAttribute("aria-expanded",a)};d.prototype.onChartRender=function(){var a=this.chart,c=a.focusElement,e=a.accessibility;this.proxyProvider.clearGroup("chartMenu");
-this.proxyMenuButton();this.exportButtonProxy&&c&&c===a.exportingGroup&&(c.focusBorder?a.setFocusToElement(c,this.exportButtonProxy.buttonElement):e&&e.keyboardNavigation.tabindexContainer.focus())};d.prototype.proxyMenuButton=function(){var a=this.chart,c=this.proxyProvider,e=a.exportSVGElements&&a.exportSVGElements[0],d=a.options.exporting,f=a.exportSVGElements&&a.exportSVGElements[0];d&&!1!==d.enabled&&d.accessibility&&d.accessibility.enabled&&f&&f.element&&e&&(this.exportButtonProxy=c.addProxyElement("chartMenu",
-{click:e},{"aria-label":a.langFormat("accessibility.exporting.menuButtonLabel",{chart:a,chartTitle:g(a)}),"aria-expanded":!1,title:a.options.lang.contextButtonTitle||null}))};d.prototype.createProxyGroup=function(){this.chart&&this.proxyProvider&&this.proxyProvider.addGroup("chartMenu","div")};d.prototype.addAccessibleContextMenuAttribs=function(){var a=this.chart,c=a.exportDivElements;c&&c.length&&(c.forEach(function(a){a&&("LI"!==a.tagName||a.children&&a.children.length?a.setAttribute("aria-hidden",
-"true"):a.setAttribute("tabindex",-1))}),(c=c[0]&&c[0].parentNode)&&z(c,{"aria-hidden":void 0,"aria-label":a.langFormat("accessibility.exporting.chartMenuLabel",{chart:a}),role:"list"}))};d.prototype.getKeyboardNavigation=function(){var a=this.keyCodes,c=this.chart,e=this;return new x(c,{keyCodeMap:[[[a.left,a.up],function(){return e.onKbdPrevious(this)}],[[a.right,a.down],function(){return e.onKbdNext(this)}],[[a.enter,a.space],function(){return e.onKbdClick(this)}]],validate:function(){return!!c.exporting&&
-!1!==c.options.exporting.enabled&&!1!==c.options.exporting.accessibility.enabled},init:function(){var a=e.exportButtonProxy,b=e.chart.exportingGroup;a&&b&&c.setFocusToElement(b,a.buttonElement)},terminate:function(){c.hideExportMenu()}})};d.prototype.onKbdPrevious=function(a){var b=this.chart,e=b.options.accessibility;a=a.response;for(var d=b.highlightedExportItemIx||0;d--;)if(b.highlightExportItem(d))return a.success;return e.keyboardNavigation.wrapAround?(b.highlightLastExportItem(),a.success):
-a.prev};d.prototype.onKbdNext=function(a){var b=this.chart,e=b.options.accessibility;a=a.response;for(var d=(b.highlightedExportItemIx||0)+1;d<b.exportDivElements.length;++d)if(b.highlightExportItem(d))return a.success;return e.keyboardNavigation.wrapAround?(b.highlightExportItem(0),a.success):a.next};d.prototype.onKbdClick=function(a){var b=this.chart,e=b.exportDivElements[b.highlightedExportItemIx],d=(b.exportSVGElements&&b.exportSVGElements[0]).element;b.openMenu?this.fakeClickEvent(e):(this.fakeClickEvent(d),
-b.highlightExportItem(0));return a.response.success};return d}(l);(function(f){function d(){var a=this.exportSVGElements&&this.exportSVGElements[0];if(a&&(a=a.element,a.onclick))a.onclick(w("click"))}function b(){var a=this.exportDivElements;a&&this.exportContextMenu&&this.openMenu&&(a.forEach(function(a){if(a&&"highcharts-menu-item"===a.className&&a.onmouseout)a.onmouseout(w("mouseout"))}),this.highlightedExportItemIx=0,this.exportContextMenu.hideMenu(),this.container.focus())}function c(a){var b=
-this.exportDivElements&&this.exportDivElements[a],c=this.exportDivElements&&this.exportDivElements[this.highlightedExportItemIx];if(b&&"LI"===b.tagName&&(!b.children||!b.children.length)){var e=!!(this.renderTo.getElementsByTagName("g")[0]||{}).focus;b.focus&&e&&b.focus();if(c&&c.onmouseout)c.onmouseout(w("mouseout"));if(b.onmouseover)b.onmouseover(w("mouseover"));this.highlightedExportItemIx=a;return!0}return!1}function e(){if(this.exportDivElements)for(var a=this.exportDivElements.length;a--;)if(this.highlightExportItem(a))return!0;
-return!1}var r=[];f.compose=function(f){-1===r.indexOf(f)&&(r.push(f),f=a.prototype,f.hideExportMenu=b,f.highlightExportItem=c,f.highlightLastExportItem=e,f.showExportMenu=d)}})(h||(h={}));return h});A(a,"Accessibility/KeyboardNavigation.js",[a["Core/Globals.js"],a["Accessibility/Components/MenuComponent.js"],a["Core/Utilities.js"],a["Accessibility/Utils/EventProvider.js"],a["Accessibility/Utils/HTMLUtilities.js"]],function(a,h,l,x,m){var p=a.doc,u=a.win,z=l.addEvent,g=l.fireEvent,k=m.getElement,
-w=m.simulatedEventTarget;l=function(){function a(a,b){this.components=this.chart=void 0;this.currentModuleIx=NaN;this.exitAnchor=this.eventProvider=void 0;this.modules=[];this.tabindexContainer=void 0;this.init(a,b)}a.prototype.init=function(a,b){var c=this,e=this.eventProvider=new x;this.chart=a;this.components=b;this.modules=[];this.currentModuleIx=0;this.update();e.addEvent(this.tabindexContainer,"keydown",function(a){return c.onKeydown(a)});e.addEvent(this.tabindexContainer,"focus",function(a){return c.onFocus(a)});
-["mouseup","touchend"].forEach(function(a){return e.addEvent(p,a,function(a){return c.onMouseUp(a)})});["mousedown","touchstart"].forEach(function(b){return e.addEvent(a.renderTo,b,function(){c.isClickingChart=!0})});e.addEvent(a.renderTo,"mouseover",function(){c.pointerIsOverChart=!0});e.addEvent(a.renderTo,"mouseout",function(){c.pointerIsOverChart=!1})};a.prototype.update=function(a){var b=this.chart.options.accessibility;b=b&&b.keyboardNavigation;var c=this.components;this.updateContainerTabindex();
-b&&b.enabled&&a&&a.length?(this.modules=a.reduce(function(a,b){b=c[b].getKeyboardNavigation();return a.concat(b)},[]),this.updateExitAnchor()):(this.modules=[],this.currentModuleIx=0,this.removeExitAnchor())};a.prototype.updateExitAnchor=function(){var a="highcharts-end-of-chart-marker-".concat(this.chart.index);a=k(a);this.removeExitAnchor();a?(this.makeElementAnExitAnchor(a),this.exitAnchor=a):this.createExitAnchor()};a.prototype.move=function(a){var b=this.modules&&this.modules[this.currentModuleIx];
-b&&b.terminate&&b.terminate(a);this.chart.focusElement&&this.chart.focusElement.removeFocusBorder();this.currentModuleIx+=a;if(b=this.modules&&this.modules[this.currentModuleIx]){if(b.validate&&!b.validate())return this.move(a);if(b.init)return b.init(a),!0}this.currentModuleIx=0;this.exiting=!0;0<a?this.exitAnchor&&this.exitAnchor.focus():this.tabindexContainer.focus();return!1};a.prototype.onFocus=function(a){var b=this.chart;a=a.relatedTarget&&b.container.contains(a.relatedTarget);this.exiting||
-this.tabbingInBackwards||this.isClickingChart||a||(a=this.getFirstValidModuleIx(),null!==a&&(this.currentModuleIx=a,this.modules[a].init(1)));this.exiting=!1};a.prototype.onMouseUp=function(a){delete this.isClickingChart;if(!this.keyboardReset&&a.relatedTarget!==w){a=this.chart;if(!this.pointerIsOverChart){var b=this.modules&&this.modules[this.currentModuleIx||0];b&&b.terminate&&b.terminate();this.currentModuleIx=0}a.focusElement&&(a.focusElement.removeFocusBorder(),delete a.focusElement);this.keyboardReset=
-!0}};a.prototype.onKeydown=function(a){a=a||u.event;var b=this.modules&&this.modules.length&&this.modules[this.currentModuleIx],c;this.exiting=this.keyboardReset=!1;if(b){var e=b.run(a);e===b.response.success?c=!0:e===b.response.prev?c=this.move(-1):e===b.response.next&&(c=this.move(1));c&&(a.preventDefault(),a.stopPropagation())}};a.prototype.updateContainerTabindex=function(){var a=this.chart.options.accessibility;a=a&&a.keyboardNavigation;a=!(a&&!1===a.enabled);var b=this.chart,c=b.container;b.renderTo.hasAttribute("tabindex")&&
-(c.removeAttribute("tabindex"),c=b.renderTo);this.tabindexContainer=c;var e=c.getAttribute("tabindex");a&&!e?c.setAttribute("tabindex","0"):a||b.container.removeAttribute("tabindex")};a.prototype.createExitAnchor=function(){var a=this.chart,b=this.exitAnchor=p.createElement("div");a.renderTo.appendChild(b);this.makeElementAnExitAnchor(b)};a.prototype.makeElementAnExitAnchor=function(a){var b=this.tabindexContainer.getAttribute("tabindex")||0;a.setAttribute("class","highcharts-exit-anchor");a.setAttribute("tabindex",
-b);a.setAttribute("aria-hidden",!1);this.addExitAnchorEventsToEl(a)};a.prototype.removeExitAnchor=function(){this.exitAnchor&&this.exitAnchor.parentNode&&(this.exitAnchor.parentNode.removeChild(this.exitAnchor),delete this.exitAnchor)};a.prototype.addExitAnchorEventsToEl=function(a){var b=this.chart,c=this;this.eventProvider.addEvent(a,"focus",function(a){a=a||u.event;var e=!(a.relatedTarget&&b.container.contains(a.relatedTarget)||c.exiting);b.focusElement&&delete b.focusElement;e?(c.tabbingInBackwards=
-!0,c.tabindexContainer.focus(),delete c.tabbingInBackwards,a.preventDefault(),c.modules&&c.modules.length&&(c.currentModuleIx=c.modules.length-1,(a=c.modules[c.currentModuleIx])&&a.validate&&!a.validate()?c.move(-1):a&&a.init(-1))):c.exiting=!1})};a.prototype.getFirstValidModuleIx=function(){for(var a=this.modules.length,b=0;b<a;++b){var c=this.modules[b];if(!c.validate||c.validate())return b}return null};a.prototype.destroy=function(){this.removeExitAnchor();this.eventProvider.removeAddedEvents();
-this.chart.container.removeAttribute("tabindex")};return a}();(function(f){function d(){var a=this;g(this,"dismissPopupContent",{},function(){a.tooltip&&a.tooltip.hide(0);a.hideExportMenu()})}function b(b){27===(b.which||b.keyCode)&&a.charts&&a.charts.forEach(function(a){a&&a.dismissPopupContent&&a.dismissPopupContent()})}var c=[];f.compose=function(a){h.compose(a);-1===c.indexOf(a)&&(c.push(a),a.prototype.dismissPopupContent=d);-1===c.indexOf(p)&&(c.push(p),z(p,"keydown",b));return a}})(l||(l={}));
-return l});A(a,"Accessibility/Components/LegendComponent.js",[a["Core/Animation/AnimationUtilities.js"],a["Core/Globals.js"],a["Core/Legend/Legend.js"],a["Core/Utilities.js"],a["Accessibility/AccessibilityComponent.js"],a["Accessibility/KeyboardNavigationHandler.js"],a["Accessibility/Utils/ChartUtilities.js"],a["Accessibility/Utils/HTMLUtilities.js"]],function(a,h,l,x,m,p,K,z){function g(a){var b=a.legend&&a.legend.allItems,c=a.options.legend.accessibility||{};a=a.colorAxis&&a.colorAxis.some(function(a){return!a.dataClasses||
-!a.dataClasses.length});return!(!b||!b.length||a||!1===c.enabled)}function k(a,b){var e=b.legendItem||{};b.setState(a?"hover":"",!0);b=0;for(var d=["group","label","symbol"];b<d.length;b++){var f=e[d[b]];(f=f&&f.element||f)&&c(f,a?"mouseover":"mouseout")}}var w=this&&this.__extends||function(){var a=function(b,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return a(b,c)};return function(b,c){function e(){this.constructor=
-b}a(b,c);b.prototype=null===c?Object.create(c):(e.prototype=c.prototype,new e)}}(),f=a.animObject,d=h.doc,b=x.addEvent,c=x.fireEvent,e=x.isNumber,r=x.pick,E=x.syncTimeout,u=K.getChartTitle,J=z.stripHTMLTagsFromString,B=z.addClass,H=z.removeClass;a=function(a){function b(){var b=null!==a&&a.apply(this,arguments)||this;b.highlightedLegendItemIx=NaN;b.proxyGroup=null;return b}w(b,a);b.prototype.init=function(){var a=this;this.recreateProxies();this.addEvent(l,"afterScroll",function(){this.chart===a.chart&&
-(a.proxyProvider.updateGroupProxyElementPositions("legend"),a.updateLegendItemProxyVisibility(),-1<a.highlightedLegendItemIx&&this.chart.highlightLegendItem(a.highlightedLegendItemIx))});this.addEvent(l,"afterPositionItem",function(b){this.chart===a.chart&&this.chart.renderer&&a.updateProxyPositionForItem(b.item)});this.addEvent(l,"afterRender",function(){this.chart===a.chart&&this.chart.renderer&&a.recreateProxies()&&E(function(){return a.proxyProvider.updateGroupProxyElementPositions("legend")},
-f(r(this.chart.renderer.globalAnimation,!0)).duration)})};b.prototype.updateLegendItemProxyVisibility=function(){var a=this.chart,b=a.legend,c=b.currentPage||1,e=b.clipHeight||0,d;(b.allItems||[]).forEach(function(n){if(n.a11yProxyElement){var t=b.pages&&b.pages.length,y=n.a11yProxyElement.element,q=!1;d=n.legendItem||{};t&&(n=d.pageIx||0,t=d.y||0,q=d.label?Math.round(d.label.getBBox().height):0,q=t+q-b.pages[n]>e||n!==c-1);q?a.styledMode?B(y,"highcharts-a11y-invisible"):y.style.visibility="hidden":
-(H(y,"highcharts-a11y-invisible"),y.style.visibility="")}})};b.prototype.onChartRender=function(){g(this.chart)||this.removeProxies()};b.prototype.highlightAdjacentLegendPage=function(a){var b=this.chart,c=b.legend;a=(c.currentPage||1)+a;var e=c.pages||[];if(0<a&&a<=e.length)for(var d=e=0,n=c.allItems;d<n.length;d++)((n[d].legendItem||{}).pageIx||0)+1===a&&(c=b.highlightLegendItem(e))&&(this.highlightedLegendItemIx=e),++e};b.prototype.updateProxyPositionForItem=function(a){a.a11yProxyElement&&a.a11yProxyElement.refreshPosition()};
-b.prototype.recreateProxies=function(){var a=d.activeElement,b=this.proxyGroup;a=a&&b&&b.contains(a);this.removeProxies();return g(this.chart)?(this.addLegendProxyGroup(),this.proxyLegendItems(),this.updateLegendItemProxyVisibility(),this.updateLegendTitle(),a&&this.chart.highlightLegendItem(this.highlightedLegendItemIx),!0):!1};b.prototype.removeProxies=function(){this.proxyProvider.removeGroup("legend")};b.prototype.updateLegendTitle=function(){var a=this.chart,b=J((a.legend&&a.legend.options.title&&
-a.legend.options.title.text||"").replace(/<br ?\/?>/g," "));a=a.langFormat("accessibility.legend.legendLabel"+(b?"":"NoTitle"),{chart:a,legendTitle:b,chartTitle:u(a)});this.proxyProvider.updateGroupAttrs("legend",{"aria-label":a})};b.prototype.addLegendProxyGroup=function(){this.proxyGroup=this.proxyProvider.addGroup("legend","ul",{"aria-label":"_placeholder_",role:"all"===this.chart.options.accessibility.landmarkVerbosity?"region":null})};b.prototype.proxyLegendItems=function(){var a=this,b;((this.chart.legend||
-{}).allItems||[]).forEach(function(c){b=c.legendItem||{};b.label&&b.label.element&&a.proxyLegendItem(c)})};b.prototype.proxyLegendItem=function(a){var b=a.legendItem||{};if(b.label&&b.group){var c=this.chart.langFormat("accessibility.legend.legendItem",{chart:this.chart,itemName:J(a.name),item:a});a.a11yProxyElement=this.proxyProvider.addProxyElement("legend",{click:b.label,visual:(b.group.div?b.label:b.group).element},{tabindex:-1,"aria-pressed":a.visible,"aria-label":c})}};b.prototype.getKeyboardNavigation=
-function(){var a=this.keyCodes,b=this,c=this.chart;return new p(c,{keyCodeMap:[[[a.left,a.right,a.up,a.down],function(a){return b.onKbdArrowKey(this,a)}],[[a.enter,a.space],function(){return b.onKbdClick(this)}],[[a.pageDown,a.pageUp],function(c){b.highlightAdjacentLegendPage(c===a.pageDown?1:-1);return this.response.success}]],validate:function(){return b.shouldHaveLegendNavigation()},init:function(){c.highlightLegendItem(0);b.highlightedLegendItemIx=0},terminate:function(){b.highlightedLegendItemIx=
--1;c.legend.allItems.forEach(function(a){return k(!1,a)})}})};b.prototype.onKbdArrowKey=function(a,b){var c=this.keyCodes,e=a.response,d=this.chart,n=d.options.accessibility,f=d.legend.allItems.length;b=b===c.left||b===c.up?-1:1;if(d.highlightLegendItem(this.highlightedLegendItemIx+b))return this.highlightedLegendItemIx+=b,e.success;1<f&&n.keyboardNavigation.wrapAround&&a.init(b);return e.success};b.prototype.onKbdClick=function(a){var b=this.chart.legend.allItems[this.highlightedLegendItemIx];b&&
-b.a11yProxyElement&&b.a11yProxyElement.click();return a.response.success};b.prototype.shouldHaveLegendNavigation=function(){if(!g(this.chart))return!1;var a=this.chart,b=(a.options.legend||{}).accessibility||{};return!!(a.legend.display&&b.keyboardNavigation&&b.keyboardNavigation.enabled)};return b}(m);(function(a){function c(a){var b=this.legend.allItems,c=this.accessibility&&this.accessibility.components.legend.highlightedLegendItemIx,d=b[a],n=d.legendItem||{};return d?(e(c)&&b[c]&&k(!1,b[c]),b=
-this.legend,a=(b.allItems[a].legendItem||{}).pageIx,c=b.currentPage,"undefined"!==typeof a&&a+1!==c&&b.scroll(1+a-c),n=n.label,a=d.a11yProxyElement&&d.a11yProxyElement.buttonElement,n&&n.element&&a&&this.setFocusToElement(n,a),k(!0,d),!0):!1}function d(a){var b=a.item;this.chart.options.accessibility.enabled&&b&&b.a11yProxyElement&&b.a11yProxyElement.buttonElement.setAttribute("aria-pressed",a.visible?"true":"false")}var f=[];a.compose=function(a,e){-1===f.indexOf(a)&&(f.push(a),a.prototype.highlightLegendItem=
-c);-1===f.indexOf(e)&&(f.push(e),b(e,"afterColorizeItem",d))}})(a||(a={}));return a});A(a,"Accessibility/Components/SeriesComponent/SeriesDescriber.js",[a["Accessibility/Components/AnnotationsA11y.js"],a["Accessibility/Utils/ChartUtilities.js"],a["Core/FormatUtilities.js"],a["Accessibility/Utils/HTMLUtilities.js"],a["Core/Utilities.js"]],function(a,h,l,x,m){function p(a){var b=a.index;return a.series&&a.series.data&&F(b)?q(a.series.data,function(a){return!!(a&&"undefined"!==typeof a.index&&a.index>
-b&&a.graphic&&a.graphic.element)})||null:null}function u(a){var b=a.chart.options.accessibility.series.pointDescriptionEnabledThreshold;return!!(!1!==b&&a.points&&a.points.length>=b)}function z(a){var b=a.options.accessibility||{};return!u(a)&&!b.exposeAsGroupOnly}function g(a){var b=a.chart.options.accessibility.keyboardNavigation.seriesNavigation;return!(!a.points||!(a.points.length<b.pointNavigationEnabledThreshold||!1===b.pointNavigationEnabledThreshold))}function k(a,b){var c=a.series,e=c.chart;
-a=e.options.accessibility.point||{};var d=c.options.accessibility&&c.options.accessibility.point||{};c=c.tooltipOptions||{};e=e.options.lang;return D(b)?C(b,d.valueDecimals||a.valueDecimals||c.valueDecimals||-1,e.decimalPoint,e.accessibility.thousandsSep||e.thousandsSep):b}function w(a){var b=(a.options.accessibility||{}).description;return b&&a.chart.langFormat("accessibility.series.description",{description:b,series:a})||""}function f(a,b){return a.chart.langFormat("accessibility.series."+b+"Description",
-{name:E(a[b]),series:a})}function d(a,b,c){var e=b||"",d=c||"";return a.series.pointArrayMap.reduce(function(b,c){b+=b.length?", ":"";var n=k(a,y(a[c],a.options[c]));return b+(c+": "+e+n+d)},"")}function b(a){var b=a.series,c=1<b.chart.series.length||b.options.name,e=a.series;var n=e.chart;var f=e.options.accessibility;f=f&&f.point&&f.point.valueDescriptionFormat||n.options.accessibility.point.valueDescriptionFormat;e=y(e.xAxis&&e.xAxis.options.accessibility&&e.xAxis.options.accessibility.enabled,
-!n.angular);if(e){var t=a.series;var q=t.chart;var v=t.options.accessibility&&t.options.accessibility.point||{},D=q.options.accessibility.point||{};(t=t.xAxis&&t.xAxis.dateTime)?(t=t.getXDateFormat(a.x||0,q.options.tooltip.dateTimeLabelFormats),v=v.dateFormatter&&v.dateFormatter(a)||D.dateFormatter&&D.dateFormatter(a)||v.dateFormat||D.dateFormat||t,q=q.time.dateFormat(v,a.x||0,void 0)):q=void 0;v=(a.series.xAxis||{}).categories&&F(a.category)&&(""+a.category).replace("<br/>"," ");D=F(a.id)&&0>(""+
-a.id).indexOf("highcharts-");t="x, "+a.x;q=a.name||q||v||(D?a.id:t)}else q="";v=F(a.index)?a.index+1:"";D=a.series;var g=D.chart.options.accessibility.point||{},E=D.chart.options.accessibility&&D.chart.options.accessibility.point||{},h=D.tooltipOptions||{};t=E.valuePrefix||g.valuePrefix||h.valuePrefix||"";g=E.valueSuffix||g.valueSuffix||h.valueSuffix||"";E=k(a,a["undefined"!==typeof a.value?"value":"y"]);D=a.isNull?D.chart.langFormat("accessibility.series.nullPointValue",{point:a}):D.pointArrayMap?
-d(a,t,g):t+E+g;n=H(f,{point:a,index:v,xDescription:q,value:D,separator:e?", ":""},n);f=(f=a.options&&a.options.accessibility&&a.options.accessibility.description)?" "+f:"";b=c?" "+b.name+".":"";c=a.series.chart;e=r(a);q={point:a,annotations:e};c=e.length?c.langFormat("accessibility.series.pointAnnotationsDescription",q):"";a.accessibility=a.accessibility||{};a.accessibility.valueDescription=n;return n+f+b+(c?" "+c:"")}function c(a){var c=z(a),e=g(a),d=a.chart.options.accessibility.point.describeNull;
-(c||e)&&a.points.forEach(function(e){var f;if(!(f=e.graphic&&e.graphic.element)){var t=e.series;f=t&&t.chart;t=t&&t.is("sunburst");f=f&&f.options.accessibility.point.describeNull;if(f=e.isNull&&!t&&f){t=e.series;var q=p(e);t=(f=q&&q.graphic)?f.parentGroup:t.graph||t.group;q=q?{x:y(e.plotX,q.plotX,0),y:y(e.plotY,q.plotY,0)}:{x:y(e.plotX,0),y:y(e.plotY,0)};q=e.series.chart.renderer.rect(q.x,q.y,1,1);q.attr({"class":"highcharts-a11y-mock-point",fill:"none",opacity:0,"fill-opacity":0,"stroke-opacity":0});
-t&&t.element?(e.graphic=q,e.hasMockGraphic=!0,q.add(t),t.element.insertBefore(q.element,f?f.element:null),f=q.element):f=void 0}}t=e.options&&e.options.accessibility&&!1===e.options.accessibility.enabled;f&&(e.isNull&&!d?f.setAttribute("aria-hidden",!0):(f.setAttribute("tabindex","-1"),a.chart.styledMode||(f.style.outline="none"),c&&!t?(q=e.series,t=q.chart.options.accessibility.point||{},q=q.options.accessibility&&q.options.accessibility.point||{},e=n(q.descriptionFormatter&&q.descriptionFormatter(e)||
-t.descriptionFormatter&&t.descriptionFormatter(e)||b(e)),f.setAttribute("role","img"),f.setAttribute("aria-label",e)):f.setAttribute("aria-hidden",!0)))})}function e(a){var b=a.chart,c=b.types||[],e=w(a),d=function(c){return b[c]&&1<b[c].length&&a[c]},n=a.index+1,q=f(a,"xAxis"),t=f(a,"yAxis"),y={seriesNumber:n,series:a,chart:b};c=1<c.length?"Combination":"";y=b.langFormat("accessibility.series.summary."+a.type+c,y)||b.langFormat("accessibility.series.summary.default"+c,y);d=(d("yAxis")?" "+t+".":
-"")+(d("xAxis")?" "+q+".":"");return H(b.options.accessibility.series.descriptionFormat||"",{seriesDescription:y,authorDescription:e?" "+e:"",axisDescription:d,series:a,chart:b,seriesNumber:n},void 0)}var r=a.getPointAnnotationTexts,E=h.getAxisDescription,I=h.getSeriesFirstPointElement,J=h.getSeriesA11yElement,B=h.unhideChartElementFromAT,H=l.format,C=l.numberFormat,v=x.reverseChildNodes,n=x.stripHTMLTagsFromString,q=m.find,D=m.isNumber,y=m.pick,F=m.defined;return{defaultPointDescriptionFormatter:b,
-defaultSeriesDescriptionFormatter:e,describeSeries:function(a){var b=a.chart,d=I(a),f=J(a),q=b.is3d&&b.is3d();if(f){f.lastChild!==d||q||v(f);c(a);B(b,f);q=a.chart;b=q.options.chart;d=1<q.series.length;q=q.options.accessibility.series.describeSingleSeries;var y=(a.options.accessibility||{}).exposeAsGroupOnly;b.options3d&&b.options3d.enabled&&d||!(d||q||y||u(a))?f.removeAttribute("aria-label"):(b=a.chart.options.accessibility,d=b.landmarkVerbosity,(a.options.accessibility||{}).exposeAsGroupOnly?f.setAttribute("role",
-"img"):"all"===d?f.setAttribute("role","region"):f.setAttribute("role","group"),f.setAttribute("tabindex","-1"),a.chart.styledMode||(f.style.outline="none"),f.setAttribute("aria-label",n(b.series.descriptionFormatter&&b.series.descriptionFormatter(a)||e(a))))}}}});A(a,"Accessibility/Components/SeriesComponent/NewDataAnnouncer.js",[a["Core/Globals.js"],a["Core/Utilities.js"],a["Accessibility/Utils/Announcer.js"],a["Accessibility/Utils/ChartUtilities.js"],a["Accessibility/Utils/EventProvider.js"],a["Accessibility/Components/SeriesComponent/SeriesDescriber.js"]],
-function(a,h,l,x,m,p){function u(a){var b=a.series.data.filter(function(b){return a.x===b.x&&a.y===b.y});return 1===b.length?b[0]:a}function z(a,c){var b=(a||[]).concat(c||[]).reduce(function(a,b){a[b.name+b.index]=b;return a},{});return Object.keys(b).map(function(a){return b[a]})}var g=h.addEvent,k=h.defined,w=x.getChartTitle,f=p.defaultPointDescriptionFormatter,d=p.defaultSeriesDescriptionFormatter;h=function(){function b(a){this.announcer=void 0;this.dirty={allSeries:{}};this.eventProvider=void 0;
-this.lastAnnouncementTime=0;this.chart=a}b.prototype.init=function(){var a=this.chart,b=a.options.accessibility.announceNewData.interruptUser?"assertive":"polite";this.lastAnnouncementTime=0;this.dirty={allSeries:{}};this.eventProvider=new m;this.announcer=new l(a,b);this.addEventListeners()};b.prototype.destroy=function(){this.eventProvider.removeAddedEvents();this.announcer.destroy()};b.prototype.addEventListeners=function(){var a=this,b=this.chart,d=this.eventProvider;d.addEvent(b,"afterApplyDrilldown",
-function(){a.lastAnnouncementTime=0});d.addEvent(b,"afterAddSeries",function(b){a.onSeriesAdded(b.series)});d.addEvent(b,"redraw",function(){a.announceDirtyData()})};b.prototype.onSeriesAdded=function(a){this.chart.options.accessibility.announceNewData.enabled&&(this.dirty.hasDirty=!0,this.dirty.allSeries[a.name+a.index]=a,this.dirty.newSeries=k(this.dirty.newSeries)?void 0:a)};b.prototype.announceDirtyData=function(){var a=this;if(this.chart.options.accessibility.announceNewData&&this.dirty.hasDirty){var b=
-this.dirty.newPoint;b&&(b=u(b));this.queueAnnouncement(Object.keys(this.dirty.allSeries).map(function(b){return a.dirty.allSeries[b]}),this.dirty.newSeries,b);this.dirty={allSeries:{}}}};b.prototype.queueAnnouncement=function(a,b,d){var c=this,e=this.chart.options.accessibility.announceNewData;if(e.enabled){var f=+new Date;e=Math.max(0,e.minAnnounceInterval-(f-this.lastAnnouncementTime));a=z(this.queuedAnnouncement&&this.queuedAnnouncement.series,a);if(b=this.buildAnnouncementMessage(a,b,d))this.queuedAnnouncement&&
-clearTimeout(this.queuedAnnouncementTimer),this.queuedAnnouncement={time:f,message:b,series:a},this.queuedAnnouncementTimer=setTimeout(function(){c&&c.announcer&&(c.lastAnnouncementTime=+new Date,c.announcer.announce(c.queuedAnnouncement.message),delete c.queuedAnnouncement,delete c.queuedAnnouncementTimer)},e)}};b.prototype.buildAnnouncementMessage=function(b,e,r){var c=this.chart,g=c.options.accessibility.announceNewData;if(g.announcementFormatter&&(b=g.announcementFormatter(b,e,r),!1!==b))return b.length?
-b:null;b=a.charts&&1<a.charts.length?"Multiple":"Single";b=e?"newSeriesAnnounce"+b:r?"newPointAnnounce"+b:"newDataAnnounce";g=w(c);return c.langFormat("accessibility.announceNewData."+b,{chartTitle:g,seriesDesc:e?d(e):null,pointDesc:r?f(r):null,point:r,series:e})};return b}();(function(a){function b(a){var b=this.chart,c=this.newDataAnnouncer;c&&c.chart===b&&b.options.accessibility.announceNewData.enabled&&(c.dirty.newPoint=k(c.dirty.newPoint)?void 0:a.point)}function e(){var a=this.chart,b=this.newDataAnnouncer;
-b&&b.chart===a&&a.options.accessibility.announceNewData.enabled&&(b.dirty.hasDirty=!0,b.dirty.allSeries[this.name+this.index]=this)}a.composedClasses=[];a.compose=function(c){-1===a.composedClasses.indexOf(c)&&(a.composedClasses.push(c),g(c,"addPoint",b),g(c,"updatedData",e))}})(h||(h={}));return h});A(a,"Accessibility/ProxyElement.js",[a["Core/Globals.js"],a["Core/Utilities.js"],a["Accessibility/Utils/EventProvider.js"],a["Accessibility/Utils/ChartUtilities.js"],a["Accessibility/Utils/HTMLUtilities.js"]],
-function(a,h,l,x,m){var p=a.doc,u=h.attr,z=h.css,g=h.merge,k=x.fireEventOnWrappedOrUnwrappedElement,w=m.cloneMouseEvent,f=m.cloneTouchEvent,d=m.getFakeMouseEvent,b=m.removeElement;return function(){function a(a,b,c,d){this.chart=a;this.target=b;this.groupType=c;c="ul"===c;this.eventProvider=new l;var e=c?p.createElement("li"):null,f=this.buttonElement=p.createElement("button");a.styledMode||this.hideButtonVisually(f);e?(c&&!a.styledMode&&(e.style.listStyle="none"),e.appendChild(f),this.element=e):
-this.element=f;this.updateTarget(b,d)}a.prototype.click=function(){var a=this.getTargetPosition();a.x+=a.width/2;a.y+=a.height/2;a=d("click",a);k(this.target.click,a)};a.prototype.updateTarget=function(a,b){this.target=a;this.updateCSSClassName();var c=b||{};Object.keys(c).forEach(function(a){null===c[a]&&delete c[a]});u(this.buttonElement,g({"aria-label":this.getTargetAttr(a.click,"aria-label")},c));this.eventProvider.removeAddedEvents();this.addProxyEventsToButton(this.buttonElement,a.click);this.refreshPosition()};
-a.prototype.refreshPosition=function(){var a=this.getTargetPosition();z(this.buttonElement,{width:(a.width||1)+"px",height:(a.height||1)+"px",left:(Math.round(a.x)||0)+"px",top:(Math.round(a.y)||0)+"px"})};a.prototype.remove=function(){this.eventProvider.removeAddedEvents();b(this.element)};a.prototype.updateCSSClassName=function(){var a=this.chart.legend;a=a.group&&a.group.div;a=-1<(a&&a.className||"").indexOf("highcharts-no-tooltip");var b=-1<(this.getTargetAttr(this.target.click,"class")||"").indexOf("highcharts-no-tooltip");
-this.buttonElement.className=a||b?"highcharts-a11y-proxy-button highcharts-no-tooltip":"highcharts-a11y-proxy-button"};a.prototype.addProxyEventsToButton=function(a,b){var c=this;"click touchstart touchend touchcancel touchmove mouseover mouseenter mouseleave mouseout".split(" ").forEach(function(e){var d=0===e.indexOf("touch");c.eventProvider.addEvent(a,e,function(a){var c=d?f(a):w(a);b&&k(b,c);a.stopPropagation();d||a.preventDefault()},{passive:!1})})};a.prototype.hideButtonVisually=function(a){z(a,
-{borderWidth:0,backgroundColor:"transparent",cursor:"pointer",outline:"none",opacity:.001,filter:"alpha(opacity=1)",zIndex:999,overflow:"hidden",padding:0,margin:0,display:"block",position:"absolute","-ms-filter":"progid:DXImageTransform.Microsoft.Alpha(Opacity=1)"})};a.prototype.getTargetPosition=function(){var a=this.target.click;a=a.element?a.element:a;a=this.target.visual||a;if(this.chart.renderTo&&a&&a.getBoundingClientRect){a=a.getBoundingClientRect();var b=this.chart.pointer.getChartPosition();
-return{x:(a.left-b.left)/b.scaleX,y:(a.top-b.top)/b.scaleY,width:a.right/b.scaleX-a.left/b.scaleX,height:a.bottom/b.scaleY-a.top/b.scaleY}}return{x:0,y:0,width:1,height:1}};a.prototype.getTargetAttr=function(a,b){return a.element?a.element.getAttribute(b):a.getAttribute(b)};return a}()});A(a,"Accessibility/ProxyProvider.js",[a["Core/Globals.js"],a["Core/Utilities.js"],a["Accessibility/Utils/ChartUtilities.js"],a["Accessibility/Utils/DOMElementProvider.js"],a["Accessibility/Utils/HTMLUtilities.js"],
-a["Accessibility/ProxyElement.js"]],function(a,h,l,x,m,p){var u=a.doc,z=h.attr,g=h.css,k=l.unhideChartElementFromAT,w=m.removeElement,f=m.removeChildNodes;return function(){function a(a){this.chart=a;this.domElementProvider=new x;this.groups={};this.groupOrder=[];this.beforeChartProxyPosContainer=this.createProxyPosContainer("before");this.afterChartProxyPosContainer=this.createProxyPosContainer("after");this.update()}a.prototype.addProxyElement=function(a,c,e){var b=this.groups[a];if(!b)throw Error("ProxyProvider.addProxyElement: Invalid group key "+
-a);a=new p(this.chart,c,b.type,e);b.proxyContainerElement.appendChild(a.element);b.proxyElements.push(a);return a};a.prototype.addGroup=function(a,c,e){var b=this.groups[a];if(b)return b.groupElement;b=this.domElementProvider.createElement(c);if(e&&e.role&&"div"!==c){var d=this.domElementProvider.createElement("div");d.appendChild(b)}else d=b;d.className="highcharts-a11y-proxy-group highcharts-a11y-proxy-group-"+a.replace(/\W/g,"-");this.groups[a]={proxyContainerElement:b,groupElement:d,type:c,proxyElements:[]};
-z(d,e||{});"ul"===c&&b.setAttribute("role","list");this.afterChartProxyPosContainer.appendChild(d);this.updateGroupOrder(this.groupOrder);return d};a.prototype.updateGroupAttrs=function(a,c){var b=this.groups[a];if(!b)throw Error("ProxyProvider.updateGroupAttrs: Invalid group key "+a);z(b.groupElement,c)};a.prototype.updateGroupOrder=function(a){var b=this;this.groupOrder=a.slice();if(!this.isDOMOrderGroupOrder()){var d=a.indexOf("series"),g=-1<d?a.slice(0,d):a,k=-1<d?a.slice(d+1):[];a=u.activeElement;
-["before","after"].forEach(function(a){var c=b["before"===a?"beforeChartProxyPosContainer":"afterChartProxyPosContainer"];a="before"===a?g:k;f(c);a.forEach(function(a){(a=b.groups[a])&&c.appendChild(a.groupElement)})});(this.beforeChartProxyPosContainer.contains(a)||this.afterChartProxyPosContainer.contains(a))&&a&&a.focus&&a.focus()}};a.prototype.clearGroup=function(a){var b=this.groups[a];if(!b)throw Error("ProxyProvider.clearGroup: Invalid group key "+a);f(b.proxyContainerElement)};a.prototype.removeGroup=
-function(a){var b=this.groups[a];b&&(w(b.groupElement),delete this.groups[a])};a.prototype.update=function(){this.updatePosContainerPositions();this.updateGroupOrder(this.groupOrder);this.updateProxyElementPositions()};a.prototype.updateProxyElementPositions=function(){Object.keys(this.groups).forEach(this.updateGroupProxyElementPositions.bind(this))};a.prototype.updateGroupProxyElementPositions=function(a){(a=this.groups[a])&&a.proxyElements.forEach(function(a){return a.refreshPosition()})};a.prototype.destroy=
-function(){this.domElementProvider.destroyCreatedElements()};a.prototype.createProxyPosContainer=function(a){var b=this.domElementProvider.createElement("div");b.setAttribute("aria-hidden","false");b.className="highcharts-a11y-proxy-container"+(a?"-"+a:"");g(b,{top:"0",left:"0"});this.chart.styledMode||(b.style.whiteSpace="nowrap",b.style.position="absolute");return b};a.prototype.getCurrentGroupOrderInDOM=function(){var a=this,c=function(b){var c=[];b=b.children;for(var d=0;d<b.length;++d){a:{var e=
-b[d];for(var f=Object.keys(a.groups),g=f.length;g--;){var k=f[g],v=a.groups[k];if(v&&e===v.groupElement){e=k;break a}}e=void 0}e&&c.push(e)}return c},d=c(this.beforeChartProxyPosContainer);c=c(this.afterChartProxyPosContainer);d.push("series");return d.concat(c)};a.prototype.isDOMOrderGroupOrder=function(){var a=this,c=this.getCurrentGroupOrderInDOM(),d=this.groupOrder.filter(function(b){return"series"===b||!!a.groups[b]}),f=c.length;if(f!==d.length)return!1;for(;f--;)if(c[f]!==d[f])return!1;return!0};
-a.prototype.updatePosContainerPositions=function(){var a=this.chart;if(!a.renderer.forExport){var c=a.renderer.box;a.container.insertBefore(this.afterChartProxyPosContainer,c.nextSibling);a.container.insertBefore(this.beforeChartProxyPosContainer,c);k(this.chart,this.afterChartProxyPosContainer);k(this.chart,this.beforeChartProxyPosContainer)}};return a}()});A(a,"Stock/RangeSelector/RangeSelectorDefaults.js",[],function(){return{lang:{rangeSelectorZoom:"Zoom",rangeSelectorFrom:"",rangeSelectorTo:"\u2192"},
-rangeSelector:{allButtonsEnabled:!1,buttons:void 0,buttonSpacing:5,dropdown:"responsive",enabled:void 0,verticalAlign:"top",buttonTheme:{width:28,height:18,padding:2,zIndex:7},floating:!1,x:0,y:0,height:void 0,inputBoxBorderColor:"none",inputBoxHeight:17,inputBoxWidth:void 0,inputDateFormat:"%b %e, %Y",inputDateParser:void 0,inputEditDateFormat:"%Y-%m-%d",inputEnabled:!0,inputPosition:{align:"right",x:0,y:0},inputSpacing:5,selected:void 0,buttonPosition:{align:"left",x:0,y:0},inputStyle:{color:"#335cad",
-cursor:"pointer"},labelStyle:{color:"#666666"}}}});A(a,"Stock/RangeSelector/RangeSelectorComposition.js",[a["Core/Defaults.js"],a["Stock/RangeSelector/RangeSelectorDefaults.js"],a["Core/Utilities.js"]],function(a,h,l){function x(){var a=this.range,b=a.type,c=this.max,d=this.chart.time,e=function(a,c){var e="year"===b?"FullYear":"Month",n=new d.Date(a),f=d.get(e,n);d.set(e,n,f+c);f===d.get(e,n)&&d.set("Date",n,0);return n.getTime()-a};if(E(a)){var f=c-a;var t=a}else a&&(f=c+e(c,-(a.count||1)),this.chart&&
-(this.chart.fixedRange=c-f));var g=A(this.dataMin,Number.MIN_VALUE);E(f)||(f=g);f<=g&&(f=g,"undefined"===typeof t&&(t=e(f,a.count)),this.newMax=Math.min(f+t,A(this.dataMax,Number.MAX_VALUE)));E(c)?!E(a)&&a&&a._offsetMin&&(f+=a._offsetMin):f=void 0;return f}function m(){this.options.rangeSelector&&this.options.rangeSelector.enabled&&(this.rangeSelector=new C(this))}function p(){var a=this.axes,b=this.rangeSelector;b&&(E(b.deferredYTDClick)&&(b.clickButton(b.deferredYTDClick),delete b.deferredYTDClick),
-a.forEach(function(a){a.updateNames();a.setScale()}),this.getAxisMargins(),b.render(),a=b.options.verticalAlign,b.options.floating||("bottom"===a?this.extraBottomMargin=!0:"middle"!==a&&(this.extraTopMargin=!0)))}function u(a){var c,d,e,f,F=a.rangeSelector,t=function(){F&&(c=a.xAxis[0].getExtremes(),d=a.legend,f=F&&F.options.verticalAlign,E(c.min)&&F.render(c.min,c.max),d.display&&"top"===f&&f===d.options.verticalAlign&&(e=I(a.spacingBox),e.y="vertical"===d.options.layout?a.plotTop:e.y+F.getHeight(),
-d.group.placed=!1,d.align(e)))};F&&(r(B,function(b){return b[0]===a})||B.push([a,[b(a.xAxis[0],"afterSetExtremes",function(a){F&&F.render(a.min,a.max)}),b(a,"redraw",t)]]),t())}function z(){for(var a=0,b=B.length;a<b;++a){var c=B[a];if(c[0]===this){c[1].forEach(function(a){return a()});B.splice(a,1);break}}}function g(){var a=this.rangeSelector;a&&(a=a.getHeight(),this.extraTopMargin&&(this.plotTop+=a),this.extraBottomMargin&&(this.marginBottom+=a))}function k(){var a=this.rangeSelector;a&&!a.options.floating&&
-(a.render(),a=a.options.verticalAlign,"bottom"===a?this.extraBottomMargin=!0:"middle"!==a&&(this.extraTopMargin=!0))}function w(a){var b=a.options.rangeSelector;a=this.extraBottomMargin;var d=this.extraTopMargin,e=this.rangeSelector;b&&b.enabled&&!c(e)&&this.options.rangeSelector&&(this.options.rangeSelector.enabled=!0,this.rangeSelector=e=new C(this));this.extraTopMargin=this.extraBottomMargin=!1;e&&(u(this),b=b&&b.verticalAlign||e.options&&e.options.verticalAlign,e.options.floating||("bottom"===
-b?this.extraBottomMargin=!0:"middle"!==b&&(this.extraTopMargin=!0)),this.extraBottomMargin!==a||this.extraTopMargin!==d)&&(this.isDirtyBox=!0)}var f=a.defaultOptions,d=a.setOptions,b=l.addEvent,c=l.defined,e=l.extend,r=l.find,E=l.isNumber,I=l.merge,A=l.pick,B=[],H=[],C;return{compose:function(a,c,q){C=q;-1===H.indexOf(a)&&(H.push(a),a.prototype.minFromRange=x);-1===H.indexOf(c)&&(H.push(c),b(c,"afterGetContainer",m),b(c,"beforeRender",p),b(c,"destroy",z),b(c,"getMargins",g),b(c,"render",k),b(c,"update",
-w),c.prototype.callbacks.push(u));-1===H.indexOf(d)&&(e(f,{rangeSelector:h.rangeSelector}),e(f.lang,h.lang))}}});A(a,"Stock/RangeSelector/RangeSelector.js",[a["Core/Axis/Axis.js"],a["Core/Defaults.js"],a["Core/Globals.js"],a["Stock/RangeSelector/RangeSelectorComposition.js"],a["Core/Renderer/SVG/SVGElement.js"],a["Core/Utilities.js"]],function(a,h,l,x,m,p){function u(a){if(-1!==a.indexOf("%L"))return"text";var b="aAdewbBmoyY".split("").some(function(b){return-1!==a.indexOf("%"+b)}),c="HkIlMS".split("").some(function(b){return-1!==
-a.indexOf("%"+b)});return b&&c?"datetime-local":b?"date":c?"time":"text"}var z=h.defaultOptions,g=p.addEvent,k=p.createElement,w=p.css,f=p.defined,d=p.destroyObjectProperties,b=p.discardElement,c=p.extend,e=p.fireEvent,r=p.isNumber,E=p.merge,I=p.objectEach,A=p.pad,B=p.pick,H=p.pInt,C=p.splat;h=function(){function v(a){this.buttons=void 0;this.buttonOptions=v.prototype.defaultButtons;this.initialButtonGroupWidth=0;this.options=void 0;this.chart=a;this.init(a)}v.compose=function(a,b){x.compose(a,b,
-v)};v.prototype.clickButton=function(b,c){var d=this.chart,n=this.buttonOptions[b],q=d.xAxis[0],t=d.scroller&&d.scroller.getUnionExtremes()||q||{},k=n.type,v=n.dataGrouping,h=t.dataMin,l=t.dataMax,G=q&&Math.round(Math.min(q.max,B(l,q.max)));t=n._range;var p,w=!0;if(null!==h&&null!==l){d.fixedRange=t;this.setSelected(b);v&&(this.forcedDataGrouping=!0,a.prototype.setDataGrouping.call(q||{chart:this.chart},v,!1),this.frozenStates=n.preserveDataGrouping);if("month"===k||"year"===k)if(q){k={range:n,max:G,
-chart:d,dataMin:h,dataMax:l};var m=q.minFromRange.call(k);r(k.newMax)&&(G=k.newMax);w=!1}else t=n;else if(t)m=Math.max(G-t,h),G=Math.min(m+t,l),w=!1;else if("ytd"===k)if(q){if("undefined"===typeof l||"undefined"===typeof h)h=Number.MAX_VALUE,l=Number.MIN_VALUE,d.series.forEach(function(a){if(a=a.xData)h=Math.min(a[0],h),l=Math.max(a[a.length-1],l)}),c=!1;k=this.getYTDExtremes(l,h,d.time.useUTC);m=p=k.min;G=k.max}else{this.deferredYTDClick=b;return}else"all"===k&&q&&(d.navigator&&d.navigator.baseSeries[0]&&
-(d.navigator.baseSeries[0].xAxis.options.range=void 0),m=h,G=l);w&&n._offsetMin&&f(m)&&(m+=n._offsetMin);n._offsetMax&&f(G)&&(G+=n._offsetMax);this.dropdown&&(this.dropdown.selectedIndex=b+1);if(q)q.setExtremes(m,G,B(c,!0),void 0,{trigger:"rangeSelectorButton",rangeSelectorButton:n});else{var u=C(d.options.xAxis)[0];var x=u.range;u.range=t;var E=u.min;u.min=p;g(d,"load",function(){u.range=x;u.min=E})}e(this,"afterBtnClick")}};v.prototype.setSelected=function(a){this.selected=this.options.selected=
-a};v.prototype.init=function(a){var b=this,c=a.options.rangeSelector,d=c.buttons||b.defaultButtons.slice(),f=c.selected,n=function(){var a=b.minInput,c=b.maxInput;a&&a.blur&&e(a,"blur");c&&c.blur&&e(c,"blur")};b.chart=a;b.options=c;b.buttons=[];b.buttonOptions=d;this.eventsToUnbind=[];this.eventsToUnbind.push(g(a.container,"mousedown",n));this.eventsToUnbind.push(g(a,"resize",n));d.forEach(b.computeButtonRange);"undefined"!==typeof f&&d[f]&&this.clickButton(f,!1);this.eventsToUnbind.push(g(a,"load",
-function(){a.xAxis&&a.xAxis[0]&&g(a.xAxis[0],"setExtremes",function(c){this.max-this.min!==a.fixedRange&&"rangeSelectorButton"!==c.trigger&&"updatedData"!==c.trigger&&b.forcedDataGrouping&&!b.frozenStates&&this.setDataGrouping(!1,!1)})}))};v.prototype.updateButtonStates=function(){var a=this,b=this.chart,c=this.dropdown,d=b.xAxis[0],e=Math.round(d.max-d.min),f=!d.hasVisibleSeries,g=b.scroller&&b.scroller.getUnionExtremes()||d,k=g.dataMin,h=g.dataMax;b=a.getYTDExtremes(h,k,b.time.useUTC);var v=b.min,
-G=b.max,l=a.selected,p=a.options.allButtonsEnabled,m=a.buttons,w=r(l);a.buttonOptions.forEach(function(b,n){var t=b._range,q=b.type,y=b.count||1,g=m[n],F=b._offsetMax-b._offsetMin,D=n===l,r=t>h-k,L=t<d.minRange;b=0;var u=!1,C=!1;t=t===e;("month"===q||"year"===q)&&e+36E5>=864E5*{month:28,year:365}[q]*y-F&&e-36E5<=864E5*{month:31,year:366}[q]*y+F?t=!0:"ytd"===q?(t=G-v+F===e,u=!D):"all"===q&&(t=d.max-d.min>=h-k,C=!D&&w&&t);q=!p&&(r||L||C||f);y=D&&t||t&&!w&&!u||D&&a.frozenStates;q?b=3:y&&(w=!0,b=2);g.state!==
-b&&(g.setState(b),c&&(c.options[n+1].disabled=q,2===b&&(c.selectedIndex=n+1)),0===b&&l===n&&a.setSelected())})};v.prototype.computeButtonRange=function(a){var b=a.type,c=a.count||1,d={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5};if(d[b])a._range=d[b]*c;else if("month"===b||"year"===b)a._range=864E5*{month:30,year:365}[b]*c;a._offsetMin=B(a.offsetMin,0);a._offsetMax=B(a.offsetMax,0);a._range+=a._offsetMax-a._offsetMin};v.prototype.getInputValue=function(a){a="min"===a?this.minInput:
-this.maxInput;var b=this.chart.options.rangeSelector,c=this.chart.time;return a?("text"===a.type&&b.inputDateParser||this.defaultInputDateParser)(a.value,c.useUTC,c):0};v.prototype.setInputValue=function(a,b){var c=this.options,d=this.chart.time,e="min"===a?this.minInput:this.maxInput;a="min"===a?this.minDateBox:this.maxDateBox;if(e){var n=e.getAttribute("data-hc-time");n=f(n)?Number(n):void 0;f(b)&&(f(n)&&e.setAttribute("data-hc-time-previous",n),e.setAttribute("data-hc-time",b),n=b);e.value=d.dateFormat(this.inputTypeFormats[e.type]||
-c.inputEditDateFormat,n);a&&a.attr({text:d.dateFormat(c.inputDateFormat,n)})}};v.prototype.setInputExtremes=function(a,b,c){if(a="min"===a?this.minInput:this.maxInput){var d=this.inputTypeFormats[a.type],e=this.chart.time;d&&(b=e.dateFormat(d,b),a.min!==b&&(a.min=b),c=e.dateFormat(d,c),a.max!==c&&(a.max=c))}};v.prototype.showInput=function(a){var b="min"===a?this.minDateBox:this.maxDateBox;if((a="min"===a?this.minInput:this.maxInput)&&b&&this.inputGroup){var c="text"===a.type,d=this.inputGroup,e=
-d.translateX;d=d.translateY;var f=this.options.inputBoxWidth;w(a,{width:c?b.width+(f?-2:20)+"px":"auto",height:c?b.height-2+"px":"auto",border:"2px solid silver"});c&&f?w(a,{left:e+b.x+"px",top:d+"px"}):w(a,{left:Math.min(Math.round(b.x+e-(a.offsetWidth-b.width)/2),this.chart.chartWidth-a.offsetWidth)+"px",top:d-(a.offsetHeight-b.height)/2+"px"})}};v.prototype.hideInput=function(a){(a="min"===a?this.minInput:this.maxInput)&&w(a,{top:"-9999em",border:0,width:"1px",height:"1px"})};v.prototype.defaultInputDateParser=
-function(a,b,c){var d=a.split("/").join("-").split(" ").join("T");-1===d.indexOf("T")&&(d+="T00:00");if(b)d+="Z";else{var e;if(e=l.isSafari)e=d,e=!(6<e.length&&(e.lastIndexOf("-")===e.length-6||e.lastIndexOf("+")===e.length-6));e&&(e=(new Date(d)).getTimezoneOffset()/60,d+=0>=e?"+".concat(A(-e),":00"):"-".concat(A(e),":00"))}d=Date.parse(d);r(d)||(a=a.split("-"),d=Date.UTC(H(a[0]),H(a[1])-1,H(a[2])));c&&b&&r(d)&&(d+=c.getTimezoneOffset(d));return d};v.prototype.drawInput=function(a){function b(){var b=
-n.maxInput,c=n.minInput,e=d.xAxis[0],f=d.scroller&&d.scroller.xAxis?d.scroller.xAxis:e,t=f.dataMin;f=f.dataMax;var q=n.getInputValue(a);q!==Number(m.getAttribute("data-hc-time-previous"))&&r(q)&&(m.setAttribute("data-hc-time-previous",q),p&&b&&r(t)?q>Number(b.getAttribute("data-hc-time"))?q=void 0:q<t&&(q=t):c&&r(f)&&(q<Number(c.getAttribute("data-hc-time"))?q=void 0:q>f&&(q=f)),"undefined"!==typeof q&&e.setExtremes(p?q:e.min,p?e.max:q,void 0,void 0,{trigger:"rangeSelectorInput"}))}var d=this.chart,
-e=this.div,f=this.inputGroup,n=this,g=d.renderer.style||{},h=d.renderer,v=d.options.rangeSelector,p="min"===a,G=z.lang[p?"rangeSelectorFrom":"rangeSelectorTo"]||"";G=h.label(G,0).addClass("highcharts-range-label").attr({padding:G?2:0,height:G?v.inputBoxHeight:0}).add(f);h=h.label("",0).addClass("highcharts-range-input").attr({padding:2,width:v.inputBoxWidth,height:v.inputBoxHeight,"text-align":"center"}).on("click",function(){n.showInput(a);n[a+"Input"].focus()});d.styledMode||h.attr({stroke:v.inputBoxBorderColor,
-"stroke-width":1});h.add(f);var m=k("input",{name:a,className:"highcharts-range-selector"},void 0,e);m.setAttribute("type",u(v.inputDateFormat||"%b %e, %Y"));d.styledMode||(G.css(E(g,v.labelStyle)),h.css(E({color:"#333333"},g,v.inputStyle)),w(m,c({position:"absolute",border:0,boxShadow:"0 0 15px rgba(0,0,0,0.3)",width:"1px",height:"1px",padding:0,textAlign:"center",fontSize:g.fontSize,fontFamily:g.fontFamily,top:"-9999em"},v.inputStyle)));m.onfocus=function(){n.showInput(a)};m.onblur=function(){m===
-l.doc.activeElement&&b();n.hideInput(a);n.setInputValue(a);m.blur()};var C=!1;m.onchange=function(){C||(b(),n.hideInput(a),m.blur())};m.onkeypress=function(a){13===a.keyCode&&b()};m.onkeydown=function(a){C=!0;38!==a.keyCode&&40!==a.keyCode||b()};m.onkeyup=function(){C=!1};return{dateBox:h,input:m,label:G}};v.prototype.getPosition=function(){var a=this.chart,b=a.options.rangeSelector;a="top"===b.verticalAlign?a.plotTop-a.axisOffset[0]:0;return{buttonTop:a+b.buttonPosition.y,inputTop:a+b.inputPosition.y-
-10}};v.prototype.getYTDExtremes=function(a,b,c){var d=this.chart.time,e=new d.Date(a),f=d.get("FullYear",e);c=c?d.Date.UTC(f,0,1):+new d.Date(f,0,1);b=Math.max(b,c);e=e.getTime();return{max:Math.min(a||e,e),min:b}};v.prototype.render=function(a,b){var c=this.chart,d=c.renderer,e=c.container,n=c.options,q=n.rangeSelector,g=B(n.chart.style&&n.chart.style.zIndex,0)+1;n=q.inputEnabled;if(!1!==q.enabled){this.rendered||(this.group=d.g("range-selector-group").attr({zIndex:7}).add(),this.div=k("div",void 0,
-{position:"relative",height:0,zIndex:g}),this.buttonOptions.length&&this.renderButtons(),e.parentNode&&e.parentNode.insertBefore(this.div,e),n&&(this.inputGroup=d.g("input-group").add(this.group),d=this.drawInput("min"),this.minDateBox=d.dateBox,this.minLabel=d.label,this.minInput=d.input,d=this.drawInput("max"),this.maxDateBox=d.dateBox,this.maxLabel=d.label,this.maxInput=d.input));if(n&&(this.setInputValue("min",a),this.setInputValue("max",b),a=c.scroller&&c.scroller.getUnionExtremes()||c.xAxis[0]||
-{},f(a.dataMin)&&f(a.dataMax)&&(c=c.xAxis[0].minRange||0,this.setInputExtremes("min",a.dataMin,Math.min(a.dataMax,this.getInputValue("max"))-c),this.setInputExtremes("max",Math.max(a.dataMin,this.getInputValue("min"))+c,a.dataMax)),this.inputGroup)){var h=0;[this.minLabel,this.minDateBox,this.maxLabel,this.maxDateBox].forEach(function(a){if(a){var b=a.getBBox().width;b&&(a.attr({x:h}),h+=b+q.inputSpacing)}})}this.alignElements();this.rendered=!0}};v.prototype.renderButtons=function(){var a=this,b=
-this.buttons,c=this.options,d=z.lang,f=this.chart.renderer,t=E(c.buttonTheme),h=t&&t.states,v=t.width||28;delete t.width;delete t.states;this.buttonGroup=f.g("range-selector-buttons").add(this.group);var r=this.dropdown=k("select",void 0,{position:"absolute",width:"1px",height:"1px",padding:0,border:0,top:"-9999em",cursor:"pointer",opacity:.0001},this.div);g(r,"touchstart",function(){r.style.fontSize="16px"});[[l.isMS?"mouseover":"mouseenter"],[l.isMS?"mouseout":"mouseleave"],["change","click"]].forEach(function(c){var d=
-c[0],f=c[1];g(r,d,function(){var c=b[a.currentButtonIndex()];c&&e(c.element,f||d)})});this.zoomText=f.label(d&&d.rangeSelectorZoom||"",0).attr({padding:c.buttonTheme.padding,height:c.buttonTheme.height,paddingLeft:0,paddingRight:0}).add(this.buttonGroup);this.chart.styledMode||(this.zoomText.css(c.labelStyle),t["stroke-width"]=B(t["stroke-width"],0));k("option",{textContent:this.zoomText.textStr,disabled:!0},void 0,r);this.buttonOptions.forEach(function(c,d){k("option",{textContent:c.title||c.text},
-void 0,r);b[d]=f.button(c.text,0,0,function(b){var e=c.events&&c.events.click,f;e&&(f=e.call(c,b));!1!==f&&a.clickButton(d);a.isActive=!0},t,h&&h.hover,h&&h.select,h&&h.disabled).attr({"text-align":"center",width:v}).add(a.buttonGroup);c.title&&b[d].attr("title",c.title)})};v.prototype.alignElements=function(){var a=this,b=this.buttonGroup,c=this.buttons,d=this.chart,e=this.group,f=this.inputGroup,g=this.options,h=this.zoomText,k=d.options,v=k.exporting&&!1!==k.exporting.enabled&&k.navigation&&k.navigation.buttonOptions;
-k=g.buttonPosition;var r=g.inputPosition,l=g.verticalAlign,m=function(b,c){return v&&a.titleCollision(d)&&"top"===l&&"right"===c.align&&c.y-b.getBBox().height-12<(v.y||0)+(v.height||0)+d.spacing[0]?-40:0},p=d.plotLeft;if(e&&k&&r){var w=k.x-d.spacing[3];if(b){this.positionButtons();if(!this.initialButtonGroupWidth){var C=0;h&&(C+=h.getBBox().width+5);c.forEach(function(a,b){C+=a.width;b!==c.length-1&&(C+=g.buttonSpacing)});this.initialButtonGroupWidth=C}p-=d.spacing[3];this.updateButtonStates();h=
-m(b,k);this.alignButtonGroup(h);e.placed=b.placed=d.hasLoaded}b=0;f&&(b=m(f,r),"left"===r.align?w=p:"right"===r.align&&(w=-Math.max(d.axisOffset[1],-b)),f.align({y:r.y,width:f.getBBox().width,align:r.align,x:r.x+w-2},!0,d.spacingBox),f.placed=d.hasLoaded);this.handleCollision(b);e.align({verticalAlign:l},!0,d.spacingBox);f=e.alignAttr.translateY;b=e.getBBox().height+20;m=0;"bottom"===l&&(m=(m=d.legend&&d.legend.options)&&"bottom"===m.verticalAlign&&m.enabled&&!m.floating?d.legend.legendHeight+B(m.margin,
-10):0,b=b+m-20,m=f-b-(g.floating?0:g.y)-(d.titleOffset?d.titleOffset[2]:0)-10);if("top"===l)g.floating&&(m=0),d.titleOffset&&d.titleOffset[0]&&(m=d.titleOffset[0]),m+=d.margin[0]-d.spacing[0]||0;else if("middle"===l)if(r.y===k.y)m=f;else if(r.y||k.y)m=0>r.y||0>k.y?m-Math.min(r.y,k.y):f-b;e.translate(g.x,g.y+Math.floor(m));k=this.minInput;r=this.maxInput;f=this.dropdown;g.inputEnabled&&k&&r&&(k.style.marginTop=e.translateY+"px",r.style.marginTop=e.translateY+"px");f&&(f.style.marginTop=e.translateY+
-"px")}};v.prototype.alignButtonGroup=function(a,b){var c=this.chart,d=this.buttonGroup,e=this.options.buttonPosition,f=c.plotLeft-c.spacing[3],n=e.x-c.spacing[3];"right"===e.align?n+=a-f:"center"===e.align&&(n-=f/2);d&&d.align({y:e.y,width:B(b,this.initialButtonGroupWidth),align:e.align,x:n},!0,c.spacingBox)};v.prototype.positionButtons=function(){var a=this.buttons,b=this.chart,c=this.options,d=this.zoomText,e=b.hasLoaded?"animate":"attr",f=c.buttonPosition,g=b=b.plotLeft;d&&"hidden"!==d.visibility&&
-(d[e]({x:B(b+f.x,b)}),g+=f.x+d.getBBox().width+5);d=0;for(f=this.buttonOptions.length;d<f;++d)if("hidden"!==a[d].visibility)a[d][e]({x:g}),g+=a[d].width+c.buttonSpacing;else a[d][e]({x:b})};v.prototype.handleCollision=function(a){var b=this,c=this.chart,d=this.buttonGroup,e=this.inputGroup,f=this.options,n=f.buttonPosition,g=f.dropdown,k=f.inputPosition;f=function(){var a=0;b.buttons.forEach(function(b){b=b.getBBox();b.width>a&&(a=b.width)});return a};var h=function(b){if(e&&d){var c=e.alignAttr.translateX+
-e.alignOptions.x-a+e.getBBox().x+2,f=e.alignOptions.width,g=d.alignAttr.translateX+d.getBBox().x;return g+b>c&&c+f>g&&n.y<k.y+e.getBBox().height}return!1},r=function(){e&&d&&e.attr({translateX:e.alignAttr.translateX+(c.axisOffset[1]>=-a?0:-a),translateY:e.alignAttr.translateY+d.getBBox().height+10})};if(d){if("always"===g){this.collapseButtons(a);h(f())&&r();return}"never"===g&&this.expandButtons()}e&&d?k.align===n.align||h(this.initialButtonGroupWidth+20)?"responsive"===g?(this.collapseButtons(a),
-h(f())&&r()):r():"responsive"===g&&this.expandButtons():d&&"responsive"===g&&(this.initialButtonGroupWidth>c.plotWidth?this.collapseButtons(a):this.expandButtons())};v.prototype.collapseButtons=function(a){var b=this.buttons,c=this.buttonOptions,d=this.chart,e=this.dropdown,f=this.options,n=this.zoomText,g=d.userOptions.rangeSelector&&d.userOptions.rangeSelector.buttonTheme||{},k=function(a){return{text:a?""+a+" \u25be":"\u25be",width:"auto",paddingLeft:B(f.buttonTheme.paddingLeft,g.padding,8),paddingRight:B(f.buttonTheme.paddingRight,
-g.padding,8)}};n&&n.hide();var h=!1;c.forEach(function(a,c){c=b[c];2!==c.state?c.hide():(c.show(),c.attr(k(a.text)),h=!0)});h||(e&&(e.selectedIndex=0),b[0].show(),b[0].attr(k(this.zoomText&&this.zoomText.textStr)));c=f.buttonPosition.align;this.positionButtons();"right"!==c&&"center"!==c||this.alignButtonGroup(a,b[this.currentButtonIndex()].getBBox().width);this.showDropdown()};v.prototype.expandButtons=function(){var a=this.buttons,b=this.buttonOptions,c=this.options,d=this.zoomText;this.hideDropdown();
-d&&d.show();b.forEach(function(b,d){d=a[d];d.show();d.attr({text:b.text,width:c.buttonTheme.width||28,paddingLeft:B(c.buttonTheme.paddingLeft,"unset"),paddingRight:B(c.buttonTheme.paddingRight,"unset")});2>d.state&&d.setState(0)});this.positionButtons()};v.prototype.currentButtonIndex=function(){var a=this.dropdown;return a&&0<a.selectedIndex?a.selectedIndex-1:0};v.prototype.showDropdown=function(){var a=this.buttonGroup,b=this.buttons,c=this.chart,d=this.dropdown;if(a&&d){var e=a.translateX;a=a.translateY;
-b=b[this.currentButtonIndex()].getBBox();w(d,{left:c.plotLeft+e+"px",top:a+.5+"px",width:b.width+"px",height:b.height+"px"});this.hasVisibleDropdown=!0}};v.prototype.hideDropdown=function(){var a=this.dropdown;a&&(w(a,{top:"-9999em",width:"1px",height:"1px"}),this.hasVisibleDropdown=!1)};v.prototype.getHeight=function(){var a=this.options,b=this.group,c=a.y,d=a.buttonPosition.y,e=a.inputPosition.y;if(a.height)return a.height;this.alignElements();a=b?b.getBBox(!0).height+13+c:0;b=Math.min(e,d);if(0>
-e&&0>d||0<e&&0<d)a+=Math.abs(b);return a};v.prototype.titleCollision=function(a){return!(a.options.title.text||a.options.subtitle.text)};v.prototype.update=function(a){var b=this.chart;E(!0,b.options.rangeSelector,a);this.destroy();this.init(b);this.render()};v.prototype.destroy=function(){var a=this,c=a.minInput,e=a.maxInput;a.eventsToUnbind&&(a.eventsToUnbind.forEach(function(a){return a()}),a.eventsToUnbind=void 0);d(a.buttons);c&&(c.onfocus=c.onblur=c.onchange=null);e&&(e.onfocus=e.onblur=e.onchange=
-null);I(a,function(c,d){c&&"chart"!==d&&(c instanceof m?c.destroy():c instanceof window.HTMLElement&&b(c));c!==v.prototype[d]&&(a[d]=null)},this)};return v}();c(h.prototype,{defaultButtons:[{type:"month",count:1,text:"1m",title:"View 1 month"},{type:"month",count:3,text:"3m",title:"View 3 months"},{type:"month",count:6,text:"6m",title:"View 6 months"},{type:"ytd",text:"YTD",title:"View year to date"},{type:"year",count:1,text:"1y",title:"View 1 year"},{type:"all",text:"All",title:"View all"}],inputTypeFormats:{"datetime-local":"%Y-%m-%dT%H:%M:%S",
-date:"%Y-%m-%d",time:"%H:%M:%S"}});"";return h});A(a,"Accessibility/Components/RangeSelectorComponent.js",[a["Stock/RangeSelector/RangeSelector.js"],a["Accessibility/AccessibilityComponent.js"],a["Accessibility/Utils/ChartUtilities.js"],a["Accessibility/Utils/Announcer.js"],a["Accessibility/KeyboardNavigationHandler.js"],a["Core/Utilities.js"]],function(a,h,l,x,m,p){var u=this&&this.__extends||function(){var a=function(d,b){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=
-b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return a(d,b)};return function(d,b){function c(){this.constructor=d}a(d,b);d.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)}}(),z=l.unhideChartElementFromAT,g=l.getAxisRangeDescription,k=p.addEvent,w=p.attr;h=function(a){function d(){var b=null!==a&&a.apply(this,arguments)||this;b.announcer=void 0;return b}u(d,a);d.prototype.init=function(){this.announcer=new x(this.chart,"polite")};d.prototype.onChartUpdate=function(){var a=
-this.chart,c=this,d=a.rangeSelector;d&&(this.updateSelectorVisibility(),this.setDropdownAttrs(),d.buttons&&d.buttons.length&&d.buttons.forEach(function(a){c.setRangeButtonAttrs(a)}),d.maxInput&&d.minInput&&["minInput","maxInput"].forEach(function(b,e){if(b=d[b])z(a,b),c.setRangeInputAttrs(b,"accessibility.rangeSelector."+(e?"max":"min")+"InputLabel")}))};d.prototype.updateSelectorVisibility=function(){var a=this.chart,c=a.rangeSelector,d=c&&c.dropdown,f=c&&c.buttons||[];c&&c.hasVisibleDropdown&&d?
-(z(a,d),f.forEach(function(a){return a.element.setAttribute("aria-hidden",!0)})):(d&&d.setAttribute("aria-hidden",!0),f.forEach(function(b){return z(a,b.element)}))};d.prototype.setDropdownAttrs=function(){var a=this.chart,c=a.rangeSelector&&a.rangeSelector.dropdown;c&&(a=a.langFormat("accessibility.rangeSelector.dropdownLabel",{rangeTitle:a.options.lang.rangeSelectorZoom}),c.setAttribute("aria-label",a),c.setAttribute("tabindex",-1))};d.prototype.setRangeButtonAttrs=function(a){w(a.element,{tabindex:-1,
-role:"button"})};d.prototype.setRangeInputAttrs=function(a,c){var b=this.chart;w(a,{tabindex:-1,"aria-label":b.langFormat(c,{chart:b})})};d.prototype.onButtonNavKbdArrowKey=function(a,c){var b=a.response,d=this.keyCodes,f=this.chart,g=f.options.accessibility.keyboardNavigation.wrapAround;c=c===d.left||c===d.up?-1:1;return f.highlightRangeSelectorButton(f.highlightedRangeSelectorItemIx+c)?b.success:g?(a.init(c),b.success):b[0<c?"next":"prev"]};d.prototype.onButtonNavKbdClick=function(a){a=a.response;
-var b=this.chart;3!==b.oldRangeSelectorItemState&&this.fakeClickEvent(b.rangeSelector.buttons[b.highlightedRangeSelectorItemIx].element);return a.success};d.prototype.onAfterBtnClick=function(){var a=this.chart,c=g(a.xAxis[0]);(a=a.langFormat("accessibility.rangeSelector.clickButtonAnnouncement",{chart:a,axisRangeDescription:c}))&&this.announcer.announce(a)};d.prototype.onInputKbdMove=function(a){var b=this.chart,d=b.rangeSelector,f=b.highlightedInputRangeIx=(b.highlightedInputRangeIx||0)+a;1<f||
-0>f?b.accessibility&&(b.accessibility.keyboardNavigation.tabindexContainer.focus(),b.accessibility.keyboardNavigation.move(a)):d&&(a=d[f?"maxDateBox":"minDateBox"],d=d[f?"maxInput":"minInput"],a&&d&&b.setFocusToElement(a,d))};d.prototype.onInputNavInit=function(a){var b=this,d=this,f=this.chart,g=0<a?0:1,h=f.rangeSelector,m=h&&h[g?"maxDateBox":"minDateBox"];a=h&&h.minInput;h=h&&h.maxInput;f.highlightedInputRangeIx=g;if(m&&a&&h){f.setFocusToElement(m,g?h:a);this.removeInputKeydownHandler&&this.removeInputKeydownHandler();
-f=function(a){(a.which||a.keyCode)===b.keyCodes.tab&&(a.preventDefault(),a.stopPropagation(),d.onInputKbdMove(a.shiftKey?-1:1))};var l=k(a,"keydown",f),p=k(h,"keydown",f);this.removeInputKeydownHandler=function(){l();p()}}};d.prototype.onInputNavTerminate=function(){var a=this.chart.rangeSelector||{};a.maxInput&&a.hideInput("max");a.minInput&&a.hideInput("min");this.removeInputKeydownHandler&&(this.removeInputKeydownHandler(),delete this.removeInputKeydownHandler)};d.prototype.initDropdownNav=function(){var a=
-this,c=this.chart,d=c.rangeSelector,f=d&&d.dropdown;d&&f&&(c.setFocusToElement(d.buttonGroup,f),this.removeDropdownKeydownHandler&&this.removeDropdownKeydownHandler(),this.removeDropdownKeydownHandler=k(f,"keydown",function(b){var d=c.accessibility;(b.which||b.keyCode)===a.keyCodes.tab&&(b.preventDefault(),b.stopPropagation(),d&&(d.keyboardNavigation.tabindexContainer.focus(),d.keyboardNavigation.move(b.shiftKey?-1:1)))}))};d.prototype.getRangeSelectorButtonNavigation=function(){var a=this.chart,
-c=this.keyCodes,d=this;return new m(a,{keyCodeMap:[[[c.left,c.right,c.up,c.down],function(a){return d.onButtonNavKbdArrowKey(this,a)}],[[c.enter,c.space],function(){return d.onButtonNavKbdClick(this)}]],validate:function(){return!!(a.rangeSelector&&a.rangeSelector.buttons&&a.rangeSelector.buttons.length)},init:function(b){var c=a.rangeSelector;c&&c.hasVisibleDropdown?d.initDropdownNav():c&&(c=c.buttons.length-1,a.highlightRangeSelectorButton(0<b?0:c))},terminate:function(){d.removeDropdownKeydownHandler&&
-(d.removeDropdownKeydownHandler(),delete d.removeDropdownKeydownHandler)}})};d.prototype.getRangeSelectorInputNavigation=function(){var a=this.chart,c=this;return new m(a,{keyCodeMap:[],validate:function(){return!!(a.rangeSelector&&a.rangeSelector.inputGroup&&"hidden"!==a.rangeSelector.inputGroup.element.style.visibility&&!1!==a.options.rangeSelector.inputEnabled&&a.rangeSelector.minInput&&a.rangeSelector.maxInput)},init:function(a){c.onInputNavInit(a)},terminate:function(){c.onInputNavTerminate()}})};
-d.prototype.getKeyboardNavigation=function(){return[this.getRangeSelectorButtonNavigation(),this.getRangeSelectorInputNavigation()]};d.prototype.destroy=function(){this.removeDropdownKeydownHandler&&this.removeDropdownKeydownHandler();this.removeInputKeydownHandler&&this.removeInputKeydownHandler();this.announcer&&this.announcer.destroy()};return d}(h);(function(f){function d(a){var b=this.rangeSelector&&this.rangeSelector.buttons||[],c=this.highlightedRangeSelectorItemIx,d=this.rangeSelector&&this.rangeSelector.selected;
-"undefined"!==typeof c&&b[c]&&c!==d&&b[c].setState(this.oldRangeSelectorItemState||0);this.highlightedRangeSelectorItemIx=a;return b[a]?(this.setFocusToElement(b[a].box,b[a].element),a!==d&&(this.oldRangeSelectorItemState=b[a].state,b[a].setState(1)),!0):!1}function b(){var a=this.chart.accessibility;if(a&&a.components.rangeSelector)return a.components.rangeSelector.onAfterBtnClick()}var c=[];f.compose=function(e,f){-1===c.indexOf(e)&&(c.push(e),e.prototype.highlightRangeSelectorButton=d);-1===c.indexOf(f)&&
-(c.push(f),k(a,"afterBtnClick",b))}})(h||(h={}));return h});A(a,"Accessibility/Components/SeriesComponent/ForcedMarkers.js",[a["Core/Utilities.js"]],function(a){var h=a.addEvent,l=a.merge,u;(function(a){function m(a){l(!0,a,{marker:{enabled:!0,states:{normal:{opacity:0}}}})}function u(a){return a.marker.states&&a.marker.states.normal&&a.marker.states.normal.opacity}function x(){if(this.chart.styledMode){if(this.markerGroup)this.markerGroup[this.a11yMarkersForced?"addClass":"removeClass"]("highcharts-a11y-markers-hidden");
-this._hasPointMarkers&&this.points&&this.points.length&&this.points.forEach(function(a){a.graphic&&(a.graphic[a.hasForcedA11yMarker?"addClass":"removeClass"]("highcharts-a11y-marker-hidden"),a.graphic[!1===a.hasForcedA11yMarker?"addClass":"removeClass"]("highcharts-a11y-marker-visible"))})}}function g(a){this.resetA11yMarkerOptions=l(a.options.marker||{},this.userOptions.marker||{})}function k(){var a=this.options,d=!1!==(this.options.accessibility&&this.options.accessibility.enabled);if(d=this.chart.options.accessibility.enabled&&
-d)d=this.chart.options.accessibility,d=this.points.length<d.series.pointDescriptionEnabledThreshold||!1===d.series.pointDescriptionEnabledThreshold;if(d){if(a.marker&&!1===a.marker.enabled&&(this.a11yMarkersForced=!0,m(this.options)),this._hasPointMarkers&&this.points&&this.points.length)for(a=this.points.length;a--;){d=this.points[a];var b=d.options,c=d.hasForcedA11yMarker;delete d.hasForcedA11yMarker;b.marker&&(c=c&&0===u(b),b.marker.enabled&&!c?(l(!0,b.marker,{states:{normal:{opacity:u(b)||1}}}),
-d.hasForcedA11yMarker=!1):!1===b.marker.enabled&&(m(b),d.hasForcedA11yMarker=!0))}}else this.a11yMarkersForced&&(delete this.a11yMarkersForced,(a=this.resetA11yMarkerOptions)&&this.update({marker:{enabled:a.enabled,states:{normal:{opacity:a.states&&a.states.normal&&a.states.normal.opacity}}}}),delete this.resetA11yMarkerOptions)}var w=[];a.compose=function(a){-1===w.indexOf(a)&&(w.push(a),h(a,"afterSetOptions",g),h(a,"render",k),h(a,"afterRender",x))}})(u||(u={}));return u});A(a,"Accessibility/Components/SeriesComponent/SeriesKeyboardNavigation.js",
-[a["Core/Series/Point.js"],a["Core/Series/Series.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Globals.js"],a["Core/Utilities.js"],a["Accessibility/KeyboardNavigationHandler.js"],a["Accessibility/Utils/EventProvider.js"],a["Accessibility/Utils/ChartUtilities.js"]],function(a,h,l,x,m,p,A,z){function g(a){var b=a.index,c=a.series.points,d=c.length;if(c[b]!==a)for(;d--;){if(c[d]===a)return d}else return b}function k(a){var b=a.chart.options.accessibility.keyboardNavigation.seriesNavigation,c=a.options.accessibility||
-{},d=c.keyboardNavigation;return d&&!1===d.enabled||!1===c.enabled||!1===a.options.enableMouseTracking||!a.visible||b.pointNavigationEnabledThreshold&&b.pointNavigationEnabledThreshold<=a.points.length}function w(a){var b=a.series.chart.options.accessibility,c=a.options.accessibility&&!1===a.options.accessibility.enabled;return a.isNull&&b.keyboardNavigation.seriesNavigation.skipNullPoints||!1===a.visible||!1===a.isInside||c||k(a.series)}function f(a){a=a.series||[];for(var b=a.length,c=0;c<b;++c)if(!k(a[c])){a:{var d=
-a[c].points||[];for(var e=d.length,f=0;f<e;++f)if(!w(d[f])){d=d[f];break a}d=null}if(d)return d}return null}function d(a){for(var b=a.series.length,c=!1;b--&&!(a.highlightedPoint=a.series[b].points[a.series[b].points.length-1],c=a.series[b].highlightNextValidPoint()););return c}function b(a){delete a.highlightedPoint;return(a=f(a))?a.highlight():!1}var c=l.seriesTypes,e=x.doc,r=m.defined,u=m.fireEvent,K=z.getPointFromXY,J=z.getSeriesFromName,B=z.scrollToPoint;l=function(){function c(a,b){this.keyCodes=
-b;this.chart=a}c.prototype.init=function(){var b=this,c=this.chart,d=this.eventProvider=new A;d.addEvent(h,"destroy",function(){return b.onSeriesDestroy(this)});d.addEvent(c,"afterApplyDrilldown",function(){var a=f(this);a&&a.highlight(!1)});d.addEvent(c,"drilldown",function(a){a=a.point;var c=a.series;b.lastDrilledDownPoint={x:a.x,y:a.y,seriesName:c?c.name:""}});d.addEvent(c,"drillupall",function(){setTimeout(function(){b.onDrillupAll()},10)});d.addEvent(a,"afterSetState",function(){var a=this.graphic&&
-this.graphic.element,b=e.activeElement,d=b&&b.getAttribute("class");d=d&&-1<d.indexOf("highcharts-a11y-proxy-button");c.highlightedPoint===this&&b!==a&&!d&&a&&a.focus&&a.focus()})};c.prototype.onDrillupAll=function(){var a=this.lastDrilledDownPoint,b=this.chart,c=a&&J(b,a.seriesName),d;a&&c&&r(a.x)&&r(a.y)&&(d=K(c,a.x,a.y));d=d||f(b);b.container&&b.container.focus();d&&d.highlight&&d.highlight(!1)};c.prototype.getKeyboardNavigationHandler=function(){var a=this,c=this.keyCodes,e=this.chart,g=e.inverted;
-return new p(e,{keyCodeMap:[[g?[c.up,c.down]:[c.left,c.right],function(b){return a.onKbdSideways(this,b)}],[g?[c.left,c.right]:[c.up,c.down],function(b){return a.onKbdVertical(this,b)}],[[c.enter,c.space],function(a,b){if(a=e.highlightedPoint)b.point=a,u(a.series,"click",b),a.firePointEvent("click");return this.response.success}],[[c.home],function(){b(e);return this.response.success}],[[c.end],function(){d(e);return this.response.success}],[[c.pageDown,c.pageUp],function(a){e.highlightAdjacentSeries(a===
-c.pageDown);return this.response.success}]],init:function(){return a.onHandlerInit(this)},validate:function(){return!!f(e)},terminate:function(){return a.onHandlerTerminate()}})};c.prototype.onKbdSideways=function(a,b){var c=this.keyCodes;return this.attemptHighlightAdjacentPoint(a,b===c.right||b===c.down)};c.prototype.onHandlerInit=function(a){var c=this.chart;c.options.accessibility.keyboardNavigation.seriesNavigation.rememberPointFocus&&c.highlightedPoint?c.highlightedPoint.highlight():b(c);return a.response.success};
-c.prototype.onKbdVertical=function(a,b){var c=this.chart,d=this.keyCodes;b=b===d.down||b===d.right;d=c.options.accessibility.keyboardNavigation.seriesNavigation;if(d.mode&&"serialize"===d.mode)return this.attemptHighlightAdjacentPoint(a,b);c[c.highlightedPoint&&c.highlightedPoint.series.keyboardMoveVertical?"highlightAdjacentPointVertical":"highlightAdjacentSeries"](b);return a.response.success};c.prototype.onHandlerTerminate=function(){var a=this.chart,b=a.options.accessibility.keyboardNavigation;
-a.tooltip&&a.tooltip.hide(0);var c=a.highlightedPoint&&a.highlightedPoint.series;if(c&&c.onMouseOut)c.onMouseOut();if(a.highlightedPoint&&a.highlightedPoint.onMouseOut)a.highlightedPoint.onMouseOut();b.seriesNavigation.rememberPointFocus||delete a.highlightedPoint};c.prototype.attemptHighlightAdjacentPoint=function(a,c){var e=this.chart,f=e.options.accessibility.keyboardNavigation.wrapAround;return e.highlightAdjacentPoint(c)?a.response.success:f&&(c?b(e):d(e))?a.response.success:a.response[c?"next":
-"prev"]};c.prototype.onSeriesDestroy=function(a){var b=this.chart;b.highlightedPoint&&b.highlightedPoint.series===a&&(delete b.highlightedPoint,b.focusElement&&b.focusElement.removeFocusBorder())};c.prototype.destroy=function(){this.eventProvider.removeAddedEvents()};return c}();(function(a){function b(a){var b=this.series,c=this.highlightedPoint,d=c&&g(c)||0,e=c&&c.series.points||[],f=this.series&&this.series[this.series.length-1];f=f&&f.points&&f.points[f.points.length-1];if(!b[0]||!b[0].points)return!1;
-if(c){if(b=b[c.series.index+(a?1:-1)],d=e[d+(a?1:-1)],!d&&b&&(d=b.points[a?0:b.points.length-1]),!d)return!1}else d=a?b[0].points[0]:f;return w(d)?(b=d.series,k(b)?this.highlightedPoint=a?b.points[b.points.length-1]:b.points[0]:this.highlightedPoint=d,this.highlightAdjacentPoint(a)):d.highlight()}function d(a){var b=this.highlightedPoint,c=Infinity,d;if(!r(b.plotX)||!r(b.plotY))return!1;this.series.forEach(function(e){k(e)||e.points.forEach(function(f){if(r(f.plotY)&&r(f.plotX)&&f!==b){var g=f.plotY-
-b.plotY,h=Math.abs(f.plotX-b.plotX);h=Math.abs(g)*Math.abs(g)+h*h*4;e.yAxis&&e.yAxis.reversed&&(g*=-1);!(0>=g&&a||0<=g&&!a||5>h||w(f))&&h<c&&(c=h,d=f)}})});return d?d.highlight():!1}function e(a){var b=this.highlightedPoint,c=this.series&&this.series[this.series.length-1],d=c&&c.points&&c.points[c.points.length-1];if(!this.highlightedPoint)return c=a?this.series&&this.series[0]:c,(d=a?c&&c.points&&c.points[0]:d)?d.highlight():!1;c=this.series[b.series.index+(a?-1:1)];if(!c)return!1;d=f(b,c,4);if(!d)return!1;
-if(k(c))return d.highlight(),a=this.highlightAdjacentSeries(a),a?a:(b.highlight(),!1);d.highlight();return d.series.highlightNextValidPoint()}function f(a,b,c,d){var e=Infinity,f=b.points.length,g=function(a){return!(r(a.plotX)&&r(a.plotY))};if(!g(a)){for(;f--;){var h=b.points[f];if(!g(h)&&(h=(a.plotX-h.plotX)*(a.plotX-h.plotX)*(c||1)+(a.plotY-h.plotY)*(a.plotY-h.plotY)*(d||1),h<e)){e=h;var k=f}}return r(k)?b.points[k]:void 0}}function h(a){void 0===a&&(a=!0);var b=this.series.chart;if(!this.isNull&&
-a)this.onMouseOver();else b.tooltip&&b.tooltip.hide(0);B(this);this.graphic&&(b.setFocusToElement(this.graphic),!a&&b.focusElement&&b.focusElement.removeFocusBorder());b.highlightedPoint=this;return this}function m(){var a=this.chart.highlightedPoint,b=(a&&a.series)===this?g(a):0;a=this.points;var c=a.length;if(a&&c){for(var d=b;d<c;++d)if(!w(a[d]))return a[d].highlight();for(;0<=b;--b)if(!w(a[b]))return a[b].highlight()}return!1}var l=[];a.compose=function(a,f,g){-1===l.indexOf(a)&&(l.push(a),a=
-a.prototype,a.highlightAdjacentPoint=b,a.highlightAdjacentPointVertical=d,a.highlightAdjacentSeries=e);-1===l.indexOf(f)&&(l.push(f),f.prototype.highlight=h);-1===l.indexOf(g)&&(l.push(g),f=g.prototype,f.keyboardMoveVertical=!0,["column","gantt","pie"].forEach(function(a){c[a]&&(c[a].prototype.keyboardMoveVertical=!1)}),f.highlightNextValidPoint=m)}})(l||(l={}));return l});A(a,"Accessibility/Components/SeriesComponent/SeriesComponent.js",[a["Accessibility/AccessibilityComponent.js"],a["Accessibility/Utils/ChartUtilities.js"],
-a["Accessibility/Components/SeriesComponent/ForcedMarkers.js"],a["Accessibility/Components/SeriesComponent/NewDataAnnouncer.js"],a["Accessibility/Components/SeriesComponent/SeriesDescriber.js"],a["Accessibility/Components/SeriesComponent/SeriesKeyboardNavigation.js"],a["Core/Tooltip.js"]],function(a,h,l,x,m,p,A){var u=this&&this.__extends||function(){var a=function(f,d){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var b in c)c.hasOwnProperty(b)&&
-(a[b]=c[b])};return a(f,d)};return function(f,d){function b(){this.constructor=f}a(f,d);f.prototype=null===d?Object.create(d):(b.prototype=d.prototype,new b)}}(),g=h.hideSeriesFromAT,k=m.describeSeries;return function(a){function f(){return null!==a&&a.apply(this,arguments)||this}u(f,a);f.compose=function(a,b,c){x.compose(c);l.compose(c);p.compose(a,b,c)};f.prototype.init=function(){this.newDataAnnouncer=new x(this.chart);this.newDataAnnouncer.init();this.keyboardNavigation=new p(this.chart,this.keyCodes);
-this.keyboardNavigation.init();this.hideTooltipFromATWhenShown();this.hideSeriesLabelsFromATWhenShown()};f.prototype.hideTooltipFromATWhenShown=function(){var a=this;this.addEvent(A,"refresh",function(){this.chart===a.chart&&this.label&&this.label.element&&this.label.element.setAttribute("aria-hidden",!0)})};f.prototype.hideSeriesLabelsFromATWhenShown=function(){this.addEvent(this.chart,"afterDrawSeriesLabels",function(){this.series.forEach(function(a){a.labelBySeries&&a.labelBySeries.attr("aria-hidden",
-!0)})})};f.prototype.onChartRender=function(){this.chart.series.forEach(function(a){!1!==(a.options.accessibility&&a.options.accessibility.enabled)&&a.visible?k(a):g(a)})};f.prototype.getKeyboardNavigation=function(){return this.keyboardNavigation.getKeyboardNavigationHandler()};f.prototype.destroy=function(){this.newDataAnnouncer.destroy();this.keyboardNavigation.destroy()};return f}(a)});A(a,"Accessibility/Components/ZoomComponent.js",[a["Accessibility/AccessibilityComponent.js"],a["Accessibility/Utils/ChartUtilities.js"],
-a["Accessibility/Utils/HTMLUtilities.js"],a["Accessibility/KeyboardNavigationHandler.js"],a["Core/Utilities.js"]],function(a,h,l,x,m){var p=this&&this.__extends||function(){var a=function(f,d){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var b in c)c.hasOwnProperty(b)&&(a[b]=c[b])};return a(f,d)};return function(f,d){function b(){this.constructor=f}a(f,d);f.prototype=null===d?Object.create(d):(b.prototype=d.prototype,new b)}}(),u=h.unhideChartElementFromAT,
-z=l.getFakeMouseEvent,g=m.attr,k=m.pick;return function(a){function f(){var d=null!==a&&a.apply(this,arguments)||this;d.focusedMapNavButtonIx=-1;return d}p(f,a);f.prototype.init=function(){var a=this,b=this.chart;this.proxyProvider.addGroup("zoom","div");["afterShowResetZoom","afterApplyDrilldown","drillupall"].forEach(function(c){a.addEvent(b,c,function(){a.updateProxyOverlays()})})};f.prototype.onChartUpdate=function(){var a=this.chart,b=this;a.mapNavigation&&a.mapNavigation.navButtons.forEach(function(c,
-d){u(a,c.element);b.setMapNavButtonAttrs(c.element,"accessibility.zoom.mapZoom"+(d?"Out":"In"))})};f.prototype.setMapNavButtonAttrs=function(a,b){var c=this.chart;b=c.langFormat(b,{chart:c});g(a,{tabindex:-1,role:"button","aria-label":b})};f.prototype.onChartRender=function(){this.updateProxyOverlays()};f.prototype.updateProxyOverlays=function(){var a=this.chart;this.proxyProvider.clearGroup("zoom");a.resetZoomButton&&this.createZoomProxyButton(a.resetZoomButton,"resetZoomProxyButton",a.langFormat("accessibility.zoom.resetZoomButton",
-{chart:a}));a.drillUpButton&&a.breadcrumbs&&a.breadcrumbs.list&&this.createZoomProxyButton(a.drillUpButton,"drillUpProxyButton",a.langFormat("accessibility.drillUpButton",{chart:a,buttonText:a.breadcrumbs.getButtonText(a.breadcrumbs.list[a.breadcrumbs.list.length-1])}))};f.prototype.createZoomProxyButton=function(a,b,c){this[b]=this.proxyProvider.addProxyElement("zoom",{click:a},{"aria-label":c,tabindex:-1})};f.prototype.getMapZoomNavigation=function(){var a=this.keyCodes,b=this.chart,c=this;return new x(b,
-{keyCodeMap:[[[a.up,a.down,a.left,a.right],function(a){return c.onMapKbdArrow(this,a)}],[[a.tab],function(a,b){return c.onMapKbdTab(this,b)}],[[a.space,a.enter],function(){return c.onMapKbdClick(this)}]],validate:function(){return!!(b.mapView&&b.mapNavigation&&b.mapNavigation.navButtons.length)},init:function(a){return c.onMapNavInit(a)}})};f.prototype.onMapKbdArrow=function(a,b){var c=this.chart,d=this.keyCodes,f=c.container,g=b===d.up||b===d.down;b=(g?c.plotHeight:c.plotWidth)/10*(b===d.left||b===
-d.up?1:-1);d=10*Math.random();c={x:f.offsetLeft+c.plotLeft+c.plotWidth/2+d,y:f.offsetTop+c.plotTop+c.plotHeight/2+d};g=g?{x:c.x,y:c.y+b}:{x:c.x+b,y:c.y};[z("mousedown",c),z("mousemove",g),z("mouseup",g)].forEach(function(a){return f.dispatchEvent(a)});return a.response.success};f.prototype.onMapKbdTab=function(a,b){var c=this.chart;a=a.response;var d=(b=b.shiftKey)&&!this.focusedMapNavButtonIx||!b&&this.focusedMapNavButtonIx;c.mapNavigation.navButtons[this.focusedMapNavButtonIx].setState(0);if(d)return c.mapView&&
-c.mapView.zoomBy(),a[b?"prev":"next"];this.focusedMapNavButtonIx+=b?-1:1;b=c.mapNavigation.navButtons[this.focusedMapNavButtonIx];c.setFocusToElement(b.box,b.element);b.setState(2);return a.success};f.prototype.onMapKbdClick=function(a){this.fakeClickEvent(this.chart.mapNavigation.navButtons[this.focusedMapNavButtonIx].element);return a.response.success};f.prototype.onMapNavInit=function(a){var b=this.chart,c=b.mapNavigation.navButtons[0],d=b.mapNavigation.navButtons[1];c=0<a?c:d;b.setFocusToElement(c.box,
-c.element);c.setState(2);this.focusedMapNavButtonIx=0<a?0:1};f.prototype.simpleButtonNavigation=function(a,b,c){var d=this.keyCodes,f=this,g=this.chart;return new x(g,{keyCodeMap:[[[d.tab,d.up,d.down,d.left,d.right],function(a,b){return this.response[a===d.tab&&b.shiftKey||a===d.left||a===d.up?"prev":"next"]}],[[d.space,d.enter],function(){var a=c(this,g);return k(a,this.response.success)}]],validate:function(){return g[a]&&g[a].box&&f[b].buttonElement},init:function(){g.setFocusToElement(g[a].box,
-f[b].buttonElement)}})};f.prototype.getKeyboardNavigation=function(){return[this.simpleButtonNavigation("resetZoomButton","resetZoomProxyButton",function(a,b){b.zoomOut()}),this.simpleButtonNavigation("drillUpButton","drillUpProxyButton",function(a,b){b.drillUp();return a.response.prev}),this.getMapZoomNavigation()]};return f}(a)});A(a,"Accessibility/HighContrastMode.js",[a["Core/Globals.js"]],function(a){var h=a.doc,l=a.isMS,u=a.win;return{isHighContrastModeActive:function(){var a=/(Edg)/.test(u.navigator.userAgent);
-if(u.matchMedia&&a)return u.matchMedia("(-ms-high-contrast: active)").matches;if(l&&u.getComputedStyle){a=h.createElement("div");a.style.backgroundImage="url(".concat("data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",")");h.body.appendChild(a);var p=(a.currentStyle||u.getComputedStyle(a)).backgroundImage;h.body.removeChild(a);return"none"===p}return u.matchMedia&&u.matchMedia("(forced-colors: active)").matches},setHighContrastTheme:function(a){a.highContrastModeActive=!0;
-var h=a.options.accessibility.highContrastTheme;a.update(h,!1);a.series.forEach(function(a){var l=h.plotOptions[a.type]||{};a.update({color:l.color||"windowText",colors:[l.color||"windowText"],borderColor:l.borderColor||"window"});a.points.forEach(function(a){a.options&&a.options.color&&a.update({color:l.color||"windowText",borderColor:l.borderColor||"window"},!1)})});a.redraw()}}});A(a,"Accessibility/HighContrastTheme.js",[],function(){return{chart:{backgroundColor:"window"},title:{style:{color:"windowText"}},
-subtitle:{style:{color:"windowText"}},colorAxis:{minColor:"windowText",maxColor:"windowText",stops:[]},colors:["windowText"],xAxis:{gridLineColor:"windowText",labels:{style:{color:"windowText"}},lineColor:"windowText",minorGridLineColor:"windowText",tickColor:"windowText",title:{style:{color:"windowText"}}},yAxis:{gridLineColor:"windowText",labels:{style:{color:"windowText"}},lineColor:"windowText",minorGridLineColor:"windowText",tickColor:"windowText",title:{style:{color:"windowText"}}},tooltip:{backgroundColor:"window",
-borderColor:"windowText",style:{color:"windowText"}},plotOptions:{series:{lineColor:"windowText",fillColor:"window",borderColor:"windowText",edgeColor:"windowText",borderWidth:1,dataLabels:{connectorColor:"windowText",color:"windowText",style:{color:"windowText",textOutline:"none"}},marker:{lineColor:"windowText",fillColor:"windowText"}},pie:{color:"window",colors:["window"],borderColor:"windowText",borderWidth:1},boxplot:{fillColor:"window"},candlestick:{lineColor:"windowText",fillColor:"window"},
-errorbar:{fillColor:"window"}},legend:{backgroundColor:"window",itemStyle:{color:"windowText"},itemHoverStyle:{color:"windowText"},itemHiddenStyle:{color:"#555"},title:{style:{color:"windowText"}}},credits:{style:{color:"windowText"}},labels:{style:{color:"windowText"}},drilldown:{activeAxisLabelStyle:{color:"windowText"},activeDataLabelStyle:{color:"windowText"}},navigation:{buttonOptions:{symbolStroke:"windowText",theme:{fill:"window"}}},rangeSelector:{buttonTheme:{fill:"window",stroke:"windowText",
-style:{color:"windowText"},states:{hover:{fill:"window",stroke:"windowText",style:{color:"windowText"}},select:{fill:"#444",stroke:"windowText",style:{color:"windowText"}}}},inputBoxBorderColor:"windowText",inputStyle:{backgroundColor:"window",color:"windowText"},labelStyle:{color:"windowText"}},navigator:{handles:{backgroundColor:"window",borderColor:"windowText"},outlineColor:"windowText",maskFill:"transparent",series:{color:"windowText",lineColor:"windowText"},xAxis:{gridLineColor:"windowText"}},
-scrollbar:{barBackgroundColor:"#444",barBorderColor:"windowText",buttonArrowColor:"windowText",buttonBackgroundColor:"window",buttonBorderColor:"windowText",rifleColor:"windowText",trackBackgroundColor:"window",trackBorderColor:"windowText"}}});A(a,"Accessibility/Options/A11yDefaults.js",[],function(){return{accessibility:{enabled:!0,screenReaderSection:{beforeChartFormat:"<{headingTagName}>{chartTitle}</{headingTagName}><div>{typeDescription}</div><div>{chartSubtitle}</div><div>{chartLongdesc}</div><div>{playAsSoundButton}</div><div>{viewTableButton}</div><div>{xAxisDescription}</div><div>{yAxisDescription}</div><div>{annotationsTitle}{annotationsList}</div>",
-afterChartFormat:"{endOfChartMarker}",axisRangeDateFormat:"%Y-%m-%d %H:%M:%S"},series:{descriptionFormat:"{seriesDescription}{authorDescription}{axisDescription}",describeSingleSeries:!1,pointDescriptionEnabledThreshold:200},point:{valueDescriptionFormat:"{xDescription}{separator}{value}.",describeNull:!0},landmarkVerbosity:"all",linkedDescription:'*[data-highcharts-chart="{index}"] + .highcharts-description',keyboardNavigation:{enabled:!0,focusBorder:{enabled:!0,hideBrowserFocusOutline:!0,style:{color:"#335cad",
-lineWidth:2,borderRadius:3},margin:2},order:["series","zoom","rangeSelector","legend","chartMenu"],wrapAround:!0,seriesNavigation:{skipNullPoints:!0,pointNavigationEnabledThreshold:!1,rememberPointFocus:!1}},announceNewData:{enabled:!1,minAnnounceInterval:5E3,interruptUser:!1}},legend:{accessibility:{enabled:!0,keyboardNavigation:{enabled:!0}}},exporting:{accessibility:{enabled:!0}}}});A(a,"Accessibility/Options/LangDefaults.js",[],function(){return{accessibility:{defaultChartTitle:"Chart",chartContainerLabel:"{title}. Highcharts interactive chart.",
-svgContainerLabel:"Interactive chart",drillUpButton:"{buttonText}",credits:"Chart credits: {creditsStr}",thousandsSep:",",svgContainerTitle:"",graphicContainerLabel:"",screenReaderSection:{beforeRegionLabel:"",afterRegionLabel:"",annotations:{heading:"Chart annotations summary",descriptionSinglePoint:"{annotationText}. Related to {annotationPoint}",descriptionMultiplePoints:"{annotationText}. Related to {annotationPoint}{ Also related to, #each(additionalAnnotationPoints)}",descriptionNoPoints:"{annotationText}"},
-endOfChartMarker:"End of interactive chart."},sonification:{playAsSoundButtonText:"Play as sound, {chartTitle}",playAsSoundClickAnnouncement:"Play"},legend:{legendLabelNoTitle:"Toggle series visibility, {chartTitle}",legendLabel:"Chart legend: {legendTitle}",legendItem:"Show {itemName}"},zoom:{mapZoomIn:"Zoom chart",mapZoomOut:"Zoom out chart",resetZoomButton:"Reset zoom"},rangeSelector:{dropdownLabel:"{rangeTitle}",minInputLabel:"Select start date.",maxInputLabel:"Select end date.",clickButtonAnnouncement:"Viewing {axisRangeDescription}"},
-table:{viewAsDataTableButtonText:"View as data table, {chartTitle}",tableSummary:"Table representation of chart."},announceNewData:{newDataAnnounce:"Updated data for chart {chartTitle}",newSeriesAnnounceSingle:"New data series: {seriesDesc}",newPointAnnounceSingle:"New data point: {pointDesc}",newSeriesAnnounceMultiple:"New data series in chart {chartTitle}: {seriesDesc}",newPointAnnounceMultiple:"New data point in chart {chartTitle}: {pointDesc}"},seriesTypeDescriptions:{boxplot:"Box plot charts are typically used to display groups of statistical data. Each data point in the chart can have up to 5 values: minimum, lower quartile, median, upper quartile, and maximum.",
-arearange:"Arearange charts are line charts displaying a range between a lower and higher value for each point.",areasplinerange:"These charts are line charts displaying a range between a lower and higher value for each point.",bubble:"Bubble charts are scatter charts where each data point also has a size value.",columnrange:"Columnrange charts are column charts displaying a range between a lower and higher value for each point.",errorbar:"Errorbar series are used to display the variability of the data.",
-funnel:"Funnel charts are used to display reduction of data in stages.",pyramid:"Pyramid charts consist of a single pyramid with item heights corresponding to each point value.",waterfall:"A waterfall chart is a column chart where each column contributes towards a total end value."},chartTypes:{emptyChart:"Empty chart",mapTypeDescription:"Map of {mapTitle} with {numSeries} data series.",unknownMap:"Map of unspecified region with {numSeries} data series.",combinationChart:"Combination chart with {numSeries} data series.",
-defaultSingle:"Chart with {numPoints} data {#plural(numPoints, points, point)}.",defaultMultiple:"Chart with {numSeries} data series.",splineSingle:"Line chart with {numPoints} data {#plural(numPoints, points, point)}.",splineMultiple:"Line chart with {numSeries} lines.",lineSingle:"Line chart with {numPoints} data {#plural(numPoints, points, point)}.",lineMultiple:"Line chart with {numSeries} lines.",columnSingle:"Bar chart with {numPoints} {#plural(numPoints, bars, bar)}.",columnMultiple:"Bar chart with {numSeries} data series.",
-barSingle:"Bar chart with {numPoints} {#plural(numPoints, bars, bar)}.",barMultiple:"Bar chart with {numSeries} data series.",pieSingle:"Pie chart with {numPoints} {#plural(numPoints, slices, slice)}.",pieMultiple:"Pie chart with {numSeries} pies.",scatterSingle:"Scatter chart with {numPoints} {#plural(numPoints, points, point)}.",scatterMultiple:"Scatter chart with {numSeries} data series.",boxplotSingle:"Boxplot with {numPoints} {#plural(numPoints, boxes, box)}.",boxplotMultiple:"Boxplot with {numSeries} data series.",
-bubbleSingle:"Bubble chart with {numPoints} {#plural(numPoints, bubbles, bubble)}.",bubbleMultiple:"Bubble chart with {numSeries} data series."},axis:{xAxisDescriptionSingular:"The chart has 1 X axis displaying {names[0]}. {ranges[0]}",xAxisDescriptionPlural:"The chart has {numAxes} X axes displaying {#each(names, -1) }and {names[-1]}.",yAxisDescriptionSingular:"The chart has 1 Y axis displaying {names[0]}. {ranges[0]}",yAxisDescriptionPlural:"The chart has {numAxes} Y axes displaying {#each(names, -1) }and {names[-1]}.",
-timeRangeDays:"Data range: {range} days.",timeRangeHours:"Data range: {range} hours.",timeRangeMinutes:"Data range: {range} minutes.",timeRangeSeconds:"Data range: {range} seconds.",rangeFromTo:"Data ranges from {rangeFrom} to {rangeTo}.",rangeCategories:"Data range: {numCategories} categories."},exporting:{chartMenuLabel:"Chart menu",menuButtonLabel:"View chart menu, {chartTitle}"},series:{summary:{"default":"{series.name}, series {seriesNumber} of {chart.series.length} with {series.points.length} data {#plural(series.points.length, points, point)}.",
-defaultCombination:"{series.name}, series {seriesNumber} of {chart.series.length} with {series.points.length} data {#plural(series.points.length, points, point)}.",line:"{series.name}, line {seriesNumber} of {chart.series.length} with {series.points.length} data {#plural(series.points.length, points, point)}.",lineCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Line with {series.points.length} data {#plural(series.points.length, points, point)}.",spline:"{series.name}, line {seriesNumber} of {chart.series.length} with {series.points.length} data {#plural(series.points.length, points, point)}.",
-splineCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Line with {series.points.length} data {#plural(series.points.length, points, point)}.",column:"{series.name}, bar series {seriesNumber} of {chart.series.length} with {series.points.length} {#plural(series.points.length, bars, bar)}.",columnCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Bar series with {series.points.length} {#plural(series.points.length, bars, bar)}.",bar:"{series.name}, bar series {seriesNumber} of {chart.series.length} with {series.points.length} {#plural(series.points.length, bars, bar)}.",
-barCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Bar series with {series.points.length} {#plural(series.points.length, bars, bar)}.",pie:"{series.name}, pie {seriesNumber} of {chart.series.length} with {series.points.length} {#plural(series.points.length, slices, slice)}.",pieCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Pie with {series.points.length} {#plural(series.points.length, slices, slice)}.",scatter:"{series.name}, scatter plot {seriesNumber} of {chart.series.length} with {series.points.length} {#plural(series.points.length, points, point)}.",
-scatterCombination:"{series.name}, series {seriesNumber} of {chart.series.length}, scatter plot with {series.points.length} {#plural(series.points.length, points, point)}.",boxplot:"{series.name}, boxplot {seriesNumber} of {chart.series.length} with {series.points.length} {#plural(series.points.length, boxes, box)}.",boxplotCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Boxplot with {series.points.length} {#plural(series.points.length, boxes, box)}.",bubble:"{series.name}, bubble series {seriesNumber} of {chart.series.length} with {series.points.length} {#plural(series.points.length, bubbles, bubble)}.",
-bubbleCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Bubble series with {series.points.length} {#plural(series.points.length, bubbles, bubble)}.",map:"{series.name}, map {seriesNumber} of {chart.series.length} with {series.points.length} {#plural(series.points.length, areas, area)}.",mapCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Map with {series.points.length} {#plural(series.points.length, areas, area)}.",mapline:"{series.name}, line {seriesNumber} of {chart.series.length} with {series.points.length} data {#plural(series.points.length, points, point)}.",
-maplineCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Line with {series.points.length} data {#plural(series.points.length, points, point)}.",mapbubble:"{series.name}, bubble series {seriesNumber} of {chart.series.length} with {series.points.length} {#plural(series.points.length, bubbles, bubble)}.",mapbubbleCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Bubble series with {series.points.length} {#plural(series.points.length, bubbles, bubble)}."},
-description:"{description}",xAxisDescription:"X axis, {name}",yAxisDescription:"Y axis, {name}",nullPointValue:"No value",pointAnnotationsDescription:"{Annotation: #each(annotations). }"}}}});A(a,"Accessibility/Options/DeprecatedOptions.js",[a["Core/Utilities.js"]],function(a){function h(a,h,l){for(var f,d=0;d<h.length-1;++d)f=h[d],a=a[f]=z(a[f],{});a[h[h.length-1]]=l}function l(a,k,l,f){function d(a,b){return b.reduce(function(a,b){return a[b]},a)}var b=d(a.options,k),c=d(a.options,l);Object.keys(f).forEach(function(d){var e,
-g=b[d];"undefined"!==typeof g&&(h(c,f[d],g),A(32,!1,a,(e={},e[k.join(".")+"."+d]=l.join(".")+"."+f[d].join("."),e)))})}function u(a){var g=a.options.chart,h=a.options.accessibility||{};["description","typeDescription"].forEach(function(f){var d;g[f]&&(h[f]=g[f],A(32,!1,a,(d={},d["chart.".concat(f)]="use accessibility.".concat(f),d)))})}function m(a){a.axes.forEach(function(g){(g=g.options)&&g.description&&(g.accessibility=g.accessibility||{},g.accessibility.description=g.description,A(32,!1,a,{"axis.description":"use axis.accessibility.description"}))})}
-function p(a){var g={description:["accessibility","description"],exposeElementToA11y:["accessibility","exposeAsGroupOnly"],pointDescriptionFormatter:["accessibility","point","descriptionFormatter"],skipKeyboardNavigation:["accessibility","keyboardNavigation","enabled"],"accessibility.pointDescriptionFormatter":["accessibility","point","descriptionFormatter"]};a.series.forEach(function(k){Object.keys(g).forEach(function(f){var d,b=k.options[f];"accessibility.pointDescriptionFormatter"===f&&(b=k.options.accessibility&&
-k.options.accessibility.pointDescriptionFormatter);"undefined"!==typeof b&&(h(k.options,g[f],"skipKeyboardNavigation"===f?!b:b),A(32,!1,a,(d={},d["series.".concat(f)]="series."+g[f].join("."),d)))})})}var A=a.error,z=a.pick;return function(a){u(a);m(a);a.series&&p(a);l(a,["accessibility"],["accessibility"],{pointDateFormat:["point","dateFormat"],pointDateFormatter:["point","dateFormatter"],pointDescriptionFormatter:["point","descriptionFormatter"],pointDescriptionThreshold:["series","pointDescriptionEnabledThreshold"],
-pointNavigationThreshold:["keyboardNavigation","seriesNavigation","pointNavigationEnabledThreshold"],pointValueDecimals:["point","valueDecimals"],pointValuePrefix:["point","valuePrefix"],pointValueSuffix:["point","valueSuffix"],screenReaderSectionFormatter:["screenReaderSection","beforeChartFormatter"],describeSingleSeries:["series","describeSingleSeries"],seriesDescriptionFormatter:["series","descriptionFormatter"],onTableAnchorClick:["screenReaderSection","onViewDataTableClick"],axisRangeDateFormat:["screenReaderSection",
-"axisRangeDateFormat"]});l(a,["accessibility","keyboardNavigation"],["accessibility","keyboardNavigation","seriesNavigation"],{skipNullPoints:["skipNullPoints"],mode:["mode"]});l(a,["lang","accessibility"],["lang","accessibility"],{legendItem:["legend","legendItem"],legendLabel:["legend","legendLabel"],mapZoomIn:["zoom","mapZoomIn"],mapZoomOut:["zoom","mapZoomOut"],resetZoomButton:["zoom","resetZoomButton"],screenReaderRegionLabel:["screenReaderSection","beforeRegionLabel"],rangeSelectorButton:["rangeSelector",
-"buttonText"],rangeSelectorMaxInput:["rangeSelector","maxInputLabel"],rangeSelectorMinInput:["rangeSelector","minInputLabel"],svgContainerEnd:["screenReaderSection","endOfChartMarker"],viewAsDataTable:["table","viewAsDataTableButtonText"],tableSummary:["table","tableSummary"]})}});A(a,"Accessibility/Accessibility.js",[a["Core/Defaults.js"],a["Core/Globals.js"],a["Core/Utilities.js"],a["Accessibility/Utils/HTMLUtilities.js"],a["Accessibility/A11yI18n.js"],a["Accessibility/Components/ContainerComponent.js"],
-a["Accessibility/FocusBorder.js"],a["Accessibility/Components/InfoRegionsComponent.js"],a["Accessibility/KeyboardNavigation.js"],a["Accessibility/Components/LegendComponent.js"],a["Accessibility/Components/MenuComponent.js"],a["Accessibility/Components/SeriesComponent/NewDataAnnouncer.js"],a["Accessibility/ProxyProvider.js"],a["Accessibility/Components/RangeSelectorComponent.js"],a["Accessibility/Components/SeriesComponent/SeriesComponent.js"],a["Accessibility/Components/ZoomComponent.js"],a["Accessibility/HighContrastMode.js"],
-a["Accessibility/HighContrastTheme.js"],a["Accessibility/Options/A11yDefaults.js"],a["Accessibility/Options/LangDefaults.js"],a["Accessibility/Options/DeprecatedOptions.js"]],function(a,h,l,x,m,p,A,z,g,k,w,f,d,b,c,e,r,E,I,J,B){a=a.defaultOptions;var u=h.doc,C=l.addEvent,v=l.extend,n=l.fireEvent,q=l.merge,D=x.removeElement;h=function(){function a(a){this.proxyProvider=this.keyboardNavigation=this.components=this.chart=void 0;this.init(a)}a.prototype.init=function(a){this.chart=a;u.addEventListener&&
-a.renderer.isSVG?(B(a),this.proxyProvider=new d(this.chart),this.initComponents(),this.keyboardNavigation=new g(a,this.components)):(this.zombie=!0,this.components={},a.renderTo.setAttribute("aria-hidden",!0))};a.prototype.initComponents=function(){var a=this.chart,d=this.proxyProvider,f=a.options.accessibility;this.components={container:new p,infoRegions:new z,legend:new k,chartMenu:new w,rangeSelector:new b,series:new c,zoom:new e};f.customComponents&&v(this.components,f.customComponents);var g=
-this.components;this.getComponentOrder().forEach(function(b){g[b].initBase(a,d);g[b].init()})};a.prototype.getComponentOrder=function(){if(!this.components)return[];if(!this.components.series)return Object.keys(this.components);var a=Object.keys(this.components).filter(function(a){return"series"!==a});return["series"].concat(a)};a.prototype.update=function(){var a=this.components,b=this.chart,c=b.options.accessibility;n(b,"beforeA11yUpdate");b.types=this.getChartTypes();c=c.keyboardNavigation.order;
-this.proxyProvider.updateGroupOrder(c);this.getComponentOrder().forEach(function(c){a[c].onChartUpdate();n(b,"afterA11yComponentUpdate",{name:c,component:a[c]})});this.keyboardNavigation.update(c);!b.highContrastModeActive&&r.isHighContrastModeActive()&&r.setHighContrastTheme(b);n(b,"afterA11yUpdate",{accessibility:this})};a.prototype.destroy=function(){var a=this.chart||{},b=this.components;Object.keys(b).forEach(function(a){b[a].destroy();b[a].destroyBase()});this.proxyProvider&&this.proxyProvider.destroy();
-a.announcerContainer&&D(a.announcerContainer);this.keyboardNavigation&&this.keyboardNavigation.destroy();a.renderTo&&a.renderTo.setAttribute("aria-hidden",!0);a.focusElement&&a.focusElement.removeFocusBorder()};a.prototype.getChartTypes=function(){var a={};this.chart.series.forEach(function(b){a[b.type]=1});return Object.keys(a)};return a}();(function(a){function d(){this.accessibility&&this.accessibility.destroy()}function e(){this.a11yDirty&&this.renderTo&&(delete this.a11yDirty,this.updateA11yEnabled());
-var a=this.accessibility;a&&!a.zombie&&(a.proxyProvider.updateProxyElementPositions(),a.getComponentOrder().forEach(function(b){a.components[b].onChartRender()}))}function h(a){if(a=a.options.accessibility)a.customComponents&&(this.options.accessibility.customComponents=a.customComponents,delete a.customComponents),q(!0,this.options.accessibility,a),this.accessibility&&this.accessibility.destroy&&(this.accessibility.destroy(),delete this.accessibility);this.a11yDirty=!0}function l(){var b=this.accessibility,
-c=this.options.accessibility;c&&c.enabled?b&&!b.zombie?b.update():(this.accessibility=b=new a(this),!b.zombie)&&b.update():b?(b.destroy&&b.destroy(),delete this.accessibility):this.renderTo.setAttribute("aria-hidden",!0)}function n(){this.series.chart.accessibility&&(this.series.chart.a11yDirty=!0)}var p=[];a.i18nFormat=m.i18nFormat;a.compose=function(a,q,r,u,t,v){g.compose(a);f.compose(u);k.compose(a,q);w.compose(a);c.compose(a,r,u);m.compose(a);A.compose(a,t);v&&b.compose(a,v);-1===p.indexOf(a)&&
-(p.push(a),a.prototype.updateA11yEnabled=l,C(a,"destroy",d),C(a,"render",e),C(a,"update",h),["addSeries","init"].forEach(function(b){C(a,b,function(){this.a11yDirty=!0})}),["afterApplyDrilldown","drillupall"].forEach(function(b){C(a,b,function(){var a=this.accessibility;a&&!a.zombie&&a.update()})}));-1===p.indexOf(r)&&(p.push(r),C(r,"update",n));-1===p.indexOf(u)&&(p.push(u),["update","updatedData","remove"].forEach(function(a){C(u,a,function(){this.chart.accessibility&&(this.chart.a11yDirty=!0)})}))}})(h||
-(h={}));q(!0,a,I,{accessibility:{highContrastTheme:E},lang:J});return h});A(a,"masters/modules/accessibility.src.js",[a["Core/Globals.js"],a["Accessibility/Accessibility.js"],a["Accessibility/AccessibilityComponent.js"],a["Accessibility/Utils/ChartUtilities.js"],a["Accessibility/Utils/HTMLUtilities.js"],a["Accessibility/KeyboardNavigationHandler.js"],a["Accessibility/Components/SeriesComponent/SeriesDescriber.js"]],function(a,h,l,x,m,p,A){a.i18nFormat=h.i18nFormat;a.A11yChartUtilities=x;a.A11yHTMLUtilities=
-m;a.AccessibilityComponent=l;a.KeyboardNavigationHandler=p;a.SeriesAccessibilityDescriber=A;h.compose(a.Chart,a.Legend,a.Point,a.Series,a.SVGElement,a.RangeSelector)})});
-//# sourceMappingURL=accessibility.js.map

+ 0 - 203
nicegui/elements/lib/highcharts_modules/annotations-advanced.js

@@ -1,203 +0,0 @@
-/*
- Highcharts JS v10.3.3 (2023-01-20)
-
- Annotations module
-
- (c) 2009-2021 Torstein Honsi
-
- License: www.highcharts.com/license
-*/
-(function(e){"object"===typeof module&&module.exports?(e["default"]=e,module.exports=e):"function"===typeof define&&define.amd?define("highcharts/modules/annotations-advanced",["highcharts"],function(r){e(r);e.Highcharts=r;return e}):e("undefined"!==typeof Highcharts?Highcharts:void 0)})(function(e){function r(e,l,m,k){e.hasOwnProperty(l)||(e[l]=k.apply(null,m),"function"===typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:l,module:e[l]}})))}e=e?e._modules:
-{};r(e,"Extensions/Annotations/AnnotationChart.js",[e["Core/Utilities.js"]],function(e){function l(b,a){b=this.initAnnotation(b);this.options.annotations.push(b.options);h(a,!0)&&(b.redraw(),b.graphic.attr({opacity:1}));return b}function m(){var b=this;b.plotBoxClip=this.renderer.clipRect(this.plotBox);b.controlPointsGroup=b.renderer.g("control-points").attr({zIndex:99}).clip(b.plotBoxClip).add();b.options.annotations.forEach(function(a,c){if(!b.annotations.some(function(b){return b.options===a})){var g=
-b.initAnnotation(a);b.options.annotations[c]=g.options}});b.drawAnnotations();a(b,"redraw",b.drawAnnotations);a(b,"destroy",function(){b.plotBoxClip.destroy();b.controlPointsGroup.destroy()});a(b,"exportData",function(a){var c=(this.options.exporting&&this.options.exporting.csv||{}).columnHeaderFormatter,g=!a.dataRows[1].xValues,d=b.options.lang&&b.options.lang.exportData&&b.options.lang.exportData.annotationHeader,h=function(b){if(c){var a=c(b);if(!1!==a)return a}a=d+" "+b;return g?{columnTitle:a,
-topLevelColumnTitle:a}:a},q=a.dataRows[0].length,u=b.options.exporting&&b.options.exporting.csv&&b.options.exporting.csv.annotations&&b.options.exporting.csv.annotations.itemDelimiter,f=b.options.exporting&&b.options.exporting.csv&&b.options.exporting.csv.annotations&&b.options.exporting.csv.annotations.join;b.annotations.forEach(function(b){b.options.labelOptions&&b.options.labelOptions.includeInDataExport&&b.labels.forEach(function(b){if(b.options.text){var c=b.options.text;b.points.forEach(function(b){var g=
-b.x,d=b.series.xAxis?b.series.xAxis.options.index:-1,h=!1;if(-1===d){b=a.dataRows[0].length;for(var p=Array(b),x=0;x<b;++x)p[x]="";p.push(c);p.xValues=[];p.xValues[d]=g;a.dataRows.push(p);h=!0}h||a.dataRows.forEach(function(b){!h&&b.xValues&&void 0!==d&&g===b.xValues[d]&&(f&&b.length>q?b[b.length-1]+=u+c:b.push(c),h=!0)});if(!h){b=a.dataRows[0].length;p=Array(b);for(x=0;x<b;++x)p[x]="";p[0]=g;p.push(c);p.xValues=[];void 0!==d&&(p.xValues[d]=g);a.dataRows.push(p)}})}})});var p=0;a.dataRows.forEach(function(b){p=
-Math.max(p,b.length)});for(var y=p-a.dataRows[0].length,e=0;e<y;e++){var D=h(e+1);g?(a.dataRows[0].push(D.topLevelColumnTitle),a.dataRows[1].push(D.columnTitle)):a.dataRows[0].push(D)}})}function k(){this.plotBoxClip.attr(this.plotBox);this.annotations.forEach(function(b){b.redraw();b.graphic.animate({opacity:1},b.animationConfig)})}function n(a){var d=this.annotations,h="annotations"===a.coll?a:b(d,function(b){return b.options.id===a});h&&(g(h,"remove"),c(this.options.annotations,h.options),c(d,
-h),h.destroy())}function f(){this.annotations=[];this.options.annotations||(this.options.annotations=[])}function d(b){this.chart.hasDraggedAnnotation||b.apply(this,Array.prototype.slice.call(arguments,1))}var a=e.addEvent,c=e.erase,b=e.find,g=e.fireEvent,h=e.pick,q=e.wrap,y=[],p;(function(b){b.compose=function(b,c,g){-1===y.indexOf(c)&&(y.push(c),a(c,"afterInit",f),c=c.prototype,c.addAnnotation=l,c.callbacks.push(m),c.collectionsWithInit.annotations=[l],c.collectionsWithUpdate.push("annotations"),
-c.drawAnnotations=k,c.removeAnnotation=n,c.initAnnotation=function(a){a=new (b.types[a.type]||b)(this,a);this.annotations.push(a);return a});-1===y.indexOf(g)&&(y.push(g),q(g.prototype,"onContainerMouseDown",d))}})(p||(p={}));return p});r(e,"Extensions/Annotations/AnnotationDefaults.js",[e["Core/Utilities.js"]],function(e){var l=e.defined;return{visible:!0,animation:{},crop:!0,draggable:"xy",labelOptions:{align:"center",allowOverlap:!1,backgroundColor:"rgba(0, 0, 0, 0.75)",borderColor:"#000000",borderRadius:3,
-borderWidth:1,className:"highcharts-no-tooltip",crop:!1,formatter:function(){return l(this.y)?""+this.y:"Annotation label"},includeInDataExport:!0,overflow:"justify",padding:5,shadow:!1,shape:"callout",style:{fontSize:"11px",fontWeight:"normal",color:"contrast"},useHTML:!1,verticalAlign:"bottom",x:0,y:-16},shapeOptions:{stroke:"rgba(0, 0, 0, 0.75)",strokeWidth:1,fill:"rgba(0, 0, 0, 0.75)",r:0,snap:2},controlPointOptions:{events:{},style:{cursor:"pointer",fill:"#ffffff",stroke:"#000000","stroke-width":2},
-height:10,symbol:"circle",visible:!1,width:10},events:{},zIndex:6}});r(e,"Extensions/Annotations/EventEmitter.js",[e["Core/Globals.js"],e["Core/Utilities.js"]],function(e,l){var m=e.doc,k=e.isTouchDevice,n=l.addEvent,f=l.fireEvent,d=l.objectEach,a=l.pick,c=l.removeEvent;return function(){function b(){}b.prototype.addEvents=function(){var b=this,a=function(a){n(a,k?"touchstart":"mousedown",function(a){b.onMouseDown(a)},{passive:!1})};a(this.graphic.element);(b.labels||[]).forEach(function(b){b.options.useHTML&&
-b.graphic.text&&a(b.graphic.text.element)});d(b.options.events,function(a,c){var g=function(g){"click"===c&&b.cancelClick||a.call(b,b.chart.pointer.normalize(g),b.target)};if(-1===(b.nonDOMEvents||[]).indexOf(c))b.graphic.on(c,g);else n(b,c,g,{passive:!1})});if(b.options.draggable&&(n(b,"drag",b.onDrag),!b.graphic.renderer.styledMode)){var c={cursor:{x:"ew-resize",y:"ns-resize",xy:"move"}[b.options.draggable]};b.graphic.css(c);(b.labels||[]).forEach(function(b){b.options.useHTML&&b.graphic.text&&
-b.graphic.text.css(c)})}b.isUpdating||f(b,"add")};b.prototype.destroy=function(){this.removeDocEvents();c(this);this.hcEvents=null};b.prototype.mouseMoveToRadians=function(b,a,c){var g=b.prevChartY-c,d=b.prevChartX-a;c=b.chartY-c;b=b.chartX-a;this.chart.inverted&&(a=d,d=g,g=a,a=b,b=c,c=a);return Math.atan2(c,b)-Math.atan2(g,d)};b.prototype.mouseMoveToScale=function(b,a,c){a=(b.chartX-a||1)/(b.prevChartX-a||1);b=(b.chartY-c||1)/(b.prevChartY-c||1);this.chart.inverted&&(c=b,b=a,a=c);return{x:a,y:b}};
-b.prototype.mouseMoveToTranslation=function(b){var a=b.chartX-b.prevChartX;b=b.chartY-b.prevChartY;if(this.chart.inverted){var c=b;b=a;a=c}return{x:a,y:b}};b.prototype.onDrag=function(b){if(this.chart.isInsidePlot(b.chartX-this.chart.plotLeft,b.chartY-this.chart.plotTop,{visiblePlotOnly:!0})){var a=this.mouseMoveToTranslation(b);"x"===this.options.draggable&&(a.y=0);"y"===this.options.draggable&&(a.x=0);this.points.length?this.translate(a.x,a.y):(this.shapes.forEach(function(b){return b.translate(a.x,
-a.y)}),this.labels.forEach(function(b){return b.translate(a.x,a.y)}));this.redraw(!1)}};b.prototype.onMouseDown=function(b){b.preventDefault&&b.preventDefault();if(2!==b.button){var c=this,d=c.chart.pointer;b=d.normalize(b);var g=b.chartX,p=b.chartY;c.cancelClick=!1;c.chart.hasDraggedAnnotation=!0;c.removeDrag=n(m,k?"touchmove":"mousemove",function(b){c.hasDragged=!0;b=d.normalize(b);b.prevChartX=g;b.prevChartY=p;f(c,"drag",b);g=b.chartX;p=b.chartY},k?{passive:!1}:void 0);c.removeMouseUp=n(m,k?"touchend":
-"mouseup",function(b){var d=a(c.target&&c.target.annotation,c.target);d&&(d.cancelClick=c.hasDragged);c.cancelClick=c.hasDragged;c.hasDragged=!1;c.chart.hasDraggedAnnotation=!1;f(a(d,c),"afterUpdate");c.onMouseUp(b)},k?{passive:!1}:void 0)}};b.prototype.onMouseUp=function(b){var a=this.chart;b=this.target||this;var c=a.options.annotations;a=a.annotations.indexOf(b);this.removeDocEvents();c[a]=b.options};b.prototype.removeDocEvents=function(){this.removeDrag&&(this.removeDrag=this.removeDrag());this.removeMouseUp&&
-(this.removeMouseUp=this.removeMouseUp())};return b}()});r(e,"Extensions/Annotations/ControlPoint.js",[e["Extensions/Annotations/EventEmitter.js"],e["Core/Utilities.js"]],function(e,l){var m=this&&this.__extends||function(){var f=function(d,a){f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return f(d,a)};return function(d,a){function c(){this.constructor=d}f(d,a);d.prototype=null===a?Object.create(a):
-(c.prototype=a.prototype,new c)}}(),k=l.merge,n=l.pick;e=function(f){function d(a,c,b,d){var g=f.call(this)||this;g.graphic=void 0;g.nonDOMEvents=["drag"];g.chart=a;g.target=c;g.options=b;g.index=n(b.index,d);return g}m(d,f);d.prototype.destroy=function(){f.prototype.destroy.call(this);this.graphic&&(this.graphic=this.graphic.destroy());this.options=this.target=this.chart=null};d.prototype.redraw=function(a){this.graphic[a?"animate":"attr"](this.options.positioner.call(this,this.target))};d.prototype.render=
-function(){var a=this.chart,c=this.options;this.graphic=a.renderer.symbol(c.symbol,0,0,c.width,c.height).add(a.controlPointsGroup).css(c.style);this.setVisibility(c.visible);this.addEvents()};d.prototype.setVisibility=function(a){this.graphic[a?"show":"hide"]();this.options.visible=a};d.prototype.update=function(a){var c=this.chart,b=this.target,d=this.index;a=k(!0,this.options,a);this.destroy();this.constructor(c,b,a,d);this.render(c.controlPointsGroup);this.redraw()};return d}(e);"";return e});
-r(e,"Extensions/Annotations/MockPoint.js",[e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(e,l){var m=e.series.prototype,k=l.defined,n=l.fireEvent;e=function(){function f(d,a,c){this.plotY=this.plotX=void 0;this.mock=!0;this.series={visible:!0,chart:d,getPlotBox:m.getPlotBox};this.target=a||null;this.options=c;this.applyOptions(this.getOptions())}f.fromPoint=function(d){return new f(d.series.chart,null,{x:d.x,y:d.y,xAxis:d.series.xAxis,yAxis:d.series.yAxis})};f.pointToPixels=function(d,
-a){var c=d.series,b=c.chart,g=d.plotX||0,h=d.plotY||0;b.inverted&&(d.mock?(g=d.plotY,h=d.plotX):(g=b.plotWidth-(d.plotY||0),h=b.plotHeight-(d.plotX||0)));c&&!a&&(d=c.getPlotBox(),g+=d.translateX,h+=d.translateY);return{x:g,y:h}};f.pointToOptions=function(d){return{x:d.x,y:d.y,xAxis:d.series.xAxis,yAxis:d.series.yAxis}};f.prototype.applyOptions=function(d){this.command=d.command;this.setAxis(d,"x");this.setAxis(d,"y");this.refresh()};f.prototype.getLabelConfig=function(){return{x:this.x,y:this.y,point:this}};
-f.prototype.getOptions=function(){return this.hasDynamicOptions()?this.options(this.target):this.options};f.prototype.hasDynamicOptions=function(){return"function"===typeof this.options};f.prototype.isInsidePlot=function(){var d=this.plotX,a=this.plotY,c=this.series.xAxis,b=this.series.yAxis,g={x:d,y:a,isInsidePlot:!0,options:{}};c&&(g.isInsidePlot=k(d)&&0<=d&&d<=c.len);b&&(g.isInsidePlot=g.isInsidePlot&&k(a)&&0<=a&&a<=b.len);n(this.series.chart,"afterIsInsidePlot",g);return g.isInsidePlot};f.prototype.refresh=
-function(){var d=this.series,a=d.xAxis;d=d.yAxis;var c=this.getOptions();a?(this.x=c.x,this.plotX=a.toPixels(c.x,!0)):(this.x=void 0,this.plotX=c.x);d?(this.y=c.y,this.plotY=d.toPixels(c.y,!0)):(this.y=null,this.plotY=c.y);this.isInside=this.isInsidePlot()};f.prototype.refreshOptions=function(){var d=this.series,a=d.xAxis;d=d.yAxis;this.x=this.options.x=a?this.options.x=a.toValue(this.plotX,!0):this.plotX;this.y=this.options.y=d?d.toValue(this.plotY,!0):this.plotY};f.prototype.rotate=function(d,a,
-c){if(!this.hasDynamicOptions()){var b=Math.cos(c);c=Math.sin(c);var g=this.plotX-d,h=this.plotY-a;this.plotX=g*b-h*c+d;this.plotY=g*c+h*b+a;this.refreshOptions()}};f.prototype.scale=function(d,a,c,b){if(!this.hasDynamicOptions()){var g=this.plotY*b;this.plotX=(1-c)*d+this.plotX*c;this.plotY=(1-b)*a+g;this.refreshOptions()}};f.prototype.setAxis=function(d,a){a+="Axis";d=d[a];var c=this.series.chart;this.series[a]="object"===typeof d?d:k(d)?c[a][d]||c.get(d):null};f.prototype.toAnchor=function(){var d=
-[this.plotX,this.plotY,0,0];this.series.chart.inverted&&(d[0]=this.plotY,d[1]=this.plotX);return d};f.prototype.translate=function(d,a,c,b){this.hasDynamicOptions()||(this.plotX+=c,this.plotY+=b,this.refreshOptions())};return f}();"";return e});r(e,"Extensions/Annotations/Controllables/Controllable.js",[e["Extensions/Annotations/ControlPoint.js"],e["Extensions/Annotations/MockPoint.js"],e["Core/Tooltip.js"],e["Core/Utilities.js"]],function(e,l,m,k){var n=k.isObject,f=k.isString,d=k.merge,a=k.splat;
-k=function(){function c(b,a,c,d){this.graphic=void 0;this.annotation=b;this.chart=b.chart;this.collection="label"===d?"labels":"shapes";this.options=a;this.points=[];this.controlPoints=[];this.index=c;this.itemType=d;this.init(b,a,c)}c.prototype.addControlPoints=function(){var b=this,a=this.controlPoints,c=this.options.controlPoints||[];c.forEach(function(g,h){g=d(b.options.controlPointOptions,g);g.index||(g.index=h);c[h]=g;a.push(new e(b.chart,b,g))})};c.prototype.anchor=function(b){var a=b.series.getPlotBox(),
-c=b.series.chart,q=b.mock?b.toAnchor():m.prototype.getAnchor.call({chart:b.series.chart},b);q={x:q[0]+(this.options.x||0),y:q[1]+(this.options.y||0),height:q[2]||0,width:q[3]||0};return{relativePosition:q,absolutePosition:d(q,{x:q.x+(b.mock?a.translateX:c.plotLeft),y:q.y+(b.mock?a.translateY:c.plotTop)})}};c.prototype.attr=function(){for(var b=0;b<arguments.length;b++);this.graphic.attr.apply(this.graphic,arguments)};c.prototype.attrsFromOptions=function(b){var a=this.constructor.attrsMap,c={},d=
-this.chart.styledMode,f;for(f in b){var e=a[f];"undefined"===typeof a[f]||d&&-1!==["fill","stroke","stroke-width"].indexOf(e)||(c[e]=b[f])}return c};c.prototype.destroy=function(){this.graphic&&(this.graphic=this.graphic.destroy());this.tracker&&(this.tracker=this.tracker.destroy());this.controlPoints.forEach(function(b){return b.destroy()});this.options=this.controlPoints=this.points=this.chart=null;this.annotation&&(this.annotation=null)};c.prototype.getPointsOptions=function(){var b=this.options;
-return b.points||b.point&&a(b.point)};c.prototype.init=function(b,a,c){this.annotation=b;this.chart=b.chart;this.options=a;this.points=[];this.controlPoints=[];this.index=c;this.linkPoints();this.addControlPoints()};c.prototype.linkPoints=function(){var b=this.getPointsOptions(),a=this.points,c=b&&b.length||0,d;for(d=0;d<c;d++){var f=this.point(b[d],a[d]);if(!f){a.length=0;return}f.mock&&f.refresh();a[d]=f}return a};c.prototype.point=function(b,a){if(b&&b.series)return b;a&&null!==a.series||(n(b)?
-a=new l(this.chart,this,b):f(b)?a=this.chart.get(b)||null:"function"===typeof b&&(a=b.call(a,this),a=a.series?a:new l(this.chart,this,b)));return a};c.prototype.render=function(b){this.controlPoints.forEach(function(b){return b.render()})};c.prototype.redraw=function(b){this.controlPoints.forEach(function(a){return a.redraw(b)})};c.prototype.rotate=function(b,a,c){this.transform("rotate",b,a,c)};c.prototype.scale=function(b,a,c,d){this.transform("scale",b,a,c,d)};c.prototype.setControlPointsVisibility=
-function(b){this.controlPoints.forEach(function(a){a.setVisibility(b)})};c.prototype.shouldBeDrawn=function(){return!!this.points.length};c.prototype.transform=function(b,a,c,d,f){var g=this;if(this.chart.inverted){var h=a;a=c;c=h}this.points.forEach(function(h,q){return g.transformPoint(b,a,c,d,f,q)},this)};c.prototype.transformPoint=function(b,a,c,d,f,e){var g=this.points[e];g.mock||(g=this.points[e]=l.fromPoint(g));g[b](a,c,d,f)};c.prototype.translate=function(b,a){this.transform("translate",null,
-null,b,a)};c.prototype.translatePoint=function(b,a,c){this.transformPoint("translate",null,null,b,a,c)};c.prototype.translateShape=function(b,a,c){var d=this.annotation.chart,g=this.annotation.userOptions,h=d.annotations.indexOf(this.annotation);d=d.options.annotations[h];this.translatePoint(b,a,0);c&&this.translatePoint(b,a,1);d[this.collection][this.index].point=this.options.point;g[this.collection][this.index].point=this.options.point};c.prototype.update=function(b){var a=this.annotation;b=d(!0,
-this.options,b);var c=this.graphic.parentGroup;this.destroy();this.constructor(a,b,this.index,this.itemType);this.render(c);this.redraw()};return c}();"";return k});r(e,"Extensions/Annotations/Controllables/ControllableDefaults.js",[],function(){return{defaultMarkers:{arrow:{tagName:"marker",attributes:{id:"arrow",refY:5,refX:9,markerWidth:10,markerHeight:10},children:[{tagName:"path",attributes:{d:"M 0 0 L 10 5 L 0 10 Z","stroke-width":0}}]},"reverse-arrow":{tagName:"marker",attributes:{id:"reverse-arrow",
-refY:5,refX:1,markerWidth:10,markerHeight:10},children:[{tagName:"path",attributes:{d:"M 0 5 L 10 0 L 10 10 Z","stroke-width":0}}]}}}});r(e,"Extensions/Annotations/Controllables/ControllablePath.js",[e["Extensions/Annotations/Controllables/Controllable.js"],e["Extensions/Annotations/Controllables/ControllableDefaults.js"],e["Core/Globals.js"],e["Core/Utilities.js"]],function(e,l,m,k){function n(b){return function(a){this.attr(b,"url(#"+a+")")}}function f(){this.options.defs=q(c,this.options.defs||
-{})}function d(b,a){var c={attributes:{id:b}},d={stroke:a.color||"none",fill:a.color||"rgba(0, 0, 0, 0.75)"};c.children=a.children&&a.children.map(function(b){return q(d,b)});a=q(!0,{attributes:{markerWidth:20,markerHeight:20,refX:0,refY:0,orient:"auto"}},a,c);a=this.definition(a);a.id=b;return a}var a=this&&this.__extends||function(){var b=function(a,c){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,a){b.__proto__=a}||function(b,a){for(var c in a)a.hasOwnProperty(c)&&(b[c]=a[c])};
-return b(a,c)};return function(a,c){function d(){this.constructor=a}b(a,c);a.prototype=null===c?Object.create(c):(d.prototype=c.prototype,new d)}}(),c=l.defaultMarkers,b=k.addEvent,g=k.defined,h=k.extend,q=k.merge,y=k.uniqueKey,p=[],u=n("marker-end"),D=n("marker-start"),z="rgba(192,192,192,"+(m.svg?.0001:.002)+")";return function(c){function e(b,a,d){b=c.call(this,b,a,d,"shape")||this;b.type="path";return b}a(e,c);e.compose=function(a,c){-1===p.indexOf(a)&&(p.push(a),b(a,"afterGetContainer",f));-1===
-p.indexOf(c)&&(p.push(c),c.prototype.addMarker=d)};e.prototype.toD=function(){var b=this.options.d;if(b)return"function"===typeof b?b.call(this):b;b=this.points;var a=b.length,c=[],d=a,g=b[0],h=d&&this.anchor(g).absolutePosition,f=0;if(h)for(c.push(["M",h.x,h.y]);++f<a&&d;)g=b[f],d=g.command||"L",h=this.anchor(g).absolutePosition,"M"===d?c.push([d,h.x,h.y]):"L"===d?c.push([d,h.x,h.y]):"Z"===d&&c.push([d]),d=g.series.visible;return d&&this.graphic?this.chart.renderer.crispLine(c,this.graphic.strokeWidth()):
-null};e.prototype.shouldBeDrawn=function(){return c.prototype.shouldBeDrawn.call(this)||!!this.options.d};e.prototype.render=function(b){var a=this.options,d=this.attrsFromOptions(a);this.graphic=this.annotation.chart.renderer.path([["M",0,0]]).attr(d).add(b);a.className&&this.graphic.addClass(a.className);this.tracker=this.annotation.chart.renderer.path([["M",0,0]]).addClass("highcharts-tracker-line").attr({zIndex:2}).add(b);this.annotation.chart.styledMode||this.tracker.attr({"stroke-linejoin":"round",
-stroke:z,fill:z,"stroke-width":this.graphic.strokeWidth()+2*a.snap});c.prototype.render.call(this);h(this.graphic,{markerStartSetter:D,markerEndSetter:u});this.setMarkers(this)};e.prototype.redraw=function(b){if(this.graphic){var a=this.toD(),d=b?"animate":"attr";a?(this.graphic[d]({d:a}),this.tracker[d]({d:a})):(this.graphic.attr({d:"M 0 -9000000000"}),this.tracker.attr({d:"M 0 -9000000000"}));this.graphic.placed=this.tracker.placed=!!a}c.prototype.redraw.call(this,b)};e.prototype.setMarkers=function(b){var a=
-b.options,c=b.chart,d=c.options.defs,h=a.fill,f=g(h)&&"none"!==h?h:a.stroke;["markerStart","markerEnd"].forEach(function(g){var h=a[g],e;if(h){for(e in d){var p=d[e];if((h===(p.attributes&&p.attributes.id)||h===p.id)&&"marker"===p.tagName){var u=p;break}}u&&(h=b[g]=c.renderer.addMarker((a.id||y())+"-"+h,q(u,{color:f})),b.attr(g,h.getAttribute("id")))}})};e.attrsMap={dashStyle:"dashstyle",strokeWidth:"stroke-width",stroke:"stroke",fill:"fill",zIndex:"zIndex"};return e}(e)});r(e,"Extensions/Annotations/Controllables/ControllableRect.js",
-[e["Extensions/Annotations/Controllables/Controllable.js"],e["Extensions/Annotations/Controllables/ControllablePath.js"],e["Core/Utilities.js"]],function(e,l,m){var k=this&&this.__extends||function(){var f=function(d,a){f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return f(d,a)};return function(d,a){function c(){this.constructor=d}f(d,a);d.prototype=null===a?Object.create(a):(c.prototype=a.prototype,
-new c)}}(),n=m.merge;return function(f){function d(a,c,b){a=f.call(this,a,c,b,"shape")||this;a.type="rect";a.translate=f.prototype.translateShape;return a}k(d,f);d.prototype.render=function(a){var c=this.attrsFromOptions(this.options);this.graphic=this.annotation.chart.renderer.rect(0,-9E9,0,0).attr(c).add(a);f.prototype.render.call(this)};d.prototype.redraw=function(a){if(this.graphic){var c=this.anchor(this.points[0]).absolutePosition;if(c)this.graphic[a?"animate":"attr"]({x:c.x,y:c.y,width:this.options.width,
-height:this.options.height});else this.attr({x:0,y:-9E9});this.graphic.placed=!!c}f.prototype.redraw.call(this,a)};d.attrsMap=n(l.attrsMap,{width:"width",height:"height"});return d}(e)});r(e,"Extensions/Annotations/Controllables/ControllableCircle.js",[e["Extensions/Annotations/Controllables/Controllable.js"],e["Extensions/Annotations/Controllables/ControllablePath.js"],e["Core/Utilities.js"]],function(e,l,m){var k=this&&this.__extends||function(){var f=function(d,a){f=Object.setPrototypeOf||{__proto__:[]}instanceof
-Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return f(d,a)};return function(d,a){function c(){this.constructor=d}f(d,a);d.prototype=null===a?Object.create(a):(c.prototype=a.prototype,new c)}}(),n=m.merge;return function(f){function d(a,c,b){a=f.call(this,a,c,b,"shape")||this;a.type="circle";a.translate=f.prototype.translateShape;return a}k(d,f);d.prototype.redraw=function(a){if(this.graphic){var c=this.anchor(this.points[0]).absolutePosition;
-if(c)this.graphic[a?"animate":"attr"]({x:c.x,y:c.y,r:this.options.r});else this.graphic.attr({x:0,y:-9E9});this.graphic.placed=!!c}f.prototype.redraw.call(this,a)};d.prototype.render=function(a){var c=this.attrsFromOptions(this.options);this.graphic=this.annotation.chart.renderer.circle(0,-9E9,0).attr(c).add(a);f.prototype.render.call(this)};d.prototype.setRadius=function(a){this.options.r=a};d.attrsMap=n(l.attrsMap,{r:"r"});return d}(e)});r(e,"Extensions/Annotations/Controllables/ControllableEllipse.js",
-[e["Extensions/Annotations/Controllables/Controllable.js"],e["Extensions/Annotations/Controllables/ControllablePath.js"],e["Core/Utilities.js"]],function(e,l,m){var k=this&&this.__extends||function(){var d=function(a,c){d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,a){b.__proto__=a}||function(b,a){for(var c in a)a.hasOwnProperty(c)&&(b[c]=a[c])};return d(a,c)};return function(a,c){function b(){this.constructor=a}d(a,c);a.prototype=null===c?Object.create(c):(b.prototype=c.prototype,
-new b)}}(),n=m.merge,f=m.defined;return function(d){function a(a,b,g){a=d.call(this,a,b,g,"shape")||this;a.type="ellipse";return a}k(a,d);a.prototype.init=function(a,b,g){f(b.yAxis)&&b.points.forEach(function(a){a.yAxis=b.yAxis});f(b.xAxis)&&b.points.forEach(function(a){a.xAxis=b.xAxis});d.prototype.init.call(this,a,b,g)};a.prototype.render=function(a){this.graphic=this.annotation.chart.renderer.createElement("ellipse").attr(this.attrsFromOptions(this.options)).add(a);d.prototype.render.call(this)};
-a.prototype.translate=function(a,b){d.prototype.translateShape.call(this,a,b,!0)};a.prototype.getDistanceFromLine=function(a,b,d,h){return Math.abs((b.y-a.y)*d-(b.x-a.x)*h+b.x*a.y-b.y*a.x)/Math.sqrt((b.y-a.y)*(b.y-a.y)+(b.x-a.x)*(b.x-a.x))};a.prototype.getAttrs=function(a,b){var c=a.x,d=a.y,f=b.x,e=b.y;b=(c+f)/2;a=(d+e)/2;var p=Math.sqrt((c-f)*(c-f)/4+(d-e)*(d-e)/4);d=180*Math.atan((e-d)/(f-c))/Math.PI;b<c&&(d+=180);c=this.getRY();return{cx:b,cy:a,rx:p,ry:c,angle:d}};a.prototype.getRY=function(){var a=
-this.getYAxis();return f(a)?Math.abs(a.toPixels(this.options.ry)-a.toPixels(0)):this.options.ry};a.prototype.getYAxis=function(){return this.chart.yAxis[this.options.yAxis]};a.prototype.getAbsolutePosition=function(a){return this.anchor(a).absolutePosition};a.prototype.redraw=function(a){if(this.graphic){var b=this.getAbsolutePosition(this.points[0]),c=this.getAbsolutePosition(this.points[1]);c=this.getAttrs(b,c);if(b)this.graphic[a?"animate":"attr"]({cx:c.cx,cy:c.cy,rx:c.rx,ry:c.ry,rotation:c.angle,
-rotationOriginX:c.cx,rotationOriginY:c.cy});else this.graphic.attr({x:0,y:-9E9});this.graphic.placed=!!b}d.prototype.redraw.call(this,a)};a.prototype.setYRadius=function(a){var b=this.annotation.userOptions.shapes;this.options.ry=a;b&&b[0]&&(b[0].ry=a,b[0].ry=a)};a.attrsMap=n(l.attrsMap,{ry:"ry"});return a}(e)});r(e,"Extensions/Annotations/Controllables/ControllableLabel.js",[e["Extensions/Annotations/Controllables/Controllable.js"],e["Core/FormatUtilities.js"],e["Extensions/Annotations/MockPoint.js"],
-e["Core/Tooltip.js"],e["Core/Utilities.js"]],function(e,l,m,k,n){function f(a,c,d,g,h){var f=h&&h.anchorX;h=h&&h.anchorY;var e=d/2;if(b(f)&&b(h)){var q=[["M",f,h]];var p=c-h;0>p&&(p=-g-p);p<d&&(e=f<a+d/2?p:d-p);h>c+g?q.push(["L",a+e,c+g]):h<c?q.push(["L",a+e,c]):f<a?q.push(["L",a,c+g/2]):f>a+d&&q.push(["L",a+d,c+g/2])}return q||[]}var d=this&&this.__extends||function(){var a=function(b,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&
-(a[c]=b[c])};return a(b,c)};return function(b,c){function d(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(d.prototype=c.prototype,new d)}}(),a=l.format,c=n.extend,b=n.isNumber,g=n.pick,h=[];return function(b){function e(a,c,d){return b.call(this,a,c,d,"label")||this}d(e,b);e.alignedPosition=function(b,a){var c=b.align,d=b.verticalAlign,g=(a.x||0)+(b.x||0),h=(a.y||0)+(b.y||0),e,f;"right"===c?e=1:"center"===c&&(e=2);e&&(g+=(a.width-(b.width||0))/e);"bottom"===d?f=1:"middle"===d&&
-(f=2);f&&(h+=(a.height-(b.height||0))/f);return{x:Math.round(g),y:Math.round(h)}};e.compose=function(b){-1===h.indexOf(b)&&(h.push(b),b.prototype.symbols.connector=f)};e.justifiedOptions=function(b,a,c,d){var g=c.align,h=c.verticalAlign,e=a.box?0:a.padding||0,f=a.getBBox();a={align:g,verticalAlign:h,x:c.x,y:c.y,width:a.width,height:a.height};c=(d.x||0)-b.plotLeft;d=(d.y||0)-b.plotTop;var q=c+e;0>q&&("right"===g?a.align="left":a.x=(a.x||0)-q);q=c+f.width-e;q>b.plotWidth&&("left"===g?a.align="right":
-a.x=(a.x||0)+b.plotWidth-q);q=d+e;0>q&&("bottom"===h?a.verticalAlign="top":a.y=(a.y||0)-q);q=d+f.height-e;q>b.plotHeight&&("top"===h?a.verticalAlign="bottom":a.y=(a.y||0)+b.plotHeight-q);return a};e.prototype.translatePoint=function(a,c){b.prototype.translatePoint.call(this,a,c,0)};e.prototype.translate=function(a,b){var c=this.annotation.chart,d=this.annotation.userOptions,g=c.annotations.indexOf(this.annotation);g=c.options.annotations[g];c.inverted&&(c=a,a=b,b=c);this.options.x+=a;this.options.y+=
-b;g[this.collection][this.index].x=this.options.x;g[this.collection][this.index].y=this.options.y;d[this.collection][this.index].x=this.options.x;d[this.collection][this.index].y=this.options.y};e.prototype.render=function(a){var c=this.options,d=this.attrsFromOptions(c),g=c.style;this.graphic=this.annotation.chart.renderer.label("",0,-9999,c.shape,null,null,c.useHTML,null,"annotation-label").attr(d).add(a);this.annotation.chart.styledMode||("contrast"===g.color&&(g.color=this.annotation.chart.renderer.getContrast(-1<
-e.shapesWithoutBackground.indexOf(c.shape)?"#FFFFFF":c.backgroundColor)),this.graphic.css(c.style).shadow(c.shadow));c.className&&this.graphic.addClass(c.className);this.graphic.labelrank=c.labelrank;b.prototype.render.call(this)};e.prototype.redraw=function(c){var d=this.options,g=this.text||d.format||d.text,h=this.graphic,e=this.points[0];h?(h.attr({text:g?a(String(g),e.getLabelConfig(),this.annotation.chart):d.formatter.call(e,this)}),d=this.anchor(e),(g=this.position(d))?(h.alignAttr=g,g.anchorX=
-d.absolutePosition.x,g.anchorY=d.absolutePosition.y,h[c?"animate":"attr"](g)):h.attr({x:0,y:-9999}),h.placed=!!g,b.prototype.redraw.call(this,c)):this.redraw(c)};e.prototype.anchor=function(a){var c=b.prototype.anchor.apply(this,arguments),d=this.options.x||0,g=this.options.y||0;c.absolutePosition.x-=d;c.absolutePosition.y-=g;c.relativePosition.x-=d;c.relativePosition.y-=g;return c};e.prototype.position=function(a){var b=this.graphic,d=this.annotation.chart,h=this.points[0],f=this.options,q=a.absolutePosition,
-p=a.relativePosition,y=h.series.visible&&m.prototype.isInsidePlot.call(h);if(b&&y){var t=b.width;a=void 0===t?0:t;t=b.height;var n=void 0===t?0:t;f.distance?t=k.prototype.getPosition.call({chart:d,distance:g(f.distance,16)},a,n,{plotX:p.x,plotY:p.y,negative:h.negative,ttBelow:h.ttBelow,h:p.height||p.width}):f.positioner?t=f.positioner.call(this):(h={x:q.x,y:q.y,width:0,height:0},t=e.alignedPosition(c(f,{width:a,height:n}),h),"justify"===this.options.overflow&&(t=e.alignedPosition(e.justifiedOptions(d,
-b,f,t),h)));f.crop&&(b=t.x-d.plotLeft,f=t.y-d.plotTop,y=d.isInsidePlot(b,f)&&d.isInsidePlot(b+a,f+n))}return y?t:null};e.attrsMap={backgroundColor:"fill",borderColor:"stroke",borderWidth:"stroke-width",zIndex:"zIndex",borderRadius:"r",padding:"padding"};e.shapesWithoutBackground=["connector"];return e}(e)});r(e,"Extensions/Annotations/Controllables/ControllableImage.js",[e["Extensions/Annotations/Controllables/Controllable.js"],e["Extensions/Annotations/Controllables/ControllableLabel.js"]],function(e,
-l){var m=this&&this.__extends||function(){var e=function(k,f){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,a){d.__proto__=a}||function(d,a){for(var c in a)a.hasOwnProperty(c)&&(d[c]=a[c])};return e(k,f)};return function(k,f){function d(){this.constructor=k}e(k,f);k.prototype=null===f?Object.create(f):(d.prototype=f.prototype,new d)}}();return function(e){function k(f,d,a){f=e.call(this,f,d,a,"shape")||this;f.type="image";f.translate=e.prototype.translateShape;return f}m(k,e);
-k.prototype.render=function(f){var d=this.attrsFromOptions(this.options),a=this.options;this.graphic=this.annotation.chart.renderer.image(a.src,0,-9E9,a.width,a.height).attr(d).add(f);this.graphic.width=a.width;this.graphic.height=a.height;e.prototype.render.call(this)};k.prototype.redraw=function(f){if(this.graphic){var d=this.anchor(this.points[0]);if(d=l.prototype.position.call(this,d))this.graphic[f?"animate":"attr"]({x:d.x,y:d.y});else this.graphic.attr({x:0,y:-9E9});this.graphic.placed=!!d}e.prototype.redraw.call(this,
-f)};k.attrsMap={width:"width",height:"height",zIndex:"zIndex"};return k}(e)});r(e,"Core/Chart/ChartNavigationComposition.js",[],function(){var e;(function(e){e.compose=function(e){e.navigation||(e.navigation=new m(e));return e};var m=function(){function e(e){this.updates=[];this.chart=e}e.prototype.addUpdate=function(e){this.chart.navigation.updates.push(e)};e.prototype.update=function(e,f){var d=this;this.updates.forEach(function(a){a.call(d.chart,e,f)})};return e}();e.Additions=m})(e||(e={}));return e});
-r(e,"Extensions/Annotations/NavigationBindingsUtilities.js",[e["Core/Utilities.js"]],function(e){var l=e.defined,m=e.isNumber,k=e.pick,n={backgroundColor:"string",borderColor:"string",borderRadius:"string",color:"string",fill:"string",fontSize:"string",labels:"string",name:"string",stroke:"string",title:"string"};return{annotationsFieldsTypes:n,getAssignedAxis:function(e){return e.filter(function(d){var a=d.axis.getExtremes(),c=a.min;a=a.max;var b=k(d.axis.minPointOffset,0);return m(c)&&m(a)&&d.value>=
-c-b&&d.value<=a+b&&!d.axis.options.isInternal})[0]},getFieldType:function(e,d){e=n[e];d=typeof d;l(e)&&(d=e);return{string:"text",number:"number","boolean":"checkbox"}[d]}}});r(e,"Extensions/Annotations/NavigationBindingsDefaults.js",[e["Extensions/Annotations/NavigationBindingsUtilities.js"],e["Core/Utilities.js"]],function(e,l){var m=e.getAssignedAxis,k=l.isNumber,n=l.merge;return{lang:{navigation:{popup:{simpleShapes:"Simple shapes",lines:"Lines",circle:"Circle",ellipse:"Ellipse",rectangle:"Rectangle",
-label:"Label",shapeOptions:"Shape options",typeOptions:"Details",fill:"Fill",format:"Text",strokeWidth:"Line width",stroke:"Line color",title:"Title",name:"Name",labelOptions:"Label options",labels:"Labels",backgroundColor:"Background color",backgroundColors:"Background colors",borderColor:"Border color",borderRadius:"Border radius",borderWidth:"Border width",style:"Style",padding:"Padding",fontSize:"Font size",color:"Color",height:"Height",shapes:"Shape options"}}},navigation:{bindingsClassName:"highcharts-bindings-container",
-bindings:{circleAnnotation:{className:"highcharts-circle-annotation",start:function(e){var d=this.chart.pointer.getCoordinates(e);e=m(d.xAxis);d=m(d.yAxis);var a=this.chart.options.navigation;if(e&&d)return this.chart.addAnnotation(n({langKey:"circle",type:"basicAnnotation",shapes:[{type:"circle",point:{x:e.value,y:d.value,xAxis:e.axis.options.index,yAxis:d.axis.options.index},r:5}]},a.annotationsOptions,a.bindings.circleAnnotation.annotationsOptions))},steps:[function(e,d){var a=d.options.shapes;
-a=a&&a[0]&&a[0].point||{};if(k(a.xAxis)&&k(a.yAxis)){var c=this.chart.inverted;var b=this.chart.xAxis[a.xAxis].toPixels(a.x);a=this.chart.yAxis[a.yAxis].toPixels(a.y);c=Math.max(Math.sqrt(Math.pow(c?a-e.chartX:b-e.chartX,2)+Math.pow(c?b-e.chartY:a-e.chartY,2)),5)}d.update({shapes:[{r:c}]})}]},ellipseAnnotation:{className:"highcharts-ellipse-annotation",start:function(e){var d=this.chart.pointer.getCoordinates(e);e=m(d.xAxis);d=m(d.yAxis);var a=this.chart.options.navigation;if(e&&d)return this.chart.addAnnotation(n({langKey:"ellipse",
-type:"basicAnnotation",shapes:[{type:"ellipse",xAxis:e.axis.options.index,yAxis:d.axis.options.index,points:[{x:e.value,y:d.value},{x:e.value,y:d.value}],ry:1}]},a.annotationsOptions,a.bindings.ellipseAnnotation.annotationOptions))},steps:[function(e,d){d=d.shapes[0];var a=d.getAbsolutePosition(d.points[1]);d.translatePoint(e.chartX-a.x,e.chartY-a.y,1);d.redraw(!1)},function(e,d){d=d.shapes[0];var a=d.getAbsolutePosition(d.points[0]),c=d.getAbsolutePosition(d.points[1]);e=d.getDistanceFromLine(a,
-c,e.chartX,e.chartY);a=d.getYAxis();e=Math.abs(a.toValue(0)-a.toValue(e));d.setYRadius(e);d.redraw(!1)}]},rectangleAnnotation:{className:"highcharts-rectangle-annotation",start:function(e){e=this.chart.pointer.getCoordinates(e);var d=m(e.xAxis),a=m(e.yAxis);if(d&&a){e=d.value;var c=a.value;d=d.axis.options.index;a=a.axis.options.index;var b=this.chart.options.navigation;return this.chart.addAnnotation(n({langKey:"rectangle",type:"basicAnnotation",shapes:[{type:"path",points:[{xAxis:d,yAxis:a,x:e,
-y:c},{xAxis:d,yAxis:a,x:e,y:c},{xAxis:d,yAxis:a,x:e,y:c},{xAxis:d,yAxis:a,x:e,y:c},{command:"Z"}]}]},b.annotationsOptions,b.bindings.rectangleAnnotation.annotationsOptions))}},steps:[function(e,d){var a=d.options.shapes;a=a&&a[0]&&a[0].points||[];var c=this.chart.pointer.getCoordinates(e);e=m(c.xAxis);c=m(c.yAxis);e&&c&&(e=e.value,c=c.value,a[1].x=e,a[2].x=e,a[2].y=c,a[3].y=c,d.update({shapes:[{points:a}]}))}]},labelAnnotation:{className:"highcharts-label-annotation",start:function(e){var d=this.chart.pointer.getCoordinates(e);
-e=m(d.xAxis);d=m(d.yAxis);var a=this.chart.options.navigation;if(e&&d)return this.chart.addAnnotation(n({langKey:"label",type:"basicAnnotation",labelOptions:{format:"{y:.2f}"},labels:[{point:{xAxis:e.axis.options.index,yAxis:d.axis.options.index,x:e.value,y:d.value},overflow:"none",crop:!0}]},a.annotationsOptions,a.bindings.labelAnnotation.annotationsOptions))}}},events:{},annotationsOptions:{animation:{defer:0}}}}});r(e,"Extensions/Annotations/NavigationBindings.js",[e["Core/Chart/ChartNavigationComposition.js"],
-e["Core/Defaults.js"],e["Core/FormatUtilities.js"],e["Core/Globals.js"],e["Extensions/Annotations/NavigationBindingsDefaults.js"],e["Extensions/Annotations/NavigationBindingsUtilities.js"],e["Core/Utilities.js"]],function(e,l,m,k,n,f,d){function a(a,b){var c=v.Element.prototype,d=c.matches||c.msMatchesSelector||c.webkitMatchesSelector,e=null;if(c.closest)e=c.closest.call(a,b);else{do{if(d.call(a,b))return a;a=a.parentElement||a.parentNode}while(null!==a&&1===a.nodeType)}return e}function c(){this.chart.navigationBindings&&
-this.chart.navigationBindings.deselectAnnotation()}function b(){this.navigationBindings&&this.navigationBindings.destroy()}function g(){var a=this.options;a&&a.navigation&&a.navigation.bindings&&(this.navigationBindings=new J(this,a.navigation),this.navigationBindings.initEvents(),this.navigationBindings.initUpdate())}function h(){var a=this.navigationBindings;if(this&&a){var b=!1;this.series.forEach(function(a){!a.options.isInternal&&a.visible&&(b=!0)});if(this.navigationBindings&&this.navigationBindings.container&&
-this.navigationBindings.container[0]){var c=this.navigationBindings.container[0];A(a.boundClassNames,function(a,d){if(d=c.querySelectorAll("."+d))for(var e=0;e<d.length;e++){var g=d[e],h=g.className;"normal"===a.noDataState?-1!==h.indexOf("highcharts-disabled-btn")&&g.classList.remove("highcharts-disabled-btn"):b?-1!==h.indexOf("highcharts-disabled-btn")&&g.classList.remove("highcharts-disabled-btn"):-1===h.indexOf("highcharts-disabled-btn")&&(g.className+=" highcharts-disabled-btn")}})}}}function q(){this.deselectAnnotation()}
-function y(){this.selectedButtonElement=null}function p(a){var b=a.prototype.defaultOptions.events&&a.prototype.defaultOptions.events.click;K(!0,a.prototype.defaultOptions.events,{click:function(a){var c=this,d=c.chart.navigationBindings,e=d.activeAnnotation;b&&b.call(c,a);e!==c?(d.deselectAnnotation(),d.activeAnnotation=c,c.setControlPointsVisibility(!0),t(d,"showPopup",{annotation:c,formType:"annotation-toolbar",options:d.annotationToFields(c),onSubmit:function(a){if("remove"===a.actionType)d.activeAnnotation=
-!1,d.chart.removeAnnotation(c);else{var b={};d.fieldsToOptions(a.fields,b);d.deselectAnnotation();a=b.typeOptions;"measure"===c.options.type&&(a.crosshairY.enabled=0!==a.crosshairY.strokeWidth,a.crosshairX.enabled=0!==a.crosshairX.strokeWidth);c.update(b)}}})):t(d,"closePopup");a.activeAnnotation=!0}})}var u=l.setOptions,D=m.format,z=k.doc,v=k.win,x=f.getFieldType,w=d.addEvent,F=d.attr,t=d.fireEvent,C=d.isArray,B=d.isFunction,r=d.isNumber,I=d.isObject,K=d.merge,A=d.objectEach,E=d.pick,G=[],J=function(){function d(a,
-b){this.selectedButton=this.boundClassNames=void 0;this.chart=a;this.options=b;this.eventsToUnbind=[];this.container=this.chart.container.getElementsByClassName(this.options.bindingsClassName||"");this.container.length||(this.container=z.getElementsByClassName(this.options.bindingsClassName||""))}d.compose=function(a,e){-1===G.indexOf(a)&&(G.push(a),w(a,"remove",c),p(a),A(a.types,function(a){p(a)}));-1===G.indexOf(e)&&(G.push(e),w(e,"destroy",b),w(e,"load",g),w(e,"render",h));-1===G.indexOf(d)&&(G.push(d),
-w(d,"closePopup",q),w(d,"deselectButton",y));-1===G.indexOf(u)&&(G.push(u),u(n))};d.prototype.initEvents=function(){var a=this,b=a.chart,c=a.container,d=a.options;a.boundClassNames={};A(d.bindings||{},function(b){a.boundClassNames[b.className]=b});[].forEach.call(c,function(b){a.eventsToUnbind.push(w(b,"click",function(c){var d=a.getButtonEvents(b,c);d&&-1===d.button.className.indexOf("highcharts-disabled-btn")&&a.bindingsButtonClick(d.button,d.events,c)}))});A(d.events||{},function(b,c){B(b)&&a.eventsToUnbind.push(w(a,
-c,b,{passive:!1}))});a.eventsToUnbind.push(w(b.container,"click",function(c){!b.cancelClick&&b.isInsidePlot(c.chartX-b.plotLeft,c.chartY-b.plotTop,{visiblePlotOnly:!0})&&a.bindingsChartClick(this,c)}));a.eventsToUnbind.push(w(b.container,k.isTouchDevice?"touchmove":"mousemove",function(b){a.bindingsContainerMouseMove(this,b)},k.isTouchDevice?{passive:!1}:void 0))};d.prototype.initUpdate=function(){var a=this;e.compose(this.chart).navigation.addUpdate(function(b){a.update(b)})};d.prototype.bindingsButtonClick=
-function(a,b,c){var d=this.chart,e=d.renderer.boxWrapper,g=!0;this.selectedButtonElement&&(this.selectedButtonElement.classList===a.classList&&(g=!1),t(this,"deselectButton",{button:this.selectedButtonElement}),this.nextEvent&&(this.currentUserDetails&&"annotations"===this.currentUserDetails.coll&&d.removeAnnotation(this.currentUserDetails),this.mouseMoveEvent=this.nextEvent=!1));g?(this.selectedButton=b,this.selectedButtonElement=a,t(this,"selectButton",{button:a}),b.init&&b.init.call(this,a,c),
-(b.start||b.steps)&&d.renderer.boxWrapper.addClass("highcharts-draw-mode")):(d.stockTools&&d.stockTools.toggleButtonActiveClass(a),e.removeClass("highcharts-draw-mode"),this.mouseMoveEvent=this.nextEvent=!1,this.selectedButton=null)};d.prototype.bindingsChartClick=function(b,c){b=this.chart;var d=this.activeAnnotation,e=this.selectedButton;b=b.renderer.boxWrapper;d&&(d.cancelClick||c.activeAnnotation||!c.target.parentNode||a(c.target,".highcharts-popup")?d.cancelClick&&setTimeout(function(){d.cancelClick=
-!1},0):t(this,"closePopup"));e&&e.start&&(this.nextEvent?(this.nextEvent(c,this.currentUserDetails),this.steps&&(this.stepIndex++,e.steps[this.stepIndex]?this.mouseMoveEvent=this.nextEvent=e.steps[this.stepIndex]:(t(this,"deselectButton",{button:this.selectedButtonElement}),b.removeClass("highcharts-draw-mode"),e.end&&e.end.call(this,c,this.currentUserDetails),this.mouseMoveEvent=this.nextEvent=!1,this.selectedButton=null))):(this.currentUserDetails=e.start.call(this,c))&&e.steps?(this.stepIndex=
-0,this.steps=!0,this.mouseMoveEvent=this.nextEvent=e.steps[this.stepIndex]):(t(this,"deselectButton",{button:this.selectedButtonElement}),b.removeClass("highcharts-draw-mode"),this.steps=!1,this.selectedButton=null,e.end&&e.end.call(this,c,this.currentUserDetails)))};d.prototype.bindingsContainerMouseMove=function(a,b){this.mouseMoveEvent&&this.mouseMoveEvent(b,this.currentUserDetails)};d.prototype.fieldsToOptions=function(a,b){A(a,function(a,c){var d=parseFloat(a),e=c.split("."),g=e.length-1;!r(d)||
-a.match(/px/g)||c.match(/format/g)||(a=d);if("undefined"!==a){var h=b;e.forEach(function(b,c){var d=E(e[c+1],"");g===c?h[b]=a:(h[b]||(h[b]=d.match(/\d/g)?[]:{}),h=h[b])})}});return b};d.prototype.deselectAnnotation=function(){this.activeAnnotation&&(this.activeAnnotation.setControlPointsVisibility(!1),this.activeAnnotation=!1)};d.prototype.annotationToFields=function(a){function b(c,d,e,h,f){if(e&&c&&-1===q.indexOf(d)&&(0<=(e.indexOf&&e.indexOf(d))||e[d]||!0===e))if(C(c))h[d]=[],c.forEach(function(a,
-c){I(a)?(h[d][c]={},A(a,function(a,e){b(a,e,g[d],h[d][c],d)})):b(a,0,g[d],h[d],d)});else if(I(c)){var p={};C(h)?(h.push(p),p[d]={},p=p[d]):h[d]=p;A(c,function(a,c){b(a,c,0===d?e:g[d],p,d)})}else"format"===d?h[d]=[D(c,a.labels[0].points[0]).toString(),"text"]:C(h)?h.push([c,x(f,c)]):h[d]=[c,x(d,c)]}var c=a.options,e=d.annotationsEditable,g=e.nestedOptions,h=E(c.type,c.shapes&&c.shapes[0]&&c.shapes[0].type,c.labels&&c.labels[0]&&c.labels[0].type,"label"),q=d.annotationsNonEditable[c.langKey]||[],f=
-{langKey:c.langKey,type:h};A(c,function(a,d){"typeOptions"===d?(f[d]={},A(c[d],function(a,c){b(a,c,g,f[d],c)})):b(a,d,e[h],f,d)});return f};d.prototype.getClickedClassNames=function(a,b){var c=b.target;b=[];for(var d;c&&((d=F(c,"class"))&&(b=b.concat(d.split(" ").map(function(a){return[a,c]}))),c=c.parentNode,c!==a););return b};d.prototype.getButtonEvents=function(a,b){var c=this,d;this.getClickedClassNames(a,b).forEach(function(a){c.boundClassNames[a[0]]&&!d&&(d={events:c.boundClassNames[a[0]],button:a[1]})});
-return d};d.prototype.update=function(a){this.options=K(!0,this.options,a);this.removeEvents();this.initEvents()};d.prototype.removeEvents=function(){this.eventsToUnbind.forEach(function(a){return a()})};d.prototype.destroy=function(){this.removeEvents()};d.annotationsEditable={nestedOptions:{labelOptions:["style","format","backgroundColor"],labels:["style"],label:["style"],style:["fontSize","color"],background:["fill","strokeWidth","stroke"],innerBackground:["fill","strokeWidth","stroke"],outerBackground:["fill",
-"strokeWidth","stroke"],shapeOptions:["fill","strokeWidth","stroke"],shapes:["fill","strokeWidth","stroke"],line:["strokeWidth","stroke"],backgroundColors:[!0],connector:["fill","strokeWidth","stroke"],crosshairX:["strokeWidth","stroke"],crosshairY:["strokeWidth","stroke"]},circle:["shapes"],ellipse:["shapes"],verticalLine:[],label:["labelOptions"],measure:["background","crosshairY","crosshairX"],fibonacci:[],tunnel:["background","line","height"],pitchfork:["innerBackground","outerBackground"],rect:["shapes"],
-crookedLine:[],basicAnnotation:["shapes","labelOptions"]};d.annotationsNonEditable={rectangle:["crosshairX","crosshairY","labelOptions"],ellipse:["labelOptions"],circle:["labelOptions"]};return d}();"";return J});r(e,"Extensions/Annotations/Popup/PopupAnnotations.js",[e["Core/Globals.js"],e["Core/Utilities.js"]],function(e,l){function m(b,e,y,p,u,l){var h=this;if(e){var q=this.addInput,x=this.lang,w,F;c(p,function(c,g){w=""!==y?y+"."+g:g;a(c)&&(!d(c)||d(c)&&a(c[0])?(F=x[g]||g,F.match(/\d/g)||u.push([!0,
-F,b]),m.call(h,b,e,w,c,u,!1)):u.push([h,w,"annotation",b,c]))});l&&(g(u,function(a){return a[1].match(/format/g)?-1:1}),n&&u.reverse(),u.forEach(function(a){!0===a[0]?f("span",{className:"highcharts-annotation-title"},void 0,a[2]).appendChild(k.createTextNode(a[1])):(a[4]={value:a[4][0],type:a[4][1]},q.apply(a[0],a.splice(1)))}))}}var k=e.doc,n=e.isFirefox,f=l.createElement,d=l.isArray,a=l.isObject,c=l.objectEach,b=l.pick,g=l.stableSort;return{addForm:function(a,b,c,d){if(a){var e=this.container,
-g=this.lang,h=f("h2",{className:"highcharts-popup-main-title"},void 0,e);h.appendChild(k.createTextNode(g[b.langKey]||b.langKey||""));h=f("div",{className:"highcharts-popup-lhs-col highcharts-popup-lhs-full"},void 0,e);var q=f("div",{className:"highcharts-popup-bottom-row"},void 0,e);m.call(this,h,a,"",b,[],!0);this.addButton(q,d?g.addButton||"Add":g.saveButton||"Save",d?"add":"save",e,c)}},addToolbar:function(a,c,d){var e=this,g=this.lang,h=this.container,q=this.showForm;-1===h.className.indexOf("highcharts-annotation-toolbar")&&
-(h.className+=" highcharts-annotation-toolbar");a&&(h.style.top=a.plotTop+10+"px");f("span",void 0,void 0,h).appendChild(k.createTextNode(b(g[c.langKey]||c.langKey,c.shapes&&c.shapes[0].type,"")));var v=this.addButton(h,g.removeButton||"Remove","remove",h,d);v.className+=" highcharts-annotation-remove-button";v.style["background-image"]="url("+this.iconsURL+"destroy.svg)";v=this.addButton(h,g.editButton||"Edit","edit",h,function(){q.call(e,"annotation-edit",a,c,d)});v.className+=" highcharts-annotation-edit-button";
-v.style["background-image"]="url("+this.iconsURL+"edit.svg)"}}});r(e,"Extensions/Annotations/Popup/PopupIndicators.js",[e["Core/Renderer/HTML/AST.js"],e["Core/Globals.js"],e["Extensions/Annotations/NavigationBindingsUtilities.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(e,l,m,k,n){function f(a){var b=v("div",{className:"highcharts-popup-lhs-col"},void 0,a);a=v("div",{className:"highcharts-popup-rhs-col"},void 0,a);v("div",{className:"highcharts-popup-rhs-col-wrapper"},
-void 0,a);return{lhsCol:b,rhsCol:a}}function d(b,c,d,g){var f=this,x=f.lang,E=c.querySelectorAll(".highcharts-popup-lhs-col")[0];c=c.querySelectorAll(".highcharts-popup-rhs-col")[0];var k="edit"===d;d=k?b.series:b.options.plotOptions||{};if(b||!d){var m,l=[];k||w(d)?w(d)&&(l=q.call(this,d)):l=h.call(this,d,g);C(l,function(a,b){a=a.indicatorFullName.toLowerCase();b=b.indicatorFullName.toLowerCase();return a<b?-1:a>b?1:0});E.children[1]&&E.children[1].remove();var A=v("ul",{className:"highcharts-indicator-list"},
-void 0,E),t=c.querySelectorAll(".highcharts-popup-rhs-col-wrapper")[0];l.forEach(function(c){var d=c.indicatorFullName,g=c.indicatorType,h=c.series;m=v("li",{className:"highcharts-indicator-list"},void 0,A);m.appendChild(u.createTextNode(d));["click","touchstart"].forEach(function(c){z(m,c,function(){var c=t.parentNode.children[1],d=h.params||h.options.params;t.innerHTML=e.emptyHTML;v("h3",{className:"highcharts-indicator-title"},void 0,t).appendChild(u.createTextNode(y(h,g).indicatorFullName));v("input",
-{type:"hidden",name:"highcharts-type-"+g,value:g},void 0,t);p.call(f,g,"series",b,t,h,h.linkedParent&&h.linkedParent.options.id);d.volumeSeriesID&&p.call(f,g,"volume",b,t,h,h.linkedParent&&d.volumeSeriesID);a.call(f,b,"params",d,g,t);c&&(c.style.display="block");k&&h.options&&v("input",{type:"hidden",name:"highcharts-id-"+g,value:h.options.id},void 0,t).setAttribute("highcharts-data-series-id",h.options.id)})})});0<A.childNodes.length?A.childNodes[0].click():k||(e.setElementHTML(t.parentNode.children[0],
-x.noFilterMatch||""),t.parentNode.children[1].style.display="none")}}function a(c,d,e,h,f){var q=this;if(c){var p=this.addInput;t(e,function(e,E){var k=d+"."+E;x(e)&&k&&(F(e)&&(p.call(q,k,h,f,{}),a.call(q,c,k,e,h,f)),k in r?(k=b.call(q,h,k,f),g.call(q,c,d,k,h,E,e)):"params.volumeSeriesID"===k||w(e)||p.call(q,k,h,f,{value:e,type:"number"}))})}}function c(a,b){var c=this,e=b.querySelectorAll(".highcharts-popup-lhs-col")[0];b=this.lang.clearFilter;e=v("div",{className:"highcharts-input-wrapper"},void 0,
-e);var g=this.addInput("searchIndicators","input",e,{value:"",type:"text",htmlFor:"search-indicators",labelClassName:"highcharts-input-search-indicators-label"}),h=v("a",{textContent:b},void 0,e);g.classList.add("highcharts-input-search-indicators");h.classList.add("clear-filter-button");z(g,"input",function(b){d.call(c,a,c.container,"add",this.value);h.style.display=this.value.length?"inline-block":"none"});["click","touchstart"].forEach(function(b){z(h,b,function(){g.value="";d.call(c,a,c.container,
-"add","");h.style.display="none"})})}function b(a,b,c){var d=b.split(".");d=d[d.length-1];a="highcharts-"+b+"-type-"+a;var e=this.lang;v("label",{htmlFor:a},null,c).appendChild(u.createTextNode(e[d]||b));c=v("select",{name:a,className:"highcharts-popup-field",id:"highcharts-select-"+b},null,c);c.setAttribute("id","highcharts-select-"+b);return c}function g(a,b,c,d,e,g,h){"series"===b||"volume"===b?a.series.forEach(function(a){var d=a.options,e=d.name||d.params?a.name:d.id||"";"highcharts-navigator-series"!==
-d.id&&d.id!==(h&&h.options&&h.options.id)&&(x(g)||"volume"!==b||"column"!==a.type||(g=d.id),v("option",{value:d.id},void 0,c).appendChild(u.createTextNode(e)))}):d&&e&&H[e+"-"+d].forEach(function(a){v("option",{value:a},void 0,c).appendChild(u.createTextNode(a))});x(g)&&(c.value=g)}function h(a,b){var c=this.chart&&this.chart.options.lang,d=c&&c.navigation&&c.navigation.popup&&c.navigation.popup.indicatorAliases,e=[],g;t(a,function(a,c){var h=a&&a.options;if(a.params||h&&h.params)if(h=y(a,c),c=h.indicatorFullName,
-h=h.indicatorType,b){var f=b.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");f=new RegExp(f,"i");var q=d&&d[h]&&d[h].join(" ")||"";if(c.match(f)||q.match(f))g={indicatorFullName:c,indicatorType:h,series:a},e.push(g)}else g={indicatorFullName:c,indicatorType:h,series:a},e.push(g)});return e}function q(a){var b=[];a.forEach(function(a){a.is("sma")&&b.push({indicatorFullName:a.name,indicatorType:a.type,series:a})});return b}function y(a,b){var c=a.options,d=D[b]&&D[b].prototype.nameBase||b.toUpperCase();c&&c.type&&
-(b=a.options.type,d=a.name);return{indicatorFullName:d,indicatorType:b}}function p(a,c,d,e,h,f){d&&(a=b.call(this,a,c,e),g.call(this,d,c,a,void 0,void 0,void 0,h),x(f)&&(a.value=f))}var u=l.doc,D=k.seriesTypes,z=n.addEvent,v=n.createElement,x=n.defined,w=n.isArray,F=n.isObject,t=n.objectEach,C=n.stableSort,r;(function(a){a[a["params.algorithm"]=0]="params.algorithm";a[a["params.average"]=1]="params.average"})(r||(r={}));var H={"algorithm-pivotpoints":["standard","fibonacci","camarilla"],"average-disparityindex":["sma",
-"ema","dema","tema","wma"]};return{addForm:function(a,b,e){b=this.lang;if(a){this.tabs.init.call(this,a);var g=this.container.querySelectorAll(".highcharts-tab-item-content");f(g[0]);c.call(this,a,g[0]);d.call(this,a,g[0],"add");var h=g[0].querySelectorAll(".highcharts-popup-rhs-col")[0];this.addButton(h,b.addButton||"add","add",h,e);f(g[1]);d.call(this,a,g[1],"edit");h=g[1].querySelectorAll(".highcharts-popup-rhs-col")[0];this.addButton(h,b.saveButton||"save","edit",h,e);this.addButton(h,b.removeButton||
-"remove","remove",h,e)}},getAmount:function(){var a=0;this.series.forEach(function(b){(b.params||b.options.params)&&a++});return a}}});r(e,"Extensions/Annotations/Popup/PopupTabs.js",[e["Core/Globals.js"],e["Core/Utilities.js"]],function(e,l){function m(){return c("div",{className:"highcharts-tab-item-content highcharts-no-mousewheel"},void 0,this.container)}function k(a,e){var b=this.container,g=this.lang,f="highcharts-tab-item";0===e&&(f+=" highcharts-tab-disabled");e=c("span",{className:f},void 0,
-b);e.appendChild(d.createTextNode(g[a+"Button"]||a));e.setAttribute("highcharts-data-tab-type",a);return e}function n(a,c){var b=this.container.querySelectorAll(".highcharts-tab-item-content");a.className+=" highcharts-tab-item-active";b[c].className+=" highcharts-tab-item-show"}function f(b){var c=this;this.container.querySelectorAll(".highcharts-tab-item").forEach(function(d,e){0===b&&"edit"===d.getAttribute("highcharts-data-tab-type")||["click","touchstart"].forEach(function(b){a(d,b,function(){var a=
-c.container,b=a.querySelectorAll(".highcharts-tab-item");a=a.querySelectorAll(".highcharts-tab-item-content");for(var d=0;d<b.length;d++)b[d].classList.remove("highcharts-tab-item-active"),a[d].classList.remove("highcharts-tab-item-show");n.call(c,this,e)})})})}var d=e.doc,a=l.addEvent,c=l.createElement;return{init:function(a){if(a){a=this.indicators.getAmount.call(a);var b=k.call(this,"add");k.call(this,"edit",a);m.call(this);m.call(this);f.call(this,a);n.call(this,b,0)}}}});r(e,"Extensions/Annotations/Popup/Popup.js",
-[e["Core/Renderer/HTML/AST.js"],e["Core/Defaults.js"],e["Core/Globals.js"],e["Extensions/Annotations/Popup/PopupAnnotations.js"],e["Extensions/Annotations/Popup/PopupIndicators.js"],e["Extensions/Annotations/Popup/PopupTabs.js"],e["Core/Utilities.js"]],function(e,l,m,k,n,f,d){function a(a,b){var c=Array.prototype.slice.call(a.querySelectorAll("input")),d=Array.prototype.slice.call(a.querySelectorAll("select")),e=a.querySelectorAll("#highcharts-select-series > option:checked")[0];a=a.querySelectorAll("#highcharts-select-volume > option:checked")[0];
-var g={actionType:b,linkedTo:e&&e.getAttribute("value")||"",fields:{}};c.forEach(function(a){var b=a.getAttribute("highcharts-data-name");a.getAttribute("highcharts-data-series-id")?g.seriesId=a.value:b?g.fields[b]=a.value:g.type=a.value});d.forEach(function(a){var b=a.id;"highcharts-select-series"!==b&&"highcharts-select-volume"!==b&&(b=b.split("highcharts-select-")[1],g.fields[b]=a.value)});a&&(g.fields["params.volumeSeriesID"]=a.getAttribute("value")||"");return g}var c=l.getOptions,b=m.doc,g=
-d.addEvent,h=d.createElement;l=d.extend;var q=d.fireEvent,y=d.pick;d=function(){function d(a,b,d){this.chart=d;this.iconsURL=b;this.lang=c().lang.navigation.popup;this.container=h("div",{className:"highcharts-popup highcharts-no-tooltip"},void 0,a);g(this.container,"mousedown",function(){var a=d&&d.navigationBindings&&d.navigationBindings.activeAnnotation;if(a){a.cancelClick=!0;var b=g(m.doc,"click",function(){setTimeout(function(){a.cancelClick=!1},0);b()})}});this.addCloseBtn()}d.prototype.init=
-function(a,b,c){d.call(this,a,b,c)};d.prototype.addCloseBtn=function(){var a=this,b=this.iconsURL,c=h("div",{className:"highcharts-popup-close"},void 0,this.container);c.style["background-image"]="url("+(b.match(/png|svg|jpeg|jpg|gif/ig)?b:b+"close.svg")+")";["click","touchstart"].forEach(function(b){g(c,b,function(){if(a.chart){var b=a.chart.navigationBindings;q(b,"closePopup");b&&b.selectedButtonElement&&q(b,"deselectButton",{button:b.selectedButtonElement})}else a.closePopup()})})};d.prototype.addInput=
-function(a,c,d,e){var g=a.split(".");g=g[g.length-1];var f=this.lang;c="highcharts-"+c+"-"+y(e.htmlFor,g);g.match(/^\d+$/)||h("label",{htmlFor:c,className:e.labelClassName},void 0,d).appendChild(b.createTextNode(f[g]||g));d=h("input",{name:c,value:e.value,type:e.type,className:"highcharts-popup-field"},void 0,d);d.setAttribute("highcharts-data-name",a);return d};d.prototype.addButton=function(c,d,e,f,q){var k=this,p=h("button",void 0,void 0,c);p.appendChild(b.createTextNode(d));q&&["click","touchstart"].forEach(function(b){g(p,
-b,function(){k.closePopup();return q(a(f,e))})});return p};d.prototype.showPopup=function(){var a=this.container,b=a.querySelectorAll(".highcharts-popup-close")[0];this.formType=void 0;a.innerHTML=e.emptyHTML;0<=a.className.indexOf("highcharts-annotation-toolbar")&&(a.classList.remove("highcharts-annotation-toolbar"),a.removeAttribute("style"));a.appendChild(b);a.style.display="block";a.style.height=""};d.prototype.closePopup=function(){this.container.style.display="none"};d.prototype.showForm=function(a,
-b,c,d){b&&(this.showPopup(),"indicators"===a&&this.indicators.addForm.call(this,b,c,d),"annotation-toolbar"===a&&this.annotations.addToolbar.call(this,b,c,d),"annotation-edit"===a&&this.annotations.addForm.call(this,b,c,d),"flag"===a&&this.annotations.addForm.call(this,b,c,d,!0),this.formType=a,this.container.style.height=this.container.offsetHeight+"px")};return d}();l(d.prototype,{annotations:k,indicators:n,tabs:f});return d});r(e,"Extensions/Annotations/Popup/PopupComposition.js",[e["Extensions/Annotations/Popup/Popup.js"],
-e["Core/Utilities.js"]],function(e,l){function m(){this.popup&&this.popup.closePopup()}function k(a){this.popup||(this.popup=new e(this.chart.container,this.chart.options.navigation.iconsURL||this.chart.options.stockTools&&this.chart.options.stockTools.gui.iconsURL||"https://code.highcharts.com/10.3.3/gfx/stock-icons/",this.chart));this.popup.showForm(a.formType,this.chart,a.options,a.onSubmit)}function n(a,b){this.inClass(b.target,"highcharts-popup")||a.apply(this,Array.prototype.slice.call(arguments,
-1))}var f=l.addEvent,d=l.wrap,a=[];return{compose:function(c,b){-1===a.indexOf(c)&&(a.push(c),f(c,"closePopup",m),f(c,"showPopup",k));-1===a.indexOf(b)&&(a.push(b),d(b.prototype,"onContainerMouseDown",n))}}});r(e,"Extensions/Annotations/Annotation.js",[e["Core/Animation/AnimationUtilities.js"],e["Extensions/Annotations/AnnotationChart.js"],e["Extensions/Annotations/AnnotationDefaults.js"],e["Extensions/Annotations/Controllables/Controllable.js"],e["Extensions/Annotations/Controllables/ControllableRect.js"],
-e["Extensions/Annotations/Controllables/ControllableCircle.js"],e["Extensions/Annotations/Controllables/ControllableEllipse.js"],e["Extensions/Annotations/Controllables/ControllablePath.js"],e["Extensions/Annotations/Controllables/ControllableImage.js"],e["Extensions/Annotations/Controllables/ControllableLabel.js"],e["Extensions/Annotations/ControlPoint.js"],e["Extensions/Annotations/EventEmitter.js"],e["Extensions/Annotations/MockPoint.js"],e["Extensions/Annotations/NavigationBindings.js"],e["Extensions/Annotations/Popup/PopupComposition.js"],
-e["Core/Utilities.js"]],function(e,l,m,k,n,f,d,a,c,b,g,h,q,y,p,u){function r(a){var b=a.graphic;a=a.points.some(function(a){return!1!==a.series.visible&&!1!==a.visible});b&&(a?"hidden"===b.visibility&&b.show():b.hide())}function z(a,b){var c={};["labels","shapes"].forEach(function(d){var e=a[d];e&&(c[d]=b[d]?I(b[d]).map(function(a,b){return B(e[b],a)}):a[d])});return c}var v=this&&this.__extends||function(){var a=function(b,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=
-b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return a(b,c)};return function(b,c){function d(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(d.prototype=c.prototype,new d)}}(),x=e.getDeferredAnimation,w=k.prototype,F=u.destroyObjectProperties,t=u.erase,C=u.fireEvent,B=u.merge,H=u.pick,I=u.splat;e=function(e){function h(a,b){var c=e.call(this)||this;c.annotation=void 0;c.coll="annotations";c.collection=void 0;c.animationConfig=void 0;c.graphic=void 0;c.group=
-void 0;c.labelCollector=void 0;c.labelsGroup=void 0;c.shapesGroup=void 0;c.chart=a;c.points=[];c.controlPoints=[];c.coll="annotations";c.labels=[];c.shapes=[];c.options=B(c.defaultOptions,b);c.userOptions=b;b=z(c.options,b);c.options.labels=b.labels;c.options.shapes=b.shapes;c.init(a,c.options);return c}v(h,e);h.compose=function(c,d,e){l.compose(h,c,d);b.compose(e);a.compose(c,e);y.compose(h,c);p.compose(y,d)};h.prototype.addClipPaths=function(){this.setClipAxes();this.clipXAxis&&this.clipYAxis&&
-this.options.crop&&(this.clipRect=this.chart.renderer.clipRect(this.getClipBox()))};h.prototype.addLabels=function(){var a=this,b=this.options.labels||[];b.forEach(function(c,d){c=a.initLabel(c,d);B(!0,b[d],c.options)})};h.prototype.addShapes=function(){var a=this,b=this.options.shapes||[];b.forEach(function(c,d){c=a.initShape(c,d);B(!0,b[d],c.options)})};h.prototype.destroy=function(){var a=this.chart,b=function(a){a.destroy()};this.labels.forEach(b);this.shapes.forEach(b);this.clipYAxis=this.clipXAxis=
-null;t(a.labelCollectors,this.labelCollector);e.prototype.destroy.call(this);w.destroy.call(this);F(this,a)};h.prototype.destroyItem=function(a){t(this[a.itemType+"s"],a);a.destroy()};h.prototype.getClipBox=function(){if(this.clipXAxis&&this.clipYAxis)return{x:this.clipXAxis.left,y:this.clipYAxis.top,width:this.clipXAxis.width,height:this.clipYAxis.height}};h.prototype.init=function(a,b,c){a=this.chart;b=this.options.animation;this.linkPoints();this.addControlPoints();this.addShapes();this.addLabels();
-this.setLabelCollector();this.animationConfig=x(a,b)};h.prototype.initLabel=function(a,c){a=B(this.options.labelOptions,{controlPointOptions:this.options.controlPointOptions},a);c=new b(this,a,c);c.itemType="label";this.labels.push(c);return c};h.prototype.initShape=function(a,b){a=B(this.options.shapeOptions,{controlPointOptions:this.options.controlPointOptions},a);b=new h.shapesMap[a.type](this,a,b);b.itemType="shape";this.shapes.push(b);return b};h.prototype.redraw=function(a){this.linkPoints();
-this.graphic||this.render();this.clipRect&&this.clipRect.animate(this.getClipBox());this.redrawItems(this.shapes,a);this.redrawItems(this.labels,a);w.redraw.call(this,a)};h.prototype.redrawItem=function(a,b){a.linkPoints();a.shouldBeDrawn()?(a.graphic||this.renderItem(a),a.redraw(H(b,!0)&&a.graphic.placed),a.points.length&&r(a)):this.destroyItem(a)};h.prototype.redrawItems=function(a,b){for(var c=a.length;c--;)this.redrawItem(a[c],b)};h.prototype.remove=function(){return this.chart.removeAnnotation(this)};
-h.prototype.render=function(){var a=this.chart.renderer;this.graphic=a.g("annotation").attr({opacity:0,zIndex:this.options.zIndex,visibility:this.options.visible?"inherit":"hidden"}).add();this.shapesGroup=a.g("annotation-shapes").add(this.graphic);this.options.crop&&this.shapesGroup.clip(this.chart.plotBoxClip);this.labelsGroup=a.g("annotation-labels").attr({translateX:0,translateY:0}).add(this.graphic);this.addClipPaths();this.clipRect&&this.graphic.clip(this.clipRect);this.renderItems(this.shapes);
-this.renderItems(this.labels);this.addEvents();w.render.call(this)};h.prototype.renderItem=function(a){a.render("label"===a.itemType?this.labelsGroup:this.shapesGroup)};h.prototype.renderItems=function(a){for(var b=a.length;b--;)this.renderItem(a[b])};h.prototype.setClipAxes=function(){var a=this.chart.xAxis,b=this.chart.yAxis,c=(this.options.labels||[]).concat(this.options.shapes||[]).reduce(function(c,d){d=d&&(d.point||d.points&&d.points[0]);return[a[d&&d.xAxis]||c[0],b[d&&d.yAxis]||c[1]]},[]);
-this.clipXAxis=c[0];this.clipYAxis=c[1]};h.prototype.setControlPointsVisibility=function(a){var b=function(b){b.setControlPointsVisibility(a)};w.setControlPointsVisibility.call(this,a);this.shapes.forEach(b);this.labels.forEach(b)};h.prototype.setLabelCollector=function(){var a=this;a.labelCollector=function(){return a.labels.reduce(function(a,b){b.options.allowOverlap||a.push(b.graphic);return a},[])};a.chart.labelCollectors.push(a.labelCollector)};h.prototype.setOptions=function(a){this.options=
-B(this.defaultOptions,a)};h.prototype.setVisibility=function(a){var b=this.options,c=this.chart.navigationBindings;a=H(a,!b.visible);this.graphic.attr("visibility",a?"inherit":"hidden");a||(this.setControlPointsVisibility(!1),c.activeAnnotation===this&&c.popup&&"annotation-toolbar"===c.popup.formType&&C(c,"closePopup"));b.visible=a};h.prototype.update=function(a,b){var c=this.chart,d=z(this.userOptions,a),e=c.annotations.indexOf(this);a=B(!0,this.userOptions,a);a.labels=d.labels;a.shapes=d.shapes;
-this.destroy();this.constructor(c,a);c.options.annotations[e]=a;this.isUpdating=!0;H(b,!0)&&c.redraw();C(this,"afterUpdate");this.isUpdating=!1};h.ControlPoint=g;h.MockPoint=q;h.shapesMap={rect:n,circle:f,ellipse:d,path:a,image:c};h.types={};return h}(h);B(!0,e.prototype,k.prototype,B(e.prototype,{nonDOMEvents:["add","afterUpdate","drag","remove"],defaultOptions:m}));"";return e});r(e,"Extensions/Annotations/Types/BasicAnnotation.js",[e["Extensions/Annotations/Annotation.js"],e["Extensions/Annotations/MockPoint.js"],
-e["Core/Utilities.js"]],function(e,l,m){var k=this&&this.__extends||function(){var e=function(d,a){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return e(d,a)};return function(d,a){function c(){this.constructor=d}e(d,a);d.prototype=null===a?Object.create(a):(c.prototype=a.prototype,new c)}}();m=m.merge;var n=function(f){function d(){return null!==f&&f.apply(this,arguments)||this}k(d,f);d.prototype.addControlPoints=
-function(){var a=this.options,c=d.basicControlPoints,b=this.basicType;(a.labels||a.shapes||[]).forEach(function(a){a.controlPoints=c[b]})};d.prototype.init=function(){var a=this.options;a.shapes?(delete a.labelOptions,this.basicType=(a=a.shapes[0].type)&&"path"!==a?a:"rectangle"):(delete a.shapes,this.basicType="label");e.prototype.init.apply(this,arguments)};d.basicControlPoints={label:[{symbol:"triangle-down",positioner:function(a){if(!a.graphic.placed)return{x:0,y:-9E7};a=l.pointToPixels(a.points[0]);
-return{x:a.x-this.graphic.width/2,y:a.y-this.graphic.height/2}},events:{drag:function(a,c){a=this.mouseMoveToTranslation(a);c.translatePoint(a.x,a.y);c.annotation.userOptions.labels[0].point=c.options.point;c.redraw(!1)}}},{symbol:"square",positioner:function(a){return a.graphic.placed?{x:a.graphic.alignAttr.x-this.graphic.width/2,y:a.graphic.alignAttr.y-this.graphic.height/2}:{x:0,y:-9E7}},events:{drag:function(a,c){a=this.mouseMoveToTranslation(a);c.translate(a.x,a.y);c.annotation.userOptions.labels[0].point=
-c.options.point;c.redraw(!1)}}}],rectangle:[{positioner:function(a){a=l.pointToPixels(a.points[2]);return{x:a.x-4,y:a.y-4}},events:{drag:function(a,c){var b=c.annotation,d=this.chart.pointer.getCoordinates(a);a=d.xAxis[0].value;d=d.yAxis[0].value;var e=c.options.points,f=b.userOptions.shapes;e[1].x=a;e[2].x=a;e[2].y=d;e[3].y=d;f&&f[0]&&(f[0].points=c.options.points);b.redraw(!1)}}}],circle:[{positioner:function(a){var c=l.pointToPixels(a.points[0]);a=a.options.r;return{x:c.x+a*Math.cos(Math.PI/4)-
-this.graphic.width/2,y:c.y+a*Math.sin(Math.PI/4)-this.graphic.height/2}},events:{drag:function(a,c){var b=c.annotation;a=this.mouseMoveToTranslation(a);b=b.userOptions.shapes;c.setRadius(Math.max(c.options.r+a.y/Math.sin(Math.PI/4),5));b&&b[0]&&(b[0].r=c.options.r,b[0].point=c.options.point);c.redraw(!1)}}}],ellipse:[{positioner:function(a){a=a.getAbsolutePosition(a.points[0]);return{x:a.x-this.graphic.width/2,y:a.y-this.graphic.height/2}},events:{drag:function(a,c){var b=c.getAbsolutePosition(c.points[0]);
-c.translatePoint(a.chartX-b.x,a.chartY-b.y,0);c.redraw(!1)}}},{positioner:function(a){a=a.getAbsolutePosition(a.points[1]);return{x:a.x-this.graphic.width/2,y:a.y-this.graphic.height/2}},events:{drag:function(a,c){var b=c.getAbsolutePosition(c.points[1]);c.translatePoint(a.chartX-b.x,a.chartY-b.y,1);c.redraw(!1)}}},{positioner:function(a){var c=a.getAbsolutePosition(a.points[0]),b=a.getAbsolutePosition(a.points[1]);a=a.getAttrs(c,b);return{x:a.cx-this.graphic.width/2+a.ry*Math.sin(a.angle*Math.PI/
-180),y:a.cy-this.graphic.height/2-a.ry*Math.cos(a.angle*Math.PI/180)}},events:{drag:function(a,c){var b=c.getAbsolutePosition(c.points[0]),d=c.getAbsolutePosition(c.points[1]);a=c.getDistanceFromLine(b,d,a.chartX,a.chartY);b=c.getYAxis();a=Math.abs(b.toValue(0)-b.toValue(a));c.setYRadius(a);c.redraw(!1)}}}]};return d}(e);n.prototype.defaultOptions=m(e.prototype.defaultOptions,{});return e.types.basicAnnotation=n});r(e,"Extensions/Annotations/Types/CrookedLine.js",[e["Extensions/Annotations/Annotation.js"],
-e["Extensions/Annotations/ControlPoint.js"],e["Extensions/Annotations/MockPoint.js"],e["Core/Utilities.js"]],function(e,l,m,k){var n=this&&this.__extends||function(){var d=function(a,c){d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var b in c)c.hasOwnProperty(b)&&(a[b]=c[b])};return d(a,c)};return function(a,c){function b(){this.constructor=a}d(a,c);a.prototype=null===c?Object.create(c):(b.prototype=c.prototype,new b)}}(),f=k.merge;k=function(d){function a(){return null!==
-d&&d.apply(this,arguments)||this}n(a,d);a.prototype.setClipAxes=function(){this.clipXAxis=this.chart.xAxis[this.options.typeOptions.xAxis];this.clipYAxis=this.chart.yAxis[this.options.typeOptions.yAxis]};a.prototype.getPointsOptions=function(){var a=this.options.typeOptions;return(a.points||[]).map(function(b){b.xAxis=a.xAxis;b.yAxis=a.yAxis;return b})};a.prototype.getControlPointsOptions=function(){return this.getPointsOptions()};a.prototype.addControlPoints=function(){this.getControlPointsOptions().forEach(function(a,
-b){b=new l(this.chart,this,f(this.options.controlPointOptions,a.controlPoint),b);this.controlPoints.push(b);a.controlPoint=b.options},this)};a.prototype.addShapes=function(){var a=this.options.typeOptions,b=this.initShape(f(a.line,{type:"path",points:this.points.map(function(a,b){return function(a){return a.annotation.points[b]}})}),0);a.line=b.options};return a}(e);k.prototype.defaultOptions=f(e.prototype.defaultOptions,{typeOptions:{xAxis:0,yAxis:0,line:{fill:"none"}},controlPointOptions:{positioner:function(d){var a=
-this.graphic;d=m.pointToPixels(d.points[this.index]);return{x:d.x-a.width/2,y:d.y-a.height/2}},events:{drag:function(d,a){a.chart.isInsidePlot(d.chartX-a.chart.plotLeft,d.chartY-a.chart.plotTop,{visiblePlotOnly:!0})&&(d=this.mouseMoveToTranslation(d),a.translatePoint(d.x,d.y,this.index),a.options.typeOptions.points[this.index].x=a.points[this.index].x,a.options.typeOptions.points[this.index].y=a.points[this.index].y,a.redraw(!1))}}}});return e.types.crookedLine=k});r(e,"Extensions/Annotations/Types/ElliottWave.js",
-[e["Extensions/Annotations/Annotation.js"],e["Extensions/Annotations/Types/CrookedLine.js"],e["Core/Utilities.js"]],function(e,l,m){var k=this&&this.__extends||function(){var e=function(d,a){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return e(d,a)};return function(d,a){function c(){this.constructor=d}e(d,a);d.prototype=null===a?Object.create(a):(c.prototype=a.prototype,new c)}}(),n=m.merge;m=
-function(e){function d(){return null!==e&&e.apply(this,arguments)||this}k(d,e);d.prototype.addLabels=function(){var a=this;this.getPointsOptions().forEach(function(c,b){var d=a.initLabel(n(c.label,{text:a.options.typeOptions.labels[b],point:function(a){return a.annotation.points[b]}}),!1);c.label=d.options})};return d}(l);m.prototype.defaultOptions=n(l.prototype.defaultOptions,{typeOptions:{labels:"(0) (A) (B) (C) (D) (E)".split(" "),line:{strokeWidth:1}},labelOptions:{align:"center",allowOverlap:!0,
-crop:!0,overflow:"none",type:"rect",backgroundColor:"none",borderWidth:0,y:-5}});return e.types.elliottWave=m});r(e,"Extensions/Annotations/Types/Tunnel.js",[e["Extensions/Annotations/Annotation.js"],e["Extensions/Annotations/ControlPoint.js"],e["Extensions/Annotations/Types/CrookedLine.js"],e["Extensions/Annotations/MockPoint.js"],e["Core/Utilities.js"]],function(e,l,m,k,n){var f=this&&this.__extends||function(){var a=function(c,b){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,
-b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return a(c,b)};return function(c,b){function d(){this.constructor=c}a(c,b);c.prototype=null===b?Object.create(b):(d.prototype=b.prototype,new d)}}(),d=n.merge;n=function(a){function c(){return null!==a&&a.apply(this,arguments)||this}f(c,a);c.prototype.getPointsOptions=function(){var a=m.prototype.getPointsOptions.call(this);a[2]=this.heightPointOptions(a[1]);a[3]=this.heightPointOptions(a[0]);return a};c.prototype.getControlPointsOptions=
-function(){return this.getPointsOptions().slice(0,2)};c.prototype.heightPointOptions=function(a){a=d(a);a.y+=this.options.typeOptions.height;return a};c.prototype.addControlPoints=function(){m.prototype.addControlPoints.call(this);var a=this.options,c=a.typeOptions;a=new l(this.chart,this,d(a.controlPointOptions,c.heightControlPoint),2);this.controlPoints.push(a);c.heightControlPoint=a.options};c.prototype.addShapes=function(){this.addLine();this.addBackground()};c.prototype.addLine=function(){var a=
-this.initShape(d(this.options.typeOptions.line,{type:"path",points:[this.points[0],this.points[1],function(a){a=k.pointToOptions(a.annotation.points[2]);a.command="M";return a},this.points[3]]}),0);this.options.typeOptions.line=a.options};c.prototype.addBackground=function(){var a=this.initShape(d(this.options.typeOptions.background,{type:"path",points:this.points.slice()}),1);this.options.typeOptions.background=a.options};c.prototype.translateSide=function(a,c,d){d=Number(d);var b=0===d?3:2;this.translatePoint(a,
-c,d);this.translatePoint(a,c,b)};c.prototype.translateHeight=function(a){this.translatePoint(0,a,2);this.translatePoint(0,a,3);this.options.typeOptions.height=this.points[3].y-this.points[0].y;this.userOptions.typeOptions.height=this.options.typeOptions.height};return c}(m);n.prototype.defaultOptions=d(m.prototype.defaultOptions,{typeOptions:{background:{fill:"rgba(130, 170, 255, 0.4)",strokeWidth:0},line:{strokeWidth:1},height:-2,heightControlPoint:{positioner:function(a){var c=k.pointToPixels(a.points[2]);
-a=k.pointToPixels(a.points[3]);var b=(c.x+a.x)/2;return{x:b-this.graphic.width/2,y:(a.y-c.y)/(a.x-c.x)*(b-c.x)+c.y-this.graphic.height/2}},events:{drag:function(a,c){c.chart.isInsidePlot(a.chartX-c.chart.plotLeft,a.chartY-c.chart.plotTop,{visiblePlotOnly:!0})&&(c.translateHeight(this.mouseMoveToTranslation(a).y),c.redraw(!1))}}}},controlPointOptions:{events:{drag:function(a,c){c.chart.isInsidePlot(a.chartX-c.chart.plotLeft,a.chartY-c.chart.plotTop,{visiblePlotOnly:!0})&&(a=this.mouseMoveToTranslation(a),
-c.translateSide(a.x,a.y,!!this.index),c.redraw(!1))}}}});return e.types.tunnel=n});r(e,"Extensions/Annotations/Types/InfinityLine.js",[e["Extensions/Annotations/Annotation.js"],e["Extensions/Annotations/Types/CrookedLine.js"],e["Extensions/Annotations/MockPoint.js"],e["Core/Utilities.js"]],function(e,l,m,k){var n=this&&this.__extends||function(){var d=function(a,c){d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var b in c)c.hasOwnProperty(b)&&
-(a[b]=c[b])};return d(a,c)};return function(a,c){function b(){this.constructor=a}d(a,c);a.prototype=null===c?Object.create(c):(b.prototype=c.prototype,new b)}}(),f=k.merge;k=function(d){function a(){return null!==d&&d.apply(this,arguments)||this}n(a,d);a.edgePoint=function(c,b){return function(d){d=d.annotation;var e=d.options.typeOptions.type,g=d.points;if("horizontalLine"===e||"verticalLine"===e)g=[g[0],new m(d.chart,g[0].target,{x:g[0].x+ +("horizontalLine"===e),y:g[0].y+ +("verticalLine"===e),
-xAxis:g[0].options.xAxis,yAxis:g[0].options.yAxis})];return a.findEdgePoint(g[c],g[b])}};a.findEdgeCoordinate=function(a,b,d,e){var c="x"===d?"y":"x";return(b[d]-a[d])*(e-a[c])/(b[c]-a[c])+a[d]};a.findEdgePoint=function(c,b){var d=c.series.chart,e=c.series.xAxis,f=b.series.yAxis,k=m.pointToPixels(c);b=m.pointToPixels(b);var p=b.x-k.x,l=b.y-k.y,n=e.left,z=n+e.width;e=f.top;f=e+f.height;z=0>p?n:z;var v=0>l?e:f;n={x:0===p?k.x:z,y:0===l?k.y:v};0!==p&&0!==l&&(p=a.findEdgeCoordinate(k,b,"y",z),k=a.findEdgeCoordinate(k,
-b,"x",v),p>=e&&p<=f?(n.x=z,n.y=p):(n.x=k,n.y=v));n.x-=d.plotLeft;n.y-=d.plotTop;c.series.chart.inverted&&(c=n.x,n.x=n.y,n.y=c);return n};a.prototype.addShapes=function(){var c=this.options.typeOptions,b=[this.points[0],a.endEdgePoint];c.type.match(/line/gi)&&(b[0]=a.startEdgePoint);b=this.initShape(f(c.line,{type:"path",points:b}),0);c.line=b.options};a.endEdgePoint=a.edgePoint(0,1);a.startEdgePoint=a.edgePoint(1,0);return a}(l);k.prototype.defaultOptions=f(l.prototype.defaultOptions,{});e.types.infinityLine=
-k;"";return k});r(e,"Extensions/Annotations/Types/TimeCycles.js",[e["Extensions/Annotations/Annotation.js"],e["Extensions/Annotations/Types/CrookedLine.js"],e["Extensions/Annotations/ControlPoint.js"],e["Core/Utilities.js"]],function(e,l,m,k){function n(a,c,d,e){for(var b=[],h=1;h<=c;h++)b.push(["A",a/2,a/2,0,1,1,d+h*a,e]);return b}var f=this&&this.__extends||function(){var a=function(b,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&
-(a[c]=b[c])};return a(b,c)};return function(b,c){function d(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(d.prototype=c.prototype,new d)}}(),d=k.merge,a=k.isNumber,c=k.defined;k=function(b){function e(){return null!==b&&b.apply(this,arguments)||this}f(e,b);e.prototype.init=function(a,d,e){c(d.yAxis)&&d.points.forEach(function(a){a.yAxis=d.yAxis});c(d.xAxis)&&d.points.forEach(function(a){a.xAxis=d.xAxis});b.prototype.init.call(this,a,d,e)};e.prototype.setPath=function(){this.shapes[0].options.d=
-this.getPath()};e.prototype.getPath=function(){return[["M",this.startX,this.y]].concat(n(this.pixelInterval,this.numberOfCircles,this.startX,this.y))};e.prototype.addShapes=function(){var a=this.options.typeOptions;this.setPathProperties();var b=this.initShape(d(a.line,{type:"path",d:this.getPath(),points:this.options.points}),0);a.line=b.options};e.prototype.addControlPoints=function(){var a=this,b=this.options,c=b.typeOptions;b.controlPointOptions.style.cursor=this.chart.inverted?"ns-resize":"ew-resize";
-c.controlPointOptions.forEach(function(c){c=d(b.controlPointOptions,c);c=new m(a.chart,a,c,0);a.controlPoints.push(c)})};e.prototype.setPathProperties=function(){var b=this.options.typeOptions,c=b.points;if(c){var d=c[0],e=this.chart.xAxis[b.xAxis||0],g=this.chart.yAxis[b.yAxis||0];b=d.x;var f=d.y;d=c[1].x;b&&d&&(c=a(f)?g.toPixels(f):g.top+g.height,b=a(b)?e.toPixels(b):e.left,g=a(d)?e.toPixels(d):e.left+30,g=Math.round(Math.max(Math.abs(g-b),2)),d=Math.floor(e.len/g)+2,this.startX=b-(Math.floor((b-
-e.left)/g)+1)*g,this.y=c,this.pixelInterval=g,this.numberOfCircles=d)}};e.prototype.redraw=function(a){this.setPathProperties();this.setPath();b.prototype.redraw.call(this,a)};return e}(l);k.prototype.defaultOptions=d(l.prototype.defaultOptions,{typeOptions:{controlPointOptions:[{positioner:function(a){return{x:a.anchor(a.points[0]).absolutePosition.x-this.graphic.width/2,y:a.y-this.graphic.height}},events:{drag:function(a,c){var b=c.anchor(c.points[0]).absolutePosition;c.translatePoint(a.chartX-
-b.x,0,0);c.redraw(!1)}}},{positioner:function(a){return{x:a.anchor(a.points[1]).absolutePosition.x-this.graphic.width/2,y:a.y-this.graphic.height}},events:{drag:function(a,c){var b=c.anchor(c.points[1]).absolutePosition;c.translatePoint(a.chartX-b.x,0,1);c.redraw(!1)}}}]}});e.types.timeCycles=k;"";return k});r(e,"Extensions/Annotations/Types/Fibonacci.js",[e["Extensions/Annotations/Annotation.js"],e["Extensions/Annotations/MockPoint.js"],e["Extensions/Annotations/Types/Tunnel.js"],e["Core/Utilities.js"]],
-function(e,l,m,k){function n(a,c){return function(){var b=this.annotation;if(!b.startRetracements||!b.endRetracements)return[];var d=this.anchor(b.startRetracements[a]).absolutePosition,e=this.anchor(b.endRetracements[a]).absolutePosition;d=[["M",Math.round(d.x),Math.round(d.y)],["L",Math.round(e.x),Math.round(e.y)]];c&&(e=this.anchor(b.endRetracements[a-1]).absolutePosition,b=this.anchor(b.startRetracements[a-1]).absolutePosition,d.push(["L",Math.round(e.x),Math.round(e.y)],["L",Math.round(b.x),
-Math.round(b.y)]));return d}}var f=this&&this.__extends||function(){var a=function(c,b){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return a(c,b)};return function(c,b){function d(){this.constructor=c}a(c,b);c.prototype=null===b?Object.create(b):(d.prototype=b.prototype,new d)}}(),d=k.merge;k=function(a){function c(){return null!==a&&a.apply(this,arguments)||this}f(c,a);c.prototype.linkPoints=
-function(){a.prototype.linkPoints.call(this);this.linkRetracementsPoints()};c.prototype.linkRetracementsPoints=function(){var a=this,d=this.points,e=d[0].y-d[3].y,f=d[1].y-d[2].y,k=d[0].x,l=d[1].x;c.levels.forEach(function(b,c){var h=d[0].y-e*b;b=d[1].y-f*b;a.startRetracements=a.startRetracements||[];a.endRetracements=a.endRetracements||[];a.linkRetracementPoint(c,k,h,a.startRetracements);a.linkRetracementPoint(c,l,b,a.endRetracements)})};c.prototype.linkRetracementPoint=function(a,c,d,e){var b=e[a],
-h=this.options.typeOptions;b?(b.options.x=c,b.options.y=d,b.refresh()):e[a]=new l(this.chart,this,{x:c,y:d,xAxis:h.xAxis,yAxis:h.yAxis})};c.prototype.addShapes=function(){c.levels.forEach(function(a,c){var b=this.options.typeOptions;a=b.backgroundColors;var d=b.lineColor;b=b.lineColors;this.initShape({type:"path",d:n(c),stroke:b[c]||d},c);0<c&&this.initShape({type:"path",fill:a[c-1],strokeWidth:0,d:n(c,!0)})},this)};c.prototype.addLabels=function(){c.levels.forEach(function(a,c){var b=this.options.typeOptions;
-a=this.initLabel(d(b.labels[c],{point:function(a){return l.pointToOptions(a.annotation.startRetracements[c])},text:a.toString()}));b.labels[c]=a.options},this)};c.levels=[0,.236,.382,.5,.618,.786,1];return c}(m);k.prototype.defaultOptions=d(m.prototype.defaultOptions,{typeOptions:{height:2,backgroundColors:"rgba(130, 170, 255, 0.4);rgba(139, 191, 216, 0.4);rgba(150, 216, 192, 0.4);rgba(156, 229, 161, 0.4);rgba(162, 241, 130, 0.4);rgba(169, 255, 101, 0.4)".split(";"),lineColor:"#999999",lineColors:[],
-labels:[]},labelOptions:{allowOverlap:!0,align:"right",backgroundColor:"none",borderWidth:0,crop:!1,overflow:"none",shape:"rect",style:{color:"grey"},verticalAlign:"middle",y:0}});return e.types.fibonacci=k});r(e,"Extensions/Annotations/Types/FibonacciTimeZones.js",[e["Extensions/Annotations/Annotation.js"],e["Extensions/Annotations/ControlPoint.js"],e["Extensions/Annotations/Types/CrookedLine.js"],e["Extensions/Annotations/Types/InfinityLine.js"],e["Extensions/Annotations/MockPoint.js"],e["Core/Utilities.js"]],
-function(e,l,m,k,n,f){function d(a,c,d){return function(b){var e=b.annotation.chart;b=b.annotation.points;var h=b[0].series.xAxis.toValue(b[0].plotX+(e.inverted?e.plotTop:e.plotLeft)+d*(1<b.length?b[1].plotX-b[0].plotX:0));b=[new n(e,b[0].target,{x:h,y:0,xAxis:b[0].options.xAxis,yAxis:b[0].options.yAxis}),new n(e,b[0].target,{x:h,y:1,xAxis:b[0].options.xAxis,yAxis:b[0].options.yAxis})];return k.findEdgePoint(b[a],b[c])}}var a=this&&this.__extends||function(){var a=function(b,c){a=Object.setPrototypeOf||
-{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return a(b,c)};return function(b,c){function d(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(d.prototype=c.prototype,new d)}}(),c=f.merge;f=function(b){function e(){return null!==b&&b.apply(this,arguments)||this}a(e,b);e.prototype.addShapes=function(){for(var a=1,b=1,e=0;11>e;e++){var g=e?a:0;g=[d(1,0,g),d(0,1,g)];b=a+b;a=b-a;1===e&&(this.secondLineEdgePoints=
-[g[0],g[1]]);this.initShape(c(this.options.typeOptions.line,{type:"path",points:g}),e)}};e.prototype.addControlPoints=function(){var a=this.options,b=a.typeOptions;a=new l(this.chart,this,c(a.controlPointOptions,b.controlPointOptions),0);this.controlPoints.push(a);b.controlPointOptions=a.options};return e}(m);f.prototype.defaultOptions=c(m.prototype.defaultOptions,{typeOptions:{line:{stroke:"rgba(0, 0, 0, 0.75)",strokeWidth:1,fill:void 0},controlPointOptions:{positioner:function(){var a=this.target,
-c=this.graphic,d=a.secondLineEdgePoints,e={annotation:a};var f=d[0](e).y;var k=d[1](e).y;a=this.chart.plotLeft;var l=this.chart.plotTop;d=d[0](e).x;f=(f+k)/2;this.chart.inverted&&(f=[f,d],d=f[0],f=f[1]);return{x:a+d-c.width/2,y:l+f-c.height/2}},events:{drag:function(a,c){c.chart.isInsidePlot(a.chartX-c.chart.plotLeft,a.chartY-c.chart.plotTop,{visiblePlotOnly:!0})&&(a=this.mouseMoveToTranslation(a),c.translatePoint(a.x,0,1),c.redraw(!1))}}}}});e.types.fibonacciTimeZones=f;"";return f});r(e,"Extensions/Annotations/Types/Pitchfork.js",
-[e["Extensions/Annotations/Annotation.js"],e["Extensions/Annotations/Types/InfinityLine.js"],e["Extensions/Annotations/MockPoint.js"],e["Core/Utilities.js"]],function(e,l,m,k){var n=this&&this.__extends||function(){var d=function(a,c){d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var b in c)c.hasOwnProperty(b)&&(a[b]=c[b])};return d(a,c)};return function(a,c){function b(){this.constructor=a}d(a,c);a.prototype=null===c?Object.create(c):(b.prototype=
-c.prototype,new b)}}(),f=k.merge;k=function(d){function a(){return null!==d&&d.apply(this,arguments)||this}n(a,d);a.outerLineEdgePoint=function(c){return function(b){var d=b.annotation,e=d.points;return a.findEdgePoint(e[c],e[0],new m(d.chart,b,d.midPointOptions()))}};a.findEdgePoint=function(a,b,d){b=Math.atan2(d.plotY-b.plotY,d.plotX-b.plotX);return{x:a.plotX+1E7*Math.cos(b),y:a.plotY+1E7*Math.sin(b)}};a.middleLineEdgePoint=function(a){var b=a.annotation;return l.findEdgePoint(b.points[0],new m(b.chart,
-a,b.midPointOptions()))};a.prototype.midPointOptions=function(){var a=this.points;return{x:(a[1].x+a[2].x)/2,y:(a[1].y+a[2].y)/2,xAxis:a[0].series.xAxis,yAxis:a[0].series.yAxis}};a.prototype.addShapes=function(){this.addLines();this.addBackgrounds()};a.prototype.addLines=function(){this.initShape({type:"path",points:[this.points[0],a.middleLineEdgePoint]},0);this.initShape({type:"path",points:[this.points[1],a.topLineEdgePoint]},1);this.initShape({type:"path",points:[this.points[2],a.bottomLineEdgePoint]},
-2)};a.prototype.addBackgrounds=function(){var a=this.shapes,b=this.options.typeOptions,d=this.initShape(f(b.innerBackground,{type:"path",points:[function(a){var b=a.annotation;a=b.points;b=b.midPointOptions();return{x:(a[1].x+b.x)/2,y:(a[1].y+b.y)/2,xAxis:b.xAxis,yAxis:b.yAxis}},a[1].points[1],a[2].points[1],function(a){var b=a.annotation;a=b.points;b=b.midPointOptions();return{x:(b.x+a[2].x)/2,y:(b.y+a[2].y)/2,xAxis:b.xAxis,yAxis:b.yAxis}}]}),3);a=this.initShape(f(b.outerBackground,{type:"path",
-points:[this.points[1],a[1].points[1],a[2].points[1],this.points[2]]}),4);b.innerBackground=d.options;b.outerBackground=a.options};a.topLineEdgePoint=a.outerLineEdgePoint(1);a.bottomLineEdgePoint=a.outerLineEdgePoint(0);return a}(l);k.prototype.defaultOptions=f(l.prototype.defaultOptions,{typeOptions:{innerBackground:{fill:"rgba(130, 170, 255, 0.4)",strokeWidth:0},outerBackground:{fill:"rgba(156, 229, 161, 0.4)",strokeWidth:0}}});return e.types.pitchfork=k});r(e,"Extensions/Annotations/Types/VerticalLine.js",
-[e["Extensions/Annotations/Annotation.js"],e["Extensions/Annotations/MockPoint.js"],e["Core/Utilities.js"]],function(e,l,m){var k=this&&this.__extends||function(){var d=function(a,c){d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var b in c)c.hasOwnProperty(b)&&(a[b]=c[b])};return d(a,c)};return function(a,c){function b(){this.constructor=a}d(a,c);a.prototype=null===c?Object.create(c):(b.prototype=c.prototype,new b)}}(),n=m.merge,f=m.pick;
-m=function(d){function a(){return null!==d&&d.apply(this,arguments)||this}k(a,d);a.connectorFirstPoint=function(a){var b=a.annotation;a=b.chart;var c=a.inverted,d=b.points[0],e=f(d.series.yAxis&&d.series.yAxis.left,0),k=f(d.series.yAxis&&d.series.yAxis.top,0);b=b.options.typeOptions.label.offset;var m=l.pointToPixels(d,!0)[c?"x":"y"];return{x:d.x,xAxis:d.series.xAxis,y:m+b+(c?e-a.plotLeft:k-a.plotTop)}};a.connectorSecondPoint=function(a){var b=a.annotation;a=b.chart;var c=a.inverted,d=b.options.typeOptions;
-b=b.points[0];var e=f(b.series.yAxis&&b.series.yAxis.left,0),k=f(b.series.yAxis&&b.series.yAxis.top,0),m=l.pointToPixels(b,!0)[c?"x":"y"],n=d.yOffset;0>d.label.offset&&(n*=-1);return{x:b.x,xAxis:b.series.xAxis,y:m+n+(c?e-a.plotLeft:k-a.plotTop)}};a.prototype.getPointsOptions=function(){return[this.options.typeOptions.point]};a.prototype.addShapes=function(){var c=this.options.typeOptions,b=this.initShape(n(c.connector,{type:"path",points:[a.connectorFirstPoint,a.connectorSecondPoint]}),0);c.connector=
-b.options};a.prototype.addLabels=function(){var a=this.options.typeOptions,b=a.label,d=0,e=b.offset,f=0>b.offset?"bottom":"top",k="center";this.chart.inverted&&(d=b.offset,e=0,f="middle",k=0>b.offset?"right":"left");b=this.initLabel(n(b,{verticalAlign:f,align:k,x:d,y:e}));a.label=b.options};return a}(e);m.prototype.defaultOptions=n(e.prototype.defaultOptions,{typeOptions:{yOffset:10,label:{offset:-40,point:function(d){return d.annotation.points[0]},allowOverlap:!0,backgroundColor:"none",borderWidth:0,
-crop:!0,overflow:"none",shape:"rect",text:"{y:.2f}"},connector:{strokeWidth:1,markerEnd:"arrow"}}});return e.types.verticalLine=m});r(e,"Extensions/Annotations/Types/Measure.js",[e["Extensions/Annotations/Annotation.js"],e["Extensions/Annotations/ControlPoint.js"],e["Core/Utilities.js"]],function(e,l,m){function k(){var a=this.chart.series,b=f(this.xAxisMin,this.xAxisMax,this.yAxisMin,this.yAxisMax),c=0,d=!1;a.forEach(function(a){a.visible&&"highcharts-navigator-series"!==a.options.id&&a.points.forEach(function(a){!a.isNull&&
-a.x>b.xAxisMin&&a.x<=b.xAxisMax&&a.y>b.yAxisMin&&a.y<=b.yAxisMax&&(c++,d=!0)})});d||(c="");return c}function n(){return"Min: "+this.min+"<br>Max: "+this.max+"<br>Average: "+this.average+"<br>Bins: "+this.bins}function f(a,b,c,d){return{xAxisMin:Math.min(b,a),xAxisMax:Math.max(b,a),yAxisMin:Math.min(d,c),yAxisMax:Math.max(d,c)}}function d(a,b,c){return a.toValue(a.toPixels(b)+c)}function a(){var a=this.chart.series,b=f(this.xAxisMin,this.xAxisMax,this.yAxisMin,this.yAxisMax),c=-Infinity,d=!1;a.forEach(function(a){a.visible&&
-"highcharts-navigator-series"!==a.options.id&&a.points.forEach(function(a){!a.isNull&&a.y>c&&a.x>b.xAxisMin&&a.x<=b.xAxisMax&&a.y>b.yAxisMin&&a.y<=b.yAxisMax&&(c=a.y,d=!0)})});d||(c="");return c}function c(){var a=this.chart.series,b=f(this.xAxisMin,this.xAxisMax,this.yAxisMin,this.yAxisMax),c=Infinity,d=!1;a.forEach(function(a){a.visible&&"highcharts-navigator-series"!==a.options.id&&a.points.forEach(function(a){!a.isNull&&a.y<c&&a.x>b.xAxisMin&&a.x<=b.xAxisMax&&a.y>b.yAxisMin&&a.y<=b.yAxisMax&&
-(c=a.y,d=!0)})});d||(c="");return c}function b(b){var e=this.options.typeOptions,f=this.chart.xAxis[e.xAxis];e=this.chart.yAxis[e.yAxis];var g=this.offsetX,h=this.offsetY;this.xAxisMin=d(f,this.startXMin,g);this.xAxisMax=d(f,this.startXMax,g);this.yAxisMin=d(e,this.startYMin,h);this.yAxisMax=d(e,this.startYMax,h);this.min=c.call(this);this.max=a.call(this);f="";""!==this.max&&""!==this.min&&(f=(this.max+this.min)/2);this.average=f;this.bins=k.call(this);b&&this.resize(0,0)}function g(a,b,c,e,f){var g=
-this.options.typeOptions,h=g.selectType,k=this.chart.xAxis[g.xAxis];g=this.chart.yAxis[g.yAxis];var l=this.startXMin,m=this.startXMax,n=this.startYMin,x=this.startYMax,w=this.offsetX,p=this.offsetY;b&&("x"===h?0===c?this.startXMin=d(k,l,e):this.startXMax=d(k,m,e):"y"===h?0===c?this.startYMin=d(g,n,f):this.startYMax=d(g,x,f):(this.startXMax=d(k,m,e),this.startYMax=d(g,x,f)));a&&(this.startXMin=d(k,l,w),this.startXMax=d(k,m,w),this.startYMin=d(g,n,p),this.startYMax=d(g,x,p),this.offsetY=this.offsetX=
-0)}var h=this&&this.__extends||function(){var a=function(b,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return a(b,c)};return function(b,c){function d(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(d.prototype=c.prototype,new d)}}(),q=m.defined,r=m.extend,p=m.isNumber,u=m.merge,C=m.pick;m=function(a){function c(){return null!==a&&a.apply(this,arguments)||this}h(c,a);c.prototype.init=
-function(a,b,c){e.prototype.init.call(this,a,b,c);this.resizeY=this.resizeX=this.offsetY=this.offsetX=0;a=this.options.typeOptions;var f=this.chart;c=f.inverted;b=f.xAxis[a.xAxis];f=f.yAxis[a.yAxis];var g=a.background,h=c?g.height:g.width;g=c?g.width:g.height;var k=a.selectType,l=c?b.left:f.top;c=c?f.top:b.left;this.startXMin=a.point.x;this.startYMin=a.point.y;p(h)?this.startXMax=this.startXMin+h:this.startXMax=d(b,this.startXMin,parseFloat(h));p(g)?this.startYMax=this.startYMin-g:this.startYMax=
-d(f,this.startYMin,parseFloat(g));"x"===k?(this.startYMin=f.toValue(l),this.startYMax=f.toValue(l+f.len)):"y"===k&&(this.startXMin=b.toValue(c),this.startXMax=b.toValue(c+b.len));this.addValues();this.addShapes()};c.prototype.setClipAxes=function(){this.clipXAxis=this.chart.xAxis[this.options.typeOptions.xAxis];this.clipYAxis=this.chart.yAxis[this.options.typeOptions.yAxis]};c.prototype.pointsOptions=function(){return this.options.points};c.prototype.shapePointsOptions=function(){var a=this.options.typeOptions,
-b=a.xAxis;a=a.yAxis;return[{x:this.xAxisMin,y:this.yAxisMin,xAxis:b,yAxis:a},{x:this.xAxisMax,y:this.yAxisMin,xAxis:b,yAxis:a},{x:this.xAxisMax,y:this.yAxisMax,xAxis:b,yAxis:a},{x:this.xAxisMin,y:this.yAxisMax,xAxis:b,yAxis:a}]};c.prototype.addControlPoints=function(){var a=this.chart.inverted,b=this.options.controlPointOptions,c=this.options.typeOptions.selectType;q(this.userOptions.controlPointOptions&&this.userOptions.controlPointOptions.style.cursor)||("x"===c?b.style.cursor=a?"ns-resize":"ew-resize":
-"y"===c&&(b.style.cursor=a?"ew-resize":"ns-resize"));a=new l(this.chart,this,this.options.controlPointOptions,0);this.controlPoints.push(a);"xy"!==c&&(a=new l(this.chart,this,this.options.controlPointOptions,1),this.controlPoints.push(a))};c.prototype.addValues=function(a){var c=this.options.typeOptions,d=c.label.formatter;b.call(this,a);c.label.enabled&&(0<this.labels.length?this.labels[0].text=d&&d.call(this)||n.call(this):this.initLabel(r({shape:"rect",backgroundColor:"none",color:"black",borderWidth:0,
-dashStyle:"Dash",overflow:"allow",align:"left",y:0,x:0,verticalAlign:"top",crop:!0,xAxis:0,yAxis:0,point:function(a){var b=a.annotation;a=a.options;return{x:b.xAxisMin,y:b.yAxisMin,xAxis:C(c.xAxis,a.xAxis),yAxis:C(c.yAxis,a.yAxis)}},text:d&&d.call(this)||n.call(this)},c.label),void 0))};c.prototype.addShapes=function(){this.addCrosshairs();this.addBackground()};c.prototype.addBackground=function(){"undefined"!==typeof this.shapePointsOptions()[0].x&&this.initShape(r({type:"path",points:this.shapePointsOptions()},
-this.options.typeOptions.background),2)};c.prototype.addCrosshairs=function(){var a=this.chart,b=this.options.typeOptions,c=a.xAxis[b.xAxis],d=a.yAxis[b.yAxis],e=a.inverted;a={point:this.options.typeOptions.point,type:"path"};var f=c.toPixels(this.xAxisMin),g=c.toPixels(this.xAxisMax),h=d.toPixels(this.yAxisMin),k=d.toPixels(this.yAxisMax);d=[];c=[];e&&(e=f,f=h,h=e,e=g,g=k,k=e);b.crosshairX.enabled&&(d=[["M",f,h+(k-h)/2],["L",g,h+(k-h)/2]]);b.crosshairY.enabled&&(c=[["M",f+(g-f)/2,h],["L",f+(g-f)/
-2,k]]);0<this.shapes.length?(this.shapes[0].options.d=d,this.shapes[1].options.d=c):(f=u(a,b.crosshairX),b=u(a,b.crosshairY),this.initShape(r({d:d},f),0),this.initShape(r({d:c},b),1))};c.prototype.onDrag=function(a){var b=this.mouseMoveToTranslation(a),c=this.options.typeOptions.selectType;a="y"===c?0:b.x;b="x"===c?0:b.y;this.translate(a,b);this.offsetX+=a;this.offsetY+=b;this.redraw(!1,!1,!0)};c.prototype.resize=function(a,b,c,d){var e=this.shapes[2];"x"===d?0===c?(e.translatePoint(a,0,0),e.translatePoint(a,
-b,3)):(e.translatePoint(a,0,1),e.translatePoint(a,b,2)):"y"===d?0===c?(e.translatePoint(0,b,0),e.translatePoint(0,b,1)):(e.translatePoint(0,b,2),e.translatePoint(0,b,3)):(e.translatePoint(a,0,1),e.translatePoint(a,b,2),e.translatePoint(0,b,3));g.call(this,!1,!0,c,a,b);this.options.typeOptions.background.height=Math.abs(this.startYMax-this.startYMin);this.options.typeOptions.background.width=Math.abs(this.startXMax-this.startXMin)};c.prototype.redraw=function(a,b,c){this.linkPoints();this.graphic||
-this.render();c&&g.call(this,!0,!1);this.clipRect&&this.clipRect.animate(this.getClipBox());this.addValues(b);this.addCrosshairs();this.redrawItems(this.shapes,a);this.redrawItems(this.labels,a);this.controlPoints.forEach(function(a){return a.redraw()})};c.prototype.translate=function(a,b){this.shapes.forEach(function(c){return c.translate(a,b)});this.options.typeOptions.point.x=this.startXMin;this.options.typeOptions.point.y=this.startYMin};return c}(e);m.prototype.defaultOptions=u(e.prototype.defaultOptions,
-{typeOptions:{selectType:"xy",xAxis:0,yAxis:0,background:{fill:"rgba(130, 170, 255, 0.4)",strokeWidth:0,stroke:void 0},crosshairX:{enabled:!0,zIndex:6,dashStyle:"Dash",markerEnd:"arrow"},crosshairY:{enabled:!0,zIndex:6,dashStyle:"Dash",markerEnd:"arrow"},label:{enabled:!0,style:{fontSize:"11px",color:"#666666"},formatter:void 0}},controlPointOptions:{positioner:function(a){var b=this.index,c=a.chart,d=a.options,e=d.typeOptions,g=e.selectType;d=d.controlPointOptions;var h=c.inverted,k=c.xAxis[e.xAxis];
-c=c.yAxis[e.yAxis];var l=f(a.xAxisMin,a.xAxisMax,a.yAxisMin,a.yAxisMax);e=a.xAxisMax;var m=a.yAxisMax;"x"===g&&(m=(l.yAxisMax+l.yAxisMin)/2,0===b&&(e=a.xAxisMin));"y"===g&&(e=l.xAxisMin+(l.xAxisMax-l.xAxisMin)/2,0===b&&(m=a.yAxisMin));h?(a=c.toPixels(m),b=k.toPixels(e)):(a=k.toPixels(e),b=c.toPixels(m));return{x:a-d.width/2,y:b-d.height/2}},events:{drag:function(a,b){var c=this.mouseMoveToTranslation(a);a=b.options.typeOptions.selectType;var d="y"===a?0:c.x;c="x"===a?0:c.y;b.resize(d,c,this.index,
-a);b.resizeX+=d;b.resizeY+=c;b.redraw(!1,!0)}}}});return e.types.measure=m});r(e,"masters/modules/annotations-advanced.src.js",[e["Core/Globals.js"],e["Extensions/Annotations/Annotation.js"]],function(e,l){e.Annotation=l;l.compose(e.Chart,e.Pointer,e.SVGRenderer)})});
-//# sourceMappingURL=annotations-advanced.js.map

+ 0 - 138
nicegui/elements/lib/highcharts_modules/annotations.js

@@ -1,138 +0,0 @@
-/*
- Highcharts JS v10.3.3 (2023-01-20)
-
- Annotations module
-
- (c) 2009-2021 Torstein Honsi
-
- License: www.highcharts.com/license
-*/
-(function(c){"object"===typeof module&&module.exports?(c["default"]=c,module.exports=c):"function"===typeof define&&define.amd?define("highcharts/modules/annotations",["highcharts"],function(r){c(r);c.Highcharts=r;return c}):c("undefined"!==typeof Highcharts?Highcharts:void 0)})(function(c){function r(c,l,w,m){c.hasOwnProperty(l)||(c[l]=m.apply(null,w),"function"===typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:l,module:c[l]}})))}c=c?c._modules:{};
-r(c,"Extensions/Annotations/AnnotationChart.js",[c["Core/Utilities.js"]],function(c){function l(a,d){a=this.initAnnotation(a);this.options.annotations.push(a.options);C(d,!0)&&(a.redraw(),a.graphic.attr({opacity:1}));return a}function p(){var a=this;a.plotBoxClip=this.renderer.clipRect(this.plotBox);a.controlPointsGroup=a.renderer.g("control-points").attr({zIndex:99}).clip(a.plotBoxClip).add();a.options.annotations.forEach(function(d,g){if(!a.annotations.some(function(a){return a.options===d})){var b=
-a.initAnnotation(d);a.options.annotations[g]=b.options}});a.drawAnnotations();b(a,"redraw",a.drawAnnotations);b(a,"destroy",function(){a.plotBoxClip.destroy();a.controlPointsGroup.destroy()});b(a,"exportData",function(d){var g=(this.options.exporting&&this.options.exporting.csv||{}).columnHeaderFormatter,b=!d.dataRows[1].xValues,e=a.options.lang&&a.options.lang.exportData&&a.options.lang.exportData.annotationHeader,h=function(a){if(g){var d=g(a);if(!1!==d)return d}d=e+" "+a;return b?{columnTitle:d,
-topLevelColumnTitle:d}:d},f=d.dataRows[0].length,C=a.options.exporting&&a.options.exporting.csv&&a.options.exporting.csv.annotations&&a.options.exporting.csv.annotations.itemDelimiter,q=a.options.exporting&&a.options.exporting.csv&&a.options.exporting.csv.annotations&&a.options.exporting.csv.annotations.join;a.annotations.forEach(function(a){a.options.labelOptions&&a.options.labelOptions.includeInDataExport&&a.labels.forEach(function(a){if(a.options.text){var g=a.options.text;a.points.forEach(function(a){var b=
-a.x,e=a.series.xAxis?a.series.xAxis.options.index:-1,h=!1;if(-1===e){a=d.dataRows[0].length;for(var n=Array(a),c=0;c<a;++c)n[c]="";n.push(g);n.xValues=[];n.xValues[e]=b;d.dataRows.push(n);h=!0}h||d.dataRows.forEach(function(a){!h&&a.xValues&&void 0!==e&&b===a.xValues[e]&&(q&&a.length>f?a[a.length-1]+=C+g:a.push(g),h=!0)});if(!h){a=d.dataRows[0].length;n=Array(a);for(c=0;c<a;++c)n[c]="";n[0]=b;n.push(g);n.xValues=[];void 0!==e&&(n.xValues[e]=b);d.dataRows.push(n)}})}})});var c=0;d.dataRows.forEach(function(a){c=
-Math.max(c,a.length)});for(var t=c-d.dataRows[0].length,D=0;D<t;D++){var A=h(D+1);b?(d.dataRows[0].push(A.topLevelColumnTitle),d.dataRows[1].push(A.columnTitle)):d.dataRows[0].push(A)}})}function m(){this.plotBoxClip.attr(this.plotBox);this.annotations.forEach(function(a){a.redraw();a.graphic.animate({opacity:1},a.animationConfig)})}function k(a){var b=this.annotations,h="annotations"===a.coll?a:d(b,function(d){return d.options.id===a});h&&(g(h,"remove"),e(this.options.annotations,h.options),e(b,
-h),h.destroy())}function f(){this.annotations=[];this.options.annotations||(this.options.annotations=[])}function a(a){this.chart.hasDraggedAnnotation||a.apply(this,Array.prototype.slice.call(arguments,1))}var b=c.addEvent,e=c.erase,d=c.find,g=c.fireEvent,C=c.pick,D=c.wrap,A=[],q;(function(d){d.compose=function(d,g,e){-1===A.indexOf(g)&&(A.push(g),b(g,"afterInit",f),g=g.prototype,g.addAnnotation=l,g.callbacks.push(p),g.collectionsWithInit.annotations=[l],g.collectionsWithUpdate.push("annotations"),
-g.drawAnnotations=m,g.removeAnnotation=k,g.initAnnotation=function(a){a=new (d.types[a.type]||d)(this,a);this.annotations.push(a);return a});-1===A.indexOf(e)&&(A.push(e),D(e.prototype,"onContainerMouseDown",a))}})(q||(q={}));return q});r(c,"Extensions/Annotations/AnnotationDefaults.js",[c["Core/Utilities.js"]],function(c){var l=c.defined;return{visible:!0,animation:{},crop:!0,draggable:"xy",labelOptions:{align:"center",allowOverlap:!1,backgroundColor:"rgba(0, 0, 0, 0.75)",borderColor:"#000000",borderRadius:3,
-borderWidth:1,className:"highcharts-no-tooltip",crop:!1,formatter:function(){return l(this.y)?""+this.y:"Annotation label"},includeInDataExport:!0,overflow:"justify",padding:5,shadow:!1,shape:"callout",style:{fontSize:"11px",fontWeight:"normal",color:"contrast"},useHTML:!1,verticalAlign:"bottom",x:0,y:-16},shapeOptions:{stroke:"rgba(0, 0, 0, 0.75)",strokeWidth:1,fill:"rgba(0, 0, 0, 0.75)",r:0,snap:2},controlPointOptions:{events:{},style:{cursor:"pointer",fill:"#ffffff",stroke:"#000000","stroke-width":2},
-height:10,symbol:"circle",visible:!1,width:10},events:{},zIndex:6}});r(c,"Extensions/Annotations/EventEmitter.js",[c["Core/Globals.js"],c["Core/Utilities.js"]],function(c,l){var p=c.doc,m=c.isTouchDevice,k=l.addEvent,f=l.fireEvent,a=l.objectEach,b=l.pick,e=l.removeEvent;return function(){function d(){}d.prototype.addEvents=function(){var d=this,b=function(a){k(a,m?"touchstart":"mousedown",function(a){d.onMouseDown(a)},{passive:!1})};b(this.graphic.element);(d.labels||[]).forEach(function(a){a.options.useHTML&&
-a.graphic.text&&b(a.graphic.text.element)});a(d.options.events,function(a,b){var e=function(e){"click"===b&&d.cancelClick||a.call(d,d.chart.pointer.normalize(e),d.target)};if(-1===(d.nonDOMEvents||[]).indexOf(b))d.graphic.on(b,e);else k(d,b,e,{passive:!1})});if(d.options.draggable&&(k(d,"drag",d.onDrag),!d.graphic.renderer.styledMode)){var e={cursor:{x:"ew-resize",y:"ns-resize",xy:"move"}[d.options.draggable]};d.graphic.css(e);(d.labels||[]).forEach(function(a){a.options.useHTML&&a.graphic.text&&
-a.graphic.text.css(e)})}d.isUpdating||f(d,"add")};d.prototype.destroy=function(){this.removeDocEvents();e(this);this.hcEvents=null};d.prototype.mouseMoveToRadians=function(a,d,b){var e=a.prevChartY-b,g=a.prevChartX-d;b=a.chartY-b;a=a.chartX-d;this.chart.inverted&&(d=g,g=e,e=d,d=a,a=b,b=d);return Math.atan2(b,a)-Math.atan2(e,g)};d.prototype.mouseMoveToScale=function(a,d,b){d=(a.chartX-d||1)/(a.prevChartX-d||1);a=(a.chartY-b||1)/(a.prevChartY-b||1);this.chart.inverted&&(b=a,a=d,d=b);return{x:d,y:a}};
-d.prototype.mouseMoveToTranslation=function(a){var d=a.chartX-a.prevChartX;a=a.chartY-a.prevChartY;if(this.chart.inverted){var b=a;a=d;d=b}return{x:d,y:a}};d.prototype.onDrag=function(a){if(this.chart.isInsidePlot(a.chartX-this.chart.plotLeft,a.chartY-this.chart.plotTop,{visiblePlotOnly:!0})){var d=this.mouseMoveToTranslation(a);"x"===this.options.draggable&&(d.y=0);"y"===this.options.draggable&&(d.x=0);this.points.length?this.translate(d.x,d.y):(this.shapes.forEach(function(a){return a.translate(d.x,
-d.y)}),this.labels.forEach(function(a){return a.translate(d.x,d.y)}));this.redraw(!1)}};d.prototype.onMouseDown=function(a){a.preventDefault&&a.preventDefault();if(2!==a.button){var d=this,e=d.chart.pointer;a=e.normalize(a);var g=a.chartX,c=a.chartY;d.cancelClick=!1;d.chart.hasDraggedAnnotation=!0;d.removeDrag=k(p,m?"touchmove":"mousemove",function(a){d.hasDragged=!0;a=e.normalize(a);a.prevChartX=g;a.prevChartY=c;f(d,"drag",a);g=a.chartX;c=a.chartY},m?{passive:!1}:void 0);d.removeMouseUp=k(p,m?"touchend":
-"mouseup",function(a){var e=b(d.target&&d.target.annotation,d.target);e&&(e.cancelClick=d.hasDragged);d.cancelClick=d.hasDragged;d.hasDragged=!1;d.chart.hasDraggedAnnotation=!1;f(b(e,d),"afterUpdate");d.onMouseUp(a)},m?{passive:!1}:void 0)}};d.prototype.onMouseUp=function(a){var d=this.chart;a=this.target||this;var b=d.options.annotations;d=d.annotations.indexOf(a);this.removeDocEvents();b[d]=a.options};d.prototype.removeDocEvents=function(){this.removeDrag&&(this.removeDrag=this.removeDrag());this.removeMouseUp&&
-(this.removeMouseUp=this.removeMouseUp())};return d}()});r(c,"Extensions/Annotations/ControlPoint.js",[c["Extensions/Annotations/EventEmitter.js"],c["Core/Utilities.js"]],function(c,l){var p=this&&this.__extends||function(){var f=function(a,b){f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,d){a.__proto__=d}||function(a,d){for(var b in d)d.hasOwnProperty(b)&&(a[b]=d[b])};return f(a,b)};return function(a,b){function e(){this.constructor=a}f(a,b);a.prototype=null===b?Object.create(b):
-(e.prototype=b.prototype,new e)}}(),m=l.merge,k=l.pick;c=function(f){function a(a,e,d,g){var b=f.call(this)||this;b.graphic=void 0;b.nonDOMEvents=["drag"];b.chart=a;b.target=e;b.options=d;b.index=k(d.index,g);return b}p(a,f);a.prototype.destroy=function(){f.prototype.destroy.call(this);this.graphic&&(this.graphic=this.graphic.destroy());this.options=this.target=this.chart=null};a.prototype.redraw=function(a){this.graphic[a?"animate":"attr"](this.options.positioner.call(this,this.target))};a.prototype.render=
-function(){var a=this.chart,e=this.options;this.graphic=a.renderer.symbol(e.symbol,0,0,e.width,e.height).add(a.controlPointsGroup).css(e.style);this.setVisibility(e.visible);this.addEvents()};a.prototype.setVisibility=function(a){this.graphic[a?"show":"hide"]();this.options.visible=a};a.prototype.update=function(a){var b=this.chart,d=this.target,g=this.index;a=m(!0,this.options,a);this.destroy();this.constructor(b,d,a,g);this.render(b.controlPointsGroup);this.redraw()};return a}(c);"";return c});
-r(c,"Extensions/Annotations/MockPoint.js",[c["Core/Series/SeriesRegistry.js"],c["Core/Utilities.js"]],function(c,l){var p=c.series.prototype,m=l.defined,k=l.fireEvent;c=function(){function f(a,b,e){this.plotY=this.plotX=void 0;this.mock=!0;this.series={visible:!0,chart:a,getPlotBox:p.getPlotBox};this.target=b||null;this.options=e;this.applyOptions(this.getOptions())}f.fromPoint=function(a){return new f(a.series.chart,null,{x:a.x,y:a.y,xAxis:a.series.xAxis,yAxis:a.series.yAxis})};f.pointToPixels=function(a,
-b){var e=a.series,d=e.chart,g=a.plotX||0,f=a.plotY||0;d.inverted&&(a.mock?(g=a.plotY,f=a.plotX):(g=d.plotWidth-(a.plotY||0),f=d.plotHeight-(a.plotX||0)));e&&!b&&(a=e.getPlotBox(),g+=a.translateX,f+=a.translateY);return{x:g,y:f}};f.pointToOptions=function(a){return{x:a.x,y:a.y,xAxis:a.series.xAxis,yAxis:a.series.yAxis}};f.prototype.applyOptions=function(a){this.command=a.command;this.setAxis(a,"x");this.setAxis(a,"y");this.refresh()};f.prototype.getLabelConfig=function(){return{x:this.x,y:this.y,point:this}};
-f.prototype.getOptions=function(){return this.hasDynamicOptions()?this.options(this.target):this.options};f.prototype.hasDynamicOptions=function(){return"function"===typeof this.options};f.prototype.isInsidePlot=function(){var a=this.plotX,b=this.plotY,e=this.series.xAxis,d=this.series.yAxis,g={x:a,y:b,isInsidePlot:!0,options:{}};e&&(g.isInsidePlot=m(a)&&0<=a&&a<=e.len);d&&(g.isInsidePlot=g.isInsidePlot&&m(b)&&0<=b&&b<=d.len);k(this.series.chart,"afterIsInsidePlot",g);return g.isInsidePlot};f.prototype.refresh=
-function(){var a=this.series,b=a.xAxis;a=a.yAxis;var e=this.getOptions();b?(this.x=e.x,this.plotX=b.toPixels(e.x,!0)):(this.x=void 0,this.plotX=e.x);a?(this.y=e.y,this.plotY=a.toPixels(e.y,!0)):(this.y=null,this.plotY=e.y);this.isInside=this.isInsidePlot()};f.prototype.refreshOptions=function(){var a=this.series,b=a.xAxis;a=a.yAxis;this.x=this.options.x=b?this.options.x=b.toValue(this.plotX,!0):this.plotX;this.y=this.options.y=a?a.toValue(this.plotY,!0):this.plotY};f.prototype.rotate=function(a,b,
-e){if(!this.hasDynamicOptions()){var d=Math.cos(e);e=Math.sin(e);var g=this.plotX-a,f=this.plotY-b;this.plotX=g*d-f*e+a;this.plotY=g*e+f*d+b;this.refreshOptions()}};f.prototype.scale=function(a,b,e,d){if(!this.hasDynamicOptions()){var g=this.plotY*d;this.plotX=(1-e)*a+this.plotX*e;this.plotY=(1-d)*b+g;this.refreshOptions()}};f.prototype.setAxis=function(a,b){b+="Axis";a=a[b];var e=this.series.chart;this.series[b]="object"===typeof a?a:m(a)?e[b][a]||e.get(a):null};f.prototype.toAnchor=function(){var a=
-[this.plotX,this.plotY,0,0];this.series.chart.inverted&&(a[0]=this.plotY,a[1]=this.plotX);return a};f.prototype.translate=function(a,b,e,d){this.hasDynamicOptions()||(this.plotX+=e,this.plotY+=d,this.refreshOptions())};return f}();"";return c});r(c,"Extensions/Annotations/Controllables/Controllable.js",[c["Extensions/Annotations/ControlPoint.js"],c["Extensions/Annotations/MockPoint.js"],c["Core/Tooltip.js"],c["Core/Utilities.js"]],function(c,l,w,m){var k=m.isObject,f=m.isString,a=m.merge,b=m.splat;
-m=function(){function e(a,b,e,f){this.graphic=void 0;this.annotation=a;this.chart=a.chart;this.collection="label"===f?"labels":"shapes";this.options=b;this.points=[];this.controlPoints=[];this.index=e;this.itemType=f;this.init(a,b,e)}e.prototype.addControlPoints=function(){var d=this,b=this.controlPoints,e=this.options.controlPoints||[];e.forEach(function(f,g){f=a(d.options.controlPointOptions,f);f.index||(f.index=g);e[g]=f;b.push(new c(d.chart,d,f))})};e.prototype.anchor=function(d){var b=d.series.getPlotBox(),
-e=d.series.chart,f=d.mock?d.toAnchor():w.prototype.getAnchor.call({chart:d.series.chart},d);f={x:f[0]+(this.options.x||0),y:f[1]+(this.options.y||0),height:f[2]||0,width:f[3]||0};return{relativePosition:f,absolutePosition:a(f,{x:f.x+(d.mock?b.translateX:e.plotLeft),y:f.y+(d.mock?b.translateY:e.plotTop)})}};e.prototype.attr=function(){for(var a=0;a<arguments.length;a++);this.graphic.attr.apply(this.graphic,arguments)};e.prototype.attrsFromOptions=function(a){var d=this.constructor.attrsMap,b={},e=
-this.chart.styledMode,f;for(f in a){var c=d[f];"undefined"===typeof d[f]||e&&-1!==["fill","stroke","stroke-width"].indexOf(c)||(b[c]=a[f])}return b};e.prototype.destroy=function(){this.graphic&&(this.graphic=this.graphic.destroy());this.tracker&&(this.tracker=this.tracker.destroy());this.controlPoints.forEach(function(a){return a.destroy()});this.options=this.controlPoints=this.points=this.chart=null;this.annotation&&(this.annotation=null)};e.prototype.getPointsOptions=function(){var a=this.options;
-return a.points||a.point&&b(a.point)};e.prototype.init=function(a,b,e){this.annotation=a;this.chart=a.chart;this.options=b;this.points=[];this.controlPoints=[];this.index=e;this.linkPoints();this.addControlPoints()};e.prototype.linkPoints=function(){var a=this.getPointsOptions(),b=this.points,e=a&&a.length||0,f;for(f=0;f<e;f++){var c=this.point(a[f],b[f]);if(!c){b.length=0;return}c.mock&&c.refresh();b[f]=c}return b};e.prototype.point=function(a,b){if(a&&a.series)return a;b&&null!==b.series||(k(a)?
-b=new l(this.chart,this,a):f(a)?b=this.chart.get(a)||null:"function"===typeof a&&(b=a.call(b,this),b=b.series?b:new l(this.chart,this,a)));return b};e.prototype.render=function(a){this.controlPoints.forEach(function(a){return a.render()})};e.prototype.redraw=function(a){this.controlPoints.forEach(function(d){return d.redraw(a)})};e.prototype.rotate=function(a,b,e){this.transform("rotate",a,b,e)};e.prototype.scale=function(a,b,e,f){this.transform("scale",a,b,e,f)};e.prototype.setControlPointsVisibility=
-function(a){this.controlPoints.forEach(function(b){b.setVisibility(a)})};e.prototype.shouldBeDrawn=function(){return!!this.points.length};e.prototype.transform=function(a,b,e,f,c){var d=this;if(this.chart.inverted){var h=b;b=e;e=h}this.points.forEach(function(h,g){return d.transformPoint(a,b,e,f,c,g)},this)};e.prototype.transformPoint=function(a,b,e,f,c,q){var d=this.points[q];d.mock||(d=this.points[q]=l.fromPoint(d));d[a](b,e,f,c)};e.prototype.translate=function(a,b){this.transform("translate",null,
-null,a,b)};e.prototype.translatePoint=function(a,b,e){this.transformPoint("translate",null,null,a,b,e)};e.prototype.translateShape=function(a,b,e){var d=this.annotation.chart,f=this.annotation.userOptions,c=d.annotations.indexOf(this.annotation);d=d.options.annotations[c];this.translatePoint(a,b,0);e&&this.translatePoint(a,b,1);d[this.collection][this.index].point=this.options.point;f[this.collection][this.index].point=this.options.point};e.prototype.update=function(b){var d=this.annotation;b=a(!0,
-this.options,b);var e=this.graphic.parentGroup;this.destroy();this.constructor(d,b,this.index,this.itemType);this.render(e);this.redraw()};return e}();"";return m});r(c,"Extensions/Annotations/Controllables/ControllableDefaults.js",[],function(){return{defaultMarkers:{arrow:{tagName:"marker",attributes:{id:"arrow",refY:5,refX:9,markerWidth:10,markerHeight:10},children:[{tagName:"path",attributes:{d:"M 0 0 L 10 5 L 0 10 Z","stroke-width":0}}]},"reverse-arrow":{tagName:"marker",attributes:{id:"reverse-arrow",
-refY:5,refX:1,markerWidth:10,markerHeight:10},children:[{tagName:"path",attributes:{d:"M 0 5 L 10 0 L 10 10 Z","stroke-width":0}}]}}}});r(c,"Extensions/Annotations/Controllables/ControllablePath.js",[c["Extensions/Annotations/Controllables/Controllable.js"],c["Extensions/Annotations/Controllables/ControllableDefaults.js"],c["Core/Globals.js"],c["Core/Utilities.js"]],function(c,l,w,m){function k(a){return function(b){this.attr(a,"url(#"+b+")")}}function f(){this.options.defs=D(e,this.options.defs||
-{})}function a(a,b){var d={attributes:{id:a}},e={stroke:b.color||"none",fill:b.color||"rgba(0, 0, 0, 0.75)"};d.children=b.children&&b.children.map(function(a){return D(e,a)});b=D(!0,{attributes:{markerWidth:20,markerHeight:20,refX:0,refY:0,orient:"auto"}},b,d);b=this.definition(b);b.id=a;return b}var b=this&&this.__extends||function(){var a=function(b,d){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d])};
-return a(b,d)};return function(b,d){function e(){this.constructor=b}a(b,d);b.prototype=null===d?Object.create(d):(e.prototype=d.prototype,new e)}}(),e=l.defaultMarkers,d=m.addEvent,g=m.defined,C=m.extend,D=m.merge,A=m.uniqueKey,q=[],h=k("marker-end"),t=k("marker-start"),F="rgba(192,192,192,"+(w.svg?.0001:.002)+")";return function(e){function c(a,b,d){a=e.call(this,a,b,d,"shape")||this;a.type="path";return a}b(c,e);c.compose=function(b,e){-1===q.indexOf(b)&&(q.push(b),d(b,"afterGetContainer",f));-1===
-q.indexOf(e)&&(q.push(e),e.prototype.addMarker=a)};c.prototype.toD=function(){var a=this.options.d;if(a)return"function"===typeof a?a.call(this):a;a=this.points;var b=a.length,d=[],e=b,f=a[0],c=e&&this.anchor(f).absolutePosition,h=0;if(c)for(d.push(["M",c.x,c.y]);++h<b&&e;)f=a[h],e=f.command||"L",c=this.anchor(f).absolutePosition,"M"===e?d.push([e,c.x,c.y]):"L"===e?d.push([e,c.x,c.y]):"Z"===e&&d.push([e]),e=f.series.visible;return e&&this.graphic?this.chart.renderer.crispLine(d,this.graphic.strokeWidth()):
-null};c.prototype.shouldBeDrawn=function(){return e.prototype.shouldBeDrawn.call(this)||!!this.options.d};c.prototype.render=function(a){var b=this.options,d=this.attrsFromOptions(b);this.graphic=this.annotation.chart.renderer.path([["M",0,0]]).attr(d).add(a);b.className&&this.graphic.addClass(b.className);this.tracker=this.annotation.chart.renderer.path([["M",0,0]]).addClass("highcharts-tracker-line").attr({zIndex:2}).add(a);this.annotation.chart.styledMode||this.tracker.attr({"stroke-linejoin":"round",
-stroke:F,fill:F,"stroke-width":this.graphic.strokeWidth()+2*b.snap});e.prototype.render.call(this);C(this.graphic,{markerStartSetter:t,markerEndSetter:h});this.setMarkers(this)};c.prototype.redraw=function(a){if(this.graphic){var b=this.toD(),d=a?"animate":"attr";b?(this.graphic[d]({d:b}),this.tracker[d]({d:b})):(this.graphic.attr({d:"M 0 -9000000000"}),this.tracker.attr({d:"M 0 -9000000000"}));this.graphic.placed=this.tracker.placed=!!b}e.prototype.redraw.call(this,a)};c.prototype.setMarkers=function(a){var b=
-a.options,d=a.chart,e=d.options.defs,f=b.fill,c=g(f)&&"none"!==f?f:b.stroke;["markerStart","markerEnd"].forEach(function(f){var h=b[f],g;if(h){for(g in e){var n=e[g];if((h===(n.attributes&&n.attributes.id)||h===n.id)&&"marker"===n.tagName){var t=n;break}}t&&(h=a[f]=d.renderer.addMarker((b.id||A())+"-"+h,D(t,{color:c})),a.attr(f,h.getAttribute("id")))}})};c.attrsMap={dashStyle:"dashstyle",strokeWidth:"stroke-width",stroke:"stroke",fill:"fill",zIndex:"zIndex"};return c}(c)});r(c,"Extensions/Annotations/Controllables/ControllableRect.js",
-[c["Extensions/Annotations/Controllables/Controllable.js"],c["Extensions/Annotations/Controllables/ControllablePath.js"],c["Core/Utilities.js"]],function(c,l,w){var m=this&&this.__extends||function(){var f=function(a,b){f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d])};return f(a,b)};return function(a,b){function e(){this.constructor=a}f(a,b);a.prototype=null===b?Object.create(b):(e.prototype=b.prototype,
-new e)}}(),k=w.merge;return function(f){function a(a,e,d){a=f.call(this,a,e,d,"shape")||this;a.type="rect";a.translate=f.prototype.translateShape;return a}m(a,f);a.prototype.render=function(a){var b=this.attrsFromOptions(this.options);this.graphic=this.annotation.chart.renderer.rect(0,-9E9,0,0).attr(b).add(a);f.prototype.render.call(this)};a.prototype.redraw=function(a){if(this.graphic){var b=this.anchor(this.points[0]).absolutePosition;if(b)this.graphic[a?"animate":"attr"]({x:b.x,y:b.y,width:this.options.width,
-height:this.options.height});else this.attr({x:0,y:-9E9});this.graphic.placed=!!b}f.prototype.redraw.call(this,a)};a.attrsMap=k(l.attrsMap,{width:"width",height:"height"});return a}(c)});r(c,"Extensions/Annotations/Controllables/ControllableCircle.js",[c["Extensions/Annotations/Controllables/Controllable.js"],c["Extensions/Annotations/Controllables/ControllablePath.js"],c["Core/Utilities.js"]],function(c,l,w){var m=this&&this.__extends||function(){var f=function(a,b){f=Object.setPrototypeOf||{__proto__:[]}instanceof
-Array&&function(a,b){a.__proto__=b}||function(a,b){for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d])};return f(a,b)};return function(a,b){function e(){this.constructor=a}f(a,b);a.prototype=null===b?Object.create(b):(e.prototype=b.prototype,new e)}}(),k=w.merge;return function(f){function a(a,e,d){a=f.call(this,a,e,d,"shape")||this;a.type="circle";a.translate=f.prototype.translateShape;return a}m(a,f);a.prototype.redraw=function(a){if(this.graphic){var b=this.anchor(this.points[0]).absolutePosition;
-if(b)this.graphic[a?"animate":"attr"]({x:b.x,y:b.y,r:this.options.r});else this.graphic.attr({x:0,y:-9E9});this.graphic.placed=!!b}f.prototype.redraw.call(this,a)};a.prototype.render=function(a){var b=this.attrsFromOptions(this.options);this.graphic=this.annotation.chart.renderer.circle(0,-9E9,0).attr(b).add(a);f.prototype.render.call(this)};a.prototype.setRadius=function(a){this.options.r=a};a.attrsMap=k(l.attrsMap,{r:"r"});return a}(c)});r(c,"Extensions/Annotations/Controllables/ControllableEllipse.js",
-[c["Extensions/Annotations/Controllables/Controllable.js"],c["Extensions/Annotations/Controllables/ControllablePath.js"],c["Core/Utilities.js"]],function(c,l,w){var m=this&&this.__extends||function(){var a=function(b,e){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d])};return a(b,e)};return function(b,e){function d(){this.constructor=b}a(b,e);b.prototype=null===e?Object.create(e):(d.prototype=e.prototype,
-new d)}}(),k=w.merge,f=w.defined;return function(a){function b(b,d,f){b=a.call(this,b,d,f,"shape")||this;b.type="ellipse";return b}m(b,a);b.prototype.init=function(b,d,c){f(d.yAxis)&&d.points.forEach(function(a){a.yAxis=d.yAxis});f(d.xAxis)&&d.points.forEach(function(a){a.xAxis=d.xAxis});a.prototype.init.call(this,b,d,c)};b.prototype.render=function(b){this.graphic=this.annotation.chart.renderer.createElement("ellipse").attr(this.attrsFromOptions(this.options)).add(b);a.prototype.render.call(this)};
-b.prototype.translate=function(b,d){a.prototype.translateShape.call(this,b,d,!0)};b.prototype.getDistanceFromLine=function(a,b,f,c){return Math.abs((b.y-a.y)*f-(b.x-a.x)*c+b.x*a.y-b.y*a.x)/Math.sqrt((b.y-a.y)*(b.y-a.y)+(b.x-a.x)*(b.x-a.x))};b.prototype.getAttrs=function(a,b){var d=a.x,e=a.y,f=b.x,c=b.y;b=(d+f)/2;a=(e+c)/2;var q=Math.sqrt((d-f)*(d-f)/4+(e-c)*(e-c)/4);e=180*Math.atan((c-e)/(f-d))/Math.PI;b<d&&(e+=180);d=this.getRY();return{cx:b,cy:a,rx:q,ry:d,angle:e}};b.prototype.getRY=function(){var a=
-this.getYAxis();return f(a)?Math.abs(a.toPixels(this.options.ry)-a.toPixels(0)):this.options.ry};b.prototype.getYAxis=function(){return this.chart.yAxis[this.options.yAxis]};b.prototype.getAbsolutePosition=function(a){return this.anchor(a).absolutePosition};b.prototype.redraw=function(b){if(this.graphic){var d=this.getAbsolutePosition(this.points[0]),e=this.getAbsolutePosition(this.points[1]);e=this.getAttrs(d,e);if(d)this.graphic[b?"animate":"attr"]({cx:e.cx,cy:e.cy,rx:e.rx,ry:e.ry,rotation:e.angle,
-rotationOriginX:e.cx,rotationOriginY:e.cy});else this.graphic.attr({x:0,y:-9E9});this.graphic.placed=!!d}a.prototype.redraw.call(this,b)};b.prototype.setYRadius=function(a){var b=this.annotation.userOptions.shapes;this.options.ry=a;b&&b[0]&&(b[0].ry=a,b[0].ry=a)};b.attrsMap=k(l.attrsMap,{ry:"ry"});return b}(c)});r(c,"Extensions/Annotations/Controllables/ControllableLabel.js",[c["Extensions/Annotations/Controllables/Controllable.js"],c["Core/FormatUtilities.js"],c["Extensions/Annotations/MockPoint.js"],
-c["Core/Tooltip.js"],c["Core/Utilities.js"]],function(c,l,w,m,k){function f(a,b,e,f,c){var h=c&&c.anchorX;c=c&&c.anchorY;var t=e/2;if(d(h)&&d(c)){var q=[["M",h,c]];var g=b-c;0>g&&(g=-f-g);g<e&&(t=h<a+e/2?g:e-g);c>b+f?q.push(["L",a+t,b+f]):c<b?q.push(["L",a+t,b]):h<a?q.push(["L",a,b+f/2]):h>a+e&&q.push(["L",a+e,b+f/2])}return q||[]}var a=this&&this.__extends||function(){var a=function(b,d){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var d in b)b.hasOwnProperty(d)&&
-(a[d]=b[d])};return a(b,d)};return function(b,d){function e(){this.constructor=b}a(b,d);b.prototype=null===d?Object.create(d):(e.prototype=d.prototype,new e)}}(),b=l.format,e=k.extend,d=k.isNumber,g=k.pick,p=[];return function(d){function c(a,b,e){return d.call(this,a,b,e,"label")||this}a(c,d);c.alignedPosition=function(a,b){var d=a.align,e=a.verticalAlign,f=(b.x||0)+(a.x||0),c=(b.y||0)+(a.y||0),h,g;"right"===d?h=1:"center"===d&&(h=2);h&&(f+=(b.width-(a.width||0))/h);"bottom"===e?g=1:"middle"===e&&
-(g=2);g&&(c+=(b.height-(a.height||0))/g);return{x:Math.round(f),y:Math.round(c)}};c.compose=function(a){-1===p.indexOf(a)&&(p.push(a),a.prototype.symbols.connector=f)};c.justifiedOptions=function(a,b,d,e){var f=d.align,c=d.verticalAlign,h=b.box?0:b.padding||0,g=b.getBBox();b={align:f,verticalAlign:c,x:d.x,y:d.y,width:b.width,height:b.height};d=(e.x||0)-a.plotLeft;e=(e.y||0)-a.plotTop;var t=d+h;0>t&&("right"===f?b.align="left":b.x=(b.x||0)-t);t=d+g.width-h;t>a.plotWidth&&("left"===f?b.align="right":
-b.x=(b.x||0)+a.plotWidth-t);t=e+h;0>t&&("bottom"===c?b.verticalAlign="top":b.y=(b.y||0)-t);t=e+g.height-h;t>a.plotHeight&&("top"===c?b.verticalAlign="bottom":b.y=(b.y||0)+a.plotHeight-t);return b};c.prototype.translatePoint=function(a,b){d.prototype.translatePoint.call(this,a,b,0)};c.prototype.translate=function(a,b){var d=this.annotation.chart,e=this.annotation.userOptions,f=d.annotations.indexOf(this.annotation);f=d.options.annotations[f];d.inverted&&(d=a,a=b,b=d);this.options.x+=a;this.options.y+=
-b;f[this.collection][this.index].x=this.options.x;f[this.collection][this.index].y=this.options.y;e[this.collection][this.index].x=this.options.x;e[this.collection][this.index].y=this.options.y};c.prototype.render=function(a){var b=this.options,e=this.attrsFromOptions(b),f=b.style;this.graphic=this.annotation.chart.renderer.label("",0,-9999,b.shape,null,null,b.useHTML,null,"annotation-label").attr(e).add(a);this.annotation.chart.styledMode||("contrast"===f.color&&(f.color=this.annotation.chart.renderer.getContrast(-1<
-c.shapesWithoutBackground.indexOf(b.shape)?"#FFFFFF":b.backgroundColor)),this.graphic.css(b.style).shadow(b.shadow));b.className&&this.graphic.addClass(b.className);this.graphic.labelrank=b.labelrank;d.prototype.render.call(this)};c.prototype.redraw=function(a){var e=this.options,f=this.text||e.format||e.text,c=this.graphic,g=this.points[0];c?(c.attr({text:f?b(String(f),g.getLabelConfig(),this.annotation.chart):e.formatter.call(g,this)}),e=this.anchor(g),(f=this.position(e))?(c.alignAttr=f,f.anchorX=
-e.absolutePosition.x,f.anchorY=e.absolutePosition.y,c[a?"animate":"attr"](f)):c.attr({x:0,y:-9999}),c.placed=!!f,d.prototype.redraw.call(this,a)):this.redraw(a)};c.prototype.anchor=function(a){var b=d.prototype.anchor.apply(this,arguments),e=this.options.x||0,f=this.options.y||0;b.absolutePosition.x-=e;b.absolutePosition.y-=f;b.relativePosition.x-=e;b.relativePosition.y-=f;return b};c.prototype.position=function(a){var b=this.graphic,d=this.annotation.chart,f=this.points[0],k=this.options,l=a.absolutePosition,
-q=a.relativePosition,p=f.series.visible&&w.prototype.isInsidePlot.call(f);if(b&&p){var u=b.width;a=void 0===u?0:u;u=b.height;var C=void 0===u?0:u;k.distance?u=m.prototype.getPosition.call({chart:d,distance:g(k.distance,16)},a,C,{plotX:q.x,plotY:q.y,negative:f.negative,ttBelow:f.ttBelow,h:q.height||q.width}):k.positioner?u=k.positioner.call(this):(f={x:l.x,y:l.y,width:0,height:0},u=c.alignedPosition(e(k,{width:a,height:C}),f),"justify"===this.options.overflow&&(u=c.alignedPosition(c.justifiedOptions(d,
-b,k,u),f)));k.crop&&(b=u.x-d.plotLeft,k=u.y-d.plotTop,p=d.isInsidePlot(b,k)&&d.isInsidePlot(b+a,k+C))}return p?u:null};c.attrsMap={backgroundColor:"fill",borderColor:"stroke",borderWidth:"stroke-width",zIndex:"zIndex",borderRadius:"r",padding:"padding"};c.shapesWithoutBackground=["connector"];return c}(c)});r(c,"Extensions/Annotations/Controllables/ControllableImage.js",[c["Extensions/Annotations/Controllables/Controllable.js"],c["Extensions/Annotations/Controllables/ControllableLabel.js"]],function(c,
-l){var p=this&&this.__extends||function(){var c=function(k,f){c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var e in b)b.hasOwnProperty(e)&&(a[e]=b[e])};return c(k,f)};return function(k,f){function a(){this.constructor=k}c(k,f);k.prototype=null===f?Object.create(f):(a.prototype=f.prototype,new a)}}();return function(c){function k(f,a,b){f=c.call(this,f,a,b,"shape")||this;f.type="image";f.translate=c.prototype.translateShape;return f}p(k,c);
-k.prototype.render=function(f){var a=this.attrsFromOptions(this.options),b=this.options;this.graphic=this.annotation.chart.renderer.image(b.src,0,-9E9,b.width,b.height).attr(a).add(f);this.graphic.width=b.width;this.graphic.height=b.height;c.prototype.render.call(this)};k.prototype.redraw=function(f){if(this.graphic){var a=this.anchor(this.points[0]);if(a=l.prototype.position.call(this,a))this.graphic[f?"animate":"attr"]({x:a.x,y:a.y});else this.graphic.attr({x:0,y:-9E9});this.graphic.placed=!!a}c.prototype.redraw.call(this,
-f)};k.attrsMap={width:"width",height:"height",zIndex:"zIndex"};return k}(c)});r(c,"Core/Chart/ChartNavigationComposition.js",[],function(){var c;(function(c){c.compose=function(c){c.navigation||(c.navigation=new l(c));return c};var l=function(){function c(c){this.updates=[];this.chart=c}c.prototype.addUpdate=function(c){this.chart.navigation.updates.push(c)};c.prototype.update=function(c,f){var a=this;this.updates.forEach(function(b){b.call(a.chart,c,f)})};return c}();c.Additions=l})(c||(c={}));return c});
-r(c,"Extensions/Annotations/NavigationBindingsUtilities.js",[c["Core/Utilities.js"]],function(c){var l=c.defined,p=c.isNumber,m=c.pick,k={backgroundColor:"string",borderColor:"string",borderRadius:"string",color:"string",fill:"string",fontSize:"string",labels:"string",name:"string",stroke:"string",title:"string"};return{annotationsFieldsTypes:k,getAssignedAxis:function(c){return c.filter(function(a){var b=a.axis.getExtremes(),c=b.min;b=b.max;var d=m(a.axis.minPointOffset,0);return p(c)&&p(b)&&a.value>=
-c-d&&a.value<=b+d&&!a.axis.options.isInternal})[0]},getFieldType:function(c,a){c=k[c];a=typeof a;l(c)&&(a=c);return{string:"text",number:"number","boolean":"checkbox"}[a]}}});r(c,"Extensions/Annotations/NavigationBindingsDefaults.js",[c["Extensions/Annotations/NavigationBindingsUtilities.js"],c["Core/Utilities.js"]],function(c,l){var p=c.getAssignedAxis,m=l.isNumber,k=l.merge;return{lang:{navigation:{popup:{simpleShapes:"Simple shapes",lines:"Lines",circle:"Circle",ellipse:"Ellipse",rectangle:"Rectangle",
-label:"Label",shapeOptions:"Shape options",typeOptions:"Details",fill:"Fill",format:"Text",strokeWidth:"Line width",stroke:"Line color",title:"Title",name:"Name",labelOptions:"Label options",labels:"Labels",backgroundColor:"Background color",backgroundColors:"Background colors",borderColor:"Border color",borderRadius:"Border radius",borderWidth:"Border width",style:"Style",padding:"Padding",fontSize:"Font size",color:"Color",height:"Height",shapes:"Shape options"}}},navigation:{bindingsClassName:"highcharts-bindings-container",
-bindings:{circleAnnotation:{className:"highcharts-circle-annotation",start:function(c){var a=this.chart.pointer.getCoordinates(c);c=p(a.xAxis);a=p(a.yAxis);var b=this.chart.options.navigation;if(c&&a)return this.chart.addAnnotation(k({langKey:"circle",type:"basicAnnotation",shapes:[{type:"circle",point:{x:c.value,y:a.value,xAxis:c.axis.options.index,yAxis:a.axis.options.index},r:5}]},b.annotationsOptions,b.bindings.circleAnnotation.annotationsOptions))},steps:[function(c,a){var b=a.options.shapes;
-b=b&&b[0]&&b[0].point||{};if(m(b.xAxis)&&m(b.yAxis)){var e=this.chart.inverted;var d=this.chart.xAxis[b.xAxis].toPixels(b.x);b=this.chart.yAxis[b.yAxis].toPixels(b.y);e=Math.max(Math.sqrt(Math.pow(e?b-c.chartX:d-c.chartX,2)+Math.pow(e?d-c.chartY:b-c.chartY,2)),5)}a.update({shapes:[{r:e}]})}]},ellipseAnnotation:{className:"highcharts-ellipse-annotation",start:function(c){var a=this.chart.pointer.getCoordinates(c);c=p(a.xAxis);a=p(a.yAxis);var b=this.chart.options.navigation;if(c&&a)return this.chart.addAnnotation(k({langKey:"ellipse",
-type:"basicAnnotation",shapes:[{type:"ellipse",xAxis:c.axis.options.index,yAxis:a.axis.options.index,points:[{x:c.value,y:a.value},{x:c.value,y:a.value}],ry:1}]},b.annotationsOptions,b.bindings.ellipseAnnotation.annotationOptions))},steps:[function(c,a){a=a.shapes[0];var b=a.getAbsolutePosition(a.points[1]);a.translatePoint(c.chartX-b.x,c.chartY-b.y,1);a.redraw(!1)},function(c,a){a=a.shapes[0];var b=a.getAbsolutePosition(a.points[0]),e=a.getAbsolutePosition(a.points[1]);c=a.getDistanceFromLine(b,
-e,c.chartX,c.chartY);b=a.getYAxis();c=Math.abs(b.toValue(0)-b.toValue(c));a.setYRadius(c);a.redraw(!1)}]},rectangleAnnotation:{className:"highcharts-rectangle-annotation",start:function(c){c=this.chart.pointer.getCoordinates(c);var a=p(c.xAxis),b=p(c.yAxis);if(a&&b){c=a.value;var e=b.value;a=a.axis.options.index;b=b.axis.options.index;var d=this.chart.options.navigation;return this.chart.addAnnotation(k({langKey:"rectangle",type:"basicAnnotation",shapes:[{type:"path",points:[{xAxis:a,yAxis:b,x:c,
-y:e},{xAxis:a,yAxis:b,x:c,y:e},{xAxis:a,yAxis:b,x:c,y:e},{xAxis:a,yAxis:b,x:c,y:e},{command:"Z"}]}]},d.annotationsOptions,d.bindings.rectangleAnnotation.annotationsOptions))}},steps:[function(c,a){var b=a.options.shapes;b=b&&b[0]&&b[0].points||[];var e=this.chart.pointer.getCoordinates(c);c=p(e.xAxis);e=p(e.yAxis);c&&e&&(c=c.value,e=e.value,b[1].x=c,b[2].x=c,b[2].y=e,b[3].y=e,a.update({shapes:[{points:b}]}))}]},labelAnnotation:{className:"highcharts-label-annotation",start:function(c){var a=this.chart.pointer.getCoordinates(c);
-c=p(a.xAxis);a=p(a.yAxis);var b=this.chart.options.navigation;if(c&&a)return this.chart.addAnnotation(k({langKey:"label",type:"basicAnnotation",labelOptions:{format:"{y:.2f}"},labels:[{point:{xAxis:c.axis.options.index,yAxis:a.axis.options.index,x:c.value,y:a.value},overflow:"none",crop:!0}]},b.annotationsOptions,b.bindings.labelAnnotation.annotationsOptions))}}},events:{},annotationsOptions:{animation:{defer:0}}}}});r(c,"Extensions/Annotations/NavigationBindings.js",[c["Core/Chart/ChartNavigationComposition.js"],
-c["Core/Defaults.js"],c["Core/FormatUtilities.js"],c["Core/Globals.js"],c["Extensions/Annotations/NavigationBindingsDefaults.js"],c["Extensions/Annotations/NavigationBindingsUtilities.js"],c["Core/Utilities.js"]],function(c,l,w,m,k,f,a){function b(a,b){var c=z.Element.prototype,d=c.matches||c.msMatchesSelector||c.webkitMatchesSelector,e=null;if(c.closest)e=c.closest.call(a,b);else{do{if(d.call(a,b))return a;a=a.parentElement||a.parentNode}while(null!==a&&1===a.nodeType)}return e}function e(){this.chart.navigationBindings&&
-this.chart.navigationBindings.deselectAnnotation()}function d(){this.navigationBindings&&this.navigationBindings.destroy()}function g(){var a=this.options;a&&a.navigation&&a.navigation.bindings&&(this.navigationBindings=new L(this,a.navigation),this.navigationBindings.initEvents(),this.navigationBindings.initUpdate())}function p(){var a=this.navigationBindings;if(this&&a){var b=!1;this.series.forEach(function(a){!a.options.isInternal&&a.visible&&(b=!0)});if(this.navigationBindings&&this.navigationBindings.container&&
-this.navigationBindings.container[0]){var c=this.navigationBindings.container[0];x(a.boundClassNames,function(a,d){if(d=c.querySelectorAll("."+d))for(var e=0;e<d.length;e++){var f=d[e],n=f.className;"normal"===a.noDataState?-1!==n.indexOf("highcharts-disabled-btn")&&f.classList.remove("highcharts-disabled-btn"):b?-1!==n.indexOf("highcharts-disabled-btn")&&f.classList.remove("highcharts-disabled-btn"):-1===n.indexOf("highcharts-disabled-btn")&&(f.className+=" highcharts-disabled-btn")}})}}}function D(){this.deselectAnnotation()}
-function A(){this.selectedButtonElement=null}function q(a){var b=a.prototype.defaultOptions.events&&a.prototype.defaultOptions.events.click;E(!0,a.prototype.defaultOptions.events,{click:function(a){var c=this,d=c.chart.navigationBindings,e=d.activeAnnotation;b&&b.call(c,a);e!==c?(d.deselectAnnotation(),d.activeAnnotation=c,c.setControlPointsVisibility(!0),u(d,"showPopup",{annotation:c,formType:"annotation-toolbar",options:d.annotationToFields(c),onSubmit:function(a){if("remove"===a.actionType)d.activeAnnotation=
-!1,d.chart.removeAnnotation(c);else{var b={};d.fieldsToOptions(a.fields,b);d.deselectAnnotation();a=b.typeOptions;"measure"===c.options.type&&(a.crosshairY.enabled=0!==a.crosshairY.strokeWidth,a.crosshairX.enabled=0!==a.crosshairX.strokeWidth);c.update(b)}}})):u(d,"closePopup");a.activeAnnotation=!0}})}var h=l.setOptions,t=w.format,F=m.doc,z=m.win,G=f.getFieldType,y=a.addEvent,r=a.attr,u=a.fireEvent,H=a.isArray,B=a.isFunction,I=a.isNumber,J=a.isObject,E=a.merge,x=a.objectEach,n=a.pick,v=[],L=function(){function a(a,
-b){this.selectedButton=this.boundClassNames=void 0;this.chart=a;this.options=b;this.eventsToUnbind=[];this.container=this.chart.container.getElementsByClassName(this.options.bindingsClassName||"");this.container.length||(this.container=F.getElementsByClassName(this.options.bindingsClassName||""))}a.compose=function(b,c){-1===v.indexOf(b)&&(v.push(b),y(b,"remove",e),q(b),x(b.types,function(a){q(a)}));-1===v.indexOf(c)&&(v.push(c),y(c,"destroy",d),y(c,"load",g),y(c,"render",p));-1===v.indexOf(a)&&(v.push(a),
-y(a,"closePopup",D),y(a,"deselectButton",A));-1===v.indexOf(h)&&(v.push(h),h(k))};a.prototype.initEvents=function(){var a=this,b=a.chart,c=a.container,d=a.options;a.boundClassNames={};x(d.bindings||{},function(b){a.boundClassNames[b.className]=b});[].forEach.call(c,function(b){a.eventsToUnbind.push(y(b,"click",function(c){var d=a.getButtonEvents(b,c);d&&-1===d.button.className.indexOf("highcharts-disabled-btn")&&a.bindingsButtonClick(d.button,d.events,c)}))});x(d.events||{},function(b,c){B(b)&&a.eventsToUnbind.push(y(a,
-c,b,{passive:!1}))});a.eventsToUnbind.push(y(b.container,"click",function(c){!b.cancelClick&&b.isInsidePlot(c.chartX-b.plotLeft,c.chartY-b.plotTop,{visiblePlotOnly:!0})&&a.bindingsChartClick(this,c)}));a.eventsToUnbind.push(y(b.container,m.isTouchDevice?"touchmove":"mousemove",function(b){a.bindingsContainerMouseMove(this,b)},m.isTouchDevice?{passive:!1}:void 0))};a.prototype.initUpdate=function(){var a=this;c.compose(this.chart).navigation.addUpdate(function(b){a.update(b)})};a.prototype.bindingsButtonClick=
-function(a,b,c){var d=this.chart,e=d.renderer.boxWrapper,f=!0;this.selectedButtonElement&&(this.selectedButtonElement.classList===a.classList&&(f=!1),u(this,"deselectButton",{button:this.selectedButtonElement}),this.nextEvent&&(this.currentUserDetails&&"annotations"===this.currentUserDetails.coll&&d.removeAnnotation(this.currentUserDetails),this.mouseMoveEvent=this.nextEvent=!1));f?(this.selectedButton=b,this.selectedButtonElement=a,u(this,"selectButton",{button:a}),b.init&&b.init.call(this,a,c),
-(b.start||b.steps)&&d.renderer.boxWrapper.addClass("highcharts-draw-mode")):(d.stockTools&&d.stockTools.toggleButtonActiveClass(a),e.removeClass("highcharts-draw-mode"),this.mouseMoveEvent=this.nextEvent=!1,this.selectedButton=null)};a.prototype.bindingsChartClick=function(a,c){a=this.chart;var d=this.activeAnnotation,e=this.selectedButton;a=a.renderer.boxWrapper;d&&(d.cancelClick||c.activeAnnotation||!c.target.parentNode||b(c.target,".highcharts-popup")?d.cancelClick&&setTimeout(function(){d.cancelClick=
-!1},0):u(this,"closePopup"));e&&e.start&&(this.nextEvent?(this.nextEvent(c,this.currentUserDetails),this.steps&&(this.stepIndex++,e.steps[this.stepIndex]?this.mouseMoveEvent=this.nextEvent=e.steps[this.stepIndex]:(u(this,"deselectButton",{button:this.selectedButtonElement}),a.removeClass("highcharts-draw-mode"),e.end&&e.end.call(this,c,this.currentUserDetails),this.mouseMoveEvent=this.nextEvent=!1,this.selectedButton=null))):(this.currentUserDetails=e.start.call(this,c))&&e.steps?(this.stepIndex=
-0,this.steps=!0,this.mouseMoveEvent=this.nextEvent=e.steps[this.stepIndex]):(u(this,"deselectButton",{button:this.selectedButtonElement}),a.removeClass("highcharts-draw-mode"),this.steps=!1,this.selectedButton=null,e.end&&e.end.call(this,c,this.currentUserDetails)))};a.prototype.bindingsContainerMouseMove=function(a,b){this.mouseMoveEvent&&this.mouseMoveEvent(b,this.currentUserDetails)};a.prototype.fieldsToOptions=function(a,b){x(a,function(a,c){var d=parseFloat(a),e=c.split("."),f=e.length-1;!I(d)||
-a.match(/px/g)||c.match(/format/g)||(a=d);if("undefined"!==a){var h=b;e.forEach(function(b,c){var d=n(e[c+1],"");f===c?h[b]=a:(h[b]||(h[b]=d.match(/\d/g)?[]:{}),h=h[b])})}});return b};a.prototype.deselectAnnotation=function(){this.activeAnnotation&&(this.activeAnnotation.setControlPointsVisibility(!1),this.activeAnnotation=!1)};a.prototype.annotationToFields=function(b){function c(a,d,e,n,h){if(e&&a&&-1===g.indexOf(d)&&(0<=(e.indexOf&&e.indexOf(d))||e[d]||!0===e))if(H(a))n[d]=[],a.forEach(function(a,
-b){J(a)?(n[d][b]={},x(a,function(a,e){c(a,e,f[d],n[d][b],d)})):c(a,0,f[d],n[d],d)});else if(J(a)){var v={};H(n)?(n.push(v),v[d]={},v=v[d]):n[d]=v;x(a,function(a,b){c(a,b,0===d?e:f[d],v,d)})}else"format"===d?n[d]=[t(a,b.labels[0].points[0]).toString(),"text"]:H(n)?n.push([a,G(h,a)]):n[d]=[a,G(d,a)]}var d=b.options,e=a.annotationsEditable,f=e.nestedOptions,h=n(d.type,d.shapes&&d.shapes[0]&&d.shapes[0].type,d.labels&&d.labels[0]&&d.labels[0].type,"label"),g=a.annotationsNonEditable[d.langKey]||[],v=
-{langKey:d.langKey,type:h};x(d,function(a,b){"typeOptions"===b?(v[b]={},x(d[b],function(a,d){c(a,d,f,v[b],d)})):c(a,b,e[h],v,b)});return v};a.prototype.getClickedClassNames=function(a,b){var d=b.target;b=[];for(var c;d&&((c=r(d,"class"))&&(b=b.concat(c.split(" ").map(function(a){return[a,d]}))),d=d.parentNode,d!==a););return b};a.prototype.getButtonEvents=function(a,b){var d=this,c;this.getClickedClassNames(a,b).forEach(function(a){d.boundClassNames[a[0]]&&!c&&(c={events:d.boundClassNames[a[0]],button:a[1]})});
-return c};a.prototype.update=function(a){this.options=E(!0,this.options,a);this.removeEvents();this.initEvents()};a.prototype.removeEvents=function(){this.eventsToUnbind.forEach(function(a){return a()})};a.prototype.destroy=function(){this.removeEvents()};a.annotationsEditable={nestedOptions:{labelOptions:["style","format","backgroundColor"],labels:["style"],label:["style"],style:["fontSize","color"],background:["fill","strokeWidth","stroke"],innerBackground:["fill","strokeWidth","stroke"],outerBackground:["fill",
-"strokeWidth","stroke"],shapeOptions:["fill","strokeWidth","stroke"],shapes:["fill","strokeWidth","stroke"],line:["strokeWidth","stroke"],backgroundColors:[!0],connector:["fill","strokeWidth","stroke"],crosshairX:["strokeWidth","stroke"],crosshairY:["strokeWidth","stroke"]},circle:["shapes"],ellipse:["shapes"],verticalLine:[],label:["labelOptions"],measure:["background","crosshairY","crosshairX"],fibonacci:[],tunnel:["background","line","height"],pitchfork:["innerBackground","outerBackground"],rect:["shapes"],
-crookedLine:[],basicAnnotation:["shapes","labelOptions"]};a.annotationsNonEditable={rectangle:["crosshairX","crosshairY","labelOptions"],ellipse:["labelOptions"],circle:["labelOptions"]};return a}();"";return L});r(c,"Extensions/Annotations/Popup/PopupAnnotations.js",[c["Core/Globals.js"],c["Core/Utilities.js"]],function(c,l){function p(d,c,l,q,h,t){var F=this;if(c){var z=this.addInput,G=this.lang,y,C;e(q,function(e,f){y=""!==l?l+"."+f:f;b(e)&&(!a(e)||a(e)&&b(e[0])?(C=G[f]||f,C.match(/\d/g)||h.push([!0,
-C,d]),p.call(F,d,c,y,e,h,!1)):h.push([F,y,"annotation",d,e]))});t&&(g(h,function(a){return a[1].match(/format/g)?-1:1}),k&&h.reverse(),h.forEach(function(a){!0===a[0]?f("span",{className:"highcharts-annotation-title"},void 0,a[2]).appendChild(m.createTextNode(a[1])):(a[4]={value:a[4][0],type:a[4][1]},z.apply(a[0],a.splice(1)))}))}}var m=c.doc,k=c.isFirefox,f=l.createElement,a=l.isArray,b=l.isObject,e=l.objectEach,d=l.pick,g=l.stableSort;return{addForm:function(a,b,d,c){if(a){var e=this.container,
-g=this.lang,k=f("h2",{className:"highcharts-popup-main-title"},void 0,e);k.appendChild(m.createTextNode(g[b.langKey]||b.langKey||""));k=f("div",{className:"highcharts-popup-lhs-col highcharts-popup-lhs-full"},void 0,e);var l=f("div",{className:"highcharts-popup-bottom-row"},void 0,e);p.call(this,k,a,"",b,[],!0);this.addButton(l,c?g.addButton||"Add":g.saveButton||"Save",c?"add":"save",e,d)}},addToolbar:function(a,b,c){var e=this,g=this.lang,k=this.container,l=this.showForm;-1===k.className.indexOf("highcharts-annotation-toolbar")&&
-(k.className+=" highcharts-annotation-toolbar");a&&(k.style.top=a.plotTop+10+"px");f("span",void 0,void 0,k).appendChild(m.createTextNode(d(g[b.langKey]||b.langKey,b.shapes&&b.shapes[0].type,"")));var p=this.addButton(k,g.removeButton||"Remove","remove",k,c);p.className+=" highcharts-annotation-remove-button";p.style["background-image"]="url("+this.iconsURL+"destroy.svg)";p=this.addButton(k,g.editButton||"Edit","edit",k,function(){l.call(e,"annotation-edit",a,b,c)});p.className+=" highcharts-annotation-edit-button";
-p.style["background-image"]="url("+this.iconsURL+"edit.svg)"}}});r(c,"Extensions/Annotations/Popup/PopupIndicators.js",[c["Core/Renderer/HTML/AST.js"],c["Core/Globals.js"],c["Extensions/Annotations/NavigationBindingsUtilities.js"],c["Core/Series/SeriesRegistry.js"],c["Core/Utilities.js"]],function(c,l,r,m,k){function f(a){var b=z("div",{className:"highcharts-popup-lhs-col"},void 0,a);a=z("div",{className:"highcharts-popup-rhs-col"},void 0,a);z("div",{className:"highcharts-popup-rhs-col-wrapper"},
-void 0,a);return{lhsCol:b,rhsCol:a}}function a(a,d,e,f){var n=this,g=n.lang,x=d.querySelectorAll(".highcharts-popup-lhs-col")[0];d=d.querySelectorAll(".highcharts-popup-rhs-col")[0];var k="edit"===e;e=k?a.series:a.options.plotOptions||{};if(a||!e){var l,m=[];k||y(e)?y(e)&&(m=w.call(this,e)):m=p.call(this,e,f);H(m,function(a,b){a=a.indicatorFullName.toLowerCase();b=b.indicatorFullName.toLowerCase();return a<b?-1:a>b?1:0});x.children[1]&&x.children[1].remove();var t=z("ul",{className:"highcharts-indicator-list"},
-void 0,x),E=d.querySelectorAll(".highcharts-popup-rhs-col-wrapper")[0];m.forEach(function(d){var e=d.indicatorFullName,f=d.indicatorType,g=d.series;l=z("li",{className:"highcharts-indicator-list"},void 0,t);l.appendChild(h.createTextNode(e));["click","touchstart"].forEach(function(d){F(l,d,function(){var d=E.parentNode.children[1],e=g.params||g.options.params;E.innerHTML=c.emptyHTML;z("h3",{className:"highcharts-indicator-title"},void 0,E).appendChild(h.createTextNode(A(g,f).indicatorFullName));z("input",
-{type:"hidden",name:"highcharts-type-"+f,value:f},void 0,E);q.call(n,f,"series",a,E,g,g.linkedParent&&g.linkedParent.options.id);e.volumeSeriesID&&q.call(n,f,"volume",a,E,g,g.linkedParent&&e.volumeSeriesID);b.call(n,a,"params",e,f,E);d&&(d.style.display="block");k&&g.options&&z("input",{type:"hidden",name:"highcharts-id-"+f,value:g.options.id},void 0,E).setAttribute("highcharts-data-series-id",g.options.id)})})});0<t.childNodes.length?t.childNodes[0].click():k||(c.setElementHTML(E.parentNode.children[0],
-g.noFilterMatch||""),E.parentNode.children[1].style.display="none")}}function b(a,c,e,f,v){var n=this;if(a){var h=this.addInput;u(e,function(e,k){var x=c+"."+k;G(e)&&x&&(K(e)&&(h.call(n,x,f,v,{}),b.call(n,a,x,e,f,v)),x in B?(x=d.call(n,f,x,v),g.call(n,a,c,x,f,k,e)):"params.volumeSeriesID"===x||y(e)||h.call(n,x,f,v,{value:e,type:"number"}))})}}function e(b,d){var c=this,e=d.querySelectorAll(".highcharts-popup-lhs-col")[0];d=this.lang.clearFilter;e=z("div",{className:"highcharts-input-wrapper"},void 0,
-e);var f=this.addInput("searchIndicators","input",e,{value:"",type:"text",htmlFor:"search-indicators",labelClassName:"highcharts-input-search-indicators-label"}),g=z("a",{textContent:d},void 0,e);f.classList.add("highcharts-input-search-indicators");g.classList.add("clear-filter-button");F(f,"input",function(d){a.call(c,b,c.container,"add",this.value);g.style.display=this.value.length?"inline-block":"none"});["click","touchstart"].forEach(function(d){F(g,d,function(){f.value="";a.call(c,b,c.container,
-"add","");g.style.display="none"})})}function d(a,b,d){var c=b.split(".");c=c[c.length-1];a="highcharts-"+b+"-type-"+a;var e=this.lang;z("label",{htmlFor:a},null,d).appendChild(h.createTextNode(e[c]||b));d=z("select",{name:a,className:"highcharts-popup-field",id:"highcharts-select-"+b},null,d);d.setAttribute("id","highcharts-select-"+b);return d}function g(a,b,d,c,e,f,g){"series"===b||"volume"===b?a.series.forEach(function(a){var c=a.options,e=c.name||c.params?a.name:c.id||"";"highcharts-navigator-series"!==
-c.id&&c.id!==(g&&g.options&&g.options.id)&&(G(f)||"volume"!==b||"column"!==a.type||(f=c.id),z("option",{value:c.id},void 0,d).appendChild(h.createTextNode(e)))}):c&&e&&I[e+"-"+c].forEach(function(a){z("option",{value:a},void 0,d).appendChild(h.createTextNode(a))});G(f)&&(d.value=f)}function p(a,b){var d=this.chart&&this.chart.options.lang,c=d&&d.navigation&&d.navigation.popup&&d.navigation.popup.indicatorAliases,e=[],f;u(a,function(a,d){var n=a&&a.options;if(a.params||n&&n.params)if(n=A(a,d),d=n.indicatorFullName,
-n=n.indicatorType,b){var g=b.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");g=new RegExp(g,"i");var h=c&&c[n]&&c[n].join(" ")||"";if(d.match(g)||h.match(g))f={indicatorFullName:d,indicatorType:n,series:a},e.push(f)}else f={indicatorFullName:d,indicatorType:n,series:a},e.push(f)});return e}function w(a){var b=[];a.forEach(function(a){a.is("sma")&&b.push({indicatorFullName:a.name,indicatorType:a.type,series:a})});return b}function A(a,b){var d=a.options,c=t[b]&&t[b].prototype.nameBase||b.toUpperCase();d&&d.type&&
-(b=a.options.type,c=a.name);return{indicatorFullName:c,indicatorType:b}}function q(a,b,c,e,f,h){c&&(a=d.call(this,a,b,e),g.call(this,c,b,a,void 0,void 0,void 0,f),G(h)&&(a.value=h))}var h=l.doc,t=m.seriesTypes,F=k.addEvent,z=k.createElement,G=k.defined,y=k.isArray,K=k.isObject,u=k.objectEach,H=k.stableSort,B;(function(a){a[a["params.algorithm"]=0]="params.algorithm";a[a["params.average"]=1]="params.average"})(B||(B={}));var I={"algorithm-pivotpoints":["standard","fibonacci","camarilla"],"average-disparityindex":["sma",
-"ema","dema","tema","wma"]};return{addForm:function(b,d,c){d=this.lang;if(b){this.tabs.init.call(this,b);var n=this.container.querySelectorAll(".highcharts-tab-item-content");f(n[0]);e.call(this,b,n[0]);a.call(this,b,n[0],"add");var g=n[0].querySelectorAll(".highcharts-popup-rhs-col")[0];this.addButton(g,d.addButton||"add","add",g,c);f(n[1]);a.call(this,b,n[1],"edit");g=n[1].querySelectorAll(".highcharts-popup-rhs-col")[0];this.addButton(g,d.saveButton||"save","edit",g,c);this.addButton(g,d.removeButton||
-"remove","remove",g,c)}},getAmount:function(){var a=0;this.series.forEach(function(b){(b.params||b.options.params)&&a++});return a}}});r(c,"Extensions/Annotations/Popup/PopupTabs.js",[c["Core/Globals.js"],c["Core/Utilities.js"]],function(c,l){function p(){return e("div",{className:"highcharts-tab-item-content highcharts-no-mousewheel"},void 0,this.container)}function m(b,c){var d=this.container,f=this.lang,g="highcharts-tab-item";0===c&&(g+=" highcharts-tab-disabled");c=e("span",{className:g},void 0,
-d);c.appendChild(a.createTextNode(f[b+"Button"]||b));c.setAttribute("highcharts-data-tab-type",b);return c}function k(a,b){var c=this.container.querySelectorAll(".highcharts-tab-item-content");a.className+=" highcharts-tab-item-active";c[b].className+=" highcharts-tab-item-show"}function f(a){var c=this;this.container.querySelectorAll(".highcharts-tab-item").forEach(function(d,e){0===a&&"edit"===d.getAttribute("highcharts-data-tab-type")||["click","touchstart"].forEach(function(a){b(d,a,function(){var a=
-c.container,b=a.querySelectorAll(".highcharts-tab-item");a=a.querySelectorAll(".highcharts-tab-item-content");for(var d=0;d<b.length;d++)b[d].classList.remove("highcharts-tab-item-active"),a[d].classList.remove("highcharts-tab-item-show");k.call(c,this,e)})})})}var a=c.doc,b=l.addEvent,e=l.createElement;return{init:function(a){if(a){a=this.indicators.getAmount.call(a);var b=m.call(this,"add");m.call(this,"edit",a);p.call(this);p.call(this);f.call(this,a);k.call(this,b,0)}}}});r(c,"Extensions/Annotations/Popup/Popup.js",
-[c["Core/Renderer/HTML/AST.js"],c["Core/Defaults.js"],c["Core/Globals.js"],c["Extensions/Annotations/Popup/PopupAnnotations.js"],c["Extensions/Annotations/Popup/PopupIndicators.js"],c["Extensions/Annotations/Popup/PopupTabs.js"],c["Core/Utilities.js"]],function(c,l,r,m,k,f,a){function b(a,b){var c=Array.prototype.slice.call(a.querySelectorAll("input")),d=Array.prototype.slice.call(a.querySelectorAll("select")),e=a.querySelectorAll("#highcharts-select-series > option:checked")[0];a=a.querySelectorAll("#highcharts-select-volume > option:checked")[0];
-var f={actionType:b,linkedTo:e&&e.getAttribute("value")||"",fields:{}};c.forEach(function(a){var b=a.getAttribute("highcharts-data-name");a.getAttribute("highcharts-data-series-id")?f.seriesId=a.value:b?f.fields[b]=a.value:f.type=a.value});d.forEach(function(a){var b=a.id;"highcharts-select-series"!==b&&"highcharts-select-volume"!==b&&(b=b.split("highcharts-select-")[1],f.fields[b]=a.value)});a&&(f.fields["params.volumeSeriesID"]=a.getAttribute("value")||"");return f}var e=l.getOptions,d=r.doc,g=
-a.addEvent,p=a.createElement;l=a.extend;var w=a.fireEvent,A=a.pick;a=function(){function a(a,b,c){this.chart=c;this.iconsURL=b;this.lang=e().lang.navigation.popup;this.container=p("div",{className:"highcharts-popup highcharts-no-tooltip"},void 0,a);g(this.container,"mousedown",function(){var a=c&&c.navigationBindings&&c.navigationBindings.activeAnnotation;if(a){a.cancelClick=!0;var b=g(r.doc,"click",function(){setTimeout(function(){a.cancelClick=!1},0);b()})}});this.addCloseBtn()}a.prototype.init=
-function(b,c,d){a.call(this,b,c,d)};a.prototype.addCloseBtn=function(){var a=this,b=this.iconsURL,c=p("div",{className:"highcharts-popup-close"},void 0,this.container);c.style["background-image"]="url("+(b.match(/png|svg|jpeg|jpg|gif/ig)?b:b+"close.svg")+")";["click","touchstart"].forEach(function(b){g(c,b,function(){if(a.chart){var b=a.chart.navigationBindings;w(b,"closePopup");b&&b.selectedButtonElement&&w(b,"deselectButton",{button:b.selectedButtonElement})}else a.closePopup()})})};a.prototype.addInput=
-function(a,b,c,e){var f=a.split(".");f=f[f.length-1];var g=this.lang;b="highcharts-"+b+"-"+A(e.htmlFor,f);f.match(/^\d+$/)||p("label",{htmlFor:b,className:e.labelClassName},void 0,c).appendChild(d.createTextNode(g[f]||f));c=p("input",{name:b,value:e.value,type:e.type,className:"highcharts-popup-field"},void 0,c);c.setAttribute("highcharts-data-name",a);return c};a.prototype.addButton=function(a,c,e,f,k){var h=this,l=p("button",void 0,void 0,a);l.appendChild(d.createTextNode(c));k&&["click","touchstart"].forEach(function(a){g(l,
-a,function(){h.closePopup();return k(b(f,e))})});return l};a.prototype.showPopup=function(){var a=this.container,b=a.querySelectorAll(".highcharts-popup-close")[0];this.formType=void 0;a.innerHTML=c.emptyHTML;0<=a.className.indexOf("highcharts-annotation-toolbar")&&(a.classList.remove("highcharts-annotation-toolbar"),a.removeAttribute("style"));a.appendChild(b);a.style.display="block";a.style.height=""};a.prototype.closePopup=function(){this.container.style.display="none"};a.prototype.showForm=function(a,
-b,c,d){b&&(this.showPopup(),"indicators"===a&&this.indicators.addForm.call(this,b,c,d),"annotation-toolbar"===a&&this.annotations.addToolbar.call(this,b,c,d),"annotation-edit"===a&&this.annotations.addForm.call(this,b,c,d),"flag"===a&&this.annotations.addForm.call(this,b,c,d,!0),this.formType=a,this.container.style.height=this.container.offsetHeight+"px")};return a}();l(a.prototype,{annotations:m,indicators:k,tabs:f});return a});r(c,"Extensions/Annotations/Popup/PopupComposition.js",[c["Extensions/Annotations/Popup/Popup.js"],
-c["Core/Utilities.js"]],function(c,l){function p(){this.popup&&this.popup.closePopup()}function m(a){this.popup||(this.popup=new c(this.chart.container,this.chart.options.navigation.iconsURL||this.chart.options.stockTools&&this.chart.options.stockTools.gui.iconsURL||"https://code.highcharts.com/10.3.3/gfx/stock-icons/",this.chart));this.popup.showForm(a.formType,this.chart,a.options,a.onSubmit)}function k(a,b){this.inClass(b.target,"highcharts-popup")||a.apply(this,Array.prototype.slice.call(arguments,
-1))}var f=l.addEvent,a=l.wrap,b=[];return{compose:function(c,d){-1===b.indexOf(c)&&(b.push(c),f(c,"closePopup",p),f(c,"showPopup",m));-1===b.indexOf(d)&&(b.push(d),a(d.prototype,"onContainerMouseDown",k))}}});r(c,"Extensions/Annotations/Annotation.js",[c["Core/Animation/AnimationUtilities.js"],c["Extensions/Annotations/AnnotationChart.js"],c["Extensions/Annotations/AnnotationDefaults.js"],c["Extensions/Annotations/Controllables/Controllable.js"],c["Extensions/Annotations/Controllables/ControllableRect.js"],
-c["Extensions/Annotations/Controllables/ControllableCircle.js"],c["Extensions/Annotations/Controllables/ControllableEllipse.js"],c["Extensions/Annotations/Controllables/ControllablePath.js"],c["Extensions/Annotations/Controllables/ControllableImage.js"],c["Extensions/Annotations/Controllables/ControllableLabel.js"],c["Extensions/Annotations/ControlPoint.js"],c["Extensions/Annotations/EventEmitter.js"],c["Extensions/Annotations/MockPoint.js"],c["Extensions/Annotations/NavigationBindings.js"],c["Extensions/Annotations/Popup/PopupComposition.js"],
-c["Core/Utilities.js"]],function(c,l,r,m,k,f,a,b,e,d,g,C,D,A,q,h){function p(a){var b=a.graphic;a=a.points.some(function(a){return!1!==a.series.visible&&!1!==a.visible});b&&(a?"hidden"===b.visibility&&b.show():b.hide())}function w(a,b){var c={};["labels","shapes"].forEach(function(d){var e=a[d];e&&(c[d]=b[d]?J(b[d]).map(function(a,b){return B(e[b],a)}):a[d])});return c}var z=this&&this.__extends||function(){var a=function(b,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=
-b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return a(b,c)};return function(b,c){function d(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(d.prototype=c.prototype,new d)}}(),G=c.getDeferredAnimation,y=m.prototype,K=h.destroyObjectProperties,u=h.erase,H=h.fireEvent,B=h.merge,I=h.pick,J=h.splat;c=function(c){function h(a,b){var d=c.call(this)||this;d.annotation=void 0;d.coll="annotations";d.collection=void 0;d.animationConfig=void 0;d.graphic=void 0;d.group=
-void 0;d.labelCollector=void 0;d.labelsGroup=void 0;d.shapesGroup=void 0;d.chart=a;d.points=[];d.controlPoints=[];d.coll="annotations";d.labels=[];d.shapes=[];d.options=B(d.defaultOptions,b);d.userOptions=b;b=w(d.options,b);d.options.labels=b.labels;d.options.shapes=b.shapes;d.init(a,d.options);return d}z(h,c);h.compose=function(a,c,e){l.compose(h,a,c);d.compose(e);b.compose(a,e);A.compose(h,a);q.compose(A,c)};h.prototype.addClipPaths=function(){this.setClipAxes();this.clipXAxis&&this.clipYAxis&&
-this.options.crop&&(this.clipRect=this.chart.renderer.clipRect(this.getClipBox()))};h.prototype.addLabels=function(){var a=this,b=this.options.labels||[];b.forEach(function(c,d){c=a.initLabel(c,d);B(!0,b[d],c.options)})};h.prototype.addShapes=function(){var a=this,b=this.options.shapes||[];b.forEach(function(c,d){c=a.initShape(c,d);B(!0,b[d],c.options)})};h.prototype.destroy=function(){var a=this.chart,b=function(a){a.destroy()};this.labels.forEach(b);this.shapes.forEach(b);this.clipYAxis=this.clipXAxis=
-null;u(a.labelCollectors,this.labelCollector);c.prototype.destroy.call(this);y.destroy.call(this);K(this,a)};h.prototype.destroyItem=function(a){u(this[a.itemType+"s"],a);a.destroy()};h.prototype.getClipBox=function(){if(this.clipXAxis&&this.clipYAxis)return{x:this.clipXAxis.left,y:this.clipYAxis.top,width:this.clipXAxis.width,height:this.clipYAxis.height}};h.prototype.init=function(a,b,c){a=this.chart;b=this.options.animation;this.linkPoints();this.addControlPoints();this.addShapes();this.addLabels();
-this.setLabelCollector();this.animationConfig=G(a,b)};h.prototype.initLabel=function(a,b){a=B(this.options.labelOptions,{controlPointOptions:this.options.controlPointOptions},a);b=new d(this,a,b);b.itemType="label";this.labels.push(b);return b};h.prototype.initShape=function(a,b){a=B(this.options.shapeOptions,{controlPointOptions:this.options.controlPointOptions},a);b=new h.shapesMap[a.type](this,a,b);b.itemType="shape";this.shapes.push(b);return b};h.prototype.redraw=function(a){this.linkPoints();
-this.graphic||this.render();this.clipRect&&this.clipRect.animate(this.getClipBox());this.redrawItems(this.shapes,a);this.redrawItems(this.labels,a);y.redraw.call(this,a)};h.prototype.redrawItem=function(a,b){a.linkPoints();a.shouldBeDrawn()?(a.graphic||this.renderItem(a),a.redraw(I(b,!0)&&a.graphic.placed),a.points.length&&p(a)):this.destroyItem(a)};h.prototype.redrawItems=function(a,b){for(var c=a.length;c--;)this.redrawItem(a[c],b)};h.prototype.remove=function(){return this.chart.removeAnnotation(this)};
-h.prototype.render=function(){var a=this.chart.renderer;this.graphic=a.g("annotation").attr({opacity:0,zIndex:this.options.zIndex,visibility:this.options.visible?"inherit":"hidden"}).add();this.shapesGroup=a.g("annotation-shapes").add(this.graphic);this.options.crop&&this.shapesGroup.clip(this.chart.plotBoxClip);this.labelsGroup=a.g("annotation-labels").attr({translateX:0,translateY:0}).add(this.graphic);this.addClipPaths();this.clipRect&&this.graphic.clip(this.clipRect);this.renderItems(this.shapes);
-this.renderItems(this.labels);this.addEvents();y.render.call(this)};h.prototype.renderItem=function(a){a.render("label"===a.itemType?this.labelsGroup:this.shapesGroup)};h.prototype.renderItems=function(a){for(var b=a.length;b--;)this.renderItem(a[b])};h.prototype.setClipAxes=function(){var a=this.chart.xAxis,b=this.chart.yAxis,c=(this.options.labels||[]).concat(this.options.shapes||[]).reduce(function(c,d){d=d&&(d.point||d.points&&d.points[0]);return[a[d&&d.xAxis]||c[0],b[d&&d.yAxis]||c[1]]},[]);
-this.clipXAxis=c[0];this.clipYAxis=c[1]};h.prototype.setControlPointsVisibility=function(a){var b=function(b){b.setControlPointsVisibility(a)};y.setControlPointsVisibility.call(this,a);this.shapes.forEach(b);this.labels.forEach(b)};h.prototype.setLabelCollector=function(){var a=this;a.labelCollector=function(){return a.labels.reduce(function(a,b){b.options.allowOverlap||a.push(b.graphic);return a},[])};a.chart.labelCollectors.push(a.labelCollector)};h.prototype.setOptions=function(a){this.options=
-B(this.defaultOptions,a)};h.prototype.setVisibility=function(a){var b=this.options,c=this.chart.navigationBindings;a=I(a,!b.visible);this.graphic.attr("visibility",a?"inherit":"hidden");a||(this.setControlPointsVisibility(!1),c.activeAnnotation===this&&c.popup&&"annotation-toolbar"===c.popup.formType&&H(c,"closePopup"));b.visible=a};h.prototype.update=function(a,b){var c=this.chart,d=w(this.userOptions,a),e=c.annotations.indexOf(this);a=B(!0,this.userOptions,a);a.labels=d.labels;a.shapes=d.shapes;
-this.destroy();this.constructor(c,a);c.options.annotations[e]=a;this.isUpdating=!0;I(b,!0)&&c.redraw();H(this,"afterUpdate");this.isUpdating=!1};h.ControlPoint=g;h.MockPoint=D;h.shapesMap={rect:k,circle:f,ellipse:a,path:b,image:e};h.types={};return h}(C);B(!0,c.prototype,m.prototype,B(c.prototype,{nonDOMEvents:["add","afterUpdate","drag","remove"],defaultOptions:r}));"";return c});r(c,"masters/modules/annotations.src.js",[c["Core/Globals.js"],c["Extensions/Annotations/Annotation.js"]],function(c,
-l){c.Annotation=l;l.compose(c.Chart,c.Pointer,c.SVGRenderer)})});
-//# sourceMappingURL=annotations.js.map

+ 0 - 25
nicegui/elements/lib/highcharts_modules/arc-diagram.js

@@ -1,25 +0,0 @@
-/*
- Highcharts JS v10.3.3 (2023-01-20)
-
- Arc diagram module
-
- (c) 2021 Piotr Madej
-
- License: www.highcharts.com/license
-*/
-(function(a){"object"===typeof module&&module.exports?(a["default"]=a,module.exports=a):"function"===typeof define&&define.amd?define("highcharts/modules/arc-diagram",["highcharts","highcharts/modules/sankey"],function(e){a(e);a.Highcharts=e;return a}):a("undefined"!==typeof Highcharts?Highcharts:void 0)})(function(a){function e(a,n,u,e){a.hasOwnProperty(n)||(a[n]=e.apply(null,u),"function"===typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:n,module:a[n]}})))}
-a=a?a._modules:{};e(a,"Series/ArcDiagram/ArcDiagramPoint.js",[a["Series/NodesComposition.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,n,e){var t=this&&this.__extends||function(){var a=function(b,l){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var l in b)b.hasOwnProperty(l)&&(a[l]=b[l])};return a(b,l)};return function(b,l){function e(){this.constructor=b}a(b,l);b.prototype=null===l?Object.create(l):(e.prototype=
-l.prototype,new e)}}();e=e.extend;n=function(a){function b(){var b=null!==a&&a.apply(this,arguments)||this;b.fromNode=void 0;b.index=void 0;b.linksFrom=void 0;b.linksTo=void 0;b.options=void 0;b.series=void 0;b.scale=void 0;b.shapeArgs=void 0;b.toNode=void 0;return b}t(b,a);b.prototype.isValid=function(){return!0};return b}(n.seriesTypes.sankey.prototype.pointClass);e(n.prototype,{setState:a.setNodeState});return n});e(a,"Series/ArcDiagram/ArcDiagramSeries.js",[a["Series/ArcDiagram/ArcDiagramPoint.js"],
-a["Series/Sankey/SankeyColumnComposition.js"],a["Core/Series/Series.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Renderer/SVG/SVGRenderer.js"],a["Core/Utilities.js"]],function(a,e,u,t,q,b){var l=this&&this.__extends||function(){var a=function(b,d){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,c){d.__proto__=c}||function(d,c){for(var a in c)c.hasOwnProperty(a)&&(d[a]=c[a])};return a(b,d)};return function(b,d){function g(){this.constructor=b}a(b,d);b.prototype=null===d?Object.create(d):
-(g.prototype=d.prototype,new g)}}(),n=this&&this.__rest||function(a,b){var d={},g;for(g in a)Object.prototype.hasOwnProperty.call(a,g)&&0>b.indexOf(g)&&(d[g]=a[g]);if(null!=a&&"function"===typeof Object.getOwnPropertySymbols){var c=0;for(g=Object.getOwnPropertySymbols(a);c<g.length;c++)0>b.indexOf(g[c])&&Object.prototype.propertyIsEnumerable.call(a,g[c])&&(d[g[c]]=a[g[c]])}return d},z=q.prototype.symbols;q=t.seriesTypes;var x=q.column,v=q.sankey;q=b.extend;var y=b.merge,w=b.pick,A=b.relativeLength;
-b=function(a){function b(){var d=null!==a&&a.apply(this,arguments)||this;d.data=void 0;d.options=void 0;d.nodeColumns=void 0;d.nodes=void 0;d.points=void 0;return d}l(b,a);b.prototype.createNodeColumns=function(){var d=this,a=this,c=a.chart,b=e.compose([],a);b.sankeyColumn.maxLength=c.inverted?c.plotHeight:c.plotWidth;b.sankeyColumn.getTranslationFactor=function(a){for(var g=b.slice(),f=d.options.minLinkWidth||0,r=0,k,p,h=0,e=1,l=0,n=(c.plotSizeX||0)-(a.options.marker&&a.options.marker.lineWidth||
-0)-(b.length-1)*a.nodePadding;b.length;){r=n/b.sankeyColumn.sum();a=!1;for(k=b.length;k--;){p=b[k].getSum()*r*e;var q=Math.min(c.plotHeight,c.plotWidth);p>q?e=Math.min(q/p,e):p<f&&(b.splice(k,1),n-=f,p=f,a=!0);l+=p*(1-e)/2;h=Math.max(h,p)}if(!a)break}b.length=0;g.forEach(function(a){a.scale=e;b.push(a)});b.sankeyColumn.maxRadius=h;b.sankeyColumn.scale=e;b.sankeyColumn.additionalSpace=l;return r};b.sankeyColumn.offset=function(d,g){for(var f=d.series.options.equalNodes,e=b.sankeyColumn.additionalSpace||
-0,k,r=a.nodePadding,h=Math.min(c.plotWidth,c.plotHeight,(b.sankeyColumn.maxLength||0)/a.nodes.length-r),p=0;p<b.length;p++){k=b[p].getSum()*(b.sankeyColumn.scale||0);var m=f?h:Math.max(k*g,a.options.minLinkWidth||0);k=k?m+r:0;if(b[p]===d)return{relativeLeft:e+A(d.options.offset||0,k)};e+=k}};a.nodes.forEach(function(a){a.column=0;b.push(a)});return[b]};b.prototype.translateLink=function(a){var b=a.fromNode;var c=a.toNode;var d=this.chart,e=this.translationFactor,m=this.options,f=w(a.options.linkWeight,
-m.linkWeight,Math.max((a.weight||0)*e*b.scale,this.options.minLinkWidth||0)),l=a.series.options.centeredLinks,k=b.nodeY,n=function(b,d){d=(b.offset(a,d)||0)*e;return Math.min(b.nodeX+d,b.nodeX+(b.shapeArgs&&b.shapeArgs.height||0)-f)},h=l?b.nodeX+((b.shapeArgs.height||0)-f)/2:n(b,"linksFrom");c=l?c.nodeX+((c.shapeArgs.height||0)-f)/2:n(c,"linksTo");h>c&&(c=[c,h],h=c[0],c=c[1]);m.reversed&&(c=[c,h],h=c[0],c=c[1],k=(d.plotSizeY||0)-k);a.shapeType="path";a.linkBase=[h,h+f,c,c+f];m=(c+f-h)/Math.abs(c+
-f-h)*w(m.linkRadius,Math.min(Math.abs(c+f-h)/2,b.nodeY-Math.abs(f)));a.shapeArgs={d:[["M",h,k],["A",(c+f-h)/2,m,0,0,1,c+f,k],["L",c,k],["A",(c-h-f)/2,m-f,0,0,0,h+f,k],["Z"]]};a.dlBox={x:h+(c-h)/2,y:k-m,height:f,width:0};a.tooltipPos=d.inverted?[(d.plotSizeY||0)-a.dlBox.y-f/2,(d.plotSizeX||0)-a.dlBox.x]:[a.dlBox.x,a.dlBox.y+f/2];a.y=a.plotY=1;a.x=a.plotX=1;a.color||(a.color=b.color)};b.prototype.translateNode=function(a,b){var c=this.translationFactor,d=this.chart,e=this.options,m=Math.min(d.plotWidth,
-d.plotHeight,(d.inverted?d.plotWidth:d.plotHeight)/a.series.nodes.length-this.nodePadding),f=a.getSum()*(b.sankeyColumn.scale||0);m=e.equalNodes?m:Math.max(f*c,this.options.minLinkWidth||0);var g=Math.round(e.marker&&e.marker.lineWidth||0)%2/2,k=b.sankeyColumn.offset(a,c);c=Math.floor(w(k&&k.absoluteLeft,(b.sankeyColumn.left(c)||0)+(k&&k.relativeLeft||0)))+g;var l=y(e.marker,a.options.marker);k=l.symbol;var h=l.radius;b=parseInt(e.offset,10)*((d.inverted?d.plotWidth:d.plotHeight)-(Math.floor(this.colDistance*
-(a.column||0)+(l.lineWidth||0)/2)+g+(b.sankeyColumn.scale||0)*(b.sankeyColumn.maxRadius||0)/2))/100;(a.sum=f)?(a.nodeX=c,a.nodeY=b,f=a.options.width||e.width||m,m=a.options.height||e.height||m,g=b,e.reversed&&(g=(d.plotSizeY||0)-b,d.inverted&&(g=(d.plotSizeY||0)-b)),this.mapOptionsToLevel&&(a.dlOptions=v.getDLOptions({level:this.mapOptionsToLevel[a.level],optionsPoint:a.options})),a.plotX=1,a.plotY=1,a.tooltipPos=d.inverted?[(d.plotSizeY||0)-g-m/2,(d.plotSizeX||0)-c-f/2]:[c+f/2,g+m/2],a.shapeType=
-"path",a.shapeArgs={d:z[k||"circle"](c,g-(h||m)/2,h||f,h||m),width:h||f,height:h||m},a.dlBox={x:c+f/2,y:g,height:0,width:0}):a.dlOptions={enabled:!1}};b.prototype.drawDataLabels=function(){if(this.options.dataLabels){var a=this.options.dataLabels.textPath;x.prototype.drawDataLabels.call(this,this.nodes);this.options.dataLabels.textPath=this.options.dataLabels.linkTextPath;x.prototype.drawDataLabels.call(this,this.data);this.options.dataLabels.textPath=a}};b.prototype.pointAttribs=function(b,e){if(b&&
-b.isNode){var c=u.prototype.pointAttribs.apply(this,arguments);return n(c,["opacity"])}return a.prototype.pointAttribs.apply(this,arguments)};b.prototype.markerAttribs=function(b){return b.isNode?a.prototype.markerAttribs.apply(this,arguments):{}};b.defaultOptions=y(v.defaultOptions,{centeredLinks:!1,offset:"100%",equalNodes:!1,reversed:!1,dataLabels:{linkTextPath:{attributes:{startOffset:"25%"}}},marker:{symbol:"circle",fillOpacity:1,lineWidth:0,states:{}}});return b}(v);q(b.prototype,{orderNodes:!1});
-b.prototype.pointClass=a;t.registerSeriesType("arcdiagram",b);"";return b});e(a,"masters/modules/arc-diagram.src.js",[],function(){})});
-//# sourceMappingURL=arc-diagram.js.map

+ 0 - 13
nicegui/elements/lib/highcharts_modules/arrow-symbols.js

@@ -1,13 +0,0 @@
-/*
- Highcharts JS v10.3.3 (2023-01-20)
-
- Arrow Symbols
-
- (c) 2017-2021 Lars A. V. Cabrera
-
- License: www.highcharts.com/license
-*/
-(function(a){"object"===typeof module&&module.exports?(a["default"]=a,module.exports=a):"function"===typeof define&&define.amd?define("highcharts/modules/arrow-symbols",["highcharts"],function(b){a(b);a.Highcharts=b;return a}):a("undefined"!==typeof Highcharts?Highcharts:void 0)})(function(a){function b(a,f,b,g){a.hasOwnProperty(f)||(a[f]=g.apply(null,b),"function"===typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:f,module:a[f]}})))}a=a?a._modules:{};
-b(a,"Extensions/ArrowSymbols.js",[a["Core/Renderer/SVG/SVGRenderer.js"]],function(a){function b(a,d,b,c){return[["M",a,d+c/2],["L",a+b,d],["L",a,d+c/2],["L",a+b,d+c]]}function h(a,b,e,c){return[["M",a+e,b],["L",a,b+c/2],["L",a+e,b+c],["Z"]]}function g(a,b,e,c){return h(a,b,e/2,c)}a=a.prototype.symbols;a.arrow=b;a["arrow-filled"]=h;a["arrow-filled-half"]=g;a["arrow-half"]=function(a,d,e,c){return b(a,d,e/2,c)};a["triangle-left"]=h;a["triangle-left-half"]=g;return a});b(a,"masters/modules/arrow-symbols.src.js",
-[],function(){})});
-//# sourceMappingURL=arrow-symbols.js.map

File diff suppressed because it is too large
+ 0 - 17
nicegui/elements/lib/highcharts_modules/boost-canvas.js


File diff suppressed because it is too large
+ 0 - 17
nicegui/elements/lib/highcharts_modules/boost.js


+ 0 - 20
nicegui/elements/lib/highcharts_modules/broken-axis.js

@@ -1,20 +0,0 @@
-/*
- Highcharts JS v10.3.3 (2023-01-20)
-
- (c) 2009-2021 Torstein Honsi
-
- License: www.highcharts.com/license
-*/
-(function(f){"object"===typeof module&&module.exports?(f["default"]=f,module.exports=f):"function"===typeof define&&define.amd?define("highcharts/modules/broken-axis",["highcharts"],function(l){f(l);f.Highcharts=l;return f}):f("undefined"!==typeof Highcharts?Highcharts:void 0)})(function(f){function l(f,h,n,l){f.hasOwnProperty(h)||(f[h]=l.apply(null,n),"function"===typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:h,module:f[h]}})))}f=f?f._modules:{};
-l(f,"Core/Axis/BrokenAxis.js",[f["Core/Axis/Stacking/StackItem.js"],f["Core/Utilities.js"]],function(f,h){var n=h.addEvent,l=h.find,x=h.fireEvent,z=h.isArray,m=h.isNumber,u=h.pick,v;(function(h){function v(){"undefined"!==typeof this.brokenAxis&&this.brokenAxis.setBreaks(this.options.breaks,!1)}function A(){this.brokenAxis&&this.brokenAxis.hasBreaks&&(this.options.ordinal=!1)}function B(){var c=this.brokenAxis;if(c&&c.hasBreaks){for(var b=this.tickPositions,g=this.tickPositions.info,e=[],a=0;a<b.length;a++)c.isInAnyBreak(b[a])||
-e.push(b[a]);this.tickPositions=e;this.tickPositions.info=g}}function C(){this.brokenAxis||(this.brokenAxis=new y(this))}function D(){var c=this.options.connectNulls,b=this.points,g=this.xAxis,e=this.yAxis;if(this.isDirty)for(var a=b.length;a--;){var d=b[a],f=!(null===d.y&&!1===c)&&(g&&g.brokenAxis&&g.brokenAxis.isInAnyBreak(d.x,!0)||e&&e.brokenAxis&&e.brokenAxis.isInAnyBreak(d.y,!0));d.visible=f?!1:!1!==d.options.visible}}function E(){this.drawBreaks(this.xAxis,["x"]);this.drawBreaks(this.yAxis,
-u(this.pointArrayMap,["y"]))}function F(c,b){var g=this,e=g.points,a,d,f,k;if(c&&c.brokenAxis&&c.brokenAxis.hasBreaks){var h=c.brokenAxis;b.forEach(function(b){a=h&&h.breakArray||[];d=c.isXAxis?c.min:u(g.options.threshold,c.min);e.forEach(function(e){k=u(e["stack"+b.toUpperCase()],e[b]);a.forEach(function(a){if(m(d)&&m(k)){f=!1;if(d<a.from&&k>a.to||d>a.from&&k<a.from)f="pointBreak";else if(d<a.from&&k>a.from&&k<a.to||d>a.from&&k>a.to&&k<a.from)f="pointInBreak";f&&x(c,f,{point:e,brk:a})}})})})}}function G(){var c=
-this.currentDataGrouping,b=c&&c.gapSize;c=this.points.slice();var g=this.yAxis,e=this.options.gapSize,a=c.length-1,d;if(e&&0<a)for("value"!==this.options.gapUnit&&(e*=this.basePointRange),b&&b>e&&b>=this.basePointRange&&(e=b),d=void 0;a--;)d&&!1!==d.visible||(d=c[a+1]),b=c[a],!1!==d.visible&&!1!==b.visible&&(d.x-b.x>e&&(d=(b.x+d.x)/2,c.splice(a+1,0,{isNull:!0,x:d}),g.stacking&&this.options.stacking&&(d=g.stacking.stacks[this.stackKey][d]=new f(g,g.options.stackLabels,!1,d,this.stack),d.total=0)),
-d=b);return this.getGraphPath(c)}var w=[];h.compose=function(c,b){-1===w.indexOf(c)&&(w.push(c),c.keepProps.push("brokenAxis"),n(c,"init",C),n(c,"afterInit",v),n(c,"afterSetTickPositions",B),n(c,"afterSetOptions",A));if(-1===w.indexOf(b)){w.push(b);var g=b.prototype;g.drawBreaks=F;g.gappedPath=G;n(b,"afterGeneratePoints",D);n(b,"afterRender",E)}return c};var y=function(){function c(b){this.hasBreaks=!1;this.axis=b}c.isInBreak=function(b,c){var e=b.repeat||Infinity,a=b.from,d=b.to-b.from;c=c>=a?(c-
-a)%e:e-(a-c)%e;return b.inclusive?c<=d:c<d&&0!==c};c.lin2Val=function(b){var g=this.brokenAxis;g=g&&g.breakArray;if(!g||!m(b))return b;var e;for(e=0;e<g.length;e++){var a=g[e];if(a.from>=b)break;else a.to<b?b+=a.len:c.isInBreak(a,b)&&(b+=a.len)}return b};c.val2Lin=function(b){var g=this.brokenAxis;g=g&&g.breakArray;if(!g||!m(b))return b;var e=b,a;for(a=0;a<g.length;a++){var d=g[a];if(d.to<=b)e-=d.len;else if(d.from>=b)break;else if(c.isInBreak(d,b)){e-=b-d.from;break}}return e};c.prototype.findBreakAt=
-function(b,c){return l(c,function(c){return c.from<b&&b<c.to})};c.prototype.isInAnyBreak=function(b,g){var e=this.axis,a=e.options.breaks||[],d=a.length,f;if(d&&m(b)){for(;d--;)if(c.isInBreak(a[d],b)){var k=!0;f||(f=u(a[d].showPoints,!e.isXAxis))}var h=k&&g?k&&!f:k}return h};c.prototype.setBreaks=function(b,f){var e=this,a=e.axis,d=z(b)&&!!b.length;a.isDirty=e.hasBreaks!==d;e.hasBreaks=d;a.options.breaks=a.userOptions.breaks=b;a.forceRedraw=!0;a.series.forEach(function(a){a.isDirty=!0});d||a.val2lin!==
-c.val2Lin||(delete a.val2lin,delete a.lin2val);d&&(a.userOptions.ordinal=!1,a.lin2val=c.lin2Val,a.val2lin=c.val2Lin,a.setExtremes=function(b,c,d,f,g){if(e.hasBreaks){for(var h=this.options.breaks||[],k;k=e.findBreakAt(b,h);)b=k.to;for(;k=e.findBreakAt(c,h);)c=k.from;c<b&&(c=b)}a.constructor.prototype.setExtremes.call(this,b,c,d,f,g)},a.setAxisTranslation=function(){a.constructor.prototype.setAxisTranslation.call(this);e.unitLength=void 0;if(e.hasBreaks){var b=a.options.breaks||[],d=[],f=[],g=u(a.pointRangePadding,
-0),h=0,r,p=a.userMin||a.min,t=a.userMax||a.max,l;b.forEach(function(a){r=a.repeat||Infinity;m(p)&&m(t)&&(c.isInBreak(a,p)&&(p+=a.to%r-p%r),c.isInBreak(a,t)&&(t-=t%r-a.from%r))});b.forEach(function(a){q=a.from;r=a.repeat||Infinity;if(m(p)&&m(t)){for(;q-r>p;)q-=r;for(;q<p;)q+=r;for(l=q;l<t;l+=r)d.push({value:l,move:"in"}),d.push({value:l+a.to-a.from,move:"out",size:a.breakSize})}});d.sort(function(a,b){return a.value===b.value?("in"===a.move?0:1)-("in"===b.move?0:1):a.value-b.value});var n=0;var q=
-p;d.forEach(function(a){n+="in"===a.move?1:-1;1===n&&"in"===a.move&&(q=a.value);0===n&&m(q)&&(f.push({from:q,to:a.value,len:a.value-q-(a.size||0)}),h+=a.value-q-(a.size||0))});e.breakArray=f;m(p)&&m(t)&&m(a.min)&&(e.unitLength=t-p-h+g,x(a,"afterBreaks"),a.staticScale?a.transA=a.staticScale:e.unitLength&&(a.transA*=(t-a.min+g)/e.unitLength),g&&(a.minPixelPadding=a.transA*(a.minPointOffset||0)),a.min=p,a.max=t)}});u(f,!0)&&a.chart.redraw()};return c}();h.Additions=y})(v||(v={}));return v});l(f,"masters/modules/broken-axis.src.js",
-[f["Core/Globals.js"],f["Core/Axis/BrokenAxis.js"]],function(f,h){h.compose(f.Axis,f.Series)})});
-//# sourceMappingURL=broken-axis.js.map

+ 0 - 18
nicegui/elements/lib/highcharts_modules/bullet.js

@@ -1,18 +0,0 @@
-/*
- Highcharts JS v10.3.3 (2023-01-20)
-
- Bullet graph series type for Highcharts
-
- (c) 2010-2021 Kacper Madej
-
- License: www.highcharts.com/license
-*/
-(function(b){"object"===typeof module&&module.exports?(b["default"]=b,module.exports=b):"function"===typeof define&&define.amd?define("highcharts/modules/bullet",["highcharts"],function(e){b(e);b.Highcharts=e;return b}):b("undefined"!==typeof Highcharts?Highcharts:void 0)})(function(b){function e(b,d,a,r){b.hasOwnProperty(d)||(b[d]=r.apply(null,a),"function"===typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:d,module:b[d]}})))}b=b?b._modules:{};e(b,"Series/Bullet/BulletPoint.js",
-[b["Series/Column/ColumnSeries.js"]],function(b){var d=this&&this.__extends||function(){var b=function(a,c){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,a){b.__proto__=a}||function(b,a){for(var c in a)a.hasOwnProperty(c)&&(b[c]=a[c])};return b(a,c)};return function(a,c){function d(){this.constructor=a}b(a,c);a.prototype=null===c?Object.create(c):(d.prototype=c.prototype,new d)}}();return function(b){function a(){var a=null!==b&&b.apply(this,arguments)||this;a.options=void 0;
-a.series=void 0;return a}d(a,b);a.prototype.destroy=function(){this.targetGraphic&&(this.targetGraphic=this.targetGraphic.destroy());b.prototype.destroy.apply(this,arguments)};return a}(b.prototype.pointClass)});e(b,"Series/Bullet/BulletSeries.js",[b["Series/Bullet/BulletPoint.js"],b["Core/Series/SeriesRegistry.js"],b["Core/Utilities.js"]],function(b,d,a){var e=this&&this.__extends||function(){var b=function(a,f){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,a){b.__proto__=a}||
-function(b,a){for(var f in a)a.hasOwnProperty(f)&&(b[f]=a[f])};return b(a,f)};return function(a,f){function k(){this.constructor=a}b(a,f);a.prototype=null===f?Object.create(f):(k.prototype=f.prototype,new k)}}(),c=d.seriesTypes.column,t=a.extend,l=a.isNumber,u=a.merge,p=a.pick,v=a.relativeLength;a=function(b){function a(){var a=null!==b&&b.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;a.targetData=void 0;return a}e(a,b);a.prototype.drawPoints=function(){var a=this,k=a.chart,
-c=a.options,d=c.animationLimit||250;b.prototype.drawPoints.apply(this,arguments);a.points.forEach(function(b){var f=b.options,e=b.target,q=b.y,g=b.targetGraphic;if(l(e)&&null!==e){var h=u(c.targetOptions,f.targetOptions);var r=h.height;var m=b.shapeArgs;b.dlBox&&m&&!l(m.width)&&(m=b.dlBox);var n=v(h.width,m.width);var t=a.yAxis.translate(e,!1,!0,!1,!0)-h.height/2-.5;n=a.crispCol.apply({chart:k,borderWidth:h.borderWidth,options:{crisp:c.crisp}},[m.x+m.width/2-n/2,t,n,r]);g?(g[k.pointCount<d?"animate":
-"attr"](n),l(q)&&null!==q?g.element.point=b:g.element.point=void 0):b.targetGraphic=g=k.renderer.rect().attr(n).add(a.group);k.styledMode||g.attr({fill:p(h.color,f.color,a.zones.length&&(b.getZone.call({series:a,x:b.x,y:e,options:{}}).color||a.color)||void 0,b.color,a.color),stroke:p(h.borderColor,b.borderColor,a.options.borderColor),"stroke-width":h.borderWidth,r:h.borderRadius});l(q)&&null!==q&&(g.element.point=b);g.addClass(b.getClassName()+" highcharts-bullet-target",!0)}else g&&(b.targetGraphic=
-g.destroy())})};a.prototype.getExtremes=function(a){a=b.prototype.getExtremes.call(this,a);var c=this.targetData;c&&c.length&&(c=b.prototype.getExtremes.call(this,c),l(c.dataMin)&&(a.dataMin=Math.min(p(a.dataMin,Infinity),c.dataMin)),l(c.dataMax)&&(a.dataMax=Math.max(p(a.dataMax,-Infinity),c.dataMax)));return a};a.defaultOptions=u(c.defaultOptions,{targetOptions:{width:"140%",height:3,borderWidth:0,borderRadius:0},tooltip:{pointFormat:'<span style="color:{series.color}">\u25cf</span> {series.name}: <b>{point.y}</b>. Target: <b>{point.target}</b><br/>'}});
-return a}(c);t(a.prototype,{parallelArrays:["x","y","target"],pointArrayMap:["y","target"]});a.prototype.pointClass=b;d.registerSeriesType("bullet",a);"";return a});e(b,"masters/modules/bullet.src.js",[],function(){})});
-//# sourceMappingURL=bullet.js.map

+ 0 - 34
nicegui/elements/lib/highcharts_modules/coloraxis.js

@@ -1,34 +0,0 @@
-/*
- Highcharts JS v10.3.3 (2023-01-20)
-
- ColorAxis module
-
- (c) 2012-2021 Pawel Potaczek
-
- License: www.highcharts.com/license
-*/
-(function(b){"object"===typeof module&&module.exports?(b["default"]=b,module.exports=b):"function"===typeof define&&define.amd?define("highcharts/modules/color-axis",["highcharts"],function(n){b(n);b.Highcharts=n;return b}):b("undefined"!==typeof Highcharts?Highcharts:void 0)})(function(b){function n(b,k,t,p){b.hasOwnProperty(k)||(b[k]=p.apply(null,t),"function"===typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:k,module:b[k]}})))}b=b?b._modules:{};n(b,
-"Core/Axis/Color/ColorAxisComposition.js",[b["Core/Color/Color.js"],b["Core/Utilities.js"]],function(b,k){var m=b.parse,p=k.addEvent,n=k.extend,y=k.merge,z=k.pick,u=k.splat,v;(function(b){function k(){var c=this,a=this.options;this.colorAxis=[];a.colorAxis&&(a.colorAxis=u(a.colorAxis),a.colorAxis.forEach(function(a,d){a.index=d;new q(c,a)}))}function v(a){var c=this,d=function(d){d=a.allItems.indexOf(d);-1!==d&&(c.destroyItem(a.allItems[d]),a.allItems.splice(d,1))},e=[],l,h;(this.chart.colorAxis||
-[]).forEach(function(a){(l=a.options)&&l.showInLegend&&(l.dataClasses&&l.visible?e=e.concat(a.getDataClassLegendSymbols()):l.visible&&e.push(a),a.series.forEach(function(a){if(!a.options.showInLegend||l.dataClasses)"point"===a.options.legendType?a.points.forEach(function(a){d(a)}):d(a)}))});for(h=e.length;h--;)a.allItems.unshift(e[h])}function t(a){a.visible&&a.item.legendColor&&a.item.legendItem.symbol.attr({fill:a.item.legendColor})}function x(){var a=this.chart.colorAxis;a&&a.forEach(function(a,
-c,d){a.update({},d)})}function r(){(this.chart.colorAxis&&this.chart.colorAxis.length||this.colorAttribs)&&this.translateColors()}function D(){var a=this.axisTypes;a?-1===a.indexOf("colorAxis")&&a.push("colorAxis"):this.axisTypes=["colorAxis"]}function f(a){var c=this,d=a?"show":"hide";c.visible=c.options.visible=!!a;["graphic","dataLabel"].forEach(function(a){if(c[a])c[a][d]()});this.series.buildKDTree()}function a(){var a=this,c=this.options.nullColor,d=this.colorAxis,e=this.colorKey;(this.data.length?
-this.data:this.points).forEach(function(h){var f=h.getNestedProperty(e);(f=h.options.color||(h.isNull||null===h.value?c:d&&"undefined"!==typeof f?d.toColor(f,h):h.color||a.color))&&h.color!==f&&(h.color=f,"point"===a.options.legendType&&h.legendItem&&h.legendItem.label&&a.chart.legend.colorizeItem(h,h.visible))})}function c(a){var c=a.prototype.createAxis;a.prototype.createAxis=function(a,d){if("colorAxis"!==a)return c.apply(this,arguments);var e=new q(this,y(d.axis,{index:this[a].length,isX:!1}));
-this.isDirtyLegend=!0;this.axes.forEach(function(a){a.series=[]});this.series.forEach(function(a){a.bindAxes();a.isDirtyData=!0});z(d.redraw,!0)&&this.redraw(d.animation);return e}}function e(){this.elem.attr("fill",m(this.start).tweenTo(m(this.end),this.pos),void 0,!0)}function d(){this.elem.attr("stroke",m(this.start).tweenTo(m(this.end),this.pos),void 0,!0)}var h=[],q;b.compose=function(l,g,b,w,m){q||(q=l);-1===h.indexOf(g)&&(h.push(g),l=g.prototype,l.collectionsWithUpdate.push("colorAxis"),l.collectionsWithInit.colorAxis=
-[l.addColorAxis],p(g,"afterGetAxes",k),c(g));-1===h.indexOf(b)&&(h.push(b),g=b.prototype,g.fillSetter=e,g.strokeSetter=d);-1===h.indexOf(w)&&(h.push(w),p(w,"afterGetAllItems",v),p(w,"afterColorizeItem",t),p(w,"afterUpdate",x));-1===h.indexOf(m)&&(h.push(m),n(m.prototype,{optionalAxis:"colorAxis",translateColors:a}),n(m.prototype.pointClass.prototype,{setVisible:f}),p(m,"afterTranslate",r,{order:1}),p(m,"bindAxes",D))};b.pointSetVisible=f})(v||(v={}));return v});n(b,"Core/Axis/Color/ColorAxisDefaults.js",
-[],function(){return{lineWidth:0,minPadding:0,maxPadding:0,gridLineWidth:1,tickPixelInterval:72,startOnTick:!0,endOnTick:!0,offset:0,marker:{animation:{duration:50},width:.01,color:"#999999"},labels:{overflow:"justify",rotation:0},minColor:"#e6ebf5",maxColor:"#003399",tickLength:5,showInLegend:!0}});n(b,"Core/Axis/Color/ColorAxis.js",[b["Core/Axis/Axis.js"],b["Core/Color/Color.js"],b["Core/Axis/Color/ColorAxisComposition.js"],b["Core/Axis/Color/ColorAxisDefaults.js"],b["Core/Globals.js"],b["Core/Legend/LegendSymbol.js"],
-b["Core/Series/SeriesRegistry.js"],b["Core/Utilities.js"]],function(b,k,n,p,E,y,z,u){var m=this&&this.__extends||function(){var b=function(f,a){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,e){a.__proto__=e}||function(a,e){for(var d in e)e.hasOwnProperty(d)&&(a[d]=e[d])};return b(f,a)};return function(f,a){function c(){this.constructor=f}b(f,a);f.prototype=null===a?Object.create(a):(c.prototype=a.prototype,new c)}}(),t=k.parse,A=z.series,B=u.extend,C=u.isNumber,x=u.merge,r=u.pick;
-k=function(b){function f(a,c){var e=b.call(this,a,c)||this;e.beforePadding=!1;e.chart=void 0;e.coll="colorAxis";e.dataClasses=void 0;e.name="";e.options=void 0;e.stops=void 0;e.visible=!0;e.init(a,c);return e}m(f,b);f.compose=function(a,c,e,d){n.compose(f,a,c,e,d)};f.prototype.init=function(a,c){var e=a.options.legend||{},d=c.layout?"vertical"!==c.layout:"vertical"!==e.layout,h=c.visible;e=x(f.defaultColorAxisOptions,c,{showEmpty:!1,title:null,visible:e.enabled&&!1!==h});this.coll="colorAxis";this.side=
-c.side||d?2:1;this.reversed=c.reversed||!d;this.opposite=!d;b.prototype.init.call(this,a,e);this.userOptions.visible=h;c.dataClasses&&this.initDataClasses(c);this.initStops();this.horiz=d;this.zoomEnabled=!1};f.prototype.initDataClasses=function(a){var c=this.chart,e=this.legendItem=this.legendItem||{},d=a.dataClasses.length,h=this.options,b,f=0,g=c.options.chart.colorCount;this.dataClasses=b=[];e.labels=[];(a.dataClasses||[]).forEach(function(a,e){a=x(a);b.push(a);if(c.styledMode||!a.color)"category"===
-h.dataClassColor?(c.styledMode||(e=c.options.colors,g=e.length,a.color=e[f]),a.colorIndex=f,f++,f===g&&(f=0)):a.color=t(h.minColor).tweenTo(t(h.maxColor),2>d?.5:e/(d-1))})};f.prototype.hasData=function(){return!!(this.tickPositions||[]).length};f.prototype.setTickPositions=function(){if(!this.dataClasses)return b.prototype.setTickPositions.call(this)};f.prototype.initStops=function(){this.stops=this.options.stops||[[0,this.options.minColor],[1,this.options.maxColor]];this.stops.forEach(function(a){a.color=
-t(a[1])})};f.prototype.setOptions=function(a){b.prototype.setOptions.call(this,a);this.options.crosshair=this.options.marker};f.prototype.setAxisSize=function(){var a=this.legendItem&&this.legendItem.symbol,c=this.chart,e=c.options.legend||{},d,b;a?(this.left=e=a.attr("x"),this.top=d=a.attr("y"),this.width=b=a.attr("width"),this.height=a=a.attr("height"),this.right=c.chartWidth-e-b,this.bottom=c.chartHeight-d-a,this.len=this.horiz?b:a,this.pos=this.horiz?e:d):this.len=(this.horiz?e.symbolWidth:e.symbolHeight)||
-f.defaultLegendLength};f.prototype.normalizedValue=function(a){this.logarithmic&&(a=this.logarithmic.log2lin(a));return 1-(this.max-a)/(this.max-this.min||1)};f.prototype.toColor=function(a,c){var e=this.dataClasses,d=this.stops,b;if(e)for(b=e.length;b--;){var f=e[b];var l=f.from;d=f.to;if(("undefined"===typeof l||a>=l)&&("undefined"===typeof d||a<=d)){var g=f.color;c&&(c.dataClass=b,c.colorIndex=f.colorIndex);break}}else{a=this.normalizedValue(a);for(b=d.length;b--&&!(a>d[b][0]););l=d[b]||d[b+1];
-d=d[b+1]||l;a=1-(d[0]-a)/(d[0]-l[0]||1);g=l.color.tweenTo(d.color,a)}return g};f.prototype.getOffset=function(){var a=this.legendItem&&this.legendItem.group,c=this.chart.axisOffset[this.side];if(a){this.axisParent=a;b.prototype.getOffset.call(this);var e=this.chart.legend;e.allItems.forEach(function(a){a instanceof f&&a.drawLegendSymbol(e,a)});e.render();this.chart.getMargins(!0);this.added||(this.added=!0,this.labelLeft=0,this.labelRight=this.width);this.chart.axisOffset[this.side]=c}};f.prototype.setLegendColor=
-function(){var a=this.reversed,c=a?1:0;a=a?0:1;c=this.horiz?[c,0,a,0]:[0,a,0,c];this.legendColor={linearGradient:{x1:c[0],y1:c[1],x2:c[2],y2:c[3]},stops:this.stops}};f.prototype.drawLegendSymbol=function(a,c){c=c.legendItem||{};var e=a.padding,d=a.options,b=r(d.itemDistance,10),q=this.horiz,l=r(d.symbolWidth,q?f.defaultLegendLength:12),g=r(d.symbolHeight,q?12:f.defaultLegendLength);d=r(d.labelPadding,q?16:30);this.setLegendColor();c.symbol||(c.symbol=this.chart.renderer.rect(0,a.baseline-11,l,g).attr({zIndex:1}).add(c.group));
-c.labelWidth=l+e+(q?b:this.options.labels.x+this.maxLabelLength);c.labelHeight=g+e+(q?d:0)};f.prototype.setState=function(a){this.series.forEach(function(c){c.setState(a)})};f.prototype.setVisible=function(){};f.prototype.getSeriesExtremes=function(){var a=this.series,c=a.length,e;this.dataMin=Infinity;for(this.dataMax=-Infinity;c--;){var d=a[c];var b=d.colorKey=r(d.options.colorKey,d.colorKey,d.pointValKey,d.zoneAxis,"y");var f=d.pointArrayMap;var l=d[b+"Min"]&&d[b+"Max"];if(d[b+"Data"])var g=d[b+
-"Data"];else if(f){g=[];f=f.indexOf(b);var k=d.yData;if(0<=f&&k)for(e=0;e<k.length;e++)g.push(r(k[e][f],k[e]))}else g=d.yData;l?(d.minColorValue=d[b+"Min"],d.maxColorValue=d[b+"Max"]):(g=A.prototype.getExtremes.call(d,g),d.minColorValue=g.dataMin,d.maxColorValue=g.dataMax);"undefined"!==typeof d.minColorValue&&(this.dataMin=Math.min(this.dataMin,d.minColorValue),this.dataMax=Math.max(this.dataMax,d.maxColorValue));l||A.prototype.applyExtremes.call(d)}};f.prototype.drawCrosshair=function(a,c){var e=
-this.legendItem||{},d=c&&c.plotX,f=c&&c.plotY,k=this.pos,l=this.len;if(c){var g=this.toPixels(c.getNestedProperty(c.series.colorKey));g<k?g=k-2:g>k+l&&(g=k+l+2);c.plotX=g;c.plotY=this.len-g;b.prototype.drawCrosshair.call(this,a,c);c.plotX=d;c.plotY=f;this.cross&&!this.cross.addedToColorAxis&&e.group&&(this.cross.addClass("highcharts-coloraxis-marker").add(e.group),this.cross.addedToColorAxis=!0,this.chart.styledMode||"object"!==typeof this.crosshair||this.cross.attr({fill:this.crosshair.color}))}};
-f.prototype.getPlotLinePath=function(a){var c=this.left,e=a.translatedValue,d=this.top;return C(e)?this.horiz?[["M",e-4,d-6],["L",e+4,d-6],["L",e,d],["Z"]]:[["M",c,e],["L",c-6,e+6],["L",c-6,e-6],["Z"]]:b.prototype.getPlotLinePath.call(this,a)};f.prototype.update=function(a,c){var e=this.chart.legend;this.series.forEach(function(a){a.isDirtyData=!0});(a.dataClasses&&e.allItems||this.dataClasses)&&this.destroyItems();b.prototype.update.call(this,a,c);this.legendItem&&this.legendItem.label&&(this.setLegendColor(),
-e.colorizeItem(this,!0))};f.prototype.destroyItems=function(){var a=this.chart,c=this.legendItem||{};if(c.label)a.legend.destroyItem(this);else if(c.labels){var b=0;for(c=c.labels;b<c.length;b++)a.legend.destroyItem(c[b])}a.isDirtyLegend=!0};f.prototype.destroy=function(){this.chart.isDirtyLegend=!0;this.destroyItems();b.prototype.destroy.apply(this,[].slice.call(arguments))};f.prototype.remove=function(a){this.destroyItems();b.prototype.remove.call(this,a)};f.prototype.getDataClassLegendSymbols=
-function(){var a=this,c=a.chart,b=a.legendItem&&a.legendItem.labels||[],d=c.options.legend,f=r(d.valueDecimals,-1),k=r(d.valueSuffix,""),l=function(c){return a.series.reduce(function(a,b){a.push.apply(a,b.points.filter(function(a){return a.dataClass===c}));return a},[])},g;b.length||a.dataClasses.forEach(function(d,e){var h=d.from,m=d.to,n=c.numberFormatter,p=!0;g="";"undefined"===typeof h?g="< ":"undefined"===typeof m&&(g="> ");"undefined"!==typeof h&&(g+=n(h,f)+k);"undefined"!==typeof h&&"undefined"!==
-typeof m&&(g+=" - ");"undefined"!==typeof m&&(g+=n(m,f)+k);b.push(B({chart:c,name:g,options:{},drawLegendSymbol:y.drawRectangle,visible:!0,isDataClass:!0,setState:function(a){for(var c=0,d=l(e);c<d.length;c++)d[c].setState(a)},setVisible:function(){this.visible=p=a.visible=!p;for(var d=0,b=l(e);d<b.length;d++)b[d].setVisible(p);c.legend.colorizeItem(this,p)}},d))});return b};f.defaultColorAxisOptions=p;f.defaultLegendLength=200;f.keepProps=["legendItem"];return f}(b);Array.prototype.push.apply(b.keepProps,
-k.keepProps);"";return k});n(b,"masters/modules/coloraxis.src.js",[b["Core/Globals.js"],b["Core/Axis/Color/ColorAxis.js"]],function(b,k){b.ColorAxis=k;k.compose(b.Chart,b.Fx,b.Legend,b.Series)})});
-//# sourceMappingURL=coloraxis.js.map

+ 0 - 14
nicegui/elements/lib/highcharts_modules/current-date-indicator.js

@@ -1,14 +0,0 @@
-/*
- Highcharts Gantt JS v10.3.3 (2023-01-20)
-
- CurrentDateIndicator
-
- (c) 2010-2021 Lars A. V. Cabrera
-
- License: www.highcharts.com/license
-*/
-(function(a){"object"===typeof module&&module.exports?(a["default"]=a,module.exports=a):"function"===typeof define&&define.amd?define("highcharts/modules/current-date-indicator",["highcharts"],function(b){a(b);a.Highcharts=b;return a}):a("undefined"!==typeof Highcharts?Highcharts:void 0)})(function(a){function b(a,d,e,b){a.hasOwnProperty(d)||(a[d]=b.apply(null,e),"function"===typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:d,module:a[d]}})))}a=a?a._modules:
-{};b(a,"Extensions/CurrentDateIndication.js",[a["Core/Axis/Axis.js"],a["Core/Axis/PlotLineOrBand/PlotLineOrBand.js"],a["Core/Utilities.js"]],function(a,b,e){var d=e.addEvent,f=e.merge;e=e.wrap;var g={color:"#ccd6eb",width:2,label:{format:"%a, %b %d %Y, %H:%M",formatter:function(a,c){return this.axis.chart.time.dateFormat(c||"",a)},rotation:0,style:{fontSize:"10px"}}};d(a,"afterSetOptions",function(){var a=this.options,c=a.currentDateIndicator;c&&(c="object"===typeof c?f(g,c):f(g),c.value=Date.now(),
-c.className="highcharts-current-date-indicator",a.plotLines||(a.plotLines=[]),a.plotLines.push(c))});d(b,"render",function(){this.label&&this.label.attr({text:this.getLabelText(this.options.label)})});e(b.prototype,"getLabelText",function(a,c){var b=this.options;return b&&b.className&&-1!==b.className.indexOf("highcharts-current-date-indicator")&&b.label&&"function"===typeof b.label.formatter?(b.value=Date.now(),b.label.formatter.call(this,b.value,b.label.format)):a.call(this,c)})});b(a,"masters/modules/current-date-indicator.src.js",
-[],function(){})});
-//# sourceMappingURL=current-date-indicator.js.map

+ 0 - 20
nicegui/elements/lib/highcharts_modules/cylinder.js

@@ -1,20 +0,0 @@
-/*
- Highcharts JS v10.3.3 (2023-01-20)
-
- Highcharts cylinder module
-
- (c) 2010-2021 Kacper Madej
-
- License: www.highcharts.com/license
-*/
-(function(a){"object"===typeof module&&module.exports?(a["default"]=a,module.exports=a):"function"===typeof define&&define.amd?define("highcharts/modules/cylinder",["highcharts","highcharts/highcharts-3d"],function(h){a(h);a.Highcharts=h;return a}):a("undefined"!==typeof Highcharts?Highcharts:void 0)})(function(a){function h(a,d,l,b){a.hasOwnProperty(d)||(a[d]=b.apply(null,l),"function"===typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:d,module:a[d]}})))}
-a=a?a._modules:{};h(a,"Series/Cylinder/CylinderPoint.js",[a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,d){var l=this&&this.__extends||function(){var a=function(b,g){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var g in b)b.hasOwnProperty(g)&&(a[g]=b[g])};return a(b,g)};return function(b,g){function d(){this.constructor=b}a(b,g);b.prototype=null===g?Object.create(g):(d.prototype=g.prototype,new d)}}();d=d.extend;a=
-function(a){function b(){var b=null!==a&&a.apply(this,arguments)||this;b.options=void 0;b.series=void 0;return b}l(b,a);return b}(a.seriesTypes.column.prototype.pointClass);d(a.prototype,{shapeType:"cylinder"});return a});h(a,"Series/Cylinder/CylinderComposition.js",[a["Core/Color/Color.js"],a["Core/Globals.js"],a["Core/Math3D.js"],a["Core/Renderer/RendererRegistry.js"],a["Core/Utilities.js"]],function(a,d,l,b,h){var g=a.parse,m=d.charts,u=d.deg2rad,v=l.perspective;a=h.merge;var w=h.pick;b=b.getRendererType().prototype;
-var n=b.cuboidPath,p=function(c){return!c.some(function(c){return"C"===c[0]})};h=a(b.elements3d.cuboid,{parts:["top","bottom","front","back"],pathType:"cylinder",fillSetter:function(c){this.singleSetterForParts("fill",null,{front:c,back:c,top:g(c).brighten(.1).get(),bottom:g(c).brighten(-.1).get()});this.color=this.fill=c;return this}});b.elements3d.cylinder=h;b.cylinder=function(c){return this.element3d("cylinder",c)};b.cylinderPath=function(c){var a=m[this.chartIndex],e=n.call(this,c),f=!e.isTop,
-b=!e.isFront,d=this.getCylinderEnd(a,c);c=this.getCylinderEnd(a,c,!0);return{front:this.getCylinderFront(d,c),back:this.getCylinderBack(d,c),top:d,bottom:c,zIndexes:{top:f?3:0,bottom:f?0:3,front:b?2:1,back:b?1:2,group:e.zIndexes.group}}};b.getCylinderFront=function(c,a){c=c.slice(0,3);if(p(a)){var e=a[0];"M"===e[0]&&(c.push(a[2]),c.push(a[1]),c.push(["L",e[1],e[2]]))}else{e=a[0];var f=a[1];a=a[2];"M"===e[0]&&"C"===f[0]&&"C"===a[0]&&(c.push(["L",a[5],a[6]]),c.push(["C",a[3],a[4],a[1],a[2],f[5],f[6]]),
-c.push(["C",f[3],f[4],f[1],f[2],e[1],e[2]]))}c.push(["Z"]);return c};b.getCylinderBack=function(c,a){var e=[];if(p(c)){var f=c[0],b=c[2];"M"===f[0]&&"L"===b[0]&&(e.push(["M",b[1],b[2]]),e.push(c[3]),e.push(["L",f[1],f[2]]))}else"C"===c[2][0]&&e.push(["M",c[2][5],c[2][6]]),e.push(c[3],c[4]);p(a)?(f=a[0],"M"===f[0]&&(e.push(["L",f[1],f[2]]),e.push(a[3]),e.push(a[2]))):(c=a[2],f=a[3],a=a[4],"C"===c[0]&&"C"===f[0]&&"C"===a[0]&&(e.push(["L",a[5],a[6]]),e.push(["C",a[3],a[4],a[1],a[2],f[5],f[6]]),e.push(["C",
-f[3],f[4],f[1],f[2],c[5],c[6]])));e.push(["Z"]);return e};b.getCylinderEnd=function(a,b,e){var c=b.width;c=void 0===c?0:c;var d=b.height,g=void 0===d?0:d;d=b.alphaCorrection;var h=void 0===d?0:d;d=w(b.depth,c,0);var k=Math.min(c,d)/2;h=u*(a.options.chart.options3d.beta-90+h);e=(b.y||0)+(e?g:0);g=.5519*k;var l=c/2+(b.x||0),p=d/2+(b.z||0),n=[{x:0,y:e,z:k},{x:g,y:e,z:k},{x:k,y:e,z:g},{x:k,y:e,z:0},{x:k,y:e,z:-g},{x:g,y:e,z:-k},{x:0,y:e,z:-k},{x:-g,y:e,z:-k},{x:-k,y:e,z:-g},{x:-k,y:e,z:0},{x:-k,y:e,z:g},
-{x:-g,y:e,z:k},{x:0,y:e,z:k}],m=Math.cos(h),t=Math.sin(h),q,r;n.forEach(function(a,c){q=a.x;r=a.z;n[c].x=q*m-r*t+l;n[c].z=r*m+q*t+p});a=v(n,a,!0);return 2.5>Math.abs(a[3].y-a[9].y)&&2.5>Math.abs(a[0].y-a[6].y)?this.toLinePath([a[0],a[3],a[6],a[9]],!0):this.getCurvedPath(a)};b.getCurvedPath=function(a){var c=[["M",a[0].x,a[0].y]],b=a.length-2,f;for(f=1;f<b;f+=3)c.push(["C",a[f].x,a[f].y,a[f+1].x,a[f+1].y,a[f+2].x,a[f+2].y]);return c}});h(a,"Series/Cylinder/CylinderSeries.js",[a["Series/Cylinder/CylinderPoint.js"],
-a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,d,h){var b=this&&this.__extends||function(){var a=function(b,d){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return a(b,d)};return function(b,d){function g(){this.constructor=b}a(b,d);b.prototype=null===d?Object.create(d):(g.prototype=d.prototype,new g)}}(),l=d.seriesTypes.column,g=h.extend,m=h.merge;h=function(a){function d(){var b=
-null!==a&&a.apply(this,arguments)||this;b.data=void 0;b.options=void 0;b.points=void 0;return b}b(d,a);d.defaultOptions=m(l.defaultOptions);return d}(l);g(h.prototype,{pointClass:a});d.registerSeriesType("cylinder",h);"";return h});h(a,"masters/modules/cylinder.src.js",[],function(){})});
-//# sourceMappingURL=cylinder.js.map

+ 0 - 42
nicegui/elements/lib/highcharts_modules/data.js

@@ -1,42 +0,0 @@
-/*
- Highcharts JS v10.3.3 (2023-01-20)
-
- Data module
-
- (c) 2012-2021 Torstein Honsi
-
- License: www.highcharts.com/license
-*/
-(function(a){"object"===typeof module&&module.exports?(a["default"]=a,module.exports=a):"function"===typeof define&&define.amd?define("highcharts/modules/data",["highcharts"],function(r){a(r);a.Highcharts=r;return a}):a("undefined"!==typeof Highcharts?Highcharts:void 0)})(function(a){function r(a,c,B,r){a.hasOwnProperty(c)||(a[c]=r.apply(null,B),"function"===typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:c,module:a[c]}})))}a=a?a._modules:{};r(a,"Core/HttpUtilities.js",
-[a["Core/Globals.js"],a["Core/Utilities.js"]],function(a,c){var r=a.doc,t=c.createElement,C=c.discardElement,D=c.merge,u=c.objectEach,G={ajax:function(a){var c={json:"application/json",xml:"application/xml",text:"text/plain",octet:"application/octet-stream"},m=new XMLHttpRequest;if(!a.url)return!1;m.open((a.type||"get").toUpperCase(),a.url,!0);a.headers&&a.headers["Content-Type"]||m.setRequestHeader("Content-Type",c[a.dataType||"json"]||c.text);u(a.headers,function(a,c){m.setRequestHeader(c,a)});
-a.responseType&&(m.responseType=a.responseType);m.onreadystatechange=function(){if(4===m.readyState){if(200===m.status){if("blob"!==a.responseType){var c=m.responseText;if("json"===a.dataType)try{c=JSON.parse(c)}catch(y){if(y instanceof Error){a.error&&a.error(m,y);return}}}return a.success&&a.success(c,m)}a.error&&a.error(m,m.responseText)}};a.data&&"string"!==typeof a.data&&(a.data=JSON.stringify(a.data));m.send(a.data)},getJSON:function(a,c){G.ajax({url:a,success:c,dataType:"json",headers:{"Content-Type":"text/plain"}})},
-post:function(a,c,m){var x=t("form",D({method:"post",action:a,enctype:"multipart/form-data"},m),{display:"none"},r.body);u(c,function(a,c){t("input",{type:"hidden",name:c,value:a},void 0,x)});x.submit();C(x)}};"";return G});r(a,"Extensions/Data.js",[a["Core/Chart/Chart.js"],a["Core/Defaults.js"],a["Core/Globals.js"],a["Core/HttpUtilities.js"],a["Core/Series/Point.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,c,r,L,C,D,u){function t(a){return!(!a||!(a.rowsURL||a.csvURL||
-a.columnsURL))}var B=c.getOptions,M=r.doc,m=L.ajax,x=D.seriesTypes;c=u.addEvent;var y=u.defined,N=u.extend,O=u.fireEvent,I=u.isNumber,A=u.merge,P=u.objectEach,E=u.pick,Q=u.splat,K=function(){function a(b,g,f){void 0===g&&(g={});this.rowsToColumns=a.rowsToColumns;this.dateFormats={"YYYY/mm/dd":{regex:/^([0-9]{4})[\-\/\.]([0-9]{1,2})[\-\/\.]([0-9]{1,2})$/,parser:function(b){return b?Date.UTC(+b[1],b[2]-1,+b[3]):NaN}},"dd/mm/YYYY":{regex:/^([0-9]{1,2})[\-\/\.]([0-9]{1,2})[\-\/\.]([0-9]{4})$/,parser:function(b){return b?
-Date.UTC(+b[3],b[2]-1,+b[1]):NaN},alternative:"mm/dd/YYYY"},"mm/dd/YYYY":{regex:/^([0-9]{1,2})[\-\/\.]([0-9]{1,2})[\-\/\.]([0-9]{4})$/,parser:function(b){return b?Date.UTC(+b[3],b[1]-1,+b[2]):NaN}},"dd/mm/YY":{regex:/^([0-9]{1,2})[\-\/\.]([0-9]{1,2})[\-\/\.]([0-9]{2})$/,parser:function(b){if(!b)return NaN;var d=+b[3];d=d>(new Date).getFullYear()-2E3?d+1900:d+2E3;return Date.UTC(d,b[2]-1,+b[1])},alternative:"mm/dd/YY"},"mm/dd/YY":{regex:/^([0-9]{1,2})[\-\/\.]([0-9]{1,2})[\-\/\.]([0-9]{2})$/,parser:function(b){return b?
-Date.UTC(+b[3]+2E3,b[1]-1,+b[2]):NaN}}};this.chart=f;this.chartOptions=g;this.options=b;this.rawColumns=[];this.init(b,g,f)}a.data=function(b,g,f){void 0===g&&(g={});return new a(b,g,f)};a.rowsToColumns=function(b){var g,f;if(b){var a=[];var d=b.length;for(g=0;g<d;g++){var k=b[g].length;for(f=0;f<k;f++)a[f]||(a[f]=[]),a[f][g]=b[g][f]}}return a};a.prototype.init=function(b,g,a){var f=b.decimalPoint;g&&(this.chartOptions=g);a&&(this.chart=a);"."!==f&&","!==f&&(f=void 0);this.options=b;this.columns=
-b.columns||this.rowsToColumns(b.rows)||[];this.firstRowAsNames=E(b.firstRowAsNames,this.firstRowAsNames,!0);this.decimalRegex=f&&new RegExp("^(-?[0-9]+)"+f+"([0-9]+)$");void 0!==this.liveDataTimeout&&clearTimeout(this.liveDataTimeout);this.rawColumns=[];if(this.columns.length){this.dataFound();var d=!t(b)}d||(d=this.fetchLiveData());d||(d=!!this.parseCSV().length);d||(d=!!this.parseTable().length);d||(d=this.parseGoogleSpreadsheet());!d&&b.afterComplete&&b.afterComplete()};a.prototype.getColumnDistribution=
-function(){var b=this.chartOptions,g=this.options,a=[],e=function(b){return(x[b||"line"].prototype.pointArrayMap||[0]).length},d=b&&b.chart&&b.chart.type,k=[],h=[];g=g&&g.seriesMapping||b&&b.series&&b.series.map(function(){return{x:0}})||[];var w=0,p;(b&&b.series||[]).forEach(function(b){k.push(e(b.type||d))});g.forEach(function(b){a.push(b.x||0)});0===a.length&&a.push(0);g.forEach(function(g){var a=new J,f=k[w]||e(d),l=(b&&b.series||[])[w]||{},c=x[l.type||d||"line"].prototype.pointArrayMap,m=c||
-["y"];(y(g.x)||l.isCartesian||!c)&&a.addColumnReader(g.x,"x");P(g,function(b,g){"x"!==g&&a.addColumnReader(b,g)});for(p=0;p<f;p++)a.hasReader(m[p])||a.addColumnReader(void 0,m[p]);h.push(a);w++});g=x[d||"line"].prototype.pointArrayMap;"undefined"===typeof g&&(g=["y"]);this.valueCount={global:e(d),xColumns:a,individual:k,seriesBuilders:h,globalPointArrayMap:g}};a.prototype.dataFound=function(){this.options.switchRowsAndColumns&&(this.columns=this.rowsToColumns(this.columns));this.getColumnDistribution();
-this.parseTypes();!1!==this.parsed()&&this.complete()};a.prototype.parseCSV=function(b){function g(b,g,a,d){function f(g){h=b[g];c=b[g-1];m=b[g+1]}function e(b){l.length<v+1&&l.push([b]);l[v][l[v].length-1]!==b&&l[v].push(b)}function n(){w>t||t>p?(++t,q=""):(!isNaN(parseFloat(q))&&isFinite(q)?(q=parseFloat(q),e("number")):isNaN(Date.parse(q))?e("string"):(q=q.replace(/\//g,"-"),e("date")),k.length<v+1&&k.push([]),a||(k[v][g]=q),q="",++v,++t)}var z=0,h="",c="",m="",q="",t=0,v=0;if(b.trim().length&&
-"#"!==b.trim()[0]){for(;z<b.length;z++)if(f(z),'"'===h)for(f(++z);z<b.length&&('"'!==h||'"'===c||'"'===m);){if('"'!==h||'"'===h&&'"'!==c)q+=h;f(++z)}else d&&d[h]?d[h](h,q)&&n():h===F?n():q+=h;n()}}function a(b){var g=0,a=0,f=!1;b.some(function(b,d){var f=!1,e="";if(13<d)return!0;for(var h=0;h<b.length;h++){d=b[h];var k=b[h+1];var c=b[h-1];if("#"===d)break;if('"'===d)if(f){if('"'!==c&&'"'!==k){for(;" "===k&&h<b.length;)k=b[++h];"undefined"!==typeof n[k]&&n[k]++;f=!1}}else f=!0;else"undefined"!==typeof n[d]?
-(e=e.trim(),isNaN(Date.parse(e))?!isNaN(e)&&isFinite(e)||n[d]++:n[d]++,e=""):e+=d;","===d&&a++;"."===d&&g++}});f=n[";"]>n[","]?";":",";h.decimalPoint||(h.decimalPoint=g>a?".":",",d.decimalRegex=new RegExp("^(-?[0-9]+)"+h.decimalPoint+"([0-9]+)$"));return f}function e(b,g){var a=[],f=[],e=[],k=0,n=!1,c;if(!g||g>b.length)g=b.length;for(;k<g;k++)if("undefined"!==typeof b[k]&&b[k]&&b[k].length){var l=b[k].trim().replace(/\//g," ").replace(/\-/g," ").replace(/\./g," ").split(" ");e=["","",""];for(c=0;c<
-l.length;c++)c<e.length&&(l[c]=parseInt(l[c],10),l[c]&&(f[c]=!f[c]||f[c]<l[c]?l[c]:f[c],"undefined"!==typeof a[c]?a[c]!==l[c]&&(a[c]=!1):a[c]=l[c],31<l[c]?e[c]=100>l[c]?"YY":"YYYY":12<l[c]&&31>=l[c]?(e[c]="dd",n=!0):e[c].length||(e[c]="mm")))}if(n){for(c=0;c<a.length;c++)!1!==a[c]?12<f[c]&&"YY"!==e[c]&&"YYYY"!==e[c]&&(e[c]="YY"):12<f[c]&&"mm"===e[c]&&(e[c]="dd");3===e.length&&"dd"===e[1]&&"dd"===e[2]&&(e[2]="YY");b=e.join("/");return(h.dateFormats||d.dateFormats)[b]?b:(O("deduceDateFailed"),"YYYY/mm/dd")}return"YYYY/mm/dd"}
-var d=this,k=this.columns=[],h=b||this.options,w="undefined"!==typeof h.startColumn&&h.startColumn?h.startColumn:0,p=h.endColumn||Number.MAX_VALUE,l=[],n={",":0,";":0,"\t":0},c=h.csv;b="undefined"!==typeof h.startRow&&h.startRow?h.startRow:0;var m=h.endRow||Number.MAX_VALUE,q=0;c&&h.beforeParse&&(c=h.beforeParse.call(this,c));if(c){c=c.replace(/\r\n/g,"\n").replace(/\r/g,"\n").split(h.lineDelimiter||"\n");if(!b||0>b)b=0;if(!m||m>=c.length)m=c.length-1;if(h.itemDelimiter)var F=h.itemDelimiter;else F=
-null,F=a(c);var t=0;for(q=b;q<=m;q++)"#"===c[q][0]?t++:g(c[q],q-b-t);h.columnTypes&&0!==h.columnTypes.length||!l.length||!l[0].length||"date"!==l[0][1]||h.dateFormat||(h.dateFormat=e(k[0]));this.dataFound()}return k};a.prototype.parseTable=function(){var b=this.options,g=this.columns||[],a=b.startRow||0,e=b.endRow||Number.MAX_VALUE,d=b.startColumn||0,c=b.endColumn||Number.MAX_VALUE;b.table&&(b=b.table,"string"===typeof b&&(b=M.getElementById(b)),[].forEach.call(b.getElementsByTagName("tr"),function(b,
-f){f>=a&&f<=e&&[].forEach.call(b.children,function(b,e){var k=g[e-d],h=1;if(("TD"===b.tagName||"TH"===b.tagName)&&e>=d&&e<=c)for(g[e-d]||(g[e-d]=[]),g[e-d][f-a]=b.innerHTML;f-a>=h&&void 0===k[f-a-h];)k[f-a-h]=null,h++})}),this.dataFound());return g};a.prototype.fetchLiveData=function(){function b(g){function k(c,k,l){function n(){d&&f.liveDataURL===c&&(a.liveDataTimeout=setTimeout(b,w))}if(!c||!/^(http|\/|\.\/|\.\.\/)/.test(c))return c&&e.error&&e.error("Invalid URL"),!1;g&&(clearTimeout(a.liveDataTimeout),
-f.liveDataURL=c);m({url:c,dataType:l||"json",success:function(b){f&&f.series&&k(b);n()},error:function(b,a){3>++h&&n();return e.error&&e.error(a,b)}});return!0}k(c.csvURL,function(b){f.update({data:{csv:b}})},"text")||k(c.rowsURL,function(b){f.update({data:{rows:b}})})||k(c.columnsURL,function(b){f.update({data:{columns:b}})})}var a=this,f=this.chart,e=this.options,d=e.enablePolling,c=A(e),h=0,w=1E3*(e.dataRefreshRate||2);if(!t(e))return!1;1E3>w&&(w=1E3);delete e.csvURL;delete e.rowsURL;delete e.columnsURL;
-b(!0);return t(e)};a.prototype.parseGoogleSpreadsheet=function(){function b(g){var d=["https://sheets.googleapis.com/v4/spreadsheets",c,"values",h(),"?alt=json&majorDimension=COLUMNS&valueRenderOption=UNFORMATTED_VALUE&dateTimeRenderOption=FORMATTED_STRING&key="+f.googleAPIKey].join("/");m({url:d,dataType:"json",success:function(d){g(d);f.enablePolling&&(a.liveDataTimeout=setTimeout(function(){b(g)},k))},error:function(b,a){return f.error&&f.error(a,b)}})}var a=this,f=this.options,c=f.googleSpreadsheetKey,
-d=this.chart,k=Math.max(1E3*(f.dataRefreshRate||2),4E3),h=function(){if(f.googleSpreadsheetRange)return f.googleSpreadsheetRange;var b=("ABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(f.startColumn||0)||"A")+((f.startRow||0)+1),a="ABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(E(f.endColumn,-1))||"ZZ";y(f.endRow)&&(a+=f.endRow+1);return""+b+":".concat(a)};c&&(delete f.googleSpreadsheetKey,b(function(b){b=b.values;if(!b||0===b.length)return!1;var g=b.reduce(function(b,a){return Math.max(b,a.length)},0);b.forEach(function(b){for(var a=
-0;a<g;a++)"undefined"===typeof b[a]&&(b[a]=null)});d&&d.series?d.update({data:{columns:b}}):(a.columns=b,a.dataFound())}));return!1};a.prototype.trim=function(b,a){"string"===typeof b&&(b=b.replace(/^\s+|\s+$/g,""),a&&/^[0-9\s]+$/.test(b)&&(b=b.replace(/\s/g,"")),this.decimalRegex&&(b=b.replace(this.decimalRegex,"$1.$2")));return b};a.prototype.parseTypes=function(){for(var b=this.columns||[],a=b.length;a--;)this.parseColumn(b[a],a)};a.prototype.parseColumn=function(b,a){var f=this.rawColumns,c=this.columns,
-d=this.firstRowAsNames,g=-1!==this.valueCount.xColumns.indexOf(a),h=[],m=this.chartOptions,p=(this.options.columnTypes||[])[a];m=g&&(m&&m.xAxis&&"category"===Q(m.xAxis)[0].type||"string"===p);var l=y(b.name),n=b.length,t,r;for(f[a]||(f[a]=[]);n--;){var q=h[n]||b[n];var u=this.trim(q);var H=this.trim(q,!0);var v=parseFloat(H);"undefined"===typeof f[a][n]&&(f[a][n]=u);m||0===n&&d&&!l?b[n]=""+u:+H===v?(b[n]=v,31536E6<v&&"float"!==p?b.isDatetime=!0:b.isNumeric=!0,"undefined"!==typeof b[n+1]&&(r=v>b[n+
-1])):(u&&u.length&&(t=this.parseDate(q)),g&&I(t)&&"float"!==p?(h[n]=q,b[n]=t,b.isDatetime=!0,"undefined"!==typeof b[n+1]&&(q=t>b[n+1],q!==r&&"undefined"!==typeof r&&(this.alternativeFormat?(this.dateFormat=this.alternativeFormat,n=b.length,this.alternativeFormat=this.dateFormats[this.dateFormat].alternative):b.unsorted=!0),r=q)):(b[n]=""===u?null:u,0!==n&&(b.isDatetime||b.isNumeric)&&(b.mixed=!0)))}g&&b.mixed&&(c[a]=f[a]);if(g&&r&&this.options.sort)for(a=0;a<c.length;a++)c[a].reverse(),d&&c[a].unshift(c[a].pop())};
-a.prototype.parseDate=function(b){var a=this.options.parseDate,c,e=this.options.dateFormat||this.dateFormat,d;if(a)var k=a(b);else if("string"===typeof b){if(e)(a=this.dateFormats[e])||(a=this.dateFormats["YYYY/mm/dd"]),(d=b.match(a.regex))&&(k=a.parser(d));else for(c in this.dateFormats)if(a=this.dateFormats[c],d=b.match(a.regex)){this.dateFormat=c;this.alternativeFormat=a.alternative;k=a.parser(d);break}d||(b.match(/:.+(GMT|UTC|[Z+-])/)&&(b=b.replace(/\s*(?:GMT|UTC)?([+-])(\d\d)(\d\d)$/,"$1$2:$3").replace(/(?:\s+|GMT|UTC)([+-])/,
-"$1").replace(/(\d)\s*(?:GMT|UTC|Z)$/,"$1+00:00")),d=Date.parse(b),"object"===typeof d&&null!==d&&d.getTime?k=d.getTime()-6E4*d.getTimezoneOffset():I(d)&&(k=d-6E4*(new Date(d)).getTimezoneOffset()))}return k};a.prototype.getData=function(){if(this.columns)return this.rowsToColumns(this.columns).slice(1)};a.prototype.parsed=function(){if(this.options.parsed)return this.options.parsed.call(this,this.columns)};a.prototype.complete=function(){var b=this.columns,a=this.options,c=[],e,d,k;if(a.complete||
-a.afterComplete){if(this.firstRowAsNames)for(d=0;d<b.length;d++){var h=b[d];y(h.name)||(h.name=E(h.shift(),"").toString())}h=[];var m=b.length;var p=this.valueCount.seriesBuilders;d=[];var l=[];for(k=0;k<m;k+=1)d.push(!0);for(m=0;m<p.length;m+=1){var n=p[m].getReferencedColumnIndexes();for(k=0;k<n.length;k+=1)d[n[k]]=!1}for(k=0;k<d.length;k+=1)d[k]&&l.push(k);for(d=0;d<this.valueCount.seriesBuilders.length;d++)p=this.valueCount.seriesBuilders[d],p.populateColumns(l)&&c.push(p);for(;0<l.length;){p=
-new J;p.addColumnReader(0,"x");d=l.indexOf(0);-1!==d&&l.splice(d,1);for(d=0;d<this.valueCount.global;d++)p.addColumnReader(void 0,this.valueCount.globalPointArrayMap[d]);p.populateColumns(l)&&c.push(p)}0<c.length&&0<c[0].readers.length&&(l=b[c[0].readers[0].columnIndex],"undefined"!==typeof l&&(l.isDatetime?e="datetime":l.isNumeric||(e="category")));if("category"===e)for(d=0;d<c.length;d++)for(p=c[d],l=0;l<p.readers.length;l++)"x"===p.readers[l].configName&&(p.readers[l].configName="name");for(d=
-0;d<c.length;d++){p=c[d];l=[];for(k=0;k<b[0].length;k++)l[k]=p.read(b,k);h[d]={data:l};p.name&&(h[d].name=p.name);"category"===e&&(h[d].turboThreshold=0)}b={series:h};e&&(b.xAxis={type:e},"category"===e&&(b.xAxis.uniqueNames=!1));a.complete&&a.complete(b);a.afterComplete&&a.afterComplete(b)}};a.prototype.update=function(b,a){var c=this.chart,e=c.options;b&&(b.afterComplete=function(b){b&&(b.xAxis&&c.xAxis[0]&&b.xAxis.type===c.xAxis[0].options.type&&delete b.xAxis,c.update(b,a,!0))},A(!0,e.data,b),
-e.data&&e.data.googleSpreadsheetKey&&!b.columns&&delete e.data.columns,this.init(e.data))};return a}();c(a,"init",function(a){var b=this,c=a.args[1],f=B().data,e=a.args[0]||{};(f||e&&e.data)&&!b.hasDataDef&&(b.hasDataDef=!0,f=A(f,e.data),b.data=new K(N(f,{afterComplete:function(a){var d;if(Object.hasOwnProperty.call(e,"series"))if("object"===typeof e.series)for(d=Math.max(e.series.length,a&&a.series?a.series.length:0);d--;){var f=e.series[d]||{};e.series[d]=A(f,a&&a.series?a.series[d]:{})}else delete e.series;
-e=A(a,e);b.init(e,c)}}),e,b),a.preventDefault())});var J=function(){function a(){this.readers=[];this.pointIsArray=!0}a.prototype.populateColumns=function(b){var a=!0;this.readers.forEach(function(a){"undefined"===typeof a.columnIndex&&(a.columnIndex=b.shift())});this.readers.forEach(function(b){"undefined"===typeof b.columnIndex&&(a=!1)});return a};a.prototype.read=function(b,a){var c=this.pointIsArray,e=c?[]:{};this.readers.forEach(function(d){var f=b[d.columnIndex][a];c?e.push(f):0<d.configName.indexOf(".")?
-C.prototype.setNestedProperty(e,f,d.configName):e[d.configName]=f});if("undefined"===typeof this.name&&2<=this.readers.length){var d=this.getReferencedColumnIndexes();2<=d.length&&(d.shift(),d.sort(function(b,a){return b-a}),this.name=b[d.shift()].name)}return e};a.prototype.addColumnReader=function(b,a){this.readers.push({columnIndex:b,configName:a});"x"!==a&&"y"!==a&&"undefined"!==typeof a&&(this.pointIsArray=!1)};a.prototype.getReferencedColumnIndexes=function(){var b=[],a;for(a=0;a<this.readers.length;a+=
-1){var c=this.readers[a];"undefined"!==typeof c.columnIndex&&b.push(c.columnIndex)}return b};a.prototype.hasReader=function(b){var a;for(a=0;a<this.readers.length;a+=1){var c=this.readers[a];if(c.configName===b)return!0}};return a}();"";return K});r(a,"masters/modules/data.src.js",[a["Core/Globals.js"],a["Core/HttpUtilities.js"],a["Extensions/Data.js"]],function(a,c,r){a.ajax=c.ajax;a.data=r.data;a.getJSON=c.getJSON;a.post=c.post;a.Data=r;a.HttpUtilities=c})});
-//# sourceMappingURL=data.js.map

+ 0 - 32
nicegui/elements/lib/highcharts_modules/datagrouping.js

@@ -1,32 +0,0 @@
-/*
- Highstock JS v10.3.3 (2023-01-20)
-
- Data grouping module
-
- (c) 2010-2021 Torstein Hnsi
-
- License: www.highcharts.com/license
-*/
-(function(a){"object"===typeof module&&module.exports?(a["default"]=a,module.exports=a):"function"===typeof define&&define.amd?define("highcharts/modules/datagrouping",["highcharts"],function(g){a(g);a.Highcharts=g;return a}):a("undefined"!==typeof Highcharts?Highcharts:void 0)})(function(a){function g(a,b,h,q){a.hasOwnProperty(b)||(a[b]=q.apply(null,h),"function"===typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:b,module:a[b]}})))}a=a?a._modules:{};
-g(a,"Extensions/DataGrouping/ApproximationRegistry.js",[],function(){return{}});g(a,"Extensions/DataGrouping/ApproximationDefaults.js",[a["Extensions/DataGrouping/ApproximationRegistry.js"],a["Core/Utilities.js"]],function(a,b){function h(c){var a=c.length;c=q(c);k(c)&&a&&(c=g(c/a));return c}function q(a){var c=a.length;if(!c&&a.hasNulls)var b=null;else if(c)for(b=0;c--;)b+=a[c];return b}var d=b.arrayMax,l=b.arrayMin,g=b.correctFloat,G=b.extend,k=b.isNumber;b={average:h,averages:function(){var a=
-[];[].forEach.call(arguments,function(c){a.push(h(c))});return"undefined"===typeof a[0]?void 0:a},close:function(a){return a.length?a[a.length-1]:a.hasNulls?null:void 0},high:function(a){return a.length?d(a):a.hasNulls?null:void 0},hlc:function(c,b,e){c=a.high(c);b=a.low(b);e=a.close(e);if(k(c)||k(b)||k(e))return[c,b,e]},low:function(a){return a.length?l(a):a.hasNulls?null:void 0},ohlc:function(c,b,e,u){c=a.open(c);b=a.high(b);e=a.low(e);u=a.close(u);if(k(c)||k(b)||k(e)||k(u))return[c,b,e,u]},open:function(a){return a.length?
-a[0]:a.hasNulls?null:void 0},range:function(b,d){b=a.low(b);d=a.high(d);if(k(b)||k(d))return[b,d];if(null===b&&null===d)return null},sum:q};G(a,b);return b});g(a,"Extensions/DataGrouping/DataGroupingDefaults.js",[],function(){return{common:{groupPixelWidth:2,dateTimeLabelFormats:{millisecond:["%A, %b %e, %H:%M:%S.%L","%A, %b %e, %H:%M:%S.%L","-%H:%M:%S.%L"],second:["%A, %b %e, %H:%M:%S","%A, %b %e, %H:%M:%S","-%H:%M:%S"],minute:["%A, %b %e, %H:%M","%A, %b %e, %H:%M","-%H:%M"],hour:["%A, %b %e, %H:%M",
-"%A, %b %e, %H:%M","-%H:%M"],day:["%A, %b %e, %Y","%A, %b %e","-%A, %b %e, %Y"],week:["Week from %A, %b %e, %Y","%A, %b %e","-%A, %b %e, %Y"],month:["%B %Y","%B","-%B %Y"],year:["%Y","%Y","-%Y"]}},seriesSpecific:{line:{},spline:{},area:{},areaspline:{},arearange:{},column:{groupPixelWidth:10},columnrange:{groupPixelWidth:10},candlestick:{groupPixelWidth:10},ohlc:{groupPixelWidth:5},hlc:{groupPixelWidth:5},heikinashi:{groupPixelWidth:10}},units:[["millisecond",[1,2,5,10,20,25,50,100,200,500]],["second",
-[1,2,5,10,15,30]],["minute",[1,2,5,10,15,30]],["hour",[1,2,3,4,6,8,12]],["day",[1]],["week",[1]],["month",[1,3,6]],["year",null]]}});g(a,"Extensions/DataGrouping/DataGroupingAxisComposition.js",[a["Extensions/DataGrouping/DataGroupingDefaults.js"],a["Core/Utilities.js"]],function(a,b){function d(a){var b=this,u=b.series;u.forEach(function(a){a.groupPixelWidth=void 0});u.forEach(function(u){u.groupPixelWidth=b.getGroupPixelWidth&&b.getGroupPixelWidth();u.groupPixelWidth&&(u.hasProcessed=!0);u.applyGrouping(!!a.hasExtremesChanged)})}
-function q(){for(var b=this.series,d=b.length,e=0,k=!1,g,r;d--;)if(r=b[d].options.dataGrouping)if(e=Math.max(e,c(r.groupPixelWidth,a.common.groupPixelWidth)),g=(b[d].processedXData||b[d].data).length,b[d].groupPixelWidth||g>this.chart.plotSizeX/e||g&&r.forced)k=!0;return k?e:0}function g(){this.series.forEach(function(a){a.hasProcessed=!1})}function l(a,b){var d;b=c(b,!0);a||(a={forced:!1,units:null});if(this instanceof e)for(d=this.series.length;d--;)this.series[d].update({dataGrouping:a},!1);else this.chart.options.series.forEach(function(b){b.dataGrouping=
-"boolean"===typeof a?a:k(a,b.dataGrouping)});this.ordinal&&(this.ordinal.slope=void 0);b&&this.chart.redraw()}var K=b.addEvent,G=b.extend,k=b.merge,c=b.pick,p=[],e;return{compose:function(a){e=a;-1===p.indexOf(a)&&(p.push(a),K(a,"afterSetScale",g),K(a,"postProcessData",d),G(a.prototype,{applyGrouping:d,getGroupPixelWidth:q,setDataGrouping:l}))}}});g(a,"Extensions/DataGrouping/DataGroupingSeriesComposition.js",[a["Extensions/DataGrouping/ApproximationRegistry.js"],a["Extensions/DataGrouping/DataGroupingDefaults.js"],
-a["Core/Axis/DateTimeAxis.js"],a["Core/Defaults.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,b,g,q,D,l){function d(a){var c=this.chart,d=this.options.dataGrouping,e=!1!==this.allowDG&&d&&v(d.enabled,c.options.isStock),f=this.visible||!c.options.chart.ignoreHiddenSeries,A=this.currentDataGrouping,k=!1;e&&!this.requireSorting&&(this.requireSorting=k=!0);a=!1===!(this.isCartesian&&!this.isDirty&&!this.xAxis.isDirty&&!this.yAxis.isDirty&&!a)||!e;k&&(this.requireSorting=!1);
-if(!a){this.destroyGroupedData();var y=d.groupAll?this.xData:this.processedXData,q=d.groupAll?this.yData:this.processedYData;e=c.plotSizeX;a=this.xAxis;var l=a.options.ordinal,h=this.groupPixelWidth;k=void 0;if(h&&y&&y.length&&e){this.isDirty=k=!0;this.points=null;var m=a.getExtremes();var n=m.min;m=m.max;l=l&&a.ordinal&&a.ordinal.getGroupIntervalFactor(n,m,this)||1;e=a.getTimeTicks(g.Additions.prototype.normalizeTimeTickInterval(h*(m-n)/e*l,d.units||b.units),Math.min(n,y[0]),Math.max(m,y[y.length-
-1]),a.options.startOfWeek,y,this.closestPointRange);h=u.groupData.apply(this,[y,q,e,d.approximation]);y=h.groupedXData;q=h.groupedYData;l=0;d&&d.smoothed&&y.length&&(d.firstAnchor="firstPoint",d.anchor="middle",d.lastAnchor="lastPoint",F(32,!1,c,{"dataGrouping.smoothed":"use dataGrouping.anchor"}));c=y;var E=this.options.dataGrouping;n=this.currentDataGrouping&&this.currentDataGrouping.gapSize;if(E&&this.xData&&n&&this.groupMap){var z=c.length-1;var x=E.anchor;var C=v(E.firstAnchor,x);E=v(E.lastAnchor,
-x);if(x&&"start"!==x){var w=n*{middle:.5,end:1}[x];for(x=c.length-1;x--&&0<x;)c[x]+=w}if(C&&"start"!==C&&this.xData[0]>=c[0]){x=this.groupMap[0].start;w=this.groupMap[0].length;var p=void 0;r(x)&&r(w)&&(p=x+(w-1));c[0]={middle:c[0]+.5*n,end:c[0]+n,firstPoint:this.xData[0],lastPoint:p&&this.xData[p]}[C]}E&&"start"!==E&&n&&c[z]>=m-n&&(m=this.groupMap[this.groupMap.length-1].start,c[z]={middle:c[z]+.5*n,end:c[z]+n,firstPoint:m&&this.xData[m],lastPoint:this.xData[this.xData.length-1]}[E])}for(m=1;m<e.length;m++)e.info.segmentStarts&&
--1!==e.info.segmentStarts.indexOf(m)||(l=Math.max(e[m]-e[m-1],l));m=e.info;m.gapSize=l;this.closestPointRange=e.info.totalRange;this.groupMap=h.groupMap;if(f){f=y;if(H(f[0])&&r(a.min)&&r(a.dataMin)&&f[0]<a.min){if(!H(a.options.min)&&a.min<=a.dataMin||a.min===a.dataMin)a.min=Math.min(f[0],a.min);a.dataMin=Math.min(f[0],a.dataMin)}if(H(f[f.length-1])&&r(a.max)&&r(a.dataMax)&&f[f.length-1]>a.max){if(!H(a.options.max)&&r(a.dataMax)&&a.max>=a.dataMax||a.max===a.dataMax)a.max=Math.max(f[f.length-1],a.max);
-a.dataMax=Math.max(f[f.length-1],a.dataMax)}}d.groupAll&&(this.allGroupedData=q,d=this.cropData(y,q,a.min,a.max,1),y=d.xData,q=d.yData,this.cropStart=d.start);this.processedXData=y;this.processedYData=q}else this.groupMap=null;this.hasGroupedData=k;this.currentDataGrouping=m;this.preventGraphAnimation=(A&&A.totalRange)!==(m&&m.totalRange)}}function h(){this.groupedData&&(this.groupedData.forEach(function(a,b){a&&(this.groupedData[b]=a.destroy?a.destroy():null)},this),this.groupedData.length=0)}function k(){L.apply(this);
-this.destroyGroupedData();this.groupedData=this.hasGroupedData?this.points:null}function c(){return this.is("arearange")?"range":this.is("ohlc")?"ohlc":this.is("hlc")?"hlc":this.is("column")?"sum":"average"}function p(b,c,d,e){var f=this,k=f.data,q=f.options&&f.options.data,l=[],g=[],u=[],h=b.length,m=!!c,n=[],A=f.pointArrayMap,z=A&&A.length,x=["x"].concat(A||["y"]),w=this.options.dataGrouping&&this.options.dataGrouping.groupAll,C=0,p=0;e="function"===typeof e?e:e&&a[e]?a[e]:a[f.getDGApproximation&&
-f.getDGApproximation()||"average"];if(z)for(var v=A.length;v--;)n.push([]);else n.push([]);v=z||1;for(var B=0;B<=h;B++)if(!(b[B]<d[0])){for(;"undefined"!==typeof d[C+1]&&b[B]>=d[C+1]||B===h;){var t=d[C];f.dataGroupInfo={start:w?p:f.cropStart+p,length:n[0].length};var F=e.apply(f,n);f.pointClass&&!H(f.dataGroupInfo.options)&&(f.dataGroupInfo.options=J(f.pointClass.prototype.optionsToObject.call({series:f},f.options.data[f.cropStart+p])),x.forEach(function(a){delete f.dataGroupInfo.options[a]}));"undefined"!==
-typeof F&&(l.push(t),g.push(F),u.push(f.dataGroupInfo));p=B;for(t=0;t<v;t++)n[t].length=0,n[t].hasNulls=!1;C+=1;if(B===h)break}if(B===h)break;if(A){t=f.options.dataGrouping&&f.options.dataGrouping.groupAll?B:f.cropStart+B;F=k&&k[t]||f.pointClass.prototype.applyOptions.apply({series:f},[q[t]]);var I=void 0;for(t=0;t<z;t++)I=F[A[t]],r(I)?n[t].push(I):null===I&&(n[t].hasNulls=!0)}else t=m?c[B]:null,r(t)?n[0].push(t):null===t&&(n[0].hasNulls=!0)}return{groupedXData:l,groupedYData:g,groupMap:u}}function e(a){a=
-a.options;var c=this.type,d=this.chart.options.plotOptions,e=this.useCommonDataGrouping&&b.common,f=b.seriesSpecific,k=q.defaultOptions.plotOptions[c].dataGrouping;if(d&&(f[c]||e)){var h=this.chart.rangeSelector;k||(k=J(b.common,f[c]));a.dataGrouping=J(e,k,d.series&&d.series.dataGrouping,d[c].dataGrouping,this.userOptions.dataGrouping,!a.isInternal&&h&&r(h.selected)&&h.buttonOptions[h.selected].dataGrouping)}}var u=D.series.prototype,z=l.addEvent,H=l.defined,F=l.error,C=l.extend,r=l.isNumber,J=l.merge,
-v=l.pick,L=u.generatePoints,w=[];return{compose:function(a){var b=a.prototype.pointClass;-1===w.indexOf(b)&&(w.push(b),z(b,"update",function(){if(this.dataGroup)return F(24,!1,this.series.chart),!1}));-1===w.indexOf(a)&&(w.push(a),z(a,"afterSetOptions",e),z(a,"destroy",h),C(a.prototype,{applyGrouping:d,destroyGroupedData:h,generatePoints:k,getDGApproximation:c,groupData:p}))},groupData:p}});g(a,"Extensions/DataGrouping/DataGrouping.js",[a["Extensions/DataGrouping/DataGroupingAxisComposition.js"],
-a["Extensions/DataGrouping/DataGroupingDefaults.js"],a["Extensions/DataGrouping/DataGroupingSeriesComposition.js"],a["Core/FormatUtilities.js"],a["Core/Utilities.js"]],function(a,b,h,g,D){function d(a){var d=this.chart,e=d.time,h=a.labelConfig,g=h.series,l=g.tooltipOptions,r=g.options.dataGrouping,p=g.xAxis,v=l.xDateFormat,D=l[a.isFooter?"footerFormat":"headerFormat"];if(p&&"datetime"===p.options.type&&r&&c(h.key)){var w=g.currentDataGrouping;r=r.dateTimeLabelFormats||b.common.dateTimeLabelFormats;
-if(w)if(l=r[w.unitName],1===w.count)v=l[0];else{v=l[1];var A=l[2]}else!v&&r&&p.dateTime&&(v=p.dateTime.getXDateFormat(h.x,l.dateTimeLabelFormats));v=e.dateFormat(v,h.key);A&&(v+=e.dateFormat(A,h.key+w.totalRange-1));g.chart.styledMode&&(D=this.styledModeFormat(D));a.text=q(D,{point:k(h.point,{key:v}),series:g},d);a.preventDefault()}}var q=g.format,G=D.addEvent,k=D.extend,c=D.isNumber,p=[];g={compose:function(b,c,g){a.compose(b);h.compose(c);-1===p.indexOf(g)&&(p.push(g),G(g,"headerFormatter",d))},
-groupData:h.groupData};"";"";return g});g(a,"masters/modules/datagrouping.src.js",[a["Core/Globals.js"],a["Extensions/DataGrouping/ApproximationDefaults.js"],a["Extensions/DataGrouping/ApproximationRegistry.js"],a["Extensions/DataGrouping/DataGrouping.js"]],function(a,b,g,q){a.dataGrouping={approximationDefaults:b,approximations:g};q.compose(a.Axis,a.Series,a.Tooltip)})});
-//# sourceMappingURL=datagrouping.js.map

+ 0 - 32
nicegui/elements/lib/highcharts_modules/debugger.js

@@ -1,32 +0,0 @@
-/*
- Highcharts JS v10.3.3 (2023-01-20)
-
- Debugger module
-
- (c) 2012-2021 Torstein Honsi
-
- License: www.highcharts.com/license
-*/
-(function(a){"object"===typeof module&&module.exports?(a["default"]=a,module.exports=a):"function"===typeof define&&define.amd?define("highcharts/modules/debugger",["highcharts"],function(b){a(b);a.Highcharts=b;return a}):a("undefined"!==typeof Highcharts?Highcharts:void 0)})(function(a){function b(a,c,b,f){a.hasOwnProperty(c)||(a[c]=f.apply(null,b),"function"===typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:c,module:a[c]}})))}a=a?a._modules:{};b(a,
-"Extensions/Debugger/ErrorMessages.js",[],function(){return{10:{title:"Can't plot zero or subzero values on a logarithmic axis",text:'<h1>Can\'t plot zero or subzero values on a logarithmic axis</h1><p>This error occurs in the following situations: </p><ul><li>If a zero or subzero data value is added to a logarithmic axis</li><li>If the minimum of a logarithimic axis is set to 0 or less</li><li>If the threshold is set to 0 or less</li></ul><p>Note: As of Highcharts 5.0.8 it\'s possible to bypass this error message by setting <code>Axis.prototype.allowNegativeLog</code> to true, and add custom conversion functions. <a href="https://jsfiddle.net/gh/get/library/pure/highcharts/highcharts/tree/master/samples/highcharts/yaxis/type-log-negative/">View live demo</a>. It is also possible to use a similar workaround for colorAxis. <a href="https://jsfiddle.net/gh/get/library/pure/highcharts/highcharts/tree/master/samples/highcharts/coloraxis/logarithmic-with-emulate-negative-values/">View live demo</a>.</p>',
-enduser:'<h1>Can\'t plot zero or subzero values on a logarithmic axis</h1><p>This error occurs in the following situations:</p><ul><li>If a zero or subzero data value is added to a logarithmic axis</li><li>If the minimum of a logarithimic axis is set to 0 or less</li><li>If the threshold is set to 0 or less</li></ul><p>As of Highcharts 5.0.8 it\'s possible to bypass this error message by setting <code>Axis.prototype.allowNegativeLog</code> to <code>true</code> and add custom conversion functions. <a href="http://jsfiddle.net/gh/get/library/pure/highcharts/highcharts/tree/master/samples/highcharts/yaxis/type-log-negative/">">View Live Demo</a>. It is also possible to use a similar workaround for colorAxis. <a href="https://jsfiddle.net/gh/get/library/pure/highcharts/highcharts/tree/master/samples/highcharts/coloraxis/logarithmic-with-emulate-negative-values/">View live demo</a>.</p>'},
-11:{title:"Can't link axes of different type",text:"<h1>Can't link axes of different type</h1><p>This error occurs when using the <code>linkedTo</code> option to link two axes of different types, for example a logarithmic axis to a linear axis. Highcharts can't link these because the calculation of ticks, extremes, padding etc. is different.</p>"},12:{title:"Highcharts expects point configuration to be numbers or arrays in turbo mode",text:'<h1>Highcharts expects point configuration to be numbers or arrays in turbo mode</h1><p>This error occurs if the <code>series.data</code> option contains object configurations and the number of points exceeds the turboThreshold. It can be fixed by either setting <code>turboThreshold</code> to a higher value, or changing the point configurations to numbers or arrays.</p><p>In boost mode, turbo mode is always on, which means only array of numbers or two dimensional arrays are allowed.</p><p>See <a href="https://api.highcharts.com/highcharts#plotOptions.series.turboThreshold">plotOptions.series.turboThreshold</a></p>'},
-13:{title:"Rendering div not found",text:'<h1>Rendering div not found</h1><p>This error occurs if the <a href="https://api.highcharts.com/highcharts#chart.renderTo">chart.renderTo</a> option is misconfigured so that Highcharts is unable to find the HTML element to render the chart in.</p><p>If using a DOM ID when creating the chart, make sure a node with the same ID exists somewhere in the DOM.</p>'},14:{title:"String value sent to series.data, expected Number",text:"<h1>String value sent to series.data, expected Number</h1><p>This happens if using a string as a data point, for example in a setup like this: </p><pre>series: [{\n    data: [&quot;3&quot;, &quot;5&quot;, &quot;1&quot;, &quot;6&quot;]\n}]</pre><p>Highcharts expects numerical data values.</p><p>The most common reason for this error this is that data is parsed from CSV or from a XML source, and the implementer forgot to run <code>parseFloat</code> on the parsed value.</p><p>Note: For performance reasons internal type casting is not performed, and only the first value is checked (since 2.3).</p>"},
-15:{title:"Highcharts expects data to be sorted",text:"<h1>Highcharts expects data to be sorted</h1><p>This happens when creating a line series or a stock chart where the data is not sorted in ascending X order.</p><p>For performance reasons, Highcharts does not sort the data, instead it requires that the implementer pre-sorts the data.</p>"},16:{title:"Highcharts already defined in the page",text:"<h1>Highcharts already defined in the page</h1><p>This error happens if the <code>Highcharts</code> namespace already exists when loading Highcharts or Highstock.</p><p>This is caused by including Highcharts or Highstock more than once.</p><p>Keep in mind that the <code>Highcharts.Chart</code> constructor and all features of Highcharts are included in Highstock, so if using the <code>Chart</code> and <code>StockChart</code> constructors in combination, only the <code>highstock.js</code> file is required.</p>"},
-17:{title:"The requested series type does not exist",text:"<h1>The requested series type does not exist</h1><p>This error happens when setting <code>chart.type</code> or <code>series.type</code> to a series type that isn't defined in Highcharts. A typical reason may be that the module or extension where the series type is defined isn't included.</p><p>For example in order to create an <code>arearange</code> series, the <code>highcharts-more.js</code> file must be loaded.</p>"},18:{title:"The requested axis does not exist",
-text:"<h1>The requested axis does not exist</h1><p>This error happens when setting a series' <code>xAxis</code> or <code>yAxis</code> property to point to an axis that does not exist.</p>"},19:{title:"Too many ticks",text:"<h1>Too many ticks</h1><p>This error happens when applying too many ticks to an axis, specifically when adding more ticks than the axis pixel length.</p><p>With default value this won't happen, but there are edge cases, for example when setting axis categories and <code>xAxis.labels.step</code> in combination with a long data range, when the axis is instructed to create a great number of ticks.</p>"},
-20:{title:"Can't add object point configuration to a long data series",text:"<h1>Can't add object point configuration to a long data series</h1><p>In Highstock, when trying to add a point using the object literal configuration syntax, it will only work when the number of data points is below the series' <a href=\"https://api.highcharts.com/highstock#plotOptions.series.turboThreshold\">turboThreshold</a>. Instead of the object syntax, use the Array syntax.</p>"},21:{title:"Can't find Proj4js library",
-text:'<h1>Can\'t find Proj4js library</h1><p>Using latitude/longitude functionality in Highmaps requires the <a href="http://proj4js.org">Proj4js</a> library to be loaded.</p>'},22:{title:"Map does not support latitude/longitude",text:'<h1>Map does not support latitude/longitude</h1><p>The loaded map does not support latitude/longitude functionality. This is only supported with maps from the <a href="https://code.highcharts.com/mapdata">official Highmaps map collection</a> from version 1.1.0 onwards. If you are using a custom map, consider using the <a href="https://proj4js.org">Proj4js</a> library to convert between projections.</p>'},
-23:{title:"Unsupported color format used for color interpolation",text:"<h1>Unsupported color format used for color interpolation</h1><p>Highcharts supports three color formats primarily: hex (<code>#FFFFFF</code>), rgb (<code>rgba(255,255,255)</code>) and rgba (<code>rgba(255,255,255,1)</code>). If any other format, like 3-digit colors (<code>#FFF</code>), named colors (<code>white</code>) or gradient structures are used in for example a heatmap, Highcharts will fail to interpolate and will instead use the end-color with no interpolation applied.</p><p>We've chosen to preserve this limitation in order to keep the weight of the implementation at a minimum.</p>"},
-24:{title:"Cannot run Point.update on a grouped point",text:"<h1>Cannot run Point.update on a grouped point</h1><p>Running <code>Point.update</code> in Highstock when a point is grouped by data grouping is not supported.</p><p>This is not supported because when data grouping is enabled, there won't be any references to the raw points, which is required by the <code>Point.update</code> function.</p>"},25:{title:"Can't find Moment.js library",text:'<h1>Can\'t find Moment.js library</h1><p>Using the global.timezone option requires the <a href="https://momentjs.com/">Moment.js</a> library to be loaded.</p>'},
-26:{title:"WebGL not supported, and no fallback module included",text:"<h1>WebGL not supported, and no fallback module included</h1><p>This happens when the browser doesn't support WebGL,<b>and</b> the canvas fallback module (<code>boost-canvas.js</code>) hasn't been included OR if the fallback module was included<b>after</b> the boost module.</p><p>If a fallback is required, make sure to include <code>boost-canvas.js</code>, and that it's included before <code>boost.js</code>.</p><p>Please note that the fallback module is not intended as a fully-featured one. Rather, it's a minimal implementation of the WebGL counterpart.</p>"},
-27:{title:"This browser does not support SVG",text:"<h1>This browser does not support SVG</h1><p>This happens in old IE when the <code>oldie.js</code> module isn't loaded.</p><p>If compatibility with IE versions 6, 7 and 8 is required, add the module after loading <code>highcharts.js</code>. In a website context, it's a good idea to load it in a conditional comment to avoid traffic overhead and dead code in modern browsers: </p><pre>&lt;!--[if lt IE 9]&gt;\n    &lt;script src='https://code.highcharts.com/modules/oldie.js'&gt;&lt;/script&gt;\n&lt;![endif]--&gt;</pre>"},
-28:{title:"Fallback to export server disabled",text:'<h1>Fallback to export server disabled</h1><p>This happens when the offline export module encounters a chart that it can\'t export successfully, and the fallback to the online export server is disabled. The offline exporting module will fail for certain browsers, and certain features (e.g. <a href="https://api.highcharts.com/highcharts/exporting.allowHTML">exporting.allowHTML</a> ), depending on the type of image exporting to. For a compatibility overview, see <a href="https://www.highcharts.com/docs/export-module/client-side-export">Client Side Export</a>.</p><p>For very complex charts, it\'s possible that exporting fail in browsers that don\'t support Blob objects, due to data URL length limits. It\'s always recommended to define the <a href="https://api.highcharts.com/highcharts/exporting.error">exporting.error</a> callback when disabling the fallback, so that details can be provided to the end-user if offline export isn\'t working for them.</p>'},
-29:{title:"Browser does not support WebAudio",text:"<h1>Browser does not support WebAudio</h1><p>This happens when you attempt to use the sonification module on a chart in a browser or environment that does not support the WebAudio API. This API is supported on all modern browsers, including Microsoft Edge, Google Chrome and Mozilla Firefox.</p>"},30:{title:"Invalid instrument",text:"<h1>Invalid instrument</h1><p>This happens when you try to use a sonification instrument that is not valid. If you are using a predefined instrument, make sure your spelling is correct.</p>"},
-31:{title:"Non-unique point or node id",text:"<h1>Non-unique point or node id</h1><p>This error occurs when using the same <code>id</code> for two or more points or nodes.</p>"},32:{title:"Deprecated function or property",text:'<h1>Deprecated function or property</h1><p>This error occurs when using a deprecated function or property. Consult the <a href="https://api.highcharts.com/">API documentation</a> for alternatives, if no replacement is mentioned by the error itself.</p>'},33:{title:"Invalid attribute or tagName",
-text:'<h1>Invalid attribute or tagName</h1><p>This error occurs if HTML in the chart configuration contains unknown tag names or attributes. Unknown tag names or attributes are those not present in the _allow lists_.</p><p>To fix the error, consider</p><ul><li>Is your tag name or attribute spelled correctly? For example, <code>lineargradient</code></li></ul><p> would be blocked as it is a misspelling for <code>linearGradient</code>.</p><ul><li>Is it allowed in Highcharts? For example, <code>onclick</code> attributes are blocked as</li></ul><p> they pose a real security threat.</p><p>This error occurs because attributes and tag names are sanitized of potentially harmful content from the chart configuration before being added to the DOM. Consult the <a href="https://www.highcharts.com/docs/chart-concepts/security">security documentation</a> for more information.</p>'}}});
-b(a,"Extensions/Debugger/Debugger.js",[a["Extensions/Debugger/ErrorMessages.js"],a["Core/Globals.js"],a["Core/Defaults.js"],a["Core/Utilities.js"]],function(a,c,b,f){function h(){var a=this.errorElements;if(a&&a.length)for(var d=0;d<a.length;d++)a[d].destroy();delete this.errorElements}function m(b){var d=b.chart||n(this.charts.slice().reverse(),function(a){return!!a});if(d){var c=b.code,e=d.options.chart;b=d.renderer;if(d.errorElements){var g=0;for(var f=d.errorElements;g<f.length;g++){var h=f[g];
-h&&h.destroy()}}e&&e.displayErrors&&b&&(d.errorElements=[],c=p(c)?"Highcharts error #"+c+": "+a[c].text:c,e=d.chartWidth,g=d.chartHeight,c=c.replace(/<h1>(.*)<\/h1>/g,'<br><span style="font-size: 24px">$1</span><br>').replace(/<p>/g,"").replace(/<\/p>/g,"<br>"),d.errorElements[0]=b.rect(2,2,e-4,g-4).attr({"stroke-width":4,stroke:"#ff0000",zIndex:3}).add(),d.errorElements[1]=b.label(c,0,0,"rect",void 0,void 0,void 0,void 0,"debugger").css({color:"#ffffff",width:e-16+"px",padding:0}).attr({fill:"rgba(255, 0, 0, 0.9)",
-width:e,padding:8,zIndex:10}).add(),d.errorElements[1].attr({y:g-d.errorElements[1].getBBox().height}))}}var k=b.setOptions,l=f.addEvent,n=f.find,p=f.isNumber,e=[],q={chart:{displayErrors:!0}};return{compose:function(a){-1===e.indexOf(a)&&(e.push(a),l(a,"beforeRedraw",h));-1===e.indexOf(c)&&(e.push(c),l(c,"displayError",m));-1===e.indexOf(k)&&(e.push(k),k(q))}}});b(a,"masters/modules/debugger.src.js",[a["Core/Globals.js"],a["Extensions/Debugger/Debugger.js"],a["Extensions/Debugger/ErrorMessages.js"]],
-function(a,c,b){a.errorMessages=b;c.compose(a.Chart)})});
-//# sourceMappingURL=debugger.js.map

+ 0 - 21
nicegui/elements/lib/highcharts_modules/dependency-wheel.js

@@ -1,21 +0,0 @@
-/*
- Highcharts JS v10.3.3 (2023-01-20)
-
- Dependency wheel module
-
- (c) 2010-2021 Torstein Honsi
-
- License: www.highcharts.com/license
-*/
-(function(b){"object"===typeof module&&module.exports?(b["default"]=b,module.exports=b):"function"===typeof define&&define.amd?define("highcharts/modules/dependency-wheel",["highcharts","highcharts/modules/sankey"],function(c){b(c);b.Highcharts=c;return b}):b("undefined"!==typeof Highcharts?Highcharts:void 0)})(function(b){function c(b,f,c,g){b.hasOwnProperty(f)||(b[f]=g.apply(null,c),"function"===typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:f,module:b[f]}})))}
-b=b?b._modules:{};c(b,"Series/DependencyWheel/DependencyWheelPoint.js",[b["Core/Series/SeriesRegistry.js"],b["Core/Utilities.js"]],function(b,c){var f=this&&this.__extends||function(){var b=function(e,a){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,a){b.__proto__=a}||function(b,a){for(var e in a)a.hasOwnProperty(e)&&(b[e]=a[e])};return b(e,a)};return function(e,a){function c(){this.constructor=e}b(e,a);e.prototype=null===a?Object.create(a):(c.prototype=a.prototype,new c)}}(),
-g=c.wrap;return function(b){function e(){var a=null!==b&&b.apply(this,arguments)||this;a.angle=void 0;a.fromNode=void 0;a.index=void 0;a.linksFrom=void 0;a.linksTo=void 0;a.options=void 0;a.series=void 0;a.shapeArgs=void 0;a.toNode=void 0;return a}f(e,b);e.prototype.getDataLabelPath=function(b){var a=this,e=this.series.chart.renderer,c=this.shapeArgs,f=0>this.angle||this.angle>Math.PI,k=c.start||0,p=c.end||0;this.dataLabelPath?(this.dataLabelPath=this.dataLabelPath.destroy(),delete this.dataLabelPath):
-g(b,"destroy",function(c){a.dataLabelPath&&(a.dataLabelPath=a.dataLabelPath.destroy());return c.call(b)});return this.dataLabelPath=e.arc({open:!0,longArc:Math.abs(Math.abs(k)-Math.abs(p))<Math.PI?0:1}).attr({x:c.x,y:c.y,r:c.r+(this.dataLabel.options.distance||0),start:f?k:p,end:f?p:k,clockwise:+f}).add(e.defs)};e.prototype.isValid=function(){return!0};return e}(b.seriesTypes.sankey.prototype.pointClass)});c(b,"Series/DependencyWheel/DependencyWheelSeriesDefaults.js",[],function(){"";return{center:[null,
-null],curveFactor:.6,startAngle:0,dataLabels:{textPath:{enabled:!1,attributes:{dy:5}}}}});c(b,"Series/DependencyWheel/DependencyWheelSeries.js",[b["Core/Animation/AnimationUtilities.js"],b["Series/DependencyWheel/DependencyWheelPoint.js"],b["Series/DependencyWheel/DependencyWheelSeriesDefaults.js"],b["Core/Globals.js"],b["Series/Sankey/SankeyColumnComposition.js"],b["Core/Series/SeriesRegistry.js"],b["Core/Utilities.js"]],function(b,c,r,g,t,e,a){var f=this&&this.__extends||function(){var b=function(a,
-c){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,a){b.__proto__=a}||function(b,a){for(var c in a)a.hasOwnProperty(c)&&(b[c]=a[c])};return b(a,c)};return function(a,c){function q(){this.constructor=a}b(a,c);a.prototype=null===c?Object.create(c):(q.prototype=c.prototype,new q)}}(),u=b.animObject,v=g.deg2rad;g=e.seriesTypes;b=g.pie;var n=g.sankey;g=a.extend;var k=a.merge;a=function(b){function a(){var a=null!==b&&b.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.nodeColumns=
-void 0;a.nodes=void 0;a.points=void 0;return a}f(a,b);a.prototype.animate=function(a){if(!a){var b=u(this.options.animation).duration/2/this.nodes.length;this.nodes.forEach(function(a,c){var e=a.graphic;e&&(e.attr({opacity:0}),setTimeout(function(){a.graphic&&a.graphic.animate({opacity:1},{duration:b})},b*c))},this);this.points.forEach(function(a){var b=a.graphic;!a.isNode&&b&&b.attr({opacity:0}).animate({opacity:1},this.options.animation)},this)}};a.prototype.createNode=function(a){var b=n.prototype.createNode.call(this,
-a);b.getSum=function(){return b.linksFrom.concat(b.linksTo).reduce(function(b,a){return b+a.weight},0)};b.offset=function(a){function c(a){return a.fromNode===b?a.toNode:a.fromNode}var e=0,d,h=b.linksFrom.concat(b.linksTo);h.sort(function(a,b){return c(a).index-c(b).index});for(d=0;d<h.length;d++)if(c(h[d]).index>b.index){h=h.slice(0,d).reverse().concat(h.slice(d).reverse());var f=!0;break}f||h.reverse();for(d=0;d<h.length;d++){if(h[d]===a)return e;e+=h[d].weight}};return b};a.prototype.createNodeColumns=
-function(){var a=[t.compose([],this)];this.nodes.forEach(function(b){b.column=0;a[0].push(b)});return a};a.prototype.getNodePadding=function(){return this.options.nodePadding/Math.PI};a.prototype.translate=function(){var a=this.options,b=2*Math.PI/(this.chart.plotHeight+this.getNodePadding()),c=this.getCenter(),e=(a.startAngle-90)*v;n.prototype.translate.call(this);this.nodeColumns[0].forEach(function(f){if(f.sum){var d=f.shapeArgs,h=c[0],g=c[1],k=c[2]/2,l=k-a.nodeWidth,m=e+b*(d.y||0);d=e+b*((d.y||
-0)+(d.height||0));f.angle=m+(d-m)/2;f.shapeType="arc";f.shapeArgs={x:h,y:g,r:k,innerR:l,start:m,end:d};f.dlBox={x:h+Math.cos((m+d)/2)*(k+l)/2,y:g+Math.sin((m+d)/2)*(k+l)/2,width:1,height:1};f.linksFrom.forEach(function(c){if(c.linkBase){var f,d=c.linkBase.map(function(d,k){d*=b;var m=Math.cos(e+d)*(l+1),n=Math.sin(e+d)*(l+1),p=a.curveFactor||0;f=Math.abs(c.linkBase[3-k]*b-d);f>Math.PI&&(f=2*Math.PI-f);f*=l;f<l&&(p*=f/l);return{x:h+m,y:g+n,cpX:h+(1-p)*m,cpY:g+(1-p)*n}});c.shapeArgs={d:[["M",d[0].x,
-d[0].y],["A",l,l,0,0,1,d[1].x,d[1].y],["C",d[1].cpX,d[1].cpY,d[2].cpX,d[2].cpY,d[2].x,d[2].y],["A",l,l,0,0,1,d[3].x,d[3].y],["C",d[3].cpX,d[3].cpY,d[0].cpX,d[0].cpY,d[0].x,d[0].y]]}}})}})};a.defaultOptions=k(n.defaultOptions,r);return a}(n);g(a.prototype,{orderNodes:!1,getCenter:b.prototype.getCenter});a.prototype.pointClass=c;e.registerSeriesType("dependencywheel",a);return a});c(b,"masters/modules/dependency-wheel.src.js",[],function(){})});
-//# sourceMappingURL=dependency-wheel.js.map

+ 0 - 15
nicegui/elements/lib/highcharts_modules/dotplot.js

@@ -1,15 +0,0 @@
-/*
- Highcharts JS v10.3.3 (2023-01-20)
-
- Dot plot series type for Highcharts
-
- (c) 2010-2021 Torstein Honsi
-
- License: www.highcharts.com/license
-*/
-(function(a){"object"===typeof module&&module.exports?(a["default"]=a,module.exports=a):"function"===typeof define&&define.amd?define("highcharts/modules/dotplot",["highcharts"],function(b){a(b);a.Highcharts=b;return a}):a("undefined"!==typeof Highcharts?Highcharts:void 0)})(function(a){function b(a,g,f,b){a.hasOwnProperty(g)||(a[g]=b.apply(null,f),"function"===typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:g,module:a[g]}})))}a=a?a._modules:{};b(a,
-"Series/DotPlot/DotPlotSeries.js",[a["Series/Column/ColumnSeries.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,b,f){var g=this&&this.__extends||function(){var a=function(e,d){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,d){a.__proto__=d}||function(a,d){for(var e in d)d.hasOwnProperty(e)&&(a[e]=d[e])};return a(e,d)};return function(e,d){function b(){this.constructor=e}a(e,d);e.prototype=null===d?Object.create(d):(b.prototype=d.prototype,new b)}}(),
-t=f.extend,n=f.merge,u=f.pick;f=function(b){function e(){var a=null!==b&&b.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}g(e,b);e.prototype.drawPoints=function(){var a=this,b=a.chart.renderer,e=this.options.marker,f=this.yAxis.transA*a.options.itemPadding,g=this.borderWidth%2?.5:1;this.points.forEach(function(c){var d;var k=c.marker||{};var v=k.symbol||e.symbol,n=u(k.radius,e.radius),w="rect"!==v;c.graphics=d=c.graphics||[];var m=c.pointAttr?c.pointAttr[c.selected?
-"selected":""]||a.pointAttr[""]:a.pointAttribs(c,c.selected&&"select");delete m.r;a.chart.styledMode&&(delete m.stroke,delete m["stroke-width"]);if(null!==c.y){c.graphic||(c.graphic=b.g("point").add(a.group));var p=u(c.stackY,c.y);var q=Math.min(c.pointWidth,a.yAxis.transA-f);var r=Math.floor(p);for(k=p;k>p-c.y;k--,r--){var l=c.barX+(w?c.pointWidth/2-q/2:0);var h=a.yAxis.toPixels(k,!0)+f/2;a.options.crisp&&(l=Math.round(l)-g,h=Math.round(h)+g);l={x:l,y:h,width:Math.round(w?q:c.pointWidth),height:Math.round(q),
-r:n};(h=d[r])?h.animate(l):h=b.symbol(v).attr(t(l,m)).add(c.graphic);h.isActive=!0;d[r]=h}}d.forEach(function(a,b){a&&(a.isActive?a.isActive=!1:(a.destroy(),d.splice(b,1)))})})};e.defaultOptions=n(a.defaultOptions,{itemPadding:.2,marker:{symbol:"circle",states:{hover:{},select:{}}}});return e}(a);t(f.prototype,{markerAttribs:void 0});b.registerSeriesType("dotplot",f);return f});b(a,"masters/modules/dotplot.src.js",[],function(){})});
-//# sourceMappingURL=dotplot.js.map

+ 0 - 20
nicegui/elements/lib/highcharts_modules/drag-panes.js

@@ -1,20 +0,0 @@
-/*
- Highstock JS v10.3.3 (2023-01-20)
-
- Drag-panes module
-
- (c) 2010-2021 Highsoft AS
- Author: Kacper Madej
-
- License: www.highcharts.com/license
-*/
-(function(a){"object"===typeof module&&module.exports?(a["default"]=a,module.exports=a):"function"===typeof define&&define.amd?define("highcharts/modules/drag-panes",["highcharts","highcharts/modules/stock"],function(e){a(e);a.Highcharts=e;return a}):a("undefined"!==typeof Highcharts?Highcharts:void 0)})(function(a){function e(a,f,e,n){a.hasOwnProperty(f)||(a[f]=n.apply(null,e),"function"===typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:f,module:a[f]}})))}
-a=a?a._modules:{};e(a,"Extensions/DragPanes.js",[a["Core/Globals.js"],a["Core/Axis/Axis.js"],a["Core/Axis/AxisDefaults.js"],a["Core/Pointer.js"],a["Core/Utilities.js"]],function(a,f,e,n,b){var x=a.hasTouch,h=b.addEvent,t=b.clamp,y=b.isNumber,z=b.merge,A=b.objectEach,v=b.relativeLength;b=b.wrap;var u=function(){function a(c){this.options=this.lastPos=this.controlLine=this.axis=void 0;this.init(c)}a.prototype.init=function(c,a){this.axis=c;this.options=c.options.resize;this.render();a||this.addMouseEvents()};
-a.prototype.render=function(){var c=this.axis,a=c.chart,d=this.options,w=d.x||0,b=d.y,l=t(c.top+c.height+b,a.plotTop,a.plotTop+a.plotHeight),m={};a.styledMode||(m={cursor:d.cursor,stroke:d.lineColor,"stroke-width":d.lineWidth,dashstyle:d.lineDashStyle});this.lastPos=l-b;this.controlLine||(this.controlLine=a.renderer.path().addClass("highcharts-axis-resizer"));this.controlLine.add(c.axisGroup);d=a.styledMode?this.controlLine.strokeWidth():d.lineWidth;m.d=a.renderer.crispLine([["M",c.left+w,l],["L",
-c.left+c.width+w,l]],d);this.controlLine.attr(m)};a.prototype.addMouseEvents=function(){var c=this,a=c.controlLine.element,d=c.axis.chart.container,b=[],e,l,m;c.mouseMoveHandler=e=function(a){c.onMouseMove(a)};c.mouseUpHandler=l=function(a){c.onMouseUp(a)};c.mouseDownHandler=m=function(a){c.onMouseDown(a)};b.push(h(d,"mousemove",e),h(d.ownerDocument,"mouseup",l),h(a,"mousedown",m));x&&b.push(h(d,"touchmove",e),h(d.ownerDocument,"touchend",l),h(a,"touchstart",m));c.eventsToUnbind=b};a.prototype.onMouseMove=
-function(a){a.touches&&0===a.touches[0].pageX||!this.grabbed||(this.hasDragged=!0,this.updateAxes(this.axis.chart.pointer.normalize(a).chartY-this.options.y))};a.prototype.onMouseUp=function(a){this.hasDragged&&this.updateAxes(this.axis.chart.pointer.normalize(a).chartY-this.options.y);this.grabbed=this.hasDragged=this.axis.chart.activeResizer=null};a.prototype.onMouseDown=function(a){this.axis.chart.pointer.reset(!1,0);this.grabbed=this.axis.chart.activeResizer=!0};a.prototype.updateAxes=function(a){var c=
-this,d=c.axis.chart,b=c.options.controlledAxis,e=0===b.next.length?[d.yAxis.indexOf(c.axis)+1]:b.next;b=[c.axis].concat(b.prev);var l=[],m=!1,q=d.plotTop,f=d.plotHeight,h=q+f;a=t(a,q,h);var r=a-c.lastPos;1>r*r||([b,e].forEach(function(b,e){b.forEach(function(b,k){var g=(b=y(b)?d.yAxis[b]:e||k?d.get(b):b)&&b.options;if(g&&"navigator-y-axis"!==g.id){k=b.top;var n=Math.round(v(g.minLength,f));var p=Math.round(v(g.maxLength,f));e?(r=a-c.lastPos,g=Math.round(t(b.len-r,n,p)),k=b.top+r,k+g>h&&(p=h-g-k,a+=
-p,k+=p),k<q&&(k=q,k+g>h&&(g=f)),g===n&&(m=!0),l.push({axis:b,options:{top:100*(k-q)/f+"%",height:100*g/f+"%"}})):(g=Math.round(t(a-k,n,p)),g===p&&(m=!0),a=k+g,l.push({axis:b,options:{height:100*g/f+"%"}}))}})}),m||(l.forEach(function(a){a.axis.update(a.options,!1)}),d.redraw(!1)))};a.prototype.destroy=function(){var a=this;delete a.axis.resizer;this.eventsToUnbind&&this.eventsToUnbind.forEach(function(a){a()});a.controlLine.destroy();A(a,function(b,c){a[c]=null})};a.resizerOptions={minLength:"10%",
-maxLength:"100%",resize:{controlledAxis:{next:[],prev:[]},enabled:!1,cursor:"ns-resize",lineColor:"#cccccc",lineDashStyle:"Solid",lineWidth:4,x:0,y:0}};return a}();f.keepProps.push("resizer");h(f,"afterRender",function(){var a=this.resizer,b=this.options.resize;b&&(b=!1!==b.enabled,a?b?a.init(this,!0):a.destroy():b&&(this.resizer=new u(this)))});h(f,"destroy",function(a){!a.keepEvents&&this.resizer&&this.resizer.destroy()});b(n.prototype,"runPointActions",function(a){this.chart.activeResizer||a.apply(this,
-Array.prototype.slice.call(arguments,1))});b(n.prototype,"drag",function(a){this.chart.activeResizer||a.apply(this,Array.prototype.slice.call(arguments,1))});z(!0,e.defaultYAxisOptions,u.resizerOptions);a.AxisResizer=u;return a.AxisResizer});e(a,"masters/modules/drag-panes.src.js",[],function(){})});
-//# sourceMappingURL=drag-panes.js.map

+ 0 - 42
nicegui/elements/lib/highcharts_modules/draggable-points.js

@@ -1,42 +0,0 @@
-/*
- Highcharts JS v10.3.3 (2023-01-20)
-
- (c) 2009-2021 Torstein Honsi
-
- License: www.highcharts.com/license
-*/
-(function(f){"object"===typeof module&&module.exports?(f["default"]=f,module.exports=f):"function"===typeof define&&define.amd?define("highcharts/modules/draggable-points",["highcharts"],function(r){f(r);f.Highcharts=r;return f}):f("undefined"!==typeof Highcharts?Highcharts:void 0)})(function(f){function r(f,m,r,x){f.hasOwnProperty(m)||(f[m]=x.apply(null,r),"function"===typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:m,module:f[m]}})))}f=f?f._modules:
-{};r(f,"Extensions/DraggablePoints.js",[f["Core/Animation/AnimationUtilities.js"],f["Core/Chart/Chart.js"],f["Core/Globals.js"],f["Core/Series/Point.js"],f["Core/Series/Series.js"],f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,m,r,x,D,y,u){function E(a){return{left:"right",right:"left",top:"bottom",bottom:"top"}[a]}function M(a){var b=["draggableX","draggableY"],c;v(a.dragDropProps,function(a){a.optionName&&b.push(a.optionName)});for(c=b.length;c--;)if(a.options.dragDrop[b[c]])return!0}
-function N(a){var b=a.series?a.series.length:0;if(a.hasCartesianSeries&&!a.polar)for(;b--;)if(a.series[b].options.dragDrop&&M(a.series[b]))return!0}function O(a){var b=a.series,c=b.options.dragDrop||{};a=a.options&&a.options.dragDrop;var d,e;v(b.dragDropProps,function(a){"x"===a.axis&&a.move?d=!0:"y"===a.axis&&a.move&&(e=!0)});return(c.draggableX&&d||c.draggableY&&e)&&!(a&&!1===a.draggableX&&!1===a.draggableY)&&b.yAxis&&b.xAxis}function A(a,b){return"undefined"===typeof a.chartX||"undefined"===typeof a.chartY?
-b.pointer.normalize(a):a}function B(a,b,c,d){var e=b.map(function(b){return w(a,b,c,d)});return function(){e.forEach(function(a){a()})}}function P(a,b,c){var d=b.dragDropData.origin;b=d.chartX;d=d.chartY;var e=a.chartX;a=a.chartY;return Math.sqrt((e-b)*(e-b)+(a-d)*(a-d))>c}function Q(a,b,c){var d={chartX:a.chartX,chartY:a.chartY,guideBox:c&&{x:c.attr("x"),y:c.attr("y"),width:c.attr("width"),height:c.attr("height")},points:{}};b.forEach(function(b){var c={};v(b.series.dragDropProps,function(d,e){d=
-b.series[d.axis+"Axis"];c[e]=b[e];c[e+"Offset"]=d.toPixels(b[e])-(d.horiz?a.chartX:a.chartY)});c.point=b;d.points[b.id]=c});return d}function R(a){var b=a.series,c=[],d=b.options.dragDrop.groupBy;b.boosted?b.options.data.forEach(function(a,d){c.push((new b.pointClass).init(b,a));c[c.length-1].index=d}):c=b.points;return a.options[d]?c.filter(function(b){return b.options[d]===a.options[d]}):[a]}function F(a,b){var c=R(b),d=b.series,e=d.chart,q;z(d.options.dragDrop&&d.options.dragDrop.liveRedraw,!0)||
-(e.dragGuideBox=q=d.getGuideBox(c),e.setGuideBoxState("default",d.options.dragDrop.guideBox).add(d.group));e.dragDropData={origin:Q(a,c,q),point:b,groupedPoints:c,isDragging:!0}}function S(a,b){var c=a.point,d=t(c.series.options.dragDrop,c.options.dragDrop),e={},q=a.updateProp,n={};v(c.series.dragDropProps,function(a,b){if(!q||q===b&&a.resize&&(!a.optionName||!1!==d[a.optionName]))if(q||a.move&&("x"===a.axis&&d.draggableX||"y"===a.axis&&d.draggableY))e[b]=a});(q?[c]:a.groupedPoints).forEach(function(c){n[c.id]=
-{point:c,newValues:c.getDropValues(a.origin,b,e)}});return n}function G(a,b){var c=a.dragDropData.newPoints;b=T(b);a.isDragDropAnimating=!0;v(c,function(a){a.point.update(a.newValues,!1)});a.redraw(b);setTimeout(function(){delete a.isDragDropAnimating;a.hoverPoint&&!a.dragHandles&&a.hoverPoint.showDragHandles()},b.duration)}function H(a){var b=a.series&&a.series.chart,c=b&&b.dragDropData;!b||!b.dragHandles||c&&(c.isDragging&&c.draggedPastSensitivity||c.isHoveringHandle===a.id)||b.hideDragHandles()}
-function I(a){var b=0,c;for(c in a)Object.hasOwnProperty.call(a,c)&&b++;return b}function J(a){for(var b in a)if(Object.hasOwnProperty.call(a,b))return a[b]}function U(a,b){if(!b.zoomOrPanKeyPressed(a)){var c=b.dragDropData;var d=0;if(c&&c.isDragging&&c.point.series){var e=c.point;d=e.series.options.dragDrop;a.preventDefault();c.draggedPastSensitivity||(c.draggedPastSensitivity=P(a,b,z(e.options.dragDrop&&e.options.dragDrop.dragSensitivity,d&&d.dragSensitivity,2)));c.draggedPastSensitivity&&(c.newPoints=
-S(c,a),b=c.newPoints,d=I(b),b=1===d?J(b):null,e.firePointEvent("drag",{origin:c.origin,newPoints:c.newPoints,newPoint:b&&b.newValues,newPointId:b&&b.point.id,numNewPoints:d,chartX:a.chartX,chartY:a.chartY},function(){var b=e.series,c=b.chart,d=c.dragDropData,l=t(b.options.dragDrop,e.options.dragDrop),f=l.draggableX,h=l.draggableY;b=d.origin;var g=a.chartX-b.chartX,k=a.chartY-b.chartY,p=g;d=d.updateProp;c.inverted&&(g=-k,k=-p);if(z(l.liveRedraw,!0))G(c,!1),e.showDragHandles();else if(d){f=g;c=k;p=
-e.series;h=p.chart;d=h.dragDropData;l=p.dragDropProps[d.updateProp];var K=d.newPoints[e.id].newValues;var r="function"===typeof l.resizeSide?l.resizeSide(K,e):l.resizeSide;l.beforeResize&&l.beforeResize(h.dragGuideBox,K,e);h=h.dragGuideBox;p="x"===l.axis&&p.xAxis.reversed||"y"===l.axis&&p.yAxis.reversed?E(r):r;f="x"===l.axis?f-(d.origin.prevdX||0):0;c="y"===l.axis?c-(d.origin.prevdY||0):0;switch(p){case "left":var m={x:h.attr("x")+f,width:Math.max(1,h.attr("width")-f)};break;case "right":m={width:Math.max(1,
-h.attr("width")+f)};break;case "top":m={y:h.attr("y")+c,height:Math.max(1,h.attr("height")-c)};break;case "bottom":m={height:Math.max(1,h.attr("height")+c)}}h.attr(m)}else c.dragGuideBox.translate(f?g:0,h?k:0);b.prevdX=g;b.prevdY=k}))}}}function C(a,b){var c=b.dragDropData;if(c&&c.isDragging&&c.draggedPastSensitivity&&c.point.series){var d=c.point,e=c.newPoints,f=I(e),n=1===f?J(e):null;b.dragHandles&&b.hideDragHandles();a.preventDefault();b.cancelClick=!0;d.firePointEvent("drop",{origin:c.origin,
-chartX:a.chartX,chartY:a.chartY,newPoints:e,numNewPoints:f,newPoint:n&&n.newValues,newPointId:n&&n.point.id},function(){G(b)})}delete b.dragDropData;b.dragGuideBox&&(b.dragGuideBox.destroy(),delete b.dragGuideBox)}function V(a){var b=a.container,c=r.doc;N(a)&&(B(b,["mousedown","touchstart"],function(b){b=A(b,a);var c=a.hoverPoint,d=t(c&&c.series.options.dragDrop,c&&c.options.dragDrop),f=d.draggableX||!1;d=d.draggableY||!1;a.cancelClick=!1;!f&&!d||a.zoomOrPanKeyPressed(b)||a.hasDraggedAnnotation||
-(a.dragDropData&&a.dragDropData.isDragging?C(b,a):c&&O(c)&&(a.mouseIsDown=!1,F(b,c),c.firePointEvent("dragStart",b)))}),B(b,["mousemove","touchmove"],function(b){U(A(b,a),a)},{passive:!1}),w(b,"mouseleave",function(b){C(A(b,a),a)}),a.unbindDragDropMouseUp=B(c,["mouseup","touchend"],function(b){C(A(b,a),a)},{passive:!1}),a.hasAddedDragDropEvents=!0,w(a,"destroy",function(){a.unbindDragDropMouseUp&&a.unbindDragDropMouseUp()}))}var T=f.animObject,g=y.seriesTypes,w=u.addEvent,W=u.clamp,X=u.isNumber,t=
-u.merge,v=u.objectEach,z=u.pick;f=function(a){a=a.shapeArgs||a.graphic.getBBox();var b=a.r||0,c=a.height/2;return[["M",0,b],["L",0,c-5],["A",1,1,0,0,0,0,c+5],["A",1,1,0,0,0,0,c-5],["M",0,c+5],["L",0,a.height-b]]};y=D.prototype.dragDropProps={x:{axis:"x",move:!0},y:{axis:"y",move:!0}};g.flags&&(g.flags.prototype.dragDropProps=y);var k=g.column.prototype.dragDropProps={x:{axis:"x",move:!0},y:{axis:"y",move:!1,resize:!0,beforeResize:function(a,b,c){var d=c.series.translatedThreshold,e=a.attr("y");b.y>=
-c.series.options.threshold?(b=a.attr("height"),a.attr({height:Math.max(0,Math.round(b+(d?d-(e+b):0)))})):a.attr({y:Math.round(e+(d?d-e:0))})},resizeSide:function(a,b){var c=b.series.chart.dragHandles;a=a.y>=(b.series.options.threshold||0)?"top":"bottom";b=E(a);c[b]&&(c[b].destroy(),delete c[b]);return a},handlePositioner:function(a){var b=a.shapeArgs||a.graphic&&a.graphic.getBBox()||{},c=a.series.yAxis.reversed,d=a.series.options.threshold||0;a=a.y||0;return{x:b.x||0,y:!c&&a>=d||c&&a<d?b.y||0:(b.y||
-0)+(b.height||0)}},handleFormatter:function(a){var b=a.shapeArgs||{};a=b.r||0;b=b.width||0;var c=b/2;return[["M",a,0],["L",c-5,0],["A",1,1,0,0,0,c+5,0],["A",1,1,0,0,0,c-5,0],["M",c+5,0],["L",b-a,0]]}}};g.bullet&&(g.bullet.prototype.dragDropProps={x:k.x,y:k.y,target:{optionName:"draggableTarget",axis:"y",move:!0,resize:!0,resizeSide:"top",handlePositioner:function(a){var b=a.targetGraphic.getBBox();return{x:a.barX,y:b.y+b.height/2}},handleFormatter:k.y.handleFormatter}});g.columnrange&&(g.columnrange.prototype.dragDropProps=
-{x:{axis:"x",move:!0},low:{optionName:"draggableLow",axis:"y",move:!0,resize:!0,resizeSide:"bottom",handlePositioner:function(a){a=a.shapeArgs||a.graphic.getBBox();return{x:a.x||0,y:(a.y||0)+(a.height||0)}},handleFormatter:k.y.handleFormatter,propValidate:function(a,b){return a<=b.high}},high:{optionName:"draggableHigh",axis:"y",move:!0,resize:!0,resizeSide:"top",handlePositioner:function(a){a=a.shapeArgs||a.graphic.getBBox();return{x:a.x||0,y:a.y||0}},handleFormatter:k.y.handleFormatter,propValidate:function(a,
-b){return a>=b.low}}});g.boxplot&&(g.boxplot.prototype.dragDropProps={x:k.x,low:{optionName:"draggableLow",axis:"y",move:!0,resize:!0,resizeSide:"bottom",handlePositioner:function(a){return{x:a.shapeArgs.x||0,y:a.lowPlot}},handleFormatter:k.y.handleFormatter,propValidate:function(a,b){return a<=b.q1}},q1:{optionName:"draggableQ1",axis:"y",move:!0,resize:!0,resizeSide:"bottom",handlePositioner:function(a){return{x:a.shapeArgs.x||0,y:a.q1Plot}},handleFormatter:k.y.handleFormatter,propValidate:function(a,
-b){return a<=b.median&&a>=b.low}},median:{axis:"y",move:!0},q3:{optionName:"draggableQ3",axis:"y",move:!0,resize:!0,resizeSide:"top",handlePositioner:function(a){return{x:a.shapeArgs.x||0,y:a.q3Plot}},handleFormatter:k.y.handleFormatter,propValidate:function(a,b){return a<=b.high&&a>=b.median}},high:{optionName:"draggableHigh",axis:"y",move:!0,resize:!0,resizeSide:"top",handlePositioner:function(a){return{x:a.shapeArgs.x||0,y:a.highPlot}},handleFormatter:k.y.handleFormatter,propValidate:function(a,
-b){return a>=b.q3}}});g.ohlc&&(g.ohlc.prototype.dragDropProps={x:k.x,low:{optionName:"draggableLow",axis:"y",move:!0,resize:!0,resizeSide:"bottom",handlePositioner:function(a){return{x:a.shapeArgs.x,y:a.plotLow}},handleFormatter:k.y.handleFormatter,propValidate:function(a,b){return a<=b.open&&a<=b.close}},high:{optionName:"draggableHigh",axis:"y",move:!0,resize:!0,resizeSide:"top",handlePositioner:function(a){return{x:a.shapeArgs.x,y:a.plotHigh}},handleFormatter:k.y.handleFormatter,propValidate:function(a,
-b){return a>=b.open&&a>=b.close}},open:{optionName:"draggableOpen",axis:"y",move:!0,resize:!0,resizeSide:function(a){return a.open>=a.close?"top":"bottom"},handlePositioner:function(a){return{x:a.shapeArgs.x,y:a.plotOpen}},handleFormatter:k.y.handleFormatter,propValidate:function(a,b){return a<=b.high&&a>=b.low}},close:{optionName:"draggableClose",axis:"y",move:!0,resize:!0,resizeSide:function(a){return a.open>=a.close?"bottom":"top"},handlePositioner:function(a){return{x:a.shapeArgs.x,y:a.plotClose}},
-handleFormatter:k.y.handleFormatter,propValidate:function(a,b){return a<=b.high&&a>=b.low}}});g.arearange&&(y=g.columnrange.prototype.dragDropProps,u=function(a){a=a.graphic?a.graphic.getBBox().width/2+1:4;return[["M",0-a,0],["a",a,a,0,1,0,2*a,0],["a",a,a,0,1,0,-2*a,0]]},g.arearange.prototype.dragDropProps={x:y.x,low:{optionName:"draggableLow",axis:"y",move:!0,resize:!0,resizeSide:"bottom",handlePositioner:function(a){return(a=a.graphics&&a.graphics[0]&&a.graphics[0].getBBox())?{x:a.x+a.width/2,y:a.y+
-a.height/2}:{x:-999,y:-999}},handleFormatter:u,propValidate:y.low.propValidate},high:{optionName:"draggableHigh",axis:"y",move:!0,resize:!0,resizeSide:"top",handlePositioner:function(a){return(a=a.graphics&&a.graphics[1]&&a.graphics[1].getBBox())?{x:a.x+a.width/2,y:a.y+a.height/2}:{x:-999,y:-999}},handleFormatter:u,propValidate:y.high.propValidate}});g.waterfall&&(g.waterfall.prototype.dragDropProps={x:k.x,y:t(k.y,{handleFormatter:function(a){return a.isSum||a.isIntermediateSum?null:k.y.handleFormatter(a)}})});
-if(g.xrange){var L=function(a,b){var c=a.series,d=c.xAxis,e=c.yAxis,f=c.chart.inverted;b=d.toPixels(a[b],!0);var n=e.toPixels(a.y,!0);a=c.columnMetrics?c.columnMetrics.offset:-a.shapeArgs.height/2;f&&(b=d.len-b,n=e.len-n);return{x:Math.round(b),y:Math.round(n+a)}};f=g.xrange.prototype.dragDropProps={y:{axis:"y",move:!0},x:{optionName:"draggableX1",axis:"x",move:!0,resize:!0,resizeSide:"left",handlePositioner:function(a){return L(a,"x")},handleFormatter:f,propValidate:function(a,b){return a<=b.x2}},
-x2:{optionName:"draggableX2",axis:"x",move:!0,resize:!0,resizeSide:"right",handlePositioner:function(a){return L(a,"x2")},handleFormatter:f,propValidate:function(a,b){return a>=b.x}}};g.gantt&&(g.gantt.prototype.dragDropProps={y:f.y,start:t(f.x,{optionName:"draggableStart",validateIndividualDrag:function(a){return!a.milestone}}),end:t(f.x2,{optionName:"draggableEnd",validateIndividualDrag:function(a){return!a.milestone}})})}"gauge pie sunburst wordcloud sankey histogram pareto vector windbarb treemap bellcurve sma map mapline".split(" ").forEach(function(a){g[a]&&
-(g[a].prototype.dragDropProps=null)});var Y={"default":{className:"highcharts-drag-box-default",lineWidth:1,lineColor:"#888",color:"rgba(0, 0, 0, 0.1)",cursor:"move",zIndex:900}},Z={className:"highcharts-drag-handle",color:"#fff",lineColor:"rgba(0, 0, 0, 0.6)",lineWidth:1,zIndex:901};m.prototype.setGuideBoxState=function(a,b){var c=this.dragGuideBox;b=t(Y,b);a=t(b["default"],b[a]);return c.attr({className:a.className,stroke:a.lineColor,strokeWidth:a.lineWidth,fill:a.color,cursor:a.cursor,zIndex:a.zIndex}).css({pointerEvents:"none"})};
-x.prototype.getDropValues=function(a,b,c){var d=this,e=d.series,f=t(e.options.dragDrop,d.options.dragDrop),n={},g=a.points[d.id],l;for(l in c)if(Object.hasOwnProperty.call(c,l)){if("undefined"!==typeof k){var k=!1;break}k=!0}v(c,function(a,c){var l=g[c],p=e[a.axis+"Axis"];p=p.toValue((p.horiz?b.chartX:b.chartY)+g[c+"Offset"]);var h=a.axis.toUpperCase(),q=e[h.toLowerCase()+"Axis"].categories?1:0;q=z(f["dragPrecision"+h],q);var m=z(f["dragMin"+h],-Infinity);h=z(f["dragMax"+h],Infinity);q&&(p=Math.round(p/
-q)*q);p=W(p,m,h);k&&a.propValidate&&!a.propValidate(p,d)||"undefined"===typeof l||(n[c]=p)});return n};D.prototype.getGuideBox=function(a){var b=this.chart,c=Infinity,d=-Infinity,e=Infinity,f=-Infinity,g;a.forEach(function(a){var b=a.graphic&&a.graphic.getBBox()||a.shapeArgs;if(b){var n=void 0,h=a.x2;X(h)&&(n=a.series.xAxis.translate(h,!1,!1,!1,!0));h=!(b.width||b.height||b.x||b.y);g=!0;c=Math.min(a.plotX||0,n||0,h?Infinity:b.x||0,c);d=Math.max(a.plotX||0,n||0,(b.x||0)+(b.width||0),d);e=Math.min(a.plotY||
-0,h?Infinity:b.y||0,e);f=Math.max((b.y||0)+(b.height||0),f)}});return g?b.renderer.rect(c,e,d-c,f-e):b.renderer.g()};x.prototype.showDragHandles=function(){var a=this,b=a.series,c=b.chart,d=c.inverted,f=c.renderer,g=t(b.options.dragDrop,a.options.dragDrop);v(b.dragDropProps,function(e,k){var l=t(Z,e.handleOptions,g.dragHandle),n={"class":l.className,"stroke-width":l.lineWidth,fill:l.color,stroke:l.lineColor},h=l.pathFormatter||e.handleFormatter,m=e.handlePositioner,q=e.validateIndividualDrag?e.validateIndividualDrag(a):
-!0;e.resize&&q&&e.resizeSide&&h&&(g["draggable"+e.axis.toUpperCase()]||g[e.optionName])&&!1!==g[e.optionName]&&(c.dragHandles||(c.dragHandles={group:f.g("drag-drop-handles").add(b.markerGroup||b.group)}),c.dragHandles.point=a.id,m=m(a),n.d=h=h(a),q=a.series.xAxis.categories?-.5:0,!h||m.x<q||0>m.y||(n.cursor=l.cursor||("x"===e.axis!==!!d?"ew-resize":"ns-resize"),(l=c.dragHandles[e.optionName])||(l=c.dragHandles[e.optionName]=f.path().add(c.dragHandles.group)),n.translateX=d?b.yAxis.len-m.y:m.x,n.translateY=
-d?b.xAxis.len-m.x:m.y,d&&(n.rotation=-90),l.attr(n),B(l.element,["touchstart","mousedown"],function(b){b=A(b,c);var d=a.series.chart;d.zoomOrPanKeyPressed(b)||(d.mouseIsDown=!1,F(b,a),d.dragDropData.updateProp=b.updateProp=k,a.firePointEvent("dragStart",b),b.stopPropagation(),b.preventDefault())},{passive:!1}),w(c.dragHandles.group.element,"mouseover",function(){c.dragDropData=c.dragDropData||{};c.dragDropData.isHoveringHandle=a.id}),B(c.dragHandles.group.element,["touchend","mouseout"],function(){var b=
-a.series.chart;b.dragDropData&&a.id===b.dragDropData.isHoveringHandle&&delete b.dragDropData.isHoveringHandle;b.hoverPoint||H(a)})))})};m.prototype.hideDragHandles=function(){this.dragHandles&&(v(this.dragHandles,function(a,b){"group"!==b&&a.destroy&&a.destroy()}),this.dragHandles.group&&this.dragHandles.group.destroy&&this.dragHandles.group.destroy(),delete this.dragHandles)};w(x,"mouseOver",function(){var a=this;setTimeout(function(){var b=a.series,c=b&&b.chart,d=c&&c.dragDropData,e=c&&c.is3d&&
-c.is3d();!c||d&&d.isDragging&&d.draggedPastSensitivity||c.isDragDropAnimating||!b.options.dragDrop||e||(c.dragHandles&&c.hideDragHandles(),a.showDragHandles())},12)});w(x,"mouseOut",function(){var a=this;setTimeout(function(){a.series&&H(a)},10)});w(x,"remove",function(){var a=this.series.chart,b=a.dragHandles;b&&b.point===this.id&&a.hideDragHandles()});m.prototype.zoomOrPanKeyPressed=function(a){var b=this.options.chart||{},c=b.panKey&&b.panKey+"Key";return a[b.zooming.key&&b.zooming.key+"Key"]||
-a[c]};w(m,"render",function(){this.hasAddedDragDropEvents||V(this)});""});r(f,"masters/modules/draggable-points.src.js",[],function(){})});
-//# sourceMappingURL=draggable-points.js.map

+ 0 - 46
nicegui/elements/lib/highcharts_modules/drilldown.js

@@ -1,46 +0,0 @@
-/*
- Highcharts JS v10.3.3 (2023-01-20)
-
- Highcharts Drilldown module
-
- Author: Torstein Honsi
- License: www.highcharts.com/license
-
-*/
-(function(a){"object"===typeof module&&module.exports?(a["default"]=a,module.exports=a):"function"===typeof define&&define.amd?define("highcharts/modules/drilldown",["highcharts"],function(v){a(v);a.Highcharts=v;return a}):a("undefined"!==typeof Highcharts?Highcharts:void 0)})(function(a){function v(a,q,f,p){a.hasOwnProperty(q)||(a[q]=p.apply(null,f),"function"===typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:q,module:a[q]}})))}a=a?a._modules:{};v(a,
-"Extensions/Breadcrumbs.js",[a["Core/Chart/Chart.js"],a["Core/Defaults.js"],a["Core/Globals.js"],a["Core/Utilities.js"],a["Core/FormatUtilities.js"]],function(a,q,f,p,l){var v=l.format;l=p.addEvent;var C=p.objectEach,y=p.extend,D=p.fireEvent,w=p.merge,A=p.pick,E=p.defined,r=p.isString;y(q.defaultOptions.lang,{mainBreadcrumb:"Main"});q=function(){function a(b,d){this.group=void 0;this.list=[];this.elementList={};this.isDirty=!0;this.level=0;this.options=void 0;d=w(b.options.drilldown&&b.options.drilldown.drillUpButton,
-a.defaultBreadcrumbsOptions,b.options.navigation&&b.options.navigation.breadcrumbs,d);this.chart=b;this.options=d||{}}a.prototype.updateProperties=function(b){this.setList(b);this.setLevel();this.isDirty=!0};a.prototype.setList=function(b){this.list=b};a.prototype.setLevel=function(){this.level=this.list.length&&this.list.length-1};a.prototype.getLevel=function(){return this.level};a.prototype.getButtonText=function(b){var a=this.chart,h=this.options,e=a.options.lang,f=A(h.format,h.showFullPath?"{level.name}":
-"\u2190 {level.name}");e=e&&A(e.drillUpText,e.mainBreadcrumb);b=h.formatter&&h.formatter(b)||v(f,{level:b.levelOptions},a)||"";(r(b)&&!b.length||"\u2190 "===b)&&E(e)&&(b=h.showFullPath?e:"\u2190 "+e);return b};a.prototype.redraw=function(){this.isDirty&&this.render();this.group&&this.group.align();this.isDirty=!1};a.prototype.render=function(){var a=this.chart,d=this.options;!this.group&&d&&(this.group=a.renderer.g("breadcrumbs-group").addClass("highcharts-no-tooltip highcharts-breadcrumbs").attr({zIndex:d.zIndex}).add());
-d.showFullPath?this.renderFullPathButtons():this.renderSingleButton();this.alignBreadcrumbsGroup()};a.prototype.renderFullPathButtons=function(){this.destroySingleButton();this.resetElementListState();this.updateListElements();this.destroyListElements()};a.prototype.renderSingleButton=function(){var a=this.chart,d=this.list,h=this.options.buttonSpacing;this.destroyListElements();var e=this.group?this.group.getBBox().width:h;d=d[d.length-2];!a.drillUpButton&&0<this.level?a.drillUpButton=this.renderButton(d,
-e,h):a.drillUpButton&&(0<this.level?this.updateSingleButton():this.destroySingleButton())};a.prototype.alignBreadcrumbsGroup=function(a){if(this.group){var b=this.options,h=b.buttonTheme,e=b.position,f="chart"===b.relativeTo||"spacingBox"===b.relativeTo?void 0:"scrollablePlotBox",k=this.group.getBBox();b=2*(h.padding||0)+b.buttonSpacing;e.width=k.width+b;e.height=k.height+b;k=w(e);a&&(k.x+=a);this.options.rtl&&(k.x+=e.width);k.y=A(k.y,this.yOffset,0);this.group.align(k,!0,f)}};a.prototype.renderButton=
-function(a,d,h){var b=this,f=this.chart,k=b.options,x=w(k.buttonTheme);d=f.renderer.button(b.getButtonText(a),d,h,function(d){var e=k.events&&k.events.click,h;e&&(h=e.call(b,d,a));!1!==h&&(d.newLevel=k.showFullPath?a.level:b.level-1,D(b,"up",d))},x).addClass("highcharts-breadcrumbs-button").add(b.group);f.styledMode||d.attr(k.style);return d};a.prototype.renderSeparator=function(a,d){var b=this.chart,e=this.options.separator;a=b.renderer.label(e.text,a,d,void 0,void 0,void 0,!1).addClass("highcharts-breadcrumbs-separator").add(this.group);
-b.styledMode||a.css(e.style);return a};a.prototype.update=function(a){w(!0,this.options,a);this.destroy();this.isDirty=!0};a.prototype.updateSingleButton=function(){var a=this.chart,d=this.list[this.level-1];a.drillUpButton&&a.drillUpButton.attr({text:this.getButtonText(d)})};a.prototype.destroy=function(){this.destroySingleButton();this.destroyListElements(!0);this.group&&this.group.destroy();this.group=void 0};a.prototype.destroyListElements=function(a){var b=this.elementList;C(b,function(d,e){if(a||
-!b[e].updated)d=b[e],d.button&&d.button.destroy(),d.separator&&d.separator.destroy(),delete d.button,delete d.separator,delete b[e]});a&&(this.elementList={})};a.prototype.destroySingleButton=function(){this.chart.drillUpButton&&(this.chart.drillUpButton.destroy(),this.chart.drillUpButton=void 0)};a.prototype.resetElementListState=function(){C(this.elementList,function(a){a.updated=!1})};a.prototype.updateListElements=function(){var a=this,d=a.elementList,h=a.options.buttonSpacing,e=a.list,f=a.options.rtl,
-k=f?-1:1,x=function(a,b){return k*a.getBBox().width+k*b},t=a.group?x(a.group,h):h,l;e.forEach(function(b,q){q=q===e.length-1;if(d[b.level]){l=d[b.level];var p=l.button;if(l.separator||q)l.separator&&q&&(l.separator.destroy(),delete l.separator);else{t+=k*h;l.separator=a.renderSeparator(t,h);if(f){var r=l.separator;r.translate(t-r.getBBox().width,h)}t+=x(l.separator,h)}d[b.level].updated=!0}else p=a.renderButton(b,t,h),f&&p.translate(t-p.getBBox().width,h),t+=x(p,h),q||(r=a.renderSeparator(t,h),f&&
-r.translate(t-r.getBBox().width,h),t+=x(r,h)),d[b.level]={button:p,separator:r,updated:!0};p&&p.setState(q?2:0)})};a.defaultBreadcrumbsOptions={buttonTheme:{fill:"none",height:18,padding:2,"stroke-width":0,zIndex:7,states:{select:{fill:"none"}},style:{color:"#335cad"}},buttonSpacing:5,floating:!1,format:void 0,relativeTo:"plotBox",rtl:!1,position:{align:"left",verticalAlign:"top",x:0,y:void 0},separator:{text:"/",style:{color:"#666666"}},showFullPath:!0,style:{},useHTML:!1,zIndex:7};return a}();f.Breadcrumbs||
-(f.Breadcrumbs=q,l(a,"getMargins",function(){var a=this.breadcrumbs;if(a&&!a.options.floating&&a.level){var b=a.options,d=b.buttonTheme;d=(d.height||0)+2*(d.padding||0)+b.buttonSpacing;b=b.position.verticalAlign;"bottom"===b?(this.marginBottom=(this.marginBottom||0)+d,a.yOffset=d):"middle"!==b?(this.plotTop+=d,a.yOffset=-d):a.yOffset=void 0}}),l(a,"redraw",function(){this.breadcrumbs&&this.breadcrumbs.redraw()}),l(a,"destroy",function(){this.breadcrumbs&&(this.breadcrumbs.destroy(),this.breadcrumbs=
-void 0)}),l(a,"afterShowResetZoom",function(){if(this.breadcrumbs){var a=this.resetZoomButton&&this.resetZoomButton.getBBox(),b=this.breadcrumbs.options;a&&"right"===b.position.align&&"plotBox"===b.relativeTo&&this.breadcrumbs.alignBreadcrumbsGroup(-a.width-b.buttonSpacing)}}),l(a,"selection",function(a){!0===a.resetSelection&&this.breadcrumbs&&this.breadcrumbs.alignBreadcrumbsGroup()}));"";return q});v(a,"Extensions/Drilldown.js",[a["Core/Animation/AnimationUtilities.js"],a["Core/Axis/Axis.js"],
-a["Core/Chart/Chart.js"],a["Core/Color/Color.js"],a["Series/Column/ColumnSeries.js"],a["Core/Globals.js"],a["Core/Defaults.js"],a["Core/Series/Point.js"],a["Core/Series/Series.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Renderer/SVG/SVGRenderer.js"],a["Core/Axis/Tick.js"],a["Core/Utilities.js"],a["Extensions/Breadcrumbs.js"]],function(a,q,f,p,l,v,K,y,D,w,A,E,r,x){function b(a){var g=d(this.chart.options.drilldown.animation);a&&(a.hide(),G(function(){a&&a.added&&a.fadeIn()},Math.max(g.duration-
-50,0)))}var d=a.animObject,h=v.noop;a=K.defaultOptions;var e=r.addEvent,C=r.removeEvent,k=r.extend,z=r.fireEvent,t=r.merge,L=r.objectEach,B=r.pick,G=r.syncTimeout;w=w.seriesTypes.pie;var H=1;k(a.lang,{});a.drilldown={activeAxisLabelStyle:{cursor:"pointer",color:"#003399",fontWeight:"bold",textDecoration:"underline"},activeDataLabelStyle:{cursor:"pointer",color:"#003399",fontWeight:"bold",textDecoration:"underline"},animation:{duration:500},drillUpButton:{position:{align:"right",x:-10,y:10}}};A.prototype.Element.prototype.fadeIn=
-function(a){this.attr({opacity:.1,visibility:"inherit"}).animate({opacity:B(this.newOpacity,1)},a||{duration:250})};f.prototype.addSeriesAsDrilldown=function(a,c){this.addSingleSeriesAsDrilldown(a,c);this.applyDrilldown()};f.prototype.addSingleSeriesAsDrilldown=function(a,c){var g=a.series,m=g.xAxis,b=g.yAxis,u=[],d=[],n;var e=this.styledMode?{colorIndex:B(a.colorIndex,g.colorIndex)}:{color:a.color||g.color};this.drilldownLevels||(this.drilldownLevels=[]);var f=g.options._levelNumber||0;(n=this.drilldownLevels[this.drilldownLevels.length-
-1])&&n.levelNumber!==f&&(n=void 0);c=k(k({_ddSeriesId:H++},e),c);var l=g.points.indexOf(a);g.chart.series.forEach(function(a){a.xAxis!==m||a.isDrilling||(a.options._ddSeriesId=a.options._ddSeriesId||H++,a.options._colorIndex=a.userOptions._colorIndex,a.options._levelNumber=a.options._levelNumber||f,n?(u=n.levelSeries,d=n.levelSeriesOptions):(u.push(a),a.purgedOptions=t({_ddSeriesId:a.options._ddSeriesId,_levelNumber:a.options._levelNumber,selected:a.options.selected},a.userOptions),d.push(a.purgedOptions)))});
-a=k({levelNumber:f,seriesOptions:g.options,seriesPurgedOptions:g.purgedOptions,levelSeriesOptions:d,levelSeries:u,shapeArgs:a.shapeArgs,bBox:a.graphic?a.graphic.getBBox():{},color:a.isNull?p.parse(e.color).setOpacity(0).get():e.color,lowerSeriesOptions:c,pointOptions:g.options.data[l],pointIndex:l,oldExtremes:{xMin:m&&m.userMin,xMax:m&&m.userMax,yMin:b&&b.userMin,yMax:b&&b.userMax},resetZoomButton:n&&n.levelNumber===f?void 0:this.resetZoomButton},e);this.drilldownLevels.push(a);m&&m.names&&(m.names.length=
-0);c=a.lowerSeries=this.addSeries(c,!1);c.options._levelNumber=f+1;m&&(m.oldPos=m.pos,m.userMin=m.userMax=null,b.userMin=b.userMax=null);g.type===c.type&&(c.animate=c.animateDrilldown||h,c.options.animation=!0)};f.prototype.applyDrilldown=function(){var a=this.drilldownLevels;if(a&&0<a.length){var c=a[a.length-1].levelNumber;this.drilldownLevels.forEach(function(a){a.levelNumber===c&&a.levelSeries.forEach(function(a){a.options&&a.options._levelNumber===c&&a.remove(!1)})})}this.resetZoomButton&&(this.resetZoomButton.hide(),
-delete this.resetZoomButton);this.pointer.reset();z(this,"afterDrilldown");this.redraw();z(this,"afterApplyDrilldown")};var I=function(a){var c=[];(a=a.drilldownLevels)&&a.length&&(c[0]||c.push({level:0,levelOptions:a[0].seriesOptions}),a.forEach(function(a,g){a.levelNumber+1>c[c.length-1].level&&c.push({level:a.levelNumber+1,levelOptions:t({name:a.lowerSeries.name},a.pointOptions)})}));return c};f.prototype.drillUp=function(){if(this.drilldownLevels&&0!==this.drilldownLevels.length){z(this,"beforeDrillUp");
-for(var a=this,c=a.drilldownLevels,b=c[c.length-1].levelNumber,m=c.length,d=a.series,u,e,n,f,h=function(c){d.forEach(function(a){a.options._ddSeriesId===c._ddSeriesId&&(g=a)});var g=g||a.addSeries(c,!1);g.type===n.type&&g.animateDrillupTo&&(g.animate=g.animateDrillupTo);c===e.seriesPurgedOptions&&(f=g)},k=a.drilldownLevels.length;m--;)if(e=c[m],e.levelNumber===b){c.pop();n=e.lowerSeries;if(!n.chart)for(u=d.length;u--;)if(d[u].options.id===e.lowerSeriesOptions.id&&d[u].options._levelNumber===b+1){n=
-d[u];break}n.xData=[];n.xAxis&&n.xAxis.names&&(0===k||m===k)&&(n.xAxis.names.length=0);e.levelSeriesOptions.forEach(h);z(a,"drillup",{seriesOptions:e.seriesPurgedOptions||e.seriesOptions});f.type===n.type&&(f.drilldownLevel=e,f.options.animation=a.options.drilldown.animation,n.animateDrillupFrom&&n.chart&&n.animateDrillupFrom(e));f.options._levelNumber=b;n.remove(!1);f.xAxis&&(u=e.oldExtremes,f.xAxis.setExtremes(u.xMin,u.xMax,!1),f.yAxis.setExtremes(u.yMin,u.yMax,!1));e.resetZoomButton&&(a.resetZoomButton=
-e.resetZoomButton)}z(a,"afterDrillUp");this.redraw();this.ddDupes&&(this.ddDupes.length=0);z(a,"drillupall")}};e(f,"afterInit",function(){var a=this;a.drilldown={chart:a,fadeInGroup:b,update:function(c,g){t(!0,a.options.drilldown,c);B(g,!0)&&a.redraw()}}});e(f,"render",function(){(this.xAxis||[]).forEach(function(a){a.ddPoints={};a.series.forEach(function(c){var g,b=c.xData||[],e=c.points;for(g=0;g<b.length;g++){var d=c.options.data[g];"number"!==typeof d&&(d=c.pointClass.prototype.optionsToObject.call({series:c},
-d),d.drilldown&&(a.ddPoints[b[g]]||(a.ddPoints[b[g]]=[]),d=g-(c.cropStart||0),a.ddPoints[b[g]].push(e&&0<=d&&d<e.length?e[d]:!0)))}});L(a.ticks,E.prototype.drillable)})});e(v.Breadcrumbs,"up",function(a){var c=this.chart;a=this.getLevel()-a.newLevel;for(var g=0;g<a;g++)c.drillUp()});e(f,"afterDrilldown",function(){var a=this.options.drilldown;a=a&&a.breadcrumbs;this.breadcrumbs||(this.breadcrumbs=new x(this,a));this.breadcrumbs.updateProperties(I(this))});e(f,"afterDrillUp",function(){this.breadcrumbs&&
-this.breadcrumbs.updateProperties(I(this))});e(f,"update",function(a){var c=this.breadcrumbs,b=a.options.drilldown&&a.options.drilldown.breadcrumbs;c&&b&&c.update(a.options.drilldown.breadcrumbs)});l.prototype.animateDrillupTo=function(a){if(!a){var c=this,b=c.drilldownLevel;this.points.forEach(function(a){var c=a.dataLabel;a.graphic&&a.graphic.hide();c&&(c.hidden="hidden"===c.attr("visibility"),c.hidden||(c.hide(),a.connector&&a.connector.hide()))});G(function(){if(c.points){var a=[];c.data.forEach(function(c){a.push(c)});
-c.nodes&&(a=a.concat(c.nodes));a.forEach(function(a,c){c=c===(b&&b.pointIndex)?"show":"fadeIn";var g="show"===c?!0:void 0,d=a.dataLabel;if(a.graphic)a.graphic[c](g);d&&!d.hidden&&(d.fadeIn(),a.connector&&a.connector.fadeIn())})}},Math.max(this.chart.options.drilldown.animation.duration-50,0));delete this.animate}};l.prototype.animateDrilldown=function(a){var c=this,b=this.chart,g=b.drilldownLevels,e,f=d(b.options.drilldown.animation),h=this.xAxis,n=b.styledMode;a||(g.forEach(function(a){c.options._ddSeriesId===
-a.lowerSeriesOptions._ddSeriesId&&(e=a.shapeArgs,n||(e.fill=a.color))}),e.x+=B(h.oldPos,h.pos)-h.pos,this.points.forEach(function(a){var b=a.shapeArgs;n||(b.fill=a.color);a.graphic&&a.graphic.attr(e).animate(k(a.shapeArgs,{fill:a.color||c.color}),f)}),b.drilldown&&b.drilldown.fadeInGroup(this.dataLabelsGroup),delete this.animate)};l.prototype.animateDrillupFrom=function(a){var c=d(this.chart.options.drilldown.animation),b=this.group,e=b!==this.chart.columnGroup,g=this;g.trackerGroups.forEach(function(a){if(g[a])g[a].on("mouseover")});
-e&&delete this.group;this.points.forEach(function(d){var f=d.graphic,m=a.shapeArgs,h=function(){f.destroy();b&&e&&(b=b.destroy())};f&&m&&(delete d.graphic,g.chart.styledMode||(m.fill=a.color),c.duration?f.animate(m,t(c,{complete:h})):(f.attr(m),h()))})};w&&k(w.prototype,{animateDrillupTo:l.prototype.animateDrillupTo,animateDrillupFrom:l.prototype.animateDrillupFrom,animateDrilldown:function(a){var c=this.chart.drilldownLevels[this.chart.drilldownLevels.length-1],b=this.chart.options.drilldown.animation;
-this.is("item")&&(b.duration=0);if(this.center){var d=c.shapeArgs,e=d.start,g=(d.end-e)/this.points.length,f=this.chart.styledMode;a||(this.points.forEach(function(a,m){var h=a.shapeArgs;f||(d.fill=c.color,h.fill=a.color);if(a.graphic)a.graphic.attr(t(d,{start:e+m*g,end:e+(m+1)*g}))[b?"animate":"attr"](h,b)}),this.chart.drilldown&&this.chart.drilldown.fadeInGroup(this.dataLabelsGroup),delete this.animate)}}});y.prototype.doDrilldown=function(){this.runDrilldown()};y.prototype.runDrilldown=function(a,
-c,b){var d=this.series.chart,e=d.options.drilldown,g=(e.series||[]).length;d.ddDupes||(d.ddDupes=[]);for(;g--&&!f;)if(e.series[g].id===this.drilldown&&-1===d.ddDupes.indexOf(this.drilldown)){var f=e.series[g];d.ddDupes.push(this.drilldown)}z(d,"drilldown",{point:this,seriesOptions:f,category:c,originalEvent:b,points:"undefined"!==typeof c&&this.series.xAxis.getDDPoints(c).slice(0)},function(c){var b=c.point.series&&c.point.series.chart,d=c.seriesOptions;b&&d&&(a?b.addSingleSeriesAsDrilldown(c.point,
-d):b.addSeriesAsDrilldown(c.point,d))})};q.prototype.drilldownCategory=function(a,c){this.getDDPoints(a).forEach(function(b){b&&b.series&&b.series.visible&&b.runDrilldown&&b.runDrilldown(!0,a,c)});this.chart.applyDrilldown()};q.prototype.getDDPoints=function(a){return this.ddPoints&&this.ddPoints[a]||[]};E.prototype.drillable=function(){var a=this.pos,c=this.label,b=this.axis,d="xAxis"===b.coll&&b.getDDPoints,f=d&&b.getDDPoints(a),h=b.chart.styledMode;d&&(c&&f&&f.length?(c.drillable=!0,c.basicStyles||
-h||(c.basicStyles=t(c.styles)),c.addClass("highcharts-drilldown-axis-label"),c.removeOnDrillableClick&&C(c.element,"click"),c.removeOnDrillableClick=e(c.element,"click",function(c){c.preventDefault();b.drilldownCategory(a,c)}),h||c.css(b.chart.options.drilldown.activeAxisLabelStyle)):c&&c.drillable&&c.removeOnDrillableClick&&(h||(c.styles={},c.element.removeAttribute("style"),c.css(c.basicStyles)),c.removeOnDrillableClick(),c.removeClass("highcharts-drilldown-axis-label")))};e(y,"afterInit",function(){this.drilldown&&
-!this.unbindDrilldownClick&&(this.unbindDrilldownClick=e(this,"click",J));return this});e(y,"update",function(a){a=a.options||{};a.drilldown&&!this.unbindDrilldownClick?this.unbindDrilldownClick=e(this,"click",J):!a.drilldown&&void 0!==a.drilldown&&this.unbindDrilldownClick&&(this.unbindDrilldownClick=this.unbindDrilldownClick())});var J=function(a){var c=this.series;c.xAxis&&!1===c.chart.options.drilldown.allowPointDrilldown?c.xAxis.drilldownCategory(this.x,a):this.runDrilldown(void 0,void 0,a)};
-e(D,"afterDrawDataLabels",function(){var a=this.chart.options.drilldown.activeDataLabelStyle,c=this.chart.renderer,b=this.chart.styledMode;this.points.forEach(function(d){var e=d.options.dataLabels,g=B(d.dlOptions,e&&e.style,{});d.drilldown&&d.dataLabel&&("contrast"!==a.color||b||(g.color=c.getContrast(d.color||this.color)),e&&e.color&&(g.color=e.color),d.dataLabel.addClass("highcharts-drilldown-data-label"),b||d.dataLabel.css(a).css(g))},this)});var F=function(a,b,d,e){a[d?"addClass":"removeClass"]("highcharts-drilldown-point");
-e||a.css({cursor:b})};e(D,"afterDrawTracker",function(){var a=this.chart.styledMode;this.points.forEach(function(b){b.drilldown&&b.graphic&&F(b.graphic,"pointer",!0,a)})});e(y,"afterSetState",function(){var a=this.series.chart.styledMode;this.drilldown&&this.series.halo&&"hover"===this.state?F(this.series.halo,"pointer",!0,a):this.series.halo&&F(this.series.halo,"auto",!1,a)});e(f,"drillup",function(){this.resetZoomButton&&(this.resetZoomButton=this.resetZoomButton.destroy())});e(f,"drillupall",function(){this.resetZoomButton&&
-this.showResetZoom()})});v(a,"masters/modules/drilldown.src.js",[],function(){})});
-//# sourceMappingURL=drilldown.js.map

+ 0 - 24
nicegui/elements/lib/highcharts_modules/dumbbell.js

@@ -1,24 +0,0 @@
-/*
- Highcharts JS v10.3.3 (2023-01-20)
-
- (c) 2009-2021 Sebastian Bochan, Rafal Sebestjanski
-
- License: www.highcharts.com/license
-*/
-(function(a){"object"===typeof module&&module.exports?(a["default"]=a,module.exports=a):"function"===typeof define&&define.amd?define("highcharts/modules/dumbbell",["highcharts"],function(h){a(h);a.Highcharts=h;return a}):a("undefined"!==typeof Highcharts?Highcharts:void 0)})(function(a){function h(a,e,l,d){a.hasOwnProperty(e)||(a[e]=d.apply(null,l),"function"===typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:e,module:a[e]}})))}a=a?a._modules:{};h(a,
-"Series/AreaRange/AreaRangePoint.js",[a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,e){var l=this&&this.__extends||function(){var a=function(b,m){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var f in b)b.hasOwnProperty(f)&&(a[f]=b[f])};return a(b,m)};return function(b,m){function f(){this.constructor=b}a(b,m);b.prototype=null===m?Object.create(m):(f.prototype=m.prototype,new f)}}();a=a.seriesTypes.area.prototype;var d=
-a.pointClass.prototype,k=e.defined,p=e.isNumber;return function(a){function b(){var b=null!==a&&a.apply(this,arguments)||this;b.high=void 0;b.low=void 0;b.options=void 0;b.plotX=void 0;b.series=void 0;return b}l(b,a);b.prototype.setState=function(){var a=this.state,b=this.series,c=b.chart.polar;k(this.plotHigh)||(this.plotHigh=b.yAxis.toPixels(this.high,!0));k(this.plotLow)||(this.plotLow=this.plotY=b.yAxis.toPixels(this.low,!0));b.stateMarkerGraphic&&(b.lowerStateMarkerGraphic=b.stateMarkerGraphic,
-b.stateMarkerGraphic=b.upperStateMarkerGraphic);this.graphic=this.graphics&&this.graphics[1];this.plotY=this.plotHigh;c&&p(this.plotHighX)&&(this.plotX=this.plotHighX);d.setState.apply(this,arguments);this.state=a;this.plotY=this.plotLow;this.graphic=this.graphics&&this.graphics[0];c&&p(this.plotLowX)&&(this.plotX=this.plotLowX);b.stateMarkerGraphic&&(b.upperStateMarkerGraphic=b.stateMarkerGraphic,b.stateMarkerGraphic=b.lowerStateMarkerGraphic,b.lowerStateMarkerGraphic=void 0);d.setState.apply(this,
-arguments)};b.prototype.haloPath=function(){var b=this.series.chart.polar,a=[];this.plotY=this.plotLow;b&&p(this.plotLowX)&&(this.plotX=this.plotLowX);this.isInside&&(a=d.haloPath.apply(this,arguments));this.plotY=this.plotHigh;b&&p(this.plotHighX)&&(this.plotX=this.plotHighX);this.isTopInside&&(a=a.concat(d.haloPath.apply(this,arguments)));return a};b.prototype.isValid=function(){return p(this.low)&&p(this.high)};return b}(a.pointClass)});h(a,"Series/Dumbbell/DumbbellPoint.js",[a["Series/AreaRange/AreaRangePoint.js"],
-a["Core/Utilities.js"]],function(a,e){var l=this&&this.__extends||function(){var a=function(c,b){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,a){b.__proto__=a}||function(b,a){for(var c in a)a.hasOwnProperty(c)&&(b[c]=a[c])};return a(c,b)};return function(c,b){function d(){this.constructor=c}a(c,b);c.prototype=null===b?Object.create(b):(d.prototype=b.prototype,new d)}}(),d=e.extend,k=e.pick;e=function(a){function c(){var b=null!==a&&a.apply(this,arguments)||this;b.series=void 0;
-b.options=void 0;b.connector=void 0;b.pointWidth=void 0;return b}l(c,a);c.prototype.setState=function(){var a=this.series,c=a.chart,e=a.options.marker,l=this.options,p=k(l.lowColor,a.options.lowColor,l.color,this.zone&&this.zone.color,this.color,a.color),h="attr";this.pointSetState.apply(this,arguments);if(!this.state){h="animate";var q=this.graphics||[],n=q[0];q=q[1];n&&!c.styledMode&&(n.attr({fill:p}),q&&(c={y:this.y,zone:this.zone},this.y=this.high,this.zone=this.zone?this.getZone():void 0,e=k(this.marker?
-this.marker.fillColor:void 0,e?e.fillColor:void 0,l.color,this.zone?this.zone.color:void 0,this.color),q.attr({fill:e}),d(this,c)))}this.connector[h](a.getConnectorAttribs(this))};c.prototype.destroy=function(){this.graphic||(this.graphic=this.connector,this.connector=void 0);return a.prototype.destroy.call(this)};return c}(a);d(e.prototype,{pointSetState:a.prototype.setState});return e});h(a,"Series/Dumbbell/DumbbellSeries.js",[a["Series/Column/ColumnSeries.js"],a["Series/Dumbbell/DumbbellPoint.js"],
-a["Core/Globals.js"],a["Core/Series/Series.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Renderer/SVG/SVGRenderer.js"],a["Core/Utilities.js"]],function(a,e,l,d,h,p,c){var b=this&&this.__extends||function(){var a=function(b,g){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,g){a.__proto__=g}||function(a,g){for(var b in g)g.hasOwnProperty(b)&&(a[b]=g[b])};return a(b,g)};return function(b,g){function c(){this.constructor=b}a(b,g);b.prototype=null===g?Object.create(g):(c.prototype=
-g.prototype,new c)}}(),m=a.prototype;l=l.noop;var f=d.prototype;d=h.seriesTypes;var k=d.arearange;d=d.columnrange.prototype;var r=k.prototype,u=c.extend,q=c.merge,n=c.pick;c=function(a){function c(){var b=null!==a&&a.apply(this,arguments)||this;b.data=void 0;b.options=void 0;b.points=void 0;b.columnMetrics=void 0;return b}b(c,a);c.prototype.getConnectorAttribs=function(a){var b=this.chart,c=a.options,g=this.options,t=this.xAxis,e=this.yAxis,d=n(c.connectorWidth,g.connectorWidth),h=n(c.connectorColor,
-g.connectorColor,c.color,a.zone?a.zone.color:void 0,a.color),l=n(g.states&&g.states.hover&&g.states.hover.connectorWidthPlus,1),m=n(c.dashStyle,g.dashStyle),k=n(a.plotLow,a.plotY),f=e.toPixels(g.threshold||0,!0);f=n(a.plotHigh,b.inverted?e.len-f:f);if("number"!==typeof k)return{};a.state&&(d+=l);0>k?k=0:k>=e.len&&(k=e.len);0>f?f=0:f>=e.len&&(f=e.len);if(0>a.plotX||a.plotX>t.len)d=0;a.graphics&&a.graphics[1]&&(t={y:a.y,zone:a.zone},a.y=a.high,a.zone=a.zone?a.getZone():void 0,h=n(c.connectorColor,g.connectorColor,
-c.color,a.zone?a.zone.color:void 0,a.color),u(a,t));a={d:p.prototype.crispLine([["M",a.plotX,k],["L",a.plotX,f]],d,"ceil")};b.styledMode||(a.stroke=h,a["stroke-width"]=d,m&&(a.dashstyle=m));return a};c.prototype.drawConnector=function(a){var b=n(this.options.animationLimit,250);b=a.connector&&this.chart.pointCount<b?"animate":"attr";a.connector||(a.connector=this.chart.renderer.path().addClass("highcharts-lollipop-stem").attr({zIndex:-1}).add(this.group));a.connector[b](this.getConnectorAttribs(a))};
-c.prototype.getColumnMetrics=function(){var a=m.getColumnMetrics.apply(this,arguments);a.offset+=a.width/2;return a};c.prototype.translate=function(){var a=this,b=this.chart.inverted;this.setShapeArgs.apply(this);this.translatePoint.apply(this,arguments);this.points.forEach(function(c){var g=c.pointWidth,e=c.shapeArgs;e=void 0===e?{}:e;var d=c.tooltipPos;c.plotX=e.x||0;e.x=c.plotX-g/2;d&&(b?d[1]=a.xAxis.len-c.plotX:d[0]=c.plotX)});this.columnMetrics.offset-=this.columnMetrics.width/2};c.prototype.drawPoints=
-function(){var a=this.chart,b=this.points.length,c=this.lowColor=this.options.lowColor,e=0;for(this.seriesDrawPoints.apply(this,arguments);e<b;){var d=this.points[e];var f=d.graphics||[];var h=f[0];f=f[1];this.drawConnector(d);f&&(f.element.point=d,f.addClass("highcharts-lollipop-high"));d.connector.element.point=d;h&&(f=d.zone&&d.zone.color,d=n(d.options.lowColor,c,d.options.color,f,d.color,this.color),a.styledMode||h.attr({fill:d}),h.addClass("highcharts-lollipop-low"));e++}};c.prototype.markerAttribs=
-function(){var a=r.markerAttribs.apply(this,arguments);a.x=Math.floor(a.x||0);a.y=Math.floor(a.y||0);return a};c.prototype.pointAttribs=function(a,b){var c=f.pointAttribs.apply(this,arguments);"hover"===b&&delete c.fill;return c};c.defaultOptions=q(k.defaultOptions,{trackByArea:!1,fillColor:"none",lineWidth:0,pointRange:1,connectorWidth:1,stickyTracking:!1,groupPadding:.2,crisp:!1,pointPadding:.1,lowColor:"#333333",states:{hover:{lineWidthPlus:0,connectorWidthPlus:1,halo:!1}}});return c}(k);u(c.prototype,
-{crispCol:m.crispCol,drawGraph:l,drawTracker:a.prototype.drawTracker,pointClass:e,setShapeArgs:d.translate,seriesDrawPoints:r.drawPoints,trackerGroups:["group","markerGroup","dataLabelsGroup"],translatePoint:r.translate});h.registerSeriesType("dumbbell",c);"";return c});h(a,"masters/modules/dumbbell.src.js",[],function(){})});
-//# sourceMappingURL=dumbbell.js.map

+ 0 - 35
nicegui/elements/lib/highcharts_modules/export-data.js

@@ -1,35 +0,0 @@
-/*
- Highcharts JS v10.3.3 (2023-01-20)
-
- Exporting module
-
- (c) 2010-2021 Torstein Honsi
-
- License: www.highcharts.com/license
-*/
-(function(a){"object"===typeof module&&module.exports?(a["default"]=a,module.exports=a):"function"===typeof define&&define.amd?define("highcharts/modules/export-data",["highcharts","highcharts/modules/exporting"],function(p){a(p);a.Highcharts=p;return a}):a("undefined"!==typeof Highcharts?Highcharts:void 0)})(function(a){function p(a,f,c,y){a.hasOwnProperty(f)||(a[f]=y.apply(null,c),"function"===typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:f,module:a[f]}})))}
-a=a?a._modules:{};p(a,"Extensions/ExportData/ExportDataDefaults.js",[],function(){"";return{exporting:{csv:{annotations:{itemDelimiter:"; ",join:!1},columnHeaderFormatter:null,dateFormat:"%Y-%m-%d %H:%M:%S",decimalPoint:null,itemDelimiter:null,lineDelimiter:"\n"},showTable:!1,useMultiLevelHeaders:!0,useRowspanHeaders:!0},lang:{downloadCSV:"Download CSV",downloadXLS:"Download XLS",exportData:{annotationHeader:"Annotations",categoryHeader:"Category",categoryDatetimeHeader:"DateTime"},viewData:"View data table",
-hideData:"Hide data table"}}});p(a,"Extensions/DownloadURL.js",[a["Core/Globals.js"]],function(a){var f=a.isSafari,c=a.win,y=c.document,p=c.URL||c.webkitURL||c,D=a.dataURLtoBlob=function(a){if((a=a.replace(/filename=.*;/,"").match(/data:([^;]*)(;base64)?,([0-9A-Za-z+/]+)/))&&3<a.length&&c.atob&&c.ArrayBuffer&&c.Uint8Array&&c.Blob&&p.createObjectURL){var m=c.atob(a[3]),v=new c.ArrayBuffer(m.length);v=new c.Uint8Array(v);for(var q=0;q<v.length;++q)v[q]=m.charCodeAt(q);a=new c.Blob([v],{type:a[1]});
-return p.createObjectURL(a)}};a=a.downloadURL=function(a,p){var v=c.navigator,q=y.createElement("a");if("string"===typeof a||a instanceof String||!v.msSaveOrOpenBlob){a="".concat(a);v=/Edge\/\d+/.test(v.userAgent);if(f&&"string"===typeof a&&0===a.indexOf("data:application/pdf")||v||2E6<a.length)if(a=D(a)||"",!a)throw Error("Failed to convert to blob");if("undefined"!==typeof q.download)q.href=a,q.download=p,y.body.appendChild(q),q.click(),y.body.removeChild(q);else try{var m=c.open(a,"chart");if("undefined"===
-typeof m||null===m)throw Error("Failed to open window");}catch(Q){c.location.href=a}}else v.msSaveOrOpenBlob(a,p)};return{dataURLtoBlob:D,downloadURL:a}});p(a,"Extensions/ExportData/ExportData.js",[a["Core/Renderer/HTML/AST.js"],a["Extensions/ExportData/ExportDataDefaults.js"],a["Core/Globals.js"],a["Core/Defaults.js"],a["Extensions/DownloadURL.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,p,c,y,W,P,m){function f(){var b=this.getCSV(!0);R(S(b,"text/csv")||"data:text/csv,\ufeff"+
-encodeURIComponent(b),this.getFilename()+".csv")}function v(){var b='<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns="http://www.w3.org/TR/REC-html40"><head>\x3c!--[if gte mso 9]><xml><x:ExcelWorkbook><x:ExcelWorksheets><x:ExcelWorksheet><x:Name>Ark1</x:Name><x:WorksheetOptions><x:DisplayGridlines/></x:WorksheetOptions></x:ExcelWorksheet></x:ExcelWorksheets></x:ExcelWorkbook></xml><![endif]--\x3e<style>td{border:none;font-family: Calibri, sans-serif;} .number{mso-number-format:"0.00";} .text{ mso-number-format:"@";}</style><meta name=ProgId content=Excel.Sheet><meta charset=UTF-8></head><body>'+
-this.getTable(!0)+"</body></html>";R(S(b,"application/vnd.ms-excel")||"data:application/vnd.ms-excel;base64,"+z.btoa(unescape(encodeURIComponent(b))),this.getFilename()+".xls")}function q(b){var a="",g=this.getDataRows(),e=this.options.exporting.csv,x=A(e.decimalPoint,","!==e.itemDelimiter&&b?(1.1).toLocaleString()[1]:"."),d=A(e.itemDelimiter,","===x?";":","),c=e.lineDelimiter;g.forEach(function(b,e){for(var u,n=b.length;n--;)u=b[n],"string"===typeof u&&(u='"'+u+'"'),"number"===typeof u&&"."!==x&&
-(u=u.toString().replace(".",x)),b[n]=u;b.length=g.length?g[0].length:0;a+=b.join(d);e<g.length-1&&(a+=c)});return a}function D(b){var a=this.hasParallelCoordinates,g=this.time,e=this.options.exporting&&this.options.exporting.csv||{},c=this.xAxis,d={},n=[],p=[],K=[],t=this.options.lang.exportData,h=t.categoryHeader,m=t.categoryDatetimeHeader,v=function(a,d,g){if(e.columnHeaderFormatter){var l=e.columnHeaderFormatter(a,d,g);if(!1!==l)return l}return a?a instanceof X?b?{columnTitle:1<g?d:a.name,topLevelColumnTitle:a.name}:
-a.name+(1<g?" ("+d+")":""):a.options.title&&a.options.title.text||(a.dateTime?m:h):h},T=function(a,b,d){var g={},l={};b.forEach(function(b){var e=(a.keyToAxis&&a.keyToAxis[b]||b)+"Axis";e=Y(d)?a.chart[e][d]:a[e];g[b]=e&&e.categories||[];l[b]=e&&e.dateTime});return{categoryMap:g,dateTimeValueAxisMap:l}},Z=function(a,b){return a.data.filter(function(a){return"undefined"!==typeof a.y&&a.name}).length&&b&&!b.categories&&!a.keyToAxis?a.pointArrayMap&&a.pointArrayMap.filter(function(a){return"x"===a}).length?
-(a.pointArrayMap.unshift("x"),a.pointArrayMap):["x","y"]:a.pointArrayMap||["y"]},q=[],w,B=0;this.series.forEach(function(l){var u=l.xAxis,x=l.options.keys||Z(l,u),n=x.length,k=!l.requireSorting&&{},t=c.indexOf(u),h=T(l,x),f;if(!1!==l.options.includeInDataExport&&!l.options.isInternal&&!1!==l.visible){aa(q,function(a){return a[0]===t})||q.push([t,B]);for(f=0;f<n;)w=v(l,x[f],x.length),K.push(w.columnTitle||w),b&&p.push(w.topLevelColumnTitle||w),f++;var m={chart:l.chart,autoIncrement:l.autoIncrement,
-options:l.options,pointArrayMap:l.pointArrayMap,index:l.index};l.options.data.forEach(function(b,c){var w={series:m};a&&(h=T(l,x,c));l.pointClass.prototype.applyOptions.apply(w,[b]);var r=w.x;L(d[r])&&d[r].seriesIndices.includes(m.index)&&(b=Object.keys(d).filter(function(a){return d[a].seriesIndices.includes(m.index)&&r}).filter(function(a){return 0===a.indexOf(String(r))}),r=r.toString()+","+b.length);b=l.data[c]&&l.data[c].name;f=0;if(!u||"name"===l.exportKey||!a&&u&&u.hasNames&&b)r=b;k&&(k[r]&&
-(r+="|"+c),k[r]=!0);d[r]||(d[r]=[],d[r].xValues=[]);d[r].x=w.x;d[r].name=b;d[r].xValues[t]=w.x;L(d[r].seriesIndices)||(d[r].seriesIndices=[]);for(d[r].seriesIndices=E(E([],d[r].seriesIndices,!0),[m.index],!1);f<n;)c=x[f],b=w[c],d[r][B+f]=A(h.categoryMap[c][b],h.dateTimeValueAxisMap[c]?g.dateFormat(e.dateFormat,b):null,b),f++});B+=f}});for(f in d)Object.hasOwnProperty.call(d,f)&&n.push(d[f]);t=b?[p,K]:[K];for(B=q.length;B--;){var k=q[B][0];var M=q[B][1];var C=c[k];n.sort(function(a,b){return a.xValues[k]-
-b.xValues[k]});var f=v(C);t[0].splice(M,0,f);b&&t[1]&&t[1].splice(M,0,f);n.forEach(function(a){var b=a.name;C&&!L(b)&&(C.dateTime?(a.x instanceof Date&&(a.x=a.x.getTime()),b=g.dateFormat(e.dateFormat,a.x)):b=C.categories?A(C.names[a.x],C.categories[a.x],a.x):a.x);a.splice(M,0,b)})}t=t.concat(n);N(this,"exportData",{dataRows:t});return t}function Q(a){var b=function(a){if(!a.tagName||"#text"===a.tagName)return a.textContent||"";var e=a.attributes,c="<".concat(a.tagName);e&&Object.keys(e).forEach(function(a){var b=
-e[a];c+=" ".concat(a,'="').concat(b,'"')});c+=">";c+=a.textContent||"";(a.children||[]).forEach(function(a){c+=b(a)});return c+="</".concat(a.tagName,">")};a=this.getTableAST(a);return b(a)}function ba(a){var b=0,c=[],e=this.options,f=a?(1.1).toLocaleString()[1]:".",d=A(e.exporting.useMultiLevelHeaders,!0);a=this.getDataRows(d);var n=d?a.shift():null,h=a.shift(),m=function(a,b,c,e){var d=A(e,"");b="highcharts-text"+(b?" "+b:"");"number"===typeof d?(d=d.toString(),","===f&&(d=d.replace(".",f)),b="highcharts-number"):
-e||(b="highcharts-empty");c=U({"class":b},c);return{tagName:a,attributes:c,textContent:d}};!1!==e.exporting.tableCaption&&c.push({tagName:"caption",attributes:{"class":"highcharts-table-caption"},textContent:A(e.exporting.tableCaption,e.title.text?e.title.text:"Chart")});for(var t=0,q=a.length;t<q;++t)a[t].length>b&&(b=a[t].length);c.push(function(a,b,c){var u=[],g=0;c=c||b&&b.length;var f=0,k;if(k=d&&a&&b){a:if(k=a.length,b.length===k){for(;k--;)if(a[k]!==b[k]){k=!1;break a}k=!0}else k=!1;k=!k}if(k){for(k=
-[];g<c;++g){var n=a[g];var h=a[g+1];n===h?++f:f?(k.push(m("th","highcharts-table-topheading",{scope:"col",colspan:f+1},n)),f=0):(n===b[g]?e.exporting.useRowspanHeaders?(h=2,delete b[g]):(h=1,b[g]=""):h=1,n=m("th","highcharts-table-topheading",{scope:"col"},n),1<h&&n.attributes&&(n.attributes.valign="top",n.attributes.rowspan=h),k.push(n))}u.push({tagName:"tr",children:k})}if(b){k=[];g=0;for(c=b.length;g<c;++g)"undefined"!==typeof b[g]&&k.push(m("th",null,{scope:"col"},b[g]));u.push({tagName:"tr",
-children:k})}return{tagName:"thead",children:u}}(n,h,Math.max(b,h.length)));var p=[];a.forEach(function(a){for(var c=[],d=0;d<b;d++)c.push(m(d?"td":"th",null,d?{}:{scope:"row"},a[d]));p.push({tagName:"tr",children:c})});c.push({tagName:"tbody",children:p});c={tree:{tagName:"table",id:"highcharts-data-table-".concat(this.index),children:c}};N(this,"aftergetTableAST",c);return c.tree}function ca(){this.toggleDataTable(!1)}function da(b){var c=(b=A(b,!this.isDataTableVisible))&&!this.dataTableDiv;c&&
-(this.dataTableDiv=ea.createElement("div"),this.dataTableDiv.className="highcharts-data-table",this.renderTo.parentNode.insertBefore(this.dataTableDiv,this.renderTo.nextSibling));if(this.dataTableDiv){var g=this.dataTableDiv.style,e=g.display;g.display=b?"block":"none";b&&(this.dataTableDiv.innerHTML=a.emptyHTML,(new a([this.getTableAST()])).addToDOM(this.dataTableDiv),N(this,"afterViewData",{element:this.dataTableDiv,wasHidden:c||e!==g.display}))}this.isDataTableVisible=b;c=this.exportDivElements;
-e=(g=this.options.exporting)&&g.buttons&&g.buttons.contextButton.menuItems;b=this.options.lang;g&&g.menuItemDefinitions&&b&&b.viewData&&b.hideData&&e&&c&&(c=c[e.indexOf("viewData")])&&a.setElementHTML(c,this.isDataTableVisible?b.hideData:b.viewData)}function fa(){this.toggleDataTable(!0)}function S(a,c){var b=z.navigator,e=-1<b.userAgent.indexOf("WebKit")&&0>b.userAgent.indexOf("Chrome"),f=z.URL||z.webkitURL||z;try{if(b.msSaveOrOpenBlob&&z.MSBlobBuilder){var d=new z.MSBlobBuilder;d.append(a);return d.getBlob("image/svg+xml")}if(!e)return f.createObjectURL(new z.Blob(["\ufeff"+
-a],{type:c}))}catch(n){}}function ha(){var a=this,c=a.dataTableDiv,g=function(a,b){return function(c,d){var e=(b?c:d).children[a].textContent;c=(b?d:c).children[a].textContent;return""===e||""===c||isNaN(e)||isNaN(c)?e.toString().localeCompare(c):e-c}};if(c&&a.options.exporting&&a.options.exporting.allowTableSorting){var e=c.querySelector("thead tr");e&&e.childNodes.forEach(function(b){var d=b.closest("table");b.addEventListener("click",function(){var e=E([],c.querySelectorAll("tr:not(thead tr)"),
-!0),f=E([],b.parentNode.children,!0);e.sort(g(f.indexOf(b),a.ascendingOrderInTable=!a.ascendingOrderInTable)).forEach(function(a){d.appendChild(a)});f.forEach(function(a){["highcharts-sort-ascending","highcharts-sort-descending"].forEach(function(b){a.classList.contains(b)&&a.classList.remove(b)})});b.classList.add(a.ascendingOrderInTable?"highcharts-sort-ascending":"highcharts-sort-descending")})})}}function ia(){this.options&&this.options.exporting&&this.options.exporting.showTable&&!this.options.chart.forExport&&
-this.viewData()}var E=this&&this.__spreadArray||function(a,c,f){if(f||2===arguments.length)for(var b=0,g=c.length,d;b<g;b++)!d&&b in c||(d||(d=Array.prototype.slice.call(c,0,b)),d[b]=c[b]);return a.concat(d||Array.prototype.slice.call(c))},ea=c.doc,z=c.win,ja=y.getOptions,O=y.setOptions,R=W.downloadURL,X=P.series;c=P.seriesTypes;var F=c.arearange,G=c.gantt,H=c.map,I=c.mapbubble,J=c.treemap,V=m.addEvent,L=m.defined,U=m.extend,aa=m.find,N=m.fireEvent,Y=m.isNumber,A=m.pick,h=[];"";return{compose:function(a){-1===
-h.indexOf(a)&&(h.push(a),V(a,"afterViewData",ha),V(a,"render",ia),a=a.prototype,a.downloadCSV=f,a.downloadXLS=v,a.getCSV=q,a.getDataRows=D,a.getTable=Q,a.getTableAST=ba,a.hideData=ca,a.toggleDataTable=da,a.viewData=fa);if(-1===h.indexOf(O)){h.push(O);if(a=ja().exporting)U(a.menuItemDefinitions,{downloadCSV:{textKey:"downloadCSV",onclick:function(){this.downloadCSV()}},downloadXLS:{textKey:"downloadXLS",onclick:function(){this.downloadXLS()}},viewData:{textKey:"viewData",onclick:function(){this.toggleDataTable()}}}),
-a.buttons&&a.buttons.contextButton.menuItems&&a.buttons.contextButton.menuItems.push("separator","downloadCSV","downloadXLS","viewData");O(p)}F&&-1===h.indexOf(F)&&(h.push(F),F.prototype.keyToAxis={low:"y",high:"y"});G&&-1===h.indexOf(G)&&(h.push(G),G.prototype.keyToAxis={start:"x",end:"x"});H&&-1===h.indexOf(H)&&(h.push(H),H.prototype.exportKey="name");I&&-1===h.indexOf(I)&&(h.push(I),I.prototype.exportKey="name");J&&-1===h.indexOf(J)&&(h.push(J),J.prototype.exportKey="name")}}});p(a,"masters/modules/export-data.src.js",
-[a["Core/Globals.js"],a["Extensions/ExportData/ExportData.js"]],function(a,f){f.compose(a.Chart)})});
-//# sourceMappingURL=export-data.js.map

+ 0 - 49
nicegui/elements/lib/highcharts_modules/exporting.js

@@ -1,49 +0,0 @@
-/*
- Highcharts JS v10.3.3 (2023-01-20)
-
- Exporting module
-
- (c) 2010-2021 Torstein Honsi
-
- License: www.highcharts.com/license
-*/
-(function(a){"object"===typeof module&&module.exports?(a["default"]=a,module.exports=a):"function"===typeof define&&define.amd?define("highcharts/modules/exporting",["highcharts"],function(m){a(m);a.Highcharts=m;return a}):a("undefined"!==typeof Highcharts?Highcharts:void 0)})(function(a){function m(a,l,J,x){a.hasOwnProperty(l)||(a[l]=x.apply(null,J),"function"===typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:l,module:a[l]}})))}a=a?a._modules:{};m(a,
-"Core/Chart/ChartNavigationComposition.js",[],function(){var a;(function(a){a.compose=function(a){a.navigation||(a.navigation=new e(a));return a};var e=function(){function a(a){this.updates=[];this.chart=a}a.prototype.addUpdate=function(a){this.chart.navigation.updates.push(a)};a.prototype.update=function(a,D){var e=this;this.updates.forEach(function(b){b.call(e.chart,a,D)})};return a}();a.Additions=e})(a||(a={}));return a});m(a,"Extensions/Exporting/ExportingDefaults.js",[a["Core/Globals.js"]],function(a){a=
-a.isTouchDevice;return{exporting:{allowTableSorting:!0,type:"image/png",url:"https://export.highcharts.com/",pdfFont:{normal:void 0,bold:void 0,bolditalic:void 0,italic:void 0},printMaxWidth:780,scale:2,buttons:{contextButton:{className:"highcharts-contextbutton",menuClassName:"highcharts-contextmenu",symbol:"menu",titleKey:"contextButtonTitle",menuItems:"viewFullscreen printChart separator downloadPNG downloadJPEG downloadPDF downloadSVG".split(" ")}},menuItemDefinitions:{viewFullscreen:{textKey:"viewFullscreen",
-onclick:function(){this.fullscreen&&this.fullscreen.toggle()}},printChart:{textKey:"printChart",onclick:function(){this.print()}},separator:{separator:!0},downloadPNG:{textKey:"downloadPNG",onclick:function(){this.exportChart()}},downloadJPEG:{textKey:"downloadJPEG",onclick:function(){this.exportChart({type:"image/jpeg"})}},downloadPDF:{textKey:"downloadPDF",onclick:function(){this.exportChart({type:"application/pdf"})}},downloadSVG:{textKey:"downloadSVG",onclick:function(){this.exportChart({type:"image/svg+xml"})}}}},
-lang:{viewFullscreen:"View in full screen",exitFullscreen:"Exit from full screen",printChart:"Print chart",downloadPNG:"Download PNG image",downloadJPEG:"Download JPEG image",downloadPDF:"Download PDF document",downloadSVG:"Download SVG vector image",contextButtonTitle:"Chart context menu"},navigation:{buttonOptions:{symbolSize:14,symbolX:12.5,symbolY:10.5,align:"right",buttonSpacing:3,height:22,verticalAlign:"top",width:24,symbolFill:"#666666",symbolStroke:"#666666",symbolStrokeWidth:3,theme:{padding:5}},
-menuStyle:{border:"1px solid ".concat("#999999"),background:"#ffffff",padding:"5px 0"},menuItemStyle:{padding:"0.5em 1em",color:"#333333",background:"none",fontSize:a?"14px":"11px",transition:"background 250ms, color 250ms"},menuItemHoverStyle:{background:"#335cad",color:"#ffffff"}}}});m(a,"Extensions/Exporting/ExportingSymbols.js",[],function(){var a;(function(a){function e(a,e,b,g){return[["M",a,e+2.5],["L",a+b,e+2.5],["M",a,e+g/2+.5],["L",a+b,e+g/2+.5],["M",a,e+g-1.5],["L",a+b,e+g-1.5]]}function l(a,
-e,b,g){a=g/3-2;g=[];return g=g.concat(this.circle(b-a,e,a,a),this.circle(b-a,e+a+4,a,a),this.circle(b-a,e+2*(a+4),a,a))}var q=[];a.compose=function(a){-1===q.indexOf(a)&&(q.push(a),a=a.prototype.symbols,a.menu=e,a.menuball=l.bind(a))}})(a||(a={}));return a});m(a,"Extensions/Exporting/Fullscreen.js",[a["Core/Renderer/HTML/AST.js"],a["Core/Utilities.js"]],function(a,l){function e(){this.fullscreen=new A(this)}var x=l.addEvent,q=l.fireEvent,m=[],A=function(){function b(a){this.chart=a;this.isOpen=!1;
-a=a.renderTo;this.browserProps||("function"===typeof a.requestFullscreen?this.browserProps={fullscreenChange:"fullscreenchange",requestFullscreen:"requestFullscreen",exitFullscreen:"exitFullscreen"}:a.mozRequestFullScreen?this.browserProps={fullscreenChange:"mozfullscreenchange",requestFullscreen:"mozRequestFullScreen",exitFullscreen:"mozCancelFullScreen"}:a.webkitRequestFullScreen?this.browserProps={fullscreenChange:"webkitfullscreenchange",requestFullscreen:"webkitRequestFullScreen",exitFullscreen:"webkitExitFullscreen"}:
-a.msRequestFullscreen&&(this.browserProps={fullscreenChange:"MSFullscreenChange",requestFullscreen:"msRequestFullscreen",exitFullscreen:"msExitFullscreen"}))}b.compose=function(a){-1===m.indexOf(a)&&(m.push(a),x(a,"beforeRender",e))};b.prototype.close=function(){var a=this,d=a.chart,n=d.options.chart;q(d,"fullscreenClose",null,function(){if(a.isOpen&&a.browserProps&&d.container.ownerDocument instanceof Document)d.container.ownerDocument[a.browserProps.exitFullscreen]();a.unbindFullscreenEvent&&(a.unbindFullscreenEvent=
-a.unbindFullscreenEvent());d.setSize(a.origWidth,a.origHeight,!1);a.origWidth=void 0;a.origHeight=void 0;n.width=a.origWidthOption;n.height=a.origHeightOption;a.origWidthOption=void 0;a.origHeightOption=void 0;a.isOpen=!1;a.setButtonText()})};b.prototype.open=function(){var a=this,d=a.chart,n=d.options.chart;q(d,"fullscreenOpen",null,function(){n&&(a.origWidthOption=n.width,a.origHeightOption=n.height);a.origWidth=d.chartWidth;a.origHeight=d.chartHeight;if(a.browserProps){var g=x(d.container.ownerDocument,
-a.browserProps.fullscreenChange,function(){a.isOpen?(a.isOpen=!1,a.close()):(d.setSize(null,null,!1),a.isOpen=!0,a.setButtonText())}),e=x(d,"destroy",g);a.unbindFullscreenEvent=function(){g();e()};var b=d.renderTo[a.browserProps.requestFullscreen]();if(b)b["catch"](function(){alert("Full screen is not supported inside a frame.")})}})};b.prototype.setButtonText=function(){var g=this.chart,d=g.exportDivElements,n=g.options.exporting,b=n&&n.buttons&&n.buttons.contextButton.menuItems;g=g.options.lang;
-n&&n.menuItemDefinitions&&g&&g.exitFullscreen&&g.viewFullscreen&&b&&d&&(d=d[b.indexOf("viewFullscreen")])&&a.setElementHTML(d,this.isOpen?g.exitFullscreen:n.menuItemDefinitions.viewFullscreen.text||g.viewFullscreen)};b.prototype.toggle=function(){this.isOpen?this.close():this.open()};return b}();"";"";return A});m(a,"Core/HttpUtilities.js",[a["Core/Globals.js"],a["Core/Utilities.js"]],function(a,l){var e=a.doc,m=l.createElement,q=l.discardElement,D=l.merge,A=l.objectEach,b={ajax:function(a){var d=
-{json:"application/json",xml:"application/xml",text:"text/plain",octet:"application/octet-stream"},b=new XMLHttpRequest;if(!a.url)return!1;b.open((a.type||"get").toUpperCase(),a.url,!0);a.headers&&a.headers["Content-Type"]||b.setRequestHeader("Content-Type",d[a.dataType||"json"]||d.text);A(a.headers,function(a,d){b.setRequestHeader(d,a)});a.responseType&&(b.responseType=a.responseType);b.onreadystatechange=function(){if(4===b.readyState){if(200===b.status){if("blob"!==a.responseType){var d=b.responseText;
-if("json"===a.dataType)try{d=JSON.parse(d)}catch(z){if(z instanceof Error){a.error&&a.error(b,z);return}}}return a.success&&a.success(d,b)}a.error&&a.error(b,b.responseText)}};a.data&&"string"!==typeof a.data&&(a.data=JSON.stringify(a.data));b.send(a.data)},getJSON:function(a,d){b.ajax({url:a,success:d,dataType:"json",headers:{"Content-Type":"text/plain"}})},post:function(a,b,n){var d=m("form",D({method:"post",action:a,enctype:"multipart/form-data"},n),{display:"none"},e.body);A(b,function(a,b){m("input",
-{type:"hidden",name:b,value:a},void 0,d)});d.submit();q(d)}};"";return b});m(a,"Extensions/Exporting/Exporting.js",[a["Core/Renderer/HTML/AST.js"],a["Core/Chart/Chart.js"],a["Core/Chart/ChartNavigationComposition.js"],a["Core/Defaults.js"],a["Extensions/Exporting/ExportingDefaults.js"],a["Extensions/Exporting/ExportingSymbols.js"],a["Extensions/Exporting/Fullscreen.js"],a["Core/Globals.js"],a["Core/HttpUtilities.js"],a["Core/Utilities.js"]],function(a,l,m,x,q,D,A,b,g,d){var e=x.defaultOptions,J=x.setOptions,
-z=b.doc,P=b.SVG_NS,C=b.win,B=d.addEvent,w=d.css,E=d.createElement,N=d.discardElement,F=d.extend,Q=d.find,G=d.fireEvent,R=d.isObject,r=d.merge,S=d.objectEach,y=d.pick,T=d.removeEvent,U=d.uniqueKey,H;(function(l){function n(a){var c=this,v=c.renderer,k=r(c.options.navigation.buttonOptions,a),b=k.onclick,d=k.menuItems,e=k.symbolSize||12;c.btnCount||(c.btnCount=0);c.exportDivElements||(c.exportDivElements=[],c.exportSVGElements=[]);if(!1!==k.enabled&&k.theme){var f=k.theme,M;c.styledMode||(f.fill=y(f.fill,
-"#ffffff"),f.stroke=y(f.stroke,"none"));b?M=function(a){a&&a.stopPropagation();b.call(c,a)}:d&&(M=function(a){a&&a.stopPropagation();c.contextMenu(u.menuClassName,d,u.translateX,u.translateY,u.width,u.height,u);u.setState(2)});k.text&&k.symbol?f.paddingLeft=y(f.paddingLeft,30):k.text||F(f,{width:k.width,height:k.height,padding:0});c.styledMode||(f["stroke-linecap"]="round",f.fill=y(f.fill,"#ffffff"),f.stroke=y(f.stroke,"none"));var u=v.button(k.text,0,0,M,f,void 0,void 0,void 0,void 0,k.useHTML).addClass(a.className).attr({title:y(c.options.lang[k._titleKey||
-k.titleKey],"")});u.menuClassName=a.menuClassName||"highcharts-menu-"+c.btnCount++;if(k.symbol){var g=v.symbol(k.symbol,k.symbolX-e/2,k.symbolY-e/2,e,e,{width:e,height:e}).addClass("highcharts-button-symbol").attr({zIndex:1}).add(u);c.styledMode||g.attr({stroke:k.symbolStroke,fill:k.symbolFill,"stroke-width":k.symbolStrokeWidth||1})}u.add(c.exportingGroup).align(F(k,{width:u.width,x:y(k.x,c.buttonOffset)}),!0,"spacingBox");c.buttonOffset+=(u.width+k.buttonSpacing)*("right"===k.align?-1:1);c.exportSVGElements.push(u,
-g)}}function x(){if(this.printReverseInfo){var a=this.printReverseInfo,h=a.childNodes,b=a.origDisplay;a=a.resetParams;this.moveContainers(this.renderTo);[].forEach.call(h,function(a,c){1===a.nodeType&&(a.style.display=b[c]||"")});this.isPrinting=!1;a&&this.setSize.apply(this,a);delete this.printReverseInfo;I=void 0;G(this,"afterPrint")}}function H(){var a=z.body,h=this.options.exporting.printMaxWidth,b={childNodes:a.childNodes,origDisplay:[],resetParams:void 0};this.isPrinting=!0;this.pointer.reset(null,
-0);G(this,"beforePrint");h&&this.chartWidth>h&&(b.resetParams=[this.options.chart.width,void 0,!1],this.setSize(h,void 0,!1));[].forEach.call(b.childNodes,function(a,c){1===a.nodeType&&(b.origDisplay[c]=a.style.display,a.style.display="none")});this.moveContainers(a);this.printReverseInfo=b}function V(a){a.renderExporting();B(a,"redraw",a.renderExporting);B(a,"destroy",a.destroyExport)}function W(c,h,b,k,e,L,g){var f=this,v=f.options.navigation,u=f.chartWidth,l=f.chartHeight,m="cache-"+c,n=Math.max(e,
-L),p=f[m];if(!p){f.exportContextMenu=f[m]=p=E("div",{className:c},{position:"absolute",zIndex:1E3,padding:n+"px",pointerEvents:"auto"},f.fixedDiv||f.container);var t=E("ul",{className:"highcharts-menu"},{listStyle:"none",margin:0,padding:0},p);f.styledMode||w(t,F({MozBoxShadow:"3px 3px 10px #888",WebkitBoxShadow:"3px 3px 10px #888",boxShadow:"3px 3px 10px #888"},v.menuStyle));p.hideMenu=function(){w(p,{display:"none"});g&&g.setState(0);f.openMenu=!1;w(f.renderTo,{overflow:"hidden"});w(f.container,
-{overflow:"hidden"});d.clearTimeout(p.hideTimer);G(f,"exportMenuHidden")};f.exportEvents.push(B(p,"mouseleave",function(){p.hideTimer=C.setTimeout(p.hideMenu,500)}),B(p,"mouseenter",function(){d.clearTimeout(p.hideTimer)}),B(z,"mouseup",function(a){f.pointer.inClass(a.target,c)||p.hideMenu()}),B(p,"click",function(){f.openMenu&&p.hideMenu()}));h.forEach(function(c){"string"===typeof c&&(c=f.options.exporting.menuItemDefinitions[c]);if(R(c,!0)){var h=void 0;c.separator?h=E("hr",void 0,void 0,t):("viewData"===
-c.textKey&&f.isDataTableVisible&&(c.textKey="hideData"),h=E("li",{className:"highcharts-menu-item",onclick:function(a){a&&a.stopPropagation();p.hideMenu();c.onclick&&c.onclick.apply(f,arguments)}},void 0,t),a.setElementHTML(h,c.text||f.options.lang[c.textKey]),f.styledMode||(h.onmouseover=function(){w(this,v.menuItemHoverStyle)},h.onmouseout=function(){w(this,v.menuItemStyle)},w(h,F({cursor:"pointer"},v.menuItemStyle||{}))));f.exportDivElements.push(h)}});f.exportDivElements.push(t,p);f.exportMenuWidth=
-p.offsetWidth;f.exportMenuHeight=p.offsetHeight}h={display:"block"};b+f.exportMenuWidth>u?h.right=u-b-e-n+"px":h.left=b-n+"px";k+L+f.exportMenuHeight>l&&"top"!==g.alignOptions.verticalAlign?h.bottom=l-k-n+"px":h.top=k+L-n+"px";w(p,h);w(f.renderTo,{overflow:""});w(f.container,{overflow:""});f.openMenu=!0;G(f,"exportMenuShown")}function X(a){var c=a?a.target:this,b=c.exportSVGElements,k=c.exportDivElements;a=c.exportEvents;var e;b&&(b.forEach(function(a,h){a&&(a.onclick=a.ontouchstart=null,e="cache-"+
-a.menuClassName,c[e]&&delete c[e],b[h]=a.destroy())}),b.length=0);c.exportingGroup&&(c.exportingGroup.destroy(),delete c.exportingGroup);k&&(k.forEach(function(a,c){a&&(d.clearTimeout(a.hideTimer),T(a,"mouseleave"),k[c]=a.onmouseout=a.onmouseover=a.ontouchstart=a.onclick=null,N(a))}),k.length=0);a&&(a.forEach(function(a){a()}),a.length=0)}function Y(a,h){h=this.getSVGForExport(a,h);a=r(this.options.exporting,a);g.post(a.url,{filename:a.filename?a.filename.replace(/\//g,"-"):this.getFilename(),type:a.type,
-width:a.width||0,scale:a.scale,svg:h},a.formAttributes)}function Z(){this.styledMode&&this.inlineStyles();return this.container.innerHTML}function aa(){var a=this.userOptions.title&&this.userOptions.title.text,h=this.options.exporting.filename;if(h)return h.replace(/\//g,"-");"string"===typeof a&&(h=a.toLowerCase().replace(/<\/?[^>]+(>|$)/g,"").replace(/[\s_]+/g,"-").replace(/[^a-z0-9\-]/g,"").replace(/^[\-]+/g,"").replace(/[\-]+/g,"-").substr(0,24).replace(/[\-]+$/g,""));if(!h||5>h.length)h="chart";
-return h}function ba(a){var c,b=r(this.options,a);b.plotOptions=r(this.userOptions.plotOptions,a&&a.plotOptions);b.time=r(this.userOptions.time,a&&a.time);var d=E("div",null,{position:"absolute",top:"-9999em",width:this.chartWidth+"px",height:this.chartHeight+"px"},z.body),e=this.renderTo.style.width;var g=this.renderTo.style.height;e=b.exporting.sourceWidth||b.chart.width||/px$/.test(e)&&parseInt(e,10)||(b.isGantt?800:600);g=b.exporting.sourceHeight||b.chart.height||/px$/.test(g)&&parseInt(g,10)||
-400;F(b.chart,{animation:!1,renderTo:d,forExport:!0,renderer:"SVGRenderer",width:e,height:g});b.exporting.enabled=!1;delete b.data;b.series=[];this.series.forEach(function(a){c=r(a.userOptions,{animation:!1,enableMouseTracking:!1,showCheckbox:!1,visible:a.visible});c.isInternal||b.series.push(c)});var l={};this.axes.forEach(function(a){a.userOptions.internalKey||(a.userOptions.internalKey=U());a.options.isInternal||(l[a.coll]||(l[a.coll]=!0,b[a.coll]=[]),b[a.coll].push(r(a.userOptions,{visible:a.visible})))});
-var f=new this.constructor(b,this.callback);a&&["xAxis","yAxis","series"].forEach(function(c){var b={};a[c]&&(b[c]=a[c],f.update(b))});this.axes.forEach(function(a){var c=Q(f.axes,function(c){return c.options.internalKey===a.userOptions.internalKey}),b=a.getExtremes(),h=b.userMin;b=b.userMax;c&&("undefined"!==typeof h&&h!==c.min||"undefined"!==typeof b&&b!==c.max)&&c.setExtremes(h,b,!0,!1)});g=f.getChartHTML();G(this,"getSVG",{chartCopy:f});g=this.sanitizeSVG(g,b);b=null;f.destroy();N(d);return g}
-function ca(a,b){var c=this.options.exporting;return this.getSVG(r({chart:{borderRadius:0}},c.chartOptions,b,{exporting:{sourceWidth:a&&a.sourceWidth||c.sourceWidth,sourceHeight:a&&a.sourceHeight||c.sourceHeight}}))}function da(a){return a.replace(/([A-Z])/g,function(a,c){return"-"+c.toLowerCase()})}function ea(){function a(c){var f={};if(m&&1===c.nodeType&&-1===fa.indexOf(c.nodeName)){var k=C.getComputedStyle(c,null);var n="svg"===c.nodeName?{}:C.getComputedStyle(c.parentNode,null);if(!e[c.nodeName]){g=
-m.getElementsByTagName("svg")[0];var l=m.createElementNS(c.namespaceURI,c.nodeName);g.appendChild(l);var v=C.getComputedStyle(l,null);var p={};for(var t in v)"string"!==typeof v[t]||/^[0-9]+$/.test(t)||(p[t]=v[t]);e[c.nodeName]=p;"text"===c.nodeName&&delete e.text.fill;g.removeChild(l)}for(var r in k)if(b.isFirefox||b.isMS||b.isSafari||Object.hasOwnProperty.call(k,r)){t=k[r];var q=r;l=v=!1;if(d.length){for(p=d.length;p--&&!v;)v=d[p].test(q);l=!v}"transform"===q&&"none"===t&&(l=!0);for(p=h.length;p--&&
-!l;)l=h[p].test(q)||"function"===typeof t;l||n[q]===t&&"svg"!==c.nodeName||e[c.nodeName][q]===t||(O&&-1===O.indexOf(q)?f[q]=t:t&&c.setAttribute(da(q),t))}w(c,f);"svg"===c.nodeName&&c.setAttribute("stroke-width","1px");"text"!==c.nodeName&&[].forEach.call(c.children||c.childNodes,a)}}var h=ha,d=l.inlineAllowlist,e={},g,n=z.createElement("iframe");w(n,{width:"1px",height:"1px",visibility:"hidden"});z.body.appendChild(n);var m=n.contentWindow&&n.contentWindow.document;m&&m.body.appendChild(m.createElementNS(P,
-"svg"));a(this.container.querySelector("svg"));g.parentNode.removeChild(g);n.parentNode.removeChild(n)}function ia(a){(this.fixedDiv?[this.fixedDiv,this.scrollingContainer]:[this.container]).forEach(function(c){a.appendChild(c)})}function ja(){var a=this;a.exporting={update:function(c,b){a.isDirtyExporting=!0;r(!0,a.options.exporting,c);y(b,!0)&&a.redraw()}};m.compose(a).navigation.addUpdate(function(c,b){a.isDirtyExporting=!0;r(!0,a.options.navigation,c);y(b,!0)&&a.redraw()})}function ka(){var a=
-this;a.isPrinting||(I=a,b.isSafari||a.beforePrint(),setTimeout(function(){C.focus();C.print();b.isSafari||setTimeout(function(){a.afterPrint()},1E3)},1))}function la(){var a=this,b=a.options.exporting,e=b.buttons,d=a.isDirtyExporting||!a.exportSVGElements;a.buttonOffset=0;a.isDirtyExporting&&a.destroyExport();d&&!1!==b.enabled&&(a.exportEvents=[],a.exportingGroup=a.exportingGroup||a.renderer.g("exporting-group").attr({zIndex:3}).add(),S(e,function(c){a.addButton(c)}),a.isDirtyExporting=!1)}function ma(a,
-b){var c=a.indexOf("</svg>")+6,e=a.substr(c);a=a.substr(0,c);b&&b.exporting&&b.exporting.allowHTML&&e&&(e='<foreignObject x="0" y="0" width="'+b.chart.width+'" height="'+b.chart.height+'"><body xmlns="http://www.w3.org/1999/xhtml">'+e.replace(/(<(?:img|br).*?(?=>))>/g,"$1 />")+"</body></foreignObject>",a=a.replace("</svg>",e+"</svg>"));a=a.replace(/zIndex="[^"]+"/g,"").replace(/symbolName="[^"]+"/g,"").replace(/jQuery[0-9]+="[^"]+"/g,"").replace(/url\(("|&quot;)(.*?)("|&quot;);?\)/g,"url($2)").replace(/url\([^#]+#/g,
-"url(#").replace(/<svg /,'<svg xmlns:xlink="http://www.w3.org/1999/xlink" ').replace(/ (|NS[0-9]+:)href=/g," xlink:href=").replace(/\n/," ").replace(/(fill|stroke)="rgba\(([ 0-9]+,[ 0-9]+,[ 0-9]+),([ 0-9\.]+)\)"/g,'$1="rgb($2)" $1-opacity="$3"').replace(/&nbsp;/g,"\u00a0").replace(/&shy;/g,"\u00ad");this.ieSanitizeSVG&&(a=this.ieSanitizeSVG(a));return a}var K=[],ha=[/-/,/^(clipPath|cssText|d|height|width)$/,/^font$/,/[lL]ogical(Width|Height)$/,/^parentRule$/,/perspective/,/TapHighlightColor/,/^transition/,
-/^length$/,/^[0-9]+$/],O="fill stroke strokeLinecap strokeLinejoin strokeWidth textAnchor x y".split(" ");l.inlineAllowlist=[];var fa=["clipPath","defs","desc"],I;l.compose=function(a,d){D.compose(d);A.compose(a);-1===K.indexOf(a)&&(K.push(a),d=a.prototype,d.afterPrint=x,d.exportChart=Y,d.inlineStyles=ea,d.print=ka,d.sanitizeSVG=ma,d.getChartHTML=Z,d.getSVG=ba,d.getSVGForExport=ca,d.getFilename=aa,d.moveContainers=ia,d.beforePrint=H,d.contextMenu=W,d.addButton=n,d.destroyExport=X,d.renderExporting=
-la,d.callbacks.push(V),B(a,"init",ja),b.isSafari&&b.win.matchMedia("print").addListener(function(a){I&&(a.matches?I.beforePrint():I.afterPrint())}));-1===K.indexOf(J)&&(K.push(J),e.exporting=r(q.exporting,e.exporting),e.lang=r(q.lang,e.lang),e.navigation=r(q.navigation,e.navigation))}})(H||(H={}));"";"";return H});m(a,"masters/modules/exporting.src.js",[a["Core/Globals.js"],a["Extensions/Exporting/Exporting.js"],a["Core/HttpUtilities.js"]],function(a,l,m){a.HttpUtilities=m;a.ajax=m.ajax;a.getJSON=
-m.getJSON;a.post=m.post;l.compose(a.Chart,a.Renderer)})});
-//# sourceMappingURL=exporting.js.map

+ 0 - 18
nicegui/elements/lib/highcharts_modules/full-screen.js

@@ -1,18 +0,0 @@
-/*
- Highstock JS v10.3.3 (2023-01-20)
-
- Advanced Highcharts Stock tools
-
- (c) 2010-2021 Highsoft AS
- Author: Torstein Honsi
-
- License: www.highcharts.com/license
-*/
-(function(b){"object"===typeof module&&module.exports?(b["default"]=b,module.exports=b):"function"===typeof define&&define.amd?define("highcharts/modules/full-screen",["highcharts"],function(d){b(d);b.Highcharts=d;return b}):b("undefined"!==typeof Highcharts?Highcharts:void 0)})(function(b){function d(b,c,d,f){b.hasOwnProperty(c)||(b[c]=f.apply(null,d),"function"===typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:c,module:b[c]}})))}b=b?b._modules:{};
-d(b,"Extensions/Exporting/Fullscreen.js",[b["Core/Renderer/HTML/AST.js"],b["Core/Utilities.js"]],function(b,c){function d(){this.fullscreen=new g(this)}var f=c.addEvent,e=c.fireEvent,h=[],g=function(){function c(a){this.chart=a;this.isOpen=!1;a=a.renderTo;this.browserProps||("function"===typeof a.requestFullscreen?this.browserProps={fullscreenChange:"fullscreenchange",requestFullscreen:"requestFullscreen",exitFullscreen:"exitFullscreen"}:a.mozRequestFullScreen?this.browserProps={fullscreenChange:"mozfullscreenchange",
-requestFullscreen:"mozRequestFullScreen",exitFullscreen:"mozCancelFullScreen"}:a.webkitRequestFullScreen?this.browserProps={fullscreenChange:"webkitfullscreenchange",requestFullscreen:"webkitRequestFullScreen",exitFullscreen:"webkitExitFullscreen"}:a.msRequestFullscreen&&(this.browserProps={fullscreenChange:"MSFullscreenChange",requestFullscreen:"msRequestFullscreen",exitFullscreen:"msExitFullscreen"}))}c.compose=function(a){-1===h.indexOf(a)&&(h.push(a),f(a,"beforeRender",d))};c.prototype.close=
-function(){var a=this,b=a.chart,c=b.options.chart;e(b,"fullscreenClose",null,function(){if(a.isOpen&&a.browserProps&&b.container.ownerDocument instanceof Document)b.container.ownerDocument[a.browserProps.exitFullscreen]();a.unbindFullscreenEvent&&(a.unbindFullscreenEvent=a.unbindFullscreenEvent());b.setSize(a.origWidth,a.origHeight,!1);a.origWidth=void 0;a.origHeight=void 0;c.width=a.origWidthOption;c.height=a.origHeightOption;a.origWidthOption=void 0;a.origHeightOption=void 0;a.isOpen=!1;a.setButtonText()})};
-c.prototype.open=function(){var a=this,b=a.chart,c=b.options.chart;e(b,"fullscreenOpen",null,function(){c&&(a.origWidthOption=c.width,a.origHeightOption=c.height);a.origWidth=b.chartWidth;a.origHeight=b.chartHeight;if(a.browserProps){var d=f(b.container.ownerDocument,a.browserProps.fullscreenChange,function(){a.isOpen?(a.isOpen=!1,a.close()):(b.setSize(null,null,!1),a.isOpen=!0,a.setButtonText())}),k=f(b,"destroy",d);a.unbindFullscreenEvent=function(){d();k()};var e=b.renderTo[a.browserProps.requestFullscreen]();
-if(e)e["catch"](function(){alert("Full screen is not supported inside a frame.")})}})};c.prototype.setButtonText=function(){var a=this.chart,c=a.exportDivElements,d=a.options.exporting,e=d&&d.buttons&&d.buttons.contextButton.menuItems;a=a.options.lang;d&&d.menuItemDefinitions&&a&&a.exitFullscreen&&a.viewFullscreen&&e&&c&&(c=c[e.indexOf("viewFullscreen")])&&b.setElementHTML(c,this.isOpen?a.exitFullscreen:d.menuItemDefinitions.viewFullscreen.text||a.viewFullscreen)};c.prototype.toggle=function(){this.isOpen?
-this.close():this.open()};return c}();"";"";return g});d(b,"masters/modules/full-screen.src.js",[b["Core/Globals.js"],b["Extensions/Exporting/Fullscreen.js"]],function(b,c){b.Fullscreen=c;c.compose(b.Chart)})});
-//# sourceMappingURL=full-screen.js.map

+ 0 - 21
nicegui/elements/lib/highcharts_modules/funnel.js

@@ -1,21 +0,0 @@
-/*
- Highcharts JS v10.3.3 (2023-01-20)
-
- Highcharts funnel module
-
- (c) 2010-2021 Torstein Honsi
-
- License: www.highcharts.com/license
-*/
-(function(a){"object"===typeof module&&module.exports?(a["default"]=a,module.exports=a):"function"===typeof define&&define.amd?define("highcharts/modules/funnel",["highcharts"],function(n){a(n);a.Highcharts=n;return a}):a("undefined"!==typeof Highcharts?Highcharts:void 0)})(function(a){function n(a,l,f,d){a.hasOwnProperty(l)||(a[l]=d.apply(null,f),"function"===typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:l,module:a[l]}})))}a=a?a._modules:{};n(a,"Series/Funnel/FunnelSeries.js",
-[a["Core/Chart/Chart.js"],a["Core/Globals.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,l,f,d){var n=this&&this.__extends||function(){var a=function(b,g){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,e){g.__proto__=e}||function(g,e){for(var a in e)e.hasOwnProperty(a)&&(g[a]=e[a])};return a(b,g)};return function(b,g){function D(){this.constructor=b}a(b,g);b.prototype=null===g?Object.create(g):(D.prototype=g.prototype,new D)}}(),J=l.noop,y=f.series,
-c=f.seriesTypes.pie;l=d.addEvent;var z=d.extend,L=d.fireEvent,A=d.isArray,B=d.merge,I=d.pick;d=function(a){function b(){var g=null!==a&&a.apply(this,arguments)||this;g.data=void 0;g.options=void 0;g.points=void 0;return g}n(b,a);b.prototype.alignDataLabel=function(g,a,e,b,k){var u=g.series;b=u.options.reversed;var h=g.dlBox||g.shapeArgs,d=e.align,c=e.verticalAlign,f=((u.options||{}).dataLabels||{}).inside,m=u.center[1];u=u.getWidthAt((b?2*m-g.plotY:g.plotY)-h.height/2+a.height);u="middle"===c?(h.topWidth-
-h.bottomWidth)/4:(u-h.bottomWidth)/2;m=h.y;var p=h.x,D=I(a.height,a.getBBox().height);"middle"===c?m=h.y-h.height/2+D/2:"top"===c&&(m=h.y-h.height+D+e.padding);if("top"===c&&!b||"bottom"===c&&b||"middle"===c)"right"===d?p=h.x-e.padding+u:"left"===d&&(p=h.x+e.padding-u);b={x:p,y:b?m-h.height:m,width:h.bottomWidth,height:h.height};e.verticalAlign="bottom";f&&!g.visible||y.prototype.alignDataLabel.call(this,g,a,e,b,k);f&&(!g.visible&&g.dataLabel&&(g.dataLabel.placed=!1),g.contrastColor&&a.css({color:g.contrastColor}))};
-b.prototype.drawDataLabels=function(){var a=this.data,b=this.options.dataLabels.distance,e,c=a.length;for(this.center[2]-=2*b;c--;){var k=a[c];var d=(e=k.half)?1:-1;var h=k.plotY;k.labelDistance=I(k.options.dataLabels&&k.options.dataLabels.distance,b);this.maxLabelDistance=Math.max(k.labelDistance,this.maxLabelDistance||0);var y=this.getX(h,e,k);k.labelPosition={natural:{x:0,y:h},"final":{},alignment:e?"right":"left",connectorPosition:{breakAt:{x:y+(k.labelDistance-5)*d,y:h},touchingSliceAt:{x:y+
-k.labelDistance*d,y:h}}}}f.seriesTypes[this.options.dataLabels.inside?"column":"pie"].prototype.drawDataLabels.call(this)};b.prototype.translate=function(){function a(a,b){return/%$/.test(a)?b*parseInt(a,10)/100:parseInt(a,10)}var b=0,e=this,c=e.chart,k=e.options,d=k.reversed,h=k.ignoreHiddenPoint,f=c.plotWidth;c=c.plotHeight;var y=0,l=k.center,m=a(l[0],f),p=a(l[1],c),n=a(k.width,f),v,w=a(k.height,c),z=a(k.neckWidth,f),H=a(k.neckHeight,c),A=p-w/2+w-H;f=e.data;var B,F,K="left"===k.dataLabels.position?
-1:0,E,q,G,x,r,C,t;e.getWidthAt=function(a){var b=p-w/2;return a>A||w===H?z:z+(n-z)*(1-(a-b)/(w-H))};e.getX=function(a,b,c){return m+(b?-1:1)*(e.getWidthAt(d?2*p-a:a)/2+c.labelDistance)};e.center=[m,p,w];e.centerX=m;f.forEach(function(a){h&&!1===a.visible||(b+=a.y)});f.forEach(function(a){t=null;F=b?a.y/b:0;q=p-w/2+y*w;r=q+F*w;v=e.getWidthAt(q);E=m-v/2;G=E+v;v=e.getWidthAt(r);x=m-v/2;C=x+v;q>A?(E=x=m-z/2,G=C=m+z/2):r>A&&(t=r,v=e.getWidthAt(A),x=m-v/2,C=x+v,r=A);d&&(q=2*p-q,r=2*p-r,null!==t&&(t=2*p-
-t));B=[["M",E,q],["L",G,q],["L",C,r]];null!==t&&B.push(["L",C,t],["L",x,t]);B.push(["L",x,r],["Z"]);a.shapeType="path";a.shapeArgs={d:B};a.percentage=100*F;a.plotX=m;a.plotY=(q+(t||r))/2;a.tooltipPos=[m,a.plotY];a.dlBox={x:x,y:q,topWidth:G-E,bottomWidth:C-x,height:Math.abs(I(t,r)-q),width:NaN};a.slice=J;a.half=K;h&&!1===a.visible||(y+=F)});L(e,"afterTranslate")};b.prototype.sortByAngle=function(a){a.sort(function(a,b){return a.plotY-b.plotY})};b.defaultOptions=B(c.defaultOptions,{animation:!1,center:["50%",
-"50%"],width:"90%",neckWidth:"30%",height:"100%",neckHeight:"25%",reversed:!1,size:!0,dataLabels:{connectorWidth:1,verticalAlign:"middle"},states:{select:{color:"#cccccc",borderColor:"#000000"}}});return b}(c);z(d.prototype,{animate:J});l(a,"afterHideAllOverlappingLabels",function(){this.series.forEach(function(a){var b=a.options&&a.options.dataLabels;A(b)&&(b=b[0]);a.is("pie")&&a.placeDataLabels&&b&&!b.inside&&a.placeDataLabels()})});f.registerSeriesType("funnel",d);"";return d});n(a,"Series/Pyramid/PyramidSeries.js",
-[a["Series/Funnel/FunnelSeries.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,l,f){var d=this&&this.__extends||function(){var a=function(d,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var d in c)c.hasOwnProperty(d)&&(a[d]=c[d])};return a(d,c)};return function(d,c){function f(){this.constructor=d}a(d,c);d.prototype=null===c?Object.create(c):(f.prototype=c.prototype,new f)}}(),n=f.merge;f=function(f){function l(){var a=
-null!==f&&f.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}d(l,f);l.defaultOptions=n(a.defaultOptions,{neckWidth:"0%",neckHeight:"0%",reversed:!0});return l}(a);l.registerSeriesType("pyramid",f);"";return f});n(a,"masters/modules/funnel.src.js",[],function(){})});
-//# sourceMappingURL=funnel.js.map

+ 0 - 30
nicegui/elements/lib/highcharts_modules/funnel3d.js

@@ -1,30 +0,0 @@
-/*
- Highcharts JS v10.3.3 (2023-01-20)
-
- Highcharts funnel module
-
- (c) 2010-2021 Kacper Madej
-
- License: www.highcharts.com/license
-*/
-(function(a){"object"===typeof module&&module.exports?(a["default"]=a,module.exports=a):"function"===typeof define&&define.amd?define("highcharts/modules/funnel3d",["highcharts","highcharts/highcharts-3d","highcharts/modules/cylinder"],function(q){a(q);a.Highcharts=q;return a}):a("undefined"!==typeof Highcharts?Highcharts:void 0)})(function(a){function q(a,h,F,f){a.hasOwnProperty(h)||(a[h]=f.apply(null,F),"function"===typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",
-{detail:{path:h,module:a[h]}})))}a=a?a._modules:{};q(a,"Series/Funnel3D/Funnel3DComposition.js",[a["Core/Color/Color.js"],a["Core/Globals.js"],a["Core/Renderer/SVG/SVGRenderer3D.js"],a["Core/Utilities.js"]],function(a,h,F,f){var d=a.parse,w=h.charts,N=f.error,O=f.extend,m=f.merge,l;(function(a){function f(a){a.funnel3d=m(a.cuboid,{parts:"top bottom frontUpper backUpper frontLower backLower rightUpper rightLower".split(" "),mainParts:["top","bottom"],sideGroups:["upperGroup","lowerGroup"],sideParts:{upperGroup:["frontUpper",
-"backUpper","rightUpper"],lowerGroup:["frontLower","backLower","rightLower"]},pathType:"funnel3d",opacitySetter:function(a){var b=this,c=b.parts,k=h.charts[b.renderer.chartIndex],e="group-opacity-"+a+"-"+k.index;b.parts=b.mainParts;b.singleSetterForParts("opacity",a);b.parts=c;k.renderer.filterId||(k.renderer.definition({tagName:"filter",attributes:{id:e},children:[{tagName:"feComponentTransfer",children:[{tagName:"feFuncA",attributes:{type:"table",tableValues:"0 "+a}}]}]}),b.sideGroups.forEach(function(c){b[c].attr({filter:"url(#"+
-e+")"})}),b.renderer.styledMode&&(k.renderer.definition({tagName:"style",textContent:".highcharts-"+e+" {filter:url(#"+e+")}"}),b.sideGroups.forEach(function(b){b.addClass("highcharts-"+e)})));return b},fillSetter:function(a){var b=this,c=d(a),k=c.rgba[3],e={top:d(a).brighten(.1).get(),bottom:d(a).brighten(-.2).get()};1>k?(c.rgba[3]=1,c=c.get("rgb"),b.attr({opacity:k})):c=a;c.linearGradient||c.radialGradient||!b.gradientForSides||(c={linearGradient:{x1:0,x2:1,y1:1,y2:1},stops:[[0,d(a).brighten(-.2).get()],
-[.5,a],[1,d(a).brighten(-.2).get()]]});c.linearGradient?b.sideGroups.forEach(function(a){var k=b[a].gradientBox,z=c.linearGradient,f=m(c,{linearGradient:{x1:k.x+z.x1*k.width,y1:k.y+z.y1*k.height,x2:k.x+z.x2*k.width,y2:k.y+z.y2*k.height}});b.sideParts[a].forEach(function(b){e[b]=f})}):(m(!0,e,{frontUpper:c,backUpper:c,rightUpper:c,frontLower:c,backLower:c,rightLower:c}),c.radialGradient&&b.sideGroups.forEach(function(c){var a=b[c].gradientBox,e=a.x+a.width/2,k=a.y+a.height/2,z=Math.min(a.width,a.height);
-b.sideParts[c].forEach(function(c){b[c].setRadialReference([e,k,z])})}));b.singleSetterForParts("fill",null,e);b.color=b.fill=a;c.linearGradient&&[b.frontLower,b.frontUpper].forEach(function(c){(c=(c=c.element)&&b.renderer.gradients[c.gradient])&&"userSpaceOnUse"!==c.attr("gradientUnits")&&c.attr({gradientUnits:"userSpaceOnUse"})});return b},adjustForGradient:function(){var a=this,b;a.sideGroups.forEach(function(c){var k={x:Number.MAX_VALUE,y:Number.MAX_VALUE},e={x:-Number.MAX_VALUE,y:-Number.MAX_VALUE};
-a.sideParts[c].forEach(function(c){b=a[c].getBBox(!0);k={x:Math.min(k.x,b.x),y:Math.min(k.y,b.y)};e={x:Math.max(e.x,b.x+b.width),y:Math.max(e.y,b.y+b.height)}});a[c].gradientBox={x:k.x,width:e.x-k.x,y:k.y,height:e.y-k.y}})},zIndexSetter:function(){this.finishedOnAdd&&this.adjustForGradient();return this.renderer.Element.prototype.zIndexSetter.apply(this,arguments)},onAdd:function(){this.adjustForGradient();this.finishedOnAdd=!0}})}function l(a){var f=a.prototype;O(f,{funnel3d:function(b){var c=this.element3d("funnel3d",
-b),a=this.styledMode,e={"stroke-width":1,stroke:"none"};c.upperGroup=this.g("funnel3d-upper-group").attr({zIndex:c.frontUpper.zIndex}).add(c);[c.frontUpper,c.backUpper,c.rightUpper].forEach(function(b){a||b.attr(e);b.add(c.upperGroup)});c.lowerGroup=this.g("funnel3d-lower-group").attr({zIndex:c.frontLower.zIndex}).add(c);[c.frontLower,c.backLower,c.rightLower].forEach(function(b){a||b.attr(e);b.add(c.lowerGroup)});c.gradientForSides=b.gradientForSides;return c},funnel3dPath:function(b){this.getCylinderEnd||
-N("A required Highcharts module is missing: cylinder.js",!0,w[this.chartIndex]);var c=w[this.chartIndex],a=b.alphaCorrection=90-Math.abs(c.options.chart.options3d.alpha%180-90),e=f.cuboidPath.call(this,m(b,{depth:b.width,width:(b.width+b.bottom.width)/2})),z=e.isTop,d=!e.isFront,h=!!b.middle,A=this.getCylinderEnd(c,m(b,{x:b.x-b.width/2,z:b.z-b.width/2,alphaCorrection:a})),g=b.bottom.width,l=m(b,{width:g,x:b.x-g/2,z:b.z-g/2,alphaCorrection:a}),v=this.getCylinderEnd(c,l,!0),n=g,u=l,r=v,x=v;h&&(n=b.middle.width,
-u=m(b,{y:b.y+b.middle.fraction*b.height,width:n,x:b.x-n/2,z:b.z-n/2}),r=this.getCylinderEnd(c,u,!1),x=this.getCylinderEnd(c,u,!1));e={top:A,bottom:v,frontUpper:this.getCylinderFront(A,r),zIndexes:{group:e.zIndexes.group,top:0!==z?0:3,bottom:1!==z?0:3,frontUpper:d?2:1,backUpper:d?1:2,rightUpper:d?2:1}};e.backUpper=this.getCylinderBack(A,r);A=1!==Math.min(n,b.width)/Math.max(n,b.width);e.rightUpper=this.getCylinderFront(this.getCylinderEnd(c,m(b,{x:b.x-b.width/2,z:b.z-b.width/2,alphaCorrection:A?-a:
-0}),!1),this.getCylinderEnd(c,m(u,{alphaCorrection:A?-a:0}),!h));h&&(A=1!==Math.min(n,g)/Math.max(n,g),m(!0,e,{frontLower:this.getCylinderFront(x,v),backLower:this.getCylinderBack(x,v),rightLower:this.getCylinderFront(this.getCylinderEnd(c,m(l,{alphaCorrection:A?-a:0}),!0),this.getCylinderEnd(c,m(u,{alphaCorrection:A?-a:0}),!1)),zIndexes:{frontLower:d?2:1,backLower:d?1:2,rightLower:d?1:2}}));return e}})}a.compose=function(a){F.compose(a);f(a.prototype.elements3d);l(a)}})(l||(l={}));return l});q(a,
-"Series/Funnel3D/Funnel3DPoint.js",[a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,h){var l=this&&this.__extends||function(){var a=function(d,f){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,d){a.__proto__=d}||function(a,d){for(var f in d)d.hasOwnProperty(f)&&(a[f]=d[f])};return a(d,f)};return function(d,f){function h(){this.constructor=d}a(d,f);d.prototype=null===f?Object.create(f):(h.prototype=f.prototype,new h)}}();h=h.extend;a=function(a){function d(){var d=
-null!==a&&a.apply(this,arguments)||this;d.dlBoxRaw=void 0;d.options=void 0;d.series=void 0;d.y=void 0;return d}l(d,a);return d}(a.seriesTypes.column.prototype.pointClass);h(a.prototype,{shapeType:"funnel3d"});return a});q(a,"Series/Funnel3D/Funnel3DSeries.js",[a["Series/Funnel3D/Funnel3DComposition.js"],a["Series/Funnel3D/Funnel3DPoint.js"],a["Core/Globals.js"],a["Core/Math3D.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,h,q,f,d,w){var l=this&&this.__extends||function(){var a=
-function(b,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return a(b,c)};return function(b,c){function d(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(d.prototype=c.prototype,new d)}}();q=q.noop;var F=f.perspective,m=d.series,B=d.seriesTypes.column,I=w.extend,M=w.merge,G=w.pick,u=w.relativeLength;f=function(d){function b(){var a=null!==d&&d.apply(this,arguments)||this;a.center=
-void 0;a.data=void 0;a.options=void 0;a.points=void 0;return a}l(b,d);b.prototype.alignDataLabel=function(a,b,e){var c=a.dlBoxRaw,d=this.chart.inverted,k=a.plotY>G(this.translatedThreshold,this.yAxis.len),f=G(e.inside,!!this.options.stacking),g={x:c.x,y:c.y,height:0};e.align=G(e.align,!d||f?"center":k?"right":"left");e.verticalAlign=G(e.verticalAlign,d||f?"middle":k?"top":"bottom");"top"!==e.verticalAlign&&(g.y+=c.bottom/("bottom"===e.verticalAlign?1:2));g.width=this.getWidthAt(g.y);this.options.reversed&&
-(g.width=c.fullWidth-g.width);f?g.x-=g.width/2:"left"===e.align?(e.align="right",g.x-=1.5*g.width):"right"===e.align?(e.align="left",g.x+=g.width/2):g.x-=g.width/2;a.dlBox=g;B.prototype.alignDataLabel.apply(this,arguments)};b.prototype.bindAxes=function(){m.prototype.bindAxes.apply(this,arguments);I(this.xAxis.options,{gridLineWidth:0,lineWidth:0,title:void 0,tickPositions:[]});M(!0,this.yAxis.options,{gridLineWidth:0,title:void 0,labels:{enabled:!1}})};b.prototype.translate=function(){m.prototype.translate.apply(this,
-arguments);var a=0,b=this.chart,e=this.options,d=e.reversed,f=e.ignoreHiddenPoint,h=b.plotWidth,l=b.plotHeight,g=0,q=e.center,v=u(q[0],h),n=u(q[1],l),w=u(e.width,h),r,x,t=u(e.height,l),B=u(e.neckWidth,h),J=u(e.neckHeight,l),E=n-t/2+t-J;h=this.data;var C,K,y,D,L,H,p;this.getWidthAt=x=function(a){var b=n-t/2;return a>E||t===J?B:B+(w-B)*(1-(a-b)/(t-J))};this.center=[v,n,t];this.centerX=v;h.forEach(function(b){f&&!1===b.visible||(a+=b.y)});h.forEach(function(c){L=null;C=a?c.y/a:0;y=n-t/2+g*t;D=y+C*t;
-r=x(y);H=D-y;p={gradientForSides:G(c.options.gradientForSides,e.gradientForSides),x:v,y:y,height:H,width:r,z:1,top:{width:r}};r=x(D);p.bottom={fraction:C,width:r};y>=E?p.isCylinder=!0:D>E&&(L=D,r=x(E),D=E,p.bottom.width=r,p.middle={fraction:H?(E-y)/H:0,width:r});d&&(p.y=y=n+t/2-(g+C)*t,p.middle&&(p.middle.fraction=1-(H?p.middle.fraction:0)),r=p.width,p.width=p.bottom.width,p.bottom.width=r);c.shapeArgs=I(c.shapeArgs,p);c.percentage=100*C;c.plotX=v;c.plotY=d?n+t/2-(g+C/2)*t:(y+(L||D))/2;K=F([{x:v,
-y:c.plotY,z:d?-(w-x(c.plotY))/2:-x(c.plotY)/2}],b,!0)[0];c.tooltipPos=[K.x,K.y];c.dlBoxRaw={x:v,width:x(c.plotY),y:y,bottom:p.height||0,fullWidth:w};f&&!1===c.visible||(g+=C)})};b.compose=a.compose;b.defaultOptions=M(B.defaultOptions,{center:["50%","50%"],width:"90%",neckWidth:"30%",height:"100%",neckHeight:"25%",reversed:!1,gradientForSides:!0,animation:!1,edgeWidth:0,colorByPoint:!0,showInLegend:!1,dataLabels:{align:"right",crop:!1,inside:!1,overflow:"allow"}});return b}(B);I(f.prototype,{pointClass:h,
-translate3dShapes:q});d.registerSeriesType("funnel3d",f);"";return f});q(a,"masters/modules/funnel3d.src.js",[a["Core/Renderer/RendererRegistry.js"],a["Series/Funnel3D/Funnel3DSeries.js"]],function(a,h){h.compose(a.getRendererType());return h})});
-//# sourceMappingURL=funnel3d.js.map

+ 0 - 231
nicegui/elements/lib/highcharts_modules/gantt.js

@@ -1,231 +0,0 @@
-/*
- Highcharts Gantt JS v10.3.3 (2023-01-20)
-
- Gantt series
-
- (c) 2016-2021 Lars A. V. Cabrera
-
- License: www.highcharts.com/license
-*/
-(function(c){"object"===typeof module&&module.exports?(c["default"]=c,module.exports=c):"function"===typeof define&&define.amd?define("highcharts/modules/gantt",["highcharts"],function(J){c(J);c.Highcharts=J;return c}):c("undefined"!==typeof Highcharts?Highcharts:void 0)})(function(c){function J(c,z,G,w){c.hasOwnProperty(z)||(c[z]=w.apply(null,G),"function"===typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:z,module:c[z]}})))}c=c?c._modules:{};J(c,"Core/Axis/NavigatorAxisComposition.js",
-[c["Core/Globals.js"],c["Core/Utilities.js"]],function(c,z){function D(){this.navigatorAxis||(this.navigatorAxis=new A(this))}function w(p){var h=this.chart.options,r=h.navigator,a=this.navigatorAxis,e=h.chart.zooming.pinchType,q=h.rangeSelector;h=h.chart.zooming.type;this.isXAxis&&(r&&r.enabled||q&&q.enabled)&&("y"===h?p.zoomed=!1:(!H&&"xy"===h||H&&"xy"===e)&&this.options.range&&(r=a.previousZoom,y(p.newMin)?a.previousZoom=[this.min,this.max]:r&&(p.newMin=r[0],p.newMax=r[1],a.previousZoom=void 0)));
-"undefined"!==typeof p.zoomed&&p.preventDefault()}var H=c.isTouchDevice,v=z.addEvent,l=z.correctFloat,y=z.defined,p=z.isNumber,I=z.pick,t=[],A=function(){function x(h){this.axis=h}x.compose=function(h){-1===t.indexOf(h)&&(t.push(h),h.keepProps.push("navigatorAxis"),v(h,"init",D),v(h,"zoom",w))};x.prototype.destroy=function(){this.axis=void 0};x.prototype.toFixedRange=function(h,r,a,e){var q=this.axis,t=q.chart;h=I(a,q.translate(h,!0,!q.horiz));r=I(e,q.translate(r,!0,!q.horiz));t=t&&t.fixedRange;q=
-(q.pointRange||0)/2;var x=t&&(r-h)/t;y(a)||(h=l(h+q));y(e)||(r=l(r-q));.7<x&&1.3>x&&(e?h=r-t:r=h+t);p(h)&&p(r)||(h=r=void 0);return{min:h,max:r}};return x}();return A});J(c,"Stock/Navigator/NavigatorDefaults.js",[c["Core/Color/Color.js"],c["Core/Series/SeriesRegistry.js"]],function(c,z){c=c.parse;z=z.seriesTypes;z={height:40,margin:25,maskInside:!0,handles:{width:7,height:15,symbols:["navigator-handle","navigator-handle"],enabled:!0,lineWidth:1,backgroundColor:"#f2f2f2",borderColor:"#999999"},maskFill:c("#6685c2").setOpacity(.3).get(),
-outlineColor:"#cccccc",outlineWidth:1,series:{type:"undefined"===typeof z.areaspline?"line":"areaspline",fillOpacity:.05,lineWidth:1,compare:null,dataGrouping:{approximation:"average",enabled:!0,groupPixelWidth:2,firstAnchor:"firstPoint",anchor:"middle",lastAnchor:"lastPoint",units:[["millisecond",[1,2,5,10,20,25,50,100,200,500]],["second",[1,2,5,10,15,30]],["minute",[1,2,5,10,15,30]],["hour",[1,2,3,4,6,8,12]],["day",[1,2,3,4]],["week",[1,2,3]],["month",[1,3,6]],["year",null]]},dataLabels:{enabled:!1,
-zIndex:2},id:"highcharts-navigator-series",className:"highcharts-navigator-series",lineColor:null,marker:{enabled:!1},threshold:null},xAxis:{overscroll:0,className:"highcharts-navigator-xaxis",tickLength:0,lineWidth:0,gridLineColor:"#e6e6e6",gridLineWidth:1,tickPixelInterval:200,labels:{align:"left",style:{color:"#999999"},x:3,y:-4},crosshair:!1},yAxis:{className:"highcharts-navigator-yaxis",gridLineWidth:0,startOnTick:!1,endOnTick:!1,minPadding:.1,maxPadding:.1,labels:{enabled:!1},crosshair:!1,title:{text:null},
-tickLength:0,tickWidth:0}};"";return z});J(c,"Stock/Navigator/NavigatorSymbols.js",[],function(){return{"navigator-handle":function(c,z,G,w,H){void 0===H&&(H={});c=H.width?H.width/2:G;z=Math.round(c/3)+.5;w=H.height||w;return[["M",-c-1,.5],["L",c,.5],["L",c,w+.5],["L",-c-1,w+.5],["L",-c-1,.5],["M",-z,4],["L",-z,w-3],["M",z-1,4],["L",z-1,w-3]]}}});J(c,"Stock/Navigator/NavigatorComposition.js",[c["Core/Defaults.js"],c["Core/Globals.js"],c["Core/Axis/NavigatorAxisComposition.js"],c["Stock/Navigator/NavigatorDefaults.js"],
-c["Stock/Navigator/NavigatorSymbols.js"],c["Core/Renderer/RendererRegistry.js"],c["Core/Utilities.js"]],function(c,z,G,w,H,v,l){function y(){this.navigator&&this.navigator.setBaseSeries(null,!1)}function p(){var d=this.legend,b=this.navigator;if(b){var m=d&&d.options;var E=b.xAxis;var F=b.yAxis;var f=b.scrollbarHeight;this.inverted?(b.left=b.opposite?this.chartWidth-f-b.height:this.spacing[3]+f,b.top=this.plotTop+f):(b.left=k(E.left,this.plotLeft+f),b.top=b.navigatorOptions.top||this.chartHeight-
-b.height-f-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(m&&"bottom"===m.verticalAlign&&"proximate"!==m.layout&&m.enabled&&!m.floating?d.legendHeight+k(m.margin,10):0)-(this.titleOffset?this.titleOffset[2]:0));E&&F&&(this.inverted?E.options.left=F.options.left=b.left:E.options.top=F.options.top=b.top,E.setAxisSize(),F.setAxisSize())}}function I(g){this.navigator||this.scroller||!this.options.navigator.enabled&&!this.options.scrollbar.enabled||(this.scroller=
-this.navigator=new d(this),k(g.redraw,!0)&&this.redraw(g.animation))}function t(){var g=this.options;if(g.navigator.enabled||g.scrollbar.enabled)this.scroller=this.navigator=new d(this)}function A(){var d=this.options,b=d.navigator,m=d.rangeSelector;if((b&&b.enabled||m&&m.enabled)&&(!q&&"x"===d.chart.zooming.type||q&&"x"===d.chart.zooming.pinchType))return!1}function x(d){var b=d.navigator;b&&d.xAxis[0]&&(d=d.xAxis[0].getExtremes(),b.render(d.min,d.max))}function h(d){var b=d.options.navigator||{},
-m=d.options.scrollbar||{};this.navigator||this.scroller||!b.enabled&&!m.enabled||(n(!0,this.options.navigator,b),n(!0,this.options.scrollbar,m),delete d.options.navigator,delete d.options.scrollbar)}function r(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)}var a=c.defaultOptions,e=c.setOptions,q=z.isTouchDevice,K=v.getRendererType,L=l.addEvent,u=l.extend,n=l.merge,k=l.pick,f=[],d;return{compose:function(g,b,m,E){G.compose(g);d=m;-1===f.indexOf(b)&&(f.push(b),
-b.prototype.callbacks.push(x),L(b,"afterAddSeries",y),L(b,"afterSetChartSize",p),L(b,"afterUpdate",I),L(b,"beforeRender",t),L(b,"beforeShowResetZoom",A),L(b,"update",h));-1===f.indexOf(E)&&(f.push(E),L(E,"afterUpdate",r));-1===f.indexOf(K)&&(f.push(K),u(K().prototype.symbols,H));-1===f.indexOf(e)&&(f.push(e),u(a,{navigator:w}))}}});J(c,"Core/Axis/ScrollbarAxis.js",[c["Core/Utilities.js"]],function(c){var z=c.addEvent,D=c.defined,w=c.pick;return function(){function c(){}c.compose=function(v,l){if(-1===
-c.composed.indexOf(v))c.composed.push(v);else return v;var y=function(p){var l=w(p.options&&p.options.min,p.min),t=w(p.options&&p.options.max,p.max);return{axisMin:l,axisMax:t,scrollMin:D(p.dataMin)?Math.min(l,p.min,p.dataMin,w(p.threshold,Infinity)):l,scrollMax:D(p.dataMax)?Math.max(t,p.max,p.dataMax,w(p.threshold,-Infinity)):t}};z(v,"afterInit",function(){var p=this;p.options&&p.options.scrollbar&&p.options.scrollbar.enabled&&(p.options.scrollbar.vertical=!p.horiz,p.options.startOnTick=p.options.endOnTick=
-!1,p.scrollbar=new l(p.chart.renderer,p.options.scrollbar,p.chart),z(p.scrollbar,"changed",function(l){var t=y(p),c=t.axisMax,x=t.scrollMin,h=t.scrollMax-x;D(t.axisMin)&&D(c)&&(p.horiz&&!p.reversed||!p.horiz&&p.reversed?(t=x+h*this.to,x+=h*this.from):(t=x+h*(1-this.from),x+=h*(1-this.to)),this.shouldUpdateExtremes(l.DOMType)?p.setExtremes(x,t,!0,"mousemove"!==l.DOMType&&"touchmove"!==l.DOMType,l):this.setRange(this.from,this.to))}))});z(v,"afterRender",function(){var p=y(this),l=p.scrollMin,t=p.scrollMax;
-p=this.scrollbar;var c=this.axisTitleMargin+(this.titleOffset||0),x=this.chart.scrollbarsOffsets,h=this.options.margin||0;p&&(this.horiz?(this.opposite||(x[1]+=c),p.position(this.left,this.top+this.height+2+x[1]-(this.opposite?h:0),this.width,this.height),this.opposite||(x[1]+=h),c=1):(this.opposite&&(x[0]+=c),p.position(p.options.opposite?this.left+this.width+2+x[0]-(this.opposite?0:h):this.opposite?0:h,this.top,this.width,this.height),this.opposite&&(x[0]+=h),c=0),x[c]+=p.size+p.options.margin,
-isNaN(l)||isNaN(t)||!D(this.min)||!D(this.max)||this.min===this.max?p.setRange(0,1):(x=(this.min-l)/(t-l),l=(this.max-l)/(t-l),this.horiz&&!this.reversed||!this.horiz&&this.reversed?p.setRange(x,l):p.setRange(1-l,1-x)))});z(v,"afterGetOffset",function(){var p=this.scrollbar&&!this.scrollbar.options.opposite;p=this.horiz?2:p?3:1;var l=this.scrollbar;l&&(this.chart.scrollbarsOffsets=[0,0],this.chart.axisOffset[p]+=l.size+l.options.margin)});return v};c.composed=[];return c}()});J(c,"Stock/Scrollbar/ScrollbarDefaults.js",
-[c["Core/Globals.js"]],function(c){return{height:c.isTouchDevice?20:14,barBorderRadius:0,buttonBorderRadius:0,liveRedraw:void 0,margin:10,minWidth:6,opposite:!0,step:.2,zIndex:3,barBackgroundColor:"#cccccc",barBorderWidth:1,barBorderColor:"#cccccc",buttonArrowColor:"#333333",buttonBackgroundColor:"#e6e6e6",buttonBorderColor:"#cccccc",buttonBorderWidth:1,rifleColor:"#333333",trackBackgroundColor:"#f2f2f2",trackBorderColor:"#f2f2f2",trackBorderWidth:1}});J(c,"Stock/Scrollbar/Scrollbar.js",[c["Core/Defaults.js"],
-c["Core/Globals.js"],c["Core/Axis/ScrollbarAxis.js"],c["Stock/Scrollbar/ScrollbarDefaults.js"],c["Core/Utilities.js"]],function(c,z,G,w,H){var v=c.defaultOptions,l=H.addEvent,y=H.correctFloat,p=H.defined,I=H.destroyObjectProperties,t=H.fireEvent,A=H.merge,x=H.pick,h=H.removeEvent;c=function(){function r(a,e,q){this._events=[];this.chart=void 0;this.from=this.chartY=this.chartX=0;this.scrollbar=this.renderer=this.options=this.group=void 0;this.scrollbarButtons=[];this.scrollbarGroup=void 0;this.scrollbarLeft=
-0;this.scrollbarRifles=void 0;this.scrollbarStrokeWidth=1;this.to=this.size=this.scrollbarTop=0;this.track=void 0;this.trackBorderWidth=1;this.userOptions=void 0;this.y=this.x=0;this.init(a,e,q)}r.compose=function(a){G.compose(a,r)};r.swapXY=function(a,e){e&&a.forEach(function(a){for(var e=a.length,q,u=0;u<e;u+=2)q=a[u+1],"number"===typeof q&&(a[u+1]=a[u+2],a[u+2]=q)});return a};r.prototype.addEvents=function(){var a=this.options.inverted?[1,0]:[0,1],e=this.scrollbarButtons,q=this.scrollbarGroup.element,
-r=this.track.element,h=this.mouseDownHandler.bind(this),u=this.mouseMoveHandler.bind(this),n=this.mouseUpHandler.bind(this);a=[[e[a[0]].element,"click",this.buttonToMinClick.bind(this)],[e[a[1]].element,"click",this.buttonToMaxClick.bind(this)],[r,"click",this.trackClick.bind(this)],[q,"mousedown",h],[q.ownerDocument,"mousemove",u],[q.ownerDocument,"mouseup",n]];z.hasTouch&&a.push([q,"touchstart",h],[q.ownerDocument,"touchmove",u],[q.ownerDocument,"touchend",n]);a.forEach(function(a){l.apply(null,
-a)});this._events=a};r.prototype.buttonToMaxClick=function(a){var e=(this.to-this.from)*x(this.options.step,.2);this.updatePosition(this.from+e,this.to+e);t(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMEvent:a})};r.prototype.buttonToMinClick=function(a){var e=y(this.to-this.from)*x(this.options.step,.2);this.updatePosition(y(this.from-e),y(this.to-e));t(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMEvent:a})};r.prototype.cursorToScrollbarPosition=function(a){var e=
-this.options;e=e.minWidth>this.calculatedWidth?e.minWidth:0;return{chartX:(a.chartX-this.x-this.xOffset)/(this.barWidth-e),chartY:(a.chartY-this.y-this.yOffset)/(this.barWidth-e)}};r.prototype.destroy=function(){var a=this,e=a.chart.scroller;a.removeEvents();["track","scrollbarRifles","scrollbar","scrollbarGroup","group"].forEach(function(e){a[e]&&a[e].destroy&&(a[e]=a[e].destroy())});e&&a===e.scrollbar&&(e.scrollbar=null,I(e.scrollbarButtons))};r.prototype.drawScrollbarButton=function(a){var e=this.renderer,
-q=this.scrollbarButtons,h=this.options,l=this.size,u=e.g().add(this.group);q.push(u);u=e.rect().addClass("highcharts-scrollbar-button").add(u);this.chart.styledMode||u.attr({stroke:h.buttonBorderColor,"stroke-width":h.buttonBorderWidth,fill:h.buttonBackgroundColor});u.attr(u.crisp({x:-.5,y:-.5,width:l+1,height:l+1,r:h.buttonBorderRadius},u.strokeWidth()));u=e.path(r.swapXY([["M",l/2+(a?-1:1),l/2-3],["L",l/2+(a?-1:1),l/2+3],["L",l/2+(a?2:-2),l/2]],h.vertical)).addClass("highcharts-scrollbar-arrow").add(q[a]);
-this.chart.styledMode||u.attr({fill:h.buttonArrowColor})};r.prototype.init=function(a,e,q){this.scrollbarButtons=[];this.renderer=a;this.userOptions=e;this.options=A(w,v.scrollbar,e);this.chart=q;this.size=x(this.options.size,this.options.height);e.enabled&&(this.render(),this.addEvents())};r.prototype.mouseDownHandler=function(a){a=this.chart.pointer.normalize(a);a=this.cursorToScrollbarPosition(a);this.chartX=a.chartX;this.chartY=a.chartY;this.initPositions=[this.from,this.to];this.grabbedCenter=
-!0};r.prototype.mouseMoveHandler=function(a){var e=this.chart.pointer.normalize(a),q=this.options.vertical?"chartY":"chartX",h=this.initPositions||[];!this.grabbedCenter||a.touches&&0===a.touches[0][q]||(e=this.cursorToScrollbarPosition(e)[q],q=this[q],q=e-q,this.hasDragged=!0,this.updatePosition(h[0]+q,h[1]+q),this.hasDragged&&t(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMType:a.type,DOMEvent:a}))};r.prototype.mouseUpHandler=function(a){this.hasDragged&&t(this,"changed",{from:this.from,
-to:this.to,trigger:"scrollbar",DOMType:a.type,DOMEvent:a});this.grabbedCenter=this.hasDragged=this.chartX=this.chartY=null};r.prototype.position=function(a,e,q,h){var r=this.options.vertical,u=this.rendered?"animate":"attr",n=h,k=0;this.group.show();this.x=a;this.y=e+this.trackBorderWidth;this.width=q;this.height=h;this.xOffset=n;this.yOffset=k;r?(this.width=this.yOffset=q=k=this.size,this.xOffset=n=0,this.barWidth=h-2*q,this.x=a+=this.options.margin):(this.height=this.xOffset=h=n=this.size,this.barWidth=
-q-2*h,this.y+=this.options.margin);this.group[u]({translateX:a,translateY:this.y});this.track[u]({width:q,height:h});this.scrollbarButtons[1][u]({translateX:r?0:q-n,translateY:r?h-k:0})};r.prototype.removeEvents=function(){this._events.forEach(function(a){h.apply(null,a)});this._events.length=0};r.prototype.render=function(){var a=this.renderer,e=this.options,q=this.size,h=this.chart.styledMode,l=a.g("scrollbar").attr({zIndex:e.zIndex}).hide().add();this.group=l;this.track=a.rect().addClass("highcharts-scrollbar-track").attr({x:0,
-r:e.trackBorderRadius||0,height:q,width:q}).add(l);h||this.track.attr({fill:e.trackBackgroundColor,stroke:e.trackBorderColor,"stroke-width":e.trackBorderWidth});this.trackBorderWidth=this.track.strokeWidth();this.track.attr({y:-this.trackBorderWidth%2/2});this.scrollbarGroup=a.g().add(l);this.scrollbar=a.rect().addClass("highcharts-scrollbar-thumb").attr({height:q,width:q,r:e.barBorderRadius||0}).add(this.scrollbarGroup);this.scrollbarRifles=a.path(r.swapXY([["M",-3,q/4],["L",-3,2*q/3],["M",0,q/4],
-["L",0,2*q/3],["M",3,q/4],["L",3,2*q/3]],e.vertical)).addClass("highcharts-scrollbar-rifles").add(this.scrollbarGroup);h||(this.scrollbar.attr({fill:e.barBackgroundColor,stroke:e.barBorderColor,"stroke-width":e.barBorderWidth}),this.scrollbarRifles.attr({stroke:e.rifleColor,"stroke-width":1}));this.scrollbarStrokeWidth=this.scrollbar.strokeWidth();this.scrollbarGroup.translate(-this.scrollbarStrokeWidth%2/2,-this.scrollbarStrokeWidth%2/2);this.drawScrollbarButton(0);this.drawScrollbarButton(1)};r.prototype.setRange=
-function(a,e){var h=this.options,r=h.vertical,l=h.minWidth,u=this.barWidth,n=!this.rendered||this.hasDragged||this.chart.navigator&&this.chart.navigator.hasDragged?"attr":"animate";if(p(u)){var k=u*Math.min(e,1);a=Math.max(a,0);var f=Math.ceil(u*a);this.calculatedWidth=k=y(k-f);k<l&&(f=(u-l+k)*a,k=l);l=Math.floor(f+this.xOffset+this.yOffset);u=k/2-.5;this.from=a;this.to=e;r?(this.scrollbarGroup[n]({translateY:l}),this.scrollbar[n]({height:k}),this.scrollbarRifles[n]({translateY:u}),this.scrollbarTop=
-l,this.scrollbarLeft=0):(this.scrollbarGroup[n]({translateX:l}),this.scrollbar[n]({width:k}),this.scrollbarRifles[n]({translateX:u}),this.scrollbarLeft=l,this.scrollbarTop=0);12>=k?this.scrollbarRifles.hide():this.scrollbarRifles.show();!1===h.showFull&&(0>=a&&1<=e?this.group.hide():this.group.show());this.rendered=!0}};r.prototype.shouldUpdateExtremes=function(a){return x(this.options.liveRedraw,z.svg&&!z.isTouchDevice&&!this.chart.boosted)||"mouseup"===a||"touchend"===a||!p(a)};r.prototype.trackClick=
-function(a){var e=this.chart.pointer.normalize(a),h=this.to-this.from,r=this.y+this.scrollbarTop,l=this.x+this.scrollbarLeft;this.options.vertical&&e.chartY>r||!this.options.vertical&&e.chartX>l?this.updatePosition(this.from+h,this.to+h):this.updatePosition(this.from-h,this.to-h);t(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMEvent:a})};r.prototype.update=function(a){this.destroy();this.init(this.chart.renderer,A(!0,this.options,a),this.chart)};r.prototype.updatePosition=function(a,
-e){1<e&&(a=y(1-y(e-a)),e=1);0>a&&(e=y(e-a),a=0);this.from=a;this.to=e};r.defaultOptions=w;return r}();v.scrollbar=A(!0,c.defaultOptions,v.scrollbar);return c});J(c,"Stock/Navigator/Navigator.js",[c["Core/Axis/Axis.js"],c["Core/Defaults.js"],c["Core/Globals.js"],c["Core/Axis/NavigatorAxisComposition.js"],c["Stock/Navigator/NavigatorComposition.js"],c["Stock/Scrollbar/Scrollbar.js"],c["Core/Utilities.js"]],function(c,z,G,w,H,v,l){function y(d){for(var b=[],m=1;m<arguments.length;m++)b[m-1]=arguments[m];
-b=[].filter.call(b,u);if(b.length)return Math[d].apply(0,b)}var p=z.defaultOptions,I=G.hasTouch,t=G.isTouchDevice,A=l.addEvent,x=l.clamp,h=l.correctFloat,r=l.defined,a=l.destroyObjectProperties,e=l.erase,q=l.extend,K=l.find,D=l.isArray,u=l.isNumber,n=l.merge,k=l.pick,f=l.removeEvent,d=l.splat;return function(){function g(b){this.zoomedMin=this.zoomedMax=this.yAxis=this.xAxis=this.top=this.size=this.shades=this.rendered=this.range=this.outlineHeight=this.outline=this.opposite=this.navigatorSize=this.navigatorSeries=
-this.navigatorOptions=this.navigatorGroup=this.navigatorEnabled=this.left=this.height=this.handles=this.chart=this.baseSeries=void 0;this.init(b)}g.compose=function(b,m,d){H.compose(b,m,g,d)};g.prototype.drawHandle=function(b,m,d,F){var E=this.navigatorOptions.handles.height;this.handles[m][F](d?{translateX:Math.round(this.left+this.height/2),translateY:Math.round(this.top+parseInt(b,10)+.5-E)}:{translateX:Math.round(this.left+parseInt(b,10)),translateY:Math.round(this.top+this.height/2-E/2-1)})};
-g.prototype.drawOutline=function(b,m,d,F){var E=this.navigatorOptions.maskInside,g=this.outline.strokeWidth(),f=g/2,a=g%2/2;g=this.outlineHeight;var k=this.scrollbarHeight||0,C=this.size,B=this.left-k,e=this.top;d?(B-=f,d=e+m+a,m=e+b+a,a=[["M",B+g,e-k-a],["L",B+g,d],["L",B,d],["L",B,m],["L",B+g,m],["L",B+g,e+C+k]],E&&a.push(["M",B+g,d-f],["L",B+g,m+f])):(b+=B+k-a,m+=B+k-a,e+=f,a=[["M",B,e],["L",b,e],["L",b,e+g],["L",m,e+g],["L",m,e],["L",B+C+2*k,e]],E&&a.push(["M",b-f,e],["L",m+f,e]));this.outline[F]({d:a})};
-g.prototype.drawMasks=function(b,m,d,g){var E=this.left,F=this.top,f=this.height;if(d){var a=[E,E,E];var k=[F,F+b,F+m];var C=[f,f,f];var B=[b,m-b,this.size-m]}else a=[E,E+b,E+m],k=[F,F,F],C=[b,m-b,this.size-m],B=[f,f,f];this.shades.forEach(function(b,m){b[g]({x:a[m],y:k[m],width:C[m],height:B[m]})})};g.prototype.renderElements=function(){var b=this,m=b.navigatorOptions,d=m.maskInside,g=b.chart,f=g.renderer,a={cursor:g.inverted?"ns-resize":"ew-resize"},k=b.navigatorGroup=f.g("navigator").attr({zIndex:8,
-visibility:"hidden"}).add();[!d,d,!d].forEach(function(d,E){var F=f.rect().addClass("highcharts-navigator-mask"+(1===E?"-inside":"-outside")).add(k);g.styledMode||(F.attr({fill:d?m.maskFill:"rgba(0,0,0,0)"}),1===E&&F.css(a));b.shades[E]=F});b.outline=f.path().addClass("highcharts-navigator-outline").add(k);g.styledMode||b.outline.attr({"stroke-width":m.outlineWidth,stroke:m.outlineColor});if(m.handles&&m.handles.enabled){var e=m.handles,n=e.height,C=e.width;[0,1].forEach(function(m){b.handles[m]=
-f.symbol(e.symbols[m],-C/2-1,0,C,n,e);g.inverted&&b.handles[m].attr({rotation:90,rotationOriginX:Math.floor(-C/2),rotationOriginY:(n+C)/2});b.handles[m].attr({zIndex:7-m}).addClass("highcharts-navigator-handle highcharts-navigator-handle-"+["left","right"][m]).add(k);g.styledMode||b.handles[m].attr({fill:e.backgroundColor,stroke:e.borderColor,"stroke-width":e.lineWidth}).css(a)})}};g.prototype.update=function(b){(this.series||[]).forEach(function(b){b.baseSeries&&delete b.baseSeries.navigatorSeries});
-this.destroy();n(!0,this.chart.options.navigator,b);this.init(this.chart)};g.prototype.render=function(b,m,d,g){var E=this.chart,F=this.xAxis,f=F.pointRange||0,a=F.navigatorAxis.fake?E.xAxis[0]:F,e=this.navigatorEnabled,C=this.rendered,B=E.inverted,n=E.xAxis[0].minRange,l=E.xAxis[0].options.maxRange,q=this.scrollbarHeight,p;if(!this.hasDragged||r(d)){b=h(b-f/2);m=h(m+f/2);if(!u(b)||!u(m))if(C)d=0,g=k(F.width,a.width);else return;this.left=k(F.left,E.plotLeft+q+(B?E.plotWidth:0));var c=this.size=p=
-k(F.len,(B?E.plotHeight:E.plotWidth)-2*q);E=B?q:p+2*q;d=k(d,F.toPixels(b,!0));g=k(g,F.toPixels(m,!0));u(d)&&Infinity!==Math.abs(d)||(d=0,g=E);b=F.toValue(d,!0);m=F.toValue(g,!0);var t=Math.abs(h(m-b));t<n?this.grabbedLeft?d=F.toPixels(m-n-f,!0):this.grabbedRight&&(g=F.toPixels(b+n+f,!0)):r(l)&&h(t-f)>l&&(this.grabbedLeft?d=F.toPixels(m-l-f,!0):this.grabbedRight&&(g=F.toPixels(b+l+f,!0)));this.zoomedMax=x(Math.max(d,g),0,c);this.zoomedMin=x(this.fixedWidth?this.zoomedMax-this.fixedWidth:Math.min(d,
-g),0,c);this.range=this.zoomedMax-this.zoomedMin;c=Math.round(this.zoomedMax);d=Math.round(this.zoomedMin);e&&(this.navigatorGroup.attr({visibility:"inherit"}),C=C&&!this.hasDragged?"animate":"attr",this.drawMasks(d,c,B,C),this.drawOutline(d,c,B,C),this.navigatorOptions.handles.enabled&&(this.drawHandle(d,0,B,C),this.drawHandle(c,1,B,C)));this.scrollbar&&(B?(B=this.top-q,a=this.left-q+(e||!a.opposite?0:(a.titleOffset||0)+a.axisTitleMargin),q=p+2*q):(B=this.top+(e?this.height:-q),a=this.left-q),this.scrollbar.position(a,
-B,E,q),this.scrollbar.setRange(this.zoomedMin/(p||1),this.zoomedMax/(p||1)));this.rendered=!0}};g.prototype.addMouseEvents=function(){var b=this,m=b.chart,d=m.container,g=[],f,a;b.mouseMoveHandler=f=function(m){b.onMouseMove(m)};b.mouseUpHandler=a=function(m){b.onMouseUp(m)};g=b.getPartsEvents("mousedown");g.push(A(m.renderTo,"mousemove",f),A(d.ownerDocument,"mouseup",a));I&&(g.push(A(m.renderTo,"touchmove",f),A(d.ownerDocument,"touchend",a)),g.concat(b.getPartsEvents("touchstart")));b.eventsToUnbind=
-g;b.series&&b.series[0]&&g.push(A(b.series[0].xAxis,"foundExtremes",function(){m.navigator.modifyNavigatorAxisExtremes()}))};g.prototype.getPartsEvents=function(b){var m=this,d=[];["shades","handles"].forEach(function(E){m[E].forEach(function(g,F){d.push(A(g.element,b,function(b){m[E+"Mousedown"](b,F)}))})});return d};g.prototype.shadesMousedown=function(b,m){b=this.chart.pointer.normalize(b);var d=this.chart,g=this.xAxis,f=this.zoomedMin,a=this.size,k=this.range,e=this.left,n=b.chartX;d.inverted&&
-(n=b.chartY,e=this.top);if(1===m)this.grabbedCenter=n,this.fixedWidth=k,this.dragOffset=n-f;else{b=n-e-k/2;if(0===m)b=Math.max(0,b);else if(2===m&&b+k>=a)if(b=a-k,this.reversedExtremes){b-=k;var C=this.getUnionExtremes().dataMin}else var B=this.getUnionExtremes().dataMax;b!==f&&(this.fixedWidth=k,m=g.navigatorAxis.toFixedRange(b,b+k,C,B),r(m.min)&&d.xAxis[0].setExtremes(Math.min(m.min,m.max),Math.max(m.min,m.max),!0,null,{trigger:"navigator"}))}};g.prototype.handlesMousedown=function(b,m){this.chart.pointer.normalize(b);
-b=this.chart;var d=b.xAxis[0],g=this.reversedExtremes;0===m?(this.grabbedLeft=!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=g?d.min:d.max):(this.grabbedRight=!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=g?d.max:d.min);b.fixedRange=null};g.prototype.onMouseMove=function(b){var m=this,d=m.chart,g=m.navigatorSize,f=m.range,a=m.dragOffset,e=d.inverted,n=m.left;b.touches&&0===b.touches[0].pageX||(b=d.pointer.normalize(b),d=b.chartX,e&&(n=m.top,d=b.chartY),m.grabbedLeft?(m.hasDragged=
-!0,m.render(0,0,d-n,m.otherHandlePos)):m.grabbedRight?(m.hasDragged=!0,m.render(0,0,m.otherHandlePos,d-n)):m.grabbedCenter&&(m.hasDragged=!0,d<a?d=a:d>g+a-f&&(d=g+a-f),m.render(0,0,d-a,d-a+f)),m.hasDragged&&m.scrollbar&&k(m.scrollbar.options.liveRedraw,G.svg&&!t&&!this.chart.boosted)&&(b.DOMType=b.type,setTimeout(function(){m.onMouseUp(b)},0)))};g.prototype.onMouseUp=function(b){var m=this.chart,d=this.xAxis,g=this.scrollbar,f=b.DOMEvent||b,a=m.inverted,k=this.rendered&&!this.hasDragged?"animate":
-"attr";if(this.hasDragged&&(!g||!g.hasDragged)||"scrollbar"===b.trigger){g=this.getUnionExtremes();if(this.zoomedMin===this.otherHandlePos)var e=this.fixedExtreme;else if(this.zoomedMax===this.otherHandlePos)var n=this.fixedExtreme;this.zoomedMax===this.size&&(n=this.reversedExtremes?g.dataMin:g.dataMax);0===this.zoomedMin&&(e=this.reversedExtremes?g.dataMax:g.dataMin);d=d.navigatorAxis.toFixedRange(this.zoomedMin,this.zoomedMax,e,n);r(d.min)&&m.xAxis[0].setExtremes(Math.min(d.min,d.max),Math.max(d.min,
-d.max),!0,this.hasDragged?!1:null,{trigger:"navigator",triggerOp:"navigator-drag",DOMEvent:f})}"mousemove"!==b.DOMType&&"touchmove"!==b.DOMType&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=this.dragOffset=null);this.navigatorEnabled&&u(this.zoomedMin)&&u(this.zoomedMax)&&(m=Math.round(this.zoomedMin),b=Math.round(this.zoomedMax),this.shades&&this.drawMasks(m,b,a,k),this.outline&&this.drawOutline(m,b,a,k),this.navigatorOptions.handles.enabled&&
-Object.keys(this.handles).length===this.handles.length&&(this.drawHandle(m,0,a,k),this.drawHandle(b,1,a,k)))};g.prototype.removeEvents=function(){this.eventsToUnbind&&(this.eventsToUnbind.forEach(function(b){b()}),this.eventsToUnbind=void 0);this.removeBaseSeriesEvents()};g.prototype.removeBaseSeriesEvents=function(){var b=this.baseSeries||[];this.navigatorEnabled&&b[0]&&(!1!==this.navigatorOptions.adaptToUpdatedData&&b.forEach(function(b){f(b,"updatedData",this.updatedDataHandler)},this),b[0].xAxis&&
-f(b[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes))};g.prototype.init=function(b){var d=b.options,g=d.navigator||{},f=g.enabled,a=d.scrollbar||{},e=a.enabled;d=f&&g.height||0;var u=e&&a.height||0;this.handles=[];this.shades=[];this.chart=b;this.setBaseSeries();this.height=d;this.scrollbarHeight=u;this.scrollbarEnabled=e;this.navigatorEnabled=f;this.navigatorOptions=g;this.scrollbarOptions=a;this.outlineHeight=d+u;this.opposite=k(g.opposite,!(f||!b.inverted));var h=this;f=h.baseSeries;a=b.xAxis.length;
-e=b.yAxis.length;var q=f&&f[0]&&f[0].xAxis||b.xAxis[0]||{options:{}};b.isDirtyBox=!0;h.navigatorEnabled?(h.xAxis=new c(b,n({breaks:q.options.breaks,ordinal:q.options.ordinal},g.xAxis,{id:"navigator-x-axis",yAxis:"navigator-y-axis",isX:!0,type:"datetime",index:a,isInternal:!0,offset:0,keepOrdinalPadding:!0,startOnTick:!1,endOnTick:!1,minPadding:0,maxPadding:0,zoomEnabled:!1},b.inverted?{offsets:[u,0,-u,0],width:d}:{offsets:[0,-u,0,u],height:d})),h.yAxis=new c(b,n(g.yAxis,{id:"navigator-y-axis",alignTicks:!1,
-offset:0,index:e,isInternal:!0,reversed:k(g.yAxis&&g.yAxis.reversed,b.yAxis[0]&&b.yAxis[0].reversed,!1),zoomEnabled:!1},b.inverted?{width:d}:{height:d})),f||g.series.data?h.updateNavigatorSeries(!1):0===b.series.length&&(h.unbindRedraw=A(b,"beforeRedraw",function(){0<b.series.length&&!h.series&&(h.setBaseSeries(),h.unbindRedraw())})),h.reversedExtremes=b.inverted&&!h.xAxis.reversed||!b.inverted&&h.xAxis.reversed,h.renderElements(),h.addMouseEvents()):(h.xAxis={chart:b,navigatorAxis:{fake:!0},translate:function(d,
-m){var g=b.xAxis[0],f=g.getExtremes(),a=g.len-2*u,E=y("min",g.options.min,f.dataMin);g=y("max",g.options.max,f.dataMax)-E;return m?d*g/a+E:a*(d-E)/g},toPixels:function(b){return this.translate(b)},toValue:function(b){return this.translate(b,!0)}},h.xAxis.navigatorAxis.axis=h.xAxis,h.xAxis.navigatorAxis.toFixedRange=w.prototype.toFixedRange.bind(h.xAxis.navigatorAxis));b.options.scrollbar.enabled&&(b.scrollbar=h.scrollbar=new v(b.renderer,n(b.options.scrollbar,{margin:h.navigatorEnabled?0:10,vertical:b.inverted}),
-b),A(h.scrollbar,"changed",function(b){var d=h.size,m=d*this.to;d*=this.from;h.hasDragged=h.scrollbar.hasDragged;h.render(0,0,d,m);this.shouldUpdateExtremes(b.DOMType)&&setTimeout(function(){h.onMouseUp(b)})}));h.addBaseSeriesEvents();h.addChartEvents()};g.prototype.getUnionExtremes=function(b){var d=this.chart.xAxis[0],g=this.xAxis,f=g.options,a=d.options,e;b&&null===d.dataMin||(e={dataMin:k(f&&f.min,y("min",a.min,d.dataMin,g.dataMin,g.min)),dataMax:k(f&&f.max,y("max",a.max,d.dataMax,g.dataMax,g.max))});
-return e};g.prototype.setBaseSeries=function(b,d){var m=this.chart,g=this.baseSeries=[];b=b||m.options&&m.options.navigator.baseSeries||(m.series.length?K(m.series,function(b){return!b.options.isInternal}).index:0);(m.series||[]).forEach(function(d,m){d.options.isInternal||!d.options.showInNavigator&&(m!==b&&d.options.id!==b||!1===d.options.showInNavigator)||g.push(d)});this.xAxis&&!this.xAxis.navigatorAxis.fake&&this.updateNavigatorSeries(!0,d)};g.prototype.updateNavigatorSeries=function(b,m){var g=
-this,a=g.chart,e=g.baseSeries,h={enableMouseTracking:!1,index:null,linkedTo:null,group:"nav",padXAxis:!1,xAxis:"navigator-x-axis",yAxis:"navigator-y-axis",showInLegend:!1,stacking:void 0,isInternal:!0,states:{inactive:{opacity:1}}},u=g.series=(g.series||[]).filter(function(b){var d=b.baseSeries;return 0>e.indexOf(d)?(d&&(f(d,"updatedData",g.updatedDataHandler),delete d.navigatorSeries),b.chart&&b.destroy(),!1):!0}),l,r,C=g.navigatorOptions.series,B;e&&e.length&&e.forEach(function(b){var f=b.navigatorSeries,
-E=q({color:b.color,visible:b.visible},D(C)?p.navigator.series:C);f&&!1===g.navigatorOptions.adaptToUpdatedData||(h.name="Navigator "+e.length,l=b.options||{},B=l.navigatorOptions||{},E.dataLabels=d(E.dataLabels),r=n(l,h,E,B),r.pointRange=k(E.pointRange,B.pointRange,p.plotOptions[r.type||"line"].pointRange),E=B.data||E.data,g.hasNavigatorData=g.hasNavigatorData||!!E,r.data=E||l.data&&l.data.slice(0),f&&f.options?f.update(r,m):(b.navigatorSeries=a.initSeries(r),b.navigatorSeries.baseSeries=b,u.push(b.navigatorSeries)))});
-if(C.data&&(!e||!e.length)||D(C))g.hasNavigatorData=!1,C=d(C),C.forEach(function(b,d){h.name="Navigator "+(u.length+1);r=n(p.navigator.series,{color:a.series[d]&&!a.series[d].options.isInternal&&a.series[d].color||a.options.colors[d]||a.options.colors[0]},h,b);r.data=b.data;r.data&&(g.hasNavigatorData=!0,u.push(a.initSeries(r)))});b&&this.addBaseSeriesEvents()};g.prototype.addBaseSeriesEvents=function(){var b=this,d=this,g=d.baseSeries||[];g[0]&&g[0].xAxis&&g[0].eventsToUnbind.push(A(g[0].xAxis,"foundExtremes",
-this.modifyBaseAxisExtremes));g.forEach(function(m){m.eventsToUnbind.push(A(m,"show",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)}));m.eventsToUnbind.push(A(m,"hide",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)}));!1!==b.navigatorOptions.adaptToUpdatedData&&m.xAxis&&m.eventsToUnbind.push(A(m,"updatedData",b.updatedDataHandler));m.eventsToUnbind.push(A(m,"remove",function(){this.navigatorSeries&&(e(d.series,this.navigatorSeries),r(this.navigatorSeries.options)&&
-this.navigatorSeries.remove(!1),delete this.navigatorSeries)}))})};g.prototype.getBaseSeriesMin=function(b){return this.baseSeries.reduce(function(b,d){return Math.min(b,d.xData&&d.xData.length?d.xData[0]:b)},b)};g.prototype.modifyNavigatorAxisExtremes=function(){var b=this.xAxis;if("undefined"!==typeof b.getExtremes){var d=this.getUnionExtremes(!0);!d||d.dataMin===b.min&&d.dataMax===b.max||(b.min=d.dataMin,b.max=d.dataMax)}};g.prototype.modifyBaseAxisExtremes=function(){var b=this.chart.navigator,
-d=this.getExtremes(),g=d.dataMin,f=d.dataMax;d=d.max-d.min;var a=b.stickToMin,e=b.stickToMax,h=k(this.options.overscroll,0),n=b.series&&b.series[0],r=!!this.setExtremes;if(!this.eventArgs||"rangeSelectorButton"!==this.eventArgs.trigger){if(a){var C=g;var B=C+d}e&&(B=f+h,a||(C=Math.max(g,B-d,b.getBaseSeriesMin(n&&n.xData?n.xData[0]:-Number.MAX_VALUE))));r&&(a||e)&&u(C)&&(this.min=this.userMin=C,this.max=this.userMax=B)}b.stickToMin=b.stickToMax=null};g.prototype.updatedDataHandler=function(){var b=
-this.chart.navigator,d=this.navigatorSeries;b.stickToMax=k(this.chart.options.navigator&&this.chart.options.navigator.stickToMax,b.reversedExtremes?0===Math.round(b.zoomedMin):Math.round(b.zoomedMax)>=Math.round(b.size));b.stickToMin=b.shouldStickToMin(this,b);d&&!b.hasNavigatorData&&(d.options.pointStart=this.xData[0],d.setData(this.options.data,!1,null,!1))};g.prototype.shouldStickToMin=function(b,d){d=d.getBaseSeriesMin(b.xData[0]);var m=b.xAxis;b=m.max;var g=m.min;m=m.options.range;return u(b)&&
-u(g)?m&&0<b-d?b-d<m:g<=d:!1};g.prototype.addChartEvents=function(){this.eventsToUnbind||(this.eventsToUnbind=[]);this.eventsToUnbind.push(A(this.chart,"redraw",function(){var b=this.navigator,d=b&&(b.baseSeries&&b.baseSeries[0]&&b.baseSeries[0].xAxis||this.xAxis[0]);d&&b.render(d.min,d.max)}),A(this.chart,"getMargins",function(){var b=this.navigator,d=b.opposite?"plotTop":"marginBottom";this.inverted&&(d=b.opposite?"marginRight":"plotLeft");this[d]=(this[d]||0)+(b.navigatorEnabled||!this.inverted?
-b.outlineHeight:0)+b.navigatorOptions.margin}))};g.prototype.destroy=function(){var b=this;this.removeEvents();this.xAxis&&(e(this.chart.xAxis,this.xAxis),e(this.chart.axes,this.xAxis));this.yAxis&&(e(this.chart.yAxis,this.yAxis),e(this.chart.axes,this.yAxis));(this.series||[]).forEach(function(b){b.destroy&&b.destroy()});"series xAxis yAxis shades outline scrollbarTrack scrollbarRifles scrollbarGroup scrollbar navigatorGroup rendered".split(" ").forEach(function(d){b[d]&&b[d].destroy&&b[d].destroy();
-b[d]=null});[this.handles].forEach(function(b){a(b)})};return g}()});J(c,"Stock/RangeSelector/RangeSelectorDefaults.js",[],function(){return{lang:{rangeSelectorZoom:"Zoom",rangeSelectorFrom:"",rangeSelectorTo:"\u2192"},rangeSelector:{allButtonsEnabled:!1,buttons:void 0,buttonSpacing:5,dropdown:"responsive",enabled:void 0,verticalAlign:"top",buttonTheme:{width:28,height:18,padding:2,zIndex:7},floating:!1,x:0,y:0,height:void 0,inputBoxBorderColor:"none",inputBoxHeight:17,inputBoxWidth:void 0,inputDateFormat:"%b %e, %Y",
-inputDateParser:void 0,inputEditDateFormat:"%Y-%m-%d",inputEnabled:!0,inputPosition:{align:"right",x:0,y:0},inputSpacing:5,selected:void 0,buttonPosition:{align:"left",x:0,y:0},inputStyle:{color:"#335cad",cursor:"pointer"},labelStyle:{color:"#666666"}}}});J(c,"Stock/RangeSelector/RangeSelectorComposition.js",[c["Core/Defaults.js"],c["Stock/RangeSelector/RangeSelectorDefaults.js"],c["Core/Utilities.js"]],function(c,z,G){function w(){var f=this.range,d=f.type,g=this.max,b=this.chart.time,m=function(m,
-g){var a="year"===d?"FullYear":"Month",f=new b.Date(m),e=b.get(a,f);b.set(a,f,e+g);e===b.get(a,f)&&b.set("Date",f,0);return f.getTime()-m};if(q(f)){var a=g-f;var e=f}else f&&(a=g+m(g,-(f.count||1)),this.chart&&(this.chart.fixedRange=g-a));var k=D(this.dataMin,Number.MIN_VALUE);q(a)||(a=k);a<=k&&(a=k,"undefined"===typeof e&&(e=m(a,f.count)),this.newMax=Math.min(a+e,D(this.dataMax,Number.MAX_VALUE)));q(g)?!q(f)&&f&&f._offsetMin&&(a+=f._offsetMin):a=void 0;return a}function H(){this.options.rangeSelector&&
-this.options.rangeSelector.enabled&&(this.rangeSelector=new k(this))}function v(){var a=this.axes,d=this.rangeSelector;d&&(q(d.deferredYTDClick)&&(d.clickButton(d.deferredYTDClick),delete d.deferredYTDClick),a.forEach(function(d){d.updateNames();d.setScale()}),this.getAxisMargins(),d.render(),a=d.options.verticalAlign,d.options.floating||("bottom"===a?this.extraBottomMargin=!0:"middle"!==a&&(this.extraTopMargin=!0)))}function l(a){var d,g,b,m,f=a.rangeSelector,k=function(){f&&(d=a.xAxis[0].getExtremes(),
-g=a.legend,m=f&&f.options.verticalAlign,q(d.min)&&f.render(d.min,d.max),g.display&&"top"===m&&m===g.options.verticalAlign&&(b=K(a.spacingBox),b.y="vertical"===g.options.layout?a.plotTop:b.y+f.getHeight(),g.group.placed=!1,g.align(b)))};f&&(e(u,function(b){return b[0]===a})||u.push([a,[h(a.xAxis[0],"afterSetExtremes",function(b){f&&f.render(b.min,b.max)}),h(a,"redraw",k)]]),k())}function y(){for(var a=0,d=u.length;a<d;++a){var g=u[a];if(g[0]===this){g[1].forEach(function(b){return b()});u.splice(a,
-1);break}}}function p(){var a=this.rangeSelector;a&&(a=a.getHeight(),this.extraTopMargin&&(this.plotTop+=a),this.extraBottomMargin&&(this.marginBottom+=a))}function I(){var a=this.rangeSelector;a&&!a.options.floating&&(a.render(),a=a.options.verticalAlign,"bottom"===a?this.extraBottomMargin=!0:"middle"!==a&&(this.extraTopMargin=!0))}function t(a){var d=a.options.rangeSelector;a=this.extraBottomMargin;var g=this.extraTopMargin,b=this.rangeSelector;d&&d.enabled&&!r(b)&&this.options.rangeSelector&&(this.options.rangeSelector.enabled=
-!0,this.rangeSelector=b=new k(this));this.extraTopMargin=this.extraBottomMargin=!1;b&&(l(this),d=d&&d.verticalAlign||b.options&&b.options.verticalAlign,b.options.floating||("bottom"===d?this.extraBottomMargin=!0:"middle"!==d&&(this.extraTopMargin=!0)),this.extraBottomMargin!==a||this.extraTopMargin!==g)&&(this.isDirtyBox=!0)}var A=c.defaultOptions,x=c.setOptions,h=G.addEvent,r=G.defined,a=G.extend,e=G.find,q=G.isNumber,K=G.merge,D=G.pick,u=[],n=[],k;return{compose:function(f,d,g){k=g;-1===n.indexOf(f)&&
-(n.push(f),f.prototype.minFromRange=w);-1===n.indexOf(d)&&(n.push(d),h(d,"afterGetContainer",H),h(d,"beforeRender",v),h(d,"destroy",y),h(d,"getMargins",p),h(d,"render",I),h(d,"update",t),d.prototype.callbacks.push(l));-1===n.indexOf(x)&&(a(A,{rangeSelector:z.rangeSelector}),a(A.lang,z.lang))}}});J(c,"Stock/RangeSelector/RangeSelector.js",[c["Core/Axis/Axis.js"],c["Core/Defaults.js"],c["Core/Globals.js"],c["Stock/RangeSelector/RangeSelectorComposition.js"],c["Core/Renderer/SVG/SVGElement.js"],c["Core/Utilities.js"]],
-function(c,z,G,w,H,v){function l(a){if(-1!==a.indexOf("%L"))return"text";var d="aAdewbBmoyY".split("").some(function(b){return-1!==a.indexOf("%"+b)}),g="HkIlMS".split("").some(function(b){return-1!==a.indexOf("%"+b)});return d&&g?"datetime-local":d?"date":g?"time":"text"}var y=z.defaultOptions,p=v.addEvent,I=v.createElement,t=v.css,A=v.defined,x=v.destroyObjectProperties,h=v.discardElement,r=v.extend,a=v.fireEvent,e=v.isNumber,q=v.merge,K=v.objectEach,D=v.pad,u=v.pick,n=v.pInt,k=v.splat;z=function(){function f(d){this.buttons=
-void 0;this.buttonOptions=f.prototype.defaultButtons;this.initialButtonGroupWidth=0;this.options=void 0;this.chart=d;this.init(d)}f.compose=function(d,g){w.compose(d,g,f)};f.prototype.clickButton=function(d,g){var b=this.chart,m=this.buttonOptions[d],f=b.xAxis[0],F=b.scroller&&b.scroller.getUnionExtremes()||f||{},h=m.type,n=m.dataGrouping,r=F.dataMin,l=F.dataMax,q=f&&Math.round(Math.min(f.max,u(l,f.max)));F=m._range;var C,B=!0;if(null!==r&&null!==l){b.fixedRange=F;this.setSelected(d);n&&(this.forcedDataGrouping=
-!0,c.prototype.setDataGrouping.call(f||{chart:this.chart},n,!1),this.frozenStates=m.preserveDataGrouping);if("month"===h||"year"===h)if(f){h={range:m,max:q,chart:b,dataMin:r,dataMax:l};var t=f.minFromRange.call(h);e(h.newMax)&&(q=h.newMax);B=!1}else F=m;else if(F)t=Math.max(q-F,r),q=Math.min(t+F,l),B=!1;else if("ytd"===h)if(f){if("undefined"===typeof l||"undefined"===typeof r)r=Number.MAX_VALUE,l=Number.MIN_VALUE,b.series.forEach(function(b){if(b=b.xData)r=Math.min(b[0],r),l=Math.max(b[b.length-1],
-l)}),g=!1;h=this.getYTDExtremes(l,r,b.time.useUTC);t=C=h.min;q=h.max}else{this.deferredYTDClick=d;return}else"all"===h&&f&&(b.navigator&&b.navigator.baseSeries[0]&&(b.navigator.baseSeries[0].xAxis.options.range=void 0),t=r,q=l);B&&m._offsetMin&&A(t)&&(t+=m._offsetMin);m._offsetMax&&A(q)&&(q+=m._offsetMax);this.dropdown&&(this.dropdown.selectedIndex=d+1);if(f)f.setExtremes(t,q,u(g,!0),void 0,{trigger:"rangeSelectorButton",rangeSelectorButton:m});else{var x=k(b.options.xAxis)[0];var y=x.range;x.range=
-F;var I=x.min;x.min=C;p(b,"load",function(){x.range=y;x.min=I})}a(this,"afterBtnClick")}};f.prototype.setSelected=function(d){this.selected=this.options.selected=d};f.prototype.init=function(d){var g=this,b=d.options.rangeSelector,m=b.buttons||g.defaultButtons.slice(),f=b.selected,e=function(){var b=g.minInput,d=g.maxInput;b&&b.blur&&a(b,"blur");d&&d.blur&&a(d,"blur")};g.chart=d;g.options=b;g.buttons=[];g.buttonOptions=m;this.eventsToUnbind=[];this.eventsToUnbind.push(p(d.container,"mousedown",e));
-this.eventsToUnbind.push(p(d,"resize",e));m.forEach(g.computeButtonRange);"undefined"!==typeof f&&m[f]&&this.clickButton(f,!1);this.eventsToUnbind.push(p(d,"load",function(){d.xAxis&&d.xAxis[0]&&p(d.xAxis[0],"setExtremes",function(b){this.max-this.min!==d.fixedRange&&"rangeSelectorButton"!==b.trigger&&"updatedData"!==b.trigger&&g.forcedDataGrouping&&!g.frozenStates&&this.setDataGrouping(!1,!1)})}))};f.prototype.updateButtonStates=function(){var d=this,g=this.chart,b=this.dropdown,m=g.xAxis[0],a=Math.round(m.max-
-m.min),f=!m.hasVisibleSeries,k=g.scroller&&g.scroller.getUnionExtremes()||m,h=k.dataMin,n=k.dataMax;g=d.getYTDExtremes(n,h,g.time.useUTC);var u=g.min,r=g.max,C=d.selected,B=d.options.allButtonsEnabled,l=d.buttons,q=e(C);d.buttonOptions.forEach(function(g,e){var k=g._range,F=g.type,E=g.count||1,c=l[e],p=g._offsetMax-g._offsetMin,t=e===C,x=k>n-h,R=k<m.minRange;g=0;var N=!1,M=!1;k=k===a;("month"===F||"year"===F)&&a+36E5>=864E5*{month:28,year:365}[F]*E-p&&a-36E5<=864E5*{month:31,year:366}[F]*E+p?k=!0:
-"ytd"===F?(k=r-u+p===a,N=!t):"all"===F&&(k=m.max-m.min>=n-h,M=!t&&q&&k);F=!B&&(x||R||M||f);E=t&&k||k&&!q&&!N||t&&d.frozenStates;F?g=3:E&&(q=!0,g=2);c.state!==g&&(c.setState(g),b&&(b.options[e+1].disabled=F,2===g&&(b.selectedIndex=e+1)),0===g&&C===e&&d.setSelected())})};f.prototype.computeButtonRange=function(d){var g=d.type,b=d.count||1,m={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5};if(m[g])d._range=m[g]*b;else if("month"===g||"year"===g)d._range=864E5*{month:30,year:365}[g]*
-b;d._offsetMin=u(d.offsetMin,0);d._offsetMax=u(d.offsetMax,0);d._range+=d._offsetMax-d._offsetMin};f.prototype.getInputValue=function(d){d="min"===d?this.minInput:this.maxInput;var g=this.chart.options.rangeSelector,b=this.chart.time;return d?("text"===d.type&&g.inputDateParser||this.defaultInputDateParser)(d.value,b.useUTC,b):0};f.prototype.setInputValue=function(d,g){var b=this.options,m=this.chart.time,a="min"===d?this.minInput:this.maxInput;d="min"===d?this.minDateBox:this.maxDateBox;if(a){var f=
-a.getAttribute("data-hc-time");f=A(f)?Number(f):void 0;A(g)&&(A(f)&&a.setAttribute("data-hc-time-previous",f),a.setAttribute("data-hc-time",g),f=g);a.value=m.dateFormat(this.inputTypeFormats[a.type]||b.inputEditDateFormat,f);d&&d.attr({text:m.dateFormat(b.inputDateFormat,f)})}};f.prototype.setInputExtremes=function(d,g,b){if(d="min"===d?this.minInput:this.maxInput){var m=this.inputTypeFormats[d.type],a=this.chart.time;m&&(g=a.dateFormat(m,g),d.min!==g&&(d.min=g),b=a.dateFormat(m,b),d.max!==b&&(d.max=
-b))}};f.prototype.showInput=function(d){var g="min"===d?this.minDateBox:this.maxDateBox;if((d="min"===d?this.minInput:this.maxInput)&&g&&this.inputGroup){var b="text"===d.type,m=this.inputGroup,a=m.translateX;m=m.translateY;var f=this.options.inputBoxWidth;t(d,{width:b?g.width+(f?-2:20)+"px":"auto",height:b?g.height-2+"px":"auto",border:"2px solid silver"});b&&f?t(d,{left:a+g.x+"px",top:m+"px"}):t(d,{left:Math.min(Math.round(g.x+a-(d.offsetWidth-g.width)/2),this.chart.chartWidth-d.offsetWidth)+"px",
-top:m-(d.offsetHeight-g.height)/2+"px"})}};f.prototype.hideInput=function(d){(d="min"===d?this.minInput:this.maxInput)&&t(d,{top:"-9999em",border:0,width:"1px",height:"1px"})};f.prototype.defaultInputDateParser=function(d,g,b){var m=d.split("/").join("-").split(" ").join("T");-1===m.indexOf("T")&&(m+="T00:00");if(g)m+="Z";else{var a;if(a=G.isSafari)a=m,a=!(6<a.length&&(a.lastIndexOf("-")===a.length-6||a.lastIndexOf("+")===a.length-6));a&&(a=(new Date(m)).getTimezoneOffset()/60,m+=0>=a?"+".concat(D(-a),
-":00"):"-".concat(D(a),":00"))}m=Date.parse(m);e(m)||(d=d.split("-"),m=Date.UTC(n(d[0]),n(d[1])-1,n(d[2])));b&&g&&e(m)&&(m+=b.getTimezoneOffset(m));return m};f.prototype.drawInput=function(d){function g(){var g=k.maxInput,a=k.minInput,m=b.xAxis[0],f=b.scroller&&b.scroller.xAxis?b.scroller.xAxis:m,h=f.dataMin;f=f.dataMax;var n=k.getInputValue(d);n!==Number(C.getAttribute("data-hc-time-previous"))&&e(n)&&(C.setAttribute("data-hc-time-previous",n),c&&g&&e(h)?n>Number(g.getAttribute("data-hc-time"))?
-n=void 0:n<h&&(n=h):a&&e(f)&&(n<Number(a.getAttribute("data-hc-time"))?n=void 0:n>f&&(n=f)),"undefined"!==typeof n&&m.setExtremes(c?n:m.min,c?m.max:n,void 0,void 0,{trigger:"rangeSelectorInput"}))}var b=this.chart,a=this.div,f=this.inputGroup,k=this,h=b.renderer.style||{},n=b.renderer,u=b.options.rangeSelector,c="min"===d,p=y.lang[c?"rangeSelectorFrom":"rangeSelectorTo"]||"";p=n.label(p,0).addClass("highcharts-range-label").attr({padding:p?2:0,height:p?u.inputBoxHeight:0}).add(f);n=n.label("",0).addClass("highcharts-range-input").attr({padding:2,
-width:u.inputBoxWidth,height:u.inputBoxHeight,"text-align":"center"}).on("click",function(){k.showInput(d);k[d+"Input"].focus()});b.styledMode||n.attr({stroke:u.inputBoxBorderColor,"stroke-width":1});n.add(f);var C=I("input",{name:d,className:"highcharts-range-selector"},void 0,a);C.setAttribute("type",l(u.inputDateFormat||"%b %e, %Y"));b.styledMode||(p.css(q(h,u.labelStyle)),n.css(q({color:"#333333"},h,u.inputStyle)),t(C,r({position:"absolute",border:0,boxShadow:"0 0 15px rgba(0,0,0,0.3)",width:"1px",
-height:"1px",padding:0,textAlign:"center",fontSize:h.fontSize,fontFamily:h.fontFamily,top:"-9999em"},u.inputStyle)));C.onfocus=function(){k.showInput(d)};C.onblur=function(){C===G.doc.activeElement&&g();k.hideInput(d);k.setInputValue(d);C.blur()};var B=!1;C.onchange=function(){B||(g(),k.hideInput(d),C.blur())};C.onkeypress=function(b){13===b.keyCode&&g()};C.onkeydown=function(b){B=!0;38!==b.keyCode&&40!==b.keyCode||g()};C.onkeyup=function(){B=!1};return{dateBox:n,input:C,label:p}};f.prototype.getPosition=
-function(){var d=this.chart,g=d.options.rangeSelector;d="top"===g.verticalAlign?d.plotTop-d.axisOffset[0]:0;return{buttonTop:d+g.buttonPosition.y,inputTop:d+g.inputPosition.y-10}};f.prototype.getYTDExtremes=function(d,g,b){var a=this.chart.time,f=new a.Date(d),k=a.get("FullYear",f);b=b?a.Date.UTC(k,0,1):+new a.Date(k,0,1);g=Math.max(g,b);f=f.getTime();return{max:Math.min(d||f,f),min:g}};f.prototype.render=function(d,a){var b=this.chart,g=b.renderer,f=b.container,k=b.options,e=k.rangeSelector,n=u(k.chart.style&&
-k.chart.style.zIndex,0)+1;k=e.inputEnabled;if(!1!==e.enabled){this.rendered||(this.group=g.g("range-selector-group").attr({zIndex:7}).add(),this.div=I("div",void 0,{position:"relative",height:0,zIndex:n}),this.buttonOptions.length&&this.renderButtons(),f.parentNode&&f.parentNode.insertBefore(this.div,f),k&&(this.inputGroup=g.g("input-group").add(this.group),g=this.drawInput("min"),this.minDateBox=g.dateBox,this.minLabel=g.label,this.minInput=g.input,g=this.drawInput("max"),this.maxDateBox=g.dateBox,
-this.maxLabel=g.label,this.maxInput=g.input));if(k&&(this.setInputValue("min",d),this.setInputValue("max",a),d=b.scroller&&b.scroller.getUnionExtremes()||b.xAxis[0]||{},A(d.dataMin)&&A(d.dataMax)&&(b=b.xAxis[0].minRange||0,this.setInputExtremes("min",d.dataMin,Math.min(d.dataMax,this.getInputValue("max"))-b),this.setInputExtremes("max",Math.max(d.dataMin,this.getInputValue("min"))+b,d.dataMax)),this.inputGroup)){var h=0;[this.minLabel,this.minDateBox,this.maxLabel,this.maxDateBox].forEach(function(b){if(b){var d=
-b.getBBox().width;d&&(b.attr({x:h}),h+=d+e.inputSpacing)}})}this.alignElements();this.rendered=!0}};f.prototype.renderButtons=function(){var d=this,g=this.buttons,b=this.options,m=y.lang,f=this.chart.renderer,k=q(b.buttonTheme),e=k&&k.states,n=k.width||28;delete k.width;delete k.states;this.buttonGroup=f.g("range-selector-buttons").add(this.group);var h=this.dropdown=I("select",void 0,{position:"absolute",width:"1px",height:"1px",padding:0,border:0,top:"-9999em",cursor:"pointer",opacity:.0001},this.div);
-p(h,"touchstart",function(){h.style.fontSize="16px"});[[G.isMS?"mouseover":"mouseenter"],[G.isMS?"mouseout":"mouseleave"],["change","click"]].forEach(function(b){var m=b[0],f=b[1];p(h,m,function(){var b=g[d.currentButtonIndex()];b&&a(b.element,f||m)})});this.zoomText=f.label(m&&m.rangeSelectorZoom||"",0).attr({padding:b.buttonTheme.padding,height:b.buttonTheme.height,paddingLeft:0,paddingRight:0}).add(this.buttonGroup);this.chart.styledMode||(this.zoomText.css(b.labelStyle),k["stroke-width"]=u(k["stroke-width"],
-0));I("option",{textContent:this.zoomText.textStr,disabled:!0},void 0,h);this.buttonOptions.forEach(function(b,a){I("option",{textContent:b.title||b.text},void 0,h);g[a]=f.button(b.text,0,0,function(g){var m=b.events&&b.events.click,f;m&&(f=m.call(b,g));!1!==f&&d.clickButton(a);d.isActive=!0},k,e&&e.hover,e&&e.select,e&&e.disabled).attr({"text-align":"center",width:n}).add(d.buttonGroup);b.title&&g[a].attr("title",b.title)})};f.prototype.alignElements=function(){var d=this,g=this.buttonGroup,b=this.buttons,
-a=this.chart,f=this.group,k=this.inputGroup,e=this.options,h=this.zoomText,n=a.options,r=n.exporting&&!1!==n.exporting.enabled&&n.navigation&&n.navigation.buttonOptions;n=e.buttonPosition;var q=e.inputPosition,C=e.verticalAlign,B=function(b,g){return r&&d.titleCollision(a)&&"top"===C&&"right"===g.align&&g.y-b.getBBox().height-12<(r.y||0)+(r.height||0)+a.spacing[0]?-40:0},l=a.plotLeft;if(f&&n&&q){var p=n.x-a.spacing[3];if(g){this.positionButtons();if(!this.initialButtonGroupWidth){var c=0;h&&(c+=h.getBBox().width+
-5);b.forEach(function(d,a){c+=d.width;a!==b.length-1&&(c+=e.buttonSpacing)});this.initialButtonGroupWidth=c}l-=a.spacing[3];this.updateButtonStates();h=B(g,n);this.alignButtonGroup(h);f.placed=g.placed=a.hasLoaded}g=0;k&&(g=B(k,q),"left"===q.align?p=l:"right"===q.align&&(p=-Math.max(a.axisOffset[1],-g)),k.align({y:q.y,width:k.getBBox().width,align:q.align,x:q.x+p-2},!0,a.spacingBox),k.placed=a.hasLoaded);this.handleCollision(g);f.align({verticalAlign:C},!0,a.spacingBox);k=f.alignAttr.translateY;g=
-f.getBBox().height+20;B=0;"bottom"===C&&(B=(B=a.legend&&a.legend.options)&&"bottom"===B.verticalAlign&&B.enabled&&!B.floating?a.legend.legendHeight+u(B.margin,10):0,g=g+B-20,B=k-g-(e.floating?0:e.y)-(a.titleOffset?a.titleOffset[2]:0)-10);if("top"===C)e.floating&&(B=0),a.titleOffset&&a.titleOffset[0]&&(B=a.titleOffset[0]),B+=a.margin[0]-a.spacing[0]||0;else if("middle"===C)if(q.y===n.y)B=k;else if(q.y||n.y)B=0>q.y||0>n.y?B-Math.min(q.y,n.y):k-g;f.translate(e.x,e.y+Math.floor(B));n=this.minInput;q=
-this.maxInput;k=this.dropdown;e.inputEnabled&&n&&q&&(n.style.marginTop=f.translateY+"px",q.style.marginTop=f.translateY+"px");k&&(k.style.marginTop=f.translateY+"px")}};f.prototype.alignButtonGroup=function(d,a){var b=this.chart,g=this.buttonGroup,f=this.options.buttonPosition,k=b.plotLeft-b.spacing[3],e=f.x-b.spacing[3];"right"===f.align?e+=d-k:"center"===f.align&&(e-=k/2);g&&g.align({y:f.y,width:u(a,this.initialButtonGroupWidth),align:f.align,x:e},!0,b.spacingBox)};f.prototype.positionButtons=function(){var d=
-this.buttons,a=this.chart,b=this.options,f=this.zoomText,k=a.hasLoaded?"animate":"attr",e=b.buttonPosition,n=a=a.plotLeft;f&&"hidden"!==f.visibility&&(f[k]({x:u(a+e.x,a)}),n+=e.x+f.getBBox().width+5);f=0;for(e=this.buttonOptions.length;f<e;++f)if("hidden"!==d[f].visibility)d[f][k]({x:n}),n+=d[f].width+b.buttonSpacing;else d[f][k]({x:a})};f.prototype.handleCollision=function(d){var a=this,b=this.chart,f=this.buttonGroup,k=this.inputGroup,e=this.options,n=e.buttonPosition,h=e.dropdown,u=e.inputPosition;
-e=function(){var b=0;a.buttons.forEach(function(d){d=d.getBBox();d.width>b&&(b=d.width)});return b};var q=function(b){if(k&&f){var a=k.alignAttr.translateX+k.alignOptions.x-d+k.getBBox().x+2,g=k.alignOptions.width,m=f.alignAttr.translateX+f.getBBox().x;return m+b>a&&a+g>m&&n.y<u.y+k.getBBox().height}return!1},r=function(){k&&f&&k.attr({translateX:k.alignAttr.translateX+(b.axisOffset[1]>=-d?0:-d),translateY:k.alignAttr.translateY+f.getBBox().height+10})};if(f){if("always"===h){this.collapseButtons(d);
-q(e())&&r();return}"never"===h&&this.expandButtons()}k&&f?u.align===n.align||q(this.initialButtonGroupWidth+20)?"responsive"===h?(this.collapseButtons(d),q(e())&&r()):r():"responsive"===h&&this.expandButtons():f&&"responsive"===h&&(this.initialButtonGroupWidth>b.plotWidth?this.collapseButtons(d):this.expandButtons())};f.prototype.collapseButtons=function(d){var a=this.buttons,b=this.buttonOptions,f=this.chart,k=this.dropdown,e=this.options,n=this.zoomText,h=f.userOptions.rangeSelector&&f.userOptions.rangeSelector.buttonTheme||
-{},q=function(b){return{text:b?""+b+" \u25be":"\u25be",width:"auto",paddingLeft:u(e.buttonTheme.paddingLeft,h.padding,8),paddingRight:u(e.buttonTheme.paddingRight,h.padding,8)}};n&&n.hide();var r=!1;b.forEach(function(b,d){d=a[d];2!==d.state?d.hide():(d.show(),d.attr(q(b.text)),r=!0)});r||(k&&(k.selectedIndex=0),a[0].show(),a[0].attr(q(this.zoomText&&this.zoomText.textStr)));b=e.buttonPosition.align;this.positionButtons();"right"!==b&&"center"!==b||this.alignButtonGroup(d,a[this.currentButtonIndex()].getBBox().width);
-this.showDropdown()};f.prototype.expandButtons=function(){var d=this.buttons,a=this.buttonOptions,b=this.options,f=this.zoomText;this.hideDropdown();f&&f.show();a.forEach(function(a,g){g=d[g];g.show();g.attr({text:a.text,width:b.buttonTheme.width||28,paddingLeft:u(b.buttonTheme.paddingLeft,"unset"),paddingRight:u(b.buttonTheme.paddingRight,"unset")});2>g.state&&g.setState(0)});this.positionButtons()};f.prototype.currentButtonIndex=function(){var d=this.dropdown;return d&&0<d.selectedIndex?d.selectedIndex-
-1:0};f.prototype.showDropdown=function(){var d=this.buttonGroup,a=this.buttons,b=this.chart,f=this.dropdown;if(d&&f){var k=d.translateX;d=d.translateY;a=a[this.currentButtonIndex()].getBBox();t(f,{left:b.plotLeft+k+"px",top:d+.5+"px",width:a.width+"px",height:a.height+"px"});this.hasVisibleDropdown=!0}};f.prototype.hideDropdown=function(){var d=this.dropdown;d&&(t(d,{top:"-9999em",width:"1px",height:"1px"}),this.hasVisibleDropdown=!1)};f.prototype.getHeight=function(){var d=this.options,a=this.group,
-b=d.y,f=d.buttonPosition.y,k=d.inputPosition.y;if(d.height)return d.height;this.alignElements();d=a?a.getBBox(!0).height+13+b:0;a=Math.min(k,f);if(0>k&&0>f||0<k&&0<f)d+=Math.abs(a);return d};f.prototype.titleCollision=function(d){return!(d.options.title.text||d.options.subtitle.text)};f.prototype.update=function(d){var a=this.chart;q(!0,a.options.rangeSelector,d);this.destroy();this.init(a);this.render()};f.prototype.destroy=function(){var d=this,a=d.minInput,b=d.maxInput;d.eventsToUnbind&&(d.eventsToUnbind.forEach(function(b){return b()}),
-d.eventsToUnbind=void 0);x(d.buttons);a&&(a.onfocus=a.onblur=a.onchange=null);b&&(b.onfocus=b.onblur=b.onchange=null);K(d,function(b,a){b&&"chart"!==a&&(b instanceof H?b.destroy():b instanceof window.HTMLElement&&h(b));b!==f.prototype[a]&&(d[a]=null)},this)};return f}();r(z.prototype,{defaultButtons:[{type:"month",count:1,text:"1m",title:"View 1 month"},{type:"month",count:3,text:"3m",title:"View 3 months"},{type:"month",count:6,text:"6m",title:"View 6 months"},{type:"ytd",text:"YTD",title:"View year to date"},
-{type:"year",count:1,text:"1y",title:"View 1 year"},{type:"all",text:"All",title:"View all"}],inputTypeFormats:{"datetime-local":"%Y-%m-%dT%H:%M:%S",date:"%Y-%m-%d",time:"%H:%M:%S"}});"";return z});J(c,"Series/XRange/XRangeSeriesDefaults.js",[c["Core/Utilities.js"]],function(c){var z=c.correctFloat,D=c.isNumber,w=c.isObject;"";return{colorByPoint:!0,dataLabels:{formatter:function(){var c=this.point.partialFill;w(c)&&(c=c.amount);if(D(c)&&0<c)return z(100*c)+"%"},inside:!0,verticalAlign:"middle"},
-tooltip:{headerFormat:'<span style="font-size: 10px">{point.x} - {point.x2}</span><br/>',pointFormat:'<span style="color:{point.color}">\u25cf</span> {series.name}: <b>{point.yCategory}</b><br/>'},borderRadius:3,pointRange:0}});J(c,"Series/XRange/XRangePoint.js",[c["Core/Series/SeriesRegistry.js"],c["Core/Utilities.js"]],function(c,z){var D=this&&this.__extends||function(){var c=function(v,l){c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,c){l.__proto__=c}||function(l,c){for(var p in c)c.hasOwnProperty(p)&&
-(l[p]=c[p])};return c(v,l)};return function(v,l){function y(){this.constructor=v}c(v,l);v.prototype=null===l?Object.create(l):(y.prototype=l.prototype,new y)}}(),w=c.series.prototype.pointClass.prototype;z=z.extend;c=function(c){function v(){var l=null!==c&&c.apply(this,arguments)||this;l.options=void 0;l.series=void 0;return l}D(v,c);v.getColorByCategory=function(l,c){var p=l.options.colors||l.chart.options.colors;l=c.y%(p?p.length:l.chart.options.chart.colorCount);return{colorIndex:l,color:p&&p[l]}};
-v.prototype.resolveColor=function(){var l=this.series;if(l.options.colorByPoint&&!this.options.color){var c=v.getColorByCategory(l,this);l.chart.styledMode||(this.color=c.color);this.options.colorIndex||(this.colorIndex=c.colorIndex)}else this.color||(this.color=l.color)};v.prototype.init=function(){w.init.apply(this,arguments);this.y||(this.y=0);return this};v.prototype.setState=function(){w.setState.apply(this,arguments);this.series.drawPoint(this,this.series.getAnimationVerb())};v.prototype.getLabelConfig=
-function(){var c=w.getLabelConfig.call(this),y=this.series.yAxis.categories;c.x2=this.x2;c.yCategory=this.yCategory=y&&y[this.y];return c};v.prototype.isValid=function(){return"number"===typeof this.x&&"number"===typeof this.x2};return v}(c.seriesTypes.column.prototype.pointClass);z(c.prototype,{ttBelow:!1,tooltipDateKeys:["x","x2"]});"";return c});J(c,"Series/XRange/XRangeSeries.js",[c["Core/Globals.js"],c["Core/Color/Color.js"],c["Core/Series/SeriesRegistry.js"],c["Core/Utilities.js"],c["Series/XRange/XRangeSeriesDefaults.js"],
-c["Series/XRange/XRangePoint.js"]],function(c,z,G,w,H,v){function l(){if(this.isXAxis){var a=K(this.dataMax,-Number.MAX_VALUE);for(var e=0,k=this.series;e<k.length;e++){var f=k[e];if(f.x2Data){var d=0;for(f=f.x2Data;d<f.length;d++){var g=f[d];if(g&&g>a){a=g;var b=!0}}}}b&&(this.dataMax=a)}}var y=this&&this.__extends||function(){var a=function(e,k){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,d){a.__proto__=d}||function(a,d){for(var f in d)d.hasOwnProperty(f)&&(a[f]=d[f])};return a(e,
-k)};return function(e,k){function f(){this.constructor=e}a(e,k);e.prototype=null===k?Object.create(k):(f.prototype=k.prototype,new f)}}();c=c.noop;var p=z.parse,I=G.series.prototype,t=G.seriesTypes.column,A=w.addEvent,x=w.clamp,h=w.defined;z=w.extend;var r=w.find,a=w.isNumber,e=w.isObject,q=w.merge,K=w.pick,D=[];w=function(u){function n(){var a=null!==u&&u.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}y(n,u);n.compose=function(a){-1===D.indexOf(a)&&(D.push(a),
-A(a,"afterGetSeriesExtremes",l))};n.prototype.init=function(){u.prototype.init.apply(this,arguments);this.options.stacking=void 0};n.prototype.getColumnMetrics=function(){var a=this,f=function(){for(var d=0,b=a.chart.series;d<b.length;d++){var f=b[d],k=f.xAxis;f.xAxis=f.yAxis;f.yAxis=k}};f();var d=u.prototype.getColumnMetrics.call(this);f();return d};n.prototype.cropData=function(a,f,d,g){f=I.cropData.call(this,this.x2Data,f,d,g);f.xData=a.slice(f.start,f.end);return f};n.prototype.findPointIndex=
-function(k){var f=this.cropStart,d=this.points,g=k.id;if(g)var b=(b=r(d,function(b){return b.id===g}))?b.index:void 0;"undefined"===typeof b&&(b=(b=r(d,function(b){return b.x===k.x&&b.x2===k.x2&&!b.touched}))?b.index:void 0);this.cropped&&a(b)&&a(f)&&b>=f&&(b-=f);return b};n.prototype.alignDataLabel=function(a){var f=a.plotX;a.plotX=K(a.dlBox&&a.dlBox.centerX,a.plotX);u.prototype.alignDataLabel.apply(this,arguments);a.plotX=f};n.prototype.translatePoint=function(k){var f=this.xAxis,d=this.yAxis,g=
-this.columnMetrics,b=this.options,m=b.minPointLength||0,n=(k.shapeArgs&&k.shapeArgs.width||0)/2,u=this.pointXOffset=g.offset,c=K(k.x2,k.x+(k.len||0)),r=k.plotX,l=f.translate(c,0,0,0,1);c=Math.abs(l-r);var p=this.chart.inverted,t=K(b.borderWidth,1)%2/2,C=g.offset,B=Math.round(g.width);m&&(m-=c,0>m&&(m=0),r-=m/2,l+=m/2);r=Math.max(r,-10);l=x(l,-10,f.len+10);h(k.options.pointWidth)&&(C-=(Math.ceil(k.options.pointWidth)-B)/2,B=Math.ceil(k.options.pointWidth));b.pointPlacement&&a(k.plotY)&&d.categories&&
-(k.plotY=d.translate(k.y,0,1,0,1,b.pointPlacement));b=Math.floor(Math.min(r,l))+t;b={x:b,y:Math.floor(k.plotY+C)+t,width:Math.floor(Math.max(r,l))+t-b,height:B,r:this.options.borderRadius};k.shapeArgs=b;p?k.tooltipPos[1]+=u+n:k.tooltipPos[0]-=n+u-b.width/2;n=b.x;u=n+b.width;0>n||u>f.len?(n=x(n,0,f.len),u=x(u,0,f.len),l=u-n,k.dlBox=q(b,{x:n,width:u-n,centerX:l?l/2:null})):k.dlBox=null;n=k.tooltipPos;u=p?1:0;l=p?0:1;g=this.columnMetrics?this.columnMetrics.offset:-g.width/2;n[u]=p?n[u]+b.width/2:n[u]+
-(f.reversed?-1:0)*b.width;n[l]=x(n[l]+(p?-1:1)*g,0,d.len-1);if(d=k.partialFill)e(d)&&(d=d.amount),a(d)||(d=0),k.partShapeArgs=q(b,{r:this.options.borderRadius}),r=Math.max(Math.round(c*d+k.plotX-r),0),k.clipRectArgs={x:f.reversed?b.x+c-r:b.x,y:b.y,width:r,height:b.height}};n.prototype.translate=function(){u.prototype.translate.apply(this,arguments);for(var a=0,f=this.points;a<f.length;a++)this.translatePoint(f[a])};n.prototype.drawPoint=function(a,f){var d=this.options,g=this.chart.renderer,b=a.shapeType,
-m=a.shapeArgs,k=a.partShapeArgs,n=a.clipRectArgs,h=d.stacking&&!d.borderRadius,u=a.state,c=d.states[u||"normal"]||{},r="undefined"===typeof u?"attr":f;u=this.pointAttribs(a,u);c=K(this.chart.options.chart.animation,c.animation);var l=a.graphic,C=a.partialFill;if(a.isNull||!1===a.visible)l&&(a.graphic=l.destroy());else{if(l)l.rect[f](m);else a.graphic=l=g.g("point").addClass(a.getClassName()).add(a.group||this.group),l.rect=g[b](q(m)).addClass(a.getClassName()).addClass("highcharts-partfill-original").add(l);
-k&&(l.partRect?(l.partRect[f](q(k)),l.partialClipRect[f](q(n))):(l.partialClipRect=g.clipRect(n.x,n.y,n.width,n.height),l.partRect=g[b](k).addClass("highcharts-partfill-overlay").add(l).clip(l.partialClipRect)));this.chart.styledMode||(l.rect[f](u,c).shadow(d.shadow,null,h),k&&(e(C)||(C={}),e(d.partialFill)&&(C=q(d.partialFill,C)),a=C.fill||p(u.fill).brighten(-.3).get()||p(a.color||this.color).brighten(-.3).get(),u.fill=a,l.partRect[r](u,c).shadow(d.shadow,null,h)))}};n.prototype.drawPoints=function(){for(var a=
-this.getAnimationVerb(),f=0,d=this.points;f<d.length;f++)this.drawPoint(d[f],a)};n.prototype.getAnimationVerb=function(){return this.chart.pointCount<(this.options.animationLimit||250)?"animate":"attr"};n.prototype.isPointInside=function(a){var f=a.shapeArgs,d=a.plotX,g=a.plotY;return f?"undefined"!==typeof d&&"undefined"!==typeof g&&0<=g&&g<=this.yAxis.len&&0<=(f.x||0)+(f.width||0)&&d<=this.xAxis.len:u.prototype.isPointInside.apply(this,arguments)};n.defaultOptions=q(t.defaultOptions,H);return n}(t);
-z(w.prototype,{pointClass:v,cropShoulder:1,getExtremesFromAll:!0,parallelArrays:["x","x2","y"],requireSorting:!1,type:"xrange",animate:I.animate,autoIncrement:c,buildKDTree:c});G.registerSeriesType("xrange",w);return w});J(c,"Series/Gantt/GanttPoint.js",[c["Core/Series/SeriesRegistry.js"],c["Core/Utilities.js"]],function(c,z){var D=this&&this.__extends||function(){var c=function(v,l){c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,l){c.__proto__=l}||function(c,l){for(var p in l)l.hasOwnProperty(p)&&
-(c[p]=l[p])};return c(v,l)};return function(v,l){function y(){this.constructor=v}c(v,l);v.prototype=null===l?Object.create(l):(y.prototype=l.prototype,new y)}}(),w=z.pick;return function(c){function v(){var l=null!==c&&c.apply(this,arguments)||this;l.options=void 0;l.series=void 0;return l}D(v,c);v.setGanttPointAliases=function(c){function l(l,v){"undefined"!==typeof v&&(c[l]=v)}l("x",w(c.start,c.x));l("x2",w(c.end,c.x2));l("partialFill",w(c.completed,c.partialFill))};v.prototype.applyOptions=function(l,
-y){l=c.prototype.applyOptions.call(this,l,y);v.setGanttPointAliases(l);return l};v.prototype.isValid=function(){return("number"===typeof this.start||"number"===typeof this.x)&&("number"===typeof this.end||"number"===typeof this.x2||this.milestone)};return v}(c.seriesTypes.xrange.prototype.pointClass)});J(c,"Core/Axis/BrokenAxis.js",[c["Core/Axis/Stacking/StackItem.js"],c["Core/Utilities.js"]],function(c,z){var D=z.addEvent,w=z.find,H=z.fireEvent,v=z.isArray,l=z.isNumber,y=z.pick,p;(function(p){function t(){"undefined"!==
-typeof this.brokenAxis&&this.brokenAxis.setBreaks(this.options.breaks,!1)}function A(){this.brokenAxis&&this.brokenAxis.hasBreaks&&(this.options.ordinal=!1)}function x(){var a=this.brokenAxis;if(a&&a.hasBreaks){for(var e=this.tickPositions,k=this.tickPositions.info,f=[],d=0;d<e.length;d++)a.isInAnyBreak(e[d])||f.push(e[d]);this.tickPositions=f;this.tickPositions.info=k}}function h(){this.brokenAxis||(this.brokenAxis=new z(this))}function r(){var a=this.options.connectNulls,e=this.points,k=this.xAxis,
-f=this.yAxis;if(this.isDirty)for(var d=e.length;d--;){var g=e[d],b=!(null===g.y&&!1===a)&&(k&&k.brokenAxis&&k.brokenAxis.isInAnyBreak(g.x,!0)||f&&f.brokenAxis&&f.brokenAxis.isInAnyBreak(g.y,!0));g.visible=b?!1:!1!==g.options.visible}}function a(){this.drawBreaks(this.xAxis,["x"]);this.drawBreaks(this.yAxis,y(this.pointArrayMap,["y"]))}function e(a,e){var k=this,f=k.points,d,g,b,m;if(a&&a.brokenAxis&&a.brokenAxis.hasBreaks){var n=a.brokenAxis;e.forEach(function(e){d=n&&n.breakArray||[];g=a.isXAxis?
-a.min:y(k.options.threshold,a.min);f.forEach(function(f){m=y(f["stack"+e.toUpperCase()],f[e]);d.forEach(function(d){if(l(g)&&l(m)){b=!1;if(g<d.from&&m>d.to||g>d.from&&m<d.from)b="pointBreak";else if(g<d.from&&m>d.from&&m<d.to||g>d.from&&m>d.to&&m<d.from)b="pointInBreak";b&&H(a,b,{point:f,brk:d})}})})})}}function q(){var a=this.currentDataGrouping,e=a&&a.gapSize;a=this.points.slice();var k=this.yAxis,f=this.options.gapSize,d=a.length-1,g;if(f&&0<d)for("value"!==this.options.gapUnit&&(f*=this.basePointRange),
-e&&e>f&&e>=this.basePointRange&&(f=e),g=void 0;d--;)g&&!1!==g.visible||(g=a[d+1]),e=a[d],!1!==g.visible&&!1!==e.visible&&(g.x-e.x>f&&(g=(e.x+g.x)/2,a.splice(d+1,0,{isNull:!0,x:g}),k.stacking&&this.options.stacking&&(g=k.stacking.stacks[this.stackKey][g]=new c(k,k.options.stackLabels,!1,g,this.stack),g.total=0)),g=e);return this.getGraphPath(a)}var I=[];p.compose=function(c,n){-1===I.indexOf(c)&&(I.push(c),c.keepProps.push("brokenAxis"),D(c,"init",h),D(c,"afterInit",t),D(c,"afterSetTickPositions",
-x),D(c,"afterSetOptions",A));if(-1===I.indexOf(n)){I.push(n);var k=n.prototype;k.drawBreaks=e;k.gappedPath=q;D(n,"afterGeneratePoints",r);D(n,"afterRender",a)}return c};var z=function(){function a(a){this.hasBreaks=!1;this.axis=a}a.isInBreak=function(a,e){var f=a.repeat||Infinity,d=a.from,g=a.to-a.from;e=e>=d?(e-d)%f:f-(d-e)%f;return a.inclusive?e<=g:e<g&&0!==e};a.lin2Val=function(e){var k=this.brokenAxis;k=k&&k.breakArray;if(!k||!l(e))return e;var f;for(f=0;f<k.length;f++){var d=k[f];if(d.from>=
-e)break;else d.to<e?e+=d.len:a.isInBreak(d,e)&&(e+=d.len)}return e};a.val2Lin=function(e){var k=this.brokenAxis;k=k&&k.breakArray;if(!k||!l(e))return e;var f=e,d;for(d=0;d<k.length;d++){var g=k[d];if(g.to<=e)f-=g.len;else if(g.from>=e)break;else if(a.isInBreak(g,e)){f-=e-g.from;break}}return f};a.prototype.findBreakAt=function(a,e){return w(e,function(f){return f.from<a&&a<f.to})};a.prototype.isInAnyBreak=function(e,k){var f=this.axis,d=f.options.breaks||[],g=d.length,b;if(g&&l(e)){for(;g--;)if(a.isInBreak(d[g],
-e)){var m=!0;b||(b=y(d[g].showPoints,!f.isXAxis))}var h=m&&k?m&&!b:m}return h};a.prototype.setBreaks=function(e,k){var f=this,d=f.axis,g=v(e)&&!!e.length;d.isDirty=f.hasBreaks!==g;f.hasBreaks=g;d.options.breaks=d.userOptions.breaks=e;d.forceRedraw=!0;d.series.forEach(function(b){b.isDirty=!0});g||d.val2lin!==a.val2Lin||(delete d.val2lin,delete d.lin2val);g&&(d.userOptions.ordinal=!1,d.lin2val=a.lin2Val,d.val2lin=a.val2Lin,d.setExtremes=function(b,a,e,g,k){if(f.hasBreaks){for(var m=this.options.breaks||
-[],h;h=f.findBreakAt(b,m);)b=h.to;for(;h=f.findBreakAt(a,m);)a=h.from;a<b&&(a=b)}d.constructor.prototype.setExtremes.call(this,b,a,e,g,k)},d.setAxisTranslation=function(){d.constructor.prototype.setAxisTranslation.call(this);f.unitLength=void 0;if(f.hasBreaks){var b=d.options.breaks||[],e=[],g=[],k=y(d.pointRangePadding,0),h=0,c,n=d.userMin||d.min,r=d.userMax||d.max,q;b.forEach(function(b){c=b.repeat||Infinity;l(n)&&l(r)&&(a.isInBreak(b,n)&&(n+=b.to%c-n%c),a.isInBreak(b,r)&&(r-=r%c-b.from%c))});b.forEach(function(b){B=
-b.from;c=b.repeat||Infinity;if(l(n)&&l(r)){for(;B-c>n;)B-=c;for(;B<n;)B+=c;for(q=B;q<r;q+=c)e.push({value:q,move:"in"}),e.push({value:q+b.to-b.from,move:"out",size:b.breakSize})}});e.sort(function(b,a){return b.value===a.value?("in"===b.move?0:1)-("in"===a.move?0:1):b.value-a.value});var C=0;var B=n;e.forEach(function(b){C+="in"===b.move?1:-1;1===C&&"in"===b.move&&(B=b.value);0===C&&l(B)&&(g.push({from:B,to:b.value,len:b.value-B-(b.size||0)}),h+=b.value-B-(b.size||0))});f.breakArray=g;l(n)&&l(r)&&
-l(d.min)&&(f.unitLength=r-n-h+k,H(d,"afterBreaks"),d.staticScale?d.transA=d.staticScale:f.unitLength&&(d.transA*=(r-d.min+k)/f.unitLength),k&&(d.minPixelPadding=d.transA*(d.minPointOffset||0)),d.min=n,d.max=r)}});y(k,!0)&&d.chart.redraw()};return a}();p.Additions=z})(p||(p={}));return p});J(c,"Core/Axis/GridAxis.js",[c["Core/Axis/Axis.js"],c["Core/Axis/AxisDefaults.js"],c["Core/Globals.js"],c["Core/Utilities.js"]],function(c,z,G,w){function D(b,a){var d={width:0,height:0};a.forEach(function(a){a=
-b[a];if(w.isObject(a,!0)){var f=w.isObject(a.label,!0)?a.label:{};a=f.getBBox?f.getBBox().height:0;f.textStr&&!m(f.textPxLength)&&(f.textPxLength=f.getBBox().width);var e=m(f.textPxLength)?Math.round(f.textPxLength):0;f.textStr&&(e=Math.round(f.getBBox().width));d.height=Math.max(a,d.height);d.width=Math.max(e,d.width)}});"treegrid"===this.options.type&&this.treeGrid&&this.treeGrid.mapOfPosToGridNode&&(d.width+=this.options.labels.indentation*((this.treeGrid.mapOfPosToGridNode[-1].height||0)-1));
-return d}function v(){var b=this.grid;(b&&b.columns||[]).forEach(function(b){b.getOffset()})}function l(b){if(!0===(this.options.grid||{}).enabled){var a=this.axisTitle,d=this.height,f=this.horiz,e=this.left,g=this.offset,k=this.opposite,m=this.options,h=this.top,c=this.width,n=this.tickSize(),l=a&&a.getBBox().width,r=m.title.x,q=m.title.y,C=F(m.title.margin,f?5:10);a=this.chart.renderer.fontMetrics(m.title.style.fontSize,a).f;n=(f?h+d:e)+(f?1:-1)*(k?-1:1)*(n?n[0]/2:0)+(this.side===M.bottom?a:0);
-b.titlePosition.x=f?e-(l||0)/2-C+r:n+(k?c:0)+g+r;b.titlePosition.y=f?n-(k?d:0)+(k?a:-a)/2+g+q:h-C+q}}function y(){var b=this.chart,a=this.options.grid;a=void 0===a?{}:a;var f=this.userOptions;if(a.enabled){var e=this.options;e.labels.align=F(e.labels.align,"center");this.categories||(e.showLastLabel=!1);this.labelRotation=0;e.labels.rotation=0}if(a.columns){e=this.grid.columns=[];for(var g=this.grid.columnIndex=0;++g<a.columns.length;){var k=E(f,a.columns[a.columns.length-g-1],{linkedTo:0,type:"category",
-scrollbar:{enabled:!1}});delete k.grid.columns;k=new c(this.chart,k);k.grid.isColumn=!0;k.grid.columnIndex=g;d(b.axes,k);d(b[this.coll],k);e.push(k)}}}function p(){var b=this.grid,a=this.options;if(!0===(a.grid||{}).enabled){var d=this.min||0,f=this.max||0;this.maxLabelDimensions=this.getMaxLabelDimensions(this.ticks,this.tickPositions);this.rightWall&&this.rightWall.destroy();if(this.grid&&this.grid.isOuterAxis()&&this.axisLine){var e=a.lineWidth;if(e){e=this.getLinePath(e);var g=e[0],k=e[1],m=((this.tickSize("tick")||
-[1])[0]-1)*(this.side===M.top||this.side===M.left?-1:1);"M"===g[0]&&"L"===k[0]&&(this.horiz?(g[2]+=m,k[2]+=m):(g[1]+=m,k[1]+=m));!this.horiz&&this.chart.marginRight&&(g=[g,["L",this.left,g[2]||0]],m=["L",this.chart.chartWidth-this.chart.marginRight,this.toPixels(f+this.tickmarkOffset)],k=[["M",k[1]||0,this.toPixels(f+this.tickmarkOffset)],m],this.grid.upperBorder||0===d%1||(this.grid.upperBorder=this.grid.renderBorder(g)),this.grid.upperBorder&&(this.grid.upperBorder.attr({stroke:a.lineColor,"stroke-width":a.lineWidth}),
-this.grid.upperBorder.animate({d:g})),this.grid.lowerBorder||0===f%1||(this.grid.lowerBorder=this.grid.renderBorder(k)),this.grid.lowerBorder&&(this.grid.lowerBorder.attr({stroke:a.lineColor,"stroke-width":a.lineWidth}),this.grid.lowerBorder.animate({d:k})));this.grid.axisLineExtra?(this.grid.axisLineExtra.attr({stroke:a.lineColor,"stroke-width":a.lineWidth}),this.grid.axisLineExtra.animate({d:e})):this.grid.axisLineExtra=this.grid.renderBorder(e);this.axisLine[this.showAxis?"show":"hide"]()}}(b&&
-b.columns||[]).forEach(function(b){return b.render()});if(!this.horiz&&this.chart.hasRendered&&(this.scrollbar||this.linkedParent&&this.linkedParent.scrollbar)){b=this.tickmarkOffset;a=this.tickPositions[this.tickPositions.length-1];e=this.tickPositions[0];for(g=k=void 0;(k=this.hiddenLabels.pop())&&k.element;)k.show();for(;(g=this.hiddenMarks.pop())&&g.element;)g.show();(k=this.ticks[e].label)&&(d-e>b?this.hiddenLabels.push(k.hide()):k.show());(k=this.ticks[a].label)&&(a-f>b?this.hiddenLabels.push(k.hide()):
-k.show());(d=this.ticks[a].mark)&&a-f<b&&0<a-f&&this.ticks[a].isLast&&this.hiddenMarks.push(d.hide())}}}function I(){var b=this.tickPositions&&this.tickPositions.info,a=this.options,d=this.userOptions.labels||{};(a.grid||{}).enabled&&(this.horiz?(this.series.forEach(function(b){b.options.pointRange=0}),b&&a.dateTimeLabelFormats&&a.labels&&!f(d.align)&&(!1===a.dateTimeLabelFormats[b.unitName].range||1<b.count)&&(a.labels.align="left",f(d.x)||(a.labels.x=3))):"treegrid"!==this.options.type&&this.grid&&
-this.grid.columns&&(this.minPointOffset=this.tickInterval))}function t(b){var a=this.options;b=b.userOptions;var d=a&&w.isObject(a.grid,!0)?a.grid:{};if(!0===d.enabled){var e=E(!0,{className:"highcharts-grid-axis "+(b.className||""),dateTimeLabelFormats:{hour:{list:["%H:%M","%H"]},day:{list:["%A, %e. %B","%a, %e. %b","%E"]},week:{list:["Week %W","W%W"]},month:{list:["%B","%b","%o"]}},grid:{borderWidth:1},labels:{padding:2,style:{fontSize:"13px"}},margin:0,title:{text:null,reserveSpace:!1,rotation:0},
-units:[["millisecond",[1,10,100]],["second",[1,10]],["minute",[1,5,15]],["hour",[1,6]],["day",[1]],["week",[1]],["month",[1]],["year",null]]},b);"xAxis"===this.coll&&(f(b.linkedTo)&&!f(b.tickPixelInterval)&&(e.tickPixelInterval=350),f(b.tickPixelInterval)||!f(b.linkedTo)||f(b.tickPositioner)||f(b.tickInterval)||(e.tickPositioner=function(b,a){var d=this.linkedParent&&this.linkedParent.tickPositions&&this.linkedParent.tickPositions.info;if(d){for(var f=e.units||[],g=void 0,k=1,h="year",c=0;c<f.length;c++){var n=
-f[c];if(n&&n[0]===d.unitName){g=c;break}}(f=m(g)&&f[g+1])?(h=f[0]||"year",k=(k=f[1])&&k[0]||1):"year"===d.unitName&&(k=10*d.count);d=N[h];this.tickInterval=d*k;return this.chart.time.getTimeTicks({unitRange:d,count:k,unitName:h},b,a,this.options.startOfWeek)}}));E(!0,this.options,e);this.horiz&&(a.minPadding=F(b.minPadding,0),a.maxPadding=F(b.maxPadding,0));m(a.grid.borderWidth)&&(a.tickWidth=a.lineWidth=d.borderWidth)}}function A(b){b=(b=b.userOptions)&&b.grid||{};var a=b.columns;b.enabled&&a&&E(!0,
-this.options,a[a.length-1])}function x(){(this.grid.columns||[]).forEach(function(b){return b.setScale()})}function h(a){var d=z.defaultLeftAxisOptions,f=this.horiz,e=this.maxLabelDimensions,g=this.options.grid;g=void 0===g?{}:g;g.enabled&&e&&(d=2*Math.abs(d.labels.x),f=f?g.cellHeight||d+e.height:d+e.width,b(a.tickSize)?a.tickSize[0]=f:a.tickSize=[f,0])}function r(){this.axes.forEach(function(b){(b.grid&&b.grid.columns||[]).forEach(function(b){b.setAxisSize();b.setAxisTranslation()})})}function a(b){var a=
-this.grid;(a.columns||[]).forEach(function(a){return a.destroy(b.keepEvents)});a.columns=void 0}function e(b){b=b.userOptions||{};var a=b.grid||{};a.enabled&&f(a.borderColor)&&(b.tickColor=b.lineColor=a.borderColor);this.grid||(this.grid=new Q(this));this.hiddenLabels=[];this.hiddenMarks=[]}function q(b){var a=this.label,d=this.axis,f=d.reversed,e=d.chart,g=d.options.grid||{},k=d.options.labels,h=k.align,c=M[d.side],n=b.tickmarkOffset,r=d.tickPositions,l=this.pos-n;r=m(r[b.index+1])?r[b.index+1]-
-n:(d.max||0)+n;var q=d.tickSize("tick");n=q?q[0]:0;q=q?q[1]/2:0;if(!0===g.enabled){if("top"===c){g=d.top+d.offset;var u=g-n}else"bottom"===c?(u=e.chartHeight-d.bottom+d.offset,g=u+n):(g=d.top+d.len-(d.translate(f?r:l)||0),u=d.top+d.len-(d.translate(f?l:r)||0));"right"===c?(c=e.chartWidth-d.right+d.offset,f=c+n):"left"===c?(f=d.left+d.offset,c=f-n):(c=Math.round(d.left+(d.translate(f?r:l)||0))-q,f=Math.min(Math.round(d.left+(d.translate(f?l:r)||0))-q,d.left+d.len));this.slotWidth=f-c;b.pos.x="left"===
-h?c:"right"===h?f:c+(f-c)/2;b.pos.y=u+(g-u)/2;e=e.renderer.fontMetrics(k.style.fontSize,a&&a.element);a=a?a.getBBox().height:0;k.useHTML?b.pos.y+=e.b+-(a/2):(a=Math.round(a/e.h),b.pos.y+=(e.b-(e.h-e.f))/2+-((a-1)*e.h/2));b.pos.x+=d.horiz&&k.x||0}}function K(b){var a=b.axis,d=b.value;if(a.options.grid&&a.options.grid.enabled){var f=a.tickPositions,e=(a.linkedParent||a).series[0],k=d===f[0];f=d===f[f.length-1];var m=e&&g(e.options.data,function(b){return b[a.isXAxis?"x":"y"]===d}),h=void 0;m&&e.is("gantt")&&
-(h=E(m),G.seriesTypes.gantt.prototype.pointClass.setGanttPointAliases(h));b.isFirst=k;b.isLast=f;b.point=h}}function L(){var b=this.options,a=this.categories,d=this.tickPositions,f=d[0],e=d[d.length-1],g=this.linkedParent&&this.linkedParent.min||this.min,k=this.linkedParent&&this.linkedParent.max||this.max,m=this.tickInterval;!0!==(b.grid||{}).enabled||a||!this.horiz&&!this.isLinked||(f<g&&f+m>g&&!b.startOnTick&&(d[0]=g),e>k&&e-m<k&&!b.endOnTick&&(d[d.length-1]=k))}function u(b){var a=this.options.grid;
-return!0===(void 0===a?{}:a).enabled&&this.categories?this.tickInterval:b.apply(this,Array.prototype.slice.call(arguments,1))}var n=G.dateFormats,k=w.addEvent,f=w.defined,d=w.erase,g=w.find,b=w.isArray,m=w.isNumber,E=w.merge,F=w.pick,N=w.timeUnits,P=w.wrap,M;(function(b){b[b.top=0]="top";b[b.right=1]="right";b[b.bottom=2]="bottom";b[b.left=3]="left"})(M||(M={}));var O=[],Q=function(){function b(b){this.axis=b}b.prototype.isOuterAxis=function(){var b=this.axis,a=b.grid.columnIndex,d=b.linkedParent&&
-b.linkedParent.grid.columns||b.grid.columns,f=a?b.linkedParent:b,e=-1,g=0;(b.chart[b.coll]||[]).forEach(function(a,d){a.side!==b.side||a.options.isInternal||(g=d,a===f&&(e=d))});return g===e&&(m(a)?d.length===a:!0)};b.prototype.renderBorder=function(b){var a=this.axis,d=a.chart.renderer,f=a.options;b=d.path(b).addClass("highcharts-axis-line").add(a.axisBorder);d.styledMode||b.attr({stroke:f.lineColor,"stroke-width":f.lineWidth,zIndex:7});return b};return b}();n.E=function(b){return this.dateFormat("%a",
-b,!0).charAt(0)};n.W=function(b){var a=this,d=new this.Date(b);["Hours","Milliseconds","Minutes","Seconds"].forEach(function(b){a.set(b,d,0)});var f=(this.get("Day",d)+6)%7;b=new this.Date(d.valueOf());this.set("Date",b,this.get("Date",d)-f+3);f=new this.Date(this.get("FullYear",b),0,1);4!==this.get("Day",f)&&(this.set("Month",d,0),this.set("Date",d,1+(11-this.get("Day",f))%7));return(1+Math.floor((b.valueOf()-f.valueOf())/6048E5)).toString()};"";return{compose:function(b,d,f){-1===O.indexOf(b)&&
-(O.push(b),b.keepProps.push("grid"),b.prototype.getMaxLabelDimensions=D,P(b.prototype,"unsquish",u),k(b,"init",e),k(b,"afterGetOffset",v),k(b,"afterGetTitlePosition",l),k(b,"afterInit",y),k(b,"afterRender",p),k(b,"afterSetAxisTranslation",I),k(b,"afterSetOptions",t),k(b,"afterSetOptions",A),k(b,"afterSetScale",x),k(b,"afterTickSize",h),k(b,"trimTicks",L),k(b,"destroy",a));-1===O.indexOf(d)&&k(d,"afterSetChartSize",r);-1===O.indexOf(f)&&(k(f,"afterGetLabelPosition",q),k(f,"labelFormat",K));return b}}});
-J(c,"Gantt/Tree.js",[c["Core/Utilities.js"]],function(c){var z=c.extend,D=c.isNumber,w=c.pick,H=function(c,v){var l=c.reduce(function(c,l){var p=w(l.parent,"");"undefined"===typeof c[p]&&(c[p]=[]);c[p].push(l);return c},{});Object.keys(l).forEach(function(c,p){var t=l[c];""!==c&&-1===v.indexOf(c)&&(t.forEach(function(c){p[""].push(c)}),delete p[c])});return l},v=function(c,y,p,I,t,A){var l=0,h=0,r=A&&A.after,a=A&&A.before;y={data:I,depth:p-1,id:c,level:p,parent:y};var e,q;"function"===typeof a&&a(y,
-A);a=(t[c]||[]).map(function(a){var r=v(a.id,c,p+1,a,t,A),u=a.start;a=!0===a.milestone?u:a.end;e=!D(e)||u<e?u:e;q=!D(q)||a>q?a:q;l=l+1+r.descendants;h=Math.max(r.height+1,h);return r});I&&(I.start=w(I.start,e),I.end=w(I.end,q));z(y,{children:a,descendants:l,height:h});"function"===typeof r&&r(y,A);return y};return{getListOfParents:H,getNode:v,getTree:function(c,y){var l=c.map(function(c){return c.id});c=H(c,l);return v("",null,1,null,c,y)}}});J(c,"Core/Axis/TreeGrid/TreeGridTick.js",[c["Core/Utilities.js"]],
-function(c){function z(){this.treeGrid||(this.treeGrid=new A(this))}function D(c,h){c=c.treeGrid;var r=!c.labelIcon,a=h.renderer,e=h.xy,l=h.options,t=l.width||0,x=l.height||0,u=e.x-t/2-(l.padding||0);e=e.y-x/2;var n=h.collapsed?90:180,k=h.show&&y(e),f=c.labelIcon;f||(c.labelIcon=f=a.path(a.symbols[l.type](l.x||0,l.y||0,t,x)).addClass("highcharts-label-icon").add(h.group));f[k?"show":"hide"]();a.styledMode||f.attr({cursor:"pointer",fill:p(h.color,"#666666"),"stroke-width":1,stroke:l.lineColor,strokeWidth:l.lineWidth||
-0});f[r?"attr":"animate"]({translateX:u,translateY:e,rotation:n})}function w(c,h,r,a,e,q,t,A,u){var n=p(this.options&&this.options.labels,q);q=this.pos;var k=this.axis,f="treegrid"===k.options.type;c=c.apply(this,[h,r,a,e,n,t,A,u]);f&&(h=n&&l(n.symbol,!0)?n.symbol:{},n=n&&y(n.indentation)?n.indentation:0,q=(q=(k=k.treeGrid.mapOfPosToGridNode)&&k[q])&&q.depth||1,c.x+=(h.width||0)+2*(h.padding||0)+(q-1)*n);return c}function H(c){var h=this,r=h.pos,a=h.axis,e=h.label,q=a.treeGrid.mapOfPosToGridNode,
-t=a.options,x=p(h.options&&h.options.labels,t&&t.labels),u=x&&l(x.symbol,!0)?x.symbol:{},n=(q=q&&q[r])&&q.depth;t="treegrid"===t.type;var k=-1<a.tickPositions.indexOf(r);r=a.chart.styledMode;t&&q&&e&&e.element&&e.addClass("highcharts-treegrid-node-level-"+n);c.apply(h,Array.prototype.slice.call(arguments,1));t&&e&&e.element&&q&&q.descendants&&0<q.descendants&&(a=a.treeGrid.isCollapsed(q),D(h,{color:!r&&e.styles&&e.styles.color||"",collapsed:a,group:e.parentGroup,options:u,renderer:e.renderer,show:k,
-xy:e.xy}),u="highcharts-treegrid-node-"+(a?"expanded":"collapsed"),e.addClass("highcharts-treegrid-node-"+(a?"collapsed":"expanded")).removeClass(u),r||e.css({cursor:"pointer"}),[e,h.treeGrid.labelIcon].forEach(function(a){a&&!a.attachedTreeGridEvents&&(v(a.element,"mouseover",function(){e.addClass("highcharts-treegrid-node-active");e.renderer.styledMode||e.css({textDecoration:"underline"})}),v(a.element,"mouseout",function(){var a=l(x.style)?x.style:{};e.removeClass("highcharts-treegrid-node-active");
-e.renderer.styledMode||e.css({textDecoration:a.textDecoration})}),v(a.element,"click",function(){h.treeGrid.toggleCollapse()}),a.attachedTreeGridEvents=!0)}))}var v=c.addEvent,l=c.isObject,y=c.isNumber,p=c.pick,I=c.wrap,t=[],A=function(){function c(c){this.tick=c}c.compose=function(c){-1===t.indexOf(c)&&(t.push(c),v(c,"init",z),I(c.prototype,"getLabelPosition",w),I(c.prototype,"renderLabel",H),c.prototype.collapse=function(c){this.treeGrid.collapse(c)},c.prototype.expand=function(c){this.treeGrid.expand(c)},
-c.prototype.toggleCollapse=function(c){this.treeGrid.toggleCollapse(c)})};c.prototype.collapse=function(c){var h=this.tick,a=h.axis,e=a.brokenAxis;e&&a.treeGrid.mapOfPosToGridNode&&(h=a.treeGrid.collapse(a.treeGrid.mapOfPosToGridNode[h.pos]),e.setBreaks(h,p(c,!0)))};c.prototype.destroy=function(){this.labelIcon&&this.labelIcon.destroy()};c.prototype.expand=function(c){var h=this.tick,a=h.axis,e=a.brokenAxis;e&&a.treeGrid.mapOfPosToGridNode&&(h=a.treeGrid.expand(a.treeGrid.mapOfPosToGridNode[h.pos]),
-e.setBreaks(h,p(c,!0)))};c.prototype.toggleCollapse=function(c){var h=this.tick,a=h.axis,e=a.brokenAxis;e&&a.treeGrid.mapOfPosToGridNode&&(h=a.treeGrid.toggleCollapse(a.treeGrid.mapOfPosToGridNode[h.pos]),e.setBreaks(h,p(c,!0)))};return c}();return A});J(c,"Series/TreeUtilities.js",[c["Core/Color/Color.js"],c["Core/Utilities.js"]],function(c,z){function D(c,l){var t=l.before,x=l.idRoot,h=l.mapIdToNode[x],r=l.points[c.i],a=r&&r.options||{},e=[],q=0;c.levelDynamic=c.level-(!1!==l.levelIsConstant?0:
-h.level);c.name=p(r&&r.name,"");c.visible=x===c.id||!0===l.visible;"function"===typeof t&&(c=t(c,l));c.children.forEach(function(a,h){var r=w({},l);w(r,{index:h,siblings:c.children.length,visible:c.visible});a=D(a,r);e.push(a);a.visible&&(q+=a.val)});t=p(a.value,q);c.visible=0<=t&&(0<q||c.visible);c.children=e;c.childrenTotal=q;c.isLeaf=c.visible&&!q;c.val=t;return c}var w=z.extend,H=z.isArray,v=z.isNumber,l=z.isObject,y=z.merge,p=z.pick;return{getColor:function(l,t){var v=t.index,x=t.mapOptionsToLevel,
-h=t.parentColor,r=t.parentColorIndex,a=t.series,e=t.colors,q=t.siblings,y=a.points,w=a.chart.options.chart,u;if(l){y=y[l.i];l=x[l.level]||{};if(x=y&&l.colorByPoint){var n=y.index%(e?e.length:w.colorCount);var k=e&&e[n]}if(!a.chart.styledMode){e=y&&y.options.color;w=l&&l.color;if(u=h)u=(u=l&&l.colorVariation)&&"brightness"===u.key&&v&&q?c.parse(h).brighten(v/q*u.to).get():h;u=p(e,w,k,u,a.color)}var f=p(y&&y.options.colorIndex,l&&l.colorIndex,n,r,t.colorIndex)}return{color:u,colorIndex:f}},getLevelOptions:function(c){var t=
-{};if(l(c)){var A=v(c.from)?c.from:1;var x=c.levels;var h={};var r=l(c.defaults)?c.defaults:{};H(x)&&(h=x.reduce(function(a,e){if(l(e)&&v(e.level)){var c=y({},e);var h=p(c.levelIsConstant,r.levelIsConstant);delete c.levelIsConstant;delete c.level;e=e.level+(h?0:A-1);l(a[e])?y(!0,a[e],c):a[e]=c}return a},{}));x=v(c.to)?c.to:1;for(c=0;c<=x;c++)t[c]=y({},r,l(h[c])?h[c]:{})}return t},setTreeValues:D,updateRootId:function(c){if(l(c)){var t=l(c.options)?c.options:{};t=p(c.rootNode,t.rootId,"");l(c.userOptions)&&
-(c.userOptions.rootId=t);c.rootNode=t}return t}}});J(c,"Core/Axis/TreeGrid/TreeGridAxis.js",[c["Core/Axis/BrokenAxis.js"],c["Core/Axis/GridAxis.js"],c["Gantt/Tree.js"],c["Core/Axis/TreeGrid/TreeGridTick.js"],c["Series/TreeUtilities.js"],c["Core/Utilities.js"]],function(c,z,G,w,H,v){function l(a,b){var d=a.collapseEnd||0;a=a.collapseStart||0;d>=b&&(a-=.5);return{from:a,to:d,showPoints:!1}}function y(a,b,d){var f=[],e=[],g={},c="boolean"===typeof b?b:!1,k={},m=-1;a=G.getTree(a,{after:function(b){b=
-k[b.pos];var a=0,d=0;b.children.forEach(function(b){d+=(b.descendants||0)+1;a=Math.max((b.height||0)+1,a)});b.descendants=d;b.height=a;b.collapsed&&e.push(b)},before:function(b){var a=q(b.data,!0)?b.data:{},d=K(a.name)?a.name:"",e=g[b.parent];e=q(e,!0)?k[e.pos]:null;var h=function(b){return b.name===d},n;c&&q(e,!0)&&(n=r(e.children,h))?(h=n.pos,n.nodes.push(b)):h=m++;k[h]||(k[h]=n={depth:e?e.depth+1:0,name:d,id:a.id,nodes:[b],children:[],pos:h},-1!==h&&f.push(d),q(e,!0)&&e.children.push(n));K(b.id)&&
-(g[b.id]=b);n&&!0===a.collapsed&&(n.collapsed=!0);b.pos=h}});k=function(b,a){var d=function(b,f,e){var g=f+(-1===f?0:a-1),c=(g-f)/2,k=f+c;b.nodes.forEach(function(b){var a=b.data;q(a,!0)&&(a.y=f+(a.seriesIndex||0),delete a.seriesIndex);b.pos=k});e[k]=b;b.pos=k;b.tickmarkOffset=c+.5;b.collapseStart=g+.5;b.children.forEach(function(b){d(b,g+1,e);g=(b.collapseEnd||0)-.5});b.collapseEnd=g+.5;return e};return d(b["-1"],-1,{})}(k,d);return{categories:f,mapOfIdToNode:g,mapOfPosToGridNode:k,collapsedNodes:e,
-tree:a}}function p(a){a.target.axes.filter(function(b){return"treegrid"===b.options.type}).forEach(function(b){var d=b.options||{},f=d.labels,g=d.uniqueNames;d=d.max;var c=0;if(!b.treeGrid.mapOfPosToGridNode||b.series.some(function(b){return!b.hasRendered||b.isDirtyData||b.isDirty})){var k=b.series.reduce(function(b,a){a.visible&&((a.options.data||[]).forEach(function(d){a.options.keys&&a.options.keys.length&&(d=a.pointClass.prototype.optionsToObject.call({series:a},d),a.pointClass.setGanttPointAliases(d));
-q(d,!0)&&(d.seriesIndex=c,b.push(d))}),!0===g&&c++);return b},[]);if(d&&k.length<d)for(var h=k.length;h<=d;h++)k.push({name:h+"\u200b"});d=y(k,g||!1,!0===g?c:1);b.categories=d.categories;b.treeGrid.mapOfPosToGridNode=d.mapOfPosToGridNode;b.hasNames=!0;b.treeGrid.tree=d.tree;b.series.forEach(function(b){var a=(b.options.data||[]).map(function(a){e(a)&&b.options.keys&&b.options.keys.length&&k.forEach(function(b){0<=a.indexOf(b.x)&&0<=a.indexOf(b.x2)&&(a=b)});return q(a,!0)?L(a):a});b.visible&&b.setData(a,
-!1)});b.treeGrid.mapOptionsToLevel=x({defaults:f,from:1,levels:f&&f.levels,to:b.treeGrid.tree&&b.treeGrid.tree.height});"beforeRender"===a.type&&(b.treeGrid.collapsedNodes=d.collapsedNodes)}})}function D(a,b){var d=this.treeGrid.mapOptionsToLevel||{},e=this.ticks,g=e[b],c;if("treegrid"===this.options.type&&this.treeGrid.mapOfPosToGridNode){var k=this.treeGrid.mapOfPosToGridNode[b];(d=d[k.depth])&&(c={labels:d});!g&&f?e[b]=new f(this,b,void 0,void 0,{category:k.name,tickmarkOffset:k.tickmarkOffset,
-options:c}):(g.parameters.category=k.name,g.options=c,g.addLabel())}else a.apply(this,Array.prototype.slice.call(arguments,1))}function t(a,b,f){var e=this,g="treegrid"===f.type;e.treeGrid||(e.treeGrid=new d(e));g&&(h(b,"beforeRender",p),h(b,"beforeRedraw",p),h(b,"addSeries",function(b){b.options.data&&(b=y(b.options.data,f.uniqueNames||!1,1),e.treeGrid.collapsedNodes=(e.treeGrid.collapsedNodes||[]).concat(b.collapsedNodes))}),h(e,"foundExtremes",function(){e.treeGrid.collapsedNodes&&e.treeGrid.collapsedNodes.forEach(function(b){var a=
-e.treeGrid.collapse(b);e.brokenAxis&&(e.brokenAxis.setBreaks(a,!1),e.treeGrid.collapsedNodes&&(e.treeGrid.collapsedNodes=e.treeGrid.collapsedNodes.filter(function(a){return b.collapseStart!==a.collapseStart||b.collapseEnd!==a.collapseEnd})))})}),h(e,"afterBreaks",function(){"yAxis"===e.coll&&!e.staticScale&&e.chart.options.chart.height&&(e.isDirty=!0)}),f=L({grid:{enabled:!0},labels:{align:"left",levels:[{level:void 0},{level:1,style:{fontWeight:"bold"}}],symbol:{type:"triangle",x:-5,y:-5,height:10,
-width:10,padding:5}},uniqueNames:!1},f,{reversed:!0,grid:{columns:void 0}}));a.apply(e,[b,f]);g&&(e.hasNames=!0,e.options.showLastLabel=!0)}function A(d){var b=this.options;"treegrid"===b.type?(this.min=u(this.userMin,b.min,this.dataMin),this.max=u(this.userMax,b.max,this.dataMax),a(this,"foundExtremes"),this.setAxisTranslation(),this.tickmarkOffset=.5,this.tickInterval=1,this.tickPositions=this.treeGrid.mapOfPosToGridNode?this.treeGrid.getTickPositions():[]):d.apply(this,Array.prototype.slice.call(arguments,
-1))}var x=H.getLevelOptions,h=v.addEvent,r=v.find,a=v.fireEvent,e=v.isArray,q=v.isObject,K=v.isString,L=v.merge,u=v.pick,n=v.wrap,k=[],f,d=function(){function a(b){this.axis=b}a.compose=function(b,a,d,e){if(-1===k.indexOf(b)){k.push(b);-1===b.keepProps.indexOf("treeGrid")&&b.keepProps.push("treeGrid");var g=b.prototype;n(g,"generateTick",D);n(g,"init",t);n(g,"setTickInterval",A);g.utils={getNode:G.getNode}}-1===k.indexOf(e)&&(k.push(e),f||(f=e));z.compose(b,a,e);c.compose(b,d);w.compose(e);return b};
-a.prototype.setCollapsedStatus=function(b){var a=this.axis,d=a.chart;a.series.forEach(function(a){var e=a.options.data;if(b.id&&e){var f=d.get(b.id);a=e[a.data.indexOf(f)];f&&a&&(f.collapsed=b.collapsed,a.collapsed=b.collapsed)}})};a.prototype.collapse=function(b){var a=this.axis,d=a.options.breaks||[],e=l(b,a.max);d.push(e);b.collapsed=!0;a.treeGrid.setCollapsedStatus(b);return d};a.prototype.expand=function(b){var a=this.axis,d=a.options.breaks||[],e=l(b,a.max);b.collapsed=!1;a.treeGrid.setCollapsedStatus(b);
-return d.reduce(function(b,a){a.to===e.to&&a.from===e.from||b.push(a);return b},[])};a.prototype.getTickPositions=function(){var b=this.axis,a=Math.floor(b.min/b.tickInterval)*b.tickInterval,d=Math.ceil(b.max/b.tickInterval)*b.tickInterval;return Object.keys(b.treeGrid.mapOfPosToGridNode||{}).reduce(function(e,f){f=+f;!(f>=a&&f<=d)||b.brokenAxis&&b.brokenAxis.isInAnyBreak(f)||e.push(f);return e},[])};a.prototype.isCollapsed=function(b){var a=this.axis,d=a.options.breaks||[],e=l(b,a.max);return d.some(function(b){return b.from===
-e.from&&b.to===e.to})};a.prototype.toggleCollapse=function(b){return this.isCollapsed(b)?this.expand(b):this.collapse(b)};return a}();return d});J(c,"Extensions/CurrentDateIndication.js",[c["Core/Axis/Axis.js"],c["Core/Axis/PlotLineOrBand/PlotLineOrBand.js"],c["Core/Utilities.js"]],function(c,z,G){var w=G.addEvent,D=G.merge;G=G.wrap;var v={color:"#ccd6eb",width:2,label:{format:"%a, %b %d %Y, %H:%M",formatter:function(c,v){return this.axis.chart.time.dateFormat(v||"",c)},rotation:0,style:{fontSize:"10px"}}};
-w(c,"afterSetOptions",function(){var c=this.options,y=c.currentDateIndicator;y&&(y="object"===typeof y?D(v,y):D(v),y.value=Date.now(),y.className="highcharts-current-date-indicator",c.plotLines||(c.plotLines=[]),c.plotLines.push(y))});w(z,"render",function(){this.label&&this.label.attr({text:this.getLabelText(this.options.label)})});G(z.prototype,"getLabelText",function(c,v){var l=this.options;return l&&l.className&&-1!==l.className.indexOf("highcharts-current-date-indicator")&&l.label&&"function"===
-typeof l.label.formatter?(l.value=Date.now(),l.label.formatter.call(this,l.value,l.label.format)):c.call(this,v)})});J(c,"Extensions/StaticScale.js",[c["Core/Axis/Axis.js"],c["Core/Chart/Chart.js"],c["Core/Utilities.js"]],function(c,z,G){var w=G.addEvent,D=G.defined,v=G.isNumber,l=G.pick;w(c,"afterSetOptions",function(){var c=this.chart.options.chart;!this.horiz&&v(this.options.staticScale)&&(!c.height||c.scrollablePlotArea&&c.scrollablePlotArea.minHeight)&&(this.staticScale=this.options.staticScale)});
-z.prototype.adjustHeight=function(){"adjustHeight"!==this.redrawTrigger&&((this.axes||[]).forEach(function(c){var p=c.chart,v=!!p.initiatedScale&&p.options.animation,t=c.options.staticScale;if(c.staticScale&&D(c.min)){var A=l(c.brokenAxis&&c.brokenAxis.unitLength,c.max+c.tickInterval-c.min)*t;A=Math.max(A,t);t=A-p.plotHeight;!p.scrollablePixelsY&&1<=Math.abs(t)&&(p.plotHeight=A,p.redrawTrigger="adjustHeight",p.setSize(void 0,p.chartHeight+t,v));c.series.forEach(function(c){(c=c.sharedClipKey&&p.sharedClips[c.sharedClipKey])&&
-c.attr(p.inverted?{width:p.plotHeight}:{height:p.plotHeight})})}}),this.initiatedScale=!0);this.redrawTrigger=null};w(z,"render",z.prototype.adjustHeight)});J(c,"Extensions/ArrowSymbols.js",[c["Core/Renderer/SVG/SVGRenderer.js"]],function(c){function z(c,v,l,y){return[["M",c,v+y/2],["L",c+l,v],["L",c,v+y/2],["L",c+l,v+y]]}function D(c,v,l,y){return[["M",c+l,v],["L",c,v+y/2],["L",c+l,v+y],["Z"]]}function w(c,v,l,y){return D(c,v,l/2,y)}c=c.prototype.symbols;c.arrow=z;c["arrow-filled"]=D;c["arrow-filled-half"]=
-w;c["arrow-half"]=function(c,v,l,y){return z(c,v,l/2,y)};c["triangle-left"]=D;c["triangle-left-half"]=w;return c});J(c,"Gantt/Connection.js",[c["Core/Defaults.js"],c["Core/Globals.js"],c["Core/Series/Point.js"],c["Core/Utilities.js"]],function(c,z,G,w){function D(c){var h=c.shapeArgs;return h?{xMin:h.x||0,xMax:(h.x||0)+(h.width||0),yMin:h.y||0,yMax:(h.y||0)+(h.height||0)}:(h=c.graphic&&c.graphic.getBBox())?{xMin:c.plotX-h.width/2,xMax:c.plotX+h.width/2,yMin:c.plotY-h.height/2,yMax:c.plotY+h.height/
-2}:null}var v=c.defaultOptions,l=w.defined,y=w.error;c=w.extend;var p=w.merge,I=w.objectEach;"";var t=z.deg2rad,A=Math.max,x=Math.min;c(v,{connectors:{type:"straight",lineWidth:1,marker:{enabled:!1,align:"center",verticalAlign:"middle",inside:!1,lineWidth:1},startMarker:{symbol:"diamond"},endMarker:{symbol:"arrow-filled"}}});w=function(){function c(c,a,e){this.toPoint=this.pathfinder=this.graphics=this.fromPoint=this.chart=void 0;this.init(c,a,e)}c.prototype.init=function(c,a,e){this.fromPoint=c;
-this.toPoint=a;this.options=e;this.chart=c.series.chart;this.pathfinder=this.chart.pathfinder};c.prototype.renderPath=function(c,a,e){var h=this.chart,l=h.styledMode,r=h.pathfinder,u=!h.options.chart.forExport&&!1!==e,n=this.graphics&&this.graphics.path;r.group||(r.group=h.renderer.g().addClass("highcharts-pathfinder-group").attr({zIndex:-1}).add(h.seriesGroup));r.group.translate(h.plotLeft,h.plotTop);n&&n.renderer||(n=h.renderer.path().add(r.group),l||n.attr({opacity:0}));n.attr(a);c={d:c};l||(c.opacity=
-1);n[u?"animate":"attr"](c,e);this.graphics=this.graphics||{};this.graphics.path=n};c.prototype.addMarker=function(c,a,e){var h=this.fromPoint.series.chart,l=h.pathfinder;h=h.renderer;var r="start"===c?this.fromPoint:this.toPoint,u=r.getPathfinderAnchorPoint(a);if(a.enabled&&((e="start"===c?e[1]:e[e.length-2])&&"M"===e[0]||"L"===e[0])){e={x:e[1],y:e[2]};e=r.getRadiansToVector(e,u);u=r.getMarkerVector(e,a.radius,u);e=-e/t;if(a.width&&a.height){var n=a.width;var k=a.height}else n=k=2*a.radius;this.graphics=
-this.graphics||{};u={x:u.x-n/2,y:u.y-k/2,width:n,height:k,rotation:e,rotationOriginX:u.x,rotationOriginY:u.y};this.graphics[c]?this.graphics[c].animate(u):(this.graphics[c]=h.symbol(a.symbol).addClass("highcharts-point-connecting-path-"+c+"-marker").attr(u).add(l.group),h.styledMode||this.graphics[c].attr({fill:a.color||this.fromPoint.color,stroke:a.lineColor,"stroke-width":a.lineWidth,opacity:0}).animate({opacity:1},r.series.options.animation))}};c.prototype.getPath=function(c){var a=this.pathfinder,
-e=this.chart,h=a.algorithms[c.type],l=a.chartObstacles;if("function"!==typeof h)return y('"'+c.type+'" is not a Pathfinder algorithm.'),{path:[],obstacles:[]};h.requiresObstacles&&!l&&(l=a.chartObstacles=a.getChartObstacles(c),e.options.connectors.algorithmMargin=c.algorithmMargin,a.chartObstacleMetrics=a.getObstacleMetrics(l));return h(this.fromPoint.getPathfinderAnchorPoint(c.startMarker),this.toPoint.getPathfinderAnchorPoint(c.endMarker),p({chartObstacles:l,lineObstacles:a.lineObstacles||[],obstacleMetrics:a.chartObstacleMetrics,
-hardBounds:{xMin:0,xMax:e.plotWidth,yMin:0,yMax:e.plotHeight},obstacleOptions:{margin:c.algorithmMargin},startDirectionX:a.getAlgorithmStartDirection(c.startMarker)},c))};c.prototype.render=function(){var c=this.fromPoint,a=c.series,e=a.chart,h=e.pathfinder,t=p(e.options.connectors,a.options.connectors,c.options.connectors,this.options),v={};e.styledMode||(v.stroke=t.lineColor||c.color,v["stroke-width"]=t.lineWidth,t.dashStyle&&(v.dashstyle=t.dashStyle));v["class"]="highcharts-point-connecting-path highcharts-color-"+
-c.colorIndex;t=p(v,t);l(t.marker.radius)||(t.marker.radius=x(A(Math.ceil((t.algorithmMargin||8)/2)-1,1),5));c=this.getPath(t);e=c.path;c.obstacles&&(h.lineObstacles=h.lineObstacles||[],h.lineObstacles=h.lineObstacles.concat(c.obstacles));this.renderPath(e,v,a.options.animation);this.addMarker("start",p(t.marker,t.startMarker),e);this.addMarker("end",p(t.marker,t.endMarker),e)};c.prototype.destroy=function(){this.graphics&&(I(this.graphics,function(c){c.destroy()}),delete this.graphics)};return c}();
-z.Connection=w;c(G.prototype,{getPathfinderAnchorPoint:function(c){var h=D(this);switch(c.align){case "right":var a="xMax";break;case "left":a="xMin"}switch(c.verticalAlign){case "top":var e="yMin";break;case "bottom":e="yMax"}return{x:a?h[a]:(h.xMin+h.xMax)/2,y:e?h[e]:(h.yMin+h.yMax)/2}},getRadiansToVector:function(c,r){var a;l(r)||(a=D(this))&&(r={x:(a.xMin+a.xMax)/2,y:(a.yMin+a.yMax)/2});return Math.atan2(r.y-c.y,c.x-r.x)},getMarkerVector:function(c,l,a){var e=2*Math.PI,h=D(this),t=h.xMax-h.xMin,
-r=h.yMax-h.yMin,u=Math.atan2(r,t),n=!1;t/=2;var k=r/2,f=h.xMin+t;h=h.yMin+k;for(var d=f,g=h,b=1,m=1;c<-Math.PI;)c+=e;for(;c>Math.PI;)c-=e;e=Math.tan(c);c>-u&&c<=u?(m=-1,n=!0):c>u&&c<=Math.PI-u?m=-1:c>Math.PI-u||c<=-(Math.PI-u)?(b=-1,n=!0):b=-1;n?(d+=b*t,g+=m*t*e):(d+=r/(2*e)*b,g+=m*k);a.x!==f&&(d=a.x);a.y!==h&&(g=a.y);return{x:d+l*Math.cos(c),y:g-l*Math.sin(c)}}});return w});J(c,"Gantt/PathfinderAlgorithms.js",[c["Core/Utilities.js"]],function(c){function z(c,l,p){p=p||0;var h=c.length-1;l-=1e-7;
-for(var t,a;p<=h;)if(t=h+p>>1,a=l-c[t].xMin,0<a)p=t+1;else if(0>a)h=t-1;else return t;return 0<p?p-1:0}function D(c,l){for(var t=z(c,l.x+1)+1;t--;){var h;if(h=c[t].xMax>=l.x)h=c[t],h=l.x<=h.xMax&&l.x>=h.xMin&&l.y<=h.yMax&&l.y>=h.yMin;if(h)return t}return-1}function w(c){var l=[];if(c.length){l.push(["M",c[0].start.x,c[0].start.y]);for(var t=0;t<c.length;++t)l.push(["L",c[t].end.x,c[t].end.y])}return l}function H(c,p){c.yMin=y(c.yMin,p.yMin);c.yMax=l(c.yMax,p.yMax);c.xMin=y(c.xMin,p.xMin);c.xMax=l(c.xMax,
-p.xMax)}var v=c.pick,l=Math.min,y=Math.max,p=Math.abs;c=function(c,l,x){function h(a,c,e,d,g){a={x:a.x,y:a.y};a[c]=e[d||c]+(g||0);return a}function r(a,c,e){var d=p(c[e]-a[e+"Min"])>p(c[e]-a[e+"Max"]);return h(c,e,a,e+(d?"Max":"Min"),d?1:-1)}var a=[],e=v(x.startDirectionX,p(l.x-c.x)>p(l.y-c.y))?"x":"y",q=x.chartObstacles,t=D(q,c);x=D(q,l);if(-1<x){var y=q[x];x=r(y,l,e);y={start:x,end:l};var u=x}else u=l;-1<t&&(q=q[t],x=r(q,c,e),a.push({start:c,end:x}),x[e]>=c[e]===x[e]>=u[e]&&(e="y"===e?"x":"y",l=
-c[e]<l[e],a.push({start:x,end:h(x,e,q,e+(l?"Max":"Min"),l?1:-1)}),e="y"===e?"x":"y"));c=a.length?a[a.length-1].end:c;x=h(c,e,u);a.push({start:c,end:x});e=h(x,"y"===e?"x":"y",u);a.push({start:x,end:e});a.push(y);return{path:w(a),obstacles:a}};c.requiresObstacles=!0;var I=function(c,A,x){function h(a,d,c){var e,f=a.x<d.x?1:-1;if(a.x<d.x){var g=a;var k=d}else g=d,k=a;if(a.y<d.y){var h=a;var m=d}else h=d,m=a;for(e=0>f?l(z(b,k.x),b.length-1):0;b[e]&&(0<f&&b[e].xMin<=k.x||0>f&&b[e].xMax>=g.x);){if(b[e].xMin<=
-k.x&&b[e].xMax>=g.x&&b[e].yMin<=m.y&&b[e].yMax>=h.y)return c?{y:a.y,x:a.x<d.x?b[e].xMin-1:b[e].xMax+1,obstacle:b[e]}:{x:a.x,y:a.y<d.y?b[e].yMin-1:b[e].yMax+1,obstacle:b[e]};e+=f}return d}function r(b,a,d,c,e){var f=e.soft,g=e.hard,k=c?"x":"y",l={x:a.x,y:a.y},m={x:a.x,y:a.y};e=b[k+"Max"]>=f[k+"Max"];f=b[k+"Min"]<=f[k+"Min"];var n=b[k+"Max"]>=g[k+"Max"];g=b[k+"Min"]<=g[k+"Min"];var u=p(b[k+"Min"]-a[k]),q=p(b[k+"Max"]-a[k]);d=10>p(u-q)?a[k]<d[k]:q<u;m[k]=b[k+"Min"];l[k]=b[k+"Max"];b=h(a,m,c)[k]!==m[k];
-a=h(a,l,c)[k]!==l[k];d=b?a?d:!0:a?!1:d;d=f?e?d:!0:e?!1:d;return g?n?d:!0:n?!1:d}function a(c,e,m){if(c.x===e.x&&c.y===e.y)return[];var n=m?"x":"y",q=x.obstacleOptions.margin;var p={soft:{xMin:k,xMax:f,yMin:d,yMax:g},hard:x.hardBounds};var t=D(b,c);if(-1<t){t=b[t];p=r(t,c,e,m,p);H(t,x.hardBounds);var v=m?{y:c.y,x:t[p?"xMax":"xMin"]+(p?1:-1)}:{x:c.x,y:t[p?"yMax":"yMin"]+(p?1:-1)};var w=D(b,v);-1<w&&(w=b[w],H(w,x.hardBounds),v[n]=p?y(t[n+"Max"]-q+1,(w[n+"Min"]+t[n+"Max"])/2):l(t[n+"Min"]+q-1,(w[n+"Max"]+
-t[n+"Min"])/2),c.x===v.x&&c.y===v.y?(u&&(v[n]=p?y(t[n+"Max"],w[n+"Max"])+1:l(t[n+"Min"],w[n+"Min"])-1),u=!u):u=!1);c=[{start:c,end:v}]}else n=h(c,{x:m?e.x:c.x,y:m?c.y:e.y},m),c=[{start:c,end:{x:n.x,y:n.y}}],n[m?"x":"y"]!==e[m?"x":"y"]&&(p=r(n.obstacle,n,e,!m,p),H(n.obstacle,x.hardBounds),p={x:m?n.x:n.obstacle[p?"xMax":"xMin"]+(p?1:-1),y:m?n.obstacle[p?"yMax":"yMin"]+(p?1:-1):n.y},m=!m,c=c.concat(a({x:n.x,y:n.y},p,m)));return c=c.concat(a(c[c.length-1].end,e,!m))}function e(b,a,d){var c=l(b.xMax-a.x,
-a.x-b.xMin)<l(b.yMax-a.y,a.y-b.yMin);d=r(b,a,d,c,{soft:x.hardBounds,hard:x.hardBounds});return c?{y:a.y,x:b[d?"xMax":"xMin"]+(d?1:-1)}:{x:a.x,y:b[d?"yMax":"yMin"]+(d?1:-1)}}var q=v(x.startDirectionX,p(A.x-c.x)>p(A.y-c.y)),t=q?"x":"y",I=[],u=!1,n=x.obstacleMetrics,k=l(c.x,A.x)-n.maxWidth-10,f=y(c.x,A.x)+n.maxWidth+10,d=l(c.y,A.y)-n.maxHeight-10,g=y(c.y,A.y)+n.maxHeight+10,b=x.chartObstacles;var m=z(b,k);n=z(b,f);b=b.slice(m,n+1);if(-1<(n=D(b,A))){var E=e(b[n],A,c);I.push({end:A,start:E});A=E}for(;-1<
-(n=D(b,A));)m=0>A[t]-c[t],E={x:A.x,y:A.y},E[t]=b[n][m?t+"Max":t+"Min"]+(m?1:-1),I.push({end:A,start:E}),A=E;c=a(c,A,q);c=c.concat(I.reverse());return{path:w(c),obstacles:c}};I.requiresObstacles=!0;return{fastAvoid:I,straight:function(c,l){return{path:[["M",c.x,c.y],["L",l.x,l.y]],obstacles:[{start:c,end:l}]}},simpleConnect:c}});J(c,"Gantt/Pathfinder.js",[c["Gantt/Connection.js"],c["Core/Chart/Chart.js"],c["Core/Defaults.js"],c["Core/Globals.js"],c["Core/Series/Point.js"],c["Core/Utilities.js"],c["Gantt/PathfinderAlgorithms.js"]],
-function(c,z,G,w,H,v,l){function y(a){var c=a.shapeArgs;return c?{xMin:c.x||0,xMax:(c.x||0)+(c.width||0),yMin:c.y||0,yMax:(c.y||0)+(c.height||0)}:(c=a.graphic&&a.graphic.getBBox())?{xMin:a.plotX-c.width/2,xMax:a.plotX+c.width/2,yMin:a.plotY-c.height/2,yMax:a.plotY+c.height/2}:null}function p(c){for(var e=c.length,k=0,f,d,g=[],b=function(d,c,e){e=a(e,10);var f=d.yMax+e>c.yMin-e&&d.yMin-e<c.yMax+e,g=d.xMax+e>c.xMin-e&&d.xMin-e<c.xMax+e,k=f?d.xMin>c.xMax?d.xMin-c.xMax:c.xMin-d.xMax:Infinity,h=g?d.yMin>
-c.yMax?d.yMin-c.yMax:c.yMin-d.yMax:Infinity;return g&&f?e?b(d,c,Math.floor(e/2)):Infinity:J(k,h)};k<e;++k)for(f=k+1;f<e;++f)d=b(c[k],c[f]),80>d&&g.push(d);g.push(80);return q(Math.floor(g.sort(function(b,a){return b-a})[Math.floor(g.length/10)]/2-1),1)}function D(a){if(a.options.pathfinder||a.series.reduce(function(a,c){c.options&&r(!0,c.options.connectors=c.options.connectors||{},c.options.pathfinder);return a||c.options&&c.options.pathfinder},!1))r(!0,a.options.connectors=a.options.connectors||
-{},a.options.pathfinder),x('WARNING: Pathfinder options have been renamed. Use "chart.connectors" or "series.connectors" instead.')}G=G.defaultOptions;var t=v.addEvent,A=v.defined,x=v.error,h=v.extend,r=v.merge,a=v.pick,e=v.splat;"";var q=Math.max,J=Math.min;h(G,{connectors:{type:"straight",lineWidth:1,marker:{enabled:!1,align:"center",verticalAlign:"middle",inside:!1,lineWidth:1},startMarker:{symbol:"diamond"},endMarker:{symbol:"arrow-filled"}}});var L=function(){function h(a){this.lineObstacles=
-this.group=this.connections=this.chartObstacleMetrics=this.chartObstacles=this.chart=void 0;this.init(a)}h.prototype.init=function(a){this.chart=a;this.connections=[];t(a,"redraw",function(){this.pathfinder.update()})};h.prototype.update=function(a){var k=this.chart,f=this,d=f.connections;f.connections=[];k.series.forEach(function(a){a.visible&&!a.options.isInternal&&a.points.forEach(function(a){var b=a.options;b&&b.dependency&&(b.connect=b.dependency);var d;b=a.options&&a.options.connect&&e(a.options.connect);
-a.visible&&!1!==a.isInside&&b&&b.forEach(function(b){d=k.get("string"===typeof b?b:b.to);d instanceof H&&d.series.visible&&d.visible&&!1!==d.isInside&&f.connections.push(new c(a,d,"string"===typeof b?{}:b))})})});for(var g=0,b=void 0,h=void 0,l=d.length,n=f.connections.length;g<l;++g){h=!1;var q=d[g];for(b=0;b<n;++b){var p=f.connections[b];if((q.options&&q.options.type)===(p.options&&p.options.type)&&q.fromPoint===p.fromPoint&&q.toPoint===p.toPoint){p.graphics=q.graphics;h=!0;break}}h||q.destroy()}delete this.chartObstacles;
-delete this.lineObstacles;f.renderConnections(a)};h.prototype.renderConnections=function(a){a?this.chart.series.forEach(function(a){var c=function(){var d=a.chart.pathfinder;(d&&d.connections||[]).forEach(function(d){d.fromPoint&&d.fromPoint.series===a&&d.render()});a.pathfinderRemoveRenderEvent&&(a.pathfinderRemoveRenderEvent(),delete a.pathfinderRemoveRenderEvent)};!1===a.options.animation?c():a.pathfinderRemoveRenderEvent=t(a,"afterAnimate",c)}):this.connections.forEach(function(a){a.render()})};
-h.prototype.getChartObstacles=function(c){for(var e=[],f=this.chart.series,d=a(c.algorithmMargin,0),g,b=0,h=f.length;b<h;++b)if(f[b].visible&&!f[b].options.isInternal){var l=0,n=f[b].points.length,q=void 0;for(q=void 0;l<n;++l)q=f[b].points[l],q.visible&&(q=y(q))&&e.push({xMin:q.xMin-d,xMax:q.xMax+d,yMin:q.yMin-d,yMax:q.yMax+d})}e=e.sort(function(a,b){return a.xMin-b.xMin});A(c.algorithmMargin)||(g=c.algorithmMargin=p(e),e.forEach(function(a){a.xMin-=g;a.xMax+=g;a.yMin-=g;a.yMax+=g}));return e};h.prototype.getObstacleMetrics=
-function(a){for(var c=0,e=0,d,g,b=a.length;b--;)d=a[b].xMax-a[b].xMin,g=a[b].yMax-a[b].yMin,c<d&&(c=d),e<g&&(e=g);return{maxHeight:e,maxWidth:c}};h.prototype.getAlgorithmStartDirection=function(a){var c="top"!==a.verticalAlign&&"bottom"!==a.verticalAlign;return"left"!==a.align&&"right"!==a.align?c?void 0:!1:c?!0:void 0};return h}();L.prototype.algorithms=l;w.Pathfinder=L;h(H.prototype,{getPathfinderAnchorPoint:function(a){var c=y(this);switch(a.align){case "right":var e="xMax";break;case "left":e=
-"xMin"}switch(a.verticalAlign){case "top":var f="yMin";break;case "bottom":f="yMax"}return{x:e?c[e]:(c.xMin+c.xMax)/2,y:f?c[f]:(c.yMin+c.yMax)/2}},getRadiansToVector:function(a,c){var e;A(c)||(e=y(this))&&(c={x:(e.xMin+e.xMax)/2,y:(e.yMin+e.yMax)/2});return Math.atan2(c.y-a.y,a.x-c.x)},getMarkerVector:function(a,c,e){var f=2*Math.PI,d=y(this),g=d.xMax-d.xMin,b=d.yMax-d.yMin,k=Math.atan2(b,g),h=!1;g/=2;var l=b/2,n=d.xMin+g;d=d.yMin+l;for(var q=n,p=d,r=1,t=1;a<-Math.PI;)a+=f;for(;a>Math.PI;)a-=f;f=
-Math.tan(a);a>-k&&a<=k?(t=-1,h=!0):a>k&&a<=Math.PI-k?t=-1:a>Math.PI-k||a<=-(Math.PI-k)?(r=-1,h=!0):r=-1;h?(q+=r*g,p+=t*g*f):(q+=b/(2*f)*r,p+=t*l);e.x!==n&&(q=e.x);e.y!==d&&(p=e.y);return{x:q+c*Math.cos(a),y:p-c*Math.sin(a)}}});z.prototype.callbacks.push(function(a){!1!==a.options.connectors.enabled&&(D(a),this.pathfinder=new L(this),this.pathfinder.update(!0))});return L});J(c,"Series/Gantt/GanttSeries.js",[c["Core/Axis/Axis.js"],c["Core/Chart/Chart.js"],c["Series/Gantt/GanttPoint.js"],c["Core/Series/SeriesRegistry.js"],
-c["Core/Axis/Tick.js"],c["Core/Utilities.js"],c["Core/Axis/TreeGrid/TreeGridAxis.js"]],function(c,z,G,w,H,v,l){var y=this&&this.__extends||function(){var c=function(h,a){c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var e in c)c.hasOwnProperty(e)&&(a[e]=c[e])};return c(h,a)};return function(h,a){function e(){this.constructor=h}c(h,a);h.prototype=null===a?Object.create(a):(e.prototype=a.prototype,new e)}}(),p=w.series,D=w.seriesTypes.xrange,
-t=v.extend,A=v.isNumber,x=v.merge;l.compose(c,z,p,H);c=function(c){function h(){var a=null!==c&&c.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}y(h,c);h.prototype.drawPoint=function(a,c){var e=this.options,h=this.chart.renderer,l=a.shapeArgs,p=a.plotY,n=a.graphic,k=a.selected&&"select",f=e.stacking&&!e.borderRadius;if(a.options.milestone)if(A(p)&&null!==a.y&&!1!==a.visible){l=h.symbols.diamond(l.x||0,l.y||0,l.width||0,l.height||0);if(n)n[c]({d:l});else a.graphic=
-h.path(l).addClass(a.getClassName(),!0).add(a.group||this.group);this.chart.styledMode||a.graphic.attr(this.pointAttribs(a,k)).shadow(e.shadow,null,f)}else n&&(a.graphic=n.destroy());else D.prototype.drawPoint.call(this,a,c)};h.prototype.translatePoint=function(a){D.prototype.translatePoint.call(this,a);if(a.options.milestone){var c=a.shapeArgs;var h=c.height||0;a.shapeArgs={x:(c.x||0)-h/2,y:c.y,width:h,height:h}}};h.defaultOptions=x(D.defaultOptions,{grouping:!1,dataLabels:{enabled:!0},tooltip:{headerFormat:'<span style="font-size: 10px">{series.name}</span><br/>',
-pointFormat:null,pointFormatter:function(){var a=this.series,c=a.xAxis,h=a.tooltipOptions.dateTimeLabelFormats,l=c.options.startOfWeek,p=a.tooltipOptions,t=p.xDateFormat,n=this.options.milestone,k="<b>"+(this.name||this.yCategory)+"</b>";if(p.pointFormat)return this.tooltipFormatter(p.pointFormat);!t&&A(this.start)&&(t=a.chart.time.getDateFormat(c.closestPointRange,this.start,l,h||{}));c=a.chart.time.dateFormat(t,this.start);a=a.chart.time.dateFormat(t,this.end);k+="<br/>";return n?k+(c+"<br/>"):
-k+("Start: "+c+"<br/>End: ")+(a+"<br/>")}},connectors:{type:"simpleConnect",animation:{reversed:!0},startMarker:{enabled:!0,symbol:"arrow-filled",radius:4,fill:"#fa0",align:"left"},endMarker:{enabled:!1,align:"right"}}});return h}(D);t(c.prototype,{pointArrayMap:["start","end","y"],pointClass:G,setData:p.prototype.setData});w.registerSeriesType("gantt",c);"";return c});J(c,"Core/Chart/GanttChart.js",[c["Core/Chart/Chart.js"],c["Core/Defaults.js"],c["Core/Utilities.js"]],function(c,z,G){var w=this&&
-this.__extends||function(){var c=function(l,p){c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,l){c.__proto__=l}||function(c,l){for(var h in l)l.hasOwnProperty(h)&&(c[h]=l[h])};return c(l,p)};return function(l,p){function t(){this.constructor=l}c(l,p);l.prototype=null===p?Object.create(p):(t.prototype=p.prototype,new t)}}(),D=z.getOptions,v=G.isArray,l=G.merge,y=G.splat;c=function(c){function p(){return null!==c&&c.apply(this,arguments)||this}w(p,c);p.prototype.init=function(p,
-w){var t=D(),h=p.xAxis,r=p.yAxis,a;p.xAxis=p.yAxis=void 0;var e=l(!0,{chart:{type:"gantt"},title:{text:null},legend:{enabled:!1},navigator:{series:{type:"gantt"},yAxis:{type:"category"}}},p,{isGantt:!0});p.xAxis=h;p.yAxis=r;e.xAxis=(v(p.xAxis)?p.xAxis:[p.xAxis||{},{}]).map(function(c,e){1===e&&(a=0);return l(t.xAxis,{grid:{enabled:!0},opposite:!0,linkedTo:a},c,{type:"datetime"})});e.yAxis=y(p.yAxis||{}).map(function(a){return l(t.yAxis,{grid:{enabled:!0},staticScale:50,reversed:!0,type:a.categories?
-a.type:"treegrid"},a)});c.prototype.init.call(this,e,w)};return p}(c);(function(c){c.ganttChart=function(l,p,v){return new c(l,p,v)}})(c||(c={}));return c});J(c,"masters/modules/gantt.src.js",[c["Core/Globals.js"],c["Stock/Navigator/Navigator.js"],c["Stock/Scrollbar/Scrollbar.js"],c["Stock/RangeSelector/RangeSelector.js"],c["Series/XRange/XRangeSeries.js"],c["Core/Chart/GanttChart.js"]],function(c,z,G,w,H,v){c.GanttChart=v;c.ganttChart=v.ganttChart;c.Navigator=z;c.RangeSelector=w;c.Scrollbar=G;z.compose(c.Axis,
-c.Chart,c.Series);w.compose(c.Axis,c.Chart);G.compose(c.Axis);H.compose(c.Axis)})});
-//# sourceMappingURL=gantt.js.map

+ 0 - 32
nicegui/elements/lib/highcharts_modules/grid-axis.js

@@ -1,32 +0,0 @@
-/*
- Highcharts Gantt JS v10.3.3 (2023-01-20)
-
- GridAxis
-
- (c) 2016-2021 Lars A. V. Cabrera
-
- License: www.highcharts.com/license
-*/
-(function(f){"object"===typeof module&&module.exports?(f["default"]=f,module.exports=f):"function"===typeof define&&define.amd?define("highcharts/modules/grid-axis",["highcharts"],function(m){f(m);f.Highcharts=m;return f}):f("undefined"!==typeof Highcharts?Highcharts:void 0)})(function(f){function m(f,p,m,h){f.hasOwnProperty(p)||(f[p]=h.apply(null,m),"function"===typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:p,module:f[p]}})))}f=f?f._modules:{};m(f,
-"Core/Axis/GridAxis.js",[f["Core/Axis/Axis.js"],f["Core/Axis/AxisDefaults.js"],f["Core/Globals.js"],f["Core/Utilities.js"]],function(f,p,m,h){function r(a,b){var c={width:0,height:0};b.forEach(function(b){b=a[b];if(h.isObject(b,!0)){var d=h.isObject(b.label,!0)?b.label:{};b=d.getBBox?d.getBBox().height:0;d.textStr&&!t(d.textPxLength)&&(d.textPxLength=d.getBBox().width);var g=t(d.textPxLength)?Math.round(d.textPxLength):0;d.textStr&&(g=Math.round(d.getBBox().width));c.height=Math.max(b,c.height);c.width=
-Math.max(g,c.width)}});"treegrid"===this.options.type&&this.treeGrid&&this.treeGrid.mapOfPosToGridNode&&(c.width+=this.options.labels.indentation*((this.treeGrid.mapOfPosToGridNode[-1].height||0)-1));return c}function C(){var a=this.grid;(a&&a.columns||[]).forEach(function(b){b.getOffset()})}function D(a){if(!0===(this.options.grid||{}).enabled){var b=this.axisTitle,c=this.height,d=this.horiz,e=this.left,g=this.offset,k=this.opposite,q=this.options,z=this.top,f=this.width,v=this.tickSize(),h=b&&b.getBBox().width,
-l=q.title.x,m=q.title.y,n=x(q.title.margin,d?5:10);b=this.chart.renderer.fontMetrics(q.title.style.fontSize,b).f;v=(d?z+c:e)+(d?1:-1)*(k?-1:1)*(v?v[0]/2:0)+(this.side===u.bottom?b:0);a.titlePosition.x=d?e-(h||0)/2-n+l:v+(k?f:0)+g+l;a.titlePosition.y=d?v-(k?c:0)+(k?b:-b)/2+g+m:z-n+m}}function E(){var a=this.chart,b=this.options.grid;b=void 0===b?{}:b;var c=this.userOptions;if(b.enabled){var d=this.options;d.labels.align=x(d.labels.align,"center");this.categories||(d.showLastLabel=!1);this.labelRotation=
-0;d.labels.rotation=0}if(b.columns){d=this.grid.columns=[];for(var e=this.grid.columnIndex=0;++e<b.columns.length;){var g=w(c,b.columns[b.columns.length-e-1],{linkedTo:0,type:"category",scrollbar:{enabled:!1}});delete g.grid.columns;g=new f(this.chart,g);g.grid.isColumn=!0;g.grid.columnIndex=e;A(a.axes,g);A(a[this.coll],g);d.push(g)}}}function F(){var a=this.grid,b=this.options;if(!0===(b.grid||{}).enabled){var c=this.min||0,d=this.max||0;this.maxLabelDimensions=this.getMaxLabelDimensions(this.ticks,
-this.tickPositions);this.rightWall&&this.rightWall.destroy();if(this.grid&&this.grid.isOuterAxis()&&this.axisLine){var e=b.lineWidth;if(e){e=this.getLinePath(e);var g=e[0],k=e[1],q=((this.tickSize("tick")||[1])[0]-1)*(this.side===u.top||this.side===u.left?-1:1);"M"===g[0]&&"L"===k[0]&&(this.horiz?(g[2]+=q,k[2]+=q):(g[1]+=q,k[1]+=q));!this.horiz&&this.chart.marginRight&&(g=[g,["L",this.left,g[2]||0]],q=["L",this.chart.chartWidth-this.chart.marginRight,this.toPixels(d+this.tickmarkOffset)],k=[["M",
-k[1]||0,this.toPixels(d+this.tickmarkOffset)],q],this.grid.upperBorder||0===c%1||(this.grid.upperBorder=this.grid.renderBorder(g)),this.grid.upperBorder&&(this.grid.upperBorder.attr({stroke:b.lineColor,"stroke-width":b.lineWidth}),this.grid.upperBorder.animate({d:g})),this.grid.lowerBorder||0===d%1||(this.grid.lowerBorder=this.grid.renderBorder(k)),this.grid.lowerBorder&&(this.grid.lowerBorder.attr({stroke:b.lineColor,"stroke-width":b.lineWidth}),this.grid.lowerBorder.animate({d:k})));this.grid.axisLineExtra?
-(this.grid.axisLineExtra.attr({stroke:b.lineColor,"stroke-width":b.lineWidth}),this.grid.axisLineExtra.animate({d:e})):this.grid.axisLineExtra=this.grid.renderBorder(e);this.axisLine[this.showAxis?"show":"hide"]()}}(a&&a.columns||[]).forEach(function(b){return b.render()});if(!this.horiz&&this.chart.hasRendered&&(this.scrollbar||this.linkedParent&&this.linkedParent.scrollbar)){a=this.tickmarkOffset;b=this.tickPositions[this.tickPositions.length-1];e=this.tickPositions[0];for(g=k=void 0;(k=this.hiddenLabels.pop())&&
-k.element;)k.show();for(;(g=this.hiddenMarks.pop())&&g.element;)g.show();(k=this.ticks[e].label)&&(c-e>a?this.hiddenLabels.push(k.hide()):k.show());(k=this.ticks[b].label)&&(b-d>a?this.hiddenLabels.push(k.hide()):k.show());(c=this.ticks[b].mark)&&b-d<a&&0<b-d&&this.ticks[b].isLast&&this.hiddenMarks.push(c.hide())}}}function G(){var a=this.tickPositions&&this.tickPositions.info,b=this.options,c=this.userOptions.labels||{};(b.grid||{}).enabled&&(this.horiz?(this.series.forEach(function(b){b.options.pointRange=
-0}),a&&b.dateTimeLabelFormats&&b.labels&&!n(c.align)&&(!1===b.dateTimeLabelFormats[a.unitName].range||1<a.count)&&(b.labels.align="left",n(c.x)||(b.labels.x=3))):"treegrid"!==this.options.type&&this.grid&&this.grid.columns&&(this.minPointOffset=this.tickInterval))}function H(a){var b=this.options;a=a.userOptions;var c=b&&h.isObject(b.grid,!0)?b.grid:{};if(!0===c.enabled){var d=w(!0,{className:"highcharts-grid-axis "+(a.className||""),dateTimeLabelFormats:{hour:{list:["%H:%M","%H"]},day:{list:["%A, %e. %B",
-"%a, %e. %b","%E"]},week:{list:["Week %W","W%W"]},month:{list:["%B","%b","%o"]}},grid:{borderWidth:1},labels:{padding:2,style:{fontSize:"13px"}},margin:0,title:{text:null,reserveSpace:!1,rotation:0},units:[["millisecond",[1,10,100]],["second",[1,10]],["minute",[1,5,15]],["hour",[1,6]],["day",[1]],["week",[1]],["month",[1]],["year",null]]},a);"xAxis"===this.coll&&(n(a.linkedTo)&&!n(a.tickPixelInterval)&&(d.tickPixelInterval=350),n(a.tickPixelInterval)||!n(a.linkedTo)||n(a.tickPositioner)||n(a.tickInterval)||
-(d.tickPositioner=function(b,a){var c=this.linkedParent&&this.linkedParent.tickPositions&&this.linkedParent.tickPositions.info;if(c){for(var e=d.units||[],g=void 0,f=1,l="year",h=0;h<e.length;h++){var m=e[h];if(m&&m[0]===c.unitName){g=h;break}}(e=t(g)&&e[g+1])?(l=e[0]||"year",f=(f=e[1])&&f[0]||1):"year"===c.unitName&&(f=10*c.count);c=I[l];this.tickInterval=c*f;return this.chart.time.getTimeTicks({unitRange:c,count:f,unitName:l},b,a,this.options.startOfWeek)}}));w(!0,this.options,d);this.horiz&&(b.minPadding=
-x(a.minPadding,0),b.maxPadding=x(a.maxPadding,0));t(b.grid.borderWidth)&&(b.tickWidth=b.lineWidth=c.borderWidth)}}function J(a){a=(a=a.userOptions)&&a.grid||{};var b=a.columns;a.enabled&&b&&w(!0,this.options,b[b.length-1])}function K(){(this.grid.columns||[]).forEach(function(a){return a.setScale()})}function L(a){var b=p.defaultLeftAxisOptions,c=this.horiz,d=this.maxLabelDimensions,e=this.options.grid;e=void 0===e?{}:e;e.enabled&&d&&(b=2*Math.abs(b.labels.x),c=c?e.cellHeight||b+d.height:b+d.width,
-M(a.tickSize)?a.tickSize[0]=c:a.tickSize=[c,0])}function N(){this.axes.forEach(function(a){(a.grid&&a.grid.columns||[]).forEach(function(b){b.setAxisSize();b.setAxisTranslation()})})}function O(a){var b=this.grid;(b.columns||[]).forEach(function(b){return b.destroy(a.keepEvents)});b.columns=void 0}function P(a){a=a.userOptions||{};var b=a.grid||{};b.enabled&&n(b.borderColor)&&(a.tickColor=a.lineColor=b.borderColor);this.grid||(this.grid=new Q(this));this.hiddenLabels=[];this.hiddenMarks=[]}function R(a){var b=
-this.label,c=this.axis,d=c.reversed,e=c.chart,g=c.options.grid||{},k=c.options.labels,f=k.align,h=u[c.side],l=a.tickmarkOffset,m=c.tickPositions,n=this.pos-l;m=t(m[a.index+1])?m[a.index+1]-l:(c.max||0)+l;var p=c.tickSize("tick");l=p?p[0]:0;p=p?p[1]/2:0;if(!0===g.enabled){if("top"===h){g=c.top+c.offset;var r=g-l}else"bottom"===h?(r=e.chartHeight-c.bottom+c.offset,g=r+l):(g=c.top+c.len-(c.translate(d?m:n)||0),r=c.top+c.len-(c.translate(d?n:m)||0));"right"===h?(h=e.chartWidth-c.right+c.offset,d=h+l):
-"left"===h?(d=c.left+c.offset,h=d-l):(h=Math.round(c.left+(c.translate(d?m:n)||0))-p,d=Math.min(Math.round(c.left+(c.translate(d?n:m)||0))-p,c.left+c.len));this.slotWidth=d-h;a.pos.x="left"===f?h:"right"===f?d:h+(d-h)/2;a.pos.y=r+(g-r)/2;e=e.renderer.fontMetrics(k.style.fontSize,b&&b.element);b=b?b.getBBox().height:0;k.useHTML?a.pos.y+=e.b+-(b/2):(b=Math.round(b/e.h),a.pos.y+=(e.b-(e.h-e.f))/2+-((b-1)*e.h/2));a.pos.x+=c.horiz&&k.x||0}}function S(a){var b=a.axis,c=a.value;if(b.options.grid&&b.options.grid.enabled){var d=
-b.tickPositions,e=(b.linkedParent||b).series[0],g=c===d[0];d=c===d[d.length-1];var k=e&&T(e.options.data,function(a){return a[b.isXAxis?"x":"y"]===c}),f=void 0;k&&e.is("gantt")&&(f=w(k),m.seriesTypes.gantt.prototype.pointClass.setGanttPointAliases(f));a.isFirst=g;a.isLast=d;a.point=f}}function U(){var a=this.options,b=this.categories,c=this.tickPositions,d=c[0],e=c[c.length-1],g=this.linkedParent&&this.linkedParent.min||this.min,f=this.linkedParent&&this.linkedParent.max||this.max,h=this.tickInterval;
-!0!==(a.grid||{}).enabled||b||!this.horiz&&!this.isLinked||(d<g&&d+h>g&&!a.startOnTick&&(c[0]=g),e>f&&e-h<f&&!a.endOnTick&&(c[c.length-1]=f))}function V(a){var b=this.options.grid;return!0===(void 0===b?{}:b).enabled&&this.categories?this.tickInterval:a.apply(this,Array.prototype.slice.call(arguments,1))}var B=m.dateFormats,l=h.addEvent,n=h.defined,A=h.erase,T=h.find,M=h.isArray,t=h.isNumber,w=h.merge,x=h.pick,I=h.timeUnits,W=h.wrap,u;(function(a){a[a.top=0]="top";a[a.right=1]="right";a[a.bottom=
-2]="bottom";a[a.left=3]="left"})(u||(u={}));var y=[],Q=function(){function a(b){this.axis=b}a.prototype.isOuterAxis=function(){var b=this.axis,a=b.grid.columnIndex,d=b.linkedParent&&b.linkedParent.grid.columns||b.grid.columns,e=a?b.linkedParent:b,g=-1,f=0;(b.chart[b.coll]||[]).forEach(function(a,c){a.side!==b.side||a.options.isInternal||(f=c,a===e&&(g=c))});return f===g&&(t(a)?d.length===a:!0)};a.prototype.renderBorder=function(a){var b=this.axis,d=b.chart.renderer,e=b.options;a=d.path(a).addClass("highcharts-axis-line").add(b.axisBorder);
-d.styledMode||a.attr({stroke:e.lineColor,"stroke-width":e.lineWidth,zIndex:7});return a};return a}();B.E=function(a){return this.dateFormat("%a",a,!0).charAt(0)};B.W=function(a){var b=this,c=new this.Date(a);["Hours","Milliseconds","Minutes","Seconds"].forEach(function(a){b.set(a,c,0)});var d=(this.get("Day",c)+6)%7;a=new this.Date(c.valueOf());this.set("Date",a,this.get("Date",c)-d+3);d=new this.Date(this.get("FullYear",a),0,1);4!==this.get("Day",d)&&(this.set("Month",c,0),this.set("Date",c,1+(11-
-this.get("Day",d))%7));return(1+Math.floor((a.valueOf()-d.valueOf())/6048E5)).toString()};"";return{compose:function(a,b,c){-1===y.indexOf(a)&&(y.push(a),a.keepProps.push("grid"),a.prototype.getMaxLabelDimensions=r,W(a.prototype,"unsquish",V),l(a,"init",P),l(a,"afterGetOffset",C),l(a,"afterGetTitlePosition",D),l(a,"afterInit",E),l(a,"afterRender",F),l(a,"afterSetAxisTranslation",G),l(a,"afterSetOptions",H),l(a,"afterSetOptions",J),l(a,"afterSetScale",K),l(a,"afterTickSize",L),l(a,"trimTicks",U),l(a,
-"destroy",O));-1===y.indexOf(b)&&l(b,"afterSetChartSize",N);-1===y.indexOf(c)&&(l(c,"afterGetLabelPosition",R),l(c,"labelFormat",S));return a}}});m(f,"masters/modules/grid-axis.src.js",[f["Core/Globals.js"],f["Core/Axis/GridAxis.js"]],function(f,m){m.compose(f.Axis,f.Chart,f.Tick)})});
-//# sourceMappingURL=grid-axis.js.map

+ 0 - 47
nicegui/elements/lib/highcharts_modules/heatmap.js

@@ -1,47 +0,0 @@
-/*
- Highmaps JS v10.3.3 (2023-01-20)
-
- (c) 2009-2021 Torstein Honsi
-
- License: www.highcharts.com/license
-*/
-(function(b){"object"===typeof module&&module.exports?(b["default"]=b,module.exports=b):"function"===typeof define&&define.amd?define("highcharts/modules/heatmap",["highcharts"],function(r){b(r);b.Highcharts=r;return b}):b("undefined"!==typeof Highcharts?Highcharts:void 0)})(function(b){function r(b,g,F,q){b.hasOwnProperty(g)||(b[g]=q.apply(null,F),"function"===typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:g,module:b[g]}})))}b=b?b._modules:{};r(b,
-"Core/Axis/Color/ColorAxisComposition.js",[b["Core/Color/Color.js"],b["Core/Utilities.js"]],function(b,g){var m=b.parse,q=g.addEvent,z=g.extend,t=g.merge,u=g.pick,A=g.splat,n;(function(f){function b(){var a=this,d=this.options;this.colorAxis=[];d.colorAxis&&(d.colorAxis=A(d.colorAxis),d.colorAxis.forEach(function(d,c){d.index=c;new y(a,d)}))}function g(a){var d=this,c=function(c){c=a.allItems.indexOf(c);-1!==c&&(d.destroyItem(a.allItems[c]),a.allItems.splice(c,1))},e=[],h,x;(this.chart.colorAxis||
-[]).forEach(function(a){(h=a.options)&&h.showInLegend&&(h.dataClasses&&h.visible?e=e.concat(a.getDataClassLegendSymbols()):h.visible&&e.push(a),a.series.forEach(function(a){if(!a.options.showInLegend||h.dataClasses)"point"===a.options.legendType?a.points.forEach(function(a){c(a)}):c(a)}))});for(x=e.length;x--;)a.allItems.unshift(e[x])}function n(a){a.visible&&a.item.legendColor&&a.item.legendItem.symbol.attr({fill:a.item.legendColor})}function w(){var a=this.chart.colorAxis;a&&a.forEach(function(a,
-d,c){a.update({},c)})}function p(){(this.chart.colorAxis&&this.chart.colorAxis.length||this.colorAttribs)&&this.translateColors()}function D(){var a=this.axisTypes;a?-1===a.indexOf("colorAxis")&&a.push("colorAxis"):this.axisTypes=["colorAxis"]}function k(a){var d=this,c=a?"show":"hide";d.visible=d.options.visible=!!a;["graphic","dataLabel"].forEach(function(a){if(d[a])d[a][c]()});this.series.buildKDTree()}function e(){var a=this,d=this.options.nullColor,c=this.colorAxis,e=this.colorKey;(this.data.length?
-this.data:this.points).forEach(function(h){var l=h.getNestedProperty(e);(l=h.options.color||(h.isNull||null===h.value?d:c&&"undefined"!==typeof l?c.toColor(l,h):h.color||a.color))&&h.color!==l&&(h.color=l,"point"===a.options.legendType&&h.legendItem&&h.legendItem.label&&a.chart.legend.colorizeItem(h,h.visible))})}function c(a){var d=a.prototype.createAxis;a.prototype.createAxis=function(a,c){if("colorAxis"!==a)return d.apply(this,arguments);var e=new y(this,t(c.axis,{index:this[a].length,isX:!1}));
-this.isDirtyLegend=!0;this.axes.forEach(function(a){a.series=[]});this.series.forEach(function(a){a.bindAxes();a.isDirtyData=!0});u(c.redraw,!0)&&this.redraw(c.animation);return e}}function a(){this.elem.attr("fill",m(this.start).tweenTo(m(this.end),this.pos),void 0,!0)}function d(){this.elem.attr("stroke",m(this.start).tweenTo(m(this.end),this.pos),void 0,!0)}var h=[],y;f.compose=function(f,l,v,C,m){y||(y=f);-1===h.indexOf(l)&&(h.push(l),f=l.prototype,f.collectionsWithUpdate.push("colorAxis"),f.collectionsWithInit.colorAxis=
-[f.addColorAxis],q(l,"afterGetAxes",b),c(l));-1===h.indexOf(v)&&(h.push(v),l=v.prototype,l.fillSetter=a,l.strokeSetter=d);-1===h.indexOf(C)&&(h.push(C),q(C,"afterGetAllItems",g),q(C,"afterColorizeItem",n),q(C,"afterUpdate",w));-1===h.indexOf(m)&&(h.push(m),z(m.prototype,{optionalAxis:"colorAxis",translateColors:e}),z(m.prototype.pointClass.prototype,{setVisible:k}),q(m,"afterTranslate",p,{order:1}),q(m,"bindAxes",D))};f.pointSetVisible=k})(n||(n={}));return n});r(b,"Core/Axis/Color/ColorAxisDefaults.js",
-[],function(){return{lineWidth:0,minPadding:0,maxPadding:0,gridLineWidth:1,tickPixelInterval:72,startOnTick:!0,endOnTick:!0,offset:0,marker:{animation:{duration:50},width:.01,color:"#999999"},labels:{overflow:"justify",rotation:0},minColor:"#e6ebf5",maxColor:"#003399",tickLength:5,showInLegend:!0}});r(b,"Core/Axis/Color/ColorAxis.js",[b["Core/Axis/Axis.js"],b["Core/Color/Color.js"],b["Core/Axis/Color/ColorAxisComposition.js"],b["Core/Axis/Color/ColorAxisDefaults.js"],b["Core/Globals.js"],b["Core/Legend/LegendSymbol.js"],
-b["Core/Series/SeriesRegistry.js"],b["Core/Utilities.js"]],function(b,g,r,q,z,t,u,A){var n=this&&this.__extends||function(){var f=function(b,e){f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,a){c.__proto__=a}||function(c,a){for(var d in a)a.hasOwnProperty(d)&&(c[d]=a[d])};return f(b,e)};return function(b,e){function c(){this.constructor=b}f(b,e);b.prototype=null===e?Object.create(e):(c.prototype=e.prototype,new c)}}(),f=g.parse,v=u.series,m=A.extend,B=A.isNumber,w=A.merge,p=A.pick;
-g=function(b){function k(e,c){var a=b.call(this,e,c)||this;a.beforePadding=!1;a.chart=void 0;a.coll="colorAxis";a.dataClasses=void 0;a.name="";a.options=void 0;a.stops=void 0;a.visible=!0;a.init(e,c);return a}n(k,b);k.compose=function(e,c,a,d){r.compose(k,e,c,a,d)};k.prototype.init=function(e,c){var a=e.options.legend||{},d=c.layout?"vertical"!==c.layout:"vertical"!==a.layout,h=c.visible;a=w(k.defaultColorAxisOptions,c,{showEmpty:!1,title:null,visible:a.enabled&&!1!==h});this.coll="colorAxis";this.side=
-c.side||d?2:1;this.reversed=c.reversed||!d;this.opposite=!d;b.prototype.init.call(this,e,a);this.userOptions.visible=h;c.dataClasses&&this.initDataClasses(c);this.initStops();this.horiz=d;this.zoomEnabled=!1};k.prototype.initDataClasses=function(e){var c=this.chart,a=this.legendItem=this.legendItem||{},d=e.dataClasses.length,h=this.options,b,x=0,l=c.options.chart.colorCount;this.dataClasses=b=[];a.labels=[];(e.dataClasses||[]).forEach(function(a,e){a=w(a);b.push(a);if(c.styledMode||!a.color)"category"===
-h.dataClassColor?(c.styledMode||(e=c.options.colors,l=e.length,a.color=e[x]),a.colorIndex=x,x++,x===l&&(x=0)):a.color=f(h.minColor).tweenTo(f(h.maxColor),2>d?.5:e/(d-1))})};k.prototype.hasData=function(){return!!(this.tickPositions||[]).length};k.prototype.setTickPositions=function(){if(!this.dataClasses)return b.prototype.setTickPositions.call(this)};k.prototype.initStops=function(){this.stops=this.options.stops||[[0,this.options.minColor],[1,this.options.maxColor]];this.stops.forEach(function(e){e.color=
-f(e[1])})};k.prototype.setOptions=function(e){b.prototype.setOptions.call(this,e);this.options.crosshair=this.options.marker};k.prototype.setAxisSize=function(){var e=this.legendItem&&this.legendItem.symbol,c=this.chart,a=c.options.legend||{},d,h;e?(this.left=a=e.attr("x"),this.top=d=e.attr("y"),this.width=h=e.attr("width"),this.height=e=e.attr("height"),this.right=c.chartWidth-a-h,this.bottom=c.chartHeight-d-e,this.len=this.horiz?h:e,this.pos=this.horiz?a:d):this.len=(this.horiz?a.symbolWidth:a.symbolHeight)||
-k.defaultLegendLength};k.prototype.normalizedValue=function(e){this.logarithmic&&(e=this.logarithmic.log2lin(e));return 1-(this.max-e)/(this.max-this.min||1)};k.prototype.toColor=function(e,c){var a=this.dataClasses,d=this.stops,h;if(a)for(h=a.length;h--;){var b=a[h];var f=b.from;d=b.to;if(("undefined"===typeof f||e>=f)&&("undefined"===typeof d||e<=d)){var l=b.color;c&&(c.dataClass=h,c.colorIndex=b.colorIndex);break}}else{e=this.normalizedValue(e);for(h=d.length;h--&&!(e>d[h][0]););f=d[h]||d[h+1];
-d=d[h+1]||f;e=1-(d[0]-e)/(d[0]-f[0]||1);l=f.color.tweenTo(d.color,e)}return l};k.prototype.getOffset=function(){var e=this.legendItem&&this.legendItem.group,c=this.chart.axisOffset[this.side];if(e){this.axisParent=e;b.prototype.getOffset.call(this);var a=this.chart.legend;a.allItems.forEach(function(d){d instanceof k&&d.drawLegendSymbol(a,d)});a.render();this.chart.getMargins(!0);this.added||(this.added=!0,this.labelLeft=0,this.labelRight=this.width);this.chart.axisOffset[this.side]=c}};k.prototype.setLegendColor=
-function(){var e=this.reversed,c=e?1:0;e=e?0:1;c=this.horiz?[c,0,e,0]:[0,e,0,c];this.legendColor={linearGradient:{x1:c[0],y1:c[1],x2:c[2],y2:c[3]},stops:this.stops}};k.prototype.drawLegendSymbol=function(e,c){c=c.legendItem||{};var a=e.padding,d=e.options,h=p(d.itemDistance,10),b=this.horiz,f=p(d.symbolWidth,b?k.defaultLegendLength:12),l=p(d.symbolHeight,b?12:k.defaultLegendLength);d=p(d.labelPadding,b?16:30);this.setLegendColor();c.symbol||(c.symbol=this.chart.renderer.rect(0,e.baseline-11,f,l).attr({zIndex:1}).add(c.group));
-c.labelWidth=f+a+(b?h:this.options.labels.x+this.maxLabelLength);c.labelHeight=l+a+(b?d:0)};k.prototype.setState=function(e){this.series.forEach(function(c){c.setState(e)})};k.prototype.setVisible=function(){};k.prototype.getSeriesExtremes=function(){var e=this.series,c=e.length,a;this.dataMin=Infinity;for(this.dataMax=-Infinity;c--;){var d=e[c];var h=d.colorKey=p(d.options.colorKey,d.colorKey,d.pointValKey,d.zoneAxis,"y");var b=d.pointArrayMap;var f=d[h+"Min"]&&d[h+"Max"];if(d[h+"Data"])var l=d[h+
-"Data"];else if(b){l=[];b=b.indexOf(h);var k=d.yData;if(0<=b&&k)for(a=0;a<k.length;a++)l.push(p(k[a][b],k[a]))}else l=d.yData;f?(d.minColorValue=d[h+"Min"],d.maxColorValue=d[h+"Max"]):(l=v.prototype.getExtremes.call(d,l),d.minColorValue=l.dataMin,d.maxColorValue=l.dataMax);"undefined"!==typeof d.minColorValue&&(this.dataMin=Math.min(this.dataMin,d.minColorValue),this.dataMax=Math.max(this.dataMax,d.maxColorValue));f||v.prototype.applyExtremes.call(d)}};k.prototype.drawCrosshair=function(e,c){var a=
-this.legendItem||{},d=c&&c.plotX,h=c&&c.plotY,f=this.pos,k=this.len;if(c){var l=this.toPixels(c.getNestedProperty(c.series.colorKey));l<f?l=f-2:l>f+k&&(l=f+k+2);c.plotX=l;c.plotY=this.len-l;b.prototype.drawCrosshair.call(this,e,c);c.plotX=d;c.plotY=h;this.cross&&!this.cross.addedToColorAxis&&a.group&&(this.cross.addClass("highcharts-coloraxis-marker").add(a.group),this.cross.addedToColorAxis=!0,this.chart.styledMode||"object"!==typeof this.crosshair||this.cross.attr({fill:this.crosshair.color}))}};
-k.prototype.getPlotLinePath=function(e){var c=this.left,a=e.translatedValue,d=this.top;return B(a)?this.horiz?[["M",a-4,d-6],["L",a+4,d-6],["L",a,d],["Z"]]:[["M",c,a],["L",c-6,a+6],["L",c-6,a-6],["Z"]]:b.prototype.getPlotLinePath.call(this,e)};k.prototype.update=function(e,c){var a=this.chart.legend;this.series.forEach(function(a){a.isDirtyData=!0});(e.dataClasses&&a.allItems||this.dataClasses)&&this.destroyItems();b.prototype.update.call(this,e,c);this.legendItem&&this.legendItem.label&&(this.setLegendColor(),
-a.colorizeItem(this,!0))};k.prototype.destroyItems=function(){var e=this.chart,c=this.legendItem||{};if(c.label)e.legend.destroyItem(this);else if(c.labels){var a=0;for(c=c.labels;a<c.length;a++)e.legend.destroyItem(c[a])}e.isDirtyLegend=!0};k.prototype.destroy=function(){this.chart.isDirtyLegend=!0;this.destroyItems();b.prototype.destroy.apply(this,[].slice.call(arguments))};k.prototype.remove=function(e){this.destroyItems();b.prototype.remove.call(this,e)};k.prototype.getDataClassLegendSymbols=
-function(){var e=this,c=e.chart,a=e.legendItem&&e.legendItem.labels||[],d=c.options.legend,h=p(d.valueDecimals,-1),b=p(d.valueSuffix,""),f=function(a){return e.series.reduce(function(d,c){d.push.apply(d,c.points.filter(function(d){return d.dataClass===a}));return d},[])},l;a.length||e.dataClasses.forEach(function(d,k){var v=d.from,g=d.to,n=c.numberFormatter,y=!0;l="";"undefined"===typeof v?l="< ":"undefined"===typeof g&&(l="> ");"undefined"!==typeof v&&(l+=n(v,h)+b);"undefined"!==typeof v&&"undefined"!==
-typeof g&&(l+=" - ");"undefined"!==typeof g&&(l+=n(g,h)+b);a.push(m({chart:c,name:l,options:{},drawLegendSymbol:t.drawRectangle,visible:!0,isDataClass:!0,setState:function(a){for(var d=0,c=f(k);d<c.length;d++)c[d].setState(a)},setVisible:function(){this.visible=y=e.visible=!y;for(var a=0,d=f(k);a<d.length;a++)d[a].setVisible(y);c.legend.colorizeItem(this,y)}},d))});return a};k.defaultColorAxisOptions=q;k.defaultLegendLength=200;k.keepProps=["legendItem"];return k}(b);Array.prototype.push.apply(b.keepProps,
-g.keepProps);"";return g});r(b,"Series/ColorMapComposition.js",[b["Core/Series/SeriesRegistry.js"],b["Core/Utilities.js"]],function(b,g){var m=b.seriesTypes.column.prototype,q=g.addEvent,r=g.defined,t;(function(b){function g(b){this.moveToTopOnHover&&this.graphic&&this.graphic.attr({zIndex:b&&"hover"===b.state?1:0})}var n=[];b.pointMembers={dataLabelOnNull:!0,moveToTopOnHover:!0,isValid:function(){return null!==this.value&&Infinity!==this.value&&-Infinity!==this.value&&(void 0===this.value||!isNaN(this.value))}};
-b.seriesMembers={colorKey:"value",axisTypes:["xAxis","yAxis","colorAxis"],parallelArrays:["x","y","value"],pointArrayMap:["value"],trackerGroups:["group","markerGroup","dataLabelsGroup"],colorAttribs:function(b){var f={};!r(b.color)||b.state&&"normal"!==b.state||(f[this.colorProp||"fill"]=b.color);return f},pointAttribs:m.pointAttribs};b.compose=function(b){var f=b.prototype.pointClass;-1===n.indexOf(f)&&(n.push(f),q(f,"afterSetState",g));return b}})(t||(t={}));return t});r(b,"Series/Heatmap/HeatmapPoint.js",
-[b["Core/Series/SeriesRegistry.js"],b["Core/Utilities.js"]],function(b,g){var m=this&&this.__extends||function(){var b=function(g,f){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,f){b.__proto__=f}||function(b,f){for(var g in f)f.hasOwnProperty(g)&&(b[g]=f[g])};return b(g,f)};return function(g,f){function v(){this.constructor=g}b(g,f);g.prototype=null===f?Object.create(f):(v.prototype=f.prototype,new v)}}(),q=g.clamp,r=g.defined,t=g.extend,u=g.pick;b=function(b){function g(){var f=
-null!==b&&b.apply(this,arguments)||this;f.options=void 0;f.series=void 0;f.value=void 0;f.x=void 0;f.y=void 0;return f}m(g,b);g.prototype.applyOptions=function(f,g){(this.isNull||null===this.value)&&delete this.color;b.prototype.applyOptions.call(this,f,g);this.formatPrefix=this.isNull||null===this.value?"null":"point";return this};g.prototype.getCellAttributes=function(){var b=this.series,g=b.options,m=(g.colsize||1)/2,n=(g.rowsize||1)/2,w=b.xAxis,p=b.yAxis,t=this.options.marker||b.options.marker;
-b=b.pointPlacementToXValue();var k=u(this.pointPadding,g.pointPadding,0),e={x1:q(Math.round(w.len-w.translate(this.x-m,!1,!0,!1,!0,-b)),-w.len,2*w.len),x2:q(Math.round(w.len-w.translate(this.x+m,!1,!0,!1,!0,-b)),-w.len,2*w.len),y1:q(Math.round(p.translate(this.y-n,!1,!0,!1,!0)),-p.len,2*p.len),y2:q(Math.round(p.translate(this.y+n,!1,!0,!1,!0)),-p.len,2*p.len)};[["width","x"],["height","y"]].forEach(function(c){var a=c[0];c=c[1];var d=c+"1",b=c+"2",f=Math.abs(e[d]-e[b]),g=t&&t.lineWidth||0,l=Math.abs(e[d]+
-e[b])/2;a=t&&t[a];r(a)&&a<f&&(a=a/2+g/2,e[d]=l-a,e[b]=l+a);k&&("y"===c&&(d=b,b=c+"1"),e[d]+=k,e[b]-=k)});return e};g.prototype.haloPath=function(b){if(!b)return[];var f=this.shapeArgs||{},g=f.x;g=void 0===g?0:g;var m=f.y;m=void 0===m?0:m;var n=f.width;n=void 0===n?0:n;f=f.height;f=void 0===f?0:f;return[["M",g-b,m-b],["L",g-b,m+f+b],["L",g+n+b,m+f+b],["L",g+n+b,m-b],["Z"]]};g.prototype.isValid=function(){return Infinity!==this.value&&-Infinity!==this.value};return g}(b.seriesTypes.scatter.prototype.pointClass);
-t(b.prototype,{dataLabelOnNull:!0,moveToTopOnHover:!0,ttBelow:!1});return b});r(b,"Series/Heatmap/HeatmapSeries.js",[b["Core/Color/Color.js"],b["Series/ColorMapComposition.js"],b["Series/Heatmap/HeatmapPoint.js"],b["Core/Legend/LegendSymbol.js"],b["Core/Series/SeriesRegistry.js"],b["Core/Renderer/SVG/SVGRenderer.js"],b["Core/Utilities.js"]],function(b,g,r,q,z,t,u){var m=this&&this.__extends||function(){var b=function(c,a){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=
-b}||function(a,b){for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d])};return b(c,a)};return function(c,a){function d(){this.constructor=c}b(c,a);c.prototype=null===a?Object.create(a):(d.prototype=a.prototype,new d)}}(),n=z.series,f=z.seriesTypes,v=f.column,E=f.scatter,B=t.prototype.symbols;t=u.extend;var w=u.fireEvent,p=u.isNumber,D=u.merge,k=u.pick;u=function(e){function c(){var a=null!==e&&e.apply(this,arguments)||this;a.colorAxis=void 0;a.data=void 0;a.options=void 0;a.points=void 0;a.valueMax=NaN;
-a.valueMin=NaN;return a}m(c,e);c.prototype.drawPoints=function(){var a=this;if((this.options.marker||{}).enabled||this._hasPointMarkers)n.prototype.drawPoints.call(this),this.points.forEach(function(b){b.graphic&&(b.graphic[a.chart.styledMode?"css":"animate"](a.colorAttribs(b)),null===b.value&&b.graphic.addClass("highcharts-null-point"))})};c.prototype.getExtremes=function(){var a=n.prototype.getExtremes.call(this,this.valueData),b=a.dataMin;a=a.dataMax;p(b)&&(this.valueMin=b);p(a)&&(this.valueMax=
-a);return n.prototype.getExtremes.call(this)};c.prototype.getValidPoints=function(a,b){return n.prototype.getValidPoints.call(this,a,b,!0)};c.prototype.hasData=function(){return!!this.processedXData.length};c.prototype.init=function(){e.prototype.init.apply(this,arguments);var a=this.options;a.pointRange=k(a.pointRange,a.colsize||1);this.yAxis.axisPointRange=a.rowsize||1;B.ellipse=B.circle;a.marker&&(a.marker.r=a.borderRadius)};c.prototype.markerAttribs=function(a,b){var c=a.shapeArgs||{};if(a.hasImage)return{x:a.plotX,
-y:a.plotY};if(b&&"normal"!==b){var d=a.options.marker||{};a=this.options.marker||{};a=a.states&&a.states[b]||{};d=d.states&&d.states[b]||{};b=(d.width||a.width||c.width||0)+(d.widthPlus||a.widthPlus||0);a=(d.height||a.height||c.height||0)+(d.heightPlus||a.heightPlus||0);return{x:(c.x||0)+((c.width||0)-b)/2,y:(c.y||0)+((c.height||0)-a)/2,width:b,height:a}}return c};c.prototype.pointAttribs=function(a,c){var d=n.prototype.pointAttribs.call(this,a,c),e=this.options||{},f=this.chart.options.plotOptions||
-{},g=f.series||{},k=f.heatmap||{};f=a&&a.options.borderColor||e.borderColor||k.borderColor||g.borderColor;g=a&&a.options.borderWidth||e.borderWidth||k.borderWidth||g.borderWidth||d["stroke-width"];d.stroke=a&&a.marker&&a.marker.lineColor||e.marker&&e.marker.lineColor||f||this.color;d["stroke-width"]=g;c&&"normal"!==c&&(a=D(e.states&&e.states[c],e.marker&&e.marker.states&&e.marker.states[c],a&&a.options.states&&a.options.states[c]||{}),d.fill=a.color||b.parse(d.fill).brighten(a.brightness||0).get(),
-d.stroke=a.lineColor||d.stroke);return d};c.prototype.translate=function(){var a=this.options,b=a.marker&&a.marker.symbol||"rect",c=B[b]?b:"rect",e=-1!==["circle","square"].indexOf(c);this.generatePoints();this.points.forEach(function(d){var f=d.getCellAttributes(),g=Math.min(f.x1,f.x2),h=Math.min(f.y1,f.y2),k=Math.max(Math.abs(f.x2-f.x1),0),m=Math.max(Math.abs(f.y2-f.y1),0);d.hasImage=0===(d.marker&&d.marker.symbol||b||"").indexOf("url");e&&(h=Math.abs(k-m),g=Math.min(f.x1,f.x2)+(k<m?0:h/2),h=Math.min(f.y1,
-f.y2)+(k<m?h/2:0),k=m=Math.min(k,m));d.hasImage&&(d.marker={width:k,height:m});d.plotX=d.clientX=(f.x1+f.x2)/2;d.plotY=(f.y1+f.y2)/2;d.shapeType="path";d.shapeArgs=D(!0,{x:g,y:h,width:k,height:m},{d:B[c](g,h,k,m,{r:a.borderRadius})})});w(this,"afterTranslate")};c.defaultOptions=D(E.defaultOptions,{animation:!1,borderRadius:0,borderWidth:0,nullColor:"#f7f7f7",dataLabels:{formatter:function(){var a=this.series.chart.numberFormatter,b=this.point.value;return p(b)?a(b,-1):""},inside:!0,verticalAlign:"middle",
-crop:!1,overflow:"allow",padding:0},marker:{symbol:"rect",radius:0,lineColor:void 0,states:{hover:{lineWidthPlus:0},select:{}}},clip:!0,pointRange:null,tooltip:{pointFormat:"{point.x}, {point.y}: {point.value}<br/>"},states:{hover:{halo:!1,brightness:.2}}});return c}(E);t(u.prototype,{axisTypes:g.seriesMembers.axisTypes,colorKey:g.seriesMembers.colorKey,directTouch:!0,getExtremesFromAll:!0,parallelArrays:g.seriesMembers.parallelArrays,pointArrayMap:["y","value"],pointClass:r,specialGroup:"group",
-trackerGroups:g.seriesMembers.trackerGroups,alignDataLabel:v.prototype.alignDataLabel,colorAttribs:g.seriesMembers.colorAttribs,drawLegendSymbol:q.drawRectangle,getSymbol:n.prototype.getSymbol});g.compose(u);z.registerSeriesType("heatmap",u);"";"";return u});r(b,"masters/modules/heatmap.src.js",[b["Core/Globals.js"],b["Core/Axis/Color/ColorAxis.js"]],function(b,g){b.ColorAxis=g;g.compose(b.Chart,b.Fx,b.Legend,b.Series)})});
-//# sourceMappingURL=heatmap.js.map

+ 0 - 18
nicegui/elements/lib/highcharts_modules/heikinashi.js

@@ -1,18 +0,0 @@
-/*
- Highstock JS v10.3.3 (2023-01-20)
-
- HeikinAshi series type for Highcharts Stock
-
- (c) 2010-2021 Karol Kolodziej
-
- License: www.highcharts.com/license
-*/
-(function(a){"object"===typeof module&&module.exports?(a["default"]=a,module.exports=a):"function"===typeof define&&define.amd?define("highcharts/modules/heikinashi",["highcharts","highcharts/modules/stock"],function(b){a(b);a.Highcharts=b;return a}):a("undefined"!==typeof Highcharts?Highcharts:void 0)})(function(a){function b(a,e,b,c){a.hasOwnProperty(e)||(a[e]=c.apply(null,b),"function"===typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:e,module:a[e]}})))}
-a=a?a._modules:{};b(a,"Series/HeikinAshi/HeikinAshiPoint.js",[a["Core/Series/SeriesRegistry.js"]],function(a){var e=this&&this.__extends||function(){var a=function(c,b){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var b in c)c.hasOwnProperty(b)&&(a[b]=c[b])};return a(c,b)};return function(c,b){function e(){this.constructor=c}a(c,b);c.prototype=null===b?Object.create(b):(e.prototype=b.prototype,new e)}}();a=a.seriesTypes;var b=a.hlc.prototype.pointClass;
-return function(a){function c(){var c=null!==a&&a.apply(this,arguments)||this;c.resolveColor=b.prototype.resolveColor;return c}e(c,a);return c}(a.candlestick.prototype.pointClass)});b(a,"Series/HeikinAshi/HeikinAshiSeriesDefaults.js",[],function(){"";return{dataGrouping:{groupAll:!0}}});b(a,"Series/HeikinAshi/HeikinAshiSeries.js",[a["Series/HeikinAshi/HeikinAshiPoint.js"],a["Series/HeikinAshi/HeikinAshiSeriesDefaults.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,b,m,c){function e(){this.series.forEach(function(a){a.is("heikinashi")&&
-(a.heikiashiData.length=0,a.getHeikinashiData())})}function n(){for(var a=this.points,c=this.heikiashiData,d=this.cropStart||0,g=this.processedYData.length=0;g<a.length;g++){var f=a[g],b=c[g+d];f.open=b[0];f.high=b[1];f.low=b[2];f.close=b[3];this.processedYData.push([f.open,f.high,f.low,f.close])}}function p(){this.heikiashiData.length&&(this.heikiashiData.length=0)}var q=this&&this.__extends||function(){var a=function(b,d){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,d){a.__proto__=
-d}||function(a,d){for(var b in d)d.hasOwnProperty(b)&&(a[b]=d[b])};return a(b,d)};return function(b,d){function c(){this.constructor=b}a(b,d);b.prototype=null===d?Object.create(d):(c.prototype=d.prototype,new c)}}(),k=m.seriesTypes.candlestick,l=c.addEvent,r=c.merge,h=[];c=function(a){function c(){var d=null!==a&&a.apply(this,arguments)||this;d.data=void 0;d.heikiashiData=[];d.options=void 0;d.points=void 0;d.yData=void 0;d.processedYData=void 0;return d}q(c,a);c.compose=function(a,b){for(var d=2;d<
-arguments.length;d++);k.compose(a);-1===h.indexOf(b)&&(h.push(b),l(b,"postProcessData",e));-1===h.indexOf(c)&&(h.push(c),l(c,"afterTranslate",n),l(c,"updatedData",p))};c.prototype.getHeikinashiData=function(){var a=this.allGroupedData||this.yData,c=this.heikiashiData;if(!c.length&&a&&a.length){this.modifyFirstPointValue(a[0]);for(var b=1;b<a.length;b++)this.modifyDataPoint(a[b],c[b-1])}this.heikiashiData=c};c.prototype.init=function(){a.prototype.init.apply(this,arguments);this.heikiashiData=[]};
-c.prototype.modifyFirstPointValue=function(a){this.heikiashiData.push([(a[0]+a[1]+a[2]+a[3])/4,a[1],a[2],(a[0]+a[3])/2])};c.prototype.modifyDataPoint=function(a,b){b=(b[0]+b[3])/2;var c=(a[0]+a[1]+a[2]+a[3])/4;this.heikiashiData.push([b,Math.max(a[1],c,b),Math.min(a[2],c,b),c])};c.defaultOptions=r(k.defaultOptions,b);return c}(k);c.prototype.pointClass=a;m.registerSeriesType("heikinashi",c);return c});b(a,"masters/modules/heikinashi.src.js",[a["Core/Globals.js"],a["Series/HeikinAshi/HeikinAshiSeries.js"]],
-function(a,b){b.compose(a.Series,a.Axis)})});
-//# sourceMappingURL=heikinashi.js.map

+ 0 - 21
nicegui/elements/lib/highcharts_modules/histogram-bellcurve.js

@@ -1,21 +0,0 @@
-/*
- Highcharts JS v10.3.3 (2023-01-20)
-
- (c) 2010-2021 Highsoft AS
- Author: Sebastian Domas
-
- License: www.highcharts.com/license
-*/
-(function(a){"object"===typeof module&&module.exports?(a["default"]=a,module.exports=a):"function"===typeof define&&define.amd?define("highcharts/modules/histogram-bellcurve",["highcharts"],function(g){a(g);a.Highcharts=g;return a}):a("undefined"!==typeof Highcharts?Highcharts:void 0)})(function(a){function g(a,e,b,g){a.hasOwnProperty(e)||(a[e]=g.apply(null,b),"function"===typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:e,module:a[e]}})))}a=a?a._modules:
-{};g(a,"Series/DerivedComposition.js",[a["Core/Globals.js"],a["Core/Series/Series.js"],a["Core/Utilities.js"]],function(a,e,b){var g=a.noop,h=b.addEvent,n=b.defined,p;(function(a){function b(){e.prototype.init.apply(this,arguments);this.initialised=!1;this.baseSeries=null;this.eventRemovers=[];this.addEvents()}function m(){var c=this.chart,a=this.options.baseSeries;this.baseSeries=n(a)&&(c.series[a]||c.get(a))||null}function d(){var c=this;this.eventRemovers.push(h(this.chart,"afterLinkSeries",function(){c.setBaseSeries();
-c.baseSeries&&!c.initialised&&(c.setDerivedData(),c.addBaseSeriesEvents(),c.initialised=!0)}))}function f(){var c=this;this.eventRemovers.push(h(this.baseSeries,"updatedData",function(){c.setDerivedData()}),h(this.baseSeries,"destroy",function(){c.baseSeries=null;c.initialised=!1}))}function q(){this.eventRemovers.forEach(function(c){c()});e.prototype.destroy.apply(this,arguments)}var k=[];a.hasDerivedData=!0;a.setDerivedData=g;a.compose=function(c){if(-1===k.indexOf(c)){k.push(c);var a=c.prototype;
-a.addBaseSeriesEvents=f;a.addEvents=d;a.destroy=q;a.init=b;a.setBaseSeries=m}return c};a.init=b;a.setBaseSeries=m;a.addEvents=d;a.addBaseSeriesEvents=f;a.destroy=q})(p||(p={}));return p});g(a,"Series/Histogram/HistogramSeries.js",[a["Series/DerivedComposition.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,e,b){function g(a){return function(c){for(var d=1;a[d]<=c;)d++;return a[--d]}}var h=this&&this.__extends||function(){var a=function(c,d){a=Object.setPrototypeOf||{__proto__:[]}instanceof
-Array&&function(a,c){a.__proto__=c}||function(a,c){for(var d in c)c.hasOwnProperty(d)&&(a[d]=c[d])};return a(c,d)};return function(c,d){function b(){this.constructor=c}a(c,d);c.prototype=null===d?Object.create(d):(b.prototype=d.prototype,new b)}}(),n=e.seriesTypes.column,p=b.arrayMax,r=b.arrayMin,l=b.correctFloat,m=b.extend,d=b.isNumber,f=b.merge,q=b.objectEach,k={"square-root":function(a){return Math.ceil(Math.sqrt(a.options.data.length))},sturges:function(a){return Math.ceil(Math.log(a.options.data.length)*
-Math.LOG2E)},rice:function(a){return Math.ceil(2*Math.pow(a.options.data.length,1/3))}};b=function(a){function c(){var d=null!==a&&a.apply(this,arguments)||this;d.data=void 0;d.options=void 0;d.points=void 0;d.userOptions=void 0;return d}h(c,a);c.prototype.binsNumber=function(){var a=this.options.binsNumber,c=k[a]||"function"===typeof a&&a;return Math.ceil(c&&c(this.baseSeries)||(d(a)?a:k["square-root"](this.baseSeries)))};c.prototype.derivedData=function(a,c,b){var m=l(p(a)),f=l(r(a)),k=[],e={},
-h=[];b=this.binWidth=l(d(b)?b||1:(m-f)/c);this.options.pointRange=Math.max(b,0);for(c=f;c<m&&(this.userOptions.binWidth||l(m-c)>=b||0>=l(l(f+k.length*b)-c));c=l(c+b))k.push(c),e[c]=0;0!==e[f]&&(k.push(f),e[f]=0);var t=g(k.map(function(a){return parseFloat(a)}));a.forEach(function(a){a=l(t(a));e[a]++});q(e,function(a,c){h.push({x:Number(c),y:a,x2:l(Number(c)+b)})});h.sort(function(a,c){return a.x-c.x});h[h.length-1].x2=m;return h};c.prototype.setDerivedData=function(){var a=this.baseSeries.yData;a.length?
-(a=this.derivedData(a,this.binsNumber(),this.options.binWidth),this.setData(a,!1)):this.setData([])};c.defaultOptions=f(n.defaultOptions,{binsNumber:"square-root",binWidth:void 0,pointPadding:0,groupPadding:0,grouping:!1,pointPlacement:"between",tooltip:{headerFormat:"",pointFormat:'<span style="font-size: 10px">{point.x} - {point.x2}</span><br/><span style="color:{point.color}">\u25cf</span> {series.name} <b>{point.y}</b><br/>'}});return c}(n);m(b.prototype,{hasDerivedData:a.hasDerivedData});a.compose(b);
-e.registerSeriesType("histogram",b);"";return b});g(a,"Series/Bellcurve/BellcurveSeries.js",[a["Series/DerivedComposition.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,e,b){var g=this&&this.__extends||function(){var a=function(b,d){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,d){a.__proto__=d}||function(a,d){for(var b in d)d.hasOwnProperty(b)&&(a[b]=d[b])};return a(b,d)};return function(b,d){function f(){this.constructor=b}a(b,d);b.prototype=null===
-d?Object.create(d):(f.prototype=d.prototype,new f)}}(),h=e.seriesTypes.areaspline,n=b.correctFloat,p=b.isNumber,r=b.merge;b=function(a){function b(){var b=null!==a&&a.apply(this,arguments)||this;b.data=void 0;b.options=void 0;b.points=void 0;return b}g(b,a);b.mean=function(a){var b=a.length;a=a.reduce(function(a,b){return a+b},0);return 0<b&&a/b};b.standardDeviation=function(a,f){var d=a.length;f=p(f)?f:b.mean(a);a=a.reduce(function(a,b){b-=f;return a+b*b},0);return 1<d&&Math.sqrt(a/(d-1))};b.normalDensity=
-function(a,b,e){a-=b;return Math.exp(-(a*a)/(2*e*e))/(e*Math.sqrt(2*Math.PI))};b.prototype.derivedData=function(a,e){var d=this.options.intervals,f=this.options.pointsInInterval,c=a-d*e;d=d*f*2+1;f=e/f;var g=[],h;for(h=0;h<d;h++)g.push([c,b.normalDensity(c,a,e)]),c+=f;return g};b.prototype.setDerivedData=function(){1<this.baseSeries.yData.length&&(this.setMean(),this.setStandardDeviation(),this.setData(this.derivedData(this.mean,this.standardDeviation),!1))};b.prototype.setMean=function(){this.mean=
-n(b.mean(this.baseSeries.yData))};b.prototype.setStandardDeviation=function(){this.standardDeviation=n(b.standardDeviation(this.baseSeries.yData,this.mean))};b.defaultOptions=r(h.defaultOptions,{intervals:3,pointsInInterval:3,marker:{enabled:!1}});return b}(h);a.compose(b);e.registerSeriesType("bellcurve",b);"";return b});g(a,"masters/modules/histogram-bellcurve.src.js",[],function(){})});
-//# sourceMappingURL=histogram-bellcurve.js.map

+ 0 - 18
nicegui/elements/lib/highcharts_modules/hollowcandlestick.js

@@ -1,18 +0,0 @@
-/*
- Highstock JS v10.3.3 (2023-01-20)
-
- Hollow Candlestick series type for Highcharts Stock
-
- (c) 2010-2021 Karol Kolodziej
-
- License: www.highcharts.com/license
-*/
-(function(b){"object"===typeof module&&module.exports?(b["default"]=b,module.exports=b):"function"===typeof define&&define.amd?define("highcharts/modules/hollowcandlestick",["highcharts","highcharts/modules/stock"],function(g){b(g);b.Highcharts=g;return b}):b("undefined"!==typeof Highcharts?Highcharts:void 0)})(function(b){function g(b,c,a,h){b.hasOwnProperty(c)||(b[c]=h.apply(null,a),"function"===typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:c,module:b[c]}})))}
-b=b?b._modules:{};g(b,"Series/HollowCandlestick/HollowCandlestickPoint.js",[b["Core/Series/SeriesRegistry.js"]],function(b){var c=this&&this.__extends||function(){var b=function(a,e){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,a){b.__proto__=a}||function(b,a){for(var e in a)a.hasOwnProperty(e)&&(b[e]=a[e])};return b(a,e)};return function(a,e){function c(){this.constructor=a}b(a,e);a.prototype=null===e?Object.create(e):(c.prototype=e.prototype,new c)}}();return function(b){function a(){var a=
-null!==b&&b.apply(this,arguments)||this;a.series=void 0;return a}c(a,b);a.prototype.getClassName=function(){var a=b.prototype.getClassName.apply(this),c=this.series.hollowCandlestickData[this.index];c.isBullish||"up"!==c.trendDirection||(a+="-bearish-up");return a};return a}(b.seriesTypes.candlestick.prototype.pointClass)});g(b,"Series/HollowCandlestick/HollowCandlestickSeries.js",[b["Series/HollowCandlestick/HollowCandlestickPoint.js"],b["Core/Series/SeriesRegistry.js"],b["Core/Utilities.js"],b["Core/Axis/Axis.js"]],
-function(b,c,a,g){var e=this&&this.__extends||function(){var b=function(a,f){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,a){b.__proto__=a}||function(b,a){for(var f in a)a.hasOwnProperty(f)&&(b[f]=a[f])};return b(a,f)};return function(a,f){function m(){this.constructor=a}b(a,f);a.prototype=null===f?Object.create(f):(m.prototype=f.prototype,new m)}}(),k=c.seriesTypes.candlestick,l=a.addEvent,h=a.merge;a=function(b){function a(){var a=null!==b&&b.apply(this,arguments)||this;a.data=
-void 0;a.hollowCandlestickData=[];a.options=void 0;a.points=void 0;return a}e(a,b);a.prototype.getPriceMovement=function(){var a=this.allGroupedData||this.yData,b=this.hollowCandlestickData;if(!b.length&&a&&a.length){b.push({isBullish:!0,trendDirection:"up"});for(var d=1;d<a.length;d++)b.push(this.isBullish(a[d],a[d-1]))}};a.prototype.getLineColor=function(a){return"up"===a?this.options.upColor||"#06b535":this.options.color||"#f21313"};a.prototype.getPointFill=function(a){return a.isBullish?"transparent":
-"up"===a.trendDirection?this.options.upColor||"#06b535":this.options.color||"#f21313"};a.prototype.init=function(){b.prototype.init.apply(this,arguments);this.hollowCandlestickData=[]};a.prototype.isBullish=function(a,b){return{isBullish:a[0]<=a[3],trendDirection:a[3]<b[3]?"down":"up"}};a.prototype.pointAttribs=function(a,c){var d=b.prototype.pointAttribs.call(this,a,c);a=this.hollowCandlestickData[a.index];d.fill=this.getPointFill(a)||d.fill;d.stroke=this.getLineColor(a.trendDirection)||d.stroke;
-c&&(c=this.options.states[c],d.fill=c.color||d.fill,d.stroke=c.lineColor||d.stroke,d["stroke-width"]=c.lineWidth||d["stroke-width"]);return d};a.defaultOptions=h(k.defaultOptions,{color:"#f21313",dataGrouping:{groupAll:!0,groupPixelWidth:10},lineColor:"#f21313",upColor:"#06b535",upLineColor:"#06b535"});return a}(k);l(a,"updatedData",function(){this.hollowCandlestickData.length&&(this.hollowCandlestickData.length=0)});l(g,"postProcessData",function(){this.series.forEach(function(a){a.is("hollowcandlestick")&&
-a.getPriceMovement()})});a.prototype.pointClass=b;c.registerSeriesType("hollowcandlestick",a);"";return a});g(b,"masters/modules/hollowcandlestick.src.js",[],function(){})});
-//# sourceMappingURL=hollowcandlestick.js.map

+ 0 - 21
nicegui/elements/lib/highcharts_modules/item-series.js

@@ -1,21 +0,0 @@
-/*
- Highcharts JS v10.3.3 (2023-01-20)
-
- Item series type for Highcharts
-
- (c) 2019 Torstein Honsi
-
- License: www.highcharts.com/license
-*/
-(function(a){"object"===typeof module&&module.exports?(a["default"]=a,module.exports=a):"function"===typeof define&&define.amd?define("highcharts/modules/item-series",["highcharts"],function(b){a(b);a.Highcharts=b;return a}):a("undefined"!==typeof Highcharts?Highcharts:void 0)})(function(a){function b(a,e,c,b){a.hasOwnProperty(e)||(a[e]=b.apply(null,c),"function"===typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:e,module:a[e]}})))}a=a?a._modules:{};
-b(a,"Series/Item/ItemPoint.js",[a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,e){var c=this&&this.__extends||function(){var a=function(b,f){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var f in b)b.hasOwnProperty(f)&&(a[f]=b[f])};return a(b,f)};return function(b,f){function e(){this.constructor=b}a(b,f);b.prototype=null===f?Object.create(f):(e.prototype=f.prototype,new e)}}(),b=a.series;e=e.extend;a=function(a){function b(){var b=
-null!==a&&a.apply(this,arguments)||this;b.options=void 0;b.series=void 0;return b}c(b,a);return b}(a.seriesTypes.pie.prototype.pointClass);e(a.prototype,{haloPath:b.prototype.pointClass.prototype.haloPath});return a});b(a,"Series/Item/ItemSeries.js",[a["Core/Globals.js"],a["Series/Item/ItemPoint.js"],a["Core/Defaults.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,b,c,x,h){var e=this&&this.__extends||function(){var a=function(b,d){a=Object.setPrototypeOf||{__proto__:[]}instanceof
-Array&&function(a,d){a.__proto__=d}||function(a,d){for(var b in d)d.hasOwnProperty(b)&&(a[b]=d[b])};return a(b,d)};return function(b,d){function q(){this.constructor=b}a(b,d);b.prototype=null===d?Object.create(d):(q.prototype=d.prototype,new q)}}(),f=c.defaultOptions,y=x.seriesTypes.pie,J=h.defined,z=h.extend,K=h.fireEvent,p=h.isNumber,C=h.merge,L=h.pick;c=function(b){function c(){var a=null!==b&&b.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}e(c,b);c.prototype.animate=
-function(a){a?this.group.attr({opacity:0}):this.group.animate({opacity:1},this.options.animation)};c.prototype.drawDataLabels=function(){this.center&&this.slots?a.seriesTypes.pie.prototype.drawDataLabels.call(this):this.points.forEach(function(a){a.destroyElements({dataLabel:1})})};c.prototype.drawPoints=function(){var a=this,b=this.options,c=a.chart.renderer,e=b.marker,f=this.borderWidth%2?.5:1,A=0,t=this.getRows(),h=Math.ceil(this.total/t),u=this.chart.plotWidth/h,v=this.chart.plotHeight/t,w=this.itemSize||
-Math.min(u,v);this.points.forEach(function(d){var q,G,l=d.marker||{},n=l.symbol||e.symbol;l=L(l.radius,e.radius);var I=J(l)?2*l:w,r=I*b.itemPadding,B;d.graphics=q=d.graphics||[];a.chart.styledMode||(G=a.pointAttribs(d,d.selected&&"select"));if(!d.isNull&&d.visible){d.graphic||(d.graphic=c.g("point").add(a.group));for(var m=0;m<(d.y||0);m++){if(a.center&&a.slots){var g=a.slots.shift();var k=g.x-w/2;g=g.y-w/2}else"horizontal"===b.layout?(k=A%h*u,g=v*Math.floor(A/h)):(k=u*Math.floor(A/t),g=A%t*v);k+=
-r;g+=r;var p=B=Math.round(I-2*r);a.options.crisp&&(k=Math.round(k)-f,g=Math.round(g)+f);k={x:k,y:g,width:B,height:p};"undefined"!==typeof l&&(k.r=l);(g=q[m])?g.animate(k):(G&&z(k,G),g=c.symbol(n,void 0,void 0,void 0,void 0,{backgroundSize:"within"}).attr(k).add(d.graphic));g.isActive=!0;q[m]=g;A++}}q.forEach(function(a,b){a&&(a.isActive?a.isActive=!1:(a.destroy(),q.splice(b,1)))})})};c.prototype.getRows=function(){var a=this.options.rows;if(!a){var b=this.chart.plotWidth/this.chart.plotHeight;a=Math.sqrt(this.total);
-if(1<b)for(a=Math.ceil(a);0<a;){var c=this.total/a;if(c/a>b)break;a--}else for(a=Math.floor(a);a<this.total;){c=this.total/a;if(c/a<b)break;a++}}return a};c.prototype.getSlots=function(){function a(a){0<F&&(a.row.colCount--,F--)}for(var b=this.center,c=b[2],e=b[3],f,h=this.slots,t,p,u,v,w,x,D,E,l=0,n,H=this.endAngleRad-this.startAngleRad,r=Number.MAX_VALUE,B,m,g,k=this.options.rows,y=(c-e)/c,z=0===H%(2*Math.PI),C=this.total||0;r>C+(m&&z?m.length:0);)for(B=r,r=h.length=0,m=g,g=[],l++,n=c/l/2,k?(e=
-(n-k)/n*c,0<=e?n=k:(e=0,y=1)):n=Math.floor(n*y),f=n;0<f;f--)u=(e+f/n*(c-e-l))/2,v=H*u,w=Math.ceil(v/l),g.push({rowRadius:u,rowLength:v,colCount:w}),r+=w+1;if(m){for(var F=B-this.total-(z?m.length:0);0<F;)m.map(function(a){return{angle:a.colCount/a.rowLength,row:a}}).sort(function(a,b){return b.angle-a.angle}).slice(0,Math.min(F,Math.ceil(m.length/2))).forEach(a);m.forEach(function(a){var c=a.rowRadius;x=(a=a.colCount)?H/a:0;for(E=0;E<=a;E+=1)D=this.startAngleRad+E*x,t=b[0]+Math.cos(D)*c,p=b[1]+Math.sin(D)*
-c,h.push({x:t,y:p,angle:D})},this);h.sort(function(a,b){return a.angle-b.angle});this.itemSize=l;return h}};c.prototype.translate=function(b){0===this.total&&p(this.options.startAngle)&&p(this.options.endAngle)&&(this.center=this.getCenter());this.slots||(this.slots=[]);p(this.options.startAngle)&&p(this.options.endAngle)?(a.seriesTypes.pie.prototype.translate.apply(this,arguments),this.slots=this.getSlots()):(this.generatePoints(),K(this,"afterTranslate"))};c.defaultOptions=C(y.defaultOptions,{endAngle:void 0,
-innerSize:"40%",itemPadding:.1,layout:"vertical",marker:C(f.plotOptions.line.marker,{radius:null}),rows:void 0,crisp:!1,showInLegend:!0,startAngle:void 0});return c}(y);z(c.prototype,{markerAttribs:void 0});c.prototype.pointClass=b;x.registerSeriesType("item",c);"";return c});b(a,"masters/modules/item-series.src.js",[],function(){})});
-//# sourceMappingURL=item-series.js.map

+ 0 - 14
nicegui/elements/lib/highcharts_modules/lollipop.js

@@ -1,14 +0,0 @@
-/*
- Highcharts JS v10.3.3 (2023-01-20)
-
- (c) 2009-2021 Sebastian Bochan, Rafal Sebestjanski
-
- License: www.highcharts.com/license
-*/
-(function(b){"object"===typeof module&&module.exports?(b["default"]=b,module.exports=b):"function"===typeof define&&define.amd?define("highcharts/modules/lollipop",["highcharts"],function(d){b(d);b.Highcharts=d;return b}):b("undefined"!==typeof Highcharts?Highcharts:void 0)})(function(b){function d(b,c,d,a){b.hasOwnProperty(c)||(b[c]=a.apply(null,d),"function"===typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:c,module:b[c]}})))}b=b?b._modules:{};d(b,
-"Series/Lollipop/LollipopPoint.js",[b["Core/Series/SeriesRegistry.js"],b["Core/Utilities.js"]],function(b,c){var d=this&&this.__extends||function(){var b=function(a,e){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,a){b.__proto__=a}||function(b,a){for(var h in a)a.hasOwnProperty(h)&&(b[h]=a[h])};return b(a,e)};return function(a,e){function c(){this.constructor=a}b(a,e);a.prototype=null===e?Object.create(e):(c.prototype=e.prototype,new c)}}(),a=b.seriesTypes,k=a.scatter.prototype.pointClass;
-a=a.dumbbell.prototype.pointClass;c=c.extend;b=function(b){function a(){var a=null!==b&&b.apply(this,arguments)||this;a.options=void 0;a.series=void 0;a.plotX=void 0;return a}d(a,b);return a}(b.series.prototype.pointClass);c(b.prototype,{destroy:a.prototype.destroy,pointSetState:k.prototype.setState,setState:a.prototype.setState});return b});d(b,"Series/Lollipop/LollipopSeries.js",[b["Series/Lollipop/LollipopPoint.js"],b["Core/Series/SeriesRegistry.js"],b["Core/Series/Series.js"],b["Core/Utilities.js"]],
-function(b,c,d,a){var k=this&&this.__extends||function(){var b=function(a,c){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,a){b.__proto__=a}||function(b,a){for(var c in a)a.hasOwnProperty(c)&&(b[c]=a[c])};return b(a,c)};return function(a,c){function d(){this.constructor=a}b(a,c);a.prototype=null===c?Object.create(c):(d.prototype=c.prototype,new d)}}(),g=c.seriesTypes,f=g.column.prototype;g=g.dumbbell.prototype;var e=a.extend,l=a.merge;a=function(b){function a(){var a=null!==
-b&&b.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}k(a,b);a.prototype.drawPoints=function(){var a=this.points.length,c=0;for(b.prototype.drawPoints.apply(this,arguments);c<a;){var d=this.points[c];this.drawConnector(d);c++}};a.defaultOptions=l(d.defaultOptions,{threshold:0,connectorWidth:1,groupPadding:.2,pointPadding:.1,states:{hover:{lineWidthPlus:0,connectorWidthPlus:1,halo:!1}},lineWidth:0,dataLabels:{align:void 0,verticalAlign:void 0},pointRange:1});return a}(d);
-e(a.prototype,{alignDataLabel:f.alignDataLabel,crispCol:f.crispCol,drawConnector:g.drawConnector,drawDataLabels:f.drawDataLabels,getColumnMetrics:f.getColumnMetrics,getConnectorAttribs:g.getConnectorAttribs,pointClass:b,translate:f.translate});c.registerSeriesType("lollipop",a);"";return a});d(b,"masters/modules/lollipop.src.js",[],function(){})});
-//# sourceMappingURL=lollipop.js.map

+ 0 - 45
nicegui/elements/lib/highcharts_modules/marker-clusters.js

@@ -1,45 +0,0 @@
-/*
- Highcharts JS v10.3.3 (2023-01-20)
-
- Marker clusters module for Highcharts
-
- (c) 2010-2021 Wojciech Chmiel
-
- License: www.highcharts.com/license
-*/
-(function(n){"object"===typeof module&&module.exports?(n["default"]=n,module.exports=n):"function"===typeof define&&define.amd?define("highcharts/modules/marker-clusters",["highcharts"],function(w){n(w);n.Highcharts=w;return n}):n("undefined"!==typeof Highcharts?Highcharts:void 0)})(function(n){function w(n,E,w,J){n.hasOwnProperty(E)||(n[E]=J.apply(null,w),"function"===typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:E,module:n[E]}})))}n=n?n._modules:
-{};w(n,"Extensions/MarkerClusters.js",[n["Core/Animation/AnimationUtilities.js"],n["Core/Chart/Chart.js"],n["Core/Defaults.js"],n["Core/Series/Point.js"],n["Core/Series/Series.js"],n["Core/Series/SeriesRegistry.js"],n["Core/Renderer/SVG/SVGRenderer.js"],n["Core/Utilities.js"],n["Core/Axis/Axis.js"]],function(n,w,ea,J,N,O,t,x,fa){function E(a){var b=a.length,c=0,e=0,d;for(d=0;d<b;d++)c+=a[d].x,e+=a[d].y;return{x:c/b,y:e/b}}function T(a,b){var c=[];c.length=b;a.clusters.forEach(function(a){a.data.forEach(function(a){c[a.dataIndex]=
-a})});a.noise.forEach(function(a){c[a.data[0].dataIndex]=a.data[0]});return c}function U(a,b,c,e,d){a.point&&(e&&a.point.graphic&&(a.point.graphic.show(),a.point.graphic.attr({opacity:b}).animate({opacity:1},c)),d&&a.point.dataLabel&&(a.point.dataLabel.show(),a.point.dataLabel.attr({opacity:b}).animate({opacity:1},c)))}function V(a,b,c){a.point&&(b&&a.point.graphic&&a.point.graphic.hide(),c&&a.point.dataLabel&&a.point.dataLabel.hide())}function ha(a){a&&W(a,function(a){a.point&&a.point.destroy&&a.point.destroy()})}
-function P(a,b,c,e){U(a,e,c,!0,!0);b.forEach(function(a){a.point&&a.point.destroy&&a.point.destroy()})}var X=n.animObject;n=ea.defaultOptions;O=O.seriesTypes;var K=t.prototype.symbols,A=x.addEvent,B=x.defined,Y=x.error,Z=x.isArray,Q=x.isFunction,R=x.isObject,F=x.isNumber,S=x.merge,W=x.objectEach,aa=x.relativeLength,L=x.syncTimeout;"";t=O.scatter;var ba=N.prototype.generatePoints,M=[],ca=0,C={enabled:!1,allowOverlap:!0,animation:{duration:500},drillToCluster:!0,minimumClusterSize:2,layoutAlgorithm:{gridSize:50,
-distance:40,kmeansThreshold:100},marker:{symbol:"cluster",radius:15,lineWidth:0,lineColor:"#ffffff"},dataLabels:{enabled:!0,format:"{point.clusterPointsAmount}",verticalAlign:"middle",align:"center",style:{color:"contrast"},inside:!0}};(n.plotOptions||{}).series=S((n.plotOptions||{}).series,{cluster:C,tooltip:{clusterFormat:"<span>Clustered points: {point.clusterPointsAmount}</span><br/>"}});var I=function(a,b){var c=a.chart,e=a.xAxis;a=a.yAxis;return c.mapView?c.mapView.pixelsToProjectedUnits(b):
-{x:e?e.toValue(b.x):0,y:a?a.toValue(b.y):0}},H=function(a,b){var c=a.chart,e=a.xAxis;a=a.yAxis;return c.mapView?c.mapView.projectedUnitsToPixels(b):{x:e?e.toPixels(b.x):0,y:a?a.toPixels(b.y):0}};K.cluster=function(a,b,c,e){c/=2;e/=2;var d=K.arc(a+c,b+e,c-4,e-4,{start:.5*Math.PI,end:2.5*Math.PI,open:!1}),h=K.arc(a+c,b+e,c-3,e-3,{start:.5*Math.PI,end:2.5*Math.PI,innerR:c-2,open:!1});return K.arc(a+c,b+e,c-1,e-1,{start:.5*Math.PI,end:2.5*Math.PI,innerR:c,open:!1}).concat(h,d)};t.prototype.animateClusterPoint=
-function(a){var b=this.chart,c=b.mapView,e=X((this.options.cluster||{}).animation),d=e.duration||500,h=(this.markerClusterInfo||{}).pointsState,k=(h||{}).newState,m=(h||{}).oldState,r=[],p=h=0,q=0,l=!1,y=!1;if(m&&k){var g=k[a.stateId];h=H(this,g);p=h.x-(c?0:b.plotLeft);q=h.y-(c?0:b.plotTop);if(1===g.parentsId.length){a=(k||{})[a.stateId].parentsId[0];var f=m[a];g.point&&g.point.graphic&&f&&f.point&&f.point.plotX&&f.point.plotY&&f.point.plotX!==g.point.plotX&&f.point.plotY!==g.point.plotY&&(a=g.point.graphic.getBBox(),
-h=g.point.graphic&&g.point.graphic.isImg?0:a.width/2,g.point.graphic.attr({x:f.point.plotX-h,y:f.point.plotY-h}),g.point.graphic.animate({x:p-(g.point.graphic.radius||0),y:q-(g.point.graphic.radius||0)},e,function(){y=!0;f.point&&f.point.destroy&&f.point.destroy()}),g.point.dataLabel&&g.point.dataLabel.alignAttr&&f.point.dataLabel&&f.point.dataLabel.alignAttr&&(g.point.dataLabel.attr({x:f.point.dataLabel.alignAttr.x,y:f.point.dataLabel.alignAttr.y}),g.point.dataLabel.animate({x:g.point.dataLabel.alignAttr.x,
-y:g.point.dataLabel.alignAttr.y},e)))}else 0===g.parentsId.length?(V(g,!0,!0),L(function(){U(g,.1,e,!0,!0)},d/2)):(V(g,!0,!0),g.parentsId.forEach(function(a){m&&m[a]&&(f=m[a],r.push(f),f.point&&f.point.graphic&&(l=!0,f.point.graphic.show(),f.point.graphic.animate({x:p-(f.point.graphic.radius||0),y:q-(f.point.graphic.radius||0),opacity:.4},e,function(){y=!0;P(g,r,e,.7)}),f.point.dataLabel&&-9999!==f.point.dataLabel.y&&g.point&&g.point.dataLabel&&g.point.dataLabel.alignAttr&&(f.point.dataLabel.show(),
-f.point.dataLabel.animate({x:g.point.dataLabel.alignAttr.x,y:g.point.dataLabel.alignAttr.y,opacity:.4},e))))}),L(function(){y||P(g,r,e,.85)},d),l||L(function(){P(g,r,e,.1)},d/2))}};t.prototype.getGridOffset=function(){var a=this.chart,b=this.xAxis,c=this.yAxis;b=b&&this.dataMinX&&this.dataMaxX?b.reversed?b.toPixels(this.dataMaxX):b.toPixels(this.dataMinX):a.plotLeft;a=c&&this.dataMinY&&this.dataMaxY?c.reversed?c.toPixels(this.dataMinY):c.toPixels(this.dataMaxY):a.plotTop;return{plotLeft:b,plotTop:a}};
-t.prototype.getScaledGridSize=function(a){var b=this.xAxis,c=this.chart.mapView;a=a.processedGridSize||C.layoutAlgorithm.gridSize;var e=!0,d=1,h=1;this.gridValueSize||(this.gridValueSize=c?a/c.getScale():Math.abs(b.toValue(a)-b.toValue(0)));b=c?this.gridValueSize*c.getScale():b.toPixels(this.gridValueSize)-b.toPixels(0);for(b=+(a/b).toFixed(14);e&&1!==b;)c=Math.pow(2,d),.75<b&&1.25>b?e=!1:b>=1/c&&b<1/c*2?(e=!1,h=c):b<=c&&b>c/2&&(e=!1,h=1/c),d++;return a/h/b};t.prototype.getRealExtremes=function(){var a=
-this.chart,b=a.mapView?0:a.plotLeft,c=I(this,{x:b,y:a.mapView?0:a.plotTop}),e=I(this,{x:b+a.plotWidth,y:b+a.plotHeight});a=c.x;b=e.x;c=c.y;e=e.y;return{minX:Math.min(a,b),maxX:Math.max(a,b),minY:Math.min(c,e),maxY:Math.max(c,e)}};t.prototype.onDrillToCluster=function(a){(a.point||a.target).firePointEvent("drillToCluster",a,function(a){var b=a.point||a.target,e=b.series.xAxis,d=b.series.yAxis,h=b.series.chart,k=h.mapView;if((b.series.options.cluster||{}).drillToCluster&&b.clusteredData){var m=b.clusteredData.map(function(a){return a.x}).sort(function(a,
-b){return a-b});b=b.clusteredData.map(function(a){return a.y}).sort(function(a,b){return a-b});var r=m[0],p=m[m.length-1];m=b[0];var q=b[b.length-1],l=Math.abs(.1*(p-r)),y=Math.abs(.1*(q-m));b=Math.min(r,p)-l;r=Math.max(r,p)+l;p=Math.min(m,q)-y;m=Math.max(m,q)+y;k?k.fitToBounds({x1:b,x2:r,y1:p,y2:m}):e&&d&&(h.pointer.zoomX=!0,h.pointer.zoomY=!0,h.zoom({originalEvent:a,xAxis:[{axis:e,min:b,max:r}],yAxis:[{axis:d,min:p,max:m}]}))}})};t.prototype.getClusterDistancesFromPoint=function(a,b,c){for(var e=
-[],d=0;d<a.length;d++){var h=H(this,{x:b,y:c}),k=H(this,{x:a[d].posX,y:a[d].posY});e.push({clusterIndex:d,distance:Math.sqrt(Math.pow(h.x-k.x,2)+Math.pow(h.y-k.y,2))})}return e.sort(function(a,b){return a.distance-b.distance})};t.prototype.getPointsState=function(a,b,c){b=b?T(b,c):[];c=T(a,c);var e={},d;M=[];a.clusters.forEach(function(a){e[a.stateId]={x:a.x,y:a.y,id:a.stateId,point:a.point,parentsId:[]}});a.noise.forEach(function(a){e[a.stateId]={x:a.x,y:a.y,id:a.stateId,point:a.point,parentsId:[]}});
-for(d=0;d<c.length;d++){a=c[d];var h=b[d];a&&h&&a.parentStateId&&h.parentStateId&&e[a.parentStateId]&&-1===e[a.parentStateId].parentsId.indexOf(h.parentStateId)&&(e[a.parentStateId].parentsId.push(h.parentStateId),-1===M.indexOf(h.parentStateId)&&M.push(h.parentStateId))}return e};t.prototype.markerClusterAlgorithms={grid:function(a,b,c,e){var d={},h=this.getGridOffset(),k=this.getScaledGridSize(e);for(e=0;e<a.length;e++){var m=H(this,{x:a[e],y:b[e]});var r=m.x-h.plotLeft;m=m.y-h.plotTop;r=Math.floor(r/
-k);m=Math.floor(m/k);r=m+"-"+r;d[r]||(d[r]=[]);d[r].push({dataIndex:c[e],x:a[e],y:b[e]})}return d},kmeans:function(a,b,c,e){var d=[],h=[],k={},m=e.processedDistance||C.layoutAlgorithm.distance,r=e.iterations,p=0,q=!0,l=0,y=0;var g=[];var f;e.processedGridSize=e.processedDistance;l=this.markerClusterAlgorithms?this.markerClusterAlgorithms.grid.call(this,a,b,c,e):{};for(f in l)1<l[f].length&&(g=E(l[f]),d.push({posX:g.x,posY:g.y,oldX:0,oldY:0,startPointsLen:l[f].length,points:[]}));for(;q;){d.map(function(a){a.points.length=
-0;return a});for(q=h.length=0;q<a.length;q++)l=a[q],y=b[q],g=this.getClusterDistancesFromPoint(d,l,y),g.length&&g[0].distance<m?d[g[0].clusterIndex].points.push({x:l,y:y,dataIndex:c[q]}):h.push({x:l,y:y,dataIndex:c[q]});for(f=0;f<d.length;f++)1===d[f].points.length&&(g=this.getClusterDistancesFromPoint(d,d[f].points[0].x,d[f].points[0].y),g[1].distance<m&&(d[g[1].clusterIndex].points.push(d[f].points[0]),d[g[0].clusterIndex].points.length=0));q=!1;for(f=0;f<d.length;f++)if(g=E(d[f].points),d[f].oldX=
-d[f].posX,d[f].oldY=d[f].posY,d[f].posX=g.x,d[f].posY=g.y,d[f].posX>d[f].oldX+1||d[f].posX<d[f].oldX-1||d[f].posY>d[f].oldY+1||d[f].posY<d[f].oldY-1)q=!0;r&&(q=p<r-1);p++}d.forEach(function(a,b){k["cluster"+b]=a.points});h.forEach(function(a,b){k["noise"+b]=[a]});return k},optimizedKmeans:function(a,b,c,e){var d=this,h=e.processedDistance||C.layoutAlgorithm.gridSize,k={},m=d.getRealExtremes(),r=(d.options.cluster||{}).marker,p,q,l;!d.markerClusterInfo||d.initMaxX&&d.initMaxX<m.maxX||d.initMinX&&d.initMinX>
-m.minX||d.initMaxY&&d.initMaxY<m.maxY||d.initMinY&&d.initMinY>m.minY?(d.initMaxX=m.maxX,d.initMinX=m.minX,d.initMaxY=m.maxY,d.initMinY=m.minY,k=d.markerClusterAlgorithms?d.markerClusterAlgorithms.kmeans.call(d,a,b,c,e):{},d.baseClusters=null):(d.baseClusters||(d.baseClusters={clusters:d.markerClusterInfo.clusters,noise:d.markerClusterInfo.noise}),d.baseClusters.clusters.forEach(function(a){a.pointsOutside=[];a.pointsInside=[];a.data.forEach(function(b){var e=H(d,b),c=H(d,a);q=Math.sqrt(Math.pow(e.x-
-c.x,2)+Math.pow(e.y-c.y,2));l=a.clusterZone&&a.clusterZone.marker&&a.clusterZone.marker.radius?a.clusterZone.marker.radius:r&&r.radius?r.radius:C.marker.radius;p=0<=h-l?h-l:l;q>l+p&&B(a.pointsOutside)?a.pointsOutside.push(b):B(a.pointsInside)&&a.pointsInside.push(b)});a.pointsInside.length&&(k[a.id]=a.pointsInside);a.pointsOutside.forEach(function(b,e){k[a.id+"_noise"+e]=[b]})}),d.baseClusters.noise.forEach(function(a){k[a.id]=a.data}));return k}};t.prototype.preventClusterCollisions=function(a){var b=
-this,c=a.key.split("-").map(parseFloat),e=c[0],d=c[1],h=a.gridSize,k=a.groupedData,m=a.defaultRadius,r=a.clusterRadius,p=d*h,q=e*h;c=H(b,a);var l=c.x,y=c.y;c=[];var g=0,f=0,n=(b.options.cluster||{}).marker,u=(b.options.cluster||{}).zones,v=b.getGridOffset(),t,da,z,x,w,A,F;l-=v.plotLeft;y-=v.plotTop;for(z=1;5>z;z++){var G=z%2?-1:1;var D=3>z?-1:1;G=Math.floor((l+G*r)/h);D=Math.floor((y+D*r)/h);G=[D+"-"+G,D+"-"+d,e+"-"+G];for(D=0;D<G.length;D++)-1===c.indexOf(G[D])&&G[D]!==a.key&&c.push(G[D])}c.forEach(function(a){if(k[a]){k[a].posX||
-(A=E(k[a]),k[a].posX=A.x,k[a].posY=A.y);var c=H(b,{x:k[a].posX||0,y:k[a].posY||0});t=c.x-v.plotLeft;da=c.y-v.plotTop;c=a.split("-").map(parseFloat);w=c[0];x=c[1];if(u)for(g=k[a].length,z=0;z<u.length;z++)g>=u[z].from&&g<=u[z].to&&(f=B((u[z].marker||{}).radius)?u[z].marker.radius||0:n&&n.radius?n.radius:C.marker.radius);1<k[a].length&&0===f&&n&&n.radius?f=n.radius:1===k[a].length&&(f=m);F=r+f;f=0;x!==d&&Math.abs(l-t)<F&&(l=0>x-d?p+r:p+h-r);w!==e&&Math.abs(y-da)<F&&(y=0>w-e?q+r:q+h-r)}});c=I(b,{x:l+
-v.plotLeft,y:y+v.plotTop});k[a.key].posX=c.x;k[a.key].posY=c.y;return c};t.prototype.isValidGroupedDataObject=function(a){var b=!1,c;if(!R(a))return!1;W(a,function(a){b=!0;if(Z(a)&&a.length)for(c=0;c<a.length;c++){if(!R(a[c])||!a[c].x||!a[c].y){b=!1;break}}else b=!1});return b};t.prototype.getClusteredData=function(a,b){var c=[],e=[],d=[],h=[],k=[],m=0,r=Math.max(2,b.minimumClusterSize||2),p,q;if(Q(b.layoutAlgorithm.type)&&!this.isValidGroupedDataObject(a))return Y("Highcharts marker-clusters module: The custom algorithm result is not valid!",
-!1,this.chart),!1;for(q in a)if(a[q].length>=r){var l=a[q];var n=Math.random().toString(36).substring(2,7)+"-"+ca++;var g=l.length;if(b.zones)for(p=0;p<b.zones.length;p++)if(g>=b.zones[p].from&&g<=b.zones[p].to){var f=b.zones[p];f.zoneIndex=p;var t=b.zones[p].marker;var u=b.zones[p].className}var v=E(l);"grid"!==b.layoutAlgorithm.type||b.allowOverlap?v={x:v.x,y:v.y}:(p=this.options.marker||{},v=this.preventClusterCollisions({x:v.x,y:v.y,key:q,groupedData:a,gridSize:this.getScaledGridSize(b.layoutAlgorithm),
-defaultRadius:p.radius||3+(p.lineWidth||0),clusterRadius:t&&t.radius?t.radius:(b.marker||{}).radius||C.marker.radius}));for(p=0;p<g;p++)l[p].parentStateId=n;d.push({x:v.x,y:v.y,id:q,stateId:n,index:m,data:l,clusterZone:f,clusterZoneClassName:u});c.push(v.x);e.push(v.y);k.push({options:{formatPrefix:"cluster",dataLabels:b.dataLabels,marker:S(b.marker,{states:b.states},t||{})}});if(this.options.data&&this.options.data.length)for(p=0;p<g;p++)R(this.options.data[l[p].dataIndex])&&(l[p].options=this.options.data[l[p].dataIndex]);
-m++;t=null}else for(p=0;p<a[q].length;p++)l=a[q][p],n=Math.random().toString(36).substring(2,7)+"-"+ca++,g=((this.options||{}).data||[])[l.dataIndex],c.push(l.x),e.push(l.y),l.parentStateId=n,h.push({x:l.x,y:l.y,id:q,stateId:n,index:m,data:a[q]}),n=g&&"object"===typeof g&&!Z(g)?S(g,{x:l.x,y:l.y}):{userOptions:g,x:l.x,y:l.y},k.push({options:n}),m++;return{clusters:d,noise:h,groupedXData:c,groupedYData:e,groupMap:k}};t.prototype.destroyClusteredData=function(){(this.markerClusterSeriesData||[]).forEach(function(a){a&&
-a.destroy&&a.destroy()});this.markerClusterSeriesData=null};t.prototype.hideClusteredData=function(){var a=this.markerClusterSeriesData,b=((this.markerClusterInfo||{}).pointsState||{}).oldState||{},c=M.map(function(a){return(b[a].point||{}).id||""});(a||[]).forEach(function(a){a&&-1!==c.indexOf(a.id)?(a.graphic&&a.graphic.hide(),a.dataLabel&&a.dataLabel.hide()):a&&a.destroy&&a.destroy()})};t.prototype.generatePoints=function(){var a=this,b=a.chart,c=b.mapView,e=a.xData,d=a.yData,h=a.options.cluster,
-k=a.getRealExtremes(),m=[],n=[],p=[],q,l,t;c&&a.is("mappoint")&&e&&d&&(a.options.data||[]).forEach(function(b,c){if(b=a.projectPoint(b))e[c]=b.x,d[c]=b.y});if(h&&h.enabled&&e&&e.length&&d&&d.length&&!b.polar){var g=h.layoutAlgorithm.type;c=h.layoutAlgorithm;c.processedGridSize=aa(c.gridSize||C.layoutAlgorithm.gridSize,b.plotWidth);c.processedDistance=aa(c.distance||C.layoutAlgorithm.distance,b.plotWidth);b=c.kmeansThreshold||C.layoutAlgorithm.kmeansThreshold;var f=c.processedGridSize/2;var x=I(a,
-{x:0,y:0});var u=I(a,{x:f,y:f});f=Math.abs(x.x-u.x);x=Math.abs(x.y-u.y);for(u=0;u<e.length;u++){if(!a.dataMaxX)if(B(v)&&B(q)&&B(w)&&B(l))F(d[u])&&F(w)&&F(l)&&(v=Math.max(e[u],v),q=Math.min(e[u],q),w=Math.max(d[u]||w,w),l=Math.min(d[u]||l,l));else{var v=q=e[u];var w=l=d[u]}e[u]>=k.minX-f&&e[u]<=k.maxX+f&&(d[u]||k.minY)>=k.minY-x&&(d[u]||k.maxY)<=k.maxY+x&&(m.push(e[u]),n.push(d[u]),p.push(u))}B(v)&&B(q)&&F(w)&&F(l)&&(a.dataMaxX=v,a.dataMinX=q,a.dataMaxY=w,a.dataMinY=l);k=Q(g)?g:a.markerClusterAlgorithms?
-g&&a.markerClusterAlgorithms[g]?a.markerClusterAlgorithms[g]:m.length<b?a.markerClusterAlgorithms.kmeans:a.markerClusterAlgorithms.grid:function(){return!1};k=(m=k.call(this,m,n,p,c))?a.getClusteredData(m,h):m;h.animation&&a.markerClusterInfo&&a.markerClusterInfo.pointsState&&a.markerClusterInfo.pointsState.oldState?(ha(a.markerClusterInfo.pointsState.oldState),m=a.markerClusterInfo.pointsState.newState):m={};n=e.length;p=a.markerClusterInfo;k&&(a.processedXData=k.groupedXData,a.processedYData=k.groupedYData,
-a.hasGroupedData=!0,a.markerClusterInfo=k,a.groupMap=k.groupMap);ba.apply(this);k&&a.markerClusterInfo&&((a.markerClusterInfo.clusters||[]).forEach(function(b){t=a.points[b.index];t.isCluster=!0;t.clusteredData=b.data;t.clusterPointsAmount=b.data.length;b.point=t;A(t,"click",a.onDrillToCluster)}),(a.markerClusterInfo.noise||[]).forEach(function(b){b.point=a.points[b.index]}),h.animation&&a.markerClusterInfo&&(a.markerClusterInfo.pointsState={oldState:m,newState:a.getPointsState(k,p,n)}),h.animation?
-this.hideClusteredData():this.destroyClusteredData(),this.markerClusterSeriesData=this.hasGroupedData?this.points:null)}else ba.apply(this)};A(w,"render",function(){(this.series||[]).forEach(function(a){if(a.markerClusterInfo){var b=((a.markerClusterInfo||{}).pointsState||{}).oldState;(a.options.cluster||{}).animation&&a.markerClusterInfo&&0===a.chart.pointer.pinchDown.length&&"pan"!==((a.xAxis||{}).eventArgs||{}).trigger&&b&&Object.keys(b).length&&(a.markerClusterInfo.clusters.forEach(function(b){a.animateClusterPoint(b)}),
-a.markerClusterInfo.noise.forEach(function(b){a.animateClusterPoint(b)}))}})});A(J,"update",function(){if(this.dataGroup)return Y("Highcharts marker-clusters module: Running `Point.update` when point belongs to clustered series is not supported.",!1,this.series.chart),!1});A(N,"destroy",t.prototype.destroyClusteredData);A(N,"afterRender",function(){var a=(this.options.cluster||{}).drillToCluster;this.markerClusterInfo&&this.markerClusterInfo.clusters&&this.markerClusterInfo.clusters.forEach(function(b){b.point&&
-b.point.graphic&&(b.point.graphic.addClass("highcharts-cluster-point"),a&&b.point&&(b.point.graphic.css({cursor:"pointer"}),b.point.dataLabel&&b.point.dataLabel.css({cursor:"pointer"})),B(b.clusterZone)&&b.point.graphic.addClass(b.clusterZoneClassName||"highcharts-cluster-zone-"+b.clusterZone.zoneIndex))})});A(J,"drillToCluster",function(a){var b=(((a.point||a.target).series.options.cluster||{}).events||{}).drillToCluster;Q(b)&&b.call(this,a)});A(fa,"setExtremes",function(){var a=this.chart,b=0,c;
-a.series.forEach(function(a){a.markerClusterInfo&&(c=X((a.options.cluster||{}).animation),b=c.duration||0)});L(function(){a.tooltip&&a.tooltip.destroy()},b)})});w(n,"masters/modules/marker-clusters.src.js",[],function(){})});
-//# sourceMappingURL=marker-clusters.js.map

+ 0 - 64
nicegui/elements/lib/highcharts_modules/networkgraph.js

@@ -1,64 +0,0 @@
-/*
- Highcharts JS v10.3.3 (2023-01-20)
-
- Force directed graph module
-
- (c) 2010-2021 Torstein Honsi
-
- License: www.highcharts.com/license
-*/
-(function(d){"object"===typeof module&&module.exports?(d["default"]=d,module.exports=d):"function"===typeof define&&define.amd?define("highcharts/modules/networkgraph",["highcharts"],function(k){d(k);d.Highcharts=k;return d}):d("undefined"!==typeof Highcharts?Highcharts:void 0)})(function(d){function k(b,a,c,f){b.hasOwnProperty(a)||(b[a]=f.apply(null,c),"function"===typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:a,module:b[a]}})))}d=d?d._modules:{};
-k(d,"Series/DragNodesComposition.js",[d["Core/Utilities.js"]],function(b){function a(){var a=this,b,f,d;a.container&&(b=c(a.container,"mousedown",function(b){var e=a.hoverPoint;e&&e.series&&e.series.hasDraggableNodes&&e.series.options.draggable&&(e.series.onMouseDown(e,b),f=c(a.container,"mousemove",function(a){return e&&e.series&&e.series.onMouseMove(e,a)}),d=c(a.container.ownerDocument,"mouseup",function(a){f();d();return e&&e.series&&e.series.onMouseUp(e,a)}))}));c(a,"destroy",function(){b()})}
-var c=b.addEvent,f=[];return{compose:function(b){-1===f.indexOf(b)&&(f.push(b),c(b,"load",a))},onMouseDown:function(a,b){b=this.chart.pointer.normalize(b);a.fixedPosition={chartX:b.chartX,chartY:b.chartY,plotX:a.plotX,plotY:a.plotY};a.inDragMode=!0},onMouseMove:function(a,b){if(a.fixedPosition&&a.inDragMode){var c=this.chart,f=c.pointer.normalize(b);b=a.fixedPosition.chartX-f.chartX;f=a.fixedPosition.chartY-f.chartY;var e=c.graphLayoutsLookup,d=void 0,m=void 0;if(5<Math.abs(b)||5<Math.abs(f))d=a.fixedPosition.plotX-
-b,m=a.fixedPosition.plotY-f,c.isInsidePlot(d,m)&&(a.plotX=d,a.plotY=m,a.hasDragged=!0,this.redrawHalo(a),e.forEach(function(a){a.restartSimulation()}))}},onMouseUp:function(a,b){a.fixedPosition&&(a.hasDragged&&(this.layout.enableSimulation?this.layout.start():this.chart.redraw()),a.inDragMode=a.hasDragged=!1,this.options.fixedDraggable||delete a.fixedPosition)},redrawHalo:function(a){a&&this.halo&&this.halo.attr({d:a.haloPath(this.options.states.hover.halo.size)})}}});k(d,"Series/GraphLayoutComposition.js",
-[d["Core/Animation/AnimationUtilities.js"],d["Core/Utilities.js"]],function(b,a){function c(){this.graphLayoutsLookup&&(this.graphLayoutsLookup.forEach(function(a){a.updateSimulation()}),this.redraw())}function f(){this.graphLayoutsLookup&&(this.graphLayoutsLookup.forEach(function(a){a.updateSimulation(!1)}),this.redraw())}function e(){this.graphLayoutsLookup&&this.graphLayoutsLookup.forEach(function(a){a.stop()})}function d(){var a=!1,b=function(g){g.maxIterations--&&isFinite(g.temperature)&&!g.isStable()&&
-!g.enableSimulation&&(g.beforeStep&&g.beforeStep(),g.step(),c=!1,a=!0)};if(this.graphLayoutsLookup){p(!1,this);for(this.graphLayoutsLookup.forEach(function(a){return a.start()});!c;){var c=!0;this.graphLayoutsLookup.forEach(b)}a&&this.series.forEach(function(a){a&&a.layout&&a.render()})}}var p=b.setAnimation,q=a.addEvent,l=[];return{compose:function(a){l.indexOf(a)&&(l.push(a),q(a,"afterPrint",c),q(a,"beforePrint",f),q(a,"predraw",e),q(a,"render",d))},integrations:{},layouts:{}}});k(d,"Series/NodesComposition.js",
-[d["Core/Series/SeriesRegistry.js"],d["Core/Utilities.js"]],function(b,a){b=b.series;var c=b.prototype,f=b.prototype.pointClass.prototype,e=a.defined,d=a.extend,p=a.find,q=a.merge,l=a.pick,k;(function(a){function b(){this.data=[].concat(this.points||[],this.nodes);return c.destroy.apply(this,arguments)}function g(){this.nodes&&(this.nodes.forEach(function(a){a.destroy()}),this.nodes.length=0);c.setData.apply(this,arguments)}function h(a){var g=arguments,b=this.isNode?this.linksTo.concat(this.linksFrom):
-[this.fromNode,this.toNode];"select"!==a&&b.forEach(function(a){a&&a.series&&(f.setState.apply(a,g),a.isNode||(a.fromNode.graphic&&f.setState.apply(a.fromNode,g),a.toNode&&a.toNode.graphic&&f.setState.apply(a.toNode,g)))});f.setState.apply(this,g)}function r(a,g,b,h){var c=this,r=this.series.options.nodes,n=this.series.options.data,u=n&&n.length||0,e=n&&n[this.index];f.update.call(this,a,this.isNode?!1:g,b,h);this.isNode&&(a=(r||[]).reduce(function(a,g,b){return c.id===g.id?b:a},-1),h=q(r&&r[a]||
-{},n&&n[this.index]||{}),n&&(e?n[this.index]=e:n.length=u),r?0<=a?r[a]=h:r.push(h):this.series.options.nodes=[h],l(g,!0)&&this.series.chart.redraw(b))}var u=[];a.compose=function(a,c){-1===u.indexOf(a)&&(u.push(a),a=a.prototype,a.setNodeState=h,a.setState=h,a.update=r);-1===u.indexOf(c)&&(u.push(c),a=c.prototype,a.destroy=b,a.setData=g);return c};a.createNode=function(a){var g=this.pointClass,b=function(a,g){return p(a,function(a){return a.id===g})},h=b(this.nodes,a);if(!h){b=this.options.nodes&&
-b(this.options.nodes,a);var c=(new g).init(this,d({className:"highcharts-node",isNode:!0,id:a,y:1},b));c.linksTo=[];c.linksFrom=[];c.getSum=function(){var a=0,g=0;c.linksTo.forEach(function(g){a+=g.weight||0});c.linksFrom.forEach(function(a){g+=a.weight||0});return Math.max(a,g)};c.offset=function(a,g){for(var b=0,h=0;h<c[g].length;h++){if(c[g][h]===a)return b;b+=c[g][h].weight}};c.hasShape=function(){var a=0;c.linksTo.forEach(function(g){g.outgoing&&a++});return!c.linksTo.length||a!==c.linksTo.length};
-c.index=this.nodes.push(c)-1;h=c}h.formatPrefix="node";h.name=h.name||h.options.id||"";h.mass=l(h.options.mass,h.options.marker&&h.options.marker.radius,this.options.marker&&this.options.marker.radius,4);return h};a.destroy=b;a.generatePoints=function(){var a=this,g=this.chart,b={};c.generatePoints.call(this);this.nodes||(this.nodes=[]);this.colorCounter=0;this.nodes.forEach(function(a){a.linksFrom.length=0;a.linksTo.length=0;a.level=a.options.level});this.points.forEach(function(h){e(h.from)&&(b[h.from]||
-(b[h.from]=a.createNode(h.from)),b[h.from].linksFrom.push(h),h.fromNode=b[h.from],g.styledMode?h.colorIndex=l(h.options.colorIndex,b[h.from].colorIndex):h.color=h.options.color||b[h.from].color);e(h.to)&&(b[h.to]||(b[h.to]=a.createNode(h.to)),b[h.to].linksTo.push(h),h.toNode=b[h.to]);h.name=h.name||h.id},this);this.nodeLookup=b};a.setNodeState=h;a.updateNode=r})(k||(k={}));return k});k(d,"Series/Networkgraph/NetworkgraphPoint.js",[d["Series/NodesComposition.js"],d["Core/Series/SeriesRegistry.js"],
-d["Core/Utilities.js"]],function(b,a,c){var f=this&&this.__extends||function(){var a=function(b,g){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,g){a.__proto__=g}||function(a,g){for(var b in g)g.hasOwnProperty(b)&&(a[b]=g[b])};return a(b,g)};return function(b,g){function h(){this.constructor=b}a(b,g);b.prototype=null===g?Object.create(g):(h.prototype=g.prototype,new h)}}();a=a.series;var e=a.prototype,d=a.prototype.pointClass,p=c.addEvent,k=c.css,l=c.defined;a=c.extend;var w=
-c.pick;c=function(a){function b(){return null!==a&&a.apply(this,arguments)||this}f(b,a);b.prototype.destroy=function(){this.isNode&&this.linksFrom.concat(this.linksTo).forEach(function(a){a.destroyElements&&a.destroyElements()});this.series.layout.removeElementFromCollection(this,this.series.layout[this.isNode?"nodes":"links"]);return d.prototype.destroy.apply(this,arguments)};b.prototype.getDegree=function(){var a=this.isNode?this.linksFrom.length+this.linksTo.length:0;return 0===a?1:a};b.prototype.getLinkAttributes=
-function(){var a=this.series.options.link,b=this.options;return{"stroke-width":w(b.width,a.width),stroke:b.color||a.color,dashstyle:b.dashStyle||a.dashStyle,opacity:w(b.opacity,a.opacity,1)}};b.prototype.getLinkPath=function(){var a=this.fromNode,b=this.toNode;a.plotX>b.plotX&&(a=this.toNode,b=this.fromNode);return[["M",a.plotX||0,a.plotY||0],["L",b.plotX||0,b.plotY||0]]};b.prototype.getMass=function(){var a=this.fromNode.mass,b=this.toNode.mass,c=a+b;return{fromNode:1-a/c,toNode:1-b/c}};b.prototype.init=
-function(b,h,c){a.prototype.init.call(this,b,h,c);this.series.options.draggable&&!this.series.chart.styledMode&&(p(this,"mouseOver",function(){k(this.series.chart.container,{cursor:"move"})}),p(this,"mouseOut",function(){k(this.series.chart.container,{cursor:"default"})}));return this};b.prototype.isValid=function(){return!this.isNode||l(this.id)};b.prototype.redrawLink=function(){var a=this.getLinkPath();if(this.graphic){this.shapeArgs={d:a};if(!this.series.chart.styledMode){var b=this.series.pointAttribs(this);
-this.graphic.attr(b);(this.dataLabels||[]).forEach(function(a){a&&a.attr({opacity:b.opacity})})}this.graphic.animate(this.shapeArgs);var c=a[0];a=a[1];"M"===c[0]&&"L"===a[0]&&(this.plotX=(c[1]+a[1])/2,this.plotY=(c[2]+a[2])/2)}};b.prototype.remove=function(a,b){var g=this.series,c=g.options.nodes||[],h,f=c.length;if(this.isNode){g.points=[];[].concat(this.linksFrom).concat(this.linksTo).forEach(function(a){h=a.fromNode.linksFrom.indexOf(a);-1<h&&a.fromNode.linksFrom.splice(h,1);h=a.toNode.linksTo.indexOf(a);
--1<h&&a.toNode.linksTo.splice(h,1);e.removePoint.call(g,g.data.indexOf(a),!1,!1)});g.points=g.data.slice();for(g.nodes.splice(g.nodes.indexOf(this),1);f--;)if(c[f].id===this.options.id){g.options.nodes.splice(f,1);break}this&&this.destroy();g.isDirty=!0;g.isDirtyData=!0;a&&g.chart.redraw(a)}else g.removePoint(g.data.indexOf(this),a,b)};b.prototype.renderLink=function(){if(!this.graphic&&(this.graphic=this.series.chart.renderer.path(this.getLinkPath()).addClass(this.getClassName(),!0).add(this.series.group),
-!this.series.chart.styledMode)){var a=this.series.pointAttribs(this);this.graphic.attr(a);(this.dataLabels||[]).forEach(function(b){b&&b.attr({opacity:a.opacity})})}};return b}(d);a(c.prototype,{setState:b.setNodeState});return c});k(d,"Series/Networkgraph/NetworkgraphSeriesDefaults.js",[],function(){"";return{stickyTracking:!1,inactiveOtherPoints:!0,marker:{enabled:!0,states:{inactive:{opacity:.3,animation:{duration:50}}}},states:{inactive:{linkOpacity:.3,animation:{duration:50}}},dataLabels:{formatter:function(){return this.key},
-linkFormatter:function(){return this.point.fromNode.name+"<br>"+this.point.toNode.name},linkTextPath:{enabled:!0},textPath:{enabled:!1},style:{transition:"opacity 2000ms"}},link:{color:"rgba(100, 100, 100, 0.5)",width:1},draggable:!0,layoutAlgorithm:{initialPositions:"circle",initialPositionRadius:1,enableSimulation:!1,theta:.5,maxSpeed:10,approximation:"none",type:"reingold-fruchterman",integration:"euler",maxIterations:1E3,gravitationalConstant:.0625,friction:-.981},showInLegend:!1}});k(d,"Series/Networkgraph/EulerIntegration.js",
-[],function(){return{attractive:function(b,a,c,f){var e=b.getMass(),d=c.x/f*a;a*=c.y/f;b.fromNode.fixedPosition||(b.fromNode.dispX-=d*e.fromNode/b.fromNode.degree,b.fromNode.dispY-=a*e.fromNode/b.fromNode.degree);b.toNode.fixedPosition||(b.toNode.dispX+=d*e.toNode/b.toNode.degree,b.toNode.dispY+=a*e.toNode/b.toNode.degree)},attractiveForceFunction:function(b,a){return b*b/a},barycenter:function(){var b=this.options.gravitationalConstant,a=this.barycenter.xFactor,c=this.barycenter.yFactor;this.nodes.forEach(function(f){if(!f.fixedPosition){var d=
-f.getDegree();d*=1+d/2;f.dispX+=(a-f.plotX)*b*d/f.degree;f.dispY+=(c-f.plotY)*b*d/f.degree}})},getK:function(b){return Math.pow(b.box.width*b.box.height/b.nodes.length,.3)},integrate:function(b,a){a.dispX+=a.dispX*b.options.friction;a.dispY+=a.dispY*b.options.friction;var c=a.temperature=b.vectorLength({x:a.dispX,y:a.dispY});0!==c&&(a.plotX+=a.dispX/c*Math.min(Math.abs(a.dispX),b.temperature),a.plotY+=a.dispY/c*Math.min(Math.abs(a.dispY),b.temperature))},repulsive:function(b,a,c,f){b.dispX+=c.x/f*
-a/b.degree;b.dispY+=c.y/f*a/b.degree},repulsiveForceFunction:function(b,a){return a*a/b}}});k(d,"Series/Networkgraph/QuadTreeNode.js",[],function(){return function(){function b(a){this.isInternal=this.isEmpty=this.body=!1;this.nodes=[];this.box=a;this.boxSize=Math.min(a.width,a.height)}b.prototype.divideBox=function(){var a=this.box.width/2,c=this.box.height/2;this.nodes[0]=new b({left:this.box.left,top:this.box.top,width:a,height:c});this.nodes[1]=new b({left:this.box.left+a,top:this.box.top,width:a,
-height:c});this.nodes[2]=new b({left:this.box.left+a,top:this.box.top+c,width:a,height:c});this.nodes[3]=new b({left:this.box.left,top:this.box.top+c,width:a,height:c})};b.prototype.getBoxPosition=function(a){var b=a.plotY<this.box.top+this.box.height/2;return a.plotX<this.box.left+this.box.width/2?b?0:3:b?1:2};b.prototype.insert=function(a,c){this.isInternal?this.nodes[this.getBoxPosition(a)].insert(a,c-1):(this.isEmpty=!1,this.body?c?(this.isInternal=!0,this.divideBox(),!0!==this.body&&(this.nodes[this.getBoxPosition(this.body)].insert(this.body,
-c-1),this.body=!0),this.nodes[this.getBoxPosition(a)].insert(a,c-1)):(c=new b({top:a.plotX||NaN,left:a.plotY||NaN,width:.1,height:.1}),c.body=a,c.isInternal=!1,this.nodes.push(c)):(this.isInternal=!1,this.body=a))};b.prototype.updateMassAndCenter=function(){var a=0,b=0,f=0;if(this.isInternal){for(var d=0,k=this.nodes;d<k.length;d++){var p=k[d];p.isEmpty||(a+=p.mass,b+=p.plotX*p.mass,f+=p.plotY*p.mass)}b/=a;f/=a}else this.body&&(a=this.body.mass,b=this.body.plotX,f=this.body.plotY);this.mass=a;this.plotX=
-b;this.plotY=f};return b}()});k(d,"Series/Networkgraph/QuadTree.js",[d["Series/Networkgraph/QuadTreeNode.js"]],function(b){return function(){function a(a,f,d,k){this.box={left:a,top:f,width:d,height:k};this.maxDepth=25;this.root=new b(this.box);this.root.isInternal=!0;this.root.isRoot=!0;this.root.divideBox()}a.prototype.calculateMassAndCenter=function(){this.visitNodeRecursive(null,null,function(a){a.updateMassAndCenter()})};a.prototype.insertNodes=function(a){for(var b=0;b<a.length;b++)this.root.insert(a[b],
-this.maxDepth)};a.prototype.visitNodeRecursive=function(a,b,d){var c;a||(a=this.root);a===this.root&&b&&(c=b(a));if(!1!==c){for(var f=0,e=a.nodes;f<e.length;f++){var l=e[f];if(l.isInternal){b&&(c=b(l));if(!1===c)continue;this.visitNodeRecursive(l,b,d)}else l.body&&b&&b(l.body);d&&d(l)}a===this.root&&d&&d(a)}};return a}()});k(d,"Series/Networkgraph/VerletIntegration.js",[],function(){return{attractive:function(b,a,c){var d=b.getMass(),e=-c.x*a*this.diffTemperature;a=-c.y*a*this.diffTemperature;b.fromNode.fixedPosition||
-(b.fromNode.plotX-=e*d.fromNode/b.fromNode.degree,b.fromNode.plotY-=a*d.fromNode/b.fromNode.degree);b.toNode.fixedPosition||(b.toNode.plotX+=e*d.toNode/b.toNode.degree,b.toNode.plotY+=a*d.toNode/b.toNode.degree)},attractiveForceFunction:function(b,a){return(a-b)/b},barycenter:function(){var b=this.options.gravitationalConstant,a=this.barycenter.xFactor,c=this.barycenter.yFactor;a=(a-(this.box.left+this.box.width)/2)*b;c=(c-(this.box.top+this.box.height)/2)*b;this.nodes.forEach(function(b){b.fixedPosition||
-(b.plotX-=a/b.mass/b.degree,b.plotY-=c/b.mass/b.degree)})},getK:function(b){return Math.pow(b.box.width*b.box.height/b.nodes.length,.5)},integrate:function(b,a){var c=-b.options.friction,d=b.options.maxSpeed,e=(a.plotX+a.dispX-a.prevX)*c;c*=a.plotY+a.dispY-a.prevY;var k=Math.abs,p=k(e)/(e||1);k=k(c)/(c||1);e=p*Math.min(d,Math.abs(e));c=k*Math.min(d,Math.abs(c));a.prevX=a.plotX+a.dispX;a.prevY=a.plotY+a.dispY;a.plotX+=e;a.plotY+=c;a.temperature=b.vectorLength({x:e,y:c})},repulsive:function(b,a,c){a=
-a*this.diffTemperature/b.mass/b.degree;b.fixedPosition||(b.plotX+=c.x*a,b.plotY+=c.y*a)},repulsiveForceFunction:function(b,a){return(a-b)/b*(a>b?1:0)}}});k(d,"Series/Networkgraph/ReingoldFruchtermanLayout.js",[d["Series/Networkgraph/EulerIntegration.js"],d["Core/Globals.js"],d["Series/GraphLayoutComposition.js"],d["Series/Networkgraph/QuadTree.js"],d["Core/Utilities.js"],d["Series/Networkgraph/VerletIntegration.js"]],function(b,a,c,d,e,k){var f=a.win,q=e.clamp,l=e.defined,w=e.isFunction,m=e.pick;
-return function(){function a(){this.attractiveForce=void 0;this.box={};this.currentStep=0;this.initialRendering=!0;this.integration=void 0;this.links=[];this.nodes=[];this.repulsiveForce=this.quadTree=this.options=void 0;this.series=[];this.simulation=!1}a.compose=function(g){c.compose(g);c.integrations.euler=b;c.integrations.verlet=k;c.layouts["reingold-fruchterman"]=a};a.prototype.init=function(a){this.options=a;this.nodes=[];this.links=[];this.series=[];this.box={x:0,y:0,width:0,height:0};this.setInitialRendering(!0);
-this.integration=c.integrations[a.integration];this.enableSimulation=a.enableSimulation;this.attractiveForce=m(a.attractiveForce,this.integration.attractiveForceFunction);this.repulsiveForce=m(a.repulsiveForce,this.integration.repulsiveForceFunction);this.approximation=a.approximation};a.prototype.updateSimulation=function(a){this.enableSimulation=m(a,this.options.enableSimulation)};a.prototype.start=function(){var a=this.series,b=this.options;this.currentStep=0;this.forces=a[0]&&a[0].forces||[];
-this.chart=a[0]&&a[0].chart;this.initialRendering&&(this.initPositions(),a.forEach(function(a){a.finishedAnimating=!0;a.render()}));this.setK();this.resetSimulation(b);this.enableSimulation&&this.step()};a.prototype.step=function(){var a=this,b=this.series;this.currentStep++;"barnes-hut"===this.approximation&&(this.createQuadTree(),this.quadTree.calculateMassAndCenter());for(var c=0,d=this.forces||[];c<d.length;c++)this[d[c]+"Forces"](this.temperature);this.applyLimits();this.temperature=this.coolDown(this.startTemperature,
-this.diffTemperature,this.currentStep);this.prevSystemTemperature=this.systemTemperature;this.systemTemperature=this.getSystemTemperature();if(this.enableSimulation){for(c=0;c<b.length;c++)d=b[c],d.chart&&d.render();this.maxIterations--&&isFinite(this.temperature)&&!this.isStable()?(this.simulation&&f.cancelAnimationFrame(this.simulation),this.simulation=f.requestAnimationFrame(function(){return a.step()})):this.simulation=!1}};a.prototype.stop=function(){this.simulation&&f.cancelAnimationFrame(this.simulation)};
-a.prototype.setArea=function(a,b,c,d){this.box={left:a,top:b,width:c,height:d}};a.prototype.setK=function(){this.k=this.options.linkLength||this.integration.getK(this)};a.prototype.addElementsToCollection=function(a,b){for(var c=0;c<a.length;c++){var g=a[c];-1===b.indexOf(g)&&b.push(g)}};a.prototype.removeElementFromCollection=function(a,b){a=b.indexOf(a);-1!==a&&b.splice(a,1)};a.prototype.clear=function(){this.nodes.length=0;this.links.length=0;this.series.length=0;this.resetSimulation()};a.prototype.resetSimulation=
-function(){this.forcedStop=!1;this.systemTemperature=0;this.setMaxIterations();this.setTemperature();this.setDiffTemperature()};a.prototype.restartSimulation=function(){this.simulation?this.resetSimulation():(this.setInitialRendering(!1),this.enableSimulation?this.start():this.setMaxIterations(1),this.chart&&this.chart.redraw(),this.setInitialRendering(!0))};a.prototype.setMaxIterations=function(a){this.maxIterations=m(a,this.options.maxIterations)};a.prototype.setTemperature=function(){this.temperature=
-this.startTemperature=Math.sqrt(this.nodes.length)};a.prototype.setDiffTemperature=function(){this.diffTemperature=this.startTemperature/(this.options.maxIterations+1)};a.prototype.setInitialRendering=function(a){this.initialRendering=a};a.prototype.createQuadTree=function(){this.quadTree=new d(this.box.left,this.box.top,this.box.width,this.box.height);this.quadTree.insertNodes(this.nodes)};a.prototype.initPositions=function(){var a=this.options.initialPositions;if(w(a)){a.call(this);a=0;for(var b=
-this.nodes;a<b.length;a++){var c=b[a];l(c.prevX)||(c.prevX=c.plotX);l(c.prevY)||(c.prevY=c.plotY);c.dispX=0;c.dispY=0}}else"circle"===a?this.setCircularPositions():this.setRandomPositions()};a.prototype.setCircularPositions=function(){for(var a=this.box,b=this.nodes,c=2*Math.PI/(b.length+1),d=b.filter(function(a){return 0===a.linksTo.length}),f={},e=this.options.initialPositionRadius,k=function(a){var b=0;for(a=a.linksFrom||[];b<a.length;b++){var c=a[b];f[c.toNode.id]||(f[c.toNode.id]=!0,n.push(c.toNode),
-k(c.toNode))}},n=[],t=0;t<d.length;t++){var v=d[t];n.push(v);k(v)}if(n.length)for(d=0;d<b.length;d++)t=b[d],-1===n.indexOf(t)&&n.push(t);else n=b;d=0;for(t=n.length;d<t;++d)b=n[d],b.plotX=b.prevX=m(b.plotX,a.width/2+e*Math.cos(d*c)),b.plotY=b.prevY=m(b.plotY,a.height/2+e*Math.sin(d*c)),b.dispX=0,b.dispY=0};a.prototype.setRandomPositions=function(){for(var a=this.box,b=this.nodes,c=b.length+1,d=function(a){a=a*a/Math.PI;return a-=Math.floor(a)},f,e=0,k=b.length;e<k;++e)f=b[e],f.plotX=f.prevX=m(f.plotX,
-a.width*d(e)),f.plotY=f.prevY=m(f.plotY,a.height*d(c+e)),f.dispX=0,f.dispY=0};a.prototype.force=function(a){for(var b=[],c=1;c<arguments.length;c++)b[c-1]=arguments[c];this.integration[a].apply(this,b)};a.prototype.barycenterForces=function(){this.getBarycenter();this.force("barycenter")};a.prototype.getBarycenter=function(){for(var a=0,b=0,c=0,d=0,f=this.nodes;d<f.length;d++){var e=f[d];b+=e.plotX*e.mass;c+=e.plotY*e.mass;a+=e.mass}return this.barycenter={x:b,y:c,xFactor:b/a,yFactor:c/a}};a.prototype.barnesHutApproximation=
-function(a,b){var c=this.getDistXY(a,b),d=this.vectorLength(c);if(a!==b&&0!==d)if(b.isInternal)if(b.boxSize/d<this.options.theta&&0!==d){var g=this.repulsiveForce(d,this.k);this.force("repulsive",a,g*b.mass,c,d);var h=!1}else h=!0;else g=this.repulsiveForce(d,this.k),this.force("repulsive",a,g*b.mass,c,d);return h};a.prototype.repulsiveForces=function(){var a=this;if("barnes-hut"===this.approximation)for(var b=function(b){c.quadTree.visitNodeRecursive(null,function(c){return a.barnesHutApproximation(b,
-c)})},c=this,d=0,f=this.nodes;d<f.length;d++){var e=f[d];b(e)}else{f=d=b=void 0;for(var k=0,n=this.nodes;k<n.length;k++){e=n[k];for(var t=0,v=this.nodes;t<v.length;t++){var y=v[t];e===y||e.fixedPosition||(f=this.getDistXY(e,y),d=this.vectorLength(f),0!==d&&(b=this.repulsiveForce(d,this.k),this.force("repulsive",e,b*y.mass,f,d)))}}}};a.prototype.attractiveForces=function(){for(var a,b,c,d=0,f=this.links;d<f.length;d++){var e=f[d];e.fromNode&&e.toNode&&(a=this.getDistXY(e.fromNode,e.toNode),b=this.vectorLength(a),
-0!==b&&(c=this.attractiveForce(b,this.k),this.force("attractive",e,c,a,b)))}};a.prototype.applyLimits=function(){for(var a=0,b=this.nodes;a<b.length;a++){var c=b[a];if(c.fixedPosition)break;this.integration.integrate(this,c);this.applyLimitBox(c,this.box);c.dispX=0;c.dispY=0}};a.prototype.applyLimitBox=function(a,b){var c=a.radius;a.plotX=q(a.plotX,b.left+c,b.width-c);a.plotY=q(a.plotY,b.top+c,b.height-c)};a.prototype.coolDown=function(a,b,c){return a-b*c};a.prototype.isStable=function(){return.00001>
-Math.abs(this.systemTemperature-this.prevSystemTemperature)||0>=this.temperature};a.prototype.getSystemTemperature=function(){for(var a=0,b=0,c=this.nodes;b<c.length;b++)a+=c[b].temperature;return a};a.prototype.vectorLength=function(a){return Math.sqrt(a.x*a.x+a.y*a.y)};a.prototype.getDistR=function(a,b){a=this.getDistXY(a,b);return this.vectorLength(a)};a.prototype.getDistXY=function(a,b){var c=a.plotX-b.plotX;a=a.plotY-b.plotY;return{x:c,y:a,absX:Math.abs(c),absY:Math.abs(a)}};return a}()});k(d,
-"Series/Networkgraph/NetworkgraphSeries.js",[d["Series/DragNodesComposition.js"],d["Series/GraphLayoutComposition.js"],d["Core/Globals.js"],d["Series/Networkgraph/NetworkgraphPoint.js"],d["Series/Networkgraph/NetworkgraphSeriesDefaults.js"],d["Series/NodesComposition.js"],d["Series/Networkgraph/ReingoldFruchtermanLayout.js"],d["Core/Series/SeriesRegistry.js"],d["Core/Utilities.js"]],function(b,a,c,d,e,k,p,q,l){var f=this&&this.__extends||function(){var a=function(b,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof
-Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return a(b,c)};return function(b,c){function d(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(d.prototype=c.prototype,new d)}}();c=c.noop;var m=q.series,x=q.seriesTypes,g=x.column.prototype,h=x.line.prototype,r=l.addEvent,u=l.defined;x=l.extend;var A=l.merge,z=l.pick;l=function(c){function d(){var a=null!==c&&c.apply(this,arguments)||this;a.data=void 0;a.nodes=void 0;a.options=void 0;
-a.points=void 0;return a}f(d,c);d.compose=function(a){b.compose(a);p.compose(a)};d.prototype.deferLayout=function(){var b=this.options.layoutAlgorithm,c=this.chart.graphLayoutsStorage,d=this.chart.graphLayoutsLookup,f=this.chart.options.chart;if(this.visible){c||(this.chart.graphLayoutsStorage=c={},this.chart.graphLayoutsLookup=d=[]);var e=c[b.type];e||(b.enableSimulation=u(f.forExport)?!f.forExport:b.enableSimulation,c[b.type]=e=new a.layouts[b.type],e.init(b),d.splice(e.index,0,e));this.layout=
-e;e.setArea(0,0,this.chart.plotWidth,this.chart.plotHeight);e.addElementsToCollection([this],e.series);e.addElementsToCollection(this.nodes,e.nodes);e.addElementsToCollection(this.points,e.links)}};d.prototype.destroy=function(){this.layout&&this.layout.removeElementFromCollection(this,this.layout.series);k.destroy.call(this)};d.prototype.drawDataLabels=function(){var a=this.options.dataLabels.textPath;m.prototype.drawDataLabels.call(this,this.nodes);this.options.dataLabels.textPath=this.options.dataLabels.linkTextPath;
-m.prototype.drawDataLabels.call(this,this.data);this.options.dataLabels.textPath=a};d.prototype.generatePoints=function(){var a;k.generatePoints.apply(this,arguments);this.options.nodes&&this.options.nodes.forEach(function(a){this.nodeLookup[a.id]||(this.nodeLookup[a.id]=this.createNode(a.id))},this);for(a=this.nodes.length-1;0<=a;a--){var b=this.nodes[a];b.degree=b.getDegree();b.radius=z(b.marker&&b.marker.radius,this.options.marker&&this.options.marker.radius,0);this.nodeLookup[b.id]||b.remove()}this.data.forEach(function(a){a.formatPrefix=
-"link"});this.indexateNodes()};d.prototype.getPointsCollection=function(){return this.nodes||[]};d.prototype.indexateNodes=function(){this.nodes.forEach(function(a,b){a.index=b})};d.prototype.init=function(a,b){var d=this;c.prototype.init.call(this,a,b);r(this,"updatedData",function(){d.layout&&d.layout.stop()});r(this,"afterUpdate",function(){d.nodes.forEach(function(a){a&&a.series&&a.resolveColor()})});return this};d.prototype.markerAttribs=function(a,b){b=m.prototype.markerAttribs.call(this,a,
-b);u(a.plotY)||(b.y=0);b.x=(a.plotX||0)-(b.width||0)/2;return b};d.prototype.pointAttribs=function(a,b){var c=b||a&&a.state||"normal";b=m.prototype.pointAttribs.call(this,a,c);c=this.options.states[c];a&&!a.isNode&&(b=a.getLinkAttributes(),c&&(b={stroke:c.linkColor||b.stroke,dashstyle:c.linkDashStyle||b.dashstyle,opacity:z(c.linkOpacity,b.opacity),"stroke-width":c.linkColor||b["stroke-width"]}));return b};d.prototype.render=function(){var a=this.points,b=this.chart.hoverPoint,c=[];this.points=this.nodes;
-h.render.call(this);this.points=a;a.forEach(function(a){a.fromNode&&a.toNode&&(a.renderLink(),a.redrawLink())});b&&b.series===this&&this.redrawHalo(b);this.chart.hasRendered&&!this.options.dataLabels.allowOverlap&&(this.nodes.concat(this.points).forEach(function(a){a.dataLabel&&c.push(a.dataLabel)}),this.chart.hideOverlappingLabels(c))};d.prototype.setState=function(a,b){b?(this.points=this.nodes.concat(this.data),m.prototype.setState.apply(this,arguments),this.points=this.data):m.prototype.setState.apply(this,
-arguments);this.layout.simulation||a||this.render()};d.prototype.translate=function(){this.processedXData||this.processData();this.generatePoints();this.deferLayout();this.nodes.forEach(function(a){a.isInside=!0;a.linksFrom.forEach(function(a){a.shapeType="path";a.y=1})})};d.defaultOptions=A(m.defaultOptions,e);return d}(m);x(l.prototype,{pointClass:d,animate:void 0,directTouch:!0,drawGraph:void 0,forces:["barycenter","repulsive","attractive"],hasDraggableNodes:!0,isCartesian:!1,noSharedTooltip:!0,
-pointArrayMap:["from","to"],requireSorting:!1,trackerGroups:["group","markerGroup","dataLabelsGroup"],buildKDTree:c,createNode:k.createNode,drawTracker:g.drawTracker,onMouseDown:b.onMouseDown,onMouseMove:b.onMouseMove,onMouseUp:b.onMouseUp,redrawHalo:b.redrawHalo});q.registerSeriesType("networkgraph",l);"";return l});k(d,"masters/modules/networkgraph.src.js",[d["Core/Globals.js"],d["Series/Networkgraph/NetworkgraphSeries.js"]],function(b,a){a.compose(b.Chart)})});
-//# sourceMappingURL=networkgraph.js.map

+ 0 - 15
nicegui/elements/lib/highcharts_modules/no-data-to-display.js

@@ -1,15 +0,0 @@
-/*
- Highcharts JS v10.3.3 (2023-01-20)
-
- Plugin for displaying a message when there is no data visible in chart.
-
- (c) 2010-2021 Highsoft AS
- Author: Oystein Moseng
-
- License: www.highcharts.com/license
-*/
-(function(a){"object"===typeof module&&module.exports?(a["default"]=a,module.exports=a):"function"===typeof define&&define.amd?define("highcharts/modules/no-data-to-display",["highcharts"],function(b){a(b);a.Highcharts=b;return a}):a("undefined"!==typeof Highcharts?Highcharts:void 0)})(function(a){function b(a,c,b,e){a.hasOwnProperty(c)||(a[c]=e.apply(null,b),"function"===typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:c,module:a[c]}})))}a=a?a._modules:
-{};b(a,"Extensions/NoDataToDisplay.js",[a["Core/Renderer/HTML/AST.js"],a["Core/Chart/Chart.js"],a["Core/Defaults.js"],a["Core/Utilities.js"]],function(a,b,f,e){var c=f.getOptions;f=e.addEvent;var g=e.extend;e=b.prototype;c=c();g(c.lang,{noData:"No data to display"});c.noData={attr:{zIndex:1},position:{x:0,y:0,align:"center",verticalAlign:"middle"},style:{fontWeight:"bold",fontSize:"12px",color:"#666666"}};e.showNoData=function(b){var d=this.options;b=b||d&&d.lang.noData||"";d=d&&(d.noData||{});this.renderer&&
-(this.noDataLabel||(this.noDataLabel=this.renderer.label(b,0,0,void 0,void 0,void 0,d.useHTML,void 0,"no-data").add()),this.styledMode||this.noDataLabel.attr(a.filterUserAttributes(d.attr||{})).css(d.style||{}),this.noDataLabel.align(g(this.noDataLabel.getBBox(),d.position||{}),!1,"plotBox"))};e.hideNoData=function(){this.noDataLabel&&(this.noDataLabel=this.noDataLabel.destroy())};e.hasData=function(){for(var a=this.series||[],b=a.length;b--;)if(a[b].hasData()&&!a[b].options.isInternal)return!0;return this.loadingShown};
-f(b,"render",function(){this.hasData()?this.hideNoData():this.showNoData()})});b(a,"masters/modules/no-data-to-display.src.js",[],function(){})});
-//# sourceMappingURL=no-data-to-display.js.map

+ 0 - 29
nicegui/elements/lib/highcharts_modules/offline-exporting.js

@@ -1,29 +0,0 @@
-/*
- Highcharts JS v10.3.3 (2023-01-20)
-
- Client side exporting module
-
- (c) 2015-2021 Torstein Honsi / Oystein Moseng
-
- License: www.highcharts.com/license
-*/
-(function(a){"object"===typeof module&&module.exports?(a["default"]=a,module.exports=a):"function"===typeof define&&define.amd?define("highcharts/modules/offline-exporting",["highcharts","highcharts/modules/exporting"],function(e){a(e);a.Highcharts=e;return a}):a("undefined"!==typeof Highcharts?Highcharts:void 0)})(function(a){function e(a,k,b,e){a.hasOwnProperty(k)||(a[k]=e.apply(null,b),"function"===typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:k,
-module:a[k]}})))}a=a?a._modules:{};e(a,"Extensions/DownloadURL.js",[a["Core/Globals.js"]],function(a){var k=a.isSafari,b=a.win,e=b.document,m=b.URL||b.webkitURL||b,q=a.dataURLtoBlob=function(a){if((a=a.replace(/filename=.*;/,"").match(/data:([^;]*)(;base64)?,([0-9A-Za-z+/]+)/))&&3<a.length&&b.atob&&b.ArrayBuffer&&b.Uint8Array&&b.Blob&&m.createObjectURL){var u=b.atob(a[3]),f=new b.ArrayBuffer(u.length);f=new b.Uint8Array(f);for(var n=0;n<f.length;++n)f[n]=u.charCodeAt(n);a=new b.Blob([f],{type:a[1]});
-return m.createObjectURL(a)}};a=a.downloadURL=function(a,m){var f=b.navigator,n=e.createElement("a");if("string"===typeof a||a instanceof String||!f.msSaveOrOpenBlob){a="".concat(a);f=/Edge\/\d+/.test(f.userAgent);if(k&&"string"===typeof a&&0===a.indexOf("data:application/pdf")||f||2E6<a.length)if(a=q(a)||"",!a)throw Error("Failed to convert to blob");if("undefined"!==typeof n.download)n.href=a,n.download=m,e.body.appendChild(n),n.click(),e.body.removeChild(n);else try{var z=b.open(a,"chart");if("undefined"===
-typeof z||null===z)throw Error("Failed to open window");}catch(h){b.location.href=a}}else f.msSaveOrOpenBlob(a,m)};return{dataURLtoBlob:q,downloadURL:a}});e(a,"Extensions/OfflineExporting/OfflineExportingDefaults.js",[],function(){return{libURL:"https://code.highcharts.com/10.3.3/lib/",menuItemDefinitions:{downloadPNG:{textKey:"downloadPNG",onclick:function(){this.exportChartLocal()}},downloadJPEG:{textKey:"downloadJPEG",onclick:function(){this.exportChartLocal({type:"image/jpeg"})}},downloadSVG:{textKey:"downloadSVG",
-onclick:function(){this.exportChartLocal({type:"image/svg+xml"})}},downloadPDF:{textKey:"downloadPDF",onclick:function(){this.exportChartLocal({type:"application/pdf"})}}}}});e(a,"Extensions/OfflineExporting/OfflineExporting.js",[a["Core/Renderer/HTML/AST.js"],a["Core/Chart/Chart.js"],a["Core/Defaults.js"],a["Extensions/DownloadURL.js"],a["Extensions/Exporting/Exporting.js"],a["Core/Globals.js"],a["Core/HttpUtilities.js"],a["Extensions/OfflineExporting/OfflineExportingDefaults.js"],a["Core/Utilities.js"]],
-function(a,e,b,G,C,q,u,H,f){var n=b.defaultOptions,k=G.downloadURL,h=q.win,m=q.doc,I=u.ajax,J=f.addEvent,A=f.error,K=f.extend,L=f.fireEvent,B=f.merge;a.allowedAttributes.push("data-z-index","fill-opacity","rx","ry","stroke-dasharray","stroke-linejoin","text-anchor","transform","version","viewBox","visibility","xmlns","xmlns:xlink");a.allowedTags.push("desc","clippath","g");var F=[],x;(function(b){function f(a,g){var c=this,d=B(c.options.exporting,a),t=function(a){!1===d.fallbackToExportServer?d.error?
-d.error(d,a):A(28,!0):c.exportChart(d)};a=function(){return[].some.call(c.container.getElementsByTagName("image"),function(a){a=a.getAttribute("href");return""!==a&&"string"===typeof a&&0!==a.indexOf("data:")})};q.isMS&&c.styledMode&&!C.inlineAllowlist.length&&C.inlineAllowlist.push(/^blockSize/,/^border/,/^caretColor/,/^color/,/^columnRule/,/^columnRuleColor/,/^cssFloat/,/^cursor/,/^fill$/,/^fillOpacity/,/^font/,/^inlineSize/,/^length/,/^lineHeight/,/^opacity/,/^outline/,/^parentRule/,/^rx$/,/^ry$/,
-/^stroke/,/^textAlign/,/^textAnchor/,/^textDecoration/,/^transform/,/^vectorEffect/,/^visibility/,/^x$/,/^y$/);q.isMS&&("application/pdf"===d.type||c.container.getElementsByTagName("image").length&&"image/svg+xml"!==d.type)||"application/pdf"===d.type&&a()?t(Error("Image type not supported for this chart/browser.")):c.getSVGForLocalExport(d,g||{},t,function(a){-1<a.indexOf("<foreignObject")&&"image/svg+xml"!==d.type&&(q.isMS||"application/pdf"===d.type)?t(Error("Image type not supported for charts with embedded HTML")):
-b.downloadSVGLocal(a,K({filename:c.getFilename()},d),t,function(){return L(c,"exportChartLocalSuccess")})})}function e(a,g){var c=m.getElementsByTagName("head")[0],d=m.createElement("script");d.type="text/javascript";d.src=a;d.onload=g;d.onerror=function(){A("Error loading script "+a)};c.appendChild(d)}function u(a,g,r,d){var c=this,e=function(){p&&k===m&&d(c.sanitizeSVG(h.innerHTML,l))},f=function(a,c,d){++k;d.imageElement.setAttributeNS("http://www.w3.org/1999/xlink","href",a);e()},h,l,y=null,p,
-m=0,k=0;c.unbindGetSVG=J(c,"getSVG",function(a){l=a.chartCopy.options;p=(h=a.chartCopy.container.cloneNode(!0))&&h.getElementsByTagName("image")||[];m=p.length});c.getSVGForExport(a,g);try{if(!p||!p.length){d(c.sanitizeSVG(h.innerHTML,l));return}for(g=0;g<p.length;g++){var w=p[g];(y=w.getAttributeNS("http://www.w3.org/1999/xlink","href"))?b.imageToDataUrl(y,"image/png",{imageElement:w},a.scale,f,r,r,r):(k++,w.parentNode.removeChild(w),g--,e())}}catch(v){r(v)}c.unbindGetSVG()}function x(a,g,e,d,f,
-k,n,M,l){var c=new h.Image,p=function(){setTimeout(function(){var b=m.createElement("canvas"),h=b.getContext&&b.getContext("2d");try{if(h){b.height=c.height*d;b.width=c.width*d;h.drawImage(c,0,0,b.width,b.height);try{var k=b.toDataURL(g);f(k,g,e,d)}catch(D){t(a,g,e,d)}}else n(a,g,e,d)}finally{l&&l(a,g,e,d)}},b.loadEventDeferDelay)},r=function(){M(a,g,e,d);l&&l(a,g,e,d)};var t=function(){c=new h.Image;t=k;c.crossOrigin="Anonymous";c.onload=p;c.onerror=r;c.src=a};c.onload=p;c.onerror=r;c.src=a}function E(a){var c=
-h.navigator.userAgent;c=-1<c.indexOf("WebKit")&&0>c.indexOf("Chrome");try{if(!c&&-1===a.indexOf("<foreignObject"))return b.domurl.createObjectURL(new h.Blob([a],{type:"image/svg+xml;charset-utf-16"}))}catch(r){}return"data:image/svg+xml;charset=UTF-8,"+encodeURIComponent(a)}function z(a,b,e){var c=Number(a.getAttribute("width"))+2*b;b=Number(a.getAttribute("height"))+2*b;var g=new h.jspdf.jsPDF(b>c?"p":"l","pt",[c,b]);[].forEach.call(a.querySelectorAll('*[visibility="hidden"]'),function(a){a.parentNode.removeChild(a)});
-for(var f=a.querySelectorAll("linearGradient"),k=0;k<f.length;k++)for(var m=f[k].querySelectorAll("stop"),l=0;l<m.length&&"0"===m[l].getAttribute("offset")&&"0"===m[l+1].getAttribute("offset");)m[l].remove(),l++;[].forEach.call(a.querySelectorAll("tspan"),function(a){"\u200b"===a.textContent&&(a.textContent=" ",a.setAttribute("dx",-5))});g.svg(a,{x:0,y:0,width:c,height:b,removeInvalid:!0}).then(function(){return e(g.output("datauristring"))})}b.CanVGRenderer={};b.domurl=h.URL||h.webkitURL||h;b.loadEventDeferDelay=
-q.isMS?150:0;b.compose=function(a){if(-1===F.indexOf(a)){F.push(a);var b=a.prototype;b.getSVGForLocalExport=u;b.exportChartLocal=f;B(!0,n.exporting,H)}return a};b.downloadSVGLocal=function(c,g,f,d){var t=m.createElement("div"),q=g.type||"image/png",r=(g.filename||"chart")+"."+("image/svg+xml"===q?"svg":q.split("/")[1]),u=g.scale||1,l=g.libURL||n.exporting.libURL,y=!0,p=g.pdfFont;l="/"!==l.slice(-1)?l+"/":l;var C=function(a,b){var c=function(a,b){h.jspdf.jsPDF.API.events.push(["initialized",function(){this.addFileToVFS(a,
-b);this.addFont(a,"HighchartsFont",a);this.getFontList().HighchartsFont||this.setFont("HighchartsFont")}])};p&&!/[^\u0000-\u007F\u200B]+/.test(a.textContent||"")&&(p=void 0);var d=["normal","italic","bold","bolditalic"],f,e=function(){var a=d.shift();if(!a)return b();var g=p&&p[a];g?I({url:g,responseType:"blob",success:function(b,d){b=new FileReader;b.onloadend=function(){if("string"===typeof this.result){var b=this.result.split(",")[1];c(a,b);"normal"===a&&(f=b)}e()};b.readAsDataURL(d.response)},
-error:e}):(f&&c(a,f),e())};e()},A=function(){a.setElementHTML(t,c);var b=t.getElementsByTagName("text"),e;[].forEach.call(b,function(a){["font-family","font-size"].forEach(function(b){for(var c=a;c&&c!==t;){if(c.style[b]){a.style[b]=c.style[b];break}c=c.parentNode}});a.style.fontFamily=p&&p.normal?"HighchartsFont":String(a.style.fontFamily&&a.style.fontFamily.split(" ").splice(-1));e=a.getElementsByTagName("title");[].forEach.call(e,function(b){a.removeChild(b)})});var g=t.querySelector("svg");g&&
-C(g,function(){z(g,0,function(a){try{k(a,r),d&&d()}catch(O){f(O)}})})};if("image/svg+xml"===q)try{if("undefined"!==typeof h.navigator.msSaveOrOpenBlob){var w=new MSBlobBuilder;w.append(c);var v=w.getBlob("image/svg+xml")}else v=E(c);k(v,r);d&&d()}catch(D){f(D)}else if("application/pdf"===q)h.jspdf&&h.jspdf.jsPDF?A():(y=!0,e(l+"jspdf.js",function(){e(l+"svg2pdf.js",A)}));else{v=E(c);var B=function(){try{b.domurl.revokeObjectURL(v)}catch(D){}};x(v,q,{},u,function(a){try{k(a,r),d&&d()}catch(N){f(N)}},
-function(){var a=m.createElement("canvas"),b=a.getContext("2d"),g=c.match(/^<svg[^>]*width\s*=\s*"?(\d+)"?[^>]*>/)[1]*u,p=c.match(/^<svg[^>]*height\s*=\s*"?(\d+)"?[^>]*>/)[1]*u,n=function(){h.canvg.Canvg.fromString(b,c).start();try{k(h.navigator.msSaveOrOpenBlob?a.msToBlob():a.toDataURL(q),r),d&&d()}catch(P){f(P)}finally{B()}};a.width=g;a.height=p;h.canvg?n():(y=!0,e(l+"canvg.js",function(){n()}))},f,f,function(){y&&B()})}};b.getScript=e;b.imageToDataUrl=x;b.svgToDataUrl=E;b.svgToPdf=z})(x||(x={}));
-return x});e(a,"masters/modules/offline-exporting.src.js",[a["Core/Globals.js"],a["Extensions/OfflineExporting/OfflineExporting.js"]],function(a,e){a.downloadSVGLocal=e.downloadSVGLocal;e.compose(a.Chart)})});
-//# sourceMappingURL=offline-exporting.js.map

+ 0 - 17
nicegui/elements/lib/highcharts_modules/oldie-polyfills.js

@@ -1,17 +0,0 @@
-/*
- Highcharts JS v10.3.3 (2023-01-20)
-
- Old IE (v6, v7, v8) array polyfills for Highcharts v7+.
-
- (c) 2010-2021 Highsoft AS
- Author: Torstein Honsi
-
- License: www.highcharts.com/license
-*/
-(function(b){"object"===typeof module&&module.exports?(b["default"]=b,module.exports=b):"function"===typeof define&&define.amd?define("highcharts/modules/oldie-polyfills",["highcharts"],function(e){b(e);b.Highcharts=e;return b}):b("undefined"!==typeof Highcharts?Highcharts:void 0)})(function(b){function e(b,d,c,a){b.hasOwnProperty(d)||(b[d]=a.apply(null,c),"function"===typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:d,module:b[d]}})))}b=b?b._modules:
-{};e(b,"Extensions/OldiePolyfills.js",[],function(){String.prototype.trim||(String.prototype.trim=function(){return this.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")});Array.prototype.forEach||(Array.prototype.forEach=function(d,c){for(var a=0,b=this.length;a<b;a++)if("undefined"!==typeof this[a]&&!1===d.call(c,this[a],a,this))return a});Array.prototype.map||(Array.prototype.map=function(d){for(var c=[],a=0,b=this.length;a<b;a++)c[a]=d.call(this[a],this[a],a,this);return c});Array.prototype.indexOf||
-(Array.prototype.indexOf=function(d,c){var a=c||0;if(this)for(c=this.length;a<c;a++)if(this[a]===d)return a;return-1});Array.prototype.filter||(Array.prototype.filter=function(d){for(var c=[],a=0,b=this.length;a<b;a++)d(this[a],a)&&c.push(this[a]);return c});Array.prototype.some||(Array.prototype.some=function(d,c){for(var a=0,b=this.length;a<b;a++)if(!0===d.call(c,this[a],a,this))return!0;return!1});Array.prototype.reduce||(Array.prototype.reduce=function(d,c){for(var a=1<arguments.length?0:1,b=
-1<arguments.length?c:this[0],e=this.length;a<e;++a)b=d.call(this,b,this[a],a,this);return b});Function.prototype.bind||(Function.prototype.bind=function(){var d=this,c=arguments[0],a=Array.prototype.slice.call(arguments,1);if("function"!==typeof d)throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");return function(){var b=a.concat(Array.prototype.slice.call(arguments));return d.apply(c,b)}});Object.getPrototypeOf||(Object.getPrototypeOf="object"===typeof"test".__proto__?
-function(b){return b.__proto__}:function(b){var c=b.constructor.prototype;return c===b?{}.constructor.prototype:c});Object.keys||(Object.keys=function(b){var c=[],a;for(a in b)Object.hasOwnProperty.call(b,a)&&c.push(a);return c});if(!document.getElementsByClassName){var b=function(b){var c=document,a,d=[];if(c.querySelectorAll)return c.querySelectorAll("."+b);if(c.evaluate)for(c=c.evaluate(".//*[contains(concat(' ', @class, ' '), ' "+b+" ')]",c,null,0,null);a=c.iterateNext();)d.push(a);else for(c=
-c.getElementsByTagName("*"),b=new RegExp("(^|\\s)"+b+"(\\s|$)"),a=0;a<c.length;a++)b.test(c[a].className)&&d.push(c[a]);return d};document.getElementsByClassName=b;Element.prototype.getElementsByClassName=b}});e(b,"masters/modules/oldie-polyfills.src.js",[],function(){})});
-//# sourceMappingURL=oldie-polyfills.js.map

+ 0 - 40
nicegui/elements/lib/highcharts_modules/oldie.js

@@ -1,40 +0,0 @@
-/*
- Highcharts JS v10.3.3 (2023-01-20)
-
- Old IE (v6, v7, v8) module for Highcharts v6+.
-
- (c) 2010-2021 Highsoft AS
- Author: Torstein Honsi
-
- License: www.highcharts.com/license
-*/
-(function(c){"object"===typeof module&&module.exports?(c["default"]=c,module.exports=c):"function"===typeof define&&define.amd?define("highcharts/modules/oldie",["highcharts"],function(q){c(q);c.Highcharts=q;return c}):c("undefined"!==typeof Highcharts?Highcharts:void 0)})(function(c){function q(c,m,t,e){c.hasOwnProperty(m)||(c[m]=e.apply(null,t),"function"===typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:m,module:c[m]}})))}c=c?c._modules:{};q(c,"Extensions/Oldie/VMLAxis3D.js",
-[c["Core/Utilities.js"]],function(c){var p=c.addEvent,t=function(){return function(c){this.axis=c}}();return function(){function c(){}c.compose=function(r){r.keepProps.push("vml");p(r,"destroy",c.onDestroy);p(r,"init",c.onInit);p(r,"render",c.onRender)};c.onDestroy=function(){var c=this.vml;if(c){var p;["backFrame","bottomFrame","sideFrame"].forEach(function(r){(p=c[r])&&(c[r]=p.destroy())},this)}};c.onInit=function(){this.vml||(this.vml=new t(this))};c.onRender=function(){var c=this.vml;c.sideFrame&&
-(c.sideFrame.css({zIndex:0}),c.sideFrame.front.attr({fill:c.sideFrame.color}));c.bottomFrame&&(c.bottomFrame.css({zIndex:1}),c.bottomFrame.front.attr({fill:c.bottomFrame.color}));c.backFrame&&(c.backFrame.css({zIndex:0}),c.backFrame.front.attr({fill:c.backFrame.color}))};return c}()});q(c,"Extensions/Oldie/VMLRenderer3D.js",[c["Core/Axis/Axis.js"],c["Core/Defaults.js"],c["Extensions/Oldie/VMLAxis3D.js"]],function(c,m,t){var p=m.setOptions;return function(){function e(){}e.compose=function(e,m){var h=
-m.prototype;e=e.prototype;p({animate:!1});e.face3d=h.face3d;e.polyhedron=h.polyhedron;e.elements3d=h.elements3d;e.element3d=h.element3d;e.cuboid=h.cuboid;e.cuboidPath=h.cuboidPath;e.toLinePath=h.toLinePath;e.toLineSegments=h.toLineSegments;e.arc3d=function(c){c=h.arc3d.call(this,c);c.css({zIndex:c.zIndex});return c};e.arc3dPath=h.arc3dPath;t.compose(c)};return e}()});q(c,"Extensions/Oldie/Oldie.js",[c["Core/Chart/Chart.js"],c["Core/Color/Color.js"],c["Core/Defaults.js"],c["Core/Globals.js"],c["Core/Pointer.js"],
-c["Core/Renderer/RendererRegistry.js"],c["Core/Renderer/SVG/SVGElement.js"],c["Core/Renderer/SVG/SVGRenderer.js"],c["Core/Utilities.js"],c["Extensions/Oldie/VMLRenderer3D.js"]],function(c,m,t,e,r,q,y,h,k,P){var p=m.parse,N=t.getOptions,v=e.deg2rad,g=e.doc;t=e.noop;var D=e.svg,w=e.win,Q=k.addEvent,E=k.createElement,B=k.css,G=k.defined,H=k.discardElement,I=k.erase,x=k.extend;m=k.extendClass;var R=k.isArray,J=k.isNumber,F=k.isObject,z=k.pick,u=k.pInt,S=k.uniqueKey;N().global.VMLRadialGradientURL="http://code.highcharts.com/10.3.3/gfx/vml-radial-gradient.png";
-g&&!g.defaultView&&(e.getStyle=k.getStyle=function l(b,d){var c={width:"clientWidth",height:"clientHeight"}[d];if(b.style[d])return u(b.style[d]);"opacity"===d&&(d="filter");if(c)return b.style.zoom=1,Math.max(b[c]-2*l(b,"padding"),0);b=b.currentStyle[d.replace(/\-(\w)/g,function(b,d){return d.toUpperCase()})];"filter"===d&&(b=b.replace(/alpha\(opacity=([0-9]+)\)/,function(b,d){return d/100}));return""===b?1:u(b)});D||(Q(y,"afterInit",function(){"text"===this.element.nodeName&&this.css({position:"absolute"})}),
-r.prototype.normalize=function(a,b){a=a||w.event;a.target||(a.target=a.srcElement);b||(this.chartPosition=b=this.getChartPosition());return x(a,{chartX:Math.round(Math.max(a.x,a.clientX-b.left)),chartY:Math.round(a.y)})},c.prototype.ieSanitizeSVG=function(a){return a=a.replace(/<IMG /g,"<image ").replace(/<(\/?)TITLE>/g,"<$1title>").replace(/height=([^" ]+)/g,'height="$1"').replace(/width=([^" ]+)/g,'width="$1"').replace(/hc-svg-href="([^"]+)">/g,'xlink:href="$1"/>').replace(/ id=([^" >]+)/g,' id="$1"').replace(/class=([^" >]+)/g,
-'class="$1"').replace(/ transform /g," ").replace(/:(path|rect)/g,"$1").replace(/style="([^"]+)"/g,function(a){return a.toLowerCase()})},c.prototype.isReadyToRender=function(){var a=this;return D||w!=w.top||"complete"===g.readyState?!0:(g.attachEvent("onreadystatechange",function(){g.detachEvent("onreadystatechange",a.firstRender);"complete"===g.readyState&&a.firstRender()}),!1)},g.createElementNS||(g.createElementNS=function(a,b){return g.createElement(b)}),e.addEventListenerPolyfill=function(a,
-b){function d(a){a.target=a.srcElement||w;b.call(c,a)}var c=this;c.attachEvent&&(c.hcEventsIE||(c.hcEventsIE={}),b.hcKey||(b.hcKey=S()),c.hcEventsIE[b.hcKey]=d,c.attachEvent("on"+a,d))},e.removeEventListenerPolyfill=function(a,b){this.detachEvent&&(b=this.hcEventsIE[b.hcKey],this.detachEvent("on"+a,b))},c={docMode8:g&&8===g.documentMode,init:function(a,b){var d=["<",b,' filled="f" stroked="f"'],c=["position: ","absolute",";"],f="div"===b;("shape"===b||f)&&c.push("left:0;top:0;width:1px;height:1px;");
-c.push("visibility: ",f?"hidden":"visible");d.push(' style="',c.join(""),'"/>');b&&(d=f||"span"===b||"img"===b?d.join(""):a.prepVML(d),this.element=E(d));this.renderer=a},add:function(a){var b=this.renderer,d=this.element,c=b.box,f=a&&a.inverted;c=a?a.element||a:c;a&&(this.parentGroup=a);f&&b.invertChild(d,c);c.appendChild(d);this.added=!0;this.alignOnAdd&&!this.deferUpdateTransform&&this.updateTransform();if(this.onAdd)this.onAdd();this.className&&this.attr("class",this.className);return this},updateTransform:y.prototype.htmlUpdateTransform,
-setSpanRotation:function(){var a=this.rotation,b=Math.cos(a*v),d=Math.sin(a*v);B(this.element,{filter:a?["progid:DXImageTransform.Microsoft.Matrix(M11=",b,", M12=",-d,", M21=",d,", M22=",b,", sizingMethod='auto expand')"].join(""):"none"})},getSpanCorrection:function(a,b,d,c,f){var l=c?Math.cos(c*v):1,e=c?Math.sin(c*v):0,K=z(this.elemHeight,this.element.offsetHeight);this.xCorr=0>l&&-a;this.yCorr=0>e&&-K;var A=0>l*e;this.xCorr+=e*b*(A?1-d:d);this.yCorr-=l*b*(c?A?d:1-d:1);f&&"left"!==f&&(this.xCorr-=
-a*d*(0>l?-1:1),c&&(this.yCorr-=K*d*(0>e?-1:1)),B(this.element,{textAlign:f}))},pathToVML:function(a){for(var b=a.length,d=[];b--;)J(a[b])?d[b]=Math.round(10*a[b])-5:"Z"===a[b]?d[b]="x":(d[b]=a[b],!a.isArc||"wa"!==a[b]&&"at"!==a[b]||(d[b+5]===d[b+7]&&(d[b+7]+=a[b+7]>a[b+5]?1:-1),d[b+6]===d[b+8]&&(d[b+8]+=a[b+8]>a[b+6]?1:-1)));return d.join(" ")||"x"},clip:function(a){var b=this;if(a){var d=a.members;I(d,b);d.push(b);b.destroyClip=function(){I(d,b)};a=a.getCSS(b)}else b.destroyClip&&b.destroyClip(),
-a={clip:b.docMode8?"inherit":"rect(auto)"};return b.css(a)},css:y.prototype.htmlCss,safeRemoveChild:function(a){a.parentNode&&H(a)},destroy:function(){this.destroyClip&&this.destroyClip();return y.prototype.destroy.apply(this)},on:function(a,b){this.element["on"+a]=function(){var a=w.event;a.target=a.srcElement;b(a)};return this},cutOffPath:function(a,b){a=a.split(/[ ,]/);var d=a.length;if(9===d||11===d)a[d-4]=a[d-2]=u(a[d-2])-10*b;return a.join(" ")},shadow:function(a,b,d){var c=[],f,e=this.element,
-h=this.renderer,K=e.style,A=e.path;A&&"string"!==typeof A.value&&(A="x");var g=A;if(a){var O=z(a.width,3);var n=(a.opacity||.15)/O;for(f=1;3>=f;f++){var k=2*O+1-2*f;d&&(g=this.cutOffPath(A.value,k+.5));var m=['<shape isShadow="true" strokeweight="',k,'" filled="false" path="',g,'" coordsize="10 10" style="',e.style.cssText,'" />'];var p=E(h.prepVML(m),null,{left:u(K.left)+z(a.offsetX,1)+"px",top:u(K.top)+z(a.offsetY,1)+"px"});d&&(p.cutOff=k+1);m=['<stroke color="',a.color||"#000000",'" opacity="',
-n*f,'"/>'];E(h.prepVML(m),null,null,p);b?b.element.appendChild(p):e.parentNode.insertBefore(p,e);c.push(p)}this.shadows=c}return this},updateShadows:t,setAttr:function(a,b){this.docMode8?this.element[a]=b:this.element.setAttribute(a,b)},getAttr:function(a){return this.docMode8?this.element[a]:this.element.getAttribute(a)},classSetter:function(a){(this.added?this.element:this).className=a},dashstyleSetter:function(a,b,d){(d.getElementsByTagName("stroke")[0]||E(this.renderer.prepVML(["<stroke/>"]),
-null,null,d))[b]=a||"solid";this[b]=a},dSetter:function(a,b,d){var c=this.shadows;a=a||[];this.d=a.join&&a.join(" ");d.path=a=this.pathToVML(a);if(c)for(d=c.length;d--;)c[d].path=c[d].cutOff?this.cutOffPath(a,c[d].cutOff):a;this.setAttr(b,a)},fillSetter:function(a,b,d){var c=d.nodeName;"SPAN"===c?d.style.color=a:"IMG"!==c&&(d.filled="none"!==a,this.setAttr("fillcolor",this.renderer.color(a,d,b,this)))},"fill-opacitySetter":function(a,b,d){E(this.renderer.prepVML(["<",b.split("-")[0],' opacity="',
-a,'"/>']),null,null,d)},opacitySetter:t,rotationSetter:function(a,b,d){d=d.style;this[b]=d[b]=a;d.left=-Math.round(Math.sin(a*v)+1)+"px";d.top=Math.round(Math.cos(a*v))+"px"},strokeSetter:function(a,b,d){this.setAttr("strokecolor",this.renderer.color(a,d,b,this))},"stroke-widthSetter":function(a,b,d){d.stroked=!!a;this[b]=a;J(a)&&(a+="px");this.setAttr("strokeweight",a)},titleSetter:function(a,b){this.setAttr(b,a)},visibilitySetter:function(a,b,d){"inherit"===a&&(a="visible");this.shadows&&this.shadows.forEach(function(d){d.style[b]=
-a});"DIV"===d.nodeName&&(a="hidden"===a?"-999em":0,this.docMode8||(d.style[b]=a?"visible":"hidden"),b="top");d.style[b]=a},xSetter:function(a,b,d){this[b]=a;"x"===b?b="left":"y"===b&&(b="top");this.updateClipping?(this[b]=a,this.updateClipping()):d.style[b]=a},zIndexSetter:function(a,b,d){d.style[b]=a},fillGetter:function(){return this.getAttr("fillcolor")||""},strokeGetter:function(){return this.getAttr("strokecolor")||""},classGetter:function(){return this.getAttr("className")||""}},c["stroke-opacitySetter"]=
-c["fill-opacitySetter"],e.VMLElement=c=m(y,c),c.prototype.ySetter=c.prototype.widthSetter=c.prototype.heightSetter=c.prototype.xSetter,c={Element:c,isIE8:-1<w.navigator.userAgent.indexOf("MSIE 8.0"),init:function(a,b,d){this.crispPolyLine=h.prototype.crispPolyLine;this.alignedObjects=[];var c=this.createElement("div").css({position:"relative"});var e=c.element;a.appendChild(c.element);this.isVML=!0;this.box=e;this.boxWrapper=c;this.gradients={};this.cache={};this.cacheKeys=[];this.imgCount=0;this.setSize(b,
-d,!1);if(!g.namespaces.hcv){g.namespaces.add("hcv","urn:schemas-microsoft-com:vml");try{g.createStyleSheet().cssText="hcv\\:fill, hcv\\:path, hcv\\:shape, hcv\\:stroke{ behavior:url(#default#VML); display: inline-block; } "}catch(T){g.styleSheets[0].cssText+="hcv\\:fill, hcv\\:path, hcv\\:shape, hcv\\:stroke{ behavior:url(#default#VML); display: inline-block; } "}}},isHidden:function(){return!this.box.offsetWidth},clipRect:function(a,b,d,c){var e=this.createElement(),l=F(a);return x(e,{members:[],
-count:0,left:(l?a.x:a)+1,top:(l?a.y:b)+1,width:(l?a.width:d)-1,height:(l?a.height:c)-1,getCSS:function(a){var b=a.element,d=b.nodeName,c=a.inverted,e=this.top-("shape"===d?b.offsetTop:0),l=this.left;b=l+this.width;var f=e+this.height;e={clip:"rect("+Math.round(c?l:e)+"px,"+Math.round(c?f:b)+"px,"+Math.round(c?b:f)+"px,"+Math.round(c?e:l)+"px)"};!c&&a.docMode8&&"DIV"===d&&x(e,{width:b+"px",height:f+"px"});return e},updateClipping:function(){e.members.forEach(function(a){a.element&&a.css(e.getCSS(a))})}})},
-color:function(a,b,d,c){var e=this,l=/^rgba/,h,g,k="none";a&&a.linearGradient?g="gradient":a&&a.radialGradient&&(g="pattern");if(g){var m,t,n=a.linearGradient||a.radialGradient,q=void 0,r=void 0,u=void 0,v=void 0,w,x,y,B,z="";a=a.stops;r=q=void 0;var D=[],F=function(){h=['<fill colors="'+D.join(",")+'" opacity="',x,'" o:opacity2="',w,'" type="',g,'" ',z,'focus="100%" method="any" />'];E(e.prepVML(h),null,null,b)};q=a[0];r=a[a.length-1];0<q[0]&&a.unshift([0,q[1]]);1>r[0]&&a.push([1,r[1]]);a.forEach(function(a,
-b){l.test(a[1])?(L=p(a[1]),m=L.get("rgb"),t=L.get("a")):(m=a[1],t=1);D.push(100*a[0]+"% "+m);b?(x=t,y=m):(w=t,B=m)});if("fill"===d)if("gradient"===g)q=n.x1||n[0]||0,r=n.y1||n[1]||0,u=n.x2||n[2]||0,v=n.y2||n[3]||0,z='angle="'+(90-180*Math.atan((v-r)/(u-q))/Math.PI)+'"',F();else{d=n.r;var G=2*d,H=2*d,I=n.cx,J=n.cy,M=b.radialReference,C;n=function(){M&&(C=c.getBBox(),I+=(M[0]-C.x)/C.width-.5,J+=(M[1]-C.y)/C.height-.5,G*=M[2]/C.width,H*=M[2]/C.height);z='src="'+N().global.VMLRadialGradientURL+'" size="'+
-G+","+H+'" origin="0.5,0.5" position="'+I+","+J+'" color2="'+B+'" ';F()};c.added?n():c.onAdd=n;k=y}else k=m}else if(l.test(a)&&"IMG"!==b.tagName){var L=p(a);c[d+"-opacitySetter"](L.get("a"),d,b);k=L.get("rgb")}else n=b.getElementsByTagName(d),n.length&&(n[0].opacity=1,n[0].type="solid"),k=a;return k},prepVML:function(a){var b=this.isIE8;a=a.join("");b?(a=a.replace("/>",' xmlns="urn:schemas-microsoft-com:vml" />'),a=-1===a.indexOf('style="')?a.replace("/>",' style="display:inline-block;behavior:url(#default#VML);" />'):
-a.replace('style="','style="display:inline-block;behavior:url(#default#VML);')):a=a.replace("<","<hcv:");return a},text:h.prototype.html,path:function(a){var b={coordsize:"10 10"};R(a)?b.d=a:F(a)&&x(b,a);return this.createElement("shape").attr(b)},circle:function(a,b,d){var c=this.symbol("circle");F(a)&&(d=a.r,b=a.y,a=a.x);c.isCircle=!0;c.r=d;return c.attr({x:a,y:b})},g:function(a){var b;a&&(b={className:"highcharts-"+a,"class":"highcharts-"+a});return this.createElement("div").attr(b)},image:function(a,
-b,d,c,e){var f=this.createElement("img").attr({src:a});1<arguments.length&&f.attr({x:b,y:d,width:c,height:e});return f},createElement:function(a){return"rect"===a?this.symbol(a):h.prototype.createElement.call(this,a)},invertChild:function(a,b){var c=this;b=b.style;var e="IMG"===a.tagName&&a.style;B(a,{flip:"x",left:u(b.width)-(e?u(e.top):1)+"px",top:u(b.height)-(e?u(e.left):1)+"px",rotation:-90});[].forEach.call(a.childNodes,function(b){c.invertChild(b,a)})},symbols:{arc:function(a,b,c,e,f){var d=
-f.start,g=f.end,l=f.r||c||e;c=f.innerR;e=Math.cos(d);var h=Math.sin(d),k=Math.cos(g),m=Math.sin(g);if(0===g-d)return["x"];d=["wa",a-l,b-l,a+l,b+l,a+l*e,b+l*h,a+l*k,b+l*m];f.open&&!c&&d.push("e","M",a,b);d.push("at",a-c,b-c,a+c,b+c,a+c*k,b+c*m,a+c*e,b+c*h,"x","e");d.isArc=!0;return d},circle:function(a,b,c,e,f){f&&G(f.r)&&(c=e=2*f.r);f&&f.isCircle&&(a-=c/2,b-=e/2);return["wa",a,b,a+c,b+e,a+c,b+e/2,a+c,b+e/2,"e"]},rect:function(a,b,c,e,f){return h.prototype.symbols[G(f)&&f.r?"callout":"square"].call(0,
-a,b,c,e,f)}}},e.VMLRenderer=e=function(){this.init.apply(this,arguments)},x(e.prototype,h.prototype),x(e.prototype,c),q.registerRendererType("VMLRenderer",e,!0),P.compose(e,h));h.prototype.getSpanWidth=function(a,b){var c=a.getBBox(!0).width;!D&&this.forExport&&(c=this.measureSpanWidth(b.firstChild.data,a.styles));return c};h.prototype.measureSpanWidth=function(a,b){var c=g.createElement("span");a=g.createTextNode(a);c.appendChild(a);B(c,b);this.box.appendChild(c);b=c.offsetWidth;H(c);return b}});
-q(c,"masters/modules/oldie.src.js",[],function(){})});
-//# sourceMappingURL=oldie.js.map

+ 0 - 26
nicegui/elements/lib/highcharts_modules/organization.js

@@ -1,26 +0,0 @@
-/*
- Highcharts JS v10.3.3 (2023-01-20)
- Organization chart series type
-
- (c) 2019-2021 Torstein Honsi
-
- License: www.highcharts.com/license
-*/
-(function(b){"object"===typeof module&&module.exports?(b["default"]=b,module.exports=b):"function"===typeof define&&define.amd?define("highcharts/modules/organization",["highcharts","highcharts/modules/sankey"],function(n){b(n);b.Highcharts=n;return b}):b("undefined"!==typeof Highcharts?Highcharts:void 0)})(function(b){function n(b,a,h,l){b.hasOwnProperty(a)||(b[a]=l.apply(null,h),"function"===typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:a,module:b[a]}})))}
-b=b?b._modules:{};n(b,"Series/Organization/OrganizationPoint.js",[b["Core/Series/SeriesRegistry.js"],b["Core/Utilities.js"]],function(b,a){function h(f){var b=f.linksFrom.length;f.linksFrom.forEach(function(c){c.id===c.toNode.linksTo[0].id?b+=h(c.toNode):b--});return b}var l=this&&this.__extends||function(){var b=function(a,c){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,b){c.__proto__=b}||function(c,b){for(var a in b)b.hasOwnProperty(a)&&(c[a]=b[a])};return b(a,c)};return function(a,
-c){function f(){this.constructor=a}b(a,c);a.prototype=null===c?Object.create(c):(f.prototype=c.prototype,new f)}}(),d=a.defined,g=a.find,k=a.pick;return function(b){function a(){var c=null!==b&&b.apply(this,arguments)||this;c.fromNode=void 0;c.linksFrom=void 0;c.linksTo=void 0;c.options=void 0;c.series=void 0;c.toNode=void 0;return c}l(a,b);a.prototype.getSum=function(){return 1};a.prototype.setNodeColumn=function(){b.prototype.setNodeColumn.call(this);var c=this,a=c.getFromNode().fromNode;if(!d(c.options.column)&&
-0!==c.linksTo.length&&a&&"hanging"===a.options.layout){c.options.layout=k(c.options.layout,"hanging");c.hangsFrom=a;var f=-1;g(a.linksFrom,function(a,b){(a=a.toNode===c)&&(f=b);return a});for(var u=0;u<a.linksFrom.length;u++){var m=a.linksFrom[u];m.toNode.id===c.id?u=a.linksFrom.length:f+=h(m.toNode)}c.column=(c.column||0)+f}};return a}(b.seriesTypes.sankey.prototype.pointClass)});n(b,"Series/Organization/OrganizationSeriesDefaults.js",[],function(){"";return{borderColor:"#666666",borderRadius:3,
-link:{color:"#666666",lineWidth:1,radius:10,type:"default"},borderWidth:1,dataLabels:{nodeFormatter:function(){function b(b){return Object.keys(b).reduce(function(a,c){return a+c+":"+b[c]+";"},'style="')+'"'}var a={width:"100%",height:"100%",display:"flex","flex-direction":"row","align-items":"center","justify-content":"center"},h={"max-height":"100%","border-radius":"50%"},l={width:"100%",padding:0,"text-align":"center","white-space":"normal"},d={margin:0},g={margin:0},k={opacity:.75,margin:"5px"},
-f=this.point,q=f.description,c=f.image;f=f.title;c&&(h["max-width"]="30%",l.width="70%");this.series.chart.renderer.forExport&&(a.display="block",l.position="absolute",l.left=c?"30%":0,l.top=0);a="<div "+b(a)+">";c&&(a+='<img src="'+c+'" '+b(h)+">");a+="<div "+b(l)+">";this.point.name&&(a+="<h4 "+b(d)+">"+this.point.name+"</h4>");f&&(a+="<p "+b(g)+">"+(f||"")+"</p>");q&&(a+="<p "+b(k)+">"+q+"</p>");return a+"</div></div>"},style:{fontWeight:"normal",fontSize:"13px"},useHTML:!0},hangingIndent:20,hangingIndentTranslation:"inherit",
-minNodeLength:10,nodeWidth:50,tooltip:{nodeFormat:"{point.name}<br>{point.title}<br>{point.description}"}}});n(b,"Series/PathUtilities.js",[],function(){return{curvedPath:function(b,a){for(var h=[],l=0;l<b.length;l++){var d=b[l][1],g=b[l][2];if("number"===typeof d&&"number"===typeof g)if(0===l)h.push(["M",d,g]);else if(l===b.length-1)h.push(["L",d,g]);else if(a){var k=b[l-1],f=b[l+1];if(k&&f){var q=k[1];k=k[2];var c=f[1];f=f[2];if("number"===typeof q&&"number"===typeof c&&"number"===typeof k&&"number"===
-typeof f&&q!==c&&k!==f){var r=q<c?1:-1,w=k<f?1:-1;h.push(["L",d-r*Math.min(Math.abs(d-q),a),g-w*Math.min(Math.abs(g-k),a)],["C",d,g,d,g,d+r*Math.min(Math.abs(d-c),a),g+w*Math.min(Math.abs(g-f),a)])}}}else h.push(["L",d,g])}return h}}});n(b,"Series/Organization/OrganizationSeries.js",[b["Series/Organization/OrganizationPoint.js"],b["Series/Organization/OrganizationSeriesDefaults.js"],b["Core/Series/SeriesRegistry.js"],b["Series/PathUtilities.js"],b["Core/Utilities.js"]],function(b,a,h,l,d){var g=this&&
-this.__extends||function(){var b=function(a,c){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,a){b.__proto__=a}||function(b,a){for(var c in a)a.hasOwnProperty(c)&&(b[c]=a[c])};return b(a,c)};return function(a,c){function m(){this.constructor=a}b(a,c);a.prototype=null===c?Object.create(c):(m.prototype=c.prototype,new m)}}(),k=h.seriesTypes.sankey,f=d.css,q=d.extend,c=d.merge,r=d.pick;d=function(b){function d(){var a=null!==b&&b.apply(this,arguments)||this;a.data=void 0;a.options=
-void 0;a.points=void 0;return a}g(d,b);d.prototype.alignDataLabel=function(a,c,d){var m=a.shapeArgs;if(d.useHTML&&m){var e=m.width||0,p=m.height||0,x=this.options.borderWidth+2*this.options.dataLabels.padding;this.chart.inverted&&(e=p,p=m.width||0);p-=x;e-=x;if(m=c.text)f(m.element.parentNode,{width:e+"px",height:p+"px"}),f(m.element,{left:0,top:0,width:"100%",height:"100%",overflow:"hidden"});c.getBBox=function(){return{width:e,height:p,x:0,y:0}};c.width=e;c.height=p}b.prototype.alignDataLabel.apply(this,
-arguments)};d.prototype.createNode=function(a){a=b.prototype.createNode.call(this,a);a.getSum=function(){return 1};return a};d.prototype.pointAttribs=function(b,a){var c=k.prototype.pointAttribs.call(this,b,a),d=this.mapOptionsToLevel[(b.isNode?b.level:b.fromNode.level)||0]||{},e=b.options,p=d.states&&d.states[a]||{};a=r(p.borderRadius,e.borderRadius,d.borderRadius,this.options.borderRadius);var m=r(p.linkColor,e.linkColor,d.linkColor,this.options.linkColor,p.link&&p.link.color,e.link&&e.link.color,
-d.link&&d.link.color,this.options.link&&this.options.link.color),f=r(p.linkLineWidth,e.linkLineWidth,d.linkLineWidth,this.options.linkLineWidth,p.link&&p.link.lineWidth,e.link&&e.link.lineWidth,d.link&&d.link.lineWidth,this.options.link&&this.options.link.lineWidth);d=r(p.linkOpacity,e.linkOpacity,d.linkOpacity,this.options.linkOpacity,p.link&&p.link.linkOpacity,e.link&&e.link.linkOpacity,d.link&&d.link.linkOpacity,this.options.link&&this.options.link.linkOpacity);b.isNode?a&&(c.r=a):(c.stroke=m,
-c["stroke-width"]=f,c.opacity=d,delete c.fill);return c};d.prototype.translateLink=function(b){var a=b.fromNode,c=b.toNode,d=r(this.options.linkLineWidth,this.options.link.lineWidth),e=Math.round(d)%2/2,f=r(this.options.link.offset,.5),m=r(b.options.link&&b.options.link.type,this.options.link.type);if(a.shapeArgs&&c.shapeArgs){var k=Math.floor((a.shapeArgs.x||0)+(a.shapeArgs.width||0))+e,h=Math.floor((a.shapeArgs.y||0)+(a.shapeArgs.height||0)/2)+e,g=Math.floor(c.shapeArgs.x||0)+e,t=Math.floor((c.shapeArgs.y||
-0)+(c.shapeArgs.height||0)/2)+e,q=this.options.hangingIndent;var n=c.options.offset;var u=/%$/.test(n)&&parseInt(n,10),v=this.chart.inverted;v&&(k-=a.shapeArgs.width||0,g+=c.shapeArgs.width||0);n=this.colDistance?Math.floor(g+(v?1:-1)*(this.colDistance-this.nodeWidth)/2)+e:Math.floor((g+k)/2)+e;u&&(50<=u||-50>=u)&&(n=g=Math.floor(g+(v?-.5:.5)*(c.shapeArgs.width||0))+e,t=c.shapeArgs.y||0,0<u&&(t+=c.shapeArgs.height||0));c.hangsFrom===a&&(this.chart.inverted?(h=Math.floor((a.shapeArgs.y||0)+(a.shapeArgs.height||
-0)-q/2)+e,t=(c.shapeArgs.y||0)+(c.shapeArgs.height||0)):h=Math.floor((a.shapeArgs.y||0)+q/2)+e,n=g=Math.floor((c.shapeArgs.x||0)+(c.shapeArgs.width||0)/2)+e);b.plotX=n;b.plotY=(h+t)/2;b.shapeType="path";"straight"===m?b.shapeArgs={d:[["M",k,h],["L",g,t]]}:"curved"===m?(a=Math.abs(g-k)*f*(v?-1:1),b.shapeArgs={d:[["M",k,h],["C",k+a,h,g-a,t,g,t]]}):b.shapeArgs={d:l.curvedPath([["M",k,h],["L",n,h],["L",n,t],["L",g,t]],r(this.options.linkRadius,this.options.link.radius))};b.dlBox={x:(k+g)/2,y:(h+t)/2,
-height:d,width:0}}};d.prototype.translateNode=function(b,a){k.prototype.translateNode.call(this,b,a);a=b.hangsFrom;var c=this.options.hangingIndent||0,d=this.chart.inverted?-1:1,e=b.shapeArgs,f=this.options.hangingIndentTranslation,g=this.options.minNodeLength||10;if(a)if("cumulative"===f)for(e.height-=c,e.y-=d*c;a;)e.y+=d*c,a=a.hangsFrom;else if("shrink"===f)for(;a&&e.height>c+g;)e.height-=c,a=a.hangsFrom;else e.height-=c,this.chart.inverted||(e.y+=c);b.nodeHeight=this.chart.inverted?e.width:e.height};
-d.defaultOptions=c(k.defaultOptions,a);return d}(k);q(d.prototype,{pointClass:b});h.registerSeriesType("organization",d);"";return d});n(b,"masters/modules/organization.src.js",[],function(){})});
-//# sourceMappingURL=organization.js.map

+ 0 - 10
nicegui/elements/lib/highcharts_modules/overlapping-datalabels.js

@@ -1,10 +0,0 @@
-/*
- Highcharts JS v10.3.3 (2023-01-20)
-
- (c) 2009-2021 Torstein Honsi
-
- License: www.highcharts.com/license
-*/
-(function(a){"object"===typeof module&&module.exports?(a["default"]=a,module.exports=a):"function"===typeof define&&define.amd?define("highcharts/modules/overlapping-datalabels",["highcharts"],function(c){a(c);a.Highcharts=c;return a}):a("undefined"!==typeof Highcharts?Highcharts:void 0)})(function(a){(function(a,b,d,e){a.hasOwnProperty(b)||(a[b]=e.apply(null,d),"function"===typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:b,module:a[b]}})))})(a?a._modules:
-{},"masters/modules/overlapping-datalabels.src.js",[],function(){})});
-//# sourceMappingURL=overlapping-datalabels.js.map

+ 0 - 20
nicegui/elements/lib/highcharts_modules/parallel-coordinates.js

@@ -1,20 +0,0 @@
-/*
- Highcharts JS v10.3.3 (2023-01-20)
-
- Support for parallel coordinates in Highcharts
-
- (c) 2010-2021 Pawel Fus
-
- License: www.highcharts.com/license
-*/
-(function(b){"object"===typeof module&&module.exports?(b["default"]=b,module.exports=b):"function"===typeof define&&define.amd?define("highcharts/modules/parallel-coordinates",["highcharts"],function(g){b(g);b.Highcharts=g;return b}):b("undefined"!==typeof Highcharts?Highcharts:void 0)})(function(b){function g(b,k,g,p){b.hasOwnProperty(k)||(b[k]=p.apply(null,g),"function"===typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:k,module:b[k]}})))}b=b?b._modules:
-{};g(b,"Extensions/ParallelCoordinates.js",[b["Core/Axis/Axis.js"],b["Core/Chart/Chart.js"],b["Core/FormatUtilities.js"],b["Core/Globals.js"],b["Core/Defaults.js"],b["Core/Series/Series.js"],b["Core/Utilities.js"]],function(b,k,g,p,y,q,d){function z(a){var c=this.series&&this.series.chart,b=a.apply(this,Array.prototype.slice.call(arguments,1)),h;if(c&&c.hasParallelCoordinates&&!r(b.formattedValue)){var f=c.yAxis[this.x];var e=f.options;c=(h=v(e.tooltipValueFormat,e.labels.format))?A(h,w(this,{value:this.y}),
-c):f.dateTime?c.time.dateFormat(c.time.resolveDTLFormat(e.dateTimeLabelFormats[f.tickPositions.info.unitName]).main,this.y):e.categories?e.categories[this.y]:this.y;b.formattedValue=b.point.formattedValue=c}return b}var A=g.format;g=y.setOptions;var l=d.addEvent,B=d.arrayMax,C=d.arrayMin,r=d.defined,D=d.erase,w=d.extend,t=d.isNumber,m=d.merge,v=d.pick,u=d.splat,E=d.wrap;d=k.prototype;var x={lineWidth:0,tickLength:0,opposite:!0,type:"category"};g({chart:{parallelCoordinates:!1,parallelAxes:{lineWidth:1,
-title:{text:"",reserveSpace:!1},labels:{x:0,y:4,align:"center",reserveSpace:!1},offset:0}}});l(k,"init",function(a){a=a.args[0];var c=u(a.yAxis||{}),b=[],h=c.length;if(this.hasParallelCoordinates=a.chart&&a.chart.parallelCoordinates){for(this.setParallelInfo(a);h<=this.parallelInfo.counter;h++)b.push({});a.legend||(a.legend={});"undefined"===typeof a.legend.enabled&&(a.legend.enabled=!1);m(!0,a,{boost:{seriesThreshold:Number.MAX_VALUE},plotOptions:{series:{boostThreshold:Number.MAX_VALUE}}});a.yAxis=
-c.concat(b);a.xAxis=m(x,u(a.xAxis||{})[0])}});l(k,"update",function(a){a=a.options;a.chart&&(r(a.chart.parallelCoordinates)&&(this.hasParallelCoordinates=a.chart.parallelCoordinates),this.options.chart.parallelAxes=m(this.options.chart.parallelAxes,a.chart.parallelAxes));this.hasParallelCoordinates&&(a.series&&this.setParallelInfo(a),this.yAxis.forEach(function(a){a.update({},!1)}))});w(d,{setParallelInfo:function(a){var c=this;a=a.series;c.parallelInfo={counter:0};a.forEach(function(a){a.data&&(c.parallelInfo.counter=
-Math.max(c.parallelInfo.counter,a.data.length-1))})}});l(q,"bindAxes",function(a){if(this.chart.hasParallelCoordinates){var c=this;this.chart.axes.forEach(function(a){c.insert(a.series);a.isDirty=!0});c.xAxis=this.chart.xAxis[0];c.yAxis=this.chart.yAxis[0];a.preventDefault()}});l(q,"afterTranslate",function(){var a=this.chart,c=this.points,b=c&&c.length,h=Number.MAX_VALUE,f;if(this.chart.hasParallelCoordinates){for(f=0;f<b;f++){var e=c[f];if(r(e.y)){e.plotX=a.polar?a.yAxis[f].angleRad||0:a.inverted?
-a.plotHeight-a.yAxis[f].top+a.plotTop:a.yAxis[f].left-a.plotLeft;e.clientX=e.plotX;e.plotY=a.yAxis[f].translate(e.y,!1,!0,void 0,!0);t(e.high)&&(e.plotHigh=a.yAxis[f].translate(e.high,!1,!0,void 0,!0));"undefined"!==typeof d&&(h=Math.min(h,Math.abs(e.plotX-d)));var d=e.plotX;e.isInside=a.isInsidePlot(e.plotX,e.plotY,{inverted:a.inverted})}else e.isNull=!0}this.closestPointRangePx=h}},{order:1});l(q,"destroy",function(){this.chart.hasParallelCoordinates&&(this.chart.axes||[]).forEach(function(a){a&&
-a.series&&(D(a.series,this),a.isDirty=a.forceRedraw=!0)},this)});["line","spline"].forEach(function(a){E(p.seriesTypes[a].prototype.pointClass.prototype,"getLabelConfig",z)});var F=function(){function a(a){this.axis=a}a.prototype.setPosition=function(a,b){var c=this.axis,f=c.chart,e=((this.position||0)+.5)/(f.parallelInfo.counter+1);f.polar?b.angle=360*e:(b[a[0]]=100*e+"%",c[a[1]]=b[a[1]]=0,c[a[2]]=b[a[2]]=null,c[a[3]]=b[a[3]]=null)};return a}(),n;(function(a){function b(a){var b=this.chart,c=this.parallelCoordinates,
-f=["left","width","height","top"];if(b.hasParallelCoordinates)if(b.inverted&&(f=f.reverse()),this.isXAxis)this.options=m(this.options,x,a.userOptions);else{var d=b.yAxis.indexOf(this);this.options=m(this.options,this.chart.options.chart.parallelAxes,a.userOptions);c.position=v(c.position,0<=d?d:b.yAxis.length);c.setPosition(f,this.options)}}function d(a){var b=this.chart,c=this.parallelCoordinates;if(c&&b&&b.hasParallelCoordinates&&!this.isXAxis){var f=c.position,d=[];this.series.forEach(function(a){a.yData&&
-a.visible&&t(f)&&d.push.apply(d,u(a.yData[f]))});d=d.filter(t);this.dataMin=C(d);this.dataMax=B(d);a.preventDefault()}}function g(){this.parallelCoordinates||(this.parallelCoordinates=new F(this))}a.compose=function(a){a.keepProps.push("parallel");l(a,"init",g);l(a,"afterSetOptions",b);l(a,"getSeriesExtremes",d)}})(n||(n={}));n.compose(b);return n});g(b,"masters/modules/parallel-coordinates.src.js",[],function(){})});
-//# sourceMappingURL=parallel-coordinates.js.map

+ 0 - 16
nicegui/elements/lib/highcharts_modules/pareto.js

@@ -1,16 +0,0 @@
-/*
- Highcharts JS v10.3.3 (2023-01-20)
-
- Pareto series type for Highcharts
-
- (c) 2010-2021 Sebastian Bochan
-
- License: www.highcharts.com/license
-*/
-(function(a){"object"===typeof module&&module.exports?(a["default"]=a,module.exports=a):"function"===typeof define&&define.amd?define("highcharts/modules/pareto",["highcharts"],function(b){a(b);a.Highcharts=b;return a}):a("undefined"!==typeof Highcharts?Highcharts:void 0)})(function(a){function b(a,e,d,b){a.hasOwnProperty(e)||(a[e]=b.apply(null,d),"function"===typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:e,module:a[e]}})))}a=a?a._modules:{};b(a,"Series/DerivedComposition.js",
-[a["Core/Globals.js"],a["Core/Series/Series.js"],a["Core/Utilities.js"]],function(a,e,d){var b=a.noop,f=d.addEvent,l=d.defined,g;(function(a){function d(){e.prototype.init.apply(this,arguments);this.initialised=!1;this.baseSeries=null;this.eventRemovers=[];this.addEvents()}function m(){var a=this.chart,c=this.options.baseSeries;this.baseSeries=l(c)&&(a.series[c]||a.get(c))||null}function c(){var a=this;this.eventRemovers.push(f(this.chart,"afterLinkSeries",function(){a.setBaseSeries();a.baseSeries&&
-!a.initialised&&(a.setDerivedData(),a.addBaseSeriesEvents(),a.initialised=!0)}))}function k(){var a=this;this.eventRemovers.push(f(this.baseSeries,"updatedData",function(){a.setDerivedData()}),f(this.baseSeries,"destroy",function(){a.baseSeries=null;a.initialised=!1}))}function n(){this.eventRemovers.forEach(function(a){a()});e.prototype.destroy.apply(this,arguments)}var p=[];a.hasDerivedData=!0;a.setDerivedData=b;a.compose=function(a){if(-1===p.indexOf(a)){p.push(a);var b=a.prototype;b.addBaseSeriesEvents=
-k;b.addEvents=c;b.destroy=n;b.init=d;b.setBaseSeries=m}return a};a.init=d;a.setBaseSeries=m;a.addEvents=c;a.addBaseSeriesEvents=k;a.destroy=n})(g||(g={}));return g});b(a,"Series/ParetoSeries/ParetoSeries.js",[a["Series/DerivedComposition.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,b,d){var e=this&&this.__extends||function(){var a=function(b,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var b in c)c.hasOwnProperty(b)&&
-(a[b]=c[b])};return a(b,c)};return function(b,c){function d(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(d.prototype=c.prototype,new d)}}(),f=b.seriesTypes.line,l=d.correctFloat,g=d.merge;d=d.extend;var h=function(a){function b(){var b=null!==a&&a.apply(this,arguments)||this;b.data=void 0;b.points=void 0;b.options=void 0;return b}e(b,a);b.prototype.sumPointsPercents=function(a,b,d,e){var c=0,f=0,g=[],k;a.forEach(function(a,h){null!==a&&(e?c+=a:(k=a/d*100,g.push([b[h],l(f+k)]),
-f+=k))});return e?c:g};b.prototype.setDerivedData=function(){var a=this.baseSeries.xData,b=this.baseSeries.yData,d=this.sumPointsPercents(b,a,null,!0);this.setData(this.sumPointsPercents(b,a,d,!1),!1)};b.defaultOptions=g(f.defaultOptions,{zIndex:3});return b}(f);d(h.prototype,{hasDerivedData:a.hasDerivedData});a.compose(h);b.registerSeriesType("pareto",h);"";return h});b(a,"masters/modules/pareto.src.js",[],function(){})});
-//# sourceMappingURL=pareto.js.map

+ 0 - 40
nicegui/elements/lib/highcharts_modules/pathfinder.js

@@ -1,40 +0,0 @@
-/*
- Highcharts Gantt JS v10.3.3 (2023-01-20)
-
- Pathfinder
-
- (c) 2016-2021 ystein Moseng
-
- License: www.highcharts.com/license
-*/
-(function(a){"object"===typeof module&&module.exports?(a["default"]=a,module.exports=a):"function"===typeof define&&define.amd?define("highcharts/modules/pathfinder",["highcharts"],function(x){a(x);a.Highcharts=x;return a}):a("undefined"!==typeof Highcharts?Highcharts:void 0)})(function(a){function x(a,y,u,v){a.hasOwnProperty(y)||(a[y]=v.apply(null,u),"function"===typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:y,module:a[y]}})))}a=a?a._modules:{};x(a,
-"Extensions/ArrowSymbols.js",[a["Core/Renderer/SVG/SVGRenderer.js"]],function(a){function y(a,d,n,q){return[["M",a,d+q/2],["L",a+n,d],["L",a,d+q/2],["L",a+n,d+q]]}function u(a,d,n,q){return[["M",a+n,d],["L",a,d+q/2],["L",a+n,d+q],["Z"]]}function v(a,d,n,q){return u(a,d,n/2,q)}a=a.prototype.symbols;a.arrow=y;a["arrow-filled"]=u;a["arrow-filled-half"]=v;a["arrow-half"]=function(a,d,n,q){return y(a,d,n/2,q)};a["triangle-left"]=u;a["triangle-left-half"]=v;return a});x(a,"Gantt/Connection.js",[a["Core/Defaults.js"],
-a["Core/Globals.js"],a["Core/Series/Point.js"],a["Core/Utilities.js"]],function(a,y,u,v){function B(a){var l=a.shapeArgs;return l?{xMin:l.x||0,xMax:(l.x||0)+(l.width||0),yMin:l.y||0,yMax:(l.y||0)+(l.height||0)}:(l=a.graphic&&a.graphic.getBBox())?{xMin:a.plotX-l.width/2,xMax:a.plotX+l.width/2,yMin:a.plotY-l.height/2,yMax:a.plotY+l.height/2}:null}var d=a.defaultOptions,n=v.defined,q=v.error;a=v.extend;var z=v.merge,x=v.objectEach;"";var h=y.deg2rad,b=Math.max,g=Math.min;a(d,{connectors:{type:"straight",
-lineWidth:1,marker:{enabled:!1,align:"center",verticalAlign:"middle",inside:!1,lineWidth:1},startMarker:{symbol:"diamond"},endMarker:{symbol:"arrow-filled"}}});v=function(){function a(l,a,m){this.toPoint=this.pathfinder=this.graphics=this.fromPoint=this.chart=void 0;this.init(l,a,m)}a.prototype.init=function(l,a,m){this.fromPoint=l;this.toPoint=a;this.options=m;this.chart=l.series.chart;this.pathfinder=this.chart.pathfinder};a.prototype.renderPath=function(l,a,m){var f=this.chart,h=f.styledMode,b=
-f.pathfinder,e=!f.options.chart.forExport&&!1!==m,c=this.graphics&&this.graphics.path;b.group||(b.group=f.renderer.g().addClass("highcharts-pathfinder-group").attr({zIndex:-1}).add(f.seriesGroup));b.group.translate(f.plotLeft,f.plotTop);c&&c.renderer||(c=f.renderer.path().add(b.group),h||c.attr({opacity:0}));c.attr(a);l={d:l};h||(l.opacity=1);c[e?"animate":"attr"](l,m);this.graphics=this.graphics||{};this.graphics.path=c};a.prototype.addMarker=function(a,f,m){var l=this.fromPoint.series.chart,b=l.pathfinder;
-l=l.renderer;var g="start"===a?this.fromPoint:this.toPoint,e=g.getPathfinderAnchorPoint(f);if(f.enabled&&((m="start"===a?m[1]:m[m.length-2])&&"M"===m[0]||"L"===m[0])){m={x:m[1],y:m[2]};m=g.getRadiansToVector(m,e);e=g.getMarkerVector(m,f.radius,e);m=-m/h;if(f.width&&f.height){var c=f.width;var t=f.height}else c=t=2*f.radius;this.graphics=this.graphics||{};e={x:e.x-c/2,y:e.y-t/2,width:c,height:t,rotation:m,rotationOriginX:e.x,rotationOriginY:e.y};this.graphics[a]?this.graphics[a].animate(e):(this.graphics[a]=
-l.symbol(f.symbol).addClass("highcharts-point-connecting-path-"+a+"-marker").attr(e).add(b.group),l.styledMode||this.graphics[a].attr({fill:f.color||this.fromPoint.color,stroke:f.lineColor,"stroke-width":f.lineWidth,opacity:0}).animate({opacity:1},g.series.options.animation))}};a.prototype.getPath=function(a){var f=this.pathfinder,l=this.chart,b=f.algorithms[a.type],h=f.chartObstacles;if("function"!==typeof b)return q('"'+a.type+'" is not a Pathfinder algorithm.'),{path:[],obstacles:[]};b.requiresObstacles&&
-!h&&(h=f.chartObstacles=f.getChartObstacles(a),l.options.connectors.algorithmMargin=a.algorithmMargin,f.chartObstacleMetrics=f.getObstacleMetrics(h));return b(this.fromPoint.getPathfinderAnchorPoint(a.startMarker),this.toPoint.getPathfinderAnchorPoint(a.endMarker),z({chartObstacles:h,lineObstacles:f.lineObstacles||[],obstacleMetrics:f.chartObstacleMetrics,hardBounds:{xMin:0,xMax:l.plotWidth,yMin:0,yMax:l.plotHeight},obstacleOptions:{margin:a.algorithmMargin},startDirectionX:f.getAlgorithmStartDirection(a.startMarker)},
-a))};a.prototype.render=function(){var a=this.fromPoint,f=a.series,h=f.chart,E=h.pathfinder,p=z(h.options.connectors,f.options.connectors,a.options.connectors,this.options),d={};h.styledMode||(d.stroke=p.lineColor||a.color,d["stroke-width"]=p.lineWidth,p.dashStyle&&(d.dashstyle=p.dashStyle));d["class"]="highcharts-point-connecting-path highcharts-color-"+a.colorIndex;p=z(d,p);n(p.marker.radius)||(p.marker.radius=g(b(Math.ceil((p.algorithmMargin||8)/2)-1,1),5));a=this.getPath(p);h=a.path;a.obstacles&&
-(E.lineObstacles=E.lineObstacles||[],E.lineObstacles=E.lineObstacles.concat(a.obstacles));this.renderPath(h,d,f.options.animation);this.addMarker("start",z(p.marker,p.startMarker),h);this.addMarker("end",z(p.marker,p.endMarker),h)};a.prototype.destroy=function(){this.graphics&&(x(this.graphics,function(a){a.destroy()}),delete this.graphics)};return a}();y.Connection=v;a(u.prototype,{getPathfinderAnchorPoint:function(a){var h=B(this);switch(a.align){case "right":var f="xMax";break;case "left":f="xMin"}switch(a.verticalAlign){case "top":var b=
-"yMin";break;case "bottom":b="yMax"}return{x:f?h[f]:(h.xMin+h.xMax)/2,y:b?h[b]:(h.yMin+h.yMax)/2}},getRadiansToVector:function(a,h){var f;n(h)||(f=B(this))&&(h={x:(f.xMin+f.xMax)/2,y:(f.yMin+f.yMax)/2});return Math.atan2(h.y-a.y,a.x-h.x)},getMarkerVector:function(a,h,f){var b=2*Math.PI,g=B(this),l=g.xMax-g.xMin,d=g.yMax-g.yMin,e=Math.atan2(d,l),c=!1;l/=2;var t=d/2,I=g.xMin+l;g=g.yMin+t;for(var F=I,G=g,k=1,r=1;a<-Math.PI;)a+=b;for(;a>Math.PI;)a-=b;b=Math.tan(a);a>-e&&a<=e?(r=-1,c=!0):a>e&&a<=Math.PI-
-e?r=-1:a>Math.PI-e||a<=-(Math.PI-e)?(k=-1,c=!0):k=-1;c?(F+=k*l,G+=r*l*b):(F+=d/(2*b)*k,G+=r*t);f.x!==I&&(F=f.x);f.y!==g&&(G=f.y);return{x:F+h*Math.cos(a),y:G-h*Math.sin(a)}}});return v});x(a,"Gantt/PathfinderAlgorithms.js",[a["Core/Utilities.js"]],function(a){function y(a,b,g){g=g||0;var h=a.length-1;b-=1e-7;for(var l,f;g<=h;)if(l=h+g>>1,f=b-a[l].xMin,0<f)g=l+1;else if(0>f)h=l-1;else return l;return 0<g?g-1:0}function u(a,b){for(var h=y(a,b.x+1)+1;h--;){var d;if(d=a[h].xMax>=b.x)d=a[h],d=b.x<=d.xMax&&
-b.x>=d.xMin&&b.y<=d.yMax&&b.y>=d.yMin;if(d)return h}return-1}function v(a){var h=[];if(a.length){h.push(["M",a[0].start.x,a[0].start.y]);for(var g=0;g<a.length;++g)h.push(["L",a[g].end.x,a[g].end.y])}return h}function x(a,b){a.yMin=q(a.yMin,b.yMin);a.yMax=n(a.yMax,b.yMax);a.xMin=q(a.xMin,b.xMin);a.xMax=n(a.xMax,b.xMax)}var d=a.pick,n=Math.min,q=Math.max,z=Math.abs;a=function(a,b,g){function h(a,e,b,h,f){a={x:a.x,y:a.y};a[e]=b[h||e]+(f||0);return a}function l(a,e,b){var c=z(e[b]-a[b+"Min"])>z(e[b]-
-a[b+"Max"]);return h(e,b,a,b+(c?"Max":"Min"),c?1:-1)}var f=[],m=d(g.startDirectionX,z(b.x-a.x)>z(b.y-a.y))?"x":"y",n=g.chartObstacles,p=u(n,a);g=u(n,b);if(-1<g){var q=n[g];g=l(q,b,m);q={start:g,end:b};var e=g}else e=b;-1<p&&(n=n[p],g=l(n,a,m),f.push({start:a,end:g}),g[m]>=a[m]===g[m]>=e[m]&&(m="y"===m?"x":"y",b=a[m]<b[m],f.push({start:g,end:h(g,m,n,m+(b?"Max":"Min"),b?1:-1)}),m="y"===m?"x":"y"));a=f.length?f[f.length-1].end:a;g=h(a,m,e);f.push({start:a,end:g});m=h(g,"y"===m?"x":"y",e);f.push({start:g,
-end:m});f.push(q);return{path:v(f),obstacles:f}};a.requiresObstacles=!0;var J=function(a,b,g){function h(a,c,e){var b,f=a.x<c.x?1:-1;if(a.x<c.x){var t=a;var h=c}else t=c,h=a;if(a.y<c.y){var g=a;var w=c}else g=c,w=a;for(b=0>f?n(y(k,h.x),k.length-1):0;k[b]&&(0<f&&k[b].xMin<=h.x||0>f&&k[b].xMax>=t.x);){if(k[b].xMin<=h.x&&k[b].xMax>=t.x&&k[b].yMin<=w.y&&k[b].yMax>=g.y)return e?{y:a.y,x:a.x<c.x?k[b].xMin-1:k[b].xMax+1,obstacle:k[b]}:{x:a.x,y:a.y<c.y?k[b].yMin-1:k[b].yMax+1,obstacle:k[b]};b+=f}return c}
-function l(a,b,c,e,f){var t=f.soft,g=f.hard,k=e?"x":"y",l={x:b.x,y:b.y},w={x:b.x,y:b.y};f=a[k+"Max"]>=t[k+"Max"];t=a[k+"Min"]<=t[k+"Min"];var A=a[k+"Max"]>=g[k+"Max"];g=a[k+"Min"]<=g[k+"Min"];var d=z(a[k+"Min"]-b[k]),m=z(a[k+"Max"]-b[k]);c=10>z(d-m)?b[k]<c[k]:m<d;w[k]=a[k+"Min"];l[k]=a[k+"Max"];a=h(b,w,e)[k]!==w[k];b=h(b,l,e)[k]!==l[k];c=a?b?c:!0:b?!1:c;c=t?f?c:!0:f?!1:c;return g?A?c:!0:A?!1:c}function f(a,b,c){if(a.x===b.x&&a.y===b.y)return[];var d=c?"x":"y",m=g.obstacleOptions.margin;var r={soft:{xMin:t,
-xMax:I,yMin:F,yMax:G},hard:g.hardBounds};var w=u(k,a);if(-1<w){w=k[w];r=l(w,a,b,c,r);x(w,g.hardBounds);var A=c?{y:a.y,x:w[r?"xMax":"xMin"]+(r?1:-1)}:{x:a.x,y:w[r?"yMax":"yMin"]+(r?1:-1)};var D=u(k,A);-1<D&&(D=k[D],x(D,g.hardBounds),A[d]=r?q(w[d+"Max"]-m+1,(D[d+"Min"]+w[d+"Max"])/2):n(w[d+"Min"]+m-1,(D[d+"Max"]+w[d+"Min"])/2),a.x===A.x&&a.y===A.y?(e&&(A[d]=r?q(w[d+"Max"],D[d+"Max"])+1:n(w[d+"Min"],D[d+"Min"])-1),e=!e):e=!1);a=[{start:a,end:A}]}else d=h(a,{x:c?b.x:a.x,y:c?a.y:b.y},c),a=[{start:a,end:{x:d.x,
-y:d.y}}],d[c?"x":"y"]!==b[c?"x":"y"]&&(r=l(d.obstacle,d,b,!c,r),x(d.obstacle,g.hardBounds),r={x:c?d.x:d.obstacle[r?"xMax":"xMin"]+(r?1:-1),y:c?d.obstacle[r?"yMax":"yMin"]+(r?1:-1):d.y},c=!c,a=a.concat(f({x:d.x,y:d.y},r,c)));return a=a.concat(f(a[a.length-1].end,b,!c))}function m(a,c,b){var e=n(a.xMax-c.x,c.x-a.xMin)<n(a.yMax-c.y,c.y-a.yMin);b=l(a,c,b,e,{soft:g.hardBounds,hard:g.hardBounds});return e?{y:c.y,x:a[b?"xMax":"xMin"]+(b?1:-1)}:{x:c.x,y:a[b?"yMax":"yMin"]+(b?1:-1)}}var B=d(g.startDirectionX,
-z(b.x-a.x)>z(b.y-a.y)),p=B?"x":"y",C=[],e=!1,c=g.obstacleMetrics,t=n(a.x,b.x)-c.maxWidth-10,I=q(a.x,b.x)+c.maxWidth+10,F=n(a.y,b.y)-c.maxHeight-10,G=q(a.y,b.y)+c.maxHeight+10,k=g.chartObstacles;var r=y(k,t);c=y(k,I);k=k.slice(r,c+1);if(-1<(c=u(k,b))){var H=m(k[c],b,a);C.push({end:b,start:H});b=H}for(;-1<(c=u(k,b));)r=0>b[p]-a[p],H={x:b.x,y:b.y},H[p]=k[c][r?p+"Max":p+"Min"]+(r?1:-1),C.push({end:b,start:H}),b=H;a=f(a,b,B);a=a.concat(C.reverse());return{path:v(a),obstacles:a}};J.requiresObstacles=!0;
-return{fastAvoid:J,straight:function(a,b){return{path:[["M",a.x,a.y],["L",b.x,b.y]],obstacles:[{start:a,end:b}]}},simpleConnect:a}});x(a,"Gantt/Pathfinder.js",[a["Gantt/Connection.js"],a["Core/Chart/Chart.js"],a["Core/Defaults.js"],a["Core/Globals.js"],a["Core/Series/Point.js"],a["Core/Utilities.js"],a["Gantt/PathfinderAlgorithms.js"]],function(a,y,u,v,x,d,n){function q(a){var c=a.shapeArgs;return c?{xMin:c.x||0,xMax:(c.x||0)+(c.width||0),yMin:c.y||0,yMax:(c.y||0)+(c.height||0)}:(c=a.graphic&&a.graphic.getBBox())?
-{xMin:a.plotX-c.width/2,xMax:a.plotX+c.width/2,yMin:a.plotY-c.height/2,yMax:a.plotY+c.height/2}:null}function z(a){for(var c=a.length,b=0,e,d,g=[],k=function(a,b,c){c=f(c,10);var e=a.yMax+c>b.yMin-c&&a.yMin-c<b.yMax+c,d=a.xMax+c>b.xMin-c&&a.xMin-c<b.xMax+c,g=e?a.xMin>b.xMax?a.xMin-b.xMax:b.xMin-a.xMax:Infinity,t=d?a.yMin>b.yMax?a.yMin-b.yMax:b.yMin-a.yMax:Infinity;return d&&e?c?k(a,b,Math.floor(c/2)):Infinity:p(g,t)};b<c;++b)for(e=b+1;e<c;++e)d=k(a[b],a[e]),80>d&&g.push(d);g.push(80);return K(Math.floor(g.sort(function(a,
-c){return a-c})[Math.floor(g.length/10)]/2-1),1)}function B(a){if(a.options.pathfinder||a.series.reduce(function(a,b){b.options&&l(!0,b.options.connectors=b.options.connectors||{},b.options.pathfinder);return a||b.options&&b.options.pathfinder},!1))l(!0,a.options.connectors=a.options.connectors||{},a.options.pathfinder),g('WARNING: Pathfinder options have been renamed. Use "chart.connectors" or "series.connectors" instead.')}u=u.defaultOptions;var h=d.addEvent,b=d.defined,g=d.error,E=d.extend,l=d.merge,
-f=d.pick,m=d.splat;"";var K=Math.max,p=Math.min;E(u,{connectors:{type:"straight",lineWidth:1,marker:{enabled:!1,align:"center",verticalAlign:"middle",inside:!1,lineWidth:1},startMarker:{symbol:"diamond"},endMarker:{symbol:"arrow-filled"}}});var C=function(){function e(a){this.lineObstacles=this.group=this.connections=this.chartObstacleMetrics=this.chartObstacles=this.chart=void 0;this.init(a)}e.prototype.init=function(a){this.chart=a;this.connections=[];h(a,"redraw",function(){this.pathfinder.update()})};
-e.prototype.update=function(b){var c=this.chart,f=this,e=f.connections;f.connections=[];c.series.forEach(function(b){b.visible&&!b.options.isInternal&&b.points.forEach(function(b){var e=b.options;e&&e.dependency&&(e.connect=e.dependency);var d;e=b.options&&b.options.connect&&m(b.options.connect);b.visible&&!1!==b.isInside&&e&&e.forEach(function(e){d=c.get("string"===typeof e?e:e.to);d instanceof x&&d.series.visible&&d.visible&&!1!==d.isInside&&f.connections.push(new a(b,d,"string"===typeof e?{}:e))})})});
-for(var d=0,k=void 0,g=void 0,h=e.length,l=f.connections.length;d<h;++d){g=!1;var n=e[d];for(k=0;k<l;++k){var A=f.connections[k];if((n.options&&n.options.type)===(A.options&&A.options.type)&&n.fromPoint===A.fromPoint&&n.toPoint===A.toPoint){A.graphics=n.graphics;g=!0;break}}g||n.destroy()}delete this.chartObstacles;delete this.lineObstacles;f.renderConnections(b)};e.prototype.renderConnections=function(a){a?this.chart.series.forEach(function(a){var b=function(){var b=a.chart.pathfinder;(b&&b.connections||
-[]).forEach(function(b){b.fromPoint&&b.fromPoint.series===a&&b.render()});a.pathfinderRemoveRenderEvent&&(a.pathfinderRemoveRenderEvent(),delete a.pathfinderRemoveRenderEvent)};!1===a.options.animation?b():a.pathfinderRemoveRenderEvent=h(a,"afterAnimate",b)}):this.connections.forEach(function(a){a.render()})};e.prototype.getChartObstacles=function(a){for(var c=[],e=this.chart.series,d=f(a.algorithmMargin,0),g,k=0,h=e.length;k<h;++k)if(e[k].visible&&!e[k].options.isInternal){var l=0,m=e[k].points.length,
-n=void 0;for(n=void 0;l<m;++l)n=e[k].points[l],n.visible&&(n=q(n))&&c.push({xMin:n.xMin-d,xMax:n.xMax+d,yMin:n.yMin-d,yMax:n.yMax+d})}c=c.sort(function(a,b){return a.xMin-b.xMin});b(a.algorithmMargin)||(g=a.algorithmMargin=z(c),c.forEach(function(a){a.xMin-=g;a.xMax+=g;a.yMin-=g;a.yMax+=g}));return c};e.prototype.getObstacleMetrics=function(a){for(var b=0,c=0,e,d,f=a.length;f--;)e=a[f].xMax-a[f].xMin,d=a[f].yMax-a[f].yMin,b<e&&(b=e),c<d&&(c=d);return{maxHeight:c,maxWidth:b}};e.prototype.getAlgorithmStartDirection=
-function(a){var b="top"!==a.verticalAlign&&"bottom"!==a.verticalAlign;return"left"!==a.align&&"right"!==a.align?b?void 0:!1:b?!0:void 0};return e}();C.prototype.algorithms=n;v.Pathfinder=C;E(x.prototype,{getPathfinderAnchorPoint:function(a){var b=q(this);switch(a.align){case "right":var e="xMax";break;case "left":e="xMin"}switch(a.verticalAlign){case "top":var d="yMin";break;case "bottom":d="yMax"}return{x:e?b[e]:(b.xMin+b.xMax)/2,y:d?b[d]:(b.yMin+b.yMax)/2}},getRadiansToVector:function(a,c){var e;
-b(c)||(e=q(this))&&(c={x:(e.xMin+e.xMax)/2,y:(e.yMin+e.yMax)/2});return Math.atan2(c.y-a.y,a.x-c.x)},getMarkerVector:function(a,b,d){var c=2*Math.PI,e=q(this),f=e.xMax-e.xMin,g=e.yMax-e.yMin,h=Math.atan2(g,f),l=!1;f/=2;var m=g/2,n=e.xMin+f;e=e.yMin+m;for(var p=n,t=e,u=1,v=1;a<-Math.PI;)a+=c;for(;a>Math.PI;)a-=c;c=Math.tan(a);a>-h&&a<=h?(v=-1,l=!0):a>h&&a<=Math.PI-h?v=-1:a>Math.PI-h||a<=-(Math.PI-h)?(u=-1,l=!0):u=-1;l?(p+=u*f,t+=v*f*c):(p+=g/(2*c)*u,t+=v*m);d.x!==n&&(p=d.x);d.y!==e&&(t=d.y);return{x:p+
-b*Math.cos(a),y:t-b*Math.sin(a)}}});y.prototype.callbacks.push(function(a){!1!==a.options.connectors.enabled&&(B(a),this.pathfinder=new C(this),this.pathfinder.update(!0))});return C});x(a,"masters/modules/pathfinder.src.js",[],function(){})});
-//# sourceMappingURL=pathfinder.js.map

+ 0 - 25
nicegui/elements/lib/highcharts_modules/pattern-fill.js

@@ -1,25 +0,0 @@
-/*
- Highcharts JS v10.3.3 (2023-01-20)
-
- Module for adding patterns and images as point fills.
-
- (c) 2010-2021 Highsoft AS
- Author: Torstein Hnsi, ystein Moseng
-
- License: www.highcharts.com/license
-*/
-(function(c){"object"===typeof module&&module.exports?(c["default"]=c,module.exports=c):"function"===typeof define&&define.amd?define("highcharts/modules/pattern-fill",["highcharts"],function(f){c(f);c.Highcharts=f;return c}):c("undefined"!==typeof Highcharts?Highcharts:void 0)})(function(c){function f(c,g,f,p){c.hasOwnProperty(g)||(c[g]=p.apply(null,f),"function"===typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:g,module:c[g]}})))}c=c?c._modules:{};
-f(c,"Extensions/PatternFill.js",[c["Core/Animation/AnimationUtilities.js"],c["Core/Chart/Chart.js"],c["Core/Globals.js"],c["Core/Defaults.js"],c["Core/Series/Point.js"],c["Core/Series/Series.js"],c["Core/Renderer/SVG/SVGRenderer.js"],c["Core/Utilities.js"]],function(c,f,x,p,r,t,u,l){function g(a,b){a=JSON.stringify(a);var c=a.length||0,e=0,d=0;if(b){b=Math.max(Math.floor(c/500),1);for(var n=0;n<c;n+=b)e+=a.charCodeAt(n);e&=e}for(;d<c;++d)b=a.charCodeAt(d),e=(e<<5)-e+b,e&=e;return e.toString(16).replace("-",
-"1")}var y=c.animObject,z=p.getOptions;c=l.addEvent;var A=l.defined,B=l.erase,v=l.merge,q=l.pick,C=l.removeEvent;p=l.wrap;var w=x.patterns=function(){var a=[],b=z().colors;["M 0 0 L 5 5 M 4.5 -0.5 L 5.5 0.5 M -0.5 4.5 L 0.5 5.5","M 0 5 L 5 0 M -0.5 0.5 L 0.5 -0.5 M 4.5 5.5 L 5.5 4.5","M 2 0 L 2 5 M 4 0 L 4 5","M 0 2 L 5 2 M 0 4 L 5 4","M 0 1.5 L 2.5 1.5 L 2.5 0 M 2.5 5 L 2.5 3.5 L 5 3.5"].forEach(function(c,e){a.push({path:c,color:b[e],width:5,height:5,patternTransform:"scale(1.4 1.4)"})});["M 0 0 L 5 10 L 10 0",
-"M 3 3 L 8 3 L 8 8 L 3 8 Z","M 5 5 m -4 0 a 4 4 0 1 1 8 0 a 4 4 0 1 1 -8 0","M 0 0 L 10 10 M 9 -1 L 11 1 M -1 9 L 1 11","M 0 10 L 10 0 M -1 1 L 1 -1 M 9 11 L 11 9"].forEach(function(c,e){a.push({path:c,color:b[e+5],width:10,height:10})});return a}();r.prototype.calculatePatternDimensions=function(a){if(!a.width||!a.height){var b=this.graphic&&(this.graphic.getBBox&&this.graphic.getBBox(!0)||this.graphic.element&&this.graphic.element.getBBox())||{},c=this.shapeArgs;c&&(b.width=c.width||b.width,b.height=
-c.height||b.height,b.x=c.x||b.x,b.y=c.y||b.y);if(a.image){if(!b.width||!b.height){a._width="defer";a._height="defer";b=this.series.chart.mapView&&this.series.chart.mapView.getSVGTransform().scaleY;A(b)&&0>b&&(a._inverted=!0);return}a.aspectRatio&&(b.aspectRatio=b.width/b.height,a.aspectRatio>b.aspectRatio?b.aspectWidth=b.height*a.aspectRatio:b.aspectHeight=b.width/a.aspectRatio);a._width=a.width||Math.ceil(b.aspectWidth||b.width);a._height=a.height||Math.ceil(b.aspectHeight||b.height)}a.width||(a._x=
-a.x||0,a._x+=b.x-Math.round(b.aspectWidth?Math.abs(b.aspectWidth-b.width)/2:0));a.height||(a._y=a.y||0,a._y+=b.y-Math.round(b.aspectHeight?Math.abs(b.aspectHeight-b.height)/2:0))}};u.prototype.addPattern=function(a,b){b=q(b,!0);var c=y(b),e=a.width||a._width||32,d=a.height||a._height||32,n=a.color||"#343434",h=a.id,f=this,g=function(a){f.rect(0,0,e,d).attr({fill:a}).add(m)};h||(this.idCounter=this.idCounter||0,h="highcharts-pattern-"+this.idCounter+"-"+(this.chartIndex||0),++this.idCounter);this.forExport&&
-(h+="-export");this.defIds=this.defIds||[];if(!(-1<this.defIds.indexOf(h))){this.defIds.push(h);var k={id:h,patternUnits:"userSpaceOnUse",patternContentUnits:a.patternContentUnits||"userSpaceOnUse",width:e,height:d,x:a._x||a.x||0,y:a._y||a.y||0};a._inverted&&(k.patternTransform="scale(1, -1)",a.patternTransform&&(a.patternTransform+=" scale(1, -1)"));a.patternTransform&&(k.patternTransform=a.patternTransform);var m=this.createElement("pattern").attr(k).add(this.defs);m.id=h;a.path?(k=l.isObject(a.path)?
-a.path:{d:a.path},a.backgroundColor&&g(a.backgroundColor),g={d:k.d},this.styledMode||(g.stroke=k.stroke||n,g["stroke-width"]=q(k.strokeWidth,2),g.fill=k.fill||"none"),k.transform&&(g.transform=k.transform),this.createElement("path").attr(g).add(m),m.color=n):a.image&&(b?this.image(a.image,0,0,e,d,function(){this.animate({opacity:q(a.opacity,1)},c);C(this.element,"load")}).attr({opacity:0}).add(m):this.image(a.image,0,0,e,d).add(m));a.image&&b||"undefined"===typeof a.opacity||[].forEach.call(m.element.childNodes,
-function(b){b.setAttribute("opacity",a.opacity)});this.patternElements=this.patternElements||{};return this.patternElements[h]=m}};p(t.prototype,"getColor",function(a){var b=this.options.color;b&&b.pattern&&!b.pattern.color?(delete this.options.color,a.apply(this,Array.prototype.slice.call(arguments,1)),b.pattern.color=this.color,this.color=this.options.color=b):a.apply(this,Array.prototype.slice.call(arguments,1))});c(t,"render",function(){var a=this.chart.isResizing;(this.isDirtyData||a||!this.chart.hasRendered)&&
-(this.points||[]).forEach(function(b){var c=b.options&&b.options.color;c&&c.pattern&&(!a||b.shapeArgs&&b.shapeArgs.width&&b.shapeArgs.height?b.calculatePatternDimensions(c.pattern):(c.pattern._width="defer",c.pattern._height="defer"))})});c(r,"afterInit",function(){var a=this.options.color;a&&a.pattern&&("string"===typeof a.pattern.path&&(a.pattern.path={d:a.pattern.path}),this.color=this.options.color=v(this.series.options.color,a))});c(u,"complexColor",function(a){var b=a.args[0],c=a.args[1];a=
-a.args[2];var e=this.chartIndex||0,d=b.pattern,f="#343434";"undefined"!==typeof b.patternIndex&&w&&(d=w[b.patternIndex]);if(!d)return!0;if(d.image||"string"===typeof d.path||d.path&&d.path.d){var h=a.parentNode&&a.parentNode.getAttribute("class");h=h&&-1<h.indexOf("highcharts-legend");"defer"!==d._width&&"defer"!==d._height||r.prototype.calculatePatternDimensions.call({graphic:{element:a}},d);if(h||!d.id)d=v({},d),d.id="highcharts-pattern-"+e+"-"+g(d)+g(d,!0);this.addPattern(d,!this.forExport&&q(d.animation,
-this.globalAnimation,{duration:100}));f="url(".concat(this.url,"#").concat(d.id+(this.forExport?"-export":""),")")}else f=d.color||f;a.setAttribute(c,f);b.toString=function(){return f};return!1});c(f,"endResize",function(){(this.renderer&&this.renderer.defIds||[]).filter(function(a){return a&&a.indexOf&&0===a.indexOf("highcharts-pattern-")}).length&&(this.series.forEach(function(a){a.visible&&a.points.forEach(function(a){(a=a.options&&a.options.color)&&a.pattern&&(a.pattern._width="defer",a.pattern._height=
-"defer")})}),this.redraw(!1))});c(f,"redraw",function(){var a={},b=this.renderer,c=(b.defIds||[]).filter(function(a){return a.indexOf&&0===a.indexOf("highcharts-pattern-")});c.length&&([].forEach.call(this.renderTo.querySelectorAll('[color^="url("], [fill^="url("], [stroke^="url("]'),function(c){if(c=c.getAttribute("fill")||c.getAttribute("color")||c.getAttribute("stroke"))c=c.replace(b.url,"").replace("url(#","").replace(")",""),a[c]=!0}),c.forEach(function(c){a[c]||(B(b.defIds,c),b.patternElements[c]&&
-(b.patternElements[c].destroy(),delete b.patternElements[c]))}))});""});f(c,"masters/modules/pattern-fill.src.js",[],function(){})});
-//# sourceMappingURL=pattern-fill.js.map

+ 0 - 15
nicegui/elements/lib/highcharts_modules/price-indicator.js

@@ -1,15 +0,0 @@
-/*
- Highstock JS v10.3.3 (2023-01-20)
-
- Advanced Highcharts Stock tools
-
- (c) 2010-2021 Highsoft AS
- Author: Torstein Honsi
-
- License: www.highcharts.com/license
-*/
-(function(a){"object"===typeof module&&module.exports?(a["default"]=a,module.exports=a):"function"===typeof define&&define.amd?define("highcharts/modules/price-indicator",["highcharts","highcharts/modules/stock"],function(c){a(c);a.Highcharts=c;return a}):a("undefined"!==typeof Highcharts?Highcharts:void 0)})(function(a){function c(a,d,c,f){a.hasOwnProperty(d)||(a[d]=f.apply(null,c),"function"===typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:d,module:a[d]}})))}
-a=a?a._modules:{};c(a,"Extensions/PriceIndication.js",[a["Core/Series/Series.js"],a["Core/Utilities.js"]],function(a,d){var c=d.addEvent,f=d.isArray,m=d.merge;c(a,"afterRender",function(){var a=this.options,c=a.pointRange,d=a.lastVisiblePrice,e=a.lastPrice;if((d||e)&&"highcharts-navigator-series"!==a.id){var n=this.xAxis,b=this.yAxis,p=b.crosshair,q=b.cross,r=b.crossLabel,g=this.points,h=g.length,k=this.xData[this.xData.length-1],l=this.yData[this.yData.length-1];e&&e.enabled&&(b.crosshair=b.options.crosshair=
-a.lastPrice,!this.chart.styledMode&&b.crosshair&&b.options.crosshair&&a.lastPrice&&(b.crosshair.color=b.options.crosshair.color=a.lastPrice.color||this.color),b.cross=this.lastPrice,e=f(l)?l[3]:l,b.drawCrosshair(null,{x:k,y:e,plotX:n.toPixels(k,!0),plotY:b.toPixels(e,!0)}),this.yAxis.cross&&(this.lastPrice=this.yAxis.cross,this.lastPrice.addClass("highcharts-color-"+this.colorIndex),this.lastPrice.y=e));d&&d.enabled&&0<h&&(c=g[h-1].x===k||null===c?1:2,b.crosshair=b.options.crosshair=m({color:"transparent"},
-a.lastVisiblePrice),b.cross=this.lastVisiblePrice,a=g[h-c],this.crossLabel&&this.crossLabel.destroy(),delete b.crossLabel,b.drawCrosshair(null,a),b.cross&&(this.lastVisiblePrice=b.cross,"number"===typeof a.y&&(this.lastVisiblePrice.y=a.y)),this.crossLabel=b.crossLabel);b.crosshair=b.options.crosshair=p;b.cross=q;b.crossLabel=r}})});c(a,"masters/modules/price-indicator.src.js",[],function(){})});
-//# sourceMappingURL=price-indicator.js.map

+ 0 - 13
nicegui/elements/lib/highcharts_modules/pyramid3d.js

@@ -1,13 +0,0 @@
-/*
- Highcharts JS v10.3.3 (2023-01-20)
-
- Highcharts 3D funnel module
-
- (c) 2010-2021 Kacper Madej
-
- License: www.highcharts.com/license
-*/
-(function(a){"object"===typeof module&&module.exports?(a["default"]=a,module.exports=a):"function"===typeof define&&define.amd?define("highcharts/modules/pyramid3d",["highcharts","highcharts/highcharts-3d","highcharts/modules/cylinder","highcharts/modules/funnel3d"],function(b){a(b);a.Highcharts=b;return a}):a("undefined"!==typeof Highcharts?Highcharts:void 0)})(function(a){function b(a,c,b,e){a.hasOwnProperty(c)||(a[c]=e.apply(null,b),"function"===typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",
-{detail:{path:c,module:a[c]}})))}a=a?a._modules:{};b(a,"Series/Pyramid3D/Pyramid3DSeries.js",[a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,c){var b=this&&this.__extends||function(){var a=function(b,d){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d])};return a(b,d)};return function(b,d){function c(){this.constructor=b}a(b,d);b.prototype=null===d?Object.create(d):(c.prototype=
-d.prototype,new c)}}(),e=a.seriesTypes.funnel3d,f=c.merge;c=function(a){function c(){var b=null!==a&&a.apply(this,arguments)||this;b.data=void 0;b.options=void 0;b.points=void 0;return b}b(c,a);c.defaultOptions=f(e.defaultOptions,{reversed:!0,neckHeight:0,neckWidth:0,dataLabels:{verticalAlign:"top"}});return c}(e);a.registerSeriesType("pyramid3d",c);"";return c});b(a,"masters/modules/pyramid3d.src.js",[],function(){})});
-//# sourceMappingURL=pyramid3d.js.map

+ 0 - 42
nicegui/elements/lib/highcharts_modules/sankey.js

@@ -1,42 +0,0 @@
-/*
- Highcharts JS v10.3.3 (2023-01-20)
-
- Sankey diagram module
-
- (c) 2010-2021 Torstein Honsi
-
- License: www.highcharts.com/license
-*/
-(function(b){"object"===typeof module&&module.exports?(b["default"]=b,module.exports=b):"function"===typeof define&&define.amd?define("highcharts/modules/sankey",["highcharts"],function(p){b(p);b.Highcharts=p;return b}):b("undefined"!==typeof Highcharts?Highcharts:void 0)})(function(b){function p(b,h,m,l){b.hasOwnProperty(h)||(b[h]=l.apply(null,m),"function"===typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:h,module:b[h]}})))}b=b?b._modules:{};p(b,"Series/NodesComposition.js",
-[b["Core/Series/SeriesRegistry.js"],b["Core/Utilities.js"]],function(b,h){b=b.series;var m=b.prototype,l=b.prototype.pointClass.prototype,z=h.defined,x=h.extend,k=h.find,c=h.merge,e=h.pick,a;(function(a){function f(){this.data=[].concat(this.points||[],this.nodes);return m.destroy.apply(this,arguments)}function b(){this.nodes&&(this.nodes.forEach(function(a){a.destroy()}),this.nodes.length=0);m.setData.apply(this,arguments)}function v(a){var c=arguments,e=this.isNode?this.linksTo.concat(this.linksFrom):
-[this.fromNode,this.toNode];"select"!==a&&e.forEach(function(a){a&&a.series&&(l.setState.apply(a,c),a.isNode||(a.fromNode.graphic&&l.setState.apply(a.fromNode,c),a.toNode&&a.toNode.graphic&&l.setState.apply(a.toNode,c)))});l.setState.apply(this,c)}function r(a,f,b,d){var g=this,y=this.series.options.nodes,A=this.series.options.data,C=A&&A.length||0,q=A&&A[this.index];l.update.call(this,a,this.isNode?!1:f,b,d);this.isNode&&(a=(y||[]).reduce(function(a,y,d){return g.id===y.id?d:a},-1),d=c(y&&y[a]||
-{},A&&A[this.index]||{}),A&&(q?A[this.index]=q:A.length=C),y?0<=a?y[a]=d:y.push(d):this.series.options.nodes=[d],e(f,!0)&&this.series.chart.redraw(b))}var n=[];a.compose=function(a,c){-1===n.indexOf(a)&&(n.push(a),a=a.prototype,a.setNodeState=v,a.setState=v,a.update=r);-1===n.indexOf(c)&&(n.push(c),a=c.prototype,a.destroy=f,a.setData=b);return c};a.createNode=function(a){var c=this.pointClass,f=function(g,a){return k(g,function(g){return g.id===a})},d=f(this.nodes,a);if(!d){f=this.options.nodes&&
-f(this.options.nodes,a);var g=(new c).init(this,x({className:"highcharts-node",isNode:!0,id:a,y:1},f));g.linksTo=[];g.linksFrom=[];g.getSum=function(){var a=0,d=0;g.linksTo.forEach(function(g){a+=g.weight||0});g.linksFrom.forEach(function(g){d+=g.weight||0});return Math.max(a,d)};g.offset=function(a,d){for(var y=0,c=0;c<g[d].length;c++){if(g[d][c]===a)return y;y+=g[d][c].weight}};g.hasShape=function(){var a=0;g.linksTo.forEach(function(g){g.outgoing&&a++});return!g.linksTo.length||a!==g.linksTo.length};
-g.index=this.nodes.push(g)-1;d=g}d.formatPrefix="node";d.name=d.name||d.options.id||"";d.mass=e(d.options.mass,d.options.marker&&d.options.marker.radius,this.options.marker&&this.options.marker.radius,4);return d};a.destroy=f;a.generatePoints=function(){var a=this,c=this.chart,f={};m.generatePoints.call(this);this.nodes||(this.nodes=[]);this.colorCounter=0;this.nodes.forEach(function(a){a.linksFrom.length=0;a.linksTo.length=0;a.level=a.options.level});this.points.forEach(function(d){z(d.from)&&(f[d.from]||
-(f[d.from]=a.createNode(d.from)),f[d.from].linksFrom.push(d),d.fromNode=f[d.from],c.styledMode?d.colorIndex=e(d.options.colorIndex,f[d.from].colorIndex):d.color=d.options.color||f[d.from].color);z(d.to)&&(f[d.to]||(f[d.to]=a.createNode(d.to)),f[d.to].linksTo.push(d),d.toNode=f[d.to]);d.name=d.name||d.id},this);this.nodeLookup=f};a.setNodeState=v;a.updateNode=r})(a||(a={}));return a});p(b,"Series/Sankey/SankeyPoint.js",[b["Core/Series/Point.js"],b["Core/Series/SeriesRegistry.js"],b["Core/Utilities.js"]],
-function(b,h,m){var l=this&&this.__extends||function(){var b=function(k,c){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,a){c.__proto__=a}||function(c,a){for(var f in a)a.hasOwnProperty(f)&&(c[f]=a[f])};return b(k,c)};return function(k,c){function e(){this.constructor=k}b(k,c);k.prototype=null===c?Object.create(c):(e.prototype=c.prototype,new e)}}(),z=m.defined;return function(h){function k(){var c=null!==h&&h.apply(this,arguments)||this;c.className=void 0;c.fromNode=void 0;
-c.level=void 0;c.linkBase=void 0;c.linksFrom=void 0;c.linksTo=void 0;c.mass=void 0;c.nodeX=void 0;c.nodeY=void 0;c.options=void 0;c.series=void 0;c.toNode=void 0;return c}l(k,h);k.prototype.applyOptions=function(c,e){b.prototype.applyOptions.call(this,c,e);z(this.options.level)&&(this.options.column=this.column=this.options.level);return this};k.prototype.getClassName=function(){return(this.isNode?"highcharts-node ":"highcharts-link ")+b.prototype.getClassName.call(this)};k.prototype.getFromNode=
-function(){for(var c=-1,e,a=0;a<this.linksTo.length;a++){var f=this.linksTo[a];f.fromNode.column>c&&f.fromNode!==this&&(e=f.fromNode,c=e.column)}return{fromNode:e,fromColumn:c}};k.prototype.setNodeColumn=function(){z(this.options.column)||(this.column=0===this.linksTo.length?0:this.getFromNode().fromColumn+1)};k.prototype.isValid=function(){return this.isNode||"number"===typeof this.weight};return k}(h.seriesTypes.column.prototype.pointClass)});p(b,"Series/Sankey/SankeySeriesDefaults.js",[],function(){"";
-return{borderWidth:0,colorByPoint:!0,curveFactor:.33,dataLabels:{enabled:!0,backgroundColor:"none",crop:!1,nodeFormat:void 0,nodeFormatter:function(){return this.point.name},format:void 0,formatter:function(){},inside:!0},inactiveOtherPoints:!0,linkOpacity:.5,opacity:1,minLinkWidth:0,nodeWidth:20,nodePadding:10,showInLegend:!1,states:{hover:{linkOpacity:1,opacity:1},inactive:{linkOpacity:.1,opacity:.1,animation:{duration:50}}},tooltip:{followPointer:!0,headerFormat:'<span style="font-size: 10px">{series.name}</span><br/>',
-pointFormat:"{point.fromNode.name} \u2192 {point.toNode.name}: <b>{point.weight}</b><br/>",nodeFormat:"{point.name}: <b>{point.sum}</b><br/>"}}});p(b,"Series/Sankey/SankeyColumnComposition.js",[b["Core/Utilities.js"]],function(b){var h=b.defined,m=b.relativeLength,l;(function(b){b.compose=function(b,c){b.sankeyColumn=new l(b,c);return b};var l=function(){function b(c,b){this.points=c;this.series=b}b.prototype.getTranslationFactor=function(c){for(var b=this.points,a=b.slice(),f=c.options.minLinkWidth||
-0,t=0,h,k=(c.chart.plotSizeY||0)-(c.options.borderWidth||0)-(b.length-1)*c.nodePadding;b.length;){t=k/b.sankeyColumn.sum();c=!1;for(h=b.length;h--;)b[h].getSum()*t<f&&(b.splice(h,1),k-=f,c=!0);if(!c)break}b.length=0;a.forEach(function(a){b.push(a)});return t};b.prototype.top=function(b){var c=this.series,a=c.nodePadding,f=this.points.reduce(function(f,e){0<f&&(f+=a);e=Math.max(e.getSum()*b,c.options.minLinkWidth||0);return f+e},0);return((c.chart.plotSizeY||0)-f)/2};b.prototype.left=function(b){var c=
-this.series,a=c.chart,f=c.options.equalNodes,h=a.inverted?a.plotHeight:a.plotWidth,k=c.nodePadding,v=this.points.reduce(function(a,e){0<a&&(a+=k);e=f?h/e.series.nodes.length-k:Math.max(e.getSum()*b,c.options.minLinkWidth||0);return a+e},0);return((a.plotSizeX||0)-Math.round(v))/2};b.prototype.sum=function(){return this.points.reduce(function(b,e){return b+e.getSum()},0)};b.prototype.offset=function(b,e){var a=this.points,c=this.series,k=c.nodePadding,l=0;if(c.is("organization")&&b.hangsFrom)return{absoluteTop:b.hangsFrom.nodeY};
-for(var v=0;v<a.length;v++){var r=a[v].getSum();var n=Math.max(r*e,c.options.minLinkWidth||0),q=b.options[c.chart.inverted?"offsetHorizontal":"offsetVertical"],w=b.options.offset||0;r=r?n+k:0;if(a[v]===b)return{relativeTop:l+(h(q)?m(q,n):m(w,r))};l+=r}};return b}();b.SankeyColumnAdditions=l})(l||(l={}));return l});p(b,"Series/TreeUtilities.js",[b["Core/Color/Color.js"],b["Core/Utilities.js"]],function(b,h){function m(a,b){var c=b.before,f=b.idRoot,k=b.mapIdToNode[f],h=b.points[a.i],n=h&&h.options||
-{},q=[],w=0;a.levelDynamic=a.level-(!1!==b.levelIsConstant?0:k.level);a.name=e(h&&h.name,"");a.visible=f===a.id||!0===b.visible;"function"===typeof c&&(a=c(a,b));a.children.forEach(function(c,d){var g=l({},b);l(g,{index:d,siblings:a.children.length,visible:a.visible});c=m(c,g);q.push(c);c.visible&&(w+=c.val)});c=e(n.value,w);a.visible=0<=c&&(0<w||a.visible);a.children=q;a.childrenTotal=w;a.isLeaf=a.visible&&!w;a.val=c;return a}var l=h.extend,p=h.isArray,x=h.isNumber,k=h.isObject,c=h.merge,e=h.pick;
-return{getColor:function(a,c){var f=c.index,h=c.mapOptionsToLevel,k=c.parentColor,l=c.parentColorIndex,n=c.series,q=c.colors,w=c.siblings,u=n.points,d=n.chart.options.chart,g;if(a){u=u[a.i];a=h[a.level]||{};if(h=u&&a.colorByPoint){var y=u.index%(q?q.length:d.colorCount);var A=q&&q[y]}if(!n.chart.styledMode){q=u&&u.options.color;d=a&&a.color;if(g=k)g=(g=a&&a.colorVariation)&&"brightness"===g.key&&f&&w?b.parse(k).brighten(f/w*g.to).get():k;g=e(q,d,A,g,n.color)}var C=e(u&&u.options.colorIndex,a&&a.colorIndex,
-y,l,c.colorIndex)}return{color:g,colorIndex:C}},getLevelOptions:function(a){var b={};if(k(a)){var h=x(a.from)?a.from:1;var l=a.levels;var m={};var r=k(a.defaults)?a.defaults:{};p(l)&&(m=l.reduce(function(a,b){if(k(b)&&x(b.level)){var f=c({},b);var l=e(f.levelIsConstant,r.levelIsConstant);delete f.levelIsConstant;delete f.level;b=b.level+(l?0:h-1);k(a[b])?c(!0,a[b],f):a[b]=f}return a},{}));l=x(a.to)?a.to:1;for(a=0;a<=l;a++)b[a]=c({},r,k(m[a])?m[a]:{})}return b},setTreeValues:m,updateRootId:function(a){if(k(a)){var b=
-k(a.options)?a.options:{};b=e(a.rootNode,b.rootId,"");k(a.userOptions)&&(a.userOptions.rootId=b);a.rootNode=b}return b}}});p(b,"Series/Sankey/SankeySeries.js",[b["Core/Color/Color.js"],b["Core/Globals.js"],b["Series/NodesComposition.js"],b["Series/Sankey/SankeyPoint.js"],b["Series/Sankey/SankeySeriesDefaults.js"],b["Core/Series/SeriesRegistry.js"],b["Series/Sankey/SankeyColumnComposition.js"],b["Series/TreeUtilities.js"],b["Core/Utilities.js"]],function(b,h,m,l,p,x,k,c,e){var a=this&&this.__extends||
-function(){var a=function(b,g){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,g){a.__proto__=g}||function(a,g){for(var b in g)g.hasOwnProperty(b)&&(a[b]=g[b])};return a(b,g)};return function(b,g){function c(){this.constructor=b}a(b,g);b.prototype=null===g?Object.create(g):(c.prototype=g.prototype,new c)}}(),f=x.series,t=x.seriesTypes.column,z=c.getLevelOptions;c=e.extend;var v=e.isObject,r=e.merge,n=e.pick,q=e.relativeLength,w=e.stableSort;e=function(c){function d(){var a=null!==
-c&&c.apply(this,arguments)||this;a.colDistance=void 0;a.data=void 0;a.group=void 0;a.nodeLookup=void 0;a.nodePadding=void 0;a.nodes=void 0;a.nodeWidth=void 0;a.options=void 0;a.points=void 0;a.translationFactor=void 0;return a}a(d,c);d.getDLOptions=function(a){var b=v(a.optionsPoint)?a.optionsPoint.dataLabels:{};a=v(a.level)?a.level.dataLabels:{};return r({style:{}},a,b)};d.prototype.createNodeColumns=function(){var a=[];this.nodes.forEach(function(b){b.setNodeColumn();a[b.column]||(a[b.column]=k.compose([],
-this));a[b.column].push(b)},this);for(var b=0;b<a.length;b++)"undefined"===typeof a[b]&&(a[b]=k.compose([],this));return a};d.prototype.order=function(a,b){var g=this;"undefined"===typeof a.level&&(a.level=b,a.linksFrom.forEach(function(a){a.toNode&&g.order(a.toNode,b+1)}))};d.prototype.generatePoints=function(){m.generatePoints.apply(this,arguments);var a=this;this.orderNodes&&(this.nodes.filter(function(a){return 0===a.linksTo.length}).forEach(function(b){a.order(b,0)}),w(this.nodes,function(a,
-b){return a.level-b.level}))};d.prototype.getNodePadding=function(){var a=this.options.nodePadding||0;if(this.nodeColumns){var b=this.nodeColumns.reduce(function(a,b){return Math.max(a,b.length)},0);b*a>this.chart.plotSizeY&&(a=this.chart.plotSizeY/b)}return a};d.prototype.hasData=function(){return!!this.processedXData.length};d.prototype.pointAttribs=function(a,c){if(!a)return{};var g=this,d=g.mapOptionsToLevel[(a.isNode?a.level:a.fromNode.level)||0]||{},f=a.options,e=d.states&&d.states[c||""]||
-{};c=["colorByPoint","borderColor","borderWidth","linkOpacity","opacity"].reduce(function(a,b){a[b]=n(e[b],f[b],d[b],g.options[b]);return a},{});var h=n(e.color,f.color,c.colorByPoint?a.color:d.color);return a.isNode?{fill:h,stroke:c.borderColor,"stroke-width":c.borderWidth,opacity:c.opacity}:{fill:b.parse(h).setOpacity(c.linkOpacity).get()}};d.prototype.drawTracker=function(){t.prototype.drawTracker.call(this,this.points);t.prototype.drawTracker.call(this,this.nodes)};d.prototype.drawPoints=function(){t.prototype.drawPoints.call(this,
-this.points);t.prototype.drawPoints.call(this,this.nodes)};d.prototype.drawDataLabels=function(){t.prototype.drawDataLabels.call(this,this.points);t.prototype.drawDataLabels.call(this,this.nodes)};d.prototype.translate=function(){this.processedXData||this.processData();this.generatePoints();this.nodeColumns=this.createNodeColumns();this.nodeWidth=q(this.options.nodeWidth,this.chart.plotSizeX);var a=this,b=this.chart,c=this.options,d=this.nodeWidth,f=this.nodeColumns;this.nodePadding=this.getNodePadding();
-this.translationFactor=f.reduce(function(b,c){return Math.min(b,c.sankeyColumn.getTranslationFactor(a))},Infinity);this.colDistance=(b.plotSizeX-d-c.borderWidth)/Math.max(1,f.length-1);a.mapOptionsToLevel=z({from:1,levels:c.levels,to:f.length-1,defaults:{borderColor:c.borderColor,borderRadius:c.borderRadius,borderWidth:c.borderWidth,color:a.color,colorByPoint:c.colorByPoint,levelIsConstant:!0,linkColor:c.linkColor,linkLineWidth:c.linkLineWidth,linkOpacity:c.linkOpacity,states:c.states}});f.forEach(function(b){b.forEach(function(c){a.translateNode(c,
-b)})},this);this.nodes.forEach(function(b){b.linksFrom.forEach(function(b){(b.weight||b.isNull)&&b.to&&(a.translateLink(b),b.allowShadow=!1)})})};d.prototype.translateLink=function(a){var b=function(b,c){c=b.offset(a,c)*f;return Math.min(b.nodeY+c,b.nodeY+(b.shapeArgs&&b.shapeArgs.height||0)-e)},c=a.fromNode,d=a.toNode,g=this.chart,f=this.translationFactor,e=Math.max(a.weight*f,this.options.minLinkWidth),h=(g.inverted?-this.colDistance:this.colDistance)*this.options.curveFactor,k=b(c,"linksFrom");
-b=b(d,"linksTo");var l=c.nodeX,m=this.nodeWidth;d=d.nodeX;var q=a.outgoing,n=d>l+m;g.inverted&&(k=g.plotSizeY-k,b=(g.plotSizeY||0)-b,m=-m,e=-e,n=l>d);a.shapeType="path";a.linkBase=[k,k+e,b,b+e];if(n&&"number"===typeof b)a.shapeArgs={d:[["M",l+m,k],["C",l+m+h,k,d-h,b,d,b],["L",d+(q?m:0),b+e/2],["L",d,b+e],["C",d-h,b+e,l+m+h,k+e,l+m,k+e],["Z"]]};else if("number"===typeof b){h=d-20-e;q=d-20;n=l+m;var p=n+20,r=p+e,v=k,t=k+e,w=t+20,x=w+(g.plotHeight-k-e),u=x+20,z=u+e,D=b,B=D+e,E=B+20,F=u+.7*e,G=d-.7*e,
-H=n+.7*e;a.shapeArgs={d:[["M",n,v],["C",H,v,r,t-.7*e,r,w],["L",r,x],["C",r,F,H,z,n,z],["L",d,z],["C",G,z,h,F,h,x],["L",h,E],["C",h,B-.7*e,G,D,d,D],["L",d,B],["C",q,B,q,B,q,E],["L",q,x],["C",q,u,q,u,d,u],["L",n,u],["C",p,u,p,u,p,x],["L",p,w],["C",p,t,p,t,n,t],["Z"]]}}a.dlBox={x:l+(d-l+m)/2,y:k+(b-k)/2,height:e,width:0};a.tooltipPos=g.inverted?[g.plotSizeY-a.dlBox.y-e/2,g.plotSizeX-a.dlBox.x]:[a.dlBox.x,a.dlBox.y+e/2];a.y=a.plotY=1;a.x=a.plotX=1;a.color||(a.color=c.color)};d.prototype.translateNode=
-function(a,b){var c=this.translationFactor,e=this.chart,g=this.options,f=a.getSum(),h=Math.max(Math.round(f*c),this.options.minLinkWidth),k=Math.round(this.nodeWidth),l=Math.round(g.borderWidth)%2/2,m=b.sankeyColumn.offset(a,c);b=Math.floor(n(m.absoluteTop,b.sankeyColumn.top(c)+m.relativeTop))+l;l=Math.floor(this.colDistance*a.column+g.borderWidth/2)+q(a.options.offsetHorizontal||0,k)+l;l=e.inverted?e.plotSizeX-l:l;if(a.sum=f){a.shapeType="rect";a.nodeX=l;a.nodeY=b;f=l;c=b;m=a.options.width||g.width||
-k;var p=a.options.height||g.height||h;e.inverted&&(f=l-k,c=e.plotSizeY-b-h,m=a.options.height||g.height||k,p=a.options.width||g.width||h);a.dlOptions=d.getDLOptions({level:this.mapOptionsToLevel[a.level],optionsPoint:a.options});a.plotX=1;a.plotY=1;a.tooltipPos=e.inverted?[e.plotSizeY-c-p/2,e.plotSizeX-f-m/2]:[f+m/2,c+p/2];a.shapeArgs={x:f,y:c,width:m,height:p,display:a.hasShape()?"":"none"}}else a.dlOptions={enabled:!1}};d.defaultOptions=r(t.defaultOptions,p);return d}(t);m.compose(l,e);c(e.prototype,
-{animate:f.prototype.animate,createNode:m.createNode,forceDL:!0,invertible:!0,isCartesian:!1,orderNodes:!0,noSharedTooltip:!0,pointArrayMap:["from","to","weight"],pointClass:l,searchPoint:h.noop});x.registerSeriesType("sankey",e);"";return e});p(b,"masters/modules/sankey.src.js",[],function(){})});
-//# sourceMappingURL=sankey.js.map

+ 0 - 27
nicegui/elements/lib/highcharts_modules/series-label.js

@@ -1,27 +0,0 @@
-/*
- Highcharts JS v10.3.3 (2023-01-20)
-
- (c) 2009-2021 Torstein Honsi
-
- License: www.highcharts.com/license
-*/
-(function(a){"object"===typeof module&&module.exports?(a["default"]=a,module.exports=a):"function"===typeof define&&define.amd?define("highcharts/modules/series-label",["highcharts"],function(u){a(u);a.Highcharts=u;return a}):a("undefined"!==typeof Highcharts?Highcharts:void 0)})(function(a){function u(a,d,B,k){a.hasOwnProperty(d)||(a[d]=k.apply(null,B),"function"===typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:d,module:a[d]}})))}a=a?a._modules:{};
-u(a,"Extensions/SeriesLabel/SeriesLabelDefaults.js",[],function(){return{enabled:!0,connectorAllowed:!1,connectorNeighbourDistance:24,format:void 0,formatter:void 0,minFontSize:null,maxFontSize:null,onArea:null,style:{fontWeight:"bold"},useHTML:!1,boxesToAvoid:[]}});u(a,"Extensions/SeriesLabel/SeriesLabelUtilities.js",[],function(){function a(a,k,d,y,m,t){a=(t-k)*(d-a)-(y-k)*(m-a);return 0<a?!0:!(0>a)}function d(B,k,d,y,m,t,z,A){return a(B,k,m,t,z,A)!==a(d,y,m,t,z,A)&&a(B,k,d,y,m,t)!==a(B,k,d,y,z,
-A)}return{boxIntersectLine:function(a,k,u,y,m,t,z,A){return d(a,k,a+u,k,m,t,z,A)||d(a+u,k,a+u,k+y,m,t,z,A)||d(a,k+y,a+u,k+y,m,t,z,A)||d(a,k,a,k+y,m,t,z,A)},intersectRect:function(a,k){return!(k.left>a.right||k.right<a.left||k.top>a.bottom||k.bottom<a.top)}}});u(a,"Extensions/SeriesLabel/SeriesLabel.js",[a["Core/Animation/AnimationUtilities.js"],a["Core/Chart/Chart.js"],a["Core/FormatUtilities.js"],a["Core/Defaults.js"],a["Extensions/SeriesLabel/SeriesLabelDefaults.js"],a["Extensions/SeriesLabel/SeriesLabelUtilities.js"],
-a["Core/Utilities.js"]],function(a,d,u,k,O,y,m){function t(c,a,f,b,g){var h=c.chart,H=c.options.label||{},C=D(H.onArea,!!c.area),l=C||H.connectorAllowed,e=h.boxesToAvoid,F=Number.MAX_VALUE,k=Number.MAX_VALUE,q,d,w;for(w=0;e&&w<e.length;w+=1)if(P(e[w],{left:a,right:a+b.width,top:f,bottom:f+b.height}))return!1;for(w=0;w<h.series.length;w+=1){var n=h.series[w];e=n.interpolatedPoints&&Q([],n.interpolatedPoints,!0);if(n.visible&&e){var p=h.plotHeight/10;for(d=h.plotTop;d<=h.plotTop+h.plotHeight;d+=p)e.unshift({chartX:h.plotLeft,
-chartY:d}),e.push({chartX:h.plotLeft+h.plotWidth,chartY:d});for(p=1;p<e.length;p+=1){if(e[p].chartX>=a-16&&e[p-1].chartX<=a+b.width+16){if(K(a,f,b.width,b.height,e[p-1].chartX,e[p-1].chartY,e[p].chartX,e[p].chartY))return!1;c===n&&!q&&g&&(q=K(a-16,f-16,b.width+32,b.height+32,e[p-1].chartX,e[p-1].chartY,e[p].chartX,e[p].chartY))}if((l||q)&&(c!==n||C)){d=a+b.width/2-e[p].chartX;var x=f+b.height/2-e[p].chartY;F=Math.min(F,d*d+x*x)}}if(!C&&l&&c===n&&(g&&!q||F<Math.pow(H.connectorNeighbourDistance||1,
-2))){for(p=1;p<e.length;p+=1)if(q=Math.min(Math.pow(a+b.width/2-e[p].chartX,2)+Math.pow(f+b.height/2-e[p].chartY,2),Math.pow(a-e[p].chartX,2)+Math.pow(f-e[p].chartY,2),Math.pow(a+b.width-e[p].chartX,2)+Math.pow(f-e[p].chartY,2),Math.pow(a+b.width-e[p].chartX,2)+Math.pow(f+b.height-e[p].chartY,2),Math.pow(a-e[p].chartX,2)+Math.pow(f+b.height-e[p].chartY,2)),q<k){k=q;var m=e[p]}q=!0}}}return!g||q?{x:a,y:f,weight:F-(m?k:0),connectorPoint:m}:!1}function z(a){a.boxesToAvoid=[];var C=a.labelSeries||[],
-c=a.boxesToAvoid;a.series.forEach(function(b){return(b.points||[]).forEach(function(a){return(a.dataLabels||[]).forEach(function(a){var g=a.getBBox(),h=a.translateX+(b.xAxis?b.xAxis.pos:b.chart.plotLeft);a=a.translateY+(b.yAxis?b.yAxis.pos:b.chart.plotTop);c.push({left:h,top:a,right:h+g.width,bottom:a+g.height})})})});C.forEach(function(b){var a=b.options.label||{};b.interpolatedPoints=A(b);c.push.apply(c,a.boxesToAvoid||[])});a.series.forEach(function(b){function g(b,a,c){var e=Math.max(d,D(y,-Infinity)),
-h=Math.min(d+k,D(z,Infinity));return b>e&&b<=h-c.width&&a>=q&&a<=q+m-c.height}var h=b.options.label;if(h&&(b.xAxis||b.yAxis)){var c="highcharts-color-"+D(b.colorIndex,"none"),C=!b.labelBySeries,l=h.minFontSize,e=h.maxFontSize,f=a.inverted,d=f?b.yAxis.pos:b.xAxis.pos,q=f?b.xAxis.pos:b.yAxis.pos,k=a.inverted?b.yAxis.len:b.xAxis.len,m=a.inverted?b.xAxis.len:b.yAxis.len,n=b.interpolatedPoints,p=D(h.onArea,!!b.area),x=[],u=b.xData||[],r,v=b.labelBySeries;if(p&&!f){f=[b.xAxis.toPixels(u[0]),b.xAxis.toPixels(u[u.length-
-1])];var y=Math.min.apply(Math,f);var z=Math.max.apply(Math,f)}if(b.visible&&!b.boosted&&n){v||(v=b.name,"string"===typeof h.format?v=R(h.format,b,a):h.formatter&&(v=h.formatter.call(b)),b.labelBySeries=v=a.renderer.label(v,0,0,"connector",0,0,h.useHTML).addClass("highcharts-series-label highcharts-series-label-"+b.index+" "+(b.options.className||"")+" "+c),a.renderer.styledMode||(c="string"===typeof b.color?b.color:"#666666",v.css(L({color:p?a.renderer.getContrast(c):c},h.style||{})),v.attr({opacity:a.renderer.forExport?
-1:0,stroke:b.color,"stroke-width":1})),l&&e&&v.css({fontSize:l+(b.sum||0)/(b.chart.labelSeriesMaxSum||0)*(e-l)+"px"}),v.attr({padding:0,zIndex:3}).add());l=v.getBBox();l.width=Math.round(l.width);for(f=n.length-1;0<f;--f)p?(e=n[f].chartX-l.width/2,c=(n[f].chartCenterY||0)-l.height/2,g(e,c,l)&&(r=t(b,e,c,l))):(e=n[f].chartX+3,c=n[f].chartY-l.height-3,g(e,c,l)&&(r=t(b,e,c,l,!0)),r&&x.push(r),e=n[f].chartX+3,c=n[f].chartY+3,g(e,c,l)&&(r=t(b,e,c,l,!0)),r&&x.push(r),e=n[f].chartX-l.width-3,c=n[f].chartY+
-3,g(e,c,l)&&(r=t(b,e,c,l,!0)),r&&x.push(r),e=n[f].chartX-l.width-3,c=n[f].chartY-l.height-3,g(e,c,l)&&(r=t(b,e,c,l,!0))),r&&x.push(r);if(h.connectorAllowed&&!x.length&&!p)for(e=d+k-l.width;e>=d;e-=16)for(c=q;c<q+m-l.height;c+=16)(r=t(b,e,c,l,!0))&&x.push(r);if(x.length){if(x.sort(function(b,a){return a.weight-b.weight}),r=x[0],(a.boxesToAvoid||[]).push({left:r.x,right:r.x+l.width,top:r.y,bottom:r.y+l.height}),(n=Math.sqrt(Math.pow(Math.abs(r.x-(v.x||0)),2)+Math.pow(Math.abs(r.y-(v.y||0)),2)))&&b.labelBySeries&&
-(x={opacity:a.renderer.forExport?1:0,x:r.x,y:r.y},h={opacity:1},10>=n&&(h={x:x.x,y:x.y},x={}),n=void 0,C&&(n=I(b.options.animation),n.duration*=.2),b.labelBySeries.attr(L(x,{anchorX:r.connectorPoint&&(r.connectorPoint.plotX||0)+d,anchorY:r.connectorPoint&&(r.connectorPoint.plotY||0)+q})).animate(h,n),b.options.kdNow=!0,b.buildKDTree(),b=b.searchPoint({chartX:r.x,chartY:r.y},!0)))v.closest=[b,r.x-(b.plotX||0),r.y-(b.plotY||0)]}else v&&(b.labelBySeries=v.destroy())}else v&&(b.labelBySeries=v.destroy())}});
-S(a,"afterDrawSeriesLabels")}function A(a){function c(a){var e=Math.round((a.plotX||0)/8)+","+Math.round((a.plotY||0)/8);u[e]||(u[e]=1,b.push(a))}if(a.xAxis||a.yAxis){var f=a.points,b=[],g=a.graph||a.area,h=g&&g.element,d=a.chart.inverted,k=a.xAxis,l=a.yAxis,e=d?l.pos:k.pos;d=d?k.pos:l.pos;k=D((a.options.label||{}).onArea,!!a.area);var m=l.getThreshold(a.options.threshold),u={};if(a.getPointSpline&&h&&h.getPointAtLength&&!k&&f.length<(a.chart.plotSizeX||0)/16){k=g.toD&&g.attr("d");g.toD&&g.attr({d:g.toD});
-l=h.getTotalLength();for(a=0;a<l;a+=16)m=h.getPointAtLength(a),c({chartX:e+m.x,chartY:d+m.y,plotX:m.x,plotY:m.y});k&&g.attr({d:k});var q=f[f.length-1];c({chartX:e+(q.plotX||0),chartY:d+(q.plotY||0)})}else for(l=f.length,g=void 0,a=0;a<l;a+=1){q=f[a];h=q.plotX;var t=q.plotY;if(G(h)&&G(t)){var w={plotX:h,plotY:t,chartX:e+h,chartY:d+t};k&&(w.chartCenterY=d+(t+D(q.yBottom,m))/2);if(g){q=Math.abs(w.chartX-g.chartX);var n=Math.abs(w.chartY-g.chartY);q=Math.max(q,n);if(16<q)for(q=Math.ceil(q/16),n=1;n<q;n+=
-1)c({chartX:g.chartX+n/q*(w.chartX-g.chartX),chartY:g.chartY+n/q*(w.chartY-g.chartY),chartCenterY:(g.chartCenterY||0)+n/q*((w.chartCenterY||0)-(g.chartCenterY||0)),plotX:(g.plotX||0)+n/q*(h-(g.plotX||0)),plotY:(g.plotY||0)+n/q*(t-(g.plotY||0))})}c(w);g=w}}return b}}function B(a){if(this.renderer){var c=this,f=I(c.renderer.globalAnimation).duration;c.labelSeries=[];c.labelSeriesMaxSum=0;c.seriesLabelTimer&&m.clearTimeout(c.seriesLabelTimer);c.series.forEach(function(b){var g=b.options.label||{},h=
-b.labelBySeries,d=h&&h.closest;g.enabled&&b.visible&&(b.graph||b.area)&&!b.boosted&&c.labelSeries&&(c.labelSeries.push(b),g.minFontSize&&g.maxFontSize&&b.yData&&(b.sum=b.yData.reduce(function(a,b){return(a||0)+(b||0)},0),c.labelSeriesMaxSum=Math.max(c.labelSeriesMaxSum||0,b.sum||0)),"load"===a.type&&(f=Math.max(f,I(b.options.animation).duration)),d&&("undefined"!==typeof d[0].plotX?h.animate({x:d[0].plotX+d[1],y:d[0].plotY+d[2]}):h.attr({opacity:0})))});c.seriesLabelTimer=T(function(){c.series&&c.labelSeries&&
-z(c)},c.renderer.forExport||!f?0:f)}}function N(a,d,f,b,g){var c=g&&g.anchorX;g=g&&g.anchorY;var k=f/2;if(G(c)&&G(g)){var m=[["M",c,g]];var l=d-g;0>l&&(l=-b-l);l<f&&(k=c<a+f/2?l:f-l);g>d+b?m.push(["L",a+k,d+b]):g<d?m.push(["L",a+k,d]):c<a?m.push(["L",a,d+b/2]):c>a+f&&m.push(["L",a+f,d+b/2])}return m||[]}var Q=this&&this.__spreadArray||function(a,d,f){if(f||2===arguments.length)for(var b=0,c=d.length,h;b<c;b++)!h&&b in d||(h||(h=Array.prototype.slice.call(d,0,b)),h[b]=d[b]);return a.concat(h||Array.prototype.slice.call(d))},
-I=a.animObject,R=u.format,J=k.setOptions,K=y.boxIntersectLine,P=y.intersectRect,M=m.addEvent,L=m.extend,S=m.fireEvent,G=m.isNumber,D=m.pick,T=m.syncTimeout,E=[];"";return{compose:function(a,k){-1===E.indexOf(a)&&(E.push(a),M(d,"load",B),M(d,"redraw",B));-1===E.indexOf(k)&&(E.push(k),k.prototype.symbols.connector=N);-1===E.indexOf(J)&&(E.push(J),J({plotOptions:{series:{label:O}}}))}}});u(a,"masters/modules/series-label.src.js",[a["Core/Globals.js"],a["Extensions/SeriesLabel/SeriesLabel.js"]],function(a,
-d){d.compose(a.Chart,a.SVGRenderer)})});
-//# sourceMappingURL=series-label.js.map

+ 0 - 18
nicegui/elements/lib/highcharts_modules/series-on-point.js

@@ -1,18 +0,0 @@
-/*
- Highcharts JS v10.3.3 (2023-01-20)
-
- Series on point module
-
- (c) 2010-2022 Highsoft AS
- Author: Rafal Sebestjanski and Piotr Madej
-
- License: www.highcharts.com/license
-*/
-(function(c){"object"===typeof module&&module.exports?(c["default"]=c,module.exports=c):"function"===typeof define&&define.amd?define("highcharts/modules/series-on-point",["highcharts"],function(g){c(g);c.Highcharts=g;return c}):c("undefined"!==typeof Highcharts?Highcharts:void 0)})(function(c){function g(c,d,a,g){c.hasOwnProperty(d)||(c[d]=g.apply(null,a),"function"===typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:d,module:c[d]}})))}var a=c?c._modules:
-{};g(a,"Series/SeriesOnPointComposition.js",[a["Core/Series/Point.js"],a["Core/Series/Series.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Renderer/SVG/SVGRenderer.js"],a["Core/Utilities.js"]],function(c,d,a,g,h){a=a.seriesTypes;var n=a.bubble,q=a.pie,k=h.addEvent,l=h.defined,r=h.find,t=h.isNumber,m;(function(a){var h=[];a.compose=function(c,p){var b=m.prototype,e=b.chartGetZData,f=b.seriesAfterInit,a=b.seriesAfterRender,u=b.seriesGetCenter,g=b.seriesShowOrHide;b=b.seriesTranslate;q.prototype.onPointSupported=
-!0;-1===h.indexOf(c)&&(h.push(c),k(d,"afterInit",f),k(d,"afterRender",a),k(d,"afterGetCenter",u),k(d,"hide",g),k(d,"show",g),k(d,"translate",b));-1===h.indexOf(p)&&(h.push(p),k(p,"beforeRender",e),k(p,"beforeRedraw",e));return c};var m=function(){function a(a){this.getRadii=n.prototype.getRadii;this.getRadius=n.prototype.getRadius;this.getPxExtremes=n.prototype.getPxExtremes;this.getZExtremes=n.prototype.getZExtremes;this.chart=a.chart;this.series=a;this.options=a.options.onPoint}a.prototype.drawConnector=
-function(){this.connector||(this.connector=this.series.chart.renderer.path().addClass("highcharts-connector-seriesonpoint").attr({zIndex:-1}).add(this.series.markerGroup));var a=this.getConnectorAttributes();a&&this.connector.animate(a)};a.prototype.getConnectorAttributes=function(){var a=this.series.chart,b=this.options;if(b){var e=b.connectorOptions||{},f=b.position,d=a.get(b.id);if(d instanceof c&&f&&l(d.plotX)&&l(d.plotY)){b=l(f.x)?f.x:d.plotX;var h=l(f.y)?f.y:d.plotY,k=e.width||1;d=e.stroke||
-this.series.color;e=e.dashstyle;f={d:g.prototype.crispLine([["M",b,h],["L",b+(f.offsetX||0),h+(f.offsetY||0)]],k,"ceil"),"stroke-width":k};a.styledMode||(f.stroke=d,f.dashstyle=e);return f}}};a.prototype.seriesAfterInit=function(){this.onPointSupported&&this.options.onPoint&&(this.useMapGeometry=this.bubblePadding=!0,this.onPoint=new a(this))};a.prototype.seriesAfterRender=function(){delete this.chart.bubbleZExtremes;this.onPoint&&this.onPoint.drawConnector()};a.prototype.seriesGetCenter=function(a){var b=
-this.options.onPoint,e=a.positions;if(b){var f=this.chart.get(b.id);f instanceof c&&l(f.plotX)&&l(f.plotY)&&(e[0]=f.plotX,e[1]=f.plotY);if(b=b.position)l(b.x)&&(e[0]=b.x),l(b.y)&&(e[1]=b.y),b.offsetX&&(e[0]+=b.offsetX),b.offsetY&&(e[1]+=b.offsetY)}b=this.radii&&this.radii[this.index];t(b)&&(e[2]=2*b);a.positions=e};a.prototype.seriesShowOrHide=function(){var a=this.chart.series;this.points.forEach(function(b){var c=r(a,function(a){return(a=((a.onPoint||{}).options||{}).id)?a===b.id:!1});c&&c.setVisible(!c.visible,
-!1)})};a.prototype.seriesTranslate=function(){this.onPoint&&(this.onPoint.getRadii(),this.radii=this.onPoint.radii)};a.prototype.chartGetZData=function(){var a=[];this.series.forEach(function(b){b=b.options.onPoint;a.push(b&&b.z?b.z:null)});this.series.forEach(function(b){b.onPoint&&(b.onPoint.zData=b.zData=a)})};return a}();a.Additions=m})(m||(m={}));"";return m});g(a,"masters/modules/series-on-point.src.js",[a["Series/SeriesOnPointComposition.js"]],function(a){a.compose(c.Series,c.Chart)})});
-//# sourceMappingURL=series-on-point.js.map

+ 0 - 20
nicegui/elements/lib/highcharts_modules/solid-gauge.js

@@ -1,20 +0,0 @@
-/*
- Highcharts JS v10.3.3 (2023-01-20)
-
- Solid angular gauge module
-
- (c) 2010-2021 Torstein Honsi
-
- License: www.highcharts.com/license
-*/
-(function(a){"object"===typeof module&&module.exports?(a["default"]=a,module.exports=a):"function"===typeof define&&define.amd?define("highcharts/modules/solid-gauge",["highcharts","highcharts/highcharts-more"],function(b){a(b);a.Highcharts=b;return a}):a("undefined"!==typeof Highcharts?Highcharts:void 0)})(function(a){function b(a,h,g,f){a.hasOwnProperty(h)||(a[h]=f.apply(null,g),"function"===typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:h,module:a[h]}})))}
-a=a?a._modules:{};b(a,"Core/Axis/SolidGaugeAxis.js",[a["Core/Color/Color.js"],a["Core/Utilities.js"]],function(a,h){var g=a.parse,f=h.extend,c=h.merge,b;(function(a){var b={initDataClasses:function(a){var r=this.chart,w,b=0,d=this.options;this.dataClasses=w=[];a.dataClasses.forEach(function(k,l){k=c(k);w.push(k);k.color||("category"===d.dataClassColor?(l=r.options.colors,k.color=l[b++],b===l.length&&(b=0)):k.color=g(d.minColor).tweenTo(g(d.maxColor),l/(a.dataClasses.length-1)))})},initStops:function(a){this.stops=
-a.stops||[[0,this.options.minColor],[1,this.options.maxColor]];this.stops.forEach(function(a){a.color=g(a[1])})},toColor:function(a,c){var b=this.stops,g=this.dataClasses,d;if(g)for(d=g.length;d--;){var k=g[d];var l=k.from;b=k.to;if(("undefined"===typeof l||a>=l)&&("undefined"===typeof b||a<=b)){var f=k.color;c&&(c.dataClass=d);break}}else{this.logarithmic&&(a=this.val2lin(a));a=1-(this.max-a)/(this.max-this.min);for(d=b.length;d--&&!(a>b[d][0]););l=b[d]||b[d+1];b=b[d+1]||l;a=1-(b[0]-a)/(b[0]-l[0]||
-1);f=l.color.tweenTo(b.color,a)}return f}};a.init=function(a){f(a,b)}})(b||(b={}));return b});b(a,"Series/SolidGauge/SolidGaugeSeriesDefaults.js",[],function(){"";return{colorByPoint:!0,dataLabels:{y:0}}});b(a,"Series/SolidGauge/SolidGaugeComposition.js",[a["Core/Renderer/SVG/SVGRenderer.js"]],function(a){a=a.prototype;var b=a.symbols.arc;a.symbols.arc=function(a,f,c,h,e){a=b(a,f,c,h,e);e&&e.rounded&&(c=((e.r||c)-(e.innerR||0))/2,f=a[0],e=a[2],"M"===f[0]&&"L"===e[0]&&(f=["A",c,c,0,1,1,f[1],f[2]],
-a[2]=["A",c,c,0,1,1,e[1],e[2]],a[4]=f));return a}});b(a,"Series/SolidGauge/SolidGaugeSeries.js",[a["Core/Legend/LegendSymbol.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Axis/SolidGaugeAxis.js"],a["Series/SolidGauge/SolidGaugeSeriesDefaults.js"],a["Core/Utilities.js"]],function(a,b,g,f,c){var h=this&&this.__extends||function(){var a=function(b,n){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var n in b)b.hasOwnProperty(n)&&(a[n]=b[n])};
-return a(b,n)};return function(b,n){function c(){this.constructor=b}a(b,n);b.prototype=null===n?Object.create(n):(c.prototype=n.prototype,new c)}}(),e=b.seriesTypes,x=e.gauge,r=e.pie.prototype,y=c.clamp,w=c.extend,z=c.isNumber,d=c.merge,k=c.pick,l=c.pInt;c=function(a){function b(){var b=null!==a&&a.apply(this,arguments)||this;b.data=void 0;b.points=void 0;b.options=void 0;b.axis=void 0;b.yAxis=void 0;b.startAngleRad=void 0;b.thresholdAngleRad=void 0;return b}h(b,a);b.prototype.translate=function(){var a=
-this.yAxis;g.init(a);!a.dataClasses&&a.options.dataClasses&&a.initDataClasses(a.options);a.initStops(a.options);x.prototype.translate.call(this)};b.prototype.drawPoints=function(){var a=this.yAxis,b=a.center,c=this.options,f=this.chart.renderer,d=c.overshoot;d=z(d)?d/180*Math.PI:0;var e;z(c.threshold)&&(e=a.startAngleRad+a.translate(c.threshold,void 0,void 0,void 0,!0));this.thresholdAngleRad=k(e,a.startAngleRad);e=0;for(var h=this.points;e<h.length;e++){var m=h[e];if(!m.isNull){var g=l(k(m.options.radius,
-c.radius,100))*b[2]/200,t=l(k(m.options.innerRadius,c.innerRadius,60))*b[2]/200,u=Math.min(a.startAngleRad,a.endAngleRad),r=Math.max(a.startAngleRad,a.endAngleRad),q=m.graphic,p=a.startAngleRad+a.translate(m.y,void 0,void 0,void 0,!0),v=a.toColor(m.y,m);"none"===v&&(v=m.color||this.color||"none");"none"!==v&&(m.color=v);p=y(p,u-d,r+d);!1===c.wrap&&(p=y(p,u,r));u=Math.min(p,this.thresholdAngleRad);p=Math.max(p,this.thresholdAngleRad);p-u>2*Math.PI&&(p=u+2*Math.PI);m.shapeArgs=t={x:b[0],y:b[1],r:g,
-innerR:t,start:u,end:p,rounded:c.rounded};m.startR=g;q?(g=t.d,q.animate(w({fill:v},t)),g&&(t.d=g)):m.graphic=q=f.arc(t).attr({fill:v,"sweep-flag":0}).add(this.group);this.chart.styledMode||("square"!==c.linecap&&q.attr({"stroke-linecap":"round","stroke-linejoin":"round"}),q.attr({stroke:c.borderColor||"none","stroke-width":c.borderWidth||0}));q&&q.addClass(m.getClassName(),!0)}}};b.prototype.animate=function(a){a||(this.startAngleRad=this.thresholdAngleRad,r.animate.call(this,a))};b.defaultOptions=
-d(x.defaultOptions,f);return b}(x);w(c.prototype,{drawLegendSymbol:a.drawRectangle});b.registerSeriesType("solidgauge",c);return c});b(a,"masters/modules/solid-gauge.src.js",[],function(){})});
-//# sourceMappingURL=solid-gauge.js.map

+ 0 - 68
nicegui/elements/lib/highcharts_modules/sonification.js

@@ -1,68 +0,0 @@
-/*
- Highcharts JS v10.3.3 (2023-01-20)
-
- Sonification module
-
- (c) 2012-2021 ystein Moseng
-
- License: www.highcharts.com/license
-*/
-(function(a){"object"===typeof module&&module.exports?(a["default"]=a,module.exports=a):"function"===typeof define&&define.amd?define("highcharts/modules/sonification",["highcharts"],function(l){a(l);a.Highcharts=l;return a}):a("undefined"!==typeof Highcharts?Highcharts:void 0)})(function(a){function l(a,d,h,k){a.hasOwnProperty(d)||(a[d]=k.apply(null,h),"function"===typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:d,module:a[d]}})))}a=a?a._modules:{};
-l(a,"Extensions/Sonification/MusicalFrequencies.js",[],function(){return[16.351597831287414,17.323914436054505,18.354047994837977,19.445436482630058,20.601722307054366,21.826764464562746,23.12465141947715,24.499714748859326,25.956543598746574,27.5,29.13523509488062,30.86770632850775,32.70319566257483,34.64782887210901,36.70809598967594,38.890872965260115,41.20344461410875,43.653528929125486,46.2493028389543,48.999429497718666,51.91308719749314,55,58.27047018976124,61.7354126570155,65.40639132514966,
-69.29565774421802,73.41619197935188,77.78174593052023,82.4068892282175,87.30705785825097,92.4986056779086,97.99885899543733,103.82617439498628,110,116.54094037952248,123.47082531403103,130.8127826502993,138.59131548843604,146.8323839587038,155.56349186104046,164.81377845643496,174.61411571650194,184.9972113558172,195.99771799087463,207.65234878997256,220,233.08188075904496,246.94165062806206,261.6255653005986,277.1826309768721,293.6647679174076,311.1269837220809,329.6275569128699,349.2282314330039,
-369.9944227116344,391.99543598174927,415.3046975799451,440,466.1637615180899,493.8833012561241,523.2511306011972,554.3652619537442,587.3295358348151,622.2539674441618,659.2551138257398,698.4564628660078,739.9888454232688,783.9908719634985,830.6093951598903,880,932.3275230361799,987.7666025122483,1046.5022612023945,1108.7305239074883,1174.6590716696303,1244.5079348883237,1318.5102276514797,1396.9129257320155,1479.9776908465376,1567.981743926997,1661.2187903197805,1760,1864.6550460723597,1975.533205024496,
-2093.004522404789,2217.4610478149766,2349.31814333926,2489.0158697766474,2637.02045530296,2793.825851464031,2959.955381693075,3135.9634878539946,3322.437580639561,3520,3729.3100921447194,3951.066410048992,4186.009044809578]});l(a,"Extensions/Sonification/SignalHandler.js",[],function(){return function(){function a(a){this.supportedSignals=this.signals=void 0;this.init(a||[])}a.prototype.init=function(a){this.supportedSignals=a;this.signals={}};a.prototype.registerSignalCallbacks=function(a){var d=
-this;d.supportedSignals.forEach(function(k){var n=a[k];n&&(d.signals[k]=d.signals[k]||[]).push(n)})};a.prototype.clearSignalCallbacks=function(a){var d=this;a?a.forEach(function(a){d.signals[a]&&delete d.signals[a]}):d.signals={}};a.prototype.emitSignal=function(a,h){var d;this.signals[a]&&this.signals[a].forEach(function(a){a=a(h);d="undefined"!==typeof a?a:d});return d};return a}()});l(a,"Extensions/Sonification/SonificationUtilities.js",[a["Extensions/Sonification/MusicalFrequencies.js"],a["Extensions/Sonification/SignalHandler.js"],
-a["Core/Utilities.js"]],function(a,d,h){var k=h.clamp,n=h.merge,g={musicalFrequencies:a,SignalHandler:d,getExtremesForInstrumentProps:function(a,b,f){var c=a.options.sonification&&a.options.sonification.defaultInstrumentOptions,q=function(a){return{instrumentMapping:a.mapping}},r=(b||[]).slice(0);c&&r.push(q(c));a.series.forEach(function(a){(a=a.options.sonification&&a.options.sonification.instruments)&&(r=r.concat(a.map(q)))});return r.reduce(function(c,b){Object.keys(b.instrumentMapping||{}).forEach(function(q){q=
-b.instrumentMapping[q];"string"!==typeof q||c[q]||(c[q]=g.calculateDataExtremes(a,q))});return c},n(f))},getMusicalScale:function(c){return a.filter(function(a,f){var b=f%12+1;return c.some(function(a){return a===b})})},calculateDataExtremes:function(a,b){return a.series.reduce(function(a,c){c.points.forEach(function(c){c="undefined"!==typeof c[b]?c[b]:c.options[b];a.min=Math.min(a.min,c);a.max=Math.max(a.max,c)});return a},{min:Infinity,max:-Infinity})},virtualAxisTranslate:function(a,b,f,d){var c=
-b.max-b.min;a=f.min+Math.abs(f.max-f.min)*(d?b.max-a:a-b.min)/c;return 0<c?k(a,f.min,f.max):f.min}};return g});l(a,"Extensions/Sonification/Options.js",[],function(){return{sonification:{enabled:!1,duration:2500,afterSeriesWait:700,masterVolume:1,order:"sequential",defaultInstrumentOptions:{instrument:"sineMusical",minFrequency:392,maxFrequency:1046,mapping:{pointPlayTime:"x",duration:200,frequency:"y"}}}}});l(a,"Extensions/Sonification/Sonification.js",[a["Core/Defaults.js"],a["Core/Utilities.js"],
-a["Extensions/Sonification/SonificationUtilities.js"],a["Extensions/Sonification/Options.js"]],function(a,d,h,k){d=d.merge;d(!0,a.defaultOptions,k);a={fadeOutDuration:20,utilities:h};"";return a});l(a,"Extensions/Sonification/Instrument.js",[a["Core/Globals.js"],a["Extensions/Sonification/Sonification.js"],a["Extensions/Sonification/SonificationUtilities.js"],a["Core/Utilities.js"]],function(a,d,h,k){var n=a.win,g=k.error,c=k.merge,b=k.pick,f=k.uniqueKey,t=function(){function a(a){this.playCallbackTimers=
-this.options=this.masterVolume=this.id=void 0;this.init(a)}a.prototype.init=function(b){if(this.initAudioContext()){this.options=c(a.defaultOptions,b);this.id=this.options.id=b&&b.id||f();this.masterVolume=this.options.masterVolume||0;b=a.audioContext;var e=this.destinationNode||b.destination;this.gainNode=b.createGain();this.setGain(0);(this.panNode=b.createStereoPanner&&b.createStereoPanner())?(this.setPan(0),this.gainNode.connect(this.panNode),this.panNode.connect(e)):this.gainNode.connect(e);
-"oscillator"===this.options.type&&this.initOscillator(this.options.oscillator);this.playCallbackTimers=[]}else g(29)};a.prototype.copy=function(b){return new a(c(this.options,{id:null},b))};a.prototype.initAudioContext=function(){var b=n.AudioContext||n.webkitAudioContext,c=!!a.audioContext;return b?(a.audioContext=a.audioContext||new b,!c&&a.audioContext&&"running"===a.audioContext.state&&a.audioContext.suspend(),!!(a.audioContext&&a.audioContext.createOscillator&&a.audioContext.createGain)):!1};
-a.prototype.initOscillator=function(b){this.oscillator=a.audioContext.createOscillator();this.oscillator.type=b.waveformShape;this.oscillator.connect(this.gainNode);this.oscillatorStarted=!1};a.prototype.setPan=function(b){this.panNode&&this.panNode.pan.setValueAtTime(b,a.audioContext.currentTime)};a.prototype.setGain=function(b,c){var e=this.gainNode;b*=this.masterVolume;e&&(1.2<b&&(console.warn("Highcharts sonification warning: Volume of instrument set too high."),b=1.2),c?(e.gain.setValueAtTime(e.gain.value,
-a.audioContext.currentTime),e.gain.linearRampToValueAtTime(b,a.audioContext.currentTime+c/1E3)):e.gain.setValueAtTime(b,a.audioContext.currentTime))};a.prototype.cancelGainRamp=function(){this.gainNode&&this.gainNode.gain.cancelScheduledValues(0)};a.prototype.setMasterVolume=function(a){this.masterVolume=a||0};a.prototype.getValidFrequency=function(a,c,m){var e=this.options.allowedFrequencies,f=b(m,Infinity),d=b(c,-Infinity);return e&&e.length?e.reduce(function(b,c){return Math.abs(c-a)<Math.abs(b-
-a)&&c<f&&c>d?c:b},Infinity):a};a.prototype.clearPlayCallbackTimers=function(){this.playCallbackTimers.forEach(function(a){clearInterval(a)});this.playCallbackTimers=[]};a.prototype.setFrequency=function(a,b){b=b||{};a=this.getValidFrequency(a,b.min,b.max);"oscillator"===this.options.type&&this.oscillatorPlay(a)};a.prototype.oscillatorPlay=function(b){this.oscillatorStarted||(this.oscillator.start(),this.oscillatorStarted=!0);this.oscillator.frequency.setValueAtTime(b,a.audioContext.currentTime)};
-a.prototype.preparePlay=function(){this.setGain(.001);"suspended"===a.audioContext.state&&a.audioContext.resume();this.oscillator&&!this.oscillatorStarted&&(this.oscillator.start(),this.oscillatorStarted=!0)};a.prototype.play=function(c){var e=this,m=c.duration||0,f=function(a,b,f){var m=c.duration,d=e.options.playCallbackInterval,g=0;if("function"===typeof a){var w=setInterval(function(){g++;var c=g*d/m;if(1<=c)e[b](a(1),f),clearInterval(w);else e[b](a(c),f)},d);e.playCallbackTimers.push(w)}else e[b](a,
-f)};if(e.id)if("suspended"===a.audioContext.state||this.oscillator&&!this.oscillatorStarted)e.preparePlay(),setTimeout(function(){e.play(c)},10);else{e.playCallbackTimers.length&&e.clearPlayCallbackTimers();e.cancelGainRamp();e.stopOscillatorTimeout&&(clearTimeout(e.stopOscillatorTimeout),delete e.stopOscillatorTimeout);e.stopTimeout&&(clearTimeout(e.stopTimeout),delete e.stopTimeout,e.stopCallback&&(e._play=e.play,e.play=function(){},e.stopCallback("cancelled"),e.play=e._play));var g=m<d.fadeOutDuration+
-20;e.stopCallback=c.onEnd;var n=function(){delete e.stopTimeout;e.stop(g)};m?(e.stopTimeout=setTimeout(n,g?m:m-d.fadeOutDuration),f(c.frequency,"setFrequency",{minFrequency:c.minFrequency,maxFrequency:c.maxFrequency}),f(b(c.volume,1),"setGain",4),f(b(c.pan,0),"setPan")):n()}};a.prototype.mute=function(){this.setGain(.0001,.8*d.fadeOutDuration)};a.prototype.stop=function(a,b,c){var e=this,f=function(){e.stopOscillatorTimeout&&delete e.stopOscillatorTimeout;if(e.oscillator&&e.options.oscillator){try{e.oscillator.stop()}catch(u){}e.gainNode&&
-e.oscillator.disconnect(e.gainNode);e.initOscillator(e.options.oscillator)}b&&b(c);e.stopCallback&&e.stopCallback(c)};e.playCallbackTimers.length&&e.clearPlayCallbackTimers();e.stopTimeout&&clearTimeout(e.stopTimeout);a?(e.setGain(0),f()):(e.mute(),e.stopOscillatorTimeout=setTimeout(f,d.fadeOutDuration+100))};a.defaultOptions={type:"oscillator",playCallbackInterval:20,masterVolume:1,oscillator:{waveformShape:"sine"}};a.definitions={};return a}();["sine","square","triangle","sawtooth"].forEach(function(a){t.definitions[a]=
-new t({oscillator:{waveformShape:a}});t.definitions[a+"Musical"]=new t({allowedFrequencies:h.musicalFrequencies,oscillator:{waveformShape:a}});t.definitions[a+"Major"]=new t({allowedFrequencies:h.getMusicalScale([1,3,5,6,8,10,12]),oscillator:{waveformShape:a}})});"";return t});l(a,"Extensions/Sonification/Earcon.js",[a["Extensions/Sonification/Instrument.js"],a["Core/Utilities.js"]],function(a,d){var h=d.error,k=d.merge,n=d.pick,g=d.uniqueKey;d=function(){function c(a){this.options=this.instrumentsPlaying=
-this.id=void 0;this.init(a||{})}c.prototype.init=function(a){this.options=a;this.options.id||(this.options.id=this.id=g());this.instrumentsPlaying={}};c.prototype.sonify=function(c){var b=k(this.options,c),d=n(b.volume,1),g=b.pan,r=this,e=c&&c.onEnd,m=r.options.onEnd;b.instruments.forEach(function(c){var b="string"===typeof c.instrument?a.definitions[c.instrument]:c.instrument,f=k(c.playOptions),q="";if(b&&b.play){if(c.playOptions){f.pan=n(g,f.pan);var t=f.onEnd;f.onEnd=function(){delete r.instrumentsPlaying[q];
-t&&t.apply(this,arguments);Object.keys(r.instrumentsPlaying).length||(e&&e.apply(this,arguments),m&&m.apply(this,arguments))};c=b.copy();c.setMasterVolume(d);q=c.id;r.instrumentsPlaying[q]=c;c.play(f)}}else h(30)})};c.prototype.cancelSonify=function(a){var c=this.instrumentsPlaying,b=c&&Object.keys(c);b&&b.length&&(b.forEach(function(b){c[b].stop(!a,null,"cancelled")}),this.instrumentsPlaying={})};return c}();"";return d});l(a,"Extensions/Sonification/Timeline.js",[a["Extensions/Sonification/Sonification.js"],
-a["Core/Utilities.js"],a["Extensions/Sonification/SonificationUtilities.js"]],function(a,d,h){var k=d.merge,n=d.splat;d=function(){function d(a){this.signalHandler=this.pathsPlaying=this.paths=this.options=this.cursor=void 0;this.init(a||{})}d.prototype.init=function(a){this.options=a;this.cursor=0;this.paths=a.paths||[];this.pathsPlaying={};this.signalHandler=new h.SignalHandler(["playOnEnd","masterOnEnd","onPathStart","onPathEnd"]);this.signalHandler.registerSignalCallbacks(k(a,{masterOnEnd:a.onEnd}))};
-d.prototype.play=function(a){this.pause();this.signalHandler.clearSignalCallbacks(["playOnEnd"]);this.signalHandler.registerSignalCallbacks({playOnEnd:a});this.playPaths(1)};d.prototype.rewind=function(a){this.pause();this.signalHandler.clearSignalCallbacks(["playOnEnd"]);this.signalHandler.registerSignalCallbacks({playOnEnd:a});this.playPaths(-1)};d.prototype.playPaths=function(c){var b=this,d=b.signalHandler;if(b.paths.length){var g=n(this.paths[this.cursor]),k=this.paths[this.cursor+c],h=function(a){d.emitSignal("onPathStart",
-a);b.pathsPlaying[a.id]=a;a[0<c?"play":"rewind"](function(e){e=e&&e.cancelled;var f={path:a,cancelled:e};delete b.pathsPlaying[a.id];d.emitSignal("onPathEnd",f);var m=0;m++;m>=g.length&&(k&&!e?(b.cursor+=c,n(k).forEach(function(a){a[0<c?"resetCursor":"resetCursorEnd"]()}),b.playPaths(c)):(d.emitSignal("playOnEnd",f),d.emitSignal("masterOnEnd",f)))})};g.forEach(function(c){c&&(c.timeline=b,setTimeout(function(){h(c)},a.fadeOutDuration))})}else{var e={cancelled:!1};d.emitSignal("playOnEnd",e);d.emitSignal("masterOnEnd",
-e)}};d.prototype.pause=function(a){var c=this;Object.keys(c.pathsPlaying).forEach(function(b){c.pathsPlaying[b]&&c.pathsPlaying[b].pause(a)});c.pathsPlaying={}};d.prototype.resetCursor=function(){this.paths.forEach(function(a){n(a).forEach(function(a){a.resetCursor()})});this.cursor=0};d.prototype.resetCursorEnd=function(){this.paths.forEach(function(a){n(a).forEach(function(a){a.resetCursorEnd()})});this.cursor=this.paths.length-1};d.prototype.setCursor=function(a){return this.paths.some(function(c){return n(c).some(function(c){return c.setCursor(a)})})};
-d.prototype.getCursor=function(){return this.getCurrentPlayingPaths().reduce(function(a,b){a[b.id]=b.getCursor();return a},{})};d.prototype.atStart=function(){return this.cursor?!1:!n(this.paths[0]).some(function(a){return a.cursor})};d.prototype.getCurrentPlayingPaths=function(){return this.paths.length?n(this.paths[this.cursor]):[]};return d}();"";return d});l(a,"Extensions/Sonification/TimelineEvent.js",[a["Core/Utilities.js"]],function(a){var d=a.merge,h=a.uniqueKey;a=function(){function a(a){this.time=
-this.options=this.id=void 0;this.init(a)}a.prototype.init=function(a){this.options=a;this.time=a.time||0;this.id=this.options.id=a.id||h()};a.prototype.play=function(a){var g=this.options.eventObject,c=this.options.onEnd,b=a&&a.onEnd,f=this.options.playOptions&&this.options.playOptions.onEnd;a=d(this.options.playOptions,a);g&&g.sonify?(a.onEnd=c||b||f?function(){var a=arguments;[c,b,f].forEach(function(c){c&&c.apply(this,a)})}:void 0,g.sonify(a)):(b&&b(),c&&c())};a.prototype.cancel=function(a){var d=
-this.options.eventObject;d&&d.cancelSonify(a)};return a}();"";return a});l(a,"Extensions/Sonification/TimelinePath.js",[a["Extensions/Sonification/TimelineEvent.js"],a["Extensions/Sonification/SonificationUtilities.js"],a["Core/Utilities.js"]],function(a,d,h){var k=h.merge,n=h.uniqueKey;h=function(){function g(a){this.signalHandler=this.options=this.id=this.eventsPlaying=this.eventIdMap=this.events=this.cursor=void 0;this.init(a)}g.prototype.init=function(c){this.options=c;this.id=this.options.id=
-c.id||n();this.cursor=0;this.eventsPlaying={};this.events=c.silentWait?[new a({time:0}),new a({time:c.silentWait})]:this.options.events;this.targetDuration=c.targetDuration||c.silentWait;this.sortEvents();this.updateEventIdMap();this.signalHandler=new d.SignalHandler(["playOnEnd","masterOnEnd","onStart","onEventStart","onEventEnd"]);this.signalHandler.registerSignalCallbacks(k(c,{masterOnEnd:c.onEnd}))};g.prototype.sortEvents=function(){this.events=this.events.sort(function(a,b){return a.time-b.time})};
-g.prototype.updateEventIdMap=function(){this.eventIdMap=this.events.reduce(function(a,b,d){a[b.id]=d;return a},{})};g.prototype.addTimelineEvents=function(a){this.events=this.events.concat(a);this.sortEvents();this.updateEventIdMap()};g.prototype.getCursor=function(){return this.events[this.cursor]};g.prototype.setCursor=function(a){a=this.eventIdMap[a];return"undefined"!==typeof a?(this.cursor=a,!0):!1};g.prototype.play=function(a){this.pause();this.signalHandler.emitSignal("onStart");this.signalHandler.clearSignalCallbacks(["playOnEnd"]);
-this.signalHandler.registerSignalCallbacks({playOnEnd:a});this.playEvents(1)};g.prototype.rewind=function(a){this.pause();this.signalHandler.emitSignal("onStart");this.signalHandler.clearSignalCallbacks(["playOnEnd"]);this.signalHandler.registerSignalCallbacks({playOnEnd:a});this.playEvents(-1)};g.prototype.resetCursor=function(){this.cursor=0};g.prototype.resetCursorEnd=function(){this.cursor=this.events.length-1};g.prototype.pause=function(a){var b=this;clearTimeout(b.nextScheduledPlay);Object.keys(b.eventsPlaying).forEach(function(c){b.eventsPlaying[c]&&
-b.eventsPlaying[c].cancel(a)});b.eventsPlaying={}};g.prototype.playEvents=function(a){var b=this,c=b.events[this.cursor],d=b.events[this.cursor+a],g=function(a){b.signalHandler.emitSignal("masterOnEnd",a);b.signalHandler.emitSignal("playOnEnd",a)};c.timelinePath=b;if(!1===b.signalHandler.emitSignal("onEventStart",c))g({event:c,cancelled:!0});else if(b.eventsPlaying[c.id]=c,c.play({onEnd:function(a){a={event:c,cancelled:!!a};delete b.eventsPlaying[c.id];b.signalHandler.emitSignal("onEventEnd",a);d||
-g(a)}}),d){var k=Math.abs(d.time-c.time);1>k?(b.cursor+=a,b.playEvents(a)):this.nextScheduledPlay=setTimeout(function(){b.cursor+=a;b.playEvents(a)},k)}};return g}();"";return h});l(a,"Extensions/Sonification/SeriesSonify.js",[a["Extensions/Sonification/Earcon.js"],a["Extensions/Sonification/Instrument.js"],a["Core/Series/Point.js"],a["Extensions/Sonification/SonificationUtilities.js"],a["Extensions/Sonification/Timeline.js"],a["Extensions/Sonification/TimelineEvent.js"],a["Extensions/Sonification/TimelinePath.js"],
-a["Core/Utilities.js"]],function(a,d,h,k,n,g,c,b){var f=k.getExtremesForInstrumentProps,t=k.virtualAxisTranslate,q=b.extend,r=b.find,e=b.isArray,m=b.merge,w=b.objectEach,l=b.pick,u;(function(b){function k(a,b){a.forEach(function(a){a=a.instrument;"string"!==typeof a&&a.setMasterVolume(b)});return a}function y(a,b){var e=b.timeExtremes||G(a,b.pointPlayTime),p=f(a.chart,b.instruments,b.dataExtremes),d=u(a,b.instruments,p),m=l(b.masterVolume,1),A=E(b.instruments),v=k(A,m);A=a.points.reduce(function(a,
-c){var N=D(c,b.earcons||[]),f=t(x(c,b.pointPlayTime),e,{min:0,max:Math.max(b.duration-d,10)});return a.concat(new g({eventObject:c,time:f,id:c.id,playOptions:{instruments:v,dataExtremes:p,masterVolume:m}}),N.map(function(a){return new g({eventObject:a,time:f,playOptions:{volume:m}})}))},[]);return new c({events:A,onStart:function(){if(b.onStart)b.onStart(a)},onEventStart:function(a){var c=a.options&&a.options.eventObject;if(c instanceof h){if(!c.series.visible&&!c.series.chart.series.some(function(a){return a.visible}))return a.timelinePath.timeline.pause(),
-a.timelinePath.timeline.resetCursor(),!1;if(b.onPointStart)b.onPointStart(a,c)}},onEventEnd:function(a){var c=a.event&&a.event.options&&a.event.options.eventObject;if(c instanceof h&&b.onPointEnd)b.onPointEnd(a.event,c)},onEnd:function(){if(b.onEnd)b.onEnd(a)},targetDuration:b.duration})}function z(a){var b=a.options.sonification||{},c=a.chart.options.sonification||{},e=c.events||{},d=b.events||{};return{onEnd:d.onSeriesEnd||e.onSeriesEnd,onStart:d.onSeriesStart||e.onSeriesStart,onPointEnd:d.onPointEnd||
-e.onPointEnd,onPointStart:d.onPointStart||e.onPointStart,pointPlayTime:c.defaultInstrumentOptions&&c.defaultInstrumentOptions.mapping&&c.defaultInstrumentOptions.mapping.pointPlayTime,masterVolume:c.masterVolume,instruments:C(a),earcons:b.earcons||c.earcons}}function u(a,b,c){var e=a.points[a.points.length-1];return b.reduce(function(a,b){b=b.instrumentMapping.duration;b="string"===typeof b?0:"function"===typeof b?b(e,c):b;return Math.max(a,b)},0)}function D(b,c){return c.reduce(function(c,e){var d=
-e.earcon;e.condition?(e=e.condition(b),e instanceof a?c.push(e):e&&c.push(d)):e.onPoint&&b.id===e.onPoint&&c.push(d);return c},[])}function x(a,b){return"function"===typeof b?b(a):l(a[b],a.options[b])}function C(a,b){if(b&&b.instruments)return b.instruments;var c=a.chart.options.sonification&&a.chart.options.sonification.defaultInstrumentOptions||{},e=function(a){w(a,function(b,c){null===b&&delete a[c]})};return(a.options.sonification&&a.options.sonification.instruments||[{}]).map(function(a){e(a.mapping||
-{});e(a);return{instrument:a.instrument||c.instrument,instrumentOptions:m(c,a,{mapping:void 0,instrument:void 0}),instrumentMapping:m(c.mapping,a.mapping)}})}function G(a,b){return a.points.reduce(function(a,c){c=x(c,b);a.min=Math.min(a.min,c);a.max=Math.max(a.max,c);return a},{min:Infinity,max:-Infinity})}function E(a){return a.map(function(a){var b=a.instrument;b=("string"===typeof b?d.definitions[b]:b).copy();return m(a,{instrument:b})})}function F(a){var b=this.chart.options.sonification,c=this.options.sonification;
-a=m({duration:c&&c.duration||b&&b.duration},z(this),a);b=y(this,a);if(c=this.chart.sonification)c.timeline&&c.timeline.pause(),c.duration=a.duration,c.timeline=new n({paths:[b]}),c.timeline.play()}var B=[];b.compose=function(a){-1===B.indexOf(a)&&(B.push(a),q(a.prototype,{sonify:F}));return a};b.buildChartSonifySeriesOptions=function(a,b,c){var d=c.seriesOptions||{},f=a.chart.options.sonification;f=f&&f.defaultInstrumentOptions&&f.defaultInstrumentOptions.mapping&&f.defaultInstrumentOptions.mapping.pointPlayTime||
-"x";var g=z(a);return m(g,{dataExtremes:b,timeExtremes:G(a,f),instruments:c.instruments||g.instruments,onStart:c.onSeriesStart||g.onStart,onEnd:c.onSeriesEnd||g.onEnd,earcons:c.earcons||g.earcons,masterVolume:l(c.masterVolume,g.masterVolume)},e(d)?r(d,function(b){return b.id===l(a.id,a.options.id)})||{}:d,{pointPlayTime:f})};b.buildTimelinePathFromSeries=y})(u||(u={}));return u});l(a,"Extensions/Sonification/ChartSonify.js",[a["Extensions/Sonification/Earcon.js"],a["Core/Series/Point.js"],a["Extensions/Sonification/SeriesSonify.js"],
-a["Extensions/Sonification/SonificationUtilities.js"],a["Extensions/Sonification/Timeline.js"],a["Extensions/Sonification/TimelineEvent.js"],a["Extensions/Sonification/TimelinePath.js"],a["Core/Utilities.js"]],function(a,d,h,k,n,g,c,b){function f(b,e,d){if("sequential"===b||"simultaneous"===b){var p=e.series.reduce(function(a,b){b.visible&&!1!==(b.options.sonification&&b.options.sonification.enabled)&&a.push({series:b,seriesOptions:d(b)});return a},[]);"simultaneous"===b&&(p=[p])}else p=b.reduce(function(b,
-p){p=v(p).reduce(function(b,p){var f;if("string"===typeof p){var m=e.get(p);m.visible&&(f={series:m,seriesOptions:d(m)})}else p instanceof a&&(f=new c({events:[new g({eventObject:p})]}));p.silentWait&&(f=new c({silentWait:p.silentWait}));f&&b.push(f);return b},[]);p.length&&b.push(p);return b},[]);return p}function l(a,b){return b?a.reduce(function(e,d,p){d=v(d);e.push(d);p<a.length-1&&d.some(function(a){return a.series})&&e.push(new c({silentWait:b}));return e},[]):a}function q(a){return a.reduce(function(a,
-b){b=v(b);return a+(1===b.length&&b[0].options&&b[0].options.silentWait||0)},0)}function r(a){var b=a.reduce(function(a,b){(b=b.events)&&b.length&&(a.min=Math.min(b[0].time,a.min),a.max=Math.max(b[b.length-1].time,a.max));return a},{min:Infinity,max:-Infinity});a.forEach(function(a){var c=a.events,e=c&&c.length,d=[];e&&c[0].time<=b.min||d.push(new g({time:b.min}));e&&c[c.length-1].time>=b.max||d.push(new g({time:b.max}));d.length&&a.addTimelineEvents(d)})}function e(a){return a.reduce(function(a,
-b){return a+v(b).reduce(function(a,b){return(b=b.series&&b.seriesOptions&&b.seriesOptions.timeExtremes)?Math.max(a,b.max-b.min):a},0)},0)}function m(a,b){var d=Math.max(b-q(a),0),p=e(a);return a.reduce(function(a,b){b=v(b).reduce(function(a,b){b instanceof c?a.push(b):b.series&&(b.seriesOptions.duration=b.seriesOptions.duration||M(b.seriesOptions.timeExtremes.max-b.seriesOptions.timeExtremes.min,{min:0,max:p},{min:0,max:d}),a.push(h.buildTimelinePathFromSeries(b.series,b.seriesOptions)));return a},
-[]);a.push(b);return a},[])}function w(a,b){a=a.options.sonification||{};return B({duration:a.duration,afterSeriesWait:a.afterSeriesWait,pointPlayTime:a.defaultInstrumentOptions&&a.defaultInstrumentOptions.mapping&&a.defaultInstrumentOptions.mapping.pointPlayTime,order:a.order,onSeriesStart:a.events&&a.events.onSeriesStart,onSeriesEnd:a.events&&a.events.onSeriesEnd,onEnd:a.events&&a.events.onEnd},b)}function x(a){var b=w(this,a);this.sonification.timeline&&this.sonification.timeline.pause();this.sonification.duration=
-b.duration;var c=L(this,b.instruments,b.dataExtremes);a=f(b.order,this,function(a){return h.buildChartSonifySeriesOptions(a,c,b)});a=l(a,b.afterSeriesWait||0);a=m(a,b.duration);a.forEach(function(a){r(a)});this.sonification.timeline=new n({paths:a,onEnd:b.onEnd});this.sonification.timeline.play()}function u(){if(this.sonification.timeline){var a=this.sonification.timeline.getCursor();return Object.keys(a).map(function(b){return a[b].options.eventObject}).filter(function(a){return a instanceof d})}return[]}
-function C(a){var b=this.sonification.timeline;b&&v(a).forEach(function(a){b.setCursor(a.id)})}function H(a){this.sonification.timeline?this.sonification.timeline.pause(A(a,!0)):this.sonification.currentlyPlayingPoint&&this.sonification.currentlyPlayingPoint.cancelSonify(a)}function y(a){this.sonification.timeline&&this.sonification.timeline.play(a)}function z(a){this.sonification.timeline&&this.sonification.timeline.rewind(a)}function I(a){this.pauseSonify(a);this.resetSonifyCursor()}function D(){this.sonification.timeline&&
-this.sonification.timeline.resetCursor()}function J(){this.sonification.timeline&&this.sonification.timeline.resetCursorEnd()}var L=k.getExtremesForInstrumentProps,M=k.virtualAxisTranslate,E=b.addEvent,F=b.extend,B=b.merge,A=b.pick,v=b.splat,K=[];k={chartSonify:x,compose:function(a){-1===K.indexOf(a)&&(K.push(a),F(a.prototype,{sonify:x,pauseSonify:H,resumeSonify:y,rewindSonify:z,cancelSonify:I,getCurrentSonifyPoints:u,setSonifyCursor:C,resetSonifyCursor:D,resetSonifyCursorEnd:J}),E(a,"init",function(){this.sonification=
-{}}),E(a,"update",function(a){(a=a.options.sonification)&&B(!0,this.options.sonification,a)}));return a},pause:H,resume:y,rewind:z,cancel:I,getCurrentPoints:u,setCursor:C,resetCursor:D,resetCursorEnd:J};"";return k});l(a,"Extensions/Sonification/PointSonify.js",[a["Extensions/Sonification/Instrument.js"],a["Core/Utilities.js"],a["Extensions/Sonification/SonificationUtilities.js"]],function(a,d,h){var k=d.error,n=d.merge,g=d.pick,c=[],b={minDuration:20,maxDuration:2E3,minVolume:.1,maxVolume:1,minPan:-1,
-maxPan:1,minFrequency:220,maxFrequency:2200},f;(function(d){function f(c){var d=this,e=d.series.chart,f=g(c.masterVolume,e.options.sonification&&e.options.sonification.masterVolume),l=c.dataExtremes||{},q=function(a,b,c){if("function"===typeof a)return b?function(b){return a(d,l,b)}:a(d,l);if("string"===typeof a){var e=(b="-"===a.charAt(0))?a.slice(1):a,f=g(d[e],d.options[e]);l[e]=l[e]||h.calculateDataExtremes(d.series.chart,e);return h.virtualAxisTranslate(f,l[e],c,b)}return a};e.sonification.currentlyPlayingPoint=
-d;d.sonification=d.sonification||{};d.sonification.instrumentsPlaying=d.sonification.instrumentsPlaying||{};var r=d.sonification.signalHandler=d.sonification.signalHandler||new h.SignalHandler(["onEnd"]);r.clearSignalCallbacks();r.registerSignalCallbacks({onEnd:c.onEnd});!d.isNull&&d.visible&&d.series.visible?c.instruments.forEach(function(c){var g="string"===typeof c.instrument?a.definitions[c.instrument]:c.instrument,m=c.instrumentMapping||{},h=n(b,c.instrumentOptions),l=g.id,t=function(a){c.onEnd&&
-c.onEnd.apply(this,arguments);e.sonification&&e.sonification.currentlyPlayingPoint&&delete e.sonification.currentlyPlayingPoint;d.sonification&&d.sonification.instrumentsPlaying&&(delete d.sonification.instrumentsPlaying[l],Object.keys(d.sonification.instrumentsPlaying).length||r.emitSignal("onEnd",a))};g&&g.play?("undefined"!==typeof f&&g.setMasterVolume(f),d.sonification.instrumentsPlaying[g.id]=g,g.play({frequency:q(m.frequency,!0,{min:h.minFrequency,max:h.maxFrequency}),duration:q(m.duration,
-!1,{min:h.minDuration,max:h.maxDuration}),pan:q(m.pan,!0,{min:h.minPan,max:h.maxPan}),volume:q(m.volume,!0,{min:h.minVolume,max:h.maxVolume}),onEnd:t,minFrequency:h.minFrequency,maxFrequency:h.maxFrequency})):k(30)}):r.emitSignal("onEnd")}function l(a){var b=this.sonification&&this.sonification.instrumentsPlaying,c=b&&Object.keys(b);c&&c.length&&(c.forEach(function(c){b[c].stop(!a,null,"cancelled")}),this.sonification.instrumentsPlaying={},this.sonification.signalHandler.emitSignal("onEnd","cancelled"))}
-d.compose=function(a){if(-1===c.indexOf(a)){c.push(a);var b=a.prototype;b.sonify=f;b.cancelSonify=l}return a}})(f||(f={}));"";return f});l(a,"masters/modules/sonification.src.js",[a["Core/Globals.js"],a["Extensions/Sonification/ChartSonify.js"],a["Extensions/Sonification/Earcon.js"],a["Extensions/Sonification/Instrument.js"],a["Extensions/Sonification/PointSonify.js"],a["Extensions/Sonification/SeriesSonify.js"],a["Extensions/Sonification/Sonification.js"],a["Extensions/Sonification/Timeline.js"],
-a["Extensions/Sonification/TimelineEvent.js"],a["Extensions/Sonification/TimelinePath.js"]],function(a,d,h,k,l,g,c,b,f,t){var n=this&&this.__assign||function(){n=Object.assign||function(a){for(var b,c=1,d=arguments.length;c<d;c++){b=arguments[c];for(var f in b)Object.prototype.hasOwnProperty.call(b,f)&&(a[f]=b[f])}return a};return n.apply(this,arguments)};a.sonification=n(n({},c),{instruments:k.definitions,Earcon:h,Instrument:k,Timeline:b,TimelineEvent:f,TimelinePath:t});a.Earcon=h;a.Instrument=k;
-d.compose(a.Chart);g.compose(a.Series);l.compose(a.Point)})});
-//# sourceMappingURL=sonification.js.map

+ 0 - 14
nicegui/elements/lib/highcharts_modules/static-scale.js

@@ -1,14 +0,0 @@
-/*
- Highcharts Gantt JS v10.3.3 (2023-01-20)
-
- StaticScale
-
- (c) 2016-2021 Torstein Honsi, Lars A. V. Cabrera
-
- License: www.highcharts.com/license
-*/
-(function(a){"object"===typeof module&&module.exports?(a["default"]=a,module.exports=a):"function"===typeof define&&define.amd?define("highcharts/modules/static-scale",["highcharts"],function(b){a(b);a.Highcharts=b;return a}):a("undefined"!==typeof Highcharts?Highcharts:void 0)})(function(a){function b(a,c,f,b){a.hasOwnProperty(c)||(a[c]=b.apply(null,f),"function"===typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:c,module:a[c]}})))}a=a?a._modules:{};
-b(a,"Extensions/StaticScale.js",[a["Core/Axis/Axis.js"],a["Core/Chart/Chart.js"],a["Core/Utilities.js"]],function(a,c,b){var g=b.addEvent,f=b.defined,h=b.isNumber,k=b.pick;g(a,"afterSetOptions",function(){var a=this.chart.options.chart;!this.horiz&&h(this.options.staticScale)&&(!a.height||a.scrollablePlotArea&&a.scrollablePlotArea.minHeight)&&(this.staticScale=this.options.staticScale)});c.prototype.adjustHeight=function(){"adjustHeight"!==this.redrawTrigger&&((this.axes||[]).forEach(function(a){var b=
-a.chart,c=!!b.initiatedScale&&b.options.animation,d=a.options.staticScale;if(a.staticScale&&f(a.min)){var e=k(a.brokenAxis&&a.brokenAxis.unitLength,a.max+a.tickInterval-a.min)*d;e=Math.max(e,d);d=e-b.plotHeight;!b.scrollablePixelsY&&1<=Math.abs(d)&&(b.plotHeight=e,b.redrawTrigger="adjustHeight",b.setSize(void 0,b.chartHeight+d,c));a.series.forEach(function(a){(a=a.sharedClipKey&&b.sharedClips[a.sharedClipKey])&&a.attr(b.inverted?{width:b.plotHeight}:{height:b.plotHeight})})}}),this.initiatedScale=
-!0);this.redrawTrigger=null};g(c,"render",c.prototype.adjustHeight)});b(a,"masters/modules/static-scale.src.js",[],function(){})});
-//# sourceMappingURL=static-scale.js.map

+ 0 - 119
nicegui/elements/lib/highcharts_modules/stock-tools.js

@@ -1,119 +0,0 @@
-/*
- Highstock JS v10.3.3 (2023-01-20)
-
- Advanced Highcharts Stock tools
-
- (c) 2010-2021 Highsoft AS
- Author: Torstein Honsi
-
- License: www.highcharts.com/license
-*/
-(function(b){"object"===typeof module&&module.exports?(b["default"]=b,module.exports=b):"function"===typeof define&&define.amd?define("highcharts/modules/stock-tools",["highcharts","highcharts/modules/stock"],function(r){b(r);b.Highcharts=r;return b}):b("undefined"!==typeof Highcharts?Highcharts:void 0)})(function(b){function r(b,n,m,q){b.hasOwnProperty(n)||(b[n]=q.apply(null,m),"function"===typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:n,module:b[n]}})))}
-b=b?b._modules:{};r(b,"Core/Chart/ChartNavigationComposition.js",[],function(){var b;(function(b){b.compose=function(b){b.navigation||(b.navigation=new m(b));return b};var m=function(){function b(b){this.updates=[];this.chart=b}b.prototype.addUpdate=function(b){this.chart.navigation.updates.push(b)};b.prototype.update=function(b,h){var d=this;this.updates.forEach(function(H){H.call(d.chart,b,h)})};return b}();b.Additions=m})(b||(b={}));return b});r(b,"Extensions/Annotations/NavigationBindingsUtilities.js",
-[b["Core/Utilities.js"]],function(b){var n=b.defined,m=b.isNumber,q=b.pick,f={backgroundColor:"string",borderColor:"string",borderRadius:"string",color:"string",fill:"string",fontSize:"string",labels:"string",name:"string",stroke:"string",title:"string"};return{annotationsFieldsTypes:f,getAssignedAxis:function(b){return b.filter(function(d){var b=d.axis.getExtremes(),h=b.min;b=b.max;var f=q(d.axis.minPointOffset,0);return m(h)&&m(b)&&d.value>=h-f&&d.value<=b+f&&!d.axis.options.isInternal})[0]},getFieldType:function(b,
-d){b=f[b];d=typeof d;n(b)&&(d=b);return{string:"text",number:"number","boolean":"checkbox"}[d]}}});r(b,"Extensions/Annotations/NavigationBindingsDefaults.js",[b["Extensions/Annotations/NavigationBindingsUtilities.js"],b["Core/Utilities.js"]],function(b,n){var m=b.getAssignedAxis,q=n.isNumber,f=n.merge;return{lang:{navigation:{popup:{simpleShapes:"Simple shapes",lines:"Lines",circle:"Circle",ellipse:"Ellipse",rectangle:"Rectangle",label:"Label",shapeOptions:"Shape options",typeOptions:"Details",fill:"Fill",
-format:"Text",strokeWidth:"Line width",stroke:"Line color",title:"Title",name:"Name",labelOptions:"Label options",labels:"Labels",backgroundColor:"Background color",backgroundColors:"Background colors",borderColor:"Border color",borderRadius:"Border radius",borderWidth:"Border width",style:"Style",padding:"Padding",fontSize:"Font size",color:"Color",height:"Height",shapes:"Shape options"}}},navigation:{bindingsClassName:"highcharts-bindings-container",bindings:{circleAnnotation:{className:"highcharts-circle-annotation",
-start:function(b){var d=this.chart.pointer.getCoordinates(b);b=m(d.xAxis);d=m(d.yAxis);var h=this.chart.options.navigation;if(b&&d)return this.chart.addAnnotation(f({langKey:"circle",type:"basicAnnotation",shapes:[{type:"circle",point:{x:b.value,y:d.value,xAxis:b.axis.options.index,yAxis:d.axis.options.index},r:5}]},h.annotationsOptions,h.bindings.circleAnnotation.annotationsOptions))},steps:[function(b,d){var h=d.options.shapes;h=h&&h[0]&&h[0].point||{};if(q(h.xAxis)&&q(h.yAxis)){var f=this.chart.inverted;
-var m=this.chart.xAxis[h.xAxis].toPixels(h.x);h=this.chart.yAxis[h.yAxis].toPixels(h.y);f=Math.max(Math.sqrt(Math.pow(f?h-b.chartX:m-b.chartX,2)+Math.pow(f?m-b.chartY:h-b.chartY,2)),5)}d.update({shapes:[{r:f}]})}]},ellipseAnnotation:{className:"highcharts-ellipse-annotation",start:function(b){var d=this.chart.pointer.getCoordinates(b);b=m(d.xAxis);d=m(d.yAxis);var h=this.chart.options.navigation;if(b&&d)return this.chart.addAnnotation(f({langKey:"ellipse",type:"basicAnnotation",shapes:[{type:"ellipse",
-xAxis:b.axis.options.index,yAxis:d.axis.options.index,points:[{x:b.value,y:d.value},{x:b.value,y:d.value}],ry:1}]},h.annotationsOptions,h.bindings.ellipseAnnotation.annotationOptions))},steps:[function(b,d){d=d.shapes[0];var h=d.getAbsolutePosition(d.points[1]);d.translatePoint(b.chartX-h.x,b.chartY-h.y,1);d.redraw(!1)},function(b,d){d=d.shapes[0];var f=d.getAbsolutePosition(d.points[0]),h=d.getAbsolutePosition(d.points[1]);b=d.getDistanceFromLine(f,h,b.chartX,b.chartY);f=d.getYAxis();b=Math.abs(f.toValue(0)-
-f.toValue(b));d.setYRadius(b);d.redraw(!1)}]},rectangleAnnotation:{className:"highcharts-rectangle-annotation",start:function(b){b=this.chart.pointer.getCoordinates(b);var d=m(b.xAxis),h=m(b.yAxis);if(d&&h){b=d.value;var n=h.value;d=d.axis.options.index;h=h.axis.options.index;var x=this.chart.options.navigation;return this.chart.addAnnotation(f({langKey:"rectangle",type:"basicAnnotation",shapes:[{type:"path",points:[{xAxis:d,yAxis:h,x:b,y:n},{xAxis:d,yAxis:h,x:b,y:n},{xAxis:d,yAxis:h,x:b,y:n},{xAxis:d,
-yAxis:h,x:b,y:n},{command:"Z"}]}]},x.annotationsOptions,x.bindings.rectangleAnnotation.annotationsOptions))}},steps:[function(b,d){var f=d.options.shapes;f=f&&f[0]&&f[0].points||[];var h=this.chart.pointer.getCoordinates(b);b=m(h.xAxis);h=m(h.yAxis);b&&h&&(b=b.value,h=h.value,f[1].x=b,f[2].x=b,f[2].y=h,f[3].y=h,d.update({shapes:[{points:f}]}))}]},labelAnnotation:{className:"highcharts-label-annotation",start:function(b){var d=this.chart.pointer.getCoordinates(b);b=m(d.xAxis);d=m(d.yAxis);var h=this.chart.options.navigation;
-if(b&&d)return this.chart.addAnnotation(f({langKey:"label",type:"basicAnnotation",labelOptions:{format:"{y:.2f}"},labels:[{point:{xAxis:b.axis.options.index,yAxis:d.axis.options.index,x:b.value,y:d.value},overflow:"none",crop:!0}]},h.annotationsOptions,h.bindings.labelAnnotation.annotationsOptions))}}},events:{},annotationsOptions:{animation:{defer:0}}}}});r(b,"Extensions/Annotations/NavigationBindings.js",[b["Core/Chart/ChartNavigationComposition.js"],b["Core/Defaults.js"],b["Core/FormatUtilities.js"],
-b["Core/Globals.js"],b["Extensions/Annotations/NavigationBindingsDefaults.js"],b["Extensions/Annotations/NavigationBindingsUtilities.js"],b["Core/Utilities.js"]],function(b,n,m,q,f,h,d){function w(a,c){var b=y.Element.prototype,e=b.matches||b.msMatchesSelector||b.webkitMatchesSelector,k=null;if(b.closest)k=b.closest.call(a,c);else{do{if(e.call(a,c))return a;a=a.parentElement||a.parentNode}while(null!==a&&1===a.nodeType)}return k}function r(){this.chart.navigationBindings&&this.chart.navigationBindings.deselectAnnotation()}
-function x(){this.navigationBindings&&this.navigationBindings.destroy()}function g(){var a=this.options;a&&a.navigation&&a.navigation.bindings&&(this.navigationBindings=new D(this,a.navigation),this.navigationBindings.initEvents(),this.navigationBindings.initUpdate())}function p(){var a=this.navigationBindings;if(this&&a){var c=!1;this.series.forEach(function(a){!a.options.isInternal&&a.visible&&(c=!0)});if(this.navigationBindings&&this.navigationBindings.container&&this.navigationBindings.container[0]){var b=
-this.navigationBindings.container[0];z(a.boundClassNames,function(a,e){if(e=b.querySelectorAll("."+e))for(var k=0;k<e.length;k++){var v=e[k],g=v.className;"normal"===a.noDataState?-1!==g.indexOf("highcharts-disabled-btn")&&v.classList.remove("highcharts-disabled-btn"):c?-1!==g.indexOf("highcharts-disabled-btn")&&v.classList.remove("highcharts-disabled-btn"):-1===g.indexOf("highcharts-disabled-btn")&&(v.className+=" highcharts-disabled-btn")}})}}}function l(){this.deselectAnnotation()}function a(){this.selectedButtonElement=
-null}function c(a){var c=a.prototype.defaultOptions.events&&a.prototype.defaultOptions.events.click;E(!0,a.prototype.defaultOptions.events,{click:function(a){var b=this,e=b.chart.navigationBindings,k=e.activeAnnotation;c&&c.call(b,a);k!==b?(e.deselectAnnotation(),e.activeAnnotation=b,b.setControlPointsVisibility(!0),B(e,"showPopup",{annotation:b,formType:"annotation-toolbar",options:e.annotationToFields(b),onSubmit:function(a){if("remove"===a.actionType)e.activeAnnotation=!1,e.chart.removeAnnotation(b);
-else{var c={};e.fieldsToOptions(a.fields,c);e.deselectAnnotation();a=c.typeOptions;"measure"===b.options.type&&(a.crosshairY.enabled=0!==a.crosshairY.strokeWidth,a.crosshairX.enabled=0!==a.crosshairX.strokeWidth);b.update(c)}}})):B(e,"closePopup");a.activeAnnotation=!0}})}var e=n.setOptions,v=m.format,t=q.doc,y=q.win,k=h.getFieldType,u=d.addEvent,I=d.attr,B=d.fireEvent,C=d.isArray,J=d.isFunction,K=d.isNumber,F=d.isObject,E=d.merge,z=d.objectEach,G=d.pick,A=[],D=function(){function d(a,c){this.selectedButton=
-this.boundClassNames=void 0;this.chart=a;this.options=c;this.eventsToUnbind=[];this.container=this.chart.container.getElementsByClassName(this.options.bindingsClassName||"");this.container.length||(this.container=t.getElementsByClassName(this.options.bindingsClassName||""))}d.compose=function(b,k){-1===A.indexOf(b)&&(A.push(b),u(b,"remove",r),c(b),z(b.types,function(a){c(a)}));-1===A.indexOf(k)&&(A.push(k),u(k,"destroy",x),u(k,"load",g),u(k,"render",p));-1===A.indexOf(d)&&(A.push(d),u(d,"closePopup",
-l),u(d,"deselectButton",a));-1===A.indexOf(e)&&(A.push(e),e(f))};d.prototype.initEvents=function(){var a=this,c=a.chart,b=a.container,e=a.options;a.boundClassNames={};z(e.bindings||{},function(c){a.boundClassNames[c.className]=c});[].forEach.call(b,function(c){a.eventsToUnbind.push(u(c,"click",function(b){var e=a.getButtonEvents(c,b);e&&-1===e.button.className.indexOf("highcharts-disabled-btn")&&a.bindingsButtonClick(e.button,e.events,b)}))});z(e.events||{},function(c,b){J(c)&&a.eventsToUnbind.push(u(a,
-b,c,{passive:!1}))});a.eventsToUnbind.push(u(c.container,"click",function(b){!c.cancelClick&&c.isInsidePlot(b.chartX-c.plotLeft,b.chartY-c.plotTop,{visiblePlotOnly:!0})&&a.bindingsChartClick(this,b)}));a.eventsToUnbind.push(u(c.container,q.isTouchDevice?"touchmove":"mousemove",function(c){a.bindingsContainerMouseMove(this,c)},q.isTouchDevice?{passive:!1}:void 0))};d.prototype.initUpdate=function(){var a=this;b.compose(this.chart).navigation.addUpdate(function(c){a.update(c)})};d.prototype.bindingsButtonClick=
-function(a,c,b){var e=this.chart,k=e.renderer.boxWrapper,d=!0;this.selectedButtonElement&&(this.selectedButtonElement.classList===a.classList&&(d=!1),B(this,"deselectButton",{button:this.selectedButtonElement}),this.nextEvent&&(this.currentUserDetails&&"annotations"===this.currentUserDetails.coll&&e.removeAnnotation(this.currentUserDetails),this.mouseMoveEvent=this.nextEvent=!1));d?(this.selectedButton=c,this.selectedButtonElement=a,B(this,"selectButton",{button:a}),c.init&&c.init.call(this,a,b),
-(c.start||c.steps)&&e.renderer.boxWrapper.addClass("highcharts-draw-mode")):(e.stockTools&&e.stockTools.toggleButtonActiveClass(a),k.removeClass("highcharts-draw-mode"),this.mouseMoveEvent=this.nextEvent=!1,this.selectedButton=null)};d.prototype.bindingsChartClick=function(a,c){a=this.chart;var b=this.activeAnnotation,e=this.selectedButton;a=a.renderer.boxWrapper;b&&(b.cancelClick||c.activeAnnotation||!c.target.parentNode||w(c.target,".highcharts-popup")?b.cancelClick&&setTimeout(function(){b.cancelClick=
-!1},0):B(this,"closePopup"));e&&e.start&&(this.nextEvent?(this.nextEvent(c,this.currentUserDetails),this.steps&&(this.stepIndex++,e.steps[this.stepIndex]?this.mouseMoveEvent=this.nextEvent=e.steps[this.stepIndex]:(B(this,"deselectButton",{button:this.selectedButtonElement}),a.removeClass("highcharts-draw-mode"),e.end&&e.end.call(this,c,this.currentUserDetails),this.mouseMoveEvent=this.nextEvent=!1,this.selectedButton=null))):(this.currentUserDetails=e.start.call(this,c))&&e.steps?(this.stepIndex=
-0,this.steps=!0,this.mouseMoveEvent=this.nextEvent=e.steps[this.stepIndex]):(B(this,"deselectButton",{button:this.selectedButtonElement}),a.removeClass("highcharts-draw-mode"),this.steps=!1,this.selectedButton=null,e.end&&e.end.call(this,c,this.currentUserDetails)))};d.prototype.bindingsContainerMouseMove=function(a,c){this.mouseMoveEvent&&this.mouseMoveEvent(c,this.currentUserDetails)};d.prototype.fieldsToOptions=function(a,c){z(a,function(a,b){var e=parseFloat(a),k=b.split("."),d=k.length-1;!K(e)||
-a.match(/px/g)||b.match(/format/g)||(a=e);if("undefined"!==a){var v=c;k.forEach(function(c,b){var e=G(k[b+1],"");d===b?v[c]=a:(v[c]||(v[c]=e.match(/\d/g)?[]:{}),v=v[c])})}});return c};d.prototype.deselectAnnotation=function(){this.activeAnnotation&&(this.activeAnnotation.setControlPointsVisibility(!1),this.activeAnnotation=!1)};d.prototype.annotationToFields=function(a){function c(b,e,d,t,l){if(d&&b&&-1===f.indexOf(e)&&(0<=(d.indexOf&&d.indexOf(e))||d[e]||!0===d))if(C(b))t[e]=[],b.forEach(function(a,
-b){F(a)?(t[e][b]={},z(a,function(a,k){c(a,k,g[e],t[e][b],e)})):c(a,0,g[e],t[e],e)});else if(F(b)){var u={};C(t)?(t.push(u),u[e]={},u=u[e]):t[e]=u;z(b,function(a,b){c(a,b,0===e?d:g[e],u,e)})}else"format"===e?t[e]=[v(b,a.labels[0].points[0]).toString(),"text"]:C(t)?t.push([b,k(l,b)]):t[e]=[b,k(e,b)]}var b=a.options,e=d.annotationsEditable,g=e.nestedOptions,t=G(b.type,b.shapes&&b.shapes[0]&&b.shapes[0].type,b.labels&&b.labels[0]&&b.labels[0].type,"label"),f=d.annotationsNonEditable[b.langKey]||[],l=
-{langKey:b.langKey,type:t};z(b,function(a,k){"typeOptions"===k?(l[k]={},z(b[k],function(a,b){c(a,b,g,l[k],b)})):c(a,k,e[t],l,k)});return l};d.prototype.getClickedClassNames=function(a,c){var b=c.target;c=[];for(var e;b&&((e=I(b,"class"))&&(c=c.concat(e.split(" ").map(function(a){return[a,b]}))),b=b.parentNode,b!==a););return c};d.prototype.getButtonEvents=function(a,c){var b=this,e;this.getClickedClassNames(a,c).forEach(function(a){b.boundClassNames[a[0]]&&!e&&(e={events:b.boundClassNames[a[0]],button:a[1]})});
-return e};d.prototype.update=function(a){this.options=E(!0,this.options,a);this.removeEvents();this.initEvents()};d.prototype.removeEvents=function(){this.eventsToUnbind.forEach(function(a){return a()})};d.prototype.destroy=function(){this.removeEvents()};d.annotationsEditable={nestedOptions:{labelOptions:["style","format","backgroundColor"],labels:["style"],label:["style"],style:["fontSize","color"],background:["fill","strokeWidth","stroke"],innerBackground:["fill","strokeWidth","stroke"],outerBackground:["fill",
-"strokeWidth","stroke"],shapeOptions:["fill","strokeWidth","stroke"],shapes:["fill","strokeWidth","stroke"],line:["strokeWidth","stroke"],backgroundColors:[!0],connector:["fill","strokeWidth","stroke"],crosshairX:["strokeWidth","stroke"],crosshairY:["strokeWidth","stroke"]},circle:["shapes"],ellipse:["shapes"],verticalLine:[],label:["labelOptions"],measure:["background","crosshairY","crosshairX"],fibonacci:[],tunnel:["background","line","height"],pitchfork:["innerBackground","outerBackground"],rect:["shapes"],
-crookedLine:[],basicAnnotation:["shapes","labelOptions"]};d.annotationsNonEditable={rectangle:["crosshairX","crosshairY","labelOptions"],ellipse:["labelOptions"],circle:["labelOptions"]};return d}();"";return D});r(b,"Stock/StockTools/StockToolsUtilities.js",[b["Core/Defaults.js"],b["Extensions/Annotations/NavigationBindingsUtilities.js"],b["Core/Series/Series.js"],b["Core/Utilities.js"]],function(b,n,m,q){function f(a,b){a=b.pointer.getCoordinates(a);var c=Number.MAX_VALUE,e;if(b.navigationBindings){var g=
-d(a.xAxis);var k=d(a.yAxis)}if(g&&k){var f=g.value;b=k.value;k.axis.series.forEach(function(a){a.points&&a.points.forEach(function(a){a&&c>Math.abs(a.x-f)&&(c=Math.abs(a.x-f),e=a)})});if(e&&e.x&&e.y)return{x:e.x,y:e.y,below:b<e.y,series:e.series,xAxis:e.series.xAxis.options.index||0,yAxis:e.series.yAxis.options.index||0}}}var h=b.getOptions,d=n.getAssignedAxis,w=n.getFieldType,r=q.defined,x=q.fireEvent,g=q.isNumber,p=q.uniqueKey,l="apo ad aroon aroonoscillator atr ao cci chaikin cmf cmo disparityindex dmi dpo linearRegressionAngle linearRegressionIntercept linearRegressionSlope klinger macd mfi momentum natr obv ppo roc rsi slowstochastic stochastic trix williamsr".split(" "),
-a="ad cmf klinger mfi obv vbp vwap".split(" ");return{indicatorsWithAxes:l,indicatorsWithVolume:a,addFlagFromForm:function(a){return function(c){var b=this,e=b.chart,d=e.stockTools;if(c=f(c,e)){var k={type:"flags",onSeries:c.series.id,shape:a,data:[{x:c.x,y:c.y}],xAxis:c.xAxis,yAxis:c.yAxis,point:{events:{click:function(){var a=this,c=a.options;x(b,"showPopup",{point:a,formType:"annotation-toolbar",options:{langKey:"flags",type:"flags",title:[c.title,w("title",c.title)],name:[c.name,w("name",c.name)]},
-onSubmit:function(c){"remove"===c.actionType?a.remove():a.update(b.fieldsToOptions(c.fields,{}))}})}}}};d&&d.guiEnabled||e.addSeries(k);x(b,"showPopup",{formType:"flag",options:{langKey:"flags",type:"flags",title:["A",w("label","A")],name:["Flag A",w("label","Flag A")]},onSubmit:function(a){b.fieldsToOptions(a.fields,k.data[0]);e.addSeries(k)}})}}},attractToPoint:f,getAssignedAxis:d,isNotNavigatorYAxis:function(a){return"highcharts-navigator-yaxis"!==a.userOptions.className},isPriceIndicatorEnabled:function(a){return a.some(function(a){return a.lastVisiblePrice||
-a.lastPrice})},manageIndicators:function(c){var b=this.chart,d={linkedTo:c.linkedTo,type:c.type};if("edit"===c.actionType)this.fieldsToOptions(c.fields,d),(c=b.get(c.seriesId))&&c.update(d,!1);else if("remove"===c.actionType){if(c=b.get(c.seriesId)){var g=c.yAxis;c.linkedSeries&&c.linkedSeries.forEach(function(a){a.remove(!1)});c.remove(!1);0<=l.indexOf(c.type)&&(d={height:g.options.height,top:g.options.top},g.remove(!1),this.resizeYAxes(d))}}else{d.id=p();this.fieldsToOptions(c.fields,d);g=b.get(d.linkedTo);
-var f=h().plotOptions;"undefined"!==typeof g&&g instanceof m&&"sum"===g.getDGApproximation()&&!r(f&&f[d.type]&&f.dataGrouping&&f.dataGrouping.approximation)&&(d.dataGrouping={approximation:"sum"});0<=l.indexOf(c.type)?(g=b.addAxis({id:p(),offset:0,opposite:!0,title:{text:""},tickPixelInterval:40,showLastLabel:!1,labels:{align:"left",y:-2}},!1,!1),d.yAxis=g.options.id,this.resizeYAxes()):d.yAxis=b.get(c.linkedTo).options.yAxis;0<=a.indexOf(c.type)&&(d.params.volumeSeriesID=b.series.filter(function(a){return"column"===
-a.options.type})[0].options.id);b.addSeries(d,!1)}x(this,"deselectButton",{button:this.selectedButtonElement});b.redraw()},updateHeight:function(a,b){var c=b.options.typeOptions,e=g(c.yAxis)&&this.chart.yAxis[c.yAxis];e&&c.points&&b.update({typeOptions:{height:e.toValue(a[e.horiz?"chartX":"chartY"])-(c.points[1].y||0)}})},updateNthPoint:function(a){return function(c,b){var e=b.options.typeOptions,d=g(e.xAxis)&&this.chart.xAxis[e.xAxis],k=g(e.yAxis)&&this.chart.yAxis[e.yAxis];d&&k&&(e.points.forEach(function(b,
-e){e>=a&&(b.x=d.toValue(c[d.horiz?"chartX":"chartY"]),b.y=k.toValue(c[k.horiz?"chartX":"chartY"]))}),b.update({typeOptions:{points:e.points}}))}},updateRectSize:function(a,b){var c=b.chart,e=b.options.typeOptions,d=g(e.xAxis)&&c.xAxis[e.xAxis],k=g(e.yAxis)&&c.yAxis[e.yAxis];d&&k&&(d=d.toValue(a[d.horiz?"chartX":"chartY"]),a=k.toValue(a[k.horiz?"chartX":"chartY"]),k=d-e.point.x,e=e.point.y-a,b.update({typeOptions:{background:{width:c.inverted?e:k,height:c.inverted?k:e}}}))}}});r(b,"Stock/StockTools/StockToolsBindings.js",
-[b["Core/Globals.js"],b["Extensions/Annotations/NavigationBindingsUtilities.js"],b["Stock/StockTools/StockToolsUtilities.js"],b["Core/Utilities.js"]],function(b,n,m,q){var f=n.getAssignedAxis;n=m.addFlagFromForm;var h=m.attractToPoint,d=m.isNotNavigatorYAxis,w=m.isPriceIndicatorEnabled,r=m.manageIndicators,x=m.updateHeight,g=m.updateNthPoint;m=m.updateRectSize;var p=q.fireEvent,l=q.merge;return{segment:{className:"highcharts-segment",start:function(a){var c=this.chart.pointer.getCoordinates(a);a=
-f(c.xAxis);c=f(c.yAxis);if(a&&c){var b=this.chart.options.navigation;a=l({langKey:"segment",type:"crookedLine",typeOptions:{xAxis:a.axis.options.index,yAxis:c.axis.options.index,points:[{x:a.value,y:c.value},{x:a.value,y:c.value}]}},b.annotationsOptions,b.bindings.segment.annotationsOptions);return this.chart.addAnnotation(a)}},steps:[g(1)]},arrowSegment:{className:"highcharts-arrow-segment",start:function(a){var c=this.chart.pointer.getCoordinates(a);a=f(c.xAxis);c=f(c.yAxis);if(a&&c){var b=this.chart.options.navigation;
-a=l({langKey:"arrowSegment",type:"crookedLine",typeOptions:{line:{markerEnd:"arrow"},xAxis:a.axis.options.index,yAxis:c.axis.options.index,points:[{x:a.value,y:c.value},{x:a.value,y:c.value}]}},b.annotationsOptions,b.bindings.arrowSegment.annotationsOptions);return this.chart.addAnnotation(a)}},steps:[g(1)]},ray:{className:"highcharts-ray",start:function(a){var c=this.chart.pointer.getCoordinates(a);a=f(c.xAxis);c=f(c.yAxis);if(a&&c){var b=this.chart.options.navigation;a=l({langKey:"ray",type:"infinityLine",
-typeOptions:{type:"ray",xAxis:a.axis.options.index,yAxis:c.axis.options.index,points:[{x:a.value,y:c.value},{x:a.value,y:c.value}]}},b.annotationsOptions,b.bindings.ray.annotationsOptions);return this.chart.addAnnotation(a)}},steps:[g(1)]},arrowRay:{className:"highcharts-arrow-ray",start:function(a){var c=this.chart.pointer.getCoordinates(a);a=f(c.xAxis);c=f(c.yAxis);if(a&&c){var b=this.chart.options.navigation;a=l({langKey:"arrowRay",type:"infinityLine",typeOptions:{type:"ray",line:{markerEnd:"arrow"},
-xAxis:a.axis.options.index,yAxis:c.axis.options.index,points:[{x:a.value,y:c.value},{x:a.value,y:c.value}]}},b.annotationsOptions,b.bindings.arrowRay.annotationsOptions);return this.chart.addAnnotation(a)}},steps:[g(1)]},infinityLine:{className:"highcharts-infinity-line",start:function(a){var c=this.chart.pointer.getCoordinates(a);a=f(c.xAxis);c=f(c.yAxis);if(a&&c){var b=this.chart.options.navigation;a=l({langKey:"infinityLine",type:"infinityLine",typeOptions:{type:"line",xAxis:a.axis.options.index,
-yAxis:c.axis.options.index,points:[{x:a.value,y:c.value},{x:a.value,y:c.value}]}},b.annotationsOptions,b.bindings.infinityLine.annotationsOptions);return this.chart.addAnnotation(a)}},steps:[g(1)]},arrowInfinityLine:{className:"highcharts-arrow-infinity-line",start:function(a){var c=this.chart.pointer.getCoordinates(a);a=f(c.xAxis);c=f(c.yAxis);if(a&&c){var b=this.chart.options.navigation;a=l({langKey:"arrowInfinityLine",type:"infinityLine",typeOptions:{type:"line",line:{markerEnd:"arrow"},xAxis:a.axis.options.index,
-yAxis:c.axis.options.index,points:[{x:a.value,y:c.value},{x:a.value,y:c.value}]}},b.annotationsOptions,b.bindings.arrowInfinityLine.annotationsOptions);return this.chart.addAnnotation(a)}},steps:[g(1)]},horizontalLine:{className:"highcharts-horizontal-line",start:function(a){var c=this.chart.pointer.getCoordinates(a);a=f(c.xAxis);c=f(c.yAxis);if(a&&c){var b=this.chart.options.navigation;a=l({langKey:"horizontalLine",type:"infinityLine",draggable:"y",typeOptions:{type:"horizontalLine",xAxis:a.axis.options.index,
-yAxis:c.axis.options.index,points:[{x:a.value,y:c.value}]}},b.annotationsOptions,b.bindings.horizontalLine.annotationsOptions);this.chart.addAnnotation(a)}}},verticalLine:{className:"highcharts-vertical-line",start:function(a){var c=this.chart.pointer.getCoordinates(a);a=f(c.xAxis);c=f(c.yAxis);if(a&&c){var b=this.chart.options.navigation;a=l({langKey:"verticalLine",type:"infinityLine",draggable:"x",typeOptions:{type:"verticalLine",xAxis:a.axis.options.index,yAxis:c.axis.options.index,points:[{x:a.value,
-y:c.value}]}},b.annotationsOptions,b.bindings.verticalLine.annotationsOptions);this.chart.addAnnotation(a)}}},crooked3:{className:"highcharts-crooked3",start:function(a){var c=this.chart.pointer.getCoordinates(a);a=f(c.xAxis);c=f(c.yAxis);if(a&&c){var b=a.value,d=c.value,g=this.chart.options.navigation;a=l({langKey:"crooked3",type:"crookedLine",typeOptions:{xAxis:a.axis.options.index,yAxis:c.axis.options.index,points:[{x:b,y:d},{x:b,y:d},{x:b,y:d}]}},g.annotationsOptions,g.bindings.crooked3.annotationsOptions);
-return this.chart.addAnnotation(a)}},steps:[g(1),g(2)]},crooked5:{className:"highcharts-crooked5",start:function(a){var c=this.chart.pointer.getCoordinates(a);a=f(c.xAxis);c=f(c.yAxis);if(a&&c){var b=a.value,d=c.value,g=this.chart.options.navigation;a=l({langKey:"crooked5",type:"crookedLine",typeOptions:{xAxis:a.axis.options.index,yAxis:c.axis.options.index,points:[{x:b,y:d},{x:b,y:d},{x:b,y:d},{x:b,y:d},{x:b,y:d}]}},g.annotationsOptions,g.bindings.crooked5.annotationsOptions);return this.chart.addAnnotation(a)}},
-steps:[g(1),g(2),g(3),g(4)]},elliott3:{className:"highcharts-elliott3",start:function(a){var c=this.chart.pointer.getCoordinates(a);a=f(c.xAxis);c=f(c.yAxis);if(a&&c){var b=a.value,d=c.value,g=this.chart.options.navigation;a=l({langKey:"elliott3",type:"elliottWave",typeOptions:{xAxis:a.axis.options.index,yAxis:c.axis.options.index,points:[{x:b,y:d},{x:b,y:d},{x:b,y:d},{x:b,y:d}]},labelOptions:{style:{color:"#666666"}}},g.annotationsOptions,g.bindings.elliott3.annotationsOptions);return this.chart.addAnnotation(a)}},
-steps:[g(1),g(2),g(3)]},elliott5:{className:"highcharts-elliott5",start:function(a){var c=this.chart.pointer.getCoordinates(a);a=f(c.xAxis);c=f(c.yAxis);if(a&&c){var b=a.value,d=c.value,g=this.chart.options.navigation;a=l({langKey:"elliott5",type:"elliottWave",typeOptions:{xAxis:a.axis.options.index,yAxis:c.axis.options.index,points:[{x:b,y:d},{x:b,y:d},{x:b,y:d},{x:b,y:d},{x:b,y:d},{x:b,y:d}]},labelOptions:{style:{color:"#666666"}}},g.annotationsOptions,g.bindings.elliott5.annotationsOptions);return this.chart.addAnnotation(a)}},
-steps:[g(1),g(2),g(3),g(4),g(5)]},measureX:{className:"highcharts-measure-x",start:function(a){var c=this.chart.pointer.getCoordinates(a);a=f(c.xAxis);c=f(c.yAxis);if(a&&c){var b=this.chart.options.navigation;a=l({langKey:"measure",type:"measure",typeOptions:{selectType:"x",xAxis:a.axis.options.index,yAxis:c.axis.options.index,point:{x:a.value,y:c.value},crosshairX:{strokeWidth:1,stroke:"#000000"},crosshairY:{enabled:!1,strokeWidth:0,stroke:"#000000"},background:{width:0,height:0,strokeWidth:0,stroke:"#ffffff"}},
-labelOptions:{style:{color:"#666666"}}},b.annotationsOptions,b.bindings.measureX.annotationsOptions);return this.chart.addAnnotation(a)}},steps:[m]},measureY:{className:"highcharts-measure-y",start:function(a){var c=this.chart.pointer.getCoordinates(a);a=f(c.xAxis);c=f(c.yAxis);if(a&&c){var b=this.chart.options.navigation;a=l({langKey:"measure",type:"measure",typeOptions:{selectType:"y",xAxis:a.axis.options.index,yAxis:c.axis.options.index,point:{x:a.value,y:c.value},crosshairX:{enabled:!1,strokeWidth:0,
-stroke:"#000000"},crosshairY:{strokeWidth:1,stroke:"#000000"},background:{width:0,height:0,strokeWidth:0,stroke:"#ffffff"}},labelOptions:{style:{color:"#666666"}}},b.annotationsOptions,b.bindings.measureY.annotationsOptions);return this.chart.addAnnotation(a)}},steps:[m]},measureXY:{className:"highcharts-measure-xy",start:function(a){var c=this.chart.pointer.getCoordinates(a);a=f(c.xAxis);c=f(c.yAxis);if(a&&c){var b=this.chart.options.navigation;a=l({langKey:"measure",type:"measure",typeOptions:{selectType:"xy",
-xAxis:a.axis.options.index,yAxis:c.axis.options.index,point:{x:a.value,y:c.value},background:{width:0,height:0,strokeWidth:10},crosshairX:{strokeWidth:1,stroke:"#000000"},crosshairY:{strokeWidth:1,stroke:"#000000"}},labelOptions:{style:{color:"#666666"}}},b.annotationsOptions,b.bindings.measureXY.annotationsOptions);return this.chart.addAnnotation(a)}},steps:[m]},fibonacci:{className:"highcharts-fibonacci",start:function(a){var c=this.chart.pointer.getCoordinates(a);a=f(c.xAxis);c=f(c.yAxis);if(a&&
-c){var b=a.value,d=c.value,g=this.chart.options.navigation;a=l({langKey:"fibonacci",type:"fibonacci",typeOptions:{xAxis:a.axis.options.index,yAxis:c.axis.options.index,points:[{x:b,y:d},{x:b,y:d}]},labelOptions:{style:{color:"#666666"}}},g.annotationsOptions,g.bindings.fibonacci.annotationsOptions);return this.chart.addAnnotation(a)}},steps:[g(1),x]},parallelChannel:{className:"highcharts-parallel-channel",start:function(a){var c=this.chart.pointer.getCoordinates(a);a=f(c.xAxis);c=f(c.yAxis);if(a&&
-c){var b=a.value,d=c.value,g=this.chart.options.navigation;a=l({langKey:"parallelChannel",type:"tunnel",typeOptions:{xAxis:a.axis.options.index,yAxis:c.axis.options.index,points:[{x:b,y:d},{x:b,y:d}]}},g.annotationsOptions,g.bindings.parallelChannel.annotationsOptions);return this.chart.addAnnotation(a)}},steps:[g(1),x]},pitchfork:{className:"highcharts-pitchfork",start:function(a){var c=this.chart.pointer.getCoordinates(a);a=f(c.xAxis);c=f(c.yAxis);if(a&&c){var b=a.value,d=c.value,g=this.chart.options.navigation;
-a=l({langKey:"pitchfork",type:"pitchfork",typeOptions:{xAxis:a.axis.options.index,yAxis:c.axis.options.index,points:[{x:a.value,y:c.value,controlPoint:{style:{fill:"#f21313"}}},{x:b,y:d},{x:b,y:d}],innerBackground:{fill:"rgba(100, 170, 255, 0.8)"}},shapeOptions:{strokeWidth:2}},g.annotationsOptions,g.bindings.pitchfork.annotationsOptions);return this.chart.addAnnotation(a)}},steps:[g(1),g(2)]},verticalCounter:{className:"highcharts-vertical-counter",start:function(a){if(a=h(a,this.chart)){this.verticalCounter=
-this.verticalCounter||0;var c=this.chart.options.navigation;a=l({langKey:"verticalCounter",type:"verticalLine",typeOptions:{point:{x:a.x,y:a.y,xAxis:a.xAxis,yAxis:a.yAxis},label:{offset:a.below?40:-40,text:this.verticalCounter.toString()}},labelOptions:{style:{color:"#666666",fontSize:"11px"}},shapeOptions:{stroke:"rgba(0, 0, 0, 0.75)",strokeWidth:1}},c.annotationsOptions,c.bindings.verticalCounter.annotationsOptions);a=this.chart.addAnnotation(a);this.verticalCounter++;a.options.events.click.call(a,
-{})}}},timeCycles:{className:"highcharts-time-cycles",start:function(a){if(a=h(a,this.chart)){var c=this.chart.options.navigation;a=l({langKey:"timeCycles",type:"timeCycles",typeOptions:{xAxis:a.xAxis,yAxis:a.yAxis,points:[{x:a.x},{x:a.x}],line:{stroke:"rgba(0, 0, 0, 0.75)",fill:"transparent",strokeWidth:2}}},c.annotationsOptions,c.bindings.timeCycles.annotationsOptions);a=this.chart.addAnnotation(a);a.options.events.click.call(a,{});return a}},steps:[g(1)]},verticalLabel:{className:"highcharts-vertical-label",
-start:function(a){if(a=h(a,this.chart)){var c=this.chart.options.navigation;a=l({langKey:"verticalLabel",type:"verticalLine",typeOptions:{point:{x:a.x,y:a.y,xAxis:a.xAxis,yAxis:a.yAxis},label:{offset:a.below?40:-40}},labelOptions:{style:{color:"#666666",fontSize:"11px"}},shapeOptions:{stroke:"rgba(0, 0, 0, 0.75)",strokeWidth:1}},c.annotationsOptions,c.bindings.verticalLabel.annotationsOptions);a=this.chart.addAnnotation(a);a.options.events.click.call(a,{})}}},verticalArrow:{className:"highcharts-vertical-arrow",
-start:function(a){if(a=h(a,this.chart)){var c=this.chart.options.navigation;a=l({langKey:"verticalArrow",type:"verticalLine",typeOptions:{point:{x:a.x,y:a.y,xAxis:a.xAxis,yAxis:a.yAxis},label:{offset:a.below?40:-40,format:" "},connector:{fill:"none",stroke:a.below?"#f21313":"#06b535"}},shapeOptions:{stroke:"rgba(0, 0, 0, 0.75)",strokeWidth:1}},c.annotationsOptions,c.bindings.verticalArrow.annotationsOptions);a=this.chart.addAnnotation(a);a.options.events.click.call(a,{})}}},fibonacciTimeZones:{className:"highcharts-fibonacci-time-zones",
-start:function(a){var c=this.chart.pointer.getCoordinates(a);a=f(c.xAxis);c=f(c.yAxis);if(a&&c){var b=this.chart.options.navigation;a=l({type:"fibonacciTimeZones",langKey:"fibonacciTimeZones",typeOptions:{xAxis:a.axis.options.index,yAxis:c.axis.options.index,points:[{x:a.value}]}},b.annotationsOptions,b.bindings.fibonacciTimeZones.annotationsOptions);return this.chart.addAnnotation(a)}},steps:[function(a,c){var b=c.options.typeOptions.points;b=b&&b[0].x;var d=this.chart.pointer.getCoordinates(a);
-a=f(d.xAxis);d=f(d.yAxis);c.update({typeOptions:{xAxis:a.axis.options.index,yAxis:d.axis.options.index,points:[{x:b},{x:a.value}]}})}]},flagCirclepin:{className:"highcharts-flag-circlepin",start:n("circlepin")},flagDiamondpin:{className:"highcharts-flag-diamondpin",start:n("flag")},flagSquarepin:{className:"highcharts-flag-squarepin",start:n("squarepin")},flagSimplepin:{className:"highcharts-flag-simplepin",start:n("nopin")},zoomX:{className:"highcharts-zoom-x",init:function(a){this.chart.update({chart:{zooming:{type:"x"}}});
-p(this,"deselectButton",{button:a})}},zoomY:{className:"highcharts-zoom-y",init:function(a){this.chart.update({chart:{zooming:{type:"y"}}});p(this,"deselectButton",{button:a})}},zoomXY:{className:"highcharts-zoom-xy",init:function(a){this.chart.update({chart:{zooming:{type:"xy"}}});p(this,"deselectButton",{button:a})}},seriesTypeLine:{className:"highcharts-series-type-line",init:function(a){this.chart.series[0].update({type:"line",useOhlcData:!0});p(this,"deselectButton",{button:a})}},seriesTypeOhlc:{className:"highcharts-series-type-ohlc",
-init:function(a){this.chart.series[0].update({type:"ohlc"});p(this,"deselectButton",{button:a})}},seriesTypeCandlestick:{className:"highcharts-series-type-candlestick",init:function(a){this.chart.series[0].update({type:"candlestick"});p(this,"deselectButton",{button:a})}},seriesTypeHeikinAshi:{className:"highcharts-series-type-heikinashi",init:function(a){this.chart.series[0].update({type:"heikinashi"});p(this,"deselectButton",{button:a})}},seriesTypeHLC:{className:"highcharts-series-type-hlc",init:function(a){this.chart.series[0].update({type:"hlc",
-useOhlcData:!0});p(this,"deselectButton",{button:a})}},seriesTypeHollowCandlestick:{className:"highcharts-series-type-hollowcandlestick",init:function(a){this.chart.series[0].update({type:"hollowcandlestick"});p(this,"deselectButton",{button:a})}},fullScreen:{className:"highcharts-full-screen",noDataState:"normal",init:function(a){this.chart.fullscreen&&this.chart.fullscreen.toggle();p(this,"deselectButton",{button:a})}},currentPriceIndicator:{className:"highcharts-current-price-indicator",init:function(a){var b=
-this.chart,d=b.series,g=b.stockTools,f=w(b.series);g&&g.guiEnabled&&(d.forEach(function(a){a.update({lastPrice:{enabled:!f},lastVisiblePrice:{enabled:!f,label:{enabled:!0}}},!1)}),b.redraw());p(this,"deselectButton",{button:a})}},indicators:{className:"highcharts-indicators",init:function(){var a=this;p(a,"showPopup",{formType:"indicators",options:{},onSubmit:function(b){r.call(a,b)}})}},toggleAnnotations:{className:"highcharts-toggle-annotations",init:function(a){var b=this.chart,d=b.stockTools,
-g=d.getIconsURL();this.toggledAnnotations=!this.toggledAnnotations;(b.annotations||[]).forEach(function(a){a.setVisibility(!this.toggledAnnotations)},this);d&&d.guiEnabled&&(a.firstChild.style["background-image"]=this.toggledAnnotations?'url("'+g+'annotations-hidden.svg")':'url("'+g+'annotations-visible.svg")');p(this,"deselectButton",{button:a})}},saveChart:{className:"highcharts-save-chart",noDataState:"normal",init:function(a){var c=this.chart,e=[],g=[],f=[],l=[];c.annotations.forEach(function(a,
-b){e[b]=a.userOptions});c.series.forEach(function(a){a.is("sma")?g.push(a.userOptions):"flags"===a.type&&f.push(a.userOptions)});c.yAxis.forEach(function(a){d(a)&&l.push(a.options)});b.win.localStorage.setItem("highcharts-chart",JSON.stringify({annotations:e,indicators:g,flags:f,yAxes:l}));p(this,"deselectButton",{button:a})}}}});r(b,"Stock/StockTools/StockToolsDefaults.js",[],function(){return{lang:{stockTools:{gui:{simpleShapes:"Simple shapes",lines:"Lines",crookedLines:"Crooked lines",measure:"Measure",
-advanced:"Advanced",toggleAnnotations:"Toggle annotations",verticalLabels:"Vertical labels",flags:"Flags",zoomChange:"Zoom change",typeChange:"Type change",saveChart:"Save chart",indicators:"Indicators",currentPriceIndicator:"Current Price Indicators",zoomX:"Zoom X",zoomY:"Zoom Y",zoomXY:"Zooom XY",fullScreen:"Fullscreen",typeOHLC:"OHLC",typeLine:"Line",typeCandlestick:"Candlestick",typeHLC:"HLC",typeHollowCandlestick:"Hollow Candlestick",typeHeikinAshi:"Heikin Ashi",circle:"Circle",ellipse:"Ellipse",
-label:"Label",rectangle:"Rectangle",flagCirclepin:"Flag circle",flagDiamondpin:"Flag diamond",flagSquarepin:"Flag square",flagSimplepin:"Flag simple",measureXY:"Measure XY",measureX:"Measure X",measureY:"Measure Y",segment:"Segment",arrowSegment:"Arrow segment",ray:"Ray",arrowRay:"Arrow ray",line:"Line",arrowInfinityLine:"Arrow line",horizontalLine:"Horizontal line",verticalLine:"Vertical line",infinityLine:"Infinity line",crooked3:"Crooked 3 line",crooked5:"Crooked 5 line",elliott3:"Elliott 3 line",
-elliott5:"Elliott 5 line",verticalCounter:"Vertical counter",verticalLabel:"Vertical label",verticalArrow:"Vertical arrow",fibonacci:"Fibonacci",fibonacciTimeZones:"Fibonacci Time Zones",pitchfork:"Pitchfork",parallelChannel:"Parallel channel",timeCycles:"Time Cycles"}},navigation:{popup:{circle:"Circle",ellipse:"Ellipse",rectangle:"Rectangle",label:"Label",segment:"Segment",arrowSegment:"Arrow segment",ray:"Ray",arrowRay:"Arrow ray",line:"Line",arrowInfinityLine:"Arrow line",horizontalLine:"Horizontal line",
-verticalLine:"Vertical line",crooked3:"Crooked 3 line",crooked5:"Crooked 5 line",elliott3:"Elliott 3 line",elliott5:"Elliott 5 line",verticalCounter:"Vertical counter",verticalLabel:"Vertical label",verticalArrow:"Vertical arrow",fibonacci:"Fibonacci",fibonacciTimeZones:"Fibonacci Time Zones",pitchfork:"Pitchfork",parallelChannel:"Parallel channel",infinityLine:"Infinity line",measure:"Measure",measureXY:"Measure XY",measureX:"Measure X",measureY:"Measure Y",timeCycles:"Time Cycles",flags:"Flags",
-addButton:"Add",saveButton:"Save",editButton:"Edit",removeButton:"Remove",series:"Series",volume:"Volume",connector:"Connector",innerBackground:"Inner background",outerBackground:"Outer background",crosshairX:"Crosshair X",crosshairY:"Crosshair Y",tunnel:"Tunnel",background:"Background",noFilterMatch:"No match",searchIndicators:"Search Indicators",clearFilter:"\u2715 clear filter",index:"Index",period:"Period",periods:"Periods",standardDeviation:"Standard deviation",periodTenkan:"Tenkan period",periodSenkouSpanB:"Senkou Span B period",
-periodATR:"ATR period",multiplierATR:"ATR multiplier",shortPeriod:"Short period",longPeriod:"Long period",signalPeriod:"Signal period",decimals:"Decimals",algorithm:"Algorithm",topBand:"Top band",bottomBand:"Bottom band",initialAccelerationFactor:"Initial acceleration factor",maxAccelerationFactor:"Max acceleration factor",increment:"Increment",multiplier:"Multiplier",ranges:"Ranges",highIndex:"High index",lowIndex:"Low index",deviation:"Deviation",xAxisUnit:"x-axis unit",factor:"Factor",fastAvgPeriod:"Fast average period",
-slowAvgPeriod:"Slow average period",average:"Average",indicatorAliases:{abands:["Acceleration Bands"],bb:["Bollinger Bands"],dema:["Double Exponential Moving Average"],ema:["Exponential Moving Average"],ikh:["Ichimoku Kinko Hyo"],keltnerchannels:["Keltner Channels"],linearRegression:["Linear Regression"],pivotpoints:["Pivot Points"],pc:["Price Channel"],priceenvelopes:["Price Envelopes"],psar:["Parabolic SAR"],sma:["Simple Moving Average"],supertrend:["Super Trend"],tema:["Triple Exponential Moving Average"],
-vbp:["Volume by Price"],vwap:["Volume Weighted Moving Average"],wma:["Weighted Moving Average"],zigzag:["Zig Zag"],apo:["Absolute price indicator"],ad:["Accumulation/Distribution"],aroon:["Aroon"],aroonoscillator:["Aroon oscillator"],atr:["Average True Range"],ao:["Awesome oscillator"],cci:["Commodity Channel Index"],chaikin:["Chaikin"],cmf:["Chaikin Money Flow"],cmo:["Chande Momentum Oscillator"],disparityindex:["Disparity Index"],dmi:["Directional Movement Index"],dpo:["Detrended price oscillator"],
-klinger:["Klinger Oscillator"],linearRegressionAngle:["Linear Regression Angle"],linearRegressionIntercept:["Linear Regression Intercept"],linearRegressionSlope:["Linear Regression Slope"],macd:["Moving Average Convergence Divergence"],mfi:["Money Flow Index"],momentum:["Momentum"],natr:["Normalized Average True Range"],obv:["On-Balance Volume"],ppo:["Percentage Price oscillator"],roc:["Rate of Change"],rsi:["Relative Strength Index"],slowstochastic:["Slow Stochastic"],stochastic:["Stochastic"],trix:["TRIX"],
-williamsr:["Williams %R"]}}}},stockTools:{gui:{enabled:!0,className:"highcharts-bindings-wrapper",toolbarClassName:"stocktools-toolbar",buttons:"indicators separator simpleShapes lines crookedLines measure advanced toggleAnnotations separator verticalLabels flags separator zoomChange fullScreen typeChange separator currentPriceIndicator saveChart".split(" "),definitions:{separator:{symbol:"separator.svg"},simpleShapes:{items:["label","circle","ellipse","rectangle"],circle:{symbol:"circle.svg"},ellipse:{symbol:"ellipse.svg"},
-rectangle:{symbol:"rectangle.svg"},label:{symbol:"label.svg"}},flags:{items:["flagCirclepin","flagDiamondpin","flagSquarepin","flagSimplepin"],flagSimplepin:{symbol:"flag-basic.svg"},flagDiamondpin:{symbol:"flag-diamond.svg"},flagSquarepin:{symbol:"flag-trapeze.svg"},flagCirclepin:{symbol:"flag-elipse.svg"}},lines:{items:"segment arrowSegment ray arrowRay line arrowInfinityLine horizontalLine verticalLine".split(" "),segment:{symbol:"segment.svg"},arrowSegment:{symbol:"arrow-segment.svg"},ray:{symbol:"ray.svg"},
-arrowRay:{symbol:"arrow-ray.svg"},line:{symbol:"line.svg"},arrowInfinityLine:{symbol:"arrow-line.svg"},verticalLine:{symbol:"vertical-line.svg"},horizontalLine:{symbol:"horizontal-line.svg"}},crookedLines:{items:["elliott3","elliott5","crooked3","crooked5"],crooked3:{symbol:"crooked-3.svg"},crooked5:{symbol:"crooked-5.svg"},elliott3:{symbol:"elliott-3.svg"},elliott5:{symbol:"elliott-5.svg"}},verticalLabels:{items:["verticalCounter","verticalLabel","verticalArrow"],verticalCounter:{symbol:"vertical-counter.svg"},
-verticalLabel:{symbol:"vertical-label.svg"},verticalArrow:{symbol:"vertical-arrow.svg"}},advanced:{items:["fibonacci","fibonacciTimeZones","pitchfork","parallelChannel","timeCycles"],pitchfork:{symbol:"pitchfork.svg"},fibonacci:{symbol:"fibonacci.svg"},fibonacciTimeZones:{symbol:"fibonacci-timezone.svg"},parallelChannel:{symbol:"parallel-channel.svg"},timeCycles:{symbol:"time-cycles.svg"}},measure:{items:["measureXY","measureX","measureY"],measureX:{symbol:"measure-x.svg"},measureY:{symbol:"measure-y.svg"},
-measureXY:{symbol:"measure-xy.svg"}},toggleAnnotations:{symbol:"annotations-visible.svg"},currentPriceIndicator:{symbol:"current-price-show.svg"},indicators:{symbol:"indicators.svg"},zoomChange:{items:["zoomX","zoomY","zoomXY"],zoomX:{symbol:"zoom-x.svg"},zoomY:{symbol:"zoom-y.svg"},zoomXY:{symbol:"zoom-xy.svg"}},typeChange:{items:"typeOHLC typeLine typeCandlestick typeHollowCandlestick typeHLC typeHeikinAshi".split(" "),typeOHLC:{symbol:"series-ohlc.svg"},typeLine:{symbol:"series-line.svg"},typeCandlestick:{symbol:"series-candlestick.svg"},
-typeHLC:{symbol:"series-hlc.svg"},typeHeikinAshi:{symbol:"series-heikin-ashi.svg"},typeHollowCandlestick:{symbol:"series-hollow-candlestick.svg"}},fullScreen:{symbol:"fullscreen.svg"},saveChart:{symbol:"save-chart.svg"}}}}}});r(b,"Stock/StockTools/StockTools.js",[b["Core/Defaults.js"],b["Extensions/Annotations/NavigationBindingsUtilities.js"],b["Stock/StockTools/StockToolsBindings.js"],b["Stock/StockTools/StockToolsDefaults.js"],b["Stock/StockTools/StockToolsUtilities.js"],b["Core/Utilities.js"]],
-function(b,n,m,q,f,h){function d(a,b,d,g){function k(a){return e(a)&&!v(a)&&a.match("%")}var f=0,l;if(g){var h=c(parseFloat(g.top)/100);var u=c(parseFloat(g.height)/100)}return{positions:a.map(function(g,e){var p=c(k(g.options.height)?parseFloat(g.options.height)/100:g.height/b);g=c(k(g.options.top)?parseFloat(g.options.top)/100:(g.top-g.chart.plotTop)/b);u?(g>h&&(g-=u),f=Math.max(f,(g||0)+(p||0))):(v(p)||(p=a[e-1].series.every(function(a){return a.is("sma")})?l:d/100),v(g)||(g=f),l=p,f=c(Math.max(f,
-(g||0)+(p||0))));return{height:100*p,top:100*g}}),allAxesHeight:f}}function w(a){var b=[];a.forEach(function(c,d){c=a[d+1];b[d]=c?{enabled:!0,controlledAxis:{next:[t(c.options.id,c.options.index)]}}:{enabled:!1}});return b}function r(a,b,d,g){a.forEach(function(e,k){k=a[k-1];e.top=k?c(k.height+k.top):0;d&&(e.height=c(e.height+g*b))});return a}function x(a){var b=this.chart,d=b.yAxis.filter(l);b=this.getYAxisPositions(d,b.plotHeight,20,a);var g=b.positions,e=b.allAxesHeight,k=this.getYAxisResizers(d);
-!a&&e<=c(1)?g[g.length-1]={height:20,top:c(100*e-20)}:g.forEach(function(a){a.height=a.height/(100*e)*100;a.top=a.top/(100*e)*100});g.forEach(function(a,b){d[b].update({height:a.height+"%",top:a.top+"%",resize:k[b],offset:0},!1)})}var g=b.setOptions,p=n.getAssignedAxis,l=f.isNotNavigatorYAxis,a=f.isPriceIndicatorEnabled,c=h.correctFloat,e=h.defined,v=h.isNumber,t=h.pick,y=[];return{compose:function(b){-1===y.indexOf(b)&&(y.push(b),b=b.prototype,b.getYAxisPositions=d,b.getYAxisResizers=w,b.recalculateYAxisPositions=
-r,b.resizeYAxes=x,b.utils={indicatorsWithAxes:f.indicatorsWithAxes,indicatorsWithVolume:f.indicatorsWithVolume,getAssignedAxis:p,isPriceIndicatorEnabled:a,manageIndicators:f.manageIndicators});-1===y.indexOf(g)&&(y.push(g),g(q),g({navigation:{bindings:m}}))}}});r(b,"Stock/StockTools/StockToolbar.js",[b["Core/Utilities.js"]],function(b){var n=b.addEvent,m=b.createElement,q=b.css,f=b.fireEvent,h=b.getStyle,d=b.isArray,r=b.merge,w=b.pick;b=function(){function b(b,d,l){this.wrapper=this.toolbar=this.submenu=
-this.showhideBtn=this.listWrapper=this.arrowWrapper=this.arrowUp=this.arrowDown=void 0;this.chart=l;this.options=b;this.lang=d;this.iconsURL=this.getIconsURL();this.guiEnabled=b.enabled;this.visible=w(b.visible,!0);this.placed=w(b.placed,!1);this.eventsToUnbind=[];this.guiEnabled&&(this.createHTML(),this.init(),this.showHideNavigatorion());f(this,"afterInit")}b.prototype.init=function(){var b=this,f=this.lang,l=this.options,a=this.toolbar,c=l.definitions,e=a.childNodes;l.buttons.forEach(function(g){var l=
-b.addButton(a,c,g,f);b.eventsToUnbind.push(n(l.buttonWrapper,"click",function(){return b.eraseActiveButtons(e,l.buttonWrapper)}));d(c[g].items)&&b.addSubmenu(l,c[g])})};b.prototype.addSubmenu=function(b,d){var g=this,a=b.submenuArrow,c=b.buttonWrapper,e=h(c,"width"),f=this.wrapper,p=this.listWrapper,r=this.toolbar.childNodes,k=this.submenu=m("ul",{className:"highcharts-submenu-wrapper"},void 0,c);this.addSubmenuItems(c,d);this.eventsToUnbind.push(n(a,"click",function(a){a.stopPropagation();g.eraseActiveButtons(r,
-c);0<=c.className.indexOf("highcharts-current")?(p.style.width=p.startWidth+"px",c.classList.remove("highcharts-current"),k.style.display="none"):(k.style.display="block",a=k.offsetHeight-c.offsetHeight-3,k.offsetHeight+c.offsetTop>f.offsetHeight&&c.offsetTop>a||(a=0),q(k,{top:-a+"px",left:e+3+"px"}),c.className+=" highcharts-current",p.startWidth=f.offsetWidth,p.style.width=p.startWidth+h(p,"padding-left")+k.offsetWidth+3+"px")}))};b.prototype.addSubmenuItems=function(b,d){var g=this,a=this,c=this.submenu,
-e=this.lang,f=this.listWrapper,h;d.items.forEach(function(k){h=g.addButton(c,d,k,e);g.eventsToUnbind.push(n(h.mainButton,"click",function(){a.switchSymbol(this,b,!0);f.style.width=f.startWidth+"px";c.style.display="none"}))});var p=c.querySelectorAll("li > .highcharts-menu-item-btn")[0];this.switchSymbol(p,!1)};b.prototype.eraseActiveButtons=function(b,d,f){[].forEach.call(b,function(a){a!==d&&(a.classList.remove("highcharts-current"),a.classList.remove("highcharts-active"),f=a.querySelectorAll(".highcharts-submenu-wrapper"),
-0<f.length&&(f[0].style.display="none"))})};b.prototype.addButton=function(d,f,l,a){void 0===a&&(a={});f=f[l];var c=f.items,e=f.className||"";d=m("li",{className:w(b.prototype.classMapping[l],"")+" "+e,title:a[l]||l},void 0,d);l=m("span",{className:"highcharts-menu-item-btn"},void 0,d);if(c&&c.length)return f=m("span",{className:"highcharts-submenu-item-arrow highcharts-arrow-right"},void 0,d),f.style.backgroundImage="url("+this.iconsURL+"arrow-bottom.svg)",{buttonWrapper:d,mainButton:l,submenuArrow:f};
-l.style.backgroundImage="url("+this.iconsURL+f.symbol+")";return{buttonWrapper:d,mainButton:l}};b.prototype.addNavigation=function(){var b=this.wrapper;this.arrowWrapper=m("div",{className:"highcharts-arrow-wrapper"});this.arrowUp=m("div",{className:"highcharts-arrow-up"},void 0,this.arrowWrapper);this.arrowUp.style.backgroundImage="url("+this.iconsURL+"arrow-right.svg)";this.arrowDown=m("div",{className:"highcharts-arrow-down"},void 0,this.arrowWrapper);this.arrowDown.style.backgroundImage="url("+
-this.iconsURL+"arrow-right.svg)";b.insertBefore(this.arrowWrapper,b.childNodes[0]);this.scrollButtons()};b.prototype.scrollButtons=function(){var b=this.wrapper,d=this.toolbar,f=.1*b.offsetHeight,a=0;this.eventsToUnbind.push(n(this.arrowUp,"click",function(){0<a&&(a-=f,d.style.marginTop=-a+"px")}));this.eventsToUnbind.push(n(this.arrowDown,"click",function(){b.offsetHeight+a<=d.offsetHeight+f&&(a+=f,d.style.marginTop=-a+"px")}))};b.prototype.createHTML=function(){var b=this.chart,d=this.options,f=
-b.container,a=b.options.navigation,c=this.wrapper=m("div",{className:"highcharts-stocktools-wrapper "+d.className+" "+(a&&a.bindingsClassName)});f.appendChild(c);["mousedown","mousemove","click","touchstart"].forEach(function(a){n(c,a,function(a){return a.stopPropagation()})});n(c,"mouseover",function(a){return b.pointer.onContainerMouseLeave(a)});this.toolbar=f=m("ul",{className:"highcharts-stocktools-toolbar "+d.toolbarClassName});this.listWrapper=d=m("div",{className:"highcharts-menu-wrapper"});
-c.insertBefore(d,c.childNodes[0]);d.insertBefore(f,d.childNodes[0]);this.showHideToolbar();this.addNavigation()};b.prototype.showHideNavigatorion=function(){this.visible&&this.toolbar.offsetHeight>this.wrapper.offsetHeight-50?this.arrowWrapper.style.display="block":(this.toolbar.style.marginTop="0px",this.arrowWrapper.style.display="none")};b.prototype.showHideToolbar=function(){var b=this.chart,d=this.wrapper,f=this.listWrapper,a=this.submenu,c=this.showhideBtn=m("div",{className:"highcharts-toggle-toolbar highcharts-arrow-left"},
-void 0,d),e=this.visible;c.style.backgroundImage="url("+this.iconsURL+"arrow-right.svg)";e?(d.style.height="100%",c.style.top=h(f,"padding-top")+"px",c.style.left=d.offsetWidth+h(f,"padding-left")+"px"):(a&&(a.style.display="none"),c.style.left="0px",e=this.visible=!1,f.classList.add("highcharts-hide"),c.classList.toggle("highcharts-arrow-right"),d.style.height=c.offsetHeight+"px");this.eventsToUnbind.push(n(c,"click",function(){b.update({stockTools:{gui:{visible:!e,placed:!0}}})}))};b.prototype.switchSymbol=
-function(b,d){var f=b.parentNode,a=f.className;f=f.parentNode.parentNode;-1<a.indexOf("highcharts-disabled-btn")||(f.className="",a&&f.classList.add(a.trim()),f.querySelectorAll(".highcharts-menu-item-btn")[0].style.backgroundImage=b.style.backgroundImage,d&&this.toggleButtonActiveClass(f))};b.prototype.toggleButtonActiveClass=function(b){b=b.classList;b.contains("highcharts-active")?b.remove("highcharts-active"):b.add("highcharts-active")};b.prototype.unselectAllButtons=function(b){var d=b.parentNode.querySelectorAll(".highcharts-active");
-[].forEach.call(d,function(d){d!==b&&d.classList.remove("highcharts-active")})};b.prototype.update=function(b,d){r(!0,this.chart.options.stockTools,b);this.destroy();this.chart.setStockTools(b);this.chart.navigationBindings&&this.chart.navigationBindings.update();this.chart.isDirtyBox=!0;w(d,!0)&&this.chart.redraw()};b.prototype.destroy=function(){var b=this.wrapper,d=b&&b.parentNode;this.eventsToUnbind.forEach(function(b){return b()});d&&d.removeChild(b)};b.prototype.redraw=function(){this.showHideNavigatorion()};
-b.prototype.getIconsURL=function(){return this.chart.options.navigation.iconsURL||this.options.iconsURL||"https://code.highcharts.com/10.3.3/gfx/stock-icons/"};return b}();b.prototype.classMapping={circle:"highcharts-circle-annotation",ellipse:"highcharts-ellipse-annotation",rectangle:"highcharts-rectangle-annotation",label:"highcharts-label-annotation",segment:"highcharts-segment",arrowSegment:"highcharts-arrow-segment",ray:"highcharts-ray",arrowRay:"highcharts-arrow-ray",line:"highcharts-infinity-line",
-arrowInfinityLine:"highcharts-arrow-infinity-line",verticalLine:"highcharts-vertical-line",horizontalLine:"highcharts-horizontal-line",crooked3:"highcharts-crooked3",crooked5:"highcharts-crooked5",elliott3:"highcharts-elliott3",elliott5:"highcharts-elliott5",pitchfork:"highcharts-pitchfork",fibonacci:"highcharts-fibonacci",fibonacciTimeZones:"highcharts-fibonacci-time-zones",parallelChannel:"highcharts-parallel-channel",measureX:"highcharts-measure-x",measureY:"highcharts-measure-y",measureXY:"highcharts-measure-xy",
-timeCycles:"highcharts-time-cycles",verticalCounter:"highcharts-vertical-counter",verticalLabel:"highcharts-vertical-label",verticalArrow:"highcharts-vertical-arrow",currentPriceIndicator:"highcharts-current-price-indicator",indicators:"highcharts-indicators",flagCirclepin:"highcharts-flag-circlepin",flagDiamondpin:"highcharts-flag-diamondpin",flagSquarepin:"highcharts-flag-squarepin",flagSimplepin:"highcharts-flag-simplepin",zoomX:"highcharts-zoom-x",zoomY:"highcharts-zoom-y",zoomXY:"highcharts-zoom-xy",
-typeLine:"highcharts-series-type-line",typeOHLC:"highcharts-series-type-ohlc",typeHLC:"highcharts-series-type-hlc",typeCandlestick:"highcharts-series-type-candlestick",typeHollowCandlestick:"highcharts-series-type-hollowcandlestick",typeHeikinAshi:"highcharts-series-type-heikinashi",fullScreen:"highcharts-full-screen",toggleAnnotations:"highcharts-toggle-annotations",saveChart:"highcharts-save-chart",separator:"highcharts-separator"};return b});r(b,"Stock/StockTools/StockToolsGui.js",[b["Core/Defaults.js"],
-b["Stock/StockTools/StockToolsDefaults.js"],b["Stock/StockTools/StockToolbar.js"],b["Core/Utilities.js"]],function(b,n,m,q){function f(a){var b=this.options,c=b.lang;a=v(b.stockTools&&b.stockTools.gui,a&&a.gui);this.stockTools=new m(a,c&&c.stockTools&&c.stockTools.gui,this);this.stockTools.guiEnabled&&(this.isDirtyBox=!0)}function h(){this.setStockTools()}function d(){if(this.stockTools){var a=this.options.chart,b=this.stockTools.listWrapper;b=b&&(b.startWidth+e(b,"padding-left")+e(b,"padding-right")||
-b.offsetWidth);var c=!1;b&&b<this.plotWidth?(a=t(a.spacingLeft,a.spacing&&a.spacing[3],0)+b,c=a-this.spacingBox.x,this.spacingBox.x=a,this.spacingBox.width-=c,c=!0):0===b&&(c=!0);b!==this.stockTools.prevOffsetWidth&&(this.stockTools.prevOffsetWidth=b,c&&(this.isDirtyLegend=!0))}}function r(){this.stockTools&&this.stockTools.destroy()}function w(){var a=this.stockTools&&this.stockTools.listWrapper;(a=a&&(a.startWidth+e(a,"padding-left")+e(a,"padding-right")||a.offsetWidth))&&a<this.plotWidth&&(this.plotLeft+=
-a,this.spacing[3]+=a)}function x(){this.stockTools&&this.stockTools.guiEnabled&&this.stockTools.redraw()}function g(){var a=this.stockTools,b=a&&a.toolbar&&a.toolbar.querySelector(".highcharts-current-price-indicator");a&&this.navigationBindings&&this.options.series&&b&&(this.navigationBindings.constructor.prototype.utils.isPriceIndicatorEnabled(this.series)?b.firstChild.style["background-image"]='url("'+a.getIconsURL()+'current-price-hide.svg")':b.firstChild.style["background-image"]='url("'+a.getIconsURL()+
-'current-price-show.svg")')}function p(a){var b=this.chart.stockTools;b&&b.guiEnabled&&(a=a.button,0<=a.parentNode.className.indexOf("highcharts-submenu-wrapper")&&(a=a.parentNode.parentNode),b.toggleButtonActiveClass(a))}function l(a){var b=this.chart.stockTools;if(b&&b.guiEnabled){var c=a.button;b.unselectAllButtons(a.button);0<=c.parentNode.className.indexOf("highcharts-submenu-wrapper")&&(c=c.parentNode.parentNode);b.toggleButtonActiveClass(c)}}var a=b.setOptions,c=q.addEvent,e=q.getStyle,v=q.merge,
-t=q.pick,y=[];return{compose:function(b,e){-1===y.indexOf(b)&&(y.push(b),c(b,"afterGetContainer",h),c(b,"beforeRedraw",d),c(b,"beforeRender",d),c(b,"destroy",r),c(b,"getMargins",w,{order:0}),c(b,"redraw",x),c(b,"render",g),b.prototype.setStockTools=f);-1===y.indexOf(e)&&(y.push(e),c(e,"deselectButton",p),c(e,"selectButton",l));-1===y.indexOf(a)&&(y.push(a),a(n))}}});r(b,"masters/modules/stock-tools.src.js",[b["Core/Globals.js"],b["Extensions/Annotations/NavigationBindings.js"],b["Stock/StockTools/StockTools.js"],
-b["Stock/StockTools/StockToolsGui.js"],b["Stock/StockTools/StockToolbar.js"]],function(b,n,m,q,f){b.Toolbar=f;m.compose(n);q.compose(b.Chart,n)})});
-//# sourceMappingURL=stock-tools.js.map

+ 0 - 221
nicegui/elements/lib/highcharts_modules/stock.js

@@ -1,221 +0,0 @@
-/*
- Highstock JS v10.3.3 (2023-01-20)
-
- Highcharts Stock as a plugin for Highcharts
-
- (c) 2010-2021 Torstein Honsi
-
- License: www.highcharts.com/license
-*/
-(function(a){"object"===typeof module&&module.exports?(a["default"]=a,module.exports=a):"function"===typeof define&&define.amd?define("highcharts/modules/stock",["highcharts"],function(C){a(C);a.Highcharts=C;return a}):a("undefined"!==typeof Highcharts?Highcharts:void 0)})(function(a){function C(a,q,z,v){a.hasOwnProperty(q)||(a[q]=v.apply(null,z),"function"===typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:q,module:a[q]}})))}a=a?a._modules:{};C(a,"Core/Axis/BrokenAxis.js",
-[a["Core/Axis/Stacking/StackItem.js"],a["Core/Utilities.js"]],function(a,q){var E=q.addEvent,v=q.find,t=q.fireEvent,B=q.isArray,w=q.isNumber,y=q.pick,r;(function(m){function e(){"undefined"!==typeof this.brokenAxis&&this.brokenAxis.setBreaks(this.options.breaks,!1)}function r(){this.brokenAxis&&this.brokenAxis.hasBreaks&&(this.options.ordinal=!1)}function p(){var f=this.brokenAxis;if(f&&f.hasBreaks){for(var c=this.tickPositions,u=this.tickPositions.info,l=[],d=0;d<c.length;d++)f.isInAnyBreak(c[d])||
-l.push(c[d]);this.tickPositions=l;this.tickPositions.info=u}}function c(){this.brokenAxis||(this.brokenAxis=new F(this))}function J(){var f=this.options.connectNulls,c=this.points,u=this.xAxis,l=this.yAxis;if(this.isDirty)for(var d=c.length;d--;){var h=c[d],b=!(null===h.y&&!1===f)&&(u&&u.brokenAxis&&u.brokenAxis.isInAnyBreak(h.x,!0)||l&&l.brokenAxis&&l.brokenAxis.isInAnyBreak(h.y,!0));h.visible=b?!1:!1!==h.options.visible}}function f(){this.drawBreaks(this.xAxis,["x"]);this.drawBreaks(this.yAxis,
-y(this.pointArrayMap,["y"]))}function D(f,c){var u=this,l=u.points,d,h,b,n;if(f&&f.brokenAxis&&f.brokenAxis.hasBreaks){var k=f.brokenAxis;c.forEach(function(A){d=k&&k.breakArray||[];h=f.isXAxis?f.min:y(u.options.threshold,f.min);l.forEach(function(k){n=y(k["stack"+A.toUpperCase()],k[A]);d.forEach(function(d){if(w(h)&&w(n)){b=!1;if(h<d.from&&n>d.to||h>d.from&&n<d.from)b="pointBreak";else if(h<d.from&&n>d.from&&n<d.to||h>d.from&&n>d.to&&n<d.from)b="pointInBreak";b&&t(f,b,{point:k,brk:d})}})})})}}function L(){var f=
-this.currentDataGrouping,c=f&&f.gapSize;f=this.points.slice();var u=this.yAxis,l=this.options.gapSize,d=f.length-1,h;if(l&&0<d)for("value"!==this.options.gapUnit&&(l*=this.basePointRange),c&&c>l&&c>=this.basePointRange&&(l=c),h=void 0;d--;)h&&!1!==h.visible||(h=f[d+1]),c=f[d],!1!==h.visible&&!1!==c.visible&&(h.x-c.x>l&&(h=(c.x+h.x)/2,f.splice(d+1,0,{isNull:!0,x:h}),u.stacking&&this.options.stacking&&(h=u.stacking.stacks[this.stackKey][h]=new a(u,u.options.stackLabels,!1,h,this.stack),h.total=0)),
-h=c);return this.getGraphPath(f)}var q=[];m.compose=function(a,m){-1===q.indexOf(a)&&(q.push(a),a.keepProps.push("brokenAxis"),E(a,"init",c),E(a,"afterInit",e),E(a,"afterSetTickPositions",p),E(a,"afterSetOptions",r));if(-1===q.indexOf(m)){q.push(m);var u=m.prototype;u.drawBreaks=D;u.gappedPath=L;E(m,"afterGeneratePoints",J);E(m,"afterRender",f)}return a};var F=function(){function f(f){this.hasBreaks=!1;this.axis=f}f.isInBreak=function(f,c){var l=f.repeat||Infinity,d=f.from,h=f.to-f.from;c=c>=d?(c-
-d)%l:l-(d-c)%l;return f.inclusive?c<=h:c<h&&0!==c};f.lin2Val=function(c){var u=this.brokenAxis;u=u&&u.breakArray;if(!u||!w(c))return c;var l;for(l=0;l<u.length;l++){var d=u[l];if(d.from>=c)break;else d.to<c?c+=d.len:f.isInBreak(d,c)&&(c+=d.len)}return c};f.val2Lin=function(c){var u=this.brokenAxis;u=u&&u.breakArray;if(!u||!w(c))return c;var l=c,d;for(d=0;d<u.length;d++){var h=u[d];if(h.to<=c)l-=h.len;else if(h.from>=c)break;else if(f.isInBreak(h,c)){l-=c-h.from;break}}return l};f.prototype.findBreakAt=
-function(f,c){return v(c,function(l){return l.from<f&&f<l.to})};f.prototype.isInAnyBreak=function(c,u){var l=this.axis,d=l.options.breaks||[],h=d.length,b;if(h&&w(c)){for(;h--;)if(f.isInBreak(d[h],c)){var n=!0;b||(b=y(d[h].showPoints,!l.isXAxis))}var k=n&&u?n&&!b:n}return k};f.prototype.setBreaks=function(c,u){var l=this,d=l.axis,h=B(c)&&!!c.length;d.isDirty=l.hasBreaks!==h;l.hasBreaks=h;d.options.breaks=d.userOptions.breaks=c;d.forceRedraw=!0;d.series.forEach(function(b){b.isDirty=!0});h||d.val2lin!==
-f.val2Lin||(delete d.val2lin,delete d.lin2val);h&&(d.userOptions.ordinal=!1,d.lin2val=f.lin2Val,d.val2lin=f.val2Lin,d.setExtremes=function(b,n,k,A,h){if(l.hasBreaks){for(var M=this.options.breaks||[],f;f=l.findBreakAt(b,M);)b=f.to;for(;f=l.findBreakAt(n,M);)n=f.from;n<b&&(n=b)}d.constructor.prototype.setExtremes.call(this,b,n,k,A,h)},d.setAxisTranslation=function(){d.constructor.prototype.setAxisTranslation.call(this);l.unitLength=void 0;if(l.hasBreaks){var b=d.options.breaks||[],n=[],k=[],A=y(d.pointRangePadding,
-0),h=0,c,K=d.userMin||d.min,H=d.userMax||d.max,u;b.forEach(function(b){c=b.repeat||Infinity;w(K)&&w(H)&&(f.isInBreak(b,K)&&(K+=b.to%c-K%c),f.isInBreak(b,H)&&(H-=H%c-b.from%c))});b.forEach(function(b){I=b.from;c=b.repeat||Infinity;if(w(K)&&w(H)){for(;I-c>K;)I-=c;for(;I<K;)I+=c;for(u=I;u<H;u+=c)n.push({value:u,move:"in"}),n.push({value:u+b.to-b.from,move:"out",size:b.breakSize})}});n.sort(function(b,n){return b.value===n.value?("in"===b.move?0:1)-("in"===n.move?0:1):b.value-n.value});var a=0;var I=
-K;n.forEach(function(b){a+="in"===b.move?1:-1;1===a&&"in"===b.move&&(I=b.value);0===a&&w(I)&&(k.push({from:I,to:b.value,len:b.value-I-(b.size||0)}),h+=b.value-I-(b.size||0))});l.breakArray=k;w(K)&&w(H)&&w(d.min)&&(l.unitLength=H-K-h+A,t(d,"afterBreaks"),d.staticScale?d.transA=d.staticScale:l.unitLength&&(d.transA*=(H-d.min+A)/l.unitLength),A&&(d.minPixelPadding=d.transA*(d.minPointOffset||0)),d.min=K,d.max=H)}});y(u,!0)&&d.chart.redraw()};return f}();m.Additions=F})(r||(r={}));return r});C(a,"masters/modules/broken-axis.src.js",
-[a["Core/Globals.js"],a["Core/Axis/BrokenAxis.js"]],function(a,q){q.compose(a.Axis,a.Series)});C(a,"Extensions/DataGrouping/ApproximationRegistry.js",[],function(){return{}});C(a,"Extensions/DataGrouping/ApproximationDefaults.js",[a["Extensions/DataGrouping/ApproximationRegistry.js"],a["Core/Utilities.js"]],function(a,q){function E(a){var e=a.length;a=v(a);r(a)&&e&&(a=w(a/e));return a}function v(a){var e=a.length;if(!e&&a.hasNulls)var m=null;else if(e)for(m=0;e--;)m+=a[e];return m}var t=q.arrayMax,
-B=q.arrayMin,w=q.correctFloat,y=q.extend,r=q.isNumber;q={average:E,averages:function(){var a=[];[].forEach.call(arguments,function(e){a.push(E(e))});return"undefined"===typeof a[0]?void 0:a},close:function(a){return a.length?a[a.length-1]:a.hasNulls?null:void 0},high:function(a){return a.length?t(a):a.hasNulls?null:void 0},hlc:function(m,e,g){m=a.high(m);e=a.low(e);g=a.close(g);if(r(m)||r(e)||r(g))return[m,e,g]},low:function(a){return a.length?B(a):a.hasNulls?null:void 0},ohlc:function(m,e,g,p){m=
-a.open(m);e=a.high(e);g=a.low(g);p=a.close(p);if(r(m)||r(e)||r(g)||r(p))return[m,e,g,p]},open:function(a){return a.length?a[0]:a.hasNulls?null:void 0},range:function(m,e){m=a.low(m);e=a.high(e);if(r(m)||r(e))return[m,e];if(null===m&&null===e)return null},sum:v};y(a,q);return q});C(a,"Extensions/DataGrouping/DataGroupingDefaults.js",[],function(){return{common:{groupPixelWidth:2,dateTimeLabelFormats:{millisecond:["%A, %b %e, %H:%M:%S.%L","%A, %b %e, %H:%M:%S.%L","-%H:%M:%S.%L"],second:["%A, %b %e, %H:%M:%S",
-"%A, %b %e, %H:%M:%S","-%H:%M:%S"],minute:["%A, %b %e, %H:%M","%A, %b %e, %H:%M","-%H:%M"],hour:["%A, %b %e, %H:%M","%A, %b %e, %H:%M","-%H:%M"],day:["%A, %b %e, %Y","%A, %b %e","-%A, %b %e, %Y"],week:["Week from %A, %b %e, %Y","%A, %b %e","-%A, %b %e, %Y"],month:["%B %Y","%B","-%B %Y"],year:["%Y","%Y","-%Y"]}},seriesSpecific:{line:{},spline:{},area:{},areaspline:{},arearange:{},column:{groupPixelWidth:10},columnrange:{groupPixelWidth:10},candlestick:{groupPixelWidth:10},ohlc:{groupPixelWidth:5},
-hlc:{groupPixelWidth:5},heikinashi:{groupPixelWidth:10}},units:[["millisecond",[1,2,5,10,20,25,50,100,200,500]],["second",[1,2,5,10,15,30]],["minute",[1,2,5,10,15,30]],["hour",[1,2,3,4,6,8,12]],["day",[1]],["week",[1]],["month",[1,3,6]],["year",null]]}});C(a,"Extensions/DataGrouping/DataGroupingAxisComposition.js",[a["Extensions/DataGrouping/DataGroupingDefaults.js"],a["Core/Utilities.js"]],function(a,q){function E(a){var c=this,e=c.series;e.forEach(function(f){f.groupPixelWidth=void 0});e.forEach(function(f){f.groupPixelWidth=
-c.getGroupPixelWidth&&c.getGroupPixelWidth();f.groupPixelWidth&&(f.hasProcessed=!0);f.applyGrouping(!!a.hasExtremesChanged)})}function v(){for(var e=this.series,c=e.length,r=0,f=!1,D,g;c--;)if(g=e[c].options.dataGrouping)if(r=Math.max(r,m(g.groupPixelWidth,a.common.groupPixelWidth)),D=(e[c].processedXData||e[c].data).length,e[c].groupPixelWidth||D>this.chart.plotSizeX/r||D&&g.forced)f=!0;return f?r:0}function t(){this.series.forEach(function(a){a.hasProcessed=!1})}function B(a,c){var e;c=m(c,!0);
-a||(a={forced:!1,units:null});if(this instanceof g)for(e=this.series.length;e--;)this.series[e].update({dataGrouping:a},!1);else this.chart.options.series.forEach(function(f){f.dataGrouping="boolean"===typeof a?a:r(a,f.dataGrouping)});this.ordinal&&(this.ordinal.slope=void 0);c&&this.chart.redraw()}var w=q.addEvent,y=q.extend,r=q.merge,m=q.pick,e=[],g;return{compose:function(a){g=a;-1===e.indexOf(a)&&(e.push(a),w(a,"afterSetScale",t),w(a,"postProcessData",E),y(a.prototype,{applyGrouping:E,getGroupPixelWidth:v,
-setDataGrouping:B}))}}});C(a,"Extensions/DataGrouping/DataGroupingSeriesComposition.js",[a["Extensions/DataGrouping/ApproximationRegistry.js"],a["Extensions/DataGrouping/DataGroupingDefaults.js"],a["Core/Axis/DateTimeAxis.js"],a["Core/Defaults.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,q,z,v,t,B){function w(a){var c=this.chart,d=this.options.dataGrouping,h=!1!==this.allowDG&&d&&F(d.enabled,c.options.isStock),b=this.visible||!c.options.chart.ignoreHiddenSeries,n=this.currentDataGrouping,
-k=!1;h&&!this.requireSorting&&(this.requireSorting=k=!0);a=!1===!(this.isCartesian&&!this.isDirty&&!this.xAxis.isDirty&&!this.yAxis.isDirty&&!a)||!h;k&&(this.requireSorting=!1);if(!a){this.destroyGroupedData();var A=d.groupAll?this.xData:this.processedXData,M=d.groupAll?this.yData:this.processedYData;h=c.plotSizeX;a=this.xAxis;var N=a.options.ordinal,K=this.groupPixelWidth;k=void 0;if(K&&A&&A.length&&h){this.isDirty=k=!0;this.points=null;var H=a.getExtremes();var e=H.min;H=H.max;N=N&&a.ordinal&&a.ordinal.getGroupIntervalFactor(e,
-H,this)||1;h=a.getTimeTicks(z.Additions.prototype.normalizeTimeTickInterval(K*(H-e)/h*N,d.units||q.units),Math.min(e,A[0]),Math.max(H,A[A.length-1]),a.options.startOfWeek,A,this.closestPointRange);K=p.groupData.apply(this,[A,M,h,d.approximation]);A=K.groupedXData;M=K.groupedYData;N=0;d&&d.smoothed&&A.length&&(d.firstAnchor="firstPoint",d.anchor="middle",d.lastAnchor="lastPoint",f(32,!1,c,{"dataGrouping.smoothed":"use dataGrouping.anchor"}));c=A;var D=this.options.dataGrouping;e=this.currentDataGrouping&&
-this.currentDataGrouping.gapSize;if(D&&this.xData&&e&&this.groupMap){var I=c.length-1;var r=D.anchor;var u=F(D.firstAnchor,r);D=F(D.lastAnchor,r);if(r&&"start"!==r){var g=e*{middle:.5,end:1}[r];for(r=c.length-1;r--&&0<r;)c[r]+=g}if(u&&"start"!==u&&this.xData[0]>=c[0]){r=this.groupMap[0].start;g=this.groupMap[0].length;var m=void 0;L(r)&&L(g)&&(m=r+(g-1));c[0]={middle:c[0]+.5*e,end:c[0]+e,firstPoint:this.xData[0],lastPoint:m&&this.xData[m]}[u]}D&&"start"!==D&&e&&c[I]>=H-e&&(H=this.groupMap[this.groupMap.length-
-1].start,c[I]={middle:c[I]+.5*e,end:c[I]+e,firstPoint:H&&this.xData[H],lastPoint:this.xData[this.xData.length-1]}[D])}for(H=1;H<h.length;H++)h.info.segmentStarts&&-1!==h.info.segmentStarts.indexOf(H)||(N=Math.max(h[H]-h[H-1],N));H=h.info;H.gapSize=N;this.closestPointRange=h.info.totalRange;this.groupMap=K.groupMap;if(b){b=A;if(J(b[0])&&L(a.min)&&L(a.dataMin)&&b[0]<a.min){if(!J(a.options.min)&&a.min<=a.dataMin||a.min===a.dataMin)a.min=Math.min(b[0],a.min);a.dataMin=Math.min(b[0],a.dataMin)}if(J(b[b.length-
-1])&&L(a.max)&&L(a.dataMax)&&b[b.length-1]>a.max){if(!J(a.options.max)&&L(a.dataMax)&&a.max>=a.dataMax||a.max===a.dataMax)a.max=Math.max(b[b.length-1],a.max);a.dataMax=Math.max(b[b.length-1],a.dataMax)}}d.groupAll&&(this.allGroupedData=M,d=this.cropData(A,M,a.min,a.max,1),A=d.xData,M=d.yData,this.cropStart=d.start);this.processedXData=A;this.processedYData=M}else this.groupMap=null;this.hasGroupedData=k;this.currentDataGrouping=H;this.preventGraphAnimation=(n&&n.totalRange)!==(H&&H.totalRange)}}function y(){this.groupedData&&
-(this.groupedData.forEach(function(a,f){a&&(this.groupedData[f]=a.destroy?a.destroy():null)},this),this.groupedData.length=0)}function r(){x.apply(this);this.destroyGroupedData();this.groupedData=this.hasGroupedData?this.points:null}function m(){return this.is("arearange")?"range":this.is("ohlc")?"ohlc":this.is("hlc")?"hlc":this.is("column")?"sum":"average"}function e(f,c,d,h){var b=this,n=b.data,k=b.options&&b.options.data,A=[],M=[],N=[],K=f.length,H=!!c,l=[],e=b.pointArrayMap,I=e&&e.length,r=["x"].concat(e||
-["y"]),D=this.options.dataGrouping&&this.options.dataGrouping.groupAll,g=0,u=0;h="function"===typeof h?h:h&&a[h]?a[h]:a[b.getDGApproximation&&b.getDGApproximation()||"average"];if(I)for(var m=e.length;m--;)l.push([]);else l.push([]);m=I||1;for(var p=0;p<=K;p++)if(!(f[p]<d[0])){for(;"undefined"!==typeof d[g+1]&&f[p]>=d[g+1]||p===K;){var x=d[g];b.dataGroupInfo={start:D?u:b.cropStart+u,length:l[0].length};var w=h.apply(b,l);b.pointClass&&!J(b.dataGroupInfo.options)&&(b.dataGroupInfo.options=E(b.pointClass.prototype.optionsToObject.call({series:b},
-b.options.data[b.cropStart+u])),r.forEach(function(n){delete b.dataGroupInfo.options[n]}));"undefined"!==typeof w&&(A.push(x),M.push(w),N.push(b.dataGroupInfo));u=p;for(x=0;x<m;x++)l[x].length=0,l[x].hasNulls=!1;g+=1;if(p===K)break}if(p===K)break;if(e){x=b.options.dataGrouping&&b.options.dataGrouping.groupAll?p:b.cropStart+p;w=n&&n[x]||b.pointClass.prototype.applyOptions.apply({series:b},[k[x]]);var q=void 0;for(x=0;x<I;x++)q=w[e[x]],L(q)?l[x].push(q):null===q&&(l[x].hasNulls=!0)}else x=H?c[p]:null,
-L(x)?l[0].push(x):null===x&&(l[0].hasNulls=!0)}return{groupedXData:A,groupedYData:M,groupMap:N}}function g(a){a=a.options;var f=this.type,d=this.chart.options.plotOptions,h=this.useCommonDataGrouping&&q.common,b=q.seriesSpecific,n=v.defaultOptions.plotOptions[f].dataGrouping;if(d&&(b[f]||h)){var k=this.chart.rangeSelector;n||(n=E(q.common,b[f]));a.dataGrouping=E(h,n,d.series&&d.series.dataGrouping,d[f].dataGrouping,this.userOptions.dataGrouping,!a.isInternal&&k&&L(k.selected)&&k.buttonOptions[k.selected].dataGrouping)}}
-var p=t.series.prototype,c=B.addEvent,J=B.defined,f=B.error,D=B.extend,L=B.isNumber,E=B.merge,F=B.pick,x=p.generatePoints,G=[];return{compose:function(a){var l=a.prototype.pointClass;-1===G.indexOf(l)&&(G.push(l),c(l,"update",function(){if(this.dataGroup)return f(24,!1,this.series.chart),!1}));-1===G.indexOf(a)&&(G.push(a),c(a,"afterSetOptions",g),c(a,"destroy",y),D(a.prototype,{applyGrouping:w,destroyGroupedData:y,generatePoints:r,getDGApproximation:m,groupData:e}))},groupData:e}});C(a,"Extensions/DataGrouping/DataGrouping.js",
-[a["Extensions/DataGrouping/DataGroupingAxisComposition.js"],a["Extensions/DataGrouping/DataGroupingDefaults.js"],a["Extensions/DataGrouping/DataGroupingSeriesComposition.js"],a["Core/FormatUtilities.js"],a["Core/Utilities.js"]],function(a,q,z,v,t){function B(a){var e=this.chart,c=e.time,g=a.labelConfig,f=g.series,D=f.tooltipOptions,L=f.options.dataGrouping,v=f.xAxis,F=D.xDateFormat,x=D[a.isFooter?"footerFormat":"headerFormat"];if(v&&"datetime"===v.options.type&&L&&m(g.key)){var t=f.currentDataGrouping;
-L=L.dateTimeLabelFormats||q.common.dateTimeLabelFormats;if(t)if(D=L[t.unitName],1===t.count)F=D[0];else{F=D[1];var u=D[2]}else!F&&L&&v.dateTime&&(F=v.dateTime.getXDateFormat(g.x,D.dateTimeLabelFormats));F=c.dateFormat(F,g.key);u&&(F+=c.dateFormat(u,g.key+t.totalRange-1));f.chart.styledMode&&(x=this.styledModeFormat(x));a.text=w(x,{point:r(g.point,{key:F}),series:f},e);a.preventDefault()}}var w=v.format,y=t.addEvent,r=t.extend,m=t.isNumber,e=[];v={compose:function(r,m,c){a.compose(r);z.compose(m);
--1===e.indexOf(c)&&(e.push(c),y(c,"headerFormatter",B))},groupData:z.groupData};"";"";return v});C(a,"masters/modules/datagrouping.src.js",[a["Core/Globals.js"],a["Extensions/DataGrouping/ApproximationDefaults.js"],a["Extensions/DataGrouping/ApproximationRegistry.js"],a["Extensions/DataGrouping/DataGrouping.js"]],function(a,q,z,v){a.dataGrouping={approximationDefaults:q,approximations:z};v.compose(a.Axis,a.Series,a.Tooltip)});C(a,"Series/DataModifyComposition.js",[a["Core/Axis/Axis.js"],a["Core/Series/Point.js"],
-a["Core/Series/Series.js"],a["Core/Utilities.js"]],function(a,q,z,v){var t=q.prototype.tooltipFormatter,B=v.addEvent,w=v.arrayMax,y=v.arrayMin,r=v.correctFloat,m=v.defined,e=v.isArray,g=v.isNumber,p=v.isString,c=v.pick,J;(function(a){function f(b,k,d){this.isXAxis||(this.series.forEach(function(n){"compare"===b&&"boolean"!==typeof k?n.setCompare(k,!1):"cumulative"!==b||p(k)||n.setCumulative(k,!1)}),c(d,!0)&&this.chart.redraw())}function L(b){var n=this,d=n.series.chart.numberFormatter,h=function(k){b=
-b.replace("{point."+k+"}",(0<n[k]&&"change"===k?"+":"")+d(n[k],c(n.series.tooltipOptions.changeDecimals,2)))};m(n.change)&&h("change");m(n.cumulativeSum)&&h("cumulativeSum");return t.apply(this,[b])}function J(){var n=this.options.compare;if("percent"===n||"value"===n||this.options.cumulative){var k=new b(this);"percent"===n||"value"===n?k.initCompare(n):k.initCumulative()}this.dataModify=k}function q(n){n=n.dataExtremes;var k=n.activeYData;if(this.dataModify&&n){var d=void 0;this.options.compare?
-d=[this.dataModify.modifyValue(n.dataMin),this.dataModify.modifyValue(n.dataMax)]:this.options.cumulative&&e(k)&&2<=k.length&&(d=b.getCumulativeExtremes(k));d&&(n.dataMin=y(d),n.dataMax=w(d))}}function x(b,k){this.options.compare=this.userOptions.compare=b;this.update({},c(k,!0));!this.dataModify||"value"!==b&&"percent"!==b?this.points.forEach(function(b){delete b.change}):this.dataModify.initCompare(b)}function v(){if(this.xAxis&&this.processedYData&&this.dataModify){var b=this.processedXData,k=
-this.processedYData,d=k.length,h=!0===this.options.compareStart?0:1,a=-1,f;this.pointArrayMap&&(a=this.pointArrayMap.indexOf(this.options.pointValKey||this.pointValKey||"y"));for(f=0;f<d-h;f++){var c=k[f]&&-1<a?k[f][a]:k[f];if(g(c)&&0!==c&&b[f+h]>=(this.xAxis.min||0)){this.dataModify.compareValue=c;break}}}}function u(b,k){this.setModifier("compare",b,k)}function l(b,k){b=c(b,!1);this.options.cumulative=this.userOptions.cumulative=b;this.update({},c(k,!0));this.dataModify?this.dataModify.initCumulative():
-this.points.forEach(function(b){delete b.cumulativeSum})}function d(b,k){this.setModifier("cumulative",b,k)}var h=[];a.compose=function(b,k,A){if(-1===h.indexOf(b)){h.push(b);var n=b.prototype;n.setCompare=x;n.setCumulative=l;B(b,"afterInit",J);B(b,"afterGetExtremes",q);B(b,"afterProcessData",v)}-1===h.indexOf(k)&&(h.push(k),k=k.prototype,k.setCompare=u,k.setModifier=f,k.setCumulative=d);-1===h.indexOf(A)&&(h.push(A),A.prototype.tooltipFormatter=L);return b};var b=function(){function b(b){this.series=
-b}b.prototype.modifyValue=function(){return 0};b.getCumulativeExtremes=function(b){var n=Infinity,k=-Infinity;b.reduce(function(b,d){d=b+d;n=Math.min(n,d,b);k=Math.max(k,d,b);return d});return[n,k]};b.prototype.initCompare=function(b){this.modifyValue=function(n,k){null===n&&(n=0);var d=this.compareValue;return"undefined"!==typeof n&&"undefined"!==typeof d?(n="value"===b?n-d:n/d*100-(100===this.series.options.compareBase?0:100),"undefined"!==typeof k&&(k=this.series.points[k])&&(k.change=n),n):0}};
-b.prototype.initCumulative=function(){this.modifyValue=function(b,n){null===b&&(b=0);if(void 0!==b&&void 0!==n){var k=0<n?this.series.points[n-1]:null;k&&k.cumulativeSum&&(b=r(k.cumulativeSum+b));if(n=this.series.points[n])n.cumulativeSum=b;return b}return 0}};return b}();a.Additions=b})(J||(J={}));"";return J});C(a,"Core/Axis/NavigatorAxisComposition.js",[a["Core/Globals.js"],a["Core/Utilities.js"]],function(a,q){function E(){this.navigatorAxis||(this.navigatorAxis=new g(this))}function v(a){var c=
-this.chart.options,e=c.navigator,f=this.navigatorAxis,r=c.chart.zooming.pinchType,g=c.rangeSelector;c=c.chart.zooming.type;this.isXAxis&&(e&&e.enabled||g&&g.enabled)&&("y"===c?a.zoomed=!1:(!t&&"xy"===c||t&&"xy"===r)&&this.options.range&&(e=f.previousZoom,y(a.newMin)?f.previousZoom=[this.min,this.max]:e&&(a.newMin=e[0],a.newMax=e[1],f.previousZoom=void 0)));"undefined"!==typeof a.zoomed&&a.preventDefault()}var t=a.isTouchDevice,B=q.addEvent,w=q.correctFloat,y=q.defined,r=q.isNumber,m=q.pick,e=[],g=
-function(){function a(a){this.axis=a}a.compose=function(a){-1===e.indexOf(a)&&(e.push(a),a.keepProps.push("navigatorAxis"),B(a,"init",E),B(a,"zoom",v))};a.prototype.destroy=function(){this.axis=void 0};a.prototype.toFixedRange=function(a,e,f,D){var c=this.axis,g=c.chart;a=m(f,c.translate(a,!0,!c.horiz));e=m(D,c.translate(e,!0,!c.horiz));g=g&&g.fixedRange;c=(c.pointRange||0)/2;var p=g&&(e-a)/g;y(f)||(a=w(a+c));y(D)||(e=w(e-c));.7<p&&1.3>p&&(D?a=e-g:e=a+g);r(a)&&r(e)||(a=e=void 0);return{min:a,max:e}};
-return a}();return g});C(a,"Stock/Navigator/NavigatorDefaults.js",[a["Core/Color/Color.js"],a["Core/Series/SeriesRegistry.js"]],function(a,q){a=a.parse;q=q.seriesTypes;q={height:40,margin:25,maskInside:!0,handles:{width:7,height:15,symbols:["navigator-handle","navigator-handle"],enabled:!0,lineWidth:1,backgroundColor:"#f2f2f2",borderColor:"#999999"},maskFill:a("#6685c2").setOpacity(.3).get(),outlineColor:"#cccccc",outlineWidth:1,series:{type:"undefined"===typeof q.areaspline?"line":"areaspline",fillOpacity:.05,
-lineWidth:1,compare:null,dataGrouping:{approximation:"average",enabled:!0,groupPixelWidth:2,firstAnchor:"firstPoint",anchor:"middle",lastAnchor:"lastPoint",units:[["millisecond",[1,2,5,10,20,25,50,100,200,500]],["second",[1,2,5,10,15,30]],["minute",[1,2,5,10,15,30]],["hour",[1,2,3,4,6,8,12]],["day",[1,2,3,4]],["week",[1,2,3]],["month",[1,3,6]],["year",null]]},dataLabels:{enabled:!1,zIndex:2},id:"highcharts-navigator-series",className:"highcharts-navigator-series",lineColor:null,marker:{enabled:!1},
-threshold:null},xAxis:{overscroll:0,className:"highcharts-navigator-xaxis",tickLength:0,lineWidth:0,gridLineColor:"#e6e6e6",gridLineWidth:1,tickPixelInterval:200,labels:{align:"left",style:{color:"#999999"},x:3,y:-4},crosshair:!1},yAxis:{className:"highcharts-navigator-yaxis",gridLineWidth:0,startOnTick:!1,endOnTick:!1,minPadding:.1,maxPadding:.1,labels:{enabled:!1},crosshair:!1,title:{text:null},tickLength:0,tickWidth:0}};"";return q});C(a,"Stock/Navigator/NavigatorSymbols.js",[],function(){return{"navigator-handle":function(a,
-q,z,v,t){void 0===t&&(t={});a=t.width?t.width/2:z;q=Math.round(a/3)+.5;v=t.height||v;return[["M",-a-1,.5],["L",a,.5],["L",a,v+.5],["L",-a-1,v+.5],["L",-a-1,.5],["M",-q,4],["L",-q,v-3],["M",q-1,4],["L",q-1,v-3]]}}});C(a,"Stock/Navigator/NavigatorComposition.js",[a["Core/Defaults.js"],a["Core/Globals.js"],a["Core/Axis/NavigatorAxisComposition.js"],a["Stock/Navigator/NavigatorDefaults.js"],a["Stock/Navigator/NavigatorSymbols.js"],a["Core/Renderer/RendererRegistry.js"],a["Core/Utilities.js"]],function(a,
-q,z,v,t,B,w){function y(){this.navigator&&this.navigator.setBaseSeries(null,!1)}function r(){var d=this.legend,b=this.navigator;if(b){var n=d&&d.options;var k=b.xAxis;var a=b.yAxis;var f=b.scrollbarHeight;this.inverted?(b.left=b.opposite?this.chartWidth-f-b.height:this.spacing[3]+f,b.top=this.plotTop+f):(b.left=u(k.left,this.plotLeft+f),b.top=b.navigatorOptions.top||this.chartHeight-b.height-f-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(n&&"bottom"===
-n.verticalAlign&&"proximate"!==n.layout&&n.enabled&&!n.floating?d.legendHeight+u(n.margin,10):0)-(this.titleOffset?this.titleOffset[2]:0));k&&a&&(this.inverted?k.options.left=a.options.left=b.left:k.options.top=a.options.top=b.top,k.setAxisSize(),a.setAxisSize())}}function m(a){this.navigator||this.scroller||!this.options.navigator.enabled&&!this.options.scrollbar.enabled||(this.scroller=this.navigator=new d(this),u(a.redraw,!0)&&this.redraw(a.animation))}function e(){var a=this.options;if(a.navigator.enabled||
-a.scrollbar.enabled)this.scroller=this.navigator=new d(this)}function g(){var d=this.options,b=d.navigator,n=d.rangeSelector;if((b&&b.enabled||n&&n.enabled)&&(!L&&"x"===d.chart.zooming.type||L&&"x"===d.chart.zooming.pinchType))return!1}function p(d){var b=d.navigator;b&&d.xAxis[0]&&(d=d.xAxis[0].getExtremes(),b.render(d.min,d.max))}function c(d){var b=d.options.navigator||{},n=d.options.scrollbar||{};this.navigator||this.scroller||!b.enabled&&!n.enabled||(G(!0,this.options.navigator,b),G(!0,this.options.scrollbar,
-n),delete d.options.navigator,delete d.options.scrollbar)}function J(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)}var f=a.defaultOptions,D=a.setOptions,L=q.isTouchDevice,E=B.getRendererType,F=w.addEvent,x=w.extend,G=w.merge,u=w.pick,l=[],d;return{compose:function(a,b,n,k){z.compose(a);d=n;-1===l.indexOf(b)&&(l.push(b),b.prototype.callbacks.push(p),F(b,"afterAddSeries",y),F(b,"afterSetChartSize",r),F(b,"afterUpdate",m),F(b,"beforeRender",e),F(b,"beforeShowResetZoom",
-g),F(b,"update",c));-1===l.indexOf(k)&&(l.push(k),F(k,"afterUpdate",J));-1===l.indexOf(E)&&(l.push(E),x(E().prototype.symbols,t));-1===l.indexOf(D)&&(l.push(D),x(f,{navigator:v}))}}});C(a,"Core/Axis/ScrollbarAxis.js",[a["Core/Utilities.js"]],function(a){var q=a.addEvent,z=a.defined,v=a.pick;return function(){function a(){}a.compose=function(t,w){if(-1===a.composed.indexOf(t))a.composed.push(t);else return t;var y=function(a){var r=v(a.options&&a.options.min,a.min),e=v(a.options&&a.options.max,a.max);
-return{axisMin:r,axisMax:e,scrollMin:z(a.dataMin)?Math.min(r,a.min,a.dataMin,v(a.threshold,Infinity)):r,scrollMax:z(a.dataMax)?Math.max(e,a.max,a.dataMax,v(a.threshold,-Infinity)):e}};q(t,"afterInit",function(){var a=this;a.options&&a.options.scrollbar&&a.options.scrollbar.enabled&&(a.options.scrollbar.vertical=!a.horiz,a.options.startOnTick=a.options.endOnTick=!1,a.scrollbar=new w(a.chart.renderer,a.options.scrollbar,a.chart),q(a.scrollbar,"changed",function(r){var e=y(a),g=e.axisMax,m=e.scrollMin,
-c=e.scrollMax-m;z(e.axisMin)&&z(g)&&(a.horiz&&!a.reversed||!a.horiz&&a.reversed?(e=m+c*this.to,m+=c*this.from):(e=m+c*(1-this.from),m+=c*(1-this.to)),this.shouldUpdateExtremes(r.DOMType)?a.setExtremes(m,e,!0,"mousemove"!==r.DOMType&&"touchmove"!==r.DOMType,r):this.setRange(this.from,this.to))}))});q(t,"afterRender",function(){var a=y(this),m=a.scrollMin,e=a.scrollMax;a=this.scrollbar;var g=this.axisTitleMargin+(this.titleOffset||0),p=this.chart.scrollbarsOffsets,c=this.options.margin||0;a&&(this.horiz?
-(this.opposite||(p[1]+=g),a.position(this.left,this.top+this.height+2+p[1]-(this.opposite?c:0),this.width,this.height),this.opposite||(p[1]+=c),g=1):(this.opposite&&(p[0]+=g),a.position(a.options.opposite?this.left+this.width+2+p[0]-(this.opposite?0:c):this.opposite?0:c,this.top,this.width,this.height),this.opposite&&(p[0]+=c),g=0),p[g]+=a.size+a.options.margin,isNaN(m)||isNaN(e)||!z(this.min)||!z(this.max)||this.min===this.max?a.setRange(0,1):(p=(this.min-m)/(e-m),m=(this.max-m)/(e-m),this.horiz&&
-!this.reversed||!this.horiz&&this.reversed?a.setRange(p,m):a.setRange(1-m,1-p)))});q(t,"afterGetOffset",function(){var a=this.scrollbar&&!this.scrollbar.options.opposite;a=this.horiz?2:a?3:1;var m=this.scrollbar;m&&(this.chart.scrollbarsOffsets=[0,0],this.chart.axisOffset[a]+=m.size+m.options.margin)});return t};a.composed=[];return a}()});C(a,"Stock/Scrollbar/ScrollbarDefaults.js",[a["Core/Globals.js"]],function(a){return{height:a.isTouchDevice?20:14,barBorderRadius:0,buttonBorderRadius:0,liveRedraw:void 0,
-margin:10,minWidth:6,opposite:!0,step:.2,zIndex:3,barBackgroundColor:"#cccccc",barBorderWidth:1,barBorderColor:"#cccccc",buttonArrowColor:"#333333",buttonBackgroundColor:"#e6e6e6",buttonBorderColor:"#cccccc",buttonBorderWidth:1,rifleColor:"#333333",trackBackgroundColor:"#f2f2f2",trackBorderColor:"#f2f2f2",trackBorderWidth:1}});C(a,"Stock/Scrollbar/Scrollbar.js",[a["Core/Defaults.js"],a["Core/Globals.js"],a["Core/Axis/ScrollbarAxis.js"],a["Stock/Scrollbar/ScrollbarDefaults.js"],a["Core/Utilities.js"]],
-function(a,q,z,v,t){var B=a.defaultOptions,w=t.addEvent,y=t.correctFloat,r=t.defined,m=t.destroyObjectProperties,e=t.fireEvent,g=t.merge,p=t.pick,c=t.removeEvent;a=function(){function a(a,c,e){this._events=[];this.chart=void 0;this.from=this.chartY=this.chartX=0;this.scrollbar=this.renderer=this.options=this.group=void 0;this.scrollbarButtons=[];this.scrollbarGroup=void 0;this.scrollbarLeft=0;this.scrollbarRifles=void 0;this.scrollbarStrokeWidth=1;this.to=this.size=this.scrollbarTop=0;this.track=
-void 0;this.trackBorderWidth=1;this.userOptions=void 0;this.y=this.x=0;this.init(a,c,e)}a.compose=function(f){z.compose(f,a)};a.swapXY=function(a,c){c&&a.forEach(function(a){for(var f=a.length,c,e=0;e<f;e+=2)c=a[e+1],"number"===typeof c&&(a[e+1]=a[e+2],a[e+2]=c)});return a};a.prototype.addEvents=function(){var a=this.options.inverted?[1,0]:[0,1],c=this.scrollbarButtons,e=this.scrollbarGroup.element,g=this.track.element,m=this.mouseDownHandler.bind(this),x=this.mouseMoveHandler.bind(this),r=this.mouseUpHandler.bind(this);
-a=[[c[a[0]].element,"click",this.buttonToMinClick.bind(this)],[c[a[1]].element,"click",this.buttonToMaxClick.bind(this)],[g,"click",this.trackClick.bind(this)],[e,"mousedown",m],[e.ownerDocument,"mousemove",x],[e.ownerDocument,"mouseup",r]];q.hasTouch&&a.push([e,"touchstart",m],[e.ownerDocument,"touchmove",x],[e.ownerDocument,"touchend",r]);a.forEach(function(a){w.apply(null,a)});this._events=a};a.prototype.buttonToMaxClick=function(a){var f=(this.to-this.from)*p(this.options.step,.2);this.updatePosition(this.from+
-f,this.to+f);e(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMEvent:a})};a.prototype.buttonToMinClick=function(a){var f=y(this.to-this.from)*p(this.options.step,.2);this.updatePosition(y(this.from-f),y(this.to-f));e(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMEvent:a})};a.prototype.cursorToScrollbarPosition=function(a){var f=this.options;f=f.minWidth>this.calculatedWidth?f.minWidth:0;return{chartX:(a.chartX-this.x-this.xOffset)/(this.barWidth-f),chartY:(a.chartY-
-this.y-this.yOffset)/(this.barWidth-f)}};a.prototype.destroy=function(){var a=this,c=a.chart.scroller;a.removeEvents();["track","scrollbarRifles","scrollbar","scrollbarGroup","group"].forEach(function(f){a[f]&&a[f].destroy&&(a[f]=a[f].destroy())});c&&a===c.scrollbar&&(c.scrollbar=null,m(c.scrollbarButtons))};a.prototype.drawScrollbarButton=function(f){var c=this.renderer,e=this.scrollbarButtons,g=this.options,m=this.size,x=c.g().add(this.group);e.push(x);x=c.rect().addClass("highcharts-scrollbar-button").add(x);
-this.chart.styledMode||x.attr({stroke:g.buttonBorderColor,"stroke-width":g.buttonBorderWidth,fill:g.buttonBackgroundColor});x.attr(x.crisp({x:-.5,y:-.5,width:m+1,height:m+1,r:g.buttonBorderRadius},x.strokeWidth()));x=c.path(a.swapXY([["M",m/2+(f?-1:1),m/2-3],["L",m/2+(f?-1:1),m/2+3],["L",m/2+(f?2:-2),m/2]],g.vertical)).addClass("highcharts-scrollbar-arrow").add(e[f]);this.chart.styledMode||x.attr({fill:g.buttonArrowColor})};a.prototype.init=function(a,c,e){this.scrollbarButtons=[];this.renderer=a;
-this.userOptions=c;this.options=g(v,B.scrollbar,c);this.chart=e;this.size=p(this.options.size,this.options.height);c.enabled&&(this.render(),this.addEvents())};a.prototype.mouseDownHandler=function(a){a=this.chart.pointer.normalize(a);a=this.cursorToScrollbarPosition(a);this.chartX=a.chartX;this.chartY=a.chartY;this.initPositions=[this.from,this.to];this.grabbedCenter=!0};a.prototype.mouseMoveHandler=function(a){var c=this.chart.pointer.normalize(a),f=this.options.vertical?"chartY":"chartX",g=this.initPositions||
-[];!this.grabbedCenter||a.touches&&0===a.touches[0][f]||(c=this.cursorToScrollbarPosition(c)[f],f=this[f],f=c-f,this.hasDragged=!0,this.updatePosition(g[0]+f,g[1]+f),this.hasDragged&&e(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMType:a.type,DOMEvent:a}))};a.prototype.mouseUpHandler=function(a){this.hasDragged&&e(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMType:a.type,DOMEvent:a});this.grabbedCenter=this.hasDragged=this.chartX=this.chartY=null};a.prototype.position=
-function(a,c,e,g){var f=this.options.vertical,m=this.rendered?"animate":"attr",r=g,u=0;this.group.show();this.x=a;this.y=c+this.trackBorderWidth;this.width=e;this.height=g;this.xOffset=r;this.yOffset=u;f?(this.width=this.yOffset=e=u=this.size,this.xOffset=r=0,this.barWidth=g-2*e,this.x=a+=this.options.margin):(this.height=this.xOffset=g=r=this.size,this.barWidth=e-2*g,this.y+=this.options.margin);this.group[m]({translateX:a,translateY:this.y});this.track[m]({width:e,height:g});this.scrollbarButtons[1][m]({translateX:f?
-0:e-r,translateY:f?g-u:0})};a.prototype.removeEvents=function(){this._events.forEach(function(a){c.apply(null,a)});this._events.length=0};a.prototype.render=function(){var c=this.renderer,e=this.options,g=this.size,m=this.chart.styledMode,r=c.g("scrollbar").attr({zIndex:e.zIndex}).hide().add();this.group=r;this.track=c.rect().addClass("highcharts-scrollbar-track").attr({x:0,r:e.trackBorderRadius||0,height:g,width:g}).add(r);m||this.track.attr({fill:e.trackBackgroundColor,stroke:e.trackBorderColor,
-"stroke-width":e.trackBorderWidth});this.trackBorderWidth=this.track.strokeWidth();this.track.attr({y:-this.trackBorderWidth%2/2});this.scrollbarGroup=c.g().add(r);this.scrollbar=c.rect().addClass("highcharts-scrollbar-thumb").attr({height:g,width:g,r:e.barBorderRadius||0}).add(this.scrollbarGroup);this.scrollbarRifles=c.path(a.swapXY([["M",-3,g/4],["L",-3,2*g/3],["M",0,g/4],["L",0,2*g/3],["M",3,g/4],["L",3,2*g/3]],e.vertical)).addClass("highcharts-scrollbar-rifles").add(this.scrollbarGroup);m||(this.scrollbar.attr({fill:e.barBackgroundColor,
-stroke:e.barBorderColor,"stroke-width":e.barBorderWidth}),this.scrollbarRifles.attr({stroke:e.rifleColor,"stroke-width":1}));this.scrollbarStrokeWidth=this.scrollbar.strokeWidth();this.scrollbarGroup.translate(-this.scrollbarStrokeWidth%2/2,-this.scrollbarStrokeWidth%2/2);this.drawScrollbarButton(0);this.drawScrollbarButton(1)};a.prototype.setRange=function(a,c){var e=this.options,f=e.vertical,g=e.minWidth,m=this.barWidth,p=!this.rendered||this.hasDragged||this.chart.navigator&&this.chart.navigator.hasDragged?
-"attr":"animate";if(r(m)){var u=m*Math.min(c,1);a=Math.max(a,0);var l=Math.ceil(m*a);this.calculatedWidth=u=y(u-l);u<g&&(l=(m-g+u)*a,u=g);g=Math.floor(l+this.xOffset+this.yOffset);m=u/2-.5;this.from=a;this.to=c;f?(this.scrollbarGroup[p]({translateY:g}),this.scrollbar[p]({height:u}),this.scrollbarRifles[p]({translateY:m}),this.scrollbarTop=g,this.scrollbarLeft=0):(this.scrollbarGroup[p]({translateX:g}),this.scrollbar[p]({width:u}),this.scrollbarRifles[p]({translateX:m}),this.scrollbarLeft=g,this.scrollbarTop=
-0);12>=u?this.scrollbarRifles.hide():this.scrollbarRifles.show();!1===e.showFull&&(0>=a&&1<=c?this.group.hide():this.group.show());this.rendered=!0}};a.prototype.shouldUpdateExtremes=function(a){return p(this.options.liveRedraw,q.svg&&!q.isTouchDevice&&!this.chart.boosted)||"mouseup"===a||"touchend"===a||!r(a)};a.prototype.trackClick=function(a){var c=this.chart.pointer.normalize(a),f=this.to-this.from,g=this.y+this.scrollbarTop,m=this.x+this.scrollbarLeft;this.options.vertical&&c.chartY>g||!this.options.vertical&&
-c.chartX>m?this.updatePosition(this.from+f,this.to+f):this.updatePosition(this.from-f,this.to-f);e(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMEvent:a})};a.prototype.update=function(a){this.destroy();this.init(this.chart.renderer,g(!0,this.options,a),this.chart)};a.prototype.updatePosition=function(a,c){1<c&&(a=y(1-y(c-a)),c=1);0>a&&(c=y(c-a),a=0);this.from=a;this.to=c};a.defaultOptions=v;return a}();B.scrollbar=g(!0,a.defaultOptions,B.scrollbar);return a});C(a,"Stock/Navigator/Navigator.js",
-[a["Core/Axis/Axis.js"],a["Core/Defaults.js"],a["Core/Globals.js"],a["Core/Axis/NavigatorAxisComposition.js"],a["Stock/Navigator/NavigatorComposition.js"],a["Stock/Scrollbar/Scrollbar.js"],a["Core/Utilities.js"]],function(a,q,z,v,t,B,w){function y(a){for(var b=[],n=1;n<arguments.length;n++)b[n-1]=arguments[n];b=[].filter.call(b,x);if(b.length)return Math[a].apply(0,b)}var r=q.defaultOptions,m=z.hasTouch,e=z.isTouchDevice,g=w.addEvent,p=w.clamp,c=w.correctFloat,J=w.defined,f=w.destroyObjectProperties,
-D=w.erase,E=w.extend,C=w.find,F=w.isArray,x=w.isNumber,G=w.merge,u=w.pick,l=w.removeEvent,d=w.splat;return function(){function h(b){this.zoomedMin=this.zoomedMax=this.yAxis=this.xAxis=this.top=this.size=this.shades=this.rendered=this.range=this.outlineHeight=this.outline=this.opposite=this.navigatorSize=this.navigatorSeries=this.navigatorOptions=this.navigatorGroup=this.navigatorEnabled=this.left=this.height=this.handles=this.chart=this.baseSeries=void 0;this.init(b)}h.compose=function(b,a,k){t.compose(b,
-a,h,k)};h.prototype.drawHandle=function(b,a,k,d){var n=this.navigatorOptions.handles.height;this.handles[a][d](k?{translateX:Math.round(this.left+this.height/2),translateY:Math.round(this.top+parseInt(b,10)+.5-n)}:{translateX:Math.round(this.left+parseInt(b,10)),translateY:Math.round(this.top+this.height/2-n/2-1)})};h.prototype.drawOutline=function(b,a,k,d){var n=this.navigatorOptions.maskInside,h=this.outline.strokeWidth(),A=h/2,c=h%2/2;h=this.outlineHeight;var e=this.scrollbarHeight||0,f=this.size,
-l=this.left-e,g=this.top;k?(l-=A,k=g+a+c,a=g+b+c,c=[["M",l+h,g-e-c],["L",l+h,k],["L",l,k],["L",l,a],["L",l+h,a],["L",l+h,g+f+e]],n&&c.push(["M",l+h,k-A],["L",l+h,a+A])):(b+=l+e-c,a+=l+e-c,g+=A,c=[["M",l,g],["L",b,g],["L",b,g+h],["L",a,g+h],["L",a,g],["L",l+f+2*e,g]],n&&c.push(["M",b-A,g],["L",a+A,g]));this.outline[d]({d:c})};h.prototype.drawMasks=function(b,a,k,d){var n=this.left,h=this.top,A=this.height;if(k){var c=[n,n,n];var e=[h,h+b,h+a];var f=[A,A,A];var l=[b,a-b,this.size-a]}else c=[n,n+b,n+
-a],e=[h,h,h],f=[b,a-b,this.size-a],l=[A,A,A];this.shades.forEach(function(b,a){b[d]({x:c[a],y:e[a],width:f[a],height:l[a]})})};h.prototype.renderElements=function(){var b=this,a=b.navigatorOptions,d=a.maskInside,h=b.chart,c=h.renderer,e={cursor:h.inverted?"ns-resize":"ew-resize"},f=b.navigatorGroup=c.g("navigator").attr({zIndex:8,visibility:"hidden"}).add();[!d,d,!d].forEach(function(n,d){var k=c.rect().addClass("highcharts-navigator-mask"+(1===d?"-inside":"-outside")).add(f);h.styledMode||(k.attr({fill:n?
-a.maskFill:"rgba(0,0,0,0)"}),1===d&&k.css(e));b.shades[d]=k});b.outline=c.path().addClass("highcharts-navigator-outline").add(f);h.styledMode||b.outline.attr({"stroke-width":a.outlineWidth,stroke:a.outlineColor});if(a.handles&&a.handles.enabled){var l=a.handles,g=l.height,m=l.width;[0,1].forEach(function(a){b.handles[a]=c.symbol(l.symbols[a],-m/2-1,0,m,g,l);h.inverted&&b.handles[a].attr({rotation:90,rotationOriginX:Math.floor(-m/2),rotationOriginY:(g+m)/2});b.handles[a].attr({zIndex:7-a}).addClass("highcharts-navigator-handle highcharts-navigator-handle-"+
-["left","right"][a]).add(f);h.styledMode||b.handles[a].attr({fill:l.backgroundColor,stroke:l.borderColor,"stroke-width":l.lineWidth}).css(e)})}};h.prototype.update=function(b){(this.series||[]).forEach(function(b){b.baseSeries&&delete b.baseSeries.navigatorSeries});this.destroy();G(!0,this.chart.options.navigator,b);this.init(this.chart)};h.prototype.render=function(b,a,d,h){var n=this.chart,k=this.xAxis,A=k.pointRange||0,e=k.navigatorAxis.fake?n.xAxis[0]:k,f=this.navigatorEnabled,l=this.rendered,
-g=n.inverted,m=n.xAxis[0].minRange,r=n.xAxis[0].options.maxRange,w=this.scrollbarHeight,q;if(!this.hasDragged||J(d)){b=c(b-A/2);a=c(a+A/2);if(!x(b)||!x(a))if(l)d=0,h=u(k.width,e.width);else return;this.left=u(k.left,n.plotLeft+w+(g?n.plotWidth:0));var v=this.size=q=u(k.len,(g?n.plotHeight:n.plotWidth)-2*w);n=g?w:q+2*w;d=u(d,k.toPixels(b,!0));h=u(h,k.toPixels(a,!0));x(d)&&Infinity!==Math.abs(d)||(d=0,h=n);b=k.toValue(d,!0);a=k.toValue(h,!0);var t=Math.abs(c(a-b));t<m?this.grabbedLeft?d=k.toPixels(a-
-m-A,!0):this.grabbedRight&&(h=k.toPixels(b+m+A,!0)):J(r)&&c(t-A)>r&&(this.grabbedLeft?d=k.toPixels(a-r-A,!0):this.grabbedRight&&(h=k.toPixels(b+r+A,!0)));this.zoomedMax=p(Math.max(d,h),0,v);this.zoomedMin=p(this.fixedWidth?this.zoomedMax-this.fixedWidth:Math.min(d,h),0,v);this.range=this.zoomedMax-this.zoomedMin;v=Math.round(this.zoomedMax);d=Math.round(this.zoomedMin);f&&(this.navigatorGroup.attr({visibility:"inherit"}),l=l&&!this.hasDragged?"animate":"attr",this.drawMasks(d,v,g,l),this.drawOutline(d,
-v,g,l),this.navigatorOptions.handles.enabled&&(this.drawHandle(d,0,g,l),this.drawHandle(v,1,g,l)));this.scrollbar&&(g?(g=this.top-w,e=this.left-w+(f||!e.opposite?0:(e.titleOffset||0)+e.axisTitleMargin),w=q+2*w):(g=this.top+(f?this.height:-w),e=this.left-w),this.scrollbar.position(e,g,n,w),this.scrollbar.setRange(this.zoomedMin/(q||1),this.zoomedMax/(q||1)));this.rendered=!0}};h.prototype.addMouseEvents=function(){var b=this,a=b.chart,d=a.container,h=[],c,e;b.mouseMoveHandler=c=function(a){b.onMouseMove(a)};
-b.mouseUpHandler=e=function(a){b.onMouseUp(a)};h=b.getPartsEvents("mousedown");h.push(g(a.renderTo,"mousemove",c),g(d.ownerDocument,"mouseup",e));m&&(h.push(g(a.renderTo,"touchmove",c),g(d.ownerDocument,"touchend",e)),h.concat(b.getPartsEvents("touchstart")));b.eventsToUnbind=h;b.series&&b.series[0]&&h.push(g(b.series[0].xAxis,"foundExtremes",function(){a.navigator.modifyNavigatorAxisExtremes()}))};h.prototype.getPartsEvents=function(b){var a=this,d=[];["shades","handles"].forEach(function(n){a[n].forEach(function(k,
-h){d.push(g(k.element,b,function(b){a[n+"Mousedown"](b,h)}))})});return d};h.prototype.shadesMousedown=function(b,a){b=this.chart.pointer.normalize(b);var n=this.chart,d=this.xAxis,h=this.zoomedMin,c=this.size,e=this.range,f=this.left,l=b.chartX;n.inverted&&(l=b.chartY,f=this.top);if(1===a)this.grabbedCenter=l,this.fixedWidth=e,this.dragOffset=l-h;else{b=l-f-e/2;if(0===a)b=Math.max(0,b);else if(2===a&&b+e>=c)if(b=c-e,this.reversedExtremes){b-=e;var g=this.getUnionExtremes().dataMin}else var m=this.getUnionExtremes().dataMax;
-b!==h&&(this.fixedWidth=e,a=d.navigatorAxis.toFixedRange(b,b+e,g,m),J(a.min)&&n.xAxis[0].setExtremes(Math.min(a.min,a.max),Math.max(a.min,a.max),!0,null,{trigger:"navigator"}))}};h.prototype.handlesMousedown=function(b,a){this.chart.pointer.normalize(b);b=this.chart;var n=b.xAxis[0],d=this.reversedExtremes;0===a?(this.grabbedLeft=!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=d?n.min:n.max):(this.grabbedRight=!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=d?n.max:n.min);b.fixedRange=
-null};h.prototype.onMouseMove=function(b){var a=this,d=a.chart,h=a.navigatorSize,c=a.range,f=a.dragOffset,l=d.inverted,g=a.left;b.touches&&0===b.touches[0].pageX||(b=d.pointer.normalize(b),d=b.chartX,l&&(g=a.top,d=b.chartY),a.grabbedLeft?(a.hasDragged=!0,a.render(0,0,d-g,a.otherHandlePos)):a.grabbedRight?(a.hasDragged=!0,a.render(0,0,a.otherHandlePos,d-g)):a.grabbedCenter&&(a.hasDragged=!0,d<f?d=f:d>h+f-c&&(d=h+f-c),a.render(0,0,d-f,d-f+c)),a.hasDragged&&a.scrollbar&&u(a.scrollbar.options.liveRedraw,
-z.svg&&!e&&!this.chart.boosted)&&(b.DOMType=b.type,setTimeout(function(){a.onMouseUp(b)},0)))};h.prototype.onMouseUp=function(b){var a=this.chart,d=this.xAxis,h=this.scrollbar,c=b.DOMEvent||b,e=a.inverted,f=this.rendered&&!this.hasDragged?"animate":"attr";if(this.hasDragged&&(!h||!h.hasDragged)||"scrollbar"===b.trigger){h=this.getUnionExtremes();if(this.zoomedMin===this.otherHandlePos)var l=this.fixedExtreme;else if(this.zoomedMax===this.otherHandlePos)var g=this.fixedExtreme;this.zoomedMax===this.size&&
-(g=this.reversedExtremes?h.dataMin:h.dataMax);0===this.zoomedMin&&(l=this.reversedExtremes?h.dataMax:h.dataMin);d=d.navigatorAxis.toFixedRange(this.zoomedMin,this.zoomedMax,l,g);J(d.min)&&a.xAxis[0].setExtremes(Math.min(d.min,d.max),Math.max(d.min,d.max),!0,this.hasDragged?!1:null,{trigger:"navigator",triggerOp:"navigator-drag",DOMEvent:c})}"mousemove"!==b.DOMType&&"touchmove"!==b.DOMType&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=
-this.hasDragged=this.dragOffset=null);this.navigatorEnabled&&x(this.zoomedMin)&&x(this.zoomedMax)&&(a=Math.round(this.zoomedMin),b=Math.round(this.zoomedMax),this.shades&&this.drawMasks(a,b,e,f),this.outline&&this.drawOutline(a,b,e,f),this.navigatorOptions.handles.enabled&&Object.keys(this.handles).length===this.handles.length&&(this.drawHandle(a,0,e,f),this.drawHandle(b,1,e,f)))};h.prototype.removeEvents=function(){this.eventsToUnbind&&(this.eventsToUnbind.forEach(function(b){b()}),this.eventsToUnbind=
-void 0);this.removeBaseSeriesEvents()};h.prototype.removeBaseSeriesEvents=function(){var b=this.baseSeries||[];this.navigatorEnabled&&b[0]&&(!1!==this.navigatorOptions.adaptToUpdatedData&&b.forEach(function(b){l(b,"updatedData",this.updatedDataHandler)},this),b[0].xAxis&&l(b[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes))};h.prototype.init=function(b){var d=b.options,k=d.navigator||{},h=k.enabled,c=d.scrollbar||{},e=c.enabled;d=h&&k.height||0;var f=e&&c.height||0;this.handles=[];this.shades=
-[];this.chart=b;this.setBaseSeries();this.height=d;this.scrollbarHeight=f;this.scrollbarEnabled=e;this.navigatorEnabled=h;this.navigatorOptions=k;this.scrollbarOptions=c;this.outlineHeight=d+f;this.opposite=u(k.opposite,!(h||!b.inverted));var l=this;h=l.baseSeries;c=b.xAxis.length;e=b.yAxis.length;var m=h&&h[0]&&h[0].xAxis||b.xAxis[0]||{options:{}};b.isDirtyBox=!0;l.navigatorEnabled?(l.xAxis=new a(b,G({breaks:m.options.breaks,ordinal:m.options.ordinal},k.xAxis,{id:"navigator-x-axis",yAxis:"navigator-y-axis",
-isX:!0,type:"datetime",index:c,isInternal:!0,offset:0,keepOrdinalPadding:!0,startOnTick:!1,endOnTick:!1,minPadding:0,maxPadding:0,zoomEnabled:!1},b.inverted?{offsets:[f,0,-f,0],width:d}:{offsets:[0,-f,0,f],height:d})),l.yAxis=new a(b,G(k.yAxis,{id:"navigator-y-axis",alignTicks:!1,offset:0,index:e,isInternal:!0,reversed:u(k.yAxis&&k.yAxis.reversed,b.yAxis[0]&&b.yAxis[0].reversed,!1),zoomEnabled:!1},b.inverted?{width:d}:{height:d})),h||k.series.data?l.updateNavigatorSeries(!1):0===b.series.length&&
-(l.unbindRedraw=g(b,"beforeRedraw",function(){0<b.series.length&&!l.series&&(l.setBaseSeries(),l.unbindRedraw())})),l.reversedExtremes=b.inverted&&!l.xAxis.reversed||!b.inverted&&l.xAxis.reversed,l.renderElements(),l.addMouseEvents()):(l.xAxis={chart:b,navigatorAxis:{fake:!0},translate:function(a,d){var n=b.xAxis[0],k=n.getExtremes(),h=n.len-2*f,c=y("min",n.options.min,k.dataMin);n=y("max",n.options.max,k.dataMax)-c;return d?a*n/h+c:h*(a-c)/n},toPixels:function(b){return this.translate(b)},toValue:function(b){return this.translate(b,
-!0)}},l.xAxis.navigatorAxis.axis=l.xAxis,l.xAxis.navigatorAxis.toFixedRange=v.prototype.toFixedRange.bind(l.xAxis.navigatorAxis));b.options.scrollbar.enabled&&(b.scrollbar=l.scrollbar=new B(b.renderer,G(b.options.scrollbar,{margin:l.navigatorEnabled?0:10,vertical:b.inverted}),b),g(l.scrollbar,"changed",function(b){var a=l.size,d=a*this.to;a*=this.from;l.hasDragged=l.scrollbar.hasDragged;l.render(0,0,a,d);this.shouldUpdateExtremes(b.DOMType)&&setTimeout(function(){l.onMouseUp(b)})}));l.addBaseSeriesEvents();
-l.addChartEvents()};h.prototype.getUnionExtremes=function(b){var a=this.chart.xAxis[0],d=this.xAxis,h=d.options,c=a.options,e;b&&null===a.dataMin||(e={dataMin:u(h&&h.min,y("min",c.min,a.dataMin,d.dataMin,d.min)),dataMax:u(h&&h.max,y("max",c.max,a.dataMax,d.dataMax,d.max))});return e};h.prototype.setBaseSeries=function(b,a){var d=this.chart,n=this.baseSeries=[];b=b||d.options&&d.options.navigator.baseSeries||(d.series.length?C(d.series,function(b){return!b.options.isInternal}).index:0);(d.series||
-[]).forEach(function(a,d){a.options.isInternal||!a.options.showInNavigator&&(d!==b&&a.options.id!==b||!1===a.options.showInNavigator)||n.push(a)});this.xAxis&&!this.xAxis.navigatorAxis.fake&&this.updateNavigatorSeries(!0,a)};h.prototype.updateNavigatorSeries=function(a,n){var b=this,h=b.chart,c=b.baseSeries,e={enableMouseTracking:!1,index:null,linkedTo:null,group:"nav",padXAxis:!1,xAxis:"navigator-x-axis",yAxis:"navigator-y-axis",showInLegend:!1,stacking:void 0,isInternal:!0,states:{inactive:{opacity:1}}},
-f=b.series=(b.series||[]).filter(function(a){var d=a.baseSeries;return 0>c.indexOf(d)?(d&&(l(d,"updatedData",b.updatedDataHandler),delete d.navigatorSeries),a.chart&&a.destroy(),!1):!0}),g,m,p=b.navigatorOptions.series,I;c&&c.length&&c.forEach(function(a){var k=a.navigatorSeries,l=E({color:a.color,visible:a.visible},F(p)?r.navigator.series:p);k&&!1===b.navigatorOptions.adaptToUpdatedData||(e.name="Navigator "+c.length,g=a.options||{},I=g.navigatorOptions||{},l.dataLabels=d(l.dataLabels),m=G(g,e,l,
-I),m.pointRange=u(l.pointRange,I.pointRange,r.plotOptions[m.type||"line"].pointRange),l=I.data||l.data,b.hasNavigatorData=b.hasNavigatorData||!!l,m.data=l||g.data&&g.data.slice(0),k&&k.options?k.update(m,n):(a.navigatorSeries=h.initSeries(m),a.navigatorSeries.baseSeries=a,f.push(a.navigatorSeries)))});if(p.data&&(!c||!c.length)||F(p))b.hasNavigatorData=!1,p=d(p),p.forEach(function(a,d){e.name="Navigator "+(f.length+1);m=G(r.navigator.series,{color:h.series[d]&&!h.series[d].options.isInternal&&h.series[d].color||
-h.options.colors[d]||h.options.colors[0]},e,a);m.data=a.data;m.data&&(b.hasNavigatorData=!0,f.push(h.initSeries(m)))});a&&this.addBaseSeriesEvents()};h.prototype.addBaseSeriesEvents=function(){var a=this,d=this,k=d.baseSeries||[];k[0]&&k[0].xAxis&&k[0].eventsToUnbind.push(g(k[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes));k.forEach(function(b){b.eventsToUnbind.push(g(b,"show",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)}));b.eventsToUnbind.push(g(b,"hide",function(){this.navigatorSeries&&
-this.navigatorSeries.setVisible(!1,!1)}));!1!==a.navigatorOptions.adaptToUpdatedData&&b.xAxis&&b.eventsToUnbind.push(g(b,"updatedData",a.updatedDataHandler));b.eventsToUnbind.push(g(b,"remove",function(){this.navigatorSeries&&(D(d.series,this.navigatorSeries),J(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)}))})};h.prototype.getBaseSeriesMin=function(a){return this.baseSeries.reduce(function(a,b){return Math.min(a,b.xData&&b.xData.length?b.xData[0]:a)},
-a)};h.prototype.modifyNavigatorAxisExtremes=function(){var a=this.xAxis;if("undefined"!==typeof a.getExtremes){var d=this.getUnionExtremes(!0);!d||d.dataMin===a.min&&d.dataMax===a.max||(a.min=d.dataMin,a.max=d.dataMax)}};h.prototype.modifyBaseAxisExtremes=function(){var a=this.chart.navigator,d=this.getExtremes(),k=d.dataMin,h=d.dataMax;d=d.max-d.min;var c=a.stickToMin,e=a.stickToMax,f=u(this.options.overscroll,0),l=a.series&&a.series[0],g=!!this.setExtremes;if(!this.eventArgs||"rangeSelectorButton"!==
-this.eventArgs.trigger){if(c){var m=k;var r=m+d}e&&(r=h+f,c||(m=Math.max(k,r-d,a.getBaseSeriesMin(l&&l.xData?l.xData[0]:-Number.MAX_VALUE))));g&&(c||e)&&x(m)&&(this.min=this.userMin=m,this.max=this.userMax=r)}a.stickToMin=a.stickToMax=null};h.prototype.updatedDataHandler=function(){var a=this.chart.navigator,d=this.navigatorSeries;a.stickToMax=u(this.chart.options.navigator&&this.chart.options.navigator.stickToMax,a.reversedExtremes?0===Math.round(a.zoomedMin):Math.round(a.zoomedMax)>=Math.round(a.size));
-a.stickToMin=a.shouldStickToMin(this,a);d&&!a.hasNavigatorData&&(d.options.pointStart=this.xData[0],d.setData(this.options.data,!1,null,!1))};h.prototype.shouldStickToMin=function(a,d){d=d.getBaseSeriesMin(a.xData[0]);var b=a.xAxis;a=b.max;var n=b.min;b=b.options.range;return x(a)&&x(n)?b&&0<a-d?a-d<b:n<=d:!1};h.prototype.addChartEvents=function(){this.eventsToUnbind||(this.eventsToUnbind=[]);this.eventsToUnbind.push(g(this.chart,"redraw",function(){var a=this.navigator,d=a&&(a.baseSeries&&a.baseSeries[0]&&
-a.baseSeries[0].xAxis||this.xAxis[0]);d&&a.render(d.min,d.max)}),g(this.chart,"getMargins",function(){var a=this.navigator,d=a.opposite?"plotTop":"marginBottom";this.inverted&&(d=a.opposite?"marginRight":"plotLeft");this[d]=(this[d]||0)+(a.navigatorEnabled||!this.inverted?a.outlineHeight:0)+a.navigatorOptions.margin}))};h.prototype.destroy=function(){var a=this;this.removeEvents();this.xAxis&&(D(this.chart.xAxis,this.xAxis),D(this.chart.axes,this.xAxis));this.yAxis&&(D(this.chart.yAxis,this.yAxis),
-D(this.chart.axes,this.yAxis));(this.series||[]).forEach(function(a){a.destroy&&a.destroy()});"series xAxis yAxis shades outline scrollbarTrack scrollbarRifles scrollbarGroup scrollbar navigatorGroup rendered".split(" ").forEach(function(b){a[b]&&a[b].destroy&&a[b].destroy();a[b]=null});[this.handles].forEach(function(a){f(a)})};return h}()});C(a,"Stock/RangeSelector/RangeSelectorDefaults.js",[],function(){return{lang:{rangeSelectorZoom:"Zoom",rangeSelectorFrom:"",rangeSelectorTo:"\u2192"},rangeSelector:{allButtonsEnabled:!1,
-buttons:void 0,buttonSpacing:5,dropdown:"responsive",enabled:void 0,verticalAlign:"top",buttonTheme:{width:28,height:18,padding:2,zIndex:7},floating:!1,x:0,y:0,height:void 0,inputBoxBorderColor:"none",inputBoxHeight:17,inputBoxWidth:void 0,inputDateFormat:"%b %e, %Y",inputDateParser:void 0,inputEditDateFormat:"%Y-%m-%d",inputEnabled:!0,inputPosition:{align:"right",x:0,y:0},inputSpacing:5,selected:void 0,buttonPosition:{align:"left",x:0,y:0},inputStyle:{color:"#335cad",cursor:"pointer"},labelStyle:{color:"#666666"}}}});
-C(a,"Stock/RangeSelector/RangeSelectorComposition.js",[a["Core/Defaults.js"],a["Stock/RangeSelector/RangeSelectorDefaults.js"],a["Core/Utilities.js"]],function(a,q,z){function v(){var a=this.range,d=a.type,h=this.max,b=this.chart.time,n=function(a,n){var h="year"===d?"FullYear":"Month",k=new b.Date(a),c=b.get(h,k);b.set(h,k,c+n);c===b.get(h,k)&&b.set("Date",k,0);return k.getTime()-a};if(E(a)){var k=h-a;var c=a}else a&&(k=h+n(h,-(a.count||1)),this.chart&&(this.chart.fixedRange=h-k));var e=F(this.dataMin,
-Number.MIN_VALUE);E(k)||(k=e);k<=e&&(k=e,"undefined"===typeof c&&(c=n(k,a.count)),this.newMax=Math.min(k+c,F(this.dataMax,Number.MAX_VALUE)));E(h)?!E(a)&&a&&a._offsetMin&&(k+=a._offsetMin):k=void 0;return k}function t(){this.options.rangeSelector&&this.options.rangeSelector.enabled&&(this.rangeSelector=new u(this))}function B(){var a=this.axes,d=this.rangeSelector;d&&(E(d.deferredYTDClick)&&(d.clickButton(d.deferredYTDClick),delete d.deferredYTDClick),a.forEach(function(a){a.updateNames();a.setScale()}),
-this.getAxisMargins(),d.render(),a=d.options.verticalAlign,d.options.floating||("bottom"===a?this.extraBottomMargin=!0:"middle"!==a&&(this.extraTopMargin=!0)))}function w(a){var d,h,b,n,k=a.rangeSelector,e=function(){k&&(d=a.xAxis[0].getExtremes(),h=a.legend,n=k&&k.options.verticalAlign,E(d.min)&&k.render(d.min,d.max),h.display&&"top"===n&&n===h.options.verticalAlign&&(b=C(a.spacingBox),b.y="vertical"===h.options.layout?a.plotTop:b.y+k.getHeight(),h.group.placed=!1,h.align(b)))};k&&(D(x,function(b){return b[0]===
-a})||x.push([a,[c(a.xAxis[0],"afterSetExtremes",function(a){k&&k.render(a.min,a.max)}),c(a,"redraw",e)]]),e())}function y(){for(var a=0,d=x.length;a<d;++a){var h=x[a];if(h[0]===this){h[1].forEach(function(a){return a()});x.splice(a,1);break}}}function r(){var a=this.rangeSelector;a&&(a=a.getHeight(),this.extraTopMargin&&(this.plotTop+=a),this.extraBottomMargin&&(this.marginBottom+=a))}function m(){var a=this.rangeSelector;a&&!a.options.floating&&(a.render(),a=a.options.verticalAlign,"bottom"===a?
-this.extraBottomMargin=!0:"middle"!==a&&(this.extraTopMargin=!0))}function e(a){var d=a.options.rangeSelector;a=this.extraBottomMargin;var h=this.extraTopMargin,b=this.rangeSelector;d&&d.enabled&&!J(b)&&this.options.rangeSelector&&(this.options.rangeSelector.enabled=!0,this.rangeSelector=b=new u(this));this.extraTopMargin=this.extraBottomMargin=!1;b&&(w(this),d=d&&d.verticalAlign||b.options&&b.options.verticalAlign,b.options.floating||("bottom"===d?this.extraBottomMargin=!0:"middle"!==d&&(this.extraTopMargin=
-!0)),this.extraBottomMargin!==a||this.extraTopMargin!==h)&&(this.isDirtyBox=!0)}var g=a.defaultOptions,p=a.setOptions,c=z.addEvent,J=z.defined,f=z.extend,D=z.find,E=z.isNumber,C=z.merge,F=z.pick,x=[],G=[],u;return{compose:function(a,d,h){u=h;-1===G.indexOf(a)&&(G.push(a),a.prototype.minFromRange=v);-1===G.indexOf(d)&&(G.push(d),c(d,"afterGetContainer",t),c(d,"beforeRender",B),c(d,"destroy",y),c(d,"getMargins",r),c(d,"render",m),c(d,"update",e),d.prototype.callbacks.push(w));-1===G.indexOf(p)&&(f(g,
-{rangeSelector:q.rangeSelector}),f(g.lang,q.lang))}}});C(a,"Stock/RangeSelector/RangeSelector.js",[a["Core/Axis/Axis.js"],a["Core/Defaults.js"],a["Core/Globals.js"],a["Stock/RangeSelector/RangeSelectorComposition.js"],a["Core/Renderer/SVG/SVGElement.js"],a["Core/Utilities.js"]],function(a,q,z,v,t,B){function w(a){if(-1!==a.indexOf("%L"))return"text";var d="aAdewbBmoyY".split("").some(function(b){return-1!==a.indexOf("%"+b)}),h="HkIlMS".split("").some(function(b){return-1!==a.indexOf("%"+b)});return d&&
-h?"datetime-local":d?"date":h?"time":"text"}var y=q.defaultOptions,r=B.addEvent,m=B.createElement,e=B.css,g=B.defined,p=B.destroyObjectProperties,c=B.discardElement,J=B.extend,f=B.fireEvent,D=B.isNumber,E=B.merge,C=B.objectEach,F=B.pad,x=B.pick,G=B.pInt,u=B.splat;q=function(){function l(a){this.buttons=void 0;this.buttonOptions=l.prototype.defaultButtons;this.initialButtonGroupWidth=0;this.options=void 0;this.chart=a;this.init(a)}l.compose=function(a,h){v.compose(a,h,l)};l.prototype.clickButton=function(d,
-h){var b=this.chart,n=this.buttonOptions[d],k=b.xAxis[0],c=b.scroller&&b.scroller.getUnionExtremes()||k||{},e=n.type,l=n.dataGrouping,m=c.dataMin,p=c.dataMax,w=k&&Math.round(Math.min(k.max,x(p,k.max)));c=n._range;var v,I=!0;if(null!==m&&null!==p){b.fixedRange=c;this.setSelected(d);l&&(this.forcedDataGrouping=!0,a.prototype.setDataGrouping.call(k||{chart:this.chart},l,!1),this.frozenStates=n.preserveDataGrouping);if("month"===e||"year"===e)if(k){e={range:n,max:w,chart:b,dataMin:m,dataMax:p};var q=
-k.minFromRange.call(e);D(e.newMax)&&(w=e.newMax);I=!1}else c=n;else if(c)q=Math.max(w-c,m),w=Math.min(q+c,p),I=!1;else if("ytd"===e)if(k){if("undefined"===typeof p||"undefined"===typeof m)m=Number.MAX_VALUE,p=Number.MIN_VALUE,b.series.forEach(function(a){if(a=a.xData)m=Math.min(a[0],m),p=Math.max(a[a.length-1],p)}),h=!1;e=this.getYTDExtremes(p,m,b.time.useUTC);q=v=e.min;w=e.max}else{this.deferredYTDClick=d;return}else"all"===e&&k&&(b.navigator&&b.navigator.baseSeries[0]&&(b.navigator.baseSeries[0].xAxis.options.range=
-void 0),q=m,w=p);I&&n._offsetMin&&g(q)&&(q+=n._offsetMin);n._offsetMax&&g(w)&&(w+=n._offsetMax);this.dropdown&&(this.dropdown.selectedIndex=d+1);if(k)k.setExtremes(q,w,x(h,!0),void 0,{trigger:"rangeSelectorButton",rangeSelectorButton:n});else{var t=u(b.options.xAxis)[0];var y=t.range;t.range=c;var B=t.min;t.min=v;r(b,"load",function(){t.range=y;t.min=B})}f(this,"afterBtnClick")}};l.prototype.setSelected=function(a){this.selected=this.options.selected=a};l.prototype.init=function(a){var d=this,b=a.options.rangeSelector,
-n=b.buttons||d.defaultButtons.slice(),k=b.selected,c=function(){var a=d.minInput,b=d.maxInput;a&&a.blur&&f(a,"blur");b&&b.blur&&f(b,"blur")};d.chart=a;d.options=b;d.buttons=[];d.buttonOptions=n;this.eventsToUnbind=[];this.eventsToUnbind.push(r(a.container,"mousedown",c));this.eventsToUnbind.push(r(a,"resize",c));n.forEach(d.computeButtonRange);"undefined"!==typeof k&&n[k]&&this.clickButton(k,!1);this.eventsToUnbind.push(r(a,"load",function(){a.xAxis&&a.xAxis[0]&&r(a.xAxis[0],"setExtremes",function(b){this.max-
-this.min!==a.fixedRange&&"rangeSelectorButton"!==b.trigger&&"updatedData"!==b.trigger&&d.forcedDataGrouping&&!d.frozenStates&&this.setDataGrouping(!1,!1)})}))};l.prototype.updateButtonStates=function(){var a=this,h=this.chart,b=this.dropdown,n=h.xAxis[0],k=Math.round(n.max-n.min),c=!n.hasVisibleSeries,e=h.scroller&&h.scroller.getUnionExtremes()||n,f=e.dataMin,g=e.dataMax;h=a.getYTDExtremes(g,f,h.time.useUTC);var l=h.min,m=h.max,r=a.selected,p=a.options.allButtonsEnabled,w=a.buttons,u=D(r);a.buttonOptions.forEach(function(d,
-h){var e=d._range,A=d.type,M=d.count||1,K=w[h],I=d._offsetMax-d._offsetMin,q=h===r,v=e>g-f,x=e<n.minRange;d=0;var t=!1,H=!1;e=e===k;("month"===A||"year"===A)&&k+36E5>=864E5*{month:28,year:365}[A]*M-I&&k-36E5<=864E5*{month:31,year:366}[A]*M+I?e=!0:"ytd"===A?(e=m-l+I===k,t=!q):"all"===A&&(e=n.max-n.min>=g-f,H=!q&&u&&e);A=!p&&(v||x||H||c);M=q&&e||e&&!u&&!t||q&&a.frozenStates;A?d=3:M&&(u=!0,d=2);K.state!==d&&(K.setState(d),b&&(b.options[h+1].disabled=A,2===d&&(b.selectedIndex=h+1)),0===d&&r===h&&a.setSelected())})};
-l.prototype.computeButtonRange=function(a){var d=a.type,b=a.count||1,n={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5};if(n[d])a._range=n[d]*b;else if("month"===d||"year"===d)a._range=864E5*{month:30,year:365}[d]*b;a._offsetMin=x(a.offsetMin,0);a._offsetMax=x(a.offsetMax,0);a._range+=a._offsetMax-a._offsetMin};l.prototype.getInputValue=function(a){a="min"===a?this.minInput:this.maxInput;var d=this.chart.options.rangeSelector,b=this.chart.time;return a?("text"===a.type&&d.inputDateParser||
-this.defaultInputDateParser)(a.value,b.useUTC,b):0};l.prototype.setInputValue=function(a,h){var b=this.options,d=this.chart.time,k="min"===a?this.minInput:this.maxInput;a="min"===a?this.minDateBox:this.maxDateBox;if(k){var c=k.getAttribute("data-hc-time");c=g(c)?Number(c):void 0;g(h)&&(g(c)&&k.setAttribute("data-hc-time-previous",c),k.setAttribute("data-hc-time",h),c=h);k.value=d.dateFormat(this.inputTypeFormats[k.type]||b.inputEditDateFormat,c);a&&a.attr({text:d.dateFormat(b.inputDateFormat,c)})}};
-l.prototype.setInputExtremes=function(a,h,b){if(a="min"===a?this.minInput:this.maxInput){var d=this.inputTypeFormats[a.type],k=this.chart.time;d&&(h=k.dateFormat(d,h),a.min!==h&&(a.min=h),b=k.dateFormat(d,b),a.max!==b&&(a.max=b))}};l.prototype.showInput=function(a){var d="min"===a?this.minDateBox:this.maxDateBox;if((a="min"===a?this.minInput:this.maxInput)&&d&&this.inputGroup){var b="text"===a.type,n=this.inputGroup,k=n.translateX;n=n.translateY;var c=this.options.inputBoxWidth;e(a,{width:b?d.width+
-(c?-2:20)+"px":"auto",height:b?d.height-2+"px":"auto",border:"2px solid silver"});b&&c?e(a,{left:k+d.x+"px",top:n+"px"}):e(a,{left:Math.min(Math.round(d.x+k-(a.offsetWidth-d.width)/2),this.chart.chartWidth-a.offsetWidth)+"px",top:n-(a.offsetHeight-d.height)/2+"px"})}};l.prototype.hideInput=function(a){(a="min"===a?this.minInput:this.maxInput)&&e(a,{top:"-9999em",border:0,width:"1px",height:"1px"})};l.prototype.defaultInputDateParser=function(a,c,b){var d=a.split("/").join("-").split(" ").join("T");
--1===d.indexOf("T")&&(d+="T00:00");if(c)d+="Z";else{var k;if(k=z.isSafari)k=d,k=!(6<k.length&&(k.lastIndexOf("-")===k.length-6||k.lastIndexOf("+")===k.length-6));k&&(k=(new Date(d)).getTimezoneOffset()/60,d+=0>=k?"+".concat(F(-k),":00"):"-".concat(F(k),":00"))}d=Date.parse(d);D(d)||(a=a.split("-"),d=Date.UTC(G(a[0]),G(a[1])-1,G(a[2])));b&&c&&D(d)&&(d+=b.getTimezoneOffset(d));return d};l.prototype.drawInput=function(a){function d(){var d=c.maxInput,n=c.minInput,k=b.xAxis[0],h=b.scroller&&b.scroller.xAxis?
-b.scroller.xAxis:k,e=h.dataMin;h=h.dataMax;var f=c.getInputValue(a);f!==Number(u.getAttribute("data-hc-time-previous"))&&D(f)&&(u.setAttribute("data-hc-time-previous",f),r&&d&&D(e)?f>Number(d.getAttribute("data-hc-time"))?f=void 0:f<e&&(f=e):n&&D(h)&&(f<Number(n.getAttribute("data-hc-time"))?f=void 0:f>h&&(f=h)),"undefined"!==typeof f&&k.setExtremes(r?f:k.min,r?k.max:f,void 0,void 0,{trigger:"rangeSelectorInput"}))}var b=this.chart,n=this.div,k=this.inputGroup,c=this,f=b.renderer.style||{},g=b.renderer,
-l=b.options.rangeSelector,r="min"===a,p=y.lang[r?"rangeSelectorFrom":"rangeSelectorTo"]||"";p=g.label(p,0).addClass("highcharts-range-label").attr({padding:p?2:0,height:p?l.inputBoxHeight:0}).add(k);g=g.label("",0).addClass("highcharts-range-input").attr({padding:2,width:l.inputBoxWidth,height:l.inputBoxHeight,"text-align":"center"}).on("click",function(){c.showInput(a);c[a+"Input"].focus()});b.styledMode||g.attr({stroke:l.inputBoxBorderColor,"stroke-width":1});g.add(k);var u=m("input",{name:a,className:"highcharts-range-selector"},
-void 0,n);u.setAttribute("type",w(l.inputDateFormat||"%b %e, %Y"));b.styledMode||(p.css(E(f,l.labelStyle)),g.css(E({color:"#333333"},f,l.inputStyle)),e(u,J({position:"absolute",border:0,boxShadow:"0 0 15px rgba(0,0,0,0.3)",width:"1px",height:"1px",padding:0,textAlign:"center",fontSize:f.fontSize,fontFamily:f.fontFamily,top:"-9999em"},l.inputStyle)));u.onfocus=function(){c.showInput(a)};u.onblur=function(){u===z.doc.activeElement&&d();c.hideInput(a);c.setInputValue(a);u.blur()};var I=!1;u.onchange=
-function(){I||(d(),c.hideInput(a),u.blur())};u.onkeypress=function(a){13===a.keyCode&&d()};u.onkeydown=function(a){I=!0;38!==a.keyCode&&40!==a.keyCode||d()};u.onkeyup=function(){I=!1};return{dateBox:g,input:u,label:p}};l.prototype.getPosition=function(){var a=this.chart,c=a.options.rangeSelector;a="top"===c.verticalAlign?a.plotTop-a.axisOffset[0]:0;return{buttonTop:a+c.buttonPosition.y,inputTop:a+c.inputPosition.y-10}};l.prototype.getYTDExtremes=function(a,c,b){var d=this.chart.time,k=new d.Date(a),
-h=d.get("FullYear",k);b=b?d.Date.UTC(h,0,1):+new d.Date(h,0,1);c=Math.max(c,b);k=k.getTime();return{max:Math.min(a||k,k),min:c}};l.prototype.render=function(a,c){var b=this.chart,d=b.renderer,k=b.container,h=b.options,e=h.rangeSelector,f=x(h.chart.style&&h.chart.style.zIndex,0)+1;h=e.inputEnabled;if(!1!==e.enabled){this.rendered||(this.group=d.g("range-selector-group").attr({zIndex:7}).add(),this.div=m("div",void 0,{position:"relative",height:0,zIndex:f}),this.buttonOptions.length&&this.renderButtons(),
-k.parentNode&&k.parentNode.insertBefore(this.div,k),h&&(this.inputGroup=d.g("input-group").add(this.group),d=this.drawInput("min"),this.minDateBox=d.dateBox,this.minLabel=d.label,this.minInput=d.input,d=this.drawInput("max"),this.maxDateBox=d.dateBox,this.maxLabel=d.label,this.maxInput=d.input));if(h&&(this.setInputValue("min",a),this.setInputValue("max",c),a=b.scroller&&b.scroller.getUnionExtremes()||b.xAxis[0]||{},g(a.dataMin)&&g(a.dataMax)&&(b=b.xAxis[0].minRange||0,this.setInputExtremes("min",
-a.dataMin,Math.min(a.dataMax,this.getInputValue("max"))-b),this.setInputExtremes("max",Math.max(a.dataMin,this.getInputValue("min"))+b,a.dataMax)),this.inputGroup)){var l=0;[this.minLabel,this.minDateBox,this.maxLabel,this.maxDateBox].forEach(function(a){if(a){var b=a.getBBox().width;b&&(a.attr({x:l}),l+=b+e.inputSpacing)}})}this.alignElements();this.rendered=!0}};l.prototype.renderButtons=function(){var a=this,c=this.buttons,b=this.options,n=y.lang,k=this.chart.renderer,e=E(b.buttonTheme),g=e&&e.states,
-l=e.width||28;delete e.width;delete e.states;this.buttonGroup=k.g("range-selector-buttons").add(this.group);var p=this.dropdown=m("select",void 0,{position:"absolute",width:"1px",height:"1px",padding:0,border:0,top:"-9999em",cursor:"pointer",opacity:.0001},this.div);r(p,"touchstart",function(){p.style.fontSize="16px"});[[z.isMS?"mouseover":"mouseenter"],[z.isMS?"mouseout":"mouseleave"],["change","click"]].forEach(function(b){var d=b[0],k=b[1];r(p,d,function(){var b=c[a.currentButtonIndex()];b&&f(b.element,
-k||d)})});this.zoomText=k.label(n&&n.rangeSelectorZoom||"",0).attr({padding:b.buttonTheme.padding,height:b.buttonTheme.height,paddingLeft:0,paddingRight:0}).add(this.buttonGroup);this.chart.styledMode||(this.zoomText.css(b.labelStyle),e["stroke-width"]=x(e["stroke-width"],0));m("option",{textContent:this.zoomText.textStr,disabled:!0},void 0,p);this.buttonOptions.forEach(function(b,d){m("option",{textContent:b.title||b.text},void 0,p);c[d]=k.button(b.text,0,0,function(k){var c=b.events&&b.events.click,
-n;c&&(n=c.call(b,k));!1!==n&&a.clickButton(d);a.isActive=!0},e,g&&g.hover,g&&g.select,g&&g.disabled).attr({"text-align":"center",width:l}).add(a.buttonGroup);b.title&&c[d].attr("title",b.title)})};l.prototype.alignElements=function(){var a=this,c=this.buttonGroup,b=this.buttons,n=this.chart,k=this.group,e=this.inputGroup,f=this.options,g=this.zoomText,l=n.options,m=l.exporting&&!1!==l.exporting.enabled&&l.navigation&&l.navigation.buttonOptions;l=f.buttonPosition;var p=f.inputPosition,r=f.verticalAlign,
-u=function(b,d){return m&&a.titleCollision(n)&&"top"===r&&"right"===d.align&&d.y-b.getBBox().height-12<(m.y||0)+(m.height||0)+n.spacing[0]?-40:0},w=n.plotLeft;if(k&&l&&p){var q=l.x-n.spacing[3];if(c){this.positionButtons();if(!this.initialButtonGroupWidth){var v=0;g&&(v+=g.getBBox().width+5);b.forEach(function(a,d){v+=a.width;d!==b.length-1&&(v+=f.buttonSpacing)});this.initialButtonGroupWidth=v}w-=n.spacing[3];this.updateButtonStates();g=u(c,l);this.alignButtonGroup(g);k.placed=c.placed=n.hasLoaded}c=
-0;e&&(c=u(e,p),"left"===p.align?q=w:"right"===p.align&&(q=-Math.max(n.axisOffset[1],-c)),e.align({y:p.y,width:e.getBBox().width,align:p.align,x:p.x+q-2},!0,n.spacingBox),e.placed=n.hasLoaded);this.handleCollision(c);k.align({verticalAlign:r},!0,n.spacingBox);e=k.alignAttr.translateY;c=k.getBBox().height+20;u=0;"bottom"===r&&(u=(u=n.legend&&n.legend.options)&&"bottom"===u.verticalAlign&&u.enabled&&!u.floating?n.legend.legendHeight+x(u.margin,10):0,c=c+u-20,u=e-c-(f.floating?0:f.y)-(n.titleOffset?n.titleOffset[2]:
-0)-10);if("top"===r)f.floating&&(u=0),n.titleOffset&&n.titleOffset[0]&&(u=n.titleOffset[0]),u+=n.margin[0]-n.spacing[0]||0;else if("middle"===r)if(p.y===l.y)u=e;else if(p.y||l.y)u=0>p.y||0>l.y?u-Math.min(p.y,l.y):e-c;k.translate(f.x,f.y+Math.floor(u));l=this.minInput;p=this.maxInput;e=this.dropdown;f.inputEnabled&&l&&p&&(l.style.marginTop=k.translateY+"px",p.style.marginTop=k.translateY+"px");e&&(e.style.marginTop=k.translateY+"px")}};l.prototype.alignButtonGroup=function(a,c){var b=this.chart,d=
-this.buttonGroup,k=this.options.buttonPosition,e=b.plotLeft-b.spacing[3],h=k.x-b.spacing[3];"right"===k.align?h+=a-e:"center"===k.align&&(h-=e/2);d&&d.align({y:k.y,width:x(c,this.initialButtonGroupWidth),align:k.align,x:h},!0,b.spacingBox)};l.prototype.positionButtons=function(){var a=this.buttons,c=this.chart,b=this.options,n=this.zoomText,k=c.hasLoaded?"animate":"attr",e=b.buttonPosition,f=c=c.plotLeft;n&&"hidden"!==n.visibility&&(n[k]({x:x(c+e.x,c)}),f+=e.x+n.getBBox().width+5);n=0;for(e=this.buttonOptions.length;n<
-e;++n)if("hidden"!==a[n].visibility)a[n][k]({x:f}),f+=a[n].width+b.buttonSpacing;else a[n][k]({x:c})};l.prototype.handleCollision=function(a){var d=this,b=this.chart,c=this.buttonGroup,k=this.inputGroup,e=this.options,f=e.buttonPosition,g=e.dropdown,l=e.inputPosition;e=function(){var a=0;d.buttons.forEach(function(b){b=b.getBBox();b.width>a&&(a=b.width)});return a};var m=function(b){if(k&&c){var d=k.alignAttr.translateX+k.alignOptions.x-a+k.getBBox().x+2,n=k.alignOptions.width,e=c.alignAttr.translateX+
-c.getBBox().x;return e+b>d&&d+n>e&&f.y<l.y+k.getBBox().height}return!1},p=function(){k&&c&&k.attr({translateX:k.alignAttr.translateX+(b.axisOffset[1]>=-a?0:-a),translateY:k.alignAttr.translateY+c.getBBox().height+10})};if(c){if("always"===g){this.collapseButtons(a);m(e())&&p();return}"never"===g&&this.expandButtons()}k&&c?l.align===f.align||m(this.initialButtonGroupWidth+20)?"responsive"===g?(this.collapseButtons(a),m(e())&&p()):p():"responsive"===g&&this.expandButtons():c&&"responsive"===g&&(this.initialButtonGroupWidth>
-b.plotWidth?this.collapseButtons(a):this.expandButtons())};l.prototype.collapseButtons=function(a){var d=this.buttons,b=this.buttonOptions,c=this.chart,k=this.dropdown,e=this.options,f=this.zoomText,g=c.userOptions.rangeSelector&&c.userOptions.rangeSelector.buttonTheme||{},l=function(a){return{text:a?""+a+" \u25be":"\u25be",width:"auto",paddingLeft:x(e.buttonTheme.paddingLeft,g.padding,8),paddingRight:x(e.buttonTheme.paddingRight,g.padding,8)}};f&&f.hide();var m=!1;b.forEach(function(a,b){b=d[b];
-2!==b.state?b.hide():(b.show(),b.attr(l(a.text)),m=!0)});m||(k&&(k.selectedIndex=0),d[0].show(),d[0].attr(l(this.zoomText&&this.zoomText.textStr)));b=e.buttonPosition.align;this.positionButtons();"right"!==b&&"center"!==b||this.alignButtonGroup(a,d[this.currentButtonIndex()].getBBox().width);this.showDropdown()};l.prototype.expandButtons=function(){var a=this.buttons,c=this.buttonOptions,b=this.options,n=this.zoomText;this.hideDropdown();n&&n.show();c.forEach(function(d,c){c=a[c];c.show();c.attr({text:d.text,
-width:b.buttonTheme.width||28,paddingLeft:x(b.buttonTheme.paddingLeft,"unset"),paddingRight:x(b.buttonTheme.paddingRight,"unset")});2>c.state&&c.setState(0)});this.positionButtons()};l.prototype.currentButtonIndex=function(){var a=this.dropdown;return a&&0<a.selectedIndex?a.selectedIndex-1:0};l.prototype.showDropdown=function(){var a=this.buttonGroup,c=this.buttons,b=this.chart,n=this.dropdown;if(a&&n){var k=a.translateX;a=a.translateY;c=c[this.currentButtonIndex()].getBBox();e(n,{left:b.plotLeft+
-k+"px",top:a+.5+"px",width:c.width+"px",height:c.height+"px"});this.hasVisibleDropdown=!0}};l.prototype.hideDropdown=function(){var a=this.dropdown;a&&(e(a,{top:"-9999em",width:"1px",height:"1px"}),this.hasVisibleDropdown=!1)};l.prototype.getHeight=function(){var a=this.options,c=this.group,b=a.y,n=a.buttonPosition.y,k=a.inputPosition.y;if(a.height)return a.height;this.alignElements();a=c?c.getBBox(!0).height+13+b:0;c=Math.min(k,n);if(0>k&&0>n||0<k&&0<n)a+=Math.abs(c);return a};l.prototype.titleCollision=
-function(a){return!(a.options.title.text||a.options.subtitle.text)};l.prototype.update=function(a){var d=this.chart;E(!0,d.options.rangeSelector,a);this.destroy();this.init(d);this.render()};l.prototype.destroy=function(){var a=this,e=a.minInput,b=a.maxInput;a.eventsToUnbind&&(a.eventsToUnbind.forEach(function(a){return a()}),a.eventsToUnbind=void 0);p(a.buttons);e&&(e.onfocus=e.onblur=e.onchange=null);b&&(b.onfocus=b.onblur=b.onchange=null);C(a,function(b,d){b&&"chart"!==d&&(b instanceof t?b.destroy():
-b instanceof window.HTMLElement&&c(b));b!==l.prototype[d]&&(a[d]=null)},this)};return l}();J(q.prototype,{defaultButtons:[{type:"month",count:1,text:"1m",title:"View 1 month"},{type:"month",count:3,text:"3m",title:"View 3 months"},{type:"month",count:6,text:"6m",title:"View 6 months"},{type:"ytd",text:"YTD",title:"View year to date"},{type:"year",count:1,text:"1y",title:"View 1 year"},{type:"all",text:"All",title:"View all"}],inputTypeFormats:{"datetime-local":"%Y-%m-%dT%H:%M:%S",date:"%Y-%m-%d",
-time:"%H:%M:%S"}});"";return q});C(a,"Core/Axis/OrdinalAxis.js",[a["Core/Axis/Axis.js"],a["Core/Globals.js"],a["Core/Series/Series.js"],a["Core/Utilities.js"]],function(a,q,z,v){var t=v.addEvent,B=v.correctFloat,w=v.css,y=v.defined,r=v.error,m=v.pick,e=v.timeUnits,g=[],p;(function(a){function c(a,d,c,h,f,g,l){void 0===f&&(f=[]);void 0===g&&(g=0);var b={},k=this.options.tickPixelInterval,n=this.chart.time,m=[],p,u,A=0,w=[],q=-Number.MAX_VALUE;if(!this.options.ordinal&&!this.options.breaks||!f||3>f.length||
-"undefined"===typeof d)return n.getTimeTicks.apply(n,arguments);var v=f.length;for(p=0;p<v;p++){var x=p&&f[p-1]>c;f[p]<d&&(A=p);if(p===v-1||f[p+1]-f[p]>5*g||x){if(f[p]>q){for(u=n.getTimeTicks(a,f[A],f[p],h);u.length&&u[0]<=q;)u.shift();u.length&&(q=u[u.length-1]);m.push(w.length);w=w.concat(u)}A=p+1}if(x)break}if(u){u=u.info;if(l&&u.unitRange<=e.hour){p=w.length-1;for(A=1;A<p;A++)if(n.dateFormat("%d",w[A])!==n.dateFormat("%d",w[A-1])){b[w[A]]="day";var t=!0}t&&(b[w[0]]="day");u.higherRanks=b}u.segmentStarts=
-m;w.info=u}else r(12,!1,this.chart);if(l&&y(k)){u=w.length;n=[];A=[];p=void 0;for(t=u;t--;)m=this.translate(w[t]),p&&(A[t]=p-m),n[t]=p=m;A.sort();A=A[Math.floor(A.length/2)];A<.6*k&&(A=null);t=w[u-1]>c?u-1:u;for(p=void 0;t--;)m=n[t],u=Math.abs(p-m),p&&u<.8*k&&(null===A||u<.8*A)?(b[w[t]]&&!b[w[t+1]]?(u=t+1,p=m):u=t,w.splice(u,1)):p=m}return w}function f(a){var b=this.ordinal.positions;if(!b)return a;var d=b.length-1;if(0>a)a=b[0];else if(a>d)a=b[d];else{d=Math.floor(a);var c=a-d}return"undefined"!==
-typeof c&&"undefined"!==typeof b[d]?b[d]+(c?c*(b[d+1]-b[d]):0):a}function p(a){var b=this.ordinal,d=b.positions;if(!d)return a;var c=(a-(this.old?this.old.min:this.min))*(this.old?this.old.transA:this.transA)+this.minPixelPadding;0<c&&c<this.left+this.len||(b.extendedOrdinalPositions||(b.extendedOrdinalPositions=b.getExtendedPositions()),d=b.extendedOrdinalPositions);if(d&&d.length){a=b.getIndexOfPoint(c,d);b=B(a%1);if(0<=a&&a<d.length-1)return d[Math.floor(a)]+b*(d[Math.ceil(a)]-d[Math.floor(a)]);
-b=d.length;c=d[0];d=d[b-1];var e=(d-c)/(b-1);return 0>a?c+e*a:d+e*(a-b)}return a}function v(b,d){var c=a.Additions.findIndexOf(b,d,!0);return b[c]===d?c:c+(d-b[c])/(b[c+1]-b[c])}function E(){this.ordinal||(this.ordinal=new a.Additions(this))}function F(){this.isXAxis&&y(this.options.overscroll)&&this.max===this.dataMax&&(!this.chart.mouseIsDown||this.isInternal)&&(!this.eventArgs||this.eventArgs&&"navigator"!==this.eventArgs.trigger)&&(this.max+=this.options.overscroll,!this.isInternal&&y(this.userMin)&&
-(this.min+=this.options.overscroll))}function x(){this.horiz&&!this.isDirty&&(this.isDirty=this.isOrdinal&&this.chart.navigator&&!this.chart.navigator.adaptToUpdatedData)}function G(){this.ordinal&&(this.ordinal.beforeSetTickPositions(),this.tickInterval=this.ordinal.postProcessTickInterval(this.tickInterval))}function u(a){var b=this.xAxis[0],d=b.options.overscroll,c=a.originalEvent.chartX,e=this.options.chart.panning,f=!1;if(e&&"y"!==e.type&&b.options.ordinal&&b.series.length){var h=this.mouseDownX,
-g=b.getExtremes(),l=g.dataMax,m=g.min,p=g.max,u=this.hoverPoints,r=b.closestPointRange||b.ordinal&&b.ordinal.overscrollPointsRange;h=(h-c)/(b.translationSlope*(b.ordinal.slope||r));r=b.ordinal.getExtendedPositions();r={ordinal:{positions:r,extendedOrdinalPositions:r}};var q=b.index2val,v=b.val2lin,t=void 0,x=t=void 0,y=void 0;r.ordinal.positions?1<Math.abs(h)&&(u&&u.forEach(function(a){a.setState()}),0>h?(x=r,y=b.ordinal.positions?b:r):(x=b.ordinal.positions?b:r,y=r),t=y.ordinal.positions,l>t[t.length-
-1]&&t.push(l),this.fixedRange=p-m,t=b.navigatorAxis.toFixedRange(void 0,void 0,q.apply(x,[v.apply(x,[m,!0])+h]),q.apply(y,[v.apply(y,[p,!0])+h])),t.min>=Math.min(g.dataMin,m)&&t.max<=Math.max(l,p)+d&&b.setExtremes(t.min,t.max,!0,!1,{trigger:"pan"}),this.mouseDownX=c,w(this.container,{cursor:"move"})):f=!0}else f=!0;f||e&&/y/.test(e.type)?d&&(b.max=b.dataMax+d):a.preventDefault()}function l(){var a=this.xAxis;a&&a.options.ordinal&&(delete a.ordinal.index,delete a.ordinal.extendedOrdinalPositions)}
-function d(a,d){var b=this.ordinal,c=b.positions,e=b.slope,f=b.extendedOrdinalPositions;if(!c)return a;var n=c.length;if(c[0]<=a&&c[n-1]>=a)a=v(c,a);else{f||(f=b.getExtendedPositions&&b.getExtendedPositions(),b.extendedOrdinalPositions=f);if(!f||!f.length)return a;n=f.length;e||(e=(f[n-1]-f[0])/n);c=v(f,c[0]);a>=f[0]&&a<=f[n-1]?a=v(f,a)-c:a<f[0]?(a=f[0]-a,a=-c-a/e):(a-=f[n-1],a=a/e+n-c)}return d?a:e*(a||0)+b.offset}a.compose=function(a,e,k){if(-1===g.indexOf(a)){g.push(a);var b=a.prototype;b.getTimeTicks=
-c;b.index2val=f;b.lin2val=p;b.val2lin=d;b.ordinal2lin=b.val2lin;t(a,"afterInit",E);t(a,"foundExtremes",F);t(a,"afterSetScale",x);t(a,"initialAxisTranslation",G)}-1===g.indexOf(k)&&(g.push(k),t(k,"pan",u));-1===g.indexOf(e)&&(g.push(e),t(e,"updatedData",l));return a};var h=function(){function a(a){this.index={};this.axis=a}a.prototype.beforeSetTickPositions=function(){var a=this.axis,b=a.ordinal,d=a.getExtremes(),c=d.min,e=d.max,f=a.isXAxis&&!!a.options.breaks;d=a.options.ordinal;var h=a.chart.options.chart.ignoreHiddenSeries,
-g,l,p=[],u=Number.MAX_VALUE,r=!1,w=!1,t=!1;if(d||f){var q=0;a.series.forEach(function(a,b){g=[];0<b&&"highcharts-navigator-series"!==a.options.id&&1<a.processedXData.length&&(w=q!==a.processedXData[1]-a.processedXData[0]);q=a.processedXData[1]-a.processedXData[0];a.boosted&&(t=a.boosted);if(!(h&&!1===a.visible||!1===a.takeOrdinalPosition&&!f)&&(p=p.concat(a.processedXData),v=p.length,p.sort(function(a,b){return a-b}),u=Math.min(u,m(a.closestPointRange,u)),v)){for(b=0;b<v-1;)p[b]!==p[b+1]&&g.push(p[b+
-1]),b++;g[0]!==p[0]&&g.unshift(p[0]);p=g}});w&&t&&(p.pop(),p.shift());var v=p.length;if(2<v){var x=p[1]-p[0];for(l=v-1;l--&&!r;)p[l+1]-p[l]!==x&&(r=!0);!a.options.keepOrdinalPadding&&(p[0]-c>x||e-p[p.length-1]>x)&&(r=!0)}else a.options.overscroll&&(2===v?u=p[1]-p[0]:1===v?(u=a.options.overscroll,p=[p[0],p[0]+u]):u=b.overscrollPointsRange);r||a.forceOrdinal?(a.options.overscroll&&(b.overscrollPointsRange=u,p=p.concat(b.getOverscrollPositions())),b.positions=p,x=a.ordinal2lin(Math.max(c,p[0]),!0),l=
-Math.max(a.ordinal2lin(Math.min(e,p[p.length-1]),!0),1),b.slope=e=(e-c)/(l-x),b.offset=c-x*e):(b.overscrollPointsRange=m(a.closestPointRange,b.overscrollPointsRange),b.positions=a.ordinal.slope=b.offset=void 0)}a.isOrdinal=d&&r;b.groupIntervalFactor=null};a.findIndexOf=function(a,b,d){for(var c=0,e=a.length-1,f;c<e;)f=Math.ceil((c+e)/2),a[f]<=b?c=f:e=f-1;return a[c]===b?c:d?c:-1};a.prototype.getExtendedPositions=function(){var a=this,b=a.axis,d=b.constructor.prototype,c=b.chart,e=b.series[0].currentDataGrouping,
-f=e?e.count+e.unitName:"raw",h=b.options.overscroll,g=b.getExtremes(),l=void 0,p=a.index;p||(p=a.index={});if(!p[f]){var m={series:[],chart:c,forceOrdinal:!1,getExtremes:function(){return{min:g.dataMin,max:g.dataMax+h}},getGroupPixelWidth:d.getGroupPixelWidth,getTimeTicks:d.getTimeTicks,options:{ordinal:!0},ordinal:{getGroupIntervalFactor:this.getGroupIntervalFactor},ordinal2lin:d.ordinal2lin,getIndexOfPoint:d.getIndexOfPoint,val2lin:d.val2lin};m.ordinal.axis=m;b.series.forEach(function(b){l={xAxis:m,
-xData:b.xData.slice(),chart:c,destroyGroupedData:q.noop,getProcessedData:z.prototype.getProcessedData,applyGrouping:z.prototype.applyGrouping};l.xData=l.xData.concat(a.getOverscrollPositions());l.options={dataGrouping:e?{firstAnchor:"firstPoint",anchor:"middle",lastAnchor:"lastPoint",enabled:!0,forced:!0,approximation:"open",units:[[e.unitName,[e.count]]]}:{enabled:!1}};m.series.push(l);b.processData.apply(l)});l.closestPointRange!==l.basePointRange&&l.currentDataGrouping&&(m.forceOrdinal=!0);b.ordinal.beforeSetTickPositions.apply({axis:m});
-p[f]=m.ordinal.positions}return p[f]};a.prototype.getGroupIntervalFactor=function(a,b,d){d=d.processedXData;var c=d.length,e=[];var f=this.groupIntervalFactor;if(!f){for(f=0;f<c-1;f++)e[f]=d[f+1]-d[f];e.sort(function(a,b){return a-b});e=e[Math.floor(c/2)];a=Math.max(a,d[0]);b=Math.min(b,d[c-1]);this.groupIntervalFactor=f=c*e/(b-a)}return f};a.prototype.getIndexOfPoint=function(b,d){var c=this.axis,e=this.positions?this.positions[0]:0,f=c.series[0].points&&c.series[0].points[0]&&c.series[0].points[0].plotX||
-c.minPixelPadding;1<c.series.length&&c.series.forEach(function(a){a.points&&y(a.points[0])&&y(a.points[0].plotX)&&a.points[0].plotX<f&&a.points[0].plotX>=m(c.min,-Infinity)&&(f=a.points[0].plotX)});b=(b-f)/(c.translationSlope*(this.slope||c.closestPointRange||this.overscrollPointsRange));return a.findIndexOf(d,e)+b};a.prototype.getOverscrollPositions=function(){var a=this.axis,b=a.options.overscroll,d=this.overscrollPointsRange,c=[],e=a.dataMax;if(y(d))for(;e<=a.dataMax+b;)e+=d,c.push(e);return c};
-a.prototype.postProcessTickInterval=function(a){var b=this.axis,d=this.slope;return d?b.options.breaks?b.closestPointRange||a:a/(d/b.closestPointRange):a};return a}();a.Additions=h})(p||(p={}));return p});C(a,"Series/HLC/HLCPoint.js",[a["Core/Series/SeriesRegistry.js"]],function(a){var q=this&&this.__extends||function(){var a=function(v,t){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,w){a.__proto__=w}||function(a,w){for(var t in w)w.hasOwnProperty(t)&&(a[t]=w[t])};return a(v,
-t)};return function(v,t){function q(){this.constructor=v}a(v,t);v.prototype=null===t?Object.create(t):(q.prototype=t.prototype,new q)}}();return function(a){function v(){var t=null!==a&&a.apply(this,arguments)||this;t.close=void 0;t.high=void 0;t.low=void 0;t.options=void 0;t.plotClose=void 0;t.series=void 0;return t}q(v,a);return v}(a.seriesTypes.column.prototype.pointClass)});C(a,"Series/HLC/HLCSeriesDefaults.js",[],function(){"";return{lineWidth:1,tooltip:{pointFormat:'<span style="color:{point.color}">\u25cf</span> <b> {series.name}</b><br/>High: {point.high}<br/>Low: {point.low}<br/>Close: {point.close}<br/>'},
-threshold:null,states:{hover:{lineWidth:3}},stickyTracking:!0}});C(a,"Series/HLC/HLCSeries.js",[a["Series/HLC/HLCPoint.js"],a["Series/HLC/HLCSeriesDefaults.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,q,z,v){var t=this&&this.__extends||function(){var a=function(m,e){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,e){a.__proto__=e}||function(a,e){for(var c in e)e.hasOwnProperty(c)&&(a[c]=e[c])};return a(m,e)};return function(m,e){function g(){this.constructor=
-m}a(m,e);m.prototype=null===e?Object.create(e):(g.prototype=e.prototype,new g)}}(),B=z.seriesTypes.column,w=v.extend,y=v.merge;v=function(a){function m(){var e=null!==a&&a.apply(this,arguments)||this;e.data=void 0;e.options=void 0;e.points=void 0;e.yData=void 0;return e}t(m,a);m.prototype.extendStem=function(a,g,p){var c=a[0];a=a[1];"number"===typeof c[2]&&(c[2]=Math.max(p+g,c[2]));"number"===typeof a[2]&&(a[2]=Math.min(p-g,a[2]))};m.prototype.getPointPath=function(a,g){g=g.strokeWidth();var e=a.series,
-c=g%2/2,m=Math.round(a.plotX)-c,f=Math.round(a.shapeArgs.width/2),r=[["M",m,Math.round(a.yBottom)],["L",m,Math.round(a.plotHigh)]];null!==a.close&&(a=Math.round(a.plotClose)+c,r.push(["M",m,a],["L",m+f,a]),e.extendStem(r,g/2,a));return r};m.prototype.drawSinglePoint=function(a){var e=a.series,m=e.chart,c=a.graphic;"undefined"!==typeof a.plotY&&(c||(a.graphic=c=m.renderer.path().add(e.group)),m.styledMode||c.attr(e.pointAttribs(a,a.selected&&"select")),e=e.getPointPath(a,c),c[c?"animate":"attr"]({d:e}).addClass(a.getClassName(),
-!0))};m.prototype.drawPoints=function(){this.points.forEach(this.drawSinglePoint)};m.prototype.init=function(){a.prototype.init.apply(this,arguments);this.options.stacking=void 0};m.prototype.pointAttribs=function(e,g){e=a.prototype.pointAttribs.call(this,e,g);delete e.fill;return e};m.prototype.toYData=function(a){return[a.high,a.low,a.close]};m.prototype.translate=function(){var e=this,g=e.yAxis,m=this.pointArrayMap&&this.pointArrayMap.slice()||[],c=m.map(function(a){return"plot".concat(a.charAt(0).toUpperCase()+
-a.slice(1))});c.push("yBottom");m.push("low");a.prototype.translate.apply(e);e.points.forEach(function(a){m.forEach(function(f,m){f=a[f];null!==f&&(e.dataModify&&(f=e.dataModify.modifyValue(f)),a[c[m]]=g.toPixels(f,!0))});a.tooltipPos[1]=a.plotHigh+g.pos-e.chart.plotTop})};m.defaultOptions=y(B.defaultOptions,q);return m}(B);w(v.prototype,{pointClass:a,animate:null,directTouch:!1,pointArrayMap:["high","low","close"],pointAttrToOptions:{stroke:"color","stroke-width":"lineWidth"},pointValKey:"close"});
-z.registerSeriesType("hlc",v);return v});C(a,"Series/OHLC/OHLCPoint.js",[a["Core/Series/SeriesRegistry.js"]],function(a){var q=this&&this.__extends||function(){var a=function(q,t){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,w){a.__proto__=w}||function(a,w){for(var t in w)w.hasOwnProperty(t)&&(a[t]=w[t])};return a(q,t)};return function(q,t){function v(){this.constructor=q}a(q,t);q.prototype=null===t?Object.create(t):(v.prototype=t.prototype,new v)}}();return function(a){function v(){var t=
-null!==a&&a.apply(this,arguments)||this;t.open=void 0;t.options=void 0;t.plotOpen=void 0;t.series=void 0;return t}q(v,a);v.prototype.getClassName=function(){return a.prototype.getClassName.call(this)+(this.open<this.close?" highcharts-point-up":" highcharts-point-down")};v.prototype.resolveUpColor=function(){this.open<this.close&&!this.options.color&&this.series.options.upColor&&(this.color=this.series.options.upColor)};v.prototype.resolveColor=function(){a.prototype.resolveColor.call(this);this.resolveUpColor()};
-v.prototype.getZone=function(){var t=a.prototype.getZone.call(this);this.resolveUpColor();return t};v.prototype.applyOptions=function(){a.prototype.applyOptions.apply(this,arguments);this.resolveColor&&this.resolveColor();return this};return v}(a.seriesTypes.hlc.prototype.pointClass)});C(a,"Series/OHLC/OHLCSeriesDefaults.js",[],function(){"";return{tooltip:{pointFormat:'<span style="color:{point.color}">\u25cf</span> <b> {series.name}</b><br/>Open: {point.open}<br/>High: {point.high}<br/>Low: {point.low}<br/>Close: {point.close}<br/>'}}});
-C(a,"Series/OHLC/OHLCSeries.js",[a["Series/OHLC/OHLCPoint.js"],a["Series/OHLC/OHLCSeriesDefaults.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,q,z,v){function t(a){a=a.options;var c=a.dataGrouping;c&&a.useOhlcData&&"highcharts-navigator-series"!==a.id&&(c.approximation="ohlc")}function B(a){a=a.options;a.useOhlcData&&"highcharts-navigator-series"!==a.id&&m(this,{pointValKey:p.prototype.pointValKey,pointArrayMap:p.prototype.pointArrayMap,toYData:p.prototype.toYData})}var w=
-this&&this.__extends||function(){var a=function(c,e){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var e in c)c.hasOwnProperty(e)&&(a[e]=c[e])};return a(c,e)};return function(c,e){function f(){this.constructor=c}a(c,e);c.prototype=null===e?Object.create(e):(f.prototype=e.prototype,new f)}}(),y=z.seriesTypes.hlc,r=v.addEvent,m=v.extend,e=v.merge,g=[],p=function(a){function c(){var c=null!==a&&a.apply(this,arguments)||this;c.data=void 0;c.options=
-void 0;c.points=void 0;return c}w(c,a);c.compose=function(a){for(var c=1;c<arguments.length;c++);-1===g.indexOf(a)&&(g.push(a),r(a,"afterSetOptions",t),r(a,"init",B))};c.prototype.getPointPath=function(c,e){var f=a.prototype.getPointPath.call(this,c,e);e=e.strokeWidth();var g=e%2/2,m=Math.round(c.plotX)-g,p=Math.round(c.shapeArgs.width/2);null!==c.open&&(c=Math.round(c.plotOpen)+g,f.push(["M",m,c],["L",m-p,c]),a.prototype.extendStem.call(this,f,e/2,c));return f};c.prototype.pointAttribs=function(c,
-e){e=a.prototype.pointAttribs.call(this,c,e);var f=this.options;delete e.fill;!c.options.color&&f.upColor&&c.open<c.close&&(e.stroke=f.upColor);return e};c.prototype.toYData=function(a){return[a.open,a.high,a.low,a.close]};c.defaultOptions=e(y.defaultOptions,q);return c}(y);m(p.prototype,{pointClass:a,pointArrayMap:["open","high","low","close"]});z.registerSeriesType("ohlc",p);return p});C(a,"Series/Candlestick/CandlestickSeriesDefaults.js",[a["Core/Defaults.js"],a["Core/Utilities.js"]],function(a,
-q){"";return{states:{hover:{lineWidth:2}},threshold:null,lineColor:"#000000",lineWidth:1,upColor:"#ffffff",stickyTracking:!0}});C(a,"Series/Candlestick/CandlestickSeries.js",[a["Series/Candlestick/CandlestickSeriesDefaults.js"],a["Core/Defaults.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,q,z,v){var t=this&&this.__extends||function(){var a=function(e,g){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var e in c)c.hasOwnProperty(e)&&
-(a[e]=c[e])};return a(e,g)};return function(e,g){function m(){this.constructor=e}a(e,g);e.prototype=null===g?Object.create(g):(m.prototype=g.prototype,new m)}}(),B=q.defaultOptions;q=z.seriesTypes;var w=q.column,y=q.ohlc,r=v.merge;v=function(m){function e(){var a=null!==m&&m.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}t(e,m);e.prototype.pointAttribs=function(a,e){var c=w.prototype.pointAttribs.call(this,a,e),g=this.options,f=a.open<a.close,m=g.lineColor||this.color,
-p=a.color||this.color;c["stroke-width"]=g.lineWidth;c.fill=a.options.color||(f?g.upColor||p:p);c.stroke=a.options.lineColor||(f?g.upLineColor||m:m);e&&(a=g.states[e],c.fill=a.color||c.fill,c.stroke=a.lineColor||c.stroke,c["stroke-width"]=a.lineWidth||c["stroke-width"]);return c};e.prototype.drawPoints=function(){for(var a=this.chart,e=this.yAxis.reversed,c=0,m=this.points;c<m.length;c++){var f=m[c],r=f.graphic,w=!r;if("undefined"!==typeof f.plotY){r||(f.graphic=r=a.renderer.path().add(this.group));
-this.chart.styledMode||r.attr(this.pointAttribs(f,f.selected&&"select")).shadow(this.options.shadow);var t=r.strokeWidth()%2/2;var q=Math.round(f.plotX)-t;var v=f.plotOpen;var y=f.plotClose;var u=Math.min(v,y);v=Math.max(v,y);var l=Math.round(f.shapeArgs.width/2);y=e?v!==f.yBottom:Math.round(u)!==Math.round(f.plotHigh);var d=e?Math.round(u)!==Math.round(f.plotHigh):v!==f.yBottom;u=Math.round(u)+t;v=Math.round(v)+t;t=[];t.push(["M",q-l,v],["L",q-l,u],["L",q+l,u],["L",q+l,v],["Z"],["M",q,u],["L",q,
-y?Math.round(e?f.yBottom:f.plotHigh):u],["M",q,v],["L",q,d?Math.round(e?f.plotHigh:f.yBottom):v]);r[w?"attr":"animate"]({d:t}).addClass(f.getClassName(),!0)}}};e.defaultOptions=r(y.defaultOptions,B.plotOptions,{tooltip:y.defaultOptions.tooltip},a);return e}(y);z.registerSeriesType("candlestick",v);return v});C(a,"Series/Flags/FlagsPoint.js",[a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,q){var z=this&&this.__extends||function(){var a=function(q,w){a=Object.setPrototypeOf||
-{__proto__:[]}instanceof Array&&function(a,r){a.__proto__=r}||function(a,r){for(var m in r)r.hasOwnProperty(m)&&(a[m]=r[m])};return a(q,w)};return function(q,w){function t(){this.constructor=q}a(q,w);q.prototype=null===w?Object.create(w):(t.prototype=w.prototype,new t)}}(),v=q.isNumber;return function(a){function q(){var q=null!==a&&a.apply(this,arguments)||this;q.options=void 0;q.series=void 0;q.ttBelow=!1;return q}z(q,a);q.prototype.isValid=function(){return v(this.y)||"undefined"===typeof this.y};
-q.prototype.hasNewShapeType=function(){var a=this.options.shape||this.series.options.shape;return this.graphic&&a&&a!==this.graphic.symbolKey};return q}(a.seriesTypes.column.prototype.pointClass)});C(a,"Series/Flags/FlagsSeriesDefaults.js",[],function(){"";return{pointRange:0,allowOverlapX:!1,shape:"flag",stackDistance:12,textAlign:"center",tooltip:{pointFormat:"{point.text}"},threshold:null,y:-30,fillColor:"#ffffff",lineWidth:1,states:{hover:{lineColor:"#000000",fillColor:"#ccd6eb"}},style:{fontSize:"11px",
-fontWeight:"bold"}}});C(a,"Series/Flags/FlagsSymbols.js",[a["Core/Renderer/RendererRegistry.js"]],function(a){var q;(function(q){function v(a,q,r,m,e){var g=e&&e.anchorX||a;e=e&&e.anchorY||q;var p=this.circle(g-1,e-1,2,2);p.push(["M",g,e],["L",a,q+m],["L",a,q],["L",a+r,q],["L",a+r,q+m],["L",a,q+m],["Z"]);return p}function t(a,q){a[q+"pin"]=function(r,m,e,g,p){var c=p&&p.anchorX;p=p&&p.anchorY;"circle"===q&&g>e&&(r-=Math.round((g-e)/2),e=g);var t=a[q](r,m,e,g);if(c&&p){var f=c;"circle"===q?f=r+e/2:
-(r=t[0],e=t[1],"M"===r[0]&&"L"===e[0]&&(f=(r[1]+e[1])/2));t.push(["M",f,m>p?m:m+g],["L",c,p]);t=t.concat(a.circle(c-1,p-1,2,2))}return t}}var B=[];q.compose=function(q){if(-1===B.indexOf(q)){B.push(q);var w=q.prototype.symbols;w.flag=v;t(w,"circle");t(w,"square")}var r=a.getRendererType();B.indexOf(r)&&(B.push(r),w=q.prototype.symbols,q=r.prototype.symbols,q.circlepin=w.circlepin,q.flag=w.flag.bind(w),q.squarepin=w.squarepin)}})(q||(q={}));return q});C(a,"Series/OnSeriesComposition.js",[a["Series/Column/ColumnSeries.js"],
-a["Core/Series/Series.js"],a["Core/Utilities.js"]],function(a,q,z){var v=a.prototype,t=q.prototype,B=z.defined,w=z.stableSort,y;(function(a){function m(a){return t.getPlotBox.call(this.options.onSeries&&this.chart.get(this.options.onSeries)||this,a)}function e(){v.translate.apply(this);var a=this,c=a.options,e=a.chart,f=a.points,g=c.onSeries,m=(g=g&&e.get(g))&&g.options.step,q=g&&g.points,r=e.inverted,t=a.xAxis,y=a.yAxis;e=f.length-1;var u;c=c.onKey||"y";var l=q&&q.length,d=0,h;if(g&&g.visible&&l){d=
-(g.pointXOffset||0)+(g.barW||0)/2;var b=g.currentDataGrouping;var n=q[l-1].x+(b?b.totalRange:0);w(f,function(a,b){return a.x-b.x});for(c="plot"+c[0].toUpperCase()+c.substr(1);l--&&f[e];){var k=q[l];b=f[e];b.y=k.y;if(k.x<=b.x&&"undefined"!==typeof k[c]){if(b.x<=n&&(b.plotY=k[c],k.x<b.x&&!m&&(h=q[l+1])&&"undefined"!==typeof h[c])){var A=(b.x-k.x)/(h.x-k.x);b.plotY+=A*(h[c]-k[c]);b.y+=A*(h.y-k.y)}e--;l++;if(0>e)break}}}f.forEach(function(b,c){b.plotX+=d;if("undefined"===typeof b.plotY||r)0<=b.plotX&&
-b.plotX<=t.len?r?(b.plotY=t.translate(b.x,0,1,0,1),b.plotX=B(b.y)?y.translate(b.y,0,0,0,1):0):b.plotY=(t.opposite?0:a.yAxis.len)+t.offset:b.shapeArgs={};if((u=f[c-1])&&u.plotX===b.plotX){"undefined"===typeof u.stackIndex&&(u.stackIndex=0);var e=u.stackIndex+1}b.stackIndex=e});this.onSeries=g}var g=[];a.compose=function(a){if(-1===g.indexOf(a)){g.push(a);var c=a.prototype;c.getPlotBox=m;c.translate=e}return a};a.getPlotBox=m;a.translate=e})(y||(y={}));return y});C(a,"Series/Flags/FlagsSeries.js",[a["Series/Flags/FlagsPoint.js"],
-a["Series/Flags/FlagsSeriesDefaults.js"],a["Series/Flags/FlagsSymbols.js"],a["Core/Globals.js"],a["Series/OnSeriesComposition.js"],a["Core/Renderer/RendererUtilities.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Renderer/SVG/SVGElement.js"],a["Core/Utilities.js"]],function(a,q,z,v,t,B,w,y,r){var m=this&&this.__extends||function(){var a=function(c,e){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var e in c)c.hasOwnProperty(e)&&(a[e]=c[e])};
-return a(c,e)};return function(c,e){function f(){this.constructor=c}a(c,e);c.prototype=null===e?Object.create(e):(f.prototype=e.prototype,new f)}}();v=v.noop;var e=B.distribute,g=w.series,p=w.seriesTypes.column,c=r.addEvent,E=r.defined;B=r.extend;var f=r.merge,D=r.objectEach,C=r.wrap;r=function(a){function r(){var c=null!==a&&a.apply(this,arguments)||this;c.data=void 0;c.options=void 0;c.points=void 0;return c}m(r,a);r.prototype.animate=function(a){a&&this.setClip()};r.prototype.drawPoints=function(){var a=
-this.points,c=this.chart,g=c.renderer,l=c.inverted,d=this.options,h=d.y,b=this.yAxis,n={},k=[],m;for(m=a.length;m--;){var p=a[m];var q=(l?p.plotY:p.plotX)>this.xAxis.len;var r=p.plotX;var t=p.stackIndex;var v=p.options.shape||d.shape;var w=p.plotY;"undefined"!==typeof w&&(w=p.plotY+h-("undefined"!==typeof t&&t*d.stackDistance));p.anchorX=t?void 0:p.plotX;var B=t?void 0:p.plotY;var z="flag"!==v;t=p.graphic;"undefined"!==typeof w&&0<=r&&!q?(t&&p.hasNewShapeType()&&(t=t.destroy()),t||(t=p.graphic=g.label("",
-null,null,v,null,null,d.useHTML).addClass("highcharts-point").add(this.markerGroup),p.graphic.div&&(p.graphic.div.point=p),t.isNew=!0),t.attr({align:z?"center":"left",width:d.width,height:d.height,"text-align":d.textAlign}),c.styledMode||t.attr(this.pointAttribs(p)).css(f(d.style,p.style)).shadow(d.shadow),0<r&&(r-=t.strokeWidth()%2),v={y:w,anchorY:B},d.allowOverlapX&&(v.x=r,v.anchorX=p.anchorX),t.attr({text:p.options.title||d.title||"A"})[t.isNew?"attr":"animate"](v),d.allowOverlapX||(n[p.plotX]?
-n[p.plotX].size=Math.max(n[p.plotX].size,t.width):n[p.plotX]={align:z?.5:0,size:t.width,target:r,anchorX:r}),p.tooltipPos=[r,w+b.pos-c.plotTop]):t&&(p.graphic=t.destroy())}if(!d.allowOverlapX){var F=100;D(n,function(a){a.plotX=a.anchorX;k.push(a);F=Math.max(a.size,F)});e(k,l?b.len:this.xAxis.len,F);for(c=0;c<a.length;c++)g=a[c],h=g.plotX,(h=(l=g.graphic)&&n[h])&&l&&(E(h.pos)?l[l.isNew?"attr":"animate"]({x:h.pos+(h.align||0)*h.size,anchorX:g.anchorX}).show().isNew=!1:l.hide().isNew=!0)}d.useHTML&&
-this.markerGroup&&C(this.markerGroup,"on",function(a){return y.prototype.on.apply(a.apply(this,[].slice.call(arguments,1)),[].slice.call(arguments,1))})};r.prototype.drawTracker=function(){var e=this.points;a.prototype.drawTracker.call(this);for(var f=function(a){var d=a.graphic;d&&(a.unbindMouseOver&&a.unbindMouseOver(),a.unbindMouseOver=c(d.element,"mouseover",function(){0<a.stackIndex&&!a.raised&&(a._y=d.y,d.attr({y:a._y-8}),a.raised=!0);for(var c=0;c<e.length;c++){var b=e[c];b!==a&&b.raised&&
-b.graphic&&(b.graphic.attr({y:b._y}),b.raised=!1)}}))},g=0;g<e.length;g++)f(e[g])};r.prototype.pointAttribs=function(a,c){var e=this.options,f=a&&a.color||this.color,d=e.lineColor,h=a&&a.lineWidth;a=a&&a.fillColor||e.fillColor;c&&(a=e.states[c].fillColor,d=e.states[c].lineColor,h=e.states[c].lineWidth);return{fill:a||f,stroke:d||f,"stroke-width":h||e.lineWidth||0}};r.prototype.setClip=function(){g.prototype.setClip.apply(this,arguments);!1!==this.options.clip&&this.sharedClipKey&&this.markerGroup&&
-this.markerGroup.clip(this.chart.sharedClips[this.sharedClipKey])};r.compose=z.compose;r.defaultOptions=f(p.defaultOptions,q);return r}(p);t.compose(r);B(r.prototype,{allowDG:!1,forceCrop:!0,invertible:!1,noSharedTooltip:!0,pointClass:a,sorted:!1,takeOrdinalPosition:!1,trackerGroups:["markerGroup"],buildKDTree:v,init:g.prototype.init});w.registerSeriesType("flags",r);"";return r});C(a,"Core/Chart/StockChart.js",[a["Core/Axis/Axis.js"],a["Core/Chart/Chart.js"],a["Core/FormatUtilities.js"],a["Core/Defaults.js"],
-a["Stock/Navigator/NavigatorDefaults.js"],a["Stock/RangeSelector/RangeSelectorDefaults.js"],a["Stock/Scrollbar/ScrollbarDefaults.js"],a["Core/Series/Series.js"],a["Core/Renderer/SVG/SVGRenderer.js"],a["Core/Utilities.js"]],function(a,q,z,v,t,B,w,y,r,m){function e(a,c){return"xAxis"===a?{minPadding:0,maxPadding:0,overscroll:0,ordinal:!0,title:{text:null},labels:{overflow:"justify"},showLastLabel:!0}:"yAxis"===a?{labels:{y:-2},opposite:u(c.opposite,!0),showLastLabel:!(!c.categories&&"category"!==c.type),
-title:{text:null}}:{}}function g(a,c){return"xAxis"===a?(a={type:"datetime",categories:void 0},u(c.navigator&&c.navigator.enabled,t.enabled,!0)&&(a.startOnTick=!1,a.endOnTick=!1),a):{}}var p=this&&this.__extends||function(){var a=function(c,b){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return a(c,b)};return function(c,b){function d(){this.constructor=c}a(c,b);c.prototype=null===b?Object.create(b):
-(d.prototype=b.prototype,new d)}}(),c=z.format,E=v.getOptions;z=m.addEvent;var f=m.clamp,D=m.defined,C=m.extend,O=m.find,F=m.isNumber,x=m.isString,G=m.merge,u=m.pick,l=m.splat;m=function(a){function c(){return null!==a&&a.apply(this,arguments)||this}p(c,a);c.prototype.init=function(b,c){var d=E(),f=b.xAxis,h=b.yAxis,n=u(b.navigator&&b.navigator.enabled,t.enabled,!0);b.xAxis=b.yAxis=void 0;n=G({chart:{panning:{enabled:!0,type:"x"},zooming:{pinchType:"x"}},navigator:{enabled:n},scrollbar:{enabled:u(w.enabled,
-!0)},rangeSelector:{enabled:u(B.rangeSelector.enabled,!0)},title:{text:null},tooltip:{split:u(d.tooltip.split,!0),crosshairs:!0},legend:{enabled:!1}},b,{isStock:!0});b.xAxis=f;b.yAxis=h;n.xAxis=l(b.xAxis||{}).map(function(a,c){return G(e("xAxis",a),d.xAxis,d.xAxis&&d.xAxis[c],a,g("xAxis",b))});n.yAxis=l(b.yAxis||{}).map(function(a,b){return G(e("yAxis",a),d.yAxis,d.yAxis&&d.yAxis[b],a)});a.prototype.init.call(this,n,c)};c.prototype.createAxis=function(b,c){c.axis=G(e(b,c.axis),c.axis,g(b,this.userOptions));
-return a.prototype.createAxis.call(this,b,c)};return c}(q);(function(a){a.stockChart=function(c,b,d){return new a(c,b,d)}})(m||(m={}));z(y,"setOptions",function(a){var c;this.chart.options.isStock&&(this.is("column")||this.is("columnrange")?c={borderWidth:0,shadow:!1}:this.is("scatter")||this.is("sma")||(c={marker:{enabled:!1,radius:2}}),c&&(a.plotOptions[this.type]=G(a.plotOptions[this.type],c)))});z(a,"autoLabelAlign",function(a){var c=this.chart,b=this.options;c=c._labelPanes=c._labelPanes||{};
-var d=this.options.labels;this.chart.options.isStock&&"yAxis"===this.coll&&(b=b.top+","+b.height,!c[b]&&d.enabled&&(15===d.x&&(d.x=0),"undefined"===typeof d.align&&(d.align="right"),c[b]=this,a.align="right",a.preventDefault()))});z(a,"destroy",function(){var a=this.chart,c=this.options&&this.options.top+","+this.options.height;c&&a._labelPanes&&a._labelPanes[c]===this&&delete a._labelPanes[c]});z(a,"getPlotLinePath",function(a){function c(a){var c="xAxis"===a?"yAxis":"xAxis";a=b.options[c];return F(a)?
-[e[c][a]]:x(a)?[e.get(a)]:d.map(function(a){return a[c]})}var b=this,d=this.isLinked&&!this.series?this.linkedParent.series:this.series,e=b.chart,g=e.renderer,l=b.left,m=b.top,p,q,r,t,v=[],w=[],y=a.translatedValue,B=a.value,z=a.force;if(e.options.isStock&&!1!==a.acrossPanes&&"xAxis"===b.coll||"yAxis"===b.coll){a.preventDefault();w=c(b.coll);var E=b.isXAxis?e.yAxis:e.xAxis;E.forEach(function(a){if(D(a.options.id)?-1===a.options.id.indexOf("navigator"):1){var c=a.isXAxis?"yAxis":"xAxis";c=D(a.options[c])?
-e[c][a.options[c]]:e[c][0];b===c&&w.push(a)}});var C=w.length?[]:[b.isXAxis?e.yAxis[0]:e.xAxis[0]];w.forEach(function(a){-1!==C.indexOf(a)||O(C,function(b){return b.pos===a.pos&&b.len===a.len})||C.push(a)});var G=u(y,b.translate(B,void 0,void 0,a.old));F(G)&&(b.horiz?C.forEach(function(a){var c;q=a.pos;t=q+a.len;p=r=Math.round(G+b.transB);"pass"!==z&&(p<l||p>l+b.width)&&(z?p=r=f(p,l,l+b.width):c=!0);c||v.push(["M",p,q],["L",r,t])}):C.forEach(function(a){var c;p=a.pos;r=p+a.len;q=t=Math.round(m+b.height-
-G);"pass"!==z&&(q<m||q>m+b.height)&&(z?q=t=f(q,m,m+b.height):c=!0);c||v.push(["M",p,q],["L",r,t])}));a.path=0<v.length?g.crispPolyLine(v,a.lineWidth||1):null}});r.prototype.crispPolyLine=function(a,c){for(var b=0;b<a.length;b+=2){var d=a[b],e=a[b+1];d[1]===e[1]&&(d[1]=e[1]=Math.round(d[1])-c%2/2);d[2]===e[2]&&(d[2]=e[2]=Math.round(d[2])+c%2/2)}return a};z(a,"afterHideCrosshair",function(){this.crossLabel&&(this.crossLabel=this.crossLabel.hide())});z(a,"afterDrawCrosshair",function(a){var d,b;if(this.crosshair&&
-this.crosshair.label&&this.crosshair.label.enabled&&this.cross&&F(this.min)&&F(this.max)){var e=this.chart,f=this.logarithmic,g=this.crosshair.label,l=this.horiz,m=this.opposite,p=this.left,q=this.top,r=this.crossLabel,t=g.format,v="",w="inside"===this.options.tickPosition,x=!1!==this.crosshair.snap,y=0,z=a.e||this.cross&&this.cross.e;a=a.point;var B=this.min,E=this.max;f&&(B=f.lin2log(B),E=f.lin2log(E));f=l?"center":m?"right"===this.labelAlign?"right":"left":"left"===this.labelAlign?"left":"center";
-r||(r=this.crossLabel=e.renderer.label("",0,void 0,g.shape||"callout").addClass("highcharts-crosshair-label highcharts-color-"+(a&&a.series?a.series.colorIndex:this.series[0]&&this.series[0].colorIndex)).attr({align:g.align||f,padding:u(g.padding,8),r:u(g.borderRadius,3),zIndex:2}).add(this.labelGroup),e.styledMode||r.attr({fill:g.backgroundColor||a&&a.series&&a.series.color||"#666666",stroke:g.borderColor||"","stroke-width":g.borderWidth||0}).css(C({color:"#ffffff",fontWeight:"normal",fontSize:"11px",
-textAlign:"center"},g.style||{})));l?(f=x?(a.plotX||0)+p:z.chartX,q+=m?0:this.height):(f=m?this.width+p:0,q=x?(a.plotY||0)+q:z.chartY);t||g.formatter||(this.dateTime&&(v="%b %d, %Y"),t="{value"+(v?":"+v:"")+"}");v=x?this.isXAxis?a.x:a.y:this.toValue(l?z.chartX:z.chartY);x=a&&a.series?a.series.isPointInside(a):F(v)&&v>B&&v<E;z="";t?z=c(t,{value:v},e):g.formatter&&F(v)&&(z=g.formatter.call(this,v));r.attr({text:z,x:f,y:q,visibility:x?"inherit":"hidden"});g=r.getBBox();if(F(r.y))if(l){if(w&&!m||!w&&
-m)q=r.y-g.height}else q=r.y-g.height/2;l?(d=p-g.x,b=p+this.width-g.x):(d="left"===this.labelAlign?p:0,b="right"===this.labelAlign?p+this.width:e.chartWidth);r.translateX<d&&(y=d-r.translateX);r.translateX+g.width>=b&&(y=-(r.translateX+g.width-b));r.attr({x:f+y,y:q,anchorX:l?f:this.opposite?0:e.chartWidth,anchorY:l?this.opposite?e.chartHeight:0:q+g.height/2})}});y.prototype.forceCropping=function(){var a=this.chart,c=this.options.dataGrouping;return!1!==this.allowDG&&c&&u(c.enabled,a.options.isStock)};
-z(q,"update",function(a){a=a.options;"scrollbar"in a&&this.navigator&&(G(!0,this.options.scrollbar,a.scrollbar),this.navigator.update({}),delete a.scrollbar)});return m});C(a,"masters/modules/stock.src.js",[a["Core/Globals.js"],a["Series/DataModifyComposition.js"],a["Stock/Navigator/Navigator.js"],a["Stock/RangeSelector/RangeSelector.js"],a["Stock/Scrollbar/Scrollbar.js"],a["Core/Axis/OrdinalAxis.js"],a["Series/OHLC/OHLCSeries.js"],a["Series/Flags/FlagsSeries.js"],a["Core/Chart/StockChart.js"]],function(a,
-q,z,v,t,B,w,y,r){a.Navigator=z;a.RangeSelector=v;a.Scrollbar=t;a.StockChart=a.stockChart=r.stockChart;q.compose(a.Series,a.Axis,a.Point);y.compose(a.Renderer);z.compose(a.Axis,a.Chart,a.Series);w.compose(a.Series);B.compose(a.Axis,a.Series,a.Chart);v.compose(a.Axis,a.Chart);t.compose(a.Axis)})});
-//# sourceMappingURL=stock.js.map

+ 0 - 14
nicegui/elements/lib/highcharts_modules/streamgraph.js

@@ -1,14 +0,0 @@
-/*
- Highcharts JS v10.3.3 (2023-01-20)
-
- Streamgraph module
-
- (c) 2010-2021 Torstein Honsi
-
- License: www.highcharts.com/license
-*/
-(function(a){"object"===typeof module&&module.exports?(a["default"]=a,module.exports=a):"function"===typeof define&&define.amd?define("highcharts/modules/streamgraph",["highcharts"],function(d){a(d);a.Highcharts=d;return a}):a("undefined"!==typeof Highcharts?Highcharts:void 0)})(function(a){function d(a,e,d,f){a.hasOwnProperty(e)||(a[e]=f.apply(null,d),"function"===typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:e,module:a[e]}})))}a=a?a._modules:{};
-d(a,"Series/Streamgraph/StreamgraphSeries.js",[a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,e){var d=this&&this.__extends||function(){var a=function(b,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var b in c)c.hasOwnProperty(b)&&(a[b]=c[b])};return a(b,c)};return function(b,c){function d(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(d.prototype=c.prototype,new d)}}(),f=a.seriesTypes.areaspline,
-h=e.merge;e=e.extend;var g=function(a){function b(){var c=null!==a&&a.apply(this,arguments)||this;c.data=void 0;c.points=void 0;c.options=void 0;return c}d(b,a);b.prototype.streamStacker=function(a,b,d){a[0]-=b.total/2;a[1]-=b.total/2;this.stackedYData[d]=a};b.defaultOptions=h(f.defaultOptions,{fillOpacity:1,lineWidth:0,marker:{enabled:!1},stacking:"stream"});return b}(f);e(g.prototype,{negStacks:!1});a.registerSeriesType("streamgraph",g);"";return g});d(a,"masters/modules/streamgraph.src.js",[],
-function(){})});
-//# sourceMappingURL=streamgraph.js.map

+ 0 - 84
nicegui/elements/lib/highcharts_modules/sunburst.js

@@ -1,84 +0,0 @@
-/*
- Highcharts JS v10.3.3 (2023-01-20)
-
- (c) 2016-2021 Highsoft AS
- Authors: Jon Arild Nygard
-
- License: www.highcharts.com/license
-*/
-(function(a){"object"===typeof module&&module.exports?(a["default"]=a,module.exports=a):"function"===typeof define&&define.amd?define("highcharts/modules/sunburst",["highcharts"],function(u){a(u);a.Highcharts=u;return a}):a("undefined"!==typeof Highcharts?Highcharts:void 0)})(function(a){function u(a,d,e,m){a.hasOwnProperty(d)||(a[d]=m.apply(null,e),"function"===typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:d,module:a[d]}})))}a=a?a._modules:{};u(a,
-"Series/ColorMapComposition.js",[a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,d){var e=a.seriesTypes.column.prototype,m=d.addEvent,p=d.defined,h;(function(a){function f(b){this.moveToTopOnHover&&this.graphic&&this.graphic.attr({zIndex:b&&"hover"===b.state?1:0})}var d=[];a.pointMembers={dataLabelOnNull:!0,moveToTopOnHover:!0,isValid:function(){return null!==this.value&&Infinity!==this.value&&-Infinity!==this.value&&(void 0===this.value||!isNaN(this.value))}};a.seriesMembers=
-{colorKey:"value",axisTypes:["xAxis","yAxis","colorAxis"],parallelArrays:["x","y","value"],pointArrayMap:["value"],trackerGroups:["group","markerGroup","dataLabelsGroup"],colorAttribs:function(b){var c={};!p(b.color)||b.state&&"normal"!==b.state||(c[this.colorProp||"fill"]=b.color);return c},pointAttribs:e.pointAttribs};a.compose=function(b){var c=b.prototype.pointClass;-1===d.indexOf(c)&&(d.push(c),m(c,"afterSetState",f));return b}})(h||(h={}));return h});u(a,"Series/Treemap/TreemapAlgorithmGroup.js",
-[],function(){return function(){function a(a,e,m,p){this.height=a;this.width=e;this.plot=p;this.startDirection=this.direction=m;this.lH=this.nH=this.lW=this.nW=this.total=0;this.elArr=[];this.lP={total:0,lH:0,nH:0,lW:0,nW:0,nR:0,lR:0,aspectRatio:function(a,d){return Math.max(a/d,d/a)}}}a.prototype.addElement=function(a){this.lP.total=this.elArr[this.elArr.length-1];this.total+=a;0===this.direction?(this.lW=this.nW,this.lP.lH=this.lP.total/this.lW,this.lP.lR=this.lP.aspectRatio(this.lW,this.lP.lH),
-this.nW=this.total/this.height,this.lP.nH=this.lP.total/this.nW,this.lP.nR=this.lP.aspectRatio(this.nW,this.lP.nH)):(this.lH=this.nH,this.lP.lW=this.lP.total/this.lH,this.lP.lR=this.lP.aspectRatio(this.lP.lW,this.lH),this.nH=this.total/this.width,this.lP.nW=this.lP.total/this.nH,this.lP.nR=this.lP.aspectRatio(this.lP.nW,this.nH));this.elArr.push(a)};a.prototype.reset=function(){this.lW=this.nW=0;this.elArr=[];this.total=0};return a}()});u(a,"Series/DrawPointUtilities.js",[a["Core/Utilities.js"]],
-function(a){return{draw:function(a,e){var m=e.animatableAttribs,d=e.onComplete,h=e.css,k=e.renderer,f=a.series&&a.series.chart.hasRendered?void 0:a.series&&a.series.options.animation,q=a.graphic;e.attribs=e.attribs||{};e.attribs["class"]=a.getClassName();if(a.shouldDraw())q||(a.graphic=q="text"===e.shapeType?k.text():k[e.shapeType](e.shapeArgs||{}),q.add(e.group)),h&&q.css(h),q.attr(e.attribs).animate(m,e.isNew?!1:f,d);else if(q){var b=function(){a.graphic=q=q&&q.destroy();"function"===typeof d&&
-d()};Object.keys(m).length?q.animate(m,void 0,function(){return b()}):b()}}}});u(a,"Series/Treemap/TreemapPoint.js",[a["Series/DrawPointUtilities.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,d,e){var m=this&&this.__extends||function(){var b=function(a,f){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,a){b.__proto__=a}||function(b,a){for(var c in a)a.hasOwnProperty(c)&&(b[c]=a[c])};return b(a,f)};return function(a,f){function c(){this.constructor=
-a}b(a,f);a.prototype=null===f?Object.create(f):(c.prototype=f.prototype,new c)}}(),p=d.series.prototype.pointClass,h=d.seriesTypes;d=h.pie.prototype.pointClass;var k=e.extend,f=e.isNumber,q=e.pick;e=function(b){function c(){var a=null!==b&&b.apply(this,arguments)||this;a.name=void 0;a.node=void 0;a.options=void 0;a.series=void 0;a.shapeType="rect";a.value=void 0;return a}m(c,b);c.prototype.draw=function(b){a.draw(this,b)};c.prototype.getClassName=function(){var a=p.prototype.getClassName.call(this),
-b=this.series,c=b.options;this.node.level<=b.nodeMap[b.rootNode].level?a+=" highcharts-above-level":this.node.isLeaf||q(c.interactByLeaf,!c.allowTraversingTree)?this.node.isLeaf||(a+=" highcharts-internal-node"):a+=" highcharts-internal-node-interactive";return a};c.prototype.isValid=function(){return!(!this.id&&!f(this.value))};c.prototype.setState=function(a){p.prototype.setState.call(this,a);this.graphic&&this.graphic.attr({zIndex:"hover"===a?1:0})};c.prototype.shouldDraw=function(){return f(this.plotY)&&
-null!==this.y};return c}(h.scatter.prototype.pointClass);k(e.prototype,{setVisible:d.prototype.setVisible});return e});u(a,"Series/Treemap/TreemapUtilities.js",[a["Core/Utilities.js"]],function(a){var d=a.objectEach,e;(function(a){function e(a,k,f){void 0===f&&(f=this);a=k.call(f,a);!1!==a&&e(a,k,f)}a.AXIS_MAX=100;a.isBoolean=function(a){return"boolean"===typeof a};a.eachObject=function(a,e,f){f=f||this;d(a,function(d,b){e.call(f,d,b,a)})};a.recursive=e})(e||(e={}));return e});u(a,"Series/TreeUtilities.js",
-[a["Core/Color/Color.js"],a["Core/Utilities.js"]],function(a,d){function e(a,c){var b=c.before,f=c.idRoot,d=c.mapIdToNode[f],r=c.points[a.i],A=r&&r.options||{},y=[],D=0;a.levelDynamic=a.level-(!1!==c.levelIsConstant?0:d.level);a.name=q(r&&r.name,"");a.visible=f===a.id||!0===c.visible;"function"===typeof b&&(a=b(a,c));a.children.forEach(function(b,r){var f=m({},c);m(f,{index:r,siblings:a.children.length,visible:a.visible});b=e(b,f);y.push(b);b.visible&&(D+=b.val)});b=q(A.value,D);a.visible=0<=b&&(0<
-D||a.visible);a.children=y;a.childrenTotal=D;a.isLeaf=a.visible&&!D;a.val=b;return a}var m=d.extend,p=d.isArray,h=d.isNumber,k=d.isObject,f=d.merge,q=d.pick;return{getColor:function(b,c){var f=c.index,e=c.mapOptionsToLevel,d=c.parentColor,r=c.parentColorIndex,A=c.series,y=c.colors,D=c.siblings,k=A.points,m=A.chart.options.chart,h;if(b){k=k[b.i];b=e[b.level]||{};if(e=k&&b.colorByPoint){var p=k.index%(y?y.length:m.colorCount);var x=y&&y[p]}if(!A.chart.styledMode){y=k&&k.options.color;m=b&&b.color;if(h=
-d)h=(h=b&&b.colorVariation)&&"brightness"===h.key&&f&&D?a.parse(d).brighten(f/D*h.to).get():d;h=q(y,m,x,h,A.color)}var B=q(k&&k.options.colorIndex,b&&b.colorIndex,p,r,c.colorIndex)}return{color:h,colorIndex:B}},getLevelOptions:function(a){var b={};if(k(a)){var e=h(a.from)?a.from:1;var d=a.levels;var m={};var r=k(a.defaults)?a.defaults:{};p(d)&&(m=d.reduce(function(a,b){if(k(b)&&h(b.level)){var c=f({},b);var d=q(c.levelIsConstant,r.levelIsConstant);delete c.levelIsConstant;delete c.level;b=b.level+
-(d?0:e-1);k(a[b])?f(!0,a[b],c):a[b]=c}return a},{}));d=h(a.to)?a.to:1;for(a=0;a<=d;a++)b[a]=f({},r,k(m[a])?m[a]:{})}return b},setTreeValues:e,updateRootId:function(a){if(k(a)){var b=k(a.options)?a.options:{};b=q(a.rootNode,b.rootId,"");k(a.userOptions)&&(a.userOptions.rootId=b);a.rootNode=b}return b}}});u(a,"Extensions/Breadcrumbs.js",[a["Core/Chart/Chart.js"],a["Core/Defaults.js"],a["Core/Globals.js"],a["Core/Utilities.js"],a["Core/FormatUtilities.js"]],function(a,d,e,m,p){var h=p.format;p=m.addEvent;
-var k=m.objectEach,f=m.extend,q=m.fireEvent,b=m.merge,c=m.pick,x=m.defined,T=m.isString;f(d.defaultOptions.lang,{mainBreadcrumb:"Main"});d=function(){function a(c,f){this.group=void 0;this.list=[];this.elementList={};this.isDirty=!0;this.level=0;this.options=void 0;f=b(c.options.drilldown&&c.options.drilldown.drillUpButton,a.defaultBreadcrumbsOptions,c.options.navigation&&c.options.navigation.breadcrumbs,f);this.chart=c;this.options=f||{}}a.prototype.updateProperties=function(a){this.setList(a);this.setLevel();
-this.isDirty=!0};a.prototype.setList=function(a){this.list=a};a.prototype.setLevel=function(){this.level=this.list.length&&this.list.length-1};a.prototype.getLevel=function(){return this.level};a.prototype.getButtonText=function(a){var b=this.chart,f=this.options,d=b.options.lang,e=c(f.format,f.showFullPath?"{level.name}":"\u2190 {level.name}");d=d&&c(d.drillUpText,d.mainBreadcrumb);a=f.formatter&&f.formatter(a)||h(e,{level:a.levelOptions},b)||"";(T(a)&&!a.length||"\u2190 "===a)&&x(d)&&(a=f.showFullPath?
-d:"\u2190 "+d);return a};a.prototype.redraw=function(){this.isDirty&&this.render();this.group&&this.group.align();this.isDirty=!1};a.prototype.render=function(){var a=this.chart,b=this.options;!this.group&&b&&(this.group=a.renderer.g("breadcrumbs-group").addClass("highcharts-no-tooltip highcharts-breadcrumbs").attr({zIndex:b.zIndex}).add());b.showFullPath?this.renderFullPathButtons():this.renderSingleButton();this.alignBreadcrumbsGroup()};a.prototype.renderFullPathButtons=function(){this.destroySingleButton();
-this.resetElementListState();this.updateListElements();this.destroyListElements()};a.prototype.renderSingleButton=function(){var a=this.chart,b=this.list,c=this.options.buttonSpacing;this.destroyListElements();var f=this.group?this.group.getBBox().width:c;b=b[b.length-2];!a.drillUpButton&&0<this.level?a.drillUpButton=this.renderButton(b,f,c):a.drillUpButton&&(0<this.level?this.updateSingleButton():this.destroySingleButton())};a.prototype.alignBreadcrumbsGroup=function(a){if(this.group){var f=this.options,
-d=f.buttonTheme,e=f.position,k="chart"===f.relativeTo||"spacingBox"===f.relativeTo?void 0:"scrollablePlotBox",r=this.group.getBBox();f=2*(d.padding||0)+f.buttonSpacing;e.width=r.width+f;e.height=r.height+f;r=b(e);a&&(r.x+=a);this.options.rtl&&(r.x+=e.width);r.y=c(r.y,this.yOffset,0);this.group.align(r,!0,k)}};a.prototype.renderButton=function(a,c,f){var d=this,e=this.chart,r=d.options,k=b(r.buttonTheme);c=e.renderer.button(d.getButtonText(a),c,f,function(b){var c=r.events&&r.events.click,f;c&&(f=
-c.call(d,b,a));!1!==f&&(b.newLevel=r.showFullPath?a.level:d.level-1,q(d,"up",b))},k).addClass("highcharts-breadcrumbs-button").add(d.group);e.styledMode||c.attr(r.style);return c};a.prototype.renderSeparator=function(a,b){var c=this.chart,f=this.options.separator;a=c.renderer.label(f.text,a,b,void 0,void 0,void 0,!1).addClass("highcharts-breadcrumbs-separator").add(this.group);c.styledMode||a.css(f.style);return a};a.prototype.update=function(a){b(!0,this.options,a);this.destroy();this.isDirty=!0};
-a.prototype.updateSingleButton=function(){var a=this.chart,b=this.list[this.level-1];a.drillUpButton&&a.drillUpButton.attr({text:this.getButtonText(b)})};a.prototype.destroy=function(){this.destroySingleButton();this.destroyListElements(!0);this.group&&this.group.destroy();this.group=void 0};a.prototype.destroyListElements=function(a){var b=this.elementList;k(b,function(c,f){if(a||!b[f].updated)c=b[f],c.button&&c.button.destroy(),c.separator&&c.separator.destroy(),delete c.button,delete c.separator,
-delete b[f]});a&&(this.elementList={})};a.prototype.destroySingleButton=function(){this.chart.drillUpButton&&(this.chart.drillUpButton.destroy(),this.chart.drillUpButton=void 0)};a.prototype.resetElementListState=function(){k(this.elementList,function(a){a.updated=!1})};a.prototype.updateListElements=function(){var a=this,b=a.elementList,c=a.options.buttonSpacing,f=a.list,d=a.options.rtl,e=d?-1:1,k=function(a,b){return e*a.getBBox().width+e*b},m=a.group?k(a.group,c):c,h;f.forEach(function(r,q){q=
-q===f.length-1;if(b[r.level]){h=b[r.level];var p=h.button;if(h.separator||q)h.separator&&q&&(h.separator.destroy(),delete h.separator);else{m+=e*c;h.separator=a.renderSeparator(m,c);if(d){var x=h.separator;x.translate(m-x.getBBox().width,c)}m+=k(h.separator,c)}b[r.level].updated=!0}else p=a.renderButton(r,m,c),d&&p.translate(m-p.getBBox().width,c),m+=k(p,c),q||(x=a.renderSeparator(m,c),d&&x.translate(m-x.getBBox().width,c),m+=k(x,c)),b[r.level]={button:p,separator:x,updated:!0};p&&p.setState(q?2:
-0)})};a.defaultBreadcrumbsOptions={buttonTheme:{fill:"none",height:18,padding:2,"stroke-width":0,zIndex:7,states:{select:{fill:"none"}},style:{color:"#335cad"}},buttonSpacing:5,floating:!1,format:void 0,relativeTo:"plotBox",rtl:!1,position:{align:"left",verticalAlign:"top",x:0,y:void 0},separator:{text:"/",style:{color:"#666666"}},showFullPath:!0,style:{},useHTML:!1,zIndex:7};return a}();e.Breadcrumbs||(e.Breadcrumbs=d,p(a,"getMargins",function(){var a=this.breadcrumbs;if(a&&!a.options.floating&&
-a.level){var b=a.options,c=b.buttonTheme;c=(c.height||0)+2*(c.padding||0)+b.buttonSpacing;b=b.position.verticalAlign;"bottom"===b?(this.marginBottom=(this.marginBottom||0)+c,a.yOffset=c):"middle"!==b?(this.plotTop+=c,a.yOffset=-c):a.yOffset=void 0}}),p(a,"redraw",function(){this.breadcrumbs&&this.breadcrumbs.redraw()}),p(a,"destroy",function(){this.breadcrumbs&&(this.breadcrumbs.destroy(),this.breadcrumbs=void 0)}),p(a,"afterShowResetZoom",function(){if(this.breadcrumbs){var a=this.resetZoomButton&&
-this.resetZoomButton.getBBox(),b=this.breadcrumbs.options;a&&"right"===b.position.align&&"plotBox"===b.relativeTo&&this.breadcrumbs.alignBreadcrumbsGroup(-a.width-b.buttonSpacing)}}),p(a,"selection",function(a){!0===a.resetSelection&&this.breadcrumbs&&this.breadcrumbs.alignBreadcrumbsGroup()}));"";return d});u(a,"Series/Treemap/TreemapComposition.js",[a["Core/Series/SeriesRegistry.js"],a["Series/Treemap/TreemapUtilities.js"],a["Core/Utilities.js"]],function(a,d,e){var m=e.addEvent,p=e.extend,h=!1;
-m(a.series,"afterBindAxes",function(){var a=this.xAxis,f=this.yAxis;if(a&&f)if(this.is("treemap")){var e={endOnTick:!1,gridLineWidth:0,lineWidth:0,min:0,minPadding:0,max:d.AXIS_MAX,maxPadding:0,startOnTick:!1,title:void 0,tickPositions:[]};p(f.options,e);p(a.options,e);h=!0}else h&&(f.setOptions(f.userOptions),a.setOptions(a.userOptions),h=!1)})});u(a,"Series/Treemap/TreemapNode.js",[],function(){return function(){function a(){this.childrenTotal=0;this.visible=!1}a.prototype.init=function(a,e,m,p,
-h,k,f){this.id=a;this.i=e;this.children=m;this.height=p;this.level=h;this.series=k;this.parent=f;return this};return a}()});u(a,"Series/Treemap/TreemapSeries.js",[a["Core/Color/Color.js"],a["Series/ColorMapComposition.js"],a["Core/Globals.js"],a["Core/Legend/LegendSymbol.js"],a["Core/Series/SeriesRegistry.js"],a["Series/Treemap/TreemapAlgorithmGroup.js"],a["Series/Treemap/TreemapPoint.js"],a["Series/Treemap/TreemapUtilities.js"],a["Series/TreeUtilities.js"],a["Extensions/Breadcrumbs.js"],a["Core/Utilities.js"],
-a["Series/Treemap/TreemapNode.js"]],function(a,d,e,m,p,h,k,f,q,b,c,u){var x=this&&this.__extends||function(){var a=function(b,g){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,g){a.__proto__=g}||function(a,g){for(var n in g)g.hasOwnProperty(n)&&(a[n]=g[n])};return a(b,g)};return function(b,g){function n(){this.constructor=b}a(b,g);b.prototype=null===g?Object.create(g):(n.prototype=g.prototype,new n)}}(),P=a.parse;a=e.noop;var r=p.series;e=p.seriesTypes;var A=e.column,y=e.heatmap,
-D=e.scatter,H=q.getColor,K=q.getLevelOptions,I=q.updateRootId,z=c.addEvent,G=c.correctFloat,B=c.defined,L=c.error,E=c.extend,M=c.fireEvent,J=c.isArray,U=c.isObject,N=c.isString,l=c.merge,C=c.pick,F=c.stableSort;q=function(a){function c(){var g=null!==a&&a.apply(this,arguments)||this;g.axisRatio=void 0;g.data=void 0;g.mapOptionsToLevel=void 0;g.nodeMap=void 0;g.nodeList=void 0;g.options=void 0;g.points=void 0;g.rootNode=void 0;g.tree=void 0;g.level=void 0;return g}x(c,a);c.prototype.algorithmCalcPoints=
-function(a,c,b,f){var g,n,t,l,d=b.lW,e=b.lH,v=b.plot,k=0,m=b.elArr.length-1;if(c)d=b.nW,e=b.nH;else var h=b.elArr[b.elArr.length-1];b.elArr.forEach(function(a){if(c||k<m)0===b.direction?(g=v.x,n=v.y,t=d,l=a/t):(g=v.x,n=v.y,l=e,t=a/l),f.push({x:g,y:n,width:t,height:G(l)}),0===b.direction?v.y+=l:v.x+=t;k+=1});b.reset();0===b.direction?b.width-=d:b.height-=e;v.y=v.parent.y+(v.parent.height-b.height);v.x=v.parent.x+(v.parent.width-b.width);a&&(b.direction=1-b.direction);c||b.addElement(h)};c.prototype.algorithmFill=
-function(a,b,c){var g=[],n,f=b.direction,t=b.x,l=b.y,d=b.width,e=b.height,k,m,h,p;c.forEach(function(c){n=c.val/b.val*b.height*b.width;k=t;m=l;0===f?(p=e,h=n/p,d-=h,t+=h):(h=d,p=n/h,e-=p,l+=p);g.push({x:k,y:m,width:h,height:p});a&&(f=1-f)});return g};c.prototype.algorithmLowAspectRatio=function(a,b,c){var g=[],n=this,f,t={x:b.x,y:b.y,parent:b},l=0,d=c.length-1,e=new h(b.height,b.width,b.direction,t);c.forEach(function(c){f=c.val/b.val*b.height*b.width;e.addElement(f);e.lP.nR>e.lP.lR&&n.algorithmCalcPoints(a,
-!1,e,g,t);l===d&&n.algorithmCalcPoints(a,!0,e,g,t);l+=1});return g};c.prototype.alignDataLabel=function(a,b,c){var g=c.style;g&&!B(g.textOverflow)&&b.text&&b.getBBox().width>b.text.textWidth&&b.css({textOverflow:"ellipsis",width:g.width+="px"});A.prototype.alignDataLabel.apply(this,arguments);a.dataLabel&&a.dataLabel.attr({zIndex:(a.node.zIndex||0)+1})};c.prototype.calculateChildrenAreas=function(a,b){var g=this,c=g.options,n=g.mapOptionsToLevel[a.level+1],e=C(g[n&&n.layoutAlgorithm]&&n.layoutAlgorithm,
-c.layoutAlgorithm),d=c.alternateStartingDirection,h=[];a=a.children.filter(function(a){return!a.ignore});n&&n.layoutStartingDirection&&(b.direction="vertical"===n.layoutStartingDirection?0:1);h=g[e](b,a);a.forEach(function(a,c){c=h[c];a.values=l(c,{val:a.childrenTotal,direction:d?1-b.direction:b.direction});a.pointValues=l(c,{x:c.x/g.axisRatio,y:f.AXIS_MAX-c.y-c.height,width:c.width/g.axisRatio});a.children.length&&g.calculateChildrenAreas(a,a.values)})};c.prototype.createList=function(a){var g=this.chart,
-b=[];if(g.breadcrumbs){var c=0;b.push({level:c,levelOptions:g.series[0]});g=a.target.nodeMap[a.newRootId];for(var f=[];g.parent||""===g.parent;)f.push(g),g=a.target.nodeMap[g.parent];f.reverse().forEach(function(a){b.push({level:++c,levelOptions:a})});1>=b.length&&(b.length=0)}return b};c.prototype.drawDataLabels=function(){var a=this,b=a.mapOptionsToLevel,c,f;a.points.filter(function(a){return a.node.visible}).forEach(function(g){f=b[g.node.level];c={style:{}};g.node.isLeaf||(c.enabled=!1);f&&f.dataLabels&&
-(c=l(c,f.dataLabels),a._hasPointLabels=!0);g.shapeArgs&&(c.style.width=g.shapeArgs.width,g.dataLabel&&g.dataLabel.css({width:g.shapeArgs.width+"px"}));g.dlOptions=l(c,g.options.dataLabels)});r.prototype.drawDataLabels.call(this)};c.prototype.drawPoints=function(a){void 0===a&&(a=this.points);var g=this,b=g.chart,c=b.renderer,f=b.styledMode,e=g.options,d=f?{}:e.shadow,h=e.borderRadius,k=b.pointCount<e.animationLimit,m=e.allowTraversingTree;a.forEach(function(a){var b=a.node.levelDynamic,n={},O={},
-t={},v="level-group-"+a.node.level,S=!!a.graphic,p=k&&S,R=a.shapeArgs;a.shouldDraw()&&(a.isInside=!0,h&&(O.r=h),l(!0,p?n:O,S?R:{},f?{}:g.pointAttribs(a,a.selected?"select":void 0)),g.colorAttribs&&f&&E(t,g.colorAttribs(a)),g[v]||(g[v]=c.g(v).attr({zIndex:1E3-(b||0)}).add(g.group),g[v].survive=!0));a.draw({animatableAttribs:n,attribs:O,css:t,group:g[v],renderer:c,shadow:d,shapeArgs:R,shapeType:a.shapeType});m&&a.graphic&&(a.drillId=e.interactByLeaf?g.drillToByLeaf(a):g.drillToByGroup(a))})};c.prototype.drillToByGroup=
-function(a){var g=!1;1!==a.node.level-this.nodeMap[this.rootNode].level||a.node.isLeaf||(g=a.id);return g};c.prototype.drillToByLeaf=function(a){var g=!1;if(a.node.parent!==this.rootNode&&a.node.isLeaf)for(a=a.node;!g;)a=this.nodeMap[a.parent],a.parent===this.rootNode&&(g=a.id);return g};c.prototype.drillToNode=function(a,b){L(32,!1,void 0,{"treemap.drillToNode":"use treemap.setRootNode"});this.setRootNode(a,b)};c.prototype.drillUp=function(){var a=this.nodeMap[this.rootNode];a&&N(a.parent)&&this.setRootNode(a.parent,
-!0,{trigger:"traverseUpButton"})};c.prototype.getExtremes=function(){var a=r.prototype.getExtremes.call(this,this.colorValueData),b=a.dataMax;this.valueMin=a.dataMin;this.valueMax=b;return r.prototype.getExtremes.call(this)};c.prototype.getListOfParents=function(a,b){a=J(a)?a:[];var g=J(b)?b:[];b=a.reduce(function(a,b,g){b=C(b.parent,"");"undefined"===typeof a[b]&&(a[b]=[]);a[b].push(g);return a},{"":[]});f.eachObject(b,function(a,b,c){""!==b&&-1===g.indexOf(b)&&(a.forEach(function(a){c[""].push(a)}),
-delete c[b])});return b};c.prototype.getTree=function(){var a=this.data.map(function(a){return a.id});a=this.getListOfParents(this.data,a);this.nodeMap={};this.nodeList=[];return this.buildTree("",-1,0,a)};c.prototype.buildTree=function(a,b,c,f,e){var g=this,n=[],d=g.points[b],l=0,h;(f[a]||[]).forEach(function(b){h=g.buildTree(g.points[b].id,b,c+1,f,a);l=Math.max(h.height+1,l);n.push(h)});var t=(new g.NodeClass).init(a,b,n,l,c,g,e);n.forEach(function(a){a.parentNode=t});g.nodeMap[t.id]=t;g.nodeList.push(t);
-d&&(d.node=t,t.point=d);return t};c.prototype.hasData=function(){return!!this.processedXData.length};c.prototype.init=function(a,c){var g=this,f=l(c.drillUpButton,c.breadcrumbs);var e=z(g,"setOptions",function(a){a=a.userOptions;B(a.allowDrillToNode)&&!B(a.allowTraversingTree)&&(a.allowTraversingTree=a.allowDrillToNode,delete a.allowDrillToNode);B(a.drillUpButton)&&!B(a.traverseUpButton)&&(a.traverseUpButton=a.drillUpButton,delete a.drillUpButton)});r.prototype.init.call(g,a,c);delete g.opacity;g.eventsToUnbind.push(e);
-g.options.allowTraversingTree&&(g.eventsToUnbind.push(z(g,"click",g.onClickDrillToNode)),g.eventsToUnbind.push(z(g,"setRootNode",function(a){var b=g.chart;b.breadcrumbs&&b.breadcrumbs.updateProperties(g.createList(a))})),g.eventsToUnbind.push(z(g,"update",function(a,b){(b=this.chart.breadcrumbs)&&a.options.breadcrumbs&&b.update(a.options.breadcrumbs)})),g.eventsToUnbind.push(z(g,"destroy",function(a){var b=this.chart;b.breadcrumbs&&(b.breadcrumbs.destroy(),a.keepEventsForUpdate||(b.breadcrumbs=void 0))})));
-a.breadcrumbs||(a.breadcrumbs=new b(a,f));g.eventsToUnbind.push(z(a.breadcrumbs,"up",function(a){a=this.level-a.newLevel;for(var b=0;b<a;b++)g.drillUp()}))};c.prototype.onClickDrillToNode=function(a){var b=(a=a.point)&&a.drillId;N(b)&&(a.setState(""),this.setRootNode(b,!0,{trigger:"click"}))};c.prototype.pointAttribs=function(a,b){var c=U(this.mapOptionsToLevel)?this.mapOptionsToLevel:{},g=a&&c[a.node.level]||{};c=this.options;var f=b&&c.states&&c.states[b]||{},e=a&&a.getClassName()||"";a={stroke:a&&
-a.borderColor||g.borderColor||f.borderColor||c.borderColor,"stroke-width":C(a&&a.borderWidth,g.borderWidth,f.borderWidth,c.borderWidth),dashstyle:a&&a.borderDashStyle||g.borderDashStyle||f.borderDashStyle||c.borderDashStyle,fill:a&&a.color||this.color};-1!==e.indexOf("highcharts-above-level")?(a.fill="none",a["stroke-width"]=0):-1!==e.indexOf("highcharts-internal-node-interactive")?(b=C(f.opacity,c.opacity),a.fill=P(a.fill).setOpacity(b).get(),a.cursor="pointer"):-1!==e.indexOf("highcharts-internal-node")?
-a.fill="none":b&&(a.fill=P(a.fill).brighten(f.brightness).get());return a};c.prototype.setColorRecursive=function(a,b,c,f,e){var g=this,d=g&&g.chart;d=d&&d.options&&d.options.colors;if(a){var l=H(a,{colors:d,index:f,mapOptionsToLevel:g.mapOptionsToLevel,parentColor:b,parentColorIndex:c,series:g,siblings:e});if(b=g.points[a.i])b.color=l.color,b.colorIndex=l.colorIndex;(a.children||[]).forEach(function(b,c){g.setColorRecursive(b,l.color,l.colorIndex,c,a.children.length)})}};c.prototype.setPointValues=
-function(){var a=this,b=a.xAxis,c=a.yAxis,f=a.chart.styledMode;a.points.forEach(function(g){var e=g.node,d=e.pointValues;e=e.visible;if(d&&e){e=d.height;var l=d.width,n=d.x,h=d.y,k=f?0:(a.pointAttribs(g)["stroke-width"]||0)%2/2;d=Math.round(b.toPixels(n,!0))-k;l=Math.round(b.toPixels(n+l,!0))-k;n=Math.round(c.toPixels(h,!0))-k;e=Math.round(c.toPixels(h+e,!0))-k;e={x:Math.min(d,l),y:Math.min(n,e),width:Math.abs(l-d),height:Math.abs(e-n)};g.plotX=e.x+e.width/2;g.plotY=e.y+e.height/2;g.shapeArgs=e}else delete g.plotX,
-delete g.plotY})};c.prototype.setRootNode=function(a,b,c){a=E({newRootId:a,previousRootId:this.rootNode,redraw:C(b,!0),series:this},c);M(this,"setRootNode",a,function(a){var b=a.series;b.idPreviousRoot=a.previousRootId;b.rootNode=a.newRootId;b.isDirty=!0;a.redraw&&b.chart.redraw()})};c.prototype.setState=function(a){this.options.inactiveOtherPoints=!0;r.prototype.setState.call(this,a,!1);this.options.inactiveOtherPoints=!1};c.prototype.setTreeValues=function(a){var b=this,c=b.options,g=b.nodeMap[b.rootNode];
-c=f.isBoolean(c.levelIsConstant)?c.levelIsConstant:!0;var e=0,d=[],l=b.points[a.i];a.children.forEach(function(a){a=b.setTreeValues(a);d.push(a);a.ignore||(e+=a.val)});F(d,function(a,b){return(a.sortIndex||0)-(b.sortIndex||0)});var h=C(l&&l.options.value,e);l&&(l.value=h);E(a,{children:d,childrenTotal:e,ignore:!(C(l&&l.visible,!0)&&0<h),isLeaf:a.visible&&!e,levelDynamic:a.level-(c?0:g.level),name:C(l&&l.name,""),sortIndex:C(l&&l.sortIndex,-h),val:h});return a};c.prototype.sliceAndDice=function(a,
-b){return this.algorithmFill(!0,a,b)};c.prototype.squarified=function(a,b){return this.algorithmLowAspectRatio(!0,a,b)};c.prototype.strip=function(a,b){return this.algorithmLowAspectRatio(!1,a,b)};c.prototype.stripes=function(a,b){return this.algorithmFill(!1,a,b)};c.prototype.translate=function(){var a=this,b=a.options,c=I(a);r.prototype.translate.call(a);var e=a.tree=a.getTree();var d=a.nodeMap[c];""===c||d&&d.children.length||(a.setRootNode("",!1),c=a.rootNode,d=a.nodeMap[c]);a.mapOptionsToLevel=
-K({from:d.level+1,levels:b.levels,to:e.height,defaults:{levelIsConstant:a.options.levelIsConstant,colorByPoint:b.colorByPoint}});f.recursive(a.nodeMap[a.rootNode],function(b){var c=!1,g=b.parent;b.visible=!0;if(g||""===g)c=a.nodeMap[g];return c});f.recursive(a.nodeMap[a.rootNode].children,function(a){var b=!1;a.forEach(function(a){a.visible=!0;a.children.length&&(b=(b||[]).concat(a.children))});return b});a.setTreeValues(e);a.axisRatio=a.xAxis.len/a.yAxis.len;a.nodeMap[""].pointValues=c={x:0,y:0,
-width:f.AXIS_MAX,height:f.AXIS_MAX};a.nodeMap[""].values=c=l(c,{width:c.width*a.axisRatio,direction:"vertical"===b.layoutStartingDirection?0:1,val:e.val});a.calculateChildrenAreas(e,c);a.colorAxis||b.colorByPoint||a.setColorRecursive(a.tree);b.allowTraversingTree&&(b=d.pointValues,a.xAxis.setExtremes(b.x,b.x+b.width,!1),a.yAxis.setExtremes(b.y,b.y+b.height,!1),a.xAxis.setScale(),a.yAxis.setScale());a.setPointValues()};c.defaultOptions=l(D.defaultOptions,{allowTraversingTree:!1,animationLimit:250,
-borderRadius:0,showInLegend:!1,marker:void 0,colorByPoint:!1,dataLabels:{defer:!1,enabled:!0,formatter:function(){var a=this&&this.point?this.point:{};return N(a.name)?a.name:""},inside:!0,verticalAlign:"middle"},tooltip:{headerFormat:"",pointFormat:"<b>{point.name}</b>: {point.value}<br/>"},ignoreHiddenPoint:!0,layoutAlgorithm:"sliceAndDice",layoutStartingDirection:"vertical",alternateStartingDirection:!1,levelIsConstant:!0,traverseUpButton:{position:{align:"right",x:-10,y:10}},borderColor:"#e6e6e6",
-borderWidth:1,colorKey:"colorValue",opacity:.15,states:{hover:{borderColor:"#999999",brightness:y?0:.1,halo:!1,opacity:.75,shadow:!1}}});return c}(D);E(q.prototype,{buildKDTree:a,colorAttribs:d.seriesMembers.colorAttribs,colorKey:"colorValue",directTouch:!0,drawLegendSymbol:m.drawRectangle,getExtremesFromAll:!0,getSymbol:a,optionalAxis:"colorAxis",parallelArrays:["x","y","value","colorValue"],pointArrayMap:["value"],pointClass:k,NodeClass:u,trackerGroups:["group","dataLabelsGroup"],utils:{recursive:f.recursive}});
-d.compose(q);p.registerSeriesType("treemap",q);"";return q});u(a,"Series/Sunburst/SunburstPoint.js",[a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,d){var e=this&&this.__extends||function(){var a=function(e,f){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return a(e,f)};return function(e,f){function d(){this.constructor=e}a(e,f);e.prototype=null===f?Object.create(f):(d.prototype=
-f.prototype,new d)}}(),m=a.series.prototype.pointClass,p=d.correctFloat;d=d.extend;a=function(a){function d(){var f=null!==a&&a.apply(this,arguments)||this;f.node=void 0;f.options=void 0;f.series=void 0;f.shapeExisting=void 0;f.shapeType=void 0;return f}e(d,a);d.prototype.getDataLabelPath=function(a){var e=this.series.chart.renderer,b=this.shapeExisting,c=b.start,f=b.end,d=c+(f-c)/2;d=0>d&&d>-Math.PI||d>Math.PI;a=b.r+(a.options.distance||0);c===-Math.PI/2&&p(f)===p(1.5*Math.PI)&&(c=-Math.PI+Math.PI/
-360,f=-Math.PI/360,d=!0);if(f-c>Math.PI){d=!1;var h=!0}this.dataLabelPath&&(this.dataLabelPath=this.dataLabelPath.destroy());return this.dataLabelPath=e.arc({open:!0,longArc:h?1:0}).attr({start:d?c:f,end:d?f:c,clockwise:+d,x:b.x,y:b.y,r:(a+b.innerR)/2}).add(e.defs)};d.prototype.isValid=function(){return!0};return d}(a.seriesTypes.treemap.prototype.pointClass);d(a.prototype,{getClassName:m.prototype.getClassName,haloPath:m.prototype.haloPath,setState:m.prototype.setState});return a});u(a,"Series/Sunburst/SunburstUtilities.js",
-[a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,d){var e=a.seriesTypes.treemap,m=d.isNumber,p=d.isObject,h=d.merge,k;(function(a){function d(a,c){var b=[];if(m(a)&&m(c)&&a<=c)for(;a<=c;a++)b.push(a);return b}a.recursive=e.prototype.utils.recursive;a.calculateLevelSizes=function(a,c){c=p(c)?c:{};var b=0,e;if(p(a)){var f=h({},a);a=m(c.from)?c.from:0;var k=m(c.to)?c.to:0;var q=d(a,k);a=Object.keys(f).filter(function(a){return-1===q.indexOf(+a)});var u=e=m(c.diffRadius)?c.diffRadius:
-0;q.forEach(function(a){a=f[a];var c=a.levelSize.unit,d=a.levelSize.value;"weight"===c?b+=d:"percentage"===c?(a.levelSize={unit:"pixels",value:d/100*u},e-=a.levelSize.value):"pixels"===c&&(e-=d)});q.forEach(function(a){var c=f[a];"weight"===c.levelSize.unit&&(c=c.levelSize.value,f[a].levelSize={unit:"pixels",value:c/b*e})});a.forEach(function(a){f[a].levelSize={value:0,unit:"pixels"}})}return f};a.getLevelFromAndTo=function(a){var b=a.level;return{from:0<b?b:1,to:b+a.height}};a.range=d})(k||(k={}));
-return k});u(a,"Series/Sunburst/SunburstNode.js",[a["Series/Treemap/TreemapNode.js"]],function(a){var d=this&&this.__extends||function(){var a=function(d,e){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,d){a.__proto__=d}||function(a,d){for(var e in d)d.hasOwnProperty(e)&&(a[e]=d[e])};return a(d,e)};return function(d,e){function h(){this.constructor=d}a(d,e);d.prototype=null===e?Object.create(e):(h.prototype=e.prototype,new h)}}();return function(a){function e(){return null!==
-a&&a.apply(this,arguments)||this}d(e,a);return e}(a)});u(a,"Series/Sunburst/SunburstSeries.js",[a["Series/CenteredUtilities.js"],a["Core/Globals.js"],a["Core/Series/SeriesRegistry.js"],a["Series/Sunburst/SunburstPoint.js"],a["Series/Sunburst/SunburstUtilities.js"],a["Series/TreeUtilities.js"],a["Core/Utilities.js"],a["Series/Sunburst/SunburstNode.js"]],function(a,d,e,m,p,h,k,f){function q(a,b){var c=b.mapIdToNode,d=a.parent;d=d?c[d]:void 0;var e=b.series,f=e.chart;c=e.points[a.i];d=A(a,{colors:e.options.colors||
-f&&f.options.colors,colorIndex:e.colorIndex,index:b.index,mapOptionsToLevel:b.mapOptionsToLevel,parentColor:d&&d.color,parentColorIndex:d&&d.colorIndex,series:b.series,siblings:b.siblings});a.color=d.color;a.colorIndex=d.colorIndex;c&&(c.color=a.color,c.colorIndex=a.colorIndex,a.sliced=a.id!==b.idRoot?c.sliced:!1);return a}var b=this&&this.__extends||function(){var a=function(b,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&
-(a[c]=b[c])};return a(b,c)};return function(b,c){function d(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(d.prototype=c.prototype,new d)}}(),c=a.getCenter,u=a.getStartAndEndRadians;a=d.noop;var x=e.series,Q=e.seriesTypes;d=Q.column;var r=Q.treemap,A=h.getColor,y=h.getLevelOptions,D=h.setTreeValues,H=h.updateRootId,K=k.defined,I=k.error,z=k.extend,G=k.isNumber,B=k.isObject,L=k.isString,E=k.merge,M=k.splat,J=180/Math.PI;h=function(a){function c(){var b=null!==a&&a.apply(this,arguments)||
-this;b.center=void 0;b.data=void 0;b.mapOptionsToLevel=void 0;b.nodeMap=void 0;b.options=void 0;b.points=void 0;b.shapeRoot=void 0;b.startAndEndRadians=void 0;b.tree=void 0;return b}b(c,a);c.prototype.alignDataLabel=function(b,c,d){if(!d.textPath||!d.textPath.enabled)return a.prototype.alignDataLabel.apply(this,arguments)};c.prototype.animate=function(a){var b=this.chart,c=[b.plotWidth/2,b.plotHeight/2],d=b.plotLeft,e=b.plotTop;b=this.group;a?(a={translateX:c[0]+d,translateY:c[1]+e,scaleX:.001,scaleY:.001,
-rotation:10,opacity:.01},b.attr(a)):(a={translateX:d,translateY:e,scaleX:1,scaleY:1,rotation:0,opacity:1},b.animate(a,this.options.animation))};c.prototype.drawPoints=function(){var a=this,b=a.mapOptionsToLevel,c=a.shapeRoot,d=a.group,e=a.hasRendered,g=a.rootNode,f=a.idPreviousRoot,h=a.nodeMap,k=h[f],m=k&&k.shapeArgs;k=a.points;var p=a.startAndEndRadians,r=a.chart,q=r&&r.options&&r.options.chart||{},u="boolean"===typeof q.animation?q.animation:!0,y=a.center[3]/2,D=a.chart.renderer,A=!1,H=!1;if(q=
-!!(u&&e&&g!==f&&a.dataLabelsGroup)){a.dataLabelsGroup.attr({opacity:0});var I=function(){A=!0;a.dataLabelsGroup&&a.dataLabelsGroup.animate({opacity:1,visibility:"inherit"})}}k.forEach(function(l){var k=l.node,n=b[k.level];var q=l.shapeExisting||{};var t=k.shapeArgs||{},v=!(!k.visible||!k.shapeArgs);if(e&&u){var C={};var x={end:t.end,start:t.start,innerR:t.innerR,r:t.r,x:t.x,y:t.y};v?!l.graphic&&m&&(C=g===l.id?{start:p.start,end:p.end}:m.end<=t.start?{start:p.end,end:p.end}:{start:p.start,end:p.start},
-C.innerR=C.r=y):l.graphic&&(f===l.id?x={innerR:y,r:y}:c&&(x=c.end<=q.start?{innerR:y,r:y,start:p.end,end:p.end}:{innerR:y,r:y,start:p.start,end:p.start}));q=C}else x=t,q={};C=[t.plotX,t.plotY];if(!l.node.isLeaf)if(g===l.id){var w=h[g];w=w.parent}else w=l.id;z(l,{shapeExisting:t,tooltipPos:C,drillId:w,name:""+(l.name||l.id||l.index),plotX:t.plotX,plotY:t.plotY,value:k.val,isInside:v,isNull:!v});w=l.options;k=B(t)?t:{};w=B(w)?w.dataLabels:{};n=M(B(n)?n.dataLabels:{})[0];n=E({style:{}},n,w);w=n.rotationMode;
-if(!G(n.rotation)){if("auto"===w||"circular"===w)if(1>l.innerArcLength&&l.outerArcLength>k.radius){var F=0;l.dataLabelPath&&"circular"===w&&(n.textPath={enabled:!0})}else 1<l.innerArcLength&&l.outerArcLength>1.5*k.radius?"circular"===w?n.textPath={enabled:!0,attributes:{dy:5}}:w="parallel":(l.dataLabel&&l.dataLabel.textPath&&"circular"===w&&(n.textPath={enabled:!1}),w="perpendicular");"auto"!==w&&"circular"!==w&&(F=k.end-(k.end-k.start)/2);"parallel"===w?n.style.width=Math.min(2.5*k.radius,(l.outerArcLength+
-l.innerArcLength)/2):!K(n.style.width)&&k.radius&&(n.style.width=1===l.node.level?2*k.radius:k.radius);"perpendicular"===w&&l.series.chart.renderer.fontMetrics(n.style.fontSize).h>l.outerArcLength&&(n.style.width=1);n.style.width=Math.max(n.style.width-2*(n.padding||0),1);F=F*J%180;"parallel"===w&&(F-=90);90<F?F-=180:-90>F&&(F+=180);n.rotation=F}n.textPath&&(0===l.shapeExisting.innerR&&n.textPath.enabled?(n.rotation=0,n.textPath.enabled=!1,n.style.width=Math.max(2*l.shapeExisting.r-2*(n.padding||
-0),1)):l.dlOptions&&l.dlOptions.textPath&&!l.dlOptions.textPath.enabled&&"circular"===w&&(n.textPath.enabled=!0),n.textPath.enabled&&(n.rotation=0,n.style.width=Math.max((l.outerArcLength+l.innerArcLength)/2-2*(n.padding||0),1)));0===n.rotation&&(n.rotation=.001);l.dlOptions=n;if(!H&&v){H=!0;var A=I}l.draw({animatableAttribs:x,attribs:z(q,!r.styledMode&&a.pointAttribs(l,l.selected&&"select")),onComplete:A,group:d,renderer:D,shapeType:"arc",shapeArgs:t})});q&&H?(a.hasRendered=!1,a.options.dataLabels.defer=
-!0,x.prototype.drawDataLabels.call(a),a.hasRendered=!0,A&&I()):x.prototype.drawDataLabels.call(a)};c.prototype.layoutAlgorithm=function(a,b,c){var d=a.start,e=a.end-d,g=a.val,f=a.x,l=a.y,k=c&&B(c.levelSize)&&G(c.levelSize.value)?c.levelSize.value:0,h=a.r,m=h+k,p=c&&G(c.slicedOffset)?c.slicedOffset:0;return(b||[]).reduce(function(a,b){var c=1/g*b.val*e,n=d+c/2,q=f+Math.cos(n)*p;n=l+Math.sin(n)*p;b={x:b.sliced?q:f,y:b.sliced?n:l,innerR:h,r:m,radius:k,start:d,end:d+c};a.push(b);d=b.end;return a},[])};
-c.prototype.setShapeArgs=function(a,b,c){var d=[],e=c[a.level+1];a=a.children.filter(function(a){return a.visible});d=this.layoutAlgorithm(b,a,e);a.forEach(function(a,b){b=d[b];var e=b.start+(b.end-b.start)/2,f=b.innerR+(b.r-b.innerR)/2,g=b.end-b.start;f=0===b.innerR&&6.28<g?{x:b.x,y:b.y}:{x:b.x+Math.cos(e)*f,y:b.y+Math.sin(e)*f};var l=a.val?a.childrenTotal>a.val?a.childrenTotal:a.val:a.childrenTotal;this.points[a.i]&&(this.points[a.i].innerArcLength=g*b.innerR,this.points[a.i].outerArcLength=g*b.r);
-a.shapeArgs=E(b,{plotX:f.x,plotY:f.y+4*Math.abs(Math.cos(e))});a.values=E(b,{val:l});a.children.length&&this.setShapeArgs(a,a.values,c)},this)};c.prototype.translate=function(){var a=this,b=a.options,c=a.center=a.getCenter(),d=a.startAndEndRadians=u(b.startAngle,b.endAngle),e=c[3]/2,f=c[2]/2-e,k=H(a),h=a.nodeMap,m=h&&h[k],r={};a.shapeRoot=m&&m.shapeArgs;x.prototype.translate.call(a);var A=a.tree=a.getTree();h=a.nodeMap;m=h[k];var B=L(m.parent)?m.parent:"";B=h[B];var z=p.getLevelFromAndTo(m);var E=
-z.from,G=z.to;z=y({from:E,levels:a.options.levels,to:G,defaults:{colorByPoint:b.colorByPoint,dataLabels:b.dataLabels,levelIsConstant:b.levelIsConstant,levelSize:b.levelSize,slicedOffset:b.slicedOffset}});z=p.calculateLevelSizes(z,{diffRadius:f,from:E,to:G});D(A,{before:q,idRoot:k,levelIsConstant:b.levelIsConstant,mapOptionsToLevel:z,mapIdToNode:h,points:a.points,series:a});b=h[""].shapeArgs={end:d.end,r:e,start:d.start,val:m.val,x:c[0],y:c[1]};this.setShapeArgs(B,b,z);a.mapOptionsToLevel=z;a.data.forEach(function(b){r[b.id]&&
-I(31,!1,a.chart);r[b.id]=!0});r={}};c.defaultOptions=E(r.defaultOptions,{center:["50%","50%"],colorByPoint:!1,opacity:1,dataLabels:{allowOverlap:!0,defer:!0,rotationMode:"auto",style:{textOverflow:"ellipsis"}},rootId:void 0,levelIsConstant:!0,levelSize:{value:1,unit:"weight"},slicedOffset:10});return c}(r);z(h.prototype,{drawDataLabels:a,getCenter:c,onPointSupported:!0,pointAttribs:d.prototype.pointAttribs,pointClass:m,NodeClass:f,utils:p});e.registerSeriesType("sunburst",h);"";return h});u(a,"masters/modules/sunburst.src.js",
-[],function(){})});
-//# sourceMappingURL=sunburst.js.map

+ 0 - 26
nicegui/elements/lib/highcharts_modules/tilemap.js

@@ -1,26 +0,0 @@
-/*
- Highmaps JS v10.3.3 (2023-01-20)
-
- Tilemap module
-
- (c) 2010-2021 Highsoft AS
-
- License: www.highcharts.com/license
-*/
-(function(a){"object"===typeof module&&module.exports?(a["default"]=a,module.exports=a):"function"===typeof define&&define.amd?define("highcharts/modules/tilemap",["highcharts","highcharts/modules/map"],function(k){a(k);a.Highcharts=k;return a}):a("undefined"!==typeof Highcharts?Highcharts:void 0)})(function(a){function k(a,d,h,g){a.hasOwnProperty(d)||(a[d]=g.apply(null,h),"function"===typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:d,module:a[d]}})))}
-a=a?a._modules:{};k(a,"Series/Tilemap/TilemapPoint.js",[a["Core/Axis/Color/ColorAxisComposition.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,d,h){var g=this&&this.__extends||function(){var a=function(e,d){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,c){b.__proto__=c}||function(b,c){for(var a in c)c.hasOwnProperty(a)&&(b[a]=c[a])};return a(e,d)};return function(e,d){function b(){this.constructor=e}a(e,d);e.prototype=null===d?Object.create(d):(b.prototype=
-d.prototype,new b)}}(),f=d.series.prototype.pointClass;h=h.extend;d=function(a){function e(){var e=null!==a&&a.apply(this,arguments)||this;e.options=void 0;e.radius=void 0;e.series=void 0;e.tileEdges=void 0;return e}g(e,a);e.prototype.haloPath=function(){return this.series.tileShape.haloPath.apply(this,arguments)};return e}(d.seriesTypes.heatmap.prototype.pointClass);h(d.prototype,{setState:f.prototype.setState,setVisible:a.pointSetVisible});return d});k(a,"Series/Tilemap/TilemapShapes.js",[a["Core/Globals.js"],
-a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,d,h){function g(b,c,a){b=b.options;return{xPad:(b.colsize||1)/-c,yPad:(b.rowsize||1)/-a}}d=d.seriesTypes;var f=d.heatmap,t=d.scatter,e=h.clamp,k=h.pick;return{hexagon:{alignDataLabel:t.prototype.alignDataLabel,getSeriesPadding:function(b){return g(b,3,2)},haloPath:function(b){if(!b)return[];var c=this.tileEdges;return[["M",c.x2-b,c.y1+b],["L",c.x3+b,c.y1+b],["L",c.x4+1.5*b,c.y2],["L",c.x3+b,c.y3-b],["L",c.x2-b,c.y3-b],["L",c.x1-
-1.5*b,c.y2],["Z"]]},translate:function(){var b=this.options,c=this.xAxis,a=this.yAxis,d=b.pointPadding||0,r=(b.colsize||1)/3,w=(b.rowsize||1)/2,n;this.generatePoints();this.points.forEach(function(b){var p=e(Math.floor(c.len-c.translate(b.x-2*r,0,1,0,1)),-c.len,2*c.len),h=e(Math.floor(c.len-c.translate(b.x-r,0,1,0,1)),-c.len,2*c.len),v=e(Math.floor(c.len-c.translate(b.x+r,0,1,0,1)),-c.len,2*c.len),u=e(Math.floor(c.len-c.translate(b.x+2*r,0,1,0,1)),-c.len,2*c.len),x=e(Math.floor(a.translate(b.y-w,
-0,1,0,1)),-a.len,2*a.len),q=e(Math.floor(a.translate(b.y,0,1,0,1)),-a.len,2*a.len),l=e(Math.floor(a.translate(b.y+w,0,1,0,1)),-a.len,2*a.len),m=k(b.pointPadding,d),f=m*Math.abs(h-p)/Math.abs(l-q);f=c.reversed?-f:f;var g=c.reversed?-m:m;m=a.reversed?-m:m;b.x%2&&(n=n||Math.round(Math.abs(l-x)/2)*(a.reversed?-1:1),x+=n,q+=n,l+=n);b.plotX=b.clientX=(h+v)/2;b.plotY=q;p+=f+g;h+=g;v-=g;u-=f+g;x-=m;l+=m;b.tileEdges={x1:p,x2:h,x3:v,x4:u,y1:x,y2:q,y3:l};b.shapeType="path";b.shapeArgs={d:[["M",h,x],["L",v,x],
-["L",u,q],["L",v,l],["L",h,l],["L",p,q],["Z"]]}});this.translateColors()}},diamond:{alignDataLabel:t.prototype.alignDataLabel,getSeriesPadding:function(b){return g(b,2,2)},haloPath:function(b){if(!b)return[];var c=this.tileEdges;return[["M",c.x2,c.y1+b],["L",c.x3+b,c.y2],["L",c.x2,c.y3-b],["L",c.x1-b,c.y2],["Z"]]},translate:function(){var b=this.options,c=this.xAxis,a=this.yAxis,d=b.pointPadding||0,h=b.colsize||1,w=(b.rowsize||1)/2,n;this.generatePoints();this.points.forEach(function(b){var f=e(Math.round(c.len-
-c.translate(b.x-h,0,1,0,0)),-c.len,2*c.len),r=e(Math.round(c.len-c.translate(b.x,0,1,0,0)),-c.len,2*c.len),p=e(Math.round(c.len-c.translate(b.x+h,0,1,0,0)),-c.len,2*c.len),u=e(Math.round(a.translate(b.y-w,0,1,0,0)),-a.len,2*a.len),g=e(Math.round(a.translate(b.y,0,1,0,0)),-a.len,2*a.len),q=e(Math.round(a.translate(b.y+w,0,1,0,0)),-a.len,2*a.len),l=k(b.pointPadding,d),m=l*Math.abs(r-f)/Math.abs(q-g);m=c.reversed?-m:m;l=a.reversed?-l:l;b.x%2&&(n=Math.abs(q-u)/2*(a.reversed?-1:1),u+=n,g+=n,q+=n);b.plotX=
-b.clientX=r;b.plotY=g;f+=m;p-=m;u-=l;q+=l;b.tileEdges={x1:f,x2:r,x3:p,y1:u,y2:g,y3:q};b.shapeType="path";b.shapeArgs={d:[["M",r,u],["L",p,g],["L",r,q],["L",f,g],["Z"]]}});this.translateColors()}},circle:{alignDataLabel:t.prototype.alignDataLabel,getSeriesPadding:function(b){return g(b,2,2)},haloPath:function(b){return t.prototype.pointClass.prototype.haloPath.call(this,b+(b&&this.radius))},translate:function(){var b=this.options,a=this.xAxis,d=this.yAxis,h=b.pointPadding||0,r=(b.rowsize||1)/2,w=b.colsize||
-1,n,g,f,t,k=!1;this.generatePoints();this.points.forEach(function(b){var c=e(Math.round(a.len-a.translate(b.x,0,1,0,0)),-a.len,2*a.len),p=e(Math.round(d.translate(b.y,0,1,0,0)),-d.len,2*d.len),l=h,m=!1;"undefined"!==typeof b.pointPadding&&(l=b.pointPadding,k=m=!0);if(!t||k)n=Math.abs(e(Math.floor(a.len-a.translate(b.x+w,0,1,0,0)),-a.len,2*a.len)-c),g=Math.abs(e(Math.floor(d.translate(b.y+r,0,1,0,0)),-d.len,2*d.len)-p),f=Math.floor(Math.sqrt(n*n+g*g)/2),t=Math.min(n,f,g)-l,k&&!m&&(k=!1);b.x%2&&(p+=
-g*(d.reversed?-1:1));b.plotX=b.clientX=c;b.plotY=p;b.radius=t;b.shapeType="circle";b.shapeArgs={x:c,y:p,r:t}});this.translateColors()}},square:{alignDataLabel:f.prototype.alignDataLabel,translate:f.prototype.translate,getSeriesPadding:a.noop,haloPath:f.prototype.pointClass.prototype.haloPath}}});k(a,"Series/Tilemap/TilemapComposition.js",[a["Core/Axis/Axis.js"],a["Core/Utilities.js"]],function(a,d){d=d.addEvent;d(a,"afterSetAxisTranslation",function(){if(!this.recomputingForTilemap&&"colorAxis"!==
-this.coll){var a=this,d=a.series.map(function(d){return d.getSeriesPixelPadding&&d.getSeriesPixelPadding(a)}).reduce(function(a,d){return(a&&a.padding)>(d&&d.padding)?a:d},void 0)||{padding:0,axisLengthFactor:1},f=Math.round(d.padding*d.axisLengthFactor);d.padding&&(a.len-=f,a.recomputingForTilemap=!0,a.setAxisTranslation(),delete a.recomputingForTilemap,a.minPixelPadding+=d.padding,a.len+=f)}})});k(a,"Series/Tilemap/TilemapSeries.js",[a["Core/Globals.js"],a["Core/Series/SeriesRegistry.js"],a["Series/Tilemap/TilemapPoint.js"],
-a["Series/Tilemap/TilemapShapes.js"],a["Core/Utilities.js"]],function(a,d,h,g,f){var k=this&&this.__extends||function(){var a=function(b,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return a(b,c)};return function(b,c){function d(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(d.prototype=c.prototype,new d)}}();a=a.noop;var e=d.seriesTypes,y=e.column,b=e.heatmap;e=e.scatter;
-var c=f.extend,v=f.merge;f=function(a){function c(){var b=null!==a&&a.apply(this,arguments)||this;b.data=void 0;b.options=void 0;b.points=void 0;b.tileShape=void 0;return b}k(c,a);c.prototype.alignDataLabel=function(){return this.tileShape.alignDataLabel.apply(this,Array.prototype.slice.call(arguments))};c.prototype.drawPoints=function(){var a=this;y.prototype.drawPoints.call(this);this.points.forEach(function(b){b.graphic&&b.graphic[a.chart.styledMode?"css":"animate"](a.colorAttribs(b))})};c.prototype.getSeriesPixelPadding=
-function(a){var b=a.isXAxis,c=this.tileShape.getSeriesPadding(this);if(!c)return{padding:0,axisLengthFactor:1};var d=Math.round(a.translate(b?2*c.xPad:c.yPad,0,1,0,1));a=Math.round(a.translate(b?c.xPad:0,0,1,0,1));return{padding:Math.abs(d-a)||0,axisLengthFactor:b?2:1.1}};c.prototype.setOptions=function(){var b=a.prototype.setOptions.apply(this,Array.prototype.slice.call(arguments));this.tileShape=g[b.tileShape];return b};c.prototype.translate=function(){return this.tileShape.translate.apply(this,
-Array.prototype.slice.call(arguments))};c.defaultOptions=v(b.defaultOptions,{marker:null,states:{hover:{halo:{enabled:!0,size:2,opacity:.5,attributes:{zIndex:3}}}},pointPadding:2,tileShape:"hexagon"});return c}(b);c(f.prototype,{getSymbol:a,markerAttribs:e.prototype.markerAttribs,pointAttribs:y.prototype.pointAttribs,pointClass:h});d.registerSeriesType("tilemap",f);"";"";return f});k(a,"masters/modules/tilemap.src.js",[],function(){})});
-//# sourceMappingURL=tilemap.js.map

+ 0 - 28
nicegui/elements/lib/highcharts_modules/timeline.js

@@ -1,28 +0,0 @@
-/*
- Highcharts JS v10.3.3 (2023-01-20)
-
- Timeline series
-
- (c) 2010-2021 Highsoft AS
- Author: Daniel Studencki
-
- License: www.highcharts.com/license
-*/
-(function(b){"object"===typeof module&&module.exports?(b["default"]=b,module.exports=b):"function"===typeof define&&define.amd?define("highcharts/modules/timeline",["highcharts"],function(c){b(c);b.Highcharts=c;return b}):b("undefined"!==typeof Highcharts?Highcharts:void 0)})(function(b){function c(b,k,n,c){b.hasOwnProperty(k)||(b[k]=c.apply(null,n),"function"===typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:k,module:b[k]}})))}b=b?b._modules:{};c(b,
-"Series/Timeline/TimelinePoint.js",[b["Core/Series/Point.js"],b["Core/Series/SeriesRegistry.js"],b["Core/Utilities.js"]],function(b,k,c){var x=this&&this.__extends||function(){var b=function(d,e){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,e){b.__proto__=e}||function(b,e){for(var d in e)e.hasOwnProperty(d)&&(b[d]=e[d])};return b(d,e)};return function(d,e){function t(){this.constructor=d}b(d,e);d.prototype=null===e?Object.create(e):(t.prototype=e.prototype,new t)}}(),n=k.seriesTypes.pie.prototype.pointClass,
-f=c.defined,A=c.isNumber,m=c.merge,v=c.objectEach,p=c.pick;return function(c){function d(){var e=null!==c&&c.apply(this,arguments)||this;e.options=void 0;e.series=void 0;return e}x(d,c);d.prototype.alignConnector=function(){var e=this.series,b=this.connector,c=this.dataLabel,d=this.dataLabel.options=m(e.options.dataLabels,this.options.dataLabels),h=this.series.chart,l=b.getBBox(),a=l.x+c.translateX;l=l.y+c.translateY;h.inverted?l-=c.options.connectorWidth/2:a+=c.options.connectorWidth/2;h=h.isInsidePlot(a,
-l);b[h?"animate":"attr"]({d:this.getConnectorPath()});e.chart.styledMode||b.attr({stroke:d.connectorColor||this.color,"stroke-width":d.connectorWidth,opacity:c[f(c.newOpacity)?"newOpacity":"opacity"]})};d.prototype.drawConnector=function(){var b=this.series;this.connector||(this.connector=b.chart.renderer.path(this.getConnectorPath()).attr({zIndex:-1}).add(this.dataLabel));this.series.chart.isInsidePlot(this.dataLabel.x,this.dataLabel.y)&&this.alignConnector()};d.prototype.getConnectorPath=function(){var b=
-this.series.chart,c=this.series.xAxis.len,d=b.inverted,f=d?"x2":"y2",h=this.dataLabel,l=h.targetPosition,a={x1:this.plotX,y1:this.plotY,x2:this.plotX,y2:A(l.y)?l.y:h.y},g=(h.alignAttr||h)[f[0]]<this.series.yAxis.len/2;d&&(a={x1:this.plotY,y1:c-this.plotX,x2:l.x||h.x,y2:c-this.plotX});g&&(a[f]+=h[d?"width":"height"]);v(a,function(g,b){a[b]-=(h.alignAttr||h)[b[0]]});return b.renderer.crispLine([["M",a.x1,a.y1],["L",a.x2,a.y2]],h.options.connectorWidth)};d.prototype.init=function(){var b=c.prototype.init.apply(this,
-arguments);b.name=p(b.name,"Event");b.y=1;return b};d.prototype.isValid=function(){return null!==this.options.y};d.prototype.setState=function(){var b=c.prototype.setState;this.isNull||b.apply(this,arguments)};d.prototype.setVisible=function(b,c){var d=this.series;c=p(c,d.options.ignoreHiddenPoint);n.prototype.setVisible.call(this,b,!1);d.processData();c&&d.chart.redraw()};d.prototype.applyOptions=function(d,f){d=b.prototype.optionsToObject.call(this,d);this.userDLOptions=m(this.userDLOptions,d.dataLabels);
-return c.prototype.applyOptions.call(this,d,f)};return d}(k.series.prototype.pointClass)});c(b,"Series/Timeline/TimelineSeriesDefaults.js",[],function(){"";return{colorByPoint:!0,stickyTracking:!1,ignoreHiddenPoint:!0,legendType:"point",lineWidth:4,tooltip:{headerFormat:'<span style="color:{point.color}">\u25cf</span> <span style="font-size: 10px"> {point.key}</span><br/>',pointFormat:"{point.description}"},states:{hover:{lineWidthPlus:0}},dataLabels:{enabled:!0,allowOverlap:!0,alternate:!0,backgroundColor:"#ffffff",
-borderWidth:1,borderColor:"#999999",borderRadius:3,color:"#333333",connectorWidth:1,distance:100,formatter:function(){var b=this.series.chart.styledMode?"<span>\u25cf </span>":'<span style="color:'+this.point.color+'">\u25cf </span>';return b+='<span class="highcharts-strong">'+(this.key||"")+"</span><br/>"+(this.point.label||"")},style:{textOutline:"none",fontWeight:"normal",fontSize:"12px"},shadow:!1,verticalAlign:"middle"},marker:{enabledThreshold:0,symbol:"square",radius:6,lineWidth:2,height:15},
-showInLegend:!1,colorKey:"x"}});c(b,"Series/Timeline/TimelineSeries.js",[b["Core/Legend/LegendSymbol.js"],b["Core/Series/SeriesRegistry.js"],b["Core/Renderer/SVG/SVGElement.js"],b["Series/Timeline/TimelinePoint.js"],b["Series/Timeline/TimelineSeriesDefaults.js"],b["Core/Utilities.js"]],function(b,c,n,y,z,f){var k=this&&this.__extends||function(){var b=function(c,a){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var g in b)b.hasOwnProperty(g)&&
-(a[g]=b[g])};return b(c,a)};return function(c,a){function g(){this.constructor=c}b(c,a);c.prototype=null===a?Object.create(a):(g.prototype=a.prototype,new g)}}(),m=c.seriesTypes,v=m.column,p=m.line,r=f.addEvent,d=f.arrayMax,e=f.arrayMin,t=f.defined;m=f.extend;var w=f.merge,u=f.pick;f=function(b){function c(){var a=null!==b&&b.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;a.userOptions=void 0;a.visibilityMap=void 0;return a}k(c,b);c.prototype.alignDataLabel=function(a,
-c,d,B){var g=this.chart.inverted,q=this.visibilityMap.filter(function(a){return a}),e=this.visiblePointsCount,f=q.indexOf(a);q=this.options.dataLabels;var h=a.userDLOptions||{};f=q.alternate?f&&f!==e-1?2:1.5:1;e=Math.floor(this.xAxis.len/e);var k=c.padding;if(a.visible){var l=Math.abs(h.x||a.options.dataLabels.x);g?(g=2*(l-k)-a.itemHeight/2,g={width:g+"px",textOverflow:c.width/g*c.height/2>e*f?"ellipsis":"none"}):g={width:(h.width||q.width||e*f-2*k)+"px"};c.css(g);this.chart.styledMode||c.shadow(q.shadow)}b.prototype.alignDataLabel.apply(this,
-arguments)};c.prototype.bindAxes=function(){var a=this;b.prototype.bindAxes.call(a);["xAxis","yAxis"].forEach(function(b){"xAxis"!==b||a[b].userOptions.type||(a[b].categories=a[b].hasNames=!0)})};c.prototype.distributeDL=function(){var a=this,b=a.options.dataLabels,c=1;if(b){var d=b.distance||0;a.points.forEach(function(g){var e;g.options.dataLabels=w((e={},e[a.chart.inverted?"x":"y"]=b.alternate&&c%2?-d:d,e),g.userDLOptions);c++})}};c.prototype.generatePoints=function(){var a=this;b.prototype.generatePoints.apply(a);
-a.points.forEach(function(b,c){b.applyOptions({x:a.xData[c]},a.xData[c])})};c.prototype.getVisibilityMap=function(){return(this.data.length?this.data:this.userOptions.data).map(function(a){return a&&!1!==a.visible&&!a.isNull?a:!1})};c.prototype.getXExtremes=function(a){var b=this;a=a.filter(function(a,c){return b.points[c].isValid()&&b.points[c].visible});return{min:e(a),max:d(a)}};c.prototype.init=function(){var a=this;b.prototype.init.apply(a,arguments);a.eventsToUnbind.push(r(a,"afterTranslate",
-function(){var b,c=Number.MAX_VALUE;a.points.forEach(function(a){a.isInside=a.isInside&&a.visible;a.visible&&!a.isNull&&(t(b)&&(c=Math.min(c,Math.abs(a.plotX-b))),b=a.plotX)});a.closestPointRangePx=c}));a.eventsToUnbind.push(r(a,"drawDataLabels",function(){a.distributeDL()}));a.eventsToUnbind.push(r(a,"afterDrawDataLabels",function(){var b;a.points.forEach(function(a){if(b=a.dataLabel)return b.animate=function(a){this.targetPosition&&(this.targetPosition=a);return n.prototype.animate.apply(this,arguments)},
-b.targetPosition||(b.targetPosition={}),a.drawConnector()})}));a.eventsToUnbind.push(r(a.chart,"afterHideOverlappingLabel",function(){a.points.forEach(function(a){a.connector&&a.dataLabel&&a.dataLabel.oldOpacity!==a.dataLabel.newOpacity&&a.alignConnector()})}))};c.prototype.markerAttribs=function(a,c){var d=this.options.marker,e=a.marker||{},f=e.symbol||d.symbol,g=u(e.width,d.width,this.closestPointRangePx),h=u(e.height,d.height),k=0;if(this.xAxis.dateTime)return b.prototype.markerAttribs.call(this,
-a,c);c&&(d=d.states[c]||{},c=e.states&&e.states[c]||{},k=u(c.radius,d.radius,k+(d.radiusPlus||0)));a.hasImage=f&&0===f.indexOf("url");a={x:Math.floor(a.plotX)-g/2-k/2,y:a.plotY-h/2-k/2,width:g+k,height:h+k};return this.chart.inverted?{y:a.x&&a.width&&this.xAxis.len-a.x-a.width,x:a.y&&a.y,width:a.height,height:a.width}:a};c.prototype.processData=function(){var a=0,c;this.visibilityMap=this.getVisibilityMap();this.visibilityMap.forEach(function(b){b&&a++});this.visiblePointsCount=a;for(c=0;c<this.xData.length;c++)this.yData[c]=
-1;b.prototype.processData.call(this,arguments)};c.defaultOptions=w(p.defaultOptions,z);return c}(p);m(f.prototype,{drawLegendSymbol:b.drawRectangle,drawTracker:v.prototype.drawTracker,pointClass:y,trackerGroups:["markerGroup","dataLabelsGroup"]});c.registerSeriesType("timeline",f);"";return f});c(b,"masters/modules/timeline.src.js",[],function(){})});
-//# sourceMappingURL=timeline.js.map

+ 0 - 45
nicegui/elements/lib/highcharts_modules/treegraph.js

@@ -1,45 +0,0 @@
-/*
- Highcharts JS v10.3.3 (2023-01-20)
- Treegraph chart series type
-
-  (c) 2010-2022 Pawel Lysy Grzegorz Blachlinski
-
- License: www.highcharts.com/license
-*/
-(function(d){"object"===typeof module&&module.exports?(d["default"]=d,module.exports=d):"function"===typeof define&&define.amd?define("highcharts/modules/treegraph",["highcharts","highcharts/modules/treemap"],function(h){d(h);d.Highcharts=h;return d}):d("undefined"!==typeof Highcharts?Highcharts:void 0)})(function(d){function h(d,f,c,b){d.hasOwnProperty(f)||(d[f]=b.apply(null,c),"function"===typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:f,module:d[f]}})))}
-d=d?d._modules:{};h(d,"Series/PathUtilities.js",[],function(){return{curvedPath:function(d,f){for(var c=[],b=0;b<d.length;b++){var a=d[b][1],e=d[b][2];if("number"===typeof a&&"number"===typeof e)if(0===b)c.push(["M",a,e]);else if(b===d.length-1)c.push(["L",a,e]);else if(f){var g=d[b-1],l=d[b+1];if(g&&l){var m=g[1];g=g[2];var k=l[1];l=l[2];if("number"===typeof m&&"number"===typeof k&&"number"===typeof g&&"number"===typeof l&&m!==k&&g!==l){var B=m<k?1:-1,t=g<l?1:-1;c.push(["L",a-B*Math.min(Math.abs(a-
-m),f),e-t*Math.min(Math.abs(e-g),f)],["C",a,e,a,e,a+B*Math.min(Math.abs(a-k),f),e+t*Math.min(Math.abs(e-l),f)])}}}else c.push(["L",a,e])}return c}}});h(d,"Series/Treegraph/TreegraphNode.js",[d["Core/Series/SeriesRegistry.js"]],function(d){var f=this&&this.__extends||function(){var c=function(b,a){c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var e in b)b.hasOwnProperty(e)&&(a[e]=b[e])};return c(b,a)};return function(b,a){function e(){this.constructor=
-b}c(b,a);b.prototype=null===a?Object.create(a):(e.prototype=a.prototype,new e)}}();return function(c){function b(){var a=null!==c&&c.apply(this,arguments)||this;a.mod=0;a.shift=0;a.change=0;a.children=[];a.preX=0;a.hidden=!1;a.wasVisited=!1;a.collapsed=!1;return a}f(b,c);b.prototype.nextLeft=function(){return this.getLeftMostChild()||this.thread};b.prototype.nextRight=function(){return this.getRightMostChild()||this.thread};b.prototype.getAncestor=function(a,e){return a.ancestor.children[0]===this.children[0]?
-a.ancestor:e};b.prototype.getLeftMostSibling=function(){var a=this.getParent();if(a){var e=0;for(a=a.children;e<a.length;e++){var b=a[e];if(b&&b.point.visible)return b}}};b.prototype.hasChildren=function(){for(var a=this.children,b=0;b<a.length;b++)if(a[b].point.visible)return!0;return!1};b.prototype.getLeftSibling=function(){var a=this.getParent();if(a){a=a.children;for(var b=this.relativeXPosition-1;0<=b;b--)if(a[b]&&a[b].point.visible)return a[b]}};b.prototype.getLeftMostChild=function(){for(var a=
-this.children,b=0;b<a.length;b++)if(a[b].point.visible)return a[b]};b.prototype.getRightMostChild=function(){for(var a=this.children,b=a.length-1;0<=b;b--)if(a[b].point.visible)return a[b]};b.prototype.getParent=function(){return this.parentNode};b.prototype.getFirstChild=function(){for(var a=this.children,b=0;b<a.length;b++)if(a[b].point.visible)return a[b]};return b}(d.seriesTypes.treemap.prototype.NodeClass)});h(d,"Series/Treegraph/TreegraphPoint.js",[d["Core/Series/Point.js"],d["Core/Series/SeriesRegistry.js"],
-d["Core/Utilities.js"]],function(d,f,c){var b=this&&this.__extends||function(){var a=function(b,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return a(b,c)};return function(b,c){function e(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(e.prototype=c.prototype,new e)}}(),a=c.addEvent,e=c.fireEvent,g=c.merge,l=c.pick;f=function(a){function c(){var b=null!==a&&a.apply(this,arguments)||
-this;b.options=void 0;b.isLink=!1;b.series=void 0;b.node=void 0;b.setState=d.prototype.setState;return b}b(c,a);c.prototype.draw=function(){a.prototype.draw.apply(this,arguments);this.renderCollapseButton()};c.prototype.renderCollapseButton=function(){var a=this.series,b=this.graphic&&this.graphic.parentGroup;a=g(a.options.collapseButton,(a.mapOptionsToLevel[this.node.level||0]||{}).collapseButton,this.series.options.collapseButton);var c=a.width,e=a.height,d=a.shape,f=a.style,m=this.series.chart;
-if(this.shapeArgs)if(this.collapseButtonOptions=a,this.collapseButton)this.node.children.length&&a.enabled?(b=this.getCollapseBtnPosition(a),l=b.x,k=b.y,this.collapseButton.attr({text:this.collapsed?"+":"-",rotation:m.inverted?90:0,rotationOriginX:c/2,rotationOriginY:e/2,visibility:!this.visible||a.onlyOnHover&&"hover"!==this.state&&!this.collapsed?"hidden":"inherit"}).animate({x:l,y:k})):(this.collapseButton.destroy(),delete this.collapseButton);else if(this.node.children.length&&a.enabled){k=this.getCollapseBtnPosition(a);
-var l=k.x,k=k.y;this.collapseButton=m.renderer.label(this.collapsed?"+":"-",l,k,d).attr({height:e-4,width:c-4,padding:2,fill:"#cccccc",rotation:m.inverted?90:0,rotationOriginX:c/2,rotationOriginY:e/2,stroke:"#333333","stroke-width":1,"text-align":"center",align:"center",zIndex:1}).addClass("highcharts-tracker").addClass("highcharts-collapse-button").removeClass("highcharts-no-tooltip").css(f||{}).add(b);this.collapseButton.element.point=this;a.onlyOnHover&&!this.collapsed&&this.collapseButton.hide()}};
-c.prototype.toggleCollapse=function(a){this.collapsed=l(a,!this.collapsed);e(this.series,"toggleCollapse");this.series.redraw()};c.prototype.shouldDraw=function(){return a.prototype.shouldDraw.call(this)&&this.visible};c.prototype.destroy=function(){this.collapseButton&&(this.collapseButton.destroy(),delete this.collapseButton,this.collapseButton=void 0);a.prototype.destroy.apply(this,arguments)};c.prototype.getCollapseBtnPosition=function(a){var b=a.width,c=a.height,e=this.shapeArgs||{},g=e.x,d=
-e.y,f=e.width;e=e.height;return{x:(void 0===g?0:g)+a.x+(this.series.chart.inverted?.3*-c:(void 0===f?0:f)+-.3*b),y:(void 0===d?0:d)+(void 0===e?0:e)/2-c/2+a.y}};return c}(f.seriesTypes.treemap.prototype.pointClass);a(f,"mouseOut",function(){var a=this.collapseButton,b=this.collapseButtonOptions;a&&b&&b.onlyOnHover&&!this.collapsed&&a.hide()});a(f,"mouseOver",function(){this.collapseButton&&this.collapseButton.show()});a(f,"click",function(){this.toggleCollapse()});return f});h(d,"Series/Treegraph/TreegraphLink.js",
-[d["Core/Series/Point.js"],d["Core/Utilities.js"],d["Core/Series/SeriesRegistry.js"]],function(d,f,c){var b=this&&this.__extends||function(){var a=function(b,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return a(b,c)};return function(b,c){function e(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(e.prototype=c.prototype,new e)}}(),a=f.pick,e=f.extend;return function(c){function g(){var a=
-null!==c&&c.apply(this,arguments)||this;a.isLink=!0;a.node={};a.formatPrefix="link";a.dataLabelOnNull=!0;return a}b(g,c);g.prototype.init=function(a,b,e,d){var g=c.prototype.init.apply(this,arguments);this.formatPrefix="link";this.dataLabelOnNull=!0;d&&(g.fromNode=d.node.parentNode.point,g.visible=d.visible,g.toNode=d,this.id=g.toNode.id+"-"+g.fromNode.id);return g};g.prototype.update=function(b,c,g,f){var l={id:this.id,formatPrefix:this.formatPrefix};d.prototype.update.call(this,b,this.isLink?!1:
-c,g,f);this.visible=this.toNode.visible;e(this,l);a(c,!0)&&this.series.chart.redraw(g)};return g}(c.seriesTypes.column.prototype.pointClass)});h(d,"Series/Treegraph/TreegraphLayout.js",[d["Series/Treegraph/TreegraphNode.js"]],function(d){return function(){function f(){}f.createDummyNode=function(c,b,a,e){e=new d;e.id=c.id+"-"+a;e.ancestor=c;e.children.push(b);e.parent=c.id;e.parentNode=c;e.point=b.point;e.level=b.level-a;e.relativeXPosition=b.relativeXPosition;e.visible=b.visible;c.children[b.relativeXPosition]=
-e;b.oldParentNode=c;b.relativeXPosition=0;b.parentNode=e;b.parent=e.id;return e};f.prototype.calculatePositions=function(c){var b=c.nodeList;this.resetValues(b);if(c=c.tree)this.calculateRelativeX(c,0),this.beforeLayout(b),this.firstWalk(c),this.secondWalk(c,-c.preX),this.afterLayout(b)};f.prototype.beforeLayout=function(c){for(var b=0;b<c.length;b++)for(var a=c[b],e=0,d=0,l=a.children;d<l.length;d++){var m=l[d];if(m&&1<m.level-a.level)for(var k=m.level-a.level-1;0<k;)m=f.createDummyNode(a,m,k,e),
-k--;++e}};f.prototype.resetValues=function(c){for(var b=0;b<c.length;b++){var a=c[b];a.mod=0;a.ancestor=a;a.shift=0;a.thread=void 0;a.change=0;a.preX=0}};f.prototype.calculateRelativeX=function(c,b){for(var a=c.children,e=0,d=a.length;e<d;++e)this.calculateRelativeX(a[e],e);c.relativeXPosition=b};f.prototype.firstWalk=function(c){if(c.hasChildren()){var b=c.getLeftMostChild();for(var a=0,e=c.children;a<e.length;a++){var d=e[a];this.firstWalk(d);b=this.apportion(d,b)}this.executeShifts(c);b=c.getLeftMostChild();
-a=c.getRightMostChild();a=(b.preX+a.preX)/2;(b=c.getLeftSibling())?(c.preX=b.preX+1,c.mod=c.preX-a):c.preX=a}else(b=c.getLeftSibling())?(c.preX=b.preX+1,c.mod=c.preX):c.preX=0};f.prototype.secondWalk=function(c,b){c.yPosition=c.preX+b;c.xPosition=c.level;for(var a=0,e=c.children;a<e.length;a++)this.secondWalk(e[a],b+c.mod)};f.prototype.executeShifts=function(c){for(var b=0,a=0,e=c.children.length-1;0<=e;e--){var d=c.children[e];d.preX+=b;d.mod+=b;a+=d.change;b+=d.shift+a}};f.prototype.apportion=function(c,
-b){var a=c.getLeftSibling();if(a){for(var e=c,d=c,f=e.getLeftMostSibling(),m=e.mod,k=d.mod,h=a.mod,t=f.mod;a&&a.nextRight()&&e&&e.nextLeft();){a=a.nextRight();f=f.nextLeft();e=e.nextLeft();d=d.nextRight();d.ancestor=c;var n=a.preX+h-(e.preX+m)+1;0<n&&(this.moveSubtree(c.getAncestor(a,b),c,n),m+=n,k+=n);h+=a.mod;m+=e.mod;t+=f.mod;k+=d.mod}a&&a.nextRight()&&!d.nextRight()&&(d.thread=a.nextRight(),d.mod+=h-k);e&&e.nextLeft()&&!f.nextLeft()&&(f.thread=e.nextLeft(),f.mod+=m-t);b=c}return b};f.prototype.moveSubtree=
-function(c,b,a){var e=b.relativeXPosition-c.relativeXPosition;b.change-=a/e;b.shift+=a;b.preX+=a;b.mod+=a;c.change+=a/e};f.prototype.afterLayout=function(c){for(var b=0;b<c.length;b++){var a=c[b];a.oldParentNode&&(a.relativeXPosition=a.parentNode.relativeXPosition,a.parent=a.oldParentNode.parent,a.parentNode=a.oldParentNode,delete a.oldParentNode.children[a.relativeXPosition],a.oldParentNode.children[a.relativeXPosition]=a,a.oldParentNode=void 0)}};return f}()});h(d,"Series/Treegraph/TreegraphSeriesDefaults.js",
-[],function(){return{reversed:!1,marker:{radius:10,lineWidth:0,symbol:"circle",fillOpacity:1,states:{}},link:{color:"#666666",lineWidth:1,radius:10,cursor:"default",type:"curved"},collapseButton:{onlyOnHover:!0,enabled:!0,x:0,y:0,height:10,width:10,shape:"circle"},tooltip:{linkFormat:"{point.fromNode.id} \u2192 {point.toNode.id}",pointFormat:"{point.id}"},dataLabels:{linkTextPath:{attributes:{startOffset:"50%"}},enabled:!0,linkFormatter:function(){return""},formatter:function(){return this.point.id}}}});
-h(d,"Series/Treegraph/TreegraphSeries.js",[d["Series/PathUtilities.js"],d["Core/Series/SeriesRegistry.js"],d["Core/Renderer/SVG/SVGRenderer.js"],d["Series/Treegraph/TreegraphNode.js"],d["Series/Treegraph/TreegraphPoint.js"],d["Series/TreeUtilities.js"],d["Core/Utilities.js"],d["Series/Treegraph/TreegraphLink.js"],d["Series/Treegraph/TreegraphLayout.js"],d["Series/Treegraph/TreegraphSeriesDefaults.js"]],function(d,f,c,b,a,e,g,l,m,k){var h=this&&this.__extends||function(){var a=function(b,c){a=Object.setPrototypeOf||
-{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return a(b,c)};return function(b,c){function d(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(d.prototype=c.prototype,new d)}}(),t=d.curvedPath,n=f.series.prototype;d=f.seriesTypes;var C=d.treemap,x=d.column,D=c.prototype.symbols,E=e.getLevelOptions;c=g.extend;var F=g.isArray,u=g.merge,v=g.pick,z=g.relativeLength;g=function(a){function b(){var b=null!==a&&
-a.apply(this,arguments)||this;b.data=void 0;b.options=void 0;b.points=void 0;b.layoutModifier=void 0;b.nodeMap=void 0;b.tree=void 0;b.nodeList=[];b.layoutAlgorythm=void 0;b.links=[];b.mapOptionsToLevel=void 0;return b}h(b,a);b.prototype.init=function(){a.prototype.init.apply(this,arguments);this.layoutAlgorythm=new m};b.prototype.getLayoutModifiers=function(){var b=this,a=this.chart,c=this,d=a.plotSizeX,e=a.plotSizeY,f=Infinity,g=-Infinity,l=Infinity,m=-Infinity,k=0,h=0,A=0,w=0;this.points.forEach(function(a){var q=
-a.node;a=u(b.options.marker,(c.mapOptionsToLevel[a.node.level]||{}).marker,a.options.marker);var p=z(a.radius||0,Math.min(d,e)),r=a.symbol,y="circle"!==r&&a.height?z(a.height,e):2*p;p="circle"!==r&&a.width?z(a.width,d):2*p;q.nodeSizeX=p;q.nodeSizeY=y;q.xPosition<=f&&(f=q.xPosition,r=a.lineWidth||0,h=Math.max(p+r,h));q.xPosition>=g&&(g=q.xPosition,r=a.lineWidth||0,k=Math.max(p+r,k));q.yPosition<=l&&(l=q.yPosition,r=a.lineWidth||0,w=Math.max(y+r,w));q.yPosition>=m&&(m=q.yPosition,r=a.lineWidth||0,A=
-Math.max(y+r,A))});a=m===l?1:(e-(w+A)/2)/(m-l);var n=g===f?1:(d-(k+k)/2)/(g-f);return{ax:n,bx:g===f?d/2:-n*f+h/2,ay:a,by:m===l?e/2:-a*l+w/2}};b.prototype.getLinks=function(){var a=this,b=[];this.data.forEach(function(c,d){d=a.mapOptionsToLevel[c.node.level||0]||{};c.node.parent?(d=u(d,c.options),c.linkToParent&&c.linkToParent.update?c.linkToParent.update(d,!1):(d=(new a.LinkClass).init(a,d,void 0,c),c.linkToParent=d),c.linkToParent.index=b.push(c.linkToParent)-1):c.linkToParent&&(a.links.splice(c.linkToParent.index),
-c.linkToParent.destroy(),delete c.linkToParent)});return b};b.prototype.buildTree=function(b,c,d,e,f){var q=this.points[c];d=q&&q.level||d;return a.prototype.buildTree.call(this,b,c,d,e,f)};b.prototype.markerAttribs=function(){return{}};b.prototype.setCollapsedStatus=function(a,b){var c=this,d=a.point;d&&(d.collapsed=v(d.collapsed,(this.mapOptionsToLevel[a.level]||{}).collapsed),d.visible=b,b=!1===b?!1:!d.collapsed);a.children.forEach(function(a){c.setCollapsedStatus(a,b)})};b.prototype.drawTracker=
-function(){x.prototype.drawTracker.apply(this,arguments);x.prototype.drawTracker.call(this,this.links)};b.prototype.translate=function(){var a=this,b=this.options,c=e.updateRootId(this);n.translate.call(this);var d=this.tree=this.getTree();var f=this.nodeMap[c];""===c||f&&f.children.length||(this.setRootNode("",!1),c=this.rootNode,f=this.nodeMap[c]);this.mapOptionsToLevel=E({from:f.level+1,levels:b.levels,to:d.height,defaults:{levelIsConstant:this.options.levelIsConstant,colorByPoint:b.colorByPoint}});
-this.setCollapsedStatus(d,!0);this.links=this.getLinks();this.setTreeValues(d);this.layoutAlgorythm.calculatePositions(this);this.layoutModifier=this.getLayoutModifiers();this.points.forEach(function(b){a.translateNode(b)});this.points.forEach(function(b){b.linkToParent&&a.translateLink(b.linkToParent)})};b.prototype.translateLink=function(a){var b=a.fromNode,c=a.toNode,d=this.options.link.lineWidth,e=Math.round(d)%2/2,f=v(this.options.link.curveFactor,.5),g=v(a.options.link&&a.options.link.type,
-this.options.link.type);if(b.shapeArgs&&c.shapeArgs){var p=b.shapeArgs.width||0,l=this.chart.inverted,m=Math.floor((b.shapeArgs.y||0)+(b.shapeArgs.height||0)/2)+e,k=Math.floor((c.shapeArgs.y||0)+(c.shapeArgs.height||0)/2)+e,h=Math.floor((b.shapeArgs.x||0)+p)+e,n=Math.floor(c.shapeArgs.x||0)+e;l&&(h-=p,n+=c.shapeArgs.width||0);b=c.node.xPosition-b.node.xPosition;a.shapeType="path";p=(Math.abs(n-h)+p)/b-p;f=p*f*(l?-1:1);a.plotX=Math.floor((n+h)/2)+e;a.plotY=k;a.shapeArgs="straight"===g?{d:[["M",h,m],
-["L",h+p*(l?-1:1),k],["L",n,k]]}:"curved"===g?{d:[["M",h,m],["C",h+f,m,h-f+p*(l?-1:1),k,h+p*(l?-1:1),k],["L",n,k]]}:{d:t([["M",h,m],["L",h+p*(l?-.5:.5),m],["L",h+p*(l?-.5:.5),k],["L",n,k]],this.options.link.radius)};a.dlBox={x:(h+n)/2,y:(m+k)/2,height:d,width:0};a.tooltipPos=l?[(this.chart.plotSizeY||0)-a.dlBox.y,(this.chart.plotSizeX||0)-a.dlBox.x]:[a.dlBox.x,a.dlBox.y]}};b.prototype.drawNodeLabels=function(a){for(var b=this.mapOptionsToLevel,c,d,e=0;e<a.length;e++){var f=a[e];d=b[f.node.level];
-c={style:{}};d&&d.dataLabels&&(c=u(c,d.dataLabels),this._hasPointLabels=!0);f.shapeArgs&&(c.style.width=f.shapeArgs.width,f.dataLabel&&f.dataLabel.css({width:f.shapeArgs.width+"px"}));f.dlOptions=u(c,f.options.dataLabels)}n.drawDataLabels.call(this,a)};b.prototype.drawDataLabels=function(){this.options.dataLabels&&(F(this.options.dataLabels)||(this.options.dataLabels=[this.options.dataLabels]),this.drawNodeLabels(this.points),n.drawDataLabels.call(this,this.links))};b.prototype.destroy=function(){for(var a=
-0,b=this.links;a<b.length;a++)b[a].destroy();return n.destroy.apply(this,arguments)};b.prototype.pointAttribs=function(a,b){var c=this.mapOptionsToLevel[a.node.level||0]||{},d=a.options,e=c.states&&c.states[b]||{};a.options.marker=u(this.options.marker,c.marker,a.options.marker);var f=v(e.borderRadius,d.borderRadius,c.borderRadius,this.options.borderRadius),g=v(e.link&&e.link.color,d.link&&d.link.color,c.link&&c.link.color,this.options.link&&this.options.link.color);c=v(e.link&&e.link.lineWidth,d.link&&
-d.link.lineWidth,c.link&&c.link.lineWidth,this.options.link&&this.options.link.lineWidth);b=n.pointAttribs.call(this,a,b);a.isLink?(b.stroke=g,b["stroke-width"]=c,delete b.fill):f&&(b.r=f);return b};b.prototype.drawPoints=function(){a.prototype.drawPoints.apply(this,arguments);x.prototype.drawPoints.call(this,this.links)};b.prototype.translateNode=function(a){var b=this.chart,c=a.node,d=b.plotSizeY,e=b.plotSizeX,f=this.layoutModifier,g=f.ax*c.xPosition+f.bx,l=f.ay*c.yPosition+f.by;f=u(this.options.marker,
-(this.mapOptionsToLevel[c.level]||{}).marker,a.options.marker).symbol;var k=c.nodeSizeY,h=c.nodeSizeX,m=this.options.reversed;g=c.x=b.inverted?e-h/2-g:g-h/2;c=c.y=m?l-k/2:d-l-k/2;a.shapeType="path";a.plotX=g;a.plotY=c;a.shapeArgs={d:D[f||"circle"](g,c,h,k),x:g,y:c,width:h,height:k,cursor:a.node.isLeaf?"default":"pointer"};a.tooltipPos=b.inverted?[d-c-k/2,e-g-h/2]:[g+h/2,c]};b.defaultOptions=u(C.defaultOptions,k);return b}(C);c(g.prototype,{pointClass:a,NodeClass:b,LinkClass:l});f.registerSeriesType("treegraph",
-g);"";return g});h(d,"masters/modules/treegraph.src.js",[],function(){})});
-//# sourceMappingURL=treegraph.js.map

+ 0 - 66
nicegui/elements/lib/highcharts_modules/treegrid.js

@@ -1,66 +0,0 @@
-/*
- Highcharts Gantt JS v10.3.3 (2023-01-20)
-
- Tree Grid
-
- (c) 2016-2021 Jon Arild Nygard
-
- License: www.highcharts.com/license
-*/
-(function(c){"object"===typeof module&&module.exports?(c["default"]=c,module.exports=c):"function"===typeof define&&define.amd?define("highcharts/modules/treegrid",["highcharts"],function(F){c(F);c.Highcharts=F;return c}):c("undefined"!==typeof Highcharts?Highcharts:void 0)})(function(c){function F(c,w,C,u){c.hasOwnProperty(w)||(c[w]=u.apply(null,C),"function"===typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:w,module:c[w]}})))}c=c?c._modules:{};F(c,
-"Core/Axis/BrokenAxis.js",[c["Core/Axis/Stacking/StackItem.js"],c["Core/Utilities.js"]],function(c,w){var C=w.addEvent,u=w.find,E=w.fireEvent,B=w.isArray,p=w.isNumber,y=w.pick,z;(function(a){function A(){"undefined"!==typeof this.brokenAxis&&this.brokenAxis.setBreaks(this.options.breaks,!1)}function D(){this.brokenAxis&&this.brokenAxis.hasBreaks&&(this.options.ordinal=!1)}function H(){var a=this.brokenAxis;if(a&&a.hasBreaks){for(var b=this.tickPositions,d=this.tickPositions.info,l=[],e=0;e<b.length;e++)a.isInAnyBreak(b[e])||
-l.push(b[e]);this.tickPositions=l;this.tickPositions.info=d}}function t(){this.brokenAxis||(this.brokenAxis=new z(this))}function r(){var a=this.options.connectNulls,b=this.points,d=this.xAxis,l=this.yAxis;if(this.isDirty)for(var e=b.length;e--;){var k=b[e],h=!(null===k.y&&!1===a)&&(d&&d.brokenAxis&&d.brokenAxis.isInAnyBreak(k.x,!0)||l&&l.brokenAxis&&l.brokenAxis.isInAnyBreak(k.y,!0));k.visible=h?!1:!1!==k.options.visible}}function m(){this.drawBreaks(this.xAxis,["x"]);this.drawBreaks(this.yAxis,
-y(this.pointArrayMap,["y"]))}function f(a,b){var d=this,l=d.points,e,k,h,x;if(a&&a.brokenAxis&&a.brokenAxis.hasBreaks){var f=a.brokenAxis;b.forEach(function(b){e=f&&f.breakArray||[];k=a.isXAxis?a.min:y(d.options.threshold,a.min);l.forEach(function(l){x=y(l["stack"+b.toUpperCase()],l[b]);e.forEach(function(b){if(p(k)&&p(x)){h=!1;if(k<b.from&&x>b.to||k>b.from&&x<b.from)h="pointBreak";else if(k<b.from&&x>b.from&&x<b.to||k>b.from&&x>b.to&&x<b.from)h="pointInBreak";h&&E(a,h,{point:l,brk:b})}})})})}}function n(){var a=
-this.currentDataGrouping,b=a&&a.gapSize;a=this.points.slice();var d=this.yAxis,l=this.options.gapSize,e=a.length-1,k;if(l&&0<e)for("value"!==this.options.gapUnit&&(l*=this.basePointRange),b&&b>l&&b>=this.basePointRange&&(l=b),k=void 0;e--;)k&&!1!==k.visible||(k=a[e+1]),b=a[e],!1!==k.visible&&!1!==b.visible&&(k.x-b.x>l&&(k=(b.x+k.x)/2,a.splice(e+1,0,{isNull:!0,x:k}),d.stacking&&this.options.stacking&&(k=d.stacking.stacks[this.stackKey][k]=new c(d,d.options.stackLabels,!1,k,this.stack),k.total=0)),
-k=b);return this.getGraphPath(a)}var v=[];a.compose=function(a,b){-1===v.indexOf(a)&&(v.push(a),a.keepProps.push("brokenAxis"),C(a,"init",t),C(a,"afterInit",A),C(a,"afterSetTickPositions",H),C(a,"afterSetOptions",D));if(-1===v.indexOf(b)){v.push(b);var d=b.prototype;d.drawBreaks=f;d.gappedPath=n;C(b,"afterGeneratePoints",r);C(b,"afterRender",m)}return a};var z=function(){function a(a){this.hasBreaks=!1;this.axis=a}a.isInBreak=function(a,d){var b=a.repeat||Infinity,e=a.from,k=a.to-a.from;d=d>=e?(d-
-e)%b:b-(e-d)%b;return a.inclusive?d<=k:d<k&&0!==d};a.lin2Val=function(b){var d=this.brokenAxis;d=d&&d.breakArray;if(!d||!p(b))return b;var l;for(l=0;l<d.length;l++){var e=d[l];if(e.from>=b)break;else e.to<b?b+=e.len:a.isInBreak(e,b)&&(b+=e.len)}return b};a.val2Lin=function(b){var d=this.brokenAxis;d=d&&d.breakArray;if(!d||!p(b))return b;var l=b,e;for(e=0;e<d.length;e++){var k=d[e];if(k.to<=b)l-=k.len;else if(k.from>=b)break;else if(a.isInBreak(k,b)){l-=b-k.from;break}}return l};a.prototype.findBreakAt=
-function(a,d){return u(d,function(b){return b.from<a&&a<b.to})};a.prototype.isInAnyBreak=function(b,d){var l=this.axis,e=l.options.breaks||[],k=e.length,h;if(k&&p(b)){for(;k--;)if(a.isInBreak(e[k],b)){var x=!0;h||(h=y(e[k].showPoints,!l.isXAxis))}var f=x&&d?x&&!h:x}return f};a.prototype.setBreaks=function(b,d){var l=this,e=l.axis,k=B(b)&&!!b.length;e.isDirty=l.hasBreaks!==k;l.hasBreaks=k;e.options.breaks=e.userOptions.breaks=b;e.forceRedraw=!0;e.series.forEach(function(a){a.isDirty=!0});k||e.val2lin!==
-a.val2Lin||(delete e.val2lin,delete e.lin2val);k&&(e.userOptions.ordinal=!1,e.lin2val=a.lin2Val,e.val2lin=a.val2Lin,e.setExtremes=function(a,b,d,k,f){if(l.hasBreaks){for(var h=this.options.breaks||[],x;x=l.findBreakAt(a,h);)a=x.to;for(;x=l.findBreakAt(b,h);)b=x.from;b<a&&(b=a)}e.constructor.prototype.setExtremes.call(this,a,b,d,k,f)},e.setAxisTranslation=function(){e.constructor.prototype.setAxisTranslation.call(this);l.unitLength=void 0;if(l.hasBreaks){var b=e.options.breaks||[],d=[],k=[],f=y(e.pointRangePadding,
-0),t=0,n,m=e.userMin||e.min,r=e.userMax||e.max,v;b.forEach(function(g){n=g.repeat||Infinity;p(m)&&p(r)&&(a.isInBreak(g,m)&&(m+=g.to%n-m%n),a.isInBreak(g,r)&&(r-=r%n-g.from%n))});b.forEach(function(g){q=g.from;n=g.repeat||Infinity;if(p(m)&&p(r)){for(;q-n>m;)q-=n;for(;q<m;)q+=n;for(v=q;v<r;v+=n)d.push({value:v,move:"in"}),d.push({value:v+g.to-g.from,move:"out",size:g.breakSize})}});d.sort(function(g,a){return g.value===a.value?("in"===g.move?0:1)-("in"===a.move?0:1):g.value-a.value});var g=0;var q=
-m;d.forEach(function(a){g+="in"===a.move?1:-1;1===g&&"in"===a.move&&(q=a.value);0===g&&p(q)&&(k.push({from:q,to:a.value,len:a.value-q-(a.size||0)}),t+=a.value-q-(a.size||0))});l.breakArray=k;p(m)&&p(r)&&p(e.min)&&(l.unitLength=r-m-t+f,E(e,"afterBreaks"),e.staticScale?e.transA=e.staticScale:l.unitLength&&(e.transA*=(r-e.min+f)/l.unitLength),f&&(e.minPixelPadding=e.transA*(e.minPointOffset||0)),e.min=m,e.max=r)}});y(d,!0)&&e.chart.redraw()};return a}();a.Additions=z})(z||(z={}));return z});F(c,"Core/Axis/GridAxis.js",
-[c["Core/Axis/Axis.js"],c["Core/Axis/AxisDefaults.js"],c["Core/Globals.js"],c["Core/Utilities.js"]],function(c,w,C,u){function E(g,a){var q={width:0,height:0};a.forEach(function(a){a=g[a];if(u.isObject(a,!0)){var b=u.isObject(a.label,!0)?a.label:{};a=b.getBBox?b.getBBox().height:0;b.textStr&&!x(b.textPxLength)&&(b.textPxLength=b.getBBox().width);var J=x(b.textPxLength)?Math.round(b.textPxLength):0;b.textStr&&(J=Math.round(b.getBBox().width));q.height=Math.max(a,q.height);q.width=Math.max(J,q.width)}});
-"treegrid"===this.options.type&&this.treeGrid&&this.treeGrid.mapOfPosToGridNode&&(q.width+=this.options.labels.indentation*((this.treeGrid.mapOfPosToGridNode[-1].height||0)-1));return q}function B(){var a=this.grid;(a&&a.columns||[]).forEach(function(a){a.getOffset()})}function p(a){if(!0===(this.options.grid||{}).enabled){var g=this.axisTitle,b=this.height,h=this.horiz,d=this.left,k=this.offset,e=this.opposite,f=this.options,l=this.top,x=this.width,n=this.tickSize(),t=g&&g.getBBox().width,m=f.title.x,
-r=f.title.y,v=M(f.title.margin,h?5:10);g=this.chart.renderer.fontMetrics(f.title.style.fontSize,g).f;n=(h?l+b:d)+(h?1:-1)*(e?-1:1)*(n?n[0]/2:0)+(this.side===G.bottom?g:0);a.titlePosition.x=h?d-(t||0)/2-v+m:n+(e?x:0)+k+m;a.titlePosition.y=h?n-(e?b:0)+(e?g:-g)/2+k+r:l-v+r}}function y(){var a=this.chart,q=this.options.grid;q=void 0===q?{}:q;var b=this.userOptions;if(q.enabled){var h=this.options;h.labels.align=M(h.labels.align,"center");this.categories||(h.showLastLabel=!1);this.labelRotation=0;h.labels.rotation=
-0}if(q.columns){h=this.grid.columns=[];for(var d=this.grid.columnIndex=0;++d<q.columns.length;){var k=I(b,q.columns[q.columns.length-d-1],{linkedTo:0,type:"category",scrollbar:{enabled:!1}});delete k.grid.columns;k=new c(this.chart,k);k.grid.isColumn=!0;k.grid.columnIndex=d;e(a.axes,k);e(a[this.coll],k);h.push(k)}}}function z(){var a=this.grid,q=this.options;if(!0===(q.grid||{}).enabled){var b=this.min||0,h=this.max||0;this.maxLabelDimensions=this.getMaxLabelDimensions(this.ticks,this.tickPositions);
-this.rightWall&&this.rightWall.destroy();if(this.grid&&this.grid.isOuterAxis()&&this.axisLine){var k=q.lineWidth;if(k){k=this.getLinePath(k);var d=k[0],e=k[1],f=((this.tickSize("tick")||[1])[0]-1)*(this.side===G.top||this.side===G.left?-1:1);"M"===d[0]&&"L"===e[0]&&(this.horiz?(d[2]+=f,e[2]+=f):(d[1]+=f,e[1]+=f));!this.horiz&&this.chart.marginRight&&(d=[d,["L",this.left,d[2]||0]],f=["L",this.chart.chartWidth-this.chart.marginRight,this.toPixels(h+this.tickmarkOffset)],e=[["M",e[1]||0,this.toPixels(h+
-this.tickmarkOffset)],f],this.grid.upperBorder||0===b%1||(this.grid.upperBorder=this.grid.renderBorder(d)),this.grid.upperBorder&&(this.grid.upperBorder.attr({stroke:q.lineColor,"stroke-width":q.lineWidth}),this.grid.upperBorder.animate({d:d})),this.grid.lowerBorder||0===h%1||(this.grid.lowerBorder=this.grid.renderBorder(e)),this.grid.lowerBorder&&(this.grid.lowerBorder.attr({stroke:q.lineColor,"stroke-width":q.lineWidth}),this.grid.lowerBorder.animate({d:e})));this.grid.axisLineExtra?(this.grid.axisLineExtra.attr({stroke:q.lineColor,
-"stroke-width":q.lineWidth}),this.grid.axisLineExtra.animate({d:k})):this.grid.axisLineExtra=this.grid.renderBorder(k);this.axisLine[this.showAxis?"show":"hide"]()}}(a&&a.columns||[]).forEach(function(a){return a.render()});if(!this.horiz&&this.chart.hasRendered&&(this.scrollbar||this.linkedParent&&this.linkedParent.scrollbar)){a=this.tickmarkOffset;q=this.tickPositions[this.tickPositions.length-1];k=this.tickPositions[0];for(d=e=void 0;(e=this.hiddenLabels.pop())&&e.element;)e.show();for(;(d=this.hiddenMarks.pop())&&
-d.element;)d.show();(e=this.ticks[k].label)&&(b-k>a?this.hiddenLabels.push(e.hide()):e.show());(e=this.ticks[q].label)&&(q-h>a?this.hiddenLabels.push(e.hide()):e.show());(b=this.ticks[q].mark)&&q-h<a&&0<q-h&&this.ticks[q].isLast&&this.hiddenMarks.push(b.hide())}}}function a(){var a=this.tickPositions&&this.tickPositions.info,q=this.options,b=this.userOptions.labels||{};(q.grid||{}).enabled&&(this.horiz?(this.series.forEach(function(a){a.options.pointRange=0}),a&&q.dateTimeLabelFormats&&q.labels&&
-!l(b.align)&&(!1===q.dateTimeLabelFormats[a.unitName].range||1<a.count)&&(q.labels.align="left",l(b.x)||(q.labels.x=3))):"treegrid"!==this.options.type&&this.grid&&this.grid.columns&&(this.minPointOffset=this.tickInterval))}function A(a){var g=this.options;a=a.userOptions;var b=g&&u.isObject(g.grid,!0)?g.grid:{};if(!0===b.enabled){var h=I(!0,{className:"highcharts-grid-axis "+(a.className||""),dateTimeLabelFormats:{hour:{list:["%H:%M","%H"]},day:{list:["%A, %e. %B","%a, %e. %b","%E"]},week:{list:["Week %W",
-"W%W"]},month:{list:["%B","%b","%o"]}},grid:{borderWidth:1},labels:{padding:2,style:{fontSize:"13px"}},margin:0,title:{text:null,reserveSpace:!1,rotation:0},units:[["millisecond",[1,10,100]],["second",[1,10]],["minute",[1,5,15]],["hour",[1,6]],["day",[1]],["week",[1]],["month",[1]],["year",null]]},a);"xAxis"===this.coll&&(l(a.linkedTo)&&!l(a.tickPixelInterval)&&(h.tickPixelInterval=350),l(a.tickPixelInterval)||!l(a.linkedTo)||l(a.tickPositioner)||l(a.tickInterval)||(h.tickPositioner=function(a,g){var b=
-this.linkedParent&&this.linkedParent.tickPositions&&this.linkedParent.tickPositions.info;if(b){for(var q=h.units||[],d=void 0,e=1,k="year",f=0;f<q.length;f++){var J=q[f];if(J&&J[0]===b.unitName){d=f;break}}(q=x(d)&&q[d+1])?(k=q[0]||"year",e=(e=q[1])&&e[0]||1):"year"===b.unitName&&(e=10*b.count);b=O[k];this.tickInterval=b*e;return this.chart.time.getTimeTicks({unitRange:b,count:e,unitName:k},a,g,this.options.startOfWeek)}}));I(!0,this.options,h);this.horiz&&(g.minPadding=M(a.minPadding,0),g.maxPadding=
-M(a.maxPadding,0));x(g.grid.borderWidth)&&(g.tickWidth=g.lineWidth=b.borderWidth)}}function D(a){a=(a=a.userOptions)&&a.grid||{};var g=a.columns;a.enabled&&g&&I(!0,this.options,g[g.length-1])}function H(){(this.grid.columns||[]).forEach(function(a){return a.setScale()})}function t(a){var g=w.defaultLeftAxisOptions,b=this.horiz,e=this.maxLabelDimensions,d=this.options.grid;d=void 0===d?{}:d;d.enabled&&e&&(g=2*Math.abs(g.labels.x),b=b?d.cellHeight||g+e.height:g+e.width,h(a.tickSize)?a.tickSize[0]=b:
-a.tickSize=[b,0])}function r(){this.axes.forEach(function(a){(a.grid&&a.grid.columns||[]).forEach(function(a){a.setAxisSize();a.setAxisTranslation()})})}function m(a){var g=this.grid;(g.columns||[]).forEach(function(g){return g.destroy(a.keepEvents)});g.columns=void 0}function f(a){a=a.userOptions||{};var g=a.grid||{};g.enabled&&l(g.borderColor)&&(a.tickColor=a.lineColor=g.borderColor);this.grid||(this.grid=new Q(this));this.hiddenLabels=[];this.hiddenMarks=[]}function n(a){var b=this.label,g=this.axis,
-h=g.reversed,d=g.chart,e=g.options.grid||{},k=g.options.labels,f=k.align,l=G[g.side],n=a.tickmarkOffset,t=g.tickPositions,m=this.pos-n;t=x(t[a.index+1])?t[a.index+1]-n:(g.max||0)+n;var r=g.tickSize("tick");n=r?r[0]:0;r=r?r[1]/2:0;if(!0===e.enabled){if("top"===l){e=g.top+g.offset;var v=e-n}else"bottom"===l?(v=d.chartHeight-g.bottom+g.offset,e=v+n):(e=g.top+g.len-(g.translate(h?t:m)||0),v=g.top+g.len-(g.translate(h?m:t)||0));"right"===l?(l=d.chartWidth-g.right+g.offset,h=l+n):"left"===l?(h=g.left+g.offset,
-l=h-n):(l=Math.round(g.left+(g.translate(h?t:m)||0))-r,h=Math.min(Math.round(g.left+(g.translate(h?m:t)||0))-r,g.left+g.len));this.slotWidth=h-l;a.pos.x="left"===f?l:"right"===f?h:l+(h-l)/2;a.pos.y=v+(e-v)/2;d=d.renderer.fontMetrics(k.style.fontSize,b&&b.element);b=b?b.getBBox().height:0;k.useHTML?a.pos.y+=d.b+-(b/2):(b=Math.round(b/d.h),a.pos.y+=(d.b-(d.h-d.f))/2+-((b-1)*d.h/2));a.pos.x+=g.horiz&&k.x||0}}function v(a){var g=a.axis,b=a.value;if(g.options.grid&&g.options.grid.enabled){var h=g.tickPositions,
-d=(g.linkedParent||g).series[0],e=b===h[0];h=b===h[h.length-1];var f=d&&k(d.options.data,function(a){return a[g.isXAxis?"x":"y"]===b}),l=void 0;f&&d.is("gantt")&&(l=I(f),C.seriesTypes.gantt.prototype.pointClass.setGanttPointAliases(l));a.isFirst=e;a.isLast=h;a.point=l}}function L(){var a=this.options,b=this.categories,h=this.tickPositions,d=h[0],e=h[h.length-1],k=this.linkedParent&&this.linkedParent.min||this.min,f=this.linkedParent&&this.linkedParent.max||this.max,l=this.tickInterval;!0!==(a.grid||
-{}).enabled||b||!this.horiz&&!this.isLinked||(d<k&&d+l>k&&!a.startOnTick&&(h[0]=k),e>f&&e-l<f&&!a.endOnTick&&(h[h.length-1]=f))}function K(a){var g=this.options.grid;return!0===(void 0===g?{}:g).enabled&&this.categories?this.tickInterval:a.apply(this,Array.prototype.slice.call(arguments,1))}var b=C.dateFormats,d=u.addEvent,l=u.defined,e=u.erase,k=u.find,h=u.isArray,x=u.isNumber,I=u.merge,M=u.pick,O=u.timeUnits,P=u.wrap,G;(function(a){a[a.top=0]="top";a[a.right=1]="right";a[a.bottom=2]="bottom";a[a.left=
-3]="left"})(G||(G={}));var N=[],Q=function(){function a(a){this.axis=a}a.prototype.isOuterAxis=function(){var a=this.axis,b=a.grid.columnIndex,g=a.linkedParent&&a.linkedParent.grid.columns||a.grid.columns,h=b?a.linkedParent:a,d=-1,e=0;(a.chart[a.coll]||[]).forEach(function(b,g){b.side!==a.side||b.options.isInternal||(e=g,b===h&&(d=g))});return e===d&&(x(b)?g.length===b:!0)};a.prototype.renderBorder=function(a){var b=this.axis,g=b.chart.renderer,h=b.options;a=g.path(a).addClass("highcharts-axis-line").add(b.axisBorder);
-g.styledMode||a.attr({stroke:h.lineColor,"stroke-width":h.lineWidth,zIndex:7});return a};return a}();b.E=function(a){return this.dateFormat("%a",a,!0).charAt(0)};b.W=function(a){var b=this,g=new this.Date(a);["Hours","Milliseconds","Minutes","Seconds"].forEach(function(a){b.set(a,g,0)});var h=(this.get("Day",g)+6)%7;a=new this.Date(g.valueOf());this.set("Date",a,this.get("Date",g)-h+3);h=new this.Date(this.get("FullYear",a),0,1);4!==this.get("Day",h)&&(this.set("Month",g,0),this.set("Date",g,1+(11-
-this.get("Day",h))%7));return(1+Math.floor((a.valueOf()-h.valueOf())/6048E5)).toString()};"";return{compose:function(b,h,e){-1===N.indexOf(b)&&(N.push(b),b.keepProps.push("grid"),b.prototype.getMaxLabelDimensions=E,P(b.prototype,"unsquish",K),d(b,"init",f),d(b,"afterGetOffset",B),d(b,"afterGetTitlePosition",p),d(b,"afterInit",y),d(b,"afterRender",z),d(b,"afterSetAxisTranslation",a),d(b,"afterSetOptions",A),d(b,"afterSetOptions",D),d(b,"afterSetScale",H),d(b,"afterTickSize",t),d(b,"trimTicks",L),d(b,
-"destroy",m));-1===N.indexOf(h)&&d(h,"afterSetChartSize",r);-1===N.indexOf(e)&&(d(e,"afterGetLabelPosition",n),d(e,"labelFormat",v));return b}}});F(c,"Gantt/Tree.js",[c["Core/Utilities.js"]],function(c){var w=c.extend,C=c.isNumber,u=c.pick,E=function(c,y){var p=c.reduce(function(a,c){var p=u(c.parent,"");"undefined"===typeof a[p]&&(a[p]=[]);a[p].push(c);return a},{});Object.keys(p).forEach(function(a,c){var A=p[a];""!==a&&-1===y.indexOf(a)&&(A.forEach(function(a){c[""].push(a)}),delete c[a])});return p},
-B=function(c,y,z,a,A,D){var p=0,t=0,r=D&&D.after,m=D&&D.before;y={data:a,depth:z-1,id:c,level:z,parent:y};var f,n;"function"===typeof m&&m(y,D);m=(A[c]||[]).map(function(a){var m=B(a.id,c,z+1,a,A,D),r=a.start;a=!0===a.milestone?r:a.end;f=!C(f)||r<f?r:f;n=!C(n)||a>n?a:n;p=p+1+m.descendants;t=Math.max(m.height+1,t);return m});a&&(a.start=u(a.start,f),a.end=u(a.end,n));w(y,{children:m,descendants:p,height:t});"function"===typeof r&&r(y,D);return y};return{getListOfParents:E,getNode:B,getTree:function(c,
-y){var p=c.map(function(a){return a.id});c=E(c,p);return B("",null,1,null,c,y)}}});F(c,"Core/Axis/TreeGrid/TreeGridTick.js",[c["Core/Utilities.js"]],function(c){function w(){this.treeGrid||(this.treeGrid=new D(this))}function C(a,t){a=a.treeGrid;var r=!a.labelIcon,m=t.renderer,f=t.xy,n=t.options,c=n.width||0,p=n.height||0,A=f.x-c/2-(n.padding||0);f=f.y-p/2;var b=t.collapsed?90:180,d=t.show&&y(f),l=a.labelIcon;l||(a.labelIcon=l=m.path(m.symbols[n.type](n.x||0,n.y||0,c,p)).addClass("highcharts-label-icon").add(t.group));
-l[d?"show":"hide"]();m.styledMode||l.attr({cursor:"pointer",fill:z(t.color,"#666666"),"stroke-width":1,stroke:n.lineColor,strokeWidth:n.lineWidth||0});l[r?"attr":"animate"]({translateX:A,translateY:f,rotation:b})}function u(a,t,r,m,f,n,c,A,w){var b=z(this.options&&this.options.labels,n);n=this.pos;var d=this.axis,l="treegrid"===d.options.type;a=a.apply(this,[t,r,m,f,b,c,A,w]);l&&(t=b&&p(b.symbol,!0)?b.symbol:{},b=b&&y(b.indentation)?b.indentation:0,n=(n=(d=d.treeGrid.mapOfPosToGridNode)&&d[n])&&n.depth||
-1,a.x+=(t.width||0)+2*(t.padding||0)+(n-1)*b);return a}function E(a){var c=this,r=c.pos,m=c.axis,f=c.label,n=m.treeGrid.mapOfPosToGridNode,v=m.options,A=z(c.options&&c.options.labels,v&&v.labels),w=A&&p(A.symbol,!0)?A.symbol:{},b=(n=n&&n[r])&&n.depth;v="treegrid"===v.type;var d=-1<m.tickPositions.indexOf(r);r=m.chart.styledMode;v&&n&&f&&f.element&&f.addClass("highcharts-treegrid-node-level-"+b);a.apply(c,Array.prototype.slice.call(arguments,1));v&&f&&f.element&&n&&n.descendants&&0<n.descendants&&
-(m=m.treeGrid.isCollapsed(n),C(c,{color:!r&&f.styles&&f.styles.color||"",collapsed:m,group:f.parentGroup,options:w,renderer:f.renderer,show:d,xy:f.xy}),w="highcharts-treegrid-node-"+(m?"expanded":"collapsed"),f.addClass("highcharts-treegrid-node-"+(m?"collapsed":"expanded")).removeClass(w),r||f.css({cursor:"pointer"}),[f,c.treeGrid.labelIcon].forEach(function(a){a&&!a.attachedTreeGridEvents&&(B(a.element,"mouseover",function(){f.addClass("highcharts-treegrid-node-active");f.renderer.styledMode||f.css({textDecoration:"underline"})}),
-B(a.element,"mouseout",function(){var a=p(A.style)?A.style:{};f.removeClass("highcharts-treegrid-node-active");f.renderer.styledMode||f.css({textDecoration:a.textDecoration})}),B(a.element,"click",function(){c.treeGrid.toggleCollapse()}),a.attachedTreeGridEvents=!0)}))}var B=c.addEvent,p=c.isObject,y=c.isNumber,z=c.pick,a=c.wrap,A=[],D=function(){function c(a){this.tick=a}c.compose=function(c){-1===A.indexOf(c)&&(A.push(c),B(c,"init",w),a(c.prototype,"getLabelPosition",u),a(c.prototype,"renderLabel",
-E),c.prototype.collapse=function(a){this.treeGrid.collapse(a)},c.prototype.expand=function(a){this.treeGrid.expand(a)},c.prototype.toggleCollapse=function(a){this.treeGrid.toggleCollapse(a)})};c.prototype.collapse=function(a){var c=this.tick,m=c.axis,f=m.brokenAxis;f&&m.treeGrid.mapOfPosToGridNode&&(c=m.treeGrid.collapse(m.treeGrid.mapOfPosToGridNode[c.pos]),f.setBreaks(c,z(a,!0)))};c.prototype.destroy=function(){this.labelIcon&&this.labelIcon.destroy()};c.prototype.expand=function(a){var c=this.tick,
-m=c.axis,f=m.brokenAxis;f&&m.treeGrid.mapOfPosToGridNode&&(c=m.treeGrid.expand(m.treeGrid.mapOfPosToGridNode[c.pos]),f.setBreaks(c,z(a,!0)))};c.prototype.toggleCollapse=function(a){var c=this.tick,m=c.axis,f=m.brokenAxis;f&&m.treeGrid.mapOfPosToGridNode&&(c=m.treeGrid.toggleCollapse(m.treeGrid.mapOfPosToGridNode[c.pos]),f.setBreaks(c,z(a,!0)))};return c}();return D});F(c,"Series/TreeUtilities.js",[c["Core/Color/Color.js"],c["Core/Utilities.js"]],function(c,w){function C(a,c){var p=c.before,A=c.idRoot,
-t=c.mapIdToNode[A],r=c.points[a.i],m=r&&r.options||{},f=[],n=0;a.levelDynamic=a.level-(!1!==c.levelIsConstant?0:t.level);a.name=z(r&&r.name,"");a.visible=A===a.id||!0===c.visible;"function"===typeof p&&(a=p(a,c));a.children.forEach(function(m,p){var r=u({},c);u(r,{index:p,siblings:a.children.length,visible:a.visible});m=C(m,r);f.push(m);m.visible&&(n+=m.val)});p=z(m.value,n);a.visible=0<=p&&(0<n||a.visible);a.children=f;a.childrenTotal=n;a.isLeaf=a.visible&&!n;a.val=p;return a}var u=w.extend,E=w.isArray,
-B=w.isNumber,p=w.isObject,y=w.merge,z=w.pick;return{getColor:function(a,p){var A=p.index,w=p.mapOptionsToLevel,t=p.parentColor,r=p.parentColorIndex,m=p.series,f=p.colors,n=p.siblings,v=m.points,y=m.chart.options.chart,u;if(a){v=v[a.i];a=w[a.level]||{};if(w=v&&a.colorByPoint){var b=v.index%(f?f.length:y.colorCount);var d=f&&f[b]}if(!m.chart.styledMode){f=v&&v.options.color;y=a&&a.color;if(u=t)u=(u=a&&a.colorVariation)&&"brightness"===u.key&&A&&n?c.parse(t).brighten(A/n*u.to).get():t;u=z(f,y,d,u,m.color)}var l=
-z(v&&v.options.colorIndex,a&&a.colorIndex,b,r,p.colorIndex)}return{color:u,colorIndex:l}},getLevelOptions:function(a){var c={};if(p(a)){var w=B(a.from)?a.from:1;var u=a.levels;var t={};var r=p(a.defaults)?a.defaults:{};E(u)&&(t=u.reduce(function(a,c){if(p(c)&&B(c.level)){var f=y({},c);var m=z(f.levelIsConstant,r.levelIsConstant);delete f.levelIsConstant;delete f.level;c=c.level+(m?0:w-1);p(a[c])?y(!0,a[c],f):a[c]=f}return a},{}));u=B(a.to)?a.to:1;for(a=0;a<=u;a++)c[a]=y({},r,p(t[a])?t[a]:{})}return c},
-setTreeValues:C,updateRootId:function(a){if(p(a)){var c=p(a.options)?a.options:{};c=z(a.rootNode,c.rootId,"");p(a.userOptions)&&(a.userOptions.rootId=c);a.rootNode=c}return c}}});F(c,"Core/Axis/TreeGrid/TreeGridAxis.js",[c["Core/Axis/BrokenAxis.js"],c["Core/Axis/GridAxis.js"],c["Gantt/Tree.js"],c["Core/Axis/TreeGrid/TreeGridTick.js"],c["Series/TreeUtilities.js"],c["Core/Utilities.js"]],function(c,w,C,u,F,B){function p(a,b){var h=a.collapseEnd||0;a=a.collapseStart||0;h>=b&&(a-=.5);return{from:a,to:h,
-showPoints:!1}}function y(a,b,c){var h=[],d=[],e={},k="boolean"===typeof b?b:!1,f={},l=-1;a=C.getTree(a,{after:function(a){a=f[a.pos];var b=0,h=0;a.children.forEach(function(a){h+=(a.descendants||0)+1;b=Math.max((a.height||0)+1,b)});a.descendants=h;a.height=b;a.collapsed&&d.push(a)},before:function(a){var b=n(a.data,!0)?a.data:{},c=v(b.name)?b.name:"",d=e[a.parent];d=n(d,!0)?f[d.pos]:null;var m=function(a){return a.name===c},x;k&&n(d,!0)&&(x=r(d.children,m))?(m=x.pos,x.nodes.push(a)):m=l++;f[m]||
-(f[m]=x={depth:d?d.depth+1:0,name:c,id:b.id,nodes:[a],children:[],pos:m},-1!==m&&h.push(c),n(d,!0)&&d.children.push(x));v(a.id)&&(e[a.id]=a);x&&!0===b.collapsed&&(x.collapsed=!0);a.pos=m}});f=function(a,b){var h=function(a,c,d){var e=c+(-1===c?0:b-1),g=(e-c)/2,f=c+g;a.nodes.forEach(function(a){var b=a.data;n(b,!0)&&(b.y=c+(b.seriesIndex||0),delete b.seriesIndex);a.pos=f});d[f]=a;a.pos=f;a.tickmarkOffset=g+.5;a.collapseStart=e+.5;a.children.forEach(function(a){h(a,e+1,d);e=(a.collapseEnd||0)-.5});
-a.collapseEnd=e+.5;return d};return h(a["-1"],-1,{})}(f,c);return{categories:h,mapOfIdToNode:e,mapOfPosToGridNode:f,collapsedNodes:d,tree:a}}function z(a){a.target.axes.filter(function(a){return"treegrid"===a.options.type}).forEach(function(b){var c=b.options||{},d=c.labels,h=c.uniqueNames;c=c.max;var e=0;if(!b.treeGrid.mapOfPosToGridNode||b.series.some(function(a){return!a.hasRendered||a.isDirtyData||a.isDirty})){var k=b.series.reduce(function(a,b){b.visible&&((b.options.data||[]).forEach(function(c){b.options.keys&&
-b.options.keys.length&&(c=b.pointClass.prototype.optionsToObject.call({series:b},c),b.pointClass.setGanttPointAliases(c));n(c,!0)&&(c.seriesIndex=e,a.push(c))}),!0===h&&e++);return a},[]);if(c&&k.length<c)for(var l=k.length;l<=c;l++)k.push({name:l+"\u200b"});c=y(k,h||!1,!0===h?e:1);b.categories=c.categories;b.treeGrid.mapOfPosToGridNode=c.mapOfPosToGridNode;b.hasNames=!0;b.treeGrid.tree=c.tree;b.series.forEach(function(a){var b=(a.options.data||[]).map(function(b){f(b)&&a.options.keys&&a.options.keys.length&&
-k.forEach(function(a){0<=b.indexOf(a.x)&&0<=b.indexOf(a.x2)&&(b=a)});return n(b,!0)?L(b):b});a.visible&&a.setData(b,!1)});b.treeGrid.mapOptionsToLevel=H({defaults:d,from:1,levels:d&&d.levels,to:b.treeGrid.tree&&b.treeGrid.tree.height});"beforeRender"===a.type&&(b.treeGrid.collapsedNodes=c.collapsedNodes)}})}function a(a,b){var c=this.treeGrid.mapOptionsToLevel||{},d=this.ticks,e=d[b],h;if("treegrid"===this.options.type&&this.treeGrid.mapOfPosToGridNode){var f=this.treeGrid.mapOfPosToGridNode[b];(c=
-c[f.depth])&&(h={labels:c});!e&&l?d[b]=new l(this,b,void 0,void 0,{category:f.name,tickmarkOffset:f.tickmarkOffset,options:h}):(e.parameters.category=f.name,e.options=h,e.addLabel())}else a.apply(this,Array.prototype.slice.call(arguments,1))}function A(a,b,c){var d=this,h="treegrid"===c.type;d.treeGrid||(d.treeGrid=new e(d));h&&(t(b,"beforeRender",z),t(b,"beforeRedraw",z),t(b,"addSeries",function(a){a.options.data&&(a=y(a.options.data,c.uniqueNames||!1,1),d.treeGrid.collapsedNodes=(d.treeGrid.collapsedNodes||
-[]).concat(a.collapsedNodes))}),t(d,"foundExtremes",function(){d.treeGrid.collapsedNodes&&d.treeGrid.collapsedNodes.forEach(function(a){var b=d.treeGrid.collapse(a);d.brokenAxis&&(d.brokenAxis.setBreaks(b,!1),d.treeGrid.collapsedNodes&&(d.treeGrid.collapsedNodes=d.treeGrid.collapsedNodes.filter(function(b){return a.collapseStart!==b.collapseStart||a.collapseEnd!==b.collapseEnd})))})}),t(d,"afterBreaks",function(){"yAxis"===d.coll&&!d.staticScale&&d.chart.options.chart.height&&(d.isDirty=!0)}),c=L({grid:{enabled:!0},
-labels:{align:"left",levels:[{level:void 0},{level:1,style:{fontWeight:"bold"}}],symbol:{type:"triangle",x:-5,y:-5,height:10,width:10,padding:5}},uniqueNames:!1},c,{reversed:!0,grid:{columns:void 0}}));a.apply(d,[b,c]);h&&(d.hasNames=!0,d.options.showLastLabel=!0)}function E(a){var b=this.options;"treegrid"===b.type?(this.min=K(this.userMin,b.min,this.dataMin),this.max=K(this.userMax,b.max,this.dataMax),m(this,"foundExtremes"),this.setAxisTranslation(),this.tickmarkOffset=.5,this.tickInterval=1,this.tickPositions=
-this.treeGrid.mapOfPosToGridNode?this.treeGrid.getTickPositions():[]):a.apply(this,Array.prototype.slice.call(arguments,1))}var H=F.getLevelOptions,t=B.addEvent,r=B.find,m=B.fireEvent,f=B.isArray,n=B.isObject,v=B.isString,L=B.merge,K=B.pick,b=B.wrap,d=[],l,e=function(){function e(a){this.axis=a}e.compose=function(e,f,k,m){if(-1===d.indexOf(e)){d.push(e);-1===e.keepProps.indexOf("treeGrid")&&e.keepProps.push("treeGrid");var h=e.prototype;b(h,"generateTick",a);b(h,"init",A);b(h,"setTickInterval",E);
-h.utils={getNode:C.getNode}}-1===d.indexOf(m)&&(d.push(m),l||(l=m));w.compose(e,f,m);c.compose(e,k);u.compose(m);return e};e.prototype.setCollapsedStatus=function(a){var b=this.axis,c=b.chart;b.series.forEach(function(b){var d=b.options.data;if(a.id&&d){var e=c.get(a.id);b=d[b.data.indexOf(e)];e&&b&&(e.collapsed=a.collapsed,b.collapsed=a.collapsed)}})};e.prototype.collapse=function(a){var b=this.axis,c=b.options.breaks||[],d=p(a,b.max);c.push(d);a.collapsed=!0;b.treeGrid.setCollapsedStatus(a);return c};
-e.prototype.expand=function(a){var b=this.axis,c=b.options.breaks||[],d=p(a,b.max);a.collapsed=!1;b.treeGrid.setCollapsedStatus(a);return c.reduce(function(a,b){b.to===d.to&&b.from===d.from||a.push(b);return a},[])};e.prototype.getTickPositions=function(){var a=this.axis,b=Math.floor(a.min/a.tickInterval)*a.tickInterval,c=Math.ceil(a.max/a.tickInterval)*a.tickInterval;return Object.keys(a.treeGrid.mapOfPosToGridNode||{}).reduce(function(d,e){e=+e;!(e>=b&&e<=c)||a.brokenAxis&&a.brokenAxis.isInAnyBreak(e)||
-d.push(e);return d},[])};e.prototype.isCollapsed=function(a){var b=this.axis,c=b.options.breaks||[],d=p(a,b.max);return c.some(function(a){return a.from===d.from&&a.to===d.to})};e.prototype.toggleCollapse=function(a){return this.isCollapsed(a)?this.expand(a):this.collapse(a)};return e}();return e});F(c,"masters/modules/treegrid.src.js",[c["Core/Globals.js"],c["Core/Axis/TreeGrid/TreeGridAxis.js"]],function(c,w){w.compose(c.Axis,c.Chart,c.Series,c.Tick)})});
-//# sourceMappingURL=treegrid.js.map

+ 0 - 63
nicegui/elements/lib/highcharts_modules/treemap.js

@@ -1,63 +0,0 @@
-/*
- Highcharts JS v10.3.2 (2022-11-28)
-
- (c) 2014-2021 Highsoft AS
- Authors: Jon Arild Nygard / Oystein Moseng
-
- License: www.highcharts.com/license
-*/
-(function(a){"object"===typeof module&&module.exports?(a["default"]=a,module.exports=a):"function"===typeof define&&define.amd?define("highcharts/modules/treemap",["highcharts"],function(u){a(u);a.Highcharts=u;return a}):a("undefined"!==typeof Highcharts?Highcharts:void 0)})(function(a){function u(a,e,b,m){a.hasOwnProperty(e)||(a[e]=m.apply(null,b),"function"===typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:e,module:a[e]}})))}a=a?a._modules:{};u(a,
-"Series/ColorMapComposition.js",[a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,e){var b=a.seriesTypes.column.prototype,m=e.addEvent,l=e.defined,n;(function(a){function e(c){this.moveToTopOnHover&&this.graphic&&this.graphic.attr({zIndex:c&&"hover"===c.state?1:0})}var f=[];a.pointMembers={dataLabelOnNull:!0,moveToTopOnHover:!0,isValid:function(){return null!==this.value&&Infinity!==this.value&&-Infinity!==this.value&&(void 0===this.value||!isNaN(this.value))}};a.seriesMembers=
-{colorKey:"value",axisTypes:["xAxis","yAxis","colorAxis"],parallelArrays:["x","y","value"],pointArrayMap:["value"],trackerGroups:["group","markerGroup","dataLabelsGroup"],colorAttribs:function(c){var h={};!l(c.color)||c.state&&"normal"!==c.state||(h[this.colorProp||"fill"]=c.color);return h},pointAttribs:b.pointAttribs};a.compose=function(c){var h=c.prototype.pointClass;-1===f.indexOf(h)&&(f.push(h),m(h,"afterSetState",e));return c}})(n||(n={}));return n});u(a,"Series/Treemap/TreemapAlgorithmGroup.js",
-[],function(){return function(){function a(a,b,m,l){this.height=a;this.width=b;this.plot=l;this.startDirection=this.direction=m;this.lH=this.nH=this.lW=this.nW=this.total=0;this.elArr=[];this.lP={total:0,lH:0,nH:0,lW:0,nW:0,nR:0,lR:0,aspectRatio:function(a,e){return Math.max(a/e,e/a)}}}a.prototype.addElement=function(a){this.lP.total=this.elArr[this.elArr.length-1];this.total+=a;0===this.direction?(this.lW=this.nW,this.lP.lH=this.lP.total/this.lW,this.lP.lR=this.lP.aspectRatio(this.lW,this.lP.lH),
-this.nW=this.total/this.height,this.lP.nH=this.lP.total/this.nW,this.lP.nR=this.lP.aspectRatio(this.nW,this.lP.nH)):(this.lH=this.nH,this.lP.lW=this.lP.total/this.lH,this.lP.lR=this.lP.aspectRatio(this.lP.lW,this.lH),this.nH=this.total/this.width,this.lP.nW=this.lP.total/this.nH,this.lP.nR=this.lP.aspectRatio(this.lP.nW,this.nH));this.elArr.push(a)};a.prototype.reset=function(){this.lW=this.nW=0;this.elArr=[];this.total=0};return a}()});u(a,"Series/DrawPointUtilities.js",[a["Core/Utilities.js"]],
-function(a){return{draw:function(a,b){var e=b.animatableAttribs,l=b.onComplete,n=b.css,q=b.renderer,k=a.series&&a.series.chart.hasRendered?void 0:a.series&&a.series.options.animation,f=a.graphic;b.attribs=b.attribs||{};b.attribs["class"]=a.getClassName();if(a.shouldDraw())f||(a.graphic=f="text"===b.shapeType?q.text():q[b.shapeType](b.shapeArgs||{}),f.add(b.group)),n&&f.css(n),f.attr(b.attribs).animate(e,b.isNew?!1:k,l);else if(f){var c=function(){a.graphic=f=f&&f.destroy();"function"===typeof l&&
-l()};Object.keys(e).length?f.animate(e,void 0,function(){return c()}):c()}}}});u(a,"Series/Treemap/TreemapPoint.js",[a["Series/DrawPointUtilities.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,e,b){var m=this&&this.__extends||function(){var a=function(c,b){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var g in c)c.hasOwnProperty(g)&&(a[g]=c[g])};return a(c,b)};return function(c,b){function h(){this.constructor=
-c}a(c,b);c.prototype=null===b?Object.create(b):(h.prototype=b.prototype,new h)}}(),l=e.series.prototype.pointClass,n=e.seriesTypes;e=n.pie.prototype.pointClass;var q=b.extend,k=b.isNumber,f=b.pick;b=function(c){function h(){var a=null!==c&&c.apply(this,arguments)||this;a.name=void 0;a.node=void 0;a.options=void 0;a.series=void 0;a.shapeType="rect";a.value=void 0;return a}m(h,c);h.prototype.draw=function(c){a.draw(this,c)};h.prototype.getClassName=function(){var a=l.prototype.getClassName.call(this),
-c=this.series,h=c.options;this.node.level<=c.nodeMap[c.rootNode].level?a+=" highcharts-above-level":this.node.isLeaf||f(h.interactByLeaf,!h.allowTraversingTree)?this.node.isLeaf||(a+=" highcharts-internal-node"):a+=" highcharts-internal-node-interactive";return a};h.prototype.isValid=function(){return!(!this.id&&!k(this.value))};h.prototype.setState=function(a){l.prototype.setState.call(this,a);this.graphic&&this.graphic.attr({zIndex:"hover"===a?1:0})};h.prototype.shouldDraw=function(){return k(this.plotY)&&
-null!==this.y};return h}(n.scatter.prototype.pointClass);q(b.prototype,{setVisible:e.prototype.setVisible});return b});u(a,"Series/Treemap/TreemapUtilities.js",[a["Core/Utilities.js"]],function(a){var e=a.objectEach,b;(function(a){function b(a,e,k){void 0===k&&(k=this);a=e.call(k,a);!1!==a&&b(a,e,k)}a.AXIS_MAX=100;a.isBoolean=function(a){return"boolean"===typeof a};a.eachObject=function(a,b,k){k=k||this;e(a,function(e,c){b.call(k,e,c,a)})};a.recursive=b})(b||(b={}));return b});u(a,"Series/TreeUtilities.js",
-[a["Core/Color/Color.js"],a["Core/Utilities.js"]],function(a,e){function b(a,h){var c=h.before,e=h.idRoot,v=h.mapIdToNode[e],g=h.points[a.i],r=g&&g.options||{},w=[],x=0;a.levelDynamic=a.level-(!1!==h.levelIsConstant?0:v.level);a.name=f(g&&g.name,"");a.visible=e===a.id||!0===h.visible;"function"===typeof c&&(a=c(a,h));a.children.forEach(function(g,c){var r=m({},h);m(r,{index:c,siblings:a.children.length,visible:a.visible});g=b(g,r);w.push(g);g.visible&&(x+=g.val)});c=f(r.value,x);a.visible=0<=c&&(0<
-x||a.visible);a.children=w;a.childrenTotal=x;a.isLeaf=a.visible&&!x;a.val=c;return a}var m=e.extend,l=e.isArray,n=e.isNumber,q=e.isObject,k=e.merge,f=e.pick;return{getColor:function(c,h){var b=h.index,e=h.mapOptionsToLevel,v=h.parentColor,g=h.parentColorIndex,r=h.series,w=h.colors,x=h.siblings,k=r.points,l=r.chart.options.chart,m;if(c){k=k[c.i];c=e[c.level]||{};if(e=k&&c.colorByPoint){var q=k.index%(w?w.length:l.colorCount);var n=w&&w[q]}if(!r.chart.styledMode){w=k&&k.options.color;l=c&&c.color;if(m=
-v)m=(m=c&&c.colorVariation)&&"brightness"===m.key&&b&&x?a.parse(v).brighten(b/x*m.to).get():v;m=f(w,l,n,m,r.color)}var A=f(k&&k.options.colorIndex,c&&c.colorIndex,q,g,h.colorIndex)}return{color:m,colorIndex:A}},getLevelOptions:function(a){var c={};if(q(a)){var b=n(a.from)?a.from:1;var e=a.levels;var v={};var g=q(a.defaults)?a.defaults:{};l(e)&&(v=e.reduce(function(a,c){if(q(c)&&n(c.level)){var r=k({},c);var h=f(r.levelIsConstant,g.levelIsConstant);delete r.levelIsConstant;delete r.level;c=c.level+
-(h?0:b-1);q(a[c])?k(!0,a[c],r):a[c]=r}return a},{}));e=n(a.to)?a.to:1;for(a=0;a<=e;a++)c[a]=k({},g,q(v[a])?v[a]:{})}return c},setTreeValues:b,updateRootId:function(a){if(q(a)){var c=q(a.options)?a.options:{};c=f(a.rootNode,c.rootId,"");q(a.userOptions)&&(a.userOptions.rootId=c);a.rootNode=c}return c}}});u(a,"Extensions/Breadcrumbs.js",[a["Core/Chart/Chart.js"],a["Core/Defaults.js"],a["Core/Globals.js"],a["Core/Utilities.js"],a["Core/FormatUtilities.js"]],function(a,e,b,m,l){var n=l.format;l=m.addEvent;
-var q=m.objectEach,k=m.extend,f=m.fireEvent,c=m.merge,h=m.pick,u=m.defined,E=m.isString;k(e.defaultOptions.lang,{mainBreadcrumb:"Main"});e=function(){function a(g,r){this.group=void 0;this.list=[];this.elementList={};this.isDirty=!0;this.level=0;this.options=void 0;r=c(g.options.drilldown&&g.options.drilldown.drillUpButton,a.defaultBreadcrumbsOptions,g.options.navigation&&g.options.navigation.breadcrumbs,r);this.chart=g;this.options=r||{}}a.prototype.updateProperties=function(a){this.setList(a);this.setLevel();
-this.isDirty=!0};a.prototype.setList=function(a){this.list=a};a.prototype.setLevel=function(){this.level=this.list.length&&this.list.length-1};a.prototype.getLevel=function(){return this.level};a.prototype.getButtonText=function(a){var c=this.chart,g=this.options,b=c.options.lang,e=h(g.format,g.showFullPath?"{level.name}":"\u2190 {level.name}");b=b&&h(b.drillUpText,b.mainBreadcrumb);a=g.formatter&&g.formatter(a)||n(e,{level:a.levelOptions},c)||"";(E(a)&&!a.length||"\u2190 "===a)&&u(b)&&(a=g.showFullPath?
-b:"\u2190 "+b);return a};a.prototype.redraw=function(){this.isDirty&&this.render();this.group&&this.group.align();this.isDirty=!1};a.prototype.render=function(){var a=this.chart,c=this.options;!this.group&&c&&(this.group=a.renderer.g("breadcrumbs-group").addClass("highcharts-no-tooltip highcharts-breadcrumbs").attr({zIndex:c.zIndex}).add());c.showFullPath?this.renderFullPathButtons():this.renderSingleButton();this.alignBreadcrumbsGroup()};a.prototype.renderFullPathButtons=function(){this.destroySingleButton();
-this.resetElementListState();this.updateListElements();this.destroyListElements()};a.prototype.renderSingleButton=function(){var a=this.chart,c=this.list,b=this.options.buttonSpacing;this.destroyListElements();var e=this.group?this.group.getBBox().width:b;c=c[c.length-2];!a.drillUpButton&&0<this.level?a.drillUpButton=this.renderButton(c,e,b):a.drillUpButton&&(0<this.level?this.updateSingleButton():this.destroySingleButton())};a.prototype.alignBreadcrumbsGroup=function(a){if(this.group){var g=this.options,
-b=g.buttonTheme,e=g.position,k="chart"===g.relativeTo||"spacingBox"===g.relativeTo?void 0:"scrollablePlotBox",f=this.group.getBBox();g=2*(b.padding||0)+g.buttonSpacing;e.width=f.width+g;e.height=f.height+g;f=c(e);a&&(f.x+=a);this.options.rtl&&(f.x+=e.width);f.y=h(f.y,this.yOffset,0);this.group.align(f,!0,k)}};a.prototype.renderButton=function(a,b,e){var g=this,h=this.chart,k=g.options,r=c(k.buttonTheme);b=h.renderer.button(g.getButtonText(a),b,e,function(c){var b=k.events&&k.events.click,e;b&&(e=
-b.call(g,c,a));!1!==e&&(c.newLevel=k.showFullPath?a.level:g.level-1,f(g,"up",c))},r).addClass("highcharts-breadcrumbs-button").add(g.group);h.styledMode||b.attr(k.style);return b};a.prototype.renderSeparator=function(a,c){var b=this.chart,g=this.options.separator;a=b.renderer.label(g.text,a,c,void 0,void 0,void 0,!1).addClass("highcharts-breadcrumbs-separator").add(this.group);b.styledMode||a.css(g.style);return a};a.prototype.update=function(a){c(!0,this.options,a);this.destroy();this.isDirty=!0};
-a.prototype.updateSingleButton=function(){var a=this.chart,c=this.list[this.level-1];a.drillUpButton&&a.drillUpButton.attr({text:this.getButtonText(c)})};a.prototype.destroy=function(){this.destroySingleButton();this.destroyListElements(!0);this.group&&this.group.destroy();this.group=void 0};a.prototype.destroyListElements=function(a){var c=this.elementList;q(c,function(b,g){if(a||!c[g].updated)b=c[g],b.button&&b.button.destroy(),b.separator&&b.separator.destroy(),delete b.button,delete b.separator,
-delete c[g]});a&&(this.elementList={})};a.prototype.destroySingleButton=function(){this.chart.drillUpButton&&(this.chart.drillUpButton.destroy(),this.chart.drillUpButton=void 0)};a.prototype.resetElementListState=function(){q(this.elementList,function(a){a.updated=!1})};a.prototype.updateListElements=function(){var a=this,c=a.elementList,b=a.options.buttonSpacing,e=a.list,h=a.options.rtl,k=h?-1:1,f=function(a,c){return k*a.getBBox().width+k*c},m=a.group?f(a.group,b):b,l;e.forEach(function(g,r){r=
-r===e.length-1;if(c[g.level]){l=c[g.level];var q=l.button;if(l.separator||r)l.separator&&r&&(l.separator.destroy(),delete l.separator);else{m+=k*b;l.separator=a.renderSeparator(m,b);if(h){var n=l.separator;n.translate(m-n.getBBox().width,b)}m+=f(l.separator,b)}c[g.level].updated=!0}else q=a.renderButton(g,m,b),h&&q.translate(m-q.getBBox().width,b),m+=f(q,b),r||(n=a.renderSeparator(m,b),h&&n.translate(m-n.getBBox().width,b),m+=f(n,b)),c[g.level]={button:q,separator:n,updated:!0};q&&q.setState(r?2:
-0)})};a.defaultBreadcrumbsOptions={buttonTheme:{fill:"none",height:18,padding:2,"stroke-width":0,zIndex:7,states:{select:{fill:"none"}},style:{color:"#335cad"}},buttonSpacing:5,floating:!1,format:void 0,relativeTo:"plotBox",rtl:!1,position:{align:"left",verticalAlign:"top",x:0,y:void 0},separator:{text:"/",style:{color:"#666666"}},showFullPath:!0,style:{},useHTML:!1,zIndex:7};return a}();b.Breadcrumbs||(b.Breadcrumbs=e,l(a,"getMargins",function(){var a=this.breadcrumbs;if(a&&!a.options.floating&&
-a.level){var c=a.options,b=c.buttonTheme;b=(b.height||0)+2*(b.padding||0)+c.buttonSpacing;c=c.position.verticalAlign;"bottom"===c?(this.marginBottom=(this.marginBottom||0)+b,a.yOffset=b):"middle"!==c?(this.plotTop+=b,a.yOffset=-b):a.yOffset=void 0}}),l(a,"redraw",function(){this.breadcrumbs&&this.breadcrumbs.redraw()}),l(a,"destroy",function(){this.breadcrumbs&&(this.breadcrumbs.destroy(),this.breadcrumbs=void 0)}),l(a,"afterShowResetZoom",function(){if(this.breadcrumbs){var a=this.resetZoomButton&&
-this.resetZoomButton.getBBox(),c=this.breadcrumbs.options;a&&"right"===c.position.align&&"plotBox"===c.relativeTo&&this.breadcrumbs.alignBreadcrumbsGroup(-a.width-c.buttonSpacing)}}),l(a,"selection",function(a){!0===a.resetSelection&&this.breadcrumbs&&this.breadcrumbs.alignBreadcrumbsGroup()}));"";return e});u(a,"Series/Treemap/TreemapComposition.js",[a["Core/Series/SeriesRegistry.js"],a["Series/Treemap/TreemapUtilities.js"],a["Core/Utilities.js"]],function(a,e,b){var m=b.addEvent,l=b.extend,n=!1;
-m(a.series,"afterBindAxes",function(){var a=this.xAxis,b=this.yAxis;if(a&&b)if(this.is("treemap")){var f={endOnTick:!1,gridLineWidth:0,lineWidth:0,min:0,minPadding:0,max:e.AXIS_MAX,maxPadding:0,startOnTick:!1,title:void 0,tickPositions:[]};l(b.options,f);l(a.options,f);n=!0}else n&&(b.setOptions(b.userOptions),a.setOptions(a.userOptions),n=!1)})});u(a,"Series/Treemap/TreemapNode.js",[],function(){return function(){function a(){this.childrenTotal=0;this.visible=!1}a.prototype.init=function(a,b,m,l,
-n,q,k){this.id=a;this.i=b;this.children=m;this.height=l;this.level=n;this.series=q;this.parent=k;return this};return a}()});u(a,"Series/Treemap/TreemapSeries.js",[a["Core/Color/Color.js"],a["Series/ColorMapComposition.js"],a["Core/Globals.js"],a["Core/Legend/LegendSymbol.js"],a["Core/Series/SeriesRegistry.js"],a["Series/Treemap/TreemapAlgorithmGroup.js"],a["Series/Treemap/TreemapPoint.js"],a["Series/Treemap/TreemapUtilities.js"],a["Series/TreeUtilities.js"],a["Extensions/Breadcrumbs.js"],a["Core/Utilities.js"],
-a["Series/Treemap/TreemapNode.js"]],function(a,e,b,m,l,n,q,k,f,c,h,u){var E=this&&this.__extends||function(){var a=function(c,d){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,d){a.__proto__=d}||function(a,d){for(var p in d)d.hasOwnProperty(p)&&(a[p]=d[p])};return a(c,d)};return function(c,d){function p(){this.constructor=c}a(c,d);c.prototype=null===d?Object.create(d):(p.prototype=d.prototype,new p)}}(),v=a.parse;a=b.noop;var g=l.series;b=l.seriesTypes;var r=b.column,w=b.heatmap,
-x=b.scatter,J=f.getColor,K=f.getLevelOptions,L=f.updateRootId,B=h.addEvent,M=h.correctFloat,A=h.defined,N=h.error,D=h.extend,O=h.fireEvent,I=h.isArray,P=h.isObject,G=h.isString,z=h.merge,y=h.pick,Q=h.stableSort;f=function(a){function b(){var d=null!==a&&a.apply(this,arguments)||this;d.axisRatio=void 0;d.data=void 0;d.mapOptionsToLevel=void 0;d.nodeMap=void 0;d.nodeList=void 0;d.options=void 0;d.points=void 0;d.rootNode=void 0;d.tree=void 0;d.level=void 0;return d}E(b,a);b.prototype.algorithmCalcPoints=
-function(a,b,c,e){var d,p,t,g,h=c.lW,F=c.lH,f=c.plot,k=0,m=c.elArr.length-1;if(b)h=c.nW,F=c.nH;else var l=c.elArr[c.elArr.length-1];c.elArr.forEach(function(a){if(b||k<m)0===c.direction?(d=f.x,p=f.y,t=h,g=a/t):(d=f.x,p=f.y,g=F,t=a/g),e.push({x:d,y:p,width:t,height:M(g)}),0===c.direction?f.y+=g:f.x+=t;k+=1});c.reset();0===c.direction?c.width-=h:c.height-=F;f.y=f.parent.y+(f.parent.height-c.height);f.x=f.parent.x+(f.parent.width-c.width);a&&(c.direction=1-c.direction);b||c.addElement(l)};b.prototype.algorithmFill=
-function(a,b,c){var d=[],p,t=b.direction,e=b.x,g=b.y,h=b.width,f=b.height,k,m,l,n;c.forEach(function(c){p=c.val/b.val*b.height*b.width;k=e;m=g;0===t?(n=f,l=p/n,h-=l,e+=l):(l=h,n=p/l,f-=n,g+=n);d.push({x:k,y:m,width:l,height:n});a&&(t=1-t)});return d};b.prototype.algorithmLowAspectRatio=function(a,b,c){var d=[],p=this,t,e={x:b.x,y:b.y,parent:b},g=0,h=c.length-1,f=new n(b.height,b.width,b.direction,e);c.forEach(function(c){t=c.val/b.val*b.height*b.width;f.addElement(t);f.lP.nR>f.lP.lR&&p.algorithmCalcPoints(a,
-!1,f,d,e);g===h&&p.algorithmCalcPoints(a,!0,f,d,e);g+=1});return d};b.prototype.alignDataLabel=function(a,b,c){var d=c.style;d&&!A(d.textOverflow)&&b.text&&b.getBBox().width>b.text.textWidth&&b.css({textOverflow:"ellipsis",width:d.width+="px"});r.prototype.alignDataLabel.apply(this,arguments);a.dataLabel&&a.dataLabel.attr({zIndex:(a.node.zIndex||0)+1})};b.prototype.calculateChildrenAreas=function(a,b){var d=this,c=d.options,p=d.mapOptionsToLevel[a.level+1],e=y(d[p&&p.layoutAlgorithm]&&p.layoutAlgorithm,
-c.layoutAlgorithm),g=c.alternateStartingDirection,f=[];a=a.children.filter(function(a){return!a.ignore});p&&p.layoutStartingDirection&&(b.direction="vertical"===p.layoutStartingDirection?0:1);f=d[e](b,a);a.forEach(function(a,c){c=f[c];a.values=z(c,{val:a.childrenTotal,direction:g?1-b.direction:b.direction});a.pointValues=z(c,{x:c.x/d.axisRatio,y:k.AXIS_MAX-c.y-c.height,width:c.width/d.axisRatio});a.children.length&&d.calculateChildrenAreas(a,a.values)})};b.prototype.createList=function(a){var d=this.chart,
-b=[];if(d.breadcrumbs){var c=0;b.push({level:c,levelOptions:d.series[0]});d=a.target.nodeMap[a.newRootId];for(var e=[];d.parent||""===d.parent;)e.push(d),d=a.target.nodeMap[d.parent];e.reverse().forEach(function(a){b.push({level:++c,levelOptions:a})});1>=b.length&&(b.length=0)}return b};b.prototype.drawDataLabels=function(){var a=this,b=a.mapOptionsToLevel,c,e;a.points.filter(function(a){return a.node.visible}).forEach(function(d){e=b[d.node.level];c={style:{}};d.node.isLeaf||(c.enabled=!1);e&&e.dataLabels&&
-(c=z(c,e.dataLabels),a._hasPointLabels=!0);d.shapeArgs&&(c.style.width=d.shapeArgs.width,d.dataLabel&&d.dataLabel.css({width:d.shapeArgs.width+"px"}));d.dlOptions=z(c,d.options.dataLabels)});g.prototype.drawDataLabels.call(this)};b.prototype.drawPoints=function(a){void 0===a&&(a=this.points);var d=this,b=d.chart,c=b.renderer,e=b.styledMode,g=d.options,f=e?{}:g.shadow,h=g.borderRadius,k=b.pointCount<g.animationLimit,l=g.allowTraversingTree;a.forEach(function(a){var b=a.node.levelDynamic,p={},H={},
-t={},C="level-group-"+a.node.level,m=!!a.graphic,R=k&&m,n=a.shapeArgs;a.shouldDraw()&&(a.isInside=!0,h&&(H.r=h),z(!0,R?p:H,m?n:{},e?{}:d.pointAttribs(a,a.selected?"select":void 0)),d.colorAttribs&&e&&D(t,d.colorAttribs(a)),d[C]||(d[C]=c.g(C).attr({zIndex:1E3-(b||0)}).add(d.group),d[C].survive=!0));a.draw({animatableAttribs:p,attribs:H,css:t,group:d[C],renderer:c,shadow:f,shapeArgs:n,shapeType:a.shapeType});l&&a.graphic&&(a.drillId=g.interactByLeaf?d.drillToByLeaf(a):d.drillToByGroup(a))})};b.prototype.drillToByGroup=
-function(a){var d=!1;1!==a.node.level-this.nodeMap[this.rootNode].level||a.node.isLeaf||(d=a.id);return d};b.prototype.drillToByLeaf=function(a){var d=!1;if(a.node.parent!==this.rootNode&&a.node.isLeaf)for(a=a.node;!d;)a=this.nodeMap[a.parent],a.parent===this.rootNode&&(d=a.id);return d};b.prototype.drillToNode=function(a,b){N(32,!1,void 0,{"treemap.drillToNode":"use treemap.setRootNode"});this.setRootNode(a,b)};b.prototype.drillUp=function(){var a=this.nodeMap[this.rootNode];a&&G(a.parent)&&this.setRootNode(a.parent,
-!0,{trigger:"traverseUpButton"})};b.prototype.getExtremes=function(){var a=g.prototype.getExtremes.call(this,this.colorValueData),b=a.dataMax;this.valueMin=a.dataMin;this.valueMax=b;return g.prototype.getExtremes.call(this)};b.prototype.getListOfParents=function(a,b){a=I(a)?a:[];var d=I(b)?b:[];b=a.reduce(function(a,b,d){b=y(b.parent,"");"undefined"===typeof a[b]&&(a[b]=[]);a[b].push(d);return a},{"":[]});k.eachObject(b,function(a,b,c){""!==b&&-1===d.indexOf(b)&&(a.forEach(function(a){c[""].push(a)}),
-delete c[b])});return b};b.prototype.getTree=function(){var a=this.data.map(function(a){return a.id});a=this.getListOfParents(this.data,a);this.nodeMap={};this.nodeList=[];return this.buildTree("",-1,0,a)};b.prototype.buildTree=function(a,b,c,e,g){var d=this,f=[],h=d.points[b],p=0,t;(e[a]||[]).forEach(function(b){t=d.buildTree(d.points[b].id,b,c+1,e,a);p=Math.max(t.height+1,p);f.push(t)});var k=(new d.NodeClass).init(a,b,f,p,c,d,g);f.forEach(function(a){a.parentNode=k});d.nodeMap[k.id]=k;d.nodeList.push(k);
-h&&(h.node=k,k.point=h);return k};b.prototype.hasData=function(){return!!this.processedXData.length};b.prototype.init=function(a,b){var d=this,e=z(b.drillUpButton,b.breadcrumbs);var f=B(d,"setOptions",function(a){a=a.userOptions;A(a.allowDrillToNode)&&!A(a.allowTraversingTree)&&(a.allowTraversingTree=a.allowDrillToNode,delete a.allowDrillToNode);A(a.drillUpButton)&&!A(a.traverseUpButton)&&(a.traverseUpButton=a.drillUpButton,delete a.drillUpButton)});g.prototype.init.call(d,a,b);delete d.opacity;d.eventsToUnbind.push(f);
-d.options.allowTraversingTree&&(d.eventsToUnbind.push(B(d,"click",d.onClickDrillToNode)),d.eventsToUnbind.push(B(d,"setRootNode",function(a){var b=d.chart;b.breadcrumbs&&b.breadcrumbs.updateProperties(d.createList(a))})),d.eventsToUnbind.push(B(d,"update",function(a,b){(b=this.chart.breadcrumbs)&&a.options.breadcrumbs&&b.update(a.options.breadcrumbs)})),d.eventsToUnbind.push(B(d,"destroy",function(a){var b=this.chart;b.breadcrumbs&&(b.breadcrumbs.destroy(),a.keepEventsForUpdate||(b.breadcrumbs=void 0))})));
-a.breadcrumbs||(a.breadcrumbs=new c(a,e));d.eventsToUnbind.push(B(a.breadcrumbs,"up",function(a){a=this.level-a.newLevel;for(var b=0;b<a;b++)d.drillUp()}))};b.prototype.onClickDrillToNode=function(a){var b=(a=a.point)&&a.drillId;G(b)&&(a.setState(""),this.setRootNode(b,!0,{trigger:"click"}))};b.prototype.pointAttribs=function(a,b){var c=P(this.mapOptionsToLevel)?this.mapOptionsToLevel:{},d=a&&c[a.node.level]||{};c=this.options;var e=b&&c.states&&c.states[b]||{},g=a&&a.getClassName()||"";a={stroke:a&&
-a.borderColor||d.borderColor||e.borderColor||c.borderColor,"stroke-width":y(a&&a.borderWidth,d.borderWidth,e.borderWidth,c.borderWidth),dashstyle:a&&a.borderDashStyle||d.borderDashStyle||e.borderDashStyle||c.borderDashStyle,fill:a&&a.color||this.color};-1!==g.indexOf("highcharts-above-level")?(a.fill="none",a["stroke-width"]=0):-1!==g.indexOf("highcharts-internal-node-interactive")?(b=y(e.opacity,c.opacity),a.fill=v(a.fill).setOpacity(b).get(),a.cursor="pointer"):-1!==g.indexOf("highcharts-internal-node")?
-a.fill="none":b&&(a.fill=v(a.fill).brighten(e.brightness).get());return a};b.prototype.setColorRecursive=function(a,b,c,e,g){var d=this,f=d&&d.chart;f=f&&f.options&&f.options.colors;if(a){var h=J(a,{colors:f,index:e,mapOptionsToLevel:d.mapOptionsToLevel,parentColor:b,parentColorIndex:c,series:d,siblings:g});if(b=d.points[a.i])b.color=h.color,b.colorIndex=h.colorIndex;(a.children||[]).forEach(function(b,c){d.setColorRecursive(b,h.color,h.colorIndex,c,a.children.length)})}};b.prototype.setPointValues=
-function(){var a=this,b=a.xAxis,c=a.yAxis,e=a.chart.styledMode;a.points.forEach(function(d){var g=d.node,f=g.pointValues;g=g.visible;if(f&&g){g=f.height;var h=f.width,k=f.x,p=f.y,l=e?0:(a.pointAttribs(d)["stroke-width"]||0)%2/2;f=Math.round(b.toPixels(k,!0))-l;h=Math.round(b.toPixels(k+h,!0))-l;k=Math.round(c.toPixels(p,!0))-l;g=Math.round(c.toPixels(p+g,!0))-l;g={x:Math.min(f,h),y:Math.min(k,g),width:Math.abs(h-f),height:Math.abs(g-k)};d.plotX=g.x+g.width/2;d.plotY=g.y+g.height/2;d.shapeArgs=g}else delete d.plotX,
-delete d.plotY})};b.prototype.setRootNode=function(a,b,c){a=D({newRootId:a,previousRootId:this.rootNode,redraw:y(b,!0),series:this},c);O(this,"setRootNode",a,function(a){var b=a.series;b.idPreviousRoot=a.previousRootId;b.rootNode=a.newRootId;b.isDirty=!0;a.redraw&&b.chart.redraw()})};b.prototype.setState=function(a){this.options.inactiveOtherPoints=!0;g.prototype.setState.call(this,a,!1);this.options.inactiveOtherPoints=!1};b.prototype.setTreeValues=function(a){var b=this,c=b.options,d=b.nodeMap[b.rootNode];
-c=k.isBoolean(c.levelIsConstant)?c.levelIsConstant:!0;var e=0,g=[],f=b.points[a.i];a.children.forEach(function(a){a=b.setTreeValues(a);g.push(a);a.ignore||(e+=a.val)});Q(g,function(a,b){return(a.sortIndex||0)-(b.sortIndex||0)});var h=y(f&&f.options.value,e);f&&(f.value=h);D(a,{children:g,childrenTotal:e,ignore:!(y(f&&f.visible,!0)&&0<h),isLeaf:a.visible&&!e,levelDynamic:a.level-(c?0:d.level),name:y(f&&f.name,""),sortIndex:y(f&&f.sortIndex,-h),val:h});return a};b.prototype.sliceAndDice=function(a,
-b){return this.algorithmFill(!0,a,b)};b.prototype.squarified=function(a,b){return this.algorithmLowAspectRatio(!0,a,b)};b.prototype.strip=function(a,b){return this.algorithmLowAspectRatio(!1,a,b)};b.prototype.stripes=function(a,b){return this.algorithmFill(!1,a,b)};b.prototype.translate=function(){var a=this,b=a.options,c=L(a);g.prototype.translate.call(a);var e=a.tree=a.getTree();var f=a.nodeMap[c];""===c||f&&f.children.length||(a.setRootNode("",!1),c=a.rootNode,f=a.nodeMap[c]);a.mapOptionsToLevel=
-K({from:f.level+1,levels:b.levels,to:e.height,defaults:{levelIsConstant:a.options.levelIsConstant,colorByPoint:b.colorByPoint}});k.recursive(a.nodeMap[a.rootNode],function(b){var c=!1,d=b.parent;b.visible=!0;if(d||""===d)c=a.nodeMap[d];return c});k.recursive(a.nodeMap[a.rootNode].children,function(a){var b=!1;a.forEach(function(a){a.visible=!0;a.children.length&&(b=(b||[]).concat(a.children))});return b});a.setTreeValues(e);a.axisRatio=a.xAxis.len/a.yAxis.len;a.nodeMap[""].pointValues=c={x:0,y:0,
-width:k.AXIS_MAX,height:k.AXIS_MAX};a.nodeMap[""].values=c=z(c,{width:c.width*a.axisRatio,direction:"vertical"===b.layoutStartingDirection?0:1,val:e.val});a.calculateChildrenAreas(e,c);a.colorAxis||b.colorByPoint||a.setColorRecursive(a.tree);b.allowTraversingTree&&(b=f.pointValues,a.xAxis.setExtremes(b.x,b.x+b.width,!1),a.yAxis.setExtremes(b.y,b.y+b.height,!1),a.xAxis.setScale(),a.yAxis.setScale());a.setPointValues()};b.defaultOptions=z(x.defaultOptions,{allowTraversingTree:!1,animationLimit:250,
-borderRadius:0,showInLegend:!1,marker:void 0,colorByPoint:!1,dataLabels:{defer:!1,enabled:!0,formatter:function(){var a=this&&this.point?this.point:{};return G(a.name)?a.name:""},inside:!0,verticalAlign:"middle"},tooltip:{headerFormat:"",pointFormat:"<b>{point.name}</b>: {point.value}<br/>"},ignoreHiddenPoint:!0,layoutAlgorithm:"sliceAndDice",layoutStartingDirection:"vertical",alternateStartingDirection:!1,levelIsConstant:!0,traverseUpButton:{position:{align:"right",x:-10,y:10}},borderColor:"#e6e6e6",
-borderWidth:1,colorKey:"colorValue",opacity:.15,states:{hover:{borderColor:"#999999",brightness:w?0:.1,halo:!1,opacity:.75,shadow:!1}}});return b}(x);D(f.prototype,{buildKDTree:a,colorAttribs:e.seriesMembers.colorAttribs,colorKey:"colorValue",directTouch:!0,drawLegendSymbol:m.drawRectangle,getExtremesFromAll:!0,getSymbol:a,optionalAxis:"colorAxis",parallelArrays:["x","y","value","colorValue"],pointArrayMap:["value"],pointClass:q,NodeClass:u,trackerGroups:["group","dataLabelsGroup"],utils:{recursive:k.recursive}});
-e.compose(f);l.registerSeriesType("treemap",f);"";return f});u(a,"masters/modules/treemap.src.js",[a["Core/Globals.js"],a["Extensions/Breadcrumbs.js"]],function(a,e){a.Breadcrumbs=e})});
-//# sourceMappingURL=treemap.js.map

+ 0 - 18
nicegui/elements/lib/highcharts_modules/variable-pie.js

@@ -1,18 +0,0 @@
-/*
- Highcharts JS v10.3.3 (2023-01-20)
-
- Variable Pie module for Highcharts
-
- (c) 2010-2021 Grzegorz Blachliski
-
- License: www.highcharts.com/license
-*/
-(function(a){"object"===typeof module&&module.exports?(a["default"]=a,module.exports=a):"function"===typeof define&&define.amd?define("highcharts/modules/variable-pie",["highcharts"],function(e){a(e);a.Highcharts=e;return a}):a("undefined"!==typeof Highcharts?Highcharts:void 0)})(function(a){function e(a,b,e,h){a.hasOwnProperty(b)||(a[b]=h.apply(null,e),"function"===typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:b,module:a[b]}})))}a=a?a._modules:{};
-e(a,"Series/VariablePie/VariablePieSeries.js",[a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,b){var e=this&&this.__extends||function(){var a=function(b,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,a){c.__proto__=a}||function(c,a){for(var b in a)a.hasOwnProperty(b)&&(c[b]=a[b])};return a(b,c)};return function(b,c){function r(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(r.prototype=c.prototype,new r)}}(),h=a.seriesTypes.pie,v=b.arrayMax,
-w=b.arrayMin,y=b.clamp,z=b.extend,A=b.fireEvent,B=b.merge,m=b.pick;b=function(a){function b(){var c=null!==a&&a.apply(this,arguments)||this;c.data=void 0;c.options=void 0;c.points=void 0;c.radii=void 0;return c}e(b,a);b.prototype.calculateExtremes=function(){var c=this.chart,a=this.options;var b=this.zData;var e=Math.min(c.plotWidth,c.plotHeight)-2*(a.slicedOffset||0),k={};c=this.center||this.getCenter();["minPointSize","maxPointSize"].forEach(function(c){var b=a[c],q=/%$/.test(b);b=parseInt(b,10);
-k[c]=q?e*b/100:2*b});this.minPxSize=c[3]+k.minPointSize;this.maxPxSize=y(c[2],c[3]+k.minPointSize,k.maxPointSize);b.length&&(c=m(a.zMin,w(b.filter(this.zValEval))),b=m(a.zMax,v(b.filter(this.zValEval))),this.getRadii(c,b,this.minPxSize,this.maxPxSize))};b.prototype.getRadii=function(c,b,a,e){var k=0,q=this.zData,r=q.length,l=[],h="radius"!==this.options.sizeBy,m=b-c;for(k;k<r;k++){var g=this.zValEval(q[k])?q[k]:c;g<=c?g=a/2:g>=b?g=e/2:(g=0<m?(g-c)/m:.5,h&&(g=Math.sqrt(g)),g=Math.ceil(a+g*(e-a))/2);
-l.push(g)}this.radii=l};b.prototype.redraw=function(){this.center=null;a.prototype.redraw.apply(this,arguments)};b.prototype.translate=function(c){this.generatePoints();var b=0,a=this.options,e=a.slicedOffset,k=e+(a.borderWidth||0),h=a.startAngle||0,t=Math.PI/180*(h-90),l=Math.PI/180*(m(a.endAngle,h+360)-90);h=l-t;var x=this.points,v=a.dataLabels.distance;a=a.ignoreHiddenPoint;var g=x.length;this.startAngleRad=t;this.endAngleRad=l;this.calculateExtremes();c||(this.center=c=this.getCenter());for(l=
-0;l<g;l++){var f=x[l];var n=this.radii[l];f.labelDistance=m(f.options.dataLabels&&f.options.dataLabels.distance,v);this.maxLabelDistance=Math.max(this.maxLabelDistance||0,f.labelDistance);var d=t+b*h;if(!a||f.visible)b+=f.percentage/100;var p=t+b*h;f.shapeType="arc";f.shapeArgs={x:c[0],y:c[1],r:n,innerR:c[3]/2,start:Math.round(1E3*d)/1E3,end:Math.round(1E3*p)/1E3};d=(p+d)/2;d>1.5*Math.PI?d-=2*Math.PI:d<-Math.PI/2&&(d+=2*Math.PI);f.slicedTranslation={translateX:Math.round(Math.cos(d)*e),translateY:Math.round(Math.sin(d)*
-e)};var u=Math.cos(d)*c[2]/2;var w=Math.sin(d)*c[2]/2;p=Math.cos(d)*n;n*=Math.sin(d);f.tooltipPos=[c[0]+.7*u,c[1]+.7*w];f.half=d<-Math.PI/2||d>Math.PI/2?1:0;f.angle=d;u=Math.min(k,f.labelDistance/5);f.labelPosition={natural:{x:c[0]+p+Math.cos(d)*f.labelDistance,y:c[1]+n+Math.sin(d)*f.labelDistance},"final":{},alignment:f.half?"right":"left",connectorPosition:{breakAt:{x:c[0]+p+Math.cos(d)*u,y:c[1]+n+Math.sin(d)*u},touchingSliceAt:{x:c[0]+p,y:c[1]+n}}}}A(this,"afterTranslate")};b.prototype.zValEval=
-function(a){return"number"!==typeof a||isNaN(a)?null:!0};b.defaultOptions=B(h.defaultOptions,{minPointSize:"10%",maxPointSize:"100%",zMin:void 0,zMax:void 0,sizeBy:"area",tooltip:{pointFormat:'<span style="color:{point.color}">\u25cf</span> {series.name}<br/>Value: {point.y}<br/>Size: {point.z}<br/>'}});return b}(h);z(b.prototype,{pointArrayMap:["y","z"],parallelArrays:["x","y","z"]});a.registerSeriesType("variablepie",b);"";"";return b});e(a,"masters/modules/variable-pie.src.js",[],function(){})});
-//# sourceMappingURL=variable-pie.js.map

+ 0 - 21
nicegui/elements/lib/highcharts_modules/variwide.js

@@ -1,21 +0,0 @@
-/*
- Highcharts JS v10.3.3 (2023-01-20)
-
- Highcharts variwide module
-
- (c) 2010-2021 Torstein Honsi
-
- License: www.highcharts.com/license
-*/
-(function(a){"object"===typeof module&&module.exports?(a["default"]=a,module.exports=a):"function"===typeof define&&define.amd?define("highcharts/modules/variwide",["highcharts"],function(g){a(g);a.Highcharts=g;return a}):a("undefined"!==typeof Highcharts?Highcharts:void 0)})(function(a){function g(a,h,g,e){a.hasOwnProperty(h)||(a[h]=e.apply(null,g),"function"===typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:h,module:a[h]}})))}a=a?a._modules:{};g(a,
-"Series/Variwide/VariwideComposition.js",[a["Core/Utilities.js"]],function(a){function h(d){this.variwide&&this.cross&&this.cross.attr("stroke-width",d.point&&d.point.crosshairWidth)}function g(){var d=this;!this.horiz&&this.variwide&&this.chart.labelCollectors.push(function(){return d.tickPositions.filter(function(c){return d.ticks[c].label}).map(function(c,b){c=d.ticks[c].label;c.labelrank=d.zData[b];return c})})}function e(d){var c=this.axis,b=c.horiz?"x":"y";c.variwide&&(this[b+"Orig"]=d.pos[b],
-this.postTranslate(d.pos,b,this.pos))}function t(d,c,b){var a=this.axis,k=d[c]-a.pos;a.horiz||(k=a.len-k);k=a.series[0].postTranslate(b,k);a.horiz||(k=a.len-k);d[c]=a.pos+k}function p(a,c,b,f,k,u,m,v){var d=Array.prototype.slice.call(arguments,1),n=k?"x":"y";this.axis.variwide&&"number"===typeof this[n+"Orig"]&&(d[k?0:1]=this[n+"Orig"]);d=a.apply(this,d);this.axis.variwide&&this.axis.categories&&this.postTranslate(d,n,this.pos);return d}var f=a.addEvent,q=a.wrap,l=[];return{compose:function(a,c){-1===
-l.indexOf(a)&&(l.push(a),f(a,"afterDrawCrosshair",h),f(a,"afterRender",g));-1===l.indexOf(c)&&(l.push(c),f(c,"afterGetPosition",e),a=c.prototype,a.postTranslate=t,q(a,"getLabelPosition",p))}}});g(a,"Series/Variwide/VariwidePoint.js",[a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,h){var g=this&&this.__extends||function(){var a=function(e,f){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,f){a.__proto__=f}||function(a,f){for(var d in f)f.hasOwnProperty(d)&&
-(a[d]=f[d])};return a(e,f)};return function(e,f){function g(){this.constructor=e}a(e,f);e.prototype=null===f?Object.create(f):(g.prototype=f.prototype,new g)}}(),e=h.isNumber;return function(a){function h(){var f=null!==a&&a.apply(this,arguments)||this;f.crosshairWidth=void 0;f.options=void 0;f.series=void 0;return f}g(h,a);h.prototype.isValid=function(){return e(this.y)&&e(this.z)};return h}(a.seriesTypes.column.prototype.pointClass)});g(a,"Series/Variwide/VariwideSeries.js",[a["Core/Series/SeriesRegistry.js"],
-a["Series/Variwide/VariwideComposition.js"],a["Series/Variwide/VariwidePoint.js"],a["Core/Utilities.js"]],function(a,g,r,e){var h=this&&this.__extends||function(){var a=function(c,b){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return a(c,b)};return function(c,b){function d(){this.constructor=c}a(c,b);c.prototype=null===b?Object.create(b):(d.prototype=b.prototype,new d)}}(),p=a.seriesTypes.column,
-f=e.extend,q=e.merge,l=e.pick;e=function(d){function c(){var a=null!==d&&d.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;a.relZ=void 0;a.totalZ=void 0;a.zData=void 0;return a}h(c,d);c.prototype.processData=function(c){this.totalZ=0;this.relZ=[];a.seriesTypes.column.prototype.processData.call(this,c);(this.xAxis.reversed?this.zData.slice().reverse():this.zData).forEach(function(a,c){this.relZ[c]=this.totalZ;this.totalZ+=a},this);this.xAxis.categories&&(this.xAxis.variwide=
-!0,this.xAxis.zData=this.zData)};c.prototype.postTranslate=function(a,c,d){var b=this.xAxis,m=this.relZ;a=b.reversed?m.length-a:a;var f=b.reversed?-1:1,e=b.toPixels(b.reversed?(b.dataMax||0)+b.pointRange:b.dataMin||0),g=b.toPixels(b.reversed?b.dataMin||0:(b.dataMax||0)+b.pointRange),k=Math.abs(g-e),h=this.totalZ;b=this.chart.inverted?g-(this.chart.plotTop-f*b.minPixelPadding):e-this.chart.plotLeft-f*b.minPixelPadding;e=a/m.length*k;g=(a+f)/m.length*k;var n=l(m[a],h)/h*k;m=l(m[a+f],h)/h*k;d&&(d.crosshairWidth=
-m-n);return b+n+(c-(b+e))*(m-n)/(g-e)};c.prototype.translate=function(){var b=this.options.crisp,c=this.xAxis;this.options.crisp=!1;a.seriesTypes.column.prototype.translate.call(this);this.options.crisp=b;var d=this.chart.inverted,f=this.borderWidth%2/2;this.points.forEach(function(a,b){if(c.variwide){var e=this.postTranslate(b,a.shapeArgs.x,a);b=this.postTranslate(b,a.shapeArgs.x+a.shapeArgs.width)}else e=a.plotX,b=c.translate(a.x+a.z,0,0,0,1);this.options.crisp&&(e=Math.round(e)-f,b=Math.round(b)-
-f);a.shapeArgs.x=e;a.shapeArgs.width=Math.max(b-e,1);a.plotX=(e+b)/2;d?a.tooltipPos[1]=c.len-a.shapeArgs.x-a.shapeArgs.width/2:a.tooltipPos[0]=a.shapeArgs.x+a.shapeArgs.width/2},this);this.options.stacking&&this.correctStackLabels()};c.prototype.correctStackLabels=function(){for(var a=this.options,c=this.yAxis,d,e,f,g=0,h=this.points;g<h.length;g++){var l=h[g];f=l.x;e=l.shapeArgs.width;(d=c.stacking.stacks[(this.negStacks&&l.y<(a.startFromThreshold?0:a.threshold)?"-":"")+this.stackKey])&&(d=d[f])&&
-!l.isNull&&d.setOffset(this.chart.plotLeft-(e/2||0),e||0,void 0,void 0,l.plotX,this.xAxis)}};c.compose=g.compose;c.defaultOptions=q(p.defaultOptions,{pointPadding:0,groupPadding:0});return c}(p);f(e.prototype,{irregularWidths:!0,pointArrayMap:["y","z"],parallelArrays:["x","y","z"],pointClass:r});a.registerSeriesType("variwide",e);"";return e});g(a,"masters/modules/variwide.src.js",[a["Core/Globals.js"],a["Series/Variwide/VariwideSeries.js"]],function(a,g){g.compose(a.Axis,a.Tick)})});
-//# sourceMappingURL=variwide.js.map

+ 0 - 17
nicegui/elements/lib/highcharts_modules/vector.js

@@ -1,17 +0,0 @@
-/*
- Highcharts JS v10.3.3 (2023-01-20)
-
- Vector plot series module
-
- (c) 2010-2021 Torstein Honsi
-
- License: www.highcharts.com/license
-*/
-(function(a){"object"===typeof module&&module.exports?(a["default"]=a,module.exports=a):"function"===typeof define&&define.amd?define("highcharts/modules/vector",["highcharts"],function(d){a(d);a.Highcharts=d;return a}):a("undefined"!==typeof Highcharts?Highcharts:void 0)})(function(a){function d(a,f,d,e){a.hasOwnProperty(f)||(a[f]=e.apply(null,d),"function"===typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:f,module:a[f]}})))}a=a?a._modules:{};d(a,"Series/Vector/VectorSeries.js",
-[a["Core/Animation/AnimationUtilities.js"],a["Core/Globals.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,f,d,e){var k=this&&this.__extends||function(){var a=function(c,b){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,a){b.__proto__=a}||function(b,a){for(var g in a)a.hasOwnProperty(g)&&(b[g]=a[g])};return a(c,b)};return function(c,b){function g(){this.constructor=c}a(c,b);c.prototype=null===b?Object.create(b):(g.prototype=b.prototype,new g)}}(),l=
-a.animObject,m=d.series,h=d.seriesTypes.scatter,n=e.arrayMax;a=e.extend;var p=e.merge,q=e.pick;e=function(a){function c(){var b=null!==a&&a.apply(this,arguments)||this;b.data=void 0;b.lengthMax=void 0;b.options=void 0;b.points=void 0;return b}k(c,a);c.prototype.animate=function(b){b?this.markerGroup.attr({opacity:.01}):this.markerGroup.animate({opacity:1},l(this.options.animation))};c.prototype.arrow=function(b){b=b.length/this.lengthMax*this.options.vectorLength/20;var a={start:10*b,center:0,end:-10*
-b}[this.options.rotationOrigin]||0;return[["M",0,7*b+a],["L",-1.5*b,7*b+a],["L",0,10*b+a],["L",1.5*b,7*b+a],["L",0,7*b+a],["L",0,-10*b+a]]};c.prototype.drawPoints=function(){var a=this.chart;this.points.forEach(function(b){var c=b.plotX,d=b.plotY;!1===this.options.clip||a.isInsidePlot(c,d,{inverted:a.inverted})?(b.graphic||(b.graphic=this.chart.renderer.path().add(this.markerGroup).addClass("highcharts-point highcharts-color-"+q(b.colorIndex,b.series.colorIndex))),b.graphic.attr({d:this.arrow(b),
-translateX:c,translateY:d,rotation:b.direction}),this.chart.styledMode||b.graphic.attr(this.pointAttribs(b))):b.graphic&&(b.graphic=b.graphic.destroy())},this)};c.prototype.pointAttribs=function(b,a){var c=this.options;b=b.color||this.color;var d=this.options.lineWidth;a&&(b=c.states[a].color||b,d=(c.states[a].lineWidth||d)+(c.states[a].lineWidthPlus||0));return{stroke:b,"stroke-width":d}};c.prototype.translate=function(){m.prototype.translate.call(this);this.lengthMax=n(this.lengthData)};c.defaultOptions=
-p(h.defaultOptions,{lineWidth:2,rotationOrigin:"center",states:{hover:{lineWidthPlus:1}},tooltip:{pointFormat:"<b>[{point.x}, {point.y}]</b><br/>Length: <b>{point.length}</b><br/>Direction: <b>{point.direction}\u00b0</b><br/>"},vectorLength:20},{marker:null});return c}(h);a(e.prototype,{drawGraph:f.noop,getSymbol:f.noop,markerAttribs:f.noop,parallelArrays:["x","y","length","direction"],pointArrayMap:["y","length","direction"]});d.registerSeriesType("vector",e);"";return e});d(a,"masters/modules/vector.src.js",
-[],function(){})});
-//# sourceMappingURL=vector.js.map

+ 0 - 39
nicegui/elements/lib/highcharts_modules/venn.js

@@ -1,39 +0,0 @@
-/*
- Highcharts JS v10.3.3 (2023-01-20)
-
- (c) 2017-2021 Highsoft AS
- Authors: Jon Arild Nygard
-
- License: www.highcharts.com/license
-*/
-(function(a){"object"===typeof module&&module.exports?(a["default"]=a,module.exports=a):"function"===typeof define&&define.amd?define("highcharts/modules/venn",["highcharts"],function(n){a(n);a.Highcharts=n;return a}):a("undefined"!==typeof Highcharts?Highcharts:void 0)})(function(a){function n(a,d,b,A){a.hasOwnProperty(d)||(a[d]=A.apply(null,b),"function"===typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:d,module:a[d]}})))}a=a?a._modules:{};n(a,"Core/Geometry/GeometryUtilities.js",
-[],function(){var a;(function(a){a.getCenterOfPoints=function(a){var b=a.reduce(function(a,b){a.x+=b.x;a.y+=b.y;return a},{x:0,y:0});return{x:b.x/a.length,y:b.y/a.length}};a.getDistanceBetweenPoints=function(a,d){return Math.sqrt(Math.pow(d.x-a.x,2)+Math.pow(d.y-a.y,2))};a.getAngleBetweenPoints=function(a,d){return Math.atan2(d.x-a.x,d.y-a.y)}})(a||(a={}));return a});n(a,"Core/Geometry/CircleUtilities.js",[a["Core/Geometry/GeometryUtilities.js"]],function(a){var d=a.getAngleBetweenPoints,b=a.getCenterOfPoints,
-A=a.getDistanceBetweenPoints,m;(function(a){function l(a,f){f=Math.pow(10,f);return Math.round(a*f)/f}function q(a){if(0>=a)throw Error("radius of circle must be a positive number.");return Math.PI*a*a}function h(a,f){return a*a*Math.acos(1-f/a)-(a-f)*Math.sqrt(f*(2*a-f))}function k(a,f){var b=A(a,f),d=a.r,p=f.r,h=[];if(b<d+p&&b>Math.abs(d-p)){d*=d;var r=(d-p*p+b*b)/(2*b);p=Math.sqrt(d-r*r);d=a.x;h=f.x;a=a.y;var k=f.y;f=d+r*(h-d)/b;r=a+r*(k-a)/b;a=p/b*-(k-a);b=p/b*-(h-d);h=[{x:l(f+a,14),y:l(r-b,14)},
-{x:l(f-a,14),y:l(r+b,14)}]}return h}function m(a){return a.reduce(function(a,b,d,p){p=p.slice(d+1).reduce(function(a,f,p,h){var l=[d,p+d+1];return a.concat(k(b,f).map(function(a){a.indexes=l;return a}))},[]);return a.concat(p)},[])}function w(a,f){return A(a,f)<=f.r+1e-10}function y(a,f){return!f.some(function(f){return!w(a,f)})}function n(a){return m(a).filter(function(f){return y(f,a)})}a.round=l;a.getAreaOfCircle=q;a.getCircularSegmentArea=h;a.getOverlapBetweenCircles=function(a,f,b){var d=0;b<
-a+f&&(b<=Math.abs(f-a)?d=q(a<f?a:f):(d=(a*a-f*f+b*b)/(2*b),b-=d,d=h(a,a-d)+h(f,f-b)),d=l(d,14));return d};a.getCircleCircleIntersection=k;a.getCirclesIntersectionPoints=m;a.isCircle1CompletelyOverlappingCircle2=function(a,b){return A(a,b)+b.r<a.r+1e-10};a.isPointInsideCircle=w;a.isPointInsideAllCircles=y;a.isPointOutsideAllCircles=function(a,b){return!b.some(function(b){return w(a,b)})};a.getCirclesIntersectionPolygon=n;a.getAreaOfIntersectionBetweenCircles=function(a){var f=n(a);if(1<f.length){var h=
-b(f);f=f.map(function(a){a.angle=d(h,a);return a}).sort(function(a,b){return b.angle-a.angle});var l=f[f.length-1];f=f.reduce(function(f,h){var l=f.startPoint,k=b([l,h]),m=h.indexes.filter(function(a){return-1<l.indexes.indexOf(a)}).reduce(function(u,g){g=a[g];var c=d(g,h),e=d(g,l);c=e-(e-c+(e<c?2*Math.PI:0))/2;c=A(k,{x:g.x+g.r*Math.sin(c),y:g.y+g.r*Math.cos(c)});g=g.r;c>2*g&&(c=2*g);if(!u||u.width>c)u={r:g,largeArc:c>g?1:0,width:c,x:h.x,y:h.y};return u},null);if(m){var t=m.r;f.arcs.push(["A",t,t,
-0,m.largeArc,1,m.x,m.y]);f.startPoint=h}return f},{startPoint:l,arcs:[]}).arcs;if(0!==f.length&&1!==f.length){f.unshift(["M",l.x,l.y]);var k={center:h,d:f}}}return k}})(m||(m={}));return m});n(a,"Series/DrawPointUtilities.js",[a["Core/Utilities.js"]],function(a){return{draw:function(a,b){var d=b.animatableAttribs,m=b.onComplete,w=b.css,l=b.renderer,q=a.series&&a.series.chart.hasRendered?void 0:a.series&&a.series.options.animation,h=a.graphic;b.attribs=b.attribs||{};b.attribs["class"]=a.getClassName();
-if(a.shouldDraw())h||(a.graphic=h="text"===b.shapeType?l.text():l[b.shapeType](b.shapeArgs||{}),h.add(b.group)),w&&h.css(w),h.attr(b.attribs).animate(d,b.isNew?!1:q,m);else if(h){var k=function(){a.graphic=h=h&&h.destroy();"function"===typeof m&&m()};Object.keys(d).length?h.animate(d,void 0,function(){return k()}):k()}}}});n(a,"Series/Venn/VennPoint.js",[a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,d){var b=this&&this.__extends||function(){var a=function(b,d){a=Object.setPrototypeOf||
-{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d])};return a(b,d)};return function(b,d){function l(){this.constructor=b}a(b,d);b.prototype=null===d?Object.create(d):(l.prototype=d.prototype,new l)}}(),y=d.isNumber;return function(a){function d(){var b=null!==a&&a.apply(this,arguments)||this;b.options=void 0;b.series=void 0;return b}b(d,a);d.prototype.isValid=function(){return y(this.value)};d.prototype.shouldDraw=function(){return!!this.shapeArgs};
-return d}(a.seriesTypes.scatter.prototype.pointClass)});n(a,"Series/Venn/VennUtils.js",[a["Core/Geometry/CircleUtilities.js"],a["Core/Geometry/GeometryUtilities.js"],a["Core/Utilities.js"]],function(a,d,b){function n(a){var b=a.filter(function(a){return 2===a.sets.length}).reduce(function(a,c){c.sets.forEach(function(e,b,g){z(a[e])||(a[e]={overlapping:{},totalOverlap:0});a[e].totalOverlap+=c.value;a[e].overlapping[g[1-b]]=c.value});return a},{});a.filter(h).forEach(function(a){E(a,b[a.sets[0]])});
-return a}function m(a,b,g,c,e){var C=a(b),u=a(g);e=e||100;c=c||1e-10;var x=g-b,d=1;if(b>=g)throw Error("a must be smaller than b.");if(0<C*u)throw Error("f(a) and f(b) must have opposite signs.");if(0===C)var t=b;else if(0===u)t=g;else for(;d++<=e&&0!==f&&x>c;){x=(g-b)/2;t=b+x;var f=a(t);0<C*f?b=t:g=t}return t}function w(a){a=a.slice(0,-1);for(var b=a.length,g=[],c=function(a,c){a.sum+=c[a.i];return a},e=0;e<b;e++)g[e]=a.reduce(c,{sum:0,i:e}).sum/b;return g}function l(a,b,g){var c=a+b;return 0>=g?
-c:J(a<b?a:b)<=g?0:m(function(c){c=p(a,b,c);return g-c},0,c)}function q(a){var b=0;2===a.length&&(b=a[0],a=a[1],b=p(b.r,a.r,D(b,a)));return b}function h(a){return r(a.sets)&&1===a.sets.length}function k(a){var b={};return z(a)&&F(a.value)&&-1<a.value&&r(a.sets)&&0<a.sets.length&&!a.sets.some(function(a){var c=!1;!b[a]&&I(a)?b[a]=!0:c=!0;return c})}function y(a,b){return b.reduce(function(b,c){var e=0;1<c.sets.length&&(e=c.value,c=q(c.sets.map(function(c){return a[c]})),c=e-c,e=Math.round(c*c*1E11)/
-1E11);return b+e},0)}function L(a,b){return b.totalOverlap-a.totalOverlap}var J=a.getAreaOfCircle,K=a.getCircleCircleIntersection,p=a.getOverlapBetweenCircles,f=a.isPointInsideAllCircles,G=a.isPointInsideCircle,H=a.isPointOutsideAllCircles,D=d.getDistanceBetweenPoints,E=b.extend,r=b.isArray,F=b.isNumber,z=b.isObject,I=b.isString;return{geometry:d,geometryCircles:a,addOverlapToSets:n,getCentroid:w,getDistanceBetweenCirclesByOverlap:l,getLabelWidth:function(a,b,g){var c=b.reduce(function(a,c){return Math.min(c.r,
-a)},Infinity),e=g.filter(function(c){return!G(a,c)});g=function(c,g){return m(function(x){var d={x:a.x+g*x,y:a.y};d=f(d,b)&&H(d,e);return-(c-x)+(d?0:Number.MAX_VALUE)},0,c)};return 2*Math.min(g(c,-1),g(c,1))},getMarginFromCircles:function(a,b,g){b=b.reduce(function(c,b){b=b.r-D(a,b);return b<=c?b:c},Number.MAX_VALUE);return b=g.reduce(function(c,b){b=D(a,b)-b.r;return b<=c?b:c},b)},isSet:h,layoutGreedyVenn:function(a){var b=[],g={};a.filter(function(a){return 1===a.sets.length}).forEach(function(a){g[a.sets[0]]=
-a.circle={x:Number.MAX_VALUE,y:Number.MAX_VALUE,r:Math.sqrt(a.value/Math.PI)}});var c=function(a,c){var e=a.circle;e.x=c.x;e.y=c.y;b.push(a)};n(a);var e=a.filter(h).sort(L);c(e.shift(),{x:0,y:0});var d=a.filter(function(a){return 2===a.sets.length});e.forEach(function(a){var e=a.circle,f=e.r,C=a.overlapping,v=b.reduce(function(a,c,x){var v=c.circle,u=l(f,v.r,C[c.sets[0]]),h=[{x:v.x+u,y:v.y},{x:v.x-u,y:v.y},{x:v.x,y:v.y+u},{x:v.x,y:v.y-u}];b.slice(x+1).forEach(function(a){var c=a.circle;a=l(f,c.r,
-C[a.sets[0]]);h=h.concat(K({x:v.x,y:v.y,r:u},{x:c.x,y:c.y,r:a}))});h.forEach(function(c){e.x=c.x;e.y=c.y;var b=y(g,d);b<a.loss&&(a.loss=b,a.coordinates=c)});return a},{loss:Number.MAX_VALUE,coordinates:void 0});c(a,v.coordinates)});return g},loss:y,nelderMead:function(a,b){var g=function(a,c){return a.fx-c.fx},c=function(a,c,b,e){return c.map(function(c,g){return a*c+b*e[g]})},e=function(c,b){b.fx=a(b);c[c.length-1]=b;return c},d=function(b){var e=b[0];return b.map(function(b){b=c(.5,e,.5,b);b.fx=
-a(b);return b})},f=function(b,e,g,d){b=c(g,b,d,e);b.fx=a(b);return b};b=function(b){var c=b.length,e=Array(c+1);e[0]=b;e[0].fx=a(b);for(var g=0;g<c;++g){var d=b.slice();d[g]=d[g]?1.05*d[g]:.001;d.fx=a(d);e[g+1]=d}return e}(b);for(var x=0;100>x;x++){b.sort(g);var h=b[b.length-1],l=w(b),B=f(l,h,2,-1);if(B.fx<b[0].fx)h=f(l,h,3,-2),b=e(b,h.fx<B.fx?h:B);else if(B.fx>=b[b.length-2].fx){var k=void 0;B.fx>h.fx?(k=f(l,h,.5,.5),b=k.fx<h.fx?e(b,k):d(b)):(k=f(l,h,1.5,-.5),b=k.fx<B.fx?e(b,k):d(b))}else b=e(b,
-B)}return b[0]},processVennData:function(a){a=r(a)?a:[];var b=a.reduce(function(a,b){k(b)&&h(b)&&0<b.value&&-1===a.indexOf(b.sets[0])&&a.push(b.sets[0]);return a},[]).sort(),g=a.reduce(function(a,e){k(e)&&!e.sets.some(function(a){return-1===b.indexOf(a)})&&(a[e.sets.sort().join()]=e);return a},{});b.reduce(function(a,b,g,d){d.slice(g+1).forEach(function(c){a.push(b+","+c)});return a},[]).forEach(function(a){if(!g[a]){var b={sets:a.split(","),value:0};g[a]=b}});return Object.keys(g).map(function(a){return g[a]})},
-sortByTotalOverlap:L}});n(a,"Series/Venn/VennSeries.js",[a["Core/Animation/AnimationUtilities.js"],a["Core/Color/Color.js"],a["Core/Geometry/CircleUtilities.js"],a["Series/DrawPointUtilities.js"],a["Core/Geometry/GeometryUtilities.js"],a["Core/Series/SeriesRegistry.js"],a["Series/Venn/VennPoint.js"],a["Series/Venn/VennUtils.js"],a["Core/Legend/LegendSymbol.js"],a["Core/Utilities.js"]],function(a,d,b,n,m,w,l,q,h,k){var y=this&&this.__extends||function(){var a=function(b,c){a=Object.setPrototypeOf||
-{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return a(b,c)};return function(b,c){function e(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(e.prototype=c.prototype,new e)}}(),A=a.animObject,J=d.parse,K=b.getAreaOfIntersectionBetweenCircles,p=b.getCirclesIntersectionPolygon,f=b.isCircle1CompletelyOverlappingCircle2,G=b.isPointInsideAllCircles,H=b.isPointOutsideAllCircles,D=m.getCenterOfPoints,E=w.seriesTypes.scatter;
-a=k.addEvent;var r=k.extend,F=k.isArray,z=k.isNumber,I=k.isObject,t=k.merge;k=function(a){function b(){var b=null!==a&&a.apply(this,arguments)||this;b.data=void 0;b.mapOfIdToRelation=void 0;b.options=void 0;b.points=void 0;return b}y(b,a);b.getLabelPosition=function(a,b){var c=a.reduce(function(c,e){var d=e.r/2;return[{x:e.x,y:e.y},{x:e.x+d,y:e.y},{x:e.x-d,y:e.y},{x:e.x,y:e.y+d},{x:e.x,y:e.y-d}].reduce(function(c,e){var d=q.getMarginFromCircles(e,a,b);c.margin<d&&(c.point=e,c.margin=d);return c},
-c)},{point:void 0,margin:-Number.MAX_VALUE}).point;c=q.nelderMead(function(c){return-q.getMarginFromCircles({x:c[0],y:c[1]},a,b)},[c.x,c.y]);c={x:c[0],y:c[1]};G(c,a)&&H(c,b)||(c=1<a.length?D(p(a)):{x:a[0].x,y:a[0].y});return c};b.getLabelValues=function(a,e){var c=a.sets,d=e.reduce(function(a,b){var e=-1<c.indexOf(b.sets[0]);a[e?"internal":"external"].push(b.circle);return a},{internal:[],external:[]});d.external=d.external.filter(function(a){return d.internal.some(function(b){return!f(a,b)})});a=
-b.getLabelPosition(d.internal,d.external);e=q.getLabelWidth(a,d.internal,d.external);return{position:a,width:e}};b.layout=function(a){var c={},d={};if(0<a.length){var f=q.layoutGreedyVenn(a),g=a.filter(q.isSet);a.forEach(function(a){var e=a.sets,h=e.join();if(e=q.isSet(a)?f[h]:K(e.map(function(a){return f[a]})))c[h]=e,d[h]=b.getLabelValues(a,g)})}return{mapOfIdToShape:c,mapOfIdToLabelValues:d}};b.getScale=function(a,b,d){var c=d.bottom-d.top,e=d.right-d.left;c=Math.min(0<e?1/e*a:1,0<c?1/c*b:1);return{scale:c,
-centerX:a/2-(d.right+d.left)/2*c,centerY:b/2-(d.top+d.bottom)/2*c}};b.updateFieldBoundaries=function(a,b){var c=b.x-b.r,d=b.x+b.r,e=b.y+b.r;b=b.y-b.r;if(!z(a.left)||a.left>c)a.left=c;if(!z(a.right)||a.right<d)a.right=d;if(!z(a.top)||a.top>b)a.top=b;if(!z(a.bottom)||a.bottom<e)a.bottom=e;return a};b.prototype.animate=function(a){if(!a){var b=A(this.options.animation);this.points.forEach(function(a){var c=a.shapeArgs;if(a.graphic&&c){var d={},e={};c.d?d.opacity=.001:(d.r=0,e.r=c.r);a.graphic.attr(d).animate(e,
-b);c.d&&setTimeout(function(){a&&a.graphic&&a.graphic.animate({opacity:1})},b.duration)}},this)}};b.prototype.drawPoints=function(){var a=this,b=a.chart,d=a.group,f=b.renderer;(a.points||[]).forEach(function(c){var e={zIndex:F(c.sets)?c.sets.length:0},g=c.shapeArgs;b.styledMode||r(e,a.pointAttribs(c,c.state));n.draw(c,{isNew:!c.graphic,animatableAttribs:g,attribs:e,group:d,renderer:f,shapeType:g&&g.d?"path":"circle"})})};b.prototype.init=function(){E.prototype.init.apply(this,arguments);delete this.opacity};
-b.prototype.pointAttribs=function(a,b){var c=this.options||{};a=t(c,{color:a&&a.color},a&&a.options||{},b&&c.states[b]||{});return{fill:J(a.color).brighten(a.brightness).get(),opacity:a.opacity,stroke:a.borderColor,"stroke-width":a.borderWidth,dashstyle:a.borderDashStyle}};b.prototype.translate=function(){var a=this.chart;this.processedXData=this.xData;this.generatePoints();var d=q.processVennData(this.options.data);d=b.layout(d);var f=d.mapOfIdToShape,g=d.mapOfIdToLabelValues;d=Object.keys(f).filter(function(a){return(a=
-f[a])&&z(a.r)}).reduce(function(a,c){return b.updateFieldBoundaries(a,f[c])},{top:0,bottom:0,left:0,right:0});a=b.getScale(a.plotWidth,a.plotHeight,d);var h=a.scale,k=a.centerX,l=a.centerY;this.points.forEach(function(a){var b=F(a.sets)?a.sets:[],c=b.join(),d=f[c],e=g[c]||{};c=e.width;e=e.position;var m=a.options&&a.options.dataLabels;if(d){if(d.r)var n={x:k+d.x*h,y:l+d.y*h,r:d.r*h};else d.d&&(d=d.d,d.forEach(function(a){"M"===a[0]?(a[1]=k+a[1]*h,a[2]=l+a[2]*h):"A"===a[0]&&(a[1]*=h,a[2]*=h,a[6]=k+
-a[6]*h,a[7]=l+a[7]*h)}),n={d:d});e?(e.x=k+e.x*h,e.y=l+e.y*h):e={};z(c)&&(c=Math.round(c*h))}a.shapeArgs=n;e&&n&&(a.plotX=e.x,a.plotY=e.y);c&&n&&(a.dlOptions=t(!0,{style:{width:c}},I(m,!0)?m:void 0));a.name=a.options.name||b.join("\u2229")})};b.defaultOptions=t(E.defaultOptions,{borderColor:"#cccccc",borderDashStyle:"solid",borderWidth:1,brighten:0,clip:!1,colorByPoint:!0,dataLabels:{enabled:!0,verticalAlign:"middle",formatter:function(){return this.point.name}},inactiveOtherPoints:!0,marker:!1,opacity:.75,
-showInLegend:!1,legendType:"point",states:{hover:{opacity:1,borderColor:"#333333"},select:{color:"#cccccc",borderColor:"#000000",animation:!1},inactive:{opacity:.075}},tooltip:{pointFormat:"{point.name}: {point.value}"}});return b}(E);r(k.prototype,{axisTypes:[],directTouch:!0,drawLegendSymbol:h.drawRectangle,isCartesian:!1,pointArrayMap:["value"],pointClass:l,utils:q});w.registerSeriesType("venn",k);"";a(k,"afterSetOptions",function(a){var b=a.options.states;this.is("venn")&&Object.keys(b).forEach(function(a){b[a].halo=
-!1})});return k});n(a,"masters/modules/venn.src.js",[],function(){})});
-//# sourceMappingURL=venn.js.map

+ 0 - 24
nicegui/elements/lib/highcharts_modules/windbarb.js

@@ -1,24 +0,0 @@
-/*
- Highcharts JS v10.3.3 (2023-01-20)
-
- Wind barb series module
-
- (c) 2010-2021 Torstein Honsi
-
- License: www.highcharts.com/license
-*/
-(function(a){"object"===typeof module&&module.exports?(a["default"]=a,module.exports=a):"function"===typeof define&&define.amd?define("highcharts/modules/windbarb",["highcharts"],function(b){a(b);a.Highcharts=b;return a}):a("undefined"!==typeof Highcharts?Highcharts:void 0)})(function(a){function b(a,e,r,b){a.hasOwnProperty(e)||(a[e]=b.apply(null,r),"function"===typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:e,module:a[e]}})))}a=a?a._modules:{};b(a,
-"Extensions/DataGrouping/ApproximationRegistry.js",[],function(){return{}});b(a,"Series/OnSeriesComposition.js",[a["Series/Column/ColumnSeries.js"],a["Core/Series/Series.js"],a["Core/Utilities.js"]],function(a,e,b){var r=a.prototype,h=e.prototype,m=b.defined,v=b.stableSort,q;(function(a){function b(a){return h.getPlotBox.call(this.options.onSeries&&this.chart.get(this.options.onSeries)||this,a)}function q(){r.translate.apply(this);var a=this,k=a.options,f=a.chart,d=a.points,c=k.onSeries,x=(c=c&&f.get(c))&&
-c.options.step,t=c&&c.points,g=f.inverted,b=a.xAxis,q=a.yAxis;f=d.length-1;var e;k=k.onKey||"y";var h=t&&t.length,y=0,n;if(c&&c.visible&&h){y=(c.pointXOffset||0)+(c.barW||0)/2;var l=c.currentDataGrouping;var w=t[h-1].x+(l?l.totalRange:0);v(d,function(d,c){return d.x-c.x});for(k="plot"+k[0].toUpperCase()+k.substr(1);h--&&d[f];){var p=t[h];l=d[f];l.y=p.y;if(p.x<=l.x&&"undefined"!==typeof p[k]){if(l.x<=w&&(l.plotY=p[k],p.x<l.x&&!x&&(n=t[h+1])&&"undefined"!==typeof n[k])){var u=(l.x-p.x)/(n.x-p.x);l.plotY+=
-u*(n[k]-p[k]);l.y+=u*(n.y-p.y)}f--;h++;if(0>f)break}}}d.forEach(function(c,x){c.plotX+=y;if("undefined"===typeof c.plotY||g)0<=c.plotX&&c.plotX<=b.len?g?(c.plotY=b.translate(c.x,0,1,0,1),c.plotX=m(c.y)?q.translate(c.y,0,0,0,1):0):c.plotY=(b.opposite?0:a.yAxis.len)+b.offset:c.shapeArgs={};if((e=d[x-1])&&e.plotX===c.plotX){"undefined"===typeof e.stackIndex&&(e.stackIndex=0);var t=e.stackIndex+1}c.stackIndex=t});this.onSeries=c}var e=[];a.compose=function(a){if(-1===e.indexOf(a)){e.push(a);var k=a.prototype;
-k.getPlotBox=b;k.translate=q}return a};a.getPlotBox=b;a.translate=q})(q||(q={}));return q});b(a,"Series/Windbarb/WindbarbPoint.js",[a["Core/Utilities.js"],a["Series/Column/ColumnSeries.js"]],function(a,b){var e=this&&this.__extends||function(){var a=function(b,e){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var e in b)b.hasOwnProperty(e)&&(a[e]=b[e])};return a(b,e)};return function(b,e){function h(){this.constructor=b}a(b,e);b.prototype=
-null===e?Object.create(e):(h.prototype=e.prototype,new h)}}(),n=a.isNumber;return function(a){function b(){var b=null!==a&&a.apply(this,arguments)||this;b.beaufort=void 0;b.beaufortLevel=void 0;b.direction=void 0;b.options=void 0;b.series=void 0;return b}e(b,a);b.prototype.isValid=function(){return n(this.value)&&0<=this.value};return b}(b.prototype.pointClass)});b(a,"Series/Windbarb/WindbarbSeries.js",[a["Core/Animation/AnimationUtilities.js"],a["Extensions/DataGrouping/ApproximationRegistry.js"],
-a["Core/Globals.js"],a["Series/OnSeriesComposition.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"],a["Series/Windbarb/WindbarbPoint.js"]],function(a,b,r,u,h,m,v){var e=this&&this.__extends||function(){var a=function(b,d){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,d){a.__proto__=d}||function(a,d){for(var c in d)d.hasOwnProperty(c)&&(a[c]=d[c])};return a(b,d)};return function(b,d){function c(){this.constructor=b}a(b,d);b.prototype=null===d?Object.create(d):(c.prototype=
-d.prototype,new c)}}(),n=a.animObject,w=h.series,z=h.seriesTypes.column;a=m.extend;var B=m.merge,A=m.pick;m=function(a){function f(){var d=null!==a&&a.apply(this,arguments)||this;d.data=void 0;d.options=void 0;d.points=void 0;return d}e(f,a);f.registerApproximation=function(){b.windbarb||(b.windbarb=function(a,c){var d=0,b=0,g,e=a.length;for(g=0;g<e;g++)d+=a[g]*Math.cos(c[g]*r.deg2rad),b+=a[g]*Math.sin(c[g]*r.deg2rad);return[a.reduce(function(a,c){return a+c},0)/a.length,Math.atan2(b,d)/r.deg2rad]})};
-f.prototype.init=function(a,c){f.registerApproximation();w.prototype.init.call(this,a,c)};f.prototype.pointAttribs=function(a,c){var b=this.options;a=a.color||this.color;var d=this.options.lineWidth;c&&(a=b.states[c].color||a,d=(b.states[c].lineWidth||d)+(b.states[c].lineWidthPlus||0));return{stroke:a,"stroke-width":d}};f.prototype.windArrow=function(a){var c=1.943844*a.value,b=this.options.vectorLength/20,d=-10;if(a.isNull)return[];if(0===a.beaufortLevel)return this.chart.renderer.symbols.circle(-10*
-b,-10*b,20*b,20*b);a=[["M",0,7*b],["L",-1.5*b,7*b],["L",0,10*b],["L",1.5*b,7*b],["L",0,7*b],["L",0,-10*b]];var g=(c-c%50)/50;if(0<g)for(;g--;)a.push(-10===d?["L",0,d*b]:["M",0,d*b],["L",5*b,d*b+2],["L",0,d*b+4]),c-=50,d+=7;g=(c-c%10)/10;if(0<g)for(;g--;)a.push(-10===d?["L",0,d*b]:["M",0,d*b],["L",7*b,d*b]),c-=10,d+=3;g=(c-c%5)/5;if(0<g)for(;g--;)a.push(-10===d?["L",0,d*b]:["M",0,d*b],["L",4*b,d*b]),c-=5,d+=3;return a};f.prototype.drawPoints=function(){var a=this.chart,b=this.yAxis,e=a.inverted,f=
-this.options.vectorLength/2;this.points.forEach(function(c){var d=c.plotX,g=c.plotY;!1===this.options.clip||a.isInsidePlot(d,0)?(c.graphic||(c.graphic=this.chart.renderer.path().add(this.markerGroup).addClass("highcharts-point highcharts-color-"+A(c.colorIndex,c.series.colorIndex))),c.graphic.attr({d:this.windArrow(c),translateX:d+this.options.xOffset,translateY:g+this.options.yOffset,rotation:c.direction}),this.chart.styledMode||c.graphic.attr(this.pointAttribs(c))):c.graphic&&(c.graphic=c.graphic.destroy());
-c.tooltipPos=[d+this.options.xOffset+(e&&!this.onSeries?f:0),g+this.options.yOffset-(e?0:f+b.pos-a.plotTop)]},this)};f.prototype.animate=function(a){a?this.markerGroup.attr({opacity:.01}):this.markerGroup.animate({opacity:1},n(this.options.animation))};f.prototype.markerAttribs=function(a,b){return{}};f.prototype.getExtremes=function(){return{}};f.prototype.shouldShowTooltip=function(b,c,e){void 0===e&&(e={});e.ignoreX=this.chart.inverted;e.ignoreY=!e.ignoreX;return a.prototype.shouldShowTooltip.call(this,
-b,c,e)};f.defaultOptions=B(z.defaultOptions,{dataGrouping:{enabled:!0,approximation:"windbarb",groupPixelWidth:30},lineWidth:2,onSeries:null,states:{hover:{lineWidthPlus:0}},tooltip:{pointFormat:'<span style="color:{point.color}">\u25cf</span> {series.name}: <b>{point.value}</b> ({point.beaufort})<br/>'},vectorLength:20,colorKey:"value",yOffset:-20,xOffset:0});return f}(z);u.compose(m);a(m.prototype,{beaufortFloor:[0,.3,1.6,3.4,5.5,8,10.8,13.9,17.2,20.8,24.5,28.5,32.7],beaufortName:"Calm;Light air;Light breeze;Gentle breeze;Moderate breeze;Fresh breeze;Strong breeze;Near gale;Gale;Strong gale;Storm;Violent storm;Hurricane".split(";"),
-invertible:!1,parallelArrays:["x","value","direction"],pointArrayMap:["value","direction"],pointClass:v,trackerGroups:["markerGroup"],translate:function(){var a=this.beaufortFloor,b=this.beaufortName;u.translate.call(this);this.points.forEach(function(d){for(var c=0;c<a.length&&!(a[c]>d.value);c++);d.beaufortLevel=c-1;d.beaufort=b[c-1]})}});m.registerApproximation();h.registerSeriesType("windbarb",m);"";return m});b(a,"masters/modules/windbarb.src.js",[],function(){})});
-//# sourceMappingURL=windbarb.js.map

+ 0 - 31
nicegui/elements/lib/highcharts_modules/wordcloud.js

@@ -1,31 +0,0 @@
-/*
- Highcharts JS v10.3.3 (2023-01-20)
-
- (c) 2016-2021 Highsoft AS
- Authors: Jon Arild Nygard
-
- License: www.highcharts.com/license
-*/
-(function(c){"object"===typeof module&&module.exports?(c["default"]=c,module.exports=c):"function"===typeof define&&define.amd?define("highcharts/modules/wordcloud",["highcharts"],function(k){c(k);c.Highcharts=k;return c}):c("undefined"!==typeof Highcharts?Highcharts:void 0)})(function(c){function k(c,g,f,p){c.hasOwnProperty(g)||(c[g]=p.apply(null,f),"function"===typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:g,module:c[g]}})))}c=c?c._modules:{};k(c,
-"Series/DrawPointUtilities.js",[c["Core/Utilities.js"]],function(c){return{draw:function(c,f){var p=f.animatableAttribs,m=f.onComplete,l=f.css,e=f.renderer,g=c.series&&c.series.chart.hasRendered?void 0:c.series&&c.series.options.animation,h=c.graphic;f.attribs=f.attribs||{};f.attribs["class"]=c.getClassName();if(c.shouldDraw())h||(c.graphic=h="text"===f.shapeType?e.text():e[f.shapeType](f.shapeArgs||{}),h.add(f.group)),l&&h.css(l),h.attr(f.attribs).animate(p,f.isNew?!1:g,m);else if(h){var k=function(){c.graphic=
-h=h&&h.destroy();"function"===typeof m&&m()};Object.keys(p).length?h.animate(p,void 0,function(){return k()}):k()}}}});k(c,"Series/Wordcloud/WordcloudPoint.js",[c["Core/Series/SeriesRegistry.js"],c["Core/Utilities.js"]],function(c,g){var f=this&&this.__extends||function(){var c=function(m,f){c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var e in f)f.hasOwnProperty(e)&&(c[e]=f[e])};return c(m,f)};return function(f,g){function e(){this.constructor=
-f}c(f,g);f.prototype=null===g?Object.create(g):(e.prototype=g.prototype,new e)}}();g=g.extend;c=function(c){function g(){var f=null!==c&&c.apply(this,arguments)||this;f.dimensions=void 0;f.options=void 0;f.polygon=void 0;f.rect=void 0;f.series=void 0;return f}f(g,c);g.prototype.isValid=function(){return!0};return g}(c.seriesTypes.column.prototype.pointClass);g(c.prototype,{weight:1});return c});k(c,"Series/Wordcloud/WordcloudUtils.js",[c["Core/Globals.js"],c["Core/Utilities.js"]],function(c,g){function f(a,
-b){return!(b.left>a.right||b.right<a.left||b.top>a.bottom||b.bottom<a.top)}function k(a,b){var d=b[0]-a[0];a=b[1]-a[1];return[[-a,d],[a,-d]]}function m(a){var b=a.axes||[];if(!b.length){b=[];var d=d=a.concat([a[0]]);d.reduce(function(a,d){var c=k(a,d)[0];A(b,function(a){return a[0]===c[0]&&a[1]===c[1]})||b.push(c);return d});a.axes=b}return b}function l(a,b){a=a.map(function(a){return a[0]*b[0]+a[1]*b[1]});return{min:Math.min.apply(this,a),max:Math.max.apply(this,a)}}function e(a,b){var d=m(a),c=
-m(b);d=d.concat(c);return!A(d,function(d){var c=l(a,d);d=l(b,d);return!!(d.min>c.max||d.max<c.min)})}function H(a,b){var d=!1,c=a.rect,z=a.polygon,g=a.lastCollidedWith,h=function(b){var d=f(c,b.rect);d&&(a.rotation%90||b.rotation%90)&&(d=e(z,b.polygon));return d};g&&((d=h(g))||delete a.lastCollidedWith);d||(d=!!A(b,function(b){var d=h(b);d&&(a.lastCollidedWith=b);return d}));return d}function h(a,b){b=4*a;var d=Math.ceil((Math.sqrt(b)-1)/2),c=2*d+1,f=Math.pow(c,2),e=!1;--c;1E4>=a&&("boolean"===typeof e&&
-b>=f-c&&(e={x:d-(f-b),y:-d}),f-=c,"boolean"===typeof e&&b>=f-c&&(e={x:-d,y:-d+(f-b)}),f-=c,"boolean"===typeof e&&(e=b>=f-c?{x:-d+(f-b),y:d}:{x:d,y:d-(f-b-c)}),e.x*=5,e.y*=5);return e}function q(a,b){var d=b.width/2,c=-(b.height/2),f=b.height/2;return!(-(b.width/2)<a.left&&d>a.right&&c<a.top&&f>a.bottom)}function u(a,b,d){return d.map(function(d){return[d[0]+a,d[1]+b]})}function w(a,b){b=n(b)?b:14;b=Math.pow(10,b);return Math.round(a*b)/b}function v(a,b){var d=a[0];a=a[1];var c=x*-b;b=Math.cos(c);
-c=Math.sin(c);return[w(d*b-a*c),w(d*c+a*b)]}function B(a,b,d){a=v([a[0]-b[0],a[1]-b[1]],d);return[a[0]+b[0],a[1]+b[1]]}var x=c.deg2rad,D=g.extend,A=g.find,n=g.isNumber,C=g.isObject,y=g.merge;return{archimedeanSpiral:function(a,b){var d=b.field;b=!1;d=d.width*d.width+d.height*d.height;var c=.8*a;1E4>=a&&(b={x:c*Math.cos(c),y:c*Math.sin(c)},Math.min(Math.abs(b.x),Math.abs(b.y))<d||(b=!1));return b},extendPlayingField:function(a,b){if(C(a)&&C(b)){var d=b.bottom-b.top;var c=b.right-b.left;b=a.ratioX;
-var f=a.ratioY;d=c*b>d*f?c:d;a=y(a,{width:a.width+d*b*2,height:a.height+d*f*2})}return a},getBoundingBoxFromPolygon:function(a){return a.reduce(function(a,d){var b=d[0];d=d[1];a.left=Math.min(b,a.left);a.right=Math.max(b,a.right);a.bottom=Math.max(d,a.bottom);a.top=Math.min(d,a.top);return a},{left:Number.MAX_VALUE,right:-Number.MAX_VALUE,bottom:-Number.MAX_VALUE,top:Number.MAX_VALUE})},getPlayingField:function(a,b,d){d=d.reduce(function(a,b){b=b.dimensions;var d=Math.max(b.width,b.height);a.maxHeight=
-Math.max(a.maxHeight,b.height);a.maxWidth=Math.max(a.maxWidth,b.width);a.area+=d*d;return a},{maxHeight:0,maxWidth:0,area:0});d=Math.max(d.maxHeight,d.maxWidth,.85*Math.sqrt(d.area));var c=a>b?a/b:1;a=b>a?b/a:1;return{width:d*c,height:d*a,ratioX:c,ratioY:a}},getPolygon:function(a,b,d,c,f){var e=[a,b],g=a-d/2;a+=d/2;d=b-c/2;b+=c/2;return[[g,d],[a,d],[a,b],[g,b]].map(function(a){return B(a,e,-f)})},getRandomPosition:function(a){return Math.round(a*(Math.random()+.5)/2)},getRotation:function(a,b,d,c){var f=
-!1;n(a)&&n(b)&&n(d)&&n(c)&&0<a&&-1<b&&c>d&&(f=d+b%a*((c-d)/(a-1||1)));return f},getScale:function(a,b,d){var c=2*Math.max(Math.abs(d.top),Math.abs(d.bottom));d=2*Math.max(Math.abs(d.left),Math.abs(d.right));return Math.min(0<d?1/d*a:1,0<c?1/c*b:1)},getSpiral:function(a,b){var c,f=[];for(c=1;1E4>c;c++)f.push(a(c,b));return function(a){return 1E4>=a?f[a-1]:!1}},intersectionTesting:function(a,b){var c=b.placed,f=b.field,e=b.rectangle,g=b.polygon,h=b.spiral,m=1,k={x:0,y:0},n=a.rect=D({},e);a.polygon=
-g;for(a.rotation=b.rotation;!1!==k&&(H(a,c)||q(n,f));)k=h(m),C(k)&&(n.left=e.left+k.x,n.right=e.right+k.x,n.top=e.top+k.y,n.bottom=e.bottom+k.y,a.polygon=u(k.x,k.y,g)),m++;return k},isPolygonsColliding:e,isRectanglesIntersecting:f,rectangularSpiral:function(a,b){a=h(a,b);b=b.field;a&&(a.x*=b.ratioX,a.y*=b.ratioY);return a},rotate2DToOrigin:v,rotate2DToPoint:B,squareSpiral:h,updateFieldBoundaries:function(a,b){if(!n(a.left)||a.left>b.left)a.left=b.left;if(!n(a.right)||a.right<b.right)a.right=b.right;
-if(!n(a.top)||a.top>b.top)a.top=b.top;if(!n(a.bottom)||a.bottom<b.bottom)a.bottom=b.bottom;return a}}});k(c,"Series/Wordcloud/WordcloudSeries.js",[c["Series/DrawPointUtilities.js"],c["Core/Globals.js"],c["Core/Series/Series.js"],c["Core/Series/SeriesRegistry.js"],c["Core/Utilities.js"],c["Series/Wordcloud/WordcloudPoint.js"],c["Series/Wordcloud/WordcloudUtils.js"]],function(c,g,f,k,m,l,e){var p=this&&this.__extends||function(){var a=function(b,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&
-function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return a(b,c)};return function(b,c){function d(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(d.prototype=c.prototype,new d)}}(),h=g.noop,q=k.seriesTypes.column,u=m.extend,w=m.isArray,v=m.isNumber,B=m.isObject,x=m.merge;m=e.archimedeanSpiral;var D=e.extendPlayingField,A=e.getBoundingBoxFromPolygon,n=e.getPlayingField,C=e.getPolygon,y=e.getRandomPosition,a=e.getRotation,b=e.getScale,d=e.getSpiral,
-F=e.intersectionTesting,z=e.isPolygonsColliding,I=e.rectangularSpiral,J=e.rotate2DToOrigin,K=e.rotate2DToPoint,L=e.squareSpiral,M=e.updateFieldBoundaries;e=function(a){function e(){var b=null!==a&&a.apply(this,arguments)||this;b.data=void 0;b.options=void 0;b.points=void 0;return b}p(e,a);e.prototype.bindAxes=function(){var a={endOnTick:!1,gridLineWidth:0,lineWidth:0,maxPadding:0,startOnTick:!1,title:void 0,tickPositions:[]};f.prototype.bindAxes.call(this);u(this.yAxis.options,a);u(this.xAxis.options,
-a)};e.prototype.pointAttribs=function(a,b){a=g.seriesTypes.column.prototype.pointAttribs.call(this,a,b);delete a.stroke;delete a["stroke-width"];return a};e.prototype.deriveFontSize=function(a,b,c){a=v(a)?a:0;b=v(b)?b:1;c=v(c)?c:1;return Math.floor(Math.max(c,a*b))};e.prototype.drawPoints=function(){var a=this,f=a.hasRendered,e=a.xAxis,g=a.yAxis,k=a.group,h=a.options,m=h.animation,N=h.allowExtendPlayingField,p=a.chart.renderer,l=p.text().add(k),q=[],w=a.placementStrategy[h.placementStrategy],y=h.rotation,
-z=a.points.map(function(a){return a.weight}),x=Math.max.apply(null,z),E=a.points.concat().sort(function(a,b){return b.weight-a.weight});a.group.attr({scaleX:1,scaleY:1});E.forEach(function(b){var c=a.deriveFontSize(1/x*b.weight,h.maxFontSize,h.minFontSize);c=u({fontSize:c+"px"},h.style);l.css(c).attr({x:0,y:0,text:b.name});c=l.getBBox(!0);b.dimensions={height:c.height,width:c.width}});var t=n(e.len,g.len,E);var G=d(a.spirals[h.spiral],{field:t});E.forEach(function(b){var d=a.deriveFontSize(1/x*b.weight,
-h.maxFontSize,h.minFontSize);d=u({fontSize:d+"px"},h.style);var e=w(b,{data:E,field:t,placed:q,rotation:y}),g=u(a.pointAttribs(b,b.selected&&"select"),{align:"center","alignment-baseline":"middle","dominant-baseline":"middle",x:e.x,y:e.y,text:b.name,rotation:v(e.rotation)?e.rotation:void 0}),n=C(e.x,e.y,b.dimensions.width,b.dimensions.height,e.rotation),l=A(n),r=F(b,{rectangle:l,polygon:n,field:t,placed:q,spiral:G,rotation:e.rotation});!r&&N&&(t=D(t,l),r=F(b,{rectangle:l,polygon:n,field:t,placed:q,
-spiral:G,rotation:e.rotation}));B(r)?(g.x=(g.x||0)+r.x,g.y=(g.y||0)+r.y,l.left+=r.x,l.right+=r.x,l.top+=r.y,l.bottom+=r.y,t=M(t,l),q.push(b),b.isNull=!1,b.isInside=!0):b.isNull=!0;if(m){var O={x:g.x,y:g.y};f?(delete g.x,delete g.y):(g.x=0,g.y=0)}c.draw(b,{animatableAttribs:O,attribs:g,css:d,group:k,renderer:p,shapeArgs:void 0,shapeType:"text"})});l=l.destroy();e=b(e.len,g.len,t);a.group.attr({scaleX:e,scaleY:e})};e.prototype.hasData=function(){return B(this)&&!0===this.visible&&w(this.points)&&0<
-this.points.length};e.prototype.getPlotBox=function(){var a=this.chart,b=a.inverted,c=this[b?"yAxis":"xAxis"];b=this[b?"xAxis":"yAxis"];return{translateX:(c?c.left:a.plotLeft)+(c?c.len:a.plotWidth)/2,translateY:(b?b.top:a.plotTop)+(b?b.len:a.plotHeight)/2,scaleX:1,scaleY:1}};e.defaultOptions=x(q.defaultOptions,{allowExtendPlayingField:!0,animation:{duration:500},borderWidth:0,clip:!1,colorByPoint:!0,cropThreshold:Infinity,minFontSize:1,maxFontSize:25,placementStrategy:"center",rotation:{from:0,orientations:2,
-to:90},showInLegend:!1,spiral:"rectangular",style:{fontFamily:"sans-serif",fontWeight:"900",whiteSpace:"nowrap"},tooltip:{followPointer:!0,pointFormat:'<span style="color:{point.color}">\u25cf</span> {series.name}: <b>{point.weight}</b><br/>'}});return e}(q);u(e.prototype,{animate:h,animateDrilldown:h,animateDrillupFrom:h,pointClass:l,setClip:h,placementStrategy:{random:function(b,c){var d=c.field;c=c.rotation;return{x:y(d.width)-d.width/2,y:y(d.height)-d.height/2,rotation:a(c.orientations,b.index,
-c.from,c.to)}},center:function(b,c){c=c.rotation;return{x:0,y:0,rotation:a(c.orientations,b.index,c.from,c.to)}}},pointArrayMap:["weight"],spirals:{archimedean:m,rectangular:I,square:L},utils:{extendPlayingField:D,getRotation:a,isPolygonsColliding:z,rotate2DToOrigin:J,rotate2DToPoint:K}});k.registerSeriesType("wordcloud",e);"";return e});k(c,"masters/modules/wordcloud.src.js",[],function(){})});
-//# sourceMappingURL=wordcloud.js.map

+ 0 - 27
nicegui/elements/lib/highcharts_modules/xrange.js

@@ -1,27 +0,0 @@
-/*
- Highcharts JS v10.3.3 (2023-01-20)
-
- X-range series
-
- (c) 2010-2021 Torstein Honsi, Lars A. V. Cabrera
-
- License: www.highcharts.com/license
-*/
-(function(a){"object"===typeof module&&module.exports?(a["default"]=a,module.exports=a):"function"===typeof define&&define.amd?define("highcharts/modules/xrange",["highcharts"],function(h){a(h);a.Highcharts=h;return a}):a("undefined"!==typeof Highcharts?Highcharts:void 0)})(function(a){function h(a,b,t,c){a.hasOwnProperty(b)||(a[b]=c.apply(null,t),"function"===typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:b,module:a[b]}})))}a=a?a._modules:{};h(a,"Series/XRange/XRangeSeriesDefaults.js",
-[a["Core/Utilities.js"]],function(a){var b=a.correctFloat,q=a.isNumber,c=a.isObject;"";return{colorByPoint:!0,dataLabels:{formatter:function(){var a=this.point.partialFill;c(a)&&(a=a.amount);if(q(a)&&0<a)return b(100*a)+"%"},inside:!0,verticalAlign:"middle"},tooltip:{headerFormat:'<span style="font-size: 10px">{point.x} - {point.x2}</span><br/>',pointFormat:'<span style="color:{point.color}">\u25cf</span> {series.name}: <b>{point.yCategory}</b><br/>'},borderRadius:3,pointRange:0}});h(a,"Series/XRange/XRangePoint.js",
-[a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,b){var q=this&&this.__extends||function(){var a=function(c,f){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,f){a.__proto__=f}||function(a,f){for(var c in f)f.hasOwnProperty(c)&&(a[c]=f[c])};return a(c,f)};return function(c,f){function b(){this.constructor=c}a(c,f);c.prototype=null===f?Object.create(f):(b.prototype=f.prototype,new b)}}(),c=a.series.prototype.pointClass.prototype;b=b.extend;a=function(a){function b(){var f=
-null!==a&&a.apply(this,arguments)||this;f.options=void 0;f.series=void 0;return f}q(b,a);b.getColorByCategory=function(a,c){var b=a.options.colors||a.chart.options.colors;a=c.y%(b?b.length:a.chart.options.chart.colorCount);return{colorIndex:a,color:b&&b[a]}};b.prototype.resolveColor=function(){var a=this.series;if(a.options.colorByPoint&&!this.options.color){var c=b.getColorByCategory(a,this);a.chart.styledMode||(this.color=c.color);this.options.colorIndex||(this.colorIndex=c.colorIndex)}else this.color||
-(this.color=a.color)};b.prototype.init=function(){c.init.apply(this,arguments);this.y||(this.y=0);return this};b.prototype.setState=function(){c.setState.apply(this,arguments);this.series.drawPoint(this,this.series.getAnimationVerb())};b.prototype.getLabelConfig=function(){var a=c.getLabelConfig.call(this),b=this.series.yAxis.categories;a.x2=this.x2;a.yCategory=this.yCategory=b&&b[this.y];return a};b.prototype.isValid=function(){return"number"===typeof this.x&&"number"===typeof this.x2};return b}(a.seriesTypes.column.prototype.pointClass);
-b(a.prototype,{ttBelow:!1,tooltipDateKeys:["x","x2"]});"";return a});h(a,"Series/XRange/XRangeSeries.js",[a["Core/Globals.js"],a["Core/Color/Color.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"],a["Series/XRange/XRangeSeriesDefaults.js"],a["Series/XRange/XRangePoint.js"]],function(a,b,h,c,F,G){function f(){if(this.isXAxis){var a=v(this.dataMax,-Number.MAX_VALUE);for(var b=0,d=this.series;b<d.length;b++){var g=d[b];if(g.x2Data){var y=0;for(g=g.x2Data;y<g.length;y++){var c=g[y];if(c&&
-c>a){a=c;var e=!0}}}}e&&(this.dataMax=a)}}var q=this&&this.__extends||function(){var a=function(b,d){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,d){a.__proto__=d}||function(a,d){for(var g in d)d.hasOwnProperty(g)&&(a[g]=d[g])};return a(b,d)};return function(b,d){function g(){this.constructor=b}a(b,d);b.prototype=null===d?Object.create(d):(g.prototype=d.prototype,new g)}}();a=a.noop;var A=b.parse,B=h.series.prototype,C=h.seriesTypes.column,t=c.addEvent,w=c.clamp,I=c.defined;
-b=c.extend;var D=c.find,x=c.isNumber,z=c.isObject,u=c.merge,v=c.pick,E=[];c=function(a){function b(){var d=null!==a&&a.apply(this,arguments)||this;d.data=void 0;d.options=void 0;d.points=void 0;return d}q(b,a);b.compose=function(a){-1===E.indexOf(a)&&(E.push(a),t(a,"afterGetSeriesExtremes",f))};b.prototype.init=function(){a.prototype.init.apply(this,arguments);this.options.stacking=void 0};b.prototype.getColumnMetrics=function(){var d=this,b=function(){for(var a=0,b=d.chart.series;a<b.length;a++){var g=
-b[a],c=g.xAxis;g.xAxis=g.yAxis;g.yAxis=c}};b();var c=a.prototype.getColumnMetrics.call(this);b();return c};b.prototype.cropData=function(a,b,c,H){b=B.cropData.call(this,this.x2Data,b,c,H);b.xData=a.slice(b.start,b.end);return b};b.prototype.findPointIndex=function(a){var d=this.cropStart,b=this.points,c=a.id;if(c)var e=(e=D(b,function(a){return a.id===c}))?e.index:void 0;"undefined"===typeof e&&(e=(e=D(b,function(d){return d.x===a.x&&d.x2===a.x2&&!d.touched}))?e.index:void 0);this.cropped&&x(e)&&
-x(d)&&e>=d&&(e-=d);return e};b.prototype.alignDataLabel=function(d){var b=d.plotX;d.plotX=v(d.dlBox&&d.dlBox.centerX,d.plotX);a.prototype.alignDataLabel.apply(this,arguments);d.plotX=b};b.prototype.translatePoint=function(a){var b=this.xAxis,d=this.yAxis,c=this.columnMetrics,e=this.options,f=e.minPointLength||0,p=(a.shapeArgs&&a.shapeArgs.width||0)/2,m=this.pointXOffset=c.offset,h=v(a.x2,a.x+(a.len||0)),l=a.plotX,n=b.translate(h,0,0,0,1);h=Math.abs(n-l);var q=this.chart.inverted,k=v(e.borderWidth,
-1)%2/2,r=c.offset,t=Math.round(c.width);f&&(f-=h,0>f&&(f=0),l-=f/2,n+=f/2);l=Math.max(l,-10);n=w(n,-10,b.len+10);I(a.options.pointWidth)&&(r-=(Math.ceil(a.options.pointWidth)-t)/2,t=Math.ceil(a.options.pointWidth));e.pointPlacement&&x(a.plotY)&&d.categories&&(a.plotY=d.translate(a.y,0,1,0,1,e.pointPlacement));e=Math.floor(Math.min(l,n))+k;e={x:e,y:Math.floor(a.plotY+r)+k,width:Math.floor(Math.max(l,n))+k-e,height:t,r:this.options.borderRadius};a.shapeArgs=e;q?a.tooltipPos[1]+=m+p:a.tooltipPos[0]-=
-p+m-e.width/2;p=e.x;m=p+e.width;0>p||m>b.len?(p=w(p,0,b.len),m=w(m,0,b.len),n=m-p,a.dlBox=u(e,{x:p,width:m-p,centerX:n?n/2:null})):a.dlBox=null;p=a.tooltipPos;m=q?1:0;n=q?0:1;c=this.columnMetrics?this.columnMetrics.offset:-c.width/2;p[m]=q?p[m]+e.width/2:p[m]+(b.reversed?-1:0)*e.width;p[n]=w(p[n]+(q?-1:1)*c,0,d.len-1);if(d=a.partialFill)z(d)&&(d=d.amount),x(d)||(d=0),a.partShapeArgs=u(e,{r:this.options.borderRadius}),l=Math.max(Math.round(h*d+a.plotX-l),0),a.clipRectArgs={x:b.reversed?e.x+h-l:e.x,
-y:e.y,width:l,height:e.height}};b.prototype.translate=function(){a.prototype.translate.apply(this,arguments);for(var b=0,c=this.points;b<c.length;b++)this.translatePoint(c[b])};b.prototype.drawPoint=function(a,b){var c=this.options,d=this.chart.renderer,e=a.shapeType,f=a.shapeArgs,g=a.partShapeArgs,m=a.clipRectArgs,h=c.stacking&&!c.borderRadius,l=a.state,n=c.states[l||"normal"]||{},q="undefined"===typeof l?"attr":b;l=this.pointAttribs(a,l);n=v(this.chart.options.chart.animation,n.animation);var k=
-a.graphic,r=a.partialFill;if(a.isNull||!1===a.visible)k&&(a.graphic=k.destroy());else{if(k)k.rect[b](f);else a.graphic=k=d.g("point").addClass(a.getClassName()).add(a.group||this.group),k.rect=d[e](u(f)).addClass(a.getClassName()).addClass("highcharts-partfill-original").add(k);g&&(k.partRect?(k.partRect[b](u(g)),k.partialClipRect[b](u(m))):(k.partialClipRect=d.clipRect(m.x,m.y,m.width,m.height),k.partRect=d[e](g).addClass("highcharts-partfill-overlay").add(k).clip(k.partialClipRect)));this.chart.styledMode||
-(k.rect[b](l,n).shadow(c.shadow,null,h),g&&(z(r)||(r={}),z(c.partialFill)&&(r=u(c.partialFill,r)),a=r.fill||A(l.fill).brighten(-.3).get()||A(a.color||this.color).brighten(-.3).get(),l.fill=a,k.partRect[q](l,n).shadow(c.shadow,null,h)))}};b.prototype.drawPoints=function(){for(var a=this.getAnimationVerb(),b=0,c=this.points;b<c.length;b++)this.drawPoint(c[b],a)};b.prototype.getAnimationVerb=function(){return this.chart.pointCount<(this.options.animationLimit||250)?"animate":"attr"};b.prototype.isPointInside=
-function(b){var c=b.shapeArgs,d=b.plotX,f=b.plotY;return c?"undefined"!==typeof d&&"undefined"!==typeof f&&0<=f&&f<=this.yAxis.len&&0<=(c.x||0)+(c.width||0)&&d<=this.xAxis.len:a.prototype.isPointInside.apply(this,arguments)};b.defaultOptions=u(C.defaultOptions,F);return b}(C);b(c.prototype,{pointClass:G,cropShoulder:1,getExtremesFromAll:!0,parallelArrays:["x","x2","y"],requireSorting:!1,type:"xrange",animate:B.animate,autoIncrement:a,buildKDTree:a});h.registerSeriesType("xrange",c);return c});h(a,
-"masters/modules/xrange.src.js",[a["Core/Globals.js"],a["Series/XRange/XRangeSeries.js"]],function(a,b){b.compose(a.Axis)})});
-//# sourceMappingURL=xrange.js.map

File diff suppressed because it is too large
+ 0 - 5
nicegui/elements/lib/mermaid.min.js


File diff suppressed because it is too large
+ 0 - 6
nicegui/elements/lib/nipplejs.min.js


File diff suppressed because it is too large
+ 0 - 7
nicegui/elements/lib/plotly.min.js


File diff suppressed because it is too large
+ 0 - 6
nicegui/elements/lib/three.min.js


File diff suppressed because it is too large
+ 0 - 0
nicegui/elements/lib/tween.umd.min.js


File diff suppressed because it is too large
+ 0 - 0
nicegui/static/quasar.prod.css


File diff suppressed because it is too large
+ 0 - 5
nicegui/static/quasar.umd.prod.js


File diff suppressed because it is too large
+ 0 - 5
nicegui/static/socket.io.min.js


File diff suppressed because it is too large
+ 0 - 0
nicegui/static/tailwindcss.min.js


File diff suppressed because it is too large
+ 0 - 0
nicegui/static/vue.global.prod.js


File diff suppressed because it is too large
+ 0 - 10
nicegui/static/vue.min.js


Some files were not shown because too many files changed in this diff