@ericblade/quagga2 1.10.2 → 1.11.0
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/DEPENDENCIES.md +4 -13
- package/HALFSAMPLE_PERFORMANCE_ANALYSIS.md +178 -0
- package/README.md +111 -8
- package/dist/quagga.js +702 -250
- package/dist/quagga.min.js +4 -4
- package/docs/_config.yml +3 -0
- package/docs/assets/bb-binary.png +0 -0
- package/docs/assets/bb-rotated.png +0 -0
- package/docs/assets/binary.png +0 -0
- package/docs/assets/component-labeling-line.png +0 -0
- package/docs/assets/component-labeling-text.png +0 -0
- package/docs/assets/component-labeling.png +0 -0
- package/docs/assets/connected-patch-labels.png +0 -0
- package/docs/assets/mobile-detected.png +0 -0
- package/docs/assets/mobile-located.png +0 -0
- package/docs/assets/patches_found.png +0 -0
- package/docs/assets/quaggaJS-code128.png +0 -0
- package/docs/assets/remaining-patch-labels.png +0 -0
- package/docs/assets/skeleton.png +0 -0
- package/docs/assets/teaser.png +0 -0
- package/docs/contributing.md +102 -0
- package/docs/explanation/algorithm-overview.md +69 -0
- package/docs/explanation/architecture.md +117 -0
- package/docs/explanation/how-barcode-localization-works.md +197 -0
- package/docs/explanation/index.md +80 -0
- package/docs/explanation/input-streams.md +270 -0
- package/docs/getting-started.md +213 -0
- package/docs/how-to-guides/configure-readers.md +79 -0
- package/docs/how-to-guides/external-readers.md +234 -0
- package/docs/how-to-guides/handle-difficult-barcodes.md +127 -0
- package/docs/how-to-guides/index.md +77 -0
- package/docs/how-to-guides/optimize-performance.md +114 -0
- package/docs/how-to-guides/tips-and-tricks.md +115 -0
- package/docs/how-to-guides/use-debug-flags.md +776 -0
- package/docs/how-to-guides/working-with-coordinates.md +254 -0
- package/docs/index.md +118 -0
- package/docs/reference/api.md +716 -0
- package/docs/reference/browser-support.md +109 -0
- package/docs/reference/camera-access.md +376 -0
- package/docs/reference/configuration.md +1008 -0
- package/docs/reference/dependencies.md +295 -0
- package/docs/reference/index.md +74 -0
- package/docs/reference/readers.md +261 -0
- package/docs/tutorials/first-scan.md +141 -0
- package/docs/tutorials/index.md +77 -0
- package/docs/tutorials/node-usage.md +182 -0
- package/docs/tutorials/react-integration.md +176 -0
- package/docs/tutorials/static-image.md +130 -0
- package/lib/quagga.js +645 -265
- package/package.json +14 -11
- package/type-definitions/quagga.d.ts +86 -9
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 = 79);
|
|
85
85
|
/******/ })
|
|
86
86
|
/************************************************************************/
|
|
87
87
|
/******/ ([
|
|
@@ -2222,7 +2222,7 @@ var vec3_forEach = function () {
|
|
|
2222
2222
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2223
2223
|
|
|
2224
2224
|
var _typeof = __webpack_require__(11)["default"];
|
|
2225
|
-
var assertThisInitialized = __webpack_require__(
|
|
2225
|
+
var assertThisInitialized = __webpack_require__(151);
|
|
2226
2226
|
function _possibleConstructorReturn(t, e) {
|
|
2227
2227
|
if (e && ("object" == _typeof(e) || "function" == typeof e)) return e;
|
|
2228
2228
|
if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
|
|
@@ -2255,7 +2255,7 @@ module.exports = _inherits, module.exports.__esModule = true, module.exports["de
|
|
|
2255
2255
|
|
|
2256
2256
|
// TODO(Babel 8): Remove this file.
|
|
2257
2257
|
|
|
2258
|
-
var runtime = __webpack_require__(
|
|
2258
|
+
var runtime = __webpack_require__(147)();
|
|
2259
2259
|
module.exports = runtime;
|
|
2260
2260
|
|
|
2261
2261
|
// Copied from https://github.com/facebook/regenerator/blob/main/packages/runtime/runtime.js#L736=
|
|
@@ -3081,11 +3081,22 @@ function hsv2rgb(hsv) {
|
|
|
3081
3081
|
return rgb;
|
|
3082
3082
|
}
|
|
3083
3083
|
function _computeDivisors(n) {
|
|
3084
|
+
// Handle edge cases
|
|
3085
|
+
// NaN: Not a number - no meaningful divisors
|
|
3086
|
+
// Infinity: Infinite values have no finite divisors
|
|
3087
|
+
// Non-positive: Divisors are typically defined for positive integers only
|
|
3088
|
+
// While negative numbers technically have divisors, returning them would complicate
|
|
3089
|
+
// the API (would need to return both positive and negative divisors, or make assumptions)
|
|
3090
|
+
if (!Number.isFinite(n) || n < 1) {
|
|
3091
|
+
return [];
|
|
3092
|
+
}
|
|
3084
3093
|
var largeDivisors = [];
|
|
3085
3094
|
var divisors = [];
|
|
3086
|
-
|
|
3095
|
+
var sqrtN = Math.sqrt(n);
|
|
3096
|
+
for (var i = 1; i <= sqrtN; i++) {
|
|
3087
3097
|
if (n % i === 0) {
|
|
3088
3098
|
divisors.push(i);
|
|
3099
|
+
// Only add the complementary divisor if it's different (not a perfect square root)
|
|
3089
3100
|
if (i !== n / i) {
|
|
3090
3101
|
largeDivisors.unshift(Math.floor(n / i));
|
|
3091
3102
|
}
|
|
@@ -3155,6 +3166,14 @@ function calculatePatchSize(patchSize, imgSize) {
|
|
|
3155
3166
|
optimalPatchSize = findPatchSizeForDivisors(_computeDivisors(desiredPatchSize * nrOfPatches));
|
|
3156
3167
|
}
|
|
3157
3168
|
}
|
|
3169
|
+
// Fallback: if no optimal patch size found, use image size (or 1x1 minimum)
|
|
3170
|
+
// This ensures the function always returns a valid {x, y} object
|
|
3171
|
+
if (!optimalPatchSize) {
|
|
3172
|
+
optimalPatchSize = {
|
|
3173
|
+
x: Math.max(1, imgSize.x),
|
|
3174
|
+
y: Math.max(1, imgSize.y)
|
|
3175
|
+
};
|
|
3176
|
+
}
|
|
3158
3177
|
return optimalPatchSize;
|
|
3159
3178
|
}
|
|
3160
3179
|
function _parseCSSDimensionValues(value) {
|
|
@@ -3184,6 +3203,10 @@ function computeImageArea(inputWidth, inputHeight, area) {
|
|
|
3184
3203
|
height: inputHeight
|
|
3185
3204
|
};
|
|
3186
3205
|
var parsedArea = Object.keys(area).reduce(function (result, key) {
|
|
3206
|
+
// Skip styling properties that aren't dimension converters
|
|
3207
|
+
if (!_dimensionsConverters[key]) {
|
|
3208
|
+
return result;
|
|
3209
|
+
}
|
|
3187
3210
|
var value = area[key];
|
|
3188
3211
|
var parsed = _parseCSSDimensionValues(value);
|
|
3189
3212
|
var calculated = _dimensionsConverters[key](parsed, context);
|
|
@@ -3256,7 +3279,7 @@ module.exports = isObject;
|
|
|
3256
3279
|
/* 13 */
|
|
3257
3280
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3258
3281
|
|
|
3259
|
-
var superPropBase = __webpack_require__(
|
|
3282
|
+
var superPropBase = __webpack_require__(152);
|
|
3260
3283
|
function _get() {
|
|
3261
3284
|
return module.exports = _get = "undefined" != typeof Reflect && Reflect.get ? Reflect.get.bind() : function (e, t, r) {
|
|
3262
3285
|
var p = superPropBase(e, t);
|
|
@@ -3304,8 +3327,8 @@ module.exports = isArray;
|
|
|
3304
3327
|
/* 15 */
|
|
3305
3328
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3306
3329
|
|
|
3307
|
-
var baseMerge = __webpack_require__(
|
|
3308
|
-
createAssigner = __webpack_require__(
|
|
3330
|
+
var baseMerge = __webpack_require__(80),
|
|
3331
|
+
createAssigner = __webpack_require__(135);
|
|
3309
3332
|
|
|
3310
3333
|
/**
|
|
3311
3334
|
* This method is like `_.assign` except that it recursively merges own and
|
|
@@ -3400,8 +3423,8 @@ module.exports = isObjectLike;
|
|
|
3400
3423
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3401
3424
|
|
|
3402
3425
|
var Symbol = __webpack_require__(22),
|
|
3403
|
-
getRawTag = __webpack_require__(
|
|
3404
|
-
objectToString = __webpack_require__(
|
|
3426
|
+
getRawTag = __webpack_require__(93),
|
|
3427
|
+
objectToString = __webpack_require__(94);
|
|
3405
3428
|
|
|
3406
3429
|
/** `Object#toString` result references. */
|
|
3407
3430
|
var nullTag = '[object Null]',
|
|
@@ -3433,11 +3456,11 @@ module.exports = baseGetTag;
|
|
|
3433
3456
|
/* 19 */
|
|
3434
3457
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3435
3458
|
|
|
3436
|
-
var listCacheClear = __webpack_require__(
|
|
3437
|
-
listCacheDelete = __webpack_require__(
|
|
3438
|
-
listCacheGet = __webpack_require__(
|
|
3439
|
-
listCacheHas = __webpack_require__(
|
|
3440
|
-
listCacheSet = __webpack_require__(
|
|
3459
|
+
var listCacheClear = __webpack_require__(82),
|
|
3460
|
+
listCacheDelete = __webpack_require__(83),
|
|
3461
|
+
listCacheGet = __webpack_require__(84),
|
|
3462
|
+
listCacheHas = __webpack_require__(85),
|
|
3463
|
+
listCacheSet = __webpack_require__(86);
|
|
3441
3464
|
|
|
3442
3465
|
/**
|
|
3443
3466
|
* Creates an list cache object.
|
|
@@ -3565,7 +3588,7 @@ module.exports = nativeCreate;
|
|
|
3565
3588
|
/* 24 */
|
|
3566
3589
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3567
3590
|
|
|
3568
|
-
var isKeyable = __webpack_require__(
|
|
3591
|
+
var isKeyable = __webpack_require__(107);
|
|
3569
3592
|
|
|
3570
3593
|
/**
|
|
3571
3594
|
* Gets the data for `map`.
|
|
@@ -3589,7 +3612,7 @@ module.exports = getMapData;
|
|
|
3589
3612
|
/* 25 */
|
|
3590
3613
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3591
3614
|
|
|
3592
|
-
var baseIsArguments = __webpack_require__(
|
|
3615
|
+
var baseIsArguments = __webpack_require__(122),
|
|
3593
3616
|
isObjectLike = __webpack_require__(17);
|
|
3594
3617
|
|
|
3595
3618
|
/** Used for built-in method references. */
|
|
@@ -3663,9 +3686,9 @@ module.exports = isIndex;
|
|
|
3663
3686
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3664
3687
|
|
|
3665
3688
|
var isArray = __webpack_require__(14),
|
|
3666
|
-
isKey = __webpack_require__(
|
|
3667
|
-
stringToPath = __webpack_require__(
|
|
3668
|
-
toString = __webpack_require__(
|
|
3689
|
+
isKey = __webpack_require__(160),
|
|
3690
|
+
stringToPath = __webpack_require__(161),
|
|
3691
|
+
toString = __webpack_require__(164);
|
|
3669
3692
|
|
|
3670
3693
|
/**
|
|
3671
3694
|
* Casts `value` to a path array if it's not one.
|
|
@@ -3689,10 +3712,10 @@ module.exports = castPath;
|
|
|
3689
3712
|
/* 28 */
|
|
3690
3713
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3691
3714
|
|
|
3692
|
-
var arrayWithHoles = __webpack_require__(
|
|
3693
|
-
var iterableToArrayLimit = __webpack_require__(
|
|
3715
|
+
var arrayWithHoles = __webpack_require__(143);
|
|
3716
|
+
var iterableToArrayLimit = __webpack_require__(144);
|
|
3694
3717
|
var unsupportedIterableToArray = __webpack_require__(55);
|
|
3695
|
-
var nonIterableRest = __webpack_require__(
|
|
3718
|
+
var nonIterableRest = __webpack_require__(145);
|
|
3696
3719
|
function _slicedToArray(r, e) {
|
|
3697
3720
|
return arrayWithHoles(r) || iterableToArrayLimit(r, e) || unsupportedIterableToArray(r, e) || nonIterableRest();
|
|
3698
3721
|
}
|
|
@@ -3702,10 +3725,10 @@ module.exports = _slicedToArray, module.exports.__esModule = true, module.export
|
|
|
3702
3725
|
/* 29 */
|
|
3703
3726
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3704
3727
|
|
|
3705
|
-
var arrayWithoutHoles = __webpack_require__(
|
|
3706
|
-
var iterableToArray = __webpack_require__(
|
|
3728
|
+
var arrayWithoutHoles = __webpack_require__(153);
|
|
3729
|
+
var iterableToArray = __webpack_require__(154);
|
|
3707
3730
|
var unsupportedIterableToArray = __webpack_require__(55);
|
|
3708
|
-
var nonIterableSpread = __webpack_require__(
|
|
3731
|
+
var nonIterableSpread = __webpack_require__(155);
|
|
3709
3732
|
function _toConsumableArray(r) {
|
|
3710
3733
|
return arrayWithoutHoles(r) || iterableToArray(r) || unsupportedIterableToArray(r) || nonIterableSpread();
|
|
3711
3734
|
}
|
|
@@ -3715,8 +3738,8 @@ module.exports = _toConsumableArray, module.exports.__esModule = true, module.ex
|
|
|
3715
3738
|
/* 30 */
|
|
3716
3739
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3717
3740
|
|
|
3718
|
-
var baseIsNative = __webpack_require__(
|
|
3719
|
-
getValue = __webpack_require__(
|
|
3741
|
+
var baseIsNative = __webpack_require__(92),
|
|
3742
|
+
getValue = __webpack_require__(98);
|
|
3720
3743
|
|
|
3721
3744
|
/**
|
|
3722
3745
|
* Gets the native function at `key` of `object`.
|
|
@@ -4043,11 +4066,11 @@ module.exports = g;
|
|
|
4043
4066
|
/* 42 */
|
|
4044
4067
|
/***/ (function(module, exports, __webpack_require__) {
|
|
4045
4068
|
|
|
4046
|
-
var mapCacheClear = __webpack_require__(
|
|
4047
|
-
mapCacheDelete = __webpack_require__(
|
|
4048
|
-
mapCacheGet = __webpack_require__(
|
|
4049
|
-
mapCacheHas = __webpack_require__(
|
|
4050
|
-
mapCacheSet = __webpack_require__(
|
|
4069
|
+
var mapCacheClear = __webpack_require__(99),
|
|
4070
|
+
mapCacheDelete = __webpack_require__(106),
|
|
4071
|
+
mapCacheGet = __webpack_require__(108),
|
|
4072
|
+
mapCacheHas = __webpack_require__(109),
|
|
4073
|
+
mapCacheSet = __webpack_require__(110);
|
|
4051
4074
|
|
|
4052
4075
|
/**
|
|
4053
4076
|
* Creates a map cache object to store key-value pairs.
|
|
@@ -4124,7 +4147,7 @@ module.exports = defineProperty;
|
|
|
4124
4147
|
/* 45 */
|
|
4125
4148
|
/***/ (function(module, exports, __webpack_require__) {
|
|
4126
4149
|
|
|
4127
|
-
var overArg = __webpack_require__(
|
|
4150
|
+
var overArg = __webpack_require__(121);
|
|
4128
4151
|
|
|
4129
4152
|
/** Built-in value references. */
|
|
4130
4153
|
var getPrototype = overArg(Object.getPrototypeOf, Object);
|
|
@@ -4161,7 +4184,7 @@ module.exports = isPrototype;
|
|
|
4161
4184
|
/***/ (function(module, exports, __webpack_require__) {
|
|
4162
4185
|
|
|
4163
4186
|
/* WEBPACK VAR INJECTION */(function(module) {var root = __webpack_require__(16),
|
|
4164
|
-
stubFalse = __webpack_require__(
|
|
4187
|
+
stubFalse = __webpack_require__(124);
|
|
4165
4188
|
|
|
4166
4189
|
/** Detect free variable `exports`. */
|
|
4167
4190
|
var freeExports = true && exports && !exports.nodeType && exports;
|
|
@@ -4205,9 +4228,9 @@ module.exports = isBuffer;
|
|
|
4205
4228
|
/* 48 */
|
|
4206
4229
|
/***/ (function(module, exports, __webpack_require__) {
|
|
4207
4230
|
|
|
4208
|
-
var baseIsTypedArray = __webpack_require__(
|
|
4209
|
-
baseUnary = __webpack_require__(
|
|
4210
|
-
nodeUtil = __webpack_require__(
|
|
4231
|
+
var baseIsTypedArray = __webpack_require__(126),
|
|
4232
|
+
baseUnary = __webpack_require__(127),
|
|
4233
|
+
nodeUtil = __webpack_require__(128);
|
|
4211
4234
|
|
|
4212
4235
|
/* Node.js helper references. */
|
|
4213
4236
|
var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
|
|
@@ -4299,8 +4322,8 @@ module.exports = assignValue;
|
|
|
4299
4322
|
/* 51 */
|
|
4300
4323
|
/***/ (function(module, exports, __webpack_require__) {
|
|
4301
4324
|
|
|
4302
|
-
var arrayLikeKeys = __webpack_require__(
|
|
4303
|
-
baseKeysIn = __webpack_require__(
|
|
4325
|
+
var arrayLikeKeys = __webpack_require__(131),
|
|
4326
|
+
baseKeysIn = __webpack_require__(133),
|
|
4304
4327
|
isArrayLike = __webpack_require__(34);
|
|
4305
4328
|
|
|
4306
4329
|
/**
|
|
@@ -4364,7 +4387,7 @@ module.exports = identity;
|
|
|
4364
4387
|
/* 53 */
|
|
4365
4388
|
/***/ (function(module, exports, __webpack_require__) {
|
|
4366
4389
|
|
|
4367
|
-
var apply = __webpack_require__(
|
|
4390
|
+
var apply = __webpack_require__(137);
|
|
4368
4391
|
|
|
4369
4392
|
/* Built-in method references for those with the same name as other `lodash` methods. */
|
|
4370
4393
|
var nativeMax = Math.max;
|
|
@@ -4406,8 +4429,8 @@ module.exports = overRest;
|
|
|
4406
4429
|
/* 54 */
|
|
4407
4430
|
/***/ (function(module, exports, __webpack_require__) {
|
|
4408
4431
|
|
|
4409
|
-
var baseSetToString = __webpack_require__(
|
|
4410
|
-
shortOut = __webpack_require__(
|
|
4432
|
+
var baseSetToString = __webpack_require__(138),
|
|
4433
|
+
shortOut = __webpack_require__(140);
|
|
4411
4434
|
|
|
4412
4435
|
/**
|
|
4413
4436
|
* Sets the `toString` method of `func` to return `string`.
|
|
@@ -4452,7 +4475,7 @@ module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exp
|
|
|
4452
4475
|
/***/ (function(module, exports, __webpack_require__) {
|
|
4453
4476
|
|
|
4454
4477
|
var _typeof = __webpack_require__(11)["default"];
|
|
4455
|
-
var toPrimitive = __webpack_require__(
|
|
4478
|
+
var toPrimitive = __webpack_require__(146);
|
|
4456
4479
|
function toPropertyKey(t) {
|
|
4457
4480
|
var i = toPrimitive(t, "string");
|
|
4458
4481
|
return "symbol" == _typeof(i) ? i : i + "";
|
|
@@ -4642,8 +4665,26 @@ module.exports = AsyncIterator, module.exports.__esModule = true, module.exports
|
|
|
4642
4665
|
/* 63 */
|
|
4643
4666
|
/***/ (function(module, exports, __webpack_require__) {
|
|
4644
4667
|
|
|
4645
|
-
var
|
|
4646
|
-
|
|
4668
|
+
var objectWithoutPropertiesLoose = __webpack_require__(156);
|
|
4669
|
+
function _objectWithoutProperties(e, t) {
|
|
4670
|
+
if (null == e) return {};
|
|
4671
|
+
var o,
|
|
4672
|
+
r,
|
|
4673
|
+
i = objectWithoutPropertiesLoose(e, t);
|
|
4674
|
+
if (Object.getOwnPropertySymbols) {
|
|
4675
|
+
var n = Object.getOwnPropertySymbols(e);
|
|
4676
|
+
for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
|
|
4677
|
+
}
|
|
4678
|
+
return i;
|
|
4679
|
+
}
|
|
4680
|
+
module.exports = _objectWithoutProperties, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
4681
|
+
|
|
4682
|
+
/***/ }),
|
|
4683
|
+
/* 64 */
|
|
4684
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
4685
|
+
|
|
4686
|
+
var basePick = __webpack_require__(157),
|
|
4687
|
+
flatRest = __webpack_require__(171);
|
|
4647
4688
|
|
|
4648
4689
|
/**
|
|
4649
4690
|
* Creates an object composed of the picked `object` properties.
|
|
@@ -4670,13 +4711,13 @@ module.exports = pick;
|
|
|
4670
4711
|
|
|
4671
4712
|
|
|
4672
4713
|
/***/ }),
|
|
4673
|
-
/*
|
|
4714
|
+
/* 65 */
|
|
4674
4715
|
/***/ (function(module, exports, __webpack_require__) {
|
|
4675
4716
|
|
|
4676
4717
|
var getPrototypeOf = __webpack_require__(1);
|
|
4677
4718
|
var setPrototypeOf = __webpack_require__(36);
|
|
4678
|
-
var isNativeFunction = __webpack_require__(
|
|
4679
|
-
var construct = __webpack_require__(
|
|
4719
|
+
var isNativeFunction = __webpack_require__(176);
|
|
4720
|
+
var construct = __webpack_require__(177);
|
|
4680
4721
|
function _wrapNativeSuper(t) {
|
|
4681
4722
|
var r = "function" == typeof Map ? new Map() : void 0;
|
|
4682
4723
|
return module.exports = _wrapNativeSuper = function _wrapNativeSuper(t) {
|
|
@@ -4702,15 +4743,15 @@ function _wrapNativeSuper(t) {
|
|
|
4702
4743
|
module.exports = _wrapNativeSuper, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
4703
4744
|
|
|
4704
4745
|
/***/ }),
|
|
4705
|
-
/*
|
|
4746
|
+
/* 66 */
|
|
4706
4747
|
/***/ (function(module, exports, __webpack_require__) {
|
|
4707
4748
|
|
|
4708
4749
|
// NOTE FOR ANYONE IN HERE IN THE FUTURE: This module is used when the module is built for use in Node.
|
|
4709
4750
|
// Webpack.config.js explicitly REPLACES this module with the file called frame_grabber_browser when it is packing the Browser distribution.
|
|
4710
4751
|
|
|
4711
4752
|
var CVUtils = __webpack_require__(10);
|
|
4712
|
-
var Ndarray = __webpack_require__(
|
|
4713
|
-
var Interp2D = __webpack_require__(
|
|
4753
|
+
var Ndarray = __webpack_require__(179);
|
|
4754
|
+
var Interp2D = __webpack_require__(182).d2;
|
|
4714
4755
|
var FrameGrabber = {};
|
|
4715
4756
|
FrameGrabber.create = function (inputStream, canvas) {
|
|
4716
4757
|
var _streamConfig$debug;
|
|
@@ -4792,7 +4833,7 @@ FrameGrabber.create = function (inputStream, canvas) {
|
|
|
4792
4833
|
module.exports = FrameGrabber;
|
|
4793
4834
|
|
|
4794
4835
|
/***/ }),
|
|
4795
|
-
/*
|
|
4836
|
+
/* 67 */
|
|
4796
4837
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
4797
4838
|
|
|
4798
4839
|
"use strict";
|
|
@@ -4802,15 +4843,15 @@ module.exports = FrameGrabber;
|
|
|
4802
4843
|
/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1__);
|
|
4803
4844
|
/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7);
|
|
4804
4845
|
/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2__);
|
|
4805
|
-
/* harmony import */ var fs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
|
|
4846
|
+
/* harmony import */ var fs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(68);
|
|
4806
4847
|
/* harmony import */ var fs__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(fs__WEBPACK_IMPORTED_MODULE_3__);
|
|
4807
|
-
/* harmony import */ var http__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
|
|
4848
|
+
/* harmony import */ var http__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(69);
|
|
4808
4849
|
/* harmony import */ var http__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(http__WEBPACK_IMPORTED_MODULE_4__);
|
|
4809
|
-
/* harmony import */ var https__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
|
|
4850
|
+
/* harmony import */ var https__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(70);
|
|
4810
4851
|
/* harmony import */ var https__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(https__WEBPACK_IMPORTED_MODULE_5__);
|
|
4811
|
-
/* harmony import */ var url__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(
|
|
4852
|
+
/* harmony import */ var url__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(71);
|
|
4812
4853
|
/* harmony import */ var url__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(url__WEBPACK_IMPORTED_MODULE_6__);
|
|
4813
|
-
/* harmony import */ var ndarray_pixels__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(
|
|
4854
|
+
/* harmony import */ var ndarray_pixels__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(72);
|
|
4814
4855
|
/* harmony import */ var ndarray_pixels__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(ndarray_pixels__WEBPACK_IMPORTED_MODULE_7__);
|
|
4815
4856
|
|
|
4816
4857
|
|
|
@@ -5081,59 +5122,59 @@ var inputStreamFactory = {
|
|
|
5081
5122
|
}
|
|
5082
5123
|
};
|
|
5083
5124
|
/* harmony default export */ __webpack_exports__["a"] = (inputStreamFactory);
|
|
5084
|
-
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(
|
|
5125
|
+
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(183).Buffer))
|
|
5085
5126
|
|
|
5086
5127
|
/***/ }),
|
|
5087
|
-
/*
|
|
5128
|
+
/* 68 */
|
|
5088
5129
|
/***/ (function(module, exports) {
|
|
5089
5130
|
|
|
5090
5131
|
module.exports = require("fs");
|
|
5091
5132
|
|
|
5092
5133
|
/***/ }),
|
|
5093
|
-
/*
|
|
5134
|
+
/* 69 */
|
|
5094
5135
|
/***/ (function(module, exports) {
|
|
5095
5136
|
|
|
5096
5137
|
module.exports = require("http");
|
|
5097
5138
|
|
|
5098
5139
|
/***/ }),
|
|
5099
|
-
/*
|
|
5140
|
+
/* 70 */
|
|
5100
5141
|
/***/ (function(module, exports) {
|
|
5101
5142
|
|
|
5102
5143
|
module.exports = require("https");
|
|
5103
5144
|
|
|
5104
5145
|
/***/ }),
|
|
5105
|
-
/*
|
|
5146
|
+
/* 71 */
|
|
5106
5147
|
/***/ (function(module, exports) {
|
|
5107
5148
|
|
|
5108
5149
|
module.exports = require("url");
|
|
5109
5150
|
|
|
5110
5151
|
/***/ }),
|
|
5111
|
-
/*
|
|
5152
|
+
/* 72 */
|
|
5112
5153
|
/***/ (function(module, exports) {
|
|
5113
5154
|
|
|
5114
5155
|
module.exports = require("ndarray-pixels");
|
|
5115
5156
|
|
|
5116
5157
|
/***/ }),
|
|
5117
|
-
/* 72 */,
|
|
5118
5158
|
/* 73 */,
|
|
5119
5159
|
/* 74 */,
|
|
5120
5160
|
/* 75 */,
|
|
5121
5161
|
/* 76 */,
|
|
5122
5162
|
/* 77 */,
|
|
5123
|
-
/* 78
|
|
5163
|
+
/* 78 */,
|
|
5164
|
+
/* 79 */
|
|
5124
5165
|
/***/ (function(module, exports, __webpack_require__) {
|
|
5125
5166
|
|
|
5126
|
-
module.exports = __webpack_require__(
|
|
5167
|
+
module.exports = __webpack_require__(187);
|
|
5127
5168
|
|
|
5128
5169
|
|
|
5129
5170
|
/***/ }),
|
|
5130
|
-
/*
|
|
5171
|
+
/* 80 */
|
|
5131
5172
|
/***/ (function(module, exports, __webpack_require__) {
|
|
5132
5173
|
|
|
5133
|
-
var Stack = __webpack_require__(
|
|
5174
|
+
var Stack = __webpack_require__(81),
|
|
5134
5175
|
assignMergeValue = __webpack_require__(43),
|
|
5135
|
-
baseFor = __webpack_require__(
|
|
5136
|
-
baseMergeDeep = __webpack_require__(
|
|
5176
|
+
baseFor = __webpack_require__(111),
|
|
5177
|
+
baseMergeDeep = __webpack_require__(113),
|
|
5137
5178
|
isObject = __webpack_require__(12),
|
|
5138
5179
|
keysIn = __webpack_require__(51),
|
|
5139
5180
|
safeGet = __webpack_require__(49);
|
|
@@ -5175,15 +5216,15 @@ module.exports = baseMerge;
|
|
|
5175
5216
|
|
|
5176
5217
|
|
|
5177
5218
|
/***/ }),
|
|
5178
|
-
/*
|
|
5219
|
+
/* 81 */
|
|
5179
5220
|
/***/ (function(module, exports, __webpack_require__) {
|
|
5180
5221
|
|
|
5181
5222
|
var ListCache = __webpack_require__(19),
|
|
5182
|
-
stackClear = __webpack_require__(
|
|
5183
|
-
stackDelete = __webpack_require__(
|
|
5184
|
-
stackGet = __webpack_require__(
|
|
5185
|
-
stackHas = __webpack_require__(
|
|
5186
|
-
stackSet = __webpack_require__(
|
|
5223
|
+
stackClear = __webpack_require__(87),
|
|
5224
|
+
stackDelete = __webpack_require__(88),
|
|
5225
|
+
stackGet = __webpack_require__(89),
|
|
5226
|
+
stackHas = __webpack_require__(90),
|
|
5227
|
+
stackSet = __webpack_require__(91);
|
|
5187
5228
|
|
|
5188
5229
|
/**
|
|
5189
5230
|
* Creates a stack cache object to store key-value pairs.
|
|
@@ -5208,7 +5249,7 @@ module.exports = Stack;
|
|
|
5208
5249
|
|
|
5209
5250
|
|
|
5210
5251
|
/***/ }),
|
|
5211
|
-
/*
|
|
5252
|
+
/* 82 */
|
|
5212
5253
|
/***/ (function(module, exports) {
|
|
5213
5254
|
|
|
5214
5255
|
/**
|
|
@@ -5227,7 +5268,7 @@ module.exports = listCacheClear;
|
|
|
5227
5268
|
|
|
5228
5269
|
|
|
5229
5270
|
/***/ }),
|
|
5230
|
-
/*
|
|
5271
|
+
/* 83 */
|
|
5231
5272
|
/***/ (function(module, exports, __webpack_require__) {
|
|
5232
5273
|
|
|
5233
5274
|
var assocIndexOf = __webpack_require__(20);
|
|
@@ -5268,7 +5309,7 @@ module.exports = listCacheDelete;
|
|
|
5268
5309
|
|
|
5269
5310
|
|
|
5270
5311
|
/***/ }),
|
|
5271
|
-
/*
|
|
5312
|
+
/* 84 */
|
|
5272
5313
|
/***/ (function(module, exports, __webpack_require__) {
|
|
5273
5314
|
|
|
5274
5315
|
var assocIndexOf = __webpack_require__(20);
|
|
@@ -5293,7 +5334,7 @@ module.exports = listCacheGet;
|
|
|
5293
5334
|
|
|
5294
5335
|
|
|
5295
5336
|
/***/ }),
|
|
5296
|
-
/*
|
|
5337
|
+
/* 85 */
|
|
5297
5338
|
/***/ (function(module, exports, __webpack_require__) {
|
|
5298
5339
|
|
|
5299
5340
|
var assocIndexOf = __webpack_require__(20);
|
|
@@ -5315,7 +5356,7 @@ module.exports = listCacheHas;
|
|
|
5315
5356
|
|
|
5316
5357
|
|
|
5317
5358
|
/***/ }),
|
|
5318
|
-
/*
|
|
5359
|
+
/* 86 */
|
|
5319
5360
|
/***/ (function(module, exports, __webpack_require__) {
|
|
5320
5361
|
|
|
5321
5362
|
var assocIndexOf = __webpack_require__(20);
|
|
@@ -5347,7 +5388,7 @@ module.exports = listCacheSet;
|
|
|
5347
5388
|
|
|
5348
5389
|
|
|
5349
5390
|
/***/ }),
|
|
5350
|
-
/*
|
|
5391
|
+
/* 87 */
|
|
5351
5392
|
/***/ (function(module, exports, __webpack_require__) {
|
|
5352
5393
|
|
|
5353
5394
|
var ListCache = __webpack_require__(19);
|
|
@@ -5368,7 +5409,7 @@ module.exports = stackClear;
|
|
|
5368
5409
|
|
|
5369
5410
|
|
|
5370
5411
|
/***/ }),
|
|
5371
|
-
/*
|
|
5412
|
+
/* 88 */
|
|
5372
5413
|
/***/ (function(module, exports) {
|
|
5373
5414
|
|
|
5374
5415
|
/**
|
|
@@ -5392,7 +5433,7 @@ module.exports = stackDelete;
|
|
|
5392
5433
|
|
|
5393
5434
|
|
|
5394
5435
|
/***/ }),
|
|
5395
|
-
/*
|
|
5436
|
+
/* 89 */
|
|
5396
5437
|
/***/ (function(module, exports) {
|
|
5397
5438
|
|
|
5398
5439
|
/**
|
|
@@ -5412,7 +5453,7 @@ module.exports = stackGet;
|
|
|
5412
5453
|
|
|
5413
5454
|
|
|
5414
5455
|
/***/ }),
|
|
5415
|
-
/*
|
|
5456
|
+
/* 90 */
|
|
5416
5457
|
/***/ (function(module, exports) {
|
|
5417
5458
|
|
|
5418
5459
|
/**
|
|
@@ -5432,7 +5473,7 @@ module.exports = stackHas;
|
|
|
5432
5473
|
|
|
5433
5474
|
|
|
5434
5475
|
/***/ }),
|
|
5435
|
-
/*
|
|
5476
|
+
/* 91 */
|
|
5436
5477
|
/***/ (function(module, exports, __webpack_require__) {
|
|
5437
5478
|
|
|
5438
5479
|
var ListCache = __webpack_require__(19),
|
|
@@ -5472,13 +5513,13 @@ module.exports = stackSet;
|
|
|
5472
5513
|
|
|
5473
5514
|
|
|
5474
5515
|
/***/ }),
|
|
5475
|
-
/*
|
|
5516
|
+
/* 92 */
|
|
5476
5517
|
/***/ (function(module, exports, __webpack_require__) {
|
|
5477
5518
|
|
|
5478
5519
|
var isFunction = __webpack_require__(31),
|
|
5479
|
-
isMasked = __webpack_require__(
|
|
5520
|
+
isMasked = __webpack_require__(95),
|
|
5480
5521
|
isObject = __webpack_require__(12),
|
|
5481
|
-
toSource = __webpack_require__(
|
|
5522
|
+
toSource = __webpack_require__(97);
|
|
5482
5523
|
|
|
5483
5524
|
/**
|
|
5484
5525
|
* Used to match `RegExp`
|
|
@@ -5525,7 +5566,7 @@ module.exports = baseIsNative;
|
|
|
5525
5566
|
|
|
5526
5567
|
|
|
5527
5568
|
/***/ }),
|
|
5528
|
-
/*
|
|
5569
|
+
/* 93 */
|
|
5529
5570
|
/***/ (function(module, exports, __webpack_require__) {
|
|
5530
5571
|
|
|
5531
5572
|
var Symbol = __webpack_require__(22);
|
|
@@ -5577,7 +5618,7 @@ module.exports = getRawTag;
|
|
|
5577
5618
|
|
|
5578
5619
|
|
|
5579
5620
|
/***/ }),
|
|
5580
|
-
/*
|
|
5621
|
+
/* 94 */
|
|
5581
5622
|
/***/ (function(module, exports) {
|
|
5582
5623
|
|
|
5583
5624
|
/** Used for built-in method references. */
|
|
@@ -5605,10 +5646,10 @@ module.exports = objectToString;
|
|
|
5605
5646
|
|
|
5606
5647
|
|
|
5607
5648
|
/***/ }),
|
|
5608
|
-
/*
|
|
5649
|
+
/* 95 */
|
|
5609
5650
|
/***/ (function(module, exports, __webpack_require__) {
|
|
5610
5651
|
|
|
5611
|
-
var coreJsData = __webpack_require__(
|
|
5652
|
+
var coreJsData = __webpack_require__(96);
|
|
5612
5653
|
|
|
5613
5654
|
/** Used to detect methods masquerading as native. */
|
|
5614
5655
|
var maskSrcKey = (function() {
|
|
@@ -5631,7 +5672,7 @@ module.exports = isMasked;
|
|
|
5631
5672
|
|
|
5632
5673
|
|
|
5633
5674
|
/***/ }),
|
|
5634
|
-
/*
|
|
5675
|
+
/* 96 */
|
|
5635
5676
|
/***/ (function(module, exports, __webpack_require__) {
|
|
5636
5677
|
|
|
5637
5678
|
var root = __webpack_require__(16);
|
|
@@ -5643,7 +5684,7 @@ module.exports = coreJsData;
|
|
|
5643
5684
|
|
|
5644
5685
|
|
|
5645
5686
|
/***/ }),
|
|
5646
|
-
/*
|
|
5687
|
+
/* 97 */
|
|
5647
5688
|
/***/ (function(module, exports) {
|
|
5648
5689
|
|
|
5649
5690
|
/** Used for built-in method references. */
|
|
@@ -5675,7 +5716,7 @@ module.exports = toSource;
|
|
|
5675
5716
|
|
|
5676
5717
|
|
|
5677
5718
|
/***/ }),
|
|
5678
|
-
/*
|
|
5719
|
+
/* 98 */
|
|
5679
5720
|
/***/ (function(module, exports) {
|
|
5680
5721
|
|
|
5681
5722
|
/**
|
|
@@ -5694,10 +5735,10 @@ module.exports = getValue;
|
|
|
5694
5735
|
|
|
5695
5736
|
|
|
5696
5737
|
/***/ }),
|
|
5697
|
-
/*
|
|
5738
|
+
/* 99 */
|
|
5698
5739
|
/***/ (function(module, exports, __webpack_require__) {
|
|
5699
5740
|
|
|
5700
|
-
var Hash = __webpack_require__(
|
|
5741
|
+
var Hash = __webpack_require__(100),
|
|
5701
5742
|
ListCache = __webpack_require__(19),
|
|
5702
5743
|
Map = __webpack_require__(39);
|
|
5703
5744
|
|
|
@@ -5721,14 +5762,14 @@ module.exports = mapCacheClear;
|
|
|
5721
5762
|
|
|
5722
5763
|
|
|
5723
5764
|
/***/ }),
|
|
5724
|
-
/*
|
|
5765
|
+
/* 100 */
|
|
5725
5766
|
/***/ (function(module, exports, __webpack_require__) {
|
|
5726
5767
|
|
|
5727
|
-
var hashClear = __webpack_require__(
|
|
5728
|
-
hashDelete = __webpack_require__(
|
|
5729
|
-
hashGet = __webpack_require__(
|
|
5730
|
-
hashHas = __webpack_require__(
|
|
5731
|
-
hashSet = __webpack_require__(
|
|
5768
|
+
var hashClear = __webpack_require__(101),
|
|
5769
|
+
hashDelete = __webpack_require__(102),
|
|
5770
|
+
hashGet = __webpack_require__(103),
|
|
5771
|
+
hashHas = __webpack_require__(104),
|
|
5772
|
+
hashSet = __webpack_require__(105);
|
|
5732
5773
|
|
|
5733
5774
|
/**
|
|
5734
5775
|
* Creates a hash object.
|
|
@@ -5759,7 +5800,7 @@ module.exports = Hash;
|
|
|
5759
5800
|
|
|
5760
5801
|
|
|
5761
5802
|
/***/ }),
|
|
5762
|
-
/*
|
|
5803
|
+
/* 101 */
|
|
5763
5804
|
/***/ (function(module, exports, __webpack_require__) {
|
|
5764
5805
|
|
|
5765
5806
|
var nativeCreate = __webpack_require__(23);
|
|
@@ -5780,7 +5821,7 @@ module.exports = hashClear;
|
|
|
5780
5821
|
|
|
5781
5822
|
|
|
5782
5823
|
/***/ }),
|
|
5783
|
-
/*
|
|
5824
|
+
/* 102 */
|
|
5784
5825
|
/***/ (function(module, exports) {
|
|
5785
5826
|
|
|
5786
5827
|
/**
|
|
@@ -5803,7 +5844,7 @@ module.exports = hashDelete;
|
|
|
5803
5844
|
|
|
5804
5845
|
|
|
5805
5846
|
/***/ }),
|
|
5806
|
-
/*
|
|
5847
|
+
/* 103 */
|
|
5807
5848
|
/***/ (function(module, exports, __webpack_require__) {
|
|
5808
5849
|
|
|
5809
5850
|
var nativeCreate = __webpack_require__(23);
|
|
@@ -5839,7 +5880,7 @@ module.exports = hashGet;
|
|
|
5839
5880
|
|
|
5840
5881
|
|
|
5841
5882
|
/***/ }),
|
|
5842
|
-
/*
|
|
5883
|
+
/* 104 */
|
|
5843
5884
|
/***/ (function(module, exports, __webpack_require__) {
|
|
5844
5885
|
|
|
5845
5886
|
var nativeCreate = __webpack_require__(23);
|
|
@@ -5868,7 +5909,7 @@ module.exports = hashHas;
|
|
|
5868
5909
|
|
|
5869
5910
|
|
|
5870
5911
|
/***/ }),
|
|
5871
|
-
/*
|
|
5912
|
+
/* 105 */
|
|
5872
5913
|
/***/ (function(module, exports, __webpack_require__) {
|
|
5873
5914
|
|
|
5874
5915
|
var nativeCreate = __webpack_require__(23);
|
|
@@ -5897,7 +5938,7 @@ module.exports = hashSet;
|
|
|
5897
5938
|
|
|
5898
5939
|
|
|
5899
5940
|
/***/ }),
|
|
5900
|
-
/*
|
|
5941
|
+
/* 106 */
|
|
5901
5942
|
/***/ (function(module, exports, __webpack_require__) {
|
|
5902
5943
|
|
|
5903
5944
|
var getMapData = __webpack_require__(24);
|
|
@@ -5921,7 +5962,7 @@ module.exports = mapCacheDelete;
|
|
|
5921
5962
|
|
|
5922
5963
|
|
|
5923
5964
|
/***/ }),
|
|
5924
|
-
/*
|
|
5965
|
+
/* 107 */
|
|
5925
5966
|
/***/ (function(module, exports) {
|
|
5926
5967
|
|
|
5927
5968
|
/**
|
|
@@ -5942,7 +5983,7 @@ module.exports = isKeyable;
|
|
|
5942
5983
|
|
|
5943
5984
|
|
|
5944
5985
|
/***/ }),
|
|
5945
|
-
/*
|
|
5986
|
+
/* 108 */
|
|
5946
5987
|
/***/ (function(module, exports, __webpack_require__) {
|
|
5947
5988
|
|
|
5948
5989
|
var getMapData = __webpack_require__(24);
|
|
@@ -5964,7 +6005,7 @@ module.exports = mapCacheGet;
|
|
|
5964
6005
|
|
|
5965
6006
|
|
|
5966
6007
|
/***/ }),
|
|
5967
|
-
/*
|
|
6008
|
+
/* 109 */
|
|
5968
6009
|
/***/ (function(module, exports, __webpack_require__) {
|
|
5969
6010
|
|
|
5970
6011
|
var getMapData = __webpack_require__(24);
|
|
@@ -5986,7 +6027,7 @@ module.exports = mapCacheHas;
|
|
|
5986
6027
|
|
|
5987
6028
|
|
|
5988
6029
|
/***/ }),
|
|
5989
|
-
/*
|
|
6030
|
+
/* 110 */
|
|
5990
6031
|
/***/ (function(module, exports, __webpack_require__) {
|
|
5991
6032
|
|
|
5992
6033
|
var getMapData = __webpack_require__(24);
|
|
@@ -6014,10 +6055,10 @@ module.exports = mapCacheSet;
|
|
|
6014
6055
|
|
|
6015
6056
|
|
|
6016
6057
|
/***/ }),
|
|
6017
|
-
/*
|
|
6058
|
+
/* 111 */
|
|
6018
6059
|
/***/ (function(module, exports, __webpack_require__) {
|
|
6019
6060
|
|
|
6020
|
-
var createBaseFor = __webpack_require__(
|
|
6061
|
+
var createBaseFor = __webpack_require__(112);
|
|
6021
6062
|
|
|
6022
6063
|
/**
|
|
6023
6064
|
* The base implementation of `baseForOwn` which iterates over `object`
|
|
@@ -6036,7 +6077,7 @@ module.exports = baseFor;
|
|
|
6036
6077
|
|
|
6037
6078
|
|
|
6038
6079
|
/***/ }),
|
|
6039
|
-
/*
|
|
6080
|
+
/* 112 */
|
|
6040
6081
|
/***/ (function(module, exports) {
|
|
6041
6082
|
|
|
6042
6083
|
/**
|
|
@@ -6067,24 +6108,24 @@ module.exports = createBaseFor;
|
|
|
6067
6108
|
|
|
6068
6109
|
|
|
6069
6110
|
/***/ }),
|
|
6070
|
-
/*
|
|
6111
|
+
/* 113 */
|
|
6071
6112
|
/***/ (function(module, exports, __webpack_require__) {
|
|
6072
6113
|
|
|
6073
6114
|
var assignMergeValue = __webpack_require__(43),
|
|
6074
|
-
cloneBuffer = __webpack_require__(
|
|
6075
|
-
cloneTypedArray = __webpack_require__(
|
|
6076
|
-
copyArray = __webpack_require__(
|
|
6077
|
-
initCloneObject = __webpack_require__(
|
|
6115
|
+
cloneBuffer = __webpack_require__(114),
|
|
6116
|
+
cloneTypedArray = __webpack_require__(115),
|
|
6117
|
+
copyArray = __webpack_require__(118),
|
|
6118
|
+
initCloneObject = __webpack_require__(119),
|
|
6078
6119
|
isArguments = __webpack_require__(25),
|
|
6079
6120
|
isArray = __webpack_require__(14),
|
|
6080
|
-
isArrayLikeObject = __webpack_require__(
|
|
6121
|
+
isArrayLikeObject = __webpack_require__(123),
|
|
6081
6122
|
isBuffer = __webpack_require__(47),
|
|
6082
6123
|
isFunction = __webpack_require__(31),
|
|
6083
6124
|
isObject = __webpack_require__(12),
|
|
6084
|
-
isPlainObject = __webpack_require__(
|
|
6125
|
+
isPlainObject = __webpack_require__(125),
|
|
6085
6126
|
isTypedArray = __webpack_require__(48),
|
|
6086
6127
|
safeGet = __webpack_require__(49),
|
|
6087
|
-
toPlainObject = __webpack_require__(
|
|
6128
|
+
toPlainObject = __webpack_require__(129);
|
|
6088
6129
|
|
|
6089
6130
|
/**
|
|
6090
6131
|
* A specialized version of `baseMerge` for arrays and objects which performs
|
|
@@ -6167,7 +6208,7 @@ module.exports = baseMergeDeep;
|
|
|
6167
6208
|
|
|
6168
6209
|
|
|
6169
6210
|
/***/ }),
|
|
6170
|
-
/*
|
|
6211
|
+
/* 114 */
|
|
6171
6212
|
/***/ (function(module, exports, __webpack_require__) {
|
|
6172
6213
|
|
|
6173
6214
|
/* WEBPACK VAR INJECTION */(function(module) {var root = __webpack_require__(16);
|
|
@@ -6209,10 +6250,10 @@ module.exports = cloneBuffer;
|
|
|
6209
6250
|
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(33)(module)))
|
|
6210
6251
|
|
|
6211
6252
|
/***/ }),
|
|
6212
|
-
/*
|
|
6253
|
+
/* 115 */
|
|
6213
6254
|
/***/ (function(module, exports, __webpack_require__) {
|
|
6214
6255
|
|
|
6215
|
-
var cloneArrayBuffer = __webpack_require__(
|
|
6256
|
+
var cloneArrayBuffer = __webpack_require__(116);
|
|
6216
6257
|
|
|
6217
6258
|
/**
|
|
6218
6259
|
* Creates a clone of `typedArray`.
|
|
@@ -6231,10 +6272,10 @@ module.exports = cloneTypedArray;
|
|
|
6231
6272
|
|
|
6232
6273
|
|
|
6233
6274
|
/***/ }),
|
|
6234
|
-
/*
|
|
6275
|
+
/* 116 */
|
|
6235
6276
|
/***/ (function(module, exports, __webpack_require__) {
|
|
6236
6277
|
|
|
6237
|
-
var Uint8Array = __webpack_require__(
|
|
6278
|
+
var Uint8Array = __webpack_require__(117);
|
|
6238
6279
|
|
|
6239
6280
|
/**
|
|
6240
6281
|
* Creates a clone of `arrayBuffer`.
|
|
@@ -6253,7 +6294,7 @@ module.exports = cloneArrayBuffer;
|
|
|
6253
6294
|
|
|
6254
6295
|
|
|
6255
6296
|
/***/ }),
|
|
6256
|
-
/*
|
|
6297
|
+
/* 117 */
|
|
6257
6298
|
/***/ (function(module, exports, __webpack_require__) {
|
|
6258
6299
|
|
|
6259
6300
|
var root = __webpack_require__(16);
|
|
@@ -6265,7 +6306,7 @@ module.exports = Uint8Array;
|
|
|
6265
6306
|
|
|
6266
6307
|
|
|
6267
6308
|
/***/ }),
|
|
6268
|
-
/*
|
|
6309
|
+
/* 118 */
|
|
6269
6310
|
/***/ (function(module, exports) {
|
|
6270
6311
|
|
|
6271
6312
|
/**
|
|
@@ -6291,10 +6332,10 @@ module.exports = copyArray;
|
|
|
6291
6332
|
|
|
6292
6333
|
|
|
6293
6334
|
/***/ }),
|
|
6294
|
-
/*
|
|
6335
|
+
/* 119 */
|
|
6295
6336
|
/***/ (function(module, exports, __webpack_require__) {
|
|
6296
6337
|
|
|
6297
|
-
var baseCreate = __webpack_require__(
|
|
6338
|
+
var baseCreate = __webpack_require__(120),
|
|
6298
6339
|
getPrototype = __webpack_require__(45),
|
|
6299
6340
|
isPrototype = __webpack_require__(46);
|
|
6300
6341
|
|
|
@@ -6315,7 +6356,7 @@ module.exports = initCloneObject;
|
|
|
6315
6356
|
|
|
6316
6357
|
|
|
6317
6358
|
/***/ }),
|
|
6318
|
-
/*
|
|
6359
|
+
/* 120 */
|
|
6319
6360
|
/***/ (function(module, exports, __webpack_require__) {
|
|
6320
6361
|
|
|
6321
6362
|
var isObject = __webpack_require__(12);
|
|
@@ -6351,7 +6392,7 @@ module.exports = baseCreate;
|
|
|
6351
6392
|
|
|
6352
6393
|
|
|
6353
6394
|
/***/ }),
|
|
6354
|
-
/*
|
|
6395
|
+
/* 121 */
|
|
6355
6396
|
/***/ (function(module, exports) {
|
|
6356
6397
|
|
|
6357
6398
|
/**
|
|
@@ -6372,7 +6413,7 @@ module.exports = overArg;
|
|
|
6372
6413
|
|
|
6373
6414
|
|
|
6374
6415
|
/***/ }),
|
|
6375
|
-
/*
|
|
6416
|
+
/* 122 */
|
|
6376
6417
|
/***/ (function(module, exports, __webpack_require__) {
|
|
6377
6418
|
|
|
6378
6419
|
var baseGetTag = __webpack_require__(18),
|
|
@@ -6396,7 +6437,7 @@ module.exports = baseIsArguments;
|
|
|
6396
6437
|
|
|
6397
6438
|
|
|
6398
6439
|
/***/ }),
|
|
6399
|
-
/*
|
|
6440
|
+
/* 123 */
|
|
6400
6441
|
/***/ (function(module, exports, __webpack_require__) {
|
|
6401
6442
|
|
|
6402
6443
|
var isArrayLike = __webpack_require__(34),
|
|
@@ -6435,7 +6476,7 @@ module.exports = isArrayLikeObject;
|
|
|
6435
6476
|
|
|
6436
6477
|
|
|
6437
6478
|
/***/ }),
|
|
6438
|
-
/*
|
|
6479
|
+
/* 124 */
|
|
6439
6480
|
/***/ (function(module, exports) {
|
|
6440
6481
|
|
|
6441
6482
|
/**
|
|
@@ -6459,7 +6500,7 @@ module.exports = stubFalse;
|
|
|
6459
6500
|
|
|
6460
6501
|
|
|
6461
6502
|
/***/ }),
|
|
6462
|
-
/*
|
|
6503
|
+
/* 125 */
|
|
6463
6504
|
/***/ (function(module, exports, __webpack_require__) {
|
|
6464
6505
|
|
|
6465
6506
|
var baseGetTag = __webpack_require__(18),
|
|
@@ -6527,7 +6568,7 @@ module.exports = isPlainObject;
|
|
|
6527
6568
|
|
|
6528
6569
|
|
|
6529
6570
|
/***/ }),
|
|
6530
|
-
/*
|
|
6571
|
+
/* 126 */
|
|
6531
6572
|
/***/ (function(module, exports, __webpack_require__) {
|
|
6532
6573
|
|
|
6533
6574
|
var baseGetTag = __webpack_require__(18),
|
|
@@ -6593,7 +6634,7 @@ module.exports = baseIsTypedArray;
|
|
|
6593
6634
|
|
|
6594
6635
|
|
|
6595
6636
|
/***/ }),
|
|
6596
|
-
/*
|
|
6637
|
+
/* 127 */
|
|
6597
6638
|
/***/ (function(module, exports) {
|
|
6598
6639
|
|
|
6599
6640
|
/**
|
|
@@ -6613,7 +6654,7 @@ module.exports = baseUnary;
|
|
|
6613
6654
|
|
|
6614
6655
|
|
|
6615
6656
|
/***/ }),
|
|
6616
|
-
/*
|
|
6657
|
+
/* 128 */
|
|
6617
6658
|
/***/ (function(module, exports, __webpack_require__) {
|
|
6618
6659
|
|
|
6619
6660
|
/* WEBPACK VAR INJECTION */(function(module) {var freeGlobal = __webpack_require__(40);
|
|
@@ -6650,10 +6691,10 @@ module.exports = nodeUtil;
|
|
|
6650
6691
|
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(33)(module)))
|
|
6651
6692
|
|
|
6652
6693
|
/***/ }),
|
|
6653
|
-
/*
|
|
6694
|
+
/* 129 */
|
|
6654
6695
|
/***/ (function(module, exports, __webpack_require__) {
|
|
6655
6696
|
|
|
6656
|
-
var copyObject = __webpack_require__(
|
|
6697
|
+
var copyObject = __webpack_require__(130),
|
|
6657
6698
|
keysIn = __webpack_require__(51);
|
|
6658
6699
|
|
|
6659
6700
|
/**
|
|
@@ -6688,7 +6729,7 @@ module.exports = toPlainObject;
|
|
|
6688
6729
|
|
|
6689
6730
|
|
|
6690
6731
|
/***/ }),
|
|
6691
|
-
/*
|
|
6732
|
+
/* 130 */
|
|
6692
6733
|
/***/ (function(module, exports, __webpack_require__) {
|
|
6693
6734
|
|
|
6694
6735
|
var assignValue = __webpack_require__(50),
|
|
@@ -6734,10 +6775,10 @@ module.exports = copyObject;
|
|
|
6734
6775
|
|
|
6735
6776
|
|
|
6736
6777
|
/***/ }),
|
|
6737
|
-
/*
|
|
6778
|
+
/* 131 */
|
|
6738
6779
|
/***/ (function(module, exports, __webpack_require__) {
|
|
6739
6780
|
|
|
6740
|
-
var baseTimes = __webpack_require__(
|
|
6781
|
+
var baseTimes = __webpack_require__(132),
|
|
6741
6782
|
isArguments = __webpack_require__(25),
|
|
6742
6783
|
isArray = __webpack_require__(14),
|
|
6743
6784
|
isBuffer = __webpack_require__(47),
|
|
@@ -6789,7 +6830,7 @@ module.exports = arrayLikeKeys;
|
|
|
6789
6830
|
|
|
6790
6831
|
|
|
6791
6832
|
/***/ }),
|
|
6792
|
-
/*
|
|
6833
|
+
/* 132 */
|
|
6793
6834
|
/***/ (function(module, exports) {
|
|
6794
6835
|
|
|
6795
6836
|
/**
|
|
@@ -6815,12 +6856,12 @@ module.exports = baseTimes;
|
|
|
6815
6856
|
|
|
6816
6857
|
|
|
6817
6858
|
/***/ }),
|
|
6818
|
-
/*
|
|
6859
|
+
/* 133 */
|
|
6819
6860
|
/***/ (function(module, exports, __webpack_require__) {
|
|
6820
6861
|
|
|
6821
6862
|
var isObject = __webpack_require__(12),
|
|
6822
6863
|
isPrototype = __webpack_require__(46),
|
|
6823
|
-
nativeKeysIn = __webpack_require__(
|
|
6864
|
+
nativeKeysIn = __webpack_require__(134);
|
|
6824
6865
|
|
|
6825
6866
|
/** Used for built-in method references. */
|
|
6826
6867
|
var objectProto = Object.prototype;
|
|
@@ -6854,7 +6895,7 @@ module.exports = baseKeysIn;
|
|
|
6854
6895
|
|
|
6855
6896
|
|
|
6856
6897
|
/***/ }),
|
|
6857
|
-
/*
|
|
6898
|
+
/* 134 */
|
|
6858
6899
|
/***/ (function(module, exports) {
|
|
6859
6900
|
|
|
6860
6901
|
/**
|
|
@@ -6880,11 +6921,11 @@ module.exports = nativeKeysIn;
|
|
|
6880
6921
|
|
|
6881
6922
|
|
|
6882
6923
|
/***/ }),
|
|
6883
|
-
/*
|
|
6924
|
+
/* 135 */
|
|
6884
6925
|
/***/ (function(module, exports, __webpack_require__) {
|
|
6885
6926
|
|
|
6886
|
-
var baseRest = __webpack_require__(
|
|
6887
|
-
isIterateeCall = __webpack_require__(
|
|
6927
|
+
var baseRest = __webpack_require__(136),
|
|
6928
|
+
isIterateeCall = __webpack_require__(141);
|
|
6888
6929
|
|
|
6889
6930
|
/**
|
|
6890
6931
|
* Creates a function like `_.assign`.
|
|
@@ -6923,7 +6964,7 @@ module.exports = createAssigner;
|
|
|
6923
6964
|
|
|
6924
6965
|
|
|
6925
6966
|
/***/ }),
|
|
6926
|
-
/*
|
|
6967
|
+
/* 136 */
|
|
6927
6968
|
/***/ (function(module, exports, __webpack_require__) {
|
|
6928
6969
|
|
|
6929
6970
|
var identity = __webpack_require__(52),
|
|
@@ -6946,7 +6987,7 @@ module.exports = baseRest;
|
|
|
6946
6987
|
|
|
6947
6988
|
|
|
6948
6989
|
/***/ }),
|
|
6949
|
-
/*
|
|
6990
|
+
/* 137 */
|
|
6950
6991
|
/***/ (function(module, exports) {
|
|
6951
6992
|
|
|
6952
6993
|
/**
|
|
@@ -6973,10 +7014,10 @@ module.exports = apply;
|
|
|
6973
7014
|
|
|
6974
7015
|
|
|
6975
7016
|
/***/ }),
|
|
6976
|
-
/*
|
|
7017
|
+
/* 138 */
|
|
6977
7018
|
/***/ (function(module, exports, __webpack_require__) {
|
|
6978
7019
|
|
|
6979
|
-
var constant = __webpack_require__(
|
|
7020
|
+
var constant = __webpack_require__(139),
|
|
6980
7021
|
defineProperty = __webpack_require__(44),
|
|
6981
7022
|
identity = __webpack_require__(52);
|
|
6982
7023
|
|
|
@@ -7001,7 +7042,7 @@ module.exports = baseSetToString;
|
|
|
7001
7042
|
|
|
7002
7043
|
|
|
7003
7044
|
/***/ }),
|
|
7004
|
-
/*
|
|
7045
|
+
/* 139 */
|
|
7005
7046
|
/***/ (function(module, exports) {
|
|
7006
7047
|
|
|
7007
7048
|
/**
|
|
@@ -7033,7 +7074,7 @@ module.exports = constant;
|
|
|
7033
7074
|
|
|
7034
7075
|
|
|
7035
7076
|
/***/ }),
|
|
7036
|
-
/*
|
|
7077
|
+
/* 140 */
|
|
7037
7078
|
/***/ (function(module, exports) {
|
|
7038
7079
|
|
|
7039
7080
|
/** Used to detect hot functions by number of calls within a span of milliseconds. */
|
|
@@ -7076,7 +7117,7 @@ module.exports = shortOut;
|
|
|
7076
7117
|
|
|
7077
7118
|
|
|
7078
7119
|
/***/ }),
|
|
7079
|
-
/*
|
|
7120
|
+
/* 141 */
|
|
7080
7121
|
/***/ (function(module, exports, __webpack_require__) {
|
|
7081
7122
|
|
|
7082
7123
|
var eq = __webpack_require__(21),
|
|
@@ -7112,7 +7153,7 @@ module.exports = isIterateeCall;
|
|
|
7112
7153
|
|
|
7113
7154
|
|
|
7114
7155
|
/***/ }),
|
|
7115
|
-
/*
|
|
7156
|
+
/* 142 */
|
|
7116
7157
|
/***/ (function(module, exports) {
|
|
7117
7158
|
|
|
7118
7159
|
/*
|
|
@@ -7172,7 +7213,7 @@ if (typeof Object.assign !== 'function') {
|
|
|
7172
7213
|
}
|
|
7173
7214
|
|
|
7174
7215
|
/***/ }),
|
|
7175
|
-
/*
|
|
7216
|
+
/* 143 */
|
|
7176
7217
|
/***/ (function(module, exports) {
|
|
7177
7218
|
|
|
7178
7219
|
function _arrayWithHoles(r) {
|
|
@@ -7181,7 +7222,7 @@ function _arrayWithHoles(r) {
|
|
|
7181
7222
|
module.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
7182
7223
|
|
|
7183
7224
|
/***/ }),
|
|
7184
|
-
/*
|
|
7225
|
+
/* 144 */
|
|
7185
7226
|
/***/ (function(module, exports) {
|
|
7186
7227
|
|
|
7187
7228
|
function _iterableToArrayLimit(r, l) {
|
|
@@ -7214,7 +7255,7 @@ function _iterableToArrayLimit(r, l) {
|
|
|
7214
7255
|
module.exports = _iterableToArrayLimit, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
7215
7256
|
|
|
7216
7257
|
/***/ }),
|
|
7217
|
-
/*
|
|
7258
|
+
/* 145 */
|
|
7218
7259
|
/***/ (function(module, exports) {
|
|
7219
7260
|
|
|
7220
7261
|
function _nonIterableRest() {
|
|
@@ -7223,7 +7264,7 @@ function _nonIterableRest() {
|
|
|
7223
7264
|
module.exports = _nonIterableRest, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
7224
7265
|
|
|
7225
7266
|
/***/ }),
|
|
7226
|
-
/*
|
|
7267
|
+
/* 146 */
|
|
7227
7268
|
/***/ (function(module, exports, __webpack_require__) {
|
|
7228
7269
|
|
|
7229
7270
|
var _typeof = __webpack_require__(11)["default"];
|
|
@@ -7240,16 +7281,16 @@ function toPrimitive(t, r) {
|
|
|
7240
7281
|
module.exports = toPrimitive, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
7241
7282
|
|
|
7242
7283
|
/***/ }),
|
|
7243
|
-
/*
|
|
7284
|
+
/* 147 */
|
|
7244
7285
|
/***/ (function(module, exports, __webpack_require__) {
|
|
7245
7286
|
|
|
7246
7287
|
var OverloadYield = __webpack_require__(58);
|
|
7247
7288
|
var regenerator = __webpack_require__(59);
|
|
7248
|
-
var regeneratorAsync = __webpack_require__(
|
|
7289
|
+
var regeneratorAsync = __webpack_require__(148);
|
|
7249
7290
|
var regeneratorAsyncGen = __webpack_require__(61);
|
|
7250
7291
|
var regeneratorAsyncIterator = __webpack_require__(62);
|
|
7251
|
-
var regeneratorKeys = __webpack_require__(
|
|
7252
|
-
var regeneratorValues = __webpack_require__(
|
|
7292
|
+
var regeneratorKeys = __webpack_require__(149);
|
|
7293
|
+
var regeneratorValues = __webpack_require__(150);
|
|
7253
7294
|
function _regeneratorRuntime() {
|
|
7254
7295
|
"use strict";
|
|
7255
7296
|
|
|
@@ -7322,7 +7363,7 @@ function _regeneratorRuntime() {
|
|
|
7322
7363
|
module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
7323
7364
|
|
|
7324
7365
|
/***/ }),
|
|
7325
|
-
/*
|
|
7366
|
+
/* 148 */
|
|
7326
7367
|
/***/ (function(module, exports, __webpack_require__) {
|
|
7327
7368
|
|
|
7328
7369
|
var regeneratorAsyncGen = __webpack_require__(61);
|
|
@@ -7335,7 +7376,7 @@ function _regeneratorAsync(n, e, r, t, o) {
|
|
|
7335
7376
|
module.exports = _regeneratorAsync, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
7336
7377
|
|
|
7337
7378
|
/***/ }),
|
|
7338
|
-
/*
|
|
7379
|
+
/* 149 */
|
|
7339
7380
|
/***/ (function(module, exports) {
|
|
7340
7381
|
|
|
7341
7382
|
function _regeneratorKeys(e) {
|
|
@@ -7350,7 +7391,7 @@ function _regeneratorKeys(e) {
|
|
|
7350
7391
|
module.exports = _regeneratorKeys, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
7351
7392
|
|
|
7352
7393
|
/***/ }),
|
|
7353
|
-
/*
|
|
7394
|
+
/* 150 */
|
|
7354
7395
|
/***/ (function(module, exports, __webpack_require__) {
|
|
7355
7396
|
|
|
7356
7397
|
var _typeof = __webpack_require__(11)["default"];
|
|
@@ -7374,7 +7415,7 @@ function _regeneratorValues(e) {
|
|
|
7374
7415
|
module.exports = _regeneratorValues, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
7375
7416
|
|
|
7376
7417
|
/***/ }),
|
|
7377
|
-
/*
|
|
7418
|
+
/* 151 */
|
|
7378
7419
|
/***/ (function(module, exports) {
|
|
7379
7420
|
|
|
7380
7421
|
function _assertThisInitialized(e) {
|
|
@@ -7384,7 +7425,7 @@ function _assertThisInitialized(e) {
|
|
|
7384
7425
|
module.exports = _assertThisInitialized, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
7385
7426
|
|
|
7386
7427
|
/***/ }),
|
|
7387
|
-
/*
|
|
7428
|
+
/* 152 */
|
|
7388
7429
|
/***/ (function(module, exports, __webpack_require__) {
|
|
7389
7430
|
|
|
7390
7431
|
var getPrototypeOf = __webpack_require__(1);
|
|
@@ -7395,7 +7436,7 @@ function _superPropBase(t, o) {
|
|
|
7395
7436
|
module.exports = _superPropBase, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
7396
7437
|
|
|
7397
7438
|
/***/ }),
|
|
7398
|
-
/*
|
|
7439
|
+
/* 153 */
|
|
7399
7440
|
/***/ (function(module, exports, __webpack_require__) {
|
|
7400
7441
|
|
|
7401
7442
|
var arrayLikeToArray = __webpack_require__(56);
|
|
@@ -7405,7 +7446,7 @@ function _arrayWithoutHoles(r) {
|
|
|
7405
7446
|
module.exports = _arrayWithoutHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
7406
7447
|
|
|
7407
7448
|
/***/ }),
|
|
7408
|
-
/*
|
|
7449
|
+
/* 154 */
|
|
7409
7450
|
/***/ (function(module, exports) {
|
|
7410
7451
|
|
|
7411
7452
|
function _iterableToArray(r) {
|
|
@@ -7414,7 +7455,7 @@ function _iterableToArray(r) {
|
|
|
7414
7455
|
module.exports = _iterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
7415
7456
|
|
|
7416
7457
|
/***/ }),
|
|
7417
|
-
/*
|
|
7458
|
+
/* 155 */
|
|
7418
7459
|
/***/ (function(module, exports) {
|
|
7419
7460
|
|
|
7420
7461
|
function _nonIterableSpread() {
|
|
@@ -7423,11 +7464,26 @@ function _nonIterableSpread() {
|
|
|
7423
7464
|
module.exports = _nonIterableSpread, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
7424
7465
|
|
|
7425
7466
|
/***/ }),
|
|
7426
|
-
/*
|
|
7467
|
+
/* 156 */
|
|
7468
|
+
/***/ (function(module, exports) {
|
|
7469
|
+
|
|
7470
|
+
function _objectWithoutPropertiesLoose(r, e) {
|
|
7471
|
+
if (null == r) return {};
|
|
7472
|
+
var t = {};
|
|
7473
|
+
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
7474
|
+
if (-1 !== e.indexOf(n)) continue;
|
|
7475
|
+
t[n] = r[n];
|
|
7476
|
+
}
|
|
7477
|
+
return t;
|
|
7478
|
+
}
|
|
7479
|
+
module.exports = _objectWithoutPropertiesLoose, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
7480
|
+
|
|
7481
|
+
/***/ }),
|
|
7482
|
+
/* 157 */
|
|
7427
7483
|
/***/ (function(module, exports, __webpack_require__) {
|
|
7428
7484
|
|
|
7429
|
-
var basePickBy = __webpack_require__(
|
|
7430
|
-
hasIn = __webpack_require__(
|
|
7485
|
+
var basePickBy = __webpack_require__(158),
|
|
7486
|
+
hasIn = __webpack_require__(168);
|
|
7431
7487
|
|
|
7432
7488
|
/**
|
|
7433
7489
|
* The base implementation of `_.pick` without support for individual
|
|
@@ -7448,11 +7504,11 @@ module.exports = basePick;
|
|
|
7448
7504
|
|
|
7449
7505
|
|
|
7450
7506
|
/***/ }),
|
|
7451
|
-
/*
|
|
7507
|
+
/* 158 */
|
|
7452
7508
|
/***/ (function(module, exports, __webpack_require__) {
|
|
7453
7509
|
|
|
7454
|
-
var baseGet = __webpack_require__(
|
|
7455
|
-
baseSet = __webpack_require__(
|
|
7510
|
+
var baseGet = __webpack_require__(159),
|
|
7511
|
+
baseSet = __webpack_require__(167),
|
|
7456
7512
|
castPath = __webpack_require__(27);
|
|
7457
7513
|
|
|
7458
7514
|
/**
|
|
@@ -7484,7 +7540,7 @@ module.exports = basePickBy;
|
|
|
7484
7540
|
|
|
7485
7541
|
|
|
7486
7542
|
/***/ }),
|
|
7487
|
-
/*
|
|
7543
|
+
/* 159 */
|
|
7488
7544
|
/***/ (function(module, exports, __webpack_require__) {
|
|
7489
7545
|
|
|
7490
7546
|
var castPath = __webpack_require__(27),
|
|
@@ -7514,7 +7570,7 @@ module.exports = baseGet;
|
|
|
7514
7570
|
|
|
7515
7571
|
|
|
7516
7572
|
/***/ }),
|
|
7517
|
-
/*
|
|
7573
|
+
/* 160 */
|
|
7518
7574
|
/***/ (function(module, exports, __webpack_require__) {
|
|
7519
7575
|
|
|
7520
7576
|
var isArray = __webpack_require__(14),
|
|
@@ -7549,10 +7605,10 @@ module.exports = isKey;
|
|
|
7549
7605
|
|
|
7550
7606
|
|
|
7551
7607
|
/***/ }),
|
|
7552
|
-
/*
|
|
7608
|
+
/* 161 */
|
|
7553
7609
|
/***/ (function(module, exports, __webpack_require__) {
|
|
7554
7610
|
|
|
7555
|
-
var memoizeCapped = __webpack_require__(
|
|
7611
|
+
var memoizeCapped = __webpack_require__(162);
|
|
7556
7612
|
|
|
7557
7613
|
/** Used to match property names within property paths. */
|
|
7558
7614
|
var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
|
|
@@ -7582,10 +7638,10 @@ module.exports = stringToPath;
|
|
|
7582
7638
|
|
|
7583
7639
|
|
|
7584
7640
|
/***/ }),
|
|
7585
|
-
/*
|
|
7641
|
+
/* 162 */
|
|
7586
7642
|
/***/ (function(module, exports, __webpack_require__) {
|
|
7587
7643
|
|
|
7588
|
-
var memoize = __webpack_require__(
|
|
7644
|
+
var memoize = __webpack_require__(163);
|
|
7589
7645
|
|
|
7590
7646
|
/** Used as the maximum memoize cache size. */
|
|
7591
7647
|
var MAX_MEMOIZE_SIZE = 500;
|
|
@@ -7614,7 +7670,7 @@ module.exports = memoizeCapped;
|
|
|
7614
7670
|
|
|
7615
7671
|
|
|
7616
7672
|
/***/ }),
|
|
7617
|
-
/*
|
|
7673
|
+
/* 163 */
|
|
7618
7674
|
/***/ (function(module, exports, __webpack_require__) {
|
|
7619
7675
|
|
|
7620
7676
|
var MapCache = __webpack_require__(42);
|
|
@@ -7693,10 +7749,10 @@ module.exports = memoize;
|
|
|
7693
7749
|
|
|
7694
7750
|
|
|
7695
7751
|
/***/ }),
|
|
7696
|
-
/*
|
|
7752
|
+
/* 164 */
|
|
7697
7753
|
/***/ (function(module, exports, __webpack_require__) {
|
|
7698
7754
|
|
|
7699
|
-
var baseToString = __webpack_require__(
|
|
7755
|
+
var baseToString = __webpack_require__(165);
|
|
7700
7756
|
|
|
7701
7757
|
/**
|
|
7702
7758
|
* Converts `value` to a string. An empty string is returned for `null`
|
|
@@ -7727,11 +7783,11 @@ module.exports = toString;
|
|
|
7727
7783
|
|
|
7728
7784
|
|
|
7729
7785
|
/***/ }),
|
|
7730
|
-
/*
|
|
7786
|
+
/* 165 */
|
|
7731
7787
|
/***/ (function(module, exports, __webpack_require__) {
|
|
7732
7788
|
|
|
7733
7789
|
var Symbol = __webpack_require__(22),
|
|
7734
|
-
arrayMap = __webpack_require__(
|
|
7790
|
+
arrayMap = __webpack_require__(166),
|
|
7735
7791
|
isArray = __webpack_require__(14),
|
|
7736
7792
|
isSymbol = __webpack_require__(37);
|
|
7737
7793
|
|
|
@@ -7770,7 +7826,7 @@ module.exports = baseToString;
|
|
|
7770
7826
|
|
|
7771
7827
|
|
|
7772
7828
|
/***/ }),
|
|
7773
|
-
/*
|
|
7829
|
+
/* 166 */
|
|
7774
7830
|
/***/ (function(module, exports) {
|
|
7775
7831
|
|
|
7776
7832
|
/**
|
|
@@ -7797,7 +7853,7 @@ module.exports = arrayMap;
|
|
|
7797
7853
|
|
|
7798
7854
|
|
|
7799
7855
|
/***/ }),
|
|
7800
|
-
/*
|
|
7856
|
+
/* 167 */
|
|
7801
7857
|
/***/ (function(module, exports, __webpack_require__) {
|
|
7802
7858
|
|
|
7803
7859
|
var assignValue = __webpack_require__(50),
|
|
@@ -7854,11 +7910,11 @@ module.exports = baseSet;
|
|
|
7854
7910
|
|
|
7855
7911
|
|
|
7856
7912
|
/***/ }),
|
|
7857
|
-
/*
|
|
7913
|
+
/* 168 */
|
|
7858
7914
|
/***/ (function(module, exports, __webpack_require__) {
|
|
7859
7915
|
|
|
7860
|
-
var baseHasIn = __webpack_require__(
|
|
7861
|
-
hasPath = __webpack_require__(
|
|
7916
|
+
var baseHasIn = __webpack_require__(169),
|
|
7917
|
+
hasPath = __webpack_require__(170);
|
|
7862
7918
|
|
|
7863
7919
|
/**
|
|
7864
7920
|
* Checks if `path` is a direct or inherited property of `object`.
|
|
@@ -7894,7 +7950,7 @@ module.exports = hasIn;
|
|
|
7894
7950
|
|
|
7895
7951
|
|
|
7896
7952
|
/***/ }),
|
|
7897
|
-
/*
|
|
7953
|
+
/* 169 */
|
|
7898
7954
|
/***/ (function(module, exports) {
|
|
7899
7955
|
|
|
7900
7956
|
/**
|
|
@@ -7913,7 +7969,7 @@ module.exports = baseHasIn;
|
|
|
7913
7969
|
|
|
7914
7970
|
|
|
7915
7971
|
/***/ }),
|
|
7916
|
-
/*
|
|
7972
|
+
/* 170 */
|
|
7917
7973
|
/***/ (function(module, exports, __webpack_require__) {
|
|
7918
7974
|
|
|
7919
7975
|
var castPath = __webpack_require__(27),
|
|
@@ -7958,10 +8014,10 @@ module.exports = hasPath;
|
|
|
7958
8014
|
|
|
7959
8015
|
|
|
7960
8016
|
/***/ }),
|
|
7961
|
-
/*
|
|
8017
|
+
/* 171 */
|
|
7962
8018
|
/***/ (function(module, exports, __webpack_require__) {
|
|
7963
8019
|
|
|
7964
|
-
var flatten = __webpack_require__(
|
|
8020
|
+
var flatten = __webpack_require__(172),
|
|
7965
8021
|
overRest = __webpack_require__(53),
|
|
7966
8022
|
setToString = __webpack_require__(54);
|
|
7967
8023
|
|
|
@@ -7980,10 +8036,10 @@ module.exports = flatRest;
|
|
|
7980
8036
|
|
|
7981
8037
|
|
|
7982
8038
|
/***/ }),
|
|
7983
|
-
/*
|
|
8039
|
+
/* 172 */
|
|
7984
8040
|
/***/ (function(module, exports, __webpack_require__) {
|
|
7985
8041
|
|
|
7986
|
-
var baseFlatten = __webpack_require__(
|
|
8042
|
+
var baseFlatten = __webpack_require__(173);
|
|
7987
8043
|
|
|
7988
8044
|
/**
|
|
7989
8045
|
* Flattens `array` a single level deep.
|
|
@@ -8008,11 +8064,11 @@ module.exports = flatten;
|
|
|
8008
8064
|
|
|
8009
8065
|
|
|
8010
8066
|
/***/ }),
|
|
8011
|
-
/*
|
|
8067
|
+
/* 173 */
|
|
8012
8068
|
/***/ (function(module, exports, __webpack_require__) {
|
|
8013
8069
|
|
|
8014
|
-
var arrayPush = __webpack_require__(
|
|
8015
|
-
isFlattenable = __webpack_require__(
|
|
8070
|
+
var arrayPush = __webpack_require__(174),
|
|
8071
|
+
isFlattenable = __webpack_require__(175);
|
|
8016
8072
|
|
|
8017
8073
|
/**
|
|
8018
8074
|
* The base implementation of `_.flatten` with support for restricting flattening.
|
|
@@ -8052,7 +8108,7 @@ module.exports = baseFlatten;
|
|
|
8052
8108
|
|
|
8053
8109
|
|
|
8054
8110
|
/***/ }),
|
|
8055
|
-
/*
|
|
8111
|
+
/* 174 */
|
|
8056
8112
|
/***/ (function(module, exports) {
|
|
8057
8113
|
|
|
8058
8114
|
/**
|
|
@@ -8078,7 +8134,7 @@ module.exports = arrayPush;
|
|
|
8078
8134
|
|
|
8079
8135
|
|
|
8080
8136
|
/***/ }),
|
|
8081
|
-
/*
|
|
8137
|
+
/* 175 */
|
|
8082
8138
|
/***/ (function(module, exports, __webpack_require__) {
|
|
8083
8139
|
|
|
8084
8140
|
var Symbol = __webpack_require__(22),
|
|
@@ -8104,7 +8160,7 @@ module.exports = isFlattenable;
|
|
|
8104
8160
|
|
|
8105
8161
|
|
|
8106
8162
|
/***/ }),
|
|
8107
|
-
/*
|
|
8163
|
+
/* 176 */
|
|
8108
8164
|
/***/ (function(module, exports) {
|
|
8109
8165
|
|
|
8110
8166
|
function _isNativeFunction(t) {
|
|
@@ -8117,10 +8173,10 @@ function _isNativeFunction(t) {
|
|
|
8117
8173
|
module.exports = _isNativeFunction, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
8118
8174
|
|
|
8119
8175
|
/***/ }),
|
|
8120
|
-
/*
|
|
8176
|
+
/* 177 */
|
|
8121
8177
|
/***/ (function(module, exports, __webpack_require__) {
|
|
8122
8178
|
|
|
8123
|
-
var isNativeReflectConstruct = __webpack_require__(
|
|
8179
|
+
var isNativeReflectConstruct = __webpack_require__(178);
|
|
8124
8180
|
var setPrototypeOf = __webpack_require__(36);
|
|
8125
8181
|
function _construct(t, e, r) {
|
|
8126
8182
|
if (isNativeReflectConstruct()) return Reflect.construct.apply(null, arguments);
|
|
@@ -8132,7 +8188,7 @@ function _construct(t, e, r) {
|
|
|
8132
8188
|
module.exports = _construct, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
8133
8189
|
|
|
8134
8190
|
/***/ }),
|
|
8135
|
-
/*
|
|
8191
|
+
/* 178 */
|
|
8136
8192
|
/***/ (function(module, exports) {
|
|
8137
8193
|
|
|
8138
8194
|
function _isNativeReflectConstruct() {
|
|
@@ -8146,11 +8202,11 @@ function _isNativeReflectConstruct() {
|
|
|
8146
8202
|
module.exports = _isNativeReflectConstruct, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
8147
8203
|
|
|
8148
8204
|
/***/ }),
|
|
8149
|
-
/*
|
|
8205
|
+
/* 179 */
|
|
8150
8206
|
/***/ (function(module, exports, __webpack_require__) {
|
|
8151
8207
|
|
|
8152
|
-
var iota = __webpack_require__(
|
|
8153
|
-
var isBuffer = __webpack_require__(
|
|
8208
|
+
var iota = __webpack_require__(180)
|
|
8209
|
+
var isBuffer = __webpack_require__(181)
|
|
8154
8210
|
|
|
8155
8211
|
var hasTypedArrays = ((typeof Float64Array) !== "undefined")
|
|
8156
8212
|
|
|
@@ -8501,7 +8557,7 @@ module.exports = wrappedNDArrayCtor
|
|
|
8501
8557
|
|
|
8502
8558
|
|
|
8503
8559
|
/***/ }),
|
|
8504
|
-
/*
|
|
8560
|
+
/* 180 */
|
|
8505
8561
|
/***/ (function(module, exports, __webpack_require__) {
|
|
8506
8562
|
|
|
8507
8563
|
"use strict";
|
|
@@ -8518,7 +8574,7 @@ function iota(n) {
|
|
|
8518
8574
|
module.exports = iota
|
|
8519
8575
|
|
|
8520
8576
|
/***/ }),
|
|
8521
|
-
/*
|
|
8577
|
+
/* 181 */
|
|
8522
8578
|
/***/ (function(module, exports) {
|
|
8523
8579
|
|
|
8524
8580
|
/*!
|
|
@@ -8545,7 +8601,7 @@ function isSlowBuffer (obj) {
|
|
|
8545
8601
|
|
|
8546
8602
|
|
|
8547
8603
|
/***/ }),
|
|
8548
|
-
/*
|
|
8604
|
+
/* 182 */
|
|
8549
8605
|
/***/ (function(module, exports, __webpack_require__) {
|
|
8550
8606
|
|
|
8551
8607
|
"use strict";
|
|
@@ -8661,7 +8717,7 @@ module.exports.d3 = interp3d
|
|
|
8661
8717
|
|
|
8662
8718
|
|
|
8663
8719
|
/***/ }),
|
|
8664
|
-
/*
|
|
8720
|
+
/* 183 */
|
|
8665
8721
|
/***/ (function(module, exports, __webpack_require__) {
|
|
8666
8722
|
|
|
8667
8723
|
"use strict";
|
|
@@ -8675,9 +8731,9 @@ module.exports.d3 = interp3d
|
|
|
8675
8731
|
|
|
8676
8732
|
|
|
8677
8733
|
|
|
8678
|
-
var base64 = __webpack_require__(
|
|
8679
|
-
var ieee754 = __webpack_require__(
|
|
8680
|
-
var isArray = __webpack_require__(
|
|
8734
|
+
var base64 = __webpack_require__(184)
|
|
8735
|
+
var ieee754 = __webpack_require__(185)
|
|
8736
|
+
var isArray = __webpack_require__(186)
|
|
8681
8737
|
|
|
8682
8738
|
exports.Buffer = Buffer
|
|
8683
8739
|
exports.SlowBuffer = SlowBuffer
|
|
@@ -10458,7 +10514,7 @@ function isnan (val) {
|
|
|
10458
10514
|
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(41)))
|
|
10459
10515
|
|
|
10460
10516
|
/***/ }),
|
|
10461
|
-
/*
|
|
10517
|
+
/* 184 */
|
|
10462
10518
|
/***/ (function(module, exports, __webpack_require__) {
|
|
10463
10519
|
|
|
10464
10520
|
"use strict";
|
|
@@ -10617,7 +10673,7 @@ function fromByteArray (uint8) {
|
|
|
10617
10673
|
|
|
10618
10674
|
|
|
10619
10675
|
/***/ }),
|
|
10620
|
-
/*
|
|
10676
|
+
/* 185 */
|
|
10621
10677
|
/***/ (function(module, exports) {
|
|
10622
10678
|
|
|
10623
10679
|
exports.read = function (buffer, offset, isLE, mLen, nBytes) {
|
|
@@ -10707,7 +10763,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) {
|
|
|
10707
10763
|
|
|
10708
10764
|
|
|
10709
10765
|
/***/ }),
|
|
10710
|
-
/*
|
|
10766
|
+
/* 186 */
|
|
10711
10767
|
/***/ (function(module, exports) {
|
|
10712
10768
|
|
|
10713
10769
|
var toString = {}.toString;
|
|
@@ -10718,7 +10774,7 @@ module.exports = Array.isArray || function (arr) {
|
|
|
10718
10774
|
|
|
10719
10775
|
|
|
10720
10776
|
/***/ }),
|
|
10721
|
-
/*
|
|
10777
|
+
/* 187 */
|
|
10722
10778
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
10723
10779
|
|
|
10724
10780
|
"use strict";
|
|
@@ -10761,7 +10817,7 @@ var merge = __webpack_require__(15);
|
|
|
10761
10817
|
var merge_default = /*#__PURE__*/__webpack_require__.n(merge);
|
|
10762
10818
|
|
|
10763
10819
|
// EXTERNAL MODULE: ./src/common/typedefs.js
|
|
10764
|
-
var typedefs = __webpack_require__(
|
|
10820
|
+
var typedefs = __webpack_require__(142);
|
|
10765
10821
|
|
|
10766
10822
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/slicedToArray.js
|
|
10767
10823
|
var slicedToArray = __webpack_require__(28);
|
|
@@ -13973,6 +14029,34 @@ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length)
|
|
|
13973
14029
|
|
|
13974
14030
|
/* eslint-disable import/no-cycle */
|
|
13975
14031
|
|
|
14032
|
+
/**
|
|
14033
|
+
* Barcode Decoder Module
|
|
14034
|
+
*
|
|
14035
|
+
* This module handles the decoding of barcodes using configured readers.
|
|
14036
|
+
*
|
|
14037
|
+
* READER ORDER GUARANTEE:
|
|
14038
|
+
* Readers are processed in the exact order they are specified in the `readers`
|
|
14039
|
+
* config array. The first reader to successfully decode the barcode wins.
|
|
14040
|
+
*
|
|
14041
|
+
* Example:
|
|
14042
|
+
* readers: ['ean_reader', 'upc_e_reader', 'code_128_reader']
|
|
14043
|
+
*
|
|
14044
|
+
* Decoding order:
|
|
14045
|
+
* 1. ean_reader attempts to decode
|
|
14046
|
+
* 2. If ean_reader returns null, upc_e_reader attempts to decode
|
|
14047
|
+
* 3. If upc_e_reader returns null, code_128_reader attempts to decode
|
|
14048
|
+
* 4. First non-null result is returned
|
|
14049
|
+
*
|
|
14050
|
+
* EXTERNAL READERS:
|
|
14051
|
+
* External readers must be registered via registerReader() before use.
|
|
14052
|
+
* Once registered, they follow the same ordering rules as built-in readers.
|
|
14053
|
+
* Their position in the `readers` array determines their priority.
|
|
14054
|
+
*
|
|
14055
|
+
* To prioritize an external reader:
|
|
14056
|
+
* Quagga.registerReader('my_reader', MyReader);
|
|
14057
|
+
* config.decoder.readers = ['my_reader', 'ean_reader']; // my_reader tried first
|
|
14058
|
+
*/
|
|
14059
|
+
|
|
13976
14060
|
|
|
13977
14061
|
|
|
13978
14062
|
|
|
@@ -14006,6 +14090,21 @@ var READERS = {
|
|
|
14006
14090
|
code_32_reader: code_32_reader
|
|
14007
14091
|
};
|
|
14008
14092
|
/* harmony default export */ var barcode_decoder = ({
|
|
14093
|
+
/**
|
|
14094
|
+
* Registers an external/custom barcode reader.
|
|
14095
|
+
* Once registered, the reader can be used in config.readers array.
|
|
14096
|
+
* The reader's position in config.readers determines its decoding priority.
|
|
14097
|
+
*
|
|
14098
|
+
* @param name - The identifier to use in config.readers (e.g., 'my_custom_reader')
|
|
14099
|
+
* @param reader - The reader class (must extend BarcodeReader)
|
|
14100
|
+
*
|
|
14101
|
+
* @example
|
|
14102
|
+
* // Register a custom reader
|
|
14103
|
+
* BarcodeDecoder.registerReader('my_reader', MyCustomReader);
|
|
14104
|
+
*
|
|
14105
|
+
* // Use it with high priority (first in array)
|
|
14106
|
+
* config.decoder.readers = ['my_reader', 'ean_reader', 'code_128_reader'];
|
|
14107
|
+
*/
|
|
14009
14108
|
registerReader: function registerReader(name, reader) {
|
|
14010
14109
|
READERS[name] = reader;
|
|
14011
14110
|
},
|
|
@@ -14029,6 +14128,12 @@ var READERS = {
|
|
|
14029
14128
|
function initCanvas() {
|
|
14030
14129
|
if (false) { var $debug, _config$debug; }
|
|
14031
14130
|
}
|
|
14131
|
+
|
|
14132
|
+
/**
|
|
14133
|
+
* Initializes barcode readers from config.readers array.
|
|
14134
|
+
* Readers are instantiated and stored in the order they appear in config,
|
|
14135
|
+
* which determines their decoding priority (first in array = highest priority).
|
|
14136
|
+
*/
|
|
14032
14137
|
function initReaders() {
|
|
14033
14138
|
var _config$debug3;
|
|
14034
14139
|
config.readers.forEach(function (readerConfig) {
|
|
@@ -14099,6 +14204,14 @@ var READERS = {
|
|
|
14099
14204
|
y: (box[3][1] - box[2][1]) / 2 + box[2][1]
|
|
14100
14205
|
}];
|
|
14101
14206
|
}
|
|
14207
|
+
|
|
14208
|
+
/**
|
|
14209
|
+
* Attempts to decode a barcode from a scan line.
|
|
14210
|
+
* Readers are tried in order (as specified in config.readers).
|
|
14211
|
+
* The first reader to return a non-null result wins.
|
|
14212
|
+
* @param {Array} line The scan line to decode
|
|
14213
|
+
* @returns {Object|null} Decoded result or null if no reader succeeded
|
|
14214
|
+
*/
|
|
14102
14215
|
function tryDecode(line) {
|
|
14103
14216
|
var result = null;
|
|
14104
14217
|
var i;
|
|
@@ -14106,6 +14219,8 @@ var READERS = {
|
|
|
14106
14219
|
if (false) {}
|
|
14107
14220
|
bresenham.toBinaryLine(barcodeLine);
|
|
14108
14221
|
if (false) {}
|
|
14222
|
+
|
|
14223
|
+
// Iterate readers in order - first successful decode wins
|
|
14109
14224
|
for (i = 0; i < _barcodeReaders.length && result === null; i++) {
|
|
14110
14225
|
result = _barcodeReaders[i].decodePattern(barcodeLine.line);
|
|
14111
14226
|
}
|
|
@@ -14156,6 +14271,13 @@ var READERS = {
|
|
|
14156
14271
|
function getLineLength(line) {
|
|
14157
14272
|
return Math.sqrt(Math.pow(Math.abs(line[1].y - line[0].y), 2) + Math.pow(Math.abs(line[1].x - line[0].x), 2));
|
|
14158
14273
|
}
|
|
14274
|
+
|
|
14275
|
+
/**
|
|
14276
|
+
* Decodes from a full image using readers that support image-based decoding.
|
|
14277
|
+
* Readers are tried in order (as specified in config.readers).
|
|
14278
|
+
* @param {Object} imageWrapper The image to decode
|
|
14279
|
+
* @returns {Object|null} Decoded result or null
|
|
14280
|
+
*/
|
|
14159
14281
|
function _decodeFromImage2(_x) {
|
|
14160
14282
|
return _decodeFromImage.apply(this, arguments);
|
|
14161
14283
|
}
|
|
@@ -14171,7 +14293,7 @@ var READERS = {
|
|
|
14171
14293
|
return regenerator_default.a.wrap(function (_context2) {
|
|
14172
14294
|
while (1) switch (_context2.prev = _context2.next) {
|
|
14173
14295
|
case 0:
|
|
14174
|
-
result = null;
|
|
14296
|
+
result = null; // Iterate readers in order - first successful decode wins
|
|
14175
14297
|
_iterator = _createForOfIteratorHelper(_barcodeReaders);
|
|
14176
14298
|
_context2.prev = 1;
|
|
14177
14299
|
_iterator.s();
|
|
@@ -14406,12 +14528,16 @@ var READERS = {
|
|
|
14406
14528
|
}
|
|
14407
14529
|
};
|
|
14408
14530
|
})());
|
|
14531
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/objectWithoutProperties.js
|
|
14532
|
+
var objectWithoutProperties = __webpack_require__(63);
|
|
14533
|
+
var objectWithoutProperties_default = /*#__PURE__*/__webpack_require__.n(objectWithoutProperties);
|
|
14534
|
+
|
|
14409
14535
|
// EXTERNAL MODULE: ./node_modules/lodash/pick.js
|
|
14410
|
-
var pick = __webpack_require__(
|
|
14536
|
+
var pick = __webpack_require__(64);
|
|
14411
14537
|
var pick_default = /*#__PURE__*/__webpack_require__.n(pick);
|
|
14412
14538
|
|
|
14413
14539
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/wrapNativeSuper.js
|
|
14414
|
-
var wrapNativeSuper = __webpack_require__(
|
|
14540
|
+
var wrapNativeSuper = __webpack_require__(65);
|
|
14415
14541
|
var wrapNativeSuper_default = /*#__PURE__*/__webpack_require__.n(wrapNativeSuper);
|
|
14416
14542
|
|
|
14417
14543
|
// CONCATENATED MODULE: ./src/quagga/Exception.ts
|
|
@@ -14460,6 +14586,14 @@ function getUserMedia(constraints) {
|
|
|
14460
14586
|
// CONCATENATED MODULE: ./src/input/camera_access.ts
|
|
14461
14587
|
|
|
14462
14588
|
|
|
14589
|
+
|
|
14590
|
+
var _excluded = ["deviceId"];
|
|
14591
|
+
function camera_access_ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
14592
|
+
function camera_access_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? camera_access_ownKeys(Object(t), !0).forEach(function (r) { defineProperty_default()(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : camera_access_ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
14593
|
+
function camera_access_createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = camera_access_unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
14594
|
+
function camera_access_unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return camera_access_arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? camera_access_arrayLikeToArray(r, a) : void 0; } }
|
|
14595
|
+
function camera_access_arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
14596
|
+
|
|
14463
14597
|
// TODO: when this file was written years ago, HTMLMediaElement.play() did not return a useful value
|
|
14464
14598
|
// to let us know when the video started playing. Now, it does. So, we shouldn't need to run this
|
|
14465
14599
|
// odd waitForVideo() function that polls to see if the video has started.
|
|
@@ -14559,12 +14693,21 @@ function pickConstraints() {
|
|
|
14559
14693
|
video: video
|
|
14560
14694
|
});
|
|
14561
14695
|
}
|
|
14562
|
-
|
|
14696
|
+
|
|
14697
|
+
/**
|
|
14698
|
+
* Enumerates video input devices, optionally filtering by constraints.
|
|
14699
|
+
* @param videoConstraints Optional constraints to filter devices.
|
|
14700
|
+
* When provided, only devices that satisfy the given constraints will be returned.
|
|
14701
|
+
* This works by attempting to get a media stream for each device with the constraints
|
|
14702
|
+
* and returning only the devices that succeed.
|
|
14703
|
+
* @returns Promise resolving to an array of MediaDeviceInfo for video input devices.
|
|
14704
|
+
*/
|
|
14705
|
+
function enumerateVideoDevices(_x3) {
|
|
14563
14706
|
return _enumerateVideoDevices.apply(this, arguments);
|
|
14564
14707
|
}
|
|
14565
14708
|
function _enumerateVideoDevices() {
|
|
14566
|
-
_enumerateVideoDevices = asyncToGenerator_default()(/*#__PURE__*/regenerator_default.a.mark(function _callee5() {
|
|
14567
|
-
var devices;
|
|
14709
|
+
_enumerateVideoDevices = asyncToGenerator_default()(/*#__PURE__*/regenerator_default.a.mark(function _callee5(videoConstraints) {
|
|
14710
|
+
var devices, videoDevices, constrainedDevices, processedConstraints, _, constraintsWithoutDeviceId, _iterator, _step, device, constraints, stream, _t3, _t4;
|
|
14568
14711
|
return regenerator_default.a.wrap(function (_context5) {
|
|
14569
14712
|
while (1) switch (_context5.prev = _context5.next) {
|
|
14570
14713
|
case 0:
|
|
@@ -14572,14 +14715,72 @@ function _enumerateVideoDevices() {
|
|
|
14572
14715
|
return enumerateDevices();
|
|
14573
14716
|
case 1:
|
|
14574
14717
|
devices = _context5.sent;
|
|
14575
|
-
|
|
14718
|
+
videoDevices = devices.filter(function (device) {
|
|
14576
14719
|
return device.kind === 'videoinput';
|
|
14577
|
-
})
|
|
14720
|
+
}); // If no constraints are provided, return all video devices
|
|
14721
|
+
if (videoConstraints) {
|
|
14722
|
+
_context5.next = 2;
|
|
14723
|
+
break;
|
|
14724
|
+
}
|
|
14725
|
+
return _context5.abrupt("return", videoDevices);
|
|
14578
14726
|
case 2:
|
|
14727
|
+
// Filter devices based on constraints by trying to get a media stream for each
|
|
14728
|
+
constrainedDevices = []; // Process constraints but exclude deviceId since we'll set it ourselves for each device
|
|
14729
|
+
processedConstraints = deprecatedConstraints(videoConstraints); // eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
14730
|
+
_ = processedConstraints.deviceId, constraintsWithoutDeviceId = objectWithoutProperties_default()(processedConstraints, _excluded);
|
|
14731
|
+
_iterator = camera_access_createForOfIteratorHelper(videoDevices);
|
|
14732
|
+
_context5.prev = 3;
|
|
14733
|
+
_iterator.s();
|
|
14734
|
+
case 4:
|
|
14735
|
+
if ((_step = _iterator.n()).done) {
|
|
14736
|
+
_context5.next = 9;
|
|
14737
|
+
break;
|
|
14738
|
+
}
|
|
14739
|
+
device = _step.value;
|
|
14740
|
+
_context5.prev = 5;
|
|
14741
|
+
constraints = {
|
|
14742
|
+
audio: false,
|
|
14743
|
+
video: camera_access_objectSpread(camera_access_objectSpread({}, constraintsWithoutDeviceId), {}, {
|
|
14744
|
+
deviceId: {
|
|
14745
|
+
exact: device.deviceId
|
|
14746
|
+
}
|
|
14747
|
+
})
|
|
14748
|
+
};
|
|
14749
|
+
_context5.next = 6;
|
|
14750
|
+
return getUserMedia(constraints);
|
|
14751
|
+
case 6:
|
|
14752
|
+
stream = _context5.sent;
|
|
14753
|
+
// Stop all tracks immediately after testing
|
|
14754
|
+
stream.getTracks().forEach(function (track) {
|
|
14755
|
+
return track.stop();
|
|
14756
|
+
});
|
|
14757
|
+
constrainedDevices.push(device);
|
|
14758
|
+
_context5.next = 8;
|
|
14759
|
+
break;
|
|
14760
|
+
case 7:
|
|
14761
|
+
_context5.prev = 7;
|
|
14762
|
+
_t3 = _context5["catch"](5);
|
|
14763
|
+
case 8:
|
|
14764
|
+
_context5.next = 4;
|
|
14765
|
+
break;
|
|
14766
|
+
case 9:
|
|
14767
|
+
_context5.next = 11;
|
|
14768
|
+
break;
|
|
14769
|
+
case 10:
|
|
14770
|
+
_context5.prev = 10;
|
|
14771
|
+
_t4 = _context5["catch"](3);
|
|
14772
|
+
_iterator.e(_t4);
|
|
14773
|
+
case 11:
|
|
14774
|
+
_context5.prev = 11;
|
|
14775
|
+
_iterator.f();
|
|
14776
|
+
return _context5.finish(11);
|
|
14777
|
+
case 12:
|
|
14778
|
+
return _context5.abrupt("return", constrainedDevices);
|
|
14779
|
+
case 13:
|
|
14579
14780
|
case "end":
|
|
14580
14781
|
return _context5.stop();
|
|
14581
14782
|
}
|
|
14582
|
-
}, _callee5);
|
|
14783
|
+
}, _callee5, null, [[3, 10, 11, 12], [5, 7]]);
|
|
14583
14784
|
}));
|
|
14584
14785
|
return _enumerateVideoDevices.apply(this, arguments);
|
|
14585
14786
|
}
|
|
@@ -14591,6 +14792,17 @@ function getActiveTrack() {
|
|
|
14591
14792
|
return tracks && tracks !== null && tracks !== void 0 && tracks.length ? tracks[0] : null;
|
|
14592
14793
|
}
|
|
14593
14794
|
|
|
14795
|
+
/**
|
|
14796
|
+
* Returns the active MediaStream, or null if no stream is active.
|
|
14797
|
+
* Use this when you need access to the full stream, for example to pass to WebRTC
|
|
14798
|
+
* or to clone the stream. For just the video track, use getActiveTrack() instead.
|
|
14799
|
+
* @returns The active MediaStream, or null if no camera is currently active.
|
|
14800
|
+
*/
|
|
14801
|
+
function getActiveStream() {
|
|
14802
|
+
var _streamRef;
|
|
14803
|
+
return (_streamRef = streamRef) !== null && _streamRef !== void 0 ? _streamRef : null;
|
|
14804
|
+
}
|
|
14805
|
+
|
|
14594
14806
|
/**
|
|
14595
14807
|
* Used for accessing information about the active stream track and available video devices.
|
|
14596
14808
|
*/
|
|
@@ -14634,6 +14846,7 @@ var QuaggaJSCameraAccess = {
|
|
|
14634
14846
|
});
|
|
14635
14847
|
},
|
|
14636
14848
|
enumerateVideoDevices: enumerateVideoDevices,
|
|
14849
|
+
getActiveStream: getActiveStream,
|
|
14637
14850
|
getActiveStreamLabel: function getActiveStreamLabel() {
|
|
14638
14851
|
var track = getActiveTrack();
|
|
14639
14852
|
return track ? track.label : '';
|
|
@@ -14763,7 +14976,6 @@ function passesFilter(codeResult, filter) {
|
|
|
14763
14976
|
// CONCATENATED MODULE: ./src/config/config.dev.ts
|
|
14764
14977
|
var DevConfig = {
|
|
14765
14978
|
inputStream: {
|
|
14766
|
-
name: 'Live',
|
|
14767
14979
|
type: 'LiveStream',
|
|
14768
14980
|
constraints: {
|
|
14769
14981
|
width: 640,
|
|
@@ -14777,6 +14989,9 @@ var DevConfig = {
|
|
|
14777
14989
|
right: '0%',
|
|
14778
14990
|
left: '0%',
|
|
14779
14991
|
bottom: '0%'
|
|
14992
|
+
// borderColor: 'rgba(0, 255, 0, 0.5)', // uncomment to draw area border
|
|
14993
|
+
// borderWidth: 2, // uncomment to draw area border
|
|
14994
|
+
// backgroundColor: 'rgba(0, 255, 0, 0.1)', // uncomment to tint the scan area
|
|
14780
14995
|
},
|
|
14781
14996
|
singleChannel: false,
|
|
14782
14997
|
// true: only the red color-channel is read
|
|
@@ -14785,7 +15000,9 @@ var DevConfig = {
|
|
|
14785
15000
|
}
|
|
14786
15001
|
},
|
|
14787
15002
|
locate: true,
|
|
14788
|
-
|
|
15003
|
+
canvas: {
|
|
15004
|
+
createOverlay: true // set to false to skip creating overlay canvas (drawingBuffer)
|
|
15005
|
+
},
|
|
14789
15006
|
decoder: {
|
|
14790
15007
|
readers: ['code_128_reader'],
|
|
14791
15008
|
debug: {
|
|
@@ -14836,7 +15053,9 @@ var NodeConfig = {
|
|
|
14836
15053
|
singleChannel: false // true: only the red color-channel is read
|
|
14837
15054
|
},
|
|
14838
15055
|
locate: true,
|
|
14839
|
-
|
|
15056
|
+
canvas: {
|
|
15057
|
+
createOverlay: true // set to false to skip creating overlay canvas (drawingBuffer)
|
|
15058
|
+
},
|
|
14840
15059
|
decoder: {
|
|
14841
15060
|
readers: ['code_128_reader']
|
|
14842
15061
|
},
|
|
@@ -14849,7 +15068,6 @@ var NodeConfig = {
|
|
|
14849
15068
|
// CONCATENATED MODULE: ./src/config/config.prod.ts
|
|
14850
15069
|
var ProdConfig = {
|
|
14851
15070
|
inputStream: {
|
|
14852
|
-
name: 'Live',
|
|
14853
15071
|
type: 'LiveStream',
|
|
14854
15072
|
constraints: {
|
|
14855
15073
|
width: 640,
|
|
@@ -14867,7 +15085,9 @@ var ProdConfig = {
|
|
|
14867
15085
|
singleChannel: false // true: only the red color-channel is read
|
|
14868
15086
|
},
|
|
14869
15087
|
locate: true,
|
|
14870
|
-
|
|
15088
|
+
canvas: {
|
|
15089
|
+
createOverlay: true // set to false to skip creating overlay canvas (drawingBuffer)
|
|
15090
|
+
},
|
|
14871
15091
|
decoder: {
|
|
14872
15092
|
readers: ['code_128_reader']
|
|
14873
15093
|
},
|
|
@@ -14890,11 +15110,11 @@ var ExportConfig = function () {
|
|
|
14890
15110
|
}();
|
|
14891
15111
|
/* harmony default export */ var config_config = (ExportConfig);
|
|
14892
15112
|
// EXTERNAL MODULE: ./src/input/frame_grabber.js
|
|
14893
|
-
var frame_grabber = __webpack_require__(
|
|
15113
|
+
var frame_grabber = __webpack_require__(66);
|
|
14894
15114
|
var frame_grabber_default = /*#__PURE__*/__webpack_require__.n(frame_grabber);
|
|
14895
15115
|
|
|
14896
15116
|
// EXTERNAL MODULE: ./src/input/input_stream/input_stream.ts
|
|
14897
|
-
var input_stream = __webpack_require__(
|
|
15117
|
+
var input_stream = __webpack_require__(67);
|
|
14898
15118
|
|
|
14899
15119
|
// CONCATENATED MODULE: ./src/locator/tracer.js
|
|
14900
15120
|
/**
|
|
@@ -15446,7 +15666,13 @@ function barcode_locator_initBuffers() {
|
|
|
15446
15666
|
_numPatches.y = _currentImageWrapper.size.y / _patchSize.y | 0;
|
|
15447
15667
|
_binaryImageWrapper = new image_wrapper(_currentImageWrapper.size, undefined, Uint8Array, false);
|
|
15448
15668
|
_labelImageWrapper = new image_wrapper(_patchSize, undefined, Array, true);
|
|
15449
|
-
|
|
15669
|
+
|
|
15670
|
+
// Calculate required buffer size (4 regions for asm.js skeletonizer)
|
|
15671
|
+
var skeletonImageDataSize = _patchSize.x * _patchSize.y * 4;
|
|
15672
|
+
// Round up to next power of 2 for asm.js heap requirement
|
|
15673
|
+
// Use minimum 64KB for optimal asm.js performance (avoids V8 warnings)
|
|
15674
|
+
var bufferSize = Math.max(65536, Math.pow(2, Math.ceil(Math.log2(skeletonImageDataSize))));
|
|
15675
|
+
var skeletonImageData = new ArrayBuffer(bufferSize);
|
|
15450
15676
|
_subImageWrapper = new image_wrapper(_patchSize, new Uint8Array(skeletonImageData, 0, _patchSize.x * _patchSize.y));
|
|
15451
15677
|
_skelImageWrapper = new image_wrapper(_patchSize, new Uint8Array(skeletonImageData, _patchSize.x * _patchSize.y * 3, _patchSize.x * _patchSize.y), undefined, true);
|
|
15452
15678
|
_skeletonizer = skeletonizer({
|
|
@@ -15915,6 +16141,13 @@ var QuaggaContext_QuaggaContext = /*#__PURE__*/createClass_default()(function Qu
|
|
|
15915
16141
|
defineProperty_default()(this, "framegrabber", void 0);
|
|
15916
16142
|
defineProperty_default()(this, "inputImageWrapper", void 0);
|
|
15917
16143
|
defineProperty_default()(this, "stopped", false);
|
|
16144
|
+
/**
|
|
16145
|
+
* Flag indicating that stop() was called while init() was still in progress.
|
|
16146
|
+
* This is used to handle race conditions in React StrictMode where components
|
|
16147
|
+
* are mounted/unmounted rapidly, causing init() to be called, then stop(),
|
|
16148
|
+
* then init() again before the first init() completes.
|
|
16149
|
+
*/
|
|
16150
|
+
defineProperty_default()(this, "initAborted", false);
|
|
15918
16151
|
defineProperty_default()(this, "boxSize", void 0);
|
|
15919
16152
|
defineProperty_default()(this, "resultCollector", void 0);
|
|
15920
16153
|
defineProperty_default()(this, "decoder", void 0);
|
|
@@ -15993,21 +16226,30 @@ function getCanvasAndContext(selector, className, options) {
|
|
|
15993
16226
|
}
|
|
15994
16227
|
function initCanvases(canvasSize, _ref) {
|
|
15995
16228
|
var willReadFrequently = _ref.willReadFrequently,
|
|
16229
|
+
createOverlay = _ref.createOverlay,
|
|
15996
16230
|
debug = _ref.debug;
|
|
15997
16231
|
if (typeof document !== 'undefined') {
|
|
15998
16232
|
var image = getCanvasAndContext('canvas.imgBuffer', 'imgBuffer', {
|
|
15999
16233
|
willReadFrequently: willReadFrequently,
|
|
16000
16234
|
debug: debug
|
|
16001
16235
|
});
|
|
16002
|
-
|
|
16003
|
-
|
|
16004
|
-
debug: debug
|
|
16005
|
-
});
|
|
16236
|
+
image.canvas.width = canvasSize.x;
|
|
16237
|
+
image.canvas.height = canvasSize.y;
|
|
16006
16238
|
|
|
16007
|
-
//
|
|
16008
|
-
|
|
16009
|
-
|
|
16010
|
-
|
|
16239
|
+
// Only create overlay canvas if createOverlay is true (default behavior)
|
|
16240
|
+
var overlay = {
|
|
16241
|
+
canvas: null,
|
|
16242
|
+
context: null
|
|
16243
|
+
};
|
|
16244
|
+
if (createOverlay) {
|
|
16245
|
+
var overlayResult = getCanvasAndContext('canvas.drawingBuffer', 'drawingBuffer', {
|
|
16246
|
+
willReadFrequently: willReadFrequently,
|
|
16247
|
+
debug: debug
|
|
16248
|
+
});
|
|
16249
|
+
overlayResult.canvas.width = canvasSize.x;
|
|
16250
|
+
overlayResult.canvas.height = canvasSize.y;
|
|
16251
|
+
overlay = overlayResult;
|
|
16252
|
+
}
|
|
16011
16253
|
return {
|
|
16012
16254
|
dom: {
|
|
16013
16255
|
image: image.canvas,
|
|
@@ -16022,13 +16264,17 @@ function initCanvases(canvasSize, _ref) {
|
|
|
16022
16264
|
return null;
|
|
16023
16265
|
}
|
|
16024
16266
|
function initCanvas_initCanvas(context) {
|
|
16025
|
-
var _context$config, _context$config$input, _context$config2, _context$config2$inpu, _context$config3, _context$config3$
|
|
16267
|
+
var _context$config, _context$config$input, _context$config2, _context$config2$inpu, _context$config3, _context$config3$canv, _context$config4, _context$config4$inpu, _context$config5, _context$config5$loca;
|
|
16026
16268
|
var viewport = getViewPort_getViewPort(context === null || context === void 0 ? void 0 : (_context$config = context.config) === null || _context$config === void 0 ? void 0 : (_context$config$input = _context$config.inputStream) === null || _context$config$input === void 0 ? void 0 : _context$config$input.target);
|
|
16027
16269
|
var type = context === null || context === void 0 ? void 0 : (_context$config2 = context.config) === null || _context$config2 === void 0 ? void 0 : (_context$config2$inpu = _context$config2.inputStream) === null || _context$config2$inpu === void 0 ? void 0 : _context$config2$inpu.type;
|
|
16028
16270
|
if (!type) return null;
|
|
16271
|
+
|
|
16272
|
+
// Default to true for backwards compatibility
|
|
16273
|
+
var createOverlay = (context === null || context === void 0 ? void 0 : (_context$config3 = context.config) === null || _context$config3 === void 0 ? void 0 : (_context$config3$canv = _context$config3.canvas) === null || _context$config3$canv === void 0 ? void 0 : _context$config3$canv.createOverlay) !== false;
|
|
16029
16274
|
var container = initCanvases(context.inputStream.getCanvasSize(), {
|
|
16030
|
-
willReadFrequently: !!(context !== null && context !== void 0 && (_context$
|
|
16031
|
-
|
|
16275
|
+
willReadFrequently: !!(context !== null && context !== void 0 && (_context$config4 = context.config) !== null && _context$config4 !== void 0 && (_context$config4$inpu = _context$config4.inputStream) !== null && _context$config4$inpu !== void 0 && _context$config4$inpu.willReadFrequently),
|
|
16276
|
+
createOverlay: createOverlay,
|
|
16277
|
+
debug: context === null || context === void 0 ? void 0 : (_context$config5 = context.config) === null || _context$config5 === void 0 ? void 0 : (_context$config5$loca = _context$config5.locator) === null || _context$config5$loca === void 0 ? void 0 : _context$config5$loca.debug
|
|
16032
16278
|
});
|
|
16033
16279
|
if (!container) return {
|
|
16034
16280
|
dom: {
|
|
@@ -16046,7 +16292,7 @@ function initCanvas_initCanvas(context) {
|
|
|
16046
16292
|
if (type === 'ImageStream' && !viewport.contains(dom.image)) {
|
|
16047
16293
|
viewport.appendChild(dom.image);
|
|
16048
16294
|
}
|
|
16049
|
-
if (!viewport.contains(dom.overlay)) {
|
|
16295
|
+
if (dom.overlay && !viewport.contains(dom.overlay)) {
|
|
16050
16296
|
viewport.appendChild(dom.overlay);
|
|
16051
16297
|
}
|
|
16052
16298
|
}
|
|
@@ -16336,7 +16582,19 @@ var quagga_Quagga = /*#__PURE__*/function () {
|
|
|
16336
16582
|
defineProperty_default()(this, "context", new QuaggaContext_QuaggaContext());
|
|
16337
16583
|
defineProperty_default()(this, "canRecord", function (callback) {
|
|
16338
16584
|
var _this$context$config;
|
|
16585
|
+
// Check if init was aborted (e.g., by calling stop() during initialization)
|
|
16586
|
+
// This can happen in React StrictMode where components are mounted/unmounted rapidly
|
|
16587
|
+
if (_this.context.initAborted) {
|
|
16588
|
+
callback(new Error('Initialization was aborted'));
|
|
16589
|
+
return;
|
|
16590
|
+
}
|
|
16339
16591
|
if (!_this.context.config) {
|
|
16592
|
+
callback(new Error('Configuration not initialized'));
|
|
16593
|
+
return;
|
|
16594
|
+
}
|
|
16595
|
+
// Check if inputStream is properly initialized before proceeding
|
|
16596
|
+
if (!_this.context.inputStream) {
|
|
16597
|
+
callback(new Error('Input stream not initialized'));
|
|
16340
16598
|
return;
|
|
16341
16599
|
}
|
|
16342
16600
|
barcode_locator.checkImageConstraints(_this.context.inputStream, (_this$context$config = _this.context.config) === null || _this$context$config === void 0 ? void 0 : _this$context$config.locator);
|
|
@@ -16372,6 +16630,14 @@ var quagga_Quagga = /*#__PURE__*/function () {
|
|
|
16372
16630
|
_this.locateAndDecode();
|
|
16373
16631
|
}
|
|
16374
16632
|
});
|
|
16633
|
+
/**
|
|
16634
|
+
* Public method to draw a scanner area overlay using the current Quagga instance's overlay canvas.
|
|
16635
|
+
* Draws based on the instance's configured inputStream.area, using the actual adjusted boxSize
|
|
16636
|
+
* to match the real scanning area after patch alignment.
|
|
16637
|
+
* Only draws when locate is false and an area is configured with styling.
|
|
16638
|
+
*/
|
|
16639
|
+
defineProperty_default()(this, "_cachedStyleValues", void 0);
|
|
16640
|
+
defineProperty_default()(this, "_resolvedStyle", void 0);
|
|
16375
16641
|
}
|
|
16376
16642
|
return createClass_default()(Quagga, [{
|
|
16377
16643
|
key: "initBuffers",
|
|
@@ -16462,6 +16728,7 @@ var quagga_Quagga = /*#__PURE__*/function () {
|
|
|
16462
16728
|
key: "transformResult",
|
|
16463
16729
|
value: function transformResult(result) {
|
|
16464
16730
|
var _this2 = this;
|
|
16731
|
+
var transformedBoxes = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : new Set();
|
|
16465
16732
|
var topRight = this.context.inputStream.getTopRight();
|
|
16466
16733
|
var xOffset = topRight.x;
|
|
16467
16734
|
var yOffset = topRight.y;
|
|
@@ -16471,18 +16738,23 @@ var quagga_Quagga = /*#__PURE__*/function () {
|
|
|
16471
16738
|
if (result.barcodes) {
|
|
16472
16739
|
// TODO: BarcodeInfo may not be the right type here.
|
|
16473
16740
|
result.barcodes.forEach(function (barcode) {
|
|
16474
|
-
return _this2.transformResult(barcode);
|
|
16741
|
+
return _this2.transformResult(barcode, transformedBoxes);
|
|
16475
16742
|
});
|
|
16476
16743
|
}
|
|
16477
16744
|
if (result.line && result.line.length === 2) {
|
|
16478
16745
|
moveLine(result.line, xOffset, yOffset);
|
|
16479
16746
|
}
|
|
16480
|
-
if (result.box) {
|
|
16747
|
+
if (result.box && !transformedBoxes.has(result.box)) {
|
|
16481
16748
|
moveBox(result.box, xOffset, yOffset);
|
|
16749
|
+
transformedBoxes.add(result.box);
|
|
16482
16750
|
}
|
|
16483
16751
|
if (result.boxes && result.boxes.length > 0) {
|
|
16484
16752
|
for (var i = 0; i < result.boxes.length; i++) {
|
|
16485
|
-
|
|
16753
|
+
// Skip if this box has already been transformed (either as result.box or through barcodes)
|
|
16754
|
+
if (!transformedBoxes.has(result.boxes[i])) {
|
|
16755
|
+
moveBox(result.boxes[i], xOffset, yOffset);
|
|
16756
|
+
transformedBoxes.add(result.boxes[i]);
|
|
16757
|
+
}
|
|
16486
16758
|
}
|
|
16487
16759
|
}
|
|
16488
16760
|
}
|
|
@@ -16519,6 +16791,7 @@ var quagga_Quagga = /*#__PURE__*/function () {
|
|
|
16519
16791
|
}, {
|
|
16520
16792
|
key: "publishResult",
|
|
16521
16793
|
value: function publishResult() {
|
|
16794
|
+
var _cfg$inputStream;
|
|
16522
16795
|
var result = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
|
|
16523
16796
|
var imageData = arguments.length > 1 ? arguments[1] : undefined;
|
|
16524
16797
|
var resultToPublish = result;
|
|
@@ -16533,6 +16806,12 @@ var quagga_Quagga = /*#__PURE__*/function () {
|
|
|
16533
16806
|
if (this.hasCodeResult(result)) {
|
|
16534
16807
|
events.publish('detected', resultToPublish);
|
|
16535
16808
|
}
|
|
16809
|
+
|
|
16810
|
+
// Redraw scanner area each frame when locate is false via public API.
|
|
16811
|
+
var cfg = this.context.config;
|
|
16812
|
+
if (cfg && cfg.locate === false && (_cfg$inputStream = cfg.inputStream) !== null && _cfg$inputStream !== void 0 && _cfg$inputStream.area) {
|
|
16813
|
+
this.drawScannerArea();
|
|
16814
|
+
}
|
|
16536
16815
|
}
|
|
16537
16816
|
}, {
|
|
16538
16817
|
key: "locateAndDecode",
|
|
@@ -16589,6 +16868,8 @@ var quagga_Quagga = /*#__PURE__*/function () {
|
|
|
16589
16868
|
var _this$context$config4,
|
|
16590
16869
|
_this4 = this;
|
|
16591
16870
|
var next = null;
|
|
16871
|
+
// frequency specifies a maximum rate, not an absolute. If the system cannot
|
|
16872
|
+
// achieve the requested frequency, scans will occur as fast as possible.
|
|
16592
16873
|
var delay = 1000 / (((_this$context$config4 = this.context.config) === null || _this$context$config4 === void 0 ? void 0 : _this$context$config4.frequency) || 60);
|
|
16593
16874
|
this.context.stopped = false;
|
|
16594
16875
|
var context = this.context;
|
|
@@ -16619,10 +16900,17 @@ var quagga_Quagga = /*#__PURE__*/function () {
|
|
|
16619
16900
|
value: function () {
|
|
16620
16901
|
var _stop = asyncToGenerator_default()(/*#__PURE__*/regenerator_default.a.mark(function _callee2() {
|
|
16621
16902
|
var _this$context$config7;
|
|
16903
|
+
var _this$context$inputSt;
|
|
16622
16904
|
return regenerator_default.a.wrap(function (_context2) {
|
|
16623
16905
|
while (1) switch (_context2.prev = _context2.next) {
|
|
16624
16906
|
case 0:
|
|
16625
16907
|
this.context.stopped = true;
|
|
16908
|
+
// Set initAborted flag if stop() is called while init() is still in progress
|
|
16909
|
+
// (i.e., before framegrabber is initialized). This prevents the canRecord
|
|
16910
|
+
// callback from continuing after stop() was called.
|
|
16911
|
+
if (!this.context.framegrabber) {
|
|
16912
|
+
this.context.initAborted = true;
|
|
16913
|
+
}
|
|
16626
16914
|
adjustWorkerPool(0);
|
|
16627
16915
|
if (!((_this$context$config7 = this.context.config) !== null && _this$context$config7 !== void 0 && _this$context$config7.inputStream && this.context.config.inputStream.type === 'LiveStream')) {
|
|
16628
16916
|
_context2.next = 2;
|
|
@@ -16631,7 +16919,7 @@ var quagga_Quagga = /*#__PURE__*/function () {
|
|
|
16631
16919
|
_context2.next = 1;
|
|
16632
16920
|
return camera_access.release();
|
|
16633
16921
|
case 1:
|
|
16634
|
-
this.context.inputStream.clearEventHandlers();
|
|
16922
|
+
(_this$context$inputSt = this.context.inputStream) === null || _this$context$inputSt === void 0 ? void 0 : _this$context$inputSt.clearEventHandlers();
|
|
16635
16923
|
case 2:
|
|
16636
16924
|
case "end":
|
|
16637
16925
|
return _context2.stop();
|
|
@@ -16660,6 +16948,68 @@ var quagga_Quagga = /*#__PURE__*/function () {
|
|
|
16660
16948
|
}
|
|
16661
16949
|
qworker_registerReader(name, reader);
|
|
16662
16950
|
}
|
|
16951
|
+
}, {
|
|
16952
|
+
key: "drawScannerArea",
|
|
16953
|
+
value: function drawScannerArea() {
|
|
16954
|
+
var _this$context$config8, _this$context$config9, _this$context$config0;
|
|
16955
|
+
var area = (_this$context$config8 = this.context.config) === null || _this$context$config8 === void 0 ? void 0 : (_this$context$config9 = _this$context$config8.inputStream) === null || _this$context$config9 === void 0 ? void 0 : _this$context$config9.area;
|
|
16956
|
+
if (!area) return;
|
|
16957
|
+
var overlayCtx = this.context.canvasContainer.ctx.overlay;
|
|
16958
|
+
if (!overlayCtx) return;
|
|
16959
|
+
|
|
16960
|
+
// Only draw when locate is false
|
|
16961
|
+
if (((_this$context$config0 = this.context.config) === null || _this$context$config0 === void 0 ? void 0 : _this$context$config0.locate) !== false) return;
|
|
16962
|
+
|
|
16963
|
+
// Quick checks for visualization presence
|
|
16964
|
+
var hasAnyStyle = area.borderColor !== undefined && area.borderColor !== '' || area.borderWidth !== undefined && area.borderWidth > 0 || area.backgroundColor !== undefined && area.backgroundColor !== '';
|
|
16965
|
+
if (!hasAnyStyle) return;
|
|
16966
|
+
|
|
16967
|
+
// When locate is false, use the actual adjusted boxSize that matches the scanning area
|
|
16968
|
+
if (!this.context.boxSize) return;
|
|
16969
|
+
|
|
16970
|
+
// Get the offset for the constrained area
|
|
16971
|
+
var topRightOffset = this.context.inputStream.getTopRight();
|
|
16972
|
+
var offsetX = topRightOffset.x;
|
|
16973
|
+
var offsetY = topRightOffset.y;
|
|
16974
|
+
var box = this.context.boxSize;
|
|
16975
|
+
var topLeft = box[0];
|
|
16976
|
+
var bottomLeft = box[1];
|
|
16977
|
+
var topRight = box[3];
|
|
16978
|
+
|
|
16979
|
+
// Add the offset to position correctly on canvas
|
|
16980
|
+
var x = topLeft[0] + offsetX;
|
|
16981
|
+
var y = topLeft[1] + offsetY;
|
|
16982
|
+
var width = topRight[0] - topLeft[0];
|
|
16983
|
+
var height = bottomLeft[1] - topLeft[1];
|
|
16984
|
+
var styleChanged = !this._cachedStyleValues || this._cachedStyleValues.borderColor !== area.borderColor || this._cachedStyleValues.borderWidth !== area.borderWidth || this._cachedStyleValues.backgroundColor !== area.backgroundColor;
|
|
16985
|
+
if (styleChanged) {
|
|
16986
|
+
var _area$borderColor, _area$borderWidth;
|
|
16987
|
+
this._cachedStyleValues = {
|
|
16988
|
+
borderColor: area.borderColor,
|
|
16989
|
+
borderWidth: area.borderWidth,
|
|
16990
|
+
backgroundColor: area.backgroundColor
|
|
16991
|
+
};
|
|
16992
|
+
var shouldDrawBorder = area.borderColor !== undefined || area.borderWidth !== undefined;
|
|
16993
|
+
var color = (_area$borderColor = area.borderColor) !== null && _area$borderColor !== void 0 ? _area$borderColor : 'rgba(0, 255, 0, 0.5)';
|
|
16994
|
+
var borderWidth = shouldDrawBorder ? (_area$borderWidth = area.borderWidth) !== null && _area$borderWidth !== void 0 ? _area$borderWidth : 2 : 0;
|
|
16995
|
+
var bg = area.backgroundColor;
|
|
16996
|
+
this._resolvedStyle = {
|
|
16997
|
+
color: color,
|
|
16998
|
+
width: borderWidth,
|
|
16999
|
+
bg: bg
|
|
17000
|
+
};
|
|
17001
|
+
}
|
|
17002
|
+
var style = this._resolvedStyle;
|
|
17003
|
+
if (style.bg) {
|
|
17004
|
+
overlayCtx.fillStyle = style.bg;
|
|
17005
|
+
overlayCtx.fillRect(x, y, width, height);
|
|
17006
|
+
}
|
|
17007
|
+
if (style.width > 0) {
|
|
17008
|
+
overlayCtx.strokeStyle = style.color;
|
|
17009
|
+
overlayCtx.lineWidth = style.width;
|
|
17010
|
+
overlayCtx.strokeRect(x, y, width, height);
|
|
17011
|
+
}
|
|
17012
|
+
}
|
|
16663
17013
|
}]);
|
|
16664
17014
|
}();
|
|
16665
17015
|
|
|
@@ -16689,6 +17039,8 @@ var QuaggaJSStaticInterface = {
|
|
|
16689
17039
|
};
|
|
16690
17040
|
});
|
|
16691
17041
|
}
|
|
17042
|
+
// Reset the initAborted flag when starting a new init
|
|
17043
|
+
quaggaInstance.context.initAborted = false;
|
|
16692
17044
|
quaggaInstance.context.config = merge_default()({}, config_config, config);
|
|
16693
17045
|
// TODO #179: pending restructure in Issue #179, we are temp disabling workers
|
|
16694
17046
|
if (quaggaInstance.context.config.numOfWorkers > 0) {
|
|
@@ -16705,7 +17057,35 @@ var QuaggaJSStaticInterface = {
|
|
|
16705
17057
|
}
|
|
16706
17058
|
return promise;
|
|
16707
17059
|
},
|
|
16708
|
-
start: function start() {
|
|
17060
|
+
start: function start(config, cb) {
|
|
17061
|
+
// If config is provided, call init() then start()
|
|
17062
|
+
if (config) {
|
|
17063
|
+
var promise;
|
|
17064
|
+
if (!cb) {
|
|
17065
|
+
promise = new Promise(function (resolve, reject) {
|
|
17066
|
+
cb = function cb(err) {
|
|
17067
|
+
err ? reject(err) : resolve();
|
|
17068
|
+
};
|
|
17069
|
+
});
|
|
17070
|
+
}
|
|
17071
|
+
this.init(config, function (err) {
|
|
17072
|
+
if (err) {
|
|
17073
|
+
cb(err);
|
|
17074
|
+
return;
|
|
17075
|
+
}
|
|
17076
|
+
try {
|
|
17077
|
+
instance.start();
|
|
17078
|
+
cb();
|
|
17079
|
+
} catch (startErr) {
|
|
17080
|
+
cb(startErr);
|
|
17081
|
+
}
|
|
17082
|
+
});
|
|
17083
|
+
return promise;
|
|
17084
|
+
}
|
|
17085
|
+
// If init() hasn't been completed, throw an error
|
|
17086
|
+
if (!_context.framegrabber) {
|
|
17087
|
+
throw new Error('start() was called before init() completed. ' + 'Call init() first, or call start(config) to combine init and start.');
|
|
17088
|
+
}
|
|
16709
17089
|
return instance.start();
|
|
16710
17090
|
},
|
|
16711
17091
|
stop: function stop() {
|