@d-i-t-a/reader 2.0.1 → 2.0.4
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 +45 -6
- package/dist/esm/index.js +322 -441
- package/dist/esm/index.js.map +2 -2
- package/dist/reader.js +17 -17
- package/dist/reader.js.map +2 -2
- package/dist/types/navigator/IFrameNavigator.d.ts +1 -8
- package/dist/types/utils/KeyboardEventHandler.d.ts +2 -1
- package/dist/types/utils/TouchEventHandler.d.ts +3 -0
- package/package.json +4 -4
package/dist/esm/index.js
CHANGED
|
@@ -2107,7 +2107,7 @@ var require_tslib = __commonJS({
|
|
|
2107
2107
|
ar[i] = from[i];
|
|
2108
2108
|
}
|
|
2109
2109
|
}
|
|
2110
|
-
return to.concat(ar || from);
|
|
2110
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
2111
2111
|
};
|
|
2112
2112
|
__await = function(v) {
|
|
2113
2113
|
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
@@ -2397,6 +2397,8 @@ var require_common = __commonJS({
|
|
|
2397
2397
|
function createDebug(namespace) {
|
|
2398
2398
|
let prevTime;
|
|
2399
2399
|
let enableOverride = null;
|
|
2400
|
+
let namespacesCache;
|
|
2401
|
+
let enabledCache;
|
|
2400
2402
|
function debug(...args) {
|
|
2401
2403
|
if (!debug.enabled) {
|
|
2402
2404
|
return;
|
|
@@ -2439,7 +2441,16 @@ var require_common = __commonJS({
|
|
|
2439
2441
|
Object.defineProperty(debug, "enabled", {
|
|
2440
2442
|
enumerable: true,
|
|
2441
2443
|
configurable: false,
|
|
2442
|
-
get: () =>
|
|
2444
|
+
get: () => {
|
|
2445
|
+
if (enableOverride !== null) {
|
|
2446
|
+
return enableOverride;
|
|
2447
|
+
}
|
|
2448
|
+
if (namespacesCache !== createDebug.namespaces) {
|
|
2449
|
+
namespacesCache = createDebug.namespaces;
|
|
2450
|
+
enabledCache = createDebug.enabled(namespace);
|
|
2451
|
+
}
|
|
2452
|
+
return enabledCache;
|
|
2453
|
+
},
|
|
2443
2454
|
set: (v) => {
|
|
2444
2455
|
enableOverride = v;
|
|
2445
2456
|
}
|
|
@@ -2456,6 +2467,7 @@ var require_common = __commonJS({
|
|
|
2456
2467
|
}
|
|
2457
2468
|
function enable(namespaces) {
|
|
2458
2469
|
createDebug.save(namespaces);
|
|
2470
|
+
createDebug.namespaces = namespaces;
|
|
2459
2471
|
createDebug.names = [];
|
|
2460
2472
|
createDebug.skips = [];
|
|
2461
2473
|
let i;
|
|
@@ -2467,7 +2479,7 @@ var require_common = __commonJS({
|
|
|
2467
2479
|
}
|
|
2468
2480
|
namespaces = split2[i].replace(/\*/g, ".*?");
|
|
2469
2481
|
if (namespaces[0] === "-") {
|
|
2470
|
-
createDebug.skips.push(new RegExp("^" + namespaces.
|
|
2482
|
+
createDebug.skips.push(new RegExp("^" + namespaces.slice(1) + "$"));
|
|
2471
2483
|
} else {
|
|
2472
2484
|
createDebug.names.push(new RegExp("^" + namespaces + "$"));
|
|
2473
2485
|
}
|
|
@@ -4488,7 +4500,7 @@ var require_tslib2 = __commonJS({
|
|
|
4488
4500
|
ar[i] = from[i];
|
|
4489
4501
|
}
|
|
4490
4502
|
}
|
|
4491
|
-
return to.concat(ar || from);
|
|
4503
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
4492
4504
|
};
|
|
4493
4505
|
__await = function(v) {
|
|
4494
4506
|
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
@@ -4658,32 +4670,32 @@ var require_metadata_encrypted = __commonJS({
|
|
|
4658
4670
|
}
|
|
4659
4671
|
}
|
|
4660
4672
|
};
|
|
4661
|
-
tslib_1.__decorate([
|
|
4662
|
-
ta_json_x_1.JsonProperty("scheme"),
|
|
4663
|
-
tslib_1.__metadata("design:type", String)
|
|
4673
|
+
(0, tslib_1.__decorate)([
|
|
4674
|
+
(0, ta_json_x_1.JsonProperty)("scheme"),
|
|
4675
|
+
(0, tslib_1.__metadata)("design:type", String)
|
|
4664
4676
|
], Encrypted.prototype, "Scheme", void 0);
|
|
4665
|
-
tslib_1.__decorate([
|
|
4666
|
-
ta_json_x_1.JsonProperty("profile"),
|
|
4667
|
-
tslib_1.__metadata("design:type", String)
|
|
4677
|
+
(0, tslib_1.__decorate)([
|
|
4678
|
+
(0, ta_json_x_1.JsonProperty)("profile"),
|
|
4679
|
+
(0, tslib_1.__metadata)("design:type", String)
|
|
4668
4680
|
], Encrypted.prototype, "Profile", void 0);
|
|
4669
|
-
tslib_1.__decorate([
|
|
4670
|
-
ta_json_x_1.JsonProperty("algorithm"),
|
|
4671
|
-
tslib_1.__metadata("design:type", String)
|
|
4681
|
+
(0, tslib_1.__decorate)([
|
|
4682
|
+
(0, ta_json_x_1.JsonProperty)("algorithm"),
|
|
4683
|
+
(0, tslib_1.__metadata)("design:type", String)
|
|
4672
4684
|
], Encrypted.prototype, "Algorithm", void 0);
|
|
4673
|
-
tslib_1.__decorate([
|
|
4674
|
-
ta_json_x_1.JsonProperty("compression"),
|
|
4675
|
-
tslib_1.__metadata("design:type", String)
|
|
4685
|
+
(0, tslib_1.__decorate)([
|
|
4686
|
+
(0, ta_json_x_1.JsonProperty)("compression"),
|
|
4687
|
+
(0, tslib_1.__metadata)("design:type", String)
|
|
4676
4688
|
], Encrypted.prototype, "Compression", void 0);
|
|
4677
|
-
tslib_1.__decorate([
|
|
4678
|
-
ta_json_x_1.JsonProperty("originalLength"),
|
|
4679
|
-
tslib_1.__metadata("design:type", Number)
|
|
4689
|
+
(0, tslib_1.__decorate)([
|
|
4690
|
+
(0, ta_json_x_1.JsonProperty)("originalLength"),
|
|
4691
|
+
(0, tslib_1.__metadata)("design:type", Number)
|
|
4680
4692
|
], Encrypted.prototype, "OriginalLength2", void 0);
|
|
4681
|
-
tslib_1.__decorate([
|
|
4682
|
-
ta_json_x_1.JsonProperty("original-length"),
|
|
4683
|
-
tslib_1.__metadata("design:type", Object)
|
|
4693
|
+
(0, tslib_1.__decorate)([
|
|
4694
|
+
(0, ta_json_x_1.JsonProperty)("original-length"),
|
|
4695
|
+
(0, tslib_1.__metadata)("design:type", Object)
|
|
4684
4696
|
], Encrypted.prototype, "OriginalLength1", void 0);
|
|
4685
|
-
Encrypted = tslib_1.__decorate([
|
|
4686
|
-
ta_json_x_1.JsonObject()
|
|
4697
|
+
Encrypted = (0, tslib_1.__decorate)([
|
|
4698
|
+
(0, ta_json_x_1.JsonObject)()
|
|
4687
4699
|
], Encrypted);
|
|
4688
4700
|
exports.Encrypted = Encrypted;
|
|
4689
4701
|
}
|
|
@@ -4734,40 +4746,40 @@ var require_metadata_properties = __commonJS({
|
|
|
4734
4746
|
var Properties = class Properties {
|
|
4735
4747
|
};
|
|
4736
4748
|
tslib_1.__decorate([
|
|
4737
|
-
ta_json_x_1.JsonProperty("contains"),
|
|
4738
|
-
ta_json_x_1.JsonElementType(String),
|
|
4749
|
+
(0, ta_json_x_1.JsonProperty)("contains"),
|
|
4750
|
+
(0, ta_json_x_1.JsonElementType)(String),
|
|
4739
4751
|
tslib_1.__metadata("design:type", Array)
|
|
4740
4752
|
], Properties.prototype, "Contains", void 0);
|
|
4741
4753
|
tslib_1.__decorate([
|
|
4742
|
-
ta_json_x_1.JsonProperty("layout"),
|
|
4754
|
+
(0, ta_json_x_1.JsonProperty)("layout"),
|
|
4743
4755
|
tslib_1.__metadata("design:type", String)
|
|
4744
4756
|
], Properties.prototype, "Layout", void 0);
|
|
4745
4757
|
tslib_1.__decorate([
|
|
4746
|
-
ta_json_x_1.JsonProperty("orientation"),
|
|
4758
|
+
(0, ta_json_x_1.JsonProperty)("orientation"),
|
|
4747
4759
|
tslib_1.__metadata("design:type", String)
|
|
4748
4760
|
], Properties.prototype, "Orientation", void 0);
|
|
4749
4761
|
tslib_1.__decorate([
|
|
4750
|
-
ta_json_x_1.JsonProperty("overflow"),
|
|
4762
|
+
(0, ta_json_x_1.JsonProperty)("overflow"),
|
|
4751
4763
|
tslib_1.__metadata("design:type", String)
|
|
4752
4764
|
], Properties.prototype, "Overflow", void 0);
|
|
4753
4765
|
tslib_1.__decorate([
|
|
4754
|
-
ta_json_x_1.JsonProperty("page"),
|
|
4766
|
+
(0, ta_json_x_1.JsonProperty)("page"),
|
|
4755
4767
|
tslib_1.__metadata("design:type", String)
|
|
4756
4768
|
], Properties.prototype, "Page", void 0);
|
|
4757
4769
|
tslib_1.__decorate([
|
|
4758
|
-
ta_json_x_1.JsonProperty("spread"),
|
|
4770
|
+
(0, ta_json_x_1.JsonProperty)("spread"),
|
|
4759
4771
|
tslib_1.__metadata("design:type", String)
|
|
4760
4772
|
], Properties.prototype, "Spread", void 0);
|
|
4761
4773
|
tslib_1.__decorate([
|
|
4762
|
-
ta_json_x_1.JsonProperty("encrypted"),
|
|
4774
|
+
(0, ta_json_x_1.JsonProperty)("encrypted"),
|
|
4763
4775
|
tslib_1.__metadata("design:type", metadata_encrypted_1.Encrypted)
|
|
4764
4776
|
], Properties.prototype, "Encrypted", void 0);
|
|
4765
4777
|
tslib_1.__decorate([
|
|
4766
|
-
ta_json_x_1.JsonProperty("media-overlay"),
|
|
4778
|
+
(0, ta_json_x_1.JsonProperty)("media-overlay"),
|
|
4767
4779
|
tslib_1.__metadata("design:type", String)
|
|
4768
4780
|
], Properties.prototype, "MediaOverlay", void 0);
|
|
4769
4781
|
Properties = tslib_1.__decorate([
|
|
4770
|
-
ta_json_x_1.JsonObject()
|
|
4782
|
+
(0, ta_json_x_1.JsonObject)()
|
|
4771
4783
|
], Properties);
|
|
4772
4784
|
exports.Properties = Properties;
|
|
4773
4785
|
}
|
|
@@ -4808,7 +4820,7 @@ var require_publication_link = __commonJS({
|
|
|
4808
4820
|
this._urlDecoded = null;
|
|
4809
4821
|
return void 0;
|
|
4810
4822
|
}
|
|
4811
|
-
this._urlDecoded = decodeURI_1.tryDecodeURI(this.Href);
|
|
4823
|
+
this._urlDecoded = (0, decodeURI_1.tryDecodeURI)(this.Href);
|
|
4812
4824
|
return !this._urlDecoded ? void 0 : this._urlDecoded;
|
|
4813
4825
|
}
|
|
4814
4826
|
set HrefDecoded(href) {
|
|
@@ -4843,65 +4855,65 @@ var require_publication_link = __commonJS({
|
|
|
4843
4855
|
}
|
|
4844
4856
|
};
|
|
4845
4857
|
tslib_1.__decorate([
|
|
4846
|
-
ta_json_x_1.JsonProperty("type"),
|
|
4858
|
+
(0, ta_json_x_1.JsonProperty)("type"),
|
|
4847
4859
|
tslib_1.__metadata("design:type", String)
|
|
4848
4860
|
], Link2.prototype, "TypeLink", void 0);
|
|
4849
4861
|
tslib_1.__decorate([
|
|
4850
|
-
ta_json_x_1.JsonProperty("height"),
|
|
4862
|
+
(0, ta_json_x_1.JsonProperty)("height"),
|
|
4851
4863
|
tslib_1.__metadata("design:type", Number)
|
|
4852
4864
|
], Link2.prototype, "Height", void 0);
|
|
4853
4865
|
tslib_1.__decorate([
|
|
4854
|
-
ta_json_x_1.JsonProperty("width"),
|
|
4866
|
+
(0, ta_json_x_1.JsonProperty)("width"),
|
|
4855
4867
|
tslib_1.__metadata("design:type", Number)
|
|
4856
4868
|
], Link2.prototype, "Width", void 0);
|
|
4857
4869
|
tslib_1.__decorate([
|
|
4858
|
-
ta_json_x_1.JsonProperty("title"),
|
|
4870
|
+
(0, ta_json_x_1.JsonProperty)("title"),
|
|
4859
4871
|
tslib_1.__metadata("design:type", String)
|
|
4860
4872
|
], Link2.prototype, "Title", void 0);
|
|
4861
4873
|
tslib_1.__decorate([
|
|
4862
|
-
ta_json_x_1.JsonProperty(PROPERTIES_JSON_PROP),
|
|
4874
|
+
(0, ta_json_x_1.JsonProperty)(PROPERTIES_JSON_PROP),
|
|
4863
4875
|
tslib_1.__metadata("design:type", metadata_properties_1.Properties)
|
|
4864
4876
|
], Link2.prototype, "Properties", void 0);
|
|
4865
4877
|
tslib_1.__decorate([
|
|
4866
|
-
ta_json_x_1.JsonProperty("duration"),
|
|
4878
|
+
(0, ta_json_x_1.JsonProperty)("duration"),
|
|
4867
4879
|
tslib_1.__metadata("design:type", Number)
|
|
4868
4880
|
], Link2.prototype, "Duration", void 0);
|
|
4869
4881
|
tslib_1.__decorate([
|
|
4870
|
-
ta_json_x_1.JsonProperty("bitrate"),
|
|
4882
|
+
(0, ta_json_x_1.JsonProperty)("bitrate"),
|
|
4871
4883
|
tslib_1.__metadata("design:type", Number)
|
|
4872
4884
|
], Link2.prototype, "Bitrate", void 0);
|
|
4873
4885
|
tslib_1.__decorate([
|
|
4874
|
-
ta_json_x_1.JsonProperty("templated"),
|
|
4886
|
+
(0, ta_json_x_1.JsonProperty)("templated"),
|
|
4875
4887
|
tslib_1.__metadata("design:type", Boolean)
|
|
4876
4888
|
], Link2.prototype, "Templated", void 0);
|
|
4877
4889
|
tslib_1.__decorate([
|
|
4878
|
-
ta_json_x_1.JsonProperty(CHILDREN_JSON_PROP),
|
|
4879
|
-
ta_json_x_1.JsonElementType(Link_1),
|
|
4890
|
+
(0, ta_json_x_1.JsonProperty)(CHILDREN_JSON_PROP),
|
|
4891
|
+
(0, ta_json_x_1.JsonElementType)(Link_1),
|
|
4880
4892
|
tslib_1.__metadata("design:type", Array)
|
|
4881
4893
|
], Link2.prototype, "Children", void 0);
|
|
4882
4894
|
tslib_1.__decorate([
|
|
4883
|
-
ta_json_x_1.JsonProperty(ALTERNATE_JSON_PROP),
|
|
4884
|
-
ta_json_x_1.JsonElementType(Link_1),
|
|
4895
|
+
(0, ta_json_x_1.JsonProperty)(ALTERNATE_JSON_PROP),
|
|
4896
|
+
(0, ta_json_x_1.JsonElementType)(Link_1),
|
|
4885
4897
|
tslib_1.__metadata("design:type", Array)
|
|
4886
4898
|
], Link2.prototype, "Alternate", void 0);
|
|
4887
4899
|
tslib_1.__decorate([
|
|
4888
|
-
ta_json_x_1.JsonProperty("rel"),
|
|
4889
|
-
ta_json_x_1.JsonConverter(ta_json_string_converter_1.JsonStringConverter),
|
|
4890
|
-
ta_json_x_1.JsonElementType(String),
|
|
4900
|
+
(0, ta_json_x_1.JsonProperty)("rel"),
|
|
4901
|
+
(0, ta_json_x_1.JsonConverter)(ta_json_string_converter_1.JsonStringConverter),
|
|
4902
|
+
(0, ta_json_x_1.JsonElementType)(String),
|
|
4891
4903
|
tslib_1.__metadata("design:type", Array)
|
|
4892
4904
|
], Link2.prototype, "Rel", void 0);
|
|
4893
4905
|
tslib_1.__decorate([
|
|
4894
|
-
ta_json_x_1.JsonProperty("href"),
|
|
4906
|
+
(0, ta_json_x_1.JsonProperty)("href"),
|
|
4895
4907
|
tslib_1.__metadata("design:type", String)
|
|
4896
4908
|
], Link2.prototype, "Href1", void 0);
|
|
4897
4909
|
tslib_1.__decorate([
|
|
4898
|
-
ta_json_x_1.OnDeserialized(),
|
|
4910
|
+
(0, ta_json_x_1.OnDeserialized)(),
|
|
4899
4911
|
tslib_1.__metadata("design:type", Function),
|
|
4900
4912
|
tslib_1.__metadata("design:paramtypes", []),
|
|
4901
4913
|
tslib_1.__metadata("design:returntype", void 0)
|
|
4902
4914
|
], Link2.prototype, "_OnDeserialized", null);
|
|
4903
4915
|
Link2 = Link_1 = tslib_1.__decorate([
|
|
4904
|
-
ta_json_x_1.JsonObject()
|
|
4916
|
+
(0, ta_json_x_1.JsonObject)()
|
|
4905
4917
|
], Link2);
|
|
4906
4918
|
exports.Link = Link2;
|
|
4907
4919
|
}
|
|
@@ -4936,44 +4948,44 @@ var require_metadata_contributor = __commonJS({
|
|
|
4936
4948
|
}
|
|
4937
4949
|
};
|
|
4938
4950
|
tslib_1.__decorate([
|
|
4939
|
-
ta_json_x_1.JsonProperty("name"),
|
|
4951
|
+
(0, ta_json_x_1.JsonProperty)("name"),
|
|
4940
4952
|
tslib_1.__metadata("design:type", Object)
|
|
4941
4953
|
], Contributor.prototype, "Name", void 0);
|
|
4942
4954
|
tslib_1.__decorate([
|
|
4943
|
-
ta_json_x_1.JsonProperty("sortAs"),
|
|
4955
|
+
(0, ta_json_x_1.JsonProperty)("sortAs"),
|
|
4944
4956
|
tslib_1.__metadata("design:type", String)
|
|
4945
4957
|
], Contributor.prototype, "SortAs2", void 0);
|
|
4946
4958
|
tslib_1.__decorate([
|
|
4947
|
-
ta_json_x_1.JsonProperty("sort_as"),
|
|
4959
|
+
(0, ta_json_x_1.JsonProperty)("sort_as"),
|
|
4948
4960
|
tslib_1.__metadata("design:type", Object)
|
|
4949
4961
|
], Contributor.prototype, "SortAs1", void 0);
|
|
4950
4962
|
tslib_1.__decorate([
|
|
4951
|
-
ta_json_x_1.JsonProperty("role"),
|
|
4952
|
-
ta_json_x_1.JsonConverter(ta_json_string_converter_1.JsonStringConverter),
|
|
4953
|
-
ta_json_x_1.JsonElementType(String),
|
|
4963
|
+
(0, ta_json_x_1.JsonProperty)("role"),
|
|
4964
|
+
(0, ta_json_x_1.JsonConverter)(ta_json_string_converter_1.JsonStringConverter),
|
|
4965
|
+
(0, ta_json_x_1.JsonElementType)(String),
|
|
4954
4966
|
tslib_1.__metadata("design:type", Array)
|
|
4955
4967
|
], Contributor.prototype, "Role", void 0);
|
|
4956
4968
|
tslib_1.__decorate([
|
|
4957
|
-
ta_json_x_1.JsonProperty("identifier"),
|
|
4969
|
+
(0, ta_json_x_1.JsonProperty)("identifier"),
|
|
4958
4970
|
tslib_1.__metadata("design:type", String)
|
|
4959
4971
|
], Contributor.prototype, "Identifier", void 0);
|
|
4960
4972
|
tslib_1.__decorate([
|
|
4961
|
-
ta_json_x_1.JsonProperty("position"),
|
|
4973
|
+
(0, ta_json_x_1.JsonProperty)("position"),
|
|
4962
4974
|
tslib_1.__metadata("design:type", Number)
|
|
4963
4975
|
], Contributor.prototype, "Position", void 0);
|
|
4964
4976
|
tslib_1.__decorate([
|
|
4965
|
-
ta_json_x_1.JsonProperty(LINKS_JSON_PROP),
|
|
4966
|
-
ta_json_x_1.JsonElementType(publication_link_1.Link),
|
|
4977
|
+
(0, ta_json_x_1.JsonProperty)(LINKS_JSON_PROP),
|
|
4978
|
+
(0, ta_json_x_1.JsonElementType)(publication_link_1.Link),
|
|
4967
4979
|
tslib_1.__metadata("design:type", Array)
|
|
4968
4980
|
], Contributor.prototype, "Links", void 0);
|
|
4969
4981
|
tslib_1.__decorate([
|
|
4970
|
-
ta_json_x_1.OnDeserialized(),
|
|
4982
|
+
(0, ta_json_x_1.OnDeserialized)(),
|
|
4971
4983
|
tslib_1.__metadata("design:type", Function),
|
|
4972
4984
|
tslib_1.__metadata("design:paramtypes", []),
|
|
4973
4985
|
tslib_1.__metadata("design:returntype", void 0)
|
|
4974
4986
|
], Contributor.prototype, "_OnDeserialized", null);
|
|
4975
4987
|
Contributor = tslib_1.__decorate([
|
|
4976
|
-
ta_json_x_1.JsonObject()
|
|
4988
|
+
(0, ta_json_x_1.JsonObject)()
|
|
4977
4989
|
], Contributor);
|
|
4978
4990
|
exports.Contributor = Contributor;
|
|
4979
4991
|
}
|
|
@@ -5015,7 +5027,7 @@ var require_metadata_contributor_json_converter = __commonJS({
|
|
|
5015
5027
|
return c.Name;
|
|
5016
5028
|
}
|
|
5017
5029
|
}
|
|
5018
|
-
return serializable_1.TaJsonSerialize(c);
|
|
5030
|
+
return (0, serializable_1.TaJsonSerialize)(c);
|
|
5019
5031
|
}
|
|
5020
5032
|
deserialize(value) {
|
|
5021
5033
|
if (typeof value === "string") {
|
|
@@ -5023,7 +5035,7 @@ var require_metadata_contributor_json_converter = __commonJS({
|
|
|
5023
5035
|
c.Name = value;
|
|
5024
5036
|
return c;
|
|
5025
5037
|
}
|
|
5026
|
-
return serializable_1.TaJsonDeserialize(value, metadata_contributor_1.Contributor);
|
|
5038
|
+
return (0, serializable_1.TaJsonDeserialize)(value, metadata_contributor_1.Contributor);
|
|
5027
5039
|
}
|
|
5028
5040
|
collapseArrayWithSingleItem() {
|
|
5029
5041
|
return true;
|
|
@@ -5049,19 +5061,19 @@ var require_metadata_belongsto = __commonJS({
|
|
|
5049
5061
|
var BelongsTo = class BelongsTo {
|
|
5050
5062
|
};
|
|
5051
5063
|
tslib_1.__decorate([
|
|
5052
|
-
ta_json_x_1.JsonProperty(SERIES_JSON_PROP),
|
|
5053
|
-
ta_json_x_1.JsonElementType(metadata_contributor_1.Contributor),
|
|
5054
|
-
ta_json_x_1.JsonConverter(metadata_contributor_json_converter_1.JsonContributorConverter),
|
|
5064
|
+
(0, ta_json_x_1.JsonProperty)(SERIES_JSON_PROP),
|
|
5065
|
+
(0, ta_json_x_1.JsonElementType)(metadata_contributor_1.Contributor),
|
|
5066
|
+
(0, ta_json_x_1.JsonConverter)(metadata_contributor_json_converter_1.JsonContributorConverter),
|
|
5055
5067
|
tslib_1.__metadata("design:type", Array)
|
|
5056
5068
|
], BelongsTo.prototype, "Series", void 0);
|
|
5057
5069
|
tslib_1.__decorate([
|
|
5058
|
-
ta_json_x_1.JsonProperty(COLLECTION_JSON_PROP),
|
|
5059
|
-
ta_json_x_1.JsonElementType(metadata_contributor_1.Contributor),
|
|
5060
|
-
ta_json_x_1.JsonConverter(metadata_contributor_json_converter_1.JsonContributorConverter),
|
|
5070
|
+
(0, ta_json_x_1.JsonProperty)(COLLECTION_JSON_PROP),
|
|
5071
|
+
(0, ta_json_x_1.JsonElementType)(metadata_contributor_1.Contributor),
|
|
5072
|
+
(0, ta_json_x_1.JsonConverter)(metadata_contributor_json_converter_1.JsonContributorConverter),
|
|
5061
5073
|
tslib_1.__metadata("design:type", Array)
|
|
5062
5074
|
], BelongsTo.prototype, "Collection", void 0);
|
|
5063
5075
|
BelongsTo = tslib_1.__decorate([
|
|
5064
|
-
ta_json_x_1.JsonObject()
|
|
5076
|
+
(0, ta_json_x_1.JsonObject)()
|
|
5065
5077
|
], BelongsTo);
|
|
5066
5078
|
exports.BelongsTo = BelongsTo;
|
|
5067
5079
|
}
|
|
@@ -5079,15 +5091,15 @@ var require_metadata_media_overlay = __commonJS({
|
|
|
5079
5091
|
var MediaOverlay = class MediaOverlay {
|
|
5080
5092
|
};
|
|
5081
5093
|
tslib_1.__decorate([
|
|
5082
|
-
ta_json_x_1.JsonProperty("active-class"),
|
|
5094
|
+
(0, ta_json_x_1.JsonProperty)("active-class"),
|
|
5083
5095
|
tslib_1.__metadata("design:type", String)
|
|
5084
5096
|
], MediaOverlay.prototype, "ActiveClass", void 0);
|
|
5085
5097
|
tslib_1.__decorate([
|
|
5086
|
-
ta_json_x_1.JsonProperty("playback-active-class"),
|
|
5098
|
+
(0, ta_json_x_1.JsonProperty)("playback-active-class"),
|
|
5087
5099
|
tslib_1.__metadata("design:type", String)
|
|
5088
5100
|
], MediaOverlay.prototype, "PlaybackActiveClass", void 0);
|
|
5089
5101
|
MediaOverlay = tslib_1.__decorate([
|
|
5090
|
-
ta_json_x_1.JsonObject()
|
|
5102
|
+
(0, ta_json_x_1.JsonObject)()
|
|
5091
5103
|
], MediaOverlay);
|
|
5092
5104
|
exports.MediaOverlay = MediaOverlay;
|
|
5093
5105
|
}
|
|
@@ -5121,38 +5133,38 @@ var require_metadata_subject = __commonJS({
|
|
|
5121
5133
|
}
|
|
5122
5134
|
};
|
|
5123
5135
|
tslib_1.__decorate([
|
|
5124
|
-
ta_json_x_1.JsonProperty("name"),
|
|
5136
|
+
(0, ta_json_x_1.JsonProperty)("name"),
|
|
5125
5137
|
tslib_1.__metadata("design:type", Object)
|
|
5126
5138
|
], Subject.prototype, "Name", void 0);
|
|
5127
5139
|
tslib_1.__decorate([
|
|
5128
|
-
ta_json_x_1.JsonProperty("sortAs"),
|
|
5140
|
+
(0, ta_json_x_1.JsonProperty)("sortAs"),
|
|
5129
5141
|
tslib_1.__metadata("design:type", String)
|
|
5130
5142
|
], Subject.prototype, "SortAs2", void 0);
|
|
5131
5143
|
tslib_1.__decorate([
|
|
5132
|
-
ta_json_x_1.JsonProperty("sort_as"),
|
|
5144
|
+
(0, ta_json_x_1.JsonProperty)("sort_as"),
|
|
5133
5145
|
tslib_1.__metadata("design:type", Object)
|
|
5134
5146
|
], Subject.prototype, "SortAs1", void 0);
|
|
5135
5147
|
tslib_1.__decorate([
|
|
5136
|
-
ta_json_x_1.JsonProperty("scheme"),
|
|
5148
|
+
(0, ta_json_x_1.JsonProperty)("scheme"),
|
|
5137
5149
|
tslib_1.__metadata("design:type", String)
|
|
5138
5150
|
], Subject.prototype, "Scheme", void 0);
|
|
5139
5151
|
tslib_1.__decorate([
|
|
5140
|
-
ta_json_x_1.JsonProperty("code"),
|
|
5152
|
+
(0, ta_json_x_1.JsonProperty)("code"),
|
|
5141
5153
|
tslib_1.__metadata("design:type", String)
|
|
5142
5154
|
], Subject.prototype, "Code", void 0);
|
|
5143
5155
|
tslib_1.__decorate([
|
|
5144
|
-
ta_json_x_1.JsonProperty(LINKS_JSON_PROP),
|
|
5145
|
-
ta_json_x_1.JsonElementType(publication_link_1.Link),
|
|
5156
|
+
(0, ta_json_x_1.JsonProperty)(LINKS_JSON_PROP),
|
|
5157
|
+
(0, ta_json_x_1.JsonElementType)(publication_link_1.Link),
|
|
5146
5158
|
tslib_1.__metadata("design:type", Array)
|
|
5147
5159
|
], Subject.prototype, "Links", void 0);
|
|
5148
5160
|
tslib_1.__decorate([
|
|
5149
|
-
ta_json_x_1.OnDeserialized(),
|
|
5161
|
+
(0, ta_json_x_1.OnDeserialized)(),
|
|
5150
5162
|
tslib_1.__metadata("design:type", Function),
|
|
5151
5163
|
tslib_1.__metadata("design:paramtypes", []),
|
|
5152
5164
|
tslib_1.__metadata("design:returntype", void 0)
|
|
5153
5165
|
], Subject.prototype, "_OnDeserialized", null);
|
|
5154
5166
|
Subject = tslib_1.__decorate([
|
|
5155
|
-
ta_json_x_1.JsonObject()
|
|
5167
|
+
(0, ta_json_x_1.JsonObject)()
|
|
5156
5168
|
], Subject);
|
|
5157
5169
|
exports.Subject = Subject;
|
|
5158
5170
|
}
|
|
@@ -5174,7 +5186,7 @@ var require_metadata_subject_json_converter = __commonJS({
|
|
|
5174
5186
|
return s.Name;
|
|
5175
5187
|
}
|
|
5176
5188
|
}
|
|
5177
|
-
return serializable_1.TaJsonSerialize(s);
|
|
5189
|
+
return (0, serializable_1.TaJsonSerialize)(s);
|
|
5178
5190
|
}
|
|
5179
5191
|
deserialize(value) {
|
|
5180
5192
|
if (typeof value === "string") {
|
|
@@ -5182,7 +5194,7 @@ var require_metadata_subject_json_converter = __commonJS({
|
|
|
5182
5194
|
s.Name = value;
|
|
5183
5195
|
return s;
|
|
5184
5196
|
}
|
|
5185
|
-
return serializable_1.TaJsonDeserialize(value, metadata_subject_1.Subject);
|
|
5197
|
+
return (0, serializable_1.TaJsonDeserialize)(value, metadata_subject_1.Subject);
|
|
5186
5198
|
}
|
|
5187
5199
|
collapseArrayWithSingleItem() {
|
|
5188
5200
|
return true;
|
|
@@ -5215,7 +5227,7 @@ var require_metadata = __commonJS({
|
|
|
5215
5227
|
DirectionEnum2["RTL"] = "rtl";
|
|
5216
5228
|
DirectionEnum2["LTR"] = "ltr";
|
|
5217
5229
|
})(DirectionEnum = exports.DirectionEnum || (exports.DirectionEnum = {}));
|
|
5218
|
-
exports.MetadataSupportedKeys = ["accessMode", "accessibilityFeature", "accessibilityHazard", "accessibilitySummary", "accessModeSufficient", "accessibilityAPI", "accessibilityControl", "certifiedBy", "certifierCredential", "certifierReport", "conformsTo", "title", "subtitle", "identifier", "author", "translator", "editor", "artist", "illustrator", "letterer", "penciler", "colorist", "inker", "narrator", "contributor", "publisher", "imprint", "language", "modified", "published", "sortAs", "description", "readingProgression", "direction", "belongsTo", "duration", "numberOfPages", "rights", "rendition", "source", "subject"];
|
|
5230
|
+
exports.MetadataSupportedKeys = ["dcterms:modified", "accessMode", "accessibilityFeature", "accessibilityHazard", "accessibilitySummary", "accessModeSufficient", "accessibilityAPI", "accessibilityControl", "certifiedBy", "certifierCredential", "certifierReport", "conformsTo", "title", "subtitle", "identifier", "author", "translator", "editor", "artist", "illustrator", "letterer", "penciler", "colorist", "inker", "narrator", "contributor", "publisher", "imprint", "language", "modified", "published", "sortAs", "description", "readingProgression", "direction", "belongsTo", "duration", "numberOfPages", "rights", "rendition", "source", "subject"];
|
|
5219
5231
|
var Metadata = class Metadata {
|
|
5220
5232
|
get SortAs() {
|
|
5221
5233
|
return this.SortAs2 ? this.SortAs2 : this.SortAs1;
|
|
@@ -5251,242 +5263,242 @@ var require_metadata = __commonJS({
|
|
|
5251
5263
|
}
|
|
5252
5264
|
};
|
|
5253
5265
|
tslib_1.__decorate([
|
|
5254
|
-
ta_json_x_1.JsonProperty("accessMode"),
|
|
5255
|
-
ta_json_x_1.JsonConverter(ta_json_string_converter_1.JsonStringConverter),
|
|
5256
|
-
ta_json_x_1.JsonElementType(String),
|
|
5266
|
+
(0, ta_json_x_1.JsonProperty)("accessMode"),
|
|
5267
|
+
(0, ta_json_x_1.JsonConverter)(ta_json_string_converter_1.JsonStringConverter),
|
|
5268
|
+
(0, ta_json_x_1.JsonElementType)(String),
|
|
5257
5269
|
tslib_1.__metadata("design:type", Array)
|
|
5258
5270
|
], Metadata.prototype, "AccessMode", void 0);
|
|
5259
5271
|
tslib_1.__decorate([
|
|
5260
|
-
ta_json_x_1.JsonProperty("accessibilityFeature"),
|
|
5261
|
-
ta_json_x_1.JsonConverter(ta_json_string_converter_1.JsonStringConverter),
|
|
5262
|
-
ta_json_x_1.JsonElementType(String),
|
|
5272
|
+
(0, ta_json_x_1.JsonProperty)("accessibilityFeature"),
|
|
5273
|
+
(0, ta_json_x_1.JsonConverter)(ta_json_string_converter_1.JsonStringConverter),
|
|
5274
|
+
(0, ta_json_x_1.JsonElementType)(String),
|
|
5263
5275
|
tslib_1.__metadata("design:type", Array)
|
|
5264
5276
|
], Metadata.prototype, "AccessibilityFeature", void 0);
|
|
5265
5277
|
tslib_1.__decorate([
|
|
5266
|
-
ta_json_x_1.JsonProperty("accessibilityHazard"),
|
|
5267
|
-
ta_json_x_1.JsonConverter(ta_json_string_converter_1.JsonStringConverter),
|
|
5268
|
-
ta_json_x_1.JsonElementType(String),
|
|
5278
|
+
(0, ta_json_x_1.JsonProperty)("accessibilityHazard"),
|
|
5279
|
+
(0, ta_json_x_1.JsonConverter)(ta_json_string_converter_1.JsonStringConverter),
|
|
5280
|
+
(0, ta_json_x_1.JsonElementType)(String),
|
|
5269
5281
|
tslib_1.__metadata("design:type", Array)
|
|
5270
5282
|
], Metadata.prototype, "AccessibilityHazard", void 0);
|
|
5271
5283
|
tslib_1.__decorate([
|
|
5272
|
-
ta_json_x_1.JsonProperty("accessibilitySummary"),
|
|
5284
|
+
(0, ta_json_x_1.JsonProperty)("accessibilitySummary"),
|
|
5273
5285
|
tslib_1.__metadata("design:type", Object)
|
|
5274
5286
|
], Metadata.prototype, "AccessibilitySummary", void 0);
|
|
5275
5287
|
tslib_1.__decorate([
|
|
5276
|
-
ta_json_x_1.JsonProperty("accessModeSufficient"),
|
|
5277
|
-
ta_json_x_1.JsonElementType(Array),
|
|
5288
|
+
(0, ta_json_x_1.JsonProperty)("accessModeSufficient"),
|
|
5289
|
+
(0, ta_json_x_1.JsonElementType)(Array),
|
|
5278
5290
|
tslib_1.__metadata("design:type", Array)
|
|
5279
5291
|
], Metadata.prototype, "AccessModeSufficient", void 0);
|
|
5280
5292
|
tslib_1.__decorate([
|
|
5281
|
-
ta_json_x_1.JsonProperty("accessibilityAPI"),
|
|
5282
|
-
ta_json_x_1.JsonConverter(ta_json_string_converter_1.JsonStringConverter),
|
|
5283
|
-
ta_json_x_1.JsonElementType(String),
|
|
5293
|
+
(0, ta_json_x_1.JsonProperty)("accessibilityAPI"),
|
|
5294
|
+
(0, ta_json_x_1.JsonConverter)(ta_json_string_converter_1.JsonStringConverter),
|
|
5295
|
+
(0, ta_json_x_1.JsonElementType)(String),
|
|
5284
5296
|
tslib_1.__metadata("design:type", Array)
|
|
5285
5297
|
], Metadata.prototype, "AccessibilityAPI", void 0);
|
|
5286
5298
|
tslib_1.__decorate([
|
|
5287
|
-
ta_json_x_1.JsonProperty("accessibilityControl"),
|
|
5288
|
-
ta_json_x_1.JsonConverter(ta_json_string_converter_1.JsonStringConverter),
|
|
5289
|
-
ta_json_x_1.JsonElementType(String),
|
|
5299
|
+
(0, ta_json_x_1.JsonProperty)("accessibilityControl"),
|
|
5300
|
+
(0, ta_json_x_1.JsonConverter)(ta_json_string_converter_1.JsonStringConverter),
|
|
5301
|
+
(0, ta_json_x_1.JsonElementType)(String),
|
|
5290
5302
|
tslib_1.__metadata("design:type", Array)
|
|
5291
5303
|
], Metadata.prototype, "AccessibilityControl", void 0);
|
|
5292
5304
|
tslib_1.__decorate([
|
|
5293
|
-
ta_json_x_1.JsonProperty("certifiedBy"),
|
|
5294
|
-
ta_json_x_1.JsonConverter(ta_json_string_converter_1.JsonStringConverter),
|
|
5295
|
-
ta_json_x_1.JsonElementType(String),
|
|
5305
|
+
(0, ta_json_x_1.JsonProperty)("certifiedBy"),
|
|
5306
|
+
(0, ta_json_x_1.JsonConverter)(ta_json_string_converter_1.JsonStringConverter),
|
|
5307
|
+
(0, ta_json_x_1.JsonElementType)(String),
|
|
5296
5308
|
tslib_1.__metadata("design:type", Array)
|
|
5297
5309
|
], Metadata.prototype, "CertifiedBy", void 0);
|
|
5298
5310
|
tslib_1.__decorate([
|
|
5299
|
-
ta_json_x_1.JsonProperty("certifierCredential"),
|
|
5300
|
-
ta_json_x_1.JsonConverter(ta_json_string_converter_1.JsonStringConverter),
|
|
5301
|
-
ta_json_x_1.JsonElementType(String),
|
|
5311
|
+
(0, ta_json_x_1.JsonProperty)("certifierCredential"),
|
|
5312
|
+
(0, ta_json_x_1.JsonConverter)(ta_json_string_converter_1.JsonStringConverter),
|
|
5313
|
+
(0, ta_json_x_1.JsonElementType)(String),
|
|
5302
5314
|
tslib_1.__metadata("design:type", Array)
|
|
5303
5315
|
], Metadata.prototype, "CertifierCredential", void 0);
|
|
5304
5316
|
tslib_1.__decorate([
|
|
5305
|
-
ta_json_x_1.JsonProperty("certifierReport"),
|
|
5306
|
-
ta_json_x_1.JsonConverter(ta_json_string_converter_1.JsonStringConverter),
|
|
5307
|
-
ta_json_x_1.JsonElementType(String),
|
|
5317
|
+
(0, ta_json_x_1.JsonProperty)("certifierReport"),
|
|
5318
|
+
(0, ta_json_x_1.JsonConverter)(ta_json_string_converter_1.JsonStringConverter),
|
|
5319
|
+
(0, ta_json_x_1.JsonElementType)(String),
|
|
5308
5320
|
tslib_1.__metadata("design:type", Array)
|
|
5309
5321
|
], Metadata.prototype, "CertifierReport", void 0);
|
|
5310
5322
|
tslib_1.__decorate([
|
|
5311
|
-
ta_json_x_1.JsonProperty("conformsTo"),
|
|
5312
|
-
ta_json_x_1.JsonConverter(ta_json_string_converter_1.JsonStringConverter),
|
|
5313
|
-
ta_json_x_1.JsonElementType(String),
|
|
5323
|
+
(0, ta_json_x_1.JsonProperty)("conformsTo"),
|
|
5324
|
+
(0, ta_json_x_1.JsonConverter)(ta_json_string_converter_1.JsonStringConverter),
|
|
5325
|
+
(0, ta_json_x_1.JsonElementType)(String),
|
|
5314
5326
|
tslib_1.__metadata("design:type", Array)
|
|
5315
5327
|
], Metadata.prototype, "ConformsTo", void 0);
|
|
5316
5328
|
tslib_1.__decorate([
|
|
5317
|
-
ta_json_x_1.JsonProperty("@type"),
|
|
5329
|
+
(0, ta_json_x_1.JsonProperty)("@type"),
|
|
5318
5330
|
tslib_1.__metadata("design:type", String)
|
|
5319
5331
|
], Metadata.prototype, "RDFType", void 0);
|
|
5320
5332
|
tslib_1.__decorate([
|
|
5321
|
-
ta_json_x_1.JsonProperty("title"),
|
|
5333
|
+
(0, ta_json_x_1.JsonProperty)("title"),
|
|
5322
5334
|
tslib_1.__metadata("design:type", Object)
|
|
5323
5335
|
], Metadata.prototype, "Title", void 0);
|
|
5324
5336
|
tslib_1.__decorate([
|
|
5325
|
-
ta_json_x_1.JsonProperty("subtitle"),
|
|
5337
|
+
(0, ta_json_x_1.JsonProperty)("subtitle"),
|
|
5326
5338
|
tslib_1.__metadata("design:type", Object)
|
|
5327
5339
|
], Metadata.prototype, "SubTitle", void 0);
|
|
5328
5340
|
tslib_1.__decorate([
|
|
5329
|
-
ta_json_x_1.JsonProperty("identifier"),
|
|
5341
|
+
(0, ta_json_x_1.JsonProperty)("identifier"),
|
|
5330
5342
|
tslib_1.__metadata("design:type", String)
|
|
5331
5343
|
], Metadata.prototype, "Identifier", void 0);
|
|
5332
5344
|
tslib_1.__decorate([
|
|
5333
|
-
ta_json_x_1.JsonProperty("author"),
|
|
5334
|
-
ta_json_x_1.JsonElementType(metadata_contributor_1.Contributor),
|
|
5335
|
-
ta_json_x_1.JsonConverter(metadata_contributor_json_converter_1.JsonContributorConverter),
|
|
5345
|
+
(0, ta_json_x_1.JsonProperty)("author"),
|
|
5346
|
+
(0, ta_json_x_1.JsonElementType)(metadata_contributor_1.Contributor),
|
|
5347
|
+
(0, ta_json_x_1.JsonConverter)(metadata_contributor_json_converter_1.JsonContributorConverter),
|
|
5336
5348
|
tslib_1.__metadata("design:type", Array)
|
|
5337
5349
|
], Metadata.prototype, "Author", void 0);
|
|
5338
5350
|
tslib_1.__decorate([
|
|
5339
|
-
ta_json_x_1.JsonProperty("translator"),
|
|
5340
|
-
ta_json_x_1.JsonElementType(metadata_contributor_1.Contributor),
|
|
5341
|
-
ta_json_x_1.JsonConverter(metadata_contributor_json_converter_1.JsonContributorConverter),
|
|
5351
|
+
(0, ta_json_x_1.JsonProperty)("translator"),
|
|
5352
|
+
(0, ta_json_x_1.JsonElementType)(metadata_contributor_1.Contributor),
|
|
5353
|
+
(0, ta_json_x_1.JsonConverter)(metadata_contributor_json_converter_1.JsonContributorConverter),
|
|
5342
5354
|
tslib_1.__metadata("design:type", Array)
|
|
5343
5355
|
], Metadata.prototype, "Translator", void 0);
|
|
5344
5356
|
tslib_1.__decorate([
|
|
5345
|
-
ta_json_x_1.JsonProperty("editor"),
|
|
5346
|
-
ta_json_x_1.JsonElementType(metadata_contributor_1.Contributor),
|
|
5347
|
-
ta_json_x_1.JsonConverter(metadata_contributor_json_converter_1.JsonContributorConverter),
|
|
5357
|
+
(0, ta_json_x_1.JsonProperty)("editor"),
|
|
5358
|
+
(0, ta_json_x_1.JsonElementType)(metadata_contributor_1.Contributor),
|
|
5359
|
+
(0, ta_json_x_1.JsonConverter)(metadata_contributor_json_converter_1.JsonContributorConverter),
|
|
5348
5360
|
tslib_1.__metadata("design:type", Array)
|
|
5349
5361
|
], Metadata.prototype, "Editor", void 0);
|
|
5350
5362
|
tslib_1.__decorate([
|
|
5351
|
-
ta_json_x_1.JsonProperty("artist"),
|
|
5352
|
-
ta_json_x_1.JsonElementType(metadata_contributor_1.Contributor),
|
|
5353
|
-
ta_json_x_1.JsonConverter(metadata_contributor_json_converter_1.JsonContributorConverter),
|
|
5363
|
+
(0, ta_json_x_1.JsonProperty)("artist"),
|
|
5364
|
+
(0, ta_json_x_1.JsonElementType)(metadata_contributor_1.Contributor),
|
|
5365
|
+
(0, ta_json_x_1.JsonConverter)(metadata_contributor_json_converter_1.JsonContributorConverter),
|
|
5354
5366
|
tslib_1.__metadata("design:type", Array)
|
|
5355
5367
|
], Metadata.prototype, "Artist", void 0);
|
|
5356
5368
|
tslib_1.__decorate([
|
|
5357
|
-
ta_json_x_1.JsonProperty("illustrator"),
|
|
5358
|
-
ta_json_x_1.JsonElementType(metadata_contributor_1.Contributor),
|
|
5359
|
-
ta_json_x_1.JsonConverter(metadata_contributor_json_converter_1.JsonContributorConverter),
|
|
5369
|
+
(0, ta_json_x_1.JsonProperty)("illustrator"),
|
|
5370
|
+
(0, ta_json_x_1.JsonElementType)(metadata_contributor_1.Contributor),
|
|
5371
|
+
(0, ta_json_x_1.JsonConverter)(metadata_contributor_json_converter_1.JsonContributorConverter),
|
|
5360
5372
|
tslib_1.__metadata("design:type", Array)
|
|
5361
5373
|
], Metadata.prototype, "Illustrator", void 0);
|
|
5362
5374
|
tslib_1.__decorate([
|
|
5363
|
-
ta_json_x_1.JsonProperty("letterer"),
|
|
5364
|
-
ta_json_x_1.JsonElementType(metadata_contributor_1.Contributor),
|
|
5365
|
-
ta_json_x_1.JsonConverter(metadata_contributor_json_converter_1.JsonContributorConverter),
|
|
5375
|
+
(0, ta_json_x_1.JsonProperty)("letterer"),
|
|
5376
|
+
(0, ta_json_x_1.JsonElementType)(metadata_contributor_1.Contributor),
|
|
5377
|
+
(0, ta_json_x_1.JsonConverter)(metadata_contributor_json_converter_1.JsonContributorConverter),
|
|
5366
5378
|
tslib_1.__metadata("design:type", Array)
|
|
5367
5379
|
], Metadata.prototype, "Letterer", void 0);
|
|
5368
5380
|
tslib_1.__decorate([
|
|
5369
|
-
ta_json_x_1.JsonProperty("penciler"),
|
|
5370
|
-
ta_json_x_1.JsonElementType(metadata_contributor_1.Contributor),
|
|
5371
|
-
ta_json_x_1.JsonConverter(metadata_contributor_json_converter_1.JsonContributorConverter),
|
|
5381
|
+
(0, ta_json_x_1.JsonProperty)("penciler"),
|
|
5382
|
+
(0, ta_json_x_1.JsonElementType)(metadata_contributor_1.Contributor),
|
|
5383
|
+
(0, ta_json_x_1.JsonConverter)(metadata_contributor_json_converter_1.JsonContributorConverter),
|
|
5372
5384
|
tslib_1.__metadata("design:type", Array)
|
|
5373
5385
|
], Metadata.prototype, "Penciler", void 0);
|
|
5374
5386
|
tslib_1.__decorate([
|
|
5375
|
-
ta_json_x_1.JsonProperty("colorist"),
|
|
5376
|
-
ta_json_x_1.JsonElementType(metadata_contributor_1.Contributor),
|
|
5377
|
-
ta_json_x_1.JsonConverter(metadata_contributor_json_converter_1.JsonContributorConverter),
|
|
5387
|
+
(0, ta_json_x_1.JsonProperty)("colorist"),
|
|
5388
|
+
(0, ta_json_x_1.JsonElementType)(metadata_contributor_1.Contributor),
|
|
5389
|
+
(0, ta_json_x_1.JsonConverter)(metadata_contributor_json_converter_1.JsonContributorConverter),
|
|
5378
5390
|
tslib_1.__metadata("design:type", Array)
|
|
5379
5391
|
], Metadata.prototype, "Colorist", void 0);
|
|
5380
5392
|
tslib_1.__decorate([
|
|
5381
|
-
ta_json_x_1.JsonProperty("inker"),
|
|
5382
|
-
ta_json_x_1.JsonElementType(metadata_contributor_1.Contributor),
|
|
5383
|
-
ta_json_x_1.JsonConverter(metadata_contributor_json_converter_1.JsonContributorConverter),
|
|
5393
|
+
(0, ta_json_x_1.JsonProperty)("inker"),
|
|
5394
|
+
(0, ta_json_x_1.JsonElementType)(metadata_contributor_1.Contributor),
|
|
5395
|
+
(0, ta_json_x_1.JsonConverter)(metadata_contributor_json_converter_1.JsonContributorConverter),
|
|
5384
5396
|
tslib_1.__metadata("design:type", Array)
|
|
5385
5397
|
], Metadata.prototype, "Inker", void 0);
|
|
5386
5398
|
tslib_1.__decorate([
|
|
5387
|
-
ta_json_x_1.JsonProperty("narrator"),
|
|
5388
|
-
ta_json_x_1.JsonElementType(metadata_contributor_1.Contributor),
|
|
5389
|
-
ta_json_x_1.JsonConverter(metadata_contributor_json_converter_1.JsonContributorConverter),
|
|
5399
|
+
(0, ta_json_x_1.JsonProperty)("narrator"),
|
|
5400
|
+
(0, ta_json_x_1.JsonElementType)(metadata_contributor_1.Contributor),
|
|
5401
|
+
(0, ta_json_x_1.JsonConverter)(metadata_contributor_json_converter_1.JsonContributorConverter),
|
|
5390
5402
|
tslib_1.__metadata("design:type", Array)
|
|
5391
5403
|
], Metadata.prototype, "Narrator", void 0);
|
|
5392
5404
|
tslib_1.__decorate([
|
|
5393
|
-
ta_json_x_1.JsonProperty("contributor"),
|
|
5394
|
-
ta_json_x_1.JsonElementType(metadata_contributor_1.Contributor),
|
|
5395
|
-
ta_json_x_1.JsonConverter(metadata_contributor_json_converter_1.JsonContributorConverter),
|
|
5405
|
+
(0, ta_json_x_1.JsonProperty)("contributor"),
|
|
5406
|
+
(0, ta_json_x_1.JsonElementType)(metadata_contributor_1.Contributor),
|
|
5407
|
+
(0, ta_json_x_1.JsonConverter)(metadata_contributor_json_converter_1.JsonContributorConverter),
|
|
5396
5408
|
tslib_1.__metadata("design:type", Array)
|
|
5397
5409
|
], Metadata.prototype, "Contributor", void 0);
|
|
5398
5410
|
tslib_1.__decorate([
|
|
5399
|
-
ta_json_x_1.JsonProperty("publisher"),
|
|
5400
|
-
ta_json_x_1.JsonElementType(metadata_contributor_1.Contributor),
|
|
5401
|
-
ta_json_x_1.JsonConverter(metadata_contributor_json_converter_1.JsonContributorConverter),
|
|
5411
|
+
(0, ta_json_x_1.JsonProperty)("publisher"),
|
|
5412
|
+
(0, ta_json_x_1.JsonElementType)(metadata_contributor_1.Contributor),
|
|
5413
|
+
(0, ta_json_x_1.JsonConverter)(metadata_contributor_json_converter_1.JsonContributorConverter),
|
|
5402
5414
|
tslib_1.__metadata("design:type", Array)
|
|
5403
5415
|
], Metadata.prototype, "Publisher", void 0);
|
|
5404
5416
|
tslib_1.__decorate([
|
|
5405
|
-
ta_json_x_1.JsonProperty("imprint"),
|
|
5406
|
-
ta_json_x_1.JsonElementType(metadata_contributor_1.Contributor),
|
|
5407
|
-
ta_json_x_1.JsonConverter(metadata_contributor_json_converter_1.JsonContributorConverter),
|
|
5417
|
+
(0, ta_json_x_1.JsonProperty)("imprint"),
|
|
5418
|
+
(0, ta_json_x_1.JsonElementType)(metadata_contributor_1.Contributor),
|
|
5419
|
+
(0, ta_json_x_1.JsonConverter)(metadata_contributor_json_converter_1.JsonContributorConverter),
|
|
5408
5420
|
tslib_1.__metadata("design:type", Array)
|
|
5409
5421
|
], Metadata.prototype, "Imprint", void 0);
|
|
5410
5422
|
tslib_1.__decorate([
|
|
5411
|
-
ta_json_x_1.JsonProperty("language"),
|
|
5412
|
-
ta_json_x_1.JsonElementType(String),
|
|
5413
|
-
ta_json_x_1.JsonConverter(ta_json_string_converter_1.JsonStringConverter),
|
|
5423
|
+
(0, ta_json_x_1.JsonProperty)("language"),
|
|
5424
|
+
(0, ta_json_x_1.JsonElementType)(String),
|
|
5425
|
+
(0, ta_json_x_1.JsonConverter)(ta_json_string_converter_1.JsonStringConverter),
|
|
5414
5426
|
tslib_1.__metadata("design:type", Array)
|
|
5415
5427
|
], Metadata.prototype, "Language", void 0);
|
|
5416
5428
|
tslib_1.__decorate([
|
|
5417
|
-
ta_json_x_1.JsonProperty("modified"),
|
|
5429
|
+
(0, ta_json_x_1.JsonProperty)("modified"),
|
|
5418
5430
|
tslib_1.__metadata("design:type", Date)
|
|
5419
5431
|
], Metadata.prototype, "Modified", void 0);
|
|
5420
5432
|
tslib_1.__decorate([
|
|
5421
|
-
ta_json_x_1.JsonProperty("published"),
|
|
5433
|
+
(0, ta_json_x_1.JsonProperty)("published"),
|
|
5422
5434
|
tslib_1.__metadata("design:type", Date)
|
|
5423
5435
|
], Metadata.prototype, "PublicationDate", void 0);
|
|
5424
5436
|
tslib_1.__decorate([
|
|
5425
|
-
ta_json_x_1.JsonProperty("sortAs"),
|
|
5437
|
+
(0, ta_json_x_1.JsonProperty)("sortAs"),
|
|
5426
5438
|
tslib_1.__metadata("design:type", String)
|
|
5427
5439
|
], Metadata.prototype, "SortAs2", void 0);
|
|
5428
5440
|
tslib_1.__decorate([
|
|
5429
|
-
ta_json_x_1.JsonProperty("sort_as"),
|
|
5441
|
+
(0, ta_json_x_1.JsonProperty)("sort_as"),
|
|
5430
5442
|
tslib_1.__metadata("design:type", Object)
|
|
5431
5443
|
], Metadata.prototype, "SortAs1", void 0);
|
|
5432
5444
|
tslib_1.__decorate([
|
|
5433
|
-
ta_json_x_1.JsonProperty("description"),
|
|
5445
|
+
(0, ta_json_x_1.JsonProperty)("description"),
|
|
5434
5446
|
tslib_1.__metadata("design:type", String)
|
|
5435
5447
|
], Metadata.prototype, "Description", void 0);
|
|
5436
5448
|
tslib_1.__decorate([
|
|
5437
|
-
ta_json_x_1.JsonProperty("readingProgression"),
|
|
5449
|
+
(0, ta_json_x_1.JsonProperty)("readingProgression"),
|
|
5438
5450
|
tslib_1.__metadata("design:type", String)
|
|
5439
5451
|
], Metadata.prototype, "Direction2", void 0);
|
|
5440
5452
|
tslib_1.__decorate([
|
|
5441
|
-
ta_json_x_1.JsonProperty("direction"),
|
|
5453
|
+
(0, ta_json_x_1.JsonProperty)("direction"),
|
|
5442
5454
|
tslib_1.__metadata("design:type", Object)
|
|
5443
5455
|
], Metadata.prototype, "Direction1", void 0);
|
|
5444
5456
|
tslib_1.__decorate([
|
|
5445
|
-
ta_json_x_1.JsonProperty("belongsTo"),
|
|
5457
|
+
(0, ta_json_x_1.JsonProperty)("belongsTo"),
|
|
5446
5458
|
tslib_1.__metadata("design:type", metadata_belongsto_1.BelongsTo)
|
|
5447
5459
|
], Metadata.prototype, "BelongsTo2", void 0);
|
|
5448
5460
|
tslib_1.__decorate([
|
|
5449
|
-
ta_json_x_1.JsonProperty("belongs_to"),
|
|
5461
|
+
(0, ta_json_x_1.JsonProperty)("belongs_to"),
|
|
5450
5462
|
tslib_1.__metadata("design:type", Object)
|
|
5451
5463
|
], Metadata.prototype, "BelongsTo1", void 0);
|
|
5452
5464
|
tslib_1.__decorate([
|
|
5453
|
-
ta_json_x_1.JsonProperty("duration"),
|
|
5465
|
+
(0, ta_json_x_1.JsonProperty)("duration"),
|
|
5454
5466
|
tslib_1.__metadata("design:type", Number)
|
|
5455
5467
|
], Metadata.prototype, "Duration", void 0);
|
|
5456
5468
|
tslib_1.__decorate([
|
|
5457
|
-
ta_json_x_1.JsonProperty("numberOfPages"),
|
|
5469
|
+
(0, ta_json_x_1.JsonProperty)("numberOfPages"),
|
|
5458
5470
|
tslib_1.__metadata("design:type", Number)
|
|
5459
5471
|
], Metadata.prototype, "NumberOfPages", void 0);
|
|
5460
5472
|
tslib_1.__decorate([
|
|
5461
|
-
ta_json_x_1.JsonProperty("media-overlay"),
|
|
5473
|
+
(0, ta_json_x_1.JsonProperty)("media-overlay"),
|
|
5462
5474
|
tslib_1.__metadata("design:type", metadata_media_overlay_1.MediaOverlay)
|
|
5463
5475
|
], Metadata.prototype, "MediaOverlay", void 0);
|
|
5464
5476
|
tslib_1.__decorate([
|
|
5465
|
-
ta_json_x_1.JsonProperty("rights"),
|
|
5477
|
+
(0, ta_json_x_1.JsonProperty)("rights"),
|
|
5466
5478
|
tslib_1.__metadata("design:type", String)
|
|
5467
5479
|
], Metadata.prototype, "Rights", void 0);
|
|
5468
5480
|
tslib_1.__decorate([
|
|
5469
|
-
ta_json_x_1.JsonProperty("rendition"),
|
|
5481
|
+
(0, ta_json_x_1.JsonProperty)("rendition"),
|
|
5470
5482
|
tslib_1.__metadata("design:type", metadata_properties_1.Properties)
|
|
5471
5483
|
], Metadata.prototype, "Rendition", void 0);
|
|
5472
5484
|
tslib_1.__decorate([
|
|
5473
|
-
ta_json_x_1.JsonProperty("source"),
|
|
5485
|
+
(0, ta_json_x_1.JsonProperty)("source"),
|
|
5474
5486
|
tslib_1.__metadata("design:type", String)
|
|
5475
5487
|
], Metadata.prototype, "Source", void 0);
|
|
5476
5488
|
tslib_1.__decorate([
|
|
5477
|
-
ta_json_x_1.JsonProperty("subject"),
|
|
5478
|
-
ta_json_x_1.JsonConverter(metadata_subject_json_converter_1.JsonSubjectConverter),
|
|
5479
|
-
ta_json_x_1.JsonElementType(metadata_subject_1.Subject),
|
|
5489
|
+
(0, ta_json_x_1.JsonProperty)("subject"),
|
|
5490
|
+
(0, ta_json_x_1.JsonConverter)(metadata_subject_json_converter_1.JsonSubjectConverter),
|
|
5491
|
+
(0, ta_json_x_1.JsonElementType)(metadata_subject_1.Subject),
|
|
5480
5492
|
tslib_1.__metadata("design:type", Array)
|
|
5481
5493
|
], Metadata.prototype, "Subject", void 0);
|
|
5482
5494
|
tslib_1.__decorate([
|
|
5483
|
-
ta_json_x_1.OnDeserialized(),
|
|
5495
|
+
(0, ta_json_x_1.OnDeserialized)(),
|
|
5484
5496
|
tslib_1.__metadata("design:type", Function),
|
|
5485
5497
|
tslib_1.__metadata("design:paramtypes", []),
|
|
5486
5498
|
tslib_1.__metadata("design:returntype", void 0)
|
|
5487
5499
|
], Metadata.prototype, "_OnDeserialized", null);
|
|
5488
5500
|
Metadata = tslib_1.__decorate([
|
|
5489
|
-
ta_json_x_1.JsonObject()
|
|
5501
|
+
(0, ta_json_x_1.JsonObject)()
|
|
5490
5502
|
], Metadata);
|
|
5491
5503
|
exports.Metadata = Metadata;
|
|
5492
5504
|
}
|
|
@@ -5627,83 +5639,83 @@ var require_publication = __commonJS({
|
|
|
5627
5639
|
}
|
|
5628
5640
|
};
|
|
5629
5641
|
tslib_1.__decorate([
|
|
5630
|
-
ta_json_x_1.JsonProperty("@context"),
|
|
5631
|
-
ta_json_x_1.JsonElementType(String),
|
|
5632
|
-
ta_json_x_1.JsonConverter(ta_json_string_converter_1.JsonStringConverter),
|
|
5642
|
+
(0, ta_json_x_1.JsonProperty)("@context"),
|
|
5643
|
+
(0, ta_json_x_1.JsonElementType)(String),
|
|
5644
|
+
(0, ta_json_x_1.JsonConverter)(ta_json_string_converter_1.JsonStringConverter),
|
|
5633
5645
|
tslib_1.__metadata("design:type", Array)
|
|
5634
5646
|
], Publication2.prototype, "Context", void 0);
|
|
5635
5647
|
tslib_1.__decorate([
|
|
5636
|
-
ta_json_x_1.JsonProperty(METADATA_JSON_PROP),
|
|
5648
|
+
(0, ta_json_x_1.JsonProperty)(METADATA_JSON_PROP),
|
|
5637
5649
|
tslib_1.__metadata("design:type", metadata_1.Metadata)
|
|
5638
5650
|
], Publication2.prototype, "Metadata", void 0);
|
|
5639
5651
|
tslib_1.__decorate([
|
|
5640
|
-
ta_json_x_1.JsonProperty(LINKS_JSON_PROP),
|
|
5641
|
-
ta_json_x_1.JsonElementType(publication_link_1.Link),
|
|
5652
|
+
(0, ta_json_x_1.JsonProperty)(LINKS_JSON_PROP),
|
|
5653
|
+
(0, ta_json_x_1.JsonElementType)(publication_link_1.Link),
|
|
5642
5654
|
tslib_1.__metadata("design:type", Array)
|
|
5643
5655
|
], Publication2.prototype, "Links", void 0);
|
|
5644
5656
|
tslib_1.__decorate([
|
|
5645
|
-
ta_json_x_1.JsonProperty(READINGORDER_JSON_PROP),
|
|
5646
|
-
ta_json_x_1.JsonElementType(publication_link_1.Link),
|
|
5657
|
+
(0, ta_json_x_1.JsonProperty)(READINGORDER_JSON_PROP),
|
|
5658
|
+
(0, ta_json_x_1.JsonElementType)(publication_link_1.Link),
|
|
5647
5659
|
tslib_1.__metadata("design:type", Array)
|
|
5648
5660
|
], Publication2.prototype, "Spine2", void 0);
|
|
5649
5661
|
tslib_1.__decorate([
|
|
5650
|
-
ta_json_x_1.JsonProperty(SPINE_JSON_PROP),
|
|
5651
|
-
ta_json_x_1.JsonElementType(publication_link_1.Link),
|
|
5662
|
+
(0, ta_json_x_1.JsonProperty)(SPINE_JSON_PROP),
|
|
5663
|
+
(0, ta_json_x_1.JsonElementType)(publication_link_1.Link),
|
|
5652
5664
|
tslib_1.__metadata("design:type", Object)
|
|
5653
5665
|
], Publication2.prototype, "Spine1", void 0);
|
|
5654
5666
|
tslib_1.__decorate([
|
|
5655
|
-
ta_json_x_1.JsonProperty(RESOURCES_JSON_PROP),
|
|
5656
|
-
ta_json_x_1.JsonElementType(publication_link_1.Link),
|
|
5667
|
+
(0, ta_json_x_1.JsonProperty)(RESOURCES_JSON_PROP),
|
|
5668
|
+
(0, ta_json_x_1.JsonElementType)(publication_link_1.Link),
|
|
5657
5669
|
tslib_1.__metadata("design:type", Array)
|
|
5658
5670
|
], Publication2.prototype, "Resources", void 0);
|
|
5659
5671
|
tslib_1.__decorate([
|
|
5660
|
-
ta_json_x_1.JsonProperty(TOC_JSON_PROP),
|
|
5661
|
-
ta_json_x_1.JsonElementType(publication_link_1.Link),
|
|
5672
|
+
(0, ta_json_x_1.JsonProperty)(TOC_JSON_PROP),
|
|
5673
|
+
(0, ta_json_x_1.JsonElementType)(publication_link_1.Link),
|
|
5662
5674
|
tslib_1.__metadata("design:type", Array)
|
|
5663
5675
|
], Publication2.prototype, "TOC", void 0);
|
|
5664
5676
|
tslib_1.__decorate([
|
|
5665
|
-
ta_json_x_1.JsonProperty(PAGELIST_CAMEL_JSON_PROP),
|
|
5666
|
-
ta_json_x_1.JsonElementType(publication_link_1.Link),
|
|
5677
|
+
(0, ta_json_x_1.JsonProperty)(PAGELIST_CAMEL_JSON_PROP),
|
|
5678
|
+
(0, ta_json_x_1.JsonElementType)(publication_link_1.Link),
|
|
5667
5679
|
tslib_1.__metadata("design:type", Array)
|
|
5668
5680
|
], Publication2.prototype, "PageList2", void 0);
|
|
5669
5681
|
tslib_1.__decorate([
|
|
5670
|
-
ta_json_x_1.JsonProperty(PAGELIST_JSON_PROP),
|
|
5671
|
-
ta_json_x_1.JsonElementType(publication_link_1.Link),
|
|
5682
|
+
(0, ta_json_x_1.JsonProperty)(PAGELIST_JSON_PROP),
|
|
5683
|
+
(0, ta_json_x_1.JsonElementType)(publication_link_1.Link),
|
|
5672
5684
|
tslib_1.__metadata("design:type", Object)
|
|
5673
5685
|
], Publication2.prototype, "PageList1", void 0);
|
|
5674
5686
|
tslib_1.__decorate([
|
|
5675
|
-
ta_json_x_1.JsonProperty(LANDMARKS_JSON_PROP),
|
|
5676
|
-
ta_json_x_1.JsonElementType(publication_link_1.Link),
|
|
5687
|
+
(0, ta_json_x_1.JsonProperty)(LANDMARKS_JSON_PROP),
|
|
5688
|
+
(0, ta_json_x_1.JsonElementType)(publication_link_1.Link),
|
|
5677
5689
|
tslib_1.__metadata("design:type", Array)
|
|
5678
5690
|
], Publication2.prototype, "Landmarks", void 0);
|
|
5679
5691
|
tslib_1.__decorate([
|
|
5680
|
-
ta_json_x_1.JsonProperty(LOI_JSON_PROP),
|
|
5681
|
-
ta_json_x_1.JsonElementType(publication_link_1.Link),
|
|
5692
|
+
(0, ta_json_x_1.JsonProperty)(LOI_JSON_PROP),
|
|
5693
|
+
(0, ta_json_x_1.JsonElementType)(publication_link_1.Link),
|
|
5682
5694
|
tslib_1.__metadata("design:type", Array)
|
|
5683
5695
|
], Publication2.prototype, "LOI", void 0);
|
|
5684
5696
|
tslib_1.__decorate([
|
|
5685
|
-
ta_json_x_1.JsonProperty(LOA_JSON_PROP),
|
|
5686
|
-
ta_json_x_1.JsonElementType(publication_link_1.Link),
|
|
5697
|
+
(0, ta_json_x_1.JsonProperty)(LOA_JSON_PROP),
|
|
5698
|
+
(0, ta_json_x_1.JsonElementType)(publication_link_1.Link),
|
|
5687
5699
|
tslib_1.__metadata("design:type", Array)
|
|
5688
5700
|
], Publication2.prototype, "LOA", void 0);
|
|
5689
5701
|
tslib_1.__decorate([
|
|
5690
|
-
ta_json_x_1.JsonProperty(LOV_JSON_PROP),
|
|
5691
|
-
ta_json_x_1.JsonElementType(publication_link_1.Link),
|
|
5702
|
+
(0, ta_json_x_1.JsonProperty)(LOV_JSON_PROP),
|
|
5703
|
+
(0, ta_json_x_1.JsonElementType)(publication_link_1.Link),
|
|
5692
5704
|
tslib_1.__metadata("design:type", Array)
|
|
5693
5705
|
], Publication2.prototype, "LOV", void 0);
|
|
5694
5706
|
tslib_1.__decorate([
|
|
5695
|
-
ta_json_x_1.JsonProperty(LOT_JSON_PROP),
|
|
5696
|
-
ta_json_x_1.JsonElementType(publication_link_1.Link),
|
|
5707
|
+
(0, ta_json_x_1.JsonProperty)(LOT_JSON_PROP),
|
|
5708
|
+
(0, ta_json_x_1.JsonElementType)(publication_link_1.Link),
|
|
5697
5709
|
tslib_1.__metadata("design:type", Array)
|
|
5698
5710
|
], Publication2.prototype, "LOT", void 0);
|
|
5699
5711
|
tslib_1.__decorate([
|
|
5700
|
-
ta_json_x_1.OnDeserialized(),
|
|
5712
|
+
(0, ta_json_x_1.OnDeserialized)(),
|
|
5701
5713
|
tslib_1.__metadata("design:type", Function),
|
|
5702
5714
|
tslib_1.__metadata("design:paramtypes", []),
|
|
5703
5715
|
tslib_1.__metadata("design:returntype", void 0)
|
|
5704
5716
|
], Publication2.prototype, "_OnDeserialized", null);
|
|
5705
5717
|
Publication2 = tslib_1.__decorate([
|
|
5706
|
-
ta_json_x_1.JsonObject()
|
|
5718
|
+
(0, ta_json_x_1.JsonObject)()
|
|
5707
5719
|
], Publication2);
|
|
5708
5720
|
exports.Publication = Publication2;
|
|
5709
5721
|
}
|
|
@@ -28237,6 +28249,7 @@ var require_media_overlay = __commonJS({
|
|
|
28237
28249
|
if (!timeStr) {
|
|
28238
28250
|
return 0;
|
|
28239
28251
|
}
|
|
28252
|
+
timeStr = timeStr.replace("npt=", "");
|
|
28240
28253
|
let hours = 0;
|
|
28241
28254
|
let minutes = 0;
|
|
28242
28255
|
let seconds = 0;
|
|
@@ -28295,26 +28308,26 @@ var require_media_overlay = __commonJS({
|
|
|
28295
28308
|
}
|
|
28296
28309
|
};
|
|
28297
28310
|
tslib_1.__decorate([
|
|
28298
|
-
ta_json_x_1.JsonProperty("text"),
|
|
28311
|
+
(0, ta_json_x_1.JsonProperty)("text"),
|
|
28299
28312
|
tslib_1.__metadata("design:type", String)
|
|
28300
28313
|
], MediaOverlayNode2.prototype, "Text", void 0);
|
|
28301
28314
|
tslib_1.__decorate([
|
|
28302
|
-
ta_json_x_1.JsonProperty("audio"),
|
|
28315
|
+
(0, ta_json_x_1.JsonProperty)("audio"),
|
|
28303
28316
|
tslib_1.__metadata("design:type", String)
|
|
28304
28317
|
], MediaOverlayNode2.prototype, "Audio", void 0);
|
|
28305
28318
|
tslib_1.__decorate([
|
|
28306
|
-
ta_json_x_1.JsonProperty("role"),
|
|
28307
|
-
ta_json_x_1.JsonConverter(ta_json_string_converter_1.JsonStringConverter),
|
|
28308
|
-
ta_json_x_1.JsonElementType(String),
|
|
28319
|
+
(0, ta_json_x_1.JsonProperty)("role"),
|
|
28320
|
+
(0, ta_json_x_1.JsonConverter)(ta_json_string_converter_1.JsonStringConverter),
|
|
28321
|
+
(0, ta_json_x_1.JsonElementType)(String),
|
|
28309
28322
|
tslib_1.__metadata("design:type", Array)
|
|
28310
28323
|
], MediaOverlayNode2.prototype, "Role", void 0);
|
|
28311
28324
|
tslib_1.__decorate([
|
|
28312
|
-
ta_json_x_1.JsonProperty("narration"),
|
|
28313
|
-
ta_json_x_1.JsonElementType(MediaOverlayNode_1),
|
|
28325
|
+
(0, ta_json_x_1.JsonProperty)("narration"),
|
|
28326
|
+
(0, ta_json_x_1.JsonElementType)(MediaOverlayNode_1),
|
|
28314
28327
|
tslib_1.__metadata("design:type", Array)
|
|
28315
28328
|
], MediaOverlayNode2.prototype, "Children", void 0);
|
|
28316
28329
|
MediaOverlayNode2 = MediaOverlayNode_1 = tslib_1.__decorate([
|
|
28317
|
-
ta_json_x_1.JsonObject()
|
|
28330
|
+
(0, ta_json_x_1.JsonObject)()
|
|
28318
28331
|
], MediaOverlayNode2);
|
|
28319
28332
|
exports.MediaOverlayNode = MediaOverlayNode2;
|
|
28320
28333
|
}
|
|
@@ -47354,7 +47367,6 @@ var TextHighlighter = class {
|
|
|
47354
47367
|
}
|
|
47355
47368
|
bindEvents(el, _scope, hasEventListener) {
|
|
47356
47369
|
let doc = el.ownerDocument;
|
|
47357
|
-
doc.addEventListener("keyup", this.toolboxShowDelayed.bind(this));
|
|
47358
47370
|
el.addEventListener("mouseup", this.toolboxShowDelayed.bind(this));
|
|
47359
47371
|
el.addEventListener("touchend", this.toolboxShowDelayed.bind(this));
|
|
47360
47372
|
doc.addEventListener("selectstart", this.toolboxShowDelayed.bind(this));
|
|
@@ -47389,7 +47401,6 @@ var TextHighlighter = class {
|
|
|
47389
47401
|
}
|
|
47390
47402
|
unbindEvents(el, _scope) {
|
|
47391
47403
|
let doc = el.ownerDocument;
|
|
47392
|
-
doc.removeEventListener("keyup", this.toolboxShowDelayed.bind(this));
|
|
47393
47404
|
el.removeEventListener("mouseup", this.toolboxShowDelayed.bind(this));
|
|
47394
47405
|
el.removeEventListener("touchend", this.toolboxShowDelayed.bind(this));
|
|
47395
47406
|
doc.removeEventListener("selectstart", this.toolboxShowDelayed.bind(this));
|
|
@@ -52185,37 +52196,34 @@ var SearchModule = class {
|
|
|
52185
52196
|
}
|
|
52186
52197
|
let i = 0;
|
|
52187
52198
|
if (tocItem) {
|
|
52188
|
-
let href = this.publication.getAbsoluteHref(tocItem.Href);
|
|
52189
52199
|
let doc = this.delegate.iframes[0].contentDocument;
|
|
52190
52200
|
if (doc) {
|
|
52191
|
-
|
|
52192
|
-
|
|
52193
|
-
|
|
52194
|
-
|
|
52195
|
-
|
|
52196
|
-
|
|
52197
|
-
};
|
|
52198
|
-
setTimeout(() => {
|
|
52199
|
-
let highlight;
|
|
52200
|
-
if (i === index2) {
|
|
52201
|
-
highlight = this.createSearchHighlight(selectionInfo, this.properties?.current);
|
|
52202
|
-
this.jumpToMark(index2);
|
|
52203
|
-
} else {
|
|
52204
|
-
highlight = this.createSearchHighlight(selectionInfo, this.properties?.color);
|
|
52205
|
-
}
|
|
52206
|
-
searchItem.highlight = highlight;
|
|
52207
|
-
localSearchResultChapter.push(searchItem);
|
|
52208
|
-
this.currentChapterSearchResult.push(searchItem);
|
|
52209
|
-
this.currentSearchHighlights.push(highlight);
|
|
52210
|
-
i++;
|
|
52211
|
-
}, 500);
|
|
52212
|
-
});
|
|
52201
|
+
if (tocItem) {
|
|
52202
|
+
searchDocDomSeek(term, doc, tocItem.Href, tocItem.Title).then((result) => {
|
|
52203
|
+
result.forEach((searchItem) => {
|
|
52204
|
+
let selectionInfo = {
|
|
52205
|
+
rangeInfo: searchItem.rangeInfo
|
|
52206
|
+
};
|
|
52213
52207
|
setTimeout(() => {
|
|
52214
|
-
|
|
52208
|
+
let highlight;
|
|
52209
|
+
if (i === index2) {
|
|
52210
|
+
highlight = this.createSearchHighlight(selectionInfo, this.properties?.current);
|
|
52211
|
+
this.jumpToMark(index2);
|
|
52212
|
+
} else {
|
|
52213
|
+
highlight = this.createSearchHighlight(selectionInfo, this.properties?.color);
|
|
52214
|
+
}
|
|
52215
|
+
searchItem.highlight = highlight;
|
|
52216
|
+
localSearchResultChapter.push(searchItem);
|
|
52217
|
+
this.currentChapterSearchResult.push(searchItem);
|
|
52218
|
+
this.currentSearchHighlights.push(highlight);
|
|
52219
|
+
i++;
|
|
52215
52220
|
}, 500);
|
|
52216
52221
|
});
|
|
52217
|
-
|
|
52218
|
-
|
|
52222
|
+
setTimeout(() => {
|
|
52223
|
+
callback(localSearchResultChapter);
|
|
52224
|
+
}, 500);
|
|
52225
|
+
});
|
|
52226
|
+
}
|
|
52219
52227
|
}
|
|
52220
52228
|
}
|
|
52221
52229
|
}
|
|
@@ -52933,7 +52941,7 @@ var import_debounce5 = __toModule(require_debounce());
|
|
|
52933
52941
|
// src/utils/TouchEventHandler.ts
|
|
52934
52942
|
init_polyfills();
|
|
52935
52943
|
var _TouchEventHandler = class {
|
|
52936
|
-
constructor() {
|
|
52944
|
+
constructor(navigator2) {
|
|
52937
52945
|
this.onBackwardSwipe = () => {
|
|
52938
52946
|
};
|
|
52939
52947
|
this.onForwardSwipe = () => {
|
|
@@ -52998,6 +53006,7 @@ var _TouchEventHandler = class {
|
|
|
52998
53006
|
}, false);
|
|
52999
53007
|
}
|
|
53000
53008
|
};
|
|
53009
|
+
this.navigator = navigator2;
|
|
53001
53010
|
}
|
|
53002
53011
|
};
|
|
53003
53012
|
var TouchEventHandler = _TouchEventHandler;
|
|
@@ -53008,7 +53017,7 @@ TouchEventHandler.SLOW_SWIPE_MS = 500;
|
|
|
53008
53017
|
// src/utils/KeyboardEventHandler.ts
|
|
53009
53018
|
init_polyfills();
|
|
53010
53019
|
var KeyboardEventHandler = class {
|
|
53011
|
-
constructor() {
|
|
53020
|
+
constructor(navigator2) {
|
|
53012
53021
|
this.onBackwardSwipe = () => {
|
|
53013
53022
|
};
|
|
53014
53023
|
this.onForwardSwipe = () => {
|
|
@@ -53022,33 +53031,36 @@ var KeyboardEventHandler = class {
|
|
|
53022
53031
|
this.focusin = (element) => {
|
|
53023
53032
|
const self2 = this;
|
|
53024
53033
|
element.addEventListener("focusin", function(event) {
|
|
53025
|
-
self2.
|
|
53034
|
+
self2.navigator.view?.snap(event.target);
|
|
53026
53035
|
}, true);
|
|
53027
53036
|
};
|
|
53028
53037
|
this.keydown = (element) => {
|
|
53029
53038
|
const self2 = this;
|
|
53030
|
-
|
|
53031
|
-
|
|
53032
|
-
|
|
53033
|
-
|
|
53034
|
-
|
|
53035
|
-
|
|
53036
|
-
|
|
53037
|
-
|
|
53038
|
-
|
|
53039
|
-
|
|
53040
|
-
|
|
53041
|
-
|
|
53042
|
-
|
|
53043
|
-
|
|
53044
|
-
|
|
53045
|
-
|
|
53046
|
-
|
|
53047
|
-
|
|
53048
|
-
|
|
53049
|
-
|
|
53050
|
-
|
|
53039
|
+
if (!this.navigator.rights.customKeyboardEvents) {
|
|
53040
|
+
element.addEventListener("keydown", function(event) {
|
|
53041
|
+
const eventTarget = event.target;
|
|
53042
|
+
if (/input|select|option|textarea/i.test(eventTarget.tagName)) {
|
|
53043
|
+
return;
|
|
53044
|
+
}
|
|
53045
|
+
const ownerDocument = eventTarget.ownerDocument || eventTarget;
|
|
53046
|
+
const ownerWindow = ownerDocument.defaultView;
|
|
53047
|
+
const selection = ownerWindow.getSelection();
|
|
53048
|
+
if (!selection.isCollapsed) {
|
|
53049
|
+
return;
|
|
53050
|
+
}
|
|
53051
|
+
const key = event.key;
|
|
53052
|
+
switch (key) {
|
|
53053
|
+
case "ArrowRight":
|
|
53054
|
+
self2.onForwardSwipe(event);
|
|
53055
|
+
break;
|
|
53056
|
+
case "ArrowLeft":
|
|
53057
|
+
self2.onBackwardSwipe(event);
|
|
53058
|
+
break;
|
|
53059
|
+
}
|
|
53060
|
+
}, false);
|
|
53061
|
+
}
|
|
53051
53062
|
};
|
|
53063
|
+
this.navigator = navigator2;
|
|
53052
53064
|
}
|
|
53053
53065
|
};
|
|
53054
53066
|
|
|
@@ -53181,7 +53193,8 @@ var IFrameNavigator = class extends import_eventemitter3.default {
|
|
|
53181
53193
|
enablePageBreaks: false,
|
|
53182
53194
|
enableSearch: false,
|
|
53183
53195
|
enableTTS: false,
|
|
53184
|
-
enableTimeline: false
|
|
53196
|
+
enableTimeline: false,
|
|
53197
|
+
customKeyboardEvents: false
|
|
53185
53198
|
};
|
|
53186
53199
|
this.didInitKeyboardEventHandler = false;
|
|
53187
53200
|
this.onResize = () => {
|
|
@@ -53229,8 +53242,8 @@ var IFrameNavigator = class extends import_eventemitter3.default {
|
|
|
53229
53242
|
this.view.attributes = attributes;
|
|
53230
53243
|
this.view.delegate = this;
|
|
53231
53244
|
this.eventHandler = new EventHandler(this);
|
|
53232
|
-
this.touchEventHandler = new TouchEventHandler();
|
|
53233
|
-
this.keyboardEventHandler = new KeyboardEventHandler();
|
|
53245
|
+
this.touchEventHandler = new TouchEventHandler(this);
|
|
53246
|
+
this.keyboardEventHandler = new KeyboardEventHandler(this);
|
|
53234
53247
|
this.upLinkConfig = upLinkConfig;
|
|
53235
53248
|
this.initialLastReadingPosition = initialLastReadingPosition;
|
|
53236
53249
|
this.publication = publication;
|
|
@@ -53248,7 +53261,8 @@ var IFrameNavigator = class extends import_eventemitter3.default {
|
|
|
53248
53261
|
enablePageBreaks: false,
|
|
53249
53262
|
enableSearch: false,
|
|
53250
53263
|
enableTTS: false,
|
|
53251
|
-
enableTimeline: false
|
|
53264
|
+
enableTimeline: false,
|
|
53265
|
+
customKeyboardEvents: false
|
|
53252
53266
|
};
|
|
53253
53267
|
this.tts = tts;
|
|
53254
53268
|
this.injectables = injectables;
|
|
@@ -53274,7 +53288,6 @@ var IFrameNavigator = class extends import_eventemitter3.default {
|
|
|
53274
53288
|
removeEventListenerOptional(this.nextPageAnchorElement, "click", this.handleNextPageClick.bind(this));
|
|
53275
53289
|
removeEventListenerOptional(this.tryAgainButton, "click", this.tryAgain.bind(this));
|
|
53276
53290
|
removeEventListenerOptional(this.goBackButton, "click", IFrameNavigator.goBack.bind(this));
|
|
53277
|
-
removeEventListenerOptional(this.bookmarksControl, "keydown", this.hideBookmarksOnEscape.bind(this));
|
|
53278
53291
|
removeEventListenerOptional(this.espandMenuIcon, "click", this.handleEditClick.bind(this));
|
|
53279
53292
|
removeEventListenerOptional(window, "resize", this.onResize);
|
|
53280
53293
|
this.iframes.forEach((iframe) => {
|
|
@@ -53547,38 +53560,12 @@ var IFrameNavigator = class extends import_eventemitter3.default {
|
|
|
53547
53560
|
addEventListenerOptional(this.nextPageAnchorElement, "click", this.handleNextPageClick.bind(this));
|
|
53548
53561
|
addEventListenerOptional(this.tryAgainButton, "click", this.tryAgain.bind(this));
|
|
53549
53562
|
addEventListenerOptional(this.goBackButton, "click", IFrameNavigator.goBack.bind(this));
|
|
53550
|
-
addEventListenerOptional(this.bookmarksControl, "keydown", this.hideBookmarksOnEscape.bind(this));
|
|
53551
53563
|
addEventListenerOptional(this.espandMenuIcon, "click", this.handleEditClick.bind(this));
|
|
53552
53564
|
addEventListenerOptional(window, "resize", this.onResize);
|
|
53553
53565
|
for (const iframe of this.iframes) {
|
|
53554
53566
|
addEventListenerOptional(iframe, "resize", this.onResize);
|
|
53555
53567
|
}
|
|
53556
53568
|
}
|
|
53557
|
-
setupModalFocusTrap(modal, closeButton, lastFocusableElement) {
|
|
53558
|
-
const TAB_KEY = 9;
|
|
53559
|
-
closeButton.addEventListener("keydown", (event) => {
|
|
53560
|
-
if (IFrameNavigator.isDisplayed(modal)) {
|
|
53561
|
-
const tab = event.keyCode === TAB_KEY;
|
|
53562
|
-
const shift = event.shiftKey;
|
|
53563
|
-
if (tab && shift) {
|
|
53564
|
-
lastFocusableElement.focus();
|
|
53565
|
-
event.preventDefault();
|
|
53566
|
-
event.stopPropagation();
|
|
53567
|
-
}
|
|
53568
|
-
}
|
|
53569
|
-
});
|
|
53570
|
-
lastFocusableElement.addEventListener("keydown", (event) => {
|
|
53571
|
-
if (IFrameNavigator.isDisplayed(modal)) {
|
|
53572
|
-
const tab = event.keyCode === TAB_KEY;
|
|
53573
|
-
const shift = event.shiftKey;
|
|
53574
|
-
if (tab && !shift) {
|
|
53575
|
-
closeButton.focus();
|
|
53576
|
-
event.preventDefault();
|
|
53577
|
-
event.stopPropagation();
|
|
53578
|
-
}
|
|
53579
|
-
}
|
|
53580
|
-
});
|
|
53581
|
-
}
|
|
53582
53569
|
updateBookView() {
|
|
53583
53570
|
if (this.view?.layout === "fixed") {
|
|
53584
53571
|
if (this.nextPageAnchorElement)
|
|
@@ -53755,21 +53742,12 @@ var IFrameNavigator = class extends import_eventemitter3.default {
|
|
|
53755
53742
|
}
|
|
53756
53743
|
async loadManifest() {
|
|
53757
53744
|
try {
|
|
53758
|
-
const createSubmenu = (parentElement, links,
|
|
53759
|
-
let menuControl;
|
|
53760
|
-
let mainElement;
|
|
53761
|
-
if (control) {
|
|
53762
|
-
menuControl = control;
|
|
53763
|
-
if (parentElement instanceof HTMLDivElement) {
|
|
53764
|
-
mainElement = parentElement;
|
|
53765
|
-
}
|
|
53766
|
-
}
|
|
53745
|
+
const createSubmenu = (parentElement, links, ol = false) => {
|
|
53767
53746
|
var listElement = document.createElement("ul");
|
|
53768
53747
|
if (ol) {
|
|
53769
53748
|
listElement = document.createElement("ol");
|
|
53770
53749
|
}
|
|
53771
53750
|
listElement.className = "sidenav-toc";
|
|
53772
|
-
let lastLink = void 0;
|
|
53773
53751
|
for (const link of links) {
|
|
53774
53752
|
const listItemElement = document.createElement("li");
|
|
53775
53753
|
const linkElement = document.createElement("a");
|
|
@@ -53788,13 +53766,9 @@ var IFrameNavigator = class extends import_eventemitter3.default {
|
|
|
53788
53766
|
listItemElement.appendChild(spanElement);
|
|
53789
53767
|
}
|
|
53790
53768
|
if (link.Children && link.Children.length > 0) {
|
|
53791
|
-
createSubmenu(listItemElement, link.Children,
|
|
53769
|
+
createSubmenu(listItemElement, link.Children, true);
|
|
53792
53770
|
}
|
|
53793
53771
|
listElement.appendChild(listItemElement);
|
|
53794
|
-
lastLink = linkElement;
|
|
53795
|
-
}
|
|
53796
|
-
if (lastLink && menuControl && mainElement) {
|
|
53797
|
-
this.setupModalFocusTrap(mainElement, menuControl, lastLink);
|
|
53798
53772
|
}
|
|
53799
53773
|
addEventListenerOptional(listElement, "click", (event) => {
|
|
53800
53774
|
event.preventDefault();
|
|
@@ -53804,7 +53778,6 @@ var IFrameNavigator = class extends import_eventemitter3.default {
|
|
|
53804
53778
|
if (linkElement.className.indexOf("active") !== -1) {
|
|
53805
53779
|
this.hideView();
|
|
53806
53780
|
} else {
|
|
53807
|
-
menuControl?.focus();
|
|
53808
53781
|
let locations = {
|
|
53809
53782
|
progression: 0
|
|
53810
53783
|
};
|
|
@@ -54018,7 +53991,6 @@ var IFrameNavigator = class extends import_eventemitter3.default {
|
|
|
54018
53991
|
}
|
|
54019
53992
|
this.touchEventHandler.setupEvents(this.errorMessage);
|
|
54020
53993
|
if (!this.didInitKeyboardEventHandler) {
|
|
54021
|
-
this.keyboardEventHandler.delegate = this;
|
|
54022
53994
|
this.keyboardEventHandler.keydown(document);
|
|
54023
53995
|
this.didInitKeyboardEventHandler = true;
|
|
54024
53996
|
}
|
|
@@ -54495,89 +54467,6 @@ var IFrameNavigator = class extends import_eventemitter3.default {
|
|
|
54495
54467
|
static goBack() {
|
|
54496
54468
|
window.history.back();
|
|
54497
54469
|
}
|
|
54498
|
-
static isDisplayed(element) {
|
|
54499
|
-
return element ? element.className.indexOf(" active") !== -1 : false;
|
|
54500
|
-
}
|
|
54501
|
-
static showElement(element, control) {
|
|
54502
|
-
if (element) {
|
|
54503
|
-
element.className = element.className.replace(" inactive", "");
|
|
54504
|
-
if (element.className.indexOf(" active") === -1) {
|
|
54505
|
-
element.className += " active";
|
|
54506
|
-
}
|
|
54507
|
-
element.setAttribute("aria-hidden", "false");
|
|
54508
|
-
if (control) {
|
|
54509
|
-
control.setAttribute("aria-expanded", "true");
|
|
54510
|
-
const openIcon = control.querySelector(".icon.open");
|
|
54511
|
-
if (openIcon && (openIcon.getAttribute("class") || "").indexOf(" inactive-icon") === -1) {
|
|
54512
|
-
const newIconClass = (openIcon.getAttribute("class") || "") + " inactive-icon";
|
|
54513
|
-
openIcon.setAttribute("class", newIconClass);
|
|
54514
|
-
}
|
|
54515
|
-
const closeIcon = control.querySelector(".icon.close");
|
|
54516
|
-
if (closeIcon) {
|
|
54517
|
-
const newIconClass = (closeIcon.getAttribute("class") || "").replace(" inactive-icon", "");
|
|
54518
|
-
closeIcon.setAttribute("class", newIconClass);
|
|
54519
|
-
}
|
|
54520
|
-
}
|
|
54521
|
-
const buttons = Array.prototype.slice.call(element.querySelectorAll("button"));
|
|
54522
|
-
const links = Array.prototype.slice.call(element.querySelectorAll("a"));
|
|
54523
|
-
for (const button of buttons) {
|
|
54524
|
-
button.tabIndex = 0;
|
|
54525
|
-
}
|
|
54526
|
-
for (const link of links) {
|
|
54527
|
-
link.tabIndex = 0;
|
|
54528
|
-
}
|
|
54529
|
-
}
|
|
54530
|
-
}
|
|
54531
|
-
static hideElement(element, control) {
|
|
54532
|
-
if (element) {
|
|
54533
|
-
element.className = element.className.replace(" active", "");
|
|
54534
|
-
if (element.className.indexOf(" inactive") === -1) {
|
|
54535
|
-
element.className += " inactive";
|
|
54536
|
-
}
|
|
54537
|
-
element.setAttribute("aria-hidden", "true");
|
|
54538
|
-
if (control) {
|
|
54539
|
-
control.setAttribute("aria-expanded", "false");
|
|
54540
|
-
const openIcon = control.querySelector(".icon.open");
|
|
54541
|
-
if (openIcon) {
|
|
54542
|
-
const newIconClass = (openIcon.getAttribute("class") || "").replace(" inactive-icon", "");
|
|
54543
|
-
openIcon.setAttribute("class", newIconClass);
|
|
54544
|
-
}
|
|
54545
|
-
const closeIcon = control.querySelector(".icon.close");
|
|
54546
|
-
if (closeIcon && (closeIcon.getAttribute("class") || "").indexOf(" inactive-icon") === -1) {
|
|
54547
|
-
const newIconClass = (closeIcon.getAttribute("class") || "") + " inactive-icon";
|
|
54548
|
-
closeIcon.setAttribute("class", newIconClass);
|
|
54549
|
-
}
|
|
54550
|
-
}
|
|
54551
|
-
const buttons = Array.prototype.slice.call(element.querySelectorAll("button"));
|
|
54552
|
-
const links = Array.prototype.slice.call(element.querySelectorAll("a"));
|
|
54553
|
-
for (const button of buttons) {
|
|
54554
|
-
button.tabIndex = -1;
|
|
54555
|
-
}
|
|
54556
|
-
for (const link of links) {
|
|
54557
|
-
link.tabIndex = -1;
|
|
54558
|
-
}
|
|
54559
|
-
}
|
|
54560
|
-
}
|
|
54561
|
-
hideModal(modal, control) {
|
|
54562
|
-
for (const iframe of this.iframes) {
|
|
54563
|
-
iframe.setAttribute("aria-hidden", "false");
|
|
54564
|
-
}
|
|
54565
|
-
if (this.upLink)
|
|
54566
|
-
this.upLink.setAttribute("aria-hidden", "false");
|
|
54567
|
-
if (this.linksBottom)
|
|
54568
|
-
this.linksBottom.setAttribute("aria-hidden", "false");
|
|
54569
|
-
if (this.linksMiddle)
|
|
54570
|
-
this.linksMiddle.setAttribute("aria-hidden", "false");
|
|
54571
|
-
if (this.loadingMessage)
|
|
54572
|
-
this.loadingMessage.setAttribute("aria-hidden", "false");
|
|
54573
|
-
if (this.errorMessage)
|
|
54574
|
-
this.errorMessage.setAttribute("aria-hidden", "false");
|
|
54575
|
-
if (this.infoTop)
|
|
54576
|
-
this.infoTop.setAttribute("aria-hidden", "false");
|
|
54577
|
-
if (this.infoBottom)
|
|
54578
|
-
this.infoBottom.setAttribute("aria-hidden", "false");
|
|
54579
|
-
IFrameNavigator.hideElement(modal, control);
|
|
54580
|
-
}
|
|
54581
54470
|
handleEditClick(event) {
|
|
54582
54471
|
var element = event.target;
|
|
54583
54472
|
if (this.headerMenu) {
|
|
@@ -55117,12 +55006,6 @@ var IFrameNavigator = class extends import_eventemitter3.default {
|
|
|
55117
55006
|
event.stopPropagation();
|
|
55118
55007
|
}
|
|
55119
55008
|
}
|
|
55120
|
-
hideBookmarksOnEscape(event) {
|
|
55121
|
-
const ESCAPE_KEY = 27;
|
|
55122
|
-
if (IFrameNavigator.isDisplayed(this.bookmarksView) && event.keyCode === ESCAPE_KEY) {
|
|
55123
|
-
this.hideModal(this.bookmarksView, this.bookmarksControl);
|
|
55124
|
-
}
|
|
55125
|
-
}
|
|
55126
55009
|
hideView() {
|
|
55127
55010
|
if (this.view?.layout !== "fixed") {
|
|
55128
55011
|
if (this.view?.isScrollMode()) {
|
|
@@ -57552,37 +57435,34 @@ var DefinitionsModule = class {
|
|
|
57552
57435
|
}
|
|
57553
57436
|
let localSearchDefinitions = [];
|
|
57554
57437
|
if (tocItem) {
|
|
57555
|
-
const
|
|
57556
|
-
|
|
57557
|
-
|
|
57558
|
-
|
|
57559
|
-
|
|
57560
|
-
|
|
57561
|
-
|
|
57562
|
-
|
|
57563
|
-
|
|
57564
|
-
|
|
57565
|
-
|
|
57566
|
-
|
|
57567
|
-
|
|
57568
|
-
|
|
57569
|
-
|
|
57570
|
-
|
|
57571
|
-
|
|
57572
|
-
|
|
57573
|
-
|
|
57574
|
-
|
|
57575
|
-
this.currentChapterPopupResult.push(searchItem);
|
|
57576
|
-
this.currentPopupHighlights.push(highlight);
|
|
57577
|
-
}
|
|
57578
|
-
});
|
|
57579
|
-
if (tindex === item.terms.length - 1) {
|
|
57580
|
-
callback(localSearchDefinitions);
|
|
57438
|
+
for (const termKey of item.terms) {
|
|
57439
|
+
const tindex = item.terms.indexOf(termKey);
|
|
57440
|
+
if (tocItem) {
|
|
57441
|
+
await searchDocDomSeek(termKey, this.delegate.iframes[0].contentDocument, tocItem.Href, tocItem.Title, this.delegate.definitionsModule?.properties.fullWordSearch).then((result) => {
|
|
57442
|
+
let i = void 0;
|
|
57443
|
+
if (item.result == 1) {
|
|
57444
|
+
i = 0;
|
|
57445
|
+
} else if (item.result == 2) {
|
|
57446
|
+
i = Math.floor(Math.random() * result.length - 1) + 1;
|
|
57447
|
+
}
|
|
57448
|
+
result.forEach((searchItem, index2) => {
|
|
57449
|
+
if (i === void 0 || i === index2) {
|
|
57450
|
+
const selectionInfo = {
|
|
57451
|
+
rangeInfo: searchItem.rangeInfo
|
|
57452
|
+
};
|
|
57453
|
+
const highlight = this.createDefinitionHighlight(selectionInfo, item);
|
|
57454
|
+
searchItem.highlight = highlight;
|
|
57455
|
+
localSearchDefinitions.push(lodash3.omit(highlight, "definition"));
|
|
57456
|
+
this.currentChapterPopupResult.push(searchItem);
|
|
57457
|
+
this.currentPopupHighlights.push(highlight);
|
|
57581
57458
|
}
|
|
57582
57459
|
});
|
|
57583
|
-
|
|
57460
|
+
if (tindex === item.terms.length - 1) {
|
|
57461
|
+
callback(localSearchDefinitions);
|
|
57462
|
+
}
|
|
57463
|
+
});
|
|
57584
57464
|
}
|
|
57585
|
-
}
|
|
57465
|
+
}
|
|
57586
57466
|
}
|
|
57587
57467
|
}
|
|
57588
57468
|
async define(item) {
|
|
@@ -58328,7 +58208,8 @@ var D2Reader = class {
|
|
|
58328
58208
|
enablePageBreaks: false,
|
|
58329
58209
|
enableSearch: false,
|
|
58330
58210
|
enableTTS: false,
|
|
58331
|
-
enableTimeline: false
|
|
58211
|
+
enableTimeline: false,
|
|
58212
|
+
customKeyboardEvents: false
|
|
58332
58213
|
};
|
|
58333
58214
|
if (rights.enableContentProtection && initialConfig.protection) {
|
|
58334
58215
|
await ContentProtectionModule.setupPreloadProtection(initialConfig.protection);
|