@ericblade/quagga2 1.7.5 → 1.7.6
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/quagga.js +6490 -6590
- package/dist/quagga.min.js +3 -3
- package/lib/quagga.js +538 -2701
- package/package.json +2 -4
- package/type-definitions/quagga.d.ts +6 -4
package/lib/quagga.js
CHANGED
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
/******/
|
|
82
82
|
/******/
|
|
83
83
|
/******/ // Load entry module and return exports
|
|
84
|
-
/******/ return __webpack_require__(__webpack_require__.s =
|
|
84
|
+
/******/ return __webpack_require__(__webpack_require__.s = 68);
|
|
85
85
|
/******/ })
|
|
86
86
|
/************************************************************************/
|
|
87
87
|
/******/ ([
|
|
@@ -171,6 +171,12 @@ module.exports = _createClass, module.exports.__esModule = true, module.exports[
|
|
|
171
171
|
|
|
172
172
|
/***/ }),
|
|
173
173
|
/* 5 */
|
|
174
|
+
/***/ (function(module, exports) {
|
|
175
|
+
|
|
176
|
+
module.exports = require("gl-matrix");
|
|
177
|
+
|
|
178
|
+
/***/ }),
|
|
179
|
+
/* 6 */
|
|
174
180
|
/***/ (function(module, exports, __webpack_require__) {
|
|
175
181
|
|
|
176
182
|
var _typeof = __webpack_require__(17)["default"];
|
|
@@ -190,10 +196,10 @@ function _possibleConstructorReturn(self, call) {
|
|
|
190
196
|
module.exports = _possibleConstructorReturn, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
191
197
|
|
|
192
198
|
/***/ }),
|
|
193
|
-
/*
|
|
199
|
+
/* 7 */
|
|
194
200
|
/***/ (function(module, exports, __webpack_require__) {
|
|
195
201
|
|
|
196
|
-
var setPrototypeOf = __webpack_require__(
|
|
202
|
+
var setPrototypeOf = __webpack_require__(41);
|
|
197
203
|
|
|
198
204
|
function _inherits(subClass, superClass) {
|
|
199
205
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
@@ -215,63 +221,12 @@ function _inherits(subClass, superClass) {
|
|
|
215
221
|
|
|
216
222
|
module.exports = _inherits, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
217
223
|
|
|
218
|
-
/***/ }),
|
|
219
|
-
/* 7 */
|
|
220
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
221
|
-
|
|
222
|
-
module.exports = {
|
|
223
|
-
EPSILON: __webpack_require__(63),
|
|
224
|
-
create: __webpack_require__(64),
|
|
225
|
-
clone: __webpack_require__(158),
|
|
226
|
-
fromValues: __webpack_require__(159),
|
|
227
|
-
copy: __webpack_require__(160),
|
|
228
|
-
set: __webpack_require__(161),
|
|
229
|
-
equals: __webpack_require__(162),
|
|
230
|
-
exactEquals: __webpack_require__(163),
|
|
231
|
-
add: __webpack_require__(164),
|
|
232
|
-
subtract: __webpack_require__(65),
|
|
233
|
-
sub: __webpack_require__(165),
|
|
234
|
-
multiply: __webpack_require__(66),
|
|
235
|
-
mul: __webpack_require__(166),
|
|
236
|
-
divide: __webpack_require__(67),
|
|
237
|
-
div: __webpack_require__(167),
|
|
238
|
-
inverse: __webpack_require__(168),
|
|
239
|
-
min: __webpack_require__(169),
|
|
240
|
-
max: __webpack_require__(170),
|
|
241
|
-
rotate: __webpack_require__(171),
|
|
242
|
-
floor: __webpack_require__(172),
|
|
243
|
-
ceil: __webpack_require__(173),
|
|
244
|
-
round: __webpack_require__(174),
|
|
245
|
-
scale: __webpack_require__(175),
|
|
246
|
-
scaleAndAdd: __webpack_require__(176),
|
|
247
|
-
distance: __webpack_require__(68),
|
|
248
|
-
dist: __webpack_require__(177),
|
|
249
|
-
squaredDistance: __webpack_require__(69),
|
|
250
|
-
sqrDist: __webpack_require__(178),
|
|
251
|
-
length: __webpack_require__(70),
|
|
252
|
-
len: __webpack_require__(179),
|
|
253
|
-
squaredLength: __webpack_require__(71),
|
|
254
|
-
sqrLen: __webpack_require__(180),
|
|
255
|
-
negate: __webpack_require__(181),
|
|
256
|
-
normalize: __webpack_require__(182),
|
|
257
|
-
dot: __webpack_require__(183),
|
|
258
|
-
cross: __webpack_require__(184),
|
|
259
|
-
lerp: __webpack_require__(185),
|
|
260
|
-
random: __webpack_require__(186),
|
|
261
|
-
transformMat2: __webpack_require__(187),
|
|
262
|
-
transformMat2d: __webpack_require__(188),
|
|
263
|
-
transformMat3: __webpack_require__(189),
|
|
264
|
-
transformMat4: __webpack_require__(190),
|
|
265
|
-
forEach: __webpack_require__(191),
|
|
266
|
-
limit: __webpack_require__(192)
|
|
267
|
-
};
|
|
268
|
-
|
|
269
224
|
/***/ }),
|
|
270
225
|
/* 8 */
|
|
271
226
|
/***/ (function(module, exports, __webpack_require__) {
|
|
272
227
|
|
|
273
228
|
// TODO(Babel 8): Remove this file.
|
|
274
|
-
var runtime = __webpack_require__(
|
|
229
|
+
var runtime = __webpack_require__(135)();
|
|
275
230
|
|
|
276
231
|
module.exports = runtime; // Copied from https://github.com/facebook/regenerator/blob/main/packages/runtime/runtime.js#L736=
|
|
277
232
|
|
|
@@ -381,8 +336,8 @@ try {
|
|
|
381
336
|
/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__);
|
|
382
337
|
/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(0);
|
|
383
338
|
/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_3__);
|
|
384
|
-
/* harmony import */ var
|
|
385
|
-
/* harmony import */ var
|
|
339
|
+
/* harmony import */ var gl_matrix__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(5);
|
|
340
|
+
/* harmony import */ var gl_matrix__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(gl_matrix__WEBPACK_IMPORTED_MODULE_4__);
|
|
386
341
|
/* harmony import */ var _array_helper__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(9);
|
|
387
342
|
/* harmony import */ var _cv_utils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(12);
|
|
388
343
|
|
|
@@ -392,9 +347,7 @@ try {
|
|
|
392
347
|
|
|
393
348
|
|
|
394
349
|
|
|
395
|
-
|
|
396
|
-
clone: gl_vec2__WEBPACK_IMPORTED_MODULE_4__["clone"]
|
|
397
|
-
};
|
|
350
|
+
gl_matrix__WEBPACK_IMPORTED_MODULE_4__["glMatrix"].setMatrixArrayType(Array);
|
|
398
351
|
|
|
399
352
|
function assertNumberPositive(val) {
|
|
400
353
|
if (val < 0) {
|
|
@@ -603,7 +556,7 @@ var ImageWrapper = /*#__PURE__*/function () {
|
|
|
603
556
|
}
|
|
604
557
|
|
|
605
558
|
label.rad = tmp > PI ? tmp - PI : tmp;
|
|
606
|
-
label.vec = vec2.clone([Math.cos(tmp), Math.sin(tmp)]);
|
|
559
|
+
label.vec = gl_matrix__WEBPACK_IMPORTED_MODULE_4__["vec2"].clone([Math.cos(tmp), Math.sin(tmp)]);
|
|
607
560
|
result.push(label);
|
|
608
561
|
}
|
|
609
562
|
}
|
|
@@ -781,20 +734,17 @@ __webpack_require__.d(__webpack_exports__, "_parseCSSDimensionValues", function(
|
|
|
781
734
|
__webpack_require__.d(__webpack_exports__, "_dimensionsConverters", function() { return /* binding */ _dimensionsConverters; });
|
|
782
735
|
__webpack_require__.d(__webpack_exports__, "computeImageArea", function() { return /* binding */ computeImageArea; });
|
|
783
736
|
|
|
784
|
-
// EXTERNAL MODULE:
|
|
785
|
-
var
|
|
737
|
+
// EXTERNAL MODULE: external "gl-matrix"
|
|
738
|
+
var external_gl_matrix_ = __webpack_require__(5);
|
|
786
739
|
|
|
787
|
-
// EXTERNAL MODULE: ./
|
|
788
|
-
var
|
|
740
|
+
// EXTERNAL MODULE: ./src/common/array_helper.ts
|
|
741
|
+
var array_helper = __webpack_require__(9);
|
|
789
742
|
|
|
790
743
|
// CONCATENATED MODULE: ./src/common/cluster.js
|
|
791
744
|
// TODO: cluster.js and cv_utils.js are pretty tightly intertwined, making for a complex conversion
|
|
792
745
|
// into typescript. be warned. :-)
|
|
793
746
|
|
|
794
|
-
|
|
795
|
-
clone: gl_vec2["clone"],
|
|
796
|
-
dot: gl_vec2["dot"]
|
|
797
|
-
};
|
|
747
|
+
external_gl_matrix_["glMatrix"].setMatrixArrayType(Array);
|
|
798
748
|
/**
|
|
799
749
|
* Creates a cluster for grouping similar orientations of datapoints
|
|
800
750
|
*/
|
|
@@ -804,7 +754,7 @@ var vec2 = {
|
|
|
804
754
|
var points = [];
|
|
805
755
|
var center = {
|
|
806
756
|
rad: 0,
|
|
807
|
-
vec: vec2.clone([0, 0])
|
|
757
|
+
vec: external_gl_matrix_["vec2"].clone([0, 0])
|
|
808
758
|
};
|
|
809
759
|
var pointMap = {};
|
|
810
760
|
|
|
@@ -822,7 +772,7 @@ var vec2 = {
|
|
|
822
772
|
}
|
|
823
773
|
|
|
824
774
|
center.rad = sum / points.length;
|
|
825
|
-
center.vec = vec2.clone([Math.cos(center.rad), Math.sin(center.rad)]);
|
|
775
|
+
center.vec = external_gl_matrix_["vec2"].clone([Math.cos(center.rad), Math.sin(center.rad)]);
|
|
826
776
|
}
|
|
827
777
|
|
|
828
778
|
function init() {
|
|
@@ -842,7 +792,7 @@ var vec2 = {
|
|
|
842
792
|
},
|
|
843
793
|
fits: function fits(otherPoint) {
|
|
844
794
|
// check cosine similarity to center-angle
|
|
845
|
-
var similarity = Math.abs(vec2.dot(otherPoint.point.vec, center.vec));
|
|
795
|
+
var similarity = Math.abs(external_gl_matrix_["vec2"].dot(otherPoint.point.vec, center.vec));
|
|
846
796
|
|
|
847
797
|
if (similarity > threshold) {
|
|
848
798
|
return true;
|
|
@@ -866,9 +816,6 @@ var vec2 = {
|
|
|
866
816
|
};
|
|
867
817
|
}
|
|
868
818
|
});
|
|
869
|
-
// EXTERNAL MODULE: ./src/common/array_helper.ts
|
|
870
|
-
var array_helper = __webpack_require__(9);
|
|
871
|
-
|
|
872
819
|
// CONCATENATED MODULE: ./src/common/cv_utils.js
|
|
873
820
|
/* eslint-disable no-mixed-operators */
|
|
874
821
|
|
|
@@ -876,13 +823,7 @@ var array_helper = __webpack_require__(9);
|
|
|
876
823
|
|
|
877
824
|
|
|
878
825
|
|
|
879
|
-
|
|
880
|
-
var cv_utils_vec2 = {
|
|
881
|
-
clone: gl_vec2["clone"]
|
|
882
|
-
};
|
|
883
|
-
var vec3 = {
|
|
884
|
-
clone: gl_vec3["clone"]
|
|
885
|
-
};
|
|
826
|
+
external_gl_matrix_["glMatrix"].setMatrixArrayType(Array);
|
|
886
827
|
/**
|
|
887
828
|
* @param x x-coordinate
|
|
888
829
|
* @param y y-coordinate
|
|
@@ -894,10 +835,10 @@ function imageRef(x, y) {
|
|
|
894
835
|
x: x,
|
|
895
836
|
y: y,
|
|
896
837
|
toVec2: function toVec2() {
|
|
897
|
-
return
|
|
838
|
+
return external_gl_matrix_["vec2"].clone([this.x, this.y]);
|
|
898
839
|
},
|
|
899
840
|
toVec3: function toVec3() {
|
|
900
|
-
return vec3.clone([this.x, this.y, 1]);
|
|
841
|
+
return external_gl_matrix_["vec3"].clone([this.x, this.y, 1]);
|
|
901
842
|
},
|
|
902
843
|
round: function round() {
|
|
903
844
|
this.x = this.x > 0.0 ? Math.floor(this.x + 0.5) : Math.floor(this.x - 0.5);
|
|
@@ -1678,7 +1619,7 @@ function computeImageArea(inputWidth, inputHeight, area) {
|
|
|
1678
1619
|
/* 13 */
|
|
1679
1620
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1680
1621
|
|
|
1681
|
-
var superPropBase = __webpack_require__(
|
|
1622
|
+
var superPropBase = __webpack_require__(136);
|
|
1682
1623
|
|
|
1683
1624
|
function _get() {
|
|
1684
1625
|
if (typeof Reflect !== "undefined" && Reflect.get) {
|
|
@@ -1841,8 +1782,8 @@ module.exports = _typeof, module.exports.__esModule = true, module.exports["defa
|
|
|
1841
1782
|
/* 18 */
|
|
1842
1783
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1843
1784
|
|
|
1844
|
-
var baseMerge = __webpack_require__(
|
|
1845
|
-
createAssigner = __webpack_require__(
|
|
1785
|
+
var baseMerge = __webpack_require__(69),
|
|
1786
|
+
createAssigner = __webpack_require__(124);
|
|
1846
1787
|
/**
|
|
1847
1788
|
* This method is like `_.assign` except that it recursively merges own and
|
|
1848
1789
|
* inherited enumerable string keyed properties of source objects into the
|
|
@@ -1885,7 +1826,7 @@ module.exports = merge;
|
|
|
1885
1826
|
/* 19 */
|
|
1886
1827
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1887
1828
|
|
|
1888
|
-
var freeGlobal = __webpack_require__(
|
|
1829
|
+
var freeGlobal = __webpack_require__(45);
|
|
1889
1830
|
/** Detect free variable `self`. */
|
|
1890
1831
|
|
|
1891
1832
|
|
|
@@ -2051,8 +1992,8 @@ var Tracer = {
|
|
|
2051
1992
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2052
1993
|
|
|
2053
1994
|
var Symbol = __webpack_require__(27),
|
|
2054
|
-
getRawTag = __webpack_require__(
|
|
2055
|
-
objectToString = __webpack_require__(
|
|
1995
|
+
getRawTag = __webpack_require__(82),
|
|
1996
|
+
objectToString = __webpack_require__(83);
|
|
2056
1997
|
/** `Object#toString` result references. */
|
|
2057
1998
|
|
|
2058
1999
|
|
|
@@ -2084,18 +2025,15 @@ module.exports = baseGetTag;
|
|
|
2084
2025
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
2085
2026
|
|
|
2086
2027
|
"use strict";
|
|
2087
|
-
/* WEBPACK VAR INJECTION */(function(global) {/* harmony import */ var
|
|
2088
|
-
/* harmony import */ var
|
|
2089
|
-
/* harmony import */ var
|
|
2090
|
-
/* harmony import */ var
|
|
2091
|
-
/* harmony import */ var
|
|
2092
|
-
/* harmony import */ var
|
|
2093
|
-
/* harmony import */ var
|
|
2094
|
-
/* harmony import */ var
|
|
2095
|
-
/* harmony import */ var
|
|
2096
|
-
/* harmony import */ var _tracer__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(21);
|
|
2097
|
-
/* harmony import */ var _skeletonizer__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(90);
|
|
2098
|
-
|
|
2028
|
+
/* WEBPACK VAR INJECTION */(function(global) {/* harmony import */ var gl_matrix__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5);
|
|
2029
|
+
/* harmony import */ var gl_matrix__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(gl_matrix__WEBPACK_IMPORTED_MODULE_0__);
|
|
2030
|
+
/* harmony import */ var _common_image_wrapper__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(10);
|
|
2031
|
+
/* harmony import */ var _common_cv_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(12);
|
|
2032
|
+
/* harmony import */ var _common_array_helper__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(9);
|
|
2033
|
+
/* harmony import */ var _common_image_debug__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(16);
|
|
2034
|
+
/* harmony import */ var _rasterizer__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(66);
|
|
2035
|
+
/* harmony import */ var _tracer__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(21);
|
|
2036
|
+
/* harmony import */ var _skeletonizer__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(67);
|
|
2099
2037
|
|
|
2100
2038
|
|
|
2101
2039
|
|
|
@@ -2104,6 +2042,7 @@ module.exports = baseGetTag;
|
|
|
2104
2042
|
|
|
2105
2043
|
|
|
2106
2044
|
|
|
2045
|
+
gl_matrix__WEBPACK_IMPORTED_MODULE_0__["glMatrix"].setMatrixArrayType(Array);
|
|
2107
2046
|
|
|
2108
2047
|
var _config;
|
|
2109
2048
|
|
|
@@ -2144,7 +2083,7 @@ var _skeletonizer;
|
|
|
2144
2083
|
|
|
2145
2084
|
function initBuffers() {
|
|
2146
2085
|
if (_config.halfSample) {
|
|
2147
|
-
_currentImageWrapper = new
|
|
2086
|
+
_currentImageWrapper = new _common_image_wrapper__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"]({
|
|
2148
2087
|
// eslint-disable-next-line no-bitwise
|
|
2149
2088
|
x: _inputImageWrapper.size.x / 2 | 0,
|
|
2150
2089
|
// eslint-disable-next-line no-bitwise
|
|
@@ -2154,27 +2093,27 @@ function initBuffers() {
|
|
|
2154
2093
|
_currentImageWrapper = _inputImageWrapper;
|
|
2155
2094
|
}
|
|
2156
2095
|
|
|
2157
|
-
_patchSize = Object(
|
|
2096
|
+
_patchSize = Object(_common_cv_utils__WEBPACK_IMPORTED_MODULE_2__["calculatePatchSize"])(_config.patchSize, _currentImageWrapper.size); // eslint-disable-next-line no-bitwise
|
|
2158
2097
|
|
|
2159
2098
|
_numPatches.x = _currentImageWrapper.size.x / _patchSize.x | 0; // eslint-disable-next-line no-bitwise
|
|
2160
2099
|
|
|
2161
2100
|
_numPatches.y = _currentImageWrapper.size.y / _patchSize.y | 0;
|
|
2162
|
-
_binaryImageWrapper = new
|
|
2163
|
-
_labelImageWrapper = new
|
|
2101
|
+
_binaryImageWrapper = new _common_image_wrapper__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"](_currentImageWrapper.size, undefined, Uint8Array, false);
|
|
2102
|
+
_labelImageWrapper = new _common_image_wrapper__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"](_patchSize, undefined, Array, true);
|
|
2164
2103
|
var skeletonImageData = new ArrayBuffer(64 * 1024);
|
|
2165
|
-
_subImageWrapper = new
|
|
2166
|
-
_skelImageWrapper = new
|
|
2167
|
-
_skeletonizer = Object(
|
|
2104
|
+
_subImageWrapper = new _common_image_wrapper__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"](_patchSize, new Uint8Array(skeletonImageData, 0, _patchSize.x * _patchSize.y));
|
|
2105
|
+
_skelImageWrapper = new _common_image_wrapper__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"](_patchSize, new Uint8Array(skeletonImageData, _patchSize.x * _patchSize.y * 3, _patchSize.x * _patchSize.y), undefined, true);
|
|
2106
|
+
_skeletonizer = Object(_skeletonizer__WEBPACK_IMPORTED_MODULE_7__[/* default */ "a"])(typeof window !== 'undefined' ? window : typeof self !== 'undefined' ? self : global, {
|
|
2168
2107
|
size: _patchSize.x
|
|
2169
2108
|
}, skeletonImageData);
|
|
2170
|
-
_imageToPatchGrid = new
|
|
2109
|
+
_imageToPatchGrid = new _common_image_wrapper__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"]({
|
|
2171
2110
|
// eslint-disable-next-line no-bitwise
|
|
2172
2111
|
x: _currentImageWrapper.size.x / _subImageWrapper.size.x | 0,
|
|
2173
2112
|
// eslint-disable-next-line no-bitwise
|
|
2174
2113
|
y: _currentImageWrapper.size.y / _subImageWrapper.size.y | 0
|
|
2175
2114
|
}, undefined, Array, true);
|
|
2176
|
-
_patchGrid = new
|
|
2177
|
-
_patchLabelGrid = new
|
|
2115
|
+
_patchGrid = new _common_image_wrapper__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"](_imageToPatchGrid.size, undefined, undefined, true);
|
|
2116
|
+
_patchLabelGrid = new _common_image_wrapper__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"](_imageToPatchGrid.size, undefined, Int32Array, true);
|
|
2178
2117
|
}
|
|
2179
2118
|
|
|
2180
2119
|
function initCanvas() {
|
|
@@ -2227,13 +2166,13 @@ function boxFromPatches(patches) {
|
|
|
2227
2166
|
}
|
|
2228
2167
|
|
|
2229
2168
|
overAvg = (180 - overAvg) * Math.PI / 180;
|
|
2230
|
-
transMat =
|
|
2169
|
+
transMat = gl_matrix__WEBPACK_IMPORTED_MODULE_0__["mat2"].copy(gl_matrix__WEBPACK_IMPORTED_MODULE_0__["mat2"].create(), [Math.cos(overAvg), Math.sin(overAvg), -Math.sin(overAvg), Math.cos(overAvg)]); // iterate over patches and rotate by angle
|
|
2231
2170
|
|
|
2232
2171
|
for (i = 0; i < patches.length; i++) {
|
|
2233
2172
|
patch = patches[i];
|
|
2234
2173
|
|
|
2235
2174
|
for (j = 0; j < 4; j++) {
|
|
2236
|
-
|
|
2175
|
+
gl_matrix__WEBPACK_IMPORTED_MODULE_0__["vec2"].transformMat2(patch.box[j], patch.box[j], transMat);
|
|
2237
2176
|
}
|
|
2238
2177
|
|
|
2239
2178
|
if (false) {}
|
|
@@ -2268,16 +2207,16 @@ function boxFromPatches(patches) {
|
|
|
2268
2207
|
|
|
2269
2208
|
scale = _config.halfSample ? 2 : 1; // reverse rotation;
|
|
2270
2209
|
|
|
2271
|
-
transMat =
|
|
2210
|
+
transMat = gl_matrix__WEBPACK_IMPORTED_MODULE_0__["mat2"].invert(transMat, transMat);
|
|
2272
2211
|
|
|
2273
2212
|
for (j = 0; j < 4; j++) {
|
|
2274
|
-
|
|
2213
|
+
gl_matrix__WEBPACK_IMPORTED_MODULE_0__["vec2"].transformMat2(box[j], box[j], transMat);
|
|
2275
2214
|
}
|
|
2276
2215
|
|
|
2277
2216
|
if (false) {}
|
|
2278
2217
|
|
|
2279
2218
|
for (j = 0; j < 4; j++) {
|
|
2280
|
-
|
|
2219
|
+
gl_matrix__WEBPACK_IMPORTED_MODULE_0__["vec2"].scale(box[j], box[j], scale);
|
|
2281
2220
|
}
|
|
2282
2221
|
|
|
2283
2222
|
return box;
|
|
@@ -2288,7 +2227,7 @@ function boxFromPatches(patches) {
|
|
|
2288
2227
|
|
|
2289
2228
|
|
|
2290
2229
|
function binarizeImage() {
|
|
2291
|
-
Object(
|
|
2230
|
+
Object(_common_cv_utils__WEBPACK_IMPORTED_MODULE_2__["otsuThreshold"])(_currentImageWrapper, _binaryImageWrapper);
|
|
2292
2231
|
|
|
2293
2232
|
_binaryImageWrapper.zeroBorder();
|
|
2294
2233
|
|
|
@@ -2320,8 +2259,8 @@ function findPatches() {
|
|
|
2320
2259
|
|
|
2321
2260
|
_skelImageWrapper.zeroBorder();
|
|
2322
2261
|
|
|
2323
|
-
|
|
2324
|
-
rasterizer =
|
|
2262
|
+
_common_array_helper__WEBPACK_IMPORTED_MODULE_3__[/* default */ "a"].init(_labelImageWrapper.data, 0);
|
|
2263
|
+
rasterizer = _rasterizer__WEBPACK_IMPORTED_MODULE_5__[/* default */ "a"].create(_skelImageWrapper, _labelImageWrapper);
|
|
2325
2264
|
rasterResult = rasterizer.rasterize(0);
|
|
2326
2265
|
|
|
2327
2266
|
if (false) {} // calculate moments from the skeletonized patch
|
|
@@ -2422,8 +2361,8 @@ function findBoxes(topLabels, maxLabel) {
|
|
|
2422
2361
|
|
|
2423
2362
|
|
|
2424
2363
|
function similarMoments(moments) {
|
|
2425
|
-
var clusters = Object(
|
|
2426
|
-
var topCluster = Object(
|
|
2364
|
+
var clusters = Object(_common_cv_utils__WEBPACK_IMPORTED_MODULE_2__["cluster"])(moments, 0.90);
|
|
2365
|
+
var topCluster = Object(_common_cv_utils__WEBPACK_IMPORTED_MODULE_2__["topGeneric"])(clusters, 1, function (e) {
|
|
2427
2366
|
return e.getPoints().length;
|
|
2428
2367
|
});
|
|
2429
2368
|
var points = [];
|
|
@@ -2441,7 +2380,7 @@ function similarMoments(moments) {
|
|
|
2441
2380
|
}
|
|
2442
2381
|
|
|
2443
2382
|
function skeletonize(x, y) {
|
|
2444
|
-
_binaryImageWrapper.subImageAsCopy(_subImageWrapper, Object(
|
|
2383
|
+
_binaryImageWrapper.subImageAsCopy(_subImageWrapper, Object(_common_cv_utils__WEBPACK_IMPORTED_MODULE_2__["imageRef"])(x, y));
|
|
2445
2384
|
|
|
2446
2385
|
_skeletonizer.skeletonize(); // Show skeleton if requested
|
|
2447
2386
|
|
|
@@ -2496,10 +2435,10 @@ function describePatch(moments, patchPos, x, y) {
|
|
|
2496
2435
|
x: x,
|
|
2497
2436
|
y: y
|
|
2498
2437
|
},
|
|
2499
|
-
box: [
|
|
2438
|
+
box: [gl_matrix__WEBPACK_IMPORTED_MODULE_0__["vec2"].clone([x, y]), gl_matrix__WEBPACK_IMPORTED_MODULE_0__["vec2"].clone([x + _subImageWrapper.size.x, y]), gl_matrix__WEBPACK_IMPORTED_MODULE_0__["vec2"].clone([x + _subImageWrapper.size.x, y + _subImageWrapper.size.y]), gl_matrix__WEBPACK_IMPORTED_MODULE_0__["vec2"].clone([x, y + _subImageWrapper.size.y])],
|
|
2500
2439
|
moments: matchingMoments,
|
|
2501
2440
|
rad: avg,
|
|
2502
|
-
vec:
|
|
2441
|
+
vec: gl_matrix__WEBPACK_IMPORTED_MODULE_0__["vec2"].clone([Math.cos(avg), Math.sin(avg)])
|
|
2503
2442
|
};
|
|
2504
2443
|
patchesFound.push(patch);
|
|
2505
2444
|
}
|
|
@@ -2552,9 +2491,9 @@ function rasterizeAngularSimilarity(patchesFound) {
|
|
|
2552
2491
|
|
|
2553
2492
|
_patchLabelGrid.data[currentIdx] = label;
|
|
2554
2493
|
|
|
2555
|
-
for (dir = 0; dir <
|
|
2556
|
-
y = current.y +
|
|
2557
|
-
x = current.x +
|
|
2494
|
+
for (dir = 0; dir < _tracer__WEBPACK_IMPORTED_MODULE_6__[/* default */ "a"].searchDirections.length; dir++) {
|
|
2495
|
+
y = current.y + _tracer__WEBPACK_IMPORTED_MODULE_6__[/* default */ "a"].searchDirections[dir][0];
|
|
2496
|
+
x = current.x + _tracer__WEBPACK_IMPORTED_MODULE_6__[/* default */ "a"].searchDirections[dir][1];
|
|
2558
2497
|
idx = y * _patchLabelGrid.size.x + x; // continue if patch empty
|
|
2559
2498
|
|
|
2560
2499
|
if (_patchGrid.data[idx] === 0) {
|
|
@@ -2564,7 +2503,7 @@ function rasterizeAngularSimilarity(patchesFound) {
|
|
|
2564
2503
|
}
|
|
2565
2504
|
|
|
2566
2505
|
if (_patchLabelGrid.data[idx] === 0) {
|
|
2567
|
-
similarity = Math.abs(
|
|
2506
|
+
similarity = Math.abs(gl_matrix__WEBPACK_IMPORTED_MODULE_0__["vec2"].dot(_imageToPatchGrid.data[idx].vec, currentPatch.vec));
|
|
2568
2507
|
|
|
2569
2508
|
if (similarity > threshold) {
|
|
2570
2509
|
trace(idx);
|
|
@@ -2575,9 +2514,9 @@ function rasterizeAngularSimilarity(patchesFound) {
|
|
|
2575
2514
|
} // prepare for finding the right patches
|
|
2576
2515
|
|
|
2577
2516
|
|
|
2578
|
-
|
|
2579
|
-
|
|
2580
|
-
|
|
2517
|
+
_common_array_helper__WEBPACK_IMPORTED_MODULE_3__[/* default */ "a"].init(_patchGrid.data, 0);
|
|
2518
|
+
_common_array_helper__WEBPACK_IMPORTED_MODULE_3__[/* default */ "a"].init(_patchLabelGrid.data, 0);
|
|
2519
|
+
_common_array_helper__WEBPACK_IMPORTED_MODULE_3__[/* default */ "a"].init(_imageToPatchGrid.data, null);
|
|
2581
2520
|
|
|
2582
2521
|
for (j = 0; j < patchesFound.length; j++) {
|
|
2583
2522
|
patch = patchesFound[j];
|
|
@@ -2609,7 +2548,7 @@ function rasterizeAngularSimilarity(patchesFound) {
|
|
|
2609
2548
|
},
|
|
2610
2549
|
locate: function locate() {
|
|
2611
2550
|
if (_config.halfSample) {
|
|
2612
|
-
Object(
|
|
2551
|
+
Object(_common_cv_utils__WEBPACK_IMPORTED_MODULE_2__["halfSample"])(_inputImageWrapper, _currentImageWrapper);
|
|
2613
2552
|
}
|
|
2614
2553
|
|
|
2615
2554
|
binarizeImage();
|
|
@@ -2644,7 +2583,7 @@ function rasterizeAngularSimilarity(patchesFound) {
|
|
|
2644
2583
|
var area; // calculate width and height based on area
|
|
2645
2584
|
|
|
2646
2585
|
if (inputStream.getConfig().area) {
|
|
2647
|
-
area = Object(
|
|
2586
|
+
area = Object(_common_cv_utils__WEBPACK_IMPORTED_MODULE_2__["computeImageArea"])(width, height, inputStream.getConfig().area);
|
|
2648
2587
|
inputStream.setTopRight({
|
|
2649
2588
|
x: area.sx,
|
|
2650
2589
|
y: area.sy
|
|
@@ -2661,7 +2600,7 @@ function rasterizeAngularSimilarity(patchesFound) {
|
|
|
2661
2600
|
x: Math.floor(width * thisHalfSample),
|
|
2662
2601
|
y: Math.floor(height * thisHalfSample)
|
|
2663
2602
|
};
|
|
2664
|
-
patchSize = Object(
|
|
2603
|
+
patchSize = Object(_common_cv_utils__WEBPACK_IMPORTED_MODULE_2__["calculatePatchSize"])(config.patchSize, size);
|
|
2665
2604
|
|
|
2666
2605
|
if (false) {}
|
|
2667
2606
|
|
|
@@ -2675,17 +2614,17 @@ function rasterizeAngularSimilarity(patchesFound) {
|
|
|
2675
2614
|
throw new Error("Image dimensions do not comply with the current settings: Width (".concat(width, " )and height (").concat(height, ") must a multiple of ").concat(patchSize.x));
|
|
2676
2615
|
}
|
|
2677
2616
|
});
|
|
2678
|
-
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(
|
|
2617
|
+
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(46)))
|
|
2679
2618
|
|
|
2680
2619
|
/***/ }),
|
|
2681
2620
|
/* 24 */
|
|
2682
2621
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2683
2622
|
|
|
2684
|
-
var listCacheClear = __webpack_require__(
|
|
2685
|
-
listCacheDelete = __webpack_require__(
|
|
2686
|
-
listCacheGet = __webpack_require__(
|
|
2687
|
-
listCacheHas = __webpack_require__(
|
|
2688
|
-
listCacheSet = __webpack_require__(
|
|
2623
|
+
var listCacheClear = __webpack_require__(71),
|
|
2624
|
+
listCacheDelete = __webpack_require__(72),
|
|
2625
|
+
listCacheGet = __webpack_require__(73),
|
|
2626
|
+
listCacheHas = __webpack_require__(74),
|
|
2627
|
+
listCacheSet = __webpack_require__(75);
|
|
2689
2628
|
/**
|
|
2690
2629
|
* Creates an list cache object.
|
|
2691
2630
|
*
|
|
@@ -2800,7 +2739,7 @@ module.exports = Symbol;
|
|
|
2800
2739
|
/* 28 */
|
|
2801
2740
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2802
2741
|
|
|
2803
|
-
var getNative = __webpack_require__(
|
|
2742
|
+
var getNative = __webpack_require__(35);
|
|
2804
2743
|
/* Built-in method references that are verified to be native. */
|
|
2805
2744
|
|
|
2806
2745
|
|
|
@@ -2811,7 +2750,7 @@ module.exports = nativeCreate;
|
|
|
2811
2750
|
/* 29 */
|
|
2812
2751
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2813
2752
|
|
|
2814
|
-
var isKeyable = __webpack_require__(
|
|
2753
|
+
var isKeyable = __webpack_require__(96);
|
|
2815
2754
|
/**
|
|
2816
2755
|
* Gets the data for `map`.
|
|
2817
2756
|
*
|
|
@@ -2833,7 +2772,7 @@ module.exports = getMapData;
|
|
|
2833
2772
|
/* 30 */
|
|
2834
2773
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2835
2774
|
|
|
2836
|
-
var baseIsArguments = __webpack_require__(
|
|
2775
|
+
var baseIsArguments = __webpack_require__(111),
|
|
2837
2776
|
isObjectLike = __webpack_require__(20);
|
|
2838
2777
|
/** Used for built-in method references. */
|
|
2839
2778
|
|
|
@@ -2902,9 +2841,9 @@ module.exports = isIndex;
|
|
|
2902
2841
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2903
2842
|
|
|
2904
2843
|
var isArray = __webpack_require__(15),
|
|
2905
|
-
isKey = __webpack_require__(
|
|
2906
|
-
stringToPath = __webpack_require__(
|
|
2907
|
-
toString = __webpack_require__(
|
|
2844
|
+
isKey = __webpack_require__(143),
|
|
2845
|
+
stringToPath = __webpack_require__(144),
|
|
2846
|
+
toString = __webpack_require__(147);
|
|
2908
2847
|
/**
|
|
2909
2848
|
* Casts `value` to a path array if it's not one.
|
|
2910
2849
|
*
|
|
@@ -2929,13 +2868,13 @@ module.exports = castPath;
|
|
|
2929
2868
|
/* 33 */
|
|
2930
2869
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2931
2870
|
|
|
2932
|
-
var arrayWithHoles = __webpack_require__(
|
|
2871
|
+
var arrayWithHoles = __webpack_require__(132);
|
|
2933
2872
|
|
|
2934
|
-
var iterableToArrayLimit = __webpack_require__(
|
|
2873
|
+
var iterableToArrayLimit = __webpack_require__(133);
|
|
2935
2874
|
|
|
2936
|
-
var unsupportedIterableToArray = __webpack_require__(
|
|
2875
|
+
var unsupportedIterableToArray = __webpack_require__(60);
|
|
2937
2876
|
|
|
2938
|
-
var nonIterableRest = __webpack_require__(
|
|
2877
|
+
var nonIterableRest = __webpack_require__(134);
|
|
2939
2878
|
|
|
2940
2879
|
function _slicedToArray(arr, i) {
|
|
2941
2880
|
return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest();
|
|
@@ -2947,13 +2886,13 @@ module.exports = _slicedToArray, module.exports.__esModule = true, module.export
|
|
|
2947
2886
|
/* 34 */
|
|
2948
2887
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2949
2888
|
|
|
2950
|
-
var arrayWithoutHoles = __webpack_require__(
|
|
2889
|
+
var arrayWithoutHoles = __webpack_require__(137);
|
|
2951
2890
|
|
|
2952
|
-
var iterableToArray = __webpack_require__(
|
|
2891
|
+
var iterableToArray = __webpack_require__(138);
|
|
2953
2892
|
|
|
2954
|
-
var unsupportedIterableToArray = __webpack_require__(
|
|
2893
|
+
var unsupportedIterableToArray = __webpack_require__(60);
|
|
2955
2894
|
|
|
2956
|
-
var nonIterableSpread = __webpack_require__(
|
|
2895
|
+
var nonIterableSpread = __webpack_require__(139);
|
|
2957
2896
|
|
|
2958
2897
|
function _toConsumableArray(arr) {
|
|
2959
2898
|
return arrayWithoutHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableSpread();
|
|
@@ -2965,27 +2904,8 @@ module.exports = _toConsumableArray, module.exports.__esModule = true, module.ex
|
|
|
2965
2904
|
/* 35 */
|
|
2966
2905
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2967
2906
|
|
|
2968
|
-
|
|
2969
|
-
|
|
2970
|
-
transpose: __webpack_require__(256),
|
|
2971
|
-
multiply: __webpack_require__(257),
|
|
2972
|
-
identity: __webpack_require__(258),
|
|
2973
|
-
adjoint: __webpack_require__(259),
|
|
2974
|
-
rotate: __webpack_require__(260),
|
|
2975
|
-
invert: __webpack_require__(261),
|
|
2976
|
-
create: __webpack_require__(262),
|
|
2977
|
-
scale: __webpack_require__(263),
|
|
2978
|
-
copy: __webpack_require__(264),
|
|
2979
|
-
frob: __webpack_require__(265),
|
|
2980
|
-
ldu: __webpack_require__(266)
|
|
2981
|
-
};
|
|
2982
|
-
|
|
2983
|
-
/***/ }),
|
|
2984
|
-
/* 36 */
|
|
2985
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
2986
|
-
|
|
2987
|
-
var baseIsNative = __webpack_require__(104),
|
|
2988
|
-
getValue = __webpack_require__(110);
|
|
2907
|
+
var baseIsNative = __webpack_require__(81),
|
|
2908
|
+
getValue = __webpack_require__(87);
|
|
2989
2909
|
/**
|
|
2990
2910
|
* Gets the native function at `key` of `object`.
|
|
2991
2911
|
*
|
|
@@ -3004,7 +2924,7 @@ function getNative(object, key) {
|
|
|
3004
2924
|
module.exports = getNative;
|
|
3005
2925
|
|
|
3006
2926
|
/***/ }),
|
|
3007
|
-
/*
|
|
2927
|
+
/* 36 */
|
|
3008
2928
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3009
2929
|
|
|
3010
2930
|
var baseGetTag = __webpack_require__(22),
|
|
@@ -3048,10 +2968,10 @@ function isFunction(value) {
|
|
|
3048
2968
|
module.exports = isFunction;
|
|
3049
2969
|
|
|
3050
2970
|
/***/ }),
|
|
3051
|
-
/*
|
|
2971
|
+
/* 37 */
|
|
3052
2972
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3053
2973
|
|
|
3054
|
-
var defineProperty = __webpack_require__(
|
|
2974
|
+
var defineProperty = __webpack_require__(49);
|
|
3055
2975
|
/**
|
|
3056
2976
|
* The base implementation of `assignValue` and `assignMergeValue` without
|
|
3057
2977
|
* value checks.
|
|
@@ -3079,7 +2999,7 @@ function baseAssignValue(object, key, value) {
|
|
|
3079
2999
|
module.exports = baseAssignValue;
|
|
3080
3000
|
|
|
3081
3001
|
/***/ }),
|
|
3082
|
-
/*
|
|
3002
|
+
/* 38 */
|
|
3083
3003
|
/***/ (function(module, exports) {
|
|
3084
3004
|
|
|
3085
3005
|
module.exports = function (module) {
|
|
@@ -3108,11 +3028,11 @@ module.exports = function (module) {
|
|
|
3108
3028
|
};
|
|
3109
3029
|
|
|
3110
3030
|
/***/ }),
|
|
3111
|
-
/*
|
|
3031
|
+
/* 39 */
|
|
3112
3032
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3113
3033
|
|
|
3114
|
-
var isFunction = __webpack_require__(
|
|
3115
|
-
isLength = __webpack_require__(
|
|
3034
|
+
var isFunction = __webpack_require__(36),
|
|
3035
|
+
isLength = __webpack_require__(40);
|
|
3116
3036
|
/**
|
|
3117
3037
|
* Checks if `value` is array-like. A value is considered array-like if it's
|
|
3118
3038
|
* not a function and has a `value.length` that's an integer greater than or
|
|
@@ -3147,7 +3067,7 @@ function isArrayLike(value) {
|
|
|
3147
3067
|
module.exports = isArrayLike;
|
|
3148
3068
|
|
|
3149
3069
|
/***/ }),
|
|
3150
|
-
/*
|
|
3070
|
+
/* 40 */
|
|
3151
3071
|
/***/ (function(module, exports) {
|
|
3152
3072
|
|
|
3153
3073
|
/** Used as references for various `Number` constants. */
|
|
@@ -3186,7 +3106,7 @@ function isLength(value) {
|
|
|
3186
3106
|
module.exports = isLength;
|
|
3187
3107
|
|
|
3188
3108
|
/***/ }),
|
|
3189
|
-
/*
|
|
3109
|
+
/* 41 */
|
|
3190
3110
|
/***/ (function(module, exports) {
|
|
3191
3111
|
|
|
3192
3112
|
function _setPrototypeOf(o, p) {
|
|
@@ -3200,7 +3120,7 @@ function _setPrototypeOf(o, p) {
|
|
|
3200
3120
|
module.exports = _setPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
3201
3121
|
|
|
3202
3122
|
/***/ }),
|
|
3203
|
-
/*
|
|
3123
|
+
/* 42 */
|
|
3204
3124
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3205
3125
|
|
|
3206
3126
|
var baseGetTag = __webpack_require__(22),
|
|
@@ -3234,10 +3154,10 @@ function isSymbol(value) {
|
|
|
3234
3154
|
module.exports = isSymbol;
|
|
3235
3155
|
|
|
3236
3156
|
/***/ }),
|
|
3237
|
-
/*
|
|
3157
|
+
/* 43 */
|
|
3238
3158
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3239
3159
|
|
|
3240
|
-
var isSymbol = __webpack_require__(
|
|
3160
|
+
var isSymbol = __webpack_require__(42);
|
|
3241
3161
|
/** Used as references for various `Number` constants. */
|
|
3242
3162
|
|
|
3243
3163
|
|
|
@@ -3262,10 +3182,10 @@ function toKey(value) {
|
|
|
3262
3182
|
module.exports = toKey;
|
|
3263
3183
|
|
|
3264
3184
|
/***/ }),
|
|
3265
|
-
/*
|
|
3185
|
+
/* 44 */
|
|
3266
3186
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3267
3187
|
|
|
3268
|
-
var getNative = __webpack_require__(
|
|
3188
|
+
var getNative = __webpack_require__(35),
|
|
3269
3189
|
root = __webpack_require__(19);
|
|
3270
3190
|
/* Built-in method references that are verified to be native. */
|
|
3271
3191
|
|
|
@@ -3274,16 +3194,16 @@ var Map = getNative(root, 'Map');
|
|
|
3274
3194
|
module.exports = Map;
|
|
3275
3195
|
|
|
3276
3196
|
/***/ }),
|
|
3277
|
-
/*
|
|
3197
|
+
/* 45 */
|
|
3278
3198
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3279
3199
|
|
|
3280
3200
|
/* WEBPACK VAR INJECTION */(function(global) {/** Detect free variable `global` from Node.js. */
|
|
3281
3201
|
var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;
|
|
3282
3202
|
module.exports = freeGlobal;
|
|
3283
|
-
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(
|
|
3203
|
+
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(46)))
|
|
3284
3204
|
|
|
3285
3205
|
/***/ }),
|
|
3286
|
-
/*
|
|
3206
|
+
/* 46 */
|
|
3287
3207
|
/***/ (function(module, exports) {
|
|
3288
3208
|
|
|
3289
3209
|
var g; // This works in non-strict mode
|
|
@@ -3306,14 +3226,14 @@ try {
|
|
|
3306
3226
|
module.exports = g;
|
|
3307
3227
|
|
|
3308
3228
|
/***/ }),
|
|
3309
|
-
/*
|
|
3229
|
+
/* 47 */
|
|
3310
3230
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3311
3231
|
|
|
3312
|
-
var mapCacheClear = __webpack_require__(
|
|
3313
|
-
mapCacheDelete = __webpack_require__(
|
|
3314
|
-
mapCacheGet = __webpack_require__(
|
|
3315
|
-
mapCacheHas = __webpack_require__(
|
|
3316
|
-
mapCacheSet = __webpack_require__(
|
|
3232
|
+
var mapCacheClear = __webpack_require__(88),
|
|
3233
|
+
mapCacheDelete = __webpack_require__(95),
|
|
3234
|
+
mapCacheGet = __webpack_require__(97),
|
|
3235
|
+
mapCacheHas = __webpack_require__(98),
|
|
3236
|
+
mapCacheSet = __webpack_require__(99);
|
|
3317
3237
|
/**
|
|
3318
3238
|
* Creates a map cache object to store key-value pairs.
|
|
3319
3239
|
*
|
|
@@ -3343,10 +3263,10 @@ MapCache.prototype.set = mapCacheSet;
|
|
|
3343
3263
|
module.exports = MapCache;
|
|
3344
3264
|
|
|
3345
3265
|
/***/ }),
|
|
3346
|
-
/*
|
|
3266
|
+
/* 48 */
|
|
3347
3267
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3348
3268
|
|
|
3349
|
-
var baseAssignValue = __webpack_require__(
|
|
3269
|
+
var baseAssignValue = __webpack_require__(37),
|
|
3350
3270
|
eq = __webpack_require__(26);
|
|
3351
3271
|
/**
|
|
3352
3272
|
* This function is like `assignValue` except that it doesn't assign
|
|
@@ -3368,10 +3288,10 @@ function assignMergeValue(object, key, value) {
|
|
|
3368
3288
|
module.exports = assignMergeValue;
|
|
3369
3289
|
|
|
3370
3290
|
/***/ }),
|
|
3371
|
-
/*
|
|
3291
|
+
/* 49 */
|
|
3372
3292
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3373
3293
|
|
|
3374
|
-
var getNative = __webpack_require__(
|
|
3294
|
+
var getNative = __webpack_require__(35);
|
|
3375
3295
|
|
|
3376
3296
|
var defineProperty = function () {
|
|
3377
3297
|
try {
|
|
@@ -3384,10 +3304,10 @@ var defineProperty = function () {
|
|
|
3384
3304
|
module.exports = defineProperty;
|
|
3385
3305
|
|
|
3386
3306
|
/***/ }),
|
|
3387
|
-
/*
|
|
3307
|
+
/* 50 */
|
|
3388
3308
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3389
3309
|
|
|
3390
|
-
var overArg = __webpack_require__(
|
|
3310
|
+
var overArg = __webpack_require__(110);
|
|
3391
3311
|
/** Built-in value references. */
|
|
3392
3312
|
|
|
3393
3313
|
|
|
@@ -3395,7 +3315,7 @@ var getPrototype = overArg(Object.getPrototypeOf, Object);
|
|
|
3395
3315
|
module.exports = getPrototype;
|
|
3396
3316
|
|
|
3397
3317
|
/***/ }),
|
|
3398
|
-
/*
|
|
3318
|
+
/* 51 */
|
|
3399
3319
|
/***/ (function(module, exports) {
|
|
3400
3320
|
|
|
3401
3321
|
/** Used for built-in method references. */
|
|
@@ -3417,11 +3337,11 @@ function isPrototype(value) {
|
|
|
3417
3337
|
module.exports = isPrototype;
|
|
3418
3338
|
|
|
3419
3339
|
/***/ }),
|
|
3420
|
-
/*
|
|
3340
|
+
/* 52 */
|
|
3421
3341
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3422
3342
|
|
|
3423
3343
|
/* WEBPACK VAR INJECTION */(function(module) {var root = __webpack_require__(19),
|
|
3424
|
-
stubFalse = __webpack_require__(
|
|
3344
|
+
stubFalse = __webpack_require__(113);
|
|
3425
3345
|
/** Detect free variable `exports`. */
|
|
3426
3346
|
|
|
3427
3347
|
|
|
@@ -3458,15 +3378,15 @@ var nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined;
|
|
|
3458
3378
|
|
|
3459
3379
|
var isBuffer = nativeIsBuffer || stubFalse;
|
|
3460
3380
|
module.exports = isBuffer;
|
|
3461
|
-
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(
|
|
3381
|
+
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(38)(module)))
|
|
3462
3382
|
|
|
3463
3383
|
/***/ }),
|
|
3464
|
-
/*
|
|
3384
|
+
/* 53 */
|
|
3465
3385
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3466
3386
|
|
|
3467
|
-
var baseIsTypedArray = __webpack_require__(
|
|
3468
|
-
baseUnary = __webpack_require__(
|
|
3469
|
-
nodeUtil = __webpack_require__(
|
|
3387
|
+
var baseIsTypedArray = __webpack_require__(115),
|
|
3388
|
+
baseUnary = __webpack_require__(116),
|
|
3389
|
+
nodeUtil = __webpack_require__(117);
|
|
3470
3390
|
/* Node.js helper references. */
|
|
3471
3391
|
|
|
3472
3392
|
|
|
@@ -3493,7 +3413,7 @@ var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedA
|
|
|
3493
3413
|
module.exports = isTypedArray;
|
|
3494
3414
|
|
|
3495
3415
|
/***/ }),
|
|
3496
|
-
/*
|
|
3416
|
+
/* 54 */
|
|
3497
3417
|
/***/ (function(module, exports) {
|
|
3498
3418
|
|
|
3499
3419
|
/**
|
|
@@ -3519,10 +3439,10 @@ function safeGet(object, key) {
|
|
|
3519
3439
|
module.exports = safeGet;
|
|
3520
3440
|
|
|
3521
3441
|
/***/ }),
|
|
3522
|
-
/*
|
|
3442
|
+
/* 55 */
|
|
3523
3443
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3524
3444
|
|
|
3525
|
-
var baseAssignValue = __webpack_require__(
|
|
3445
|
+
var baseAssignValue = __webpack_require__(37),
|
|
3526
3446
|
eq = __webpack_require__(26);
|
|
3527
3447
|
/** Used for built-in method references. */
|
|
3528
3448
|
|
|
@@ -3553,12 +3473,12 @@ function assignValue(object, key, value) {
|
|
|
3553
3473
|
module.exports = assignValue;
|
|
3554
3474
|
|
|
3555
3475
|
/***/ }),
|
|
3556
|
-
/*
|
|
3476
|
+
/* 56 */
|
|
3557
3477
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3558
3478
|
|
|
3559
|
-
var arrayLikeKeys = __webpack_require__(
|
|
3560
|
-
baseKeysIn = __webpack_require__(
|
|
3561
|
-
isArrayLike = __webpack_require__(
|
|
3479
|
+
var arrayLikeKeys = __webpack_require__(120),
|
|
3480
|
+
baseKeysIn = __webpack_require__(122),
|
|
3481
|
+
isArrayLike = __webpack_require__(39);
|
|
3562
3482
|
/**
|
|
3563
3483
|
* Creates an array of the own and inherited enumerable property names of `object`.
|
|
3564
3484
|
*
|
|
@@ -3591,7 +3511,7 @@ function keysIn(object) {
|
|
|
3591
3511
|
module.exports = keysIn;
|
|
3592
3512
|
|
|
3593
3513
|
/***/ }),
|
|
3594
|
-
/*
|
|
3514
|
+
/* 57 */
|
|
3595
3515
|
/***/ (function(module, exports) {
|
|
3596
3516
|
|
|
3597
3517
|
/**
|
|
@@ -3617,10 +3537,10 @@ function identity(value) {
|
|
|
3617
3537
|
module.exports = identity;
|
|
3618
3538
|
|
|
3619
3539
|
/***/ }),
|
|
3620
|
-
/*
|
|
3540
|
+
/* 58 */
|
|
3621
3541
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3622
3542
|
|
|
3623
|
-
var apply = __webpack_require__(
|
|
3543
|
+
var apply = __webpack_require__(126);
|
|
3624
3544
|
/* Built-in method references for those with the same name as other `lodash` methods. */
|
|
3625
3545
|
|
|
3626
3546
|
|
|
@@ -3662,11 +3582,11 @@ function overRest(func, start, transform) {
|
|
|
3662
3582
|
module.exports = overRest;
|
|
3663
3583
|
|
|
3664
3584
|
/***/ }),
|
|
3665
|
-
/*
|
|
3585
|
+
/* 59 */
|
|
3666
3586
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3667
3587
|
|
|
3668
|
-
var baseSetToString = __webpack_require__(
|
|
3669
|
-
shortOut = __webpack_require__(
|
|
3588
|
+
var baseSetToString = __webpack_require__(127),
|
|
3589
|
+
shortOut = __webpack_require__(129);
|
|
3670
3590
|
/**
|
|
3671
3591
|
* Sets the `toString` method of `func` to return `string`.
|
|
3672
3592
|
*
|
|
@@ -3681,10 +3601,10 @@ var setToString = shortOut(baseSetToString);
|
|
|
3681
3601
|
module.exports = setToString;
|
|
3682
3602
|
|
|
3683
3603
|
/***/ }),
|
|
3684
|
-
/*
|
|
3604
|
+
/* 60 */
|
|
3685
3605
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3686
3606
|
|
|
3687
|
-
var arrayLikeToArray = __webpack_require__(
|
|
3607
|
+
var arrayLikeToArray = __webpack_require__(61);
|
|
3688
3608
|
|
|
3689
3609
|
function _unsupportedIterableToArray(o, minLen) {
|
|
3690
3610
|
if (!o) return;
|
|
@@ -3698,7 +3618,7 @@ function _unsupportedIterableToArray(o, minLen) {
|
|
|
3698
3618
|
module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
3699
3619
|
|
|
3700
3620
|
/***/ }),
|
|
3701
|
-
/*
|
|
3621
|
+
/* 61 */
|
|
3702
3622
|
/***/ (function(module, exports) {
|
|
3703
3623
|
|
|
3704
3624
|
function _arrayLikeToArray(arr, len) {
|
|
@@ -3714,583 +3634,138 @@ function _arrayLikeToArray(arr, len) {
|
|
|
3714
3634
|
module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
3715
3635
|
|
|
3716
3636
|
/***/ }),
|
|
3717
|
-
/*
|
|
3718
|
-
/***/ (function(module, exports) {
|
|
3719
|
-
|
|
3720
|
-
module.exports = 0.000001;
|
|
3721
|
-
|
|
3722
|
-
/***/ }),
|
|
3723
|
-
/* 64 */
|
|
3724
|
-
/***/ (function(module, exports) {
|
|
3637
|
+
/* 62 */
|
|
3638
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
3725
3639
|
|
|
3726
|
-
|
|
3640
|
+
var basePick = __webpack_require__(140),
|
|
3641
|
+
flatRest = __webpack_require__(154);
|
|
3727
3642
|
/**
|
|
3728
|
-
* Creates
|
|
3643
|
+
* Creates an object composed of the picked `object` properties.
|
|
3729
3644
|
*
|
|
3730
|
-
* @
|
|
3731
|
-
|
|
3732
|
-
|
|
3733
|
-
|
|
3734
|
-
|
|
3735
|
-
|
|
3736
|
-
|
|
3737
|
-
|
|
3738
|
-
|
|
3739
|
-
|
|
3740
|
-
/***/ }),
|
|
3741
|
-
/* 65 */
|
|
3742
|
-
/***/ (function(module, exports) {
|
|
3743
|
-
|
|
3744
|
-
module.exports = subtract;
|
|
3745
|
-
/**
|
|
3746
|
-
* Subtracts vector b from vector a
|
|
3645
|
+
* @static
|
|
3646
|
+
* @since 0.1.0
|
|
3647
|
+
* @memberOf _
|
|
3648
|
+
* @category Object
|
|
3649
|
+
* @param {Object} object The source object.
|
|
3650
|
+
* @param {...(string|string[])} [paths] The property paths to pick.
|
|
3651
|
+
* @returns {Object} Returns the new object.
|
|
3652
|
+
* @example
|
|
3653
|
+
*
|
|
3654
|
+
* var object = { 'a': 1, 'b': '2', 'c': 3 };
|
|
3747
3655
|
*
|
|
3748
|
-
*
|
|
3749
|
-
*
|
|
3750
|
-
* @param {vec2} b the second operand
|
|
3751
|
-
* @returns {vec2} out
|
|
3656
|
+
* _.pick(object, ['a', 'c']);
|
|
3657
|
+
* // => { 'a': 1, 'c': 3 }
|
|
3752
3658
|
*/
|
|
3753
3659
|
|
|
3754
|
-
|
|
3755
|
-
|
|
3756
|
-
|
|
3757
|
-
|
|
3758
|
-
|
|
3660
|
+
|
|
3661
|
+
var pick = flatRest(function (object, paths) {
|
|
3662
|
+
return object == null ? {} : basePick(object, paths);
|
|
3663
|
+
});
|
|
3664
|
+
module.exports = pick;
|
|
3759
3665
|
|
|
3760
3666
|
/***/ }),
|
|
3761
|
-
/*
|
|
3762
|
-
/***/ (function(module, exports) {
|
|
3667
|
+
/* 63 */
|
|
3668
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
3763
3669
|
|
|
3764
|
-
|
|
3765
|
-
/**
|
|
3766
|
-
* Multiplies two vec2's
|
|
3767
|
-
*
|
|
3768
|
-
* @param {vec2} out the receiving vector
|
|
3769
|
-
* @param {vec2} a the first operand
|
|
3770
|
-
* @param {vec2} b the second operand
|
|
3771
|
-
* @returns {vec2} out
|
|
3772
|
-
*/
|
|
3670
|
+
var getPrototypeOf = __webpack_require__(2);
|
|
3773
3671
|
|
|
3774
|
-
|
|
3775
|
-
out[0] = a[0] * b[0];
|
|
3776
|
-
out[1] = a[1] * b[1];
|
|
3777
|
-
return out;
|
|
3778
|
-
}
|
|
3672
|
+
var setPrototypeOf = __webpack_require__(41);
|
|
3779
3673
|
|
|
3780
|
-
|
|
3781
|
-
/* 67 */
|
|
3782
|
-
/***/ (function(module, exports) {
|
|
3674
|
+
var isNativeFunction = __webpack_require__(159);
|
|
3783
3675
|
|
|
3784
|
-
|
|
3785
|
-
/**
|
|
3786
|
-
* Divides two vec2's
|
|
3787
|
-
*
|
|
3788
|
-
* @param {vec2} out the receiving vector
|
|
3789
|
-
* @param {vec2} a the first operand
|
|
3790
|
-
* @param {vec2} b the second operand
|
|
3791
|
-
* @returns {vec2} out
|
|
3792
|
-
*/
|
|
3676
|
+
var construct = __webpack_require__(160);
|
|
3793
3677
|
|
|
3794
|
-
function
|
|
3795
|
-
|
|
3796
|
-
out[1] = a[1] / b[1];
|
|
3797
|
-
return out;
|
|
3798
|
-
}
|
|
3678
|
+
function _wrapNativeSuper(Class) {
|
|
3679
|
+
var _cache = typeof Map === "function" ? new Map() : undefined;
|
|
3799
3680
|
|
|
3800
|
-
|
|
3801
|
-
|
|
3802
|
-
/***/ (function(module, exports) {
|
|
3681
|
+
module.exports = _wrapNativeSuper = function _wrapNativeSuper(Class) {
|
|
3682
|
+
if (Class === null || !isNativeFunction(Class)) return Class;
|
|
3803
3683
|
|
|
3804
|
-
|
|
3805
|
-
|
|
3806
|
-
|
|
3807
|
-
*
|
|
3808
|
-
* @param {vec2} a the first operand
|
|
3809
|
-
* @param {vec2} b the second operand
|
|
3810
|
-
* @returns {Number} distance between a and b
|
|
3811
|
-
*/
|
|
3684
|
+
if (typeof Class !== "function") {
|
|
3685
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
3686
|
+
}
|
|
3812
3687
|
|
|
3813
|
-
|
|
3814
|
-
|
|
3815
|
-
y = b[1] - a[1];
|
|
3816
|
-
return Math.sqrt(x * x + y * y);
|
|
3817
|
-
}
|
|
3688
|
+
if (typeof _cache !== "undefined") {
|
|
3689
|
+
if (_cache.has(Class)) return _cache.get(Class);
|
|
3818
3690
|
|
|
3819
|
-
|
|
3820
|
-
|
|
3821
|
-
/***/ (function(module, exports) {
|
|
3691
|
+
_cache.set(Class, Wrapper);
|
|
3692
|
+
}
|
|
3822
3693
|
|
|
3823
|
-
|
|
3824
|
-
|
|
3825
|
-
|
|
3826
|
-
*
|
|
3827
|
-
* @param {vec2} a the first operand
|
|
3828
|
-
* @param {vec2} b the second operand
|
|
3829
|
-
* @returns {Number} squared distance between a and b
|
|
3830
|
-
*/
|
|
3694
|
+
function Wrapper() {
|
|
3695
|
+
return construct(Class, arguments, getPrototypeOf(this).constructor);
|
|
3696
|
+
}
|
|
3831
3697
|
|
|
3832
|
-
|
|
3833
|
-
|
|
3834
|
-
|
|
3835
|
-
|
|
3698
|
+
Wrapper.prototype = Object.create(Class.prototype, {
|
|
3699
|
+
constructor: {
|
|
3700
|
+
value: Wrapper,
|
|
3701
|
+
enumerable: false,
|
|
3702
|
+
writable: true,
|
|
3703
|
+
configurable: true
|
|
3704
|
+
}
|
|
3705
|
+
});
|
|
3706
|
+
return setPrototypeOf(Wrapper, Class);
|
|
3707
|
+
}, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
3708
|
+
return _wrapNativeSuper(Class);
|
|
3836
3709
|
}
|
|
3837
3710
|
|
|
3711
|
+
module.exports = _wrapNativeSuper, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
3712
|
+
|
|
3838
3713
|
/***/ }),
|
|
3839
|
-
/*
|
|
3840
|
-
/***/ (function(module, exports) {
|
|
3714
|
+
/* 64 */
|
|
3715
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
3841
3716
|
|
|
3842
|
-
module
|
|
3843
|
-
|
|
3844
|
-
|
|
3845
|
-
*
|
|
3846
|
-
* @param {vec2} a vector to calculate length of
|
|
3847
|
-
* @returns {Number} length of a
|
|
3848
|
-
*/
|
|
3717
|
+
// NOTE FOR ANYONE IN HERE IN THE FUTURE: This module is used when the module is built for use in Node.
|
|
3718
|
+
// Webpack.config.js explicitly REPLACES this module with the file called frame_grabber_browser when it is packing the Browser distribution.
|
|
3719
|
+
var CVUtils = __webpack_require__(12);
|
|
3849
3720
|
|
|
3850
|
-
|
|
3851
|
-
var x = a[0],
|
|
3852
|
-
y = a[1];
|
|
3853
|
-
return Math.sqrt(x * x + y * y);
|
|
3854
|
-
}
|
|
3721
|
+
var Ndarray = __webpack_require__(162);
|
|
3855
3722
|
|
|
3856
|
-
|
|
3857
|
-
/* 71 */
|
|
3858
|
-
/***/ (function(module, exports) {
|
|
3723
|
+
var Interp2D = __webpack_require__(163).d2;
|
|
3859
3724
|
|
|
3860
|
-
|
|
3861
|
-
/**
|
|
3862
|
-
* Calculates the squared length of a vec2
|
|
3863
|
-
*
|
|
3864
|
-
* @param {vec2} a vector to calculate squared length of
|
|
3865
|
-
* @returns {Number} squared length of a
|
|
3866
|
-
*/
|
|
3725
|
+
var FrameGrabber = {};
|
|
3867
3726
|
|
|
3868
|
-
function
|
|
3869
|
-
|
|
3870
|
-
|
|
3871
|
-
return x * x + y * y;
|
|
3872
|
-
}
|
|
3727
|
+
FrameGrabber.create = function (inputStream, canvas) {
|
|
3728
|
+
// console.warn('*** FrameGrabberNode create()');
|
|
3729
|
+
var _that = {};
|
|
3873
3730
|
|
|
3874
|
-
|
|
3875
|
-
/* 72 */
|
|
3876
|
-
/***/ (function(module, exports) {
|
|
3731
|
+
var _videoSize = CVUtils.imageRef(inputStream.getRealWidth(), inputStream.getRealHeight());
|
|
3877
3732
|
|
|
3878
|
-
|
|
3733
|
+
var _canvasSize = inputStream.getCanvasSize();
|
|
3879
3734
|
|
|
3880
|
-
|
|
3881
|
-
/* 73 */
|
|
3882
|
-
/***/ (function(module, exports) {
|
|
3735
|
+
var _size = CVUtils.imageRef(inputStream.getWidth(), inputStream.getHeight());
|
|
3883
3736
|
|
|
3884
|
-
|
|
3885
|
-
/**
|
|
3886
|
-
* Creates a new, empty vec3
|
|
3887
|
-
*
|
|
3888
|
-
* @returns {vec3} a new 3D vector
|
|
3889
|
-
*/
|
|
3737
|
+
var _topRight = inputStream.getTopRight();
|
|
3890
3738
|
|
|
3891
|
-
|
|
3892
|
-
var out = new Float32Array(3);
|
|
3893
|
-
out[0] = 0;
|
|
3894
|
-
out[1] = 0;
|
|
3895
|
-
out[2] = 0;
|
|
3896
|
-
return out;
|
|
3897
|
-
}
|
|
3739
|
+
var _data = new Uint8Array(_size.x * _size.y);
|
|
3898
3740
|
|
|
3899
|
-
|
|
3900
|
-
/* 74 */
|
|
3901
|
-
/***/ (function(module, exports) {
|
|
3741
|
+
var _grayData = new Uint8Array(_videoSize.x * _videoSize.y);
|
|
3902
3742
|
|
|
3903
|
-
|
|
3904
|
-
|
|
3905
|
-
* Creates a new vec3 initialized with the given values
|
|
3906
|
-
*
|
|
3907
|
-
* @param {Number} x X component
|
|
3908
|
-
* @param {Number} y Y component
|
|
3909
|
-
* @param {Number} z Z component
|
|
3910
|
-
* @returns {vec3} a new 3D vector
|
|
3911
|
-
*/
|
|
3743
|
+
var _canvasData = new Uint8Array(_canvasSize.x * _canvasSize.y);
|
|
3744
|
+
/* eslint-disable new-cap */
|
|
3912
3745
|
|
|
3913
|
-
function fromValues(x, y, z) {
|
|
3914
|
-
var out = new Float32Array(3);
|
|
3915
|
-
out[0] = x;
|
|
3916
|
-
out[1] = y;
|
|
3917
|
-
out[2] = z;
|
|
3918
|
-
return out;
|
|
3919
|
-
}
|
|
3920
3746
|
|
|
3921
|
-
|
|
3922
|
-
/* 75 */
|
|
3923
|
-
/***/ (function(module, exports) {
|
|
3747
|
+
var _grayImageArray = Ndarray(_grayData, [_videoSize.y, _videoSize.x]).transpose(1, 0);
|
|
3924
3748
|
|
|
3925
|
-
|
|
3926
|
-
/**
|
|
3927
|
-
* Normalize a vec3
|
|
3928
|
-
*
|
|
3929
|
-
* @param {vec3} out the receiving vector
|
|
3930
|
-
* @param {vec3} a vector to normalize
|
|
3931
|
-
* @returns {vec3} out
|
|
3932
|
-
*/
|
|
3749
|
+
var _canvasImageArray = Ndarray(_canvasData, [_canvasSize.y, _canvasSize.x]).transpose(1, 0);
|
|
3933
3750
|
|
|
3934
|
-
|
|
3935
|
-
var x = a[0],
|
|
3936
|
-
y = a[1],
|
|
3937
|
-
z = a[2];
|
|
3938
|
-
var len = x * x + y * y + z * z;
|
|
3751
|
+
var _targetImageArray = _canvasImageArray.hi(_topRight.x + _size.x, _topRight.y + _size.y).lo(_topRight.x, _topRight.y);
|
|
3939
3752
|
|
|
3940
|
-
|
|
3941
|
-
//TODO: evaluate use of glm_invsqrt here?
|
|
3942
|
-
len = 1 / Math.sqrt(len);
|
|
3943
|
-
out[0] = a[0] * len;
|
|
3944
|
-
out[1] = a[1] * len;
|
|
3945
|
-
out[2] = a[2] * len;
|
|
3946
|
-
}
|
|
3753
|
+
var _stepSizeX = _videoSize.x / _canvasSize.x;
|
|
3947
3754
|
|
|
3948
|
-
|
|
3949
|
-
}
|
|
3755
|
+
var _stepSizeY = _videoSize.y / _canvasSize.y;
|
|
3950
3756
|
|
|
3951
|
-
|
|
3952
|
-
|
|
3953
|
-
|
|
3757
|
+
if (false) {}
|
|
3758
|
+
/**
|
|
3759
|
+
* Uses the given array as frame-buffer
|
|
3760
|
+
*/
|
|
3954
3761
|
|
|
3955
|
-
module.exports = dot;
|
|
3956
|
-
/**
|
|
3957
|
-
* Calculates the dot product of two vec3's
|
|
3958
|
-
*
|
|
3959
|
-
* @param {vec3} a the first operand
|
|
3960
|
-
* @param {vec3} b the second operand
|
|
3961
|
-
* @returns {Number} dot product of a and b
|
|
3962
|
-
*/
|
|
3963
3762
|
|
|
3964
|
-
function
|
|
3965
|
-
|
|
3966
|
-
}
|
|
3967
|
-
|
|
3968
|
-
|
|
3969
|
-
|
|
3970
|
-
/***/ (function(module, exports) {
|
|
3971
|
-
|
|
3972
|
-
module.exports = subtract;
|
|
3973
|
-
/**
|
|
3974
|
-
* Subtracts vector b from vector a
|
|
3975
|
-
*
|
|
3976
|
-
* @param {vec3} out the receiving vector
|
|
3977
|
-
* @param {vec3} a the first operand
|
|
3978
|
-
* @param {vec3} b the second operand
|
|
3979
|
-
* @returns {vec3} out
|
|
3980
|
-
*/
|
|
3981
|
-
|
|
3982
|
-
function subtract(out, a, b) {
|
|
3983
|
-
out[0] = a[0] - b[0];
|
|
3984
|
-
out[1] = a[1] - b[1];
|
|
3985
|
-
out[2] = a[2] - b[2];
|
|
3986
|
-
return out;
|
|
3987
|
-
}
|
|
3988
|
-
|
|
3989
|
-
/***/ }),
|
|
3990
|
-
/* 78 */
|
|
3991
|
-
/***/ (function(module, exports) {
|
|
3992
|
-
|
|
3993
|
-
module.exports = multiply;
|
|
3994
|
-
/**
|
|
3995
|
-
* Multiplies two vec3's
|
|
3996
|
-
*
|
|
3997
|
-
* @param {vec3} out the receiving vector
|
|
3998
|
-
* @param {vec3} a the first operand
|
|
3999
|
-
* @param {vec3} b the second operand
|
|
4000
|
-
* @returns {vec3} out
|
|
4001
|
-
*/
|
|
4002
|
-
|
|
4003
|
-
function multiply(out, a, b) {
|
|
4004
|
-
out[0] = a[0] * b[0];
|
|
4005
|
-
out[1] = a[1] * b[1];
|
|
4006
|
-
out[2] = a[2] * b[2];
|
|
4007
|
-
return out;
|
|
4008
|
-
}
|
|
4009
|
-
|
|
4010
|
-
/***/ }),
|
|
4011
|
-
/* 79 */
|
|
4012
|
-
/***/ (function(module, exports) {
|
|
4013
|
-
|
|
4014
|
-
module.exports = divide;
|
|
4015
|
-
/**
|
|
4016
|
-
* Divides two vec3's
|
|
4017
|
-
*
|
|
4018
|
-
* @param {vec3} out the receiving vector
|
|
4019
|
-
* @param {vec3} a the first operand
|
|
4020
|
-
* @param {vec3} b the second operand
|
|
4021
|
-
* @returns {vec3} out
|
|
4022
|
-
*/
|
|
4023
|
-
|
|
4024
|
-
function divide(out, a, b) {
|
|
4025
|
-
out[0] = a[0] / b[0];
|
|
4026
|
-
out[1] = a[1] / b[1];
|
|
4027
|
-
out[2] = a[2] / b[2];
|
|
4028
|
-
return out;
|
|
4029
|
-
}
|
|
4030
|
-
|
|
4031
|
-
/***/ }),
|
|
4032
|
-
/* 80 */
|
|
4033
|
-
/***/ (function(module, exports) {
|
|
4034
|
-
|
|
4035
|
-
module.exports = distance;
|
|
4036
|
-
/**
|
|
4037
|
-
* Calculates the euclidian distance between two vec3's
|
|
4038
|
-
*
|
|
4039
|
-
* @param {vec3} a the first operand
|
|
4040
|
-
* @param {vec3} b the second operand
|
|
4041
|
-
* @returns {Number} distance between a and b
|
|
4042
|
-
*/
|
|
4043
|
-
|
|
4044
|
-
function distance(a, b) {
|
|
4045
|
-
var x = b[0] - a[0],
|
|
4046
|
-
y = b[1] - a[1],
|
|
4047
|
-
z = b[2] - a[2];
|
|
4048
|
-
return Math.sqrt(x * x + y * y + z * z);
|
|
4049
|
-
}
|
|
4050
|
-
|
|
4051
|
-
/***/ }),
|
|
4052
|
-
/* 81 */
|
|
4053
|
-
/***/ (function(module, exports) {
|
|
4054
|
-
|
|
4055
|
-
module.exports = squaredDistance;
|
|
4056
|
-
/**
|
|
4057
|
-
* Calculates the squared euclidian distance between two vec3's
|
|
4058
|
-
*
|
|
4059
|
-
* @param {vec3} a the first operand
|
|
4060
|
-
* @param {vec3} b the second operand
|
|
4061
|
-
* @returns {Number} squared distance between a and b
|
|
4062
|
-
*/
|
|
4063
|
-
|
|
4064
|
-
function squaredDistance(a, b) {
|
|
4065
|
-
var x = b[0] - a[0],
|
|
4066
|
-
y = b[1] - a[1],
|
|
4067
|
-
z = b[2] - a[2];
|
|
4068
|
-
return x * x + y * y + z * z;
|
|
4069
|
-
}
|
|
4070
|
-
|
|
4071
|
-
/***/ }),
|
|
4072
|
-
/* 82 */
|
|
4073
|
-
/***/ (function(module, exports) {
|
|
4074
|
-
|
|
4075
|
-
module.exports = length;
|
|
4076
|
-
/**
|
|
4077
|
-
* Calculates the length of a vec3
|
|
4078
|
-
*
|
|
4079
|
-
* @param {vec3} a vector to calculate length of
|
|
4080
|
-
* @returns {Number} length of a
|
|
4081
|
-
*/
|
|
4082
|
-
|
|
4083
|
-
function length(a) {
|
|
4084
|
-
var x = a[0],
|
|
4085
|
-
y = a[1],
|
|
4086
|
-
z = a[2];
|
|
4087
|
-
return Math.sqrt(x * x + y * y + z * z);
|
|
4088
|
-
}
|
|
4089
|
-
|
|
4090
|
-
/***/ }),
|
|
4091
|
-
/* 83 */
|
|
4092
|
-
/***/ (function(module, exports) {
|
|
4093
|
-
|
|
4094
|
-
module.exports = squaredLength;
|
|
4095
|
-
/**
|
|
4096
|
-
* Calculates the squared length of a vec3
|
|
4097
|
-
*
|
|
4098
|
-
* @param {vec3} a vector to calculate squared length of
|
|
4099
|
-
* @returns {Number} squared length of a
|
|
4100
|
-
*/
|
|
4101
|
-
|
|
4102
|
-
function squaredLength(a) {
|
|
4103
|
-
var x = a[0],
|
|
4104
|
-
y = a[1],
|
|
4105
|
-
z = a[2];
|
|
4106
|
-
return x * x + y * y + z * z;
|
|
4107
|
-
}
|
|
4108
|
-
|
|
4109
|
-
/***/ }),
|
|
4110
|
-
/* 84 */
|
|
4111
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
4112
|
-
|
|
4113
|
-
module.exports = {
|
|
4114
|
-
EPSILON: __webpack_require__(72),
|
|
4115
|
-
create: __webpack_require__(73),
|
|
4116
|
-
clone: __webpack_require__(193),
|
|
4117
|
-
angle: __webpack_require__(194),
|
|
4118
|
-
fromValues: __webpack_require__(74),
|
|
4119
|
-
copy: __webpack_require__(195),
|
|
4120
|
-
set: __webpack_require__(196),
|
|
4121
|
-
equals: __webpack_require__(197),
|
|
4122
|
-
exactEquals: __webpack_require__(198),
|
|
4123
|
-
add: __webpack_require__(199),
|
|
4124
|
-
subtract: __webpack_require__(77),
|
|
4125
|
-
sub: __webpack_require__(200),
|
|
4126
|
-
multiply: __webpack_require__(78),
|
|
4127
|
-
mul: __webpack_require__(201),
|
|
4128
|
-
divide: __webpack_require__(79),
|
|
4129
|
-
div: __webpack_require__(202),
|
|
4130
|
-
min: __webpack_require__(203),
|
|
4131
|
-
max: __webpack_require__(204),
|
|
4132
|
-
floor: __webpack_require__(205),
|
|
4133
|
-
ceil: __webpack_require__(206),
|
|
4134
|
-
round: __webpack_require__(207),
|
|
4135
|
-
scale: __webpack_require__(208),
|
|
4136
|
-
scaleAndAdd: __webpack_require__(209),
|
|
4137
|
-
distance: __webpack_require__(80),
|
|
4138
|
-
dist: __webpack_require__(210),
|
|
4139
|
-
squaredDistance: __webpack_require__(81),
|
|
4140
|
-
sqrDist: __webpack_require__(211),
|
|
4141
|
-
length: __webpack_require__(82),
|
|
4142
|
-
len: __webpack_require__(212),
|
|
4143
|
-
squaredLength: __webpack_require__(83),
|
|
4144
|
-
sqrLen: __webpack_require__(213),
|
|
4145
|
-
negate: __webpack_require__(214),
|
|
4146
|
-
inverse: __webpack_require__(215),
|
|
4147
|
-
normalize: __webpack_require__(75),
|
|
4148
|
-
dot: __webpack_require__(76),
|
|
4149
|
-
cross: __webpack_require__(216),
|
|
4150
|
-
lerp: __webpack_require__(217),
|
|
4151
|
-
random: __webpack_require__(218),
|
|
4152
|
-
transformMat4: __webpack_require__(219),
|
|
4153
|
-
transformMat3: __webpack_require__(220),
|
|
4154
|
-
transformQuat: __webpack_require__(221),
|
|
4155
|
-
rotateX: __webpack_require__(222),
|
|
4156
|
-
rotateY: __webpack_require__(223),
|
|
4157
|
-
rotateZ: __webpack_require__(224),
|
|
4158
|
-
forEach: __webpack_require__(225)
|
|
4159
|
-
};
|
|
4160
|
-
|
|
4161
|
-
/***/ }),
|
|
4162
|
-
/* 85 */
|
|
4163
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
4164
|
-
|
|
4165
|
-
var basePick = __webpack_require__(231),
|
|
4166
|
-
flatRest = __webpack_require__(245);
|
|
4167
|
-
/**
|
|
4168
|
-
* Creates an object composed of the picked `object` properties.
|
|
4169
|
-
*
|
|
4170
|
-
* @static
|
|
4171
|
-
* @since 0.1.0
|
|
4172
|
-
* @memberOf _
|
|
4173
|
-
* @category Object
|
|
4174
|
-
* @param {Object} object The source object.
|
|
4175
|
-
* @param {...(string|string[])} [paths] The property paths to pick.
|
|
4176
|
-
* @returns {Object} Returns the new object.
|
|
4177
|
-
* @example
|
|
4178
|
-
*
|
|
4179
|
-
* var object = { 'a': 1, 'b': '2', 'c': 3 };
|
|
4180
|
-
*
|
|
4181
|
-
* _.pick(object, ['a', 'c']);
|
|
4182
|
-
* // => { 'a': 1, 'c': 3 }
|
|
4183
|
-
*/
|
|
4184
|
-
|
|
4185
|
-
|
|
4186
|
-
var pick = flatRest(function (object, paths) {
|
|
4187
|
-
return object == null ? {} : basePick(object, paths);
|
|
4188
|
-
});
|
|
4189
|
-
module.exports = pick;
|
|
4190
|
-
|
|
4191
|
-
/***/ }),
|
|
4192
|
-
/* 86 */
|
|
4193
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
4194
|
-
|
|
4195
|
-
var getPrototypeOf = __webpack_require__(2);
|
|
4196
|
-
|
|
4197
|
-
var setPrototypeOf = __webpack_require__(42);
|
|
4198
|
-
|
|
4199
|
-
var isNativeFunction = __webpack_require__(250);
|
|
4200
|
-
|
|
4201
|
-
var construct = __webpack_require__(251);
|
|
4202
|
-
|
|
4203
|
-
function _wrapNativeSuper(Class) {
|
|
4204
|
-
var _cache = typeof Map === "function" ? new Map() : undefined;
|
|
4205
|
-
|
|
4206
|
-
module.exports = _wrapNativeSuper = function _wrapNativeSuper(Class) {
|
|
4207
|
-
if (Class === null || !isNativeFunction(Class)) return Class;
|
|
4208
|
-
|
|
4209
|
-
if (typeof Class !== "function") {
|
|
4210
|
-
throw new TypeError("Super expression must either be null or a function");
|
|
4211
|
-
}
|
|
4212
|
-
|
|
4213
|
-
if (typeof _cache !== "undefined") {
|
|
4214
|
-
if (_cache.has(Class)) return _cache.get(Class);
|
|
4215
|
-
|
|
4216
|
-
_cache.set(Class, Wrapper);
|
|
4217
|
-
}
|
|
4218
|
-
|
|
4219
|
-
function Wrapper() {
|
|
4220
|
-
return construct(Class, arguments, getPrototypeOf(this).constructor);
|
|
4221
|
-
}
|
|
4222
|
-
|
|
4223
|
-
Wrapper.prototype = Object.create(Class.prototype, {
|
|
4224
|
-
constructor: {
|
|
4225
|
-
value: Wrapper,
|
|
4226
|
-
enumerable: false,
|
|
4227
|
-
writable: true,
|
|
4228
|
-
configurable: true
|
|
4229
|
-
}
|
|
4230
|
-
});
|
|
4231
|
-
return setPrototypeOf(Wrapper, Class);
|
|
4232
|
-
}, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
4233
|
-
return _wrapNativeSuper(Class);
|
|
4234
|
-
}
|
|
4235
|
-
|
|
4236
|
-
module.exports = _wrapNativeSuper, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
4237
|
-
|
|
4238
|
-
/***/ }),
|
|
4239
|
-
/* 87 */
|
|
4240
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
4241
|
-
|
|
4242
|
-
// NOTE FOR ANYONE IN HERE IN THE FUTURE: This module is used when the module is built for use in Node.
|
|
4243
|
-
// Webpack.config.js explicitly REPLACES this module with the file called frame_grabber_browser when it is packing the Browser distribution.
|
|
4244
|
-
var CVUtils = __webpack_require__(12);
|
|
4245
|
-
|
|
4246
|
-
var Ndarray = __webpack_require__(253);
|
|
4247
|
-
|
|
4248
|
-
var Interp2D = __webpack_require__(254).d2;
|
|
4249
|
-
|
|
4250
|
-
var FrameGrabber = {};
|
|
4251
|
-
|
|
4252
|
-
FrameGrabber.create = function (inputStream, canvas) {
|
|
4253
|
-
// console.warn('*** FrameGrabberNode create()');
|
|
4254
|
-
var _that = {};
|
|
4255
|
-
|
|
4256
|
-
var _videoSize = CVUtils.imageRef(inputStream.getRealWidth(), inputStream.getRealHeight());
|
|
4257
|
-
|
|
4258
|
-
var _canvasSize = inputStream.getCanvasSize();
|
|
4259
|
-
|
|
4260
|
-
var _size = CVUtils.imageRef(inputStream.getWidth(), inputStream.getHeight());
|
|
4261
|
-
|
|
4262
|
-
var _topRight = inputStream.getTopRight();
|
|
4263
|
-
|
|
4264
|
-
var _data = new Uint8Array(_size.x * _size.y);
|
|
4265
|
-
|
|
4266
|
-
var _grayData = new Uint8Array(_videoSize.x * _videoSize.y);
|
|
4267
|
-
|
|
4268
|
-
var _canvasData = new Uint8Array(_canvasSize.x * _canvasSize.y);
|
|
4269
|
-
/* eslint-disable new-cap */
|
|
4270
|
-
|
|
4271
|
-
|
|
4272
|
-
var _grayImageArray = Ndarray(_grayData, [_videoSize.y, _videoSize.x]).transpose(1, 0);
|
|
4273
|
-
|
|
4274
|
-
var _canvasImageArray = Ndarray(_canvasData, [_canvasSize.y, _canvasSize.x]).transpose(1, 0);
|
|
4275
|
-
|
|
4276
|
-
var _targetImageArray = _canvasImageArray.hi(_topRight.x + _size.x, _topRight.y + _size.y).lo(_topRight.x, _topRight.y);
|
|
4277
|
-
|
|
4278
|
-
var _stepSizeX = _videoSize.x / _canvasSize.x;
|
|
4279
|
-
|
|
4280
|
-
var _stepSizeY = _videoSize.y / _canvasSize.y;
|
|
4281
|
-
|
|
4282
|
-
if (false) {}
|
|
4283
|
-
/**
|
|
4284
|
-
* Uses the given array as frame-buffer
|
|
4285
|
-
*/
|
|
4286
|
-
|
|
4287
|
-
|
|
4288
|
-
_that.attachData = function (data) {
|
|
4289
|
-
_data = data;
|
|
4290
|
-
};
|
|
4291
|
-
/**
|
|
4292
|
-
* Returns the used frame-buffer
|
|
4293
|
-
*/
|
|
3763
|
+
_that.attachData = function (data) {
|
|
3764
|
+
_data = data;
|
|
3765
|
+
};
|
|
3766
|
+
/**
|
|
3767
|
+
* Returns the used frame-buffer
|
|
3768
|
+
*/
|
|
4294
3769
|
|
|
4295
3770
|
|
|
4296
3771
|
_that.getData = function () {
|
|
@@ -4348,13 +3823,13 @@ FrameGrabber.create = function (inputStream, canvas) {
|
|
|
4348
3823
|
module.exports = FrameGrabber;
|
|
4349
3824
|
|
|
4350
3825
|
/***/ }),
|
|
4351
|
-
/*
|
|
3826
|
+
/* 65 */
|
|
4352
3827
|
/***/ (function(module, exports) {
|
|
4353
3828
|
|
|
4354
3829
|
module.exports = require("get-pixels");
|
|
4355
3830
|
|
|
4356
3831
|
/***/ }),
|
|
4357
|
-
/*
|
|
3832
|
+
/* 66 */
|
|
4358
3833
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
4359
3834
|
|
|
4360
3835
|
"use strict";
|
|
@@ -4574,7 +4049,7 @@ var Rasterizer = {
|
|
|
4574
4049
|
/* harmony default export */ __webpack_exports__["a"] = (Rasterizer);
|
|
4575
4050
|
|
|
4576
4051
|
/***/ }),
|
|
4577
|
-
/*
|
|
4052
|
+
/* 67 */
|
|
4578
4053
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
4579
4054
|
|
|
4580
4055
|
"use strict";
|
|
@@ -4773,23 +4248,23 @@ function Skeletonizer(stdlib, foreign, buffer) {
|
|
|
4773
4248
|
/* eslint-enable eqeqeq */
|
|
4774
4249
|
|
|
4775
4250
|
/***/ }),
|
|
4776
|
-
/*
|
|
4251
|
+
/* 68 */
|
|
4777
4252
|
/***/ (function(module, exports, __webpack_require__) {
|
|
4778
4253
|
|
|
4779
|
-
module.exports = __webpack_require__(
|
|
4254
|
+
module.exports = __webpack_require__(164);
|
|
4780
4255
|
|
|
4781
4256
|
|
|
4782
4257
|
/***/ }),
|
|
4783
|
-
/*
|
|
4258
|
+
/* 69 */
|
|
4784
4259
|
/***/ (function(module, exports, __webpack_require__) {
|
|
4785
4260
|
|
|
4786
|
-
var Stack = __webpack_require__(
|
|
4787
|
-
assignMergeValue = __webpack_require__(
|
|
4788
|
-
baseFor = __webpack_require__(
|
|
4789
|
-
baseMergeDeep = __webpack_require__(
|
|
4261
|
+
var Stack = __webpack_require__(70),
|
|
4262
|
+
assignMergeValue = __webpack_require__(48),
|
|
4263
|
+
baseFor = __webpack_require__(100),
|
|
4264
|
+
baseMergeDeep = __webpack_require__(102),
|
|
4790
4265
|
isObject = __webpack_require__(14),
|
|
4791
|
-
keysIn = __webpack_require__(
|
|
4792
|
-
safeGet = __webpack_require__(
|
|
4266
|
+
keysIn = __webpack_require__(56),
|
|
4267
|
+
safeGet = __webpack_require__(54);
|
|
4793
4268
|
/**
|
|
4794
4269
|
* The base implementation of `_.merge` without support for multiple sources.
|
|
4795
4270
|
*
|
|
@@ -4828,15 +4303,15 @@ function baseMerge(object, source, srcIndex, customizer, stack) {
|
|
|
4828
4303
|
module.exports = baseMerge;
|
|
4829
4304
|
|
|
4830
4305
|
/***/ }),
|
|
4831
|
-
/*
|
|
4306
|
+
/* 70 */
|
|
4832
4307
|
/***/ (function(module, exports, __webpack_require__) {
|
|
4833
4308
|
|
|
4834
4309
|
var ListCache = __webpack_require__(24),
|
|
4835
|
-
stackClear = __webpack_require__(
|
|
4836
|
-
stackDelete = __webpack_require__(
|
|
4837
|
-
stackGet = __webpack_require__(
|
|
4838
|
-
stackHas = __webpack_require__(
|
|
4839
|
-
stackSet = __webpack_require__(
|
|
4310
|
+
stackClear = __webpack_require__(76),
|
|
4311
|
+
stackDelete = __webpack_require__(77),
|
|
4312
|
+
stackGet = __webpack_require__(78),
|
|
4313
|
+
stackHas = __webpack_require__(79),
|
|
4314
|
+
stackSet = __webpack_require__(80);
|
|
4840
4315
|
/**
|
|
4841
4316
|
* Creates a stack cache object to store key-value pairs.
|
|
4842
4317
|
*
|
|
@@ -4860,7 +4335,7 @@ Stack.prototype.set = stackSet;
|
|
|
4860
4335
|
module.exports = Stack;
|
|
4861
4336
|
|
|
4862
4337
|
/***/ }),
|
|
4863
|
-
/*
|
|
4338
|
+
/* 71 */
|
|
4864
4339
|
/***/ (function(module, exports) {
|
|
4865
4340
|
|
|
4866
4341
|
/**
|
|
@@ -4878,7 +4353,7 @@ function listCacheClear() {
|
|
|
4878
4353
|
module.exports = listCacheClear;
|
|
4879
4354
|
|
|
4880
4355
|
/***/ }),
|
|
4881
|
-
/*
|
|
4356
|
+
/* 72 */
|
|
4882
4357
|
/***/ (function(module, exports, __webpack_require__) {
|
|
4883
4358
|
|
|
4884
4359
|
var assocIndexOf = __webpack_require__(25);
|
|
@@ -4922,7 +4397,7 @@ function listCacheDelete(key) {
|
|
|
4922
4397
|
module.exports = listCacheDelete;
|
|
4923
4398
|
|
|
4924
4399
|
/***/ }),
|
|
4925
|
-
/*
|
|
4400
|
+
/* 73 */
|
|
4926
4401
|
/***/ (function(module, exports, __webpack_require__) {
|
|
4927
4402
|
|
|
4928
4403
|
var assocIndexOf = __webpack_require__(25);
|
|
@@ -4946,7 +4421,7 @@ function listCacheGet(key) {
|
|
|
4946
4421
|
module.exports = listCacheGet;
|
|
4947
4422
|
|
|
4948
4423
|
/***/ }),
|
|
4949
|
-
/*
|
|
4424
|
+
/* 74 */
|
|
4950
4425
|
/***/ (function(module, exports, __webpack_require__) {
|
|
4951
4426
|
|
|
4952
4427
|
var assocIndexOf = __webpack_require__(25);
|
|
@@ -4968,7 +4443,7 @@ function listCacheHas(key) {
|
|
|
4968
4443
|
module.exports = listCacheHas;
|
|
4969
4444
|
|
|
4970
4445
|
/***/ }),
|
|
4971
|
-
/*
|
|
4446
|
+
/* 75 */
|
|
4972
4447
|
/***/ (function(module, exports, __webpack_require__) {
|
|
4973
4448
|
|
|
4974
4449
|
var assocIndexOf = __webpack_require__(25);
|
|
@@ -5001,7 +4476,7 @@ function listCacheSet(key, value) {
|
|
|
5001
4476
|
module.exports = listCacheSet;
|
|
5002
4477
|
|
|
5003
4478
|
/***/ }),
|
|
5004
|
-
/*
|
|
4479
|
+
/* 76 */
|
|
5005
4480
|
/***/ (function(module, exports, __webpack_require__) {
|
|
5006
4481
|
|
|
5007
4482
|
var ListCache = __webpack_require__(24);
|
|
@@ -5022,7 +4497,7 @@ function stackClear() {
|
|
|
5022
4497
|
module.exports = stackClear;
|
|
5023
4498
|
|
|
5024
4499
|
/***/ }),
|
|
5025
|
-
/*
|
|
4500
|
+
/* 77 */
|
|
5026
4501
|
/***/ (function(module, exports) {
|
|
5027
4502
|
|
|
5028
4503
|
/**
|
|
@@ -5044,7 +4519,7 @@ function stackDelete(key) {
|
|
|
5044
4519
|
module.exports = stackDelete;
|
|
5045
4520
|
|
|
5046
4521
|
/***/ }),
|
|
5047
|
-
/*
|
|
4522
|
+
/* 78 */
|
|
5048
4523
|
/***/ (function(module, exports) {
|
|
5049
4524
|
|
|
5050
4525
|
/**
|
|
@@ -5063,7 +4538,7 @@ function stackGet(key) {
|
|
|
5063
4538
|
module.exports = stackGet;
|
|
5064
4539
|
|
|
5065
4540
|
/***/ }),
|
|
5066
|
-
/*
|
|
4541
|
+
/* 79 */
|
|
5067
4542
|
/***/ (function(module, exports) {
|
|
5068
4543
|
|
|
5069
4544
|
/**
|
|
@@ -5082,12 +4557,12 @@ function stackHas(key) {
|
|
|
5082
4557
|
module.exports = stackHas;
|
|
5083
4558
|
|
|
5084
4559
|
/***/ }),
|
|
5085
|
-
/*
|
|
4560
|
+
/* 80 */
|
|
5086
4561
|
/***/ (function(module, exports, __webpack_require__) {
|
|
5087
4562
|
|
|
5088
4563
|
var ListCache = __webpack_require__(24),
|
|
5089
|
-
Map = __webpack_require__(
|
|
5090
|
-
MapCache = __webpack_require__(
|
|
4564
|
+
Map = __webpack_require__(44),
|
|
4565
|
+
MapCache = __webpack_require__(47);
|
|
5091
4566
|
/** Used as the size to enable large array optimizations. */
|
|
5092
4567
|
|
|
5093
4568
|
|
|
@@ -5126,13 +4601,13 @@ function stackSet(key, value) {
|
|
|
5126
4601
|
module.exports = stackSet;
|
|
5127
4602
|
|
|
5128
4603
|
/***/ }),
|
|
5129
|
-
/*
|
|
4604
|
+
/* 81 */
|
|
5130
4605
|
/***/ (function(module, exports, __webpack_require__) {
|
|
5131
4606
|
|
|
5132
|
-
var isFunction = __webpack_require__(
|
|
5133
|
-
isMasked = __webpack_require__(
|
|
4607
|
+
var isFunction = __webpack_require__(36),
|
|
4608
|
+
isMasked = __webpack_require__(84),
|
|
5134
4609
|
isObject = __webpack_require__(14),
|
|
5135
|
-
toSource = __webpack_require__(
|
|
4610
|
+
toSource = __webpack_require__(86);
|
|
5136
4611
|
/**
|
|
5137
4612
|
* Used to match `RegExp`
|
|
5138
4613
|
* [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
|
|
@@ -5177,7 +4652,7 @@ function baseIsNative(value) {
|
|
|
5177
4652
|
module.exports = baseIsNative;
|
|
5178
4653
|
|
|
5179
4654
|
/***/ }),
|
|
5180
|
-
/*
|
|
4655
|
+
/* 82 */
|
|
5181
4656
|
/***/ (function(module, exports, __webpack_require__) {
|
|
5182
4657
|
|
|
5183
4658
|
var Symbol = __webpack_require__(27);
|
|
@@ -5231,7 +4706,7 @@ function getRawTag(value) {
|
|
|
5231
4706
|
module.exports = getRawTag;
|
|
5232
4707
|
|
|
5233
4708
|
/***/ }),
|
|
5234
|
-
/*
|
|
4709
|
+
/* 83 */
|
|
5235
4710
|
/***/ (function(module, exports) {
|
|
5236
4711
|
|
|
5237
4712
|
/** Used for built-in method references. */
|
|
@@ -5258,10 +4733,10 @@ function objectToString(value) {
|
|
|
5258
4733
|
module.exports = objectToString;
|
|
5259
4734
|
|
|
5260
4735
|
/***/ }),
|
|
5261
|
-
/*
|
|
4736
|
+
/* 84 */
|
|
5262
4737
|
/***/ (function(module, exports, __webpack_require__) {
|
|
5263
4738
|
|
|
5264
|
-
var coreJsData = __webpack_require__(
|
|
4739
|
+
var coreJsData = __webpack_require__(85);
|
|
5265
4740
|
/** Used to detect methods masquerading as native. */
|
|
5266
4741
|
|
|
5267
4742
|
|
|
@@ -5285,7 +4760,7 @@ function isMasked(func) {
|
|
|
5285
4760
|
module.exports = isMasked;
|
|
5286
4761
|
|
|
5287
4762
|
/***/ }),
|
|
5288
|
-
/*
|
|
4763
|
+
/* 85 */
|
|
5289
4764
|
/***/ (function(module, exports, __webpack_require__) {
|
|
5290
4765
|
|
|
5291
4766
|
var root = __webpack_require__(19);
|
|
@@ -5296,7 +4771,7 @@ var coreJsData = root['__core-js_shared__'];
|
|
|
5296
4771
|
module.exports = coreJsData;
|
|
5297
4772
|
|
|
5298
4773
|
/***/ }),
|
|
5299
|
-
/*
|
|
4774
|
+
/* 86 */
|
|
5300
4775
|
/***/ (function(module, exports) {
|
|
5301
4776
|
|
|
5302
4777
|
/** Used for built-in method references. */
|
|
@@ -5329,7 +4804,7 @@ function toSource(func) {
|
|
|
5329
4804
|
module.exports = toSource;
|
|
5330
4805
|
|
|
5331
4806
|
/***/ }),
|
|
5332
|
-
/*
|
|
4807
|
+
/* 87 */
|
|
5333
4808
|
/***/ (function(module, exports) {
|
|
5334
4809
|
|
|
5335
4810
|
/**
|
|
@@ -5347,12 +4822,12 @@ function getValue(object, key) {
|
|
|
5347
4822
|
module.exports = getValue;
|
|
5348
4823
|
|
|
5349
4824
|
/***/ }),
|
|
5350
|
-
/*
|
|
4825
|
+
/* 88 */
|
|
5351
4826
|
/***/ (function(module, exports, __webpack_require__) {
|
|
5352
4827
|
|
|
5353
|
-
var Hash = __webpack_require__(
|
|
4828
|
+
var Hash = __webpack_require__(89),
|
|
5354
4829
|
ListCache = __webpack_require__(24),
|
|
5355
|
-
Map = __webpack_require__(
|
|
4830
|
+
Map = __webpack_require__(44);
|
|
5356
4831
|
/**
|
|
5357
4832
|
* Removes all key-value entries from the map.
|
|
5358
4833
|
*
|
|
@@ -5374,14 +4849,14 @@ function mapCacheClear() {
|
|
|
5374
4849
|
module.exports = mapCacheClear;
|
|
5375
4850
|
|
|
5376
4851
|
/***/ }),
|
|
5377
|
-
/*
|
|
4852
|
+
/* 89 */
|
|
5378
4853
|
/***/ (function(module, exports, __webpack_require__) {
|
|
5379
4854
|
|
|
5380
|
-
var hashClear = __webpack_require__(
|
|
5381
|
-
hashDelete = __webpack_require__(
|
|
5382
|
-
hashGet = __webpack_require__(
|
|
5383
|
-
hashHas = __webpack_require__(
|
|
5384
|
-
hashSet = __webpack_require__(
|
|
4855
|
+
var hashClear = __webpack_require__(90),
|
|
4856
|
+
hashDelete = __webpack_require__(91),
|
|
4857
|
+
hashGet = __webpack_require__(92),
|
|
4858
|
+
hashHas = __webpack_require__(93),
|
|
4859
|
+
hashSet = __webpack_require__(94);
|
|
5385
4860
|
/**
|
|
5386
4861
|
* Creates a hash object.
|
|
5387
4862
|
*
|
|
@@ -5411,7 +4886,7 @@ Hash.prototype.set = hashSet;
|
|
|
5411
4886
|
module.exports = Hash;
|
|
5412
4887
|
|
|
5413
4888
|
/***/ }),
|
|
5414
|
-
/*
|
|
4889
|
+
/* 90 */
|
|
5415
4890
|
/***/ (function(module, exports, __webpack_require__) {
|
|
5416
4891
|
|
|
5417
4892
|
var nativeCreate = __webpack_require__(28);
|
|
@@ -5432,7 +4907,7 @@ function hashClear() {
|
|
|
5432
4907
|
module.exports = hashClear;
|
|
5433
4908
|
|
|
5434
4909
|
/***/ }),
|
|
5435
|
-
/*
|
|
4910
|
+
/* 91 */
|
|
5436
4911
|
/***/ (function(module, exports) {
|
|
5437
4912
|
|
|
5438
4913
|
/**
|
|
@@ -5454,7 +4929,7 @@ function hashDelete(key) {
|
|
|
5454
4929
|
module.exports = hashDelete;
|
|
5455
4930
|
|
|
5456
4931
|
/***/ }),
|
|
5457
|
-
/*
|
|
4932
|
+
/* 92 */
|
|
5458
4933
|
/***/ (function(module, exports, __webpack_require__) {
|
|
5459
4934
|
|
|
5460
4935
|
var nativeCreate = __webpack_require__(28);
|
|
@@ -5492,7 +4967,7 @@ function hashGet(key) {
|
|
|
5492
4967
|
module.exports = hashGet;
|
|
5493
4968
|
|
|
5494
4969
|
/***/ }),
|
|
5495
|
-
/*
|
|
4970
|
+
/* 93 */
|
|
5496
4971
|
/***/ (function(module, exports, __webpack_require__) {
|
|
5497
4972
|
|
|
5498
4973
|
var nativeCreate = __webpack_require__(28);
|
|
@@ -5521,7 +4996,7 @@ function hashHas(key) {
|
|
|
5521
4996
|
module.exports = hashHas;
|
|
5522
4997
|
|
|
5523
4998
|
/***/ }),
|
|
5524
|
-
/*
|
|
4999
|
+
/* 94 */
|
|
5525
5000
|
/***/ (function(module, exports, __webpack_require__) {
|
|
5526
5001
|
|
|
5527
5002
|
var nativeCreate = __webpack_require__(28);
|
|
@@ -5550,7 +5025,7 @@ function hashSet(key, value) {
|
|
|
5550
5025
|
module.exports = hashSet;
|
|
5551
5026
|
|
|
5552
5027
|
/***/ }),
|
|
5553
|
-
/*
|
|
5028
|
+
/* 95 */
|
|
5554
5029
|
/***/ (function(module, exports, __webpack_require__) {
|
|
5555
5030
|
|
|
5556
5031
|
var getMapData = __webpack_require__(29);
|
|
@@ -5574,7 +5049,7 @@ function mapCacheDelete(key) {
|
|
|
5574
5049
|
module.exports = mapCacheDelete;
|
|
5575
5050
|
|
|
5576
5051
|
/***/ }),
|
|
5577
|
-
/*
|
|
5052
|
+
/* 96 */
|
|
5578
5053
|
/***/ (function(module, exports) {
|
|
5579
5054
|
|
|
5580
5055
|
/**
|
|
@@ -5592,7 +5067,7 @@ function isKeyable(value) {
|
|
|
5592
5067
|
module.exports = isKeyable;
|
|
5593
5068
|
|
|
5594
5069
|
/***/ }),
|
|
5595
|
-
/*
|
|
5070
|
+
/* 97 */
|
|
5596
5071
|
/***/ (function(module, exports, __webpack_require__) {
|
|
5597
5072
|
|
|
5598
5073
|
var getMapData = __webpack_require__(29);
|
|
@@ -5614,7 +5089,7 @@ function mapCacheGet(key) {
|
|
|
5614
5089
|
module.exports = mapCacheGet;
|
|
5615
5090
|
|
|
5616
5091
|
/***/ }),
|
|
5617
|
-
/*
|
|
5092
|
+
/* 98 */
|
|
5618
5093
|
/***/ (function(module, exports, __webpack_require__) {
|
|
5619
5094
|
|
|
5620
5095
|
var getMapData = __webpack_require__(29);
|
|
@@ -5636,7 +5111,7 @@ function mapCacheHas(key) {
|
|
|
5636
5111
|
module.exports = mapCacheHas;
|
|
5637
5112
|
|
|
5638
5113
|
/***/ }),
|
|
5639
|
-
/*
|
|
5114
|
+
/* 99 */
|
|
5640
5115
|
/***/ (function(module, exports, __webpack_require__) {
|
|
5641
5116
|
|
|
5642
5117
|
var getMapData = __webpack_require__(29);
|
|
@@ -5663,10 +5138,10 @@ function mapCacheSet(key, value) {
|
|
|
5663
5138
|
module.exports = mapCacheSet;
|
|
5664
5139
|
|
|
5665
5140
|
/***/ }),
|
|
5666
|
-
/*
|
|
5141
|
+
/* 100 */
|
|
5667
5142
|
/***/ (function(module, exports, __webpack_require__) {
|
|
5668
5143
|
|
|
5669
|
-
var createBaseFor = __webpack_require__(
|
|
5144
|
+
var createBaseFor = __webpack_require__(101);
|
|
5670
5145
|
/**
|
|
5671
5146
|
* The base implementation of `baseForOwn` which iterates over `object`
|
|
5672
5147
|
* properties returned by `keysFunc` and invokes `iteratee` for each property.
|
|
@@ -5684,7 +5159,7 @@ var baseFor = createBaseFor();
|
|
|
5684
5159
|
module.exports = baseFor;
|
|
5685
5160
|
|
|
5686
5161
|
/***/ }),
|
|
5687
|
-
/*
|
|
5162
|
+
/* 101 */
|
|
5688
5163
|
/***/ (function(module, exports) {
|
|
5689
5164
|
|
|
5690
5165
|
/**
|
|
@@ -5716,24 +5191,24 @@ function createBaseFor(fromRight) {
|
|
|
5716
5191
|
module.exports = createBaseFor;
|
|
5717
5192
|
|
|
5718
5193
|
/***/ }),
|
|
5719
|
-
/*
|
|
5194
|
+
/* 102 */
|
|
5720
5195
|
/***/ (function(module, exports, __webpack_require__) {
|
|
5721
5196
|
|
|
5722
|
-
var assignMergeValue = __webpack_require__(
|
|
5723
|
-
cloneBuffer = __webpack_require__(
|
|
5724
|
-
cloneTypedArray = __webpack_require__(
|
|
5725
|
-
copyArray = __webpack_require__(
|
|
5726
|
-
initCloneObject = __webpack_require__(
|
|
5197
|
+
var assignMergeValue = __webpack_require__(48),
|
|
5198
|
+
cloneBuffer = __webpack_require__(103),
|
|
5199
|
+
cloneTypedArray = __webpack_require__(104),
|
|
5200
|
+
copyArray = __webpack_require__(107),
|
|
5201
|
+
initCloneObject = __webpack_require__(108),
|
|
5727
5202
|
isArguments = __webpack_require__(30),
|
|
5728
5203
|
isArray = __webpack_require__(15),
|
|
5729
|
-
isArrayLikeObject = __webpack_require__(
|
|
5730
|
-
isBuffer = __webpack_require__(
|
|
5731
|
-
isFunction = __webpack_require__(
|
|
5204
|
+
isArrayLikeObject = __webpack_require__(112),
|
|
5205
|
+
isBuffer = __webpack_require__(52),
|
|
5206
|
+
isFunction = __webpack_require__(36),
|
|
5732
5207
|
isObject = __webpack_require__(14),
|
|
5733
|
-
isPlainObject = __webpack_require__(
|
|
5734
|
-
isTypedArray = __webpack_require__(
|
|
5735
|
-
safeGet = __webpack_require__(
|
|
5736
|
-
toPlainObject = __webpack_require__(
|
|
5208
|
+
isPlainObject = __webpack_require__(114),
|
|
5209
|
+
isTypedArray = __webpack_require__(53),
|
|
5210
|
+
safeGet = __webpack_require__(54),
|
|
5211
|
+
toPlainObject = __webpack_require__(118);
|
|
5737
5212
|
/**
|
|
5738
5213
|
* A specialized version of `baseMerge` for arrays and objects which performs
|
|
5739
5214
|
* deep merges and tracks traversed objects enabling objects with circular
|
|
@@ -5810,7 +5285,7 @@ function baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, sta
|
|
|
5810
5285
|
module.exports = baseMergeDeep;
|
|
5811
5286
|
|
|
5812
5287
|
/***/ }),
|
|
5813
|
-
/*
|
|
5288
|
+
/* 103 */
|
|
5814
5289
|
/***/ (function(module, exports, __webpack_require__) {
|
|
5815
5290
|
|
|
5816
5291
|
/* WEBPACK VAR INJECTION */(function(module) {var root = __webpack_require__(19);
|
|
@@ -5849,13 +5324,13 @@ function cloneBuffer(buffer, isDeep) {
|
|
|
5849
5324
|
}
|
|
5850
5325
|
|
|
5851
5326
|
module.exports = cloneBuffer;
|
|
5852
|
-
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(
|
|
5327
|
+
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(38)(module)))
|
|
5853
5328
|
|
|
5854
5329
|
/***/ }),
|
|
5855
|
-
/*
|
|
5330
|
+
/* 104 */
|
|
5856
5331
|
/***/ (function(module, exports, __webpack_require__) {
|
|
5857
5332
|
|
|
5858
|
-
var cloneArrayBuffer = __webpack_require__(
|
|
5333
|
+
var cloneArrayBuffer = __webpack_require__(105);
|
|
5859
5334
|
/**
|
|
5860
5335
|
* Creates a clone of `typedArray`.
|
|
5861
5336
|
*
|
|
@@ -5874,10 +5349,10 @@ function cloneTypedArray(typedArray, isDeep) {
|
|
|
5874
5349
|
module.exports = cloneTypedArray;
|
|
5875
5350
|
|
|
5876
5351
|
/***/ }),
|
|
5877
|
-
/*
|
|
5352
|
+
/* 105 */
|
|
5878
5353
|
/***/ (function(module, exports, __webpack_require__) {
|
|
5879
5354
|
|
|
5880
|
-
var Uint8Array = __webpack_require__(
|
|
5355
|
+
var Uint8Array = __webpack_require__(106);
|
|
5881
5356
|
/**
|
|
5882
5357
|
* Creates a clone of `arrayBuffer`.
|
|
5883
5358
|
*
|
|
@@ -5896,7 +5371,7 @@ function cloneArrayBuffer(arrayBuffer) {
|
|
|
5896
5371
|
module.exports = cloneArrayBuffer;
|
|
5897
5372
|
|
|
5898
5373
|
/***/ }),
|
|
5899
|
-
/*
|
|
5374
|
+
/* 106 */
|
|
5900
5375
|
/***/ (function(module, exports, __webpack_require__) {
|
|
5901
5376
|
|
|
5902
5377
|
var root = __webpack_require__(19);
|
|
@@ -5907,7 +5382,7 @@ var Uint8Array = root.Uint8Array;
|
|
|
5907
5382
|
module.exports = Uint8Array;
|
|
5908
5383
|
|
|
5909
5384
|
/***/ }),
|
|
5910
|
-
/*
|
|
5385
|
+
/* 107 */
|
|
5911
5386
|
/***/ (function(module, exports) {
|
|
5912
5387
|
|
|
5913
5388
|
/**
|
|
@@ -5933,12 +5408,12 @@ function copyArray(source, array) {
|
|
|
5933
5408
|
module.exports = copyArray;
|
|
5934
5409
|
|
|
5935
5410
|
/***/ }),
|
|
5936
|
-
/*
|
|
5411
|
+
/* 108 */
|
|
5937
5412
|
/***/ (function(module, exports, __webpack_require__) {
|
|
5938
5413
|
|
|
5939
|
-
var baseCreate = __webpack_require__(
|
|
5940
|
-
getPrototype = __webpack_require__(
|
|
5941
|
-
isPrototype = __webpack_require__(
|
|
5414
|
+
var baseCreate = __webpack_require__(109),
|
|
5415
|
+
getPrototype = __webpack_require__(50),
|
|
5416
|
+
isPrototype = __webpack_require__(51);
|
|
5942
5417
|
/**
|
|
5943
5418
|
* Initializes an object clone.
|
|
5944
5419
|
*
|
|
@@ -5955,7 +5430,7 @@ function initCloneObject(object) {
|
|
|
5955
5430
|
module.exports = initCloneObject;
|
|
5956
5431
|
|
|
5957
5432
|
/***/ }),
|
|
5958
|
-
/*
|
|
5433
|
+
/* 109 */
|
|
5959
5434
|
/***/ (function(module, exports, __webpack_require__) {
|
|
5960
5435
|
|
|
5961
5436
|
var isObject = __webpack_require__(14);
|
|
@@ -5994,7 +5469,7 @@ var baseCreate = function () {
|
|
|
5994
5469
|
module.exports = baseCreate;
|
|
5995
5470
|
|
|
5996
5471
|
/***/ }),
|
|
5997
|
-
/*
|
|
5472
|
+
/* 110 */
|
|
5998
5473
|
/***/ (function(module, exports) {
|
|
5999
5474
|
|
|
6000
5475
|
/**
|
|
@@ -6014,7 +5489,7 @@ function overArg(func, transform) {
|
|
|
6014
5489
|
module.exports = overArg;
|
|
6015
5490
|
|
|
6016
5491
|
/***/ }),
|
|
6017
|
-
/*
|
|
5492
|
+
/* 111 */
|
|
6018
5493
|
/***/ (function(module, exports, __webpack_require__) {
|
|
6019
5494
|
|
|
6020
5495
|
var baseGetTag = __webpack_require__(22),
|
|
@@ -6038,10 +5513,10 @@ function baseIsArguments(value) {
|
|
|
6038
5513
|
module.exports = baseIsArguments;
|
|
6039
5514
|
|
|
6040
5515
|
/***/ }),
|
|
6041
|
-
/*
|
|
5516
|
+
/* 112 */
|
|
6042
5517
|
/***/ (function(module, exports, __webpack_require__) {
|
|
6043
5518
|
|
|
6044
|
-
var isArrayLike = __webpack_require__(
|
|
5519
|
+
var isArrayLike = __webpack_require__(39),
|
|
6045
5520
|
isObjectLike = __webpack_require__(20);
|
|
6046
5521
|
/**
|
|
6047
5522
|
* This method is like `_.isArrayLike` except that it also checks if `value`
|
|
@@ -6077,7 +5552,7 @@ function isArrayLikeObject(value) {
|
|
|
6077
5552
|
module.exports = isArrayLikeObject;
|
|
6078
5553
|
|
|
6079
5554
|
/***/ }),
|
|
6080
|
-
/*
|
|
5555
|
+
/* 113 */
|
|
6081
5556
|
/***/ (function(module, exports) {
|
|
6082
5557
|
|
|
6083
5558
|
/**
|
|
@@ -6100,11 +5575,11 @@ function stubFalse() {
|
|
|
6100
5575
|
module.exports = stubFalse;
|
|
6101
5576
|
|
|
6102
5577
|
/***/ }),
|
|
6103
|
-
/*
|
|
5578
|
+
/* 114 */
|
|
6104
5579
|
/***/ (function(module, exports, __webpack_require__) {
|
|
6105
5580
|
|
|
6106
5581
|
var baseGetTag = __webpack_require__(22),
|
|
6107
|
-
getPrototype = __webpack_require__(
|
|
5582
|
+
getPrototype = __webpack_require__(50),
|
|
6108
5583
|
isObjectLike = __webpack_require__(20);
|
|
6109
5584
|
/** `Object#toString` result references. */
|
|
6110
5585
|
|
|
@@ -6170,11 +5645,11 @@ function isPlainObject(value) {
|
|
|
6170
5645
|
module.exports = isPlainObject;
|
|
6171
5646
|
|
|
6172
5647
|
/***/ }),
|
|
6173
|
-
/*
|
|
5648
|
+
/* 115 */
|
|
6174
5649
|
/***/ (function(module, exports, __webpack_require__) {
|
|
6175
5650
|
|
|
6176
5651
|
var baseGetTag = __webpack_require__(22),
|
|
6177
|
-
isLength = __webpack_require__(
|
|
5652
|
+
isLength = __webpack_require__(40),
|
|
6178
5653
|
isObjectLike = __webpack_require__(20);
|
|
6179
5654
|
/** `Object#toString` result references. */
|
|
6180
5655
|
|
|
@@ -6223,7 +5698,7 @@ function baseIsTypedArray(value) {
|
|
|
6223
5698
|
module.exports = baseIsTypedArray;
|
|
6224
5699
|
|
|
6225
5700
|
/***/ }),
|
|
6226
|
-
/*
|
|
5701
|
+
/* 116 */
|
|
6227
5702
|
/***/ (function(module, exports) {
|
|
6228
5703
|
|
|
6229
5704
|
/**
|
|
@@ -6242,10 +5717,10 @@ function baseUnary(func) {
|
|
|
6242
5717
|
module.exports = baseUnary;
|
|
6243
5718
|
|
|
6244
5719
|
/***/ }),
|
|
6245
|
-
/*
|
|
5720
|
+
/* 117 */
|
|
6246
5721
|
/***/ (function(module, exports, __webpack_require__) {
|
|
6247
5722
|
|
|
6248
|
-
/* WEBPACK VAR INJECTION */(function(module) {var freeGlobal = __webpack_require__(
|
|
5723
|
+
/* WEBPACK VAR INJECTION */(function(module) {var freeGlobal = __webpack_require__(45);
|
|
6249
5724
|
/** Detect free variable `exports`. */
|
|
6250
5725
|
|
|
6251
5726
|
|
|
@@ -6276,14 +5751,14 @@ var nodeUtil = function () {
|
|
|
6276
5751
|
}();
|
|
6277
5752
|
|
|
6278
5753
|
module.exports = nodeUtil;
|
|
6279
|
-
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(
|
|
5754
|
+
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(38)(module)))
|
|
6280
5755
|
|
|
6281
5756
|
/***/ }),
|
|
6282
|
-
/*
|
|
5757
|
+
/* 118 */
|
|
6283
5758
|
/***/ (function(module, exports, __webpack_require__) {
|
|
6284
5759
|
|
|
6285
|
-
var copyObject = __webpack_require__(
|
|
6286
|
-
keysIn = __webpack_require__(
|
|
5760
|
+
var copyObject = __webpack_require__(119),
|
|
5761
|
+
keysIn = __webpack_require__(56);
|
|
6287
5762
|
/**
|
|
6288
5763
|
* Converts `value` to a plain object flattening inherited enumerable string
|
|
6289
5764
|
* keyed properties of `value` to own properties of the plain object.
|
|
@@ -6317,11 +5792,11 @@ function toPlainObject(value) {
|
|
|
6317
5792
|
module.exports = toPlainObject;
|
|
6318
5793
|
|
|
6319
5794
|
/***/ }),
|
|
6320
|
-
/*
|
|
5795
|
+
/* 119 */
|
|
6321
5796
|
/***/ (function(module, exports, __webpack_require__) {
|
|
6322
5797
|
|
|
6323
|
-
var assignValue = __webpack_require__(
|
|
6324
|
-
baseAssignValue = __webpack_require__(
|
|
5798
|
+
var assignValue = __webpack_require__(55),
|
|
5799
|
+
baseAssignValue = __webpack_require__(37);
|
|
6325
5800
|
/**
|
|
6326
5801
|
* Copies properties of `source` to `object`.
|
|
6327
5802
|
*
|
|
@@ -6361,15 +5836,15 @@ function copyObject(source, props, object, customizer) {
|
|
|
6361
5836
|
module.exports = copyObject;
|
|
6362
5837
|
|
|
6363
5838
|
/***/ }),
|
|
6364
|
-
/*
|
|
5839
|
+
/* 120 */
|
|
6365
5840
|
/***/ (function(module, exports, __webpack_require__) {
|
|
6366
5841
|
|
|
6367
|
-
var baseTimes = __webpack_require__(
|
|
5842
|
+
var baseTimes = __webpack_require__(121),
|
|
6368
5843
|
isArguments = __webpack_require__(30),
|
|
6369
5844
|
isArray = __webpack_require__(15),
|
|
6370
|
-
isBuffer = __webpack_require__(
|
|
5845
|
+
isBuffer = __webpack_require__(52),
|
|
6371
5846
|
isIndex = __webpack_require__(31),
|
|
6372
|
-
isTypedArray = __webpack_require__(
|
|
5847
|
+
isTypedArray = __webpack_require__(53);
|
|
6373
5848
|
/** Used for built-in method references. */
|
|
6374
5849
|
|
|
6375
5850
|
|
|
@@ -6411,7 +5886,7 @@ function arrayLikeKeys(value, inherited) {
|
|
|
6411
5886
|
module.exports = arrayLikeKeys;
|
|
6412
5887
|
|
|
6413
5888
|
/***/ }),
|
|
6414
|
-
/*
|
|
5889
|
+
/* 121 */
|
|
6415
5890
|
/***/ (function(module, exports) {
|
|
6416
5891
|
|
|
6417
5892
|
/**
|
|
@@ -6437,12 +5912,12 @@ function baseTimes(n, iteratee) {
|
|
|
6437
5912
|
module.exports = baseTimes;
|
|
6438
5913
|
|
|
6439
5914
|
/***/ }),
|
|
6440
|
-
/*
|
|
5915
|
+
/* 122 */
|
|
6441
5916
|
/***/ (function(module, exports, __webpack_require__) {
|
|
6442
5917
|
|
|
6443
5918
|
var isObject = __webpack_require__(14),
|
|
6444
|
-
isPrototype = __webpack_require__(
|
|
6445
|
-
nativeKeysIn = __webpack_require__(
|
|
5919
|
+
isPrototype = __webpack_require__(51),
|
|
5920
|
+
nativeKeysIn = __webpack_require__(123);
|
|
6446
5921
|
/** Used for built-in method references. */
|
|
6447
5922
|
|
|
6448
5923
|
|
|
@@ -6478,7 +5953,7 @@ function baseKeysIn(object) {
|
|
|
6478
5953
|
module.exports = baseKeysIn;
|
|
6479
5954
|
|
|
6480
5955
|
/***/ }),
|
|
6481
|
-
/*
|
|
5956
|
+
/* 123 */
|
|
6482
5957
|
/***/ (function(module, exports) {
|
|
6483
5958
|
|
|
6484
5959
|
/**
|
|
@@ -6505,11 +5980,11 @@ function nativeKeysIn(object) {
|
|
|
6505
5980
|
module.exports = nativeKeysIn;
|
|
6506
5981
|
|
|
6507
5982
|
/***/ }),
|
|
6508
|
-
/*
|
|
5983
|
+
/* 124 */
|
|
6509
5984
|
/***/ (function(module, exports, __webpack_require__) {
|
|
6510
5985
|
|
|
6511
|
-
var baseRest = __webpack_require__(
|
|
6512
|
-
isIterateeCall = __webpack_require__(
|
|
5986
|
+
var baseRest = __webpack_require__(125),
|
|
5987
|
+
isIterateeCall = __webpack_require__(130);
|
|
6513
5988
|
/**
|
|
6514
5989
|
* Creates a function like `_.assign`.
|
|
6515
5990
|
*
|
|
@@ -6549,12 +6024,12 @@ function createAssigner(assigner) {
|
|
|
6549
6024
|
module.exports = createAssigner;
|
|
6550
6025
|
|
|
6551
6026
|
/***/ }),
|
|
6552
|
-
/*
|
|
6027
|
+
/* 125 */
|
|
6553
6028
|
/***/ (function(module, exports, __webpack_require__) {
|
|
6554
6029
|
|
|
6555
|
-
var identity = __webpack_require__(
|
|
6556
|
-
overRest = __webpack_require__(
|
|
6557
|
-
setToString = __webpack_require__(
|
|
6030
|
+
var identity = __webpack_require__(57),
|
|
6031
|
+
overRest = __webpack_require__(58),
|
|
6032
|
+
setToString = __webpack_require__(59);
|
|
6558
6033
|
/**
|
|
6559
6034
|
* The base implementation of `_.rest` which doesn't validate or coerce arguments.
|
|
6560
6035
|
*
|
|
@@ -6572,7 +6047,7 @@ function baseRest(func, start) {
|
|
|
6572
6047
|
module.exports = baseRest;
|
|
6573
6048
|
|
|
6574
6049
|
/***/ }),
|
|
6575
|
-
/*
|
|
6050
|
+
/* 126 */
|
|
6576
6051
|
/***/ (function(module, exports) {
|
|
6577
6052
|
|
|
6578
6053
|
/**
|
|
@@ -6606,12 +6081,12 @@ function apply(func, thisArg, args) {
|
|
|
6606
6081
|
module.exports = apply;
|
|
6607
6082
|
|
|
6608
6083
|
/***/ }),
|
|
6609
|
-
/*
|
|
6084
|
+
/* 127 */
|
|
6610
6085
|
/***/ (function(module, exports, __webpack_require__) {
|
|
6611
6086
|
|
|
6612
|
-
var constant = __webpack_require__(
|
|
6613
|
-
defineProperty = __webpack_require__(
|
|
6614
|
-
identity = __webpack_require__(
|
|
6087
|
+
var constant = __webpack_require__(128),
|
|
6088
|
+
defineProperty = __webpack_require__(49),
|
|
6089
|
+
identity = __webpack_require__(57);
|
|
6615
6090
|
/**
|
|
6616
6091
|
* The base implementation of `setToString` without support for hot loop shorting.
|
|
6617
6092
|
*
|
|
@@ -6633,7 +6108,7 @@ var baseSetToString = !defineProperty ? identity : function (func, string) {
|
|
|
6633
6108
|
module.exports = baseSetToString;
|
|
6634
6109
|
|
|
6635
6110
|
/***/ }),
|
|
6636
|
-
/*
|
|
6111
|
+
/* 128 */
|
|
6637
6112
|
/***/ (function(module, exports) {
|
|
6638
6113
|
|
|
6639
6114
|
/**
|
|
@@ -6664,7 +6139,7 @@ function constant(value) {
|
|
|
6664
6139
|
module.exports = constant;
|
|
6665
6140
|
|
|
6666
6141
|
/***/ }),
|
|
6667
|
-
/*
|
|
6142
|
+
/* 129 */
|
|
6668
6143
|
/***/ (function(module, exports) {
|
|
6669
6144
|
|
|
6670
6145
|
/** Used to detect hot functions by number of calls within a span of milliseconds. */
|
|
@@ -6706,11 +6181,11 @@ function shortOut(func) {
|
|
|
6706
6181
|
module.exports = shortOut;
|
|
6707
6182
|
|
|
6708
6183
|
/***/ }),
|
|
6709
|
-
/*
|
|
6184
|
+
/* 130 */
|
|
6710
6185
|
/***/ (function(module, exports, __webpack_require__) {
|
|
6711
6186
|
|
|
6712
6187
|
var eq = __webpack_require__(26),
|
|
6713
|
-
isArrayLike = __webpack_require__(
|
|
6188
|
+
isArrayLike = __webpack_require__(39),
|
|
6714
6189
|
isIndex = __webpack_require__(31),
|
|
6715
6190
|
isObject = __webpack_require__(14);
|
|
6716
6191
|
/**
|
|
@@ -6732,1487 +6207,140 @@ function isIterateeCall(value, index, object) {
|
|
|
6732
6207
|
|
|
6733
6208
|
var type = typeof index;
|
|
6734
6209
|
|
|
6735
|
-
if (type == 'number' ? isArrayLike(object) && isIndex(index, object.length) : type == 'string' && index in object) {
|
|
6736
|
-
return eq(object[index], value);
|
|
6737
|
-
}
|
|
6738
|
-
|
|
6739
|
-
return false;
|
|
6740
|
-
}
|
|
6741
|
-
|
|
6742
|
-
module.exports = isIterateeCall;
|
|
6743
|
-
|
|
6744
|
-
/***/ }),
|
|
6745
|
-
/* 154 */
|
|
6746
|
-
/***/ (function(module, exports) {
|
|
6747
|
-
|
|
6748
|
-
/*
|
|
6749
|
-
* typedefs.js
|
|
6750
|
-
* Normalizes browser-specific prefixes and provide some basic polyfills
|
|
6751
|
-
*/
|
|
6752
|
-
if (typeof window !== 'undefined') {
|
|
6753
|
-
if (!window.requestAnimationFrame) {
|
|
6754
|
-
window.requestAnimationFrame = function () {
|
|
6755
|
-
return window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.oRequestAnimationFrame || window.msRequestAnimationFrame || function (
|
|
6756
|
-
/* function FrameRequestCallback */
|
|
6757
|
-
callback) {
|
|
6758
|
-
window.setTimeout(callback, 1000 / 60);
|
|
6759
|
-
};
|
|
6760
|
-
}();
|
|
6761
|
-
}
|
|
6762
|
-
}
|
|
6763
|
-
|
|
6764
|
-
if (typeof Math.imul !== 'function') {
|
|
6765
|
-
/* eslint-disable no-bitwise */
|
|
6766
|
-
Math.imul = function (a, b) {
|
|
6767
|
-
var ah = a >>> 16 & 0xffff;
|
|
6768
|
-
var al = a & 0xffff;
|
|
6769
|
-
var bh = b >>> 16 & 0xffff;
|
|
6770
|
-
var bl = b & 0xffff; // the shift by 0 fixes the sign on the high part
|
|
6771
|
-
// the final |0 converts the unsigned value into a signed value
|
|
6772
|
-
|
|
6773
|
-
return al * bl + (ah * bl + al * bh << 16 >>> 0) | 0;
|
|
6774
|
-
};
|
|
6775
|
-
/* eslint-enable no-bitwise */
|
|
6776
|
-
|
|
6777
|
-
}
|
|
6778
|
-
|
|
6779
|
-
if (typeof Object.assign !== 'function') {
|
|
6780
|
-
Object.assign = function (target) {
|
|
6781
|
-
// .length of function is 2
|
|
6782
|
-
'use strict';
|
|
6783
|
-
|
|
6784
|
-
if (target === null) {
|
|
6785
|
-
// TypeError if undefined or null
|
|
6786
|
-
throw new TypeError('Cannot convert undefined or null to object');
|
|
6787
|
-
}
|
|
6788
|
-
|
|
6789
|
-
var to = Object(target);
|
|
6790
|
-
|
|
6791
|
-
for (var index = 1; index < arguments.length; index++) {
|
|
6792
|
-
// eslint-disable-next-line prefer-rest-params
|
|
6793
|
-
var nextSource = arguments[index];
|
|
6794
|
-
|
|
6795
|
-
if (nextSource !== null) {
|
|
6796
|
-
// Skip over if undefined or null
|
|
6797
|
-
// eslint-disable-next-line no-restricted-syntax
|
|
6798
|
-
for (var nextKey in nextSource) {
|
|
6799
|
-
// Avoid bugs when hasOwnProperty is shadowed
|
|
6800
|
-
if (Object.prototype.hasOwnProperty.call(nextSource, nextKey)) {
|
|
6801
|
-
to[nextKey] = nextSource[nextKey];
|
|
6802
|
-
}
|
|
6803
|
-
}
|
|
6804
|
-
}
|
|
6805
|
-
}
|
|
6806
|
-
|
|
6807
|
-
return to;
|
|
6808
|
-
};
|
|
6809
|
-
}
|
|
6810
|
-
|
|
6811
|
-
/***/ }),
|
|
6812
|
-
/* 155 */
|
|
6813
|
-
/***/ (function(module, exports) {
|
|
6814
|
-
|
|
6815
|
-
function _arrayWithHoles(arr) {
|
|
6816
|
-
if (Array.isArray(arr)) return arr;
|
|
6817
|
-
}
|
|
6818
|
-
|
|
6819
|
-
module.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
6820
|
-
|
|
6821
|
-
/***/ }),
|
|
6822
|
-
/* 156 */
|
|
6823
|
-
/***/ (function(module, exports) {
|
|
6824
|
-
|
|
6825
|
-
function _iterableToArrayLimit(arr, i) {
|
|
6826
|
-
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
6827
|
-
|
|
6828
|
-
if (_i == null) return;
|
|
6829
|
-
var _arr = [];
|
|
6830
|
-
var _n = true;
|
|
6831
|
-
var _d = false;
|
|
6832
|
-
|
|
6833
|
-
var _s, _e;
|
|
6834
|
-
|
|
6835
|
-
try {
|
|
6836
|
-
for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
|
|
6837
|
-
_arr.push(_s.value);
|
|
6838
|
-
|
|
6839
|
-
if (i && _arr.length === i) break;
|
|
6840
|
-
}
|
|
6841
|
-
} catch (err) {
|
|
6842
|
-
_d = true;
|
|
6843
|
-
_e = err;
|
|
6844
|
-
} finally {
|
|
6845
|
-
try {
|
|
6846
|
-
if (!_n && _i["return"] != null) _i["return"]();
|
|
6847
|
-
} finally {
|
|
6848
|
-
if (_d) throw _e;
|
|
6849
|
-
}
|
|
6850
|
-
}
|
|
6851
|
-
|
|
6852
|
-
return _arr;
|
|
6853
|
-
}
|
|
6854
|
-
|
|
6855
|
-
module.exports = _iterableToArrayLimit, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
6856
|
-
|
|
6857
|
-
/***/ }),
|
|
6858
|
-
/* 157 */
|
|
6859
|
-
/***/ (function(module, exports) {
|
|
6860
|
-
|
|
6861
|
-
function _nonIterableRest() {
|
|
6862
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
6863
|
-
}
|
|
6864
|
-
|
|
6865
|
-
module.exports = _nonIterableRest, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
6866
|
-
|
|
6867
|
-
/***/ }),
|
|
6868
|
-
/* 158 */
|
|
6869
|
-
/***/ (function(module, exports) {
|
|
6870
|
-
|
|
6871
|
-
module.exports = clone;
|
|
6872
|
-
/**
|
|
6873
|
-
* Creates a new vec2 initialized with values from an existing vector
|
|
6874
|
-
*
|
|
6875
|
-
* @param {vec2} a vector to clone
|
|
6876
|
-
* @returns {vec2} a new 2D vector
|
|
6877
|
-
*/
|
|
6878
|
-
|
|
6879
|
-
function clone(a) {
|
|
6880
|
-
var out = new Float32Array(2);
|
|
6881
|
-
out[0] = a[0];
|
|
6882
|
-
out[1] = a[1];
|
|
6883
|
-
return out;
|
|
6884
|
-
}
|
|
6885
|
-
|
|
6886
|
-
/***/ }),
|
|
6887
|
-
/* 159 */
|
|
6888
|
-
/***/ (function(module, exports) {
|
|
6889
|
-
|
|
6890
|
-
module.exports = fromValues;
|
|
6891
|
-
/**
|
|
6892
|
-
* Creates a new vec2 initialized with the given values
|
|
6893
|
-
*
|
|
6894
|
-
* @param {Number} x X component
|
|
6895
|
-
* @param {Number} y Y component
|
|
6896
|
-
* @returns {vec2} a new 2D vector
|
|
6897
|
-
*/
|
|
6898
|
-
|
|
6899
|
-
function fromValues(x, y) {
|
|
6900
|
-
var out = new Float32Array(2);
|
|
6901
|
-
out[0] = x;
|
|
6902
|
-
out[1] = y;
|
|
6903
|
-
return out;
|
|
6904
|
-
}
|
|
6905
|
-
|
|
6906
|
-
/***/ }),
|
|
6907
|
-
/* 160 */
|
|
6908
|
-
/***/ (function(module, exports) {
|
|
6909
|
-
|
|
6910
|
-
module.exports = copy;
|
|
6911
|
-
/**
|
|
6912
|
-
* Copy the values from one vec2 to another
|
|
6913
|
-
*
|
|
6914
|
-
* @param {vec2} out the receiving vector
|
|
6915
|
-
* @param {vec2} a the source vector
|
|
6916
|
-
* @returns {vec2} out
|
|
6917
|
-
*/
|
|
6918
|
-
|
|
6919
|
-
function copy(out, a) {
|
|
6920
|
-
out[0] = a[0];
|
|
6921
|
-
out[1] = a[1];
|
|
6922
|
-
return out;
|
|
6923
|
-
}
|
|
6924
|
-
|
|
6925
|
-
/***/ }),
|
|
6926
|
-
/* 161 */
|
|
6927
|
-
/***/ (function(module, exports) {
|
|
6928
|
-
|
|
6929
|
-
module.exports = set;
|
|
6930
|
-
/**
|
|
6931
|
-
* Set the components of a vec2 to the given values
|
|
6932
|
-
*
|
|
6933
|
-
* @param {vec2} out the receiving vector
|
|
6934
|
-
* @param {Number} x X component
|
|
6935
|
-
* @param {Number} y Y component
|
|
6936
|
-
* @returns {vec2} out
|
|
6937
|
-
*/
|
|
6938
|
-
|
|
6939
|
-
function set(out, x, y) {
|
|
6940
|
-
out[0] = x;
|
|
6941
|
-
out[1] = y;
|
|
6942
|
-
return out;
|
|
6943
|
-
}
|
|
6944
|
-
|
|
6945
|
-
/***/ }),
|
|
6946
|
-
/* 162 */
|
|
6947
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
6948
|
-
|
|
6949
|
-
module.exports = equals;
|
|
6950
|
-
|
|
6951
|
-
var EPSILON = __webpack_require__(63);
|
|
6952
|
-
/**
|
|
6953
|
-
* Returns whether or not the vectors have approximately the same elements in the same position.
|
|
6954
|
-
*
|
|
6955
|
-
* @param {vec2} a The first vector.
|
|
6956
|
-
* @param {vec2} b The second vector.
|
|
6957
|
-
* @returns {Boolean} True if the vectors are equal, false otherwise.
|
|
6958
|
-
*/
|
|
6959
|
-
|
|
6960
|
-
|
|
6961
|
-
function equals(a, b) {
|
|
6962
|
-
var a0 = a[0];
|
|
6963
|
-
var a1 = a[1];
|
|
6964
|
-
var b0 = b[0];
|
|
6965
|
-
var b1 = b[1];
|
|
6966
|
-
return Math.abs(a0 - b0) <= EPSILON * Math.max(1.0, Math.abs(a0), Math.abs(b0)) && Math.abs(a1 - b1) <= EPSILON * Math.max(1.0, Math.abs(a1), Math.abs(b1));
|
|
6967
|
-
}
|
|
6968
|
-
|
|
6969
|
-
/***/ }),
|
|
6970
|
-
/* 163 */
|
|
6971
|
-
/***/ (function(module, exports) {
|
|
6972
|
-
|
|
6973
|
-
module.exports = exactEquals;
|
|
6974
|
-
/**
|
|
6975
|
-
* Returns whether or not the vectors exactly have the same elements in the same position (when compared with ===)
|
|
6976
|
-
*
|
|
6977
|
-
* @param {vec2} a The first vector.
|
|
6978
|
-
* @param {vec2} b The second vector.
|
|
6979
|
-
* @returns {Boolean} True if the vectors are equal, false otherwise.
|
|
6980
|
-
*/
|
|
6981
|
-
|
|
6982
|
-
function exactEquals(a, b) {
|
|
6983
|
-
return a[0] === b[0] && a[1] === b[1];
|
|
6984
|
-
}
|
|
6985
|
-
|
|
6986
|
-
/***/ }),
|
|
6987
|
-
/* 164 */
|
|
6988
|
-
/***/ (function(module, exports) {
|
|
6989
|
-
|
|
6990
|
-
module.exports = add;
|
|
6991
|
-
/**
|
|
6992
|
-
* Adds two vec2's
|
|
6993
|
-
*
|
|
6994
|
-
* @param {vec2} out the receiving vector
|
|
6995
|
-
* @param {vec2} a the first operand
|
|
6996
|
-
* @param {vec2} b the second operand
|
|
6997
|
-
* @returns {vec2} out
|
|
6998
|
-
*/
|
|
6999
|
-
|
|
7000
|
-
function add(out, a, b) {
|
|
7001
|
-
out[0] = a[0] + b[0];
|
|
7002
|
-
out[1] = a[1] + b[1];
|
|
7003
|
-
return out;
|
|
7004
|
-
}
|
|
7005
|
-
|
|
7006
|
-
/***/ }),
|
|
7007
|
-
/* 165 */
|
|
7008
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
7009
|
-
|
|
7010
|
-
module.exports = __webpack_require__(65);
|
|
7011
|
-
|
|
7012
|
-
/***/ }),
|
|
7013
|
-
/* 166 */
|
|
7014
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
7015
|
-
|
|
7016
|
-
module.exports = __webpack_require__(66);
|
|
7017
|
-
|
|
7018
|
-
/***/ }),
|
|
7019
|
-
/* 167 */
|
|
7020
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
7021
|
-
|
|
7022
|
-
module.exports = __webpack_require__(67);
|
|
7023
|
-
|
|
7024
|
-
/***/ }),
|
|
7025
|
-
/* 168 */
|
|
7026
|
-
/***/ (function(module, exports) {
|
|
7027
|
-
|
|
7028
|
-
module.exports = inverse;
|
|
7029
|
-
/**
|
|
7030
|
-
* Returns the inverse of the components of a vec2
|
|
7031
|
-
*
|
|
7032
|
-
* @param {vec2} out the receiving vector
|
|
7033
|
-
* @param {vec2} a vector to invert
|
|
7034
|
-
* @returns {vec2} out
|
|
7035
|
-
*/
|
|
7036
|
-
|
|
7037
|
-
function inverse(out, a) {
|
|
7038
|
-
out[0] = 1.0 / a[0];
|
|
7039
|
-
out[1] = 1.0 / a[1];
|
|
7040
|
-
return out;
|
|
7041
|
-
}
|
|
7042
|
-
|
|
7043
|
-
/***/ }),
|
|
7044
|
-
/* 169 */
|
|
7045
|
-
/***/ (function(module, exports) {
|
|
7046
|
-
|
|
7047
|
-
module.exports = min;
|
|
7048
|
-
/**
|
|
7049
|
-
* Returns the minimum of two vec2's
|
|
7050
|
-
*
|
|
7051
|
-
* @param {vec2} out the receiving vector
|
|
7052
|
-
* @param {vec2} a the first operand
|
|
7053
|
-
* @param {vec2} b the second operand
|
|
7054
|
-
* @returns {vec2} out
|
|
7055
|
-
*/
|
|
7056
|
-
|
|
7057
|
-
function min(out, a, b) {
|
|
7058
|
-
out[0] = Math.min(a[0], b[0]);
|
|
7059
|
-
out[1] = Math.min(a[1], b[1]);
|
|
7060
|
-
return out;
|
|
7061
|
-
}
|
|
7062
|
-
|
|
7063
|
-
/***/ }),
|
|
7064
|
-
/* 170 */
|
|
7065
|
-
/***/ (function(module, exports) {
|
|
7066
|
-
|
|
7067
|
-
module.exports = max;
|
|
7068
|
-
/**
|
|
7069
|
-
* Returns the maximum of two vec2's
|
|
7070
|
-
*
|
|
7071
|
-
* @param {vec2} out the receiving vector
|
|
7072
|
-
* @param {vec2} a the first operand
|
|
7073
|
-
* @param {vec2} b the second operand
|
|
7074
|
-
* @returns {vec2} out
|
|
7075
|
-
*/
|
|
7076
|
-
|
|
7077
|
-
function max(out, a, b) {
|
|
7078
|
-
out[0] = Math.max(a[0], b[0]);
|
|
7079
|
-
out[1] = Math.max(a[1], b[1]);
|
|
7080
|
-
return out;
|
|
7081
|
-
}
|
|
7082
|
-
|
|
7083
|
-
/***/ }),
|
|
7084
|
-
/* 171 */
|
|
7085
|
-
/***/ (function(module, exports) {
|
|
7086
|
-
|
|
7087
|
-
module.exports = rotate;
|
|
7088
|
-
/**
|
|
7089
|
-
* Rotates a vec2 by an angle
|
|
7090
|
-
*
|
|
7091
|
-
* @param {vec2} out the receiving vector
|
|
7092
|
-
* @param {vec2} a the vector to rotate
|
|
7093
|
-
* @param {Number} angle the angle of rotation (in radians)
|
|
7094
|
-
* @returns {vec2} out
|
|
7095
|
-
*/
|
|
7096
|
-
|
|
7097
|
-
function rotate(out, a, angle) {
|
|
7098
|
-
var c = Math.cos(angle),
|
|
7099
|
-
s = Math.sin(angle);
|
|
7100
|
-
var x = a[0],
|
|
7101
|
-
y = a[1];
|
|
7102
|
-
out[0] = x * c - y * s;
|
|
7103
|
-
out[1] = x * s + y * c;
|
|
7104
|
-
return out;
|
|
7105
|
-
}
|
|
7106
|
-
|
|
7107
|
-
/***/ }),
|
|
7108
|
-
/* 172 */
|
|
7109
|
-
/***/ (function(module, exports) {
|
|
7110
|
-
|
|
7111
|
-
module.exports = floor;
|
|
7112
|
-
/**
|
|
7113
|
-
* Math.floor the components of a vec2
|
|
7114
|
-
*
|
|
7115
|
-
* @param {vec2} out the receiving vector
|
|
7116
|
-
* @param {vec2} a vector to floor
|
|
7117
|
-
* @returns {vec2} out
|
|
7118
|
-
*/
|
|
7119
|
-
|
|
7120
|
-
function floor(out, a) {
|
|
7121
|
-
out[0] = Math.floor(a[0]);
|
|
7122
|
-
out[1] = Math.floor(a[1]);
|
|
7123
|
-
return out;
|
|
7124
|
-
}
|
|
7125
|
-
|
|
7126
|
-
/***/ }),
|
|
7127
|
-
/* 173 */
|
|
7128
|
-
/***/ (function(module, exports) {
|
|
7129
|
-
|
|
7130
|
-
module.exports = ceil;
|
|
7131
|
-
/**
|
|
7132
|
-
* Math.ceil the components of a vec2
|
|
7133
|
-
*
|
|
7134
|
-
* @param {vec2} out the receiving vector
|
|
7135
|
-
* @param {vec2} a vector to ceil
|
|
7136
|
-
* @returns {vec2} out
|
|
7137
|
-
*/
|
|
7138
|
-
|
|
7139
|
-
function ceil(out, a) {
|
|
7140
|
-
out[0] = Math.ceil(a[0]);
|
|
7141
|
-
out[1] = Math.ceil(a[1]);
|
|
7142
|
-
return out;
|
|
7143
|
-
}
|
|
7144
|
-
|
|
7145
|
-
/***/ }),
|
|
7146
|
-
/* 174 */
|
|
7147
|
-
/***/ (function(module, exports) {
|
|
7148
|
-
|
|
7149
|
-
module.exports = round;
|
|
7150
|
-
/**
|
|
7151
|
-
* Math.round the components of a vec2
|
|
7152
|
-
*
|
|
7153
|
-
* @param {vec2} out the receiving vector
|
|
7154
|
-
* @param {vec2} a vector to round
|
|
7155
|
-
* @returns {vec2} out
|
|
7156
|
-
*/
|
|
7157
|
-
|
|
7158
|
-
function round(out, a) {
|
|
7159
|
-
out[0] = Math.round(a[0]);
|
|
7160
|
-
out[1] = Math.round(a[1]);
|
|
7161
|
-
return out;
|
|
7162
|
-
}
|
|
7163
|
-
|
|
7164
|
-
/***/ }),
|
|
7165
|
-
/* 175 */
|
|
7166
|
-
/***/ (function(module, exports) {
|
|
7167
|
-
|
|
7168
|
-
module.exports = scale;
|
|
7169
|
-
/**
|
|
7170
|
-
* Scales a vec2 by a scalar number
|
|
7171
|
-
*
|
|
7172
|
-
* @param {vec2} out the receiving vector
|
|
7173
|
-
* @param {vec2} a the vector to scale
|
|
7174
|
-
* @param {Number} b amount to scale the vector by
|
|
7175
|
-
* @returns {vec2} out
|
|
7176
|
-
*/
|
|
7177
|
-
|
|
7178
|
-
function scale(out, a, b) {
|
|
7179
|
-
out[0] = a[0] * b;
|
|
7180
|
-
out[1] = a[1] * b;
|
|
7181
|
-
return out;
|
|
7182
|
-
}
|
|
7183
|
-
|
|
7184
|
-
/***/ }),
|
|
7185
|
-
/* 176 */
|
|
7186
|
-
/***/ (function(module, exports) {
|
|
7187
|
-
|
|
7188
|
-
module.exports = scaleAndAdd;
|
|
7189
|
-
/**
|
|
7190
|
-
* Adds two vec2's after scaling the second operand by a scalar value
|
|
7191
|
-
*
|
|
7192
|
-
* @param {vec2} out the receiving vector
|
|
7193
|
-
* @param {vec2} a the first operand
|
|
7194
|
-
* @param {vec2} b the second operand
|
|
7195
|
-
* @param {Number} scale the amount to scale b by before adding
|
|
7196
|
-
* @returns {vec2} out
|
|
7197
|
-
*/
|
|
7198
|
-
|
|
7199
|
-
function scaleAndAdd(out, a, b, scale) {
|
|
7200
|
-
out[0] = a[0] + b[0] * scale;
|
|
7201
|
-
out[1] = a[1] + b[1] * scale;
|
|
7202
|
-
return out;
|
|
7203
|
-
}
|
|
7204
|
-
|
|
7205
|
-
/***/ }),
|
|
7206
|
-
/* 177 */
|
|
7207
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
7208
|
-
|
|
7209
|
-
module.exports = __webpack_require__(68);
|
|
7210
|
-
|
|
7211
|
-
/***/ }),
|
|
7212
|
-
/* 178 */
|
|
7213
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
7214
|
-
|
|
7215
|
-
module.exports = __webpack_require__(69);
|
|
7216
|
-
|
|
7217
|
-
/***/ }),
|
|
7218
|
-
/* 179 */
|
|
7219
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
7220
|
-
|
|
7221
|
-
module.exports = __webpack_require__(70);
|
|
7222
|
-
|
|
7223
|
-
/***/ }),
|
|
7224
|
-
/* 180 */
|
|
7225
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
7226
|
-
|
|
7227
|
-
module.exports = __webpack_require__(71);
|
|
7228
|
-
|
|
7229
|
-
/***/ }),
|
|
7230
|
-
/* 181 */
|
|
7231
|
-
/***/ (function(module, exports) {
|
|
7232
|
-
|
|
7233
|
-
module.exports = negate;
|
|
7234
|
-
/**
|
|
7235
|
-
* Negates the components of a vec2
|
|
7236
|
-
*
|
|
7237
|
-
* @param {vec2} out the receiving vector
|
|
7238
|
-
* @param {vec2} a vector to negate
|
|
7239
|
-
* @returns {vec2} out
|
|
7240
|
-
*/
|
|
7241
|
-
|
|
7242
|
-
function negate(out, a) {
|
|
7243
|
-
out[0] = -a[0];
|
|
7244
|
-
out[1] = -a[1];
|
|
7245
|
-
return out;
|
|
7246
|
-
}
|
|
7247
|
-
|
|
7248
|
-
/***/ }),
|
|
7249
|
-
/* 182 */
|
|
7250
|
-
/***/ (function(module, exports) {
|
|
7251
|
-
|
|
7252
|
-
module.exports = normalize;
|
|
7253
|
-
/**
|
|
7254
|
-
* Normalize a vec2
|
|
7255
|
-
*
|
|
7256
|
-
* @param {vec2} out the receiving vector
|
|
7257
|
-
* @param {vec2} a vector to normalize
|
|
7258
|
-
* @returns {vec2} out
|
|
7259
|
-
*/
|
|
7260
|
-
|
|
7261
|
-
function normalize(out, a) {
|
|
7262
|
-
var x = a[0],
|
|
7263
|
-
y = a[1];
|
|
7264
|
-
var len = x * x + y * y;
|
|
7265
|
-
|
|
7266
|
-
if (len > 0) {
|
|
7267
|
-
//TODO: evaluate use of glm_invsqrt here?
|
|
7268
|
-
len = 1 / Math.sqrt(len);
|
|
7269
|
-
out[0] = a[0] * len;
|
|
7270
|
-
out[1] = a[1] * len;
|
|
7271
|
-
}
|
|
7272
|
-
|
|
7273
|
-
return out;
|
|
7274
|
-
}
|
|
7275
|
-
|
|
7276
|
-
/***/ }),
|
|
7277
|
-
/* 183 */
|
|
7278
|
-
/***/ (function(module, exports) {
|
|
7279
|
-
|
|
7280
|
-
module.exports = dot;
|
|
7281
|
-
/**
|
|
7282
|
-
* Calculates the dot product of two vec2's
|
|
7283
|
-
*
|
|
7284
|
-
* @param {vec2} a the first operand
|
|
7285
|
-
* @param {vec2} b the second operand
|
|
7286
|
-
* @returns {Number} dot product of a and b
|
|
7287
|
-
*/
|
|
7288
|
-
|
|
7289
|
-
function dot(a, b) {
|
|
7290
|
-
return a[0] * b[0] + a[1] * b[1];
|
|
7291
|
-
}
|
|
7292
|
-
|
|
7293
|
-
/***/ }),
|
|
7294
|
-
/* 184 */
|
|
7295
|
-
/***/ (function(module, exports) {
|
|
7296
|
-
|
|
7297
|
-
module.exports = cross;
|
|
7298
|
-
/**
|
|
7299
|
-
* Computes the cross product of two vec2's
|
|
7300
|
-
* Note that the cross product must by definition produce a 3D vector
|
|
7301
|
-
*
|
|
7302
|
-
* @param {vec3} out the receiving vector
|
|
7303
|
-
* @param {vec2} a the first operand
|
|
7304
|
-
* @param {vec2} b the second operand
|
|
7305
|
-
* @returns {vec3} out
|
|
7306
|
-
*/
|
|
7307
|
-
|
|
7308
|
-
function cross(out, a, b) {
|
|
7309
|
-
var z = a[0] * b[1] - a[1] * b[0];
|
|
7310
|
-
out[0] = out[1] = 0;
|
|
7311
|
-
out[2] = z;
|
|
7312
|
-
return out;
|
|
7313
|
-
}
|
|
7314
|
-
|
|
7315
|
-
/***/ }),
|
|
7316
|
-
/* 185 */
|
|
7317
|
-
/***/ (function(module, exports) {
|
|
7318
|
-
|
|
7319
|
-
module.exports = lerp;
|
|
7320
|
-
/**
|
|
7321
|
-
* Performs a linear interpolation between two vec2's
|
|
7322
|
-
*
|
|
7323
|
-
* @param {vec2} out the receiving vector
|
|
7324
|
-
* @param {vec2} a the first operand
|
|
7325
|
-
* @param {vec2} b the second operand
|
|
7326
|
-
* @param {Number} t interpolation amount between the two inputs
|
|
7327
|
-
* @returns {vec2} out
|
|
7328
|
-
*/
|
|
7329
|
-
|
|
7330
|
-
function lerp(out, a, b, t) {
|
|
7331
|
-
var ax = a[0],
|
|
7332
|
-
ay = a[1];
|
|
7333
|
-
out[0] = ax + t * (b[0] - ax);
|
|
7334
|
-
out[1] = ay + t * (b[1] - ay);
|
|
7335
|
-
return out;
|
|
7336
|
-
}
|
|
7337
|
-
|
|
7338
|
-
/***/ }),
|
|
7339
|
-
/* 186 */
|
|
7340
|
-
/***/ (function(module, exports) {
|
|
7341
|
-
|
|
7342
|
-
module.exports = random;
|
|
7343
|
-
/**
|
|
7344
|
-
* Generates a random vector with the given scale
|
|
7345
|
-
*
|
|
7346
|
-
* @param {vec2} out the receiving vector
|
|
7347
|
-
* @param {Number} [scale] Length of the resulting vector. If ommitted, a unit vector will be returned
|
|
7348
|
-
* @returns {vec2} out
|
|
7349
|
-
*/
|
|
7350
|
-
|
|
7351
|
-
function random(out, scale) {
|
|
7352
|
-
scale = scale || 1.0;
|
|
7353
|
-
var r = Math.random() * 2.0 * Math.PI;
|
|
7354
|
-
out[0] = Math.cos(r) * scale;
|
|
7355
|
-
out[1] = Math.sin(r) * scale;
|
|
7356
|
-
return out;
|
|
7357
|
-
}
|
|
7358
|
-
|
|
7359
|
-
/***/ }),
|
|
7360
|
-
/* 187 */
|
|
7361
|
-
/***/ (function(module, exports) {
|
|
7362
|
-
|
|
7363
|
-
module.exports = transformMat2;
|
|
7364
|
-
/**
|
|
7365
|
-
* Transforms the vec2 with a mat2
|
|
7366
|
-
*
|
|
7367
|
-
* @param {vec2} out the receiving vector
|
|
7368
|
-
* @param {vec2} a the vector to transform
|
|
7369
|
-
* @param {mat2} m matrix to transform with
|
|
7370
|
-
* @returns {vec2} out
|
|
7371
|
-
*/
|
|
7372
|
-
|
|
7373
|
-
function transformMat2(out, a, m) {
|
|
7374
|
-
var x = a[0],
|
|
7375
|
-
y = a[1];
|
|
7376
|
-
out[0] = m[0] * x + m[2] * y;
|
|
7377
|
-
out[1] = m[1] * x + m[3] * y;
|
|
7378
|
-
return out;
|
|
7379
|
-
}
|
|
7380
|
-
|
|
7381
|
-
/***/ }),
|
|
7382
|
-
/* 188 */
|
|
7383
|
-
/***/ (function(module, exports) {
|
|
7384
|
-
|
|
7385
|
-
module.exports = transformMat2d;
|
|
7386
|
-
/**
|
|
7387
|
-
* Transforms the vec2 with a mat2d
|
|
7388
|
-
*
|
|
7389
|
-
* @param {vec2} out the receiving vector
|
|
7390
|
-
* @param {vec2} a the vector to transform
|
|
7391
|
-
* @param {mat2d} m matrix to transform with
|
|
7392
|
-
* @returns {vec2} out
|
|
7393
|
-
*/
|
|
7394
|
-
|
|
7395
|
-
function transformMat2d(out, a, m) {
|
|
7396
|
-
var x = a[0],
|
|
7397
|
-
y = a[1];
|
|
7398
|
-
out[0] = m[0] * x + m[2] * y + m[4];
|
|
7399
|
-
out[1] = m[1] * x + m[3] * y + m[5];
|
|
7400
|
-
return out;
|
|
7401
|
-
}
|
|
7402
|
-
|
|
7403
|
-
/***/ }),
|
|
7404
|
-
/* 189 */
|
|
7405
|
-
/***/ (function(module, exports) {
|
|
7406
|
-
|
|
7407
|
-
module.exports = transformMat3;
|
|
7408
|
-
/**
|
|
7409
|
-
* Transforms the vec2 with a mat3
|
|
7410
|
-
* 3rd vector component is implicitly '1'
|
|
7411
|
-
*
|
|
7412
|
-
* @param {vec2} out the receiving vector
|
|
7413
|
-
* @param {vec2} a the vector to transform
|
|
7414
|
-
* @param {mat3} m matrix to transform with
|
|
7415
|
-
* @returns {vec2} out
|
|
7416
|
-
*/
|
|
7417
|
-
|
|
7418
|
-
function transformMat3(out, a, m) {
|
|
7419
|
-
var x = a[0],
|
|
7420
|
-
y = a[1];
|
|
7421
|
-
out[0] = m[0] * x + m[3] * y + m[6];
|
|
7422
|
-
out[1] = m[1] * x + m[4] * y + m[7];
|
|
7423
|
-
return out;
|
|
7424
|
-
}
|
|
7425
|
-
|
|
7426
|
-
/***/ }),
|
|
7427
|
-
/* 190 */
|
|
7428
|
-
/***/ (function(module, exports) {
|
|
7429
|
-
|
|
7430
|
-
module.exports = transformMat4;
|
|
7431
|
-
/**
|
|
7432
|
-
* Transforms the vec2 with a mat4
|
|
7433
|
-
* 3rd vector component is implicitly '0'
|
|
7434
|
-
* 4th vector component is implicitly '1'
|
|
7435
|
-
*
|
|
7436
|
-
* @param {vec2} out the receiving vector
|
|
7437
|
-
* @param {vec2} a the vector to transform
|
|
7438
|
-
* @param {mat4} m matrix to transform with
|
|
7439
|
-
* @returns {vec2} out
|
|
7440
|
-
*/
|
|
7441
|
-
|
|
7442
|
-
function transformMat4(out, a, m) {
|
|
7443
|
-
var x = a[0],
|
|
7444
|
-
y = a[1];
|
|
7445
|
-
out[0] = m[0] * x + m[4] * y + m[12];
|
|
7446
|
-
out[1] = m[1] * x + m[5] * y + m[13];
|
|
7447
|
-
return out;
|
|
7448
|
-
}
|
|
7449
|
-
|
|
7450
|
-
/***/ }),
|
|
7451
|
-
/* 191 */
|
|
7452
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
7453
|
-
|
|
7454
|
-
module.exports = forEach;
|
|
7455
|
-
|
|
7456
|
-
var vec = __webpack_require__(64)();
|
|
7457
|
-
/**
|
|
7458
|
-
* Perform some operation over an array of vec2s.
|
|
7459
|
-
*
|
|
7460
|
-
* @param {Array} a the array of vectors to iterate over
|
|
7461
|
-
* @param {Number} stride Number of elements between the start of each vec2. If 0 assumes tightly packed
|
|
7462
|
-
* @param {Number} offset Number of elements to skip at the beginning of the array
|
|
7463
|
-
* @param {Number} count Number of vec2s to iterate over. If 0 iterates over entire array
|
|
7464
|
-
* @param {Function} fn Function to call for each vector in the array
|
|
7465
|
-
* @param {Object} [arg] additional argument to pass to fn
|
|
7466
|
-
* @returns {Array} a
|
|
7467
|
-
* @function
|
|
7468
|
-
*/
|
|
7469
|
-
|
|
7470
|
-
|
|
7471
|
-
function forEach(a, stride, offset, count, fn, arg) {
|
|
7472
|
-
var i, l;
|
|
7473
|
-
|
|
7474
|
-
if (!stride) {
|
|
7475
|
-
stride = 2;
|
|
7476
|
-
}
|
|
7477
|
-
|
|
7478
|
-
if (!offset) {
|
|
7479
|
-
offset = 0;
|
|
7480
|
-
}
|
|
7481
|
-
|
|
7482
|
-
if (count) {
|
|
7483
|
-
l = Math.min(count * stride + offset, a.length);
|
|
7484
|
-
} else {
|
|
7485
|
-
l = a.length;
|
|
7486
|
-
}
|
|
7487
|
-
|
|
7488
|
-
for (i = offset; i < l; i += stride) {
|
|
7489
|
-
vec[0] = a[i];
|
|
7490
|
-
vec[1] = a[i + 1];
|
|
7491
|
-
fn(vec, vec, arg);
|
|
7492
|
-
a[i] = vec[0];
|
|
7493
|
-
a[i + 1] = vec[1];
|
|
7494
|
-
}
|
|
7495
|
-
|
|
7496
|
-
return a;
|
|
7497
|
-
}
|
|
7498
|
-
|
|
7499
|
-
/***/ }),
|
|
7500
|
-
/* 192 */
|
|
7501
|
-
/***/ (function(module, exports) {
|
|
7502
|
-
|
|
7503
|
-
module.exports = limit;
|
|
7504
|
-
/**
|
|
7505
|
-
* Limit the magnitude of this vector to the value used for the `max`
|
|
7506
|
-
* parameter.
|
|
7507
|
-
*
|
|
7508
|
-
* @param {vec2} the vector to limit
|
|
7509
|
-
* @param {Number} max the maximum magnitude for the vector
|
|
7510
|
-
* @returns {vec2} out
|
|
7511
|
-
*/
|
|
7512
|
-
|
|
7513
|
-
function limit(out, a, max) {
|
|
7514
|
-
var mSq = a[0] * a[0] + a[1] * a[1];
|
|
7515
|
-
|
|
7516
|
-
if (mSq > max * max) {
|
|
7517
|
-
var n = Math.sqrt(mSq);
|
|
7518
|
-
out[0] = a[0] / n * max;
|
|
7519
|
-
out[1] = a[1] / n * max;
|
|
7520
|
-
} else {
|
|
7521
|
-
out[0] = a[0];
|
|
7522
|
-
out[1] = a[1];
|
|
7523
|
-
}
|
|
7524
|
-
|
|
7525
|
-
return out;
|
|
7526
|
-
}
|
|
7527
|
-
|
|
7528
|
-
/***/ }),
|
|
7529
|
-
/* 193 */
|
|
7530
|
-
/***/ (function(module, exports) {
|
|
7531
|
-
|
|
7532
|
-
module.exports = clone;
|
|
7533
|
-
/**
|
|
7534
|
-
* Creates a new vec3 initialized with values from an existing vector
|
|
7535
|
-
*
|
|
7536
|
-
* @param {vec3} a vector to clone
|
|
7537
|
-
* @returns {vec3} a new 3D vector
|
|
7538
|
-
*/
|
|
7539
|
-
|
|
7540
|
-
function clone(a) {
|
|
7541
|
-
var out = new Float32Array(3);
|
|
7542
|
-
out[0] = a[0];
|
|
7543
|
-
out[1] = a[1];
|
|
7544
|
-
out[2] = a[2];
|
|
7545
|
-
return out;
|
|
7546
|
-
}
|
|
7547
|
-
|
|
7548
|
-
/***/ }),
|
|
7549
|
-
/* 194 */
|
|
7550
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
7551
|
-
|
|
7552
|
-
module.exports = angle;
|
|
7553
|
-
|
|
7554
|
-
var fromValues = __webpack_require__(74);
|
|
7555
|
-
|
|
7556
|
-
var normalize = __webpack_require__(75);
|
|
7557
|
-
|
|
7558
|
-
var dot = __webpack_require__(76);
|
|
7559
|
-
/**
|
|
7560
|
-
* Get the angle between two 3D vectors
|
|
7561
|
-
* @param {vec3} a The first operand
|
|
7562
|
-
* @param {vec3} b The second operand
|
|
7563
|
-
* @returns {Number} The angle in radians
|
|
7564
|
-
*/
|
|
7565
|
-
|
|
7566
|
-
|
|
7567
|
-
function angle(a, b) {
|
|
7568
|
-
var tempA = fromValues(a[0], a[1], a[2]);
|
|
7569
|
-
var tempB = fromValues(b[0], b[1], b[2]);
|
|
7570
|
-
normalize(tempA, tempA);
|
|
7571
|
-
normalize(tempB, tempB);
|
|
7572
|
-
var cosine = dot(tempA, tempB);
|
|
7573
|
-
|
|
7574
|
-
if (cosine > 1.0) {
|
|
7575
|
-
return 0;
|
|
7576
|
-
} else {
|
|
7577
|
-
return Math.acos(cosine);
|
|
7578
|
-
}
|
|
7579
|
-
}
|
|
7580
|
-
|
|
7581
|
-
/***/ }),
|
|
7582
|
-
/* 195 */
|
|
7583
|
-
/***/ (function(module, exports) {
|
|
7584
|
-
|
|
7585
|
-
module.exports = copy;
|
|
7586
|
-
/**
|
|
7587
|
-
* Copy the values from one vec3 to another
|
|
7588
|
-
*
|
|
7589
|
-
* @param {vec3} out the receiving vector
|
|
7590
|
-
* @param {vec3} a the source vector
|
|
7591
|
-
* @returns {vec3} out
|
|
7592
|
-
*/
|
|
7593
|
-
|
|
7594
|
-
function copy(out, a) {
|
|
7595
|
-
out[0] = a[0];
|
|
7596
|
-
out[1] = a[1];
|
|
7597
|
-
out[2] = a[2];
|
|
7598
|
-
return out;
|
|
7599
|
-
}
|
|
7600
|
-
|
|
7601
|
-
/***/ }),
|
|
7602
|
-
/* 196 */
|
|
7603
|
-
/***/ (function(module, exports) {
|
|
7604
|
-
|
|
7605
|
-
module.exports = set;
|
|
7606
|
-
/**
|
|
7607
|
-
* Set the components of a vec3 to the given values
|
|
7608
|
-
*
|
|
7609
|
-
* @param {vec3} out the receiving vector
|
|
7610
|
-
* @param {Number} x X component
|
|
7611
|
-
* @param {Number} y Y component
|
|
7612
|
-
* @param {Number} z Z component
|
|
7613
|
-
* @returns {vec3} out
|
|
7614
|
-
*/
|
|
7615
|
-
|
|
7616
|
-
function set(out, x, y, z) {
|
|
7617
|
-
out[0] = x;
|
|
7618
|
-
out[1] = y;
|
|
7619
|
-
out[2] = z;
|
|
7620
|
-
return out;
|
|
7621
|
-
}
|
|
7622
|
-
|
|
7623
|
-
/***/ }),
|
|
7624
|
-
/* 197 */
|
|
7625
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
7626
|
-
|
|
7627
|
-
module.exports = equals;
|
|
7628
|
-
|
|
7629
|
-
var EPSILON = __webpack_require__(72);
|
|
7630
|
-
/**
|
|
7631
|
-
* Returns whether or not the vectors have approximately the same elements in the same position.
|
|
7632
|
-
*
|
|
7633
|
-
* @param {vec3} a The first vector.
|
|
7634
|
-
* @param {vec3} b The second vector.
|
|
7635
|
-
* @returns {Boolean} True if the vectors are equal, false otherwise.
|
|
7636
|
-
*/
|
|
7637
|
-
|
|
7638
|
-
|
|
7639
|
-
function equals(a, b) {
|
|
7640
|
-
var a0 = a[0];
|
|
7641
|
-
var a1 = a[1];
|
|
7642
|
-
var a2 = a[2];
|
|
7643
|
-
var b0 = b[0];
|
|
7644
|
-
var b1 = b[1];
|
|
7645
|
-
var b2 = b[2];
|
|
7646
|
-
return Math.abs(a0 - b0) <= EPSILON * Math.max(1.0, Math.abs(a0), Math.abs(b0)) && Math.abs(a1 - b1) <= EPSILON * Math.max(1.0, Math.abs(a1), Math.abs(b1)) && Math.abs(a2 - b2) <= EPSILON * Math.max(1.0, Math.abs(a2), Math.abs(b2));
|
|
7647
|
-
}
|
|
7648
|
-
|
|
7649
|
-
/***/ }),
|
|
7650
|
-
/* 198 */
|
|
7651
|
-
/***/ (function(module, exports) {
|
|
7652
|
-
|
|
7653
|
-
module.exports = exactEquals;
|
|
7654
|
-
/**
|
|
7655
|
-
* Returns whether or not the vectors exactly have the same elements in the same position (when compared with ===)
|
|
7656
|
-
*
|
|
7657
|
-
* @param {vec3} a The first vector.
|
|
7658
|
-
* @param {vec3} b The second vector.
|
|
7659
|
-
* @returns {Boolean} True if the vectors are equal, false otherwise.
|
|
7660
|
-
*/
|
|
7661
|
-
|
|
7662
|
-
function exactEquals(a, b) {
|
|
7663
|
-
return a[0] === b[0] && a[1] === b[1] && a[2] === b[2];
|
|
7664
|
-
}
|
|
7665
|
-
|
|
7666
|
-
/***/ }),
|
|
7667
|
-
/* 199 */
|
|
7668
|
-
/***/ (function(module, exports) {
|
|
7669
|
-
|
|
7670
|
-
module.exports = add;
|
|
7671
|
-
/**
|
|
7672
|
-
* Adds two vec3's
|
|
7673
|
-
*
|
|
7674
|
-
* @param {vec3} out the receiving vector
|
|
7675
|
-
* @param {vec3} a the first operand
|
|
7676
|
-
* @param {vec3} b the second operand
|
|
7677
|
-
* @returns {vec3} out
|
|
7678
|
-
*/
|
|
7679
|
-
|
|
7680
|
-
function add(out, a, b) {
|
|
7681
|
-
out[0] = a[0] + b[0];
|
|
7682
|
-
out[1] = a[1] + b[1];
|
|
7683
|
-
out[2] = a[2] + b[2];
|
|
7684
|
-
return out;
|
|
7685
|
-
}
|
|
7686
|
-
|
|
7687
|
-
/***/ }),
|
|
7688
|
-
/* 200 */
|
|
7689
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
7690
|
-
|
|
7691
|
-
module.exports = __webpack_require__(77);
|
|
7692
|
-
|
|
7693
|
-
/***/ }),
|
|
7694
|
-
/* 201 */
|
|
7695
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
7696
|
-
|
|
7697
|
-
module.exports = __webpack_require__(78);
|
|
7698
|
-
|
|
7699
|
-
/***/ }),
|
|
7700
|
-
/* 202 */
|
|
7701
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
7702
|
-
|
|
7703
|
-
module.exports = __webpack_require__(79);
|
|
7704
|
-
|
|
7705
|
-
/***/ }),
|
|
7706
|
-
/* 203 */
|
|
7707
|
-
/***/ (function(module, exports) {
|
|
7708
|
-
|
|
7709
|
-
module.exports = min;
|
|
7710
|
-
/**
|
|
7711
|
-
* Returns the minimum of two vec3's
|
|
7712
|
-
*
|
|
7713
|
-
* @param {vec3} out the receiving vector
|
|
7714
|
-
* @param {vec3} a the first operand
|
|
7715
|
-
* @param {vec3} b the second operand
|
|
7716
|
-
* @returns {vec3} out
|
|
7717
|
-
*/
|
|
7718
|
-
|
|
7719
|
-
function min(out, a, b) {
|
|
7720
|
-
out[0] = Math.min(a[0], b[0]);
|
|
7721
|
-
out[1] = Math.min(a[1], b[1]);
|
|
7722
|
-
out[2] = Math.min(a[2], b[2]);
|
|
7723
|
-
return out;
|
|
7724
|
-
}
|
|
7725
|
-
|
|
7726
|
-
/***/ }),
|
|
7727
|
-
/* 204 */
|
|
7728
|
-
/***/ (function(module, exports) {
|
|
7729
|
-
|
|
7730
|
-
module.exports = max;
|
|
7731
|
-
/**
|
|
7732
|
-
* Returns the maximum of two vec3's
|
|
7733
|
-
*
|
|
7734
|
-
* @param {vec3} out the receiving vector
|
|
7735
|
-
* @param {vec3} a the first operand
|
|
7736
|
-
* @param {vec3} b the second operand
|
|
7737
|
-
* @returns {vec3} out
|
|
7738
|
-
*/
|
|
7739
|
-
|
|
7740
|
-
function max(out, a, b) {
|
|
7741
|
-
out[0] = Math.max(a[0], b[0]);
|
|
7742
|
-
out[1] = Math.max(a[1], b[1]);
|
|
7743
|
-
out[2] = Math.max(a[2], b[2]);
|
|
7744
|
-
return out;
|
|
7745
|
-
}
|
|
7746
|
-
|
|
7747
|
-
/***/ }),
|
|
7748
|
-
/* 205 */
|
|
7749
|
-
/***/ (function(module, exports) {
|
|
7750
|
-
|
|
7751
|
-
module.exports = floor;
|
|
7752
|
-
/**
|
|
7753
|
-
* Math.floor the components of a vec3
|
|
7754
|
-
*
|
|
7755
|
-
* @param {vec3} out the receiving vector
|
|
7756
|
-
* @param {vec3} a vector to floor
|
|
7757
|
-
* @returns {vec3} out
|
|
7758
|
-
*/
|
|
7759
|
-
|
|
7760
|
-
function floor(out, a) {
|
|
7761
|
-
out[0] = Math.floor(a[0]);
|
|
7762
|
-
out[1] = Math.floor(a[1]);
|
|
7763
|
-
out[2] = Math.floor(a[2]);
|
|
7764
|
-
return out;
|
|
7765
|
-
}
|
|
7766
|
-
|
|
7767
|
-
/***/ }),
|
|
7768
|
-
/* 206 */
|
|
7769
|
-
/***/ (function(module, exports) {
|
|
7770
|
-
|
|
7771
|
-
module.exports = ceil;
|
|
7772
|
-
/**
|
|
7773
|
-
* Math.ceil the components of a vec3
|
|
7774
|
-
*
|
|
7775
|
-
* @param {vec3} out the receiving vector
|
|
7776
|
-
* @param {vec3} a vector to ceil
|
|
7777
|
-
* @returns {vec3} out
|
|
7778
|
-
*/
|
|
7779
|
-
|
|
7780
|
-
function ceil(out, a) {
|
|
7781
|
-
out[0] = Math.ceil(a[0]);
|
|
7782
|
-
out[1] = Math.ceil(a[1]);
|
|
7783
|
-
out[2] = Math.ceil(a[2]);
|
|
7784
|
-
return out;
|
|
7785
|
-
}
|
|
7786
|
-
|
|
7787
|
-
/***/ }),
|
|
7788
|
-
/* 207 */
|
|
7789
|
-
/***/ (function(module, exports) {
|
|
7790
|
-
|
|
7791
|
-
module.exports = round;
|
|
7792
|
-
/**
|
|
7793
|
-
* Math.round the components of a vec3
|
|
7794
|
-
*
|
|
7795
|
-
* @param {vec3} out the receiving vector
|
|
7796
|
-
* @param {vec3} a vector to round
|
|
7797
|
-
* @returns {vec3} out
|
|
7798
|
-
*/
|
|
7799
|
-
|
|
7800
|
-
function round(out, a) {
|
|
7801
|
-
out[0] = Math.round(a[0]);
|
|
7802
|
-
out[1] = Math.round(a[1]);
|
|
7803
|
-
out[2] = Math.round(a[2]);
|
|
7804
|
-
return out;
|
|
7805
|
-
}
|
|
7806
|
-
|
|
7807
|
-
/***/ }),
|
|
7808
|
-
/* 208 */
|
|
7809
|
-
/***/ (function(module, exports) {
|
|
7810
|
-
|
|
7811
|
-
module.exports = scale;
|
|
7812
|
-
/**
|
|
7813
|
-
* Scales a vec3 by a scalar number
|
|
7814
|
-
*
|
|
7815
|
-
* @param {vec3} out the receiving vector
|
|
7816
|
-
* @param {vec3} a the vector to scale
|
|
7817
|
-
* @param {Number} b amount to scale the vector by
|
|
7818
|
-
* @returns {vec3} out
|
|
7819
|
-
*/
|
|
7820
|
-
|
|
7821
|
-
function scale(out, a, b) {
|
|
7822
|
-
out[0] = a[0] * b;
|
|
7823
|
-
out[1] = a[1] * b;
|
|
7824
|
-
out[2] = a[2] * b;
|
|
7825
|
-
return out;
|
|
7826
|
-
}
|
|
7827
|
-
|
|
7828
|
-
/***/ }),
|
|
7829
|
-
/* 209 */
|
|
7830
|
-
/***/ (function(module, exports) {
|
|
7831
|
-
|
|
7832
|
-
module.exports = scaleAndAdd;
|
|
7833
|
-
/**
|
|
7834
|
-
* Adds two vec3's after scaling the second operand by a scalar value
|
|
7835
|
-
*
|
|
7836
|
-
* @param {vec3} out the receiving vector
|
|
7837
|
-
* @param {vec3} a the first operand
|
|
7838
|
-
* @param {vec3} b the second operand
|
|
7839
|
-
* @param {Number} scale the amount to scale b by before adding
|
|
7840
|
-
* @returns {vec3} out
|
|
7841
|
-
*/
|
|
7842
|
-
|
|
7843
|
-
function scaleAndAdd(out, a, b, scale) {
|
|
7844
|
-
out[0] = a[0] + b[0] * scale;
|
|
7845
|
-
out[1] = a[1] + b[1] * scale;
|
|
7846
|
-
out[2] = a[2] + b[2] * scale;
|
|
7847
|
-
return out;
|
|
7848
|
-
}
|
|
7849
|
-
|
|
7850
|
-
/***/ }),
|
|
7851
|
-
/* 210 */
|
|
7852
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
7853
|
-
|
|
7854
|
-
module.exports = __webpack_require__(80);
|
|
7855
|
-
|
|
7856
|
-
/***/ }),
|
|
7857
|
-
/* 211 */
|
|
7858
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
7859
|
-
|
|
7860
|
-
module.exports = __webpack_require__(81);
|
|
7861
|
-
|
|
7862
|
-
/***/ }),
|
|
7863
|
-
/* 212 */
|
|
7864
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
7865
|
-
|
|
7866
|
-
module.exports = __webpack_require__(82);
|
|
7867
|
-
|
|
7868
|
-
/***/ }),
|
|
7869
|
-
/* 213 */
|
|
7870
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
7871
|
-
|
|
7872
|
-
module.exports = __webpack_require__(83);
|
|
7873
|
-
|
|
7874
|
-
/***/ }),
|
|
7875
|
-
/* 214 */
|
|
7876
|
-
/***/ (function(module, exports) {
|
|
7877
|
-
|
|
7878
|
-
module.exports = negate;
|
|
7879
|
-
/**
|
|
7880
|
-
* Negates the components of a vec3
|
|
7881
|
-
*
|
|
7882
|
-
* @param {vec3} out the receiving vector
|
|
7883
|
-
* @param {vec3} a vector to negate
|
|
7884
|
-
* @returns {vec3} out
|
|
7885
|
-
*/
|
|
7886
|
-
|
|
7887
|
-
function negate(out, a) {
|
|
7888
|
-
out[0] = -a[0];
|
|
7889
|
-
out[1] = -a[1];
|
|
7890
|
-
out[2] = -a[2];
|
|
7891
|
-
return out;
|
|
7892
|
-
}
|
|
7893
|
-
|
|
7894
|
-
/***/ }),
|
|
7895
|
-
/* 215 */
|
|
7896
|
-
/***/ (function(module, exports) {
|
|
7897
|
-
|
|
7898
|
-
module.exports = inverse;
|
|
7899
|
-
/**
|
|
7900
|
-
* Returns the inverse of the components of a vec3
|
|
7901
|
-
*
|
|
7902
|
-
* @param {vec3} out the receiving vector
|
|
7903
|
-
* @param {vec3} a vector to invert
|
|
7904
|
-
* @returns {vec3} out
|
|
7905
|
-
*/
|
|
7906
|
-
|
|
7907
|
-
function inverse(out, a) {
|
|
7908
|
-
out[0] = 1.0 / a[0];
|
|
7909
|
-
out[1] = 1.0 / a[1];
|
|
7910
|
-
out[2] = 1.0 / a[2];
|
|
7911
|
-
return out;
|
|
7912
|
-
}
|
|
7913
|
-
|
|
7914
|
-
/***/ }),
|
|
7915
|
-
/* 216 */
|
|
7916
|
-
/***/ (function(module, exports) {
|
|
7917
|
-
|
|
7918
|
-
module.exports = cross;
|
|
7919
|
-
/**
|
|
7920
|
-
* Computes the cross product of two vec3's
|
|
7921
|
-
*
|
|
7922
|
-
* @param {vec3} out the receiving vector
|
|
7923
|
-
* @param {vec3} a the first operand
|
|
7924
|
-
* @param {vec3} b the second operand
|
|
7925
|
-
* @returns {vec3} out
|
|
7926
|
-
*/
|
|
7927
|
-
|
|
7928
|
-
function cross(out, a, b) {
|
|
7929
|
-
var ax = a[0],
|
|
7930
|
-
ay = a[1],
|
|
7931
|
-
az = a[2],
|
|
7932
|
-
bx = b[0],
|
|
7933
|
-
by = b[1],
|
|
7934
|
-
bz = b[2];
|
|
7935
|
-
out[0] = ay * bz - az * by;
|
|
7936
|
-
out[1] = az * bx - ax * bz;
|
|
7937
|
-
out[2] = ax * by - ay * bx;
|
|
7938
|
-
return out;
|
|
7939
|
-
}
|
|
7940
|
-
|
|
7941
|
-
/***/ }),
|
|
7942
|
-
/* 217 */
|
|
7943
|
-
/***/ (function(module, exports) {
|
|
7944
|
-
|
|
7945
|
-
module.exports = lerp;
|
|
7946
|
-
/**
|
|
7947
|
-
* Performs a linear interpolation between two vec3's
|
|
7948
|
-
*
|
|
7949
|
-
* @param {vec3} out the receiving vector
|
|
7950
|
-
* @param {vec3} a the first operand
|
|
7951
|
-
* @param {vec3} b the second operand
|
|
7952
|
-
* @param {Number} t interpolation amount between the two inputs
|
|
7953
|
-
* @returns {vec3} out
|
|
7954
|
-
*/
|
|
7955
|
-
|
|
7956
|
-
function lerp(out, a, b, t) {
|
|
7957
|
-
var ax = a[0],
|
|
7958
|
-
ay = a[1],
|
|
7959
|
-
az = a[2];
|
|
7960
|
-
out[0] = ax + t * (b[0] - ax);
|
|
7961
|
-
out[1] = ay + t * (b[1] - ay);
|
|
7962
|
-
out[2] = az + t * (b[2] - az);
|
|
7963
|
-
return out;
|
|
7964
|
-
}
|
|
7965
|
-
|
|
7966
|
-
/***/ }),
|
|
7967
|
-
/* 218 */
|
|
7968
|
-
/***/ (function(module, exports) {
|
|
7969
|
-
|
|
7970
|
-
module.exports = random;
|
|
7971
|
-
/**
|
|
7972
|
-
* Generates a random vector with the given scale
|
|
7973
|
-
*
|
|
7974
|
-
* @param {vec3} out the receiving vector
|
|
7975
|
-
* @param {Number} [scale] Length of the resulting vector. If ommitted, a unit vector will be returned
|
|
7976
|
-
* @returns {vec3} out
|
|
7977
|
-
*/
|
|
7978
|
-
|
|
7979
|
-
function random(out, scale) {
|
|
7980
|
-
scale = scale || 1.0;
|
|
7981
|
-
var r = Math.random() * 2.0 * Math.PI;
|
|
7982
|
-
var z = Math.random() * 2.0 - 1.0;
|
|
7983
|
-
var zScale = Math.sqrt(1.0 - z * z) * scale;
|
|
7984
|
-
out[0] = Math.cos(r) * zScale;
|
|
7985
|
-
out[1] = Math.sin(r) * zScale;
|
|
7986
|
-
out[2] = z * scale;
|
|
7987
|
-
return out;
|
|
7988
|
-
}
|
|
7989
|
-
|
|
7990
|
-
/***/ }),
|
|
7991
|
-
/* 219 */
|
|
7992
|
-
/***/ (function(module, exports) {
|
|
7993
|
-
|
|
7994
|
-
module.exports = transformMat4;
|
|
7995
|
-
/**
|
|
7996
|
-
* Transforms the vec3 with a mat4.
|
|
7997
|
-
* 4th vector component is implicitly '1'
|
|
7998
|
-
*
|
|
7999
|
-
* @param {vec3} out the receiving vector
|
|
8000
|
-
* @param {vec3} a the vector to transform
|
|
8001
|
-
* @param {mat4} m matrix to transform with
|
|
8002
|
-
* @returns {vec3} out
|
|
8003
|
-
*/
|
|
8004
|
-
|
|
8005
|
-
function transformMat4(out, a, m) {
|
|
8006
|
-
var x = a[0],
|
|
8007
|
-
y = a[1],
|
|
8008
|
-
z = a[2],
|
|
8009
|
-
w = m[3] * x + m[7] * y + m[11] * z + m[15];
|
|
8010
|
-
w = w || 1.0;
|
|
8011
|
-
out[0] = (m[0] * x + m[4] * y + m[8] * z + m[12]) / w;
|
|
8012
|
-
out[1] = (m[1] * x + m[5] * y + m[9] * z + m[13]) / w;
|
|
8013
|
-
out[2] = (m[2] * x + m[6] * y + m[10] * z + m[14]) / w;
|
|
8014
|
-
return out;
|
|
8015
|
-
}
|
|
8016
|
-
|
|
8017
|
-
/***/ }),
|
|
8018
|
-
/* 220 */
|
|
8019
|
-
/***/ (function(module, exports) {
|
|
8020
|
-
|
|
8021
|
-
module.exports = transformMat3;
|
|
8022
|
-
/**
|
|
8023
|
-
* Transforms the vec3 with a mat3.
|
|
8024
|
-
*
|
|
8025
|
-
* @param {vec3} out the receiving vector
|
|
8026
|
-
* @param {vec3} a the vector to transform
|
|
8027
|
-
* @param {mat4} m the 3x3 matrix to transform with
|
|
8028
|
-
* @returns {vec3} out
|
|
8029
|
-
*/
|
|
8030
|
-
|
|
8031
|
-
function transformMat3(out, a, m) {
|
|
8032
|
-
var x = a[0],
|
|
8033
|
-
y = a[1],
|
|
8034
|
-
z = a[2];
|
|
8035
|
-
out[0] = x * m[0] + y * m[3] + z * m[6];
|
|
8036
|
-
out[1] = x * m[1] + y * m[4] + z * m[7];
|
|
8037
|
-
out[2] = x * m[2] + y * m[5] + z * m[8];
|
|
8038
|
-
return out;
|
|
8039
|
-
}
|
|
8040
|
-
|
|
8041
|
-
/***/ }),
|
|
8042
|
-
/* 221 */
|
|
8043
|
-
/***/ (function(module, exports) {
|
|
8044
|
-
|
|
8045
|
-
module.exports = transformQuat;
|
|
8046
|
-
/**
|
|
8047
|
-
* Transforms the vec3 with a quat
|
|
8048
|
-
*
|
|
8049
|
-
* @param {vec3} out the receiving vector
|
|
8050
|
-
* @param {vec3} a the vector to transform
|
|
8051
|
-
* @param {quat} q quaternion to transform with
|
|
8052
|
-
* @returns {vec3} out
|
|
8053
|
-
*/
|
|
8054
|
-
|
|
8055
|
-
function transformQuat(out, a, q) {
|
|
8056
|
-
// benchmarks: http://jsperf.com/quaternion-transform-vec3-implementations
|
|
8057
|
-
var x = a[0],
|
|
8058
|
-
y = a[1],
|
|
8059
|
-
z = a[2],
|
|
8060
|
-
qx = q[0],
|
|
8061
|
-
qy = q[1],
|
|
8062
|
-
qz = q[2],
|
|
8063
|
-
qw = q[3],
|
|
8064
|
-
// calculate quat * vec
|
|
8065
|
-
ix = qw * x + qy * z - qz * y,
|
|
8066
|
-
iy = qw * y + qz * x - qx * z,
|
|
8067
|
-
iz = qw * z + qx * y - qy * x,
|
|
8068
|
-
iw = -qx * x - qy * y - qz * z; // calculate result * inverse quat
|
|
6210
|
+
if (type == 'number' ? isArrayLike(object) && isIndex(index, object.length) : type == 'string' && index in object) {
|
|
6211
|
+
return eq(object[index], value);
|
|
6212
|
+
}
|
|
8069
6213
|
|
|
8070
|
-
|
|
8071
|
-
out[1] = iy * qw + iw * -qy + iz * -qx - ix * -qz;
|
|
8072
|
-
out[2] = iz * qw + iw * -qz + ix * -qy - iy * -qx;
|
|
8073
|
-
return out;
|
|
6214
|
+
return false;
|
|
8074
6215
|
}
|
|
8075
6216
|
|
|
6217
|
+
module.exports = isIterateeCall;
|
|
6218
|
+
|
|
8076
6219
|
/***/ }),
|
|
8077
|
-
/*
|
|
6220
|
+
/* 131 */
|
|
8078
6221
|
/***/ (function(module, exports) {
|
|
8079
6222
|
|
|
8080
|
-
|
|
8081
|
-
|
|
8082
|
-
*
|
|
8083
|
-
* @param {vec3} out The receiving vec3
|
|
8084
|
-
* @param {vec3} a The vec3 point to rotate
|
|
8085
|
-
* @param {vec3} b The origin of the rotation
|
|
8086
|
-
* @param {Number} c The angle of rotation
|
|
8087
|
-
* @returns {vec3} out
|
|
6223
|
+
/*
|
|
6224
|
+
* typedefs.js
|
|
6225
|
+
* Normalizes browser-specific prefixes and provide some basic polyfills
|
|
8088
6226
|
*/
|
|
6227
|
+
if (typeof window !== 'undefined') {
|
|
6228
|
+
if (!window.requestAnimationFrame) {
|
|
6229
|
+
window.requestAnimationFrame = function () {
|
|
6230
|
+
return window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.oRequestAnimationFrame || window.msRequestAnimationFrame || function (
|
|
6231
|
+
/* function FrameRequestCallback */
|
|
6232
|
+
callback) {
|
|
6233
|
+
window.setTimeout(callback, 1000 / 60);
|
|
6234
|
+
};
|
|
6235
|
+
}();
|
|
6236
|
+
}
|
|
6237
|
+
}
|
|
8089
6238
|
|
|
8090
|
-
|
|
8091
|
-
|
|
8092
|
-
|
|
6239
|
+
if (typeof Math.imul !== 'function') {
|
|
6240
|
+
/* eslint-disable no-bitwise */
|
|
6241
|
+
Math.imul = function (a, b) {
|
|
6242
|
+
var ah = a >>> 16 & 0xffff;
|
|
6243
|
+
var al = a & 0xffff;
|
|
6244
|
+
var bh = b >>> 16 & 0xffff;
|
|
6245
|
+
var bl = b & 0xffff; // the shift by 0 fixes the sign on the high part
|
|
6246
|
+
// the final |0 converts the unsigned value into a signed value
|
|
8093
6247
|
|
|
8094
|
-
|
|
8095
|
-
|
|
8096
|
-
|
|
8097
|
-
var cc = Math.cos(c); // perform rotation and translate to correct position
|
|
6248
|
+
return al * bl + (ah * bl + al * bh << 16 >>> 0) | 0;
|
|
6249
|
+
};
|
|
6250
|
+
/* eslint-enable no-bitwise */
|
|
8098
6251
|
|
|
8099
|
-
out[0] = a[0];
|
|
8100
|
-
out[1] = by + py * cc - pz * sc;
|
|
8101
|
-
out[2] = bz + py * sc + pz * cc;
|
|
8102
|
-
return out;
|
|
8103
6252
|
}
|
|
8104
6253
|
|
|
8105
|
-
|
|
8106
|
-
|
|
8107
|
-
|
|
6254
|
+
if (typeof Object.assign !== 'function') {
|
|
6255
|
+
Object.assign = function (target) {
|
|
6256
|
+
// .length of function is 2
|
|
6257
|
+
'use strict';
|
|
8108
6258
|
|
|
8109
|
-
|
|
8110
|
-
|
|
8111
|
-
|
|
8112
|
-
|
|
8113
|
-
|
|
8114
|
-
|
|
8115
|
-
* @param {Number} c The angle of rotation
|
|
8116
|
-
* @returns {vec3} out
|
|
8117
|
-
*/
|
|
6259
|
+
if (target === null) {
|
|
6260
|
+
// TypeError if undefined or null
|
|
6261
|
+
throw new TypeError('Cannot convert undefined or null to object');
|
|
6262
|
+
}
|
|
6263
|
+
|
|
6264
|
+
var to = Object(target);
|
|
8118
6265
|
|
|
8119
|
-
|
|
8120
|
-
|
|
8121
|
-
|
|
6266
|
+
for (var index = 1; index < arguments.length; index++) {
|
|
6267
|
+
// eslint-disable-next-line prefer-rest-params
|
|
6268
|
+
var nextSource = arguments[index];
|
|
8122
6269
|
|
|
8123
|
-
|
|
8124
|
-
|
|
8125
|
-
|
|
8126
|
-
|
|
6270
|
+
if (nextSource !== null) {
|
|
6271
|
+
// Skip over if undefined or null
|
|
6272
|
+
// eslint-disable-next-line no-restricted-syntax
|
|
6273
|
+
for (var nextKey in nextSource) {
|
|
6274
|
+
// Avoid bugs when hasOwnProperty is shadowed
|
|
6275
|
+
if (Object.prototype.hasOwnProperty.call(nextSource, nextKey)) {
|
|
6276
|
+
to[nextKey] = nextSource[nextKey];
|
|
6277
|
+
}
|
|
6278
|
+
}
|
|
6279
|
+
}
|
|
6280
|
+
}
|
|
8127
6281
|
|
|
8128
|
-
|
|
8129
|
-
|
|
8130
|
-
out[2] = bz + pz * cc - px * sc;
|
|
8131
|
-
return out;
|
|
6282
|
+
return to;
|
|
6283
|
+
};
|
|
8132
6284
|
}
|
|
8133
6285
|
|
|
8134
6286
|
/***/ }),
|
|
8135
|
-
/*
|
|
6287
|
+
/* 132 */
|
|
8136
6288
|
/***/ (function(module, exports) {
|
|
8137
6289
|
|
|
8138
|
-
|
|
8139
|
-
|
|
8140
|
-
* Rotate a 3D vector around the z-axis
|
|
8141
|
-
* @param {vec3} out The receiving vec3
|
|
8142
|
-
* @param {vec3} a The vec3 point to rotate
|
|
8143
|
-
* @param {vec3} b The origin of the rotation
|
|
8144
|
-
* @param {Number} c The angle of rotation
|
|
8145
|
-
* @returns {vec3} out
|
|
8146
|
-
*/
|
|
8147
|
-
|
|
8148
|
-
function rotateZ(out, a, b, c) {
|
|
8149
|
-
var bx = b[0];
|
|
8150
|
-
var by = b[1]; //Translate point to the origin
|
|
8151
|
-
|
|
8152
|
-
var px = a[0] - bx;
|
|
8153
|
-
var py = a[1] - by;
|
|
8154
|
-
var sc = Math.sin(c);
|
|
8155
|
-
var cc = Math.cos(c); // perform rotation and translate to correct position
|
|
8156
|
-
|
|
8157
|
-
out[0] = bx + px * cc - py * sc;
|
|
8158
|
-
out[1] = by + px * sc + py * cc;
|
|
8159
|
-
out[2] = a[2];
|
|
8160
|
-
return out;
|
|
6290
|
+
function _arrayWithHoles(arr) {
|
|
6291
|
+
if (Array.isArray(arr)) return arr;
|
|
8161
6292
|
}
|
|
8162
6293
|
|
|
6294
|
+
module.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
6295
|
+
|
|
8163
6296
|
/***/ }),
|
|
8164
|
-
/*
|
|
8165
|
-
/***/ (function(module, exports
|
|
6297
|
+
/* 133 */
|
|
6298
|
+
/***/ (function(module, exports) {
|
|
8166
6299
|
|
|
8167
|
-
|
|
6300
|
+
function _iterableToArrayLimit(arr, i) {
|
|
6301
|
+
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
8168
6302
|
|
|
8169
|
-
|
|
8170
|
-
|
|
8171
|
-
|
|
8172
|
-
|
|
8173
|
-
* @param {Array} a the array of vectors to iterate over
|
|
8174
|
-
* @param {Number} stride Number of elements between the start of each vec3. If 0 assumes tightly packed
|
|
8175
|
-
* @param {Number} offset Number of elements to skip at the beginning of the array
|
|
8176
|
-
* @param {Number} count Number of vec3s to iterate over. If 0 iterates over entire array
|
|
8177
|
-
* @param {Function} fn Function to call for each vector in the array
|
|
8178
|
-
* @param {Object} [arg] additional argument to pass to fn
|
|
8179
|
-
* @returns {Array} a
|
|
8180
|
-
* @function
|
|
8181
|
-
*/
|
|
6303
|
+
if (_i == null) return;
|
|
6304
|
+
var _arr = [];
|
|
6305
|
+
var _n = true;
|
|
6306
|
+
var _d = false;
|
|
8182
6307
|
|
|
6308
|
+
var _s, _e;
|
|
8183
6309
|
|
|
8184
|
-
|
|
8185
|
-
|
|
6310
|
+
try {
|
|
6311
|
+
for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
|
|
6312
|
+
_arr.push(_s.value);
|
|
8186
6313
|
|
|
8187
|
-
|
|
8188
|
-
|
|
6314
|
+
if (i && _arr.length === i) break;
|
|
6315
|
+
}
|
|
6316
|
+
} catch (err) {
|
|
6317
|
+
_d = true;
|
|
6318
|
+
_e = err;
|
|
6319
|
+
} finally {
|
|
6320
|
+
try {
|
|
6321
|
+
if (!_n && _i["return"] != null) _i["return"]();
|
|
6322
|
+
} finally {
|
|
6323
|
+
if (_d) throw _e;
|
|
6324
|
+
}
|
|
8189
6325
|
}
|
|
8190
6326
|
|
|
8191
|
-
|
|
8192
|
-
|
|
8193
|
-
}
|
|
6327
|
+
return _arr;
|
|
6328
|
+
}
|
|
8194
6329
|
|
|
8195
|
-
|
|
8196
|
-
l = Math.min(count * stride + offset, a.length);
|
|
8197
|
-
} else {
|
|
8198
|
-
l = a.length;
|
|
8199
|
-
}
|
|
6330
|
+
module.exports = _iterableToArrayLimit, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
8200
6331
|
|
|
8201
|
-
|
|
8202
|
-
|
|
8203
|
-
|
|
8204
|
-
vec[2] = a[i + 2];
|
|
8205
|
-
fn(vec, vec, arg);
|
|
8206
|
-
a[i] = vec[0];
|
|
8207
|
-
a[i + 1] = vec[1];
|
|
8208
|
-
a[i + 2] = vec[2];
|
|
8209
|
-
}
|
|
6332
|
+
/***/ }),
|
|
6333
|
+
/* 134 */
|
|
6334
|
+
/***/ (function(module, exports) {
|
|
8210
6335
|
|
|
8211
|
-
|
|
6336
|
+
function _nonIterableRest() {
|
|
6337
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
8212
6338
|
}
|
|
8213
6339
|
|
|
6340
|
+
module.exports = _nonIterableRest, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
6341
|
+
|
|
8214
6342
|
/***/ }),
|
|
8215
|
-
/*
|
|
6343
|
+
/* 135 */
|
|
8216
6344
|
/***/ (function(module, exports, __webpack_require__) {
|
|
8217
6345
|
|
|
8218
6346
|
var _typeof = __webpack_require__(17)["default"];
|
|
@@ -8571,7 +6699,7 @@ function _regeneratorRuntime() {
|
|
|
8571
6699
|
module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
8572
6700
|
|
|
8573
6701
|
/***/ }),
|
|
8574
|
-
/*
|
|
6702
|
+
/* 136 */
|
|
8575
6703
|
/***/ (function(module, exports, __webpack_require__) {
|
|
8576
6704
|
|
|
8577
6705
|
var getPrototypeOf = __webpack_require__(2);
|
|
@@ -8588,10 +6716,10 @@ function _superPropBase(object, property) {
|
|
|
8588
6716
|
module.exports = _superPropBase, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
8589
6717
|
|
|
8590
6718
|
/***/ }),
|
|
8591
|
-
/*
|
|
6719
|
+
/* 137 */
|
|
8592
6720
|
/***/ (function(module, exports, __webpack_require__) {
|
|
8593
6721
|
|
|
8594
|
-
var arrayLikeToArray = __webpack_require__(
|
|
6722
|
+
var arrayLikeToArray = __webpack_require__(61);
|
|
8595
6723
|
|
|
8596
6724
|
function _arrayWithoutHoles(arr) {
|
|
8597
6725
|
if (Array.isArray(arr)) return arrayLikeToArray(arr);
|
|
@@ -8600,7 +6728,7 @@ function _arrayWithoutHoles(arr) {
|
|
|
8600
6728
|
module.exports = _arrayWithoutHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
8601
6729
|
|
|
8602
6730
|
/***/ }),
|
|
8603
|
-
/*
|
|
6731
|
+
/* 138 */
|
|
8604
6732
|
/***/ (function(module, exports) {
|
|
8605
6733
|
|
|
8606
6734
|
function _iterableToArray(iter) {
|
|
@@ -8610,7 +6738,7 @@ function _iterableToArray(iter) {
|
|
|
8610
6738
|
module.exports = _iterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
8611
6739
|
|
|
8612
6740
|
/***/ }),
|
|
8613
|
-
/*
|
|
6741
|
+
/* 139 */
|
|
8614
6742
|
/***/ (function(module, exports) {
|
|
8615
6743
|
|
|
8616
6744
|
function _nonIterableSpread() {
|
|
@@ -8620,11 +6748,11 @@ function _nonIterableSpread() {
|
|
|
8620
6748
|
module.exports = _nonIterableSpread, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
8621
6749
|
|
|
8622
6750
|
/***/ }),
|
|
8623
|
-
/*
|
|
6751
|
+
/* 140 */
|
|
8624
6752
|
/***/ (function(module, exports, __webpack_require__) {
|
|
8625
6753
|
|
|
8626
|
-
var basePickBy = __webpack_require__(
|
|
8627
|
-
hasIn = __webpack_require__(
|
|
6754
|
+
var basePickBy = __webpack_require__(141),
|
|
6755
|
+
hasIn = __webpack_require__(151);
|
|
8628
6756
|
/**
|
|
8629
6757
|
* The base implementation of `_.pick` without support for individual
|
|
8630
6758
|
* property identifiers.
|
|
@@ -8645,11 +6773,11 @@ function basePick(object, paths) {
|
|
|
8645
6773
|
module.exports = basePick;
|
|
8646
6774
|
|
|
8647
6775
|
/***/ }),
|
|
8648
|
-
/*
|
|
6776
|
+
/* 141 */
|
|
8649
6777
|
/***/ (function(module, exports, __webpack_require__) {
|
|
8650
6778
|
|
|
8651
|
-
var baseGet = __webpack_require__(
|
|
8652
|
-
baseSet = __webpack_require__(
|
|
6779
|
+
var baseGet = __webpack_require__(142),
|
|
6780
|
+
baseSet = __webpack_require__(150),
|
|
8653
6781
|
castPath = __webpack_require__(32);
|
|
8654
6782
|
/**
|
|
8655
6783
|
* The base implementation of `_.pickBy` without support for iteratee shorthands.
|
|
@@ -8682,11 +6810,11 @@ function basePickBy(object, paths, predicate) {
|
|
|
8682
6810
|
module.exports = basePickBy;
|
|
8683
6811
|
|
|
8684
6812
|
/***/ }),
|
|
8685
|
-
/*
|
|
6813
|
+
/* 142 */
|
|
8686
6814
|
/***/ (function(module, exports, __webpack_require__) {
|
|
8687
6815
|
|
|
8688
6816
|
var castPath = __webpack_require__(32),
|
|
8689
|
-
toKey = __webpack_require__(
|
|
6817
|
+
toKey = __webpack_require__(43);
|
|
8690
6818
|
/**
|
|
8691
6819
|
* The base implementation of `_.get` without support for default values.
|
|
8692
6820
|
*
|
|
@@ -8712,11 +6840,11 @@ function baseGet(object, path) {
|
|
|
8712
6840
|
module.exports = baseGet;
|
|
8713
6841
|
|
|
8714
6842
|
/***/ }),
|
|
8715
|
-
/*
|
|
6843
|
+
/* 143 */
|
|
8716
6844
|
/***/ (function(module, exports, __webpack_require__) {
|
|
8717
6845
|
|
|
8718
6846
|
var isArray = __webpack_require__(15),
|
|
8719
|
-
isSymbol = __webpack_require__(
|
|
6847
|
+
isSymbol = __webpack_require__(42);
|
|
8720
6848
|
/** Used to match property names within property paths. */
|
|
8721
6849
|
|
|
8722
6850
|
|
|
@@ -8748,10 +6876,10 @@ function isKey(value, object) {
|
|
|
8748
6876
|
module.exports = isKey;
|
|
8749
6877
|
|
|
8750
6878
|
/***/ }),
|
|
8751
|
-
/*
|
|
6879
|
+
/* 144 */
|
|
8752
6880
|
/***/ (function(module, exports, __webpack_require__) {
|
|
8753
6881
|
|
|
8754
|
-
var memoizeCapped = __webpack_require__(
|
|
6882
|
+
var memoizeCapped = __webpack_require__(145);
|
|
8755
6883
|
/** Used to match property names within property paths. */
|
|
8756
6884
|
|
|
8757
6885
|
|
|
@@ -8784,10 +6912,10 @@ var stringToPath = memoizeCapped(function (string) {
|
|
|
8784
6912
|
module.exports = stringToPath;
|
|
8785
6913
|
|
|
8786
6914
|
/***/ }),
|
|
8787
|
-
/*
|
|
6915
|
+
/* 145 */
|
|
8788
6916
|
/***/ (function(module, exports, __webpack_require__) {
|
|
8789
6917
|
|
|
8790
|
-
var memoize = __webpack_require__(
|
|
6918
|
+
var memoize = __webpack_require__(146);
|
|
8791
6919
|
/** Used as the maximum memoize cache size. */
|
|
8792
6920
|
|
|
8793
6921
|
|
|
@@ -8816,10 +6944,10 @@ function memoizeCapped(func) {
|
|
|
8816
6944
|
module.exports = memoizeCapped;
|
|
8817
6945
|
|
|
8818
6946
|
/***/ }),
|
|
8819
|
-
/*
|
|
6947
|
+
/* 146 */
|
|
8820
6948
|
/***/ (function(module, exports, __webpack_require__) {
|
|
8821
6949
|
|
|
8822
|
-
var MapCache = __webpack_require__(
|
|
6950
|
+
var MapCache = __webpack_require__(47);
|
|
8823
6951
|
/** Error message constants. */
|
|
8824
6952
|
|
|
8825
6953
|
|
|
@@ -8897,10 +7025,10 @@ memoize.Cache = MapCache;
|
|
|
8897
7025
|
module.exports = memoize;
|
|
8898
7026
|
|
|
8899
7027
|
/***/ }),
|
|
8900
|
-
/*
|
|
7028
|
+
/* 147 */
|
|
8901
7029
|
/***/ (function(module, exports, __webpack_require__) {
|
|
8902
7030
|
|
|
8903
|
-
var baseToString = __webpack_require__(
|
|
7031
|
+
var baseToString = __webpack_require__(148);
|
|
8904
7032
|
/**
|
|
8905
7033
|
* Converts `value` to a string. An empty string is returned for `null`
|
|
8906
7034
|
* and `undefined` values. The sign of `-0` is preserved.
|
|
@@ -8931,13 +7059,13 @@ function toString(value) {
|
|
|
8931
7059
|
module.exports = toString;
|
|
8932
7060
|
|
|
8933
7061
|
/***/ }),
|
|
8934
|
-
/*
|
|
7062
|
+
/* 148 */
|
|
8935
7063
|
/***/ (function(module, exports, __webpack_require__) {
|
|
8936
7064
|
|
|
8937
7065
|
var Symbol = __webpack_require__(27),
|
|
8938
|
-
arrayMap = __webpack_require__(
|
|
7066
|
+
arrayMap = __webpack_require__(149),
|
|
8939
7067
|
isArray = __webpack_require__(15),
|
|
8940
|
-
isSymbol = __webpack_require__(
|
|
7068
|
+
isSymbol = __webpack_require__(42);
|
|
8941
7069
|
/** Used as references for various `Number` constants. */
|
|
8942
7070
|
|
|
8943
7071
|
|
|
@@ -8977,7 +7105,7 @@ function baseToString(value) {
|
|
|
8977
7105
|
module.exports = baseToString;
|
|
8978
7106
|
|
|
8979
7107
|
/***/ }),
|
|
8980
|
-
/*
|
|
7108
|
+
/* 149 */
|
|
8981
7109
|
/***/ (function(module, exports) {
|
|
8982
7110
|
|
|
8983
7111
|
/**
|
|
@@ -9004,14 +7132,14 @@ function arrayMap(array, iteratee) {
|
|
|
9004
7132
|
module.exports = arrayMap;
|
|
9005
7133
|
|
|
9006
7134
|
/***/ }),
|
|
9007
|
-
/*
|
|
7135
|
+
/* 150 */
|
|
9008
7136
|
/***/ (function(module, exports, __webpack_require__) {
|
|
9009
7137
|
|
|
9010
|
-
var assignValue = __webpack_require__(
|
|
7138
|
+
var assignValue = __webpack_require__(55),
|
|
9011
7139
|
castPath = __webpack_require__(32),
|
|
9012
7140
|
isIndex = __webpack_require__(31),
|
|
9013
7141
|
isObject = __webpack_require__(14),
|
|
9014
|
-
toKey = __webpack_require__(
|
|
7142
|
+
toKey = __webpack_require__(43);
|
|
9015
7143
|
/**
|
|
9016
7144
|
* The base implementation of `_.set`.
|
|
9017
7145
|
*
|
|
@@ -9062,11 +7190,11 @@ function baseSet(object, path, value, customizer) {
|
|
|
9062
7190
|
module.exports = baseSet;
|
|
9063
7191
|
|
|
9064
7192
|
/***/ }),
|
|
9065
|
-
/*
|
|
7193
|
+
/* 151 */
|
|
9066
7194
|
/***/ (function(module, exports, __webpack_require__) {
|
|
9067
7195
|
|
|
9068
|
-
var baseHasIn = __webpack_require__(
|
|
9069
|
-
hasPath = __webpack_require__(
|
|
7196
|
+
var baseHasIn = __webpack_require__(152),
|
|
7197
|
+
hasPath = __webpack_require__(153);
|
|
9070
7198
|
/**
|
|
9071
7199
|
* Checks if `path` is a direct or inherited property of `object`.
|
|
9072
7200
|
*
|
|
@@ -9102,7 +7230,7 @@ function hasIn(object, path) {
|
|
|
9102
7230
|
module.exports = hasIn;
|
|
9103
7231
|
|
|
9104
7232
|
/***/ }),
|
|
9105
|
-
/*
|
|
7233
|
+
/* 152 */
|
|
9106
7234
|
/***/ (function(module, exports) {
|
|
9107
7235
|
|
|
9108
7236
|
/**
|
|
@@ -9120,15 +7248,15 @@ function baseHasIn(object, key) {
|
|
|
9120
7248
|
module.exports = baseHasIn;
|
|
9121
7249
|
|
|
9122
7250
|
/***/ }),
|
|
9123
|
-
/*
|
|
7251
|
+
/* 153 */
|
|
9124
7252
|
/***/ (function(module, exports, __webpack_require__) {
|
|
9125
7253
|
|
|
9126
7254
|
var castPath = __webpack_require__(32),
|
|
9127
7255
|
isArguments = __webpack_require__(30),
|
|
9128
7256
|
isArray = __webpack_require__(15),
|
|
9129
7257
|
isIndex = __webpack_require__(31),
|
|
9130
|
-
isLength = __webpack_require__(
|
|
9131
|
-
toKey = __webpack_require__(
|
|
7258
|
+
isLength = __webpack_require__(40),
|
|
7259
|
+
toKey = __webpack_require__(43);
|
|
9132
7260
|
/**
|
|
9133
7261
|
* Checks if `path` exists on `object`.
|
|
9134
7262
|
*
|
|
@@ -9167,12 +7295,12 @@ function hasPath(object, path, hasFunc) {
|
|
|
9167
7295
|
module.exports = hasPath;
|
|
9168
7296
|
|
|
9169
7297
|
/***/ }),
|
|
9170
|
-
/*
|
|
7298
|
+
/* 154 */
|
|
9171
7299
|
/***/ (function(module, exports, __webpack_require__) {
|
|
9172
7300
|
|
|
9173
|
-
var flatten = __webpack_require__(
|
|
9174
|
-
overRest = __webpack_require__(
|
|
9175
|
-
setToString = __webpack_require__(
|
|
7301
|
+
var flatten = __webpack_require__(155),
|
|
7302
|
+
overRest = __webpack_require__(58),
|
|
7303
|
+
setToString = __webpack_require__(59);
|
|
9176
7304
|
/**
|
|
9177
7305
|
* A specialized version of `baseRest` which flattens the rest array.
|
|
9178
7306
|
*
|
|
@@ -9189,10 +7317,10 @@ function flatRest(func) {
|
|
|
9189
7317
|
module.exports = flatRest;
|
|
9190
7318
|
|
|
9191
7319
|
/***/ }),
|
|
9192
|
-
/*
|
|
7320
|
+
/* 155 */
|
|
9193
7321
|
/***/ (function(module, exports, __webpack_require__) {
|
|
9194
7322
|
|
|
9195
|
-
var baseFlatten = __webpack_require__(
|
|
7323
|
+
var baseFlatten = __webpack_require__(156);
|
|
9196
7324
|
/**
|
|
9197
7325
|
* Flattens `array` a single level deep.
|
|
9198
7326
|
*
|
|
@@ -9217,11 +7345,11 @@ function flatten(array) {
|
|
|
9217
7345
|
module.exports = flatten;
|
|
9218
7346
|
|
|
9219
7347
|
/***/ }),
|
|
9220
|
-
/*
|
|
7348
|
+
/* 156 */
|
|
9221
7349
|
/***/ (function(module, exports, __webpack_require__) {
|
|
9222
7350
|
|
|
9223
|
-
var arrayPush = __webpack_require__(
|
|
9224
|
-
isFlattenable = __webpack_require__(
|
|
7351
|
+
var arrayPush = __webpack_require__(157),
|
|
7352
|
+
isFlattenable = __webpack_require__(158);
|
|
9225
7353
|
/**
|
|
9226
7354
|
* The base implementation of `_.flatten` with support for restricting flattening.
|
|
9227
7355
|
*
|
|
@@ -9262,7 +7390,7 @@ function baseFlatten(array, depth, predicate, isStrict, result) {
|
|
|
9262
7390
|
module.exports = baseFlatten;
|
|
9263
7391
|
|
|
9264
7392
|
/***/ }),
|
|
9265
|
-
/*
|
|
7393
|
+
/* 157 */
|
|
9266
7394
|
/***/ (function(module, exports) {
|
|
9267
7395
|
|
|
9268
7396
|
/**
|
|
@@ -9288,7 +7416,7 @@ function arrayPush(array, values) {
|
|
|
9288
7416
|
module.exports = arrayPush;
|
|
9289
7417
|
|
|
9290
7418
|
/***/ }),
|
|
9291
|
-
/*
|
|
7419
|
+
/* 158 */
|
|
9292
7420
|
/***/ (function(module, exports, __webpack_require__) {
|
|
9293
7421
|
|
|
9294
7422
|
var Symbol = __webpack_require__(27),
|
|
@@ -9313,7 +7441,7 @@ function isFlattenable(value) {
|
|
|
9313
7441
|
module.exports = isFlattenable;
|
|
9314
7442
|
|
|
9315
7443
|
/***/ }),
|
|
9316
|
-
/*
|
|
7444
|
+
/* 159 */
|
|
9317
7445
|
/***/ (function(module, exports) {
|
|
9318
7446
|
|
|
9319
7447
|
function _isNativeFunction(fn) {
|
|
@@ -9323,12 +7451,12 @@ function _isNativeFunction(fn) {
|
|
|
9323
7451
|
module.exports = _isNativeFunction, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
9324
7452
|
|
|
9325
7453
|
/***/ }),
|
|
9326
|
-
/*
|
|
7454
|
+
/* 160 */
|
|
9327
7455
|
/***/ (function(module, exports, __webpack_require__) {
|
|
9328
7456
|
|
|
9329
|
-
var setPrototypeOf = __webpack_require__(
|
|
7457
|
+
var setPrototypeOf = __webpack_require__(41);
|
|
9330
7458
|
|
|
9331
|
-
var isNativeReflectConstruct = __webpack_require__(
|
|
7459
|
+
var isNativeReflectConstruct = __webpack_require__(161);
|
|
9332
7460
|
|
|
9333
7461
|
function _construct(Parent, args, Class) {
|
|
9334
7462
|
if (isNativeReflectConstruct()) {
|
|
@@ -9350,7 +7478,7 @@ function _construct(Parent, args, Class) {
|
|
|
9350
7478
|
module.exports = _construct, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
9351
7479
|
|
|
9352
7480
|
/***/ }),
|
|
9353
|
-
/*
|
|
7481
|
+
/* 161 */
|
|
9354
7482
|
/***/ (function(module, exports) {
|
|
9355
7483
|
|
|
9356
7484
|
function _isNativeReflectConstruct() {
|
|
@@ -9369,312 +7497,19 @@ function _isNativeReflectConstruct() {
|
|
|
9369
7497
|
module.exports = _isNativeReflectConstruct, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
9370
7498
|
|
|
9371
7499
|
/***/ }),
|
|
9372
|
-
/*
|
|
7500
|
+
/* 162 */
|
|
9373
7501
|
/***/ (function(module, exports) {
|
|
9374
7502
|
|
|
9375
7503
|
module.exports = require("ndarray");
|
|
9376
7504
|
|
|
9377
7505
|
/***/ }),
|
|
9378
|
-
/*
|
|
7506
|
+
/* 163 */
|
|
9379
7507
|
/***/ (function(module, exports) {
|
|
9380
7508
|
|
|
9381
7509
|
module.exports = require("ndarray-linear-interpolate");
|
|
9382
7510
|
|
|
9383
7511
|
/***/ }),
|
|
9384
|
-
/*
|
|
9385
|
-
/***/ (function(module, exports) {
|
|
9386
|
-
|
|
9387
|
-
module.exports = determinant;
|
|
9388
|
-
/**
|
|
9389
|
-
* Calculates the determinant of a mat2
|
|
9390
|
-
*
|
|
9391
|
-
* @alias mat2.determinant
|
|
9392
|
-
* @param {mat2} a the source matrix
|
|
9393
|
-
* @returns {Number} determinant of a
|
|
9394
|
-
*/
|
|
9395
|
-
|
|
9396
|
-
function determinant(a) {
|
|
9397
|
-
return a[0] * a[3] - a[2] * a[1];
|
|
9398
|
-
}
|
|
9399
|
-
|
|
9400
|
-
/***/ }),
|
|
9401
|
-
/* 256 */
|
|
9402
|
-
/***/ (function(module, exports) {
|
|
9403
|
-
|
|
9404
|
-
module.exports = transpose;
|
|
9405
|
-
/**
|
|
9406
|
-
* Transpose the values of a mat2
|
|
9407
|
-
*
|
|
9408
|
-
* @alias mat2.transpose
|
|
9409
|
-
* @param {mat2} out the receiving matrix
|
|
9410
|
-
* @param {mat2} a the source matrix
|
|
9411
|
-
* @returns {mat2} out
|
|
9412
|
-
*/
|
|
9413
|
-
|
|
9414
|
-
function transpose(out, a) {
|
|
9415
|
-
// If we are transposing ourselves we can skip a few steps but have to cache some values
|
|
9416
|
-
if (out === a) {
|
|
9417
|
-
var a1 = a[1];
|
|
9418
|
-
out[1] = a[2];
|
|
9419
|
-
out[2] = a1;
|
|
9420
|
-
} else {
|
|
9421
|
-
out[0] = a[0];
|
|
9422
|
-
out[1] = a[2];
|
|
9423
|
-
out[2] = a[1];
|
|
9424
|
-
out[3] = a[3];
|
|
9425
|
-
}
|
|
9426
|
-
|
|
9427
|
-
return out;
|
|
9428
|
-
}
|
|
9429
|
-
|
|
9430
|
-
/***/ }),
|
|
9431
|
-
/* 257 */
|
|
9432
|
-
/***/ (function(module, exports) {
|
|
9433
|
-
|
|
9434
|
-
module.exports = multiply;
|
|
9435
|
-
/**
|
|
9436
|
-
* Multiplies two mat2's
|
|
9437
|
-
*
|
|
9438
|
-
* @alias mat2.multiply
|
|
9439
|
-
* @param {mat2} out the receiving matrix
|
|
9440
|
-
* @param {mat2} a the first operand
|
|
9441
|
-
* @param {mat2} b the second operand
|
|
9442
|
-
* @returns {mat2} out
|
|
9443
|
-
*/
|
|
9444
|
-
|
|
9445
|
-
function multiply(out, a, b) {
|
|
9446
|
-
var a0 = a[0],
|
|
9447
|
-
a1 = a[1],
|
|
9448
|
-
a2 = a[2],
|
|
9449
|
-
a3 = a[3];
|
|
9450
|
-
var b0 = b[0],
|
|
9451
|
-
b1 = b[1],
|
|
9452
|
-
b2 = b[2],
|
|
9453
|
-
b3 = b[3];
|
|
9454
|
-
out[0] = a0 * b0 + a2 * b1;
|
|
9455
|
-
out[1] = a1 * b0 + a3 * b1;
|
|
9456
|
-
out[2] = a0 * b2 + a2 * b3;
|
|
9457
|
-
out[3] = a1 * b2 + a3 * b3;
|
|
9458
|
-
return out;
|
|
9459
|
-
}
|
|
9460
|
-
|
|
9461
|
-
/***/ }),
|
|
9462
|
-
/* 258 */
|
|
9463
|
-
/***/ (function(module, exports) {
|
|
9464
|
-
|
|
9465
|
-
module.exports = identity;
|
|
9466
|
-
/**
|
|
9467
|
-
* Set a mat2 to the identity matrix
|
|
9468
|
-
*
|
|
9469
|
-
* @alias mat2.identity
|
|
9470
|
-
* @param {mat2} out the receiving matrix
|
|
9471
|
-
* @returns {mat2} out
|
|
9472
|
-
*/
|
|
9473
|
-
|
|
9474
|
-
function identity(out) {
|
|
9475
|
-
out[0] = 1;
|
|
9476
|
-
out[1] = 0;
|
|
9477
|
-
out[2] = 0;
|
|
9478
|
-
out[3] = 1;
|
|
9479
|
-
return out;
|
|
9480
|
-
}
|
|
9481
|
-
|
|
9482
|
-
/***/ }),
|
|
9483
|
-
/* 259 */
|
|
9484
|
-
/***/ (function(module, exports) {
|
|
9485
|
-
|
|
9486
|
-
module.exports = adjoint;
|
|
9487
|
-
/**
|
|
9488
|
-
* Calculates the adjugate of a mat2
|
|
9489
|
-
*
|
|
9490
|
-
* @alias mat2.adjoint
|
|
9491
|
-
* @param {mat2} out the receiving matrix
|
|
9492
|
-
* @param {mat2} a the source matrix
|
|
9493
|
-
* @returns {mat2} out
|
|
9494
|
-
*/
|
|
9495
|
-
|
|
9496
|
-
function adjoint(out, a) {
|
|
9497
|
-
// Caching this value is nessecary if out == a
|
|
9498
|
-
var a0 = a[0];
|
|
9499
|
-
out[0] = a[3];
|
|
9500
|
-
out[1] = -a[1];
|
|
9501
|
-
out[2] = -a[2];
|
|
9502
|
-
out[3] = a0;
|
|
9503
|
-
return out;
|
|
9504
|
-
}
|
|
9505
|
-
|
|
9506
|
-
/***/ }),
|
|
9507
|
-
/* 260 */
|
|
9508
|
-
/***/ (function(module, exports) {
|
|
9509
|
-
|
|
9510
|
-
module.exports = rotate;
|
|
9511
|
-
/**
|
|
9512
|
-
* Rotates a mat2 by the given angle
|
|
9513
|
-
*
|
|
9514
|
-
* @alias mat2.rotate
|
|
9515
|
-
* @param {mat2} out the receiving matrix
|
|
9516
|
-
* @param {mat2} a the matrix to rotate
|
|
9517
|
-
* @param {Number} rad the angle to rotate the matrix by
|
|
9518
|
-
* @returns {mat2} out
|
|
9519
|
-
*/
|
|
9520
|
-
|
|
9521
|
-
function rotate(out, a, rad) {
|
|
9522
|
-
var a0 = a[0],
|
|
9523
|
-
a1 = a[1],
|
|
9524
|
-
a2 = a[2],
|
|
9525
|
-
a3 = a[3];
|
|
9526
|
-
var s = Math.sin(rad);
|
|
9527
|
-
var c = Math.cos(rad);
|
|
9528
|
-
out[0] = a0 * c + a2 * s;
|
|
9529
|
-
out[1] = a1 * c + a3 * s;
|
|
9530
|
-
out[2] = a0 * -s + a2 * c;
|
|
9531
|
-
out[3] = a1 * -s + a3 * c;
|
|
9532
|
-
return out;
|
|
9533
|
-
}
|
|
9534
|
-
|
|
9535
|
-
/***/ }),
|
|
9536
|
-
/* 261 */
|
|
9537
|
-
/***/ (function(module, exports) {
|
|
9538
|
-
|
|
9539
|
-
module.exports = invert;
|
|
9540
|
-
/**
|
|
9541
|
-
* Inverts a mat2
|
|
9542
|
-
*
|
|
9543
|
-
* @alias mat2.invert
|
|
9544
|
-
* @param {mat2} out the receiving matrix
|
|
9545
|
-
* @param {mat2} a the source matrix
|
|
9546
|
-
* @returns {mat2} out
|
|
9547
|
-
*/
|
|
9548
|
-
|
|
9549
|
-
function invert(out, a) {
|
|
9550
|
-
var a0 = a[0];
|
|
9551
|
-
var a1 = a[1];
|
|
9552
|
-
var a2 = a[2];
|
|
9553
|
-
var a3 = a[3];
|
|
9554
|
-
var det = a0 * a3 - a2 * a1;
|
|
9555
|
-
if (!det) return null;
|
|
9556
|
-
det = 1.0 / det;
|
|
9557
|
-
out[0] = a3 * det;
|
|
9558
|
-
out[1] = -a1 * det;
|
|
9559
|
-
out[2] = -a2 * det;
|
|
9560
|
-
out[3] = a0 * det;
|
|
9561
|
-
return out;
|
|
9562
|
-
}
|
|
9563
|
-
|
|
9564
|
-
/***/ }),
|
|
9565
|
-
/* 262 */
|
|
9566
|
-
/***/ (function(module, exports) {
|
|
9567
|
-
|
|
9568
|
-
module.exports = create;
|
|
9569
|
-
/**
|
|
9570
|
-
* Creates a new identity mat2
|
|
9571
|
-
*
|
|
9572
|
-
* @alias mat2.create
|
|
9573
|
-
* @returns {mat2} a new 2x2 matrix
|
|
9574
|
-
*/
|
|
9575
|
-
|
|
9576
|
-
function create() {
|
|
9577
|
-
var out = new Float32Array(4);
|
|
9578
|
-
out[0] = 1;
|
|
9579
|
-
out[1] = 0;
|
|
9580
|
-
out[2] = 0;
|
|
9581
|
-
out[3] = 1;
|
|
9582
|
-
return out;
|
|
9583
|
-
}
|
|
9584
|
-
|
|
9585
|
-
/***/ }),
|
|
9586
|
-
/* 263 */
|
|
9587
|
-
/***/ (function(module, exports) {
|
|
9588
|
-
|
|
9589
|
-
module.exports = scale;
|
|
9590
|
-
/**
|
|
9591
|
-
* Scales the mat2 by the dimensions in the given vec2
|
|
9592
|
-
*
|
|
9593
|
-
* @alias mat2.scale
|
|
9594
|
-
* @param {mat2} out the receiving matrix
|
|
9595
|
-
* @param {mat2} a the matrix to rotate
|
|
9596
|
-
* @param {vec2} v the vec2 to scale the matrix by
|
|
9597
|
-
* @returns {mat2} out
|
|
9598
|
-
**/
|
|
9599
|
-
|
|
9600
|
-
function scale(out, a, v) {
|
|
9601
|
-
var a0 = a[0],
|
|
9602
|
-
a1 = a[1],
|
|
9603
|
-
a2 = a[2],
|
|
9604
|
-
a3 = a[3];
|
|
9605
|
-
var v0 = v[0],
|
|
9606
|
-
v1 = v[1];
|
|
9607
|
-
out[0] = a0 * v0;
|
|
9608
|
-
out[1] = a1 * v0;
|
|
9609
|
-
out[2] = a2 * v1;
|
|
9610
|
-
out[3] = a3 * v1;
|
|
9611
|
-
return out;
|
|
9612
|
-
}
|
|
9613
|
-
|
|
9614
|
-
/***/ }),
|
|
9615
|
-
/* 264 */
|
|
9616
|
-
/***/ (function(module, exports) {
|
|
9617
|
-
|
|
9618
|
-
module.exports = copy;
|
|
9619
|
-
/**
|
|
9620
|
-
* Copy the values from one mat2 to another
|
|
9621
|
-
*
|
|
9622
|
-
* @alias mat2.copy
|
|
9623
|
-
* @param {mat2} out the receiving matrix
|
|
9624
|
-
* @param {mat2} a the source matrix
|
|
9625
|
-
* @returns {mat2} out
|
|
9626
|
-
*/
|
|
9627
|
-
|
|
9628
|
-
function copy(out, a) {
|
|
9629
|
-
out[0] = a[0];
|
|
9630
|
-
out[1] = a[1];
|
|
9631
|
-
out[2] = a[2];
|
|
9632
|
-
out[3] = a[3];
|
|
9633
|
-
return out;
|
|
9634
|
-
}
|
|
9635
|
-
|
|
9636
|
-
/***/ }),
|
|
9637
|
-
/* 265 */
|
|
9638
|
-
/***/ (function(module, exports) {
|
|
9639
|
-
|
|
9640
|
-
module.exports = frob;
|
|
9641
|
-
/**
|
|
9642
|
-
* Returns Frobenius norm of a mat2
|
|
9643
|
-
*
|
|
9644
|
-
* @alias mat2.frob
|
|
9645
|
-
* @param {mat2} a the matrix to calculate Frobenius norm of
|
|
9646
|
-
* @returns {Number} Frobenius norm
|
|
9647
|
-
*/
|
|
9648
|
-
|
|
9649
|
-
function frob(a) {
|
|
9650
|
-
return Math.sqrt(Math.pow(a[0], 2) + Math.pow(a[1], 2) + Math.pow(a[2], 2) + Math.pow(a[3], 2));
|
|
9651
|
-
}
|
|
9652
|
-
|
|
9653
|
-
/***/ }),
|
|
9654
|
-
/* 266 */
|
|
9655
|
-
/***/ (function(module, exports) {
|
|
9656
|
-
|
|
9657
|
-
module.exports = ldu;
|
|
9658
|
-
/**
|
|
9659
|
-
* Returns L, D and U matrices (Lower triangular, Diagonal and Upper triangular) by factorizing the input matrix
|
|
9660
|
-
*
|
|
9661
|
-
* @alias mat2.ldu
|
|
9662
|
-
* @param {mat2} L the lower triangular matrix
|
|
9663
|
-
* @param {mat2} D the diagonal matrix
|
|
9664
|
-
* @param {mat2} U the upper triangular matrix
|
|
9665
|
-
* @param {mat2} a the input matrix to factorize
|
|
9666
|
-
*/
|
|
9667
|
-
|
|
9668
|
-
function ldu(L, D, U, a) {
|
|
9669
|
-
L[2] = a[2] / a[0];
|
|
9670
|
-
U[0] = a[0];
|
|
9671
|
-
U[1] = a[1];
|
|
9672
|
-
U[3] = a[3] - L[2] * U[1];
|
|
9673
|
-
return [L, D, U];
|
|
9674
|
-
}
|
|
9675
|
-
|
|
9676
|
-
/***/ }),
|
|
9677
|
-
/* 267 */
|
|
7512
|
+
/* 164 */
|
|
9678
7513
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
9679
7514
|
|
|
9680
7515
|
"use strict";
|
|
@@ -9717,7 +7552,7 @@ var merge = __webpack_require__(18);
|
|
|
9717
7552
|
var merge_default = /*#__PURE__*/__webpack_require__.n(merge);
|
|
9718
7553
|
|
|
9719
7554
|
// EXTERNAL MODULE: ./src/common/typedefs.js
|
|
9720
|
-
var typedefs = __webpack_require__(
|
|
7555
|
+
var typedefs = __webpack_require__(131);
|
|
9721
7556
|
|
|
9722
7557
|
// EXTERNAL MODULE: ./src/common/image_wrapper.ts
|
|
9723
7558
|
var image_wrapper = __webpack_require__(10);
|
|
@@ -9746,11 +7581,11 @@ var assertThisInitialized = __webpack_require__(1);
|
|
|
9746
7581
|
var assertThisInitialized_default = /*#__PURE__*/__webpack_require__.n(assertThisInitialized);
|
|
9747
7582
|
|
|
9748
7583
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/inherits.js
|
|
9749
|
-
var inherits = __webpack_require__(
|
|
7584
|
+
var inherits = __webpack_require__(7);
|
|
9750
7585
|
var inherits_default = /*#__PURE__*/__webpack_require__.n(inherits);
|
|
9751
7586
|
|
|
9752
7587
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js
|
|
9753
|
-
var possibleConstructorReturn = __webpack_require__(
|
|
7588
|
+
var possibleConstructorReturn = __webpack_require__(6);
|
|
9754
7589
|
var possibleConstructorReturn_default = /*#__PURE__*/__webpack_require__.n(possibleConstructorReturn);
|
|
9755
7590
|
|
|
9756
7591
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/getPrototypeOf.js
|
|
@@ -13823,11 +11658,11 @@ var READERS = {
|
|
|
13823
11658
|
};
|
|
13824
11659
|
})());
|
|
13825
11660
|
// EXTERNAL MODULE: ./node_modules/lodash/pick.js
|
|
13826
|
-
var pick = __webpack_require__(
|
|
11661
|
+
var pick = __webpack_require__(62);
|
|
13827
11662
|
var pick_default = /*#__PURE__*/__webpack_require__.n(pick);
|
|
13828
11663
|
|
|
13829
11664
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/wrapNativeSuper.js
|
|
13830
|
-
var wrapNativeSuper = __webpack_require__(
|
|
11665
|
+
var wrapNativeSuper = __webpack_require__(63);
|
|
13831
11666
|
var wrapNativeSuper_default = /*#__PURE__*/__webpack_require__.n(wrapNativeSuper);
|
|
13832
11667
|
|
|
13833
11668
|
// CONCATENATED MODULE: ./src/quagga/Exception.ts
|
|
@@ -14348,11 +12183,11 @@ var ExportConfig = function () {
|
|
|
14348
12183
|
}();
|
|
14349
12184
|
|
|
14350
12185
|
/* harmony default export */ var config_config = (ExportConfig);
|
|
14351
|
-
// EXTERNAL MODULE:
|
|
14352
|
-
var
|
|
12186
|
+
// EXTERNAL MODULE: external "gl-matrix"
|
|
12187
|
+
var external_gl_matrix_ = __webpack_require__(5);
|
|
14353
12188
|
|
|
14354
12189
|
// EXTERNAL MODULE: ./src/input/frame_grabber.js
|
|
14355
|
-
var frame_grabber = __webpack_require__(
|
|
12190
|
+
var frame_grabber = __webpack_require__(64);
|
|
14356
12191
|
var frame_grabber_default = /*#__PURE__*/__webpack_require__.n(frame_grabber);
|
|
14357
12192
|
|
|
14358
12193
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/slicedToArray.js
|
|
@@ -14360,7 +12195,7 @@ var slicedToArray = __webpack_require__(33);
|
|
|
14360
12195
|
var slicedToArray_default = /*#__PURE__*/__webpack_require__.n(slicedToArray);
|
|
14361
12196
|
|
|
14362
12197
|
// EXTERNAL MODULE: external "get-pixels"
|
|
14363
|
-
var external_get_pixels_ = __webpack_require__(
|
|
12198
|
+
var external_get_pixels_ = __webpack_require__(65);
|
|
14364
12199
|
var external_get_pixels_default = /*#__PURE__*/__webpack_require__.n(external_get_pixels_);
|
|
14365
12200
|
|
|
14366
12201
|
// CONCATENATED MODULE: ./src/input/input_stream/input_stream.ts
|
|
@@ -14617,7 +12452,8 @@ function getViewPort_getViewPort(target) {
|
|
|
14617
12452
|
|
|
14618
12453
|
|
|
14619
12454
|
|
|
14620
|
-
// TODO: need typescript def for BarcodeLocator
|
|
12455
|
+
external_gl_matrix_["glMatrix"].setMatrixArrayType(Array); // TODO: need typescript def for BarcodeLocator
|
|
12456
|
+
|
|
14621
12457
|
function initBuffers_initBuffers(inputStream, imageWrapper, locator) {
|
|
14622
12458
|
var inputImageWrapper = imageWrapper || new image_wrapper["a" /* default */]({
|
|
14623
12459
|
x: inputStream.getWidth(),
|
|
@@ -14627,7 +12463,7 @@ function initBuffers_initBuffers(inputStream, imageWrapper, locator) {
|
|
|
14627
12463
|
|
|
14628
12464
|
if (false) {}
|
|
14629
12465
|
|
|
14630
|
-
var boxSize = [
|
|
12466
|
+
var boxSize = [external_gl_matrix_["vec2"].clone([0, 0]), external_gl_matrix_["vec2"].clone([0, inputImageWrapper.size.y]), external_gl_matrix_["vec2"].clone([inputImageWrapper.size.x, inputImageWrapper.size.y]), external_gl_matrix_["vec2"].clone([inputImageWrapper.size.x, 0])];
|
|
14631
12467
|
barcode_locator["a" /* default */].init(inputImageWrapper, locator);
|
|
14632
12468
|
return {
|
|
14633
12469
|
inputImageWrapper: inputImageWrapper,
|
|
@@ -15012,6 +12848,7 @@ function moveLine(line, xOffset, yOffset) {
|
|
|
15012
12848
|
|
|
15013
12849
|
|
|
15014
12850
|
|
|
12851
|
+
external_gl_matrix_["glMatrix"].setMatrixArrayType(Array);
|
|
15015
12852
|
|
|
15016
12853
|
var quagga_Quagga = /*#__PURE__*/function () {
|
|
15017
12854
|
function Quagga() {
|
|
@@ -15168,7 +13005,7 @@ var quagga_Quagga = /*#__PURE__*/function () {
|
|
|
15168
13005
|
value: function getBoundingBoxes() {
|
|
15169
13006
|
var _this$context$config3;
|
|
15170
13007
|
|
|
15171
|
-
return (_this$context$config3 = this.context.config) !== null && _this$context$config3 !== void 0 && _this$context$config3.locate ? barcode_locator["a" /* default */].locate() : [[
|
|
13008
|
+
return (_this$context$config3 = this.context.config) !== null && _this$context$config3 !== void 0 && _this$context$config3.locate ? barcode_locator["a" /* default */].locate() : [[external_gl_matrix_["vec2"].clone(this.context.boxSize[0]), external_gl_matrix_["vec2"].clone(this.context.boxSize[1]), external_gl_matrix_["vec2"].clone(this.context.boxSize[2]), external_gl_matrix_["vec2"].clone(this.context.boxSize[3])]];
|
|
15172
13009
|
} // TODO: need a typescript type for result here.
|
|
15173
13010
|
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
|
|
15174
13011
|
|