@fedify/vocab 2.0.22-dev.1440 → 2.0.22-dev.1482
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 +1165 -384
- package/dist/mod.d.cts +27 -0
- package/dist/mod.d.ts +27 -0
- package/dist/mod.js +1165 -384
- package/dist-tests/actor.test.mjs +2 -2
- package/dist-tests/{deno-BTopG74J.mjs → deno-CcGLQmUF.mjs} +2 -2
- package/dist-tests/lookup.test.mjs +2 -2
- package/dist-tests/type.test.mjs +1 -1
- package/dist-tests/{vocab-D1CEMtLN.mjs → vocab-ClsmZIAo.mjs} +1165 -384
- package/dist-tests/vocab.test.mjs +31 -1
- package/package.json +4 -4
- package/src/vocab.test.ts +36 -0
|
@@ -106,6 +106,15 @@ var vocab_exports = /* @__PURE__ */ __exportAll({
|
|
|
106
106
|
Video: () => Video,
|
|
107
107
|
View: () => View
|
|
108
108
|
});
|
|
109
|
+
function isValidLanguageTag(language) {
|
|
110
|
+
try {
|
|
111
|
+
new Intl.Locale(language);
|
|
112
|
+
return true;
|
|
113
|
+
} catch (error) {
|
|
114
|
+
if (error instanceof RangeError) return false;
|
|
115
|
+
throw error;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
109
118
|
/** Describes an object of any kind. The Object type serves as the base type for
|
|
110
119
|
* most of the other kinds of objects defined in the Activity Vocabulary,
|
|
111
120
|
* including other Core types such as {@link Activity},
|
|
@@ -118,6 +127,7 @@ var Object$1 = class Object$1 {
|
|
|
118
127
|
#tracerProvider;
|
|
119
128
|
#warning;
|
|
120
129
|
#cachedJsonLd;
|
|
130
|
+
#shouldCacheJsonLd = true;
|
|
121
131
|
id;
|
|
122
132
|
get _documentLoader() {
|
|
123
133
|
return this.#documentLoader;
|
|
@@ -137,6 +147,17 @@ var Object$1 = class Object$1 {
|
|
|
137
147
|
set _cachedJsonLd(value) {
|
|
138
148
|
this.#cachedJsonLd = value;
|
|
139
149
|
}
|
|
150
|
+
get _shouldCacheJsonLd() {
|
|
151
|
+
return this.#shouldCacheJsonLd;
|
|
152
|
+
}
|
|
153
|
+
set _shouldCacheJsonLd(value) {
|
|
154
|
+
this.#shouldCacheJsonLd = value;
|
|
155
|
+
}
|
|
156
|
+
static _shouldCacheDecodedJsonLd(value) {
|
|
157
|
+
if (value == null || typeof value !== "object") return true;
|
|
158
|
+
if (!("_shouldCacheJsonLd" in value)) return true;
|
|
159
|
+
return value._shouldCacheJsonLd;
|
|
160
|
+
}
|
|
140
161
|
/**
|
|
141
162
|
* The type URI of {@link Object}: `https://www.w3.org/ns/activitystreams#Object`.
|
|
142
163
|
*/
|
|
@@ -4654,6 +4675,7 @@ var Object$1 = class Object$1 {
|
|
|
4654
4675
|
if (!values["@type"].includes("https://www.w3.org/ns/activitystreams#Object")) throw new TypeError("Invalid type: " + values["@type"]);
|
|
4655
4676
|
}
|
|
4656
4677
|
const instance = new this({ id: "@id" in values ? new URL(values["@id"]) : void 0 }, options);
|
|
4678
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
4657
4679
|
const _49BipA5dq9eoH8LX8xdsVumveTca_attachment = [];
|
|
4658
4680
|
let _49BipA5dq9eoH8LX8xdsVumveTca_attachment__array = values["https://www.w3.org/ns/activitystreams#attachment"];
|
|
4659
4681
|
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) {
|
|
@@ -4732,7 +4754,11 @@ var Object$1 = class Object$1 {
|
|
|
4732
4754
|
...options,
|
|
4733
4755
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
4734
4756
|
}) : void 0;
|
|
4735
|
-
if (typeof decoded === "undefined")
|
|
4757
|
+
if (typeof decoded === "undefined") {
|
|
4758
|
+
shouldCacheJsonLd = false;
|
|
4759
|
+
continue;
|
|
4760
|
+
}
|
|
4761
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
4736
4762
|
_49BipA5dq9eoH8LX8xdsVumveTca_attachment.push(decoded);
|
|
4737
4763
|
}
|
|
4738
4764
|
instance.#_49BipA5dq9eoH8LX8xdsVumveTca_attachment = _49BipA5dq9eoH8LX8xdsVumveTca_attachment;
|
|
@@ -4760,7 +4786,11 @@ var Object$1 = class Object$1 {
|
|
|
4760
4786
|
...options,
|
|
4761
4787
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
4762
4788
|
}) : void 0;
|
|
4763
|
-
if (typeof decoded === "undefined")
|
|
4789
|
+
if (typeof decoded === "undefined") {
|
|
4790
|
+
shouldCacheJsonLd = false;
|
|
4791
|
+
continue;
|
|
4792
|
+
}
|
|
4793
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
4764
4794
|
_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo.push(decoded);
|
|
4765
4795
|
}
|
|
4766
4796
|
instance.#_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo = _42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo;
|
|
@@ -4772,18 +4802,24 @@ var Object$1 = class Object$1 {
|
|
|
4772
4802
|
_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
4773
4803
|
continue;
|
|
4774
4804
|
}
|
|
4775
|
-
|
|
4805
|
+
const decoded = await Object$1.fromJsonLd(v, {
|
|
4776
4806
|
...options,
|
|
4777
4807
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
4778
|
-
})
|
|
4808
|
+
});
|
|
4809
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
4810
|
+
_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience.push(decoded);
|
|
4779
4811
|
}
|
|
4780
4812
|
instance.#_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience = _3ocC3VVi88cEd5sPWL8djkZsvTN6_audience;
|
|
4781
4813
|
const _4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content = [];
|
|
4782
4814
|
let _4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content__array = values["https://www.w3.org/ns/activitystreams#content"];
|
|
4783
4815
|
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) {
|
|
4784
4816
|
if (v == null) continue;
|
|
4785
|
-
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;
|
|
4786
|
-
if (typeof decoded === "undefined")
|
|
4817
|
+
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;
|
|
4818
|
+
if (typeof decoded === "undefined") {
|
|
4819
|
+
shouldCacheJsonLd = false;
|
|
4820
|
+
continue;
|
|
4821
|
+
}
|
|
4822
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
4787
4823
|
_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content.push(decoded);
|
|
4788
4824
|
}
|
|
4789
4825
|
instance.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content = _4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content;
|
|
@@ -4862,7 +4898,11 @@ var Object$1 = class Object$1 {
|
|
|
4862
4898
|
...options,
|
|
4863
4899
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
4864
4900
|
}) : void 0;
|
|
4865
|
-
if (typeof decoded === "undefined")
|
|
4901
|
+
if (typeof decoded === "undefined") {
|
|
4902
|
+
shouldCacheJsonLd = false;
|
|
4903
|
+
continue;
|
|
4904
|
+
}
|
|
4905
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
4866
4906
|
_3mhZzGXSpQ431mBSz2kvych22v4e_context.push(decoded);
|
|
4867
4907
|
}
|
|
4868
4908
|
instance.#_3mhZzGXSpQ431mBSz2kvych22v4e_context = _3mhZzGXSpQ431mBSz2kvych22v4e_context;
|
|
@@ -4870,8 +4910,12 @@ var Object$1 = class Object$1 {
|
|
|
4870
4910
|
let _4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name__array = values["https://www.w3.org/ns/activitystreams#name"];
|
|
4871
4911
|
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) {
|
|
4872
4912
|
if (v == null) continue;
|
|
4873
|
-
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;
|
|
4874
|
-
if (typeof decoded === "undefined")
|
|
4913
|
+
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;
|
|
4914
|
+
if (typeof decoded === "undefined") {
|
|
4915
|
+
shouldCacheJsonLd = false;
|
|
4916
|
+
continue;
|
|
4917
|
+
}
|
|
4918
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
4875
4919
|
_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name.push(decoded);
|
|
4876
4920
|
}
|
|
4877
4921
|
instance.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = _4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name;
|
|
@@ -4879,7 +4923,9 @@ var Object$1 = class Object$1 {
|
|
|
4879
4923
|
let _219RwDanjScTv5tYCjwGZVCM7KZ9_endTime__array = values["https://www.w3.org/ns/activitystreams#endTime"];
|
|
4880
4924
|
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) {
|
|
4881
4925
|
if (v == null) continue;
|
|
4882
|
-
|
|
4926
|
+
const decoded = Temporal.Instant.from(v["@value"].substring(19).match(/[Z+-]/) ? v["@value"] : v["@value"] + "Z");
|
|
4927
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
4928
|
+
_219RwDanjScTv5tYCjwGZVCM7KZ9_endTime.push(decoded);
|
|
4883
4929
|
}
|
|
4884
4930
|
instance.#_219RwDanjScTv5tYCjwGZVCM7KZ9_endTime = _219RwDanjScTv5tYCjwGZVCM7KZ9_endTime;
|
|
4885
4931
|
const _86xFhmgBapoMvYqjbjRuDPayTrS_generator = [];
|
|
@@ -4957,7 +5003,11 @@ var Object$1 = class Object$1 {
|
|
|
4957
5003
|
...options,
|
|
4958
5004
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
4959
5005
|
}) : void 0;
|
|
4960
|
-
if (typeof decoded === "undefined")
|
|
5006
|
+
if (typeof decoded === "undefined") {
|
|
5007
|
+
shouldCacheJsonLd = false;
|
|
5008
|
+
continue;
|
|
5009
|
+
}
|
|
5010
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
4961
5011
|
_86xFhmgBapoMvYqjbjRuDPayTrS_generator.push(decoded);
|
|
4962
5012
|
}
|
|
4963
5013
|
instance.#_86xFhmgBapoMvYqjbjRuDPayTrS_generator = _86xFhmgBapoMvYqjbjRuDPayTrS_generator;
|
|
@@ -4969,10 +5019,12 @@ var Object$1 = class Object$1 {
|
|
|
4969
5019
|
_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
4970
5020
|
continue;
|
|
4971
5021
|
}
|
|
4972
|
-
|
|
5022
|
+
const decoded = await Image.fromJsonLd(v, {
|
|
4973
5023
|
...options,
|
|
4974
5024
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
4975
|
-
})
|
|
5025
|
+
});
|
|
5026
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
5027
|
+
_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon.push(decoded);
|
|
4976
5028
|
}
|
|
4977
5029
|
instance.#_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon = _33CjRLy5ujtsUrwRSCrsggvGdKuR_icon;
|
|
4978
5030
|
const _3dXrUdkARxwyJLtJcYi1AJ92H41U_image = [];
|
|
@@ -4983,10 +5035,12 @@ var Object$1 = class Object$1 {
|
|
|
4983
5035
|
_3dXrUdkARxwyJLtJcYi1AJ92H41U_image.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
4984
5036
|
continue;
|
|
4985
5037
|
}
|
|
4986
|
-
|
|
5038
|
+
const decoded = await Image.fromJsonLd(v, {
|
|
4987
5039
|
...options,
|
|
4988
5040
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
4989
|
-
})
|
|
5041
|
+
});
|
|
5042
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
5043
|
+
_3dXrUdkARxwyJLtJcYi1AJ92H41U_image.push(decoded);
|
|
4990
5044
|
}
|
|
4991
5045
|
instance.#_3dXrUdkARxwyJLtJcYi1AJ92H41U_image = _3dXrUdkARxwyJLtJcYi1AJ92H41U_image;
|
|
4992
5046
|
const _3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo = [];
|
|
@@ -5064,7 +5118,11 @@ var Object$1 = class Object$1 {
|
|
|
5064
5118
|
...options,
|
|
5065
5119
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
5066
5120
|
}) : void 0;
|
|
5067
|
-
if (typeof decoded === "undefined")
|
|
5121
|
+
if (typeof decoded === "undefined") {
|
|
5122
|
+
shouldCacheJsonLd = false;
|
|
5123
|
+
continue;
|
|
5124
|
+
}
|
|
5125
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
5068
5126
|
_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo.push(decoded);
|
|
5069
5127
|
}
|
|
5070
5128
|
instance.#_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo = _3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo;
|
|
@@ -5143,7 +5201,11 @@ var Object$1 = class Object$1 {
|
|
|
5143
5201
|
...options,
|
|
5144
5202
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
5145
5203
|
}) : void 0;
|
|
5146
|
-
if (typeof decoded === "undefined")
|
|
5204
|
+
if (typeof decoded === "undefined") {
|
|
5205
|
+
shouldCacheJsonLd = false;
|
|
5206
|
+
continue;
|
|
5207
|
+
}
|
|
5208
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
5147
5209
|
_31k5MUZJsnsPNg8dQQJieWaXTFnR_location.push(decoded);
|
|
5148
5210
|
}
|
|
5149
5211
|
instance.#_31k5MUZJsnsPNg8dQQJieWaXTFnR_location = _31k5MUZJsnsPNg8dQQJieWaXTFnR_location;
|
|
@@ -5222,7 +5284,11 @@ var Object$1 = class Object$1 {
|
|
|
5222
5284
|
...options,
|
|
5223
5285
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
5224
5286
|
}) : void 0;
|
|
5225
|
-
if (typeof decoded === "undefined")
|
|
5287
|
+
if (typeof decoded === "undefined") {
|
|
5288
|
+
shouldCacheJsonLd = false;
|
|
5289
|
+
continue;
|
|
5290
|
+
}
|
|
5291
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
5226
5292
|
_gCVTegXxWWCw6wWRxa1QF65zusg_preview.push(decoded);
|
|
5227
5293
|
}
|
|
5228
5294
|
instance.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview = _gCVTegXxWWCw6wWRxa1QF65zusg_preview;
|
|
@@ -5230,7 +5296,9 @@ var Object$1 = class Object$1 {
|
|
|
5230
5296
|
let _5e258TDXtuhaFRPZiGoDfEpjdMr_published__array = values["https://www.w3.org/ns/activitystreams#published"];
|
|
5231
5297
|
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) {
|
|
5232
5298
|
if (v == null) continue;
|
|
5233
|
-
|
|
5299
|
+
const decoded = Temporal.Instant.from(v["@value"].substring(19).match(/[Z+-]/) ? v["@value"] : v["@value"] + "Z");
|
|
5300
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
5301
|
+
_5e258TDXtuhaFRPZiGoDfEpjdMr_published.push(decoded);
|
|
5234
5302
|
}
|
|
5235
5303
|
instance.#_5e258TDXtuhaFRPZiGoDfEpjdMr_published = _5e258TDXtuhaFRPZiGoDfEpjdMr_published;
|
|
5236
5304
|
const _7UpwM3JWcXhADcscukEehBorf6k_replies = [];
|
|
@@ -5241,10 +5309,12 @@ var Object$1 = class Object$1 {
|
|
|
5241
5309
|
_7UpwM3JWcXhADcscukEehBorf6k_replies.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
5242
5310
|
continue;
|
|
5243
5311
|
}
|
|
5244
|
-
|
|
5312
|
+
const decoded = await Collection.fromJsonLd(v, {
|
|
5245
5313
|
...options,
|
|
5246
5314
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
5247
|
-
})
|
|
5315
|
+
});
|
|
5316
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
5317
|
+
_7UpwM3JWcXhADcscukEehBorf6k_replies.push(decoded);
|
|
5248
5318
|
}
|
|
5249
5319
|
instance.#_7UpwM3JWcXhADcscukEehBorf6k_replies = _7UpwM3JWcXhADcscukEehBorf6k_replies;
|
|
5250
5320
|
const _3kAfck9PcEYt2L7xug5y99YPbANs_shares = [];
|
|
@@ -5255,10 +5325,12 @@ var Object$1 = class Object$1 {
|
|
|
5255
5325
|
_3kAfck9PcEYt2L7xug5y99YPbANs_shares.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
5256
5326
|
continue;
|
|
5257
5327
|
}
|
|
5258
|
-
|
|
5328
|
+
const decoded = await Collection.fromJsonLd(v, {
|
|
5259
5329
|
...options,
|
|
5260
5330
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
5261
|
-
})
|
|
5331
|
+
});
|
|
5332
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
5333
|
+
_3kAfck9PcEYt2L7xug5y99YPbANs_shares.push(decoded);
|
|
5262
5334
|
}
|
|
5263
5335
|
instance.#_3kAfck9PcEYt2L7xug5y99YPbANs_shares = _3kAfck9PcEYt2L7xug5y99YPbANs_shares;
|
|
5264
5336
|
const _S3ceDnpMdzoTRCccB9FkJWrEzYW_likes = [];
|
|
@@ -5269,10 +5341,12 @@ var Object$1 = class Object$1 {
|
|
|
5269
5341
|
_S3ceDnpMdzoTRCccB9FkJWrEzYW_likes.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
5270
5342
|
continue;
|
|
5271
5343
|
}
|
|
5272
|
-
|
|
5344
|
+
const decoded = await Collection.fromJsonLd(v, {
|
|
5273
5345
|
...options,
|
|
5274
5346
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
5275
|
-
})
|
|
5347
|
+
});
|
|
5348
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
5349
|
+
_S3ceDnpMdzoTRCccB9FkJWrEzYW_likes.push(decoded);
|
|
5276
5350
|
}
|
|
5277
5351
|
instance.#_S3ceDnpMdzoTRCccB9FkJWrEzYW_likes = _S3ceDnpMdzoTRCccB9FkJWrEzYW_likes;
|
|
5278
5352
|
const _kMatyyNAuxoTD8GQMBfA5ogThMR_emojiReactions = [];
|
|
@@ -5283,25 +5357,33 @@ var Object$1 = class Object$1 {
|
|
|
5283
5357
|
_kMatyyNAuxoTD8GQMBfA5ogThMR_emojiReactions.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
5284
5358
|
continue;
|
|
5285
5359
|
}
|
|
5286
|
-
|
|
5360
|
+
const decoded = await Collection.fromJsonLd(v, {
|
|
5287
5361
|
...options,
|
|
5288
5362
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
5289
|
-
})
|
|
5363
|
+
});
|
|
5364
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
5365
|
+
_kMatyyNAuxoTD8GQMBfA5ogThMR_emojiReactions.push(decoded);
|
|
5290
5366
|
}
|
|
5291
5367
|
instance.#_kMatyyNAuxoTD8GQMBfA5ogThMR_emojiReactions = _kMatyyNAuxoTD8GQMBfA5ogThMR_emojiReactions;
|
|
5292
5368
|
const _2w3Jmue4up8iVDUA51WZqomEF438_startTime = [];
|
|
5293
5369
|
let _2w3Jmue4up8iVDUA51WZqomEF438_startTime__array = values["https://www.w3.org/ns/activitystreams#startTime"];
|
|
5294
5370
|
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) {
|
|
5295
5371
|
if (v == null) continue;
|
|
5296
|
-
|
|
5372
|
+
const decoded = Temporal.Instant.from(v["@value"].substring(19).match(/[Z+-]/) ? v["@value"] : v["@value"] + "Z");
|
|
5373
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
5374
|
+
_2w3Jmue4up8iVDUA51WZqomEF438_startTime.push(decoded);
|
|
5297
5375
|
}
|
|
5298
5376
|
instance.#_2w3Jmue4up8iVDUA51WZqomEF438_startTime = _2w3Jmue4up8iVDUA51WZqomEF438_startTime;
|
|
5299
5377
|
const _4LqirZspQbFWWQEbFcXAxm7tTDN1_summary = [];
|
|
5300
5378
|
let _4LqirZspQbFWWQEbFcXAxm7tTDN1_summary__array = values["https://www.w3.org/ns/activitystreams#summary"];
|
|
5301
5379
|
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) {
|
|
5302
5380
|
if (v == null) continue;
|
|
5303
|
-
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;
|
|
5304
|
-
if (typeof decoded === "undefined")
|
|
5381
|
+
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;
|
|
5382
|
+
if (typeof decoded === "undefined") {
|
|
5383
|
+
shouldCacheJsonLd = false;
|
|
5384
|
+
continue;
|
|
5385
|
+
}
|
|
5386
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
5305
5387
|
_4LqirZspQbFWWQEbFcXAxm7tTDN1_summary.push(decoded);
|
|
5306
5388
|
}
|
|
5307
5389
|
instance.#_4LqirZspQbFWWQEbFcXAxm7tTDN1_summary = _4LqirZspQbFWWQEbFcXAxm7tTDN1_summary;
|
|
@@ -5380,7 +5462,11 @@ var Object$1 = class Object$1 {
|
|
|
5380
5462
|
...options,
|
|
5381
5463
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
5382
5464
|
}) : void 0;
|
|
5383
|
-
if (typeof decoded === "undefined")
|
|
5465
|
+
if (typeof decoded === "undefined") {
|
|
5466
|
+
shouldCacheJsonLd = false;
|
|
5467
|
+
continue;
|
|
5468
|
+
}
|
|
5469
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
5384
5470
|
_5chuqj6s95p5gg2sk1HntGfarRf_tag.push(decoded);
|
|
5385
5471
|
}
|
|
5386
5472
|
instance.#_5chuqj6s95p5gg2sk1HntGfarRf_tag = _5chuqj6s95p5gg2sk1HntGfarRf_tag;
|
|
@@ -5388,7 +5474,9 @@ var Object$1 = class Object$1 {
|
|
|
5388
5474
|
let _385aB7ySixcf5Un6z3VsWmThgCzQ_updated__array = values["https://www.w3.org/ns/activitystreams#updated"];
|
|
5389
5475
|
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) {
|
|
5390
5476
|
if (v == null) continue;
|
|
5391
|
-
|
|
5477
|
+
const decoded = Temporal.Instant.from(v["@value"].substring(19).match(/[Z+-]/) ? v["@value"] : v["@value"] + "Z");
|
|
5478
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
5479
|
+
_385aB7ySixcf5Un6z3VsWmThgCzQ_updated.push(decoded);
|
|
5392
5480
|
}
|
|
5393
5481
|
instance.#_385aB7ySixcf5Un6z3VsWmThgCzQ_updated = _385aB7ySixcf5Un6z3VsWmThgCzQ_updated;
|
|
5394
5482
|
const _2oPEH9MQ3aj8JVwyYuWkqoVwV865_url = [];
|
|
@@ -5403,7 +5491,11 @@ var Object$1 = class Object$1 {
|
|
|
5403
5491
|
...options,
|
|
5404
5492
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
5405
5493
|
}) : void 0;
|
|
5406
|
-
if (typeof decoded === "undefined")
|
|
5494
|
+
if (typeof decoded === "undefined") {
|
|
5495
|
+
shouldCacheJsonLd = false;
|
|
5496
|
+
continue;
|
|
5497
|
+
}
|
|
5498
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
5407
5499
|
_2oPEH9MQ3aj8JVwyYuWkqoVwV865_url.push(decoded);
|
|
5408
5500
|
}
|
|
5409
5501
|
instance.#_2oPEH9MQ3aj8JVwyYuWkqoVwV865_url = _2oPEH9MQ3aj8JVwyYuWkqoVwV865_url;
|
|
@@ -5415,10 +5507,12 @@ var Object$1 = class Object$1 {
|
|
|
5415
5507
|
_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
5416
5508
|
continue;
|
|
5417
5509
|
}
|
|
5418
|
-
|
|
5510
|
+
const decoded = await Object$1.fromJsonLd(v, {
|
|
5419
5511
|
...options,
|
|
5420
5512
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
5421
|
-
})
|
|
5513
|
+
});
|
|
5514
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
5515
|
+
_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to.push(decoded);
|
|
5422
5516
|
}
|
|
5423
5517
|
instance.#_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to = _3hFbw7DTpHhq3cvVhkY8njhcsXbd_to;
|
|
5424
5518
|
const _aLZupjwL8XB7tzdLgCMXdjZ6qej_bto = [];
|
|
@@ -5429,10 +5523,12 @@ var Object$1 = class Object$1 {
|
|
|
5429
5523
|
_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
5430
5524
|
continue;
|
|
5431
5525
|
}
|
|
5432
|
-
|
|
5526
|
+
const decoded = await Object$1.fromJsonLd(v, {
|
|
5433
5527
|
...options,
|
|
5434
5528
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
5435
|
-
})
|
|
5529
|
+
});
|
|
5530
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
5531
|
+
_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto.push(decoded);
|
|
5436
5532
|
}
|
|
5437
5533
|
instance.#_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto = _aLZupjwL8XB7tzdLgCMXdjZ6qej_bto;
|
|
5438
5534
|
const _42a1SvBs24QSLzKcfjCyNTjW5a1g_cc = [];
|
|
@@ -5443,10 +5539,12 @@ var Object$1 = class Object$1 {
|
|
|
5443
5539
|
_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
5444
5540
|
continue;
|
|
5445
5541
|
}
|
|
5446
|
-
|
|
5542
|
+
const decoded = await Object$1.fromJsonLd(v, {
|
|
5447
5543
|
...options,
|
|
5448
5544
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
5449
|
-
})
|
|
5545
|
+
});
|
|
5546
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
5547
|
+
_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc.push(decoded);
|
|
5450
5548
|
}
|
|
5451
5549
|
instance.#_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc = _42a1SvBs24QSLzKcfjCyNTjW5a1g_cc;
|
|
5452
5550
|
const _3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc = [];
|
|
@@ -5457,41 +5555,51 @@ var Object$1 = class Object$1 {
|
|
|
5457
5555
|
_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
5458
5556
|
continue;
|
|
5459
5557
|
}
|
|
5460
|
-
|
|
5558
|
+
const decoded = await Object$1.fromJsonLd(v, {
|
|
5461
5559
|
...options,
|
|
5462
5560
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
5463
|
-
})
|
|
5561
|
+
});
|
|
5562
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
5563
|
+
_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc.push(decoded);
|
|
5464
5564
|
}
|
|
5465
5565
|
instance.#_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc = _3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc;
|
|
5466
5566
|
const _3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType = [];
|
|
5467
5567
|
let _3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType__array = values["https://www.w3.org/ns/activitystreams#mediaType"];
|
|
5468
5568
|
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) {
|
|
5469
5569
|
if (v == null) continue;
|
|
5470
|
-
|
|
5570
|
+
const decoded = v["@value"];
|
|
5571
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
5572
|
+
_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType.push(decoded);
|
|
5471
5573
|
}
|
|
5472
5574
|
instance.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType = _3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType;
|
|
5473
5575
|
const _3bNvLMBN1bCJETiTihM3wvi1B2JX_duration = [];
|
|
5474
5576
|
let _3bNvLMBN1bCJETiTihM3wvi1B2JX_duration__array = values["https://www.w3.org/ns/activitystreams#duration"];
|
|
5475
5577
|
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) {
|
|
5476
5578
|
if (v == null) continue;
|
|
5477
|
-
|
|
5579
|
+
const decoded = Temporal.Duration.from(v["@value"]);
|
|
5580
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
5581
|
+
_3bNvLMBN1bCJETiTihM3wvi1B2JX_duration.push(decoded);
|
|
5478
5582
|
}
|
|
5479
5583
|
instance.#_3bNvLMBN1bCJETiTihM3wvi1B2JX_duration = _3bNvLMBN1bCJETiTihM3wvi1B2JX_duration;
|
|
5480
5584
|
const _u8gdcDTtChQ4tbSQMXc4cYWyum7_sensitive = [];
|
|
5481
5585
|
let _u8gdcDTtChQ4tbSQMXc4cYWyum7_sensitive__array = values["https://www.w3.org/ns/activitystreams#sensitive"];
|
|
5482
5586
|
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) {
|
|
5483
5587
|
if (v == null) continue;
|
|
5484
|
-
|
|
5588
|
+
const decoded = v["@value"];
|
|
5589
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
5590
|
+
_u8gdcDTtChQ4tbSQMXc4cYWyum7_sensitive.push(decoded);
|
|
5485
5591
|
}
|
|
5486
5592
|
instance.#_u8gdcDTtChQ4tbSQMXc4cYWyum7_sensitive = _u8gdcDTtChQ4tbSQMXc4cYWyum7_sensitive;
|
|
5487
5593
|
const _2ZwCFoS787v8y8bXKjMoE6MAbrEB_source = [];
|
|
5488
5594
|
let _2ZwCFoS787v8y8bXKjMoE6MAbrEB_source__array = values["https://www.w3.org/ns/activitystreams#source"];
|
|
5489
5595
|
for (const v of _2ZwCFoS787v8y8bXKjMoE6MAbrEB_source__array == null ? [] : _2ZwCFoS787v8y8bXKjMoE6MAbrEB_source__array.length === 1 && "@list" in _2ZwCFoS787v8y8bXKjMoE6MAbrEB_source__array[0] ? _2ZwCFoS787v8y8bXKjMoE6MAbrEB_source__array[0]["@list"] : _2ZwCFoS787v8y8bXKjMoE6MAbrEB_source__array) {
|
|
5490
5596
|
if (v == null) continue;
|
|
5491
|
-
|
|
5597
|
+
const decoded = await Source.fromJsonLd(v, {
|
|
5492
5598
|
...options,
|
|
5493
5599
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
5494
|
-
})
|
|
5600
|
+
});
|
|
5601
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
5602
|
+
_2ZwCFoS787v8y8bXKjMoE6MAbrEB_source.push(decoded);
|
|
5495
5603
|
}
|
|
5496
5604
|
instance.#_2ZwCFoS787v8y8bXKjMoE6MAbrEB_source = _2ZwCFoS787v8y8bXKjMoE6MAbrEB_source;
|
|
5497
5605
|
const _42rPnotok1ivQ2RNCKNbeFJgx8b8_proof = [];
|
|
@@ -5502,13 +5610,16 @@ var Object$1 = class Object$1 {
|
|
|
5502
5610
|
_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
5503
5611
|
continue;
|
|
5504
5612
|
}
|
|
5505
|
-
|
|
5613
|
+
const decoded = await DataIntegrityProof.fromJsonLd(v, {
|
|
5506
5614
|
...options,
|
|
5507
5615
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
5508
|
-
})
|
|
5616
|
+
});
|
|
5617
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
5618
|
+
_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof.push(decoded);
|
|
5509
5619
|
}
|
|
5510
5620
|
instance.#_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof = _42rPnotok1ivQ2RNCKNbeFJgx8b8_proof;
|
|
5511
|
-
|
|
5621
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
5622
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
5512
5623
|
instance._cachedJsonLd = structuredClone(json);
|
|
5513
5624
|
} catch {
|
|
5514
5625
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -5849,7 +5960,9 @@ var Emoji = class Emoji extends Object$1 {
|
|
|
5849
5960
|
_fromSubclass: true
|
|
5850
5961
|
});
|
|
5851
5962
|
if (!(instance instanceof Emoji)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
5852
|
-
|
|
5963
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
5964
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
5965
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
5853
5966
|
instance._cachedJsonLd = structuredClone(json);
|
|
5854
5967
|
} catch {
|
|
5855
5968
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -6086,16 +6199,20 @@ var ChatMessage = class ChatMessage extends Object$1 {
|
|
|
6086
6199
|
_fromSubclass: true
|
|
6087
6200
|
});
|
|
6088
6201
|
if (!(instance instanceof ChatMessage)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
6202
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
6089
6203
|
const _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl = [];
|
|
6090
6204
|
let _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array = values["https://www.w3.org/ns/activitystreams#quoteUrl"];
|
|
6091
6205
|
if (_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array == null || _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array.length < 1) _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array = values["https://misskey-hub.net/ns#_misskey_quote"];
|
|
6092
6206
|
if (_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array == null || _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array.length < 1) _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array = values["http://fedibird.com/ns#quoteUri"];
|
|
6093
6207
|
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) {
|
|
6094
6208
|
if (v == null) continue;
|
|
6095
|
-
|
|
6209
|
+
const decoded = new URL(v["@value"]);
|
|
6210
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
6211
|
+
_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl.push(decoded);
|
|
6096
6212
|
}
|
|
6097
6213
|
instance.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl = _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl;
|
|
6098
|
-
|
|
6214
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
6215
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
6099
6216
|
instance._cachedJsonLd = structuredClone(json);
|
|
6100
6217
|
} catch {
|
|
6101
6218
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -7531,6 +7648,7 @@ var Activity = class Activity extends Object$1 {
|
|
|
7531
7648
|
_fromSubclass: true
|
|
7532
7649
|
});
|
|
7533
7650
|
if (!(instance instanceof Activity)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
7651
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
7534
7652
|
const _2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor = [];
|
|
7535
7653
|
let _2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor__array = values["https://www.w3.org/ns/activitystreams#actor"];
|
|
7536
7654
|
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) {
|
|
@@ -7555,7 +7673,11 @@ var Activity = class Activity extends Object$1 {
|
|
|
7555
7673
|
...options,
|
|
7556
7674
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
7557
7675
|
}) : void 0;
|
|
7558
|
-
if (typeof decoded === "undefined")
|
|
7676
|
+
if (typeof decoded === "undefined") {
|
|
7677
|
+
shouldCacheJsonLd = false;
|
|
7678
|
+
continue;
|
|
7679
|
+
}
|
|
7680
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
7559
7681
|
_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor.push(decoded);
|
|
7560
7682
|
}
|
|
7561
7683
|
instance.#_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor = _2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor;
|
|
@@ -7567,10 +7689,12 @@ var Activity = class Activity extends Object$1 {
|
|
|
7567
7689
|
_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
7568
7690
|
continue;
|
|
7569
7691
|
}
|
|
7570
|
-
|
|
7692
|
+
const decoded = await Object$1.fromJsonLd(v, {
|
|
7571
7693
|
...options,
|
|
7572
7694
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
7573
|
-
})
|
|
7695
|
+
});
|
|
7696
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
7697
|
+
_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object.push(decoded);
|
|
7574
7698
|
}
|
|
7575
7699
|
instance.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = _2MH19yxjn1wnHsNfa5n4JBhJzxyc_object;
|
|
7576
7700
|
const _3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target = [];
|
|
@@ -7581,10 +7705,12 @@ var Activity = class Activity extends Object$1 {
|
|
|
7581
7705
|
_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
7582
7706
|
continue;
|
|
7583
7707
|
}
|
|
7584
|
-
|
|
7708
|
+
const decoded = await Object$1.fromJsonLd(v, {
|
|
7585
7709
|
...options,
|
|
7586
7710
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
7587
|
-
})
|
|
7711
|
+
});
|
|
7712
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
7713
|
+
_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target.push(decoded);
|
|
7588
7714
|
}
|
|
7589
7715
|
instance.#_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target = _3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target;
|
|
7590
7716
|
const _u4QGFbRFcYmPEKGbPv1hpBR9r5G_result = [];
|
|
@@ -7595,10 +7721,12 @@ var Activity = class Activity extends Object$1 {
|
|
|
7595
7721
|
_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
7596
7722
|
continue;
|
|
7597
7723
|
}
|
|
7598
|
-
|
|
7724
|
+
const decoded = await Object$1.fromJsonLd(v, {
|
|
7599
7725
|
...options,
|
|
7600
7726
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
7601
|
-
})
|
|
7727
|
+
});
|
|
7728
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
7729
|
+
_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result.push(decoded);
|
|
7602
7730
|
}
|
|
7603
7731
|
instance.#_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result = _u4QGFbRFcYmPEKGbPv1hpBR9r5G_result;
|
|
7604
7732
|
const _25zu2s3VxVujgEKqrDycjE284XQR_origin = [];
|
|
@@ -7609,10 +7737,12 @@ var Activity = class Activity extends Object$1 {
|
|
|
7609
7737
|
_25zu2s3VxVujgEKqrDycjE284XQR_origin.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
7610
7738
|
continue;
|
|
7611
7739
|
}
|
|
7612
|
-
|
|
7740
|
+
const decoded = await Object$1.fromJsonLd(v, {
|
|
7613
7741
|
...options,
|
|
7614
7742
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
7615
|
-
})
|
|
7743
|
+
});
|
|
7744
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
7745
|
+
_25zu2s3VxVujgEKqrDycjE284XQR_origin.push(decoded);
|
|
7616
7746
|
}
|
|
7617
7747
|
instance.#_25zu2s3VxVujgEKqrDycjE284XQR_origin = _25zu2s3VxVujgEKqrDycjE284XQR_origin;
|
|
7618
7748
|
const _3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument = [];
|
|
@@ -7623,13 +7753,16 @@ var Activity = class Activity extends Object$1 {
|
|
|
7623
7753
|
_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
7624
7754
|
continue;
|
|
7625
7755
|
}
|
|
7626
|
-
|
|
7756
|
+
const decoded = await Object$1.fromJsonLd(v, {
|
|
7627
7757
|
...options,
|
|
7628
7758
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
7629
|
-
})
|
|
7759
|
+
});
|
|
7760
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
7761
|
+
_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument.push(decoded);
|
|
7630
7762
|
}
|
|
7631
7763
|
instance.#_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument = _3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument;
|
|
7632
|
-
|
|
7764
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
7765
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
7633
7766
|
instance._cachedJsonLd = structuredClone(json);
|
|
7634
7767
|
} catch {
|
|
7635
7768
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -7819,7 +7952,9 @@ var EmojiReact = class EmojiReact extends Activity {
|
|
|
7819
7952
|
_fromSubclass: true
|
|
7820
7953
|
});
|
|
7821
7954
|
if (!(instance instanceof EmojiReact)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
7822
|
-
|
|
7955
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
7956
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
7957
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
7823
7958
|
instance._cachedJsonLd = structuredClone(json);
|
|
7824
7959
|
} catch {
|
|
7825
7960
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -7844,6 +7979,7 @@ var PropertyValue = class {
|
|
|
7844
7979
|
#tracerProvider;
|
|
7845
7980
|
#warning;
|
|
7846
7981
|
#cachedJsonLd;
|
|
7982
|
+
#shouldCacheJsonLd = true;
|
|
7847
7983
|
id;
|
|
7848
7984
|
get _documentLoader() {
|
|
7849
7985
|
return this.#documentLoader;
|
|
@@ -7863,6 +7999,17 @@ var PropertyValue = class {
|
|
|
7863
7999
|
set _cachedJsonLd(value) {
|
|
7864
8000
|
this.#cachedJsonLd = value;
|
|
7865
8001
|
}
|
|
8002
|
+
get _shouldCacheJsonLd() {
|
|
8003
|
+
return this.#shouldCacheJsonLd;
|
|
8004
|
+
}
|
|
8005
|
+
set _shouldCacheJsonLd(value) {
|
|
8006
|
+
this.#shouldCacheJsonLd = value;
|
|
8007
|
+
}
|
|
8008
|
+
static _shouldCacheDecodedJsonLd(value) {
|
|
8009
|
+
if (value == null || typeof value !== "object") return true;
|
|
8010
|
+
if (!("_shouldCacheJsonLd" in value)) return true;
|
|
8011
|
+
return value._shouldCacheJsonLd;
|
|
8012
|
+
}
|
|
7866
8013
|
/**
|
|
7867
8014
|
* The type URI of {@link PropertyValue}: `http://schema.org#PropertyValue`.
|
|
7868
8015
|
*/
|
|
@@ -8060,12 +8207,17 @@ var PropertyValue = class {
|
|
|
8060
8207
|
if (!values["@type"].includes("http://schema.org#PropertyValue")) throw new TypeError("Invalid type: " + values["@type"]);
|
|
8061
8208
|
}
|
|
8062
8209
|
const instance = new this({ id: "@id" in values ? new URL(values["@id"]) : void 0 }, options);
|
|
8210
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
8063
8211
|
const _4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = [];
|
|
8064
8212
|
let _4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name__array = values["https://www.w3.org/ns/activitystreams#name"];
|
|
8065
8213
|
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) {
|
|
8066
8214
|
if (v == null) continue;
|
|
8067
|
-
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;
|
|
8068
|
-
if (typeof decoded === "undefined")
|
|
8215
|
+
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;
|
|
8216
|
+
if (typeof decoded === "undefined") {
|
|
8217
|
+
shouldCacheJsonLd = false;
|
|
8218
|
+
continue;
|
|
8219
|
+
}
|
|
8220
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
8069
8221
|
_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name.push(decoded);
|
|
8070
8222
|
}
|
|
8071
8223
|
instance.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = _4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name;
|
|
@@ -8073,12 +8225,17 @@ var PropertyValue = class {
|
|
|
8073
8225
|
let _2cSy2magg4iZ7zLaG8U7DiJMoCkx_value__array = values["http://schema.org#value"];
|
|
8074
8226
|
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) {
|
|
8075
8227
|
if (v == null) continue;
|
|
8076
|
-
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;
|
|
8077
|
-
if (typeof decoded === "undefined")
|
|
8228
|
+
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;
|
|
8229
|
+
if (typeof decoded === "undefined") {
|
|
8230
|
+
shouldCacheJsonLd = false;
|
|
8231
|
+
continue;
|
|
8232
|
+
}
|
|
8233
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
8078
8234
|
_2cSy2magg4iZ7zLaG8U7DiJMoCkx_value.push(decoded);
|
|
8079
8235
|
}
|
|
8080
8236
|
instance.#_2cSy2magg4iZ7zLaG8U7DiJMoCkx_value = _2cSy2magg4iZ7zLaG8U7DiJMoCkx_value;
|
|
8081
|
-
|
|
8237
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
8238
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
8082
8239
|
instance._cachedJsonLd = structuredClone(json);
|
|
8083
8240
|
} catch {
|
|
8084
8241
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -8121,6 +8278,7 @@ var DidService = class {
|
|
|
8121
8278
|
#tracerProvider;
|
|
8122
8279
|
#warning;
|
|
8123
8280
|
#cachedJsonLd;
|
|
8281
|
+
#shouldCacheJsonLd = true;
|
|
8124
8282
|
id;
|
|
8125
8283
|
get _documentLoader() {
|
|
8126
8284
|
return this.#documentLoader;
|
|
@@ -8140,6 +8298,17 @@ var DidService = class {
|
|
|
8140
8298
|
set _cachedJsonLd(value) {
|
|
8141
8299
|
this.#cachedJsonLd = value;
|
|
8142
8300
|
}
|
|
8301
|
+
get _shouldCacheJsonLd() {
|
|
8302
|
+
return this.#shouldCacheJsonLd;
|
|
8303
|
+
}
|
|
8304
|
+
set _shouldCacheJsonLd(value) {
|
|
8305
|
+
this.#shouldCacheJsonLd = value;
|
|
8306
|
+
}
|
|
8307
|
+
static _shouldCacheDecodedJsonLd(value) {
|
|
8308
|
+
if (value == null || typeof value !== "object") return true;
|
|
8309
|
+
if (!("_shouldCacheJsonLd" in value)) return true;
|
|
8310
|
+
return value._shouldCacheJsonLd;
|
|
8311
|
+
}
|
|
8143
8312
|
/**
|
|
8144
8313
|
* The type URI of {@link DidService}: `https://www.w3.org/ns/did#Service`.
|
|
8145
8314
|
*/
|
|
@@ -8295,14 +8464,18 @@ var DidService = class {
|
|
|
8295
8464
|
if (!values["@type"].includes("https://www.w3.org/ns/did#Service")) throw new TypeError("Invalid type: " + values["@type"]);
|
|
8296
8465
|
}
|
|
8297
8466
|
const instance = new this({ id: "@id" in values ? new URL(values["@id"]) : void 0 }, options);
|
|
8467
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
8298
8468
|
const _2KM4fetG6FTJ1cphj76rzJ8Dyv7p_serviceEndpoint = [];
|
|
8299
8469
|
let _2KM4fetG6FTJ1cphj76rzJ8Dyv7p_serviceEndpoint__array = values["https://www.w3.org/ns/did#serviceEndpoint"];
|
|
8300
8470
|
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) {
|
|
8301
8471
|
if (v == null) continue;
|
|
8302
|
-
|
|
8472
|
+
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"]) && (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) ? new URL(v["@id"]) : new URL(v["@id"], values["@id"] == null ? options.baseUrl : new URL(values["@id"]));
|
|
8473
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
8474
|
+
_2KM4fetG6FTJ1cphj76rzJ8Dyv7p_serviceEndpoint.push(decoded);
|
|
8303
8475
|
}
|
|
8304
8476
|
instance.#_2KM4fetG6FTJ1cphj76rzJ8Dyv7p_serviceEndpoint = _2KM4fetG6FTJ1cphj76rzJ8Dyv7p_serviceEndpoint;
|
|
8305
|
-
|
|
8477
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
8478
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
8306
8479
|
instance._cachedJsonLd = structuredClone(json);
|
|
8307
8480
|
} catch {
|
|
8308
8481
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -8453,7 +8626,9 @@ var Export = class Export extends DidService {
|
|
|
8453
8626
|
_fromSubclass: true
|
|
8454
8627
|
});
|
|
8455
8628
|
if (!(instance instanceof Export)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
8456
|
-
|
|
8629
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
8630
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
8631
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
8457
8632
|
instance._cachedJsonLd = structuredClone(json);
|
|
8458
8633
|
} catch {
|
|
8459
8634
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -8479,6 +8654,7 @@ var DataIntegrityProof = class {
|
|
|
8479
8654
|
#tracerProvider;
|
|
8480
8655
|
#warning;
|
|
8481
8656
|
#cachedJsonLd;
|
|
8657
|
+
#shouldCacheJsonLd = true;
|
|
8482
8658
|
id;
|
|
8483
8659
|
get _documentLoader() {
|
|
8484
8660
|
return this.#documentLoader;
|
|
@@ -8498,6 +8674,17 @@ var DataIntegrityProof = class {
|
|
|
8498
8674
|
set _cachedJsonLd(value) {
|
|
8499
8675
|
this.#cachedJsonLd = value;
|
|
8500
8676
|
}
|
|
8677
|
+
get _shouldCacheJsonLd() {
|
|
8678
|
+
return this.#shouldCacheJsonLd;
|
|
8679
|
+
}
|
|
8680
|
+
set _shouldCacheJsonLd(value) {
|
|
8681
|
+
this.#shouldCacheJsonLd = value;
|
|
8682
|
+
}
|
|
8683
|
+
static _shouldCacheDecodedJsonLd(value) {
|
|
8684
|
+
if (value == null || typeof value !== "object") return true;
|
|
8685
|
+
if (!("_shouldCacheJsonLd" in value)) return true;
|
|
8686
|
+
return value._shouldCacheJsonLd;
|
|
8687
|
+
}
|
|
8501
8688
|
/**
|
|
8502
8689
|
* The type URI of {@link DataIntegrityProof}: `https://w3id.org/security#DataIntegrityProof`.
|
|
8503
8690
|
*/
|
|
@@ -8840,11 +9027,14 @@ var DataIntegrityProof = class {
|
|
|
8840
9027
|
if (!values["@type"].includes("https://w3id.org/security#DataIntegrityProof")) throw new TypeError("Invalid type: " + values["@type"]);
|
|
8841
9028
|
}
|
|
8842
9029
|
const instance = new this({ id: "@id" in values ? new URL(values["@id"]) : void 0 }, options);
|
|
9030
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
8843
9031
|
const _3RurJsa7tnptyqMFR5hDGcP9pMs5_cryptosuite = [];
|
|
8844
9032
|
let _3RurJsa7tnptyqMFR5hDGcP9pMs5_cryptosuite__array = values["https://w3id.org/security#cryptosuite"];
|
|
8845
9033
|
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) {
|
|
8846
9034
|
if (v == null) continue;
|
|
8847
|
-
|
|
9035
|
+
const decoded = v["@value"];
|
|
9036
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
9037
|
+
_3RurJsa7tnptyqMFR5hDGcP9pMs5_cryptosuite.push(decoded);
|
|
8848
9038
|
}
|
|
8849
9039
|
instance.#_3RurJsa7tnptyqMFR5hDGcP9pMs5_cryptosuite = _3RurJsa7tnptyqMFR5hDGcP9pMs5_cryptosuite;
|
|
8850
9040
|
const _2mHVKxqA7zncjveJrDEo3pWpMZqg_verificationMethod = [];
|
|
@@ -8855,34 +9045,43 @@ var DataIntegrityProof = class {
|
|
|
8855
9045
|
_2mHVKxqA7zncjveJrDEo3pWpMZqg_verificationMethod.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
8856
9046
|
continue;
|
|
8857
9047
|
}
|
|
8858
|
-
|
|
9048
|
+
const decoded = await Multikey.fromJsonLd(v, {
|
|
8859
9049
|
...options,
|
|
8860
9050
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
8861
|
-
})
|
|
9051
|
+
});
|
|
9052
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
9053
|
+
_2mHVKxqA7zncjveJrDEo3pWpMZqg_verificationMethod.push(decoded);
|
|
8862
9054
|
}
|
|
8863
9055
|
instance.#_2mHVKxqA7zncjveJrDEo3pWpMZqg_verificationMethod = _2mHVKxqA7zncjveJrDEo3pWpMZqg_verificationMethod;
|
|
8864
9056
|
const _2AeEnPcAvVrPEuKbpmn9ZKNmWHKb_proofPurpose = [];
|
|
8865
9057
|
let _2AeEnPcAvVrPEuKbpmn9ZKNmWHKb_proofPurpose__array = values["https://w3id.org/security#proofPurpose"];
|
|
8866
9058
|
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) {
|
|
8867
9059
|
if (v == null) continue;
|
|
8868
|
-
|
|
9060
|
+
const decoded = v["@id"].substring(26);
|
|
9061
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
9062
|
+
_2AeEnPcAvVrPEuKbpmn9ZKNmWHKb_proofPurpose.push(decoded);
|
|
8869
9063
|
}
|
|
8870
9064
|
instance.#_2AeEnPcAvVrPEuKbpmn9ZKNmWHKb_proofPurpose = _2AeEnPcAvVrPEuKbpmn9ZKNmWHKb_proofPurpose;
|
|
8871
9065
|
const _3CjFK5vfKpX4HQuNh2b18TykoVLq_proofValue = [];
|
|
8872
9066
|
let _3CjFK5vfKpX4HQuNh2b18TykoVLq_proofValue__array = values["https://w3id.org/security#proofValue"];
|
|
8873
9067
|
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) {
|
|
8874
9068
|
if (v == null) continue;
|
|
8875
|
-
|
|
9069
|
+
const decoded = decodeMultibase(v["@value"]);
|
|
9070
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
9071
|
+
_3CjFK5vfKpX4HQuNh2b18TykoVLq_proofValue.push(decoded);
|
|
8876
9072
|
}
|
|
8877
9073
|
instance.#_3CjFK5vfKpX4HQuNh2b18TykoVLq_proofValue = _3CjFK5vfKpX4HQuNh2b18TykoVLq_proofValue;
|
|
8878
9074
|
const _3qzP3ukEZoUziK5FEiA1RhU4aqac = [];
|
|
8879
9075
|
let _3qzP3ukEZoUziK5FEiA1RhU4aqac__array = values["http://purl.org/dc/terms/created"];
|
|
8880
9076
|
for (const v of _3qzP3ukEZoUziK5FEiA1RhU4aqac__array == null ? [] : _3qzP3ukEZoUziK5FEiA1RhU4aqac__array.length === 1 && "@list" in _3qzP3ukEZoUziK5FEiA1RhU4aqac__array[0] ? _3qzP3ukEZoUziK5FEiA1RhU4aqac__array[0]["@list"] : _3qzP3ukEZoUziK5FEiA1RhU4aqac__array) {
|
|
8881
9077
|
if (v == null) continue;
|
|
8882
|
-
|
|
9078
|
+
const decoded = Temporal.Instant.from(v["@value"].substring(19).match(/[Z+-]/) ? v["@value"] : v["@value"] + "Z");
|
|
9079
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
9080
|
+
_3qzP3ukEZoUziK5FEiA1RhU4aqac.push(decoded);
|
|
8883
9081
|
}
|
|
8884
9082
|
instance.#_3qzP3ukEZoUziK5FEiA1RhU4aqac = _3qzP3ukEZoUziK5FEiA1RhU4aqac;
|
|
8885
|
-
|
|
9083
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
9084
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
8886
9085
|
instance._cachedJsonLd = structuredClone(json);
|
|
8887
9086
|
} catch {
|
|
8888
9087
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -8937,6 +9136,7 @@ var CryptographicKey = class {
|
|
|
8937
9136
|
#tracerProvider;
|
|
8938
9137
|
#warning;
|
|
8939
9138
|
#cachedJsonLd;
|
|
9139
|
+
#shouldCacheJsonLd = true;
|
|
8940
9140
|
id;
|
|
8941
9141
|
get _documentLoader() {
|
|
8942
9142
|
return this.#documentLoader;
|
|
@@ -8956,6 +9156,17 @@ var CryptographicKey = class {
|
|
|
8956
9156
|
set _cachedJsonLd(value) {
|
|
8957
9157
|
this.#cachedJsonLd = value;
|
|
8958
9158
|
}
|
|
9159
|
+
get _shouldCacheJsonLd() {
|
|
9160
|
+
return this.#shouldCacheJsonLd;
|
|
9161
|
+
}
|
|
9162
|
+
set _shouldCacheJsonLd(value) {
|
|
9163
|
+
this.#shouldCacheJsonLd = value;
|
|
9164
|
+
}
|
|
9165
|
+
static _shouldCacheDecodedJsonLd(value) {
|
|
9166
|
+
if (value == null || typeof value !== "object") return true;
|
|
9167
|
+
if (!("_shouldCacheJsonLd" in value)) return true;
|
|
9168
|
+
return value._shouldCacheJsonLd;
|
|
9169
|
+
}
|
|
8959
9170
|
/**
|
|
8960
9171
|
* The type URI of {@link CryptographicKey}: `https://w3id.org/security#Key`.
|
|
8961
9172
|
*/
|
|
@@ -9316,6 +9527,7 @@ var CryptographicKey = class {
|
|
|
9316
9527
|
if (!values["@type"].includes("https://w3id.org/security#Key")) throw new TypeError("Invalid type: " + values["@type"]);
|
|
9317
9528
|
}
|
|
9318
9529
|
const instance = new this({ id: "@id" in values ? new URL(values["@id"]) : void 0 }, options);
|
|
9530
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
9319
9531
|
const _5UJq9NDh3ZHgswFwwdVxQvJxdx2_owner = [];
|
|
9320
9532
|
let _5UJq9NDh3ZHgswFwwdVxQvJxdx2_owner__array = values["https://w3id.org/security#owner"];
|
|
9321
9533
|
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) {
|
|
@@ -9340,7 +9552,11 @@ var CryptographicKey = class {
|
|
|
9340
9552
|
...options,
|
|
9341
9553
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
9342
9554
|
}) : void 0;
|
|
9343
|
-
if (typeof decoded === "undefined")
|
|
9555
|
+
if (typeof decoded === "undefined") {
|
|
9556
|
+
shouldCacheJsonLd = false;
|
|
9557
|
+
continue;
|
|
9558
|
+
}
|
|
9559
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
9344
9560
|
_5UJq9NDh3ZHgswFwwdVxQvJxdx2_owner.push(decoded);
|
|
9345
9561
|
}
|
|
9346
9562
|
instance.#_5UJq9NDh3ZHgswFwwdVxQvJxdx2_owner = _5UJq9NDh3ZHgswFwwdVxQvJxdx2_owner;
|
|
@@ -9348,10 +9564,13 @@ var CryptographicKey = class {
|
|
|
9348
9564
|
let _2fE2QMDdg6KFGqa4NEC3TmjApSAD_publicKeyPem__array = values["https://w3id.org/security#publicKeyPem"];
|
|
9349
9565
|
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) {
|
|
9350
9566
|
if (v == null) continue;
|
|
9351
|
-
|
|
9567
|
+
const decoded = await importPem(v["@value"]);
|
|
9568
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
9569
|
+
_2fE2QMDdg6KFGqa4NEC3TmjApSAD_publicKeyPem.push(decoded);
|
|
9352
9570
|
}
|
|
9353
9571
|
instance.#_2fE2QMDdg6KFGqa4NEC3TmjApSAD_publicKeyPem = _2fE2QMDdg6KFGqa4NEC3TmjApSAD_publicKeyPem;
|
|
9354
|
-
|
|
9572
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
9573
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
9355
9574
|
instance._cachedJsonLd = structuredClone(json);
|
|
9356
9575
|
} catch {
|
|
9357
9576
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -9394,6 +9613,7 @@ var Multikey = class {
|
|
|
9394
9613
|
#tracerProvider;
|
|
9395
9614
|
#warning;
|
|
9396
9615
|
#cachedJsonLd;
|
|
9616
|
+
#shouldCacheJsonLd = true;
|
|
9397
9617
|
id;
|
|
9398
9618
|
get _documentLoader() {
|
|
9399
9619
|
return this.#documentLoader;
|
|
@@ -9413,6 +9633,17 @@ var Multikey = class {
|
|
|
9413
9633
|
set _cachedJsonLd(value) {
|
|
9414
9634
|
this.#cachedJsonLd = value;
|
|
9415
9635
|
}
|
|
9636
|
+
get _shouldCacheJsonLd() {
|
|
9637
|
+
return this.#shouldCacheJsonLd;
|
|
9638
|
+
}
|
|
9639
|
+
set _shouldCacheJsonLd(value) {
|
|
9640
|
+
this.#shouldCacheJsonLd = value;
|
|
9641
|
+
}
|
|
9642
|
+
static _shouldCacheDecodedJsonLd(value) {
|
|
9643
|
+
if (value == null || typeof value !== "object") return true;
|
|
9644
|
+
if (!("_shouldCacheJsonLd" in value)) return true;
|
|
9645
|
+
return value._shouldCacheJsonLd;
|
|
9646
|
+
}
|
|
9416
9647
|
/**
|
|
9417
9648
|
* The type URI of {@link Multikey}: `https://w3id.org/security#Multikey`.
|
|
9418
9649
|
*/
|
|
@@ -9779,6 +10010,7 @@ var Multikey = class {
|
|
|
9779
10010
|
if (!values["@type"].includes("https://w3id.org/security#Multikey")) throw new TypeError("Invalid type: " + values["@type"]);
|
|
9780
10011
|
}
|
|
9781
10012
|
const instance = new this({ id: "@id" in values ? new URL(values["@id"]) : void 0 }, options);
|
|
10013
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
9782
10014
|
const _2yr3eUBTP6cNcyaxKzAXWjFsnGzN_controller = [];
|
|
9783
10015
|
let _2yr3eUBTP6cNcyaxKzAXWjFsnGzN_controller__array = values["https://w3id.org/security#controller"];
|
|
9784
10016
|
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) {
|
|
@@ -9803,7 +10035,11 @@ var Multikey = class {
|
|
|
9803
10035
|
...options,
|
|
9804
10036
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
9805
10037
|
}) : void 0;
|
|
9806
|
-
if (typeof decoded === "undefined")
|
|
10038
|
+
if (typeof decoded === "undefined") {
|
|
10039
|
+
shouldCacheJsonLd = false;
|
|
10040
|
+
continue;
|
|
10041
|
+
}
|
|
10042
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
9807
10043
|
_2yr3eUBTP6cNcyaxKzAXWjFsnGzN_controller.push(decoded);
|
|
9808
10044
|
}
|
|
9809
10045
|
instance.#_2yr3eUBTP6cNcyaxKzAXWjFsnGzN_controller = _2yr3eUBTP6cNcyaxKzAXWjFsnGzN_controller;
|
|
@@ -9811,10 +10047,13 @@ var Multikey = class {
|
|
|
9811
10047
|
let _4XLHbsR2gLVWU3NpEqKt9wANzn4F_publicKeyMultibase__array = values["https://w3id.org/security#publicKeyMultibase"];
|
|
9812
10048
|
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) {
|
|
9813
10049
|
if (v == null) continue;
|
|
9814
|
-
|
|
10050
|
+
const decoded = await importMultibaseKey(v["@value"]);
|
|
10051
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
10052
|
+
_4XLHbsR2gLVWU3NpEqKt9wANzn4F_publicKeyMultibase.push(decoded);
|
|
9815
10053
|
}
|
|
9816
10054
|
instance.#_4XLHbsR2gLVWU3NpEqKt9wANzn4F_publicKeyMultibase = _4XLHbsR2gLVWU3NpEqKt9wANzn4F_publicKeyMultibase;
|
|
9817
|
-
|
|
10055
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
10056
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
9818
10057
|
instance._cachedJsonLd = structuredClone(json);
|
|
9819
10058
|
} catch {
|
|
9820
10059
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -9979,7 +10218,9 @@ var Accept = class Accept extends Activity {
|
|
|
9979
10218
|
_fromSubclass: true
|
|
9980
10219
|
});
|
|
9981
10220
|
if (!(instance instanceof Accept)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
9982
|
-
|
|
10221
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
10222
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
10223
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
9983
10224
|
instance._cachedJsonLd = structuredClone(json);
|
|
9984
10225
|
} catch {
|
|
9985
10226
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -10129,7 +10370,9 @@ var Add = class Add extends Activity {
|
|
|
10129
10370
|
_fromSubclass: true
|
|
10130
10371
|
});
|
|
10131
10372
|
if (!(instance instanceof Add)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
10132
|
-
|
|
10373
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
10374
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
10375
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
10133
10376
|
instance._cachedJsonLd = structuredClone(json);
|
|
10134
10377
|
} catch {
|
|
10135
10378
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -10297,7 +10540,9 @@ var Announce = class Announce extends Activity {
|
|
|
10297
10540
|
_fromSubclass: true
|
|
10298
10541
|
});
|
|
10299
10542
|
if (!(instance instanceof Announce)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
10300
|
-
|
|
10543
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
10544
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
10545
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
10301
10546
|
instance._cachedJsonLd = structuredClone(json);
|
|
10302
10547
|
} catch {
|
|
10303
10548
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -13162,12 +13407,17 @@ var Application = class Application extends Object$1 {
|
|
|
13162
13407
|
_fromSubclass: true
|
|
13163
13408
|
});
|
|
13164
13409
|
if (!(instance instanceof Application)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
13410
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
13165
13411
|
const _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = [];
|
|
13166
13412
|
let _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername__array = values["https://www.w3.org/ns/activitystreams#preferredUsername"];
|
|
13167
13413
|
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) {
|
|
13168
13414
|
if (v == null) continue;
|
|
13169
|
-
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;
|
|
13170
|
-
if (typeof decoded === "undefined")
|
|
13415
|
+
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;
|
|
13416
|
+
if (typeof decoded === "undefined") {
|
|
13417
|
+
shouldCacheJsonLd = false;
|
|
13418
|
+
continue;
|
|
13419
|
+
}
|
|
13420
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
13171
13421
|
_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername.push(decoded);
|
|
13172
13422
|
}
|
|
13173
13423
|
instance.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername;
|
|
@@ -13179,10 +13429,12 @@ var Application = class Application extends Object$1 {
|
|
|
13179
13429
|
_axq166E2eZADq34V4MYUc8KMZdC_publicKey.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
13180
13430
|
continue;
|
|
13181
13431
|
}
|
|
13182
|
-
|
|
13432
|
+
const decoded = await CryptographicKey.fromJsonLd(v, {
|
|
13183
13433
|
...options,
|
|
13184
13434
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
13185
|
-
})
|
|
13435
|
+
});
|
|
13436
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
13437
|
+
_axq166E2eZADq34V4MYUc8KMZdC_publicKey.push(decoded);
|
|
13186
13438
|
}
|
|
13187
13439
|
instance.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = _axq166E2eZADq34V4MYUc8KMZdC_publicKey;
|
|
13188
13440
|
const _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = [];
|
|
@@ -13193,17 +13445,21 @@ var Application = class Application extends Object$1 {
|
|
|
13193
13445
|
_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
13194
13446
|
continue;
|
|
13195
13447
|
}
|
|
13196
|
-
|
|
13448
|
+
const decoded = await Multikey.fromJsonLd(v, {
|
|
13197
13449
|
...options,
|
|
13198
13450
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
13199
|
-
})
|
|
13451
|
+
});
|
|
13452
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
13453
|
+
_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(decoded);
|
|
13200
13454
|
}
|
|
13201
13455
|
instance.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod;
|
|
13202
13456
|
const _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = [];
|
|
13203
13457
|
let _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers__array = values["https://www.w3.org/ns/activitystreams#manuallyApprovesFollowers"];
|
|
13204
13458
|
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) {
|
|
13205
13459
|
if (v == null) continue;
|
|
13206
|
-
|
|
13460
|
+
const decoded = v["@value"];
|
|
13461
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
13462
|
+
_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers.push(decoded);
|
|
13207
13463
|
}
|
|
13208
13464
|
instance.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers;
|
|
13209
13465
|
const _3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = [];
|
|
@@ -13221,7 +13477,11 @@ var Application = class Application extends Object$1 {
|
|
|
13221
13477
|
...options,
|
|
13222
13478
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
13223
13479
|
}) : void 0;
|
|
13224
|
-
if (typeof decoded === "undefined")
|
|
13480
|
+
if (typeof decoded === "undefined") {
|
|
13481
|
+
shouldCacheJsonLd = false;
|
|
13482
|
+
continue;
|
|
13483
|
+
}
|
|
13484
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
13225
13485
|
_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox.push(decoded);
|
|
13226
13486
|
}
|
|
13227
13487
|
instance.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = _3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox;
|
|
@@ -13240,7 +13500,11 @@ var Application = class Application extends Object$1 {
|
|
|
13240
13500
|
...options,
|
|
13241
13501
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
13242
13502
|
}) : void 0;
|
|
13243
|
-
if (typeof decoded === "undefined")
|
|
13503
|
+
if (typeof decoded === "undefined") {
|
|
13504
|
+
shouldCacheJsonLd = false;
|
|
13505
|
+
continue;
|
|
13506
|
+
}
|
|
13507
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
13244
13508
|
_41QwhqJouoLg3h8dRPKat21brynC_outbox.push(decoded);
|
|
13245
13509
|
}
|
|
13246
13510
|
instance.#_41QwhqJouoLg3h8dRPKat21brynC_outbox = _41QwhqJouoLg3h8dRPKat21brynC_outbox;
|
|
@@ -13252,10 +13516,12 @@ var Application = class Application extends Object$1 {
|
|
|
13252
13516
|
_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
13253
13517
|
continue;
|
|
13254
13518
|
}
|
|
13255
|
-
|
|
13519
|
+
const decoded = await Collection.fromJsonLd(v, {
|
|
13256
13520
|
...options,
|
|
13257
13521
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
13258
|
-
})
|
|
13522
|
+
});
|
|
13523
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
13524
|
+
_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.push(decoded);
|
|
13259
13525
|
}
|
|
13260
13526
|
instance.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = _3yAv8jymNfNuJUDuBzJ1NQhdbAee_following;
|
|
13261
13527
|
const _BBCTgfphhsFzpVfKTykGSpBNwoA_followers = [];
|
|
@@ -13266,10 +13532,12 @@ var Application = class Application extends Object$1 {
|
|
|
13266
13532
|
_BBCTgfphhsFzpVfKTykGSpBNwoA_followers.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
13267
13533
|
continue;
|
|
13268
13534
|
}
|
|
13269
|
-
|
|
13535
|
+
const decoded = await Collection.fromJsonLd(v, {
|
|
13270
13536
|
...options,
|
|
13271
13537
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
13272
|
-
})
|
|
13538
|
+
});
|
|
13539
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
13540
|
+
_BBCTgfphhsFzpVfKTykGSpBNwoA_followers.push(decoded);
|
|
13273
13541
|
}
|
|
13274
13542
|
instance.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = _BBCTgfphhsFzpVfKTykGSpBNwoA_followers;
|
|
13275
13543
|
const _3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = [];
|
|
@@ -13280,10 +13548,12 @@ var Application = class Application extends Object$1 {
|
|
|
13280
13548
|
_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
13281
13549
|
continue;
|
|
13282
13550
|
}
|
|
13283
|
-
|
|
13551
|
+
const decoded = await Collection.fromJsonLd(v, {
|
|
13284
13552
|
...options,
|
|
13285
13553
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
13286
|
-
})
|
|
13554
|
+
});
|
|
13555
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
13556
|
+
_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.push(decoded);
|
|
13287
13557
|
}
|
|
13288
13558
|
instance.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = _3bgkPwJanyTCoVFM9ovRcus8tKkU_liked;
|
|
13289
13559
|
const _4N1vBJzXDf8NbBumeECQMFvKetja_featured = [];
|
|
@@ -13294,10 +13564,12 @@ var Application = class Application extends Object$1 {
|
|
|
13294
13564
|
_4N1vBJzXDf8NbBumeECQMFvKetja_featured.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
13295
13565
|
continue;
|
|
13296
13566
|
}
|
|
13297
|
-
|
|
13567
|
+
const decoded = await Collection.fromJsonLd(v, {
|
|
13298
13568
|
...options,
|
|
13299
13569
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
13300
|
-
})
|
|
13570
|
+
});
|
|
13571
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
13572
|
+
_4N1vBJzXDf8NbBumeECQMFvKetja_featured.push(decoded);
|
|
13301
13573
|
}
|
|
13302
13574
|
instance.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured = _4N1vBJzXDf8NbBumeECQMFvKetja_featured;
|
|
13303
13575
|
const _2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = [];
|
|
@@ -13308,10 +13580,12 @@ var Application = class Application extends Object$1 {
|
|
|
13308
13580
|
_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
13309
13581
|
continue;
|
|
13310
13582
|
}
|
|
13311
|
-
|
|
13583
|
+
const decoded = await Collection.fromJsonLd(v, {
|
|
13312
13584
|
...options,
|
|
13313
13585
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
13314
|
-
})
|
|
13586
|
+
});
|
|
13587
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
13588
|
+
_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.push(decoded);
|
|
13315
13589
|
}
|
|
13316
13590
|
instance.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = _2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags;
|
|
13317
13591
|
const _3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = [];
|
|
@@ -13322,48 +13596,60 @@ var Application = class Application extends Object$1 {
|
|
|
13322
13596
|
_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
13323
13597
|
continue;
|
|
13324
13598
|
}
|
|
13325
|
-
|
|
13599
|
+
const decoded = await Collection.fromJsonLd(v, {
|
|
13326
13600
|
...options,
|
|
13327
13601
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
13328
|
-
})
|
|
13602
|
+
});
|
|
13603
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
13604
|
+
_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.push(decoded);
|
|
13329
13605
|
}
|
|
13330
13606
|
instance.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = _3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams;
|
|
13331
13607
|
const _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = [];
|
|
13332
13608
|
let _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints__array = values["https://www.w3.org/ns/activitystreams#endpoints"];
|
|
13333
13609
|
for (const v of _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints__array == null ? [] : _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints__array.length === 1 && "@list" in _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints__array[0] ? _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints__array[0]["@list"] : _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints__array) {
|
|
13334
13610
|
if (v == null) continue;
|
|
13335
|
-
|
|
13611
|
+
const decoded = await Endpoints.fromJsonLd(v, {
|
|
13336
13612
|
...options,
|
|
13337
13613
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
13338
|
-
})
|
|
13614
|
+
});
|
|
13615
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
13616
|
+
_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.push(decoded);
|
|
13339
13617
|
}
|
|
13340
13618
|
instance.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints;
|
|
13341
13619
|
const _gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = [];
|
|
13342
13620
|
let _gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable__array = values["http://joinmastodon.org/ns#discoverable"];
|
|
13343
13621
|
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) {
|
|
13344
13622
|
if (v == null) continue;
|
|
13345
|
-
|
|
13623
|
+
const decoded = v["@value"];
|
|
13624
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
13625
|
+
_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable.push(decoded);
|
|
13346
13626
|
}
|
|
13347
13627
|
instance.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = _gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable;
|
|
13348
13628
|
const _2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = [];
|
|
13349
13629
|
let _2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended__array = values["http://joinmastodon.org/ns#suspended"];
|
|
13350
13630
|
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) {
|
|
13351
13631
|
if (v == null) continue;
|
|
13352
|
-
|
|
13632
|
+
const decoded = v["@value"];
|
|
13633
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
13634
|
+
_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended.push(decoded);
|
|
13353
13635
|
}
|
|
13354
13636
|
instance.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = _2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended;
|
|
13355
13637
|
const _79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = [];
|
|
13356
13638
|
let _79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial__array = values["http://joinmastodon.org/ns#memorial"];
|
|
13357
13639
|
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) {
|
|
13358
13640
|
if (v == null) continue;
|
|
13359
|
-
|
|
13641
|
+
const decoded = v["@value"];
|
|
13642
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
13643
|
+
_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial.push(decoded);
|
|
13360
13644
|
}
|
|
13361
13645
|
instance.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = _79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial;
|
|
13362
13646
|
const _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = [];
|
|
13363
13647
|
let _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable__array = values["http://joinmastodon.org/ns#indexable"];
|
|
13364
13648
|
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) {
|
|
13365
13649
|
if (v == null) continue;
|
|
13366
|
-
|
|
13650
|
+
const decoded = v["@value"];
|
|
13651
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
13652
|
+
_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable.push(decoded);
|
|
13367
13653
|
}
|
|
13368
13654
|
instance.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable;
|
|
13369
13655
|
const _2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = [];
|
|
@@ -13390,7 +13676,11 @@ var Application = class Application extends Object$1 {
|
|
|
13390
13676
|
...options,
|
|
13391
13677
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
13392
13678
|
}) : void 0;
|
|
13393
|
-
if (typeof decoded === "undefined")
|
|
13679
|
+
if (typeof decoded === "undefined") {
|
|
13680
|
+
shouldCacheJsonLd = false;
|
|
13681
|
+
continue;
|
|
13682
|
+
}
|
|
13683
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
13394
13684
|
_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.push(decoded);
|
|
13395
13685
|
}
|
|
13396
13686
|
instance.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = _2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo;
|
|
@@ -13418,7 +13708,11 @@ var Application = class Application extends Object$1 {
|
|
|
13418
13708
|
...options,
|
|
13419
13709
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
13420
13710
|
}) : void 0;
|
|
13421
|
-
if (typeof decoded === "undefined")
|
|
13711
|
+
if (typeof decoded === "undefined") {
|
|
13712
|
+
shouldCacheJsonLd = false;
|
|
13713
|
+
continue;
|
|
13714
|
+
}
|
|
13715
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
13422
13716
|
_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.push(decoded);
|
|
13423
13717
|
}
|
|
13424
13718
|
instance.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = _3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs;
|
|
@@ -13430,27 +13724,34 @@ var Application = class Application extends Object$1 {
|
|
|
13430
13724
|
_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
13431
13725
|
continue;
|
|
13432
13726
|
}
|
|
13433
|
-
|
|
13727
|
+
const decoded = await DidService.fromJsonLd(v, {
|
|
13434
13728
|
...options,
|
|
13435
13729
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
13436
|
-
})
|
|
13730
|
+
});
|
|
13731
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
13732
|
+
_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.push(decoded);
|
|
13437
13733
|
}
|
|
13438
13734
|
instance.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = _4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service;
|
|
13439
13735
|
const _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = [];
|
|
13440
13736
|
let _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage__array = values["https://misskey-hub.net/ns#_misskey_followedMessage"];
|
|
13441
13737
|
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) {
|
|
13442
13738
|
if (v == null) continue;
|
|
13443
|
-
|
|
13739
|
+
const decoded = v["@value"];
|
|
13740
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
13741
|
+
_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage.push(decoded);
|
|
13444
13742
|
}
|
|
13445
13743
|
instance.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage;
|
|
13446
13744
|
const _2xEU4QtkC53RAun67T81Egqt9vmL_isCat = [];
|
|
13447
13745
|
let _2xEU4QtkC53RAun67T81Egqt9vmL_isCat__array = values["https://misskey-hub.net/ns#isCat"];
|
|
13448
13746
|
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) {
|
|
13449
13747
|
if (v == null) continue;
|
|
13450
|
-
|
|
13748
|
+
const decoded = v["@value"];
|
|
13749
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
13750
|
+
_2xEU4QtkC53RAun67T81Egqt9vmL_isCat.push(decoded);
|
|
13451
13751
|
}
|
|
13452
13752
|
instance.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = _2xEU4QtkC53RAun67T81Egqt9vmL_isCat;
|
|
13453
|
-
|
|
13753
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
13754
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
13454
13755
|
instance._cachedJsonLd = structuredClone(json);
|
|
13455
13756
|
} catch {
|
|
13456
13757
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -13718,7 +14019,9 @@ var IntransitiveActivity = class IntransitiveActivity extends Activity {
|
|
|
13718
14019
|
_fromSubclass: true
|
|
13719
14020
|
});
|
|
13720
14021
|
if (!(instance instanceof IntransitiveActivity)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
13721
|
-
|
|
14022
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
14023
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
14024
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
13722
14025
|
instance._cachedJsonLd = structuredClone(json);
|
|
13723
14026
|
} catch {
|
|
13724
14027
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -13867,7 +14170,9 @@ var Arrive = class Arrive extends IntransitiveActivity {
|
|
|
13867
14170
|
_fromSubclass: true
|
|
13868
14171
|
});
|
|
13869
14172
|
if (!(instance instanceof Arrive)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
13870
|
-
|
|
14173
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
14174
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
14175
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
13871
14176
|
instance._cachedJsonLd = structuredClone(json);
|
|
13872
14177
|
} catch {
|
|
13873
14178
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -14102,16 +14407,20 @@ var Article = class Article extends Object$1 {
|
|
|
14102
14407
|
_fromSubclass: true
|
|
14103
14408
|
});
|
|
14104
14409
|
if (!(instance instanceof Article)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
14410
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
14105
14411
|
const _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl = [];
|
|
14106
14412
|
let _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array = values["https://www.w3.org/ns/activitystreams#quoteUrl"];
|
|
14107
14413
|
if (_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array == null || _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array.length < 1) _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array = values["https://misskey-hub.net/ns#_misskey_quote"];
|
|
14108
14414
|
if (_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array == null || _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array.length < 1) _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array = values["http://fedibird.com/ns#quoteUri"];
|
|
14109
14415
|
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) {
|
|
14110
14416
|
if (v == null) continue;
|
|
14111
|
-
|
|
14417
|
+
const decoded = new URL(v["@value"]);
|
|
14418
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
14419
|
+
_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl.push(decoded);
|
|
14112
14420
|
}
|
|
14113
14421
|
instance.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl = _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl;
|
|
14114
|
-
|
|
14422
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
14423
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
14115
14424
|
instance._cachedJsonLd = structuredClone(json);
|
|
14116
14425
|
} catch {
|
|
14117
14426
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -14335,21 +14644,27 @@ var Document = class Document extends Object$1 {
|
|
|
14335
14644
|
_fromSubclass: true
|
|
14336
14645
|
});
|
|
14337
14646
|
if (!(instance instanceof Document)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
14647
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
14338
14648
|
const _2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width = [];
|
|
14339
14649
|
let _2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width__array = values["https://www.w3.org/ns/activitystreams#width"];
|
|
14340
14650
|
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) {
|
|
14341
14651
|
if (v == null) continue;
|
|
14342
|
-
|
|
14652
|
+
const decoded = v["@value"];
|
|
14653
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
14654
|
+
_2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width.push(decoded);
|
|
14343
14655
|
}
|
|
14344
14656
|
instance.#_2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width = _2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width;
|
|
14345
14657
|
const _2cGKFeFJMmiNpGZFEF75mCwFQsKb_height = [];
|
|
14346
14658
|
let _2cGKFeFJMmiNpGZFEF75mCwFQsKb_height__array = values["https://www.w3.org/ns/activitystreams#height"];
|
|
14347
14659
|
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) {
|
|
14348
14660
|
if (v == null) continue;
|
|
14349
|
-
|
|
14661
|
+
const decoded = v["@value"];
|
|
14662
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
14663
|
+
_2cGKFeFJMmiNpGZFEF75mCwFQsKb_height.push(decoded);
|
|
14350
14664
|
}
|
|
14351
14665
|
instance.#_2cGKFeFJMmiNpGZFEF75mCwFQsKb_height = _2cGKFeFJMmiNpGZFEF75mCwFQsKb_height;
|
|
14352
|
-
|
|
14666
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
14667
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
14353
14668
|
instance._cachedJsonLd = structuredClone(json);
|
|
14354
14669
|
} catch {
|
|
14355
14670
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -14514,7 +14829,9 @@ var Audio = class Audio extends Document {
|
|
|
14514
14829
|
_fromSubclass: true
|
|
14515
14830
|
});
|
|
14516
14831
|
if (!(instance instanceof Audio)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
14517
|
-
|
|
14832
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
14833
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
14834
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
14518
14835
|
instance._cachedJsonLd = structuredClone(json);
|
|
14519
14836
|
} catch {
|
|
14520
14837
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -14663,7 +14980,9 @@ var Ignore = class Ignore extends Activity {
|
|
|
14663
14980
|
_fromSubclass: true
|
|
14664
14981
|
});
|
|
14665
14982
|
if (!(instance instanceof Ignore)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
14666
|
-
|
|
14983
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
14984
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
14985
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
14667
14986
|
instance._cachedJsonLd = structuredClone(json);
|
|
14668
14987
|
} catch {
|
|
14669
14988
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -14813,7 +15132,9 @@ var Block = class Block extends Ignore {
|
|
|
14813
15132
|
_fromSubclass: true
|
|
14814
15133
|
});
|
|
14815
15134
|
if (!(instance instanceof Block)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
14816
|
-
|
|
15135
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
15136
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
15137
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
14817
15138
|
instance._cachedJsonLd = structuredClone(json);
|
|
14818
15139
|
} catch {
|
|
14819
15140
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -16841,11 +17162,14 @@ var Collection = class Collection extends Object$1 {
|
|
|
16841
17162
|
_fromSubclass: true
|
|
16842
17163
|
});
|
|
16843
17164
|
if (!(instance instanceof Collection)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
17165
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
16844
17166
|
const _XDbmNDuWHmrhqH712zqtecdbv1V_totalItems = [];
|
|
16845
17167
|
let _XDbmNDuWHmrhqH712zqtecdbv1V_totalItems__array = values["https://www.w3.org/ns/activitystreams#totalItems"];
|
|
16846
17168
|
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) {
|
|
16847
17169
|
if (v == null) continue;
|
|
16848
|
-
|
|
17170
|
+
const decoded = v["@value"];
|
|
17171
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
17172
|
+
_XDbmNDuWHmrhqH712zqtecdbv1V_totalItems.push(decoded);
|
|
16849
17173
|
}
|
|
16850
17174
|
instance.#_XDbmNDuWHmrhqH712zqtecdbv1V_totalItems = _XDbmNDuWHmrhqH712zqtecdbv1V_totalItems;
|
|
16851
17175
|
const _3UyUdxnyn6cDn53QKrh4MBiearma_current = [];
|
|
@@ -16856,10 +17180,12 @@ var Collection = class Collection extends Object$1 {
|
|
|
16856
17180
|
_3UyUdxnyn6cDn53QKrh4MBiearma_current.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
16857
17181
|
continue;
|
|
16858
17182
|
}
|
|
16859
|
-
|
|
17183
|
+
const decoded = await CollectionPage.fromJsonLd(v, {
|
|
16860
17184
|
...options,
|
|
16861
17185
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
16862
|
-
})
|
|
17186
|
+
});
|
|
17187
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
17188
|
+
_3UyUdxnyn6cDn53QKrh4MBiearma_current.push(decoded);
|
|
16863
17189
|
}
|
|
16864
17190
|
instance.#_3UyUdxnyn6cDn53QKrh4MBiearma_current = _3UyUdxnyn6cDn53QKrh4MBiearma_current;
|
|
16865
17191
|
const _J52RqweMe6hhv7RnLJMC8BExTE5_first = [];
|
|
@@ -16870,10 +17196,12 @@ var Collection = class Collection extends Object$1 {
|
|
|
16870
17196
|
_J52RqweMe6hhv7RnLJMC8BExTE5_first.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
16871
17197
|
continue;
|
|
16872
17198
|
}
|
|
16873
|
-
|
|
17199
|
+
const decoded = await CollectionPage.fromJsonLd(v, {
|
|
16874
17200
|
...options,
|
|
16875
17201
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
16876
|
-
})
|
|
17202
|
+
});
|
|
17203
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
17204
|
+
_J52RqweMe6hhv7RnLJMC8BExTE5_first.push(decoded);
|
|
16877
17205
|
}
|
|
16878
17206
|
instance.#_J52RqweMe6hhv7RnLJMC8BExTE5_first = _J52RqweMe6hhv7RnLJMC8BExTE5_first;
|
|
16879
17207
|
const _gyJJnyEFnuNVi1HFZKfAn3Hfn26_last = [];
|
|
@@ -16884,10 +17212,12 @@ var Collection = class Collection extends Object$1 {
|
|
|
16884
17212
|
_gyJJnyEFnuNVi1HFZKfAn3Hfn26_last.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
16885
17213
|
continue;
|
|
16886
17214
|
}
|
|
16887
|
-
|
|
17215
|
+
const decoded = await CollectionPage.fromJsonLd(v, {
|
|
16888
17216
|
...options,
|
|
16889
17217
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
16890
|
-
})
|
|
17218
|
+
});
|
|
17219
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
17220
|
+
_gyJJnyEFnuNVi1HFZKfAn3Hfn26_last.push(decoded);
|
|
16891
17221
|
}
|
|
16892
17222
|
instance.#_gyJJnyEFnuNVi1HFZKfAn3Hfn26_last = _gyJJnyEFnuNVi1HFZKfAn3Hfn26_last;
|
|
16893
17223
|
const _2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = [];
|
|
@@ -16965,7 +17295,11 @@ var Collection = class Collection extends Object$1 {
|
|
|
16965
17295
|
...options,
|
|
16966
17296
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
16967
17297
|
}) : void 0;
|
|
16968
|
-
if (typeof decoded === "undefined")
|
|
17298
|
+
if (typeof decoded === "undefined") {
|
|
17299
|
+
shouldCacheJsonLd = false;
|
|
17300
|
+
continue;
|
|
17301
|
+
}
|
|
17302
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
16969
17303
|
_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items.push(decoded);
|
|
16970
17304
|
}
|
|
16971
17305
|
instance.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = _2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items;
|
|
@@ -16977,10 +17311,12 @@ var Collection = class Collection extends Object$1 {
|
|
|
16977
17311
|
_4TB9Qd9ddtcZEpMfzbHhzafE6jaJ_likesOf.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
16978
17312
|
continue;
|
|
16979
17313
|
}
|
|
16980
|
-
|
|
17314
|
+
const decoded = await Object$1.fromJsonLd(v, {
|
|
16981
17315
|
...options,
|
|
16982
17316
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
16983
|
-
})
|
|
17317
|
+
});
|
|
17318
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
17319
|
+
_4TB9Qd9ddtcZEpMfzbHhzafE6jaJ_likesOf.push(decoded);
|
|
16984
17320
|
}
|
|
16985
17321
|
instance.#_4TB9Qd9ddtcZEpMfzbHhzafE6jaJ_likesOf = _4TB9Qd9ddtcZEpMfzbHhzafE6jaJ_likesOf;
|
|
16986
17322
|
const _3manzgeKiPsugpztKGiaUUwJ3ito_sharesOf = [];
|
|
@@ -16991,10 +17327,12 @@ var Collection = class Collection extends Object$1 {
|
|
|
16991
17327
|
_3manzgeKiPsugpztKGiaUUwJ3ito_sharesOf.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
16992
17328
|
continue;
|
|
16993
17329
|
}
|
|
16994
|
-
|
|
17330
|
+
const decoded = await Object$1.fromJsonLd(v, {
|
|
16995
17331
|
...options,
|
|
16996
17332
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
16997
|
-
})
|
|
17333
|
+
});
|
|
17334
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
17335
|
+
_3manzgeKiPsugpztKGiaUUwJ3ito_sharesOf.push(decoded);
|
|
16998
17336
|
}
|
|
16999
17337
|
instance.#_3manzgeKiPsugpztKGiaUUwJ3ito_sharesOf = _3manzgeKiPsugpztKGiaUUwJ3ito_sharesOf;
|
|
17000
17338
|
const _3T3oGm3twpcQUcrnMisXQtmDZ32X_repliesOf = [];
|
|
@@ -17005,10 +17343,12 @@ var Collection = class Collection extends Object$1 {
|
|
|
17005
17343
|
_3T3oGm3twpcQUcrnMisXQtmDZ32X_repliesOf.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
17006
17344
|
continue;
|
|
17007
17345
|
}
|
|
17008
|
-
|
|
17346
|
+
const decoded = await Object$1.fromJsonLd(v, {
|
|
17009
17347
|
...options,
|
|
17010
17348
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
17011
|
-
})
|
|
17349
|
+
});
|
|
17350
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
17351
|
+
_3T3oGm3twpcQUcrnMisXQtmDZ32X_repliesOf.push(decoded);
|
|
17012
17352
|
}
|
|
17013
17353
|
instance.#_3T3oGm3twpcQUcrnMisXQtmDZ32X_repliesOf = _3T3oGm3twpcQUcrnMisXQtmDZ32X_repliesOf;
|
|
17014
17354
|
const _2bvRkAFZjMfVD8jiUWZJr5YokSeN_inboxOf = [];
|
|
@@ -17019,10 +17359,12 @@ var Collection = class Collection extends Object$1 {
|
|
|
17019
17359
|
_2bvRkAFZjMfVD8jiUWZJr5YokSeN_inboxOf.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
17020
17360
|
continue;
|
|
17021
17361
|
}
|
|
17022
|
-
|
|
17362
|
+
const decoded = await Object$1.fromJsonLd(v, {
|
|
17023
17363
|
...options,
|
|
17024
17364
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
17025
|
-
})
|
|
17365
|
+
});
|
|
17366
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
17367
|
+
_2bvRkAFZjMfVD8jiUWZJr5YokSeN_inboxOf.push(decoded);
|
|
17026
17368
|
}
|
|
17027
17369
|
instance.#_2bvRkAFZjMfVD8jiUWZJr5YokSeN_inboxOf = _2bvRkAFZjMfVD8jiUWZJr5YokSeN_inboxOf;
|
|
17028
17370
|
const _4AHzVZDxHjK6uEWa9UiKHGK34yYm_outboxOf = [];
|
|
@@ -17033,10 +17375,12 @@ var Collection = class Collection extends Object$1 {
|
|
|
17033
17375
|
_4AHzVZDxHjK6uEWa9UiKHGK34yYm_outboxOf.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
17034
17376
|
continue;
|
|
17035
17377
|
}
|
|
17036
|
-
|
|
17378
|
+
const decoded = await Object$1.fromJsonLd(v, {
|
|
17037
17379
|
...options,
|
|
17038
17380
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
17039
|
-
})
|
|
17381
|
+
});
|
|
17382
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
17383
|
+
_4AHzVZDxHjK6uEWa9UiKHGK34yYm_outboxOf.push(decoded);
|
|
17040
17384
|
}
|
|
17041
17385
|
instance.#_4AHzVZDxHjK6uEWa9UiKHGK34yYm_outboxOf = _4AHzVZDxHjK6uEWa9UiKHGK34yYm_outboxOf;
|
|
17042
17386
|
const _41aoZ5M6yRUHy3Zx8q6iuZQxtopb_followersOf = [];
|
|
@@ -17047,10 +17391,12 @@ var Collection = class Collection extends Object$1 {
|
|
|
17047
17391
|
_41aoZ5M6yRUHy3Zx8q6iuZQxtopb_followersOf.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
17048
17392
|
continue;
|
|
17049
17393
|
}
|
|
17050
|
-
|
|
17394
|
+
const decoded = await Object$1.fromJsonLd(v, {
|
|
17051
17395
|
...options,
|
|
17052
17396
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
17053
|
-
})
|
|
17397
|
+
});
|
|
17398
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
17399
|
+
_41aoZ5M6yRUHy3Zx8q6iuZQxtopb_followersOf.push(decoded);
|
|
17054
17400
|
}
|
|
17055
17401
|
instance.#_41aoZ5M6yRUHy3Zx8q6iuZQxtopb_followersOf = _41aoZ5M6yRUHy3Zx8q6iuZQxtopb_followersOf;
|
|
17056
17402
|
const _2nXT2Ah42UjEEQF5oJQ39CbKB1xj_followingOf = [];
|
|
@@ -17061,10 +17407,12 @@ var Collection = class Collection extends Object$1 {
|
|
|
17061
17407
|
_2nXT2Ah42UjEEQF5oJQ39CbKB1xj_followingOf.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
17062
17408
|
continue;
|
|
17063
17409
|
}
|
|
17064
|
-
|
|
17410
|
+
const decoded = await Object$1.fromJsonLd(v, {
|
|
17065
17411
|
...options,
|
|
17066
17412
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
17067
|
-
})
|
|
17413
|
+
});
|
|
17414
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
17415
|
+
_2nXT2Ah42UjEEQF5oJQ39CbKB1xj_followingOf.push(decoded);
|
|
17068
17416
|
}
|
|
17069
17417
|
instance.#_2nXT2Ah42UjEEQF5oJQ39CbKB1xj_followingOf = _2nXT2Ah42UjEEQF5oJQ39CbKB1xj_followingOf;
|
|
17070
17418
|
const _2bsySzmT3qEZcrnoe3tZ5xBjXSju_likedOf = [];
|
|
@@ -17075,13 +17423,16 @@ var Collection = class Collection extends Object$1 {
|
|
|
17075
17423
|
_2bsySzmT3qEZcrnoe3tZ5xBjXSju_likedOf.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
17076
17424
|
continue;
|
|
17077
17425
|
}
|
|
17078
|
-
|
|
17426
|
+
const decoded = await Object$1.fromJsonLd(v, {
|
|
17079
17427
|
...options,
|
|
17080
17428
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
17081
|
-
})
|
|
17429
|
+
});
|
|
17430
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
17431
|
+
_2bsySzmT3qEZcrnoe3tZ5xBjXSju_likedOf.push(decoded);
|
|
17082
17432
|
}
|
|
17083
17433
|
instance.#_2bsySzmT3qEZcrnoe3tZ5xBjXSju_likedOf = _2bsySzmT3qEZcrnoe3tZ5xBjXSju_likedOf;
|
|
17084
|
-
|
|
17434
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
17435
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
17085
17436
|
instance._cachedJsonLd = structuredClone(json);
|
|
17086
17437
|
} catch {
|
|
17087
17438
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -17791,6 +18142,7 @@ var CollectionPage = class CollectionPage extends Collection {
|
|
|
17791
18142
|
_fromSubclass: true
|
|
17792
18143
|
});
|
|
17793
18144
|
if (!(instance instanceof CollectionPage)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
18145
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
17794
18146
|
const _2kWgBhQKjEauxx8C6qF3ZQamK4Le_partOf = [];
|
|
17795
18147
|
let _2kWgBhQKjEauxx8C6qF3ZQamK4Le_partOf__array = values["https://www.w3.org/ns/activitystreams#partOf"];
|
|
17796
18148
|
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) {
|
|
@@ -17799,10 +18151,12 @@ var CollectionPage = class CollectionPage extends Collection {
|
|
|
17799
18151
|
_2kWgBhQKjEauxx8C6qF3ZQamK4Le_partOf.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
17800
18152
|
continue;
|
|
17801
18153
|
}
|
|
17802
|
-
|
|
18154
|
+
const decoded = await Collection.fromJsonLd(v, {
|
|
17803
18155
|
...options,
|
|
17804
18156
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
17805
|
-
})
|
|
18157
|
+
});
|
|
18158
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
18159
|
+
_2kWgBhQKjEauxx8C6qF3ZQamK4Le_partOf.push(decoded);
|
|
17806
18160
|
}
|
|
17807
18161
|
instance.#_2kWgBhQKjEauxx8C6qF3ZQamK4Le_partOf = _2kWgBhQKjEauxx8C6qF3ZQamK4Le_partOf;
|
|
17808
18162
|
const _3BT4kQLcXhHx7TAWaNDKh8nFn9eY_next = [];
|
|
@@ -17813,10 +18167,12 @@ var CollectionPage = class CollectionPage extends Collection {
|
|
|
17813
18167
|
_3BT4kQLcXhHx7TAWaNDKh8nFn9eY_next.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
17814
18168
|
continue;
|
|
17815
18169
|
}
|
|
17816
|
-
|
|
18170
|
+
const decoded = await CollectionPage.fromJsonLd(v, {
|
|
17817
18171
|
...options,
|
|
17818
18172
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
17819
|
-
})
|
|
18173
|
+
});
|
|
18174
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
18175
|
+
_3BT4kQLcXhHx7TAWaNDKh8nFn9eY_next.push(decoded);
|
|
17820
18176
|
}
|
|
17821
18177
|
instance.#_3BT4kQLcXhHx7TAWaNDKh8nFn9eY_next = _3BT4kQLcXhHx7TAWaNDKh8nFn9eY_next;
|
|
17822
18178
|
const _3b8yG8tDNzQFFEnWhCc13G8eHooA_prev = [];
|
|
@@ -17827,13 +18183,16 @@ var CollectionPage = class CollectionPage extends Collection {
|
|
|
17827
18183
|
_3b8yG8tDNzQFFEnWhCc13G8eHooA_prev.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
17828
18184
|
continue;
|
|
17829
18185
|
}
|
|
17830
|
-
|
|
18186
|
+
const decoded = await CollectionPage.fromJsonLd(v, {
|
|
17831
18187
|
...options,
|
|
17832
18188
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
17833
|
-
})
|
|
18189
|
+
});
|
|
18190
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
18191
|
+
_3b8yG8tDNzQFFEnWhCc13G8eHooA_prev.push(decoded);
|
|
17834
18192
|
}
|
|
17835
18193
|
instance.#_3b8yG8tDNzQFFEnWhCc13G8eHooA_prev = _3b8yG8tDNzQFFEnWhCc13G8eHooA_prev;
|
|
17836
|
-
|
|
18194
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
18195
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
17837
18196
|
instance._cachedJsonLd = structuredClone(json);
|
|
17838
18197
|
} catch {
|
|
17839
18198
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -18016,7 +18375,9 @@ var Create = class Create extends Activity {
|
|
|
18016
18375
|
_fromSubclass: true
|
|
18017
18376
|
});
|
|
18018
18377
|
if (!(instance instanceof Create)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
18019
|
-
|
|
18378
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
18379
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
18380
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
18020
18381
|
instance._cachedJsonLd = structuredClone(json);
|
|
18021
18382
|
} catch {
|
|
18022
18383
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -18180,7 +18541,9 @@ var Delete = class Delete extends Activity {
|
|
|
18180
18541
|
_fromSubclass: true
|
|
18181
18542
|
});
|
|
18182
18543
|
if (!(instance instanceof Delete)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
18183
|
-
|
|
18544
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
18545
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
18546
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
18184
18547
|
instance._cachedJsonLd = structuredClone(json);
|
|
18185
18548
|
} catch {
|
|
18186
18549
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -18331,7 +18694,9 @@ var Dislike = class Dislike extends Activity {
|
|
|
18331
18694
|
_fromSubclass: true
|
|
18332
18695
|
});
|
|
18333
18696
|
if (!(instance instanceof Dislike)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
18334
|
-
|
|
18697
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
18698
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
18699
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
18335
18700
|
instance._cachedJsonLd = structuredClone(json);
|
|
18336
18701
|
} catch {
|
|
18337
18702
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -18356,6 +18721,7 @@ var Endpoints = class {
|
|
|
18356
18721
|
#tracerProvider;
|
|
18357
18722
|
#warning;
|
|
18358
18723
|
#cachedJsonLd;
|
|
18724
|
+
#shouldCacheJsonLd = true;
|
|
18359
18725
|
id;
|
|
18360
18726
|
get _documentLoader() {
|
|
18361
18727
|
return this.#documentLoader;
|
|
@@ -18375,6 +18741,17 @@ var Endpoints = class {
|
|
|
18375
18741
|
set _cachedJsonLd(value) {
|
|
18376
18742
|
this.#cachedJsonLd = value;
|
|
18377
18743
|
}
|
|
18744
|
+
get _shouldCacheJsonLd() {
|
|
18745
|
+
return this.#shouldCacheJsonLd;
|
|
18746
|
+
}
|
|
18747
|
+
set _shouldCacheJsonLd(value) {
|
|
18748
|
+
this.#shouldCacheJsonLd = value;
|
|
18749
|
+
}
|
|
18750
|
+
static _shouldCacheDecodedJsonLd(value) {
|
|
18751
|
+
if (value == null || typeof value !== "object") return true;
|
|
18752
|
+
if (!("_shouldCacheJsonLd" in value)) return true;
|
|
18753
|
+
return value._shouldCacheJsonLd;
|
|
18754
|
+
}
|
|
18378
18755
|
/**
|
|
18379
18756
|
* The type URI of {@link Endpoints}: `https://www.w3.org/ns/activitystreams#Endpoints`.
|
|
18380
18757
|
*/
|
|
@@ -18673,49 +19050,63 @@ var Endpoints = class {
|
|
|
18673
19050
|
if (!values["@type"].includes("https://www.w3.org/ns/activitystreams#Endpoints")) throw new TypeError("Invalid type: " + values["@type"]);
|
|
18674
19051
|
}
|
|
18675
19052
|
const instance = new this({ id: "@id" in values ? new URL(values["@id"]) : void 0 }, options);
|
|
19053
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
18676
19054
|
const _2JCYDbSxEHCCLdBYed33cCETfGyR_proxyUrl = [];
|
|
18677
19055
|
let _2JCYDbSxEHCCLdBYed33cCETfGyR_proxyUrl__array = values["https://www.w3.org/ns/activitystreams#proxyUrl"];
|
|
18678
19056
|
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) {
|
|
18679
19057
|
if (v == null) continue;
|
|
18680
|
-
|
|
19058
|
+
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"]) && (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) ? new URL(v["@id"]) : new URL(v["@id"], values["@id"] == null ? options.baseUrl : new URL(values["@id"]));
|
|
19059
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
19060
|
+
_2JCYDbSxEHCCLdBYed33cCETfGyR_proxyUrl.push(decoded);
|
|
18681
19061
|
}
|
|
18682
19062
|
instance.#_2JCYDbSxEHCCLdBYed33cCETfGyR_proxyUrl = _2JCYDbSxEHCCLdBYed33cCETfGyR_proxyUrl;
|
|
18683
19063
|
const _25S6UmgzDead8hxL5sQFezZTAusd_oauthAuthorizationEndpoint = [];
|
|
18684
19064
|
let _25S6UmgzDead8hxL5sQFezZTAusd_oauthAuthorizationEndpoint__array = values["https://www.w3.org/ns/activitystreams#oauthAuthorizationEndpoint"];
|
|
18685
19065
|
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) {
|
|
18686
19066
|
if (v == null) continue;
|
|
18687
|
-
|
|
19067
|
+
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"]) && (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) ? new URL(v["@id"]) : new URL(v["@id"], values["@id"] == null ? options.baseUrl : new URL(values["@id"]));
|
|
19068
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
19069
|
+
_25S6UmgzDead8hxL5sQFezZTAusd_oauthAuthorizationEndpoint.push(decoded);
|
|
18688
19070
|
}
|
|
18689
19071
|
instance.#_25S6UmgzDead8hxL5sQFezZTAusd_oauthAuthorizationEndpoint = _25S6UmgzDead8hxL5sQFezZTAusd_oauthAuthorizationEndpoint;
|
|
18690
19072
|
const _iAMxqrSba7yBCRB1FZ5kEVdKEZ3_oauthTokenEndpoint = [];
|
|
18691
19073
|
let _iAMxqrSba7yBCRB1FZ5kEVdKEZ3_oauthTokenEndpoint__array = values["https://www.w3.org/ns/activitystreams#oauthTokenEndpoint"];
|
|
18692
19074
|
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) {
|
|
18693
19075
|
if (v == null) continue;
|
|
18694
|
-
|
|
19076
|
+
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"]) && (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) ? new URL(v["@id"]) : new URL(v["@id"], values["@id"] == null ? options.baseUrl : new URL(values["@id"]));
|
|
19077
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
19078
|
+
_iAMxqrSba7yBCRB1FZ5kEVdKEZ3_oauthTokenEndpoint.push(decoded);
|
|
18695
19079
|
}
|
|
18696
19080
|
instance.#_iAMxqrSba7yBCRB1FZ5kEVdKEZ3_oauthTokenEndpoint = _iAMxqrSba7yBCRB1FZ5kEVdKEZ3_oauthTokenEndpoint;
|
|
18697
19081
|
const _8Bx9qN8oU7Bpt2xi6khaxWp1gMr_provideClientKey = [];
|
|
18698
19082
|
let _8Bx9qN8oU7Bpt2xi6khaxWp1gMr_provideClientKey__array = values["https://www.w3.org/ns/activitystreams#provideClientKey"];
|
|
18699
19083
|
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) {
|
|
18700
19084
|
if (v == null) continue;
|
|
18701
|
-
|
|
19085
|
+
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"]) && (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) ? new URL(v["@id"]) : new URL(v["@id"], values["@id"] == null ? options.baseUrl : new URL(values["@id"]));
|
|
19086
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
19087
|
+
_8Bx9qN8oU7Bpt2xi6khaxWp1gMr_provideClientKey.push(decoded);
|
|
18702
19088
|
}
|
|
18703
19089
|
instance.#_8Bx9qN8oU7Bpt2xi6khaxWp1gMr_provideClientKey = _8Bx9qN8oU7Bpt2xi6khaxWp1gMr_provideClientKey;
|
|
18704
19090
|
const _3dU7PMVQZJpsCpo2F4RQXxBXdPmS_signClientKey = [];
|
|
18705
19091
|
let _3dU7PMVQZJpsCpo2F4RQXxBXdPmS_signClientKey__array = values["https://www.w3.org/ns/activitystreams#signClientKey"];
|
|
18706
19092
|
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) {
|
|
18707
19093
|
if (v == null) continue;
|
|
18708
|
-
|
|
19094
|
+
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"]) && (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) ? new URL(v["@id"]) : new URL(v["@id"], values["@id"] == null ? options.baseUrl : new URL(values["@id"]));
|
|
19095
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
19096
|
+
_3dU7PMVQZJpsCpo2F4RQXxBXdPmS_signClientKey.push(decoded);
|
|
18709
19097
|
}
|
|
18710
19098
|
instance.#_3dU7PMVQZJpsCpo2F4RQXxBXdPmS_signClientKey = _3dU7PMVQZJpsCpo2F4RQXxBXdPmS_signClientKey;
|
|
18711
19099
|
const _3JprUSDLVqqX4dwHRi37qGZZCRCc_sharedInbox = [];
|
|
18712
19100
|
let _3JprUSDLVqqX4dwHRi37qGZZCRCc_sharedInbox__array = values["https://www.w3.org/ns/activitystreams#sharedInbox"];
|
|
18713
19101
|
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) {
|
|
18714
19102
|
if (v == null) continue;
|
|
18715
|
-
|
|
19103
|
+
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"]) && (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) ? new URL(v["@id"]) : new URL(v["@id"], values["@id"] == null ? options.baseUrl : new URL(values["@id"]));
|
|
19104
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
19105
|
+
_3JprUSDLVqqX4dwHRi37qGZZCRCc_sharedInbox.push(decoded);
|
|
18716
19106
|
}
|
|
18717
19107
|
instance.#_3JprUSDLVqqX4dwHRi37qGZZCRCc_sharedInbox = _3JprUSDLVqqX4dwHRi37qGZZCRCc_sharedInbox;
|
|
18718
|
-
|
|
19108
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
19109
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
18719
19110
|
instance._cachedJsonLd = structuredClone(json);
|
|
18720
19111
|
} catch {
|
|
18721
19112
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -18904,7 +19295,9 @@ var Event = class Event extends Object$1 {
|
|
|
18904
19295
|
_fromSubclass: true
|
|
18905
19296
|
});
|
|
18906
19297
|
if (!(instance instanceof Event)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
18907
|
-
|
|
19298
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
19299
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
19300
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
18908
19301
|
instance._cachedJsonLd = structuredClone(json);
|
|
18909
19302
|
} catch {
|
|
18910
19303
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -19053,7 +19446,9 @@ var Flag = class Flag extends Activity {
|
|
|
19053
19446
|
_fromSubclass: true
|
|
19054
19447
|
});
|
|
19055
19448
|
if (!(instance instanceof Flag)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
19056
|
-
|
|
19449
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
19450
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
19451
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
19057
19452
|
instance._cachedJsonLd = structuredClone(json);
|
|
19058
19453
|
} catch {
|
|
19059
19454
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -19206,7 +19601,9 @@ var Follow = class Follow extends Activity {
|
|
|
19206
19601
|
_fromSubclass: true
|
|
19207
19602
|
});
|
|
19208
19603
|
if (!(instance instanceof Follow)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
19209
|
-
|
|
19604
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
19605
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
19606
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
19210
19607
|
instance._cachedJsonLd = structuredClone(json);
|
|
19211
19608
|
} catch {
|
|
19212
19609
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -22071,12 +22468,17 @@ var Group = class Group extends Object$1 {
|
|
|
22071
22468
|
_fromSubclass: true
|
|
22072
22469
|
});
|
|
22073
22470
|
if (!(instance instanceof Group)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
22471
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
22074
22472
|
const _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = [];
|
|
22075
22473
|
let _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername__array = values["https://www.w3.org/ns/activitystreams#preferredUsername"];
|
|
22076
22474
|
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) {
|
|
22077
22475
|
if (v == null) continue;
|
|
22078
|
-
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;
|
|
22079
|
-
if (typeof decoded === "undefined")
|
|
22476
|
+
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;
|
|
22477
|
+
if (typeof decoded === "undefined") {
|
|
22478
|
+
shouldCacheJsonLd = false;
|
|
22479
|
+
continue;
|
|
22480
|
+
}
|
|
22481
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
22080
22482
|
_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername.push(decoded);
|
|
22081
22483
|
}
|
|
22082
22484
|
instance.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername;
|
|
@@ -22088,10 +22490,12 @@ var Group = class Group extends Object$1 {
|
|
|
22088
22490
|
_axq166E2eZADq34V4MYUc8KMZdC_publicKey.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
22089
22491
|
continue;
|
|
22090
22492
|
}
|
|
22091
|
-
|
|
22493
|
+
const decoded = await CryptographicKey.fromJsonLd(v, {
|
|
22092
22494
|
...options,
|
|
22093
22495
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
22094
|
-
})
|
|
22496
|
+
});
|
|
22497
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
22498
|
+
_axq166E2eZADq34V4MYUc8KMZdC_publicKey.push(decoded);
|
|
22095
22499
|
}
|
|
22096
22500
|
instance.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = _axq166E2eZADq34V4MYUc8KMZdC_publicKey;
|
|
22097
22501
|
const _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = [];
|
|
@@ -22102,17 +22506,21 @@ var Group = class Group extends Object$1 {
|
|
|
22102
22506
|
_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
22103
22507
|
continue;
|
|
22104
22508
|
}
|
|
22105
|
-
|
|
22509
|
+
const decoded = await Multikey.fromJsonLd(v, {
|
|
22106
22510
|
...options,
|
|
22107
22511
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
22108
|
-
})
|
|
22512
|
+
});
|
|
22513
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
22514
|
+
_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(decoded);
|
|
22109
22515
|
}
|
|
22110
22516
|
instance.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod;
|
|
22111
22517
|
const _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = [];
|
|
22112
22518
|
let _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers__array = values["https://www.w3.org/ns/activitystreams#manuallyApprovesFollowers"];
|
|
22113
22519
|
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) {
|
|
22114
22520
|
if (v == null) continue;
|
|
22115
|
-
|
|
22521
|
+
const decoded = v["@value"];
|
|
22522
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
22523
|
+
_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers.push(decoded);
|
|
22116
22524
|
}
|
|
22117
22525
|
instance.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers;
|
|
22118
22526
|
const _3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = [];
|
|
@@ -22130,7 +22538,11 @@ var Group = class Group extends Object$1 {
|
|
|
22130
22538
|
...options,
|
|
22131
22539
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
22132
22540
|
}) : void 0;
|
|
22133
|
-
if (typeof decoded === "undefined")
|
|
22541
|
+
if (typeof decoded === "undefined") {
|
|
22542
|
+
shouldCacheJsonLd = false;
|
|
22543
|
+
continue;
|
|
22544
|
+
}
|
|
22545
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
22134
22546
|
_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox.push(decoded);
|
|
22135
22547
|
}
|
|
22136
22548
|
instance.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = _3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox;
|
|
@@ -22149,7 +22561,11 @@ var Group = class Group extends Object$1 {
|
|
|
22149
22561
|
...options,
|
|
22150
22562
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
22151
22563
|
}) : void 0;
|
|
22152
|
-
if (typeof decoded === "undefined")
|
|
22564
|
+
if (typeof decoded === "undefined") {
|
|
22565
|
+
shouldCacheJsonLd = false;
|
|
22566
|
+
continue;
|
|
22567
|
+
}
|
|
22568
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
22153
22569
|
_41QwhqJouoLg3h8dRPKat21brynC_outbox.push(decoded);
|
|
22154
22570
|
}
|
|
22155
22571
|
instance.#_41QwhqJouoLg3h8dRPKat21brynC_outbox = _41QwhqJouoLg3h8dRPKat21brynC_outbox;
|
|
@@ -22161,10 +22577,12 @@ var Group = class Group extends Object$1 {
|
|
|
22161
22577
|
_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
22162
22578
|
continue;
|
|
22163
22579
|
}
|
|
22164
|
-
|
|
22580
|
+
const decoded = await Collection.fromJsonLd(v, {
|
|
22165
22581
|
...options,
|
|
22166
22582
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
22167
|
-
})
|
|
22583
|
+
});
|
|
22584
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
22585
|
+
_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.push(decoded);
|
|
22168
22586
|
}
|
|
22169
22587
|
instance.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = _3yAv8jymNfNuJUDuBzJ1NQhdbAee_following;
|
|
22170
22588
|
const _BBCTgfphhsFzpVfKTykGSpBNwoA_followers = [];
|
|
@@ -22175,10 +22593,12 @@ var Group = class Group extends Object$1 {
|
|
|
22175
22593
|
_BBCTgfphhsFzpVfKTykGSpBNwoA_followers.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
22176
22594
|
continue;
|
|
22177
22595
|
}
|
|
22178
|
-
|
|
22596
|
+
const decoded = await Collection.fromJsonLd(v, {
|
|
22179
22597
|
...options,
|
|
22180
22598
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
22181
|
-
})
|
|
22599
|
+
});
|
|
22600
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
22601
|
+
_BBCTgfphhsFzpVfKTykGSpBNwoA_followers.push(decoded);
|
|
22182
22602
|
}
|
|
22183
22603
|
instance.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = _BBCTgfphhsFzpVfKTykGSpBNwoA_followers;
|
|
22184
22604
|
const _3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = [];
|
|
@@ -22189,10 +22609,12 @@ var Group = class Group extends Object$1 {
|
|
|
22189
22609
|
_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
22190
22610
|
continue;
|
|
22191
22611
|
}
|
|
22192
|
-
|
|
22612
|
+
const decoded = await Collection.fromJsonLd(v, {
|
|
22193
22613
|
...options,
|
|
22194
22614
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
22195
|
-
})
|
|
22615
|
+
});
|
|
22616
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
22617
|
+
_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.push(decoded);
|
|
22196
22618
|
}
|
|
22197
22619
|
instance.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = _3bgkPwJanyTCoVFM9ovRcus8tKkU_liked;
|
|
22198
22620
|
const _4N1vBJzXDf8NbBumeECQMFvKetja_featured = [];
|
|
@@ -22203,10 +22625,12 @@ var Group = class Group extends Object$1 {
|
|
|
22203
22625
|
_4N1vBJzXDf8NbBumeECQMFvKetja_featured.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
22204
22626
|
continue;
|
|
22205
22627
|
}
|
|
22206
|
-
|
|
22628
|
+
const decoded = await Collection.fromJsonLd(v, {
|
|
22207
22629
|
...options,
|
|
22208
22630
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
22209
|
-
})
|
|
22631
|
+
});
|
|
22632
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
22633
|
+
_4N1vBJzXDf8NbBumeECQMFvKetja_featured.push(decoded);
|
|
22210
22634
|
}
|
|
22211
22635
|
instance.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured = _4N1vBJzXDf8NbBumeECQMFvKetja_featured;
|
|
22212
22636
|
const _2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = [];
|
|
@@ -22217,10 +22641,12 @@ var Group = class Group extends Object$1 {
|
|
|
22217
22641
|
_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
22218
22642
|
continue;
|
|
22219
22643
|
}
|
|
22220
|
-
|
|
22644
|
+
const decoded = await Collection.fromJsonLd(v, {
|
|
22221
22645
|
...options,
|
|
22222
22646
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
22223
|
-
})
|
|
22647
|
+
});
|
|
22648
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
22649
|
+
_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.push(decoded);
|
|
22224
22650
|
}
|
|
22225
22651
|
instance.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = _2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags;
|
|
22226
22652
|
const _3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = [];
|
|
@@ -22231,48 +22657,60 @@ var Group = class Group extends Object$1 {
|
|
|
22231
22657
|
_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
22232
22658
|
continue;
|
|
22233
22659
|
}
|
|
22234
|
-
|
|
22660
|
+
const decoded = await Collection.fromJsonLd(v, {
|
|
22235
22661
|
...options,
|
|
22236
22662
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
22237
|
-
})
|
|
22663
|
+
});
|
|
22664
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
22665
|
+
_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.push(decoded);
|
|
22238
22666
|
}
|
|
22239
22667
|
instance.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = _3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams;
|
|
22240
22668
|
const _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = [];
|
|
22241
22669
|
let _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints__array = values["https://www.w3.org/ns/activitystreams#endpoints"];
|
|
22242
22670
|
for (const v of _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints__array == null ? [] : _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints__array.length === 1 && "@list" in _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints__array[0] ? _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints__array[0]["@list"] : _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints__array) {
|
|
22243
22671
|
if (v == null) continue;
|
|
22244
|
-
|
|
22672
|
+
const decoded = await Endpoints.fromJsonLd(v, {
|
|
22245
22673
|
...options,
|
|
22246
22674
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
22247
|
-
})
|
|
22675
|
+
});
|
|
22676
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
22677
|
+
_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.push(decoded);
|
|
22248
22678
|
}
|
|
22249
22679
|
instance.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints;
|
|
22250
22680
|
const _gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = [];
|
|
22251
22681
|
let _gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable__array = values["http://joinmastodon.org/ns#discoverable"];
|
|
22252
22682
|
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) {
|
|
22253
22683
|
if (v == null) continue;
|
|
22254
|
-
|
|
22684
|
+
const decoded = v["@value"];
|
|
22685
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
22686
|
+
_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable.push(decoded);
|
|
22255
22687
|
}
|
|
22256
22688
|
instance.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = _gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable;
|
|
22257
22689
|
const _2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = [];
|
|
22258
22690
|
let _2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended__array = values["http://joinmastodon.org/ns#suspended"];
|
|
22259
22691
|
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) {
|
|
22260
22692
|
if (v == null) continue;
|
|
22261
|
-
|
|
22693
|
+
const decoded = v["@value"];
|
|
22694
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
22695
|
+
_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended.push(decoded);
|
|
22262
22696
|
}
|
|
22263
22697
|
instance.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = _2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended;
|
|
22264
22698
|
const _79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = [];
|
|
22265
22699
|
let _79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial__array = values["http://joinmastodon.org/ns#memorial"];
|
|
22266
22700
|
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) {
|
|
22267
22701
|
if (v == null) continue;
|
|
22268
|
-
|
|
22702
|
+
const decoded = v["@value"];
|
|
22703
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
22704
|
+
_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial.push(decoded);
|
|
22269
22705
|
}
|
|
22270
22706
|
instance.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = _79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial;
|
|
22271
22707
|
const _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = [];
|
|
22272
22708
|
let _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable__array = values["http://joinmastodon.org/ns#indexable"];
|
|
22273
22709
|
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) {
|
|
22274
22710
|
if (v == null) continue;
|
|
22275
|
-
|
|
22711
|
+
const decoded = v["@value"];
|
|
22712
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
22713
|
+
_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable.push(decoded);
|
|
22276
22714
|
}
|
|
22277
22715
|
instance.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable;
|
|
22278
22716
|
const _2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = [];
|
|
@@ -22299,7 +22737,11 @@ var Group = class Group extends Object$1 {
|
|
|
22299
22737
|
...options,
|
|
22300
22738
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
22301
22739
|
}) : void 0;
|
|
22302
|
-
if (typeof decoded === "undefined")
|
|
22740
|
+
if (typeof decoded === "undefined") {
|
|
22741
|
+
shouldCacheJsonLd = false;
|
|
22742
|
+
continue;
|
|
22743
|
+
}
|
|
22744
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
22303
22745
|
_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.push(decoded);
|
|
22304
22746
|
}
|
|
22305
22747
|
instance.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = _2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo;
|
|
@@ -22327,7 +22769,11 @@ var Group = class Group extends Object$1 {
|
|
|
22327
22769
|
...options,
|
|
22328
22770
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
22329
22771
|
}) : void 0;
|
|
22330
|
-
if (typeof decoded === "undefined")
|
|
22772
|
+
if (typeof decoded === "undefined") {
|
|
22773
|
+
shouldCacheJsonLd = false;
|
|
22774
|
+
continue;
|
|
22775
|
+
}
|
|
22776
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
22331
22777
|
_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.push(decoded);
|
|
22332
22778
|
}
|
|
22333
22779
|
instance.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = _3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs;
|
|
@@ -22339,27 +22785,34 @@ var Group = class Group extends Object$1 {
|
|
|
22339
22785
|
_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
22340
22786
|
continue;
|
|
22341
22787
|
}
|
|
22342
|
-
|
|
22788
|
+
const decoded = await DidService.fromJsonLd(v, {
|
|
22343
22789
|
...options,
|
|
22344
22790
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
22345
|
-
})
|
|
22791
|
+
});
|
|
22792
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
22793
|
+
_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.push(decoded);
|
|
22346
22794
|
}
|
|
22347
22795
|
instance.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = _4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service;
|
|
22348
22796
|
const _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = [];
|
|
22349
22797
|
let _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage__array = values["https://misskey-hub.net/ns#_misskey_followedMessage"];
|
|
22350
22798
|
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) {
|
|
22351
22799
|
if (v == null) continue;
|
|
22352
|
-
|
|
22800
|
+
const decoded = v["@value"];
|
|
22801
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
22802
|
+
_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage.push(decoded);
|
|
22353
22803
|
}
|
|
22354
22804
|
instance.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage;
|
|
22355
22805
|
const _2xEU4QtkC53RAun67T81Egqt9vmL_isCat = [];
|
|
22356
22806
|
let _2xEU4QtkC53RAun67T81Egqt9vmL_isCat__array = values["https://misskey-hub.net/ns#isCat"];
|
|
22357
22807
|
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) {
|
|
22358
22808
|
if (v == null) continue;
|
|
22359
|
-
|
|
22809
|
+
const decoded = v["@value"];
|
|
22810
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
22811
|
+
_2xEU4QtkC53RAun67T81Egqt9vmL_isCat.push(decoded);
|
|
22360
22812
|
}
|
|
22361
22813
|
instance.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = _2xEU4QtkC53RAun67T81Egqt9vmL_isCat;
|
|
22362
|
-
|
|
22814
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
22815
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
22363
22816
|
instance._cachedJsonLd = structuredClone(json);
|
|
22364
22817
|
} catch {
|
|
22365
22818
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -22507,6 +22960,7 @@ var Link = class Link {
|
|
|
22507
22960
|
#tracerProvider;
|
|
22508
22961
|
#warning;
|
|
22509
22962
|
#cachedJsonLd;
|
|
22963
|
+
#shouldCacheJsonLd = true;
|
|
22510
22964
|
id;
|
|
22511
22965
|
get _documentLoader() {
|
|
22512
22966
|
return this.#documentLoader;
|
|
@@ -22526,6 +22980,17 @@ var Link = class Link {
|
|
|
22526
22980
|
set _cachedJsonLd(value) {
|
|
22527
22981
|
this.#cachedJsonLd = value;
|
|
22528
22982
|
}
|
|
22983
|
+
get _shouldCacheJsonLd() {
|
|
22984
|
+
return this.#shouldCacheJsonLd;
|
|
22985
|
+
}
|
|
22986
|
+
set _shouldCacheJsonLd(value) {
|
|
22987
|
+
this.#shouldCacheJsonLd = value;
|
|
22988
|
+
}
|
|
22989
|
+
static _shouldCacheDecodedJsonLd(value) {
|
|
22990
|
+
if (value == null || typeof value !== "object") return true;
|
|
22991
|
+
if (!("_shouldCacheJsonLd" in value)) return true;
|
|
22992
|
+
return value._shouldCacheJsonLd;
|
|
22993
|
+
}
|
|
22529
22994
|
/**
|
|
22530
22995
|
* The type URI of {@link Link}: `https://www.w3.org/ns/activitystreams#Link`.
|
|
22531
22996
|
*/
|
|
@@ -23052,33 +23517,44 @@ var Link = class Link {
|
|
|
23052
23517
|
if (!values["@type"].includes("https://www.w3.org/ns/activitystreams#Link")) throw new TypeError("Invalid type: " + values["@type"]);
|
|
23053
23518
|
}
|
|
23054
23519
|
const instance = new this({ id: "@id" in values ? new URL(values["@id"]) : void 0 }, options);
|
|
23520
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
23055
23521
|
const _pVjLsybKQdmkjuU7MHjiVmNnuj7_href = [];
|
|
23056
23522
|
let _pVjLsybKQdmkjuU7MHjiVmNnuj7_href__array = values["https://www.w3.org/ns/activitystreams#href"];
|
|
23057
23523
|
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) {
|
|
23058
23524
|
if (v == null) continue;
|
|
23059
|
-
|
|
23525
|
+
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"]) && (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) ? new URL(v["@id"]) : new URL(v["@id"], values["@id"] == null ? options.baseUrl : new URL(values["@id"]));
|
|
23526
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
23527
|
+
_pVjLsybKQdmkjuU7MHjiVmNnuj7_href.push(decoded);
|
|
23060
23528
|
}
|
|
23061
23529
|
instance.#_pVjLsybKQdmkjuU7MHjiVmNnuj7_href = _pVjLsybKQdmkjuU7MHjiVmNnuj7_href;
|
|
23062
23530
|
const _2a1c5GkfkQsnyyLybF8UXBQfFuHZ_rel = [];
|
|
23063
23531
|
let _2a1c5GkfkQsnyyLybF8UXBQfFuHZ_rel__array = values["https://www.w3.org/ns/activitystreams#rel"];
|
|
23064
23532
|
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) {
|
|
23065
23533
|
if (v == null) continue;
|
|
23066
|
-
|
|
23534
|
+
const decoded = v["@value"];
|
|
23535
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
23536
|
+
_2a1c5GkfkQsnyyLybF8UXBQfFuHZ_rel.push(decoded);
|
|
23067
23537
|
}
|
|
23068
23538
|
instance.#_2a1c5GkfkQsnyyLybF8UXBQfFuHZ_rel = _2a1c5GkfkQsnyyLybF8UXBQfFuHZ_rel;
|
|
23069
23539
|
const _3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType = [];
|
|
23070
23540
|
let _3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType__array = values["https://www.w3.org/ns/activitystreams#mediaType"];
|
|
23071
23541
|
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) {
|
|
23072
23542
|
if (v == null) continue;
|
|
23073
|
-
|
|
23543
|
+
const decoded = v["@value"];
|
|
23544
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
23545
|
+
_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType.push(decoded);
|
|
23074
23546
|
}
|
|
23075
23547
|
instance.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType = _3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType;
|
|
23076
23548
|
const _4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = [];
|
|
23077
23549
|
let _4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name__array = values["https://www.w3.org/ns/activitystreams#name"];
|
|
23078
23550
|
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) {
|
|
23079
23551
|
if (v == null) continue;
|
|
23080
|
-
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;
|
|
23081
|
-
if (typeof decoded === "undefined")
|
|
23552
|
+
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;
|
|
23553
|
+
if (typeof decoded === "undefined") {
|
|
23554
|
+
shouldCacheJsonLd = false;
|
|
23555
|
+
continue;
|
|
23556
|
+
}
|
|
23557
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
23082
23558
|
_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name.push(decoded);
|
|
23083
23559
|
}
|
|
23084
23560
|
instance.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = _4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name;
|
|
@@ -23086,21 +23562,27 @@ var Link = class Link {
|
|
|
23086
23562
|
let _f57HKWCp1YRBbTJE8PF12RbDJGf_hreflang__array = values["https://www.w3.org/ns/activitystreams#hreflang"];
|
|
23087
23563
|
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) {
|
|
23088
23564
|
if (v == null) continue;
|
|
23089
|
-
|
|
23565
|
+
const decoded = new Intl.Locale(v["@value"]);
|
|
23566
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
23567
|
+
_f57HKWCp1YRBbTJE8PF12RbDJGf_hreflang.push(decoded);
|
|
23090
23568
|
}
|
|
23091
23569
|
instance.#_f57HKWCp1YRBbTJE8PF12RbDJGf_hreflang = _f57HKWCp1YRBbTJE8PF12RbDJGf_hreflang;
|
|
23092
23570
|
const _2cGKFeFJMmiNpGZFEF75mCwFQsKb_height = [];
|
|
23093
23571
|
let _2cGKFeFJMmiNpGZFEF75mCwFQsKb_height__array = values["https://www.w3.org/ns/activitystreams#height"];
|
|
23094
23572
|
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) {
|
|
23095
23573
|
if (v == null) continue;
|
|
23096
|
-
|
|
23574
|
+
const decoded = v["@value"];
|
|
23575
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
23576
|
+
_2cGKFeFJMmiNpGZFEF75mCwFQsKb_height.push(decoded);
|
|
23097
23577
|
}
|
|
23098
23578
|
instance.#_2cGKFeFJMmiNpGZFEF75mCwFQsKb_height = _2cGKFeFJMmiNpGZFEF75mCwFQsKb_height;
|
|
23099
23579
|
const _2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width = [];
|
|
23100
23580
|
let _2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width__array = values["https://www.w3.org/ns/activitystreams#width"];
|
|
23101
23581
|
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) {
|
|
23102
23582
|
if (v == null) continue;
|
|
23103
|
-
|
|
23583
|
+
const decoded = v["@value"];
|
|
23584
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
23585
|
+
_2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width.push(decoded);
|
|
23104
23586
|
}
|
|
23105
23587
|
instance.#_2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width = _2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width;
|
|
23106
23588
|
const _gCVTegXxWWCw6wWRxa1QF65zusg_preview = [];
|
|
@@ -23178,11 +23660,16 @@ var Link = class Link {
|
|
|
23178
23660
|
...options,
|
|
23179
23661
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
23180
23662
|
}) : void 0;
|
|
23181
|
-
if (typeof decoded === "undefined")
|
|
23663
|
+
if (typeof decoded === "undefined") {
|
|
23664
|
+
shouldCacheJsonLd = false;
|
|
23665
|
+
continue;
|
|
23666
|
+
}
|
|
23667
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
23182
23668
|
_gCVTegXxWWCw6wWRxa1QF65zusg_preview.push(decoded);
|
|
23183
23669
|
}
|
|
23184
23670
|
instance.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview = _gCVTegXxWWCw6wWRxa1QF65zusg_preview;
|
|
23185
|
-
|
|
23671
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
23672
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
23186
23673
|
instance._cachedJsonLd = structuredClone(json);
|
|
23187
23674
|
} catch {
|
|
23188
23675
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -23382,7 +23869,9 @@ var Hashtag = class Hashtag extends Link {
|
|
|
23382
23869
|
_fromSubclass: true
|
|
23383
23870
|
});
|
|
23384
23871
|
if (!(instance instanceof Hashtag)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
23385
|
-
|
|
23872
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
23873
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
23874
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
23386
23875
|
instance._cachedJsonLd = structuredClone(json);
|
|
23387
23876
|
} catch {
|
|
23388
23877
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -23536,7 +24025,9 @@ var Image = class Image extends Document {
|
|
|
23536
24025
|
_fromSubclass: true
|
|
23537
24026
|
});
|
|
23538
24027
|
if (!(instance instanceof Image)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
23539
|
-
|
|
24028
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
24029
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
24030
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
23540
24031
|
instance._cachedJsonLd = structuredClone(json);
|
|
23541
24032
|
} catch {
|
|
23542
24033
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -23686,7 +24177,9 @@ var Offer = class Offer extends Activity {
|
|
|
23686
24177
|
_fromSubclass: true
|
|
23687
24178
|
});
|
|
23688
24179
|
if (!(instance instanceof Offer)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
23689
|
-
|
|
24180
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
24181
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
24182
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
23690
24183
|
instance._cachedJsonLd = structuredClone(json);
|
|
23691
24184
|
} catch {
|
|
23692
24185
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -23834,7 +24327,9 @@ var Invite = class Invite extends Offer {
|
|
|
23834
24327
|
_fromSubclass: true
|
|
23835
24328
|
});
|
|
23836
24329
|
if (!(instance instanceof Invite)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
23837
|
-
|
|
24330
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
24331
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
24332
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
23838
24333
|
instance._cachedJsonLd = structuredClone(json);
|
|
23839
24334
|
} catch {
|
|
23840
24335
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -23982,7 +24477,9 @@ var Join = class Join extends Activity {
|
|
|
23982
24477
|
_fromSubclass: true
|
|
23983
24478
|
});
|
|
23984
24479
|
if (!(instance instanceof Join)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
23985
|
-
|
|
24480
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
24481
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
24482
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
23986
24483
|
instance._cachedJsonLd = structuredClone(json);
|
|
23987
24484
|
} catch {
|
|
23988
24485
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -24130,7 +24627,9 @@ var Leave = class Leave extends Activity {
|
|
|
24130
24627
|
_fromSubclass: true
|
|
24131
24628
|
});
|
|
24132
24629
|
if (!(instance instanceof Leave)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
24133
|
-
|
|
24630
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
24631
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
24632
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
24134
24633
|
instance._cachedJsonLd = structuredClone(json);
|
|
24135
24634
|
} catch {
|
|
24136
24635
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -24282,7 +24781,9 @@ var Like = class Like extends Activity {
|
|
|
24282
24781
|
_fromSubclass: true
|
|
24283
24782
|
});
|
|
24284
24783
|
if (!(instance instanceof Like)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
24285
|
-
|
|
24784
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
24785
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
24786
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
24286
24787
|
instance._cachedJsonLd = structuredClone(json);
|
|
24287
24788
|
} catch {
|
|
24288
24789
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -24429,7 +24930,9 @@ var Listen = class Listen extends Activity {
|
|
|
24429
24930
|
_fromSubclass: true
|
|
24430
24931
|
});
|
|
24431
24932
|
if (!(instance instanceof Listen)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
24432
|
-
|
|
24933
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
24934
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
24935
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
24433
24936
|
instance._cachedJsonLd = structuredClone(json);
|
|
24434
24937
|
} catch {
|
|
24435
24938
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -24580,7 +25083,9 @@ var Mention = class Mention extends Link {
|
|
|
24580
25083
|
_fromSubclass: true
|
|
24581
25084
|
});
|
|
24582
25085
|
if (!(instance instanceof Mention)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
24583
|
-
|
|
25086
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
25087
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
25088
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
24584
25089
|
instance._cachedJsonLd = structuredClone(json);
|
|
24585
25090
|
} catch {
|
|
24586
25091
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -24729,7 +25234,9 @@ var Move = class Move extends Activity {
|
|
|
24729
25234
|
_fromSubclass: true
|
|
24730
25235
|
});
|
|
24731
25236
|
if (!(instance instanceof Move)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
24732
|
-
|
|
25237
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
25238
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
25239
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
24733
25240
|
instance._cachedJsonLd = structuredClone(json);
|
|
24734
25241
|
} catch {
|
|
24735
25242
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -24965,16 +25472,20 @@ var Note = class Note extends Object$1 {
|
|
|
24965
25472
|
_fromSubclass: true
|
|
24966
25473
|
});
|
|
24967
25474
|
if (!(instance instanceof Note)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
25475
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
24968
25476
|
const _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl = [];
|
|
24969
25477
|
let _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array = values["https://www.w3.org/ns/activitystreams#quoteUrl"];
|
|
24970
25478
|
if (_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array == null || _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array.length < 1) _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array = values["https://misskey-hub.net/ns#_misskey_quote"];
|
|
24971
25479
|
if (_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array == null || _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array.length < 1) _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array = values["http://fedibird.com/ns#quoteUri"];
|
|
24972
25480
|
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) {
|
|
24973
25481
|
if (v == null) continue;
|
|
24974
|
-
|
|
25482
|
+
const decoded = new URL(v["@value"]);
|
|
25483
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
25484
|
+
_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl.push(decoded);
|
|
24975
25485
|
}
|
|
24976
25486
|
instance.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl = _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl;
|
|
24977
|
-
|
|
25487
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
25488
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
24978
25489
|
instance._cachedJsonLd = structuredClone(json);
|
|
24979
25490
|
} catch {
|
|
24980
25491
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -25342,6 +25853,7 @@ var OrderedCollection = class OrderedCollection extends Collection {
|
|
|
25342
25853
|
_fromSubclass: true
|
|
25343
25854
|
});
|
|
25344
25855
|
if (!(instance instanceof OrderedCollection)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
25856
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
25345
25857
|
const _2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = [];
|
|
25346
25858
|
let _2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items__array = values["https://www.w3.org/ns/activitystreams#items"];
|
|
25347
25859
|
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) {
|
|
@@ -25417,11 +25929,16 @@ var OrderedCollection = class OrderedCollection extends Collection {
|
|
|
25417
25929
|
...options,
|
|
25418
25930
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
25419
25931
|
}) : void 0;
|
|
25420
|
-
if (typeof decoded === "undefined")
|
|
25932
|
+
if (typeof decoded === "undefined") {
|
|
25933
|
+
shouldCacheJsonLd = false;
|
|
25934
|
+
continue;
|
|
25935
|
+
}
|
|
25936
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
25421
25937
|
_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items.push(decoded);
|
|
25422
25938
|
}
|
|
25423
25939
|
instance.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = _2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items;
|
|
25424
|
-
|
|
25940
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
25941
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
25425
25942
|
instance._cachedJsonLd = structuredClone(json);
|
|
25426
25943
|
} catch {
|
|
25427
25944
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -25819,6 +26336,7 @@ var OrderedCollectionPage = class OrderedCollectionPage extends CollectionPage {
|
|
|
25819
26336
|
_fromSubclass: true
|
|
25820
26337
|
});
|
|
25821
26338
|
if (!(instance instanceof OrderedCollectionPage)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
26339
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
25822
26340
|
const _2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = [];
|
|
25823
26341
|
let _2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items__array = values["https://www.w3.org/ns/activitystreams#items"];
|
|
25824
26342
|
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) {
|
|
@@ -25894,7 +26412,11 @@ var OrderedCollectionPage = class OrderedCollectionPage extends CollectionPage {
|
|
|
25894
26412
|
...options,
|
|
25895
26413
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
25896
26414
|
}) : void 0;
|
|
25897
|
-
if (typeof decoded === "undefined")
|
|
26415
|
+
if (typeof decoded === "undefined") {
|
|
26416
|
+
shouldCacheJsonLd = false;
|
|
26417
|
+
continue;
|
|
26418
|
+
}
|
|
26419
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
25898
26420
|
_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items.push(decoded);
|
|
25899
26421
|
}
|
|
25900
26422
|
instance.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = _2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items;
|
|
@@ -25902,10 +26424,13 @@ var OrderedCollectionPage = class OrderedCollectionPage extends CollectionPage {
|
|
|
25902
26424
|
let _2W4yinFwqmpneu2h4m1mZ3pcLADd_startIndex__array = values["https://www.w3.org/ns/activitystreams#startIndex"];
|
|
25903
26425
|
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) {
|
|
25904
26426
|
if (v == null) continue;
|
|
25905
|
-
|
|
26427
|
+
const decoded = v["@value"];
|
|
26428
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
26429
|
+
_2W4yinFwqmpneu2h4m1mZ3pcLADd_startIndex.push(decoded);
|
|
25906
26430
|
}
|
|
25907
26431
|
instance.#_2W4yinFwqmpneu2h4m1mZ3pcLADd_startIndex = _2W4yinFwqmpneu2h4m1mZ3pcLADd_startIndex;
|
|
25908
|
-
|
|
26432
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
26433
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
25909
26434
|
instance._cachedJsonLd = structuredClone(json);
|
|
25910
26435
|
} catch {
|
|
25911
26436
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -28781,12 +29306,17 @@ var Organization = class Organization extends Object$1 {
|
|
|
28781
29306
|
_fromSubclass: true
|
|
28782
29307
|
});
|
|
28783
29308
|
if (!(instance instanceof Organization)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
29309
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
28784
29310
|
const _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = [];
|
|
28785
29311
|
let _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername__array = values["https://www.w3.org/ns/activitystreams#preferredUsername"];
|
|
28786
29312
|
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) {
|
|
28787
29313
|
if (v == null) continue;
|
|
28788
|
-
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;
|
|
28789
|
-
if (typeof decoded === "undefined")
|
|
29314
|
+
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;
|
|
29315
|
+
if (typeof decoded === "undefined") {
|
|
29316
|
+
shouldCacheJsonLd = false;
|
|
29317
|
+
continue;
|
|
29318
|
+
}
|
|
29319
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
28790
29320
|
_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername.push(decoded);
|
|
28791
29321
|
}
|
|
28792
29322
|
instance.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername;
|
|
@@ -28798,10 +29328,12 @@ var Organization = class Organization extends Object$1 {
|
|
|
28798
29328
|
_axq166E2eZADq34V4MYUc8KMZdC_publicKey.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
28799
29329
|
continue;
|
|
28800
29330
|
}
|
|
28801
|
-
|
|
29331
|
+
const decoded = await CryptographicKey.fromJsonLd(v, {
|
|
28802
29332
|
...options,
|
|
28803
29333
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
28804
|
-
})
|
|
29334
|
+
});
|
|
29335
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
29336
|
+
_axq166E2eZADq34V4MYUc8KMZdC_publicKey.push(decoded);
|
|
28805
29337
|
}
|
|
28806
29338
|
instance.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = _axq166E2eZADq34V4MYUc8KMZdC_publicKey;
|
|
28807
29339
|
const _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = [];
|
|
@@ -28812,17 +29344,21 @@ var Organization = class Organization extends Object$1 {
|
|
|
28812
29344
|
_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
28813
29345
|
continue;
|
|
28814
29346
|
}
|
|
28815
|
-
|
|
29347
|
+
const decoded = await Multikey.fromJsonLd(v, {
|
|
28816
29348
|
...options,
|
|
28817
29349
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
28818
|
-
})
|
|
29350
|
+
});
|
|
29351
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
29352
|
+
_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(decoded);
|
|
28819
29353
|
}
|
|
28820
29354
|
instance.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod;
|
|
28821
29355
|
const _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = [];
|
|
28822
29356
|
let _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers__array = values["https://www.w3.org/ns/activitystreams#manuallyApprovesFollowers"];
|
|
28823
29357
|
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) {
|
|
28824
29358
|
if (v == null) continue;
|
|
28825
|
-
|
|
29359
|
+
const decoded = v["@value"];
|
|
29360
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
29361
|
+
_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers.push(decoded);
|
|
28826
29362
|
}
|
|
28827
29363
|
instance.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers;
|
|
28828
29364
|
const _3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = [];
|
|
@@ -28840,7 +29376,11 @@ var Organization = class Organization extends Object$1 {
|
|
|
28840
29376
|
...options,
|
|
28841
29377
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
28842
29378
|
}) : void 0;
|
|
28843
|
-
if (typeof decoded === "undefined")
|
|
29379
|
+
if (typeof decoded === "undefined") {
|
|
29380
|
+
shouldCacheJsonLd = false;
|
|
29381
|
+
continue;
|
|
29382
|
+
}
|
|
29383
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
28844
29384
|
_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox.push(decoded);
|
|
28845
29385
|
}
|
|
28846
29386
|
instance.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = _3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox;
|
|
@@ -28859,7 +29399,11 @@ var Organization = class Organization extends Object$1 {
|
|
|
28859
29399
|
...options,
|
|
28860
29400
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
28861
29401
|
}) : void 0;
|
|
28862
|
-
if (typeof decoded === "undefined")
|
|
29402
|
+
if (typeof decoded === "undefined") {
|
|
29403
|
+
shouldCacheJsonLd = false;
|
|
29404
|
+
continue;
|
|
29405
|
+
}
|
|
29406
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
28863
29407
|
_41QwhqJouoLg3h8dRPKat21brynC_outbox.push(decoded);
|
|
28864
29408
|
}
|
|
28865
29409
|
instance.#_41QwhqJouoLg3h8dRPKat21brynC_outbox = _41QwhqJouoLg3h8dRPKat21brynC_outbox;
|
|
@@ -28871,10 +29415,12 @@ var Organization = class Organization extends Object$1 {
|
|
|
28871
29415
|
_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
28872
29416
|
continue;
|
|
28873
29417
|
}
|
|
28874
|
-
|
|
29418
|
+
const decoded = await Collection.fromJsonLd(v, {
|
|
28875
29419
|
...options,
|
|
28876
29420
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
28877
|
-
})
|
|
29421
|
+
});
|
|
29422
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
29423
|
+
_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.push(decoded);
|
|
28878
29424
|
}
|
|
28879
29425
|
instance.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = _3yAv8jymNfNuJUDuBzJ1NQhdbAee_following;
|
|
28880
29426
|
const _BBCTgfphhsFzpVfKTykGSpBNwoA_followers = [];
|
|
@@ -28885,10 +29431,12 @@ var Organization = class Organization extends Object$1 {
|
|
|
28885
29431
|
_BBCTgfphhsFzpVfKTykGSpBNwoA_followers.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
28886
29432
|
continue;
|
|
28887
29433
|
}
|
|
28888
|
-
|
|
29434
|
+
const decoded = await Collection.fromJsonLd(v, {
|
|
28889
29435
|
...options,
|
|
28890
29436
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
28891
|
-
})
|
|
29437
|
+
});
|
|
29438
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
29439
|
+
_BBCTgfphhsFzpVfKTykGSpBNwoA_followers.push(decoded);
|
|
28892
29440
|
}
|
|
28893
29441
|
instance.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = _BBCTgfphhsFzpVfKTykGSpBNwoA_followers;
|
|
28894
29442
|
const _3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = [];
|
|
@@ -28899,10 +29447,12 @@ var Organization = class Organization extends Object$1 {
|
|
|
28899
29447
|
_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
28900
29448
|
continue;
|
|
28901
29449
|
}
|
|
28902
|
-
|
|
29450
|
+
const decoded = await Collection.fromJsonLd(v, {
|
|
28903
29451
|
...options,
|
|
28904
29452
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
28905
|
-
})
|
|
29453
|
+
});
|
|
29454
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
29455
|
+
_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.push(decoded);
|
|
28906
29456
|
}
|
|
28907
29457
|
instance.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = _3bgkPwJanyTCoVFM9ovRcus8tKkU_liked;
|
|
28908
29458
|
const _4N1vBJzXDf8NbBumeECQMFvKetja_featured = [];
|
|
@@ -28913,10 +29463,12 @@ var Organization = class Organization extends Object$1 {
|
|
|
28913
29463
|
_4N1vBJzXDf8NbBumeECQMFvKetja_featured.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
28914
29464
|
continue;
|
|
28915
29465
|
}
|
|
28916
|
-
|
|
29466
|
+
const decoded = await Collection.fromJsonLd(v, {
|
|
28917
29467
|
...options,
|
|
28918
29468
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
28919
|
-
})
|
|
29469
|
+
});
|
|
29470
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
29471
|
+
_4N1vBJzXDf8NbBumeECQMFvKetja_featured.push(decoded);
|
|
28920
29472
|
}
|
|
28921
29473
|
instance.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured = _4N1vBJzXDf8NbBumeECQMFvKetja_featured;
|
|
28922
29474
|
const _2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = [];
|
|
@@ -28927,10 +29479,12 @@ var Organization = class Organization extends Object$1 {
|
|
|
28927
29479
|
_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
28928
29480
|
continue;
|
|
28929
29481
|
}
|
|
28930
|
-
|
|
29482
|
+
const decoded = await Collection.fromJsonLd(v, {
|
|
28931
29483
|
...options,
|
|
28932
29484
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
28933
|
-
})
|
|
29485
|
+
});
|
|
29486
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
29487
|
+
_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.push(decoded);
|
|
28934
29488
|
}
|
|
28935
29489
|
instance.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = _2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags;
|
|
28936
29490
|
const _3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = [];
|
|
@@ -28941,48 +29495,60 @@ var Organization = class Organization extends Object$1 {
|
|
|
28941
29495
|
_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
28942
29496
|
continue;
|
|
28943
29497
|
}
|
|
28944
|
-
|
|
29498
|
+
const decoded = await Collection.fromJsonLd(v, {
|
|
28945
29499
|
...options,
|
|
28946
29500
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
28947
|
-
})
|
|
29501
|
+
});
|
|
29502
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
29503
|
+
_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.push(decoded);
|
|
28948
29504
|
}
|
|
28949
29505
|
instance.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = _3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams;
|
|
28950
29506
|
const _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = [];
|
|
28951
29507
|
let _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints__array = values["https://www.w3.org/ns/activitystreams#endpoints"];
|
|
28952
29508
|
for (const v of _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints__array == null ? [] : _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints__array.length === 1 && "@list" in _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints__array[0] ? _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints__array[0]["@list"] : _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints__array) {
|
|
28953
29509
|
if (v == null) continue;
|
|
28954
|
-
|
|
29510
|
+
const decoded = await Endpoints.fromJsonLd(v, {
|
|
28955
29511
|
...options,
|
|
28956
29512
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
28957
|
-
})
|
|
29513
|
+
});
|
|
29514
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
29515
|
+
_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.push(decoded);
|
|
28958
29516
|
}
|
|
28959
29517
|
instance.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints;
|
|
28960
29518
|
const _gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = [];
|
|
28961
29519
|
let _gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable__array = values["http://joinmastodon.org/ns#discoverable"];
|
|
28962
29520
|
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) {
|
|
28963
29521
|
if (v == null) continue;
|
|
28964
|
-
|
|
29522
|
+
const decoded = v["@value"];
|
|
29523
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
29524
|
+
_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable.push(decoded);
|
|
28965
29525
|
}
|
|
28966
29526
|
instance.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = _gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable;
|
|
28967
29527
|
const _2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = [];
|
|
28968
29528
|
let _2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended__array = values["http://joinmastodon.org/ns#suspended"];
|
|
28969
29529
|
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) {
|
|
28970
29530
|
if (v == null) continue;
|
|
28971
|
-
|
|
29531
|
+
const decoded = v["@value"];
|
|
29532
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
29533
|
+
_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended.push(decoded);
|
|
28972
29534
|
}
|
|
28973
29535
|
instance.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = _2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended;
|
|
28974
29536
|
const _79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = [];
|
|
28975
29537
|
let _79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial__array = values["http://joinmastodon.org/ns#memorial"];
|
|
28976
29538
|
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) {
|
|
28977
29539
|
if (v == null) continue;
|
|
28978
|
-
|
|
29540
|
+
const decoded = v["@value"];
|
|
29541
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
29542
|
+
_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial.push(decoded);
|
|
28979
29543
|
}
|
|
28980
29544
|
instance.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = _79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial;
|
|
28981
29545
|
const _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = [];
|
|
28982
29546
|
let _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable__array = values["http://joinmastodon.org/ns#indexable"];
|
|
28983
29547
|
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) {
|
|
28984
29548
|
if (v == null) continue;
|
|
28985
|
-
|
|
29549
|
+
const decoded = v["@value"];
|
|
29550
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
29551
|
+
_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable.push(decoded);
|
|
28986
29552
|
}
|
|
28987
29553
|
instance.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable;
|
|
28988
29554
|
const _2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = [];
|
|
@@ -29009,7 +29575,11 @@ var Organization = class Organization extends Object$1 {
|
|
|
29009
29575
|
...options,
|
|
29010
29576
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
29011
29577
|
}) : void 0;
|
|
29012
|
-
if (typeof decoded === "undefined")
|
|
29578
|
+
if (typeof decoded === "undefined") {
|
|
29579
|
+
shouldCacheJsonLd = false;
|
|
29580
|
+
continue;
|
|
29581
|
+
}
|
|
29582
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
29013
29583
|
_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.push(decoded);
|
|
29014
29584
|
}
|
|
29015
29585
|
instance.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = _2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo;
|
|
@@ -29037,7 +29607,11 @@ var Organization = class Organization extends Object$1 {
|
|
|
29037
29607
|
...options,
|
|
29038
29608
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
29039
29609
|
}) : void 0;
|
|
29040
|
-
if (typeof decoded === "undefined")
|
|
29610
|
+
if (typeof decoded === "undefined") {
|
|
29611
|
+
shouldCacheJsonLd = false;
|
|
29612
|
+
continue;
|
|
29613
|
+
}
|
|
29614
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
29041
29615
|
_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.push(decoded);
|
|
29042
29616
|
}
|
|
29043
29617
|
instance.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = _3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs;
|
|
@@ -29049,27 +29623,34 @@ var Organization = class Organization extends Object$1 {
|
|
|
29049
29623
|
_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
29050
29624
|
continue;
|
|
29051
29625
|
}
|
|
29052
|
-
|
|
29626
|
+
const decoded = await DidService.fromJsonLd(v, {
|
|
29053
29627
|
...options,
|
|
29054
29628
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
29055
|
-
})
|
|
29629
|
+
});
|
|
29630
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
29631
|
+
_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.push(decoded);
|
|
29056
29632
|
}
|
|
29057
29633
|
instance.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = _4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service;
|
|
29058
29634
|
const _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = [];
|
|
29059
29635
|
let _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage__array = values["https://misskey-hub.net/ns#_misskey_followedMessage"];
|
|
29060
29636
|
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) {
|
|
29061
29637
|
if (v == null) continue;
|
|
29062
|
-
|
|
29638
|
+
const decoded = v["@value"];
|
|
29639
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
29640
|
+
_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage.push(decoded);
|
|
29063
29641
|
}
|
|
29064
29642
|
instance.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage;
|
|
29065
29643
|
const _2xEU4QtkC53RAun67T81Egqt9vmL_isCat = [];
|
|
29066
29644
|
let _2xEU4QtkC53RAun67T81Egqt9vmL_isCat__array = values["https://misskey-hub.net/ns#isCat"];
|
|
29067
29645
|
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) {
|
|
29068
29646
|
if (v == null) continue;
|
|
29069
|
-
|
|
29647
|
+
const decoded = v["@value"];
|
|
29648
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
29649
|
+
_2xEU4QtkC53RAun67T81Egqt9vmL_isCat.push(decoded);
|
|
29070
29650
|
}
|
|
29071
29651
|
instance.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = _2xEU4QtkC53RAun67T81Egqt9vmL_isCat;
|
|
29072
|
-
|
|
29652
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
29653
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
29073
29654
|
instance._cachedJsonLd = structuredClone(json);
|
|
29074
29655
|
} catch {
|
|
29075
29656
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -29339,7 +29920,9 @@ var Page = class Page extends Document {
|
|
|
29339
29920
|
_fromSubclass: true
|
|
29340
29921
|
});
|
|
29341
29922
|
if (!(instance instanceof Page)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
29342
|
-
|
|
29923
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
29924
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
29925
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
29343
29926
|
instance._cachedJsonLd = structuredClone(json);
|
|
29344
29927
|
} catch {
|
|
29345
29928
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -32204,12 +32787,17 @@ var Person = class Person extends Object$1 {
|
|
|
32204
32787
|
_fromSubclass: true
|
|
32205
32788
|
});
|
|
32206
32789
|
if (!(instance instanceof Person)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
32790
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
32207
32791
|
const _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = [];
|
|
32208
32792
|
let _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername__array = values["https://www.w3.org/ns/activitystreams#preferredUsername"];
|
|
32209
32793
|
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) {
|
|
32210
32794
|
if (v == null) continue;
|
|
32211
|
-
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;
|
|
32212
|
-
if (typeof decoded === "undefined")
|
|
32795
|
+
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;
|
|
32796
|
+
if (typeof decoded === "undefined") {
|
|
32797
|
+
shouldCacheJsonLd = false;
|
|
32798
|
+
continue;
|
|
32799
|
+
}
|
|
32800
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
32213
32801
|
_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername.push(decoded);
|
|
32214
32802
|
}
|
|
32215
32803
|
instance.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername;
|
|
@@ -32221,10 +32809,12 @@ var Person = class Person extends Object$1 {
|
|
|
32221
32809
|
_axq166E2eZADq34V4MYUc8KMZdC_publicKey.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
32222
32810
|
continue;
|
|
32223
32811
|
}
|
|
32224
|
-
|
|
32812
|
+
const decoded = await CryptographicKey.fromJsonLd(v, {
|
|
32225
32813
|
...options,
|
|
32226
32814
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
32227
|
-
})
|
|
32815
|
+
});
|
|
32816
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
32817
|
+
_axq166E2eZADq34V4MYUc8KMZdC_publicKey.push(decoded);
|
|
32228
32818
|
}
|
|
32229
32819
|
instance.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = _axq166E2eZADq34V4MYUc8KMZdC_publicKey;
|
|
32230
32820
|
const _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = [];
|
|
@@ -32235,17 +32825,21 @@ var Person = class Person extends Object$1 {
|
|
|
32235
32825
|
_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
32236
32826
|
continue;
|
|
32237
32827
|
}
|
|
32238
|
-
|
|
32828
|
+
const decoded = await Multikey.fromJsonLd(v, {
|
|
32239
32829
|
...options,
|
|
32240
32830
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
32241
|
-
})
|
|
32831
|
+
});
|
|
32832
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
32833
|
+
_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(decoded);
|
|
32242
32834
|
}
|
|
32243
32835
|
instance.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod;
|
|
32244
32836
|
const _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = [];
|
|
32245
32837
|
let _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers__array = values["https://www.w3.org/ns/activitystreams#manuallyApprovesFollowers"];
|
|
32246
32838
|
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) {
|
|
32247
32839
|
if (v == null) continue;
|
|
32248
|
-
|
|
32840
|
+
const decoded = v["@value"];
|
|
32841
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
32842
|
+
_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers.push(decoded);
|
|
32249
32843
|
}
|
|
32250
32844
|
instance.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers;
|
|
32251
32845
|
const _3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = [];
|
|
@@ -32263,7 +32857,11 @@ var Person = class Person extends Object$1 {
|
|
|
32263
32857
|
...options,
|
|
32264
32858
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
32265
32859
|
}) : void 0;
|
|
32266
|
-
if (typeof decoded === "undefined")
|
|
32860
|
+
if (typeof decoded === "undefined") {
|
|
32861
|
+
shouldCacheJsonLd = false;
|
|
32862
|
+
continue;
|
|
32863
|
+
}
|
|
32864
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
32267
32865
|
_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox.push(decoded);
|
|
32268
32866
|
}
|
|
32269
32867
|
instance.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = _3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox;
|
|
@@ -32282,7 +32880,11 @@ var Person = class Person extends Object$1 {
|
|
|
32282
32880
|
...options,
|
|
32283
32881
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
32284
32882
|
}) : void 0;
|
|
32285
|
-
if (typeof decoded === "undefined")
|
|
32883
|
+
if (typeof decoded === "undefined") {
|
|
32884
|
+
shouldCacheJsonLd = false;
|
|
32885
|
+
continue;
|
|
32886
|
+
}
|
|
32887
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
32286
32888
|
_41QwhqJouoLg3h8dRPKat21brynC_outbox.push(decoded);
|
|
32287
32889
|
}
|
|
32288
32890
|
instance.#_41QwhqJouoLg3h8dRPKat21brynC_outbox = _41QwhqJouoLg3h8dRPKat21brynC_outbox;
|
|
@@ -32294,10 +32896,12 @@ var Person = class Person extends Object$1 {
|
|
|
32294
32896
|
_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
32295
32897
|
continue;
|
|
32296
32898
|
}
|
|
32297
|
-
|
|
32899
|
+
const decoded = await Collection.fromJsonLd(v, {
|
|
32298
32900
|
...options,
|
|
32299
32901
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
32300
|
-
})
|
|
32902
|
+
});
|
|
32903
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
32904
|
+
_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.push(decoded);
|
|
32301
32905
|
}
|
|
32302
32906
|
instance.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = _3yAv8jymNfNuJUDuBzJ1NQhdbAee_following;
|
|
32303
32907
|
const _BBCTgfphhsFzpVfKTykGSpBNwoA_followers = [];
|
|
@@ -32308,10 +32912,12 @@ var Person = class Person extends Object$1 {
|
|
|
32308
32912
|
_BBCTgfphhsFzpVfKTykGSpBNwoA_followers.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
32309
32913
|
continue;
|
|
32310
32914
|
}
|
|
32311
|
-
|
|
32915
|
+
const decoded = await Collection.fromJsonLd(v, {
|
|
32312
32916
|
...options,
|
|
32313
32917
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
32314
|
-
})
|
|
32918
|
+
});
|
|
32919
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
32920
|
+
_BBCTgfphhsFzpVfKTykGSpBNwoA_followers.push(decoded);
|
|
32315
32921
|
}
|
|
32316
32922
|
instance.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = _BBCTgfphhsFzpVfKTykGSpBNwoA_followers;
|
|
32317
32923
|
const _3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = [];
|
|
@@ -32322,10 +32928,12 @@ var Person = class Person extends Object$1 {
|
|
|
32322
32928
|
_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
32323
32929
|
continue;
|
|
32324
32930
|
}
|
|
32325
|
-
|
|
32931
|
+
const decoded = await Collection.fromJsonLd(v, {
|
|
32326
32932
|
...options,
|
|
32327
32933
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
32328
|
-
})
|
|
32934
|
+
});
|
|
32935
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
32936
|
+
_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.push(decoded);
|
|
32329
32937
|
}
|
|
32330
32938
|
instance.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = _3bgkPwJanyTCoVFM9ovRcus8tKkU_liked;
|
|
32331
32939
|
const _4N1vBJzXDf8NbBumeECQMFvKetja_featured = [];
|
|
@@ -32336,10 +32944,12 @@ var Person = class Person extends Object$1 {
|
|
|
32336
32944
|
_4N1vBJzXDf8NbBumeECQMFvKetja_featured.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
32337
32945
|
continue;
|
|
32338
32946
|
}
|
|
32339
|
-
|
|
32947
|
+
const decoded = await Collection.fromJsonLd(v, {
|
|
32340
32948
|
...options,
|
|
32341
32949
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
32342
|
-
})
|
|
32950
|
+
});
|
|
32951
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
32952
|
+
_4N1vBJzXDf8NbBumeECQMFvKetja_featured.push(decoded);
|
|
32343
32953
|
}
|
|
32344
32954
|
instance.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured = _4N1vBJzXDf8NbBumeECQMFvKetja_featured;
|
|
32345
32955
|
const _2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = [];
|
|
@@ -32350,10 +32960,12 @@ var Person = class Person extends Object$1 {
|
|
|
32350
32960
|
_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
32351
32961
|
continue;
|
|
32352
32962
|
}
|
|
32353
|
-
|
|
32963
|
+
const decoded = await Collection.fromJsonLd(v, {
|
|
32354
32964
|
...options,
|
|
32355
32965
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
32356
|
-
})
|
|
32966
|
+
});
|
|
32967
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
32968
|
+
_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.push(decoded);
|
|
32357
32969
|
}
|
|
32358
32970
|
instance.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = _2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags;
|
|
32359
32971
|
const _3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = [];
|
|
@@ -32364,48 +32976,60 @@ var Person = class Person extends Object$1 {
|
|
|
32364
32976
|
_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
32365
32977
|
continue;
|
|
32366
32978
|
}
|
|
32367
|
-
|
|
32979
|
+
const decoded = await Collection.fromJsonLd(v, {
|
|
32368
32980
|
...options,
|
|
32369
32981
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
32370
|
-
})
|
|
32982
|
+
});
|
|
32983
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
32984
|
+
_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.push(decoded);
|
|
32371
32985
|
}
|
|
32372
32986
|
instance.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = _3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams;
|
|
32373
32987
|
const _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = [];
|
|
32374
32988
|
let _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints__array = values["https://www.w3.org/ns/activitystreams#endpoints"];
|
|
32375
32989
|
for (const v of _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints__array == null ? [] : _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints__array.length === 1 && "@list" in _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints__array[0] ? _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints__array[0]["@list"] : _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints__array) {
|
|
32376
32990
|
if (v == null) continue;
|
|
32377
|
-
|
|
32991
|
+
const decoded = await Endpoints.fromJsonLd(v, {
|
|
32378
32992
|
...options,
|
|
32379
32993
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
32380
|
-
})
|
|
32994
|
+
});
|
|
32995
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
32996
|
+
_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.push(decoded);
|
|
32381
32997
|
}
|
|
32382
32998
|
instance.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints;
|
|
32383
32999
|
const _gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = [];
|
|
32384
33000
|
let _gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable__array = values["http://joinmastodon.org/ns#discoverable"];
|
|
32385
33001
|
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) {
|
|
32386
33002
|
if (v == null) continue;
|
|
32387
|
-
|
|
33003
|
+
const decoded = v["@value"];
|
|
33004
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
33005
|
+
_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable.push(decoded);
|
|
32388
33006
|
}
|
|
32389
33007
|
instance.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = _gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable;
|
|
32390
33008
|
const _2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = [];
|
|
32391
33009
|
let _2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended__array = values["http://joinmastodon.org/ns#suspended"];
|
|
32392
33010
|
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) {
|
|
32393
33011
|
if (v == null) continue;
|
|
32394
|
-
|
|
33012
|
+
const decoded = v["@value"];
|
|
33013
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
33014
|
+
_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended.push(decoded);
|
|
32395
33015
|
}
|
|
32396
33016
|
instance.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = _2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended;
|
|
32397
33017
|
const _79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = [];
|
|
32398
33018
|
let _79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial__array = values["http://joinmastodon.org/ns#memorial"];
|
|
32399
33019
|
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) {
|
|
32400
33020
|
if (v == null) continue;
|
|
32401
|
-
|
|
33021
|
+
const decoded = v["@value"];
|
|
33022
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
33023
|
+
_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial.push(decoded);
|
|
32402
33024
|
}
|
|
32403
33025
|
instance.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = _79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial;
|
|
32404
33026
|
const _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = [];
|
|
32405
33027
|
let _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable__array = values["http://joinmastodon.org/ns#indexable"];
|
|
32406
33028
|
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) {
|
|
32407
33029
|
if (v == null) continue;
|
|
32408
|
-
|
|
33030
|
+
const decoded = v["@value"];
|
|
33031
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
33032
|
+
_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable.push(decoded);
|
|
32409
33033
|
}
|
|
32410
33034
|
instance.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable;
|
|
32411
33035
|
const _2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = [];
|
|
@@ -32432,7 +33056,11 @@ var Person = class Person extends Object$1 {
|
|
|
32432
33056
|
...options,
|
|
32433
33057
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
32434
33058
|
}) : void 0;
|
|
32435
|
-
if (typeof decoded === "undefined")
|
|
33059
|
+
if (typeof decoded === "undefined") {
|
|
33060
|
+
shouldCacheJsonLd = false;
|
|
33061
|
+
continue;
|
|
33062
|
+
}
|
|
33063
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
32436
33064
|
_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.push(decoded);
|
|
32437
33065
|
}
|
|
32438
33066
|
instance.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = _2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo;
|
|
@@ -32460,7 +33088,11 @@ var Person = class Person extends Object$1 {
|
|
|
32460
33088
|
...options,
|
|
32461
33089
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
32462
33090
|
}) : void 0;
|
|
32463
|
-
if (typeof decoded === "undefined")
|
|
33091
|
+
if (typeof decoded === "undefined") {
|
|
33092
|
+
shouldCacheJsonLd = false;
|
|
33093
|
+
continue;
|
|
33094
|
+
}
|
|
33095
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
32464
33096
|
_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.push(decoded);
|
|
32465
33097
|
}
|
|
32466
33098
|
instance.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = _3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs;
|
|
@@ -32472,27 +33104,34 @@ var Person = class Person extends Object$1 {
|
|
|
32472
33104
|
_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
32473
33105
|
continue;
|
|
32474
33106
|
}
|
|
32475
|
-
|
|
33107
|
+
const decoded = await DidService.fromJsonLd(v, {
|
|
32476
33108
|
...options,
|
|
32477
33109
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
32478
|
-
})
|
|
33110
|
+
});
|
|
33111
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
33112
|
+
_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.push(decoded);
|
|
32479
33113
|
}
|
|
32480
33114
|
instance.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = _4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service;
|
|
32481
33115
|
const _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = [];
|
|
32482
33116
|
let _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage__array = values["https://misskey-hub.net/ns#_misskey_followedMessage"];
|
|
32483
33117
|
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) {
|
|
32484
33118
|
if (v == null) continue;
|
|
32485
|
-
|
|
33119
|
+
const decoded = v["@value"];
|
|
33120
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
33121
|
+
_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage.push(decoded);
|
|
32486
33122
|
}
|
|
32487
33123
|
instance.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage;
|
|
32488
33124
|
const _2xEU4QtkC53RAun67T81Egqt9vmL_isCat = [];
|
|
32489
33125
|
let _2xEU4QtkC53RAun67T81Egqt9vmL_isCat__array = values["https://misskey-hub.net/ns#isCat"];
|
|
32490
33126
|
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) {
|
|
32491
33127
|
if (v == null) continue;
|
|
32492
|
-
|
|
33128
|
+
const decoded = v["@value"];
|
|
33129
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
33130
|
+
_2xEU4QtkC53RAun67T81Egqt9vmL_isCat.push(decoded);
|
|
32493
33131
|
}
|
|
32494
33132
|
instance.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = _2xEU4QtkC53RAun67T81Egqt9vmL_isCat;
|
|
32495
|
-
|
|
33133
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
33134
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
32496
33135
|
instance._cachedJsonLd = structuredClone(json);
|
|
32497
33136
|
} catch {
|
|
32498
33137
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -32939,39 +33578,50 @@ var Place = class Place extends Object$1 {
|
|
|
32939
33578
|
_fromSubclass: true
|
|
32940
33579
|
});
|
|
32941
33580
|
if (!(instance instanceof Place)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
33581
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
32942
33582
|
const _3UCsHnBHvDAXJnBuzw3zw1VVs3Ne_accuracy = [];
|
|
32943
33583
|
let _3UCsHnBHvDAXJnBuzw3zw1VVs3Ne_accuracy__array = values["https://www.w3.org/ns/activitystreams#accuracy"];
|
|
32944
33584
|
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) {
|
|
32945
33585
|
if (v == null) continue;
|
|
32946
|
-
|
|
33586
|
+
const decoded = v["@value"];
|
|
33587
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
33588
|
+
_3UCsHnBHvDAXJnBuzw3zw1VVs3Ne_accuracy.push(decoded);
|
|
32947
33589
|
}
|
|
32948
33590
|
instance.#_3UCsHnBHvDAXJnBuzw3zw1VVs3Ne_accuracy = _3UCsHnBHvDAXJnBuzw3zw1VVs3Ne_accuracy;
|
|
32949
33591
|
const _3Q6KDcFQUJRRaBux1BL2yp5QWiBi_altitude = [];
|
|
32950
33592
|
let _3Q6KDcFQUJRRaBux1BL2yp5QWiBi_altitude__array = values["https://www.w3.org/ns/activitystreams#altitude"];
|
|
32951
33593
|
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) {
|
|
32952
33594
|
if (v == null) continue;
|
|
32953
|
-
|
|
33595
|
+
const decoded = v["@value"];
|
|
33596
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
33597
|
+
_3Q6KDcFQUJRRaBux1BL2yp5QWiBi_altitude.push(decoded);
|
|
32954
33598
|
}
|
|
32955
33599
|
instance.#_3Q6KDcFQUJRRaBux1BL2yp5QWiBi_altitude = _3Q6KDcFQUJRRaBux1BL2yp5QWiBi_altitude;
|
|
32956
33600
|
const _3g85RoKRnaNjP7DFyLSvsWDg7HGM_latitude = [];
|
|
32957
33601
|
let _3g85RoKRnaNjP7DFyLSvsWDg7HGM_latitude__array = values["https://www.w3.org/ns/activitystreams#latitude"];
|
|
32958
33602
|
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) {
|
|
32959
33603
|
if (v == null) continue;
|
|
32960
|
-
|
|
33604
|
+
const decoded = v["@value"];
|
|
33605
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
33606
|
+
_3g85RoKRnaNjP7DFyLSvsWDg7HGM_latitude.push(decoded);
|
|
32961
33607
|
}
|
|
32962
33608
|
instance.#_3g85RoKRnaNjP7DFyLSvsWDg7HGM_latitude = _3g85RoKRnaNjP7DFyLSvsWDg7HGM_latitude;
|
|
32963
33609
|
const _B2GEYdS9yBAF3ho1pm1rcRg7cSf_longitude = [];
|
|
32964
33610
|
let _B2GEYdS9yBAF3ho1pm1rcRg7cSf_longitude__array = values["https://www.w3.org/ns/activitystreams#longitude"];
|
|
32965
33611
|
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) {
|
|
32966
33612
|
if (v == null) continue;
|
|
32967
|
-
|
|
33613
|
+
const decoded = v["@value"];
|
|
33614
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
33615
|
+
_B2GEYdS9yBAF3ho1pm1rcRg7cSf_longitude.push(decoded);
|
|
32968
33616
|
}
|
|
32969
33617
|
instance.#_B2GEYdS9yBAF3ho1pm1rcRg7cSf_longitude = _B2GEYdS9yBAF3ho1pm1rcRg7cSf_longitude;
|
|
32970
33618
|
const _3ga86BKHUtRkGx5PHBjRiUXXzwnw_radius = [];
|
|
32971
33619
|
let _3ga86BKHUtRkGx5PHBjRiUXXzwnw_radius__array = values["https://www.w3.org/ns/activitystreams#radius"];
|
|
32972
33620
|
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) {
|
|
32973
33621
|
if (v == null) continue;
|
|
32974
|
-
|
|
33622
|
+
const decoded = v["@value"];
|
|
33623
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
33624
|
+
_3ga86BKHUtRkGx5PHBjRiUXXzwnw_radius.push(decoded);
|
|
32975
33625
|
}
|
|
32976
33626
|
instance.#_3ga86BKHUtRkGx5PHBjRiUXXzwnw_radius = _3ga86BKHUtRkGx5PHBjRiUXXzwnw_radius;
|
|
32977
33627
|
const _oKrwxU4V8wiKhMW1QEYQibcJh8c_units = [];
|
|
@@ -32979,11 +33629,16 @@ var Place = class Place extends Object$1 {
|
|
|
32979
33629
|
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) {
|
|
32980
33630
|
if (v == null) continue;
|
|
32981
33631
|
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"] : 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"]) && (values["@id"] == null ? options.baseUrl : new URL(values["@id"])) ? new URL(v["@id"]) : new URL(v["@id"], values["@id"] == null ? options.baseUrl : new URL(values["@id"])) : void 0;
|
|
32982
|
-
if (typeof decoded === "undefined")
|
|
33632
|
+
if (typeof decoded === "undefined") {
|
|
33633
|
+
shouldCacheJsonLd = false;
|
|
33634
|
+
continue;
|
|
33635
|
+
}
|
|
33636
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
32983
33637
|
_oKrwxU4V8wiKhMW1QEYQibcJh8c_units.push(decoded);
|
|
32984
33638
|
}
|
|
32985
33639
|
instance.#_oKrwxU4V8wiKhMW1QEYQibcJh8c_units = _oKrwxU4V8wiKhMW1QEYQibcJh8c_units;
|
|
32986
|
-
|
|
33640
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
33641
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
32987
33642
|
instance._cachedJsonLd = structuredClone(json);
|
|
32988
33643
|
} catch {
|
|
32989
33644
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -33323,6 +33978,7 @@ var Profile = class Profile extends Object$1 {
|
|
|
33323
33978
|
_fromSubclass: true
|
|
33324
33979
|
});
|
|
33325
33980
|
if (!(instance instanceof Profile)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
33981
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
33326
33982
|
const _3CLQ1PLSXrhSQbTGGHuxNyaEFKM1_describes = [];
|
|
33327
33983
|
let _3CLQ1PLSXrhSQbTGGHuxNyaEFKM1_describes__array = values["https://www.w3.org/ns/activitystreams#describes"];
|
|
33328
33984
|
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) {
|
|
@@ -33331,13 +33987,16 @@ var Profile = class Profile extends Object$1 {
|
|
|
33331
33987
|
_3CLQ1PLSXrhSQbTGGHuxNyaEFKM1_describes.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
33332
33988
|
continue;
|
|
33333
33989
|
}
|
|
33334
|
-
|
|
33990
|
+
const decoded = await Object$1.fromJsonLd(v, {
|
|
33335
33991
|
...options,
|
|
33336
33992
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
33337
|
-
})
|
|
33993
|
+
});
|
|
33994
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
33995
|
+
_3CLQ1PLSXrhSQbTGGHuxNyaEFKM1_describes.push(decoded);
|
|
33338
33996
|
}
|
|
33339
33997
|
instance.#_3CLQ1PLSXrhSQbTGGHuxNyaEFKM1_describes = _3CLQ1PLSXrhSQbTGGHuxNyaEFKM1_describes;
|
|
33340
|
-
|
|
33998
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
33999
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
33341
34000
|
instance._cachedJsonLd = structuredClone(json);
|
|
33342
34001
|
} catch {
|
|
33343
34002
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -33879,6 +34538,7 @@ var Question = class Question extends IntransitiveActivity {
|
|
|
33879
34538
|
_fromSubclass: true
|
|
33880
34539
|
});
|
|
33881
34540
|
if (!(instance instanceof Question)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
34541
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
33882
34542
|
const _2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf = [];
|
|
33883
34543
|
let _2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf__array = values["https://www.w3.org/ns/activitystreams#oneOf"];
|
|
33884
34544
|
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) {
|
|
@@ -33887,10 +34547,12 @@ var Question = class Question extends IntransitiveActivity {
|
|
|
33887
34547
|
_2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
33888
34548
|
continue;
|
|
33889
34549
|
}
|
|
33890
|
-
|
|
34550
|
+
const decoded = await Object$1.fromJsonLd(v, {
|
|
33891
34551
|
...options,
|
|
33892
34552
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
33893
|
-
})
|
|
34553
|
+
});
|
|
34554
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
34555
|
+
_2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf.push(decoded);
|
|
33894
34556
|
}
|
|
33895
34557
|
instance.#_2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf = _2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf;
|
|
33896
34558
|
const _2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf = [];
|
|
@@ -33901,10 +34563,12 @@ var Question = class Question extends IntransitiveActivity {
|
|
|
33901
34563
|
_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
33902
34564
|
continue;
|
|
33903
34565
|
}
|
|
33904
|
-
|
|
34566
|
+
const decoded = await Object$1.fromJsonLd(v, {
|
|
33905
34567
|
...options,
|
|
33906
34568
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
33907
|
-
})
|
|
34569
|
+
});
|
|
34570
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
34571
|
+
_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf.push(decoded);
|
|
33908
34572
|
}
|
|
33909
34573
|
instance.#_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf = _2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf;
|
|
33910
34574
|
const _3KronwL8DiiKBRcJFKQPiEHm8xb6_closed = [];
|
|
@@ -33912,7 +34576,11 @@ var Question = class Question extends IntransitiveActivity {
|
|
|
33912
34576
|
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) {
|
|
33913
34577
|
if (v == null) continue;
|
|
33914
34578
|
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;
|
|
33915
|
-
if (typeof decoded === "undefined")
|
|
34579
|
+
if (typeof decoded === "undefined") {
|
|
34580
|
+
shouldCacheJsonLd = false;
|
|
34581
|
+
continue;
|
|
34582
|
+
}
|
|
34583
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
33916
34584
|
_3KronwL8DiiKBRcJFKQPiEHm8xb6_closed.push(decoded);
|
|
33917
34585
|
}
|
|
33918
34586
|
instance.#_3KronwL8DiiKBRcJFKQPiEHm8xb6_closed = _3KronwL8DiiKBRcJFKQPiEHm8xb6_closed;
|
|
@@ -33920,7 +34588,9 @@ var Question = class Question extends IntransitiveActivity {
|
|
|
33920
34588
|
let _3H4RdST7dxfmghccvE3rKD3KgcxG_votersCount__array = values["http://joinmastodon.org/ns#votersCount"];
|
|
33921
34589
|
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) {
|
|
33922
34590
|
if (v == null) continue;
|
|
33923
|
-
|
|
34591
|
+
const decoded = v["@value"];
|
|
34592
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
34593
|
+
_3H4RdST7dxfmghccvE3rKD3KgcxG_votersCount.push(decoded);
|
|
33924
34594
|
}
|
|
33925
34595
|
instance.#_3H4RdST7dxfmghccvE3rKD3KgcxG_votersCount = _3H4RdST7dxfmghccvE3rKD3KgcxG_votersCount;
|
|
33926
34596
|
const _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl = [];
|
|
@@ -33929,10 +34599,13 @@ var Question = class Question extends IntransitiveActivity {
|
|
|
33929
34599
|
if (_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array == null || _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array.length < 1) _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array = values["http://fedibird.com/ns#quoteUri"];
|
|
33930
34600
|
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) {
|
|
33931
34601
|
if (v == null) continue;
|
|
33932
|
-
|
|
34602
|
+
const decoded = new URL(v["@value"]);
|
|
34603
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
34604
|
+
_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl.push(decoded);
|
|
33933
34605
|
}
|
|
33934
34606
|
instance.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl = _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl;
|
|
33935
|
-
|
|
34607
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
34608
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
33936
34609
|
instance._cachedJsonLd = structuredClone(json);
|
|
33937
34610
|
} catch {
|
|
33938
34611
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -34105,7 +34778,9 @@ var Read = class Read extends Activity {
|
|
|
34105
34778
|
_fromSubclass: true
|
|
34106
34779
|
});
|
|
34107
34780
|
if (!(instance instanceof Read)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
34108
|
-
|
|
34781
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
34782
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
34783
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
34109
34784
|
instance._cachedJsonLd = structuredClone(json);
|
|
34110
34785
|
} catch {
|
|
34111
34786
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -34254,7 +34929,9 @@ var Reject = class Reject extends Activity {
|
|
|
34254
34929
|
_fromSubclass: true
|
|
34255
34930
|
});
|
|
34256
34931
|
if (!(instance instanceof Reject)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
34257
|
-
|
|
34932
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
34933
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
34934
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
34258
34935
|
instance._cachedJsonLd = structuredClone(json);
|
|
34259
34936
|
} catch {
|
|
34260
34937
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -34981,6 +35658,7 @@ var Relationship = class Relationship extends Object$1 {
|
|
|
34981
35658
|
_fromSubclass: true
|
|
34982
35659
|
});
|
|
34983
35660
|
if (!(instance instanceof Relationship)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
35661
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
34984
35662
|
const _2Zqdmi46ZnDQsECS6mzwhrv3rUKq_subject = [];
|
|
34985
35663
|
let _2Zqdmi46ZnDQsECS6mzwhrv3rUKq_subject__array = values["https://www.w3.org/ns/activitystreams#subject"];
|
|
34986
35664
|
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) {
|
|
@@ -34989,10 +35667,12 @@ var Relationship = class Relationship extends Object$1 {
|
|
|
34989
35667
|
_2Zqdmi46ZnDQsECS6mzwhrv3rUKq_subject.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
34990
35668
|
continue;
|
|
34991
35669
|
}
|
|
34992
|
-
|
|
35670
|
+
const decoded = await Object$1.fromJsonLd(v, {
|
|
34993
35671
|
...options,
|
|
34994
35672
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
34995
|
-
})
|
|
35673
|
+
});
|
|
35674
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
35675
|
+
_2Zqdmi46ZnDQsECS6mzwhrv3rUKq_subject.push(decoded);
|
|
34996
35676
|
}
|
|
34997
35677
|
instance.#_2Zqdmi46ZnDQsECS6mzwhrv3rUKq_subject = _2Zqdmi46ZnDQsECS6mzwhrv3rUKq_subject;
|
|
34998
35678
|
const _2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = [];
|
|
@@ -35003,10 +35683,12 @@ var Relationship = class Relationship extends Object$1 {
|
|
|
35003
35683
|
_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
35004
35684
|
continue;
|
|
35005
35685
|
}
|
|
35006
|
-
|
|
35686
|
+
const decoded = await Object$1.fromJsonLd(v, {
|
|
35007
35687
|
...options,
|
|
35008
35688
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
35009
|
-
})
|
|
35689
|
+
});
|
|
35690
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
35691
|
+
_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object.push(decoded);
|
|
35010
35692
|
}
|
|
35011
35693
|
instance.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = _2MH19yxjn1wnHsNfa5n4JBhJzxyc_object;
|
|
35012
35694
|
const _4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship = [];
|
|
@@ -35017,13 +35699,16 @@ var Relationship = class Relationship extends Object$1 {
|
|
|
35017
35699
|
_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
35018
35700
|
continue;
|
|
35019
35701
|
}
|
|
35020
|
-
|
|
35702
|
+
const decoded = await Object$1.fromJsonLd(v, {
|
|
35021
35703
|
...options,
|
|
35022
35704
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
35023
|
-
})
|
|
35705
|
+
});
|
|
35706
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
35707
|
+
_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship.push(decoded);
|
|
35024
35708
|
}
|
|
35025
35709
|
instance.#_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship = _4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship;
|
|
35026
|
-
|
|
35710
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
35711
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
35027
35712
|
instance._cachedJsonLd = structuredClone(json);
|
|
35028
35713
|
} catch {
|
|
35029
35714
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -35189,7 +35874,9 @@ var Remove = class Remove extends Activity {
|
|
|
35189
35874
|
_fromSubclass: true
|
|
35190
35875
|
});
|
|
35191
35876
|
if (!(instance instanceof Remove)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
35192
|
-
|
|
35877
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
35878
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
35879
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
35193
35880
|
instance._cachedJsonLd = structuredClone(json);
|
|
35194
35881
|
} catch {
|
|
35195
35882
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -38054,12 +38741,17 @@ var Service = class Service extends Object$1 {
|
|
|
38054
38741
|
_fromSubclass: true
|
|
38055
38742
|
});
|
|
38056
38743
|
if (!(instance instanceof Service)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
38744
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
38057
38745
|
const _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = [];
|
|
38058
38746
|
let _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername__array = values["https://www.w3.org/ns/activitystreams#preferredUsername"];
|
|
38059
38747
|
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) {
|
|
38060
38748
|
if (v == null) continue;
|
|
38061
|
-
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;
|
|
38062
|
-
if (typeof decoded === "undefined")
|
|
38749
|
+
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;
|
|
38750
|
+
if (typeof decoded === "undefined") {
|
|
38751
|
+
shouldCacheJsonLd = false;
|
|
38752
|
+
continue;
|
|
38753
|
+
}
|
|
38754
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
38063
38755
|
_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername.push(decoded);
|
|
38064
38756
|
}
|
|
38065
38757
|
instance.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = _3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername;
|
|
@@ -38071,10 +38763,12 @@ var Service = class Service extends Object$1 {
|
|
|
38071
38763
|
_axq166E2eZADq34V4MYUc8KMZdC_publicKey.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
38072
38764
|
continue;
|
|
38073
38765
|
}
|
|
38074
|
-
|
|
38766
|
+
const decoded = await CryptographicKey.fromJsonLd(v, {
|
|
38075
38767
|
...options,
|
|
38076
38768
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
38077
|
-
})
|
|
38769
|
+
});
|
|
38770
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
38771
|
+
_axq166E2eZADq34V4MYUc8KMZdC_publicKey.push(decoded);
|
|
38078
38772
|
}
|
|
38079
38773
|
instance.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = _axq166E2eZADq34V4MYUc8KMZdC_publicKey;
|
|
38080
38774
|
const _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = [];
|
|
@@ -38085,17 +38779,21 @@ var Service = class Service extends Object$1 {
|
|
|
38085
38779
|
_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
38086
38780
|
continue;
|
|
38087
38781
|
}
|
|
38088
|
-
|
|
38782
|
+
const decoded = await Multikey.fromJsonLd(v, {
|
|
38089
38783
|
...options,
|
|
38090
38784
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
38091
|
-
})
|
|
38785
|
+
});
|
|
38786
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
38787
|
+
_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(decoded);
|
|
38092
38788
|
}
|
|
38093
38789
|
instance.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod;
|
|
38094
38790
|
const _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = [];
|
|
38095
38791
|
let _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers__array = values["https://www.w3.org/ns/activitystreams#manuallyApprovesFollowers"];
|
|
38096
38792
|
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) {
|
|
38097
38793
|
if (v == null) continue;
|
|
38098
|
-
|
|
38794
|
+
const decoded = v["@value"];
|
|
38795
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
38796
|
+
_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers.push(decoded);
|
|
38099
38797
|
}
|
|
38100
38798
|
instance.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers;
|
|
38101
38799
|
const _3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = [];
|
|
@@ -38113,7 +38811,11 @@ var Service = class Service extends Object$1 {
|
|
|
38113
38811
|
...options,
|
|
38114
38812
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
38115
38813
|
}) : void 0;
|
|
38116
|
-
if (typeof decoded === "undefined")
|
|
38814
|
+
if (typeof decoded === "undefined") {
|
|
38815
|
+
shouldCacheJsonLd = false;
|
|
38816
|
+
continue;
|
|
38817
|
+
}
|
|
38818
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
38117
38819
|
_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox.push(decoded);
|
|
38118
38820
|
}
|
|
38119
38821
|
instance.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = _3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox;
|
|
@@ -38132,7 +38834,11 @@ var Service = class Service extends Object$1 {
|
|
|
38132
38834
|
...options,
|
|
38133
38835
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
38134
38836
|
}) : void 0;
|
|
38135
|
-
if (typeof decoded === "undefined")
|
|
38837
|
+
if (typeof decoded === "undefined") {
|
|
38838
|
+
shouldCacheJsonLd = false;
|
|
38839
|
+
continue;
|
|
38840
|
+
}
|
|
38841
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
38136
38842
|
_41QwhqJouoLg3h8dRPKat21brynC_outbox.push(decoded);
|
|
38137
38843
|
}
|
|
38138
38844
|
instance.#_41QwhqJouoLg3h8dRPKat21brynC_outbox = _41QwhqJouoLg3h8dRPKat21brynC_outbox;
|
|
@@ -38144,10 +38850,12 @@ var Service = class Service extends Object$1 {
|
|
|
38144
38850
|
_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
38145
38851
|
continue;
|
|
38146
38852
|
}
|
|
38147
|
-
|
|
38853
|
+
const decoded = await Collection.fromJsonLd(v, {
|
|
38148
38854
|
...options,
|
|
38149
38855
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
38150
|
-
})
|
|
38856
|
+
});
|
|
38857
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
38858
|
+
_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.push(decoded);
|
|
38151
38859
|
}
|
|
38152
38860
|
instance.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = _3yAv8jymNfNuJUDuBzJ1NQhdbAee_following;
|
|
38153
38861
|
const _BBCTgfphhsFzpVfKTykGSpBNwoA_followers = [];
|
|
@@ -38158,10 +38866,12 @@ var Service = class Service extends Object$1 {
|
|
|
38158
38866
|
_BBCTgfphhsFzpVfKTykGSpBNwoA_followers.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
38159
38867
|
continue;
|
|
38160
38868
|
}
|
|
38161
|
-
|
|
38869
|
+
const decoded = await Collection.fromJsonLd(v, {
|
|
38162
38870
|
...options,
|
|
38163
38871
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
38164
|
-
})
|
|
38872
|
+
});
|
|
38873
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
38874
|
+
_BBCTgfphhsFzpVfKTykGSpBNwoA_followers.push(decoded);
|
|
38165
38875
|
}
|
|
38166
38876
|
instance.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = _BBCTgfphhsFzpVfKTykGSpBNwoA_followers;
|
|
38167
38877
|
const _3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = [];
|
|
@@ -38172,10 +38882,12 @@ var Service = class Service extends Object$1 {
|
|
|
38172
38882
|
_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
38173
38883
|
continue;
|
|
38174
38884
|
}
|
|
38175
|
-
|
|
38885
|
+
const decoded = await Collection.fromJsonLd(v, {
|
|
38176
38886
|
...options,
|
|
38177
38887
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
38178
|
-
})
|
|
38888
|
+
});
|
|
38889
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
38890
|
+
_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.push(decoded);
|
|
38179
38891
|
}
|
|
38180
38892
|
instance.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = _3bgkPwJanyTCoVFM9ovRcus8tKkU_liked;
|
|
38181
38893
|
const _4N1vBJzXDf8NbBumeECQMFvKetja_featured = [];
|
|
@@ -38186,10 +38898,12 @@ var Service = class Service extends Object$1 {
|
|
|
38186
38898
|
_4N1vBJzXDf8NbBumeECQMFvKetja_featured.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
38187
38899
|
continue;
|
|
38188
38900
|
}
|
|
38189
|
-
|
|
38901
|
+
const decoded = await Collection.fromJsonLd(v, {
|
|
38190
38902
|
...options,
|
|
38191
38903
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
38192
|
-
})
|
|
38904
|
+
});
|
|
38905
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
38906
|
+
_4N1vBJzXDf8NbBumeECQMFvKetja_featured.push(decoded);
|
|
38193
38907
|
}
|
|
38194
38908
|
instance.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured = _4N1vBJzXDf8NbBumeECQMFvKetja_featured;
|
|
38195
38909
|
const _2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = [];
|
|
@@ -38200,10 +38914,12 @@ var Service = class Service extends Object$1 {
|
|
|
38200
38914
|
_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
38201
38915
|
continue;
|
|
38202
38916
|
}
|
|
38203
|
-
|
|
38917
|
+
const decoded = await Collection.fromJsonLd(v, {
|
|
38204
38918
|
...options,
|
|
38205
38919
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
38206
|
-
})
|
|
38920
|
+
});
|
|
38921
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
38922
|
+
_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.push(decoded);
|
|
38207
38923
|
}
|
|
38208
38924
|
instance.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = _2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags;
|
|
38209
38925
|
const _3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = [];
|
|
@@ -38214,48 +38930,60 @@ var Service = class Service extends Object$1 {
|
|
|
38214
38930
|
_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
38215
38931
|
continue;
|
|
38216
38932
|
}
|
|
38217
|
-
|
|
38933
|
+
const decoded = await Collection.fromJsonLd(v, {
|
|
38218
38934
|
...options,
|
|
38219
38935
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
38220
|
-
})
|
|
38936
|
+
});
|
|
38937
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
38938
|
+
_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.push(decoded);
|
|
38221
38939
|
}
|
|
38222
38940
|
instance.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = _3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams;
|
|
38223
38941
|
const _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = [];
|
|
38224
38942
|
let _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints__array = values["https://www.w3.org/ns/activitystreams#endpoints"];
|
|
38225
38943
|
for (const v of _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints__array == null ? [] : _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints__array.length === 1 && "@list" in _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints__array[0] ? _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints__array[0]["@list"] : _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints__array) {
|
|
38226
38944
|
if (v == null) continue;
|
|
38227
|
-
|
|
38945
|
+
const decoded = await Endpoints.fromJsonLd(v, {
|
|
38228
38946
|
...options,
|
|
38229
38947
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
38230
|
-
})
|
|
38948
|
+
});
|
|
38949
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
38950
|
+
_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.push(decoded);
|
|
38231
38951
|
}
|
|
38232
38952
|
instance.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = _sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints;
|
|
38233
38953
|
const _gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = [];
|
|
38234
38954
|
let _gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable__array = values["http://joinmastodon.org/ns#discoverable"];
|
|
38235
38955
|
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) {
|
|
38236
38956
|
if (v == null) continue;
|
|
38237
|
-
|
|
38957
|
+
const decoded = v["@value"];
|
|
38958
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
38959
|
+
_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable.push(decoded);
|
|
38238
38960
|
}
|
|
38239
38961
|
instance.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = _gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable;
|
|
38240
38962
|
const _2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = [];
|
|
38241
38963
|
let _2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended__array = values["http://joinmastodon.org/ns#suspended"];
|
|
38242
38964
|
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) {
|
|
38243
38965
|
if (v == null) continue;
|
|
38244
|
-
|
|
38966
|
+
const decoded = v["@value"];
|
|
38967
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
38968
|
+
_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended.push(decoded);
|
|
38245
38969
|
}
|
|
38246
38970
|
instance.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = _2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended;
|
|
38247
38971
|
const _79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = [];
|
|
38248
38972
|
let _79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial__array = values["http://joinmastodon.org/ns#memorial"];
|
|
38249
38973
|
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) {
|
|
38250
38974
|
if (v == null) continue;
|
|
38251
|
-
|
|
38975
|
+
const decoded = v["@value"];
|
|
38976
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
38977
|
+
_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial.push(decoded);
|
|
38252
38978
|
}
|
|
38253
38979
|
instance.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = _79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial;
|
|
38254
38980
|
const _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = [];
|
|
38255
38981
|
let _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable__array = values["http://joinmastodon.org/ns#indexable"];
|
|
38256
38982
|
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) {
|
|
38257
38983
|
if (v == null) continue;
|
|
38258
|
-
|
|
38984
|
+
const decoded = v["@value"];
|
|
38985
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
38986
|
+
_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable.push(decoded);
|
|
38259
38987
|
}
|
|
38260
38988
|
instance.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable;
|
|
38261
38989
|
const _2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = [];
|
|
@@ -38282,7 +39010,11 @@ var Service = class Service extends Object$1 {
|
|
|
38282
39010
|
...options,
|
|
38283
39011
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
38284
39012
|
}) : void 0;
|
|
38285
|
-
if (typeof decoded === "undefined")
|
|
39013
|
+
if (typeof decoded === "undefined") {
|
|
39014
|
+
shouldCacheJsonLd = false;
|
|
39015
|
+
continue;
|
|
39016
|
+
}
|
|
39017
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
38286
39018
|
_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.push(decoded);
|
|
38287
39019
|
}
|
|
38288
39020
|
instance.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = _2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo;
|
|
@@ -38310,7 +39042,11 @@ var Service = class Service extends Object$1 {
|
|
|
38310
39042
|
...options,
|
|
38311
39043
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
38312
39044
|
}) : void 0;
|
|
38313
|
-
if (typeof decoded === "undefined")
|
|
39045
|
+
if (typeof decoded === "undefined") {
|
|
39046
|
+
shouldCacheJsonLd = false;
|
|
39047
|
+
continue;
|
|
39048
|
+
}
|
|
39049
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
38314
39050
|
_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.push(decoded);
|
|
38315
39051
|
}
|
|
38316
39052
|
instance.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = _3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs;
|
|
@@ -38322,27 +39058,34 @@ var Service = class Service extends Object$1 {
|
|
|
38322
39058
|
_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://") ? new URL("at://" + encodeURIComponent(v["@id"].substring(5))) : new URL(v["@id"]));
|
|
38323
39059
|
continue;
|
|
38324
39060
|
}
|
|
38325
|
-
|
|
39061
|
+
const decoded = await DidService.fromJsonLd(v, {
|
|
38326
39062
|
...options,
|
|
38327
39063
|
baseUrl: values["@id"] == null ? options.baseUrl : new URL(values["@id"])
|
|
38328
|
-
})
|
|
39064
|
+
});
|
|
39065
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
39066
|
+
_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.push(decoded);
|
|
38329
39067
|
}
|
|
38330
39068
|
instance.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = _4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service;
|
|
38331
39069
|
const _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = [];
|
|
38332
39070
|
let _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage__array = values["https://misskey-hub.net/ns#_misskey_followedMessage"];
|
|
38333
39071
|
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) {
|
|
38334
39072
|
if (v == null) continue;
|
|
38335
|
-
|
|
39073
|
+
const decoded = v["@value"];
|
|
39074
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
39075
|
+
_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage.push(decoded);
|
|
38336
39076
|
}
|
|
38337
39077
|
instance.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage;
|
|
38338
39078
|
const _2xEU4QtkC53RAun67T81Egqt9vmL_isCat = [];
|
|
38339
39079
|
let _2xEU4QtkC53RAun67T81Egqt9vmL_isCat__array = values["https://misskey-hub.net/ns#isCat"];
|
|
38340
39080
|
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) {
|
|
38341
39081
|
if (v == null) continue;
|
|
38342
|
-
|
|
39082
|
+
const decoded = v["@value"];
|
|
39083
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
39084
|
+
_2xEU4QtkC53RAun67T81Egqt9vmL_isCat.push(decoded);
|
|
38343
39085
|
}
|
|
38344
39086
|
instance.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = _2xEU4QtkC53RAun67T81Egqt9vmL_isCat;
|
|
38345
|
-
|
|
39087
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
39088
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
38346
39089
|
instance._cachedJsonLd = structuredClone(json);
|
|
38347
39090
|
} catch {
|
|
38348
39091
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -38483,6 +39226,7 @@ var Source = class {
|
|
|
38483
39226
|
#tracerProvider;
|
|
38484
39227
|
#warning;
|
|
38485
39228
|
#cachedJsonLd;
|
|
39229
|
+
#shouldCacheJsonLd = true;
|
|
38486
39230
|
id;
|
|
38487
39231
|
get _documentLoader() {
|
|
38488
39232
|
return this.#documentLoader;
|
|
@@ -38502,6 +39246,17 @@ var Source = class {
|
|
|
38502
39246
|
set _cachedJsonLd(value) {
|
|
38503
39247
|
this.#cachedJsonLd = value;
|
|
38504
39248
|
}
|
|
39249
|
+
get _shouldCacheJsonLd() {
|
|
39250
|
+
return this.#shouldCacheJsonLd;
|
|
39251
|
+
}
|
|
39252
|
+
set _shouldCacheJsonLd(value) {
|
|
39253
|
+
this.#shouldCacheJsonLd = value;
|
|
39254
|
+
}
|
|
39255
|
+
static _shouldCacheDecodedJsonLd(value) {
|
|
39256
|
+
if (value == null || typeof value !== "object") return true;
|
|
39257
|
+
if (!("_shouldCacheJsonLd" in value)) return true;
|
|
39258
|
+
return value._shouldCacheJsonLd;
|
|
39259
|
+
}
|
|
38505
39260
|
/**
|
|
38506
39261
|
* The type URI of {@link Source}: `https://www.w3.org/ns/activitystreams#Source`.
|
|
38507
39262
|
*/
|
|
@@ -38699,12 +39454,17 @@ var Source = class {
|
|
|
38699
39454
|
if (!values["@type"].includes("https://www.w3.org/ns/activitystreams#Source")) throw new TypeError("Invalid type: " + values["@type"]);
|
|
38700
39455
|
}
|
|
38701
39456
|
const instance = new this({ id: "@id" in values ? new URL(values["@id"]) : void 0 }, options);
|
|
39457
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
38702
39458
|
const _4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content = [];
|
|
38703
39459
|
let _4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content__array = values["https://www.w3.org/ns/activitystreams#content"];
|
|
38704
39460
|
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) {
|
|
38705
39461
|
if (v == null) continue;
|
|
38706
|
-
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;
|
|
38707
|
-
if (typeof decoded === "undefined")
|
|
39462
|
+
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;
|
|
39463
|
+
if (typeof decoded === "undefined") {
|
|
39464
|
+
shouldCacheJsonLd = false;
|
|
39465
|
+
continue;
|
|
39466
|
+
}
|
|
39467
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
38708
39468
|
_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content.push(decoded);
|
|
38709
39469
|
}
|
|
38710
39470
|
instance.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content = _4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content;
|
|
@@ -38712,10 +39472,13 @@ var Source = class {
|
|
|
38712
39472
|
let _3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType__array = values["https://www.w3.org/ns/activitystreams#mediaType"];
|
|
38713
39473
|
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) {
|
|
38714
39474
|
if (v == null) continue;
|
|
38715
|
-
|
|
39475
|
+
const decoded = v["@value"];
|
|
39476
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
39477
|
+
_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType.push(decoded);
|
|
38716
39478
|
}
|
|
38717
39479
|
instance.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType = _3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType;
|
|
38718
|
-
|
|
39480
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
39481
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
38719
39482
|
instance._cachedJsonLd = structuredClone(json);
|
|
38720
39483
|
} catch {
|
|
38721
39484
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -38879,7 +39642,9 @@ var TentativeAccept = class TentativeAccept extends Accept {
|
|
|
38879
39642
|
_fromSubclass: true
|
|
38880
39643
|
});
|
|
38881
39644
|
if (!(instance instanceof TentativeAccept)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
38882
|
-
|
|
39645
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
39646
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
39647
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
38883
39648
|
instance._cachedJsonLd = structuredClone(json);
|
|
38884
39649
|
} catch {
|
|
38885
39650
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -39027,7 +39792,9 @@ var TentativeReject = class TentativeReject extends Reject {
|
|
|
39027
39792
|
_fromSubclass: true
|
|
39028
39793
|
});
|
|
39029
39794
|
if (!(instance instanceof TentativeReject)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
39030
|
-
|
|
39795
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
39796
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
39797
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
39031
39798
|
instance._cachedJsonLd = structuredClone(json);
|
|
39032
39799
|
} catch {
|
|
39033
39800
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -39214,14 +39981,18 @@ var Tombstone = class Tombstone extends Object$1 {
|
|
|
39214
39981
|
_fromSubclass: true
|
|
39215
39982
|
});
|
|
39216
39983
|
if (!(instance instanceof Tombstone)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
39984
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
39217
39985
|
const _8g8g4LiVMhFTXskuDEqx4ascxUr_deleted = [];
|
|
39218
39986
|
let _8g8g4LiVMhFTXskuDEqx4ascxUr_deleted__array = values["https://www.w3.org/ns/activitystreams#deleted"];
|
|
39219
39987
|
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) {
|
|
39220
39988
|
if (v == null) continue;
|
|
39221
|
-
|
|
39989
|
+
const decoded = Temporal.Instant.from(v["@value"].substring(19).match(/[Z+-]/) ? v["@value"] : v["@value"] + "Z");
|
|
39990
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
39991
|
+
_8g8g4LiVMhFTXskuDEqx4ascxUr_deleted.push(decoded);
|
|
39222
39992
|
}
|
|
39223
39993
|
instance.#_8g8g4LiVMhFTXskuDEqx4ascxUr_deleted = _8g8g4LiVMhFTXskuDEqx4ascxUr_deleted;
|
|
39224
|
-
|
|
39994
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
39995
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
39225
39996
|
instance._cachedJsonLd = structuredClone(json);
|
|
39226
39997
|
} catch {
|
|
39227
39998
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -39377,7 +40148,9 @@ var Travel = class Travel extends IntransitiveActivity {
|
|
|
39377
40148
|
_fromSubclass: true
|
|
39378
40149
|
});
|
|
39379
40150
|
if (!(instance instanceof Travel)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
39380
|
-
|
|
40151
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
40152
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
40153
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
39381
40154
|
instance._cachedJsonLd = structuredClone(json);
|
|
39382
40155
|
} catch {
|
|
39383
40156
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -39539,7 +40312,9 @@ var Undo = class Undo extends Activity {
|
|
|
39539
40312
|
_fromSubclass: true
|
|
39540
40313
|
});
|
|
39541
40314
|
if (!(instance instanceof Undo)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
39542
|
-
|
|
40315
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
40316
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
40317
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
39543
40318
|
instance._cachedJsonLd = structuredClone(json);
|
|
39544
40319
|
} catch {
|
|
39545
40320
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -39739,7 +40514,9 @@ var Update = class Update extends Activity {
|
|
|
39739
40514
|
_fromSubclass: true
|
|
39740
40515
|
});
|
|
39741
40516
|
if (!(instance instanceof Update)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
39742
|
-
|
|
40517
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
40518
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
40519
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
39743
40520
|
instance._cachedJsonLd = structuredClone(json);
|
|
39744
40521
|
} catch {
|
|
39745
40522
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -39893,7 +40670,9 @@ var Video = class Video extends Document {
|
|
|
39893
40670
|
_fromSubclass: true
|
|
39894
40671
|
});
|
|
39895
40672
|
if (!(instance instanceof Video)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
39896
|
-
|
|
40673
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
40674
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
40675
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
39897
40676
|
instance._cachedJsonLd = structuredClone(json);
|
|
39898
40677
|
} catch {
|
|
39899
40678
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -40040,7 +40819,9 @@ var View = class View extends Activity {
|
|
|
40040
40819
|
_fromSubclass: true
|
|
40041
40820
|
});
|
|
40042
40821
|
if (!(instance instanceof View)) throw new TypeError("Unexpected type: " + instance.constructor.name);
|
|
40043
|
-
|
|
40822
|
+
let shouldCacheJsonLd = instance._shouldCacheJsonLd;
|
|
40823
|
+
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
40824
|
+
if (shouldCacheJsonLd && (!("_fromSubclass" in options) || !options._fromSubclass)) try {
|
|
40044
40825
|
instance._cachedJsonLd = structuredClone(json);
|
|
40045
40826
|
} catch {
|
|
40046
40827
|
getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
|
|
@@ -40058,4 +40839,4 @@ View.prototype[Symbol.for("nodejs.util.inspect.custom")] = function(_depth, opti
|
|
|
40058
40839
|
return "View " + inspect(this._getCustomInspectProxy(), options);
|
|
40059
40840
|
};
|
|
40060
40841
|
//#endregion
|
|
40061
|
-
export {
|
|
40842
|
+
export { __exportAll as C, __commonJSMin as S, PropertyValue as _, Create as a, Source as b, Group as c, Note as d, Object$1 as f, Place as g, Person as h, Collection as i, Hashtag as l, Organization as m, Announce as n, CryptographicKey as o, OrderedCollectionPage as p, Application as r, Follow as s, Activity as t, Link as u, Question as v, __toESM as w, vocab_exports as x, Service as y };
|