@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
|
@@ -155,6 +155,15 @@ var vocab_exports = /* @__PURE__ */ __exportAll({
|
|
|
155
155
|
getEntityTypeById: () => getEntityTypeById,
|
|
156
156
|
isEntityType: () => isEntityType
|
|
157
157
|
});
|
|
158
|
+
function isValidLanguageTag(language) {
|
|
159
|
+
try {
|
|
160
|
+
new Intl.Locale(language);
|
|
161
|
+
return true;
|
|
162
|
+
} catch (error) {
|
|
163
|
+
if (error instanceof RangeError) return false;
|
|
164
|
+
throw error;
|
|
165
|
+
}
|
|
166
|
+
}
|
|
158
167
|
/** Describes an object of any kind. The Object type serves as the base type for
|
|
159
168
|
* most of the other kinds of objects defined in the Activity Vocabulary,
|
|
160
169
|
* including other Core types such as {@link Activity},
|
|
@@ -168,6 +177,7 @@ var Object$1 = class Object$1 {
|
|
|
168
177
|
#warning;
|
|
169
178
|
#cachedJsonLd;
|
|
170
179
|
#_baseUrl;
|
|
180
|
+
#shouldCacheJsonLd = true;
|
|
171
181
|
id;
|
|
172
182
|
get _documentLoader() {
|
|
173
183
|
return this.#documentLoader;
|
|
@@ -190,6 +200,17 @@ var Object$1 = class Object$1 {
|
|
|
190
200
|
get _baseUrl() {
|
|
191
201
|
return this.#_baseUrl;
|
|
192
202
|
}
|
|
203
|
+
get _shouldCacheJsonLd() {
|
|
204
|
+
return this.#shouldCacheJsonLd;
|
|
205
|
+
}
|
|
206
|
+
set _shouldCacheJsonLd(value) {
|
|
207
|
+
this.#shouldCacheJsonLd = value;
|
|
208
|
+
}
|
|
209
|
+
static _shouldCacheDecodedJsonLd(value) {
|
|
210
|
+
if (value == null || typeof value !== "object") return true;
|
|
211
|
+
if (!("_shouldCacheJsonLd" in value)) return true;
|
|
212
|
+
return value._shouldCacheJsonLd;
|
|
213
|
+
}
|
|
193
214
|
/**
|
|
194
215
|
* The type URI of {@link Object}: `https://www.w3.org/ns/activitystreams#Object`.
|
|
195
216
|
*/
|
|
@@ -5372,6 +5393,7 @@ var Object$1 = class Object$1 {
|
|
|
5372
5393
|
if (!values["@type"].includes("https://www.w3.org/ns/activitystreams#Object")) throw new TypeError("Invalid type: " + values["@type"]);
|
|
5373
5394
|
}
|
|
5374
5395
|
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);
|
|
5396
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
5375
5397
|
const _49BipA5dq9eoH8LX8xdsVumveTca_attachment = [];
|
|
5376
5398
|
let _49BipA5dq9eoH8LX8xdsVumveTca_attachment__array = values["https://www.w3.org/ns/activitystreams#attachment"];
|
|
5377
5399
|
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) {
|
|
@@ -5461,7 +5483,11 @@ var Object$1 = class Object$1 {
|
|
|
5461
5483
|
...options,
|
|
5462
5484
|
baseUrl: options.baseUrl
|
|
5463
5485
|
}) : void 0;
|
|
5464
|
-
if (typeof decoded === "undefined")
|
|
5486
|
+
if (typeof decoded === "undefined") {
|
|
5487
|
+
shouldCacheJsonLd = false;
|
|
5488
|
+
continue;
|
|
5489
|
+
}
|
|
5490
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
5465
5491
|
_49BipA5dq9eoH8LX8xdsVumveTca_attachment.push(decoded);
|
|
5466
5492
|
}
|
|
5467
5493
|
instance.#_49BipA5dq9eoH8LX8xdsVumveTca_attachment = _49BipA5dq9eoH8LX8xdsVumveTca_attachment;
|
|
@@ -5490,7 +5516,11 @@ var Object$1 = class Object$1 {
|
|
|
5490
5516
|
...options,
|
|
5491
5517
|
baseUrl: options.baseUrl
|
|
5492
5518
|
}) : void 0;
|
|
5493
|
-
if (typeof decoded === "undefined")
|
|
5519
|
+
if (typeof decoded === "undefined") {
|
|
5520
|
+
shouldCacheJsonLd = false;
|
|
5521
|
+
continue;
|
|
5522
|
+
}
|
|
5523
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
5494
5524
|
_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo.push(decoded);
|
|
5495
5525
|
}
|
|
5496
5526
|
instance.#_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo = _42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo;
|
|
@@ -5507,7 +5537,11 @@ var Object$1 = class Object$1 {
|
|
|
5507
5537
|
...options,
|
|
5508
5538
|
baseUrl: options.baseUrl
|
|
5509
5539
|
});
|
|
5510
|
-
if (typeof decoded === "undefined")
|
|
5540
|
+
if (typeof decoded === "undefined") {
|
|
5541
|
+
shouldCacheJsonLd = false;
|
|
5542
|
+
continue;
|
|
5543
|
+
}
|
|
5544
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
5511
5545
|
_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience.push(decoded);
|
|
5512
5546
|
}
|
|
5513
5547
|
instance.#_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience = _3ocC3VVi88cEd5sPWL8djkZsvTN6_audience;
|
|
@@ -5515,8 +5549,12 @@ var Object$1 = class Object$1 {
|
|
|
5515
5549
|
let _4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content__array = values["https://www.w3.org/ns/activitystreams#content"];
|
|
5516
5550
|
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) {
|
|
5517
5551
|
if (v == null) continue;
|
|
5518
|
-
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(v["@value"], v["@language"]) : void 0;
|
|
5519
|
-
if (typeof decoded === "undefined")
|
|
5552
|
+
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(v["@value"], v["@language"]) : void 0;
|
|
5553
|
+
if (typeof decoded === "undefined") {
|
|
5554
|
+
shouldCacheJsonLd = false;
|
|
5555
|
+
continue;
|
|
5556
|
+
}
|
|
5557
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
5520
5558
|
_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content.push(decoded);
|
|
5521
5559
|
}
|
|
5522
5560
|
instance.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content = _4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content;
|
|
@@ -5606,7 +5644,11 @@ var Object$1 = class Object$1 {
|
|
|
5606
5644
|
...options,
|
|
5607
5645
|
baseUrl: options.baseUrl
|
|
5608
5646
|
}) : void 0;
|
|
5609
|
-
if (typeof decoded === "undefined")
|
|
5647
|
+
if (typeof decoded === "undefined") {
|
|
5648
|
+
shouldCacheJsonLd = false;
|
|
5649
|
+
continue;
|
|
5650
|
+
}
|
|
5651
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
5610
5652
|
_3mhZzGXSpQ431mBSz2kvych22v4e_context.push(decoded);
|
|
5611
5653
|
}
|
|
5612
5654
|
instance.#_3mhZzGXSpQ431mBSz2kvych22v4e_context = _3mhZzGXSpQ431mBSz2kvych22v4e_context;
|
|
@@ -5614,8 +5656,12 @@ var Object$1 = class Object$1 {
|
|
|
5614
5656
|
let _4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name__array = values["https://www.w3.org/ns/activitystreams#name"];
|
|
5615
5657
|
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) {
|
|
5616
5658
|
if (v == null) continue;
|
|
5617
|
-
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(v["@value"], v["@language"]) : void 0;
|
|
5618
|
-
if (typeof decoded === "undefined")
|
|
5659
|
+
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(v["@value"], v["@language"]) : void 0;
|
|
5660
|
+
if (typeof decoded === "undefined") {
|
|
5661
|
+
shouldCacheJsonLd = false;
|
|
5662
|
+
continue;
|
|
5663
|
+
}
|
|
5664
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
5619
5665
|
_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name.push(decoded);
|
|
5620
5666
|
}
|
|
5621
5667
|
instance.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = _4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name;
|
|
@@ -5624,7 +5670,11 @@ var Object$1 = class Object$1 {
|
|
|
5624
5670
|
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) {
|
|
5625
5671
|
if (v == null) continue;
|
|
5626
5672
|
const decoded = Temporal.Instant.from(v["@value"].substring(19).match(/[Z+-]/) ? v["@value"] : v["@value"] + "Z");
|
|
5627
|
-
if (typeof decoded === "undefined")
|
|
5673
|
+
if (typeof decoded === "undefined") {
|
|
5674
|
+
shouldCacheJsonLd = false;
|
|
5675
|
+
continue;
|
|
5676
|
+
}
|
|
5677
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
5628
5678
|
_219RwDanjScTv5tYCjwGZVCM7KZ9_endTime.push(decoded);
|
|
5629
5679
|
}
|
|
5630
5680
|
instance.#_219RwDanjScTv5tYCjwGZVCM7KZ9_endTime = _219RwDanjScTv5tYCjwGZVCM7KZ9_endTime;
|
|
@@ -5714,7 +5764,11 @@ var Object$1 = class Object$1 {
|
|
|
5714
5764
|
...options,
|
|
5715
5765
|
baseUrl: options.baseUrl
|
|
5716
5766
|
}) : void 0;
|
|
5717
|
-
if (typeof decoded === "undefined")
|
|
5767
|
+
if (typeof decoded === "undefined") {
|
|
5768
|
+
shouldCacheJsonLd = false;
|
|
5769
|
+
continue;
|
|
5770
|
+
}
|
|
5771
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
5718
5772
|
_86xFhmgBapoMvYqjbjRuDPayTrS_generator.push(decoded);
|
|
5719
5773
|
}
|
|
5720
5774
|
instance.#_86xFhmgBapoMvYqjbjRuDPayTrS_generator = _86xFhmgBapoMvYqjbjRuDPayTrS_generator;
|
|
@@ -5748,7 +5802,11 @@ var Object$1 = class Object$1 {
|
|
|
5748
5802
|
...options,
|
|
5749
5803
|
baseUrl: options.baseUrl
|
|
5750
5804
|
});
|
|
5751
|
-
if (typeof decoded === "undefined")
|
|
5805
|
+
if (typeof decoded === "undefined") {
|
|
5806
|
+
shouldCacheJsonLd = false;
|
|
5807
|
+
continue;
|
|
5808
|
+
}
|
|
5809
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
5752
5810
|
_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon.push(decoded);
|
|
5753
5811
|
}
|
|
5754
5812
|
instance.#_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon = _33CjRLy5ujtsUrwRSCrsggvGdKuR_icon;
|
|
@@ -5782,7 +5840,11 @@ var Object$1 = class Object$1 {
|
|
|
5782
5840
|
...options,
|
|
5783
5841
|
baseUrl: options.baseUrl
|
|
5784
5842
|
});
|
|
5785
|
-
if (typeof decoded === "undefined")
|
|
5843
|
+
if (typeof decoded === "undefined") {
|
|
5844
|
+
shouldCacheJsonLd = false;
|
|
5845
|
+
continue;
|
|
5846
|
+
}
|
|
5847
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
5786
5848
|
_3dXrUdkARxwyJLtJcYi1AJ92H41U_image.push(decoded);
|
|
5787
5849
|
}
|
|
5788
5850
|
instance.#_3dXrUdkARxwyJLtJcYi1AJ92H41U_image = _3dXrUdkARxwyJLtJcYi1AJ92H41U_image;
|
|
@@ -5872,7 +5934,11 @@ var Object$1 = class Object$1 {
|
|
|
5872
5934
|
...options,
|
|
5873
5935
|
baseUrl: options.baseUrl
|
|
5874
5936
|
}) : void 0;
|
|
5875
|
-
if (typeof decoded === "undefined")
|
|
5937
|
+
if (typeof decoded === "undefined") {
|
|
5938
|
+
shouldCacheJsonLd = false;
|
|
5939
|
+
continue;
|
|
5940
|
+
}
|
|
5941
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
5876
5942
|
_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo.push(decoded);
|
|
5877
5943
|
}
|
|
5878
5944
|
instance.#_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo = _3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo;
|
|
@@ -5962,7 +6028,11 @@ var Object$1 = class Object$1 {
|
|
|
5962
6028
|
...options,
|
|
5963
6029
|
baseUrl: options.baseUrl
|
|
5964
6030
|
}) : void 0;
|
|
5965
|
-
if (typeof decoded === "undefined")
|
|
6031
|
+
if (typeof decoded === "undefined") {
|
|
6032
|
+
shouldCacheJsonLd = false;
|
|
6033
|
+
continue;
|
|
6034
|
+
}
|
|
6035
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
5966
6036
|
_31k5MUZJsnsPNg8dQQJieWaXTFnR_location.push(decoded);
|
|
5967
6037
|
}
|
|
5968
6038
|
instance.#_31k5MUZJsnsPNg8dQQJieWaXTFnR_location = _31k5MUZJsnsPNg8dQQJieWaXTFnR_location;
|
|
@@ -6052,7 +6122,11 @@ var Object$1 = class Object$1 {
|
|
|
6052
6122
|
...options,
|
|
6053
6123
|
baseUrl: options.baseUrl
|
|
6054
6124
|
}) : void 0;
|
|
6055
|
-
if (typeof decoded === "undefined")
|
|
6125
|
+
if (typeof decoded === "undefined") {
|
|
6126
|
+
shouldCacheJsonLd = false;
|
|
6127
|
+
continue;
|
|
6128
|
+
}
|
|
6129
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
6056
6130
|
_gCVTegXxWWCw6wWRxa1QF65zusg_preview.push(decoded);
|
|
6057
6131
|
}
|
|
6058
6132
|
instance.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview = _gCVTegXxWWCw6wWRxa1QF65zusg_preview;
|
|
@@ -6061,7 +6135,11 @@ var Object$1 = class Object$1 {
|
|
|
6061
6135
|
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) {
|
|
6062
6136
|
if (v == null) continue;
|
|
6063
6137
|
const decoded = Temporal.Instant.from(v["@value"].substring(19).match(/[Z+-]/) ? v["@value"] : v["@value"] + "Z");
|
|
6064
|
-
if (typeof decoded === "undefined")
|
|
6138
|
+
if (typeof decoded === "undefined") {
|
|
6139
|
+
shouldCacheJsonLd = false;
|
|
6140
|
+
continue;
|
|
6141
|
+
}
|
|
6142
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
6065
6143
|
_5e258TDXtuhaFRPZiGoDfEpjdMr_published.push(decoded);
|
|
6066
6144
|
}
|
|
6067
6145
|
instance.#_5e258TDXtuhaFRPZiGoDfEpjdMr_published = _5e258TDXtuhaFRPZiGoDfEpjdMr_published;
|
|
@@ -6078,7 +6156,11 @@ var Object$1 = class Object$1 {
|
|
|
6078
6156
|
...options,
|
|
6079
6157
|
baseUrl: options.baseUrl
|
|
6080
6158
|
});
|
|
6081
|
-
if (typeof decoded === "undefined")
|
|
6159
|
+
if (typeof decoded === "undefined") {
|
|
6160
|
+
shouldCacheJsonLd = false;
|
|
6161
|
+
continue;
|
|
6162
|
+
}
|
|
6163
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
6082
6164
|
_7UpwM3JWcXhADcscukEehBorf6k_replies.push(decoded);
|
|
6083
6165
|
}
|
|
6084
6166
|
instance.#_7UpwM3JWcXhADcscukEehBorf6k_replies = _7UpwM3JWcXhADcscukEehBorf6k_replies;
|
|
@@ -6095,7 +6177,11 @@ var Object$1 = class Object$1 {
|
|
|
6095
6177
|
...options,
|
|
6096
6178
|
baseUrl: options.baseUrl
|
|
6097
6179
|
});
|
|
6098
|
-
if (typeof decoded === "undefined")
|
|
6180
|
+
if (typeof decoded === "undefined") {
|
|
6181
|
+
shouldCacheJsonLd = false;
|
|
6182
|
+
continue;
|
|
6183
|
+
}
|
|
6184
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
6099
6185
|
_3kAfck9PcEYt2L7xug5y99YPbANs_shares.push(decoded);
|
|
6100
6186
|
}
|
|
6101
6187
|
instance.#_3kAfck9PcEYt2L7xug5y99YPbANs_shares = _3kAfck9PcEYt2L7xug5y99YPbANs_shares;
|
|
@@ -6112,7 +6198,11 @@ var Object$1 = class Object$1 {
|
|
|
6112
6198
|
...options,
|
|
6113
6199
|
baseUrl: options.baseUrl
|
|
6114
6200
|
});
|
|
6115
|
-
if (typeof decoded === "undefined")
|
|
6201
|
+
if (typeof decoded === "undefined") {
|
|
6202
|
+
shouldCacheJsonLd = false;
|
|
6203
|
+
continue;
|
|
6204
|
+
}
|
|
6205
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
6116
6206
|
_S3ceDnpMdzoTRCccB9FkJWrEzYW_likes.push(decoded);
|
|
6117
6207
|
}
|
|
6118
6208
|
instance.#_S3ceDnpMdzoTRCccB9FkJWrEzYW_likes = _S3ceDnpMdzoTRCccB9FkJWrEzYW_likes;
|
|
@@ -6129,7 +6219,11 @@ var Object$1 = class Object$1 {
|
|
|
6129
6219
|
...options,
|
|
6130
6220
|
baseUrl: options.baseUrl
|
|
6131
6221
|
});
|
|
6132
|
-
if (typeof decoded === "undefined")
|
|
6222
|
+
if (typeof decoded === "undefined") {
|
|
6223
|
+
shouldCacheJsonLd = false;
|
|
6224
|
+
continue;
|
|
6225
|
+
}
|
|
6226
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
6133
6227
|
_kMatyyNAuxoTD8GQMBfA5ogThMR_emojiReactions.push(decoded);
|
|
6134
6228
|
}
|
|
6135
6229
|
instance.#_kMatyyNAuxoTD8GQMBfA5ogThMR_emojiReactions = _kMatyyNAuxoTD8GQMBfA5ogThMR_emojiReactions;
|
|
@@ -6138,7 +6232,11 @@ var Object$1 = class Object$1 {
|
|
|
6138
6232
|
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) {
|
|
6139
6233
|
if (v == null) continue;
|
|
6140
6234
|
const decoded = Temporal.Instant.from(v["@value"].substring(19).match(/[Z+-]/) ? v["@value"] : v["@value"] + "Z");
|
|
6141
|
-
if (typeof decoded === "undefined")
|
|
6235
|
+
if (typeof decoded === "undefined") {
|
|
6236
|
+
shouldCacheJsonLd = false;
|
|
6237
|
+
continue;
|
|
6238
|
+
}
|
|
6239
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
6142
6240
|
_2w3Jmue4up8iVDUA51WZqomEF438_startTime.push(decoded);
|
|
6143
6241
|
}
|
|
6144
6242
|
instance.#_2w3Jmue4up8iVDUA51WZqomEF438_startTime = _2w3Jmue4up8iVDUA51WZqomEF438_startTime;
|
|
@@ -6146,8 +6244,12 @@ var Object$1 = class Object$1 {
|
|
|
6146
6244
|
let _4LqirZspQbFWWQEbFcXAxm7tTDN1_summary__array = values["https://www.w3.org/ns/activitystreams#summary"];
|
|
6147
6245
|
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) {
|
|
6148
6246
|
if (v == null) continue;
|
|
6149
|
-
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(v["@value"], v["@language"]) : void 0;
|
|
6150
|
-
if (typeof decoded === "undefined")
|
|
6247
|
+
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(v["@value"], v["@language"]) : void 0;
|
|
6248
|
+
if (typeof decoded === "undefined") {
|
|
6249
|
+
shouldCacheJsonLd = false;
|
|
6250
|
+
continue;
|
|
6251
|
+
}
|
|
6252
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
6151
6253
|
_4LqirZspQbFWWQEbFcXAxm7tTDN1_summary.push(decoded);
|
|
6152
6254
|
}
|
|
6153
6255
|
instance.#_4LqirZspQbFWWQEbFcXAxm7tTDN1_summary = _4LqirZspQbFWWQEbFcXAxm7tTDN1_summary;
|
|
@@ -6237,7 +6339,11 @@ var Object$1 = class Object$1 {
|
|
|
6237
6339
|
...options,
|
|
6238
6340
|
baseUrl: options.baseUrl
|
|
6239
6341
|
}) : void 0;
|
|
6240
|
-
if (typeof decoded === "undefined")
|
|
6342
|
+
if (typeof decoded === "undefined") {
|
|
6343
|
+
shouldCacheJsonLd = false;
|
|
6344
|
+
continue;
|
|
6345
|
+
}
|
|
6346
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
6241
6347
|
_5chuqj6s95p5gg2sk1HntGfarRf_tag.push(decoded);
|
|
6242
6348
|
}
|
|
6243
6349
|
instance.#_5chuqj6s95p5gg2sk1HntGfarRf_tag = _5chuqj6s95p5gg2sk1HntGfarRf_tag;
|
|
@@ -6246,7 +6352,11 @@ var Object$1 = class Object$1 {
|
|
|
6246
6352
|
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) {
|
|
6247
6353
|
if (v == null) continue;
|
|
6248
6354
|
const decoded = Temporal.Instant.from(v["@value"].substring(19).match(/[Z+-]/) ? v["@value"] : v["@value"] + "Z");
|
|
6249
|
-
if (typeof decoded === "undefined")
|
|
6355
|
+
if (typeof decoded === "undefined") {
|
|
6356
|
+
shouldCacheJsonLd = false;
|
|
6357
|
+
continue;
|
|
6358
|
+
}
|
|
6359
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
6250
6360
|
_385aB7ySixcf5Un6z3VsWmThgCzQ_updated.push(decoded);
|
|
6251
6361
|
}
|
|
6252
6362
|
instance.#_385aB7ySixcf5Un6z3VsWmThgCzQ_updated = _385aB7ySixcf5Un6z3VsWmThgCzQ_updated;
|
|
@@ -6262,7 +6372,11 @@ var Object$1 = class Object$1 {
|
|
|
6262
6372
|
...options,
|
|
6263
6373
|
baseUrl: options.baseUrl
|
|
6264
6374
|
}) : void 0;
|
|
6265
|
-
if (typeof decoded === "undefined")
|
|
6375
|
+
if (typeof decoded === "undefined") {
|
|
6376
|
+
shouldCacheJsonLd = false;
|
|
6377
|
+
continue;
|
|
6378
|
+
}
|
|
6379
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
6266
6380
|
_2oPEH9MQ3aj8JVwyYuWkqoVwV865_url.push(decoded);
|
|
6267
6381
|
}
|
|
6268
6382
|
instance.#_2oPEH9MQ3aj8JVwyYuWkqoVwV865_url = _2oPEH9MQ3aj8JVwyYuWkqoVwV865_url;
|
|
@@ -6279,7 +6393,11 @@ var Object$1 = class Object$1 {
|
|
|
6279
6393
|
...options,
|
|
6280
6394
|
baseUrl: options.baseUrl
|
|
6281
6395
|
});
|
|
6282
|
-
if (typeof decoded === "undefined")
|
|
6396
|
+
if (typeof decoded === "undefined") {
|
|
6397
|
+
shouldCacheJsonLd = false;
|
|
6398
|
+
continue;
|
|
6399
|
+
}
|
|
6400
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
6283
6401
|
_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to.push(decoded);
|
|
6284
6402
|
}
|
|
6285
6403
|
instance.#_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to = _3hFbw7DTpHhq3cvVhkY8njhcsXbd_to;
|
|
@@ -6296,7 +6414,11 @@ var Object$1 = class Object$1 {
|
|
|
6296
6414
|
...options,
|
|
6297
6415
|
baseUrl: options.baseUrl
|
|
6298
6416
|
});
|
|
6299
|
-
if (typeof decoded === "undefined")
|
|
6417
|
+
if (typeof decoded === "undefined") {
|
|
6418
|
+
shouldCacheJsonLd = false;
|
|
6419
|
+
continue;
|
|
6420
|
+
}
|
|
6421
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
6300
6422
|
_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto.push(decoded);
|
|
6301
6423
|
}
|
|
6302
6424
|
instance.#_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto = _aLZupjwL8XB7tzdLgCMXdjZ6qej_bto;
|
|
@@ -6313,7 +6435,11 @@ var Object$1 = class Object$1 {
|
|
|
6313
6435
|
...options,
|
|
6314
6436
|
baseUrl: options.baseUrl
|
|
6315
6437
|
});
|
|
6316
|
-
if (typeof decoded === "undefined")
|
|
6438
|
+
if (typeof decoded === "undefined") {
|
|
6439
|
+
shouldCacheJsonLd = false;
|
|
6440
|
+
continue;
|
|
6441
|
+
}
|
|
6442
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
6317
6443
|
_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc.push(decoded);
|
|
6318
6444
|
}
|
|
6319
6445
|
instance.#_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc = _42a1SvBs24QSLzKcfjCyNTjW5a1g_cc;
|
|
@@ -6330,7 +6456,11 @@ var Object$1 = class Object$1 {
|
|
|
6330
6456
|
...options,
|
|
6331
6457
|
baseUrl: options.baseUrl
|
|
6332
6458
|
});
|
|
6333
|
-
if (typeof decoded === "undefined")
|
|
6459
|
+
if (typeof decoded === "undefined") {
|
|
6460
|
+
shouldCacheJsonLd = false;
|
|
6461
|
+
continue;
|
|
6462
|
+
}
|
|
6463
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
6334
6464
|
_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc.push(decoded);
|
|
6335
6465
|
}
|
|
6336
6466
|
instance.#_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc = _3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc;
|
|
@@ -6339,7 +6469,11 @@ var Object$1 = class Object$1 {
|
|
|
6339
6469
|
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) {
|
|
6340
6470
|
if (v == null) continue;
|
|
6341
6471
|
const decoded = v["@value"];
|
|
6342
|
-
if (typeof decoded === "undefined")
|
|
6472
|
+
if (typeof decoded === "undefined") {
|
|
6473
|
+
shouldCacheJsonLd = false;
|
|
6474
|
+
continue;
|
|
6475
|
+
}
|
|
6476
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
6343
6477
|
_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType.push(decoded);
|
|
6344
6478
|
}
|
|
6345
6479
|
instance.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType = _3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType;
|
|
@@ -6348,7 +6482,11 @@ var Object$1 = class Object$1 {
|
|
|
6348
6482
|
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) {
|
|
6349
6483
|
if (v == null) continue;
|
|
6350
6484
|
const decoded = Temporal.Duration.from(v["@value"]);
|
|
6351
|
-
if (typeof decoded === "undefined")
|
|
6485
|
+
if (typeof decoded === "undefined") {
|
|
6486
|
+
shouldCacheJsonLd = false;
|
|
6487
|
+
continue;
|
|
6488
|
+
}
|
|
6489
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
6352
6490
|
_3bNvLMBN1bCJETiTihM3wvi1B2JX_duration.push(decoded);
|
|
6353
6491
|
}
|
|
6354
6492
|
instance.#_3bNvLMBN1bCJETiTihM3wvi1B2JX_duration = _3bNvLMBN1bCJETiTihM3wvi1B2JX_duration;
|
|
@@ -6357,7 +6495,11 @@ var Object$1 = class Object$1 {
|
|
|
6357
6495
|
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) {
|
|
6358
6496
|
if (v == null) continue;
|
|
6359
6497
|
const decoded = v["@value"];
|
|
6360
|
-
if (typeof decoded === "undefined")
|
|
6498
|
+
if (typeof decoded === "undefined") {
|
|
6499
|
+
shouldCacheJsonLd = false;
|
|
6500
|
+
continue;
|
|
6501
|
+
}
|
|
6502
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
6361
6503
|
_u8gdcDTtChQ4tbSQMXc4cYWyum7_sensitive.push(decoded);
|
|
6362
6504
|
}
|
|
6363
6505
|
instance.#_u8gdcDTtChQ4tbSQMXc4cYWyum7_sensitive = _u8gdcDTtChQ4tbSQMXc4cYWyum7_sensitive;
|
|
@@ -6369,7 +6511,11 @@ var Object$1 = class Object$1 {
|
|
|
6369
6511
|
...options,
|
|
6370
6512
|
baseUrl: options.baseUrl
|
|
6371
6513
|
});
|
|
6372
|
-
if (typeof decoded === "undefined")
|
|
6514
|
+
if (typeof decoded === "undefined") {
|
|
6515
|
+
shouldCacheJsonLd = false;
|
|
6516
|
+
continue;
|
|
6517
|
+
}
|
|
6518
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
6373
6519
|
_2ZwCFoS787v8y8bXKjMoE6MAbrEB_source.push(decoded);
|
|
6374
6520
|
}
|
|
6375
6521
|
instance.#_2ZwCFoS787v8y8bXKjMoE6MAbrEB_source = _2ZwCFoS787v8y8bXKjMoE6MAbrEB_source;
|
|
@@ -6386,7 +6532,11 @@ var Object$1 = class Object$1 {
|
|
|
6386
6532
|
...options,
|
|
6387
6533
|
baseUrl: options.baseUrl
|
|
6388
6534
|
});
|
|
6389
|
-
if (typeof decoded === "undefined")
|
|
6535
|
+
if (typeof decoded === "undefined") {
|
|
6536
|
+
shouldCacheJsonLd = false;
|
|
6537
|
+
continue;
|
|
6538
|
+
}
|
|
6539
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
6390
6540
|
_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof.push(decoded);
|
|
6391
6541
|
}
|
|
6392
6542
|
instance.#_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof = _42rPnotok1ivQ2RNCKNbeFJgx8b8_proof;
|
|
@@ -6398,7 +6548,11 @@ var Object$1 = class Object$1 {
|
|
|
6398
6548
|
...options,
|
|
6399
6549
|
baseUrl: options.baseUrl
|
|
6400
6550
|
});
|
|
6401
|
-
if (typeof decoded === "undefined")
|
|
6551
|
+
if (typeof decoded === "undefined") {
|
|
6552
|
+
shouldCacheJsonLd = false;
|
|
6553
|
+
continue;
|
|
6554
|
+
}
|
|
6555
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
6402
6556
|
_2MHQfh2N74MMmDLDqYWFo7TxYQK2_interactionPolicy.push(decoded);
|
|
6403
6557
|
}
|
|
6404
6558
|
instance.#_2MHQfh2N74MMmDLDqYWFo7TxYQK2_interactionPolicy = _2MHQfh2N74MMmDLDqYWFo7TxYQK2_interactionPolicy;
|
|
@@ -6407,7 +6561,11 @@ var Object$1 = class Object$1 {
|
|
|
6407
6561
|
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) {
|
|
6408
6562
|
if (v == null) continue;
|
|
6409
6563
|
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);
|
|
6410
|
-
if (typeof decoded === "undefined")
|
|
6564
|
+
if (typeof decoded === "undefined") {
|
|
6565
|
+
shouldCacheJsonLd = false;
|
|
6566
|
+
continue;
|
|
6567
|
+
}
|
|
6568
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
6411
6569
|
_23YiVs2miQcEiUdn4u8SvjQKWYim_approvedBy.push(decoded);
|
|
6412
6570
|
}
|
|
6413
6571
|
instance.#_23YiVs2miQcEiUdn4u8SvjQKWYim_approvedBy = _23YiVs2miQcEiUdn4u8SvjQKWYim_approvedBy;
|
|
@@ -6424,7 +6582,11 @@ var Object$1 = class Object$1 {
|
|
|
6424
6582
|
...options,
|
|
6425
6583
|
baseUrl: options.baseUrl
|
|
6426
6584
|
});
|
|
6427
|
-
if (typeof decoded === "undefined")
|
|
6585
|
+
if (typeof decoded === "undefined") {
|
|
6586
|
+
shouldCacheJsonLd = false;
|
|
6587
|
+
continue;
|
|
6588
|
+
}
|
|
6589
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
6428
6590
|
_3fCeb5aXaDDd4fvkQ96BLWifBUBa_likeAuthorization.push(decoded);
|
|
6429
6591
|
}
|
|
6430
6592
|
instance.#_3fCeb5aXaDDd4fvkQ96BLWifBUBa_likeAuthorization = _3fCeb5aXaDDd4fvkQ96BLWifBUBa_likeAuthorization;
|
|
@@ -6441,7 +6603,11 @@ var Object$1 = class Object$1 {
|
|
|
6441
6603
|
...options,
|
|
6442
6604
|
baseUrl: options.baseUrl
|
|
6443
6605
|
});
|
|
6444
|
-
if (typeof decoded === "undefined")
|
|
6606
|
+
if (typeof decoded === "undefined") {
|
|
6607
|
+
shouldCacheJsonLd = false;
|
|
6608
|
+
continue;
|
|
6609
|
+
}
|
|
6610
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
6445
6611
|
_YA4wdUW7rYztAQ6SjhMnJCmcmtP_replyAuthorization.push(decoded);
|
|
6446
6612
|
}
|
|
6447
6613
|
instance.#_YA4wdUW7rYztAQ6SjhMnJCmcmtP_replyAuthorization = _YA4wdUW7rYztAQ6SjhMnJCmcmtP_replyAuthorization;
|
|
@@ -6458,11 +6624,16 @@ var Object$1 = class Object$1 {
|
|
|
6458
6624
|
...options,
|
|
6459
6625
|
baseUrl: options.baseUrl
|
|
6460
6626
|
});
|
|
6461
|
-
if (typeof decoded === "undefined")
|
|
6627
|
+
if (typeof decoded === "undefined") {
|
|
6628
|
+
shouldCacheJsonLd = false;
|
|
6629
|
+
continue;
|
|
6630
|
+
}
|
|
6631
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
6462
6632
|
_446xEaDBs3Fz6MyzP3PSBaLupkbJ_announceAuthorization.push(decoded);
|
|
6463
6633
|
}
|
|
6464
6634
|
instance.#_446xEaDBs3Fz6MyzP3PSBaLupkbJ_announceAuthorization = _446xEaDBs3Fz6MyzP3PSBaLupkbJ_announceAuthorization;
|
|
6465
|
-
|
|
6635
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
6636
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
6466
6637
|
instance._cachedJsonLd = structuredClone(json);
|
|
6467
6638
|
} catch {
|
|
6468
6639
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -6829,7 +7000,9 @@ var Emoji = class Emoji extends Object$1 {
|
|
|
6829
7000
|
_fromSubclass: true
|
|
6830
7001
|
});
|
|
6831
7002
|
if (!(instance instanceof Emoji)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
6832
|
-
|
|
7003
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
7004
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
7005
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
6833
7006
|
instance._cachedJsonLd = structuredClone(json);
|
|
6834
7007
|
} catch {
|
|
6835
7008
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -7392,6 +7565,7 @@ var ChatMessage = class ChatMessage extends Object$1 {
|
|
|
7392
7565
|
_fromSubclass: true
|
|
7393
7566
|
});
|
|
7394
7567
|
if (!(instance instanceof ChatMessage)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
7568
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
7395
7569
|
const _3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote = [];
|
|
7396
7570
|
let _3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote__array = values["https://w3id.org/fep/044f#quote"];
|
|
7397
7571
|
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) {
|
|
@@ -7405,7 +7579,11 @@ var ChatMessage = class ChatMessage extends Object$1 {
|
|
|
7405
7579
|
...options,
|
|
7406
7580
|
baseUrl: options.baseUrl
|
|
7407
7581
|
});
|
|
7408
|
-
if (typeof decoded === "undefined")
|
|
7582
|
+
if (typeof decoded === "undefined") {
|
|
7583
|
+
shouldCacheJsonLd = false;
|
|
7584
|
+
continue;
|
|
7585
|
+
}
|
|
7586
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
7409
7587
|
_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote.push(decoded);
|
|
7410
7588
|
}
|
|
7411
7589
|
instance.#_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote = _3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote;
|
|
@@ -7416,7 +7594,11 @@ var ChatMessage = class ChatMessage extends Object$1 {
|
|
|
7416
7594
|
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) {
|
|
7417
7595
|
if (v == null) continue;
|
|
7418
7596
|
const decoded = new URL(v["@value"]);
|
|
7419
|
-
if (typeof decoded === "undefined")
|
|
7597
|
+
if (typeof decoded === "undefined") {
|
|
7598
|
+
shouldCacheJsonLd = false;
|
|
7599
|
+
continue;
|
|
7600
|
+
}
|
|
7601
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
7420
7602
|
_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl.push(decoded);
|
|
7421
7603
|
}
|
|
7422
7604
|
instance.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl = _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl;
|
|
@@ -7433,11 +7615,16 @@ var ChatMessage = class ChatMessage extends Object$1 {
|
|
|
7433
7615
|
...options,
|
|
7434
7616
|
baseUrl: options.baseUrl
|
|
7435
7617
|
});
|
|
7436
|
-
if (typeof decoded === "undefined")
|
|
7618
|
+
if (typeof decoded === "undefined") {
|
|
7619
|
+
shouldCacheJsonLd = false;
|
|
7620
|
+
continue;
|
|
7621
|
+
}
|
|
7622
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
7437
7623
|
_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization.push(decoded);
|
|
7438
7624
|
}
|
|
7439
7625
|
instance.#_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization = _ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization;
|
|
7440
|
-
|
|
7626
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
7627
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
7441
7628
|
instance._cachedJsonLd = structuredClone(json);
|
|
7442
7629
|
} catch {
|
|
7443
7630
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -8925,6 +9112,7 @@ var Activity = class Activity extends Object$1 {
|
|
|
8925
9112
|
_fromSubclass: true
|
|
8926
9113
|
});
|
|
8927
9114
|
if (!(instance instanceof Activity)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
9115
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
8928
9116
|
const _2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor = [];
|
|
8929
9117
|
let _2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor__array = values["https://www.w3.org/ns/activitystreams#actor"];
|
|
8930
9118
|
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) {
|
|
@@ -8950,7 +9138,11 @@ var Activity = class Activity extends Object$1 {
|
|
|
8950
9138
|
...options,
|
|
8951
9139
|
baseUrl: options.baseUrl
|
|
8952
9140
|
}) : void 0;
|
|
8953
|
-
if (typeof decoded === "undefined")
|
|
9141
|
+
if (typeof decoded === "undefined") {
|
|
9142
|
+
shouldCacheJsonLd = false;
|
|
9143
|
+
continue;
|
|
9144
|
+
}
|
|
9145
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
8954
9146
|
_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor.push(decoded);
|
|
8955
9147
|
}
|
|
8956
9148
|
instance.#_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor = _2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor;
|
|
@@ -8967,7 +9159,11 @@ var Activity = class Activity extends Object$1 {
|
|
|
8967
9159
|
...options,
|
|
8968
9160
|
baseUrl: options.baseUrl
|
|
8969
9161
|
});
|
|
8970
|
-
if (typeof decoded === "undefined")
|
|
9162
|
+
if (typeof decoded === "undefined") {
|
|
9163
|
+
shouldCacheJsonLd = false;
|
|
9164
|
+
continue;
|
|
9165
|
+
}
|
|
9166
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
8971
9167
|
_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object.push(decoded);
|
|
8972
9168
|
}
|
|
8973
9169
|
instance.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = _2MH19yxjn1wnHsNfa5n4JBhJzxyc_object;
|
|
@@ -8984,7 +9180,11 @@ var Activity = class Activity extends Object$1 {
|
|
|
8984
9180
|
...options,
|
|
8985
9181
|
baseUrl: options.baseUrl
|
|
8986
9182
|
});
|
|
8987
|
-
if (typeof decoded === "undefined")
|
|
9183
|
+
if (typeof decoded === "undefined") {
|
|
9184
|
+
shouldCacheJsonLd = false;
|
|
9185
|
+
continue;
|
|
9186
|
+
}
|
|
9187
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
8988
9188
|
_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target.push(decoded);
|
|
8989
9189
|
}
|
|
8990
9190
|
instance.#_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target = _3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target;
|
|
@@ -9001,7 +9201,11 @@ var Activity = class Activity extends Object$1 {
|
|
|
9001
9201
|
...options,
|
|
9002
9202
|
baseUrl: options.baseUrl
|
|
9003
9203
|
});
|
|
9004
|
-
if (typeof decoded === "undefined")
|
|
9204
|
+
if (typeof decoded === "undefined") {
|
|
9205
|
+
shouldCacheJsonLd = false;
|
|
9206
|
+
continue;
|
|
9207
|
+
}
|
|
9208
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
9005
9209
|
_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result.push(decoded);
|
|
9006
9210
|
}
|
|
9007
9211
|
instance.#_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result = _u4QGFbRFcYmPEKGbPv1hpBR9r5G_result;
|
|
@@ -9018,7 +9222,11 @@ var Activity = class Activity extends Object$1 {
|
|
|
9018
9222
|
...options,
|
|
9019
9223
|
baseUrl: options.baseUrl
|
|
9020
9224
|
});
|
|
9021
|
-
if (typeof decoded === "undefined")
|
|
9225
|
+
if (typeof decoded === "undefined") {
|
|
9226
|
+
shouldCacheJsonLd = false;
|
|
9227
|
+
continue;
|
|
9228
|
+
}
|
|
9229
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
9022
9230
|
_25zu2s3VxVujgEKqrDycjE284XQR_origin.push(decoded);
|
|
9023
9231
|
}
|
|
9024
9232
|
instance.#_25zu2s3VxVujgEKqrDycjE284XQR_origin = _25zu2s3VxVujgEKqrDycjE284XQR_origin;
|
|
@@ -9035,11 +9243,16 @@ var Activity = class Activity extends Object$1 {
|
|
|
9035
9243
|
...options,
|
|
9036
9244
|
baseUrl: options.baseUrl
|
|
9037
9245
|
});
|
|
9038
|
-
if (typeof decoded === "undefined")
|
|
9246
|
+
if (typeof decoded === "undefined") {
|
|
9247
|
+
shouldCacheJsonLd = false;
|
|
9248
|
+
continue;
|
|
9249
|
+
}
|
|
9250
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
9039
9251
|
_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument.push(decoded);
|
|
9040
9252
|
}
|
|
9041
9253
|
instance.#_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument = _3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument;
|
|
9042
|
-
|
|
9254
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
9255
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
9043
9256
|
instance._cachedJsonLd = structuredClone(json);
|
|
9044
9257
|
} catch {
|
|
9045
9258
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -9231,7 +9444,9 @@ var EmojiReact = class EmojiReact extends Activity {
|
|
|
9231
9444
|
_fromSubclass: true
|
|
9232
9445
|
});
|
|
9233
9446
|
if (!(instance instanceof EmojiReact)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
9234
|
-
|
|
9447
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
9448
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
9449
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
9235
9450
|
instance._cachedJsonLd = structuredClone(json);
|
|
9236
9451
|
} catch {
|
|
9237
9452
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -9257,6 +9472,7 @@ var PropertyValue = class {
|
|
|
9257
9472
|
#warning;
|
|
9258
9473
|
#cachedJsonLd;
|
|
9259
9474
|
#_baseUrl;
|
|
9475
|
+
#shouldCacheJsonLd = true;
|
|
9260
9476
|
id;
|
|
9261
9477
|
get _documentLoader() {
|
|
9262
9478
|
return this.#documentLoader;
|
|
@@ -9279,6 +9495,17 @@ var PropertyValue = class {
|
|
|
9279
9495
|
get _baseUrl() {
|
|
9280
9496
|
return this.#_baseUrl;
|
|
9281
9497
|
}
|
|
9498
|
+
get _shouldCacheJsonLd() {
|
|
9499
|
+
return this.#shouldCacheJsonLd;
|
|
9500
|
+
}
|
|
9501
|
+
set _shouldCacheJsonLd(value) {
|
|
9502
|
+
this.#shouldCacheJsonLd = value;
|
|
9503
|
+
}
|
|
9504
|
+
static _shouldCacheDecodedJsonLd(value) {
|
|
9505
|
+
if (value == null || typeof value !== "object") return true;
|
|
9506
|
+
if (!("_shouldCacheJsonLd" in value)) return true;
|
|
9507
|
+
return value._shouldCacheJsonLd;
|
|
9508
|
+
}
|
|
9282
9509
|
/**
|
|
9283
9510
|
* The type URI of {@link PropertyValue}: `http://schema.org#PropertyValue`.
|
|
9284
9511
|
*/
|
|
@@ -9479,12 +9706,17 @@ var PropertyValue = class {
|
|
|
9479
9706
|
if (!values["@type"].includes("http://schema.org#PropertyValue")) throw new TypeError("Invalid type: " + values["@type"]);
|
|
9480
9707
|
}
|
|
9481
9708
|
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);
|
|
9709
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
9482
9710
|
const _4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = [];
|
|
9483
9711
|
let _4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name__array = values["https://www.w3.org/ns/activitystreams#name"];
|
|
9484
9712
|
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) {
|
|
9485
9713
|
if (v == null) continue;
|
|
9486
|
-
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(v["@value"], v["@language"]) : void 0;
|
|
9487
|
-
if (typeof decoded === "undefined")
|
|
9714
|
+
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(v["@value"], v["@language"]) : void 0;
|
|
9715
|
+
if (typeof decoded === "undefined") {
|
|
9716
|
+
shouldCacheJsonLd = false;
|
|
9717
|
+
continue;
|
|
9718
|
+
}
|
|
9719
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
9488
9720
|
_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name.push(decoded);
|
|
9489
9721
|
}
|
|
9490
9722
|
instance.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = _4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name;
|
|
@@ -9492,12 +9724,17 @@ var PropertyValue = class {
|
|
|
9492
9724
|
let _2cSy2magg4iZ7zLaG8U7DiJMoCkx_value__array = values["http://schema.org#value"];
|
|
9493
9725
|
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) {
|
|
9494
9726
|
if (v == null) continue;
|
|
9495
|
-
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(v["@value"], v["@language"]) : void 0;
|
|
9496
|
-
if (typeof decoded === "undefined")
|
|
9727
|
+
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(v["@value"], v["@language"]) : void 0;
|
|
9728
|
+
if (typeof decoded === "undefined") {
|
|
9729
|
+
shouldCacheJsonLd = false;
|
|
9730
|
+
continue;
|
|
9731
|
+
}
|
|
9732
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
9497
9733
|
_2cSy2magg4iZ7zLaG8U7DiJMoCkx_value.push(decoded);
|
|
9498
9734
|
}
|
|
9499
9735
|
instance.#_2cSy2magg4iZ7zLaG8U7DiJMoCkx_value = _2cSy2magg4iZ7zLaG8U7DiJMoCkx_value;
|
|
9500
|
-
|
|
9736
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
9737
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
9501
9738
|
instance._cachedJsonLd = structuredClone(json);
|
|
9502
9739
|
} catch {
|
|
9503
9740
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -9538,6 +9775,7 @@ var Measure = class {
|
|
|
9538
9775
|
#warning;
|
|
9539
9776
|
#cachedJsonLd;
|
|
9540
9777
|
#_baseUrl;
|
|
9778
|
+
#shouldCacheJsonLd = true;
|
|
9541
9779
|
id;
|
|
9542
9780
|
get _documentLoader() {
|
|
9543
9781
|
return this.#documentLoader;
|
|
@@ -9560,6 +9798,17 @@ var Measure = class {
|
|
|
9560
9798
|
get _baseUrl() {
|
|
9561
9799
|
return this.#_baseUrl;
|
|
9562
9800
|
}
|
|
9801
|
+
get _shouldCacheJsonLd() {
|
|
9802
|
+
return this.#shouldCacheJsonLd;
|
|
9803
|
+
}
|
|
9804
|
+
set _shouldCacheJsonLd(value) {
|
|
9805
|
+
this.#shouldCacheJsonLd = value;
|
|
9806
|
+
}
|
|
9807
|
+
static _shouldCacheDecodedJsonLd(value) {
|
|
9808
|
+
if (value == null || typeof value !== "object") return true;
|
|
9809
|
+
if (!("_shouldCacheJsonLd" in value)) return true;
|
|
9810
|
+
return value._shouldCacheJsonLd;
|
|
9811
|
+
}
|
|
9563
9812
|
/**
|
|
9564
9813
|
* The type URI of {@link Measure}: `http://www.ontology-of-units-of-measure.org/resource/om-2/Measure`.
|
|
9565
9814
|
*/
|
|
@@ -9751,12 +10000,17 @@ var Measure = class {
|
|
|
9751
10000
|
if (!values["@type"].includes("http://www.ontology-of-units-of-measure.org/resource/om-2/Measure")) throw new TypeError("Invalid type: " + values["@type"]);
|
|
9752
10001
|
}
|
|
9753
10002
|
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);
|
|
10003
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
9754
10004
|
const _27fgyFbosTtMAhuepJH8K3ZGURT6 = [];
|
|
9755
10005
|
let _27fgyFbosTtMAhuepJH8K3ZGURT6__array = values["http://www.ontology-of-units-of-measure.org/resource/om-2/hasUnit"];
|
|
9756
10006
|
for (const v of _27fgyFbosTtMAhuepJH8K3ZGURT6__array == null ? [] : _27fgyFbosTtMAhuepJH8K3ZGURT6__array.length === 1 && "@list" in _27fgyFbosTtMAhuepJH8K3ZGURT6__array[0] ? _27fgyFbosTtMAhuepJH8K3ZGURT6__array[0]["@list"] : _27fgyFbosTtMAhuepJH8K3ZGURT6__array) {
|
|
9757
10007
|
if (v == null) continue;
|
|
9758
10008
|
const decoded = v["@value"];
|
|
9759
|
-
if (typeof decoded === "undefined")
|
|
10009
|
+
if (typeof decoded === "undefined") {
|
|
10010
|
+
shouldCacheJsonLd = false;
|
|
10011
|
+
continue;
|
|
10012
|
+
}
|
|
10013
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
9760
10014
|
_27fgyFbosTtMAhuepJH8K3ZGURT6.push(decoded);
|
|
9761
10015
|
}
|
|
9762
10016
|
instance.#_27fgyFbosTtMAhuepJH8K3ZGURT6 = _27fgyFbosTtMAhuepJH8K3ZGURT6;
|
|
@@ -9765,11 +10019,16 @@ var Measure = class {
|
|
|
9765
10019
|
for (const v of _1GQx8o2RgxRs4x9G5uT39XYBv7D__array == null ? [] : _1GQx8o2RgxRs4x9G5uT39XYBv7D__array.length === 1 && "@list" in _1GQx8o2RgxRs4x9G5uT39XYBv7D__array[0] ? _1GQx8o2RgxRs4x9G5uT39XYBv7D__array[0]["@list"] : _1GQx8o2RgxRs4x9G5uT39XYBv7D__array) {
|
|
9766
10020
|
if (v == null) continue;
|
|
9767
10021
|
const decoded = parseDecimal(v["@value"]);
|
|
9768
|
-
if (typeof decoded === "undefined")
|
|
10022
|
+
if (typeof decoded === "undefined") {
|
|
10023
|
+
shouldCacheJsonLd = false;
|
|
10024
|
+
continue;
|
|
10025
|
+
}
|
|
10026
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
9769
10027
|
_1GQx8o2RgxRs4x9G5uT39XYBv7D.push(decoded);
|
|
9770
10028
|
}
|
|
9771
10029
|
instance.#_1GQx8o2RgxRs4x9G5uT39XYBv7D = _1GQx8o2RgxRs4x9G5uT39XYBv7D;
|
|
9772
|
-
|
|
10030
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
10031
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
9773
10032
|
instance._cachedJsonLd = structuredClone(json);
|
|
9774
10033
|
} catch {
|
|
9775
10034
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -10260,6 +10519,7 @@ var AnnounceAuthorization = class AnnounceAuthorization extends Object$1 {
|
|
|
10260
10519
|
_fromSubclass: true
|
|
10261
10520
|
});
|
|
10262
10521
|
if (!(instance instanceof AnnounceAuthorization)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
10522
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
10263
10523
|
const _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = [];
|
|
10264
10524
|
let _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject__array = values["https://gotosocial.org/ns#interactingObject"];
|
|
10265
10525
|
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) {
|
|
@@ -10273,7 +10533,11 @@ var AnnounceAuthorization = class AnnounceAuthorization extends Object$1 {
|
|
|
10273
10533
|
...options,
|
|
10274
10534
|
baseUrl: options.baseUrl
|
|
10275
10535
|
});
|
|
10276
|
-
if (typeof decoded === "undefined")
|
|
10536
|
+
if (typeof decoded === "undefined") {
|
|
10537
|
+
shouldCacheJsonLd = false;
|
|
10538
|
+
continue;
|
|
10539
|
+
}
|
|
10540
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
10277
10541
|
_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject.push(decoded);
|
|
10278
10542
|
}
|
|
10279
10543
|
instance.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject;
|
|
@@ -10290,11 +10554,16 @@ var AnnounceAuthorization = class AnnounceAuthorization extends Object$1 {
|
|
|
10290
10554
|
...options,
|
|
10291
10555
|
baseUrl: options.baseUrl
|
|
10292
10556
|
});
|
|
10293
|
-
if (typeof decoded === "undefined")
|
|
10557
|
+
if (typeof decoded === "undefined") {
|
|
10558
|
+
shouldCacheJsonLd = false;
|
|
10559
|
+
continue;
|
|
10560
|
+
}
|
|
10561
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
10294
10562
|
_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget.push(decoded);
|
|
10295
10563
|
}
|
|
10296
10564
|
instance.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget = _2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget;
|
|
10297
|
-
|
|
10565
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
10566
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
10298
10567
|
instance._cachedJsonLd = structuredClone(json);
|
|
10299
10568
|
} catch {
|
|
10300
10569
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -10464,7 +10733,9 @@ var AnnounceRequest = class AnnounceRequest extends Activity {
|
|
|
10464
10733
|
_fromSubclass: true
|
|
10465
10734
|
});
|
|
10466
10735
|
if (!(instance instanceof AnnounceRequest)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
10467
|
-
|
|
10736
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
10737
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
10738
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
10468
10739
|
instance._cachedJsonLd = structuredClone(json);
|
|
10469
10740
|
} catch {
|
|
10470
10741
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -10496,6 +10767,7 @@ var InteractionPolicy = class {
|
|
|
10496
10767
|
#warning;
|
|
10497
10768
|
#cachedJsonLd;
|
|
10498
10769
|
#_baseUrl;
|
|
10770
|
+
#shouldCacheJsonLd = true;
|
|
10499
10771
|
id;
|
|
10500
10772
|
get _documentLoader() {
|
|
10501
10773
|
return this.#documentLoader;
|
|
@@ -10518,6 +10790,17 @@ var InteractionPolicy = class {
|
|
|
10518
10790
|
get _baseUrl() {
|
|
10519
10791
|
return this.#_baseUrl;
|
|
10520
10792
|
}
|
|
10793
|
+
get _shouldCacheJsonLd() {
|
|
10794
|
+
return this.#shouldCacheJsonLd;
|
|
10795
|
+
}
|
|
10796
|
+
set _shouldCacheJsonLd(value) {
|
|
10797
|
+
this.#shouldCacheJsonLd = value;
|
|
10798
|
+
}
|
|
10799
|
+
static _shouldCacheDecodedJsonLd(value) {
|
|
10800
|
+
if (value == null || typeof value !== "object") return true;
|
|
10801
|
+
if (!("_shouldCacheJsonLd" in value)) return true;
|
|
10802
|
+
return value._shouldCacheJsonLd;
|
|
10803
|
+
}
|
|
10521
10804
|
/**
|
|
10522
10805
|
* The type URI of {@link InteractionPolicy}: `https://gotosocial.org/ns#InteractionPolicy`.
|
|
10523
10806
|
*/
|
|
@@ -10730,6 +11013,7 @@ var InteractionPolicy = class {
|
|
|
10730
11013
|
if (!values["@type"].includes("https://gotosocial.org/ns#InteractionPolicy")) throw new TypeError("Invalid type: " + values["@type"]);
|
|
10731
11014
|
}
|
|
10732
11015
|
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);
|
|
11016
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
10733
11017
|
const _3JkwVLb3BNCwCWdsb5RftGAg8vyT_canLike = [];
|
|
10734
11018
|
let _3JkwVLb3BNCwCWdsb5RftGAg8vyT_canLike__array = values["https://gotosocial.org/ns#canLike"];
|
|
10735
11019
|
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) {
|
|
@@ -10738,7 +11022,11 @@ var InteractionPolicy = class {
|
|
|
10738
11022
|
...options,
|
|
10739
11023
|
baseUrl: options.baseUrl
|
|
10740
11024
|
});
|
|
10741
|
-
if (typeof decoded === "undefined")
|
|
11025
|
+
if (typeof decoded === "undefined") {
|
|
11026
|
+
shouldCacheJsonLd = false;
|
|
11027
|
+
continue;
|
|
11028
|
+
}
|
|
11029
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
10742
11030
|
_3JkwVLb3BNCwCWdsb5RftGAg8vyT_canLike.push(decoded);
|
|
10743
11031
|
}
|
|
10744
11032
|
instance.#_3JkwVLb3BNCwCWdsb5RftGAg8vyT_canLike = _3JkwVLb3BNCwCWdsb5RftGAg8vyT_canLike;
|
|
@@ -10750,7 +11038,11 @@ var InteractionPolicy = class {
|
|
|
10750
11038
|
...options,
|
|
10751
11039
|
baseUrl: options.baseUrl
|
|
10752
11040
|
});
|
|
10753
|
-
if (typeof decoded === "undefined")
|
|
11041
|
+
if (typeof decoded === "undefined") {
|
|
11042
|
+
shouldCacheJsonLd = false;
|
|
11043
|
+
continue;
|
|
11044
|
+
}
|
|
11045
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
10754
11046
|
_2UBgLRi5p3DRGGvWyB227i4Qjhzd_canReply.push(decoded);
|
|
10755
11047
|
}
|
|
10756
11048
|
instance.#_2UBgLRi5p3DRGGvWyB227i4Qjhzd_canReply = _2UBgLRi5p3DRGGvWyB227i4Qjhzd_canReply;
|
|
@@ -10762,7 +11054,11 @@ var InteractionPolicy = class {
|
|
|
10762
11054
|
...options,
|
|
10763
11055
|
baseUrl: options.baseUrl
|
|
10764
11056
|
});
|
|
10765
|
-
if (typeof decoded === "undefined")
|
|
11057
|
+
if (typeof decoded === "undefined") {
|
|
11058
|
+
shouldCacheJsonLd = false;
|
|
11059
|
+
continue;
|
|
11060
|
+
}
|
|
11061
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
10766
11062
|
_fu5nmoAj528fBQfnxhY9Daok3Vi_canAnnounce.push(decoded);
|
|
10767
11063
|
}
|
|
10768
11064
|
instance.#_fu5nmoAj528fBQfnxhY9Daok3Vi_canAnnounce = _fu5nmoAj528fBQfnxhY9Daok3Vi_canAnnounce;
|
|
@@ -10774,11 +11070,16 @@ var InteractionPolicy = class {
|
|
|
10774
11070
|
...options,
|
|
10775
11071
|
baseUrl: options.baseUrl
|
|
10776
11072
|
});
|
|
10777
|
-
if (typeof decoded === "undefined")
|
|
11073
|
+
if (typeof decoded === "undefined") {
|
|
11074
|
+
shouldCacheJsonLd = false;
|
|
11075
|
+
continue;
|
|
11076
|
+
}
|
|
11077
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
10778
11078
|
_LE3zBTVacTZw2LSyLt4wVUkXeUy_canQuote.push(decoded);
|
|
10779
11079
|
}
|
|
10780
11080
|
instance.#_LE3zBTVacTZw2LSyLt4wVUkXeUy_canQuote = _LE3zBTVacTZw2LSyLt4wVUkXeUy_canQuote;
|
|
10781
|
-
|
|
11081
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
11082
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
10782
11083
|
instance._cachedJsonLd = structuredClone(json);
|
|
10783
11084
|
} catch {
|
|
10784
11085
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -10846,6 +11147,7 @@ var InteractionRule = class {
|
|
|
10846
11147
|
#warning;
|
|
10847
11148
|
#cachedJsonLd;
|
|
10848
11149
|
#_baseUrl;
|
|
11150
|
+
#shouldCacheJsonLd = true;
|
|
10849
11151
|
id;
|
|
10850
11152
|
get _documentLoader() {
|
|
10851
11153
|
return this.#documentLoader;
|
|
@@ -10868,6 +11170,17 @@ var InteractionRule = class {
|
|
|
10868
11170
|
get _baseUrl() {
|
|
10869
11171
|
return this.#_baseUrl;
|
|
10870
11172
|
}
|
|
11173
|
+
get _shouldCacheJsonLd() {
|
|
11174
|
+
return this.#shouldCacheJsonLd;
|
|
11175
|
+
}
|
|
11176
|
+
set _shouldCacheJsonLd(value) {
|
|
11177
|
+
this.#shouldCacheJsonLd = value;
|
|
11178
|
+
}
|
|
11179
|
+
static _shouldCacheDecodedJsonLd(value) {
|
|
11180
|
+
if (value == null || typeof value !== "object") return true;
|
|
11181
|
+
if (!("_shouldCacheJsonLd" in value)) return true;
|
|
11182
|
+
return value._shouldCacheJsonLd;
|
|
11183
|
+
}
|
|
10871
11184
|
/**
|
|
10872
11185
|
* The type URI of {@link InteractionRule}: `https://gotosocial.org/ns#InteractionRule`.
|
|
10873
11186
|
*/
|
|
@@ -11062,12 +11375,17 @@ var InteractionRule = class {
|
|
|
11062
11375
|
if (!values["@type"].includes("https://gotosocial.org/ns#InteractionRule")) throw new TypeError("Invalid type: " + values["@type"]);
|
|
11063
11376
|
}
|
|
11064
11377
|
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);
|
|
11378
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
11065
11379
|
const _2rFyCF14HoyNjitj9PmCzek5iSsg_automaticApproval = [];
|
|
11066
11380
|
let _2rFyCF14HoyNjitj9PmCzek5iSsg_automaticApproval__array = values["https://gotosocial.org/ns#automaticApproval"];
|
|
11067
11381
|
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) {
|
|
11068
11382
|
if (v == null) continue;
|
|
11069
11383
|
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);
|
|
11070
|
-
if (typeof decoded === "undefined")
|
|
11384
|
+
if (typeof decoded === "undefined") {
|
|
11385
|
+
shouldCacheJsonLd = false;
|
|
11386
|
+
continue;
|
|
11387
|
+
}
|
|
11388
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
11071
11389
|
_2rFyCF14HoyNjitj9PmCzek5iSsg_automaticApproval.push(decoded);
|
|
11072
11390
|
}
|
|
11073
11391
|
instance.#_2rFyCF14HoyNjitj9PmCzek5iSsg_automaticApproval = _2rFyCF14HoyNjitj9PmCzek5iSsg_automaticApproval;
|
|
@@ -11076,11 +11394,16 @@ var InteractionRule = class {
|
|
|
11076
11394
|
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) {
|
|
11077
11395
|
if (v == null) continue;
|
|
11078
11396
|
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);
|
|
11079
|
-
if (typeof decoded === "undefined")
|
|
11397
|
+
if (typeof decoded === "undefined") {
|
|
11398
|
+
shouldCacheJsonLd = false;
|
|
11399
|
+
continue;
|
|
11400
|
+
}
|
|
11401
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
11080
11402
|
_sxj8y5XMMMBWUnRYFw85MKedCMj_manualApproval.push(decoded);
|
|
11081
11403
|
}
|
|
11082
11404
|
instance.#_sxj8y5XMMMBWUnRYFw85MKedCMj_manualApproval = _sxj8y5XMMMBWUnRYFw85MKedCMj_manualApproval;
|
|
11083
|
-
|
|
11405
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
11406
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
11084
11407
|
instance._cachedJsonLd = structuredClone(json);
|
|
11085
11408
|
} catch {
|
|
11086
11409
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -11572,6 +11895,7 @@ var LikeAuthorization = class LikeAuthorization extends Object$1 {
|
|
|
11572
11895
|
_fromSubclass: true
|
|
11573
11896
|
});
|
|
11574
11897
|
if (!(instance instanceof LikeAuthorization)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
11898
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
11575
11899
|
const _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = [];
|
|
11576
11900
|
let _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject__array = values["https://gotosocial.org/ns#interactingObject"];
|
|
11577
11901
|
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) {
|
|
@@ -11585,7 +11909,11 @@ var LikeAuthorization = class LikeAuthorization extends Object$1 {
|
|
|
11585
11909
|
...options,
|
|
11586
11910
|
baseUrl: options.baseUrl
|
|
11587
11911
|
});
|
|
11588
|
-
if (typeof decoded === "undefined")
|
|
11912
|
+
if (typeof decoded === "undefined") {
|
|
11913
|
+
shouldCacheJsonLd = false;
|
|
11914
|
+
continue;
|
|
11915
|
+
}
|
|
11916
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
11589
11917
|
_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject.push(decoded);
|
|
11590
11918
|
}
|
|
11591
11919
|
instance.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject;
|
|
@@ -11602,11 +11930,16 @@ var LikeAuthorization = class LikeAuthorization extends Object$1 {
|
|
|
11602
11930
|
...options,
|
|
11603
11931
|
baseUrl: options.baseUrl
|
|
11604
11932
|
});
|
|
11605
|
-
if (typeof decoded === "undefined")
|
|
11933
|
+
if (typeof decoded === "undefined") {
|
|
11934
|
+
shouldCacheJsonLd = false;
|
|
11935
|
+
continue;
|
|
11936
|
+
}
|
|
11937
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
11606
11938
|
_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget.push(decoded);
|
|
11607
11939
|
}
|
|
11608
11940
|
instance.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget = _2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget;
|
|
11609
|
-
|
|
11941
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
11942
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
11610
11943
|
instance._cachedJsonLd = structuredClone(json);
|
|
11611
11944
|
} catch {
|
|
11612
11945
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -11775,7 +12108,9 @@ var LikeRequest = class LikeRequest extends Activity {
|
|
|
11775
12108
|
_fromSubclass: true
|
|
11776
12109
|
});
|
|
11777
12110
|
if (!(instance instanceof LikeRequest)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
11778
|
-
|
|
12111
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
12112
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
12113
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
11779
12114
|
instance._cachedJsonLd = structuredClone(json);
|
|
11780
12115
|
} catch {
|
|
11781
12116
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -12250,6 +12585,7 @@ var ReplyAuthorization = class ReplyAuthorization extends Object$1 {
|
|
|
12250
12585
|
_fromSubclass: true
|
|
12251
12586
|
});
|
|
12252
12587
|
if (!(instance instanceof ReplyAuthorization)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
12588
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
12253
12589
|
const _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = [];
|
|
12254
12590
|
let _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject__array = values["https://gotosocial.org/ns#interactingObject"];
|
|
12255
12591
|
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) {
|
|
@@ -12263,7 +12599,11 @@ var ReplyAuthorization = class ReplyAuthorization extends Object$1 {
|
|
|
12263
12599
|
...options,
|
|
12264
12600
|
baseUrl: options.baseUrl
|
|
12265
12601
|
});
|
|
12266
|
-
if (typeof decoded === "undefined")
|
|
12602
|
+
if (typeof decoded === "undefined") {
|
|
12603
|
+
shouldCacheJsonLd = false;
|
|
12604
|
+
continue;
|
|
12605
|
+
}
|
|
12606
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
12267
12607
|
_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject.push(decoded);
|
|
12268
12608
|
}
|
|
12269
12609
|
instance.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject;
|
|
@@ -12280,11 +12620,16 @@ var ReplyAuthorization = class ReplyAuthorization extends Object$1 {
|
|
|
12280
12620
|
...options,
|
|
12281
12621
|
baseUrl: options.baseUrl
|
|
12282
12622
|
});
|
|
12283
|
-
if (typeof decoded === "undefined")
|
|
12623
|
+
if (typeof decoded === "undefined") {
|
|
12624
|
+
shouldCacheJsonLd = false;
|
|
12625
|
+
continue;
|
|
12626
|
+
}
|
|
12627
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
12284
12628
|
_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget.push(decoded);
|
|
12285
12629
|
}
|
|
12286
12630
|
instance.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget = _2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget;
|
|
12287
|
-
|
|
12631
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
12632
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
12288
12633
|
instance._cachedJsonLd = structuredClone(json);
|
|
12289
12634
|
} catch {
|
|
12290
12635
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -12453,7 +12798,9 @@ var ReplyRequest = class ReplyRequest extends Activity {
|
|
|
12453
12798
|
_fromSubclass: true
|
|
12454
12799
|
});
|
|
12455
12800
|
if (!(instance instanceof ReplyRequest)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
12456
|
-
|
|
12801
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
12802
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
12803
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
12457
12804
|
instance._cachedJsonLd = structuredClone(json);
|
|
12458
12805
|
} catch {
|
|
12459
12806
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -12929,6 +13276,7 @@ var QuoteAuthorization = class QuoteAuthorization extends Object$1 {
|
|
|
12929
13276
|
_fromSubclass: true
|
|
12930
13277
|
});
|
|
12931
13278
|
if (!(instance instanceof QuoteAuthorization)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
13279
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
12932
13280
|
const _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = [];
|
|
12933
13281
|
let _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject__array = values["https://gotosocial.org/ns#interactingObject"];
|
|
12934
13282
|
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) {
|
|
@@ -12942,7 +13290,11 @@ var QuoteAuthorization = class QuoteAuthorization extends Object$1 {
|
|
|
12942
13290
|
...options,
|
|
12943
13291
|
baseUrl: options.baseUrl
|
|
12944
13292
|
});
|
|
12945
|
-
if (typeof decoded === "undefined")
|
|
13293
|
+
if (typeof decoded === "undefined") {
|
|
13294
|
+
shouldCacheJsonLd = false;
|
|
13295
|
+
continue;
|
|
13296
|
+
}
|
|
13297
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
12946
13298
|
_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject.push(decoded);
|
|
12947
13299
|
}
|
|
12948
13300
|
instance.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = _2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject;
|
|
@@ -12959,11 +13311,16 @@ var QuoteAuthorization = class QuoteAuthorization extends Object$1 {
|
|
|
12959
13311
|
...options,
|
|
12960
13312
|
baseUrl: options.baseUrl
|
|
12961
13313
|
});
|
|
12962
|
-
if (typeof decoded === "undefined")
|
|
13314
|
+
if (typeof decoded === "undefined") {
|
|
13315
|
+
shouldCacheJsonLd = false;
|
|
13316
|
+
continue;
|
|
13317
|
+
}
|
|
13318
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
12963
13319
|
_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget.push(decoded);
|
|
12964
13320
|
}
|
|
12965
13321
|
instance.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget = _2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget;
|
|
12966
|
-
|
|
13322
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
13323
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
12967
13324
|
instance._cachedJsonLd = structuredClone(json);
|
|
12968
13325
|
} catch {
|
|
12969
13326
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -13162,7 +13519,9 @@ var QuoteRequest = class QuoteRequest extends Activity {
|
|
|
13162
13519
|
_fromSubclass: true
|
|
13163
13520
|
});
|
|
13164
13521
|
if (!(instance instanceof QuoteRequest)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
13165
|
-
|
|
13522
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
13523
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
13524
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
13166
13525
|
instance._cachedJsonLd = structuredClone(json);
|
|
13167
13526
|
} catch {
|
|
13168
13527
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -13191,6 +13550,7 @@ var DidService = class {
|
|
|
13191
13550
|
#warning;
|
|
13192
13551
|
#cachedJsonLd;
|
|
13193
13552
|
#_baseUrl;
|
|
13553
|
+
#shouldCacheJsonLd = true;
|
|
13194
13554
|
id;
|
|
13195
13555
|
get _documentLoader() {
|
|
13196
13556
|
return this.#documentLoader;
|
|
@@ -13213,6 +13573,17 @@ var DidService = class {
|
|
|
13213
13573
|
get _baseUrl() {
|
|
13214
13574
|
return this.#_baseUrl;
|
|
13215
13575
|
}
|
|
13576
|
+
get _shouldCacheJsonLd() {
|
|
13577
|
+
return this.#shouldCacheJsonLd;
|
|
13578
|
+
}
|
|
13579
|
+
set _shouldCacheJsonLd(value) {
|
|
13580
|
+
this.#shouldCacheJsonLd = value;
|
|
13581
|
+
}
|
|
13582
|
+
static _shouldCacheDecodedJsonLd(value) {
|
|
13583
|
+
if (value == null || typeof value !== "object") return true;
|
|
13584
|
+
if (!("_shouldCacheJsonLd" in value)) return true;
|
|
13585
|
+
return value._shouldCacheJsonLd;
|
|
13586
|
+
}
|
|
13216
13587
|
/**
|
|
13217
13588
|
* The type URI of {@link DidService}: `https://www.w3.org/ns/did#Service`.
|
|
13218
13589
|
*/
|
|
@@ -13371,16 +13742,22 @@ var DidService = class {
|
|
|
13371
13742
|
if (!values["@type"].includes("https://www.w3.org/ns/did#Service")) throw new TypeError("Invalid type: " + values["@type"]);
|
|
13372
13743
|
}
|
|
13373
13744
|
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);
|
|
13745
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
13374
13746
|
const _2KM4fetG6FTJ1cphj76rzJ8Dyv7p_serviceEndpoint = [];
|
|
13375
13747
|
let _2KM4fetG6FTJ1cphj76rzJ8Dyv7p_serviceEndpoint__array = values["https://www.w3.org/ns/did#serviceEndpoint"];
|
|
13376
13748
|
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) {
|
|
13377
13749
|
if (v == null) continue;
|
|
13378
13750
|
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);
|
|
13379
|
-
if (typeof decoded === "undefined")
|
|
13751
|
+
if (typeof decoded === "undefined") {
|
|
13752
|
+
shouldCacheJsonLd = false;
|
|
13753
|
+
continue;
|
|
13754
|
+
}
|
|
13755
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
13380
13756
|
_2KM4fetG6FTJ1cphj76rzJ8Dyv7p_serviceEndpoint.push(decoded);
|
|
13381
13757
|
}
|
|
13382
13758
|
instance.#_2KM4fetG6FTJ1cphj76rzJ8Dyv7p_serviceEndpoint = _2KM4fetG6FTJ1cphj76rzJ8Dyv7p_serviceEndpoint;
|
|
13383
|
-
|
|
13759
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
13760
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
13384
13761
|
instance._cachedJsonLd = structuredClone(json);
|
|
13385
13762
|
} catch {
|
|
13386
13763
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -13532,7 +13909,9 @@ var Export = class Export extends DidService {
|
|
|
13532
13909
|
_fromSubclass: true
|
|
13533
13910
|
});
|
|
13534
13911
|
if (!(instance instanceof Export)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
13535
|
-
|
|
13912
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
13913
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
13914
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
13536
13915
|
instance._cachedJsonLd = structuredClone(json);
|
|
13537
13916
|
} catch {
|
|
13538
13917
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -13559,6 +13938,7 @@ var DataIntegrityProof = class {
|
|
|
13559
13938
|
#warning;
|
|
13560
13939
|
#cachedJsonLd;
|
|
13561
13940
|
#_baseUrl;
|
|
13941
|
+
#shouldCacheJsonLd = true;
|
|
13562
13942
|
id;
|
|
13563
13943
|
get _documentLoader() {
|
|
13564
13944
|
return this.#documentLoader;
|
|
@@ -13581,6 +13961,17 @@ var DataIntegrityProof = class {
|
|
|
13581
13961
|
get _baseUrl() {
|
|
13582
13962
|
return this.#_baseUrl;
|
|
13583
13963
|
}
|
|
13964
|
+
get _shouldCacheJsonLd() {
|
|
13965
|
+
return this.#shouldCacheJsonLd;
|
|
13966
|
+
}
|
|
13967
|
+
set _shouldCacheJsonLd(value) {
|
|
13968
|
+
this.#shouldCacheJsonLd = value;
|
|
13969
|
+
}
|
|
13970
|
+
static _shouldCacheDecodedJsonLd(value) {
|
|
13971
|
+
if (value == null || typeof value !== "object") return true;
|
|
13972
|
+
if (!("_shouldCacheJsonLd" in value)) return true;
|
|
13973
|
+
return value._shouldCacheJsonLd;
|
|
13974
|
+
}
|
|
13584
13975
|
/**
|
|
13585
13976
|
* The type URI of {@link DataIntegrityProof}: `https://w3id.org/security#DataIntegrityProof`.
|
|
13586
13977
|
*/
|
|
@@ -13926,12 +14317,17 @@ var DataIntegrityProof = class {
|
|
|
13926
14317
|
if (!values["@type"].includes("https://w3id.org/security#DataIntegrityProof")) throw new TypeError("Invalid type: " + values["@type"]);
|
|
13927
14318
|
}
|
|
13928
14319
|
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);
|
|
14320
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
13929
14321
|
const _3RurJsa7tnptyqMFR5hDGcP9pMs5_cryptosuite = [];
|
|
13930
14322
|
let _3RurJsa7tnptyqMFR5hDGcP9pMs5_cryptosuite__array = values["https://w3id.org/security#cryptosuite"];
|
|
13931
14323
|
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) {
|
|
13932
14324
|
if (v == null) continue;
|
|
13933
14325
|
const decoded = v["@value"];
|
|
13934
|
-
if (typeof decoded === "undefined")
|
|
14326
|
+
if (typeof decoded === "undefined") {
|
|
14327
|
+
shouldCacheJsonLd = false;
|
|
14328
|
+
continue;
|
|
14329
|
+
}
|
|
14330
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
13935
14331
|
_3RurJsa7tnptyqMFR5hDGcP9pMs5_cryptosuite.push(decoded);
|
|
13936
14332
|
}
|
|
13937
14333
|
instance.#_3RurJsa7tnptyqMFR5hDGcP9pMs5_cryptosuite = _3RurJsa7tnptyqMFR5hDGcP9pMs5_cryptosuite;
|
|
@@ -13948,7 +14344,11 @@ var DataIntegrityProof = class {
|
|
|
13948
14344
|
...options,
|
|
13949
14345
|
baseUrl: options.baseUrl
|
|
13950
14346
|
});
|
|
13951
|
-
if (typeof decoded === "undefined")
|
|
14347
|
+
if (typeof decoded === "undefined") {
|
|
14348
|
+
shouldCacheJsonLd = false;
|
|
14349
|
+
continue;
|
|
14350
|
+
}
|
|
14351
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
13952
14352
|
_2mHVKxqA7zncjveJrDEo3pWpMZqg_verificationMethod.push(decoded);
|
|
13953
14353
|
}
|
|
13954
14354
|
instance.#_2mHVKxqA7zncjveJrDEo3pWpMZqg_verificationMethod = _2mHVKxqA7zncjveJrDEo3pWpMZqg_verificationMethod;
|
|
@@ -13957,7 +14357,11 @@ var DataIntegrityProof = class {
|
|
|
13957
14357
|
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) {
|
|
13958
14358
|
if (v == null) continue;
|
|
13959
14359
|
const decoded = v["@id"].substring(26);
|
|
13960
|
-
if (typeof decoded === "undefined")
|
|
14360
|
+
if (typeof decoded === "undefined") {
|
|
14361
|
+
shouldCacheJsonLd = false;
|
|
14362
|
+
continue;
|
|
14363
|
+
}
|
|
14364
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
13961
14365
|
_2AeEnPcAvVrPEuKbpmn9ZKNmWHKb_proofPurpose.push(decoded);
|
|
13962
14366
|
}
|
|
13963
14367
|
instance.#_2AeEnPcAvVrPEuKbpmn9ZKNmWHKb_proofPurpose = _2AeEnPcAvVrPEuKbpmn9ZKNmWHKb_proofPurpose;
|
|
@@ -13966,7 +14370,11 @@ var DataIntegrityProof = class {
|
|
|
13966
14370
|
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) {
|
|
13967
14371
|
if (v == null) continue;
|
|
13968
14372
|
const decoded = decodeMultibase(v["@value"]);
|
|
13969
|
-
if (typeof decoded === "undefined")
|
|
14373
|
+
if (typeof decoded === "undefined") {
|
|
14374
|
+
shouldCacheJsonLd = false;
|
|
14375
|
+
continue;
|
|
14376
|
+
}
|
|
14377
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
13970
14378
|
_3CjFK5vfKpX4HQuNh2b18TykoVLq_proofValue.push(decoded);
|
|
13971
14379
|
}
|
|
13972
14380
|
instance.#_3CjFK5vfKpX4HQuNh2b18TykoVLq_proofValue = _3CjFK5vfKpX4HQuNh2b18TykoVLq_proofValue;
|
|
@@ -13975,11 +14383,16 @@ var DataIntegrityProof = class {
|
|
|
13975
14383
|
for (const v of _3qzP3ukEZoUziK5FEiA1RhU4aqac__array == null ? [] : _3qzP3ukEZoUziK5FEiA1RhU4aqac__array.length === 1 && "@list" in _3qzP3ukEZoUziK5FEiA1RhU4aqac__array[0] ? _3qzP3ukEZoUziK5FEiA1RhU4aqac__array[0]["@list"] : _3qzP3ukEZoUziK5FEiA1RhU4aqac__array) {
|
|
13976
14384
|
if (v == null) continue;
|
|
13977
14385
|
const decoded = Temporal.Instant.from(v["@value"].substring(19).match(/[Z+-]/) ? v["@value"] : v["@value"] + "Z");
|
|
13978
|
-
if (typeof decoded === "undefined")
|
|
14386
|
+
if (typeof decoded === "undefined") {
|
|
14387
|
+
shouldCacheJsonLd = false;
|
|
14388
|
+
continue;
|
|
14389
|
+
}
|
|
14390
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
13979
14391
|
_3qzP3ukEZoUziK5FEiA1RhU4aqac.push(decoded);
|
|
13980
14392
|
}
|
|
13981
14393
|
instance.#_3qzP3ukEZoUziK5FEiA1RhU4aqac = _3qzP3ukEZoUziK5FEiA1RhU4aqac;
|
|
13982
|
-
|
|
14394
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
14395
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
13983
14396
|
instance._cachedJsonLd = structuredClone(json);
|
|
13984
14397
|
} catch {
|
|
13985
14398
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -14035,6 +14448,7 @@ var CryptographicKey = class {
|
|
|
14035
14448
|
#warning;
|
|
14036
14449
|
#cachedJsonLd;
|
|
14037
14450
|
#_baseUrl;
|
|
14451
|
+
#shouldCacheJsonLd = true;
|
|
14038
14452
|
id;
|
|
14039
14453
|
get _documentLoader() {
|
|
14040
14454
|
return this.#documentLoader;
|
|
@@ -14057,6 +14471,17 @@ var CryptographicKey = class {
|
|
|
14057
14471
|
get _baseUrl() {
|
|
14058
14472
|
return this.#_baseUrl;
|
|
14059
14473
|
}
|
|
14474
|
+
get _shouldCacheJsonLd() {
|
|
14475
|
+
return this.#shouldCacheJsonLd;
|
|
14476
|
+
}
|
|
14477
|
+
set _shouldCacheJsonLd(value) {
|
|
14478
|
+
this.#shouldCacheJsonLd = value;
|
|
14479
|
+
}
|
|
14480
|
+
static _shouldCacheDecodedJsonLd(value) {
|
|
14481
|
+
if (value == null || typeof value !== "object") return true;
|
|
14482
|
+
if (!("_shouldCacheJsonLd" in value)) return true;
|
|
14483
|
+
return value._shouldCacheJsonLd;
|
|
14484
|
+
}
|
|
14060
14485
|
/**
|
|
14061
14486
|
* The type URI of {@link CryptographicKey}: `https://w3id.org/security#Key`.
|
|
14062
14487
|
*/
|
|
@@ -14423,6 +14848,7 @@ var CryptographicKey = class {
|
|
|
14423
14848
|
if (!values["@type"].includes("https://w3id.org/security#Key")) throw new TypeError("Invalid type: " + values["@type"]);
|
|
14424
14849
|
}
|
|
14425
14850
|
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);
|
|
14851
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
14426
14852
|
const _5UJq9NDh3ZHgswFwwdVxQvJxdx2_owner = [];
|
|
14427
14853
|
let _5UJq9NDh3ZHgswFwwdVxQvJxdx2_owner__array = values["https://w3id.org/security#owner"];
|
|
14428
14854
|
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) {
|
|
@@ -14448,7 +14874,11 @@ var CryptographicKey = class {
|
|
|
14448
14874
|
...options,
|
|
14449
14875
|
baseUrl: options.baseUrl
|
|
14450
14876
|
}) : void 0;
|
|
14451
|
-
if (typeof decoded === "undefined")
|
|
14877
|
+
if (typeof decoded === "undefined") {
|
|
14878
|
+
shouldCacheJsonLd = false;
|
|
14879
|
+
continue;
|
|
14880
|
+
}
|
|
14881
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
14452
14882
|
_5UJq9NDh3ZHgswFwwdVxQvJxdx2_owner.push(decoded);
|
|
14453
14883
|
}
|
|
14454
14884
|
instance.#_5UJq9NDh3ZHgswFwwdVxQvJxdx2_owner = _5UJq9NDh3ZHgswFwwdVxQvJxdx2_owner;
|
|
@@ -14457,11 +14887,16 @@ var CryptographicKey = class {
|
|
|
14457
14887
|
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) {
|
|
14458
14888
|
if (v == null) continue;
|
|
14459
14889
|
const decoded = await importPem(v["@value"]);
|
|
14460
|
-
if (typeof decoded === "undefined")
|
|
14890
|
+
if (typeof decoded === "undefined") {
|
|
14891
|
+
shouldCacheJsonLd = false;
|
|
14892
|
+
continue;
|
|
14893
|
+
}
|
|
14894
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
14461
14895
|
_2fE2QMDdg6KFGqa4NEC3TmjApSAD_publicKeyPem.push(decoded);
|
|
14462
14896
|
}
|
|
14463
14897
|
instance.#_2fE2QMDdg6KFGqa4NEC3TmjApSAD_publicKeyPem = _2fE2QMDdg6KFGqa4NEC3TmjApSAD_publicKeyPem;
|
|
14464
|
-
|
|
14898
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
14899
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
14465
14900
|
instance._cachedJsonLd = structuredClone(json);
|
|
14466
14901
|
} catch {
|
|
14467
14902
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -14505,6 +14940,7 @@ var Multikey = class {
|
|
|
14505
14940
|
#warning;
|
|
14506
14941
|
#cachedJsonLd;
|
|
14507
14942
|
#_baseUrl;
|
|
14943
|
+
#shouldCacheJsonLd = true;
|
|
14508
14944
|
id;
|
|
14509
14945
|
get _documentLoader() {
|
|
14510
14946
|
return this.#documentLoader;
|
|
@@ -14527,6 +14963,17 @@ var Multikey = class {
|
|
|
14527
14963
|
get _baseUrl() {
|
|
14528
14964
|
return this.#_baseUrl;
|
|
14529
14965
|
}
|
|
14966
|
+
get _shouldCacheJsonLd() {
|
|
14967
|
+
return this.#shouldCacheJsonLd;
|
|
14968
|
+
}
|
|
14969
|
+
set _shouldCacheJsonLd(value) {
|
|
14970
|
+
this.#shouldCacheJsonLd = value;
|
|
14971
|
+
}
|
|
14972
|
+
static _shouldCacheDecodedJsonLd(value) {
|
|
14973
|
+
if (value == null || typeof value !== "object") return true;
|
|
14974
|
+
if (!("_shouldCacheJsonLd" in value)) return true;
|
|
14975
|
+
return value._shouldCacheJsonLd;
|
|
14976
|
+
}
|
|
14530
14977
|
/**
|
|
14531
14978
|
* The type URI of {@link Multikey}: `https://w3id.org/security#Multikey`.
|
|
14532
14979
|
*/
|
|
@@ -14899,6 +15346,7 @@ var Multikey = class {
|
|
|
14899
15346
|
if (!values["@type"].includes("https://w3id.org/security#Multikey")) throw new TypeError("Invalid type: " + values["@type"]);
|
|
14900
15347
|
}
|
|
14901
15348
|
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);
|
|
15349
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
14902
15350
|
const _2yr3eUBTP6cNcyaxKzAXWjFsnGzN_controller = [];
|
|
14903
15351
|
let _2yr3eUBTP6cNcyaxKzAXWjFsnGzN_controller__array = values["https://w3id.org/security#controller"];
|
|
14904
15352
|
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) {
|
|
@@ -14924,7 +15372,11 @@ var Multikey = class {
|
|
|
14924
15372
|
...options,
|
|
14925
15373
|
baseUrl: options.baseUrl
|
|
14926
15374
|
}) : void 0;
|
|
14927
|
-
if (typeof decoded === "undefined")
|
|
15375
|
+
if (typeof decoded === "undefined") {
|
|
15376
|
+
shouldCacheJsonLd = false;
|
|
15377
|
+
continue;
|
|
15378
|
+
}
|
|
15379
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
14928
15380
|
_2yr3eUBTP6cNcyaxKzAXWjFsnGzN_controller.push(decoded);
|
|
14929
15381
|
}
|
|
14930
15382
|
instance.#_2yr3eUBTP6cNcyaxKzAXWjFsnGzN_controller = _2yr3eUBTP6cNcyaxKzAXWjFsnGzN_controller;
|
|
@@ -14933,11 +15385,16 @@ var Multikey = class {
|
|
|
14933
15385
|
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) {
|
|
14934
15386
|
if (v == null) continue;
|
|
14935
15387
|
const decoded = await importMultibaseKey(v["@value"]);
|
|
14936
|
-
if (typeof decoded === "undefined")
|
|
15388
|
+
if (typeof decoded === "undefined") {
|
|
15389
|
+
shouldCacheJsonLd = false;
|
|
15390
|
+
continue;
|
|
15391
|
+
}
|
|
15392
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
14937
15393
|
_4XLHbsR2gLVWU3NpEqKt9wANzn4F_publicKeyMultibase.push(decoded);
|
|
14938
15394
|
}
|
|
14939
15395
|
instance.#_4XLHbsR2gLVWU3NpEqKt9wANzn4F_publicKeyMultibase = _4XLHbsR2gLVWU3NpEqKt9wANzn4F_publicKeyMultibase;
|
|
14940
|
-
|
|
15396
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
15397
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
14941
15398
|
instance._cachedJsonLd = structuredClone(json);
|
|
14942
15399
|
} catch {
|
|
14943
15400
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -15232,6 +15689,7 @@ var Agreement = class Agreement extends Object$1 {
|
|
|
15232
15689
|
_fromSubclass: true
|
|
15233
15690
|
});
|
|
15234
15691
|
if (!(instance instanceof Agreement)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
15692
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
15235
15693
|
const _37zeAJ2NVyecrDdP8os69FGAn9Q6_stipulates = [];
|
|
15236
15694
|
let _37zeAJ2NVyecrDdP8os69FGAn9Q6_stipulates__array = values["https://w3id.org/valueflows/ont/vf#stipulates"];
|
|
15237
15695
|
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) {
|
|
@@ -15240,7 +15698,11 @@ var Agreement = class Agreement extends Object$1 {
|
|
|
15240
15698
|
...options,
|
|
15241
15699
|
baseUrl: options.baseUrl
|
|
15242
15700
|
});
|
|
15243
|
-
if (typeof decoded === "undefined")
|
|
15701
|
+
if (typeof decoded === "undefined") {
|
|
15702
|
+
shouldCacheJsonLd = false;
|
|
15703
|
+
continue;
|
|
15704
|
+
}
|
|
15705
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
15244
15706
|
_37zeAJ2NVyecrDdP8os69FGAn9Q6_stipulates.push(decoded);
|
|
15245
15707
|
}
|
|
15246
15708
|
instance.#_37zeAJ2NVyecrDdP8os69FGAn9Q6_stipulates = _37zeAJ2NVyecrDdP8os69FGAn9Q6_stipulates;
|
|
@@ -15252,11 +15714,16 @@ var Agreement = class Agreement extends Object$1 {
|
|
|
15252
15714
|
...options,
|
|
15253
15715
|
baseUrl: options.baseUrl
|
|
15254
15716
|
});
|
|
15255
|
-
if (typeof decoded === "undefined")
|
|
15717
|
+
if (typeof decoded === "undefined") {
|
|
15718
|
+
shouldCacheJsonLd = false;
|
|
15719
|
+
continue;
|
|
15720
|
+
}
|
|
15721
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
15256
15722
|
_4Vhx9DcywF65XWUQ4KZ35475FaJm_stipulatesReciprocal.push(decoded);
|
|
15257
15723
|
}
|
|
15258
15724
|
instance.#_4Vhx9DcywF65XWUQ4KZ35475FaJm_stipulatesReciprocal = _4Vhx9DcywF65XWUQ4KZ35475FaJm_stipulatesReciprocal;
|
|
15259
|
-
|
|
15725
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
15726
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
15260
15727
|
instance._cachedJsonLd = structuredClone(json);
|
|
15261
15728
|
} catch {
|
|
15262
15729
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -15296,6 +15763,7 @@ var Commitment = class {
|
|
|
15296
15763
|
#warning;
|
|
15297
15764
|
#cachedJsonLd;
|
|
15298
15765
|
#_baseUrl;
|
|
15766
|
+
#shouldCacheJsonLd = true;
|
|
15299
15767
|
id;
|
|
15300
15768
|
get _documentLoader() {
|
|
15301
15769
|
return this.#documentLoader;
|
|
@@ -15318,6 +15786,17 @@ var Commitment = class {
|
|
|
15318
15786
|
get _baseUrl() {
|
|
15319
15787
|
return this.#_baseUrl;
|
|
15320
15788
|
}
|
|
15789
|
+
get _shouldCacheJsonLd() {
|
|
15790
|
+
return this.#shouldCacheJsonLd;
|
|
15791
|
+
}
|
|
15792
|
+
set _shouldCacheJsonLd(value) {
|
|
15793
|
+
this.#shouldCacheJsonLd = value;
|
|
15794
|
+
}
|
|
15795
|
+
static _shouldCacheDecodedJsonLd(value) {
|
|
15796
|
+
if (value == null || typeof value !== "object") return true;
|
|
15797
|
+
if (!("_shouldCacheJsonLd" in value)) return true;
|
|
15798
|
+
return value._shouldCacheJsonLd;
|
|
15799
|
+
}
|
|
15321
15800
|
/**
|
|
15322
15801
|
* The type URI of {@link Commitment}: `https://w3id.org/valueflows/ont/vf#Commitment`.
|
|
15323
15802
|
*/
|
|
@@ -15528,12 +16007,17 @@ var Commitment = class {
|
|
|
15528
16007
|
if (!values["@type"].includes("https://w3id.org/valueflows/ont/vf#Commitment")) throw new TypeError("Invalid type: " + values["@type"]);
|
|
15529
16008
|
}
|
|
15530
16009
|
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);
|
|
16010
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
15531
16011
|
const _aCyzDK9TkXtLxrZs7JC8emuYisv_satisfies = [];
|
|
15532
16012
|
let _aCyzDK9TkXtLxrZs7JC8emuYisv_satisfies__array = values["https://w3id.org/valueflows/ont/vf#satisfies"];
|
|
15533
16013
|
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) {
|
|
15534
16014
|
if (v == null) continue;
|
|
15535
16015
|
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);
|
|
15536
|
-
if (typeof decoded === "undefined")
|
|
16016
|
+
if (typeof decoded === "undefined") {
|
|
16017
|
+
shouldCacheJsonLd = false;
|
|
16018
|
+
continue;
|
|
16019
|
+
}
|
|
16020
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
15537
16021
|
_aCyzDK9TkXtLxrZs7JC8emuYisv_satisfies.push(decoded);
|
|
15538
16022
|
}
|
|
15539
16023
|
instance.#_aCyzDK9TkXtLxrZs7JC8emuYisv_satisfies = _aCyzDK9TkXtLxrZs7JC8emuYisv_satisfies;
|
|
@@ -15545,11 +16029,16 @@ var Commitment = class {
|
|
|
15545
16029
|
...options,
|
|
15546
16030
|
baseUrl: options.baseUrl
|
|
15547
16031
|
});
|
|
15548
|
-
if (typeof decoded === "undefined")
|
|
16032
|
+
if (typeof decoded === "undefined") {
|
|
16033
|
+
shouldCacheJsonLd = false;
|
|
16034
|
+
continue;
|
|
16035
|
+
}
|
|
16036
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
15549
16037
|
_2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity.push(decoded);
|
|
15550
16038
|
}
|
|
15551
16039
|
instance.#_2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity = _2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity;
|
|
15552
|
-
|
|
16040
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
16041
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
15553
16042
|
instance._cachedJsonLd = structuredClone(json);
|
|
15554
16043
|
} catch {
|
|
15555
16044
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -15591,6 +16080,7 @@ var Intent = class {
|
|
|
15591
16080
|
#warning;
|
|
15592
16081
|
#cachedJsonLd;
|
|
15593
16082
|
#_baseUrl;
|
|
16083
|
+
#shouldCacheJsonLd = true;
|
|
15594
16084
|
id;
|
|
15595
16085
|
get _documentLoader() {
|
|
15596
16086
|
return this.#documentLoader;
|
|
@@ -15613,6 +16103,17 @@ var Intent = class {
|
|
|
15613
16103
|
get _baseUrl() {
|
|
15614
16104
|
return this.#_baseUrl;
|
|
15615
16105
|
}
|
|
16106
|
+
get _shouldCacheJsonLd() {
|
|
16107
|
+
return this.#shouldCacheJsonLd;
|
|
16108
|
+
}
|
|
16109
|
+
set _shouldCacheJsonLd(value) {
|
|
16110
|
+
this.#shouldCacheJsonLd = value;
|
|
16111
|
+
}
|
|
16112
|
+
static _shouldCacheDecodedJsonLd(value) {
|
|
16113
|
+
if (value == null || typeof value !== "object") return true;
|
|
16114
|
+
if (!("_shouldCacheJsonLd" in value)) return true;
|
|
16115
|
+
return value._shouldCacheJsonLd;
|
|
16116
|
+
}
|
|
15616
16117
|
/**
|
|
15617
16118
|
* The type URI of {@link Intent}: `https://w3id.org/valueflows/ont/vf#Intent`.
|
|
15618
16119
|
*/
|
|
@@ -15907,12 +16408,17 @@ var Intent = class {
|
|
|
15907
16408
|
if (!values["@type"].includes("https://w3id.org/valueflows/ont/vf#Intent")) throw new TypeError("Invalid type: " + values["@type"]);
|
|
15908
16409
|
}
|
|
15909
16410
|
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);
|
|
16411
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
15910
16412
|
const _38VmZKmXJSBy3AvgqNa9GVqbdphy_action = [];
|
|
15911
16413
|
let _38VmZKmXJSBy3AvgqNa9GVqbdphy_action__array = values["https://w3id.org/valueflows/ont/vf#action"];
|
|
15912
16414
|
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) {
|
|
15913
16415
|
if (v == null) continue;
|
|
15914
16416
|
const decoded = v["@value"];
|
|
15915
|
-
if (typeof decoded === "undefined")
|
|
16417
|
+
if (typeof decoded === "undefined") {
|
|
16418
|
+
shouldCacheJsonLd = false;
|
|
16419
|
+
continue;
|
|
16420
|
+
}
|
|
16421
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
15916
16422
|
_38VmZKmXJSBy3AvgqNa9GVqbdphy_action.push(decoded);
|
|
15917
16423
|
}
|
|
15918
16424
|
instance.#_38VmZKmXJSBy3AvgqNa9GVqbdphy_action = _38VmZKmXJSBy3AvgqNa9GVqbdphy_action;
|
|
@@ -15921,7 +16427,11 @@ var Intent = class {
|
|
|
15921
16427
|
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) {
|
|
15922
16428
|
if (v == null) continue;
|
|
15923
16429
|
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);
|
|
15924
|
-
if (typeof decoded === "undefined")
|
|
16430
|
+
if (typeof decoded === "undefined") {
|
|
16431
|
+
shouldCacheJsonLd = false;
|
|
16432
|
+
continue;
|
|
16433
|
+
}
|
|
16434
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
15925
16435
|
_BBAeMUUQDwBQn6cvu3P2Csd6b6h_resourceConformsTo.push(decoded);
|
|
15926
16436
|
}
|
|
15927
16437
|
instance.#_BBAeMUUQDwBQn6cvu3P2Csd6b6h_resourceConformsTo = _BBAeMUUQDwBQn6cvu3P2Csd6b6h_resourceConformsTo;
|
|
@@ -15933,7 +16443,11 @@ var Intent = class {
|
|
|
15933
16443
|
...options,
|
|
15934
16444
|
baseUrl: options.baseUrl
|
|
15935
16445
|
});
|
|
15936
|
-
if (typeof decoded === "undefined")
|
|
16446
|
+
if (typeof decoded === "undefined") {
|
|
16447
|
+
shouldCacheJsonLd = false;
|
|
16448
|
+
continue;
|
|
16449
|
+
}
|
|
16450
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
15937
16451
|
_2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity.push(decoded);
|
|
15938
16452
|
}
|
|
15939
16453
|
instance.#_2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity = _2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity;
|
|
@@ -15945,7 +16459,11 @@ var Intent = class {
|
|
|
15945
16459
|
...options,
|
|
15946
16460
|
baseUrl: options.baseUrl
|
|
15947
16461
|
});
|
|
15948
|
-
if (typeof decoded === "undefined")
|
|
16462
|
+
if (typeof decoded === "undefined") {
|
|
16463
|
+
shouldCacheJsonLd = false;
|
|
16464
|
+
continue;
|
|
16465
|
+
}
|
|
16466
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
15949
16467
|
_YmNSnuih3Zk4VdR5JPVnQYroLAh_availableQuantity.push(decoded);
|
|
15950
16468
|
}
|
|
15951
16469
|
instance.#_YmNSnuih3Zk4VdR5JPVnQYroLAh_availableQuantity = _YmNSnuih3Zk4VdR5JPVnQYroLAh_availableQuantity;
|
|
@@ -15957,11 +16475,16 @@ var Intent = class {
|
|
|
15957
16475
|
...options,
|
|
15958
16476
|
baseUrl: options.baseUrl
|
|
15959
16477
|
});
|
|
15960
|
-
if (typeof decoded === "undefined")
|
|
16478
|
+
if (typeof decoded === "undefined") {
|
|
16479
|
+
shouldCacheJsonLd = false;
|
|
16480
|
+
continue;
|
|
16481
|
+
}
|
|
16482
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
15961
16483
|
_3XueAFds2NBrqNpnV8b7aC8hV72S_minimumQuantity.push(decoded);
|
|
15962
16484
|
}
|
|
15963
16485
|
instance.#_3XueAFds2NBrqNpnV8b7aC8hV72S_minimumQuantity = _3XueAFds2NBrqNpnV8b7aC8hV72S_minimumQuantity;
|
|
15964
|
-
|
|
16486
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
16487
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
15965
16488
|
instance._cachedJsonLd = structuredClone(json);
|
|
15966
16489
|
} catch {
|
|
15967
16490
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -16330,12 +16853,17 @@ var Proposal = class Proposal extends Object$1 {
|
|
|
16330
16853
|
_fromSubclass: true
|
|
16331
16854
|
});
|
|
16332
16855
|
if (!(instance instanceof Proposal)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
16856
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
16333
16857
|
const _4wb2xgUBheR2gaD2Se8QBH4LEC7_purpose = [];
|
|
16334
16858
|
let _4wb2xgUBheR2gaD2Se8QBH4LEC7_purpose__array = values["https://w3id.org/valueflows/ont/vf#purpose"];
|
|
16335
16859
|
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) {
|
|
16336
16860
|
if (v == null) continue;
|
|
16337
16861
|
const decoded = v["@value"];
|
|
16338
|
-
if (typeof decoded === "undefined")
|
|
16862
|
+
if (typeof decoded === "undefined") {
|
|
16863
|
+
shouldCacheJsonLd = false;
|
|
16864
|
+
continue;
|
|
16865
|
+
}
|
|
16866
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
16339
16867
|
_4wb2xgUBheR2gaD2Se8QBH4LEC7_purpose.push(decoded);
|
|
16340
16868
|
}
|
|
16341
16869
|
instance.#_4wb2xgUBheR2gaD2Se8QBH4LEC7_purpose = _4wb2xgUBheR2gaD2Se8QBH4LEC7_purpose;
|
|
@@ -16347,7 +16875,11 @@ var Proposal = class Proposal extends Object$1 {
|
|
|
16347
16875
|
...options,
|
|
16348
16876
|
baseUrl: options.baseUrl
|
|
16349
16877
|
});
|
|
16350
|
-
if (typeof decoded === "undefined")
|
|
16878
|
+
if (typeof decoded === "undefined") {
|
|
16879
|
+
shouldCacheJsonLd = false;
|
|
16880
|
+
continue;
|
|
16881
|
+
}
|
|
16882
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
16351
16883
|
_sS5LvXX8cn4c3x6ux836AwYbTyJ_publishes.push(decoded);
|
|
16352
16884
|
}
|
|
16353
16885
|
instance.#_sS5LvXX8cn4c3x6ux836AwYbTyJ_publishes = _sS5LvXX8cn4c3x6ux836AwYbTyJ_publishes;
|
|
@@ -16359,7 +16891,11 @@ var Proposal = class Proposal extends Object$1 {
|
|
|
16359
16891
|
...options,
|
|
16360
16892
|
baseUrl: options.baseUrl
|
|
16361
16893
|
});
|
|
16362
|
-
if (typeof decoded === "undefined")
|
|
16894
|
+
if (typeof decoded === "undefined") {
|
|
16895
|
+
shouldCacheJsonLd = false;
|
|
16896
|
+
continue;
|
|
16897
|
+
}
|
|
16898
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
16363
16899
|
_Z4ntJgFwR9BaNTbFvkRTGNEwUwy_reciprocal.push(decoded);
|
|
16364
16900
|
}
|
|
16365
16901
|
instance.#_Z4ntJgFwR9BaNTbFvkRTGNEwUwy_reciprocal = _Z4ntJgFwR9BaNTbFvkRTGNEwUwy_reciprocal;
|
|
@@ -16368,11 +16904,16 @@ var Proposal = class Proposal extends Object$1 {
|
|
|
16368
16904
|
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) {
|
|
16369
16905
|
if (v == null) continue;
|
|
16370
16906
|
const decoded = v["@value"];
|
|
16371
|
-
if (typeof decoded === "undefined")
|
|
16907
|
+
if (typeof decoded === "undefined") {
|
|
16908
|
+
shouldCacheJsonLd = false;
|
|
16909
|
+
continue;
|
|
16910
|
+
}
|
|
16911
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
16372
16912
|
_48ncwmfGhSoqAFByMVh2UxoiozPq_unitBased.push(decoded);
|
|
16373
16913
|
}
|
|
16374
16914
|
instance.#_48ncwmfGhSoqAFByMVh2UxoiozPq_unitBased = _48ncwmfGhSoqAFByMVh2UxoiozPq_unitBased;
|
|
16375
|
-
|
|
16915
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
16916
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
16376
16917
|
instance._cachedJsonLd = structuredClone(json);
|
|
16377
16918
|
} catch {
|
|
16378
16919
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -16545,7 +17086,9 @@ var Accept = class Accept extends Activity {
|
|
|
16545
17086
|
_fromSubclass: true
|
|
16546
17087
|
});
|
|
16547
17088
|
if (!(instance instanceof Accept)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
16548
|
-
|
|
17089
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
17090
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
17091
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
16549
17092
|
instance._cachedJsonLd = structuredClone(json);
|
|
16550
17093
|
} catch {
|
|
16551
17094
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -16697,7 +17240,9 @@ var Add = class Add extends Activity {
|
|
|
16697
17240
|
_fromSubclass: true
|
|
16698
17241
|
});
|
|
16699
17242
|
if (!(instance instanceof Add)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
16700
|
-
|
|
17243
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
17244
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
17245
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
16701
17246
|
instance._cachedJsonLd = structuredClone(json);
|
|
16702
17247
|
} catch {
|
|
16703
17248
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -16877,7 +17422,9 @@ var Announce = class Announce extends Activity {
|
|
|
16877
17422
|
_fromSubclass: true
|
|
16878
17423
|
});
|
|
16879
17424
|
if (!(instance instanceof Announce)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
16880
|
-
|
|
17425
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
17426
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
17427
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
16881
17428
|
instance._cachedJsonLd = structuredClone(json);
|
|
16882
17429
|
} catch {
|
|
16883
17430
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -19796,12 +20343,17 @@ var Application = class Application extends Object$1 {
|
|
|
19796
20343
|
_fromSubclass: true
|
|
19797
20344
|
});
|
|
19798
20345
|
if (!(instance instanceof Application)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
20346
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
19799
20347
|
const _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = [];
|
|
19800
20348
|
let _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername__array = values["https://www.w3.org/ns/activitystreams#preferredUsername"];
|
|
19801
20349
|
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) {
|
|
19802
20350
|
if (v == null) continue;
|
|
19803
|
-
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(v["@value"], v["@language"]) : void 0;
|
|
19804
|
-
if (typeof decoded === "undefined")
|
|
20351
|
+
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(v["@value"], v["@language"]) : void 0;
|
|
20352
|
+
if (typeof decoded === "undefined") {
|
|
20353
|
+
shouldCacheJsonLd = false;
|
|
20354
|
+
continue;
|
|
20355
|
+
}
|
|
20356
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
19805
20357
|
_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername.push(decoded);
|
|
19806
20358
|
}
|
|
19807
20359
|
instance.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername;
|
|
@@ -19818,7 +20370,11 @@ var Application = class Application extends Object$1 {
|
|
|
19818
20370
|
...options,
|
|
19819
20371
|
baseUrl: options.baseUrl
|
|
19820
20372
|
});
|
|
19821
|
-
if (typeof decoded === "undefined")
|
|
20373
|
+
if (typeof decoded === "undefined") {
|
|
20374
|
+
shouldCacheJsonLd = false;
|
|
20375
|
+
continue;
|
|
20376
|
+
}
|
|
20377
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
19822
20378
|
_axq166E2eZADq34V4MYUc8KMZdC_publicKey.push(decoded);
|
|
19823
20379
|
}
|
|
19824
20380
|
instance.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = _axq166E2eZADq34V4MYUc8KMZdC_publicKey;
|
|
@@ -19835,7 +20391,11 @@ var Application = class Application extends Object$1 {
|
|
|
19835
20391
|
...options,
|
|
19836
20392
|
baseUrl: options.baseUrl
|
|
19837
20393
|
});
|
|
19838
|
-
if (typeof decoded === "undefined")
|
|
20394
|
+
if (typeof decoded === "undefined") {
|
|
20395
|
+
shouldCacheJsonLd = false;
|
|
20396
|
+
continue;
|
|
20397
|
+
}
|
|
20398
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
19839
20399
|
_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(decoded);
|
|
19840
20400
|
}
|
|
19841
20401
|
instance.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod;
|
|
@@ -19844,7 +20404,11 @@ var Application = class Application extends Object$1 {
|
|
|
19844
20404
|
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) {
|
|
19845
20405
|
if (v == null) continue;
|
|
19846
20406
|
const decoded = v["@value"];
|
|
19847
|
-
if (typeof decoded === "undefined")
|
|
20407
|
+
if (typeof decoded === "undefined") {
|
|
20408
|
+
shouldCacheJsonLd = false;
|
|
20409
|
+
continue;
|
|
20410
|
+
}
|
|
20411
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
19848
20412
|
_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers.push(decoded);
|
|
19849
20413
|
}
|
|
19850
20414
|
instance.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers;
|
|
@@ -19864,7 +20428,11 @@ var Application = class Application extends Object$1 {
|
|
|
19864
20428
|
...options,
|
|
19865
20429
|
baseUrl: options.baseUrl
|
|
19866
20430
|
}) : void 0;
|
|
19867
|
-
if (typeof decoded === "undefined")
|
|
20431
|
+
if (typeof decoded === "undefined") {
|
|
20432
|
+
shouldCacheJsonLd = false;
|
|
20433
|
+
continue;
|
|
20434
|
+
}
|
|
20435
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
19868
20436
|
_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox.push(decoded);
|
|
19869
20437
|
}
|
|
19870
20438
|
instance.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = _3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox;
|
|
@@ -19884,7 +20452,11 @@ var Application = class Application extends Object$1 {
|
|
|
19884
20452
|
...options,
|
|
19885
20453
|
baseUrl: options.baseUrl
|
|
19886
20454
|
}) : void 0;
|
|
19887
|
-
if (typeof decoded === "undefined")
|
|
20455
|
+
if (typeof decoded === "undefined") {
|
|
20456
|
+
shouldCacheJsonLd = false;
|
|
20457
|
+
continue;
|
|
20458
|
+
}
|
|
20459
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
19888
20460
|
_41QwhqJouoLg3h8dRPKat21brynC_outbox.push(decoded);
|
|
19889
20461
|
}
|
|
19890
20462
|
instance.#_41QwhqJouoLg3h8dRPKat21brynC_outbox = _41QwhqJouoLg3h8dRPKat21brynC_outbox;
|
|
@@ -19901,7 +20473,11 @@ var Application = class Application extends Object$1 {
|
|
|
19901
20473
|
...options,
|
|
19902
20474
|
baseUrl: options.baseUrl
|
|
19903
20475
|
});
|
|
19904
|
-
if (typeof decoded === "undefined")
|
|
20476
|
+
if (typeof decoded === "undefined") {
|
|
20477
|
+
shouldCacheJsonLd = false;
|
|
20478
|
+
continue;
|
|
20479
|
+
}
|
|
20480
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
19905
20481
|
_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.push(decoded);
|
|
19906
20482
|
}
|
|
19907
20483
|
instance.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = _3yAv8jymNfNuJUDuBzJ1NQhdbAee_following;
|
|
@@ -19918,7 +20494,11 @@ var Application = class Application extends Object$1 {
|
|
|
19918
20494
|
...options,
|
|
19919
20495
|
baseUrl: options.baseUrl
|
|
19920
20496
|
});
|
|
19921
|
-
if (typeof decoded === "undefined")
|
|
20497
|
+
if (typeof decoded === "undefined") {
|
|
20498
|
+
shouldCacheJsonLd = false;
|
|
20499
|
+
continue;
|
|
20500
|
+
}
|
|
20501
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
19922
20502
|
_BBCTgfphhsFzpVfKTykGSpBNwoA_followers.push(decoded);
|
|
19923
20503
|
}
|
|
19924
20504
|
instance.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = _BBCTgfphhsFzpVfKTykGSpBNwoA_followers;
|
|
@@ -19935,7 +20515,11 @@ var Application = class Application extends Object$1 {
|
|
|
19935
20515
|
...options,
|
|
19936
20516
|
baseUrl: options.baseUrl
|
|
19937
20517
|
});
|
|
19938
|
-
if (typeof decoded === "undefined")
|
|
20518
|
+
if (typeof decoded === "undefined") {
|
|
20519
|
+
shouldCacheJsonLd = false;
|
|
20520
|
+
continue;
|
|
20521
|
+
}
|
|
20522
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
19939
20523
|
_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.push(decoded);
|
|
19940
20524
|
}
|
|
19941
20525
|
instance.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = _3bgkPwJanyTCoVFM9ovRcus8tKkU_liked;
|
|
@@ -19952,7 +20536,11 @@ var Application = class Application extends Object$1 {
|
|
|
19952
20536
|
...options,
|
|
19953
20537
|
baseUrl: options.baseUrl
|
|
19954
20538
|
});
|
|
19955
|
-
if (typeof decoded === "undefined")
|
|
20539
|
+
if (typeof decoded === "undefined") {
|
|
20540
|
+
shouldCacheJsonLd = false;
|
|
20541
|
+
continue;
|
|
20542
|
+
}
|
|
20543
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
19956
20544
|
_4N1vBJzXDf8NbBumeECQMFvKetja_featured.push(decoded);
|
|
19957
20545
|
}
|
|
19958
20546
|
instance.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured = _4N1vBJzXDf8NbBumeECQMFvKetja_featured;
|
|
@@ -19969,7 +20557,11 @@ var Application = class Application extends Object$1 {
|
|
|
19969
20557
|
...options,
|
|
19970
20558
|
baseUrl: options.baseUrl
|
|
19971
20559
|
});
|
|
19972
|
-
if (typeof decoded === "undefined")
|
|
20560
|
+
if (typeof decoded === "undefined") {
|
|
20561
|
+
shouldCacheJsonLd = false;
|
|
20562
|
+
continue;
|
|
20563
|
+
}
|
|
20564
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
19973
20565
|
_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.push(decoded);
|
|
19974
20566
|
}
|
|
19975
20567
|
instance.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = _2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags;
|
|
@@ -19986,7 +20578,11 @@ var Application = class Application extends Object$1 {
|
|
|
19986
20578
|
...options,
|
|
19987
20579
|
baseUrl: options.baseUrl
|
|
19988
20580
|
});
|
|
19989
|
-
if (typeof decoded === "undefined")
|
|
20581
|
+
if (typeof decoded === "undefined") {
|
|
20582
|
+
shouldCacheJsonLd = false;
|
|
20583
|
+
continue;
|
|
20584
|
+
}
|
|
20585
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
19990
20586
|
_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.push(decoded);
|
|
19991
20587
|
}
|
|
19992
20588
|
instance.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = _3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams;
|
|
@@ -19998,7 +20594,11 @@ var Application = class Application extends Object$1 {
|
|
|
19998
20594
|
...options,
|
|
19999
20595
|
baseUrl: options.baseUrl
|
|
20000
20596
|
});
|
|
20001
|
-
if (typeof decoded === "undefined")
|
|
20597
|
+
if (typeof decoded === "undefined") {
|
|
20598
|
+
shouldCacheJsonLd = false;
|
|
20599
|
+
continue;
|
|
20600
|
+
}
|
|
20601
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
20002
20602
|
_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.push(decoded);
|
|
20003
20603
|
}
|
|
20004
20604
|
instance.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints;
|
|
@@ -20007,7 +20607,11 @@ var Application = class Application extends Object$1 {
|
|
|
20007
20607
|
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) {
|
|
20008
20608
|
if (v == null) continue;
|
|
20009
20609
|
const decoded = v["@value"];
|
|
20010
|
-
if (typeof decoded === "undefined")
|
|
20610
|
+
if (typeof decoded === "undefined") {
|
|
20611
|
+
shouldCacheJsonLd = false;
|
|
20612
|
+
continue;
|
|
20613
|
+
}
|
|
20614
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
20011
20615
|
_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable.push(decoded);
|
|
20012
20616
|
}
|
|
20013
20617
|
instance.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = _gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable;
|
|
@@ -20016,7 +20620,11 @@ var Application = class Application extends Object$1 {
|
|
|
20016
20620
|
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) {
|
|
20017
20621
|
if (v == null) continue;
|
|
20018
20622
|
const decoded = v["@value"];
|
|
20019
|
-
if (typeof decoded === "undefined")
|
|
20623
|
+
if (typeof decoded === "undefined") {
|
|
20624
|
+
shouldCacheJsonLd = false;
|
|
20625
|
+
continue;
|
|
20626
|
+
}
|
|
20627
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
20020
20628
|
_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended.push(decoded);
|
|
20021
20629
|
}
|
|
20022
20630
|
instance.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = _2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended;
|
|
@@ -20025,7 +20633,11 @@ var Application = class Application extends Object$1 {
|
|
|
20025
20633
|
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) {
|
|
20026
20634
|
if (v == null) continue;
|
|
20027
20635
|
const decoded = v["@value"];
|
|
20028
|
-
if (typeof decoded === "undefined")
|
|
20636
|
+
if (typeof decoded === "undefined") {
|
|
20637
|
+
shouldCacheJsonLd = false;
|
|
20638
|
+
continue;
|
|
20639
|
+
}
|
|
20640
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
20029
20641
|
_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial.push(decoded);
|
|
20030
20642
|
}
|
|
20031
20643
|
instance.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = _79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial;
|
|
@@ -20034,7 +20646,11 @@ var Application = class Application extends Object$1 {
|
|
|
20034
20646
|
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) {
|
|
20035
20647
|
if (v == null) continue;
|
|
20036
20648
|
const decoded = v["@value"];
|
|
20037
|
-
if (typeof decoded === "undefined")
|
|
20649
|
+
if (typeof decoded === "undefined") {
|
|
20650
|
+
shouldCacheJsonLd = false;
|
|
20651
|
+
continue;
|
|
20652
|
+
}
|
|
20653
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
20038
20654
|
_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable.push(decoded);
|
|
20039
20655
|
}
|
|
20040
20656
|
instance.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable;
|
|
@@ -20063,7 +20679,11 @@ var Application = class Application extends Object$1 {
|
|
|
20063
20679
|
...options,
|
|
20064
20680
|
baseUrl: options.baseUrl
|
|
20065
20681
|
}) : void 0;
|
|
20066
|
-
if (typeof decoded === "undefined")
|
|
20682
|
+
if (typeof decoded === "undefined") {
|
|
20683
|
+
shouldCacheJsonLd = false;
|
|
20684
|
+
continue;
|
|
20685
|
+
}
|
|
20686
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
20067
20687
|
_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.push(decoded);
|
|
20068
20688
|
}
|
|
20069
20689
|
instance.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = _2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo;
|
|
@@ -20092,7 +20712,11 @@ var Application = class Application extends Object$1 {
|
|
|
20092
20712
|
...options,
|
|
20093
20713
|
baseUrl: options.baseUrl
|
|
20094
20714
|
}) : void 0;
|
|
20095
|
-
if (typeof decoded === "undefined")
|
|
20715
|
+
if (typeof decoded === "undefined") {
|
|
20716
|
+
shouldCacheJsonLd = false;
|
|
20717
|
+
continue;
|
|
20718
|
+
}
|
|
20719
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
20096
20720
|
_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.push(decoded);
|
|
20097
20721
|
}
|
|
20098
20722
|
instance.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = _3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs;
|
|
@@ -20109,7 +20733,11 @@ var Application = class Application extends Object$1 {
|
|
|
20109
20733
|
...options,
|
|
20110
20734
|
baseUrl: options.baseUrl
|
|
20111
20735
|
});
|
|
20112
|
-
if (typeof decoded === "undefined")
|
|
20736
|
+
if (typeof decoded === "undefined") {
|
|
20737
|
+
shouldCacheJsonLd = false;
|
|
20738
|
+
continue;
|
|
20739
|
+
}
|
|
20740
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
20113
20741
|
_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.push(decoded);
|
|
20114
20742
|
}
|
|
20115
20743
|
instance.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = _4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service;
|
|
@@ -20118,7 +20746,11 @@ var Application = class Application extends Object$1 {
|
|
|
20118
20746
|
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) {
|
|
20119
20747
|
if (v == null) continue;
|
|
20120
20748
|
const decoded = v["@value"];
|
|
20121
|
-
if (typeof decoded === "undefined")
|
|
20749
|
+
if (typeof decoded === "undefined") {
|
|
20750
|
+
shouldCacheJsonLd = false;
|
|
20751
|
+
continue;
|
|
20752
|
+
}
|
|
20753
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
20122
20754
|
_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage.push(decoded);
|
|
20123
20755
|
}
|
|
20124
20756
|
instance.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage;
|
|
@@ -20127,11 +20759,16 @@ var Application = class Application extends Object$1 {
|
|
|
20127
20759
|
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) {
|
|
20128
20760
|
if (v == null) continue;
|
|
20129
20761
|
const decoded = v["@value"];
|
|
20130
|
-
if (typeof decoded === "undefined")
|
|
20762
|
+
if (typeof decoded === "undefined") {
|
|
20763
|
+
shouldCacheJsonLd = false;
|
|
20764
|
+
continue;
|
|
20765
|
+
}
|
|
20766
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
20131
20767
|
_2xEU4QtkC53RAun67T81Egqt9vmL_isCat.push(decoded);
|
|
20132
20768
|
}
|
|
20133
20769
|
instance.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = _2xEU4QtkC53RAun67T81Egqt9vmL_isCat;
|
|
20134
|
-
|
|
20770
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
20771
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
20135
20772
|
instance._cachedJsonLd = structuredClone(json);
|
|
20136
20773
|
} catch {
|
|
20137
20774
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -20401,7 +21038,9 @@ var IntransitiveActivity = class IntransitiveActivity extends Activity {
|
|
|
20401
21038
|
_fromSubclass: true
|
|
20402
21039
|
});
|
|
20403
21040
|
if (!(instance instanceof IntransitiveActivity)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
20404
|
-
|
|
21041
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
21042
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
21043
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
20405
21044
|
instance._cachedJsonLd = structuredClone(json);
|
|
20406
21045
|
} catch {
|
|
20407
21046
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -20552,7 +21191,9 @@ var Arrive = class Arrive extends IntransitiveActivity {
|
|
|
20552
21191
|
_fromSubclass: true
|
|
20553
21192
|
});
|
|
20554
21193
|
if (!(instance instanceof Arrive)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
20555
|
-
|
|
21194
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
21195
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
21196
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
20556
21197
|
instance._cachedJsonLd = structuredClone(json);
|
|
20557
21198
|
} catch {
|
|
20558
21199
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -21113,6 +21754,7 @@ var Article = class Article extends Object$1 {
|
|
|
21113
21754
|
_fromSubclass: true
|
|
21114
21755
|
});
|
|
21115
21756
|
if (!(instance instanceof Article)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
21757
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
21116
21758
|
const _3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote = [];
|
|
21117
21759
|
let _3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote__array = values["https://w3id.org/fep/044f#quote"];
|
|
21118
21760
|
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) {
|
|
@@ -21126,7 +21768,11 @@ var Article = class Article extends Object$1 {
|
|
|
21126
21768
|
...options,
|
|
21127
21769
|
baseUrl: options.baseUrl
|
|
21128
21770
|
});
|
|
21129
|
-
if (typeof decoded === "undefined")
|
|
21771
|
+
if (typeof decoded === "undefined") {
|
|
21772
|
+
shouldCacheJsonLd = false;
|
|
21773
|
+
continue;
|
|
21774
|
+
}
|
|
21775
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
21130
21776
|
_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote.push(decoded);
|
|
21131
21777
|
}
|
|
21132
21778
|
instance.#_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote = _3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote;
|
|
@@ -21137,7 +21783,11 @@ var Article = class Article extends Object$1 {
|
|
|
21137
21783
|
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) {
|
|
21138
21784
|
if (v == null) continue;
|
|
21139
21785
|
const decoded = new URL(v["@value"]);
|
|
21140
|
-
if (typeof decoded === "undefined")
|
|
21786
|
+
if (typeof decoded === "undefined") {
|
|
21787
|
+
shouldCacheJsonLd = false;
|
|
21788
|
+
continue;
|
|
21789
|
+
}
|
|
21790
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
21141
21791
|
_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl.push(decoded);
|
|
21142
21792
|
}
|
|
21143
21793
|
instance.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl = _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl;
|
|
@@ -21154,11 +21804,16 @@ var Article = class Article extends Object$1 {
|
|
|
21154
21804
|
...options,
|
|
21155
21805
|
baseUrl: options.baseUrl
|
|
21156
21806
|
});
|
|
21157
|
-
if (typeof decoded === "undefined")
|
|
21807
|
+
if (typeof decoded === "undefined") {
|
|
21808
|
+
shouldCacheJsonLd = false;
|
|
21809
|
+
continue;
|
|
21810
|
+
}
|
|
21811
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
21158
21812
|
_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization.push(decoded);
|
|
21159
21813
|
}
|
|
21160
21814
|
instance.#_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization = _ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization;
|
|
21161
|
-
|
|
21815
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
21816
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
21162
21817
|
instance._cachedJsonLd = structuredClone(json);
|
|
21163
21818
|
} catch {
|
|
21164
21819
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -21401,12 +22056,17 @@ var Document = class Document extends Object$1 {
|
|
|
21401
22056
|
_fromSubclass: true
|
|
21402
22057
|
});
|
|
21403
22058
|
if (!(instance instanceof Document)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
22059
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
21404
22060
|
const _2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width = [];
|
|
21405
22061
|
let _2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width__array = values["https://www.w3.org/ns/activitystreams#width"];
|
|
21406
22062
|
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) {
|
|
21407
22063
|
if (v == null) continue;
|
|
21408
22064
|
const decoded = v["@value"];
|
|
21409
|
-
if (typeof decoded === "undefined")
|
|
22065
|
+
if (typeof decoded === "undefined") {
|
|
22066
|
+
shouldCacheJsonLd = false;
|
|
22067
|
+
continue;
|
|
22068
|
+
}
|
|
22069
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
21410
22070
|
_2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width.push(decoded);
|
|
21411
22071
|
}
|
|
21412
22072
|
instance.#_2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width = _2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width;
|
|
@@ -21415,11 +22075,16 @@ var Document = class Document extends Object$1 {
|
|
|
21415
22075
|
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) {
|
|
21416
22076
|
if (v == null) continue;
|
|
21417
22077
|
const decoded = v["@value"];
|
|
21418
|
-
if (typeof decoded === "undefined")
|
|
22078
|
+
if (typeof decoded === "undefined") {
|
|
22079
|
+
shouldCacheJsonLd = false;
|
|
22080
|
+
continue;
|
|
22081
|
+
}
|
|
22082
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
21419
22083
|
_2cGKFeFJMmiNpGZFEF75mCwFQsKb_height.push(decoded);
|
|
21420
22084
|
}
|
|
21421
22085
|
instance.#_2cGKFeFJMmiNpGZFEF75mCwFQsKb_height = _2cGKFeFJMmiNpGZFEF75mCwFQsKb_height;
|
|
21422
|
-
|
|
22086
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
22087
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
21423
22088
|
instance._cachedJsonLd = structuredClone(json);
|
|
21424
22089
|
} catch {
|
|
21425
22090
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -21593,7 +22258,9 @@ var Audio = class Audio extends Document {
|
|
|
21593
22258
|
_fromSubclass: true
|
|
21594
22259
|
});
|
|
21595
22260
|
if (!(instance instanceof Audio)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
21596
|
-
|
|
22261
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
22262
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
22263
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
21597
22264
|
instance._cachedJsonLd = structuredClone(json);
|
|
21598
22265
|
} catch {
|
|
21599
22266
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -21744,7 +22411,9 @@ var Ignore = class Ignore extends Activity {
|
|
|
21744
22411
|
_fromSubclass: true
|
|
21745
22412
|
});
|
|
21746
22413
|
if (!(instance instanceof Ignore)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
21747
|
-
|
|
22414
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
22415
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
22416
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
21748
22417
|
instance._cachedJsonLd = structuredClone(json);
|
|
21749
22418
|
} catch {
|
|
21750
22419
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -21896,7 +22565,9 @@ var Block = class Block extends Ignore {
|
|
|
21896
22565
|
_fromSubclass: true
|
|
21897
22566
|
});
|
|
21898
22567
|
if (!(instance instanceof Block)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
21899
|
-
|
|
22568
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
22569
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
22570
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
21900
22571
|
instance._cachedJsonLd = structuredClone(json);
|
|
21901
22572
|
} catch {
|
|
21902
22573
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -23983,12 +24654,17 @@ var Collection = class Collection extends Object$1 {
|
|
|
23983
24654
|
_fromSubclass: true
|
|
23984
24655
|
});
|
|
23985
24656
|
if (!(instance instanceof Collection)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
24657
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
23986
24658
|
const _XDbmNDuWHmrhqH712zqtecdbv1V_totalItems = [];
|
|
23987
24659
|
let _XDbmNDuWHmrhqH712zqtecdbv1V_totalItems__array = values["https://www.w3.org/ns/activitystreams#totalItems"];
|
|
23988
24660
|
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) {
|
|
23989
24661
|
if (v == null) continue;
|
|
23990
24662
|
const decoded = v["@value"];
|
|
23991
|
-
if (typeof decoded === "undefined")
|
|
24663
|
+
if (typeof decoded === "undefined") {
|
|
24664
|
+
shouldCacheJsonLd = false;
|
|
24665
|
+
continue;
|
|
24666
|
+
}
|
|
24667
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
23992
24668
|
_XDbmNDuWHmrhqH712zqtecdbv1V_totalItems.push(decoded);
|
|
23993
24669
|
}
|
|
23994
24670
|
instance.#_XDbmNDuWHmrhqH712zqtecdbv1V_totalItems = _XDbmNDuWHmrhqH712zqtecdbv1V_totalItems;
|
|
@@ -24005,7 +24681,11 @@ var Collection = class Collection extends Object$1 {
|
|
|
24005
24681
|
...options,
|
|
24006
24682
|
baseUrl: options.baseUrl
|
|
24007
24683
|
});
|
|
24008
|
-
if (typeof decoded === "undefined")
|
|
24684
|
+
if (typeof decoded === "undefined") {
|
|
24685
|
+
shouldCacheJsonLd = false;
|
|
24686
|
+
continue;
|
|
24687
|
+
}
|
|
24688
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
24009
24689
|
_3UyUdxnyn6cDn53QKrh4MBiearma_current.push(decoded);
|
|
24010
24690
|
}
|
|
24011
24691
|
instance.#_3UyUdxnyn6cDn53QKrh4MBiearma_current = _3UyUdxnyn6cDn53QKrh4MBiearma_current;
|
|
@@ -24022,7 +24702,11 @@ var Collection = class Collection extends Object$1 {
|
|
|
24022
24702
|
...options,
|
|
24023
24703
|
baseUrl: options.baseUrl
|
|
24024
24704
|
});
|
|
24025
|
-
if (typeof decoded === "undefined")
|
|
24705
|
+
if (typeof decoded === "undefined") {
|
|
24706
|
+
shouldCacheJsonLd = false;
|
|
24707
|
+
continue;
|
|
24708
|
+
}
|
|
24709
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
24026
24710
|
_J52RqweMe6hhv7RnLJMC8BExTE5_first.push(decoded);
|
|
24027
24711
|
}
|
|
24028
24712
|
instance.#_J52RqweMe6hhv7RnLJMC8BExTE5_first = _J52RqweMe6hhv7RnLJMC8BExTE5_first;
|
|
@@ -24039,7 +24723,11 @@ var Collection = class Collection extends Object$1 {
|
|
|
24039
24723
|
...options,
|
|
24040
24724
|
baseUrl: options.baseUrl
|
|
24041
24725
|
});
|
|
24042
|
-
if (typeof decoded === "undefined")
|
|
24726
|
+
if (typeof decoded === "undefined") {
|
|
24727
|
+
shouldCacheJsonLd = false;
|
|
24728
|
+
continue;
|
|
24729
|
+
}
|
|
24730
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
24043
24731
|
_gyJJnyEFnuNVi1HFZKfAn3Hfn26_last.push(decoded);
|
|
24044
24732
|
}
|
|
24045
24733
|
instance.#_gyJJnyEFnuNVi1HFZKfAn3Hfn26_last = _gyJJnyEFnuNVi1HFZKfAn3Hfn26_last;
|
|
@@ -24129,7 +24817,11 @@ var Collection = class Collection extends Object$1 {
|
|
|
24129
24817
|
...options,
|
|
24130
24818
|
baseUrl: options.baseUrl
|
|
24131
24819
|
}) : void 0;
|
|
24132
|
-
if (typeof decoded === "undefined")
|
|
24820
|
+
if (typeof decoded === "undefined") {
|
|
24821
|
+
shouldCacheJsonLd = false;
|
|
24822
|
+
continue;
|
|
24823
|
+
}
|
|
24824
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
24133
24825
|
_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items.push(decoded);
|
|
24134
24826
|
}
|
|
24135
24827
|
instance.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = _2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items;
|
|
@@ -24146,7 +24838,11 @@ var Collection = class Collection extends Object$1 {
|
|
|
24146
24838
|
...options,
|
|
24147
24839
|
baseUrl: options.baseUrl
|
|
24148
24840
|
});
|
|
24149
|
-
if (typeof decoded === "undefined")
|
|
24841
|
+
if (typeof decoded === "undefined") {
|
|
24842
|
+
shouldCacheJsonLd = false;
|
|
24843
|
+
continue;
|
|
24844
|
+
}
|
|
24845
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
24150
24846
|
_4TB9Qd9ddtcZEpMfzbHhzafE6jaJ_likesOf.push(decoded);
|
|
24151
24847
|
}
|
|
24152
24848
|
instance.#_4TB9Qd9ddtcZEpMfzbHhzafE6jaJ_likesOf = _4TB9Qd9ddtcZEpMfzbHhzafE6jaJ_likesOf;
|
|
@@ -24163,7 +24859,11 @@ var Collection = class Collection extends Object$1 {
|
|
|
24163
24859
|
...options,
|
|
24164
24860
|
baseUrl: options.baseUrl
|
|
24165
24861
|
});
|
|
24166
|
-
if (typeof decoded === "undefined")
|
|
24862
|
+
if (typeof decoded === "undefined") {
|
|
24863
|
+
shouldCacheJsonLd = false;
|
|
24864
|
+
continue;
|
|
24865
|
+
}
|
|
24866
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
24167
24867
|
_3manzgeKiPsugpztKGiaUUwJ3ito_sharesOf.push(decoded);
|
|
24168
24868
|
}
|
|
24169
24869
|
instance.#_3manzgeKiPsugpztKGiaUUwJ3ito_sharesOf = _3manzgeKiPsugpztKGiaUUwJ3ito_sharesOf;
|
|
@@ -24180,7 +24880,11 @@ var Collection = class Collection extends Object$1 {
|
|
|
24180
24880
|
...options,
|
|
24181
24881
|
baseUrl: options.baseUrl
|
|
24182
24882
|
});
|
|
24183
|
-
if (typeof decoded === "undefined")
|
|
24883
|
+
if (typeof decoded === "undefined") {
|
|
24884
|
+
shouldCacheJsonLd = false;
|
|
24885
|
+
continue;
|
|
24886
|
+
}
|
|
24887
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
24184
24888
|
_3T3oGm3twpcQUcrnMisXQtmDZ32X_repliesOf.push(decoded);
|
|
24185
24889
|
}
|
|
24186
24890
|
instance.#_3T3oGm3twpcQUcrnMisXQtmDZ32X_repliesOf = _3T3oGm3twpcQUcrnMisXQtmDZ32X_repliesOf;
|
|
@@ -24197,7 +24901,11 @@ var Collection = class Collection extends Object$1 {
|
|
|
24197
24901
|
...options,
|
|
24198
24902
|
baseUrl: options.baseUrl
|
|
24199
24903
|
});
|
|
24200
|
-
if (typeof decoded === "undefined")
|
|
24904
|
+
if (typeof decoded === "undefined") {
|
|
24905
|
+
shouldCacheJsonLd = false;
|
|
24906
|
+
continue;
|
|
24907
|
+
}
|
|
24908
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
24201
24909
|
_2bvRkAFZjMfVD8jiUWZJr5YokSeN_inboxOf.push(decoded);
|
|
24202
24910
|
}
|
|
24203
24911
|
instance.#_2bvRkAFZjMfVD8jiUWZJr5YokSeN_inboxOf = _2bvRkAFZjMfVD8jiUWZJr5YokSeN_inboxOf;
|
|
@@ -24214,7 +24922,11 @@ var Collection = class Collection extends Object$1 {
|
|
|
24214
24922
|
...options,
|
|
24215
24923
|
baseUrl: options.baseUrl
|
|
24216
24924
|
});
|
|
24217
|
-
if (typeof decoded === "undefined")
|
|
24925
|
+
if (typeof decoded === "undefined") {
|
|
24926
|
+
shouldCacheJsonLd = false;
|
|
24927
|
+
continue;
|
|
24928
|
+
}
|
|
24929
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
24218
24930
|
_4AHzVZDxHjK6uEWa9UiKHGK34yYm_outboxOf.push(decoded);
|
|
24219
24931
|
}
|
|
24220
24932
|
instance.#_4AHzVZDxHjK6uEWa9UiKHGK34yYm_outboxOf = _4AHzVZDxHjK6uEWa9UiKHGK34yYm_outboxOf;
|
|
@@ -24231,7 +24943,11 @@ var Collection = class Collection extends Object$1 {
|
|
|
24231
24943
|
...options,
|
|
24232
24944
|
baseUrl: options.baseUrl
|
|
24233
24945
|
});
|
|
24234
|
-
if (typeof decoded === "undefined")
|
|
24946
|
+
if (typeof decoded === "undefined") {
|
|
24947
|
+
shouldCacheJsonLd = false;
|
|
24948
|
+
continue;
|
|
24949
|
+
}
|
|
24950
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
24235
24951
|
_41aoZ5M6yRUHy3Zx8q6iuZQxtopb_followersOf.push(decoded);
|
|
24236
24952
|
}
|
|
24237
24953
|
instance.#_41aoZ5M6yRUHy3Zx8q6iuZQxtopb_followersOf = _41aoZ5M6yRUHy3Zx8q6iuZQxtopb_followersOf;
|
|
@@ -24248,7 +24964,11 @@ var Collection = class Collection extends Object$1 {
|
|
|
24248
24964
|
...options,
|
|
24249
24965
|
baseUrl: options.baseUrl
|
|
24250
24966
|
});
|
|
24251
|
-
if (typeof decoded === "undefined")
|
|
24967
|
+
if (typeof decoded === "undefined") {
|
|
24968
|
+
shouldCacheJsonLd = false;
|
|
24969
|
+
continue;
|
|
24970
|
+
}
|
|
24971
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
24252
24972
|
_2nXT2Ah42UjEEQF5oJQ39CbKB1xj_followingOf.push(decoded);
|
|
24253
24973
|
}
|
|
24254
24974
|
instance.#_2nXT2Ah42UjEEQF5oJQ39CbKB1xj_followingOf = _2nXT2Ah42UjEEQF5oJQ39CbKB1xj_followingOf;
|
|
@@ -24265,11 +24985,16 @@ var Collection = class Collection extends Object$1 {
|
|
|
24265
24985
|
...options,
|
|
24266
24986
|
baseUrl: options.baseUrl
|
|
24267
24987
|
});
|
|
24268
|
-
if (typeof decoded === "undefined")
|
|
24988
|
+
if (typeof decoded === "undefined") {
|
|
24989
|
+
shouldCacheJsonLd = false;
|
|
24990
|
+
continue;
|
|
24991
|
+
}
|
|
24992
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
24269
24993
|
_2bsySzmT3qEZcrnoe3tZ5xBjXSju_likedOf.push(decoded);
|
|
24270
24994
|
}
|
|
24271
24995
|
instance.#_2bsySzmT3qEZcrnoe3tZ5xBjXSju_likedOf = _2bsySzmT3qEZcrnoe3tZ5xBjXSju_likedOf;
|
|
24272
|
-
|
|
24996
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
24997
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
24273
24998
|
instance._cachedJsonLd = structuredClone(json);
|
|
24274
24999
|
} catch {
|
|
24275
25000
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -25011,6 +25736,7 @@ var CollectionPage = class CollectionPage extends Collection {
|
|
|
25011
25736
|
_fromSubclass: true
|
|
25012
25737
|
});
|
|
25013
25738
|
if (!(instance instanceof CollectionPage)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
25739
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
25014
25740
|
const _2kWgBhQKjEauxx8C6qF3ZQamK4Le_partOf = [];
|
|
25015
25741
|
let _2kWgBhQKjEauxx8C6qF3ZQamK4Le_partOf__array = values["https://www.w3.org/ns/activitystreams#partOf"];
|
|
25016
25742
|
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) {
|
|
@@ -25024,7 +25750,11 @@ var CollectionPage = class CollectionPage extends Collection {
|
|
|
25024
25750
|
...options,
|
|
25025
25751
|
baseUrl: options.baseUrl
|
|
25026
25752
|
});
|
|
25027
|
-
if (typeof decoded === "undefined")
|
|
25753
|
+
if (typeof decoded === "undefined") {
|
|
25754
|
+
shouldCacheJsonLd = false;
|
|
25755
|
+
continue;
|
|
25756
|
+
}
|
|
25757
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
25028
25758
|
_2kWgBhQKjEauxx8C6qF3ZQamK4Le_partOf.push(decoded);
|
|
25029
25759
|
}
|
|
25030
25760
|
instance.#_2kWgBhQKjEauxx8C6qF3ZQamK4Le_partOf = _2kWgBhQKjEauxx8C6qF3ZQamK4Le_partOf;
|
|
@@ -25041,7 +25771,11 @@ var CollectionPage = class CollectionPage extends Collection {
|
|
|
25041
25771
|
...options,
|
|
25042
25772
|
baseUrl: options.baseUrl
|
|
25043
25773
|
});
|
|
25044
|
-
if (typeof decoded === "undefined")
|
|
25774
|
+
if (typeof decoded === "undefined") {
|
|
25775
|
+
shouldCacheJsonLd = false;
|
|
25776
|
+
continue;
|
|
25777
|
+
}
|
|
25778
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
25045
25779
|
_3BT4kQLcXhHx7TAWaNDKh8nFn9eY_next.push(decoded);
|
|
25046
25780
|
}
|
|
25047
25781
|
instance.#_3BT4kQLcXhHx7TAWaNDKh8nFn9eY_next = _3BT4kQLcXhHx7TAWaNDKh8nFn9eY_next;
|
|
@@ -25058,11 +25792,16 @@ var CollectionPage = class CollectionPage extends Collection {
|
|
|
25058
25792
|
...options,
|
|
25059
25793
|
baseUrl: options.baseUrl
|
|
25060
25794
|
});
|
|
25061
|
-
if (typeof decoded === "undefined")
|
|
25795
|
+
if (typeof decoded === "undefined") {
|
|
25796
|
+
shouldCacheJsonLd = false;
|
|
25797
|
+
continue;
|
|
25798
|
+
}
|
|
25799
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
25062
25800
|
_3b8yG8tDNzQFFEnWhCc13G8eHooA_prev.push(decoded);
|
|
25063
25801
|
}
|
|
25064
25802
|
instance.#_3b8yG8tDNzQFFEnWhCc13G8eHooA_prev = _3b8yG8tDNzQFFEnWhCc13G8eHooA_prev;
|
|
25065
|
-
|
|
25803
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
25804
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
25066
25805
|
instance._cachedJsonLd = structuredClone(json);
|
|
25067
25806
|
} catch {
|
|
25068
25807
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -25257,7 +25996,9 @@ var Create = class Create extends Activity {
|
|
|
25257
25996
|
_fromSubclass: true
|
|
25258
25997
|
});
|
|
25259
25998
|
if (!(instance instanceof Create)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
25260
|
-
|
|
25999
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
26000
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
26001
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
25261
26002
|
instance._cachedJsonLd = structuredClone(json);
|
|
25262
26003
|
} catch {
|
|
25263
26004
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -25433,7 +26174,9 @@ var Delete = class Delete extends Activity {
|
|
|
25433
26174
|
_fromSubclass: true
|
|
25434
26175
|
});
|
|
25435
26176
|
if (!(instance instanceof Delete)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
25436
|
-
|
|
26177
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
26178
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
26179
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
25437
26180
|
instance._cachedJsonLd = structuredClone(json);
|
|
25438
26181
|
} catch {
|
|
25439
26182
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -25586,7 +26329,9 @@ var Dislike = class Dislike extends Activity {
|
|
|
25586
26329
|
_fromSubclass: true
|
|
25587
26330
|
});
|
|
25588
26331
|
if (!(instance instanceof Dislike)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
25589
|
-
|
|
26332
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
26333
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
26334
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
25590
26335
|
instance._cachedJsonLd = structuredClone(json);
|
|
25591
26336
|
} catch {
|
|
25592
26337
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -25612,6 +26357,7 @@ var Endpoints = class {
|
|
|
25612
26357
|
#warning;
|
|
25613
26358
|
#cachedJsonLd;
|
|
25614
26359
|
#_baseUrl;
|
|
26360
|
+
#shouldCacheJsonLd = true;
|
|
25615
26361
|
id;
|
|
25616
26362
|
get _documentLoader() {
|
|
25617
26363
|
return this.#documentLoader;
|
|
@@ -25634,6 +26380,17 @@ var Endpoints = class {
|
|
|
25634
26380
|
get _baseUrl() {
|
|
25635
26381
|
return this.#_baseUrl;
|
|
25636
26382
|
}
|
|
26383
|
+
get _shouldCacheJsonLd() {
|
|
26384
|
+
return this.#shouldCacheJsonLd;
|
|
26385
|
+
}
|
|
26386
|
+
set _shouldCacheJsonLd(value) {
|
|
26387
|
+
this.#shouldCacheJsonLd = value;
|
|
26388
|
+
}
|
|
26389
|
+
static _shouldCacheDecodedJsonLd(value) {
|
|
26390
|
+
if (value == null || typeof value !== "object") return true;
|
|
26391
|
+
if (!("_shouldCacheJsonLd" in value)) return true;
|
|
26392
|
+
return value._shouldCacheJsonLd;
|
|
26393
|
+
}
|
|
25637
26394
|
/**
|
|
25638
26395
|
* The type URI of {@link Endpoints}: `https://www.w3.org/ns/activitystreams#Endpoints`.
|
|
25639
26396
|
*/
|
|
@@ -25933,12 +26690,17 @@ var Endpoints = class {
|
|
|
25933
26690
|
if (!values["@type"].includes("https://www.w3.org/ns/activitystreams#Endpoints")) throw new TypeError("Invalid type: " + values["@type"]);
|
|
25934
26691
|
}
|
|
25935
26692
|
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);
|
|
26693
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
25936
26694
|
const _2JCYDbSxEHCCLdBYed33cCETfGyR_proxyUrl = [];
|
|
25937
26695
|
let _2JCYDbSxEHCCLdBYed33cCETfGyR_proxyUrl__array = values["https://www.w3.org/ns/activitystreams#proxyUrl"];
|
|
25938
26696
|
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) {
|
|
25939
26697
|
if (v == null) continue;
|
|
25940
26698
|
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);
|
|
25941
|
-
if (typeof decoded === "undefined")
|
|
26699
|
+
if (typeof decoded === "undefined") {
|
|
26700
|
+
shouldCacheJsonLd = false;
|
|
26701
|
+
continue;
|
|
26702
|
+
}
|
|
26703
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
25942
26704
|
_2JCYDbSxEHCCLdBYed33cCETfGyR_proxyUrl.push(decoded);
|
|
25943
26705
|
}
|
|
25944
26706
|
instance.#_2JCYDbSxEHCCLdBYed33cCETfGyR_proxyUrl = _2JCYDbSxEHCCLdBYed33cCETfGyR_proxyUrl;
|
|
@@ -25947,7 +26709,11 @@ var Endpoints = class {
|
|
|
25947
26709
|
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) {
|
|
25948
26710
|
if (v == null) continue;
|
|
25949
26711
|
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);
|
|
25950
|
-
if (typeof decoded === "undefined")
|
|
26712
|
+
if (typeof decoded === "undefined") {
|
|
26713
|
+
shouldCacheJsonLd = false;
|
|
26714
|
+
continue;
|
|
26715
|
+
}
|
|
26716
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
25951
26717
|
_25S6UmgzDead8hxL5sQFezZTAusd_oauthAuthorizationEndpoint.push(decoded);
|
|
25952
26718
|
}
|
|
25953
26719
|
instance.#_25S6UmgzDead8hxL5sQFezZTAusd_oauthAuthorizationEndpoint = _25S6UmgzDead8hxL5sQFezZTAusd_oauthAuthorizationEndpoint;
|
|
@@ -25956,7 +26722,11 @@ var Endpoints = class {
|
|
|
25956
26722
|
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) {
|
|
25957
26723
|
if (v == null) continue;
|
|
25958
26724
|
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);
|
|
25959
|
-
if (typeof decoded === "undefined")
|
|
26725
|
+
if (typeof decoded === "undefined") {
|
|
26726
|
+
shouldCacheJsonLd = false;
|
|
26727
|
+
continue;
|
|
26728
|
+
}
|
|
26729
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
25960
26730
|
_iAMxqrSba7yBCRB1FZ5kEVdKEZ3_oauthTokenEndpoint.push(decoded);
|
|
25961
26731
|
}
|
|
25962
26732
|
instance.#_iAMxqrSba7yBCRB1FZ5kEVdKEZ3_oauthTokenEndpoint = _iAMxqrSba7yBCRB1FZ5kEVdKEZ3_oauthTokenEndpoint;
|
|
@@ -25965,7 +26735,11 @@ var Endpoints = class {
|
|
|
25965
26735
|
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) {
|
|
25966
26736
|
if (v == null) continue;
|
|
25967
26737
|
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);
|
|
25968
|
-
if (typeof decoded === "undefined")
|
|
26738
|
+
if (typeof decoded === "undefined") {
|
|
26739
|
+
shouldCacheJsonLd = false;
|
|
26740
|
+
continue;
|
|
26741
|
+
}
|
|
26742
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
25969
26743
|
_8Bx9qN8oU7Bpt2xi6khaxWp1gMr_provideClientKey.push(decoded);
|
|
25970
26744
|
}
|
|
25971
26745
|
instance.#_8Bx9qN8oU7Bpt2xi6khaxWp1gMr_provideClientKey = _8Bx9qN8oU7Bpt2xi6khaxWp1gMr_provideClientKey;
|
|
@@ -25974,7 +26748,11 @@ var Endpoints = class {
|
|
|
25974
26748
|
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) {
|
|
25975
26749
|
if (v == null) continue;
|
|
25976
26750
|
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);
|
|
25977
|
-
if (typeof decoded === "undefined")
|
|
26751
|
+
if (typeof decoded === "undefined") {
|
|
26752
|
+
shouldCacheJsonLd = false;
|
|
26753
|
+
continue;
|
|
26754
|
+
}
|
|
26755
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
25978
26756
|
_3dU7PMVQZJpsCpo2F4RQXxBXdPmS_signClientKey.push(decoded);
|
|
25979
26757
|
}
|
|
25980
26758
|
instance.#_3dU7PMVQZJpsCpo2F4RQXxBXdPmS_signClientKey = _3dU7PMVQZJpsCpo2F4RQXxBXdPmS_signClientKey;
|
|
@@ -25983,11 +26761,16 @@ var Endpoints = class {
|
|
|
25983
26761
|
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) {
|
|
25984
26762
|
if (v == null) continue;
|
|
25985
26763
|
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);
|
|
25986
|
-
if (typeof decoded === "undefined")
|
|
26764
|
+
if (typeof decoded === "undefined") {
|
|
26765
|
+
shouldCacheJsonLd = false;
|
|
26766
|
+
continue;
|
|
26767
|
+
}
|
|
26768
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
25987
26769
|
_3JprUSDLVqqX4dwHRi37qGZZCRCc_sharedInbox.push(decoded);
|
|
25988
26770
|
}
|
|
25989
26771
|
instance.#_3JprUSDLVqqX4dwHRi37qGZZCRCc_sharedInbox = _3JprUSDLVqqX4dwHRi37qGZZCRCc_sharedInbox;
|
|
25990
|
-
|
|
26772
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
26773
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
25991
26774
|
instance._cachedJsonLd = structuredClone(json);
|
|
25992
26775
|
} catch {
|
|
25993
26776
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -26185,7 +26968,9 @@ var Event = class Event extends Object$1 {
|
|
|
26185
26968
|
_fromSubclass: true
|
|
26186
26969
|
});
|
|
26187
26970
|
if (!(instance instanceof Event)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
26188
|
-
|
|
26971
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
26972
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
26973
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
26189
26974
|
instance._cachedJsonLd = structuredClone(json);
|
|
26190
26975
|
} catch {
|
|
26191
26976
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -26336,7 +27121,9 @@ var Flag = class Flag extends Activity {
|
|
|
26336
27121
|
_fromSubclass: true
|
|
26337
27122
|
});
|
|
26338
27123
|
if (!(instance instanceof Flag)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
26339
|
-
|
|
27124
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
27125
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
27126
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
26340
27127
|
instance._cachedJsonLd = structuredClone(json);
|
|
26341
27128
|
} catch {
|
|
26342
27129
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -26491,7 +27278,9 @@ var Follow = class Follow extends Activity {
|
|
|
26491
27278
|
_fromSubclass: true
|
|
26492
27279
|
});
|
|
26493
27280
|
if (!(instance instanceof Follow)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
26494
|
-
|
|
27281
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
27282
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
27283
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
26495
27284
|
instance._cachedJsonLd = structuredClone(json);
|
|
26496
27285
|
} catch {
|
|
26497
27286
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -29410,12 +30199,17 @@ var Group = class Group extends Object$1 {
|
|
|
29410
30199
|
_fromSubclass: true
|
|
29411
30200
|
});
|
|
29412
30201
|
if (!(instance instanceof Group)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
30202
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
29413
30203
|
const _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = [];
|
|
29414
30204
|
let _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername__array = values["https://www.w3.org/ns/activitystreams#preferredUsername"];
|
|
29415
30205
|
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) {
|
|
29416
30206
|
if (v == null) continue;
|
|
29417
|
-
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(v["@value"], v["@language"]) : void 0;
|
|
29418
|
-
if (typeof decoded === "undefined")
|
|
30207
|
+
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(v["@value"], v["@language"]) : void 0;
|
|
30208
|
+
if (typeof decoded === "undefined") {
|
|
30209
|
+
shouldCacheJsonLd = false;
|
|
30210
|
+
continue;
|
|
30211
|
+
}
|
|
30212
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
29419
30213
|
_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername.push(decoded);
|
|
29420
30214
|
}
|
|
29421
30215
|
instance.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername;
|
|
@@ -29432,7 +30226,11 @@ var Group = class Group extends Object$1 {
|
|
|
29432
30226
|
...options,
|
|
29433
30227
|
baseUrl: options.baseUrl
|
|
29434
30228
|
});
|
|
29435
|
-
if (typeof decoded === "undefined")
|
|
30229
|
+
if (typeof decoded === "undefined") {
|
|
30230
|
+
shouldCacheJsonLd = false;
|
|
30231
|
+
continue;
|
|
30232
|
+
}
|
|
30233
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
29436
30234
|
_axq166E2eZADq34V4MYUc8KMZdC_publicKey.push(decoded);
|
|
29437
30235
|
}
|
|
29438
30236
|
instance.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = _axq166E2eZADq34V4MYUc8KMZdC_publicKey;
|
|
@@ -29449,7 +30247,11 @@ var Group = class Group extends Object$1 {
|
|
|
29449
30247
|
...options,
|
|
29450
30248
|
baseUrl: options.baseUrl
|
|
29451
30249
|
});
|
|
29452
|
-
if (typeof decoded === "undefined")
|
|
30250
|
+
if (typeof decoded === "undefined") {
|
|
30251
|
+
shouldCacheJsonLd = false;
|
|
30252
|
+
continue;
|
|
30253
|
+
}
|
|
30254
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
29453
30255
|
_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(decoded);
|
|
29454
30256
|
}
|
|
29455
30257
|
instance.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod;
|
|
@@ -29458,7 +30260,11 @@ var Group = class Group extends Object$1 {
|
|
|
29458
30260
|
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) {
|
|
29459
30261
|
if (v == null) continue;
|
|
29460
30262
|
const decoded = v["@value"];
|
|
29461
|
-
if (typeof decoded === "undefined")
|
|
30263
|
+
if (typeof decoded === "undefined") {
|
|
30264
|
+
shouldCacheJsonLd = false;
|
|
30265
|
+
continue;
|
|
30266
|
+
}
|
|
30267
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
29462
30268
|
_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers.push(decoded);
|
|
29463
30269
|
}
|
|
29464
30270
|
instance.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers;
|
|
@@ -29478,7 +30284,11 @@ var Group = class Group extends Object$1 {
|
|
|
29478
30284
|
...options,
|
|
29479
30285
|
baseUrl: options.baseUrl
|
|
29480
30286
|
}) : void 0;
|
|
29481
|
-
if (typeof decoded === "undefined")
|
|
30287
|
+
if (typeof decoded === "undefined") {
|
|
30288
|
+
shouldCacheJsonLd = false;
|
|
30289
|
+
continue;
|
|
30290
|
+
}
|
|
30291
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
29482
30292
|
_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox.push(decoded);
|
|
29483
30293
|
}
|
|
29484
30294
|
instance.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = _3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox;
|
|
@@ -29498,7 +30308,11 @@ var Group = class Group extends Object$1 {
|
|
|
29498
30308
|
...options,
|
|
29499
30309
|
baseUrl: options.baseUrl
|
|
29500
30310
|
}) : void 0;
|
|
29501
|
-
if (typeof decoded === "undefined")
|
|
30311
|
+
if (typeof decoded === "undefined") {
|
|
30312
|
+
shouldCacheJsonLd = false;
|
|
30313
|
+
continue;
|
|
30314
|
+
}
|
|
30315
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
29502
30316
|
_41QwhqJouoLg3h8dRPKat21brynC_outbox.push(decoded);
|
|
29503
30317
|
}
|
|
29504
30318
|
instance.#_41QwhqJouoLg3h8dRPKat21brynC_outbox = _41QwhqJouoLg3h8dRPKat21brynC_outbox;
|
|
@@ -29515,7 +30329,11 @@ var Group = class Group extends Object$1 {
|
|
|
29515
30329
|
...options,
|
|
29516
30330
|
baseUrl: options.baseUrl
|
|
29517
30331
|
});
|
|
29518
|
-
if (typeof decoded === "undefined")
|
|
30332
|
+
if (typeof decoded === "undefined") {
|
|
30333
|
+
shouldCacheJsonLd = false;
|
|
30334
|
+
continue;
|
|
30335
|
+
}
|
|
30336
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
29519
30337
|
_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.push(decoded);
|
|
29520
30338
|
}
|
|
29521
30339
|
instance.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = _3yAv8jymNfNuJUDuBzJ1NQhdbAee_following;
|
|
@@ -29532,7 +30350,11 @@ var Group = class Group extends Object$1 {
|
|
|
29532
30350
|
...options,
|
|
29533
30351
|
baseUrl: options.baseUrl
|
|
29534
30352
|
});
|
|
29535
|
-
if (typeof decoded === "undefined")
|
|
30353
|
+
if (typeof decoded === "undefined") {
|
|
30354
|
+
shouldCacheJsonLd = false;
|
|
30355
|
+
continue;
|
|
30356
|
+
}
|
|
30357
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
29536
30358
|
_BBCTgfphhsFzpVfKTykGSpBNwoA_followers.push(decoded);
|
|
29537
30359
|
}
|
|
29538
30360
|
instance.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = _BBCTgfphhsFzpVfKTykGSpBNwoA_followers;
|
|
@@ -29549,7 +30371,11 @@ var Group = class Group extends Object$1 {
|
|
|
29549
30371
|
...options,
|
|
29550
30372
|
baseUrl: options.baseUrl
|
|
29551
30373
|
});
|
|
29552
|
-
if (typeof decoded === "undefined")
|
|
30374
|
+
if (typeof decoded === "undefined") {
|
|
30375
|
+
shouldCacheJsonLd = false;
|
|
30376
|
+
continue;
|
|
30377
|
+
}
|
|
30378
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
29553
30379
|
_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.push(decoded);
|
|
29554
30380
|
}
|
|
29555
30381
|
instance.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = _3bgkPwJanyTCoVFM9ovRcus8tKkU_liked;
|
|
@@ -29566,7 +30392,11 @@ var Group = class Group extends Object$1 {
|
|
|
29566
30392
|
...options,
|
|
29567
30393
|
baseUrl: options.baseUrl
|
|
29568
30394
|
});
|
|
29569
|
-
if (typeof decoded === "undefined")
|
|
30395
|
+
if (typeof decoded === "undefined") {
|
|
30396
|
+
shouldCacheJsonLd = false;
|
|
30397
|
+
continue;
|
|
30398
|
+
}
|
|
30399
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
29570
30400
|
_4N1vBJzXDf8NbBumeECQMFvKetja_featured.push(decoded);
|
|
29571
30401
|
}
|
|
29572
30402
|
instance.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured = _4N1vBJzXDf8NbBumeECQMFvKetja_featured;
|
|
@@ -29583,7 +30413,11 @@ var Group = class Group extends Object$1 {
|
|
|
29583
30413
|
...options,
|
|
29584
30414
|
baseUrl: options.baseUrl
|
|
29585
30415
|
});
|
|
29586
|
-
if (typeof decoded === "undefined")
|
|
30416
|
+
if (typeof decoded === "undefined") {
|
|
30417
|
+
shouldCacheJsonLd = false;
|
|
30418
|
+
continue;
|
|
30419
|
+
}
|
|
30420
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
29587
30421
|
_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.push(decoded);
|
|
29588
30422
|
}
|
|
29589
30423
|
instance.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = _2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags;
|
|
@@ -29600,7 +30434,11 @@ var Group = class Group extends Object$1 {
|
|
|
29600
30434
|
...options,
|
|
29601
30435
|
baseUrl: options.baseUrl
|
|
29602
30436
|
});
|
|
29603
|
-
if (typeof decoded === "undefined")
|
|
30437
|
+
if (typeof decoded === "undefined") {
|
|
30438
|
+
shouldCacheJsonLd = false;
|
|
30439
|
+
continue;
|
|
30440
|
+
}
|
|
30441
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
29604
30442
|
_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.push(decoded);
|
|
29605
30443
|
}
|
|
29606
30444
|
instance.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = _3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams;
|
|
@@ -29612,7 +30450,11 @@ var Group = class Group extends Object$1 {
|
|
|
29612
30450
|
...options,
|
|
29613
30451
|
baseUrl: options.baseUrl
|
|
29614
30452
|
});
|
|
29615
|
-
if (typeof decoded === "undefined")
|
|
30453
|
+
if (typeof decoded === "undefined") {
|
|
30454
|
+
shouldCacheJsonLd = false;
|
|
30455
|
+
continue;
|
|
30456
|
+
}
|
|
30457
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
29616
30458
|
_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.push(decoded);
|
|
29617
30459
|
}
|
|
29618
30460
|
instance.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints;
|
|
@@ -29621,7 +30463,11 @@ var Group = class Group extends Object$1 {
|
|
|
29621
30463
|
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) {
|
|
29622
30464
|
if (v == null) continue;
|
|
29623
30465
|
const decoded = v["@value"];
|
|
29624
|
-
if (typeof decoded === "undefined")
|
|
30466
|
+
if (typeof decoded === "undefined") {
|
|
30467
|
+
shouldCacheJsonLd = false;
|
|
30468
|
+
continue;
|
|
30469
|
+
}
|
|
30470
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
29625
30471
|
_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable.push(decoded);
|
|
29626
30472
|
}
|
|
29627
30473
|
instance.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = _gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable;
|
|
@@ -29630,7 +30476,11 @@ var Group = class Group extends Object$1 {
|
|
|
29630
30476
|
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) {
|
|
29631
30477
|
if (v == null) continue;
|
|
29632
30478
|
const decoded = v["@value"];
|
|
29633
|
-
if (typeof decoded === "undefined")
|
|
30479
|
+
if (typeof decoded === "undefined") {
|
|
30480
|
+
shouldCacheJsonLd = false;
|
|
30481
|
+
continue;
|
|
30482
|
+
}
|
|
30483
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
29634
30484
|
_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended.push(decoded);
|
|
29635
30485
|
}
|
|
29636
30486
|
instance.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = _2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended;
|
|
@@ -29639,7 +30489,11 @@ var Group = class Group extends Object$1 {
|
|
|
29639
30489
|
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) {
|
|
29640
30490
|
if (v == null) continue;
|
|
29641
30491
|
const decoded = v["@value"];
|
|
29642
|
-
if (typeof decoded === "undefined")
|
|
30492
|
+
if (typeof decoded === "undefined") {
|
|
30493
|
+
shouldCacheJsonLd = false;
|
|
30494
|
+
continue;
|
|
30495
|
+
}
|
|
30496
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
29643
30497
|
_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial.push(decoded);
|
|
29644
30498
|
}
|
|
29645
30499
|
instance.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = _79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial;
|
|
@@ -29648,7 +30502,11 @@ var Group = class Group extends Object$1 {
|
|
|
29648
30502
|
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) {
|
|
29649
30503
|
if (v == null) continue;
|
|
29650
30504
|
const decoded = v["@value"];
|
|
29651
|
-
if (typeof decoded === "undefined")
|
|
30505
|
+
if (typeof decoded === "undefined") {
|
|
30506
|
+
shouldCacheJsonLd = false;
|
|
30507
|
+
continue;
|
|
30508
|
+
}
|
|
30509
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
29652
30510
|
_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable.push(decoded);
|
|
29653
30511
|
}
|
|
29654
30512
|
instance.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable;
|
|
@@ -29677,7 +30535,11 @@ var Group = class Group extends Object$1 {
|
|
|
29677
30535
|
...options,
|
|
29678
30536
|
baseUrl: options.baseUrl
|
|
29679
30537
|
}) : void 0;
|
|
29680
|
-
if (typeof decoded === "undefined")
|
|
30538
|
+
if (typeof decoded === "undefined") {
|
|
30539
|
+
shouldCacheJsonLd = false;
|
|
30540
|
+
continue;
|
|
30541
|
+
}
|
|
30542
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
29681
30543
|
_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.push(decoded);
|
|
29682
30544
|
}
|
|
29683
30545
|
instance.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = _2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo;
|
|
@@ -29706,7 +30568,11 @@ var Group = class Group extends Object$1 {
|
|
|
29706
30568
|
...options,
|
|
29707
30569
|
baseUrl: options.baseUrl
|
|
29708
30570
|
}) : void 0;
|
|
29709
|
-
if (typeof decoded === "undefined")
|
|
30571
|
+
if (typeof decoded === "undefined") {
|
|
30572
|
+
shouldCacheJsonLd = false;
|
|
30573
|
+
continue;
|
|
30574
|
+
}
|
|
30575
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
29710
30576
|
_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.push(decoded);
|
|
29711
30577
|
}
|
|
29712
30578
|
instance.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = _3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs;
|
|
@@ -29723,7 +30589,11 @@ var Group = class Group extends Object$1 {
|
|
|
29723
30589
|
...options,
|
|
29724
30590
|
baseUrl: options.baseUrl
|
|
29725
30591
|
});
|
|
29726
|
-
if (typeof decoded === "undefined")
|
|
30592
|
+
if (typeof decoded === "undefined") {
|
|
30593
|
+
shouldCacheJsonLd = false;
|
|
30594
|
+
continue;
|
|
30595
|
+
}
|
|
30596
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
29727
30597
|
_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.push(decoded);
|
|
29728
30598
|
}
|
|
29729
30599
|
instance.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = _4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service;
|
|
@@ -29732,7 +30602,11 @@ var Group = class Group extends Object$1 {
|
|
|
29732
30602
|
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) {
|
|
29733
30603
|
if (v == null) continue;
|
|
29734
30604
|
const decoded = v["@value"];
|
|
29735
|
-
if (typeof decoded === "undefined")
|
|
30605
|
+
if (typeof decoded === "undefined") {
|
|
30606
|
+
shouldCacheJsonLd = false;
|
|
30607
|
+
continue;
|
|
30608
|
+
}
|
|
30609
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
29736
30610
|
_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage.push(decoded);
|
|
29737
30611
|
}
|
|
29738
30612
|
instance.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage;
|
|
@@ -29741,11 +30615,16 @@ var Group = class Group extends Object$1 {
|
|
|
29741
30615
|
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) {
|
|
29742
30616
|
if (v == null) continue;
|
|
29743
30617
|
const decoded = v["@value"];
|
|
29744
|
-
if (typeof decoded === "undefined")
|
|
30618
|
+
if (typeof decoded === "undefined") {
|
|
30619
|
+
shouldCacheJsonLd = false;
|
|
30620
|
+
continue;
|
|
30621
|
+
}
|
|
30622
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
29745
30623
|
_2xEU4QtkC53RAun67T81Egqt9vmL_isCat.push(decoded);
|
|
29746
30624
|
}
|
|
29747
30625
|
instance.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = _2xEU4QtkC53RAun67T81Egqt9vmL_isCat;
|
|
29748
|
-
|
|
30626
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
30627
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
29749
30628
|
instance._cachedJsonLd = structuredClone(json);
|
|
29750
30629
|
} catch {
|
|
29751
30630
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -29894,6 +30773,7 @@ var Link = class Link {
|
|
|
29894
30773
|
#warning;
|
|
29895
30774
|
#cachedJsonLd;
|
|
29896
30775
|
#_baseUrl;
|
|
30776
|
+
#shouldCacheJsonLd = true;
|
|
29897
30777
|
id;
|
|
29898
30778
|
get _documentLoader() {
|
|
29899
30779
|
return this.#documentLoader;
|
|
@@ -29916,6 +30796,17 @@ var Link = class Link {
|
|
|
29916
30796
|
get _baseUrl() {
|
|
29917
30797
|
return this.#_baseUrl;
|
|
29918
30798
|
}
|
|
30799
|
+
get _shouldCacheJsonLd() {
|
|
30800
|
+
return this.#shouldCacheJsonLd;
|
|
30801
|
+
}
|
|
30802
|
+
set _shouldCacheJsonLd(value) {
|
|
30803
|
+
this.#shouldCacheJsonLd = value;
|
|
30804
|
+
}
|
|
30805
|
+
static _shouldCacheDecodedJsonLd(value) {
|
|
30806
|
+
if (value == null || typeof value !== "object") return true;
|
|
30807
|
+
if (!("_shouldCacheJsonLd" in value)) return true;
|
|
30808
|
+
return value._shouldCacheJsonLd;
|
|
30809
|
+
}
|
|
29919
30810
|
/**
|
|
29920
30811
|
* The type URI of {@link Link}: `https://www.w3.org/ns/activitystreams#Link`.
|
|
29921
30812
|
*/
|
|
@@ -30448,12 +31339,17 @@ var Link = class Link {
|
|
|
30448
31339
|
if (!values["@type"].includes("https://www.w3.org/ns/activitystreams#Link")) throw new TypeError("Invalid type: " + values["@type"]);
|
|
30449
31340
|
}
|
|
30450
31341
|
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);
|
|
31342
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
30451
31343
|
const _pVjLsybKQdmkjuU7MHjiVmNnuj7_href = [];
|
|
30452
31344
|
let _pVjLsybKQdmkjuU7MHjiVmNnuj7_href__array = values["https://www.w3.org/ns/activitystreams#href"];
|
|
30453
31345
|
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) {
|
|
30454
31346
|
if (v == null) continue;
|
|
30455
31347
|
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);
|
|
30456
|
-
if (typeof decoded === "undefined")
|
|
31348
|
+
if (typeof decoded === "undefined") {
|
|
31349
|
+
shouldCacheJsonLd = false;
|
|
31350
|
+
continue;
|
|
31351
|
+
}
|
|
31352
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
30457
31353
|
_pVjLsybKQdmkjuU7MHjiVmNnuj7_href.push(decoded);
|
|
30458
31354
|
}
|
|
30459
31355
|
instance.#_pVjLsybKQdmkjuU7MHjiVmNnuj7_href = _pVjLsybKQdmkjuU7MHjiVmNnuj7_href;
|
|
@@ -30462,7 +31358,11 @@ var Link = class Link {
|
|
|
30462
31358
|
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) {
|
|
30463
31359
|
if (v == null) continue;
|
|
30464
31360
|
const decoded = v["@value"];
|
|
30465
|
-
if (typeof decoded === "undefined")
|
|
31361
|
+
if (typeof decoded === "undefined") {
|
|
31362
|
+
shouldCacheJsonLd = false;
|
|
31363
|
+
continue;
|
|
31364
|
+
}
|
|
31365
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
30466
31366
|
_2a1c5GkfkQsnyyLybF8UXBQfFuHZ_rel.push(decoded);
|
|
30467
31367
|
}
|
|
30468
31368
|
instance.#_2a1c5GkfkQsnyyLybF8UXBQfFuHZ_rel = _2a1c5GkfkQsnyyLybF8UXBQfFuHZ_rel;
|
|
@@ -30471,7 +31371,11 @@ var Link = class Link {
|
|
|
30471
31371
|
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) {
|
|
30472
31372
|
if (v == null) continue;
|
|
30473
31373
|
const decoded = v["@value"];
|
|
30474
|
-
if (typeof decoded === "undefined")
|
|
31374
|
+
if (typeof decoded === "undefined") {
|
|
31375
|
+
shouldCacheJsonLd = false;
|
|
31376
|
+
continue;
|
|
31377
|
+
}
|
|
31378
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
30475
31379
|
_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType.push(decoded);
|
|
30476
31380
|
}
|
|
30477
31381
|
instance.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType = _3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType;
|
|
@@ -30479,8 +31383,12 @@ var Link = class Link {
|
|
|
30479
31383
|
let _4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name__array = values["https://www.w3.org/ns/activitystreams#name"];
|
|
30480
31384
|
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) {
|
|
30481
31385
|
if (v == null) continue;
|
|
30482
|
-
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(v["@value"], v["@language"]) : void 0;
|
|
30483
|
-
if (typeof decoded === "undefined")
|
|
31386
|
+
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(v["@value"], v["@language"]) : void 0;
|
|
31387
|
+
if (typeof decoded === "undefined") {
|
|
31388
|
+
shouldCacheJsonLd = false;
|
|
31389
|
+
continue;
|
|
31390
|
+
}
|
|
31391
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
30484
31392
|
_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name.push(decoded);
|
|
30485
31393
|
}
|
|
30486
31394
|
instance.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = _4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name;
|
|
@@ -30489,7 +31397,11 @@ var Link = class Link {
|
|
|
30489
31397
|
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) {
|
|
30490
31398
|
if (v == null) continue;
|
|
30491
31399
|
const decoded = new Intl.Locale(v["@value"]);
|
|
30492
|
-
if (typeof decoded === "undefined")
|
|
31400
|
+
if (typeof decoded === "undefined") {
|
|
31401
|
+
shouldCacheJsonLd = false;
|
|
31402
|
+
continue;
|
|
31403
|
+
}
|
|
31404
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
30493
31405
|
_f57HKWCp1YRBbTJE8PF12RbDJGf_hreflang.push(decoded);
|
|
30494
31406
|
}
|
|
30495
31407
|
instance.#_f57HKWCp1YRBbTJE8PF12RbDJGf_hreflang = _f57HKWCp1YRBbTJE8PF12RbDJGf_hreflang;
|
|
@@ -30498,7 +31410,11 @@ var Link = class Link {
|
|
|
30498
31410
|
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) {
|
|
30499
31411
|
if (v == null) continue;
|
|
30500
31412
|
const decoded = v["@value"];
|
|
30501
|
-
if (typeof decoded === "undefined")
|
|
31413
|
+
if (typeof decoded === "undefined") {
|
|
31414
|
+
shouldCacheJsonLd = false;
|
|
31415
|
+
continue;
|
|
31416
|
+
}
|
|
31417
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
30502
31418
|
_2cGKFeFJMmiNpGZFEF75mCwFQsKb_height.push(decoded);
|
|
30503
31419
|
}
|
|
30504
31420
|
instance.#_2cGKFeFJMmiNpGZFEF75mCwFQsKb_height = _2cGKFeFJMmiNpGZFEF75mCwFQsKb_height;
|
|
@@ -30507,7 +31423,11 @@ var Link = class Link {
|
|
|
30507
31423
|
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) {
|
|
30508
31424
|
if (v == null) continue;
|
|
30509
31425
|
const decoded = v["@value"];
|
|
30510
|
-
if (typeof decoded === "undefined")
|
|
31426
|
+
if (typeof decoded === "undefined") {
|
|
31427
|
+
shouldCacheJsonLd = false;
|
|
31428
|
+
continue;
|
|
31429
|
+
}
|
|
31430
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
30511
31431
|
_2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width.push(decoded);
|
|
30512
31432
|
}
|
|
30513
31433
|
instance.#_2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width = _2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width;
|
|
@@ -30597,11 +31517,16 @@ var Link = class Link {
|
|
|
30597
31517
|
...options,
|
|
30598
31518
|
baseUrl: options.baseUrl
|
|
30599
31519
|
}) : void 0;
|
|
30600
|
-
if (typeof decoded === "undefined")
|
|
31520
|
+
if (typeof decoded === "undefined") {
|
|
31521
|
+
shouldCacheJsonLd = false;
|
|
31522
|
+
continue;
|
|
31523
|
+
}
|
|
31524
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
30601
31525
|
_gCVTegXxWWCw6wWRxa1QF65zusg_preview.push(decoded);
|
|
30602
31526
|
}
|
|
30603
31527
|
instance.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview = _gCVTegXxWWCw6wWRxa1QF65zusg_preview;
|
|
30604
|
-
|
|
31528
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
31529
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
30605
31530
|
instance._cachedJsonLd = structuredClone(json);
|
|
30606
31531
|
} catch {
|
|
30607
31532
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -30802,7 +31727,9 @@ var Hashtag = class Hashtag extends Link {
|
|
|
30802
31727
|
_fromSubclass: true
|
|
30803
31728
|
});
|
|
30804
31729
|
if (!(instance instanceof Hashtag)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
30805
|
-
|
|
31730
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
31731
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
31732
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
30806
31733
|
instance._cachedJsonLd = structuredClone(json);
|
|
30807
31734
|
} catch {
|
|
30808
31735
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -30965,7 +31892,9 @@ var Image = class Image extends Document {
|
|
|
30965
31892
|
_fromSubclass: true
|
|
30966
31893
|
});
|
|
30967
31894
|
if (!(instance instanceof Image)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
30968
|
-
|
|
31895
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
31896
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
31897
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
30969
31898
|
instance._cachedJsonLd = structuredClone(json);
|
|
30970
31899
|
} catch {
|
|
30971
31900
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -31117,7 +32046,9 @@ var Offer = class Offer extends Activity {
|
|
|
31117
32046
|
_fromSubclass: true
|
|
31118
32047
|
});
|
|
31119
32048
|
if (!(instance instanceof Offer)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
31120
|
-
|
|
32049
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
32050
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
32051
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
31121
32052
|
instance._cachedJsonLd = structuredClone(json);
|
|
31122
32053
|
} catch {
|
|
31123
32054
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -31267,7 +32198,9 @@ var Invite = class Invite extends Offer {
|
|
|
31267
32198
|
_fromSubclass: true
|
|
31268
32199
|
});
|
|
31269
32200
|
if (!(instance instanceof Invite)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
31270
|
-
|
|
32201
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
32202
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
32203
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
31271
32204
|
instance._cachedJsonLd = structuredClone(json);
|
|
31272
32205
|
} catch {
|
|
31273
32206
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -31417,7 +32350,9 @@ var Join = class Join extends Activity {
|
|
|
31417
32350
|
_fromSubclass: true
|
|
31418
32351
|
});
|
|
31419
32352
|
if (!(instance instanceof Join)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
31420
|
-
|
|
32353
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
32354
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
32355
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
31421
32356
|
instance._cachedJsonLd = structuredClone(json);
|
|
31422
32357
|
} catch {
|
|
31423
32358
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -31567,7 +32502,9 @@ var Leave = class Leave extends Activity {
|
|
|
31567
32502
|
_fromSubclass: true
|
|
31568
32503
|
});
|
|
31569
32504
|
if (!(instance instanceof Leave)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
31570
|
-
|
|
32505
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
32506
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
32507
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
31571
32508
|
instance._cachedJsonLd = structuredClone(json);
|
|
31572
32509
|
} catch {
|
|
31573
32510
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -31721,7 +32658,9 @@ var Like = class Like extends Activity {
|
|
|
31721
32658
|
_fromSubclass: true
|
|
31722
32659
|
});
|
|
31723
32660
|
if (!(instance instanceof Like)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
31724
|
-
|
|
32661
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
32662
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
32663
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
31725
32664
|
instance._cachedJsonLd = structuredClone(json);
|
|
31726
32665
|
} catch {
|
|
31727
32666
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -31870,7 +32809,9 @@ var Listen = class Listen extends Activity {
|
|
|
31870
32809
|
_fromSubclass: true
|
|
31871
32810
|
});
|
|
31872
32811
|
if (!(instance instanceof Listen)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
31873
|
-
|
|
32812
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
32813
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
32814
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
31874
32815
|
instance._cachedJsonLd = structuredClone(json);
|
|
31875
32816
|
} catch {
|
|
31876
32817
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -32022,7 +32963,9 @@ var Mention = class Mention extends Link {
|
|
|
32022
32963
|
_fromSubclass: true
|
|
32023
32964
|
});
|
|
32024
32965
|
if (!(instance instanceof Mention)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
32025
|
-
|
|
32966
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
32967
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
32968
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
32026
32969
|
instance._cachedJsonLd = structuredClone(json);
|
|
32027
32970
|
} catch {
|
|
32028
32971
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -32173,7 +33116,9 @@ var Move = class Move extends Activity {
|
|
|
32173
33116
|
_fromSubclass: true
|
|
32174
33117
|
});
|
|
32175
33118
|
if (!(instance instanceof Move)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
32176
|
-
|
|
33119
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
33120
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
33121
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
32177
33122
|
instance._cachedJsonLd = structuredClone(json);
|
|
32178
33123
|
} catch {
|
|
32179
33124
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -32735,6 +33680,7 @@ var Note = class Note extends Object$1 {
|
|
|
32735
33680
|
_fromSubclass: true
|
|
32736
33681
|
});
|
|
32737
33682
|
if (!(instance instanceof Note)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
33683
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
32738
33684
|
const _3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote = [];
|
|
32739
33685
|
let _3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote__array = values["https://w3id.org/fep/044f#quote"];
|
|
32740
33686
|
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) {
|
|
@@ -32748,7 +33694,11 @@ var Note = class Note extends Object$1 {
|
|
|
32748
33694
|
...options,
|
|
32749
33695
|
baseUrl: options.baseUrl
|
|
32750
33696
|
});
|
|
32751
|
-
if (typeof decoded === "undefined")
|
|
33697
|
+
if (typeof decoded === "undefined") {
|
|
33698
|
+
shouldCacheJsonLd = false;
|
|
33699
|
+
continue;
|
|
33700
|
+
}
|
|
33701
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
32752
33702
|
_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote.push(decoded);
|
|
32753
33703
|
}
|
|
32754
33704
|
instance.#_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote = _3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote;
|
|
@@ -32759,7 +33709,11 @@ var Note = class Note extends Object$1 {
|
|
|
32759
33709
|
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) {
|
|
32760
33710
|
if (v == null) continue;
|
|
32761
33711
|
const decoded = new URL(v["@value"]);
|
|
32762
|
-
if (typeof decoded === "undefined")
|
|
33712
|
+
if (typeof decoded === "undefined") {
|
|
33713
|
+
shouldCacheJsonLd = false;
|
|
33714
|
+
continue;
|
|
33715
|
+
}
|
|
33716
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
32763
33717
|
_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl.push(decoded);
|
|
32764
33718
|
}
|
|
32765
33719
|
instance.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl = _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl;
|
|
@@ -32776,11 +33730,16 @@ var Note = class Note extends Object$1 {
|
|
|
32776
33730
|
...options,
|
|
32777
33731
|
baseUrl: options.baseUrl
|
|
32778
33732
|
});
|
|
32779
|
-
if (typeof decoded === "undefined")
|
|
33733
|
+
if (typeof decoded === "undefined") {
|
|
33734
|
+
shouldCacheJsonLd = false;
|
|
33735
|
+
continue;
|
|
33736
|
+
}
|
|
33737
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
32780
33738
|
_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization.push(decoded);
|
|
32781
33739
|
}
|
|
32782
33740
|
instance.#_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization = _ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization;
|
|
32783
|
-
|
|
33741
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
33742
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
32784
33743
|
instance._cachedJsonLd = structuredClone(json);
|
|
32785
33744
|
} catch {
|
|
32786
33745
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -33184,6 +34143,7 @@ var OrderedCollection = class OrderedCollection extends Collection {
|
|
|
33184
34143
|
_fromSubclass: true
|
|
33185
34144
|
});
|
|
33186
34145
|
if (!(instance instanceof OrderedCollection)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
34146
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
33187
34147
|
const _2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = [];
|
|
33188
34148
|
let _2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items__array = values["https://www.w3.org/ns/activitystreams#items"];
|
|
33189
34149
|
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) {
|
|
@@ -33270,11 +34230,16 @@ var OrderedCollection = class OrderedCollection extends Collection {
|
|
|
33270
34230
|
...options,
|
|
33271
34231
|
baseUrl: options.baseUrl
|
|
33272
34232
|
}) : void 0;
|
|
33273
|
-
if (typeof decoded === "undefined")
|
|
34233
|
+
if (typeof decoded === "undefined") {
|
|
34234
|
+
shouldCacheJsonLd = false;
|
|
34235
|
+
continue;
|
|
34236
|
+
}
|
|
34237
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
33274
34238
|
_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items.push(decoded);
|
|
33275
34239
|
}
|
|
33276
34240
|
instance.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = _2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items;
|
|
33277
|
-
|
|
34241
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
34242
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
33278
34243
|
instance._cachedJsonLd = structuredClone(json);
|
|
33279
34244
|
} catch {
|
|
33280
34245
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -33698,6 +34663,7 @@ var OrderedCollectionPage = class OrderedCollectionPage extends CollectionPage {
|
|
|
33698
34663
|
_fromSubclass: true
|
|
33699
34664
|
});
|
|
33700
34665
|
if (!(instance instanceof OrderedCollectionPage)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
34666
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
33701
34667
|
const _2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = [];
|
|
33702
34668
|
let _2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items__array = values["https://www.w3.org/ns/activitystreams#items"];
|
|
33703
34669
|
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) {
|
|
@@ -33784,7 +34750,11 @@ var OrderedCollectionPage = class OrderedCollectionPage extends CollectionPage {
|
|
|
33784
34750
|
...options,
|
|
33785
34751
|
baseUrl: options.baseUrl
|
|
33786
34752
|
}) : void 0;
|
|
33787
|
-
if (typeof decoded === "undefined")
|
|
34753
|
+
if (typeof decoded === "undefined") {
|
|
34754
|
+
shouldCacheJsonLd = false;
|
|
34755
|
+
continue;
|
|
34756
|
+
}
|
|
34757
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
33788
34758
|
_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items.push(decoded);
|
|
33789
34759
|
}
|
|
33790
34760
|
instance.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = _2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items;
|
|
@@ -33793,11 +34763,16 @@ var OrderedCollectionPage = class OrderedCollectionPage extends CollectionPage {
|
|
|
33793
34763
|
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) {
|
|
33794
34764
|
if (v == null) continue;
|
|
33795
34765
|
const decoded = v["@value"];
|
|
33796
|
-
if (typeof decoded === "undefined")
|
|
34766
|
+
if (typeof decoded === "undefined") {
|
|
34767
|
+
shouldCacheJsonLd = false;
|
|
34768
|
+
continue;
|
|
34769
|
+
}
|
|
34770
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
33797
34771
|
_2W4yinFwqmpneu2h4m1mZ3pcLADd_startIndex.push(decoded);
|
|
33798
34772
|
}
|
|
33799
34773
|
instance.#_2W4yinFwqmpneu2h4m1mZ3pcLADd_startIndex = _2W4yinFwqmpneu2h4m1mZ3pcLADd_startIndex;
|
|
33800
|
-
|
|
34774
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
34775
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
33801
34776
|
instance._cachedJsonLd = structuredClone(json);
|
|
33802
34777
|
} catch {
|
|
33803
34778
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -36727,12 +37702,17 @@ var Organization = class Organization extends Object$1 {
|
|
|
36727
37702
|
_fromSubclass: true
|
|
36728
37703
|
});
|
|
36729
37704
|
if (!(instance instanceof Organization)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
37705
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
36730
37706
|
const _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = [];
|
|
36731
37707
|
let _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername__array = values["https://www.w3.org/ns/activitystreams#preferredUsername"];
|
|
36732
37708
|
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) {
|
|
36733
37709
|
if (v == null) continue;
|
|
36734
|
-
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(v["@value"], v["@language"]) : void 0;
|
|
36735
|
-
if (typeof decoded === "undefined")
|
|
37710
|
+
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(v["@value"], v["@language"]) : void 0;
|
|
37711
|
+
if (typeof decoded === "undefined") {
|
|
37712
|
+
shouldCacheJsonLd = false;
|
|
37713
|
+
continue;
|
|
37714
|
+
}
|
|
37715
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
36736
37716
|
_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername.push(decoded);
|
|
36737
37717
|
}
|
|
36738
37718
|
instance.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername;
|
|
@@ -36749,7 +37729,11 @@ var Organization = class Organization extends Object$1 {
|
|
|
36749
37729
|
...options,
|
|
36750
37730
|
baseUrl: options.baseUrl
|
|
36751
37731
|
});
|
|
36752
|
-
if (typeof decoded === "undefined")
|
|
37732
|
+
if (typeof decoded === "undefined") {
|
|
37733
|
+
shouldCacheJsonLd = false;
|
|
37734
|
+
continue;
|
|
37735
|
+
}
|
|
37736
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
36753
37737
|
_axq166E2eZADq34V4MYUc8KMZdC_publicKey.push(decoded);
|
|
36754
37738
|
}
|
|
36755
37739
|
instance.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = _axq166E2eZADq34V4MYUc8KMZdC_publicKey;
|
|
@@ -36766,7 +37750,11 @@ var Organization = class Organization extends Object$1 {
|
|
|
36766
37750
|
...options,
|
|
36767
37751
|
baseUrl: options.baseUrl
|
|
36768
37752
|
});
|
|
36769
|
-
if (typeof decoded === "undefined")
|
|
37753
|
+
if (typeof decoded === "undefined") {
|
|
37754
|
+
shouldCacheJsonLd = false;
|
|
37755
|
+
continue;
|
|
37756
|
+
}
|
|
37757
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
36770
37758
|
_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(decoded);
|
|
36771
37759
|
}
|
|
36772
37760
|
instance.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod;
|
|
@@ -36775,7 +37763,11 @@ var Organization = class Organization extends Object$1 {
|
|
|
36775
37763
|
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) {
|
|
36776
37764
|
if (v == null) continue;
|
|
36777
37765
|
const decoded = v["@value"];
|
|
36778
|
-
if (typeof decoded === "undefined")
|
|
37766
|
+
if (typeof decoded === "undefined") {
|
|
37767
|
+
shouldCacheJsonLd = false;
|
|
37768
|
+
continue;
|
|
37769
|
+
}
|
|
37770
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
36779
37771
|
_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers.push(decoded);
|
|
36780
37772
|
}
|
|
36781
37773
|
instance.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers;
|
|
@@ -36795,7 +37787,11 @@ var Organization = class Organization extends Object$1 {
|
|
|
36795
37787
|
...options,
|
|
36796
37788
|
baseUrl: options.baseUrl
|
|
36797
37789
|
}) : void 0;
|
|
36798
|
-
if (typeof decoded === "undefined")
|
|
37790
|
+
if (typeof decoded === "undefined") {
|
|
37791
|
+
shouldCacheJsonLd = false;
|
|
37792
|
+
continue;
|
|
37793
|
+
}
|
|
37794
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
36799
37795
|
_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox.push(decoded);
|
|
36800
37796
|
}
|
|
36801
37797
|
instance.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = _3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox;
|
|
@@ -36815,7 +37811,11 @@ var Organization = class Organization extends Object$1 {
|
|
|
36815
37811
|
...options,
|
|
36816
37812
|
baseUrl: options.baseUrl
|
|
36817
37813
|
}) : void 0;
|
|
36818
|
-
if (typeof decoded === "undefined")
|
|
37814
|
+
if (typeof decoded === "undefined") {
|
|
37815
|
+
shouldCacheJsonLd = false;
|
|
37816
|
+
continue;
|
|
37817
|
+
}
|
|
37818
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
36819
37819
|
_41QwhqJouoLg3h8dRPKat21brynC_outbox.push(decoded);
|
|
36820
37820
|
}
|
|
36821
37821
|
instance.#_41QwhqJouoLg3h8dRPKat21brynC_outbox = _41QwhqJouoLg3h8dRPKat21brynC_outbox;
|
|
@@ -36832,7 +37832,11 @@ var Organization = class Organization extends Object$1 {
|
|
|
36832
37832
|
...options,
|
|
36833
37833
|
baseUrl: options.baseUrl
|
|
36834
37834
|
});
|
|
36835
|
-
if (typeof decoded === "undefined")
|
|
37835
|
+
if (typeof decoded === "undefined") {
|
|
37836
|
+
shouldCacheJsonLd = false;
|
|
37837
|
+
continue;
|
|
37838
|
+
}
|
|
37839
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
36836
37840
|
_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.push(decoded);
|
|
36837
37841
|
}
|
|
36838
37842
|
instance.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = _3yAv8jymNfNuJUDuBzJ1NQhdbAee_following;
|
|
@@ -36849,7 +37853,11 @@ var Organization = class Organization extends Object$1 {
|
|
|
36849
37853
|
...options,
|
|
36850
37854
|
baseUrl: options.baseUrl
|
|
36851
37855
|
});
|
|
36852
|
-
if (typeof decoded === "undefined")
|
|
37856
|
+
if (typeof decoded === "undefined") {
|
|
37857
|
+
shouldCacheJsonLd = false;
|
|
37858
|
+
continue;
|
|
37859
|
+
}
|
|
37860
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
36853
37861
|
_BBCTgfphhsFzpVfKTykGSpBNwoA_followers.push(decoded);
|
|
36854
37862
|
}
|
|
36855
37863
|
instance.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = _BBCTgfphhsFzpVfKTykGSpBNwoA_followers;
|
|
@@ -36866,7 +37874,11 @@ var Organization = class Organization extends Object$1 {
|
|
|
36866
37874
|
...options,
|
|
36867
37875
|
baseUrl: options.baseUrl
|
|
36868
37876
|
});
|
|
36869
|
-
if (typeof decoded === "undefined")
|
|
37877
|
+
if (typeof decoded === "undefined") {
|
|
37878
|
+
shouldCacheJsonLd = false;
|
|
37879
|
+
continue;
|
|
37880
|
+
}
|
|
37881
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
36870
37882
|
_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.push(decoded);
|
|
36871
37883
|
}
|
|
36872
37884
|
instance.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = _3bgkPwJanyTCoVFM9ovRcus8tKkU_liked;
|
|
@@ -36883,7 +37895,11 @@ var Organization = class Organization extends Object$1 {
|
|
|
36883
37895
|
...options,
|
|
36884
37896
|
baseUrl: options.baseUrl
|
|
36885
37897
|
});
|
|
36886
|
-
if (typeof decoded === "undefined")
|
|
37898
|
+
if (typeof decoded === "undefined") {
|
|
37899
|
+
shouldCacheJsonLd = false;
|
|
37900
|
+
continue;
|
|
37901
|
+
}
|
|
37902
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
36887
37903
|
_4N1vBJzXDf8NbBumeECQMFvKetja_featured.push(decoded);
|
|
36888
37904
|
}
|
|
36889
37905
|
instance.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured = _4N1vBJzXDf8NbBumeECQMFvKetja_featured;
|
|
@@ -36900,7 +37916,11 @@ var Organization = class Organization extends Object$1 {
|
|
|
36900
37916
|
...options,
|
|
36901
37917
|
baseUrl: options.baseUrl
|
|
36902
37918
|
});
|
|
36903
|
-
if (typeof decoded === "undefined")
|
|
37919
|
+
if (typeof decoded === "undefined") {
|
|
37920
|
+
shouldCacheJsonLd = false;
|
|
37921
|
+
continue;
|
|
37922
|
+
}
|
|
37923
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
36904
37924
|
_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.push(decoded);
|
|
36905
37925
|
}
|
|
36906
37926
|
instance.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = _2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags;
|
|
@@ -36917,7 +37937,11 @@ var Organization = class Organization extends Object$1 {
|
|
|
36917
37937
|
...options,
|
|
36918
37938
|
baseUrl: options.baseUrl
|
|
36919
37939
|
});
|
|
36920
|
-
if (typeof decoded === "undefined")
|
|
37940
|
+
if (typeof decoded === "undefined") {
|
|
37941
|
+
shouldCacheJsonLd = false;
|
|
37942
|
+
continue;
|
|
37943
|
+
}
|
|
37944
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
36921
37945
|
_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.push(decoded);
|
|
36922
37946
|
}
|
|
36923
37947
|
instance.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = _3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams;
|
|
@@ -36929,7 +37953,11 @@ var Organization = class Organization extends Object$1 {
|
|
|
36929
37953
|
...options,
|
|
36930
37954
|
baseUrl: options.baseUrl
|
|
36931
37955
|
});
|
|
36932
|
-
if (typeof decoded === "undefined")
|
|
37956
|
+
if (typeof decoded === "undefined") {
|
|
37957
|
+
shouldCacheJsonLd = false;
|
|
37958
|
+
continue;
|
|
37959
|
+
}
|
|
37960
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
36933
37961
|
_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.push(decoded);
|
|
36934
37962
|
}
|
|
36935
37963
|
instance.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints;
|
|
@@ -36938,7 +37966,11 @@ var Organization = class Organization extends Object$1 {
|
|
|
36938
37966
|
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) {
|
|
36939
37967
|
if (v == null) continue;
|
|
36940
37968
|
const decoded = v["@value"];
|
|
36941
|
-
if (typeof decoded === "undefined")
|
|
37969
|
+
if (typeof decoded === "undefined") {
|
|
37970
|
+
shouldCacheJsonLd = false;
|
|
37971
|
+
continue;
|
|
37972
|
+
}
|
|
37973
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
36942
37974
|
_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable.push(decoded);
|
|
36943
37975
|
}
|
|
36944
37976
|
instance.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = _gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable;
|
|
@@ -36947,7 +37979,11 @@ var Organization = class Organization extends Object$1 {
|
|
|
36947
37979
|
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) {
|
|
36948
37980
|
if (v == null) continue;
|
|
36949
37981
|
const decoded = v["@value"];
|
|
36950
|
-
if (typeof decoded === "undefined")
|
|
37982
|
+
if (typeof decoded === "undefined") {
|
|
37983
|
+
shouldCacheJsonLd = false;
|
|
37984
|
+
continue;
|
|
37985
|
+
}
|
|
37986
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
36951
37987
|
_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended.push(decoded);
|
|
36952
37988
|
}
|
|
36953
37989
|
instance.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = _2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended;
|
|
@@ -36956,7 +37992,11 @@ var Organization = class Organization extends Object$1 {
|
|
|
36956
37992
|
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) {
|
|
36957
37993
|
if (v == null) continue;
|
|
36958
37994
|
const decoded = v["@value"];
|
|
36959
|
-
if (typeof decoded === "undefined")
|
|
37995
|
+
if (typeof decoded === "undefined") {
|
|
37996
|
+
shouldCacheJsonLd = false;
|
|
37997
|
+
continue;
|
|
37998
|
+
}
|
|
37999
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
36960
38000
|
_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial.push(decoded);
|
|
36961
38001
|
}
|
|
36962
38002
|
instance.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = _79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial;
|
|
@@ -36965,7 +38005,11 @@ var Organization = class Organization extends Object$1 {
|
|
|
36965
38005
|
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) {
|
|
36966
38006
|
if (v == null) continue;
|
|
36967
38007
|
const decoded = v["@value"];
|
|
36968
|
-
if (typeof decoded === "undefined")
|
|
38008
|
+
if (typeof decoded === "undefined") {
|
|
38009
|
+
shouldCacheJsonLd = false;
|
|
38010
|
+
continue;
|
|
38011
|
+
}
|
|
38012
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
36969
38013
|
_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable.push(decoded);
|
|
36970
38014
|
}
|
|
36971
38015
|
instance.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable;
|
|
@@ -36994,7 +38038,11 @@ var Organization = class Organization extends Object$1 {
|
|
|
36994
38038
|
...options,
|
|
36995
38039
|
baseUrl: options.baseUrl
|
|
36996
38040
|
}) : void 0;
|
|
36997
|
-
if (typeof decoded === "undefined")
|
|
38041
|
+
if (typeof decoded === "undefined") {
|
|
38042
|
+
shouldCacheJsonLd = false;
|
|
38043
|
+
continue;
|
|
38044
|
+
}
|
|
38045
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
36998
38046
|
_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.push(decoded);
|
|
36999
38047
|
}
|
|
37000
38048
|
instance.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = _2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo;
|
|
@@ -37023,7 +38071,11 @@ var Organization = class Organization extends Object$1 {
|
|
|
37023
38071
|
...options,
|
|
37024
38072
|
baseUrl: options.baseUrl
|
|
37025
38073
|
}) : void 0;
|
|
37026
|
-
if (typeof decoded === "undefined")
|
|
38074
|
+
if (typeof decoded === "undefined") {
|
|
38075
|
+
shouldCacheJsonLd = false;
|
|
38076
|
+
continue;
|
|
38077
|
+
}
|
|
38078
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
37027
38079
|
_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.push(decoded);
|
|
37028
38080
|
}
|
|
37029
38081
|
instance.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = _3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs;
|
|
@@ -37040,7 +38092,11 @@ var Organization = class Organization extends Object$1 {
|
|
|
37040
38092
|
...options,
|
|
37041
38093
|
baseUrl: options.baseUrl
|
|
37042
38094
|
});
|
|
37043
|
-
if (typeof decoded === "undefined")
|
|
38095
|
+
if (typeof decoded === "undefined") {
|
|
38096
|
+
shouldCacheJsonLd = false;
|
|
38097
|
+
continue;
|
|
38098
|
+
}
|
|
38099
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
37044
38100
|
_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.push(decoded);
|
|
37045
38101
|
}
|
|
37046
38102
|
instance.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = _4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service;
|
|
@@ -37049,7 +38105,11 @@ var Organization = class Organization extends Object$1 {
|
|
|
37049
38105
|
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) {
|
|
37050
38106
|
if (v == null) continue;
|
|
37051
38107
|
const decoded = v["@value"];
|
|
37052
|
-
if (typeof decoded === "undefined")
|
|
38108
|
+
if (typeof decoded === "undefined") {
|
|
38109
|
+
shouldCacheJsonLd = false;
|
|
38110
|
+
continue;
|
|
38111
|
+
}
|
|
38112
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
37053
38113
|
_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage.push(decoded);
|
|
37054
38114
|
}
|
|
37055
38115
|
instance.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage;
|
|
@@ -37058,11 +38118,16 @@ var Organization = class Organization extends Object$1 {
|
|
|
37058
38118
|
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) {
|
|
37059
38119
|
if (v == null) continue;
|
|
37060
38120
|
const decoded = v["@value"];
|
|
37061
|
-
if (typeof decoded === "undefined")
|
|
38121
|
+
if (typeof decoded === "undefined") {
|
|
38122
|
+
shouldCacheJsonLd = false;
|
|
38123
|
+
continue;
|
|
38124
|
+
}
|
|
38125
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
37062
38126
|
_2xEU4QtkC53RAun67T81Egqt9vmL_isCat.push(decoded);
|
|
37063
38127
|
}
|
|
37064
38128
|
instance.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = _2xEU4QtkC53RAun67T81Egqt9vmL_isCat;
|
|
37065
|
-
|
|
38129
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
38130
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
37066
38131
|
instance._cachedJsonLd = structuredClone(json);
|
|
37067
38132
|
} catch {
|
|
37068
38133
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -37341,7 +38406,9 @@ var Page = class Page extends Document {
|
|
|
37341
38406
|
_fromSubclass: true
|
|
37342
38407
|
});
|
|
37343
38408
|
if (!(instance instanceof Page)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
37344
|
-
|
|
38409
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
38410
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
38411
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
37345
38412
|
instance._cachedJsonLd = structuredClone(json);
|
|
37346
38413
|
} catch {
|
|
37347
38414
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -40260,12 +41327,17 @@ var Person = class Person extends Object$1 {
|
|
|
40260
41327
|
_fromSubclass: true
|
|
40261
41328
|
});
|
|
40262
41329
|
if (!(instance instanceof Person)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
41330
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
40263
41331
|
const _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = [];
|
|
40264
41332
|
let _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername__array = values["https://www.w3.org/ns/activitystreams#preferredUsername"];
|
|
40265
41333
|
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) {
|
|
40266
41334
|
if (v == null) continue;
|
|
40267
|
-
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(v["@value"], v["@language"]) : void 0;
|
|
40268
|
-
if (typeof decoded === "undefined")
|
|
41335
|
+
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(v["@value"], v["@language"]) : void 0;
|
|
41336
|
+
if (typeof decoded === "undefined") {
|
|
41337
|
+
shouldCacheJsonLd = false;
|
|
41338
|
+
continue;
|
|
41339
|
+
}
|
|
41340
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
40269
41341
|
_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername.push(decoded);
|
|
40270
41342
|
}
|
|
40271
41343
|
instance.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername;
|
|
@@ -40282,7 +41354,11 @@ var Person = class Person extends Object$1 {
|
|
|
40282
41354
|
...options,
|
|
40283
41355
|
baseUrl: options.baseUrl
|
|
40284
41356
|
});
|
|
40285
|
-
if (typeof decoded === "undefined")
|
|
41357
|
+
if (typeof decoded === "undefined") {
|
|
41358
|
+
shouldCacheJsonLd = false;
|
|
41359
|
+
continue;
|
|
41360
|
+
}
|
|
41361
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
40286
41362
|
_axq166E2eZADq34V4MYUc8KMZdC_publicKey.push(decoded);
|
|
40287
41363
|
}
|
|
40288
41364
|
instance.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = _axq166E2eZADq34V4MYUc8KMZdC_publicKey;
|
|
@@ -40299,7 +41375,11 @@ var Person = class Person extends Object$1 {
|
|
|
40299
41375
|
...options,
|
|
40300
41376
|
baseUrl: options.baseUrl
|
|
40301
41377
|
});
|
|
40302
|
-
if (typeof decoded === "undefined")
|
|
41378
|
+
if (typeof decoded === "undefined") {
|
|
41379
|
+
shouldCacheJsonLd = false;
|
|
41380
|
+
continue;
|
|
41381
|
+
}
|
|
41382
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
40303
41383
|
_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(decoded);
|
|
40304
41384
|
}
|
|
40305
41385
|
instance.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod;
|
|
@@ -40308,7 +41388,11 @@ var Person = class Person extends Object$1 {
|
|
|
40308
41388
|
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) {
|
|
40309
41389
|
if (v == null) continue;
|
|
40310
41390
|
const decoded = v["@value"];
|
|
40311
|
-
if (typeof decoded === "undefined")
|
|
41391
|
+
if (typeof decoded === "undefined") {
|
|
41392
|
+
shouldCacheJsonLd = false;
|
|
41393
|
+
continue;
|
|
41394
|
+
}
|
|
41395
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
40312
41396
|
_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers.push(decoded);
|
|
40313
41397
|
}
|
|
40314
41398
|
instance.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers;
|
|
@@ -40328,7 +41412,11 @@ var Person = class Person extends Object$1 {
|
|
|
40328
41412
|
...options,
|
|
40329
41413
|
baseUrl: options.baseUrl
|
|
40330
41414
|
}) : void 0;
|
|
40331
|
-
if (typeof decoded === "undefined")
|
|
41415
|
+
if (typeof decoded === "undefined") {
|
|
41416
|
+
shouldCacheJsonLd = false;
|
|
41417
|
+
continue;
|
|
41418
|
+
}
|
|
41419
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
40332
41420
|
_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox.push(decoded);
|
|
40333
41421
|
}
|
|
40334
41422
|
instance.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = _3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox;
|
|
@@ -40348,7 +41436,11 @@ var Person = class Person extends Object$1 {
|
|
|
40348
41436
|
...options,
|
|
40349
41437
|
baseUrl: options.baseUrl
|
|
40350
41438
|
}) : void 0;
|
|
40351
|
-
if (typeof decoded === "undefined")
|
|
41439
|
+
if (typeof decoded === "undefined") {
|
|
41440
|
+
shouldCacheJsonLd = false;
|
|
41441
|
+
continue;
|
|
41442
|
+
}
|
|
41443
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
40352
41444
|
_41QwhqJouoLg3h8dRPKat21brynC_outbox.push(decoded);
|
|
40353
41445
|
}
|
|
40354
41446
|
instance.#_41QwhqJouoLg3h8dRPKat21brynC_outbox = _41QwhqJouoLg3h8dRPKat21brynC_outbox;
|
|
@@ -40365,7 +41457,11 @@ var Person = class Person extends Object$1 {
|
|
|
40365
41457
|
...options,
|
|
40366
41458
|
baseUrl: options.baseUrl
|
|
40367
41459
|
});
|
|
40368
|
-
if (typeof decoded === "undefined")
|
|
41460
|
+
if (typeof decoded === "undefined") {
|
|
41461
|
+
shouldCacheJsonLd = false;
|
|
41462
|
+
continue;
|
|
41463
|
+
}
|
|
41464
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
40369
41465
|
_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.push(decoded);
|
|
40370
41466
|
}
|
|
40371
41467
|
instance.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = _3yAv8jymNfNuJUDuBzJ1NQhdbAee_following;
|
|
@@ -40382,7 +41478,11 @@ var Person = class Person extends Object$1 {
|
|
|
40382
41478
|
...options,
|
|
40383
41479
|
baseUrl: options.baseUrl
|
|
40384
41480
|
});
|
|
40385
|
-
if (typeof decoded === "undefined")
|
|
41481
|
+
if (typeof decoded === "undefined") {
|
|
41482
|
+
shouldCacheJsonLd = false;
|
|
41483
|
+
continue;
|
|
41484
|
+
}
|
|
41485
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
40386
41486
|
_BBCTgfphhsFzpVfKTykGSpBNwoA_followers.push(decoded);
|
|
40387
41487
|
}
|
|
40388
41488
|
instance.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = _BBCTgfphhsFzpVfKTykGSpBNwoA_followers;
|
|
@@ -40399,7 +41499,11 @@ var Person = class Person extends Object$1 {
|
|
|
40399
41499
|
...options,
|
|
40400
41500
|
baseUrl: options.baseUrl
|
|
40401
41501
|
});
|
|
40402
|
-
if (typeof decoded === "undefined")
|
|
41502
|
+
if (typeof decoded === "undefined") {
|
|
41503
|
+
shouldCacheJsonLd = false;
|
|
41504
|
+
continue;
|
|
41505
|
+
}
|
|
41506
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
40403
41507
|
_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.push(decoded);
|
|
40404
41508
|
}
|
|
40405
41509
|
instance.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = _3bgkPwJanyTCoVFM9ovRcus8tKkU_liked;
|
|
@@ -40416,7 +41520,11 @@ var Person = class Person extends Object$1 {
|
|
|
40416
41520
|
...options,
|
|
40417
41521
|
baseUrl: options.baseUrl
|
|
40418
41522
|
});
|
|
40419
|
-
if (typeof decoded === "undefined")
|
|
41523
|
+
if (typeof decoded === "undefined") {
|
|
41524
|
+
shouldCacheJsonLd = false;
|
|
41525
|
+
continue;
|
|
41526
|
+
}
|
|
41527
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
40420
41528
|
_4N1vBJzXDf8NbBumeECQMFvKetja_featured.push(decoded);
|
|
40421
41529
|
}
|
|
40422
41530
|
instance.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured = _4N1vBJzXDf8NbBumeECQMFvKetja_featured;
|
|
@@ -40433,7 +41541,11 @@ var Person = class Person extends Object$1 {
|
|
|
40433
41541
|
...options,
|
|
40434
41542
|
baseUrl: options.baseUrl
|
|
40435
41543
|
});
|
|
40436
|
-
if (typeof decoded === "undefined")
|
|
41544
|
+
if (typeof decoded === "undefined") {
|
|
41545
|
+
shouldCacheJsonLd = false;
|
|
41546
|
+
continue;
|
|
41547
|
+
}
|
|
41548
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
40437
41549
|
_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.push(decoded);
|
|
40438
41550
|
}
|
|
40439
41551
|
instance.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = _2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags;
|
|
@@ -40450,7 +41562,11 @@ var Person = class Person extends Object$1 {
|
|
|
40450
41562
|
...options,
|
|
40451
41563
|
baseUrl: options.baseUrl
|
|
40452
41564
|
});
|
|
40453
|
-
if (typeof decoded === "undefined")
|
|
41565
|
+
if (typeof decoded === "undefined") {
|
|
41566
|
+
shouldCacheJsonLd = false;
|
|
41567
|
+
continue;
|
|
41568
|
+
}
|
|
41569
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
40454
41570
|
_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.push(decoded);
|
|
40455
41571
|
}
|
|
40456
41572
|
instance.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = _3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams;
|
|
@@ -40462,7 +41578,11 @@ var Person = class Person extends Object$1 {
|
|
|
40462
41578
|
...options,
|
|
40463
41579
|
baseUrl: options.baseUrl
|
|
40464
41580
|
});
|
|
40465
|
-
if (typeof decoded === "undefined")
|
|
41581
|
+
if (typeof decoded === "undefined") {
|
|
41582
|
+
shouldCacheJsonLd = false;
|
|
41583
|
+
continue;
|
|
41584
|
+
}
|
|
41585
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
40466
41586
|
_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.push(decoded);
|
|
40467
41587
|
}
|
|
40468
41588
|
instance.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints;
|
|
@@ -40471,7 +41591,11 @@ var Person = class Person extends Object$1 {
|
|
|
40471
41591
|
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) {
|
|
40472
41592
|
if (v == null) continue;
|
|
40473
41593
|
const decoded = v["@value"];
|
|
40474
|
-
if (typeof decoded === "undefined")
|
|
41594
|
+
if (typeof decoded === "undefined") {
|
|
41595
|
+
shouldCacheJsonLd = false;
|
|
41596
|
+
continue;
|
|
41597
|
+
}
|
|
41598
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
40475
41599
|
_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable.push(decoded);
|
|
40476
41600
|
}
|
|
40477
41601
|
instance.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = _gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable;
|
|
@@ -40480,7 +41604,11 @@ var Person = class Person extends Object$1 {
|
|
|
40480
41604
|
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) {
|
|
40481
41605
|
if (v == null) continue;
|
|
40482
41606
|
const decoded = v["@value"];
|
|
40483
|
-
if (typeof decoded === "undefined")
|
|
41607
|
+
if (typeof decoded === "undefined") {
|
|
41608
|
+
shouldCacheJsonLd = false;
|
|
41609
|
+
continue;
|
|
41610
|
+
}
|
|
41611
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
40484
41612
|
_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended.push(decoded);
|
|
40485
41613
|
}
|
|
40486
41614
|
instance.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = _2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended;
|
|
@@ -40489,7 +41617,11 @@ var Person = class Person extends Object$1 {
|
|
|
40489
41617
|
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) {
|
|
40490
41618
|
if (v == null) continue;
|
|
40491
41619
|
const decoded = v["@value"];
|
|
40492
|
-
if (typeof decoded === "undefined")
|
|
41620
|
+
if (typeof decoded === "undefined") {
|
|
41621
|
+
shouldCacheJsonLd = false;
|
|
41622
|
+
continue;
|
|
41623
|
+
}
|
|
41624
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
40493
41625
|
_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial.push(decoded);
|
|
40494
41626
|
}
|
|
40495
41627
|
instance.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = _79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial;
|
|
@@ -40498,7 +41630,11 @@ var Person = class Person extends Object$1 {
|
|
|
40498
41630
|
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) {
|
|
40499
41631
|
if (v == null) continue;
|
|
40500
41632
|
const decoded = v["@value"];
|
|
40501
|
-
if (typeof decoded === "undefined")
|
|
41633
|
+
if (typeof decoded === "undefined") {
|
|
41634
|
+
shouldCacheJsonLd = false;
|
|
41635
|
+
continue;
|
|
41636
|
+
}
|
|
41637
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
40502
41638
|
_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable.push(decoded);
|
|
40503
41639
|
}
|
|
40504
41640
|
instance.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable;
|
|
@@ -40527,7 +41663,11 @@ var Person = class Person extends Object$1 {
|
|
|
40527
41663
|
...options,
|
|
40528
41664
|
baseUrl: options.baseUrl
|
|
40529
41665
|
}) : void 0;
|
|
40530
|
-
if (typeof decoded === "undefined")
|
|
41666
|
+
if (typeof decoded === "undefined") {
|
|
41667
|
+
shouldCacheJsonLd = false;
|
|
41668
|
+
continue;
|
|
41669
|
+
}
|
|
41670
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
40531
41671
|
_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.push(decoded);
|
|
40532
41672
|
}
|
|
40533
41673
|
instance.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = _2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo;
|
|
@@ -40556,7 +41696,11 @@ var Person = class Person extends Object$1 {
|
|
|
40556
41696
|
...options,
|
|
40557
41697
|
baseUrl: options.baseUrl
|
|
40558
41698
|
}) : void 0;
|
|
40559
|
-
if (typeof decoded === "undefined")
|
|
41699
|
+
if (typeof decoded === "undefined") {
|
|
41700
|
+
shouldCacheJsonLd = false;
|
|
41701
|
+
continue;
|
|
41702
|
+
}
|
|
41703
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
40560
41704
|
_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.push(decoded);
|
|
40561
41705
|
}
|
|
40562
41706
|
instance.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = _3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs;
|
|
@@ -40573,7 +41717,11 @@ var Person = class Person extends Object$1 {
|
|
|
40573
41717
|
...options,
|
|
40574
41718
|
baseUrl: options.baseUrl
|
|
40575
41719
|
});
|
|
40576
|
-
if (typeof decoded === "undefined")
|
|
41720
|
+
if (typeof decoded === "undefined") {
|
|
41721
|
+
shouldCacheJsonLd = false;
|
|
41722
|
+
continue;
|
|
41723
|
+
}
|
|
41724
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
40577
41725
|
_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.push(decoded);
|
|
40578
41726
|
}
|
|
40579
41727
|
instance.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = _4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service;
|
|
@@ -40582,7 +41730,11 @@ var Person = class Person extends Object$1 {
|
|
|
40582
41730
|
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) {
|
|
40583
41731
|
if (v == null) continue;
|
|
40584
41732
|
const decoded = v["@value"];
|
|
40585
|
-
if (typeof decoded === "undefined")
|
|
41733
|
+
if (typeof decoded === "undefined") {
|
|
41734
|
+
shouldCacheJsonLd = false;
|
|
41735
|
+
continue;
|
|
41736
|
+
}
|
|
41737
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
40586
41738
|
_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage.push(decoded);
|
|
40587
41739
|
}
|
|
40588
41740
|
instance.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage;
|
|
@@ -40591,11 +41743,16 @@ var Person = class Person extends Object$1 {
|
|
|
40591
41743
|
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) {
|
|
40592
41744
|
if (v == null) continue;
|
|
40593
41745
|
const decoded = v["@value"];
|
|
40594
|
-
if (typeof decoded === "undefined")
|
|
41746
|
+
if (typeof decoded === "undefined") {
|
|
41747
|
+
shouldCacheJsonLd = false;
|
|
41748
|
+
continue;
|
|
41749
|
+
}
|
|
41750
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
40595
41751
|
_2xEU4QtkC53RAun67T81Egqt9vmL_isCat.push(decoded);
|
|
40596
41752
|
}
|
|
40597
41753
|
instance.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = _2xEU4QtkC53RAun67T81Egqt9vmL_isCat;
|
|
40598
|
-
|
|
41754
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
41755
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
40599
41756
|
instance._cachedJsonLd = structuredClone(json);
|
|
40600
41757
|
} catch {
|
|
40601
41758
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -41051,12 +42208,17 @@ var Place = class Place extends Object$1 {
|
|
|
41051
42208
|
_fromSubclass: true
|
|
41052
42209
|
});
|
|
41053
42210
|
if (!(instance instanceof Place)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
42211
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
41054
42212
|
const _3UCsHnBHvDAXJnBuzw3zw1VVs3Ne_accuracy = [];
|
|
41055
42213
|
let _3UCsHnBHvDAXJnBuzw3zw1VVs3Ne_accuracy__array = values["https://www.w3.org/ns/activitystreams#accuracy"];
|
|
41056
42214
|
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) {
|
|
41057
42215
|
if (v == null) continue;
|
|
41058
42216
|
const decoded = v["@value"];
|
|
41059
|
-
if (typeof decoded === "undefined")
|
|
42217
|
+
if (typeof decoded === "undefined") {
|
|
42218
|
+
shouldCacheJsonLd = false;
|
|
42219
|
+
continue;
|
|
42220
|
+
}
|
|
42221
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
41060
42222
|
_3UCsHnBHvDAXJnBuzw3zw1VVs3Ne_accuracy.push(decoded);
|
|
41061
42223
|
}
|
|
41062
42224
|
instance.#_3UCsHnBHvDAXJnBuzw3zw1VVs3Ne_accuracy = _3UCsHnBHvDAXJnBuzw3zw1VVs3Ne_accuracy;
|
|
@@ -41065,7 +42227,11 @@ var Place = class Place extends Object$1 {
|
|
|
41065
42227
|
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) {
|
|
41066
42228
|
if (v == null) continue;
|
|
41067
42229
|
const decoded = v["@value"];
|
|
41068
|
-
if (typeof decoded === "undefined")
|
|
42230
|
+
if (typeof decoded === "undefined") {
|
|
42231
|
+
shouldCacheJsonLd = false;
|
|
42232
|
+
continue;
|
|
42233
|
+
}
|
|
42234
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
41069
42235
|
_3Q6KDcFQUJRRaBux1BL2yp5QWiBi_altitude.push(decoded);
|
|
41070
42236
|
}
|
|
41071
42237
|
instance.#_3Q6KDcFQUJRRaBux1BL2yp5QWiBi_altitude = _3Q6KDcFQUJRRaBux1BL2yp5QWiBi_altitude;
|
|
@@ -41074,7 +42240,11 @@ var Place = class Place extends Object$1 {
|
|
|
41074
42240
|
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) {
|
|
41075
42241
|
if (v == null) continue;
|
|
41076
42242
|
const decoded = v["@value"];
|
|
41077
|
-
if (typeof decoded === "undefined")
|
|
42243
|
+
if (typeof decoded === "undefined") {
|
|
42244
|
+
shouldCacheJsonLd = false;
|
|
42245
|
+
continue;
|
|
42246
|
+
}
|
|
42247
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
41078
42248
|
_3g85RoKRnaNjP7DFyLSvsWDg7HGM_latitude.push(decoded);
|
|
41079
42249
|
}
|
|
41080
42250
|
instance.#_3g85RoKRnaNjP7DFyLSvsWDg7HGM_latitude = _3g85RoKRnaNjP7DFyLSvsWDg7HGM_latitude;
|
|
@@ -41083,7 +42253,11 @@ var Place = class Place extends Object$1 {
|
|
|
41083
42253
|
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) {
|
|
41084
42254
|
if (v == null) continue;
|
|
41085
42255
|
const decoded = v["@value"];
|
|
41086
|
-
if (typeof decoded === "undefined")
|
|
42256
|
+
if (typeof decoded === "undefined") {
|
|
42257
|
+
shouldCacheJsonLd = false;
|
|
42258
|
+
continue;
|
|
42259
|
+
}
|
|
42260
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
41087
42261
|
_B2GEYdS9yBAF3ho1pm1rcRg7cSf_longitude.push(decoded);
|
|
41088
42262
|
}
|
|
41089
42263
|
instance.#_B2GEYdS9yBAF3ho1pm1rcRg7cSf_longitude = _B2GEYdS9yBAF3ho1pm1rcRg7cSf_longitude;
|
|
@@ -41092,7 +42266,11 @@ var Place = class Place extends Object$1 {
|
|
|
41092
42266
|
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) {
|
|
41093
42267
|
if (v == null) continue;
|
|
41094
42268
|
const decoded = v["@value"];
|
|
41095
|
-
if (typeof decoded === "undefined")
|
|
42269
|
+
if (typeof decoded === "undefined") {
|
|
42270
|
+
shouldCacheJsonLd = false;
|
|
42271
|
+
continue;
|
|
42272
|
+
}
|
|
42273
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
41096
42274
|
_3ga86BKHUtRkGx5PHBjRiUXXzwnw_radius.push(decoded);
|
|
41097
42275
|
}
|
|
41098
42276
|
instance.#_3ga86BKHUtRkGx5PHBjRiUXXzwnw_radius = _3ga86BKHUtRkGx5PHBjRiUXXzwnw_radius;
|
|
@@ -41101,11 +42279,16 @@ var Place = class Place extends Object$1 {
|
|
|
41101
42279
|
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) {
|
|
41102
42280
|
if (v == null) continue;
|
|
41103
42281
|
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;
|
|
41104
|
-
if (typeof decoded === "undefined")
|
|
42282
|
+
if (typeof decoded === "undefined") {
|
|
42283
|
+
shouldCacheJsonLd = false;
|
|
42284
|
+
continue;
|
|
42285
|
+
}
|
|
42286
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
41105
42287
|
_oKrwxU4V8wiKhMW1QEYQibcJh8c_units.push(decoded);
|
|
41106
42288
|
}
|
|
41107
42289
|
instance.#_oKrwxU4V8wiKhMW1QEYQibcJh8c_units = _oKrwxU4V8wiKhMW1QEYQibcJh8c_units;
|
|
41108
|
-
|
|
42290
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
42291
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
41109
42292
|
instance._cachedJsonLd = structuredClone(json);
|
|
41110
42293
|
} catch {
|
|
41111
42294
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -41457,6 +42640,7 @@ var Profile = class Profile extends Object$1 {
|
|
|
41457
42640
|
_fromSubclass: true
|
|
41458
42641
|
});
|
|
41459
42642
|
if (!(instance instanceof Profile)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
42643
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
41460
42644
|
const _3CLQ1PLSXrhSQbTGGHuxNyaEFKM1_describes = [];
|
|
41461
42645
|
let _3CLQ1PLSXrhSQbTGGHuxNyaEFKM1_describes__array = values["https://www.w3.org/ns/activitystreams#describes"];
|
|
41462
42646
|
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) {
|
|
@@ -41470,11 +42654,16 @@ var Profile = class Profile extends Object$1 {
|
|
|
41470
42654
|
...options,
|
|
41471
42655
|
baseUrl: options.baseUrl
|
|
41472
42656
|
});
|
|
41473
|
-
if (typeof decoded === "undefined")
|
|
42657
|
+
if (typeof decoded === "undefined") {
|
|
42658
|
+
shouldCacheJsonLd = false;
|
|
42659
|
+
continue;
|
|
42660
|
+
}
|
|
42661
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
41474
42662
|
_3CLQ1PLSXrhSQbTGGHuxNyaEFKM1_describes.push(decoded);
|
|
41475
42663
|
}
|
|
41476
42664
|
instance.#_3CLQ1PLSXrhSQbTGGHuxNyaEFKM1_describes = _3CLQ1PLSXrhSQbTGGHuxNyaEFKM1_describes;
|
|
41477
|
-
|
|
42665
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
42666
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
41478
42667
|
instance._cachedJsonLd = structuredClone(json);
|
|
41479
42668
|
} catch {
|
|
41480
42669
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -42318,6 +43507,7 @@ var Question = class Question extends IntransitiveActivity {
|
|
|
42318
43507
|
_fromSubclass: true
|
|
42319
43508
|
});
|
|
42320
43509
|
if (!(instance instanceof Question)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
43510
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
42321
43511
|
const _2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf = [];
|
|
42322
43512
|
let _2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf__array = values["https://www.w3.org/ns/activitystreams#oneOf"];
|
|
42323
43513
|
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) {
|
|
@@ -42331,7 +43521,11 @@ var Question = class Question extends IntransitiveActivity {
|
|
|
42331
43521
|
...options,
|
|
42332
43522
|
baseUrl: options.baseUrl
|
|
42333
43523
|
});
|
|
42334
|
-
if (typeof decoded === "undefined")
|
|
43524
|
+
if (typeof decoded === "undefined") {
|
|
43525
|
+
shouldCacheJsonLd = false;
|
|
43526
|
+
continue;
|
|
43527
|
+
}
|
|
43528
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
42335
43529
|
_2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf.push(decoded);
|
|
42336
43530
|
}
|
|
42337
43531
|
instance.#_2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf = _2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf;
|
|
@@ -42348,7 +43542,11 @@ var Question = class Question extends IntransitiveActivity {
|
|
|
42348
43542
|
...options,
|
|
42349
43543
|
baseUrl: options.baseUrl
|
|
42350
43544
|
});
|
|
42351
|
-
if (typeof decoded === "undefined")
|
|
43545
|
+
if (typeof decoded === "undefined") {
|
|
43546
|
+
shouldCacheJsonLd = false;
|
|
43547
|
+
continue;
|
|
43548
|
+
}
|
|
43549
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
42352
43550
|
_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf.push(decoded);
|
|
42353
43551
|
}
|
|
42354
43552
|
instance.#_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf = _2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf;
|
|
@@ -42357,7 +43555,11 @@ var Question = class Question extends IntransitiveActivity {
|
|
|
42357
43555
|
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) {
|
|
42358
43556
|
if (v == null) continue;
|
|
42359
43557
|
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;
|
|
42360
|
-
if (typeof decoded === "undefined")
|
|
43558
|
+
if (typeof decoded === "undefined") {
|
|
43559
|
+
shouldCacheJsonLd = false;
|
|
43560
|
+
continue;
|
|
43561
|
+
}
|
|
43562
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
42361
43563
|
_3KronwL8DiiKBRcJFKQPiEHm8xb6_closed.push(decoded);
|
|
42362
43564
|
}
|
|
42363
43565
|
instance.#_3KronwL8DiiKBRcJFKQPiEHm8xb6_closed = _3KronwL8DiiKBRcJFKQPiEHm8xb6_closed;
|
|
@@ -42366,7 +43568,11 @@ var Question = class Question extends IntransitiveActivity {
|
|
|
42366
43568
|
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) {
|
|
42367
43569
|
if (v == null) continue;
|
|
42368
43570
|
const decoded = v["@value"];
|
|
42369
|
-
if (typeof decoded === "undefined")
|
|
43571
|
+
if (typeof decoded === "undefined") {
|
|
43572
|
+
shouldCacheJsonLd = false;
|
|
43573
|
+
continue;
|
|
43574
|
+
}
|
|
43575
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
42370
43576
|
_3H4RdST7dxfmghccvE3rKD3KgcxG_votersCount.push(decoded);
|
|
42371
43577
|
}
|
|
42372
43578
|
instance.#_3H4RdST7dxfmghccvE3rKD3KgcxG_votersCount = _3H4RdST7dxfmghccvE3rKD3KgcxG_votersCount;
|
|
@@ -42383,7 +43589,11 @@ var Question = class Question extends IntransitiveActivity {
|
|
|
42383
43589
|
...options,
|
|
42384
43590
|
baseUrl: options.baseUrl
|
|
42385
43591
|
});
|
|
42386
|
-
if (typeof decoded === "undefined")
|
|
43592
|
+
if (typeof decoded === "undefined") {
|
|
43593
|
+
shouldCacheJsonLd = false;
|
|
43594
|
+
continue;
|
|
43595
|
+
}
|
|
43596
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
42387
43597
|
_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote.push(decoded);
|
|
42388
43598
|
}
|
|
42389
43599
|
instance.#_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote = _3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote;
|
|
@@ -42394,7 +43604,11 @@ var Question = class Question extends IntransitiveActivity {
|
|
|
42394
43604
|
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) {
|
|
42395
43605
|
if (v == null) continue;
|
|
42396
43606
|
const decoded = new URL(v["@value"]);
|
|
42397
|
-
if (typeof decoded === "undefined")
|
|
43607
|
+
if (typeof decoded === "undefined") {
|
|
43608
|
+
shouldCacheJsonLd = false;
|
|
43609
|
+
continue;
|
|
43610
|
+
}
|
|
43611
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
42398
43612
|
_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl.push(decoded);
|
|
42399
43613
|
}
|
|
42400
43614
|
instance.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl = _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl;
|
|
@@ -42411,11 +43625,16 @@ var Question = class Question extends IntransitiveActivity {
|
|
|
42411
43625
|
...options,
|
|
42412
43626
|
baseUrl: options.baseUrl
|
|
42413
43627
|
});
|
|
42414
|
-
if (typeof decoded === "undefined")
|
|
43628
|
+
if (typeof decoded === "undefined") {
|
|
43629
|
+
shouldCacheJsonLd = false;
|
|
43630
|
+
continue;
|
|
43631
|
+
}
|
|
43632
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
42415
43633
|
_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization.push(decoded);
|
|
42416
43634
|
}
|
|
42417
43635
|
instance.#_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization = _ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization;
|
|
42418
|
-
|
|
43636
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
43637
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
42419
43638
|
instance._cachedJsonLd = structuredClone(json);
|
|
42420
43639
|
} catch {
|
|
42421
43640
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -42600,7 +43819,9 @@ var Read = class Read extends Activity {
|
|
|
42600
43819
|
_fromSubclass: true
|
|
42601
43820
|
});
|
|
42602
43821
|
if (!(instance instanceof Read)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
42603
|
-
|
|
43822
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
43823
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
43824
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
42604
43825
|
instance._cachedJsonLd = structuredClone(json);
|
|
42605
43826
|
} catch {
|
|
42606
43827
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -42751,7 +43972,9 @@ var Reject = class Reject extends Activity {
|
|
|
42751
43972
|
_fromSubclass: true
|
|
42752
43973
|
});
|
|
42753
43974
|
if (!(instance instanceof Reject)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
42754
|
-
|
|
43975
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
43976
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
43977
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
42755
43978
|
instance._cachedJsonLd = structuredClone(json);
|
|
42756
43979
|
} catch {
|
|
42757
43980
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -43502,6 +44725,7 @@ var Relationship = class Relationship extends Object$1 {
|
|
|
43502
44725
|
_fromSubclass: true
|
|
43503
44726
|
});
|
|
43504
44727
|
if (!(instance instanceof Relationship)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
44728
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
43505
44729
|
const _2Zqdmi46ZnDQsECS6mzwhrv3rUKq_subject = [];
|
|
43506
44730
|
let _2Zqdmi46ZnDQsECS6mzwhrv3rUKq_subject__array = values["https://www.w3.org/ns/activitystreams#subject"];
|
|
43507
44731
|
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) {
|
|
@@ -43515,7 +44739,11 @@ var Relationship = class Relationship extends Object$1 {
|
|
|
43515
44739
|
...options,
|
|
43516
44740
|
baseUrl: options.baseUrl
|
|
43517
44741
|
});
|
|
43518
|
-
if (typeof decoded === "undefined")
|
|
44742
|
+
if (typeof decoded === "undefined") {
|
|
44743
|
+
shouldCacheJsonLd = false;
|
|
44744
|
+
continue;
|
|
44745
|
+
}
|
|
44746
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
43519
44747
|
_2Zqdmi46ZnDQsECS6mzwhrv3rUKq_subject.push(decoded);
|
|
43520
44748
|
}
|
|
43521
44749
|
instance.#_2Zqdmi46ZnDQsECS6mzwhrv3rUKq_subject = _2Zqdmi46ZnDQsECS6mzwhrv3rUKq_subject;
|
|
@@ -43532,7 +44760,11 @@ var Relationship = class Relationship extends Object$1 {
|
|
|
43532
44760
|
...options,
|
|
43533
44761
|
baseUrl: options.baseUrl
|
|
43534
44762
|
});
|
|
43535
|
-
if (typeof decoded === "undefined")
|
|
44763
|
+
if (typeof decoded === "undefined") {
|
|
44764
|
+
shouldCacheJsonLd = false;
|
|
44765
|
+
continue;
|
|
44766
|
+
}
|
|
44767
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
43536
44768
|
_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object.push(decoded);
|
|
43537
44769
|
}
|
|
43538
44770
|
instance.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = _2MH19yxjn1wnHsNfa5n4JBhJzxyc_object;
|
|
@@ -43549,11 +44781,16 @@ var Relationship = class Relationship extends Object$1 {
|
|
|
43549
44781
|
...options,
|
|
43550
44782
|
baseUrl: options.baseUrl
|
|
43551
44783
|
});
|
|
43552
|
-
if (typeof decoded === "undefined")
|
|
44784
|
+
if (typeof decoded === "undefined") {
|
|
44785
|
+
shouldCacheJsonLd = false;
|
|
44786
|
+
continue;
|
|
44787
|
+
}
|
|
44788
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
43553
44789
|
_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship.push(decoded);
|
|
43554
44790
|
}
|
|
43555
44791
|
instance.#_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship = _4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship;
|
|
43556
|
-
|
|
44792
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
44793
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
43557
44794
|
instance._cachedJsonLd = structuredClone(json);
|
|
43558
44795
|
} catch {
|
|
43559
44796
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -43721,7 +44958,9 @@ var Remove = class Remove extends Activity {
|
|
|
43721
44958
|
_fromSubclass: true
|
|
43722
44959
|
});
|
|
43723
44960
|
if (!(instance instanceof Remove)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
43724
|
-
|
|
44961
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
44962
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
44963
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
43725
44964
|
instance._cachedJsonLd = structuredClone(json);
|
|
43726
44965
|
} catch {
|
|
43727
44966
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -46640,12 +47879,17 @@ var Service = class Service extends Object$1 {
|
|
|
46640
47879
|
_fromSubclass: true
|
|
46641
47880
|
});
|
|
46642
47881
|
if (!(instance instanceof Service)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
47882
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
46643
47883
|
const _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = [];
|
|
46644
47884
|
let _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername__array = values["https://www.w3.org/ns/activitystreams#preferredUsername"];
|
|
46645
47885
|
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) {
|
|
46646
47886
|
if (v == null) continue;
|
|
46647
|
-
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(v["@value"], v["@language"]) : void 0;
|
|
46648
|
-
if (typeof decoded === "undefined")
|
|
47887
|
+
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(v["@value"], v["@language"]) : void 0;
|
|
47888
|
+
if (typeof decoded === "undefined") {
|
|
47889
|
+
shouldCacheJsonLd = false;
|
|
47890
|
+
continue;
|
|
47891
|
+
}
|
|
47892
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
46649
47893
|
_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername.push(decoded);
|
|
46650
47894
|
}
|
|
46651
47895
|
instance.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername;
|
|
@@ -46662,7 +47906,11 @@ var Service = class Service extends Object$1 {
|
|
|
46662
47906
|
...options,
|
|
46663
47907
|
baseUrl: options.baseUrl
|
|
46664
47908
|
});
|
|
46665
|
-
if (typeof decoded === "undefined")
|
|
47909
|
+
if (typeof decoded === "undefined") {
|
|
47910
|
+
shouldCacheJsonLd = false;
|
|
47911
|
+
continue;
|
|
47912
|
+
}
|
|
47913
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
46666
47914
|
_axq166E2eZADq34V4MYUc8KMZdC_publicKey.push(decoded);
|
|
46667
47915
|
}
|
|
46668
47916
|
instance.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = _axq166E2eZADq34V4MYUc8KMZdC_publicKey;
|
|
@@ -46679,7 +47927,11 @@ var Service = class Service extends Object$1 {
|
|
|
46679
47927
|
...options,
|
|
46680
47928
|
baseUrl: options.baseUrl
|
|
46681
47929
|
});
|
|
46682
|
-
if (typeof decoded === "undefined")
|
|
47930
|
+
if (typeof decoded === "undefined") {
|
|
47931
|
+
shouldCacheJsonLd = false;
|
|
47932
|
+
continue;
|
|
47933
|
+
}
|
|
47934
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
46683
47935
|
_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(decoded);
|
|
46684
47936
|
}
|
|
46685
47937
|
instance.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod;
|
|
@@ -46688,7 +47940,11 @@ var Service = class Service extends Object$1 {
|
|
|
46688
47940
|
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) {
|
|
46689
47941
|
if (v == null) continue;
|
|
46690
47942
|
const decoded = v["@value"];
|
|
46691
|
-
if (typeof decoded === "undefined")
|
|
47943
|
+
if (typeof decoded === "undefined") {
|
|
47944
|
+
shouldCacheJsonLd = false;
|
|
47945
|
+
continue;
|
|
47946
|
+
}
|
|
47947
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
46692
47948
|
_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers.push(decoded);
|
|
46693
47949
|
}
|
|
46694
47950
|
instance.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers;
|
|
@@ -46708,7 +47964,11 @@ var Service = class Service extends Object$1 {
|
|
|
46708
47964
|
...options,
|
|
46709
47965
|
baseUrl: options.baseUrl
|
|
46710
47966
|
}) : void 0;
|
|
46711
|
-
if (typeof decoded === "undefined")
|
|
47967
|
+
if (typeof decoded === "undefined") {
|
|
47968
|
+
shouldCacheJsonLd = false;
|
|
47969
|
+
continue;
|
|
47970
|
+
}
|
|
47971
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
46712
47972
|
_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox.push(decoded);
|
|
46713
47973
|
}
|
|
46714
47974
|
instance.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = _3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox;
|
|
@@ -46728,7 +47988,11 @@ var Service = class Service extends Object$1 {
|
|
|
46728
47988
|
...options,
|
|
46729
47989
|
baseUrl: options.baseUrl
|
|
46730
47990
|
}) : void 0;
|
|
46731
|
-
if (typeof decoded === "undefined")
|
|
47991
|
+
if (typeof decoded === "undefined") {
|
|
47992
|
+
shouldCacheJsonLd = false;
|
|
47993
|
+
continue;
|
|
47994
|
+
}
|
|
47995
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
46732
47996
|
_41QwhqJouoLg3h8dRPKat21brynC_outbox.push(decoded);
|
|
46733
47997
|
}
|
|
46734
47998
|
instance.#_41QwhqJouoLg3h8dRPKat21brynC_outbox = _41QwhqJouoLg3h8dRPKat21brynC_outbox;
|
|
@@ -46745,7 +48009,11 @@ var Service = class Service extends Object$1 {
|
|
|
46745
48009
|
...options,
|
|
46746
48010
|
baseUrl: options.baseUrl
|
|
46747
48011
|
});
|
|
46748
|
-
if (typeof decoded === "undefined")
|
|
48012
|
+
if (typeof decoded === "undefined") {
|
|
48013
|
+
shouldCacheJsonLd = false;
|
|
48014
|
+
continue;
|
|
48015
|
+
}
|
|
48016
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
46749
48017
|
_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.push(decoded);
|
|
46750
48018
|
}
|
|
46751
48019
|
instance.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = _3yAv8jymNfNuJUDuBzJ1NQhdbAee_following;
|
|
@@ -46762,7 +48030,11 @@ var Service = class Service extends Object$1 {
|
|
|
46762
48030
|
...options,
|
|
46763
48031
|
baseUrl: options.baseUrl
|
|
46764
48032
|
});
|
|
46765
|
-
if (typeof decoded === "undefined")
|
|
48033
|
+
if (typeof decoded === "undefined") {
|
|
48034
|
+
shouldCacheJsonLd = false;
|
|
48035
|
+
continue;
|
|
48036
|
+
}
|
|
48037
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
46766
48038
|
_BBCTgfphhsFzpVfKTykGSpBNwoA_followers.push(decoded);
|
|
46767
48039
|
}
|
|
46768
48040
|
instance.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = _BBCTgfphhsFzpVfKTykGSpBNwoA_followers;
|
|
@@ -46779,7 +48051,11 @@ var Service = class Service extends Object$1 {
|
|
|
46779
48051
|
...options,
|
|
46780
48052
|
baseUrl: options.baseUrl
|
|
46781
48053
|
});
|
|
46782
|
-
if (typeof decoded === "undefined")
|
|
48054
|
+
if (typeof decoded === "undefined") {
|
|
48055
|
+
shouldCacheJsonLd = false;
|
|
48056
|
+
continue;
|
|
48057
|
+
}
|
|
48058
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
46783
48059
|
_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.push(decoded);
|
|
46784
48060
|
}
|
|
46785
48061
|
instance.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = _3bgkPwJanyTCoVFM9ovRcus8tKkU_liked;
|
|
@@ -46796,7 +48072,11 @@ var Service = class Service extends Object$1 {
|
|
|
46796
48072
|
...options,
|
|
46797
48073
|
baseUrl: options.baseUrl
|
|
46798
48074
|
});
|
|
46799
|
-
if (typeof decoded === "undefined")
|
|
48075
|
+
if (typeof decoded === "undefined") {
|
|
48076
|
+
shouldCacheJsonLd = false;
|
|
48077
|
+
continue;
|
|
48078
|
+
}
|
|
48079
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
46800
48080
|
_4N1vBJzXDf8NbBumeECQMFvKetja_featured.push(decoded);
|
|
46801
48081
|
}
|
|
46802
48082
|
instance.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured = _4N1vBJzXDf8NbBumeECQMFvKetja_featured;
|
|
@@ -46813,7 +48093,11 @@ var Service = class Service extends Object$1 {
|
|
|
46813
48093
|
...options,
|
|
46814
48094
|
baseUrl: options.baseUrl
|
|
46815
48095
|
});
|
|
46816
|
-
if (typeof decoded === "undefined")
|
|
48096
|
+
if (typeof decoded === "undefined") {
|
|
48097
|
+
shouldCacheJsonLd = false;
|
|
48098
|
+
continue;
|
|
48099
|
+
}
|
|
48100
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
46817
48101
|
_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.push(decoded);
|
|
46818
48102
|
}
|
|
46819
48103
|
instance.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = _2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags;
|
|
@@ -46830,7 +48114,11 @@ var Service = class Service extends Object$1 {
|
|
|
46830
48114
|
...options,
|
|
46831
48115
|
baseUrl: options.baseUrl
|
|
46832
48116
|
});
|
|
46833
|
-
if (typeof decoded === "undefined")
|
|
48117
|
+
if (typeof decoded === "undefined") {
|
|
48118
|
+
shouldCacheJsonLd = false;
|
|
48119
|
+
continue;
|
|
48120
|
+
}
|
|
48121
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
46834
48122
|
_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.push(decoded);
|
|
46835
48123
|
}
|
|
46836
48124
|
instance.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = _3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams;
|
|
@@ -46842,7 +48130,11 @@ var Service = class Service extends Object$1 {
|
|
|
46842
48130
|
...options,
|
|
46843
48131
|
baseUrl: options.baseUrl
|
|
46844
48132
|
});
|
|
46845
|
-
if (typeof decoded === "undefined")
|
|
48133
|
+
if (typeof decoded === "undefined") {
|
|
48134
|
+
shouldCacheJsonLd = false;
|
|
48135
|
+
continue;
|
|
48136
|
+
}
|
|
48137
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
46846
48138
|
_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.push(decoded);
|
|
46847
48139
|
}
|
|
46848
48140
|
instance.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints;
|
|
@@ -46851,7 +48143,11 @@ var Service = class Service extends Object$1 {
|
|
|
46851
48143
|
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) {
|
|
46852
48144
|
if (v == null) continue;
|
|
46853
48145
|
const decoded = v["@value"];
|
|
46854
|
-
if (typeof decoded === "undefined")
|
|
48146
|
+
if (typeof decoded === "undefined") {
|
|
48147
|
+
shouldCacheJsonLd = false;
|
|
48148
|
+
continue;
|
|
48149
|
+
}
|
|
48150
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
46855
48151
|
_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable.push(decoded);
|
|
46856
48152
|
}
|
|
46857
48153
|
instance.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = _gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable;
|
|
@@ -46860,7 +48156,11 @@ var Service = class Service extends Object$1 {
|
|
|
46860
48156
|
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) {
|
|
46861
48157
|
if (v == null) continue;
|
|
46862
48158
|
const decoded = v["@value"];
|
|
46863
|
-
if (typeof decoded === "undefined")
|
|
48159
|
+
if (typeof decoded === "undefined") {
|
|
48160
|
+
shouldCacheJsonLd = false;
|
|
48161
|
+
continue;
|
|
48162
|
+
}
|
|
48163
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
46864
48164
|
_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended.push(decoded);
|
|
46865
48165
|
}
|
|
46866
48166
|
instance.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = _2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended;
|
|
@@ -46869,7 +48169,11 @@ var Service = class Service extends Object$1 {
|
|
|
46869
48169
|
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) {
|
|
46870
48170
|
if (v == null) continue;
|
|
46871
48171
|
const decoded = v["@value"];
|
|
46872
|
-
if (typeof decoded === "undefined")
|
|
48172
|
+
if (typeof decoded === "undefined") {
|
|
48173
|
+
shouldCacheJsonLd = false;
|
|
48174
|
+
continue;
|
|
48175
|
+
}
|
|
48176
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
46873
48177
|
_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial.push(decoded);
|
|
46874
48178
|
}
|
|
46875
48179
|
instance.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = _79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial;
|
|
@@ -46878,7 +48182,11 @@ var Service = class Service extends Object$1 {
|
|
|
46878
48182
|
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) {
|
|
46879
48183
|
if (v == null) continue;
|
|
46880
48184
|
const decoded = v["@value"];
|
|
46881
|
-
if (typeof decoded === "undefined")
|
|
48185
|
+
if (typeof decoded === "undefined") {
|
|
48186
|
+
shouldCacheJsonLd = false;
|
|
48187
|
+
continue;
|
|
48188
|
+
}
|
|
48189
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
46882
48190
|
_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable.push(decoded);
|
|
46883
48191
|
}
|
|
46884
48192
|
instance.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable;
|
|
@@ -46907,7 +48215,11 @@ var Service = class Service extends Object$1 {
|
|
|
46907
48215
|
...options,
|
|
46908
48216
|
baseUrl: options.baseUrl
|
|
46909
48217
|
}) : void 0;
|
|
46910
|
-
if (typeof decoded === "undefined")
|
|
48218
|
+
if (typeof decoded === "undefined") {
|
|
48219
|
+
shouldCacheJsonLd = false;
|
|
48220
|
+
continue;
|
|
48221
|
+
}
|
|
48222
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
46911
48223
|
_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.push(decoded);
|
|
46912
48224
|
}
|
|
46913
48225
|
instance.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = _2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo;
|
|
@@ -46936,7 +48248,11 @@ var Service = class Service extends Object$1 {
|
|
|
46936
48248
|
...options,
|
|
46937
48249
|
baseUrl: options.baseUrl
|
|
46938
48250
|
}) : void 0;
|
|
46939
|
-
if (typeof decoded === "undefined")
|
|
48251
|
+
if (typeof decoded === "undefined") {
|
|
48252
|
+
shouldCacheJsonLd = false;
|
|
48253
|
+
continue;
|
|
48254
|
+
}
|
|
48255
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
46940
48256
|
_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.push(decoded);
|
|
46941
48257
|
}
|
|
46942
48258
|
instance.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = _3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs;
|
|
@@ -46953,7 +48269,11 @@ var Service = class Service extends Object$1 {
|
|
|
46953
48269
|
...options,
|
|
46954
48270
|
baseUrl: options.baseUrl
|
|
46955
48271
|
});
|
|
46956
|
-
if (typeof decoded === "undefined")
|
|
48272
|
+
if (typeof decoded === "undefined") {
|
|
48273
|
+
shouldCacheJsonLd = false;
|
|
48274
|
+
continue;
|
|
48275
|
+
}
|
|
48276
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
46957
48277
|
_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.push(decoded);
|
|
46958
48278
|
}
|
|
46959
48279
|
instance.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = _4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service;
|
|
@@ -46962,7 +48282,11 @@ var Service = class Service extends Object$1 {
|
|
|
46962
48282
|
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) {
|
|
46963
48283
|
if (v == null) continue;
|
|
46964
48284
|
const decoded = v["@value"];
|
|
46965
|
-
if (typeof decoded === "undefined")
|
|
48285
|
+
if (typeof decoded === "undefined") {
|
|
48286
|
+
shouldCacheJsonLd = false;
|
|
48287
|
+
continue;
|
|
48288
|
+
}
|
|
48289
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
46966
48290
|
_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage.push(decoded);
|
|
46967
48291
|
}
|
|
46968
48292
|
instance.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage;
|
|
@@ -46971,11 +48295,16 @@ var Service = class Service extends Object$1 {
|
|
|
46971
48295
|
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) {
|
|
46972
48296
|
if (v == null) continue;
|
|
46973
48297
|
const decoded = v["@value"];
|
|
46974
|
-
if (typeof decoded === "undefined")
|
|
48298
|
+
if (typeof decoded === "undefined") {
|
|
48299
|
+
shouldCacheJsonLd = false;
|
|
48300
|
+
continue;
|
|
48301
|
+
}
|
|
48302
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
46975
48303
|
_2xEU4QtkC53RAun67T81Egqt9vmL_isCat.push(decoded);
|
|
46976
48304
|
}
|
|
46977
48305
|
instance.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = _2xEU4QtkC53RAun67T81Egqt9vmL_isCat;
|
|
46978
|
-
|
|
48306
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
48307
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
46979
48308
|
instance._cachedJsonLd = structuredClone(json);
|
|
46980
48309
|
} catch {
|
|
46981
48310
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -47117,6 +48446,7 @@ var Source = class {
|
|
|
47117
48446
|
#warning;
|
|
47118
48447
|
#cachedJsonLd;
|
|
47119
48448
|
#_baseUrl;
|
|
48449
|
+
#shouldCacheJsonLd = true;
|
|
47120
48450
|
id;
|
|
47121
48451
|
get _documentLoader() {
|
|
47122
48452
|
return this.#documentLoader;
|
|
@@ -47139,6 +48469,17 @@ var Source = class {
|
|
|
47139
48469
|
get _baseUrl() {
|
|
47140
48470
|
return this.#_baseUrl;
|
|
47141
48471
|
}
|
|
48472
|
+
get _shouldCacheJsonLd() {
|
|
48473
|
+
return this.#shouldCacheJsonLd;
|
|
48474
|
+
}
|
|
48475
|
+
set _shouldCacheJsonLd(value) {
|
|
48476
|
+
this.#shouldCacheJsonLd = value;
|
|
48477
|
+
}
|
|
48478
|
+
static _shouldCacheDecodedJsonLd(value) {
|
|
48479
|
+
if (value == null || typeof value !== "object") return true;
|
|
48480
|
+
if (!("_shouldCacheJsonLd" in value)) return true;
|
|
48481
|
+
return value._shouldCacheJsonLd;
|
|
48482
|
+
}
|
|
47142
48483
|
/**
|
|
47143
48484
|
* The type URI of {@link Source}: `https://www.w3.org/ns/activitystreams#Source`.
|
|
47144
48485
|
*/
|
|
@@ -47337,12 +48678,17 @@ var Source = class {
|
|
|
47337
48678
|
if (!values["@type"].includes("https://www.w3.org/ns/activitystreams#Source")) throw new TypeError("Invalid type: " + values["@type"]);
|
|
47338
48679
|
}
|
|
47339
48680
|
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);
|
|
48681
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
47340
48682
|
const _4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content = [];
|
|
47341
48683
|
let _4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content__array = values["https://www.w3.org/ns/activitystreams#content"];
|
|
47342
48684
|
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) {
|
|
47343
48685
|
if (v == null) continue;
|
|
47344
|
-
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(v["@value"], v["@language"]) : void 0;
|
|
47345
|
-
if (typeof decoded === "undefined")
|
|
48686
|
+
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(v["@value"], v["@language"]) : void 0;
|
|
48687
|
+
if (typeof decoded === "undefined") {
|
|
48688
|
+
shouldCacheJsonLd = false;
|
|
48689
|
+
continue;
|
|
48690
|
+
}
|
|
48691
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
47346
48692
|
_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content.push(decoded);
|
|
47347
48693
|
}
|
|
47348
48694
|
instance.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content = _4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content;
|
|
@@ -47351,11 +48697,16 @@ var Source = class {
|
|
|
47351
48697
|
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) {
|
|
47352
48698
|
if (v == null) continue;
|
|
47353
48699
|
const decoded = v["@value"];
|
|
47354
|
-
if (typeof decoded === "undefined")
|
|
48700
|
+
if (typeof decoded === "undefined") {
|
|
48701
|
+
shouldCacheJsonLd = false;
|
|
48702
|
+
continue;
|
|
48703
|
+
}
|
|
48704
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
47355
48705
|
_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType.push(decoded);
|
|
47356
48706
|
}
|
|
47357
48707
|
instance.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType = _3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType;
|
|
47358
|
-
|
|
48708
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
48709
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
47359
48710
|
instance._cachedJsonLd = structuredClone(json);
|
|
47360
48711
|
} catch {
|
|
47361
48712
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -47521,7 +48872,9 @@ var TentativeAccept = class TentativeAccept extends Accept {
|
|
|
47521
48872
|
_fromSubclass: true
|
|
47522
48873
|
});
|
|
47523
48874
|
if (!(instance instanceof TentativeAccept)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
47524
|
-
|
|
48875
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
48876
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
48877
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
47525
48878
|
instance._cachedJsonLd = structuredClone(json);
|
|
47526
48879
|
} catch {
|
|
47527
48880
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -47671,7 +49024,9 @@ var TentativeReject = class TentativeReject extends Reject {
|
|
|
47671
49024
|
_fromSubclass: true
|
|
47672
49025
|
});
|
|
47673
49026
|
if (!(instance instanceof TentativeReject)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
47674
|
-
|
|
49027
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
49028
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
49029
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
47675
49030
|
instance._cachedJsonLd = structuredClone(json);
|
|
47676
49031
|
} catch {
|
|
47677
49032
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -47910,6 +49265,7 @@ var Tombstone = class Tombstone extends Object$1 {
|
|
|
47910
49265
|
_fromSubclass: true
|
|
47911
49266
|
});
|
|
47912
49267
|
if (!(instance instanceof Tombstone)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
49268
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
47913
49269
|
const _Pn8kdUztYSt4nyoAkVsMcQaLo9U_formerType = [];
|
|
47914
49270
|
let _Pn8kdUztYSt4nyoAkVsMcQaLo9U_formerType__array = values["https://www.w3.org/ns/activitystreams#formerType"];
|
|
47915
49271
|
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) {
|
|
@@ -47920,7 +49276,11 @@ var Tombstone = class Tombstone extends Object$1 {
|
|
|
47920
49276
|
if (entityType == null) getLogger(["fedify", "vocab"]).warn("Ignoring unknown vocabulary entity type reference: {typeId}", { typeId: v["@id"] });
|
|
47921
49277
|
return entityType;
|
|
47922
49278
|
})();
|
|
47923
|
-
if (typeof decoded === "undefined")
|
|
49279
|
+
if (typeof decoded === "undefined") {
|
|
49280
|
+
shouldCacheJsonLd = false;
|
|
49281
|
+
continue;
|
|
49282
|
+
}
|
|
49283
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
47924
49284
|
_Pn8kdUztYSt4nyoAkVsMcQaLo9U_formerType.push(decoded);
|
|
47925
49285
|
}
|
|
47926
49286
|
instance.#_Pn8kdUztYSt4nyoAkVsMcQaLo9U_formerType = _Pn8kdUztYSt4nyoAkVsMcQaLo9U_formerType;
|
|
@@ -47929,11 +49289,16 @@ var Tombstone = class Tombstone extends Object$1 {
|
|
|
47929
49289
|
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) {
|
|
47930
49290
|
if (v == null) continue;
|
|
47931
49291
|
const decoded = Temporal.Instant.from(v["@value"].substring(19).match(/[Z+-]/) ? v["@value"] : v["@value"] + "Z");
|
|
47932
|
-
if (typeof decoded === "undefined")
|
|
49292
|
+
if (typeof decoded === "undefined") {
|
|
49293
|
+
shouldCacheJsonLd = false;
|
|
49294
|
+
continue;
|
|
49295
|
+
}
|
|
49296
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
47933
49297
|
_8g8g4LiVMhFTXskuDEqx4ascxUr_deleted.push(decoded);
|
|
47934
49298
|
}
|
|
47935
49299
|
instance.#_8g8g4LiVMhFTXskuDEqx4ascxUr_deleted = _8g8g4LiVMhFTXskuDEqx4ascxUr_deleted;
|
|
47936
|
-
|
|
49300
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
49301
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
47937
49302
|
instance._cachedJsonLd = structuredClone(json);
|
|
47938
49303
|
} catch {
|
|
47939
49304
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -48097,7 +49462,9 @@ var Travel = class Travel extends IntransitiveActivity {
|
|
|
48097
49462
|
_fromSubclass: true
|
|
48098
49463
|
});
|
|
48099
49464
|
if (!(instance instanceof Travel)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
48100
|
-
|
|
49465
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
49466
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
49467
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
48101
49468
|
instance._cachedJsonLd = structuredClone(json);
|
|
48102
49469
|
} catch {
|
|
48103
49470
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -48261,7 +49628,9 @@ var Undo = class Undo extends Activity {
|
|
|
48261
49628
|
_fromSubclass: true
|
|
48262
49629
|
});
|
|
48263
49630
|
if (!(instance instanceof Undo)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
48264
|
-
|
|
49631
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
49632
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
49633
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
48265
49634
|
instance._cachedJsonLd = structuredClone(json);
|
|
48266
49635
|
} catch {
|
|
48267
49636
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -48473,7 +49842,9 @@ var Update = class Update extends Activity {
|
|
|
48473
49842
|
_fromSubclass: true
|
|
48474
49843
|
});
|
|
48475
49844
|
if (!(instance instanceof Update)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
48476
|
-
|
|
49845
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
49846
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
49847
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
48477
49848
|
instance._cachedJsonLd = structuredClone(json);
|
|
48478
49849
|
} catch {
|
|
48479
49850
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -48636,7 +50007,9 @@ var Video = class Video extends Document {
|
|
|
48636
50007
|
_fromSubclass: true
|
|
48637
50008
|
});
|
|
48638
50009
|
if (!(instance instanceof Video)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
48639
|
-
|
|
50010
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
50011
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
50012
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
48640
50013
|
instance._cachedJsonLd = structuredClone(json);
|
|
48641
50014
|
} catch {
|
|
48642
50015
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -48785,7 +50158,9 @@ var View = class View extends Activity {
|
|
|
48785
50158
|
_fromSubclass: true
|
|
48786
50159
|
});
|
|
48787
50160
|
if (!(instance instanceof View)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
48788
|
-
|
|
50161
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
50162
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
50163
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
48789
50164
|
instance._cachedJsonLd = structuredClone(json);
|
|
48790
50165
|
} catch {
|
|
48791
50166
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -48959,4 +50334,4 @@ function getEntityTypeById(id) {
|
|
|
48959
50334
|
return entityTypeIds.get(typeof id === "string" ? id : id?.href);
|
|
48960
50335
|
}
|
|
48961
50336
|
//#endregion
|
|
48962
|
-
export {
|
|
50337
|
+
export { Question as A, __commonJSMin as B, Offer as C, Place as D, Person as E, Source as F, __toESM as H, Tombstone as I, getEntityTypeById as L, QuoteRequest as M, Reject as N, PropertyValue as O, Service as P, isEntityType as R, Object$1 as S, Organization as T, __exportAll as V, InteractionPolicy as _, Application as a, Measure as b, Create as c, Document as d, Endpoints as f, Intent as g, Hashtag as h, Announce as i, QuoteAuthorization as j, Proposal as k, CryptographicKey as l, Group as m, Activity as n, Collection as o, Follow as p, Agreement as r, Commitment as s, Accept as t, Delete as u, InteractionRule as v, OrderedCollectionPage as w, Note as x, Link as y, vocab_exports as z };
|