@digipair/skill-web-pdf 0.92.2 → 0.93.0-0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -0
- package/{index.cjs.js → dist/index.cjs.js} +138 -210
- package/{index.esm.js → dist/index.esm.js} +137 -189
- package/{libs/skill-web-pdf → dist}/src/index.d.ts +1 -0
- package/dist/src/index.d.ts.map +1 -0
- package/{libs/skill-web-pdf → dist}/src/lib/input-pdf.element.d.ts +1 -0
- package/dist/src/lib/input-pdf.element.d.ts.map +1 -0
- package/dist/src/lib/skill-web-pdf.d.ts +2 -0
- package/dist/src/lib/skill-web-pdf.d.ts.map +1 -0
- package/dist/src/lib/skill-web-pdf.spec.d.ts +2 -0
- package/dist/src/lib/skill-web-pdf.spec.d.ts.map +1 -0
- package/package.json +22 -6
- package/index.d.ts +0 -1
- package/libs/skill-web-pdf/src/lib/skill-web-pdf.d.ts +0 -1
- /package/{index.cjs.d.ts → dist/index.d.ts} +0 -0
- /package/{schema.fr.json → dist/schema.fr.json} +0 -0
- /package/{schema.json → dist/schema.json} +0 -0
|
@@ -1,32 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
function _interopNamespace(e) {
|
|
6
|
-
if (e && e.__esModule) return e;
|
|
7
|
-
var n = Object.create(null);
|
|
8
|
-
if (e) {
|
|
9
|
-
Object.keys(e).forEach(function (k) {
|
|
10
|
-
if (k !== 'default') {
|
|
11
|
-
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
12
|
-
Object.defineProperty(n, k, d.get ? d : {
|
|
13
|
-
enumerable: true,
|
|
14
|
-
get: function () { return e[k]; }
|
|
15
|
-
});
|
|
16
|
-
}
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
n["default"] = e;
|
|
20
|
-
return Object.freeze(n);
|
|
21
|
-
}
|
|
22
|
-
|
|
23
3
|
function __decorate(decorators, target, key, desc) {
|
|
24
4
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
25
5
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
26
6
|
else for(var i = decorators.length - 1; i >= 0; i--)if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
27
7
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
28
8
|
}
|
|
29
|
-
typeof SuppressedError === "function" ? SuppressedError : function
|
|
9
|
+
typeof SuppressedError === "function" ? SuppressedError : function(error, suppressed, message) {
|
|
30
10
|
var e = new Error(message);
|
|
31
11
|
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
32
12
|
};
|
|
@@ -51,7 +31,6 @@ function _defineProperties$3(target, props) {
|
|
|
51
31
|
}
|
|
52
32
|
function _create_class$3(Constructor, protoProps, staticProps) {
|
|
53
33
|
if (protoProps) _defineProperties$3(Constructor.prototype, protoProps);
|
|
54
|
-
if (staticProps) _defineProperties$3(Constructor, staticProps);
|
|
55
34
|
return Constructor;
|
|
56
35
|
}
|
|
57
36
|
function _instanceof(left, right) {
|
|
@@ -61,11 +40,11 @@ function _instanceof(left, right) {
|
|
|
61
40
|
return left instanceof right;
|
|
62
41
|
}
|
|
63
42
|
}
|
|
64
|
-
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$
|
|
43
|
+
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$4 = new WeakMap;
|
|
65
44
|
var n$3 = /*#__PURE__*/ function() {
|
|
66
45
|
function n(t, e, o) {
|
|
67
46
|
_class_call_check$3(this, n);
|
|
68
|
-
if (this._$cssResult$ =
|
|
47
|
+
if (this._$cssResult$ = true, o !== s$2) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
69
48
|
this.cssText = t, this.t = e;
|
|
70
49
|
}
|
|
71
50
|
_create_class$3(n, [
|
|
@@ -76,7 +55,7 @@ var n$3 = /*#__PURE__*/ function() {
|
|
|
76
55
|
var s = this.t;
|
|
77
56
|
if (e$2 && void 0 === t) {
|
|
78
57
|
var e1 = void 0 !== s && 1 === s.length;
|
|
79
|
-
e1 && (t = o$
|
|
58
|
+
e1 && (t = o$4.get(s)), void 0 === t && ((this.o = t = new CSSStyleSheet).replaceSync(this.cssText), e1 && o$4.set(s, t));
|
|
80
59
|
}
|
|
81
60
|
return t;
|
|
82
61
|
}
|
|
@@ -90,20 +69,20 @@ var n$3 = /*#__PURE__*/ function() {
|
|
|
90
69
|
]);
|
|
91
70
|
return n;
|
|
92
71
|
}();
|
|
93
|
-
var r$
|
|
94
|
-
return new n$3("string" == typeof t ? t : t + "", void 0, s$
|
|
72
|
+
var r$4 = function(t) {
|
|
73
|
+
return new n$3("string" == typeof t ? t : t + "", void 0, s$2);
|
|
95
74
|
}, i$3 = function(t) {
|
|
96
75
|
for(var _len = arguments.length, e = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++){
|
|
97
76
|
e[_key - 1] = arguments[_key];
|
|
98
77
|
}
|
|
99
78
|
var o = 1 === t.length ? t[0] : e.reduce(function(e, s, o) {
|
|
100
79
|
return e + function(t) {
|
|
101
|
-
if (
|
|
80
|
+
if (true === t._$cssResult$) return t.cssText;
|
|
102
81
|
if ("number" == typeof t) return t;
|
|
103
82
|
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.");
|
|
104
83
|
}(s) + t[o + 1];
|
|
105
84
|
}, t[0]);
|
|
106
|
-
return new n$3(o, t, s$
|
|
85
|
+
return new n$3(o, t, s$2);
|
|
107
86
|
}, S$1 = function(s, o) {
|
|
108
87
|
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
109
88
|
if (e$2) s.adoptedStyleSheets = o.map(function(t) {
|
|
@@ -154,7 +133,7 @@ var r$5 = function(t) {
|
|
|
154
133
|
}
|
|
155
134
|
}
|
|
156
135
|
}
|
|
157
|
-
return r$
|
|
136
|
+
return r$4(e);
|
|
158
137
|
}(t) : t;
|
|
159
138
|
};
|
|
160
139
|
|
|
@@ -296,7 +275,7 @@ function _non_iterable_spread$1() {
|
|
|
296
275
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
297
276
|
}
|
|
298
277
|
function _possible_constructor_return$2(self, call) {
|
|
299
|
-
if (call && (_type_of$
|
|
278
|
+
if (call && (_type_of$3(call) === "object" || typeof call === "function")) {
|
|
300
279
|
return call;
|
|
301
280
|
}
|
|
302
281
|
return _assert_this_initialized$2(self);
|
|
@@ -314,7 +293,7 @@ function _sliced_to_array$1(arr, i) {
|
|
|
314
293
|
function _to_consumable_array$1(arr) {
|
|
315
294
|
return _array_without_holes$1(arr) || _iterable_to_array$1(arr) || _unsupported_iterable_to_array$1(arr) || _non_iterable_spread$1();
|
|
316
295
|
}
|
|
317
|
-
function _type_of$
|
|
296
|
+
function _type_of$3(obj) {
|
|
318
297
|
"@swc/helpers - typeof";
|
|
319
298
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
320
299
|
}
|
|
@@ -476,7 +455,7 @@ var _Symbol, _a, _a1;
|
|
|
476
455
|
* @license
|
|
477
456
|
* Copyright 2017 Google LLC
|
|
478
457
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
479
|
-
*/ var i$2 = Object.is, e$1 = Object.defineProperty,
|
|
458
|
+
*/ var i$2 = Object.is, e$1 = Object.defineProperty, h$1 = Object.getOwnPropertyDescriptor, r$3 = Object.getOwnPropertyNames, o$3 = 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) {
|
|
480
459
|
return t;
|
|
481
460
|
}, u$1 = {
|
|
482
461
|
toAttribute: function toAttribute(t, s) {
|
|
@@ -511,25 +490,26 @@ var _Symbol, _a, _a1;
|
|
|
511
490
|
}
|
|
512
491
|
}, f$1 = function(t, s) {
|
|
513
492
|
return !i$2(t, s);
|
|
514
|
-
},
|
|
515
|
-
attribute:
|
|
493
|
+
}, b = {
|
|
494
|
+
attribute: true,
|
|
516
495
|
type: String,
|
|
517
496
|
converter: u$1,
|
|
518
|
-
reflect:
|
|
497
|
+
reflect: false,
|
|
498
|
+
useDefault: false,
|
|
519
499
|
hasChanged: f$1
|
|
520
500
|
};
|
|
521
501
|
var _metadata, _litPropertyMetadata;
|
|
522
502
|
(_metadata = (_Symbol = Symbol).metadata) !== null && _metadata !== void 0 ? _metadata : _Symbol.metadata = Symbol("metadata"), (_litPropertyMetadata = (_a = a$1).litPropertyMetadata) !== null && _litPropertyMetadata !== void 0 ? _litPropertyMetadata : _a.litPropertyMetadata = new WeakMap;
|
|
523
|
-
var
|
|
524
|
-
_inherits$2(
|
|
525
|
-
var _super = _create_super$2(
|
|
526
|
-
function
|
|
527
|
-
_class_call_check$2(this,
|
|
503
|
+
var y$1 = /*#__PURE__*/ function(HTMLElement1) {
|
|
504
|
+
_inherits$2(y, HTMLElement1);
|
|
505
|
+
var _super = _create_super$2(y);
|
|
506
|
+
function y() {
|
|
507
|
+
_class_call_check$2(this, y);
|
|
528
508
|
var _this;
|
|
529
|
-
_this = _super.call(this), _this._$Ep = void 0, _this.isUpdatePending =
|
|
509
|
+
_this = _super.call(this), _this._$Ep = void 0, _this.isUpdatePending = false, _this.hasUpdated = false, _this._$Em = null, _this._$Ev();
|
|
530
510
|
return _possible_constructor_return$2(_this);
|
|
531
511
|
}
|
|
532
|
-
_create_class$2(
|
|
512
|
+
_create_class$2(y, [
|
|
533
513
|
{
|
|
534
514
|
key: "_$Ev",
|
|
535
515
|
value: function _$Ev() {
|
|
@@ -597,7 +577,7 @@ var b = /*#__PURE__*/ function(HTMLElement1) {
|
|
|
597
577
|
value: function connectedCallback() {
|
|
598
578
|
var _this__$EO;
|
|
599
579
|
var _this_renderRoot;
|
|
600
|
-
(_this_renderRoot = this.renderRoot) !== null && _this_renderRoot !== void 0 ? _this_renderRoot : this.renderRoot = this.createRenderRoot(), this.enableUpdating(
|
|
580
|
+
(_this_renderRoot = this.renderRoot) !== null && _this_renderRoot !== void 0 ? _this_renderRoot : this.renderRoot = this.createRenderRoot(), this.enableUpdating(true), (_this__$EO = this._$EO) === null || _this__$EO === void 0 ? void 0 : _this__$EO.forEach(function(t) {
|
|
601
581
|
var _t_hostConnected;
|
|
602
582
|
return (_t_hostConnected = t.hostConnected) === null || _t_hostConnected === void 0 ? void 0 : _t_hostConnected.call(t);
|
|
603
583
|
});
|
|
@@ -624,13 +604,13 @@ var b = /*#__PURE__*/ function(HTMLElement1) {
|
|
|
624
604
|
}
|
|
625
605
|
},
|
|
626
606
|
{
|
|
627
|
-
key: "_$
|
|
628
|
-
value: function _$
|
|
607
|
+
key: "_$ET",
|
|
608
|
+
value: function _$ET(t, s) {
|
|
629
609
|
var i = this.constructor.elementProperties.get(t), e = this.constructor._$Eu(t, i);
|
|
630
|
-
if (void 0 !== e &&
|
|
610
|
+
if (void 0 !== e && true === i.reflect) {
|
|
631
611
|
var _i_converter;
|
|
632
|
-
var
|
|
633
|
-
this._$Em = t, null ==
|
|
612
|
+
var h = (void 0 !== ((_i_converter = i.converter) === null || _i_converter === void 0 ? void 0 : _i_converter.toAttribute) ? i.converter : u$1).toAttribute(s, i.type);
|
|
613
|
+
this._$Em = t, null == h ? this.removeAttribute(e) : this.setAttribute(e, h), this._$Em = null;
|
|
634
614
|
}
|
|
635
615
|
}
|
|
636
616
|
},
|
|
@@ -639,11 +619,12 @@ var b = /*#__PURE__*/ function(HTMLElement1) {
|
|
|
639
619
|
value: function _$AK(t, s) {
|
|
640
620
|
var i = this.constructor, e = i._$Eh.get(t);
|
|
641
621
|
if (void 0 !== e && this._$Em !== e) {
|
|
642
|
-
var _t_converter;
|
|
643
|
-
var _$t = i.getPropertyOptions(e),
|
|
622
|
+
var _t_converter, _this__$Ej;
|
|
623
|
+
var _$t = i.getPropertyOptions(e), h = "function" == typeof _$t.converter ? {
|
|
644
624
|
fromAttribute: _$t.converter
|
|
645
625
|
} : void 0 !== ((_t_converter = _$t.converter) === null || _t_converter === void 0 ? void 0 : _t_converter.fromAttribute) ? _$t.converter : u$1;
|
|
646
|
-
|
|
626
|
+
var _h_fromAttribute, _ref;
|
|
627
|
+
this._$Em = e, this[e] = (_ref = (_h_fromAttribute = h.fromAttribute(s, _$t.type)) !== null && _h_fromAttribute !== void 0 ? _h_fromAttribute : (_this__$Ej = this._$Ej) === null || _this__$Ej === void 0 ? void 0 : _this__$Ej.get(e)) !== null && _ref !== void 0 ? _ref : null, this._$Em = null;
|
|
647
628
|
}
|
|
648
629
|
}
|
|
649
630
|
},
|
|
@@ -651,30 +632,33 @@ var b = /*#__PURE__*/ function(HTMLElement1) {
|
|
|
651
632
|
key: "requestUpdate",
|
|
652
633
|
value: function requestUpdate(t, s, i) {
|
|
653
634
|
if (void 0 !== t) {
|
|
635
|
+
var _this__$Ej;
|
|
636
|
+
var e = this.constructor, h = this[t];
|
|
654
637
|
var _i_hasChanged;
|
|
655
|
-
if (i !== null && i !== void 0 ? i : i =
|
|
656
|
-
this.
|
|
638
|
+
if (i !== null && i !== void 0 ? i : i = e.getPropertyOptions(t), !(((_i_hasChanged = i.hasChanged) !== null && _i_hasChanged !== void 0 ? _i_hasChanged : f$1)(h, s) || i.useDefault && i.reflect && h === ((_this__$Ej = this._$Ej) === null || _this__$Ej === void 0 ? void 0 : _this__$Ej.get(t)) && !this.hasAttribute(e._$Eu(t, i)))) return;
|
|
639
|
+
this.C(t, s, i);
|
|
657
640
|
}
|
|
658
|
-
|
|
641
|
+
false === this.isUpdatePending && (this._$ES = this._$EP());
|
|
659
642
|
}
|
|
660
643
|
},
|
|
661
644
|
{
|
|
662
|
-
key: "
|
|
663
|
-
value: function
|
|
664
|
-
var
|
|
665
|
-
|
|
645
|
+
key: "C",
|
|
646
|
+
value: function C(t, s, param, r) {
|
|
647
|
+
var i = param.useDefault, e = param.reflect, h = param.wrapped;
|
|
648
|
+
var _this__$Ej, _ref, _this__$Eq;
|
|
649
|
+
i && !((_this__$Ej = this._$Ej) !== null && _this__$Ej !== void 0 ? _this__$Ej : this._$Ej = new Map).has(t) && (this._$Ej.set(t, (_ref = r !== null && r !== void 0 ? r : s) !== null && _ref !== void 0 ? _ref : this[t]), true !== h || void 0 !== r) || (this._$AL.has(t) || (this.hasUpdated || i || (s = void 0), this._$AL.set(t, s)), true === e && this._$Em !== t && ((_this__$Eq = this._$Eq) !== null && _this__$Eq !== void 0 ? _this__$Eq : this._$Eq = new Set).add(t));
|
|
666
650
|
}
|
|
667
651
|
},
|
|
668
652
|
{
|
|
669
|
-
key: "_$
|
|
670
|
-
value: function _$
|
|
653
|
+
key: "_$EP",
|
|
654
|
+
value: function _$EP() {
|
|
671
655
|
var _this = this;
|
|
672
656
|
return _async_to_generator(function() {
|
|
673
657
|
var t, _$t, _tmp;
|
|
674
658
|
return _ts_generator(this, function(_state) {
|
|
675
659
|
switch(_state.label){
|
|
676
660
|
case 0:
|
|
677
|
-
_this.isUpdatePending =
|
|
661
|
+
_this.isUpdatePending = true;
|
|
678
662
|
_state.label = 1;
|
|
679
663
|
case 1:
|
|
680
664
|
_state.trys.push([
|
|
@@ -764,7 +748,8 @@ var b = /*#__PURE__*/ function(HTMLElement1) {
|
|
|
764
748
|
if (t1.size > 0) try {
|
|
765
749
|
for(var _iterator1 = t1[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true){
|
|
766
750
|
var _step_value1 = _sliced_to_array$1(_step1.value, 2), _$s1 = _step_value1[0], i = _step_value1[1];
|
|
767
|
-
|
|
751
|
+
var t2 = i.wrapped, e = this[_$s1];
|
|
752
|
+
!0 !== t2 || this._$AL.has(_$s1) || void 0 === e || this.C(_$s1, void 0, i, e);
|
|
768
753
|
}
|
|
769
754
|
} catch (err) {
|
|
770
755
|
_didIteratorError1 = true;
|
|
@@ -781,18 +766,18 @@ var b = /*#__PURE__*/ function(HTMLElement1) {
|
|
|
781
766
|
}
|
|
782
767
|
}
|
|
783
768
|
}
|
|
784
|
-
var
|
|
769
|
+
var t3 = false;
|
|
785
770
|
var _$s2 = this._$AL;
|
|
786
771
|
try {
|
|
787
772
|
var _this__$EO;
|
|
788
|
-
|
|
773
|
+
t3 = this.shouldUpdate(_$s2), t3 ? (this.willUpdate(_$s2), (_this__$EO = this._$EO) === null || _this__$EO === void 0 ? void 0 : _this__$EO.forEach(function(t) {
|
|
789
774
|
var _t_hostUpdate;
|
|
790
775
|
return (_t_hostUpdate = t.hostUpdate) === null || _t_hostUpdate === void 0 ? void 0 : _t_hostUpdate.call(t);
|
|
791
|
-
}), this.update(_$s2)) : this._$
|
|
776
|
+
}), this.update(_$s2)) : this._$EM();
|
|
792
777
|
} catch (s) {
|
|
793
|
-
throw
|
|
778
|
+
throw t3 = false, this._$EM(), s;
|
|
794
779
|
}
|
|
795
|
-
|
|
780
|
+
t3 && this._$AE(_$s2);
|
|
796
781
|
}
|
|
797
782
|
},
|
|
798
783
|
{
|
|
@@ -806,13 +791,13 @@ var b = /*#__PURE__*/ function(HTMLElement1) {
|
|
|
806
791
|
(_this__$EO = this._$EO) === null || _this__$EO === void 0 ? void 0 : _this__$EO.forEach(function(t) {
|
|
807
792
|
var _t_hostUpdated;
|
|
808
793
|
return (_t_hostUpdated = t.hostUpdated) === null || _t_hostUpdated === void 0 ? void 0 : _t_hostUpdated.call(t);
|
|
809
|
-
}), this.hasUpdated || (this.hasUpdated =
|
|
794
|
+
}), this.hasUpdated || (this.hasUpdated = true, this.firstUpdated(t)), this.updated(t);
|
|
810
795
|
}
|
|
811
796
|
},
|
|
812
797
|
{
|
|
813
|
-
key: "_$
|
|
814
|
-
value: function _$
|
|
815
|
-
this._$AL = new Map, this.isUpdatePending =
|
|
798
|
+
key: "_$EM",
|
|
799
|
+
value: function _$EM() {
|
|
800
|
+
this._$AL = new Map, this.isUpdatePending = false;
|
|
816
801
|
}
|
|
817
802
|
},
|
|
818
803
|
{
|
|
@@ -830,16 +815,16 @@ var b = /*#__PURE__*/ function(HTMLElement1) {
|
|
|
830
815
|
{
|
|
831
816
|
key: "shouldUpdate",
|
|
832
817
|
value: function shouldUpdate(t) {
|
|
833
|
-
return
|
|
818
|
+
return true;
|
|
834
819
|
}
|
|
835
820
|
},
|
|
836
821
|
{
|
|
837
822
|
key: "update",
|
|
838
823
|
value: function update(t) {
|
|
839
824
|
var _this = this;
|
|
840
|
-
this._$
|
|
841
|
-
return _this._$
|
|
842
|
-
})), this._$
|
|
825
|
+
this._$Eq && (this._$Eq = this._$Eq.forEach(function(t) {
|
|
826
|
+
return _this._$ET(t, _this[t]);
|
|
827
|
+
})), this._$EM();
|
|
843
828
|
}
|
|
844
829
|
},
|
|
845
830
|
{
|
|
@@ -867,35 +852,33 @@ var b = /*#__PURE__*/ function(HTMLElement1) {
|
|
|
867
852
|
{
|
|
868
853
|
key: "createProperty",
|
|
869
854
|
value: function createProperty(t) {
|
|
870
|
-
var s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] :
|
|
871
|
-
if (s.state && (s.attribute =
|
|
872
|
-
var i = Symbol(),
|
|
873
|
-
void 0 !==
|
|
855
|
+
var s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : b;
|
|
856
|
+
if (s.state && (s.attribute = false), this._$Ei(), this.prototype.hasOwnProperty(t) && ((s = Object.create(s)).wrapped = true), this.elementProperties.set(t, s), !s.noAccessor) {
|
|
857
|
+
var i = Symbol(), h = this.getPropertyDescriptor(t, i, s);
|
|
858
|
+
void 0 !== h && e$1(this.prototype, t, h);
|
|
874
859
|
}
|
|
875
860
|
}
|
|
876
861
|
},
|
|
877
862
|
{
|
|
878
863
|
key: "getPropertyDescriptor",
|
|
879
864
|
value: function getPropertyDescriptor(t, s, i) {
|
|
880
|
-
var
|
|
881
|
-
var _ref = (
|
|
865
|
+
var _h;
|
|
866
|
+
var _ref = (_h = h$1(this.prototype, t)) !== null && _h !== void 0 ? _h : {
|
|
882
867
|
get: function get() {
|
|
883
868
|
return this[s];
|
|
884
869
|
},
|
|
885
870
|
set: function set(t) {
|
|
886
871
|
this[s] = t;
|
|
887
872
|
}
|
|
888
|
-
}, e = _ref.get,
|
|
873
|
+
}, e = _ref.get, r = _ref.set;
|
|
889
874
|
return {
|
|
890
|
-
get:
|
|
891
|
-
return e === null || e === void 0 ? void 0 : e.call(this);
|
|
892
|
-
},
|
|
875
|
+
get: e,
|
|
893
876
|
set: function set(s) {
|
|
894
|
-
var
|
|
895
|
-
|
|
877
|
+
var h = e === null || e === void 0 ? void 0 : e.call(this);
|
|
878
|
+
r === null || r === void 0 ? void 0 : r.call(this, s), this.requestUpdate(t, h, i);
|
|
896
879
|
},
|
|
897
|
-
configurable:
|
|
898
|
-
enumerable:
|
|
880
|
+
configurable: true,
|
|
881
|
+
enumerable: true
|
|
899
882
|
};
|
|
900
883
|
}
|
|
901
884
|
},
|
|
@@ -903,7 +886,7 @@ var b = /*#__PURE__*/ function(HTMLElement1) {
|
|
|
903
886
|
key: "getPropertyOptions",
|
|
904
887
|
value: function getPropertyOptions(t) {
|
|
905
888
|
var _this_elementProperties_get;
|
|
906
|
-
return (_this_elementProperties_get = this.elementProperties.get(t)) !== null && _this_elementProperties_get !== void 0 ? _this_elementProperties_get :
|
|
889
|
+
return (_this_elementProperties_get = this.elementProperties.get(t)) !== null && _this_elementProperties_get !== void 0 ? _this_elementProperties_get : b;
|
|
907
890
|
}
|
|
908
891
|
},
|
|
909
892
|
{
|
|
@@ -918,8 +901,8 @@ var b = /*#__PURE__*/ function(HTMLElement1) {
|
|
|
918
901
|
key: "finalize",
|
|
919
902
|
value: function finalize() {
|
|
920
903
|
if (this.hasOwnProperty(d$1("finalized"))) return;
|
|
921
|
-
if (this.finalized =
|
|
922
|
-
var t = this.properties, s = _to_consumable_array$1(
|
|
904
|
+
if (this.finalized = true, this._$Ei(), this.hasOwnProperty(d$1("properties"))) {
|
|
905
|
+
var t = this.properties, s = _to_consumable_array$1(r$3(t)).concat(_to_consumable_array$1(o$3(t)));
|
|
923
906
|
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
924
907
|
try {
|
|
925
908
|
for(var _iterator = s[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
@@ -1024,18 +1007,18 @@ var b = /*#__PURE__*/ function(HTMLElement1) {
|
|
|
1024
1007
|
key: "_$Eu",
|
|
1025
1008
|
value: function _$Eu(t, s) {
|
|
1026
1009
|
var i = s.attribute;
|
|
1027
|
-
return
|
|
1010
|
+
return false === i ? void 0 : "string" == typeof i ? i : "string" == typeof t ? t.toLowerCase() : void 0;
|
|
1028
1011
|
}
|
|
1029
1012
|
}
|
|
1030
1013
|
]);
|
|
1031
|
-
return
|
|
1014
|
+
return y;
|
|
1032
1015
|
}(_wrap_native_super(HTMLElement));
|
|
1033
1016
|
var _reactiveElementVersions;
|
|
1034
|
-
|
|
1017
|
+
y$1.elementStyles = [], y$1.shadowRootOptions = {
|
|
1035
1018
|
mode: "open"
|
|
1036
|
-
},
|
|
1037
|
-
ReactiveElement:
|
|
1038
|
-
}), ((_reactiveElementVersions = (_a1 = a$1).reactiveElementVersions) !== null && _reactiveElementVersions !== void 0 ? _reactiveElementVersions : _a1.reactiveElementVersions = []).push("2.0
|
|
1019
|
+
}, y$1[d$1("elementProperties")] = new Map, y$1[d$1("finalized")] = new Map, p$1 === null || p$1 === void 0 ? void 0 : p$1({
|
|
1020
|
+
ReactiveElement: y$1
|
|
1021
|
+
}), ((_reactiveElementVersions = (_a1 = a$1).reactiveElementVersions) !== null && _reactiveElementVersions !== void 0 ? _reactiveElementVersions : _a1.reactiveElementVersions = []).push("2.1.0");
|
|
1039
1022
|
|
|
1040
1023
|
/**
|
|
1041
1024
|
* @license
|
|
@@ -1130,7 +1113,7 @@ function _non_iterable_spread() {
|
|
|
1130
1113
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
1131
1114
|
}
|
|
1132
1115
|
function _possible_constructor_return$1(self, call) {
|
|
1133
|
-
if (call && (_type_of$
|
|
1116
|
+
if (call && (_type_of$2(call) === "object" || typeof call === "function")) {
|
|
1134
1117
|
return call;
|
|
1135
1118
|
}
|
|
1136
1119
|
return _assert_this_initialized$1(self);
|
|
@@ -1148,7 +1131,7 @@ function _sliced_to_array(arr, i) {
|
|
|
1148
1131
|
function _to_consumable_array(arr) {
|
|
1149
1132
|
return _array_without_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array(arr) || _non_iterable_spread();
|
|
1150
1133
|
}
|
|
1151
|
-
function _type_of$
|
|
1134
|
+
function _type_of$2(obj) {
|
|
1152
1135
|
"@swc/helpers - typeof";
|
|
1153
1136
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
1154
1137
|
}
|
|
@@ -1185,17 +1168,17 @@ function _create_super$1(Derived) {
|
|
|
1185
1168
|
};
|
|
1186
1169
|
}
|
|
1187
1170
|
var _t;
|
|
1188
|
-
var t$1 = globalThis, i$1 = t$1.trustedTypes, s = i$1 ? i$1.createPolicy("lit-html", {
|
|
1171
|
+
var t$1 = globalThis, i$1 = t$1.trustedTypes, s$1 = i$1 ? i$1.createPolicy("lit-html", {
|
|
1189
1172
|
createHTML: function(t) {
|
|
1190
1173
|
return t;
|
|
1191
1174
|
}
|
|
1192
|
-
}) : void 0, e = "$lit$", h = "lit$".concat(Math.random().toFixed(9).slice(2), "$"), o$
|
|
1193
|
-
return r$
|
|
1175
|
+
}) : void 0, e = "$lit$", h = "lit$".concat(Math.random().toFixed(9).slice(2), "$"), o$2 = "?" + h, n$1 = "<".concat(o$2, ">"), r$2 = document, l = function() {
|
|
1176
|
+
return r$2.createComment("");
|
|
1194
1177
|
}, c = function(t) {
|
|
1195
|
-
return null === t || "object" != typeof t && "function" != typeof t;
|
|
1178
|
+
return null === t || "object" != (typeof t === "undefined" ? "undefined" : _type_of$2(t)) && "function" != typeof t;
|
|
1196
1179
|
}, a = Array.isArray, u = function(t) {
|
|
1197
1180
|
return a(t) || "function" == typeof (t === null || t === void 0 ? void 0 : t[Symbol.iterator]);
|
|
1198
|
-
}, d = "[
|
|
1181
|
+
}, d = "[ \t\n\f\r]", f = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, v = /-->/g, _ = />/g, m = RegExp(">|".concat(d, "(?:([^\\s\"'>=/]+)(").concat(d, "*=").concat(d, "*(?:[^ \n\f\r\"'`<>=]|(\"|')|))|$)"), "g"), p = /'/g, g = /"/g, $ = /^(?:script|style|textarea|title)$/i, y = function(t) {
|
|
1199
1182
|
return function(i) {
|
|
1200
1183
|
for(var _len = arguments.length, s = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++){
|
|
1201
1184
|
s[_key - 1] = arguments[_key];
|
|
@@ -1206,10 +1189,10 @@ var t$1 = globalThis, i$1 = t$1.trustedTypes, s = i$1 ? i$1.createPolicy("lit-ht
|
|
|
1206
1189
|
values: s
|
|
1207
1190
|
};
|
|
1208
1191
|
};
|
|
1209
|
-
}, x = y(1), T = Symbol.for("lit-noChange"), E = Symbol.for("lit-nothing"), A = new WeakMap, C = r$
|
|
1192
|
+
}, x = y(1), T = Symbol.for("lit-noChange"), E = Symbol.for("lit-nothing"), A = new WeakMap, C = r$2.createTreeWalker(r$2, 129);
|
|
1210
1193
|
function P(t, i) {
|
|
1211
1194
|
if (!a(t) || !t.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
1212
|
-
return void 0 !== s ? s.createHTML(i) : i;
|
|
1195
|
+
return void 0 !== s$1 ? s$1.createHTML(i) : i;
|
|
1213
1196
|
}
|
|
1214
1197
|
var V = function(t, i) {
|
|
1215
1198
|
var s = t.length - 1, o = [];
|
|
@@ -1284,7 +1267,7 @@ var N = /*#__PURE__*/ function() {
|
|
|
1284
1267
|
r.append(t3[s2], l());
|
|
1285
1268
|
}
|
|
1286
1269
|
}
|
|
1287
|
-
} else if (8 === r.nodeType) if (r.data === o$
|
|
1270
|
+
} else if (8 === r.nodeType) if (r.data === o$2) d.push({
|
|
1288
1271
|
type: 2,
|
|
1289
1272
|
index: c
|
|
1290
1273
|
});
|
|
@@ -1302,7 +1285,7 @@ var N = /*#__PURE__*/ function() {
|
|
|
1302
1285
|
{
|
|
1303
1286
|
key: "createElement",
|
|
1304
1287
|
value: function createElement(t, i) {
|
|
1305
|
-
var s = r$
|
|
1288
|
+
var s = r$2.createElement("template");
|
|
1306
1289
|
return s.innerHTML = t, s;
|
|
1307
1290
|
}
|
|
1308
1291
|
}
|
|
@@ -1317,7 +1300,7 @@ function S(t, i) {
|
|
|
1317
1300
|
var h = void 0 !== e ? (_s__$Co = s._$Co) === null || _s__$Co === void 0 ? void 0 : _s__$Co[e] : s._$Cl;
|
|
1318
1301
|
var o = c(i) ? void 0 : i._$litDirective$;
|
|
1319
1302
|
var __$Co;
|
|
1320
|
-
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,
|
|
1303
|
+
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, false), 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;
|
|
1321
1304
|
}
|
|
1322
1305
|
var M = /*#__PURE__*/ function() {
|
|
1323
1306
|
function M(t, i) {
|
|
@@ -1341,7 +1324,7 @@ var M = /*#__PURE__*/ function() {
|
|
|
1341
1324
|
key: "u",
|
|
1342
1325
|
value: function u(t) {
|
|
1343
1326
|
var _t_creationScope;
|
|
1344
|
-
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$
|
|
1327
|
+
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$2).importNode(i, true);
|
|
1345
1328
|
C.currentNode = e;
|
|
1346
1329
|
var h = C.nextNode(), o = 0, n = 0, l = s[0];
|
|
1347
1330
|
for(; void 0 !== l;){
|
|
@@ -1351,7 +1334,7 @@ var M = /*#__PURE__*/ function() {
|
|
|
1351
1334
|
}
|
|
1352
1335
|
o !== (l === null || l === void 0 ? void 0 : l.index) && (h = C.nextNode(), o++);
|
|
1353
1336
|
}
|
|
1354
|
-
return C.currentNode = r$
|
|
1337
|
+
return C.currentNode = r$2, e;
|
|
1355
1338
|
}
|
|
1356
1339
|
},
|
|
1357
1340
|
{
|
|
@@ -1387,7 +1370,7 @@ var R = /*#__PURE__*/ function() {
|
|
|
1387
1370
|
function R(t, i, s, e) {
|
|
1388
1371
|
_class_call_check$1(this, R);
|
|
1389
1372
|
var _e_isConnected;
|
|
1390
|
-
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 :
|
|
1373
|
+
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 : true;
|
|
1391
1374
|
}
|
|
1392
1375
|
_create_class$1(R, [
|
|
1393
1376
|
{
|
|
@@ -1440,7 +1423,7 @@ var R = /*#__PURE__*/ function() {
|
|
|
1440
1423
|
{
|
|
1441
1424
|
key: "_",
|
|
1442
1425
|
value: function _(t) {
|
|
1443
|
-
this._$AH !== E && c(this._$AH) ? this._$AA.nextSibling.data = t : this.T(r$
|
|
1426
|
+
this._$AH !== E && c(this._$AH) ? this._$AA.nextSibling.data = t : this.T(r$2.createTextNode(t)), this._$AH = t;
|
|
1444
1427
|
}
|
|
1445
1428
|
},
|
|
1446
1429
|
{
|
|
@@ -1496,7 +1479,7 @@ var R = /*#__PURE__*/ function() {
|
|
|
1496
1479
|
value: function _$AR() {
|
|
1497
1480
|
var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this._$AA.nextSibling, i = arguments.length > 1 ? arguments[1] : void 0;
|
|
1498
1481
|
var _this__$AP, _this;
|
|
1499
|
-
for((_this__$AP = (_this = this)._$AP) === null || _this__$AP === void 0 ? void 0 : _this__$AP.call(_this,
|
|
1482
|
+
for((_this__$AP = (_this = this)._$AP) === null || _this__$AP === void 0 ? void 0 : _this__$AP.call(_this, false, true, i); t && t !== this._$AB;){
|
|
1500
1483
|
var i1 = t.nextSibling;
|
|
1501
1484
|
t.remove(), t = i1;
|
|
1502
1485
|
}
|
|
@@ -1535,7 +1518,7 @@ var k = /*#__PURE__*/ function() {
|
|
|
1535
1518
|
value: function _$AI(t) {
|
|
1536
1519
|
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;
|
|
1537
1520
|
var h = this.strings;
|
|
1538
|
-
var o =
|
|
1521
|
+
var o = false;
|
|
1539
1522
|
if (void 0 === h) t = S(this, t, i, 0), o = !c(t) || t !== this._$AH && t !== T, o && (this._$AH = t);
|
|
1540
1523
|
else {
|
|
1541
1524
|
var e1 = t;
|
|
@@ -1650,7 +1633,7 @@ var z = /*#__PURE__*/ function() {
|
|
|
1650
1633
|
}();
|
|
1651
1634
|
var j = t$1.litHtmlPolyfillSupport;
|
|
1652
1635
|
var _litHtmlVersions;
|
|
1653
|
-
j === null || j === void 0 ? void 0 : j(N, R), ((_litHtmlVersions = (_t = t$1).litHtmlVersions) !== null && _litHtmlVersions !== void 0 ? _litHtmlVersions : _t.litHtmlVersions = []).push("3.
|
|
1636
|
+
j === null || j === void 0 ? void 0 : j(N, R), ((_litHtmlVersions = (_t = t$1).litHtmlVersions) !== null && _litHtmlVersions !== void 0 ? _litHtmlVersions : _t.litHtmlVersions = []).push("3.3.0");
|
|
1654
1637
|
var B = function(t, i, s) {
|
|
1655
1638
|
var _s_renderBefore;
|
|
1656
1639
|
var e = (_s_renderBefore = s === null || s === void 0 ? void 0 : s.renderBefore) !== null && _s_renderBefore !== void 0 ? _s_renderBefore : i;
|
|
@@ -1685,7 +1668,6 @@ function _defineProperties(target, props) {
|
|
|
1685
1668
|
}
|
|
1686
1669
|
function _create_class(Constructor, protoProps, staticProps) {
|
|
1687
1670
|
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
1688
|
-
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
1689
1671
|
return Constructor;
|
|
1690
1672
|
}
|
|
1691
1673
|
function _get(target, property, receiver) {
|
|
@@ -1724,7 +1706,7 @@ function _inherits(subClass, superClass) {
|
|
|
1724
1706
|
if (superClass) _set_prototype_of(subClass, superClass);
|
|
1725
1707
|
}
|
|
1726
1708
|
function _possible_constructor_return(self, call) {
|
|
1727
|
-
if (call && (_type_of(call) === "object" || typeof call === "function")) {
|
|
1709
|
+
if (call && (_type_of$1(call) === "object" || typeof call === "function")) {
|
|
1728
1710
|
return call;
|
|
1729
1711
|
}
|
|
1730
1712
|
return _assert_this_initialized(self);
|
|
@@ -1743,7 +1725,7 @@ function _super_prop_base(object, property) {
|
|
|
1743
1725
|
}
|
|
1744
1726
|
return object;
|
|
1745
1727
|
}
|
|
1746
|
-
function _type_of(obj) {
|
|
1728
|
+
function _type_of$1(obj) {
|
|
1747
1729
|
"@swc/helpers - typeof";
|
|
1748
1730
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
1749
1731
|
}
|
|
@@ -1771,17 +1753,18 @@ function _create_super(Derived) {
|
|
|
1771
1753
|
return _possible_constructor_return(this, result);
|
|
1772
1754
|
};
|
|
1773
1755
|
}
|
|
1774
|
-
var
|
|
1775
|
-
var
|
|
1756
|
+
var _s_litElementHydrateSupport;
|
|
1757
|
+
var _s;
|
|
1776
1758
|
/**
|
|
1777
1759
|
* @license
|
|
1778
1760
|
* Copyright 2017 Google LLC
|
|
1779
1761
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1780
|
-
*/ var
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1762
|
+
*/ var s = globalThis;
|
|
1763
|
+
var i = /*#__PURE__*/ function(t) {
|
|
1764
|
+
_inherits(i, t);
|
|
1765
|
+
var _super = _create_super(i);
|
|
1766
|
+
function i() {
|
|
1767
|
+
_class_call_check(this, i);
|
|
1785
1768
|
var _this;
|
|
1786
1769
|
_this = _super.call.apply(_super, [
|
|
1787
1770
|
this
|
|
@@ -1790,12 +1773,12 @@ var _globalThis1;
|
|
|
1790
1773
|
}, _this._$Do = void 0;
|
|
1791
1774
|
return _possible_constructor_return(_this);
|
|
1792
1775
|
}
|
|
1793
|
-
_create_class(
|
|
1776
|
+
_create_class(i, [
|
|
1794
1777
|
{
|
|
1795
1778
|
key: "createRenderRoot",
|
|
1796
1779
|
value: function createRenderRoot() {
|
|
1797
1780
|
var _this_renderOptions;
|
|
1798
|
-
var _$t = _get(_get_prototype_of(
|
|
1781
|
+
var _$t = _get(_get_prototype_of(i.prototype), "createRenderRoot", this).call(this);
|
|
1799
1782
|
var _renderBefore;
|
|
1800
1783
|
return (_renderBefore = (_this_renderOptions = this.renderOptions).renderBefore) !== null && _renderBefore !== void 0 ? _renderBefore : _this_renderOptions.renderBefore = _$t.firstChild, _$t;
|
|
1801
1784
|
}
|
|
@@ -1803,22 +1786,22 @@ var _globalThis1;
|
|
|
1803
1786
|
{
|
|
1804
1787
|
key: "update",
|
|
1805
1788
|
value: function update(t) {
|
|
1806
|
-
var
|
|
1807
|
-
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), _get(_get_prototype_of(
|
|
1789
|
+
var r = this.render();
|
|
1790
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), _get(_get_prototype_of(i.prototype), "update", this).call(this, t), this._$Do = B(r, this.renderRoot, this.renderOptions);
|
|
1808
1791
|
}
|
|
1809
1792
|
},
|
|
1810
1793
|
{
|
|
1811
1794
|
key: "connectedCallback",
|
|
1812
1795
|
value: function connectedCallback() {
|
|
1813
1796
|
var _this__$Do;
|
|
1814
|
-
_get(_get_prototype_of(
|
|
1797
|
+
_get(_get_prototype_of(i.prototype), "connectedCallback", this).call(this), (_this__$Do = this._$Do) === null || _this__$Do === void 0 ? void 0 : _this__$Do.setConnected(true);
|
|
1815
1798
|
}
|
|
1816
1799
|
},
|
|
1817
1800
|
{
|
|
1818
1801
|
key: "disconnectedCallback",
|
|
1819
1802
|
value: function disconnectedCallback() {
|
|
1820
1803
|
var _this__$Do;
|
|
1821
|
-
_get(_get_prototype_of(
|
|
1804
|
+
_get(_get_prototype_of(i.prototype), "disconnectedCallback", this).call(this), (_this__$Do = this._$Do) === null || _this__$Do === void 0 ? void 0 : _this__$Do.setConnected(false);
|
|
1822
1805
|
}
|
|
1823
1806
|
},
|
|
1824
1807
|
{
|
|
@@ -1828,17 +1811,17 @@ var _globalThis1;
|
|
|
1828
1811
|
}
|
|
1829
1812
|
}
|
|
1830
1813
|
]);
|
|
1831
|
-
return
|
|
1832
|
-
}(
|
|
1833
|
-
|
|
1834
|
-
LitElement:
|
|
1814
|
+
return i;
|
|
1815
|
+
}(y$1);
|
|
1816
|
+
i._$litElement$ = true, i["finalized"] = true, (_s_litElementHydrateSupport = s.litElementHydrateSupport) === null || _s_litElementHydrateSupport === void 0 ? void 0 : _s_litElementHydrateSupport.call(s, {
|
|
1817
|
+
LitElement: i
|
|
1835
1818
|
});
|
|
1836
|
-
var
|
|
1837
|
-
|
|
1838
|
-
LitElement:
|
|
1819
|
+
var o$1 = s.litElementPolyfillSupport;
|
|
1820
|
+
o$1 === null || o$1 === void 0 ? void 0 : o$1({
|
|
1821
|
+
LitElement: i
|
|
1839
1822
|
});
|
|
1840
1823
|
var _litElementVersions;
|
|
1841
|
-
((_litElementVersions = (
|
|
1824
|
+
((_litElementVersions = (_s = s).litElementVersions) !== null && _litElementVersions !== void 0 ? _litElementVersions : _s.litElementVersions = []).push("4.2.0");
|
|
1842
1825
|
|
|
1843
1826
|
/**
|
|
1844
1827
|
* @license
|
|
@@ -1852,73 +1835,25 @@ var _litElementVersions;
|
|
|
1852
1835
|
};
|
|
1853
1836
|
};
|
|
1854
1837
|
|
|
1855
|
-
function
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
value: value,
|
|
1859
|
-
enumerable: true,
|
|
1860
|
-
configurable: true,
|
|
1861
|
-
writable: true
|
|
1862
|
-
});
|
|
1863
|
-
} else {
|
|
1864
|
-
obj[key] = value;
|
|
1865
|
-
}
|
|
1866
|
-
return obj;
|
|
1867
|
-
}
|
|
1868
|
-
function _object_spread$1(target) {
|
|
1869
|
-
for(var i = 1; i < arguments.length; i++){
|
|
1870
|
-
var source = arguments[i] != null ? arguments[i] : {};
|
|
1871
|
-
var ownKeys = Object.keys(source);
|
|
1872
|
-
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
1873
|
-
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
1874
|
-
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
1875
|
-
}));
|
|
1876
|
-
}
|
|
1877
|
-
ownKeys.forEach(function(key) {
|
|
1878
|
-
_define_property$1(target, key, source[key]);
|
|
1879
|
-
});
|
|
1880
|
-
}
|
|
1881
|
-
return target;
|
|
1882
|
-
}
|
|
1883
|
-
function ownKeys$1(object, enumerableOnly) {
|
|
1884
|
-
var keys = Object.keys(object);
|
|
1885
|
-
if (Object.getOwnPropertySymbols) {
|
|
1886
|
-
var symbols = Object.getOwnPropertySymbols(object);
|
|
1887
|
-
if (enumerableOnly) {
|
|
1888
|
-
symbols = symbols.filter(function(sym) {
|
|
1889
|
-
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
1890
|
-
});
|
|
1891
|
-
}
|
|
1892
|
-
keys.push.apply(keys, symbols);
|
|
1893
|
-
}
|
|
1894
|
-
return keys;
|
|
1895
|
-
}
|
|
1896
|
-
function _object_spread_props$1(target, source) {
|
|
1897
|
-
source = source != null ? source : {};
|
|
1898
|
-
if (Object.getOwnPropertyDescriptors) {
|
|
1899
|
-
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
1900
|
-
} else {
|
|
1901
|
-
ownKeys$1(Object(source)).forEach(function(key) {
|
|
1902
|
-
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
1903
|
-
});
|
|
1904
|
-
}
|
|
1905
|
-
return target;
|
|
1838
|
+
function _type_of(obj) {
|
|
1839
|
+
"@swc/helpers - typeof";
|
|
1840
|
+
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
1906
1841
|
}
|
|
1907
1842
|
/**
|
|
1908
1843
|
* @license
|
|
1909
1844
|
* Copyright 2017 Google LLC
|
|
1910
1845
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1911
1846
|
*/ var o = {
|
|
1912
|
-
attribute:
|
|
1847
|
+
attribute: true,
|
|
1913
1848
|
type: String,
|
|
1914
1849
|
converter: u$1,
|
|
1915
|
-
reflect:
|
|
1850
|
+
reflect: false,
|
|
1916
1851
|
hasChanged: f$1
|
|
1917
1852
|
}, r$1 = function() {
|
|
1918
1853
|
var _$t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : o, _$e = arguments.length > 1 ? arguments[1] : void 0, r = arguments.length > 2 ? arguments[2] : void 0;
|
|
1919
1854
|
var n = r.kind, i = r.metadata;
|
|
1920
1855
|
var s = globalThis.litPropertyMetadata.get(i);
|
|
1921
|
-
if (void 0 === s && globalThis.litPropertyMetadata.set(i, s = new Map), s.set(r.name, _$t), "accessor" === n) {
|
|
1856
|
+
if (void 0 === s && globalThis.litPropertyMetadata.set(i, s = new Map), "setter" === n && ((_$t = Object.create(_$t)).wrapped = true), s.set(r.name, _$t), "accessor" === n) {
|
|
1922
1857
|
var o1 = r.name;
|
|
1923
1858
|
return {
|
|
1924
1859
|
set: function set(r) {
|
|
@@ -1926,7 +1861,7 @@ function _object_spread_props$1(target, source) {
|
|
|
1926
1861
|
_$e.set.call(this, r), this.requestUpdate(o1, n, _$t);
|
|
1927
1862
|
},
|
|
1928
1863
|
init: function init(e) {
|
|
1929
|
-
return void 0 !== e && this.
|
|
1864
|
+
return void 0 !== e && this.C(o1, void 0, _$t, e), e;
|
|
1930
1865
|
}
|
|
1931
1866
|
};
|
|
1932
1867
|
}
|
|
@@ -1941,11 +1876,9 @@ function _object_spread_props$1(target, source) {
|
|
|
1941
1876
|
};
|
|
1942
1877
|
function n(t) {
|
|
1943
1878
|
return function(e, o) {
|
|
1944
|
-
return "object" == typeof o ? r$1(t, e, o) : function(t, e, o) {
|
|
1879
|
+
return "object" == (typeof o === "undefined" ? "undefined" : _type_of(o)) ? r$1(t, e, o) : function(t, e, o) {
|
|
1945
1880
|
var r = e.hasOwnProperty(o);
|
|
1946
|
-
return e.constructor.createProperty(o, r ?
|
|
1947
|
-
wrapped: !0
|
|
1948
|
-
}) : t), r ? Object.getOwnPropertyDescriptor(e, o) : void 0;
|
|
1881
|
+
return e.constructor.createProperty(o, t), r ? Object.getOwnPropertyDescriptor(e, o) : void 0;
|
|
1949
1882
|
}(t, e, o);
|
|
1950
1883
|
};
|
|
1951
1884
|
}
|
|
@@ -1982,11 +1915,6 @@ function ownKeys(object, enumerableOnly) {
|
|
|
1982
1915
|
var keys = Object.keys(object);
|
|
1983
1916
|
if (Object.getOwnPropertySymbols) {
|
|
1984
1917
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
1985
|
-
if (enumerableOnly) {
|
|
1986
|
-
symbols = symbols.filter(function(sym) {
|
|
1987
|
-
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
1988
|
-
});
|
|
1989
|
-
}
|
|
1990
1918
|
keys.push.apply(keys, symbols);
|
|
1991
1919
|
}
|
|
1992
1920
|
return keys;
|
|
@@ -2008,12 +1936,12 @@ function _object_spread_props(target, source) {
|
|
|
2008
1936
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2009
1937
|
*/ function r(r) {
|
|
2010
1938
|
return n(_object_spread_props(_object_spread({}, r), {
|
|
2011
|
-
state:
|
|
2012
|
-
attribute:
|
|
1939
|
+
state: true,
|
|
1940
|
+
attribute: false
|
|
2013
1941
|
}));
|
|
2014
1942
|
}
|
|
2015
1943
|
|
|
2016
|
-
class InputPdfElement extends
|
|
1944
|
+
class InputPdfElement extends i {
|
|
2017
1945
|
get content() {
|
|
2018
1946
|
return this._content;
|
|
2019
1947
|
}
|
|
@@ -2049,7 +1977,7 @@ class InputPdfElement extends r$2 {
|
|
|
2049
1977
|
const globalInstance = typeof window === 'undefined' ? global : window;
|
|
2050
1978
|
const config = globalInstance.__DIGIPAIR_CONFIG__;
|
|
2051
1979
|
const version = 'latest';
|
|
2052
|
-
const pdfjs = await (
|
|
1980
|
+
const pdfjs = await import(`${config.BASE_URL}/pdfjs-dist@${version}/build/pdf.min.mjs`);
|
|
2053
1981
|
pdfjs.GlobalWorkerOptions.workerSrc = `${config.BASE_URL}/pdfjs-dist@${version}/build/pdf.worker.min.mjs`;
|
|
2054
1982
|
const pdf = await pdfjs.getDocument(file).promise;
|
|
2055
1983
|
let text = '';
|