@fedify/vocab 2.3.11-dev.2280 → 2.3.11
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 +566 -485
- package/dist/mod.d.cts +162 -81
- package/dist/mod.d.ts +162 -81
- package/dist/mod.js +567 -486
- package/dist-tests/{actor-CIMfbMHA.mjs → actor-C-KmLNyS.mjs} +2 -2
- package/dist-tests/actor.test.mjs +2 -2
- package/dist-tests/lookup.test.mjs +2 -2
- package/dist-tests/type.test.mjs +1 -1
- package/dist-tests/{vocab-BI7riPro.mjs → vocab-X8qGgyGp.mjs} +566 -485
- package/dist-tests/vocab.test.mjs +225 -2
- package/package.json +4 -4
- package/src/vocab.test.ts +305 -0
package/dist/mod.js
CHANGED
|
@@ -4,12 +4,12 @@ import { SpanStatusCode, trace } from "@opentelemetry/api";
|
|
|
4
4
|
import { domainToASCII, domainToUnicode } from "node:url";
|
|
5
5
|
import jsonld from "@fedify/vocab-runtime/jsonld";
|
|
6
6
|
import { getLogger } from "@logtape/logtape";
|
|
7
|
-
import { LanguageString, LanguageString as LanguageString$1, decodeMultibase, encodeMultibase, exportMultibaseKey, exportSpki, getDocumentLoader, importMultibaseKey, importPem, isDecimal, parseDecimal } from "@fedify/vocab-runtime";
|
|
7
|
+
import { LanguageString, LanguageString as LanguageString$1, decodeMultibase, encodeMultibase, exportMultibaseKey, exportSpki, getDocumentLoader, importMultibaseKey, importPem, isDecimal, normalizeLanguageTag, parseDecimal } from "@fedify/vocab-runtime";
|
|
8
8
|
import { isTemporalDuration, isTemporalInstant } from "@fedify/vocab-runtime/temporal";
|
|
9
9
|
import { delay } from "es-toolkit";
|
|
10
10
|
//#region deno.json
|
|
11
11
|
var name = "@fedify/vocab";
|
|
12
|
-
var version = "2.3.11
|
|
12
|
+
var version = "2.3.11";
|
|
13
13
|
//#endregion
|
|
14
14
|
//#region src/type.ts
|
|
15
15
|
function getTypeId(object) {
|
|
@@ -58,7 +58,7 @@ function decodeIri(iri) {
|
|
|
58
58
|
}
|
|
59
59
|
function isValidLanguageTag(language) {
|
|
60
60
|
try {
|
|
61
|
-
new Intl.Locale(language);
|
|
61
|
+
new Intl.Locale(normalizeLanguageTag(language));
|
|
62
62
|
return true;
|
|
63
63
|
} catch (error) {
|
|
64
64
|
if (error instanceof RangeError) return false;
|
|
@@ -193,7 +193,7 @@ var Object$1 = class Object$1 {
|
|
|
193
193
|
if (values.id == null || values.id instanceof URL) this.id = values.id ?? null;
|
|
194
194
|
else throw new TypeError("The id must be a URL.");
|
|
195
195
|
if ("attachments" in values && values.attachments != null) if (Array.isArray(values.attachments) && values.attachments.every((v) => v instanceof Object$1 || v instanceof Link || v instanceof PropertyValue || v instanceof URL)) {
|
|
196
|
-
this.#_49BipA5dq9eoH8LX8xdsVumveTca_attachment = values.attachments;
|
|
196
|
+
this.#_49BipA5dq9eoH8LX8xdsVumveTca_attachment = values.attachments.slice();
|
|
197
197
|
for (let i = 0; i < values.attachments.length; i++) this.#_trust_49BipA5dq9eoH8LX8xdsVumveTca_attachment.add(i);
|
|
198
198
|
} else throw new TypeError("The attachments must be an array of type Object | Link | PropertyValue | URL.");
|
|
199
199
|
if ("attribution" in values && values.attribution != null) if (values.attribution instanceof Application || values.attribution instanceof Group || values.attribution instanceof Organization || values.attribution instanceof Person || values.attribution instanceof Service || values.attribution instanceof URL) {
|
|
@@ -203,7 +203,7 @@ var Object$1 = class Object$1 {
|
|
|
203
203
|
if ("attributions" in values && values.attributions != null) {
|
|
204
204
|
if ("attribution" in values && values.attribution != null) throw new TypeError("Cannot initialize both attribution and attributions at the same time.");
|
|
205
205
|
if (Array.isArray(values.attributions) && values.attributions.every((v) => v instanceof Application || v instanceof Group || v instanceof Organization || v instanceof Person || v instanceof Service || v instanceof URL)) {
|
|
206
|
-
this.#_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo = values.attributions;
|
|
206
|
+
this.#_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo = values.attributions.slice();
|
|
207
207
|
for (let i = 0; i < values.attributions.length; i++) this.#_trust_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo.add(i);
|
|
208
208
|
} else throw new TypeError("The attributions must be an array of type Application | Group | Organization | Person | Service | URL.");
|
|
209
209
|
}
|
|
@@ -214,7 +214,7 @@ var Object$1 = class Object$1 {
|
|
|
214
214
|
if ("audiences" in values && values.audiences != null) {
|
|
215
215
|
if ("audience" in values && values.audience != null) throw new TypeError("Cannot initialize both audience and audiences at the same time.");
|
|
216
216
|
if (Array.isArray(values.audiences) && values.audiences.every((v) => v instanceof Object$1 || v instanceof URL)) {
|
|
217
|
-
this.#_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience = values.audiences;
|
|
217
|
+
this.#_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience = values.audiences.slice();
|
|
218
218
|
for (let i = 0; i < values.audiences.length; i++) this.#_trust_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience.add(i);
|
|
219
219
|
} else throw new TypeError("The audiences must be an array of type Object | URL.");
|
|
220
220
|
}
|
|
@@ -222,24 +222,24 @@ var Object$1 = class Object$1 {
|
|
|
222
222
|
else throw new TypeError("The content must be of type string | LanguageString.");
|
|
223
223
|
if ("contents" in values && values.contents != null) {
|
|
224
224
|
if ("content" in values && values.content != null) throw new TypeError("Cannot initialize both content and contents at the same time.");
|
|
225
|
-
if (Array.isArray(values.contents) && values.contents.every((v) => typeof v === "string" || v instanceof LanguageString$1)) this.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content = values.contents;
|
|
225
|
+
if (Array.isArray(values.contents) && values.contents.every((v) => typeof v === "string" || v instanceof LanguageString$1)) this.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content = values.contents.slice();
|
|
226
226
|
else throw new TypeError("The contents must be an array of type string | LanguageString.");
|
|
227
227
|
}
|
|
228
228
|
if ("contexts" in values && values.contexts != null) if (Array.isArray(values.contexts) && values.contexts.every((v) => v instanceof Object$1 || v instanceof Link || v instanceof URL)) {
|
|
229
|
-
this.#_3mhZzGXSpQ431mBSz2kvych22v4e_context = values.contexts;
|
|
229
|
+
this.#_3mhZzGXSpQ431mBSz2kvych22v4e_context = values.contexts.slice();
|
|
230
230
|
for (let i = 0; i < values.contexts.length; i++) this.#_trust_3mhZzGXSpQ431mBSz2kvych22v4e_context.add(i);
|
|
231
231
|
} else throw new TypeError("The contexts must be an array of type Object | Link | URL.");
|
|
232
232
|
if ("name" in values && values.name != null) if (typeof values.name === "string" || values.name instanceof LanguageString$1) this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = [values.name];
|
|
233
233
|
else throw new TypeError("The name must be of type string | LanguageString.");
|
|
234
234
|
if ("names" in values && values.names != null) {
|
|
235
235
|
if ("name" in values && values.name != null) throw new TypeError("Cannot initialize both name and names at the same time.");
|
|
236
|
-
if (Array.isArray(values.names) && values.names.every((v) => typeof v === "string" || v instanceof LanguageString$1)) this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = values.names;
|
|
236
|
+
if (Array.isArray(values.names) && values.names.every((v) => typeof v === "string" || v instanceof LanguageString$1)) this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = values.names.slice();
|
|
237
237
|
else throw new TypeError("The names must be an array of type string | LanguageString.");
|
|
238
238
|
}
|
|
239
239
|
if ("endTime" in values && values.endTime != null) if (isTemporalInstant(values.endTime)) this.#_219RwDanjScTv5tYCjwGZVCM7KZ9_endTime = [values.endTime];
|
|
240
240
|
else throw new TypeError("The endTime must be of type Temporal.Instant.");
|
|
241
241
|
if ("generators" in values && values.generators != null) if (Array.isArray(values.generators) && values.generators.every((v) => v instanceof Object$1 || v instanceof Link || v instanceof URL)) {
|
|
242
|
-
this.#_86xFhmgBapoMvYqjbjRuDPayTrS_generator = values.generators;
|
|
242
|
+
this.#_86xFhmgBapoMvYqjbjRuDPayTrS_generator = values.generators.slice();
|
|
243
243
|
for (let i = 0; i < values.generators.length; i++) this.#_trust_86xFhmgBapoMvYqjbjRuDPayTrS_generator.add(i);
|
|
244
244
|
} else throw new TypeError("The generators must be an array of type Object | Link | URL.");
|
|
245
245
|
if ("icon" in values && values.icon != null) if (values.icon instanceof Image || values.icon instanceof URL) {
|
|
@@ -249,7 +249,7 @@ var Object$1 = class Object$1 {
|
|
|
249
249
|
if ("icons" in values && values.icons != null) {
|
|
250
250
|
if ("icon" in values && values.icon != null) throw new TypeError("Cannot initialize both icon and icons at the same time.");
|
|
251
251
|
if (Array.isArray(values.icons) && values.icons.every((v) => v instanceof Image || v instanceof URL)) {
|
|
252
|
-
this.#_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon = values.icons;
|
|
252
|
+
this.#_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon = values.icons.slice();
|
|
253
253
|
for (let i = 0; i < values.icons.length; i++) this.#_trust_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon.add(i);
|
|
254
254
|
} else throw new TypeError("The icons must be an array of type Image | URL.");
|
|
255
255
|
}
|
|
@@ -260,7 +260,7 @@ var Object$1 = class Object$1 {
|
|
|
260
260
|
if ("images" in values && values.images != null) {
|
|
261
261
|
if ("image" in values && values.image != null) throw new TypeError("Cannot initialize both image and images at the same time.");
|
|
262
262
|
if (Array.isArray(values.images) && values.images.every((v) => v instanceof Image || v instanceof URL)) {
|
|
263
|
-
this.#_3dXrUdkARxwyJLtJcYi1AJ92H41U_image = values.images;
|
|
263
|
+
this.#_3dXrUdkARxwyJLtJcYi1AJ92H41U_image = values.images.slice();
|
|
264
264
|
for (let i = 0; i < values.images.length; i++) this.#_trust_3dXrUdkARxwyJLtJcYi1AJ92H41U_image.add(i);
|
|
265
265
|
} else throw new TypeError("The images must be an array of type Image | URL.");
|
|
266
266
|
}
|
|
@@ -271,7 +271,7 @@ var Object$1 = class Object$1 {
|
|
|
271
271
|
if ("replyTargets" in values && values.replyTargets != null) {
|
|
272
272
|
if ("replyTarget" in values && values.replyTarget != null) throw new TypeError("Cannot initialize both replyTarget and replyTargets at the same time.");
|
|
273
273
|
if (Array.isArray(values.replyTargets) && values.replyTargets.every((v) => v instanceof Object$1 || v instanceof Link || v instanceof URL)) {
|
|
274
|
-
this.#_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo = values.replyTargets;
|
|
274
|
+
this.#_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo = values.replyTargets.slice();
|
|
275
275
|
for (let i = 0; i < values.replyTargets.length; i++) this.#_trust_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo.add(i);
|
|
276
276
|
} else throw new TypeError("The replyTargets must be an array of type Object | Link | URL.");
|
|
277
277
|
}
|
|
@@ -282,7 +282,7 @@ var Object$1 = class Object$1 {
|
|
|
282
282
|
if ("locations" in values && values.locations != null) {
|
|
283
283
|
if ("location" in values && values.location != null) throw new TypeError("Cannot initialize both location and locations at the same time.");
|
|
284
284
|
if (Array.isArray(values.locations) && values.locations.every((v) => v instanceof Object$1 || v instanceof Link || v instanceof URL)) {
|
|
285
|
-
this.#_31k5MUZJsnsPNg8dQQJieWaXTFnR_location = values.locations;
|
|
285
|
+
this.#_31k5MUZJsnsPNg8dQQJieWaXTFnR_location = values.locations.slice();
|
|
286
286
|
for (let i = 0; i < values.locations.length; i++) this.#_trust_31k5MUZJsnsPNg8dQQJieWaXTFnR_location.add(i);
|
|
287
287
|
} else throw new TypeError("The locations must be an array of type Object | Link | URL.");
|
|
288
288
|
}
|
|
@@ -293,7 +293,7 @@ var Object$1 = class Object$1 {
|
|
|
293
293
|
if ("previews" in values && values.previews != null) {
|
|
294
294
|
if ("preview" in values && values.preview != null) throw new TypeError("Cannot initialize both preview and previews at the same time.");
|
|
295
295
|
if (Array.isArray(values.previews) && values.previews.every((v) => v instanceof Link || v instanceof Object$1 || v instanceof URL)) {
|
|
296
|
-
this.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview = values.previews;
|
|
296
|
+
this.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview = values.previews.slice();
|
|
297
297
|
for (let i = 0; i < values.previews.length; i++) this.#_trust_gCVTegXxWWCw6wWRxa1QF65zusg_preview.add(i);
|
|
298
298
|
} else throw new TypeError("The previews must be an array of type Link | Object | URL.");
|
|
299
299
|
}
|
|
@@ -321,11 +321,11 @@ var Object$1 = class Object$1 {
|
|
|
321
321
|
else throw new TypeError("The summary must be of type string | LanguageString.");
|
|
322
322
|
if ("summaries" in values && values.summaries != null) {
|
|
323
323
|
if ("summary" in values && values.summary != null) throw new TypeError("Cannot initialize both summary and summaries at the same time.");
|
|
324
|
-
if (Array.isArray(values.summaries) && values.summaries.every((v) => typeof v === "string" || v instanceof LanguageString$1)) this.#_4LqirZspQbFWWQEbFcXAxm7tTDN1_summary = values.summaries;
|
|
324
|
+
if (Array.isArray(values.summaries) && values.summaries.every((v) => typeof v === "string" || v instanceof LanguageString$1)) this.#_4LqirZspQbFWWQEbFcXAxm7tTDN1_summary = values.summaries.slice();
|
|
325
325
|
else throw new TypeError("The summaries must be an array of type string | LanguageString.");
|
|
326
326
|
}
|
|
327
327
|
if ("tags" in values && values.tags != null) if (Array.isArray(values.tags) && values.tags.every((v) => v instanceof Object$1 || v instanceof Link || v instanceof URL)) {
|
|
328
|
-
this.#_5chuqj6s95p5gg2sk1HntGfarRf_tag = values.tags;
|
|
328
|
+
this.#_5chuqj6s95p5gg2sk1HntGfarRf_tag = values.tags.slice();
|
|
329
329
|
for (let i = 0; i < values.tags.length; i++) this.#_trust_5chuqj6s95p5gg2sk1HntGfarRf_tag.add(i);
|
|
330
330
|
} else throw new TypeError("The tags must be an array of type Object | Link | URL.");
|
|
331
331
|
if ("updated" in values && values.updated != null) if (isTemporalInstant(values.updated)) this.#_385aB7ySixcf5Un6z3VsWmThgCzQ_updated = [values.updated];
|
|
@@ -334,7 +334,7 @@ var Object$1 = class Object$1 {
|
|
|
334
334
|
else throw new TypeError("The url must be of type URL | Link.");
|
|
335
335
|
if ("urls" in values && values.urls != null) {
|
|
336
336
|
if ("url" in values && values.url != null) throw new TypeError("Cannot initialize both url and urls at the same time.");
|
|
337
|
-
if (Array.isArray(values.urls) && values.urls.every((v) => v instanceof URL || v instanceof Link)) this.#_2oPEH9MQ3aj8JVwyYuWkqoVwV865_url = values.urls;
|
|
337
|
+
if (Array.isArray(values.urls) && values.urls.every((v) => v instanceof URL || v instanceof Link)) this.#_2oPEH9MQ3aj8JVwyYuWkqoVwV865_url = values.urls.slice();
|
|
338
338
|
else throw new TypeError("The urls must be an array of type URL | Link.");
|
|
339
339
|
}
|
|
340
340
|
if ("to" in values && values.to != null) if (values.to instanceof Object$1 || values.to instanceof URL) {
|
|
@@ -344,7 +344,7 @@ var Object$1 = class Object$1 {
|
|
|
344
344
|
if ("tos" in values && values.tos != null) {
|
|
345
345
|
if ("to" in values && values.to != null) throw new TypeError("Cannot initialize both to and tos at the same time.");
|
|
346
346
|
if (Array.isArray(values.tos) && values.tos.every((v) => v instanceof Object$1 || v instanceof URL)) {
|
|
347
|
-
this.#_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to = values.tos;
|
|
347
|
+
this.#_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to = values.tos.slice();
|
|
348
348
|
for (let i = 0; i < values.tos.length; i++) this.#_trust_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to.add(i);
|
|
349
349
|
} else throw new TypeError("The tos must be an array of type Object | URL.");
|
|
350
350
|
}
|
|
@@ -355,7 +355,7 @@ var Object$1 = class Object$1 {
|
|
|
355
355
|
if ("btos" in values && values.btos != null) {
|
|
356
356
|
if ("bto" in values && values.bto != null) throw new TypeError("Cannot initialize both bto and btos at the same time.");
|
|
357
357
|
if (Array.isArray(values.btos) && values.btos.every((v) => v instanceof Object$1 || v instanceof URL)) {
|
|
358
|
-
this.#_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto = values.btos;
|
|
358
|
+
this.#_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto = values.btos.slice();
|
|
359
359
|
for (let i = 0; i < values.btos.length; i++) this.#_trust_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto.add(i);
|
|
360
360
|
} else throw new TypeError("The btos must be an array of type Object | URL.");
|
|
361
361
|
}
|
|
@@ -366,7 +366,7 @@ var Object$1 = class Object$1 {
|
|
|
366
366
|
if ("ccs" in values && values.ccs != null) {
|
|
367
367
|
if ("cc" in values && values.cc != null) throw new TypeError("Cannot initialize both cc and ccs at the same time.");
|
|
368
368
|
if (Array.isArray(values.ccs) && values.ccs.every((v) => v instanceof Object$1 || v instanceof URL)) {
|
|
369
|
-
this.#_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc = values.ccs;
|
|
369
|
+
this.#_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc = values.ccs.slice();
|
|
370
370
|
for (let i = 0; i < values.ccs.length; i++) this.#_trust_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc.add(i);
|
|
371
371
|
} else throw new TypeError("The ccs must be an array of type Object | URL.");
|
|
372
372
|
}
|
|
@@ -377,7 +377,7 @@ var Object$1 = class Object$1 {
|
|
|
377
377
|
if ("bccs" in values && values.bccs != null) {
|
|
378
378
|
if ("bcc" in values && values.bcc != null) throw new TypeError("Cannot initialize both bcc and bccs at the same time.");
|
|
379
379
|
if (Array.isArray(values.bccs) && values.bccs.every((v) => v instanceof Object$1 || v instanceof URL)) {
|
|
380
|
-
this.#_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc = values.bccs;
|
|
380
|
+
this.#_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc = values.bccs.slice();
|
|
381
381
|
for (let i = 0; i < values.bccs.length; i++) this.#_trust_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc.add(i);
|
|
382
382
|
} else throw new TypeError("The bccs must be an array of type Object | URL.");
|
|
383
383
|
}
|
|
@@ -396,7 +396,7 @@ var Object$1 = class Object$1 {
|
|
|
396
396
|
if ("proofs" in values && values.proofs != null) {
|
|
397
397
|
if ("proof" in values && values.proof != null) throw new TypeError("Cannot initialize both proof and proofs at the same time.");
|
|
398
398
|
if (Array.isArray(values.proofs) && values.proofs.every((v) => v instanceof DataIntegrityProof || v instanceof URL)) {
|
|
399
|
-
this.#_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof = values.proofs;
|
|
399
|
+
this.#_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof = values.proofs.slice();
|
|
400
400
|
for (let i = 0; i < values.proofs.length; i++) this.#_trust_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof.add(i);
|
|
401
401
|
} else throw new TypeError("The proofs must be an array of type DataIntegrityProof | URL.");
|
|
402
402
|
}
|
|
@@ -421,7 +421,8 @@ var Object$1 = class Object$1 {
|
|
|
421
421
|
* Clones this instance, optionally updating it with the given values.
|
|
422
422
|
* @param values The values to update the clone with.
|
|
423
423
|
* @param options The options to use for cloning.
|
|
424
|
-
* @returns The cloned instance.
|
|
424
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
425
|
+
* and URLs are shared with this instance.
|
|
425
426
|
*/
|
|
426
427
|
clone(values = {}, options = {}) {
|
|
427
428
|
if (this._warning != null) {
|
|
@@ -432,14 +433,14 @@ var Object$1 = class Object$1 {
|
|
|
432
433
|
};
|
|
433
434
|
}
|
|
434
435
|
const clone = new this.constructor({ id: values.id ?? this.id }, options);
|
|
435
|
-
clone.#_49BipA5dq9eoH8LX8xdsVumveTca_attachment = this.#_49BipA5dq9eoH8LX8xdsVumveTca_attachment;
|
|
436
|
+
clone.#_49BipA5dq9eoH8LX8xdsVumveTca_attachment = this.#_49BipA5dq9eoH8LX8xdsVumveTca_attachment.slice();
|
|
436
437
|
clone.#_trust_49BipA5dq9eoH8LX8xdsVumveTca_attachment = new Set(this.#_trust_49BipA5dq9eoH8LX8xdsVumveTca_attachment);
|
|
437
438
|
if ("attachments" in values && values.attachments != null) if (Array.isArray(values.attachments) && values.attachments.every((v) => v instanceof Object$1 || v instanceof Link || v instanceof PropertyValue || v instanceof URL)) {
|
|
438
|
-
clone.#_49BipA5dq9eoH8LX8xdsVumveTca_attachment = values.attachments;
|
|
439
|
+
clone.#_49BipA5dq9eoH8LX8xdsVumveTca_attachment = values.attachments.slice();
|
|
439
440
|
clone.#_trust_49BipA5dq9eoH8LX8xdsVumveTca_attachment = /* @__PURE__ */ new Set();
|
|
440
441
|
for (let i = 0; i < values.attachments.length; i++) clone.#_trust_49BipA5dq9eoH8LX8xdsVumveTca_attachment.add(i);
|
|
441
442
|
} else throw new TypeError("The attachments must be an array of type Object | Link | PropertyValue | URL.");
|
|
442
|
-
clone.#_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo = this.#_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo;
|
|
443
|
+
clone.#_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo = this.#_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo.slice();
|
|
443
444
|
clone.#_trust_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo = new Set(this.#_trust_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo);
|
|
444
445
|
if ("attribution" in values && values.attribution != null) if (values.attribution instanceof Application || values.attribution instanceof Group || values.attribution instanceof Organization || values.attribution instanceof Person || values.attribution instanceof Service || values.attribution instanceof URL) {
|
|
445
446
|
clone.#_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo = [values.attribution];
|
|
@@ -448,12 +449,12 @@ var Object$1 = class Object$1 {
|
|
|
448
449
|
if ("attributions" in values && values.attributions != null) {
|
|
449
450
|
if ("attribution" in values && values.attribution != null) throw new TypeError("Cannot update both attribution and attributions at the same time.");
|
|
450
451
|
if (Array.isArray(values.attributions) && values.attributions.every((v) => v instanceof Application || v instanceof Group || v instanceof Organization || v instanceof Person || v instanceof Service || v instanceof URL)) {
|
|
451
|
-
clone.#_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo = values.attributions;
|
|
452
|
+
clone.#_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo = values.attributions.slice();
|
|
452
453
|
clone.#_trust_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo = /* @__PURE__ */ new Set();
|
|
453
454
|
for (let i = 0; i < values.attributions.length; i++) clone.#_trust_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo.add(i);
|
|
454
455
|
} else throw new TypeError("The attributions must be an array of type Application | Group | Organization | Person | Service | URL.");
|
|
455
456
|
}
|
|
456
|
-
clone.#_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience = this.#_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience;
|
|
457
|
+
clone.#_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience = this.#_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience.slice();
|
|
457
458
|
clone.#_trust_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience = new Set(this.#_trust_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience);
|
|
458
459
|
if ("audience" in values && values.audience != null) if (values.audience instanceof Object$1 || values.audience instanceof URL) {
|
|
459
460
|
clone.#_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience = [values.audience];
|
|
@@ -462,45 +463,45 @@ var Object$1 = class Object$1 {
|
|
|
462
463
|
if ("audiences" in values && values.audiences != null) {
|
|
463
464
|
if ("audience" in values && values.audience != null) throw new TypeError("Cannot update both audience and audiences at the same time.");
|
|
464
465
|
if (Array.isArray(values.audiences) && values.audiences.every((v) => v instanceof Object$1 || v instanceof URL)) {
|
|
465
|
-
clone.#_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience = values.audiences;
|
|
466
|
+
clone.#_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience = values.audiences.slice();
|
|
466
467
|
clone.#_trust_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience = /* @__PURE__ */ new Set();
|
|
467
468
|
for (let i = 0; i < values.audiences.length; i++) clone.#_trust_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience.add(i);
|
|
468
469
|
} else throw new TypeError("The audiences must be an array of type Object | URL.");
|
|
469
470
|
}
|
|
470
|
-
clone.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content = this.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content;
|
|
471
|
+
clone.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content = this.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content.slice();
|
|
471
472
|
if ("content" in values && values.content != null) if (typeof values.content === "string" || values.content instanceof LanguageString$1) clone.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content = [values.content];
|
|
472
473
|
else throw new TypeError("The content must be of type string | LanguageString.");
|
|
473
474
|
if ("contents" in values && values.contents != null) {
|
|
474
475
|
if ("content" in values && values.content != null) throw new TypeError("Cannot update both content and contents at the same time.");
|
|
475
|
-
if (Array.isArray(values.contents) && values.contents.every((v) => typeof v === "string" || v instanceof LanguageString$1)) clone.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content = values.contents;
|
|
476
|
+
if (Array.isArray(values.contents) && values.contents.every((v) => typeof v === "string" || v instanceof LanguageString$1)) clone.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content = values.contents.slice();
|
|
476
477
|
else throw new TypeError("The contents must be an array of type string | LanguageString.");
|
|
477
478
|
}
|
|
478
|
-
clone.#_3mhZzGXSpQ431mBSz2kvych22v4e_context = this.#_3mhZzGXSpQ431mBSz2kvych22v4e_context;
|
|
479
|
+
clone.#_3mhZzGXSpQ431mBSz2kvych22v4e_context = this.#_3mhZzGXSpQ431mBSz2kvych22v4e_context.slice();
|
|
479
480
|
clone.#_trust_3mhZzGXSpQ431mBSz2kvych22v4e_context = new Set(this.#_trust_3mhZzGXSpQ431mBSz2kvych22v4e_context);
|
|
480
481
|
if ("contexts" in values && values.contexts != null) if (Array.isArray(values.contexts) && values.contexts.every((v) => v instanceof Object$1 || v instanceof Link || v instanceof URL)) {
|
|
481
|
-
clone.#_3mhZzGXSpQ431mBSz2kvych22v4e_context = values.contexts;
|
|
482
|
+
clone.#_3mhZzGXSpQ431mBSz2kvych22v4e_context = values.contexts.slice();
|
|
482
483
|
clone.#_trust_3mhZzGXSpQ431mBSz2kvych22v4e_context = /* @__PURE__ */ new Set();
|
|
483
484
|
for (let i = 0; i < values.contexts.length; i++) clone.#_trust_3mhZzGXSpQ431mBSz2kvych22v4e_context.add(i);
|
|
484
485
|
} else throw new TypeError("The contexts must be an array of type Object | Link | URL.");
|
|
485
|
-
clone.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name;
|
|
486
|
+
clone.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name.slice();
|
|
486
487
|
if ("name" in values && values.name != null) if (typeof values.name === "string" || values.name instanceof LanguageString$1) clone.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = [values.name];
|
|
487
488
|
else throw new TypeError("The name must be of type string | LanguageString.");
|
|
488
489
|
if ("names" in values && values.names != null) {
|
|
489
490
|
if ("name" in values && values.name != null) throw new TypeError("Cannot update both name and names at the same time.");
|
|
490
|
-
if (Array.isArray(values.names) && values.names.every((v) => typeof v === "string" || v instanceof LanguageString$1)) clone.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = values.names;
|
|
491
|
+
if (Array.isArray(values.names) && values.names.every((v) => typeof v === "string" || v instanceof LanguageString$1)) clone.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = values.names.slice();
|
|
491
492
|
else throw new TypeError("The names must be an array of type string | LanguageString.");
|
|
492
493
|
}
|
|
493
|
-
clone.#_219RwDanjScTv5tYCjwGZVCM7KZ9_endTime = this.#_219RwDanjScTv5tYCjwGZVCM7KZ9_endTime;
|
|
494
|
+
clone.#_219RwDanjScTv5tYCjwGZVCM7KZ9_endTime = this.#_219RwDanjScTv5tYCjwGZVCM7KZ9_endTime.slice();
|
|
494
495
|
if ("endTime" in values && values.endTime != null) if (isTemporalInstant(values.endTime)) clone.#_219RwDanjScTv5tYCjwGZVCM7KZ9_endTime = [values.endTime];
|
|
495
496
|
else throw new TypeError("The endTime must be of type Temporal.Instant.");
|
|
496
|
-
clone.#_86xFhmgBapoMvYqjbjRuDPayTrS_generator = this.#_86xFhmgBapoMvYqjbjRuDPayTrS_generator;
|
|
497
|
+
clone.#_86xFhmgBapoMvYqjbjRuDPayTrS_generator = this.#_86xFhmgBapoMvYqjbjRuDPayTrS_generator.slice();
|
|
497
498
|
clone.#_trust_86xFhmgBapoMvYqjbjRuDPayTrS_generator = new Set(this.#_trust_86xFhmgBapoMvYqjbjRuDPayTrS_generator);
|
|
498
499
|
if ("generators" in values && values.generators != null) if (Array.isArray(values.generators) && values.generators.every((v) => v instanceof Object$1 || v instanceof Link || v instanceof URL)) {
|
|
499
|
-
clone.#_86xFhmgBapoMvYqjbjRuDPayTrS_generator = values.generators;
|
|
500
|
+
clone.#_86xFhmgBapoMvYqjbjRuDPayTrS_generator = values.generators.slice();
|
|
500
501
|
clone.#_trust_86xFhmgBapoMvYqjbjRuDPayTrS_generator = /* @__PURE__ */ new Set();
|
|
501
502
|
for (let i = 0; i < values.generators.length; i++) clone.#_trust_86xFhmgBapoMvYqjbjRuDPayTrS_generator.add(i);
|
|
502
503
|
} else throw new TypeError("The generators must be an array of type Object | Link | URL.");
|
|
503
|
-
clone.#_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon = this.#_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon;
|
|
504
|
+
clone.#_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon = this.#_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon.slice();
|
|
504
505
|
clone.#_trust_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon = new Set(this.#_trust_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon);
|
|
505
506
|
if ("icon" in values && values.icon != null) if (values.icon instanceof Image || values.icon instanceof URL) {
|
|
506
507
|
clone.#_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon = [values.icon];
|
|
@@ -509,12 +510,12 @@ var Object$1 = class Object$1 {
|
|
|
509
510
|
if ("icons" in values && values.icons != null) {
|
|
510
511
|
if ("icon" in values && values.icon != null) throw new TypeError("Cannot update both icon and icons at the same time.");
|
|
511
512
|
if (Array.isArray(values.icons) && values.icons.every((v) => v instanceof Image || v instanceof URL)) {
|
|
512
|
-
clone.#_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon = values.icons;
|
|
513
|
+
clone.#_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon = values.icons.slice();
|
|
513
514
|
clone.#_trust_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon = /* @__PURE__ */ new Set();
|
|
514
515
|
for (let i = 0; i < values.icons.length; i++) clone.#_trust_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon.add(i);
|
|
515
516
|
} else throw new TypeError("The icons must be an array of type Image | URL.");
|
|
516
517
|
}
|
|
517
|
-
clone.#_3dXrUdkARxwyJLtJcYi1AJ92H41U_image = this.#_3dXrUdkARxwyJLtJcYi1AJ92H41U_image;
|
|
518
|
+
clone.#_3dXrUdkARxwyJLtJcYi1AJ92H41U_image = this.#_3dXrUdkARxwyJLtJcYi1AJ92H41U_image.slice();
|
|
518
519
|
clone.#_trust_3dXrUdkARxwyJLtJcYi1AJ92H41U_image = new Set(this.#_trust_3dXrUdkARxwyJLtJcYi1AJ92H41U_image);
|
|
519
520
|
if ("image" in values && values.image != null) if (values.image instanceof Image || values.image instanceof URL) {
|
|
520
521
|
clone.#_3dXrUdkARxwyJLtJcYi1AJ92H41U_image = [values.image];
|
|
@@ -523,12 +524,12 @@ var Object$1 = class Object$1 {
|
|
|
523
524
|
if ("images" in values && values.images != null) {
|
|
524
525
|
if ("image" in values && values.image != null) throw new TypeError("Cannot update both image and images at the same time.");
|
|
525
526
|
if (Array.isArray(values.images) && values.images.every((v) => v instanceof Image || v instanceof URL)) {
|
|
526
|
-
clone.#_3dXrUdkARxwyJLtJcYi1AJ92H41U_image = values.images;
|
|
527
|
+
clone.#_3dXrUdkARxwyJLtJcYi1AJ92H41U_image = values.images.slice();
|
|
527
528
|
clone.#_trust_3dXrUdkARxwyJLtJcYi1AJ92H41U_image = /* @__PURE__ */ new Set();
|
|
528
529
|
for (let i = 0; i < values.images.length; i++) clone.#_trust_3dXrUdkARxwyJLtJcYi1AJ92H41U_image.add(i);
|
|
529
530
|
} else throw new TypeError("The images must be an array of type Image | URL.");
|
|
530
531
|
}
|
|
531
|
-
clone.#_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo = this.#_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo;
|
|
532
|
+
clone.#_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo = this.#_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo.slice();
|
|
532
533
|
clone.#_trust_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo = new Set(this.#_trust_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo);
|
|
533
534
|
if ("replyTarget" in values && values.replyTarget != null) if (values.replyTarget instanceof Object$1 || values.replyTarget instanceof Link || values.replyTarget instanceof URL) {
|
|
534
535
|
clone.#_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo = [values.replyTarget];
|
|
@@ -537,12 +538,12 @@ var Object$1 = class Object$1 {
|
|
|
537
538
|
if ("replyTargets" in values && values.replyTargets != null) {
|
|
538
539
|
if ("replyTarget" in values && values.replyTarget != null) throw new TypeError("Cannot update both replyTarget and replyTargets at the same time.");
|
|
539
540
|
if (Array.isArray(values.replyTargets) && values.replyTargets.every((v) => v instanceof Object$1 || v instanceof Link || v instanceof URL)) {
|
|
540
|
-
clone.#_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo = values.replyTargets;
|
|
541
|
+
clone.#_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo = values.replyTargets.slice();
|
|
541
542
|
clone.#_trust_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo = /* @__PURE__ */ new Set();
|
|
542
543
|
for (let i = 0; i < values.replyTargets.length; i++) clone.#_trust_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo.add(i);
|
|
543
544
|
} else throw new TypeError("The replyTargets must be an array of type Object | Link | URL.");
|
|
544
545
|
}
|
|
545
|
-
clone.#_31k5MUZJsnsPNg8dQQJieWaXTFnR_location = this.#_31k5MUZJsnsPNg8dQQJieWaXTFnR_location;
|
|
546
|
+
clone.#_31k5MUZJsnsPNg8dQQJieWaXTFnR_location = this.#_31k5MUZJsnsPNg8dQQJieWaXTFnR_location.slice();
|
|
546
547
|
clone.#_trust_31k5MUZJsnsPNg8dQQJieWaXTFnR_location = new Set(this.#_trust_31k5MUZJsnsPNg8dQQJieWaXTFnR_location);
|
|
547
548
|
if ("location" in values && values.location != null) if (values.location instanceof Object$1 || values.location instanceof Link || values.location instanceof URL) {
|
|
548
549
|
clone.#_31k5MUZJsnsPNg8dQQJieWaXTFnR_location = [values.location];
|
|
@@ -551,12 +552,12 @@ var Object$1 = class Object$1 {
|
|
|
551
552
|
if ("locations" in values && values.locations != null) {
|
|
552
553
|
if ("location" in values && values.location != null) throw new TypeError("Cannot update both location and locations at the same time.");
|
|
553
554
|
if (Array.isArray(values.locations) && values.locations.every((v) => v instanceof Object$1 || v instanceof Link || v instanceof URL)) {
|
|
554
|
-
clone.#_31k5MUZJsnsPNg8dQQJieWaXTFnR_location = values.locations;
|
|
555
|
+
clone.#_31k5MUZJsnsPNg8dQQJieWaXTFnR_location = values.locations.slice();
|
|
555
556
|
clone.#_trust_31k5MUZJsnsPNg8dQQJieWaXTFnR_location = /* @__PURE__ */ new Set();
|
|
556
557
|
for (let i = 0; i < values.locations.length; i++) clone.#_trust_31k5MUZJsnsPNg8dQQJieWaXTFnR_location.add(i);
|
|
557
558
|
} else throw new TypeError("The locations must be an array of type Object | Link | URL.");
|
|
558
559
|
}
|
|
559
|
-
clone.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview = this.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview;
|
|
560
|
+
clone.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview = this.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview.slice();
|
|
560
561
|
clone.#_trust_gCVTegXxWWCw6wWRxa1QF65zusg_preview = new Set(this.#_trust_gCVTegXxWWCw6wWRxa1QF65zusg_preview);
|
|
561
562
|
if ("preview" in values && values.preview != null) if (values.preview instanceof Link || values.preview instanceof Object$1 || values.preview instanceof URL) {
|
|
562
563
|
clone.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview = [values.preview];
|
|
@@ -565,68 +566,68 @@ var Object$1 = class Object$1 {
|
|
|
565
566
|
if ("previews" in values && values.previews != null) {
|
|
566
567
|
if ("preview" in values && values.preview != null) throw new TypeError("Cannot update both preview and previews at the same time.");
|
|
567
568
|
if (Array.isArray(values.previews) && values.previews.every((v) => v instanceof Link || v instanceof Object$1 || v instanceof URL)) {
|
|
568
|
-
clone.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview = values.previews;
|
|
569
|
+
clone.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview = values.previews.slice();
|
|
569
570
|
clone.#_trust_gCVTegXxWWCw6wWRxa1QF65zusg_preview = /* @__PURE__ */ new Set();
|
|
570
571
|
for (let i = 0; i < values.previews.length; i++) clone.#_trust_gCVTegXxWWCw6wWRxa1QF65zusg_preview.add(i);
|
|
571
572
|
} else throw new TypeError("The previews must be an array of type Link | Object | URL.");
|
|
572
573
|
}
|
|
573
|
-
clone.#_5e258TDXtuhaFRPZiGoDfEpjdMr_published = this.#_5e258TDXtuhaFRPZiGoDfEpjdMr_published;
|
|
574
|
+
clone.#_5e258TDXtuhaFRPZiGoDfEpjdMr_published = this.#_5e258TDXtuhaFRPZiGoDfEpjdMr_published.slice();
|
|
574
575
|
if ("published" in values && values.published != null) if (isTemporalInstant(values.published)) clone.#_5e258TDXtuhaFRPZiGoDfEpjdMr_published = [values.published];
|
|
575
576
|
else throw new TypeError("The published must be of type Temporal.Instant.");
|
|
576
|
-
clone.#_7UpwM3JWcXhADcscukEehBorf6k_replies = this.#_7UpwM3JWcXhADcscukEehBorf6k_replies;
|
|
577
|
+
clone.#_7UpwM3JWcXhADcscukEehBorf6k_replies = this.#_7UpwM3JWcXhADcscukEehBorf6k_replies.slice();
|
|
577
578
|
clone.#_trust_7UpwM3JWcXhADcscukEehBorf6k_replies = new Set(this.#_trust_7UpwM3JWcXhADcscukEehBorf6k_replies);
|
|
578
579
|
if ("replies" in values && values.replies != null) if (values.replies instanceof Collection || values.replies instanceof URL) {
|
|
579
580
|
clone.#_7UpwM3JWcXhADcscukEehBorf6k_replies = [values.replies];
|
|
580
581
|
clone.#_trust_7UpwM3JWcXhADcscukEehBorf6k_replies = new Set([0]);
|
|
581
582
|
} else throw new TypeError("The replies must be of type Collection | URL.");
|
|
582
|
-
clone.#_3kAfck9PcEYt2L7xug5y99YPbANs_shares = this.#_3kAfck9PcEYt2L7xug5y99YPbANs_shares;
|
|
583
|
+
clone.#_3kAfck9PcEYt2L7xug5y99YPbANs_shares = this.#_3kAfck9PcEYt2L7xug5y99YPbANs_shares.slice();
|
|
583
584
|
clone.#_trust_3kAfck9PcEYt2L7xug5y99YPbANs_shares = new Set(this.#_trust_3kAfck9PcEYt2L7xug5y99YPbANs_shares);
|
|
584
585
|
if ("shares" in values && values.shares != null) if (values.shares instanceof Collection || values.shares instanceof URL) {
|
|
585
586
|
clone.#_3kAfck9PcEYt2L7xug5y99YPbANs_shares = [values.shares];
|
|
586
587
|
clone.#_trust_3kAfck9PcEYt2L7xug5y99YPbANs_shares = new Set([0]);
|
|
587
588
|
} else throw new TypeError("The shares must be of type Collection | URL.");
|
|
588
|
-
clone.#_S3ceDnpMdzoTRCccB9FkJWrEzYW_likes = this.#_S3ceDnpMdzoTRCccB9FkJWrEzYW_likes;
|
|
589
|
+
clone.#_S3ceDnpMdzoTRCccB9FkJWrEzYW_likes = this.#_S3ceDnpMdzoTRCccB9FkJWrEzYW_likes.slice();
|
|
589
590
|
clone.#_trust_S3ceDnpMdzoTRCccB9FkJWrEzYW_likes = new Set(this.#_trust_S3ceDnpMdzoTRCccB9FkJWrEzYW_likes);
|
|
590
591
|
if ("likes" in values && values.likes != null) if (values.likes instanceof Collection || values.likes instanceof URL) {
|
|
591
592
|
clone.#_S3ceDnpMdzoTRCccB9FkJWrEzYW_likes = [values.likes];
|
|
592
593
|
clone.#_trust_S3ceDnpMdzoTRCccB9FkJWrEzYW_likes = new Set([0]);
|
|
593
594
|
} else throw new TypeError("The likes must be of type Collection | URL.");
|
|
594
|
-
clone.#_kMatyyNAuxoTD8GQMBfA5ogThMR_emojiReactions = this.#_kMatyyNAuxoTD8GQMBfA5ogThMR_emojiReactions;
|
|
595
|
+
clone.#_kMatyyNAuxoTD8GQMBfA5ogThMR_emojiReactions = this.#_kMatyyNAuxoTD8GQMBfA5ogThMR_emojiReactions.slice();
|
|
595
596
|
clone.#_trust_kMatyyNAuxoTD8GQMBfA5ogThMR_emojiReactions = new Set(this.#_trust_kMatyyNAuxoTD8GQMBfA5ogThMR_emojiReactions);
|
|
596
597
|
if ("emojiReactions" in values && values.emojiReactions != null) if (values.emojiReactions instanceof Collection || values.emojiReactions instanceof URL) {
|
|
597
598
|
clone.#_kMatyyNAuxoTD8GQMBfA5ogThMR_emojiReactions = [values.emojiReactions];
|
|
598
599
|
clone.#_trust_kMatyyNAuxoTD8GQMBfA5ogThMR_emojiReactions = new Set([0]);
|
|
599
600
|
} else throw new TypeError("The emojiReactions must be of type Collection | URL.");
|
|
600
|
-
clone.#_2w3Jmue4up8iVDUA51WZqomEF438_startTime = this.#_2w3Jmue4up8iVDUA51WZqomEF438_startTime;
|
|
601
|
+
clone.#_2w3Jmue4up8iVDUA51WZqomEF438_startTime = this.#_2w3Jmue4up8iVDUA51WZqomEF438_startTime.slice();
|
|
601
602
|
if ("startTime" in values && values.startTime != null) if (isTemporalInstant(values.startTime)) clone.#_2w3Jmue4up8iVDUA51WZqomEF438_startTime = [values.startTime];
|
|
602
603
|
else throw new TypeError("The startTime must be of type Temporal.Instant.");
|
|
603
|
-
clone.#_4LqirZspQbFWWQEbFcXAxm7tTDN1_summary = this.#_4LqirZspQbFWWQEbFcXAxm7tTDN1_summary;
|
|
604
|
+
clone.#_4LqirZspQbFWWQEbFcXAxm7tTDN1_summary = this.#_4LqirZspQbFWWQEbFcXAxm7tTDN1_summary.slice();
|
|
604
605
|
if ("summary" in values && values.summary != null) if (typeof values.summary === "string" || values.summary instanceof LanguageString$1) clone.#_4LqirZspQbFWWQEbFcXAxm7tTDN1_summary = [values.summary];
|
|
605
606
|
else throw new TypeError("The summary must be of type string | LanguageString.");
|
|
606
607
|
if ("summaries" in values && values.summaries != null) {
|
|
607
608
|
if ("summary" in values && values.summary != null) throw new TypeError("Cannot update both summary and summaries at the same time.");
|
|
608
|
-
if (Array.isArray(values.summaries) && values.summaries.every((v) => typeof v === "string" || v instanceof LanguageString$1)) clone.#_4LqirZspQbFWWQEbFcXAxm7tTDN1_summary = values.summaries;
|
|
609
|
+
if (Array.isArray(values.summaries) && values.summaries.every((v) => typeof v === "string" || v instanceof LanguageString$1)) clone.#_4LqirZspQbFWWQEbFcXAxm7tTDN1_summary = values.summaries.slice();
|
|
609
610
|
else throw new TypeError("The summaries must be an array of type string | LanguageString.");
|
|
610
611
|
}
|
|
611
|
-
clone.#_5chuqj6s95p5gg2sk1HntGfarRf_tag = this.#_5chuqj6s95p5gg2sk1HntGfarRf_tag;
|
|
612
|
+
clone.#_5chuqj6s95p5gg2sk1HntGfarRf_tag = this.#_5chuqj6s95p5gg2sk1HntGfarRf_tag.slice();
|
|
612
613
|
clone.#_trust_5chuqj6s95p5gg2sk1HntGfarRf_tag = new Set(this.#_trust_5chuqj6s95p5gg2sk1HntGfarRf_tag);
|
|
613
614
|
if ("tags" in values && values.tags != null) if (Array.isArray(values.tags) && values.tags.every((v) => v instanceof Object$1 || v instanceof Link || v instanceof URL)) {
|
|
614
|
-
clone.#_5chuqj6s95p5gg2sk1HntGfarRf_tag = values.tags;
|
|
615
|
+
clone.#_5chuqj6s95p5gg2sk1HntGfarRf_tag = values.tags.slice();
|
|
615
616
|
clone.#_trust_5chuqj6s95p5gg2sk1HntGfarRf_tag = /* @__PURE__ */ new Set();
|
|
616
617
|
for (let i = 0; i < values.tags.length; i++) clone.#_trust_5chuqj6s95p5gg2sk1HntGfarRf_tag.add(i);
|
|
617
618
|
} else throw new TypeError("The tags must be an array of type Object | Link | URL.");
|
|
618
|
-
clone.#_385aB7ySixcf5Un6z3VsWmThgCzQ_updated = this.#_385aB7ySixcf5Un6z3VsWmThgCzQ_updated;
|
|
619
|
+
clone.#_385aB7ySixcf5Un6z3VsWmThgCzQ_updated = this.#_385aB7ySixcf5Un6z3VsWmThgCzQ_updated.slice();
|
|
619
620
|
if ("updated" in values && values.updated != null) if (isTemporalInstant(values.updated)) clone.#_385aB7ySixcf5Un6z3VsWmThgCzQ_updated = [values.updated];
|
|
620
621
|
else throw new TypeError("The updated must be of type Temporal.Instant.");
|
|
621
|
-
clone.#_2oPEH9MQ3aj8JVwyYuWkqoVwV865_url = this.#_2oPEH9MQ3aj8JVwyYuWkqoVwV865_url;
|
|
622
|
+
clone.#_2oPEH9MQ3aj8JVwyYuWkqoVwV865_url = this.#_2oPEH9MQ3aj8JVwyYuWkqoVwV865_url.slice();
|
|
622
623
|
if ("url" in values && values.url != null) if (values.url instanceof URL || values.url instanceof Link) clone.#_2oPEH9MQ3aj8JVwyYuWkqoVwV865_url = [values.url];
|
|
623
624
|
else throw new TypeError("The url must be of type URL | Link.");
|
|
624
625
|
if ("urls" in values && values.urls != null) {
|
|
625
626
|
if ("url" in values && values.url != null) throw new TypeError("Cannot update both url and urls at the same time.");
|
|
626
|
-
if (Array.isArray(values.urls) && values.urls.every((v) => v instanceof URL || v instanceof Link)) clone.#_2oPEH9MQ3aj8JVwyYuWkqoVwV865_url = values.urls;
|
|
627
|
+
if (Array.isArray(values.urls) && values.urls.every((v) => v instanceof URL || v instanceof Link)) clone.#_2oPEH9MQ3aj8JVwyYuWkqoVwV865_url = values.urls.slice();
|
|
627
628
|
else throw new TypeError("The urls must be an array of type URL | Link.");
|
|
628
629
|
}
|
|
629
|
-
clone.#_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to = this.#_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to;
|
|
630
|
+
clone.#_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to = this.#_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to.slice();
|
|
630
631
|
clone.#_trust_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to = new Set(this.#_trust_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to);
|
|
631
632
|
if ("to" in values && values.to != null) if (values.to instanceof Object$1 || values.to instanceof URL) {
|
|
632
633
|
clone.#_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to = [values.to];
|
|
@@ -635,12 +636,12 @@ var Object$1 = class Object$1 {
|
|
|
635
636
|
if ("tos" in values && values.tos != null) {
|
|
636
637
|
if ("to" in values && values.to != null) throw new TypeError("Cannot update both to and tos at the same time.");
|
|
637
638
|
if (Array.isArray(values.tos) && values.tos.every((v) => v instanceof Object$1 || v instanceof URL)) {
|
|
638
|
-
clone.#_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to = values.tos;
|
|
639
|
+
clone.#_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to = values.tos.slice();
|
|
639
640
|
clone.#_trust_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to = /* @__PURE__ */ new Set();
|
|
640
641
|
for (let i = 0; i < values.tos.length; i++) clone.#_trust_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to.add(i);
|
|
641
642
|
} else throw new TypeError("The tos must be an array of type Object | URL.");
|
|
642
643
|
}
|
|
643
|
-
clone.#_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto = this.#_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto;
|
|
644
|
+
clone.#_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto = this.#_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto.slice();
|
|
644
645
|
clone.#_trust_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto = new Set(this.#_trust_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto);
|
|
645
646
|
if ("bto" in values && values.bto != null) if (values.bto instanceof Object$1 || values.bto instanceof URL) {
|
|
646
647
|
clone.#_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto = [values.bto];
|
|
@@ -649,12 +650,12 @@ var Object$1 = class Object$1 {
|
|
|
649
650
|
if ("btos" in values && values.btos != null) {
|
|
650
651
|
if ("bto" in values && values.bto != null) throw new TypeError("Cannot update both bto and btos at the same time.");
|
|
651
652
|
if (Array.isArray(values.btos) && values.btos.every((v) => v instanceof Object$1 || v instanceof URL)) {
|
|
652
|
-
clone.#_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto = values.btos;
|
|
653
|
+
clone.#_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto = values.btos.slice();
|
|
653
654
|
clone.#_trust_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto = /* @__PURE__ */ new Set();
|
|
654
655
|
for (let i = 0; i < values.btos.length; i++) clone.#_trust_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto.add(i);
|
|
655
656
|
} else throw new TypeError("The btos must be an array of type Object | URL.");
|
|
656
657
|
}
|
|
657
|
-
clone.#_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc = this.#_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc;
|
|
658
|
+
clone.#_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc = this.#_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc.slice();
|
|
658
659
|
clone.#_trust_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc = new Set(this.#_trust_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc);
|
|
659
660
|
if ("cc" in values && values.cc != null) if (values.cc instanceof Object$1 || values.cc instanceof URL) {
|
|
660
661
|
clone.#_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc = [values.cc];
|
|
@@ -663,12 +664,12 @@ var Object$1 = class Object$1 {
|
|
|
663
664
|
if ("ccs" in values && values.ccs != null) {
|
|
664
665
|
if ("cc" in values && values.cc != null) throw new TypeError("Cannot update both cc and ccs at the same time.");
|
|
665
666
|
if (Array.isArray(values.ccs) && values.ccs.every((v) => v instanceof Object$1 || v instanceof URL)) {
|
|
666
|
-
clone.#_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc = values.ccs;
|
|
667
|
+
clone.#_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc = values.ccs.slice();
|
|
667
668
|
clone.#_trust_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc = /* @__PURE__ */ new Set();
|
|
668
669
|
for (let i = 0; i < values.ccs.length; i++) clone.#_trust_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc.add(i);
|
|
669
670
|
} else throw new TypeError("The ccs must be an array of type Object | URL.");
|
|
670
671
|
}
|
|
671
|
-
clone.#_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc = this.#_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc;
|
|
672
|
+
clone.#_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc = this.#_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc.slice();
|
|
672
673
|
clone.#_trust_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc = new Set(this.#_trust_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc);
|
|
673
674
|
if ("bcc" in values && values.bcc != null) if (values.bcc instanceof Object$1 || values.bcc instanceof URL) {
|
|
674
675
|
clone.#_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc = [values.bcc];
|
|
@@ -677,24 +678,24 @@ var Object$1 = class Object$1 {
|
|
|
677
678
|
if ("bccs" in values && values.bccs != null) {
|
|
678
679
|
if ("bcc" in values && values.bcc != null) throw new TypeError("Cannot update both bcc and bccs at the same time.");
|
|
679
680
|
if (Array.isArray(values.bccs) && values.bccs.every((v) => v instanceof Object$1 || v instanceof URL)) {
|
|
680
|
-
clone.#_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc = values.bccs;
|
|
681
|
+
clone.#_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc = values.bccs.slice();
|
|
681
682
|
clone.#_trust_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc = /* @__PURE__ */ new Set();
|
|
682
683
|
for (let i = 0; i < values.bccs.length; i++) clone.#_trust_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc.add(i);
|
|
683
684
|
} else throw new TypeError("The bccs must be an array of type Object | URL.");
|
|
684
685
|
}
|
|
685
|
-
clone.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType = this.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType;
|
|
686
|
+
clone.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType = this.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType.slice();
|
|
686
687
|
if ("mediaType" in values && values.mediaType != null) if (typeof values.mediaType === "string") clone.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType = [values.mediaType];
|
|
687
688
|
else throw new TypeError("The mediaType must be of type string.");
|
|
688
|
-
clone.#_3bNvLMBN1bCJETiTihM3wvi1B2JX_duration = this.#_3bNvLMBN1bCJETiTihM3wvi1B2JX_duration;
|
|
689
|
+
clone.#_3bNvLMBN1bCJETiTihM3wvi1B2JX_duration = this.#_3bNvLMBN1bCJETiTihM3wvi1B2JX_duration.slice();
|
|
689
690
|
if ("duration" in values && values.duration != null) if (isTemporalDuration(values.duration)) clone.#_3bNvLMBN1bCJETiTihM3wvi1B2JX_duration = [values.duration];
|
|
690
691
|
else throw new TypeError("The duration must be of type Temporal.Duration.");
|
|
691
|
-
clone.#_u8gdcDTtChQ4tbSQMXc4cYWyum7_sensitive = this.#_u8gdcDTtChQ4tbSQMXc4cYWyum7_sensitive;
|
|
692
|
+
clone.#_u8gdcDTtChQ4tbSQMXc4cYWyum7_sensitive = this.#_u8gdcDTtChQ4tbSQMXc4cYWyum7_sensitive.slice();
|
|
692
693
|
if ("sensitive" in values && values.sensitive != null) if (typeof values.sensitive === "boolean") clone.#_u8gdcDTtChQ4tbSQMXc4cYWyum7_sensitive = [values.sensitive];
|
|
693
694
|
else throw new TypeError("The sensitive must be of type boolean.");
|
|
694
|
-
clone.#_2ZwCFoS787v8y8bXKjMoE6MAbrEB_source = this.#_2ZwCFoS787v8y8bXKjMoE6MAbrEB_source;
|
|
695
|
+
clone.#_2ZwCFoS787v8y8bXKjMoE6MAbrEB_source = this.#_2ZwCFoS787v8y8bXKjMoE6MAbrEB_source.slice();
|
|
695
696
|
if ("source" in values && values.source != null) if (values.source instanceof Source) clone.#_2ZwCFoS787v8y8bXKjMoE6MAbrEB_source = [values.source];
|
|
696
697
|
else throw new TypeError("The source must be of type Source.");
|
|
697
|
-
clone.#_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof = this.#_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof;
|
|
698
|
+
clone.#_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof = this.#_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof.slice();
|
|
698
699
|
clone.#_trust_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof = new Set(this.#_trust_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof);
|
|
699
700
|
if ("proof" in values && values.proof != null) if (values.proof instanceof DataIntegrityProof || values.proof instanceof URL) {
|
|
700
701
|
clone.#_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof = [values.proof];
|
|
@@ -703,30 +704,30 @@ var Object$1 = class Object$1 {
|
|
|
703
704
|
if ("proofs" in values && values.proofs != null) {
|
|
704
705
|
if ("proof" in values && values.proof != null) throw new TypeError("Cannot update both proof and proofs at the same time.");
|
|
705
706
|
if (Array.isArray(values.proofs) && values.proofs.every((v) => v instanceof DataIntegrityProof || v instanceof URL)) {
|
|
706
|
-
clone.#_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof = values.proofs;
|
|
707
|
+
clone.#_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof = values.proofs.slice();
|
|
707
708
|
clone.#_trust_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof = /* @__PURE__ */ new Set();
|
|
708
709
|
for (let i = 0; i < values.proofs.length; i++) clone.#_trust_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof.add(i);
|
|
709
710
|
} else throw new TypeError("The proofs must be an array of type DataIntegrityProof | URL.");
|
|
710
711
|
}
|
|
711
|
-
clone.#_2MHQfh2N74MMmDLDqYWFo7TxYQK2_interactionPolicy = this.#_2MHQfh2N74MMmDLDqYWFo7TxYQK2_interactionPolicy;
|
|
712
|
+
clone.#_2MHQfh2N74MMmDLDqYWFo7TxYQK2_interactionPolicy = this.#_2MHQfh2N74MMmDLDqYWFo7TxYQK2_interactionPolicy.slice();
|
|
712
713
|
if ("interactionPolicy" in values && values.interactionPolicy != null) if (values.interactionPolicy instanceof InteractionPolicy) clone.#_2MHQfh2N74MMmDLDqYWFo7TxYQK2_interactionPolicy = [values.interactionPolicy];
|
|
713
714
|
else throw new TypeError("The interactionPolicy must be of type InteractionPolicy.");
|
|
714
|
-
clone.#_23YiVs2miQcEiUdn4u8SvjQKWYim_approvedBy = this.#_23YiVs2miQcEiUdn4u8SvjQKWYim_approvedBy;
|
|
715
|
+
clone.#_23YiVs2miQcEiUdn4u8SvjQKWYim_approvedBy = this.#_23YiVs2miQcEiUdn4u8SvjQKWYim_approvedBy.slice();
|
|
715
716
|
if ("approvedBy" in values && values.approvedBy != null) if (values.approvedBy instanceof URL) clone.#_23YiVs2miQcEiUdn4u8SvjQKWYim_approvedBy = [values.approvedBy];
|
|
716
717
|
else throw new TypeError("The approvedBy must be of type URL.");
|
|
717
|
-
clone.#_3fCeb5aXaDDd4fvkQ96BLWifBUBa_likeAuthorization = this.#_3fCeb5aXaDDd4fvkQ96BLWifBUBa_likeAuthorization;
|
|
718
|
+
clone.#_3fCeb5aXaDDd4fvkQ96BLWifBUBa_likeAuthorization = this.#_3fCeb5aXaDDd4fvkQ96BLWifBUBa_likeAuthorization.slice();
|
|
718
719
|
clone.#_trust_3fCeb5aXaDDd4fvkQ96BLWifBUBa_likeAuthorization = new Set(this.#_trust_3fCeb5aXaDDd4fvkQ96BLWifBUBa_likeAuthorization);
|
|
719
720
|
if ("likeAuthorization" in values && values.likeAuthorization != null) if (values.likeAuthorization instanceof LikeAuthorization || values.likeAuthorization instanceof URL) {
|
|
720
721
|
clone.#_3fCeb5aXaDDd4fvkQ96BLWifBUBa_likeAuthorization = [values.likeAuthorization];
|
|
721
722
|
clone.#_trust_3fCeb5aXaDDd4fvkQ96BLWifBUBa_likeAuthorization = new Set([0]);
|
|
722
723
|
} else throw new TypeError("The likeAuthorization must be of type LikeAuthorization | URL.");
|
|
723
|
-
clone.#_YA4wdUW7rYztAQ6SjhMnJCmcmtP_replyAuthorization = this.#_YA4wdUW7rYztAQ6SjhMnJCmcmtP_replyAuthorization;
|
|
724
|
+
clone.#_YA4wdUW7rYztAQ6SjhMnJCmcmtP_replyAuthorization = this.#_YA4wdUW7rYztAQ6SjhMnJCmcmtP_replyAuthorization.slice();
|
|
724
725
|
clone.#_trust_YA4wdUW7rYztAQ6SjhMnJCmcmtP_replyAuthorization = new Set(this.#_trust_YA4wdUW7rYztAQ6SjhMnJCmcmtP_replyAuthorization);
|
|
725
726
|
if ("replyAuthorization" in values && values.replyAuthorization != null) if (values.replyAuthorization instanceof ReplyAuthorization || values.replyAuthorization instanceof URL) {
|
|
726
727
|
clone.#_YA4wdUW7rYztAQ6SjhMnJCmcmtP_replyAuthorization = [values.replyAuthorization];
|
|
727
728
|
clone.#_trust_YA4wdUW7rYztAQ6SjhMnJCmcmtP_replyAuthorization = new Set([0]);
|
|
728
729
|
} else throw new TypeError("The replyAuthorization must be of type ReplyAuthorization | URL.");
|
|
729
|
-
clone.#_446xEaDBs3Fz6MyzP3PSBaLupkbJ_announceAuthorization = this.#_446xEaDBs3Fz6MyzP3PSBaLupkbJ_announceAuthorization;
|
|
730
|
+
clone.#_446xEaDBs3Fz6MyzP3PSBaLupkbJ_announceAuthorization = this.#_446xEaDBs3Fz6MyzP3PSBaLupkbJ_announceAuthorization.slice();
|
|
730
731
|
clone.#_trust_446xEaDBs3Fz6MyzP3PSBaLupkbJ_announceAuthorization = new Set(this.#_trust_446xEaDBs3Fz6MyzP3PSBaLupkbJ_announceAuthorization);
|
|
731
732
|
if ("announceAuthorization" in values && values.announceAuthorization != null) if (values.announceAuthorization instanceof AnnounceAuthorization || values.announceAuthorization instanceof URL) {
|
|
732
733
|
clone.#_446xEaDBs3Fz6MyzP3PSBaLupkbJ_announceAuthorization = [values.announceAuthorization];
|
|
@@ -7109,7 +7110,8 @@ var Emoji = class Emoji extends Object$1 {
|
|
|
7109
7110
|
* Clones this instance, optionally updating it with the given values.
|
|
7110
7111
|
* @param values The values to update the clone with.
|
|
7111
7112
|
* @param options The options to use for cloning.
|
|
7112
|
-
* @returns The cloned instance.
|
|
7113
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
7114
|
+
* and URLs are shared with this instance.
|
|
7113
7115
|
*/
|
|
7114
7116
|
clone(values = {}, options = {}) {
|
|
7115
7117
|
if (this._warning != null) {
|
|
@@ -7291,7 +7293,8 @@ var ChatMessage = class ChatMessage extends Object$1 {
|
|
|
7291
7293
|
* Clones this instance, optionally updating it with the given values.
|
|
7292
7294
|
* @param values The values to update the clone with.
|
|
7293
7295
|
* @param options The options to use for cloning.
|
|
7294
|
-
* @returns The cloned instance.
|
|
7296
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
7297
|
+
* and URLs are shared with this instance.
|
|
7295
7298
|
*/
|
|
7296
7299
|
clone(values = {}, options = {}) {
|
|
7297
7300
|
if (this._warning != null) {
|
|
@@ -7302,16 +7305,16 @@ var ChatMessage = class ChatMessage extends Object$1 {
|
|
|
7302
7305
|
};
|
|
7303
7306
|
}
|
|
7304
7307
|
const clone = super.clone(values, options);
|
|
7305
|
-
clone.#_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote = this.#_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote;
|
|
7308
|
+
clone.#_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote = this.#_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote.slice();
|
|
7306
7309
|
clone.#_trust_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote = new Set(this.#_trust_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote);
|
|
7307
7310
|
if ("quote" in values && values.quote != null) if (values.quote instanceof Object$1 || values.quote instanceof URL) {
|
|
7308
7311
|
clone.#_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote = [values.quote];
|
|
7309
7312
|
clone.#_trust_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote = new Set([0]);
|
|
7310
7313
|
} else throw new TypeError("The quote must be of type Object | URL.");
|
|
7311
|
-
clone.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl = this.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl;
|
|
7314
|
+
clone.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl = this.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl.slice();
|
|
7312
7315
|
if ("quoteUrl" in values && values.quoteUrl != null) if (values.quoteUrl instanceof URL) clone.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl = [values.quoteUrl];
|
|
7313
7316
|
else throw new TypeError("The quoteUrl must be of type URL.");
|
|
7314
|
-
clone.#_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization = this.#_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization;
|
|
7317
|
+
clone.#_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization = this.#_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization.slice();
|
|
7315
7318
|
clone.#_trust_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization = new Set(this.#_trust_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization);
|
|
7316
7319
|
if ("quoteAuthorization" in values && values.quoteAuthorization != null) if (values.quoteAuthorization instanceof QuoteAuthorization || values.quoteAuthorization instanceof URL) {
|
|
7317
7320
|
clone.#_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization = [values.quoteAuthorization];
|
|
@@ -7946,7 +7949,7 @@ var Activity = class Activity extends Object$1 {
|
|
|
7946
7949
|
if ("actors" in values && values.actors != null) {
|
|
7947
7950
|
if ("actor" in values && values.actor != null) throw new TypeError("Cannot initialize both actor and actors at the same time.");
|
|
7948
7951
|
if (Array.isArray(values.actors) && values.actors.every((v) => v instanceof Application || v instanceof Group || v instanceof Organization || v instanceof Person || v instanceof Service || v instanceof URL)) {
|
|
7949
|
-
this.#_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor = values.actors;
|
|
7952
|
+
this.#_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor = values.actors.slice();
|
|
7950
7953
|
for (let i = 0; i < values.actors.length; i++) this.#_trust_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor.add(i);
|
|
7951
7954
|
} else throw new TypeError("The actors must be an array of type Application | Group | Organization | Person | Service | URL.");
|
|
7952
7955
|
}
|
|
@@ -7957,7 +7960,7 @@ var Activity = class Activity extends Object$1 {
|
|
|
7957
7960
|
if ("objects" in values && values.objects != null) {
|
|
7958
7961
|
if ("object" in values && values.object != null) throw new TypeError("Cannot initialize both object and objects at the same time.");
|
|
7959
7962
|
if (Array.isArray(values.objects) && values.objects.every((v) => v instanceof Object$1 || v instanceof URL)) {
|
|
7960
|
-
this.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = values.objects;
|
|
7963
|
+
this.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = values.objects.slice();
|
|
7961
7964
|
for (let i = 0; i < values.objects.length; i++) this.#_trust_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object.add(i);
|
|
7962
7965
|
} else throw new TypeError("The objects must be an array of type Object | URL.");
|
|
7963
7966
|
}
|
|
@@ -7968,7 +7971,7 @@ var Activity = class Activity extends Object$1 {
|
|
|
7968
7971
|
if ("targets" in values && values.targets != null) {
|
|
7969
7972
|
if ("target" in values && values.target != null) throw new TypeError("Cannot initialize both target and targets at the same time.");
|
|
7970
7973
|
if (Array.isArray(values.targets) && values.targets.every((v) => v instanceof Object$1 || v instanceof URL)) {
|
|
7971
|
-
this.#_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target = values.targets;
|
|
7974
|
+
this.#_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target = values.targets.slice();
|
|
7972
7975
|
for (let i = 0; i < values.targets.length; i++) this.#_trust_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target.add(i);
|
|
7973
7976
|
} else throw new TypeError("The targets must be an array of type Object | URL.");
|
|
7974
7977
|
}
|
|
@@ -7979,7 +7982,7 @@ var Activity = class Activity extends Object$1 {
|
|
|
7979
7982
|
if ("results" in values && values.results != null) {
|
|
7980
7983
|
if ("result" in values && values.result != null) throw new TypeError("Cannot initialize both result and results at the same time.");
|
|
7981
7984
|
if (Array.isArray(values.results) && values.results.every((v) => v instanceof Object$1 || v instanceof URL)) {
|
|
7982
|
-
this.#_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result = values.results;
|
|
7985
|
+
this.#_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result = values.results.slice();
|
|
7983
7986
|
for (let i = 0; i < values.results.length; i++) this.#_trust_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result.add(i);
|
|
7984
7987
|
} else throw new TypeError("The results must be an array of type Object | URL.");
|
|
7985
7988
|
}
|
|
@@ -7990,7 +7993,7 @@ var Activity = class Activity extends Object$1 {
|
|
|
7990
7993
|
if ("origins" in values && values.origins != null) {
|
|
7991
7994
|
if ("origin" in values && values.origin != null) throw new TypeError("Cannot initialize both origin and origins at the same time.");
|
|
7992
7995
|
if (Array.isArray(values.origins) && values.origins.every((v) => v instanceof Object$1 || v instanceof URL)) {
|
|
7993
|
-
this.#_25zu2s3VxVujgEKqrDycjE284XQR_origin = values.origins;
|
|
7996
|
+
this.#_25zu2s3VxVujgEKqrDycjE284XQR_origin = values.origins.slice();
|
|
7994
7997
|
for (let i = 0; i < values.origins.length; i++) this.#_trust_25zu2s3VxVujgEKqrDycjE284XQR_origin.add(i);
|
|
7995
7998
|
} else throw new TypeError("The origins must be an array of type Object | URL.");
|
|
7996
7999
|
}
|
|
@@ -8001,7 +8004,7 @@ var Activity = class Activity extends Object$1 {
|
|
|
8001
8004
|
if ("instruments" in values && values.instruments != null) {
|
|
8002
8005
|
if ("instrument" in values && values.instrument != null) throw new TypeError("Cannot initialize both instrument and instruments at the same time.");
|
|
8003
8006
|
if (Array.isArray(values.instruments) && values.instruments.every((v) => v instanceof Object$1 || v instanceof URL)) {
|
|
8004
|
-
this.#_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument = values.instruments;
|
|
8007
|
+
this.#_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument = values.instruments.slice();
|
|
8005
8008
|
for (let i = 0; i < values.instruments.length; i++) this.#_trust_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument.add(i);
|
|
8006
8009
|
} else throw new TypeError("The instruments must be an array of type Object | URL.");
|
|
8007
8010
|
}
|
|
@@ -8010,7 +8013,8 @@ var Activity = class Activity extends Object$1 {
|
|
|
8010
8013
|
* Clones this instance, optionally updating it with the given values.
|
|
8011
8014
|
* @param values The values to update the clone with.
|
|
8012
8015
|
* @param options The options to use for cloning.
|
|
8013
|
-
* @returns The cloned instance.
|
|
8016
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
8017
|
+
* and URLs are shared with this instance.
|
|
8014
8018
|
*/
|
|
8015
8019
|
clone(values = {}, options = {}) {
|
|
8016
8020
|
if (this._warning != null) {
|
|
@@ -8021,7 +8025,7 @@ var Activity = class Activity extends Object$1 {
|
|
|
8021
8025
|
};
|
|
8022
8026
|
}
|
|
8023
8027
|
const clone = super.clone(values, options);
|
|
8024
|
-
clone.#_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor = this.#_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor;
|
|
8028
|
+
clone.#_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor = this.#_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor.slice();
|
|
8025
8029
|
clone.#_trust_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor = new Set(this.#_trust_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor);
|
|
8026
8030
|
if ("actor" in values && values.actor != null) if (values.actor instanceof Application || values.actor instanceof Group || values.actor instanceof Organization || values.actor instanceof Person || values.actor instanceof Service || values.actor instanceof URL) {
|
|
8027
8031
|
clone.#_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor = [values.actor];
|
|
@@ -8030,12 +8034,12 @@ var Activity = class Activity extends Object$1 {
|
|
|
8030
8034
|
if ("actors" in values && values.actors != null) {
|
|
8031
8035
|
if ("actor" in values && values.actor != null) throw new TypeError("Cannot update both actor and actors at the same time.");
|
|
8032
8036
|
if (Array.isArray(values.actors) && values.actors.every((v) => v instanceof Application || v instanceof Group || v instanceof Organization || v instanceof Person || v instanceof Service || v instanceof URL)) {
|
|
8033
|
-
clone.#_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor = values.actors;
|
|
8037
|
+
clone.#_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor = values.actors.slice();
|
|
8034
8038
|
clone.#_trust_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor = /* @__PURE__ */ new Set();
|
|
8035
8039
|
for (let i = 0; i < values.actors.length; i++) clone.#_trust_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor.add(i);
|
|
8036
8040
|
} else throw new TypeError("The actors must be an array of type Application | Group | Organization | Person | Service | URL.");
|
|
8037
8041
|
}
|
|
8038
|
-
clone.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = this.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object;
|
|
8042
|
+
clone.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = this.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object.slice();
|
|
8039
8043
|
clone.#_trust_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = new Set(this.#_trust_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object);
|
|
8040
8044
|
if ("object" in values && values.object != null) if (values.object instanceof Object$1 || values.object instanceof URL) {
|
|
8041
8045
|
clone.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = [values.object];
|
|
@@ -8044,12 +8048,12 @@ var Activity = class Activity extends Object$1 {
|
|
|
8044
8048
|
if ("objects" in values && values.objects != null) {
|
|
8045
8049
|
if ("object" in values && values.object != null) throw new TypeError("Cannot update both object and objects at the same time.");
|
|
8046
8050
|
if (Array.isArray(values.objects) && values.objects.every((v) => v instanceof Object$1 || v instanceof URL)) {
|
|
8047
|
-
clone.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = values.objects;
|
|
8051
|
+
clone.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = values.objects.slice();
|
|
8048
8052
|
clone.#_trust_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = /* @__PURE__ */ new Set();
|
|
8049
8053
|
for (let i = 0; i < values.objects.length; i++) clone.#_trust_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object.add(i);
|
|
8050
8054
|
} else throw new TypeError("The objects must be an array of type Object | URL.");
|
|
8051
8055
|
}
|
|
8052
|
-
clone.#_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target = this.#_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target;
|
|
8056
|
+
clone.#_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target = this.#_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target.slice();
|
|
8053
8057
|
clone.#_trust_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target = new Set(this.#_trust_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target);
|
|
8054
8058
|
if ("target" in values && values.target != null) if (values.target instanceof Object$1 || values.target instanceof URL) {
|
|
8055
8059
|
clone.#_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target = [values.target];
|
|
@@ -8058,12 +8062,12 @@ var Activity = class Activity extends Object$1 {
|
|
|
8058
8062
|
if ("targets" in values && values.targets != null) {
|
|
8059
8063
|
if ("target" in values && values.target != null) throw new TypeError("Cannot update both target and targets at the same time.");
|
|
8060
8064
|
if (Array.isArray(values.targets) && values.targets.every((v) => v instanceof Object$1 || v instanceof URL)) {
|
|
8061
|
-
clone.#_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target = values.targets;
|
|
8065
|
+
clone.#_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target = values.targets.slice();
|
|
8062
8066
|
clone.#_trust_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target = /* @__PURE__ */ new Set();
|
|
8063
8067
|
for (let i = 0; i < values.targets.length; i++) clone.#_trust_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target.add(i);
|
|
8064
8068
|
} else throw new TypeError("The targets must be an array of type Object | URL.");
|
|
8065
8069
|
}
|
|
8066
|
-
clone.#_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result = this.#_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result;
|
|
8070
|
+
clone.#_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result = this.#_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result.slice();
|
|
8067
8071
|
clone.#_trust_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result = new Set(this.#_trust_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result);
|
|
8068
8072
|
if ("result" in values && values.result != null) if (values.result instanceof Object$1 || values.result instanceof URL) {
|
|
8069
8073
|
clone.#_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result = [values.result];
|
|
@@ -8072,12 +8076,12 @@ var Activity = class Activity extends Object$1 {
|
|
|
8072
8076
|
if ("results" in values && values.results != null) {
|
|
8073
8077
|
if ("result" in values && values.result != null) throw new TypeError("Cannot update both result and results at the same time.");
|
|
8074
8078
|
if (Array.isArray(values.results) && values.results.every((v) => v instanceof Object$1 || v instanceof URL)) {
|
|
8075
|
-
clone.#_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result = values.results;
|
|
8079
|
+
clone.#_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result = values.results.slice();
|
|
8076
8080
|
clone.#_trust_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result = /* @__PURE__ */ new Set();
|
|
8077
8081
|
for (let i = 0; i < values.results.length; i++) clone.#_trust_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result.add(i);
|
|
8078
8082
|
} else throw new TypeError("The results must be an array of type Object | URL.");
|
|
8079
8083
|
}
|
|
8080
|
-
clone.#_25zu2s3VxVujgEKqrDycjE284XQR_origin = this.#_25zu2s3VxVujgEKqrDycjE284XQR_origin;
|
|
8084
|
+
clone.#_25zu2s3VxVujgEKqrDycjE284XQR_origin = this.#_25zu2s3VxVujgEKqrDycjE284XQR_origin.slice();
|
|
8081
8085
|
clone.#_trust_25zu2s3VxVujgEKqrDycjE284XQR_origin = new Set(this.#_trust_25zu2s3VxVujgEKqrDycjE284XQR_origin);
|
|
8082
8086
|
if ("origin" in values && values.origin != null) if (values.origin instanceof Object$1 || values.origin instanceof URL) {
|
|
8083
8087
|
clone.#_25zu2s3VxVujgEKqrDycjE284XQR_origin = [values.origin];
|
|
@@ -8086,12 +8090,12 @@ var Activity = class Activity extends Object$1 {
|
|
|
8086
8090
|
if ("origins" in values && values.origins != null) {
|
|
8087
8091
|
if ("origin" in values && values.origin != null) throw new TypeError("Cannot update both origin and origins at the same time.");
|
|
8088
8092
|
if (Array.isArray(values.origins) && values.origins.every((v) => v instanceof Object$1 || v instanceof URL)) {
|
|
8089
|
-
clone.#_25zu2s3VxVujgEKqrDycjE284XQR_origin = values.origins;
|
|
8093
|
+
clone.#_25zu2s3VxVujgEKqrDycjE284XQR_origin = values.origins.slice();
|
|
8090
8094
|
clone.#_trust_25zu2s3VxVujgEKqrDycjE284XQR_origin = /* @__PURE__ */ new Set();
|
|
8091
8095
|
for (let i = 0; i < values.origins.length; i++) clone.#_trust_25zu2s3VxVujgEKqrDycjE284XQR_origin.add(i);
|
|
8092
8096
|
} else throw new TypeError("The origins must be an array of type Object | URL.");
|
|
8093
8097
|
}
|
|
8094
|
-
clone.#_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument = this.#_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument;
|
|
8098
|
+
clone.#_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument = this.#_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument.slice();
|
|
8095
8099
|
clone.#_trust_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument = new Set(this.#_trust_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument);
|
|
8096
8100
|
if ("instrument" in values && values.instrument != null) if (values.instrument instanceof Object$1 || values.instrument instanceof URL) {
|
|
8097
8101
|
clone.#_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument = [values.instrument];
|
|
@@ -8100,7 +8104,7 @@ var Activity = class Activity extends Object$1 {
|
|
|
8100
8104
|
if ("instruments" in values && values.instruments != null) {
|
|
8101
8105
|
if ("instrument" in values && values.instrument != null) throw new TypeError("Cannot update both instrument and instruments at the same time.");
|
|
8102
8106
|
if (Array.isArray(values.instruments) && values.instruments.every((v) => v instanceof Object$1 || v instanceof URL)) {
|
|
8103
|
-
clone.#_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument = values.instruments;
|
|
8107
|
+
clone.#_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument = values.instruments.slice();
|
|
8104
8108
|
clone.#_trust_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument = /* @__PURE__ */ new Set();
|
|
8105
8109
|
for (let i = 0; i < values.instruments.length; i++) clone.#_trust_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument.add(i);
|
|
8106
8110
|
} else throw new TypeError("The instruments must be an array of type Object | URL.");
|
|
@@ -9691,7 +9695,8 @@ var EmojiReact = class EmojiReact extends Activity {
|
|
|
9691
9695
|
* Clones this instance, optionally updating it with the given values.
|
|
9692
9696
|
* @param values The values to update the clone with.
|
|
9693
9697
|
* @param options The options to use for cloning.
|
|
9694
|
-
* @returns The cloned instance.
|
|
9698
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
9699
|
+
* and URLs are shared with this instance.
|
|
9695
9700
|
*/
|
|
9696
9701
|
clone(values = {}, options = {}) {
|
|
9697
9702
|
if (this._warning != null) {
|
|
@@ -9901,7 +9906,8 @@ var PropertyValue = class {
|
|
|
9901
9906
|
* Clones this instance, optionally updating it with the given values.
|
|
9902
9907
|
* @param values The values to update the clone with.
|
|
9903
9908
|
* @param options The options to use for cloning.
|
|
9904
|
-
* @returns The cloned instance.
|
|
9909
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
9910
|
+
* and URLs are shared with this instance.
|
|
9905
9911
|
*/
|
|
9906
9912
|
clone(values = {}, options = {}) {
|
|
9907
9913
|
if (this._warning != null) {
|
|
@@ -9912,10 +9918,10 @@ var PropertyValue = class {
|
|
|
9912
9918
|
};
|
|
9913
9919
|
}
|
|
9914
9920
|
const clone = new this.constructor({ id: values.id ?? this.id }, options);
|
|
9915
|
-
clone.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name;
|
|
9921
|
+
clone.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name.slice();
|
|
9916
9922
|
if ("name" in values && values.name != null) if (typeof values.name === "string" || values.name instanceof LanguageString$1) clone.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = [values.name];
|
|
9917
9923
|
else throw new TypeError("The name must be of type string | LanguageString.");
|
|
9918
|
-
clone.#_2cSy2magg4iZ7zLaG8U7DiJMoCkx_value = this.#_2cSy2magg4iZ7zLaG8U7DiJMoCkx_value;
|
|
9924
|
+
clone.#_2cSy2magg4iZ7zLaG8U7DiJMoCkx_value = this.#_2cSy2magg4iZ7zLaG8U7DiJMoCkx_value.slice();
|
|
9919
9925
|
if ("value" in values && values.value != null) if (typeof values.value === "string" || values.value instanceof LanguageString$1) clone.#_2cSy2magg4iZ7zLaG8U7DiJMoCkx_value = [values.value];
|
|
9920
9926
|
else throw new TypeError("The value must be of type string | LanguageString.");
|
|
9921
9927
|
return clone;
|
|
@@ -10204,7 +10210,8 @@ var Measure = class {
|
|
|
10204
10210
|
* Clones this instance, optionally updating it with the given values.
|
|
10205
10211
|
* @param values The values to update the clone with.
|
|
10206
10212
|
* @param options The options to use for cloning.
|
|
10207
|
-
* @returns The cloned instance.
|
|
10213
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
10214
|
+
* and URLs are shared with this instance.
|
|
10208
10215
|
*/
|
|
10209
10216
|
clone(values = {}, options = {}) {
|
|
10210
10217
|
if (this._warning != null) {
|
|
@@ -10215,10 +10222,10 @@ var Measure = class {
|
|
|
10215
10222
|
};
|
|
10216
10223
|
}
|
|
10217
10224
|
const clone = new this.constructor({ id: values.id ?? this.id }, options);
|
|
10218
|
-
clone.#_27fgyFbosTtMAhuepJH8K3ZGURT6 = this.#_27fgyFbosTtMAhuepJH8K3ZGURT6;
|
|
10225
|
+
clone.#_27fgyFbosTtMAhuepJH8K3ZGURT6 = this.#_27fgyFbosTtMAhuepJH8K3ZGURT6.slice();
|
|
10219
10226
|
if ("unit" in values && values.unit != null) if (typeof values.unit === "string") clone.#_27fgyFbosTtMAhuepJH8K3ZGURT6 = [values.unit];
|
|
10220
10227
|
else throw new TypeError("The unit must be of type string.");
|
|
10221
|
-
clone.#_1GQx8o2RgxRs4x9G5uT39XYBv7D = this.#_1GQx8o2RgxRs4x9G5uT39XYBv7D;
|
|
10228
|
+
clone.#_1GQx8o2RgxRs4x9G5uT39XYBv7D = this.#_1GQx8o2RgxRs4x9G5uT39XYBv7D.slice();
|
|
10222
10229
|
if ("numericalValue" in values && values.numericalValue != null) if (typeof values.numericalValue === "string" && isDecimal(values.numericalValue)) clone.#_1GQx8o2RgxRs4x9G5uT39XYBv7D = [values.numericalValue];
|
|
10223
10230
|
else throw new TypeError("The numericalValue must be of type Decimal.");
|
|
10224
10231
|
return clone;
|
|
@@ -10465,7 +10472,8 @@ var AnnounceAuthorization = class AnnounceAuthorization extends Object$1 {
|
|
|
10465
10472
|
* Clones this instance, optionally updating it with the given values.
|
|
10466
10473
|
* @param values The values to update the clone with.
|
|
10467
10474
|
* @param options The options to use for cloning.
|
|
10468
|
-
* @returns The cloned instance.
|
|
10475
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
10476
|
+
* and URLs are shared with this instance.
|
|
10469
10477
|
*/
|
|
10470
10478
|
clone(values = {}, options = {}) {
|
|
10471
10479
|
if (this._warning != null) {
|
|
@@ -10476,13 +10484,13 @@ var AnnounceAuthorization = class AnnounceAuthorization extends Object$1 {
|
|
|
10476
10484
|
};
|
|
10477
10485
|
}
|
|
10478
10486
|
const clone = super.clone(values, options);
|
|
10479
|
-
clone.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = this.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject;
|
|
10487
|
+
clone.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = this.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject.slice();
|
|
10480
10488
|
clone.#_trust_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = new Set(this.#_trust_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject);
|
|
10481
10489
|
if ("interactingObject" in values && values.interactingObject != null) if (values.interactingObject instanceof Object$1 || values.interactingObject instanceof URL) {
|
|
10482
10490
|
clone.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = [values.interactingObject];
|
|
10483
10491
|
clone.#_trust_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = new Set([0]);
|
|
10484
10492
|
} else throw new TypeError("The interactingObject must be of type Object | URL.");
|
|
10485
|
-
clone.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget = this.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget;
|
|
10493
|
+
clone.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget = this.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget.slice();
|
|
10486
10494
|
clone.#_trust_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget = new Set(this.#_trust_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget);
|
|
10487
10495
|
if ("interactionTarget" in values && values.interactionTarget != null) if (values.interactionTarget instanceof Object$1 || values.interactionTarget instanceof URL) {
|
|
10488
10496
|
clone.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget = [values.interactionTarget];
|
|
@@ -11004,7 +11012,8 @@ var AnnounceRequest = class AnnounceRequest extends Activity {
|
|
|
11004
11012
|
* Clones this instance, optionally updating it with the given values.
|
|
11005
11013
|
* @param values The values to update the clone with.
|
|
11006
11014
|
* @param options The options to use for cloning.
|
|
11007
|
-
* @returns The cloned instance.
|
|
11015
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
11016
|
+
* and URLs are shared with this instance.
|
|
11008
11017
|
*/
|
|
11009
11018
|
clone(values = {}, options = {}) {
|
|
11010
11019
|
if (this._warning != null) {
|
|
@@ -11220,7 +11229,8 @@ var InteractionPolicy = class {
|
|
|
11220
11229
|
* Clones this instance, optionally updating it with the given values.
|
|
11221
11230
|
* @param values The values to update the clone with.
|
|
11222
11231
|
* @param options The options to use for cloning.
|
|
11223
|
-
* @returns The cloned instance.
|
|
11232
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
11233
|
+
* and URLs are shared with this instance.
|
|
11224
11234
|
*/
|
|
11225
11235
|
clone(values = {}, options = {}) {
|
|
11226
11236
|
if (this._warning != null) {
|
|
@@ -11231,16 +11241,16 @@ var InteractionPolicy = class {
|
|
|
11231
11241
|
};
|
|
11232
11242
|
}
|
|
11233
11243
|
const clone = new this.constructor({ id: values.id ?? this.id }, options);
|
|
11234
|
-
clone.#_3JkwVLb3BNCwCWdsb5RftGAg8vyT_canLike = this.#_3JkwVLb3BNCwCWdsb5RftGAg8vyT_canLike;
|
|
11244
|
+
clone.#_3JkwVLb3BNCwCWdsb5RftGAg8vyT_canLike = this.#_3JkwVLb3BNCwCWdsb5RftGAg8vyT_canLike.slice();
|
|
11235
11245
|
if ("canLike" in values && values.canLike != null) if (values.canLike instanceof InteractionRule) clone.#_3JkwVLb3BNCwCWdsb5RftGAg8vyT_canLike = [values.canLike];
|
|
11236
11246
|
else throw new TypeError("The canLike must be of type InteractionRule.");
|
|
11237
|
-
clone.#_2UBgLRi5p3DRGGvWyB227i4Qjhzd_canReply = this.#_2UBgLRi5p3DRGGvWyB227i4Qjhzd_canReply;
|
|
11247
|
+
clone.#_2UBgLRi5p3DRGGvWyB227i4Qjhzd_canReply = this.#_2UBgLRi5p3DRGGvWyB227i4Qjhzd_canReply.slice();
|
|
11238
11248
|
if ("canReply" in values && values.canReply != null) if (values.canReply instanceof InteractionRule) clone.#_2UBgLRi5p3DRGGvWyB227i4Qjhzd_canReply = [values.canReply];
|
|
11239
11249
|
else throw new TypeError("The canReply must be of type InteractionRule.");
|
|
11240
|
-
clone.#_fu5nmoAj528fBQfnxhY9Daok3Vi_canAnnounce = this.#_fu5nmoAj528fBQfnxhY9Daok3Vi_canAnnounce;
|
|
11250
|
+
clone.#_fu5nmoAj528fBQfnxhY9Daok3Vi_canAnnounce = this.#_fu5nmoAj528fBQfnxhY9Daok3Vi_canAnnounce.slice();
|
|
11241
11251
|
if ("canAnnounce" in values && values.canAnnounce != null) if (values.canAnnounce instanceof InteractionRule) clone.#_fu5nmoAj528fBQfnxhY9Daok3Vi_canAnnounce = [values.canAnnounce];
|
|
11242
11252
|
else throw new TypeError("The canAnnounce must be of type InteractionRule.");
|
|
11243
|
-
clone.#_LE3zBTVacTZw2LSyLt4wVUkXeUy_canQuote = this.#_LE3zBTVacTZw2LSyLt4wVUkXeUy_canQuote;
|
|
11253
|
+
clone.#_LE3zBTVacTZw2LSyLt4wVUkXeUy_canQuote = this.#_LE3zBTVacTZw2LSyLt4wVUkXeUy_canQuote.slice();
|
|
11244
11254
|
if ("canQuote" in values && values.canQuote != null) if (values.canQuote instanceof InteractionRule) clone.#_LE3zBTVacTZw2LSyLt4wVUkXeUy_canQuote = [values.canQuote];
|
|
11245
11255
|
else throw new TypeError("The canQuote must be of type InteractionRule.");
|
|
11246
11256
|
return clone;
|
|
@@ -11589,14 +11599,14 @@ var InteractionRule = class {
|
|
|
11589
11599
|
else throw new TypeError("The automaticApproval must be of type URL.");
|
|
11590
11600
|
if ("automaticApprovals" in values && values.automaticApprovals != null) {
|
|
11591
11601
|
if ("automaticApproval" in values && values.automaticApproval != null) throw new TypeError("Cannot initialize both automaticApproval and automaticApprovals at the same time.");
|
|
11592
|
-
if (Array.isArray(values.automaticApprovals) && values.automaticApprovals.every((v) => v instanceof URL)) this.#_2rFyCF14HoyNjitj9PmCzek5iSsg_automaticApproval = values.automaticApprovals;
|
|
11602
|
+
if (Array.isArray(values.automaticApprovals) && values.automaticApprovals.every((v) => v instanceof URL)) this.#_2rFyCF14HoyNjitj9PmCzek5iSsg_automaticApproval = values.automaticApprovals.slice();
|
|
11593
11603
|
else throw new TypeError("The automaticApprovals must be an array of type URL.");
|
|
11594
11604
|
}
|
|
11595
11605
|
if ("manualApproval" in values && values.manualApproval != null) if (values.manualApproval instanceof URL) this.#_sxj8y5XMMMBWUnRYFw85MKedCMj_manualApproval = [values.manualApproval];
|
|
11596
11606
|
else throw new TypeError("The manualApproval must be of type URL.");
|
|
11597
11607
|
if ("manualApprovals" in values && values.manualApprovals != null) {
|
|
11598
11608
|
if ("manualApproval" in values && values.manualApproval != null) throw new TypeError("Cannot initialize both manualApproval and manualApprovals at the same time.");
|
|
11599
|
-
if (Array.isArray(values.manualApprovals) && values.manualApprovals.every((v) => v instanceof URL)) this.#_sxj8y5XMMMBWUnRYFw85MKedCMj_manualApproval = values.manualApprovals;
|
|
11609
|
+
if (Array.isArray(values.manualApprovals) && values.manualApprovals.every((v) => v instanceof URL)) this.#_sxj8y5XMMMBWUnRYFw85MKedCMj_manualApproval = values.manualApprovals.slice();
|
|
11600
11610
|
else throw new TypeError("The manualApprovals must be an array of type URL.");
|
|
11601
11611
|
}
|
|
11602
11612
|
}
|
|
@@ -11604,7 +11614,8 @@ var InteractionRule = class {
|
|
|
11604
11614
|
* Clones this instance, optionally updating it with the given values.
|
|
11605
11615
|
* @param values The values to update the clone with.
|
|
11606
11616
|
* @param options The options to use for cloning.
|
|
11607
|
-
* @returns The cloned instance.
|
|
11617
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
11618
|
+
* and URLs are shared with this instance.
|
|
11608
11619
|
*/
|
|
11609
11620
|
clone(values = {}, options = {}) {
|
|
11610
11621
|
if (this._warning != null) {
|
|
@@ -11615,20 +11626,20 @@ var InteractionRule = class {
|
|
|
11615
11626
|
};
|
|
11616
11627
|
}
|
|
11617
11628
|
const clone = new this.constructor({ id: values.id ?? this.id }, options);
|
|
11618
|
-
clone.#_2rFyCF14HoyNjitj9PmCzek5iSsg_automaticApproval = this.#_2rFyCF14HoyNjitj9PmCzek5iSsg_automaticApproval;
|
|
11629
|
+
clone.#_2rFyCF14HoyNjitj9PmCzek5iSsg_automaticApproval = this.#_2rFyCF14HoyNjitj9PmCzek5iSsg_automaticApproval.slice();
|
|
11619
11630
|
if ("automaticApproval" in values && values.automaticApproval != null) if (values.automaticApproval instanceof URL) clone.#_2rFyCF14HoyNjitj9PmCzek5iSsg_automaticApproval = [values.automaticApproval];
|
|
11620
11631
|
else throw new TypeError("The automaticApproval must be of type URL.");
|
|
11621
11632
|
if ("automaticApprovals" in values && values.automaticApprovals != null) {
|
|
11622
11633
|
if ("automaticApproval" in values && values.automaticApproval != null) throw new TypeError("Cannot update both automaticApproval and automaticApprovals at the same time.");
|
|
11623
|
-
if (Array.isArray(values.automaticApprovals) && values.automaticApprovals.every((v) => v instanceof URL)) clone.#_2rFyCF14HoyNjitj9PmCzek5iSsg_automaticApproval = values.automaticApprovals;
|
|
11634
|
+
if (Array.isArray(values.automaticApprovals) && values.automaticApprovals.every((v) => v instanceof URL)) clone.#_2rFyCF14HoyNjitj9PmCzek5iSsg_automaticApproval = values.automaticApprovals.slice();
|
|
11624
11635
|
else throw new TypeError("The automaticApprovals must be an array of type URL.");
|
|
11625
11636
|
}
|
|
11626
|
-
clone.#_sxj8y5XMMMBWUnRYFw85MKedCMj_manualApproval = this.#_sxj8y5XMMMBWUnRYFw85MKedCMj_manualApproval;
|
|
11637
|
+
clone.#_sxj8y5XMMMBWUnRYFw85MKedCMj_manualApproval = this.#_sxj8y5XMMMBWUnRYFw85MKedCMj_manualApproval.slice();
|
|
11627
11638
|
if ("manualApproval" in values && values.manualApproval != null) if (values.manualApproval instanceof URL) clone.#_sxj8y5XMMMBWUnRYFw85MKedCMj_manualApproval = [values.manualApproval];
|
|
11628
11639
|
else throw new TypeError("The manualApproval must be of type URL.");
|
|
11629
11640
|
if ("manualApprovals" in values && values.manualApprovals != null) {
|
|
11630
11641
|
if ("manualApproval" in values && values.manualApproval != null) throw new TypeError("Cannot update both manualApproval and manualApprovals at the same time.");
|
|
11631
|
-
if (Array.isArray(values.manualApprovals) && values.manualApprovals.every((v) => v instanceof URL)) clone.#_sxj8y5XMMMBWUnRYFw85MKedCMj_manualApproval = values.manualApprovals;
|
|
11642
|
+
if (Array.isArray(values.manualApprovals) && values.manualApprovals.every((v) => v instanceof URL)) clone.#_sxj8y5XMMMBWUnRYFw85MKedCMj_manualApproval = values.manualApprovals.slice();
|
|
11632
11643
|
else throw new TypeError("The manualApprovals must be an array of type URL.");
|
|
11633
11644
|
}
|
|
11634
11645
|
return clone;
|
|
@@ -11859,7 +11870,8 @@ var LikeAuthorization = class LikeAuthorization extends Object$1 {
|
|
|
11859
11870
|
* Clones this instance, optionally updating it with the given values.
|
|
11860
11871
|
* @param values The values to update the clone with.
|
|
11861
11872
|
* @param options The options to use for cloning.
|
|
11862
|
-
* @returns The cloned instance.
|
|
11873
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
11874
|
+
* and URLs are shared with this instance.
|
|
11863
11875
|
*/
|
|
11864
11876
|
clone(values = {}, options = {}) {
|
|
11865
11877
|
if (this._warning != null) {
|
|
@@ -11870,13 +11882,13 @@ var LikeAuthorization = class LikeAuthorization extends Object$1 {
|
|
|
11870
11882
|
};
|
|
11871
11883
|
}
|
|
11872
11884
|
const clone = super.clone(values, options);
|
|
11873
|
-
clone.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = this.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject;
|
|
11885
|
+
clone.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = this.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject.slice();
|
|
11874
11886
|
clone.#_trust_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = new Set(this.#_trust_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject);
|
|
11875
11887
|
if ("interactingObject" in values && values.interactingObject != null) if (values.interactingObject instanceof Object$1 || values.interactingObject instanceof URL) {
|
|
11876
11888
|
clone.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = [values.interactingObject];
|
|
11877
11889
|
clone.#_trust_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = new Set([0]);
|
|
11878
11890
|
} else throw new TypeError("The interactingObject must be of type Object | URL.");
|
|
11879
|
-
clone.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget = this.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget;
|
|
11891
|
+
clone.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget = this.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget.slice();
|
|
11880
11892
|
clone.#_trust_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget = new Set(this.#_trust_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget);
|
|
11881
11893
|
if ("interactionTarget" in values && values.interactionTarget != null) if (values.interactionTarget instanceof Object$1 || values.interactionTarget instanceof URL) {
|
|
11882
11894
|
clone.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget = [values.interactionTarget];
|
|
@@ -12397,7 +12409,8 @@ var LikeRequest = class LikeRequest extends Activity {
|
|
|
12397
12409
|
* Clones this instance, optionally updating it with the given values.
|
|
12398
12410
|
* @param values The values to update the clone with.
|
|
12399
12411
|
* @param options The options to use for cloning.
|
|
12400
|
-
* @returns The cloned instance.
|
|
12412
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
12413
|
+
* and URLs are shared with this instance.
|
|
12401
12414
|
*/
|
|
12402
12415
|
clone(values = {}, options = {}) {
|
|
12403
12416
|
if (this._warning != null) {
|
|
@@ -12567,7 +12580,8 @@ var ReplyAuthorization = class ReplyAuthorization extends Object$1 {
|
|
|
12567
12580
|
* Clones this instance, optionally updating it with the given values.
|
|
12568
12581
|
* @param values The values to update the clone with.
|
|
12569
12582
|
* @param options The options to use for cloning.
|
|
12570
|
-
* @returns The cloned instance.
|
|
12583
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
12584
|
+
* and URLs are shared with this instance.
|
|
12571
12585
|
*/
|
|
12572
12586
|
clone(values = {}, options = {}) {
|
|
12573
12587
|
if (this._warning != null) {
|
|
@@ -12578,13 +12592,13 @@ var ReplyAuthorization = class ReplyAuthorization extends Object$1 {
|
|
|
12578
12592
|
};
|
|
12579
12593
|
}
|
|
12580
12594
|
const clone = super.clone(values, options);
|
|
12581
|
-
clone.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = this.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject;
|
|
12595
|
+
clone.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = this.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject.slice();
|
|
12582
12596
|
clone.#_trust_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = new Set(this.#_trust_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject);
|
|
12583
12597
|
if ("interactingObject" in values && values.interactingObject != null) if (values.interactingObject instanceof Object$1 || values.interactingObject instanceof URL) {
|
|
12584
12598
|
clone.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = [values.interactingObject];
|
|
12585
12599
|
clone.#_trust_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = new Set([0]);
|
|
12586
12600
|
} else throw new TypeError("The interactingObject must be of type Object | URL.");
|
|
12587
|
-
clone.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget = this.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget;
|
|
12601
|
+
clone.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget = this.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget.slice();
|
|
12588
12602
|
clone.#_trust_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget = new Set(this.#_trust_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget);
|
|
12589
12603
|
if ("interactionTarget" in values && values.interactionTarget != null) if (values.interactionTarget instanceof Object$1 || values.interactionTarget instanceof URL) {
|
|
12590
12604
|
clone.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget = [values.interactionTarget];
|
|
@@ -13105,7 +13119,8 @@ var ReplyRequest = class ReplyRequest extends Activity {
|
|
|
13105
13119
|
* Clones this instance, optionally updating it with the given values.
|
|
13106
13120
|
* @param values The values to update the clone with.
|
|
13107
13121
|
* @param options The options to use for cloning.
|
|
13108
|
-
* @returns The cloned instance.
|
|
13122
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
13123
|
+
* and URLs are shared with this instance.
|
|
13109
13124
|
*/
|
|
13110
13125
|
clone(values = {}, options = {}) {
|
|
13111
13126
|
if (this._warning != null) {
|
|
@@ -13275,7 +13290,8 @@ var QuoteAuthorization = class QuoteAuthorization extends Object$1 {
|
|
|
13275
13290
|
* Clones this instance, optionally updating it with the given values.
|
|
13276
13291
|
* @param values The values to update the clone with.
|
|
13277
13292
|
* @param options The options to use for cloning.
|
|
13278
|
-
* @returns The cloned instance.
|
|
13293
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
13294
|
+
* and URLs are shared with this instance.
|
|
13279
13295
|
*/
|
|
13280
13296
|
clone(values = {}, options = {}) {
|
|
13281
13297
|
if (this._warning != null) {
|
|
@@ -13286,13 +13302,13 @@ var QuoteAuthorization = class QuoteAuthorization extends Object$1 {
|
|
|
13286
13302
|
};
|
|
13287
13303
|
}
|
|
13288
13304
|
const clone = super.clone(values, options);
|
|
13289
|
-
clone.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = this.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject;
|
|
13305
|
+
clone.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = this.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject.slice();
|
|
13290
13306
|
clone.#_trust_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = new Set(this.#_trust_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject);
|
|
13291
13307
|
if ("interactingObject" in values && values.interactingObject != null) if (values.interactingObject instanceof Object$1 || values.interactingObject instanceof URL) {
|
|
13292
13308
|
clone.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = [values.interactingObject];
|
|
13293
13309
|
clone.#_trust_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = new Set([0]);
|
|
13294
13310
|
} else throw new TypeError("The interactingObject must be of type Object | URL.");
|
|
13295
|
-
clone.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget = this.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget;
|
|
13311
|
+
clone.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget = this.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget.slice();
|
|
13296
13312
|
clone.#_trust_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget = new Set(this.#_trust_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget);
|
|
13297
13313
|
if ("interactionTarget" in values && values.interactionTarget != null) if (values.interactionTarget instanceof Object$1 || values.interactionTarget instanceof URL) {
|
|
13298
13314
|
clone.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget = [values.interactionTarget];
|
|
@@ -13814,7 +13830,8 @@ var QuoteRequest = class QuoteRequest extends Activity {
|
|
|
13814
13830
|
* Clones this instance, optionally updating it with the given values.
|
|
13815
13831
|
* @param values The values to update the clone with.
|
|
13816
13832
|
* @param options The options to use for cloning.
|
|
13817
|
-
* @returns The cloned instance.
|
|
13833
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
13834
|
+
* and URLs are shared with this instance.
|
|
13818
13835
|
*/
|
|
13819
13836
|
clone(values = {}, options = {}) {
|
|
13820
13837
|
if (this._warning != null) {
|
|
@@ -14045,7 +14062,7 @@ var DidService = class {
|
|
|
14045
14062
|
else throw new TypeError("The endpoint must be of type URL.");
|
|
14046
14063
|
if ("endpoints" in values && values.endpoints != null) {
|
|
14047
14064
|
if ("endpoint" in values && values.endpoint != null) throw new TypeError("Cannot initialize both endpoint and endpoints at the same time.");
|
|
14048
|
-
if (Array.isArray(values.endpoints) && values.endpoints.every((v) => v instanceof URL)) this.#_2KM4fetG6FTJ1cphj76rzJ8Dyv7p_serviceEndpoint = values.endpoints;
|
|
14065
|
+
if (Array.isArray(values.endpoints) && values.endpoints.every((v) => v instanceof URL)) this.#_2KM4fetG6FTJ1cphj76rzJ8Dyv7p_serviceEndpoint = values.endpoints.slice();
|
|
14049
14066
|
else throw new TypeError("The endpoints must be an array of type URL.");
|
|
14050
14067
|
}
|
|
14051
14068
|
}
|
|
@@ -14053,7 +14070,8 @@ var DidService = class {
|
|
|
14053
14070
|
* Clones this instance, optionally updating it with the given values.
|
|
14054
14071
|
* @param values The values to update the clone with.
|
|
14055
14072
|
* @param options The options to use for cloning.
|
|
14056
|
-
* @returns The cloned instance.
|
|
14073
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
14074
|
+
* and URLs are shared with this instance.
|
|
14057
14075
|
*/
|
|
14058
14076
|
clone(values = {}, options = {}) {
|
|
14059
14077
|
if (this._warning != null) {
|
|
@@ -14064,12 +14082,12 @@ var DidService = class {
|
|
|
14064
14082
|
};
|
|
14065
14083
|
}
|
|
14066
14084
|
const clone = new this.constructor({ id: values.id ?? this.id }, options);
|
|
14067
|
-
clone.#_2KM4fetG6FTJ1cphj76rzJ8Dyv7p_serviceEndpoint = this.#_2KM4fetG6FTJ1cphj76rzJ8Dyv7p_serviceEndpoint;
|
|
14085
|
+
clone.#_2KM4fetG6FTJ1cphj76rzJ8Dyv7p_serviceEndpoint = this.#_2KM4fetG6FTJ1cphj76rzJ8Dyv7p_serviceEndpoint.slice();
|
|
14068
14086
|
if ("endpoint" in values && values.endpoint != null) if (values.endpoint instanceof URL) clone.#_2KM4fetG6FTJ1cphj76rzJ8Dyv7p_serviceEndpoint = [values.endpoint];
|
|
14069
14087
|
else throw new TypeError("The endpoint must be of type URL.");
|
|
14070
14088
|
if ("endpoints" in values && values.endpoints != null) {
|
|
14071
14089
|
if ("endpoint" in values && values.endpoint != null) throw new TypeError("Cannot update both endpoint and endpoints at the same time.");
|
|
14072
|
-
if (Array.isArray(values.endpoints) && values.endpoints.every((v) => v instanceof URL)) clone.#_2KM4fetG6FTJ1cphj76rzJ8Dyv7p_serviceEndpoint = values.endpoints;
|
|
14090
|
+
if (Array.isArray(values.endpoints) && values.endpoints.every((v) => v instanceof URL)) clone.#_2KM4fetG6FTJ1cphj76rzJ8Dyv7p_serviceEndpoint = values.endpoints.slice();
|
|
14073
14091
|
else throw new TypeError("The endpoints must be an array of type URL.");
|
|
14074
14092
|
}
|
|
14075
14093
|
return clone;
|
|
@@ -14242,7 +14260,8 @@ var Export = class Export extends DidService {
|
|
|
14242
14260
|
* Clones this instance, optionally updating it with the given values.
|
|
14243
14261
|
* @param values The values to update the clone with.
|
|
14244
14262
|
* @param options The options to use for cloning.
|
|
14245
|
-
* @returns The cloned instance.
|
|
14263
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
14264
|
+
* and URLs are shared with this instance.
|
|
14246
14265
|
*/
|
|
14247
14266
|
clone(values = {}, options = {}) {
|
|
14248
14267
|
if (this._warning != null) {
|
|
@@ -14451,7 +14470,8 @@ var DataIntegrityProof = class {
|
|
|
14451
14470
|
* Clones this instance, optionally updating it with the given values.
|
|
14452
14471
|
* @param values The values to update the clone with.
|
|
14453
14472
|
* @param options The options to use for cloning.
|
|
14454
|
-
* @returns The cloned instance.
|
|
14473
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
14474
|
+
* and URLs are shared with this instance.
|
|
14455
14475
|
*/
|
|
14456
14476
|
clone(values = {}, options = {}) {
|
|
14457
14477
|
if (this._warning != null) {
|
|
@@ -14462,22 +14482,22 @@ var DataIntegrityProof = class {
|
|
|
14462
14482
|
};
|
|
14463
14483
|
}
|
|
14464
14484
|
const clone = new this.constructor({ id: values.id ?? this.id }, options);
|
|
14465
|
-
clone.#_3RurJsa7tnptyqMFR5hDGcP9pMs5_cryptosuite = this.#_3RurJsa7tnptyqMFR5hDGcP9pMs5_cryptosuite;
|
|
14485
|
+
clone.#_3RurJsa7tnptyqMFR5hDGcP9pMs5_cryptosuite = this.#_3RurJsa7tnptyqMFR5hDGcP9pMs5_cryptosuite.slice();
|
|
14466
14486
|
if ("cryptosuite" in values && values.cryptosuite != null) if (values.cryptosuite == "eddsa-jcs-2022") clone.#_3RurJsa7tnptyqMFR5hDGcP9pMs5_cryptosuite = [values.cryptosuite];
|
|
14467
14487
|
else throw new TypeError("The cryptosuite must be of type \"eddsa-jcs-2022\".");
|
|
14468
|
-
clone.#_2mHVKxqA7zncjveJrDEo3pWpMZqg_verificationMethod = this.#_2mHVKxqA7zncjveJrDEo3pWpMZqg_verificationMethod;
|
|
14488
|
+
clone.#_2mHVKxqA7zncjveJrDEo3pWpMZqg_verificationMethod = this.#_2mHVKxqA7zncjveJrDEo3pWpMZqg_verificationMethod.slice();
|
|
14469
14489
|
clone.#_trust_2mHVKxqA7zncjveJrDEo3pWpMZqg_verificationMethod = new Set(this.#_trust_2mHVKxqA7zncjveJrDEo3pWpMZqg_verificationMethod);
|
|
14470
14490
|
if ("verificationMethod" in values && values.verificationMethod != null) if (values.verificationMethod instanceof Multikey || values.verificationMethod instanceof URL) {
|
|
14471
14491
|
clone.#_2mHVKxqA7zncjveJrDEo3pWpMZqg_verificationMethod = [values.verificationMethod];
|
|
14472
14492
|
clone.#_trust_2mHVKxqA7zncjveJrDEo3pWpMZqg_verificationMethod = new Set([0]);
|
|
14473
14493
|
} else throw new TypeError("The verificationMethod must be of type Multikey | URL.");
|
|
14474
|
-
clone.#_2AeEnPcAvVrPEuKbpmn9ZKNmWHKb_proofPurpose = this.#_2AeEnPcAvVrPEuKbpmn9ZKNmWHKb_proofPurpose;
|
|
14494
|
+
clone.#_2AeEnPcAvVrPEuKbpmn9ZKNmWHKb_proofPurpose = this.#_2AeEnPcAvVrPEuKbpmn9ZKNmWHKb_proofPurpose.slice();
|
|
14475
14495
|
if ("proofPurpose" in values && values.proofPurpose != null) if (values.proofPurpose === "assertionMethod" || values.proofPurpose === "authentication" || values.proofPurpose === "capabilityInvocation" || values.proofPurpose === "capabilityDelegation" || values.proofPurpose === "keyAgreement") clone.#_2AeEnPcAvVrPEuKbpmn9ZKNmWHKb_proofPurpose = [values.proofPurpose];
|
|
14476
14496
|
else throw new TypeError("The proofPurpose must be of type \"assertionMethod\" | \"authentication\" | \"capabilityInvocation\" | \"capabilityDelegation\" | \"keyAgreement\".");
|
|
14477
|
-
clone.#_3CjFK5vfKpX4HQuNh2b18TykoVLq_proofValue = this.#_3CjFK5vfKpX4HQuNh2b18TykoVLq_proofValue;
|
|
14497
|
+
clone.#_3CjFK5vfKpX4HQuNh2b18TykoVLq_proofValue = this.#_3CjFK5vfKpX4HQuNh2b18TykoVLq_proofValue.slice();
|
|
14478
14498
|
if ("proofValue" in values && values.proofValue != null) if (values.proofValue instanceof Uint8Array) clone.#_3CjFK5vfKpX4HQuNh2b18TykoVLq_proofValue = [values.proofValue];
|
|
14479
14499
|
else throw new TypeError("The proofValue must be of type Uint8Array.");
|
|
14480
|
-
clone.#_3qzP3ukEZoUziK5FEiA1RhU4aqac = this.#_3qzP3ukEZoUziK5FEiA1RhU4aqac;
|
|
14500
|
+
clone.#_3qzP3ukEZoUziK5FEiA1RhU4aqac = this.#_3qzP3ukEZoUziK5FEiA1RhU4aqac.slice();
|
|
14481
14501
|
if ("created" in values && values.created != null) if (isTemporalInstant(values.created)) clone.#_3qzP3ukEZoUziK5FEiA1RhU4aqac = [values.created];
|
|
14482
14502
|
else throw new TypeError("The created must be of type Temporal.Instant.");
|
|
14483
14503
|
return clone;
|
|
@@ -14952,7 +14972,8 @@ var CryptographicKey = class {
|
|
|
14952
14972
|
* Clones this instance, optionally updating it with the given values.
|
|
14953
14973
|
* @param values The values to update the clone with.
|
|
14954
14974
|
* @param options The options to use for cloning.
|
|
14955
|
-
* @returns The cloned instance.
|
|
14975
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
14976
|
+
* and URLs are shared with this instance.
|
|
14956
14977
|
*/
|
|
14957
14978
|
clone(values = {}, options = {}) {
|
|
14958
14979
|
if (this._warning != null) {
|
|
@@ -14963,13 +14984,13 @@ var CryptographicKey = class {
|
|
|
14963
14984
|
};
|
|
14964
14985
|
}
|
|
14965
14986
|
const clone = new this.constructor({ id: values.id ?? this.id }, options);
|
|
14966
|
-
clone.#_5UJq9NDh3ZHgswFwwdVxQvJxdx2_owner = this.#_5UJq9NDh3ZHgswFwwdVxQvJxdx2_owner;
|
|
14987
|
+
clone.#_5UJq9NDh3ZHgswFwwdVxQvJxdx2_owner = this.#_5UJq9NDh3ZHgswFwwdVxQvJxdx2_owner.slice();
|
|
14967
14988
|
clone.#_trust_5UJq9NDh3ZHgswFwwdVxQvJxdx2_owner = new Set(this.#_trust_5UJq9NDh3ZHgswFwwdVxQvJxdx2_owner);
|
|
14968
14989
|
if ("owner" in values && values.owner != null) if (values.owner instanceof Application || values.owner instanceof Group || values.owner instanceof Organization || values.owner instanceof Person || values.owner instanceof Service || values.owner instanceof URL) {
|
|
14969
14990
|
clone.#_5UJq9NDh3ZHgswFwwdVxQvJxdx2_owner = [values.owner];
|
|
14970
14991
|
clone.#_trust_5UJq9NDh3ZHgswFwwdVxQvJxdx2_owner = new Set([0]);
|
|
14971
14992
|
} else throw new TypeError("The owner must be of type Application | Group | Organization | Person | Service | URL.");
|
|
14972
|
-
clone.#_2fE2QMDdg6KFGqa4NEC3TmjApSAD_publicKeyPem = this.#_2fE2QMDdg6KFGqa4NEC3TmjApSAD_publicKeyPem;
|
|
14993
|
+
clone.#_2fE2QMDdg6KFGqa4NEC3TmjApSAD_publicKeyPem = this.#_2fE2QMDdg6KFGqa4NEC3TmjApSAD_publicKeyPem.slice();
|
|
14973
14994
|
if ("publicKey" in values && values.publicKey != null) if (values.publicKey instanceof CryptoKey) clone.#_2fE2QMDdg6KFGqa4NEC3TmjApSAD_publicKeyPem = [values.publicKey];
|
|
14974
14995
|
else throw new TypeError("The publicKey must be of type CryptoKey.");
|
|
14975
14996
|
return clone;
|
|
@@ -15453,7 +15474,8 @@ var Multikey = class {
|
|
|
15453
15474
|
* Clones this instance, optionally updating it with the given values.
|
|
15454
15475
|
* @param values The values to update the clone with.
|
|
15455
15476
|
* @param options The options to use for cloning.
|
|
15456
|
-
* @returns The cloned instance.
|
|
15477
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
15478
|
+
* and URLs are shared with this instance.
|
|
15457
15479
|
*/
|
|
15458
15480
|
clone(values = {}, options = {}) {
|
|
15459
15481
|
if (this._warning != null) {
|
|
@@ -15464,13 +15486,13 @@ var Multikey = class {
|
|
|
15464
15486
|
};
|
|
15465
15487
|
}
|
|
15466
15488
|
const clone = new this.constructor({ id: values.id ?? this.id }, options);
|
|
15467
|
-
clone.#_2yr3eUBTP6cNcyaxKzAXWjFsnGzN_controller = this.#_2yr3eUBTP6cNcyaxKzAXWjFsnGzN_controller;
|
|
15489
|
+
clone.#_2yr3eUBTP6cNcyaxKzAXWjFsnGzN_controller = this.#_2yr3eUBTP6cNcyaxKzAXWjFsnGzN_controller.slice();
|
|
15468
15490
|
clone.#_trust_2yr3eUBTP6cNcyaxKzAXWjFsnGzN_controller = new Set(this.#_trust_2yr3eUBTP6cNcyaxKzAXWjFsnGzN_controller);
|
|
15469
15491
|
if ("controller" in values && values.controller != null) if (values.controller instanceof Application || values.controller instanceof Group || values.controller instanceof Organization || values.controller instanceof Person || values.controller instanceof Service || values.controller instanceof URL) {
|
|
15470
15492
|
clone.#_2yr3eUBTP6cNcyaxKzAXWjFsnGzN_controller = [values.controller];
|
|
15471
15493
|
clone.#_trust_2yr3eUBTP6cNcyaxKzAXWjFsnGzN_controller = new Set([0]);
|
|
15472
15494
|
} else throw new TypeError("The controller must be of type Application | Group | Organization | Person | Service | URL.");
|
|
15473
|
-
clone.#_4XLHbsR2gLVWU3NpEqKt9wANzn4F_publicKeyMultibase = this.#_4XLHbsR2gLVWU3NpEqKt9wANzn4F_publicKeyMultibase;
|
|
15495
|
+
clone.#_4XLHbsR2gLVWU3NpEqKt9wANzn4F_publicKeyMultibase = this.#_4XLHbsR2gLVWU3NpEqKt9wANzn4F_publicKeyMultibase.slice();
|
|
15474
15496
|
if ("publicKey" in values && values.publicKey != null) if (values.publicKey instanceof CryptoKey) clone.#_4XLHbsR2gLVWU3NpEqKt9wANzn4F_publicKeyMultibase = [values.publicKey];
|
|
15475
15497
|
else throw new TypeError("The publicKey must be of type CryptoKey.");
|
|
15476
15498
|
return clone;
|
|
@@ -15918,7 +15940,8 @@ var Agreement = class Agreement extends Object$1 {
|
|
|
15918
15940
|
* Clones this instance, optionally updating it with the given values.
|
|
15919
15941
|
* @param values The values to update the clone with.
|
|
15920
15942
|
* @param options The options to use for cloning.
|
|
15921
|
-
* @returns The cloned instance.
|
|
15943
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
15944
|
+
* and URLs are shared with this instance.
|
|
15922
15945
|
*/
|
|
15923
15946
|
clone(values = {}, options = {}) {
|
|
15924
15947
|
if (this._warning != null) {
|
|
@@ -15929,10 +15952,10 @@ var Agreement = class Agreement extends Object$1 {
|
|
|
15929
15952
|
};
|
|
15930
15953
|
}
|
|
15931
15954
|
const clone = super.clone(values, options);
|
|
15932
|
-
clone.#_37zeAJ2NVyecrDdP8os69FGAn9Q6_stipulates = this.#_37zeAJ2NVyecrDdP8os69FGAn9Q6_stipulates;
|
|
15955
|
+
clone.#_37zeAJ2NVyecrDdP8os69FGAn9Q6_stipulates = this.#_37zeAJ2NVyecrDdP8os69FGAn9Q6_stipulates.slice();
|
|
15933
15956
|
if ("stipulates" in values && values.stipulates != null) if (values.stipulates instanceof Commitment) clone.#_37zeAJ2NVyecrDdP8os69FGAn9Q6_stipulates = [values.stipulates];
|
|
15934
15957
|
else throw new TypeError("The stipulates must be of type Commitment.");
|
|
15935
|
-
clone.#_4Vhx9DcywF65XWUQ4KZ35475FaJm_stipulatesReciprocal = this.#_4Vhx9DcywF65XWUQ4KZ35475FaJm_stipulatesReciprocal;
|
|
15958
|
+
clone.#_4Vhx9DcywF65XWUQ4KZ35475FaJm_stipulatesReciprocal = this.#_4Vhx9DcywF65XWUQ4KZ35475FaJm_stipulatesReciprocal.slice();
|
|
15936
15959
|
if ("stipulatesReciprocal" in values && values.stipulatesReciprocal != null) if (values.stipulatesReciprocal instanceof Commitment) clone.#_4Vhx9DcywF65XWUQ4KZ35475FaJm_stipulatesReciprocal = [values.stipulatesReciprocal];
|
|
15937
15960
|
else throw new TypeError("The stipulatesReciprocal must be of type Commitment.");
|
|
15938
15961
|
return clone;
|
|
@@ -16282,7 +16305,8 @@ var Commitment = class {
|
|
|
16282
16305
|
* Clones this instance, optionally updating it with the given values.
|
|
16283
16306
|
* @param values The values to update the clone with.
|
|
16284
16307
|
* @param options The options to use for cloning.
|
|
16285
|
-
* @returns The cloned instance.
|
|
16308
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
16309
|
+
* and URLs are shared with this instance.
|
|
16286
16310
|
*/
|
|
16287
16311
|
clone(values = {}, options = {}) {
|
|
16288
16312
|
if (this._warning != null) {
|
|
@@ -16293,10 +16317,10 @@ var Commitment = class {
|
|
|
16293
16317
|
};
|
|
16294
16318
|
}
|
|
16295
16319
|
const clone = new this.constructor({ id: values.id ?? this.id }, options);
|
|
16296
|
-
clone.#_aCyzDK9TkXtLxrZs7JC8emuYisv_satisfies = this.#_aCyzDK9TkXtLxrZs7JC8emuYisv_satisfies;
|
|
16320
|
+
clone.#_aCyzDK9TkXtLxrZs7JC8emuYisv_satisfies = this.#_aCyzDK9TkXtLxrZs7JC8emuYisv_satisfies.slice();
|
|
16297
16321
|
if ("satisfies" in values && values.satisfies != null) if (values.satisfies instanceof URL) clone.#_aCyzDK9TkXtLxrZs7JC8emuYisv_satisfies = [values.satisfies];
|
|
16298
16322
|
else throw new TypeError("The satisfies must be of type URL.");
|
|
16299
|
-
clone.#_2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity = this.#_2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity;
|
|
16323
|
+
clone.#_2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity = this.#_2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity.slice();
|
|
16300
16324
|
if ("resourceQuantity" in values && values.resourceQuantity != null) if (values.resourceQuantity instanceof Measure) clone.#_2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity = [values.resourceQuantity];
|
|
16301
16325
|
else throw new TypeError("The resourceQuantity must be of type Measure.");
|
|
16302
16326
|
return clone;
|
|
@@ -16608,7 +16632,8 @@ var Intent = class {
|
|
|
16608
16632
|
* Clones this instance, optionally updating it with the given values.
|
|
16609
16633
|
* @param values The values to update the clone with.
|
|
16610
16634
|
* @param options The options to use for cloning.
|
|
16611
|
-
* @returns The cloned instance.
|
|
16635
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
16636
|
+
* and URLs are shared with this instance.
|
|
16612
16637
|
*/
|
|
16613
16638
|
clone(values = {}, options = {}) {
|
|
16614
16639
|
if (this._warning != null) {
|
|
@@ -16619,19 +16644,19 @@ var Intent = class {
|
|
|
16619
16644
|
};
|
|
16620
16645
|
}
|
|
16621
16646
|
const clone = new this.constructor({ id: values.id ?? this.id }, options);
|
|
16622
|
-
clone.#_38VmZKmXJSBy3AvgqNa9GVqbdphy_action = this.#_38VmZKmXJSBy3AvgqNa9GVqbdphy_action;
|
|
16647
|
+
clone.#_38VmZKmXJSBy3AvgqNa9GVqbdphy_action = this.#_38VmZKmXJSBy3AvgqNa9GVqbdphy_action.slice();
|
|
16623
16648
|
if ("action" in values && values.action != null) if (typeof values.action === "string") clone.#_38VmZKmXJSBy3AvgqNa9GVqbdphy_action = [values.action];
|
|
16624
16649
|
else throw new TypeError("The action must be of type string.");
|
|
16625
|
-
clone.#_BBAeMUUQDwBQn6cvu3P2Csd6b6h_resourceConformsTo = this.#_BBAeMUUQDwBQn6cvu3P2Csd6b6h_resourceConformsTo;
|
|
16650
|
+
clone.#_BBAeMUUQDwBQn6cvu3P2Csd6b6h_resourceConformsTo = this.#_BBAeMUUQDwBQn6cvu3P2Csd6b6h_resourceConformsTo.slice();
|
|
16626
16651
|
if ("resourceConformsTo" in values && values.resourceConformsTo != null) if (values.resourceConformsTo instanceof URL) clone.#_BBAeMUUQDwBQn6cvu3P2Csd6b6h_resourceConformsTo = [values.resourceConformsTo];
|
|
16627
16652
|
else throw new TypeError("The resourceConformsTo must be of type URL.");
|
|
16628
|
-
clone.#_2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity = this.#_2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity;
|
|
16653
|
+
clone.#_2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity = this.#_2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity.slice();
|
|
16629
16654
|
if ("resourceQuantity" in values && values.resourceQuantity != null) if (values.resourceQuantity instanceof Measure) clone.#_2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity = [values.resourceQuantity];
|
|
16630
16655
|
else throw new TypeError("The resourceQuantity must be of type Measure.");
|
|
16631
|
-
clone.#_YmNSnuih3Zk4VdR5JPVnQYroLAh_availableQuantity = this.#_YmNSnuih3Zk4VdR5JPVnQYroLAh_availableQuantity;
|
|
16656
|
+
clone.#_YmNSnuih3Zk4VdR5JPVnQYroLAh_availableQuantity = this.#_YmNSnuih3Zk4VdR5JPVnQYroLAh_availableQuantity.slice();
|
|
16632
16657
|
if ("availableQuantity" in values && values.availableQuantity != null) if (values.availableQuantity instanceof Measure) clone.#_YmNSnuih3Zk4VdR5JPVnQYroLAh_availableQuantity = [values.availableQuantity];
|
|
16633
16658
|
else throw new TypeError("The availableQuantity must be of type Measure.");
|
|
16634
|
-
clone.#_3XueAFds2NBrqNpnV8b7aC8hV72S_minimumQuantity = this.#_3XueAFds2NBrqNpnV8b7aC8hV72S_minimumQuantity;
|
|
16659
|
+
clone.#_3XueAFds2NBrqNpnV8b7aC8hV72S_minimumQuantity = this.#_3XueAFds2NBrqNpnV8b7aC8hV72S_minimumQuantity.slice();
|
|
16635
16660
|
if ("minimumQuantity" in values && values.minimumQuantity != null) if (values.minimumQuantity instanceof Measure) clone.#_3XueAFds2NBrqNpnV8b7aC8hV72S_minimumQuantity = [values.minimumQuantity];
|
|
16636
16661
|
else throw new TypeError("The minimumQuantity must be of type Measure.");
|
|
16637
16662
|
return clone;
|
|
@@ -17029,7 +17054,8 @@ var Proposal = class Proposal extends Object$1 {
|
|
|
17029
17054
|
* Clones this instance, optionally updating it with the given values.
|
|
17030
17055
|
* @param values The values to update the clone with.
|
|
17031
17056
|
* @param options The options to use for cloning.
|
|
17032
|
-
* @returns The cloned instance.
|
|
17057
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
17058
|
+
* and URLs are shared with this instance.
|
|
17033
17059
|
*/
|
|
17034
17060
|
clone(values = {}, options = {}) {
|
|
17035
17061
|
if (this._warning != null) {
|
|
@@ -17040,16 +17066,16 @@ var Proposal = class Proposal extends Object$1 {
|
|
|
17040
17066
|
};
|
|
17041
17067
|
}
|
|
17042
17068
|
const clone = super.clone(values, options);
|
|
17043
|
-
clone.#_4wb2xgUBheR2gaD2Se8QBH4LEC7_purpose = this.#_4wb2xgUBheR2gaD2Se8QBH4LEC7_purpose;
|
|
17069
|
+
clone.#_4wb2xgUBheR2gaD2Se8QBH4LEC7_purpose = this.#_4wb2xgUBheR2gaD2Se8QBH4LEC7_purpose.slice();
|
|
17044
17070
|
if ("purpose" in values && values.purpose != null) if (typeof values.purpose === "string") clone.#_4wb2xgUBheR2gaD2Se8QBH4LEC7_purpose = [values.purpose];
|
|
17045
17071
|
else throw new TypeError("The purpose must be of type string.");
|
|
17046
|
-
clone.#_sS5LvXX8cn4c3x6ux836AwYbTyJ_publishes = this.#_sS5LvXX8cn4c3x6ux836AwYbTyJ_publishes;
|
|
17072
|
+
clone.#_sS5LvXX8cn4c3x6ux836AwYbTyJ_publishes = this.#_sS5LvXX8cn4c3x6ux836AwYbTyJ_publishes.slice();
|
|
17047
17073
|
if ("publishes" in values && values.publishes != null) if (values.publishes instanceof Intent) clone.#_sS5LvXX8cn4c3x6ux836AwYbTyJ_publishes = [values.publishes];
|
|
17048
17074
|
else throw new TypeError("The publishes must be of type Intent.");
|
|
17049
|
-
clone.#_Z4ntJgFwR9BaNTbFvkRTGNEwUwy_reciprocal = this.#_Z4ntJgFwR9BaNTbFvkRTGNEwUwy_reciprocal;
|
|
17075
|
+
clone.#_Z4ntJgFwR9BaNTbFvkRTGNEwUwy_reciprocal = this.#_Z4ntJgFwR9BaNTbFvkRTGNEwUwy_reciprocal.slice();
|
|
17050
17076
|
if ("reciprocal" in values && values.reciprocal != null) if (values.reciprocal instanceof Intent) clone.#_Z4ntJgFwR9BaNTbFvkRTGNEwUwy_reciprocal = [values.reciprocal];
|
|
17051
17077
|
else throw new TypeError("The reciprocal must be of type Intent.");
|
|
17052
|
-
clone.#_48ncwmfGhSoqAFByMVh2UxoiozPq_unitBased = this.#_48ncwmfGhSoqAFByMVh2UxoiozPq_unitBased;
|
|
17078
|
+
clone.#_48ncwmfGhSoqAFByMVh2UxoiozPq_unitBased = this.#_48ncwmfGhSoqAFByMVh2UxoiozPq_unitBased.slice();
|
|
17053
17079
|
if ("unitBased" in values && values.unitBased != null) if (typeof values.unitBased === "boolean") clone.#_48ncwmfGhSoqAFByMVh2UxoiozPq_unitBased = [values.unitBased];
|
|
17054
17080
|
else throw new TypeError("The unitBased must be of type boolean.");
|
|
17055
17081
|
return clone;
|
|
@@ -17428,7 +17454,8 @@ var Accept = class Accept extends Activity {
|
|
|
17428
17454
|
* Clones this instance, optionally updating it with the given values.
|
|
17429
17455
|
* @param values The values to update the clone with.
|
|
17430
17456
|
* @param options The options to use for cloning.
|
|
17431
|
-
* @returns The cloned instance.
|
|
17457
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
17458
|
+
* and URLs are shared with this instance.
|
|
17432
17459
|
*/
|
|
17433
17460
|
clone(values = {}, options = {}) {
|
|
17434
17461
|
if (this._warning != null) {
|
|
@@ -17583,7 +17610,8 @@ var Add = class Add extends Activity {
|
|
|
17583
17610
|
* Clones this instance, optionally updating it with the given values.
|
|
17584
17611
|
* @param values The values to update the clone with.
|
|
17585
17612
|
* @param options The options to use for cloning.
|
|
17586
|
-
* @returns The cloned instance.
|
|
17613
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
17614
|
+
* and URLs are shared with this instance.
|
|
17587
17615
|
*/
|
|
17588
17616
|
clone(values = {}, options = {}) {
|
|
17589
17617
|
if (this._warning != null) {
|
|
@@ -17736,7 +17764,8 @@ var Announce = class Announce extends Activity {
|
|
|
17736
17764
|
* Clones this instance, optionally updating it with the given values.
|
|
17737
17765
|
* @param values The values to update the clone with.
|
|
17738
17766
|
* @param options The options to use for cloning.
|
|
17739
|
-
* @returns The cloned instance.
|
|
17767
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
17768
|
+
* and URLs are shared with this instance.
|
|
17740
17769
|
*/
|
|
17741
17770
|
clone(values = {}, options = {}) {
|
|
17742
17771
|
if (this._warning != null) {
|
|
@@ -17950,7 +17979,7 @@ var Application = class Application extends Object$1 {
|
|
|
17950
17979
|
else throw new TypeError("The preferredUsername must be of type string | LanguageString.");
|
|
17951
17980
|
if ("preferredUsernames" in values && values.preferredUsernames != null) {
|
|
17952
17981
|
if ("preferredUsername" in values && values.preferredUsername != null) throw new TypeError("Cannot initialize both preferredUsername and preferredUsernames at the same time.");
|
|
17953
|
-
if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every((v) => typeof v === "string" || v instanceof LanguageString$1)) this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames;
|
|
17982
|
+
if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every((v) => typeof v === "string" || v instanceof LanguageString$1)) this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames.slice();
|
|
17954
17983
|
else throw new TypeError("The preferredUsernames must be an array of type string | LanguageString.");
|
|
17955
17984
|
}
|
|
17956
17985
|
if ("publicKey" in values && values.publicKey != null) if (values.publicKey instanceof CryptographicKey || values.publicKey instanceof URL) {
|
|
@@ -17960,7 +17989,7 @@ var Application = class Application extends Object$1 {
|
|
|
17960
17989
|
if ("publicKeys" in values && values.publicKeys != null) {
|
|
17961
17990
|
if ("publicKey" in values && values.publicKey != null) throw new TypeError("Cannot initialize both publicKey and publicKeys at the same time.");
|
|
17962
17991
|
if (Array.isArray(values.publicKeys) && values.publicKeys.every((v) => v instanceof CryptographicKey || v instanceof URL)) {
|
|
17963
|
-
this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys;
|
|
17992
|
+
this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys.slice();
|
|
17964
17993
|
for (let i = 0; i < values.publicKeys.length; i++) this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.add(i);
|
|
17965
17994
|
} else throw new TypeError("The publicKeys must be an array of type CryptographicKey | URL.");
|
|
17966
17995
|
}
|
|
@@ -17971,7 +18000,7 @@ var Application = class Application extends Object$1 {
|
|
|
17971
18000
|
if ("assertionMethods" in values && values.assertionMethods != null) {
|
|
17972
18001
|
if ("assertionMethod" in values && values.assertionMethod != null) throw new TypeError("Cannot initialize both assertionMethod and assertionMethods at the same time.");
|
|
17973
18002
|
if (Array.isArray(values.assertionMethods) && values.assertionMethods.every((v) => v instanceof Multikey || v instanceof URL)) {
|
|
17974
|
-
this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods;
|
|
18003
|
+
this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods.slice();
|
|
17975
18004
|
for (let i = 0; i < values.assertionMethods.length; i++) this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.add(i);
|
|
17976
18005
|
} else throw new TypeError("The assertionMethods must be an array of type Multikey | URL.");
|
|
17977
18006
|
}
|
|
@@ -18006,7 +18035,7 @@ var Application = class Application extends Object$1 {
|
|
|
18006
18035
|
this.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.add(0);
|
|
18007
18036
|
} else throw new TypeError("The featuredTags must be of type Collection | URL.");
|
|
18008
18037
|
if ("streams" in values && values.streams != null) if (Array.isArray(values.streams) && values.streams.every((v) => v instanceof Collection || v instanceof URL)) {
|
|
18009
|
-
this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams;
|
|
18038
|
+
this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams.slice();
|
|
18010
18039
|
for (let i = 0; i < values.streams.length; i++) this.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.add(i);
|
|
18011
18040
|
} else throw new TypeError("The streams must be an array of type Collection | URL.");
|
|
18012
18041
|
if ("endpoints" in values && values.endpoints != null) if (values.endpoints instanceof Endpoints) this.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = [values.endpoints];
|
|
@@ -18030,7 +18059,7 @@ var Application = class Application extends Object$1 {
|
|
|
18030
18059
|
if ("aliases" in values && values.aliases != null) {
|
|
18031
18060
|
if ("alias" in values && values.alias != null) throw new TypeError("Cannot initialize both alias and aliases at the same time.");
|
|
18032
18061
|
if (Array.isArray(values.aliases) && values.aliases.every((v) => v instanceof Application || v instanceof Group || v instanceof Organization || v instanceof Person || v instanceof Service || v instanceof URL)) {
|
|
18033
|
-
this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases;
|
|
18062
|
+
this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases.slice();
|
|
18034
18063
|
for (let i = 0; i < values.aliases.length; i++) this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.add(i);
|
|
18035
18064
|
} else throw new TypeError("The aliases must be an array of type Application | Group | Organization | Person | Service | URL.");
|
|
18036
18065
|
}
|
|
@@ -18041,7 +18070,7 @@ var Application = class Application extends Object$1 {
|
|
|
18041
18070
|
if ("services" in values && values.services != null) {
|
|
18042
18071
|
if ("service" in values && values.service != null) throw new TypeError("Cannot initialize both service and services at the same time.");
|
|
18043
18072
|
if (Array.isArray(values.services) && values.services.every((v) => v instanceof DidService || v instanceof URL)) {
|
|
18044
|
-
this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services;
|
|
18073
|
+
this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services.slice();
|
|
18045
18074
|
for (let i = 0; i < values.services.length; i++) this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.add(i);
|
|
18046
18075
|
} else throw new TypeError("The services must be an array of type DidService | URL.");
|
|
18047
18076
|
}
|
|
@@ -18054,7 +18083,8 @@ var Application = class Application extends Object$1 {
|
|
|
18054
18083
|
* Clones this instance, optionally updating it with the given values.
|
|
18055
18084
|
* @param values The values to update the clone with.
|
|
18056
18085
|
* @param options The options to use for cloning.
|
|
18057
|
-
* @returns The cloned instance.
|
|
18086
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
18087
|
+
* and URLs are shared with this instance.
|
|
18058
18088
|
*/
|
|
18059
18089
|
clone(values = {}, options = {}) {
|
|
18060
18090
|
if (this._warning != null) {
|
|
@@ -18065,15 +18095,15 @@ var Application = class Application extends Object$1 {
|
|
|
18065
18095
|
};
|
|
18066
18096
|
}
|
|
18067
18097
|
const clone = super.clone(values, options);
|
|
18068
|
-
clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername;
|
|
18098
|
+
clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername.slice();
|
|
18069
18099
|
if ("preferredUsername" in values && values.preferredUsername != null) if (typeof values.preferredUsername === "string" || values.preferredUsername instanceof LanguageString$1) clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = [values.preferredUsername];
|
|
18070
18100
|
else throw new TypeError("The preferredUsername must be of type string | LanguageString.");
|
|
18071
18101
|
if ("preferredUsernames" in values && values.preferredUsernames != null) {
|
|
18072
18102
|
if ("preferredUsername" in values && values.preferredUsername != null) throw new TypeError("Cannot update both preferredUsername and preferredUsernames at the same time.");
|
|
18073
|
-
if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every((v) => typeof v === "string" || v instanceof LanguageString$1)) clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames;
|
|
18103
|
+
if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every((v) => typeof v === "string" || v instanceof LanguageString$1)) clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames.slice();
|
|
18074
18104
|
else throw new TypeError("The preferredUsernames must be an array of type string | LanguageString.");
|
|
18075
18105
|
}
|
|
18076
|
-
clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey;
|
|
18106
|
+
clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey.slice();
|
|
18077
18107
|
clone.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey = new Set(this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey);
|
|
18078
18108
|
if ("publicKey" in values && values.publicKey != null) if (values.publicKey instanceof CryptographicKey || values.publicKey instanceof URL) {
|
|
18079
18109
|
clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = [values.publicKey];
|
|
@@ -18082,12 +18112,12 @@ var Application = class Application extends Object$1 {
|
|
|
18082
18112
|
if ("publicKeys" in values && values.publicKeys != null) {
|
|
18083
18113
|
if ("publicKey" in values && values.publicKey != null) throw new TypeError("Cannot update both publicKey and publicKeys at the same time.");
|
|
18084
18114
|
if (Array.isArray(values.publicKeys) && values.publicKeys.every((v) => v instanceof CryptographicKey || v instanceof URL)) {
|
|
18085
|
-
clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys;
|
|
18115
|
+
clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys.slice();
|
|
18086
18116
|
clone.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey = /* @__PURE__ */ new Set();
|
|
18087
18117
|
for (let i = 0; i < values.publicKeys.length; i++) clone.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.add(i);
|
|
18088
18118
|
} else throw new TypeError("The publicKeys must be an array of type CryptographicKey | URL.");
|
|
18089
18119
|
}
|
|
18090
|
-
clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod;
|
|
18120
|
+
clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.slice();
|
|
18091
18121
|
clone.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = new Set(this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod);
|
|
18092
18122
|
if ("assertionMethod" in values && values.assertionMethod != null) if (values.assertionMethod instanceof Multikey || values.assertionMethod instanceof URL) {
|
|
18093
18123
|
clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = [values.assertionMethod];
|
|
@@ -18096,85 +18126,85 @@ var Application = class Application extends Object$1 {
|
|
|
18096
18126
|
if ("assertionMethods" in values && values.assertionMethods != null) {
|
|
18097
18127
|
if ("assertionMethod" in values && values.assertionMethod != null) throw new TypeError("Cannot update both assertionMethod and assertionMethods at the same time.");
|
|
18098
18128
|
if (Array.isArray(values.assertionMethods) && values.assertionMethods.every((v) => v instanceof Multikey || v instanceof URL)) {
|
|
18099
|
-
clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods;
|
|
18129
|
+
clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods.slice();
|
|
18100
18130
|
clone.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = /* @__PURE__ */ new Set();
|
|
18101
18131
|
for (let i = 0; i < values.assertionMethods.length; i++) clone.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.add(i);
|
|
18102
18132
|
} else throw new TypeError("The assertionMethods must be an array of type Multikey | URL.");
|
|
18103
18133
|
}
|
|
18104
|
-
clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers;
|
|
18134
|
+
clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers.slice();
|
|
18105
18135
|
if ("manuallyApprovesFollowers" in values && values.manuallyApprovesFollowers != null) if (typeof values.manuallyApprovesFollowers === "boolean") clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = [values.manuallyApprovesFollowers];
|
|
18106
18136
|
else throw new TypeError("The manuallyApprovesFollowers must be of type boolean.");
|
|
18107
|
-
clone.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = this.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox;
|
|
18137
|
+
clone.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = this.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox.slice();
|
|
18108
18138
|
clone.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = new Set(this.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox);
|
|
18109
18139
|
if ("inbox" in values && values.inbox != null) if (values.inbox instanceof OrderedCollection || values.inbox instanceof OrderedCollectionPage || values.inbox instanceof URL) {
|
|
18110
18140
|
clone.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = [values.inbox];
|
|
18111
18141
|
clone.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = new Set([0]);
|
|
18112
18142
|
} else throw new TypeError("The inbox must be of type OrderedCollection | OrderedCollectionPage | URL.");
|
|
18113
|
-
clone.#_41QwhqJouoLg3h8dRPKat21brynC_outbox = this.#_41QwhqJouoLg3h8dRPKat21brynC_outbox;
|
|
18143
|
+
clone.#_41QwhqJouoLg3h8dRPKat21brynC_outbox = this.#_41QwhqJouoLg3h8dRPKat21brynC_outbox.slice();
|
|
18114
18144
|
clone.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox = new Set(this.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox);
|
|
18115
18145
|
if ("outbox" in values && values.outbox != null) if (values.outbox instanceof OrderedCollection || values.outbox instanceof OrderedCollectionPage || values.outbox instanceof URL) {
|
|
18116
18146
|
clone.#_41QwhqJouoLg3h8dRPKat21brynC_outbox = [values.outbox];
|
|
18117
18147
|
clone.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox = new Set([0]);
|
|
18118
18148
|
} else throw new TypeError("The outbox must be of type OrderedCollection | OrderedCollectionPage | URL.");
|
|
18119
|
-
clone.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = this.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following;
|
|
18149
|
+
clone.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = this.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.slice();
|
|
18120
18150
|
clone.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = new Set(this.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following);
|
|
18121
18151
|
if ("following" in values && values.following != null) if (values.following instanceof Collection || values.following instanceof URL) {
|
|
18122
18152
|
clone.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = [values.following];
|
|
18123
18153
|
clone.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = new Set([0]);
|
|
18124
18154
|
} else throw new TypeError("The following must be of type Collection | URL.");
|
|
18125
|
-
clone.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = this.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers;
|
|
18155
|
+
clone.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = this.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers.slice();
|
|
18126
18156
|
clone.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = new Set(this.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers);
|
|
18127
18157
|
if ("followers" in values && values.followers != null) if (values.followers instanceof Collection || values.followers instanceof URL) {
|
|
18128
18158
|
clone.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = [values.followers];
|
|
18129
18159
|
clone.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = new Set([0]);
|
|
18130
18160
|
} else throw new TypeError("The followers must be of type Collection | URL.");
|
|
18131
|
-
clone.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = this.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked;
|
|
18161
|
+
clone.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = this.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.slice();
|
|
18132
18162
|
clone.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = new Set(this.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked);
|
|
18133
18163
|
if ("liked" in values && values.liked != null) if (values.liked instanceof Collection || values.liked instanceof URL) {
|
|
18134
18164
|
clone.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = [values.liked];
|
|
18135
18165
|
clone.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = new Set([0]);
|
|
18136
18166
|
} else throw new TypeError("The liked must be of type Collection | URL.");
|
|
18137
|
-
clone.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured = this.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured;
|
|
18167
|
+
clone.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured = this.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured.slice();
|
|
18138
18168
|
clone.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured = new Set(this.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured);
|
|
18139
18169
|
if ("featured" in values && values.featured != null) if (values.featured instanceof Collection || values.featured instanceof URL) {
|
|
18140
18170
|
clone.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured = [values.featured];
|
|
18141
18171
|
clone.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured = new Set([0]);
|
|
18142
18172
|
} else throw new TypeError("The featured must be of type Collection | URL.");
|
|
18143
|
-
clone.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = this.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags;
|
|
18173
|
+
clone.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = this.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.slice();
|
|
18144
18174
|
clone.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = new Set(this.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags);
|
|
18145
18175
|
if ("featuredTags" in values && values.featuredTags != null) if (values.featuredTags instanceof Collection || values.featuredTags instanceof URL) {
|
|
18146
18176
|
clone.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = [values.featuredTags];
|
|
18147
18177
|
clone.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = new Set([0]);
|
|
18148
18178
|
} else throw new TypeError("The featuredTags must be of type Collection | URL.");
|
|
18149
|
-
clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams;
|
|
18179
|
+
clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.slice();
|
|
18150
18180
|
clone.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = new Set(this.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams);
|
|
18151
18181
|
if ("streams" in values && values.streams != null) if (Array.isArray(values.streams) && values.streams.every((v) => v instanceof Collection || v instanceof URL)) {
|
|
18152
|
-
clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams;
|
|
18182
|
+
clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams.slice();
|
|
18153
18183
|
clone.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = /* @__PURE__ */ new Set();
|
|
18154
18184
|
for (let i = 0; i < values.streams.length; i++) clone.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.add(i);
|
|
18155
18185
|
} else throw new TypeError("The streams must be an array of type Collection | URL.");
|
|
18156
|
-
clone.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = this.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints;
|
|
18186
|
+
clone.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = this.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.slice();
|
|
18157
18187
|
if ("endpoints" in values && values.endpoints != null) if (values.endpoints instanceof Endpoints) clone.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = [values.endpoints];
|
|
18158
18188
|
else throw new TypeError("The endpoints must be of type Endpoints.");
|
|
18159
|
-
clone.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = this.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable;
|
|
18189
|
+
clone.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = this.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable.slice();
|
|
18160
18190
|
if ("discoverable" in values && values.discoverable != null) if (typeof values.discoverable === "boolean") clone.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = [values.discoverable];
|
|
18161
18191
|
else throw new TypeError("The discoverable must be of type boolean.");
|
|
18162
|
-
clone.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = this.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended;
|
|
18192
|
+
clone.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = this.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended.slice();
|
|
18163
18193
|
if ("suspended" in values && values.suspended != null) if (typeof values.suspended === "boolean") clone.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = [values.suspended];
|
|
18164
18194
|
else throw new TypeError("The suspended must be of type boolean.");
|
|
18165
|
-
clone.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = this.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial;
|
|
18195
|
+
clone.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = this.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial.slice();
|
|
18166
18196
|
if ("memorial" in values && values.memorial != null) if (typeof values.memorial === "boolean") clone.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = [values.memorial];
|
|
18167
18197
|
else throw new TypeError("The memorial must be of type boolean.");
|
|
18168
|
-
clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable;
|
|
18198
|
+
clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable.slice();
|
|
18169
18199
|
if ("indexable" in values && values.indexable != null) if (typeof values.indexable === "boolean") clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = [values.indexable];
|
|
18170
18200
|
else throw new TypeError("The indexable must be of type boolean.");
|
|
18171
|
-
clone.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo;
|
|
18201
|
+
clone.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.slice();
|
|
18172
18202
|
clone.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = new Set(this.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo);
|
|
18173
18203
|
if ("successor" in values && values.successor != null) if (values.successor instanceof Application || values.successor instanceof Group || values.successor instanceof Organization || values.successor instanceof Person || values.successor instanceof Service || values.successor instanceof URL) {
|
|
18174
18204
|
clone.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = [values.successor];
|
|
18175
18205
|
clone.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = new Set([0]);
|
|
18176
18206
|
} else throw new TypeError("The successor must be of type Application | Group | Organization | Person | Service | URL.");
|
|
18177
|
-
clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs;
|
|
18207
|
+
clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.slice();
|
|
18178
18208
|
clone.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = new Set(this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs);
|
|
18179
18209
|
if ("alias" in values && values.alias != null) if (values.alias instanceof Application || values.alias instanceof Group || values.alias instanceof Organization || values.alias instanceof Person || values.alias instanceof Service || values.alias instanceof URL) {
|
|
18180
18210
|
clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = [values.alias];
|
|
@@ -18183,12 +18213,12 @@ var Application = class Application extends Object$1 {
|
|
|
18183
18213
|
if ("aliases" in values && values.aliases != null) {
|
|
18184
18214
|
if ("alias" in values && values.alias != null) throw new TypeError("Cannot update both alias and aliases at the same time.");
|
|
18185
18215
|
if (Array.isArray(values.aliases) && values.aliases.every((v) => v instanceof Application || v instanceof Group || v instanceof Organization || v instanceof Person || v instanceof Service || v instanceof URL)) {
|
|
18186
|
-
clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases;
|
|
18216
|
+
clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases.slice();
|
|
18187
18217
|
clone.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = /* @__PURE__ */ new Set();
|
|
18188
18218
|
for (let i = 0; i < values.aliases.length; i++) clone.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.add(i);
|
|
18189
18219
|
} else throw new TypeError("The aliases must be an array of type Application | Group | Organization | Person | Service | URL.");
|
|
18190
18220
|
}
|
|
18191
|
-
clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service;
|
|
18221
|
+
clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.slice();
|
|
18192
18222
|
clone.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = new Set(this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service);
|
|
18193
18223
|
if ("service" in values && values.service != null) if (values.service instanceof DidService || values.service instanceof URL) {
|
|
18194
18224
|
clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = [values.service];
|
|
@@ -18197,15 +18227,15 @@ var Application = class Application extends Object$1 {
|
|
|
18197
18227
|
if ("services" in values && values.services != null) {
|
|
18198
18228
|
if ("service" in values && values.service != null) throw new TypeError("Cannot update both service and services at the same time.");
|
|
18199
18229
|
if (Array.isArray(values.services) && values.services.every((v) => v instanceof DidService || v instanceof URL)) {
|
|
18200
|
-
clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services;
|
|
18230
|
+
clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services.slice();
|
|
18201
18231
|
clone.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = /* @__PURE__ */ new Set();
|
|
18202
18232
|
for (let i = 0; i < values.services.length; i++) clone.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.add(i);
|
|
18203
18233
|
} else throw new TypeError("The services must be an array of type DidService | URL.");
|
|
18204
18234
|
}
|
|
18205
|
-
clone.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = this.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage;
|
|
18235
|
+
clone.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = this.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage.slice();
|
|
18206
18236
|
if ("followedMessage" in values && values.followedMessage != null) if (typeof values.followedMessage === "string") clone.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = [values.followedMessage];
|
|
18207
18237
|
else throw new TypeError("The followedMessage must be of type string.");
|
|
18208
|
-
clone.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat;
|
|
18238
|
+
clone.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat.slice();
|
|
18209
18239
|
if ("cat" in values && values.cat != null) if (typeof values.cat === "boolean") clone.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = [values.cat];
|
|
18210
18240
|
else throw new TypeError("The cat must be of type boolean.");
|
|
18211
18241
|
return clone;
|
|
@@ -21536,7 +21566,8 @@ var IntransitiveActivity = class IntransitiveActivity extends Activity {
|
|
|
21536
21566
|
* Clones this instance, optionally updating it with the given values.
|
|
21537
21567
|
* @param values The values to update the clone with.
|
|
21538
21568
|
* @param options The options to use for cloning.
|
|
21539
|
-
* @returns The cloned instance.
|
|
21569
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
21570
|
+
* and URLs are shared with this instance.
|
|
21540
21571
|
*/
|
|
21541
21572
|
clone(values = {}, options = {}) {
|
|
21542
21573
|
if (this._warning != null) {
|
|
@@ -21692,7 +21723,8 @@ var Arrive = class Arrive extends IntransitiveActivity {
|
|
|
21692
21723
|
* Clones this instance, optionally updating it with the given values.
|
|
21693
21724
|
* @param values The values to update the clone with.
|
|
21694
21725
|
* @param options The options to use for cloning.
|
|
21695
|
-
* @returns The cloned instance.
|
|
21726
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
21727
|
+
* and URLs are shared with this instance.
|
|
21696
21728
|
*/
|
|
21697
21729
|
clone(values = {}, options = {}) {
|
|
21698
21730
|
if (this._warning != null) {
|
|
@@ -21858,7 +21890,8 @@ var Article = class Article extends Object$1 {
|
|
|
21858
21890
|
* Clones this instance, optionally updating it with the given values.
|
|
21859
21891
|
* @param values The values to update the clone with.
|
|
21860
21892
|
* @param options The options to use for cloning.
|
|
21861
|
-
* @returns The cloned instance.
|
|
21893
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
21894
|
+
* and URLs are shared with this instance.
|
|
21862
21895
|
*/
|
|
21863
21896
|
clone(values = {}, options = {}) {
|
|
21864
21897
|
if (this._warning != null) {
|
|
@@ -21869,16 +21902,16 @@ var Article = class Article extends Object$1 {
|
|
|
21869
21902
|
};
|
|
21870
21903
|
}
|
|
21871
21904
|
const clone = super.clone(values, options);
|
|
21872
|
-
clone.#_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote = this.#_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote;
|
|
21905
|
+
clone.#_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote = this.#_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote.slice();
|
|
21873
21906
|
clone.#_trust_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote = new Set(this.#_trust_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote);
|
|
21874
21907
|
if ("quote" in values && values.quote != null) if (values.quote instanceof Object$1 || values.quote instanceof URL) {
|
|
21875
21908
|
clone.#_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote = [values.quote];
|
|
21876
21909
|
clone.#_trust_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote = new Set([0]);
|
|
21877
21910
|
} else throw new TypeError("The quote must be of type Object | URL.");
|
|
21878
|
-
clone.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl = this.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl;
|
|
21911
|
+
clone.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl = this.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl.slice();
|
|
21879
21912
|
if ("quoteUrl" in values && values.quoteUrl != null) if (values.quoteUrl instanceof URL) clone.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl = [values.quoteUrl];
|
|
21880
21913
|
else throw new TypeError("The quoteUrl must be of type URL.");
|
|
21881
|
-
clone.#_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization = this.#_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization;
|
|
21914
|
+
clone.#_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization = this.#_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization.slice();
|
|
21882
21915
|
clone.#_trust_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization = new Set(this.#_trust_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization);
|
|
21883
21916
|
if ("quoteAuthorization" in values && values.quoteAuthorization != null) if (values.quoteAuthorization instanceof QuoteAuthorization || values.quoteAuthorization instanceof URL) {
|
|
21884
21917
|
clone.#_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization = [values.quoteAuthorization];
|
|
@@ -22503,7 +22536,8 @@ var Document = class Document extends Object$1 {
|
|
|
22503
22536
|
* Clones this instance, optionally updating it with the given values.
|
|
22504
22537
|
* @param values The values to update the clone with.
|
|
22505
22538
|
* @param options The options to use for cloning.
|
|
22506
|
-
* @returns The cloned instance.
|
|
22539
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
22540
|
+
* and URLs are shared with this instance.
|
|
22507
22541
|
*/
|
|
22508
22542
|
clone(values = {}, options = {}) {
|
|
22509
22543
|
if (this._warning != null) {
|
|
@@ -22514,10 +22548,10 @@ var Document = class Document extends Object$1 {
|
|
|
22514
22548
|
};
|
|
22515
22549
|
}
|
|
22516
22550
|
const clone = super.clone(values, options);
|
|
22517
|
-
clone.#_2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width = this.#_2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width;
|
|
22551
|
+
clone.#_2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width = this.#_2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width.slice();
|
|
22518
22552
|
if ("width" in values && values.width != null) if (typeof values.width === "number" && Number.isInteger(values.width) && values.width >= 0) clone.#_2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width = [values.width];
|
|
22519
22553
|
else throw new TypeError("The width must be of type number.");
|
|
22520
|
-
clone.#_2cGKFeFJMmiNpGZFEF75mCwFQsKb_height = this.#_2cGKFeFJMmiNpGZFEF75mCwFQsKb_height;
|
|
22554
|
+
clone.#_2cGKFeFJMmiNpGZFEF75mCwFQsKb_height = this.#_2cGKFeFJMmiNpGZFEF75mCwFQsKb_height.slice();
|
|
22521
22555
|
if ("height" in values && values.height != null) if (typeof values.height === "number" && Number.isInteger(values.height) && values.height >= 0) clone.#_2cGKFeFJMmiNpGZFEF75mCwFQsKb_height = [values.height];
|
|
22522
22556
|
else throw new TypeError("The height must be of type number.");
|
|
22523
22557
|
return clone;
|
|
@@ -22763,7 +22797,8 @@ var Audio = class Audio extends Document {
|
|
|
22763
22797
|
* Clones this instance, optionally updating it with the given values.
|
|
22764
22798
|
* @param values The values to update the clone with.
|
|
22765
22799
|
* @param options The options to use for cloning.
|
|
22766
|
-
* @returns The cloned instance.
|
|
22800
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
22801
|
+
* and URLs are shared with this instance.
|
|
22767
22802
|
*/
|
|
22768
22803
|
clone(values = {}, options = {}) {
|
|
22769
22804
|
if (this._warning != null) {
|
|
@@ -22929,7 +22964,8 @@ var Ignore = class Ignore extends Activity {
|
|
|
22929
22964
|
* Clones this instance, optionally updating it with the given values.
|
|
22930
22965
|
* @param values The values to update the clone with.
|
|
22931
22966
|
* @param options The options to use for cloning.
|
|
22932
|
-
* @returns The cloned instance.
|
|
22967
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
22968
|
+
* and URLs are shared with this instance.
|
|
22933
22969
|
*/
|
|
22934
22970
|
clone(values = {}, options = {}) {
|
|
22935
22971
|
if (this._warning != null) {
|
|
@@ -23084,7 +23120,8 @@ var Block = class Block extends Ignore {
|
|
|
23084
23120
|
* Clones this instance, optionally updating it with the given values.
|
|
23085
23121
|
* @param values The values to update the clone with.
|
|
23086
23122
|
* @param options The options to use for cloning.
|
|
23087
|
-
* @returns The cloned instance.
|
|
23123
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
23124
|
+
* and URLs are shared with this instance.
|
|
23088
23125
|
*/
|
|
23089
23126
|
clone(values = {}, options = {}) {
|
|
23090
23127
|
if (this._warning != null) {
|
|
@@ -23274,7 +23311,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
23274
23311
|
this.#_trust_gyJJnyEFnuNVi1HFZKfAn3Hfn26_last.add(0);
|
|
23275
23312
|
} else throw new TypeError("The last must be of type CollectionPage | URL.");
|
|
23276
23313
|
if ("items" in values && values.items != null) if (Array.isArray(values.items) && values.items.every((v) => v instanceof Object$1 || v instanceof Link || v instanceof URL)) {
|
|
23277
|
-
this.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = values.items;
|
|
23314
|
+
this.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = values.items.slice();
|
|
23278
23315
|
for (let i = 0; i < values.items.length; i++) this.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items.add(i);
|
|
23279
23316
|
} else throw new TypeError("The items must be an array of type Object | Link | URL.");
|
|
23280
23317
|
if ("likesOf" in values && values.likesOf != null) if (values.likesOf instanceof Object$1 || values.likesOf instanceof URL) {
|
|
@@ -23314,7 +23351,8 @@ var Collection = class Collection extends Object$1 {
|
|
|
23314
23351
|
* Clones this instance, optionally updating it with the given values.
|
|
23315
23352
|
* @param values The values to update the clone with.
|
|
23316
23353
|
* @param options The options to use for cloning.
|
|
23317
|
-
* @returns The cloned instance.
|
|
23354
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
23355
|
+
* and URLs are shared with this instance.
|
|
23318
23356
|
*/
|
|
23319
23357
|
clone(values = {}, options = {}) {
|
|
23320
23358
|
if (this._warning != null) {
|
|
@@ -23325,77 +23363,77 @@ var Collection = class Collection extends Object$1 {
|
|
|
23325
23363
|
};
|
|
23326
23364
|
}
|
|
23327
23365
|
const clone = super.clone(values, options);
|
|
23328
|
-
clone.#_XDbmNDuWHmrhqH712zqtecdbv1V_totalItems = this.#_XDbmNDuWHmrhqH712zqtecdbv1V_totalItems;
|
|
23366
|
+
clone.#_XDbmNDuWHmrhqH712zqtecdbv1V_totalItems = this.#_XDbmNDuWHmrhqH712zqtecdbv1V_totalItems.slice();
|
|
23329
23367
|
if ("totalItems" in values && values.totalItems != null) if (typeof values.totalItems === "number" && Number.isInteger(values.totalItems) && values.totalItems >= 0) clone.#_XDbmNDuWHmrhqH712zqtecdbv1V_totalItems = [values.totalItems];
|
|
23330
23368
|
else throw new TypeError("The totalItems must be of type number.");
|
|
23331
|
-
clone.#_3UyUdxnyn6cDn53QKrh4MBiearma_current = this.#_3UyUdxnyn6cDn53QKrh4MBiearma_current;
|
|
23369
|
+
clone.#_3UyUdxnyn6cDn53QKrh4MBiearma_current = this.#_3UyUdxnyn6cDn53QKrh4MBiearma_current.slice();
|
|
23332
23370
|
clone.#_trust_3UyUdxnyn6cDn53QKrh4MBiearma_current = new Set(this.#_trust_3UyUdxnyn6cDn53QKrh4MBiearma_current);
|
|
23333
23371
|
if ("current" in values && values.current != null) if (values.current instanceof CollectionPage || values.current instanceof URL) {
|
|
23334
23372
|
clone.#_3UyUdxnyn6cDn53QKrh4MBiearma_current = [values.current];
|
|
23335
23373
|
clone.#_trust_3UyUdxnyn6cDn53QKrh4MBiearma_current = new Set([0]);
|
|
23336
23374
|
} else throw new TypeError("The current must be of type CollectionPage | URL.");
|
|
23337
|
-
clone.#_J52RqweMe6hhv7RnLJMC8BExTE5_first = this.#_J52RqweMe6hhv7RnLJMC8BExTE5_first;
|
|
23375
|
+
clone.#_J52RqweMe6hhv7RnLJMC8BExTE5_first = this.#_J52RqweMe6hhv7RnLJMC8BExTE5_first.slice();
|
|
23338
23376
|
clone.#_trust_J52RqweMe6hhv7RnLJMC8BExTE5_first = new Set(this.#_trust_J52RqweMe6hhv7RnLJMC8BExTE5_first);
|
|
23339
23377
|
if ("first" in values && values.first != null) if (values.first instanceof CollectionPage || values.first instanceof URL) {
|
|
23340
23378
|
clone.#_J52RqweMe6hhv7RnLJMC8BExTE5_first = [values.first];
|
|
23341
23379
|
clone.#_trust_J52RqweMe6hhv7RnLJMC8BExTE5_first = new Set([0]);
|
|
23342
23380
|
} else throw new TypeError("The first must be of type CollectionPage | URL.");
|
|
23343
|
-
clone.#_gyJJnyEFnuNVi1HFZKfAn3Hfn26_last = this.#_gyJJnyEFnuNVi1HFZKfAn3Hfn26_last;
|
|
23381
|
+
clone.#_gyJJnyEFnuNVi1HFZKfAn3Hfn26_last = this.#_gyJJnyEFnuNVi1HFZKfAn3Hfn26_last.slice();
|
|
23344
23382
|
clone.#_trust_gyJJnyEFnuNVi1HFZKfAn3Hfn26_last = new Set(this.#_trust_gyJJnyEFnuNVi1HFZKfAn3Hfn26_last);
|
|
23345
23383
|
if ("last" in values && values.last != null) if (values.last instanceof CollectionPage || values.last instanceof URL) {
|
|
23346
23384
|
clone.#_gyJJnyEFnuNVi1HFZKfAn3Hfn26_last = [values.last];
|
|
23347
23385
|
clone.#_trust_gyJJnyEFnuNVi1HFZKfAn3Hfn26_last = new Set([0]);
|
|
23348
23386
|
} else throw new TypeError("The last must be of type CollectionPage | URL.");
|
|
23349
|
-
clone.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = this.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items;
|
|
23387
|
+
clone.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = this.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items.slice();
|
|
23350
23388
|
clone.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = new Set(this.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items);
|
|
23351
23389
|
if ("items" in values && values.items != null) if (Array.isArray(values.items) && values.items.every((v) => v instanceof Object$1 || v instanceof Link || v instanceof URL)) {
|
|
23352
|
-
clone.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = values.items;
|
|
23390
|
+
clone.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = values.items.slice();
|
|
23353
23391
|
clone.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = /* @__PURE__ */ new Set();
|
|
23354
23392
|
for (let i = 0; i < values.items.length; i++) clone.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items.add(i);
|
|
23355
23393
|
} else throw new TypeError("The items must be an array of type Object | Link | URL.");
|
|
23356
|
-
clone.#_4TB9Qd9ddtcZEpMfzbHhzafE6jaJ_likesOf = this.#_4TB9Qd9ddtcZEpMfzbHhzafE6jaJ_likesOf;
|
|
23394
|
+
clone.#_4TB9Qd9ddtcZEpMfzbHhzafE6jaJ_likesOf = this.#_4TB9Qd9ddtcZEpMfzbHhzafE6jaJ_likesOf.slice();
|
|
23357
23395
|
clone.#_trust_4TB9Qd9ddtcZEpMfzbHhzafE6jaJ_likesOf = new Set(this.#_trust_4TB9Qd9ddtcZEpMfzbHhzafE6jaJ_likesOf);
|
|
23358
23396
|
if ("likesOf" in values && values.likesOf != null) if (values.likesOf instanceof Object$1 || values.likesOf instanceof URL) {
|
|
23359
23397
|
clone.#_4TB9Qd9ddtcZEpMfzbHhzafE6jaJ_likesOf = [values.likesOf];
|
|
23360
23398
|
clone.#_trust_4TB9Qd9ddtcZEpMfzbHhzafE6jaJ_likesOf = new Set([0]);
|
|
23361
23399
|
} else throw new TypeError("The likesOf must be of type Object | URL.");
|
|
23362
|
-
clone.#_3manzgeKiPsugpztKGiaUUwJ3ito_sharesOf = this.#_3manzgeKiPsugpztKGiaUUwJ3ito_sharesOf;
|
|
23400
|
+
clone.#_3manzgeKiPsugpztKGiaUUwJ3ito_sharesOf = this.#_3manzgeKiPsugpztKGiaUUwJ3ito_sharesOf.slice();
|
|
23363
23401
|
clone.#_trust_3manzgeKiPsugpztKGiaUUwJ3ito_sharesOf = new Set(this.#_trust_3manzgeKiPsugpztKGiaUUwJ3ito_sharesOf);
|
|
23364
23402
|
if ("sharesOf" in values && values.sharesOf != null) if (values.sharesOf instanceof Object$1 || values.sharesOf instanceof URL) {
|
|
23365
23403
|
clone.#_3manzgeKiPsugpztKGiaUUwJ3ito_sharesOf = [values.sharesOf];
|
|
23366
23404
|
clone.#_trust_3manzgeKiPsugpztKGiaUUwJ3ito_sharesOf = new Set([0]);
|
|
23367
23405
|
} else throw new TypeError("The sharesOf must be of type Object | URL.");
|
|
23368
|
-
clone.#_3T3oGm3twpcQUcrnMisXQtmDZ32X_repliesOf = this.#_3T3oGm3twpcQUcrnMisXQtmDZ32X_repliesOf;
|
|
23406
|
+
clone.#_3T3oGm3twpcQUcrnMisXQtmDZ32X_repliesOf = this.#_3T3oGm3twpcQUcrnMisXQtmDZ32X_repliesOf.slice();
|
|
23369
23407
|
clone.#_trust_3T3oGm3twpcQUcrnMisXQtmDZ32X_repliesOf = new Set(this.#_trust_3T3oGm3twpcQUcrnMisXQtmDZ32X_repliesOf);
|
|
23370
23408
|
if ("repliesOf" in values && values.repliesOf != null) if (values.repliesOf instanceof Object$1 || values.repliesOf instanceof URL) {
|
|
23371
23409
|
clone.#_3T3oGm3twpcQUcrnMisXQtmDZ32X_repliesOf = [values.repliesOf];
|
|
23372
23410
|
clone.#_trust_3T3oGm3twpcQUcrnMisXQtmDZ32X_repliesOf = new Set([0]);
|
|
23373
23411
|
} else throw new TypeError("The repliesOf must be of type Object | URL.");
|
|
23374
|
-
clone.#_2bvRkAFZjMfVD8jiUWZJr5YokSeN_inboxOf = this.#_2bvRkAFZjMfVD8jiUWZJr5YokSeN_inboxOf;
|
|
23412
|
+
clone.#_2bvRkAFZjMfVD8jiUWZJr5YokSeN_inboxOf = this.#_2bvRkAFZjMfVD8jiUWZJr5YokSeN_inboxOf.slice();
|
|
23375
23413
|
clone.#_trust_2bvRkAFZjMfVD8jiUWZJr5YokSeN_inboxOf = new Set(this.#_trust_2bvRkAFZjMfVD8jiUWZJr5YokSeN_inboxOf);
|
|
23376
23414
|
if ("inboxOf" in values && values.inboxOf != null) if (values.inboxOf instanceof Object$1 || values.inboxOf instanceof URL) {
|
|
23377
23415
|
clone.#_2bvRkAFZjMfVD8jiUWZJr5YokSeN_inboxOf = [values.inboxOf];
|
|
23378
23416
|
clone.#_trust_2bvRkAFZjMfVD8jiUWZJr5YokSeN_inboxOf = new Set([0]);
|
|
23379
23417
|
} else throw new TypeError("The inboxOf must be of type Object | URL.");
|
|
23380
|
-
clone.#_4AHzVZDxHjK6uEWa9UiKHGK34yYm_outboxOf = this.#_4AHzVZDxHjK6uEWa9UiKHGK34yYm_outboxOf;
|
|
23418
|
+
clone.#_4AHzVZDxHjK6uEWa9UiKHGK34yYm_outboxOf = this.#_4AHzVZDxHjK6uEWa9UiKHGK34yYm_outboxOf.slice();
|
|
23381
23419
|
clone.#_trust_4AHzVZDxHjK6uEWa9UiKHGK34yYm_outboxOf = new Set(this.#_trust_4AHzVZDxHjK6uEWa9UiKHGK34yYm_outboxOf);
|
|
23382
23420
|
if ("outboxOf" in values && values.outboxOf != null) if (values.outboxOf instanceof Object$1 || values.outboxOf instanceof URL) {
|
|
23383
23421
|
clone.#_4AHzVZDxHjK6uEWa9UiKHGK34yYm_outboxOf = [values.outboxOf];
|
|
23384
23422
|
clone.#_trust_4AHzVZDxHjK6uEWa9UiKHGK34yYm_outboxOf = new Set([0]);
|
|
23385
23423
|
} else throw new TypeError("The outboxOf must be of type Object | URL.");
|
|
23386
|
-
clone.#_41aoZ5M6yRUHy3Zx8q6iuZQxtopb_followersOf = this.#_41aoZ5M6yRUHy3Zx8q6iuZQxtopb_followersOf;
|
|
23424
|
+
clone.#_41aoZ5M6yRUHy3Zx8q6iuZQxtopb_followersOf = this.#_41aoZ5M6yRUHy3Zx8q6iuZQxtopb_followersOf.slice();
|
|
23387
23425
|
clone.#_trust_41aoZ5M6yRUHy3Zx8q6iuZQxtopb_followersOf = new Set(this.#_trust_41aoZ5M6yRUHy3Zx8q6iuZQxtopb_followersOf);
|
|
23388
23426
|
if ("followersOf" in values && values.followersOf != null) if (values.followersOf instanceof Object$1 || values.followersOf instanceof URL) {
|
|
23389
23427
|
clone.#_41aoZ5M6yRUHy3Zx8q6iuZQxtopb_followersOf = [values.followersOf];
|
|
23390
23428
|
clone.#_trust_41aoZ5M6yRUHy3Zx8q6iuZQxtopb_followersOf = new Set([0]);
|
|
23391
23429
|
} else throw new TypeError("The followersOf must be of type Object | URL.");
|
|
23392
|
-
clone.#_2nXT2Ah42UjEEQF5oJQ39CbKB1xj_followingOf = this.#_2nXT2Ah42UjEEQF5oJQ39CbKB1xj_followingOf;
|
|
23430
|
+
clone.#_2nXT2Ah42UjEEQF5oJQ39CbKB1xj_followingOf = this.#_2nXT2Ah42UjEEQF5oJQ39CbKB1xj_followingOf.slice();
|
|
23393
23431
|
clone.#_trust_2nXT2Ah42UjEEQF5oJQ39CbKB1xj_followingOf = new Set(this.#_trust_2nXT2Ah42UjEEQF5oJQ39CbKB1xj_followingOf);
|
|
23394
23432
|
if ("followingOf" in values && values.followingOf != null) if (values.followingOf instanceof Object$1 || values.followingOf instanceof URL) {
|
|
23395
23433
|
clone.#_2nXT2Ah42UjEEQF5oJQ39CbKB1xj_followingOf = [values.followingOf];
|
|
23396
23434
|
clone.#_trust_2nXT2Ah42UjEEQF5oJQ39CbKB1xj_followingOf = new Set([0]);
|
|
23397
23435
|
} else throw new TypeError("The followingOf must be of type Object | URL.");
|
|
23398
|
-
clone.#_2bsySzmT3qEZcrnoe3tZ5xBjXSju_likedOf = this.#_2bsySzmT3qEZcrnoe3tZ5xBjXSju_likedOf;
|
|
23436
|
+
clone.#_2bsySzmT3qEZcrnoe3tZ5xBjXSju_likedOf = this.#_2bsySzmT3qEZcrnoe3tZ5xBjXSju_likedOf.slice();
|
|
23399
23437
|
clone.#_trust_2bsySzmT3qEZcrnoe3tZ5xBjXSju_likedOf = new Set(this.#_trust_2bsySzmT3qEZcrnoe3tZ5xBjXSju_likedOf);
|
|
23400
23438
|
if ("likedOf" in values && values.likedOf != null) if (values.likedOf instanceof Object$1 || values.likedOf instanceof URL) {
|
|
23401
23439
|
clone.#_2bsySzmT3qEZcrnoe3tZ5xBjXSju_likedOf = [values.likedOf];
|
|
@@ -25857,7 +25895,8 @@ var CollectionPage = class CollectionPage extends Collection {
|
|
|
25857
25895
|
* Clones this instance, optionally updating it with the given values.
|
|
25858
25896
|
* @param values The values to update the clone with.
|
|
25859
25897
|
* @param options The options to use for cloning.
|
|
25860
|
-
* @returns The cloned instance.
|
|
25898
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
25899
|
+
* and URLs are shared with this instance.
|
|
25861
25900
|
*/
|
|
25862
25901
|
clone(values = {}, options = {}) {
|
|
25863
25902
|
if (this._warning != null) {
|
|
@@ -25868,19 +25907,19 @@ var CollectionPage = class CollectionPage extends Collection {
|
|
|
25868
25907
|
};
|
|
25869
25908
|
}
|
|
25870
25909
|
const clone = super.clone(values, options);
|
|
25871
|
-
clone.#_2kWgBhQKjEauxx8C6qF3ZQamK4Le_partOf = this.#_2kWgBhQKjEauxx8C6qF3ZQamK4Le_partOf;
|
|
25910
|
+
clone.#_2kWgBhQKjEauxx8C6qF3ZQamK4Le_partOf = this.#_2kWgBhQKjEauxx8C6qF3ZQamK4Le_partOf.slice();
|
|
25872
25911
|
clone.#_trust_2kWgBhQKjEauxx8C6qF3ZQamK4Le_partOf = new Set(this.#_trust_2kWgBhQKjEauxx8C6qF3ZQamK4Le_partOf);
|
|
25873
25912
|
if ("partOf" in values && values.partOf != null) if (values.partOf instanceof Collection || values.partOf instanceof URL) {
|
|
25874
25913
|
clone.#_2kWgBhQKjEauxx8C6qF3ZQamK4Le_partOf = [values.partOf];
|
|
25875
25914
|
clone.#_trust_2kWgBhQKjEauxx8C6qF3ZQamK4Le_partOf = new Set([0]);
|
|
25876
25915
|
} else throw new TypeError("The partOf must be of type Collection | URL.");
|
|
25877
|
-
clone.#_3BT4kQLcXhHx7TAWaNDKh8nFn9eY_next = this.#_3BT4kQLcXhHx7TAWaNDKh8nFn9eY_next;
|
|
25916
|
+
clone.#_3BT4kQLcXhHx7TAWaNDKh8nFn9eY_next = this.#_3BT4kQLcXhHx7TAWaNDKh8nFn9eY_next.slice();
|
|
25878
25917
|
clone.#_trust_3BT4kQLcXhHx7TAWaNDKh8nFn9eY_next = new Set(this.#_trust_3BT4kQLcXhHx7TAWaNDKh8nFn9eY_next);
|
|
25879
25918
|
if ("next" in values && values.next != null) if (values.next instanceof CollectionPage || values.next instanceof URL) {
|
|
25880
25919
|
clone.#_3BT4kQLcXhHx7TAWaNDKh8nFn9eY_next = [values.next];
|
|
25881
25920
|
clone.#_trust_3BT4kQLcXhHx7TAWaNDKh8nFn9eY_next = new Set([0]);
|
|
25882
25921
|
} else throw new TypeError("The next must be of type CollectionPage | URL.");
|
|
25883
|
-
clone.#_3b8yG8tDNzQFFEnWhCc13G8eHooA_prev = this.#_3b8yG8tDNzQFFEnWhCc13G8eHooA_prev;
|
|
25922
|
+
clone.#_3b8yG8tDNzQFFEnWhCc13G8eHooA_prev = this.#_3b8yG8tDNzQFFEnWhCc13G8eHooA_prev.slice();
|
|
25884
25923
|
clone.#_trust_3b8yG8tDNzQFFEnWhCc13G8eHooA_prev = new Set(this.#_trust_3b8yG8tDNzQFFEnWhCc13G8eHooA_prev);
|
|
25885
25924
|
if ("prev" in values && values.prev != null) if (values.prev instanceof CollectionPage || values.prev instanceof URL) {
|
|
25886
25925
|
clone.#_3b8yG8tDNzQFFEnWhCc13G8eHooA_prev = [values.prev];
|
|
@@ -26621,7 +26660,8 @@ var Create = class Create extends Activity {
|
|
|
26621
26660
|
* Clones this instance, optionally updating it with the given values.
|
|
26622
26661
|
* @param values The values to update the clone with.
|
|
26623
26662
|
* @param options The options to use for cloning.
|
|
26624
|
-
* @returns The cloned instance.
|
|
26663
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
26664
|
+
* and URLs are shared with this instance.
|
|
26625
26665
|
*/
|
|
26626
26666
|
clone(values = {}, options = {}) {
|
|
26627
26667
|
if (this._warning != null) {
|
|
@@ -26803,7 +26843,8 @@ var Delete = class Delete extends Activity {
|
|
|
26803
26843
|
* Clones this instance, optionally updating it with the given values.
|
|
26804
26844
|
* @param values The values to update the clone with.
|
|
26805
26845
|
* @param options The options to use for cloning.
|
|
26806
|
-
* @returns The cloned instance.
|
|
26846
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
26847
|
+
* and URLs are shared with this instance.
|
|
26807
26848
|
*/
|
|
26808
26849
|
clone(values = {}, options = {}) {
|
|
26809
26850
|
if (this._warning != null) {
|
|
@@ -26980,7 +27021,8 @@ var Dislike = class Dislike extends Activity {
|
|
|
26980
27021
|
* Clones this instance, optionally updating it with the given values.
|
|
26981
27022
|
* @param values The values to update the clone with.
|
|
26982
27023
|
* @param options The options to use for cloning.
|
|
26983
|
-
* @returns The cloned instance.
|
|
27024
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
27025
|
+
* and URLs are shared with this instance.
|
|
26984
27026
|
*/
|
|
26985
27027
|
clone(values = {}, options = {}) {
|
|
26986
27028
|
if (this._warning != null) {
|
|
@@ -27200,7 +27242,8 @@ var Endpoints = class {
|
|
|
27200
27242
|
* Clones this instance, optionally updating it with the given values.
|
|
27201
27243
|
* @param values The values to update the clone with.
|
|
27202
27244
|
* @param options The options to use for cloning.
|
|
27203
|
-
* @returns The cloned instance.
|
|
27245
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
27246
|
+
* and URLs are shared with this instance.
|
|
27204
27247
|
*/
|
|
27205
27248
|
clone(values = {}, options = {}) {
|
|
27206
27249
|
if (this._warning != null) {
|
|
@@ -27211,22 +27254,22 @@ var Endpoints = class {
|
|
|
27211
27254
|
};
|
|
27212
27255
|
}
|
|
27213
27256
|
const clone = new this.constructor({ id: values.id ?? this.id }, options);
|
|
27214
|
-
clone.#_2JCYDbSxEHCCLdBYed33cCETfGyR_proxyUrl = this.#_2JCYDbSxEHCCLdBYed33cCETfGyR_proxyUrl;
|
|
27257
|
+
clone.#_2JCYDbSxEHCCLdBYed33cCETfGyR_proxyUrl = this.#_2JCYDbSxEHCCLdBYed33cCETfGyR_proxyUrl.slice();
|
|
27215
27258
|
if ("proxyUrl" in values && values.proxyUrl != null) if (values.proxyUrl instanceof URL) clone.#_2JCYDbSxEHCCLdBYed33cCETfGyR_proxyUrl = [values.proxyUrl];
|
|
27216
27259
|
else throw new TypeError("The proxyUrl must be of type URL.");
|
|
27217
|
-
clone.#_25S6UmgzDead8hxL5sQFezZTAusd_oauthAuthorizationEndpoint = this.#_25S6UmgzDead8hxL5sQFezZTAusd_oauthAuthorizationEndpoint;
|
|
27260
|
+
clone.#_25S6UmgzDead8hxL5sQFezZTAusd_oauthAuthorizationEndpoint = this.#_25S6UmgzDead8hxL5sQFezZTAusd_oauthAuthorizationEndpoint.slice();
|
|
27218
27261
|
if ("oauthAuthorizationEndpoint" in values && values.oauthAuthorizationEndpoint != null) if (values.oauthAuthorizationEndpoint instanceof URL) clone.#_25S6UmgzDead8hxL5sQFezZTAusd_oauthAuthorizationEndpoint = [values.oauthAuthorizationEndpoint];
|
|
27219
27262
|
else throw new TypeError("The oauthAuthorizationEndpoint must be of type URL.");
|
|
27220
|
-
clone.#_iAMxqrSba7yBCRB1FZ5kEVdKEZ3_oauthTokenEndpoint = this.#_iAMxqrSba7yBCRB1FZ5kEVdKEZ3_oauthTokenEndpoint;
|
|
27263
|
+
clone.#_iAMxqrSba7yBCRB1FZ5kEVdKEZ3_oauthTokenEndpoint = this.#_iAMxqrSba7yBCRB1FZ5kEVdKEZ3_oauthTokenEndpoint.slice();
|
|
27221
27264
|
if ("oauthTokenEndpoint" in values && values.oauthTokenEndpoint != null) if (values.oauthTokenEndpoint instanceof URL) clone.#_iAMxqrSba7yBCRB1FZ5kEVdKEZ3_oauthTokenEndpoint = [values.oauthTokenEndpoint];
|
|
27222
27265
|
else throw new TypeError("The oauthTokenEndpoint must be of type URL.");
|
|
27223
|
-
clone.#_8Bx9qN8oU7Bpt2xi6khaxWp1gMr_provideClientKey = this.#_8Bx9qN8oU7Bpt2xi6khaxWp1gMr_provideClientKey;
|
|
27266
|
+
clone.#_8Bx9qN8oU7Bpt2xi6khaxWp1gMr_provideClientKey = this.#_8Bx9qN8oU7Bpt2xi6khaxWp1gMr_provideClientKey.slice();
|
|
27224
27267
|
if ("provideClientKey" in values && values.provideClientKey != null) if (values.provideClientKey instanceof URL) clone.#_8Bx9qN8oU7Bpt2xi6khaxWp1gMr_provideClientKey = [values.provideClientKey];
|
|
27225
27268
|
else throw new TypeError("The provideClientKey must be of type URL.");
|
|
27226
|
-
clone.#_3dU7PMVQZJpsCpo2F4RQXxBXdPmS_signClientKey = this.#_3dU7PMVQZJpsCpo2F4RQXxBXdPmS_signClientKey;
|
|
27269
|
+
clone.#_3dU7PMVQZJpsCpo2F4RQXxBXdPmS_signClientKey = this.#_3dU7PMVQZJpsCpo2F4RQXxBXdPmS_signClientKey.slice();
|
|
27227
27270
|
if ("signClientKey" in values && values.signClientKey != null) if (values.signClientKey instanceof URL) clone.#_3dU7PMVQZJpsCpo2F4RQXxBXdPmS_signClientKey = [values.signClientKey];
|
|
27228
27271
|
else throw new TypeError("The signClientKey must be of type URL.");
|
|
27229
|
-
clone.#_3JprUSDLVqqX4dwHRi37qGZZCRCc_sharedInbox = this.#_3JprUSDLVqqX4dwHRi37qGZZCRCc_sharedInbox;
|
|
27272
|
+
clone.#_3JprUSDLVqqX4dwHRi37qGZZCRCc_sharedInbox = this.#_3JprUSDLVqqX4dwHRi37qGZZCRCc_sharedInbox.slice();
|
|
27230
27273
|
if ("sharedInbox" in values && values.sharedInbox != null) if (values.sharedInbox instanceof URL) clone.#_3JprUSDLVqqX4dwHRi37qGZZCRCc_sharedInbox = [values.sharedInbox];
|
|
27231
27274
|
else throw new TypeError("The sharedInbox must be of type URL.");
|
|
27232
27275
|
return clone;
|
|
@@ -27609,7 +27652,8 @@ var Event = class Event extends Object$1 {
|
|
|
27609
27652
|
* Clones this instance, optionally updating it with the given values.
|
|
27610
27653
|
* @param values The values to update the clone with.
|
|
27611
27654
|
* @param options The options to use for cloning.
|
|
27612
|
-
* @returns The cloned instance.
|
|
27655
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
27656
|
+
* and URLs are shared with this instance.
|
|
27613
27657
|
*/
|
|
27614
27658
|
clone(values = {}, options = {}) {
|
|
27615
27659
|
if (this._warning != null) {
|
|
@@ -27776,7 +27820,8 @@ var Flag = class Flag extends Activity {
|
|
|
27776
27820
|
* Clones this instance, optionally updating it with the given values.
|
|
27777
27821
|
* @param values The values to update the clone with.
|
|
27778
27822
|
* @param options The options to use for cloning.
|
|
27779
|
-
* @returns The cloned instance.
|
|
27823
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
27824
|
+
* and URLs are shared with this instance.
|
|
27780
27825
|
*/
|
|
27781
27826
|
clone(values = {}, options = {}) {
|
|
27782
27827
|
if (this._warning != null) {
|
|
@@ -27930,7 +27975,8 @@ var Follow = class Follow extends Activity {
|
|
|
27930
27975
|
* Clones this instance, optionally updating it with the given values.
|
|
27931
27976
|
* @param values The values to update the clone with.
|
|
27932
27977
|
* @param options The options to use for cloning.
|
|
27933
|
-
* @returns The cloned instance.
|
|
27978
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
27979
|
+
* and URLs are shared with this instance.
|
|
27934
27980
|
*/
|
|
27935
27981
|
clone(values = {}, options = {}) {
|
|
27936
27982
|
if (this._warning != null) {
|
|
@@ -28118,7 +28164,7 @@ var Group = class Group extends Object$1 {
|
|
|
28118
28164
|
else throw new TypeError("The preferredUsername must be of type string | LanguageString.");
|
|
28119
28165
|
if ("preferredUsernames" in values && values.preferredUsernames != null) {
|
|
28120
28166
|
if ("preferredUsername" in values && values.preferredUsername != null) throw new TypeError("Cannot initialize both preferredUsername and preferredUsernames at the same time.");
|
|
28121
|
-
if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every((v) => typeof v === "string" || v instanceof LanguageString$1)) this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames;
|
|
28167
|
+
if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every((v) => typeof v === "string" || v instanceof LanguageString$1)) this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames.slice();
|
|
28122
28168
|
else throw new TypeError("The preferredUsernames must be an array of type string | LanguageString.");
|
|
28123
28169
|
}
|
|
28124
28170
|
if ("publicKey" in values && values.publicKey != null) if (values.publicKey instanceof CryptographicKey || values.publicKey instanceof URL) {
|
|
@@ -28128,7 +28174,7 @@ var Group = class Group extends Object$1 {
|
|
|
28128
28174
|
if ("publicKeys" in values && values.publicKeys != null) {
|
|
28129
28175
|
if ("publicKey" in values && values.publicKey != null) throw new TypeError("Cannot initialize both publicKey and publicKeys at the same time.");
|
|
28130
28176
|
if (Array.isArray(values.publicKeys) && values.publicKeys.every((v) => v instanceof CryptographicKey || v instanceof URL)) {
|
|
28131
|
-
this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys;
|
|
28177
|
+
this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys.slice();
|
|
28132
28178
|
for (let i = 0; i < values.publicKeys.length; i++) this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.add(i);
|
|
28133
28179
|
} else throw new TypeError("The publicKeys must be an array of type CryptographicKey | URL.");
|
|
28134
28180
|
}
|
|
@@ -28139,7 +28185,7 @@ var Group = class Group extends Object$1 {
|
|
|
28139
28185
|
if ("assertionMethods" in values && values.assertionMethods != null) {
|
|
28140
28186
|
if ("assertionMethod" in values && values.assertionMethod != null) throw new TypeError("Cannot initialize both assertionMethod and assertionMethods at the same time.");
|
|
28141
28187
|
if (Array.isArray(values.assertionMethods) && values.assertionMethods.every((v) => v instanceof Multikey || v instanceof URL)) {
|
|
28142
|
-
this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods;
|
|
28188
|
+
this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods.slice();
|
|
28143
28189
|
for (let i = 0; i < values.assertionMethods.length; i++) this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.add(i);
|
|
28144
28190
|
} else throw new TypeError("The assertionMethods must be an array of type Multikey | URL.");
|
|
28145
28191
|
}
|
|
@@ -28174,7 +28220,7 @@ var Group = class Group extends Object$1 {
|
|
|
28174
28220
|
this.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.add(0);
|
|
28175
28221
|
} else throw new TypeError("The featuredTags must be of type Collection | URL.");
|
|
28176
28222
|
if ("streams" in values && values.streams != null) if (Array.isArray(values.streams) && values.streams.every((v) => v instanceof Collection || v instanceof URL)) {
|
|
28177
|
-
this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams;
|
|
28223
|
+
this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams.slice();
|
|
28178
28224
|
for (let i = 0; i < values.streams.length; i++) this.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.add(i);
|
|
28179
28225
|
} else throw new TypeError("The streams must be an array of type Collection | URL.");
|
|
28180
28226
|
if ("endpoints" in values && values.endpoints != null) if (values.endpoints instanceof Endpoints) this.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = [values.endpoints];
|
|
@@ -28198,7 +28244,7 @@ var Group = class Group extends Object$1 {
|
|
|
28198
28244
|
if ("aliases" in values && values.aliases != null) {
|
|
28199
28245
|
if ("alias" in values && values.alias != null) throw new TypeError("Cannot initialize both alias and aliases at the same time.");
|
|
28200
28246
|
if (Array.isArray(values.aliases) && values.aliases.every((v) => v instanceof Application || v instanceof Group || v instanceof Organization || v instanceof Person || v instanceof Service || v instanceof URL)) {
|
|
28201
|
-
this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases;
|
|
28247
|
+
this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases.slice();
|
|
28202
28248
|
for (let i = 0; i < values.aliases.length; i++) this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.add(i);
|
|
28203
28249
|
} else throw new TypeError("The aliases must be an array of type Application | Group | Organization | Person | Service | URL.");
|
|
28204
28250
|
}
|
|
@@ -28209,7 +28255,7 @@ var Group = class Group extends Object$1 {
|
|
|
28209
28255
|
if ("services" in values && values.services != null) {
|
|
28210
28256
|
if ("service" in values && values.service != null) throw new TypeError("Cannot initialize both service and services at the same time.");
|
|
28211
28257
|
if (Array.isArray(values.services) && values.services.every((v) => v instanceof DidService || v instanceof URL)) {
|
|
28212
|
-
this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services;
|
|
28258
|
+
this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services.slice();
|
|
28213
28259
|
for (let i = 0; i < values.services.length; i++) this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.add(i);
|
|
28214
28260
|
} else throw new TypeError("The services must be an array of type DidService | URL.");
|
|
28215
28261
|
}
|
|
@@ -28222,7 +28268,8 @@ var Group = class Group extends Object$1 {
|
|
|
28222
28268
|
* Clones this instance, optionally updating it with the given values.
|
|
28223
28269
|
* @param values The values to update the clone with.
|
|
28224
28270
|
* @param options The options to use for cloning.
|
|
28225
|
-
* @returns The cloned instance.
|
|
28271
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
28272
|
+
* and URLs are shared with this instance.
|
|
28226
28273
|
*/
|
|
28227
28274
|
clone(values = {}, options = {}) {
|
|
28228
28275
|
if (this._warning != null) {
|
|
@@ -28233,15 +28280,15 @@ var Group = class Group extends Object$1 {
|
|
|
28233
28280
|
};
|
|
28234
28281
|
}
|
|
28235
28282
|
const clone = super.clone(values, options);
|
|
28236
|
-
clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername;
|
|
28283
|
+
clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername.slice();
|
|
28237
28284
|
if ("preferredUsername" in values && values.preferredUsername != null) if (typeof values.preferredUsername === "string" || values.preferredUsername instanceof LanguageString$1) clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = [values.preferredUsername];
|
|
28238
28285
|
else throw new TypeError("The preferredUsername must be of type string | LanguageString.");
|
|
28239
28286
|
if ("preferredUsernames" in values && values.preferredUsernames != null) {
|
|
28240
28287
|
if ("preferredUsername" in values && values.preferredUsername != null) throw new TypeError("Cannot update both preferredUsername and preferredUsernames at the same time.");
|
|
28241
|
-
if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every((v) => typeof v === "string" || v instanceof LanguageString$1)) clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames;
|
|
28288
|
+
if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every((v) => typeof v === "string" || v instanceof LanguageString$1)) clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames.slice();
|
|
28242
28289
|
else throw new TypeError("The preferredUsernames must be an array of type string | LanguageString.");
|
|
28243
28290
|
}
|
|
28244
|
-
clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey;
|
|
28291
|
+
clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey.slice();
|
|
28245
28292
|
clone.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey = new Set(this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey);
|
|
28246
28293
|
if ("publicKey" in values && values.publicKey != null) if (values.publicKey instanceof CryptographicKey || values.publicKey instanceof URL) {
|
|
28247
28294
|
clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = [values.publicKey];
|
|
@@ -28250,12 +28297,12 @@ var Group = class Group extends Object$1 {
|
|
|
28250
28297
|
if ("publicKeys" in values && values.publicKeys != null) {
|
|
28251
28298
|
if ("publicKey" in values && values.publicKey != null) throw new TypeError("Cannot update both publicKey and publicKeys at the same time.");
|
|
28252
28299
|
if (Array.isArray(values.publicKeys) && values.publicKeys.every((v) => v instanceof CryptographicKey || v instanceof URL)) {
|
|
28253
|
-
clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys;
|
|
28300
|
+
clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys.slice();
|
|
28254
28301
|
clone.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey = /* @__PURE__ */ new Set();
|
|
28255
28302
|
for (let i = 0; i < values.publicKeys.length; i++) clone.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.add(i);
|
|
28256
28303
|
} else throw new TypeError("The publicKeys must be an array of type CryptographicKey | URL.");
|
|
28257
28304
|
}
|
|
28258
|
-
clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod;
|
|
28305
|
+
clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.slice();
|
|
28259
28306
|
clone.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = new Set(this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod);
|
|
28260
28307
|
if ("assertionMethod" in values && values.assertionMethod != null) if (values.assertionMethod instanceof Multikey || values.assertionMethod instanceof URL) {
|
|
28261
28308
|
clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = [values.assertionMethod];
|
|
@@ -28264,85 +28311,85 @@ var Group = class Group extends Object$1 {
|
|
|
28264
28311
|
if ("assertionMethods" in values && values.assertionMethods != null) {
|
|
28265
28312
|
if ("assertionMethod" in values && values.assertionMethod != null) throw new TypeError("Cannot update both assertionMethod and assertionMethods at the same time.");
|
|
28266
28313
|
if (Array.isArray(values.assertionMethods) && values.assertionMethods.every((v) => v instanceof Multikey || v instanceof URL)) {
|
|
28267
|
-
clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods;
|
|
28314
|
+
clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods.slice();
|
|
28268
28315
|
clone.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = /* @__PURE__ */ new Set();
|
|
28269
28316
|
for (let i = 0; i < values.assertionMethods.length; i++) clone.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.add(i);
|
|
28270
28317
|
} else throw new TypeError("The assertionMethods must be an array of type Multikey | URL.");
|
|
28271
28318
|
}
|
|
28272
|
-
clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers;
|
|
28319
|
+
clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers.slice();
|
|
28273
28320
|
if ("manuallyApprovesFollowers" in values && values.manuallyApprovesFollowers != null) if (typeof values.manuallyApprovesFollowers === "boolean") clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = [values.manuallyApprovesFollowers];
|
|
28274
28321
|
else throw new TypeError("The manuallyApprovesFollowers must be of type boolean.");
|
|
28275
|
-
clone.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = this.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox;
|
|
28322
|
+
clone.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = this.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox.slice();
|
|
28276
28323
|
clone.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = new Set(this.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox);
|
|
28277
28324
|
if ("inbox" in values && values.inbox != null) if (values.inbox instanceof OrderedCollection || values.inbox instanceof OrderedCollectionPage || values.inbox instanceof URL) {
|
|
28278
28325
|
clone.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = [values.inbox];
|
|
28279
28326
|
clone.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = new Set([0]);
|
|
28280
28327
|
} else throw new TypeError("The inbox must be of type OrderedCollection | OrderedCollectionPage | URL.");
|
|
28281
|
-
clone.#_41QwhqJouoLg3h8dRPKat21brynC_outbox = this.#_41QwhqJouoLg3h8dRPKat21brynC_outbox;
|
|
28328
|
+
clone.#_41QwhqJouoLg3h8dRPKat21brynC_outbox = this.#_41QwhqJouoLg3h8dRPKat21brynC_outbox.slice();
|
|
28282
28329
|
clone.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox = new Set(this.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox);
|
|
28283
28330
|
if ("outbox" in values && values.outbox != null) if (values.outbox instanceof OrderedCollection || values.outbox instanceof OrderedCollectionPage || values.outbox instanceof URL) {
|
|
28284
28331
|
clone.#_41QwhqJouoLg3h8dRPKat21brynC_outbox = [values.outbox];
|
|
28285
28332
|
clone.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox = new Set([0]);
|
|
28286
28333
|
} else throw new TypeError("The outbox must be of type OrderedCollection | OrderedCollectionPage | URL.");
|
|
28287
|
-
clone.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = this.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following;
|
|
28334
|
+
clone.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = this.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.slice();
|
|
28288
28335
|
clone.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = new Set(this.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following);
|
|
28289
28336
|
if ("following" in values && values.following != null) if (values.following instanceof Collection || values.following instanceof URL) {
|
|
28290
28337
|
clone.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = [values.following];
|
|
28291
28338
|
clone.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = new Set([0]);
|
|
28292
28339
|
} else throw new TypeError("The following must be of type Collection | URL.");
|
|
28293
|
-
clone.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = this.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers;
|
|
28340
|
+
clone.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = this.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers.slice();
|
|
28294
28341
|
clone.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = new Set(this.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers);
|
|
28295
28342
|
if ("followers" in values && values.followers != null) if (values.followers instanceof Collection || values.followers instanceof URL) {
|
|
28296
28343
|
clone.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = [values.followers];
|
|
28297
28344
|
clone.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = new Set([0]);
|
|
28298
28345
|
} else throw new TypeError("The followers must be of type Collection | URL.");
|
|
28299
|
-
clone.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = this.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked;
|
|
28346
|
+
clone.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = this.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.slice();
|
|
28300
28347
|
clone.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = new Set(this.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked);
|
|
28301
28348
|
if ("liked" in values && values.liked != null) if (values.liked instanceof Collection || values.liked instanceof URL) {
|
|
28302
28349
|
clone.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = [values.liked];
|
|
28303
28350
|
clone.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = new Set([0]);
|
|
28304
28351
|
} else throw new TypeError("The liked must be of type Collection | URL.");
|
|
28305
|
-
clone.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured = this.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured;
|
|
28352
|
+
clone.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured = this.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured.slice();
|
|
28306
28353
|
clone.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured = new Set(this.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured);
|
|
28307
28354
|
if ("featured" in values && values.featured != null) if (values.featured instanceof Collection || values.featured instanceof URL) {
|
|
28308
28355
|
clone.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured = [values.featured];
|
|
28309
28356
|
clone.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured = new Set([0]);
|
|
28310
28357
|
} else throw new TypeError("The featured must be of type Collection | URL.");
|
|
28311
|
-
clone.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = this.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags;
|
|
28358
|
+
clone.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = this.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.slice();
|
|
28312
28359
|
clone.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = new Set(this.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags);
|
|
28313
28360
|
if ("featuredTags" in values && values.featuredTags != null) if (values.featuredTags instanceof Collection || values.featuredTags instanceof URL) {
|
|
28314
28361
|
clone.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = [values.featuredTags];
|
|
28315
28362
|
clone.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = new Set([0]);
|
|
28316
28363
|
} else throw new TypeError("The featuredTags must be of type Collection | URL.");
|
|
28317
|
-
clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams;
|
|
28364
|
+
clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.slice();
|
|
28318
28365
|
clone.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = new Set(this.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams);
|
|
28319
28366
|
if ("streams" in values && values.streams != null) if (Array.isArray(values.streams) && values.streams.every((v) => v instanceof Collection || v instanceof URL)) {
|
|
28320
|
-
clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams;
|
|
28367
|
+
clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams.slice();
|
|
28321
28368
|
clone.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = /* @__PURE__ */ new Set();
|
|
28322
28369
|
for (let i = 0; i < values.streams.length; i++) clone.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.add(i);
|
|
28323
28370
|
} else throw new TypeError("The streams must be an array of type Collection | URL.");
|
|
28324
|
-
clone.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = this.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints;
|
|
28371
|
+
clone.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = this.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.slice();
|
|
28325
28372
|
if ("endpoints" in values && values.endpoints != null) if (values.endpoints instanceof Endpoints) clone.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = [values.endpoints];
|
|
28326
28373
|
else throw new TypeError("The endpoints must be of type Endpoints.");
|
|
28327
|
-
clone.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = this.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable;
|
|
28374
|
+
clone.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = this.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable.slice();
|
|
28328
28375
|
if ("discoverable" in values && values.discoverable != null) if (typeof values.discoverable === "boolean") clone.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = [values.discoverable];
|
|
28329
28376
|
else throw new TypeError("The discoverable must be of type boolean.");
|
|
28330
|
-
clone.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = this.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended;
|
|
28377
|
+
clone.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = this.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended.slice();
|
|
28331
28378
|
if ("suspended" in values && values.suspended != null) if (typeof values.suspended === "boolean") clone.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = [values.suspended];
|
|
28332
28379
|
else throw new TypeError("The suspended must be of type boolean.");
|
|
28333
|
-
clone.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = this.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial;
|
|
28380
|
+
clone.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = this.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial.slice();
|
|
28334
28381
|
if ("memorial" in values && values.memorial != null) if (typeof values.memorial === "boolean") clone.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = [values.memorial];
|
|
28335
28382
|
else throw new TypeError("The memorial must be of type boolean.");
|
|
28336
|
-
clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable;
|
|
28383
|
+
clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable.slice();
|
|
28337
28384
|
if ("indexable" in values && values.indexable != null) if (typeof values.indexable === "boolean") clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = [values.indexable];
|
|
28338
28385
|
else throw new TypeError("The indexable must be of type boolean.");
|
|
28339
|
-
clone.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo;
|
|
28386
|
+
clone.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.slice();
|
|
28340
28387
|
clone.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = new Set(this.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo);
|
|
28341
28388
|
if ("successor" in values && values.successor != null) if (values.successor instanceof Application || values.successor instanceof Group || values.successor instanceof Organization || values.successor instanceof Person || values.successor instanceof Service || values.successor instanceof URL) {
|
|
28342
28389
|
clone.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = [values.successor];
|
|
28343
28390
|
clone.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = new Set([0]);
|
|
28344
28391
|
} else throw new TypeError("The successor must be of type Application | Group | Organization | Person | Service | URL.");
|
|
28345
|
-
clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs;
|
|
28392
|
+
clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.slice();
|
|
28346
28393
|
clone.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = new Set(this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs);
|
|
28347
28394
|
if ("alias" in values && values.alias != null) if (values.alias instanceof Application || values.alias instanceof Group || values.alias instanceof Organization || values.alias instanceof Person || values.alias instanceof Service || values.alias instanceof URL) {
|
|
28348
28395
|
clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = [values.alias];
|
|
@@ -28351,12 +28398,12 @@ var Group = class Group extends Object$1 {
|
|
|
28351
28398
|
if ("aliases" in values && values.aliases != null) {
|
|
28352
28399
|
if ("alias" in values && values.alias != null) throw new TypeError("Cannot update both alias and aliases at the same time.");
|
|
28353
28400
|
if (Array.isArray(values.aliases) && values.aliases.every((v) => v instanceof Application || v instanceof Group || v instanceof Organization || v instanceof Person || v instanceof Service || v instanceof URL)) {
|
|
28354
|
-
clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases;
|
|
28401
|
+
clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases.slice();
|
|
28355
28402
|
clone.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = /* @__PURE__ */ new Set();
|
|
28356
28403
|
for (let i = 0; i < values.aliases.length; i++) clone.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.add(i);
|
|
28357
28404
|
} else throw new TypeError("The aliases must be an array of type Application | Group | Organization | Person | Service | URL.");
|
|
28358
28405
|
}
|
|
28359
|
-
clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service;
|
|
28406
|
+
clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.slice();
|
|
28360
28407
|
clone.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = new Set(this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service);
|
|
28361
28408
|
if ("service" in values && values.service != null) if (values.service instanceof DidService || values.service instanceof URL) {
|
|
28362
28409
|
clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = [values.service];
|
|
@@ -28365,15 +28412,15 @@ var Group = class Group extends Object$1 {
|
|
|
28365
28412
|
if ("services" in values && values.services != null) {
|
|
28366
28413
|
if ("service" in values && values.service != null) throw new TypeError("Cannot update both service and services at the same time.");
|
|
28367
28414
|
if (Array.isArray(values.services) && values.services.every((v) => v instanceof DidService || v instanceof URL)) {
|
|
28368
|
-
clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services;
|
|
28415
|
+
clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services.slice();
|
|
28369
28416
|
clone.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = /* @__PURE__ */ new Set();
|
|
28370
28417
|
for (let i = 0; i < values.services.length; i++) clone.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.add(i);
|
|
28371
28418
|
} else throw new TypeError("The services must be an array of type DidService | URL.");
|
|
28372
28419
|
}
|
|
28373
|
-
clone.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = this.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage;
|
|
28420
|
+
clone.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = this.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage.slice();
|
|
28374
28421
|
if ("followedMessage" in values && values.followedMessage != null) if (typeof values.followedMessage === "string") clone.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = [values.followedMessage];
|
|
28375
28422
|
else throw new TypeError("The followedMessage must be of type string.");
|
|
28376
|
-
clone.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat;
|
|
28423
|
+
clone.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat.slice();
|
|
28377
28424
|
if ("cat" in values && values.cat != null) if (typeof values.cat === "boolean") clone.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = [values.cat];
|
|
28378
28425
|
else throw new TypeError("The cat must be of type boolean.");
|
|
28379
28426
|
return clone;
|
|
@@ -31766,7 +31813,7 @@ var Link = class Link {
|
|
|
31766
31813
|
else throw new TypeError("The rel must be of type string.");
|
|
31767
31814
|
if ("rels" in values && values.rels != null) {
|
|
31768
31815
|
if ("rel" in values && values.rel != null) throw new TypeError("Cannot initialize both rel and rels at the same time.");
|
|
31769
|
-
if (Array.isArray(values.rels) && values.rels.every((v) => typeof v === "string")) this.#_2a1c5GkfkQsnyyLybF8UXBQfFuHZ_rel = values.rels;
|
|
31816
|
+
if (Array.isArray(values.rels) && values.rels.every((v) => typeof v === "string")) this.#_2a1c5GkfkQsnyyLybF8UXBQfFuHZ_rel = values.rels.slice();
|
|
31770
31817
|
else throw new TypeError("The rels must be an array of type string.");
|
|
31771
31818
|
}
|
|
31772
31819
|
if ("mediaType" in values && values.mediaType != null) if (typeof values.mediaType === "string") this.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType = [values.mediaType];
|
|
@@ -31775,7 +31822,7 @@ var Link = class Link {
|
|
|
31775
31822
|
else throw new TypeError("The name must be of type string | LanguageString.");
|
|
31776
31823
|
if ("names" in values && values.names != null) {
|
|
31777
31824
|
if ("name" in values && values.name != null) throw new TypeError("Cannot initialize both name and names at the same time.");
|
|
31778
|
-
if (Array.isArray(values.names) && values.names.every((v) => typeof v === "string" || v instanceof LanguageString$1)) this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = values.names;
|
|
31825
|
+
if (Array.isArray(values.names) && values.names.every((v) => typeof v === "string" || v instanceof LanguageString$1)) this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = values.names.slice();
|
|
31779
31826
|
else throw new TypeError("The names must be an array of type string | LanguageString.");
|
|
31780
31827
|
}
|
|
31781
31828
|
if ("language" in values && values.language != null) if (values.language instanceof Intl.Locale) this.#_f57HKWCp1YRBbTJE8PF12RbDJGf_hreflang = [values.language];
|
|
@@ -31785,7 +31832,7 @@ var Link = class Link {
|
|
|
31785
31832
|
if ("width" in values && values.width != null) if (typeof values.width === "number" && Number.isInteger(values.width) && values.width >= 0) this.#_2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width = [values.width];
|
|
31786
31833
|
else throw new TypeError("The width must be of type number.");
|
|
31787
31834
|
if ("previews" in values && values.previews != null) if (Array.isArray(values.previews) && values.previews.every((v) => v instanceof Link || v instanceof Object$1 || v instanceof URL)) {
|
|
31788
|
-
this.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview = values.previews;
|
|
31835
|
+
this.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview = values.previews.slice();
|
|
31789
31836
|
for (let i = 0; i < values.previews.length; i++) this.#_trust_gCVTegXxWWCw6wWRxa1QF65zusg_preview.add(i);
|
|
31790
31837
|
} else throw new TypeError("The previews must be an array of type Link | Object | URL.");
|
|
31791
31838
|
}
|
|
@@ -31793,7 +31840,8 @@ var Link = class Link {
|
|
|
31793
31840
|
* Clones this instance, optionally updating it with the given values.
|
|
31794
31841
|
* @param values The values to update the clone with.
|
|
31795
31842
|
* @param options The options to use for cloning.
|
|
31796
|
-
* @returns The cloned instance.
|
|
31843
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
31844
|
+
* and URLs are shared with this instance.
|
|
31797
31845
|
*/
|
|
31798
31846
|
clone(values = {}, options = {}) {
|
|
31799
31847
|
if (this._warning != null) {
|
|
@@ -31804,41 +31852,41 @@ var Link = class Link {
|
|
|
31804
31852
|
};
|
|
31805
31853
|
}
|
|
31806
31854
|
const clone = new this.constructor({ id: values.id ?? this.id }, options);
|
|
31807
|
-
clone.#_pVjLsybKQdmkjuU7MHjiVmNnuj7_href = this.#_pVjLsybKQdmkjuU7MHjiVmNnuj7_href;
|
|
31855
|
+
clone.#_pVjLsybKQdmkjuU7MHjiVmNnuj7_href = this.#_pVjLsybKQdmkjuU7MHjiVmNnuj7_href.slice();
|
|
31808
31856
|
if ("href" in values && values.href != null) if (values.href instanceof URL) clone.#_pVjLsybKQdmkjuU7MHjiVmNnuj7_href = [values.href];
|
|
31809
31857
|
else throw new TypeError("The href must be of type URL.");
|
|
31810
|
-
clone.#_2a1c5GkfkQsnyyLybF8UXBQfFuHZ_rel = this.#_2a1c5GkfkQsnyyLybF8UXBQfFuHZ_rel;
|
|
31858
|
+
clone.#_2a1c5GkfkQsnyyLybF8UXBQfFuHZ_rel = this.#_2a1c5GkfkQsnyyLybF8UXBQfFuHZ_rel.slice();
|
|
31811
31859
|
if ("rel" in values && values.rel != null) if (typeof values.rel === "string") clone.#_2a1c5GkfkQsnyyLybF8UXBQfFuHZ_rel = [values.rel];
|
|
31812
31860
|
else throw new TypeError("The rel must be of type string.");
|
|
31813
31861
|
if ("rels" in values && values.rels != null) {
|
|
31814
31862
|
if ("rel" in values && values.rel != null) throw new TypeError("Cannot update both rel and rels at the same time.");
|
|
31815
|
-
if (Array.isArray(values.rels) && values.rels.every((v) => typeof v === "string")) clone.#_2a1c5GkfkQsnyyLybF8UXBQfFuHZ_rel = values.rels;
|
|
31863
|
+
if (Array.isArray(values.rels) && values.rels.every((v) => typeof v === "string")) clone.#_2a1c5GkfkQsnyyLybF8UXBQfFuHZ_rel = values.rels.slice();
|
|
31816
31864
|
else throw new TypeError("The rels must be an array of type string.");
|
|
31817
31865
|
}
|
|
31818
|
-
clone.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType = this.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType;
|
|
31866
|
+
clone.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType = this.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType.slice();
|
|
31819
31867
|
if ("mediaType" in values && values.mediaType != null) if (typeof values.mediaType === "string") clone.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType = [values.mediaType];
|
|
31820
31868
|
else throw new TypeError("The mediaType must be of type string.");
|
|
31821
|
-
clone.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name;
|
|
31869
|
+
clone.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name.slice();
|
|
31822
31870
|
if ("name" in values && values.name != null) if (typeof values.name === "string" || values.name instanceof LanguageString$1) clone.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = [values.name];
|
|
31823
31871
|
else throw new TypeError("The name must be of type string | LanguageString.");
|
|
31824
31872
|
if ("names" in values && values.names != null) {
|
|
31825
31873
|
if ("name" in values && values.name != null) throw new TypeError("Cannot update both name and names at the same time.");
|
|
31826
|
-
if (Array.isArray(values.names) && values.names.every((v) => typeof v === "string" || v instanceof LanguageString$1)) clone.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = values.names;
|
|
31874
|
+
if (Array.isArray(values.names) && values.names.every((v) => typeof v === "string" || v instanceof LanguageString$1)) clone.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = values.names.slice();
|
|
31827
31875
|
else throw new TypeError("The names must be an array of type string | LanguageString.");
|
|
31828
31876
|
}
|
|
31829
|
-
clone.#_f57HKWCp1YRBbTJE8PF12RbDJGf_hreflang = this.#_f57HKWCp1YRBbTJE8PF12RbDJGf_hreflang;
|
|
31877
|
+
clone.#_f57HKWCp1YRBbTJE8PF12RbDJGf_hreflang = this.#_f57HKWCp1YRBbTJE8PF12RbDJGf_hreflang.slice();
|
|
31830
31878
|
if ("language" in values && values.language != null) if (values.language instanceof Intl.Locale) clone.#_f57HKWCp1YRBbTJE8PF12RbDJGf_hreflang = [values.language];
|
|
31831
31879
|
else throw new TypeError("The language must be of type Intl.Locale.");
|
|
31832
|
-
clone.#_2cGKFeFJMmiNpGZFEF75mCwFQsKb_height = this.#_2cGKFeFJMmiNpGZFEF75mCwFQsKb_height;
|
|
31880
|
+
clone.#_2cGKFeFJMmiNpGZFEF75mCwFQsKb_height = this.#_2cGKFeFJMmiNpGZFEF75mCwFQsKb_height.slice();
|
|
31833
31881
|
if ("height" in values && values.height != null) if (typeof values.height === "number" && Number.isInteger(values.height) && values.height >= 0) clone.#_2cGKFeFJMmiNpGZFEF75mCwFQsKb_height = [values.height];
|
|
31834
31882
|
else throw new TypeError("The height must be of type number.");
|
|
31835
|
-
clone.#_2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width = this.#_2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width;
|
|
31883
|
+
clone.#_2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width = this.#_2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width.slice();
|
|
31836
31884
|
if ("width" in values && values.width != null) if (typeof values.width === "number" && Number.isInteger(values.width) && values.width >= 0) clone.#_2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width = [values.width];
|
|
31837
31885
|
else throw new TypeError("The width must be of type number.");
|
|
31838
|
-
clone.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview = this.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview;
|
|
31886
|
+
clone.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview = this.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview.slice();
|
|
31839
31887
|
clone.#_trust_gCVTegXxWWCw6wWRxa1QF65zusg_preview = new Set(this.#_trust_gCVTegXxWWCw6wWRxa1QF65zusg_preview);
|
|
31840
31888
|
if ("previews" in values && values.previews != null) if (Array.isArray(values.previews) && values.previews.every((v) => v instanceof Link || v instanceof Object$1 || v instanceof URL)) {
|
|
31841
|
-
clone.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview = values.previews;
|
|
31889
|
+
clone.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview = values.previews.slice();
|
|
31842
31890
|
clone.#_trust_gCVTegXxWWCw6wWRxa1QF65zusg_preview = /* @__PURE__ */ new Set();
|
|
31843
31891
|
for (let i = 0; i < values.previews.length; i++) clone.#_trust_gCVTegXxWWCw6wWRxa1QF65zusg_preview.add(i);
|
|
31844
31892
|
} else throw new TypeError("The previews must be an array of type Link | Object | URL.");
|
|
@@ -32330,7 +32378,7 @@ var Link = class Link {
|
|
|
32330
32378
|
let _f57HKWCp1YRBbTJE8PF12RbDJGf_hreflang__array = values["https://www.w3.org/ns/activitystreams#hreflang"];
|
|
32331
32379
|
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) {
|
|
32332
32380
|
if (v == null) continue;
|
|
32333
|
-
const decoded = new Intl.Locale(v["@value"]);
|
|
32381
|
+
const decoded = new Intl.Locale(normalizeLanguageTag(v["@value"]));
|
|
32334
32382
|
if (typeof decoded === "undefined") {
|
|
32335
32383
|
shouldCacheJsonLd = false;
|
|
32336
32384
|
continue;
|
|
@@ -32547,7 +32595,8 @@ var Hashtag = class Hashtag extends Link {
|
|
|
32547
32595
|
* Clones this instance, optionally updating it with the given values.
|
|
32548
32596
|
* @param values The values to update the clone with.
|
|
32549
32597
|
* @param options The options to use for cloning.
|
|
32550
|
-
* @returns The cloned instance.
|
|
32598
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
32599
|
+
* and URLs are shared with this instance.
|
|
32551
32600
|
*/
|
|
32552
32601
|
clone(values = {}, options = {}) {
|
|
32553
32602
|
if (this._warning != null) {
|
|
@@ -32701,7 +32750,8 @@ var Image = class Image extends Document {
|
|
|
32701
32750
|
* Clones this instance, optionally updating it with the given values.
|
|
32702
32751
|
* @param values The values to update the clone with.
|
|
32703
32752
|
* @param options The options to use for cloning.
|
|
32704
|
-
* @returns The cloned instance.
|
|
32753
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
32754
|
+
* and URLs are shared with this instance.
|
|
32705
32755
|
*/
|
|
32706
32756
|
clone(values = {}, options = {}) {
|
|
32707
32757
|
if (this._warning != null) {
|
|
@@ -32868,7 +32918,8 @@ var Offer = class Offer extends Activity {
|
|
|
32868
32918
|
* Clones this instance, optionally updating it with the given values.
|
|
32869
32919
|
* @param values The values to update the clone with.
|
|
32870
32920
|
* @param options The options to use for cloning.
|
|
32871
|
-
* @returns The cloned instance.
|
|
32921
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
32922
|
+
* and URLs are shared with this instance.
|
|
32872
32923
|
*/
|
|
32873
32924
|
clone(values = {}, options = {}) {
|
|
32874
32925
|
if (this._warning != null) {
|
|
@@ -33021,7 +33072,8 @@ var Invite = class Invite extends Offer {
|
|
|
33021
33072
|
* Clones this instance, optionally updating it with the given values.
|
|
33022
33073
|
* @param values The values to update the clone with.
|
|
33023
33074
|
* @param options The options to use for cloning.
|
|
33024
|
-
* @returns The cloned instance.
|
|
33075
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
33076
|
+
* and URLs are shared with this instance.
|
|
33025
33077
|
*/
|
|
33026
33078
|
clone(values = {}, options = {}) {
|
|
33027
33079
|
if (this._warning != null) {
|
|
@@ -33173,7 +33225,8 @@ var Join = class Join extends Activity {
|
|
|
33173
33225
|
* Clones this instance, optionally updating it with the given values.
|
|
33174
33226
|
* @param values The values to update the clone with.
|
|
33175
33227
|
* @param options The options to use for cloning.
|
|
33176
|
-
* @returns The cloned instance.
|
|
33228
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
33229
|
+
* and URLs are shared with this instance.
|
|
33177
33230
|
*/
|
|
33178
33231
|
clone(values = {}, options = {}) {
|
|
33179
33232
|
if (this._warning != null) {
|
|
@@ -33325,7 +33378,8 @@ var Leave = class Leave extends Activity {
|
|
|
33325
33378
|
* Clones this instance, optionally updating it with the given values.
|
|
33326
33379
|
* @param values The values to update the clone with.
|
|
33327
33380
|
* @param options The options to use for cloning.
|
|
33328
|
-
* @returns The cloned instance.
|
|
33381
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
33382
|
+
* and URLs are shared with this instance.
|
|
33329
33383
|
*/
|
|
33330
33384
|
clone(values = {}, options = {}) {
|
|
33331
33385
|
if (this._warning != null) {
|
|
@@ -33477,7 +33531,8 @@ var Like = class Like extends Activity {
|
|
|
33477
33531
|
* Clones this instance, optionally updating it with the given values.
|
|
33478
33532
|
* @param values The values to update the clone with.
|
|
33479
33533
|
* @param options The options to use for cloning.
|
|
33480
|
-
* @returns The cloned instance.
|
|
33534
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
33535
|
+
* and URLs are shared with this instance.
|
|
33481
33536
|
*/
|
|
33482
33537
|
clone(values = {}, options = {}) {
|
|
33483
33538
|
if (this._warning != null) {
|
|
@@ -33632,7 +33687,8 @@ var Listen = class Listen extends Activity {
|
|
|
33632
33687
|
* Clones this instance, optionally updating it with the given values.
|
|
33633
33688
|
* @param values The values to update the clone with.
|
|
33634
33689
|
* @param options The options to use for cloning.
|
|
33635
|
-
* @returns The cloned instance.
|
|
33690
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
33691
|
+
* and URLs are shared with this instance.
|
|
33636
33692
|
*/
|
|
33637
33693
|
clone(values = {}, options = {}) {
|
|
33638
33694
|
if (this._warning != null) {
|
|
@@ -33783,7 +33839,8 @@ var Mention = class Mention extends Link {
|
|
|
33783
33839
|
* Clones this instance, optionally updating it with the given values.
|
|
33784
33840
|
* @param values The values to update the clone with.
|
|
33785
33841
|
* @param options The options to use for cloning.
|
|
33786
|
-
* @returns The cloned instance.
|
|
33842
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
33843
|
+
* and URLs are shared with this instance.
|
|
33787
33844
|
*/
|
|
33788
33845
|
clone(values = {}, options = {}) {
|
|
33789
33846
|
if (this._warning != null) {
|
|
@@ -33939,7 +33996,8 @@ var Move = class Move extends Activity {
|
|
|
33939
33996
|
* Clones this instance, optionally updating it with the given values.
|
|
33940
33997
|
* @param values The values to update the clone with.
|
|
33941
33998
|
* @param options The options to use for cloning.
|
|
33942
|
-
* @returns The cloned instance.
|
|
33999
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
34000
|
+
* and URLs are shared with this instance.
|
|
33943
34001
|
*/
|
|
33944
34002
|
clone(values = {}, options = {}) {
|
|
33945
34003
|
if (this._warning != null) {
|
|
@@ -34106,7 +34164,8 @@ var Note = class Note extends Object$1 {
|
|
|
34106
34164
|
* Clones this instance, optionally updating it with the given values.
|
|
34107
34165
|
* @param values The values to update the clone with.
|
|
34108
34166
|
* @param options The options to use for cloning.
|
|
34109
|
-
* @returns The cloned instance.
|
|
34167
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
34168
|
+
* and URLs are shared with this instance.
|
|
34110
34169
|
*/
|
|
34111
34170
|
clone(values = {}, options = {}) {
|
|
34112
34171
|
if (this._warning != null) {
|
|
@@ -34117,16 +34176,16 @@ var Note = class Note extends Object$1 {
|
|
|
34117
34176
|
};
|
|
34118
34177
|
}
|
|
34119
34178
|
const clone = super.clone(values, options);
|
|
34120
|
-
clone.#_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote = this.#_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote;
|
|
34179
|
+
clone.#_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote = this.#_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote.slice();
|
|
34121
34180
|
clone.#_trust_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote = new Set(this.#_trust_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote);
|
|
34122
34181
|
if ("quote" in values && values.quote != null) if (values.quote instanceof Object$1 || values.quote instanceof URL) {
|
|
34123
34182
|
clone.#_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote = [values.quote];
|
|
34124
34183
|
clone.#_trust_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote = new Set([0]);
|
|
34125
34184
|
} else throw new TypeError("The quote must be of type Object | URL.");
|
|
34126
|
-
clone.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl = this.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl;
|
|
34185
|
+
clone.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl = this.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl.slice();
|
|
34127
34186
|
if ("quoteUrl" in values && values.quoteUrl != null) if (values.quoteUrl instanceof URL) clone.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl = [values.quoteUrl];
|
|
34128
34187
|
else throw new TypeError("The quoteUrl must be of type URL.");
|
|
34129
|
-
clone.#_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization = this.#_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization;
|
|
34188
|
+
clone.#_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization = this.#_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization.slice();
|
|
34130
34189
|
clone.#_trust_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization = new Set(this.#_trust_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization);
|
|
34131
34190
|
if ("quoteAuthorization" in values && values.quoteAuthorization != null) if (values.quoteAuthorization instanceof QuoteAuthorization || values.quoteAuthorization instanceof URL) {
|
|
34132
34191
|
clone.#_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization = [values.quoteAuthorization];
|
|
@@ -34744,7 +34803,7 @@ var OrderedCollection = class OrderedCollection extends Collection {
|
|
|
34744
34803
|
constructor(values, options = {}) {
|
|
34745
34804
|
super(values, options);
|
|
34746
34805
|
if ("items" in values && values.items != null) if (Array.isArray(values.items) && values.items.every((v) => v instanceof Object$1 || v instanceof Link || v instanceof URL)) {
|
|
34747
|
-
this.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = values.items;
|
|
34806
|
+
this.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = values.items.slice();
|
|
34748
34807
|
for (let i = 0; i < values.items.length; i++) this.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items.add(i);
|
|
34749
34808
|
} else throw new TypeError("The items must be an array of type Object | Link | URL.");
|
|
34750
34809
|
}
|
|
@@ -34752,7 +34811,8 @@ var OrderedCollection = class OrderedCollection extends Collection {
|
|
|
34752
34811
|
* Clones this instance, optionally updating it with the given values.
|
|
34753
34812
|
* @param values The values to update the clone with.
|
|
34754
34813
|
* @param options The options to use for cloning.
|
|
34755
|
-
* @returns The cloned instance.
|
|
34814
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
34815
|
+
* and URLs are shared with this instance.
|
|
34756
34816
|
*/
|
|
34757
34817
|
clone(values = {}, options = {}) {
|
|
34758
34818
|
if (this._warning != null) {
|
|
@@ -34763,10 +34823,10 @@ var OrderedCollection = class OrderedCollection extends Collection {
|
|
|
34763
34823
|
};
|
|
34764
34824
|
}
|
|
34765
34825
|
const clone = super.clone(values, options);
|
|
34766
|
-
clone.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = this.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items;
|
|
34826
|
+
clone.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = this.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items.slice();
|
|
34767
34827
|
clone.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = new Set(this.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items);
|
|
34768
34828
|
if ("items" in values && values.items != null) if (Array.isArray(values.items) && values.items.every((v) => v instanceof Object$1 || v instanceof Link || v instanceof URL)) {
|
|
34769
|
-
clone.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = values.items;
|
|
34829
|
+
clone.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = values.items.slice();
|
|
34770
34830
|
clone.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = /* @__PURE__ */ new Set();
|
|
34771
34831
|
for (let i = 0; i < values.items.length; i++) clone.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items.add(i);
|
|
34772
34832
|
} else throw new TypeError("The items must be an array of type Object | Link | URL.");
|
|
@@ -35246,7 +35306,7 @@ var OrderedCollectionPage = class OrderedCollectionPage extends CollectionPage {
|
|
|
35246
35306
|
constructor(values, options = {}) {
|
|
35247
35307
|
super(values, options);
|
|
35248
35308
|
if ("items" in values && values.items != null) if (Array.isArray(values.items) && values.items.every((v) => v instanceof Object$1 || v instanceof Link || v instanceof URL)) {
|
|
35249
|
-
this.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = values.items;
|
|
35309
|
+
this.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = values.items.slice();
|
|
35250
35310
|
for (let i = 0; i < values.items.length; i++) this.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items.add(i);
|
|
35251
35311
|
} else throw new TypeError("The items must be an array of type Object | Link | URL.");
|
|
35252
35312
|
if ("startIndex" in values && values.startIndex != null) if (typeof values.startIndex === "number" && Number.isInteger(values.startIndex) && values.startIndex >= 0) this.#_2W4yinFwqmpneu2h4m1mZ3pcLADd_startIndex = [values.startIndex];
|
|
@@ -35256,7 +35316,8 @@ var OrderedCollectionPage = class OrderedCollectionPage extends CollectionPage {
|
|
|
35256
35316
|
* Clones this instance, optionally updating it with the given values.
|
|
35257
35317
|
* @param values The values to update the clone with.
|
|
35258
35318
|
* @param options The options to use for cloning.
|
|
35259
|
-
* @returns The cloned instance.
|
|
35319
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
35320
|
+
* and URLs are shared with this instance.
|
|
35260
35321
|
*/
|
|
35261
35322
|
clone(values = {}, options = {}) {
|
|
35262
35323
|
if (this._warning != null) {
|
|
@@ -35267,14 +35328,14 @@ var OrderedCollectionPage = class OrderedCollectionPage extends CollectionPage {
|
|
|
35267
35328
|
};
|
|
35268
35329
|
}
|
|
35269
35330
|
const clone = super.clone(values, options);
|
|
35270
|
-
clone.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = this.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items;
|
|
35331
|
+
clone.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = this.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items.slice();
|
|
35271
35332
|
clone.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = new Set(this.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items);
|
|
35272
35333
|
if ("items" in values && values.items != null) if (Array.isArray(values.items) && values.items.every((v) => v instanceof Object$1 || v instanceof Link || v instanceof URL)) {
|
|
35273
|
-
clone.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = values.items;
|
|
35334
|
+
clone.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = values.items.slice();
|
|
35274
35335
|
clone.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = /* @__PURE__ */ new Set();
|
|
35275
35336
|
for (let i = 0; i < values.items.length; i++) clone.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items.add(i);
|
|
35276
35337
|
} else throw new TypeError("The items must be an array of type Object | Link | URL.");
|
|
35277
|
-
clone.#_2W4yinFwqmpneu2h4m1mZ3pcLADd_startIndex = this.#_2W4yinFwqmpneu2h4m1mZ3pcLADd_startIndex;
|
|
35338
|
+
clone.#_2W4yinFwqmpneu2h4m1mZ3pcLADd_startIndex = this.#_2W4yinFwqmpneu2h4m1mZ3pcLADd_startIndex.slice();
|
|
35278
35339
|
if ("startIndex" in values && values.startIndex != null) if (typeof values.startIndex === "number" && Number.isInteger(values.startIndex) && values.startIndex >= 0) clone.#_2W4yinFwqmpneu2h4m1mZ3pcLADd_startIndex = [values.startIndex];
|
|
35279
35340
|
else throw new TypeError("The startIndex must be of type number.");
|
|
35280
35341
|
return clone;
|
|
@@ -35827,7 +35888,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
35827
35888
|
else throw new TypeError("The preferredUsername must be of type string | LanguageString.");
|
|
35828
35889
|
if ("preferredUsernames" in values && values.preferredUsernames != null) {
|
|
35829
35890
|
if ("preferredUsername" in values && values.preferredUsername != null) throw new TypeError("Cannot initialize both preferredUsername and preferredUsernames at the same time.");
|
|
35830
|
-
if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every((v) => typeof v === "string" || v instanceof LanguageString$1)) this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames;
|
|
35891
|
+
if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every((v) => typeof v === "string" || v instanceof LanguageString$1)) this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames.slice();
|
|
35831
35892
|
else throw new TypeError("The preferredUsernames must be an array of type string | LanguageString.");
|
|
35832
35893
|
}
|
|
35833
35894
|
if ("publicKey" in values && values.publicKey != null) if (values.publicKey instanceof CryptographicKey || values.publicKey instanceof URL) {
|
|
@@ -35837,7 +35898,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
35837
35898
|
if ("publicKeys" in values && values.publicKeys != null) {
|
|
35838
35899
|
if ("publicKey" in values && values.publicKey != null) throw new TypeError("Cannot initialize both publicKey and publicKeys at the same time.");
|
|
35839
35900
|
if (Array.isArray(values.publicKeys) && values.publicKeys.every((v) => v instanceof CryptographicKey || v instanceof URL)) {
|
|
35840
|
-
this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys;
|
|
35901
|
+
this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys.slice();
|
|
35841
35902
|
for (let i = 0; i < values.publicKeys.length; i++) this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.add(i);
|
|
35842
35903
|
} else throw new TypeError("The publicKeys must be an array of type CryptographicKey | URL.");
|
|
35843
35904
|
}
|
|
@@ -35848,7 +35909,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
35848
35909
|
if ("assertionMethods" in values && values.assertionMethods != null) {
|
|
35849
35910
|
if ("assertionMethod" in values && values.assertionMethod != null) throw new TypeError("Cannot initialize both assertionMethod and assertionMethods at the same time.");
|
|
35850
35911
|
if (Array.isArray(values.assertionMethods) && values.assertionMethods.every((v) => v instanceof Multikey || v instanceof URL)) {
|
|
35851
|
-
this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods;
|
|
35912
|
+
this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods.slice();
|
|
35852
35913
|
for (let i = 0; i < values.assertionMethods.length; i++) this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.add(i);
|
|
35853
35914
|
} else throw new TypeError("The assertionMethods must be an array of type Multikey | URL.");
|
|
35854
35915
|
}
|
|
@@ -35883,7 +35944,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
35883
35944
|
this.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.add(0);
|
|
35884
35945
|
} else throw new TypeError("The featuredTags must be of type Collection | URL.");
|
|
35885
35946
|
if ("streams" in values && values.streams != null) if (Array.isArray(values.streams) && values.streams.every((v) => v instanceof Collection || v instanceof URL)) {
|
|
35886
|
-
this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams;
|
|
35947
|
+
this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams.slice();
|
|
35887
35948
|
for (let i = 0; i < values.streams.length; i++) this.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.add(i);
|
|
35888
35949
|
} else throw new TypeError("The streams must be an array of type Collection | URL.");
|
|
35889
35950
|
if ("endpoints" in values && values.endpoints != null) if (values.endpoints instanceof Endpoints) this.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = [values.endpoints];
|
|
@@ -35907,7 +35968,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
35907
35968
|
if ("aliases" in values && values.aliases != null) {
|
|
35908
35969
|
if ("alias" in values && values.alias != null) throw new TypeError("Cannot initialize both alias and aliases at the same time.");
|
|
35909
35970
|
if (Array.isArray(values.aliases) && values.aliases.every((v) => v instanceof Application || v instanceof Group || v instanceof Organization || v instanceof Person || v instanceof Service || v instanceof URL)) {
|
|
35910
|
-
this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases;
|
|
35971
|
+
this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases.slice();
|
|
35911
35972
|
for (let i = 0; i < values.aliases.length; i++) this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.add(i);
|
|
35912
35973
|
} else throw new TypeError("The aliases must be an array of type Application | Group | Organization | Person | Service | URL.");
|
|
35913
35974
|
}
|
|
@@ -35918,7 +35979,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
35918
35979
|
if ("services" in values && values.services != null) {
|
|
35919
35980
|
if ("service" in values && values.service != null) throw new TypeError("Cannot initialize both service and services at the same time.");
|
|
35920
35981
|
if (Array.isArray(values.services) && values.services.every((v) => v instanceof DidService || v instanceof URL)) {
|
|
35921
|
-
this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services;
|
|
35982
|
+
this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services.slice();
|
|
35922
35983
|
for (let i = 0; i < values.services.length; i++) this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.add(i);
|
|
35923
35984
|
} else throw new TypeError("The services must be an array of type DidService | URL.");
|
|
35924
35985
|
}
|
|
@@ -35931,7 +35992,8 @@ var Organization = class Organization extends Object$1 {
|
|
|
35931
35992
|
* Clones this instance, optionally updating it with the given values.
|
|
35932
35993
|
* @param values The values to update the clone with.
|
|
35933
35994
|
* @param options The options to use for cloning.
|
|
35934
|
-
* @returns The cloned instance.
|
|
35995
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
35996
|
+
* and URLs are shared with this instance.
|
|
35935
35997
|
*/
|
|
35936
35998
|
clone(values = {}, options = {}) {
|
|
35937
35999
|
if (this._warning != null) {
|
|
@@ -35942,15 +36004,15 @@ var Organization = class Organization extends Object$1 {
|
|
|
35942
36004
|
};
|
|
35943
36005
|
}
|
|
35944
36006
|
const clone = super.clone(values, options);
|
|
35945
|
-
clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername;
|
|
36007
|
+
clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername.slice();
|
|
35946
36008
|
if ("preferredUsername" in values && values.preferredUsername != null) if (typeof values.preferredUsername === "string" || values.preferredUsername instanceof LanguageString$1) clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = [values.preferredUsername];
|
|
35947
36009
|
else throw new TypeError("The preferredUsername must be of type string | LanguageString.");
|
|
35948
36010
|
if ("preferredUsernames" in values && values.preferredUsernames != null) {
|
|
35949
36011
|
if ("preferredUsername" in values && values.preferredUsername != null) throw new TypeError("Cannot update both preferredUsername and preferredUsernames at the same time.");
|
|
35950
|
-
if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every((v) => typeof v === "string" || v instanceof LanguageString$1)) clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames;
|
|
36012
|
+
if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every((v) => typeof v === "string" || v instanceof LanguageString$1)) clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames.slice();
|
|
35951
36013
|
else throw new TypeError("The preferredUsernames must be an array of type string | LanguageString.");
|
|
35952
36014
|
}
|
|
35953
|
-
clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey;
|
|
36015
|
+
clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey.slice();
|
|
35954
36016
|
clone.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey = new Set(this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey);
|
|
35955
36017
|
if ("publicKey" in values && values.publicKey != null) if (values.publicKey instanceof CryptographicKey || values.publicKey instanceof URL) {
|
|
35956
36018
|
clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = [values.publicKey];
|
|
@@ -35959,12 +36021,12 @@ var Organization = class Organization extends Object$1 {
|
|
|
35959
36021
|
if ("publicKeys" in values && values.publicKeys != null) {
|
|
35960
36022
|
if ("publicKey" in values && values.publicKey != null) throw new TypeError("Cannot update both publicKey and publicKeys at the same time.");
|
|
35961
36023
|
if (Array.isArray(values.publicKeys) && values.publicKeys.every((v) => v instanceof CryptographicKey || v instanceof URL)) {
|
|
35962
|
-
clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys;
|
|
36024
|
+
clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys.slice();
|
|
35963
36025
|
clone.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey = /* @__PURE__ */ new Set();
|
|
35964
36026
|
for (let i = 0; i < values.publicKeys.length; i++) clone.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.add(i);
|
|
35965
36027
|
} else throw new TypeError("The publicKeys must be an array of type CryptographicKey | URL.");
|
|
35966
36028
|
}
|
|
35967
|
-
clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod;
|
|
36029
|
+
clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.slice();
|
|
35968
36030
|
clone.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = new Set(this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod);
|
|
35969
36031
|
if ("assertionMethod" in values && values.assertionMethod != null) if (values.assertionMethod instanceof Multikey || values.assertionMethod instanceof URL) {
|
|
35970
36032
|
clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = [values.assertionMethod];
|
|
@@ -35973,85 +36035,85 @@ var Organization = class Organization extends Object$1 {
|
|
|
35973
36035
|
if ("assertionMethods" in values && values.assertionMethods != null) {
|
|
35974
36036
|
if ("assertionMethod" in values && values.assertionMethod != null) throw new TypeError("Cannot update both assertionMethod and assertionMethods at the same time.");
|
|
35975
36037
|
if (Array.isArray(values.assertionMethods) && values.assertionMethods.every((v) => v instanceof Multikey || v instanceof URL)) {
|
|
35976
|
-
clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods;
|
|
36038
|
+
clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods.slice();
|
|
35977
36039
|
clone.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = /* @__PURE__ */ new Set();
|
|
35978
36040
|
for (let i = 0; i < values.assertionMethods.length; i++) clone.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.add(i);
|
|
35979
36041
|
} else throw new TypeError("The assertionMethods must be an array of type Multikey | URL.");
|
|
35980
36042
|
}
|
|
35981
|
-
clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers;
|
|
36043
|
+
clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers.slice();
|
|
35982
36044
|
if ("manuallyApprovesFollowers" in values && values.manuallyApprovesFollowers != null) if (typeof values.manuallyApprovesFollowers === "boolean") clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = [values.manuallyApprovesFollowers];
|
|
35983
36045
|
else throw new TypeError("The manuallyApprovesFollowers must be of type boolean.");
|
|
35984
|
-
clone.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = this.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox;
|
|
36046
|
+
clone.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = this.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox.slice();
|
|
35985
36047
|
clone.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = new Set(this.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox);
|
|
35986
36048
|
if ("inbox" in values && values.inbox != null) if (values.inbox instanceof OrderedCollection || values.inbox instanceof OrderedCollectionPage || values.inbox instanceof URL) {
|
|
35987
36049
|
clone.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = [values.inbox];
|
|
35988
36050
|
clone.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = new Set([0]);
|
|
35989
36051
|
} else throw new TypeError("The inbox must be of type OrderedCollection | OrderedCollectionPage | URL.");
|
|
35990
|
-
clone.#_41QwhqJouoLg3h8dRPKat21brynC_outbox = this.#_41QwhqJouoLg3h8dRPKat21brynC_outbox;
|
|
36052
|
+
clone.#_41QwhqJouoLg3h8dRPKat21brynC_outbox = this.#_41QwhqJouoLg3h8dRPKat21brynC_outbox.slice();
|
|
35991
36053
|
clone.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox = new Set(this.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox);
|
|
35992
36054
|
if ("outbox" in values && values.outbox != null) if (values.outbox instanceof OrderedCollection || values.outbox instanceof OrderedCollectionPage || values.outbox instanceof URL) {
|
|
35993
36055
|
clone.#_41QwhqJouoLg3h8dRPKat21brynC_outbox = [values.outbox];
|
|
35994
36056
|
clone.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox = new Set([0]);
|
|
35995
36057
|
} else throw new TypeError("The outbox must be of type OrderedCollection | OrderedCollectionPage | URL.");
|
|
35996
|
-
clone.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = this.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following;
|
|
36058
|
+
clone.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = this.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.slice();
|
|
35997
36059
|
clone.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = new Set(this.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following);
|
|
35998
36060
|
if ("following" in values && values.following != null) if (values.following instanceof Collection || values.following instanceof URL) {
|
|
35999
36061
|
clone.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = [values.following];
|
|
36000
36062
|
clone.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = new Set([0]);
|
|
36001
36063
|
} else throw new TypeError("The following must be of type Collection | URL.");
|
|
36002
|
-
clone.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = this.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers;
|
|
36064
|
+
clone.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = this.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers.slice();
|
|
36003
36065
|
clone.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = new Set(this.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers);
|
|
36004
36066
|
if ("followers" in values && values.followers != null) if (values.followers instanceof Collection || values.followers instanceof URL) {
|
|
36005
36067
|
clone.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = [values.followers];
|
|
36006
36068
|
clone.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = new Set([0]);
|
|
36007
36069
|
} else throw new TypeError("The followers must be of type Collection | URL.");
|
|
36008
|
-
clone.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = this.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked;
|
|
36070
|
+
clone.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = this.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.slice();
|
|
36009
36071
|
clone.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = new Set(this.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked);
|
|
36010
36072
|
if ("liked" in values && values.liked != null) if (values.liked instanceof Collection || values.liked instanceof URL) {
|
|
36011
36073
|
clone.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = [values.liked];
|
|
36012
36074
|
clone.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = new Set([0]);
|
|
36013
36075
|
} else throw new TypeError("The liked must be of type Collection | URL.");
|
|
36014
|
-
clone.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured = this.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured;
|
|
36076
|
+
clone.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured = this.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured.slice();
|
|
36015
36077
|
clone.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured = new Set(this.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured);
|
|
36016
36078
|
if ("featured" in values && values.featured != null) if (values.featured instanceof Collection || values.featured instanceof URL) {
|
|
36017
36079
|
clone.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured = [values.featured];
|
|
36018
36080
|
clone.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured = new Set([0]);
|
|
36019
36081
|
} else throw new TypeError("The featured must be of type Collection | URL.");
|
|
36020
|
-
clone.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = this.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags;
|
|
36082
|
+
clone.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = this.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.slice();
|
|
36021
36083
|
clone.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = new Set(this.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags);
|
|
36022
36084
|
if ("featuredTags" in values && values.featuredTags != null) if (values.featuredTags instanceof Collection || values.featuredTags instanceof URL) {
|
|
36023
36085
|
clone.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = [values.featuredTags];
|
|
36024
36086
|
clone.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = new Set([0]);
|
|
36025
36087
|
} else throw new TypeError("The featuredTags must be of type Collection | URL.");
|
|
36026
|
-
clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams;
|
|
36088
|
+
clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.slice();
|
|
36027
36089
|
clone.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = new Set(this.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams);
|
|
36028
36090
|
if ("streams" in values && values.streams != null) if (Array.isArray(values.streams) && values.streams.every((v) => v instanceof Collection || v instanceof URL)) {
|
|
36029
|
-
clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams;
|
|
36091
|
+
clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams.slice();
|
|
36030
36092
|
clone.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = /* @__PURE__ */ new Set();
|
|
36031
36093
|
for (let i = 0; i < values.streams.length; i++) clone.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.add(i);
|
|
36032
36094
|
} else throw new TypeError("The streams must be an array of type Collection | URL.");
|
|
36033
|
-
clone.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = this.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints;
|
|
36095
|
+
clone.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = this.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.slice();
|
|
36034
36096
|
if ("endpoints" in values && values.endpoints != null) if (values.endpoints instanceof Endpoints) clone.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = [values.endpoints];
|
|
36035
36097
|
else throw new TypeError("The endpoints must be of type Endpoints.");
|
|
36036
|
-
clone.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = this.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable;
|
|
36098
|
+
clone.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = this.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable.slice();
|
|
36037
36099
|
if ("discoverable" in values && values.discoverable != null) if (typeof values.discoverable === "boolean") clone.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = [values.discoverable];
|
|
36038
36100
|
else throw new TypeError("The discoverable must be of type boolean.");
|
|
36039
|
-
clone.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = this.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended;
|
|
36101
|
+
clone.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = this.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended.slice();
|
|
36040
36102
|
if ("suspended" in values && values.suspended != null) if (typeof values.suspended === "boolean") clone.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = [values.suspended];
|
|
36041
36103
|
else throw new TypeError("The suspended must be of type boolean.");
|
|
36042
|
-
clone.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = this.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial;
|
|
36104
|
+
clone.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = this.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial.slice();
|
|
36043
36105
|
if ("memorial" in values && values.memorial != null) if (typeof values.memorial === "boolean") clone.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = [values.memorial];
|
|
36044
36106
|
else throw new TypeError("The memorial must be of type boolean.");
|
|
36045
|
-
clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable;
|
|
36107
|
+
clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable.slice();
|
|
36046
36108
|
if ("indexable" in values && values.indexable != null) if (typeof values.indexable === "boolean") clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = [values.indexable];
|
|
36047
36109
|
else throw new TypeError("The indexable must be of type boolean.");
|
|
36048
|
-
clone.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo;
|
|
36110
|
+
clone.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.slice();
|
|
36049
36111
|
clone.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = new Set(this.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo);
|
|
36050
36112
|
if ("successor" in values && values.successor != null) if (values.successor instanceof Application || values.successor instanceof Group || values.successor instanceof Organization || values.successor instanceof Person || values.successor instanceof Service || values.successor instanceof URL) {
|
|
36051
36113
|
clone.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = [values.successor];
|
|
36052
36114
|
clone.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = new Set([0]);
|
|
36053
36115
|
} else throw new TypeError("The successor must be of type Application | Group | Organization | Person | Service | URL.");
|
|
36054
|
-
clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs;
|
|
36116
|
+
clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.slice();
|
|
36055
36117
|
clone.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = new Set(this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs);
|
|
36056
36118
|
if ("alias" in values && values.alias != null) if (values.alias instanceof Application || values.alias instanceof Group || values.alias instanceof Organization || values.alias instanceof Person || values.alias instanceof Service || values.alias instanceof URL) {
|
|
36057
36119
|
clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = [values.alias];
|
|
@@ -36060,12 +36122,12 @@ var Organization = class Organization extends Object$1 {
|
|
|
36060
36122
|
if ("aliases" in values && values.aliases != null) {
|
|
36061
36123
|
if ("alias" in values && values.alias != null) throw new TypeError("Cannot update both alias and aliases at the same time.");
|
|
36062
36124
|
if (Array.isArray(values.aliases) && values.aliases.every((v) => v instanceof Application || v instanceof Group || v instanceof Organization || v instanceof Person || v instanceof Service || v instanceof URL)) {
|
|
36063
|
-
clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases;
|
|
36125
|
+
clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases.slice();
|
|
36064
36126
|
clone.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = /* @__PURE__ */ new Set();
|
|
36065
36127
|
for (let i = 0; i < values.aliases.length; i++) clone.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.add(i);
|
|
36066
36128
|
} else throw new TypeError("The aliases must be an array of type Application | Group | Organization | Person | Service | URL.");
|
|
36067
36129
|
}
|
|
36068
|
-
clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service;
|
|
36130
|
+
clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.slice();
|
|
36069
36131
|
clone.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = new Set(this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service);
|
|
36070
36132
|
if ("service" in values && values.service != null) if (values.service instanceof DidService || values.service instanceof URL) {
|
|
36071
36133
|
clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = [values.service];
|
|
@@ -36074,15 +36136,15 @@ var Organization = class Organization extends Object$1 {
|
|
|
36074
36136
|
if ("services" in values && values.services != null) {
|
|
36075
36137
|
if ("service" in values && values.service != null) throw new TypeError("Cannot update both service and services at the same time.");
|
|
36076
36138
|
if (Array.isArray(values.services) && values.services.every((v) => v instanceof DidService || v instanceof URL)) {
|
|
36077
|
-
clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services;
|
|
36139
|
+
clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services.slice();
|
|
36078
36140
|
clone.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = /* @__PURE__ */ new Set();
|
|
36079
36141
|
for (let i = 0; i < values.services.length; i++) clone.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.add(i);
|
|
36080
36142
|
} else throw new TypeError("The services must be an array of type DidService | URL.");
|
|
36081
36143
|
}
|
|
36082
|
-
clone.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = this.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage;
|
|
36144
|
+
clone.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = this.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage.slice();
|
|
36083
36145
|
if ("followedMessage" in values && values.followedMessage != null) if (typeof values.followedMessage === "string") clone.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = [values.followedMessage];
|
|
36084
36146
|
else throw new TypeError("The followedMessage must be of type string.");
|
|
36085
|
-
clone.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat;
|
|
36147
|
+
clone.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat.slice();
|
|
36086
36148
|
if ("cat" in values && values.cat != null) if (typeof values.cat === "boolean") clone.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = [values.cat];
|
|
36087
36149
|
else throw new TypeError("The cat must be of type boolean.");
|
|
36088
36150
|
return clone;
|
|
@@ -39411,7 +39473,8 @@ var Page = class Page extends Document {
|
|
|
39411
39473
|
* Clones this instance, optionally updating it with the given values.
|
|
39412
39474
|
* @param values The values to update the clone with.
|
|
39413
39475
|
* @param options The options to use for cloning.
|
|
39414
|
-
* @returns The cloned instance.
|
|
39476
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
39477
|
+
* and URLs are shared with this instance.
|
|
39415
39478
|
*/
|
|
39416
39479
|
clone(values = {}, options = {}) {
|
|
39417
39480
|
if (this._warning != null) {
|
|
@@ -39610,7 +39673,7 @@ var Person = class Person extends Object$1 {
|
|
|
39610
39673
|
else throw new TypeError("The preferredUsername must be of type string | LanguageString.");
|
|
39611
39674
|
if ("preferredUsernames" in values && values.preferredUsernames != null) {
|
|
39612
39675
|
if ("preferredUsername" in values && values.preferredUsername != null) throw new TypeError("Cannot initialize both preferredUsername and preferredUsernames at the same time.");
|
|
39613
|
-
if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every((v) => typeof v === "string" || v instanceof LanguageString$1)) this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames;
|
|
39676
|
+
if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every((v) => typeof v === "string" || v instanceof LanguageString$1)) this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames.slice();
|
|
39614
39677
|
else throw new TypeError("The preferredUsernames must be an array of type string | LanguageString.");
|
|
39615
39678
|
}
|
|
39616
39679
|
if ("publicKey" in values && values.publicKey != null) if (values.publicKey instanceof CryptographicKey || values.publicKey instanceof URL) {
|
|
@@ -39620,7 +39683,7 @@ var Person = class Person extends Object$1 {
|
|
|
39620
39683
|
if ("publicKeys" in values && values.publicKeys != null) {
|
|
39621
39684
|
if ("publicKey" in values && values.publicKey != null) throw new TypeError("Cannot initialize both publicKey and publicKeys at the same time.");
|
|
39622
39685
|
if (Array.isArray(values.publicKeys) && values.publicKeys.every((v) => v instanceof CryptographicKey || v instanceof URL)) {
|
|
39623
|
-
this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys;
|
|
39686
|
+
this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys.slice();
|
|
39624
39687
|
for (let i = 0; i < values.publicKeys.length; i++) this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.add(i);
|
|
39625
39688
|
} else throw new TypeError("The publicKeys must be an array of type CryptographicKey | URL.");
|
|
39626
39689
|
}
|
|
@@ -39631,7 +39694,7 @@ var Person = class Person extends Object$1 {
|
|
|
39631
39694
|
if ("assertionMethods" in values && values.assertionMethods != null) {
|
|
39632
39695
|
if ("assertionMethod" in values && values.assertionMethod != null) throw new TypeError("Cannot initialize both assertionMethod and assertionMethods at the same time.");
|
|
39633
39696
|
if (Array.isArray(values.assertionMethods) && values.assertionMethods.every((v) => v instanceof Multikey || v instanceof URL)) {
|
|
39634
|
-
this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods;
|
|
39697
|
+
this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods.slice();
|
|
39635
39698
|
for (let i = 0; i < values.assertionMethods.length; i++) this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.add(i);
|
|
39636
39699
|
} else throw new TypeError("The assertionMethods must be an array of type Multikey | URL.");
|
|
39637
39700
|
}
|
|
@@ -39666,7 +39729,7 @@ var Person = class Person extends Object$1 {
|
|
|
39666
39729
|
this.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.add(0);
|
|
39667
39730
|
} else throw new TypeError("The featuredTags must be of type Collection | URL.");
|
|
39668
39731
|
if ("streams" in values && values.streams != null) if (Array.isArray(values.streams) && values.streams.every((v) => v instanceof Collection || v instanceof URL)) {
|
|
39669
|
-
this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams;
|
|
39732
|
+
this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams.slice();
|
|
39670
39733
|
for (let i = 0; i < values.streams.length; i++) this.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.add(i);
|
|
39671
39734
|
} else throw new TypeError("The streams must be an array of type Collection | URL.");
|
|
39672
39735
|
if ("endpoints" in values && values.endpoints != null) if (values.endpoints instanceof Endpoints) this.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = [values.endpoints];
|
|
@@ -39690,7 +39753,7 @@ var Person = class Person extends Object$1 {
|
|
|
39690
39753
|
if ("aliases" in values && values.aliases != null) {
|
|
39691
39754
|
if ("alias" in values && values.alias != null) throw new TypeError("Cannot initialize both alias and aliases at the same time.");
|
|
39692
39755
|
if (Array.isArray(values.aliases) && values.aliases.every((v) => v instanceof Application || v instanceof Group || v instanceof Organization || v instanceof Person || v instanceof Service || v instanceof URL)) {
|
|
39693
|
-
this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases;
|
|
39756
|
+
this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases.slice();
|
|
39694
39757
|
for (let i = 0; i < values.aliases.length; i++) this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.add(i);
|
|
39695
39758
|
} else throw new TypeError("The aliases must be an array of type Application | Group | Organization | Person | Service | URL.");
|
|
39696
39759
|
}
|
|
@@ -39701,7 +39764,7 @@ var Person = class Person extends Object$1 {
|
|
|
39701
39764
|
if ("services" in values && values.services != null) {
|
|
39702
39765
|
if ("service" in values && values.service != null) throw new TypeError("Cannot initialize both service and services at the same time.");
|
|
39703
39766
|
if (Array.isArray(values.services) && values.services.every((v) => v instanceof DidService || v instanceof URL)) {
|
|
39704
|
-
this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services;
|
|
39767
|
+
this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services.slice();
|
|
39705
39768
|
for (let i = 0; i < values.services.length; i++) this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.add(i);
|
|
39706
39769
|
} else throw new TypeError("The services must be an array of type DidService | URL.");
|
|
39707
39770
|
}
|
|
@@ -39714,7 +39777,8 @@ var Person = class Person extends Object$1 {
|
|
|
39714
39777
|
* Clones this instance, optionally updating it with the given values.
|
|
39715
39778
|
* @param values The values to update the clone with.
|
|
39716
39779
|
* @param options The options to use for cloning.
|
|
39717
|
-
* @returns The cloned instance.
|
|
39780
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
39781
|
+
* and URLs are shared with this instance.
|
|
39718
39782
|
*/
|
|
39719
39783
|
clone(values = {}, options = {}) {
|
|
39720
39784
|
if (this._warning != null) {
|
|
@@ -39725,15 +39789,15 @@ var Person = class Person extends Object$1 {
|
|
|
39725
39789
|
};
|
|
39726
39790
|
}
|
|
39727
39791
|
const clone = super.clone(values, options);
|
|
39728
|
-
clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername;
|
|
39792
|
+
clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername.slice();
|
|
39729
39793
|
if ("preferredUsername" in values && values.preferredUsername != null) if (typeof values.preferredUsername === "string" || values.preferredUsername instanceof LanguageString$1) clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = [values.preferredUsername];
|
|
39730
39794
|
else throw new TypeError("The preferredUsername must be of type string | LanguageString.");
|
|
39731
39795
|
if ("preferredUsernames" in values && values.preferredUsernames != null) {
|
|
39732
39796
|
if ("preferredUsername" in values && values.preferredUsername != null) throw new TypeError("Cannot update both preferredUsername and preferredUsernames at the same time.");
|
|
39733
|
-
if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every((v) => typeof v === "string" || v instanceof LanguageString$1)) clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames;
|
|
39797
|
+
if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every((v) => typeof v === "string" || v instanceof LanguageString$1)) clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames.slice();
|
|
39734
39798
|
else throw new TypeError("The preferredUsernames must be an array of type string | LanguageString.");
|
|
39735
39799
|
}
|
|
39736
|
-
clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey;
|
|
39800
|
+
clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey.slice();
|
|
39737
39801
|
clone.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey = new Set(this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey);
|
|
39738
39802
|
if ("publicKey" in values && values.publicKey != null) if (values.publicKey instanceof CryptographicKey || values.publicKey instanceof URL) {
|
|
39739
39803
|
clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = [values.publicKey];
|
|
@@ -39742,12 +39806,12 @@ var Person = class Person extends Object$1 {
|
|
|
39742
39806
|
if ("publicKeys" in values && values.publicKeys != null) {
|
|
39743
39807
|
if ("publicKey" in values && values.publicKey != null) throw new TypeError("Cannot update both publicKey and publicKeys at the same time.");
|
|
39744
39808
|
if (Array.isArray(values.publicKeys) && values.publicKeys.every((v) => v instanceof CryptographicKey || v instanceof URL)) {
|
|
39745
|
-
clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys;
|
|
39809
|
+
clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys.slice();
|
|
39746
39810
|
clone.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey = /* @__PURE__ */ new Set();
|
|
39747
39811
|
for (let i = 0; i < values.publicKeys.length; i++) clone.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.add(i);
|
|
39748
39812
|
} else throw new TypeError("The publicKeys must be an array of type CryptographicKey | URL.");
|
|
39749
39813
|
}
|
|
39750
|
-
clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod;
|
|
39814
|
+
clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.slice();
|
|
39751
39815
|
clone.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = new Set(this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod);
|
|
39752
39816
|
if ("assertionMethod" in values && values.assertionMethod != null) if (values.assertionMethod instanceof Multikey || values.assertionMethod instanceof URL) {
|
|
39753
39817
|
clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = [values.assertionMethod];
|
|
@@ -39756,85 +39820,85 @@ var Person = class Person extends Object$1 {
|
|
|
39756
39820
|
if ("assertionMethods" in values && values.assertionMethods != null) {
|
|
39757
39821
|
if ("assertionMethod" in values && values.assertionMethod != null) throw new TypeError("Cannot update both assertionMethod and assertionMethods at the same time.");
|
|
39758
39822
|
if (Array.isArray(values.assertionMethods) && values.assertionMethods.every((v) => v instanceof Multikey || v instanceof URL)) {
|
|
39759
|
-
clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods;
|
|
39823
|
+
clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods.slice();
|
|
39760
39824
|
clone.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = /* @__PURE__ */ new Set();
|
|
39761
39825
|
for (let i = 0; i < values.assertionMethods.length; i++) clone.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.add(i);
|
|
39762
39826
|
} else throw new TypeError("The assertionMethods must be an array of type Multikey | URL.");
|
|
39763
39827
|
}
|
|
39764
|
-
clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers;
|
|
39828
|
+
clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers.slice();
|
|
39765
39829
|
if ("manuallyApprovesFollowers" in values && values.manuallyApprovesFollowers != null) if (typeof values.manuallyApprovesFollowers === "boolean") clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = [values.manuallyApprovesFollowers];
|
|
39766
39830
|
else throw new TypeError("The manuallyApprovesFollowers must be of type boolean.");
|
|
39767
|
-
clone.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = this.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox;
|
|
39831
|
+
clone.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = this.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox.slice();
|
|
39768
39832
|
clone.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = new Set(this.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox);
|
|
39769
39833
|
if ("inbox" in values && values.inbox != null) if (values.inbox instanceof OrderedCollection || values.inbox instanceof OrderedCollectionPage || values.inbox instanceof URL) {
|
|
39770
39834
|
clone.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = [values.inbox];
|
|
39771
39835
|
clone.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = new Set([0]);
|
|
39772
39836
|
} else throw new TypeError("The inbox must be of type OrderedCollection | OrderedCollectionPage | URL.");
|
|
39773
|
-
clone.#_41QwhqJouoLg3h8dRPKat21brynC_outbox = this.#_41QwhqJouoLg3h8dRPKat21brynC_outbox;
|
|
39837
|
+
clone.#_41QwhqJouoLg3h8dRPKat21brynC_outbox = this.#_41QwhqJouoLg3h8dRPKat21brynC_outbox.slice();
|
|
39774
39838
|
clone.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox = new Set(this.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox);
|
|
39775
39839
|
if ("outbox" in values && values.outbox != null) if (values.outbox instanceof OrderedCollection || values.outbox instanceof OrderedCollectionPage || values.outbox instanceof URL) {
|
|
39776
39840
|
clone.#_41QwhqJouoLg3h8dRPKat21brynC_outbox = [values.outbox];
|
|
39777
39841
|
clone.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox = new Set([0]);
|
|
39778
39842
|
} else throw new TypeError("The outbox must be of type OrderedCollection | OrderedCollectionPage | URL.");
|
|
39779
|
-
clone.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = this.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following;
|
|
39843
|
+
clone.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = this.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.slice();
|
|
39780
39844
|
clone.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = new Set(this.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following);
|
|
39781
39845
|
if ("following" in values && values.following != null) if (values.following instanceof Collection || values.following instanceof URL) {
|
|
39782
39846
|
clone.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = [values.following];
|
|
39783
39847
|
clone.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = new Set([0]);
|
|
39784
39848
|
} else throw new TypeError("The following must be of type Collection | URL.");
|
|
39785
|
-
clone.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = this.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers;
|
|
39849
|
+
clone.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = this.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers.slice();
|
|
39786
39850
|
clone.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = new Set(this.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers);
|
|
39787
39851
|
if ("followers" in values && values.followers != null) if (values.followers instanceof Collection || values.followers instanceof URL) {
|
|
39788
39852
|
clone.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = [values.followers];
|
|
39789
39853
|
clone.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = new Set([0]);
|
|
39790
39854
|
} else throw new TypeError("The followers must be of type Collection | URL.");
|
|
39791
|
-
clone.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = this.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked;
|
|
39855
|
+
clone.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = this.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.slice();
|
|
39792
39856
|
clone.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = new Set(this.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked);
|
|
39793
39857
|
if ("liked" in values && values.liked != null) if (values.liked instanceof Collection || values.liked instanceof URL) {
|
|
39794
39858
|
clone.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = [values.liked];
|
|
39795
39859
|
clone.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = new Set([0]);
|
|
39796
39860
|
} else throw new TypeError("The liked must be of type Collection | URL.");
|
|
39797
|
-
clone.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured = this.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured;
|
|
39861
|
+
clone.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured = this.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured.slice();
|
|
39798
39862
|
clone.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured = new Set(this.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured);
|
|
39799
39863
|
if ("featured" in values && values.featured != null) if (values.featured instanceof Collection || values.featured instanceof URL) {
|
|
39800
39864
|
clone.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured = [values.featured];
|
|
39801
39865
|
clone.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured = new Set([0]);
|
|
39802
39866
|
} else throw new TypeError("The featured must be of type Collection | URL.");
|
|
39803
|
-
clone.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = this.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags;
|
|
39867
|
+
clone.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = this.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.slice();
|
|
39804
39868
|
clone.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = new Set(this.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags);
|
|
39805
39869
|
if ("featuredTags" in values && values.featuredTags != null) if (values.featuredTags instanceof Collection || values.featuredTags instanceof URL) {
|
|
39806
39870
|
clone.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = [values.featuredTags];
|
|
39807
39871
|
clone.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = new Set([0]);
|
|
39808
39872
|
} else throw new TypeError("The featuredTags must be of type Collection | URL.");
|
|
39809
|
-
clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams;
|
|
39873
|
+
clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.slice();
|
|
39810
39874
|
clone.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = new Set(this.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams);
|
|
39811
39875
|
if ("streams" in values && values.streams != null) if (Array.isArray(values.streams) && values.streams.every((v) => v instanceof Collection || v instanceof URL)) {
|
|
39812
|
-
clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams;
|
|
39876
|
+
clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams.slice();
|
|
39813
39877
|
clone.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = /* @__PURE__ */ new Set();
|
|
39814
39878
|
for (let i = 0; i < values.streams.length; i++) clone.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.add(i);
|
|
39815
39879
|
} else throw new TypeError("The streams must be an array of type Collection | URL.");
|
|
39816
|
-
clone.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = this.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints;
|
|
39880
|
+
clone.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = this.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.slice();
|
|
39817
39881
|
if ("endpoints" in values && values.endpoints != null) if (values.endpoints instanceof Endpoints) clone.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = [values.endpoints];
|
|
39818
39882
|
else throw new TypeError("The endpoints must be of type Endpoints.");
|
|
39819
|
-
clone.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = this.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable;
|
|
39883
|
+
clone.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = this.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable.slice();
|
|
39820
39884
|
if ("discoverable" in values && values.discoverable != null) if (typeof values.discoverable === "boolean") clone.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = [values.discoverable];
|
|
39821
39885
|
else throw new TypeError("The discoverable must be of type boolean.");
|
|
39822
|
-
clone.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = this.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended;
|
|
39886
|
+
clone.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = this.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended.slice();
|
|
39823
39887
|
if ("suspended" in values && values.suspended != null) if (typeof values.suspended === "boolean") clone.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = [values.suspended];
|
|
39824
39888
|
else throw new TypeError("The suspended must be of type boolean.");
|
|
39825
|
-
clone.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = this.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial;
|
|
39889
|
+
clone.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = this.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial.slice();
|
|
39826
39890
|
if ("memorial" in values && values.memorial != null) if (typeof values.memorial === "boolean") clone.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = [values.memorial];
|
|
39827
39891
|
else throw new TypeError("The memorial must be of type boolean.");
|
|
39828
|
-
clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable;
|
|
39892
|
+
clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable.slice();
|
|
39829
39893
|
if ("indexable" in values && values.indexable != null) if (typeof values.indexable === "boolean") clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = [values.indexable];
|
|
39830
39894
|
else throw new TypeError("The indexable must be of type boolean.");
|
|
39831
|
-
clone.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo;
|
|
39895
|
+
clone.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.slice();
|
|
39832
39896
|
clone.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = new Set(this.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo);
|
|
39833
39897
|
if ("successor" in values && values.successor != null) if (values.successor instanceof Application || values.successor instanceof Group || values.successor instanceof Organization || values.successor instanceof Person || values.successor instanceof Service || values.successor instanceof URL) {
|
|
39834
39898
|
clone.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = [values.successor];
|
|
39835
39899
|
clone.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = new Set([0]);
|
|
39836
39900
|
} else throw new TypeError("The successor must be of type Application | Group | Organization | Person | Service | URL.");
|
|
39837
|
-
clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs;
|
|
39901
|
+
clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.slice();
|
|
39838
39902
|
clone.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = new Set(this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs);
|
|
39839
39903
|
if ("alias" in values && values.alias != null) if (values.alias instanceof Application || values.alias instanceof Group || values.alias instanceof Organization || values.alias instanceof Person || values.alias instanceof Service || values.alias instanceof URL) {
|
|
39840
39904
|
clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = [values.alias];
|
|
@@ -39843,12 +39907,12 @@ var Person = class Person extends Object$1 {
|
|
|
39843
39907
|
if ("aliases" in values && values.aliases != null) {
|
|
39844
39908
|
if ("alias" in values && values.alias != null) throw new TypeError("Cannot update both alias and aliases at the same time.");
|
|
39845
39909
|
if (Array.isArray(values.aliases) && values.aliases.every((v) => v instanceof Application || v instanceof Group || v instanceof Organization || v instanceof Person || v instanceof Service || v instanceof URL)) {
|
|
39846
|
-
clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases;
|
|
39910
|
+
clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases.slice();
|
|
39847
39911
|
clone.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = /* @__PURE__ */ new Set();
|
|
39848
39912
|
for (let i = 0; i < values.aliases.length; i++) clone.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.add(i);
|
|
39849
39913
|
} else throw new TypeError("The aliases must be an array of type Application | Group | Organization | Person | Service | URL.");
|
|
39850
39914
|
}
|
|
39851
|
-
clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service;
|
|
39915
|
+
clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.slice();
|
|
39852
39916
|
clone.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = new Set(this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service);
|
|
39853
39917
|
if ("service" in values && values.service != null) if (values.service instanceof DidService || values.service instanceof URL) {
|
|
39854
39918
|
clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = [values.service];
|
|
@@ -39857,15 +39921,15 @@ var Person = class Person extends Object$1 {
|
|
|
39857
39921
|
if ("services" in values && values.services != null) {
|
|
39858
39922
|
if ("service" in values && values.service != null) throw new TypeError("Cannot update both service and services at the same time.");
|
|
39859
39923
|
if (Array.isArray(values.services) && values.services.every((v) => v instanceof DidService || v instanceof URL)) {
|
|
39860
|
-
clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services;
|
|
39924
|
+
clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services.slice();
|
|
39861
39925
|
clone.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = /* @__PURE__ */ new Set();
|
|
39862
39926
|
for (let i = 0; i < values.services.length; i++) clone.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.add(i);
|
|
39863
39927
|
} else throw new TypeError("The services must be an array of type DidService | URL.");
|
|
39864
39928
|
}
|
|
39865
|
-
clone.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = this.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage;
|
|
39929
|
+
clone.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = this.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage.slice();
|
|
39866
39930
|
if ("followedMessage" in values && values.followedMessage != null) if (typeof values.followedMessage === "string") clone.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = [values.followedMessage];
|
|
39867
39931
|
else throw new TypeError("The followedMessage must be of type string.");
|
|
39868
|
-
clone.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat;
|
|
39932
|
+
clone.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat.slice();
|
|
39869
39933
|
if ("cat" in values && values.cat != null) if (typeof values.cat === "boolean") clone.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = [values.cat];
|
|
39870
39934
|
else throw new TypeError("The cat must be of type boolean.");
|
|
39871
39935
|
return clone;
|
|
@@ -43214,7 +43278,8 @@ var Place = class Place extends Object$1 {
|
|
|
43214
43278
|
* Clones this instance, optionally updating it with the given values.
|
|
43215
43279
|
* @param values The values to update the clone with.
|
|
43216
43280
|
* @param options The options to use for cloning.
|
|
43217
|
-
* @returns The cloned instance.
|
|
43281
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
43282
|
+
* and URLs are shared with this instance.
|
|
43218
43283
|
*/
|
|
43219
43284
|
clone(values = {}, options = {}) {
|
|
43220
43285
|
if (this._warning != null) {
|
|
@@ -43225,22 +43290,22 @@ var Place = class Place extends Object$1 {
|
|
|
43225
43290
|
};
|
|
43226
43291
|
}
|
|
43227
43292
|
const clone = super.clone(values, options);
|
|
43228
|
-
clone.#_3UCsHnBHvDAXJnBuzw3zw1VVs3Ne_accuracy = this.#_3UCsHnBHvDAXJnBuzw3zw1VVs3Ne_accuracy;
|
|
43293
|
+
clone.#_3UCsHnBHvDAXJnBuzw3zw1VVs3Ne_accuracy = this.#_3UCsHnBHvDAXJnBuzw3zw1VVs3Ne_accuracy.slice();
|
|
43229
43294
|
if ("accuracy" in values && values.accuracy != null) if (typeof values.accuracy === "number" && !Number.isNaN(values.accuracy)) clone.#_3UCsHnBHvDAXJnBuzw3zw1VVs3Ne_accuracy = [values.accuracy];
|
|
43230
43295
|
else throw new TypeError("The accuracy must be of type number.");
|
|
43231
|
-
clone.#_3Q6KDcFQUJRRaBux1BL2yp5QWiBi_altitude = this.#_3Q6KDcFQUJRRaBux1BL2yp5QWiBi_altitude;
|
|
43296
|
+
clone.#_3Q6KDcFQUJRRaBux1BL2yp5QWiBi_altitude = this.#_3Q6KDcFQUJRRaBux1BL2yp5QWiBi_altitude.slice();
|
|
43232
43297
|
if ("altitude" in values && values.altitude != null) if (typeof values.altitude === "number" && !Number.isNaN(values.altitude)) clone.#_3Q6KDcFQUJRRaBux1BL2yp5QWiBi_altitude = [values.altitude];
|
|
43233
43298
|
else throw new TypeError("The altitude must be of type number.");
|
|
43234
|
-
clone.#_3g85RoKRnaNjP7DFyLSvsWDg7HGM_latitude = this.#_3g85RoKRnaNjP7DFyLSvsWDg7HGM_latitude;
|
|
43299
|
+
clone.#_3g85RoKRnaNjP7DFyLSvsWDg7HGM_latitude = this.#_3g85RoKRnaNjP7DFyLSvsWDg7HGM_latitude.slice();
|
|
43235
43300
|
if ("latitude" in values && values.latitude != null) if (typeof values.latitude === "number" && !Number.isNaN(values.latitude)) clone.#_3g85RoKRnaNjP7DFyLSvsWDg7HGM_latitude = [values.latitude];
|
|
43236
43301
|
else throw new TypeError("The latitude must be of type number.");
|
|
43237
|
-
clone.#_B2GEYdS9yBAF3ho1pm1rcRg7cSf_longitude = this.#_B2GEYdS9yBAF3ho1pm1rcRg7cSf_longitude;
|
|
43302
|
+
clone.#_B2GEYdS9yBAF3ho1pm1rcRg7cSf_longitude = this.#_B2GEYdS9yBAF3ho1pm1rcRg7cSf_longitude.slice();
|
|
43238
43303
|
if ("longitude" in values && values.longitude != null) if (typeof values.longitude === "number" && !Number.isNaN(values.longitude)) clone.#_B2GEYdS9yBAF3ho1pm1rcRg7cSf_longitude = [values.longitude];
|
|
43239
43304
|
else throw new TypeError("The longitude must be of type number.");
|
|
43240
|
-
clone.#_3ga86BKHUtRkGx5PHBjRiUXXzwnw_radius = this.#_3ga86BKHUtRkGx5PHBjRiUXXzwnw_radius;
|
|
43305
|
+
clone.#_3ga86BKHUtRkGx5PHBjRiUXXzwnw_radius = this.#_3ga86BKHUtRkGx5PHBjRiUXXzwnw_radius.slice();
|
|
43241
43306
|
if ("radius" in values && values.radius != null) if (typeof values.radius === "number" && !Number.isNaN(values.radius)) clone.#_3ga86BKHUtRkGx5PHBjRiUXXzwnw_radius = [values.radius];
|
|
43242
43307
|
else throw new TypeError("The radius must be of type number.");
|
|
43243
|
-
clone.#_oKrwxU4V8wiKhMW1QEYQibcJh8c_units = this.#_oKrwxU4V8wiKhMW1QEYQibcJh8c_units;
|
|
43308
|
+
clone.#_oKrwxU4V8wiKhMW1QEYQibcJh8c_units = this.#_oKrwxU4V8wiKhMW1QEYQibcJh8c_units.slice();
|
|
43244
43309
|
if ("units" in values && values.units != null) if (values.units == "cm" || values.units == "feet" || values.units == "inches" || values.units == "km" || values.units == "m" || values.units == "miles" || values.units instanceof URL) clone.#_oKrwxU4V8wiKhMW1QEYQibcJh8c_units = [values.units];
|
|
43245
43310
|
else throw new TypeError("The units must be of type \"cm\" | \"feet\" | \"inches\" | \"km\" | \"m\" | \"miles\" | URL.");
|
|
43246
43311
|
return clone;
|
|
@@ -43655,7 +43720,8 @@ var Profile = class Profile extends Object$1 {
|
|
|
43655
43720
|
* Clones this instance, optionally updating it with the given values.
|
|
43656
43721
|
* @param values The values to update the clone with.
|
|
43657
43722
|
* @param options The options to use for cloning.
|
|
43658
|
-
* @returns The cloned instance.
|
|
43723
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
43724
|
+
* and URLs are shared with this instance.
|
|
43659
43725
|
*/
|
|
43660
43726
|
clone(values = {}, options = {}) {
|
|
43661
43727
|
if (this._warning != null) {
|
|
@@ -43666,7 +43732,7 @@ var Profile = class Profile extends Object$1 {
|
|
|
43666
43732
|
};
|
|
43667
43733
|
}
|
|
43668
43734
|
const clone = super.clone(values, options);
|
|
43669
|
-
clone.#_3CLQ1PLSXrhSQbTGGHuxNyaEFKM1_describes = this.#_3CLQ1PLSXrhSQbTGGHuxNyaEFKM1_describes;
|
|
43735
|
+
clone.#_3CLQ1PLSXrhSQbTGGHuxNyaEFKM1_describes = this.#_3CLQ1PLSXrhSQbTGGHuxNyaEFKM1_describes.slice();
|
|
43670
43736
|
clone.#_trust_3CLQ1PLSXrhSQbTGGHuxNyaEFKM1_describes = new Set(this.#_trust_3CLQ1PLSXrhSQbTGGHuxNyaEFKM1_describes);
|
|
43671
43737
|
if ("describes" in values && values.describes != null) if (values.describes instanceof Object$1 || values.describes instanceof URL) {
|
|
43672
43738
|
clone.#_3CLQ1PLSXrhSQbTGGHuxNyaEFKM1_describes = [values.describes];
|
|
@@ -44018,11 +44084,11 @@ var Question = class Question extends IntransitiveActivity {
|
|
|
44018
44084
|
constructor(values, options = {}) {
|
|
44019
44085
|
super(values, options);
|
|
44020
44086
|
if ("exclusiveOptions" in values && values.exclusiveOptions != null) if (Array.isArray(values.exclusiveOptions) && values.exclusiveOptions.every((v) => v instanceof Object$1 || v instanceof URL)) {
|
|
44021
|
-
this.#_2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf = values.exclusiveOptions;
|
|
44087
|
+
this.#_2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf = values.exclusiveOptions.slice();
|
|
44022
44088
|
for (let i = 0; i < values.exclusiveOptions.length; i++) this.#_trust_2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf.add(i);
|
|
44023
44089
|
} else throw new TypeError("The exclusiveOptions must be an array of type Object | URL.");
|
|
44024
44090
|
if ("inclusiveOptions" in values && values.inclusiveOptions != null) if (Array.isArray(values.inclusiveOptions) && values.inclusiveOptions.every((v) => v instanceof Object$1 || v instanceof URL)) {
|
|
44025
|
-
this.#_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf = values.inclusiveOptions;
|
|
44091
|
+
this.#_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf = values.inclusiveOptions.slice();
|
|
44026
44092
|
for (let i = 0; i < values.inclusiveOptions.length; i++) this.#_trust_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf.add(i);
|
|
44027
44093
|
} else throw new TypeError("The inclusiveOptions must be an array of type Object | URL.");
|
|
44028
44094
|
if ("closed" in values && values.closed != null) if (isTemporalInstant(values.closed) || typeof values.closed === "boolean") this.#_3KronwL8DiiKBRcJFKQPiEHm8xb6_closed = [values.closed];
|
|
@@ -44044,7 +44110,8 @@ var Question = class Question extends IntransitiveActivity {
|
|
|
44044
44110
|
* Clones this instance, optionally updating it with the given values.
|
|
44045
44111
|
* @param values The values to update the clone with.
|
|
44046
44112
|
* @param options The options to use for cloning.
|
|
44047
|
-
* @returns The cloned instance.
|
|
44113
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
44114
|
+
* and URLs are shared with this instance.
|
|
44048
44115
|
*/
|
|
44049
44116
|
clone(values = {}, options = {}) {
|
|
44050
44117
|
if (this._warning != null) {
|
|
@@ -44055,36 +44122,36 @@ var Question = class Question extends IntransitiveActivity {
|
|
|
44055
44122
|
};
|
|
44056
44123
|
}
|
|
44057
44124
|
const clone = super.clone(values, options);
|
|
44058
|
-
clone.#_2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf = this.#_2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf;
|
|
44125
|
+
clone.#_2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf = this.#_2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf.slice();
|
|
44059
44126
|
clone.#_trust_2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf = new Set(this.#_trust_2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf);
|
|
44060
44127
|
if ("exclusiveOptions" in values && values.exclusiveOptions != null) if (Array.isArray(values.exclusiveOptions) && values.exclusiveOptions.every((v) => v instanceof Object$1 || v instanceof URL)) {
|
|
44061
|
-
clone.#_2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf = values.exclusiveOptions;
|
|
44128
|
+
clone.#_2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf = values.exclusiveOptions.slice();
|
|
44062
44129
|
clone.#_trust_2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf = /* @__PURE__ */ new Set();
|
|
44063
44130
|
for (let i = 0; i < values.exclusiveOptions.length; i++) clone.#_trust_2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf.add(i);
|
|
44064
44131
|
} else throw new TypeError("The exclusiveOptions must be an array of type Object | URL.");
|
|
44065
|
-
clone.#_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf = this.#_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf;
|
|
44132
|
+
clone.#_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf = this.#_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf.slice();
|
|
44066
44133
|
clone.#_trust_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf = new Set(this.#_trust_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf);
|
|
44067
44134
|
if ("inclusiveOptions" in values && values.inclusiveOptions != null) if (Array.isArray(values.inclusiveOptions) && values.inclusiveOptions.every((v) => v instanceof Object$1 || v instanceof URL)) {
|
|
44068
|
-
clone.#_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf = values.inclusiveOptions;
|
|
44135
|
+
clone.#_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf = values.inclusiveOptions.slice();
|
|
44069
44136
|
clone.#_trust_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf = /* @__PURE__ */ new Set();
|
|
44070
44137
|
for (let i = 0; i < values.inclusiveOptions.length; i++) clone.#_trust_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf.add(i);
|
|
44071
44138
|
} else throw new TypeError("The inclusiveOptions must be an array of type Object | URL.");
|
|
44072
|
-
clone.#_3KronwL8DiiKBRcJFKQPiEHm8xb6_closed = this.#_3KronwL8DiiKBRcJFKQPiEHm8xb6_closed;
|
|
44139
|
+
clone.#_3KronwL8DiiKBRcJFKQPiEHm8xb6_closed = this.#_3KronwL8DiiKBRcJFKQPiEHm8xb6_closed.slice();
|
|
44073
44140
|
if ("closed" in values && values.closed != null) if (isTemporalInstant(values.closed) || typeof values.closed === "boolean") clone.#_3KronwL8DiiKBRcJFKQPiEHm8xb6_closed = [values.closed];
|
|
44074
44141
|
else throw new TypeError("The closed must be of type Temporal.Instant | boolean.");
|
|
44075
|
-
clone.#_3H4RdST7dxfmghccvE3rKD3KgcxG_votersCount = this.#_3H4RdST7dxfmghccvE3rKD3KgcxG_votersCount;
|
|
44142
|
+
clone.#_3H4RdST7dxfmghccvE3rKD3KgcxG_votersCount = this.#_3H4RdST7dxfmghccvE3rKD3KgcxG_votersCount.slice();
|
|
44076
44143
|
if ("voters" in values && values.voters != null) if (typeof values.voters === "number" && Number.isInteger(values.voters) && values.voters >= 0) clone.#_3H4RdST7dxfmghccvE3rKD3KgcxG_votersCount = [values.voters];
|
|
44077
44144
|
else throw new TypeError("The voters must be of type number.");
|
|
44078
|
-
clone.#_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote = this.#_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote;
|
|
44145
|
+
clone.#_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote = this.#_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote.slice();
|
|
44079
44146
|
clone.#_trust_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote = new Set(this.#_trust_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote);
|
|
44080
44147
|
if ("quote" in values && values.quote != null) if (values.quote instanceof Object$1 || values.quote instanceof URL) {
|
|
44081
44148
|
clone.#_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote = [values.quote];
|
|
44082
44149
|
clone.#_trust_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote = new Set([0]);
|
|
44083
44150
|
} else throw new TypeError("The quote must be of type Object | URL.");
|
|
44084
|
-
clone.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl = this.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl;
|
|
44151
|
+
clone.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl = this.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl.slice();
|
|
44085
44152
|
if ("quoteUrl" in values && values.quoteUrl != null) if (values.quoteUrl instanceof URL) clone.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl = [values.quoteUrl];
|
|
44086
44153
|
else throw new TypeError("The quoteUrl must be of type URL.");
|
|
44087
|
-
clone.#_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization = this.#_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization;
|
|
44154
|
+
clone.#_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization = this.#_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization.slice();
|
|
44088
44155
|
clone.#_trust_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization = new Set(this.#_trust_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization);
|
|
44089
44156
|
if ("quoteAuthorization" in values && values.quoteAuthorization != null) if (values.quoteAuthorization instanceof QuoteAuthorization || values.quoteAuthorization instanceof URL) {
|
|
44090
44157
|
clone.#_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization = [values.quoteAuthorization];
|
|
@@ -45043,7 +45110,8 @@ var Read = class Read extends Activity {
|
|
|
45043
45110
|
* Clones this instance, optionally updating it with the given values.
|
|
45044
45111
|
* @param values The values to update the clone with.
|
|
45045
45112
|
* @param options The options to use for cloning.
|
|
45046
|
-
* @returns The cloned instance.
|
|
45113
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
45114
|
+
* and URLs are shared with this instance.
|
|
45047
45115
|
*/
|
|
45048
45116
|
clone(values = {}, options = {}) {
|
|
45049
45117
|
if (this._warning != null) {
|
|
@@ -45195,7 +45263,8 @@ var Reject = class Reject extends Activity {
|
|
|
45195
45263
|
* Clones this instance, optionally updating it with the given values.
|
|
45196
45264
|
* @param values The values to update the clone with.
|
|
45197
45265
|
* @param options The options to use for cloning.
|
|
45198
|
-
* @returns The cloned instance.
|
|
45266
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
45267
|
+
* and URLs are shared with this instance.
|
|
45199
45268
|
*/
|
|
45200
45269
|
clone(values = {}, options = {}) {
|
|
45201
45270
|
if (this._warning != null) {
|
|
@@ -45365,7 +45434,7 @@ var Relationship = class Relationship extends Object$1 {
|
|
|
45365
45434
|
if ("objects" in values && values.objects != null) {
|
|
45366
45435
|
if ("object" in values && values.object != null) throw new TypeError("Cannot initialize both object and objects at the same time.");
|
|
45367
45436
|
if (Array.isArray(values.objects) && values.objects.every((v) => v instanceof Object$1 || v instanceof URL)) {
|
|
45368
|
-
this.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = values.objects;
|
|
45437
|
+
this.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = values.objects.slice();
|
|
45369
45438
|
for (let i = 0; i < values.objects.length; i++) this.#_trust_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object.add(i);
|
|
45370
45439
|
} else throw new TypeError("The objects must be an array of type Object | URL.");
|
|
45371
45440
|
}
|
|
@@ -45376,7 +45445,7 @@ var Relationship = class Relationship extends Object$1 {
|
|
|
45376
45445
|
if ("relationships" in values && values.relationships != null) {
|
|
45377
45446
|
if ("relationship" in values && values.relationship != null) throw new TypeError("Cannot initialize both relationship and relationships at the same time.");
|
|
45378
45447
|
if (Array.isArray(values.relationships) && values.relationships.every((v) => v instanceof Object$1 || v instanceof URL)) {
|
|
45379
|
-
this.#_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship = values.relationships;
|
|
45448
|
+
this.#_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship = values.relationships.slice();
|
|
45380
45449
|
for (let i = 0; i < values.relationships.length; i++) this.#_trust_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship.add(i);
|
|
45381
45450
|
} else throw new TypeError("The relationships must be an array of type Object | URL.");
|
|
45382
45451
|
}
|
|
@@ -45385,7 +45454,8 @@ var Relationship = class Relationship extends Object$1 {
|
|
|
45385
45454
|
* Clones this instance, optionally updating it with the given values.
|
|
45386
45455
|
* @param values The values to update the clone with.
|
|
45387
45456
|
* @param options The options to use for cloning.
|
|
45388
|
-
* @returns The cloned instance.
|
|
45457
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
45458
|
+
* and URLs are shared with this instance.
|
|
45389
45459
|
*/
|
|
45390
45460
|
clone(values = {}, options = {}) {
|
|
45391
45461
|
if (this._warning != null) {
|
|
@@ -45396,13 +45466,13 @@ var Relationship = class Relationship extends Object$1 {
|
|
|
45396
45466
|
};
|
|
45397
45467
|
}
|
|
45398
45468
|
const clone = super.clone(values, options);
|
|
45399
|
-
clone.#_2Zqdmi46ZnDQsECS6mzwhrv3rUKq_subject = this.#_2Zqdmi46ZnDQsECS6mzwhrv3rUKq_subject;
|
|
45469
|
+
clone.#_2Zqdmi46ZnDQsECS6mzwhrv3rUKq_subject = this.#_2Zqdmi46ZnDQsECS6mzwhrv3rUKq_subject.slice();
|
|
45400
45470
|
clone.#_trust_2Zqdmi46ZnDQsECS6mzwhrv3rUKq_subject = new Set(this.#_trust_2Zqdmi46ZnDQsECS6mzwhrv3rUKq_subject);
|
|
45401
45471
|
if ("subject" in values && values.subject != null) if (values.subject instanceof Object$1 || values.subject instanceof URL) {
|
|
45402
45472
|
clone.#_2Zqdmi46ZnDQsECS6mzwhrv3rUKq_subject = [values.subject];
|
|
45403
45473
|
clone.#_trust_2Zqdmi46ZnDQsECS6mzwhrv3rUKq_subject = new Set([0]);
|
|
45404
45474
|
} else throw new TypeError("The subject must be of type Object | URL.");
|
|
45405
|
-
clone.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = this.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object;
|
|
45475
|
+
clone.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = this.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object.slice();
|
|
45406
45476
|
clone.#_trust_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = new Set(this.#_trust_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object);
|
|
45407
45477
|
if ("object" in values && values.object != null) if (values.object instanceof Object$1 || values.object instanceof URL) {
|
|
45408
45478
|
clone.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = [values.object];
|
|
@@ -45411,12 +45481,12 @@ var Relationship = class Relationship extends Object$1 {
|
|
|
45411
45481
|
if ("objects" in values && values.objects != null) {
|
|
45412
45482
|
if ("object" in values && values.object != null) throw new TypeError("Cannot update both object and objects at the same time.");
|
|
45413
45483
|
if (Array.isArray(values.objects) && values.objects.every((v) => v instanceof Object$1 || v instanceof URL)) {
|
|
45414
|
-
clone.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = values.objects;
|
|
45484
|
+
clone.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = values.objects.slice();
|
|
45415
45485
|
clone.#_trust_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = /* @__PURE__ */ new Set();
|
|
45416
45486
|
for (let i = 0; i < values.objects.length; i++) clone.#_trust_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object.add(i);
|
|
45417
45487
|
} else throw new TypeError("The objects must be an array of type Object | URL.");
|
|
45418
45488
|
}
|
|
45419
|
-
clone.#_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship = this.#_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship;
|
|
45489
|
+
clone.#_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship = this.#_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship.slice();
|
|
45420
45490
|
clone.#_trust_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship = new Set(this.#_trust_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship);
|
|
45421
45491
|
if ("relationship" in values && values.relationship != null) if (values.relationship instanceof Object$1 || values.relationship instanceof URL) {
|
|
45422
45492
|
clone.#_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship = [values.relationship];
|
|
@@ -45425,7 +45495,7 @@ var Relationship = class Relationship extends Object$1 {
|
|
|
45425
45495
|
if ("relationships" in values && values.relationships != null) {
|
|
45426
45496
|
if ("relationship" in values && values.relationship != null) throw new TypeError("Cannot update both relationship and relationships at the same time.");
|
|
45427
45497
|
if (Array.isArray(values.relationships) && values.relationships.every((v) => v instanceof Object$1 || v instanceof URL)) {
|
|
45428
|
-
clone.#_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship = values.relationships;
|
|
45498
|
+
clone.#_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship = values.relationships.slice();
|
|
45429
45499
|
clone.#_trust_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship = /* @__PURE__ */ new Set();
|
|
45430
45500
|
for (let i = 0; i < values.relationships.length; i++) clone.#_trust_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship.add(i);
|
|
45431
45501
|
} else throw new TypeError("The relationships must be an array of type Object | URL.");
|
|
@@ -46229,7 +46299,8 @@ var Remove = class Remove extends Activity {
|
|
|
46229
46299
|
* Clones this instance, optionally updating it with the given values.
|
|
46230
46300
|
* @param values The values to update the clone with.
|
|
46231
46301
|
* @param options The options to use for cloning.
|
|
46232
|
-
* @returns The cloned instance.
|
|
46302
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
46303
|
+
* and URLs are shared with this instance.
|
|
46233
46304
|
*/
|
|
46234
46305
|
clone(values = {}, options = {}) {
|
|
46235
46306
|
if (this._warning != null) {
|
|
@@ -46414,7 +46485,7 @@ var Service = class Service extends Object$1 {
|
|
|
46414
46485
|
else throw new TypeError("The preferredUsername must be of type string | LanguageString.");
|
|
46415
46486
|
if ("preferredUsernames" in values && values.preferredUsernames != null) {
|
|
46416
46487
|
if ("preferredUsername" in values && values.preferredUsername != null) throw new TypeError("Cannot initialize both preferredUsername and preferredUsernames at the same time.");
|
|
46417
|
-
if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every((v) => typeof v === "string" || v instanceof LanguageString$1)) this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames;
|
|
46488
|
+
if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every((v) => typeof v === "string" || v instanceof LanguageString$1)) this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames.slice();
|
|
46418
46489
|
else throw new TypeError("The preferredUsernames must be an array of type string | LanguageString.");
|
|
46419
46490
|
}
|
|
46420
46491
|
if ("publicKey" in values && values.publicKey != null) if (values.publicKey instanceof CryptographicKey || values.publicKey instanceof URL) {
|
|
@@ -46424,7 +46495,7 @@ var Service = class Service extends Object$1 {
|
|
|
46424
46495
|
if ("publicKeys" in values && values.publicKeys != null) {
|
|
46425
46496
|
if ("publicKey" in values && values.publicKey != null) throw new TypeError("Cannot initialize both publicKey and publicKeys at the same time.");
|
|
46426
46497
|
if (Array.isArray(values.publicKeys) && values.publicKeys.every((v) => v instanceof CryptographicKey || v instanceof URL)) {
|
|
46427
|
-
this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys;
|
|
46498
|
+
this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys.slice();
|
|
46428
46499
|
for (let i = 0; i < values.publicKeys.length; i++) this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.add(i);
|
|
46429
46500
|
} else throw new TypeError("The publicKeys must be an array of type CryptographicKey | URL.");
|
|
46430
46501
|
}
|
|
@@ -46435,7 +46506,7 @@ var Service = class Service extends Object$1 {
|
|
|
46435
46506
|
if ("assertionMethods" in values && values.assertionMethods != null) {
|
|
46436
46507
|
if ("assertionMethod" in values && values.assertionMethod != null) throw new TypeError("Cannot initialize both assertionMethod and assertionMethods at the same time.");
|
|
46437
46508
|
if (Array.isArray(values.assertionMethods) && values.assertionMethods.every((v) => v instanceof Multikey || v instanceof URL)) {
|
|
46438
|
-
this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods;
|
|
46509
|
+
this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods.slice();
|
|
46439
46510
|
for (let i = 0; i < values.assertionMethods.length; i++) this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.add(i);
|
|
46440
46511
|
} else throw new TypeError("The assertionMethods must be an array of type Multikey | URL.");
|
|
46441
46512
|
}
|
|
@@ -46470,7 +46541,7 @@ var Service = class Service extends Object$1 {
|
|
|
46470
46541
|
this.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.add(0);
|
|
46471
46542
|
} else throw new TypeError("The featuredTags must be of type Collection | URL.");
|
|
46472
46543
|
if ("streams" in values && values.streams != null) if (Array.isArray(values.streams) && values.streams.every((v) => v instanceof Collection || v instanceof URL)) {
|
|
46473
|
-
this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams;
|
|
46544
|
+
this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams.slice();
|
|
46474
46545
|
for (let i = 0; i < values.streams.length; i++) this.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.add(i);
|
|
46475
46546
|
} else throw new TypeError("The streams must be an array of type Collection | URL.");
|
|
46476
46547
|
if ("endpoints" in values && values.endpoints != null) if (values.endpoints instanceof Endpoints) this.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = [values.endpoints];
|
|
@@ -46494,7 +46565,7 @@ var Service = class Service extends Object$1 {
|
|
|
46494
46565
|
if ("aliases" in values && values.aliases != null) {
|
|
46495
46566
|
if ("alias" in values && values.alias != null) throw new TypeError("Cannot initialize both alias and aliases at the same time.");
|
|
46496
46567
|
if (Array.isArray(values.aliases) && values.aliases.every((v) => v instanceof Application || v instanceof Group || v instanceof Organization || v instanceof Person || v instanceof Service || v instanceof URL)) {
|
|
46497
|
-
this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases;
|
|
46568
|
+
this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases.slice();
|
|
46498
46569
|
for (let i = 0; i < values.aliases.length; i++) this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.add(i);
|
|
46499
46570
|
} else throw new TypeError("The aliases must be an array of type Application | Group | Organization | Person | Service | URL.");
|
|
46500
46571
|
}
|
|
@@ -46505,7 +46576,7 @@ var Service = class Service extends Object$1 {
|
|
|
46505
46576
|
if ("services" in values && values.services != null) {
|
|
46506
46577
|
if ("service" in values && values.service != null) throw new TypeError("Cannot initialize both service and services at the same time.");
|
|
46507
46578
|
if (Array.isArray(values.services) && values.services.every((v) => v instanceof DidService || v instanceof URL)) {
|
|
46508
|
-
this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services;
|
|
46579
|
+
this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services.slice();
|
|
46509
46580
|
for (let i = 0; i < values.services.length; i++) this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.add(i);
|
|
46510
46581
|
} else throw new TypeError("The services must be an array of type DidService | URL.");
|
|
46511
46582
|
}
|
|
@@ -46518,7 +46589,8 @@ var Service = class Service extends Object$1 {
|
|
|
46518
46589
|
* Clones this instance, optionally updating it with the given values.
|
|
46519
46590
|
* @param values The values to update the clone with.
|
|
46520
46591
|
* @param options The options to use for cloning.
|
|
46521
|
-
* @returns The cloned instance.
|
|
46592
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
46593
|
+
* and URLs are shared with this instance.
|
|
46522
46594
|
*/
|
|
46523
46595
|
clone(values = {}, options = {}) {
|
|
46524
46596
|
if (this._warning != null) {
|
|
@@ -46529,15 +46601,15 @@ var Service = class Service extends Object$1 {
|
|
|
46529
46601
|
};
|
|
46530
46602
|
}
|
|
46531
46603
|
const clone = super.clone(values, options);
|
|
46532
|
-
clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername;
|
|
46604
|
+
clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername.slice();
|
|
46533
46605
|
if ("preferredUsername" in values && values.preferredUsername != null) if (typeof values.preferredUsername === "string" || values.preferredUsername instanceof LanguageString$1) clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = [values.preferredUsername];
|
|
46534
46606
|
else throw new TypeError("The preferredUsername must be of type string | LanguageString.");
|
|
46535
46607
|
if ("preferredUsernames" in values && values.preferredUsernames != null) {
|
|
46536
46608
|
if ("preferredUsername" in values && values.preferredUsername != null) throw new TypeError("Cannot update both preferredUsername and preferredUsernames at the same time.");
|
|
46537
|
-
if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every((v) => typeof v === "string" || v instanceof LanguageString$1)) clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames;
|
|
46609
|
+
if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every((v) => typeof v === "string" || v instanceof LanguageString$1)) clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames.slice();
|
|
46538
46610
|
else throw new TypeError("The preferredUsernames must be an array of type string | LanguageString.");
|
|
46539
46611
|
}
|
|
46540
|
-
clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey;
|
|
46612
|
+
clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey.slice();
|
|
46541
46613
|
clone.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey = new Set(this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey);
|
|
46542
46614
|
if ("publicKey" in values && values.publicKey != null) if (values.publicKey instanceof CryptographicKey || values.publicKey instanceof URL) {
|
|
46543
46615
|
clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = [values.publicKey];
|
|
@@ -46546,12 +46618,12 @@ var Service = class Service extends Object$1 {
|
|
|
46546
46618
|
if ("publicKeys" in values && values.publicKeys != null) {
|
|
46547
46619
|
if ("publicKey" in values && values.publicKey != null) throw new TypeError("Cannot update both publicKey and publicKeys at the same time.");
|
|
46548
46620
|
if (Array.isArray(values.publicKeys) && values.publicKeys.every((v) => v instanceof CryptographicKey || v instanceof URL)) {
|
|
46549
|
-
clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys;
|
|
46621
|
+
clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys.slice();
|
|
46550
46622
|
clone.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey = /* @__PURE__ */ new Set();
|
|
46551
46623
|
for (let i = 0; i < values.publicKeys.length; i++) clone.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.add(i);
|
|
46552
46624
|
} else throw new TypeError("The publicKeys must be an array of type CryptographicKey | URL.");
|
|
46553
46625
|
}
|
|
46554
|
-
clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod;
|
|
46626
|
+
clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.slice();
|
|
46555
46627
|
clone.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = new Set(this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod);
|
|
46556
46628
|
if ("assertionMethod" in values && values.assertionMethod != null) if (values.assertionMethod instanceof Multikey || values.assertionMethod instanceof URL) {
|
|
46557
46629
|
clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = [values.assertionMethod];
|
|
@@ -46560,85 +46632,85 @@ var Service = class Service extends Object$1 {
|
|
|
46560
46632
|
if ("assertionMethods" in values && values.assertionMethods != null) {
|
|
46561
46633
|
if ("assertionMethod" in values && values.assertionMethod != null) throw new TypeError("Cannot update both assertionMethod and assertionMethods at the same time.");
|
|
46562
46634
|
if (Array.isArray(values.assertionMethods) && values.assertionMethods.every((v) => v instanceof Multikey || v instanceof URL)) {
|
|
46563
|
-
clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods;
|
|
46635
|
+
clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods.slice();
|
|
46564
46636
|
clone.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = /* @__PURE__ */ new Set();
|
|
46565
46637
|
for (let i = 0; i < values.assertionMethods.length; i++) clone.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.add(i);
|
|
46566
46638
|
} else throw new TypeError("The assertionMethods must be an array of type Multikey | URL.");
|
|
46567
46639
|
}
|
|
46568
|
-
clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers;
|
|
46640
|
+
clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers.slice();
|
|
46569
46641
|
if ("manuallyApprovesFollowers" in values && values.manuallyApprovesFollowers != null) if (typeof values.manuallyApprovesFollowers === "boolean") clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = [values.manuallyApprovesFollowers];
|
|
46570
46642
|
else throw new TypeError("The manuallyApprovesFollowers must be of type boolean.");
|
|
46571
|
-
clone.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = this.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox;
|
|
46643
|
+
clone.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = this.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox.slice();
|
|
46572
46644
|
clone.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = new Set(this.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox);
|
|
46573
46645
|
if ("inbox" in values && values.inbox != null) if (values.inbox instanceof OrderedCollection || values.inbox instanceof OrderedCollectionPage || values.inbox instanceof URL) {
|
|
46574
46646
|
clone.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = [values.inbox];
|
|
46575
46647
|
clone.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = new Set([0]);
|
|
46576
46648
|
} else throw new TypeError("The inbox must be of type OrderedCollection | OrderedCollectionPage | URL.");
|
|
46577
|
-
clone.#_41QwhqJouoLg3h8dRPKat21brynC_outbox = this.#_41QwhqJouoLg3h8dRPKat21brynC_outbox;
|
|
46649
|
+
clone.#_41QwhqJouoLg3h8dRPKat21brynC_outbox = this.#_41QwhqJouoLg3h8dRPKat21brynC_outbox.slice();
|
|
46578
46650
|
clone.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox = new Set(this.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox);
|
|
46579
46651
|
if ("outbox" in values && values.outbox != null) if (values.outbox instanceof OrderedCollection || values.outbox instanceof OrderedCollectionPage || values.outbox instanceof URL) {
|
|
46580
46652
|
clone.#_41QwhqJouoLg3h8dRPKat21brynC_outbox = [values.outbox];
|
|
46581
46653
|
clone.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox = new Set([0]);
|
|
46582
46654
|
} else throw new TypeError("The outbox must be of type OrderedCollection | OrderedCollectionPage | URL.");
|
|
46583
|
-
clone.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = this.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following;
|
|
46655
|
+
clone.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = this.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.slice();
|
|
46584
46656
|
clone.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = new Set(this.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following);
|
|
46585
46657
|
if ("following" in values && values.following != null) if (values.following instanceof Collection || values.following instanceof URL) {
|
|
46586
46658
|
clone.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = [values.following];
|
|
46587
46659
|
clone.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = new Set([0]);
|
|
46588
46660
|
} else throw new TypeError("The following must be of type Collection | URL.");
|
|
46589
|
-
clone.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = this.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers;
|
|
46661
|
+
clone.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = this.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers.slice();
|
|
46590
46662
|
clone.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = new Set(this.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers);
|
|
46591
46663
|
if ("followers" in values && values.followers != null) if (values.followers instanceof Collection || values.followers instanceof URL) {
|
|
46592
46664
|
clone.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = [values.followers];
|
|
46593
46665
|
clone.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = new Set([0]);
|
|
46594
46666
|
} else throw new TypeError("The followers must be of type Collection | URL.");
|
|
46595
|
-
clone.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = this.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked;
|
|
46667
|
+
clone.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = this.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.slice();
|
|
46596
46668
|
clone.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = new Set(this.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked);
|
|
46597
46669
|
if ("liked" in values && values.liked != null) if (values.liked instanceof Collection || values.liked instanceof URL) {
|
|
46598
46670
|
clone.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = [values.liked];
|
|
46599
46671
|
clone.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = new Set([0]);
|
|
46600
46672
|
} else throw new TypeError("The liked must be of type Collection | URL.");
|
|
46601
|
-
clone.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured = this.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured;
|
|
46673
|
+
clone.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured = this.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured.slice();
|
|
46602
46674
|
clone.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured = new Set(this.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured);
|
|
46603
46675
|
if ("featured" in values && values.featured != null) if (values.featured instanceof Collection || values.featured instanceof URL) {
|
|
46604
46676
|
clone.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured = [values.featured];
|
|
46605
46677
|
clone.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured = new Set([0]);
|
|
46606
46678
|
} else throw new TypeError("The featured must be of type Collection | URL.");
|
|
46607
|
-
clone.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = this.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags;
|
|
46679
|
+
clone.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = this.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.slice();
|
|
46608
46680
|
clone.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = new Set(this.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags);
|
|
46609
46681
|
if ("featuredTags" in values && values.featuredTags != null) if (values.featuredTags instanceof Collection || values.featuredTags instanceof URL) {
|
|
46610
46682
|
clone.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = [values.featuredTags];
|
|
46611
46683
|
clone.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = new Set([0]);
|
|
46612
46684
|
} else throw new TypeError("The featuredTags must be of type Collection | URL.");
|
|
46613
|
-
clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams;
|
|
46685
|
+
clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.slice();
|
|
46614
46686
|
clone.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = new Set(this.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams);
|
|
46615
46687
|
if ("streams" in values && values.streams != null) if (Array.isArray(values.streams) && values.streams.every((v) => v instanceof Collection || v instanceof URL)) {
|
|
46616
|
-
clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams;
|
|
46688
|
+
clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams.slice();
|
|
46617
46689
|
clone.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = /* @__PURE__ */ new Set();
|
|
46618
46690
|
for (let i = 0; i < values.streams.length; i++) clone.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.add(i);
|
|
46619
46691
|
} else throw new TypeError("The streams must be an array of type Collection | URL.");
|
|
46620
|
-
clone.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = this.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints;
|
|
46692
|
+
clone.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = this.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.slice();
|
|
46621
46693
|
if ("endpoints" in values && values.endpoints != null) if (values.endpoints instanceof Endpoints) clone.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = [values.endpoints];
|
|
46622
46694
|
else throw new TypeError("The endpoints must be of type Endpoints.");
|
|
46623
|
-
clone.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = this.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable;
|
|
46695
|
+
clone.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = this.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable.slice();
|
|
46624
46696
|
if ("discoverable" in values && values.discoverable != null) if (typeof values.discoverable === "boolean") clone.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = [values.discoverable];
|
|
46625
46697
|
else throw new TypeError("The discoverable must be of type boolean.");
|
|
46626
|
-
clone.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = this.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended;
|
|
46698
|
+
clone.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = this.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended.slice();
|
|
46627
46699
|
if ("suspended" in values && values.suspended != null) if (typeof values.suspended === "boolean") clone.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = [values.suspended];
|
|
46628
46700
|
else throw new TypeError("The suspended must be of type boolean.");
|
|
46629
|
-
clone.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = this.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial;
|
|
46701
|
+
clone.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = this.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial.slice();
|
|
46630
46702
|
if ("memorial" in values && values.memorial != null) if (typeof values.memorial === "boolean") clone.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = [values.memorial];
|
|
46631
46703
|
else throw new TypeError("The memorial must be of type boolean.");
|
|
46632
|
-
clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable;
|
|
46704
|
+
clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable.slice();
|
|
46633
46705
|
if ("indexable" in values && values.indexable != null) if (typeof values.indexable === "boolean") clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = [values.indexable];
|
|
46634
46706
|
else throw new TypeError("The indexable must be of type boolean.");
|
|
46635
|
-
clone.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo;
|
|
46707
|
+
clone.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.slice();
|
|
46636
46708
|
clone.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = new Set(this.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo);
|
|
46637
46709
|
if ("successor" in values && values.successor != null) if (values.successor instanceof Application || values.successor instanceof Group || values.successor instanceof Organization || values.successor instanceof Person || values.successor instanceof Service || values.successor instanceof URL) {
|
|
46638
46710
|
clone.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = [values.successor];
|
|
46639
46711
|
clone.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = new Set([0]);
|
|
46640
46712
|
} else throw new TypeError("The successor must be of type Application | Group | Organization | Person | Service | URL.");
|
|
46641
|
-
clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs;
|
|
46713
|
+
clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.slice();
|
|
46642
46714
|
clone.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = new Set(this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs);
|
|
46643
46715
|
if ("alias" in values && values.alias != null) if (values.alias instanceof Application || values.alias instanceof Group || values.alias instanceof Organization || values.alias instanceof Person || values.alias instanceof Service || values.alias instanceof URL) {
|
|
46644
46716
|
clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = [values.alias];
|
|
@@ -46647,12 +46719,12 @@ var Service = class Service extends Object$1 {
|
|
|
46647
46719
|
if ("aliases" in values && values.aliases != null) {
|
|
46648
46720
|
if ("alias" in values && values.alias != null) throw new TypeError("Cannot update both alias and aliases at the same time.");
|
|
46649
46721
|
if (Array.isArray(values.aliases) && values.aliases.every((v) => v instanceof Application || v instanceof Group || v instanceof Organization || v instanceof Person || v instanceof Service || v instanceof URL)) {
|
|
46650
|
-
clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases;
|
|
46722
|
+
clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases.slice();
|
|
46651
46723
|
clone.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = /* @__PURE__ */ new Set();
|
|
46652
46724
|
for (let i = 0; i < values.aliases.length; i++) clone.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.add(i);
|
|
46653
46725
|
} else throw new TypeError("The aliases must be an array of type Application | Group | Organization | Person | Service | URL.");
|
|
46654
46726
|
}
|
|
46655
|
-
clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service;
|
|
46727
|
+
clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.slice();
|
|
46656
46728
|
clone.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = new Set(this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service);
|
|
46657
46729
|
if ("service" in values && values.service != null) if (values.service instanceof DidService || values.service instanceof URL) {
|
|
46658
46730
|
clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = [values.service];
|
|
@@ -46661,15 +46733,15 @@ var Service = class Service extends Object$1 {
|
|
|
46661
46733
|
if ("services" in values && values.services != null) {
|
|
46662
46734
|
if ("service" in values && values.service != null) throw new TypeError("Cannot update both service and services at the same time.");
|
|
46663
46735
|
if (Array.isArray(values.services) && values.services.every((v) => v instanceof DidService || v instanceof URL)) {
|
|
46664
|
-
clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services;
|
|
46736
|
+
clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services.slice();
|
|
46665
46737
|
clone.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = /* @__PURE__ */ new Set();
|
|
46666
46738
|
for (let i = 0; i < values.services.length; i++) clone.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.add(i);
|
|
46667
46739
|
} else throw new TypeError("The services must be an array of type DidService | URL.");
|
|
46668
46740
|
}
|
|
46669
|
-
clone.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = this.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage;
|
|
46741
|
+
clone.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = this.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage.slice();
|
|
46670
46742
|
if ("followedMessage" in values && values.followedMessage != null) if (typeof values.followedMessage === "string") clone.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = [values.followedMessage];
|
|
46671
46743
|
else throw new TypeError("The followedMessage must be of type string.");
|
|
46672
|
-
clone.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat;
|
|
46744
|
+
clone.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat.slice();
|
|
46673
46745
|
if ("cat" in values && values.cat != null) if (typeof values.cat === "boolean") clone.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = [values.cat];
|
|
46674
46746
|
else throw new TypeError("The cat must be of type boolean.");
|
|
46675
46747
|
return clone;
|
|
@@ -50046,7 +50118,7 @@ var Source = class {
|
|
|
50046
50118
|
else throw new TypeError("The content must be of type string | LanguageString.");
|
|
50047
50119
|
if ("contents" in values && values.contents != null) {
|
|
50048
50120
|
if ("content" in values && values.content != null) throw new TypeError("Cannot initialize both content and contents at the same time.");
|
|
50049
|
-
if (Array.isArray(values.contents) && values.contents.every((v) => typeof v === "string" || v instanceof LanguageString$1)) this.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content = values.contents;
|
|
50121
|
+
if (Array.isArray(values.contents) && values.contents.every((v) => typeof v === "string" || v instanceof LanguageString$1)) this.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content = values.contents.slice();
|
|
50050
50122
|
else throw new TypeError("The contents must be an array of type string | LanguageString.");
|
|
50051
50123
|
}
|
|
50052
50124
|
if ("mediaType" in values && values.mediaType != null) if (typeof values.mediaType === "string") this.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType = [values.mediaType];
|
|
@@ -50056,7 +50128,8 @@ var Source = class {
|
|
|
50056
50128
|
* Clones this instance, optionally updating it with the given values.
|
|
50057
50129
|
* @param values The values to update the clone with.
|
|
50058
50130
|
* @param options The options to use for cloning.
|
|
50059
|
-
* @returns The cloned instance.
|
|
50131
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
50132
|
+
* and URLs are shared with this instance.
|
|
50060
50133
|
*/
|
|
50061
50134
|
clone(values = {}, options = {}) {
|
|
50062
50135
|
if (this._warning != null) {
|
|
@@ -50067,15 +50140,15 @@ var Source = class {
|
|
|
50067
50140
|
};
|
|
50068
50141
|
}
|
|
50069
50142
|
const clone = new this.constructor({ id: values.id ?? this.id }, options);
|
|
50070
|
-
clone.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content = this.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content;
|
|
50143
|
+
clone.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content = this.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content.slice();
|
|
50071
50144
|
if ("content" in values && values.content != null) if (typeof values.content === "string" || values.content instanceof LanguageString$1) clone.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content = [values.content];
|
|
50072
50145
|
else throw new TypeError("The content must be of type string | LanguageString.");
|
|
50073
50146
|
if ("contents" in values && values.contents != null) {
|
|
50074
50147
|
if ("content" in values && values.content != null) throw new TypeError("Cannot update both content and contents at the same time.");
|
|
50075
|
-
if (Array.isArray(values.contents) && values.contents.every((v) => typeof v === "string" || v instanceof LanguageString$1)) clone.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content = values.contents;
|
|
50148
|
+
if (Array.isArray(values.contents) && values.contents.every((v) => typeof v === "string" || v instanceof LanguageString$1)) clone.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content = values.contents.slice();
|
|
50076
50149
|
else throw new TypeError("The contents must be an array of type string | LanguageString.");
|
|
50077
50150
|
}
|
|
50078
|
-
clone.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType = this.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType;
|
|
50151
|
+
clone.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType = this.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType.slice();
|
|
50079
50152
|
if ("mediaType" in values && values.mediaType != null) if (typeof values.mediaType === "string") clone.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType = [values.mediaType];
|
|
50080
50153
|
else throw new TypeError("The mediaType must be of type string.");
|
|
50081
50154
|
return clone;
|
|
@@ -50301,7 +50374,8 @@ var TentativeAccept = class TentativeAccept extends Accept {
|
|
|
50301
50374
|
* Clones this instance, optionally updating it with the given values.
|
|
50302
50375
|
* @param values The values to update the clone with.
|
|
50303
50376
|
* @param options The options to use for cloning.
|
|
50304
|
-
* @returns The cloned instance.
|
|
50377
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
50378
|
+
* and URLs are shared with this instance.
|
|
50305
50379
|
*/
|
|
50306
50380
|
clone(values = {}, options = {}) {
|
|
50307
50381
|
if (this._warning != null) {
|
|
@@ -50453,7 +50527,8 @@ var TentativeReject = class TentativeReject extends Reject {
|
|
|
50453
50527
|
* Clones this instance, optionally updating it with the given values.
|
|
50454
50528
|
* @param values The values to update the clone with.
|
|
50455
50529
|
* @param options The options to use for cloning.
|
|
50456
|
-
* @returns The cloned instance.
|
|
50530
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
50531
|
+
* and URLs are shared with this instance.
|
|
50457
50532
|
*/
|
|
50458
50533
|
clone(values = {}, options = {}) {
|
|
50459
50534
|
if (this._warning != null) {
|
|
@@ -50607,7 +50682,7 @@ var Tombstone = class Tombstone extends Object$1 {
|
|
|
50607
50682
|
else throw new TypeError("The formerType must be of type $EntityType.");
|
|
50608
50683
|
if ("formerTypes" in values && values.formerTypes != null) {
|
|
50609
50684
|
if ("formerType" in values && values.formerType != null) throw new TypeError("Cannot initialize both formerType and formerTypes at the same time.");
|
|
50610
|
-
if (Array.isArray(values.formerTypes) && values.formerTypes.every((v) => isEntityType(v))) this.#_Pn8kdUztYSt4nyoAkVsMcQaLo9U_formerType = values.formerTypes;
|
|
50685
|
+
if (Array.isArray(values.formerTypes) && values.formerTypes.every((v) => isEntityType(v))) this.#_Pn8kdUztYSt4nyoAkVsMcQaLo9U_formerType = values.formerTypes.slice();
|
|
50611
50686
|
else throw new TypeError("The formerTypes must be an array of type $EntityType.");
|
|
50612
50687
|
}
|
|
50613
50688
|
if ("deleted" in values && values.deleted != null) if (isTemporalInstant(values.deleted)) this.#_8g8g4LiVMhFTXskuDEqx4ascxUr_deleted = [values.deleted];
|
|
@@ -50617,7 +50692,8 @@ var Tombstone = class Tombstone extends Object$1 {
|
|
|
50617
50692
|
* Clones this instance, optionally updating it with the given values.
|
|
50618
50693
|
* @param values The values to update the clone with.
|
|
50619
50694
|
* @param options The options to use for cloning.
|
|
50620
|
-
* @returns The cloned instance.
|
|
50695
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
50696
|
+
* and URLs are shared with this instance.
|
|
50621
50697
|
*/
|
|
50622
50698
|
clone(values = {}, options = {}) {
|
|
50623
50699
|
if (this._warning != null) {
|
|
@@ -50628,15 +50704,15 @@ var Tombstone = class Tombstone extends Object$1 {
|
|
|
50628
50704
|
};
|
|
50629
50705
|
}
|
|
50630
50706
|
const clone = super.clone(values, options);
|
|
50631
|
-
clone.#_Pn8kdUztYSt4nyoAkVsMcQaLo9U_formerType = this.#_Pn8kdUztYSt4nyoAkVsMcQaLo9U_formerType;
|
|
50707
|
+
clone.#_Pn8kdUztYSt4nyoAkVsMcQaLo9U_formerType = this.#_Pn8kdUztYSt4nyoAkVsMcQaLo9U_formerType.slice();
|
|
50632
50708
|
if ("formerType" in values && values.formerType != null) if (isEntityType(values.formerType)) clone.#_Pn8kdUztYSt4nyoAkVsMcQaLo9U_formerType = [values.formerType];
|
|
50633
50709
|
else throw new TypeError("The formerType must be of type $EntityType.");
|
|
50634
50710
|
if ("formerTypes" in values && values.formerTypes != null) {
|
|
50635
50711
|
if ("formerType" in values && values.formerType != null) throw new TypeError("Cannot update both formerType and formerTypes at the same time.");
|
|
50636
|
-
if (Array.isArray(values.formerTypes) && values.formerTypes.every((v) => isEntityType(v))) clone.#_Pn8kdUztYSt4nyoAkVsMcQaLo9U_formerType = values.formerTypes;
|
|
50712
|
+
if (Array.isArray(values.formerTypes) && values.formerTypes.every((v) => isEntityType(v))) clone.#_Pn8kdUztYSt4nyoAkVsMcQaLo9U_formerType = values.formerTypes.slice();
|
|
50637
50713
|
else throw new TypeError("The formerTypes must be an array of type $EntityType.");
|
|
50638
50714
|
}
|
|
50639
|
-
clone.#_8g8g4LiVMhFTXskuDEqx4ascxUr_deleted = this.#_8g8g4LiVMhFTXskuDEqx4ascxUr_deleted;
|
|
50715
|
+
clone.#_8g8g4LiVMhFTXskuDEqx4ascxUr_deleted = this.#_8g8g4LiVMhFTXskuDEqx4ascxUr_deleted.slice();
|
|
50640
50716
|
if ("deleted" in values && values.deleted != null) if (isTemporalInstant(values.deleted)) clone.#_8g8g4LiVMhFTXskuDEqx4ascxUr_deleted = [values.deleted];
|
|
50641
50717
|
else throw new TypeError("The deleted must be of type Temporal.Instant.");
|
|
50642
50718
|
return clone;
|
|
@@ -50891,7 +50967,8 @@ var Travel = class Travel extends IntransitiveActivity {
|
|
|
50891
50967
|
* Clones this instance, optionally updating it with the given values.
|
|
50892
50968
|
* @param values The values to update the clone with.
|
|
50893
50969
|
* @param options The options to use for cloning.
|
|
50894
|
-
* @returns The cloned instance.
|
|
50970
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
50971
|
+
* and URLs are shared with this instance.
|
|
50895
50972
|
*/
|
|
50896
50973
|
clone(values = {}, options = {}) {
|
|
50897
50974
|
if (this._warning != null) {
|
|
@@ -51048,7 +51125,8 @@ var Undo = class Undo extends Activity {
|
|
|
51048
51125
|
* Clones this instance, optionally updating it with the given values.
|
|
51049
51126
|
* @param values The values to update the clone with.
|
|
51050
51127
|
* @param options The options to use for cloning.
|
|
51051
|
-
* @returns The cloned instance.
|
|
51128
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
51129
|
+
* and URLs are shared with this instance.
|
|
51052
51130
|
*/
|
|
51053
51131
|
clone(values = {}, options = {}) {
|
|
51054
51132
|
if (this._warning != null) {
|
|
@@ -51212,7 +51290,8 @@ var Update = class Update extends Activity {
|
|
|
51212
51290
|
* Clones this instance, optionally updating it with the given values.
|
|
51213
51291
|
* @param values The values to update the clone with.
|
|
51214
51292
|
* @param options The options to use for cloning.
|
|
51215
|
-
* @returns The cloned instance.
|
|
51293
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
51294
|
+
* and URLs are shared with this instance.
|
|
51216
51295
|
*/
|
|
51217
51296
|
clone(values = {}, options = {}) {
|
|
51218
51297
|
if (this._warning != null) {
|
|
@@ -51422,7 +51501,8 @@ var Video = class Video extends Document {
|
|
|
51422
51501
|
* Clones this instance, optionally updating it with the given values.
|
|
51423
51502
|
* @param values The values to update the clone with.
|
|
51424
51503
|
* @param options The options to use for cloning.
|
|
51425
|
-
* @returns The cloned instance.
|
|
51504
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
51505
|
+
* and URLs are shared with this instance.
|
|
51426
51506
|
*/
|
|
51427
51507
|
clone(values = {}, options = {}) {
|
|
51428
51508
|
if (this._warning != null) {
|
|
@@ -51587,7 +51667,8 @@ var View = class View extends Activity {
|
|
|
51587
51667
|
* Clones this instance, optionally updating it with the given values.
|
|
51588
51668
|
* @param values The values to update the clone with.
|
|
51589
51669
|
* @param options The options to use for cloning.
|
|
51590
|
-
* @returns The cloned instance.
|
|
51670
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
51671
|
+
* and URLs are shared with this instance.
|
|
51591
51672
|
*/
|
|
51592
51673
|
clone(values = {}, options = {}) {
|
|
51593
51674
|
if (this._warning != null) {
|