@fedify/vocab 2.3.2-dev.1556 → 2.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/deno.json +1 -1
- package/dist/mod.cjs +1728 -353
- package/dist/mod.d.cts +42 -0
- package/dist/mod.d.ts +42 -0
- package/dist/mod.js +1728 -353
- package/dist-tests/{actor-B3yhEluK.mjs → actor-C1JXaHGB.mjs} +2 -2
- package/dist-tests/actor.test.mjs +2 -2
- package/dist-tests/lookup.test.mjs +2 -2
- package/dist-tests/type.test.mjs +1 -1
- package/dist-tests/{vocab-C9xeg7Od.mjs → vocab-qOXUdrGm.mjs} +1728 -353
- package/dist-tests/vocab.test.mjs +31 -1
- package/package.json +4 -4
- package/src/vocab.test.ts +36 -0
package/dist/mod.js
CHANGED
|
@@ -9,7 +9,7 @@ import { isTemporalDuration, isTemporalInstant } from "@fedify/vocab-runtime/tem
|
|
|
9
9
|
import { delay } from "es-toolkit";
|
|
10
10
|
//#region deno.json
|
|
11
11
|
var name = "@fedify/vocab";
|
|
12
|
-
var version = "2.3.2
|
|
12
|
+
var version = "2.3.2";
|
|
13
13
|
//#endregion
|
|
14
14
|
//#region src/type.ts
|
|
15
15
|
function getTypeId(object) {
|
|
@@ -50,6 +50,15 @@ const normalizeLinkToImage = async (value, context) => {
|
|
|
50
50
|
};
|
|
51
51
|
//#endregion
|
|
52
52
|
//#region src/vocab.ts
|
|
53
|
+
function isValidLanguageTag(language) {
|
|
54
|
+
try {
|
|
55
|
+
new Intl.Locale(language);
|
|
56
|
+
return true;
|
|
57
|
+
} catch (error) {
|
|
58
|
+
if (error instanceof RangeError) return false;
|
|
59
|
+
throw error;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
53
62
|
/** Describes an object of any kind. The Object type serves as the base type for
|
|
54
63
|
* most of the other kinds of objects defined in the Activity Vocabulary,
|
|
55
64
|
* including other Core types such as {@link Activity},
|
|
@@ -63,6 +72,7 @@ var Object$1 = class Object$1 {
|
|
|
63
72
|
#warning;
|
|
64
73
|
#cachedJsonLd;
|
|
65
74
|
#_baseUrl;
|
|
75
|
+
#shouldCacheJsonLd = true;
|
|
66
76
|
id;
|
|
67
77
|
get _documentLoader() {
|
|
68
78
|
return this.#documentLoader;
|
|
@@ -85,6 +95,17 @@ var Object$1 = class Object$1 {
|
|
|
85
95
|
get _baseUrl() {
|
|
86
96
|
return this.#_baseUrl;
|
|
87
97
|
}
|
|
98
|
+
get _shouldCacheJsonLd() {
|
|
99
|
+
return this.#shouldCacheJsonLd;
|
|
100
|
+
}
|
|
101
|
+
set _shouldCacheJsonLd(value) {
|
|
102
|
+
this.#shouldCacheJsonLd = value;
|
|
103
|
+
}
|
|
104
|
+
static _shouldCacheDecodedJsonLd(value) {
|
|
105
|
+
if (value == null || typeof value !== "object") return true;
|
|
106
|
+
if (!("_shouldCacheJsonLd" in value)) return true;
|
|
107
|
+
return value._shouldCacheJsonLd;
|
|
108
|
+
}
|
|
88
109
|
/**
|
|
89
110
|
* The type URI of {@link Object}: `https://www.w3.org/ns/activitystreams#Object`.
|
|
90
111
|
*/
|
|
@@ -5267,6 +5288,7 @@ var Object$1 = class Object$1 {
|
|
|
5267
5288
|
if (!values["@type"].includes("https://www.w3.org/ns/activitystreams#Object")) throw new TypeError("Invalid type: " + values["@type"]);
|
|
5268
5289
|
}
|
|
5269
5290
|
const instance = new this({ id: values["@id"] != null && !values["@id"].startsWith("_:") && URL.canParse(values["@id"], options.baseUrl) ? new URL(values["@id"], options.baseUrl) : void 0 }, options);
|
|
5291
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
5270
5292
|
const _49BipA5dq9eoH8LX8xdsVumveTca_attachment = [];
|
|
5271
5293
|
let _49BipA5dq9eoH8LX8xdsVumveTca_attachment__array = values["https://www.w3.org/ns/activitystreams#attachment"];
|
|
5272
5294
|
for (const v of _49BipA5dq9eoH8LX8xdsVumveTca_attachment__array == null ? [] : _49BipA5dq9eoH8LX8xdsVumveTca_attachment__array.length === 1 && "@list" in _49BipA5dq9eoH8LX8xdsVumveTca_attachment__array[0] ? _49BipA5dq9eoH8LX8xdsVumveTca_attachment__array[0]["@list"] : _49BipA5dq9eoH8LX8xdsVumveTca_attachment__array) {
|
|
@@ -5356,7 +5378,11 @@ var Object$1 = class Object$1 {
|
|
|
5356
5378
|
...options,
|
|
5357
5379
|
baseUrl: options.baseUrl
|
|
5358
5380
|
}) : void 0;
|
|
5359
|
-
if (typeof decoded === "undefined")
|
|
5381
|
+
if (typeof decoded === "undefined") {
|
|
5382
|
+
shouldCacheJsonLd = false;
|
|
5383
|
+
continue;
|
|
5384
|
+
}
|
|
5385
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
5360
5386
|
_49BipA5dq9eoH8LX8xdsVumveTca_attachment.push(decoded);
|
|
5361
5387
|
}
|
|
5362
5388
|
instance.#_49BipA5dq9eoH8LX8xdsVumveTca_attachment = _49BipA5dq9eoH8LX8xdsVumveTca_attachment;
|
|
@@ -5385,7 +5411,11 @@ var Object$1 = class Object$1 {
|
|
|
5385
5411
|
...options,
|
|
5386
5412
|
baseUrl: options.baseUrl
|
|
5387
5413
|
}) : void 0;
|
|
5388
|
-
if (typeof decoded === "undefined")
|
|
5414
|
+
if (typeof decoded === "undefined") {
|
|
5415
|
+
shouldCacheJsonLd = false;
|
|
5416
|
+
continue;
|
|
5417
|
+
}
|
|
5418
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
5389
5419
|
_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo.push(decoded);
|
|
5390
5420
|
}
|
|
5391
5421
|
instance.#_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo = _42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo;
|
|
@@ -5402,7 +5432,11 @@ var Object$1 = class Object$1 {
|
|
|
5402
5432
|
...options,
|
|
5403
5433
|
baseUrl: options.baseUrl
|
|
5404
5434
|
});
|
|
5405
|
-
if (typeof decoded === "undefined")
|
|
5435
|
+
if (typeof decoded === "undefined") {
|
|
5436
|
+
shouldCacheJsonLd = false;
|
|
5437
|
+
continue;
|
|
5438
|
+
}
|
|
5439
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
5406
5440
|
_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience.push(decoded);
|
|
5407
5441
|
}
|
|
5408
5442
|
instance.#_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience = _3ocC3VVi88cEd5sPWL8djkZsvTN6_audience;
|
|
@@ -5410,8 +5444,12 @@ var Object$1 = class Object$1 {
|
|
|
5410
5444
|
let _4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content__array = values["https://www.w3.org/ns/activitystreams#content"];
|
|
5411
5445
|
for (const v of _4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content__array == null ? [] : _4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content__array.length === 1 && "@list" in _4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content__array[0] ? _4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content__array[0]["@list"] : _4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content__array) {
|
|
5412
5446
|
if (v == null) continue;
|
|
5413
|
-
const decoded = typeof v === "object" && "@value" in v && typeof v["@value"] === "string" && !("@language" in v) ? v["@value"] : typeof v === "object" && "@language" in v && "@value" in v && typeof v["@language"] === "string" && typeof v["@value"] === "string" ? new LanguageString$1(v["@value"], v["@language"]) : void 0;
|
|
5414
|
-
if (typeof decoded === "undefined")
|
|
5447
|
+
const decoded = typeof v === "object" && "@value" in v && typeof v["@value"] === "string" && !("@language" in v) ? v["@value"] : typeof v === "object" && "@language" in v && "@value" in v && typeof v["@language"] === "string" && typeof v["@value"] === "string" && isValidLanguageTag(v["@language"]) ? new LanguageString$1(v["@value"], v["@language"]) : void 0;
|
|
5448
|
+
if (typeof decoded === "undefined") {
|
|
5449
|
+
shouldCacheJsonLd = false;
|
|
5450
|
+
continue;
|
|
5451
|
+
}
|
|
5452
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
5415
5453
|
_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content.push(decoded);
|
|
5416
5454
|
}
|
|
5417
5455
|
instance.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content = _4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content;
|
|
@@ -5501,7 +5539,11 @@ var Object$1 = class Object$1 {
|
|
|
5501
5539
|
...options,
|
|
5502
5540
|
baseUrl: options.baseUrl
|
|
5503
5541
|
}) : void 0;
|
|
5504
|
-
if (typeof decoded === "undefined")
|
|
5542
|
+
if (typeof decoded === "undefined") {
|
|
5543
|
+
shouldCacheJsonLd = false;
|
|
5544
|
+
continue;
|
|
5545
|
+
}
|
|
5546
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
5505
5547
|
_3mhZzGXSpQ431mBSz2kvych22v4e_context.push(decoded);
|
|
5506
5548
|
}
|
|
5507
5549
|
instance.#_3mhZzGXSpQ431mBSz2kvych22v4e_context = _3mhZzGXSpQ431mBSz2kvych22v4e_context;
|
|
@@ -5509,8 +5551,12 @@ var Object$1 = class Object$1 {
|
|
|
5509
5551
|
let _4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name__array = values["https://www.w3.org/ns/activitystreams#name"];
|
|
5510
5552
|
for (const v of _4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name__array == null ? [] : _4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name__array.length === 1 && "@list" in _4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name__array[0] ? _4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name__array[0]["@list"] : _4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name__array) {
|
|
5511
5553
|
if (v == null) continue;
|
|
5512
|
-
const decoded = typeof v === "object" && "@value" in v && typeof v["@value"] === "string" && !("@language" in v) ? v["@value"] : typeof v === "object" && "@language" in v && "@value" in v && typeof v["@language"] === "string" && typeof v["@value"] === "string" ? new LanguageString$1(v["@value"], v["@language"]) : void 0;
|
|
5513
|
-
if (typeof decoded === "undefined")
|
|
5554
|
+
const decoded = typeof v === "object" && "@value" in v && typeof v["@value"] === "string" && !("@language" in v) ? v["@value"] : typeof v === "object" && "@language" in v && "@value" in v && typeof v["@language"] === "string" && typeof v["@value"] === "string" && isValidLanguageTag(v["@language"]) ? new LanguageString$1(v["@value"], v["@language"]) : void 0;
|
|
5555
|
+
if (typeof decoded === "undefined") {
|
|
5556
|
+
shouldCacheJsonLd = false;
|
|
5557
|
+
continue;
|
|
5558
|
+
}
|
|
5559
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
5514
5560
|
_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name.push(decoded);
|
|
5515
5561
|
}
|
|
5516
5562
|
instance.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = _4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name;
|
|
@@ -5519,7 +5565,11 @@ var Object$1 = class Object$1 {
|
|
|
5519
5565
|
for (const v of _219RwDanjScTv5tYCjwGZVCM7KZ9_endTime__array == null ? [] : _219RwDanjScTv5tYCjwGZVCM7KZ9_endTime__array.length === 1 && "@list" in _219RwDanjScTv5tYCjwGZVCM7KZ9_endTime__array[0] ? _219RwDanjScTv5tYCjwGZVCM7KZ9_endTime__array[0]["@list"] : _219RwDanjScTv5tYCjwGZVCM7KZ9_endTime__array) {
|
|
5520
5566
|
if (v == null) continue;
|
|
5521
5567
|
const decoded = Temporal.Instant.from(v["@value"].substring(19).match(/[Z+-]/) ? v["@value"] : v["@value"] + "Z");
|
|
5522
|
-
if (typeof decoded === "undefined")
|
|
5568
|
+
if (typeof decoded === "undefined") {
|
|
5569
|
+
shouldCacheJsonLd = false;
|
|
5570
|
+
continue;
|
|
5571
|
+
}
|
|
5572
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
5523
5573
|
_219RwDanjScTv5tYCjwGZVCM7KZ9_endTime.push(decoded);
|
|
5524
5574
|
}
|
|
5525
5575
|
instance.#_219RwDanjScTv5tYCjwGZVCM7KZ9_endTime = _219RwDanjScTv5tYCjwGZVCM7KZ9_endTime;
|
|
@@ -5609,7 +5659,11 @@ var Object$1 = class Object$1 {
|
|
|
5609
5659
|
...options,
|
|
5610
5660
|
baseUrl: options.baseUrl
|
|
5611
5661
|
}) : void 0;
|
|
5612
|
-
if (typeof decoded === "undefined")
|
|
5662
|
+
if (typeof decoded === "undefined") {
|
|
5663
|
+
shouldCacheJsonLd = false;
|
|
5664
|
+
continue;
|
|
5665
|
+
}
|
|
5666
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
5613
5667
|
_86xFhmgBapoMvYqjbjRuDPayTrS_generator.push(decoded);
|
|
5614
5668
|
}
|
|
5615
5669
|
instance.#_86xFhmgBapoMvYqjbjRuDPayTrS_generator = _86xFhmgBapoMvYqjbjRuDPayTrS_generator;
|
|
@@ -5643,7 +5697,11 @@ var Object$1 = class Object$1 {
|
|
|
5643
5697
|
...options,
|
|
5644
5698
|
baseUrl: options.baseUrl
|
|
5645
5699
|
});
|
|
5646
|
-
if (typeof decoded === "undefined")
|
|
5700
|
+
if (typeof decoded === "undefined") {
|
|
5701
|
+
shouldCacheJsonLd = false;
|
|
5702
|
+
continue;
|
|
5703
|
+
}
|
|
5704
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
5647
5705
|
_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon.push(decoded);
|
|
5648
5706
|
}
|
|
5649
5707
|
instance.#_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon = _33CjRLy5ujtsUrwRSCrsggvGdKuR_icon;
|
|
@@ -5677,7 +5735,11 @@ var Object$1 = class Object$1 {
|
|
|
5677
5735
|
...options,
|
|
5678
5736
|
baseUrl: options.baseUrl
|
|
5679
5737
|
});
|
|
5680
|
-
if (typeof decoded === "undefined")
|
|
5738
|
+
if (typeof decoded === "undefined") {
|
|
5739
|
+
shouldCacheJsonLd = false;
|
|
5740
|
+
continue;
|
|
5741
|
+
}
|
|
5742
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
5681
5743
|
_3dXrUdkARxwyJLtJcYi1AJ92H41U_image.push(decoded);
|
|
5682
5744
|
}
|
|
5683
5745
|
instance.#_3dXrUdkARxwyJLtJcYi1AJ92H41U_image = _3dXrUdkARxwyJLtJcYi1AJ92H41U_image;
|
|
@@ -5767,7 +5829,11 @@ var Object$1 = class Object$1 {
|
|
|
5767
5829
|
...options,
|
|
5768
5830
|
baseUrl: options.baseUrl
|
|
5769
5831
|
}) : void 0;
|
|
5770
|
-
if (typeof decoded === "undefined")
|
|
5832
|
+
if (typeof decoded === "undefined") {
|
|
5833
|
+
shouldCacheJsonLd = false;
|
|
5834
|
+
continue;
|
|
5835
|
+
}
|
|
5836
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
5771
5837
|
_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo.push(decoded);
|
|
5772
5838
|
}
|
|
5773
5839
|
instance.#_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo = _3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo;
|
|
@@ -5857,7 +5923,11 @@ var Object$1 = class Object$1 {
|
|
|
5857
5923
|
...options,
|
|
5858
5924
|
baseUrl: options.baseUrl
|
|
5859
5925
|
}) : void 0;
|
|
5860
|
-
if (typeof decoded === "undefined")
|
|
5926
|
+
if (typeof decoded === "undefined") {
|
|
5927
|
+
shouldCacheJsonLd = false;
|
|
5928
|
+
continue;
|
|
5929
|
+
}
|
|
5930
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
5861
5931
|
_31k5MUZJsnsPNg8dQQJieWaXTFnR_location.push(decoded);
|
|
5862
5932
|
}
|
|
5863
5933
|
instance.#_31k5MUZJsnsPNg8dQQJieWaXTFnR_location = _31k5MUZJsnsPNg8dQQJieWaXTFnR_location;
|
|
@@ -5947,7 +6017,11 @@ var Object$1 = class Object$1 {
|
|
|
5947
6017
|
...options,
|
|
5948
6018
|
baseUrl: options.baseUrl
|
|
5949
6019
|
}) : void 0;
|
|
5950
|
-
if (typeof decoded === "undefined")
|
|
6020
|
+
if (typeof decoded === "undefined") {
|
|
6021
|
+
shouldCacheJsonLd = false;
|
|
6022
|
+
continue;
|
|
6023
|
+
}
|
|
6024
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
5951
6025
|
_gCVTegXxWWCw6wWRxa1QF65zusg_preview.push(decoded);
|
|
5952
6026
|
}
|
|
5953
6027
|
instance.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview = _gCVTegXxWWCw6wWRxa1QF65zusg_preview;
|
|
@@ -5956,7 +6030,11 @@ var Object$1 = class Object$1 {
|
|
|
5956
6030
|
for (const v of _5e258TDXtuhaFRPZiGoDfEpjdMr_published__array == null ? [] : _5e258TDXtuhaFRPZiGoDfEpjdMr_published__array.length === 1 && "@list" in _5e258TDXtuhaFRPZiGoDfEpjdMr_published__array[0] ? _5e258TDXtuhaFRPZiGoDfEpjdMr_published__array[0]["@list"] : _5e258TDXtuhaFRPZiGoDfEpjdMr_published__array) {
|
|
5957
6031
|
if (v == null) continue;
|
|
5958
6032
|
const decoded = Temporal.Instant.from(v["@value"].substring(19).match(/[Z+-]/) ? v["@value"] : v["@value"] + "Z");
|
|
5959
|
-
if (typeof decoded === "undefined")
|
|
6033
|
+
if (typeof decoded === "undefined") {
|
|
6034
|
+
shouldCacheJsonLd = false;
|
|
6035
|
+
continue;
|
|
6036
|
+
}
|
|
6037
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
5960
6038
|
_5e258TDXtuhaFRPZiGoDfEpjdMr_published.push(decoded);
|
|
5961
6039
|
}
|
|
5962
6040
|
instance.#_5e258TDXtuhaFRPZiGoDfEpjdMr_published = _5e258TDXtuhaFRPZiGoDfEpjdMr_published;
|
|
@@ -5973,7 +6051,11 @@ var Object$1 = class Object$1 {
|
|
|
5973
6051
|
...options,
|
|
5974
6052
|
baseUrl: options.baseUrl
|
|
5975
6053
|
});
|
|
5976
|
-
if (typeof decoded === "undefined")
|
|
6054
|
+
if (typeof decoded === "undefined") {
|
|
6055
|
+
shouldCacheJsonLd = false;
|
|
6056
|
+
continue;
|
|
6057
|
+
}
|
|
6058
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
5977
6059
|
_7UpwM3JWcXhADcscukEehBorf6k_replies.push(decoded);
|
|
5978
6060
|
}
|
|
5979
6061
|
instance.#_7UpwM3JWcXhADcscukEehBorf6k_replies = _7UpwM3JWcXhADcscukEehBorf6k_replies;
|
|
@@ -5990,7 +6072,11 @@ var Object$1 = class Object$1 {
|
|
|
5990
6072
|
...options,
|
|
5991
6073
|
baseUrl: options.baseUrl
|
|
5992
6074
|
});
|
|
5993
|
-
if (typeof decoded === "undefined")
|
|
6075
|
+
if (typeof decoded === "undefined") {
|
|
6076
|
+
shouldCacheJsonLd = false;
|
|
6077
|
+
continue;
|
|
6078
|
+
}
|
|
6079
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
5994
6080
|
_3kAfck9PcEYt2L7xug5y99YPbANs_shares.push(decoded);
|
|
5995
6081
|
}
|
|
5996
6082
|
instance.#_3kAfck9PcEYt2L7xug5y99YPbANs_shares = _3kAfck9PcEYt2L7xug5y99YPbANs_shares;
|
|
@@ -6007,7 +6093,11 @@ var Object$1 = class Object$1 {
|
|
|
6007
6093
|
...options,
|
|
6008
6094
|
baseUrl: options.baseUrl
|
|
6009
6095
|
});
|
|
6010
|
-
if (typeof decoded === "undefined")
|
|
6096
|
+
if (typeof decoded === "undefined") {
|
|
6097
|
+
shouldCacheJsonLd = false;
|
|
6098
|
+
continue;
|
|
6099
|
+
}
|
|
6100
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
6011
6101
|
_S3ceDnpMdzoTRCccB9FkJWrEzYW_likes.push(decoded);
|
|
6012
6102
|
}
|
|
6013
6103
|
instance.#_S3ceDnpMdzoTRCccB9FkJWrEzYW_likes = _S3ceDnpMdzoTRCccB9FkJWrEzYW_likes;
|
|
@@ -6024,7 +6114,11 @@ var Object$1 = class Object$1 {
|
|
|
6024
6114
|
...options,
|
|
6025
6115
|
baseUrl: options.baseUrl
|
|
6026
6116
|
});
|
|
6027
|
-
if (typeof decoded === "undefined")
|
|
6117
|
+
if (typeof decoded === "undefined") {
|
|
6118
|
+
shouldCacheJsonLd = false;
|
|
6119
|
+
continue;
|
|
6120
|
+
}
|
|
6121
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
6028
6122
|
_kMatyyNAuxoTD8GQMBfA5ogThMR_emojiReactions.push(decoded);
|
|
6029
6123
|
}
|
|
6030
6124
|
instance.#_kMatyyNAuxoTD8GQMBfA5ogThMR_emojiReactions = _kMatyyNAuxoTD8GQMBfA5ogThMR_emojiReactions;
|
|
@@ -6033,7 +6127,11 @@ var Object$1 = class Object$1 {
|
|
|
6033
6127
|
for (const v of _2w3Jmue4up8iVDUA51WZqomEF438_startTime__array == null ? [] : _2w3Jmue4up8iVDUA51WZqomEF438_startTime__array.length === 1 && "@list" in _2w3Jmue4up8iVDUA51WZqomEF438_startTime__array[0] ? _2w3Jmue4up8iVDUA51WZqomEF438_startTime__array[0]["@list"] : _2w3Jmue4up8iVDUA51WZqomEF438_startTime__array) {
|
|
6034
6128
|
if (v == null) continue;
|
|
6035
6129
|
const decoded = Temporal.Instant.from(v["@value"].substring(19).match(/[Z+-]/) ? v["@value"] : v["@value"] + "Z");
|
|
6036
|
-
if (typeof decoded === "undefined")
|
|
6130
|
+
if (typeof decoded === "undefined") {
|
|
6131
|
+
shouldCacheJsonLd = false;
|
|
6132
|
+
continue;
|
|
6133
|
+
}
|
|
6134
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
6037
6135
|
_2w3Jmue4up8iVDUA51WZqomEF438_startTime.push(decoded);
|
|
6038
6136
|
}
|
|
6039
6137
|
instance.#_2w3Jmue4up8iVDUA51WZqomEF438_startTime = _2w3Jmue4up8iVDUA51WZqomEF438_startTime;
|
|
@@ -6041,8 +6139,12 @@ var Object$1 = class Object$1 {
|
|
|
6041
6139
|
let _4LqirZspQbFWWQEbFcXAxm7tTDN1_summary__array = values["https://www.w3.org/ns/activitystreams#summary"];
|
|
6042
6140
|
for (const v of _4LqirZspQbFWWQEbFcXAxm7tTDN1_summary__array == null ? [] : _4LqirZspQbFWWQEbFcXAxm7tTDN1_summary__array.length === 1 && "@list" in _4LqirZspQbFWWQEbFcXAxm7tTDN1_summary__array[0] ? _4LqirZspQbFWWQEbFcXAxm7tTDN1_summary__array[0]["@list"] : _4LqirZspQbFWWQEbFcXAxm7tTDN1_summary__array) {
|
|
6043
6141
|
if (v == null) continue;
|
|
6044
|
-
const decoded = typeof v === "object" && "@value" in v && typeof v["@value"] === "string" && !("@language" in v) ? v["@value"] : typeof v === "object" && "@language" in v && "@value" in v && typeof v["@language"] === "string" && typeof v["@value"] === "string" ? new LanguageString$1(v["@value"], v["@language"]) : void 0;
|
|
6045
|
-
if (typeof decoded === "undefined")
|
|
6142
|
+
const decoded = typeof v === "object" && "@value" in v && typeof v["@value"] === "string" && !("@language" in v) ? v["@value"] : typeof v === "object" && "@language" in v && "@value" in v && typeof v["@language"] === "string" && typeof v["@value"] === "string" && isValidLanguageTag(v["@language"]) ? new LanguageString$1(v["@value"], v["@language"]) : void 0;
|
|
6143
|
+
if (typeof decoded === "undefined") {
|
|
6144
|
+
shouldCacheJsonLd = false;
|
|
6145
|
+
continue;
|
|
6146
|
+
}
|
|
6147
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
6046
6148
|
_4LqirZspQbFWWQEbFcXAxm7tTDN1_summary.push(decoded);
|
|
6047
6149
|
}
|
|
6048
6150
|
instance.#_4LqirZspQbFWWQEbFcXAxm7tTDN1_summary = _4LqirZspQbFWWQEbFcXAxm7tTDN1_summary;
|
|
@@ -6132,7 +6234,11 @@ var Object$1 = class Object$1 {
|
|
|
6132
6234
|
...options,
|
|
6133
6235
|
baseUrl: options.baseUrl
|
|
6134
6236
|
}) : void 0;
|
|
6135
|
-
if (typeof decoded === "undefined")
|
|
6237
|
+
if (typeof decoded === "undefined") {
|
|
6238
|
+
shouldCacheJsonLd = false;
|
|
6239
|
+
continue;
|
|
6240
|
+
}
|
|
6241
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
6136
6242
|
_5chuqj6s95p5gg2sk1HntGfarRf_tag.push(decoded);
|
|
6137
6243
|
}
|
|
6138
6244
|
instance.#_5chuqj6s95p5gg2sk1HntGfarRf_tag = _5chuqj6s95p5gg2sk1HntGfarRf_tag;
|
|
@@ -6141,7 +6247,11 @@ var Object$1 = class Object$1 {
|
|
|
6141
6247
|
for (const v of _385aB7ySixcf5Un6z3VsWmThgCzQ_updated__array == null ? [] : _385aB7ySixcf5Un6z3VsWmThgCzQ_updated__array.length === 1 && "@list" in _385aB7ySixcf5Un6z3VsWmThgCzQ_updated__array[0] ? _385aB7ySixcf5Un6z3VsWmThgCzQ_updated__array[0]["@list"] : _385aB7ySixcf5Un6z3VsWmThgCzQ_updated__array) {
|
|
6142
6248
|
if (v == null) continue;
|
|
6143
6249
|
const decoded = Temporal.Instant.from(v["@value"].substring(19).match(/[Z+-]/) ? v["@value"] : v["@value"] + "Z");
|
|
6144
|
-
if (typeof decoded === "undefined")
|
|
6250
|
+
if (typeof decoded === "undefined") {
|
|
6251
|
+
shouldCacheJsonLd = false;
|
|
6252
|
+
continue;
|
|
6253
|
+
}
|
|
6254
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
6145
6255
|
_385aB7ySixcf5Un6z3VsWmThgCzQ_updated.push(decoded);
|
|
6146
6256
|
}
|
|
6147
6257
|
instance.#_385aB7ySixcf5Un6z3VsWmThgCzQ_updated = _385aB7ySixcf5Un6z3VsWmThgCzQ_updated;
|
|
@@ -6157,7 +6267,11 @@ var Object$1 = class Object$1 {
|
|
|
6157
6267
|
...options,
|
|
6158
6268
|
baseUrl: options.baseUrl
|
|
6159
6269
|
}) : void 0;
|
|
6160
|
-
if (typeof decoded === "undefined")
|
|
6270
|
+
if (typeof decoded === "undefined") {
|
|
6271
|
+
shouldCacheJsonLd = false;
|
|
6272
|
+
continue;
|
|
6273
|
+
}
|
|
6274
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
6161
6275
|
_2oPEH9MQ3aj8JVwyYuWkqoVwV865_url.push(decoded);
|
|
6162
6276
|
}
|
|
6163
6277
|
instance.#_2oPEH9MQ3aj8JVwyYuWkqoVwV865_url = _2oPEH9MQ3aj8JVwyYuWkqoVwV865_url;
|
|
@@ -6174,7 +6288,11 @@ var Object$1 = class Object$1 {
|
|
|
6174
6288
|
...options,
|
|
6175
6289
|
baseUrl: options.baseUrl
|
|
6176
6290
|
});
|
|
6177
|
-
if (typeof decoded === "undefined")
|
|
6291
|
+
if (typeof decoded === "undefined") {
|
|
6292
|
+
shouldCacheJsonLd = false;
|
|
6293
|
+
continue;
|
|
6294
|
+
}
|
|
6295
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
6178
6296
|
_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to.push(decoded);
|
|
6179
6297
|
}
|
|
6180
6298
|
instance.#_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to = _3hFbw7DTpHhq3cvVhkY8njhcsXbd_to;
|
|
@@ -6191,7 +6309,11 @@ var Object$1 = class Object$1 {
|
|
|
6191
6309
|
...options,
|
|
6192
6310
|
baseUrl: options.baseUrl
|
|
6193
6311
|
});
|
|
6194
|
-
if (typeof decoded === "undefined")
|
|
6312
|
+
if (typeof decoded === "undefined") {
|
|
6313
|
+
shouldCacheJsonLd = false;
|
|
6314
|
+
continue;
|
|
6315
|
+
}
|
|
6316
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
6195
6317
|
_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto.push(decoded);
|
|
6196
6318
|
}
|
|
6197
6319
|
instance.#_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto = _aLZupjwL8XB7tzdLgCMXdjZ6qej_bto;
|
|
@@ -6208,7 +6330,11 @@ var Object$1 = class Object$1 {
|
|
|
6208
6330
|
...options,
|
|
6209
6331
|
baseUrl: options.baseUrl
|
|
6210
6332
|
});
|
|
6211
|
-
if (typeof decoded === "undefined")
|
|
6333
|
+
if (typeof decoded === "undefined") {
|
|
6334
|
+
shouldCacheJsonLd = false;
|
|
6335
|
+
continue;
|
|
6336
|
+
}
|
|
6337
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
6212
6338
|
_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc.push(decoded);
|
|
6213
6339
|
}
|
|
6214
6340
|
instance.#_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc = _42a1SvBs24QSLzKcfjCyNTjW5a1g_cc;
|
|
@@ -6225,7 +6351,11 @@ var Object$1 = class Object$1 {
|
|
|
6225
6351
|
...options,
|
|
6226
6352
|
baseUrl: options.baseUrl
|
|
6227
6353
|
});
|
|
6228
|
-
if (typeof decoded === "undefined")
|
|
6354
|
+
if (typeof decoded === "undefined") {
|
|
6355
|
+
shouldCacheJsonLd = false;
|
|
6356
|
+
continue;
|
|
6357
|
+
}
|
|
6358
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
6229
6359
|
_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc.push(decoded);
|
|
6230
6360
|
}
|
|
6231
6361
|
instance.#_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc = _3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc;
|
|
@@ -6234,7 +6364,11 @@ var Object$1 = class Object$1 {
|
|
|
6234
6364
|
for (const v of _3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType__array == null ? [] : _3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType__array.length === 1 && "@list" in _3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType__array[0] ? _3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType__array[0]["@list"] : _3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType__array) {
|
|
6235
6365
|
if (v == null) continue;
|
|
6236
6366
|
const decoded = v["@value"];
|
|
6237
|
-
if (typeof decoded === "undefined")
|
|
6367
|
+
if (typeof decoded === "undefined") {
|
|
6368
|
+
shouldCacheJsonLd = false;
|
|
6369
|
+
continue;
|
|
6370
|
+
}
|
|
6371
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
6238
6372
|
_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType.push(decoded);
|
|
6239
6373
|
}
|
|
6240
6374
|
instance.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType = _3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType;
|
|
@@ -6243,7 +6377,11 @@ var Object$1 = class Object$1 {
|
|
|
6243
6377
|
for (const v of _3bNvLMBN1bCJETiTihM3wvi1B2JX_duration__array == null ? [] : _3bNvLMBN1bCJETiTihM3wvi1B2JX_duration__array.length === 1 && "@list" in _3bNvLMBN1bCJETiTihM3wvi1B2JX_duration__array[0] ? _3bNvLMBN1bCJETiTihM3wvi1B2JX_duration__array[0]["@list"] : _3bNvLMBN1bCJETiTihM3wvi1B2JX_duration__array) {
|
|
6244
6378
|
if (v == null) continue;
|
|
6245
6379
|
const decoded = Temporal.Duration.from(v["@value"]);
|
|
6246
|
-
if (typeof decoded === "undefined")
|
|
6380
|
+
if (typeof decoded === "undefined") {
|
|
6381
|
+
shouldCacheJsonLd = false;
|
|
6382
|
+
continue;
|
|
6383
|
+
}
|
|
6384
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
6247
6385
|
_3bNvLMBN1bCJETiTihM3wvi1B2JX_duration.push(decoded);
|
|
6248
6386
|
}
|
|
6249
6387
|
instance.#_3bNvLMBN1bCJETiTihM3wvi1B2JX_duration = _3bNvLMBN1bCJETiTihM3wvi1B2JX_duration;
|
|
@@ -6252,7 +6390,11 @@ var Object$1 = class Object$1 {
|
|
|
6252
6390
|
for (const v of _u8gdcDTtChQ4tbSQMXc4cYWyum7_sensitive__array == null ? [] : _u8gdcDTtChQ4tbSQMXc4cYWyum7_sensitive__array.length === 1 && "@list" in _u8gdcDTtChQ4tbSQMXc4cYWyum7_sensitive__array[0] ? _u8gdcDTtChQ4tbSQMXc4cYWyum7_sensitive__array[0]["@list"] : _u8gdcDTtChQ4tbSQMXc4cYWyum7_sensitive__array) {
|
|
6253
6391
|
if (v == null) continue;
|
|
6254
6392
|
const decoded = v["@value"];
|
|
6255
|
-
if (typeof decoded === "undefined")
|
|
6393
|
+
if (typeof decoded === "undefined") {
|
|
6394
|
+
shouldCacheJsonLd = false;
|
|
6395
|
+
continue;
|
|
6396
|
+
}
|
|
6397
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
6256
6398
|
_u8gdcDTtChQ4tbSQMXc4cYWyum7_sensitive.push(decoded);
|
|
6257
6399
|
}
|
|
6258
6400
|
instance.#_u8gdcDTtChQ4tbSQMXc4cYWyum7_sensitive = _u8gdcDTtChQ4tbSQMXc4cYWyum7_sensitive;
|
|
@@ -6264,7 +6406,11 @@ var Object$1 = class Object$1 {
|
|
|
6264
6406
|
...options,
|
|
6265
6407
|
baseUrl: options.baseUrl
|
|
6266
6408
|
});
|
|
6267
|
-
if (typeof decoded === "undefined")
|
|
6409
|
+
if (typeof decoded === "undefined") {
|
|
6410
|
+
shouldCacheJsonLd = false;
|
|
6411
|
+
continue;
|
|
6412
|
+
}
|
|
6413
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
6268
6414
|
_2ZwCFoS787v8y8bXKjMoE6MAbrEB_source.push(decoded);
|
|
6269
6415
|
}
|
|
6270
6416
|
instance.#_2ZwCFoS787v8y8bXKjMoE6MAbrEB_source = _2ZwCFoS787v8y8bXKjMoE6MAbrEB_source;
|
|
@@ -6281,7 +6427,11 @@ var Object$1 = class Object$1 {
|
|
|
6281
6427
|
...options,
|
|
6282
6428
|
baseUrl: options.baseUrl
|
|
6283
6429
|
});
|
|
6284
|
-
if (typeof decoded === "undefined")
|
|
6430
|
+
if (typeof decoded === "undefined") {
|
|
6431
|
+
shouldCacheJsonLd = false;
|
|
6432
|
+
continue;
|
|
6433
|
+
}
|
|
6434
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
6285
6435
|
_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof.push(decoded);
|
|
6286
6436
|
}
|
|
6287
6437
|
instance.#_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof = _42rPnotok1ivQ2RNCKNbeFJgx8b8_proof;
|
|
@@ -6293,7 +6443,11 @@ var Object$1 = class Object$1 {
|
|
|
6293
6443
|
...options,
|
|
6294
6444
|
baseUrl: options.baseUrl
|
|
6295
6445
|
});
|
|
6296
|
-
if (typeof decoded === "undefined")
|
|
6446
|
+
if (typeof decoded === "undefined") {
|
|
6447
|
+
shouldCacheJsonLd = false;
|
|
6448
|
+
continue;
|
|
6449
|
+
}
|
|
6450
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
6297
6451
|
_2MHQfh2N74MMmDLDqYWFo7TxYQK2_interactionPolicy.push(decoded);
|
|
6298
6452
|
}
|
|
6299
6453
|
instance.#_2MHQfh2N74MMmDLDqYWFo7TxYQK2_interactionPolicy = _2MHQfh2N74MMmDLDqYWFo7TxYQK2_interactionPolicy;
|
|
@@ -6302,7 +6456,11 @@ var Object$1 = class Object$1 {
|
|
|
6302
6456
|
for (const v of _23YiVs2miQcEiUdn4u8SvjQKWYim_approvedBy__array == null ? [] : _23YiVs2miQcEiUdn4u8SvjQKWYim_approvedBy__array.length === 1 && "@list" in _23YiVs2miQcEiUdn4u8SvjQKWYim_approvedBy__array[0] ? _23YiVs2miQcEiUdn4u8SvjQKWYim_approvedBy__array[0]["@list"] : _23YiVs2miQcEiUdn4u8SvjQKWYim_approvedBy__array) {
|
|
6303
6457
|
if (v == null) continue;
|
|
6304
6458
|
const decoded = v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].includes("/", 5) ? v["@id"].slice(5, v["@id"].indexOf("/", 5)) : v["@id"].slice(5)) + (v["@id"].includes("/", 5) ? v["@id"].slice(v["@id"].indexOf("/", 5)) : "")) : URL.canParse(v["@id"]) && options.baseUrl ? new URL(v["@id"]) : new URL(v["@id"], options.baseUrl);
|
|
6305
|
-
if (typeof decoded === "undefined")
|
|
6459
|
+
if (typeof decoded === "undefined") {
|
|
6460
|
+
shouldCacheJsonLd = false;
|
|
6461
|
+
continue;
|
|
6462
|
+
}
|
|
6463
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
6306
6464
|
_23YiVs2miQcEiUdn4u8SvjQKWYim_approvedBy.push(decoded);
|
|
6307
6465
|
}
|
|
6308
6466
|
instance.#_23YiVs2miQcEiUdn4u8SvjQKWYim_approvedBy = _23YiVs2miQcEiUdn4u8SvjQKWYim_approvedBy;
|
|
@@ -6319,7 +6477,11 @@ var Object$1 = class Object$1 {
|
|
|
6319
6477
|
...options,
|
|
6320
6478
|
baseUrl: options.baseUrl
|
|
6321
6479
|
});
|
|
6322
|
-
if (typeof decoded === "undefined")
|
|
6480
|
+
if (typeof decoded === "undefined") {
|
|
6481
|
+
shouldCacheJsonLd = false;
|
|
6482
|
+
continue;
|
|
6483
|
+
}
|
|
6484
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
6323
6485
|
_3fCeb5aXaDDd4fvkQ96BLWifBUBa_likeAuthorization.push(decoded);
|
|
6324
6486
|
}
|
|
6325
6487
|
instance.#_3fCeb5aXaDDd4fvkQ96BLWifBUBa_likeAuthorization = _3fCeb5aXaDDd4fvkQ96BLWifBUBa_likeAuthorization;
|
|
@@ -6336,7 +6498,11 @@ var Object$1 = class Object$1 {
|
|
|
6336
6498
|
...options,
|
|
6337
6499
|
baseUrl: options.baseUrl
|
|
6338
6500
|
});
|
|
6339
|
-
if (typeof decoded === "undefined")
|
|
6501
|
+
if (typeof decoded === "undefined") {
|
|
6502
|
+
shouldCacheJsonLd = false;
|
|
6503
|
+
continue;
|
|
6504
|
+
}
|
|
6505
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
6340
6506
|
_YA4wdUW7rYztAQ6SjhMnJCmcmtP_replyAuthorization.push(decoded);
|
|
6341
6507
|
}
|
|
6342
6508
|
instance.#_YA4wdUW7rYztAQ6SjhMnJCmcmtP_replyAuthorization = _YA4wdUW7rYztAQ6SjhMnJCmcmtP_replyAuthorization;
|
|
@@ -6353,11 +6519,16 @@ var Object$1 = class Object$1 {
|
|
|
6353
6519
|
...options,
|
|
6354
6520
|
baseUrl: options.baseUrl
|
|
6355
6521
|
});
|
|
6356
|
-
if (typeof decoded === "undefined")
|
|
6522
|
+
if (typeof decoded === "undefined") {
|
|
6523
|
+
shouldCacheJsonLd = false;
|
|
6524
|
+
continue;
|
|
6525
|
+
}
|
|
6526
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
6357
6527
|
_446xEaDBs3Fz6MyzP3PSBaLupkbJ_announceAuthorization.push(decoded);
|
|
6358
6528
|
}
|
|
6359
6529
|
instance.#_446xEaDBs3Fz6MyzP3PSBaLupkbJ_announceAuthorization = _446xEaDBs3Fz6MyzP3PSBaLupkbJ_announceAuthorization;
|
|
6360
|
-
|
|
6530
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
6531
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
6361
6532
|
instance._cachedJsonLd = structuredClone(json);
|
|
6362
6533
|
} catch {
|
|
6363
6534
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -6724,7 +6895,9 @@ var Emoji = class Emoji extends Object$1 {
|
|
|
6724
6895
|
_fromSubclass: true
|
|
6725
6896
|
});
|
|
6726
6897
|
if (!(instance instanceof Emoji)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
6727
|
-
|
|
6898
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
6899
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
6900
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
6728
6901
|
instance._cachedJsonLd = structuredClone(json);
|
|
6729
6902
|
} catch {
|
|
6730
6903
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -7287,6 +7460,7 @@ var ChatMessage = class ChatMessage extends Object$1 {
|
|
|
7287
7460
|
_fromSubclass: true
|
|
7288
7461
|
});
|
|
7289
7462
|
if (!(instance instanceof ChatMessage)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
7463
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
7290
7464
|
const _3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote = [];
|
|
7291
7465
|
let _3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote__array = values["https://w3id.org/fep/044f#quote"];
|
|
7292
7466
|
for (const v of _3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote__array == null ? [] : _3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote__array.length === 1 && "@list" in _3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote__array[0] ? _3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote__array[0]["@list"] : _3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote__array) {
|
|
@@ -7300,7 +7474,11 @@ var ChatMessage = class ChatMessage extends Object$1 {
|
|
|
7300
7474
|
...options,
|
|
7301
7475
|
baseUrl: options.baseUrl
|
|
7302
7476
|
});
|
|
7303
|
-
if (typeof decoded === "undefined")
|
|
7477
|
+
if (typeof decoded === "undefined") {
|
|
7478
|
+
shouldCacheJsonLd = false;
|
|
7479
|
+
continue;
|
|
7480
|
+
}
|
|
7481
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
7304
7482
|
_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote.push(decoded);
|
|
7305
7483
|
}
|
|
7306
7484
|
instance.#_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote = _3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote;
|
|
@@ -7311,7 +7489,11 @@ var ChatMessage = class ChatMessage extends Object$1 {
|
|
|
7311
7489
|
for (const v of _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array == null ? [] : _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array.length === 1 && "@list" in _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array[0] ? _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array[0]["@list"] : _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array) {
|
|
7312
7490
|
if (v == null) continue;
|
|
7313
7491
|
const decoded = new URL(v["@value"]);
|
|
7314
|
-
if (typeof decoded === "undefined")
|
|
7492
|
+
if (typeof decoded === "undefined") {
|
|
7493
|
+
shouldCacheJsonLd = false;
|
|
7494
|
+
continue;
|
|
7495
|
+
}
|
|
7496
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
7315
7497
|
_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl.push(decoded);
|
|
7316
7498
|
}
|
|
7317
7499
|
instance.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl = _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl;
|
|
@@ -7328,11 +7510,16 @@ var ChatMessage = class ChatMessage extends Object$1 {
|
|
|
7328
7510
|
...options,
|
|
7329
7511
|
baseUrl: options.baseUrl
|
|
7330
7512
|
});
|
|
7331
|
-
if (typeof decoded === "undefined")
|
|
7513
|
+
if (typeof decoded === "undefined") {
|
|
7514
|
+
shouldCacheJsonLd = false;
|
|
7515
|
+
continue;
|
|
7516
|
+
}
|
|
7517
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
7332
7518
|
_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization.push(decoded);
|
|
7333
7519
|
}
|
|
7334
7520
|
instance.#_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization = _ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization;
|
|
7335
|
-
|
|
7521
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
7522
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
7336
7523
|
instance._cachedJsonLd = structuredClone(json);
|
|
7337
7524
|
} catch {
|
|
7338
7525
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -8820,6 +9007,7 @@ var Activity = class Activity extends Object$1 {
|
|
|
8820
9007
|
_fromSubclass: true
|
|
8821
9008
|
});
|
|
8822
9009
|
if (!(instance instanceof Activity)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
9010
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
8823
9011
|
const _2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor = [];
|
|
8824
9012
|
let _2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor__array = values["https://www.w3.org/ns/activitystreams#actor"];
|
|
8825
9013
|
for (const v of _2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor__array == null ? [] : _2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor__array.length === 1 && "@list" in _2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor__array[0] ? _2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor__array[0]["@list"] : _2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor__array) {
|
|
@@ -8845,7 +9033,11 @@ var Activity = class Activity extends Object$1 {
|
|
|
8845
9033
|
...options,
|
|
8846
9034
|
baseUrl: options.baseUrl
|
|
8847
9035
|
}) : void 0;
|
|
8848
|
-
if (typeof decoded === "undefined")
|
|
9036
|
+
if (typeof decoded === "undefined") {
|
|
9037
|
+
shouldCacheJsonLd = false;
|
|
9038
|
+
continue;
|
|
9039
|
+
}
|
|
9040
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
8849
9041
|
_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor.push(decoded);
|
|
8850
9042
|
}
|
|
8851
9043
|
instance.#_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor = _2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor;
|
|
@@ -8862,7 +9054,11 @@ var Activity = class Activity extends Object$1 {
|
|
|
8862
9054
|
...options,
|
|
8863
9055
|
baseUrl: options.baseUrl
|
|
8864
9056
|
});
|
|
8865
|
-
if (typeof decoded === "undefined")
|
|
9057
|
+
if (typeof decoded === "undefined") {
|
|
9058
|
+
shouldCacheJsonLd = false;
|
|
9059
|
+
continue;
|
|
9060
|
+
}
|
|
9061
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
8866
9062
|
_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object.push(decoded);
|
|
8867
9063
|
}
|
|
8868
9064
|
instance.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = _2MH19yxjn1wnHsNfa5n4JBhJzxyc_object;
|
|
@@ -8879,7 +9075,11 @@ var Activity = class Activity extends Object$1 {
|
|
|
8879
9075
|
...options,
|
|
8880
9076
|
baseUrl: options.baseUrl
|
|
8881
9077
|
});
|
|
8882
|
-
if (typeof decoded === "undefined")
|
|
9078
|
+
if (typeof decoded === "undefined") {
|
|
9079
|
+
shouldCacheJsonLd = false;
|
|
9080
|
+
continue;
|
|
9081
|
+
}
|
|
9082
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
8883
9083
|
_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target.push(decoded);
|
|
8884
9084
|
}
|
|
8885
9085
|
instance.#_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target = _3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target;
|
|
@@ -8896,7 +9096,11 @@ var Activity = class Activity extends Object$1 {
|
|
|
8896
9096
|
...options,
|
|
8897
9097
|
baseUrl: options.baseUrl
|
|
8898
9098
|
});
|
|
8899
|
-
if (typeof decoded === "undefined")
|
|
9099
|
+
if (typeof decoded === "undefined") {
|
|
9100
|
+
shouldCacheJsonLd = false;
|
|
9101
|
+
continue;
|
|
9102
|
+
}
|
|
9103
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
8900
9104
|
_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result.push(decoded);
|
|
8901
9105
|
}
|
|
8902
9106
|
instance.#_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result = _u4QGFbRFcYmPEKGbPv1hpBR9r5G_result;
|
|
@@ -8913,7 +9117,11 @@ var Activity = class Activity extends Object$1 {
|
|
|
8913
9117
|
...options,
|
|
8914
9118
|
baseUrl: options.baseUrl
|
|
8915
9119
|
});
|
|
8916
|
-
if (typeof decoded === "undefined")
|
|
9120
|
+
if (typeof decoded === "undefined") {
|
|
9121
|
+
shouldCacheJsonLd = false;
|
|
9122
|
+
continue;
|
|
9123
|
+
}
|
|
9124
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
8917
9125
|
_25zu2s3VxVujgEKqrDycjE284XQR_origin.push(decoded);
|
|
8918
9126
|
}
|
|
8919
9127
|
instance.#_25zu2s3VxVujgEKqrDycjE284XQR_origin = _25zu2s3VxVujgEKqrDycjE284XQR_origin;
|
|
@@ -8930,11 +9138,16 @@ var Activity = class Activity extends Object$1 {
|
|
|
8930
9138
|
...options,
|
|
8931
9139
|
baseUrl: options.baseUrl
|
|
8932
9140
|
});
|
|
8933
|
-
if (typeof decoded === "undefined")
|
|
9141
|
+
if (typeof decoded === "undefined") {
|
|
9142
|
+
shouldCacheJsonLd = false;
|
|
9143
|
+
continue;
|
|
9144
|
+
}
|
|
9145
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
8934
9146
|
_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument.push(decoded);
|
|
8935
9147
|
}
|
|
8936
9148
|
instance.#_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument = _3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument;
|
|
8937
|
-
|
|
9149
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
9150
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
8938
9151
|
instance._cachedJsonLd = structuredClone(json);
|
|
8939
9152
|
} catch {
|
|
8940
9153
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -9126,7 +9339,9 @@ var EmojiReact = class EmojiReact extends Activity {
|
|
|
9126
9339
|
_fromSubclass: true
|
|
9127
9340
|
});
|
|
9128
9341
|
if (!(instance instanceof EmojiReact)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
9129
|
-
|
|
9342
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
9343
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
9344
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
9130
9345
|
instance._cachedJsonLd = structuredClone(json);
|
|
9131
9346
|
} catch {
|
|
9132
9347
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -9152,6 +9367,7 @@ var PropertyValue = class {
|
|
|
9152
9367
|
#warning;
|
|
9153
9368
|
#cachedJsonLd;
|
|
9154
9369
|
#_baseUrl;
|
|
9370
|
+
#shouldCacheJsonLd = true;
|
|
9155
9371
|
id;
|
|
9156
9372
|
get _documentLoader() {
|
|
9157
9373
|
return this.#documentLoader;
|
|
@@ -9174,6 +9390,17 @@ var PropertyValue = class {
|
|
|
9174
9390
|
get _baseUrl() {
|
|
9175
9391
|
return this.#_baseUrl;
|
|
9176
9392
|
}
|
|
9393
|
+
get _shouldCacheJsonLd() {
|
|
9394
|
+
return this.#shouldCacheJsonLd;
|
|
9395
|
+
}
|
|
9396
|
+
set _shouldCacheJsonLd(value) {
|
|
9397
|
+
this.#shouldCacheJsonLd = value;
|
|
9398
|
+
}
|
|
9399
|
+
static _shouldCacheDecodedJsonLd(value) {
|
|
9400
|
+
if (value == null || typeof value !== "object") return true;
|
|
9401
|
+
if (!("_shouldCacheJsonLd" in value)) return true;
|
|
9402
|
+
return value._shouldCacheJsonLd;
|
|
9403
|
+
}
|
|
9177
9404
|
/**
|
|
9178
9405
|
* The type URI of {@link PropertyValue}: `http://schema.org#PropertyValue`.
|
|
9179
9406
|
*/
|
|
@@ -9374,12 +9601,17 @@ var PropertyValue = class {
|
|
|
9374
9601
|
if (!values["@type"].includes("http://schema.org#PropertyValue")) throw new TypeError("Invalid type: " + values["@type"]);
|
|
9375
9602
|
}
|
|
9376
9603
|
const instance = new this({ id: values["@id"] != null && !values["@id"].startsWith("_:") && URL.canParse(values["@id"], options.baseUrl) ? new URL(values["@id"], options.baseUrl) : void 0 }, options);
|
|
9604
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
9377
9605
|
const _4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = [];
|
|
9378
9606
|
let _4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name__array = values["https://www.w3.org/ns/activitystreams#name"];
|
|
9379
9607
|
for (const v of _4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name__array == null ? [] : _4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name__array.length === 1 && "@list" in _4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name__array[0] ? _4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name__array[0]["@list"] : _4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name__array) {
|
|
9380
9608
|
if (v == null) continue;
|
|
9381
|
-
const decoded = typeof v === "object" && "@value" in v && typeof v["@value"] === "string" && !("@language" in v) ? v["@value"] : typeof v === "object" && "@language" in v && "@value" in v && typeof v["@language"] === "string" && typeof v["@value"] === "string" ? new LanguageString$1(v["@value"], v["@language"]) : void 0;
|
|
9382
|
-
if (typeof decoded === "undefined")
|
|
9609
|
+
const decoded = typeof v === "object" && "@value" in v && typeof v["@value"] === "string" && !("@language" in v) ? v["@value"] : typeof v === "object" && "@language" in v && "@value" in v && typeof v["@language"] === "string" && typeof v["@value"] === "string" && isValidLanguageTag(v["@language"]) ? new LanguageString$1(v["@value"], v["@language"]) : void 0;
|
|
9610
|
+
if (typeof decoded === "undefined") {
|
|
9611
|
+
shouldCacheJsonLd = false;
|
|
9612
|
+
continue;
|
|
9613
|
+
}
|
|
9614
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
9383
9615
|
_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name.push(decoded);
|
|
9384
9616
|
}
|
|
9385
9617
|
instance.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = _4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name;
|
|
@@ -9387,12 +9619,17 @@ var PropertyValue = class {
|
|
|
9387
9619
|
let _2cSy2magg4iZ7zLaG8U7DiJMoCkx_value__array = values["http://schema.org#value"];
|
|
9388
9620
|
for (const v of _2cSy2magg4iZ7zLaG8U7DiJMoCkx_value__array == null ? [] : _2cSy2magg4iZ7zLaG8U7DiJMoCkx_value__array.length === 1 && "@list" in _2cSy2magg4iZ7zLaG8U7DiJMoCkx_value__array[0] ? _2cSy2magg4iZ7zLaG8U7DiJMoCkx_value__array[0]["@list"] : _2cSy2magg4iZ7zLaG8U7DiJMoCkx_value__array) {
|
|
9389
9621
|
if (v == null) continue;
|
|
9390
|
-
const decoded = typeof v === "object" && "@value" in v && typeof v["@value"] === "string" && !("@language" in v) ? v["@value"] : typeof v === "object" && "@language" in v && "@value" in v && typeof v["@language"] === "string" && typeof v["@value"] === "string" ? new LanguageString$1(v["@value"], v["@language"]) : void 0;
|
|
9391
|
-
if (typeof decoded === "undefined")
|
|
9622
|
+
const decoded = typeof v === "object" && "@value" in v && typeof v["@value"] === "string" && !("@language" in v) ? v["@value"] : typeof v === "object" && "@language" in v && "@value" in v && typeof v["@language"] === "string" && typeof v["@value"] === "string" && isValidLanguageTag(v["@language"]) ? new LanguageString$1(v["@value"], v["@language"]) : void 0;
|
|
9623
|
+
if (typeof decoded === "undefined") {
|
|
9624
|
+
shouldCacheJsonLd = false;
|
|
9625
|
+
continue;
|
|
9626
|
+
}
|
|
9627
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
9392
9628
|
_2cSy2magg4iZ7zLaG8U7DiJMoCkx_value.push(decoded);
|
|
9393
9629
|
}
|
|
9394
9630
|
instance.#_2cSy2magg4iZ7zLaG8U7DiJMoCkx_value = _2cSy2magg4iZ7zLaG8U7DiJMoCkx_value;
|
|
9395
|
-
|
|
9631
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
9632
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
9396
9633
|
instance._cachedJsonLd = structuredClone(json);
|
|
9397
9634
|
} catch {
|
|
9398
9635
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -9433,6 +9670,7 @@ var Measure = class {
|
|
|
9433
9670
|
#warning;
|
|
9434
9671
|
#cachedJsonLd;
|
|
9435
9672
|
#_baseUrl;
|
|
9673
|
+
#shouldCacheJsonLd = true;
|
|
9436
9674
|
id;
|
|
9437
9675
|
get _documentLoader() {
|
|
9438
9676
|
return this.#documentLoader;
|
|
@@ -9455,6 +9693,17 @@ var Measure = class {
|
|
|
9455
9693
|
get _baseUrl() {
|
|
9456
9694
|
return this.#_baseUrl;
|
|
9457
9695
|
}
|
|
9696
|
+
get _shouldCacheJsonLd() {
|
|
9697
|
+
return this.#shouldCacheJsonLd;
|
|
9698
|
+
}
|
|
9699
|
+
set _shouldCacheJsonLd(value) {
|
|
9700
|
+
this.#shouldCacheJsonLd = value;
|
|
9701
|
+
}
|
|
9702
|
+
static _shouldCacheDecodedJsonLd(value) {
|
|
9703
|
+
if (value == null || typeof value !== "object") return true;
|
|
9704
|
+
if (!("_shouldCacheJsonLd" in value)) return true;
|
|
9705
|
+
return value._shouldCacheJsonLd;
|
|
9706
|
+
}
|
|
9458
9707
|
/**
|
|
9459
9708
|
* The type URI of {@link Measure}: `http://www.ontology-of-units-of-measure.org/resource/om-2/Measure`.
|
|
9460
9709
|
*/
|
|
@@ -9646,12 +9895,17 @@ var Measure = class {
|
|
|
9646
9895
|
if (!values["@type"].includes("http://www.ontology-of-units-of-measure.org/resource/om-2/Measure")) throw new TypeError("Invalid type: " + values["@type"]);
|
|
9647
9896
|
}
|
|
9648
9897
|
const instance = new this({ id: values["@id"] != null && !values["@id"].startsWith("_:") && URL.canParse(values["@id"], options.baseUrl) ? new URL(values["@id"], options.baseUrl) : void 0 }, options);
|
|
9898
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
9649
9899
|
const _27fgyFbosTtMAhuepJH8K3ZGURT6 = [];
|
|
9650
9900
|
let _27fgyFbosTtMAhuepJH8K3ZGURT6__array = values["http://www.ontology-of-units-of-measure.org/resource/om-2/hasUnit"];
|
|
9651
9901
|
for (const v of _27fgyFbosTtMAhuepJH8K3ZGURT6__array == null ? [] : _27fgyFbosTtMAhuepJH8K3ZGURT6__array.length === 1 && "@list" in _27fgyFbosTtMAhuepJH8K3ZGURT6__array[0] ? _27fgyFbosTtMAhuepJH8K3ZGURT6__array[0]["@list"] : _27fgyFbosTtMAhuepJH8K3ZGURT6__array) {
|
|
9652
9902
|
if (v == null) continue;
|
|
9653
9903
|
const decoded = v["@value"];
|
|
9654
|
-
if (typeof decoded === "undefined")
|
|
9904
|
+
if (typeof decoded === "undefined") {
|
|
9905
|
+
shouldCacheJsonLd = false;
|
|
9906
|
+
continue;
|
|
9907
|
+
}
|
|
9908
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
9655
9909
|
_27fgyFbosTtMAhuepJH8K3ZGURT6.push(decoded);
|
|
9656
9910
|
}
|
|
9657
9911
|
instance.#_27fgyFbosTtMAhuepJH8K3ZGURT6 = _27fgyFbosTtMAhuepJH8K3ZGURT6;
|
|
@@ -9660,11 +9914,16 @@ var Measure = class {
|
|
|
9660
9914
|
for (const v of _1GQx8o2RgxRs4x9G5uT39XYBv7D__array == null ? [] : _1GQx8o2RgxRs4x9G5uT39XYBv7D__array.length === 1 && "@list" in _1GQx8o2RgxRs4x9G5uT39XYBv7D__array[0] ? _1GQx8o2RgxRs4x9G5uT39XYBv7D__array[0]["@list"] : _1GQx8o2RgxRs4x9G5uT39XYBv7D__array) {
|
|
9661
9915
|
if (v == null) continue;
|
|
9662
9916
|
const decoded = parseDecimal(v["@value"]);
|
|
9663
|
-
if (typeof decoded === "undefined")
|
|
9917
|
+
if (typeof decoded === "undefined") {
|
|
9918
|
+
shouldCacheJsonLd = false;
|
|
9919
|
+
continue;
|
|
9920
|
+
}
|
|
9921
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
9664
9922
|
_1GQx8o2RgxRs4x9G5uT39XYBv7D.push(decoded);
|
|
9665
9923
|
}
|
|
9666
9924
|
instance.#_1GQx8o2RgxRs4x9G5uT39XYBv7D = _1GQx8o2RgxRs4x9G5uT39XYBv7D;
|
|
9667
|
-
|
|
9925
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
9926
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
9668
9927
|
instance._cachedJsonLd = structuredClone(json);
|
|
9669
9928
|
} catch {
|
|
9670
9929
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -10155,6 +10414,7 @@ var AnnounceAuthorization = class AnnounceAuthorization extends Object$1 {
|
|
|
10155
10414
|
_fromSubclass: true
|
|
10156
10415
|
});
|
|
10157
10416
|
if (!(instance instanceof AnnounceAuthorization)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
10417
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
10158
10418
|
const _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = [];
|
|
10159
10419
|
let _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject__array = values["https://gotosocial.org/ns#interactingObject"];
|
|
10160
10420
|
for (const v of _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject__array == null ? [] : _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject__array.length === 1 && "@list" in _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject__array[0] ? _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject__array[0]["@list"] : _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject__array) {
|
|
@@ -10168,7 +10428,11 @@ var AnnounceAuthorization = class AnnounceAuthorization extends Object$1 {
|
|
|
10168
10428
|
...options,
|
|
10169
10429
|
baseUrl: options.baseUrl
|
|
10170
10430
|
});
|
|
10171
|
-
if (typeof decoded === "undefined")
|
|
10431
|
+
if (typeof decoded === "undefined") {
|
|
10432
|
+
shouldCacheJsonLd = false;
|
|
10433
|
+
continue;
|
|
10434
|
+
}
|
|
10435
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
10172
10436
|
_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject.push(decoded);
|
|
10173
10437
|
}
|
|
10174
10438
|
instance.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject;
|
|
@@ -10185,11 +10449,16 @@ var AnnounceAuthorization = class AnnounceAuthorization extends Object$1 {
|
|
|
10185
10449
|
...options,
|
|
10186
10450
|
baseUrl: options.baseUrl
|
|
10187
10451
|
});
|
|
10188
|
-
if (typeof decoded === "undefined")
|
|
10452
|
+
if (typeof decoded === "undefined") {
|
|
10453
|
+
shouldCacheJsonLd = false;
|
|
10454
|
+
continue;
|
|
10455
|
+
}
|
|
10456
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
10189
10457
|
_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget.push(decoded);
|
|
10190
10458
|
}
|
|
10191
10459
|
instance.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget = _2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget;
|
|
10192
|
-
|
|
10460
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
10461
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
10193
10462
|
instance._cachedJsonLd = structuredClone(json);
|
|
10194
10463
|
} catch {
|
|
10195
10464
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -10359,7 +10628,9 @@ var AnnounceRequest = class AnnounceRequest extends Activity {
|
|
|
10359
10628
|
_fromSubclass: true
|
|
10360
10629
|
});
|
|
10361
10630
|
if (!(instance instanceof AnnounceRequest)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
10362
|
-
|
|
10631
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
10632
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
10633
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
10363
10634
|
instance._cachedJsonLd = structuredClone(json);
|
|
10364
10635
|
} catch {
|
|
10365
10636
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -10391,6 +10662,7 @@ var InteractionPolicy = class {
|
|
|
10391
10662
|
#warning;
|
|
10392
10663
|
#cachedJsonLd;
|
|
10393
10664
|
#_baseUrl;
|
|
10665
|
+
#shouldCacheJsonLd = true;
|
|
10394
10666
|
id;
|
|
10395
10667
|
get _documentLoader() {
|
|
10396
10668
|
return this.#documentLoader;
|
|
@@ -10413,6 +10685,17 @@ var InteractionPolicy = class {
|
|
|
10413
10685
|
get _baseUrl() {
|
|
10414
10686
|
return this.#_baseUrl;
|
|
10415
10687
|
}
|
|
10688
|
+
get _shouldCacheJsonLd() {
|
|
10689
|
+
return this.#shouldCacheJsonLd;
|
|
10690
|
+
}
|
|
10691
|
+
set _shouldCacheJsonLd(value) {
|
|
10692
|
+
this.#shouldCacheJsonLd = value;
|
|
10693
|
+
}
|
|
10694
|
+
static _shouldCacheDecodedJsonLd(value) {
|
|
10695
|
+
if (value == null || typeof value !== "object") return true;
|
|
10696
|
+
if (!("_shouldCacheJsonLd" in value)) return true;
|
|
10697
|
+
return value._shouldCacheJsonLd;
|
|
10698
|
+
}
|
|
10416
10699
|
/**
|
|
10417
10700
|
* The type URI of {@link InteractionPolicy}: `https://gotosocial.org/ns#InteractionPolicy`.
|
|
10418
10701
|
*/
|
|
@@ -10625,6 +10908,7 @@ var InteractionPolicy = class {
|
|
|
10625
10908
|
if (!values["@type"].includes("https://gotosocial.org/ns#InteractionPolicy")) throw new TypeError("Invalid type: " + values["@type"]);
|
|
10626
10909
|
}
|
|
10627
10910
|
const instance = new this({ id: values["@id"] != null && !values["@id"].startsWith("_:") && URL.canParse(values["@id"], options.baseUrl) ? new URL(values["@id"], options.baseUrl) : void 0 }, options);
|
|
10911
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
10628
10912
|
const _3JkwVLb3BNCwCWdsb5RftGAg8vyT_canLike = [];
|
|
10629
10913
|
let _3JkwVLb3BNCwCWdsb5RftGAg8vyT_canLike__array = values["https://gotosocial.org/ns#canLike"];
|
|
10630
10914
|
for (const v of _3JkwVLb3BNCwCWdsb5RftGAg8vyT_canLike__array == null ? [] : _3JkwVLb3BNCwCWdsb5RftGAg8vyT_canLike__array.length === 1 && "@list" in _3JkwVLb3BNCwCWdsb5RftGAg8vyT_canLike__array[0] ? _3JkwVLb3BNCwCWdsb5RftGAg8vyT_canLike__array[0]["@list"] : _3JkwVLb3BNCwCWdsb5RftGAg8vyT_canLike__array) {
|
|
@@ -10633,7 +10917,11 @@ var InteractionPolicy = class {
|
|
|
10633
10917
|
...options,
|
|
10634
10918
|
baseUrl: options.baseUrl
|
|
10635
10919
|
});
|
|
10636
|
-
if (typeof decoded === "undefined")
|
|
10920
|
+
if (typeof decoded === "undefined") {
|
|
10921
|
+
shouldCacheJsonLd = false;
|
|
10922
|
+
continue;
|
|
10923
|
+
}
|
|
10924
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
10637
10925
|
_3JkwVLb3BNCwCWdsb5RftGAg8vyT_canLike.push(decoded);
|
|
10638
10926
|
}
|
|
10639
10927
|
instance.#_3JkwVLb3BNCwCWdsb5RftGAg8vyT_canLike = _3JkwVLb3BNCwCWdsb5RftGAg8vyT_canLike;
|
|
@@ -10645,7 +10933,11 @@ var InteractionPolicy = class {
|
|
|
10645
10933
|
...options,
|
|
10646
10934
|
baseUrl: options.baseUrl
|
|
10647
10935
|
});
|
|
10648
|
-
if (typeof decoded === "undefined")
|
|
10936
|
+
if (typeof decoded === "undefined") {
|
|
10937
|
+
shouldCacheJsonLd = false;
|
|
10938
|
+
continue;
|
|
10939
|
+
}
|
|
10940
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
10649
10941
|
_2UBgLRi5p3DRGGvWyB227i4Qjhzd_canReply.push(decoded);
|
|
10650
10942
|
}
|
|
10651
10943
|
instance.#_2UBgLRi5p3DRGGvWyB227i4Qjhzd_canReply = _2UBgLRi5p3DRGGvWyB227i4Qjhzd_canReply;
|
|
@@ -10657,7 +10949,11 @@ var InteractionPolicy = class {
|
|
|
10657
10949
|
...options,
|
|
10658
10950
|
baseUrl: options.baseUrl
|
|
10659
10951
|
});
|
|
10660
|
-
if (typeof decoded === "undefined")
|
|
10952
|
+
if (typeof decoded === "undefined") {
|
|
10953
|
+
shouldCacheJsonLd = false;
|
|
10954
|
+
continue;
|
|
10955
|
+
}
|
|
10956
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
10661
10957
|
_fu5nmoAj528fBQfnxhY9Daok3Vi_canAnnounce.push(decoded);
|
|
10662
10958
|
}
|
|
10663
10959
|
instance.#_fu5nmoAj528fBQfnxhY9Daok3Vi_canAnnounce = _fu5nmoAj528fBQfnxhY9Daok3Vi_canAnnounce;
|
|
@@ -10669,11 +10965,16 @@ var InteractionPolicy = class {
|
|
|
10669
10965
|
...options,
|
|
10670
10966
|
baseUrl: options.baseUrl
|
|
10671
10967
|
});
|
|
10672
|
-
if (typeof decoded === "undefined")
|
|
10968
|
+
if (typeof decoded === "undefined") {
|
|
10969
|
+
shouldCacheJsonLd = false;
|
|
10970
|
+
continue;
|
|
10971
|
+
}
|
|
10972
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
10673
10973
|
_LE3zBTVacTZw2LSyLt4wVUkXeUy_canQuote.push(decoded);
|
|
10674
10974
|
}
|
|
10675
10975
|
instance.#_LE3zBTVacTZw2LSyLt4wVUkXeUy_canQuote = _LE3zBTVacTZw2LSyLt4wVUkXeUy_canQuote;
|
|
10676
|
-
|
|
10976
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
10977
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
10677
10978
|
instance._cachedJsonLd = structuredClone(json);
|
|
10678
10979
|
} catch {
|
|
10679
10980
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -10741,6 +11042,7 @@ var InteractionRule = class {
|
|
|
10741
11042
|
#warning;
|
|
10742
11043
|
#cachedJsonLd;
|
|
10743
11044
|
#_baseUrl;
|
|
11045
|
+
#shouldCacheJsonLd = true;
|
|
10744
11046
|
id;
|
|
10745
11047
|
get _documentLoader() {
|
|
10746
11048
|
return this.#documentLoader;
|
|
@@ -10763,6 +11065,17 @@ var InteractionRule = class {
|
|
|
10763
11065
|
get _baseUrl() {
|
|
10764
11066
|
return this.#_baseUrl;
|
|
10765
11067
|
}
|
|
11068
|
+
get _shouldCacheJsonLd() {
|
|
11069
|
+
return this.#shouldCacheJsonLd;
|
|
11070
|
+
}
|
|
11071
|
+
set _shouldCacheJsonLd(value) {
|
|
11072
|
+
this.#shouldCacheJsonLd = value;
|
|
11073
|
+
}
|
|
11074
|
+
static _shouldCacheDecodedJsonLd(value) {
|
|
11075
|
+
if (value == null || typeof value !== "object") return true;
|
|
11076
|
+
if (!("_shouldCacheJsonLd" in value)) return true;
|
|
11077
|
+
return value._shouldCacheJsonLd;
|
|
11078
|
+
}
|
|
10766
11079
|
/**
|
|
10767
11080
|
* The type URI of {@link InteractionRule}: `https://gotosocial.org/ns#InteractionRule`.
|
|
10768
11081
|
*/
|
|
@@ -10957,12 +11270,17 @@ var InteractionRule = class {
|
|
|
10957
11270
|
if (!values["@type"].includes("https://gotosocial.org/ns#InteractionRule")) throw new TypeError("Invalid type: " + values["@type"]);
|
|
10958
11271
|
}
|
|
10959
11272
|
const instance = new this({ id: values["@id"] != null && !values["@id"].startsWith("_:") && URL.canParse(values["@id"], options.baseUrl) ? new URL(values["@id"], options.baseUrl) : void 0 }, options);
|
|
11273
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
10960
11274
|
const _2rFyCF14HoyNjitj9PmCzek5iSsg_automaticApproval = [];
|
|
10961
11275
|
let _2rFyCF14HoyNjitj9PmCzek5iSsg_automaticApproval__array = values["https://gotosocial.org/ns#automaticApproval"];
|
|
10962
11276
|
for (const v of _2rFyCF14HoyNjitj9PmCzek5iSsg_automaticApproval__array == null ? [] : _2rFyCF14HoyNjitj9PmCzek5iSsg_automaticApproval__array.length === 1 && "@list" in _2rFyCF14HoyNjitj9PmCzek5iSsg_automaticApproval__array[0] ? _2rFyCF14HoyNjitj9PmCzek5iSsg_automaticApproval__array[0]["@list"] : _2rFyCF14HoyNjitj9PmCzek5iSsg_automaticApproval__array) {
|
|
10963
11277
|
if (v == null) continue;
|
|
10964
11278
|
const decoded = v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].includes("/", 5) ? v["@id"].slice(5, v["@id"].indexOf("/", 5)) : v["@id"].slice(5)) + (v["@id"].includes("/", 5) ? v["@id"].slice(v["@id"].indexOf("/", 5)) : "")) : URL.canParse(v["@id"]) && options.baseUrl ? new URL(v["@id"]) : new URL(v["@id"], options.baseUrl);
|
|
10965
|
-
if (typeof decoded === "undefined")
|
|
11279
|
+
if (typeof decoded === "undefined") {
|
|
11280
|
+
shouldCacheJsonLd = false;
|
|
11281
|
+
continue;
|
|
11282
|
+
}
|
|
11283
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
10966
11284
|
_2rFyCF14HoyNjitj9PmCzek5iSsg_automaticApproval.push(decoded);
|
|
10967
11285
|
}
|
|
10968
11286
|
instance.#_2rFyCF14HoyNjitj9PmCzek5iSsg_automaticApproval = _2rFyCF14HoyNjitj9PmCzek5iSsg_automaticApproval;
|
|
@@ -10971,11 +11289,16 @@ var InteractionRule = class {
|
|
|
10971
11289
|
for (const v of _sxj8y5XMMMBWUnRYFw85MKedCMj_manualApproval__array == null ? [] : _sxj8y5XMMMBWUnRYFw85MKedCMj_manualApproval__array.length === 1 && "@list" in _sxj8y5XMMMBWUnRYFw85MKedCMj_manualApproval__array[0] ? _sxj8y5XMMMBWUnRYFw85MKedCMj_manualApproval__array[0]["@list"] : _sxj8y5XMMMBWUnRYFw85MKedCMj_manualApproval__array) {
|
|
10972
11290
|
if (v == null) continue;
|
|
10973
11291
|
const decoded = v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].includes("/", 5) ? v["@id"].slice(5, v["@id"].indexOf("/", 5)) : v["@id"].slice(5)) + (v["@id"].includes("/", 5) ? v["@id"].slice(v["@id"].indexOf("/", 5)) : "")) : URL.canParse(v["@id"]) && options.baseUrl ? new URL(v["@id"]) : new URL(v["@id"], options.baseUrl);
|
|
10974
|
-
if (typeof decoded === "undefined")
|
|
11292
|
+
if (typeof decoded === "undefined") {
|
|
11293
|
+
shouldCacheJsonLd = false;
|
|
11294
|
+
continue;
|
|
11295
|
+
}
|
|
11296
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
10975
11297
|
_sxj8y5XMMMBWUnRYFw85MKedCMj_manualApproval.push(decoded);
|
|
10976
11298
|
}
|
|
10977
11299
|
instance.#_sxj8y5XMMMBWUnRYFw85MKedCMj_manualApproval = _sxj8y5XMMMBWUnRYFw85MKedCMj_manualApproval;
|
|
10978
|
-
|
|
11300
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
11301
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
10979
11302
|
instance._cachedJsonLd = structuredClone(json);
|
|
10980
11303
|
} catch {
|
|
10981
11304
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -11467,6 +11790,7 @@ var LikeAuthorization = class LikeAuthorization extends Object$1 {
|
|
|
11467
11790
|
_fromSubclass: true
|
|
11468
11791
|
});
|
|
11469
11792
|
if (!(instance instanceof LikeAuthorization)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
11793
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
11470
11794
|
const _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = [];
|
|
11471
11795
|
let _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject__array = values["https://gotosocial.org/ns#interactingObject"];
|
|
11472
11796
|
for (const v of _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject__array == null ? [] : _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject__array.length === 1 && "@list" in _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject__array[0] ? _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject__array[0]["@list"] : _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject__array) {
|
|
@@ -11480,7 +11804,11 @@ var LikeAuthorization = class LikeAuthorization extends Object$1 {
|
|
|
11480
11804
|
...options,
|
|
11481
11805
|
baseUrl: options.baseUrl
|
|
11482
11806
|
});
|
|
11483
|
-
if (typeof decoded === "undefined")
|
|
11807
|
+
if (typeof decoded === "undefined") {
|
|
11808
|
+
shouldCacheJsonLd = false;
|
|
11809
|
+
continue;
|
|
11810
|
+
}
|
|
11811
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
11484
11812
|
_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject.push(decoded);
|
|
11485
11813
|
}
|
|
11486
11814
|
instance.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject;
|
|
@@ -11497,11 +11825,16 @@ var LikeAuthorization = class LikeAuthorization extends Object$1 {
|
|
|
11497
11825
|
...options,
|
|
11498
11826
|
baseUrl: options.baseUrl
|
|
11499
11827
|
});
|
|
11500
|
-
if (typeof decoded === "undefined")
|
|
11828
|
+
if (typeof decoded === "undefined") {
|
|
11829
|
+
shouldCacheJsonLd = false;
|
|
11830
|
+
continue;
|
|
11831
|
+
}
|
|
11832
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
11501
11833
|
_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget.push(decoded);
|
|
11502
11834
|
}
|
|
11503
11835
|
instance.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget = _2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget;
|
|
11504
|
-
|
|
11836
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
11837
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
11505
11838
|
instance._cachedJsonLd = structuredClone(json);
|
|
11506
11839
|
} catch {
|
|
11507
11840
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -11670,7 +12003,9 @@ var LikeRequest = class LikeRequest extends Activity {
|
|
|
11670
12003
|
_fromSubclass: true
|
|
11671
12004
|
});
|
|
11672
12005
|
if (!(instance instanceof LikeRequest)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
11673
|
-
|
|
12006
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
12007
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
12008
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
11674
12009
|
instance._cachedJsonLd = structuredClone(json);
|
|
11675
12010
|
} catch {
|
|
11676
12011
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -12145,6 +12480,7 @@ var ReplyAuthorization = class ReplyAuthorization extends Object$1 {
|
|
|
12145
12480
|
_fromSubclass: true
|
|
12146
12481
|
});
|
|
12147
12482
|
if (!(instance instanceof ReplyAuthorization)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
12483
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
12148
12484
|
const _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = [];
|
|
12149
12485
|
let _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject__array = values["https://gotosocial.org/ns#interactingObject"];
|
|
12150
12486
|
for (const v of _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject__array == null ? [] : _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject__array.length === 1 && "@list" in _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject__array[0] ? _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject__array[0]["@list"] : _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject__array) {
|
|
@@ -12158,7 +12494,11 @@ var ReplyAuthorization = class ReplyAuthorization extends Object$1 {
|
|
|
12158
12494
|
...options,
|
|
12159
12495
|
baseUrl: options.baseUrl
|
|
12160
12496
|
});
|
|
12161
|
-
if (typeof decoded === "undefined")
|
|
12497
|
+
if (typeof decoded === "undefined") {
|
|
12498
|
+
shouldCacheJsonLd = false;
|
|
12499
|
+
continue;
|
|
12500
|
+
}
|
|
12501
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
12162
12502
|
_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject.push(decoded);
|
|
12163
12503
|
}
|
|
12164
12504
|
instance.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject;
|
|
@@ -12175,11 +12515,16 @@ var ReplyAuthorization = class ReplyAuthorization extends Object$1 {
|
|
|
12175
12515
|
...options,
|
|
12176
12516
|
baseUrl: options.baseUrl
|
|
12177
12517
|
});
|
|
12178
|
-
if (typeof decoded === "undefined")
|
|
12518
|
+
if (typeof decoded === "undefined") {
|
|
12519
|
+
shouldCacheJsonLd = false;
|
|
12520
|
+
continue;
|
|
12521
|
+
}
|
|
12522
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
12179
12523
|
_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget.push(decoded);
|
|
12180
12524
|
}
|
|
12181
12525
|
instance.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget = _2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget;
|
|
12182
|
-
|
|
12526
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
12527
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
12183
12528
|
instance._cachedJsonLd = structuredClone(json);
|
|
12184
12529
|
} catch {
|
|
12185
12530
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -12348,7 +12693,9 @@ var ReplyRequest = class ReplyRequest extends Activity {
|
|
|
12348
12693
|
_fromSubclass: true
|
|
12349
12694
|
});
|
|
12350
12695
|
if (!(instance instanceof ReplyRequest)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
12351
|
-
|
|
12696
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
12697
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
12698
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
12352
12699
|
instance._cachedJsonLd = structuredClone(json);
|
|
12353
12700
|
} catch {
|
|
12354
12701
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -12824,6 +13171,7 @@ var QuoteAuthorization = class QuoteAuthorization extends Object$1 {
|
|
|
12824
13171
|
_fromSubclass: true
|
|
12825
13172
|
});
|
|
12826
13173
|
if (!(instance instanceof QuoteAuthorization)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
13174
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
12827
13175
|
const _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = [];
|
|
12828
13176
|
let _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject__array = values["https://gotosocial.org/ns#interactingObject"];
|
|
12829
13177
|
for (const v of _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject__array == null ? [] : _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject__array.length === 1 && "@list" in _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject__array[0] ? _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject__array[0]["@list"] : _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject__array) {
|
|
@@ -12837,7 +13185,11 @@ var QuoteAuthorization = class QuoteAuthorization extends Object$1 {
|
|
|
12837
13185
|
...options,
|
|
12838
13186
|
baseUrl: options.baseUrl
|
|
12839
13187
|
});
|
|
12840
|
-
if (typeof decoded === "undefined")
|
|
13188
|
+
if (typeof decoded === "undefined") {
|
|
13189
|
+
shouldCacheJsonLd = false;
|
|
13190
|
+
continue;
|
|
13191
|
+
}
|
|
13192
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
12841
13193
|
_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject.push(decoded);
|
|
12842
13194
|
}
|
|
12843
13195
|
instance.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject;
|
|
@@ -12854,11 +13206,16 @@ var QuoteAuthorization = class QuoteAuthorization extends Object$1 {
|
|
|
12854
13206
|
...options,
|
|
12855
13207
|
baseUrl: options.baseUrl
|
|
12856
13208
|
});
|
|
12857
|
-
if (typeof decoded === "undefined")
|
|
13209
|
+
if (typeof decoded === "undefined") {
|
|
13210
|
+
shouldCacheJsonLd = false;
|
|
13211
|
+
continue;
|
|
13212
|
+
}
|
|
13213
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
12858
13214
|
_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget.push(decoded);
|
|
12859
13215
|
}
|
|
12860
13216
|
instance.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget = _2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget;
|
|
12861
|
-
|
|
13217
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
13218
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
12862
13219
|
instance._cachedJsonLd = structuredClone(json);
|
|
12863
13220
|
} catch {
|
|
12864
13221
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -13057,7 +13414,9 @@ var QuoteRequest = class QuoteRequest extends Activity {
|
|
|
13057
13414
|
_fromSubclass: true
|
|
13058
13415
|
});
|
|
13059
13416
|
if (!(instance instanceof QuoteRequest)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
13060
|
-
|
|
13417
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
13418
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
13419
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
13061
13420
|
instance._cachedJsonLd = structuredClone(json);
|
|
13062
13421
|
} catch {
|
|
13063
13422
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -13086,6 +13445,7 @@ var DidService = class {
|
|
|
13086
13445
|
#warning;
|
|
13087
13446
|
#cachedJsonLd;
|
|
13088
13447
|
#_baseUrl;
|
|
13448
|
+
#shouldCacheJsonLd = true;
|
|
13089
13449
|
id;
|
|
13090
13450
|
get _documentLoader() {
|
|
13091
13451
|
return this.#documentLoader;
|
|
@@ -13108,6 +13468,17 @@ var DidService = class {
|
|
|
13108
13468
|
get _baseUrl() {
|
|
13109
13469
|
return this.#_baseUrl;
|
|
13110
13470
|
}
|
|
13471
|
+
get _shouldCacheJsonLd() {
|
|
13472
|
+
return this.#shouldCacheJsonLd;
|
|
13473
|
+
}
|
|
13474
|
+
set _shouldCacheJsonLd(value) {
|
|
13475
|
+
this.#shouldCacheJsonLd = value;
|
|
13476
|
+
}
|
|
13477
|
+
static _shouldCacheDecodedJsonLd(value) {
|
|
13478
|
+
if (value == null || typeof value !== "object") return true;
|
|
13479
|
+
if (!("_shouldCacheJsonLd" in value)) return true;
|
|
13480
|
+
return value._shouldCacheJsonLd;
|
|
13481
|
+
}
|
|
13111
13482
|
/**
|
|
13112
13483
|
* The type URI of {@link DidService}: `https://www.w3.org/ns/did#Service`.
|
|
13113
13484
|
*/
|
|
@@ -13266,16 +13637,22 @@ var DidService = class {
|
|
|
13266
13637
|
if (!values["@type"].includes("https://www.w3.org/ns/did#Service")) throw new TypeError("Invalid type: " + values["@type"]);
|
|
13267
13638
|
}
|
|
13268
13639
|
const instance = new this({ id: values["@id"] != null && !values["@id"].startsWith("_:") && URL.canParse(values["@id"], options.baseUrl) ? new URL(values["@id"], options.baseUrl) : void 0 }, options);
|
|
13640
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
13269
13641
|
const _2KM4fetG6FTJ1cphj76rzJ8Dyv7p_serviceEndpoint = [];
|
|
13270
13642
|
let _2KM4fetG6FTJ1cphj76rzJ8Dyv7p_serviceEndpoint__array = values["https://www.w3.org/ns/did#serviceEndpoint"];
|
|
13271
13643
|
for (const v of _2KM4fetG6FTJ1cphj76rzJ8Dyv7p_serviceEndpoint__array == null ? [] : _2KM4fetG6FTJ1cphj76rzJ8Dyv7p_serviceEndpoint__array.length === 1 && "@list" in _2KM4fetG6FTJ1cphj76rzJ8Dyv7p_serviceEndpoint__array[0] ? _2KM4fetG6FTJ1cphj76rzJ8Dyv7p_serviceEndpoint__array[0]["@list"] : _2KM4fetG6FTJ1cphj76rzJ8Dyv7p_serviceEndpoint__array) {
|
|
13272
13644
|
if (v == null) continue;
|
|
13273
13645
|
const decoded = v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].includes("/", 5) ? v["@id"].slice(5, v["@id"].indexOf("/", 5)) : v["@id"].slice(5)) + (v["@id"].includes("/", 5) ? v["@id"].slice(v["@id"].indexOf("/", 5)) : "")) : URL.canParse(v["@id"]) && options.baseUrl ? new URL(v["@id"]) : new URL(v["@id"], options.baseUrl);
|
|
13274
|
-
if (typeof decoded === "undefined")
|
|
13646
|
+
if (typeof decoded === "undefined") {
|
|
13647
|
+
shouldCacheJsonLd = false;
|
|
13648
|
+
continue;
|
|
13649
|
+
}
|
|
13650
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
13275
13651
|
_2KM4fetG6FTJ1cphj76rzJ8Dyv7p_serviceEndpoint.push(decoded);
|
|
13276
13652
|
}
|
|
13277
13653
|
instance.#_2KM4fetG6FTJ1cphj76rzJ8Dyv7p_serviceEndpoint = _2KM4fetG6FTJ1cphj76rzJ8Dyv7p_serviceEndpoint;
|
|
13278
|
-
|
|
13654
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
13655
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
13279
13656
|
instance._cachedJsonLd = structuredClone(json);
|
|
13280
13657
|
} catch {
|
|
13281
13658
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -13427,7 +13804,9 @@ var Export = class Export extends DidService {
|
|
|
13427
13804
|
_fromSubclass: true
|
|
13428
13805
|
});
|
|
13429
13806
|
if (!(instance instanceof Export)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
13430
|
-
|
|
13807
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
13808
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
13809
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
13431
13810
|
instance._cachedJsonLd = structuredClone(json);
|
|
13432
13811
|
} catch {
|
|
13433
13812
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -13454,6 +13833,7 @@ var DataIntegrityProof = class {
|
|
|
13454
13833
|
#warning;
|
|
13455
13834
|
#cachedJsonLd;
|
|
13456
13835
|
#_baseUrl;
|
|
13836
|
+
#shouldCacheJsonLd = true;
|
|
13457
13837
|
id;
|
|
13458
13838
|
get _documentLoader() {
|
|
13459
13839
|
return this.#documentLoader;
|
|
@@ -13476,6 +13856,17 @@ var DataIntegrityProof = class {
|
|
|
13476
13856
|
get _baseUrl() {
|
|
13477
13857
|
return this.#_baseUrl;
|
|
13478
13858
|
}
|
|
13859
|
+
get _shouldCacheJsonLd() {
|
|
13860
|
+
return this.#shouldCacheJsonLd;
|
|
13861
|
+
}
|
|
13862
|
+
set _shouldCacheJsonLd(value) {
|
|
13863
|
+
this.#shouldCacheJsonLd = value;
|
|
13864
|
+
}
|
|
13865
|
+
static _shouldCacheDecodedJsonLd(value) {
|
|
13866
|
+
if (value == null || typeof value !== "object") return true;
|
|
13867
|
+
if (!("_shouldCacheJsonLd" in value)) return true;
|
|
13868
|
+
return value._shouldCacheJsonLd;
|
|
13869
|
+
}
|
|
13479
13870
|
/**
|
|
13480
13871
|
* The type URI of {@link DataIntegrityProof}: `https://w3id.org/security#DataIntegrityProof`.
|
|
13481
13872
|
*/
|
|
@@ -13821,12 +14212,17 @@ var DataIntegrityProof = class {
|
|
|
13821
14212
|
if (!values["@type"].includes("https://w3id.org/security#DataIntegrityProof")) throw new TypeError("Invalid type: " + values["@type"]);
|
|
13822
14213
|
}
|
|
13823
14214
|
const instance = new this({ id: values["@id"] != null && !values["@id"].startsWith("_:") && URL.canParse(values["@id"], options.baseUrl) ? new URL(values["@id"], options.baseUrl) : void 0 }, options);
|
|
14215
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
13824
14216
|
const _3RurJsa7tnptyqMFR5hDGcP9pMs5_cryptosuite = [];
|
|
13825
14217
|
let _3RurJsa7tnptyqMFR5hDGcP9pMs5_cryptosuite__array = values["https://w3id.org/security#cryptosuite"];
|
|
13826
14218
|
for (const v of _3RurJsa7tnptyqMFR5hDGcP9pMs5_cryptosuite__array == null ? [] : _3RurJsa7tnptyqMFR5hDGcP9pMs5_cryptosuite__array.length === 1 && "@list" in _3RurJsa7tnptyqMFR5hDGcP9pMs5_cryptosuite__array[0] ? _3RurJsa7tnptyqMFR5hDGcP9pMs5_cryptosuite__array[0]["@list"] : _3RurJsa7tnptyqMFR5hDGcP9pMs5_cryptosuite__array) {
|
|
13827
14219
|
if (v == null) continue;
|
|
13828
14220
|
const decoded = v["@value"];
|
|
13829
|
-
if (typeof decoded === "undefined")
|
|
14221
|
+
if (typeof decoded === "undefined") {
|
|
14222
|
+
shouldCacheJsonLd = false;
|
|
14223
|
+
continue;
|
|
14224
|
+
}
|
|
14225
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
13830
14226
|
_3RurJsa7tnptyqMFR5hDGcP9pMs5_cryptosuite.push(decoded);
|
|
13831
14227
|
}
|
|
13832
14228
|
instance.#_3RurJsa7tnptyqMFR5hDGcP9pMs5_cryptosuite = _3RurJsa7tnptyqMFR5hDGcP9pMs5_cryptosuite;
|
|
@@ -13843,7 +14239,11 @@ var DataIntegrityProof = class {
|
|
|
13843
14239
|
...options,
|
|
13844
14240
|
baseUrl: options.baseUrl
|
|
13845
14241
|
});
|
|
13846
|
-
if (typeof decoded === "undefined")
|
|
14242
|
+
if (typeof decoded === "undefined") {
|
|
14243
|
+
shouldCacheJsonLd = false;
|
|
14244
|
+
continue;
|
|
14245
|
+
}
|
|
14246
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
13847
14247
|
_2mHVKxqA7zncjveJrDEo3pWpMZqg_verificationMethod.push(decoded);
|
|
13848
14248
|
}
|
|
13849
14249
|
instance.#_2mHVKxqA7zncjveJrDEo3pWpMZqg_verificationMethod = _2mHVKxqA7zncjveJrDEo3pWpMZqg_verificationMethod;
|
|
@@ -13852,7 +14252,11 @@ var DataIntegrityProof = class {
|
|
|
13852
14252
|
for (const v of _2AeEnPcAvVrPEuKbpmn9ZKNmWHKb_proofPurpose__array == null ? [] : _2AeEnPcAvVrPEuKbpmn9ZKNmWHKb_proofPurpose__array.length === 1 && "@list" in _2AeEnPcAvVrPEuKbpmn9ZKNmWHKb_proofPurpose__array[0] ? _2AeEnPcAvVrPEuKbpmn9ZKNmWHKb_proofPurpose__array[0]["@list"] : _2AeEnPcAvVrPEuKbpmn9ZKNmWHKb_proofPurpose__array) {
|
|
13853
14253
|
if (v == null) continue;
|
|
13854
14254
|
const decoded = v["@id"].substring(26);
|
|
13855
|
-
if (typeof decoded === "undefined")
|
|
14255
|
+
if (typeof decoded === "undefined") {
|
|
14256
|
+
shouldCacheJsonLd = false;
|
|
14257
|
+
continue;
|
|
14258
|
+
}
|
|
14259
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
13856
14260
|
_2AeEnPcAvVrPEuKbpmn9ZKNmWHKb_proofPurpose.push(decoded);
|
|
13857
14261
|
}
|
|
13858
14262
|
instance.#_2AeEnPcAvVrPEuKbpmn9ZKNmWHKb_proofPurpose = _2AeEnPcAvVrPEuKbpmn9ZKNmWHKb_proofPurpose;
|
|
@@ -13861,7 +14265,11 @@ var DataIntegrityProof = class {
|
|
|
13861
14265
|
for (const v of _3CjFK5vfKpX4HQuNh2b18TykoVLq_proofValue__array == null ? [] : _3CjFK5vfKpX4HQuNh2b18TykoVLq_proofValue__array.length === 1 && "@list" in _3CjFK5vfKpX4HQuNh2b18TykoVLq_proofValue__array[0] ? _3CjFK5vfKpX4HQuNh2b18TykoVLq_proofValue__array[0]["@list"] : _3CjFK5vfKpX4HQuNh2b18TykoVLq_proofValue__array) {
|
|
13862
14266
|
if (v == null) continue;
|
|
13863
14267
|
const decoded = decodeMultibase(v["@value"]);
|
|
13864
|
-
if (typeof decoded === "undefined")
|
|
14268
|
+
if (typeof decoded === "undefined") {
|
|
14269
|
+
shouldCacheJsonLd = false;
|
|
14270
|
+
continue;
|
|
14271
|
+
}
|
|
14272
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
13865
14273
|
_3CjFK5vfKpX4HQuNh2b18TykoVLq_proofValue.push(decoded);
|
|
13866
14274
|
}
|
|
13867
14275
|
instance.#_3CjFK5vfKpX4HQuNh2b18TykoVLq_proofValue = _3CjFK5vfKpX4HQuNh2b18TykoVLq_proofValue;
|
|
@@ -13870,11 +14278,16 @@ var DataIntegrityProof = class {
|
|
|
13870
14278
|
for (const v of _3qzP3ukEZoUziK5FEiA1RhU4aqac__array == null ? [] : _3qzP3ukEZoUziK5FEiA1RhU4aqac__array.length === 1 && "@list" in _3qzP3ukEZoUziK5FEiA1RhU4aqac__array[0] ? _3qzP3ukEZoUziK5FEiA1RhU4aqac__array[0]["@list"] : _3qzP3ukEZoUziK5FEiA1RhU4aqac__array) {
|
|
13871
14279
|
if (v == null) continue;
|
|
13872
14280
|
const decoded = Temporal.Instant.from(v["@value"].substring(19).match(/[Z+-]/) ? v["@value"] : v["@value"] + "Z");
|
|
13873
|
-
if (typeof decoded === "undefined")
|
|
14281
|
+
if (typeof decoded === "undefined") {
|
|
14282
|
+
shouldCacheJsonLd = false;
|
|
14283
|
+
continue;
|
|
14284
|
+
}
|
|
14285
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
13874
14286
|
_3qzP3ukEZoUziK5FEiA1RhU4aqac.push(decoded);
|
|
13875
14287
|
}
|
|
13876
14288
|
instance.#_3qzP3ukEZoUziK5FEiA1RhU4aqac = _3qzP3ukEZoUziK5FEiA1RhU4aqac;
|
|
13877
|
-
|
|
14289
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
14290
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
13878
14291
|
instance._cachedJsonLd = structuredClone(json);
|
|
13879
14292
|
} catch {
|
|
13880
14293
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -13930,6 +14343,7 @@ var CryptographicKey = class {
|
|
|
13930
14343
|
#warning;
|
|
13931
14344
|
#cachedJsonLd;
|
|
13932
14345
|
#_baseUrl;
|
|
14346
|
+
#shouldCacheJsonLd = true;
|
|
13933
14347
|
id;
|
|
13934
14348
|
get _documentLoader() {
|
|
13935
14349
|
return this.#documentLoader;
|
|
@@ -13952,6 +14366,17 @@ var CryptographicKey = class {
|
|
|
13952
14366
|
get _baseUrl() {
|
|
13953
14367
|
return this.#_baseUrl;
|
|
13954
14368
|
}
|
|
14369
|
+
get _shouldCacheJsonLd() {
|
|
14370
|
+
return this.#shouldCacheJsonLd;
|
|
14371
|
+
}
|
|
14372
|
+
set _shouldCacheJsonLd(value) {
|
|
14373
|
+
this.#shouldCacheJsonLd = value;
|
|
14374
|
+
}
|
|
14375
|
+
static _shouldCacheDecodedJsonLd(value) {
|
|
14376
|
+
if (value == null || typeof value !== "object") return true;
|
|
14377
|
+
if (!("_shouldCacheJsonLd" in value)) return true;
|
|
14378
|
+
return value._shouldCacheJsonLd;
|
|
14379
|
+
}
|
|
13955
14380
|
/**
|
|
13956
14381
|
* The type URI of {@link CryptographicKey}: `https://w3id.org/security#Key`.
|
|
13957
14382
|
*/
|
|
@@ -14318,6 +14743,7 @@ var CryptographicKey = class {
|
|
|
14318
14743
|
if (!values["@type"].includes("https://w3id.org/security#Key")) throw new TypeError("Invalid type: " + values["@type"]);
|
|
14319
14744
|
}
|
|
14320
14745
|
const instance = new this({ id: values["@id"] != null && !values["@id"].startsWith("_:") && URL.canParse(values["@id"], options.baseUrl) ? new URL(values["@id"], options.baseUrl) : void 0 }, options);
|
|
14746
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
14321
14747
|
const _5UJq9NDh3ZHgswFwwdVxQvJxdx2_owner = [];
|
|
14322
14748
|
let _5UJq9NDh3ZHgswFwwdVxQvJxdx2_owner__array = values["https://w3id.org/security#owner"];
|
|
14323
14749
|
for (const v of _5UJq9NDh3ZHgswFwwdVxQvJxdx2_owner__array == null ? [] : _5UJq9NDh3ZHgswFwwdVxQvJxdx2_owner__array.length === 1 && "@list" in _5UJq9NDh3ZHgswFwwdVxQvJxdx2_owner__array[0] ? _5UJq9NDh3ZHgswFwwdVxQvJxdx2_owner__array[0]["@list"] : _5UJq9NDh3ZHgswFwwdVxQvJxdx2_owner__array) {
|
|
@@ -14343,7 +14769,11 @@ var CryptographicKey = class {
|
|
|
14343
14769
|
...options,
|
|
14344
14770
|
baseUrl: options.baseUrl
|
|
14345
14771
|
}) : void 0;
|
|
14346
|
-
if (typeof decoded === "undefined")
|
|
14772
|
+
if (typeof decoded === "undefined") {
|
|
14773
|
+
shouldCacheJsonLd = false;
|
|
14774
|
+
continue;
|
|
14775
|
+
}
|
|
14776
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
14347
14777
|
_5UJq9NDh3ZHgswFwwdVxQvJxdx2_owner.push(decoded);
|
|
14348
14778
|
}
|
|
14349
14779
|
instance.#_5UJq9NDh3ZHgswFwwdVxQvJxdx2_owner = _5UJq9NDh3ZHgswFwwdVxQvJxdx2_owner;
|
|
@@ -14352,11 +14782,16 @@ var CryptographicKey = class {
|
|
|
14352
14782
|
for (const v of _2fE2QMDdg6KFGqa4NEC3TmjApSAD_publicKeyPem__array == null ? [] : _2fE2QMDdg6KFGqa4NEC3TmjApSAD_publicKeyPem__array.length === 1 && "@list" in _2fE2QMDdg6KFGqa4NEC3TmjApSAD_publicKeyPem__array[0] ? _2fE2QMDdg6KFGqa4NEC3TmjApSAD_publicKeyPem__array[0]["@list"] : _2fE2QMDdg6KFGqa4NEC3TmjApSAD_publicKeyPem__array) {
|
|
14353
14783
|
if (v == null) continue;
|
|
14354
14784
|
const decoded = await importPem(v["@value"]);
|
|
14355
|
-
if (typeof decoded === "undefined")
|
|
14785
|
+
if (typeof decoded === "undefined") {
|
|
14786
|
+
shouldCacheJsonLd = false;
|
|
14787
|
+
continue;
|
|
14788
|
+
}
|
|
14789
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
14356
14790
|
_2fE2QMDdg6KFGqa4NEC3TmjApSAD_publicKeyPem.push(decoded);
|
|
14357
14791
|
}
|
|
14358
14792
|
instance.#_2fE2QMDdg6KFGqa4NEC3TmjApSAD_publicKeyPem = _2fE2QMDdg6KFGqa4NEC3TmjApSAD_publicKeyPem;
|
|
14359
|
-
|
|
14793
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
14794
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
14360
14795
|
instance._cachedJsonLd = structuredClone(json);
|
|
14361
14796
|
} catch {
|
|
14362
14797
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -14400,6 +14835,7 @@ var Multikey = class {
|
|
|
14400
14835
|
#warning;
|
|
14401
14836
|
#cachedJsonLd;
|
|
14402
14837
|
#_baseUrl;
|
|
14838
|
+
#shouldCacheJsonLd = true;
|
|
14403
14839
|
id;
|
|
14404
14840
|
get _documentLoader() {
|
|
14405
14841
|
return this.#documentLoader;
|
|
@@ -14422,6 +14858,17 @@ var Multikey = class {
|
|
|
14422
14858
|
get _baseUrl() {
|
|
14423
14859
|
return this.#_baseUrl;
|
|
14424
14860
|
}
|
|
14861
|
+
get _shouldCacheJsonLd() {
|
|
14862
|
+
return this.#shouldCacheJsonLd;
|
|
14863
|
+
}
|
|
14864
|
+
set _shouldCacheJsonLd(value) {
|
|
14865
|
+
this.#shouldCacheJsonLd = value;
|
|
14866
|
+
}
|
|
14867
|
+
static _shouldCacheDecodedJsonLd(value) {
|
|
14868
|
+
if (value == null || typeof value !== "object") return true;
|
|
14869
|
+
if (!("_shouldCacheJsonLd" in value)) return true;
|
|
14870
|
+
return value._shouldCacheJsonLd;
|
|
14871
|
+
}
|
|
14425
14872
|
/**
|
|
14426
14873
|
* The type URI of {@link Multikey}: `https://w3id.org/security#Multikey`.
|
|
14427
14874
|
*/
|
|
@@ -14794,6 +15241,7 @@ var Multikey = class {
|
|
|
14794
15241
|
if (!values["@type"].includes("https://w3id.org/security#Multikey")) throw new TypeError("Invalid type: " + values["@type"]);
|
|
14795
15242
|
}
|
|
14796
15243
|
const instance = new this({ id: values["@id"] != null && !values["@id"].startsWith("_:") && URL.canParse(values["@id"], options.baseUrl) ? new URL(values["@id"], options.baseUrl) : void 0 }, options);
|
|
15244
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
14797
15245
|
const _2yr3eUBTP6cNcyaxKzAXWjFsnGzN_controller = [];
|
|
14798
15246
|
let _2yr3eUBTP6cNcyaxKzAXWjFsnGzN_controller__array = values["https://w3id.org/security#controller"];
|
|
14799
15247
|
for (const v of _2yr3eUBTP6cNcyaxKzAXWjFsnGzN_controller__array == null ? [] : _2yr3eUBTP6cNcyaxKzAXWjFsnGzN_controller__array.length === 1 && "@list" in _2yr3eUBTP6cNcyaxKzAXWjFsnGzN_controller__array[0] ? _2yr3eUBTP6cNcyaxKzAXWjFsnGzN_controller__array[0]["@list"] : _2yr3eUBTP6cNcyaxKzAXWjFsnGzN_controller__array) {
|
|
@@ -14819,7 +15267,11 @@ var Multikey = class {
|
|
|
14819
15267
|
...options,
|
|
14820
15268
|
baseUrl: options.baseUrl
|
|
14821
15269
|
}) : void 0;
|
|
14822
|
-
if (typeof decoded === "undefined")
|
|
15270
|
+
if (typeof decoded === "undefined") {
|
|
15271
|
+
shouldCacheJsonLd = false;
|
|
15272
|
+
continue;
|
|
15273
|
+
}
|
|
15274
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
14823
15275
|
_2yr3eUBTP6cNcyaxKzAXWjFsnGzN_controller.push(decoded);
|
|
14824
15276
|
}
|
|
14825
15277
|
instance.#_2yr3eUBTP6cNcyaxKzAXWjFsnGzN_controller = _2yr3eUBTP6cNcyaxKzAXWjFsnGzN_controller;
|
|
@@ -14828,11 +15280,16 @@ var Multikey = class {
|
|
|
14828
15280
|
for (const v of _4XLHbsR2gLVWU3NpEqKt9wANzn4F_publicKeyMultibase__array == null ? [] : _4XLHbsR2gLVWU3NpEqKt9wANzn4F_publicKeyMultibase__array.length === 1 && "@list" in _4XLHbsR2gLVWU3NpEqKt9wANzn4F_publicKeyMultibase__array[0] ? _4XLHbsR2gLVWU3NpEqKt9wANzn4F_publicKeyMultibase__array[0]["@list"] : _4XLHbsR2gLVWU3NpEqKt9wANzn4F_publicKeyMultibase__array) {
|
|
14829
15281
|
if (v == null) continue;
|
|
14830
15282
|
const decoded = await importMultibaseKey(v["@value"]);
|
|
14831
|
-
if (typeof decoded === "undefined")
|
|
15283
|
+
if (typeof decoded === "undefined") {
|
|
15284
|
+
shouldCacheJsonLd = false;
|
|
15285
|
+
continue;
|
|
15286
|
+
}
|
|
15287
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
14832
15288
|
_4XLHbsR2gLVWU3NpEqKt9wANzn4F_publicKeyMultibase.push(decoded);
|
|
14833
15289
|
}
|
|
14834
15290
|
instance.#_4XLHbsR2gLVWU3NpEqKt9wANzn4F_publicKeyMultibase = _4XLHbsR2gLVWU3NpEqKt9wANzn4F_publicKeyMultibase;
|
|
14835
|
-
|
|
15291
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
15292
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
14836
15293
|
instance._cachedJsonLd = structuredClone(json);
|
|
14837
15294
|
} catch {
|
|
14838
15295
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -15127,6 +15584,7 @@ var Agreement = class Agreement extends Object$1 {
|
|
|
15127
15584
|
_fromSubclass: true
|
|
15128
15585
|
});
|
|
15129
15586
|
if (!(instance instanceof Agreement)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
15587
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
15130
15588
|
const _37zeAJ2NVyecrDdP8os69FGAn9Q6_stipulates = [];
|
|
15131
15589
|
let _37zeAJ2NVyecrDdP8os69FGAn9Q6_stipulates__array = values["https://w3id.org/valueflows/ont/vf#stipulates"];
|
|
15132
15590
|
for (const v of _37zeAJ2NVyecrDdP8os69FGAn9Q6_stipulates__array == null ? [] : _37zeAJ2NVyecrDdP8os69FGAn9Q6_stipulates__array.length === 1 && "@list" in _37zeAJ2NVyecrDdP8os69FGAn9Q6_stipulates__array[0] ? _37zeAJ2NVyecrDdP8os69FGAn9Q6_stipulates__array[0]["@list"] : _37zeAJ2NVyecrDdP8os69FGAn9Q6_stipulates__array) {
|
|
@@ -15135,7 +15593,11 @@ var Agreement = class Agreement extends Object$1 {
|
|
|
15135
15593
|
...options,
|
|
15136
15594
|
baseUrl: options.baseUrl
|
|
15137
15595
|
});
|
|
15138
|
-
if (typeof decoded === "undefined")
|
|
15596
|
+
if (typeof decoded === "undefined") {
|
|
15597
|
+
shouldCacheJsonLd = false;
|
|
15598
|
+
continue;
|
|
15599
|
+
}
|
|
15600
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
15139
15601
|
_37zeAJ2NVyecrDdP8os69FGAn9Q6_stipulates.push(decoded);
|
|
15140
15602
|
}
|
|
15141
15603
|
instance.#_37zeAJ2NVyecrDdP8os69FGAn9Q6_stipulates = _37zeAJ2NVyecrDdP8os69FGAn9Q6_stipulates;
|
|
@@ -15147,11 +15609,16 @@ var Agreement = class Agreement extends Object$1 {
|
|
|
15147
15609
|
...options,
|
|
15148
15610
|
baseUrl: options.baseUrl
|
|
15149
15611
|
});
|
|
15150
|
-
if (typeof decoded === "undefined")
|
|
15612
|
+
if (typeof decoded === "undefined") {
|
|
15613
|
+
shouldCacheJsonLd = false;
|
|
15614
|
+
continue;
|
|
15615
|
+
}
|
|
15616
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
15151
15617
|
_4Vhx9DcywF65XWUQ4KZ35475FaJm_stipulatesReciprocal.push(decoded);
|
|
15152
15618
|
}
|
|
15153
15619
|
instance.#_4Vhx9DcywF65XWUQ4KZ35475FaJm_stipulatesReciprocal = _4Vhx9DcywF65XWUQ4KZ35475FaJm_stipulatesReciprocal;
|
|
15154
|
-
|
|
15620
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
15621
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
15155
15622
|
instance._cachedJsonLd = structuredClone(json);
|
|
15156
15623
|
} catch {
|
|
15157
15624
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -15191,6 +15658,7 @@ var Commitment = class {
|
|
|
15191
15658
|
#warning;
|
|
15192
15659
|
#cachedJsonLd;
|
|
15193
15660
|
#_baseUrl;
|
|
15661
|
+
#shouldCacheJsonLd = true;
|
|
15194
15662
|
id;
|
|
15195
15663
|
get _documentLoader() {
|
|
15196
15664
|
return this.#documentLoader;
|
|
@@ -15213,6 +15681,17 @@ var Commitment = class {
|
|
|
15213
15681
|
get _baseUrl() {
|
|
15214
15682
|
return this.#_baseUrl;
|
|
15215
15683
|
}
|
|
15684
|
+
get _shouldCacheJsonLd() {
|
|
15685
|
+
return this.#shouldCacheJsonLd;
|
|
15686
|
+
}
|
|
15687
|
+
set _shouldCacheJsonLd(value) {
|
|
15688
|
+
this.#shouldCacheJsonLd = value;
|
|
15689
|
+
}
|
|
15690
|
+
static _shouldCacheDecodedJsonLd(value) {
|
|
15691
|
+
if (value == null || typeof value !== "object") return true;
|
|
15692
|
+
if (!("_shouldCacheJsonLd" in value)) return true;
|
|
15693
|
+
return value._shouldCacheJsonLd;
|
|
15694
|
+
}
|
|
15216
15695
|
/**
|
|
15217
15696
|
* The type URI of {@link Commitment}: `https://w3id.org/valueflows/ont/vf#Commitment`.
|
|
15218
15697
|
*/
|
|
@@ -15423,12 +15902,17 @@ var Commitment = class {
|
|
|
15423
15902
|
if (!values["@type"].includes("https://w3id.org/valueflows/ont/vf#Commitment")) throw new TypeError("Invalid type: " + values["@type"]);
|
|
15424
15903
|
}
|
|
15425
15904
|
const instance = new this({ id: values["@id"] != null && !values["@id"].startsWith("_:") && URL.canParse(values["@id"], options.baseUrl) ? new URL(values["@id"], options.baseUrl) : void 0 }, options);
|
|
15905
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
15426
15906
|
const _aCyzDK9TkXtLxrZs7JC8emuYisv_satisfies = [];
|
|
15427
15907
|
let _aCyzDK9TkXtLxrZs7JC8emuYisv_satisfies__array = values["https://w3id.org/valueflows/ont/vf#satisfies"];
|
|
15428
15908
|
for (const v of _aCyzDK9TkXtLxrZs7JC8emuYisv_satisfies__array == null ? [] : _aCyzDK9TkXtLxrZs7JC8emuYisv_satisfies__array.length === 1 && "@list" in _aCyzDK9TkXtLxrZs7JC8emuYisv_satisfies__array[0] ? _aCyzDK9TkXtLxrZs7JC8emuYisv_satisfies__array[0]["@list"] : _aCyzDK9TkXtLxrZs7JC8emuYisv_satisfies__array) {
|
|
15429
15909
|
if (v == null) continue;
|
|
15430
15910
|
const decoded = v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].includes("/", 5) ? v["@id"].slice(5, v["@id"].indexOf("/", 5)) : v["@id"].slice(5)) + (v["@id"].includes("/", 5) ? v["@id"].slice(v["@id"].indexOf("/", 5)) : "")) : URL.canParse(v["@id"]) && options.baseUrl ? new URL(v["@id"]) : new URL(v["@id"], options.baseUrl);
|
|
15431
|
-
if (typeof decoded === "undefined")
|
|
15911
|
+
if (typeof decoded === "undefined") {
|
|
15912
|
+
shouldCacheJsonLd = false;
|
|
15913
|
+
continue;
|
|
15914
|
+
}
|
|
15915
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
15432
15916
|
_aCyzDK9TkXtLxrZs7JC8emuYisv_satisfies.push(decoded);
|
|
15433
15917
|
}
|
|
15434
15918
|
instance.#_aCyzDK9TkXtLxrZs7JC8emuYisv_satisfies = _aCyzDK9TkXtLxrZs7JC8emuYisv_satisfies;
|
|
@@ -15440,11 +15924,16 @@ var Commitment = class {
|
|
|
15440
15924
|
...options,
|
|
15441
15925
|
baseUrl: options.baseUrl
|
|
15442
15926
|
});
|
|
15443
|
-
if (typeof decoded === "undefined")
|
|
15927
|
+
if (typeof decoded === "undefined") {
|
|
15928
|
+
shouldCacheJsonLd = false;
|
|
15929
|
+
continue;
|
|
15930
|
+
}
|
|
15931
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
15444
15932
|
_2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity.push(decoded);
|
|
15445
15933
|
}
|
|
15446
15934
|
instance.#_2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity = _2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity;
|
|
15447
|
-
|
|
15935
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
15936
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
15448
15937
|
instance._cachedJsonLd = structuredClone(json);
|
|
15449
15938
|
} catch {
|
|
15450
15939
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -15486,6 +15975,7 @@ var Intent = class {
|
|
|
15486
15975
|
#warning;
|
|
15487
15976
|
#cachedJsonLd;
|
|
15488
15977
|
#_baseUrl;
|
|
15978
|
+
#shouldCacheJsonLd = true;
|
|
15489
15979
|
id;
|
|
15490
15980
|
get _documentLoader() {
|
|
15491
15981
|
return this.#documentLoader;
|
|
@@ -15508,6 +15998,17 @@ var Intent = class {
|
|
|
15508
15998
|
get _baseUrl() {
|
|
15509
15999
|
return this.#_baseUrl;
|
|
15510
16000
|
}
|
|
16001
|
+
get _shouldCacheJsonLd() {
|
|
16002
|
+
return this.#shouldCacheJsonLd;
|
|
16003
|
+
}
|
|
16004
|
+
set _shouldCacheJsonLd(value) {
|
|
16005
|
+
this.#shouldCacheJsonLd = value;
|
|
16006
|
+
}
|
|
16007
|
+
static _shouldCacheDecodedJsonLd(value) {
|
|
16008
|
+
if (value == null || typeof value !== "object") return true;
|
|
16009
|
+
if (!("_shouldCacheJsonLd" in value)) return true;
|
|
16010
|
+
return value._shouldCacheJsonLd;
|
|
16011
|
+
}
|
|
15511
16012
|
/**
|
|
15512
16013
|
* The type URI of {@link Intent}: `https://w3id.org/valueflows/ont/vf#Intent`.
|
|
15513
16014
|
*/
|
|
@@ -15802,12 +16303,17 @@ var Intent = class {
|
|
|
15802
16303
|
if (!values["@type"].includes("https://w3id.org/valueflows/ont/vf#Intent")) throw new TypeError("Invalid type: " + values["@type"]);
|
|
15803
16304
|
}
|
|
15804
16305
|
const instance = new this({ id: values["@id"] != null && !values["@id"].startsWith("_:") && URL.canParse(values["@id"], options.baseUrl) ? new URL(values["@id"], options.baseUrl) : void 0 }, options);
|
|
16306
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
15805
16307
|
const _38VmZKmXJSBy3AvgqNa9GVqbdphy_action = [];
|
|
15806
16308
|
let _38VmZKmXJSBy3AvgqNa9GVqbdphy_action__array = values["https://w3id.org/valueflows/ont/vf#action"];
|
|
15807
16309
|
for (const v of _38VmZKmXJSBy3AvgqNa9GVqbdphy_action__array == null ? [] : _38VmZKmXJSBy3AvgqNa9GVqbdphy_action__array.length === 1 && "@list" in _38VmZKmXJSBy3AvgqNa9GVqbdphy_action__array[0] ? _38VmZKmXJSBy3AvgqNa9GVqbdphy_action__array[0]["@list"] : _38VmZKmXJSBy3AvgqNa9GVqbdphy_action__array) {
|
|
15808
16310
|
if (v == null) continue;
|
|
15809
16311
|
const decoded = v["@value"];
|
|
15810
|
-
if (typeof decoded === "undefined")
|
|
16312
|
+
if (typeof decoded === "undefined") {
|
|
16313
|
+
shouldCacheJsonLd = false;
|
|
16314
|
+
continue;
|
|
16315
|
+
}
|
|
16316
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
15811
16317
|
_38VmZKmXJSBy3AvgqNa9GVqbdphy_action.push(decoded);
|
|
15812
16318
|
}
|
|
15813
16319
|
instance.#_38VmZKmXJSBy3AvgqNa9GVqbdphy_action = _38VmZKmXJSBy3AvgqNa9GVqbdphy_action;
|
|
@@ -15816,7 +16322,11 @@ var Intent = class {
|
|
|
15816
16322
|
for (const v of _BBAeMUUQDwBQn6cvu3P2Csd6b6h_resourceConformsTo__array == null ? [] : _BBAeMUUQDwBQn6cvu3P2Csd6b6h_resourceConformsTo__array.length === 1 && "@list" in _BBAeMUUQDwBQn6cvu3P2Csd6b6h_resourceConformsTo__array[0] ? _BBAeMUUQDwBQn6cvu3P2Csd6b6h_resourceConformsTo__array[0]["@list"] : _BBAeMUUQDwBQn6cvu3P2Csd6b6h_resourceConformsTo__array) {
|
|
15817
16323
|
if (v == null) continue;
|
|
15818
16324
|
const decoded = v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].includes("/", 5) ? v["@id"].slice(5, v["@id"].indexOf("/", 5)) : v["@id"].slice(5)) + (v["@id"].includes("/", 5) ? v["@id"].slice(v["@id"].indexOf("/", 5)) : "")) : URL.canParse(v["@id"]) && options.baseUrl ? new URL(v["@id"]) : new URL(v["@id"], options.baseUrl);
|
|
15819
|
-
if (typeof decoded === "undefined")
|
|
16325
|
+
if (typeof decoded === "undefined") {
|
|
16326
|
+
shouldCacheJsonLd = false;
|
|
16327
|
+
continue;
|
|
16328
|
+
}
|
|
16329
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
15820
16330
|
_BBAeMUUQDwBQn6cvu3P2Csd6b6h_resourceConformsTo.push(decoded);
|
|
15821
16331
|
}
|
|
15822
16332
|
instance.#_BBAeMUUQDwBQn6cvu3P2Csd6b6h_resourceConformsTo = _BBAeMUUQDwBQn6cvu3P2Csd6b6h_resourceConformsTo;
|
|
@@ -15828,7 +16338,11 @@ var Intent = class {
|
|
|
15828
16338
|
...options,
|
|
15829
16339
|
baseUrl: options.baseUrl
|
|
15830
16340
|
});
|
|
15831
|
-
if (typeof decoded === "undefined")
|
|
16341
|
+
if (typeof decoded === "undefined") {
|
|
16342
|
+
shouldCacheJsonLd = false;
|
|
16343
|
+
continue;
|
|
16344
|
+
}
|
|
16345
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
15832
16346
|
_2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity.push(decoded);
|
|
15833
16347
|
}
|
|
15834
16348
|
instance.#_2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity = _2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity;
|
|
@@ -15840,7 +16354,11 @@ var Intent = class {
|
|
|
15840
16354
|
...options,
|
|
15841
16355
|
baseUrl: options.baseUrl
|
|
15842
16356
|
});
|
|
15843
|
-
if (typeof decoded === "undefined")
|
|
16357
|
+
if (typeof decoded === "undefined") {
|
|
16358
|
+
shouldCacheJsonLd = false;
|
|
16359
|
+
continue;
|
|
16360
|
+
}
|
|
16361
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
15844
16362
|
_YmNSnuih3Zk4VdR5JPVnQYroLAh_availableQuantity.push(decoded);
|
|
15845
16363
|
}
|
|
15846
16364
|
instance.#_YmNSnuih3Zk4VdR5JPVnQYroLAh_availableQuantity = _YmNSnuih3Zk4VdR5JPVnQYroLAh_availableQuantity;
|
|
@@ -15852,11 +16370,16 @@ var Intent = class {
|
|
|
15852
16370
|
...options,
|
|
15853
16371
|
baseUrl: options.baseUrl
|
|
15854
16372
|
});
|
|
15855
|
-
if (typeof decoded === "undefined")
|
|
16373
|
+
if (typeof decoded === "undefined") {
|
|
16374
|
+
shouldCacheJsonLd = false;
|
|
16375
|
+
continue;
|
|
16376
|
+
}
|
|
16377
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
15856
16378
|
_3XueAFds2NBrqNpnV8b7aC8hV72S_minimumQuantity.push(decoded);
|
|
15857
16379
|
}
|
|
15858
16380
|
instance.#_3XueAFds2NBrqNpnV8b7aC8hV72S_minimumQuantity = _3XueAFds2NBrqNpnV8b7aC8hV72S_minimumQuantity;
|
|
15859
|
-
|
|
16381
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
16382
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
15860
16383
|
instance._cachedJsonLd = structuredClone(json);
|
|
15861
16384
|
} catch {
|
|
15862
16385
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -16225,12 +16748,17 @@ var Proposal = class Proposal extends Object$1 {
|
|
|
16225
16748
|
_fromSubclass: true
|
|
16226
16749
|
});
|
|
16227
16750
|
if (!(instance instanceof Proposal)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
16751
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
16228
16752
|
const _4wb2xgUBheR2gaD2Se8QBH4LEC7_purpose = [];
|
|
16229
16753
|
let _4wb2xgUBheR2gaD2Se8QBH4LEC7_purpose__array = values["https://w3id.org/valueflows/ont/vf#purpose"];
|
|
16230
16754
|
for (const v of _4wb2xgUBheR2gaD2Se8QBH4LEC7_purpose__array == null ? [] : _4wb2xgUBheR2gaD2Se8QBH4LEC7_purpose__array.length === 1 && "@list" in _4wb2xgUBheR2gaD2Se8QBH4LEC7_purpose__array[0] ? _4wb2xgUBheR2gaD2Se8QBH4LEC7_purpose__array[0]["@list"] : _4wb2xgUBheR2gaD2Se8QBH4LEC7_purpose__array) {
|
|
16231
16755
|
if (v == null) continue;
|
|
16232
16756
|
const decoded = v["@value"];
|
|
16233
|
-
if (typeof decoded === "undefined")
|
|
16757
|
+
if (typeof decoded === "undefined") {
|
|
16758
|
+
shouldCacheJsonLd = false;
|
|
16759
|
+
continue;
|
|
16760
|
+
}
|
|
16761
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
16234
16762
|
_4wb2xgUBheR2gaD2Se8QBH4LEC7_purpose.push(decoded);
|
|
16235
16763
|
}
|
|
16236
16764
|
instance.#_4wb2xgUBheR2gaD2Se8QBH4LEC7_purpose = _4wb2xgUBheR2gaD2Se8QBH4LEC7_purpose;
|
|
@@ -16242,7 +16770,11 @@ var Proposal = class Proposal extends Object$1 {
|
|
|
16242
16770
|
...options,
|
|
16243
16771
|
baseUrl: options.baseUrl
|
|
16244
16772
|
});
|
|
16245
|
-
if (typeof decoded === "undefined")
|
|
16773
|
+
if (typeof decoded === "undefined") {
|
|
16774
|
+
shouldCacheJsonLd = false;
|
|
16775
|
+
continue;
|
|
16776
|
+
}
|
|
16777
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
16246
16778
|
_sS5LvXX8cn4c3x6ux836AwYbTyJ_publishes.push(decoded);
|
|
16247
16779
|
}
|
|
16248
16780
|
instance.#_sS5LvXX8cn4c3x6ux836AwYbTyJ_publishes = _sS5LvXX8cn4c3x6ux836AwYbTyJ_publishes;
|
|
@@ -16254,7 +16786,11 @@ var Proposal = class Proposal extends Object$1 {
|
|
|
16254
16786
|
...options,
|
|
16255
16787
|
baseUrl: options.baseUrl
|
|
16256
16788
|
});
|
|
16257
|
-
if (typeof decoded === "undefined")
|
|
16789
|
+
if (typeof decoded === "undefined") {
|
|
16790
|
+
shouldCacheJsonLd = false;
|
|
16791
|
+
continue;
|
|
16792
|
+
}
|
|
16793
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
16258
16794
|
_Z4ntJgFwR9BaNTbFvkRTGNEwUwy_reciprocal.push(decoded);
|
|
16259
16795
|
}
|
|
16260
16796
|
instance.#_Z4ntJgFwR9BaNTbFvkRTGNEwUwy_reciprocal = _Z4ntJgFwR9BaNTbFvkRTGNEwUwy_reciprocal;
|
|
@@ -16263,11 +16799,16 @@ var Proposal = class Proposal extends Object$1 {
|
|
|
16263
16799
|
for (const v of _48ncwmfGhSoqAFByMVh2UxoiozPq_unitBased__array == null ? [] : _48ncwmfGhSoqAFByMVh2UxoiozPq_unitBased__array.length === 1 && "@list" in _48ncwmfGhSoqAFByMVh2UxoiozPq_unitBased__array[0] ? _48ncwmfGhSoqAFByMVh2UxoiozPq_unitBased__array[0]["@list"] : _48ncwmfGhSoqAFByMVh2UxoiozPq_unitBased__array) {
|
|
16264
16800
|
if (v == null) continue;
|
|
16265
16801
|
const decoded = v["@value"];
|
|
16266
|
-
if (typeof decoded === "undefined")
|
|
16802
|
+
if (typeof decoded === "undefined") {
|
|
16803
|
+
shouldCacheJsonLd = false;
|
|
16804
|
+
continue;
|
|
16805
|
+
}
|
|
16806
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
16267
16807
|
_48ncwmfGhSoqAFByMVh2UxoiozPq_unitBased.push(decoded);
|
|
16268
16808
|
}
|
|
16269
16809
|
instance.#_48ncwmfGhSoqAFByMVh2UxoiozPq_unitBased = _48ncwmfGhSoqAFByMVh2UxoiozPq_unitBased;
|
|
16270
|
-
|
|
16810
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
16811
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
16271
16812
|
instance._cachedJsonLd = structuredClone(json);
|
|
16272
16813
|
} catch {
|
|
16273
16814
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -16440,7 +16981,9 @@ var Accept = class Accept extends Activity {
|
|
|
16440
16981
|
_fromSubclass: true
|
|
16441
16982
|
});
|
|
16442
16983
|
if (!(instance instanceof Accept)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
16443
|
-
|
|
16984
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
16985
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
16986
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
16444
16987
|
instance._cachedJsonLd = structuredClone(json);
|
|
16445
16988
|
} catch {
|
|
16446
16989
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -16592,7 +17135,9 @@ var Add = class Add extends Activity {
|
|
|
16592
17135
|
_fromSubclass: true
|
|
16593
17136
|
});
|
|
16594
17137
|
if (!(instance instanceof Add)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
16595
|
-
|
|
17138
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
17139
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
17140
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
16596
17141
|
instance._cachedJsonLd = structuredClone(json);
|
|
16597
17142
|
} catch {
|
|
16598
17143
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -16772,7 +17317,9 @@ var Announce = class Announce extends Activity {
|
|
|
16772
17317
|
_fromSubclass: true
|
|
16773
17318
|
});
|
|
16774
17319
|
if (!(instance instanceof Announce)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
16775
|
-
|
|
17320
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
17321
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
17322
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
16776
17323
|
instance._cachedJsonLd = structuredClone(json);
|
|
16777
17324
|
} catch {
|
|
16778
17325
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -19691,12 +20238,17 @@ var Application = class Application extends Object$1 {
|
|
|
19691
20238
|
_fromSubclass: true
|
|
19692
20239
|
});
|
|
19693
20240
|
if (!(instance instanceof Application)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
20241
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
19694
20242
|
const _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = [];
|
|
19695
20243
|
let _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername__array = values["https://www.w3.org/ns/activitystreams#preferredUsername"];
|
|
19696
20244
|
for (const v of _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername__array == null ? [] : _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername__array.length === 1 && "@list" in _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername__array[0] ? _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername__array[0]["@list"] : _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername__array) {
|
|
19697
20245
|
if (v == null) continue;
|
|
19698
|
-
const decoded = typeof v === "object" && "@value" in v && typeof v["@value"] === "string" && !("@language" in v) ? v["@value"] : typeof v === "object" && "@language" in v && "@value" in v && typeof v["@language"] === "string" && typeof v["@value"] === "string" ? new LanguageString$1(v["@value"], v["@language"]) : void 0;
|
|
19699
|
-
if (typeof decoded === "undefined")
|
|
20246
|
+
const decoded = typeof v === "object" && "@value" in v && typeof v["@value"] === "string" && !("@language" in v) ? v["@value"] : typeof v === "object" && "@language" in v && "@value" in v && typeof v["@language"] === "string" && typeof v["@value"] === "string" && isValidLanguageTag(v["@language"]) ? new LanguageString$1(v["@value"], v["@language"]) : void 0;
|
|
20247
|
+
if (typeof decoded === "undefined") {
|
|
20248
|
+
shouldCacheJsonLd = false;
|
|
20249
|
+
continue;
|
|
20250
|
+
}
|
|
20251
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
19700
20252
|
_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername.push(decoded);
|
|
19701
20253
|
}
|
|
19702
20254
|
instance.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername;
|
|
@@ -19713,7 +20265,11 @@ var Application = class Application extends Object$1 {
|
|
|
19713
20265
|
...options,
|
|
19714
20266
|
baseUrl: options.baseUrl
|
|
19715
20267
|
});
|
|
19716
|
-
if (typeof decoded === "undefined")
|
|
20268
|
+
if (typeof decoded === "undefined") {
|
|
20269
|
+
shouldCacheJsonLd = false;
|
|
20270
|
+
continue;
|
|
20271
|
+
}
|
|
20272
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
19717
20273
|
_axq166E2eZADq34V4MYUc8KMZdC_publicKey.push(decoded);
|
|
19718
20274
|
}
|
|
19719
20275
|
instance.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = _axq166E2eZADq34V4MYUc8KMZdC_publicKey;
|
|
@@ -19730,7 +20286,11 @@ var Application = class Application extends Object$1 {
|
|
|
19730
20286
|
...options,
|
|
19731
20287
|
baseUrl: options.baseUrl
|
|
19732
20288
|
});
|
|
19733
|
-
if (typeof decoded === "undefined")
|
|
20289
|
+
if (typeof decoded === "undefined") {
|
|
20290
|
+
shouldCacheJsonLd = false;
|
|
20291
|
+
continue;
|
|
20292
|
+
}
|
|
20293
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
19734
20294
|
_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(decoded);
|
|
19735
20295
|
}
|
|
19736
20296
|
instance.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod;
|
|
@@ -19739,7 +20299,11 @@ var Application = class Application extends Object$1 {
|
|
|
19739
20299
|
for (const v of _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers__array == null ? [] : _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers__array.length === 1 && "@list" in _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers__array[0] ? _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers__array[0]["@list"] : _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers__array) {
|
|
19740
20300
|
if (v == null) continue;
|
|
19741
20301
|
const decoded = v["@value"];
|
|
19742
|
-
if (typeof decoded === "undefined")
|
|
20302
|
+
if (typeof decoded === "undefined") {
|
|
20303
|
+
shouldCacheJsonLd = false;
|
|
20304
|
+
continue;
|
|
20305
|
+
}
|
|
20306
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
19743
20307
|
_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers.push(decoded);
|
|
19744
20308
|
}
|
|
19745
20309
|
instance.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers;
|
|
@@ -19759,7 +20323,11 @@ var Application = class Application extends Object$1 {
|
|
|
19759
20323
|
...options,
|
|
19760
20324
|
baseUrl: options.baseUrl
|
|
19761
20325
|
}) : void 0;
|
|
19762
|
-
if (typeof decoded === "undefined")
|
|
20326
|
+
if (typeof decoded === "undefined") {
|
|
20327
|
+
shouldCacheJsonLd = false;
|
|
20328
|
+
continue;
|
|
20329
|
+
}
|
|
20330
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
19763
20331
|
_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox.push(decoded);
|
|
19764
20332
|
}
|
|
19765
20333
|
instance.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = _3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox;
|
|
@@ -19779,7 +20347,11 @@ var Application = class Application extends Object$1 {
|
|
|
19779
20347
|
...options,
|
|
19780
20348
|
baseUrl: options.baseUrl
|
|
19781
20349
|
}) : void 0;
|
|
19782
|
-
if (typeof decoded === "undefined")
|
|
20350
|
+
if (typeof decoded === "undefined") {
|
|
20351
|
+
shouldCacheJsonLd = false;
|
|
20352
|
+
continue;
|
|
20353
|
+
}
|
|
20354
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
19783
20355
|
_41QwhqJouoLg3h8dRPKat21brynC_outbox.push(decoded);
|
|
19784
20356
|
}
|
|
19785
20357
|
instance.#_41QwhqJouoLg3h8dRPKat21brynC_outbox = _41QwhqJouoLg3h8dRPKat21brynC_outbox;
|
|
@@ -19796,7 +20368,11 @@ var Application = class Application extends Object$1 {
|
|
|
19796
20368
|
...options,
|
|
19797
20369
|
baseUrl: options.baseUrl
|
|
19798
20370
|
});
|
|
19799
|
-
if (typeof decoded === "undefined")
|
|
20371
|
+
if (typeof decoded === "undefined") {
|
|
20372
|
+
shouldCacheJsonLd = false;
|
|
20373
|
+
continue;
|
|
20374
|
+
}
|
|
20375
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
19800
20376
|
_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.push(decoded);
|
|
19801
20377
|
}
|
|
19802
20378
|
instance.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = _3yAv8jymNfNuJUDuBzJ1NQhdbAee_following;
|
|
@@ -19813,7 +20389,11 @@ var Application = class Application extends Object$1 {
|
|
|
19813
20389
|
...options,
|
|
19814
20390
|
baseUrl: options.baseUrl
|
|
19815
20391
|
});
|
|
19816
|
-
if (typeof decoded === "undefined")
|
|
20392
|
+
if (typeof decoded === "undefined") {
|
|
20393
|
+
shouldCacheJsonLd = false;
|
|
20394
|
+
continue;
|
|
20395
|
+
}
|
|
20396
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
19817
20397
|
_BBCTgfphhsFzpVfKTykGSpBNwoA_followers.push(decoded);
|
|
19818
20398
|
}
|
|
19819
20399
|
instance.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = _BBCTgfphhsFzpVfKTykGSpBNwoA_followers;
|
|
@@ -19830,7 +20410,11 @@ var Application = class Application extends Object$1 {
|
|
|
19830
20410
|
...options,
|
|
19831
20411
|
baseUrl: options.baseUrl
|
|
19832
20412
|
});
|
|
19833
|
-
if (typeof decoded === "undefined")
|
|
20413
|
+
if (typeof decoded === "undefined") {
|
|
20414
|
+
shouldCacheJsonLd = false;
|
|
20415
|
+
continue;
|
|
20416
|
+
}
|
|
20417
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
19834
20418
|
_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.push(decoded);
|
|
19835
20419
|
}
|
|
19836
20420
|
instance.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = _3bgkPwJanyTCoVFM9ovRcus8tKkU_liked;
|
|
@@ -19847,7 +20431,11 @@ var Application = class Application extends Object$1 {
|
|
|
19847
20431
|
...options,
|
|
19848
20432
|
baseUrl: options.baseUrl
|
|
19849
20433
|
});
|
|
19850
|
-
if (typeof decoded === "undefined")
|
|
20434
|
+
if (typeof decoded === "undefined") {
|
|
20435
|
+
shouldCacheJsonLd = false;
|
|
20436
|
+
continue;
|
|
20437
|
+
}
|
|
20438
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
19851
20439
|
_4N1vBJzXDf8NbBumeECQMFvKetja_featured.push(decoded);
|
|
19852
20440
|
}
|
|
19853
20441
|
instance.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured = _4N1vBJzXDf8NbBumeECQMFvKetja_featured;
|
|
@@ -19864,7 +20452,11 @@ var Application = class Application extends Object$1 {
|
|
|
19864
20452
|
...options,
|
|
19865
20453
|
baseUrl: options.baseUrl
|
|
19866
20454
|
});
|
|
19867
|
-
if (typeof decoded === "undefined")
|
|
20455
|
+
if (typeof decoded === "undefined") {
|
|
20456
|
+
shouldCacheJsonLd = false;
|
|
20457
|
+
continue;
|
|
20458
|
+
}
|
|
20459
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
19868
20460
|
_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.push(decoded);
|
|
19869
20461
|
}
|
|
19870
20462
|
instance.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = _2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags;
|
|
@@ -19881,7 +20473,11 @@ var Application = class Application extends Object$1 {
|
|
|
19881
20473
|
...options,
|
|
19882
20474
|
baseUrl: options.baseUrl
|
|
19883
20475
|
});
|
|
19884
|
-
if (typeof decoded === "undefined")
|
|
20476
|
+
if (typeof decoded === "undefined") {
|
|
20477
|
+
shouldCacheJsonLd = false;
|
|
20478
|
+
continue;
|
|
20479
|
+
}
|
|
20480
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
19885
20481
|
_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.push(decoded);
|
|
19886
20482
|
}
|
|
19887
20483
|
instance.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = _3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams;
|
|
@@ -19893,7 +20489,11 @@ var Application = class Application extends Object$1 {
|
|
|
19893
20489
|
...options,
|
|
19894
20490
|
baseUrl: options.baseUrl
|
|
19895
20491
|
});
|
|
19896
|
-
if (typeof decoded === "undefined")
|
|
20492
|
+
if (typeof decoded === "undefined") {
|
|
20493
|
+
shouldCacheJsonLd = false;
|
|
20494
|
+
continue;
|
|
20495
|
+
}
|
|
20496
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
19897
20497
|
_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.push(decoded);
|
|
19898
20498
|
}
|
|
19899
20499
|
instance.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints;
|
|
@@ -19902,7 +20502,11 @@ var Application = class Application extends Object$1 {
|
|
|
19902
20502
|
for (const v of _gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable__array == null ? [] : _gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable__array.length === 1 && "@list" in _gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable__array[0] ? _gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable__array[0]["@list"] : _gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable__array) {
|
|
19903
20503
|
if (v == null) continue;
|
|
19904
20504
|
const decoded = v["@value"];
|
|
19905
|
-
if (typeof decoded === "undefined")
|
|
20505
|
+
if (typeof decoded === "undefined") {
|
|
20506
|
+
shouldCacheJsonLd = false;
|
|
20507
|
+
continue;
|
|
20508
|
+
}
|
|
20509
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
19906
20510
|
_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable.push(decoded);
|
|
19907
20511
|
}
|
|
19908
20512
|
instance.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = _gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable;
|
|
@@ -19911,7 +20515,11 @@ var Application = class Application extends Object$1 {
|
|
|
19911
20515
|
for (const v of _2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended__array == null ? [] : _2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended__array.length === 1 && "@list" in _2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended__array[0] ? _2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended__array[0]["@list"] : _2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended__array) {
|
|
19912
20516
|
if (v == null) continue;
|
|
19913
20517
|
const decoded = v["@value"];
|
|
19914
|
-
if (typeof decoded === "undefined")
|
|
20518
|
+
if (typeof decoded === "undefined") {
|
|
20519
|
+
shouldCacheJsonLd = false;
|
|
20520
|
+
continue;
|
|
20521
|
+
}
|
|
20522
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
19915
20523
|
_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended.push(decoded);
|
|
19916
20524
|
}
|
|
19917
20525
|
instance.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = _2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended;
|
|
@@ -19920,7 +20528,11 @@ var Application = class Application extends Object$1 {
|
|
|
19920
20528
|
for (const v of _79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial__array == null ? [] : _79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial__array.length === 1 && "@list" in _79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial__array[0] ? _79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial__array[0]["@list"] : _79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial__array) {
|
|
19921
20529
|
if (v == null) continue;
|
|
19922
20530
|
const decoded = v["@value"];
|
|
19923
|
-
if (typeof decoded === "undefined")
|
|
20531
|
+
if (typeof decoded === "undefined") {
|
|
20532
|
+
shouldCacheJsonLd = false;
|
|
20533
|
+
continue;
|
|
20534
|
+
}
|
|
20535
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
19924
20536
|
_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial.push(decoded);
|
|
19925
20537
|
}
|
|
19926
20538
|
instance.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = _79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial;
|
|
@@ -19929,7 +20541,11 @@ var Application = class Application extends Object$1 {
|
|
|
19929
20541
|
for (const v of _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable__array == null ? [] : _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable__array.length === 1 && "@list" in _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable__array[0] ? _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable__array[0]["@list"] : _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable__array) {
|
|
19930
20542
|
if (v == null) continue;
|
|
19931
20543
|
const decoded = v["@value"];
|
|
19932
|
-
if (typeof decoded === "undefined")
|
|
20544
|
+
if (typeof decoded === "undefined") {
|
|
20545
|
+
shouldCacheJsonLd = false;
|
|
20546
|
+
continue;
|
|
20547
|
+
}
|
|
20548
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
19933
20549
|
_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable.push(decoded);
|
|
19934
20550
|
}
|
|
19935
20551
|
instance.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable;
|
|
@@ -19958,7 +20574,11 @@ var Application = class Application extends Object$1 {
|
|
|
19958
20574
|
...options,
|
|
19959
20575
|
baseUrl: options.baseUrl
|
|
19960
20576
|
}) : void 0;
|
|
19961
|
-
if (typeof decoded === "undefined")
|
|
20577
|
+
if (typeof decoded === "undefined") {
|
|
20578
|
+
shouldCacheJsonLd = false;
|
|
20579
|
+
continue;
|
|
20580
|
+
}
|
|
20581
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
19962
20582
|
_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.push(decoded);
|
|
19963
20583
|
}
|
|
19964
20584
|
instance.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = _2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo;
|
|
@@ -19987,7 +20607,11 @@ var Application = class Application extends Object$1 {
|
|
|
19987
20607
|
...options,
|
|
19988
20608
|
baseUrl: options.baseUrl
|
|
19989
20609
|
}) : void 0;
|
|
19990
|
-
if (typeof decoded === "undefined")
|
|
20610
|
+
if (typeof decoded === "undefined") {
|
|
20611
|
+
shouldCacheJsonLd = false;
|
|
20612
|
+
continue;
|
|
20613
|
+
}
|
|
20614
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
19991
20615
|
_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.push(decoded);
|
|
19992
20616
|
}
|
|
19993
20617
|
instance.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = _3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs;
|
|
@@ -20004,7 +20628,11 @@ var Application = class Application extends Object$1 {
|
|
|
20004
20628
|
...options,
|
|
20005
20629
|
baseUrl: options.baseUrl
|
|
20006
20630
|
});
|
|
20007
|
-
if (typeof decoded === "undefined")
|
|
20631
|
+
if (typeof decoded === "undefined") {
|
|
20632
|
+
shouldCacheJsonLd = false;
|
|
20633
|
+
continue;
|
|
20634
|
+
}
|
|
20635
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
20008
20636
|
_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.push(decoded);
|
|
20009
20637
|
}
|
|
20010
20638
|
instance.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = _4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service;
|
|
@@ -20013,7 +20641,11 @@ var Application = class Application extends Object$1 {
|
|
|
20013
20641
|
for (const v of _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage__array == null ? [] : _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage__array.length === 1 && "@list" in _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage__array[0] ? _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage__array[0]["@list"] : _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage__array) {
|
|
20014
20642
|
if (v == null) continue;
|
|
20015
20643
|
const decoded = v["@value"];
|
|
20016
|
-
if (typeof decoded === "undefined")
|
|
20644
|
+
if (typeof decoded === "undefined") {
|
|
20645
|
+
shouldCacheJsonLd = false;
|
|
20646
|
+
continue;
|
|
20647
|
+
}
|
|
20648
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
20017
20649
|
_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage.push(decoded);
|
|
20018
20650
|
}
|
|
20019
20651
|
instance.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage;
|
|
@@ -20022,11 +20654,16 @@ var Application = class Application extends Object$1 {
|
|
|
20022
20654
|
for (const v of _2xEU4QtkC53RAun67T81Egqt9vmL_isCat__array == null ? [] : _2xEU4QtkC53RAun67T81Egqt9vmL_isCat__array.length === 1 && "@list" in _2xEU4QtkC53RAun67T81Egqt9vmL_isCat__array[0] ? _2xEU4QtkC53RAun67T81Egqt9vmL_isCat__array[0]["@list"] : _2xEU4QtkC53RAun67T81Egqt9vmL_isCat__array) {
|
|
20023
20655
|
if (v == null) continue;
|
|
20024
20656
|
const decoded = v["@value"];
|
|
20025
|
-
if (typeof decoded === "undefined")
|
|
20657
|
+
if (typeof decoded === "undefined") {
|
|
20658
|
+
shouldCacheJsonLd = false;
|
|
20659
|
+
continue;
|
|
20660
|
+
}
|
|
20661
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
20026
20662
|
_2xEU4QtkC53RAun67T81Egqt9vmL_isCat.push(decoded);
|
|
20027
20663
|
}
|
|
20028
20664
|
instance.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = _2xEU4QtkC53RAun67T81Egqt9vmL_isCat;
|
|
20029
|
-
|
|
20665
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
20666
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
20030
20667
|
instance._cachedJsonLd = structuredClone(json);
|
|
20031
20668
|
} catch {
|
|
20032
20669
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -20296,7 +20933,9 @@ var IntransitiveActivity = class IntransitiveActivity extends Activity {
|
|
|
20296
20933
|
_fromSubclass: true
|
|
20297
20934
|
});
|
|
20298
20935
|
if (!(instance instanceof IntransitiveActivity)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
20299
|
-
|
|
20936
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
20937
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
20938
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
20300
20939
|
instance._cachedJsonLd = structuredClone(json);
|
|
20301
20940
|
} catch {
|
|
20302
20941
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -20447,7 +21086,9 @@ var Arrive = class Arrive extends IntransitiveActivity {
|
|
|
20447
21086
|
_fromSubclass: true
|
|
20448
21087
|
});
|
|
20449
21088
|
if (!(instance instanceof Arrive)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
20450
|
-
|
|
21089
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
21090
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
21091
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
20451
21092
|
instance._cachedJsonLd = structuredClone(json);
|
|
20452
21093
|
} catch {
|
|
20453
21094
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -21008,6 +21649,7 @@ var Article = class Article extends Object$1 {
|
|
|
21008
21649
|
_fromSubclass: true
|
|
21009
21650
|
});
|
|
21010
21651
|
if (!(instance instanceof Article)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
21652
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
21011
21653
|
const _3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote = [];
|
|
21012
21654
|
let _3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote__array = values["https://w3id.org/fep/044f#quote"];
|
|
21013
21655
|
for (const v of _3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote__array == null ? [] : _3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote__array.length === 1 && "@list" in _3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote__array[0] ? _3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote__array[0]["@list"] : _3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote__array) {
|
|
@@ -21021,7 +21663,11 @@ var Article = class Article extends Object$1 {
|
|
|
21021
21663
|
...options,
|
|
21022
21664
|
baseUrl: options.baseUrl
|
|
21023
21665
|
});
|
|
21024
|
-
if (typeof decoded === "undefined")
|
|
21666
|
+
if (typeof decoded === "undefined") {
|
|
21667
|
+
shouldCacheJsonLd = false;
|
|
21668
|
+
continue;
|
|
21669
|
+
}
|
|
21670
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
21025
21671
|
_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote.push(decoded);
|
|
21026
21672
|
}
|
|
21027
21673
|
instance.#_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote = _3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote;
|
|
@@ -21032,7 +21678,11 @@ var Article = class Article extends Object$1 {
|
|
|
21032
21678
|
for (const v of _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array == null ? [] : _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array.length === 1 && "@list" in _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array[0] ? _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array[0]["@list"] : _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array) {
|
|
21033
21679
|
if (v == null) continue;
|
|
21034
21680
|
const decoded = new URL(v["@value"]);
|
|
21035
|
-
if (typeof decoded === "undefined")
|
|
21681
|
+
if (typeof decoded === "undefined") {
|
|
21682
|
+
shouldCacheJsonLd = false;
|
|
21683
|
+
continue;
|
|
21684
|
+
}
|
|
21685
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
21036
21686
|
_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl.push(decoded);
|
|
21037
21687
|
}
|
|
21038
21688
|
instance.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl = _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl;
|
|
@@ -21049,11 +21699,16 @@ var Article = class Article extends Object$1 {
|
|
|
21049
21699
|
...options,
|
|
21050
21700
|
baseUrl: options.baseUrl
|
|
21051
21701
|
});
|
|
21052
|
-
if (typeof decoded === "undefined")
|
|
21702
|
+
if (typeof decoded === "undefined") {
|
|
21703
|
+
shouldCacheJsonLd = false;
|
|
21704
|
+
continue;
|
|
21705
|
+
}
|
|
21706
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
21053
21707
|
_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization.push(decoded);
|
|
21054
21708
|
}
|
|
21055
21709
|
instance.#_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization = _ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization;
|
|
21056
|
-
|
|
21710
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
21711
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
21057
21712
|
instance._cachedJsonLd = structuredClone(json);
|
|
21058
21713
|
} catch {
|
|
21059
21714
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -21296,12 +21951,17 @@ var Document = class Document extends Object$1 {
|
|
|
21296
21951
|
_fromSubclass: true
|
|
21297
21952
|
});
|
|
21298
21953
|
if (!(instance instanceof Document)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
21954
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
21299
21955
|
const _2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width = [];
|
|
21300
21956
|
let _2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width__array = values["https://www.w3.org/ns/activitystreams#width"];
|
|
21301
21957
|
for (const v of _2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width__array == null ? [] : _2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width__array.length === 1 && "@list" in _2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width__array[0] ? _2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width__array[0]["@list"] : _2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width__array) {
|
|
21302
21958
|
if (v == null) continue;
|
|
21303
21959
|
const decoded = v["@value"];
|
|
21304
|
-
if (typeof decoded === "undefined")
|
|
21960
|
+
if (typeof decoded === "undefined") {
|
|
21961
|
+
shouldCacheJsonLd = false;
|
|
21962
|
+
continue;
|
|
21963
|
+
}
|
|
21964
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
21305
21965
|
_2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width.push(decoded);
|
|
21306
21966
|
}
|
|
21307
21967
|
instance.#_2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width = _2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width;
|
|
@@ -21310,11 +21970,16 @@ var Document = class Document extends Object$1 {
|
|
|
21310
21970
|
for (const v of _2cGKFeFJMmiNpGZFEF75mCwFQsKb_height__array == null ? [] : _2cGKFeFJMmiNpGZFEF75mCwFQsKb_height__array.length === 1 && "@list" in _2cGKFeFJMmiNpGZFEF75mCwFQsKb_height__array[0] ? _2cGKFeFJMmiNpGZFEF75mCwFQsKb_height__array[0]["@list"] : _2cGKFeFJMmiNpGZFEF75mCwFQsKb_height__array) {
|
|
21311
21971
|
if (v == null) continue;
|
|
21312
21972
|
const decoded = v["@value"];
|
|
21313
|
-
if (typeof decoded === "undefined")
|
|
21973
|
+
if (typeof decoded === "undefined") {
|
|
21974
|
+
shouldCacheJsonLd = false;
|
|
21975
|
+
continue;
|
|
21976
|
+
}
|
|
21977
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
21314
21978
|
_2cGKFeFJMmiNpGZFEF75mCwFQsKb_height.push(decoded);
|
|
21315
21979
|
}
|
|
21316
21980
|
instance.#_2cGKFeFJMmiNpGZFEF75mCwFQsKb_height = _2cGKFeFJMmiNpGZFEF75mCwFQsKb_height;
|
|
21317
|
-
|
|
21981
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
21982
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
21318
21983
|
instance._cachedJsonLd = structuredClone(json);
|
|
21319
21984
|
} catch {
|
|
21320
21985
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -21488,7 +22153,9 @@ var Audio = class Audio extends Document {
|
|
|
21488
22153
|
_fromSubclass: true
|
|
21489
22154
|
});
|
|
21490
22155
|
if (!(instance instanceof Audio)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
21491
|
-
|
|
22156
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
22157
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
22158
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
21492
22159
|
instance._cachedJsonLd = structuredClone(json);
|
|
21493
22160
|
} catch {
|
|
21494
22161
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -21639,7 +22306,9 @@ var Ignore = class Ignore extends Activity {
|
|
|
21639
22306
|
_fromSubclass: true
|
|
21640
22307
|
});
|
|
21641
22308
|
if (!(instance instanceof Ignore)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
21642
|
-
|
|
22309
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
22310
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
22311
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
21643
22312
|
instance._cachedJsonLd = structuredClone(json);
|
|
21644
22313
|
} catch {
|
|
21645
22314
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -21791,7 +22460,9 @@ var Block = class Block extends Ignore {
|
|
|
21791
22460
|
_fromSubclass: true
|
|
21792
22461
|
});
|
|
21793
22462
|
if (!(instance instanceof Block)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
21794
|
-
|
|
22463
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
22464
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
22465
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
21795
22466
|
instance._cachedJsonLd = structuredClone(json);
|
|
21796
22467
|
} catch {
|
|
21797
22468
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -23878,12 +24549,17 @@ var Collection = class Collection extends Object$1 {
|
|
|
23878
24549
|
_fromSubclass: true
|
|
23879
24550
|
});
|
|
23880
24551
|
if (!(instance instanceof Collection)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
24552
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
23881
24553
|
const _XDbmNDuWHmrhqH712zqtecdbv1V_totalItems = [];
|
|
23882
24554
|
let _XDbmNDuWHmrhqH712zqtecdbv1V_totalItems__array = values["https://www.w3.org/ns/activitystreams#totalItems"];
|
|
23883
24555
|
for (const v of _XDbmNDuWHmrhqH712zqtecdbv1V_totalItems__array == null ? [] : _XDbmNDuWHmrhqH712zqtecdbv1V_totalItems__array.length === 1 && "@list" in _XDbmNDuWHmrhqH712zqtecdbv1V_totalItems__array[0] ? _XDbmNDuWHmrhqH712zqtecdbv1V_totalItems__array[0]["@list"] : _XDbmNDuWHmrhqH712zqtecdbv1V_totalItems__array) {
|
|
23884
24556
|
if (v == null) continue;
|
|
23885
24557
|
const decoded = v["@value"];
|
|
23886
|
-
if (typeof decoded === "undefined")
|
|
24558
|
+
if (typeof decoded === "undefined") {
|
|
24559
|
+
shouldCacheJsonLd = false;
|
|
24560
|
+
continue;
|
|
24561
|
+
}
|
|
24562
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
23887
24563
|
_XDbmNDuWHmrhqH712zqtecdbv1V_totalItems.push(decoded);
|
|
23888
24564
|
}
|
|
23889
24565
|
instance.#_XDbmNDuWHmrhqH712zqtecdbv1V_totalItems = _XDbmNDuWHmrhqH712zqtecdbv1V_totalItems;
|
|
@@ -23900,7 +24576,11 @@ var Collection = class Collection extends Object$1 {
|
|
|
23900
24576
|
...options,
|
|
23901
24577
|
baseUrl: options.baseUrl
|
|
23902
24578
|
});
|
|
23903
|
-
if (typeof decoded === "undefined")
|
|
24579
|
+
if (typeof decoded === "undefined") {
|
|
24580
|
+
shouldCacheJsonLd = false;
|
|
24581
|
+
continue;
|
|
24582
|
+
}
|
|
24583
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
23904
24584
|
_3UyUdxnyn6cDn53QKrh4MBiearma_current.push(decoded);
|
|
23905
24585
|
}
|
|
23906
24586
|
instance.#_3UyUdxnyn6cDn53QKrh4MBiearma_current = _3UyUdxnyn6cDn53QKrh4MBiearma_current;
|
|
@@ -23917,7 +24597,11 @@ var Collection = class Collection extends Object$1 {
|
|
|
23917
24597
|
...options,
|
|
23918
24598
|
baseUrl: options.baseUrl
|
|
23919
24599
|
});
|
|
23920
|
-
if (typeof decoded === "undefined")
|
|
24600
|
+
if (typeof decoded === "undefined") {
|
|
24601
|
+
shouldCacheJsonLd = false;
|
|
24602
|
+
continue;
|
|
24603
|
+
}
|
|
24604
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
23921
24605
|
_J52RqweMe6hhv7RnLJMC8BExTE5_first.push(decoded);
|
|
23922
24606
|
}
|
|
23923
24607
|
instance.#_J52RqweMe6hhv7RnLJMC8BExTE5_first = _J52RqweMe6hhv7RnLJMC8BExTE5_first;
|
|
@@ -23934,7 +24618,11 @@ var Collection = class Collection extends Object$1 {
|
|
|
23934
24618
|
...options,
|
|
23935
24619
|
baseUrl: options.baseUrl
|
|
23936
24620
|
});
|
|
23937
|
-
if (typeof decoded === "undefined")
|
|
24621
|
+
if (typeof decoded === "undefined") {
|
|
24622
|
+
shouldCacheJsonLd = false;
|
|
24623
|
+
continue;
|
|
24624
|
+
}
|
|
24625
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
23938
24626
|
_gyJJnyEFnuNVi1HFZKfAn3Hfn26_last.push(decoded);
|
|
23939
24627
|
}
|
|
23940
24628
|
instance.#_gyJJnyEFnuNVi1HFZKfAn3Hfn26_last = _gyJJnyEFnuNVi1HFZKfAn3Hfn26_last;
|
|
@@ -24024,7 +24712,11 @@ var Collection = class Collection extends Object$1 {
|
|
|
24024
24712
|
...options,
|
|
24025
24713
|
baseUrl: options.baseUrl
|
|
24026
24714
|
}) : void 0;
|
|
24027
|
-
if (typeof decoded === "undefined")
|
|
24715
|
+
if (typeof decoded === "undefined") {
|
|
24716
|
+
shouldCacheJsonLd = false;
|
|
24717
|
+
continue;
|
|
24718
|
+
}
|
|
24719
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
24028
24720
|
_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items.push(decoded);
|
|
24029
24721
|
}
|
|
24030
24722
|
instance.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = _2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items;
|
|
@@ -24041,7 +24733,11 @@ var Collection = class Collection extends Object$1 {
|
|
|
24041
24733
|
...options,
|
|
24042
24734
|
baseUrl: options.baseUrl
|
|
24043
24735
|
});
|
|
24044
|
-
if (typeof decoded === "undefined")
|
|
24736
|
+
if (typeof decoded === "undefined") {
|
|
24737
|
+
shouldCacheJsonLd = false;
|
|
24738
|
+
continue;
|
|
24739
|
+
}
|
|
24740
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
24045
24741
|
_4TB9Qd9ddtcZEpMfzbHhzafE6jaJ_likesOf.push(decoded);
|
|
24046
24742
|
}
|
|
24047
24743
|
instance.#_4TB9Qd9ddtcZEpMfzbHhzafE6jaJ_likesOf = _4TB9Qd9ddtcZEpMfzbHhzafE6jaJ_likesOf;
|
|
@@ -24058,7 +24754,11 @@ var Collection = class Collection extends Object$1 {
|
|
|
24058
24754
|
...options,
|
|
24059
24755
|
baseUrl: options.baseUrl
|
|
24060
24756
|
});
|
|
24061
|
-
if (typeof decoded === "undefined")
|
|
24757
|
+
if (typeof decoded === "undefined") {
|
|
24758
|
+
shouldCacheJsonLd = false;
|
|
24759
|
+
continue;
|
|
24760
|
+
}
|
|
24761
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
24062
24762
|
_3manzgeKiPsugpztKGiaUUwJ3ito_sharesOf.push(decoded);
|
|
24063
24763
|
}
|
|
24064
24764
|
instance.#_3manzgeKiPsugpztKGiaUUwJ3ito_sharesOf = _3manzgeKiPsugpztKGiaUUwJ3ito_sharesOf;
|
|
@@ -24075,7 +24775,11 @@ var Collection = class Collection extends Object$1 {
|
|
|
24075
24775
|
...options,
|
|
24076
24776
|
baseUrl: options.baseUrl
|
|
24077
24777
|
});
|
|
24078
|
-
if (typeof decoded === "undefined")
|
|
24778
|
+
if (typeof decoded === "undefined") {
|
|
24779
|
+
shouldCacheJsonLd = false;
|
|
24780
|
+
continue;
|
|
24781
|
+
}
|
|
24782
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
24079
24783
|
_3T3oGm3twpcQUcrnMisXQtmDZ32X_repliesOf.push(decoded);
|
|
24080
24784
|
}
|
|
24081
24785
|
instance.#_3T3oGm3twpcQUcrnMisXQtmDZ32X_repliesOf = _3T3oGm3twpcQUcrnMisXQtmDZ32X_repliesOf;
|
|
@@ -24092,7 +24796,11 @@ var Collection = class Collection extends Object$1 {
|
|
|
24092
24796
|
...options,
|
|
24093
24797
|
baseUrl: options.baseUrl
|
|
24094
24798
|
});
|
|
24095
|
-
if (typeof decoded === "undefined")
|
|
24799
|
+
if (typeof decoded === "undefined") {
|
|
24800
|
+
shouldCacheJsonLd = false;
|
|
24801
|
+
continue;
|
|
24802
|
+
}
|
|
24803
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
24096
24804
|
_2bvRkAFZjMfVD8jiUWZJr5YokSeN_inboxOf.push(decoded);
|
|
24097
24805
|
}
|
|
24098
24806
|
instance.#_2bvRkAFZjMfVD8jiUWZJr5YokSeN_inboxOf = _2bvRkAFZjMfVD8jiUWZJr5YokSeN_inboxOf;
|
|
@@ -24109,7 +24817,11 @@ var Collection = class Collection extends Object$1 {
|
|
|
24109
24817
|
...options,
|
|
24110
24818
|
baseUrl: options.baseUrl
|
|
24111
24819
|
});
|
|
24112
|
-
if (typeof decoded === "undefined")
|
|
24820
|
+
if (typeof decoded === "undefined") {
|
|
24821
|
+
shouldCacheJsonLd = false;
|
|
24822
|
+
continue;
|
|
24823
|
+
}
|
|
24824
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
24113
24825
|
_4AHzVZDxHjK6uEWa9UiKHGK34yYm_outboxOf.push(decoded);
|
|
24114
24826
|
}
|
|
24115
24827
|
instance.#_4AHzVZDxHjK6uEWa9UiKHGK34yYm_outboxOf = _4AHzVZDxHjK6uEWa9UiKHGK34yYm_outboxOf;
|
|
@@ -24126,7 +24838,11 @@ var Collection = class Collection extends Object$1 {
|
|
|
24126
24838
|
...options,
|
|
24127
24839
|
baseUrl: options.baseUrl
|
|
24128
24840
|
});
|
|
24129
|
-
if (typeof decoded === "undefined")
|
|
24841
|
+
if (typeof decoded === "undefined") {
|
|
24842
|
+
shouldCacheJsonLd = false;
|
|
24843
|
+
continue;
|
|
24844
|
+
}
|
|
24845
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
24130
24846
|
_41aoZ5M6yRUHy3Zx8q6iuZQxtopb_followersOf.push(decoded);
|
|
24131
24847
|
}
|
|
24132
24848
|
instance.#_41aoZ5M6yRUHy3Zx8q6iuZQxtopb_followersOf = _41aoZ5M6yRUHy3Zx8q6iuZQxtopb_followersOf;
|
|
@@ -24143,7 +24859,11 @@ var Collection = class Collection extends Object$1 {
|
|
|
24143
24859
|
...options,
|
|
24144
24860
|
baseUrl: options.baseUrl
|
|
24145
24861
|
});
|
|
24146
|
-
if (typeof decoded === "undefined")
|
|
24862
|
+
if (typeof decoded === "undefined") {
|
|
24863
|
+
shouldCacheJsonLd = false;
|
|
24864
|
+
continue;
|
|
24865
|
+
}
|
|
24866
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
24147
24867
|
_2nXT2Ah42UjEEQF5oJQ39CbKB1xj_followingOf.push(decoded);
|
|
24148
24868
|
}
|
|
24149
24869
|
instance.#_2nXT2Ah42UjEEQF5oJQ39CbKB1xj_followingOf = _2nXT2Ah42UjEEQF5oJQ39CbKB1xj_followingOf;
|
|
@@ -24160,11 +24880,16 @@ var Collection = class Collection extends Object$1 {
|
|
|
24160
24880
|
...options,
|
|
24161
24881
|
baseUrl: options.baseUrl
|
|
24162
24882
|
});
|
|
24163
|
-
if (typeof decoded === "undefined")
|
|
24883
|
+
if (typeof decoded === "undefined") {
|
|
24884
|
+
shouldCacheJsonLd = false;
|
|
24885
|
+
continue;
|
|
24886
|
+
}
|
|
24887
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
24164
24888
|
_2bsySzmT3qEZcrnoe3tZ5xBjXSju_likedOf.push(decoded);
|
|
24165
24889
|
}
|
|
24166
24890
|
instance.#_2bsySzmT3qEZcrnoe3tZ5xBjXSju_likedOf = _2bsySzmT3qEZcrnoe3tZ5xBjXSju_likedOf;
|
|
24167
|
-
|
|
24891
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
24892
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
24168
24893
|
instance._cachedJsonLd = structuredClone(json);
|
|
24169
24894
|
} catch {
|
|
24170
24895
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -24906,6 +25631,7 @@ var CollectionPage = class CollectionPage extends Collection {
|
|
|
24906
25631
|
_fromSubclass: true
|
|
24907
25632
|
});
|
|
24908
25633
|
if (!(instance instanceof CollectionPage)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
25634
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
24909
25635
|
const _2kWgBhQKjEauxx8C6qF3ZQamK4Le_partOf = [];
|
|
24910
25636
|
let _2kWgBhQKjEauxx8C6qF3ZQamK4Le_partOf__array = values["https://www.w3.org/ns/activitystreams#partOf"];
|
|
24911
25637
|
for (const v of _2kWgBhQKjEauxx8C6qF3ZQamK4Le_partOf__array == null ? [] : _2kWgBhQKjEauxx8C6qF3ZQamK4Le_partOf__array.length === 1 && "@list" in _2kWgBhQKjEauxx8C6qF3ZQamK4Le_partOf__array[0] ? _2kWgBhQKjEauxx8C6qF3ZQamK4Le_partOf__array[0]["@list"] : _2kWgBhQKjEauxx8C6qF3ZQamK4Le_partOf__array) {
|
|
@@ -24919,7 +25645,11 @@ var CollectionPage = class CollectionPage extends Collection {
|
|
|
24919
25645
|
...options,
|
|
24920
25646
|
baseUrl: options.baseUrl
|
|
24921
25647
|
});
|
|
24922
|
-
if (typeof decoded === "undefined")
|
|
25648
|
+
if (typeof decoded === "undefined") {
|
|
25649
|
+
shouldCacheJsonLd = false;
|
|
25650
|
+
continue;
|
|
25651
|
+
}
|
|
25652
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
24923
25653
|
_2kWgBhQKjEauxx8C6qF3ZQamK4Le_partOf.push(decoded);
|
|
24924
25654
|
}
|
|
24925
25655
|
instance.#_2kWgBhQKjEauxx8C6qF3ZQamK4Le_partOf = _2kWgBhQKjEauxx8C6qF3ZQamK4Le_partOf;
|
|
@@ -24936,7 +25666,11 @@ var CollectionPage = class CollectionPage extends Collection {
|
|
|
24936
25666
|
...options,
|
|
24937
25667
|
baseUrl: options.baseUrl
|
|
24938
25668
|
});
|
|
24939
|
-
if (typeof decoded === "undefined")
|
|
25669
|
+
if (typeof decoded === "undefined") {
|
|
25670
|
+
shouldCacheJsonLd = false;
|
|
25671
|
+
continue;
|
|
25672
|
+
}
|
|
25673
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
24940
25674
|
_3BT4kQLcXhHx7TAWaNDKh8nFn9eY_next.push(decoded);
|
|
24941
25675
|
}
|
|
24942
25676
|
instance.#_3BT4kQLcXhHx7TAWaNDKh8nFn9eY_next = _3BT4kQLcXhHx7TAWaNDKh8nFn9eY_next;
|
|
@@ -24953,11 +25687,16 @@ var CollectionPage = class CollectionPage extends Collection {
|
|
|
24953
25687
|
...options,
|
|
24954
25688
|
baseUrl: options.baseUrl
|
|
24955
25689
|
});
|
|
24956
|
-
if (typeof decoded === "undefined")
|
|
25690
|
+
if (typeof decoded === "undefined") {
|
|
25691
|
+
shouldCacheJsonLd = false;
|
|
25692
|
+
continue;
|
|
25693
|
+
}
|
|
25694
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
24957
25695
|
_3b8yG8tDNzQFFEnWhCc13G8eHooA_prev.push(decoded);
|
|
24958
25696
|
}
|
|
24959
25697
|
instance.#_3b8yG8tDNzQFFEnWhCc13G8eHooA_prev = _3b8yG8tDNzQFFEnWhCc13G8eHooA_prev;
|
|
24960
|
-
|
|
25698
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
25699
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
24961
25700
|
instance._cachedJsonLd = structuredClone(json);
|
|
24962
25701
|
} catch {
|
|
24963
25702
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -25152,7 +25891,9 @@ var Create = class Create extends Activity {
|
|
|
25152
25891
|
_fromSubclass: true
|
|
25153
25892
|
});
|
|
25154
25893
|
if (!(instance instanceof Create)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
25155
|
-
|
|
25894
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
25895
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
25896
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
25156
25897
|
instance._cachedJsonLd = structuredClone(json);
|
|
25157
25898
|
} catch {
|
|
25158
25899
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -25328,7 +26069,9 @@ var Delete = class Delete extends Activity {
|
|
|
25328
26069
|
_fromSubclass: true
|
|
25329
26070
|
});
|
|
25330
26071
|
if (!(instance instanceof Delete)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
25331
|
-
|
|
26072
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
26073
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
26074
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
25332
26075
|
instance._cachedJsonLd = structuredClone(json);
|
|
25333
26076
|
} catch {
|
|
25334
26077
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -25481,7 +26224,9 @@ var Dislike = class Dislike extends Activity {
|
|
|
25481
26224
|
_fromSubclass: true
|
|
25482
26225
|
});
|
|
25483
26226
|
if (!(instance instanceof Dislike)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
25484
|
-
|
|
26227
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
26228
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
26229
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
25485
26230
|
instance._cachedJsonLd = structuredClone(json);
|
|
25486
26231
|
} catch {
|
|
25487
26232
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -25507,6 +26252,7 @@ var Endpoints = class {
|
|
|
25507
26252
|
#warning;
|
|
25508
26253
|
#cachedJsonLd;
|
|
25509
26254
|
#_baseUrl;
|
|
26255
|
+
#shouldCacheJsonLd = true;
|
|
25510
26256
|
id;
|
|
25511
26257
|
get _documentLoader() {
|
|
25512
26258
|
return this.#documentLoader;
|
|
@@ -25529,6 +26275,17 @@ var Endpoints = class {
|
|
|
25529
26275
|
get _baseUrl() {
|
|
25530
26276
|
return this.#_baseUrl;
|
|
25531
26277
|
}
|
|
26278
|
+
get _shouldCacheJsonLd() {
|
|
26279
|
+
return this.#shouldCacheJsonLd;
|
|
26280
|
+
}
|
|
26281
|
+
set _shouldCacheJsonLd(value) {
|
|
26282
|
+
this.#shouldCacheJsonLd = value;
|
|
26283
|
+
}
|
|
26284
|
+
static _shouldCacheDecodedJsonLd(value) {
|
|
26285
|
+
if (value == null || typeof value !== "object") return true;
|
|
26286
|
+
if (!("_shouldCacheJsonLd" in value)) return true;
|
|
26287
|
+
return value._shouldCacheJsonLd;
|
|
26288
|
+
}
|
|
25532
26289
|
/**
|
|
25533
26290
|
* The type URI of {@link Endpoints}: `https://www.w3.org/ns/activitystreams#Endpoints`.
|
|
25534
26291
|
*/
|
|
@@ -25828,12 +26585,17 @@ var Endpoints = class {
|
|
|
25828
26585
|
if (!values["@type"].includes("https://www.w3.org/ns/activitystreams#Endpoints")) throw new TypeError("Invalid type: " + values["@type"]);
|
|
25829
26586
|
}
|
|
25830
26587
|
const instance = new this({ id: values["@id"] != null && !values["@id"].startsWith("_:") && URL.canParse(values["@id"], options.baseUrl) ? new URL(values["@id"], options.baseUrl) : void 0 }, options);
|
|
26588
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
25831
26589
|
const _2JCYDbSxEHCCLdBYed33cCETfGyR_proxyUrl = [];
|
|
25832
26590
|
let _2JCYDbSxEHCCLdBYed33cCETfGyR_proxyUrl__array = values["https://www.w3.org/ns/activitystreams#proxyUrl"];
|
|
25833
26591
|
for (const v of _2JCYDbSxEHCCLdBYed33cCETfGyR_proxyUrl__array == null ? [] : _2JCYDbSxEHCCLdBYed33cCETfGyR_proxyUrl__array.length === 1 && "@list" in _2JCYDbSxEHCCLdBYed33cCETfGyR_proxyUrl__array[0] ? _2JCYDbSxEHCCLdBYed33cCETfGyR_proxyUrl__array[0]["@list"] : _2JCYDbSxEHCCLdBYed33cCETfGyR_proxyUrl__array) {
|
|
25834
26592
|
if (v == null) continue;
|
|
25835
26593
|
const decoded = v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].includes("/", 5) ? v["@id"].slice(5, v["@id"].indexOf("/", 5)) : v["@id"].slice(5)) + (v["@id"].includes("/", 5) ? v["@id"].slice(v["@id"].indexOf("/", 5)) : "")) : URL.canParse(v["@id"]) && options.baseUrl ? new URL(v["@id"]) : new URL(v["@id"], options.baseUrl);
|
|
25836
|
-
if (typeof decoded === "undefined")
|
|
26594
|
+
if (typeof decoded === "undefined") {
|
|
26595
|
+
shouldCacheJsonLd = false;
|
|
26596
|
+
continue;
|
|
26597
|
+
}
|
|
26598
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
25837
26599
|
_2JCYDbSxEHCCLdBYed33cCETfGyR_proxyUrl.push(decoded);
|
|
25838
26600
|
}
|
|
25839
26601
|
instance.#_2JCYDbSxEHCCLdBYed33cCETfGyR_proxyUrl = _2JCYDbSxEHCCLdBYed33cCETfGyR_proxyUrl;
|
|
@@ -25842,7 +26604,11 @@ var Endpoints = class {
|
|
|
25842
26604
|
for (const v of _25S6UmgzDead8hxL5sQFezZTAusd_oauthAuthorizationEndpoint__array == null ? [] : _25S6UmgzDead8hxL5sQFezZTAusd_oauthAuthorizationEndpoint__array.length === 1 && "@list" in _25S6UmgzDead8hxL5sQFezZTAusd_oauthAuthorizationEndpoint__array[0] ? _25S6UmgzDead8hxL5sQFezZTAusd_oauthAuthorizationEndpoint__array[0]["@list"] : _25S6UmgzDead8hxL5sQFezZTAusd_oauthAuthorizationEndpoint__array) {
|
|
25843
26605
|
if (v == null) continue;
|
|
25844
26606
|
const decoded = v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].includes("/", 5) ? v["@id"].slice(5, v["@id"].indexOf("/", 5)) : v["@id"].slice(5)) + (v["@id"].includes("/", 5) ? v["@id"].slice(v["@id"].indexOf("/", 5)) : "")) : URL.canParse(v["@id"]) && options.baseUrl ? new URL(v["@id"]) : new URL(v["@id"], options.baseUrl);
|
|
25845
|
-
if (typeof decoded === "undefined")
|
|
26607
|
+
if (typeof decoded === "undefined") {
|
|
26608
|
+
shouldCacheJsonLd = false;
|
|
26609
|
+
continue;
|
|
26610
|
+
}
|
|
26611
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
25846
26612
|
_25S6UmgzDead8hxL5sQFezZTAusd_oauthAuthorizationEndpoint.push(decoded);
|
|
25847
26613
|
}
|
|
25848
26614
|
instance.#_25S6UmgzDead8hxL5sQFezZTAusd_oauthAuthorizationEndpoint = _25S6UmgzDead8hxL5sQFezZTAusd_oauthAuthorizationEndpoint;
|
|
@@ -25851,7 +26617,11 @@ var Endpoints = class {
|
|
|
25851
26617
|
for (const v of _iAMxqrSba7yBCRB1FZ5kEVdKEZ3_oauthTokenEndpoint__array == null ? [] : _iAMxqrSba7yBCRB1FZ5kEVdKEZ3_oauthTokenEndpoint__array.length === 1 && "@list" in _iAMxqrSba7yBCRB1FZ5kEVdKEZ3_oauthTokenEndpoint__array[0] ? _iAMxqrSba7yBCRB1FZ5kEVdKEZ3_oauthTokenEndpoint__array[0]["@list"] : _iAMxqrSba7yBCRB1FZ5kEVdKEZ3_oauthTokenEndpoint__array) {
|
|
25852
26618
|
if (v == null) continue;
|
|
25853
26619
|
const decoded = v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].includes("/", 5) ? v["@id"].slice(5, v["@id"].indexOf("/", 5)) : v["@id"].slice(5)) + (v["@id"].includes("/", 5) ? v["@id"].slice(v["@id"].indexOf("/", 5)) : "")) : URL.canParse(v["@id"]) && options.baseUrl ? new URL(v["@id"]) : new URL(v["@id"], options.baseUrl);
|
|
25854
|
-
if (typeof decoded === "undefined")
|
|
26620
|
+
if (typeof decoded === "undefined") {
|
|
26621
|
+
shouldCacheJsonLd = false;
|
|
26622
|
+
continue;
|
|
26623
|
+
}
|
|
26624
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
25855
26625
|
_iAMxqrSba7yBCRB1FZ5kEVdKEZ3_oauthTokenEndpoint.push(decoded);
|
|
25856
26626
|
}
|
|
25857
26627
|
instance.#_iAMxqrSba7yBCRB1FZ5kEVdKEZ3_oauthTokenEndpoint = _iAMxqrSba7yBCRB1FZ5kEVdKEZ3_oauthTokenEndpoint;
|
|
@@ -25860,7 +26630,11 @@ var Endpoints = class {
|
|
|
25860
26630
|
for (const v of _8Bx9qN8oU7Bpt2xi6khaxWp1gMr_provideClientKey__array == null ? [] : _8Bx9qN8oU7Bpt2xi6khaxWp1gMr_provideClientKey__array.length === 1 && "@list" in _8Bx9qN8oU7Bpt2xi6khaxWp1gMr_provideClientKey__array[0] ? _8Bx9qN8oU7Bpt2xi6khaxWp1gMr_provideClientKey__array[0]["@list"] : _8Bx9qN8oU7Bpt2xi6khaxWp1gMr_provideClientKey__array) {
|
|
25861
26631
|
if (v == null) continue;
|
|
25862
26632
|
const decoded = v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].includes("/", 5) ? v["@id"].slice(5, v["@id"].indexOf("/", 5)) : v["@id"].slice(5)) + (v["@id"].includes("/", 5) ? v["@id"].slice(v["@id"].indexOf("/", 5)) : "")) : URL.canParse(v["@id"]) && options.baseUrl ? new URL(v["@id"]) : new URL(v["@id"], options.baseUrl);
|
|
25863
|
-
if (typeof decoded === "undefined")
|
|
26633
|
+
if (typeof decoded === "undefined") {
|
|
26634
|
+
shouldCacheJsonLd = false;
|
|
26635
|
+
continue;
|
|
26636
|
+
}
|
|
26637
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
25864
26638
|
_8Bx9qN8oU7Bpt2xi6khaxWp1gMr_provideClientKey.push(decoded);
|
|
25865
26639
|
}
|
|
25866
26640
|
instance.#_8Bx9qN8oU7Bpt2xi6khaxWp1gMr_provideClientKey = _8Bx9qN8oU7Bpt2xi6khaxWp1gMr_provideClientKey;
|
|
@@ -25869,7 +26643,11 @@ var Endpoints = class {
|
|
|
25869
26643
|
for (const v of _3dU7PMVQZJpsCpo2F4RQXxBXdPmS_signClientKey__array == null ? [] : _3dU7PMVQZJpsCpo2F4RQXxBXdPmS_signClientKey__array.length === 1 && "@list" in _3dU7PMVQZJpsCpo2F4RQXxBXdPmS_signClientKey__array[0] ? _3dU7PMVQZJpsCpo2F4RQXxBXdPmS_signClientKey__array[0]["@list"] : _3dU7PMVQZJpsCpo2F4RQXxBXdPmS_signClientKey__array) {
|
|
25870
26644
|
if (v == null) continue;
|
|
25871
26645
|
const decoded = v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].includes("/", 5) ? v["@id"].slice(5, v["@id"].indexOf("/", 5)) : v["@id"].slice(5)) + (v["@id"].includes("/", 5) ? v["@id"].slice(v["@id"].indexOf("/", 5)) : "")) : URL.canParse(v["@id"]) && options.baseUrl ? new URL(v["@id"]) : new URL(v["@id"], options.baseUrl);
|
|
25872
|
-
if (typeof decoded === "undefined")
|
|
26646
|
+
if (typeof decoded === "undefined") {
|
|
26647
|
+
shouldCacheJsonLd = false;
|
|
26648
|
+
continue;
|
|
26649
|
+
}
|
|
26650
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
25873
26651
|
_3dU7PMVQZJpsCpo2F4RQXxBXdPmS_signClientKey.push(decoded);
|
|
25874
26652
|
}
|
|
25875
26653
|
instance.#_3dU7PMVQZJpsCpo2F4RQXxBXdPmS_signClientKey = _3dU7PMVQZJpsCpo2F4RQXxBXdPmS_signClientKey;
|
|
@@ -25878,11 +26656,16 @@ var Endpoints = class {
|
|
|
25878
26656
|
for (const v of _3JprUSDLVqqX4dwHRi37qGZZCRCc_sharedInbox__array == null ? [] : _3JprUSDLVqqX4dwHRi37qGZZCRCc_sharedInbox__array.length === 1 && "@list" in _3JprUSDLVqqX4dwHRi37qGZZCRCc_sharedInbox__array[0] ? _3JprUSDLVqqX4dwHRi37qGZZCRCc_sharedInbox__array[0]["@list"] : _3JprUSDLVqqX4dwHRi37qGZZCRCc_sharedInbox__array) {
|
|
25879
26657
|
if (v == null) continue;
|
|
25880
26658
|
const decoded = v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].includes("/", 5) ? v["@id"].slice(5, v["@id"].indexOf("/", 5)) : v["@id"].slice(5)) + (v["@id"].includes("/", 5) ? v["@id"].slice(v["@id"].indexOf("/", 5)) : "")) : URL.canParse(v["@id"]) && options.baseUrl ? new URL(v["@id"]) : new URL(v["@id"], options.baseUrl);
|
|
25881
|
-
if (typeof decoded === "undefined")
|
|
26659
|
+
if (typeof decoded === "undefined") {
|
|
26660
|
+
shouldCacheJsonLd = false;
|
|
26661
|
+
continue;
|
|
26662
|
+
}
|
|
26663
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
25882
26664
|
_3JprUSDLVqqX4dwHRi37qGZZCRCc_sharedInbox.push(decoded);
|
|
25883
26665
|
}
|
|
25884
26666
|
instance.#_3JprUSDLVqqX4dwHRi37qGZZCRCc_sharedInbox = _3JprUSDLVqqX4dwHRi37qGZZCRCc_sharedInbox;
|
|
25885
|
-
|
|
26667
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
26668
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
25886
26669
|
instance._cachedJsonLd = structuredClone(json);
|
|
25887
26670
|
} catch {
|
|
25888
26671
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -26080,7 +26863,9 @@ var Event = class Event extends Object$1 {
|
|
|
26080
26863
|
_fromSubclass: true
|
|
26081
26864
|
});
|
|
26082
26865
|
if (!(instance instanceof Event)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
26083
|
-
|
|
26866
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
26867
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
26868
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
26084
26869
|
instance._cachedJsonLd = structuredClone(json);
|
|
26085
26870
|
} catch {
|
|
26086
26871
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -26231,7 +27016,9 @@ var Flag = class Flag extends Activity {
|
|
|
26231
27016
|
_fromSubclass: true
|
|
26232
27017
|
});
|
|
26233
27018
|
if (!(instance instanceof Flag)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
26234
|
-
|
|
27019
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
27020
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
27021
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
26235
27022
|
instance._cachedJsonLd = structuredClone(json);
|
|
26236
27023
|
} catch {
|
|
26237
27024
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -26386,7 +27173,9 @@ var Follow = class Follow extends Activity {
|
|
|
26386
27173
|
_fromSubclass: true
|
|
26387
27174
|
});
|
|
26388
27175
|
if (!(instance instanceof Follow)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
26389
|
-
|
|
27176
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
27177
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
27178
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
26390
27179
|
instance._cachedJsonLd = structuredClone(json);
|
|
26391
27180
|
} catch {
|
|
26392
27181
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -29305,12 +30094,17 @@ var Group = class Group extends Object$1 {
|
|
|
29305
30094
|
_fromSubclass: true
|
|
29306
30095
|
});
|
|
29307
30096
|
if (!(instance instanceof Group)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
30097
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
29308
30098
|
const _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = [];
|
|
29309
30099
|
let _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername__array = values["https://www.w3.org/ns/activitystreams#preferredUsername"];
|
|
29310
30100
|
for (const v of _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername__array == null ? [] : _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername__array.length === 1 && "@list" in _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername__array[0] ? _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername__array[0]["@list"] : _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername__array) {
|
|
29311
30101
|
if (v == null) continue;
|
|
29312
|
-
const decoded = typeof v === "object" && "@value" in v && typeof v["@value"] === "string" && !("@language" in v) ? v["@value"] : typeof v === "object" && "@language" in v && "@value" in v && typeof v["@language"] === "string" && typeof v["@value"] === "string" ? new LanguageString$1(v["@value"], v["@language"]) : void 0;
|
|
29313
|
-
if (typeof decoded === "undefined")
|
|
30102
|
+
const decoded = typeof v === "object" && "@value" in v && typeof v["@value"] === "string" && !("@language" in v) ? v["@value"] : typeof v === "object" && "@language" in v && "@value" in v && typeof v["@language"] === "string" && typeof v["@value"] === "string" && isValidLanguageTag(v["@language"]) ? new LanguageString$1(v["@value"], v["@language"]) : void 0;
|
|
30103
|
+
if (typeof decoded === "undefined") {
|
|
30104
|
+
shouldCacheJsonLd = false;
|
|
30105
|
+
continue;
|
|
30106
|
+
}
|
|
30107
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
29314
30108
|
_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername.push(decoded);
|
|
29315
30109
|
}
|
|
29316
30110
|
instance.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername;
|
|
@@ -29327,7 +30121,11 @@ var Group = class Group extends Object$1 {
|
|
|
29327
30121
|
...options,
|
|
29328
30122
|
baseUrl: options.baseUrl
|
|
29329
30123
|
});
|
|
29330
|
-
if (typeof decoded === "undefined")
|
|
30124
|
+
if (typeof decoded === "undefined") {
|
|
30125
|
+
shouldCacheJsonLd = false;
|
|
30126
|
+
continue;
|
|
30127
|
+
}
|
|
30128
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
29331
30129
|
_axq166E2eZADq34V4MYUc8KMZdC_publicKey.push(decoded);
|
|
29332
30130
|
}
|
|
29333
30131
|
instance.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = _axq166E2eZADq34V4MYUc8KMZdC_publicKey;
|
|
@@ -29344,7 +30142,11 @@ var Group = class Group extends Object$1 {
|
|
|
29344
30142
|
...options,
|
|
29345
30143
|
baseUrl: options.baseUrl
|
|
29346
30144
|
});
|
|
29347
|
-
if (typeof decoded === "undefined")
|
|
30145
|
+
if (typeof decoded === "undefined") {
|
|
30146
|
+
shouldCacheJsonLd = false;
|
|
30147
|
+
continue;
|
|
30148
|
+
}
|
|
30149
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
29348
30150
|
_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(decoded);
|
|
29349
30151
|
}
|
|
29350
30152
|
instance.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod;
|
|
@@ -29353,7 +30155,11 @@ var Group = class Group extends Object$1 {
|
|
|
29353
30155
|
for (const v of _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers__array == null ? [] : _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers__array.length === 1 && "@list" in _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers__array[0] ? _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers__array[0]["@list"] : _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers__array) {
|
|
29354
30156
|
if (v == null) continue;
|
|
29355
30157
|
const decoded = v["@value"];
|
|
29356
|
-
if (typeof decoded === "undefined")
|
|
30158
|
+
if (typeof decoded === "undefined") {
|
|
30159
|
+
shouldCacheJsonLd = false;
|
|
30160
|
+
continue;
|
|
30161
|
+
}
|
|
30162
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
29357
30163
|
_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers.push(decoded);
|
|
29358
30164
|
}
|
|
29359
30165
|
instance.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers;
|
|
@@ -29373,7 +30179,11 @@ var Group = class Group extends Object$1 {
|
|
|
29373
30179
|
...options,
|
|
29374
30180
|
baseUrl: options.baseUrl
|
|
29375
30181
|
}) : void 0;
|
|
29376
|
-
if (typeof decoded === "undefined")
|
|
30182
|
+
if (typeof decoded === "undefined") {
|
|
30183
|
+
shouldCacheJsonLd = false;
|
|
30184
|
+
continue;
|
|
30185
|
+
}
|
|
30186
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
29377
30187
|
_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox.push(decoded);
|
|
29378
30188
|
}
|
|
29379
30189
|
instance.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = _3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox;
|
|
@@ -29393,7 +30203,11 @@ var Group = class Group extends Object$1 {
|
|
|
29393
30203
|
...options,
|
|
29394
30204
|
baseUrl: options.baseUrl
|
|
29395
30205
|
}) : void 0;
|
|
29396
|
-
if (typeof decoded === "undefined")
|
|
30206
|
+
if (typeof decoded === "undefined") {
|
|
30207
|
+
shouldCacheJsonLd = false;
|
|
30208
|
+
continue;
|
|
30209
|
+
}
|
|
30210
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
29397
30211
|
_41QwhqJouoLg3h8dRPKat21brynC_outbox.push(decoded);
|
|
29398
30212
|
}
|
|
29399
30213
|
instance.#_41QwhqJouoLg3h8dRPKat21brynC_outbox = _41QwhqJouoLg3h8dRPKat21brynC_outbox;
|
|
@@ -29410,7 +30224,11 @@ var Group = class Group extends Object$1 {
|
|
|
29410
30224
|
...options,
|
|
29411
30225
|
baseUrl: options.baseUrl
|
|
29412
30226
|
});
|
|
29413
|
-
if (typeof decoded === "undefined")
|
|
30227
|
+
if (typeof decoded === "undefined") {
|
|
30228
|
+
shouldCacheJsonLd = false;
|
|
30229
|
+
continue;
|
|
30230
|
+
}
|
|
30231
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
29414
30232
|
_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.push(decoded);
|
|
29415
30233
|
}
|
|
29416
30234
|
instance.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = _3yAv8jymNfNuJUDuBzJ1NQhdbAee_following;
|
|
@@ -29427,7 +30245,11 @@ var Group = class Group extends Object$1 {
|
|
|
29427
30245
|
...options,
|
|
29428
30246
|
baseUrl: options.baseUrl
|
|
29429
30247
|
});
|
|
29430
|
-
if (typeof decoded === "undefined")
|
|
30248
|
+
if (typeof decoded === "undefined") {
|
|
30249
|
+
shouldCacheJsonLd = false;
|
|
30250
|
+
continue;
|
|
30251
|
+
}
|
|
30252
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
29431
30253
|
_BBCTgfphhsFzpVfKTykGSpBNwoA_followers.push(decoded);
|
|
29432
30254
|
}
|
|
29433
30255
|
instance.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = _BBCTgfphhsFzpVfKTykGSpBNwoA_followers;
|
|
@@ -29444,7 +30266,11 @@ var Group = class Group extends Object$1 {
|
|
|
29444
30266
|
...options,
|
|
29445
30267
|
baseUrl: options.baseUrl
|
|
29446
30268
|
});
|
|
29447
|
-
if (typeof decoded === "undefined")
|
|
30269
|
+
if (typeof decoded === "undefined") {
|
|
30270
|
+
shouldCacheJsonLd = false;
|
|
30271
|
+
continue;
|
|
30272
|
+
}
|
|
30273
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
29448
30274
|
_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.push(decoded);
|
|
29449
30275
|
}
|
|
29450
30276
|
instance.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = _3bgkPwJanyTCoVFM9ovRcus8tKkU_liked;
|
|
@@ -29461,7 +30287,11 @@ var Group = class Group extends Object$1 {
|
|
|
29461
30287
|
...options,
|
|
29462
30288
|
baseUrl: options.baseUrl
|
|
29463
30289
|
});
|
|
29464
|
-
if (typeof decoded === "undefined")
|
|
30290
|
+
if (typeof decoded === "undefined") {
|
|
30291
|
+
shouldCacheJsonLd = false;
|
|
30292
|
+
continue;
|
|
30293
|
+
}
|
|
30294
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
29465
30295
|
_4N1vBJzXDf8NbBumeECQMFvKetja_featured.push(decoded);
|
|
29466
30296
|
}
|
|
29467
30297
|
instance.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured = _4N1vBJzXDf8NbBumeECQMFvKetja_featured;
|
|
@@ -29478,7 +30308,11 @@ var Group = class Group extends Object$1 {
|
|
|
29478
30308
|
...options,
|
|
29479
30309
|
baseUrl: options.baseUrl
|
|
29480
30310
|
});
|
|
29481
|
-
if (typeof decoded === "undefined")
|
|
30311
|
+
if (typeof decoded === "undefined") {
|
|
30312
|
+
shouldCacheJsonLd = false;
|
|
30313
|
+
continue;
|
|
30314
|
+
}
|
|
30315
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
29482
30316
|
_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.push(decoded);
|
|
29483
30317
|
}
|
|
29484
30318
|
instance.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = _2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags;
|
|
@@ -29495,7 +30329,11 @@ var Group = class Group extends Object$1 {
|
|
|
29495
30329
|
...options,
|
|
29496
30330
|
baseUrl: options.baseUrl
|
|
29497
30331
|
});
|
|
29498
|
-
if (typeof decoded === "undefined")
|
|
30332
|
+
if (typeof decoded === "undefined") {
|
|
30333
|
+
shouldCacheJsonLd = false;
|
|
30334
|
+
continue;
|
|
30335
|
+
}
|
|
30336
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
29499
30337
|
_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.push(decoded);
|
|
29500
30338
|
}
|
|
29501
30339
|
instance.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = _3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams;
|
|
@@ -29507,7 +30345,11 @@ var Group = class Group extends Object$1 {
|
|
|
29507
30345
|
...options,
|
|
29508
30346
|
baseUrl: options.baseUrl
|
|
29509
30347
|
});
|
|
29510
|
-
if (typeof decoded === "undefined")
|
|
30348
|
+
if (typeof decoded === "undefined") {
|
|
30349
|
+
shouldCacheJsonLd = false;
|
|
30350
|
+
continue;
|
|
30351
|
+
}
|
|
30352
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
29511
30353
|
_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.push(decoded);
|
|
29512
30354
|
}
|
|
29513
30355
|
instance.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints;
|
|
@@ -29516,7 +30358,11 @@ var Group = class Group extends Object$1 {
|
|
|
29516
30358
|
for (const v of _gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable__array == null ? [] : _gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable__array.length === 1 && "@list" in _gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable__array[0] ? _gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable__array[0]["@list"] : _gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable__array) {
|
|
29517
30359
|
if (v == null) continue;
|
|
29518
30360
|
const decoded = v["@value"];
|
|
29519
|
-
if (typeof decoded === "undefined")
|
|
30361
|
+
if (typeof decoded === "undefined") {
|
|
30362
|
+
shouldCacheJsonLd = false;
|
|
30363
|
+
continue;
|
|
30364
|
+
}
|
|
30365
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
29520
30366
|
_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable.push(decoded);
|
|
29521
30367
|
}
|
|
29522
30368
|
instance.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = _gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable;
|
|
@@ -29525,7 +30371,11 @@ var Group = class Group extends Object$1 {
|
|
|
29525
30371
|
for (const v of _2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended__array == null ? [] : _2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended__array.length === 1 && "@list" in _2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended__array[0] ? _2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended__array[0]["@list"] : _2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended__array) {
|
|
29526
30372
|
if (v == null) continue;
|
|
29527
30373
|
const decoded = v["@value"];
|
|
29528
|
-
if (typeof decoded === "undefined")
|
|
30374
|
+
if (typeof decoded === "undefined") {
|
|
30375
|
+
shouldCacheJsonLd = false;
|
|
30376
|
+
continue;
|
|
30377
|
+
}
|
|
30378
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
29529
30379
|
_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended.push(decoded);
|
|
29530
30380
|
}
|
|
29531
30381
|
instance.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = _2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended;
|
|
@@ -29534,7 +30384,11 @@ var Group = class Group extends Object$1 {
|
|
|
29534
30384
|
for (const v of _79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial__array == null ? [] : _79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial__array.length === 1 && "@list" in _79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial__array[0] ? _79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial__array[0]["@list"] : _79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial__array) {
|
|
29535
30385
|
if (v == null) continue;
|
|
29536
30386
|
const decoded = v["@value"];
|
|
29537
|
-
if (typeof decoded === "undefined")
|
|
30387
|
+
if (typeof decoded === "undefined") {
|
|
30388
|
+
shouldCacheJsonLd = false;
|
|
30389
|
+
continue;
|
|
30390
|
+
}
|
|
30391
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
29538
30392
|
_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial.push(decoded);
|
|
29539
30393
|
}
|
|
29540
30394
|
instance.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = _79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial;
|
|
@@ -29543,7 +30397,11 @@ var Group = class Group extends Object$1 {
|
|
|
29543
30397
|
for (const v of _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable__array == null ? [] : _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable__array.length === 1 && "@list" in _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable__array[0] ? _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable__array[0]["@list"] : _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable__array) {
|
|
29544
30398
|
if (v == null) continue;
|
|
29545
30399
|
const decoded = v["@value"];
|
|
29546
|
-
if (typeof decoded === "undefined")
|
|
30400
|
+
if (typeof decoded === "undefined") {
|
|
30401
|
+
shouldCacheJsonLd = false;
|
|
30402
|
+
continue;
|
|
30403
|
+
}
|
|
30404
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
29547
30405
|
_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable.push(decoded);
|
|
29548
30406
|
}
|
|
29549
30407
|
instance.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable;
|
|
@@ -29572,7 +30430,11 @@ var Group = class Group extends Object$1 {
|
|
|
29572
30430
|
...options,
|
|
29573
30431
|
baseUrl: options.baseUrl
|
|
29574
30432
|
}) : void 0;
|
|
29575
|
-
if (typeof decoded === "undefined")
|
|
30433
|
+
if (typeof decoded === "undefined") {
|
|
30434
|
+
shouldCacheJsonLd = false;
|
|
30435
|
+
continue;
|
|
30436
|
+
}
|
|
30437
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
29576
30438
|
_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.push(decoded);
|
|
29577
30439
|
}
|
|
29578
30440
|
instance.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = _2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo;
|
|
@@ -29601,7 +30463,11 @@ var Group = class Group extends Object$1 {
|
|
|
29601
30463
|
...options,
|
|
29602
30464
|
baseUrl: options.baseUrl
|
|
29603
30465
|
}) : void 0;
|
|
29604
|
-
if (typeof decoded === "undefined")
|
|
30466
|
+
if (typeof decoded === "undefined") {
|
|
30467
|
+
shouldCacheJsonLd = false;
|
|
30468
|
+
continue;
|
|
30469
|
+
}
|
|
30470
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
29605
30471
|
_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.push(decoded);
|
|
29606
30472
|
}
|
|
29607
30473
|
instance.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = _3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs;
|
|
@@ -29618,7 +30484,11 @@ var Group = class Group extends Object$1 {
|
|
|
29618
30484
|
...options,
|
|
29619
30485
|
baseUrl: options.baseUrl
|
|
29620
30486
|
});
|
|
29621
|
-
if (typeof decoded === "undefined")
|
|
30487
|
+
if (typeof decoded === "undefined") {
|
|
30488
|
+
shouldCacheJsonLd = false;
|
|
30489
|
+
continue;
|
|
30490
|
+
}
|
|
30491
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
29622
30492
|
_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.push(decoded);
|
|
29623
30493
|
}
|
|
29624
30494
|
instance.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = _4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service;
|
|
@@ -29627,7 +30497,11 @@ var Group = class Group extends Object$1 {
|
|
|
29627
30497
|
for (const v of _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage__array == null ? [] : _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage__array.length === 1 && "@list" in _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage__array[0] ? _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage__array[0]["@list"] : _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage__array) {
|
|
29628
30498
|
if (v == null) continue;
|
|
29629
30499
|
const decoded = v["@value"];
|
|
29630
|
-
if (typeof decoded === "undefined")
|
|
30500
|
+
if (typeof decoded === "undefined") {
|
|
30501
|
+
shouldCacheJsonLd = false;
|
|
30502
|
+
continue;
|
|
30503
|
+
}
|
|
30504
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
29631
30505
|
_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage.push(decoded);
|
|
29632
30506
|
}
|
|
29633
30507
|
instance.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage;
|
|
@@ -29636,11 +30510,16 @@ var Group = class Group extends Object$1 {
|
|
|
29636
30510
|
for (const v of _2xEU4QtkC53RAun67T81Egqt9vmL_isCat__array == null ? [] : _2xEU4QtkC53RAun67T81Egqt9vmL_isCat__array.length === 1 && "@list" in _2xEU4QtkC53RAun67T81Egqt9vmL_isCat__array[0] ? _2xEU4QtkC53RAun67T81Egqt9vmL_isCat__array[0]["@list"] : _2xEU4QtkC53RAun67T81Egqt9vmL_isCat__array) {
|
|
29637
30511
|
if (v == null) continue;
|
|
29638
30512
|
const decoded = v["@value"];
|
|
29639
|
-
if (typeof decoded === "undefined")
|
|
30513
|
+
if (typeof decoded === "undefined") {
|
|
30514
|
+
shouldCacheJsonLd = false;
|
|
30515
|
+
continue;
|
|
30516
|
+
}
|
|
30517
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
29640
30518
|
_2xEU4QtkC53RAun67T81Egqt9vmL_isCat.push(decoded);
|
|
29641
30519
|
}
|
|
29642
30520
|
instance.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = _2xEU4QtkC53RAun67T81Egqt9vmL_isCat;
|
|
29643
|
-
|
|
30521
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
30522
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
29644
30523
|
instance._cachedJsonLd = structuredClone(json);
|
|
29645
30524
|
} catch {
|
|
29646
30525
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -29789,6 +30668,7 @@ var Link = class Link {
|
|
|
29789
30668
|
#warning;
|
|
29790
30669
|
#cachedJsonLd;
|
|
29791
30670
|
#_baseUrl;
|
|
30671
|
+
#shouldCacheJsonLd = true;
|
|
29792
30672
|
id;
|
|
29793
30673
|
get _documentLoader() {
|
|
29794
30674
|
return this.#documentLoader;
|
|
@@ -29811,6 +30691,17 @@ var Link = class Link {
|
|
|
29811
30691
|
get _baseUrl() {
|
|
29812
30692
|
return this.#_baseUrl;
|
|
29813
30693
|
}
|
|
30694
|
+
get _shouldCacheJsonLd() {
|
|
30695
|
+
return this.#shouldCacheJsonLd;
|
|
30696
|
+
}
|
|
30697
|
+
set _shouldCacheJsonLd(value) {
|
|
30698
|
+
this.#shouldCacheJsonLd = value;
|
|
30699
|
+
}
|
|
30700
|
+
static _shouldCacheDecodedJsonLd(value) {
|
|
30701
|
+
if (value == null || typeof value !== "object") return true;
|
|
30702
|
+
if (!("_shouldCacheJsonLd" in value)) return true;
|
|
30703
|
+
return value._shouldCacheJsonLd;
|
|
30704
|
+
}
|
|
29814
30705
|
/**
|
|
29815
30706
|
* The type URI of {@link Link}: `https://www.w3.org/ns/activitystreams#Link`.
|
|
29816
30707
|
*/
|
|
@@ -30343,12 +31234,17 @@ var Link = class Link {
|
|
|
30343
31234
|
if (!values["@type"].includes("https://www.w3.org/ns/activitystreams#Link")) throw new TypeError("Invalid type: " + values["@type"]);
|
|
30344
31235
|
}
|
|
30345
31236
|
const instance = new this({ id: values["@id"] != null && !values["@id"].startsWith("_:") && URL.canParse(values["@id"], options.baseUrl) ? new URL(values["@id"], options.baseUrl) : void 0 }, options);
|
|
31237
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
30346
31238
|
const _pVjLsybKQdmkjuU7MHjiVmNnuj7_href = [];
|
|
30347
31239
|
let _pVjLsybKQdmkjuU7MHjiVmNnuj7_href__array = values["https://www.w3.org/ns/activitystreams#href"];
|
|
30348
31240
|
for (const v of _pVjLsybKQdmkjuU7MHjiVmNnuj7_href__array == null ? [] : _pVjLsybKQdmkjuU7MHjiVmNnuj7_href__array.length === 1 && "@list" in _pVjLsybKQdmkjuU7MHjiVmNnuj7_href__array[0] ? _pVjLsybKQdmkjuU7MHjiVmNnuj7_href__array[0]["@list"] : _pVjLsybKQdmkjuU7MHjiVmNnuj7_href__array) {
|
|
30349
31241
|
if (v == null) continue;
|
|
30350
31242
|
const decoded = v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].includes("/", 5) ? v["@id"].slice(5, v["@id"].indexOf("/", 5)) : v["@id"].slice(5)) + (v["@id"].includes("/", 5) ? v["@id"].slice(v["@id"].indexOf("/", 5)) : "")) : URL.canParse(v["@id"]) && options.baseUrl ? new URL(v["@id"]) : new URL(v["@id"], options.baseUrl);
|
|
30351
|
-
if (typeof decoded === "undefined")
|
|
31243
|
+
if (typeof decoded === "undefined") {
|
|
31244
|
+
shouldCacheJsonLd = false;
|
|
31245
|
+
continue;
|
|
31246
|
+
}
|
|
31247
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
30352
31248
|
_pVjLsybKQdmkjuU7MHjiVmNnuj7_href.push(decoded);
|
|
30353
31249
|
}
|
|
30354
31250
|
instance.#_pVjLsybKQdmkjuU7MHjiVmNnuj7_href = _pVjLsybKQdmkjuU7MHjiVmNnuj7_href;
|
|
@@ -30357,7 +31253,11 @@ var Link = class Link {
|
|
|
30357
31253
|
for (const v of _2a1c5GkfkQsnyyLybF8UXBQfFuHZ_rel__array == null ? [] : _2a1c5GkfkQsnyyLybF8UXBQfFuHZ_rel__array.length === 1 && "@list" in _2a1c5GkfkQsnyyLybF8UXBQfFuHZ_rel__array[0] ? _2a1c5GkfkQsnyyLybF8UXBQfFuHZ_rel__array[0]["@list"] : _2a1c5GkfkQsnyyLybF8UXBQfFuHZ_rel__array) {
|
|
30358
31254
|
if (v == null) continue;
|
|
30359
31255
|
const decoded = v["@value"];
|
|
30360
|
-
if (typeof decoded === "undefined")
|
|
31256
|
+
if (typeof decoded === "undefined") {
|
|
31257
|
+
shouldCacheJsonLd = false;
|
|
31258
|
+
continue;
|
|
31259
|
+
}
|
|
31260
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
30361
31261
|
_2a1c5GkfkQsnyyLybF8UXBQfFuHZ_rel.push(decoded);
|
|
30362
31262
|
}
|
|
30363
31263
|
instance.#_2a1c5GkfkQsnyyLybF8UXBQfFuHZ_rel = _2a1c5GkfkQsnyyLybF8UXBQfFuHZ_rel;
|
|
@@ -30366,7 +31266,11 @@ var Link = class Link {
|
|
|
30366
31266
|
for (const v of _3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType__array == null ? [] : _3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType__array.length === 1 && "@list" in _3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType__array[0] ? _3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType__array[0]["@list"] : _3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType__array) {
|
|
30367
31267
|
if (v == null) continue;
|
|
30368
31268
|
const decoded = v["@value"];
|
|
30369
|
-
if (typeof decoded === "undefined")
|
|
31269
|
+
if (typeof decoded === "undefined") {
|
|
31270
|
+
shouldCacheJsonLd = false;
|
|
31271
|
+
continue;
|
|
31272
|
+
}
|
|
31273
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
30370
31274
|
_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType.push(decoded);
|
|
30371
31275
|
}
|
|
30372
31276
|
instance.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType = _3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType;
|
|
@@ -30374,8 +31278,12 @@ var Link = class Link {
|
|
|
30374
31278
|
let _4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name__array = values["https://www.w3.org/ns/activitystreams#name"];
|
|
30375
31279
|
for (const v of _4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name__array == null ? [] : _4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name__array.length === 1 && "@list" in _4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name__array[0] ? _4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name__array[0]["@list"] : _4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name__array) {
|
|
30376
31280
|
if (v == null) continue;
|
|
30377
|
-
const decoded = typeof v === "object" && "@value" in v && typeof v["@value"] === "string" && !("@language" in v) ? v["@value"] : typeof v === "object" && "@language" in v && "@value" in v && typeof v["@language"] === "string" && typeof v["@value"] === "string" ? new LanguageString$1(v["@value"], v["@language"]) : void 0;
|
|
30378
|
-
if (typeof decoded === "undefined")
|
|
31281
|
+
const decoded = typeof v === "object" && "@value" in v && typeof v["@value"] === "string" && !("@language" in v) ? v["@value"] : typeof v === "object" && "@language" in v && "@value" in v && typeof v["@language"] === "string" && typeof v["@value"] === "string" && isValidLanguageTag(v["@language"]) ? new LanguageString$1(v["@value"], v["@language"]) : void 0;
|
|
31282
|
+
if (typeof decoded === "undefined") {
|
|
31283
|
+
shouldCacheJsonLd = false;
|
|
31284
|
+
continue;
|
|
31285
|
+
}
|
|
31286
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
30379
31287
|
_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name.push(decoded);
|
|
30380
31288
|
}
|
|
30381
31289
|
instance.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = _4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name;
|
|
@@ -30384,7 +31292,11 @@ var Link = class Link {
|
|
|
30384
31292
|
for (const v of _f57HKWCp1YRBbTJE8PF12RbDJGf_hreflang__array == null ? [] : _f57HKWCp1YRBbTJE8PF12RbDJGf_hreflang__array.length === 1 && "@list" in _f57HKWCp1YRBbTJE8PF12RbDJGf_hreflang__array[0] ? _f57HKWCp1YRBbTJE8PF12RbDJGf_hreflang__array[0]["@list"] : _f57HKWCp1YRBbTJE8PF12RbDJGf_hreflang__array) {
|
|
30385
31293
|
if (v == null) continue;
|
|
30386
31294
|
const decoded = new Intl.Locale(v["@value"]);
|
|
30387
|
-
if (typeof decoded === "undefined")
|
|
31295
|
+
if (typeof decoded === "undefined") {
|
|
31296
|
+
shouldCacheJsonLd = false;
|
|
31297
|
+
continue;
|
|
31298
|
+
}
|
|
31299
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
30388
31300
|
_f57HKWCp1YRBbTJE8PF12RbDJGf_hreflang.push(decoded);
|
|
30389
31301
|
}
|
|
30390
31302
|
instance.#_f57HKWCp1YRBbTJE8PF12RbDJGf_hreflang = _f57HKWCp1YRBbTJE8PF12RbDJGf_hreflang;
|
|
@@ -30393,7 +31305,11 @@ var Link = class Link {
|
|
|
30393
31305
|
for (const v of _2cGKFeFJMmiNpGZFEF75mCwFQsKb_height__array == null ? [] : _2cGKFeFJMmiNpGZFEF75mCwFQsKb_height__array.length === 1 && "@list" in _2cGKFeFJMmiNpGZFEF75mCwFQsKb_height__array[0] ? _2cGKFeFJMmiNpGZFEF75mCwFQsKb_height__array[0]["@list"] : _2cGKFeFJMmiNpGZFEF75mCwFQsKb_height__array) {
|
|
30394
31306
|
if (v == null) continue;
|
|
30395
31307
|
const decoded = v["@value"];
|
|
30396
|
-
if (typeof decoded === "undefined")
|
|
31308
|
+
if (typeof decoded === "undefined") {
|
|
31309
|
+
shouldCacheJsonLd = false;
|
|
31310
|
+
continue;
|
|
31311
|
+
}
|
|
31312
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
30397
31313
|
_2cGKFeFJMmiNpGZFEF75mCwFQsKb_height.push(decoded);
|
|
30398
31314
|
}
|
|
30399
31315
|
instance.#_2cGKFeFJMmiNpGZFEF75mCwFQsKb_height = _2cGKFeFJMmiNpGZFEF75mCwFQsKb_height;
|
|
@@ -30402,7 +31318,11 @@ var Link = class Link {
|
|
|
30402
31318
|
for (const v of _2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width__array == null ? [] : _2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width__array.length === 1 && "@list" in _2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width__array[0] ? _2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width__array[0]["@list"] : _2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width__array) {
|
|
30403
31319
|
if (v == null) continue;
|
|
30404
31320
|
const decoded = v["@value"];
|
|
30405
|
-
if (typeof decoded === "undefined")
|
|
31321
|
+
if (typeof decoded === "undefined") {
|
|
31322
|
+
shouldCacheJsonLd = false;
|
|
31323
|
+
continue;
|
|
31324
|
+
}
|
|
31325
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
30406
31326
|
_2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width.push(decoded);
|
|
30407
31327
|
}
|
|
30408
31328
|
instance.#_2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width = _2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width;
|
|
@@ -30492,11 +31412,16 @@ var Link = class Link {
|
|
|
30492
31412
|
...options,
|
|
30493
31413
|
baseUrl: options.baseUrl
|
|
30494
31414
|
}) : void 0;
|
|
30495
|
-
if (typeof decoded === "undefined")
|
|
31415
|
+
if (typeof decoded === "undefined") {
|
|
31416
|
+
shouldCacheJsonLd = false;
|
|
31417
|
+
continue;
|
|
31418
|
+
}
|
|
31419
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
30496
31420
|
_gCVTegXxWWCw6wWRxa1QF65zusg_preview.push(decoded);
|
|
30497
31421
|
}
|
|
30498
31422
|
instance.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview = _gCVTegXxWWCw6wWRxa1QF65zusg_preview;
|
|
30499
|
-
|
|
31423
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
31424
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
30500
31425
|
instance._cachedJsonLd = structuredClone(json);
|
|
30501
31426
|
} catch {
|
|
30502
31427
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -30697,7 +31622,9 @@ var Hashtag = class Hashtag extends Link {
|
|
|
30697
31622
|
_fromSubclass: true
|
|
30698
31623
|
});
|
|
30699
31624
|
if (!(instance instanceof Hashtag)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
30700
|
-
|
|
31625
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
31626
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
31627
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
30701
31628
|
instance._cachedJsonLd = structuredClone(json);
|
|
30702
31629
|
} catch {
|
|
30703
31630
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -30860,7 +31787,9 @@ var Image = class Image extends Document {
|
|
|
30860
31787
|
_fromSubclass: true
|
|
30861
31788
|
});
|
|
30862
31789
|
if (!(instance instanceof Image)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
30863
|
-
|
|
31790
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
31791
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
31792
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
30864
31793
|
instance._cachedJsonLd = structuredClone(json);
|
|
30865
31794
|
} catch {
|
|
30866
31795
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -31012,7 +31941,9 @@ var Offer = class Offer extends Activity {
|
|
|
31012
31941
|
_fromSubclass: true
|
|
31013
31942
|
});
|
|
31014
31943
|
if (!(instance instanceof Offer)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
31015
|
-
|
|
31944
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
31945
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
31946
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
31016
31947
|
instance._cachedJsonLd = structuredClone(json);
|
|
31017
31948
|
} catch {
|
|
31018
31949
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -31162,7 +32093,9 @@ var Invite = class Invite extends Offer {
|
|
|
31162
32093
|
_fromSubclass: true
|
|
31163
32094
|
});
|
|
31164
32095
|
if (!(instance instanceof Invite)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
31165
|
-
|
|
32096
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
32097
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
32098
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
31166
32099
|
instance._cachedJsonLd = structuredClone(json);
|
|
31167
32100
|
} catch {
|
|
31168
32101
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -31312,7 +32245,9 @@ var Join = class Join extends Activity {
|
|
|
31312
32245
|
_fromSubclass: true
|
|
31313
32246
|
});
|
|
31314
32247
|
if (!(instance instanceof Join)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
31315
|
-
|
|
32248
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
32249
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
32250
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
31316
32251
|
instance._cachedJsonLd = structuredClone(json);
|
|
31317
32252
|
} catch {
|
|
31318
32253
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -31462,7 +32397,9 @@ var Leave = class Leave extends Activity {
|
|
|
31462
32397
|
_fromSubclass: true
|
|
31463
32398
|
});
|
|
31464
32399
|
if (!(instance instanceof Leave)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
31465
|
-
|
|
32400
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
32401
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
32402
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
31466
32403
|
instance._cachedJsonLd = structuredClone(json);
|
|
31467
32404
|
} catch {
|
|
31468
32405
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -31616,7 +32553,9 @@ var Like = class Like extends Activity {
|
|
|
31616
32553
|
_fromSubclass: true
|
|
31617
32554
|
});
|
|
31618
32555
|
if (!(instance instanceof Like)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
31619
|
-
|
|
32556
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
32557
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
32558
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
31620
32559
|
instance._cachedJsonLd = structuredClone(json);
|
|
31621
32560
|
} catch {
|
|
31622
32561
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -31765,7 +32704,9 @@ var Listen = class Listen extends Activity {
|
|
|
31765
32704
|
_fromSubclass: true
|
|
31766
32705
|
});
|
|
31767
32706
|
if (!(instance instanceof Listen)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
31768
|
-
|
|
32707
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
32708
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
32709
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
31769
32710
|
instance._cachedJsonLd = structuredClone(json);
|
|
31770
32711
|
} catch {
|
|
31771
32712
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -31917,7 +32858,9 @@ var Mention = class Mention extends Link {
|
|
|
31917
32858
|
_fromSubclass: true
|
|
31918
32859
|
});
|
|
31919
32860
|
if (!(instance instanceof Mention)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
31920
|
-
|
|
32861
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
32862
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
32863
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
31921
32864
|
instance._cachedJsonLd = structuredClone(json);
|
|
31922
32865
|
} catch {
|
|
31923
32866
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -32068,7 +33011,9 @@ var Move = class Move extends Activity {
|
|
|
32068
33011
|
_fromSubclass: true
|
|
32069
33012
|
});
|
|
32070
33013
|
if (!(instance instanceof Move)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
32071
|
-
|
|
33014
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
33015
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
33016
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
32072
33017
|
instance._cachedJsonLd = structuredClone(json);
|
|
32073
33018
|
} catch {
|
|
32074
33019
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -32630,6 +33575,7 @@ var Note = class Note extends Object$1 {
|
|
|
32630
33575
|
_fromSubclass: true
|
|
32631
33576
|
});
|
|
32632
33577
|
if (!(instance instanceof Note)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
33578
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
32633
33579
|
const _3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote = [];
|
|
32634
33580
|
let _3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote__array = values["https://w3id.org/fep/044f#quote"];
|
|
32635
33581
|
for (const v of _3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote__array == null ? [] : _3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote__array.length === 1 && "@list" in _3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote__array[0] ? _3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote__array[0]["@list"] : _3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote__array) {
|
|
@@ -32643,7 +33589,11 @@ var Note = class Note extends Object$1 {
|
|
|
32643
33589
|
...options,
|
|
32644
33590
|
baseUrl: options.baseUrl
|
|
32645
33591
|
});
|
|
32646
|
-
if (typeof decoded === "undefined")
|
|
33592
|
+
if (typeof decoded === "undefined") {
|
|
33593
|
+
shouldCacheJsonLd = false;
|
|
33594
|
+
continue;
|
|
33595
|
+
}
|
|
33596
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
32647
33597
|
_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote.push(decoded);
|
|
32648
33598
|
}
|
|
32649
33599
|
instance.#_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote = _3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote;
|
|
@@ -32654,7 +33604,11 @@ var Note = class Note extends Object$1 {
|
|
|
32654
33604
|
for (const v of _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array == null ? [] : _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array.length === 1 && "@list" in _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array[0] ? _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array[0]["@list"] : _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array) {
|
|
32655
33605
|
if (v == null) continue;
|
|
32656
33606
|
const decoded = new URL(v["@value"]);
|
|
32657
|
-
if (typeof decoded === "undefined")
|
|
33607
|
+
if (typeof decoded === "undefined") {
|
|
33608
|
+
shouldCacheJsonLd = false;
|
|
33609
|
+
continue;
|
|
33610
|
+
}
|
|
33611
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
32658
33612
|
_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl.push(decoded);
|
|
32659
33613
|
}
|
|
32660
33614
|
instance.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl = _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl;
|
|
@@ -32671,11 +33625,16 @@ var Note = class Note extends Object$1 {
|
|
|
32671
33625
|
...options,
|
|
32672
33626
|
baseUrl: options.baseUrl
|
|
32673
33627
|
});
|
|
32674
|
-
if (typeof decoded === "undefined")
|
|
33628
|
+
if (typeof decoded === "undefined") {
|
|
33629
|
+
shouldCacheJsonLd = false;
|
|
33630
|
+
continue;
|
|
33631
|
+
}
|
|
33632
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
32675
33633
|
_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization.push(decoded);
|
|
32676
33634
|
}
|
|
32677
33635
|
instance.#_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization = _ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization;
|
|
32678
|
-
|
|
33636
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
33637
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
32679
33638
|
instance._cachedJsonLd = structuredClone(json);
|
|
32680
33639
|
} catch {
|
|
32681
33640
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -33079,6 +34038,7 @@ var OrderedCollection = class OrderedCollection extends Collection {
|
|
|
33079
34038
|
_fromSubclass: true
|
|
33080
34039
|
});
|
|
33081
34040
|
if (!(instance instanceof OrderedCollection)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
34041
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
33082
34042
|
const _2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = [];
|
|
33083
34043
|
let _2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items__array = values["https://www.w3.org/ns/activitystreams#items"];
|
|
33084
34044
|
for (const v of _2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items__array == null ? [] : _2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items__array.length === 1 && "@list" in _2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items__array[0] ? _2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items__array[0]["@list"] : _2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items__array) {
|
|
@@ -33165,11 +34125,16 @@ var OrderedCollection = class OrderedCollection extends Collection {
|
|
|
33165
34125
|
...options,
|
|
33166
34126
|
baseUrl: options.baseUrl
|
|
33167
34127
|
}) : void 0;
|
|
33168
|
-
if (typeof decoded === "undefined")
|
|
34128
|
+
if (typeof decoded === "undefined") {
|
|
34129
|
+
shouldCacheJsonLd = false;
|
|
34130
|
+
continue;
|
|
34131
|
+
}
|
|
34132
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
33169
34133
|
_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items.push(decoded);
|
|
33170
34134
|
}
|
|
33171
34135
|
instance.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = _2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items;
|
|
33172
|
-
|
|
34136
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
34137
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
33173
34138
|
instance._cachedJsonLd = structuredClone(json);
|
|
33174
34139
|
} catch {
|
|
33175
34140
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -33593,6 +34558,7 @@ var OrderedCollectionPage = class OrderedCollectionPage extends CollectionPage {
|
|
|
33593
34558
|
_fromSubclass: true
|
|
33594
34559
|
});
|
|
33595
34560
|
if (!(instance instanceof OrderedCollectionPage)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
34561
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
33596
34562
|
const _2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = [];
|
|
33597
34563
|
let _2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items__array = values["https://www.w3.org/ns/activitystreams#items"];
|
|
33598
34564
|
for (const v of _2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items__array == null ? [] : _2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items__array.length === 1 && "@list" in _2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items__array[0] ? _2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items__array[0]["@list"] : _2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items__array) {
|
|
@@ -33679,7 +34645,11 @@ var OrderedCollectionPage = class OrderedCollectionPage extends CollectionPage {
|
|
|
33679
34645
|
...options,
|
|
33680
34646
|
baseUrl: options.baseUrl
|
|
33681
34647
|
}) : void 0;
|
|
33682
|
-
if (typeof decoded === "undefined")
|
|
34648
|
+
if (typeof decoded === "undefined") {
|
|
34649
|
+
shouldCacheJsonLd = false;
|
|
34650
|
+
continue;
|
|
34651
|
+
}
|
|
34652
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
33683
34653
|
_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items.push(decoded);
|
|
33684
34654
|
}
|
|
33685
34655
|
instance.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = _2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items;
|
|
@@ -33688,11 +34658,16 @@ var OrderedCollectionPage = class OrderedCollectionPage extends CollectionPage {
|
|
|
33688
34658
|
for (const v of _2W4yinFwqmpneu2h4m1mZ3pcLADd_startIndex__array == null ? [] : _2W4yinFwqmpneu2h4m1mZ3pcLADd_startIndex__array.length === 1 && "@list" in _2W4yinFwqmpneu2h4m1mZ3pcLADd_startIndex__array[0] ? _2W4yinFwqmpneu2h4m1mZ3pcLADd_startIndex__array[0]["@list"] : _2W4yinFwqmpneu2h4m1mZ3pcLADd_startIndex__array) {
|
|
33689
34659
|
if (v == null) continue;
|
|
33690
34660
|
const decoded = v["@value"];
|
|
33691
|
-
if (typeof decoded === "undefined")
|
|
34661
|
+
if (typeof decoded === "undefined") {
|
|
34662
|
+
shouldCacheJsonLd = false;
|
|
34663
|
+
continue;
|
|
34664
|
+
}
|
|
34665
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
33692
34666
|
_2W4yinFwqmpneu2h4m1mZ3pcLADd_startIndex.push(decoded);
|
|
33693
34667
|
}
|
|
33694
34668
|
instance.#_2W4yinFwqmpneu2h4m1mZ3pcLADd_startIndex = _2W4yinFwqmpneu2h4m1mZ3pcLADd_startIndex;
|
|
33695
|
-
|
|
34669
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
34670
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
33696
34671
|
instance._cachedJsonLd = structuredClone(json);
|
|
33697
34672
|
} catch {
|
|
33698
34673
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -36622,12 +37597,17 @@ var Organization = class Organization extends Object$1 {
|
|
|
36622
37597
|
_fromSubclass: true
|
|
36623
37598
|
});
|
|
36624
37599
|
if (!(instance instanceof Organization)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
37600
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
36625
37601
|
const _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = [];
|
|
36626
37602
|
let _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername__array = values["https://www.w3.org/ns/activitystreams#preferredUsername"];
|
|
36627
37603
|
for (const v of _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername__array == null ? [] : _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername__array.length === 1 && "@list" in _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername__array[0] ? _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername__array[0]["@list"] : _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername__array) {
|
|
36628
37604
|
if (v == null) continue;
|
|
36629
|
-
const decoded = typeof v === "object" && "@value" in v && typeof v["@value"] === "string" && !("@language" in v) ? v["@value"] : typeof v === "object" && "@language" in v && "@value" in v && typeof v["@language"] === "string" && typeof v["@value"] === "string" ? new LanguageString$1(v["@value"], v["@language"]) : void 0;
|
|
36630
|
-
if (typeof decoded === "undefined")
|
|
37605
|
+
const decoded = typeof v === "object" && "@value" in v && typeof v["@value"] === "string" && !("@language" in v) ? v["@value"] : typeof v === "object" && "@language" in v && "@value" in v && typeof v["@language"] === "string" && typeof v["@value"] === "string" && isValidLanguageTag(v["@language"]) ? new LanguageString$1(v["@value"], v["@language"]) : void 0;
|
|
37606
|
+
if (typeof decoded === "undefined") {
|
|
37607
|
+
shouldCacheJsonLd = false;
|
|
37608
|
+
continue;
|
|
37609
|
+
}
|
|
37610
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
36631
37611
|
_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername.push(decoded);
|
|
36632
37612
|
}
|
|
36633
37613
|
instance.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername;
|
|
@@ -36644,7 +37624,11 @@ var Organization = class Organization extends Object$1 {
|
|
|
36644
37624
|
...options,
|
|
36645
37625
|
baseUrl: options.baseUrl
|
|
36646
37626
|
});
|
|
36647
|
-
if (typeof decoded === "undefined")
|
|
37627
|
+
if (typeof decoded === "undefined") {
|
|
37628
|
+
shouldCacheJsonLd = false;
|
|
37629
|
+
continue;
|
|
37630
|
+
}
|
|
37631
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
36648
37632
|
_axq166E2eZADq34V4MYUc8KMZdC_publicKey.push(decoded);
|
|
36649
37633
|
}
|
|
36650
37634
|
instance.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = _axq166E2eZADq34V4MYUc8KMZdC_publicKey;
|
|
@@ -36661,7 +37645,11 @@ var Organization = class Organization extends Object$1 {
|
|
|
36661
37645
|
...options,
|
|
36662
37646
|
baseUrl: options.baseUrl
|
|
36663
37647
|
});
|
|
36664
|
-
if (typeof decoded === "undefined")
|
|
37648
|
+
if (typeof decoded === "undefined") {
|
|
37649
|
+
shouldCacheJsonLd = false;
|
|
37650
|
+
continue;
|
|
37651
|
+
}
|
|
37652
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
36665
37653
|
_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(decoded);
|
|
36666
37654
|
}
|
|
36667
37655
|
instance.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod;
|
|
@@ -36670,7 +37658,11 @@ var Organization = class Organization extends Object$1 {
|
|
|
36670
37658
|
for (const v of _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers__array == null ? [] : _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers__array.length === 1 && "@list" in _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers__array[0] ? _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers__array[0]["@list"] : _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers__array) {
|
|
36671
37659
|
if (v == null) continue;
|
|
36672
37660
|
const decoded = v["@value"];
|
|
36673
|
-
if (typeof decoded === "undefined")
|
|
37661
|
+
if (typeof decoded === "undefined") {
|
|
37662
|
+
shouldCacheJsonLd = false;
|
|
37663
|
+
continue;
|
|
37664
|
+
}
|
|
37665
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
36674
37666
|
_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers.push(decoded);
|
|
36675
37667
|
}
|
|
36676
37668
|
instance.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers;
|
|
@@ -36690,7 +37682,11 @@ var Organization = class Organization extends Object$1 {
|
|
|
36690
37682
|
...options,
|
|
36691
37683
|
baseUrl: options.baseUrl
|
|
36692
37684
|
}) : void 0;
|
|
36693
|
-
if (typeof decoded === "undefined")
|
|
37685
|
+
if (typeof decoded === "undefined") {
|
|
37686
|
+
shouldCacheJsonLd = false;
|
|
37687
|
+
continue;
|
|
37688
|
+
}
|
|
37689
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
36694
37690
|
_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox.push(decoded);
|
|
36695
37691
|
}
|
|
36696
37692
|
instance.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = _3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox;
|
|
@@ -36710,7 +37706,11 @@ var Organization = class Organization extends Object$1 {
|
|
|
36710
37706
|
...options,
|
|
36711
37707
|
baseUrl: options.baseUrl
|
|
36712
37708
|
}) : void 0;
|
|
36713
|
-
if (typeof decoded === "undefined")
|
|
37709
|
+
if (typeof decoded === "undefined") {
|
|
37710
|
+
shouldCacheJsonLd = false;
|
|
37711
|
+
continue;
|
|
37712
|
+
}
|
|
37713
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
36714
37714
|
_41QwhqJouoLg3h8dRPKat21brynC_outbox.push(decoded);
|
|
36715
37715
|
}
|
|
36716
37716
|
instance.#_41QwhqJouoLg3h8dRPKat21brynC_outbox = _41QwhqJouoLg3h8dRPKat21brynC_outbox;
|
|
@@ -36727,7 +37727,11 @@ var Organization = class Organization extends Object$1 {
|
|
|
36727
37727
|
...options,
|
|
36728
37728
|
baseUrl: options.baseUrl
|
|
36729
37729
|
});
|
|
36730
|
-
if (typeof decoded === "undefined")
|
|
37730
|
+
if (typeof decoded === "undefined") {
|
|
37731
|
+
shouldCacheJsonLd = false;
|
|
37732
|
+
continue;
|
|
37733
|
+
}
|
|
37734
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
36731
37735
|
_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.push(decoded);
|
|
36732
37736
|
}
|
|
36733
37737
|
instance.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = _3yAv8jymNfNuJUDuBzJ1NQhdbAee_following;
|
|
@@ -36744,7 +37748,11 @@ var Organization = class Organization extends Object$1 {
|
|
|
36744
37748
|
...options,
|
|
36745
37749
|
baseUrl: options.baseUrl
|
|
36746
37750
|
});
|
|
36747
|
-
if (typeof decoded === "undefined")
|
|
37751
|
+
if (typeof decoded === "undefined") {
|
|
37752
|
+
shouldCacheJsonLd = false;
|
|
37753
|
+
continue;
|
|
37754
|
+
}
|
|
37755
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
36748
37756
|
_BBCTgfphhsFzpVfKTykGSpBNwoA_followers.push(decoded);
|
|
36749
37757
|
}
|
|
36750
37758
|
instance.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = _BBCTgfphhsFzpVfKTykGSpBNwoA_followers;
|
|
@@ -36761,7 +37769,11 @@ var Organization = class Organization extends Object$1 {
|
|
|
36761
37769
|
...options,
|
|
36762
37770
|
baseUrl: options.baseUrl
|
|
36763
37771
|
});
|
|
36764
|
-
if (typeof decoded === "undefined")
|
|
37772
|
+
if (typeof decoded === "undefined") {
|
|
37773
|
+
shouldCacheJsonLd = false;
|
|
37774
|
+
continue;
|
|
37775
|
+
}
|
|
37776
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
36765
37777
|
_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.push(decoded);
|
|
36766
37778
|
}
|
|
36767
37779
|
instance.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = _3bgkPwJanyTCoVFM9ovRcus8tKkU_liked;
|
|
@@ -36778,7 +37790,11 @@ var Organization = class Organization extends Object$1 {
|
|
|
36778
37790
|
...options,
|
|
36779
37791
|
baseUrl: options.baseUrl
|
|
36780
37792
|
});
|
|
36781
|
-
if (typeof decoded === "undefined")
|
|
37793
|
+
if (typeof decoded === "undefined") {
|
|
37794
|
+
shouldCacheJsonLd = false;
|
|
37795
|
+
continue;
|
|
37796
|
+
}
|
|
37797
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
36782
37798
|
_4N1vBJzXDf8NbBumeECQMFvKetja_featured.push(decoded);
|
|
36783
37799
|
}
|
|
36784
37800
|
instance.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured = _4N1vBJzXDf8NbBumeECQMFvKetja_featured;
|
|
@@ -36795,7 +37811,11 @@ var Organization = class Organization extends Object$1 {
|
|
|
36795
37811
|
...options,
|
|
36796
37812
|
baseUrl: options.baseUrl
|
|
36797
37813
|
});
|
|
36798
|
-
if (typeof decoded === "undefined")
|
|
37814
|
+
if (typeof decoded === "undefined") {
|
|
37815
|
+
shouldCacheJsonLd = false;
|
|
37816
|
+
continue;
|
|
37817
|
+
}
|
|
37818
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
36799
37819
|
_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.push(decoded);
|
|
36800
37820
|
}
|
|
36801
37821
|
instance.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = _2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags;
|
|
@@ -36812,7 +37832,11 @@ var Organization = class Organization extends Object$1 {
|
|
|
36812
37832
|
...options,
|
|
36813
37833
|
baseUrl: options.baseUrl
|
|
36814
37834
|
});
|
|
36815
|
-
if (typeof decoded === "undefined")
|
|
37835
|
+
if (typeof decoded === "undefined") {
|
|
37836
|
+
shouldCacheJsonLd = false;
|
|
37837
|
+
continue;
|
|
37838
|
+
}
|
|
37839
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
36816
37840
|
_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.push(decoded);
|
|
36817
37841
|
}
|
|
36818
37842
|
instance.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = _3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams;
|
|
@@ -36824,7 +37848,11 @@ var Organization = class Organization extends Object$1 {
|
|
|
36824
37848
|
...options,
|
|
36825
37849
|
baseUrl: options.baseUrl
|
|
36826
37850
|
});
|
|
36827
|
-
if (typeof decoded === "undefined")
|
|
37851
|
+
if (typeof decoded === "undefined") {
|
|
37852
|
+
shouldCacheJsonLd = false;
|
|
37853
|
+
continue;
|
|
37854
|
+
}
|
|
37855
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
36828
37856
|
_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.push(decoded);
|
|
36829
37857
|
}
|
|
36830
37858
|
instance.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints;
|
|
@@ -36833,7 +37861,11 @@ var Organization = class Organization extends Object$1 {
|
|
|
36833
37861
|
for (const v of _gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable__array == null ? [] : _gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable__array.length === 1 && "@list" in _gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable__array[0] ? _gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable__array[0]["@list"] : _gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable__array) {
|
|
36834
37862
|
if (v == null) continue;
|
|
36835
37863
|
const decoded = v["@value"];
|
|
36836
|
-
if (typeof decoded === "undefined")
|
|
37864
|
+
if (typeof decoded === "undefined") {
|
|
37865
|
+
shouldCacheJsonLd = false;
|
|
37866
|
+
continue;
|
|
37867
|
+
}
|
|
37868
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
36837
37869
|
_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable.push(decoded);
|
|
36838
37870
|
}
|
|
36839
37871
|
instance.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = _gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable;
|
|
@@ -36842,7 +37874,11 @@ var Organization = class Organization extends Object$1 {
|
|
|
36842
37874
|
for (const v of _2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended__array == null ? [] : _2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended__array.length === 1 && "@list" in _2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended__array[0] ? _2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended__array[0]["@list"] : _2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended__array) {
|
|
36843
37875
|
if (v == null) continue;
|
|
36844
37876
|
const decoded = v["@value"];
|
|
36845
|
-
if (typeof decoded === "undefined")
|
|
37877
|
+
if (typeof decoded === "undefined") {
|
|
37878
|
+
shouldCacheJsonLd = false;
|
|
37879
|
+
continue;
|
|
37880
|
+
}
|
|
37881
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
36846
37882
|
_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended.push(decoded);
|
|
36847
37883
|
}
|
|
36848
37884
|
instance.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = _2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended;
|
|
@@ -36851,7 +37887,11 @@ var Organization = class Organization extends Object$1 {
|
|
|
36851
37887
|
for (const v of _79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial__array == null ? [] : _79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial__array.length === 1 && "@list" in _79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial__array[0] ? _79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial__array[0]["@list"] : _79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial__array) {
|
|
36852
37888
|
if (v == null) continue;
|
|
36853
37889
|
const decoded = v["@value"];
|
|
36854
|
-
if (typeof decoded === "undefined")
|
|
37890
|
+
if (typeof decoded === "undefined") {
|
|
37891
|
+
shouldCacheJsonLd = false;
|
|
37892
|
+
continue;
|
|
37893
|
+
}
|
|
37894
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
36855
37895
|
_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial.push(decoded);
|
|
36856
37896
|
}
|
|
36857
37897
|
instance.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = _79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial;
|
|
@@ -36860,7 +37900,11 @@ var Organization = class Organization extends Object$1 {
|
|
|
36860
37900
|
for (const v of _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable__array == null ? [] : _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable__array.length === 1 && "@list" in _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable__array[0] ? _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable__array[0]["@list"] : _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable__array) {
|
|
36861
37901
|
if (v == null) continue;
|
|
36862
37902
|
const decoded = v["@value"];
|
|
36863
|
-
if (typeof decoded === "undefined")
|
|
37903
|
+
if (typeof decoded === "undefined") {
|
|
37904
|
+
shouldCacheJsonLd = false;
|
|
37905
|
+
continue;
|
|
37906
|
+
}
|
|
37907
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
36864
37908
|
_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable.push(decoded);
|
|
36865
37909
|
}
|
|
36866
37910
|
instance.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable;
|
|
@@ -36889,7 +37933,11 @@ var Organization = class Organization extends Object$1 {
|
|
|
36889
37933
|
...options,
|
|
36890
37934
|
baseUrl: options.baseUrl
|
|
36891
37935
|
}) : void 0;
|
|
36892
|
-
if (typeof decoded === "undefined")
|
|
37936
|
+
if (typeof decoded === "undefined") {
|
|
37937
|
+
shouldCacheJsonLd = false;
|
|
37938
|
+
continue;
|
|
37939
|
+
}
|
|
37940
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
36893
37941
|
_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.push(decoded);
|
|
36894
37942
|
}
|
|
36895
37943
|
instance.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = _2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo;
|
|
@@ -36918,7 +37966,11 @@ var Organization = class Organization extends Object$1 {
|
|
|
36918
37966
|
...options,
|
|
36919
37967
|
baseUrl: options.baseUrl
|
|
36920
37968
|
}) : void 0;
|
|
36921
|
-
if (typeof decoded === "undefined")
|
|
37969
|
+
if (typeof decoded === "undefined") {
|
|
37970
|
+
shouldCacheJsonLd = false;
|
|
37971
|
+
continue;
|
|
37972
|
+
}
|
|
37973
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
36922
37974
|
_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.push(decoded);
|
|
36923
37975
|
}
|
|
36924
37976
|
instance.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = _3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs;
|
|
@@ -36935,7 +37987,11 @@ var Organization = class Organization extends Object$1 {
|
|
|
36935
37987
|
...options,
|
|
36936
37988
|
baseUrl: options.baseUrl
|
|
36937
37989
|
});
|
|
36938
|
-
if (typeof decoded === "undefined")
|
|
37990
|
+
if (typeof decoded === "undefined") {
|
|
37991
|
+
shouldCacheJsonLd = false;
|
|
37992
|
+
continue;
|
|
37993
|
+
}
|
|
37994
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
36939
37995
|
_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.push(decoded);
|
|
36940
37996
|
}
|
|
36941
37997
|
instance.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = _4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service;
|
|
@@ -36944,7 +38000,11 @@ var Organization = class Organization extends Object$1 {
|
|
|
36944
38000
|
for (const v of _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage__array == null ? [] : _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage__array.length === 1 && "@list" in _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage__array[0] ? _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage__array[0]["@list"] : _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage__array) {
|
|
36945
38001
|
if (v == null) continue;
|
|
36946
38002
|
const decoded = v["@value"];
|
|
36947
|
-
if (typeof decoded === "undefined")
|
|
38003
|
+
if (typeof decoded === "undefined") {
|
|
38004
|
+
shouldCacheJsonLd = false;
|
|
38005
|
+
continue;
|
|
38006
|
+
}
|
|
38007
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
36948
38008
|
_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage.push(decoded);
|
|
36949
38009
|
}
|
|
36950
38010
|
instance.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage;
|
|
@@ -36953,11 +38013,16 @@ var Organization = class Organization extends Object$1 {
|
|
|
36953
38013
|
for (const v of _2xEU4QtkC53RAun67T81Egqt9vmL_isCat__array == null ? [] : _2xEU4QtkC53RAun67T81Egqt9vmL_isCat__array.length === 1 && "@list" in _2xEU4QtkC53RAun67T81Egqt9vmL_isCat__array[0] ? _2xEU4QtkC53RAun67T81Egqt9vmL_isCat__array[0]["@list"] : _2xEU4QtkC53RAun67T81Egqt9vmL_isCat__array) {
|
|
36954
38014
|
if (v == null) continue;
|
|
36955
38015
|
const decoded = v["@value"];
|
|
36956
|
-
if (typeof decoded === "undefined")
|
|
38016
|
+
if (typeof decoded === "undefined") {
|
|
38017
|
+
shouldCacheJsonLd = false;
|
|
38018
|
+
continue;
|
|
38019
|
+
}
|
|
38020
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
36957
38021
|
_2xEU4QtkC53RAun67T81Egqt9vmL_isCat.push(decoded);
|
|
36958
38022
|
}
|
|
36959
38023
|
instance.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = _2xEU4QtkC53RAun67T81Egqt9vmL_isCat;
|
|
36960
|
-
|
|
38024
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
38025
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
36961
38026
|
instance._cachedJsonLd = structuredClone(json);
|
|
36962
38027
|
} catch {
|
|
36963
38028
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -37236,7 +38301,9 @@ var Page = class Page extends Document {
|
|
|
37236
38301
|
_fromSubclass: true
|
|
37237
38302
|
});
|
|
37238
38303
|
if (!(instance instanceof Page)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
37239
|
-
|
|
38304
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
38305
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
38306
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
37240
38307
|
instance._cachedJsonLd = structuredClone(json);
|
|
37241
38308
|
} catch {
|
|
37242
38309
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -40155,12 +41222,17 @@ var Person = class Person extends Object$1 {
|
|
|
40155
41222
|
_fromSubclass: true
|
|
40156
41223
|
});
|
|
40157
41224
|
if (!(instance instanceof Person)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
41225
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
40158
41226
|
const _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = [];
|
|
40159
41227
|
let _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername__array = values["https://www.w3.org/ns/activitystreams#preferredUsername"];
|
|
40160
41228
|
for (const v of _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername__array == null ? [] : _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername__array.length === 1 && "@list" in _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername__array[0] ? _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername__array[0]["@list"] : _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername__array) {
|
|
40161
41229
|
if (v == null) continue;
|
|
40162
|
-
const decoded = typeof v === "object" && "@value" in v && typeof v["@value"] === "string" && !("@language" in v) ? v["@value"] : typeof v === "object" && "@language" in v && "@value" in v && typeof v["@language"] === "string" && typeof v["@value"] === "string" ? new LanguageString$1(v["@value"], v["@language"]) : void 0;
|
|
40163
|
-
if (typeof decoded === "undefined")
|
|
41230
|
+
const decoded = typeof v === "object" && "@value" in v && typeof v["@value"] === "string" && !("@language" in v) ? v["@value"] : typeof v === "object" && "@language" in v && "@value" in v && typeof v["@language"] === "string" && typeof v["@value"] === "string" && isValidLanguageTag(v["@language"]) ? new LanguageString$1(v["@value"], v["@language"]) : void 0;
|
|
41231
|
+
if (typeof decoded === "undefined") {
|
|
41232
|
+
shouldCacheJsonLd = false;
|
|
41233
|
+
continue;
|
|
41234
|
+
}
|
|
41235
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
40164
41236
|
_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername.push(decoded);
|
|
40165
41237
|
}
|
|
40166
41238
|
instance.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername;
|
|
@@ -40177,7 +41249,11 @@ var Person = class Person extends Object$1 {
|
|
|
40177
41249
|
...options,
|
|
40178
41250
|
baseUrl: options.baseUrl
|
|
40179
41251
|
});
|
|
40180
|
-
if (typeof decoded === "undefined")
|
|
41252
|
+
if (typeof decoded === "undefined") {
|
|
41253
|
+
shouldCacheJsonLd = false;
|
|
41254
|
+
continue;
|
|
41255
|
+
}
|
|
41256
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
40181
41257
|
_axq166E2eZADq34V4MYUc8KMZdC_publicKey.push(decoded);
|
|
40182
41258
|
}
|
|
40183
41259
|
instance.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = _axq166E2eZADq34V4MYUc8KMZdC_publicKey;
|
|
@@ -40194,7 +41270,11 @@ var Person = class Person extends Object$1 {
|
|
|
40194
41270
|
...options,
|
|
40195
41271
|
baseUrl: options.baseUrl
|
|
40196
41272
|
});
|
|
40197
|
-
if (typeof decoded === "undefined")
|
|
41273
|
+
if (typeof decoded === "undefined") {
|
|
41274
|
+
shouldCacheJsonLd = false;
|
|
41275
|
+
continue;
|
|
41276
|
+
}
|
|
41277
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
40198
41278
|
_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(decoded);
|
|
40199
41279
|
}
|
|
40200
41280
|
instance.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod;
|
|
@@ -40203,7 +41283,11 @@ var Person = class Person extends Object$1 {
|
|
|
40203
41283
|
for (const v of _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers__array == null ? [] : _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers__array.length === 1 && "@list" in _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers__array[0] ? _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers__array[0]["@list"] : _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers__array) {
|
|
40204
41284
|
if (v == null) continue;
|
|
40205
41285
|
const decoded = v["@value"];
|
|
40206
|
-
if (typeof decoded === "undefined")
|
|
41286
|
+
if (typeof decoded === "undefined") {
|
|
41287
|
+
shouldCacheJsonLd = false;
|
|
41288
|
+
continue;
|
|
41289
|
+
}
|
|
41290
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
40207
41291
|
_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers.push(decoded);
|
|
40208
41292
|
}
|
|
40209
41293
|
instance.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers;
|
|
@@ -40223,7 +41307,11 @@ var Person = class Person extends Object$1 {
|
|
|
40223
41307
|
...options,
|
|
40224
41308
|
baseUrl: options.baseUrl
|
|
40225
41309
|
}) : void 0;
|
|
40226
|
-
if (typeof decoded === "undefined")
|
|
41310
|
+
if (typeof decoded === "undefined") {
|
|
41311
|
+
shouldCacheJsonLd = false;
|
|
41312
|
+
continue;
|
|
41313
|
+
}
|
|
41314
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
40227
41315
|
_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox.push(decoded);
|
|
40228
41316
|
}
|
|
40229
41317
|
instance.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = _3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox;
|
|
@@ -40243,7 +41331,11 @@ var Person = class Person extends Object$1 {
|
|
|
40243
41331
|
...options,
|
|
40244
41332
|
baseUrl: options.baseUrl
|
|
40245
41333
|
}) : void 0;
|
|
40246
|
-
if (typeof decoded === "undefined")
|
|
41334
|
+
if (typeof decoded === "undefined") {
|
|
41335
|
+
shouldCacheJsonLd = false;
|
|
41336
|
+
continue;
|
|
41337
|
+
}
|
|
41338
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
40247
41339
|
_41QwhqJouoLg3h8dRPKat21brynC_outbox.push(decoded);
|
|
40248
41340
|
}
|
|
40249
41341
|
instance.#_41QwhqJouoLg3h8dRPKat21brynC_outbox = _41QwhqJouoLg3h8dRPKat21brynC_outbox;
|
|
@@ -40260,7 +41352,11 @@ var Person = class Person extends Object$1 {
|
|
|
40260
41352
|
...options,
|
|
40261
41353
|
baseUrl: options.baseUrl
|
|
40262
41354
|
});
|
|
40263
|
-
if (typeof decoded === "undefined")
|
|
41355
|
+
if (typeof decoded === "undefined") {
|
|
41356
|
+
shouldCacheJsonLd = false;
|
|
41357
|
+
continue;
|
|
41358
|
+
}
|
|
41359
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
40264
41360
|
_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.push(decoded);
|
|
40265
41361
|
}
|
|
40266
41362
|
instance.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = _3yAv8jymNfNuJUDuBzJ1NQhdbAee_following;
|
|
@@ -40277,7 +41373,11 @@ var Person = class Person extends Object$1 {
|
|
|
40277
41373
|
...options,
|
|
40278
41374
|
baseUrl: options.baseUrl
|
|
40279
41375
|
});
|
|
40280
|
-
if (typeof decoded === "undefined")
|
|
41376
|
+
if (typeof decoded === "undefined") {
|
|
41377
|
+
shouldCacheJsonLd = false;
|
|
41378
|
+
continue;
|
|
41379
|
+
}
|
|
41380
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
40281
41381
|
_BBCTgfphhsFzpVfKTykGSpBNwoA_followers.push(decoded);
|
|
40282
41382
|
}
|
|
40283
41383
|
instance.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = _BBCTgfphhsFzpVfKTykGSpBNwoA_followers;
|
|
@@ -40294,7 +41394,11 @@ var Person = class Person extends Object$1 {
|
|
|
40294
41394
|
...options,
|
|
40295
41395
|
baseUrl: options.baseUrl
|
|
40296
41396
|
});
|
|
40297
|
-
if (typeof decoded === "undefined")
|
|
41397
|
+
if (typeof decoded === "undefined") {
|
|
41398
|
+
shouldCacheJsonLd = false;
|
|
41399
|
+
continue;
|
|
41400
|
+
}
|
|
41401
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
40298
41402
|
_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.push(decoded);
|
|
40299
41403
|
}
|
|
40300
41404
|
instance.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = _3bgkPwJanyTCoVFM9ovRcus8tKkU_liked;
|
|
@@ -40311,7 +41415,11 @@ var Person = class Person extends Object$1 {
|
|
|
40311
41415
|
...options,
|
|
40312
41416
|
baseUrl: options.baseUrl
|
|
40313
41417
|
});
|
|
40314
|
-
if (typeof decoded === "undefined")
|
|
41418
|
+
if (typeof decoded === "undefined") {
|
|
41419
|
+
shouldCacheJsonLd = false;
|
|
41420
|
+
continue;
|
|
41421
|
+
}
|
|
41422
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
40315
41423
|
_4N1vBJzXDf8NbBumeECQMFvKetja_featured.push(decoded);
|
|
40316
41424
|
}
|
|
40317
41425
|
instance.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured = _4N1vBJzXDf8NbBumeECQMFvKetja_featured;
|
|
@@ -40328,7 +41436,11 @@ var Person = class Person extends Object$1 {
|
|
|
40328
41436
|
...options,
|
|
40329
41437
|
baseUrl: options.baseUrl
|
|
40330
41438
|
});
|
|
40331
|
-
if (typeof decoded === "undefined")
|
|
41439
|
+
if (typeof decoded === "undefined") {
|
|
41440
|
+
shouldCacheJsonLd = false;
|
|
41441
|
+
continue;
|
|
41442
|
+
}
|
|
41443
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
40332
41444
|
_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.push(decoded);
|
|
40333
41445
|
}
|
|
40334
41446
|
instance.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = _2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags;
|
|
@@ -40345,7 +41457,11 @@ var Person = class Person extends Object$1 {
|
|
|
40345
41457
|
...options,
|
|
40346
41458
|
baseUrl: options.baseUrl
|
|
40347
41459
|
});
|
|
40348
|
-
if (typeof decoded === "undefined")
|
|
41460
|
+
if (typeof decoded === "undefined") {
|
|
41461
|
+
shouldCacheJsonLd = false;
|
|
41462
|
+
continue;
|
|
41463
|
+
}
|
|
41464
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
40349
41465
|
_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.push(decoded);
|
|
40350
41466
|
}
|
|
40351
41467
|
instance.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = _3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams;
|
|
@@ -40357,7 +41473,11 @@ var Person = class Person extends Object$1 {
|
|
|
40357
41473
|
...options,
|
|
40358
41474
|
baseUrl: options.baseUrl
|
|
40359
41475
|
});
|
|
40360
|
-
if (typeof decoded === "undefined")
|
|
41476
|
+
if (typeof decoded === "undefined") {
|
|
41477
|
+
shouldCacheJsonLd = false;
|
|
41478
|
+
continue;
|
|
41479
|
+
}
|
|
41480
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
40361
41481
|
_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.push(decoded);
|
|
40362
41482
|
}
|
|
40363
41483
|
instance.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints;
|
|
@@ -40366,7 +41486,11 @@ var Person = class Person extends Object$1 {
|
|
|
40366
41486
|
for (const v of _gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable__array == null ? [] : _gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable__array.length === 1 && "@list" in _gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable__array[0] ? _gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable__array[0]["@list"] : _gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable__array) {
|
|
40367
41487
|
if (v == null) continue;
|
|
40368
41488
|
const decoded = v["@value"];
|
|
40369
|
-
if (typeof decoded === "undefined")
|
|
41489
|
+
if (typeof decoded === "undefined") {
|
|
41490
|
+
shouldCacheJsonLd = false;
|
|
41491
|
+
continue;
|
|
41492
|
+
}
|
|
41493
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
40370
41494
|
_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable.push(decoded);
|
|
40371
41495
|
}
|
|
40372
41496
|
instance.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = _gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable;
|
|
@@ -40375,7 +41499,11 @@ var Person = class Person extends Object$1 {
|
|
|
40375
41499
|
for (const v of _2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended__array == null ? [] : _2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended__array.length === 1 && "@list" in _2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended__array[0] ? _2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended__array[0]["@list"] : _2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended__array) {
|
|
40376
41500
|
if (v == null) continue;
|
|
40377
41501
|
const decoded = v["@value"];
|
|
40378
|
-
if (typeof decoded === "undefined")
|
|
41502
|
+
if (typeof decoded === "undefined") {
|
|
41503
|
+
shouldCacheJsonLd = false;
|
|
41504
|
+
continue;
|
|
41505
|
+
}
|
|
41506
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
40379
41507
|
_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended.push(decoded);
|
|
40380
41508
|
}
|
|
40381
41509
|
instance.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = _2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended;
|
|
@@ -40384,7 +41512,11 @@ var Person = class Person extends Object$1 {
|
|
|
40384
41512
|
for (const v of _79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial__array == null ? [] : _79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial__array.length === 1 && "@list" in _79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial__array[0] ? _79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial__array[0]["@list"] : _79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial__array) {
|
|
40385
41513
|
if (v == null) continue;
|
|
40386
41514
|
const decoded = v["@value"];
|
|
40387
|
-
if (typeof decoded === "undefined")
|
|
41515
|
+
if (typeof decoded === "undefined") {
|
|
41516
|
+
shouldCacheJsonLd = false;
|
|
41517
|
+
continue;
|
|
41518
|
+
}
|
|
41519
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
40388
41520
|
_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial.push(decoded);
|
|
40389
41521
|
}
|
|
40390
41522
|
instance.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = _79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial;
|
|
@@ -40393,7 +41525,11 @@ var Person = class Person extends Object$1 {
|
|
|
40393
41525
|
for (const v of _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable__array == null ? [] : _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable__array.length === 1 && "@list" in _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable__array[0] ? _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable__array[0]["@list"] : _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable__array) {
|
|
40394
41526
|
if (v == null) continue;
|
|
40395
41527
|
const decoded = v["@value"];
|
|
40396
|
-
if (typeof decoded === "undefined")
|
|
41528
|
+
if (typeof decoded === "undefined") {
|
|
41529
|
+
shouldCacheJsonLd = false;
|
|
41530
|
+
continue;
|
|
41531
|
+
}
|
|
41532
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
40397
41533
|
_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable.push(decoded);
|
|
40398
41534
|
}
|
|
40399
41535
|
instance.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable;
|
|
@@ -40422,7 +41558,11 @@ var Person = class Person extends Object$1 {
|
|
|
40422
41558
|
...options,
|
|
40423
41559
|
baseUrl: options.baseUrl
|
|
40424
41560
|
}) : void 0;
|
|
40425
|
-
if (typeof decoded === "undefined")
|
|
41561
|
+
if (typeof decoded === "undefined") {
|
|
41562
|
+
shouldCacheJsonLd = false;
|
|
41563
|
+
continue;
|
|
41564
|
+
}
|
|
41565
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
40426
41566
|
_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.push(decoded);
|
|
40427
41567
|
}
|
|
40428
41568
|
instance.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = _2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo;
|
|
@@ -40451,7 +41591,11 @@ var Person = class Person extends Object$1 {
|
|
|
40451
41591
|
...options,
|
|
40452
41592
|
baseUrl: options.baseUrl
|
|
40453
41593
|
}) : void 0;
|
|
40454
|
-
if (typeof decoded === "undefined")
|
|
41594
|
+
if (typeof decoded === "undefined") {
|
|
41595
|
+
shouldCacheJsonLd = false;
|
|
41596
|
+
continue;
|
|
41597
|
+
}
|
|
41598
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
40455
41599
|
_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.push(decoded);
|
|
40456
41600
|
}
|
|
40457
41601
|
instance.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = _3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs;
|
|
@@ -40468,7 +41612,11 @@ var Person = class Person extends Object$1 {
|
|
|
40468
41612
|
...options,
|
|
40469
41613
|
baseUrl: options.baseUrl
|
|
40470
41614
|
});
|
|
40471
|
-
if (typeof decoded === "undefined")
|
|
41615
|
+
if (typeof decoded === "undefined") {
|
|
41616
|
+
shouldCacheJsonLd = false;
|
|
41617
|
+
continue;
|
|
41618
|
+
}
|
|
41619
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
40472
41620
|
_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.push(decoded);
|
|
40473
41621
|
}
|
|
40474
41622
|
instance.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = _4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service;
|
|
@@ -40477,7 +41625,11 @@ var Person = class Person extends Object$1 {
|
|
|
40477
41625
|
for (const v of _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage__array == null ? [] : _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage__array.length === 1 && "@list" in _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage__array[0] ? _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage__array[0]["@list"] : _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage__array) {
|
|
40478
41626
|
if (v == null) continue;
|
|
40479
41627
|
const decoded = v["@value"];
|
|
40480
|
-
if (typeof decoded === "undefined")
|
|
41628
|
+
if (typeof decoded === "undefined") {
|
|
41629
|
+
shouldCacheJsonLd = false;
|
|
41630
|
+
continue;
|
|
41631
|
+
}
|
|
41632
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
40481
41633
|
_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage.push(decoded);
|
|
40482
41634
|
}
|
|
40483
41635
|
instance.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage;
|
|
@@ -40486,11 +41638,16 @@ var Person = class Person extends Object$1 {
|
|
|
40486
41638
|
for (const v of _2xEU4QtkC53RAun67T81Egqt9vmL_isCat__array == null ? [] : _2xEU4QtkC53RAun67T81Egqt9vmL_isCat__array.length === 1 && "@list" in _2xEU4QtkC53RAun67T81Egqt9vmL_isCat__array[0] ? _2xEU4QtkC53RAun67T81Egqt9vmL_isCat__array[0]["@list"] : _2xEU4QtkC53RAun67T81Egqt9vmL_isCat__array) {
|
|
40487
41639
|
if (v == null) continue;
|
|
40488
41640
|
const decoded = v["@value"];
|
|
40489
|
-
if (typeof decoded === "undefined")
|
|
41641
|
+
if (typeof decoded === "undefined") {
|
|
41642
|
+
shouldCacheJsonLd = false;
|
|
41643
|
+
continue;
|
|
41644
|
+
}
|
|
41645
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
40490
41646
|
_2xEU4QtkC53RAun67T81Egqt9vmL_isCat.push(decoded);
|
|
40491
41647
|
}
|
|
40492
41648
|
instance.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = _2xEU4QtkC53RAun67T81Egqt9vmL_isCat;
|
|
40493
|
-
|
|
41649
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
41650
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
40494
41651
|
instance._cachedJsonLd = structuredClone(json);
|
|
40495
41652
|
} catch {
|
|
40496
41653
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -40946,12 +42103,17 @@ var Place = class Place extends Object$1 {
|
|
|
40946
42103
|
_fromSubclass: true
|
|
40947
42104
|
});
|
|
40948
42105
|
if (!(instance instanceof Place)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
42106
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
40949
42107
|
const _3UCsHnBHvDAXJnBuzw3zw1VVs3Ne_accuracy = [];
|
|
40950
42108
|
let _3UCsHnBHvDAXJnBuzw3zw1VVs3Ne_accuracy__array = values["https://www.w3.org/ns/activitystreams#accuracy"];
|
|
40951
42109
|
for (const v of _3UCsHnBHvDAXJnBuzw3zw1VVs3Ne_accuracy__array == null ? [] : _3UCsHnBHvDAXJnBuzw3zw1VVs3Ne_accuracy__array.length === 1 && "@list" in _3UCsHnBHvDAXJnBuzw3zw1VVs3Ne_accuracy__array[0] ? _3UCsHnBHvDAXJnBuzw3zw1VVs3Ne_accuracy__array[0]["@list"] : _3UCsHnBHvDAXJnBuzw3zw1VVs3Ne_accuracy__array) {
|
|
40952
42110
|
if (v == null) continue;
|
|
40953
42111
|
const decoded = v["@value"];
|
|
40954
|
-
if (typeof decoded === "undefined")
|
|
42112
|
+
if (typeof decoded === "undefined") {
|
|
42113
|
+
shouldCacheJsonLd = false;
|
|
42114
|
+
continue;
|
|
42115
|
+
}
|
|
42116
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
40955
42117
|
_3UCsHnBHvDAXJnBuzw3zw1VVs3Ne_accuracy.push(decoded);
|
|
40956
42118
|
}
|
|
40957
42119
|
instance.#_3UCsHnBHvDAXJnBuzw3zw1VVs3Ne_accuracy = _3UCsHnBHvDAXJnBuzw3zw1VVs3Ne_accuracy;
|
|
@@ -40960,7 +42122,11 @@ var Place = class Place extends Object$1 {
|
|
|
40960
42122
|
for (const v of _3Q6KDcFQUJRRaBux1BL2yp5QWiBi_altitude__array == null ? [] : _3Q6KDcFQUJRRaBux1BL2yp5QWiBi_altitude__array.length === 1 && "@list" in _3Q6KDcFQUJRRaBux1BL2yp5QWiBi_altitude__array[0] ? _3Q6KDcFQUJRRaBux1BL2yp5QWiBi_altitude__array[0]["@list"] : _3Q6KDcFQUJRRaBux1BL2yp5QWiBi_altitude__array) {
|
|
40961
42123
|
if (v == null) continue;
|
|
40962
42124
|
const decoded = v["@value"];
|
|
40963
|
-
if (typeof decoded === "undefined")
|
|
42125
|
+
if (typeof decoded === "undefined") {
|
|
42126
|
+
shouldCacheJsonLd = false;
|
|
42127
|
+
continue;
|
|
42128
|
+
}
|
|
42129
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
40964
42130
|
_3Q6KDcFQUJRRaBux1BL2yp5QWiBi_altitude.push(decoded);
|
|
40965
42131
|
}
|
|
40966
42132
|
instance.#_3Q6KDcFQUJRRaBux1BL2yp5QWiBi_altitude = _3Q6KDcFQUJRRaBux1BL2yp5QWiBi_altitude;
|
|
@@ -40969,7 +42135,11 @@ var Place = class Place extends Object$1 {
|
|
|
40969
42135
|
for (const v of _3g85RoKRnaNjP7DFyLSvsWDg7HGM_latitude__array == null ? [] : _3g85RoKRnaNjP7DFyLSvsWDg7HGM_latitude__array.length === 1 && "@list" in _3g85RoKRnaNjP7DFyLSvsWDg7HGM_latitude__array[0] ? _3g85RoKRnaNjP7DFyLSvsWDg7HGM_latitude__array[0]["@list"] : _3g85RoKRnaNjP7DFyLSvsWDg7HGM_latitude__array) {
|
|
40970
42136
|
if (v == null) continue;
|
|
40971
42137
|
const decoded = v["@value"];
|
|
40972
|
-
if (typeof decoded === "undefined")
|
|
42138
|
+
if (typeof decoded === "undefined") {
|
|
42139
|
+
shouldCacheJsonLd = false;
|
|
42140
|
+
continue;
|
|
42141
|
+
}
|
|
42142
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
40973
42143
|
_3g85RoKRnaNjP7DFyLSvsWDg7HGM_latitude.push(decoded);
|
|
40974
42144
|
}
|
|
40975
42145
|
instance.#_3g85RoKRnaNjP7DFyLSvsWDg7HGM_latitude = _3g85RoKRnaNjP7DFyLSvsWDg7HGM_latitude;
|
|
@@ -40978,7 +42148,11 @@ var Place = class Place extends Object$1 {
|
|
|
40978
42148
|
for (const v of _B2GEYdS9yBAF3ho1pm1rcRg7cSf_longitude__array == null ? [] : _B2GEYdS9yBAF3ho1pm1rcRg7cSf_longitude__array.length === 1 && "@list" in _B2GEYdS9yBAF3ho1pm1rcRg7cSf_longitude__array[0] ? _B2GEYdS9yBAF3ho1pm1rcRg7cSf_longitude__array[0]["@list"] : _B2GEYdS9yBAF3ho1pm1rcRg7cSf_longitude__array) {
|
|
40979
42149
|
if (v == null) continue;
|
|
40980
42150
|
const decoded = v["@value"];
|
|
40981
|
-
if (typeof decoded === "undefined")
|
|
42151
|
+
if (typeof decoded === "undefined") {
|
|
42152
|
+
shouldCacheJsonLd = false;
|
|
42153
|
+
continue;
|
|
42154
|
+
}
|
|
42155
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
40982
42156
|
_B2GEYdS9yBAF3ho1pm1rcRg7cSf_longitude.push(decoded);
|
|
40983
42157
|
}
|
|
40984
42158
|
instance.#_B2GEYdS9yBAF3ho1pm1rcRg7cSf_longitude = _B2GEYdS9yBAF3ho1pm1rcRg7cSf_longitude;
|
|
@@ -40987,7 +42161,11 @@ var Place = class Place extends Object$1 {
|
|
|
40987
42161
|
for (const v of _3ga86BKHUtRkGx5PHBjRiUXXzwnw_radius__array == null ? [] : _3ga86BKHUtRkGx5PHBjRiUXXzwnw_radius__array.length === 1 && "@list" in _3ga86BKHUtRkGx5PHBjRiUXXzwnw_radius__array[0] ? _3ga86BKHUtRkGx5PHBjRiUXXzwnw_radius__array[0]["@list"] : _3ga86BKHUtRkGx5PHBjRiUXXzwnw_radius__array) {
|
|
40988
42162
|
if (v == null) continue;
|
|
40989
42163
|
const decoded = v["@value"];
|
|
40990
|
-
if (typeof decoded === "undefined")
|
|
42164
|
+
if (typeof decoded === "undefined") {
|
|
42165
|
+
shouldCacheJsonLd = false;
|
|
42166
|
+
continue;
|
|
42167
|
+
}
|
|
42168
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
40991
42169
|
_3ga86BKHUtRkGx5PHBjRiUXXzwnw_radius.push(decoded);
|
|
40992
42170
|
}
|
|
40993
42171
|
instance.#_3ga86BKHUtRkGx5PHBjRiUXXzwnw_radius = _3ga86BKHUtRkGx5PHBjRiUXXzwnw_radius;
|
|
@@ -40996,11 +42174,16 @@ var Place = class Place extends Object$1 {
|
|
|
40996
42174
|
for (const v of _oKrwxU4V8wiKhMW1QEYQibcJh8c_units__array == null ? [] : _oKrwxU4V8wiKhMW1QEYQibcJh8c_units__array.length === 1 && "@list" in _oKrwxU4V8wiKhMW1QEYQibcJh8c_units__array[0] ? _oKrwxU4V8wiKhMW1QEYQibcJh8c_units__array[0]["@list"] : _oKrwxU4V8wiKhMW1QEYQibcJh8c_units__array) {
|
|
40997
42175
|
if (v == null) continue;
|
|
40998
42176
|
const decoded = typeof v === "object" && "@value" in v && (v["@value"] == "cm" || v["@value"] == "feet" || v["@value"] == "inches" || v["@value"] == "km" || v["@value"] == "m" || v["@value"] == "miles") ? v["@value"] : v != null && typeof v === "object" && "@id" in v && typeof v["@id"] === "string" && v["@id"] !== "" ? v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].includes("/", 5) ? v["@id"].slice(5, v["@id"].indexOf("/", 5)) : v["@id"].slice(5)) + (v["@id"].includes("/", 5) ? v["@id"].slice(v["@id"].indexOf("/", 5)) : "")) : URL.canParse(v["@id"]) && options.baseUrl ? new URL(v["@id"]) : new URL(v["@id"], options.baseUrl) : void 0;
|
|
40999
|
-
if (typeof decoded === "undefined")
|
|
42177
|
+
if (typeof decoded === "undefined") {
|
|
42178
|
+
shouldCacheJsonLd = false;
|
|
42179
|
+
continue;
|
|
42180
|
+
}
|
|
42181
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
41000
42182
|
_oKrwxU4V8wiKhMW1QEYQibcJh8c_units.push(decoded);
|
|
41001
42183
|
}
|
|
41002
42184
|
instance.#_oKrwxU4V8wiKhMW1QEYQibcJh8c_units = _oKrwxU4V8wiKhMW1QEYQibcJh8c_units;
|
|
41003
|
-
|
|
42185
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
42186
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
41004
42187
|
instance._cachedJsonLd = structuredClone(json);
|
|
41005
42188
|
} catch {
|
|
41006
42189
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -41352,6 +42535,7 @@ var Profile = class Profile extends Object$1 {
|
|
|
41352
42535
|
_fromSubclass: true
|
|
41353
42536
|
});
|
|
41354
42537
|
if (!(instance instanceof Profile)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
42538
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
41355
42539
|
const _3CLQ1PLSXrhSQbTGGHuxNyaEFKM1_describes = [];
|
|
41356
42540
|
let _3CLQ1PLSXrhSQbTGGHuxNyaEFKM1_describes__array = values["https://www.w3.org/ns/activitystreams#describes"];
|
|
41357
42541
|
for (const v of _3CLQ1PLSXrhSQbTGGHuxNyaEFKM1_describes__array == null ? [] : _3CLQ1PLSXrhSQbTGGHuxNyaEFKM1_describes__array.length === 1 && "@list" in _3CLQ1PLSXrhSQbTGGHuxNyaEFKM1_describes__array[0] ? _3CLQ1PLSXrhSQbTGGHuxNyaEFKM1_describes__array[0]["@list"] : _3CLQ1PLSXrhSQbTGGHuxNyaEFKM1_describes__array) {
|
|
@@ -41365,11 +42549,16 @@ var Profile = class Profile extends Object$1 {
|
|
|
41365
42549
|
...options,
|
|
41366
42550
|
baseUrl: options.baseUrl
|
|
41367
42551
|
});
|
|
41368
|
-
if (typeof decoded === "undefined")
|
|
42552
|
+
if (typeof decoded === "undefined") {
|
|
42553
|
+
shouldCacheJsonLd = false;
|
|
42554
|
+
continue;
|
|
42555
|
+
}
|
|
42556
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
41369
42557
|
_3CLQ1PLSXrhSQbTGGHuxNyaEFKM1_describes.push(decoded);
|
|
41370
42558
|
}
|
|
41371
42559
|
instance.#_3CLQ1PLSXrhSQbTGGHuxNyaEFKM1_describes = _3CLQ1PLSXrhSQbTGGHuxNyaEFKM1_describes;
|
|
41372
|
-
|
|
42560
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
42561
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
41373
42562
|
instance._cachedJsonLd = structuredClone(json);
|
|
41374
42563
|
} catch {
|
|
41375
42564
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -42213,6 +43402,7 @@ var Question = class Question extends IntransitiveActivity {
|
|
|
42213
43402
|
_fromSubclass: true
|
|
42214
43403
|
});
|
|
42215
43404
|
if (!(instance instanceof Question)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
43405
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
42216
43406
|
const _2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf = [];
|
|
42217
43407
|
let _2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf__array = values["https://www.w3.org/ns/activitystreams#oneOf"];
|
|
42218
43408
|
for (const v of _2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf__array == null ? [] : _2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf__array.length === 1 && "@list" in _2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf__array[0] ? _2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf__array[0]["@list"] : _2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf__array) {
|
|
@@ -42226,7 +43416,11 @@ var Question = class Question extends IntransitiveActivity {
|
|
|
42226
43416
|
...options,
|
|
42227
43417
|
baseUrl: options.baseUrl
|
|
42228
43418
|
});
|
|
42229
|
-
if (typeof decoded === "undefined")
|
|
43419
|
+
if (typeof decoded === "undefined") {
|
|
43420
|
+
shouldCacheJsonLd = false;
|
|
43421
|
+
continue;
|
|
43422
|
+
}
|
|
43423
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
42230
43424
|
_2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf.push(decoded);
|
|
42231
43425
|
}
|
|
42232
43426
|
instance.#_2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf = _2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf;
|
|
@@ -42243,7 +43437,11 @@ var Question = class Question extends IntransitiveActivity {
|
|
|
42243
43437
|
...options,
|
|
42244
43438
|
baseUrl: options.baseUrl
|
|
42245
43439
|
});
|
|
42246
|
-
if (typeof decoded === "undefined")
|
|
43440
|
+
if (typeof decoded === "undefined") {
|
|
43441
|
+
shouldCacheJsonLd = false;
|
|
43442
|
+
continue;
|
|
43443
|
+
}
|
|
43444
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
42247
43445
|
_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf.push(decoded);
|
|
42248
43446
|
}
|
|
42249
43447
|
instance.#_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf = _2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf;
|
|
@@ -42252,7 +43450,11 @@ var Question = class Question extends IntransitiveActivity {
|
|
|
42252
43450
|
for (const v of _3KronwL8DiiKBRcJFKQPiEHm8xb6_closed__array == null ? [] : _3KronwL8DiiKBRcJFKQPiEHm8xb6_closed__array.length === 1 && "@list" in _3KronwL8DiiKBRcJFKQPiEHm8xb6_closed__array[0] ? _3KronwL8DiiKBRcJFKQPiEHm8xb6_closed__array[0]["@list"] : _3KronwL8DiiKBRcJFKQPiEHm8xb6_closed__array) {
|
|
42253
43451
|
if (v == null) continue;
|
|
42254
43452
|
const decoded = typeof v === "object" && "@type" in v && "@value" in v && typeof v["@value"] === "string" && v["@type"] === "http://www.w3.org/2001/XMLSchema#dateTime" && new Date(v["@value"]).toString() !== "Invalid Date" ? Temporal.Instant.from(v["@value"].substring(19).match(/[Z+-]/) ? v["@value"] : v["@value"] + "Z") : typeof v === "object" && "@value" in v && typeof v["@value"] === "boolean" ? v["@value"] : void 0;
|
|
42255
|
-
if (typeof decoded === "undefined")
|
|
43453
|
+
if (typeof decoded === "undefined") {
|
|
43454
|
+
shouldCacheJsonLd = false;
|
|
43455
|
+
continue;
|
|
43456
|
+
}
|
|
43457
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
42256
43458
|
_3KronwL8DiiKBRcJFKQPiEHm8xb6_closed.push(decoded);
|
|
42257
43459
|
}
|
|
42258
43460
|
instance.#_3KronwL8DiiKBRcJFKQPiEHm8xb6_closed = _3KronwL8DiiKBRcJFKQPiEHm8xb6_closed;
|
|
@@ -42261,7 +43463,11 @@ var Question = class Question extends IntransitiveActivity {
|
|
|
42261
43463
|
for (const v of _3H4RdST7dxfmghccvE3rKD3KgcxG_votersCount__array == null ? [] : _3H4RdST7dxfmghccvE3rKD3KgcxG_votersCount__array.length === 1 && "@list" in _3H4RdST7dxfmghccvE3rKD3KgcxG_votersCount__array[0] ? _3H4RdST7dxfmghccvE3rKD3KgcxG_votersCount__array[0]["@list"] : _3H4RdST7dxfmghccvE3rKD3KgcxG_votersCount__array) {
|
|
42262
43464
|
if (v == null) continue;
|
|
42263
43465
|
const decoded = v["@value"];
|
|
42264
|
-
if (typeof decoded === "undefined")
|
|
43466
|
+
if (typeof decoded === "undefined") {
|
|
43467
|
+
shouldCacheJsonLd = false;
|
|
43468
|
+
continue;
|
|
43469
|
+
}
|
|
43470
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
42265
43471
|
_3H4RdST7dxfmghccvE3rKD3KgcxG_votersCount.push(decoded);
|
|
42266
43472
|
}
|
|
42267
43473
|
instance.#_3H4RdST7dxfmghccvE3rKD3KgcxG_votersCount = _3H4RdST7dxfmghccvE3rKD3KgcxG_votersCount;
|
|
@@ -42278,7 +43484,11 @@ var Question = class Question extends IntransitiveActivity {
|
|
|
42278
43484
|
...options,
|
|
42279
43485
|
baseUrl: options.baseUrl
|
|
42280
43486
|
});
|
|
42281
|
-
if (typeof decoded === "undefined")
|
|
43487
|
+
if (typeof decoded === "undefined") {
|
|
43488
|
+
shouldCacheJsonLd = false;
|
|
43489
|
+
continue;
|
|
43490
|
+
}
|
|
43491
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
42282
43492
|
_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote.push(decoded);
|
|
42283
43493
|
}
|
|
42284
43494
|
instance.#_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote = _3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote;
|
|
@@ -42289,7 +43499,11 @@ var Question = class Question extends IntransitiveActivity {
|
|
|
42289
43499
|
for (const v of _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array == null ? [] : _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array.length === 1 && "@list" in _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array[0] ? _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array[0]["@list"] : _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array) {
|
|
42290
43500
|
if (v == null) continue;
|
|
42291
43501
|
const decoded = new URL(v["@value"]);
|
|
42292
|
-
if (typeof decoded === "undefined")
|
|
43502
|
+
if (typeof decoded === "undefined") {
|
|
43503
|
+
shouldCacheJsonLd = false;
|
|
43504
|
+
continue;
|
|
43505
|
+
}
|
|
43506
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
42293
43507
|
_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl.push(decoded);
|
|
42294
43508
|
}
|
|
42295
43509
|
instance.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl = _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl;
|
|
@@ -42306,11 +43520,16 @@ var Question = class Question extends IntransitiveActivity {
|
|
|
42306
43520
|
...options,
|
|
42307
43521
|
baseUrl: options.baseUrl
|
|
42308
43522
|
});
|
|
42309
|
-
if (typeof decoded === "undefined")
|
|
43523
|
+
if (typeof decoded === "undefined") {
|
|
43524
|
+
shouldCacheJsonLd = false;
|
|
43525
|
+
continue;
|
|
43526
|
+
}
|
|
43527
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
42310
43528
|
_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization.push(decoded);
|
|
42311
43529
|
}
|
|
42312
43530
|
instance.#_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization = _ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization;
|
|
42313
|
-
|
|
43531
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
43532
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
42314
43533
|
instance._cachedJsonLd = structuredClone(json);
|
|
42315
43534
|
} catch {
|
|
42316
43535
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -42495,7 +43714,9 @@ var Read = class Read extends Activity {
|
|
|
42495
43714
|
_fromSubclass: true
|
|
42496
43715
|
});
|
|
42497
43716
|
if (!(instance instanceof Read)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
42498
|
-
|
|
43717
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
43718
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
43719
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
42499
43720
|
instance._cachedJsonLd = structuredClone(json);
|
|
42500
43721
|
} catch {
|
|
42501
43722
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -42646,7 +43867,9 @@ var Reject = class Reject extends Activity {
|
|
|
42646
43867
|
_fromSubclass: true
|
|
42647
43868
|
});
|
|
42648
43869
|
if (!(instance instanceof Reject)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
42649
|
-
|
|
43870
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
43871
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
43872
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
42650
43873
|
instance._cachedJsonLd = structuredClone(json);
|
|
42651
43874
|
} catch {
|
|
42652
43875
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -43397,6 +44620,7 @@ var Relationship = class Relationship extends Object$1 {
|
|
|
43397
44620
|
_fromSubclass: true
|
|
43398
44621
|
});
|
|
43399
44622
|
if (!(instance instanceof Relationship)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
44623
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
43400
44624
|
const _2Zqdmi46ZnDQsECS6mzwhrv3rUKq_subject = [];
|
|
43401
44625
|
let _2Zqdmi46ZnDQsECS6mzwhrv3rUKq_subject__array = values["https://www.w3.org/ns/activitystreams#subject"];
|
|
43402
44626
|
for (const v of _2Zqdmi46ZnDQsECS6mzwhrv3rUKq_subject__array == null ? [] : _2Zqdmi46ZnDQsECS6mzwhrv3rUKq_subject__array.length === 1 && "@list" in _2Zqdmi46ZnDQsECS6mzwhrv3rUKq_subject__array[0] ? _2Zqdmi46ZnDQsECS6mzwhrv3rUKq_subject__array[0]["@list"] : _2Zqdmi46ZnDQsECS6mzwhrv3rUKq_subject__array) {
|
|
@@ -43410,7 +44634,11 @@ var Relationship = class Relationship extends Object$1 {
|
|
|
43410
44634
|
...options,
|
|
43411
44635
|
baseUrl: options.baseUrl
|
|
43412
44636
|
});
|
|
43413
|
-
if (typeof decoded === "undefined")
|
|
44637
|
+
if (typeof decoded === "undefined") {
|
|
44638
|
+
shouldCacheJsonLd = false;
|
|
44639
|
+
continue;
|
|
44640
|
+
}
|
|
44641
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
43414
44642
|
_2Zqdmi46ZnDQsECS6mzwhrv3rUKq_subject.push(decoded);
|
|
43415
44643
|
}
|
|
43416
44644
|
instance.#_2Zqdmi46ZnDQsECS6mzwhrv3rUKq_subject = _2Zqdmi46ZnDQsECS6mzwhrv3rUKq_subject;
|
|
@@ -43427,7 +44655,11 @@ var Relationship = class Relationship extends Object$1 {
|
|
|
43427
44655
|
...options,
|
|
43428
44656
|
baseUrl: options.baseUrl
|
|
43429
44657
|
});
|
|
43430
|
-
if (typeof decoded === "undefined")
|
|
44658
|
+
if (typeof decoded === "undefined") {
|
|
44659
|
+
shouldCacheJsonLd = false;
|
|
44660
|
+
continue;
|
|
44661
|
+
}
|
|
44662
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
43431
44663
|
_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object.push(decoded);
|
|
43432
44664
|
}
|
|
43433
44665
|
instance.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = _2MH19yxjn1wnHsNfa5n4JBhJzxyc_object;
|
|
@@ -43444,11 +44676,16 @@ var Relationship = class Relationship extends Object$1 {
|
|
|
43444
44676
|
...options,
|
|
43445
44677
|
baseUrl: options.baseUrl
|
|
43446
44678
|
});
|
|
43447
|
-
if (typeof decoded === "undefined")
|
|
44679
|
+
if (typeof decoded === "undefined") {
|
|
44680
|
+
shouldCacheJsonLd = false;
|
|
44681
|
+
continue;
|
|
44682
|
+
}
|
|
44683
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
43448
44684
|
_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship.push(decoded);
|
|
43449
44685
|
}
|
|
43450
44686
|
instance.#_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship = _4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship;
|
|
43451
|
-
|
|
44687
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
44688
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
43452
44689
|
instance._cachedJsonLd = structuredClone(json);
|
|
43453
44690
|
} catch {
|
|
43454
44691
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -43616,7 +44853,9 @@ var Remove = class Remove extends Activity {
|
|
|
43616
44853
|
_fromSubclass: true
|
|
43617
44854
|
});
|
|
43618
44855
|
if (!(instance instanceof Remove)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
43619
|
-
|
|
44856
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
44857
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
44858
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
43620
44859
|
instance._cachedJsonLd = structuredClone(json);
|
|
43621
44860
|
} catch {
|
|
43622
44861
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -46535,12 +47774,17 @@ var Service = class Service extends Object$1 {
|
|
|
46535
47774
|
_fromSubclass: true
|
|
46536
47775
|
});
|
|
46537
47776
|
if (!(instance instanceof Service)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
47777
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
46538
47778
|
const _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = [];
|
|
46539
47779
|
let _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername__array = values["https://www.w3.org/ns/activitystreams#preferredUsername"];
|
|
46540
47780
|
for (const v of _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername__array == null ? [] : _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername__array.length === 1 && "@list" in _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername__array[0] ? _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername__array[0]["@list"] : _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername__array) {
|
|
46541
47781
|
if (v == null) continue;
|
|
46542
|
-
const decoded = typeof v === "object" && "@value" in v && typeof v["@value"] === "string" && !("@language" in v) ? v["@value"] : typeof v === "object" && "@language" in v && "@value" in v && typeof v["@language"] === "string" && typeof v["@value"] === "string" ? new LanguageString$1(v["@value"], v["@language"]) : void 0;
|
|
46543
|
-
if (typeof decoded === "undefined")
|
|
47782
|
+
const decoded = typeof v === "object" && "@value" in v && typeof v["@value"] === "string" && !("@language" in v) ? v["@value"] : typeof v === "object" && "@language" in v && "@value" in v && typeof v["@language"] === "string" && typeof v["@value"] === "string" && isValidLanguageTag(v["@language"]) ? new LanguageString$1(v["@value"], v["@language"]) : void 0;
|
|
47783
|
+
if (typeof decoded === "undefined") {
|
|
47784
|
+
shouldCacheJsonLd = false;
|
|
47785
|
+
continue;
|
|
47786
|
+
}
|
|
47787
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
46544
47788
|
_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername.push(decoded);
|
|
46545
47789
|
}
|
|
46546
47790
|
instance.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername;
|
|
@@ -46557,7 +47801,11 @@ var Service = class Service extends Object$1 {
|
|
|
46557
47801
|
...options,
|
|
46558
47802
|
baseUrl: options.baseUrl
|
|
46559
47803
|
});
|
|
46560
|
-
if (typeof decoded === "undefined")
|
|
47804
|
+
if (typeof decoded === "undefined") {
|
|
47805
|
+
shouldCacheJsonLd = false;
|
|
47806
|
+
continue;
|
|
47807
|
+
}
|
|
47808
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
46561
47809
|
_axq166E2eZADq34V4MYUc8KMZdC_publicKey.push(decoded);
|
|
46562
47810
|
}
|
|
46563
47811
|
instance.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = _axq166E2eZADq34V4MYUc8KMZdC_publicKey;
|
|
@@ -46574,7 +47822,11 @@ var Service = class Service extends Object$1 {
|
|
|
46574
47822
|
...options,
|
|
46575
47823
|
baseUrl: options.baseUrl
|
|
46576
47824
|
});
|
|
46577
|
-
if (typeof decoded === "undefined")
|
|
47825
|
+
if (typeof decoded === "undefined") {
|
|
47826
|
+
shouldCacheJsonLd = false;
|
|
47827
|
+
continue;
|
|
47828
|
+
}
|
|
47829
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
46578
47830
|
_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(decoded);
|
|
46579
47831
|
}
|
|
46580
47832
|
instance.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod;
|
|
@@ -46583,7 +47835,11 @@ var Service = class Service extends Object$1 {
|
|
|
46583
47835
|
for (const v of _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers__array == null ? [] : _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers__array.length === 1 && "@list" in _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers__array[0] ? _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers__array[0]["@list"] : _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers__array) {
|
|
46584
47836
|
if (v == null) continue;
|
|
46585
47837
|
const decoded = v["@value"];
|
|
46586
|
-
if (typeof decoded === "undefined")
|
|
47838
|
+
if (typeof decoded === "undefined") {
|
|
47839
|
+
shouldCacheJsonLd = false;
|
|
47840
|
+
continue;
|
|
47841
|
+
}
|
|
47842
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
46587
47843
|
_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers.push(decoded);
|
|
46588
47844
|
}
|
|
46589
47845
|
instance.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers;
|
|
@@ -46603,7 +47859,11 @@ var Service = class Service extends Object$1 {
|
|
|
46603
47859
|
...options,
|
|
46604
47860
|
baseUrl: options.baseUrl
|
|
46605
47861
|
}) : void 0;
|
|
46606
|
-
if (typeof decoded === "undefined")
|
|
47862
|
+
if (typeof decoded === "undefined") {
|
|
47863
|
+
shouldCacheJsonLd = false;
|
|
47864
|
+
continue;
|
|
47865
|
+
}
|
|
47866
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
46607
47867
|
_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox.push(decoded);
|
|
46608
47868
|
}
|
|
46609
47869
|
instance.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = _3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox;
|
|
@@ -46623,7 +47883,11 @@ var Service = class Service extends Object$1 {
|
|
|
46623
47883
|
...options,
|
|
46624
47884
|
baseUrl: options.baseUrl
|
|
46625
47885
|
}) : void 0;
|
|
46626
|
-
if (typeof decoded === "undefined")
|
|
47886
|
+
if (typeof decoded === "undefined") {
|
|
47887
|
+
shouldCacheJsonLd = false;
|
|
47888
|
+
continue;
|
|
47889
|
+
}
|
|
47890
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
46627
47891
|
_41QwhqJouoLg3h8dRPKat21brynC_outbox.push(decoded);
|
|
46628
47892
|
}
|
|
46629
47893
|
instance.#_41QwhqJouoLg3h8dRPKat21brynC_outbox = _41QwhqJouoLg3h8dRPKat21brynC_outbox;
|
|
@@ -46640,7 +47904,11 @@ var Service = class Service extends Object$1 {
|
|
|
46640
47904
|
...options,
|
|
46641
47905
|
baseUrl: options.baseUrl
|
|
46642
47906
|
});
|
|
46643
|
-
if (typeof decoded === "undefined")
|
|
47907
|
+
if (typeof decoded === "undefined") {
|
|
47908
|
+
shouldCacheJsonLd = false;
|
|
47909
|
+
continue;
|
|
47910
|
+
}
|
|
47911
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
46644
47912
|
_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.push(decoded);
|
|
46645
47913
|
}
|
|
46646
47914
|
instance.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = _3yAv8jymNfNuJUDuBzJ1NQhdbAee_following;
|
|
@@ -46657,7 +47925,11 @@ var Service = class Service extends Object$1 {
|
|
|
46657
47925
|
...options,
|
|
46658
47926
|
baseUrl: options.baseUrl
|
|
46659
47927
|
});
|
|
46660
|
-
if (typeof decoded === "undefined")
|
|
47928
|
+
if (typeof decoded === "undefined") {
|
|
47929
|
+
shouldCacheJsonLd = false;
|
|
47930
|
+
continue;
|
|
47931
|
+
}
|
|
47932
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
46661
47933
|
_BBCTgfphhsFzpVfKTykGSpBNwoA_followers.push(decoded);
|
|
46662
47934
|
}
|
|
46663
47935
|
instance.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = _BBCTgfphhsFzpVfKTykGSpBNwoA_followers;
|
|
@@ -46674,7 +47946,11 @@ var Service = class Service extends Object$1 {
|
|
|
46674
47946
|
...options,
|
|
46675
47947
|
baseUrl: options.baseUrl
|
|
46676
47948
|
});
|
|
46677
|
-
if (typeof decoded === "undefined")
|
|
47949
|
+
if (typeof decoded === "undefined") {
|
|
47950
|
+
shouldCacheJsonLd = false;
|
|
47951
|
+
continue;
|
|
47952
|
+
}
|
|
47953
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
46678
47954
|
_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.push(decoded);
|
|
46679
47955
|
}
|
|
46680
47956
|
instance.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = _3bgkPwJanyTCoVFM9ovRcus8tKkU_liked;
|
|
@@ -46691,7 +47967,11 @@ var Service = class Service extends Object$1 {
|
|
|
46691
47967
|
...options,
|
|
46692
47968
|
baseUrl: options.baseUrl
|
|
46693
47969
|
});
|
|
46694
|
-
if (typeof decoded === "undefined")
|
|
47970
|
+
if (typeof decoded === "undefined") {
|
|
47971
|
+
shouldCacheJsonLd = false;
|
|
47972
|
+
continue;
|
|
47973
|
+
}
|
|
47974
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
46695
47975
|
_4N1vBJzXDf8NbBumeECQMFvKetja_featured.push(decoded);
|
|
46696
47976
|
}
|
|
46697
47977
|
instance.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured = _4N1vBJzXDf8NbBumeECQMFvKetja_featured;
|
|
@@ -46708,7 +47988,11 @@ var Service = class Service extends Object$1 {
|
|
|
46708
47988
|
...options,
|
|
46709
47989
|
baseUrl: options.baseUrl
|
|
46710
47990
|
});
|
|
46711
|
-
if (typeof decoded === "undefined")
|
|
47991
|
+
if (typeof decoded === "undefined") {
|
|
47992
|
+
shouldCacheJsonLd = false;
|
|
47993
|
+
continue;
|
|
47994
|
+
}
|
|
47995
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
46712
47996
|
_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.push(decoded);
|
|
46713
47997
|
}
|
|
46714
47998
|
instance.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = _2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags;
|
|
@@ -46725,7 +48009,11 @@ var Service = class Service extends Object$1 {
|
|
|
46725
48009
|
...options,
|
|
46726
48010
|
baseUrl: options.baseUrl
|
|
46727
48011
|
});
|
|
46728
|
-
if (typeof decoded === "undefined")
|
|
48012
|
+
if (typeof decoded === "undefined") {
|
|
48013
|
+
shouldCacheJsonLd = false;
|
|
48014
|
+
continue;
|
|
48015
|
+
}
|
|
48016
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
46729
48017
|
_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.push(decoded);
|
|
46730
48018
|
}
|
|
46731
48019
|
instance.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = _3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams;
|
|
@@ -46737,7 +48025,11 @@ var Service = class Service extends Object$1 {
|
|
|
46737
48025
|
...options,
|
|
46738
48026
|
baseUrl: options.baseUrl
|
|
46739
48027
|
});
|
|
46740
|
-
if (typeof decoded === "undefined")
|
|
48028
|
+
if (typeof decoded === "undefined") {
|
|
48029
|
+
shouldCacheJsonLd = false;
|
|
48030
|
+
continue;
|
|
48031
|
+
}
|
|
48032
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
46741
48033
|
_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.push(decoded);
|
|
46742
48034
|
}
|
|
46743
48035
|
instance.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints;
|
|
@@ -46746,7 +48038,11 @@ var Service = class Service extends Object$1 {
|
|
|
46746
48038
|
for (const v of _gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable__array == null ? [] : _gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable__array.length === 1 && "@list" in _gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable__array[0] ? _gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable__array[0]["@list"] : _gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable__array) {
|
|
46747
48039
|
if (v == null) continue;
|
|
46748
48040
|
const decoded = v["@value"];
|
|
46749
|
-
if (typeof decoded === "undefined")
|
|
48041
|
+
if (typeof decoded === "undefined") {
|
|
48042
|
+
shouldCacheJsonLd = false;
|
|
48043
|
+
continue;
|
|
48044
|
+
}
|
|
48045
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
46750
48046
|
_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable.push(decoded);
|
|
46751
48047
|
}
|
|
46752
48048
|
instance.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = _gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable;
|
|
@@ -46755,7 +48051,11 @@ var Service = class Service extends Object$1 {
|
|
|
46755
48051
|
for (const v of _2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended__array == null ? [] : _2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended__array.length === 1 && "@list" in _2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended__array[0] ? _2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended__array[0]["@list"] : _2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended__array) {
|
|
46756
48052
|
if (v == null) continue;
|
|
46757
48053
|
const decoded = v["@value"];
|
|
46758
|
-
if (typeof decoded === "undefined")
|
|
48054
|
+
if (typeof decoded === "undefined") {
|
|
48055
|
+
shouldCacheJsonLd = false;
|
|
48056
|
+
continue;
|
|
48057
|
+
}
|
|
48058
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
46759
48059
|
_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended.push(decoded);
|
|
46760
48060
|
}
|
|
46761
48061
|
instance.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = _2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended;
|
|
@@ -46764,7 +48064,11 @@ var Service = class Service extends Object$1 {
|
|
|
46764
48064
|
for (const v of _79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial__array == null ? [] : _79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial__array.length === 1 && "@list" in _79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial__array[0] ? _79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial__array[0]["@list"] : _79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial__array) {
|
|
46765
48065
|
if (v == null) continue;
|
|
46766
48066
|
const decoded = v["@value"];
|
|
46767
|
-
if (typeof decoded === "undefined")
|
|
48067
|
+
if (typeof decoded === "undefined") {
|
|
48068
|
+
shouldCacheJsonLd = false;
|
|
48069
|
+
continue;
|
|
48070
|
+
}
|
|
48071
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
46768
48072
|
_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial.push(decoded);
|
|
46769
48073
|
}
|
|
46770
48074
|
instance.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = _79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial;
|
|
@@ -46773,7 +48077,11 @@ var Service = class Service extends Object$1 {
|
|
|
46773
48077
|
for (const v of _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable__array == null ? [] : _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable__array.length === 1 && "@list" in _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable__array[0] ? _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable__array[0]["@list"] : _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable__array) {
|
|
46774
48078
|
if (v == null) continue;
|
|
46775
48079
|
const decoded = v["@value"];
|
|
46776
|
-
if (typeof decoded === "undefined")
|
|
48080
|
+
if (typeof decoded === "undefined") {
|
|
48081
|
+
shouldCacheJsonLd = false;
|
|
48082
|
+
continue;
|
|
48083
|
+
}
|
|
48084
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
46777
48085
|
_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable.push(decoded);
|
|
46778
48086
|
}
|
|
46779
48087
|
instance.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable;
|
|
@@ -46802,7 +48110,11 @@ var Service = class Service extends Object$1 {
|
|
|
46802
48110
|
...options,
|
|
46803
48111
|
baseUrl: options.baseUrl
|
|
46804
48112
|
}) : void 0;
|
|
46805
|
-
if (typeof decoded === "undefined")
|
|
48113
|
+
if (typeof decoded === "undefined") {
|
|
48114
|
+
shouldCacheJsonLd = false;
|
|
48115
|
+
continue;
|
|
48116
|
+
}
|
|
48117
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
46806
48118
|
_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.push(decoded);
|
|
46807
48119
|
}
|
|
46808
48120
|
instance.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = _2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo;
|
|
@@ -46831,7 +48143,11 @@ var Service = class Service extends Object$1 {
|
|
|
46831
48143
|
...options,
|
|
46832
48144
|
baseUrl: options.baseUrl
|
|
46833
48145
|
}) : void 0;
|
|
46834
|
-
if (typeof decoded === "undefined")
|
|
48146
|
+
if (typeof decoded === "undefined") {
|
|
48147
|
+
shouldCacheJsonLd = false;
|
|
48148
|
+
continue;
|
|
48149
|
+
}
|
|
48150
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
46835
48151
|
_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.push(decoded);
|
|
46836
48152
|
}
|
|
46837
48153
|
instance.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = _3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs;
|
|
@@ -46848,7 +48164,11 @@ var Service = class Service extends Object$1 {
|
|
|
46848
48164
|
...options,
|
|
46849
48165
|
baseUrl: options.baseUrl
|
|
46850
48166
|
});
|
|
46851
|
-
if (typeof decoded === "undefined")
|
|
48167
|
+
if (typeof decoded === "undefined") {
|
|
48168
|
+
shouldCacheJsonLd = false;
|
|
48169
|
+
continue;
|
|
48170
|
+
}
|
|
48171
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
46852
48172
|
_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.push(decoded);
|
|
46853
48173
|
}
|
|
46854
48174
|
instance.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = _4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service;
|
|
@@ -46857,7 +48177,11 @@ var Service = class Service extends Object$1 {
|
|
|
46857
48177
|
for (const v of _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage__array == null ? [] : _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage__array.length === 1 && "@list" in _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage__array[0] ? _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage__array[0]["@list"] : _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage__array) {
|
|
46858
48178
|
if (v == null) continue;
|
|
46859
48179
|
const decoded = v["@value"];
|
|
46860
|
-
if (typeof decoded === "undefined")
|
|
48180
|
+
if (typeof decoded === "undefined") {
|
|
48181
|
+
shouldCacheJsonLd = false;
|
|
48182
|
+
continue;
|
|
48183
|
+
}
|
|
48184
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
46861
48185
|
_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage.push(decoded);
|
|
46862
48186
|
}
|
|
46863
48187
|
instance.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage;
|
|
@@ -46866,11 +48190,16 @@ var Service = class Service extends Object$1 {
|
|
|
46866
48190
|
for (const v of _2xEU4QtkC53RAun67T81Egqt9vmL_isCat__array == null ? [] : _2xEU4QtkC53RAun67T81Egqt9vmL_isCat__array.length === 1 && "@list" in _2xEU4QtkC53RAun67T81Egqt9vmL_isCat__array[0] ? _2xEU4QtkC53RAun67T81Egqt9vmL_isCat__array[0]["@list"] : _2xEU4QtkC53RAun67T81Egqt9vmL_isCat__array) {
|
|
46867
48191
|
if (v == null) continue;
|
|
46868
48192
|
const decoded = v["@value"];
|
|
46869
|
-
if (typeof decoded === "undefined")
|
|
48193
|
+
if (typeof decoded === "undefined") {
|
|
48194
|
+
shouldCacheJsonLd = false;
|
|
48195
|
+
continue;
|
|
48196
|
+
}
|
|
48197
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
46870
48198
|
_2xEU4QtkC53RAun67T81Egqt9vmL_isCat.push(decoded);
|
|
46871
48199
|
}
|
|
46872
48200
|
instance.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = _2xEU4QtkC53RAun67T81Egqt9vmL_isCat;
|
|
46873
|
-
|
|
48201
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
48202
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
46874
48203
|
instance._cachedJsonLd = structuredClone(json);
|
|
46875
48204
|
} catch {
|
|
46876
48205
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -47012,6 +48341,7 @@ var Source = class {
|
|
|
47012
48341
|
#warning;
|
|
47013
48342
|
#cachedJsonLd;
|
|
47014
48343
|
#_baseUrl;
|
|
48344
|
+
#shouldCacheJsonLd = true;
|
|
47015
48345
|
id;
|
|
47016
48346
|
get _documentLoader() {
|
|
47017
48347
|
return this.#documentLoader;
|
|
@@ -47034,6 +48364,17 @@ var Source = class {
|
|
|
47034
48364
|
get _baseUrl() {
|
|
47035
48365
|
return this.#_baseUrl;
|
|
47036
48366
|
}
|
|
48367
|
+
get _shouldCacheJsonLd() {
|
|
48368
|
+
return this.#shouldCacheJsonLd;
|
|
48369
|
+
}
|
|
48370
|
+
set _shouldCacheJsonLd(value) {
|
|
48371
|
+
this.#shouldCacheJsonLd = value;
|
|
48372
|
+
}
|
|
48373
|
+
static _shouldCacheDecodedJsonLd(value) {
|
|
48374
|
+
if (value == null || typeof value !== "object") return true;
|
|
48375
|
+
if (!("_shouldCacheJsonLd" in value)) return true;
|
|
48376
|
+
return value._shouldCacheJsonLd;
|
|
48377
|
+
}
|
|
47037
48378
|
/**
|
|
47038
48379
|
* The type URI of {@link Source}: `https://www.w3.org/ns/activitystreams#Source`.
|
|
47039
48380
|
*/
|
|
@@ -47232,12 +48573,17 @@ var Source = class {
|
|
|
47232
48573
|
if (!values["@type"].includes("https://www.w3.org/ns/activitystreams#Source")) throw new TypeError("Invalid type: " + values["@type"]);
|
|
47233
48574
|
}
|
|
47234
48575
|
const instance = new this({ id: values["@id"] != null && !values["@id"].startsWith("_:") && URL.canParse(values["@id"], options.baseUrl) ? new URL(values["@id"], options.baseUrl) : void 0 }, options);
|
|
48576
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
47235
48577
|
const _4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content = [];
|
|
47236
48578
|
let _4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content__array = values["https://www.w3.org/ns/activitystreams#content"];
|
|
47237
48579
|
for (const v of _4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content__array == null ? [] : _4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content__array.length === 1 && "@list" in _4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content__array[0] ? _4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content__array[0]["@list"] : _4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content__array) {
|
|
47238
48580
|
if (v == null) continue;
|
|
47239
|
-
const decoded = typeof v === "object" && "@value" in v && typeof v["@value"] === "string" && !("@language" in v) ? v["@value"] : typeof v === "object" && "@language" in v && "@value" in v && typeof v["@language"] === "string" && typeof v["@value"] === "string" ? new LanguageString$1(v["@value"], v["@language"]) : void 0;
|
|
47240
|
-
if (typeof decoded === "undefined")
|
|
48581
|
+
const decoded = typeof v === "object" && "@value" in v && typeof v["@value"] === "string" && !("@language" in v) ? v["@value"] : typeof v === "object" && "@language" in v && "@value" in v && typeof v["@language"] === "string" && typeof v["@value"] === "string" && isValidLanguageTag(v["@language"]) ? new LanguageString$1(v["@value"], v["@language"]) : void 0;
|
|
48582
|
+
if (typeof decoded === "undefined") {
|
|
48583
|
+
shouldCacheJsonLd = false;
|
|
48584
|
+
continue;
|
|
48585
|
+
}
|
|
48586
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
47241
48587
|
_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content.push(decoded);
|
|
47242
48588
|
}
|
|
47243
48589
|
instance.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content = _4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content;
|
|
@@ -47246,11 +48592,16 @@ var Source = class {
|
|
|
47246
48592
|
for (const v of _3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType__array == null ? [] : _3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType__array.length === 1 && "@list" in _3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType__array[0] ? _3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType__array[0]["@list"] : _3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType__array) {
|
|
47247
48593
|
if (v == null) continue;
|
|
47248
48594
|
const decoded = v["@value"];
|
|
47249
|
-
if (typeof decoded === "undefined")
|
|
48595
|
+
if (typeof decoded === "undefined") {
|
|
48596
|
+
shouldCacheJsonLd = false;
|
|
48597
|
+
continue;
|
|
48598
|
+
}
|
|
48599
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
47250
48600
|
_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType.push(decoded);
|
|
47251
48601
|
}
|
|
47252
48602
|
instance.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType = _3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType;
|
|
47253
|
-
|
|
48603
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
48604
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
47254
48605
|
instance._cachedJsonLd = structuredClone(json);
|
|
47255
48606
|
} catch {
|
|
47256
48607
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -47416,7 +48767,9 @@ var TentativeAccept = class TentativeAccept extends Accept {
|
|
|
47416
48767
|
_fromSubclass: true
|
|
47417
48768
|
});
|
|
47418
48769
|
if (!(instance instanceof TentativeAccept)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
47419
|
-
|
|
48770
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
48771
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
48772
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
47420
48773
|
instance._cachedJsonLd = structuredClone(json);
|
|
47421
48774
|
} catch {
|
|
47422
48775
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -47566,7 +48919,9 @@ var TentativeReject = class TentativeReject extends Reject {
|
|
|
47566
48919
|
_fromSubclass: true
|
|
47567
48920
|
});
|
|
47568
48921
|
if (!(instance instanceof TentativeReject)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
47569
|
-
|
|
48922
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
48923
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
48924
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
47570
48925
|
instance._cachedJsonLd = structuredClone(json);
|
|
47571
48926
|
} catch {
|
|
47572
48927
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -47805,6 +49160,7 @@ var Tombstone = class Tombstone extends Object$1 {
|
|
|
47805
49160
|
_fromSubclass: true
|
|
47806
49161
|
});
|
|
47807
49162
|
if (!(instance instanceof Tombstone)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
49163
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
47808
49164
|
const _Pn8kdUztYSt4nyoAkVsMcQaLo9U_formerType = [];
|
|
47809
49165
|
let _Pn8kdUztYSt4nyoAkVsMcQaLo9U_formerType__array = values["https://www.w3.org/ns/activitystreams#formerType"];
|
|
47810
49166
|
for (const v of _Pn8kdUztYSt4nyoAkVsMcQaLo9U_formerType__array == null ? [] : _Pn8kdUztYSt4nyoAkVsMcQaLo9U_formerType__array.length === 1 && "@list" in _Pn8kdUztYSt4nyoAkVsMcQaLo9U_formerType__array[0] ? _Pn8kdUztYSt4nyoAkVsMcQaLo9U_formerType__array[0]["@list"] : _Pn8kdUztYSt4nyoAkVsMcQaLo9U_formerType__array) {
|
|
@@ -47815,7 +49171,11 @@ var Tombstone = class Tombstone extends Object$1 {
|
|
|
47815
49171
|
if (entityType == null) getLogger(["fedify", "vocab"]).warn("Ignoring unknown vocabulary entity type reference: {typeId}", { typeId: v["@id"] });
|
|
47816
49172
|
return entityType;
|
|
47817
49173
|
})();
|
|
47818
|
-
if (typeof decoded === "undefined")
|
|
49174
|
+
if (typeof decoded === "undefined") {
|
|
49175
|
+
shouldCacheJsonLd = false;
|
|
49176
|
+
continue;
|
|
49177
|
+
}
|
|
49178
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
47819
49179
|
_Pn8kdUztYSt4nyoAkVsMcQaLo9U_formerType.push(decoded);
|
|
47820
49180
|
}
|
|
47821
49181
|
instance.#_Pn8kdUztYSt4nyoAkVsMcQaLo9U_formerType = _Pn8kdUztYSt4nyoAkVsMcQaLo9U_formerType;
|
|
@@ -47824,11 +49184,16 @@ var Tombstone = class Tombstone extends Object$1 {
|
|
|
47824
49184
|
for (const v of _8g8g4LiVMhFTXskuDEqx4ascxUr_deleted__array == null ? [] : _8g8g4LiVMhFTXskuDEqx4ascxUr_deleted__array.length === 1 && "@list" in _8g8g4LiVMhFTXskuDEqx4ascxUr_deleted__array[0] ? _8g8g4LiVMhFTXskuDEqx4ascxUr_deleted__array[0]["@list"] : _8g8g4LiVMhFTXskuDEqx4ascxUr_deleted__array) {
|
|
47825
49185
|
if (v == null) continue;
|
|
47826
49186
|
const decoded = Temporal.Instant.from(v["@value"].substring(19).match(/[Z+-]/) ? v["@value"] : v["@value"] + "Z");
|
|
47827
|
-
if (typeof decoded === "undefined")
|
|
49187
|
+
if (typeof decoded === "undefined") {
|
|
49188
|
+
shouldCacheJsonLd = false;
|
|
49189
|
+
continue;
|
|
49190
|
+
}
|
|
49191
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
47828
49192
|
_8g8g4LiVMhFTXskuDEqx4ascxUr_deleted.push(decoded);
|
|
47829
49193
|
}
|
|
47830
49194
|
instance.#_8g8g4LiVMhFTXskuDEqx4ascxUr_deleted = _8g8g4LiVMhFTXskuDEqx4ascxUr_deleted;
|
|
47831
|
-
|
|
49195
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
49196
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
47832
49197
|
instance._cachedJsonLd = structuredClone(json);
|
|
47833
49198
|
} catch {
|
|
47834
49199
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -47992,7 +49357,9 @@ var Travel = class Travel extends IntransitiveActivity {
|
|
|
47992
49357
|
_fromSubclass: true
|
|
47993
49358
|
});
|
|
47994
49359
|
if (!(instance instanceof Travel)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
47995
|
-
|
|
49360
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
49361
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
49362
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
47996
49363
|
instance._cachedJsonLd = structuredClone(json);
|
|
47997
49364
|
} catch {
|
|
47998
49365
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -48156,7 +49523,9 @@ var Undo = class Undo extends Activity {
|
|
|
48156
49523
|
_fromSubclass: true
|
|
48157
49524
|
});
|
|
48158
49525
|
if (!(instance instanceof Undo)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
48159
|
-
|
|
49526
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
49527
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
49528
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
48160
49529
|
instance._cachedJsonLd = structuredClone(json);
|
|
48161
49530
|
} catch {
|
|
48162
49531
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -48368,7 +49737,9 @@ var Update = class Update extends Activity {
|
|
|
48368
49737
|
_fromSubclass: true
|
|
48369
49738
|
});
|
|
48370
49739
|
if (!(instance instanceof Update)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
48371
|
-
|
|
49740
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
49741
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
49742
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
48372
49743
|
instance._cachedJsonLd = structuredClone(json);
|
|
48373
49744
|
} catch {
|
|
48374
49745
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -48531,7 +49902,9 @@ var Video = class Video extends Document {
|
|
|
48531
49902
|
_fromSubclass: true
|
|
48532
49903
|
});
|
|
48533
49904
|
if (!(instance instanceof Video)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
48534
|
-
|
|
49905
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
49906
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
49907
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
48535
49908
|
instance._cachedJsonLd = structuredClone(json);
|
|
48536
49909
|
} catch {
|
|
48537
49910
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -48680,7 +50053,9 @@ var View = class View extends Activity {
|
|
|
48680
50053
|
_fromSubclass: true
|
|
48681
50054
|
});
|
|
48682
50055
|
if (!(instance instanceof View)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
48683
|
-
|
|
50056
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
50057
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
50058
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
48684
50059
|
instance._cachedJsonLd = structuredClone(json);
|
|
48685
50060
|
} catch {
|
|
48686
50061
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|