@digipair/skill-web-ocr 0.42.0 → 0.43.2

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.
Files changed (3) hide show
  1. package/index.cjs.js +137 -137
  2. package/index.esm.js +137 -137
  3. package/package.json +1 -1
package/index.cjs.js CHANGED
@@ -46,11 +46,11 @@ function _instanceof$1(left, right) {
46
46
  return left instanceof right;
47
47
  }
48
48
  }
49
- var t$2 = globalThis, e$2 = t$2.ShadowRoot && (void 0 === t$2.ShadyCSS || t$2.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, s$2 = Symbol(), o$3 = new WeakMap;
49
+ var t$2 = globalThis, e$2 = t$2.ShadowRoot && (void 0 === t$2.ShadyCSS || t$2.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, s$1 = Symbol(), o$3 = new WeakMap;
50
50
  var n$3 = /*#__PURE__*/ function() {
51
51
  function n(t, e, o) {
52
52
  _class_call_check$3(this, n);
53
- if (this._$cssResult$ = !0, o !== s$2) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
53
+ if (this._$cssResult$ = !0, o !== s$1) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
54
54
  this.cssText = t, this.t = e;
55
55
  }
56
56
  _create_class$3(n, [
@@ -76,8 +76,8 @@ var n$3 = /*#__PURE__*/ function() {
76
76
  return n;
77
77
  }();
78
78
  var r$5 = function(t) {
79
- return new n$3("string" == typeof t ? t : t + "", void 0, s$2);
80
- }, i$2 = function(t) {
79
+ return new n$3("string" == typeof t ? t : t + "", void 0, s$1);
80
+ }, i$3 = function(t) {
81
81
  for(var _len = arguments.length, e = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++){
82
82
  e[_key - 1] = arguments[_key];
83
83
  }
@@ -88,7 +88,7 @@ var r$5 = function(t) {
88
88
  throw Error("Value passed to 'css' function must be a 'css' function result: " + t + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
89
89
  }(s) + t[o + 1];
90
90
  }, t[0]);
91
- return new n$3(o, t, s$2);
91
+ return new n$3(o, t, s$1);
92
92
  }, S$1 = function(s, o) {
93
93
  var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
94
94
  if (e$2) s.adoptedStyleSheets = o.map(function(t) {
@@ -461,7 +461,7 @@ var _Symbol, _a, _a1;
461
461
  * @license
462
462
  * Copyright 2017 Google LLC
463
463
  * SPDX-License-Identifier: BSD-3-Clause
464
- */ var i$1 = Object.is, e$1 = Object.defineProperty, r$4 = Object.getOwnPropertyDescriptor, h$1 = Object.getOwnPropertyNames, o$2 = Object.getOwnPropertySymbols, n$2 = Object.getPrototypeOf, a$1 = globalThis, c$1 = a$1.trustedTypes, l$1 = c$1 ? c$1.emptyScript : "", p$1 = a$1.reactiveElementPolyfillSupport, d$1 = function(t, s) {
464
+ */ var i$2 = Object.is, e$1 = Object.defineProperty, r$4 = Object.getOwnPropertyDescriptor, h$1 = Object.getOwnPropertyNames, o$2 = Object.getOwnPropertySymbols, n$2 = Object.getPrototypeOf, a$1 = globalThis, c$1 = a$1.trustedTypes, l$1 = c$1 ? c$1.emptyScript : "", p$1 = a$1.reactiveElementPolyfillSupport, d$1 = function(t, s) {
465
465
  return t;
466
466
  }, u$1 = {
467
467
  toAttribute: function toAttribute(t, s) {
@@ -495,7 +495,7 @@ var _Symbol, _a, _a1;
495
495
  return i;
496
496
  }
497
497
  }, f$1 = function(t, s) {
498
- return !i$1(t, s);
498
+ return !i$2(t, s);
499
499
  }, y$1 = {
500
500
  attribute: !0,
501
501
  type: String,
@@ -1170,7 +1170,7 @@ function _create_super$1(Derived) {
1170
1170
  };
1171
1171
  }
1172
1172
  var _t;
1173
- var t$1 = globalThis, i = t$1.trustedTypes, s$1 = i ? i.createPolicy("lit-html", {
1173
+ var t$1 = globalThis, i$1 = t$1.trustedTypes, s = i$1 ? i$1.createPolicy("lit-html", {
1174
1174
  createHTML: function(t) {
1175
1175
  return t;
1176
1176
  }
@@ -1191,14 +1191,14 @@ var t$1 = globalThis, i = t$1.trustedTypes, s$1 = i ? i.createPolicy("lit-html",
1191
1191
  values: s
1192
1192
  };
1193
1193
  };
1194
- }, x = y(1), w = Symbol.for("lit-noChange"), T = Symbol.for("lit-nothing"), A = new WeakMap, E = r$3.createTreeWalker(r$3, 129);
1195
- function C(t, i) {
1196
- if (!Array.isArray(t) || !t.hasOwnProperty("raw")) throw Error("invalid template strings array");
1197
- return void 0 !== s$1 ? s$1.createHTML(i) : i;
1194
+ }, x = y(1), T = Symbol.for("lit-noChange"), E = Symbol.for("lit-nothing"), A = new WeakMap, C = r$3.createTreeWalker(r$3, 129);
1195
+ function P(t, i) {
1196
+ if (!a(t) || !t.hasOwnProperty("raw")) throw Error("invalid template strings array");
1197
+ return void 0 !== s ? s.createHTML(i) : i;
1198
1198
  }
1199
- var P = function(t, i) {
1199
+ var V = function(t, i) {
1200
1200
  var s = t.length - 1, o = [];
1201
- var r, l = 2 === i ? "<svg>" : "", c = f;
1201
+ var r, l = 2 === i ? "<svg>" : 3 === i ? "<math>" : "", c = f;
1202
1202
  for(var _$i = 0; _$i < s; _$i++){
1203
1203
  var s1 = t[_$i];
1204
1204
  var a = void 0, u = void 0, d = -1, y = 0;
@@ -1207,24 +1207,24 @@ var P = function(t, i) {
1207
1207
  l += c === f ? s1 + n$1 : d >= 0 ? (o.push(a), s1.slice(0, d) + e + s1.slice(d) + h + x) : s1 + h + (-2 === d ? _$i : x);
1208
1208
  }
1209
1209
  return [
1210
- C(t, l + (t[s] || "<?>") + (2 === i ? "</svg>" : "")),
1210
+ P(t, l + (t[s] || "<?>") + (2 === i ? "</svg>" : 3 === i ? "</math>" : "")),
1211
1211
  o
1212
1212
  ];
1213
1213
  };
1214
- var V = /*#__PURE__*/ function() {
1215
- function V(param, n) {
1214
+ var N = /*#__PURE__*/ function() {
1215
+ function N(param, n) {
1216
1216
  var t = param.strings, s = param._$litType$;
1217
- _class_call_check$1(this, V);
1217
+ _class_call_check$1(this, N);
1218
1218
  var r;
1219
1219
  this.parts = [];
1220
1220
  var c = 0, a = 0;
1221
- var u = t.length - 1, d = this.parts, _P = _sliced_to_array(P(t, s), 2), f = _P[0], v = _P[1];
1222
- if (this.el = V.createElement(f, n), E.currentNode = this.el.content, 2 === s) {
1221
+ var u = t.length - 1, d = this.parts, _V = _sliced_to_array(V(t, s), 2), f = _V[0], v = _V[1];
1222
+ if (this.el = N.createElement(f, n), C.currentNode = this.el.content, 2 === s || 3 === s) {
1223
1223
  var _t;
1224
1224
  var t1 = this.el.content.firstChild;
1225
1225
  (_t = t1).replaceWith.apply(_t, _to_consumable_array(t1.childNodes));
1226
1226
  }
1227
- for(; null !== (r = E.nextNode()) && d.length < u;){
1227
+ for(; null !== (r = C.nextNode()) && d.length < u;){
1228
1228
  if (1 === r.nodeType) {
1229
1229
  var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
1230
1230
  if (r.hasAttributes()) try {
@@ -1237,7 +1237,7 @@ var V = /*#__PURE__*/ function() {
1237
1237
  index: c,
1238
1238
  name: e1[2],
1239
1239
  strings: s1,
1240
- ctor: "." === e1[1] ? k : "?" === e1[1] ? H : "@" === e1[1] ? I : R
1240
+ ctor: "." === e1[1] ? H : "?" === e1[1] ? I : "@" === e1[1] ? L : k
1241
1241
  }), r.removeAttribute(t2);
1242
1242
  } else t2.startsWith(h) && (d.push({
1243
1243
  type: 6,
@@ -1261,8 +1261,8 @@ var V = /*#__PURE__*/ function() {
1261
1261
  if ($.test(r.tagName)) {
1262
1262
  var t3 = r.textContent.split(h), s2 = t3.length - 1;
1263
1263
  if (s2 > 0) {
1264
- r.textContent = i ? i.emptyScript : "";
1265
- for(var i2 = 0; i2 < s2; i2++)r.append(t3[i2], l()), E.nextNode(), d.push({
1264
+ r.textContent = i$1 ? i$1.emptyScript : "";
1265
+ for(var i2 = 0; i2 < s2; i2++)r.append(t3[i2], l()), C.nextNode(), d.push({
1266
1266
  type: 2,
1267
1267
  index: ++c
1268
1268
  });
@@ -1283,7 +1283,7 @@ var V = /*#__PURE__*/ function() {
1283
1283
  c++;
1284
1284
  }
1285
1285
  }
1286
- _create_class$1(V, null, [
1286
+ _create_class$1(N, null, [
1287
1287
  {
1288
1288
  key: "createElement",
1289
1289
  value: function createElement(t, i) {
@@ -1292,24 +1292,24 @@ var V = /*#__PURE__*/ function() {
1292
1292
  }
1293
1293
  }
1294
1294
  ]);
1295
- return V;
1295
+ return N;
1296
1296
  }();
1297
- function N(t, i) {
1297
+ function S(t, i) {
1298
1298
  var s = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : t, e = arguments.length > 3 ? arguments[3] : void 0;
1299
1299
  var _s__$Co, _h__$AO;
1300
1300
  var _s;
1301
- if (i === w) return i;
1301
+ if (i === T) return i;
1302
1302
  var h = void 0 !== e ? (_s__$Co = s._$Co) === null || _s__$Co === void 0 ? void 0 : _s__$Co[e] : s._$Cl;
1303
1303
  var o = c(i) ? void 0 : i._$litDirective$;
1304
1304
  var __$Co;
1305
- return (h === null || h === void 0 ? void 0 : h.constructor) !== o && (h === null || h === void 0 ? void 0 : (_h__$AO = h._$AO) === null || _h__$AO === void 0 ? void 0 : _h__$AO.call(h, !1), void 0 === o ? h = void 0 : (h = new o(t), h._$AT(t, s, e)), void 0 !== e ? ((__$Co = (_s = s)._$Co) !== null && __$Co !== void 0 ? __$Co : _s._$Co = [])[e] = h : s._$Cl = h), void 0 !== h && (i = N(t, h._$AS(t, i.values), h, e)), i;
1305
+ return (h === null || h === void 0 ? void 0 : h.constructor) !== o && (h === null || h === void 0 ? void 0 : (_h__$AO = h._$AO) === null || _h__$AO === void 0 ? void 0 : _h__$AO.call(h, !1), void 0 === o ? h = void 0 : (h = new o(t), h._$AT(t, s, e)), void 0 !== e ? ((__$Co = (_s = s)._$Co) !== null && __$Co !== void 0 ? __$Co : _s._$Co = [])[e] = h : s._$Cl = h), void 0 !== h && (i = S(t, h._$AS(t, i.values), h, e)), i;
1306
1306
  }
1307
- var S = /*#__PURE__*/ function() {
1308
- function S(t, i) {
1309
- _class_call_check$1(this, S);
1307
+ var M = /*#__PURE__*/ function() {
1308
+ function M(t, i) {
1309
+ _class_call_check$1(this, M);
1310
1310
  this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = i;
1311
1311
  }
1312
- _create_class$1(S, [
1312
+ _create_class$1(M, [
1313
1313
  {
1314
1314
  key: "parentNode",
1315
1315
  get: function get() {
@@ -1327,16 +1327,16 @@ var S = /*#__PURE__*/ function() {
1327
1327
  value: function u(t) {
1328
1328
  var _t_creationScope;
1329
1329
  var _this__$AD = this._$AD, _this__$AD_el = _this__$AD.el, i = _this__$AD_el.content, s = _this__$AD.parts, e = ((_t_creationScope = t === null || t === void 0 ? void 0 : t.creationScope) !== null && _t_creationScope !== void 0 ? _t_creationScope : r$3).importNode(i, !0);
1330
- E.currentNode = e;
1331
- var h = E.nextNode(), o = 0, n = 0, l = s[0];
1330
+ C.currentNode = e;
1331
+ var h = C.nextNode(), o = 0, n = 0, l = s[0];
1332
1332
  for(; void 0 !== l;){
1333
1333
  if (o === l.index) {
1334
1334
  var i1 = void 0;
1335
- 2 === l.type ? i1 = new M(h, h.nextSibling, this, t) : 1 === l.type ? i1 = new l.ctor(h, l.name, l.strings, this, t) : 6 === l.type && (i1 = new L(h, this, t)), this._$AV.push(i1), l = s[++n];
1335
+ 2 === l.type ? i1 = new R(h, h.nextSibling, this, t) : 1 === l.type ? i1 = new l.ctor(h, l.name, l.strings, this, t) : 6 === l.type && (i1 = new z(h, this, t)), this._$AV.push(i1), l = s[++n];
1336
1336
  }
1337
- o !== (l === null || l === void 0 ? void 0 : l.index) && (h = E.nextNode(), o++);
1337
+ o !== (l === null || l === void 0 ? void 0 : l.index) && (h = C.nextNode(), o++);
1338
1338
  }
1339
- return E.currentNode = r$3, e;
1339
+ return C.currentNode = r$3, e;
1340
1340
  }
1341
1341
  },
1342
1342
  {
@@ -1366,15 +1366,15 @@ var S = /*#__PURE__*/ function() {
1366
1366
  }
1367
1367
  }
1368
1368
  ]);
1369
- return S;
1369
+ return M;
1370
1370
  }();
1371
- var M = /*#__PURE__*/ function() {
1372
- function M(t, i, s, e) {
1373
- _class_call_check$1(this, M);
1371
+ var R = /*#__PURE__*/ function() {
1372
+ function R(t, i, s, e) {
1373
+ _class_call_check$1(this, R);
1374
1374
  var _e_isConnected;
1375
- this.type = 2, this._$AH = T, this._$AN = void 0, this._$AA = t, this._$AB = i, this._$AM = s, this.options = e, this._$Cv = (_e_isConnected = e === null || e === void 0 ? void 0 : e.isConnected) !== null && _e_isConnected !== void 0 ? _e_isConnected : !0;
1375
+ this.type = 2, this._$AH = E, this._$AN = void 0, this._$AA = t, this._$AB = i, this._$AM = s, this.options = e, this._$Cv = (_e_isConnected = e === null || e === void 0 ? void 0 : e.isConnected) !== null && _e_isConnected !== void 0 ? _e_isConnected : !0;
1376
1376
  }
1377
- _create_class$1(M, [
1377
+ _create_class$1(R, [
1378
1378
  {
1379
1379
  key: "_$AU",
1380
1380
  get: function get() {
@@ -1407,35 +1407,35 @@ var M = /*#__PURE__*/ function() {
1407
1407
  key: "_$AI",
1408
1408
  value: function _$AI(t) {
1409
1409
  var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this;
1410
- t = N(this, t, i), c(t) ? t === T || null == t || "" === t ? (this._$AH !== T && this._$AR(), this._$AH = T) : t !== this._$AH && t !== w && this._(t) : void 0 !== t._$litType$ ? this.$(t) : void 0 !== t.nodeType ? this.T(t) : u(t) ? this.k(t) : this._(t);
1410
+ t = S(this, t, i), c(t) ? t === E || null == t || "" === t ? (this._$AH !== E && this._$AR(), this._$AH = E) : t !== this._$AH && t !== T && this._(t) : void 0 !== t._$litType$ ? this.$(t) : void 0 !== t.nodeType ? this.T(t) : u(t) ? this.k(t) : this._(t);
1411
1411
  }
1412
1412
  },
1413
1413
  {
1414
- key: "S",
1415
- value: function S(t) {
1414
+ key: "O",
1415
+ value: function O(t) {
1416
1416
  return this._$AA.parentNode.insertBefore(t, this._$AB);
1417
1417
  }
1418
1418
  },
1419
1419
  {
1420
1420
  key: "T",
1421
1421
  value: function T(t) {
1422
- this._$AH !== t && (this._$AR(), this._$AH = this.S(t));
1422
+ this._$AH !== t && (this._$AR(), this._$AH = this.O(t));
1423
1423
  }
1424
1424
  },
1425
1425
  {
1426
1426
  key: "_",
1427
1427
  value: function _(t) {
1428
- this._$AH !== T && c(this._$AH) ? this._$AA.nextSibling.data = t : this.T(r$3.createTextNode(t)), this._$AH = t;
1428
+ this._$AH !== E && c(this._$AH) ? this._$AA.nextSibling.data = t : this.T(r$3.createTextNode(t)), this._$AH = t;
1429
1429
  }
1430
1430
  },
1431
1431
  {
1432
1432
  key: "$",
1433
1433
  value: function $(t) {
1434
1434
  var _this__$AH;
1435
- var i = t.values, s = t._$litType$, e = "number" == typeof s ? this._$AC(t) : (void 0 === s.el && (s.el = V.createElement(C(s.h, s.h[0]), this.options)), s);
1435
+ var i = t.values, s = t._$litType$, e = "number" == typeof s ? this._$AC(t) : (void 0 === s.el && (s.el = N.createElement(P(s.h, s.h[0]), this.options)), s);
1436
1436
  if (((_this__$AH = this._$AH) === null || _this__$AH === void 0 ? void 0 : _this__$AH._$AD) === e) this._$AH.p(i);
1437
1437
  else {
1438
- var _$t = new S(e, this), s1 = _$t.u(this.options);
1438
+ var _$t = new M(e, this), s1 = _$t.u(this.options);
1439
1439
  _$t.p(i), this.T(s1), this._$AH = _$t;
1440
1440
  }
1441
1441
  }
@@ -1444,7 +1444,7 @@ var M = /*#__PURE__*/ function() {
1444
1444
  key: "_$AC",
1445
1445
  value: function _$AC(t) {
1446
1446
  var i = A.get(t.strings);
1447
- return void 0 === i && A.set(t.strings, i = new V(t)), i;
1447
+ return void 0 === i && A.set(t.strings, i = new N(t)), i;
1448
1448
  }
1449
1449
  },
1450
1450
  {
@@ -1457,7 +1457,7 @@ var M = /*#__PURE__*/ function() {
1457
1457
  try {
1458
1458
  for(var _iterator = t[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
1459
1459
  var h = _step.value;
1460
- e === i.length ? i.push(s = new M(this.S(l()), this.S(l()), this, this.options)) : s = i[e], s._$AI(h), e++;
1460
+ e === i.length ? i.push(s = new R(this.O(l()), this.O(l()), this, this.options)) : s = i[e], s._$AI(h), e++;
1461
1461
  }
1462
1462
  } catch (err) {
1463
1463
  _didIteratorError = true;
@@ -1495,14 +1495,14 @@ var M = /*#__PURE__*/ function() {
1495
1495
  }
1496
1496
  }
1497
1497
  ]);
1498
- return M;
1498
+ return R;
1499
1499
  }();
1500
- var R = /*#__PURE__*/ function() {
1501
- function R(t, i, s, e, h) {
1502
- _class_call_check$1(this, R);
1503
- this.type = 1, this._$AH = T, this._$AN = void 0, this.element = t, this.name = i, this._$AM = e, this.options = h, s.length > 2 || "" !== s[0] || "" !== s[1] ? (this._$AH = Array(s.length - 1).fill(new String), this.strings = s) : this._$AH = T;
1500
+ var k = /*#__PURE__*/ function() {
1501
+ function k(t, i, s, e, h) {
1502
+ _class_call_check$1(this, k);
1503
+ this.type = 1, this._$AH = E, this._$AN = void 0, this.element = t, this.name = i, this._$AM = e, this.options = h, s.length > 2 || "" !== s[0] || "" !== s[1] ? (this._$AH = Array(s.length - 1).fill(new String), this.strings = s) : this._$AH = E;
1504
1504
  }
1505
- _create_class$1(R, [
1505
+ _create_class$1(k, [
1506
1506
  {
1507
1507
  key: "tagName",
1508
1508
  get: function get() {
@@ -1521,11 +1521,11 @@ var R = /*#__PURE__*/ function() {
1521
1521
  var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this, s = arguments.length > 2 ? arguments[2] : void 0, e = arguments.length > 3 ? arguments[3] : void 0;
1522
1522
  var h = this.strings;
1523
1523
  var o = !1;
1524
- if (void 0 === h) t = N(this, t, i, 0), o = !c(t) || t !== this._$AH && t !== w, o && (this._$AH = t);
1524
+ if (void 0 === h) t = S(this, t, i, 0), o = !c(t) || t !== this._$AH && t !== T, o && (this._$AH = t);
1525
1525
  else {
1526
1526
  var e1 = t;
1527
1527
  var n, r;
1528
- for(t = h[0], n = 0; n < h.length - 1; n++)r = N(this, e1[s + n], i, n), r === w && (r = this._$AH[n]), o || (o = !c(r) || r !== this._$AH[n]), r === T ? t = T : t !== T && (t += (r !== null && r !== void 0 ? r : "") + h[n + 1]), this._$AH[n] = r;
1528
+ for(t = h[0], n = 0; n < h.length - 1; n++)r = S(this, e1[s + n], i, n), r === T && (r = this._$AH[n]), o || (o = !c(r) || r !== this._$AH[n]), r === E ? t = E : t !== E && (t += (r !== null && r !== void 0 ? r : "") + h[n + 1]), this._$AH[n] = r;
1529
1529
  }
1530
1530
  o && !e && this.j(t);
1531
1531
  }
@@ -1533,71 +1533,71 @@ var R = /*#__PURE__*/ function() {
1533
1533
  {
1534
1534
  key: "j",
1535
1535
  value: function j(t) {
1536
- t === T ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t !== null && t !== void 0 ? t : "");
1536
+ t === E ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t !== null && t !== void 0 ? t : "");
1537
1537
  }
1538
1538
  }
1539
1539
  ]);
1540
- return R;
1540
+ return k;
1541
1541
  }();
1542
- var k = /*#__PURE__*/ function(R) {
1543
- _inherits$1(k, R);
1544
- var _super = _create_super$1(k);
1545
- function k() {
1546
- _class_call_check$1(this, k);
1542
+ var H = /*#__PURE__*/ function(k) {
1543
+ _inherits$1(H, k);
1544
+ var _super = _create_super$1(H);
1545
+ function H() {
1546
+ _class_call_check$1(this, H);
1547
1547
  var _this;
1548
1548
  _this = _super.call.apply(_super, [
1549
1549
  this
1550
1550
  ].concat(Array.prototype.slice.call(arguments))), _this.type = 3;
1551
1551
  return _possible_constructor_return$1(_this);
1552
1552
  }
1553
- _create_class$1(k, [
1553
+ _create_class$1(H, [
1554
1554
  {
1555
1555
  key: "j",
1556
1556
  value: function j(t) {
1557
- this.element[this.name] = t === T ? void 0 : t;
1557
+ this.element[this.name] = t === E ? void 0 : t;
1558
1558
  }
1559
1559
  }
1560
1560
  ]);
1561
- return k;
1562
- }(R);
1563
- var H = /*#__PURE__*/ function(R) {
1564
- _inherits$1(H, R);
1565
- var _super = _create_super$1(H);
1566
- function H() {
1567
- _class_call_check$1(this, H);
1561
+ return H;
1562
+ }(k);
1563
+ var I = /*#__PURE__*/ function(k) {
1564
+ _inherits$1(I, k);
1565
+ var _super = _create_super$1(I);
1566
+ function I() {
1567
+ _class_call_check$1(this, I);
1568
1568
  var _this;
1569
1569
  _this = _super.call.apply(_super, [
1570
1570
  this
1571
1571
  ].concat(Array.prototype.slice.call(arguments))), _this.type = 4;
1572
1572
  return _possible_constructor_return$1(_this);
1573
1573
  }
1574
- _create_class$1(H, [
1574
+ _create_class$1(I, [
1575
1575
  {
1576
1576
  key: "j",
1577
1577
  value: function j(t) {
1578
- this.element.toggleAttribute(this.name, !!t && t !== T);
1578
+ this.element.toggleAttribute(this.name, !!t && t !== E);
1579
1579
  }
1580
1580
  }
1581
1581
  ]);
1582
- return H;
1583
- }(R);
1584
- var I = /*#__PURE__*/ function(R) {
1585
- _inherits$1(I, R);
1586
- var _super = _create_super$1(I);
1587
- function I(t, i, s, e, h) {
1588
- _class_call_check$1(this, I);
1582
+ return I;
1583
+ }(k);
1584
+ var L = /*#__PURE__*/ function(k) {
1585
+ _inherits$1(L, k);
1586
+ var _super = _create_super$1(L);
1587
+ function L(t, i, s, e, h) {
1588
+ _class_call_check$1(this, L);
1589
1589
  var _this;
1590
1590
  _this = _super.call(this, t, i, s, e, h), _this.type = 5;
1591
1591
  return _possible_constructor_return$1(_this);
1592
1592
  }
1593
- _create_class$1(I, [
1593
+ _create_class$1(L, [
1594
1594
  {
1595
1595
  key: "_$AI",
1596
1596
  value: function _$AI(t) {
1597
1597
  var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this;
1598
- var _N;
1599
- if ((t = (_N = N(this, t, i, 0)) !== null && _N !== void 0 ? _N : T) === w) return;
1600
- var s = this._$AH, e = t === T && s !== T || t.capture !== s.capture || t.once !== s.once || t.passive !== s.passive, h = t !== T && (s === T || e);
1598
+ var _S;
1599
+ if ((t = (_S = S(this, t, i, 0)) !== null && _S !== void 0 ? _S : E) === T) return;
1600
+ var s = this._$AH, e = t === E && s !== E || t.capture !== s.capture || t.once !== s.once || t.passive !== s.passive, h = t !== E && (s === E || e);
1601
1601
  e && this.element.removeEventListener(this.name, this, s), h && this.element.addEventListener(this.name, this, t), this._$AH = t;
1602
1602
  }
1603
1603
  },
@@ -1610,14 +1610,14 @@ var I = /*#__PURE__*/ function(R) {
1610
1610
  }
1611
1611
  }
1612
1612
  ]);
1613
- return I;
1614
- }(R);
1615
- var L = /*#__PURE__*/ function() {
1616
- function L(t, i, s) {
1617
- _class_call_check$1(this, L);
1613
+ return L;
1614
+ }(k);
1615
+ var z = /*#__PURE__*/ function() {
1616
+ function z(t, i, s) {
1617
+ _class_call_check$1(this, z);
1618
1618
  this.element = t, this.type = 6, this._$AN = void 0, this._$AM = i, this.options = s;
1619
1619
  }
1620
- _create_class$1(L, [
1620
+ _create_class$1(z, [
1621
1621
  {
1622
1622
  key: "_$AU",
1623
1623
  get: function get() {
@@ -1627,23 +1627,23 @@ var L = /*#__PURE__*/ function() {
1627
1627
  {
1628
1628
  key: "_$AI",
1629
1629
  value: function _$AI(t) {
1630
- N(this, t);
1630
+ S(this, t);
1631
1631
  }
1632
1632
  }
1633
1633
  ]);
1634
- return L;
1634
+ return z;
1635
1635
  }();
1636
- var Z = t$1.litHtmlPolyfillSupport;
1636
+ var j = t$1.litHtmlPolyfillSupport;
1637
1637
  var _litHtmlVersions;
1638
- Z === null || Z === void 0 ? void 0 : Z(V, M), ((_litHtmlVersions = (_t = t$1).litHtmlVersions) !== null && _litHtmlVersions !== void 0 ? _litHtmlVersions : _t.litHtmlVersions = []).push("3.1.4");
1639
- var j = function(t, i, s) {
1638
+ j === null || j === void 0 ? void 0 : j(N, R), ((_litHtmlVersions = (_t = t$1).litHtmlVersions) !== null && _litHtmlVersions !== void 0 ? _litHtmlVersions : _t.litHtmlVersions = []).push("3.2.1");
1639
+ var B = function(t, i, s) {
1640
1640
  var _s_renderBefore;
1641
1641
  var e = (_s_renderBefore = s === null || s === void 0 ? void 0 : s.renderBefore) !== null && _s_renderBefore !== void 0 ? _s_renderBefore : i;
1642
1642
  var h = e._$litPart$;
1643
1643
  if (void 0 === h) {
1644
1644
  var _s_renderBefore1;
1645
1645
  var _$t = (_s_renderBefore1 = s === null || s === void 0 ? void 0 : s.renderBefore) !== null && _s_renderBefore1 !== void 0 ? _s_renderBefore1 : null;
1646
- e._$litPart$ = h = new M(i.insertBefore(l(), _$t), _$t, void 0, s !== null && s !== void 0 ? s : {});
1646
+ e._$litPart$ = h = new R(i.insertBefore(l(), _$t), _$t, void 0, s !== null && s !== void 0 ? s : {});
1647
1647
  }
1648
1648
  return h._$AI(t), h;
1649
1649
  };
@@ -1762,11 +1762,11 @@ var _globalThis1;
1762
1762
  * @license
1763
1763
  * Copyright 2017 Google LLC
1764
1764
  * SPDX-License-Identifier: BSD-3-Clause
1765
- */ var s = /*#__PURE__*/ function(t) {
1766
- _inherits(s, t);
1767
- var _super = _create_super(s);
1768
- function s() {
1769
- _class_call_check(this, s);
1765
+ */ var r$2 = /*#__PURE__*/ function(t) {
1766
+ _inherits(r, t);
1767
+ var _super = _create_super(r);
1768
+ function r() {
1769
+ _class_call_check(this, r);
1770
1770
  var _this;
1771
1771
  _this = _super.call.apply(_super, [
1772
1772
  this
@@ -1775,12 +1775,12 @@ var _globalThis1;
1775
1775
  }, _this._$Do = void 0;
1776
1776
  return _possible_constructor_return(_this);
1777
1777
  }
1778
- _create_class(s, [
1778
+ _create_class(r, [
1779
1779
  {
1780
1780
  key: "createRenderRoot",
1781
1781
  value: function createRenderRoot() {
1782
1782
  var _this_renderOptions;
1783
- var _$t = _get(_get_prototype_of(s.prototype), "createRenderRoot", this).call(this);
1783
+ var _$t = _get(_get_prototype_of(r.prototype), "createRenderRoot", this).call(this);
1784
1784
  var _renderBefore;
1785
1785
  return (_renderBefore = (_this_renderOptions = this.renderOptions).renderBefore) !== null && _renderBefore !== void 0 ? _renderBefore : _this_renderOptions.renderBefore = _$t.firstChild, _$t;
1786
1786
  }
@@ -1788,42 +1788,42 @@ var _globalThis1;
1788
1788
  {
1789
1789
  key: "update",
1790
1790
  value: function update(t) {
1791
- var i = this.render();
1792
- this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), _get(_get_prototype_of(s.prototype), "update", this).call(this, t), this._$Do = j(i, this.renderRoot, this.renderOptions);
1791
+ var s = this.render();
1792
+ this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), _get(_get_prototype_of(r.prototype), "update", this).call(this, t), this._$Do = B(s, this.renderRoot, this.renderOptions);
1793
1793
  }
1794
1794
  },
1795
1795
  {
1796
1796
  key: "connectedCallback",
1797
1797
  value: function connectedCallback() {
1798
1798
  var _this__$Do;
1799
- _get(_get_prototype_of(s.prototype), "connectedCallback", this).call(this), (_this__$Do = this._$Do) === null || _this__$Do === void 0 ? void 0 : _this__$Do.setConnected(!0);
1799
+ _get(_get_prototype_of(r.prototype), "connectedCallback", this).call(this), (_this__$Do = this._$Do) === null || _this__$Do === void 0 ? void 0 : _this__$Do.setConnected(!0);
1800
1800
  }
1801
1801
  },
1802
1802
  {
1803
1803
  key: "disconnectedCallback",
1804
1804
  value: function disconnectedCallback() {
1805
1805
  var _this__$Do;
1806
- _get(_get_prototype_of(s.prototype), "disconnectedCallback", this).call(this), (_this__$Do = this._$Do) === null || _this__$Do === void 0 ? void 0 : _this__$Do.setConnected(!1);
1806
+ _get(_get_prototype_of(r.prototype), "disconnectedCallback", this).call(this), (_this__$Do = this._$Do) === null || _this__$Do === void 0 ? void 0 : _this__$Do.setConnected(!1);
1807
1807
  }
1808
1808
  },
1809
1809
  {
1810
1810
  key: "render",
1811
1811
  value: function render() {
1812
- return w;
1812
+ return T;
1813
1813
  }
1814
1814
  }
1815
1815
  ]);
1816
- return s;
1816
+ return r;
1817
1817
  }(b);
1818
- s._$litElement$ = !0, s["finalized"] = !0, (_globalThis_litElementHydrateSupport = (_globalThis = globalThis).litElementHydrateSupport) === null || _globalThis_litElementHydrateSupport === void 0 ? void 0 : _globalThis_litElementHydrateSupport.call(_globalThis, {
1819
- LitElement: s
1818
+ r$2._$litElement$ = !0, r$2["finalized"] = !0, (_globalThis_litElementHydrateSupport = (_globalThis = globalThis).litElementHydrateSupport) === null || _globalThis_litElementHydrateSupport === void 0 ? void 0 : _globalThis_litElementHydrateSupport.call(_globalThis, {
1819
+ LitElement: r$2
1820
1820
  });
1821
- var r$2 = globalThis.litElementPolyfillSupport;
1822
- r$2 === null || r$2 === void 0 ? void 0 : r$2({
1823
- LitElement: s
1821
+ var i = globalThis.litElementPolyfillSupport;
1822
+ i === null || i === void 0 ? void 0 : i({
1823
+ LitElement: r$2
1824
1824
  });
1825
1825
  var _litElementVersions;
1826
- ((_litElementVersions = (_globalThis1 = globalThis).litElementVersions) !== null && _litElementVersions !== void 0 ? _litElementVersions : _globalThis1.litElementVersions = []).push("4.0.6");
1826
+ ((_litElementVersions = (_globalThis1 = globalThis).litElementVersions) !== null && _litElementVersions !== void 0 ? _litElementVersions : _globalThis1.litElementVersions = []).push("4.1.1");
1827
1827
 
1828
1828
  /**
1829
1829
  * @license
@@ -2137,7 +2137,7 @@ var tesseract_min$1 = {
2137
2137
  if (_$n === v) throw new Error("Generator is already running");
2138
2138
  if (_$n === d) {
2139
2139
  if ("throw" === o) throw i;
2140
- return I();
2140
+ return G();
2141
2141
  }
2142
2142
  for(e.method = o, e.arg = i;;){
2143
2143
  var a = e.delegate;
@@ -2205,10 +2205,10 @@ var tesseract_min$1 = {
2205
2205
  }
2206
2206
  }
2207
2207
  return {
2208
- next: I
2208
+ next: G
2209
2209
  };
2210
2210
  }
2211
- function I() {
2211
+ function G() {
2212
2212
  return {
2213
2213
  value: r,
2214
2214
  done: !0
@@ -3729,11 +3729,11 @@ var tesseract_min$1 = {
3729
3729
  }
3730
3730
  var p = e(187), y = e(549), v = e(106), d = e(185).log, g = e(313), m = e(847), b = e(581), w = b.defaultOptions, x = b.spawnWorker, L = b.terminateWorker, O = b.onMessage, E = b.loadImage, S = b.send, j = 0;
3731
3731
  t.exports = h(i().mark(function t() {
3732
- var r, _$e, n, c, f, s, b, P, k, _, T, N, A, I, G, F, R, D, M, C, U, Y, B, z, H, K, W, J, V, Z, Q, q, X, $, tt, rt, et, nt, ot, it, at = arguments;
3732
+ var r, _$e, n, c, f, s, b, P, k, _, T, N, A, G, I, F, R, D, M, C, U, Y, B, z, H, K, W, J, V, Z, Q, q, X, $, tt, rt, et, nt, ot, it, at = arguments;
3733
3733
  return i().wrap(function(t) {
3734
3734
  for(;;)switch(t.prev = t.next){
3735
3735
  case 0:
3736
- return r = at.length > 0 && void 0 !== at[0] ? at[0] : "eng", _$e = at.length > 1 && void 0 !== at[1] ? at[1] : m.LSTM_ONLY, n = at.length > 2 && void 0 !== at[2] ? at[2] : {}, c = at.length > 3 && void 0 !== at[3] ? at[3] : {}, f = g("Worker", j), s = p(u(u({}, w), n)), b = s.logger, P = s.errorHandler, k = l(s, o), _ = {}, T = {}, N = "string" == typeof r ? r.split("+") : r, A = _$e, I = c, G = [
3736
+ return r = at.length > 0 && void 0 !== at[0] ? at[0] : "eng", _$e = at.length > 1 && void 0 !== at[1] ? at[1] : m.LSTM_ONLY, n = at.length > 2 && void 0 !== at[2] ? at[2] : {}, c = at.length > 3 && void 0 !== at[3] ? at[3] : {}, f = g("Worker", j), s = p(u(u({}, w), n)), b = s.logger, P = s.errorHandler, k = l(s, o), _ = {}, T = {}, N = "string" == typeof r ? r.split("+") : r, A = _$e, G = c, I = [
3737
3737
  m.DEFAULT,
3738
3738
  m.LSTM_ONLY
3739
3739
  ].includes(_$e) && !k.legacyCore, D = new Promise(function(t, r) {
@@ -3764,7 +3764,7 @@ var tesseract_min$1 = {
3764
3764
  action: "load",
3765
3765
  payload: {
3766
3766
  options: {
3767
- lstmOnly: G,
3767
+ lstmOnly: I,
3768
3768
  corePath: k.corePath,
3769
3769
  logging: k.logging
3770
3770
  }
@@ -3831,8 +3831,8 @@ var tesseract_min$1 = {
3831
3831
  cacheMethod: k.cacheMethod,
3832
3832
  gzip: k.gzip,
3833
3833
  lstmOnly: [
3834
- m.LSTM_ONLY,
3835
- m.TESSERACT_LSTM_COMBINED
3834
+ m.DEFAULT,
3835
+ m.LSTM_ONLY
3836
3836
  ].includes(A) && !k.legacyLang
3837
3837
  }
3838
3838
  }
@@ -3851,14 +3851,14 @@ var tesseract_min$1 = {
3851
3851
  }));
3852
3852
  }, $ = function $() {
3853
3853
  var _$t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : "eng", r = arguments.length > 1 ? arguments[1] : void 0, _$e = arguments.length > 2 ? arguments[2] : void 0, n = arguments.length > 3 ? arguments[3] : void 0;
3854
- if (G && [
3854
+ if (I && [
3855
3855
  m.TESSERACT_ONLY,
3856
3856
  m.TESSERACT_LSTM_COMBINED
3857
3857
  ].includes(r)) throw Error("Legacy model requested but code missing.");
3858
3858
  var o = r || A;
3859
3859
  A = o;
3860
- var _$i = _$e || I;
3861
- I = _$i;
3860
+ var _$i = _$e || G;
3861
+ G = _$i;
3862
3862
  var c, u = ("string" == typeof _$t ? _$t.split("+") : _$t).filter(function(t) {
3863
3863
  return !N.includes(t);
3864
3864
  });
@@ -3931,7 +3931,7 @@ var tesseract_min$1 = {
3931
3931
  return i().wrap(function(t) {
3932
3932
  for(;;)switch(t.prev = t.next){
3933
3933
  case 0:
3934
- if (!G) {
3934
+ if (!I) {
3935
3935
  t.next = 2;
3936
3936
  break;
3937
3937
  }
@@ -5144,7 +5144,7 @@ var tesseract_min$1 = {
5144
5144
  },
5145
5145
  147: function(t) {
5146
5146
  t.exports = {
5147
- i8: "5.1.0"
5147
+ i8: "5.1.1"
5148
5148
  };
5149
5149
  }
5150
5150
  }, r = {};
@@ -5167,7 +5167,7 @@ var tesseract_min$1 = {
5167
5167
  var tesseract_minExports = tesseract_min$1.exports;
5168
5168
  var tesseract_min = /*@__PURE__*/ getDefaultExportFromCjs(tesseract_minExports);
5169
5169
 
5170
- class HiddenElement extends s {
5170
+ class HiddenElement extends r$2 {
5171
5171
  get value() {
5172
5172
  return this._value;
5173
5173
  }
@@ -5216,7 +5216,7 @@ HiddenElement = __decorate([
5216
5216
  t('digipair-input-ocr-selector')
5217
5217
  ], HiddenElement);
5218
5218
 
5219
- class InputOcrElement extends s {
5219
+ class InputOcrElement extends r$2 {
5220
5220
  get content() {
5221
5221
  return this._content;
5222
5222
  }
@@ -5275,7 +5275,7 @@ class InputOcrElement extends s {
5275
5275
  this._value = '';
5276
5276
  }
5277
5277
  }
5278
- InputOcrElement.styles = i$2`
5278
+ InputOcrElement.styles = i$3`
5279
5279
  .download {
5280
5280
  padding: 10px 15px;
5281
5281
  margin-bottom: 10px;