@oliasoft-open-source/charts-library 5.1.2-beta-2 → 5.1.3-beta-1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{Color-YHDXOIA2-D1T4LLq8.js → Color-YHDXOIA2-DEnNfpCW.js} +1 -1
- package/dist/assets/{DocsRenderer-CFRXHY34-D6Q7Fl4L.js → DocsRenderer-CFRXHY34-DTCab5IO.js} +3 -3
- package/dist/assets/{bar-chart.stories-5CuN6VFG.js → bar-chart.stories-VGzn34XP.js} +1 -1
- package/dist/assets/{entry-preview-D2nZ6Uy3.js → entry-preview-4gG_UrYS.js} +1 -1
- package/dist/assets/{get-draggableData-eD2Xdq-6.js → get-draggableData-YBXdJsiL.js} +1 -1
- package/dist/assets/{iframe-BRmCfBZj.js → iframe-B2stFq14.js} +2 -2
- package/dist/assets/{legend-Cgq98xea.js → legend-CqbLApjH.js} +88 -88
- package/dist/assets/{legend-context-PSa8HhGj.js → legend-context-BxOj5cqZ.js} +12 -12
- package/dist/assets/line-chart-s6Pcykw6.js +6 -0
- package/dist/assets/{line-chart.stories-yZbOjEZw.js → line-chart.stories-DtSsEZxs.js} +1 -1
- package/dist/assets/{line-chart.test-case.stories-KRbhVyto.js → line-chart.test-case.stories-xlTui9yd.js} +1 -1
- package/dist/assets/{pie-chart.stories-C3l9VGYJ.js → pie-chart.stories-2vnB-vlk.js} +1 -1
- package/dist/assets/{preview-THptAU8l.js → preview-CJAxl3Xt.js} +1 -1
- package/dist/assets/{preview-OTEdgn42.js → preview-DGypqa2Q.js} +2 -2
- package/dist/assets/{scatter-chart.stories-U-tLziOZ.js → scatter-chart.stories-mTVN52nb.js} +1 -1
- package/dist/common/common.interface.d.ts +1 -0
- package/dist/common/legend-component/state/legend-state-reducer.d.ts +2 -1
- package/dist/iframe.html +1 -1
- package/dist/index.js +849 -32
- package/dist/line-chart/utils/line-chart-utils.d.ts +1 -13
- package/dist/pie-chart/use-pie-chart-config.d.ts +3 -2
- package/dist/project.json +1 -1
- package/dist/src/components/common/common.interface.d.ts +1 -0
- package/dist/src/components/common/legend-component/state/legend-state-reducer.d.ts +2 -1
- package/dist/src/components/line-chart/utils/line-chart-utils.d.ts +1 -13
- package/dist/src/components/pie-chart/use-pie-chart-config.d.ts +3 -2
- package/package.json +3 -1
- package/dist/assets/line-chart-DQPiqg-c.js +0 -1
package/dist/index.js
CHANGED
|
@@ -7,7 +7,7 @@ import * as React from "react";
|
|
|
7
7
|
import React__default, { forwardRef, useRef, useEffect, createContext as createContext$1, memo, useLayoutEffect, useState, useCallback, useMemo, isValidElement, cloneElement, useContext, useReducer } from "react";
|
|
8
8
|
import { round as round$1, displayNumber, isCloseTo, roundByMagnitude } from "@oliasoft-open-source/units";
|
|
9
9
|
import cx from "classnames";
|
|
10
|
-
import { isEmpty, isNil, startCase, isArray as isArray$1, some, has, cloneDeep, defaultTo,
|
|
10
|
+
import { isEmpty, isNil, startCase, isArray as isArray$1, some, has, cloneDeep, defaultTo, set as set$1, findIndex, debounce as debounce$2, map as map$2, find, get as get$1, noop as noop$2 } from "lodash";
|
|
11
11
|
import { produce } from "immer";
|
|
12
12
|
import { Portal, Icon, Menu, Tooltip as Tooltip$1, Button, Popover, Field, InputGroup, NumberInput, InputGroupAddon, Select, ButtonGroup, Spacer, Flex, Text } from "@oliasoft-open-source/react-ui-library";
|
|
13
13
|
/*!
|
|
@@ -22993,44 +22993,55 @@ const computeEllipseGeometry = (ellipsePoints, xScale, yScale) => {
|
|
|
22993
22993
|
const cy = yScale.getPixelForValue(centerY);
|
|
22994
22994
|
return { cx: cx2, cy, radiusX, radiusY, angle };
|
|
22995
22995
|
};
|
|
22996
|
+
const shouldExecute = (chart2) => {
|
|
22997
|
+
return chart2.data.datasets.some(
|
|
22998
|
+
(dataset) => dataset.data.some(
|
|
22999
|
+
(item) => !!item.ellipsePoints
|
|
23000
|
+
)
|
|
23001
|
+
);
|
|
23002
|
+
};
|
|
22996
23003
|
const ellipsisAnnotationPlugin = {
|
|
22997
23004
|
id: "ellipsisAnnotationPlugin",
|
|
22998
23005
|
afterDatasetsDraw(chart2) {
|
|
22999
|
-
var _a2, _b2;
|
|
23006
|
+
var _a2, _b2, _c, _d, _e, _f, _g, _h, _i;
|
|
23007
|
+
if (!shouldExecute(chart2)) return;
|
|
23000
23008
|
const ctx = chart2 == null ? void 0 : chart2.ctx;
|
|
23001
23009
|
const xScale = (_a2 = chart2 == null ? void 0 : chart2.scales) == null ? void 0 : _a2.x;
|
|
23002
23010
|
const yScale = (_b2 = chart2 == null ? void 0 : chart2.scales) == null ? void 0 : _b2.y;
|
|
23003
|
-
ctx.save();
|
|
23004
23011
|
const chartArea = chart2 == null ? void 0 : chart2.chartArea;
|
|
23005
|
-
if (chartArea)
|
|
23006
|
-
|
|
23007
|
-
|
|
23008
|
-
|
|
23009
|
-
|
|
23010
|
-
|
|
23011
|
-
|
|
23012
|
-
|
|
23013
|
-
|
|
23014
|
-
|
|
23015
|
-
|
|
23012
|
+
if (!xScale || !yScale || !chartArea) return;
|
|
23013
|
+
(_c = ctx == null ? void 0 : ctx.save) == null ? void 0 : _c.call(ctx);
|
|
23014
|
+
(_d = ctx == null ? void 0 : ctx.beginPath) == null ? void 0 : _d.call(ctx);
|
|
23015
|
+
(_e = ctx == null ? void 0 : ctx.rect) == null ? void 0 : _e.call(
|
|
23016
|
+
ctx,
|
|
23017
|
+
chartArea.left,
|
|
23018
|
+
chartArea.top,
|
|
23019
|
+
chartArea.right - chartArea.left,
|
|
23020
|
+
chartArea.bottom - chartArea.top
|
|
23021
|
+
);
|
|
23022
|
+
(_f = ctx == null ? void 0 : ctx.clip) == null ? void 0 : _f.call(ctx);
|
|
23023
|
+
(_h = (_g = chart2 == null ? void 0 : chart2.data) == null ? void 0 : _g.datasets) == null ? void 0 : _h.forEach((dataset) => {
|
|
23024
|
+
var _a3;
|
|
23016
23025
|
const customDataset = dataset;
|
|
23017
|
-
customDataset.data.forEach((item) => {
|
|
23018
|
-
|
|
23026
|
+
(_a3 = customDataset == null ? void 0 : customDataset.data) == null ? void 0 : _a3.forEach((item) => {
|
|
23027
|
+
var _a4, _b3, _c2, _d2, _e2;
|
|
23028
|
+
const { ellipsePoints } = item ?? {};
|
|
23019
23029
|
if (!ellipsePoints) return;
|
|
23020
23030
|
const { cx: cx2, cy, radiusX, radiusY, angle } = computeEllipseGeometry(
|
|
23021
23031
|
ellipsePoints,
|
|
23022
23032
|
xScale,
|
|
23023
23033
|
yScale
|
|
23024
23034
|
);
|
|
23025
|
-
ctx.save();
|
|
23026
|
-
ctx.beginPath();
|
|
23027
|
-
ctx.ellipse(cx2, cy, radiusX, radiusY, angle, 0, 2 * Math.PI);
|
|
23035
|
+
(_a4 = ctx == null ? void 0 : ctx.save) == null ? void 0 : _a4.call(ctx);
|
|
23036
|
+
(_b3 = ctx == null ? void 0 : ctx.beginPath) == null ? void 0 : _b3.call(ctx);
|
|
23037
|
+
(_c2 = ctx == null ? void 0 : ctx.ellipse) == null ? void 0 : _c2.call(ctx, cx2, cy, radiusX, radiusY, angle, 0, 2 * Math.PI);
|
|
23028
23038
|
ctx.strokeStyle = customDataset.borderColor || DEFAULT_COLOR;
|
|
23029
23039
|
ctx.lineWidth = customDataset.borderWidth || 1;
|
|
23030
|
-
ctx.stroke();
|
|
23031
|
-
ctx.restore();
|
|
23040
|
+
(_d2 = ctx == null ? void 0 : ctx.stroke) == null ? void 0 : _d2.call(ctx);
|
|
23041
|
+
(_e2 = ctx == null ? void 0 : ctx.restore) == null ? void 0 : _e2.call(ctx);
|
|
23032
23042
|
});
|
|
23033
23043
|
});
|
|
23044
|
+
(_i = ctx == null ? void 0 : ctx.restore) == null ? void 0 : _i.call(ctx);
|
|
23034
23045
|
}
|
|
23035
23046
|
};
|
|
23036
23047
|
const chart$3 = "_chart_e3qdd_1";
|
|
@@ -24570,6 +24581,800 @@ const downloadPgn = (chartRef) => {
|
|
|
24570
24581
|
console.error("Could not parse the html: ", e2);
|
|
24571
24582
|
});
|
|
24572
24583
|
};
|
|
24584
|
+
function commonjsRequire(path) {
|
|
24585
|
+
throw new Error('Could not dynamically require "' + path + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
24586
|
+
}
|
|
24587
|
+
var object_hash = { exports: {} };
|
|
24588
|
+
var hasRequiredObject_hash;
|
|
24589
|
+
function requireObject_hash() {
|
|
24590
|
+
if (hasRequiredObject_hash) return object_hash.exports;
|
|
24591
|
+
hasRequiredObject_hash = 1;
|
|
24592
|
+
(function(module, exports) {
|
|
24593
|
+
!function(e2) {
|
|
24594
|
+
module.exports = e2();
|
|
24595
|
+
}(function() {
|
|
24596
|
+
return function r2(o2, i2, u2) {
|
|
24597
|
+
function s2(n2, e3) {
|
|
24598
|
+
if (!i2[n2]) {
|
|
24599
|
+
if (!o2[n2]) {
|
|
24600
|
+
var t = "function" == typeof commonjsRequire && commonjsRequire;
|
|
24601
|
+
if (!e3 && t) return t(n2, true);
|
|
24602
|
+
if (a2) return a2(n2, true);
|
|
24603
|
+
throw new Error("Cannot find module '" + n2 + "'");
|
|
24604
|
+
}
|
|
24605
|
+
e3 = i2[n2] = { exports: {} };
|
|
24606
|
+
o2[n2][0].call(e3.exports, function(e4) {
|
|
24607
|
+
var t2 = o2[n2][1][e4];
|
|
24608
|
+
return s2(t2 || e4);
|
|
24609
|
+
}, e3, e3.exports, r2, o2, i2, u2);
|
|
24610
|
+
}
|
|
24611
|
+
return i2[n2].exports;
|
|
24612
|
+
}
|
|
24613
|
+
for (var a2 = "function" == typeof commonjsRequire && commonjsRequire, e2 = 0; e2 < u2.length; e2++) s2(u2[e2]);
|
|
24614
|
+
return s2;
|
|
24615
|
+
}({ 1: [function(w2, b2, m2) {
|
|
24616
|
+
!(function(e2, n2, s2, c2, d2, h3, p2, g2, y2) {
|
|
24617
|
+
var r2 = w2("crypto");
|
|
24618
|
+
function t(e3, t2) {
|
|
24619
|
+
t2 = u2(e3, t2);
|
|
24620
|
+
var n3;
|
|
24621
|
+
return void 0 === (n3 = "passthrough" !== t2.algorithm ? r2.createHash(t2.algorithm) : new l2()).write && (n3.write = n3.update, n3.end = n3.update), f2(t2, n3).dispatch(e3), n3.update || n3.end(""), n3.digest ? n3.digest("buffer" === t2.encoding ? void 0 : t2.encoding) : (e3 = n3.read(), "buffer" !== t2.encoding ? e3.toString(t2.encoding) : e3);
|
|
24622
|
+
}
|
|
24623
|
+
(m2 = b2.exports = t).sha1 = function(e3) {
|
|
24624
|
+
return t(e3);
|
|
24625
|
+
}, m2.keys = function(e3) {
|
|
24626
|
+
return t(e3, { excludeValues: true, algorithm: "sha1", encoding: "hex" });
|
|
24627
|
+
}, m2.MD5 = function(e3) {
|
|
24628
|
+
return t(e3, { algorithm: "md5", encoding: "hex" });
|
|
24629
|
+
}, m2.keysMD5 = function(e3) {
|
|
24630
|
+
return t(e3, { algorithm: "md5", encoding: "hex", excludeValues: true });
|
|
24631
|
+
};
|
|
24632
|
+
var o2 = r2.getHashes ? r2.getHashes().slice() : ["sha1", "md5"], i2 = (o2.push("passthrough"), ["buffer", "hex", "binary", "base64"]);
|
|
24633
|
+
function u2(e3, t2) {
|
|
24634
|
+
var n3 = {};
|
|
24635
|
+
if (n3.algorithm = (t2 = t2 || {}).algorithm || "sha1", n3.encoding = t2.encoding || "hex", n3.excludeValues = !!t2.excludeValues, n3.algorithm = n3.algorithm.toLowerCase(), n3.encoding = n3.encoding.toLowerCase(), n3.ignoreUnknown = true === t2.ignoreUnknown, n3.respectType = false !== t2.respectType, n3.respectFunctionNames = false !== t2.respectFunctionNames, n3.respectFunctionProperties = false !== t2.respectFunctionProperties, n3.unorderedArrays = true === t2.unorderedArrays, n3.unorderedSets = false !== t2.unorderedSets, n3.unorderedObjects = false !== t2.unorderedObjects, n3.replacer = t2.replacer || void 0, n3.excludeKeys = t2.excludeKeys || void 0, void 0 === e3) throw new Error("Object argument required.");
|
|
24636
|
+
for (var r3 = 0; r3 < o2.length; ++r3) o2[r3].toLowerCase() === n3.algorithm.toLowerCase() && (n3.algorithm = o2[r3]);
|
|
24637
|
+
if (-1 === o2.indexOf(n3.algorithm)) throw new Error('Algorithm "' + n3.algorithm + '" not supported. supported values: ' + o2.join(", "));
|
|
24638
|
+
if (-1 === i2.indexOf(n3.encoding) && "passthrough" !== n3.algorithm) throw new Error('Encoding "' + n3.encoding + '" not supported. supported values: ' + i2.join(", "));
|
|
24639
|
+
return n3;
|
|
24640
|
+
}
|
|
24641
|
+
function a2(e3) {
|
|
24642
|
+
if ("function" == typeof e3) return null != /^function\s+\w*\s*\(\s*\)\s*{\s+\[native code\]\s+}$/i.exec(Function.prototype.toString.call(e3));
|
|
24643
|
+
}
|
|
24644
|
+
function f2(o3, t2, i3) {
|
|
24645
|
+
i3 = i3 || [];
|
|
24646
|
+
function u3(e3) {
|
|
24647
|
+
return t2.update ? t2.update(e3, "utf8") : t2.write(e3, "utf8");
|
|
24648
|
+
}
|
|
24649
|
+
return { dispatch: function(e3) {
|
|
24650
|
+
return this["_" + (null === (e3 = o3.replacer ? o3.replacer(e3) : e3) ? "null" : typeof e3)](e3);
|
|
24651
|
+
}, _object: function(t3) {
|
|
24652
|
+
var n3, e3 = Object.prototype.toString.call(t3), r3 = /\[object (.*)\]/i.exec(e3);
|
|
24653
|
+
r3 = (r3 = r3 ? r3[1] : "unknown:[" + e3 + "]").toLowerCase();
|
|
24654
|
+
if (0 <= (e3 = i3.indexOf(t3))) return this.dispatch("[CIRCULAR:" + e3 + "]");
|
|
24655
|
+
if (i3.push(t3), void 0 !== s2 && s2.isBuffer && s2.isBuffer(t3)) return u3("buffer:"), u3(t3);
|
|
24656
|
+
if ("object" === r3 || "function" === r3 || "asyncfunction" === r3) return e3 = Object.keys(t3), o3.unorderedObjects && (e3 = e3.sort()), false === o3.respectType || a2(t3) || e3.splice(0, 0, "prototype", "__proto__", "constructor"), o3.excludeKeys && (e3 = e3.filter(function(e4) {
|
|
24657
|
+
return !o3.excludeKeys(e4);
|
|
24658
|
+
})), u3("object:" + e3.length + ":"), n3 = this, e3.forEach(function(e4) {
|
|
24659
|
+
n3.dispatch(e4), u3(":"), o3.excludeValues || n3.dispatch(t3[e4]), u3(",");
|
|
24660
|
+
});
|
|
24661
|
+
if (!this["_" + r3]) {
|
|
24662
|
+
if (o3.ignoreUnknown) return u3("[" + r3 + "]");
|
|
24663
|
+
throw new Error('Unknown object type "' + r3 + '"');
|
|
24664
|
+
}
|
|
24665
|
+
this["_" + r3](t3);
|
|
24666
|
+
}, _array: function(e3, t3) {
|
|
24667
|
+
t3 = void 0 !== t3 ? t3 : false !== o3.unorderedArrays;
|
|
24668
|
+
var n3 = this;
|
|
24669
|
+
if (u3("array:" + e3.length + ":"), !t3 || e3.length <= 1) return e3.forEach(function(e4) {
|
|
24670
|
+
return n3.dispatch(e4);
|
|
24671
|
+
});
|
|
24672
|
+
var r3 = [], t3 = e3.map(function(e4) {
|
|
24673
|
+
var t4 = new l2(), n4 = i3.slice();
|
|
24674
|
+
return f2(o3, t4, n4).dispatch(e4), r3 = r3.concat(n4.slice(i3.length)), t4.read().toString();
|
|
24675
|
+
});
|
|
24676
|
+
return i3 = i3.concat(r3), t3.sort(), this._array(t3, false);
|
|
24677
|
+
}, _date: function(e3) {
|
|
24678
|
+
return u3("date:" + e3.toJSON());
|
|
24679
|
+
}, _symbol: function(e3) {
|
|
24680
|
+
return u3("symbol:" + e3.toString());
|
|
24681
|
+
}, _error: function(e3) {
|
|
24682
|
+
return u3("error:" + e3.toString());
|
|
24683
|
+
}, _boolean: function(e3) {
|
|
24684
|
+
return u3("bool:" + e3.toString());
|
|
24685
|
+
}, _string: function(e3) {
|
|
24686
|
+
u3("string:" + e3.length + ":"), u3(e3.toString());
|
|
24687
|
+
}, _function: function(e3) {
|
|
24688
|
+
u3("fn:"), a2(e3) ? this.dispatch("[native]") : this.dispatch(e3.toString()), false !== o3.respectFunctionNames && this.dispatch("function-name:" + String(e3.name)), o3.respectFunctionProperties && this._object(e3);
|
|
24689
|
+
}, _number: function(e3) {
|
|
24690
|
+
return u3("number:" + e3.toString());
|
|
24691
|
+
}, _xml: function(e3) {
|
|
24692
|
+
return u3("xml:" + e3.toString());
|
|
24693
|
+
}, _null: function() {
|
|
24694
|
+
return u3("Null");
|
|
24695
|
+
}, _undefined: function() {
|
|
24696
|
+
return u3("Undefined");
|
|
24697
|
+
}, _regexp: function(e3) {
|
|
24698
|
+
return u3("regex:" + e3.toString());
|
|
24699
|
+
}, _uint8array: function(e3) {
|
|
24700
|
+
return u3("uint8array:"), this.dispatch(Array.prototype.slice.call(e3));
|
|
24701
|
+
}, _uint8clampedarray: function(e3) {
|
|
24702
|
+
return u3("uint8clampedarray:"), this.dispatch(Array.prototype.slice.call(e3));
|
|
24703
|
+
}, _int8array: function(e3) {
|
|
24704
|
+
return u3("int8array:"), this.dispatch(Array.prototype.slice.call(e3));
|
|
24705
|
+
}, _uint16array: function(e3) {
|
|
24706
|
+
return u3("uint16array:"), this.dispatch(Array.prototype.slice.call(e3));
|
|
24707
|
+
}, _int16array: function(e3) {
|
|
24708
|
+
return u3("int16array:"), this.dispatch(Array.prototype.slice.call(e3));
|
|
24709
|
+
}, _uint32array: function(e3) {
|
|
24710
|
+
return u3("uint32array:"), this.dispatch(Array.prototype.slice.call(e3));
|
|
24711
|
+
}, _int32array: function(e3) {
|
|
24712
|
+
return u3("int32array:"), this.dispatch(Array.prototype.slice.call(e3));
|
|
24713
|
+
}, _float32array: function(e3) {
|
|
24714
|
+
return u3("float32array:"), this.dispatch(Array.prototype.slice.call(e3));
|
|
24715
|
+
}, _float64array: function(e3) {
|
|
24716
|
+
return u3("float64array:"), this.dispatch(Array.prototype.slice.call(e3));
|
|
24717
|
+
}, _arraybuffer: function(e3) {
|
|
24718
|
+
return u3("arraybuffer:"), this.dispatch(new Uint8Array(e3));
|
|
24719
|
+
}, _url: function(e3) {
|
|
24720
|
+
return u3("url:" + e3.toString());
|
|
24721
|
+
}, _map: function(e3) {
|
|
24722
|
+
u3("map:");
|
|
24723
|
+
e3 = Array.from(e3);
|
|
24724
|
+
return this._array(e3, false !== o3.unorderedSets);
|
|
24725
|
+
}, _set: function(e3) {
|
|
24726
|
+
u3("set:");
|
|
24727
|
+
e3 = Array.from(e3);
|
|
24728
|
+
return this._array(e3, false !== o3.unorderedSets);
|
|
24729
|
+
}, _file: function(e3) {
|
|
24730
|
+
return u3("file:"), this.dispatch([e3.name, e3.size, e3.type, e3.lastModfied]);
|
|
24731
|
+
}, _blob: function() {
|
|
24732
|
+
if (o3.ignoreUnknown) return u3("[blob]");
|
|
24733
|
+
throw Error('Hashing Blob objects is currently not supported\n(see https://github.com/puleos/object-hash/issues/26)\nUse "options.replacer" or "options.ignoreUnknown"\n');
|
|
24734
|
+
}, _domwindow: function() {
|
|
24735
|
+
return u3("domwindow");
|
|
24736
|
+
}, _bigint: function(e3) {
|
|
24737
|
+
return u3("bigint:" + e3.toString());
|
|
24738
|
+
}, _process: function() {
|
|
24739
|
+
return u3("process");
|
|
24740
|
+
}, _timer: function() {
|
|
24741
|
+
return u3("timer");
|
|
24742
|
+
}, _pipe: function() {
|
|
24743
|
+
return u3("pipe");
|
|
24744
|
+
}, _tcp: function() {
|
|
24745
|
+
return u3("tcp");
|
|
24746
|
+
}, _udp: function() {
|
|
24747
|
+
return u3("udp");
|
|
24748
|
+
}, _tty: function() {
|
|
24749
|
+
return u3("tty");
|
|
24750
|
+
}, _statwatcher: function() {
|
|
24751
|
+
return u3("statwatcher");
|
|
24752
|
+
}, _securecontext: function() {
|
|
24753
|
+
return u3("securecontext");
|
|
24754
|
+
}, _connection: function() {
|
|
24755
|
+
return u3("connection");
|
|
24756
|
+
}, _zlib: function() {
|
|
24757
|
+
return u3("zlib");
|
|
24758
|
+
}, _context: function() {
|
|
24759
|
+
return u3("context");
|
|
24760
|
+
}, _nodescript: function() {
|
|
24761
|
+
return u3("nodescript");
|
|
24762
|
+
}, _httpparser: function() {
|
|
24763
|
+
return u3("httpparser");
|
|
24764
|
+
}, _dataview: function() {
|
|
24765
|
+
return u3("dataview");
|
|
24766
|
+
}, _signal: function() {
|
|
24767
|
+
return u3("signal");
|
|
24768
|
+
}, _fsevent: function() {
|
|
24769
|
+
return u3("fsevent");
|
|
24770
|
+
}, _tlswrap: function() {
|
|
24771
|
+
return u3("tlswrap");
|
|
24772
|
+
} };
|
|
24773
|
+
}
|
|
24774
|
+
function l2() {
|
|
24775
|
+
return { buf: "", write: function(e3) {
|
|
24776
|
+
this.buf += e3;
|
|
24777
|
+
}, end: function(e3) {
|
|
24778
|
+
this.buf += e3;
|
|
24779
|
+
}, read: function() {
|
|
24780
|
+
return this.buf;
|
|
24781
|
+
} };
|
|
24782
|
+
}
|
|
24783
|
+
m2.writeToStream = function(e3, t2, n3) {
|
|
24784
|
+
return void 0 === n3 && (n3 = t2, t2 = {}), f2(t2 = u2(e3, t2), n3).dispatch(e3);
|
|
24785
|
+
};
|
|
24786
|
+
}).call(this, w2("lYpoI2"), "undefined" != typeof self ? self : "undefined" != typeof window ? window : {}, w2("buffer").Buffer, arguments[3], arguments[4], arguments[5], arguments[6], "/fake_9a5aa49d.js", "/");
|
|
24787
|
+
}, { buffer: 3, crypto: 5, lYpoI2: 11 }], 2: [function(e2, t, f2) {
|
|
24788
|
+
!(function(e3, t2, n2, r2, o2, i2, u2, s2, a2) {
|
|
24789
|
+
!function(e4) {
|
|
24790
|
+
var a3 = "undefined" != typeof Uint8Array ? Uint8Array : Array, t3 = "+".charCodeAt(0), n3 = "/".charCodeAt(0), r3 = "0".charCodeAt(0), o3 = "a".charCodeAt(0), i3 = "A".charCodeAt(0), u3 = "-".charCodeAt(0), s3 = "_".charCodeAt(0);
|
|
24791
|
+
function f3(e5) {
|
|
24792
|
+
e5 = e5.charCodeAt(0);
|
|
24793
|
+
return e5 === t3 || e5 === u3 ? 62 : e5 === n3 || e5 === s3 ? 63 : e5 < r3 ? -1 : e5 < r3 + 10 ? e5 - r3 + 26 + 26 : e5 < i3 + 26 ? e5 - i3 : e5 < o3 + 26 ? e5 - o3 + 26 : void 0;
|
|
24794
|
+
}
|
|
24795
|
+
e4.toByteArray = function(e5) {
|
|
24796
|
+
var t4, n4;
|
|
24797
|
+
if (0 < e5.length % 4) throw new Error("Invalid string. Length must be a multiple of 4");
|
|
24798
|
+
var r4 = e5.length, r4 = "=" === e5.charAt(r4 - 2) ? 2 : "=" === e5.charAt(r4 - 1) ? 1 : 0, o4 = new a3(3 * e5.length / 4 - r4), i4 = 0 < r4 ? e5.length - 4 : e5.length, u4 = 0;
|
|
24799
|
+
function s4(e6) {
|
|
24800
|
+
o4[u4++] = e6;
|
|
24801
|
+
}
|
|
24802
|
+
for (t4 = 0; t4 < i4; t4 += 4, 0) s4((16711680 & (n4 = f3(e5.charAt(t4)) << 18 | f3(e5.charAt(t4 + 1)) << 12 | f3(e5.charAt(t4 + 2)) << 6 | f3(e5.charAt(t4 + 3)))) >> 16), s4((65280 & n4) >> 8), s4(255 & n4);
|
|
24803
|
+
return 2 == r4 ? s4(255 & (n4 = f3(e5.charAt(t4)) << 2 | f3(e5.charAt(t4 + 1)) >> 4)) : 1 == r4 && (s4((n4 = f3(e5.charAt(t4)) << 10 | f3(e5.charAt(t4 + 1)) << 4 | f3(e5.charAt(t4 + 2)) >> 2) >> 8 & 255), s4(255 & n4)), o4;
|
|
24804
|
+
}, e4.fromByteArray = function(e5) {
|
|
24805
|
+
var t4, n4, r4, o4, i4 = e5.length % 3, u4 = "";
|
|
24806
|
+
function s4(e6) {
|
|
24807
|
+
return "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(e6);
|
|
24808
|
+
}
|
|
24809
|
+
for (t4 = 0, r4 = e5.length - i4; t4 < r4; t4 += 3) n4 = (e5[t4] << 16) + (e5[t4 + 1] << 8) + e5[t4 + 2], u4 += s4((o4 = n4) >> 18 & 63) + s4(o4 >> 12 & 63) + s4(o4 >> 6 & 63) + s4(63 & o4);
|
|
24810
|
+
switch (i4) {
|
|
24811
|
+
case 1:
|
|
24812
|
+
u4 = (u4 += s4((n4 = e5[e5.length - 1]) >> 2)) + s4(n4 << 4 & 63) + "==";
|
|
24813
|
+
break;
|
|
24814
|
+
case 2:
|
|
24815
|
+
u4 = (u4 = (u4 += s4((n4 = (e5[e5.length - 2] << 8) + e5[e5.length - 1]) >> 10)) + s4(n4 >> 4 & 63)) + s4(n4 << 2 & 63) + "=";
|
|
24816
|
+
}
|
|
24817
|
+
return u4;
|
|
24818
|
+
};
|
|
24819
|
+
}(void 0 === f2 ? this.base64js = {} : f2);
|
|
24820
|
+
}).call(this, e2("lYpoI2"), "undefined" != typeof self ? self : "undefined" != typeof window ? window : {}, e2("buffer").Buffer, arguments[3], arguments[4], arguments[5], arguments[6], "/node_modules/gulp-browserify/node_modules/base64-js/lib/b64.js", "/node_modules/gulp-browserify/node_modules/base64-js/lib");
|
|
24821
|
+
}, { buffer: 3, lYpoI2: 11 }], 3: [function(O2, e2, H2) {
|
|
24822
|
+
!(function(e3, n2, f2, r2, h3, p2, g2, y2, w2) {
|
|
24823
|
+
var a2 = O2("base64-js"), i2 = O2("ieee754");
|
|
24824
|
+
function f2(e4, t2, n3) {
|
|
24825
|
+
if (!(this instanceof f2)) return new f2(e4, t2, n3);
|
|
24826
|
+
var r3, o3, i3, u3, s3 = typeof e4;
|
|
24827
|
+
if ("base64" === t2 && "string" == s3) for (e4 = (u3 = e4).trim ? u3.trim() : u3.replace(/^\s+|\s+$/g, ""); e4.length % 4 != 0; ) e4 += "=";
|
|
24828
|
+
if ("number" == s3) r3 = j2(e4);
|
|
24829
|
+
else if ("string" == s3) r3 = f2.byteLength(e4, t2);
|
|
24830
|
+
else {
|
|
24831
|
+
if ("object" != s3) throw new Error("First argument needs to be a number, array or string.");
|
|
24832
|
+
r3 = j2(e4.length);
|
|
24833
|
+
}
|
|
24834
|
+
if (f2._useTypedArrays ? o3 = f2._augment(new Uint8Array(r3)) : ((o3 = this).length = r3, o3._isBuffer = true), f2._useTypedArrays && "number" == typeof e4.byteLength) o3._set(e4);
|
|
24835
|
+
else if (C2(u3 = e4) || f2.isBuffer(u3) || u3 && "object" == typeof u3 && "number" == typeof u3.length) for (i3 = 0; i3 < r3; i3++) f2.isBuffer(e4) ? o3[i3] = e4.readUInt8(i3) : o3[i3] = e4[i3];
|
|
24836
|
+
else if ("string" == s3) o3.write(e4, 0, t2);
|
|
24837
|
+
else if ("number" == s3 && !f2._useTypedArrays && !n3) for (i3 = 0; i3 < r3; i3++) o3[i3] = 0;
|
|
24838
|
+
return o3;
|
|
24839
|
+
}
|
|
24840
|
+
function b2(e4, t2, n3, r3) {
|
|
24841
|
+
return f2._charsWritten = c2(function(e5) {
|
|
24842
|
+
for (var t3 = [], n4 = 0; n4 < e5.length; n4++) t3.push(255 & e5.charCodeAt(n4));
|
|
24843
|
+
return t3;
|
|
24844
|
+
}(t2), e4, n3, r3);
|
|
24845
|
+
}
|
|
24846
|
+
function m2(e4, t2, n3, r3) {
|
|
24847
|
+
return f2._charsWritten = c2(function(e5) {
|
|
24848
|
+
for (var t3, n4, r4 = [], o3 = 0; o3 < e5.length; o3++) n4 = e5.charCodeAt(o3), t3 = n4 >> 8, n4 = n4 % 256, r4.push(n4), r4.push(t3);
|
|
24849
|
+
return r4;
|
|
24850
|
+
}(t2), e4, n3, r3);
|
|
24851
|
+
}
|
|
24852
|
+
function v2(e4, t2, n3) {
|
|
24853
|
+
var r3 = "";
|
|
24854
|
+
n3 = Math.min(e4.length, n3);
|
|
24855
|
+
for (var o3 = t2; o3 < n3; o3++) r3 += String.fromCharCode(e4[o3]);
|
|
24856
|
+
return r3;
|
|
24857
|
+
}
|
|
24858
|
+
function o2(e4, t2, n3, r3) {
|
|
24859
|
+
r3 || (d2("boolean" == typeof n3, "missing or invalid endian"), d2(null != t2, "missing offset"), d2(t2 + 1 < e4.length, "Trying to read beyond buffer length"));
|
|
24860
|
+
var o3, r3 = e4.length;
|
|
24861
|
+
if (!(r3 <= t2)) return n3 ? (o3 = e4[t2], t2 + 1 < r3 && (o3 |= e4[t2 + 1] << 8)) : (o3 = e4[t2] << 8, t2 + 1 < r3 && (o3 |= e4[t2 + 1])), o3;
|
|
24862
|
+
}
|
|
24863
|
+
function u2(e4, t2, n3, r3) {
|
|
24864
|
+
r3 || (d2("boolean" == typeof n3, "missing or invalid endian"), d2(null != t2, "missing offset"), d2(t2 + 3 < e4.length, "Trying to read beyond buffer length"));
|
|
24865
|
+
var o3, r3 = e4.length;
|
|
24866
|
+
if (!(r3 <= t2)) return n3 ? (t2 + 2 < r3 && (o3 = e4[t2 + 2] << 16), t2 + 1 < r3 && (o3 |= e4[t2 + 1] << 8), o3 |= e4[t2], t2 + 3 < r3 && (o3 += e4[t2 + 3] << 24 >>> 0)) : (t2 + 1 < r3 && (o3 = e4[t2 + 1] << 16), t2 + 2 < r3 && (o3 |= e4[t2 + 2] << 8), t2 + 3 < r3 && (o3 |= e4[t2 + 3]), o3 += e4[t2] << 24 >>> 0), o3;
|
|
24867
|
+
}
|
|
24868
|
+
function _2(e4, t2, n3, r3) {
|
|
24869
|
+
if (r3 || (d2("boolean" == typeof n3, "missing or invalid endian"), d2(null != t2, "missing offset"), d2(t2 + 1 < e4.length, "Trying to read beyond buffer length")), !(e4.length <= t2)) return r3 = o2(e4, t2, n3, true), 32768 & r3 ? -1 * (65535 - r3 + 1) : r3;
|
|
24870
|
+
}
|
|
24871
|
+
function E2(e4, t2, n3, r3) {
|
|
24872
|
+
if (r3 || (d2("boolean" == typeof n3, "missing or invalid endian"), d2(null != t2, "missing offset"), d2(t2 + 3 < e4.length, "Trying to read beyond buffer length")), !(e4.length <= t2)) return r3 = u2(e4, t2, n3, true), 2147483648 & r3 ? -1 * (4294967295 - r3 + 1) : r3;
|
|
24873
|
+
}
|
|
24874
|
+
function I2(e4, t2, n3, r3) {
|
|
24875
|
+
return r3 || (d2("boolean" == typeof n3, "missing or invalid endian"), d2(t2 + 3 < e4.length, "Trying to read beyond buffer length")), i2.read(e4, t2, n3, 23, 4);
|
|
24876
|
+
}
|
|
24877
|
+
function A2(e4, t2, n3, r3) {
|
|
24878
|
+
return r3 || (d2("boolean" == typeof n3, "missing or invalid endian"), d2(t2 + 7 < e4.length, "Trying to read beyond buffer length")), i2.read(e4, t2, n3, 52, 8);
|
|
24879
|
+
}
|
|
24880
|
+
function s2(e4, t2, n3, r3, o3) {
|
|
24881
|
+
o3 || (d2(null != t2, "missing value"), d2("boolean" == typeof r3, "missing or invalid endian"), d2(null != n3, "missing offset"), d2(n3 + 1 < e4.length, "trying to write beyond buffer length"), Y2(t2, 65535));
|
|
24882
|
+
o3 = e4.length;
|
|
24883
|
+
if (!(o3 <= n3)) for (var i3 = 0, u3 = Math.min(o3 - n3, 2); i3 < u3; i3++) e4[n3 + i3] = (t2 & 255 << 8 * (r3 ? i3 : 1 - i3)) >>> 8 * (r3 ? i3 : 1 - i3);
|
|
24884
|
+
}
|
|
24885
|
+
function l2(e4, t2, n3, r3, o3) {
|
|
24886
|
+
o3 || (d2(null != t2, "missing value"), d2("boolean" == typeof r3, "missing or invalid endian"), d2(null != n3, "missing offset"), d2(n3 + 3 < e4.length, "trying to write beyond buffer length"), Y2(t2, 4294967295));
|
|
24887
|
+
o3 = e4.length;
|
|
24888
|
+
if (!(o3 <= n3)) for (var i3 = 0, u3 = Math.min(o3 - n3, 4); i3 < u3; i3++) e4[n3 + i3] = t2 >>> 8 * (r3 ? i3 : 3 - i3) & 255;
|
|
24889
|
+
}
|
|
24890
|
+
function B2(e4, t2, n3, r3, o3) {
|
|
24891
|
+
o3 || (d2(null != t2, "missing value"), d2("boolean" == typeof r3, "missing or invalid endian"), d2(null != n3, "missing offset"), d2(n3 + 1 < e4.length, "Trying to write beyond buffer length"), F2(t2, 32767, -32768)), e4.length <= n3 || s2(e4, 0 <= t2 ? t2 : 65535 + t2 + 1, n3, r3, o3);
|
|
24892
|
+
}
|
|
24893
|
+
function L2(e4, t2, n3, r3, o3) {
|
|
24894
|
+
o3 || (d2(null != t2, "missing value"), d2("boolean" == typeof r3, "missing or invalid endian"), d2(null != n3, "missing offset"), d2(n3 + 3 < e4.length, "Trying to write beyond buffer length"), F2(t2, 2147483647, -2147483648)), e4.length <= n3 || l2(e4, 0 <= t2 ? t2 : 4294967295 + t2 + 1, n3, r3, o3);
|
|
24895
|
+
}
|
|
24896
|
+
function U2(e4, t2, n3, r3, o3) {
|
|
24897
|
+
o3 || (d2(null != t2, "missing value"), d2("boolean" == typeof r3, "missing or invalid endian"), d2(null != n3, "missing offset"), d2(n3 + 3 < e4.length, "Trying to write beyond buffer length"), D2(t2, 34028234663852886e22, -34028234663852886e22)), e4.length <= n3 || i2.write(e4, t2, n3, r3, 23, 4);
|
|
24898
|
+
}
|
|
24899
|
+
function x2(e4, t2, n3, r3, o3) {
|
|
24900
|
+
o3 || (d2(null != t2, "missing value"), d2("boolean" == typeof r3, "missing or invalid endian"), d2(null != n3, "missing offset"), d2(n3 + 7 < e4.length, "Trying to write beyond buffer length"), D2(t2, 17976931348623157e292, -17976931348623157e292)), e4.length <= n3 || i2.write(e4, t2, n3, r3, 52, 8);
|
|
24901
|
+
}
|
|
24902
|
+
H2.Buffer = f2, H2.SlowBuffer = f2, H2.INSPECT_MAX_BYTES = 50, f2.poolSize = 8192, f2._useTypedArrays = function() {
|
|
24903
|
+
try {
|
|
24904
|
+
var e4 = new ArrayBuffer(0), t2 = new Uint8Array(e4);
|
|
24905
|
+
return t2.foo = function() {
|
|
24906
|
+
return 42;
|
|
24907
|
+
}, 42 === t2.foo() && "function" == typeof t2.subarray;
|
|
24908
|
+
} catch (e5) {
|
|
24909
|
+
return false;
|
|
24910
|
+
}
|
|
24911
|
+
}(), f2.isEncoding = function(e4) {
|
|
24912
|
+
switch (String(e4).toLowerCase()) {
|
|
24913
|
+
case "hex":
|
|
24914
|
+
case "utf8":
|
|
24915
|
+
case "utf-8":
|
|
24916
|
+
case "ascii":
|
|
24917
|
+
case "binary":
|
|
24918
|
+
case "base64":
|
|
24919
|
+
case "raw":
|
|
24920
|
+
case "ucs2":
|
|
24921
|
+
case "ucs-2":
|
|
24922
|
+
case "utf16le":
|
|
24923
|
+
case "utf-16le":
|
|
24924
|
+
return true;
|
|
24925
|
+
default:
|
|
24926
|
+
return false;
|
|
24927
|
+
}
|
|
24928
|
+
}, f2.isBuffer = function(e4) {
|
|
24929
|
+
return !(null == e4 || !e4._isBuffer);
|
|
24930
|
+
}, f2.byteLength = function(e4, t2) {
|
|
24931
|
+
var n3;
|
|
24932
|
+
switch (e4 += "", t2 || "utf8") {
|
|
24933
|
+
case "hex":
|
|
24934
|
+
n3 = e4.length / 2;
|
|
24935
|
+
break;
|
|
24936
|
+
case "utf8":
|
|
24937
|
+
case "utf-8":
|
|
24938
|
+
n3 = T2(e4).length;
|
|
24939
|
+
break;
|
|
24940
|
+
case "ascii":
|
|
24941
|
+
case "binary":
|
|
24942
|
+
case "raw":
|
|
24943
|
+
n3 = e4.length;
|
|
24944
|
+
break;
|
|
24945
|
+
case "base64":
|
|
24946
|
+
n3 = M2(e4).length;
|
|
24947
|
+
break;
|
|
24948
|
+
case "ucs2":
|
|
24949
|
+
case "ucs-2":
|
|
24950
|
+
case "utf16le":
|
|
24951
|
+
case "utf-16le":
|
|
24952
|
+
n3 = 2 * e4.length;
|
|
24953
|
+
break;
|
|
24954
|
+
default:
|
|
24955
|
+
throw new Error("Unknown encoding");
|
|
24956
|
+
}
|
|
24957
|
+
return n3;
|
|
24958
|
+
}, f2.concat = function(e4, t2) {
|
|
24959
|
+
if (d2(C2(e4), "Usage: Buffer.concat(list, [totalLength])\nlist should be an Array."), 0 === e4.length) return new f2(0);
|
|
24960
|
+
if (1 === e4.length) return e4[0];
|
|
24961
|
+
if ("number" != typeof t2) for (o3 = t2 = 0; o3 < e4.length; o3++) t2 += e4[o3].length;
|
|
24962
|
+
for (var n3 = new f2(t2), r3 = 0, o3 = 0; o3 < e4.length; o3++) {
|
|
24963
|
+
var i3 = e4[o3];
|
|
24964
|
+
i3.copy(n3, r3), r3 += i3.length;
|
|
24965
|
+
}
|
|
24966
|
+
return n3;
|
|
24967
|
+
}, f2.prototype.write = function(e4, t2, n3, r3) {
|
|
24968
|
+
isFinite(t2) ? isFinite(n3) || (r3 = n3, n3 = void 0) : (a3 = r3, r3 = t2, t2 = n3, n3 = a3), t2 = Number(t2) || 0;
|
|
24969
|
+
var o3, i3, u3, s3, a3 = this.length - t2;
|
|
24970
|
+
switch ((!n3 || a3 < (n3 = Number(n3))) && (n3 = a3), r3 = String(r3 || "utf8").toLowerCase()) {
|
|
24971
|
+
case "hex":
|
|
24972
|
+
o3 = function(e5, t3, n4, r4) {
|
|
24973
|
+
n4 = Number(n4) || 0;
|
|
24974
|
+
var o4 = e5.length - n4;
|
|
24975
|
+
(!r4 || o4 < (r4 = Number(r4))) && (r4 = o4), d2((o4 = t3.length) % 2 == 0, "Invalid hex string"), o4 / 2 < r4 && (r4 = o4 / 2);
|
|
24976
|
+
for (var i4 = 0; i4 < r4; i4++) {
|
|
24977
|
+
var u4 = parseInt(t3.substr(2 * i4, 2), 16);
|
|
24978
|
+
d2(!isNaN(u4), "Invalid hex string"), e5[n4 + i4] = u4;
|
|
24979
|
+
}
|
|
24980
|
+
return f2._charsWritten = 2 * i4, i4;
|
|
24981
|
+
}(this, e4, t2, n3);
|
|
24982
|
+
break;
|
|
24983
|
+
case "utf8":
|
|
24984
|
+
case "utf-8":
|
|
24985
|
+
i3 = this, u3 = t2, s3 = n3, o3 = f2._charsWritten = c2(T2(e4), i3, u3, s3);
|
|
24986
|
+
break;
|
|
24987
|
+
case "ascii":
|
|
24988
|
+
case "binary":
|
|
24989
|
+
o3 = b2(this, e4, t2, n3);
|
|
24990
|
+
break;
|
|
24991
|
+
case "base64":
|
|
24992
|
+
i3 = this, u3 = t2, s3 = n3, o3 = f2._charsWritten = c2(M2(e4), i3, u3, s3);
|
|
24993
|
+
break;
|
|
24994
|
+
case "ucs2":
|
|
24995
|
+
case "ucs-2":
|
|
24996
|
+
case "utf16le":
|
|
24997
|
+
case "utf-16le":
|
|
24998
|
+
o3 = m2(this, e4, t2, n3);
|
|
24999
|
+
break;
|
|
25000
|
+
default:
|
|
25001
|
+
throw new Error("Unknown encoding");
|
|
25002
|
+
}
|
|
25003
|
+
return o3;
|
|
25004
|
+
}, f2.prototype.toString = function(e4, t2, n3) {
|
|
25005
|
+
var r3, o3, i3, u3, s3 = this;
|
|
25006
|
+
if (e4 = String(e4 || "utf8").toLowerCase(), t2 = Number(t2) || 0, (n3 = void 0 !== n3 ? Number(n3) : s3.length) === t2) return "";
|
|
25007
|
+
switch (e4) {
|
|
25008
|
+
case "hex":
|
|
25009
|
+
r3 = function(e5, t3, n4) {
|
|
25010
|
+
var r4 = e5.length;
|
|
25011
|
+
(!t3 || t3 < 0) && (t3 = 0);
|
|
25012
|
+
(!n4 || n4 < 0 || r4 < n4) && (n4 = r4);
|
|
25013
|
+
for (var o4 = "", i4 = t3; i4 < n4; i4++) o4 += k2(e5[i4]);
|
|
25014
|
+
return o4;
|
|
25015
|
+
}(s3, t2, n3);
|
|
25016
|
+
break;
|
|
25017
|
+
case "utf8":
|
|
25018
|
+
case "utf-8":
|
|
25019
|
+
r3 = function(e5, t3, n4) {
|
|
25020
|
+
var r4 = "", o4 = "";
|
|
25021
|
+
n4 = Math.min(e5.length, n4);
|
|
25022
|
+
for (var i4 = t3; i4 < n4; i4++) e5[i4] <= 127 ? (r4 += N2(o4) + String.fromCharCode(e5[i4]), o4 = "") : o4 += "%" + e5[i4].toString(16);
|
|
25023
|
+
return r4 + N2(o4);
|
|
25024
|
+
}(s3, t2, n3);
|
|
25025
|
+
break;
|
|
25026
|
+
case "ascii":
|
|
25027
|
+
case "binary":
|
|
25028
|
+
r3 = v2(s3, t2, n3);
|
|
25029
|
+
break;
|
|
25030
|
+
case "base64":
|
|
25031
|
+
o3 = s3, u3 = n3, r3 = 0 === (i3 = t2) && u3 === o3.length ? a2.fromByteArray(o3) : a2.fromByteArray(o3.slice(i3, u3));
|
|
25032
|
+
break;
|
|
25033
|
+
case "ucs2":
|
|
25034
|
+
case "ucs-2":
|
|
25035
|
+
case "utf16le":
|
|
25036
|
+
case "utf-16le":
|
|
25037
|
+
r3 = function(e5, t3, n4) {
|
|
25038
|
+
for (var r4 = e5.slice(t3, n4), o4 = "", i4 = 0; i4 < r4.length; i4 += 2) o4 += String.fromCharCode(r4[i4] + 256 * r4[i4 + 1]);
|
|
25039
|
+
return o4;
|
|
25040
|
+
}(s3, t2, n3);
|
|
25041
|
+
break;
|
|
25042
|
+
default:
|
|
25043
|
+
throw new Error("Unknown encoding");
|
|
25044
|
+
}
|
|
25045
|
+
return r3;
|
|
25046
|
+
}, f2.prototype.toJSON = function() {
|
|
25047
|
+
return { type: "Buffer", data: Array.prototype.slice.call(this._arr || this, 0) };
|
|
25048
|
+
}, f2.prototype.copy = function(e4, t2, n3, r3) {
|
|
25049
|
+
if (t2 = t2 || 0, (r3 = r3 || 0 === r3 ? r3 : this.length) !== (n3 = n3 || 0) && 0 !== e4.length && 0 !== this.length) {
|
|
25050
|
+
d2(n3 <= r3, "sourceEnd < sourceStart"), d2(0 <= t2 && t2 < e4.length, "targetStart out of bounds"), d2(0 <= n3 && n3 < this.length, "sourceStart out of bounds"), d2(0 <= r3 && r3 <= this.length, "sourceEnd out of bounds"), r3 > this.length && (r3 = this.length);
|
|
25051
|
+
var o3 = (r3 = e4.length - t2 < r3 - n3 ? e4.length - t2 + n3 : r3) - n3;
|
|
25052
|
+
if (o3 < 100 || !f2._useTypedArrays) for (var i3 = 0; i3 < o3; i3++) e4[i3 + t2] = this[i3 + n3];
|
|
25053
|
+
else e4._set(this.subarray(n3, n3 + o3), t2);
|
|
25054
|
+
}
|
|
25055
|
+
}, f2.prototype.slice = function(e4, t2) {
|
|
25056
|
+
var n3 = this.length;
|
|
25057
|
+
if (e4 = S2(e4, n3, 0), t2 = S2(t2, n3, n3), f2._useTypedArrays) return f2._augment(this.subarray(e4, t2));
|
|
25058
|
+
for (var r3 = t2 - e4, o3 = new f2(r3, void 0, true), i3 = 0; i3 < r3; i3++) o3[i3] = this[i3 + e4];
|
|
25059
|
+
return o3;
|
|
25060
|
+
}, f2.prototype.get = function(e4) {
|
|
25061
|
+
return console.log(".get() is deprecated. Access using array indexes instead."), this.readUInt8(e4);
|
|
25062
|
+
}, f2.prototype.set = function(e4, t2) {
|
|
25063
|
+
return console.log(".set() is deprecated. Access using array indexes instead."), this.writeUInt8(e4, t2);
|
|
25064
|
+
}, f2.prototype.readUInt8 = function(e4, t2) {
|
|
25065
|
+
if (t2 || (d2(null != e4, "missing offset"), d2(e4 < this.length, "Trying to read beyond buffer length")), !(e4 >= this.length)) return this[e4];
|
|
25066
|
+
}, f2.prototype.readUInt16LE = function(e4, t2) {
|
|
25067
|
+
return o2(this, e4, true, t2);
|
|
25068
|
+
}, f2.prototype.readUInt16BE = function(e4, t2) {
|
|
25069
|
+
return o2(this, e4, false, t2);
|
|
25070
|
+
}, f2.prototype.readUInt32LE = function(e4, t2) {
|
|
25071
|
+
return u2(this, e4, true, t2);
|
|
25072
|
+
}, f2.prototype.readUInt32BE = function(e4, t2) {
|
|
25073
|
+
return u2(this, e4, false, t2);
|
|
25074
|
+
}, f2.prototype.readInt8 = function(e4, t2) {
|
|
25075
|
+
if (t2 || (d2(null != e4, "missing offset"), d2(e4 < this.length, "Trying to read beyond buffer length")), !(e4 >= this.length)) return 128 & this[e4] ? -1 * (255 - this[e4] + 1) : this[e4];
|
|
25076
|
+
}, f2.prototype.readInt16LE = function(e4, t2) {
|
|
25077
|
+
return _2(this, e4, true, t2);
|
|
25078
|
+
}, f2.prototype.readInt16BE = function(e4, t2) {
|
|
25079
|
+
return _2(this, e4, false, t2);
|
|
25080
|
+
}, f2.prototype.readInt32LE = function(e4, t2) {
|
|
25081
|
+
return E2(this, e4, true, t2);
|
|
25082
|
+
}, f2.prototype.readInt32BE = function(e4, t2) {
|
|
25083
|
+
return E2(this, e4, false, t2);
|
|
25084
|
+
}, f2.prototype.readFloatLE = function(e4, t2) {
|
|
25085
|
+
return I2(this, e4, true, t2);
|
|
25086
|
+
}, f2.prototype.readFloatBE = function(e4, t2) {
|
|
25087
|
+
return I2(this, e4, false, t2);
|
|
25088
|
+
}, f2.prototype.readDoubleLE = function(e4, t2) {
|
|
25089
|
+
return A2(this, e4, true, t2);
|
|
25090
|
+
}, f2.prototype.readDoubleBE = function(e4, t2) {
|
|
25091
|
+
return A2(this, e4, false, t2);
|
|
25092
|
+
}, f2.prototype.writeUInt8 = function(e4, t2, n3) {
|
|
25093
|
+
n3 || (d2(null != e4, "missing value"), d2(null != t2, "missing offset"), d2(t2 < this.length, "trying to write beyond buffer length"), Y2(e4, 255)), t2 >= this.length || (this[t2] = e4);
|
|
25094
|
+
}, f2.prototype.writeUInt16LE = function(e4, t2, n3) {
|
|
25095
|
+
s2(this, e4, t2, true, n3);
|
|
25096
|
+
}, f2.prototype.writeUInt16BE = function(e4, t2, n3) {
|
|
25097
|
+
s2(this, e4, t2, false, n3);
|
|
25098
|
+
}, f2.prototype.writeUInt32LE = function(e4, t2, n3) {
|
|
25099
|
+
l2(this, e4, t2, true, n3);
|
|
25100
|
+
}, f2.prototype.writeUInt32BE = function(e4, t2, n3) {
|
|
25101
|
+
l2(this, e4, t2, false, n3);
|
|
25102
|
+
}, f2.prototype.writeInt8 = function(e4, t2, n3) {
|
|
25103
|
+
n3 || (d2(null != e4, "missing value"), d2(null != t2, "missing offset"), d2(t2 < this.length, "Trying to write beyond buffer length"), F2(e4, 127, -128)), t2 >= this.length || (0 <= e4 ? this.writeUInt8(e4, t2, n3) : this.writeUInt8(255 + e4 + 1, t2, n3));
|
|
25104
|
+
}, f2.prototype.writeInt16LE = function(e4, t2, n3) {
|
|
25105
|
+
B2(this, e4, t2, true, n3);
|
|
25106
|
+
}, f2.prototype.writeInt16BE = function(e4, t2, n3) {
|
|
25107
|
+
B2(this, e4, t2, false, n3);
|
|
25108
|
+
}, f2.prototype.writeInt32LE = function(e4, t2, n3) {
|
|
25109
|
+
L2(this, e4, t2, true, n3);
|
|
25110
|
+
}, f2.prototype.writeInt32BE = function(e4, t2, n3) {
|
|
25111
|
+
L2(this, e4, t2, false, n3);
|
|
25112
|
+
}, f2.prototype.writeFloatLE = function(e4, t2, n3) {
|
|
25113
|
+
U2(this, e4, t2, true, n3);
|
|
25114
|
+
}, f2.prototype.writeFloatBE = function(e4, t2, n3) {
|
|
25115
|
+
U2(this, e4, t2, false, n3);
|
|
25116
|
+
}, f2.prototype.writeDoubleLE = function(e4, t2, n3) {
|
|
25117
|
+
x2(this, e4, t2, true, n3);
|
|
25118
|
+
}, f2.prototype.writeDoubleBE = function(e4, t2, n3) {
|
|
25119
|
+
x2(this, e4, t2, false, n3);
|
|
25120
|
+
}, f2.prototype.fill = function(e4, t2, n3) {
|
|
25121
|
+
if (t2 = t2 || 0, n3 = n3 || this.length, d2("number" == typeof (e4 = "string" == typeof (e4 = e4 || 0) ? e4.charCodeAt(0) : e4) && !isNaN(e4), "value is not a number"), d2(t2 <= n3, "end < start"), n3 !== t2 && 0 !== this.length) {
|
|
25122
|
+
d2(0 <= t2 && t2 < this.length, "start out of bounds"), d2(0 <= n3 && n3 <= this.length, "end out of bounds");
|
|
25123
|
+
for (var r3 = t2; r3 < n3; r3++) this[r3] = e4;
|
|
25124
|
+
}
|
|
25125
|
+
}, f2.prototype.inspect = function() {
|
|
25126
|
+
for (var e4 = [], t2 = this.length, n3 = 0; n3 < t2; n3++) if (e4[n3] = k2(this[n3]), n3 === H2.INSPECT_MAX_BYTES) {
|
|
25127
|
+
e4[n3 + 1] = "...";
|
|
25128
|
+
break;
|
|
25129
|
+
}
|
|
25130
|
+
return "<Buffer " + e4.join(" ") + ">";
|
|
25131
|
+
}, f2.prototype.toArrayBuffer = function() {
|
|
25132
|
+
if ("undefined" == typeof Uint8Array) throw new Error("Buffer.toArrayBuffer not supported in this browser");
|
|
25133
|
+
if (f2._useTypedArrays) return new f2(this).buffer;
|
|
25134
|
+
for (var e4 = new Uint8Array(this.length), t2 = 0, n3 = e4.length; t2 < n3; t2 += 1) e4[t2] = this[t2];
|
|
25135
|
+
return e4.buffer;
|
|
25136
|
+
};
|
|
25137
|
+
var t = f2.prototype;
|
|
25138
|
+
function S2(e4, t2, n3) {
|
|
25139
|
+
return "number" != typeof e4 ? n3 : t2 <= (e4 = ~~e4) ? t2 : 0 <= e4 || 0 <= (e4 += t2) ? e4 : 0;
|
|
25140
|
+
}
|
|
25141
|
+
function j2(e4) {
|
|
25142
|
+
return (e4 = ~~Math.ceil(+e4)) < 0 ? 0 : e4;
|
|
25143
|
+
}
|
|
25144
|
+
function C2(e4) {
|
|
25145
|
+
return (Array.isArray || function(e5) {
|
|
25146
|
+
return "[object Array]" === Object.prototype.toString.call(e5);
|
|
25147
|
+
})(e4);
|
|
25148
|
+
}
|
|
25149
|
+
function k2(e4) {
|
|
25150
|
+
return e4 < 16 ? "0" + e4.toString(16) : e4.toString(16);
|
|
25151
|
+
}
|
|
25152
|
+
function T2(e4) {
|
|
25153
|
+
for (var t2 = [], n3 = 0; n3 < e4.length; n3++) {
|
|
25154
|
+
var r3 = e4.charCodeAt(n3);
|
|
25155
|
+
if (r3 <= 127) t2.push(e4.charCodeAt(n3));
|
|
25156
|
+
else for (var o3 = n3, i3 = (55296 <= r3 && r3 <= 57343 && n3++, encodeURIComponent(e4.slice(o3, n3 + 1)).substr(1).split("%")), u3 = 0; u3 < i3.length; u3++) t2.push(parseInt(i3[u3], 16));
|
|
25157
|
+
}
|
|
25158
|
+
return t2;
|
|
25159
|
+
}
|
|
25160
|
+
function M2(e4) {
|
|
25161
|
+
return a2.toByteArray(e4);
|
|
25162
|
+
}
|
|
25163
|
+
function c2(e4, t2, n3, r3) {
|
|
25164
|
+
for (var o3 = 0; o3 < r3 && !(o3 + n3 >= t2.length || o3 >= e4.length); o3++) t2[o3 + n3] = e4[o3];
|
|
25165
|
+
return o3;
|
|
25166
|
+
}
|
|
25167
|
+
function N2(e4) {
|
|
25168
|
+
try {
|
|
25169
|
+
return decodeURIComponent(e4);
|
|
25170
|
+
} catch (e5) {
|
|
25171
|
+
return String.fromCharCode(65533);
|
|
25172
|
+
}
|
|
25173
|
+
}
|
|
25174
|
+
function Y2(e4, t2) {
|
|
25175
|
+
d2("number" == typeof e4, "cannot write a non-number as a number"), d2(0 <= e4, "specified a negative value for writing an unsigned value"), d2(e4 <= t2, "value is larger than maximum value for type"), d2(Math.floor(e4) === e4, "value has a fractional component");
|
|
25176
|
+
}
|
|
25177
|
+
function F2(e4, t2, n3) {
|
|
25178
|
+
d2("number" == typeof e4, "cannot write a non-number as a number"), d2(e4 <= t2, "value larger than maximum allowed value"), d2(n3 <= e4, "value smaller than minimum allowed value"), d2(Math.floor(e4) === e4, "value has a fractional component");
|
|
25179
|
+
}
|
|
25180
|
+
function D2(e4, t2, n3) {
|
|
25181
|
+
d2("number" == typeof e4, "cannot write a non-number as a number"), d2(e4 <= t2, "value larger than maximum allowed value"), d2(n3 <= e4, "value smaller than minimum allowed value");
|
|
25182
|
+
}
|
|
25183
|
+
function d2(e4, t2) {
|
|
25184
|
+
if (!e4) throw new Error(t2 || "Failed assertion");
|
|
25185
|
+
}
|
|
25186
|
+
f2._augment = function(e4) {
|
|
25187
|
+
return e4._isBuffer = true, e4._get = e4.get, e4._set = e4.set, e4.get = t.get, e4.set = t.set, e4.write = t.write, e4.toString = t.toString, e4.toLocaleString = t.toString, e4.toJSON = t.toJSON, e4.copy = t.copy, e4.slice = t.slice, e4.readUInt8 = t.readUInt8, e4.readUInt16LE = t.readUInt16LE, e4.readUInt16BE = t.readUInt16BE, e4.readUInt32LE = t.readUInt32LE, e4.readUInt32BE = t.readUInt32BE, e4.readInt8 = t.readInt8, e4.readInt16LE = t.readInt16LE, e4.readInt16BE = t.readInt16BE, e4.readInt32LE = t.readInt32LE, e4.readInt32BE = t.readInt32BE, e4.readFloatLE = t.readFloatLE, e4.readFloatBE = t.readFloatBE, e4.readDoubleLE = t.readDoubleLE, e4.readDoubleBE = t.readDoubleBE, e4.writeUInt8 = t.writeUInt8, e4.writeUInt16LE = t.writeUInt16LE, e4.writeUInt16BE = t.writeUInt16BE, e4.writeUInt32LE = t.writeUInt32LE, e4.writeUInt32BE = t.writeUInt32BE, e4.writeInt8 = t.writeInt8, e4.writeInt16LE = t.writeInt16LE, e4.writeInt16BE = t.writeInt16BE, e4.writeInt32LE = t.writeInt32LE, e4.writeInt32BE = t.writeInt32BE, e4.writeFloatLE = t.writeFloatLE, e4.writeFloatBE = t.writeFloatBE, e4.writeDoubleLE = t.writeDoubleLE, e4.writeDoubleBE = t.writeDoubleBE, e4.fill = t.fill, e4.inspect = t.inspect, e4.toArrayBuffer = t.toArrayBuffer, e4;
|
|
25188
|
+
};
|
|
25189
|
+
}).call(this, O2("lYpoI2"), "undefined" != typeof self ? self : "undefined" != typeof window ? window : {}, O2("buffer").Buffer, arguments[3], arguments[4], arguments[5], arguments[6], "/node_modules/gulp-browserify/node_modules/buffer/index.js", "/node_modules/gulp-browserify/node_modules/buffer");
|
|
25190
|
+
}, { "base64-js": 2, buffer: 3, ieee754: 10, lYpoI2: 11 }], 4: [function(c2, d2, e2) {
|
|
25191
|
+
!(function(e3, t, a2, n2, r2, o2, i2, u2, s2) {
|
|
25192
|
+
var a2 = c2("buffer").Buffer, f2 = 4, l2 = new a2(f2);
|
|
25193
|
+
l2.fill(0);
|
|
25194
|
+
d2.exports = { hash: function(e4, t2, n3, r3) {
|
|
25195
|
+
for (var o3 = t2(function(e5, t3) {
|
|
25196
|
+
e5.length % f2 != 0 && (n4 = e5.length + (f2 - e5.length % f2), e5 = a2.concat([e5, l2], n4));
|
|
25197
|
+
for (var n4, r4 = [], o4 = t3 ? e5.readInt32BE : e5.readInt32LE, i4 = 0; i4 < e5.length; i4 += f2) r4.push(o4.call(e5, i4));
|
|
25198
|
+
return r4;
|
|
25199
|
+
}(e4 = a2.isBuffer(e4) ? e4 : new a2(e4), r3), 8 * e4.length), t2 = r3, i3 = new a2(n3), u3 = t2 ? i3.writeInt32BE : i3.writeInt32LE, s3 = 0; s3 < o3.length; s3++) u3.call(i3, o3[s3], 4 * s3, true);
|
|
25200
|
+
return i3;
|
|
25201
|
+
} };
|
|
25202
|
+
}).call(this, c2("lYpoI2"), "undefined" != typeof self ? self : "undefined" != typeof window ? window : {}, c2("buffer").Buffer, arguments[3], arguments[4], arguments[5], arguments[6], "/node_modules/gulp-browserify/node_modules/crypto-browserify/helpers.js", "/node_modules/gulp-browserify/node_modules/crypto-browserify");
|
|
25203
|
+
}, { buffer: 3, lYpoI2: 11 }], 5: [function(v2, e2, _2) {
|
|
25204
|
+
!(function(l2, c2, u2, d2, h3, p2, g2, y2, w2) {
|
|
25205
|
+
var u2 = v2("buffer").Buffer, e3 = v2("./sha"), t = v2("./sha256"), n2 = v2("./rng"), b2 = { sha1: e3, sha256: t, md5: v2("./md5") }, s2 = 64, a2 = new u2(s2);
|
|
25206
|
+
function r2(e4, n3) {
|
|
25207
|
+
var r3 = b2[e4 = e4 || "sha1"], o3 = [];
|
|
25208
|
+
return r3 || i2("algorithm:", e4, "is not yet supported"), { update: function(e5) {
|
|
25209
|
+
return u2.isBuffer(e5) || (e5 = new u2(e5)), o3.push(e5), e5.length, this;
|
|
25210
|
+
}, digest: function(e5) {
|
|
25211
|
+
var t2 = u2.concat(o3), t2 = n3 ? function(e6, t3, n4) {
|
|
25212
|
+
u2.isBuffer(t3) || (t3 = new u2(t3)), u2.isBuffer(n4) || (n4 = new u2(n4)), t3.length > s2 ? t3 = e6(t3) : t3.length < s2 && (t3 = u2.concat([t3, a2], s2));
|
|
25213
|
+
for (var r4 = new u2(s2), o4 = new u2(s2), i3 = 0; i3 < s2; i3++) r4[i3] = 54 ^ t3[i3], o4[i3] = 92 ^ t3[i3];
|
|
25214
|
+
return n4 = e6(u2.concat([r4, n4])), e6(u2.concat([o4, n4]));
|
|
25215
|
+
}(r3, n3, t2) : r3(t2);
|
|
25216
|
+
return o3 = null, e5 ? t2.toString(e5) : t2;
|
|
25217
|
+
} };
|
|
25218
|
+
}
|
|
25219
|
+
function i2() {
|
|
25220
|
+
var e4 = [].slice.call(arguments).join(" ");
|
|
25221
|
+
throw new Error([e4, "we accept pull requests", "http://github.com/dominictarr/crypto-browserify"].join("\n"));
|
|
25222
|
+
}
|
|
25223
|
+
a2.fill(0), _2.createHash = function(e4) {
|
|
25224
|
+
return r2(e4);
|
|
25225
|
+
}, _2.createHmac = r2, _2.randomBytes = function(e4, t2) {
|
|
25226
|
+
if (!t2 || !t2.call) return new u2(n2(e4));
|
|
25227
|
+
try {
|
|
25228
|
+
t2.call(this, void 0, new u2(n2(e4)));
|
|
25229
|
+
} catch (e5) {
|
|
25230
|
+
t2(e5);
|
|
25231
|
+
}
|
|
25232
|
+
};
|
|
25233
|
+
var o2, f2 = ["createCredentials", "createCipher", "createCipheriv", "createDecipher", "createDecipheriv", "createSign", "createVerify", "createDiffieHellman", "pbkdf2"], m2 = function(e4) {
|
|
25234
|
+
_2[e4] = function() {
|
|
25235
|
+
i2("sorry,", e4, "is not implemented yet");
|
|
25236
|
+
};
|
|
25237
|
+
};
|
|
25238
|
+
for (o2 in f2) m2(f2[o2]);
|
|
25239
|
+
}).call(this, v2("lYpoI2"), "undefined" != typeof self ? self : "undefined" != typeof window ? window : {}, v2("buffer").Buffer, arguments[3], arguments[4], arguments[5], arguments[6], "/node_modules/gulp-browserify/node_modules/crypto-browserify/index.js", "/node_modules/gulp-browserify/node_modules/crypto-browserify");
|
|
25240
|
+
}, { "./md5": 6, "./rng": 7, "./sha": 8, "./sha256": 9, buffer: 3, lYpoI2: 11 }], 6: [function(w2, b2, e2) {
|
|
25241
|
+
!(function(e3, r2, o2, i2, u2, a2, f2, l2, y2) {
|
|
25242
|
+
var t = w2("./helpers");
|
|
25243
|
+
function n2(e4, t2) {
|
|
25244
|
+
e4[t2 >> 5] |= 128 << t2 % 32, e4[14 + (t2 + 64 >>> 9 << 4)] = t2;
|
|
25245
|
+
for (var n3 = 1732584193, r3 = -271733879, o3 = -1732584194, i3 = 271733878, u3 = 0; u3 < e4.length; u3 += 16) {
|
|
25246
|
+
var s3 = n3, a3 = r3, f3 = o3, l3 = i3, n3 = c2(n3, r3, o3, i3, e4[u3 + 0], 7, -680876936), i3 = c2(i3, n3, r3, o3, e4[u3 + 1], 12, -389564586), o3 = c2(o3, i3, n3, r3, e4[u3 + 2], 17, 606105819), r3 = c2(r3, o3, i3, n3, e4[u3 + 3], 22, -1044525330);
|
|
25247
|
+
n3 = c2(n3, r3, o3, i3, e4[u3 + 4], 7, -176418897), i3 = c2(i3, n3, r3, o3, e4[u3 + 5], 12, 1200080426), o3 = c2(o3, i3, n3, r3, e4[u3 + 6], 17, -1473231341), r3 = c2(r3, o3, i3, n3, e4[u3 + 7], 22, -45705983), n3 = c2(n3, r3, o3, i3, e4[u3 + 8], 7, 1770035416), i3 = c2(i3, n3, r3, o3, e4[u3 + 9], 12, -1958414417), o3 = c2(o3, i3, n3, r3, e4[u3 + 10], 17, -42063), r3 = c2(r3, o3, i3, n3, e4[u3 + 11], 22, -1990404162), n3 = c2(n3, r3, o3, i3, e4[u3 + 12], 7, 1804603682), i3 = c2(i3, n3, r3, o3, e4[u3 + 13], 12, -40341101), o3 = c2(o3, i3, n3, r3, e4[u3 + 14], 17, -1502002290), n3 = d2(n3, r3 = c2(r3, o3, i3, n3, e4[u3 + 15], 22, 1236535329), o3, i3, e4[u3 + 1], 5, -165796510), i3 = d2(i3, n3, r3, o3, e4[u3 + 6], 9, -1069501632), o3 = d2(o3, i3, n3, r3, e4[u3 + 11], 14, 643717713), r3 = d2(r3, o3, i3, n3, e4[u3 + 0], 20, -373897302), n3 = d2(n3, r3, o3, i3, e4[u3 + 5], 5, -701558691), i3 = d2(i3, n3, r3, o3, e4[u3 + 10], 9, 38016083), o3 = d2(o3, i3, n3, r3, e4[u3 + 15], 14, -660478335), r3 = d2(r3, o3, i3, n3, e4[u3 + 4], 20, -405537848), n3 = d2(n3, r3, o3, i3, e4[u3 + 9], 5, 568446438), i3 = d2(i3, n3, r3, o3, e4[u3 + 14], 9, -1019803690), o3 = d2(o3, i3, n3, r3, e4[u3 + 3], 14, -187363961), r3 = d2(r3, o3, i3, n3, e4[u3 + 8], 20, 1163531501), n3 = d2(n3, r3, o3, i3, e4[u3 + 13], 5, -1444681467), i3 = d2(i3, n3, r3, o3, e4[u3 + 2], 9, -51403784), o3 = d2(o3, i3, n3, r3, e4[u3 + 7], 14, 1735328473), n3 = h3(n3, r3 = d2(r3, o3, i3, n3, e4[u3 + 12], 20, -1926607734), o3, i3, e4[u3 + 5], 4, -378558), i3 = h3(i3, n3, r3, o3, e4[u3 + 8], 11, -2022574463), o3 = h3(o3, i3, n3, r3, e4[u3 + 11], 16, 1839030562), r3 = h3(r3, o3, i3, n3, e4[u3 + 14], 23, -35309556), n3 = h3(n3, r3, o3, i3, e4[u3 + 1], 4, -1530992060), i3 = h3(i3, n3, r3, o3, e4[u3 + 4], 11, 1272893353), o3 = h3(o3, i3, n3, r3, e4[u3 + 7], 16, -155497632), r3 = h3(r3, o3, i3, n3, e4[u3 + 10], 23, -1094730640), n3 = h3(n3, r3, o3, i3, e4[u3 + 13], 4, 681279174), i3 = h3(i3, n3, r3, o3, e4[u3 + 0], 11, -358537222), o3 = h3(o3, i3, n3, r3, e4[u3 + 3], 16, -722521979), r3 = h3(r3, o3, i3, n3, e4[u3 + 6], 23, 76029189), n3 = h3(n3, r3, o3, i3, e4[u3 + 9], 4, -640364487), i3 = h3(i3, n3, r3, o3, e4[u3 + 12], 11, -421815835), o3 = h3(o3, i3, n3, r3, e4[u3 + 15], 16, 530742520), n3 = p2(n3, r3 = h3(r3, o3, i3, n3, e4[u3 + 2], 23, -995338651), o3, i3, e4[u3 + 0], 6, -198630844), i3 = p2(i3, n3, r3, o3, e4[u3 + 7], 10, 1126891415), o3 = p2(o3, i3, n3, r3, e4[u3 + 14], 15, -1416354905), r3 = p2(r3, o3, i3, n3, e4[u3 + 5], 21, -57434055), n3 = p2(n3, r3, o3, i3, e4[u3 + 12], 6, 1700485571), i3 = p2(i3, n3, r3, o3, e4[u3 + 3], 10, -1894986606), o3 = p2(o3, i3, n3, r3, e4[u3 + 10], 15, -1051523), r3 = p2(r3, o3, i3, n3, e4[u3 + 1], 21, -2054922799), n3 = p2(n3, r3, o3, i3, e4[u3 + 8], 6, 1873313359), i3 = p2(i3, n3, r3, o3, e4[u3 + 15], 10, -30611744), o3 = p2(o3, i3, n3, r3, e4[u3 + 6], 15, -1560198380), r3 = p2(r3, o3, i3, n3, e4[u3 + 13], 21, 1309151649), n3 = p2(n3, r3, o3, i3, e4[u3 + 4], 6, -145523070), i3 = p2(i3, n3, r3, o3, e4[u3 + 11], 10, -1120210379), o3 = p2(o3, i3, n3, r3, e4[u3 + 2], 15, 718787259), r3 = p2(r3, o3, i3, n3, e4[u3 + 9], 21, -343485551), n3 = g2(n3, s3), r3 = g2(r3, a3), o3 = g2(o3, f3), i3 = g2(i3, l3);
|
|
25248
|
+
}
|
|
25249
|
+
return Array(n3, r3, o3, i3);
|
|
25250
|
+
}
|
|
25251
|
+
function s2(e4, t2, n3, r3, o3, i3) {
|
|
25252
|
+
return g2((t2 = g2(g2(t2, e4), g2(r3, i3))) << o3 | t2 >>> 32 - o3, n3);
|
|
25253
|
+
}
|
|
25254
|
+
function c2(e4, t2, n3, r3, o3, i3, u3) {
|
|
25255
|
+
return s2(t2 & n3 | ~t2 & r3, e4, t2, o3, i3, u3);
|
|
25256
|
+
}
|
|
25257
|
+
function d2(e4, t2, n3, r3, o3, i3, u3) {
|
|
25258
|
+
return s2(t2 & r3 | n3 & ~r3, e4, t2, o3, i3, u3);
|
|
25259
|
+
}
|
|
25260
|
+
function h3(e4, t2, n3, r3, o3, i3, u3) {
|
|
25261
|
+
return s2(t2 ^ n3 ^ r3, e4, t2, o3, i3, u3);
|
|
25262
|
+
}
|
|
25263
|
+
function p2(e4, t2, n3, r3, o3, i3, u3) {
|
|
25264
|
+
return s2(n3 ^ (t2 | ~r3), e4, t2, o3, i3, u3);
|
|
25265
|
+
}
|
|
25266
|
+
function g2(e4, t2) {
|
|
25267
|
+
var n3 = (65535 & e4) + (65535 & t2);
|
|
25268
|
+
return (e4 >> 16) + (t2 >> 16) + (n3 >> 16) << 16 | 65535 & n3;
|
|
25269
|
+
}
|
|
25270
|
+
b2.exports = function(e4) {
|
|
25271
|
+
return t.hash(e4, n2, 16);
|
|
25272
|
+
};
|
|
25273
|
+
}).call(this, w2("lYpoI2"), "undefined" != typeof self ? self : "undefined" != typeof window ? window : {}, w2("buffer").Buffer, arguments[3], arguments[4], arguments[5], arguments[6], "/node_modules/gulp-browserify/node_modules/crypto-browserify/md5.js", "/node_modules/gulp-browserify/node_modules/crypto-browserify");
|
|
25274
|
+
}, { "./helpers": 4, buffer: 3, lYpoI2: 11 }], 7: [function(e2, l2, t) {
|
|
25275
|
+
!(function(e3, t2, n2, r2, o2, i2, u2, s2, f2) {
|
|
25276
|
+
l2.exports = function(e4) {
|
|
25277
|
+
for (var t3, n3 = new Array(e4), r3 = 0; r3 < e4; r3++) 0 == (3 & r3) && (t3 = 4294967296 * Math.random()), n3[r3] = t3 >>> ((3 & r3) << 3) & 255;
|
|
25278
|
+
return n3;
|
|
25279
|
+
};
|
|
25280
|
+
}).call(this, e2("lYpoI2"), "undefined" != typeof self ? self : "undefined" != typeof window ? window : {}, e2("buffer").Buffer, arguments[3], arguments[4], arguments[5], arguments[6], "/node_modules/gulp-browserify/node_modules/crypto-browserify/rng.js", "/node_modules/gulp-browserify/node_modules/crypto-browserify");
|
|
25281
|
+
}, { buffer: 3, lYpoI2: 11 }], 8: [function(c2, d2, e2) {
|
|
25282
|
+
!(function(e3, t, n2, r2, o2, s2, a2, f2, l2) {
|
|
25283
|
+
var i2 = c2("./helpers");
|
|
25284
|
+
function u2(l3, c3) {
|
|
25285
|
+
l3[c3 >> 5] |= 128 << 24 - c3 % 32, l3[15 + (c3 + 64 >> 9 << 4)] = c3;
|
|
25286
|
+
for (var e4, t2, n3, r3 = Array(80), o3 = 1732584193, i3 = -271733879, u3 = -1732584194, s3 = 271733878, d3 = -1009589776, h3 = 0; h3 < l3.length; h3 += 16) {
|
|
25287
|
+
for (var p2 = o3, g2 = i3, y2 = u3, w2 = s3, b2 = d3, a3 = 0; a3 < 80; a3++) {
|
|
25288
|
+
r3[a3] = a3 < 16 ? l3[h3 + a3] : v2(r3[a3 - 3] ^ r3[a3 - 8] ^ r3[a3 - 14] ^ r3[a3 - 16], 1);
|
|
25289
|
+
var f3 = m2(m2(v2(o3, 5), (f3 = i3, t2 = u3, n3 = s3, (e4 = a3) < 20 ? f3 & t2 | ~f3 & n3 : !(e4 < 40) && e4 < 60 ? f3 & t2 | f3 & n3 | t2 & n3 : f3 ^ t2 ^ n3)), m2(m2(d3, r3[a3]), (e4 = a3) < 20 ? 1518500249 : e4 < 40 ? 1859775393 : e4 < 60 ? -1894007588 : -899497514)), d3 = s3, s3 = u3, u3 = v2(i3, 30), i3 = o3, o3 = f3;
|
|
25290
|
+
}
|
|
25291
|
+
o3 = m2(o3, p2), i3 = m2(i3, g2), u3 = m2(u3, y2), s3 = m2(s3, w2), d3 = m2(d3, b2);
|
|
25292
|
+
}
|
|
25293
|
+
return Array(o3, i3, u3, s3, d3);
|
|
25294
|
+
}
|
|
25295
|
+
function m2(e4, t2) {
|
|
25296
|
+
var n3 = (65535 & e4) + (65535 & t2);
|
|
25297
|
+
return (e4 >> 16) + (t2 >> 16) + (n3 >> 16) << 16 | 65535 & n3;
|
|
25298
|
+
}
|
|
25299
|
+
function v2(e4, t2) {
|
|
25300
|
+
return e4 << t2 | e4 >>> 32 - t2;
|
|
25301
|
+
}
|
|
25302
|
+
d2.exports = function(e4) {
|
|
25303
|
+
return i2.hash(e4, u2, 20, true);
|
|
25304
|
+
};
|
|
25305
|
+
}).call(this, c2("lYpoI2"), "undefined" != typeof self ? self : "undefined" != typeof window ? window : {}, c2("buffer").Buffer, arguments[3], arguments[4], arguments[5], arguments[6], "/node_modules/gulp-browserify/node_modules/crypto-browserify/sha.js", "/node_modules/gulp-browserify/node_modules/crypto-browserify");
|
|
25306
|
+
}, { "./helpers": 4, buffer: 3, lYpoI2: 11 }], 9: [function(c2, d2, e2) {
|
|
25307
|
+
!(function(e3, t, n2, r2, u2, s2, a2, f2, l2) {
|
|
25308
|
+
function b2(e4, t2) {
|
|
25309
|
+
var n3 = (65535 & e4) + (65535 & t2);
|
|
25310
|
+
return (e4 >> 16) + (t2 >> 16) + (n3 >> 16) << 16 | 65535 & n3;
|
|
25311
|
+
}
|
|
25312
|
+
function o2(e4, l3) {
|
|
25313
|
+
var c3, d3 = new Array(1116352408, 1899447441, 3049323471, 3921009573, 961987163, 1508970993, 2453635748, 2870763221, 3624381080, 310598401, 607225278, 1426881987, 1925078388, 2162078206, 2614888103, 3248222580, 3835390401, 4022224774, 264347078, 604807628, 770255983, 1249150122, 1555081692, 1996064986, 2554220882, 2821834349, 2952996808, 3210313671, 3336571891, 3584528711, 113926993, 338241895, 666307205, 773529912, 1294757372, 1396182291, 1695183700, 1986661051, 2177026350, 2456956037, 2730485921, 2820302411, 3259730800, 3345764771, 3516065817, 3600352804, 4094571909, 275423344, 430227734, 506948616, 659060556, 883997877, 958139571, 1322822218, 1537002063, 1747873779, 1955562222, 2024104815, 2227730452, 2361852424, 2428436474, 2756734187, 3204031479, 3329325298), t2 = new Array(1779033703, 3144134277, 1013904242, 2773480762, 1359893119, 2600822924, 528734635, 1541459225), n3 = new Array(64);
|
|
25314
|
+
e4[l3 >> 5] |= 128 << 24 - l3 % 32, e4[15 + (l3 + 64 >> 9 << 4)] = l3;
|
|
25315
|
+
for (var r3, o3, h3 = 0; h3 < e4.length; h3 += 16) {
|
|
25316
|
+
for (var i3 = t2[0], u3 = t2[1], s3 = t2[2], p2 = t2[3], a3 = t2[4], g2 = t2[5], y2 = t2[6], w2 = t2[7], f3 = 0; f3 < 64; f3++) n3[f3] = f3 < 16 ? e4[f3 + h3] : b2(b2(b2((o3 = n3[f3 - 2], m2(o3, 17) ^ m2(o3, 19) ^ v2(o3, 10)), n3[f3 - 7]), (o3 = n3[f3 - 15], m2(o3, 7) ^ m2(o3, 18) ^ v2(o3, 3))), n3[f3 - 16]), c3 = b2(b2(b2(b2(w2, m2(o3 = a3, 6) ^ m2(o3, 11) ^ m2(o3, 25)), a3 & g2 ^ ~a3 & y2), d3[f3]), n3[f3]), r3 = b2(m2(r3 = i3, 2) ^ m2(r3, 13) ^ m2(r3, 22), i3 & u3 ^ i3 & s3 ^ u3 & s3), w2 = y2, y2 = g2, g2 = a3, a3 = b2(p2, c3), p2 = s3, s3 = u3, u3 = i3, i3 = b2(c3, r3);
|
|
25317
|
+
t2[0] = b2(i3, t2[0]), t2[1] = b2(u3, t2[1]), t2[2] = b2(s3, t2[2]), t2[3] = b2(p2, t2[3]), t2[4] = b2(a3, t2[4]), t2[5] = b2(g2, t2[5]), t2[6] = b2(y2, t2[6]), t2[7] = b2(w2, t2[7]);
|
|
25318
|
+
}
|
|
25319
|
+
return t2;
|
|
25320
|
+
}
|
|
25321
|
+
var i2 = c2("./helpers"), m2 = function(e4, t2) {
|
|
25322
|
+
return e4 >>> t2 | e4 << 32 - t2;
|
|
25323
|
+
}, v2 = function(e4, t2) {
|
|
25324
|
+
return e4 >>> t2;
|
|
25325
|
+
};
|
|
25326
|
+
d2.exports = function(e4) {
|
|
25327
|
+
return i2.hash(e4, o2, 32, true);
|
|
25328
|
+
};
|
|
25329
|
+
}).call(this, c2("lYpoI2"), "undefined" != typeof self ? self : "undefined" != typeof window ? window : {}, c2("buffer").Buffer, arguments[3], arguments[4], arguments[5], arguments[6], "/node_modules/gulp-browserify/node_modules/crypto-browserify/sha256.js", "/node_modules/gulp-browserify/node_modules/crypto-browserify");
|
|
25330
|
+
}, { "./helpers": 4, buffer: 3, lYpoI2: 11 }], 10: [function(e2, t, f2) {
|
|
25331
|
+
!(function(e3, t2, n2, r2, o2, i2, u2, s2, a2) {
|
|
25332
|
+
f2.read = function(e4, t3, n3, r3, o3) {
|
|
25333
|
+
var i3, u3, l2 = 8 * o3 - r3 - 1, c2 = (1 << l2) - 1, d2 = c2 >> 1, s3 = -7, a3 = n3 ? o3 - 1 : 0, f3 = n3 ? -1 : 1, o3 = e4[t3 + a3];
|
|
25334
|
+
for (a3 += f3, i3 = o3 & (1 << -s3) - 1, o3 >>= -s3, s3 += l2; 0 < s3; i3 = 256 * i3 + e4[t3 + a3], a3 += f3, s3 -= 8) ;
|
|
25335
|
+
for (u3 = i3 & (1 << -s3) - 1, i3 >>= -s3, s3 += r3; 0 < s3; u3 = 256 * u3 + e4[t3 + a3], a3 += f3, s3 -= 8) ;
|
|
25336
|
+
if (0 === i3) i3 = 1 - d2;
|
|
25337
|
+
else {
|
|
25338
|
+
if (i3 === c2) return u3 ? NaN : 1 / 0 * (o3 ? -1 : 1);
|
|
25339
|
+
u3 += Math.pow(2, r3), i3 -= d2;
|
|
25340
|
+
}
|
|
25341
|
+
return (o3 ? -1 : 1) * u3 * Math.pow(2, i3 - r3);
|
|
25342
|
+
}, f2.write = function(e4, t3, l2, n3, r3, c2) {
|
|
25343
|
+
var o3, i3, u3 = 8 * c2 - r3 - 1, s3 = (1 << u3) - 1, a3 = s3 >> 1, d2 = 23 === r3 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, f3 = n3 ? 0 : c2 - 1, h3 = n3 ? 1 : -1, c2 = t3 < 0 || 0 === t3 && 1 / t3 < 0 ? 1 : 0;
|
|
25344
|
+
for (t3 = Math.abs(t3), isNaN(t3) || t3 === 1 / 0 ? (i3 = isNaN(t3) ? 1 : 0, o3 = s3) : (o3 = Math.floor(Math.log(t3) / Math.LN2), t3 * (n3 = Math.pow(2, -o3)) < 1 && (o3--, n3 *= 2), 2 <= (t3 += 1 <= o3 + a3 ? d2 / n3 : d2 * Math.pow(2, 1 - a3)) * n3 && (o3++, n3 /= 2), s3 <= o3 + a3 ? (i3 = 0, o3 = s3) : 1 <= o3 + a3 ? (i3 = (t3 * n3 - 1) * Math.pow(2, r3), o3 += a3) : (i3 = t3 * Math.pow(2, a3 - 1) * Math.pow(2, r3), o3 = 0)); 8 <= r3; e4[l2 + f3] = 255 & i3, f3 += h3, i3 /= 256, r3 -= 8) ;
|
|
25345
|
+
for (o3 = o3 << r3 | i3, u3 += r3; 0 < u3; e4[l2 + f3] = 255 & o3, f3 += h3, o3 /= 256, u3 -= 8) ;
|
|
25346
|
+
e4[l2 + f3 - h3] |= 128 * c2;
|
|
25347
|
+
};
|
|
25348
|
+
}).call(this, e2("lYpoI2"), "undefined" != typeof self ? self : "undefined" != typeof window ? window : {}, e2("buffer").Buffer, arguments[3], arguments[4], arguments[5], arguments[6], "/node_modules/gulp-browserify/node_modules/ieee754/index.js", "/node_modules/gulp-browserify/node_modules/ieee754");
|
|
25349
|
+
}, { buffer: 3, lYpoI2: 11 }], 11: [function(e2, h3, t) {
|
|
25350
|
+
!(function(e3, t2, n2, r2, o2, f2, l2, c2, d2) {
|
|
25351
|
+
var i2, u2, s2;
|
|
25352
|
+
function a2() {
|
|
25353
|
+
}
|
|
25354
|
+
(e3 = h3.exports = {}).nextTick = (u2 = "undefined" != typeof window && window.setImmediate, s2 = "undefined" != typeof window && window.postMessage && window.addEventListener, u2 ? function(e4) {
|
|
25355
|
+
return window.setImmediate(e4);
|
|
25356
|
+
} : s2 ? (i2 = [], window.addEventListener("message", function(e4) {
|
|
25357
|
+
var t3 = e4.source;
|
|
25358
|
+
t3 !== window && null !== t3 || "process-tick" !== e4.data || (e4.stopPropagation(), 0 < i2.length && i2.shift()());
|
|
25359
|
+
}, true), function(e4) {
|
|
25360
|
+
i2.push(e4), window.postMessage("process-tick", "*");
|
|
25361
|
+
}) : function(e4) {
|
|
25362
|
+
setTimeout(e4, 0);
|
|
25363
|
+
}), e3.title = "browser", e3.browser = true, e3.env = {}, e3.argv = [], e3.on = a2, e3.addListener = a2, e3.once = a2, e3.off = a2, e3.removeListener = a2, e3.removeAllListeners = a2, e3.emit = a2, e3.binding = function(e4) {
|
|
25364
|
+
throw new Error("process.binding is not supported");
|
|
25365
|
+
}, e3.cwd = function() {
|
|
25366
|
+
return "/";
|
|
25367
|
+
}, e3.chdir = function(e4) {
|
|
25368
|
+
throw new Error("process.chdir is not supported");
|
|
25369
|
+
};
|
|
25370
|
+
}).call(this, e2("lYpoI2"), "undefined" != typeof self ? self : "undefined" != typeof window ? window : {}, e2("buffer").Buffer, arguments[3], arguments[4], arguments[5], arguments[6], "/node_modules/gulp-browserify/node_modules/process/browser.js", "/node_modules/gulp-browserify/node_modules/process");
|
|
25371
|
+
}, { buffer: 3, lYpoI2: 11 }] }, {}, [1])(1);
|
|
25372
|
+
});
|
|
25373
|
+
})(object_hash);
|
|
25374
|
+
return object_hash.exports;
|
|
25375
|
+
}
|
|
25376
|
+
var object_hashExports = requireObject_hash();
|
|
25377
|
+
const hash = /* @__PURE__ */ getDefaultExportFromCjs(object_hashExports);
|
|
24573
25378
|
const isLessThanMax = (value, max) => {
|
|
24574
25379
|
return value === void 0 || max === void 0 || Number(value) < Number(max);
|
|
24575
25380
|
};
|
|
@@ -24584,17 +25389,9 @@ const getAxisTypeFromKey = (string) => {
|
|
|
24584
25389
|
var _a2;
|
|
24585
25390
|
return ((_a2 = string == null ? void 0 : string.match(/[^0-9/]+/gi)) == null ? void 0 : _a2[0]) ?? "";
|
|
24586
25391
|
};
|
|
24587
|
-
const generateKey = (values) => {
|
|
24588
|
-
const key = values.join("");
|
|
24589
|
-
return key;
|
|
24590
|
-
};
|
|
24591
25392
|
const isPrimitiveValue = (value) => typeof value === "string" || typeof value === "number" || typeof value === "boolean" || value === null;
|
|
24592
25393
|
const getChartKey = (state, options, languageKey) => {
|
|
24593
|
-
return
|
|
24594
|
-
JSON.stringify(state),
|
|
24595
|
-
JSON.stringify(options),
|
|
24596
|
-
languageKey
|
|
24597
|
-
]);
|
|
25394
|
+
return hash({ state, options, languageKey }, { unorderedObjects: true });
|
|
24598
25395
|
};
|
|
24599
25396
|
const useChartFunctions = ({
|
|
24600
25397
|
chartRef,
|
|
@@ -25873,6 +26670,7 @@ const getDraggableData = (options) => {
|
|
|
25873
26670
|
const TOGGLE_DATA_VISIBILITY = "TOGGLE_DATA_VISIBILITY";
|
|
25874
26671
|
const RESET_STATE = "RESET_STATE";
|
|
25875
26672
|
const legendInitialState = {
|
|
26673
|
+
datasets: [],
|
|
25876
26674
|
annotation: []
|
|
25877
26675
|
};
|
|
25878
26676
|
const legendReducer = (state, action) => {
|
|
@@ -25892,6 +26690,11 @@ const legendReducer = (state, action) => {
|
|
|
25892
26690
|
);
|
|
25893
26691
|
if (datasetIndex >= 0) {
|
|
25894
26692
|
chartInstance == null ? void 0 : chartInstance.setDatasetVisibility(datasetIndex, !isDatasetVisible);
|
|
26693
|
+
set$1(
|
|
26694
|
+
updatedState,
|
|
26695
|
+
["datasets", datasetIndex, "hidden"],
|
|
26696
|
+
isDatasetVisible
|
|
26697
|
+
);
|
|
25895
26698
|
if (dataset == null ? void 0 : dataset.displayGroup) {
|
|
25896
26699
|
const group = dataset.displayGroup;
|
|
25897
26700
|
datasets.forEach((ds, ix) => {
|
|
@@ -25900,6 +26703,7 @@ const legendReducer = (state, action) => {
|
|
|
25900
26703
|
Number(ix),
|
|
25901
26704
|
!isDatasetVisible
|
|
25902
26705
|
);
|
|
26706
|
+
set$1(updatedState, ["datasets", ix, "hidden"], isDatasetVisible);
|
|
25903
26707
|
}
|
|
25904
26708
|
});
|
|
25905
26709
|
}
|
|
@@ -26168,6 +26972,15 @@ const useLegendState = ({ chartRef, options }) => {
|
|
|
26168
26972
|
interactions: { onLegendClick },
|
|
26169
26973
|
legend: { customLegend }
|
|
26170
26974
|
} = options ?? {};
|
|
26975
|
+
useEffect(() => {
|
|
26976
|
+
var _a2;
|
|
26977
|
+
(_a2 = state == null ? void 0 : state.datasets) == null ? void 0 : _a2.forEach((ds, ix) => {
|
|
26978
|
+
var _a3, _b2;
|
|
26979
|
+
const isHidden2 = (ds == null ? void 0 : ds.hidden) ?? false;
|
|
26980
|
+
(_a3 = chartRef == null ? void 0 : chartRef.current) == null ? void 0 : _a3.setDatasetVisibility(Number(ix), !isHidden2);
|
|
26981
|
+
(_b2 = chartRef == null ? void 0 : chartRef.current) == null ? void 0 : _b2.update();
|
|
26982
|
+
});
|
|
26983
|
+
}, [state]);
|
|
26171
26984
|
const legendClick = useCallback(
|
|
26172
26985
|
(_2, legendItem2) => {
|
|
26173
26986
|
var _a2;
|
|
@@ -27289,19 +28102,21 @@ const createLegendStyle = (legendPosition, chart2) => {
|
|
|
27289
28102
|
};
|
|
27290
28103
|
const LegendItems = ({
|
|
27291
28104
|
items,
|
|
28105
|
+
legendState,
|
|
27292
28106
|
datasets,
|
|
27293
28107
|
legendClick,
|
|
27294
28108
|
chartType
|
|
27295
28109
|
}) => /* @__PURE__ */ jsx("div", { className: styles$3.legendItems, children: items == null ? void 0 : items.map((item, index2) => {
|
|
27296
|
-
var _a2;
|
|
28110
|
+
var _a2, _b2, _c;
|
|
27297
28111
|
if ((_a2 = datasets == null ? void 0 : datasets[item == null ? void 0 : item.datasetIndex]) == null ? void 0 : _a2.hideLegend) {
|
|
27298
28112
|
return null;
|
|
27299
28113
|
}
|
|
28114
|
+
const isHidden2 = (_c = (_b2 = legendState == null ? void 0 : legendState.datasets) == null ? void 0 : _b2[item == null ? void 0 : item.datasetIndex]) == null ? void 0 : _c.hidden;
|
|
27300
28115
|
return /* @__PURE__ */ jsx(
|
|
27301
28116
|
LegendItem,
|
|
27302
28117
|
{
|
|
27303
28118
|
index: index2,
|
|
27304
|
-
hidden: item == null ? void 0 : item.hidden,
|
|
28119
|
+
hidden: isHidden2 ?? (item == null ? void 0 : item.hidden),
|
|
27305
28120
|
dataset: datasets == null ? void 0 : datasets[item == null ? void 0 : item.datasetIndex],
|
|
27306
28121
|
handleClick: (_2) => legendClick(_2, item),
|
|
27307
28122
|
chartType
|
|
@@ -27319,6 +28134,7 @@ const LegendPanel = forwardRef(
|
|
|
27319
28134
|
chartRef,
|
|
27320
28135
|
options
|
|
27321
28136
|
});
|
|
28137
|
+
const { state: legendState } = useLegend() ?? {};
|
|
27322
28138
|
const [legendEnabled, setLegendEnabled] = useState((legend2 == null ? void 0 : legend2.display) ?? true);
|
|
27323
28139
|
const items = useGeneratedLabels(chartRef, generatedDatasets);
|
|
27324
28140
|
const style = createLegendStyle(legendPosition, chart2);
|
|
@@ -27346,6 +28162,7 @@ const LegendPanel = forwardRef(
|
|
|
27346
28162
|
LegendItems,
|
|
27347
28163
|
{
|
|
27348
28164
|
items,
|
|
28165
|
+
legendState,
|
|
27349
28166
|
datasets,
|
|
27350
28167
|
legendClick,
|
|
27351
28168
|
chartType
|