@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
|
@@ -3,7 +3,7 @@ globalThis.addEventListener = () => {};
|
|
|
3
3
|
import { SpanStatusCode, trace } from "@opentelemetry/api";
|
|
4
4
|
import jsonld from "@fedify/vocab-runtime/jsonld";
|
|
5
5
|
import { getLogger } from "@logtape/logtape";
|
|
6
|
-
import { LanguageString, decodeMultibase, encodeMultibase, exportMultibaseKey, exportSpki, getDocumentLoader, importMultibaseKey, importPem, isDecimal, parseDecimal } from "@fedify/vocab-runtime";
|
|
6
|
+
import { LanguageString, decodeMultibase, encodeMultibase, exportMultibaseKey, exportSpki, getDocumentLoader, importMultibaseKey, importPem, isDecimal, normalizeLanguageTag, parseDecimal } from "@fedify/vocab-runtime";
|
|
7
7
|
import { isTemporalDuration, isTemporalInstant } from "@fedify/vocab-runtime/temporal";
|
|
8
8
|
//#region \0rolldown/runtime.js
|
|
9
9
|
var __create = Object.create;
|
|
@@ -163,7 +163,7 @@ function decodeIri(iri) {
|
|
|
163
163
|
}
|
|
164
164
|
function isValidLanguageTag(language) {
|
|
165
165
|
try {
|
|
166
|
-
new Intl.Locale(language);
|
|
166
|
+
new Intl.Locale(normalizeLanguageTag(language));
|
|
167
167
|
return true;
|
|
168
168
|
} catch (error) {
|
|
169
169
|
if (error instanceof RangeError) return false;
|
|
@@ -298,7 +298,7 @@ var Object$1 = class Object$1 {
|
|
|
298
298
|
if (values.id == null || values.id instanceof URL) this.id = values.id ?? null;
|
|
299
299
|
else throw new TypeError("The id must be a URL.");
|
|
300
300
|
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)) {
|
|
301
|
-
this.#_49BipA5dq9eoH8LX8xdsVumveTca_attachment = values.attachments;
|
|
301
|
+
this.#_49BipA5dq9eoH8LX8xdsVumveTca_attachment = values.attachments.slice();
|
|
302
302
|
for (let i = 0; i < values.attachments.length; i++) this.#_trust_49BipA5dq9eoH8LX8xdsVumveTca_attachment.add(i);
|
|
303
303
|
} else throw new TypeError("The attachments must be an array of type Object | Link | PropertyValue | URL.");
|
|
304
304
|
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) {
|
|
@@ -308,7 +308,7 @@ var Object$1 = class Object$1 {
|
|
|
308
308
|
if ("attributions" in values && values.attributions != null) {
|
|
309
309
|
if ("attribution" in values && values.attribution != null) throw new TypeError("Cannot initialize both attribution and attributions at the same time.");
|
|
310
310
|
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)) {
|
|
311
|
-
this.#_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo = values.attributions;
|
|
311
|
+
this.#_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo = values.attributions.slice();
|
|
312
312
|
for (let i = 0; i < values.attributions.length; i++) this.#_trust_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo.add(i);
|
|
313
313
|
} else throw new TypeError("The attributions must be an array of type Application | Group | Organization | Person | Service | URL.");
|
|
314
314
|
}
|
|
@@ -319,7 +319,7 @@ var Object$1 = class Object$1 {
|
|
|
319
319
|
if ("audiences" in values && values.audiences != null) {
|
|
320
320
|
if ("audience" in values && values.audience != null) throw new TypeError("Cannot initialize both audience and audiences at the same time.");
|
|
321
321
|
if (Array.isArray(values.audiences) && values.audiences.every((v) => v instanceof Object$1 || v instanceof URL)) {
|
|
322
|
-
this.#_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience = values.audiences;
|
|
322
|
+
this.#_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience = values.audiences.slice();
|
|
323
323
|
for (let i = 0; i < values.audiences.length; i++) this.#_trust_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience.add(i);
|
|
324
324
|
} else throw new TypeError("The audiences must be an array of type Object | URL.");
|
|
325
325
|
}
|
|
@@ -327,24 +327,24 @@ var Object$1 = class Object$1 {
|
|
|
327
327
|
else throw new TypeError("The content must be of type string | LanguageString.");
|
|
328
328
|
if ("contents" in values && values.contents != null) {
|
|
329
329
|
if ("content" in values && values.content != null) throw new TypeError("Cannot initialize both content and contents at the same time.");
|
|
330
|
-
if (Array.isArray(values.contents) && values.contents.every((v) => typeof v === "string" || v instanceof LanguageString)) this.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content = values.contents;
|
|
330
|
+
if (Array.isArray(values.contents) && values.contents.every((v) => typeof v === "string" || v instanceof LanguageString)) this.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content = values.contents.slice();
|
|
331
331
|
else throw new TypeError("The contents must be an array of type string | LanguageString.");
|
|
332
332
|
}
|
|
333
333
|
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)) {
|
|
334
|
-
this.#_3mhZzGXSpQ431mBSz2kvych22v4e_context = values.contexts;
|
|
334
|
+
this.#_3mhZzGXSpQ431mBSz2kvych22v4e_context = values.contexts.slice();
|
|
335
335
|
for (let i = 0; i < values.contexts.length; i++) this.#_trust_3mhZzGXSpQ431mBSz2kvych22v4e_context.add(i);
|
|
336
336
|
} else throw new TypeError("The contexts must be an array of type Object | Link | URL.");
|
|
337
337
|
if ("name" in values && values.name != null) if (typeof values.name === "string" || values.name instanceof LanguageString) this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = [values.name];
|
|
338
338
|
else throw new TypeError("The name must be of type string | LanguageString.");
|
|
339
339
|
if ("names" in values && values.names != null) {
|
|
340
340
|
if ("name" in values && values.name != null) throw new TypeError("Cannot initialize both name and names at the same time.");
|
|
341
|
-
if (Array.isArray(values.names) && values.names.every((v) => typeof v === "string" || v instanceof LanguageString)) this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = values.names;
|
|
341
|
+
if (Array.isArray(values.names) && values.names.every((v) => typeof v === "string" || v instanceof LanguageString)) this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = values.names.slice();
|
|
342
342
|
else throw new TypeError("The names must be an array of type string | LanguageString.");
|
|
343
343
|
}
|
|
344
344
|
if ("endTime" in values && values.endTime != null) if (isTemporalInstant(values.endTime)) this.#_219RwDanjScTv5tYCjwGZVCM7KZ9_endTime = [values.endTime];
|
|
345
345
|
else throw new TypeError("The endTime must be of type Temporal.Instant.");
|
|
346
346
|
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)) {
|
|
347
|
-
this.#_86xFhmgBapoMvYqjbjRuDPayTrS_generator = values.generators;
|
|
347
|
+
this.#_86xFhmgBapoMvYqjbjRuDPayTrS_generator = values.generators.slice();
|
|
348
348
|
for (let i = 0; i < values.generators.length; i++) this.#_trust_86xFhmgBapoMvYqjbjRuDPayTrS_generator.add(i);
|
|
349
349
|
} else throw new TypeError("The generators must be an array of type Object | Link | URL.");
|
|
350
350
|
if ("icon" in values && values.icon != null) if (values.icon instanceof Image || values.icon instanceof URL) {
|
|
@@ -354,7 +354,7 @@ var Object$1 = class Object$1 {
|
|
|
354
354
|
if ("icons" in values && values.icons != null) {
|
|
355
355
|
if ("icon" in values && values.icon != null) throw new TypeError("Cannot initialize both icon and icons at the same time.");
|
|
356
356
|
if (Array.isArray(values.icons) && values.icons.every((v) => v instanceof Image || v instanceof URL)) {
|
|
357
|
-
this.#_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon = values.icons;
|
|
357
|
+
this.#_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon = values.icons.slice();
|
|
358
358
|
for (let i = 0; i < values.icons.length; i++) this.#_trust_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon.add(i);
|
|
359
359
|
} else throw new TypeError("The icons must be an array of type Image | URL.");
|
|
360
360
|
}
|
|
@@ -365,7 +365,7 @@ var Object$1 = class Object$1 {
|
|
|
365
365
|
if ("images" in values && values.images != null) {
|
|
366
366
|
if ("image" in values && values.image != null) throw new TypeError("Cannot initialize both image and images at the same time.");
|
|
367
367
|
if (Array.isArray(values.images) && values.images.every((v) => v instanceof Image || v instanceof URL)) {
|
|
368
|
-
this.#_3dXrUdkARxwyJLtJcYi1AJ92H41U_image = values.images;
|
|
368
|
+
this.#_3dXrUdkARxwyJLtJcYi1AJ92H41U_image = values.images.slice();
|
|
369
369
|
for (let i = 0; i < values.images.length; i++) this.#_trust_3dXrUdkARxwyJLtJcYi1AJ92H41U_image.add(i);
|
|
370
370
|
} else throw new TypeError("The images must be an array of type Image | URL.");
|
|
371
371
|
}
|
|
@@ -376,7 +376,7 @@ var Object$1 = class Object$1 {
|
|
|
376
376
|
if ("replyTargets" in values && values.replyTargets != null) {
|
|
377
377
|
if ("replyTarget" in values && values.replyTarget != null) throw new TypeError("Cannot initialize both replyTarget and replyTargets at the same time.");
|
|
378
378
|
if (Array.isArray(values.replyTargets) && values.replyTargets.every((v) => v instanceof Object$1 || v instanceof Link || v instanceof URL)) {
|
|
379
|
-
this.#_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo = values.replyTargets;
|
|
379
|
+
this.#_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo = values.replyTargets.slice();
|
|
380
380
|
for (let i = 0; i < values.replyTargets.length; i++) this.#_trust_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo.add(i);
|
|
381
381
|
} else throw new TypeError("The replyTargets must be an array of type Object | Link | URL.");
|
|
382
382
|
}
|
|
@@ -387,7 +387,7 @@ var Object$1 = class Object$1 {
|
|
|
387
387
|
if ("locations" in values && values.locations != null) {
|
|
388
388
|
if ("location" in values && values.location != null) throw new TypeError("Cannot initialize both location and locations at the same time.");
|
|
389
389
|
if (Array.isArray(values.locations) && values.locations.every((v) => v instanceof Object$1 || v instanceof Link || v instanceof URL)) {
|
|
390
|
-
this.#_31k5MUZJsnsPNg8dQQJieWaXTFnR_location = values.locations;
|
|
390
|
+
this.#_31k5MUZJsnsPNg8dQQJieWaXTFnR_location = values.locations.slice();
|
|
391
391
|
for (let i = 0; i < values.locations.length; i++) this.#_trust_31k5MUZJsnsPNg8dQQJieWaXTFnR_location.add(i);
|
|
392
392
|
} else throw new TypeError("The locations must be an array of type Object | Link | URL.");
|
|
393
393
|
}
|
|
@@ -398,7 +398,7 @@ var Object$1 = class Object$1 {
|
|
|
398
398
|
if ("previews" in values && values.previews != null) {
|
|
399
399
|
if ("preview" in values && values.preview != null) throw new TypeError("Cannot initialize both preview and previews at the same time.");
|
|
400
400
|
if (Array.isArray(values.previews) && values.previews.every((v) => v instanceof Link || v instanceof Object$1 || v instanceof URL)) {
|
|
401
|
-
this.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview = values.previews;
|
|
401
|
+
this.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview = values.previews.slice();
|
|
402
402
|
for (let i = 0; i < values.previews.length; i++) this.#_trust_gCVTegXxWWCw6wWRxa1QF65zusg_preview.add(i);
|
|
403
403
|
} else throw new TypeError("The previews must be an array of type Link | Object | URL.");
|
|
404
404
|
}
|
|
@@ -426,11 +426,11 @@ var Object$1 = class Object$1 {
|
|
|
426
426
|
else throw new TypeError("The summary must be of type string | LanguageString.");
|
|
427
427
|
if ("summaries" in values && values.summaries != null) {
|
|
428
428
|
if ("summary" in values && values.summary != null) throw new TypeError("Cannot initialize both summary and summaries at the same time.");
|
|
429
|
-
if (Array.isArray(values.summaries) && values.summaries.every((v) => typeof v === "string" || v instanceof LanguageString)) this.#_4LqirZspQbFWWQEbFcXAxm7tTDN1_summary = values.summaries;
|
|
429
|
+
if (Array.isArray(values.summaries) && values.summaries.every((v) => typeof v === "string" || v instanceof LanguageString)) this.#_4LqirZspQbFWWQEbFcXAxm7tTDN1_summary = values.summaries.slice();
|
|
430
430
|
else throw new TypeError("The summaries must be an array of type string | LanguageString.");
|
|
431
431
|
}
|
|
432
432
|
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)) {
|
|
433
|
-
this.#_5chuqj6s95p5gg2sk1HntGfarRf_tag = values.tags;
|
|
433
|
+
this.#_5chuqj6s95p5gg2sk1HntGfarRf_tag = values.tags.slice();
|
|
434
434
|
for (let i = 0; i < values.tags.length; i++) this.#_trust_5chuqj6s95p5gg2sk1HntGfarRf_tag.add(i);
|
|
435
435
|
} else throw new TypeError("The tags must be an array of type Object | Link | URL.");
|
|
436
436
|
if ("updated" in values && values.updated != null) if (isTemporalInstant(values.updated)) this.#_385aB7ySixcf5Un6z3VsWmThgCzQ_updated = [values.updated];
|
|
@@ -439,7 +439,7 @@ var Object$1 = class Object$1 {
|
|
|
439
439
|
else throw new TypeError("The url must be of type URL | Link.");
|
|
440
440
|
if ("urls" in values && values.urls != null) {
|
|
441
441
|
if ("url" in values && values.url != null) throw new TypeError("Cannot initialize both url and urls at the same time.");
|
|
442
|
-
if (Array.isArray(values.urls) && values.urls.every((v) => v instanceof URL || v instanceof Link)) this.#_2oPEH9MQ3aj8JVwyYuWkqoVwV865_url = values.urls;
|
|
442
|
+
if (Array.isArray(values.urls) && values.urls.every((v) => v instanceof URL || v instanceof Link)) this.#_2oPEH9MQ3aj8JVwyYuWkqoVwV865_url = values.urls.slice();
|
|
443
443
|
else throw new TypeError("The urls must be an array of type URL | Link.");
|
|
444
444
|
}
|
|
445
445
|
if ("to" in values && values.to != null) if (values.to instanceof Object$1 || values.to instanceof URL) {
|
|
@@ -449,7 +449,7 @@ var Object$1 = class Object$1 {
|
|
|
449
449
|
if ("tos" in values && values.tos != null) {
|
|
450
450
|
if ("to" in values && values.to != null) throw new TypeError("Cannot initialize both to and tos at the same time.");
|
|
451
451
|
if (Array.isArray(values.tos) && values.tos.every((v) => v instanceof Object$1 || v instanceof URL)) {
|
|
452
|
-
this.#_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to = values.tos;
|
|
452
|
+
this.#_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to = values.tos.slice();
|
|
453
453
|
for (let i = 0; i < values.tos.length; i++) this.#_trust_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to.add(i);
|
|
454
454
|
} else throw new TypeError("The tos must be an array of type Object | URL.");
|
|
455
455
|
}
|
|
@@ -460,7 +460,7 @@ var Object$1 = class Object$1 {
|
|
|
460
460
|
if ("btos" in values && values.btos != null) {
|
|
461
461
|
if ("bto" in values && values.bto != null) throw new TypeError("Cannot initialize both bto and btos at the same time.");
|
|
462
462
|
if (Array.isArray(values.btos) && values.btos.every((v) => v instanceof Object$1 || v instanceof URL)) {
|
|
463
|
-
this.#_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto = values.btos;
|
|
463
|
+
this.#_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto = values.btos.slice();
|
|
464
464
|
for (let i = 0; i < values.btos.length; i++) this.#_trust_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto.add(i);
|
|
465
465
|
} else throw new TypeError("The btos must be an array of type Object | URL.");
|
|
466
466
|
}
|
|
@@ -471,7 +471,7 @@ var Object$1 = class Object$1 {
|
|
|
471
471
|
if ("ccs" in values && values.ccs != null) {
|
|
472
472
|
if ("cc" in values && values.cc != null) throw new TypeError("Cannot initialize both cc and ccs at the same time.");
|
|
473
473
|
if (Array.isArray(values.ccs) && values.ccs.every((v) => v instanceof Object$1 || v instanceof URL)) {
|
|
474
|
-
this.#_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc = values.ccs;
|
|
474
|
+
this.#_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc = values.ccs.slice();
|
|
475
475
|
for (let i = 0; i < values.ccs.length; i++) this.#_trust_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc.add(i);
|
|
476
476
|
} else throw new TypeError("The ccs must be an array of type Object | URL.");
|
|
477
477
|
}
|
|
@@ -482,7 +482,7 @@ var Object$1 = class Object$1 {
|
|
|
482
482
|
if ("bccs" in values && values.bccs != null) {
|
|
483
483
|
if ("bcc" in values && values.bcc != null) throw new TypeError("Cannot initialize both bcc and bccs at the same time.");
|
|
484
484
|
if (Array.isArray(values.bccs) && values.bccs.every((v) => v instanceof Object$1 || v instanceof URL)) {
|
|
485
|
-
this.#_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc = values.bccs;
|
|
485
|
+
this.#_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc = values.bccs.slice();
|
|
486
486
|
for (let i = 0; i < values.bccs.length; i++) this.#_trust_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc.add(i);
|
|
487
487
|
} else throw new TypeError("The bccs must be an array of type Object | URL.");
|
|
488
488
|
}
|
|
@@ -501,7 +501,7 @@ var Object$1 = class Object$1 {
|
|
|
501
501
|
if ("proofs" in values && values.proofs != null) {
|
|
502
502
|
if ("proof" in values && values.proof != null) throw new TypeError("Cannot initialize both proof and proofs at the same time.");
|
|
503
503
|
if (Array.isArray(values.proofs) && values.proofs.every((v) => v instanceof DataIntegrityProof || v instanceof URL)) {
|
|
504
|
-
this.#_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof = values.proofs;
|
|
504
|
+
this.#_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof = values.proofs.slice();
|
|
505
505
|
for (let i = 0; i < values.proofs.length; i++) this.#_trust_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof.add(i);
|
|
506
506
|
} else throw new TypeError("The proofs must be an array of type DataIntegrityProof | URL.");
|
|
507
507
|
}
|
|
@@ -526,7 +526,8 @@ var Object$1 = class Object$1 {
|
|
|
526
526
|
* Clones this instance, optionally updating it with the given values.
|
|
527
527
|
* @param values The values to update the clone with.
|
|
528
528
|
* @param options The options to use for cloning.
|
|
529
|
-
* @returns The cloned instance.
|
|
529
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
530
|
+
* and URLs are shared with this instance.
|
|
530
531
|
*/
|
|
531
532
|
clone(values = {}, options = {}) {
|
|
532
533
|
if (this._warning != null) {
|
|
@@ -537,14 +538,14 @@ var Object$1 = class Object$1 {
|
|
|
537
538
|
};
|
|
538
539
|
}
|
|
539
540
|
const clone = new this.constructor({ id: values.id ?? this.id }, options);
|
|
540
|
-
clone.#_49BipA5dq9eoH8LX8xdsVumveTca_attachment = this.#_49BipA5dq9eoH8LX8xdsVumveTca_attachment;
|
|
541
|
+
clone.#_49BipA5dq9eoH8LX8xdsVumveTca_attachment = this.#_49BipA5dq9eoH8LX8xdsVumveTca_attachment.slice();
|
|
541
542
|
clone.#_trust_49BipA5dq9eoH8LX8xdsVumveTca_attachment = new Set(this.#_trust_49BipA5dq9eoH8LX8xdsVumveTca_attachment);
|
|
542
543
|
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)) {
|
|
543
|
-
clone.#_49BipA5dq9eoH8LX8xdsVumveTca_attachment = values.attachments;
|
|
544
|
+
clone.#_49BipA5dq9eoH8LX8xdsVumveTca_attachment = values.attachments.slice();
|
|
544
545
|
clone.#_trust_49BipA5dq9eoH8LX8xdsVumveTca_attachment = /* @__PURE__ */ new Set();
|
|
545
546
|
for (let i = 0; i < values.attachments.length; i++) clone.#_trust_49BipA5dq9eoH8LX8xdsVumveTca_attachment.add(i);
|
|
546
547
|
} else throw new TypeError("The attachments must be an array of type Object | Link | PropertyValue | URL.");
|
|
547
|
-
clone.#_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo = this.#_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo;
|
|
548
|
+
clone.#_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo = this.#_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo.slice();
|
|
548
549
|
clone.#_trust_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo = new Set(this.#_trust_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo);
|
|
549
550
|
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) {
|
|
550
551
|
clone.#_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo = [values.attribution];
|
|
@@ -553,12 +554,12 @@ var Object$1 = class Object$1 {
|
|
|
553
554
|
if ("attributions" in values && values.attributions != null) {
|
|
554
555
|
if ("attribution" in values && values.attribution != null) throw new TypeError("Cannot update both attribution and attributions at the same time.");
|
|
555
556
|
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)) {
|
|
556
|
-
clone.#_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo = values.attributions;
|
|
557
|
+
clone.#_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo = values.attributions.slice();
|
|
557
558
|
clone.#_trust_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo = /* @__PURE__ */ new Set();
|
|
558
559
|
for (let i = 0; i < values.attributions.length; i++) clone.#_trust_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo.add(i);
|
|
559
560
|
} else throw new TypeError("The attributions must be an array of type Application | Group | Organization | Person | Service | URL.");
|
|
560
561
|
}
|
|
561
|
-
clone.#_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience = this.#_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience;
|
|
562
|
+
clone.#_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience = this.#_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience.slice();
|
|
562
563
|
clone.#_trust_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience = new Set(this.#_trust_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience);
|
|
563
564
|
if ("audience" in values && values.audience != null) if (values.audience instanceof Object$1 || values.audience instanceof URL) {
|
|
564
565
|
clone.#_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience = [values.audience];
|
|
@@ -567,45 +568,45 @@ var Object$1 = class Object$1 {
|
|
|
567
568
|
if ("audiences" in values && values.audiences != null) {
|
|
568
569
|
if ("audience" in values && values.audience != null) throw new TypeError("Cannot update both audience and audiences at the same time.");
|
|
569
570
|
if (Array.isArray(values.audiences) && values.audiences.every((v) => v instanceof Object$1 || v instanceof URL)) {
|
|
570
|
-
clone.#_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience = values.audiences;
|
|
571
|
+
clone.#_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience = values.audiences.slice();
|
|
571
572
|
clone.#_trust_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience = /* @__PURE__ */ new Set();
|
|
572
573
|
for (let i = 0; i < values.audiences.length; i++) clone.#_trust_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience.add(i);
|
|
573
574
|
} else throw new TypeError("The audiences must be an array of type Object | URL.");
|
|
574
575
|
}
|
|
575
|
-
clone.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content = this.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content;
|
|
576
|
+
clone.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content = this.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content.slice();
|
|
576
577
|
if ("content" in values && values.content != null) if (typeof values.content === "string" || values.content instanceof LanguageString) clone.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content = [values.content];
|
|
577
578
|
else throw new TypeError("The content must be of type string | LanguageString.");
|
|
578
579
|
if ("contents" in values && values.contents != null) {
|
|
579
580
|
if ("content" in values && values.content != null) throw new TypeError("Cannot update both content and contents at the same time.");
|
|
580
|
-
if (Array.isArray(values.contents) && values.contents.every((v) => typeof v === "string" || v instanceof LanguageString)) clone.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content = values.contents;
|
|
581
|
+
if (Array.isArray(values.contents) && values.contents.every((v) => typeof v === "string" || v instanceof LanguageString)) clone.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content = values.contents.slice();
|
|
581
582
|
else throw new TypeError("The contents must be an array of type string | LanguageString.");
|
|
582
583
|
}
|
|
583
|
-
clone.#_3mhZzGXSpQ431mBSz2kvych22v4e_context = this.#_3mhZzGXSpQ431mBSz2kvych22v4e_context;
|
|
584
|
+
clone.#_3mhZzGXSpQ431mBSz2kvych22v4e_context = this.#_3mhZzGXSpQ431mBSz2kvych22v4e_context.slice();
|
|
584
585
|
clone.#_trust_3mhZzGXSpQ431mBSz2kvych22v4e_context = new Set(this.#_trust_3mhZzGXSpQ431mBSz2kvych22v4e_context);
|
|
585
586
|
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)) {
|
|
586
|
-
clone.#_3mhZzGXSpQ431mBSz2kvych22v4e_context = values.contexts;
|
|
587
|
+
clone.#_3mhZzGXSpQ431mBSz2kvych22v4e_context = values.contexts.slice();
|
|
587
588
|
clone.#_trust_3mhZzGXSpQ431mBSz2kvych22v4e_context = /* @__PURE__ */ new Set();
|
|
588
589
|
for (let i = 0; i < values.contexts.length; i++) clone.#_trust_3mhZzGXSpQ431mBSz2kvych22v4e_context.add(i);
|
|
589
590
|
} else throw new TypeError("The contexts must be an array of type Object | Link | URL.");
|
|
590
|
-
clone.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name;
|
|
591
|
+
clone.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name.slice();
|
|
591
592
|
if ("name" in values && values.name != null) if (typeof values.name === "string" || values.name instanceof LanguageString) clone.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = [values.name];
|
|
592
593
|
else throw new TypeError("The name must be of type string | LanguageString.");
|
|
593
594
|
if ("names" in values && values.names != null) {
|
|
594
595
|
if ("name" in values && values.name != null) throw new TypeError("Cannot update both name and names at the same time.");
|
|
595
|
-
if (Array.isArray(values.names) && values.names.every((v) => typeof v === "string" || v instanceof LanguageString)) clone.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = values.names;
|
|
596
|
+
if (Array.isArray(values.names) && values.names.every((v) => typeof v === "string" || v instanceof LanguageString)) clone.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = values.names.slice();
|
|
596
597
|
else throw new TypeError("The names must be an array of type string | LanguageString.");
|
|
597
598
|
}
|
|
598
|
-
clone.#_219RwDanjScTv5tYCjwGZVCM7KZ9_endTime = this.#_219RwDanjScTv5tYCjwGZVCM7KZ9_endTime;
|
|
599
|
+
clone.#_219RwDanjScTv5tYCjwGZVCM7KZ9_endTime = this.#_219RwDanjScTv5tYCjwGZVCM7KZ9_endTime.slice();
|
|
599
600
|
if ("endTime" in values && values.endTime != null) if (isTemporalInstant(values.endTime)) clone.#_219RwDanjScTv5tYCjwGZVCM7KZ9_endTime = [values.endTime];
|
|
600
601
|
else throw new TypeError("The endTime must be of type Temporal.Instant.");
|
|
601
|
-
clone.#_86xFhmgBapoMvYqjbjRuDPayTrS_generator = this.#_86xFhmgBapoMvYqjbjRuDPayTrS_generator;
|
|
602
|
+
clone.#_86xFhmgBapoMvYqjbjRuDPayTrS_generator = this.#_86xFhmgBapoMvYqjbjRuDPayTrS_generator.slice();
|
|
602
603
|
clone.#_trust_86xFhmgBapoMvYqjbjRuDPayTrS_generator = new Set(this.#_trust_86xFhmgBapoMvYqjbjRuDPayTrS_generator);
|
|
603
604
|
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)) {
|
|
604
|
-
clone.#_86xFhmgBapoMvYqjbjRuDPayTrS_generator = values.generators;
|
|
605
|
+
clone.#_86xFhmgBapoMvYqjbjRuDPayTrS_generator = values.generators.slice();
|
|
605
606
|
clone.#_trust_86xFhmgBapoMvYqjbjRuDPayTrS_generator = /* @__PURE__ */ new Set();
|
|
606
607
|
for (let i = 0; i < values.generators.length; i++) clone.#_trust_86xFhmgBapoMvYqjbjRuDPayTrS_generator.add(i);
|
|
607
608
|
} else throw new TypeError("The generators must be an array of type Object | Link | URL.");
|
|
608
|
-
clone.#_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon = this.#_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon;
|
|
609
|
+
clone.#_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon = this.#_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon.slice();
|
|
609
610
|
clone.#_trust_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon = new Set(this.#_trust_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon);
|
|
610
611
|
if ("icon" in values && values.icon != null) if (values.icon instanceof Image || values.icon instanceof URL) {
|
|
611
612
|
clone.#_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon = [values.icon];
|
|
@@ -614,12 +615,12 @@ var Object$1 = class Object$1 {
|
|
|
614
615
|
if ("icons" in values && values.icons != null) {
|
|
615
616
|
if ("icon" in values && values.icon != null) throw new TypeError("Cannot update both icon and icons at the same time.");
|
|
616
617
|
if (Array.isArray(values.icons) && values.icons.every((v) => v instanceof Image || v instanceof URL)) {
|
|
617
|
-
clone.#_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon = values.icons;
|
|
618
|
+
clone.#_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon = values.icons.slice();
|
|
618
619
|
clone.#_trust_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon = /* @__PURE__ */ new Set();
|
|
619
620
|
for (let i = 0; i < values.icons.length; i++) clone.#_trust_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon.add(i);
|
|
620
621
|
} else throw new TypeError("The icons must be an array of type Image | URL.");
|
|
621
622
|
}
|
|
622
|
-
clone.#_3dXrUdkARxwyJLtJcYi1AJ92H41U_image = this.#_3dXrUdkARxwyJLtJcYi1AJ92H41U_image;
|
|
623
|
+
clone.#_3dXrUdkARxwyJLtJcYi1AJ92H41U_image = this.#_3dXrUdkARxwyJLtJcYi1AJ92H41U_image.slice();
|
|
623
624
|
clone.#_trust_3dXrUdkARxwyJLtJcYi1AJ92H41U_image = new Set(this.#_trust_3dXrUdkARxwyJLtJcYi1AJ92H41U_image);
|
|
624
625
|
if ("image" in values && values.image != null) if (values.image instanceof Image || values.image instanceof URL) {
|
|
625
626
|
clone.#_3dXrUdkARxwyJLtJcYi1AJ92H41U_image = [values.image];
|
|
@@ -628,12 +629,12 @@ var Object$1 = class Object$1 {
|
|
|
628
629
|
if ("images" in values && values.images != null) {
|
|
629
630
|
if ("image" in values && values.image != null) throw new TypeError("Cannot update both image and images at the same time.");
|
|
630
631
|
if (Array.isArray(values.images) && values.images.every((v) => v instanceof Image || v instanceof URL)) {
|
|
631
|
-
clone.#_3dXrUdkARxwyJLtJcYi1AJ92H41U_image = values.images;
|
|
632
|
+
clone.#_3dXrUdkARxwyJLtJcYi1AJ92H41U_image = values.images.slice();
|
|
632
633
|
clone.#_trust_3dXrUdkARxwyJLtJcYi1AJ92H41U_image = /* @__PURE__ */ new Set();
|
|
633
634
|
for (let i = 0; i < values.images.length; i++) clone.#_trust_3dXrUdkARxwyJLtJcYi1AJ92H41U_image.add(i);
|
|
634
635
|
} else throw new TypeError("The images must be an array of type Image | URL.");
|
|
635
636
|
}
|
|
636
|
-
clone.#_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo = this.#_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo;
|
|
637
|
+
clone.#_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo = this.#_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo.slice();
|
|
637
638
|
clone.#_trust_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo = new Set(this.#_trust_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo);
|
|
638
639
|
if ("replyTarget" in values && values.replyTarget != null) if (values.replyTarget instanceof Object$1 || values.replyTarget instanceof Link || values.replyTarget instanceof URL) {
|
|
639
640
|
clone.#_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo = [values.replyTarget];
|
|
@@ -642,12 +643,12 @@ var Object$1 = class Object$1 {
|
|
|
642
643
|
if ("replyTargets" in values && values.replyTargets != null) {
|
|
643
644
|
if ("replyTarget" in values && values.replyTarget != null) throw new TypeError("Cannot update both replyTarget and replyTargets at the same time.");
|
|
644
645
|
if (Array.isArray(values.replyTargets) && values.replyTargets.every((v) => v instanceof Object$1 || v instanceof Link || v instanceof URL)) {
|
|
645
|
-
clone.#_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo = values.replyTargets;
|
|
646
|
+
clone.#_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo = values.replyTargets.slice();
|
|
646
647
|
clone.#_trust_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo = /* @__PURE__ */ new Set();
|
|
647
648
|
for (let i = 0; i < values.replyTargets.length; i++) clone.#_trust_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo.add(i);
|
|
648
649
|
} else throw new TypeError("The replyTargets must be an array of type Object | Link | URL.");
|
|
649
650
|
}
|
|
650
|
-
clone.#_31k5MUZJsnsPNg8dQQJieWaXTFnR_location = this.#_31k5MUZJsnsPNg8dQQJieWaXTFnR_location;
|
|
651
|
+
clone.#_31k5MUZJsnsPNg8dQQJieWaXTFnR_location = this.#_31k5MUZJsnsPNg8dQQJieWaXTFnR_location.slice();
|
|
651
652
|
clone.#_trust_31k5MUZJsnsPNg8dQQJieWaXTFnR_location = new Set(this.#_trust_31k5MUZJsnsPNg8dQQJieWaXTFnR_location);
|
|
652
653
|
if ("location" in values && values.location != null) if (values.location instanceof Object$1 || values.location instanceof Link || values.location instanceof URL) {
|
|
653
654
|
clone.#_31k5MUZJsnsPNg8dQQJieWaXTFnR_location = [values.location];
|
|
@@ -656,12 +657,12 @@ var Object$1 = class Object$1 {
|
|
|
656
657
|
if ("locations" in values && values.locations != null) {
|
|
657
658
|
if ("location" in values && values.location != null) throw new TypeError("Cannot update both location and locations at the same time.");
|
|
658
659
|
if (Array.isArray(values.locations) && values.locations.every((v) => v instanceof Object$1 || v instanceof Link || v instanceof URL)) {
|
|
659
|
-
clone.#_31k5MUZJsnsPNg8dQQJieWaXTFnR_location = values.locations;
|
|
660
|
+
clone.#_31k5MUZJsnsPNg8dQQJieWaXTFnR_location = values.locations.slice();
|
|
660
661
|
clone.#_trust_31k5MUZJsnsPNg8dQQJieWaXTFnR_location = /* @__PURE__ */ new Set();
|
|
661
662
|
for (let i = 0; i < values.locations.length; i++) clone.#_trust_31k5MUZJsnsPNg8dQQJieWaXTFnR_location.add(i);
|
|
662
663
|
} else throw new TypeError("The locations must be an array of type Object | Link | URL.");
|
|
663
664
|
}
|
|
664
|
-
clone.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview = this.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview;
|
|
665
|
+
clone.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview = this.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview.slice();
|
|
665
666
|
clone.#_trust_gCVTegXxWWCw6wWRxa1QF65zusg_preview = new Set(this.#_trust_gCVTegXxWWCw6wWRxa1QF65zusg_preview);
|
|
666
667
|
if ("preview" in values && values.preview != null) if (values.preview instanceof Link || values.preview instanceof Object$1 || values.preview instanceof URL) {
|
|
667
668
|
clone.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview = [values.preview];
|
|
@@ -670,68 +671,68 @@ var Object$1 = class Object$1 {
|
|
|
670
671
|
if ("previews" in values && values.previews != null) {
|
|
671
672
|
if ("preview" in values && values.preview != null) throw new TypeError("Cannot update both preview and previews at the same time.");
|
|
672
673
|
if (Array.isArray(values.previews) && values.previews.every((v) => v instanceof Link || v instanceof Object$1 || v instanceof URL)) {
|
|
673
|
-
clone.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview = values.previews;
|
|
674
|
+
clone.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview = values.previews.slice();
|
|
674
675
|
clone.#_trust_gCVTegXxWWCw6wWRxa1QF65zusg_preview = /* @__PURE__ */ new Set();
|
|
675
676
|
for (let i = 0; i < values.previews.length; i++) clone.#_trust_gCVTegXxWWCw6wWRxa1QF65zusg_preview.add(i);
|
|
676
677
|
} else throw new TypeError("The previews must be an array of type Link | Object | URL.");
|
|
677
678
|
}
|
|
678
|
-
clone.#_5e258TDXtuhaFRPZiGoDfEpjdMr_published = this.#_5e258TDXtuhaFRPZiGoDfEpjdMr_published;
|
|
679
|
+
clone.#_5e258TDXtuhaFRPZiGoDfEpjdMr_published = this.#_5e258TDXtuhaFRPZiGoDfEpjdMr_published.slice();
|
|
679
680
|
if ("published" in values && values.published != null) if (isTemporalInstant(values.published)) clone.#_5e258TDXtuhaFRPZiGoDfEpjdMr_published = [values.published];
|
|
680
681
|
else throw new TypeError("The published must be of type Temporal.Instant.");
|
|
681
|
-
clone.#_7UpwM3JWcXhADcscukEehBorf6k_replies = this.#_7UpwM3JWcXhADcscukEehBorf6k_replies;
|
|
682
|
+
clone.#_7UpwM3JWcXhADcscukEehBorf6k_replies = this.#_7UpwM3JWcXhADcscukEehBorf6k_replies.slice();
|
|
682
683
|
clone.#_trust_7UpwM3JWcXhADcscukEehBorf6k_replies = new Set(this.#_trust_7UpwM3JWcXhADcscukEehBorf6k_replies);
|
|
683
684
|
if ("replies" in values && values.replies != null) if (values.replies instanceof Collection || values.replies instanceof URL) {
|
|
684
685
|
clone.#_7UpwM3JWcXhADcscukEehBorf6k_replies = [values.replies];
|
|
685
686
|
clone.#_trust_7UpwM3JWcXhADcscukEehBorf6k_replies = new Set([0]);
|
|
686
687
|
} else throw new TypeError("The replies must be of type Collection | URL.");
|
|
687
|
-
clone.#_3kAfck9PcEYt2L7xug5y99YPbANs_shares = this.#_3kAfck9PcEYt2L7xug5y99YPbANs_shares;
|
|
688
|
+
clone.#_3kAfck9PcEYt2L7xug5y99YPbANs_shares = this.#_3kAfck9PcEYt2L7xug5y99YPbANs_shares.slice();
|
|
688
689
|
clone.#_trust_3kAfck9PcEYt2L7xug5y99YPbANs_shares = new Set(this.#_trust_3kAfck9PcEYt2L7xug5y99YPbANs_shares);
|
|
689
690
|
if ("shares" in values && values.shares != null) if (values.shares instanceof Collection || values.shares instanceof URL) {
|
|
690
691
|
clone.#_3kAfck9PcEYt2L7xug5y99YPbANs_shares = [values.shares];
|
|
691
692
|
clone.#_trust_3kAfck9PcEYt2L7xug5y99YPbANs_shares = new Set([0]);
|
|
692
693
|
} else throw new TypeError("The shares must be of type Collection | URL.");
|
|
693
|
-
clone.#_S3ceDnpMdzoTRCccB9FkJWrEzYW_likes = this.#_S3ceDnpMdzoTRCccB9FkJWrEzYW_likes;
|
|
694
|
+
clone.#_S3ceDnpMdzoTRCccB9FkJWrEzYW_likes = this.#_S3ceDnpMdzoTRCccB9FkJWrEzYW_likes.slice();
|
|
694
695
|
clone.#_trust_S3ceDnpMdzoTRCccB9FkJWrEzYW_likes = new Set(this.#_trust_S3ceDnpMdzoTRCccB9FkJWrEzYW_likes);
|
|
695
696
|
if ("likes" in values && values.likes != null) if (values.likes instanceof Collection || values.likes instanceof URL) {
|
|
696
697
|
clone.#_S3ceDnpMdzoTRCccB9FkJWrEzYW_likes = [values.likes];
|
|
697
698
|
clone.#_trust_S3ceDnpMdzoTRCccB9FkJWrEzYW_likes = new Set([0]);
|
|
698
699
|
} else throw new TypeError("The likes must be of type Collection | URL.");
|
|
699
|
-
clone.#_kMatyyNAuxoTD8GQMBfA5ogThMR_emojiReactions = this.#_kMatyyNAuxoTD8GQMBfA5ogThMR_emojiReactions;
|
|
700
|
+
clone.#_kMatyyNAuxoTD8GQMBfA5ogThMR_emojiReactions = this.#_kMatyyNAuxoTD8GQMBfA5ogThMR_emojiReactions.slice();
|
|
700
701
|
clone.#_trust_kMatyyNAuxoTD8GQMBfA5ogThMR_emojiReactions = new Set(this.#_trust_kMatyyNAuxoTD8GQMBfA5ogThMR_emojiReactions);
|
|
701
702
|
if ("emojiReactions" in values && values.emojiReactions != null) if (values.emojiReactions instanceof Collection || values.emojiReactions instanceof URL) {
|
|
702
703
|
clone.#_kMatyyNAuxoTD8GQMBfA5ogThMR_emojiReactions = [values.emojiReactions];
|
|
703
704
|
clone.#_trust_kMatyyNAuxoTD8GQMBfA5ogThMR_emojiReactions = new Set([0]);
|
|
704
705
|
} else throw new TypeError("The emojiReactions must be of type Collection | URL.");
|
|
705
|
-
clone.#_2w3Jmue4up8iVDUA51WZqomEF438_startTime = this.#_2w3Jmue4up8iVDUA51WZqomEF438_startTime;
|
|
706
|
+
clone.#_2w3Jmue4up8iVDUA51WZqomEF438_startTime = this.#_2w3Jmue4up8iVDUA51WZqomEF438_startTime.slice();
|
|
706
707
|
if ("startTime" in values && values.startTime != null) if (isTemporalInstant(values.startTime)) clone.#_2w3Jmue4up8iVDUA51WZqomEF438_startTime = [values.startTime];
|
|
707
708
|
else throw new TypeError("The startTime must be of type Temporal.Instant.");
|
|
708
|
-
clone.#_4LqirZspQbFWWQEbFcXAxm7tTDN1_summary = this.#_4LqirZspQbFWWQEbFcXAxm7tTDN1_summary;
|
|
709
|
+
clone.#_4LqirZspQbFWWQEbFcXAxm7tTDN1_summary = this.#_4LqirZspQbFWWQEbFcXAxm7tTDN1_summary.slice();
|
|
709
710
|
if ("summary" in values && values.summary != null) if (typeof values.summary === "string" || values.summary instanceof LanguageString) clone.#_4LqirZspQbFWWQEbFcXAxm7tTDN1_summary = [values.summary];
|
|
710
711
|
else throw new TypeError("The summary must be of type string | LanguageString.");
|
|
711
712
|
if ("summaries" in values && values.summaries != null) {
|
|
712
713
|
if ("summary" in values && values.summary != null) throw new TypeError("Cannot update both summary and summaries at the same time.");
|
|
713
|
-
if (Array.isArray(values.summaries) && values.summaries.every((v) => typeof v === "string" || v instanceof LanguageString)) clone.#_4LqirZspQbFWWQEbFcXAxm7tTDN1_summary = values.summaries;
|
|
714
|
+
if (Array.isArray(values.summaries) && values.summaries.every((v) => typeof v === "string" || v instanceof LanguageString)) clone.#_4LqirZspQbFWWQEbFcXAxm7tTDN1_summary = values.summaries.slice();
|
|
714
715
|
else throw new TypeError("The summaries must be an array of type string | LanguageString.");
|
|
715
716
|
}
|
|
716
|
-
clone.#_5chuqj6s95p5gg2sk1HntGfarRf_tag = this.#_5chuqj6s95p5gg2sk1HntGfarRf_tag;
|
|
717
|
+
clone.#_5chuqj6s95p5gg2sk1HntGfarRf_tag = this.#_5chuqj6s95p5gg2sk1HntGfarRf_tag.slice();
|
|
717
718
|
clone.#_trust_5chuqj6s95p5gg2sk1HntGfarRf_tag = new Set(this.#_trust_5chuqj6s95p5gg2sk1HntGfarRf_tag);
|
|
718
719
|
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)) {
|
|
719
|
-
clone.#_5chuqj6s95p5gg2sk1HntGfarRf_tag = values.tags;
|
|
720
|
+
clone.#_5chuqj6s95p5gg2sk1HntGfarRf_tag = values.tags.slice();
|
|
720
721
|
clone.#_trust_5chuqj6s95p5gg2sk1HntGfarRf_tag = /* @__PURE__ */ new Set();
|
|
721
722
|
for (let i = 0; i < values.tags.length; i++) clone.#_trust_5chuqj6s95p5gg2sk1HntGfarRf_tag.add(i);
|
|
722
723
|
} else throw new TypeError("The tags must be an array of type Object | Link | URL.");
|
|
723
|
-
clone.#_385aB7ySixcf5Un6z3VsWmThgCzQ_updated = this.#_385aB7ySixcf5Un6z3VsWmThgCzQ_updated;
|
|
724
|
+
clone.#_385aB7ySixcf5Un6z3VsWmThgCzQ_updated = this.#_385aB7ySixcf5Un6z3VsWmThgCzQ_updated.slice();
|
|
724
725
|
if ("updated" in values && values.updated != null) if (isTemporalInstant(values.updated)) clone.#_385aB7ySixcf5Un6z3VsWmThgCzQ_updated = [values.updated];
|
|
725
726
|
else throw new TypeError("The updated must be of type Temporal.Instant.");
|
|
726
|
-
clone.#_2oPEH9MQ3aj8JVwyYuWkqoVwV865_url = this.#_2oPEH9MQ3aj8JVwyYuWkqoVwV865_url;
|
|
727
|
+
clone.#_2oPEH9MQ3aj8JVwyYuWkqoVwV865_url = this.#_2oPEH9MQ3aj8JVwyYuWkqoVwV865_url.slice();
|
|
727
728
|
if ("url" in values && values.url != null) if (values.url instanceof URL || values.url instanceof Link) clone.#_2oPEH9MQ3aj8JVwyYuWkqoVwV865_url = [values.url];
|
|
728
729
|
else throw new TypeError("The url must be of type URL | Link.");
|
|
729
730
|
if ("urls" in values && values.urls != null) {
|
|
730
731
|
if ("url" in values && values.url != null) throw new TypeError("Cannot update both url and urls at the same time.");
|
|
731
|
-
if (Array.isArray(values.urls) && values.urls.every((v) => v instanceof URL || v instanceof Link)) clone.#_2oPEH9MQ3aj8JVwyYuWkqoVwV865_url = values.urls;
|
|
732
|
+
if (Array.isArray(values.urls) && values.urls.every((v) => v instanceof URL || v instanceof Link)) clone.#_2oPEH9MQ3aj8JVwyYuWkqoVwV865_url = values.urls.slice();
|
|
732
733
|
else throw new TypeError("The urls must be an array of type URL | Link.");
|
|
733
734
|
}
|
|
734
|
-
clone.#_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to = this.#_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to;
|
|
735
|
+
clone.#_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to = this.#_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to.slice();
|
|
735
736
|
clone.#_trust_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to = new Set(this.#_trust_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to);
|
|
736
737
|
if ("to" in values && values.to != null) if (values.to instanceof Object$1 || values.to instanceof URL) {
|
|
737
738
|
clone.#_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to = [values.to];
|
|
@@ -740,12 +741,12 @@ var Object$1 = class Object$1 {
|
|
|
740
741
|
if ("tos" in values && values.tos != null) {
|
|
741
742
|
if ("to" in values && values.to != null) throw new TypeError("Cannot update both to and tos at the same time.");
|
|
742
743
|
if (Array.isArray(values.tos) && values.tos.every((v) => v instanceof Object$1 || v instanceof URL)) {
|
|
743
|
-
clone.#_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to = values.tos;
|
|
744
|
+
clone.#_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to = values.tos.slice();
|
|
744
745
|
clone.#_trust_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to = /* @__PURE__ */ new Set();
|
|
745
746
|
for (let i = 0; i < values.tos.length; i++) clone.#_trust_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to.add(i);
|
|
746
747
|
} else throw new TypeError("The tos must be an array of type Object | URL.");
|
|
747
748
|
}
|
|
748
|
-
clone.#_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto = this.#_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto;
|
|
749
|
+
clone.#_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto = this.#_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto.slice();
|
|
749
750
|
clone.#_trust_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto = new Set(this.#_trust_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto);
|
|
750
751
|
if ("bto" in values && values.bto != null) if (values.bto instanceof Object$1 || values.bto instanceof URL) {
|
|
751
752
|
clone.#_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto = [values.bto];
|
|
@@ -754,12 +755,12 @@ var Object$1 = class Object$1 {
|
|
|
754
755
|
if ("btos" in values && values.btos != null) {
|
|
755
756
|
if ("bto" in values && values.bto != null) throw new TypeError("Cannot update both bto and btos at the same time.");
|
|
756
757
|
if (Array.isArray(values.btos) && values.btos.every((v) => v instanceof Object$1 || v instanceof URL)) {
|
|
757
|
-
clone.#_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto = values.btos;
|
|
758
|
+
clone.#_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto = values.btos.slice();
|
|
758
759
|
clone.#_trust_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto = /* @__PURE__ */ new Set();
|
|
759
760
|
for (let i = 0; i < values.btos.length; i++) clone.#_trust_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto.add(i);
|
|
760
761
|
} else throw new TypeError("The btos must be an array of type Object | URL.");
|
|
761
762
|
}
|
|
762
|
-
clone.#_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc = this.#_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc;
|
|
763
|
+
clone.#_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc = this.#_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc.slice();
|
|
763
764
|
clone.#_trust_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc = new Set(this.#_trust_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc);
|
|
764
765
|
if ("cc" in values && values.cc != null) if (values.cc instanceof Object$1 || values.cc instanceof URL) {
|
|
765
766
|
clone.#_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc = [values.cc];
|
|
@@ -768,12 +769,12 @@ var Object$1 = class Object$1 {
|
|
|
768
769
|
if ("ccs" in values && values.ccs != null) {
|
|
769
770
|
if ("cc" in values && values.cc != null) throw new TypeError("Cannot update both cc and ccs at the same time.");
|
|
770
771
|
if (Array.isArray(values.ccs) && values.ccs.every((v) => v instanceof Object$1 || v instanceof URL)) {
|
|
771
|
-
clone.#_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc = values.ccs;
|
|
772
|
+
clone.#_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc = values.ccs.slice();
|
|
772
773
|
clone.#_trust_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc = /* @__PURE__ */ new Set();
|
|
773
774
|
for (let i = 0; i < values.ccs.length; i++) clone.#_trust_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc.add(i);
|
|
774
775
|
} else throw new TypeError("The ccs must be an array of type Object | URL.");
|
|
775
776
|
}
|
|
776
|
-
clone.#_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc = this.#_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc;
|
|
777
|
+
clone.#_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc = this.#_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc.slice();
|
|
777
778
|
clone.#_trust_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc = new Set(this.#_trust_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc);
|
|
778
779
|
if ("bcc" in values && values.bcc != null) if (values.bcc instanceof Object$1 || values.bcc instanceof URL) {
|
|
779
780
|
clone.#_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc = [values.bcc];
|
|
@@ -782,24 +783,24 @@ var Object$1 = class Object$1 {
|
|
|
782
783
|
if ("bccs" in values && values.bccs != null) {
|
|
783
784
|
if ("bcc" in values && values.bcc != null) throw new TypeError("Cannot update both bcc and bccs at the same time.");
|
|
784
785
|
if (Array.isArray(values.bccs) && values.bccs.every((v) => v instanceof Object$1 || v instanceof URL)) {
|
|
785
|
-
clone.#_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc = values.bccs;
|
|
786
|
+
clone.#_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc = values.bccs.slice();
|
|
786
787
|
clone.#_trust_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc = /* @__PURE__ */ new Set();
|
|
787
788
|
for (let i = 0; i < values.bccs.length; i++) clone.#_trust_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc.add(i);
|
|
788
789
|
} else throw new TypeError("The bccs must be an array of type Object | URL.");
|
|
789
790
|
}
|
|
790
|
-
clone.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType = this.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType;
|
|
791
|
+
clone.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType = this.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType.slice();
|
|
791
792
|
if ("mediaType" in values && values.mediaType != null) if (typeof values.mediaType === "string") clone.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType = [values.mediaType];
|
|
792
793
|
else throw new TypeError("The mediaType must be of type string.");
|
|
793
|
-
clone.#_3bNvLMBN1bCJETiTihM3wvi1B2JX_duration = this.#_3bNvLMBN1bCJETiTihM3wvi1B2JX_duration;
|
|
794
|
+
clone.#_3bNvLMBN1bCJETiTihM3wvi1B2JX_duration = this.#_3bNvLMBN1bCJETiTihM3wvi1B2JX_duration.slice();
|
|
794
795
|
if ("duration" in values && values.duration != null) if (isTemporalDuration(values.duration)) clone.#_3bNvLMBN1bCJETiTihM3wvi1B2JX_duration = [values.duration];
|
|
795
796
|
else throw new TypeError("The duration must be of type Temporal.Duration.");
|
|
796
|
-
clone.#_u8gdcDTtChQ4tbSQMXc4cYWyum7_sensitive = this.#_u8gdcDTtChQ4tbSQMXc4cYWyum7_sensitive;
|
|
797
|
+
clone.#_u8gdcDTtChQ4tbSQMXc4cYWyum7_sensitive = this.#_u8gdcDTtChQ4tbSQMXc4cYWyum7_sensitive.slice();
|
|
797
798
|
if ("sensitive" in values && values.sensitive != null) if (typeof values.sensitive === "boolean") clone.#_u8gdcDTtChQ4tbSQMXc4cYWyum7_sensitive = [values.sensitive];
|
|
798
799
|
else throw new TypeError("The sensitive must be of type boolean.");
|
|
799
|
-
clone.#_2ZwCFoS787v8y8bXKjMoE6MAbrEB_source = this.#_2ZwCFoS787v8y8bXKjMoE6MAbrEB_source;
|
|
800
|
+
clone.#_2ZwCFoS787v8y8bXKjMoE6MAbrEB_source = this.#_2ZwCFoS787v8y8bXKjMoE6MAbrEB_source.slice();
|
|
800
801
|
if ("source" in values && values.source != null) if (values.source instanceof Source) clone.#_2ZwCFoS787v8y8bXKjMoE6MAbrEB_source = [values.source];
|
|
801
802
|
else throw new TypeError("The source must be of type Source.");
|
|
802
|
-
clone.#_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof = this.#_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof;
|
|
803
|
+
clone.#_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof = this.#_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof.slice();
|
|
803
804
|
clone.#_trust_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof = new Set(this.#_trust_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof);
|
|
804
805
|
if ("proof" in values && values.proof != null) if (values.proof instanceof DataIntegrityProof || values.proof instanceof URL) {
|
|
805
806
|
clone.#_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof = [values.proof];
|
|
@@ -808,30 +809,30 @@ var Object$1 = class Object$1 {
|
|
|
808
809
|
if ("proofs" in values && values.proofs != null) {
|
|
809
810
|
if ("proof" in values && values.proof != null) throw new TypeError("Cannot update both proof and proofs at the same time.");
|
|
810
811
|
if (Array.isArray(values.proofs) && values.proofs.every((v) => v instanceof DataIntegrityProof || v instanceof URL)) {
|
|
811
|
-
clone.#_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof = values.proofs;
|
|
812
|
+
clone.#_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof = values.proofs.slice();
|
|
812
813
|
clone.#_trust_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof = /* @__PURE__ */ new Set();
|
|
813
814
|
for (let i = 0; i < values.proofs.length; i++) clone.#_trust_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof.add(i);
|
|
814
815
|
} else throw new TypeError("The proofs must be an array of type DataIntegrityProof | URL.");
|
|
815
816
|
}
|
|
816
|
-
clone.#_2MHQfh2N74MMmDLDqYWFo7TxYQK2_interactionPolicy = this.#_2MHQfh2N74MMmDLDqYWFo7TxYQK2_interactionPolicy;
|
|
817
|
+
clone.#_2MHQfh2N74MMmDLDqYWFo7TxYQK2_interactionPolicy = this.#_2MHQfh2N74MMmDLDqYWFo7TxYQK2_interactionPolicy.slice();
|
|
817
818
|
if ("interactionPolicy" in values && values.interactionPolicy != null) if (values.interactionPolicy instanceof InteractionPolicy) clone.#_2MHQfh2N74MMmDLDqYWFo7TxYQK2_interactionPolicy = [values.interactionPolicy];
|
|
818
819
|
else throw new TypeError("The interactionPolicy must be of type InteractionPolicy.");
|
|
819
|
-
clone.#_23YiVs2miQcEiUdn4u8SvjQKWYim_approvedBy = this.#_23YiVs2miQcEiUdn4u8SvjQKWYim_approvedBy;
|
|
820
|
+
clone.#_23YiVs2miQcEiUdn4u8SvjQKWYim_approvedBy = this.#_23YiVs2miQcEiUdn4u8SvjQKWYim_approvedBy.slice();
|
|
820
821
|
if ("approvedBy" in values && values.approvedBy != null) if (values.approvedBy instanceof URL) clone.#_23YiVs2miQcEiUdn4u8SvjQKWYim_approvedBy = [values.approvedBy];
|
|
821
822
|
else throw new TypeError("The approvedBy must be of type URL.");
|
|
822
|
-
clone.#_3fCeb5aXaDDd4fvkQ96BLWifBUBa_likeAuthorization = this.#_3fCeb5aXaDDd4fvkQ96BLWifBUBa_likeAuthorization;
|
|
823
|
+
clone.#_3fCeb5aXaDDd4fvkQ96BLWifBUBa_likeAuthorization = this.#_3fCeb5aXaDDd4fvkQ96BLWifBUBa_likeAuthorization.slice();
|
|
823
824
|
clone.#_trust_3fCeb5aXaDDd4fvkQ96BLWifBUBa_likeAuthorization = new Set(this.#_trust_3fCeb5aXaDDd4fvkQ96BLWifBUBa_likeAuthorization);
|
|
824
825
|
if ("likeAuthorization" in values && values.likeAuthorization != null) if (values.likeAuthorization instanceof LikeAuthorization || values.likeAuthorization instanceof URL) {
|
|
825
826
|
clone.#_3fCeb5aXaDDd4fvkQ96BLWifBUBa_likeAuthorization = [values.likeAuthorization];
|
|
826
827
|
clone.#_trust_3fCeb5aXaDDd4fvkQ96BLWifBUBa_likeAuthorization = new Set([0]);
|
|
827
828
|
} else throw new TypeError("The likeAuthorization must be of type LikeAuthorization | URL.");
|
|
828
|
-
clone.#_YA4wdUW7rYztAQ6SjhMnJCmcmtP_replyAuthorization = this.#_YA4wdUW7rYztAQ6SjhMnJCmcmtP_replyAuthorization;
|
|
829
|
+
clone.#_YA4wdUW7rYztAQ6SjhMnJCmcmtP_replyAuthorization = this.#_YA4wdUW7rYztAQ6SjhMnJCmcmtP_replyAuthorization.slice();
|
|
829
830
|
clone.#_trust_YA4wdUW7rYztAQ6SjhMnJCmcmtP_replyAuthorization = new Set(this.#_trust_YA4wdUW7rYztAQ6SjhMnJCmcmtP_replyAuthorization);
|
|
830
831
|
if ("replyAuthorization" in values && values.replyAuthorization != null) if (values.replyAuthorization instanceof ReplyAuthorization || values.replyAuthorization instanceof URL) {
|
|
831
832
|
clone.#_YA4wdUW7rYztAQ6SjhMnJCmcmtP_replyAuthorization = [values.replyAuthorization];
|
|
832
833
|
clone.#_trust_YA4wdUW7rYztAQ6SjhMnJCmcmtP_replyAuthorization = new Set([0]);
|
|
833
834
|
} else throw new TypeError("The replyAuthorization must be of type ReplyAuthorization | URL.");
|
|
834
|
-
clone.#_446xEaDBs3Fz6MyzP3PSBaLupkbJ_announceAuthorization = this.#_446xEaDBs3Fz6MyzP3PSBaLupkbJ_announceAuthorization;
|
|
835
|
+
clone.#_446xEaDBs3Fz6MyzP3PSBaLupkbJ_announceAuthorization = this.#_446xEaDBs3Fz6MyzP3PSBaLupkbJ_announceAuthorization.slice();
|
|
835
836
|
clone.#_trust_446xEaDBs3Fz6MyzP3PSBaLupkbJ_announceAuthorization = new Set(this.#_trust_446xEaDBs3Fz6MyzP3PSBaLupkbJ_announceAuthorization);
|
|
836
837
|
if ("announceAuthorization" in values && values.announceAuthorization != null) if (values.announceAuthorization instanceof AnnounceAuthorization || values.announceAuthorization instanceof URL) {
|
|
837
838
|
clone.#_446xEaDBs3Fz6MyzP3PSBaLupkbJ_announceAuthorization = [values.announceAuthorization];
|
|
@@ -7214,7 +7215,8 @@ var Emoji = class Emoji extends Object$1 {
|
|
|
7214
7215
|
* Clones this instance, optionally updating it with the given values.
|
|
7215
7216
|
* @param values The values to update the clone with.
|
|
7216
7217
|
* @param options The options to use for cloning.
|
|
7217
|
-
* @returns The cloned instance.
|
|
7218
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
7219
|
+
* and URLs are shared with this instance.
|
|
7218
7220
|
*/
|
|
7219
7221
|
clone(values = {}, options = {}) {
|
|
7220
7222
|
if (this._warning != null) {
|
|
@@ -7396,7 +7398,8 @@ var ChatMessage = class ChatMessage extends Object$1 {
|
|
|
7396
7398
|
* Clones this instance, optionally updating it with the given values.
|
|
7397
7399
|
* @param values The values to update the clone with.
|
|
7398
7400
|
* @param options The options to use for cloning.
|
|
7399
|
-
* @returns The cloned instance.
|
|
7401
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
7402
|
+
* and URLs are shared with this instance.
|
|
7400
7403
|
*/
|
|
7401
7404
|
clone(values = {}, options = {}) {
|
|
7402
7405
|
if (this._warning != null) {
|
|
@@ -7407,16 +7410,16 @@ var ChatMessage = class ChatMessage extends Object$1 {
|
|
|
7407
7410
|
};
|
|
7408
7411
|
}
|
|
7409
7412
|
const clone = super.clone(values, options);
|
|
7410
|
-
clone.#_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote = this.#_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote;
|
|
7413
|
+
clone.#_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote = this.#_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote.slice();
|
|
7411
7414
|
clone.#_trust_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote = new Set(this.#_trust_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote);
|
|
7412
7415
|
if ("quote" in values && values.quote != null) if (values.quote instanceof Object$1 || values.quote instanceof URL) {
|
|
7413
7416
|
clone.#_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote = [values.quote];
|
|
7414
7417
|
clone.#_trust_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote = new Set([0]);
|
|
7415
7418
|
} else throw new TypeError("The quote must be of type Object | URL.");
|
|
7416
|
-
clone.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl = this.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl;
|
|
7419
|
+
clone.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl = this.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl.slice();
|
|
7417
7420
|
if ("quoteUrl" in values && values.quoteUrl != null) if (values.quoteUrl instanceof URL) clone.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl = [values.quoteUrl];
|
|
7418
7421
|
else throw new TypeError("The quoteUrl must be of type URL.");
|
|
7419
|
-
clone.#_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization = this.#_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization;
|
|
7422
|
+
clone.#_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization = this.#_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization.slice();
|
|
7420
7423
|
clone.#_trust_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization = new Set(this.#_trust_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization);
|
|
7421
7424
|
if ("quoteAuthorization" in values && values.quoteAuthorization != null) if (values.quoteAuthorization instanceof QuoteAuthorization || values.quoteAuthorization instanceof URL) {
|
|
7422
7425
|
clone.#_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization = [values.quoteAuthorization];
|
|
@@ -8051,7 +8054,7 @@ var Activity = class Activity extends Object$1 {
|
|
|
8051
8054
|
if ("actors" in values && values.actors != null) {
|
|
8052
8055
|
if ("actor" in values && values.actor != null) throw new TypeError("Cannot initialize both actor and actors at the same time.");
|
|
8053
8056
|
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)) {
|
|
8054
|
-
this.#_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor = values.actors;
|
|
8057
|
+
this.#_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor = values.actors.slice();
|
|
8055
8058
|
for (let i = 0; i < values.actors.length; i++) this.#_trust_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor.add(i);
|
|
8056
8059
|
} else throw new TypeError("The actors must be an array of type Application | Group | Organization | Person | Service | URL.");
|
|
8057
8060
|
}
|
|
@@ -8062,7 +8065,7 @@ var Activity = class Activity extends Object$1 {
|
|
|
8062
8065
|
if ("objects" in values && values.objects != null) {
|
|
8063
8066
|
if ("object" in values && values.object != null) throw new TypeError("Cannot initialize both object and objects at the same time.");
|
|
8064
8067
|
if (Array.isArray(values.objects) && values.objects.every((v) => v instanceof Object$1 || v instanceof URL)) {
|
|
8065
|
-
this.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = values.objects;
|
|
8068
|
+
this.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = values.objects.slice();
|
|
8066
8069
|
for (let i = 0; i < values.objects.length; i++) this.#_trust_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object.add(i);
|
|
8067
8070
|
} else throw new TypeError("The objects must be an array of type Object | URL.");
|
|
8068
8071
|
}
|
|
@@ -8073,7 +8076,7 @@ var Activity = class Activity extends Object$1 {
|
|
|
8073
8076
|
if ("targets" in values && values.targets != null) {
|
|
8074
8077
|
if ("target" in values && values.target != null) throw new TypeError("Cannot initialize both target and targets at the same time.");
|
|
8075
8078
|
if (Array.isArray(values.targets) && values.targets.every((v) => v instanceof Object$1 || v instanceof URL)) {
|
|
8076
|
-
this.#_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target = values.targets;
|
|
8079
|
+
this.#_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target = values.targets.slice();
|
|
8077
8080
|
for (let i = 0; i < values.targets.length; i++) this.#_trust_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target.add(i);
|
|
8078
8081
|
} else throw new TypeError("The targets must be an array of type Object | URL.");
|
|
8079
8082
|
}
|
|
@@ -8084,7 +8087,7 @@ var Activity = class Activity extends Object$1 {
|
|
|
8084
8087
|
if ("results" in values && values.results != null) {
|
|
8085
8088
|
if ("result" in values && values.result != null) throw new TypeError("Cannot initialize both result and results at the same time.");
|
|
8086
8089
|
if (Array.isArray(values.results) && values.results.every((v) => v instanceof Object$1 || v instanceof URL)) {
|
|
8087
|
-
this.#_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result = values.results;
|
|
8090
|
+
this.#_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result = values.results.slice();
|
|
8088
8091
|
for (let i = 0; i < values.results.length; i++) this.#_trust_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result.add(i);
|
|
8089
8092
|
} else throw new TypeError("The results must be an array of type Object | URL.");
|
|
8090
8093
|
}
|
|
@@ -8095,7 +8098,7 @@ var Activity = class Activity extends Object$1 {
|
|
|
8095
8098
|
if ("origins" in values && values.origins != null) {
|
|
8096
8099
|
if ("origin" in values && values.origin != null) throw new TypeError("Cannot initialize both origin and origins at the same time.");
|
|
8097
8100
|
if (Array.isArray(values.origins) && values.origins.every((v) => v instanceof Object$1 || v instanceof URL)) {
|
|
8098
|
-
this.#_25zu2s3VxVujgEKqrDycjE284XQR_origin = values.origins;
|
|
8101
|
+
this.#_25zu2s3VxVujgEKqrDycjE284XQR_origin = values.origins.slice();
|
|
8099
8102
|
for (let i = 0; i < values.origins.length; i++) this.#_trust_25zu2s3VxVujgEKqrDycjE284XQR_origin.add(i);
|
|
8100
8103
|
} else throw new TypeError("The origins must be an array of type Object | URL.");
|
|
8101
8104
|
}
|
|
@@ -8106,7 +8109,7 @@ var Activity = class Activity extends Object$1 {
|
|
|
8106
8109
|
if ("instruments" in values && values.instruments != null) {
|
|
8107
8110
|
if ("instrument" in values && values.instrument != null) throw new TypeError("Cannot initialize both instrument and instruments at the same time.");
|
|
8108
8111
|
if (Array.isArray(values.instruments) && values.instruments.every((v) => v instanceof Object$1 || v instanceof URL)) {
|
|
8109
|
-
this.#_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument = values.instruments;
|
|
8112
|
+
this.#_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument = values.instruments.slice();
|
|
8110
8113
|
for (let i = 0; i < values.instruments.length; i++) this.#_trust_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument.add(i);
|
|
8111
8114
|
} else throw new TypeError("The instruments must be an array of type Object | URL.");
|
|
8112
8115
|
}
|
|
@@ -8115,7 +8118,8 @@ var Activity = class Activity extends Object$1 {
|
|
|
8115
8118
|
* Clones this instance, optionally updating it with the given values.
|
|
8116
8119
|
* @param values The values to update the clone with.
|
|
8117
8120
|
* @param options The options to use for cloning.
|
|
8118
|
-
* @returns The cloned instance.
|
|
8121
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
8122
|
+
* and URLs are shared with this instance.
|
|
8119
8123
|
*/
|
|
8120
8124
|
clone(values = {}, options = {}) {
|
|
8121
8125
|
if (this._warning != null) {
|
|
@@ -8126,7 +8130,7 @@ var Activity = class Activity extends Object$1 {
|
|
|
8126
8130
|
};
|
|
8127
8131
|
}
|
|
8128
8132
|
const clone = super.clone(values, options);
|
|
8129
|
-
clone.#_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor = this.#_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor;
|
|
8133
|
+
clone.#_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor = this.#_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor.slice();
|
|
8130
8134
|
clone.#_trust_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor = new Set(this.#_trust_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor);
|
|
8131
8135
|
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) {
|
|
8132
8136
|
clone.#_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor = [values.actor];
|
|
@@ -8135,12 +8139,12 @@ var Activity = class Activity extends Object$1 {
|
|
|
8135
8139
|
if ("actors" in values && values.actors != null) {
|
|
8136
8140
|
if ("actor" in values && values.actor != null) throw new TypeError("Cannot update both actor and actors at the same time.");
|
|
8137
8141
|
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)) {
|
|
8138
|
-
clone.#_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor = values.actors;
|
|
8142
|
+
clone.#_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor = values.actors.slice();
|
|
8139
8143
|
clone.#_trust_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor = /* @__PURE__ */ new Set();
|
|
8140
8144
|
for (let i = 0; i < values.actors.length; i++) clone.#_trust_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor.add(i);
|
|
8141
8145
|
} else throw new TypeError("The actors must be an array of type Application | Group | Organization | Person | Service | URL.");
|
|
8142
8146
|
}
|
|
8143
|
-
clone.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = this.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object;
|
|
8147
|
+
clone.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = this.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object.slice();
|
|
8144
8148
|
clone.#_trust_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = new Set(this.#_trust_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object);
|
|
8145
8149
|
if ("object" in values && values.object != null) if (values.object instanceof Object$1 || values.object instanceof URL) {
|
|
8146
8150
|
clone.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = [values.object];
|
|
@@ -8149,12 +8153,12 @@ var Activity = class Activity extends Object$1 {
|
|
|
8149
8153
|
if ("objects" in values && values.objects != null) {
|
|
8150
8154
|
if ("object" in values && values.object != null) throw new TypeError("Cannot update both object and objects at the same time.");
|
|
8151
8155
|
if (Array.isArray(values.objects) && values.objects.every((v) => v instanceof Object$1 || v instanceof URL)) {
|
|
8152
|
-
clone.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = values.objects;
|
|
8156
|
+
clone.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = values.objects.slice();
|
|
8153
8157
|
clone.#_trust_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = /* @__PURE__ */ new Set();
|
|
8154
8158
|
for (let i = 0; i < values.objects.length; i++) clone.#_trust_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object.add(i);
|
|
8155
8159
|
} else throw new TypeError("The objects must be an array of type Object | URL.");
|
|
8156
8160
|
}
|
|
8157
|
-
clone.#_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target = this.#_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target;
|
|
8161
|
+
clone.#_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target = this.#_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target.slice();
|
|
8158
8162
|
clone.#_trust_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target = new Set(this.#_trust_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target);
|
|
8159
8163
|
if ("target" in values && values.target != null) if (values.target instanceof Object$1 || values.target instanceof URL) {
|
|
8160
8164
|
clone.#_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target = [values.target];
|
|
@@ -8163,12 +8167,12 @@ var Activity = class Activity extends Object$1 {
|
|
|
8163
8167
|
if ("targets" in values && values.targets != null) {
|
|
8164
8168
|
if ("target" in values && values.target != null) throw new TypeError("Cannot update both target and targets at the same time.");
|
|
8165
8169
|
if (Array.isArray(values.targets) && values.targets.every((v) => v instanceof Object$1 || v instanceof URL)) {
|
|
8166
|
-
clone.#_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target = values.targets;
|
|
8170
|
+
clone.#_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target = values.targets.slice();
|
|
8167
8171
|
clone.#_trust_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target = /* @__PURE__ */ new Set();
|
|
8168
8172
|
for (let i = 0; i < values.targets.length; i++) clone.#_trust_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target.add(i);
|
|
8169
8173
|
} else throw new TypeError("The targets must be an array of type Object | URL.");
|
|
8170
8174
|
}
|
|
8171
|
-
clone.#_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result = this.#_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result;
|
|
8175
|
+
clone.#_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result = this.#_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result.slice();
|
|
8172
8176
|
clone.#_trust_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result = new Set(this.#_trust_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result);
|
|
8173
8177
|
if ("result" in values && values.result != null) if (values.result instanceof Object$1 || values.result instanceof URL) {
|
|
8174
8178
|
clone.#_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result = [values.result];
|
|
@@ -8177,12 +8181,12 @@ var Activity = class Activity extends Object$1 {
|
|
|
8177
8181
|
if ("results" in values && values.results != null) {
|
|
8178
8182
|
if ("result" in values && values.result != null) throw new TypeError("Cannot update both result and results at the same time.");
|
|
8179
8183
|
if (Array.isArray(values.results) && values.results.every((v) => v instanceof Object$1 || v instanceof URL)) {
|
|
8180
|
-
clone.#_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result = values.results;
|
|
8184
|
+
clone.#_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result = values.results.slice();
|
|
8181
8185
|
clone.#_trust_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result = /* @__PURE__ */ new Set();
|
|
8182
8186
|
for (let i = 0; i < values.results.length; i++) clone.#_trust_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result.add(i);
|
|
8183
8187
|
} else throw new TypeError("The results must be an array of type Object | URL.");
|
|
8184
8188
|
}
|
|
8185
|
-
clone.#_25zu2s3VxVujgEKqrDycjE284XQR_origin = this.#_25zu2s3VxVujgEKqrDycjE284XQR_origin;
|
|
8189
|
+
clone.#_25zu2s3VxVujgEKqrDycjE284XQR_origin = this.#_25zu2s3VxVujgEKqrDycjE284XQR_origin.slice();
|
|
8186
8190
|
clone.#_trust_25zu2s3VxVujgEKqrDycjE284XQR_origin = new Set(this.#_trust_25zu2s3VxVujgEKqrDycjE284XQR_origin);
|
|
8187
8191
|
if ("origin" in values && values.origin != null) if (values.origin instanceof Object$1 || values.origin instanceof URL) {
|
|
8188
8192
|
clone.#_25zu2s3VxVujgEKqrDycjE284XQR_origin = [values.origin];
|
|
@@ -8191,12 +8195,12 @@ var Activity = class Activity extends Object$1 {
|
|
|
8191
8195
|
if ("origins" in values && values.origins != null) {
|
|
8192
8196
|
if ("origin" in values && values.origin != null) throw new TypeError("Cannot update both origin and origins at the same time.");
|
|
8193
8197
|
if (Array.isArray(values.origins) && values.origins.every((v) => v instanceof Object$1 || v instanceof URL)) {
|
|
8194
|
-
clone.#_25zu2s3VxVujgEKqrDycjE284XQR_origin = values.origins;
|
|
8198
|
+
clone.#_25zu2s3VxVujgEKqrDycjE284XQR_origin = values.origins.slice();
|
|
8195
8199
|
clone.#_trust_25zu2s3VxVujgEKqrDycjE284XQR_origin = /* @__PURE__ */ new Set();
|
|
8196
8200
|
for (let i = 0; i < values.origins.length; i++) clone.#_trust_25zu2s3VxVujgEKqrDycjE284XQR_origin.add(i);
|
|
8197
8201
|
} else throw new TypeError("The origins must be an array of type Object | URL.");
|
|
8198
8202
|
}
|
|
8199
|
-
clone.#_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument = this.#_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument;
|
|
8203
|
+
clone.#_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument = this.#_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument.slice();
|
|
8200
8204
|
clone.#_trust_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument = new Set(this.#_trust_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument);
|
|
8201
8205
|
if ("instrument" in values && values.instrument != null) if (values.instrument instanceof Object$1 || values.instrument instanceof URL) {
|
|
8202
8206
|
clone.#_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument = [values.instrument];
|
|
@@ -8205,7 +8209,7 @@ var Activity = class Activity extends Object$1 {
|
|
|
8205
8209
|
if ("instruments" in values && values.instruments != null) {
|
|
8206
8210
|
if ("instrument" in values && values.instrument != null) throw new TypeError("Cannot update both instrument and instruments at the same time.");
|
|
8207
8211
|
if (Array.isArray(values.instruments) && values.instruments.every((v) => v instanceof Object$1 || v instanceof URL)) {
|
|
8208
|
-
clone.#_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument = values.instruments;
|
|
8212
|
+
clone.#_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument = values.instruments.slice();
|
|
8209
8213
|
clone.#_trust_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument = /* @__PURE__ */ new Set();
|
|
8210
8214
|
for (let i = 0; i < values.instruments.length; i++) clone.#_trust_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument.add(i);
|
|
8211
8215
|
} else throw new TypeError("The instruments must be an array of type Object | URL.");
|
|
@@ -9796,7 +9800,8 @@ var EmojiReact = class EmojiReact extends Activity {
|
|
|
9796
9800
|
* Clones this instance, optionally updating it with the given values.
|
|
9797
9801
|
* @param values The values to update the clone with.
|
|
9798
9802
|
* @param options The options to use for cloning.
|
|
9799
|
-
* @returns The cloned instance.
|
|
9803
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
9804
|
+
* and URLs are shared with this instance.
|
|
9800
9805
|
*/
|
|
9801
9806
|
clone(values = {}, options = {}) {
|
|
9802
9807
|
if (this._warning != null) {
|
|
@@ -10006,7 +10011,8 @@ var PropertyValue = class {
|
|
|
10006
10011
|
* Clones this instance, optionally updating it with the given values.
|
|
10007
10012
|
* @param values The values to update the clone with.
|
|
10008
10013
|
* @param options The options to use for cloning.
|
|
10009
|
-
* @returns The cloned instance.
|
|
10014
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
10015
|
+
* and URLs are shared with this instance.
|
|
10010
10016
|
*/
|
|
10011
10017
|
clone(values = {}, options = {}) {
|
|
10012
10018
|
if (this._warning != null) {
|
|
@@ -10017,10 +10023,10 @@ var PropertyValue = class {
|
|
|
10017
10023
|
};
|
|
10018
10024
|
}
|
|
10019
10025
|
const clone = new this.constructor({ id: values.id ?? this.id }, options);
|
|
10020
|
-
clone.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name;
|
|
10026
|
+
clone.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name.slice();
|
|
10021
10027
|
if ("name" in values && values.name != null) if (typeof values.name === "string" || values.name instanceof LanguageString) clone.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = [values.name];
|
|
10022
10028
|
else throw new TypeError("The name must be of type string | LanguageString.");
|
|
10023
|
-
clone.#_2cSy2magg4iZ7zLaG8U7DiJMoCkx_value = this.#_2cSy2magg4iZ7zLaG8U7DiJMoCkx_value;
|
|
10029
|
+
clone.#_2cSy2magg4iZ7zLaG8U7DiJMoCkx_value = this.#_2cSy2magg4iZ7zLaG8U7DiJMoCkx_value.slice();
|
|
10024
10030
|
if ("value" in values && values.value != null) if (typeof values.value === "string" || values.value instanceof LanguageString) clone.#_2cSy2magg4iZ7zLaG8U7DiJMoCkx_value = [values.value];
|
|
10025
10031
|
else throw new TypeError("The value must be of type string | LanguageString.");
|
|
10026
10032
|
return clone;
|
|
@@ -10309,7 +10315,8 @@ var Measure = class {
|
|
|
10309
10315
|
* Clones this instance, optionally updating it with the given values.
|
|
10310
10316
|
* @param values The values to update the clone with.
|
|
10311
10317
|
* @param options The options to use for cloning.
|
|
10312
|
-
* @returns The cloned instance.
|
|
10318
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
10319
|
+
* and URLs are shared with this instance.
|
|
10313
10320
|
*/
|
|
10314
10321
|
clone(values = {}, options = {}) {
|
|
10315
10322
|
if (this._warning != null) {
|
|
@@ -10320,10 +10327,10 @@ var Measure = class {
|
|
|
10320
10327
|
};
|
|
10321
10328
|
}
|
|
10322
10329
|
const clone = new this.constructor({ id: values.id ?? this.id }, options);
|
|
10323
|
-
clone.#_27fgyFbosTtMAhuepJH8K3ZGURT6 = this.#_27fgyFbosTtMAhuepJH8K3ZGURT6;
|
|
10330
|
+
clone.#_27fgyFbosTtMAhuepJH8K3ZGURT6 = this.#_27fgyFbosTtMAhuepJH8K3ZGURT6.slice();
|
|
10324
10331
|
if ("unit" in values && values.unit != null) if (typeof values.unit === "string") clone.#_27fgyFbosTtMAhuepJH8K3ZGURT6 = [values.unit];
|
|
10325
10332
|
else throw new TypeError("The unit must be of type string.");
|
|
10326
|
-
clone.#_1GQx8o2RgxRs4x9G5uT39XYBv7D = this.#_1GQx8o2RgxRs4x9G5uT39XYBv7D;
|
|
10333
|
+
clone.#_1GQx8o2RgxRs4x9G5uT39XYBv7D = this.#_1GQx8o2RgxRs4x9G5uT39XYBv7D.slice();
|
|
10327
10334
|
if ("numericalValue" in values && values.numericalValue != null) if (typeof values.numericalValue === "string" && isDecimal(values.numericalValue)) clone.#_1GQx8o2RgxRs4x9G5uT39XYBv7D = [values.numericalValue];
|
|
10328
10335
|
else throw new TypeError("The numericalValue must be of type Decimal.");
|
|
10329
10336
|
return clone;
|
|
@@ -10570,7 +10577,8 @@ var AnnounceAuthorization = class AnnounceAuthorization extends Object$1 {
|
|
|
10570
10577
|
* Clones this instance, optionally updating it with the given values.
|
|
10571
10578
|
* @param values The values to update the clone with.
|
|
10572
10579
|
* @param options The options to use for cloning.
|
|
10573
|
-
* @returns The cloned instance.
|
|
10580
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
10581
|
+
* and URLs are shared with this instance.
|
|
10574
10582
|
*/
|
|
10575
10583
|
clone(values = {}, options = {}) {
|
|
10576
10584
|
if (this._warning != null) {
|
|
@@ -10581,13 +10589,13 @@ var AnnounceAuthorization = class AnnounceAuthorization extends Object$1 {
|
|
|
10581
10589
|
};
|
|
10582
10590
|
}
|
|
10583
10591
|
const clone = super.clone(values, options);
|
|
10584
|
-
clone.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = this.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject;
|
|
10592
|
+
clone.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = this.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject.slice();
|
|
10585
10593
|
clone.#_trust_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = new Set(this.#_trust_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject);
|
|
10586
10594
|
if ("interactingObject" in values && values.interactingObject != null) if (values.interactingObject instanceof Object$1 || values.interactingObject instanceof URL) {
|
|
10587
10595
|
clone.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = [values.interactingObject];
|
|
10588
10596
|
clone.#_trust_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = new Set([0]);
|
|
10589
10597
|
} else throw new TypeError("The interactingObject must be of type Object | URL.");
|
|
10590
|
-
clone.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget = this.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget;
|
|
10598
|
+
clone.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget = this.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget.slice();
|
|
10591
10599
|
clone.#_trust_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget = new Set(this.#_trust_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget);
|
|
10592
10600
|
if ("interactionTarget" in values && values.interactionTarget != null) if (values.interactionTarget instanceof Object$1 || values.interactionTarget instanceof URL) {
|
|
10593
10601
|
clone.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget = [values.interactionTarget];
|
|
@@ -11109,7 +11117,8 @@ var AnnounceRequest = class AnnounceRequest extends Activity {
|
|
|
11109
11117
|
* Clones this instance, optionally updating it with the given values.
|
|
11110
11118
|
* @param values The values to update the clone with.
|
|
11111
11119
|
* @param options The options to use for cloning.
|
|
11112
|
-
* @returns The cloned instance.
|
|
11120
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
11121
|
+
* and URLs are shared with this instance.
|
|
11113
11122
|
*/
|
|
11114
11123
|
clone(values = {}, options = {}) {
|
|
11115
11124
|
if (this._warning != null) {
|
|
@@ -11325,7 +11334,8 @@ var InteractionPolicy = class {
|
|
|
11325
11334
|
* Clones this instance, optionally updating it with the given values.
|
|
11326
11335
|
* @param values The values to update the clone with.
|
|
11327
11336
|
* @param options The options to use for cloning.
|
|
11328
|
-
* @returns The cloned instance.
|
|
11337
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
11338
|
+
* and URLs are shared with this instance.
|
|
11329
11339
|
*/
|
|
11330
11340
|
clone(values = {}, options = {}) {
|
|
11331
11341
|
if (this._warning != null) {
|
|
@@ -11336,16 +11346,16 @@ var InteractionPolicy = class {
|
|
|
11336
11346
|
};
|
|
11337
11347
|
}
|
|
11338
11348
|
const clone = new this.constructor({ id: values.id ?? this.id }, options);
|
|
11339
|
-
clone.#_3JkwVLb3BNCwCWdsb5RftGAg8vyT_canLike = this.#_3JkwVLb3BNCwCWdsb5RftGAg8vyT_canLike;
|
|
11349
|
+
clone.#_3JkwVLb3BNCwCWdsb5RftGAg8vyT_canLike = this.#_3JkwVLb3BNCwCWdsb5RftGAg8vyT_canLike.slice();
|
|
11340
11350
|
if ("canLike" in values && values.canLike != null) if (values.canLike instanceof InteractionRule) clone.#_3JkwVLb3BNCwCWdsb5RftGAg8vyT_canLike = [values.canLike];
|
|
11341
11351
|
else throw new TypeError("The canLike must be of type InteractionRule.");
|
|
11342
|
-
clone.#_2UBgLRi5p3DRGGvWyB227i4Qjhzd_canReply = this.#_2UBgLRi5p3DRGGvWyB227i4Qjhzd_canReply;
|
|
11352
|
+
clone.#_2UBgLRi5p3DRGGvWyB227i4Qjhzd_canReply = this.#_2UBgLRi5p3DRGGvWyB227i4Qjhzd_canReply.slice();
|
|
11343
11353
|
if ("canReply" in values && values.canReply != null) if (values.canReply instanceof InteractionRule) clone.#_2UBgLRi5p3DRGGvWyB227i4Qjhzd_canReply = [values.canReply];
|
|
11344
11354
|
else throw new TypeError("The canReply must be of type InteractionRule.");
|
|
11345
|
-
clone.#_fu5nmoAj528fBQfnxhY9Daok3Vi_canAnnounce = this.#_fu5nmoAj528fBQfnxhY9Daok3Vi_canAnnounce;
|
|
11355
|
+
clone.#_fu5nmoAj528fBQfnxhY9Daok3Vi_canAnnounce = this.#_fu5nmoAj528fBQfnxhY9Daok3Vi_canAnnounce.slice();
|
|
11346
11356
|
if ("canAnnounce" in values && values.canAnnounce != null) if (values.canAnnounce instanceof InteractionRule) clone.#_fu5nmoAj528fBQfnxhY9Daok3Vi_canAnnounce = [values.canAnnounce];
|
|
11347
11357
|
else throw new TypeError("The canAnnounce must be of type InteractionRule.");
|
|
11348
|
-
clone.#_LE3zBTVacTZw2LSyLt4wVUkXeUy_canQuote = this.#_LE3zBTVacTZw2LSyLt4wVUkXeUy_canQuote;
|
|
11358
|
+
clone.#_LE3zBTVacTZw2LSyLt4wVUkXeUy_canQuote = this.#_LE3zBTVacTZw2LSyLt4wVUkXeUy_canQuote.slice();
|
|
11349
11359
|
if ("canQuote" in values && values.canQuote != null) if (values.canQuote instanceof InteractionRule) clone.#_LE3zBTVacTZw2LSyLt4wVUkXeUy_canQuote = [values.canQuote];
|
|
11350
11360
|
else throw new TypeError("The canQuote must be of type InteractionRule.");
|
|
11351
11361
|
return clone;
|
|
@@ -11694,14 +11704,14 @@ var InteractionRule = class {
|
|
|
11694
11704
|
else throw new TypeError("The automaticApproval must be of type URL.");
|
|
11695
11705
|
if ("automaticApprovals" in values && values.automaticApprovals != null) {
|
|
11696
11706
|
if ("automaticApproval" in values && values.automaticApproval != null) throw new TypeError("Cannot initialize both automaticApproval and automaticApprovals at the same time.");
|
|
11697
|
-
if (Array.isArray(values.automaticApprovals) && values.automaticApprovals.every((v) => v instanceof URL)) this.#_2rFyCF14HoyNjitj9PmCzek5iSsg_automaticApproval = values.automaticApprovals;
|
|
11707
|
+
if (Array.isArray(values.automaticApprovals) && values.automaticApprovals.every((v) => v instanceof URL)) this.#_2rFyCF14HoyNjitj9PmCzek5iSsg_automaticApproval = values.automaticApprovals.slice();
|
|
11698
11708
|
else throw new TypeError("The automaticApprovals must be an array of type URL.");
|
|
11699
11709
|
}
|
|
11700
11710
|
if ("manualApproval" in values && values.manualApproval != null) if (values.manualApproval instanceof URL) this.#_sxj8y5XMMMBWUnRYFw85MKedCMj_manualApproval = [values.manualApproval];
|
|
11701
11711
|
else throw new TypeError("The manualApproval must be of type URL.");
|
|
11702
11712
|
if ("manualApprovals" in values && values.manualApprovals != null) {
|
|
11703
11713
|
if ("manualApproval" in values && values.manualApproval != null) throw new TypeError("Cannot initialize both manualApproval and manualApprovals at the same time.");
|
|
11704
|
-
if (Array.isArray(values.manualApprovals) && values.manualApprovals.every((v) => v instanceof URL)) this.#_sxj8y5XMMMBWUnRYFw85MKedCMj_manualApproval = values.manualApprovals;
|
|
11714
|
+
if (Array.isArray(values.manualApprovals) && values.manualApprovals.every((v) => v instanceof URL)) this.#_sxj8y5XMMMBWUnRYFw85MKedCMj_manualApproval = values.manualApprovals.slice();
|
|
11705
11715
|
else throw new TypeError("The manualApprovals must be an array of type URL.");
|
|
11706
11716
|
}
|
|
11707
11717
|
}
|
|
@@ -11709,7 +11719,8 @@ var InteractionRule = class {
|
|
|
11709
11719
|
* Clones this instance, optionally updating it with the given values.
|
|
11710
11720
|
* @param values The values to update the clone with.
|
|
11711
11721
|
* @param options The options to use for cloning.
|
|
11712
|
-
* @returns The cloned instance.
|
|
11722
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
11723
|
+
* and URLs are shared with this instance.
|
|
11713
11724
|
*/
|
|
11714
11725
|
clone(values = {}, options = {}) {
|
|
11715
11726
|
if (this._warning != null) {
|
|
@@ -11720,20 +11731,20 @@ var InteractionRule = class {
|
|
|
11720
11731
|
};
|
|
11721
11732
|
}
|
|
11722
11733
|
const clone = new this.constructor({ id: values.id ?? this.id }, options);
|
|
11723
|
-
clone.#_2rFyCF14HoyNjitj9PmCzek5iSsg_automaticApproval = this.#_2rFyCF14HoyNjitj9PmCzek5iSsg_automaticApproval;
|
|
11734
|
+
clone.#_2rFyCF14HoyNjitj9PmCzek5iSsg_automaticApproval = this.#_2rFyCF14HoyNjitj9PmCzek5iSsg_automaticApproval.slice();
|
|
11724
11735
|
if ("automaticApproval" in values && values.automaticApproval != null) if (values.automaticApproval instanceof URL) clone.#_2rFyCF14HoyNjitj9PmCzek5iSsg_automaticApproval = [values.automaticApproval];
|
|
11725
11736
|
else throw new TypeError("The automaticApproval must be of type URL.");
|
|
11726
11737
|
if ("automaticApprovals" in values && values.automaticApprovals != null) {
|
|
11727
11738
|
if ("automaticApproval" in values && values.automaticApproval != null) throw new TypeError("Cannot update both automaticApproval and automaticApprovals at the same time.");
|
|
11728
|
-
if (Array.isArray(values.automaticApprovals) && values.automaticApprovals.every((v) => v instanceof URL)) clone.#_2rFyCF14HoyNjitj9PmCzek5iSsg_automaticApproval = values.automaticApprovals;
|
|
11739
|
+
if (Array.isArray(values.automaticApprovals) && values.automaticApprovals.every((v) => v instanceof URL)) clone.#_2rFyCF14HoyNjitj9PmCzek5iSsg_automaticApproval = values.automaticApprovals.slice();
|
|
11729
11740
|
else throw new TypeError("The automaticApprovals must be an array of type URL.");
|
|
11730
11741
|
}
|
|
11731
|
-
clone.#_sxj8y5XMMMBWUnRYFw85MKedCMj_manualApproval = this.#_sxj8y5XMMMBWUnRYFw85MKedCMj_manualApproval;
|
|
11742
|
+
clone.#_sxj8y5XMMMBWUnRYFw85MKedCMj_manualApproval = this.#_sxj8y5XMMMBWUnRYFw85MKedCMj_manualApproval.slice();
|
|
11732
11743
|
if ("manualApproval" in values && values.manualApproval != null) if (values.manualApproval instanceof URL) clone.#_sxj8y5XMMMBWUnRYFw85MKedCMj_manualApproval = [values.manualApproval];
|
|
11733
11744
|
else throw new TypeError("The manualApproval must be of type URL.");
|
|
11734
11745
|
if ("manualApprovals" in values && values.manualApprovals != null) {
|
|
11735
11746
|
if ("manualApproval" in values && values.manualApproval != null) throw new TypeError("Cannot update both manualApproval and manualApprovals at the same time.");
|
|
11736
|
-
if (Array.isArray(values.manualApprovals) && values.manualApprovals.every((v) => v instanceof URL)) clone.#_sxj8y5XMMMBWUnRYFw85MKedCMj_manualApproval = values.manualApprovals;
|
|
11747
|
+
if (Array.isArray(values.manualApprovals) && values.manualApprovals.every((v) => v instanceof URL)) clone.#_sxj8y5XMMMBWUnRYFw85MKedCMj_manualApproval = values.manualApprovals.slice();
|
|
11737
11748
|
else throw new TypeError("The manualApprovals must be an array of type URL.");
|
|
11738
11749
|
}
|
|
11739
11750
|
return clone;
|
|
@@ -11964,7 +11975,8 @@ var LikeAuthorization = class LikeAuthorization extends Object$1 {
|
|
|
11964
11975
|
* Clones this instance, optionally updating it with the given values.
|
|
11965
11976
|
* @param values The values to update the clone with.
|
|
11966
11977
|
* @param options The options to use for cloning.
|
|
11967
|
-
* @returns The cloned instance.
|
|
11978
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
11979
|
+
* and URLs are shared with this instance.
|
|
11968
11980
|
*/
|
|
11969
11981
|
clone(values = {}, options = {}) {
|
|
11970
11982
|
if (this._warning != null) {
|
|
@@ -11975,13 +11987,13 @@ var LikeAuthorization = class LikeAuthorization extends Object$1 {
|
|
|
11975
11987
|
};
|
|
11976
11988
|
}
|
|
11977
11989
|
const clone = super.clone(values, options);
|
|
11978
|
-
clone.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = this.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject;
|
|
11990
|
+
clone.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = this.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject.slice();
|
|
11979
11991
|
clone.#_trust_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = new Set(this.#_trust_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject);
|
|
11980
11992
|
if ("interactingObject" in values && values.interactingObject != null) if (values.interactingObject instanceof Object$1 || values.interactingObject instanceof URL) {
|
|
11981
11993
|
clone.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = [values.interactingObject];
|
|
11982
11994
|
clone.#_trust_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = new Set([0]);
|
|
11983
11995
|
} else throw new TypeError("The interactingObject must be of type Object | URL.");
|
|
11984
|
-
clone.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget = this.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget;
|
|
11996
|
+
clone.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget = this.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget.slice();
|
|
11985
11997
|
clone.#_trust_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget = new Set(this.#_trust_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget);
|
|
11986
11998
|
if ("interactionTarget" in values && values.interactionTarget != null) if (values.interactionTarget instanceof Object$1 || values.interactionTarget instanceof URL) {
|
|
11987
11999
|
clone.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget = [values.interactionTarget];
|
|
@@ -12502,7 +12514,8 @@ var LikeRequest = class LikeRequest extends Activity {
|
|
|
12502
12514
|
* Clones this instance, optionally updating it with the given values.
|
|
12503
12515
|
* @param values The values to update the clone with.
|
|
12504
12516
|
* @param options The options to use for cloning.
|
|
12505
|
-
* @returns The cloned instance.
|
|
12517
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
12518
|
+
* and URLs are shared with this instance.
|
|
12506
12519
|
*/
|
|
12507
12520
|
clone(values = {}, options = {}) {
|
|
12508
12521
|
if (this._warning != null) {
|
|
@@ -12672,7 +12685,8 @@ var ReplyAuthorization = class ReplyAuthorization extends Object$1 {
|
|
|
12672
12685
|
* Clones this instance, optionally updating it with the given values.
|
|
12673
12686
|
* @param values The values to update the clone with.
|
|
12674
12687
|
* @param options The options to use for cloning.
|
|
12675
|
-
* @returns The cloned instance.
|
|
12688
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
12689
|
+
* and URLs are shared with this instance.
|
|
12676
12690
|
*/
|
|
12677
12691
|
clone(values = {}, options = {}) {
|
|
12678
12692
|
if (this._warning != null) {
|
|
@@ -12683,13 +12697,13 @@ var ReplyAuthorization = class ReplyAuthorization extends Object$1 {
|
|
|
12683
12697
|
};
|
|
12684
12698
|
}
|
|
12685
12699
|
const clone = super.clone(values, options);
|
|
12686
|
-
clone.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = this.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject;
|
|
12700
|
+
clone.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = this.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject.slice();
|
|
12687
12701
|
clone.#_trust_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = new Set(this.#_trust_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject);
|
|
12688
12702
|
if ("interactingObject" in values && values.interactingObject != null) if (values.interactingObject instanceof Object$1 || values.interactingObject instanceof URL) {
|
|
12689
12703
|
clone.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = [values.interactingObject];
|
|
12690
12704
|
clone.#_trust_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = new Set([0]);
|
|
12691
12705
|
} else throw new TypeError("The interactingObject must be of type Object | URL.");
|
|
12692
|
-
clone.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget = this.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget;
|
|
12706
|
+
clone.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget = this.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget.slice();
|
|
12693
12707
|
clone.#_trust_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget = new Set(this.#_trust_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget);
|
|
12694
12708
|
if ("interactionTarget" in values && values.interactionTarget != null) if (values.interactionTarget instanceof Object$1 || values.interactionTarget instanceof URL) {
|
|
12695
12709
|
clone.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget = [values.interactionTarget];
|
|
@@ -13210,7 +13224,8 @@ var ReplyRequest = class ReplyRequest extends Activity {
|
|
|
13210
13224
|
* Clones this instance, optionally updating it with the given values.
|
|
13211
13225
|
* @param values The values to update the clone with.
|
|
13212
13226
|
* @param options The options to use for cloning.
|
|
13213
|
-
* @returns The cloned instance.
|
|
13227
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
13228
|
+
* and URLs are shared with this instance.
|
|
13214
13229
|
*/
|
|
13215
13230
|
clone(values = {}, options = {}) {
|
|
13216
13231
|
if (this._warning != null) {
|
|
@@ -13380,7 +13395,8 @@ var QuoteAuthorization = class QuoteAuthorization extends Object$1 {
|
|
|
13380
13395
|
* Clones this instance, optionally updating it with the given values.
|
|
13381
13396
|
* @param values The values to update the clone with.
|
|
13382
13397
|
* @param options The options to use for cloning.
|
|
13383
|
-
* @returns The cloned instance.
|
|
13398
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
13399
|
+
* and URLs are shared with this instance.
|
|
13384
13400
|
*/
|
|
13385
13401
|
clone(values = {}, options = {}) {
|
|
13386
13402
|
if (this._warning != null) {
|
|
@@ -13391,13 +13407,13 @@ var QuoteAuthorization = class QuoteAuthorization extends Object$1 {
|
|
|
13391
13407
|
};
|
|
13392
13408
|
}
|
|
13393
13409
|
const clone = super.clone(values, options);
|
|
13394
|
-
clone.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = this.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject;
|
|
13410
|
+
clone.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = this.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject.slice();
|
|
13395
13411
|
clone.#_trust_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = new Set(this.#_trust_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject);
|
|
13396
13412
|
if ("interactingObject" in values && values.interactingObject != null) if (values.interactingObject instanceof Object$1 || values.interactingObject instanceof URL) {
|
|
13397
13413
|
clone.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = [values.interactingObject];
|
|
13398
13414
|
clone.#_trust_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = new Set([0]);
|
|
13399
13415
|
} else throw new TypeError("The interactingObject must be of type Object | URL.");
|
|
13400
|
-
clone.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget = this.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget;
|
|
13416
|
+
clone.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget = this.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget.slice();
|
|
13401
13417
|
clone.#_trust_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget = new Set(this.#_trust_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget);
|
|
13402
13418
|
if ("interactionTarget" in values && values.interactionTarget != null) if (values.interactionTarget instanceof Object$1 || values.interactionTarget instanceof URL) {
|
|
13403
13419
|
clone.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget = [values.interactionTarget];
|
|
@@ -13919,7 +13935,8 @@ var QuoteRequest = class QuoteRequest extends Activity {
|
|
|
13919
13935
|
* Clones this instance, optionally updating it with the given values.
|
|
13920
13936
|
* @param values The values to update the clone with.
|
|
13921
13937
|
* @param options The options to use for cloning.
|
|
13922
|
-
* @returns The cloned instance.
|
|
13938
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
13939
|
+
* and URLs are shared with this instance.
|
|
13923
13940
|
*/
|
|
13924
13941
|
clone(values = {}, options = {}) {
|
|
13925
13942
|
if (this._warning != null) {
|
|
@@ -14150,7 +14167,7 @@ var DidService = class {
|
|
|
14150
14167
|
else throw new TypeError("The endpoint must be of type URL.");
|
|
14151
14168
|
if ("endpoints" in values && values.endpoints != null) {
|
|
14152
14169
|
if ("endpoint" in values && values.endpoint != null) throw new TypeError("Cannot initialize both endpoint and endpoints at the same time.");
|
|
14153
|
-
if (Array.isArray(values.endpoints) && values.endpoints.every((v) => v instanceof URL)) this.#_2KM4fetG6FTJ1cphj76rzJ8Dyv7p_serviceEndpoint = values.endpoints;
|
|
14170
|
+
if (Array.isArray(values.endpoints) && values.endpoints.every((v) => v instanceof URL)) this.#_2KM4fetG6FTJ1cphj76rzJ8Dyv7p_serviceEndpoint = values.endpoints.slice();
|
|
14154
14171
|
else throw new TypeError("The endpoints must be an array of type URL.");
|
|
14155
14172
|
}
|
|
14156
14173
|
}
|
|
@@ -14158,7 +14175,8 @@ var DidService = class {
|
|
|
14158
14175
|
* Clones this instance, optionally updating it with the given values.
|
|
14159
14176
|
* @param values The values to update the clone with.
|
|
14160
14177
|
* @param options The options to use for cloning.
|
|
14161
|
-
* @returns The cloned instance.
|
|
14178
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
14179
|
+
* and URLs are shared with this instance.
|
|
14162
14180
|
*/
|
|
14163
14181
|
clone(values = {}, options = {}) {
|
|
14164
14182
|
if (this._warning != null) {
|
|
@@ -14169,12 +14187,12 @@ var DidService = class {
|
|
|
14169
14187
|
};
|
|
14170
14188
|
}
|
|
14171
14189
|
const clone = new this.constructor({ id: values.id ?? this.id }, options);
|
|
14172
|
-
clone.#_2KM4fetG6FTJ1cphj76rzJ8Dyv7p_serviceEndpoint = this.#_2KM4fetG6FTJ1cphj76rzJ8Dyv7p_serviceEndpoint;
|
|
14190
|
+
clone.#_2KM4fetG6FTJ1cphj76rzJ8Dyv7p_serviceEndpoint = this.#_2KM4fetG6FTJ1cphj76rzJ8Dyv7p_serviceEndpoint.slice();
|
|
14173
14191
|
if ("endpoint" in values && values.endpoint != null) if (values.endpoint instanceof URL) clone.#_2KM4fetG6FTJ1cphj76rzJ8Dyv7p_serviceEndpoint = [values.endpoint];
|
|
14174
14192
|
else throw new TypeError("The endpoint must be of type URL.");
|
|
14175
14193
|
if ("endpoints" in values && values.endpoints != null) {
|
|
14176
14194
|
if ("endpoint" in values && values.endpoint != null) throw new TypeError("Cannot update both endpoint and endpoints at the same time.");
|
|
14177
|
-
if (Array.isArray(values.endpoints) && values.endpoints.every((v) => v instanceof URL)) clone.#_2KM4fetG6FTJ1cphj76rzJ8Dyv7p_serviceEndpoint = values.endpoints;
|
|
14195
|
+
if (Array.isArray(values.endpoints) && values.endpoints.every((v) => v instanceof URL)) clone.#_2KM4fetG6FTJ1cphj76rzJ8Dyv7p_serviceEndpoint = values.endpoints.slice();
|
|
14178
14196
|
else throw new TypeError("The endpoints must be an array of type URL.");
|
|
14179
14197
|
}
|
|
14180
14198
|
return clone;
|
|
@@ -14347,7 +14365,8 @@ var Export = class Export extends DidService {
|
|
|
14347
14365
|
* Clones this instance, optionally updating it with the given values.
|
|
14348
14366
|
* @param values The values to update the clone with.
|
|
14349
14367
|
* @param options The options to use for cloning.
|
|
14350
|
-
* @returns The cloned instance.
|
|
14368
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
14369
|
+
* and URLs are shared with this instance.
|
|
14351
14370
|
*/
|
|
14352
14371
|
clone(values = {}, options = {}) {
|
|
14353
14372
|
if (this._warning != null) {
|
|
@@ -14556,7 +14575,8 @@ var DataIntegrityProof = class {
|
|
|
14556
14575
|
* Clones this instance, optionally updating it with the given values.
|
|
14557
14576
|
* @param values The values to update the clone with.
|
|
14558
14577
|
* @param options The options to use for cloning.
|
|
14559
|
-
* @returns The cloned instance.
|
|
14578
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
14579
|
+
* and URLs are shared with this instance.
|
|
14560
14580
|
*/
|
|
14561
14581
|
clone(values = {}, options = {}) {
|
|
14562
14582
|
if (this._warning != null) {
|
|
@@ -14567,22 +14587,22 @@ var DataIntegrityProof = class {
|
|
|
14567
14587
|
};
|
|
14568
14588
|
}
|
|
14569
14589
|
const clone = new this.constructor({ id: values.id ?? this.id }, options);
|
|
14570
|
-
clone.#_3RurJsa7tnptyqMFR5hDGcP9pMs5_cryptosuite = this.#_3RurJsa7tnptyqMFR5hDGcP9pMs5_cryptosuite;
|
|
14590
|
+
clone.#_3RurJsa7tnptyqMFR5hDGcP9pMs5_cryptosuite = this.#_3RurJsa7tnptyqMFR5hDGcP9pMs5_cryptosuite.slice();
|
|
14571
14591
|
if ("cryptosuite" in values && values.cryptosuite != null) if (values.cryptosuite == "eddsa-jcs-2022") clone.#_3RurJsa7tnptyqMFR5hDGcP9pMs5_cryptosuite = [values.cryptosuite];
|
|
14572
14592
|
else throw new TypeError("The cryptosuite must be of type \"eddsa-jcs-2022\".");
|
|
14573
|
-
clone.#_2mHVKxqA7zncjveJrDEo3pWpMZqg_verificationMethod = this.#_2mHVKxqA7zncjveJrDEo3pWpMZqg_verificationMethod;
|
|
14593
|
+
clone.#_2mHVKxqA7zncjveJrDEo3pWpMZqg_verificationMethod = this.#_2mHVKxqA7zncjveJrDEo3pWpMZqg_verificationMethod.slice();
|
|
14574
14594
|
clone.#_trust_2mHVKxqA7zncjveJrDEo3pWpMZqg_verificationMethod = new Set(this.#_trust_2mHVKxqA7zncjveJrDEo3pWpMZqg_verificationMethod);
|
|
14575
14595
|
if ("verificationMethod" in values && values.verificationMethod != null) if (values.verificationMethod instanceof Multikey || values.verificationMethod instanceof URL) {
|
|
14576
14596
|
clone.#_2mHVKxqA7zncjveJrDEo3pWpMZqg_verificationMethod = [values.verificationMethod];
|
|
14577
14597
|
clone.#_trust_2mHVKxqA7zncjveJrDEo3pWpMZqg_verificationMethod = new Set([0]);
|
|
14578
14598
|
} else throw new TypeError("The verificationMethod must be of type Multikey | URL.");
|
|
14579
|
-
clone.#_2AeEnPcAvVrPEuKbpmn9ZKNmWHKb_proofPurpose = this.#_2AeEnPcAvVrPEuKbpmn9ZKNmWHKb_proofPurpose;
|
|
14599
|
+
clone.#_2AeEnPcAvVrPEuKbpmn9ZKNmWHKb_proofPurpose = this.#_2AeEnPcAvVrPEuKbpmn9ZKNmWHKb_proofPurpose.slice();
|
|
14580
14600
|
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];
|
|
14581
14601
|
else throw new TypeError("The proofPurpose must be of type \"assertionMethod\" | \"authentication\" | \"capabilityInvocation\" | \"capabilityDelegation\" | \"keyAgreement\".");
|
|
14582
|
-
clone.#_3CjFK5vfKpX4HQuNh2b18TykoVLq_proofValue = this.#_3CjFK5vfKpX4HQuNh2b18TykoVLq_proofValue;
|
|
14602
|
+
clone.#_3CjFK5vfKpX4HQuNh2b18TykoVLq_proofValue = this.#_3CjFK5vfKpX4HQuNh2b18TykoVLq_proofValue.slice();
|
|
14583
14603
|
if ("proofValue" in values && values.proofValue != null) if (values.proofValue instanceof Uint8Array) clone.#_3CjFK5vfKpX4HQuNh2b18TykoVLq_proofValue = [values.proofValue];
|
|
14584
14604
|
else throw new TypeError("The proofValue must be of type Uint8Array.");
|
|
14585
|
-
clone.#_3qzP3ukEZoUziK5FEiA1RhU4aqac = this.#_3qzP3ukEZoUziK5FEiA1RhU4aqac;
|
|
14605
|
+
clone.#_3qzP3ukEZoUziK5FEiA1RhU4aqac = this.#_3qzP3ukEZoUziK5FEiA1RhU4aqac.slice();
|
|
14586
14606
|
if ("created" in values && values.created != null) if (isTemporalInstant(values.created)) clone.#_3qzP3ukEZoUziK5FEiA1RhU4aqac = [values.created];
|
|
14587
14607
|
else throw new TypeError("The created must be of type Temporal.Instant.");
|
|
14588
14608
|
return clone;
|
|
@@ -15057,7 +15077,8 @@ var CryptographicKey = class {
|
|
|
15057
15077
|
* Clones this instance, optionally updating it with the given values.
|
|
15058
15078
|
* @param values The values to update the clone with.
|
|
15059
15079
|
* @param options The options to use for cloning.
|
|
15060
|
-
* @returns The cloned instance.
|
|
15080
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
15081
|
+
* and URLs are shared with this instance.
|
|
15061
15082
|
*/
|
|
15062
15083
|
clone(values = {}, options = {}) {
|
|
15063
15084
|
if (this._warning != null) {
|
|
@@ -15068,13 +15089,13 @@ var CryptographicKey = class {
|
|
|
15068
15089
|
};
|
|
15069
15090
|
}
|
|
15070
15091
|
const clone = new this.constructor({ id: values.id ?? this.id }, options);
|
|
15071
|
-
clone.#_5UJq9NDh3ZHgswFwwdVxQvJxdx2_owner = this.#_5UJq9NDh3ZHgswFwwdVxQvJxdx2_owner;
|
|
15092
|
+
clone.#_5UJq9NDh3ZHgswFwwdVxQvJxdx2_owner = this.#_5UJq9NDh3ZHgswFwwdVxQvJxdx2_owner.slice();
|
|
15072
15093
|
clone.#_trust_5UJq9NDh3ZHgswFwwdVxQvJxdx2_owner = new Set(this.#_trust_5UJq9NDh3ZHgswFwwdVxQvJxdx2_owner);
|
|
15073
15094
|
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) {
|
|
15074
15095
|
clone.#_5UJq9NDh3ZHgswFwwdVxQvJxdx2_owner = [values.owner];
|
|
15075
15096
|
clone.#_trust_5UJq9NDh3ZHgswFwwdVxQvJxdx2_owner = new Set([0]);
|
|
15076
15097
|
} else throw new TypeError("The owner must be of type Application | Group | Organization | Person | Service | URL.");
|
|
15077
|
-
clone.#_2fE2QMDdg6KFGqa4NEC3TmjApSAD_publicKeyPem = this.#_2fE2QMDdg6KFGqa4NEC3TmjApSAD_publicKeyPem;
|
|
15098
|
+
clone.#_2fE2QMDdg6KFGqa4NEC3TmjApSAD_publicKeyPem = this.#_2fE2QMDdg6KFGqa4NEC3TmjApSAD_publicKeyPem.slice();
|
|
15078
15099
|
if ("publicKey" in values && values.publicKey != null) if (values.publicKey instanceof CryptoKey) clone.#_2fE2QMDdg6KFGqa4NEC3TmjApSAD_publicKeyPem = [values.publicKey];
|
|
15079
15100
|
else throw new TypeError("The publicKey must be of type CryptoKey.");
|
|
15080
15101
|
return clone;
|
|
@@ -15558,7 +15579,8 @@ var Multikey = class {
|
|
|
15558
15579
|
* Clones this instance, optionally updating it with the given values.
|
|
15559
15580
|
* @param values The values to update the clone with.
|
|
15560
15581
|
* @param options The options to use for cloning.
|
|
15561
|
-
* @returns The cloned instance.
|
|
15582
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
15583
|
+
* and URLs are shared with this instance.
|
|
15562
15584
|
*/
|
|
15563
15585
|
clone(values = {}, options = {}) {
|
|
15564
15586
|
if (this._warning != null) {
|
|
@@ -15569,13 +15591,13 @@ var Multikey = class {
|
|
|
15569
15591
|
};
|
|
15570
15592
|
}
|
|
15571
15593
|
const clone = new this.constructor({ id: values.id ?? this.id }, options);
|
|
15572
|
-
clone.#_2yr3eUBTP6cNcyaxKzAXWjFsnGzN_controller = this.#_2yr3eUBTP6cNcyaxKzAXWjFsnGzN_controller;
|
|
15594
|
+
clone.#_2yr3eUBTP6cNcyaxKzAXWjFsnGzN_controller = this.#_2yr3eUBTP6cNcyaxKzAXWjFsnGzN_controller.slice();
|
|
15573
15595
|
clone.#_trust_2yr3eUBTP6cNcyaxKzAXWjFsnGzN_controller = new Set(this.#_trust_2yr3eUBTP6cNcyaxKzAXWjFsnGzN_controller);
|
|
15574
15596
|
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) {
|
|
15575
15597
|
clone.#_2yr3eUBTP6cNcyaxKzAXWjFsnGzN_controller = [values.controller];
|
|
15576
15598
|
clone.#_trust_2yr3eUBTP6cNcyaxKzAXWjFsnGzN_controller = new Set([0]);
|
|
15577
15599
|
} else throw new TypeError("The controller must be of type Application | Group | Organization | Person | Service | URL.");
|
|
15578
|
-
clone.#_4XLHbsR2gLVWU3NpEqKt9wANzn4F_publicKeyMultibase = this.#_4XLHbsR2gLVWU3NpEqKt9wANzn4F_publicKeyMultibase;
|
|
15600
|
+
clone.#_4XLHbsR2gLVWU3NpEqKt9wANzn4F_publicKeyMultibase = this.#_4XLHbsR2gLVWU3NpEqKt9wANzn4F_publicKeyMultibase.slice();
|
|
15579
15601
|
if ("publicKey" in values && values.publicKey != null) if (values.publicKey instanceof CryptoKey) clone.#_4XLHbsR2gLVWU3NpEqKt9wANzn4F_publicKeyMultibase = [values.publicKey];
|
|
15580
15602
|
else throw new TypeError("The publicKey must be of type CryptoKey.");
|
|
15581
15603
|
return clone;
|
|
@@ -16023,7 +16045,8 @@ var Agreement = class Agreement extends Object$1 {
|
|
|
16023
16045
|
* Clones this instance, optionally updating it with the given values.
|
|
16024
16046
|
* @param values The values to update the clone with.
|
|
16025
16047
|
* @param options The options to use for cloning.
|
|
16026
|
-
* @returns The cloned instance.
|
|
16048
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
16049
|
+
* and URLs are shared with this instance.
|
|
16027
16050
|
*/
|
|
16028
16051
|
clone(values = {}, options = {}) {
|
|
16029
16052
|
if (this._warning != null) {
|
|
@@ -16034,10 +16057,10 @@ var Agreement = class Agreement extends Object$1 {
|
|
|
16034
16057
|
};
|
|
16035
16058
|
}
|
|
16036
16059
|
const clone = super.clone(values, options);
|
|
16037
|
-
clone.#_37zeAJ2NVyecrDdP8os69FGAn9Q6_stipulates = this.#_37zeAJ2NVyecrDdP8os69FGAn9Q6_stipulates;
|
|
16060
|
+
clone.#_37zeAJ2NVyecrDdP8os69FGAn9Q6_stipulates = this.#_37zeAJ2NVyecrDdP8os69FGAn9Q6_stipulates.slice();
|
|
16038
16061
|
if ("stipulates" in values && values.stipulates != null) if (values.stipulates instanceof Commitment) clone.#_37zeAJ2NVyecrDdP8os69FGAn9Q6_stipulates = [values.stipulates];
|
|
16039
16062
|
else throw new TypeError("The stipulates must be of type Commitment.");
|
|
16040
|
-
clone.#_4Vhx9DcywF65XWUQ4KZ35475FaJm_stipulatesReciprocal = this.#_4Vhx9DcywF65XWUQ4KZ35475FaJm_stipulatesReciprocal;
|
|
16063
|
+
clone.#_4Vhx9DcywF65XWUQ4KZ35475FaJm_stipulatesReciprocal = this.#_4Vhx9DcywF65XWUQ4KZ35475FaJm_stipulatesReciprocal.slice();
|
|
16041
16064
|
if ("stipulatesReciprocal" in values && values.stipulatesReciprocal != null) if (values.stipulatesReciprocal instanceof Commitment) clone.#_4Vhx9DcywF65XWUQ4KZ35475FaJm_stipulatesReciprocal = [values.stipulatesReciprocal];
|
|
16042
16065
|
else throw new TypeError("The stipulatesReciprocal must be of type Commitment.");
|
|
16043
16066
|
return clone;
|
|
@@ -16387,7 +16410,8 @@ var Commitment = class {
|
|
|
16387
16410
|
* Clones this instance, optionally updating it with the given values.
|
|
16388
16411
|
* @param values The values to update the clone with.
|
|
16389
16412
|
* @param options The options to use for cloning.
|
|
16390
|
-
* @returns The cloned instance.
|
|
16413
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
16414
|
+
* and URLs are shared with this instance.
|
|
16391
16415
|
*/
|
|
16392
16416
|
clone(values = {}, options = {}) {
|
|
16393
16417
|
if (this._warning != null) {
|
|
@@ -16398,10 +16422,10 @@ var Commitment = class {
|
|
|
16398
16422
|
};
|
|
16399
16423
|
}
|
|
16400
16424
|
const clone = new this.constructor({ id: values.id ?? this.id }, options);
|
|
16401
|
-
clone.#_aCyzDK9TkXtLxrZs7JC8emuYisv_satisfies = this.#_aCyzDK9TkXtLxrZs7JC8emuYisv_satisfies;
|
|
16425
|
+
clone.#_aCyzDK9TkXtLxrZs7JC8emuYisv_satisfies = this.#_aCyzDK9TkXtLxrZs7JC8emuYisv_satisfies.slice();
|
|
16402
16426
|
if ("satisfies" in values && values.satisfies != null) if (values.satisfies instanceof URL) clone.#_aCyzDK9TkXtLxrZs7JC8emuYisv_satisfies = [values.satisfies];
|
|
16403
16427
|
else throw new TypeError("The satisfies must be of type URL.");
|
|
16404
|
-
clone.#_2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity = this.#_2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity;
|
|
16428
|
+
clone.#_2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity = this.#_2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity.slice();
|
|
16405
16429
|
if ("resourceQuantity" in values && values.resourceQuantity != null) if (values.resourceQuantity instanceof Measure) clone.#_2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity = [values.resourceQuantity];
|
|
16406
16430
|
else throw new TypeError("The resourceQuantity must be of type Measure.");
|
|
16407
16431
|
return clone;
|
|
@@ -16713,7 +16737,8 @@ var Intent = class {
|
|
|
16713
16737
|
* Clones this instance, optionally updating it with the given values.
|
|
16714
16738
|
* @param values The values to update the clone with.
|
|
16715
16739
|
* @param options The options to use for cloning.
|
|
16716
|
-
* @returns The cloned instance.
|
|
16740
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
16741
|
+
* and URLs are shared with this instance.
|
|
16717
16742
|
*/
|
|
16718
16743
|
clone(values = {}, options = {}) {
|
|
16719
16744
|
if (this._warning != null) {
|
|
@@ -16724,19 +16749,19 @@ var Intent = class {
|
|
|
16724
16749
|
};
|
|
16725
16750
|
}
|
|
16726
16751
|
const clone = new this.constructor({ id: values.id ?? this.id }, options);
|
|
16727
|
-
clone.#_38VmZKmXJSBy3AvgqNa9GVqbdphy_action = this.#_38VmZKmXJSBy3AvgqNa9GVqbdphy_action;
|
|
16752
|
+
clone.#_38VmZKmXJSBy3AvgqNa9GVqbdphy_action = this.#_38VmZKmXJSBy3AvgqNa9GVqbdphy_action.slice();
|
|
16728
16753
|
if ("action" in values && values.action != null) if (typeof values.action === "string") clone.#_38VmZKmXJSBy3AvgqNa9GVqbdphy_action = [values.action];
|
|
16729
16754
|
else throw new TypeError("The action must be of type string.");
|
|
16730
|
-
clone.#_BBAeMUUQDwBQn6cvu3P2Csd6b6h_resourceConformsTo = this.#_BBAeMUUQDwBQn6cvu3P2Csd6b6h_resourceConformsTo;
|
|
16755
|
+
clone.#_BBAeMUUQDwBQn6cvu3P2Csd6b6h_resourceConformsTo = this.#_BBAeMUUQDwBQn6cvu3P2Csd6b6h_resourceConformsTo.slice();
|
|
16731
16756
|
if ("resourceConformsTo" in values && values.resourceConformsTo != null) if (values.resourceConformsTo instanceof URL) clone.#_BBAeMUUQDwBQn6cvu3P2Csd6b6h_resourceConformsTo = [values.resourceConformsTo];
|
|
16732
16757
|
else throw new TypeError("The resourceConformsTo must be of type URL.");
|
|
16733
|
-
clone.#_2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity = this.#_2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity;
|
|
16758
|
+
clone.#_2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity = this.#_2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity.slice();
|
|
16734
16759
|
if ("resourceQuantity" in values && values.resourceQuantity != null) if (values.resourceQuantity instanceof Measure) clone.#_2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity = [values.resourceQuantity];
|
|
16735
16760
|
else throw new TypeError("The resourceQuantity must be of type Measure.");
|
|
16736
|
-
clone.#_YmNSnuih3Zk4VdR5JPVnQYroLAh_availableQuantity = this.#_YmNSnuih3Zk4VdR5JPVnQYroLAh_availableQuantity;
|
|
16761
|
+
clone.#_YmNSnuih3Zk4VdR5JPVnQYroLAh_availableQuantity = this.#_YmNSnuih3Zk4VdR5JPVnQYroLAh_availableQuantity.slice();
|
|
16737
16762
|
if ("availableQuantity" in values && values.availableQuantity != null) if (values.availableQuantity instanceof Measure) clone.#_YmNSnuih3Zk4VdR5JPVnQYroLAh_availableQuantity = [values.availableQuantity];
|
|
16738
16763
|
else throw new TypeError("The availableQuantity must be of type Measure.");
|
|
16739
|
-
clone.#_3XueAFds2NBrqNpnV8b7aC8hV72S_minimumQuantity = this.#_3XueAFds2NBrqNpnV8b7aC8hV72S_minimumQuantity;
|
|
16764
|
+
clone.#_3XueAFds2NBrqNpnV8b7aC8hV72S_minimumQuantity = this.#_3XueAFds2NBrqNpnV8b7aC8hV72S_minimumQuantity.slice();
|
|
16740
16765
|
if ("minimumQuantity" in values && values.minimumQuantity != null) if (values.minimumQuantity instanceof Measure) clone.#_3XueAFds2NBrqNpnV8b7aC8hV72S_minimumQuantity = [values.minimumQuantity];
|
|
16741
16766
|
else throw new TypeError("The minimumQuantity must be of type Measure.");
|
|
16742
16767
|
return clone;
|
|
@@ -17134,7 +17159,8 @@ var Proposal = class Proposal extends Object$1 {
|
|
|
17134
17159
|
* Clones this instance, optionally updating it with the given values.
|
|
17135
17160
|
* @param values The values to update the clone with.
|
|
17136
17161
|
* @param options The options to use for cloning.
|
|
17137
|
-
* @returns The cloned instance.
|
|
17162
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
17163
|
+
* and URLs are shared with this instance.
|
|
17138
17164
|
*/
|
|
17139
17165
|
clone(values = {}, options = {}) {
|
|
17140
17166
|
if (this._warning != null) {
|
|
@@ -17145,16 +17171,16 @@ var Proposal = class Proposal extends Object$1 {
|
|
|
17145
17171
|
};
|
|
17146
17172
|
}
|
|
17147
17173
|
const clone = super.clone(values, options);
|
|
17148
|
-
clone.#_4wb2xgUBheR2gaD2Se8QBH4LEC7_purpose = this.#_4wb2xgUBheR2gaD2Se8QBH4LEC7_purpose;
|
|
17174
|
+
clone.#_4wb2xgUBheR2gaD2Se8QBH4LEC7_purpose = this.#_4wb2xgUBheR2gaD2Se8QBH4LEC7_purpose.slice();
|
|
17149
17175
|
if ("purpose" in values && values.purpose != null) if (typeof values.purpose === "string") clone.#_4wb2xgUBheR2gaD2Se8QBH4LEC7_purpose = [values.purpose];
|
|
17150
17176
|
else throw new TypeError("The purpose must be of type string.");
|
|
17151
|
-
clone.#_sS5LvXX8cn4c3x6ux836AwYbTyJ_publishes = this.#_sS5LvXX8cn4c3x6ux836AwYbTyJ_publishes;
|
|
17177
|
+
clone.#_sS5LvXX8cn4c3x6ux836AwYbTyJ_publishes = this.#_sS5LvXX8cn4c3x6ux836AwYbTyJ_publishes.slice();
|
|
17152
17178
|
if ("publishes" in values && values.publishes != null) if (values.publishes instanceof Intent) clone.#_sS5LvXX8cn4c3x6ux836AwYbTyJ_publishes = [values.publishes];
|
|
17153
17179
|
else throw new TypeError("The publishes must be of type Intent.");
|
|
17154
|
-
clone.#_Z4ntJgFwR9BaNTbFvkRTGNEwUwy_reciprocal = this.#_Z4ntJgFwR9BaNTbFvkRTGNEwUwy_reciprocal;
|
|
17180
|
+
clone.#_Z4ntJgFwR9BaNTbFvkRTGNEwUwy_reciprocal = this.#_Z4ntJgFwR9BaNTbFvkRTGNEwUwy_reciprocal.slice();
|
|
17155
17181
|
if ("reciprocal" in values && values.reciprocal != null) if (values.reciprocal instanceof Intent) clone.#_Z4ntJgFwR9BaNTbFvkRTGNEwUwy_reciprocal = [values.reciprocal];
|
|
17156
17182
|
else throw new TypeError("The reciprocal must be of type Intent.");
|
|
17157
|
-
clone.#_48ncwmfGhSoqAFByMVh2UxoiozPq_unitBased = this.#_48ncwmfGhSoqAFByMVh2UxoiozPq_unitBased;
|
|
17183
|
+
clone.#_48ncwmfGhSoqAFByMVh2UxoiozPq_unitBased = this.#_48ncwmfGhSoqAFByMVh2UxoiozPq_unitBased.slice();
|
|
17158
17184
|
if ("unitBased" in values && values.unitBased != null) if (typeof values.unitBased === "boolean") clone.#_48ncwmfGhSoqAFByMVh2UxoiozPq_unitBased = [values.unitBased];
|
|
17159
17185
|
else throw new TypeError("The unitBased must be of type boolean.");
|
|
17160
17186
|
return clone;
|
|
@@ -17533,7 +17559,8 @@ var Accept = class Accept extends Activity {
|
|
|
17533
17559
|
* Clones this instance, optionally updating it with the given values.
|
|
17534
17560
|
* @param values The values to update the clone with.
|
|
17535
17561
|
* @param options The options to use for cloning.
|
|
17536
|
-
* @returns The cloned instance.
|
|
17562
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
17563
|
+
* and URLs are shared with this instance.
|
|
17537
17564
|
*/
|
|
17538
17565
|
clone(values = {}, options = {}) {
|
|
17539
17566
|
if (this._warning != null) {
|
|
@@ -17688,7 +17715,8 @@ var Add = class Add extends Activity {
|
|
|
17688
17715
|
* Clones this instance, optionally updating it with the given values.
|
|
17689
17716
|
* @param values The values to update the clone with.
|
|
17690
17717
|
* @param options The options to use for cloning.
|
|
17691
|
-
* @returns The cloned instance.
|
|
17718
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
17719
|
+
* and URLs are shared with this instance.
|
|
17692
17720
|
*/
|
|
17693
17721
|
clone(values = {}, options = {}) {
|
|
17694
17722
|
if (this._warning != null) {
|
|
@@ -17841,7 +17869,8 @@ var Announce = class Announce extends Activity {
|
|
|
17841
17869
|
* Clones this instance, optionally updating it with the given values.
|
|
17842
17870
|
* @param values The values to update the clone with.
|
|
17843
17871
|
* @param options The options to use for cloning.
|
|
17844
|
-
* @returns The cloned instance.
|
|
17872
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
17873
|
+
* and URLs are shared with this instance.
|
|
17845
17874
|
*/
|
|
17846
17875
|
clone(values = {}, options = {}) {
|
|
17847
17876
|
if (this._warning != null) {
|
|
@@ -18055,7 +18084,7 @@ var Application = class Application extends Object$1 {
|
|
|
18055
18084
|
else throw new TypeError("The preferredUsername must be of type string | LanguageString.");
|
|
18056
18085
|
if ("preferredUsernames" in values && values.preferredUsernames != null) {
|
|
18057
18086
|
if ("preferredUsername" in values && values.preferredUsername != null) throw new TypeError("Cannot initialize both preferredUsername and preferredUsernames at the same time.");
|
|
18058
|
-
if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every((v) => typeof v === "string" || v instanceof LanguageString)) this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames;
|
|
18087
|
+
if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every((v) => typeof v === "string" || v instanceof LanguageString)) this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames.slice();
|
|
18059
18088
|
else throw new TypeError("The preferredUsernames must be an array of type string | LanguageString.");
|
|
18060
18089
|
}
|
|
18061
18090
|
if ("publicKey" in values && values.publicKey != null) if (values.publicKey instanceof CryptographicKey || values.publicKey instanceof URL) {
|
|
@@ -18065,7 +18094,7 @@ var Application = class Application extends Object$1 {
|
|
|
18065
18094
|
if ("publicKeys" in values && values.publicKeys != null) {
|
|
18066
18095
|
if ("publicKey" in values && values.publicKey != null) throw new TypeError("Cannot initialize both publicKey and publicKeys at the same time.");
|
|
18067
18096
|
if (Array.isArray(values.publicKeys) && values.publicKeys.every((v) => v instanceof CryptographicKey || v instanceof URL)) {
|
|
18068
|
-
this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys;
|
|
18097
|
+
this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys.slice();
|
|
18069
18098
|
for (let i = 0; i < values.publicKeys.length; i++) this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.add(i);
|
|
18070
18099
|
} else throw new TypeError("The publicKeys must be an array of type CryptographicKey | URL.");
|
|
18071
18100
|
}
|
|
@@ -18076,7 +18105,7 @@ var Application = class Application extends Object$1 {
|
|
|
18076
18105
|
if ("assertionMethods" in values && values.assertionMethods != null) {
|
|
18077
18106
|
if ("assertionMethod" in values && values.assertionMethod != null) throw new TypeError("Cannot initialize both assertionMethod and assertionMethods at the same time.");
|
|
18078
18107
|
if (Array.isArray(values.assertionMethods) && values.assertionMethods.every((v) => v instanceof Multikey || v instanceof URL)) {
|
|
18079
|
-
this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods;
|
|
18108
|
+
this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods.slice();
|
|
18080
18109
|
for (let i = 0; i < values.assertionMethods.length; i++) this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.add(i);
|
|
18081
18110
|
} else throw new TypeError("The assertionMethods must be an array of type Multikey | URL.");
|
|
18082
18111
|
}
|
|
@@ -18111,7 +18140,7 @@ var Application = class Application extends Object$1 {
|
|
|
18111
18140
|
this.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.add(0);
|
|
18112
18141
|
} else throw new TypeError("The featuredTags must be of type Collection | URL.");
|
|
18113
18142
|
if ("streams" in values && values.streams != null) if (Array.isArray(values.streams) && values.streams.every((v) => v instanceof Collection || v instanceof URL)) {
|
|
18114
|
-
this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams;
|
|
18143
|
+
this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams.slice();
|
|
18115
18144
|
for (let i = 0; i < values.streams.length; i++) this.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.add(i);
|
|
18116
18145
|
} else throw new TypeError("The streams must be an array of type Collection | URL.");
|
|
18117
18146
|
if ("endpoints" in values && values.endpoints != null) if (values.endpoints instanceof Endpoints) this.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = [values.endpoints];
|
|
@@ -18135,7 +18164,7 @@ var Application = class Application extends Object$1 {
|
|
|
18135
18164
|
if ("aliases" in values && values.aliases != null) {
|
|
18136
18165
|
if ("alias" in values && values.alias != null) throw new TypeError("Cannot initialize both alias and aliases at the same time.");
|
|
18137
18166
|
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)) {
|
|
18138
|
-
this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases;
|
|
18167
|
+
this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases.slice();
|
|
18139
18168
|
for (let i = 0; i < values.aliases.length; i++) this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.add(i);
|
|
18140
18169
|
} else throw new TypeError("The aliases must be an array of type Application | Group | Organization | Person | Service | URL.");
|
|
18141
18170
|
}
|
|
@@ -18146,7 +18175,7 @@ var Application = class Application extends Object$1 {
|
|
|
18146
18175
|
if ("services" in values && values.services != null) {
|
|
18147
18176
|
if ("service" in values && values.service != null) throw new TypeError("Cannot initialize both service and services at the same time.");
|
|
18148
18177
|
if (Array.isArray(values.services) && values.services.every((v) => v instanceof DidService || v instanceof URL)) {
|
|
18149
|
-
this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services;
|
|
18178
|
+
this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services.slice();
|
|
18150
18179
|
for (let i = 0; i < values.services.length; i++) this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.add(i);
|
|
18151
18180
|
} else throw new TypeError("The services must be an array of type DidService | URL.");
|
|
18152
18181
|
}
|
|
@@ -18159,7 +18188,8 @@ var Application = class Application extends Object$1 {
|
|
|
18159
18188
|
* Clones this instance, optionally updating it with the given values.
|
|
18160
18189
|
* @param values The values to update the clone with.
|
|
18161
18190
|
* @param options The options to use for cloning.
|
|
18162
|
-
* @returns The cloned instance.
|
|
18191
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
18192
|
+
* and URLs are shared with this instance.
|
|
18163
18193
|
*/
|
|
18164
18194
|
clone(values = {}, options = {}) {
|
|
18165
18195
|
if (this._warning != null) {
|
|
@@ -18170,15 +18200,15 @@ var Application = class Application extends Object$1 {
|
|
|
18170
18200
|
};
|
|
18171
18201
|
}
|
|
18172
18202
|
const clone = super.clone(values, options);
|
|
18173
|
-
clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername;
|
|
18203
|
+
clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername.slice();
|
|
18174
18204
|
if ("preferredUsername" in values && values.preferredUsername != null) if (typeof values.preferredUsername === "string" || values.preferredUsername instanceof LanguageString) clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = [values.preferredUsername];
|
|
18175
18205
|
else throw new TypeError("The preferredUsername must be of type string | LanguageString.");
|
|
18176
18206
|
if ("preferredUsernames" in values && values.preferredUsernames != null) {
|
|
18177
18207
|
if ("preferredUsername" in values && values.preferredUsername != null) throw new TypeError("Cannot update both preferredUsername and preferredUsernames at the same time.");
|
|
18178
|
-
if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every((v) => typeof v === "string" || v instanceof LanguageString)) clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames;
|
|
18208
|
+
if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every((v) => typeof v === "string" || v instanceof LanguageString)) clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames.slice();
|
|
18179
18209
|
else throw new TypeError("The preferredUsernames must be an array of type string | LanguageString.");
|
|
18180
18210
|
}
|
|
18181
|
-
clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey;
|
|
18211
|
+
clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey.slice();
|
|
18182
18212
|
clone.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey = new Set(this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey);
|
|
18183
18213
|
if ("publicKey" in values && values.publicKey != null) if (values.publicKey instanceof CryptographicKey || values.publicKey instanceof URL) {
|
|
18184
18214
|
clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = [values.publicKey];
|
|
@@ -18187,12 +18217,12 @@ var Application = class Application extends Object$1 {
|
|
|
18187
18217
|
if ("publicKeys" in values && values.publicKeys != null) {
|
|
18188
18218
|
if ("publicKey" in values && values.publicKey != null) throw new TypeError("Cannot update both publicKey and publicKeys at the same time.");
|
|
18189
18219
|
if (Array.isArray(values.publicKeys) && values.publicKeys.every((v) => v instanceof CryptographicKey || v instanceof URL)) {
|
|
18190
|
-
clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys;
|
|
18220
|
+
clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys.slice();
|
|
18191
18221
|
clone.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey = /* @__PURE__ */ new Set();
|
|
18192
18222
|
for (let i = 0; i < values.publicKeys.length; i++) clone.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.add(i);
|
|
18193
18223
|
} else throw new TypeError("The publicKeys must be an array of type CryptographicKey | URL.");
|
|
18194
18224
|
}
|
|
18195
|
-
clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod;
|
|
18225
|
+
clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.slice();
|
|
18196
18226
|
clone.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = new Set(this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod);
|
|
18197
18227
|
if ("assertionMethod" in values && values.assertionMethod != null) if (values.assertionMethod instanceof Multikey || values.assertionMethod instanceof URL) {
|
|
18198
18228
|
clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = [values.assertionMethod];
|
|
@@ -18201,85 +18231,85 @@ var Application = class Application extends Object$1 {
|
|
|
18201
18231
|
if ("assertionMethods" in values && values.assertionMethods != null) {
|
|
18202
18232
|
if ("assertionMethod" in values && values.assertionMethod != null) throw new TypeError("Cannot update both assertionMethod and assertionMethods at the same time.");
|
|
18203
18233
|
if (Array.isArray(values.assertionMethods) && values.assertionMethods.every((v) => v instanceof Multikey || v instanceof URL)) {
|
|
18204
|
-
clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods;
|
|
18234
|
+
clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods.slice();
|
|
18205
18235
|
clone.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = /* @__PURE__ */ new Set();
|
|
18206
18236
|
for (let i = 0; i < values.assertionMethods.length; i++) clone.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.add(i);
|
|
18207
18237
|
} else throw new TypeError("The assertionMethods must be an array of type Multikey | URL.");
|
|
18208
18238
|
}
|
|
18209
|
-
clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers;
|
|
18239
|
+
clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers.slice();
|
|
18210
18240
|
if ("manuallyApprovesFollowers" in values && values.manuallyApprovesFollowers != null) if (typeof values.manuallyApprovesFollowers === "boolean") clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = [values.manuallyApprovesFollowers];
|
|
18211
18241
|
else throw new TypeError("The manuallyApprovesFollowers must be of type boolean.");
|
|
18212
|
-
clone.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = this.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox;
|
|
18242
|
+
clone.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = this.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox.slice();
|
|
18213
18243
|
clone.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = new Set(this.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox);
|
|
18214
18244
|
if ("inbox" in values && values.inbox != null) if (values.inbox instanceof OrderedCollection || values.inbox instanceof OrderedCollectionPage || values.inbox instanceof URL) {
|
|
18215
18245
|
clone.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = [values.inbox];
|
|
18216
18246
|
clone.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = new Set([0]);
|
|
18217
18247
|
} else throw new TypeError("The inbox must be of type OrderedCollection | OrderedCollectionPage | URL.");
|
|
18218
|
-
clone.#_41QwhqJouoLg3h8dRPKat21brynC_outbox = this.#_41QwhqJouoLg3h8dRPKat21brynC_outbox;
|
|
18248
|
+
clone.#_41QwhqJouoLg3h8dRPKat21brynC_outbox = this.#_41QwhqJouoLg3h8dRPKat21brynC_outbox.slice();
|
|
18219
18249
|
clone.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox = new Set(this.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox);
|
|
18220
18250
|
if ("outbox" in values && values.outbox != null) if (values.outbox instanceof OrderedCollection || values.outbox instanceof OrderedCollectionPage || values.outbox instanceof URL) {
|
|
18221
18251
|
clone.#_41QwhqJouoLg3h8dRPKat21brynC_outbox = [values.outbox];
|
|
18222
18252
|
clone.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox = new Set([0]);
|
|
18223
18253
|
} else throw new TypeError("The outbox must be of type OrderedCollection | OrderedCollectionPage | URL.");
|
|
18224
|
-
clone.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = this.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following;
|
|
18254
|
+
clone.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = this.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.slice();
|
|
18225
18255
|
clone.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = new Set(this.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following);
|
|
18226
18256
|
if ("following" in values && values.following != null) if (values.following instanceof Collection || values.following instanceof URL) {
|
|
18227
18257
|
clone.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = [values.following];
|
|
18228
18258
|
clone.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = new Set([0]);
|
|
18229
18259
|
} else throw new TypeError("The following must be of type Collection | URL.");
|
|
18230
|
-
clone.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = this.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers;
|
|
18260
|
+
clone.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = this.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers.slice();
|
|
18231
18261
|
clone.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = new Set(this.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers);
|
|
18232
18262
|
if ("followers" in values && values.followers != null) if (values.followers instanceof Collection || values.followers instanceof URL) {
|
|
18233
18263
|
clone.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = [values.followers];
|
|
18234
18264
|
clone.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = new Set([0]);
|
|
18235
18265
|
} else throw new TypeError("The followers must be of type Collection | URL.");
|
|
18236
|
-
clone.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = this.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked;
|
|
18266
|
+
clone.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = this.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.slice();
|
|
18237
18267
|
clone.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = new Set(this.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked);
|
|
18238
18268
|
if ("liked" in values && values.liked != null) if (values.liked instanceof Collection || values.liked instanceof URL) {
|
|
18239
18269
|
clone.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = [values.liked];
|
|
18240
18270
|
clone.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = new Set([0]);
|
|
18241
18271
|
} else throw new TypeError("The liked must be of type Collection | URL.");
|
|
18242
|
-
clone.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured = this.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured;
|
|
18272
|
+
clone.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured = this.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured.slice();
|
|
18243
18273
|
clone.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured = new Set(this.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured);
|
|
18244
18274
|
if ("featured" in values && values.featured != null) if (values.featured instanceof Collection || values.featured instanceof URL) {
|
|
18245
18275
|
clone.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured = [values.featured];
|
|
18246
18276
|
clone.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured = new Set([0]);
|
|
18247
18277
|
} else throw new TypeError("The featured must be of type Collection | URL.");
|
|
18248
|
-
clone.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = this.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags;
|
|
18278
|
+
clone.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = this.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.slice();
|
|
18249
18279
|
clone.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = new Set(this.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags);
|
|
18250
18280
|
if ("featuredTags" in values && values.featuredTags != null) if (values.featuredTags instanceof Collection || values.featuredTags instanceof URL) {
|
|
18251
18281
|
clone.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = [values.featuredTags];
|
|
18252
18282
|
clone.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = new Set([0]);
|
|
18253
18283
|
} else throw new TypeError("The featuredTags must be of type Collection | URL.");
|
|
18254
|
-
clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams;
|
|
18284
|
+
clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.slice();
|
|
18255
18285
|
clone.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = new Set(this.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams);
|
|
18256
18286
|
if ("streams" in values && values.streams != null) if (Array.isArray(values.streams) && values.streams.every((v) => v instanceof Collection || v instanceof URL)) {
|
|
18257
|
-
clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams;
|
|
18287
|
+
clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams.slice();
|
|
18258
18288
|
clone.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = /* @__PURE__ */ new Set();
|
|
18259
18289
|
for (let i = 0; i < values.streams.length; i++) clone.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.add(i);
|
|
18260
18290
|
} else throw new TypeError("The streams must be an array of type Collection | URL.");
|
|
18261
|
-
clone.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = this.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints;
|
|
18291
|
+
clone.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = this.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.slice();
|
|
18262
18292
|
if ("endpoints" in values && values.endpoints != null) if (values.endpoints instanceof Endpoints) clone.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = [values.endpoints];
|
|
18263
18293
|
else throw new TypeError("The endpoints must be of type Endpoints.");
|
|
18264
|
-
clone.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = this.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable;
|
|
18294
|
+
clone.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = this.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable.slice();
|
|
18265
18295
|
if ("discoverable" in values && values.discoverable != null) if (typeof values.discoverable === "boolean") clone.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = [values.discoverable];
|
|
18266
18296
|
else throw new TypeError("The discoverable must be of type boolean.");
|
|
18267
|
-
clone.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = this.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended;
|
|
18297
|
+
clone.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = this.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended.slice();
|
|
18268
18298
|
if ("suspended" in values && values.suspended != null) if (typeof values.suspended === "boolean") clone.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = [values.suspended];
|
|
18269
18299
|
else throw new TypeError("The suspended must be of type boolean.");
|
|
18270
|
-
clone.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = this.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial;
|
|
18300
|
+
clone.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = this.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial.slice();
|
|
18271
18301
|
if ("memorial" in values && values.memorial != null) if (typeof values.memorial === "boolean") clone.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = [values.memorial];
|
|
18272
18302
|
else throw new TypeError("The memorial must be of type boolean.");
|
|
18273
|
-
clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable;
|
|
18303
|
+
clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable.slice();
|
|
18274
18304
|
if ("indexable" in values && values.indexable != null) if (typeof values.indexable === "boolean") clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = [values.indexable];
|
|
18275
18305
|
else throw new TypeError("The indexable must be of type boolean.");
|
|
18276
|
-
clone.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo;
|
|
18306
|
+
clone.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.slice();
|
|
18277
18307
|
clone.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = new Set(this.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo);
|
|
18278
18308
|
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) {
|
|
18279
18309
|
clone.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = [values.successor];
|
|
18280
18310
|
clone.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = new Set([0]);
|
|
18281
18311
|
} else throw new TypeError("The successor must be of type Application | Group | Organization | Person | Service | URL.");
|
|
18282
|
-
clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs;
|
|
18312
|
+
clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.slice();
|
|
18283
18313
|
clone.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = new Set(this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs);
|
|
18284
18314
|
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) {
|
|
18285
18315
|
clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = [values.alias];
|
|
@@ -18288,12 +18318,12 @@ var Application = class Application extends Object$1 {
|
|
|
18288
18318
|
if ("aliases" in values && values.aliases != null) {
|
|
18289
18319
|
if ("alias" in values && values.alias != null) throw new TypeError("Cannot update both alias and aliases at the same time.");
|
|
18290
18320
|
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)) {
|
|
18291
|
-
clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases;
|
|
18321
|
+
clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases.slice();
|
|
18292
18322
|
clone.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = /* @__PURE__ */ new Set();
|
|
18293
18323
|
for (let i = 0; i < values.aliases.length; i++) clone.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.add(i);
|
|
18294
18324
|
} else throw new TypeError("The aliases must be an array of type Application | Group | Organization | Person | Service | URL.");
|
|
18295
18325
|
}
|
|
18296
|
-
clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service;
|
|
18326
|
+
clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.slice();
|
|
18297
18327
|
clone.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = new Set(this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service);
|
|
18298
18328
|
if ("service" in values && values.service != null) if (values.service instanceof DidService || values.service instanceof URL) {
|
|
18299
18329
|
clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = [values.service];
|
|
@@ -18302,15 +18332,15 @@ var Application = class Application extends Object$1 {
|
|
|
18302
18332
|
if ("services" in values && values.services != null) {
|
|
18303
18333
|
if ("service" in values && values.service != null) throw new TypeError("Cannot update both service and services at the same time.");
|
|
18304
18334
|
if (Array.isArray(values.services) && values.services.every((v) => v instanceof DidService || v instanceof URL)) {
|
|
18305
|
-
clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services;
|
|
18335
|
+
clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services.slice();
|
|
18306
18336
|
clone.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = /* @__PURE__ */ new Set();
|
|
18307
18337
|
for (let i = 0; i < values.services.length; i++) clone.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.add(i);
|
|
18308
18338
|
} else throw new TypeError("The services must be an array of type DidService | URL.");
|
|
18309
18339
|
}
|
|
18310
|
-
clone.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = this.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage;
|
|
18340
|
+
clone.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = this.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage.slice();
|
|
18311
18341
|
if ("followedMessage" in values && values.followedMessage != null) if (typeof values.followedMessage === "string") clone.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = [values.followedMessage];
|
|
18312
18342
|
else throw new TypeError("The followedMessage must be of type string.");
|
|
18313
|
-
clone.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat;
|
|
18343
|
+
clone.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat.slice();
|
|
18314
18344
|
if ("cat" in values && values.cat != null) if (typeof values.cat === "boolean") clone.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = [values.cat];
|
|
18315
18345
|
else throw new TypeError("The cat must be of type boolean.");
|
|
18316
18346
|
return clone;
|
|
@@ -21641,7 +21671,8 @@ var IntransitiveActivity = class IntransitiveActivity extends Activity {
|
|
|
21641
21671
|
* Clones this instance, optionally updating it with the given values.
|
|
21642
21672
|
* @param values The values to update the clone with.
|
|
21643
21673
|
* @param options The options to use for cloning.
|
|
21644
|
-
* @returns The cloned instance.
|
|
21674
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
21675
|
+
* and URLs are shared with this instance.
|
|
21645
21676
|
*/
|
|
21646
21677
|
clone(values = {}, options = {}) {
|
|
21647
21678
|
if (this._warning != null) {
|
|
@@ -21797,7 +21828,8 @@ var Arrive = class Arrive extends IntransitiveActivity {
|
|
|
21797
21828
|
* Clones this instance, optionally updating it with the given values.
|
|
21798
21829
|
* @param values The values to update the clone with.
|
|
21799
21830
|
* @param options The options to use for cloning.
|
|
21800
|
-
* @returns The cloned instance.
|
|
21831
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
21832
|
+
* and URLs are shared with this instance.
|
|
21801
21833
|
*/
|
|
21802
21834
|
clone(values = {}, options = {}) {
|
|
21803
21835
|
if (this._warning != null) {
|
|
@@ -21963,7 +21995,8 @@ var Article = class Article extends Object$1 {
|
|
|
21963
21995
|
* Clones this instance, optionally updating it with the given values.
|
|
21964
21996
|
* @param values The values to update the clone with.
|
|
21965
21997
|
* @param options The options to use for cloning.
|
|
21966
|
-
* @returns The cloned instance.
|
|
21998
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
21999
|
+
* and URLs are shared with this instance.
|
|
21967
22000
|
*/
|
|
21968
22001
|
clone(values = {}, options = {}) {
|
|
21969
22002
|
if (this._warning != null) {
|
|
@@ -21974,16 +22007,16 @@ var Article = class Article extends Object$1 {
|
|
|
21974
22007
|
};
|
|
21975
22008
|
}
|
|
21976
22009
|
const clone = super.clone(values, options);
|
|
21977
|
-
clone.#_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote = this.#_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote;
|
|
22010
|
+
clone.#_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote = this.#_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote.slice();
|
|
21978
22011
|
clone.#_trust_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote = new Set(this.#_trust_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote);
|
|
21979
22012
|
if ("quote" in values && values.quote != null) if (values.quote instanceof Object$1 || values.quote instanceof URL) {
|
|
21980
22013
|
clone.#_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote = [values.quote];
|
|
21981
22014
|
clone.#_trust_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote = new Set([0]);
|
|
21982
22015
|
} else throw new TypeError("The quote must be of type Object | URL.");
|
|
21983
|
-
clone.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl = this.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl;
|
|
22016
|
+
clone.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl = this.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl.slice();
|
|
21984
22017
|
if ("quoteUrl" in values && values.quoteUrl != null) if (values.quoteUrl instanceof URL) clone.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl = [values.quoteUrl];
|
|
21985
22018
|
else throw new TypeError("The quoteUrl must be of type URL.");
|
|
21986
|
-
clone.#_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization = this.#_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization;
|
|
22019
|
+
clone.#_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization = this.#_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization.slice();
|
|
21987
22020
|
clone.#_trust_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization = new Set(this.#_trust_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization);
|
|
21988
22021
|
if ("quoteAuthorization" in values && values.quoteAuthorization != null) if (values.quoteAuthorization instanceof QuoteAuthorization || values.quoteAuthorization instanceof URL) {
|
|
21989
22022
|
clone.#_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization = [values.quoteAuthorization];
|
|
@@ -22608,7 +22641,8 @@ var Document = class Document extends Object$1 {
|
|
|
22608
22641
|
* Clones this instance, optionally updating it with the given values.
|
|
22609
22642
|
* @param values The values to update the clone with.
|
|
22610
22643
|
* @param options The options to use for cloning.
|
|
22611
|
-
* @returns The cloned instance.
|
|
22644
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
22645
|
+
* and URLs are shared with this instance.
|
|
22612
22646
|
*/
|
|
22613
22647
|
clone(values = {}, options = {}) {
|
|
22614
22648
|
if (this._warning != null) {
|
|
@@ -22619,10 +22653,10 @@ var Document = class Document extends Object$1 {
|
|
|
22619
22653
|
};
|
|
22620
22654
|
}
|
|
22621
22655
|
const clone = super.clone(values, options);
|
|
22622
|
-
clone.#_2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width = this.#_2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width;
|
|
22656
|
+
clone.#_2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width = this.#_2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width.slice();
|
|
22623
22657
|
if ("width" in values && values.width != null) if (typeof values.width === "number" && Number.isInteger(values.width) && values.width >= 0) clone.#_2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width = [values.width];
|
|
22624
22658
|
else throw new TypeError("The width must be of type number.");
|
|
22625
|
-
clone.#_2cGKFeFJMmiNpGZFEF75mCwFQsKb_height = this.#_2cGKFeFJMmiNpGZFEF75mCwFQsKb_height;
|
|
22659
|
+
clone.#_2cGKFeFJMmiNpGZFEF75mCwFQsKb_height = this.#_2cGKFeFJMmiNpGZFEF75mCwFQsKb_height.slice();
|
|
22626
22660
|
if ("height" in values && values.height != null) if (typeof values.height === "number" && Number.isInteger(values.height) && values.height >= 0) clone.#_2cGKFeFJMmiNpGZFEF75mCwFQsKb_height = [values.height];
|
|
22627
22661
|
else throw new TypeError("The height must be of type number.");
|
|
22628
22662
|
return clone;
|
|
@@ -22868,7 +22902,8 @@ var Audio = class Audio extends Document {
|
|
|
22868
22902
|
* Clones this instance, optionally updating it with the given values.
|
|
22869
22903
|
* @param values The values to update the clone with.
|
|
22870
22904
|
* @param options The options to use for cloning.
|
|
22871
|
-
* @returns The cloned instance.
|
|
22905
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
22906
|
+
* and URLs are shared with this instance.
|
|
22872
22907
|
*/
|
|
22873
22908
|
clone(values = {}, options = {}) {
|
|
22874
22909
|
if (this._warning != null) {
|
|
@@ -23034,7 +23069,8 @@ var Ignore = class Ignore extends Activity {
|
|
|
23034
23069
|
* Clones this instance, optionally updating it with the given values.
|
|
23035
23070
|
* @param values The values to update the clone with.
|
|
23036
23071
|
* @param options The options to use for cloning.
|
|
23037
|
-
* @returns The cloned instance.
|
|
23072
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
23073
|
+
* and URLs are shared with this instance.
|
|
23038
23074
|
*/
|
|
23039
23075
|
clone(values = {}, options = {}) {
|
|
23040
23076
|
if (this._warning != null) {
|
|
@@ -23189,7 +23225,8 @@ var Block = class Block extends Ignore {
|
|
|
23189
23225
|
* Clones this instance, optionally updating it with the given values.
|
|
23190
23226
|
* @param values The values to update the clone with.
|
|
23191
23227
|
* @param options The options to use for cloning.
|
|
23192
|
-
* @returns The cloned instance.
|
|
23228
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
23229
|
+
* and URLs are shared with this instance.
|
|
23193
23230
|
*/
|
|
23194
23231
|
clone(values = {}, options = {}) {
|
|
23195
23232
|
if (this._warning != null) {
|
|
@@ -23379,7 +23416,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
23379
23416
|
this.#_trust_gyJJnyEFnuNVi1HFZKfAn3Hfn26_last.add(0);
|
|
23380
23417
|
} else throw new TypeError("The last must be of type CollectionPage | URL.");
|
|
23381
23418
|
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)) {
|
|
23382
|
-
this.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = values.items;
|
|
23419
|
+
this.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = values.items.slice();
|
|
23383
23420
|
for (let i = 0; i < values.items.length; i++) this.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items.add(i);
|
|
23384
23421
|
} else throw new TypeError("The items must be an array of type Object | Link | URL.");
|
|
23385
23422
|
if ("likesOf" in values && values.likesOf != null) if (values.likesOf instanceof Object$1 || values.likesOf instanceof URL) {
|
|
@@ -23419,7 +23456,8 @@ var Collection = class Collection extends Object$1 {
|
|
|
23419
23456
|
* Clones this instance, optionally updating it with the given values.
|
|
23420
23457
|
* @param values The values to update the clone with.
|
|
23421
23458
|
* @param options The options to use for cloning.
|
|
23422
|
-
* @returns The cloned instance.
|
|
23459
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
23460
|
+
* and URLs are shared with this instance.
|
|
23423
23461
|
*/
|
|
23424
23462
|
clone(values = {}, options = {}) {
|
|
23425
23463
|
if (this._warning != null) {
|
|
@@ -23430,77 +23468,77 @@ var Collection = class Collection extends Object$1 {
|
|
|
23430
23468
|
};
|
|
23431
23469
|
}
|
|
23432
23470
|
const clone = super.clone(values, options);
|
|
23433
|
-
clone.#_XDbmNDuWHmrhqH712zqtecdbv1V_totalItems = this.#_XDbmNDuWHmrhqH712zqtecdbv1V_totalItems;
|
|
23471
|
+
clone.#_XDbmNDuWHmrhqH712zqtecdbv1V_totalItems = this.#_XDbmNDuWHmrhqH712zqtecdbv1V_totalItems.slice();
|
|
23434
23472
|
if ("totalItems" in values && values.totalItems != null) if (typeof values.totalItems === "number" && Number.isInteger(values.totalItems) && values.totalItems >= 0) clone.#_XDbmNDuWHmrhqH712zqtecdbv1V_totalItems = [values.totalItems];
|
|
23435
23473
|
else throw new TypeError("The totalItems must be of type number.");
|
|
23436
|
-
clone.#_3UyUdxnyn6cDn53QKrh4MBiearma_current = this.#_3UyUdxnyn6cDn53QKrh4MBiearma_current;
|
|
23474
|
+
clone.#_3UyUdxnyn6cDn53QKrh4MBiearma_current = this.#_3UyUdxnyn6cDn53QKrh4MBiearma_current.slice();
|
|
23437
23475
|
clone.#_trust_3UyUdxnyn6cDn53QKrh4MBiearma_current = new Set(this.#_trust_3UyUdxnyn6cDn53QKrh4MBiearma_current);
|
|
23438
23476
|
if ("current" in values && values.current != null) if (values.current instanceof CollectionPage || values.current instanceof URL) {
|
|
23439
23477
|
clone.#_3UyUdxnyn6cDn53QKrh4MBiearma_current = [values.current];
|
|
23440
23478
|
clone.#_trust_3UyUdxnyn6cDn53QKrh4MBiearma_current = new Set([0]);
|
|
23441
23479
|
} else throw new TypeError("The current must be of type CollectionPage | URL.");
|
|
23442
|
-
clone.#_J52RqweMe6hhv7RnLJMC8BExTE5_first = this.#_J52RqweMe6hhv7RnLJMC8BExTE5_first;
|
|
23480
|
+
clone.#_J52RqweMe6hhv7RnLJMC8BExTE5_first = this.#_J52RqweMe6hhv7RnLJMC8BExTE5_first.slice();
|
|
23443
23481
|
clone.#_trust_J52RqweMe6hhv7RnLJMC8BExTE5_first = new Set(this.#_trust_J52RqweMe6hhv7RnLJMC8BExTE5_first);
|
|
23444
23482
|
if ("first" in values && values.first != null) if (values.first instanceof CollectionPage || values.first instanceof URL) {
|
|
23445
23483
|
clone.#_J52RqweMe6hhv7RnLJMC8BExTE5_first = [values.first];
|
|
23446
23484
|
clone.#_trust_J52RqweMe6hhv7RnLJMC8BExTE5_first = new Set([0]);
|
|
23447
23485
|
} else throw new TypeError("The first must be of type CollectionPage | URL.");
|
|
23448
|
-
clone.#_gyJJnyEFnuNVi1HFZKfAn3Hfn26_last = this.#_gyJJnyEFnuNVi1HFZKfAn3Hfn26_last;
|
|
23486
|
+
clone.#_gyJJnyEFnuNVi1HFZKfAn3Hfn26_last = this.#_gyJJnyEFnuNVi1HFZKfAn3Hfn26_last.slice();
|
|
23449
23487
|
clone.#_trust_gyJJnyEFnuNVi1HFZKfAn3Hfn26_last = new Set(this.#_trust_gyJJnyEFnuNVi1HFZKfAn3Hfn26_last);
|
|
23450
23488
|
if ("last" in values && values.last != null) if (values.last instanceof CollectionPage || values.last instanceof URL) {
|
|
23451
23489
|
clone.#_gyJJnyEFnuNVi1HFZKfAn3Hfn26_last = [values.last];
|
|
23452
23490
|
clone.#_trust_gyJJnyEFnuNVi1HFZKfAn3Hfn26_last = new Set([0]);
|
|
23453
23491
|
} else throw new TypeError("The last must be of type CollectionPage | URL.");
|
|
23454
|
-
clone.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = this.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items;
|
|
23492
|
+
clone.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = this.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items.slice();
|
|
23455
23493
|
clone.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = new Set(this.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items);
|
|
23456
23494
|
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)) {
|
|
23457
|
-
clone.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = values.items;
|
|
23495
|
+
clone.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = values.items.slice();
|
|
23458
23496
|
clone.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = /* @__PURE__ */ new Set();
|
|
23459
23497
|
for (let i = 0; i < values.items.length; i++) clone.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items.add(i);
|
|
23460
23498
|
} else throw new TypeError("The items must be an array of type Object | Link | URL.");
|
|
23461
|
-
clone.#_4TB9Qd9ddtcZEpMfzbHhzafE6jaJ_likesOf = this.#_4TB9Qd9ddtcZEpMfzbHhzafE6jaJ_likesOf;
|
|
23499
|
+
clone.#_4TB9Qd9ddtcZEpMfzbHhzafE6jaJ_likesOf = this.#_4TB9Qd9ddtcZEpMfzbHhzafE6jaJ_likesOf.slice();
|
|
23462
23500
|
clone.#_trust_4TB9Qd9ddtcZEpMfzbHhzafE6jaJ_likesOf = new Set(this.#_trust_4TB9Qd9ddtcZEpMfzbHhzafE6jaJ_likesOf);
|
|
23463
23501
|
if ("likesOf" in values && values.likesOf != null) if (values.likesOf instanceof Object$1 || values.likesOf instanceof URL) {
|
|
23464
23502
|
clone.#_4TB9Qd9ddtcZEpMfzbHhzafE6jaJ_likesOf = [values.likesOf];
|
|
23465
23503
|
clone.#_trust_4TB9Qd9ddtcZEpMfzbHhzafE6jaJ_likesOf = new Set([0]);
|
|
23466
23504
|
} else throw new TypeError("The likesOf must be of type Object | URL.");
|
|
23467
|
-
clone.#_3manzgeKiPsugpztKGiaUUwJ3ito_sharesOf = this.#_3manzgeKiPsugpztKGiaUUwJ3ito_sharesOf;
|
|
23505
|
+
clone.#_3manzgeKiPsugpztKGiaUUwJ3ito_sharesOf = this.#_3manzgeKiPsugpztKGiaUUwJ3ito_sharesOf.slice();
|
|
23468
23506
|
clone.#_trust_3manzgeKiPsugpztKGiaUUwJ3ito_sharesOf = new Set(this.#_trust_3manzgeKiPsugpztKGiaUUwJ3ito_sharesOf);
|
|
23469
23507
|
if ("sharesOf" in values && values.sharesOf != null) if (values.sharesOf instanceof Object$1 || values.sharesOf instanceof URL) {
|
|
23470
23508
|
clone.#_3manzgeKiPsugpztKGiaUUwJ3ito_sharesOf = [values.sharesOf];
|
|
23471
23509
|
clone.#_trust_3manzgeKiPsugpztKGiaUUwJ3ito_sharesOf = new Set([0]);
|
|
23472
23510
|
} else throw new TypeError("The sharesOf must be of type Object | URL.");
|
|
23473
|
-
clone.#_3T3oGm3twpcQUcrnMisXQtmDZ32X_repliesOf = this.#_3T3oGm3twpcQUcrnMisXQtmDZ32X_repliesOf;
|
|
23511
|
+
clone.#_3T3oGm3twpcQUcrnMisXQtmDZ32X_repliesOf = this.#_3T3oGm3twpcQUcrnMisXQtmDZ32X_repliesOf.slice();
|
|
23474
23512
|
clone.#_trust_3T3oGm3twpcQUcrnMisXQtmDZ32X_repliesOf = new Set(this.#_trust_3T3oGm3twpcQUcrnMisXQtmDZ32X_repliesOf);
|
|
23475
23513
|
if ("repliesOf" in values && values.repliesOf != null) if (values.repliesOf instanceof Object$1 || values.repliesOf instanceof URL) {
|
|
23476
23514
|
clone.#_3T3oGm3twpcQUcrnMisXQtmDZ32X_repliesOf = [values.repliesOf];
|
|
23477
23515
|
clone.#_trust_3T3oGm3twpcQUcrnMisXQtmDZ32X_repliesOf = new Set([0]);
|
|
23478
23516
|
} else throw new TypeError("The repliesOf must be of type Object | URL.");
|
|
23479
|
-
clone.#_2bvRkAFZjMfVD8jiUWZJr5YokSeN_inboxOf = this.#_2bvRkAFZjMfVD8jiUWZJr5YokSeN_inboxOf;
|
|
23517
|
+
clone.#_2bvRkAFZjMfVD8jiUWZJr5YokSeN_inboxOf = this.#_2bvRkAFZjMfVD8jiUWZJr5YokSeN_inboxOf.slice();
|
|
23480
23518
|
clone.#_trust_2bvRkAFZjMfVD8jiUWZJr5YokSeN_inboxOf = new Set(this.#_trust_2bvRkAFZjMfVD8jiUWZJr5YokSeN_inboxOf);
|
|
23481
23519
|
if ("inboxOf" in values && values.inboxOf != null) if (values.inboxOf instanceof Object$1 || values.inboxOf instanceof URL) {
|
|
23482
23520
|
clone.#_2bvRkAFZjMfVD8jiUWZJr5YokSeN_inboxOf = [values.inboxOf];
|
|
23483
23521
|
clone.#_trust_2bvRkAFZjMfVD8jiUWZJr5YokSeN_inboxOf = new Set([0]);
|
|
23484
23522
|
} else throw new TypeError("The inboxOf must be of type Object | URL.");
|
|
23485
|
-
clone.#_4AHzVZDxHjK6uEWa9UiKHGK34yYm_outboxOf = this.#_4AHzVZDxHjK6uEWa9UiKHGK34yYm_outboxOf;
|
|
23523
|
+
clone.#_4AHzVZDxHjK6uEWa9UiKHGK34yYm_outboxOf = this.#_4AHzVZDxHjK6uEWa9UiKHGK34yYm_outboxOf.slice();
|
|
23486
23524
|
clone.#_trust_4AHzVZDxHjK6uEWa9UiKHGK34yYm_outboxOf = new Set(this.#_trust_4AHzVZDxHjK6uEWa9UiKHGK34yYm_outboxOf);
|
|
23487
23525
|
if ("outboxOf" in values && values.outboxOf != null) if (values.outboxOf instanceof Object$1 || values.outboxOf instanceof URL) {
|
|
23488
23526
|
clone.#_4AHzVZDxHjK6uEWa9UiKHGK34yYm_outboxOf = [values.outboxOf];
|
|
23489
23527
|
clone.#_trust_4AHzVZDxHjK6uEWa9UiKHGK34yYm_outboxOf = new Set([0]);
|
|
23490
23528
|
} else throw new TypeError("The outboxOf must be of type Object | URL.");
|
|
23491
|
-
clone.#_41aoZ5M6yRUHy3Zx8q6iuZQxtopb_followersOf = this.#_41aoZ5M6yRUHy3Zx8q6iuZQxtopb_followersOf;
|
|
23529
|
+
clone.#_41aoZ5M6yRUHy3Zx8q6iuZQxtopb_followersOf = this.#_41aoZ5M6yRUHy3Zx8q6iuZQxtopb_followersOf.slice();
|
|
23492
23530
|
clone.#_trust_41aoZ5M6yRUHy3Zx8q6iuZQxtopb_followersOf = new Set(this.#_trust_41aoZ5M6yRUHy3Zx8q6iuZQxtopb_followersOf);
|
|
23493
23531
|
if ("followersOf" in values && values.followersOf != null) if (values.followersOf instanceof Object$1 || values.followersOf instanceof URL) {
|
|
23494
23532
|
clone.#_41aoZ5M6yRUHy3Zx8q6iuZQxtopb_followersOf = [values.followersOf];
|
|
23495
23533
|
clone.#_trust_41aoZ5M6yRUHy3Zx8q6iuZQxtopb_followersOf = new Set([0]);
|
|
23496
23534
|
} else throw new TypeError("The followersOf must be of type Object | URL.");
|
|
23497
|
-
clone.#_2nXT2Ah42UjEEQF5oJQ39CbKB1xj_followingOf = this.#_2nXT2Ah42UjEEQF5oJQ39CbKB1xj_followingOf;
|
|
23535
|
+
clone.#_2nXT2Ah42UjEEQF5oJQ39CbKB1xj_followingOf = this.#_2nXT2Ah42UjEEQF5oJQ39CbKB1xj_followingOf.slice();
|
|
23498
23536
|
clone.#_trust_2nXT2Ah42UjEEQF5oJQ39CbKB1xj_followingOf = new Set(this.#_trust_2nXT2Ah42UjEEQF5oJQ39CbKB1xj_followingOf);
|
|
23499
23537
|
if ("followingOf" in values && values.followingOf != null) if (values.followingOf instanceof Object$1 || values.followingOf instanceof URL) {
|
|
23500
23538
|
clone.#_2nXT2Ah42UjEEQF5oJQ39CbKB1xj_followingOf = [values.followingOf];
|
|
23501
23539
|
clone.#_trust_2nXT2Ah42UjEEQF5oJQ39CbKB1xj_followingOf = new Set([0]);
|
|
23502
23540
|
} else throw new TypeError("The followingOf must be of type Object | URL.");
|
|
23503
|
-
clone.#_2bsySzmT3qEZcrnoe3tZ5xBjXSju_likedOf = this.#_2bsySzmT3qEZcrnoe3tZ5xBjXSju_likedOf;
|
|
23541
|
+
clone.#_2bsySzmT3qEZcrnoe3tZ5xBjXSju_likedOf = this.#_2bsySzmT3qEZcrnoe3tZ5xBjXSju_likedOf.slice();
|
|
23504
23542
|
clone.#_trust_2bsySzmT3qEZcrnoe3tZ5xBjXSju_likedOf = new Set(this.#_trust_2bsySzmT3qEZcrnoe3tZ5xBjXSju_likedOf);
|
|
23505
23543
|
if ("likedOf" in values && values.likedOf != null) if (values.likedOf instanceof Object$1 || values.likedOf instanceof URL) {
|
|
23506
23544
|
clone.#_2bsySzmT3qEZcrnoe3tZ5xBjXSju_likedOf = [values.likedOf];
|
|
@@ -25962,7 +26000,8 @@ var CollectionPage = class CollectionPage extends Collection {
|
|
|
25962
26000
|
* Clones this instance, optionally updating it with the given values.
|
|
25963
26001
|
* @param values The values to update the clone with.
|
|
25964
26002
|
* @param options The options to use for cloning.
|
|
25965
|
-
* @returns The cloned instance.
|
|
26003
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
26004
|
+
* and URLs are shared with this instance.
|
|
25966
26005
|
*/
|
|
25967
26006
|
clone(values = {}, options = {}) {
|
|
25968
26007
|
if (this._warning != null) {
|
|
@@ -25973,19 +26012,19 @@ var CollectionPage = class CollectionPage extends Collection {
|
|
|
25973
26012
|
};
|
|
25974
26013
|
}
|
|
25975
26014
|
const clone = super.clone(values, options);
|
|
25976
|
-
clone.#_2kWgBhQKjEauxx8C6qF3ZQamK4Le_partOf = this.#_2kWgBhQKjEauxx8C6qF3ZQamK4Le_partOf;
|
|
26015
|
+
clone.#_2kWgBhQKjEauxx8C6qF3ZQamK4Le_partOf = this.#_2kWgBhQKjEauxx8C6qF3ZQamK4Le_partOf.slice();
|
|
25977
26016
|
clone.#_trust_2kWgBhQKjEauxx8C6qF3ZQamK4Le_partOf = new Set(this.#_trust_2kWgBhQKjEauxx8C6qF3ZQamK4Le_partOf);
|
|
25978
26017
|
if ("partOf" in values && values.partOf != null) if (values.partOf instanceof Collection || values.partOf instanceof URL) {
|
|
25979
26018
|
clone.#_2kWgBhQKjEauxx8C6qF3ZQamK4Le_partOf = [values.partOf];
|
|
25980
26019
|
clone.#_trust_2kWgBhQKjEauxx8C6qF3ZQamK4Le_partOf = new Set([0]);
|
|
25981
26020
|
} else throw new TypeError("The partOf must be of type Collection | URL.");
|
|
25982
|
-
clone.#_3BT4kQLcXhHx7TAWaNDKh8nFn9eY_next = this.#_3BT4kQLcXhHx7TAWaNDKh8nFn9eY_next;
|
|
26021
|
+
clone.#_3BT4kQLcXhHx7TAWaNDKh8nFn9eY_next = this.#_3BT4kQLcXhHx7TAWaNDKh8nFn9eY_next.slice();
|
|
25983
26022
|
clone.#_trust_3BT4kQLcXhHx7TAWaNDKh8nFn9eY_next = new Set(this.#_trust_3BT4kQLcXhHx7TAWaNDKh8nFn9eY_next);
|
|
25984
26023
|
if ("next" in values && values.next != null) if (values.next instanceof CollectionPage || values.next instanceof URL) {
|
|
25985
26024
|
clone.#_3BT4kQLcXhHx7TAWaNDKh8nFn9eY_next = [values.next];
|
|
25986
26025
|
clone.#_trust_3BT4kQLcXhHx7TAWaNDKh8nFn9eY_next = new Set([0]);
|
|
25987
26026
|
} else throw new TypeError("The next must be of type CollectionPage | URL.");
|
|
25988
|
-
clone.#_3b8yG8tDNzQFFEnWhCc13G8eHooA_prev = this.#_3b8yG8tDNzQFFEnWhCc13G8eHooA_prev;
|
|
26027
|
+
clone.#_3b8yG8tDNzQFFEnWhCc13G8eHooA_prev = this.#_3b8yG8tDNzQFFEnWhCc13G8eHooA_prev.slice();
|
|
25989
26028
|
clone.#_trust_3b8yG8tDNzQFFEnWhCc13G8eHooA_prev = new Set(this.#_trust_3b8yG8tDNzQFFEnWhCc13G8eHooA_prev);
|
|
25990
26029
|
if ("prev" in values && values.prev != null) if (values.prev instanceof CollectionPage || values.prev instanceof URL) {
|
|
25991
26030
|
clone.#_3b8yG8tDNzQFFEnWhCc13G8eHooA_prev = [values.prev];
|
|
@@ -26726,7 +26765,8 @@ var Create = class Create extends Activity {
|
|
|
26726
26765
|
* Clones this instance, optionally updating it with the given values.
|
|
26727
26766
|
* @param values The values to update the clone with.
|
|
26728
26767
|
* @param options The options to use for cloning.
|
|
26729
|
-
* @returns The cloned instance.
|
|
26768
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
26769
|
+
* and URLs are shared with this instance.
|
|
26730
26770
|
*/
|
|
26731
26771
|
clone(values = {}, options = {}) {
|
|
26732
26772
|
if (this._warning != null) {
|
|
@@ -26908,7 +26948,8 @@ var Delete = class Delete extends Activity {
|
|
|
26908
26948
|
* Clones this instance, optionally updating it with the given values.
|
|
26909
26949
|
* @param values The values to update the clone with.
|
|
26910
26950
|
* @param options The options to use for cloning.
|
|
26911
|
-
* @returns The cloned instance.
|
|
26951
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
26952
|
+
* and URLs are shared with this instance.
|
|
26912
26953
|
*/
|
|
26913
26954
|
clone(values = {}, options = {}) {
|
|
26914
26955
|
if (this._warning != null) {
|
|
@@ -27085,7 +27126,8 @@ var Dislike = class Dislike extends Activity {
|
|
|
27085
27126
|
* Clones this instance, optionally updating it with the given values.
|
|
27086
27127
|
* @param values The values to update the clone with.
|
|
27087
27128
|
* @param options The options to use for cloning.
|
|
27088
|
-
* @returns The cloned instance.
|
|
27129
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
27130
|
+
* and URLs are shared with this instance.
|
|
27089
27131
|
*/
|
|
27090
27132
|
clone(values = {}, options = {}) {
|
|
27091
27133
|
if (this._warning != null) {
|
|
@@ -27305,7 +27347,8 @@ var Endpoints = class {
|
|
|
27305
27347
|
* Clones this instance, optionally updating it with the given values.
|
|
27306
27348
|
* @param values The values to update the clone with.
|
|
27307
27349
|
* @param options The options to use for cloning.
|
|
27308
|
-
* @returns The cloned instance.
|
|
27350
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
27351
|
+
* and URLs are shared with this instance.
|
|
27309
27352
|
*/
|
|
27310
27353
|
clone(values = {}, options = {}) {
|
|
27311
27354
|
if (this._warning != null) {
|
|
@@ -27316,22 +27359,22 @@ var Endpoints = class {
|
|
|
27316
27359
|
};
|
|
27317
27360
|
}
|
|
27318
27361
|
const clone = new this.constructor({ id: values.id ?? this.id }, options);
|
|
27319
|
-
clone.#_2JCYDbSxEHCCLdBYed33cCETfGyR_proxyUrl = this.#_2JCYDbSxEHCCLdBYed33cCETfGyR_proxyUrl;
|
|
27362
|
+
clone.#_2JCYDbSxEHCCLdBYed33cCETfGyR_proxyUrl = this.#_2JCYDbSxEHCCLdBYed33cCETfGyR_proxyUrl.slice();
|
|
27320
27363
|
if ("proxyUrl" in values && values.proxyUrl != null) if (values.proxyUrl instanceof URL) clone.#_2JCYDbSxEHCCLdBYed33cCETfGyR_proxyUrl = [values.proxyUrl];
|
|
27321
27364
|
else throw new TypeError("The proxyUrl must be of type URL.");
|
|
27322
|
-
clone.#_25S6UmgzDead8hxL5sQFezZTAusd_oauthAuthorizationEndpoint = this.#_25S6UmgzDead8hxL5sQFezZTAusd_oauthAuthorizationEndpoint;
|
|
27365
|
+
clone.#_25S6UmgzDead8hxL5sQFezZTAusd_oauthAuthorizationEndpoint = this.#_25S6UmgzDead8hxL5sQFezZTAusd_oauthAuthorizationEndpoint.slice();
|
|
27323
27366
|
if ("oauthAuthorizationEndpoint" in values && values.oauthAuthorizationEndpoint != null) if (values.oauthAuthorizationEndpoint instanceof URL) clone.#_25S6UmgzDead8hxL5sQFezZTAusd_oauthAuthorizationEndpoint = [values.oauthAuthorizationEndpoint];
|
|
27324
27367
|
else throw new TypeError("The oauthAuthorizationEndpoint must be of type URL.");
|
|
27325
|
-
clone.#_iAMxqrSba7yBCRB1FZ5kEVdKEZ3_oauthTokenEndpoint = this.#_iAMxqrSba7yBCRB1FZ5kEVdKEZ3_oauthTokenEndpoint;
|
|
27368
|
+
clone.#_iAMxqrSba7yBCRB1FZ5kEVdKEZ3_oauthTokenEndpoint = this.#_iAMxqrSba7yBCRB1FZ5kEVdKEZ3_oauthTokenEndpoint.slice();
|
|
27326
27369
|
if ("oauthTokenEndpoint" in values && values.oauthTokenEndpoint != null) if (values.oauthTokenEndpoint instanceof URL) clone.#_iAMxqrSba7yBCRB1FZ5kEVdKEZ3_oauthTokenEndpoint = [values.oauthTokenEndpoint];
|
|
27327
27370
|
else throw new TypeError("The oauthTokenEndpoint must be of type URL.");
|
|
27328
|
-
clone.#_8Bx9qN8oU7Bpt2xi6khaxWp1gMr_provideClientKey = this.#_8Bx9qN8oU7Bpt2xi6khaxWp1gMr_provideClientKey;
|
|
27371
|
+
clone.#_8Bx9qN8oU7Bpt2xi6khaxWp1gMr_provideClientKey = this.#_8Bx9qN8oU7Bpt2xi6khaxWp1gMr_provideClientKey.slice();
|
|
27329
27372
|
if ("provideClientKey" in values && values.provideClientKey != null) if (values.provideClientKey instanceof URL) clone.#_8Bx9qN8oU7Bpt2xi6khaxWp1gMr_provideClientKey = [values.provideClientKey];
|
|
27330
27373
|
else throw new TypeError("The provideClientKey must be of type URL.");
|
|
27331
|
-
clone.#_3dU7PMVQZJpsCpo2F4RQXxBXdPmS_signClientKey = this.#_3dU7PMVQZJpsCpo2F4RQXxBXdPmS_signClientKey;
|
|
27374
|
+
clone.#_3dU7PMVQZJpsCpo2F4RQXxBXdPmS_signClientKey = this.#_3dU7PMVQZJpsCpo2F4RQXxBXdPmS_signClientKey.slice();
|
|
27332
27375
|
if ("signClientKey" in values && values.signClientKey != null) if (values.signClientKey instanceof URL) clone.#_3dU7PMVQZJpsCpo2F4RQXxBXdPmS_signClientKey = [values.signClientKey];
|
|
27333
27376
|
else throw new TypeError("The signClientKey must be of type URL.");
|
|
27334
|
-
clone.#_3JprUSDLVqqX4dwHRi37qGZZCRCc_sharedInbox = this.#_3JprUSDLVqqX4dwHRi37qGZZCRCc_sharedInbox;
|
|
27377
|
+
clone.#_3JprUSDLVqqX4dwHRi37qGZZCRCc_sharedInbox = this.#_3JprUSDLVqqX4dwHRi37qGZZCRCc_sharedInbox.slice();
|
|
27335
27378
|
if ("sharedInbox" in values && values.sharedInbox != null) if (values.sharedInbox instanceof URL) clone.#_3JprUSDLVqqX4dwHRi37qGZZCRCc_sharedInbox = [values.sharedInbox];
|
|
27336
27379
|
else throw new TypeError("The sharedInbox must be of type URL.");
|
|
27337
27380
|
return clone;
|
|
@@ -27714,7 +27757,8 @@ var Event = class Event extends Object$1 {
|
|
|
27714
27757
|
* Clones this instance, optionally updating it with the given values.
|
|
27715
27758
|
* @param values The values to update the clone with.
|
|
27716
27759
|
* @param options The options to use for cloning.
|
|
27717
|
-
* @returns The cloned instance.
|
|
27760
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
27761
|
+
* and URLs are shared with this instance.
|
|
27718
27762
|
*/
|
|
27719
27763
|
clone(values = {}, options = {}) {
|
|
27720
27764
|
if (this._warning != null) {
|
|
@@ -27881,7 +27925,8 @@ var Flag = class Flag extends Activity {
|
|
|
27881
27925
|
* Clones this instance, optionally updating it with the given values.
|
|
27882
27926
|
* @param values The values to update the clone with.
|
|
27883
27927
|
* @param options The options to use for cloning.
|
|
27884
|
-
* @returns The cloned instance.
|
|
27928
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
27929
|
+
* and URLs are shared with this instance.
|
|
27885
27930
|
*/
|
|
27886
27931
|
clone(values = {}, options = {}) {
|
|
27887
27932
|
if (this._warning != null) {
|
|
@@ -28035,7 +28080,8 @@ var Follow = class Follow extends Activity {
|
|
|
28035
28080
|
* Clones this instance, optionally updating it with the given values.
|
|
28036
28081
|
* @param values The values to update the clone with.
|
|
28037
28082
|
* @param options The options to use for cloning.
|
|
28038
|
-
* @returns The cloned instance.
|
|
28083
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
28084
|
+
* and URLs are shared with this instance.
|
|
28039
28085
|
*/
|
|
28040
28086
|
clone(values = {}, options = {}) {
|
|
28041
28087
|
if (this._warning != null) {
|
|
@@ -28223,7 +28269,7 @@ var Group = class Group extends Object$1 {
|
|
|
28223
28269
|
else throw new TypeError("The preferredUsername must be of type string | LanguageString.");
|
|
28224
28270
|
if ("preferredUsernames" in values && values.preferredUsernames != null) {
|
|
28225
28271
|
if ("preferredUsername" in values && values.preferredUsername != null) throw new TypeError("Cannot initialize both preferredUsername and preferredUsernames at the same time.");
|
|
28226
|
-
if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every((v) => typeof v === "string" || v instanceof LanguageString)) this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames;
|
|
28272
|
+
if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every((v) => typeof v === "string" || v instanceof LanguageString)) this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames.slice();
|
|
28227
28273
|
else throw new TypeError("The preferredUsernames must be an array of type string | LanguageString.");
|
|
28228
28274
|
}
|
|
28229
28275
|
if ("publicKey" in values && values.publicKey != null) if (values.publicKey instanceof CryptographicKey || values.publicKey instanceof URL) {
|
|
@@ -28233,7 +28279,7 @@ var Group = class Group extends Object$1 {
|
|
|
28233
28279
|
if ("publicKeys" in values && values.publicKeys != null) {
|
|
28234
28280
|
if ("publicKey" in values && values.publicKey != null) throw new TypeError("Cannot initialize both publicKey and publicKeys at the same time.");
|
|
28235
28281
|
if (Array.isArray(values.publicKeys) && values.publicKeys.every((v) => v instanceof CryptographicKey || v instanceof URL)) {
|
|
28236
|
-
this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys;
|
|
28282
|
+
this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys.slice();
|
|
28237
28283
|
for (let i = 0; i < values.publicKeys.length; i++) this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.add(i);
|
|
28238
28284
|
} else throw new TypeError("The publicKeys must be an array of type CryptographicKey | URL.");
|
|
28239
28285
|
}
|
|
@@ -28244,7 +28290,7 @@ var Group = class Group extends Object$1 {
|
|
|
28244
28290
|
if ("assertionMethods" in values && values.assertionMethods != null) {
|
|
28245
28291
|
if ("assertionMethod" in values && values.assertionMethod != null) throw new TypeError("Cannot initialize both assertionMethod and assertionMethods at the same time.");
|
|
28246
28292
|
if (Array.isArray(values.assertionMethods) && values.assertionMethods.every((v) => v instanceof Multikey || v instanceof URL)) {
|
|
28247
|
-
this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods;
|
|
28293
|
+
this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods.slice();
|
|
28248
28294
|
for (let i = 0; i < values.assertionMethods.length; i++) this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.add(i);
|
|
28249
28295
|
} else throw new TypeError("The assertionMethods must be an array of type Multikey | URL.");
|
|
28250
28296
|
}
|
|
@@ -28279,7 +28325,7 @@ var Group = class Group extends Object$1 {
|
|
|
28279
28325
|
this.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.add(0);
|
|
28280
28326
|
} else throw new TypeError("The featuredTags must be of type Collection | URL.");
|
|
28281
28327
|
if ("streams" in values && values.streams != null) if (Array.isArray(values.streams) && values.streams.every((v) => v instanceof Collection || v instanceof URL)) {
|
|
28282
|
-
this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams;
|
|
28328
|
+
this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams.slice();
|
|
28283
28329
|
for (let i = 0; i < values.streams.length; i++) this.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.add(i);
|
|
28284
28330
|
} else throw new TypeError("The streams must be an array of type Collection | URL.");
|
|
28285
28331
|
if ("endpoints" in values && values.endpoints != null) if (values.endpoints instanceof Endpoints) this.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = [values.endpoints];
|
|
@@ -28303,7 +28349,7 @@ var Group = class Group extends Object$1 {
|
|
|
28303
28349
|
if ("aliases" in values && values.aliases != null) {
|
|
28304
28350
|
if ("alias" in values && values.alias != null) throw new TypeError("Cannot initialize both alias and aliases at the same time.");
|
|
28305
28351
|
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)) {
|
|
28306
|
-
this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases;
|
|
28352
|
+
this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases.slice();
|
|
28307
28353
|
for (let i = 0; i < values.aliases.length; i++) this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.add(i);
|
|
28308
28354
|
} else throw new TypeError("The aliases must be an array of type Application | Group | Organization | Person | Service | URL.");
|
|
28309
28355
|
}
|
|
@@ -28314,7 +28360,7 @@ var Group = class Group extends Object$1 {
|
|
|
28314
28360
|
if ("services" in values && values.services != null) {
|
|
28315
28361
|
if ("service" in values && values.service != null) throw new TypeError("Cannot initialize both service and services at the same time.");
|
|
28316
28362
|
if (Array.isArray(values.services) && values.services.every((v) => v instanceof DidService || v instanceof URL)) {
|
|
28317
|
-
this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services;
|
|
28363
|
+
this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services.slice();
|
|
28318
28364
|
for (let i = 0; i < values.services.length; i++) this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.add(i);
|
|
28319
28365
|
} else throw new TypeError("The services must be an array of type DidService | URL.");
|
|
28320
28366
|
}
|
|
@@ -28327,7 +28373,8 @@ var Group = class Group extends Object$1 {
|
|
|
28327
28373
|
* Clones this instance, optionally updating it with the given values.
|
|
28328
28374
|
* @param values The values to update the clone with.
|
|
28329
28375
|
* @param options The options to use for cloning.
|
|
28330
|
-
* @returns The cloned instance.
|
|
28376
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
28377
|
+
* and URLs are shared with this instance.
|
|
28331
28378
|
*/
|
|
28332
28379
|
clone(values = {}, options = {}) {
|
|
28333
28380
|
if (this._warning != null) {
|
|
@@ -28338,15 +28385,15 @@ var Group = class Group extends Object$1 {
|
|
|
28338
28385
|
};
|
|
28339
28386
|
}
|
|
28340
28387
|
const clone = super.clone(values, options);
|
|
28341
|
-
clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername;
|
|
28388
|
+
clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername.slice();
|
|
28342
28389
|
if ("preferredUsername" in values && values.preferredUsername != null) if (typeof values.preferredUsername === "string" || values.preferredUsername instanceof LanguageString) clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = [values.preferredUsername];
|
|
28343
28390
|
else throw new TypeError("The preferredUsername must be of type string | LanguageString.");
|
|
28344
28391
|
if ("preferredUsernames" in values && values.preferredUsernames != null) {
|
|
28345
28392
|
if ("preferredUsername" in values && values.preferredUsername != null) throw new TypeError("Cannot update both preferredUsername and preferredUsernames at the same time.");
|
|
28346
|
-
if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every((v) => typeof v === "string" || v instanceof LanguageString)) clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames;
|
|
28393
|
+
if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every((v) => typeof v === "string" || v instanceof LanguageString)) clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames.slice();
|
|
28347
28394
|
else throw new TypeError("The preferredUsernames must be an array of type string | LanguageString.");
|
|
28348
28395
|
}
|
|
28349
|
-
clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey;
|
|
28396
|
+
clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey.slice();
|
|
28350
28397
|
clone.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey = new Set(this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey);
|
|
28351
28398
|
if ("publicKey" in values && values.publicKey != null) if (values.publicKey instanceof CryptographicKey || values.publicKey instanceof URL) {
|
|
28352
28399
|
clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = [values.publicKey];
|
|
@@ -28355,12 +28402,12 @@ var Group = class Group extends Object$1 {
|
|
|
28355
28402
|
if ("publicKeys" in values && values.publicKeys != null) {
|
|
28356
28403
|
if ("publicKey" in values && values.publicKey != null) throw new TypeError("Cannot update both publicKey and publicKeys at the same time.");
|
|
28357
28404
|
if (Array.isArray(values.publicKeys) && values.publicKeys.every((v) => v instanceof CryptographicKey || v instanceof URL)) {
|
|
28358
|
-
clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys;
|
|
28405
|
+
clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys.slice();
|
|
28359
28406
|
clone.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey = /* @__PURE__ */ new Set();
|
|
28360
28407
|
for (let i = 0; i < values.publicKeys.length; i++) clone.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.add(i);
|
|
28361
28408
|
} else throw new TypeError("The publicKeys must be an array of type CryptographicKey | URL.");
|
|
28362
28409
|
}
|
|
28363
|
-
clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod;
|
|
28410
|
+
clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.slice();
|
|
28364
28411
|
clone.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = new Set(this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod);
|
|
28365
28412
|
if ("assertionMethod" in values && values.assertionMethod != null) if (values.assertionMethod instanceof Multikey || values.assertionMethod instanceof URL) {
|
|
28366
28413
|
clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = [values.assertionMethod];
|
|
@@ -28369,85 +28416,85 @@ var Group = class Group extends Object$1 {
|
|
|
28369
28416
|
if ("assertionMethods" in values && values.assertionMethods != null) {
|
|
28370
28417
|
if ("assertionMethod" in values && values.assertionMethod != null) throw new TypeError("Cannot update both assertionMethod and assertionMethods at the same time.");
|
|
28371
28418
|
if (Array.isArray(values.assertionMethods) && values.assertionMethods.every((v) => v instanceof Multikey || v instanceof URL)) {
|
|
28372
|
-
clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods;
|
|
28419
|
+
clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods.slice();
|
|
28373
28420
|
clone.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = /* @__PURE__ */ new Set();
|
|
28374
28421
|
for (let i = 0; i < values.assertionMethods.length; i++) clone.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.add(i);
|
|
28375
28422
|
} else throw new TypeError("The assertionMethods must be an array of type Multikey | URL.");
|
|
28376
28423
|
}
|
|
28377
|
-
clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers;
|
|
28424
|
+
clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers.slice();
|
|
28378
28425
|
if ("manuallyApprovesFollowers" in values && values.manuallyApprovesFollowers != null) if (typeof values.manuallyApprovesFollowers === "boolean") clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = [values.manuallyApprovesFollowers];
|
|
28379
28426
|
else throw new TypeError("The manuallyApprovesFollowers must be of type boolean.");
|
|
28380
|
-
clone.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = this.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox;
|
|
28427
|
+
clone.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = this.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox.slice();
|
|
28381
28428
|
clone.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = new Set(this.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox);
|
|
28382
28429
|
if ("inbox" in values && values.inbox != null) if (values.inbox instanceof OrderedCollection || values.inbox instanceof OrderedCollectionPage || values.inbox instanceof URL) {
|
|
28383
28430
|
clone.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = [values.inbox];
|
|
28384
28431
|
clone.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = new Set([0]);
|
|
28385
28432
|
} else throw new TypeError("The inbox must be of type OrderedCollection | OrderedCollectionPage | URL.");
|
|
28386
|
-
clone.#_41QwhqJouoLg3h8dRPKat21brynC_outbox = this.#_41QwhqJouoLg3h8dRPKat21brynC_outbox;
|
|
28433
|
+
clone.#_41QwhqJouoLg3h8dRPKat21brynC_outbox = this.#_41QwhqJouoLg3h8dRPKat21brynC_outbox.slice();
|
|
28387
28434
|
clone.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox = new Set(this.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox);
|
|
28388
28435
|
if ("outbox" in values && values.outbox != null) if (values.outbox instanceof OrderedCollection || values.outbox instanceof OrderedCollectionPage || values.outbox instanceof URL) {
|
|
28389
28436
|
clone.#_41QwhqJouoLg3h8dRPKat21brynC_outbox = [values.outbox];
|
|
28390
28437
|
clone.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox = new Set([0]);
|
|
28391
28438
|
} else throw new TypeError("The outbox must be of type OrderedCollection | OrderedCollectionPage | URL.");
|
|
28392
|
-
clone.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = this.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following;
|
|
28439
|
+
clone.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = this.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.slice();
|
|
28393
28440
|
clone.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = new Set(this.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following);
|
|
28394
28441
|
if ("following" in values && values.following != null) if (values.following instanceof Collection || values.following instanceof URL) {
|
|
28395
28442
|
clone.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = [values.following];
|
|
28396
28443
|
clone.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = new Set([0]);
|
|
28397
28444
|
} else throw new TypeError("The following must be of type Collection | URL.");
|
|
28398
|
-
clone.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = this.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers;
|
|
28445
|
+
clone.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = this.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers.slice();
|
|
28399
28446
|
clone.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = new Set(this.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers);
|
|
28400
28447
|
if ("followers" in values && values.followers != null) if (values.followers instanceof Collection || values.followers instanceof URL) {
|
|
28401
28448
|
clone.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = [values.followers];
|
|
28402
28449
|
clone.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = new Set([0]);
|
|
28403
28450
|
} else throw new TypeError("The followers must be of type Collection | URL.");
|
|
28404
|
-
clone.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = this.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked;
|
|
28451
|
+
clone.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = this.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.slice();
|
|
28405
28452
|
clone.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = new Set(this.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked);
|
|
28406
28453
|
if ("liked" in values && values.liked != null) if (values.liked instanceof Collection || values.liked instanceof URL) {
|
|
28407
28454
|
clone.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = [values.liked];
|
|
28408
28455
|
clone.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = new Set([0]);
|
|
28409
28456
|
} else throw new TypeError("The liked must be of type Collection | URL.");
|
|
28410
|
-
clone.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured = this.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured;
|
|
28457
|
+
clone.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured = this.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured.slice();
|
|
28411
28458
|
clone.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured = new Set(this.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured);
|
|
28412
28459
|
if ("featured" in values && values.featured != null) if (values.featured instanceof Collection || values.featured instanceof URL) {
|
|
28413
28460
|
clone.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured = [values.featured];
|
|
28414
28461
|
clone.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured = new Set([0]);
|
|
28415
28462
|
} else throw new TypeError("The featured must be of type Collection | URL.");
|
|
28416
|
-
clone.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = this.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags;
|
|
28463
|
+
clone.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = this.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.slice();
|
|
28417
28464
|
clone.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = new Set(this.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags);
|
|
28418
28465
|
if ("featuredTags" in values && values.featuredTags != null) if (values.featuredTags instanceof Collection || values.featuredTags instanceof URL) {
|
|
28419
28466
|
clone.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = [values.featuredTags];
|
|
28420
28467
|
clone.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = new Set([0]);
|
|
28421
28468
|
} else throw new TypeError("The featuredTags must be of type Collection | URL.");
|
|
28422
|
-
clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams;
|
|
28469
|
+
clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.slice();
|
|
28423
28470
|
clone.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = new Set(this.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams);
|
|
28424
28471
|
if ("streams" in values && values.streams != null) if (Array.isArray(values.streams) && values.streams.every((v) => v instanceof Collection || v instanceof URL)) {
|
|
28425
|
-
clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams;
|
|
28472
|
+
clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams.slice();
|
|
28426
28473
|
clone.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = /* @__PURE__ */ new Set();
|
|
28427
28474
|
for (let i = 0; i < values.streams.length; i++) clone.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.add(i);
|
|
28428
28475
|
} else throw new TypeError("The streams must be an array of type Collection | URL.");
|
|
28429
|
-
clone.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = this.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints;
|
|
28476
|
+
clone.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = this.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.slice();
|
|
28430
28477
|
if ("endpoints" in values && values.endpoints != null) if (values.endpoints instanceof Endpoints) clone.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = [values.endpoints];
|
|
28431
28478
|
else throw new TypeError("The endpoints must be of type Endpoints.");
|
|
28432
|
-
clone.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = this.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable;
|
|
28479
|
+
clone.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = this.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable.slice();
|
|
28433
28480
|
if ("discoverable" in values && values.discoverable != null) if (typeof values.discoverable === "boolean") clone.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = [values.discoverable];
|
|
28434
28481
|
else throw new TypeError("The discoverable must be of type boolean.");
|
|
28435
|
-
clone.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = this.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended;
|
|
28482
|
+
clone.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = this.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended.slice();
|
|
28436
28483
|
if ("suspended" in values && values.suspended != null) if (typeof values.suspended === "boolean") clone.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = [values.suspended];
|
|
28437
28484
|
else throw new TypeError("The suspended must be of type boolean.");
|
|
28438
|
-
clone.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = this.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial;
|
|
28485
|
+
clone.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = this.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial.slice();
|
|
28439
28486
|
if ("memorial" in values && values.memorial != null) if (typeof values.memorial === "boolean") clone.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = [values.memorial];
|
|
28440
28487
|
else throw new TypeError("The memorial must be of type boolean.");
|
|
28441
|
-
clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable;
|
|
28488
|
+
clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable.slice();
|
|
28442
28489
|
if ("indexable" in values && values.indexable != null) if (typeof values.indexable === "boolean") clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = [values.indexable];
|
|
28443
28490
|
else throw new TypeError("The indexable must be of type boolean.");
|
|
28444
|
-
clone.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo;
|
|
28491
|
+
clone.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.slice();
|
|
28445
28492
|
clone.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = new Set(this.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo);
|
|
28446
28493
|
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) {
|
|
28447
28494
|
clone.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = [values.successor];
|
|
28448
28495
|
clone.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = new Set([0]);
|
|
28449
28496
|
} else throw new TypeError("The successor must be of type Application | Group | Organization | Person | Service | URL.");
|
|
28450
|
-
clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs;
|
|
28497
|
+
clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.slice();
|
|
28451
28498
|
clone.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = new Set(this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs);
|
|
28452
28499
|
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) {
|
|
28453
28500
|
clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = [values.alias];
|
|
@@ -28456,12 +28503,12 @@ var Group = class Group extends Object$1 {
|
|
|
28456
28503
|
if ("aliases" in values && values.aliases != null) {
|
|
28457
28504
|
if ("alias" in values && values.alias != null) throw new TypeError("Cannot update both alias and aliases at the same time.");
|
|
28458
28505
|
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)) {
|
|
28459
|
-
clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases;
|
|
28506
|
+
clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases.slice();
|
|
28460
28507
|
clone.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = /* @__PURE__ */ new Set();
|
|
28461
28508
|
for (let i = 0; i < values.aliases.length; i++) clone.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.add(i);
|
|
28462
28509
|
} else throw new TypeError("The aliases must be an array of type Application | Group | Organization | Person | Service | URL.");
|
|
28463
28510
|
}
|
|
28464
|
-
clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service;
|
|
28511
|
+
clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.slice();
|
|
28465
28512
|
clone.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = new Set(this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service);
|
|
28466
28513
|
if ("service" in values && values.service != null) if (values.service instanceof DidService || values.service instanceof URL) {
|
|
28467
28514
|
clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = [values.service];
|
|
@@ -28470,15 +28517,15 @@ var Group = class Group extends Object$1 {
|
|
|
28470
28517
|
if ("services" in values && values.services != null) {
|
|
28471
28518
|
if ("service" in values && values.service != null) throw new TypeError("Cannot update both service and services at the same time.");
|
|
28472
28519
|
if (Array.isArray(values.services) && values.services.every((v) => v instanceof DidService || v instanceof URL)) {
|
|
28473
|
-
clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services;
|
|
28520
|
+
clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services.slice();
|
|
28474
28521
|
clone.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = /* @__PURE__ */ new Set();
|
|
28475
28522
|
for (let i = 0; i < values.services.length; i++) clone.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.add(i);
|
|
28476
28523
|
} else throw new TypeError("The services must be an array of type DidService | URL.");
|
|
28477
28524
|
}
|
|
28478
|
-
clone.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = this.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage;
|
|
28525
|
+
clone.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = this.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage.slice();
|
|
28479
28526
|
if ("followedMessage" in values && values.followedMessage != null) if (typeof values.followedMessage === "string") clone.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = [values.followedMessage];
|
|
28480
28527
|
else throw new TypeError("The followedMessage must be of type string.");
|
|
28481
|
-
clone.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat;
|
|
28528
|
+
clone.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat.slice();
|
|
28482
28529
|
if ("cat" in values && values.cat != null) if (typeof values.cat === "boolean") clone.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = [values.cat];
|
|
28483
28530
|
else throw new TypeError("The cat must be of type boolean.");
|
|
28484
28531
|
return clone;
|
|
@@ -31871,7 +31918,7 @@ var Link = class Link {
|
|
|
31871
31918
|
else throw new TypeError("The rel must be of type string.");
|
|
31872
31919
|
if ("rels" in values && values.rels != null) {
|
|
31873
31920
|
if ("rel" in values && values.rel != null) throw new TypeError("Cannot initialize both rel and rels at the same time.");
|
|
31874
|
-
if (Array.isArray(values.rels) && values.rels.every((v) => typeof v === "string")) this.#_2a1c5GkfkQsnyyLybF8UXBQfFuHZ_rel = values.rels;
|
|
31921
|
+
if (Array.isArray(values.rels) && values.rels.every((v) => typeof v === "string")) this.#_2a1c5GkfkQsnyyLybF8UXBQfFuHZ_rel = values.rels.slice();
|
|
31875
31922
|
else throw new TypeError("The rels must be an array of type string.");
|
|
31876
31923
|
}
|
|
31877
31924
|
if ("mediaType" in values && values.mediaType != null) if (typeof values.mediaType === "string") this.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType = [values.mediaType];
|
|
@@ -31880,7 +31927,7 @@ var Link = class Link {
|
|
|
31880
31927
|
else throw new TypeError("The name must be of type string | LanguageString.");
|
|
31881
31928
|
if ("names" in values && values.names != null) {
|
|
31882
31929
|
if ("name" in values && values.name != null) throw new TypeError("Cannot initialize both name and names at the same time.");
|
|
31883
|
-
if (Array.isArray(values.names) && values.names.every((v) => typeof v === "string" || v instanceof LanguageString)) this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = values.names;
|
|
31930
|
+
if (Array.isArray(values.names) && values.names.every((v) => typeof v === "string" || v instanceof LanguageString)) this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = values.names.slice();
|
|
31884
31931
|
else throw new TypeError("The names must be an array of type string | LanguageString.");
|
|
31885
31932
|
}
|
|
31886
31933
|
if ("language" in values && values.language != null) if (values.language instanceof Intl.Locale) this.#_f57HKWCp1YRBbTJE8PF12RbDJGf_hreflang = [values.language];
|
|
@@ -31890,7 +31937,7 @@ var Link = class Link {
|
|
|
31890
31937
|
if ("width" in values && values.width != null) if (typeof values.width === "number" && Number.isInteger(values.width) && values.width >= 0) this.#_2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width = [values.width];
|
|
31891
31938
|
else throw new TypeError("The width must be of type number.");
|
|
31892
31939
|
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)) {
|
|
31893
|
-
this.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview = values.previews;
|
|
31940
|
+
this.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview = values.previews.slice();
|
|
31894
31941
|
for (let i = 0; i < values.previews.length; i++) this.#_trust_gCVTegXxWWCw6wWRxa1QF65zusg_preview.add(i);
|
|
31895
31942
|
} else throw new TypeError("The previews must be an array of type Link | Object | URL.");
|
|
31896
31943
|
}
|
|
@@ -31898,7 +31945,8 @@ var Link = class Link {
|
|
|
31898
31945
|
* Clones this instance, optionally updating it with the given values.
|
|
31899
31946
|
* @param values The values to update the clone with.
|
|
31900
31947
|
* @param options The options to use for cloning.
|
|
31901
|
-
* @returns The cloned instance.
|
|
31948
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
31949
|
+
* and URLs are shared with this instance.
|
|
31902
31950
|
*/
|
|
31903
31951
|
clone(values = {}, options = {}) {
|
|
31904
31952
|
if (this._warning != null) {
|
|
@@ -31909,41 +31957,41 @@ var Link = class Link {
|
|
|
31909
31957
|
};
|
|
31910
31958
|
}
|
|
31911
31959
|
const clone = new this.constructor({ id: values.id ?? this.id }, options);
|
|
31912
|
-
clone.#_pVjLsybKQdmkjuU7MHjiVmNnuj7_href = this.#_pVjLsybKQdmkjuU7MHjiVmNnuj7_href;
|
|
31960
|
+
clone.#_pVjLsybKQdmkjuU7MHjiVmNnuj7_href = this.#_pVjLsybKQdmkjuU7MHjiVmNnuj7_href.slice();
|
|
31913
31961
|
if ("href" in values && values.href != null) if (values.href instanceof URL) clone.#_pVjLsybKQdmkjuU7MHjiVmNnuj7_href = [values.href];
|
|
31914
31962
|
else throw new TypeError("The href must be of type URL.");
|
|
31915
|
-
clone.#_2a1c5GkfkQsnyyLybF8UXBQfFuHZ_rel = this.#_2a1c5GkfkQsnyyLybF8UXBQfFuHZ_rel;
|
|
31963
|
+
clone.#_2a1c5GkfkQsnyyLybF8UXBQfFuHZ_rel = this.#_2a1c5GkfkQsnyyLybF8UXBQfFuHZ_rel.slice();
|
|
31916
31964
|
if ("rel" in values && values.rel != null) if (typeof values.rel === "string") clone.#_2a1c5GkfkQsnyyLybF8UXBQfFuHZ_rel = [values.rel];
|
|
31917
31965
|
else throw new TypeError("The rel must be of type string.");
|
|
31918
31966
|
if ("rels" in values && values.rels != null) {
|
|
31919
31967
|
if ("rel" in values && values.rel != null) throw new TypeError("Cannot update both rel and rels at the same time.");
|
|
31920
|
-
if (Array.isArray(values.rels) && values.rels.every((v) => typeof v === "string")) clone.#_2a1c5GkfkQsnyyLybF8UXBQfFuHZ_rel = values.rels;
|
|
31968
|
+
if (Array.isArray(values.rels) && values.rels.every((v) => typeof v === "string")) clone.#_2a1c5GkfkQsnyyLybF8UXBQfFuHZ_rel = values.rels.slice();
|
|
31921
31969
|
else throw new TypeError("The rels must be an array of type string.");
|
|
31922
31970
|
}
|
|
31923
|
-
clone.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType = this.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType;
|
|
31971
|
+
clone.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType = this.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType.slice();
|
|
31924
31972
|
if ("mediaType" in values && values.mediaType != null) if (typeof values.mediaType === "string") clone.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType = [values.mediaType];
|
|
31925
31973
|
else throw new TypeError("The mediaType must be of type string.");
|
|
31926
|
-
clone.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name;
|
|
31974
|
+
clone.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name.slice();
|
|
31927
31975
|
if ("name" in values && values.name != null) if (typeof values.name === "string" || values.name instanceof LanguageString) clone.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = [values.name];
|
|
31928
31976
|
else throw new TypeError("The name must be of type string | LanguageString.");
|
|
31929
31977
|
if ("names" in values && values.names != null) {
|
|
31930
31978
|
if ("name" in values && values.name != null) throw new TypeError("Cannot update both name and names at the same time.");
|
|
31931
|
-
if (Array.isArray(values.names) && values.names.every((v) => typeof v === "string" || v instanceof LanguageString)) clone.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = values.names;
|
|
31979
|
+
if (Array.isArray(values.names) && values.names.every((v) => typeof v === "string" || v instanceof LanguageString)) clone.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = values.names.slice();
|
|
31932
31980
|
else throw new TypeError("The names must be an array of type string | LanguageString.");
|
|
31933
31981
|
}
|
|
31934
|
-
clone.#_f57HKWCp1YRBbTJE8PF12RbDJGf_hreflang = this.#_f57HKWCp1YRBbTJE8PF12RbDJGf_hreflang;
|
|
31982
|
+
clone.#_f57HKWCp1YRBbTJE8PF12RbDJGf_hreflang = this.#_f57HKWCp1YRBbTJE8PF12RbDJGf_hreflang.slice();
|
|
31935
31983
|
if ("language" in values && values.language != null) if (values.language instanceof Intl.Locale) clone.#_f57HKWCp1YRBbTJE8PF12RbDJGf_hreflang = [values.language];
|
|
31936
31984
|
else throw new TypeError("The language must be of type Intl.Locale.");
|
|
31937
|
-
clone.#_2cGKFeFJMmiNpGZFEF75mCwFQsKb_height = this.#_2cGKFeFJMmiNpGZFEF75mCwFQsKb_height;
|
|
31985
|
+
clone.#_2cGKFeFJMmiNpGZFEF75mCwFQsKb_height = this.#_2cGKFeFJMmiNpGZFEF75mCwFQsKb_height.slice();
|
|
31938
31986
|
if ("height" in values && values.height != null) if (typeof values.height === "number" && Number.isInteger(values.height) && values.height >= 0) clone.#_2cGKFeFJMmiNpGZFEF75mCwFQsKb_height = [values.height];
|
|
31939
31987
|
else throw new TypeError("The height must be of type number.");
|
|
31940
|
-
clone.#_2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width = this.#_2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width;
|
|
31988
|
+
clone.#_2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width = this.#_2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width.slice();
|
|
31941
31989
|
if ("width" in values && values.width != null) if (typeof values.width === "number" && Number.isInteger(values.width) && values.width >= 0) clone.#_2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width = [values.width];
|
|
31942
31990
|
else throw new TypeError("The width must be of type number.");
|
|
31943
|
-
clone.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview = this.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview;
|
|
31991
|
+
clone.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview = this.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview.slice();
|
|
31944
31992
|
clone.#_trust_gCVTegXxWWCw6wWRxa1QF65zusg_preview = new Set(this.#_trust_gCVTegXxWWCw6wWRxa1QF65zusg_preview);
|
|
31945
31993
|
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)) {
|
|
31946
|
-
clone.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview = values.previews;
|
|
31994
|
+
clone.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview = values.previews.slice();
|
|
31947
31995
|
clone.#_trust_gCVTegXxWWCw6wWRxa1QF65zusg_preview = /* @__PURE__ */ new Set();
|
|
31948
31996
|
for (let i = 0; i < values.previews.length; i++) clone.#_trust_gCVTegXxWWCw6wWRxa1QF65zusg_preview.add(i);
|
|
31949
31997
|
} else throw new TypeError("The previews must be an array of type Link | Object | URL.");
|
|
@@ -32435,7 +32483,7 @@ var Link = class Link {
|
|
|
32435
32483
|
let _f57HKWCp1YRBbTJE8PF12RbDJGf_hreflang__array = values["https://www.w3.org/ns/activitystreams#hreflang"];
|
|
32436
32484
|
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) {
|
|
32437
32485
|
if (v == null) continue;
|
|
32438
|
-
const decoded = new Intl.Locale(v["@value"]);
|
|
32486
|
+
const decoded = new Intl.Locale(normalizeLanguageTag(v["@value"]));
|
|
32439
32487
|
if (typeof decoded === "undefined") {
|
|
32440
32488
|
shouldCacheJsonLd = false;
|
|
32441
32489
|
continue;
|
|
@@ -32652,7 +32700,8 @@ var Hashtag = class Hashtag extends Link {
|
|
|
32652
32700
|
* Clones this instance, optionally updating it with the given values.
|
|
32653
32701
|
* @param values The values to update the clone with.
|
|
32654
32702
|
* @param options The options to use for cloning.
|
|
32655
|
-
* @returns The cloned instance.
|
|
32703
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
32704
|
+
* and URLs are shared with this instance.
|
|
32656
32705
|
*/
|
|
32657
32706
|
clone(values = {}, options = {}) {
|
|
32658
32707
|
if (this._warning != null) {
|
|
@@ -32806,7 +32855,8 @@ var Image = class Image extends Document {
|
|
|
32806
32855
|
* Clones this instance, optionally updating it with the given values.
|
|
32807
32856
|
* @param values The values to update the clone with.
|
|
32808
32857
|
* @param options The options to use for cloning.
|
|
32809
|
-
* @returns The cloned instance.
|
|
32858
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
32859
|
+
* and URLs are shared with this instance.
|
|
32810
32860
|
*/
|
|
32811
32861
|
clone(values = {}, options = {}) {
|
|
32812
32862
|
if (this._warning != null) {
|
|
@@ -32973,7 +33023,8 @@ var Offer = class Offer extends Activity {
|
|
|
32973
33023
|
* Clones this instance, optionally updating it with the given values.
|
|
32974
33024
|
* @param values The values to update the clone with.
|
|
32975
33025
|
* @param options The options to use for cloning.
|
|
32976
|
-
* @returns The cloned instance.
|
|
33026
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
33027
|
+
* and URLs are shared with this instance.
|
|
32977
33028
|
*/
|
|
32978
33029
|
clone(values = {}, options = {}) {
|
|
32979
33030
|
if (this._warning != null) {
|
|
@@ -33126,7 +33177,8 @@ var Invite = class Invite extends Offer {
|
|
|
33126
33177
|
* Clones this instance, optionally updating it with the given values.
|
|
33127
33178
|
* @param values The values to update the clone with.
|
|
33128
33179
|
* @param options The options to use for cloning.
|
|
33129
|
-
* @returns The cloned instance.
|
|
33180
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
33181
|
+
* and URLs are shared with this instance.
|
|
33130
33182
|
*/
|
|
33131
33183
|
clone(values = {}, options = {}) {
|
|
33132
33184
|
if (this._warning != null) {
|
|
@@ -33278,7 +33330,8 @@ var Join = class Join extends Activity {
|
|
|
33278
33330
|
* Clones this instance, optionally updating it with the given values.
|
|
33279
33331
|
* @param values The values to update the clone with.
|
|
33280
33332
|
* @param options The options to use for cloning.
|
|
33281
|
-
* @returns The cloned instance.
|
|
33333
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
33334
|
+
* and URLs are shared with this instance.
|
|
33282
33335
|
*/
|
|
33283
33336
|
clone(values = {}, options = {}) {
|
|
33284
33337
|
if (this._warning != null) {
|
|
@@ -33430,7 +33483,8 @@ var Leave = class Leave extends Activity {
|
|
|
33430
33483
|
* Clones this instance, optionally updating it with the given values.
|
|
33431
33484
|
* @param values The values to update the clone with.
|
|
33432
33485
|
* @param options The options to use for cloning.
|
|
33433
|
-
* @returns The cloned instance.
|
|
33486
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
33487
|
+
* and URLs are shared with this instance.
|
|
33434
33488
|
*/
|
|
33435
33489
|
clone(values = {}, options = {}) {
|
|
33436
33490
|
if (this._warning != null) {
|
|
@@ -33582,7 +33636,8 @@ var Like = class Like extends Activity {
|
|
|
33582
33636
|
* Clones this instance, optionally updating it with the given values.
|
|
33583
33637
|
* @param values The values to update the clone with.
|
|
33584
33638
|
* @param options The options to use for cloning.
|
|
33585
|
-
* @returns The cloned instance.
|
|
33639
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
33640
|
+
* and URLs are shared with this instance.
|
|
33586
33641
|
*/
|
|
33587
33642
|
clone(values = {}, options = {}) {
|
|
33588
33643
|
if (this._warning != null) {
|
|
@@ -33737,7 +33792,8 @@ var Listen = class Listen extends Activity {
|
|
|
33737
33792
|
* Clones this instance, optionally updating it with the given values.
|
|
33738
33793
|
* @param values The values to update the clone with.
|
|
33739
33794
|
* @param options The options to use for cloning.
|
|
33740
|
-
* @returns The cloned instance.
|
|
33795
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
33796
|
+
* and URLs are shared with this instance.
|
|
33741
33797
|
*/
|
|
33742
33798
|
clone(values = {}, options = {}) {
|
|
33743
33799
|
if (this._warning != null) {
|
|
@@ -33888,7 +33944,8 @@ var Mention = class Mention extends Link {
|
|
|
33888
33944
|
* Clones this instance, optionally updating it with the given values.
|
|
33889
33945
|
* @param values The values to update the clone with.
|
|
33890
33946
|
* @param options The options to use for cloning.
|
|
33891
|
-
* @returns The cloned instance.
|
|
33947
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
33948
|
+
* and URLs are shared with this instance.
|
|
33892
33949
|
*/
|
|
33893
33950
|
clone(values = {}, options = {}) {
|
|
33894
33951
|
if (this._warning != null) {
|
|
@@ -34044,7 +34101,8 @@ var Move = class Move extends Activity {
|
|
|
34044
34101
|
* Clones this instance, optionally updating it with the given values.
|
|
34045
34102
|
* @param values The values to update the clone with.
|
|
34046
34103
|
* @param options The options to use for cloning.
|
|
34047
|
-
* @returns The cloned instance.
|
|
34104
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
34105
|
+
* and URLs are shared with this instance.
|
|
34048
34106
|
*/
|
|
34049
34107
|
clone(values = {}, options = {}) {
|
|
34050
34108
|
if (this._warning != null) {
|
|
@@ -34211,7 +34269,8 @@ var Note = class Note extends Object$1 {
|
|
|
34211
34269
|
* Clones this instance, optionally updating it with the given values.
|
|
34212
34270
|
* @param values The values to update the clone with.
|
|
34213
34271
|
* @param options The options to use for cloning.
|
|
34214
|
-
* @returns The cloned instance.
|
|
34272
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
34273
|
+
* and URLs are shared with this instance.
|
|
34215
34274
|
*/
|
|
34216
34275
|
clone(values = {}, options = {}) {
|
|
34217
34276
|
if (this._warning != null) {
|
|
@@ -34222,16 +34281,16 @@ var Note = class Note extends Object$1 {
|
|
|
34222
34281
|
};
|
|
34223
34282
|
}
|
|
34224
34283
|
const clone = super.clone(values, options);
|
|
34225
|
-
clone.#_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote = this.#_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote;
|
|
34284
|
+
clone.#_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote = this.#_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote.slice();
|
|
34226
34285
|
clone.#_trust_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote = new Set(this.#_trust_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote);
|
|
34227
34286
|
if ("quote" in values && values.quote != null) if (values.quote instanceof Object$1 || values.quote instanceof URL) {
|
|
34228
34287
|
clone.#_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote = [values.quote];
|
|
34229
34288
|
clone.#_trust_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote = new Set([0]);
|
|
34230
34289
|
} else throw new TypeError("The quote must be of type Object | URL.");
|
|
34231
|
-
clone.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl = this.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl;
|
|
34290
|
+
clone.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl = this.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl.slice();
|
|
34232
34291
|
if ("quoteUrl" in values && values.quoteUrl != null) if (values.quoteUrl instanceof URL) clone.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl = [values.quoteUrl];
|
|
34233
34292
|
else throw new TypeError("The quoteUrl must be of type URL.");
|
|
34234
|
-
clone.#_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization = this.#_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization;
|
|
34293
|
+
clone.#_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization = this.#_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization.slice();
|
|
34235
34294
|
clone.#_trust_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization = new Set(this.#_trust_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization);
|
|
34236
34295
|
if ("quoteAuthorization" in values && values.quoteAuthorization != null) if (values.quoteAuthorization instanceof QuoteAuthorization || values.quoteAuthorization instanceof URL) {
|
|
34237
34296
|
clone.#_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization = [values.quoteAuthorization];
|
|
@@ -34849,7 +34908,7 @@ var OrderedCollection = class OrderedCollection extends Collection {
|
|
|
34849
34908
|
constructor(values, options = {}) {
|
|
34850
34909
|
super(values, options);
|
|
34851
34910
|
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)) {
|
|
34852
|
-
this.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = values.items;
|
|
34911
|
+
this.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = values.items.slice();
|
|
34853
34912
|
for (let i = 0; i < values.items.length; i++) this.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items.add(i);
|
|
34854
34913
|
} else throw new TypeError("The items must be an array of type Object | Link | URL.");
|
|
34855
34914
|
}
|
|
@@ -34857,7 +34916,8 @@ var OrderedCollection = class OrderedCollection extends Collection {
|
|
|
34857
34916
|
* Clones this instance, optionally updating it with the given values.
|
|
34858
34917
|
* @param values The values to update the clone with.
|
|
34859
34918
|
* @param options The options to use for cloning.
|
|
34860
|
-
* @returns The cloned instance.
|
|
34919
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
34920
|
+
* and URLs are shared with this instance.
|
|
34861
34921
|
*/
|
|
34862
34922
|
clone(values = {}, options = {}) {
|
|
34863
34923
|
if (this._warning != null) {
|
|
@@ -34868,10 +34928,10 @@ var OrderedCollection = class OrderedCollection extends Collection {
|
|
|
34868
34928
|
};
|
|
34869
34929
|
}
|
|
34870
34930
|
const clone = super.clone(values, options);
|
|
34871
|
-
clone.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = this.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items;
|
|
34931
|
+
clone.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = this.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items.slice();
|
|
34872
34932
|
clone.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = new Set(this.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items);
|
|
34873
34933
|
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)) {
|
|
34874
|
-
clone.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = values.items;
|
|
34934
|
+
clone.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = values.items.slice();
|
|
34875
34935
|
clone.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = /* @__PURE__ */ new Set();
|
|
34876
34936
|
for (let i = 0; i < values.items.length; i++) clone.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items.add(i);
|
|
34877
34937
|
} else throw new TypeError("The items must be an array of type Object | Link | URL.");
|
|
@@ -35351,7 +35411,7 @@ var OrderedCollectionPage = class OrderedCollectionPage extends CollectionPage {
|
|
|
35351
35411
|
constructor(values, options = {}) {
|
|
35352
35412
|
super(values, options);
|
|
35353
35413
|
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)) {
|
|
35354
|
-
this.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = values.items;
|
|
35414
|
+
this.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = values.items.slice();
|
|
35355
35415
|
for (let i = 0; i < values.items.length; i++) this.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items.add(i);
|
|
35356
35416
|
} else throw new TypeError("The items must be an array of type Object | Link | URL.");
|
|
35357
35417
|
if ("startIndex" in values && values.startIndex != null) if (typeof values.startIndex === "number" && Number.isInteger(values.startIndex) && values.startIndex >= 0) this.#_2W4yinFwqmpneu2h4m1mZ3pcLADd_startIndex = [values.startIndex];
|
|
@@ -35361,7 +35421,8 @@ var OrderedCollectionPage = class OrderedCollectionPage extends CollectionPage {
|
|
|
35361
35421
|
* Clones this instance, optionally updating it with the given values.
|
|
35362
35422
|
* @param values The values to update the clone with.
|
|
35363
35423
|
* @param options The options to use for cloning.
|
|
35364
|
-
* @returns The cloned instance.
|
|
35424
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
35425
|
+
* and URLs are shared with this instance.
|
|
35365
35426
|
*/
|
|
35366
35427
|
clone(values = {}, options = {}) {
|
|
35367
35428
|
if (this._warning != null) {
|
|
@@ -35372,14 +35433,14 @@ var OrderedCollectionPage = class OrderedCollectionPage extends CollectionPage {
|
|
|
35372
35433
|
};
|
|
35373
35434
|
}
|
|
35374
35435
|
const clone = super.clone(values, options);
|
|
35375
|
-
clone.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = this.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items;
|
|
35436
|
+
clone.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = this.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items.slice();
|
|
35376
35437
|
clone.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = new Set(this.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items);
|
|
35377
35438
|
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)) {
|
|
35378
|
-
clone.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = values.items;
|
|
35439
|
+
clone.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = values.items.slice();
|
|
35379
35440
|
clone.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = /* @__PURE__ */ new Set();
|
|
35380
35441
|
for (let i = 0; i < values.items.length; i++) clone.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items.add(i);
|
|
35381
35442
|
} else throw new TypeError("The items must be an array of type Object | Link | URL.");
|
|
35382
|
-
clone.#_2W4yinFwqmpneu2h4m1mZ3pcLADd_startIndex = this.#_2W4yinFwqmpneu2h4m1mZ3pcLADd_startIndex;
|
|
35443
|
+
clone.#_2W4yinFwqmpneu2h4m1mZ3pcLADd_startIndex = this.#_2W4yinFwqmpneu2h4m1mZ3pcLADd_startIndex.slice();
|
|
35383
35444
|
if ("startIndex" in values && values.startIndex != null) if (typeof values.startIndex === "number" && Number.isInteger(values.startIndex) && values.startIndex >= 0) clone.#_2W4yinFwqmpneu2h4m1mZ3pcLADd_startIndex = [values.startIndex];
|
|
35384
35445
|
else throw new TypeError("The startIndex must be of type number.");
|
|
35385
35446
|
return clone;
|
|
@@ -35932,7 +35993,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
35932
35993
|
else throw new TypeError("The preferredUsername must be of type string | LanguageString.");
|
|
35933
35994
|
if ("preferredUsernames" in values && values.preferredUsernames != null) {
|
|
35934
35995
|
if ("preferredUsername" in values && values.preferredUsername != null) throw new TypeError("Cannot initialize both preferredUsername and preferredUsernames at the same time.");
|
|
35935
|
-
if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every((v) => typeof v === "string" || v instanceof LanguageString)) this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames;
|
|
35996
|
+
if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every((v) => typeof v === "string" || v instanceof LanguageString)) this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames.slice();
|
|
35936
35997
|
else throw new TypeError("The preferredUsernames must be an array of type string | LanguageString.");
|
|
35937
35998
|
}
|
|
35938
35999
|
if ("publicKey" in values && values.publicKey != null) if (values.publicKey instanceof CryptographicKey || values.publicKey instanceof URL) {
|
|
@@ -35942,7 +36003,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
35942
36003
|
if ("publicKeys" in values && values.publicKeys != null) {
|
|
35943
36004
|
if ("publicKey" in values && values.publicKey != null) throw new TypeError("Cannot initialize both publicKey and publicKeys at the same time.");
|
|
35944
36005
|
if (Array.isArray(values.publicKeys) && values.publicKeys.every((v) => v instanceof CryptographicKey || v instanceof URL)) {
|
|
35945
|
-
this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys;
|
|
36006
|
+
this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys.slice();
|
|
35946
36007
|
for (let i = 0; i < values.publicKeys.length; i++) this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.add(i);
|
|
35947
36008
|
} else throw new TypeError("The publicKeys must be an array of type CryptographicKey | URL.");
|
|
35948
36009
|
}
|
|
@@ -35953,7 +36014,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
35953
36014
|
if ("assertionMethods" in values && values.assertionMethods != null) {
|
|
35954
36015
|
if ("assertionMethod" in values && values.assertionMethod != null) throw new TypeError("Cannot initialize both assertionMethod and assertionMethods at the same time.");
|
|
35955
36016
|
if (Array.isArray(values.assertionMethods) && values.assertionMethods.every((v) => v instanceof Multikey || v instanceof URL)) {
|
|
35956
|
-
this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods;
|
|
36017
|
+
this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods.slice();
|
|
35957
36018
|
for (let i = 0; i < values.assertionMethods.length; i++) this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.add(i);
|
|
35958
36019
|
} else throw new TypeError("The assertionMethods must be an array of type Multikey | URL.");
|
|
35959
36020
|
}
|
|
@@ -35988,7 +36049,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
35988
36049
|
this.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.add(0);
|
|
35989
36050
|
} else throw new TypeError("The featuredTags must be of type Collection | URL.");
|
|
35990
36051
|
if ("streams" in values && values.streams != null) if (Array.isArray(values.streams) && values.streams.every((v) => v instanceof Collection || v instanceof URL)) {
|
|
35991
|
-
this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams;
|
|
36052
|
+
this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams.slice();
|
|
35992
36053
|
for (let i = 0; i < values.streams.length; i++) this.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.add(i);
|
|
35993
36054
|
} else throw new TypeError("The streams must be an array of type Collection | URL.");
|
|
35994
36055
|
if ("endpoints" in values && values.endpoints != null) if (values.endpoints instanceof Endpoints) this.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = [values.endpoints];
|
|
@@ -36012,7 +36073,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
36012
36073
|
if ("aliases" in values && values.aliases != null) {
|
|
36013
36074
|
if ("alias" in values && values.alias != null) throw new TypeError("Cannot initialize both alias and aliases at the same time.");
|
|
36014
36075
|
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)) {
|
|
36015
|
-
this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases;
|
|
36076
|
+
this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases.slice();
|
|
36016
36077
|
for (let i = 0; i < values.aliases.length; i++) this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.add(i);
|
|
36017
36078
|
} else throw new TypeError("The aliases must be an array of type Application | Group | Organization | Person | Service | URL.");
|
|
36018
36079
|
}
|
|
@@ -36023,7 +36084,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
36023
36084
|
if ("services" in values && values.services != null) {
|
|
36024
36085
|
if ("service" in values && values.service != null) throw new TypeError("Cannot initialize both service and services at the same time.");
|
|
36025
36086
|
if (Array.isArray(values.services) && values.services.every((v) => v instanceof DidService || v instanceof URL)) {
|
|
36026
|
-
this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services;
|
|
36087
|
+
this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services.slice();
|
|
36027
36088
|
for (let i = 0; i < values.services.length; i++) this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.add(i);
|
|
36028
36089
|
} else throw new TypeError("The services must be an array of type DidService | URL.");
|
|
36029
36090
|
}
|
|
@@ -36036,7 +36097,8 @@ var Organization = class Organization extends Object$1 {
|
|
|
36036
36097
|
* Clones this instance, optionally updating it with the given values.
|
|
36037
36098
|
* @param values The values to update the clone with.
|
|
36038
36099
|
* @param options The options to use for cloning.
|
|
36039
|
-
* @returns The cloned instance.
|
|
36100
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
36101
|
+
* and URLs are shared with this instance.
|
|
36040
36102
|
*/
|
|
36041
36103
|
clone(values = {}, options = {}) {
|
|
36042
36104
|
if (this._warning != null) {
|
|
@@ -36047,15 +36109,15 @@ var Organization = class Organization extends Object$1 {
|
|
|
36047
36109
|
};
|
|
36048
36110
|
}
|
|
36049
36111
|
const clone = super.clone(values, options);
|
|
36050
|
-
clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername;
|
|
36112
|
+
clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername.slice();
|
|
36051
36113
|
if ("preferredUsername" in values && values.preferredUsername != null) if (typeof values.preferredUsername === "string" || values.preferredUsername instanceof LanguageString) clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = [values.preferredUsername];
|
|
36052
36114
|
else throw new TypeError("The preferredUsername must be of type string | LanguageString.");
|
|
36053
36115
|
if ("preferredUsernames" in values && values.preferredUsernames != null) {
|
|
36054
36116
|
if ("preferredUsername" in values && values.preferredUsername != null) throw new TypeError("Cannot update both preferredUsername and preferredUsernames at the same time.");
|
|
36055
|
-
if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every((v) => typeof v === "string" || v instanceof LanguageString)) clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames;
|
|
36117
|
+
if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every((v) => typeof v === "string" || v instanceof LanguageString)) clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames.slice();
|
|
36056
36118
|
else throw new TypeError("The preferredUsernames must be an array of type string | LanguageString.");
|
|
36057
36119
|
}
|
|
36058
|
-
clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey;
|
|
36120
|
+
clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey.slice();
|
|
36059
36121
|
clone.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey = new Set(this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey);
|
|
36060
36122
|
if ("publicKey" in values && values.publicKey != null) if (values.publicKey instanceof CryptographicKey || values.publicKey instanceof URL) {
|
|
36061
36123
|
clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = [values.publicKey];
|
|
@@ -36064,12 +36126,12 @@ var Organization = class Organization extends Object$1 {
|
|
|
36064
36126
|
if ("publicKeys" in values && values.publicKeys != null) {
|
|
36065
36127
|
if ("publicKey" in values && values.publicKey != null) throw new TypeError("Cannot update both publicKey and publicKeys at the same time.");
|
|
36066
36128
|
if (Array.isArray(values.publicKeys) && values.publicKeys.every((v) => v instanceof CryptographicKey || v instanceof URL)) {
|
|
36067
|
-
clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys;
|
|
36129
|
+
clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys.slice();
|
|
36068
36130
|
clone.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey = /* @__PURE__ */ new Set();
|
|
36069
36131
|
for (let i = 0; i < values.publicKeys.length; i++) clone.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.add(i);
|
|
36070
36132
|
} else throw new TypeError("The publicKeys must be an array of type CryptographicKey | URL.");
|
|
36071
36133
|
}
|
|
36072
|
-
clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod;
|
|
36134
|
+
clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.slice();
|
|
36073
36135
|
clone.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = new Set(this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod);
|
|
36074
36136
|
if ("assertionMethod" in values && values.assertionMethod != null) if (values.assertionMethod instanceof Multikey || values.assertionMethod instanceof URL) {
|
|
36075
36137
|
clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = [values.assertionMethod];
|
|
@@ -36078,85 +36140,85 @@ var Organization = class Organization extends Object$1 {
|
|
|
36078
36140
|
if ("assertionMethods" in values && values.assertionMethods != null) {
|
|
36079
36141
|
if ("assertionMethod" in values && values.assertionMethod != null) throw new TypeError("Cannot update both assertionMethod and assertionMethods at the same time.");
|
|
36080
36142
|
if (Array.isArray(values.assertionMethods) && values.assertionMethods.every((v) => v instanceof Multikey || v instanceof URL)) {
|
|
36081
|
-
clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods;
|
|
36143
|
+
clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods.slice();
|
|
36082
36144
|
clone.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = /* @__PURE__ */ new Set();
|
|
36083
36145
|
for (let i = 0; i < values.assertionMethods.length; i++) clone.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.add(i);
|
|
36084
36146
|
} else throw new TypeError("The assertionMethods must be an array of type Multikey | URL.");
|
|
36085
36147
|
}
|
|
36086
|
-
clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers;
|
|
36148
|
+
clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers.slice();
|
|
36087
36149
|
if ("manuallyApprovesFollowers" in values && values.manuallyApprovesFollowers != null) if (typeof values.manuallyApprovesFollowers === "boolean") clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = [values.manuallyApprovesFollowers];
|
|
36088
36150
|
else throw new TypeError("The manuallyApprovesFollowers must be of type boolean.");
|
|
36089
|
-
clone.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = this.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox;
|
|
36151
|
+
clone.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = this.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox.slice();
|
|
36090
36152
|
clone.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = new Set(this.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox);
|
|
36091
36153
|
if ("inbox" in values && values.inbox != null) if (values.inbox instanceof OrderedCollection || values.inbox instanceof OrderedCollectionPage || values.inbox instanceof URL) {
|
|
36092
36154
|
clone.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = [values.inbox];
|
|
36093
36155
|
clone.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = new Set([0]);
|
|
36094
36156
|
} else throw new TypeError("The inbox must be of type OrderedCollection | OrderedCollectionPage | URL.");
|
|
36095
|
-
clone.#_41QwhqJouoLg3h8dRPKat21brynC_outbox = this.#_41QwhqJouoLg3h8dRPKat21brynC_outbox;
|
|
36157
|
+
clone.#_41QwhqJouoLg3h8dRPKat21brynC_outbox = this.#_41QwhqJouoLg3h8dRPKat21brynC_outbox.slice();
|
|
36096
36158
|
clone.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox = new Set(this.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox);
|
|
36097
36159
|
if ("outbox" in values && values.outbox != null) if (values.outbox instanceof OrderedCollection || values.outbox instanceof OrderedCollectionPage || values.outbox instanceof URL) {
|
|
36098
36160
|
clone.#_41QwhqJouoLg3h8dRPKat21brynC_outbox = [values.outbox];
|
|
36099
36161
|
clone.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox = new Set([0]);
|
|
36100
36162
|
} else throw new TypeError("The outbox must be of type OrderedCollection | OrderedCollectionPage | URL.");
|
|
36101
|
-
clone.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = this.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following;
|
|
36163
|
+
clone.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = this.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.slice();
|
|
36102
36164
|
clone.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = new Set(this.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following);
|
|
36103
36165
|
if ("following" in values && values.following != null) if (values.following instanceof Collection || values.following instanceof URL) {
|
|
36104
36166
|
clone.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = [values.following];
|
|
36105
36167
|
clone.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = new Set([0]);
|
|
36106
36168
|
} else throw new TypeError("The following must be of type Collection | URL.");
|
|
36107
|
-
clone.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = this.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers;
|
|
36169
|
+
clone.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = this.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers.slice();
|
|
36108
36170
|
clone.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = new Set(this.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers);
|
|
36109
36171
|
if ("followers" in values && values.followers != null) if (values.followers instanceof Collection || values.followers instanceof URL) {
|
|
36110
36172
|
clone.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = [values.followers];
|
|
36111
36173
|
clone.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = new Set([0]);
|
|
36112
36174
|
} else throw new TypeError("The followers must be of type Collection | URL.");
|
|
36113
|
-
clone.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = this.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked;
|
|
36175
|
+
clone.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = this.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.slice();
|
|
36114
36176
|
clone.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = new Set(this.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked);
|
|
36115
36177
|
if ("liked" in values && values.liked != null) if (values.liked instanceof Collection || values.liked instanceof URL) {
|
|
36116
36178
|
clone.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = [values.liked];
|
|
36117
36179
|
clone.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = new Set([0]);
|
|
36118
36180
|
} else throw new TypeError("The liked must be of type Collection | URL.");
|
|
36119
|
-
clone.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured = this.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured;
|
|
36181
|
+
clone.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured = this.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured.slice();
|
|
36120
36182
|
clone.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured = new Set(this.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured);
|
|
36121
36183
|
if ("featured" in values && values.featured != null) if (values.featured instanceof Collection || values.featured instanceof URL) {
|
|
36122
36184
|
clone.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured = [values.featured];
|
|
36123
36185
|
clone.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured = new Set([0]);
|
|
36124
36186
|
} else throw new TypeError("The featured must be of type Collection | URL.");
|
|
36125
|
-
clone.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = this.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags;
|
|
36187
|
+
clone.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = this.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.slice();
|
|
36126
36188
|
clone.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = new Set(this.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags);
|
|
36127
36189
|
if ("featuredTags" in values && values.featuredTags != null) if (values.featuredTags instanceof Collection || values.featuredTags instanceof URL) {
|
|
36128
36190
|
clone.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = [values.featuredTags];
|
|
36129
36191
|
clone.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = new Set([0]);
|
|
36130
36192
|
} else throw new TypeError("The featuredTags must be of type Collection | URL.");
|
|
36131
|
-
clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams;
|
|
36193
|
+
clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.slice();
|
|
36132
36194
|
clone.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = new Set(this.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams);
|
|
36133
36195
|
if ("streams" in values && values.streams != null) if (Array.isArray(values.streams) && values.streams.every((v) => v instanceof Collection || v instanceof URL)) {
|
|
36134
|
-
clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams;
|
|
36196
|
+
clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams.slice();
|
|
36135
36197
|
clone.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = /* @__PURE__ */ new Set();
|
|
36136
36198
|
for (let i = 0; i < values.streams.length; i++) clone.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.add(i);
|
|
36137
36199
|
} else throw new TypeError("The streams must be an array of type Collection | URL.");
|
|
36138
|
-
clone.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = this.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints;
|
|
36200
|
+
clone.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = this.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.slice();
|
|
36139
36201
|
if ("endpoints" in values && values.endpoints != null) if (values.endpoints instanceof Endpoints) clone.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = [values.endpoints];
|
|
36140
36202
|
else throw new TypeError("The endpoints must be of type Endpoints.");
|
|
36141
|
-
clone.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = this.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable;
|
|
36203
|
+
clone.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = this.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable.slice();
|
|
36142
36204
|
if ("discoverable" in values && values.discoverable != null) if (typeof values.discoverable === "boolean") clone.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = [values.discoverable];
|
|
36143
36205
|
else throw new TypeError("The discoverable must be of type boolean.");
|
|
36144
|
-
clone.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = this.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended;
|
|
36206
|
+
clone.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = this.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended.slice();
|
|
36145
36207
|
if ("suspended" in values && values.suspended != null) if (typeof values.suspended === "boolean") clone.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = [values.suspended];
|
|
36146
36208
|
else throw new TypeError("The suspended must be of type boolean.");
|
|
36147
|
-
clone.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = this.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial;
|
|
36209
|
+
clone.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = this.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial.slice();
|
|
36148
36210
|
if ("memorial" in values && values.memorial != null) if (typeof values.memorial === "boolean") clone.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = [values.memorial];
|
|
36149
36211
|
else throw new TypeError("The memorial must be of type boolean.");
|
|
36150
|
-
clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable;
|
|
36212
|
+
clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable.slice();
|
|
36151
36213
|
if ("indexable" in values && values.indexable != null) if (typeof values.indexable === "boolean") clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = [values.indexable];
|
|
36152
36214
|
else throw new TypeError("The indexable must be of type boolean.");
|
|
36153
|
-
clone.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo;
|
|
36215
|
+
clone.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.slice();
|
|
36154
36216
|
clone.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = new Set(this.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo);
|
|
36155
36217
|
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) {
|
|
36156
36218
|
clone.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = [values.successor];
|
|
36157
36219
|
clone.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = new Set([0]);
|
|
36158
36220
|
} else throw new TypeError("The successor must be of type Application | Group | Organization | Person | Service | URL.");
|
|
36159
|
-
clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs;
|
|
36221
|
+
clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.slice();
|
|
36160
36222
|
clone.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = new Set(this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs);
|
|
36161
36223
|
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) {
|
|
36162
36224
|
clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = [values.alias];
|
|
@@ -36165,12 +36227,12 @@ var Organization = class Organization extends Object$1 {
|
|
|
36165
36227
|
if ("aliases" in values && values.aliases != null) {
|
|
36166
36228
|
if ("alias" in values && values.alias != null) throw new TypeError("Cannot update both alias and aliases at the same time.");
|
|
36167
36229
|
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)) {
|
|
36168
|
-
clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases;
|
|
36230
|
+
clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases.slice();
|
|
36169
36231
|
clone.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = /* @__PURE__ */ new Set();
|
|
36170
36232
|
for (let i = 0; i < values.aliases.length; i++) clone.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.add(i);
|
|
36171
36233
|
} else throw new TypeError("The aliases must be an array of type Application | Group | Organization | Person | Service | URL.");
|
|
36172
36234
|
}
|
|
36173
|
-
clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service;
|
|
36235
|
+
clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.slice();
|
|
36174
36236
|
clone.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = new Set(this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service);
|
|
36175
36237
|
if ("service" in values && values.service != null) if (values.service instanceof DidService || values.service instanceof URL) {
|
|
36176
36238
|
clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = [values.service];
|
|
@@ -36179,15 +36241,15 @@ var Organization = class Organization extends Object$1 {
|
|
|
36179
36241
|
if ("services" in values && values.services != null) {
|
|
36180
36242
|
if ("service" in values && values.service != null) throw new TypeError("Cannot update both service and services at the same time.");
|
|
36181
36243
|
if (Array.isArray(values.services) && values.services.every((v) => v instanceof DidService || v instanceof URL)) {
|
|
36182
|
-
clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services;
|
|
36244
|
+
clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services.slice();
|
|
36183
36245
|
clone.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = /* @__PURE__ */ new Set();
|
|
36184
36246
|
for (let i = 0; i < values.services.length; i++) clone.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.add(i);
|
|
36185
36247
|
} else throw new TypeError("The services must be an array of type DidService | URL.");
|
|
36186
36248
|
}
|
|
36187
|
-
clone.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = this.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage;
|
|
36249
|
+
clone.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = this.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage.slice();
|
|
36188
36250
|
if ("followedMessage" in values && values.followedMessage != null) if (typeof values.followedMessage === "string") clone.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = [values.followedMessage];
|
|
36189
36251
|
else throw new TypeError("The followedMessage must be of type string.");
|
|
36190
|
-
clone.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat;
|
|
36252
|
+
clone.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat.slice();
|
|
36191
36253
|
if ("cat" in values && values.cat != null) if (typeof values.cat === "boolean") clone.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = [values.cat];
|
|
36192
36254
|
else throw new TypeError("The cat must be of type boolean.");
|
|
36193
36255
|
return clone;
|
|
@@ -39516,7 +39578,8 @@ var Page = class Page extends Document {
|
|
|
39516
39578
|
* Clones this instance, optionally updating it with the given values.
|
|
39517
39579
|
* @param values The values to update the clone with.
|
|
39518
39580
|
* @param options The options to use for cloning.
|
|
39519
|
-
* @returns The cloned instance.
|
|
39581
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
39582
|
+
* and URLs are shared with this instance.
|
|
39520
39583
|
*/
|
|
39521
39584
|
clone(values = {}, options = {}) {
|
|
39522
39585
|
if (this._warning != null) {
|
|
@@ -39715,7 +39778,7 @@ var Person = class Person extends Object$1 {
|
|
|
39715
39778
|
else throw new TypeError("The preferredUsername must be of type string | LanguageString.");
|
|
39716
39779
|
if ("preferredUsernames" in values && values.preferredUsernames != null) {
|
|
39717
39780
|
if ("preferredUsername" in values && values.preferredUsername != null) throw new TypeError("Cannot initialize both preferredUsername and preferredUsernames at the same time.");
|
|
39718
|
-
if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every((v) => typeof v === "string" || v instanceof LanguageString)) this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames;
|
|
39781
|
+
if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every((v) => typeof v === "string" || v instanceof LanguageString)) this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames.slice();
|
|
39719
39782
|
else throw new TypeError("The preferredUsernames must be an array of type string | LanguageString.");
|
|
39720
39783
|
}
|
|
39721
39784
|
if ("publicKey" in values && values.publicKey != null) if (values.publicKey instanceof CryptographicKey || values.publicKey instanceof URL) {
|
|
@@ -39725,7 +39788,7 @@ var Person = class Person extends Object$1 {
|
|
|
39725
39788
|
if ("publicKeys" in values && values.publicKeys != null) {
|
|
39726
39789
|
if ("publicKey" in values && values.publicKey != null) throw new TypeError("Cannot initialize both publicKey and publicKeys at the same time.");
|
|
39727
39790
|
if (Array.isArray(values.publicKeys) && values.publicKeys.every((v) => v instanceof CryptographicKey || v instanceof URL)) {
|
|
39728
|
-
this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys;
|
|
39791
|
+
this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys.slice();
|
|
39729
39792
|
for (let i = 0; i < values.publicKeys.length; i++) this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.add(i);
|
|
39730
39793
|
} else throw new TypeError("The publicKeys must be an array of type CryptographicKey | URL.");
|
|
39731
39794
|
}
|
|
@@ -39736,7 +39799,7 @@ var Person = class Person extends Object$1 {
|
|
|
39736
39799
|
if ("assertionMethods" in values && values.assertionMethods != null) {
|
|
39737
39800
|
if ("assertionMethod" in values && values.assertionMethod != null) throw new TypeError("Cannot initialize both assertionMethod and assertionMethods at the same time.");
|
|
39738
39801
|
if (Array.isArray(values.assertionMethods) && values.assertionMethods.every((v) => v instanceof Multikey || v instanceof URL)) {
|
|
39739
|
-
this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods;
|
|
39802
|
+
this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods.slice();
|
|
39740
39803
|
for (let i = 0; i < values.assertionMethods.length; i++) this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.add(i);
|
|
39741
39804
|
} else throw new TypeError("The assertionMethods must be an array of type Multikey | URL.");
|
|
39742
39805
|
}
|
|
@@ -39771,7 +39834,7 @@ var Person = class Person extends Object$1 {
|
|
|
39771
39834
|
this.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.add(0);
|
|
39772
39835
|
} else throw new TypeError("The featuredTags must be of type Collection | URL.");
|
|
39773
39836
|
if ("streams" in values && values.streams != null) if (Array.isArray(values.streams) && values.streams.every((v) => v instanceof Collection || v instanceof URL)) {
|
|
39774
|
-
this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams;
|
|
39837
|
+
this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams.slice();
|
|
39775
39838
|
for (let i = 0; i < values.streams.length; i++) this.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.add(i);
|
|
39776
39839
|
} else throw new TypeError("The streams must be an array of type Collection | URL.");
|
|
39777
39840
|
if ("endpoints" in values && values.endpoints != null) if (values.endpoints instanceof Endpoints) this.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = [values.endpoints];
|
|
@@ -39795,7 +39858,7 @@ var Person = class Person extends Object$1 {
|
|
|
39795
39858
|
if ("aliases" in values && values.aliases != null) {
|
|
39796
39859
|
if ("alias" in values && values.alias != null) throw new TypeError("Cannot initialize both alias and aliases at the same time.");
|
|
39797
39860
|
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)) {
|
|
39798
|
-
this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases;
|
|
39861
|
+
this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases.slice();
|
|
39799
39862
|
for (let i = 0; i < values.aliases.length; i++) this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.add(i);
|
|
39800
39863
|
} else throw new TypeError("The aliases must be an array of type Application | Group | Organization | Person | Service | URL.");
|
|
39801
39864
|
}
|
|
@@ -39806,7 +39869,7 @@ var Person = class Person extends Object$1 {
|
|
|
39806
39869
|
if ("services" in values && values.services != null) {
|
|
39807
39870
|
if ("service" in values && values.service != null) throw new TypeError("Cannot initialize both service and services at the same time.");
|
|
39808
39871
|
if (Array.isArray(values.services) && values.services.every((v) => v instanceof DidService || v instanceof URL)) {
|
|
39809
|
-
this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services;
|
|
39872
|
+
this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services.slice();
|
|
39810
39873
|
for (let i = 0; i < values.services.length; i++) this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.add(i);
|
|
39811
39874
|
} else throw new TypeError("The services must be an array of type DidService | URL.");
|
|
39812
39875
|
}
|
|
@@ -39819,7 +39882,8 @@ var Person = class Person extends Object$1 {
|
|
|
39819
39882
|
* Clones this instance, optionally updating it with the given values.
|
|
39820
39883
|
* @param values The values to update the clone with.
|
|
39821
39884
|
* @param options The options to use for cloning.
|
|
39822
|
-
* @returns The cloned instance.
|
|
39885
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
39886
|
+
* and URLs are shared with this instance.
|
|
39823
39887
|
*/
|
|
39824
39888
|
clone(values = {}, options = {}) {
|
|
39825
39889
|
if (this._warning != null) {
|
|
@@ -39830,15 +39894,15 @@ var Person = class Person extends Object$1 {
|
|
|
39830
39894
|
};
|
|
39831
39895
|
}
|
|
39832
39896
|
const clone = super.clone(values, options);
|
|
39833
|
-
clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername;
|
|
39897
|
+
clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername.slice();
|
|
39834
39898
|
if ("preferredUsername" in values && values.preferredUsername != null) if (typeof values.preferredUsername === "string" || values.preferredUsername instanceof LanguageString) clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = [values.preferredUsername];
|
|
39835
39899
|
else throw new TypeError("The preferredUsername must be of type string | LanguageString.");
|
|
39836
39900
|
if ("preferredUsernames" in values && values.preferredUsernames != null) {
|
|
39837
39901
|
if ("preferredUsername" in values && values.preferredUsername != null) throw new TypeError("Cannot update both preferredUsername and preferredUsernames at the same time.");
|
|
39838
|
-
if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every((v) => typeof v === "string" || v instanceof LanguageString)) clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames;
|
|
39902
|
+
if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every((v) => typeof v === "string" || v instanceof LanguageString)) clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames.slice();
|
|
39839
39903
|
else throw new TypeError("The preferredUsernames must be an array of type string | LanguageString.");
|
|
39840
39904
|
}
|
|
39841
|
-
clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey;
|
|
39905
|
+
clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey.slice();
|
|
39842
39906
|
clone.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey = new Set(this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey);
|
|
39843
39907
|
if ("publicKey" in values && values.publicKey != null) if (values.publicKey instanceof CryptographicKey || values.publicKey instanceof URL) {
|
|
39844
39908
|
clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = [values.publicKey];
|
|
@@ -39847,12 +39911,12 @@ var Person = class Person extends Object$1 {
|
|
|
39847
39911
|
if ("publicKeys" in values && values.publicKeys != null) {
|
|
39848
39912
|
if ("publicKey" in values && values.publicKey != null) throw new TypeError("Cannot update both publicKey and publicKeys at the same time.");
|
|
39849
39913
|
if (Array.isArray(values.publicKeys) && values.publicKeys.every((v) => v instanceof CryptographicKey || v instanceof URL)) {
|
|
39850
|
-
clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys;
|
|
39914
|
+
clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys.slice();
|
|
39851
39915
|
clone.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey = /* @__PURE__ */ new Set();
|
|
39852
39916
|
for (let i = 0; i < values.publicKeys.length; i++) clone.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.add(i);
|
|
39853
39917
|
} else throw new TypeError("The publicKeys must be an array of type CryptographicKey | URL.");
|
|
39854
39918
|
}
|
|
39855
|
-
clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod;
|
|
39919
|
+
clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.slice();
|
|
39856
39920
|
clone.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = new Set(this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod);
|
|
39857
39921
|
if ("assertionMethod" in values && values.assertionMethod != null) if (values.assertionMethod instanceof Multikey || values.assertionMethod instanceof URL) {
|
|
39858
39922
|
clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = [values.assertionMethod];
|
|
@@ -39861,85 +39925,85 @@ var Person = class Person extends Object$1 {
|
|
|
39861
39925
|
if ("assertionMethods" in values && values.assertionMethods != null) {
|
|
39862
39926
|
if ("assertionMethod" in values && values.assertionMethod != null) throw new TypeError("Cannot update both assertionMethod and assertionMethods at the same time.");
|
|
39863
39927
|
if (Array.isArray(values.assertionMethods) && values.assertionMethods.every((v) => v instanceof Multikey || v instanceof URL)) {
|
|
39864
|
-
clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods;
|
|
39928
|
+
clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods.slice();
|
|
39865
39929
|
clone.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = /* @__PURE__ */ new Set();
|
|
39866
39930
|
for (let i = 0; i < values.assertionMethods.length; i++) clone.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.add(i);
|
|
39867
39931
|
} else throw new TypeError("The assertionMethods must be an array of type Multikey | URL.");
|
|
39868
39932
|
}
|
|
39869
|
-
clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers;
|
|
39933
|
+
clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers.slice();
|
|
39870
39934
|
if ("manuallyApprovesFollowers" in values && values.manuallyApprovesFollowers != null) if (typeof values.manuallyApprovesFollowers === "boolean") clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = [values.manuallyApprovesFollowers];
|
|
39871
39935
|
else throw new TypeError("The manuallyApprovesFollowers must be of type boolean.");
|
|
39872
|
-
clone.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = this.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox;
|
|
39936
|
+
clone.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = this.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox.slice();
|
|
39873
39937
|
clone.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = new Set(this.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox);
|
|
39874
39938
|
if ("inbox" in values && values.inbox != null) if (values.inbox instanceof OrderedCollection || values.inbox instanceof OrderedCollectionPage || values.inbox instanceof URL) {
|
|
39875
39939
|
clone.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = [values.inbox];
|
|
39876
39940
|
clone.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = new Set([0]);
|
|
39877
39941
|
} else throw new TypeError("The inbox must be of type OrderedCollection | OrderedCollectionPage | URL.");
|
|
39878
|
-
clone.#_41QwhqJouoLg3h8dRPKat21brynC_outbox = this.#_41QwhqJouoLg3h8dRPKat21brynC_outbox;
|
|
39942
|
+
clone.#_41QwhqJouoLg3h8dRPKat21brynC_outbox = this.#_41QwhqJouoLg3h8dRPKat21brynC_outbox.slice();
|
|
39879
39943
|
clone.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox = new Set(this.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox);
|
|
39880
39944
|
if ("outbox" in values && values.outbox != null) if (values.outbox instanceof OrderedCollection || values.outbox instanceof OrderedCollectionPage || values.outbox instanceof URL) {
|
|
39881
39945
|
clone.#_41QwhqJouoLg3h8dRPKat21brynC_outbox = [values.outbox];
|
|
39882
39946
|
clone.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox = new Set([0]);
|
|
39883
39947
|
} else throw new TypeError("The outbox must be of type OrderedCollection | OrderedCollectionPage | URL.");
|
|
39884
|
-
clone.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = this.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following;
|
|
39948
|
+
clone.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = this.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.slice();
|
|
39885
39949
|
clone.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = new Set(this.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following);
|
|
39886
39950
|
if ("following" in values && values.following != null) if (values.following instanceof Collection || values.following instanceof URL) {
|
|
39887
39951
|
clone.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = [values.following];
|
|
39888
39952
|
clone.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = new Set([0]);
|
|
39889
39953
|
} else throw new TypeError("The following must be of type Collection | URL.");
|
|
39890
|
-
clone.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = this.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers;
|
|
39954
|
+
clone.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = this.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers.slice();
|
|
39891
39955
|
clone.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = new Set(this.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers);
|
|
39892
39956
|
if ("followers" in values && values.followers != null) if (values.followers instanceof Collection || values.followers instanceof URL) {
|
|
39893
39957
|
clone.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = [values.followers];
|
|
39894
39958
|
clone.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = new Set([0]);
|
|
39895
39959
|
} else throw new TypeError("The followers must be of type Collection | URL.");
|
|
39896
|
-
clone.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = this.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked;
|
|
39960
|
+
clone.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = this.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.slice();
|
|
39897
39961
|
clone.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = new Set(this.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked);
|
|
39898
39962
|
if ("liked" in values && values.liked != null) if (values.liked instanceof Collection || values.liked instanceof URL) {
|
|
39899
39963
|
clone.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = [values.liked];
|
|
39900
39964
|
clone.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = new Set([0]);
|
|
39901
39965
|
} else throw new TypeError("The liked must be of type Collection | URL.");
|
|
39902
|
-
clone.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured = this.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured;
|
|
39966
|
+
clone.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured = this.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured.slice();
|
|
39903
39967
|
clone.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured = new Set(this.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured);
|
|
39904
39968
|
if ("featured" in values && values.featured != null) if (values.featured instanceof Collection || values.featured instanceof URL) {
|
|
39905
39969
|
clone.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured = [values.featured];
|
|
39906
39970
|
clone.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured = new Set([0]);
|
|
39907
39971
|
} else throw new TypeError("The featured must be of type Collection | URL.");
|
|
39908
|
-
clone.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = this.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags;
|
|
39972
|
+
clone.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = this.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.slice();
|
|
39909
39973
|
clone.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = new Set(this.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags);
|
|
39910
39974
|
if ("featuredTags" in values && values.featuredTags != null) if (values.featuredTags instanceof Collection || values.featuredTags instanceof URL) {
|
|
39911
39975
|
clone.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = [values.featuredTags];
|
|
39912
39976
|
clone.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = new Set([0]);
|
|
39913
39977
|
} else throw new TypeError("The featuredTags must be of type Collection | URL.");
|
|
39914
|
-
clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams;
|
|
39978
|
+
clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.slice();
|
|
39915
39979
|
clone.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = new Set(this.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams);
|
|
39916
39980
|
if ("streams" in values && values.streams != null) if (Array.isArray(values.streams) && values.streams.every((v) => v instanceof Collection || v instanceof URL)) {
|
|
39917
|
-
clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams;
|
|
39981
|
+
clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams.slice();
|
|
39918
39982
|
clone.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = /* @__PURE__ */ new Set();
|
|
39919
39983
|
for (let i = 0; i < values.streams.length; i++) clone.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.add(i);
|
|
39920
39984
|
} else throw new TypeError("The streams must be an array of type Collection | URL.");
|
|
39921
|
-
clone.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = this.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints;
|
|
39985
|
+
clone.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = this.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.slice();
|
|
39922
39986
|
if ("endpoints" in values && values.endpoints != null) if (values.endpoints instanceof Endpoints) clone.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = [values.endpoints];
|
|
39923
39987
|
else throw new TypeError("The endpoints must be of type Endpoints.");
|
|
39924
|
-
clone.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = this.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable;
|
|
39988
|
+
clone.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = this.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable.slice();
|
|
39925
39989
|
if ("discoverable" in values && values.discoverable != null) if (typeof values.discoverable === "boolean") clone.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = [values.discoverable];
|
|
39926
39990
|
else throw new TypeError("The discoverable must be of type boolean.");
|
|
39927
|
-
clone.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = this.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended;
|
|
39991
|
+
clone.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = this.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended.slice();
|
|
39928
39992
|
if ("suspended" in values && values.suspended != null) if (typeof values.suspended === "boolean") clone.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = [values.suspended];
|
|
39929
39993
|
else throw new TypeError("The suspended must be of type boolean.");
|
|
39930
|
-
clone.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = this.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial;
|
|
39994
|
+
clone.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = this.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial.slice();
|
|
39931
39995
|
if ("memorial" in values && values.memorial != null) if (typeof values.memorial === "boolean") clone.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = [values.memorial];
|
|
39932
39996
|
else throw new TypeError("The memorial must be of type boolean.");
|
|
39933
|
-
clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable;
|
|
39997
|
+
clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable.slice();
|
|
39934
39998
|
if ("indexable" in values && values.indexable != null) if (typeof values.indexable === "boolean") clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = [values.indexable];
|
|
39935
39999
|
else throw new TypeError("The indexable must be of type boolean.");
|
|
39936
|
-
clone.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo;
|
|
40000
|
+
clone.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.slice();
|
|
39937
40001
|
clone.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = new Set(this.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo);
|
|
39938
40002
|
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) {
|
|
39939
40003
|
clone.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = [values.successor];
|
|
39940
40004
|
clone.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = new Set([0]);
|
|
39941
40005
|
} else throw new TypeError("The successor must be of type Application | Group | Organization | Person | Service | URL.");
|
|
39942
|
-
clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs;
|
|
40006
|
+
clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.slice();
|
|
39943
40007
|
clone.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = new Set(this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs);
|
|
39944
40008
|
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) {
|
|
39945
40009
|
clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = [values.alias];
|
|
@@ -39948,12 +40012,12 @@ var Person = class Person extends Object$1 {
|
|
|
39948
40012
|
if ("aliases" in values && values.aliases != null) {
|
|
39949
40013
|
if ("alias" in values && values.alias != null) throw new TypeError("Cannot update both alias and aliases at the same time.");
|
|
39950
40014
|
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)) {
|
|
39951
|
-
clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases;
|
|
40015
|
+
clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases.slice();
|
|
39952
40016
|
clone.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = /* @__PURE__ */ new Set();
|
|
39953
40017
|
for (let i = 0; i < values.aliases.length; i++) clone.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.add(i);
|
|
39954
40018
|
} else throw new TypeError("The aliases must be an array of type Application | Group | Organization | Person | Service | URL.");
|
|
39955
40019
|
}
|
|
39956
|
-
clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service;
|
|
40020
|
+
clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.slice();
|
|
39957
40021
|
clone.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = new Set(this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service);
|
|
39958
40022
|
if ("service" in values && values.service != null) if (values.service instanceof DidService || values.service instanceof URL) {
|
|
39959
40023
|
clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = [values.service];
|
|
@@ -39962,15 +40026,15 @@ var Person = class Person extends Object$1 {
|
|
|
39962
40026
|
if ("services" in values && values.services != null) {
|
|
39963
40027
|
if ("service" in values && values.service != null) throw new TypeError("Cannot update both service and services at the same time.");
|
|
39964
40028
|
if (Array.isArray(values.services) && values.services.every((v) => v instanceof DidService || v instanceof URL)) {
|
|
39965
|
-
clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services;
|
|
40029
|
+
clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services.slice();
|
|
39966
40030
|
clone.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = /* @__PURE__ */ new Set();
|
|
39967
40031
|
for (let i = 0; i < values.services.length; i++) clone.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.add(i);
|
|
39968
40032
|
} else throw new TypeError("The services must be an array of type DidService | URL.");
|
|
39969
40033
|
}
|
|
39970
|
-
clone.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = this.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage;
|
|
40034
|
+
clone.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = this.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage.slice();
|
|
39971
40035
|
if ("followedMessage" in values && values.followedMessage != null) if (typeof values.followedMessage === "string") clone.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = [values.followedMessage];
|
|
39972
40036
|
else throw new TypeError("The followedMessage must be of type string.");
|
|
39973
|
-
clone.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat;
|
|
40037
|
+
clone.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat.slice();
|
|
39974
40038
|
if ("cat" in values && values.cat != null) if (typeof values.cat === "boolean") clone.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = [values.cat];
|
|
39975
40039
|
else throw new TypeError("The cat must be of type boolean.");
|
|
39976
40040
|
return clone;
|
|
@@ -43319,7 +43383,8 @@ var Place = class Place extends Object$1 {
|
|
|
43319
43383
|
* Clones this instance, optionally updating it with the given values.
|
|
43320
43384
|
* @param values The values to update the clone with.
|
|
43321
43385
|
* @param options The options to use for cloning.
|
|
43322
|
-
* @returns The cloned instance.
|
|
43386
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
43387
|
+
* and URLs are shared with this instance.
|
|
43323
43388
|
*/
|
|
43324
43389
|
clone(values = {}, options = {}) {
|
|
43325
43390
|
if (this._warning != null) {
|
|
@@ -43330,22 +43395,22 @@ var Place = class Place extends Object$1 {
|
|
|
43330
43395
|
};
|
|
43331
43396
|
}
|
|
43332
43397
|
const clone = super.clone(values, options);
|
|
43333
|
-
clone.#_3UCsHnBHvDAXJnBuzw3zw1VVs3Ne_accuracy = this.#_3UCsHnBHvDAXJnBuzw3zw1VVs3Ne_accuracy;
|
|
43398
|
+
clone.#_3UCsHnBHvDAXJnBuzw3zw1VVs3Ne_accuracy = this.#_3UCsHnBHvDAXJnBuzw3zw1VVs3Ne_accuracy.slice();
|
|
43334
43399
|
if ("accuracy" in values && values.accuracy != null) if (typeof values.accuracy === "number" && !Number.isNaN(values.accuracy)) clone.#_3UCsHnBHvDAXJnBuzw3zw1VVs3Ne_accuracy = [values.accuracy];
|
|
43335
43400
|
else throw new TypeError("The accuracy must be of type number.");
|
|
43336
|
-
clone.#_3Q6KDcFQUJRRaBux1BL2yp5QWiBi_altitude = this.#_3Q6KDcFQUJRRaBux1BL2yp5QWiBi_altitude;
|
|
43401
|
+
clone.#_3Q6KDcFQUJRRaBux1BL2yp5QWiBi_altitude = this.#_3Q6KDcFQUJRRaBux1BL2yp5QWiBi_altitude.slice();
|
|
43337
43402
|
if ("altitude" in values && values.altitude != null) if (typeof values.altitude === "number" && !Number.isNaN(values.altitude)) clone.#_3Q6KDcFQUJRRaBux1BL2yp5QWiBi_altitude = [values.altitude];
|
|
43338
43403
|
else throw new TypeError("The altitude must be of type number.");
|
|
43339
|
-
clone.#_3g85RoKRnaNjP7DFyLSvsWDg7HGM_latitude = this.#_3g85RoKRnaNjP7DFyLSvsWDg7HGM_latitude;
|
|
43404
|
+
clone.#_3g85RoKRnaNjP7DFyLSvsWDg7HGM_latitude = this.#_3g85RoKRnaNjP7DFyLSvsWDg7HGM_latitude.slice();
|
|
43340
43405
|
if ("latitude" in values && values.latitude != null) if (typeof values.latitude === "number" && !Number.isNaN(values.latitude)) clone.#_3g85RoKRnaNjP7DFyLSvsWDg7HGM_latitude = [values.latitude];
|
|
43341
43406
|
else throw new TypeError("The latitude must be of type number.");
|
|
43342
|
-
clone.#_B2GEYdS9yBAF3ho1pm1rcRg7cSf_longitude = this.#_B2GEYdS9yBAF3ho1pm1rcRg7cSf_longitude;
|
|
43407
|
+
clone.#_B2GEYdS9yBAF3ho1pm1rcRg7cSf_longitude = this.#_B2GEYdS9yBAF3ho1pm1rcRg7cSf_longitude.slice();
|
|
43343
43408
|
if ("longitude" in values && values.longitude != null) if (typeof values.longitude === "number" && !Number.isNaN(values.longitude)) clone.#_B2GEYdS9yBAF3ho1pm1rcRg7cSf_longitude = [values.longitude];
|
|
43344
43409
|
else throw new TypeError("The longitude must be of type number.");
|
|
43345
|
-
clone.#_3ga86BKHUtRkGx5PHBjRiUXXzwnw_radius = this.#_3ga86BKHUtRkGx5PHBjRiUXXzwnw_radius;
|
|
43410
|
+
clone.#_3ga86BKHUtRkGx5PHBjRiUXXzwnw_radius = this.#_3ga86BKHUtRkGx5PHBjRiUXXzwnw_radius.slice();
|
|
43346
43411
|
if ("radius" in values && values.radius != null) if (typeof values.radius === "number" && !Number.isNaN(values.radius)) clone.#_3ga86BKHUtRkGx5PHBjRiUXXzwnw_radius = [values.radius];
|
|
43347
43412
|
else throw new TypeError("The radius must be of type number.");
|
|
43348
|
-
clone.#_oKrwxU4V8wiKhMW1QEYQibcJh8c_units = this.#_oKrwxU4V8wiKhMW1QEYQibcJh8c_units;
|
|
43413
|
+
clone.#_oKrwxU4V8wiKhMW1QEYQibcJh8c_units = this.#_oKrwxU4V8wiKhMW1QEYQibcJh8c_units.slice();
|
|
43349
43414
|
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];
|
|
43350
43415
|
else throw new TypeError("The units must be of type \"cm\" | \"feet\" | \"inches\" | \"km\" | \"m\" | \"miles\" | URL.");
|
|
43351
43416
|
return clone;
|
|
@@ -43760,7 +43825,8 @@ var Profile = class Profile extends Object$1 {
|
|
|
43760
43825
|
* Clones this instance, optionally updating it with the given values.
|
|
43761
43826
|
* @param values The values to update the clone with.
|
|
43762
43827
|
* @param options The options to use for cloning.
|
|
43763
|
-
* @returns The cloned instance.
|
|
43828
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
43829
|
+
* and URLs are shared with this instance.
|
|
43764
43830
|
*/
|
|
43765
43831
|
clone(values = {}, options = {}) {
|
|
43766
43832
|
if (this._warning != null) {
|
|
@@ -43771,7 +43837,7 @@ var Profile = class Profile extends Object$1 {
|
|
|
43771
43837
|
};
|
|
43772
43838
|
}
|
|
43773
43839
|
const clone = super.clone(values, options);
|
|
43774
|
-
clone.#_3CLQ1PLSXrhSQbTGGHuxNyaEFKM1_describes = this.#_3CLQ1PLSXrhSQbTGGHuxNyaEFKM1_describes;
|
|
43840
|
+
clone.#_3CLQ1PLSXrhSQbTGGHuxNyaEFKM1_describes = this.#_3CLQ1PLSXrhSQbTGGHuxNyaEFKM1_describes.slice();
|
|
43775
43841
|
clone.#_trust_3CLQ1PLSXrhSQbTGGHuxNyaEFKM1_describes = new Set(this.#_trust_3CLQ1PLSXrhSQbTGGHuxNyaEFKM1_describes);
|
|
43776
43842
|
if ("describes" in values && values.describes != null) if (values.describes instanceof Object$1 || values.describes instanceof URL) {
|
|
43777
43843
|
clone.#_3CLQ1PLSXrhSQbTGGHuxNyaEFKM1_describes = [values.describes];
|
|
@@ -44123,11 +44189,11 @@ var Question = class Question extends IntransitiveActivity {
|
|
|
44123
44189
|
constructor(values, options = {}) {
|
|
44124
44190
|
super(values, options);
|
|
44125
44191
|
if ("exclusiveOptions" in values && values.exclusiveOptions != null) if (Array.isArray(values.exclusiveOptions) && values.exclusiveOptions.every((v) => v instanceof Object$1 || v instanceof URL)) {
|
|
44126
|
-
this.#_2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf = values.exclusiveOptions;
|
|
44192
|
+
this.#_2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf = values.exclusiveOptions.slice();
|
|
44127
44193
|
for (let i = 0; i < values.exclusiveOptions.length; i++) this.#_trust_2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf.add(i);
|
|
44128
44194
|
} else throw new TypeError("The exclusiveOptions must be an array of type Object | URL.");
|
|
44129
44195
|
if ("inclusiveOptions" in values && values.inclusiveOptions != null) if (Array.isArray(values.inclusiveOptions) && values.inclusiveOptions.every((v) => v instanceof Object$1 || v instanceof URL)) {
|
|
44130
|
-
this.#_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf = values.inclusiveOptions;
|
|
44196
|
+
this.#_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf = values.inclusiveOptions.slice();
|
|
44131
44197
|
for (let i = 0; i < values.inclusiveOptions.length; i++) this.#_trust_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf.add(i);
|
|
44132
44198
|
} else throw new TypeError("The inclusiveOptions must be an array of type Object | URL.");
|
|
44133
44199
|
if ("closed" in values && values.closed != null) if (isTemporalInstant(values.closed) || typeof values.closed === "boolean") this.#_3KronwL8DiiKBRcJFKQPiEHm8xb6_closed = [values.closed];
|
|
@@ -44149,7 +44215,8 @@ var Question = class Question extends IntransitiveActivity {
|
|
|
44149
44215
|
* Clones this instance, optionally updating it with the given values.
|
|
44150
44216
|
* @param values The values to update the clone with.
|
|
44151
44217
|
* @param options The options to use for cloning.
|
|
44152
|
-
* @returns The cloned instance.
|
|
44218
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
44219
|
+
* and URLs are shared with this instance.
|
|
44153
44220
|
*/
|
|
44154
44221
|
clone(values = {}, options = {}) {
|
|
44155
44222
|
if (this._warning != null) {
|
|
@@ -44160,36 +44227,36 @@ var Question = class Question extends IntransitiveActivity {
|
|
|
44160
44227
|
};
|
|
44161
44228
|
}
|
|
44162
44229
|
const clone = super.clone(values, options);
|
|
44163
|
-
clone.#_2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf = this.#_2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf;
|
|
44230
|
+
clone.#_2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf = this.#_2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf.slice();
|
|
44164
44231
|
clone.#_trust_2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf = new Set(this.#_trust_2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf);
|
|
44165
44232
|
if ("exclusiveOptions" in values && values.exclusiveOptions != null) if (Array.isArray(values.exclusiveOptions) && values.exclusiveOptions.every((v) => v instanceof Object$1 || v instanceof URL)) {
|
|
44166
|
-
clone.#_2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf = values.exclusiveOptions;
|
|
44233
|
+
clone.#_2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf = values.exclusiveOptions.slice();
|
|
44167
44234
|
clone.#_trust_2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf = /* @__PURE__ */ new Set();
|
|
44168
44235
|
for (let i = 0; i < values.exclusiveOptions.length; i++) clone.#_trust_2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf.add(i);
|
|
44169
44236
|
} else throw new TypeError("The exclusiveOptions must be an array of type Object | URL.");
|
|
44170
|
-
clone.#_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf = this.#_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf;
|
|
44237
|
+
clone.#_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf = this.#_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf.slice();
|
|
44171
44238
|
clone.#_trust_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf = new Set(this.#_trust_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf);
|
|
44172
44239
|
if ("inclusiveOptions" in values && values.inclusiveOptions != null) if (Array.isArray(values.inclusiveOptions) && values.inclusiveOptions.every((v) => v instanceof Object$1 || v instanceof URL)) {
|
|
44173
|
-
clone.#_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf = values.inclusiveOptions;
|
|
44240
|
+
clone.#_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf = values.inclusiveOptions.slice();
|
|
44174
44241
|
clone.#_trust_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf = /* @__PURE__ */ new Set();
|
|
44175
44242
|
for (let i = 0; i < values.inclusiveOptions.length; i++) clone.#_trust_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf.add(i);
|
|
44176
44243
|
} else throw new TypeError("The inclusiveOptions must be an array of type Object | URL.");
|
|
44177
|
-
clone.#_3KronwL8DiiKBRcJFKQPiEHm8xb6_closed = this.#_3KronwL8DiiKBRcJFKQPiEHm8xb6_closed;
|
|
44244
|
+
clone.#_3KronwL8DiiKBRcJFKQPiEHm8xb6_closed = this.#_3KronwL8DiiKBRcJFKQPiEHm8xb6_closed.slice();
|
|
44178
44245
|
if ("closed" in values && values.closed != null) if (isTemporalInstant(values.closed) || typeof values.closed === "boolean") clone.#_3KronwL8DiiKBRcJFKQPiEHm8xb6_closed = [values.closed];
|
|
44179
44246
|
else throw new TypeError("The closed must be of type Temporal.Instant | boolean.");
|
|
44180
|
-
clone.#_3H4RdST7dxfmghccvE3rKD3KgcxG_votersCount = this.#_3H4RdST7dxfmghccvE3rKD3KgcxG_votersCount;
|
|
44247
|
+
clone.#_3H4RdST7dxfmghccvE3rKD3KgcxG_votersCount = this.#_3H4RdST7dxfmghccvE3rKD3KgcxG_votersCount.slice();
|
|
44181
44248
|
if ("voters" in values && values.voters != null) if (typeof values.voters === "number" && Number.isInteger(values.voters) && values.voters >= 0) clone.#_3H4RdST7dxfmghccvE3rKD3KgcxG_votersCount = [values.voters];
|
|
44182
44249
|
else throw new TypeError("The voters must be of type number.");
|
|
44183
|
-
clone.#_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote = this.#_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote;
|
|
44250
|
+
clone.#_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote = this.#_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote.slice();
|
|
44184
44251
|
clone.#_trust_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote = new Set(this.#_trust_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote);
|
|
44185
44252
|
if ("quote" in values && values.quote != null) if (values.quote instanceof Object$1 || values.quote instanceof URL) {
|
|
44186
44253
|
clone.#_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote = [values.quote];
|
|
44187
44254
|
clone.#_trust_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote = new Set([0]);
|
|
44188
44255
|
} else throw new TypeError("The quote must be of type Object | URL.");
|
|
44189
|
-
clone.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl = this.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl;
|
|
44256
|
+
clone.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl = this.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl.slice();
|
|
44190
44257
|
if ("quoteUrl" in values && values.quoteUrl != null) if (values.quoteUrl instanceof URL) clone.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl = [values.quoteUrl];
|
|
44191
44258
|
else throw new TypeError("The quoteUrl must be of type URL.");
|
|
44192
|
-
clone.#_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization = this.#_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization;
|
|
44259
|
+
clone.#_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization = this.#_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization.slice();
|
|
44193
44260
|
clone.#_trust_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization = new Set(this.#_trust_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization);
|
|
44194
44261
|
if ("quoteAuthorization" in values && values.quoteAuthorization != null) if (values.quoteAuthorization instanceof QuoteAuthorization || values.quoteAuthorization instanceof URL) {
|
|
44195
44262
|
clone.#_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization = [values.quoteAuthorization];
|
|
@@ -45148,7 +45215,8 @@ var Read = class Read extends Activity {
|
|
|
45148
45215
|
* Clones this instance, optionally updating it with the given values.
|
|
45149
45216
|
* @param values The values to update the clone with.
|
|
45150
45217
|
* @param options The options to use for cloning.
|
|
45151
|
-
* @returns The cloned instance.
|
|
45218
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
45219
|
+
* and URLs are shared with this instance.
|
|
45152
45220
|
*/
|
|
45153
45221
|
clone(values = {}, options = {}) {
|
|
45154
45222
|
if (this._warning != null) {
|
|
@@ -45300,7 +45368,8 @@ var Reject = class Reject extends Activity {
|
|
|
45300
45368
|
* Clones this instance, optionally updating it with the given values.
|
|
45301
45369
|
* @param values The values to update the clone with.
|
|
45302
45370
|
* @param options The options to use for cloning.
|
|
45303
|
-
* @returns The cloned instance.
|
|
45371
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
45372
|
+
* and URLs are shared with this instance.
|
|
45304
45373
|
*/
|
|
45305
45374
|
clone(values = {}, options = {}) {
|
|
45306
45375
|
if (this._warning != null) {
|
|
@@ -45470,7 +45539,7 @@ var Relationship = class Relationship extends Object$1 {
|
|
|
45470
45539
|
if ("objects" in values && values.objects != null) {
|
|
45471
45540
|
if ("object" in values && values.object != null) throw new TypeError("Cannot initialize both object and objects at the same time.");
|
|
45472
45541
|
if (Array.isArray(values.objects) && values.objects.every((v) => v instanceof Object$1 || v instanceof URL)) {
|
|
45473
|
-
this.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = values.objects;
|
|
45542
|
+
this.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = values.objects.slice();
|
|
45474
45543
|
for (let i = 0; i < values.objects.length; i++) this.#_trust_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object.add(i);
|
|
45475
45544
|
} else throw new TypeError("The objects must be an array of type Object | URL.");
|
|
45476
45545
|
}
|
|
@@ -45481,7 +45550,7 @@ var Relationship = class Relationship extends Object$1 {
|
|
|
45481
45550
|
if ("relationships" in values && values.relationships != null) {
|
|
45482
45551
|
if ("relationship" in values && values.relationship != null) throw new TypeError("Cannot initialize both relationship and relationships at the same time.");
|
|
45483
45552
|
if (Array.isArray(values.relationships) && values.relationships.every((v) => v instanceof Object$1 || v instanceof URL)) {
|
|
45484
|
-
this.#_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship = values.relationships;
|
|
45553
|
+
this.#_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship = values.relationships.slice();
|
|
45485
45554
|
for (let i = 0; i < values.relationships.length; i++) this.#_trust_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship.add(i);
|
|
45486
45555
|
} else throw new TypeError("The relationships must be an array of type Object | URL.");
|
|
45487
45556
|
}
|
|
@@ -45490,7 +45559,8 @@ var Relationship = class Relationship extends Object$1 {
|
|
|
45490
45559
|
* Clones this instance, optionally updating it with the given values.
|
|
45491
45560
|
* @param values The values to update the clone with.
|
|
45492
45561
|
* @param options The options to use for cloning.
|
|
45493
|
-
* @returns The cloned instance.
|
|
45562
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
45563
|
+
* and URLs are shared with this instance.
|
|
45494
45564
|
*/
|
|
45495
45565
|
clone(values = {}, options = {}) {
|
|
45496
45566
|
if (this._warning != null) {
|
|
@@ -45501,13 +45571,13 @@ var Relationship = class Relationship extends Object$1 {
|
|
|
45501
45571
|
};
|
|
45502
45572
|
}
|
|
45503
45573
|
const clone = super.clone(values, options);
|
|
45504
|
-
clone.#_2Zqdmi46ZnDQsECS6mzwhrv3rUKq_subject = this.#_2Zqdmi46ZnDQsECS6mzwhrv3rUKq_subject;
|
|
45574
|
+
clone.#_2Zqdmi46ZnDQsECS6mzwhrv3rUKq_subject = this.#_2Zqdmi46ZnDQsECS6mzwhrv3rUKq_subject.slice();
|
|
45505
45575
|
clone.#_trust_2Zqdmi46ZnDQsECS6mzwhrv3rUKq_subject = new Set(this.#_trust_2Zqdmi46ZnDQsECS6mzwhrv3rUKq_subject);
|
|
45506
45576
|
if ("subject" in values && values.subject != null) if (values.subject instanceof Object$1 || values.subject instanceof URL) {
|
|
45507
45577
|
clone.#_2Zqdmi46ZnDQsECS6mzwhrv3rUKq_subject = [values.subject];
|
|
45508
45578
|
clone.#_trust_2Zqdmi46ZnDQsECS6mzwhrv3rUKq_subject = new Set([0]);
|
|
45509
45579
|
} else throw new TypeError("The subject must be of type Object | URL.");
|
|
45510
|
-
clone.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = this.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object;
|
|
45580
|
+
clone.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = this.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object.slice();
|
|
45511
45581
|
clone.#_trust_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = new Set(this.#_trust_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object);
|
|
45512
45582
|
if ("object" in values && values.object != null) if (values.object instanceof Object$1 || values.object instanceof URL) {
|
|
45513
45583
|
clone.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = [values.object];
|
|
@@ -45516,12 +45586,12 @@ var Relationship = class Relationship extends Object$1 {
|
|
|
45516
45586
|
if ("objects" in values && values.objects != null) {
|
|
45517
45587
|
if ("object" in values && values.object != null) throw new TypeError("Cannot update both object and objects at the same time.");
|
|
45518
45588
|
if (Array.isArray(values.objects) && values.objects.every((v) => v instanceof Object$1 || v instanceof URL)) {
|
|
45519
|
-
clone.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = values.objects;
|
|
45589
|
+
clone.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = values.objects.slice();
|
|
45520
45590
|
clone.#_trust_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = /* @__PURE__ */ new Set();
|
|
45521
45591
|
for (let i = 0; i < values.objects.length; i++) clone.#_trust_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object.add(i);
|
|
45522
45592
|
} else throw new TypeError("The objects must be an array of type Object | URL.");
|
|
45523
45593
|
}
|
|
45524
|
-
clone.#_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship = this.#_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship;
|
|
45594
|
+
clone.#_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship = this.#_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship.slice();
|
|
45525
45595
|
clone.#_trust_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship = new Set(this.#_trust_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship);
|
|
45526
45596
|
if ("relationship" in values && values.relationship != null) if (values.relationship instanceof Object$1 || values.relationship instanceof URL) {
|
|
45527
45597
|
clone.#_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship = [values.relationship];
|
|
@@ -45530,7 +45600,7 @@ var Relationship = class Relationship extends Object$1 {
|
|
|
45530
45600
|
if ("relationships" in values && values.relationships != null) {
|
|
45531
45601
|
if ("relationship" in values && values.relationship != null) throw new TypeError("Cannot update both relationship and relationships at the same time.");
|
|
45532
45602
|
if (Array.isArray(values.relationships) && values.relationships.every((v) => v instanceof Object$1 || v instanceof URL)) {
|
|
45533
|
-
clone.#_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship = values.relationships;
|
|
45603
|
+
clone.#_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship = values.relationships.slice();
|
|
45534
45604
|
clone.#_trust_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship = /* @__PURE__ */ new Set();
|
|
45535
45605
|
for (let i = 0; i < values.relationships.length; i++) clone.#_trust_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship.add(i);
|
|
45536
45606
|
} else throw new TypeError("The relationships must be an array of type Object | URL.");
|
|
@@ -46334,7 +46404,8 @@ var Remove = class Remove extends Activity {
|
|
|
46334
46404
|
* Clones this instance, optionally updating it with the given values.
|
|
46335
46405
|
* @param values The values to update the clone with.
|
|
46336
46406
|
* @param options The options to use for cloning.
|
|
46337
|
-
* @returns The cloned instance.
|
|
46407
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
46408
|
+
* and URLs are shared with this instance.
|
|
46338
46409
|
*/
|
|
46339
46410
|
clone(values = {}, options = {}) {
|
|
46340
46411
|
if (this._warning != null) {
|
|
@@ -46519,7 +46590,7 @@ var Service = class Service extends Object$1 {
|
|
|
46519
46590
|
else throw new TypeError("The preferredUsername must be of type string | LanguageString.");
|
|
46520
46591
|
if ("preferredUsernames" in values && values.preferredUsernames != null) {
|
|
46521
46592
|
if ("preferredUsername" in values && values.preferredUsername != null) throw new TypeError("Cannot initialize both preferredUsername and preferredUsernames at the same time.");
|
|
46522
|
-
if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every((v) => typeof v === "string" || v instanceof LanguageString)) this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames;
|
|
46593
|
+
if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every((v) => typeof v === "string" || v instanceof LanguageString)) this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames.slice();
|
|
46523
46594
|
else throw new TypeError("The preferredUsernames must be an array of type string | LanguageString.");
|
|
46524
46595
|
}
|
|
46525
46596
|
if ("publicKey" in values && values.publicKey != null) if (values.publicKey instanceof CryptographicKey || values.publicKey instanceof URL) {
|
|
@@ -46529,7 +46600,7 @@ var Service = class Service extends Object$1 {
|
|
|
46529
46600
|
if ("publicKeys" in values && values.publicKeys != null) {
|
|
46530
46601
|
if ("publicKey" in values && values.publicKey != null) throw new TypeError("Cannot initialize both publicKey and publicKeys at the same time.");
|
|
46531
46602
|
if (Array.isArray(values.publicKeys) && values.publicKeys.every((v) => v instanceof CryptographicKey || v instanceof URL)) {
|
|
46532
|
-
this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys;
|
|
46603
|
+
this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys.slice();
|
|
46533
46604
|
for (let i = 0; i < values.publicKeys.length; i++) this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.add(i);
|
|
46534
46605
|
} else throw new TypeError("The publicKeys must be an array of type CryptographicKey | URL.");
|
|
46535
46606
|
}
|
|
@@ -46540,7 +46611,7 @@ var Service = class Service extends Object$1 {
|
|
|
46540
46611
|
if ("assertionMethods" in values && values.assertionMethods != null) {
|
|
46541
46612
|
if ("assertionMethod" in values && values.assertionMethod != null) throw new TypeError("Cannot initialize both assertionMethod and assertionMethods at the same time.");
|
|
46542
46613
|
if (Array.isArray(values.assertionMethods) && values.assertionMethods.every((v) => v instanceof Multikey || v instanceof URL)) {
|
|
46543
|
-
this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods;
|
|
46614
|
+
this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods.slice();
|
|
46544
46615
|
for (let i = 0; i < values.assertionMethods.length; i++) this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.add(i);
|
|
46545
46616
|
} else throw new TypeError("The assertionMethods must be an array of type Multikey | URL.");
|
|
46546
46617
|
}
|
|
@@ -46575,7 +46646,7 @@ var Service = class Service extends Object$1 {
|
|
|
46575
46646
|
this.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.add(0);
|
|
46576
46647
|
} else throw new TypeError("The featuredTags must be of type Collection | URL.");
|
|
46577
46648
|
if ("streams" in values && values.streams != null) if (Array.isArray(values.streams) && values.streams.every((v) => v instanceof Collection || v instanceof URL)) {
|
|
46578
|
-
this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams;
|
|
46649
|
+
this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams.slice();
|
|
46579
46650
|
for (let i = 0; i < values.streams.length; i++) this.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.add(i);
|
|
46580
46651
|
} else throw new TypeError("The streams must be an array of type Collection | URL.");
|
|
46581
46652
|
if ("endpoints" in values && values.endpoints != null) if (values.endpoints instanceof Endpoints) this.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = [values.endpoints];
|
|
@@ -46599,7 +46670,7 @@ var Service = class Service extends Object$1 {
|
|
|
46599
46670
|
if ("aliases" in values && values.aliases != null) {
|
|
46600
46671
|
if ("alias" in values && values.alias != null) throw new TypeError("Cannot initialize both alias and aliases at the same time.");
|
|
46601
46672
|
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)) {
|
|
46602
|
-
this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases;
|
|
46673
|
+
this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases.slice();
|
|
46603
46674
|
for (let i = 0; i < values.aliases.length; i++) this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.add(i);
|
|
46604
46675
|
} else throw new TypeError("The aliases must be an array of type Application | Group | Organization | Person | Service | URL.");
|
|
46605
46676
|
}
|
|
@@ -46610,7 +46681,7 @@ var Service = class Service extends Object$1 {
|
|
|
46610
46681
|
if ("services" in values && values.services != null) {
|
|
46611
46682
|
if ("service" in values && values.service != null) throw new TypeError("Cannot initialize both service and services at the same time.");
|
|
46612
46683
|
if (Array.isArray(values.services) && values.services.every((v) => v instanceof DidService || v instanceof URL)) {
|
|
46613
|
-
this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services;
|
|
46684
|
+
this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services.slice();
|
|
46614
46685
|
for (let i = 0; i < values.services.length; i++) this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.add(i);
|
|
46615
46686
|
} else throw new TypeError("The services must be an array of type DidService | URL.");
|
|
46616
46687
|
}
|
|
@@ -46623,7 +46694,8 @@ var Service = class Service extends Object$1 {
|
|
|
46623
46694
|
* Clones this instance, optionally updating it with the given values.
|
|
46624
46695
|
* @param values The values to update the clone with.
|
|
46625
46696
|
* @param options The options to use for cloning.
|
|
46626
|
-
* @returns The cloned instance.
|
|
46697
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
46698
|
+
* and URLs are shared with this instance.
|
|
46627
46699
|
*/
|
|
46628
46700
|
clone(values = {}, options = {}) {
|
|
46629
46701
|
if (this._warning != null) {
|
|
@@ -46634,15 +46706,15 @@ var Service = class Service extends Object$1 {
|
|
|
46634
46706
|
};
|
|
46635
46707
|
}
|
|
46636
46708
|
const clone = super.clone(values, options);
|
|
46637
|
-
clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername;
|
|
46709
|
+
clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername.slice();
|
|
46638
46710
|
if ("preferredUsername" in values && values.preferredUsername != null) if (typeof values.preferredUsername === "string" || values.preferredUsername instanceof LanguageString) clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = [values.preferredUsername];
|
|
46639
46711
|
else throw new TypeError("The preferredUsername must be of type string | LanguageString.");
|
|
46640
46712
|
if ("preferredUsernames" in values && values.preferredUsernames != null) {
|
|
46641
46713
|
if ("preferredUsername" in values && values.preferredUsername != null) throw new TypeError("Cannot update both preferredUsername and preferredUsernames at the same time.");
|
|
46642
|
-
if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every((v) => typeof v === "string" || v instanceof LanguageString)) clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames;
|
|
46714
|
+
if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every((v) => typeof v === "string" || v instanceof LanguageString)) clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames.slice();
|
|
46643
46715
|
else throw new TypeError("The preferredUsernames must be an array of type string | LanguageString.");
|
|
46644
46716
|
}
|
|
46645
|
-
clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey;
|
|
46717
|
+
clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey.slice();
|
|
46646
46718
|
clone.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey = new Set(this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey);
|
|
46647
46719
|
if ("publicKey" in values && values.publicKey != null) if (values.publicKey instanceof CryptographicKey || values.publicKey instanceof URL) {
|
|
46648
46720
|
clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = [values.publicKey];
|
|
@@ -46651,12 +46723,12 @@ var Service = class Service extends Object$1 {
|
|
|
46651
46723
|
if ("publicKeys" in values && values.publicKeys != null) {
|
|
46652
46724
|
if ("publicKey" in values && values.publicKey != null) throw new TypeError("Cannot update both publicKey and publicKeys at the same time.");
|
|
46653
46725
|
if (Array.isArray(values.publicKeys) && values.publicKeys.every((v) => v instanceof CryptographicKey || v instanceof URL)) {
|
|
46654
|
-
clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys;
|
|
46726
|
+
clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys.slice();
|
|
46655
46727
|
clone.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey = /* @__PURE__ */ new Set();
|
|
46656
46728
|
for (let i = 0; i < values.publicKeys.length; i++) clone.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.add(i);
|
|
46657
46729
|
} else throw new TypeError("The publicKeys must be an array of type CryptographicKey | URL.");
|
|
46658
46730
|
}
|
|
46659
|
-
clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod;
|
|
46731
|
+
clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.slice();
|
|
46660
46732
|
clone.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = new Set(this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod);
|
|
46661
46733
|
if ("assertionMethod" in values && values.assertionMethod != null) if (values.assertionMethod instanceof Multikey || values.assertionMethod instanceof URL) {
|
|
46662
46734
|
clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = [values.assertionMethod];
|
|
@@ -46665,85 +46737,85 @@ var Service = class Service extends Object$1 {
|
|
|
46665
46737
|
if ("assertionMethods" in values && values.assertionMethods != null) {
|
|
46666
46738
|
if ("assertionMethod" in values && values.assertionMethod != null) throw new TypeError("Cannot update both assertionMethod and assertionMethods at the same time.");
|
|
46667
46739
|
if (Array.isArray(values.assertionMethods) && values.assertionMethods.every((v) => v instanceof Multikey || v instanceof URL)) {
|
|
46668
|
-
clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods;
|
|
46740
|
+
clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods.slice();
|
|
46669
46741
|
clone.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = /* @__PURE__ */ new Set();
|
|
46670
46742
|
for (let i = 0; i < values.assertionMethods.length; i++) clone.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.add(i);
|
|
46671
46743
|
} else throw new TypeError("The assertionMethods must be an array of type Multikey | URL.");
|
|
46672
46744
|
}
|
|
46673
|
-
clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers;
|
|
46745
|
+
clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers.slice();
|
|
46674
46746
|
if ("manuallyApprovesFollowers" in values && values.manuallyApprovesFollowers != null) if (typeof values.manuallyApprovesFollowers === "boolean") clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = [values.manuallyApprovesFollowers];
|
|
46675
46747
|
else throw new TypeError("The manuallyApprovesFollowers must be of type boolean.");
|
|
46676
|
-
clone.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = this.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox;
|
|
46748
|
+
clone.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = this.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox.slice();
|
|
46677
46749
|
clone.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = new Set(this.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox);
|
|
46678
46750
|
if ("inbox" in values && values.inbox != null) if (values.inbox instanceof OrderedCollection || values.inbox instanceof OrderedCollectionPage || values.inbox instanceof URL) {
|
|
46679
46751
|
clone.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = [values.inbox];
|
|
46680
46752
|
clone.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = new Set([0]);
|
|
46681
46753
|
} else throw new TypeError("The inbox must be of type OrderedCollection | OrderedCollectionPage | URL.");
|
|
46682
|
-
clone.#_41QwhqJouoLg3h8dRPKat21brynC_outbox = this.#_41QwhqJouoLg3h8dRPKat21brynC_outbox;
|
|
46754
|
+
clone.#_41QwhqJouoLg3h8dRPKat21brynC_outbox = this.#_41QwhqJouoLg3h8dRPKat21brynC_outbox.slice();
|
|
46683
46755
|
clone.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox = new Set(this.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox);
|
|
46684
46756
|
if ("outbox" in values && values.outbox != null) if (values.outbox instanceof OrderedCollection || values.outbox instanceof OrderedCollectionPage || values.outbox instanceof URL) {
|
|
46685
46757
|
clone.#_41QwhqJouoLg3h8dRPKat21brynC_outbox = [values.outbox];
|
|
46686
46758
|
clone.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox = new Set([0]);
|
|
46687
46759
|
} else throw new TypeError("The outbox must be of type OrderedCollection | OrderedCollectionPage | URL.");
|
|
46688
|
-
clone.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = this.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following;
|
|
46760
|
+
clone.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = this.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.slice();
|
|
46689
46761
|
clone.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = new Set(this.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following);
|
|
46690
46762
|
if ("following" in values && values.following != null) if (values.following instanceof Collection || values.following instanceof URL) {
|
|
46691
46763
|
clone.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = [values.following];
|
|
46692
46764
|
clone.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = new Set([0]);
|
|
46693
46765
|
} else throw new TypeError("The following must be of type Collection | URL.");
|
|
46694
|
-
clone.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = this.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers;
|
|
46766
|
+
clone.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = this.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers.slice();
|
|
46695
46767
|
clone.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = new Set(this.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers);
|
|
46696
46768
|
if ("followers" in values && values.followers != null) if (values.followers instanceof Collection || values.followers instanceof URL) {
|
|
46697
46769
|
clone.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = [values.followers];
|
|
46698
46770
|
clone.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = new Set([0]);
|
|
46699
46771
|
} else throw new TypeError("The followers must be of type Collection | URL.");
|
|
46700
|
-
clone.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = this.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked;
|
|
46772
|
+
clone.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = this.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.slice();
|
|
46701
46773
|
clone.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = new Set(this.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked);
|
|
46702
46774
|
if ("liked" in values && values.liked != null) if (values.liked instanceof Collection || values.liked instanceof URL) {
|
|
46703
46775
|
clone.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = [values.liked];
|
|
46704
46776
|
clone.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = new Set([0]);
|
|
46705
46777
|
} else throw new TypeError("The liked must be of type Collection | URL.");
|
|
46706
|
-
clone.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured = this.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured;
|
|
46778
|
+
clone.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured = this.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured.slice();
|
|
46707
46779
|
clone.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured = new Set(this.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured);
|
|
46708
46780
|
if ("featured" in values && values.featured != null) if (values.featured instanceof Collection || values.featured instanceof URL) {
|
|
46709
46781
|
clone.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured = [values.featured];
|
|
46710
46782
|
clone.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured = new Set([0]);
|
|
46711
46783
|
} else throw new TypeError("The featured must be of type Collection | URL.");
|
|
46712
|
-
clone.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = this.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags;
|
|
46784
|
+
clone.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = this.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.slice();
|
|
46713
46785
|
clone.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = new Set(this.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags);
|
|
46714
46786
|
if ("featuredTags" in values && values.featuredTags != null) if (values.featuredTags instanceof Collection || values.featuredTags instanceof URL) {
|
|
46715
46787
|
clone.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = [values.featuredTags];
|
|
46716
46788
|
clone.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = new Set([0]);
|
|
46717
46789
|
} else throw new TypeError("The featuredTags must be of type Collection | URL.");
|
|
46718
|
-
clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams;
|
|
46790
|
+
clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.slice();
|
|
46719
46791
|
clone.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = new Set(this.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams);
|
|
46720
46792
|
if ("streams" in values && values.streams != null) if (Array.isArray(values.streams) && values.streams.every((v) => v instanceof Collection || v instanceof URL)) {
|
|
46721
|
-
clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams;
|
|
46793
|
+
clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams.slice();
|
|
46722
46794
|
clone.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = /* @__PURE__ */ new Set();
|
|
46723
46795
|
for (let i = 0; i < values.streams.length; i++) clone.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.add(i);
|
|
46724
46796
|
} else throw new TypeError("The streams must be an array of type Collection | URL.");
|
|
46725
|
-
clone.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = this.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints;
|
|
46797
|
+
clone.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = this.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.slice();
|
|
46726
46798
|
if ("endpoints" in values && values.endpoints != null) if (values.endpoints instanceof Endpoints) clone.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = [values.endpoints];
|
|
46727
46799
|
else throw new TypeError("The endpoints must be of type Endpoints.");
|
|
46728
|
-
clone.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = this.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable;
|
|
46800
|
+
clone.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = this.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable.slice();
|
|
46729
46801
|
if ("discoverable" in values && values.discoverable != null) if (typeof values.discoverable === "boolean") clone.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = [values.discoverable];
|
|
46730
46802
|
else throw new TypeError("The discoverable must be of type boolean.");
|
|
46731
|
-
clone.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = this.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended;
|
|
46803
|
+
clone.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = this.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended.slice();
|
|
46732
46804
|
if ("suspended" in values && values.suspended != null) if (typeof values.suspended === "boolean") clone.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = [values.suspended];
|
|
46733
46805
|
else throw new TypeError("The suspended must be of type boolean.");
|
|
46734
|
-
clone.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = this.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial;
|
|
46806
|
+
clone.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = this.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial.slice();
|
|
46735
46807
|
if ("memorial" in values && values.memorial != null) if (typeof values.memorial === "boolean") clone.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = [values.memorial];
|
|
46736
46808
|
else throw new TypeError("The memorial must be of type boolean.");
|
|
46737
|
-
clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable;
|
|
46809
|
+
clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable.slice();
|
|
46738
46810
|
if ("indexable" in values && values.indexable != null) if (typeof values.indexable === "boolean") clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = [values.indexable];
|
|
46739
46811
|
else throw new TypeError("The indexable must be of type boolean.");
|
|
46740
|
-
clone.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo;
|
|
46812
|
+
clone.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.slice();
|
|
46741
46813
|
clone.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = new Set(this.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo);
|
|
46742
46814
|
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) {
|
|
46743
46815
|
clone.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = [values.successor];
|
|
46744
46816
|
clone.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = new Set([0]);
|
|
46745
46817
|
} else throw new TypeError("The successor must be of type Application | Group | Organization | Person | Service | URL.");
|
|
46746
|
-
clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs;
|
|
46818
|
+
clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.slice();
|
|
46747
46819
|
clone.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = new Set(this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs);
|
|
46748
46820
|
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) {
|
|
46749
46821
|
clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = [values.alias];
|
|
@@ -46752,12 +46824,12 @@ var Service = class Service extends Object$1 {
|
|
|
46752
46824
|
if ("aliases" in values && values.aliases != null) {
|
|
46753
46825
|
if ("alias" in values && values.alias != null) throw new TypeError("Cannot update both alias and aliases at the same time.");
|
|
46754
46826
|
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)) {
|
|
46755
|
-
clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases;
|
|
46827
|
+
clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases.slice();
|
|
46756
46828
|
clone.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = /* @__PURE__ */ new Set();
|
|
46757
46829
|
for (let i = 0; i < values.aliases.length; i++) clone.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.add(i);
|
|
46758
46830
|
} else throw new TypeError("The aliases must be an array of type Application | Group | Organization | Person | Service | URL.");
|
|
46759
46831
|
}
|
|
46760
|
-
clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service;
|
|
46832
|
+
clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.slice();
|
|
46761
46833
|
clone.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = new Set(this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service);
|
|
46762
46834
|
if ("service" in values && values.service != null) if (values.service instanceof DidService || values.service instanceof URL) {
|
|
46763
46835
|
clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = [values.service];
|
|
@@ -46766,15 +46838,15 @@ var Service = class Service extends Object$1 {
|
|
|
46766
46838
|
if ("services" in values && values.services != null) {
|
|
46767
46839
|
if ("service" in values && values.service != null) throw new TypeError("Cannot update both service and services at the same time.");
|
|
46768
46840
|
if (Array.isArray(values.services) && values.services.every((v) => v instanceof DidService || v instanceof URL)) {
|
|
46769
|
-
clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services;
|
|
46841
|
+
clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services.slice();
|
|
46770
46842
|
clone.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = /* @__PURE__ */ new Set();
|
|
46771
46843
|
for (let i = 0; i < values.services.length; i++) clone.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.add(i);
|
|
46772
46844
|
} else throw new TypeError("The services must be an array of type DidService | URL.");
|
|
46773
46845
|
}
|
|
46774
|
-
clone.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = this.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage;
|
|
46846
|
+
clone.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = this.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage.slice();
|
|
46775
46847
|
if ("followedMessage" in values && values.followedMessage != null) if (typeof values.followedMessage === "string") clone.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = [values.followedMessage];
|
|
46776
46848
|
else throw new TypeError("The followedMessage must be of type string.");
|
|
46777
|
-
clone.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat;
|
|
46849
|
+
clone.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat.slice();
|
|
46778
46850
|
if ("cat" in values && values.cat != null) if (typeof values.cat === "boolean") clone.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = [values.cat];
|
|
46779
46851
|
else throw new TypeError("The cat must be of type boolean.");
|
|
46780
46852
|
return clone;
|
|
@@ -50151,7 +50223,7 @@ var Source = class {
|
|
|
50151
50223
|
else throw new TypeError("The content must be of type string | LanguageString.");
|
|
50152
50224
|
if ("contents" in values && values.contents != null) {
|
|
50153
50225
|
if ("content" in values && values.content != null) throw new TypeError("Cannot initialize both content and contents at the same time.");
|
|
50154
|
-
if (Array.isArray(values.contents) && values.contents.every((v) => typeof v === "string" || v instanceof LanguageString)) this.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content = values.contents;
|
|
50226
|
+
if (Array.isArray(values.contents) && values.contents.every((v) => typeof v === "string" || v instanceof LanguageString)) this.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content = values.contents.slice();
|
|
50155
50227
|
else throw new TypeError("The contents must be an array of type string | LanguageString.");
|
|
50156
50228
|
}
|
|
50157
50229
|
if ("mediaType" in values && values.mediaType != null) if (typeof values.mediaType === "string") this.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType = [values.mediaType];
|
|
@@ -50161,7 +50233,8 @@ var Source = class {
|
|
|
50161
50233
|
* Clones this instance, optionally updating it with the given values.
|
|
50162
50234
|
* @param values The values to update the clone with.
|
|
50163
50235
|
* @param options The options to use for cloning.
|
|
50164
|
-
* @returns The cloned instance.
|
|
50236
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
50237
|
+
* and URLs are shared with this instance.
|
|
50165
50238
|
*/
|
|
50166
50239
|
clone(values = {}, options = {}) {
|
|
50167
50240
|
if (this._warning != null) {
|
|
@@ -50172,15 +50245,15 @@ var Source = class {
|
|
|
50172
50245
|
};
|
|
50173
50246
|
}
|
|
50174
50247
|
const clone = new this.constructor({ id: values.id ?? this.id }, options);
|
|
50175
|
-
clone.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content = this.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content;
|
|
50248
|
+
clone.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content = this.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content.slice();
|
|
50176
50249
|
if ("content" in values && values.content != null) if (typeof values.content === "string" || values.content instanceof LanguageString) clone.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content = [values.content];
|
|
50177
50250
|
else throw new TypeError("The content must be of type string | LanguageString.");
|
|
50178
50251
|
if ("contents" in values && values.contents != null) {
|
|
50179
50252
|
if ("content" in values && values.content != null) throw new TypeError("Cannot update both content and contents at the same time.");
|
|
50180
|
-
if (Array.isArray(values.contents) && values.contents.every((v) => typeof v === "string" || v instanceof LanguageString)) clone.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content = values.contents;
|
|
50253
|
+
if (Array.isArray(values.contents) && values.contents.every((v) => typeof v === "string" || v instanceof LanguageString)) clone.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content = values.contents.slice();
|
|
50181
50254
|
else throw new TypeError("The contents must be an array of type string | LanguageString.");
|
|
50182
50255
|
}
|
|
50183
|
-
clone.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType = this.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType;
|
|
50256
|
+
clone.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType = this.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType.slice();
|
|
50184
50257
|
if ("mediaType" in values && values.mediaType != null) if (typeof values.mediaType === "string") clone.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType = [values.mediaType];
|
|
50185
50258
|
else throw new TypeError("The mediaType must be of type string.");
|
|
50186
50259
|
return clone;
|
|
@@ -50406,7 +50479,8 @@ var TentativeAccept = class TentativeAccept extends Accept {
|
|
|
50406
50479
|
* Clones this instance, optionally updating it with the given values.
|
|
50407
50480
|
* @param values The values to update the clone with.
|
|
50408
50481
|
* @param options The options to use for cloning.
|
|
50409
|
-
* @returns The cloned instance.
|
|
50482
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
50483
|
+
* and URLs are shared with this instance.
|
|
50410
50484
|
*/
|
|
50411
50485
|
clone(values = {}, options = {}) {
|
|
50412
50486
|
if (this._warning != null) {
|
|
@@ -50558,7 +50632,8 @@ var TentativeReject = class TentativeReject extends Reject {
|
|
|
50558
50632
|
* Clones this instance, optionally updating it with the given values.
|
|
50559
50633
|
* @param values The values to update the clone with.
|
|
50560
50634
|
* @param options The options to use for cloning.
|
|
50561
|
-
* @returns The cloned instance.
|
|
50635
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
50636
|
+
* and URLs are shared with this instance.
|
|
50562
50637
|
*/
|
|
50563
50638
|
clone(values = {}, options = {}) {
|
|
50564
50639
|
if (this._warning != null) {
|
|
@@ -50712,7 +50787,7 @@ var Tombstone = class Tombstone extends Object$1 {
|
|
|
50712
50787
|
else throw new TypeError("The formerType must be of type $EntityType.");
|
|
50713
50788
|
if ("formerTypes" in values && values.formerTypes != null) {
|
|
50714
50789
|
if ("formerType" in values && values.formerType != null) throw new TypeError("Cannot initialize both formerType and formerTypes at the same time.");
|
|
50715
|
-
if (Array.isArray(values.formerTypes) && values.formerTypes.every((v) => isEntityType(v))) this.#_Pn8kdUztYSt4nyoAkVsMcQaLo9U_formerType = values.formerTypes;
|
|
50790
|
+
if (Array.isArray(values.formerTypes) && values.formerTypes.every((v) => isEntityType(v))) this.#_Pn8kdUztYSt4nyoAkVsMcQaLo9U_formerType = values.formerTypes.slice();
|
|
50716
50791
|
else throw new TypeError("The formerTypes must be an array of type $EntityType.");
|
|
50717
50792
|
}
|
|
50718
50793
|
if ("deleted" in values && values.deleted != null) if (isTemporalInstant(values.deleted)) this.#_8g8g4LiVMhFTXskuDEqx4ascxUr_deleted = [values.deleted];
|
|
@@ -50722,7 +50797,8 @@ var Tombstone = class Tombstone extends Object$1 {
|
|
|
50722
50797
|
* Clones this instance, optionally updating it with the given values.
|
|
50723
50798
|
* @param values The values to update the clone with.
|
|
50724
50799
|
* @param options The options to use for cloning.
|
|
50725
|
-
* @returns The cloned instance.
|
|
50800
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
50801
|
+
* and URLs are shared with this instance.
|
|
50726
50802
|
*/
|
|
50727
50803
|
clone(values = {}, options = {}) {
|
|
50728
50804
|
if (this._warning != null) {
|
|
@@ -50733,15 +50809,15 @@ var Tombstone = class Tombstone extends Object$1 {
|
|
|
50733
50809
|
};
|
|
50734
50810
|
}
|
|
50735
50811
|
const clone = super.clone(values, options);
|
|
50736
|
-
clone.#_Pn8kdUztYSt4nyoAkVsMcQaLo9U_formerType = this.#_Pn8kdUztYSt4nyoAkVsMcQaLo9U_formerType;
|
|
50812
|
+
clone.#_Pn8kdUztYSt4nyoAkVsMcQaLo9U_formerType = this.#_Pn8kdUztYSt4nyoAkVsMcQaLo9U_formerType.slice();
|
|
50737
50813
|
if ("formerType" in values && values.formerType != null) if (isEntityType(values.formerType)) clone.#_Pn8kdUztYSt4nyoAkVsMcQaLo9U_formerType = [values.formerType];
|
|
50738
50814
|
else throw new TypeError("The formerType must be of type $EntityType.");
|
|
50739
50815
|
if ("formerTypes" in values && values.formerTypes != null) {
|
|
50740
50816
|
if ("formerType" in values && values.formerType != null) throw new TypeError("Cannot update both formerType and formerTypes at the same time.");
|
|
50741
|
-
if (Array.isArray(values.formerTypes) && values.formerTypes.every((v) => isEntityType(v))) clone.#_Pn8kdUztYSt4nyoAkVsMcQaLo9U_formerType = values.formerTypes;
|
|
50817
|
+
if (Array.isArray(values.formerTypes) && values.formerTypes.every((v) => isEntityType(v))) clone.#_Pn8kdUztYSt4nyoAkVsMcQaLo9U_formerType = values.formerTypes.slice();
|
|
50742
50818
|
else throw new TypeError("The formerTypes must be an array of type $EntityType.");
|
|
50743
50819
|
}
|
|
50744
|
-
clone.#_8g8g4LiVMhFTXskuDEqx4ascxUr_deleted = this.#_8g8g4LiVMhFTXskuDEqx4ascxUr_deleted;
|
|
50820
|
+
clone.#_8g8g4LiVMhFTXskuDEqx4ascxUr_deleted = this.#_8g8g4LiVMhFTXskuDEqx4ascxUr_deleted.slice();
|
|
50745
50821
|
if ("deleted" in values && values.deleted != null) if (isTemporalInstant(values.deleted)) clone.#_8g8g4LiVMhFTXskuDEqx4ascxUr_deleted = [values.deleted];
|
|
50746
50822
|
else throw new TypeError("The deleted must be of type Temporal.Instant.");
|
|
50747
50823
|
return clone;
|
|
@@ -50996,7 +51072,8 @@ var Travel = class Travel extends IntransitiveActivity {
|
|
|
50996
51072
|
* Clones this instance, optionally updating it with the given values.
|
|
50997
51073
|
* @param values The values to update the clone with.
|
|
50998
51074
|
* @param options The options to use for cloning.
|
|
50999
|
-
* @returns The cloned instance.
|
|
51075
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
51076
|
+
* and URLs are shared with this instance.
|
|
51000
51077
|
*/
|
|
51001
51078
|
clone(values = {}, options = {}) {
|
|
51002
51079
|
if (this._warning != null) {
|
|
@@ -51153,7 +51230,8 @@ var Undo = class Undo extends Activity {
|
|
|
51153
51230
|
* Clones this instance, optionally updating it with the given values.
|
|
51154
51231
|
* @param values The values to update the clone with.
|
|
51155
51232
|
* @param options The options to use for cloning.
|
|
51156
|
-
* @returns The cloned instance.
|
|
51233
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
51234
|
+
* and URLs are shared with this instance.
|
|
51157
51235
|
*/
|
|
51158
51236
|
clone(values = {}, options = {}) {
|
|
51159
51237
|
if (this._warning != null) {
|
|
@@ -51317,7 +51395,8 @@ var Update = class Update extends Activity {
|
|
|
51317
51395
|
* Clones this instance, optionally updating it with the given values.
|
|
51318
51396
|
* @param values The values to update the clone with.
|
|
51319
51397
|
* @param options The options to use for cloning.
|
|
51320
|
-
* @returns The cloned instance.
|
|
51398
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
51399
|
+
* and URLs are shared with this instance.
|
|
51321
51400
|
*/
|
|
51322
51401
|
clone(values = {}, options = {}) {
|
|
51323
51402
|
if (this._warning != null) {
|
|
@@ -51527,7 +51606,8 @@ var Video = class Video extends Document {
|
|
|
51527
51606
|
* Clones this instance, optionally updating it with the given values.
|
|
51528
51607
|
* @param values The values to update the clone with.
|
|
51529
51608
|
* @param options The options to use for cloning.
|
|
51530
|
-
* @returns The cloned instance.
|
|
51609
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
51610
|
+
* and URLs are shared with this instance.
|
|
51531
51611
|
*/
|
|
51532
51612
|
clone(values = {}, options = {}) {
|
|
51533
51613
|
if (this._warning != null) {
|
|
@@ -51692,7 +51772,8 @@ var View = class View extends Activity {
|
|
|
51692
51772
|
* Clones this instance, optionally updating it with the given values.
|
|
51693
51773
|
* @param values The values to update the clone with.
|
|
51694
51774
|
* @param options The options to use for cloning.
|
|
51695
|
-
* @returns The cloned instance.
|
|
51775
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
51776
|
+
* and URLs are shared with this instance.
|
|
51696
51777
|
*/
|
|
51697
51778
|
clone(values = {}, options = {}) {
|
|
51698
51779
|
if (this._warning != null) {
|