idmission-web-sdk 2.5.65-react16compat.0 → 2.5.65

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.
@@ -1,6 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var React = require('react');
4
+ var vanilla = require('zustand/vanilla');
4
5
  var platform = require('platform');
5
6
  var tusJsClient = require('tus-js-client');
6
7
  var SparkMD5 = require('spark-md5');
@@ -10,8 +11,10 @@ var shim = require('use-sync-external-store/shim');
10
11
  var reactI18next = require('react-i18next');
11
12
  var LanguageDetector = require('i18next-browser-languagedetector');
12
13
  var i18next = require('i18next');
13
- var ReactDOM = require('react-dom');
14
+ var reactDom = require('react-dom');
14
15
  var SignaturePad = require('signature_pad');
16
+ var thinkingOrbs = require('thinking-orbs');
17
+ var ReactDOM = require('react-dom/client');
15
18
  var tasksVision = require('@mediapipe/tasks-vision');
16
19
  var core = require('@litertjs/core');
17
20
 
@@ -21,8 +24,8 @@ var React__default = /*#__PURE__*/_interopDefaultCompat(React);
21
24
  var platform__default = /*#__PURE__*/_interopDefaultCompat(platform);
22
25
  var SparkMD5__default = /*#__PURE__*/_interopDefaultCompat(SparkMD5);
23
26
  var LanguageDetector__default = /*#__PURE__*/_interopDefaultCompat(LanguageDetector);
24
- var ReactDOM__default = /*#__PURE__*/_interopDefaultCompat(ReactDOM);
25
27
  var SignaturePad__default = /*#__PURE__*/_interopDefaultCompat(SignaturePad);
28
+ var ReactDOM__default = /*#__PURE__*/_interopDefaultCompat(ReactDOM);
26
29
 
27
30
  // Extracted from the barrel so modules inside this package can read the
28
31
  // version without importing index.ts (which would be circular).
@@ -454,17 +457,17 @@ function _iterableToArrayLimit(r, l) {
454
457
  }
455
458
  }
456
459
 
457
- function _arrayLikeToArray$w(r, a) {
460
+ function _arrayLikeToArray$v(r, a) {
458
461
  (null == a || a > r.length) && (a = r.length);
459
462
  for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
460
463
  return n;
461
464
  }
462
465
 
463
- function _unsupportedIterableToArray$w(r, a) {
466
+ function _unsupportedIterableToArray$v(r, a) {
464
467
  if (r) {
465
- if ("string" == typeof r) return _arrayLikeToArray$w(r, a);
468
+ if ("string" == typeof r) return _arrayLikeToArray$v(r, a);
466
469
  var t = {}.toString.call(r).slice(8, -1);
467
- 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) ? _arrayLikeToArray$w(r, a) : void 0;
470
+ 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) ? _arrayLikeToArray$v(r, a) : void 0;
468
471
  }
469
472
  }
470
473
 
@@ -473,11 +476,11 @@ function _nonIterableRest() {
473
476
  }
474
477
 
475
478
  function _slicedToArray(r, e) {
476
- return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray$w(r, e) || _nonIterableRest();
479
+ return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray$v(r, e) || _nonIterableRest();
477
480
  }
478
481
 
479
482
  function _arrayWithoutHoles(r) {
480
- if (Array.isArray(r)) return _arrayLikeToArray$w(r);
483
+ if (Array.isArray(r)) return _arrayLikeToArray$v(r);
481
484
  }
482
485
 
483
486
  function _iterableToArray(r) {
@@ -489,7 +492,7 @@ function _nonIterableSpread() {
489
492
  }
490
493
 
491
494
  function _toConsumableArray(r) {
492
- return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray$w(r) || _nonIterableSpread();
495
+ return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray$v(r) || _nonIterableSpread();
493
496
  }
494
497
 
495
498
  var webSdkCoreVersion = '0.4.0';
@@ -1264,9 +1267,9 @@ var attemptStatuses = ["active", "completed", "failed", "superseded", "disposed"
1264
1267
  ({
1265
1268
  workflowMilestones: [].concat(_toConsumableArray(workflowMilestones), ["task-completed"])});
1266
1269
 
1267
- function _createForOfIteratorHelperLoose$v(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$v(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
1268
- function _unsupportedIterableToArray$v(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$v(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) ? _arrayLikeToArray$v(r, a) : void 0; } }
1269
- function _arrayLikeToArray$v(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; }
1270
+ function _createForOfIteratorHelperLoose$u(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$u(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
1271
+ function _unsupportedIterableToArray$u(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$u(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) ? _arrayLikeToArray$u(r, a) : void 0; } }
1272
+ function _arrayLikeToArray$u(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; }
1270
1273
  var maximumBytes = 32 * 1024;
1271
1274
  var maximumTime = 86400000;
1272
1275
  var uuidPattern = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
@@ -1334,7 +1337,7 @@ function validateSnapshot(report) {
1334
1337
  unique(report.phaseTotals.map(function (total) {
1335
1338
  return total.phase;
1336
1339
  }));
1337
- for (var _iterator = _createForOfIteratorHelperLoose$v(report.phaseTotals), _step; !(_step = _iterator()).done;) {
1340
+ for (var _iterator = _createForOfIteratorHelperLoose$u(report.phaseTotals), _step; !(_step = _iterator()).done;) {
1338
1341
  var _total4 = _step.value;
1339
1342
  requireValid(member(phases, _total4.phase) && integer(_total4.completions, 1000000) && _total4.completions <= _total4.duration.entries);
1340
1343
  durationValid(_total4.duration);
@@ -1356,7 +1359,7 @@ function validateSnapshot(report) {
1356
1359
  requireValid(report.recentTransitions.length <= 32);
1357
1360
  var index = 0;
1358
1361
  var atMs = 0;
1359
- for (var _iterator2 = _createForOfIteratorHelperLoose$v(report.recentTransitions), _step2; !(_step2 = _iterator2()).done;) {
1362
+ for (var _iterator2 = _createForOfIteratorHelperLoose$u(report.recentTransitions), _step2; !(_step2 = _iterator2()).done;) {
1360
1363
  var transition = _step2.value;
1361
1364
  requireValid(member(transitionKinds, transition.kind));
1362
1365
  requireValid(integer(transition.index, 1000000) && transition.index > index && integer(transition.atMs) && transition.atMs >= atMs && transition.atMs <= report.elapsedMs);
@@ -1380,12 +1383,12 @@ function validateSnapshot(report) {
1380
1383
  unique(report.controllerGuidanceTotals.map(function (total) {
1381
1384
  return JSON.stringify([total.phase, total.guidance]);
1382
1385
  }));
1383
- for (var _iterator3 = _createForOfIteratorHelperLoose$v(report.guidanceTotals), _step3; !(_step3 = _iterator3()).done;) {
1386
+ for (var _iterator3 = _createForOfIteratorHelperLoose$u(report.guidanceTotals), _step3; !(_step3 = _iterator3()).done;) {
1384
1387
  var _total2 = _step3.value;
1385
1388
  durationValid(_total2.duration);
1386
1389
  exposureValid(_total2.phase, _total2.exposure);
1387
1390
  }
1388
- for (var _iterator4 = _createForOfIteratorHelperLoose$v(report.controllerGuidanceTotals), _step4; !(_step4 = _iterator4()).done;) {
1391
+ for (var _iterator4 = _createForOfIteratorHelperLoose$u(report.controllerGuidanceTotals), _step4; !(_step4 = _iterator4()).done;) {
1389
1392
  var _total3 = _step4.value;
1390
1393
  durationValid(_total3.duration);
1391
1394
  guidanceValid(_total3.phase, _total3.guidance, false);
@@ -1419,7 +1422,7 @@ function encodeProgressBatch(batch) {
1419
1422
  requireValid(batch.schemaVersion === 1 && batch.sdkVersion.length > 0 && batch.sdkVersion.length <= 32 && batch.sessionId.length > 0 && uuidPattern.test(batch.producerId) && integer(batch.sentAtUnixMs, Number.MAX_SAFE_INTEGER));
1420
1423
  var reports = [];
1421
1424
  var dropped = [];
1422
- for (var _iterator5 = _createForOfIteratorHelperLoose$v(batch.reports), _step5; !(_step5 = _iterator5()).done;) {
1425
+ for (var _iterator5 = _createForOfIteratorHelperLoose$u(batch.reports), _step5; !(_step5 = _iterator5()).done;) {
1423
1426
  var report = _step5.value;
1424
1427
  try {
1425
1428
  validateSnapshot(report);
@@ -1448,9 +1451,9 @@ function encodeProgressBatch(batch) {
1448
1451
  };
1449
1452
  }
1450
1453
 
1451
- function _createForOfIteratorHelperLoose$u(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$u(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
1452
- function _unsupportedIterableToArray$u(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$u(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) ? _arrayLikeToArray$u(r, a) : void 0; } }
1453
- function _arrayLikeToArray$u(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; }
1454
+ function _createForOfIteratorHelperLoose$t(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$t(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
1455
+ function _unsupportedIterableToArray$t(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$t(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) ? _arrayLikeToArray$t(r, a) : void 0; } }
1456
+ function _arrayLikeToArray$t(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; }
1454
1457
  var taskOpeners = new WeakMap();
1455
1458
  var inertObserver = {
1456
1459
  observe: function observe() {},
@@ -1504,7 +1507,7 @@ function createSessionActor(options, deps) {
1504
1507
  var due = new Map();
1505
1508
  var eligibilityRetries = new Map();
1506
1509
  function dropped(report) {
1507
- for (var _iterator = _createForOfIteratorHelperLoose$u(streams), _step; !(_step = _iterator()).done;) {
1510
+ for (var _iterator = _createForOfIteratorHelperLoose$t(streams), _step; !(_step = _iterator()).done;) {
1508
1511
  var stream = _step.value;
1509
1512
  if (stream.state.report.streamId === report.streamId) stream.state = _extends({}, stream.state, {
1510
1513
  report: _extends({}, stream.state.report, {
@@ -1548,7 +1551,7 @@ function createSessionActor(options, deps) {
1548
1551
  var retained = new Set(queued.map(function (report) {
1549
1552
  return report.sequence;
1550
1553
  }));
1551
- for (var _iterator2 = _createForOfIteratorHelperLoose$u(due.keys()), _step2; !(_step2 = _iterator2()).done;) {
1554
+ for (var _iterator2 = _createForOfIteratorHelperLoose$t(due.keys()), _step2; !(_step2 = _iterator2()).done;) {
1552
1555
  var _sequence = _step2.value;
1553
1556
  if (!retained.has(_sequence)) due["delete"](_sequence);
1554
1557
  }
@@ -1561,7 +1564,7 @@ function createSessionActor(options, deps) {
1561
1564
  var keys = new Set(reports.map(function (report) {
1562
1565
  return report.sequence;
1563
1566
  }));
1564
- for (var _iterator3 = _createForOfIteratorHelperLoose$u(pending), _step3; !(_step3 = _iterator3()).done;) {
1567
+ for (var _iterator3 = _createForOfIteratorHelperLoose$t(pending), _step3; !(_step3 = _iterator3()).done;) {
1565
1568
  var _step3$value = _slicedToArray(_step3.value, 2),
1566
1569
  key = _step3$value[0],
1567
1570
  report = _step3$value[1];
@@ -1585,14 +1588,14 @@ function createSessionActor(options, deps) {
1585
1588
  if ((_emergency = emergency) != null && _emergency.reports.some(function (report) {
1586
1589
  return report.context === context;
1587
1590
  })) emergency = null;
1588
- for (var _iterator4 = _createForOfIteratorHelperLoose$u(pending), _step4; !(_step4 = _iterator4()).done;) {
1591
+ for (var _iterator4 = _createForOfIteratorHelperLoose$t(pending), _step4; !(_step4 = _iterator4()).done;) {
1589
1592
  var _step4$value = _slicedToArray(_step4.value, 2),
1590
1593
  key = _step4$value[0],
1591
1594
  report = _step4$value[1];
1592
1595
  if (report.context === context) pending["delete"](key);
1593
1596
  }
1594
1597
  for (var i = terminal.length - 1; i >= 0; i--) if (terminal[i].context === context) terminal.splice(i, 1);
1595
- for (var _iterator5 = _createForOfIteratorHelperLoose$u(streams), _step5; !(_step5 = _iterator5()).done;) {
1598
+ for (var _iterator5 = _createForOfIteratorHelperLoose$t(streams), _step5; !(_step5 = _iterator5()).done;) {
1596
1599
  var stream = _step5.value;
1597
1600
  if (stream.state.report.context === context) {
1598
1601
  stream.disposed = true;
@@ -1621,7 +1624,7 @@ function createSessionActor(options, deps) {
1621
1624
  unsubscribe();
1622
1625
  cancelTimer == null || cancelTimer();
1623
1626
  cancelRequest == null || cancelRequest();
1624
- for (var _iterator6 = _createForOfIteratorHelperLoose$u(streams), _step6; !(_step6 = _iterator6()).done;) {
1627
+ for (var _iterator6 = _createForOfIteratorHelperLoose$t(streams), _step6; !(_step6 = _iterator6()).done;) {
1625
1628
  var stream = _step6.value;
1626
1629
  stream.disposed = true;
1627
1630
  }
@@ -1643,7 +1646,7 @@ function createSessionActor(options, deps) {
1643
1646
  sentAtUnixMs: Math.floor(deps.unixMs()),
1644
1647
  reports: reports
1645
1648
  });
1646
- for (var _iterator7 = _createForOfIteratorHelperLoose$u(result.dropped), _step7; !(_step7 = _iterator7()).done;) {
1649
+ for (var _iterator7 = _createForOfIteratorHelperLoose$t(result.dropped), _step7; !(_step7 = _iterator7()).done;) {
1647
1650
  var report = _step7.value;
1648
1651
  dropped(report);
1649
1652
  removeReports([report]);
@@ -1813,14 +1816,14 @@ function createSessionActor(options, deps) {
1813
1816
  retries = 0;
1814
1817
  failureStreak = 0;
1815
1818
  } else if (result.kind === "permanent") {
1816
- for (_iterator11 = _createForOfIteratorHelperLoose$u(sending.reports); !(_step11 = _iterator11()).done;) {
1819
+ for (_iterator11 = _createForOfIteratorHelperLoose$t(sending.reports); !(_step11 = _iterator11()).done;) {
1817
1820
  report = _step11.value;
1818
1821
  disable(report.context);
1819
1822
  }
1820
1823
  } else {
1821
1824
  backoff(result);
1822
1825
  if (++retries > 3) {
1823
- for (_iterator12 = _createForOfIteratorHelperLoose$u(sending.reports); !(_step12 = _iterator12()).done;) {
1826
+ for (_iterator12 = _createForOfIteratorHelperLoose$t(sending.reports); !(_step12 = _iterator12()).done;) {
1824
1827
  _report = _step12.value;
1825
1828
  dropped(_report);
1826
1829
  }
@@ -1842,7 +1845,7 @@ function createSessionActor(options, deps) {
1842
1845
  backoff({});
1843
1846
  if (authorizing) failedEligibility(authorizing);
1844
1847
  if (frozen && ++retries > 3) {
1845
- for (_iterator13 = _createForOfIteratorHelperLoose$u(frozen.reports); !(_step13 = _iterator13()).done;) {
1848
+ for (_iterator13 = _createForOfIteratorHelperLoose$t(frozen.reports); !(_step13 = _iterator13()).done;) {
1846
1849
  _report2 = _step13.value;
1847
1850
  dropped(_report2);
1848
1851
  }
@@ -1885,7 +1888,7 @@ function createSessionActor(options, deps) {
1885
1888
  } else if (outcome.kind === "committed") {
1886
1889
  if (emergency === sending) emergency = null;
1887
1890
  } else if (outcome.kind === "permanent") {
1888
- for (var _iterator8 = _createForOfIteratorHelperLoose$u(sending.reports), _step8; !(_step8 = _iterator8()).done;) {
1891
+ for (var _iterator8 = _createForOfIteratorHelperLoose$t(sending.reports), _step8; !(_step8 = _iterator8()).done;) {
1889
1892
  var report = _step8.value;
1890
1893
  disable(report.context);
1891
1894
  }
@@ -1917,7 +1920,7 @@ function createSessionActor(options, deps) {
1917
1920
  }
1918
1921
  function tick() {
1919
1922
  if (disposed || visibility === "hidden") return;
1920
- for (var _iterator9 = _createForOfIteratorHelperLoose$u(streams), _step9; !(_step9 = _iterator9()).done;) {
1923
+ for (var _iterator9 = _createForOfIteratorHelperLoose$t(streams), _step9; !(_step9 = _iterator9()).done;) {
1921
1924
  var stream = _step9.value;
1922
1925
  var report = prepareDeadline(stream);
1923
1926
  if (!(report != null && report.current)) continue;
@@ -1944,7 +1947,7 @@ function createSessionActor(options, deps) {
1944
1947
  if (disposed || visibility === "hidden") return;
1945
1948
  var delay = Infinity;
1946
1949
  if (!busy && (pending.size || terminal.length || frozen || emergency)) delay = Math.max(0, deliveryReadyAt() - deps.now());
1947
- for (var _iterator0 = _createForOfIteratorHelperLoose$u(streams), _step0; !(_step0 = _iterator0()).done;) {
1950
+ for (var _iterator0 = _createForOfIteratorHelperLoose$t(streams), _step0; !(_step0 = _iterator0()).done;) {
1948
1951
  var stream = _step0.value;
1949
1952
  var report = prepareDeadline(stream);
1950
1953
  if (!(report != null && report.current)) continue;
@@ -2030,7 +2033,7 @@ function createSessionActor(options, deps) {
2030
2033
  return guard$2(function () {
2031
2034
  if (disposed || next === visibility) return;
2032
2035
  visibility = next;
2033
- for (var _iterator1 = _createForOfIteratorHelperLoose$u(streams), _step1; !(_step1 = _iterator1()).done;) {
2036
+ for (var _iterator1 = _createForOfIteratorHelperLoose$t(streams), _step1; !(_step1 = _iterator1()).done;) {
2034
2037
  var stream = _step1.value;
2035
2038
  if (stream.state.report.attemptStatus !== "active") continue;
2036
2039
  stream.state = reduceObservation(stream.state, {
@@ -2071,7 +2074,7 @@ function createSessionActor(options, deps) {
2071
2074
  if (taskDisposed) return;
2072
2075
  taskDisposed = true;
2073
2076
  if (workflowStream) close(workflowStream, "disposed");
2074
- for (var _iterator10 = _createForOfIteratorHelperLoose$u(captures), _step10; !(_step10 = _iterator10()).done;) {
2077
+ for (var _iterator10 = _createForOfIteratorHelperLoose$t(captures), _step10; !(_step10 = _iterator10()).done;) {
2075
2078
  var capture = _step10.value;
2076
2079
  capture.dispose();
2077
2080
  }
@@ -2209,44 +2212,6 @@ function isApprovedResponse(action, response) {
2209
2212
  return action === SubmissionAction.ENROLL ? result === "Customer Onboarded" : result === "Approved";
2210
2213
  }
2211
2214
 
2212
- var createStoreImpl = function createStoreImpl(createState) {
2213
- var state;
2214
- var listeners = /* @__PURE__ */new Set();
2215
- var setState = function setState(partial, replace) {
2216
- var nextState = typeof partial === "function" ? partial(state) : partial;
2217
- if (!Object.is(nextState, state)) {
2218
- var previousState = state;
2219
- state = (replace != null ? replace : typeof nextState !== "object" || nextState === null) ? nextState : Object.assign({}, state, nextState);
2220
- listeners.forEach(function (listener) {
2221
- return listener(state, previousState);
2222
- });
2223
- }
2224
- };
2225
- var getState = function getState() {
2226
- return state;
2227
- };
2228
- var getInitialState = function getInitialState() {
2229
- return initialState;
2230
- };
2231
- var subscribe = function subscribe(listener) {
2232
- listeners.add(listener);
2233
- return function () {
2234
- return listeners["delete"](listener);
2235
- };
2236
- };
2237
- var api = {
2238
- setState: setState,
2239
- getState: getState,
2240
- getInitialState: getInitialState,
2241
- subscribe: subscribe
2242
- };
2243
- var initialState = state = createState(setState, getState, api);
2244
- return api;
2245
- };
2246
- var createStore = function createStore(createState) {
2247
- return createState ? createStoreImpl(createState) : createStoreImpl;
2248
- };
2249
-
2250
2215
  function sessionReducer(state, action) {
2251
2216
  switch (action.type) {
2252
2217
  case 'setSessionId':
@@ -2904,7 +2869,7 @@ function _objectWithoutPropertiesLoose(r, e) {
2904
2869
  return t;
2905
2870
  }
2906
2871
 
2907
- var _excluded$k = ["nonce", "web", "os"];
2872
+ var _excluded$j = ["nonce", "web", "os"];
2908
2873
  /**
2909
2874
  * Grade the envelope from whichever inputs are present:
2910
2875
  * - OS token present -> 'os-attested' (attach `os`)
@@ -2918,7 +2883,7 @@ function buildClientAttestation(input) {
2918
2883
  var nonce = input.nonce,
2919
2884
  web = input.web,
2920
2885
  os = input.os,
2921
- versions = _objectWithoutPropertiesLoose(input, _excluded$k);
2886
+ versions = _objectWithoutPropertiesLoose(input, _excluded$j);
2922
2887
  if (os) {
2923
2888
  return _extends({
2924
2889
  assuranceLevel: 'os-attested',
@@ -3501,9 +3466,9 @@ function blobToB64(blob) {
3501
3466
  });
3502
3467
  }
3503
3468
 
3504
- function _createForOfIteratorHelperLoose$t(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$t(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
3505
- function _unsupportedIterableToArray$t(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$t(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) ? _arrayLikeToArray$t(r, a) : void 0; } }
3506
- function _arrayLikeToArray$t(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; }
3469
+ function _createForOfIteratorHelperLoose$s(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$s(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
3470
+ function _unsupportedIterableToArray$s(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$s(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) ? _arrayLikeToArray$s(r, a) : void 0; } }
3471
+ function _arrayLikeToArray$s(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; }
3507
3472
  /**
3508
3473
  * Parser for AAMVA (American Association of Motor Vehicle Administrators)
3509
3474
  * PDF417 barcode data found on US and Canadian driver's licenses.
@@ -3765,7 +3730,7 @@ function parseAAMVABarcode(rawData) {
3765
3730
  DAD: false
3766
3731
  };
3767
3732
  var daaValue = null;
3768
- for (var _iterator = _createForOfIteratorHelperLoose$t(lines), _step; !(_step = _iterator()).done;) {
3733
+ for (var _iterator = _createForOfIteratorHelperLoose$s(lines), _step; !(_step = _iterator()).done;) {
3769
3734
  var line = _step.value;
3770
3735
  var match = line.match(fieldRegex);
3771
3736
  if (match) {
@@ -3806,7 +3771,7 @@ function parseAAMVABarcode(rawData) {
3806
3771
  result.fields.push(field);
3807
3772
  }
3808
3773
  };
3809
- for (var _iterator2 = _createForOfIteratorHelperLoose$t(daaFields), _step2; !(_step2 = _iterator2()).done;) {
3774
+ for (var _iterator2 = _createForOfIteratorHelperLoose$s(daaFields), _step2; !(_step2 = _iterator2()).done;) {
3810
3775
  _loop();
3811
3776
  }
3812
3777
  }
@@ -4862,7 +4827,7 @@ function createIdmissionClient(config) {
4862
4827
  sessionCheckState: 'READY',
4863
4828
  canRefreshSession: typeof config.sessionId === 'function'
4864
4829
  };
4865
- var store = createStore(function () {
4830
+ var store = vanilla.createStore(function () {
4866
4831
  return {
4867
4832
  session: initialSession,
4868
4833
  submissionStatus: SubmissionStatus.READY
@@ -6499,7 +6464,7 @@ var fr = {
6499
6464
  'Barcode capture in progress, please hold still': 'Capture du code-barres en cours, veuillez ne pas bouger'
6500
6465
  };
6501
6466
 
6502
- var it$1 = {
6467
+ var it = {
6503
6468
  'English - en': 'Italian - it',
6504
6469
  'Use your device camera to capture your ID': 'Utilizzare la fotocamera del dispositivo per acquisire il documento',
6505
6470
  'Use your iPhone as a webcam': 'Utilizza iPhone come webcam',
@@ -6795,7 +6760,7 @@ var ja = {
6795
6760
  'Barcode capture in progress, please hold still': 'バーコードを読み取っています。動かないでください'
6796
6761
  };
6797
6762
 
6798
- var pt$1 = {
6763
+ var pt = {
6799
6764
  'English - en': 'Portuguese (Brazil) - pt',
6800
6765
  'Use your device camera to capture your ID': 'Usar a câmera do dispositivo para fotografar sua identidade',
6801
6766
  'Use your iPhone as a webcam': 'Use seu iPhone como uma câmera Web',
@@ -7345,13 +7310,13 @@ var resources = {
7345
7310
  translation: withThreeOhTranslations('fr', fr)
7346
7311
  },
7347
7312
  it: {
7348
- translation: withThreeOhTranslations('it', it$1)
7313
+ translation: withThreeOhTranslations('it', it)
7349
7314
  },
7350
7315
  ja: {
7351
7316
  translation: withThreeOhTranslations('ja', ja)
7352
7317
  },
7353
7318
  pt: {
7354
- translation: withThreeOhTranslations('pt', pt$1)
7319
+ translation: withThreeOhTranslations('pt', pt)
7355
7320
  },
7356
7321
  ru: {
7357
7322
  translation: withThreeOhTranslations('ru', ru)
@@ -7666,10 +7631,10 @@ function useGuideOrientationContext() {
7666
7631
  }
7667
7632
 
7668
7633
  var _templateObject$_, _templateObject2$Q;
7669
- var _excluded$j = ["isRearFacing"];
7634
+ var _excluded$i = ["isRearFacing"];
7670
7635
  var CameraVideoTag = /*#__PURE__*/React.forwardRef(function CameraVideoTag(_ref, ref) {
7671
7636
  var isRearFacing = _ref.isRearFacing,
7672
- props = _objectWithoutPropertiesLoose(_ref, _excluded$j);
7637
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$i);
7673
7638
  return jsxRuntime.jsx(FullscreenVideoTag, _extends({
7674
7639
  autoPlay: true,
7675
7640
  playsInline: true,
@@ -7737,9 +7702,9 @@ function ScalingCameraFeed(_ref2) {
7737
7702
  }
7738
7703
 
7739
7704
  var _templateObject$Z, _templateObject2$P, _templateObject3$D, _templateObject4$y, _templateObject5$t, _templateObject6$l;
7740
- function _createForOfIteratorHelperLoose$s(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$s(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
7741
- function _unsupportedIterableToArray$s(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$s(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) ? _arrayLikeToArray$s(r, a) : void 0; } }
7742
- function _arrayLikeToArray$s(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; }
7705
+ function _createForOfIteratorHelperLoose$r(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$r(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
7706
+ function _unsupportedIterableToArray$r(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$r(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) ? _arrayLikeToArray$r(r, a) : void 0; } }
7707
+ function _arrayLikeToArray$r(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; }
7743
7708
  /** Displays camera readiness and available source-frame dimensions. */
7744
7709
  function CameraDebugStatus(_ref) {
7745
7710
  var ready = _ref.ready,
@@ -7756,7 +7721,7 @@ function DebugStatsPane(_ref2) {
7756
7721
  });
7757
7722
  var portalLocation = document.getElementById('idmission-above-guides-content');
7758
7723
  if (!portalLocation) return element;
7759
- return /*#__PURE__*/ReactDOM.createPortal(element, portalLocation);
7724
+ return /*#__PURE__*/reactDom.createPortal(element, portalLocation);
7760
7725
  }
7761
7726
  var DebugStatsPaneDiv = styledComponents.styled.span(_templateObject$Z || (_templateObject$Z = _taggedTemplateLiteralLoose(["\n font-size: 16px;\n font-family: monospace;\n position: absolute;\n left: 20px;\n bottom: 20px;\n margin-right: 20px;\n padding: 8px;\n color: limegreen;\n background: rgba(0, 0, 0, 0.5);\n z-index: 10002;\n pointer-events: none;\n"])));
7762
7727
  var ObjectDetectionDebugOverlayDiv = styledComponents.styled.div(_templateObject2$P || (_templateObject2$P = _taggedTemplateLiteralLoose(["\n position: absolute;\n z-index: 1001;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n max-width: 100%;\n max-height: 100%;\n overflow: hidden;\n pointer-events: none;\n ", "\n transform-style: preserve-3d;\n"])), function (_ref3) {
@@ -8004,7 +7969,7 @@ function SelfieCaptureFaceMesh(_ref15) {
8004
7969
  groups.forEach(function (indices, color) {
8005
7970
  ctx.fillStyle = color;
8006
7971
  ctx.beginPath();
8007
- for (var _iterator = _createForOfIteratorHelperLoose$s(indices), _step; !(_step = _iterator()).done;) {
7972
+ for (var _iterator = _createForOfIteratorHelperLoose$r(indices), _step; !(_step = _iterator()).done;) {
8008
7973
  var _i = _step.value;
8009
7974
  var p = meshLandmarks[_i];
8010
7975
  ctx.moveTo(p.x + dotRadius, p.y);
@@ -8159,7 +8124,7 @@ function BrowserEdgeTint(_ref) {
8159
8124
  }, []);
8160
8125
  if (!target) return null;
8161
8126
  var bottomColor = hiddenBottomColor != null ? hiddenBottomColor : color;
8162
- return /*#__PURE__*/ReactDOM.createPortal(jsxRuntime.jsxs(jsxRuntime.Fragment, {
8127
+ return /*#__PURE__*/reactDom.createPortal(jsxRuntime.jsxs(jsxRuntime.Fragment, {
8163
8128
  children: [jsxRuntime.jsx(EdgeStrip, {
8164
8129
  "$edge": "top",
8165
8130
  "$color": color,
@@ -8186,7 +8151,7 @@ var EdgeStrip = styledComponents.styled.div(_templateObject$Y || (_templateObjec
8186
8151
  });
8187
8152
 
8188
8153
  var _templateObject$X;
8189
- var _excluded$i = ["children", "className", "colors", "disabled", "finished", "variant"];
8154
+ var _excluded$h = ["children", "className", "colors", "disabled", "finished", "variant"];
8190
8155
  var LoaderButton = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
8191
8156
  var children = _ref.children,
8192
8157
  className = _ref.className,
@@ -8196,7 +8161,7 @@ var LoaderButton = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
8196
8161
  finished = _ref.finished,
8197
8162
  _ref$variant = _ref.variant,
8198
8163
  variant = _ref$variant === void 0 ? 'primary' : _ref$variant,
8199
- props = _objectWithoutPropertiesLoose(_ref, _excluded$i);
8164
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$h);
8200
8165
  var buttonRef = React.useRef(null);
8201
8166
  var laddaRef = React.useRef(null);
8202
8167
  var _useState = React.useState(false),
@@ -8273,7 +8238,7 @@ var GuidanceMessageContainer = function GuidanceMessageContainer(props) {
8273
8238
  var element = jsxRuntime.jsx(GuidanceMessageContainerDiv, _extends({}, props));
8274
8239
  var portalLocation = document.getElementById('idmission-above-guides-content');
8275
8240
  if (!portalLocation) return element;
8276
- return /*#__PURE__*/ReactDOM.createPortal(element, portalLocation);
8241
+ return /*#__PURE__*/reactDom.createPortal(element, portalLocation);
8277
8242
  };
8278
8243
  var GuidanceMessage = styledComponents.styled.div(_templateObject2$O || (_templateObject2$O = _taggedTemplateLiteralLoose(["\n margin-left: auto;\n margin-right: auto;\n background: ", ";\n color: ", ";\n border-radius: 8px;\n z-index: 10001;\n padding: 16px 24px;\n font-size: 18px;\n font-weight: bold;\n box-shadow:\n 0 1px 3px 0 rgb(0 0 0 / 0.1),\n 0 1px 2px -1px rgb(0 0 0 / 0.1);\n"])), function (props) {
8279
8244
  var _ref3, _props$$background, _props$theme, _props$$variant;
@@ -8507,7 +8472,7 @@ var error = function error() {
8507
8472
  return (console.error ).apply(void 0, arguments);
8508
8473
  }; // eslint-disable-line no-console
8509
8474
 
8510
- var _excluded$h = ["children", "status", "borderWidth", "borderRadius", "borderColor", "aspectRatio", "progress", "guideBoxDisabled"],
8475
+ var _excluded$g = ["children", "status", "borderWidth", "borderRadius", "borderColor", "aspectRatio", "progress", "guideBoxDisabled"],
8511
8476
  _excluded2$5 = ["borderRadius", "borderColor", "borderWidth", "borderOpacity", "progress", "isProgressBar", "scaleBorderRadius"];
8512
8477
  var _templateObject$S, _templateObject2$L, _templateObject3$A, _templateObject4$v, _templateObject5$r, _templateObject6$j, _templateObject7$g;
8513
8478
  var IdCardGuideImageContainer = styledComponents.styled(IdCardBorder)(_templateObject$S || (_templateObject$S = _taggedTemplateLiteralLoose(["\n position: relative;\n ", "\n box-sizing: border-box;\n max-width: 100%;\n max-height: 100%;\n ", ";\n"])), function (props) {
@@ -8537,7 +8502,7 @@ function IdCardBorder(_ref) {
8537
8502
  progress = _ref$progress === void 0 ? 0 : _ref$progress,
8538
8503
  _ref$guideBoxDisabled = _ref.guideBoxDisabled,
8539
8504
  guideBoxDisabled = _ref$guideBoxDisabled === void 0 ? false : _ref$guideBoxDisabled,
8540
- props = _objectWithoutPropertiesLoose(_ref, _excluded$h);
8505
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$g);
8541
8506
  var _useResizeObserver = useResizeObserver(),
8542
8507
  ref = _useResizeObserver.ref,
8543
8508
  _useResizeObserver$wi = _useResizeObserver.width,
@@ -9927,11 +9892,11 @@ var LoadingGraphicPhoneGroup = styledComponents.styled.g(_templateObject4$s || (
9927
9892
  return props.$offScreen ? '40px' : '0';
9928
9893
  });
9929
9894
 
9930
- var _excluded$g = ["state"];
9895
+ var _excluded$f = ["state"];
9931
9896
  function LoadingListItemIndicator(_ref) {
9932
9897
  var _ref$state = _ref.state,
9933
9898
  state = _ref$state === void 0 ? 'running' : _ref$state,
9934
- svgProps = _objectWithoutPropertiesLoose(_ref, _excluded$g);
9899
+ svgProps = _objectWithoutPropertiesLoose(_ref, _excluded$f);
9935
9900
  return jsxRuntime.jsx("svg", _extends({
9936
9901
  width: "16",
9937
9902
  height: "16",
@@ -10436,9 +10401,9 @@ function loadingOverlayBottomEdgeColor(theme, modelsReady) {
10436
10401
  });
10437
10402
  }
10438
10403
 
10439
- function _createForOfIteratorHelperLoose$r(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$r(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
10440
- function _unsupportedIterableToArray$r(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$r(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) ? _arrayLikeToArray$r(r, a) : void 0; } }
10441
- function _arrayLikeToArray$r(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; }
10404
+ function _createForOfIteratorHelperLoose$q(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$q(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
10405
+ function _unsupportedIterableToArray$q(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$q(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) ? _arrayLikeToArray$q(r, a) : void 0; } }
10406
+ function _arrayLikeToArray$q(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; }
10442
10407
  var DEFAULT_THRESHOLD = 0.03;
10443
10408
  // Minimum confidence a `'Finger'` detection must clear before it counts
10444
10409
  // toward occlusion. The LiteRT document detector emits low-score
@@ -10489,7 +10454,7 @@ function computeFingerOcclusion(bestDocument, detectedObjects, documentType, thr
10489
10454
  // overlap each other the shared area gets double-counted — that errs
10490
10455
  // toward over-blocking, which is the safer direction for occlusion.
10491
10456
  var totalOverlap = 0;
10492
- for (var _iterator = _createForOfIteratorHelperLoose$r(detectedObjects), _step; !(_step = _iterator()).done;) {
10457
+ for (var _iterator = _createForOfIteratorHelperLoose$q(detectedObjects), _step; !(_step = _iterator()).done;) {
10493
10458
  var obj = _step.value;
10494
10459
  if (obj.label !== 'Finger') continue;
10495
10460
  if (obj.score < MIN_FINGER_SCORE) continue;
@@ -10521,7 +10486,7 @@ function anyOverlapByLabel(bestDocument, detectedObjects, label, minScore) {
10521
10486
  if (!bestDocument) return false;
10522
10487
  var docBox = bestDocument.box;
10523
10488
  if (docBox.width <= 0 || docBox.height <= 0) return false;
10524
- for (var _iterator2 = _createForOfIteratorHelperLoose$r(detectedObjects), _step2; !(_step2 = _iterator2()).done;) {
10489
+ for (var _iterator2 = _createForOfIteratorHelperLoose$q(detectedObjects), _step2; !(_step2 = _iterator2()).done;) {
10525
10490
  var obj = _step2.value;
10526
10491
  if (obj.label !== label) continue;
10527
10492
  if (obj.score < minScore) continue;
@@ -10697,9 +10662,9 @@ var initialFlowState = {
10697
10662
 
10698
10663
  var CapturedDocumentTypeValues = ['idCardFront', 'idCardBack', 'passport', 'singlePage', 'selfie', 'idFrontIrImage', 'idBackIrImage', 'idFrontUvImage', 'idBackUvImage', 'idBarcodeImage'];
10699
10664
 
10700
- function _createForOfIteratorHelperLoose$q(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$q(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
10701
- function _unsupportedIterableToArray$q(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$q(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) ? _arrayLikeToArray$q(r, a) : void 0; } }
10702
- function _arrayLikeToArray$q(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; }
10665
+ function _createForOfIteratorHelperLoose$p(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$p(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
10666
+ function _unsupportedIterableToArray$p(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$p(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) ? _arrayLikeToArray$p(r, a) : void 0; } }
10667
+ function _arrayLikeToArray$p(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; }
10703
10668
  // Tuning constants — seeded estimates. Expect on-device tuning against real
10704
10669
  // captures across angles/devices (same posture as the liveness geometry).
10705
10670
  var CONTAINMENT_MIN = 0.8; // fraction of inner box inside the outer box
@@ -10727,7 +10692,7 @@ function containment(inner, outer) {
10727
10692
  }
10728
10693
  function bestByLabel(objs, label) {
10729
10694
  var best = null;
10730
- for (var _iterator = _createForOfIteratorHelperLoose$q(objs), _step; !(_step = _iterator()).done;) {
10695
+ for (var _iterator = _createForOfIteratorHelperLoose$p(objs), _step; !(_step = _iterator()).done;) {
10731
10696
  var o = _step.value;
10732
10697
  if (o.label !== label) continue;
10733
10698
  if (o.score < MIN_BOOKLET_SCORE) continue;
@@ -10902,9 +10867,9 @@ function remainingIdCaptureRequirements(captureRequirement, capturedDocuments, r
10902
10867
  });
10903
10868
  }
10904
10869
 
10905
- function _createForOfIteratorHelperLoose$p(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$p(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
10906
- function _unsupportedIterableToArray$p(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$p(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) ? _arrayLikeToArray$p(r, a) : void 0; } }
10907
- function _arrayLikeToArray$p(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; }
10870
+ function _createForOfIteratorHelperLoose$o(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$o(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
10871
+ function _unsupportedIterableToArray$o(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$o(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) ? _arrayLikeToArray$o(r, a) : void 0; } }
10872
+ function _arrayLikeToArray$o(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; }
10908
10873
  /**
10909
10874
  * Clears the current frame's verdict (sdk2 idCaptureReducer.ts:367-389). Both
10910
10875
  * of these describe "the last frame we looked at", so they are meaningless —
@@ -10988,7 +10953,7 @@ var _reduceIdCapture = function reduceIdCapture(state, action, now) {
10988
10953
  // from one the user captured -- `documentCaptured` erases the
10989
10954
  // difference by design (see state.ts precapturedDocumentTypes).
10990
10955
  var seeded = [];
10991
- for (var _iterator = _createForOfIteratorHelperLoose$p(CapturedDocumentTypeValues), _step; !(_step = _iterator()).done;) {
10956
+ for (var _iterator = _createForOfIteratorHelperLoose$o(CapturedDocumentTypeValues), _step; !(_step = _iterator()).done;) {
10992
10957
  var k = _step.value;
10993
10958
  var payload = precapturedDocuments[k];
10994
10959
  if (payload) {
@@ -11326,7 +11291,7 @@ var _reduceIdCapture = function reduceIdCapture(state, action, now) {
11326
11291
  case 'documentsCaptured':
11327
11292
  {
11328
11293
  var _newState2 = _extends({}, state);
11329
- for (var _iterator2 = _createForOfIteratorHelperLoose$p(action.payload), _step2; !(_step2 = _iterator2()).done;) {
11294
+ for (var _iterator2 = _createForOfIteratorHelperLoose$o(action.payload), _step2; !(_step2 = _iterator2()).done;) {
11330
11295
  var doc = _step2.value;
11331
11296
  _newState2 = _reduceIdCapture(_newState2, {
11332
11297
  type: 'documentCaptured',
@@ -13528,9 +13493,9 @@ function evaluateIsMobile(nav) {
13528
13493
  return false;
13529
13494
  }
13530
13495
 
13531
- function _createForOfIteratorHelperLoose$o(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$o(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
13532
- function _unsupportedIterableToArray$o(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$o(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) ? _arrayLikeToArray$o(r, a) : void 0; } }
13533
- function _arrayLikeToArray$o(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; }
13496
+ function _createForOfIteratorHelperLoose$n(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$n(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
13497
+ function _unsupportedIterableToArray$n(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$n(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) ? _arrayLikeToArray$n(r, a) : void 0; } }
13498
+ function _arrayLikeToArray$n(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; }
13534
13499
  // zxing-js UMD build, self-hosted on the SDK's own CDN (version-pinned) rather
13535
13500
  // than fetched from unpkg. The previous `@latest` URL was both an external
13536
13501
  // dependency and a supply-chain risk — it executed whatever unpkg served as
@@ -14270,7 +14235,7 @@ function _decodePDF() {
14270
14235
  }
14271
14236
  base = _bases[_i];
14272
14237
  log$1("[NativeBarcodeDecoder] Trying fine rotation deskew around " + base.angle + "\xB0...");
14273
- _iterator = _createForOfIteratorHelperLoose$o(FINE_ROTATION_ANGLES);
14238
+ _iterator = _createForOfIteratorHelperLoose$n(FINE_ROTATION_ANGLES);
14274
14239
  case 11:
14275
14240
  if ((_step = _iterator()).done) {
14276
14241
  _context0.next = 14;
@@ -14795,7 +14760,7 @@ function _decodePDF417WithDetails() {
14795
14760
  }
14796
14761
  base = _bases2[_i2];
14797
14762
  log$1("[NativeBarcodeDecoder] Trying fine rotation deskew around " + base.angle + "\xB0 (detailed)...");
14798
- _iterator2 = _createForOfIteratorHelperLoose$o(FINE_ROTATION_ANGLES);
14763
+ _iterator2 = _createForOfIteratorHelperLoose$n(FINE_ROTATION_ANGLES);
14799
14764
  case 12:
14800
14765
  if ((_step2 = _iterator2()).done) {
14801
14766
  _context12.next = 15;
@@ -14914,9 +14879,9 @@ var CaptureAttachError = /*#__PURE__*/function (_Error) {
14914
14879
  return CaptureAttachError;
14915
14880
  }(/*#__PURE__*/_wrapNativeSuper(Error));
14916
14881
 
14917
- function _createForOfIteratorHelperLoose$n(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$n(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
14918
- function _unsupportedIterableToArray$n(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$n(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) ? _arrayLikeToArray$n(r, a) : void 0; } }
14919
- function _arrayLikeToArray$n(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; }
14882
+ function _createForOfIteratorHelperLoose$m(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$m(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
14883
+ function _unsupportedIterableToArray$m(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$m(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) ? _arrayLikeToArray$m(r, a) : void 0; } }
14884
+ function _arrayLikeToArray$m(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; }
14920
14885
  /**
14921
14886
  * Analyzes barcode readability for a detected document
14922
14887
  * (IdCaptureModelsProvider.tsx:83-199, ported verbatim; the last two
@@ -15377,7 +15342,7 @@ function createDetectionPipeline(opts) {
15377
15342
  });
15378
15343
  if (failed) {
15379
15344
  loadSettled = true;
15380
- for (var _iterator = _createForOfIteratorHelperLoose$n(lifecycleHandles), _step; !(_step = _iterator()).done;) {
15345
+ for (var _iterator = _createForOfIteratorHelperLoose$m(lifecycleHandles), _step; !(_step = _iterator()).done;) {
15381
15346
  var handle = _step.value;
15382
15347
  handle.cancel();
15383
15348
  }
@@ -16663,9 +16628,9 @@ function maybeDataUrlToBase64Sync(url) {
16663
16628
  return dataUrlToBase64Sync(url);
16664
16629
  }
16665
16630
 
16666
- function _createForOfIteratorHelperLoose$m(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$m(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
16667
- function _unsupportedIterableToArray$m(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$m(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) ? _arrayLikeToArray$m(r, a) : void 0; } }
16668
- function _arrayLikeToArray$m(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; }
16631
+ function _createForOfIteratorHelperLoose$l(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$l(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
16632
+ function _unsupportedIterableToArray$l(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$l(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) ? _arrayLikeToArray$l(r, a) : void 0; } }
16633
+ function _arrayLikeToArray$l(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; }
16669
16634
  // Document types whose capture attempt becomes an upload's `filemetadata`, in
16670
16635
  // write order: `singlePage` after `idCardFront` so it wins `idFrontImage`,
16671
16636
  // exactly as the image does below.
@@ -16755,7 +16720,7 @@ function buildIdCaptureArtifacts(inputs, now) {
16755
16720
  };
16756
16721
  if (ocrMetadata) meta.ocrMetadata = ocrMetadata;
16757
16722
  var documentFileMetadata = {};
16758
- for (var _iterator = _createForOfIteratorHelperLoose$m(FILE_METADATA_KEYS), _step; !(_step = _iterator()).done;) {
16723
+ for (var _iterator = _createForOfIteratorHelperLoose$l(FILE_METADATA_KEYS), _step; !(_step = _iterator()).done;) {
16759
16724
  var _step$value = _slicedToArray(_step.value, 2),
16760
16725
  documentType = _step$value[0],
16761
16726
  documentKey = _step$value[1];
@@ -16782,10 +16747,10 @@ function buildIdCaptureArtifacts(inputs, now) {
16782
16747
  };
16783
16748
  }
16784
16749
 
16785
- var _excluded$f = ["bestBarcodeScore", "barcodeBoundingBox"];
16786
- function _createForOfIteratorHelperLoose$l(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$l(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
16787
- function _unsupportedIterableToArray$l(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$l(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) ? _arrayLikeToArray$l(r, a) : void 0; } }
16788
- function _arrayLikeToArray$l(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; }
16750
+ var _excluded$e = ["bestBarcodeScore", "barcodeBoundingBox"];
16751
+ function _createForOfIteratorHelperLoose$k(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$k(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
16752
+ function _unsupportedIterableToArray$k(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$k(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) ? _arrayLikeToArray$k(r, a) : void 0; } }
16753
+ function _arrayLikeToArray$k(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; }
16789
16754
  // sdk2/src/components/id_capture/IdCaptureWizard.tsx:253-262
16790
16755
  var lastDocumentDetectedAtDefaults = {
16791
16756
  idCardFront: null,
@@ -16866,7 +16831,7 @@ function createIdCaptureController(config) {
16866
16831
  // ---------------------------------------------------------------------
16867
16832
  // Store
16868
16833
  // ---------------------------------------------------------------------
16869
- var internal = createStore(function () {
16834
+ var internal = vanilla.createStore(function () {
16870
16835
  return _extends({}, initialFlowState, {
16871
16836
  error: null,
16872
16837
  submission: 'idle',
@@ -16955,7 +16920,7 @@ function createIdCaptureController(config) {
16955
16920
  // payload.ts's buildNoBarcodeOCRMetadata fallback counts).
16956
16921
  var bestBarcodeScore = metadata.bestBarcodeScore,
16957
16922
  barcodeBoundingBox = metadata.barcodeBoundingBox,
16958
- captureAttemptWithoutBarcode = _objectWithoutPropertiesLoose(metadata, _excluded$f);
16923
+ captureAttemptWithoutBarcode = _objectWithoutPropertiesLoose(metadata, _excluded$e);
16959
16924
  captureAttempts.back.push(captureAttemptWithoutBarcode);
16960
16925
  // :619-629 -- appended whenever a barcode score was recorded at all
16961
16926
  // (0 counts: auto-capture stamps `bestBarcodeScore: bestBarcode?.score
@@ -16995,7 +16960,7 @@ function createIdCaptureController(config) {
16995
16960
  }
16996
16961
  }
16997
16962
  function clearAllTimers() {
16998
- for (var _iterator = _createForOfIteratorHelperLoose$l(timers.values()), _step; !(_step = _iterator()).done;) {
16963
+ for (var _iterator = _createForOfIteratorHelperLoose$k(timers.values()), _step; !(_step = _iterator()).done;) {
16999
16964
  var handle = _step.value;
17000
16965
  io.clearTimeout(handle);
17001
16966
  }
@@ -20002,7 +19967,7 @@ var ContinueButton$2 = styledComponents.styled(LoaderButton)(_templateObject7$c
20002
19967
  return (_props$theme$idCaptur5 = (_props$theme7 = props.theme) == null || (_props$theme7 = _props$theme7.idCapture) == null || (_props$theme7 = _props$theme7.loadingOverlay) == null ? void 0 : _props$theme7.continueBtnDisabledBorder) != null ? _props$theme$idCaptur5 : 'none';
20003
19968
  });
20004
19969
 
20005
- var _excluded$e = ["mode"];
19970
+ var _excluded$d = ["mode"];
20006
19971
  var components$1 = {
20007
19972
  "default": IdCaptureLoadingOverlayDefault,
20008
19973
  legacy: IdCaptureLoadingOverlayLegacy,
@@ -20012,7 +19977,7 @@ var IdCaptureLoadingOverlay = function IdCaptureLoadingOverlay(_ref) {
20012
19977
  var _components$mode;
20013
19978
  var _ref$mode = _ref.mode,
20014
19979
  mode = _ref$mode === void 0 ? 'default' : _ref$mode,
20015
- props = _objectWithoutPropertiesLoose(_ref, _excluded$e);
19980
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$d);
20016
19981
  var Component = (_components$mode = components$1[mode]) != null ? _components$mode : components$1["default"];
20017
19982
  return jsxRuntime.jsx(Component, _extends({}, props));
20018
19983
  };
@@ -21595,9 +21560,9 @@ function useSessionReady() {
21595
21560
  }
21596
21561
 
21597
21562
  var _templateObject$w;
21598
- function _createForOfIteratorHelperLoose$k(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$k(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
21599
- function _unsupportedIterableToArray$k(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$k(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) ? _arrayLikeToArray$k(r, a) : void 0; } }
21600
- function _arrayLikeToArray$k(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; }
21563
+ function _createForOfIteratorHelperLoose$j(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$j(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
21564
+ function _unsupportedIterableToArray$j(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$j(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) ? _arrayLikeToArray$j(r, a) : void 0; } }
21565
+ function _arrayLikeToArray$j(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; }
21601
21566
  // Unlike SelfieCaptureView/FaceLivenessView, this view has no root
21602
21567
  // container of its own -- ScalingCameraFeed/IdCaptureGuides/etc. render as
21603
21568
  // siblings relying on whatever positioned ancestor the host page provides.
@@ -21865,7 +21830,7 @@ function IdCaptureViewContent(_ref) {
21865
21830
  // after this effect first runs with an empty state). Folding it in here,
21866
21831
  // rather than seeding once on mount, is what makes the skip actually
21867
21832
  // apply. `seen` keeps a consumed exclusion from being re-armed.
21868
- for (var _iterator = _createForOfIteratorHelperLoose$k(state.precapturedDocumentTypes), _step; !(_step = _iterator()).done;) {
21833
+ for (var _iterator = _createForOfIteratorHelperLoose$j(state.precapturedDocumentTypes), _step; !(_step = _iterator()).done;) {
21869
21834
  var _documentType = _step.value;
21870
21835
  if (seenPrecapturedRef.current.has(_documentType)) continue;
21871
21836
  seenPrecapturedRef.current.add(_documentType);
@@ -23254,9 +23219,9 @@ function guidanceFor(state, prediction, at) {
23254
23219
  return code === SelfieGuidanceCode.HOLD_STILL && handOverFaceHeld(state.handOverFaceAt, at) ? SelfieGuidanceCode.HAND_OVER_FACE : code;
23255
23220
  }
23256
23221
 
23257
- function _createForOfIteratorHelperLoose$j(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$j(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
23258
- function _unsupportedIterableToArray$j(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$j(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) ? _arrayLikeToArray$j(r, a) : void 0; } }
23259
- function _arrayLikeToArray$j(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; }
23222
+ function _createForOfIteratorHelperLoose$i(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$i(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
23223
+ function _unsupportedIterableToArray$i(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$i(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) ? _arrayLikeToArray$i(r, a) : void 0; } }
23224
+ function _arrayLikeToArray$i(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; }
23260
23225
  // sdk2 componenets/selfie_capture/faceDetectorDefault.ts:5
23261
23226
  // (DEFAULT_FACE_DETECTOR): face-landmarker is the default face model as of
23262
23227
  // 2.4.0.
@@ -23286,7 +23251,7 @@ function mapDetectionsToFaces(prediction) {
23286
23251
  if (!prediction) return null;
23287
23252
  var faceDetections = [];
23288
23253
  var noseDetections = [];
23289
- for (var _iterator = _createForOfIteratorHelperLoose$j(prediction.detections), _step; !(_step = _iterator()).done;) {
23254
+ for (var _iterator = _createForOfIteratorHelperLoose$i(prediction.detections), _step; !(_step = _iterator()).done;) {
23290
23255
  var detection = _step.value;
23291
23256
  if (isNoseDetection(detection)) {
23292
23257
  noseDetections.push(detection);
@@ -23300,7 +23265,7 @@ function mapDetectionsToFaces(prediction) {
23300
23265
  var faceBox = d.boundingBox;
23301
23266
  if (!faceBox) continue;
23302
23267
  var nose = null;
23303
- for (var _iterator2 = _createForOfIteratorHelperLoose$j(noseDetections), _step2; !(_step2 = _iterator2()).done;) {
23268
+ for (var _iterator2 = _createForOfIteratorHelperLoose$i(noseDetections), _step2; !(_step2 = _iterator2()).done;) {
23304
23269
  var n = _step2.value;
23305
23270
  var noseBox = n.boundingBox;
23306
23271
  if (!noseBox) continue;
@@ -24102,9 +24067,9 @@ function captureQualityException(reason, measurements, originalThresholds, recov
24102
24067
  };
24103
24068
  }
24104
24069
 
24105
- function _createForOfIteratorHelperLoose$i(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$i(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
24106
- function _unsupportedIterableToArray$i(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$i(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) ? _arrayLikeToArray$i(r, a) : void 0; } }
24107
- function _arrayLikeToArray$i(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; }
24070
+ function _createForOfIteratorHelperLoose$h(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$h(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
24071
+ function _unsupportedIterableToArray$h(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$h(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) ? _arrayLikeToArray$h(r, a) : void 0; } }
24072
+ function _arrayLikeToArray$h(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; }
24108
24073
  // sdk2 SelfieGuidanceModelsProvider.tsx onPredictionMade's useThrottledCallback
24109
24074
  // second argument (SelfieCapture.tsx:225 -- "locks to 60fps maximum").
24110
24075
  var DEFAULT_PREDICTION_THROTTLE_MS = 16;
@@ -24189,7 +24154,7 @@ function createSelfieCaptureController(config) {
24189
24154
  }
24190
24155
  var handCheckEnabled = ((_config$handOverFaceC2 = config.handOverFaceCheck) == null ? void 0 : _config$handOverFaceC2.enabled) === true && detectorKind === 'face-landmarker';
24191
24156
  if (config.captureRecovery) validateCaptureRecovery(config.captureRecovery);
24192
- var internal = createStore(function () {
24157
+ var internal = vanilla.createStore(function () {
24193
24158
  return _extends({}, createInitialSelfieCaptureState({
24194
24159
  thresholds: config.thresholds
24195
24160
  }), {
@@ -24226,7 +24191,7 @@ function createSelfieCaptureController(config) {
24226
24191
  // --- timers (idCapture pattern, colon-namespaced) ---
24227
24192
  var timers = new Map();
24228
24193
  function clearAllTimers() {
24229
- for (var _iterator = _createForOfIteratorHelperLoose$i(timers.values()), _step; !(_step = _iterator()).done;) {
24194
+ for (var _iterator = _createForOfIteratorHelperLoose$h(timers.values()), _step; !(_step = _iterator()).done;) {
24230
24195
  var handle = _step.value;
24231
24196
  io.clearTimeout(handle);
24232
24197
  }
@@ -26025,7 +25990,7 @@ function SelfieCameraFeed(_ref) {
26025
25990
  }
26026
25991
 
26027
25992
  var _templateObject$u, _templateObject2$s, _templateObject3$j, _templateObject4$f;
26028
- var _excluded$d = ["borderColor", "borderOpacity", "borderWidth", "status"],
25993
+ var _excluded$c = ["borderColor", "borderOpacity", "borderWidth", "status"],
26029
25994
  _excluded2$4 = ["status", "guideStyle"],
26030
25995
  _excluded3 = ["frame", "borderWidth", "borderColor", "borderOpacity", "verticalAlign", "status", "guideStyle"],
26031
25996
  _excluded4 = ["status"];
@@ -26042,7 +26007,7 @@ var HeadGuideSvg = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
26042
26007
  borderWidth = _ref$borderWidth === void 0 ? 5 : _ref$borderWidth,
26043
26008
  _ref$status = _ref.status,
26044
26009
  status = _ref$status === void 0 ? 'ready' : _ref$status,
26045
- props = _objectWithoutPropertiesLoose(_ref, _excluded$d);
26010
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$c);
26046
26011
  return jsxRuntime.jsxs("svg", _extends({}, props, {
26047
26012
  ref: ref,
26048
26013
  viewBox: "271 92 297 406",
@@ -27328,7 +27293,7 @@ var ContinueButton = styledComponents.styled(LoaderButton)(_templateObject7$8 ||
27328
27293
  return (_props$theme$selfieCa5 = (_props$theme7 = props.theme) == null || (_props$theme7 = _props$theme7.selfieCapture) == null || (_props$theme7 = _props$theme7.loadingOverlay) == null ? void 0 : _props$theme7.continueBtnDisabledBorder) != null ? _props$theme$selfieCa5 : 'none';
27329
27294
  });
27330
27295
 
27331
- var _excluded$c = ["mode"];
27296
+ var _excluded$b = ["mode"];
27332
27297
  var components = {
27333
27298
  "default": SelfieCaptureLoadingOverlayDefault,
27334
27299
  legacy: SelfieCaptureLoadingOverlayLegacy,
@@ -27338,7 +27303,7 @@ var SelfieCaptureLoadingOverlay = function SelfieCaptureLoadingOverlay(_ref) {
27338
27303
  var _components$mode;
27339
27304
  var _ref$mode = _ref.mode,
27340
27305
  mode = _ref$mode === void 0 ? 'default' : _ref$mode,
27341
- props = _objectWithoutPropertiesLoose(_ref, _excluded$c);
27306
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$b);
27342
27307
  var Component = (_components$mode = components[mode]) != null ? _components$mode : components["default"];
27343
27308
  return jsxRuntime.jsx(Component, _extends({}, props));
27344
27309
  };
@@ -28710,9 +28675,9 @@ function FaceLivenessViewContent(_ref) {
28710
28675
  });
28711
28676
  }
28712
28677
 
28713
- function _createForOfIteratorHelperLoose$h(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$h(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
28714
- function _unsupportedIterableToArray$h(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$h(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) ? _arrayLikeToArray$h(r, a) : void 0; } }
28715
- function _arrayLikeToArray$h(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; }
28678
+ function _createForOfIteratorHelperLoose$g(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$g(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
28679
+ function _unsupportedIterableToArray$g(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$g(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) ? _arrayLikeToArray$g(r, a) : void 0; } }
28680
+ function _arrayLikeToArray$g(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; }
28716
28681
  /**
28717
28682
  * Signature validity estimate (AMEXDESK-676).
28718
28683
  *
@@ -28815,7 +28780,7 @@ function countSignaturePoints(strokes) {
28815
28780
  */
28816
28781
  function measurePenDownMs(strokes) {
28817
28782
  var total = 0;
28818
- for (var _iterator = _createForOfIteratorHelperLoose$h(strokes), _step; !(_step = _iterator()).done;) {
28783
+ for (var _iterator = _createForOfIteratorHelperLoose$g(strokes), _step; !(_step = _iterator()).done;) {
28819
28784
  var stroke = _step.value;
28820
28785
  if (stroke.length < 2) continue;
28821
28786
  total += stroke[stroke.length - 1].time - stroke[0].time;
@@ -28834,9 +28799,9 @@ function boundingBox(strokes) {
28834
28799
  var minY = Infinity;
28835
28800
  var maxX = -Infinity;
28836
28801
  var maxY = -Infinity;
28837
- for (var _iterator2 = _createForOfIteratorHelperLoose$h(strokes), _step2; !(_step2 = _iterator2()).done;) {
28802
+ for (var _iterator2 = _createForOfIteratorHelperLoose$g(strokes), _step2; !(_step2 = _iterator2()).done;) {
28838
28803
  var stroke = _step2.value;
28839
- for (var _iterator3 = _createForOfIteratorHelperLoose$h(stroke), _step3; !(_step3 = _iterator3()).done;) {
28804
+ for (var _iterator3 = _createForOfIteratorHelperLoose$g(stroke), _step3; !(_step3 = _iterator3()).done;) {
28840
28805
  var p = _step3.value;
28841
28806
  if (p.x < minX) minX = p.x;
28842
28807
  if (p.y < minY) minY = p.y;
@@ -28855,7 +28820,7 @@ function boundingBox(strokes) {
28855
28820
  /** Sum of Euclidean distances between consecutive points within each stroke. */
28856
28821
  function totalPathLength(strokes) {
28857
28822
  var length = 0;
28858
- for (var _iterator4 = _createForOfIteratorHelperLoose$h(strokes), _step4; !(_step4 = _iterator4()).done;) {
28823
+ for (var _iterator4 = _createForOfIteratorHelperLoose$g(strokes), _step4; !(_step4 = _iterator4()).done;) {
28859
28824
  var stroke = _step4.value;
28860
28825
  for (var i = 1; i < stroke.length; i++) {
28861
28826
  var dx = stroke[i].x - stroke[i - 1].x;
@@ -28911,7 +28876,7 @@ function resampleStroke(stroke, step) {
28911
28876
  */
28912
28877
  function countDirectionChanges(strokes, step) {
28913
28878
  var totalTurning = 0;
28914
- for (var _iterator5 = _createForOfIteratorHelperLoose$h(strokes), _step5; !(_step5 = _iterator5()).done;) {
28879
+ for (var _iterator5 = _createForOfIteratorHelperLoose$g(strokes), _step5; !(_step5 = _iterator5()).done;) {
28915
28880
  var stroke = _step5.value;
28916
28881
  var pts = resampleStroke(stroke, step);
28917
28882
  var prevAngle = null;
@@ -28944,9 +28909,9 @@ function countZonesCovered(strokes, canvasWidth, canvasHeight, box) {
28944
28909
  var height = useCanvas ? canvasHeight : box.maxY - box.minY;
28945
28910
  if (width <= 0 || height <= 0) return 0;
28946
28911
  var occupied = new Set();
28947
- for (var _iterator6 = _createForOfIteratorHelperLoose$h(strokes), _step6; !(_step6 = _iterator6()).done;) {
28912
+ for (var _iterator6 = _createForOfIteratorHelperLoose$g(strokes), _step6; !(_step6 = _iterator6()).done;) {
28948
28913
  var stroke = _step6.value;
28949
- for (var _iterator7 = _createForOfIteratorHelperLoose$h(stroke), _step7; !(_step7 = _iterator7()).done;) {
28914
+ for (var _iterator7 = _createForOfIteratorHelperLoose$g(stroke), _step7; !(_step7 = _iterator7()).done;) {
28950
28915
  var p = _step7.value;
28951
28916
  var col = Math.min(2, Math.max(0, Math.floor((p.x - originX) / width * 3)));
28952
28917
  var row = Math.min(2, Math.max(0, Math.floor((p.y - originY) / height * 3)));
@@ -29037,9 +29002,9 @@ function evaluateSignatureValidity(strokes, canvasWidth, canvasHeight, config) {
29037
29002
  };
29038
29003
  }
29039
29004
 
29040
- function _createForOfIteratorHelperLoose$g(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$g(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
29041
- function _unsupportedIterableToArray$g(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$g(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) ? _arrayLikeToArray$g(r, a) : void 0; } }
29042
- function _arrayLikeToArray$g(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; }
29005
+ function _createForOfIteratorHelperLoose$f(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$f(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
29006
+ function _unsupportedIterableToArray$f(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$f(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) ? _arrayLikeToArray$f(r, a) : void 0; } }
29007
+ function _arrayLikeToArray$f(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; }
29043
29008
  /**
29044
29009
  * Off-screen, post-capture validation that proves a real frame renders at the
29045
29010
  * signature's trim start offset. This is the authoritative detector for the
@@ -29488,7 +29453,7 @@ function _seekProbes() {
29488
29453
  while (1) switch (_context4.prev = _context4.next) {
29489
29454
  case 0:
29490
29455
  probes = [];
29491
- _iterator = _createForOfIteratorHelperLoose$g(probeTimesMs);
29456
+ _iterator = _createForOfIteratorHelperLoose$f(probeTimesMs);
29492
29457
  case 1:
29493
29458
  if ((_step = _iterator()).done) {
29494
29459
  _context4.next = 4;
@@ -29558,7 +29523,7 @@ function _playbackProbes() {
29558
29523
  };
29559
29524
  var grab = function grab(mediaSec) {
29560
29525
  if (mediaSec * 1000 > maxMediaMs) maxMediaMs = mediaSec * 1000;
29561
- for (var _iterator2 = _createForOfIteratorHelperLoose$g(targets), _step2; !(_step2 = _iterator2()).done;) {
29526
+ for (var _iterator2 = _createForOfIteratorHelperLoose$f(targets), _step2; !(_step2 = _iterator2()).done;) {
29562
29527
  var t = _step2.value;
29563
29528
  if (t.result != null) continue;
29564
29529
  if (maxMediaMs + SEEK_TOLERANCE_MS < t.ms) continue;
@@ -29611,7 +29576,7 @@ function _playbackProbes() {
29611
29576
  video.play()["catch"](_finish);
29612
29577
  });
29613
29578
  case 2:
29614
- _iterator3 = _createForOfIteratorHelperLoose$g(targets);
29579
+ _iterator3 = _createForOfIteratorHelperLoose$f(targets);
29615
29580
  case 3:
29616
29581
  if ((_step3 = _iterator3()).done) {
29617
29582
  _context5.next = 6;
@@ -31323,9 +31288,9 @@ function reduceSignatureCapture(state, event) {
31323
31288
  }
31324
31289
  }
31325
31290
 
31326
- function _createForOfIteratorHelperLoose$f(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$f(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
31327
- function _unsupportedIterableToArray$f(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$f(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) ? _arrayLikeToArray$f(r, a) : void 0; } }
31328
- function _arrayLikeToArray$f(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; }
31291
+ function _createForOfIteratorHelperLoose$e(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$e(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
31292
+ function _unsupportedIterableToArray$e(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$e(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) ? _arrayLikeToArray$e(r, a) : void 0; } }
31293
+ function _arrayLikeToArray$e(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; }
31329
31294
  /**
31330
31295
  * Marks a microphone acquisition failure so `captureError` can type it.
31331
31296
  *
@@ -31428,7 +31393,7 @@ function createSignatureCaptureController(config) {
31428
31393
  var captureAudio = ((_config$captureAudio = config.captureAudio) != null ? _config$captureAudio : false) && mode === 'video';
31429
31394
  var microphone = null;
31430
31395
  var validityConfig = resolveSignatureValidityConfig(config.signatureValidity, config.minSignaturePadPoints);
31431
- var store = createStore(function () {
31396
+ var store = vanilla.createStore(function () {
31432
31397
  return createInitialSignatureCaptureState(mode);
31433
31398
  });
31434
31399
  var listeners = new Set();
@@ -31459,7 +31424,7 @@ function createSignatureCaptureController(config) {
31459
31424
  }
31460
31425
  function publish() {
31461
31426
  snapshot = store.getState();
31462
- for (var _iterator = _createForOfIteratorHelperLoose$f(listeners), _step; !(_step = _iterator()).done;) {
31427
+ for (var _iterator = _createForOfIteratorHelperLoose$e(listeners), _step; !(_step = _iterator()).done;) {
31463
31428
  var listener = _step.value;
31464
31429
  try {
31465
31430
  listener(snapshot);
@@ -32290,7 +32255,7 @@ function useSignatureCapture(controller) {
32290
32255
  }
32291
32256
 
32292
32257
  var _templateObject$j, _templateObject2$j, _templateObject3$f, _templateObject4$b, _templateObject5$b, _templateObject6$8;
32293
- var _excluded$b = ["device", "frameDecode"];
32258
+ var _excluded$a = ["device", "frameDecode"];
32294
32259
  var ASSUMED_TRIM_PADDING = {
32295
32260
  startMs: TRIM_PADDING_START_MS,
32296
32261
  endMs: TRIM_PADDING_END_MS
@@ -32522,7 +32487,7 @@ function trippedSignals(warning) {
32522
32487
  var _warning$signals = warning.signals,
32523
32488
  device = _warning$signals.device,
32524
32489
  frameDecode = _warning$signals.frameDecode,
32525
- top = _objectWithoutPropertiesLoose(_warning$signals, _excluded$b);
32490
+ top = _objectWithoutPropertiesLoose(_warning$signals, _excluded$a);
32526
32491
  var tripped = [].concat(_toConsumableArray(Object.entries(top).filter(function (_ref2) {
32527
32492
  var _ref3 = _slicedToArray(_ref2, 2),
32528
32493
  signal = _ref3[1];
@@ -33574,9 +33539,9 @@ function buildVideoIdCaptureArtifacts(artifact) {
33574
33539
  };
33575
33540
  }
33576
33541
 
33577
- function _createForOfIteratorHelperLoose$e(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$e(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
33578
- function _unsupportedIterableToArray$e(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$e(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) ? _arrayLikeToArray$e(r, a) : void 0; } }
33579
- function _arrayLikeToArray$e(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; }
33542
+ function _createForOfIteratorHelperLoose$d(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$d(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
33543
+ function _unsupportedIterableToArray$d(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$d(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) ? _arrayLikeToArray$d(r, a) : void 0; } }
33544
+ function _arrayLikeToArray$d(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; }
33580
33545
  var DEFAULT_VIDEO_ID_PREDICTION_THROTTLE_MS = 16;
33581
33546
  var RECENT_DETECTION_WINDOW_MS = 2000;
33582
33547
  var defaultVideoIdCaptureThresholds = {
@@ -33720,7 +33685,7 @@ function createVideoIdCaptureController(config) {
33720
33685
  var backImage = null;
33721
33686
  function update(patch) {
33722
33687
  state = _extends({}, state, patch);
33723
- for (var _iterator = _createForOfIteratorHelperLoose$e(listeners), _step; !(_step = _iterator()).done;) {
33688
+ for (var _iterator = _createForOfIteratorHelperLoose$d(listeners), _step; !(_step = _iterator()).done;) {
33724
33689
  var listener = _step.value;
33725
33690
  try {
33726
33691
  listener(state);
@@ -38550,9 +38515,9 @@ var highlightJson = function highlightJson(str) {
38550
38515
  };
38551
38516
 
38552
38517
  var _templateObject$3, _templateObject2$3, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject0, _templateObject1, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20, _templateObject21, _templateObject22, _templateObject23, _templateObject24;
38553
- function _createForOfIteratorHelperLoose$d(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$d(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
38554
- function _unsupportedIterableToArray$d(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$d(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) ? _arrayLikeToArray$d(r, a) : void 0; } }
38555
- function _arrayLikeToArray$d(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; }
38518
+ function _createForOfIteratorHelperLoose$c(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$c(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
38519
+ function _unsupportedIterableToArray$c(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$c(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) ? _arrayLikeToArray$c(r, a) : void 0; } }
38520
+ function _arrayLikeToArray$c(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; }
38556
38521
  var SUBMISSION_SUCCESS_FALLBACKS = {
38557
38522
  completeText: 'Submission complete',
38558
38523
  responseReceivedText: 'Response received',
@@ -38628,7 +38593,7 @@ var quickFactConfig = [{
38628
38593
  */
38629
38594
  var readDocumentId = function readDocumentId(request, path) {
38630
38595
  var node = request;
38631
- for (var _iterator = _createForOfIteratorHelperLoose$d(path), _step; !(_step = _iterator()).done;) {
38596
+ for (var _iterator = _createForOfIteratorHelperLoose$c(path), _step; !(_step = _iterator()).done;) {
38632
38597
  var segment = _step.value;
38633
38598
  if (!node || typeof node !== 'object') return null;
38634
38599
  node = node[segment];
@@ -38739,10 +38704,10 @@ var ASSET_CONFIG = [{
38739
38704
  */
38740
38705
  var TRUNCATABLE_IMAGE_PATHS = [['customerData', 'idData', 'idImageFront'], ['customerData', 'idData', 'idImageBack'], ['customerData', 'idData', 'idBarcodeImage'], ['customerData', 'idData', 'idFrontIrImage'], ['customerData', 'idData', 'idBackIrImage'], ['customerData', 'idData', 'idFrontUvImage'], ['customerData', 'idData', 'idBackUvImage'], ['customerData', 'idData', 'videoIdImageFront'], ['customerData', 'idData', 'videoIdImageBack'], ['customerData', 'biometricData', 'selfie']];
38741
38706
  function truncateImagePaths(body) {
38742
- for (var _iterator2 = _createForOfIteratorHelperLoose$d(TRUNCATABLE_IMAGE_PATHS), _step2; !(_step2 = _iterator2()).done;) {
38707
+ for (var _iterator2 = _createForOfIteratorHelperLoose$c(TRUNCATABLE_IMAGE_PATHS), _step2; !(_step2 = _iterator2()).done;) {
38743
38708
  var path = _step2.value;
38744
38709
  var node = body;
38745
- for (var _iterator3 = _createForOfIteratorHelperLoose$d(path.slice(0, -1)), _step3; !(_step3 = _iterator3()).done;) {
38710
+ for (var _iterator3 = _createForOfIteratorHelperLoose$c(path.slice(0, -1)), _step3; !(_step3 = _iterator3()).done;) {
38746
38711
  var segment = _step3.value;
38747
38712
  if (!isRecord(node)) break;
38748
38713
  node = node[segment];
@@ -39141,847 +39106,6 @@ var JsonBlockHeader = styledComponents.styled.div(_templateObject22 || (_templat
39141
39106
  var JsonBlockActions = styledComponents.styled.div(_templateObject23 || (_templateObject23 = _taggedTemplateLiteralLoose(["\n display: flex;\n gap: 8px;\n"])));
39142
39107
  var ResponsePre = styledComponents.styled.pre(_templateObject24 || (_templateObject24 = _taggedTemplateLiteralLoose(["\n box-sizing: border-box;\n width: 100%;\n overflow: auto;\n padding: 18px;\n border-radius: 8px;\n background: #17211d;\n color: #dff9e9;\n font-size: 0.8rem;\n line-height: 1.55;\n text-align: left;\n"])));
39143
39108
 
39144
- var _excluded$a = ["state", "size", "theme", "speed", "paused", "style", "aria-label"];
39145
- function _createForOfIteratorHelperLoose$c(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$c(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
39146
- function _unsupportedIterableToArray$c(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$c(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) ? _arrayLikeToArray$c(r, a) : void 0; } }
39147
- function _arrayLikeToArray$c(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; }
39148
- function F(e, n) {
39149
- var s = Math.sin(e * 12.9898 + n * 78.233) * 43758.5453;
39150
- return s - Math.floor(s);
39151
- }
39152
- function st(e, n) {
39153
- var s = Math.PI * (3 - Math.sqrt(5)),
39154
- r = 1 - 2 * (e + 0.5) / n,
39155
- t = Math.sqrt(1 - r * r),
39156
- o = e * s;
39157
- return [t * Math.cos(o), r, t * Math.sin(o)];
39158
- }
39159
- function ot(e, n) {
39160
- return Math.atan2(Math.sin(e - n), Math.cos(e - n));
39161
- }
39162
- function q(e, n, s, r, t) {
39163
- var o = Math.sin(n),
39164
- c = Math.cos(n),
39165
- a = Math.sin(e),
39166
- i = Math.cos(e);
39167
- return function (m, g, M) {
39168
- var u = m * i + M * a,
39169
- h = -m * a + M * i,
39170
- b = g * c - h * o,
39171
- x = g * o + h * c;
39172
- return [s + u * t, r - b * t, x];
39173
- };
39174
- }
39175
- function _(e, n, s, r) {
39176
- if (r === void 0) {
39177
- r = 0.3;
39178
- }
39179
- n.sort(function (t, o) {
39180
- return t.z - o.z;
39181
- });
39182
- for (var _iterator = _createForOfIteratorHelperLoose$c(n), _step; !(_step = _iterator()).done;) {
39183
- var _t$a;
39184
- var t = _step.value;
39185
- var o = (_t$a = t.a) != null ? _t$a : 1;
39186
- if (o < 0.02) continue;
39187
- var c = Math.min(1, Math.max(0, t.white)),
39188
- a = Math.round((s ? 1 - c : c) * 255);
39189
- e.fillStyle = "rgba(" + a + "," + a + "," + a + "," + o + ")", e.beginPath(), e.arc(t.x, t.y, Math.max(r, t.r), 0, Math.PI * 2), e.fill();
39190
- }
39191
- }
39192
- function $(e, n) {
39193
- return Math.pow(e / 300, n);
39194
- }
39195
- function et(e, n, s, r) {
39196
- var t = 2 * n * s + r,
39197
- o = e % t,
39198
- c = new Array(n).fill(0);
39199
- var a = -1;
39200
- if (o < 2 * n * s) {
39201
- var i = Math.floor(o / s),
39202
- m = (o - i * s) / s,
39203
- M = 1 - Math.pow(1 - Math.min(1, m / 0.7), 3);
39204
- if (i < n) {
39205
- for (var u = 0; u < i; u++) c[u] = 1;
39206
- c[i] = M, a = i;
39207
- } else {
39208
- var _u = 2 * n - 1 - i;
39209
- for (var h = 0; h < _u; h++) c[h] = 1;
39210
- c[_u] = 1 - M, a = _u;
39211
- }
39212
- }
39213
- return {
39214
- amount: c,
39215
- active: a
39216
- };
39217
- }
39218
- function ct(e, n, s) {
39219
- var _e = _slicedToArray(e, 3),
39220
- r = _e[0],
39221
- t = _e[1],
39222
- o = _e[2],
39223
- c = false;
39224
- for (var a = 0; a < n.length; a++) {
39225
- if (s.amount[a] <= 0) continue;
39226
- var i = n[a],
39227
- m = i.axis === 0 ? r : i.axis === 1 ? t : o;
39228
- if (m < i.lo || m >= i.hi) continue;
39229
- a === s.active && (c = true);
39230
- var g = i.ang * s.amount[a],
39231
- M = Math.cos(g),
39232
- u = Math.sin(g);
39233
- if (i.axis === 0) {
39234
- var h = t * M - o * u;
39235
- o = t * u + o * M, t = h;
39236
- } else if (i.axis === 1) {
39237
- var _h = r * M + o * u;
39238
- o = -r * u + o * M, r = _h;
39239
- } else {
39240
- var _h2 = r * M - t * u;
39241
- t = r * u + t * M, r = _h2;
39242
- }
39243
- }
39244
- return [r, t, o, c];
39245
- }
39246
- function at(e) {
39247
- var n = [];
39248
- for (var s = 0; s < e; s++) {
39249
- var r = Math.min(2, Math.floor(F(s, 2.3) * 3)),
39250
- t = -1 + 0.5 * Math.min(3, Math.floor(F(s, 5.9) * 4)),
39251
- o = F(s, 7.7) < 0.5 ? 1 : -1;
39252
- n.push({
39253
- axis: r,
39254
- lo: t,
39255
- hi: t + 0.5,
39256
- ang: o * Math.PI / 2
39257
- });
39258
- }
39259
- return n;
39260
- }
39261
- var rt = function rt(e, n, s, r, t) {
39262
- var _t$scanMul, _t$rsPow, _t$dimBase, _t$latRings, _t$lonDensity;
39263
- var c = n / 2,
39264
- a = n / 2,
39265
- i = n / 2 * 0.82,
39266
- m = 0.4 + 0.06 * Math.sin(s * 0.35),
39267
- g = q(s * 0.5, m, c, a, i),
39268
- M = s * (0.5 + (1.7 - 0.5) * ((_t$scanMul = t.scanMul) != null ? _t$scanMul : 1)),
39269
- u = $(n, (_t$rsPow = t.rsPow) != null ? _t$rsPow : 0.6),
39270
- h = (_t$dimBase = t.dimBase) != null ? _t$dimBase : 1,
39271
- b = [],
39272
- x = (_t$latRings = t.latRings) != null ? _t$latRings : 17,
39273
- I = (_t$lonDensity = t.lonDensity) != null ? _t$lonDensity : 44;
39274
- for (var P = 0; P <= x; P++) {
39275
- var y = -Math.PI / 2 + P / x * Math.PI,
39276
- D = Math.cos(y),
39277
- w = Math.sin(y),
39278
- k = Math.max(1, Math.round(Math.abs(D) * I));
39279
- for (var v = 0; v < k; v++) {
39280
- var _t$rBase, _t$rDepth, _t$rBoost, _t$inkFar, _t$inkSpan;
39281
- var R = v / k * 2 * Math.PI,
39282
- _g = g(D * Math.cos(R), w, D * Math.sin(R)),
39283
- _g2 = _slicedToArray(_g, 3),
39284
- p = _g2[0],
39285
- d = _g2[1],
39286
- l = _g2[2],
39287
- f = (l + 1) / 2,
39288
- S = ot(R + s * 0.5, M),
39289
- L = Math.exp(-(S * S) / 0.18) * Math.max(0, l);
39290
- b.push({
39291
- x: p,
39292
- y: d,
39293
- z: l,
39294
- r: (((_t$rBase = t.rBase) != null ? _t$rBase : 0.6) + ((_t$rDepth = t.rDepth) != null ? _t$rDepth : 1.7) * f + ((_t$rBoost = t.rBoost) != null ? _t$rBoost : 1) * L) * u,
39295
- white: ((_t$inkFar = t.inkFar) != null ? _t$inkFar : 0.62) - ((_t$inkSpan = t.inkSpan) != null ? _t$inkSpan : 0.54) * f,
39296
- // dimBase < 1 fades un-scanned dots so the meridian reads clearly
39297
- a: h + (1 - h) * Math.min(1, L)
39298
- });
39299
- }
39300
- }
39301
- _(e, b, r, t.rMin);
39302
- },
39303
- it = function it(e, n, s, r, t) {
39304
- var _t$rsPow2, _t$moveCount, _t$latRings2, _t$lonDensity2;
39305
- var o = n / 2,
39306
- c = n / 2,
39307
- a = n / 2 * 0.82,
39308
- i = q(s * 0.55, 0.35 + 0.1 * Math.sin(s * 0.9), o, c, a),
39309
- m = $(n, (_t$rsPow2 = t.rsPow) != null ? _t$rsPow2 : 0.6),
39310
- g = (_t$moveCount = t.moveCount) != null ? _t$moveCount : 14,
39311
- M = at(g),
39312
- u = et(s, g, 0.42, 1.2),
39313
- h = [],
39314
- b = (_t$latRings2 = t.latRings) != null ? _t$latRings2 : 15,
39315
- x = (_t$lonDensity2 = t.lonDensity) != null ? _t$lonDensity2 : 40;
39316
- for (var I = 0; I <= b; I++) {
39317
- var P = -Math.PI / 2 + I / b * Math.PI,
39318
- y = Math.cos(P),
39319
- D = Math.sin(P),
39320
- w = Math.max(1, Math.round(Math.abs(y) * x));
39321
- for (var k = 0; k < w; k++) {
39322
- var _t$rBase2, _t$rDepth2, _t$rActive, _t$inkFar2, _t$inkSpan2;
39323
- var v = k / w * 2 * Math.PI,
39324
- _ct = ct([y * Math.cos(v), D, y * Math.sin(v)], M, u),
39325
- _ct2 = _slicedToArray(_ct, 4),
39326
- R = _ct2[0],
39327
- p = _ct2[1],
39328
- d = _ct2[2],
39329
- l = _ct2[3],
39330
- _i = i(R, p, d),
39331
- _i2 = _slicedToArray(_i, 3),
39332
- f = _i2[0],
39333
- S = _i2[1],
39334
- L = _i2[2],
39335
- A = (L + 1) / 2;
39336
- h.push({
39337
- x: f,
39338
- y: S,
39339
- z: L,
39340
- r: (((_t$rBase2 = t.rBase) != null ? _t$rBase2 : 0.6) + ((_t$rDepth2 = t.rDepth) != null ? _t$rDepth2 : 1.7) * A + (l ? (_t$rActive = t.rActive) != null ? _t$rActive : 0.3 : 0)) * m,
39341
- white: ((_t$inkFar2 = t.inkFar) != null ? _t$inkFar2 : 0.62) - ((_t$inkSpan2 = t.inkSpan) != null ? _t$inkSpan2 : 0.54) * A - (l ? 0.14 : 0)
39342
- });
39343
- }
39344
- }
39345
- _(e, h, r, t.rMin);
39346
- },
39347
- ht = function ht(e, n, s, r, t) {
39348
- var _t$rsPow3, _t$rings, _t$lonDensity3;
39349
- var o = n / 2,
39350
- c = n / 2,
39351
- a = n / 2 * 0.874,
39352
- i = q(s * 0.18, 0.38, o, c, 1),
39353
- m = $(n, (_t$rsPow3 = t.rsPow) != null ? _t$rsPow3 : 0.6),
39354
- g = [],
39355
- M = (_t$rings = t.rings) != null ? _t$rings : 15,
39356
- u = (_t$lonDensity3 = t.lonDensity) != null ? _t$lonDensity3 : 40;
39357
- for (var h = 0; h <= M; h++) {
39358
- var b = -Math.PI / 2 + h / M * Math.PI,
39359
- x = Math.cos(b),
39360
- I = Math.sin(b),
39361
- P = 0.62 * Math.sin(s * 2.1 - h * 0.52) + 0.38 * Math.sin(s * 1.27 + h * 0.83),
39362
- y = a * (0.88 + 0.105 * P),
39363
- D = Math.max(1, Math.round(Math.abs(x) * u));
39364
- for (var w = 0; w < D; w++) {
39365
- var _t$rBase3, _t$rDepth3;
39366
- var k = w / D * 2 * Math.PI,
39367
- _i3 = i(x * Math.cos(k) * y, I * y, x * Math.sin(k) * y),
39368
- _i4 = _slicedToArray(_i3, 3),
39369
- v = _i4[0],
39370
- R = _i4[1],
39371
- p = _i4[2],
39372
- d = (p / a + 1) / 2,
39373
- l = Math.max(0, P);
39374
- g.push({
39375
- x: v,
39376
- y: R,
39377
- z: p,
39378
- r: (((_t$rBase3 = t.rBase) != null ? _t$rBase3 : 0.6) + ((_t$rDepth3 = t.rDepth) != null ? _t$rDepth3 : 1.7) * d) * (1 + 0.4 * l) * m,
39379
- white: 0.66 - 0.56 * d - 0.1 * l
39380
- });
39381
- }
39382
- }
39383
- _(e, g, r, t.rMin);
39384
- };
39385
- function lt(e) {
39386
- return e * e * (3 - 2 * e);
39387
- }
39388
- function Q(e) {
39389
- var n = e.length,
39390
- s = [];
39391
- var r = 0;
39392
- for (var t = 0; t < n; t++) {
39393
- var o = e[t],
39394
- c = e[(t + 1) % n],
39395
- a = Math.hypot(c[0] - o[0], c[1] - o[1]);
39396
- s.push(a), r += a;
39397
- }
39398
- return function (t) {
39399
- var o = t * r,
39400
- c = 0;
39401
- for (; o > s[c] && c < n - 1;) o -= s[c], c++;
39402
- var a = e[c],
39403
- i = e[(c + 1) % n],
39404
- m = s[c] ? Math.min(1, o / s[c]) : 0;
39405
- return [a[0] + (i[0] - a[0]) * m, a[1] + (i[1] - a[1]) * m];
39406
- };
39407
- }
39408
- var ut = function ut(e) {
39409
- var n = -Math.PI / 2 + e * 2 * Math.PI;
39410
- return [Math.cos(n) * 0.24, Math.sin(n) * 0.24];
39411
- },
39412
- Mt = Q([[0, -0.26], [0.24, 0.16], [-0.24, 0.16]]),
39413
- pt = Q([[0, -0.2], [0.2, -0.2], [0.2, 0.2], [-0.2, 0.2], [-0.2, -0.2]]),
39414
- Y = [ut, Mt, pt];
39415
- function dt(e) {
39416
- return Math.max(6, Math.round(34 * e));
39417
- }
39418
- var U = 1.4,
39419
- J = 0.9,
39420
- K = U + J,
39421
- ft = function ft(e, n, s, r, t) {
39422
- var _t$spread, _t$iconD, _t$rDot;
39423
- var o = Y.length,
39424
- c = s % (K * o),
39425
- a = Math.floor(c / K),
39426
- i = c - a * K,
39427
- m = i > U ? lt((i - U) / J) : 0,
39428
- g = (_t$spread = t.spread) != null ? _t$spread : 1,
39429
- M = Y[a],
39430
- u = Y[(a + 1) % o],
39431
- h = 160,
39432
- b = [];
39433
- for (var p = 0; p < h; p++) {
39434
- var d = p / h,
39435
- l = M(d),
39436
- f = u(d);
39437
- b.push([(l[0] + (f[0] - l[0]) * m) * g, (l[1] + (f[1] - l[1]) * m) * g]);
39438
- }
39439
- var x = [];
39440
- var I = 0;
39441
- for (var _p = 0; _p < h; _p++) {
39442
- var _d = b[_p],
39443
- _l = b[(_p + 1) % h],
39444
- _f = Math.hypot(_l[0] - _d[0], _l[1] - _d[1]);
39445
- x.push(_f), I += _f;
39446
- }
39447
- var P = dt((_t$iconD = t.iconD) != null ? _t$iconD : 1),
39448
- y = ((_t$rDot = t.rDot) != null ? _t$rDot : 0.021) * 1.35 * g,
39449
- D = 1 + 0.02 * Math.sin(i * 3.1),
39450
- w = [],
39451
- k = n / 2;
39452
- var v = 0,
39453
- R = 0;
39454
- for (var _p2 = 0; _p2 < P; _p2++) {
39455
- var _d2 = _p2 / P * I;
39456
- for (; R + x[v] < _d2 && v < h - 1;) R += x[v], v++;
39457
- var _l2 = b[v],
39458
- _f2 = b[(v + 1) % h],
39459
- S = x[v] ? Math.min(1, (_d2 - R) / x[v]) : 0,
39460
- L = (_l2[0] + (_f2[0] - _l2[0]) * S) * D,
39461
- A = (_l2[1] + (_f2[1] - _l2[1]) * S) * D;
39462
- w.push({
39463
- x: k + L * n,
39464
- y: k + A * n,
39465
- z: 0,
39466
- r: Math.max(0.35, y * n),
39467
- white: 0.1
39468
- });
39469
- }
39470
- _(e, w, r, t.rMin);
39471
- },
39472
- mt = function mt(e, n, s, r, t) {
39473
- var _t$rsPow4, _t$orbitN, _t$ghostN, _t$particles;
39474
- var o = n / 2,
39475
- c = n / 2,
39476
- a = n / 2 * 0.82,
39477
- i = q(s * 0.12, 0.3, o, c, 1),
39478
- m = $(n, (_t$rsPow4 = t.rsPow) != null ? _t$rsPow4 : 0.6),
39479
- g = [],
39480
- M = (_t$orbitN = t.orbitN) != null ? _t$orbitN : 12,
39481
- u = (_t$ghostN = t.ghostN) != null ? _t$ghostN : 40,
39482
- h = (_t$particles = t.particles) != null ? _t$particles : 3;
39483
- for (var b = 0; b < M; b++) {
39484
- var x = F(b, 1.7),
39485
- I = F(b, 5.2),
39486
- P = F(b, 8.9),
39487
- y = a * (0.45 + 0.52 * x),
39488
- D = x * 2 * Math.PI,
39489
- w = Math.acos(2 * I - 1),
39490
- k = Math.sin(w) * Math.cos(D),
39491
- v = Math.cos(w),
39492
- R = Math.sin(w) * Math.sin(D);
39493
- var p = -v,
39494
- d = k;
39495
- var l = 0,
39496
- f = Math.max(1e-6, Math.sqrt(p * p + d * d));
39497
- p /= f, d /= f;
39498
- var S = v * l - R * d,
39499
- L = R * p - k * l,
39500
- A = k * d - v * p,
39501
- B = (0.25 + 0.55 * P) * (P > 0.5 ? 1 : -1);
39502
- for (var C = 0; C < u; C++) {
39503
- var _t$ghostR, _t$ghostA;
39504
- var E = C / u * 2 * Math.PI,
39505
- _i5 = i((p * Math.cos(E) + S * Math.sin(E)) * y, (d * Math.cos(E) + L * Math.sin(E)) * y, (l * Math.cos(E) + A * Math.sin(E)) * y),
39506
- _i6 = _slicedToArray(_i5, 3),
39507
- T = _i6[0],
39508
- z = _i6[1],
39509
- N = _i6[2],
39510
- O = (N / y + 1) / 2;
39511
- g.push({
39512
- x: T,
39513
- y: z,
39514
- z: N,
39515
- r: ((_t$ghostR = t.ghostR) != null ? _t$ghostR : 0.9) * m,
39516
- white: 0.72,
39517
- a: ((_t$ghostA = t.ghostA) != null ? _t$ghostA : 0.5) * (0.4 + 0.6 * O)
39518
- });
39519
- }
39520
- for (var _C = 0; _C < h; _C++) {
39521
- var _t$partR, _t$partRDepth;
39522
- var _E = s * B + _C / h * 2 * Math.PI + I * 6,
39523
- _i7 = i((p * Math.cos(_E) + S * Math.sin(_E)) * y, (d * Math.cos(_E) + L * Math.sin(_E)) * y, (l * Math.cos(_E) + A * Math.sin(_E)) * y),
39524
- _i8 = _slicedToArray(_i7, 3),
39525
- _T = _i8[0],
39526
- _z = _i8[1],
39527
- _N = _i8[2],
39528
- _O = (_N / y + 1) / 2;
39529
- g.push({
39530
- x: _T,
39531
- y: _z,
39532
- z: _N,
39533
- r: (((_t$partR = t.partR) != null ? _t$partR : 1.2) + ((_t$partRDepth = t.partRDepth) != null ? _t$partRDepth : 1.6) * _O) * m,
39534
- white: 0.3 - 0.22 * _O
39535
- });
39536
- }
39537
- }
39538
- _(e, g, r, t.rMin);
39539
- },
39540
- gt = function gt(e, n, s, r, t) {
39541
- var _t$spin, _t$rsPow5, _t$ghostN2, _t$lanes, _t$segs, _t$bandMul;
39542
- var o = n / 2,
39543
- c = n / 2,
39544
- a = n / 2 * 0.78,
39545
- i = (_t$spin = t.spin) != null ? _t$spin : 1,
39546
- m = q(s * 0.1 * i, 0.3, o, c, 1),
39547
- g = $(n, (_t$rsPow5 = t.rsPow) != null ? _t$rsPow5 : 0.6),
39548
- M = [],
39549
- u = (_t$ghostN2 = t.ghostN) != null ? _t$ghostN2 : 150;
39550
- for (var f = 0; f < u; f++) {
39551
- var S = st(f, u),
39552
- _m = m(S[0] * a, S[1] * a, S[2] * a),
39553
- _m2 = _slicedToArray(_m, 3),
39554
- L = _m2[0],
39555
- A = _m2[1],
39556
- B = _m2[2],
39557
- C = (B / a + 1) / 2;
39558
- M.push({
39559
- x: L,
39560
- y: A,
39561
- z: B,
39562
- r: 0.8 * g,
39563
- white: 0.78,
39564
- a: 0.1 + 0.22 * C
39565
- });
39566
- }
39567
- var h = s * 0.24 * i,
39568
- b = 0.55 + 0.3 * Math.sin(s * 0.18) * i,
39569
- x = Math.cos(h),
39570
- I = 0,
39571
- P = Math.sin(h),
39572
- y = -P * Math.sin(b),
39573
- D = Math.cos(b),
39574
- w = x * Math.sin(b),
39575
- k = I * w - P * D,
39576
- v = P * y - x * w,
39577
- R = x * D - I * y,
39578
- p = (_t$lanes = t.lanes) != null ? _t$lanes : 5,
39579
- d = (_t$segs = t.segs) != null ? _t$segs : 88,
39580
- l = Math.max(1, Math.round(p * ((_t$bandMul = t.bandMul) != null ? _t$bandMul : 1)));
39581
- for (var _f3 = 0; _f3 < l; _f3++) {
39582
- var _S = (_f3 - (l - 1) / 2) * 0.075,
39583
- _L = Math.abs(_f3 - (l - 1) / 2) / Math.max(1, (l - 1) / 2);
39584
- for (var _A = 0; _A < d; _A++) {
39585
- var _t$wobMul, _t$rBase4, _t$rDepth4;
39586
- var _B = _A / d * 2 * Math.PI,
39587
- _C2 = (0.16 * Math.sin(_B * 3 - s * 1.7 + _f3 * 0.22) + 0.07 * Math.sin(_B * 5 + s * 1.1)) * ((_t$wobMul = t.wobMul) != null ? _t$wobMul : 1),
39588
- E = _S + _C2,
39589
- T = x * Math.cos(_B) + y * Math.sin(_B) + k * E,
39590
- z = I * Math.cos(_B) + D * Math.sin(_B) + v * E,
39591
- N = P * Math.cos(_B) + w * Math.sin(_B) + R * E,
39592
- O = Math.sqrt(T * T + z * z + N * N),
39593
- _m3 = m(T / O * a, z / O * a, N / O * a),
39594
- _m4 = _slicedToArray(_m3, 3),
39595
- X = _m4[0],
39596
- Z = _m4[1],
39597
- W = _m4[2],
39598
- j = (W / a + 1) / 2;
39599
- M.push({
39600
- x: X,
39601
- y: Z,
39602
- z: W,
39603
- r: (((_t$rBase4 = t.rBase) != null ? _t$rBase4 : 1.1) + ((_t$rDepth4 = t.rDepth) != null ? _t$rDepth4 : 1.7) * j) * (1 - 0.25 * _L) * g,
39604
- white: 0.52 - 0.44 * j + 0.18 * _L,
39605
- a: 0.4 + 0.6 * j
39606
- });
39607
- }
39608
- }
39609
- _(e, M, r, t.rMin);
39610
- },
39611
- bt = {
39612
- orbits: mt,
39613
- globe: rt,
39614
- rubik: it,
39615
- wave: ht,
39616
- ribbon: gt,
39617
- morph: ft
39618
- },
39619
- yt = [["latRings", "lonDensity"], ["rings", "lonDensity"], ["lanes", "segs"]],
39620
- xt = ["orbitN", "ghostN"],
39621
- vt = ["iconD"],
39622
- wt = ["rBase", "rDepth", "rActive", "rDot", "ghostR", "partR", "partRDepth"];
39623
- function kt(e, n) {
39624
- var s = _extends({}, e),
39625
- r = /* @__PURE__ */new Set(),
39626
- t = Math.sqrt(n);
39627
- for (var _iterator2 = _createForOfIteratorHelperLoose$c(yt), _step2; !(_step2 = _iterator2()).done;) {
39628
- var _step2$value = _slicedToArray(_step2.value, 2),
39629
- o = _step2$value[0],
39630
- c = _step2$value[1];
39631
- var a = s[o],
39632
- i = s[c];
39633
- a != null && i != null && !r.has(o) && !r.has(c) && (s[o] = Math.max(2, Math.round(a * t)), s[c] = Math.max(2, Math.round(i * t)), r.add(o), r.add(c));
39634
- }
39635
- for (var _iterator3 = _createForOfIteratorHelperLoose$c(xt), _step3; !(_step3 = _iterator3()).done;) {
39636
- var _o = _step3.value;
39637
- var _c = s[_o];
39638
- _c != null && !r.has(_o) && (s[_o] = Math.max(1, Math.round(_c * n)));
39639
- }
39640
- for (var _iterator4 = _createForOfIteratorHelperLoose$c(vt), _step4; !(_step4 = _iterator4()).done;) {
39641
- var _o2 = _step4.value;
39642
- var _c2 = s[_o2];
39643
- _c2 != null && (s[_o2] = Math.max(0.02, _c2 * n));
39644
- }
39645
- return s;
39646
- }
39647
- function Pt(e, n) {
39648
- var _s$rSizeMul;
39649
- var s = _extends({}, e);
39650
- for (var _iterator5 = _createForOfIteratorHelperLoose$c(wt), _step5; !(_step5 = _iterator5()).done;) {
39651
- var r = _step5.value;
39652
- var t = s[r];
39653
- t != null && (s[r] = t * n);
39654
- }
39655
- return s.rSizeMul = ((_s$rSizeMul = s.rSizeMul) != null ? _s$rSizeMul : 1) * n, s;
39656
- }
39657
- var Dt = {
39658
- globe: {
39659
- latRings: 17,
39660
- lonDensity: 44,
39661
- rBase: 0.6,
39662
- rDepth: 1.7,
39663
- rBoost: 1,
39664
- inkFar: 0.62,
39665
- inkSpan: 0.54,
39666
- rsPow: 0.6,
39667
- rMin: 0.3
39668
- },
39669
- orbits: {
39670
- orbitN: 12,
39671
- ghostN: 40,
39672
- ghostR: 0.9,
39673
- ghostA: 0.5,
39674
- particles: 3,
39675
- partR: 1.2,
39676
- partRDepth: 1.6,
39677
- rsPow: 0.6,
39678
- rMin: 0.3
39679
- },
39680
- rubik: {
39681
- latRings: 15,
39682
- lonDensity: 40,
39683
- moveCount: 14,
39684
- rBase: 0.6,
39685
- rDepth: 1.7,
39686
- rActive: 0.3,
39687
- inkFar: 0.62,
39688
- inkSpan: 0.54,
39689
- rsPow: 0.6,
39690
- rMin: 0.3
39691
- },
39692
- wave: {
39693
- rings: 15,
39694
- lonDensity: 40,
39695
- rBase: 0.6,
39696
- rDepth: 1.7,
39697
- rsPow: 0.6,
39698
- rMin: 0.3
39699
- },
39700
- ribbon: {
39701
- lanes: 5,
39702
- segs: 88,
39703
- ghostN: 150,
39704
- rBase: 1.1,
39705
- rDepth: 1.7,
39706
- rsPow: 0.6,
39707
- rMin: 0.3
39708
- },
39709
- morph: {
39710
- rDot: 0.021,
39711
- iconD: 1,
39712
- rMin: 0.25
39713
- }
39714
- },
39715
- Rt = {
39716
- working: "orbits",
39717
- searching: "globe",
39718
- solving: "rubik",
39719
- listening: "wave",
39720
- composing: "ribbon",
39721
- shaping: "morph"
39722
- },
39723
- St = {
39724
- orbits: {
39725
- 64: {
39726
- speed: 1.885,
39727
- count: 1,
39728
- size: 1
39729
- },
39730
- 20: {
39731
- speed: 3.9,
39732
- count: 0.238,
39733
- size: 2.4
39734
- }
39735
- },
39736
- globe: {
39737
- 64: {
39738
- speed: 2.015,
39739
- count: 0.42,
39740
- size: 1.15,
39741
- extra: {
39742
- scanMul: 4.08,
39743
- dimBase: 0.45
39744
- }
39745
- },
39746
- 20: {
39747
- speed: 2.665,
39748
- count: 0.105,
39749
- size: 1.75,
39750
- extra: {
39751
- scanMul: 4.335,
39752
- dimBase: 0.45
39753
- }
39754
- }
39755
- },
39756
- rubik: {
39757
- 64: {
39758
- speed: 1.82,
39759
- count: 0.35,
39760
- size: 1.05
39761
- },
39762
- 20: {
39763
- speed: 1.95,
39764
- count: 0.088,
39765
- size: 1.9
39766
- }
39767
- },
39768
- wave: {
39769
- 64: {
39770
- speed: 4.388,
39771
- count: 0.341,
39772
- size: 1
39773
- },
39774
- 20: {
39775
- speed: 3.998,
39776
- count: 0.105,
39777
- size: 1.6
39778
- }
39779
- },
39780
- ribbon: {
39781
- 64: {
39782
- speed: 2.34,
39783
- count: 0.25,
39784
- size: 0.85,
39785
- extra: {
39786
- spin: 0,
39787
- bandMul: 3.9,
39788
- wobMul: 1
39789
- }
39790
- },
39791
- 20: {
39792
- speed: 3.12,
39793
- count: 0.051,
39794
- size: 1.073,
39795
- extra: {
39796
- spin: 0,
39797
- bandMul: 4.94,
39798
- wobMul: 1
39799
- }
39800
- }
39801
- },
39802
- morph: {
39803
- 64: {
39804
- speed: 2.405,
39805
- count: 0.54,
39806
- size: 0.395,
39807
- extra: {
39808
- spread: 1.45
39809
- }
39810
- },
39811
- 20: {
39812
- speed: 2.08,
39813
- count: 0.53,
39814
- size: 1.011,
39815
- extra: {
39816
- spread: 1.45
39817
- }
39818
- }
39819
- }
39820
- },
39821
- H = /* @__PURE__ */new Map();
39822
- function It(e, n) {
39823
- var s = e + "-" + n,
39824
- r = H.get(s);
39825
- if (r) return r;
39826
- var t = Rt[e],
39827
- o = St[t][n];
39828
- var c = _extends({}, Dt[t]);
39829
- o.count !== 1 && (c = kt(c, o.count)), o.size !== 1 && (c = Pt(c, o.size)), o.extra && (c = _extends({}, c, o.extra));
39830
- var a = {
39831
- mode: t,
39832
- speed: o.speed,
39833
- opts: c
39834
- };
39835
- return H.set(s, a), a;
39836
- }
39837
- function Et(e) {
39838
- var n = e;
39839
- for (; n;) {
39840
- var s = n.getAttribute("data-theme");
39841
- if (s === "dark") return true;
39842
- if (s === "light") return false;
39843
- if (n.classList.contains("dark")) return true;
39844
- if (n.classList.contains("light")) return false;
39845
- n = n.parentElement;
39846
- }
39847
- return null;
39848
- }
39849
- function Lt() {
39850
- return typeof matchMedia > "u" || matchMedia("(prefers-color-scheme: dark)").matches;
39851
- }
39852
- function At(e, n) {
39853
- var _V = React.useState(true),
39854
- _V2 = _slicedToArray(_V, 2),
39855
- s = _V2[0],
39856
- r = _V2[1];
39857
- return React.useEffect(function () {
39858
- if (e === "dark") {
39859
- r(true);
39860
- return;
39861
- }
39862
- if (e === "light") {
39863
- r(false);
39864
- return;
39865
- }
39866
- var t = function t() {
39867
- var i = Et(n.current);
39868
- r(i != null ? i : Lt());
39869
- };
39870
- t();
39871
- var o = typeof matchMedia < "u" ? matchMedia("(prefers-color-scheme: dark)") : null,
39872
- c = function c() {
39873
- return t();
39874
- };
39875
- o == null || o.addEventListener("change", c);
39876
- var a = null;
39877
- return typeof MutationObserver < "u" && n.current && (a = new MutationObserver(t), a.observe(document.documentElement, {
39878
- attributes: true,
39879
- attributeFilter: ["class", "data-theme"],
39880
- subtree: true
39881
- })), function () {
39882
- o == null || o.removeEventListener("change", c), a == null || a.disconnect();
39883
- };
39884
- }, [e, n]), s;
39885
- }
39886
- function Bt() {
39887
- var _V3 = React.useState(false),
39888
- _V4 = _slicedToArray(_V3, 2),
39889
- e = _V4[0],
39890
- n = _V4[1];
39891
- return React.useEffect(function () {
39892
- if (typeof matchMedia > "u") return;
39893
- var s = matchMedia("(prefers-reduced-motion: reduce)");
39894
- n(s.matches);
39895
- var r = function r(t) {
39896
- return n(t.matches);
39897
- };
39898
- return s.addEventListener("change", r), function () {
39899
- return s.removeEventListener("change", r);
39900
- };
39901
- }, []), e;
39902
- }
39903
- var Ct = {
39904
- working: "Working…",
39905
- searching: "Searching…",
39906
- solving: "Solving…",
39907
- listening: "Listening…",
39908
- composing: "Composing…",
39909
- shaping: "Shaping…"
39910
- };
39911
- function Tt(_ref) {
39912
- var _ref$state = _ref.state,
39913
- e = _ref$state === void 0 ? "working" : _ref$state,
39914
- _ref$size = _ref.size,
39915
- n = _ref$size === void 0 ? 64 : _ref$size,
39916
- _ref$theme = _ref.theme,
39917
- s = _ref$theme === void 0 ? "auto" : _ref$theme,
39918
- _ref$speed = _ref.speed,
39919
- r = _ref$speed === void 0 ? 1 : _ref$speed,
39920
- _ref$paused = _ref.paused,
39921
- t = _ref$paused === void 0 ? false : _ref$paused,
39922
- o = _ref.style,
39923
- c = _ref["aria-label"],
39924
- a = _objectWithoutPropertiesLoose(_ref, _excluded$a);
39925
- var i = React.useRef(null),
39926
- m = At(s, i),
39927
- g = Bt();
39928
- return React.useEffect(function () {
39929
- var M = i.current;
39930
- if (!M) return;
39931
- var u = Math.min(2, typeof devicePixelRatio < "u" && devicePixelRatio || 1);
39932
- M.width = Math.round(n * u), M.height = Math.round(n * u);
39933
- var h = M.getContext("2d");
39934
- if (!h) return;
39935
- var _It = It(e, n),
39936
- b = _It.mode,
39937
- x = _It.speed,
39938
- I = _It.opts,
39939
- P = bt[b],
39940
- y = x * r,
39941
- D = function D(S) {
39942
- h.setTransform(u, 0, 0, u, 0, 0), h.clearRect(0, 0, n, n), P(h, n, S, m, I);
39943
- };
39944
- if (g) {
39945
- D(0.6);
39946
- return;
39947
- }
39948
- var w = 0,
39949
- k = false;
39950
- var _v = function v() {
39951
- D(performance.now() / 1e3 * y), k && (w = requestAnimationFrame(_v));
39952
- },
39953
- R = function R() {
39954
- k || t || (k = true, w = requestAnimationFrame(_v));
39955
- },
39956
- p = function p() {
39957
- k = false, cancelAnimationFrame(w);
39958
- };
39959
- D(performance.now() / 1e3 * y);
39960
- var d = true;
39961
- var l = typeof IntersectionObserver < "u" ? new IntersectionObserver(function (_ref2) {
39962
- var _ref3 = _slicedToArray(_ref2, 1),
39963
- S = _ref3[0];
39964
- d = S.isIntersecting, d && document.visibilityState !== "hidden" ? R() : p();
39965
- }) : null;
39966
- l == null || l.observe(M);
39967
- var f = function f() {
39968
- document.visibilityState === "hidden" ? p() : d && R();
39969
- };
39970
- return document.addEventListener("visibilitychange", f), l || R(), function () {
39971
- p(), l == null || l.disconnect(), document.removeEventListener("visibilitychange", f);
39972
- };
39973
- }, [e, n, m, r, t, g]), /* @__PURE__ */jsxRuntime.jsx("canvas", _extends({
39974
- ref: i,
39975
- role: "img",
39976
- "aria-label": c != null ? c : Ct[e],
39977
- style: _extends({
39978
- width: n,
39979
- height: n,
39980
- display: "block"
39981
- }, o)
39982
- }, a));
39983
- }
39984
-
39985
39109
  var _templateObject$2, _templateObject2$2;
39986
39110
  function OrbStatusScreen(_ref) {
39987
39111
  var state = _ref.state,
@@ -39990,7 +39114,7 @@ function OrbStatusScreen(_ref) {
39990
39114
  loadingStage = _ref.loadingStage;
39991
39115
  var theme = styledComponents.useTheme();
39992
39116
  var label = accessibleLabel != null ? accessibleLabel : typeof text === 'string' ? text : undefined;
39993
- var orb = jsxRuntime.jsx(Tt, {
39117
+ var orb = jsxRuntime.jsx(thinkingOrbs.ThinkingOrb, {
39994
39118
  state: state,
39995
39119
  size: 64,
39996
39120
  style: {
@@ -44284,7 +43408,7 @@ function createDocumentCaptureController(config) {
44284
43408
  var createCanvas = (_config$io$createCanv = (_config$io6 = config.io) == null ? void 0 : _config$io6.createCanvas) != null ? _config$io$createCanv : function () {
44285
43409
  return document.createElement('canvas');
44286
43410
  };
44287
- var store = createStore(function () {
43411
+ var store = vanilla.createStore(function () {
44288
43412
  var _config$documents;
44289
43413
  return createInitialDocumentCaptureState(buildEntries((_config$documents = config.documents) != null ? _config$documents : [], createObjectUrl));
44290
43414
  });
@@ -48974,7 +48098,7 @@ function mapCustomerIdAndBiometricsEnrollmentProps(props, ctx) {
48974
48098
  });
48975
48099
  }
48976
48100
 
48977
- var webSdkVersion = '2.5.65-react16compat.0';
48101
+ var webSdkVersion = '2.5.65';
48978
48102
 
48979
48103
  var MAPPED = 'mapped';
48980
48104
  var NOOP = 'dropped-noop';
@@ -49975,25 +49099,6 @@ var CustomerIdAndBiometricsEnrollment = function CustomerIdAndBiometricsEnrollme
49975
49099
  }, mapCustomerIdAndBiometricsEnrollmentProps(props, ctx)), props.children);
49976
49100
  };
49977
49101
 
49978
- /**
49979
- * react-16-compat: React 16/17 have no `createRoot`, so this adapts the legacy
49980
- * `ReactDOM.render` API to the root shape the rest of this module expects.
49981
- * Keeping that shape means the teardown logic below stays byte-identical to
49982
- * develop and merges cleanly. Runs on React 16.14 through 18; React 19
49983
- * removed `ReactDOM.render`, which is why this build's peer range stops at 18.
49984
- */
49985
- function createRoot(container) {
49986
- return {
49987
- render: function render(element) {
49988
- // eslint-disable-next-line react/no-deprecated -- the only mount API React 16 has
49989
- ReactDOM__default.default.render(element, container);
49990
- },
49991
- unmount: function unmount() {
49992
- // eslint-disable-next-line react/no-deprecated -- pairs with ReactDOM.render above
49993
- ReactDOM__default.default.unmountComponentAtNode(container);
49994
- }
49995
- };
49996
- }
49997
49102
  /**
49998
49103
  * Targets whose `remove` this module has already wrapped. Permanent: the
49999
49104
  * wrapper is installed at most once per element, so repeat renders can never
@@ -50021,7 +49126,8 @@ function renderElement(component, targetElement) {
50021
49126
  targetElement = document.createElement('div');
50022
49127
  document.body.append(targetElement);
50023
49128
  }
50024
- var root = createRoot(targetElement);
49129
+ var root = ReactDOM__default.default.createRoot(targetElement);
49130
+ root.render(/*#__PURE__*/React__default.default.createElement(OverlayContainer, null, component));
50025
49131
  if ('remove' in targetElement) {
50026
49132
  var element_1 = targetElement;
50027
49133
  // Always point at the newest root, even when the wrapper is already
@@ -50071,10 +49177,6 @@ function renderElement(component, targetElement) {
50071
49177
  };
50072
49178
  }
50073
49179
  }
50074
- // react-16-compat: render LAST. A legacy root mounts synchronously, so layout
50075
- // effects (e.g. a customer `loadingSpinner`) run inside this call; one that
50076
- // calls `.remove()` must already hit the wrapper above, not the native method.
50077
- root.render(/*#__PURE__*/React__default.default.createElement(OverlayContainer, null, component));
50078
49180
  return targetElement;
50079
49181
  }
50080
49182
  function renderComponent(Component, targetElement, options) {